diff --git a/assets/index-CUvKlv4N.js b/assets/index-BiwBxV49.js similarity index 86% rename from assets/index-CUvKlv4N.js rename to assets/index-BiwBxV49.js index a1d56a9..b5b7e4d 100644 --- a/assets/index-CUvKlv4N.js +++ b/assets/index-BiwBxV49.js @@ -1,4 +1,4 @@ -var vl=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var v=(e,t,n)=>(vl(e,t,"read from private field"),n?n.call(e):t.get(e)),Z=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},z=(e,t,n,r)=>(vl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Eo=(e,t,n,r)=>({set _(s){z(e,t,s,n)},get _(){return v(e,t,r)}}),ae=(e,t,n)=>(vl(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function fp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pp={exports:{}},Ga={},hp={exports:{}},ue={};/** +var vl=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var v=(e,t,n)=>(vl(e,t,"read from private field"),n?n.call(e):t.get(e)),Q=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},z=(e,t,n,r)=>(vl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Co=(e,t,n,r)=>({set _(s){z(e,t,s,n)},get _(){return v(e,t,r)}}),ae=(e,t,n)=>(vl(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function fp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pp={exports:{}},Ga={},hp={exports:{}},ue={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var vl=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var v=(e,t,n)=>(vl(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var uo=Symbol.for("react.element"),by=Symbol.for("react.portal"),Ty=Symbol.for("react.fragment"),Ny=Symbol.for("react.strict_mode"),Py=Symbol.for("react.profiler"),Ry=Symbol.for("react.provider"),Oy=Symbol.for("react.context"),Iy=Symbol.for("react.forward_ref"),Ay=Symbol.for("react.suspense"),My=Symbol.for("react.memo"),Fy=Symbol.for("react.lazy"),kd=Symbol.iterator;function jy(e){return e===null||typeof e!="object"?null:(e=kd&&e[kd]||e["@@iterator"],typeof e=="function"?e:null)}var mp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yp=Object.assign,vp={};function Us(e,t,n){this.props=e,this.context=t,this.refs=vp,this.updater=n||mp}Us.prototype.isReactComponent={};Us.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Us.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function gp(){}gp.prototype=Us.prototype;function mc(e,t,n){this.props=e,this.context=t,this.refs=vp,this.updater=n||mp}var yc=mc.prototype=new gp;yc.constructor=mc;yp(yc,Us.prototype);yc.isPureReactComponent=!0;var Sd=Array.isArray,wp=Object.prototype.hasOwnProperty,vc={current:null},xp={key:!0,ref:!0,__self:!0,__source:!0};function _p(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)wp.call(t,r)&&!xp.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1{if(!t.has(e))throw TypeError("Cannot "+n)};var v=(e,t,n)=>(vl(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Vy=j,Uy=Symbol.for("react.element"),By=Symbol.for("react.fragment"),Zy=Object.prototype.hasOwnProperty,Qy=Vy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Hy={key:!0,ref:!0,__self:!0,__source:!0};function kp(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Zy.call(t,r)&&!Hy.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:Uy,type:e,key:i,ref:o,props:s,_owner:Qy.current}}Ga.Fragment=By;Ga.jsx=kp;Ga.jsxs=kp;pp.exports=Ga;var H=pp.exports,Xl={},Sp={exports:{}},Et={},Ep={exports:{}},Cp={};/** + */var Vy=j,Uy=Symbol.for("react.element"),By=Symbol.for("react.fragment"),Zy=Object.prototype.hasOwnProperty,Qy=Vy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Hy={key:!0,ref:!0,__self:!0,__source:!0};function kp(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Zy.call(t,r)&&!Hy.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:Uy,type:e,key:i,ref:o,props:s,_owner:Qy.current}}Ga.Fragment=By;Ga.jsx=kp;Ga.jsxs=kp;pp.exports=Ga;var Z=pp.exports,Xl={},Sp={exports:{}},Et={},Ep={exports:{}},Cp={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var vl=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var v=(e,t,n)=>(vl(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(R,B){var Y=R.length;R.push(B);e:for(;0>>1,te=R[K];if(0>>1;Ks(vt,Y))pes(Lt,vt)?(R[K]=Lt,R[pe]=Y,K=pe):(R[K]=vt,R[Fe]=Y,K=Fe);else if(pes(Lt,Y))R[K]=Lt,R[pe]=Y,K=pe;else break e}}return B}function s(R,B){var Y=R.sortIndex-B.sortIndex;return Y!==0?Y:R.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,p=null,h=3,g=!1,x=!1,_=!1,C=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(R){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=R)r(u),B.sortIndex=B.expirationTime,t(l,B);else break;B=n(u)}}function k(R){if(_=!1,m(R),!x)if(n(l)!==null)x=!0,ye(E);else{var B=n(u);B!==null&&Ce(k,B.startTime-R)}}function E(R,B){x=!1,_&&(_=!1,f(N),N=-1),g=!0;var Y=h;try{for(m(B),p=n(l);p!==null&&(!(p.expirationTime>B)||R&&!me());){var K=p.callback;if(typeof K=="function"){p.callback=null,h=p.priorityLevel;var te=K(p.expirationTime<=B);B=e.unstable_now(),typeof te=="function"?p.callback=te:p===n(l)&&r(l),m(B)}else r(l);p=n(l)}if(p!==null)var xe=!0;else{var Fe=n(u);Fe!==null&&Ce(k,Fe.startTime-B),xe=!1}return xe}finally{p=null,h=Y,g=!1}}var O=!1,I=null,N=-1,X=5,W=-1;function me(){return!(e.unstable_now()-WR||125K?(R.sortIndex=Y,t(u,R),n(l)===null&&R===n(u)&&(_?(f(N),N=-1):_=!0,Ce(k,Y-K))):(R.sortIndex=te,t(l,R),x||g||(x=!0,ye(E))),R},e.unstable_shouldYield=me,e.unstable_wrapCallback=function(R){var B=h;return function(){var Y=h;h=B;try{return R.apply(this,arguments)}finally{h=Y}}}})(Cp);Ep.exports=Cp;var Wy=Ep.exports;/** + */(function(e){function t(R,B){var Y=R.length;R.push(B);e:for(;0>>1,te=R[K];if(0>>1;Ks(vt,Y))pes(Lt,vt)?(R[K]=Lt,R[pe]=Y,K=pe):(R[K]=vt,R[Fe]=Y,K=Fe);else if(pes(Lt,Y))R[K]=Lt,R[pe]=Y,K=pe;else break e}}return B}function s(R,B){var Y=R.sortIndex-B.sortIndex;return Y!==0?Y:R.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,p=null,h=3,g=!1,x=!1,_=!1,E=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(R){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=R)r(u),B.sortIndex=B.expirationTime,t(l,B);else break;B=n(u)}}function k(R){if(_=!1,m(R),!x)if(n(l)!==null)x=!0,ye(C);else{var B=n(u);B!==null&&Ce(k,B.startTime-R)}}function C(R,B){x=!1,_&&(_=!1,f(N),N=-1),g=!0;var Y=h;try{for(m(B),p=n(l);p!==null&&(!(p.expirationTime>B)||R&&!me());){var K=p.callback;if(typeof K=="function"){p.callback=null,h=p.priorityLevel;var te=K(p.expirationTime<=B);B=e.unstable_now(),typeof te=="function"?p.callback=te:p===n(l)&&r(l),m(B)}else r(l);p=n(l)}if(p!==null)var xe=!0;else{var Fe=n(u);Fe!==null&&Ce(k,Fe.startTime-B),xe=!1}return xe}finally{p=null,h=Y,g=!1}}var O=!1,I=null,N=-1,X=5,W=-1;function me(){return!(e.unstable_now()-WR||125K?(R.sortIndex=Y,t(u,R),n(l)===null&&R===n(u)&&(_?(f(N),N=-1):_=!0,Ce(k,Y-K))):(R.sortIndex=te,t(l,R),x||g||(x=!0,ye(C))),R},e.unstable_shouldYield=me,e.unstable_wrapCallback=function(R){var B=h;return function(){var Y=h;h=B;try{return R.apply(this,arguments)}finally{h=Y}}}})(Cp);Ep.exports=Cp;var Wy=Ep.exports;/** * @license React * react-dom.production.min.js * @@ -30,17 +30,17 @@ var vl=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var v=(e,t,n)=>(vl(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var bp=j,St=Wy;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jl=Object.prototype.hasOwnProperty,Ky=/^[: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]*$/,Cd={},bd={};function Gy(e){return Jl.call(bd,e)?!0:Jl.call(Cd,e)?!1:Ky.test(e)?bd[e]=!0:(Cd[e]=!0,!1)}function Yy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function qy(e,t,n,r){if(t===null||typeof t>"u"||Yy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function lt(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ge[e]=new lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ge[t]=new lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ge[e]=new lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ge[e]=new lt(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){Ge[e]=new lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ge[e]=new lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ge[e]=new lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ge[e]=new lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ge[e]=new lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var wc=/[\-:]([a-z])/g;function xc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wc,xc);Ge[t]=new lt(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(wc,xc);Ge[t]=new lt(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(wc,xc);Ge[t]=new lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ge[e]=new lt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ge.xlinkHref=new lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ge[e]=new lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function _c(e,t,n,r){var s=Ge.hasOwnProperty(t)?Ge[t]:null;(s!==null?s.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jl=Object.prototype.hasOwnProperty,Ky=/^[: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]*$/,Cd={},bd={};function Gy(e){return Jl.call(bd,e)?!0:Jl.call(Cd,e)?!1:Ky.test(e)?bd[e]=!0:(Cd[e]=!0,!1)}function Yy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function qy(e,t,n,r){if(t===null||typeof t>"u"||Yy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function lt(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ge[e]=new lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ge[t]=new lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ge[e]=new lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ge[e]=new lt(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){Ge[e]=new lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ge[e]=new lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ge[e]=new lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ge[e]=new lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ge[e]=new lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var wc=/[\-:]([a-z])/g;function xc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wc,xc);Ge[t]=new lt(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(wc,xc);Ge[t]=new lt(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(wc,xc);Ge[t]=new lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ge[e]=new lt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ge.xlinkHref=new lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ge[e]=new lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function _c(e,t,n,r){var s=Ge.hasOwnProperty(t)?Ge[t]:null;(s!==null?s.type!==0:r||!(2a||s[o]!==i[a]){var l=` -`+s[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{xl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ii(e):""}function Xy(e){switch(e.tag){case 5:return ii(e.type);case 16:return ii("Lazy");case 13:return ii("Suspense");case 19:return ii("SuspenseList");case 0:case 2:case 15:return e=_l(e.type,!1),e;case 11:return e=_l(e.type.render,!1),e;case 1:return e=_l(e.type,!0),e;default:return""}}function ru(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Xr:return"Fragment";case qr:return"Portal";case eu:return"Profiler";case kc:return"StrictMode";case tu:return"Suspense";case nu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Pp:return(e.displayName||"Context")+".Consumer";case Np:return(e._context.displayName||"Context")+".Provider";case Sc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ec:return t=e.displayName||null,t!==null?t:ru(e.type)||"Memo";case zn:t=e._payload,e=e._init;try{return ru(e(t))}catch{}}return null}function Jy(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ru(t);case 8:return t===kc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function lr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Op(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ev(e){var t=Op(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function To(e){e._valueTracker||(e._valueTracker=ev(e))}function Ip(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Op(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function oa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function su(e,t){var n=t.checked;return Re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Nd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ap(e,t){t=t.checked,t!=null&&_c(e,"checked",t,!1)}function iu(e,t){Ap(e,t);var n=lr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ou(e,t.type,n):t.hasOwnProperty("defaultValue")&&ou(e,t.type,lr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ou(e,t,n){(t!=="number"||oa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var oi=Array.isArray;function cs(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s"+t.valueOf().toString()+"",t=No.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _i(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ci={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},tv=["Webkit","ms","Moz","O"];Object.keys(ci).forEach(function(e){tv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ci[t]=ci[e]})});function Lp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ci.hasOwnProperty(e)&&ci[e]?(""+t).trim():t+"px"}function Dp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Lp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var nv=Re({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 uu(e,t){if(t){if(nv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function cu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var du=null;function Cc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fu=null,ds=null,fs=null;function Id(e){if(e=po(e)){if(typeof fu!="function")throw Error(T(280));var t=e.stateNode;t&&(t=el(t),fu(e.stateNode,e.type,t))}}function zp(e){ds?fs?fs.push(e):fs=[e]:ds=e}function $p(){if(ds){var e=ds,t=fs;if(fs=ds=null,Id(e),t)for(e=0;e>>=0,e===0?32:31-(pv(e)/hv|0)|0}var Po=64,Ro=4194304;function ai(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ca(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=ai(a):(i&=o,i!==0&&(r=ai(i)))}else o=n&~s,o!==0?r=ai(o):i!==0&&(r=ai(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function co(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wt(t),e[t]=n}function gv(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=fi),Vd=" ",Ud=!1;function oh(e,t){switch(e){case"keyup":return Hv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ah(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jr=!1;function Kv(e,t){switch(e){case"compositionend":return ah(t);case"keypress":return t.which!==32?null:(Ud=!0,Vd);case"textInput":return e=t.data,e===Vd&&Ud?null:e;default:return null}}function Gv(e,t){if(Jr)return e==="compositionend"||!Ac&&oh(e,t)?(e=sh(),Wo=Rc=qn=null,Jr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Hd(n)}}function dh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fh(){for(var e=window,t=oa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=oa(e.document)}return t}function Mc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function sg(e){var t=fh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dh(n.ownerDocument.documentElement,n)){if(r!==null&&Mc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Wd(n,i);var o=Wd(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,es=null,gu=null,hi=null,wu=!1;function Kd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wu||es==null||es!==oa(r)||(r=es,"selectionStart"in r&&Mc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),hi&&Ti(hi,r)||(hi=r,r=pa(gu,"onSelect"),0rs||(e.current=Cu[rs],Cu[rs]=null,rs--)}function we(e,t){rs++,Cu[rs]=e.current,e.current=t}var ur={},Je=mr(ur),ht=mr(!1),Dr=ur;function As(e,t){var n=e.type.contextTypes;if(!n)return ur;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function mt(e){return e=e.childContextTypes,e!=null}function ma(){Ee(ht),Ee(Je)}function tf(e,t,n){if(Je.current!==ur)throw Error(T(168));we(Je,t),we(ht,n)}function _h(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(T(108,Jy(e)||"Unknown",s));return Re({},n,r)}function ya(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ur,Dr=Je.current,we(Je,e),we(ht,ht.current),!0}function nf(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=_h(e,t,Dr),r.__reactInternalMemoizedMergedChildContext=e,Ee(ht),Ee(Je),we(Je,e)):Ee(ht),we(ht,n)}var kn=null,tl=!1,Fl=!1;function kh(e){kn===null?kn=[e]:kn.push(e)}function yg(e){tl=!0,kh(e)}function yr(){if(!Fl&&kn!==null){Fl=!0;var e=0,t=ve;try{var n=kn;for(ve=1;e>=o,s-=o,Sn=1<<32-Wt(t)+s|n<N?(X=I,I=null):X=I.sibling;var W=h(f,I,m[N],k);if(W===null){I===null&&(I=X);break}e&&I&&W.alternate===null&&t(f,I),d=i(W,d,N),O===null?E=W:O.sibling=W,O=W,I=X}if(N===m.length)return n(f,I),be&&xr(f,N),E;if(I===null){for(;NN?(X=I,I=null):X=I.sibling;var me=h(f,I,W.value,k);if(me===null){I===null&&(I=X);break}e&&I&&me.alternate===null&&t(f,I),d=i(me,d,N),O===null?E=me:O.sibling=me,O=me,I=X}if(W.done)return n(f,I),be&&xr(f,N),E;if(I===null){for(;!W.done;N++,W=m.next())W=p(f,W.value,k),W!==null&&(d=i(W,d,N),O===null?E=W:O.sibling=W,O=W);return be&&xr(f,N),E}for(I=r(f,I);!W.done;N++,W=m.next())W=g(I,f,N,W.value,k),W!==null&&(e&&W.alternate!==null&&I.delete(W.key===null?N:W.key),d=i(W,d,N),O===null?E=W:O.sibling=W,O=W);return e&&I.forEach(function(L){return t(f,L)}),be&&xr(f,N),E}function C(f,d,m,k){if(typeof m=="object"&&m!==null&&m.type===Xr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case bo:e:{for(var E=m.key,O=d;O!==null;){if(O.key===E){if(E=m.type,E===Xr){if(O.tag===7){n(f,O.sibling),d=s(O,m.props.children),d.return=f,f=d;break e}}else if(O.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===zn&&cf(E)===O.type){n(f,O.sibling),d=s(O,m.props),d.ref=Js(f,O,m),d.return=f,f=d;break e}n(f,O);break}else t(f,O);O=O.sibling}m.type===Xr?(d=jr(m.props.children,f.mode,k,m.key),d.return=f,f=d):(k=ta(m.type,m.key,m.props,null,f.mode,k),k.ref=Js(f,d,m),k.return=f,f=k)}return o(f);case qr:e:{for(O=m.key;d!==null;){if(d.key===O)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(f,d.sibling),d=s(d,m.children||[]),d.return=f,f=d;break e}else{n(f,d);break}else t(f,d);d=d.sibling}d=Bl(m,f.mode,k),d.return=f,f=d}return o(f);case zn:return O=m._init,C(f,d,O(m._payload),k)}if(oi(m))return x(f,d,m,k);if(Ks(m))return _(f,d,m,k);Lo(f,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(f,d.sibling),d=s(d,m),d.return=f,f=d):(n(f,d),d=Ul(m,f.mode,k),d.return=f,f=d),o(f)):n(f,d)}return C}var Fs=Rh(!0),Oh=Rh(!1),ho={},pn=mr(ho),Oi=mr(ho),Ii=mr(ho);function Er(e){if(e===ho)throw Error(T(174));return e}function Bc(e,t){switch(we(Ii,t),we(Oi,e),we(pn,ho),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:lu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=lu(t,e)}Ee(pn),we(pn,t)}function js(){Ee(pn),Ee(Oi),Ee(Ii)}function Ih(e){Er(Ii.current);var t=Er(pn.current),n=lu(t,e.type);t!==n&&(we(Oi,e),we(pn,n))}function Zc(e){Oi.current===e&&(Ee(pn),Ee(Oi))}var Ne=mr(0);function ka(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var jl=[];function Qc(){for(var e=0;en?n:4,e(!0);var r=Ll.transition;Ll.transition={};try{e(!1),t()}finally{ve=n,Ll.transition=r}}function Kh(){return jt().memoizedState}function xg(e,t,n){var r=or(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Gh(e))Yh(t,n);else if(n=bh(e,t,n,r),n!==null){var s=it();Kt(n,e,r,s),qh(n,t,r)}}function _g(e,t,n){var r=or(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gh(e))Yh(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,qt(a,o)){var l=t.interleaved;l===null?(s.next=s,Vc(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=bh(e,t,s,r),n!==null&&(s=it(),Kt(n,e,r,s),qh(n,t,r))}}function Gh(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function Yh(e,t){mi=Sa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Tc(e,n)}}var Ea={readContext:Ft,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},kg={readContext:Ft,useCallback:function(e,t){return sn().memoizedState=[e,t===void 0?null:t],e},useContext:Ft,useEffect:ff,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,qo(4194308,4,Bh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qo(4194308,4,e,t)},useInsertionEffect:function(e,t){return qo(4,2,e,t)},useMemo:function(e,t){var n=sn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=xg.bind(null,Pe,e),[r.memoizedState,e]},useRef:function(e){var t=sn();return e={current:e},t.memoizedState=e},useState:df,useDebugValue:Yc,useDeferredValue:function(e){return sn().memoizedState=e},useTransition:function(){var e=df(!1),t=e[0];return e=wg.bind(null,e[1]),sn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Pe,s=sn();if(be){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),Qe===null)throw Error(T(349));$r&30||Fh(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,ff(Lh.bind(null,r,i,e),[e]),r.flags|=2048,Fi(9,jh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=sn(),t=Qe.identifierPrefix;if(be){var n=En,r=Sn;n=(r&~(1<<32-Wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ai++,0")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{xl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ii(e):""}function Xy(e){switch(e.tag){case 5:return ii(e.type);case 16:return ii("Lazy");case 13:return ii("Suspense");case 19:return ii("SuspenseList");case 0:case 2:case 15:return e=_l(e.type,!1),e;case 11:return e=_l(e.type.render,!1),e;case 1:return e=_l(e.type,!0),e;default:return""}}function ru(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Xr:return"Fragment";case qr:return"Portal";case eu:return"Profiler";case kc:return"StrictMode";case tu:return"Suspense";case nu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Pp:return(e.displayName||"Context")+".Consumer";case Np:return(e._context.displayName||"Context")+".Provider";case Sc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ec:return t=e.displayName||null,t!==null?t:ru(e.type)||"Memo";case zn:t=e._payload,e=e._init;try{return ru(e(t))}catch{}}return null}function Jy(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ru(t);case 8:return t===kc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function lr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Op(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ev(e){var t=Op(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function No(e){e._valueTracker||(e._valueTracker=ev(e))}function Ip(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Op(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function aa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function su(e,t){var n=t.checked;return Re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Nd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ap(e,t){t=t.checked,t!=null&&_c(e,"checked",t,!1)}function iu(e,t){Ap(e,t);var n=lr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ou(e,t.type,n):t.hasOwnProperty("defaultValue")&&ou(e,t.type,lr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ou(e,t,n){(t!=="number"||aa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var oi=Array.isArray;function cs(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s"+t.valueOf().toString()+"",t=Po.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _i(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ci={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},tv=["Webkit","ms","Moz","O"];Object.keys(ci).forEach(function(e){tv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ci[t]=ci[e]})});function Lp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ci.hasOwnProperty(e)&&ci[e]?(""+t).trim():t+"px"}function Dp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Lp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var nv=Re({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 uu(e,t){if(t){if(nv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function cu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var du=null;function Cc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fu=null,ds=null,fs=null;function Id(e){if(e=ho(e)){if(typeof fu!="function")throw Error(T(280));var t=e.stateNode;t&&(t=el(t),fu(e.stateNode,e.type,t))}}function zp(e){ds?fs?fs.push(e):fs=[e]:ds=e}function $p(){if(ds){var e=ds,t=fs;if(fs=ds=null,Id(e),t)for(e=0;e>>=0,e===0?32:31-(pv(e)/hv|0)|0}var Ro=64,Oo=4194304;function ai(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function da(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=ai(a):(i&=o,i!==0&&(r=ai(i)))}else o=n&~s,o!==0?r=ai(o):i!==0&&(r=ai(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function fo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wt(t),e[t]=n}function gv(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=fi),Vd=" ",Ud=!1;function oh(e,t){switch(e){case"keyup":return Hv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ah(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jr=!1;function Kv(e,t){switch(e){case"compositionend":return ah(t);case"keypress":return t.which!==32?null:(Ud=!0,Vd);case"textInput":return e=t.data,e===Vd&&Ud?null:e;default:return null}}function Gv(e,t){if(Jr)return e==="compositionend"||!Ac&&oh(e,t)?(e=sh(),Ko=Rc=qn=null,Jr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Hd(n)}}function dh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fh(){for(var e=window,t=aa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=aa(e.document)}return t}function Mc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function sg(e){var t=fh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dh(n.ownerDocument.documentElement,n)){if(r!==null&&Mc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Wd(n,i);var o=Wd(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,es=null,gu=null,hi=null,wu=!1;function Kd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wu||es==null||es!==aa(r)||(r=es,"selectionStart"in r&&Mc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),hi&&Ti(hi,r)||(hi=r,r=ha(gu,"onSelect"),0rs||(e.current=Cu[rs],Cu[rs]=null,rs--)}function we(e,t){rs++,Cu[rs]=e.current,e.current=t}var ur={},Je=mr(ur),ht=mr(!1),Dr=ur;function As(e,t){var n=e.type.contextTypes;if(!n)return ur;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function mt(e){return e=e.childContextTypes,e!=null}function ya(){Ee(ht),Ee(Je)}function tf(e,t,n){if(Je.current!==ur)throw Error(T(168));we(Je,t),we(ht,n)}function _h(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(T(108,Jy(e)||"Unknown",s));return Re({},n,r)}function va(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ur,Dr=Je.current,we(Je,e),we(ht,ht.current),!0}function nf(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=_h(e,t,Dr),r.__reactInternalMemoizedMergedChildContext=e,Ee(ht),Ee(Je),we(Je,e)):Ee(ht),we(ht,n)}var kn=null,tl=!1,Fl=!1;function kh(e){kn===null?kn=[e]:kn.push(e)}function yg(e){tl=!0,kh(e)}function yr(){if(!Fl&&kn!==null){Fl=!0;var e=0,t=ve;try{var n=kn;for(ve=1;e>=o,s-=o,Sn=1<<32-Wt(t)+s|n<N?(X=I,I=null):X=I.sibling;var W=h(f,I,m[N],k);if(W===null){I===null&&(I=X);break}e&&I&&W.alternate===null&&t(f,I),d=i(W,d,N),O===null?C=W:O.sibling=W,O=W,I=X}if(N===m.length)return n(f,I),be&&xr(f,N),C;if(I===null){for(;NN?(X=I,I=null):X=I.sibling;var me=h(f,I,W.value,k);if(me===null){I===null&&(I=X);break}e&&I&&me.alternate===null&&t(f,I),d=i(me,d,N),O===null?C=me:O.sibling=me,O=me,I=X}if(W.done)return n(f,I),be&&xr(f,N),C;if(I===null){for(;!W.done;N++,W=m.next())W=p(f,W.value,k),W!==null&&(d=i(W,d,N),O===null?C=W:O.sibling=W,O=W);return be&&xr(f,N),C}for(I=r(f,I);!W.done;N++,W=m.next())W=g(I,f,N,W.value,k),W!==null&&(e&&W.alternate!==null&&I.delete(W.key===null?N:W.key),d=i(W,d,N),O===null?C=W:O.sibling=W,O=W);return e&&I.forEach(function(L){return t(f,L)}),be&&xr(f,N),C}function E(f,d,m,k){if(typeof m=="object"&&m!==null&&m.type===Xr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case To:e:{for(var C=m.key,O=d;O!==null;){if(O.key===C){if(C=m.type,C===Xr){if(O.tag===7){n(f,O.sibling),d=s(O,m.props.children),d.return=f,f=d;break e}}else if(O.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===zn&&cf(C)===O.type){n(f,O.sibling),d=s(O,m.props),d.ref=Js(f,O,m),d.return=f,f=d;break e}n(f,O);break}else t(f,O);O=O.sibling}m.type===Xr?(d=jr(m.props.children,f.mode,k,m.key),d.return=f,f=d):(k=na(m.type,m.key,m.props,null,f.mode,k),k.ref=Js(f,d,m),k.return=f,f=k)}return o(f);case qr:e:{for(O=m.key;d!==null;){if(d.key===O)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(f,d.sibling),d=s(d,m.children||[]),d.return=f,f=d;break e}else{n(f,d);break}else t(f,d);d=d.sibling}d=Bl(m,f.mode,k),d.return=f,f=d}return o(f);case zn:return O=m._init,E(f,d,O(m._payload),k)}if(oi(m))return x(f,d,m,k);if(Ks(m))return _(f,d,m,k);Do(f,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(f,d.sibling),d=s(d,m),d.return=f,f=d):(n(f,d),d=Ul(m,f.mode,k),d.return=f,f=d),o(f)):n(f,d)}return E}var Fs=Rh(!0),Oh=Rh(!1),mo={},pn=mr(mo),Oi=mr(mo),Ii=mr(mo);function Er(e){if(e===mo)throw Error(T(174));return e}function Bc(e,t){switch(we(Ii,t),we(Oi,e),we(pn,mo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:lu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=lu(t,e)}Ee(pn),we(pn,t)}function js(){Ee(pn),Ee(Oi),Ee(Ii)}function Ih(e){Er(Ii.current);var t=Er(pn.current),n=lu(t,e.type);t!==n&&(we(Oi,e),we(pn,n))}function Zc(e){Oi.current===e&&(Ee(pn),Ee(Oi))}var Ne=mr(0);function Sa(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var jl=[];function Qc(){for(var e=0;en?n:4,e(!0);var r=Ll.transition;Ll.transition={};try{e(!1),t()}finally{ve=n,Ll.transition=r}}function Kh(){return jt().memoizedState}function xg(e,t,n){var r=or(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Gh(e))Yh(t,n);else if(n=bh(e,t,n,r),n!==null){var s=it();Kt(n,e,r,s),qh(n,t,r)}}function _g(e,t,n){var r=or(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gh(e))Yh(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,qt(a,o)){var l=t.interleaved;l===null?(s.next=s,Vc(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=bh(e,t,s,r),n!==null&&(s=it(),Kt(n,e,r,s),qh(n,t,r))}}function Gh(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function Yh(e,t){mi=Ea=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Tc(e,n)}}var Ca={readContext:Ft,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},kg={readContext:Ft,useCallback:function(e,t){return sn().memoizedState=[e,t===void 0?null:t],e},useContext:Ft,useEffect:ff,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Xo(4194308,4,Bh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xo(4,2,e,t)},useMemo:function(e,t){var n=sn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=xg.bind(null,Pe,e),[r.memoizedState,e]},useRef:function(e){var t=sn();return e={current:e},t.memoizedState=e},useState:df,useDebugValue:Yc,useDeferredValue:function(e){return sn().memoizedState=e},useTransition:function(){var e=df(!1),t=e[0];return e=wg.bind(null,e[1]),sn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Pe,s=sn();if(be){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),Qe===null)throw Error(T(349));$r&30||Fh(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,ff(Lh.bind(null,r,i,e),[e]),r.flags|=2048,Fi(9,jh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=sn(),t=Qe.identifierPrefix;if(be){var n=En,r=Sn;n=(r&~(1<<32-Wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ai++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[cn]=t,e[Ri]=r,om(e,t,!1,!1),t.stateNode=e;e:{switch(o=cu(n,r),n){case"dialog":ke("cancel",e),ke("close",e),s=r;break;case"iframe":case"object":case"embed":ke("load",e),s=r;break;case"video":case"audio":for(s=0;sDs&&(t.flags|=128,r=!0,ei(i,!1),t.lanes=4194304)}else{if(!r)if(e=ka(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ei(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!be)return qe(t),null}else 2*Me()-i.renderingStartTime>Ds&&n!==1073741824&&(t.flags|=128,r=!0,ei(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Me(),t.sibling=null,n=Ne.current,we(Ne,r?n&1|2:n&1),t):(qe(t),null);case 22:case 23:return nd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xt&1073741824&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function Rg(e,t){switch(jc(t),t.tag){case 1:return mt(t.type)&&ma(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return js(),Ee(ht),Ee(Je),Qc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Zc(t),null;case 13:if(Ee(Ne),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));Ms()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ee(Ne),null;case 4:return js(),null;case 10:return $c(t.type._context),null;case 22:case 23:return nd(),null;case 24:return null;default:return null}}var zo=!1,Xe=!1,Og=typeof WeakSet=="function"?WeakSet:Set,U=null;function as(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Oe(e,t,r)}else n.current=null}function Lu(e,t,n){try{n()}catch(r){Oe(e,t,r)}}var _f=!1;function Ig(e,t){if(xu=da,e=fh(),Mc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,p=e,h=null;t:for(;;){for(var g;p!==n||s!==0&&p.nodeType!==3||(a=o+s),p!==i||r!==0&&p.nodeType!==3||(l=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(g=p.firstChild)!==null;)h=p,p=g;for(;;){if(p===e)break t;if(h===n&&++u===s&&(a=o),h===i&&++c===r&&(l=o),(g=p.nextSibling)!==null)break;p=h,h=p.parentNode}p=g}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(_u={focusedElem:e,selectionRange:n},da=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var _=x.memoizedProps,C=x.memoizedState,f=t.stateNode,d=f.getSnapshotBeforeUpdate(t.elementType===t.type?_:$t(t.type,_),C);f.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(k){Oe(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return x=_f,_f=!1,x}function yi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Lu(t,n,i)}s=s.next}while(s!==r)}}function sl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Du(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function um(e){var t=e.alternate;t!==null&&(e.alternate=null,um(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[cn],delete t[Ri],delete t[Eu],delete t[hg],delete t[mg])),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 cm(e){return e.tag===5||e.tag===3||e.tag===4}function kf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function zu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ha));else if(r!==4&&(e=e.child,e!==null))for(zu(e,t,n),e=e.sibling;e!==null;)zu(e,t,n),e=e.sibling}function $u(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for($u(e,t,n),e=e.sibling;e!==null;)$u(e,t,n),e=e.sibling}var He=null,Ut=!1;function Fn(e,t,n){for(n=n.child;n!==null;)dm(e,t,n),n=n.sibling}function dm(e,t,n){if(fn&&typeof fn.onCommitFiberUnmount=="function")try{fn.onCommitFiberUnmount(Ya,n)}catch{}switch(n.tag){case 5:Xe||as(n,t);case 6:var r=He,s=Ut;He=null,Fn(e,t,n),He=r,Ut=s,He!==null&&(Ut?(e=He,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&(Ut?(e=He,n=n.stateNode,e.nodeType===8?Ml(e.parentNode,n):e.nodeType===1&&Ml(e,n),Ci(e)):Ml(He,n.stateNode));break;case 4:r=He,s=Ut,He=n.stateNode.containerInfo,Ut=!0,Fn(e,t,n),He=r,Ut=s;break;case 0:case 11:case 14:case 15:if(!Xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Lu(n,t,o),s=s.next}while(s!==r)}Fn(e,t,n);break;case 1:if(!Xe&&(as(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Oe(n,t,a)}Fn(e,t,n);break;case 21:Fn(e,t,n);break;case 22:n.mode&1?(Xe=(r=Xe)||n.memoizedState!==null,Fn(e,t,n),Xe=r):Fn(e,t,n);break;default:Fn(e,t,n)}}function Sf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Og),t.forEach(function(r){var s=Vg.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;rs&&(s=o),r&=~i}if(r=s,r=Me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Mg(r/1960))-r,10e?16:e,Xn===null)var r=!1;else{if(e=Xn,Xn=null,Ta=0,de&6)throw Error(T(331));var s=de;for(de|=4,U=e.current;U!==null;){var i=U,o=i.child;if(U.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lMe()-ed?Fr(e,0):Jc|=n),yt(e,t)}function wm(e,t){t===0&&(e.mode&1?(t=Ro,Ro<<=1,!(Ro&130023424)&&(Ro=4194304)):t=1);var n=it();e=Pn(e,t),e!==null&&(co(e,t,n),yt(e,n))}function $g(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),wm(e,n)}function Vg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),wm(e,n)}var xm;xm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ht.current)pt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pt=!1,Ng(e,t,n);pt=!!(e.flags&131072)}else pt=!1,be&&t.flags&1048576&&Sh(t,ga,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xo(e,t),e=t.pendingProps;var s=As(t,Je.current);hs(t,n),s=Wc(null,t,r,e,s,n);var i=Kc();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,mt(r)?(i=!0,ya(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Uc(t),s.updater=nl,t.stateNode=s,s._reactInternals=t,Ru(t,r,e,n),t=Au(null,t,r,!0,i,n)):(t.tag=0,be&&i&&Fc(t),rt(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xo(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=Bg(r),e=$t(r,e),s){case 0:t=Iu(null,t,r,e,n);break e;case 1:t=gf(null,t,r,e,n);break e;case 11:t=yf(null,t,r,e,n);break e;case 14:t=vf(null,t,r,$t(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:$t(r,s),Iu(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:$t(r,s),gf(e,t,r,s,n);case 3:e:{if(rm(t),e===null)throw Error(T(387));r=t.pendingProps,i=t.memoizedState,s=i.element,Th(e,t),_a(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Ls(Error(T(423)),t),t=wf(e,t,r,n,s);break e}else if(r!==s){s=Ls(Error(T(424)),t),t=wf(e,t,r,n,s);break e}else for(_t=rr(t.stateNode.containerInfo.firstChild),kt=t,be=!0,Bt=null,n=Oh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ms(),r===s){t=Rn(e,t,n);break e}rt(e,t,r,n)}t=t.child}return t;case 5:return Ih(t),e===null&&Tu(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,ku(r,s)?o=null:i!==null&&ku(r,i)&&(t.flags|=32),nm(e,t),rt(e,t,o,n),t.child;case 6:return e===null&&Tu(t),null;case 13:return sm(e,t,n);case 4:return Bc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fs(t,null,r,n):rt(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:$t(r,s),yf(e,t,r,s,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,we(wa,r._currentValue),r._currentValue=o,i!==null)if(qt(i.value,o)){if(i.children===s.children&&!ht.current){t=Rn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Cn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Nu(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(T(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Nu(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}rt(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,hs(t,n),s=Ft(s),r=r(s),t.flags|=1,rt(e,t,r,n),t.child;case 14:return r=t.type,s=$t(r,t.pendingProps),s=$t(r.type,s),vf(e,t,r,s,n);case 15:return em(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:$t(r,s),Xo(e,t),t.tag=1,mt(r)?(e=!0,ya(t)):e=!1,hs(t,n),Ph(t,r,s),Ru(t,r,s,n),Au(null,t,r,!0,e,n);case 19:return im(e,t,n);case 22:return tm(e,t,n)}throw Error(T(156,t.tag))};function _m(e,t){return Wp(e,t)}function Ug(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 At(e,t,n,r){return new Ug(e,t,n,r)}function sd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bg(e){if(typeof e=="function")return sd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Sc)return 11;if(e===Ec)return 14}return 2}function ar(e,t){var n=e.alternate;return n===null?(n=At(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ta(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")sd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Xr:return jr(n.children,s,i,t);case kc:o=8,s|=8;break;case eu:return e=At(12,n,t,s|2),e.elementType=eu,e.lanes=i,e;case tu:return e=At(13,n,t,s),e.elementType=tu,e.lanes=i,e;case nu:return e=At(19,n,t,s),e.elementType=nu,e.lanes=i,e;case Rp:return ol(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Np:o=10;break e;case Pp:o=9;break e;case Sc:o=11;break e;case Ec:o=14;break e;case zn:o=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=At(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function jr(e,t,n,r){return e=At(7,e,r,t),e.lanes=n,e}function ol(e,t,n,r){return e=At(22,e,r,t),e.elementType=Rp,e.lanes=n,e.stateNode={isHidden:!1},e}function Ul(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function Bl(e,t,n){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zg(e,t,n,r,s){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=Sl(0),this.expirationTimes=Sl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sl(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function id(e,t,n,r,s,i,o,a,l){return e=new Zg(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=At(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Uc(i),e}function Qg(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Cm)}catch(e){console.error(e)}}Cm(),Sp.exports=Et;var bm=Sp.exports;const Yg=fp(bm);var Of=bm;Xl.createRoot=Of.createRoot,Xl.hydrateRoot=Of.hydrateRoot;function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>qg(n,t))}const dl=j.forwardRef((e,t)=>{const{children:n,...r}=e,s=j.Children.toArray(n),i=s.find(e0);if(i){const o=i.props.children,a=s.map(l=>l===i?j.Children.count(o)>1?j.Children.only(null):j.isValidElement(o)?o.props.children:null:l);return j.createElement(Qu,cr({},r,{ref:t}),j.isValidElement(o)?j.cloneElement(o,void 0,a):null)}return j.createElement(Qu,cr({},r,{ref:t}),n)});dl.displayName="Slot";const Qu=j.forwardRef((e,t)=>{const{children:n,...r}=e;return j.isValidElement(n)?j.cloneElement(n,{...t0(r,n.props),ref:t?Xg(t,n.ref):n.ref}):j.Children.count(n)>1?j.Children.only(null):null});Qu.displayName="SlotClone";const Jg=({children:e})=>j.createElement(j.Fragment,null,e);function e0(e){return j.isValidElement(e)&&e.type===Jg}function t0(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{i(...a),s(...a)}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function Tm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,Af=n0,Nm=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Af(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(u=>{const c=n==null?void 0:n[u],p=i==null?void 0:i[u];if(c===null)return null;const h=If(c)||If(p);return s[u][h]}),a=n&&Object.entries(n).reduce((u,c)=>{let[p,h]=c;return h===void 0||(u[p]=h),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:p,className:h,...g}=c;return Object.entries(g).every(x=>{let[_,C]=x;return Array.isArray(C)?C.includes({...i,...a}[_]):{...i,...a}[_]===C})?[...u,p,h]:u},[]);return Af(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};function Pm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;ta(i)))==null?void 0:o.classGroupId}const Mf=/^\[(.+)\]$/;function i0(e){if(Mf.test(e)){const t=Mf.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function o0(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return l0(Object.entries(e.classGroups),n).forEach(([i,o])=>{Hu(o,r,i,t)}),r}function Hu(e,t,n,r){e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Ff(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(a0(s)){Hu(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Hu(o,Ff(t,i),n,r)})})}function Ff(e,t){let n=e;return t.split(ud).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function a0(e){return e.isThemeGetter}function l0(e,t){return t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e}function u0(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function s(i,o){n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)}return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}}const Om="!";function c0(e){const t=e.separator,n=t.length===1,r=t[0],s=t.length;return function(o){const a=[];let l=0,u=0,c;for(let _=0;_u?c-u:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:x}}}function d0(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function f0(e){return{cache:u0(e.cacheSize),splitModifiers:c0(e),...s0(e)}}const p0=/\s+/;function h0(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=new Set;return e.trim().split(p0).map(o=>{const{modifiers:a,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:c}=n(o);let p=r(c?u.substring(0,c):u),h=!!c;if(!p){if(!c)return{isTailwindClass:!1,originalClassName:o};if(p=r(u),!p)return{isTailwindClass:!1,originalClassName:o};h=!1}const g=d0(a).join(":");return{isTailwindClass:!0,modifierId:l?g+Om:g,classGroupId:p,originalClassName:o,hasPostfixModifier:h}}).reverse().filter(o=>{if(!o.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:u}=o,c=a+l;return i.has(c)?!1:(i.add(c),s(l,u).forEach(p=>i.add(a+p)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function m0(){let e=0,t,n,r="";for(;ep(c),e());return n=f0(u),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=h0(l,n);return s(l,c),c}return function(){return i(m0.apply(null,arguments))}}function _e(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const Am=/^\[(?:([a-z-]+):)?(.+)\]$/i,v0=/^\d+\/\d+$/,g0=new Set(["px","full","screen"]),w0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,x0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,k0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,S0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function gn(e){return Cr(e)||g0.has(e)||v0.test(e)}function jn(e){return Qs(e,"length",O0)}function Cr(e){return!!e&&!Number.isNaN(Number(e))}function Uo(e){return Qs(e,"number",Cr)}function ni(e){return!!e&&Number.isInteger(Number(e))}function E0(e){return e.endsWith("%")&&Cr(e.slice(0,-1))}function ie(e){return Am.test(e)}function Ln(e){return w0.test(e)}const C0=new Set(["length","size","percentage"]);function b0(e){return Qs(e,C0,Mm)}function T0(e){return Qs(e,"position",Mm)}const N0=new Set(["image","url"]);function P0(e){return Qs(e,N0,A0)}function R0(e){return Qs(e,"",I0)}function ri(){return!0}function Qs(e,t,n){const r=Am.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function O0(e){return x0.test(e)&&!_0.test(e)}function Mm(){return!1}function I0(e){return k0.test(e)}function A0(e){return S0.test(e)}function M0(){const e=_e("colors"),t=_e("spacing"),n=_e("blur"),r=_e("brightness"),s=_e("borderColor"),i=_e("borderRadius"),o=_e("borderSpacing"),a=_e("borderWidth"),l=_e("contrast"),u=_e("grayscale"),c=_e("hueRotate"),p=_e("invert"),h=_e("gap"),g=_e("gradientColorStops"),x=_e("gradientColorStopPositions"),_=_e("inset"),C=_e("margin"),f=_e("opacity"),d=_e("padding"),m=_e("saturate"),k=_e("scale"),E=_e("sepia"),O=_e("skew"),I=_e("space"),N=_e("translate"),X=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],me=()=>["auto",ie,t],L=()=>[ie,t],J=()=>["",gn,jn],ee=()=>["auto",Cr,ie],ce=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ye=()=>["solid","dashed","dotted","double","none"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],R=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",ie],Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[Cr,Uo],te=()=>[Cr,ie];return{cacheSize:500,separator:":",theme:{colors:[ri],spacing:[gn,jn],blur:["none","",Ln,ie],brightness:K(),borderColor:[e],borderRadius:["none","","full",Ln,ie],borderSpacing:L(),borderWidth:J(),contrast:K(),grayscale:B(),hueRotate:te(),invert:B(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[E0,jn],inset:me(),margin:me(),opacity:K(),padding:L(),saturate:K(),scale:K(),sepia:B(),skew:te(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",ie]}],container:["container"],columns:[{columns:[Ln]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ce(),ie]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[_]}],"inset-x":[{"inset-x":[_]}],"inset-y":[{"inset-y":[_]}],start:[{start:[_]}],end:[{end:[_]}],top:[{top:[_]}],right:[{right:[_]}],bottom:[{bottom:[_]}],left:[{left:[_]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ni,ie]}],basis:[{basis:me()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ie]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",ni,ie]}],"grid-cols":[{"grid-cols":[ri]}],"col-start-end":[{col:["auto",{span:["full",ni,ie]},ie]}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":[ri]}],"row-start-end":[{row:["auto",{span:[ni,ie]},ie]}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ie]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ie]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[d]}],px:[{px:[d]}],py:[{py:[d]}],ps:[{ps:[d]}],pe:[{pe:[d]}],pt:[{pt:[d]}],pr:[{pr:[d]}],pb:[{pb:[d]}],pl:[{pl:[d]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ie,t]}],"min-w":[{"min-w":[ie,t,"min","max","fit"]}],"max-w":[{"max-w":[ie,t,"none","full","min","max","fit","prose",{screen:[Ln]},Ln]}],h:[{h:[ie,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ie,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ln,jn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Uo]}],"font-family":[{font:[ri]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ie]}],"line-clamp":[{"line-clamp":["none",Cr,Uo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",gn,ie]}],"list-image":[{"list-image":["none",ie]}],"list-style-type":[{list:["none","disc","decimal",ie]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[f]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[f]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ye(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",gn,jn]}],"underline-offset":[{"underline-offset":["auto",gn,ie]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[f]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ce(),T0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",b0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},P0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[f]}],"border-style":[{border:[...ye(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[f]}],"divide-style":[{divide:ye()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...ye()]}],"outline-offset":[{"outline-offset":[gn,ie]}],"outline-w":[{outline:[gn,jn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[f]}],"ring-offset-w":[{"ring-offset":[gn,jn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ln,R0]}],"shadow-color":[{shadow:[ri]}],opacity:[{opacity:[f]}],"mix-blend":[{"mix-blend":Ce()}],"bg-blend":[{"bg-blend":Ce()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ln,ie]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[m]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[f]}],"backdrop-saturate":[{"backdrop-saturate":[m]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ie]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",ie]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",ie]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[ni,ie]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ie]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ie]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[gn,jn,Uo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const F0=y0(M0);function yn(...e){return F0(r0(e))}const j0=Nm("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),cd=j.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?dl:"button";return H.jsx(o,{className:yn(j0({variant:t,size:n,className:e})),ref:i,...s})});cd.displayName="Button";const L0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],dd=L0.reduce((e,t)=>{const n=j.forwardRef((r,s)=>{const{asChild:i,...o}=r,a=i?dl:t;return j.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),j.createElement(a,cr({},o,{ref:s}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),D0=j.forwardRef((e,t)=>j.createElement(dd.label,cr({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),Fm=D0,z0=Nm("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),fd=j.forwardRef(({className:e,...t},n)=>H.jsx(Fm,{ref:n,className:yn(z0(),e),...t}));fd.displayName=Fm.displayName;var mo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},zs=typeof window>"u"||"Deno"in window;function Pt(){}function $0(e,t){return typeof e=="function"?e(t):e}function Wu(e){return typeof e=="number"&&e>=0&&e!==1/0}function jm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function jf(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==pd(o,t.options))return!1}else if(!Di(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof s<"u"&&s!==t.state.fetchStatus||i&&!i(t))}function Lf(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Li(t.options.mutationKey)!==Li(i))return!1}else if(!Di(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function pd(e,t){return((t==null?void 0:t.queryKeyHashFn)||Li)(e)}function Li(e){return JSON.stringify(e,(t,n)=>Gu(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Di(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Di(e[n],t[n])):!1}function Lm(e,t){if(e===t)return e;const n=Df(e)&&Df(t);if(n||Gu(e)&&Gu(t)){const r=n?e:Object.keys(e),s=r.length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{};let l=0;for(let u=0;u"u")return!0;const n=t.prototype;return!(!zf(n)||!n.hasOwnProperty("isPrototypeOf"))}function zf(e){return Object.prototype.toString.call(e)==="[object Object]"}function V0(e){return new Promise(t=>{setTimeout(t,e)})}function Yu(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Lm(e,t):t}function U0(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function B0(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Tr,Zn,vs,rp,Z0=(rp=class extends mo{constructor(){super();Z(this,Tr,void 0);Z(this,Zn,void 0);Z(this,vs,void 0);z(this,vs,t=>{if(!zs&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){v(this,Zn)||this.setEventListener(v(this,vs))}onUnsubscribe(){var t;this.hasListeners()||((t=v(this,Zn))==null||t.call(this),z(this,Zn,void 0))}setEventListener(t){var n;z(this,vs,t),(n=v(this,Zn))==null||n.call(this),z(this,Zn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){v(this,Tr)!==t&&(z(this,Tr,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof v(this,Tr)=="boolean"?v(this,Tr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Tr=new WeakMap,Zn=new WeakMap,vs=new WeakMap,rp),Ra=new Z0,gs,Qn,ws,sp,Q0=(sp=class extends mo{constructor(){super();Z(this,gs,!0);Z(this,Qn,void 0);Z(this,ws,void 0);z(this,ws,t=>{if(!zs&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){v(this,Qn)||this.setEventListener(v(this,ws))}onUnsubscribe(){var t;this.hasListeners()||((t=v(this,Qn))==null||t.call(this),z(this,Qn,void 0))}setEventListener(t){var n;z(this,ws,t),(n=v(this,Qn))==null||n.call(this),z(this,Qn,t(this.setOnline.bind(this)))}setOnline(t){v(this,gs)!==t&&(z(this,gs,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return v(this,gs)}},gs=new WeakMap,Qn=new WeakMap,ws=new WeakMap,sp),Oa=new Q0;function H0(e){return Math.min(1e3*2**e,3e4)}function fl(e){return(e??"online")==="online"?Oa.isOnline():!0}var Dm=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Zl(e){return e instanceof Dm}function zm(e){let t=!1,n=0,r=!1,s,i,o;const a=new Promise((C,f)=>{i=C,o=f}),l=C=>{var f;r||(g(new Dm(C)),(f=e.abort)==null||f.call(e))},u=()=>{t=!0},c=()=>{t=!1},p=()=>!Ra.isFocused()||e.networkMode!=="always"&&!Oa.isOnline(),h=C=>{var f;r||(r=!0,(f=e.onSuccess)==null||f.call(e,C),s==null||s(),i(C))},g=C=>{var f;r||(r=!0,(f=e.onError)==null||f.call(e,C),s==null||s(),o(C))},x=()=>new Promise(C=>{var f;s=d=>{const m=r||!p();return m&&C(d),m},(f=e.onPause)==null||f.call(e)}).then(()=>{var C;s=void 0,r||(C=e.onContinue)==null||C.call(e)}),_=()=>{if(r)return;let C;try{C=e.fn()}catch(f){C=Promise.reject(f)}Promise.resolve(C).then(h).catch(f=>{var O;if(r)return;const d=e.retry??(zs?0:3),m=e.retryDelay??H0,k=typeof m=="function"?m(n,f):m,E=d===!0||typeof d=="number"&&n{if(p())return x()}).then(()=>{t?g(f):_()})})};return fl(e.networkMode)?_():x().then(_),{promise:a,cancel:l,continue:()=>(s==null?void 0:s())?a:Promise.resolve(),cancelRetry:u,continueRetry:c}}function W0(){let e=[],t=0,n=h=>{h()},r=h=>{h()},s=h=>setTimeout(h,0);const i=h=>{s=h},o=h=>{let g;t++;try{g=h()}finally{t--,t||u()}return g},a=h=>{t?e.push(h):s(()=>{n(h)})},l=h=>(...g)=>{a(()=>{h(...g)})},u=()=>{const h=e;e=[],h.length&&s(()=>{r(()=>{h.forEach(g=>{n(g)})})})};return{batch:o,batchCalls:l,schedule:a,setNotifyFunction:h=>{n=h},setBatchNotifyFunction:h=>{r=h},setScheduler:i}}var We=W0(),Nr,ip,$m=(ip=class{constructor(){Z(this,Nr,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wu(this.gcTime)&&z(this,Nr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(zs?1/0:5*60*1e3))}clearGcTimeout(){v(this,Nr)&&(clearTimeout(v(this,Nr)),z(this,Nr,void 0))}},Nr=new WeakMap,ip),xs,_s,bt,Hn,Tt,Be,qi,Pr,ks,na,Vt,xn,op,K0=(op=class extends $m{constructor(t){super();Z(this,ks);Z(this,Vt);Z(this,xs,void 0);Z(this,_s,void 0);Z(this,bt,void 0);Z(this,Hn,void 0);Z(this,Tt,void 0);Z(this,Be,void 0);Z(this,qi,void 0);Z(this,Pr,void 0);z(this,Pr,!1),z(this,qi,t.defaultOptions),ae(this,ks,na).call(this,t.options),z(this,Be,[]),z(this,bt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,z(this,xs,t.state||G0(this.options)),this.state=v(this,xs),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!v(this,Be).length&&this.state.fetchStatus==="idle"&&v(this,bt).remove(this)}setData(t,n){const r=Yu(this.state.data,t,this.options);return ae(this,Vt,xn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ae(this,Vt,xn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r;const n=v(this,Hn);return(r=v(this,Tt))==null||r.cancel(t),n?n.then(Pt).catch(Pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(v(this,xs))}isActive(){return v(this,Be).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||v(this,Be).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!jm(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=v(this,Be).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=v(this,Tt))==null||n.continue()}onOnline(){var n;const t=v(this,Be).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=v(this,Tt))==null||n.continue()}addObserver(t){v(this,Be).includes(t)||(v(this,Be).push(t),this.clearGcTimeout(),v(this,bt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){v(this,Be).includes(t)&&(z(this,Be,v(this,Be).filter(n=>n!==t)),v(this,Be).length||(v(this,Tt)&&(v(this,Pr)?v(this,Tt).cancel({revert:!0}):v(this,Tt).cancelRetry()),this.scheduleGc()),v(this,bt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return v(this,Be).length}invalidate(){this.state.isInvalidated||ae(this,Vt,xn).call(this,{type:"invalidate"})}fetch(t,n){var u,c,p,h;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(v(this,Hn))return(u=v(this,Tt))==null||u.continueRetry(),v(this,Hn)}if(t&&ae(this,ks,na).call(this,t),!this.options.queryFn){const g=v(this,Be).find(x=>x.options.queryFn);g&&ae(this,ks,na).call(this,g.options)}const r=new AbortController,s={queryKey:this.queryKey,meta:this.meta},i=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(z(this,Pr,!0),r.signal)})};i(s);const o=()=>this.options.queryFn?(z(this,Pr,!1),this.options.persister?this.options.persister(this.options.queryFn,s,this):this.options.queryFn(s)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(a),(c=this.options.behavior)==null||c.onFetch(a,this),z(this,_s,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=a.fetchOptions)==null?void 0:p.meta))&&ae(this,Vt,xn).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const l=g=>{var x,_,C,f;Zl(g)&&g.silent||ae(this,Vt,xn).call(this,{type:"error",error:g}),Zl(g)||((_=(x=v(this,bt).config).onError)==null||_.call(x,g,this),(f=(C=v(this,bt).config).onSettled)==null||f.call(C,this.state.data,g,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return z(this,Tt,zm({fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:g=>{var x,_,C,f;if(typeof g>"u"){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(g),(_=(x=v(this,bt).config).onSuccess)==null||_.call(x,g,this),(f=(C=v(this,bt).config).onSettled)==null||f.call(C,g,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(g,x)=>{ae(this,Vt,xn).call(this,{type:"failed",failureCount:g,error:x})},onPause:()=>{ae(this,Vt,xn).call(this,{type:"pause"})},onContinue:()=>{ae(this,Vt,xn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode})),z(this,Hn,v(this,Tt).promise),v(this,Hn)}},xs=new WeakMap,_s=new WeakMap,bt=new WeakMap,Hn=new WeakMap,Tt=new WeakMap,Be=new WeakMap,qi=new WeakMap,Pr=new WeakMap,ks=new WeakSet,na=function(t){this.options={...v(this,qi),...t},this.updateGcTime(this.options.gcTime)},Vt=new WeakSet,xn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:fl(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Zl(s)&&s.revert&&v(this,_s)?{...v(this,_s),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),We.batch(()=>{v(this,Be).forEach(r=>{r.onQueryUpdate()}),v(this,bt).notify({query:this,type:"updated",action:t})})},op);function G0(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var on,ap,Y0=(ap=class extends mo{constructor(t={}){super();Z(this,on,void 0);this.config=t,z(this,on,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??pd(s,n);let o=this.get(i);return o||(o=new K0({cache:this,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){v(this,on).has(t.queryHash)||(v(this,on).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=v(this,on).get(t.queryHash);n&&(t.destroy(),n===t&&v(this,on).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){We.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return v(this,on).get(t)}getAll(){return[...v(this,on).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>jf(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>jf(t,r)):n}notify(t){We.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){We.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){We.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},on=new WeakMap,ap),an,Xi,wt,Ss,ln,Dn,lp,q0=(lp=class extends $m{constructor(t){super();Z(this,ln);Z(this,an,void 0);Z(this,Xi,void 0);Z(this,wt,void 0);Z(this,Ss,void 0);this.mutationId=t.mutationId,z(this,Xi,t.defaultOptions),z(this,wt,t.mutationCache),z(this,an,[]),this.state=t.state||X0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...v(this,Xi),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){v(this,an).includes(t)||(v(this,an).push(t),this.clearGcTimeout(),v(this,wt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){z(this,an,v(this,an).filter(n=>n!==t)),this.scheduleGc(),v(this,wt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){v(this,an).length||(this.state.status==="pending"?this.scheduleGc():v(this,wt).remove(this))}continue(){var t;return((t=v(this,Ss))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,o,a,l,u,c,p,h,g,x,_,C,f,d,m,k,E,O,I;const n=()=>(z(this,Ss,zm({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,X)=>{ae(this,ln,Dn).call(this,{type:"failed",failureCount:N,error:X})},onPause:()=>{ae(this,ln,Dn).call(this,{type:"pause"})},onContinue:()=>{ae(this,ln,Dn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),v(this,Ss).promise),r=this.state.status==="pending";try{if(!r){ae(this,ln,Dn).call(this,{type:"pending",variables:t}),await((i=(s=v(this,wt).config).onMutate)==null?void 0:i.call(s,t,this));const X=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t));X!==this.state.context&&ae(this,ln,Dn).call(this,{type:"pending",context:X,variables:t})}const N=await n();return await((u=(l=v(this,wt).config).onSuccess)==null?void 0:u.call(l,N,t,this.state.context,this)),await((p=(c=this.options).onSuccess)==null?void 0:p.call(c,N,t,this.state.context)),await((g=(h=v(this,wt).config).onSettled)==null?void 0:g.call(h,N,null,this.state.variables,this.state.context,this)),await((_=(x=this.options).onSettled)==null?void 0:_.call(x,N,null,t,this.state.context)),ae(this,ln,Dn).call(this,{type:"success",data:N}),N}catch(N){try{throw await((f=(C=v(this,wt).config).onError)==null?void 0:f.call(C,N,t,this.state.context,this)),await((m=(d=this.options).onError)==null?void 0:m.call(d,N,t,this.state.context)),await((E=(k=v(this,wt).config).onSettled)==null?void 0:E.call(k,void 0,N,this.state.variables,this.state.context,this)),await((I=(O=this.options).onSettled)==null?void 0:I.call(O,void 0,N,t,this.state.context)),N}finally{ae(this,ln,Dn).call(this,{type:"error",error:N})}}}},an=new WeakMap,Xi=new WeakMap,wt=new WeakMap,Ss=new WeakMap,ln=new WeakSet,Dn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!fl(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),We.batch(()=>{v(this,an).forEach(r=>{r.onMutationUpdate(t)}),v(this,wt).notify({mutation:this,type:"updated",action:t})})},lp);function X0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Nt,Ji,Rr,up,J0=(up=class extends mo{constructor(t={}){super();Z(this,Nt,void 0);Z(this,Ji,void 0);Z(this,Rr,void 0);this.config=t,z(this,Nt,[]),z(this,Ji,0)}build(t,n,r){const s=new q0({mutationCache:this,mutationId:++Eo(this,Ji)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){v(this,Nt).push(t),this.notify({type:"added",mutation:t})}remove(t){z(this,Nt,v(this,Nt).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){We.batch(()=>{v(this,Nt).forEach(t=>{this.remove(t)})})}getAll(){return v(this,Nt)}find(t){const n={exact:!0,...t};return v(this,Nt).find(r=>Lf(n,r))}findAll(t={}){return v(this,Nt).filter(n=>Lf(t,n))}notify(t){We.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return z(this,Rr,(v(this,Rr)??Promise.resolve()).then(()=>{const t=v(this,Nt).filter(n=>n.state.isPaused);return We.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(Pt)),Promise.resolve()))}).then(()=>{z(this,Rr,void 0)})),v(this,Rr)}},Nt=new WeakMap,Ji=new WeakMap,Rr=new WeakMap,up);function e1(e){return{onFetch:(t,n)=>{const r=async()=>{var x,_,C,f,d;const s=t.options,i=(C=(_=(x=t.fetchOptions)==null?void 0:x.meta)==null?void 0:_.fetchMore)==null?void 0:C.direction,o=((f=t.state.data)==null?void 0:f.pages)||[],a=((d=t.state.data)==null?void 0:d.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const c=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},p=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),h=async(m,k,E)=>{if(u)return Promise.reject();if(k==null&&m.pages.length)return Promise.resolve(m);const O={queryKey:t.queryKey,pageParam:k,direction:E?"backward":"forward",meta:t.options.meta};c(O);const I=await p(O),{maxPages:N}=t.options,X=E?B0:U0;return{pages:X(m.pages,I,N),pageParams:X(m.pageParams,k,N)}};let g;if(i&&o.length){const m=i==="backward",k=m?t1:$f,E={pages:o,pageParams:a},O=k(s,E);g=await h(E,O,m)}else{g=await h(l,a[0]??s.initialPageParam);const m=e??o.length;for(let k=1;k{var s,i;return(i=(s=t.options).persister)==null?void 0:i.call(s,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function $f(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function t1(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}var De,Wn,Kn,Es,Cs,Gn,bs,Ts,cp,n1=(cp=class{constructor(e={}){Z(this,De,void 0);Z(this,Wn,void 0);Z(this,Kn,void 0);Z(this,Es,void 0);Z(this,Cs,void 0);Z(this,Gn,void 0);Z(this,bs,void 0);Z(this,Ts,void 0);z(this,De,e.queryCache||new Y0),z(this,Wn,e.mutationCache||new J0),z(this,Kn,e.defaultOptions||{}),z(this,Es,new Map),z(this,Cs,new Map),z(this,Gn,0)}mount(){Eo(this,Gn)._++,v(this,Gn)===1&&(z(this,bs,Ra.subscribe(()=>{Ra.isFocused()&&(this.resumePausedMutations(),v(this,De).onFocus())})),z(this,Ts,Oa.subscribe(()=>{Oa.isOnline()&&(this.resumePausedMutations(),v(this,De).onOnline())})))}unmount(){var e,t;Eo(this,Gn)._--,v(this,Gn)===0&&((e=v(this,bs))==null||e.call(this),z(this,bs,void 0),(t=v(this,Ts))==null||t.call(this),z(this,Ts,void 0))}isFetching(e){return v(this,De).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return v(this,Wn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=v(this,De).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t!==void 0?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=v(this,De).get(r.queryHash),i=s==null?void 0:s.state.data,o=$0(t,i);if(!(typeof o>"u"))return v(this,De).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return We.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=v(this,De).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=v(this,De);We.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=v(this,De),r={type:"active",...e};return We.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=We.batch(()=>v(this,De).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Pt).catch(Pt)}invalidateQueries(e={},t={}){return We.batch(()=>{if(v(this,De).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=We.batch(()=>v(this,De).findAll(e).filter(s=>!s.isDisabled()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(Pt)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Pt)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const n=v(this,De).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pt).catch(Pt)}fetchInfiniteQuery(e){return e.behavior=e1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pt).catch(Pt)}resumePausedMutations(){return v(this,Wn).resumePausedMutations()}getQueryCache(){return v(this,De)}getMutationCache(){return v(this,Wn)}getDefaultOptions(){return v(this,Kn)}setDefaultOptions(e){z(this,Kn,e)}setQueryDefaults(e,t){v(this,Es).set(Li(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...v(this,Es).values()];let n={};return t.forEach(r=>{Di(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){v(this,Cs).set(Li(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...v(this,Cs).values()];let n={};return t.forEach(r=>{Di(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...v(this,Kn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=pd(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...v(this,Kn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){v(this,De).clear(),v(this,Wn).clear()}},De=new WeakMap,Wn=new WeakMap,Kn=new WeakMap,Es=new WeakMap,Cs=new WeakMap,Gn=new WeakMap,bs=new WeakMap,Ts=new WeakMap,cp),ct,Se,eo,nt,Or,Ns,un,to,Ps,Rs,Ir,Ar,Yn,Os,Mr,ui,no,qu,ro,Xu,so,Ju,io,ec,oo,tc,ao,nc,lo,rc,Ka,Vm,dp,r1=(dp=class extends mo{constructor(t,n){super();Z(this,Mr);Z(this,no);Z(this,ro);Z(this,so);Z(this,io);Z(this,oo);Z(this,ao);Z(this,lo);Z(this,Ka);Z(this,ct,void 0);Z(this,Se,void 0);Z(this,eo,void 0);Z(this,nt,void 0);Z(this,Or,void 0);Z(this,Ns,void 0);Z(this,un,void 0);Z(this,to,void 0);Z(this,Ps,void 0);Z(this,Rs,void 0);Z(this,Ir,void 0);Z(this,Ar,void 0);Z(this,Yn,void 0);Z(this,Os,new Set);this.options=n,z(this,ct,t),z(this,un,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(v(this,Se).addObserver(this),Vf(v(this,Se),this.options)?ae(this,Mr,ui).call(this):this.updateResult(),ae(this,io,ec).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return sc(v(this,Se),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return sc(v(this,Se),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ae(this,oo,tc).call(this),ae(this,ao,nc).call(this),v(this,Se).removeObserver(this)}setOptions(t,n){const r=this.options,s=v(this,Se);if(this.options=v(this,ct).defaultQueryOptions(t),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");ae(this,lo,rc).call(this),Ku(this.options,r)||v(this,ct).getQueryCache().notify({type:"observerOptionsUpdated",query:v(this,Se),observer:this});const i=this.hasListeners();i&&Uf(v(this,Se),s,this.options,r)&&ae(this,Mr,ui).call(this),this.updateResult(n),i&&(v(this,Se)!==s||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&ae(this,no,qu).call(this);const o=ae(this,ro,Xu).call(this);i&&(v(this,Se)!==s||this.options.enabled!==r.enabled||o!==v(this,Yn))&&ae(this,so,Ju).call(this,o)}getOptimisticResult(t){const n=v(this,ct).getQueryCache().build(v(this,ct),t),r=this.createResult(n,t);return i1(this,r)&&(z(this,nt,r),z(this,Ns,this.options),z(this,Or,v(this,Se).state)),r}getCurrentResult(){return v(this,nt)}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(v(this,Os).add(r),t[r])})}),n}getCurrentQuery(){return v(this,Se)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=v(this,ct).defaultQueryOptions(t),r=v(this,ct).getQueryCache().build(v(this,ct),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return ae(this,Mr,ui).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),v(this,nt)))}createResult(t,n){var O;const r=v(this,Se),s=this.options,i=v(this,nt),o=v(this,Or),a=v(this,Ns),u=t!==r?t.state:v(this,eo),{state:c}=t;let{error:p,errorUpdatedAt:h,fetchStatus:g,status:x}=c,_=!1,C;if(n._optimisticResults){const I=this.hasListeners(),N=!I&&Vf(t,n),X=I&&Uf(t,r,n,s);(N||X)&&(g=fl(t.options.networkMode)?"fetching":"paused",c.dataUpdatedAt||(x="pending")),n._optimisticResults==="isRestoring"&&(g="idle")}if(n.select&&typeof c.data<"u")if(i&&c.data===(o==null?void 0:o.data)&&n.select===v(this,to))C=v(this,Ps);else try{z(this,to,n.select),C=n.select(c.data),C=Yu(i==null?void 0:i.data,C,n),z(this,Ps,C),z(this,un,null)}catch(I){z(this,un,I)}else C=c.data;if(typeof n.placeholderData<"u"&&typeof C>"u"&&x==="pending"){let I;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))I=i.data;else if(I=typeof n.placeholderData=="function"?n.placeholderData((O=v(this,Rs))==null?void 0:O.state.data,v(this,Rs)):n.placeholderData,n.select&&typeof I<"u")try{I=n.select(I),z(this,un,null)}catch(N){z(this,un,N)}typeof I<"u"&&(x="success",C=Yu(i==null?void 0:i.data,I,n),_=!0)}v(this,un)&&(p=v(this,un),C=v(this,Ps),h=Date.now(),x="error");const f=g==="fetching",d=x==="pending",m=x==="error",k=d&&f;return{status:x,fetchStatus:g,isPending:d,isSuccess:x==="success",isError:m,isInitialLoading:k,isLoading:k,data:C,dataUpdatedAt:c.dataUpdatedAt,error:p,errorUpdatedAt:h,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:f,isRefetching:f&&!d,isLoadingError:m&&c.dataUpdatedAt===0,isPaused:g==="paused",isPlaceholderData:_,isRefetchError:m&&c.dataUpdatedAt!==0,isStale:hd(t,n),refetch:this.refetch}}updateResult(t){const n=v(this,nt),r=this.createResult(v(this,Se),this.options);if(z(this,Or,v(this,Se).state),z(this,Ns,this.options),v(this,Or).data!==void 0&&z(this,Rs,v(this,Se)),Ku(r,n))return;z(this,nt,r);const s={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!v(this,Os).size)return!0;const l=new Set(a??v(this,Os));return this.options.throwOnError&&l.add("error"),Object.keys(v(this,nt)).some(u=>{const c=u;return v(this,nt)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(s.listeners=!0),ae(this,Ka,Vm).call(this,{...s,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ae(this,io,ec).call(this)}},ct=new WeakMap,Se=new WeakMap,eo=new WeakMap,nt=new WeakMap,Or=new WeakMap,Ns=new WeakMap,un=new WeakMap,to=new WeakMap,Ps=new WeakMap,Rs=new WeakMap,Ir=new WeakMap,Ar=new WeakMap,Yn=new WeakMap,Os=new WeakMap,Mr=new WeakSet,ui=function(t){ae(this,lo,rc).call(this);let n=v(this,Se).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Pt)),n},no=new WeakSet,qu=function(){if(ae(this,oo,tc).call(this),zs||v(this,nt).isStale||!Wu(this.options.staleTime))return;const n=jm(v(this,nt).dataUpdatedAt,this.options.staleTime)+1;z(this,Ir,setTimeout(()=>{v(this,nt).isStale||this.updateResult()},n))},ro=new WeakSet,Xu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(v(this,Se)):this.options.refetchInterval)??!1},so=new WeakSet,Ju=function(t){ae(this,ao,nc).call(this),z(this,Yn,t),!(zs||this.options.enabled===!1||!Wu(v(this,Yn))||v(this,Yn)===0)&&z(this,Ar,setInterval(()=>{(this.options.refetchIntervalInBackground||Ra.isFocused())&&ae(this,Mr,ui).call(this)},v(this,Yn)))},io=new WeakSet,ec=function(){ae(this,no,qu).call(this),ae(this,so,Ju).call(this,ae(this,ro,Xu).call(this))},oo=new WeakSet,tc=function(){v(this,Ir)&&(clearTimeout(v(this,Ir)),z(this,Ir,void 0))},ao=new WeakSet,nc=function(){v(this,Ar)&&(clearInterval(v(this,Ar)),z(this,Ar,void 0))},lo=new WeakSet,rc=function(){const t=v(this,ct).getQueryCache().build(v(this,ct),this.options);if(t===v(this,Se))return;const n=v(this,Se);z(this,Se,t),z(this,eo,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Ka=new WeakSet,Vm=function(t){We.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(v(this,nt))}),v(this,ct).getQueryCache().notify({query:v(this,Se),type:"observerResultsUpdated"})})},dp);function s1(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Vf(e,t){return s1(e,t)||e.state.dataUpdatedAt>0&&sc(e,t,t.refetchOnMount)}function sc(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&hd(e,t)}return!1}function Uf(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&hd(e,n)}function hd(e,t){return e.isStaleByTime(t.staleTime)}function i1(e,t){return!Ku(e.getCurrentResult(),t)}var Um=j.createContext(void 0),o1=e=>{const t=j.useContext(Um);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},a1=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),H.jsx(Um.Provider,{value:e,children:t})),Bm=j.createContext(!1),l1=()=>j.useContext(Bm);Bm.Provider;function u1(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var c1=j.createContext(u1()),d1=()=>j.useContext(c1);function f1(e,t){return typeof e=="function"?e(...t):!!e}var p1=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},h1=e=>{j.useEffect(()=>{e.clearReset()},[e])},m1=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&f1(n,[e.error,r]),y1=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},v1=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,g1=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function w1(e,t,n){const r=o1(n),s=l1(),i=d1(),o=r.defaultQueryOptions(e);o._optimisticResults=s?"isRestoring":"optimistic",y1(o),p1(o,i),h1(i);const[a]=j.useState(()=>new t(r,o)),l=a.getOptimisticResult(o);if(j.useSyncExternalStore(j.useCallback(u=>{const c=s?()=>{}:a.subscribe(We.batchCalls(u));return a.updateResult(),c},[a,s]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),j.useEffect(()=>{a.setOptions(o,{listeners:!1})},[o,a]),v1(o,l))throw g1(o,a,i);if(m1({result:l,errorResetBoundary:i,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash)}))throw l.error;return o.notifyOnChangeProps?l:a.trackResult(l)}function x1(e,t){return w1(e,r1,t)}function Ql({className:e,...t}){return H.jsx("div",{className:yn("animate-pulse rounded-md bg-muted",e),...t})}const md=j.forwardRef(({className:e,...t},n)=>H.jsx("textarea",{className:yn("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));md.displayName="Textarea";function _1(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}_1(`html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}html[dir=rtl],[data-sonner-toaster][dir=rtl]{--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translate(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-y-position=top]{top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast] [data-button]:focus-visible{box-shadow:0 0 0 2px #0006}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toast][data-theme=dark] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:"";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y: translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y: translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} -`);var k1=e=>{switch(e){case"success":return C1;case"info":return T1;case"warning":return b1;case"error":return N1;default:return null}},S1=Array(12).fill(0),E1=({visible:e})=>b.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},b.createElement("div",{className:"sonner-spinner"},S1.map((t,n)=>b.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),C1=b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},b.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),b1=b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},b.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),T1=b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},b.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),N1=b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},b.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),P1=()=>{let[e,t]=b.useState(!1);return b.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},ic=1,R1=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:ic++,i=this.toasts.find(a=>a.id===s),o=e.dismissible===void 0?!0:e.dismissible;return i?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:n}),{...a,...e,id:s,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:s}),s},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0;return r.then(i=>{if(i&&typeof i.ok=="boolean"&&!i.ok){s=!1;let o=typeof t.error=="function"?t.error(`HTTP error! status: ${i.status}`):t.error,a=typeof t.description=="function"?t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:n,type:"error",message:o,description:a})}else if(t.success!==void 0){s=!1;let o=typeof t.success=="function"?t.success(i):t.success,a=typeof t.description=="function"?t.description(i):t.description;this.create({id:n,type:"success",message:o,description:a})}}).catch(i=>{if(t.error!==void 0){s=!1;let o=typeof t.error=="function"?t.error(i):t.error,a=typeof t.description=="function"?t.description(i):t.description;this.create({id:n,type:"error",message:o,description:a})}}).finally(()=>{var i;s&&(this.dismiss(n),n=void 0),(i=t.finally)==null||i.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||ic++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},zt=new R1,O1=(e,t)=>{let n=(t==null?void 0:t.id)||ic++;return zt.addToast({title:e,...t,id:n}),n},I1=O1,Hl=Object.assign(I1,{success:zt.success,info:zt.info,warning:zt.warning,error:zt.error,custom:zt.custom,message:zt.message,promise:zt.promise,dismiss:zt.dismiss,loading:zt.loading}),A1=3,M1="32px",F1=4e3,j1=356,Zm=14,L1=20,D1=200;function z1(...e){return e.filter(Boolean).join(" ")}var $1=e=>{var t,n,r,s,i,o,a;let{invert:l,toast:u,unstyled:c,interacting:p,setHeights:h,visibleToasts:g,heights:x,index:_,toasts:C,expanded:f,removeToast:d,closeButton:m,style:k,cancelButtonStyle:E,actionButtonStyle:O,className:I="",descriptionClassName:N="",duration:X,position:W,gap:me=Zm,loadingIcon:L,expandByDefault:J,classNames:ee,icons:ce,closeButtonAriaLabel:ye="Close toast",pauseWhenPageIsHidden:Ce,cn:R}=e,[B,Y]=b.useState(!1),[K,te]=b.useState(!1),[xe,Fe]=b.useState(!1),[vt,pe]=b.useState(!1),[Lt,Jt]=b.useState(0),[vr,An]=b.useState(0),Hs=b.useRef(null),Mn=b.useRef(null),wo=_===0,xo=_+1<=g,gt=u.type,gr=u.dismissible!==!1,_d=u.className||"",y=u.descriptionClassName||"",w=b.useMemo(()=>x.findIndex(re=>re.toastId===u.id)||0,[x,u.id]),S=b.useMemo(()=>{var re;return(re=u.closeButton)!=null?re:m},[u.closeButton,m]),D=b.useMemo(()=>u.duration||X||F1,[u.duration,X]),M=b.useRef(0),P=b.useRef(0),Q=b.useRef(0),le=b.useRef(null),[Ae,tt]=W.split("-"),vn=b.useMemo(()=>x.reduce((re,ge,je)=>je>=w?re:re+ge.height,0),[x,w]),_o=P1(),Ws=u.invert||l,wr=gt==="loading";P.current=b.useMemo(()=>w*me+vn,[w,vn]),b.useEffect(()=>{Y(!0)},[]),b.useLayoutEffect(()=>{if(!B)return;let re=Mn.current,ge=re.style.height;re.style.height="auto";let je=re.getBoundingClientRect().height;re.style.height=ge,An(je),h(tn=>tn.find(nn=>nn.toastId===u.id)?tn.map(nn=>nn.toastId===u.id?{...nn,height:je}:nn):[{toastId:u.id,height:je,position:u.position},...tn])},[B,u.title,u.description,h,u.id]);let en=b.useCallback(()=>{te(!0),Jt(P.current),h(re=>re.filter(ge=>ge.toastId!==u.id)),setTimeout(()=>{d(u)},D1)},[u,d,h,P]);b.useEffect(()=>{if(u.promise&>==="loading"||u.duration===1/0||u.type==="loading")return;let re,ge=D;return f||p||Ce&&_o?(()=>{if(Q.current{var je;(je=u.onAutoClose)==null||je.call(u,u),en()},ge)),()=>clearTimeout(re)},[f,p,J,u,D,en,u.promise,gt,Ce,_o]),b.useEffect(()=>{let re=Mn.current;if(re){let ge=re.getBoundingClientRect().height;return An(ge),h(je=>[{toastId:u.id,height:ge,position:u.position},...je]),()=>h(je=>je.filter(tn=>tn.toastId!==u.id))}},[h,u.id]),b.useEffect(()=>{u.delete&&en()},[en,u.delete]);function ko(){return ce!=null&&ce.loading?b.createElement("div",{className:"loader","data-visible":gt==="loading"},ce.loading):L?b.createElement("div",{className:"sonner-loader","data-visible":gt==="loading"},L):b.createElement(E1,{visible:gt==="loading"})}return b.createElement("li",{"aria-live":u.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:Mn,className:R(I,_d,ee==null?void 0:ee.toast,(t=u==null?void 0:u.classNames)==null?void 0:t.toast,ee==null?void 0:ee.default,ee==null?void 0:ee[gt],(n=u==null?void 0:u.classNames)==null?void 0:n[gt]),"data-sonner-toast":"","data-styled":!(u.jsx||u.unstyled||c),"data-mounted":B,"data-promise":!!u.promise,"data-removed":K,"data-visible":xo,"data-y-position":Ae,"data-x-position":tt,"data-index":_,"data-front":wo,"data-swiping":xe,"data-dismissible":gr,"data-type":gt,"data-invert":Ws,"data-swipe-out":vt,"data-expanded":!!(f||J&&B),style:{"--index":_,"--toasts-before":_,"--z-index":C.length-_,"--offset":`${K?Lt:P.current}px`,"--initial-height":J?"auto":`${vr}px`,...k,...u.style},onPointerDown:re=>{wr||!gr||(Hs.current=new Date,Jt(P.current),re.target.setPointerCapture(re.pointerId),re.target.tagName!=="BUTTON"&&(Fe(!0),le.current={x:re.clientX,y:re.clientY}))},onPointerUp:()=>{var re,ge,je,tn;if(vt||!gr)return;le.current=null;let nn=Number(((re=Mn.current)==null?void 0:re.style.getPropertyValue("--swipe-amount").replace("px",""))||0),So=new Date().getTime()-((ge=Hs.current)==null?void 0:ge.getTime()),Cy=Math.abs(nn)/So;if(Math.abs(nn)>=L1||Cy>.11){Jt(P.current),(je=u.onDismiss)==null||je.call(u,u),en(),pe(!0);return}(tn=Mn.current)==null||tn.style.setProperty("--swipe-amount","0px"),Fe(!1)},onPointerMove:re=>{var ge;if(!le.current||!gr)return;let je=re.clientY-le.current.y,tn=re.clientX-le.current.x,nn=(Ae==="top"?Math.min:Math.max)(0,je),So=re.pointerType==="touch"?10:2;Math.abs(nn)>So?(ge=Mn.current)==null||ge.style.setProperty("--swipe-amount",`${je}px`):Math.abs(tn)>So&&(le.current=null)}},S&&!u.jsx?b.createElement("button",{"aria-label":ye,"data-disabled":wr,"data-close-button":!0,onClick:wr||!gr?()=>{}:()=>{var re;en(),(re=u.onDismiss)==null||re.call(u,u)},className:R(ee==null?void 0:ee.closeButton,(r=u==null?void 0:u.classNames)==null?void 0:r.closeButton)},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),b.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,u.jsx||b.isValidElement(u.title)?u.jsx||u.title:b.createElement(b.Fragment,null,gt||u.icon||u.promise?b.createElement("div",{"data-icon":""},u.promise||u.type==="loading"&&!u.icon?u.icon||(ce==null?void 0:ce.loading)||ko():null,u.type!=="loading"?u.icon||(ce==null?void 0:ce[gt])||k1(gt):null):null,b.createElement("div",{"data-content":""},b.createElement("div",{"data-title":"",className:R(ee==null?void 0:ee.title,(s=u==null?void 0:u.classNames)==null?void 0:s.title)},u.title),u.description?b.createElement("div",{"data-description":"",className:R(N,y,ee==null?void 0:ee.description,(i=u==null?void 0:u.classNames)==null?void 0:i.description)},u.description):null),u.cancel?b.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||E,onClick:re=>{var ge;gr&&(en(),(ge=u.cancel)!=null&&ge.onClick&&u.cancel.onClick(re))},className:R(ee==null?void 0:ee.cancelButton,(o=u==null?void 0:u.classNames)==null?void 0:o.cancelButton)},u.cancel.label):null,u.action?b.createElement("button",{"data-button":"",style:u.actionButtonStyle||O,onClick:re=>{var ge;(ge=u.action)==null||ge.onClick(re),!re.defaultPrevented&&en()},className:R(ee==null?void 0:ee.actionButton,(a=u==null?void 0:u.classNames)==null?void 0:a.actionButton)},u.action.label):null))};function Bf(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var V1=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:s,closeButton:i,className:o,offset:a,theme:l="light",richColors:u,duration:c,style:p,visibleToasts:h=A1,toastOptions:g,dir:x=Bf(),gap:_,loadingIcon:C,icons:f,containerAriaLabel:d="Notifications",pauseWhenPageIsHidden:m,cn:k=z1}=e,[E,O]=b.useState([]),I=b.useMemo(()=>Array.from(new Set([n].concat(E.filter(K=>K.position).map(K=>K.position)))),[E,n]),[N,X]=b.useState([]),[W,me]=b.useState(!1),[L,J]=b.useState(!1),[ee,ce]=b.useState(l!=="system"?l:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ye=b.useRef(null),Ce=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=b.useRef(null),B=b.useRef(!1),Y=b.useCallback(K=>O(te=>te.filter(({id:xe})=>xe!==K.id)),[]);return b.useEffect(()=>zt.subscribe(K=>{if(K.dismiss){O(te=>te.map(xe=>xe.id===K.id?{...xe,delete:!0}:xe));return}setTimeout(()=>{Yg.flushSync(()=>{O(te=>{let xe=te.findIndex(Fe=>Fe.id===K.id);return xe!==-1?[...te.slice(0,xe),{...te[xe],...K},...te.slice(xe+1)]:[K,...te]})})})}),[]),b.useEffect(()=>{if(l!=="system"){ce(l);return}l==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ce("dark"):ce("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:K})=>{ce(K?"dark":"light")})},[l]),b.useEffect(()=>{E.length<=1&&me(!1)},[E]),b.useEffect(()=>{let K=te=>{var xe,Fe;r.every(vt=>te[vt]||te.code===vt)&&(me(!0),(xe=ye.current)==null||xe.focus()),te.code==="Escape"&&(document.activeElement===ye.current||(Fe=ye.current)!=null&&Fe.contains(document.activeElement))&&me(!1)};return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[r]),b.useEffect(()=>{if(ye.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,B.current=!1)}},[ye.current]),E.length?b.createElement("section",{"aria-label":`${d} ${Ce}`,tabIndex:-1},I.map((K,te)=>{var xe;let[Fe,vt]=K.split("-");return b.createElement("ol",{key:K,dir:x==="auto"?Bf():x,tabIndex:-1,ref:ye,className:o,"data-sonner-toaster":!0,"data-theme":ee,"data-rich-colors":u,"data-y-position":Fe,"data-x-position":vt,style:{"--front-toast-height":`${((xe=N[0])==null?void 0:xe.height)||0}px`,"--offset":typeof a=="number"?`${a}px`:a||M1,"--width":`${j1}px`,"--gap":`${Zm}px`,...p},onBlur:pe=>{B.current&&!pe.currentTarget.contains(pe.relatedTarget)&&(B.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||B.current||(B.current=!0,R.current=pe.relatedTarget)},onMouseEnter:()=>me(!0),onMouseMove:()=>me(!0),onMouseLeave:()=>{L||me(!1)},onPointerDown:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||J(!0)},onPointerUp:()=>J(!1)},E.filter(pe=>!pe.position&&te===0||pe.position===K).map((pe,Lt)=>{var Jt,vr;return b.createElement($1,{key:pe.id,icons:f,index:Lt,toast:pe,duration:(Jt=g==null?void 0:g.duration)!=null?Jt:c,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:t,visibleToasts:h,closeButton:(vr=g==null?void 0:g.closeButton)!=null?vr:i,interacting:L,position:K,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:Y,toasts:E.filter(An=>An.position==pe.position),heights:N.filter(An=>An.position==pe.position),setHeights:X,expandByDefault:s,gap:_,loadingIcon:C,expanded:W,pauseWhenPageIsHidden:m,cn:k})}))})):null};const U1="Copied to clipboard",B1="Copy to clipboard",Z1="HTTP error! Status:",Q1="Hedera Airdrop List Verifier",H1="Provide a list of Account IDs and a Token ID and this app will return only the accounts which can successfully receive the token as an airdrop.",W1="TokenId",K1="0.0.1234",G1="Account Ids list",Y1="0.0.123, 0.0.124, 0.0.125, 0.0.126",q1="Build list",X1="out of",J1="accounts will be able to receive an airdrop of tokens from",ew="associated accounts",tw="Successfully fetched data",nw="TokenId must be in the format 0.0.x",rw="MinAmount must be a number greater than or equal to 0",sw="Account ids should be comma separated.",dt={copiedToClipboard:U1,copyToClipboard:B1,httpError:Z1,title:Q1,description:H1,tokenId:W1,exampleTokenId:K1,accountIds:G1,exampleAccountIds:Y1,buildList:q1,outOf:X1,textAreaLabel:J1,accounts:ew,successfullyFetchedData:tw,tokenIdFormatError:nw,minAmountFormatError:rw,accountIdsFormatError:sw},Qm=j.forwardRef(({className:e,type:t,...n},r)=>H.jsx("input",{type:t,className:yn("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));Qm.displayName="Input";var yo=e=>e.type==="checkbox",us=e=>e instanceof Date,st=e=>e==null;const Hm=e=>typeof e=="object";var Ve=e=>!st(e)&&!Array.isArray(e)&&Hm(e)&&!us(e),Wm=e=>Ve(e)&&e.target?yo(e.target)?e.target.checked:e.target.value:e,iw=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Km=(e,t)=>e.has(iw(t)),ow=e=>{const t=e.constructor&&e.constructor.prototype;return Ve(t)&&t.hasOwnProperty("isPrototypeOf")},yd=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ut(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(yd&&(e instanceof Blob||e instanceof FileList))&&(n||Ve(e)))if(t=n?[]:{},!n&&!ow(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=ut(e[r]));else return e;return t}var vo=e=>Array.isArray(e)?e.filter(Boolean):[],Ie=e=>e===void 0,F=(e,t,n)=>{if(!t||!Ve(e))return n;const r=vo(t.split(/[,[\].]+?/)).reduce((s,i)=>st(s)?s:s[i],e);return Ie(r)||r===e?Ie(e[t])?n:e[t]:r},Zt=e=>typeof e=="boolean";const Ia={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Qt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},wn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Gm=b.createContext(null),pl=()=>b.useContext(Gm),aw=e=>{const{children:t,...n}=e;return b.createElement(Gm.Provider,{value:n},t)};var Ym=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==Qt.all&&(t._proxyFormState[o]=!r||Qt.all),n&&(n[o]=!0),e[o]}});return s},Rt=e=>Ve(e)&&!Object.keys(e).length,qm=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return Rt(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!r||Qt.all))},ra=e=>Array.isArray(e)?e:[e],Xm=(e,t,n)=>!e||!t||e===t||ra(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function vd(e){const t=b.useRef(e);t.current=e,b.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function lw(e){const t=pl(),{control:n=t.control,disabled:r,name:s,exact:i}=e||{},[o,a]=b.useState(n._formState),l=b.useRef(!0),u=b.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=b.useRef(s);return c.current=s,vd({disabled:r,next:p=>l.current&&Xm(c.current,p.name,i)&&qm(p,u.current,n._updateFormState)&&a({...n._formState,...p}),subject:n._subjects.state}),b.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),Ym(o,n,u.current,!1)}var dn=e=>typeof e=="string",Jm=(e,t,n,r,s)=>dn(e)?(r&&t.watch.add(e),F(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),F(n,i))):(r&&(t.watchAll=!0),n);function uw(e){const t=pl(),{control:n=t.control,name:r,defaultValue:s,disabled:i,exact:o}=e||{},a=b.useRef(r);a.current=r,vd({disabled:i,subject:n._subjects.values,next:c=>{Xm(a.current,c.name,o)&&u(ut(Jm(a.current,n._names,c.values||n._formValues,!1,s)))}});const[l,u]=b.useState(n._getWatch(r,s));return b.useEffect(()=>n._removeUnmounted()),l}var gd=e=>/^\w*$/.test(e),ey=e=>vo(e.replace(/["|']|\]/g,"").split(/\.|\[/)),he=(e,t,n)=>{let r=-1;const s=gd(t)?[t]:ey(t),i=s.length,o=i-1;for(;++r{const c=s._options.shouldUnregister||i,p=(h,g)=>{const x=F(s._fields,h);x&&(x._f.mount=g)};if(p(n,!0),c){const h=ut(F(s._options.defaultValues,n));he(s._defaultValues,n,h),Ie(F(s._formValues,n))&&he(s._formValues,n,h)}return()=>{(o?c&&!s._state.action:c)?s.unregister(n):p(n,!1)}},[n,s,o,i]),b.useEffect(()=>{F(s._fields,n)&&s._updateDisabledField({disabled:r,fields:s._fields,name:n,value:F(s._fields,n)._f.value})},[r,n,s]),{field:{name:n,value:a,...Zt(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:b.useCallback(c=>u.current.onChange({target:{value:Wm(c),name:n},type:Ia.CHANGE}),[n]),onBlur:b.useCallback(()=>u.current.onBlur({target:{value:F(s._formValues,n),name:n},type:Ia.BLUR}),[n,s]),ref:c=>{const p=F(s._fields,n);p&&c&&(p._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:h=>c.setCustomValidity(h),reportValidity:()=>c.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!F(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!F(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!F(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!F(l.validatingFields,n)},error:{enumerable:!0,get:()=>F(l.errors,n)}})}}const dw=e=>e.render(cw(e));var ty=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},Zf=e=>({isOnSubmit:!e||e===Qt.onSubmit,isOnBlur:e===Qt.onBlur,isOnChange:e===Qt.onChange,isOnAll:e===Qt.all,isOnTouch:e===Qt.onTouched}),Qf=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const wi=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=F(e,s);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!r)break;if(o.ref&&t(o.ref,o.name)&&!r)break;wi(a,t)}else Ve(a)&&wi(a,t)}}};var fw=(e,t,n)=>{const r=vo(F(e,n));return he(r,"root",t[n]),he(e,n,r),e},wd=e=>e.type==="file",Jn=e=>typeof e=="function",Aa=e=>{if(!yd)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},sa=e=>dn(e),xd=e=>e.type==="radio",Ma=e=>e instanceof RegExp;const Hf={value:!1,isValid:!1},Wf={value:!0,isValid:!0};var ny=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ie(e[0].attributes.value)?Ie(e[0].value)||e[0].value===""?Wf:{value:e[0].value,isValid:!0}:Wf:Hf}return Hf};const Kf={isValid:!1,value:null};var ry=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Kf):Kf;function Gf(e,t,n="validate"){if(sa(e)||Array.isArray(e)&&e.every(sa)||Zt(e)&&!e)return{type:n,message:sa(e)?e:"",ref:t}}var Gr=e=>Ve(e)&&!Ma(e)?e:{value:e,message:""},Yf=async(e,t,n,r,s)=>{const{ref:i,refs:o,required:a,maxLength:l,minLength:u,min:c,max:p,pattern:h,validate:g,name:x,valueAsNumber:_,mount:C,disabled:f}=e._f,d=F(t,x);if(!C||f)return{};const m=o?o[0]:i,k=L=>{r&&m.reportValidity&&(m.setCustomValidity(Zt(L)?"":L||""),m.reportValidity())},E={},O=xd(i),I=yo(i),N=O||I,X=(_||wd(i))&&Ie(i.value)&&Ie(d)||Aa(i)&&i.value===""||d===""||Array.isArray(d)&&!d.length,W=ty.bind(null,x,n,E),me=(L,J,ee,ce=wn.maxLength,ye=wn.minLength)=>{const Ce=L?J:ee;E[x]={type:L?ce:ye,message:Ce,ref:i,...W(L?ce:ye,Ce)}};if(s?!Array.isArray(d)||!d.length:a&&(!N&&(X||st(d))||Zt(d)&&!d||I&&!ny(o).isValid||O&&!ry(o).isValid)){const{value:L,message:J}=sa(a)?{value:!!a,message:a}:Gr(a);if(L&&(E[x]={type:wn.required,message:J,ref:m,...W(wn.required,J)},!n))return k(J),E}if(!X&&(!st(c)||!st(p))){let L,J;const ee=Gr(p),ce=Gr(c);if(!st(d)&&!isNaN(d)){const ye=i.valueAsNumber||d&&+d;st(ee.value)||(L=ye>ee.value),st(ce.value)||(J=yenew Date(new Date().toDateString()+" "+Y),R=i.type=="time",B=i.type=="week";dn(ee.value)&&d&&(L=R?Ce(d)>Ce(ee.value):B?d>ee.value:ye>new Date(ee.value)),dn(ce.value)&&d&&(J=R?Ce(d)+L.value,ce=!st(J.value)&&d.length<+J.value;if((ee||ce)&&(me(ee,L.message,J.message),!n))return k(E[x].message),E}if(h&&!X&&dn(d)){const{value:L,message:J}=Gr(h);if(Ma(L)&&!d.match(L)&&(E[x]={type:wn.pattern,message:J,ref:i,...W(wn.pattern,J)},!n))return k(J),E}if(g){if(Jn(g)){const L=await g(d,t),J=Gf(L,m);if(J&&(E[x]={...J,...W(wn.validate,J.message)},!n))return k(J.message),E}else if(Ve(g)){let L={};for(const J in g){if(!Rt(L)&&!n)break;const ee=Gf(await g[J](d,t),m,J);ee&&(L={...ee,...W(J,ee.message)},k(ee.message),n&&(E[x]=L))}if(!Rt(L)&&(E[x]={ref:m,...L},!n))return E}}return k(!0),E};function pw(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},Fa=e=>st(e)||!Hm(e);function br(e,t){if(Fa(e)||Fa(t))return e===t;if(us(e)&&us(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n){const i=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const o=t[s];if(us(i)&&us(o)||Ve(i)&&Ve(o)||Array.isArray(i)&&Array.isArray(o)?!br(i,o):i!==o)return!1}}return!0}var sy=e=>e.type==="select-multiple",mw=e=>xd(e)||yo(e),Kl=e=>Aa(e)&&e.isConnected,iy=e=>{for(const t in e)if(Jn(e[t]))return!0;return!1};function ja(e,t={}){const n=Array.isArray(e);if(Ve(e)||n)for(const r in e)Array.isArray(e[r])||Ve(e[r])&&!iy(e[r])?(t[r]=Array.isArray(e[r])?[]:{},ja(e[r],t[r])):st(e[r])||(t[r]=!0);return t}function oy(e,t,n){const r=Array.isArray(e);if(Ve(e)||r)for(const s in e)Array.isArray(e[s])||Ve(e[s])&&!iy(e[s])?Ie(t)||Fa(n[s])?n[s]=Array.isArray(e[s])?ja(e[s],[]):{...ja(e[s])}:oy(e[s],st(t)?{}:t[s],n[s]):n[s]=!br(e[s],t[s]);return n}var Bo=(e,t)=>oy(e,t,ja(t)),ay=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ie(e)?e:t?e===""?NaN:e&&+e:n&&dn(e)?new Date(e):r?r(e):e;function Gl(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return wd(t)?t.files:xd(t)?ry(e.refs).value:sy(t)?[...t.selectedOptions].map(({value:n})=>n):yo(t)?ny(e.refs).value:ay(Ie(t.value)?e.ref.value:t.value,e)}var yw=(e,t,n,r)=>{const s={};for(const i of e){const o=F(t,i);o&&he(s,i,o._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},si=e=>Ie(e)?e:Ma(e)?e.source:Ve(e)?Ma(e.value)?e.value.source:e.value:e,vw=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function qf(e,t,n){const r=F(e,n);if(r||gd(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),o=F(t,i),a=F(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};s.pop()}return{name:n}}var gw=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,ww=(e,t)=>!vo(F(e,t)).length&&Ue(e,t);const xw={mode:Qt.onSubmit,reValidateMode:Qt.onChange,shouldFocusError:!0};function _w(e={}){let t={...xw,...e},n={submitCount:0,isDirty:!1,isLoading:Jn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},s=Ve(t.defaultValues)||Ve(t.values)?ut(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:ut(s),o={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:Wl(),array:Wl(),state:Wl()},h=Zf(t.mode),g=Zf(t.reValidateMode),x=t.criteriaMode===Qt.all,_=y=>w=>{clearTimeout(u),u=setTimeout(y,w)},C=async y=>{if(c.isValid||y){const w=t.resolver?Rt((await N()).errors):await W(r,!0);w!==n.isValid&&p.state.next({isValid:w})}},f=(y,w)=>{(c.isValidating||c.validatingFields)&&((y||Array.from(a.mount)).forEach(S=>S&&he(n.validatingFields,S,!!w)),n.isValidating=Object.values(n.validatingFields).some(S=>S),p.state.next({validatingFields:n.validatingFields,isValidating:n.isValidating}))},d=(y,w=[],S,D,M=!0,P=!0)=>{if(D&&S){if(o.action=!0,P&&Array.isArray(F(r,y))){const Q=S(F(r,y),D.argA,D.argB);M&&he(r,y,Q)}if(P&&Array.isArray(F(n.errors,y))){const Q=S(F(n.errors,y),D.argA,D.argB);M&&he(n.errors,y,Q),ww(n.errors,y)}if(c.touchedFields&&P&&Array.isArray(F(n.touchedFields,y))){const Q=S(F(n.touchedFields,y),D.argA,D.argB);M&&he(n.touchedFields,y,Q)}c.dirtyFields&&(n.dirtyFields=Bo(s,i)),p.state.next({name:y,isDirty:L(y,w),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else he(i,y,w)},m=(y,w)=>{he(n.errors,y,w),p.state.next({errors:n.errors})},k=y=>{n.errors=y,p.state.next({errors:n.errors,isValid:!1})},E=(y,w,S,D)=>{const M=F(r,y);if(M){const P=F(i,y,Ie(S)?F(s,y):S);Ie(P)||D&&D.defaultChecked||w?he(i,y,w?P:Gl(M._f)):ce(y,P),o.mount&&C()}},O=(y,w,S,D,M)=>{let P=!1,Q=!1;const le={name:y},Ae=!!(F(r,y)&&F(r,y)._f.disabled);if(!S||D){c.isDirty&&(Q=n.isDirty,n.isDirty=le.isDirty=L(),P=Q!==le.isDirty);const tt=Ae||br(F(s,y),w);Q=!!(!Ae&&F(n.dirtyFields,y)),tt||Ae?Ue(n.dirtyFields,y):he(n.dirtyFields,y,!0),le.dirtyFields=n.dirtyFields,P=P||c.dirtyFields&&Q!==!tt}if(S){const tt=F(n.touchedFields,y);tt||(he(n.touchedFields,y,S),le.touchedFields=n.touchedFields,P=P||c.touchedFields&&tt!==S)}return P&&M&&p.state.next(le),P?le:{}},I=(y,w,S,D)=>{const M=F(n.errors,y),P=c.isValid&&Zt(w)&&n.isValid!==w;if(e.delayError&&S?(l=_(()=>m(y,S)),l(e.delayError)):(clearTimeout(u),l=null,S?he(n.errors,y,S):Ue(n.errors,y)),(S?!br(M,S):M)||!Rt(D)||P){const Q={...D,...P&&Zt(w)?{isValid:w}:{},errors:n.errors,name:y};n={...n,...Q},p.state.next(Q)}},N=async y=>{f(y,!0);const w=await t.resolver(i,t.context,yw(y||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return f(y),w},X=async y=>{const{errors:w}=await N(y);if(y)for(const S of y){const D=F(w,S);D?he(n.errors,S,D):Ue(n.errors,S)}else n.errors=w;return w},W=async(y,w,S={valid:!0})=>{for(const D in y){const M=y[D];if(M){const{_f:P,...Q}=M;if(P){const le=a.array.has(P.name);f([D],!0);const Ae=await Yf(M,i,x,t.shouldUseNativeValidation&&!w,le);if(f([D]),Ae[P.name]&&(S.valid=!1,w))break;!w&&(F(Ae,P.name)?le?fw(n.errors,Ae,P.name):he(n.errors,P.name,Ae[P.name]):Ue(n.errors,P.name))}Q&&await W(Q,w,S)}}return S.valid},me=()=>{for(const y of a.unMount){const w=F(r,y);w&&(w._f.refs?w._f.refs.every(S=>!Kl(S)):!Kl(w._f.ref))&&pe(y)}a.unMount=new Set},L=(y,w)=>(y&&w&&he(i,y,w),!br(K(),s)),J=(y,w,S)=>Jm(y,a,{...o.mount?i:Ie(w)?s:dn(y)?{[y]:w}:w},S,w),ee=y=>vo(F(o.mount?i:s,y,e.shouldUnregister?F(s,y,[]):[])),ce=(y,w,S={})=>{const D=F(r,y);let M=w;if(D){const P=D._f;P&&(!P.disabled&&he(i,y,ay(w,P)),M=Aa(P.ref)&&st(w)?"":w,sy(P.ref)?[...P.ref.options].forEach(Q=>Q.selected=M.includes(Q.value)):P.refs?yo(P.ref)?P.refs.length>1?P.refs.forEach(Q=>(!Q.defaultChecked||!Q.disabled)&&(Q.checked=Array.isArray(M)?!!M.find(le=>le===Q.value):M===Q.value)):P.refs[0]&&(P.refs[0].checked=!!M):P.refs.forEach(Q=>Q.checked=Q.value===M):wd(P.ref)?P.ref.value="":(P.ref.value=M,P.ref.type||p.values.next({name:y,values:{...i}})))}(S.shouldDirty||S.shouldTouch)&&O(y,M,S.shouldTouch,S.shouldDirty,!0),S.shouldValidate&&Y(y)},ye=(y,w,S)=>{for(const D in w){const M=w[D],P=`${y}.${D}`,Q=F(r,P);(a.array.has(y)||!Fa(M)||Q&&!Q._f)&&!us(M)?ye(P,M,S):ce(P,M,S)}},Ce=(y,w,S={})=>{const D=F(r,y),M=a.array.has(y),P=ut(w);he(i,y,P),M?(p.array.next({name:y,values:{...i}}),(c.isDirty||c.dirtyFields)&&S.shouldDirty&&p.state.next({name:y,dirtyFields:Bo(s,i),isDirty:L(y,P)})):D&&!D._f&&!st(P)?ye(y,P,S):ce(y,P,S),Qf(y,a)&&p.state.next({...n}),p.values.next({name:o.mount?y:void 0,values:{...i}})},R=async y=>{const w=y.target;let S=w.name,D=!0;const M=F(r,S),P=()=>w.type?Gl(M._f):Wm(y),Q=le=>{D=Number.isNaN(le)||le===F(i,S,le)};if(M){let le,Ae;const tt=P(),vn=y.type===Ia.BLUR||y.type===Ia.FOCUS_OUT,_o=!vw(M._f)&&!t.resolver&&!F(n.errors,S)&&!M._f.deps||gw(vn,F(n.touchedFields,S),n.isSubmitted,g,h),Ws=Qf(S,a,vn);he(i,S,tt),vn?(M._f.onBlur&&M._f.onBlur(y),l&&l(0)):M._f.onChange&&M._f.onChange(y);const wr=O(S,tt,vn,!1),en=!Rt(wr)||Ws;if(!vn&&p.values.next({name:S,type:y.type,values:{...i}}),_o)return c.isValid&&C(),en&&p.state.next({name:S,...Ws?{}:wr});if(!vn&&Ws&&p.state.next({...n}),t.resolver){const{errors:ko}=await N([S]);if(Q(tt),D){const re=qf(n.errors,r,S),ge=qf(ko,r,re.name||S);le=ge.error,S=ge.name,Ae=Rt(ko)}}else f([S],!0),le=(await Yf(M,i,x,t.shouldUseNativeValidation))[S],f([S]),Q(tt),D&&(le?Ae=!1:c.isValid&&(Ae=await W(r,!0)));D&&(M._f.deps&&Y(M._f.deps),I(S,Ae,le,wr))}},B=(y,w)=>{if(F(n.errors,w)&&y.focus)return y.focus(),1},Y=async(y,w={})=>{let S,D;const M=ra(y);if(t.resolver){const P=await X(Ie(y)?y:M);S=Rt(P),D=y?!M.some(Q=>F(P,Q)):S}else y?(D=(await Promise.all(M.map(async P=>{const Q=F(r,P);return await W(Q&&Q._f?{[P]:Q}:Q)}))).every(Boolean),!(!D&&!n.isValid)&&C()):D=S=await W(r);return p.state.next({...!dn(y)||c.isValid&&S!==n.isValid?{}:{name:y},...t.resolver||!y?{isValid:S}:{},errors:n.errors}),w.shouldFocus&&!D&&wi(r,B,y?M:a.mount),D},K=y=>{const w={...s,...o.mount?i:{}};return Ie(y)?w:dn(y)?F(w,y):y.map(S=>F(w,S))},te=(y,w)=>({invalid:!!F((w||n).errors,y),isDirty:!!F((w||n).dirtyFields,y),isTouched:!!F((w||n).touchedFields,y),isValidating:!!F((w||n).validatingFields,y),error:F((w||n).errors,y)}),xe=y=>{y&&ra(y).forEach(w=>Ue(n.errors,w)),p.state.next({errors:y?n.errors:{}})},Fe=(y,w,S)=>{const D=(F(r,y,{_f:{}})._f||{}).ref;he(n.errors,y,{...w,ref:D}),p.state.next({name:y,errors:n.errors,isValid:!1}),S&&S.shouldFocus&&D&&D.focus&&D.focus()},vt=(y,w)=>Jn(y)?p.values.subscribe({next:S=>y(J(void 0,w),S)}):J(y,w,!0),pe=(y,w={})=>{for(const S of y?ra(y):a.mount)a.mount.delete(S),a.array.delete(S),w.keepValue||(Ue(r,S),Ue(i,S)),!w.keepError&&Ue(n.errors,S),!w.keepDirty&&Ue(n.dirtyFields,S),!w.keepTouched&&Ue(n.touchedFields,S),!w.keepIsValidating&&Ue(n.validatingFields,S),!t.shouldUnregister&&!w.keepDefaultValue&&Ue(s,S);p.values.next({values:{...i}}),p.state.next({...n,...w.keepDirty?{isDirty:L()}:{}}),!w.keepIsValid&&C()},Lt=({disabled:y,name:w,field:S,fields:D,value:M})=>{if(Zt(y)){const P=y?void 0:Ie(M)?Gl(S?S._f:F(D,w)._f):M;he(i,w,P),O(w,P,!1,!1,!0)}},Jt=(y,w={})=>{let S=F(r,y);const D=Zt(w.disabled);return he(r,y,{...S||{},_f:{...S&&S._f?S._f:{ref:{name:y}},name:y,mount:!0,...w}}),a.mount.add(y),S?Lt({field:S,disabled:w.disabled,name:y,value:w.value}):E(y,!0,w.value),{...D?{disabled:w.disabled}:{},...t.progressive?{required:!!w.required,min:si(w.min),max:si(w.max),minLength:si(w.minLength),maxLength:si(w.maxLength),pattern:si(w.pattern)}:{},name:y,onChange:R,onBlur:R,ref:M=>{if(M){Jt(y,w),S=F(r,y);const P=Ie(M.value)&&M.querySelectorAll&&M.querySelectorAll("input,select,textarea")[0]||M,Q=mw(P),le=S._f.refs||[];if(Q?le.find(Ae=>Ae===P):P===S._f.ref)return;he(r,y,{_f:{...S._f,...Q?{refs:[...le.filter(Kl),P,...Array.isArray(F(s,y))?[{}]:[]],ref:{type:P.type,name:y}}:{ref:P}}}),E(y,!1,void 0,P)}else S=F(r,y,{}),S._f&&(S._f.mount=!1),(t.shouldUnregister||w.shouldUnregister)&&!(Km(a.array,y)&&o.action)&&a.unMount.add(y)}}},vr=()=>t.shouldFocusError&&wi(r,B,a.mount),An=y=>{Zt(y)&&(p.state.next({disabled:y}),wi(r,(w,S)=>{let D=y;const M=F(r,S);M&&Zt(M._f.disabled)&&(D||(D=M._f.disabled)),w.disabled=D},0,!1))},Hs=(y,w)=>async S=>{let D;S&&(S.preventDefault&&S.preventDefault(),S.persist&&S.persist());let M=ut(i);if(p.state.next({isSubmitting:!0}),t.resolver){const{errors:P,values:Q}=await N();n.errors=P,M=Q}else await W(r);if(Ue(n.errors,"root"),Rt(n.errors)){p.state.next({errors:{}});try{await y(M,S)}catch(P){D=P}}else w&&await w({...n.errors},S),vr(),setTimeout(vr);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Rt(n.errors)&&!D,submitCount:n.submitCount+1,errors:n.errors}),D)throw D},Mn=(y,w={})=>{F(r,y)&&(Ie(w.defaultValue)?Ce(y,ut(F(s,y))):(Ce(y,w.defaultValue),he(s,y,ut(w.defaultValue))),w.keepTouched||Ue(n.touchedFields,y),w.keepDirty||(Ue(n.dirtyFields,y),n.isDirty=w.defaultValue?L(y,ut(F(s,y))):L()),w.keepError||(Ue(n.errors,y),c.isValid&&C()),p.state.next({...n}))},wo=(y,w={})=>{const S=y?ut(y):s,D=ut(S),M=Rt(y),P=M?s:D;if(w.keepDefaultValues||(s=S),!w.keepValues){if(w.keepDirtyValues)for(const Q of a.mount)F(n.dirtyFields,Q)?he(P,Q,F(i,Q)):Ce(Q,F(P,Q));else{if(yd&&Ie(y))for(const Q of a.mount){const le=F(r,Q);if(le&&le._f){const Ae=Array.isArray(le._f.refs)?le._f.refs[0]:le._f.ref;if(Aa(Ae)){const tt=Ae.closest("form");if(tt){tt.reset();break}}}}r={}}i=e.shouldUnregister?w.keepDefaultValues?ut(s):{}:ut(P),p.array.next({values:{...P}}),p.values.next({values:{...P}})}a={mount:w.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!c.isValid||!!w.keepIsValid||!!w.keepDirtyValues,o.watch=!!e.shouldUnregister,p.state.next({submitCount:w.keepSubmitCount?n.submitCount:0,isDirty:M?!1:w.keepDirty?n.isDirty:!!(w.keepDefaultValues&&!br(y,s)),isSubmitted:w.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:M?[]:w.keepDirtyValues?w.keepDefaultValues&&i?Bo(s,i):n.dirtyFields:w.keepDefaultValues&&y?Bo(s,y):{},touchedFields:w.keepTouched?n.touchedFields:{},errors:w.keepErrors?n.errors:{},isSubmitSuccessful:w.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},xo=(y,w)=>wo(Jn(y)?y(i):y,w);return{control:{register:Jt,unregister:pe,getFieldState:te,handleSubmit:Hs,setError:Fe,_executeSchema:N,_getWatch:J,_getDirty:L,_updateValid:C,_removeUnmounted:me,_updateFieldArray:d,_updateDisabledField:Lt,_getFieldArray:ee,_reset:wo,_resetDefaultValues:()=>Jn(t.defaultValues)&&t.defaultValues().then(y=>{xo(y,t.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:y=>{n={...n,...y}},_disableForm:An,_subjects:p,_proxyFormState:c,_setErrors:k,get _fields(){return r},get _formValues(){return i},get _state(){return o},set _state(y){o=y},get _defaultValues(){return s},get _names(){return a},set _names(y){a=y},get _formState(){return n},set _formState(y){n=y},get _options(){return t},set _options(y){t={...t,...y}}},trigger:Y,register:Jt,handleSubmit:Hs,watch:vt,setValue:Ce,getValues:K,reset:xo,resetField:Mn,clearErrors:xe,unregister:pe,setError:Fe,setFocus:(y,w={})=>{const S=F(r,y),D=S&&S._f;if(D){const M=D.refs?D.refs[0]:D.ref;M.focus&&(M.focus(),w.shouldSelect&&M.select())}},getFieldState:te}}function kw(e={}){const t=b.useRef(),n=b.useRef(),[r,s]=b.useState({isDirty:!1,isValidating:!1,isLoading:Jn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Jn(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={..._w(e),formState:r});const i=t.current.control;return i._options=e,vd({subject:i._subjects.state,next:o=>{qm(o,i._proxyFormState,i._updateFormState,!0)&&s({...i._formState})}}),b.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),b.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),b.useEffect(()=>{e.values&&!br(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),b.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),b.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),b.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=Ym(r,i),t.current}const Sw=aw,ly=j.createContext({}),Xf=({...e})=>H.jsx(ly.Provider,{value:{name:e.name},children:H.jsx(dw,{...e})}),hl=()=>{const e=j.useContext(ly),t=j.useContext(uy),{getFieldState:n,formState:r}=pl(),s=n(e.name,r);if(!e)throw new Error("useFormField should be used within ");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},uy=j.createContext({}),oc=j.forwardRef(({className:e,...t},n)=>{const r=j.useId();return H.jsx(uy.Provider,{value:{id:r},children:H.jsx("div",{ref:n,className:yn("space-y-2",e),...t})})});oc.displayName="FormItem";const ac=j.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:s}=hl();return H.jsx(fd,{ref:n,className:yn(r&&"text-destructive",e),htmlFor:s,...t})});ac.displayName="FormLabel";const lc=j.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:s,formMessageId:i}=hl();return H.jsx(dl,{ref:t,id:r,"aria-describedby":n?`${s} ${i}`:`${s}`,"aria-invalid":!!n,...e})});lc.displayName="FormControl";const Ew=j.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=hl();return H.jsx("p",{ref:n,id:r,className:yn("text-sm text-muted-foreground",e),...t})});Ew.displayName="FormDescription";const uc=j.forwardRef(({className:e,children:t,...n},r)=>{const{error:s,formMessageId:i}=hl(),o=s?String(s==null?void 0:s.message):t;return o?H.jsx("p",{ref:r,id:i,className:yn("text-sm font-medium text-destructive",e),...n,children:o}):null});uc.displayName="FormMessage";var fe;(function(e){e.assertEqual=s=>s;function t(s){}e.assertIs=t;function n(s){throw new Error}e.assertNever=n,e.arrayToEnum=s=>{const i={};for(const o of s)i[o]=o;return i},e.getValidEnumValues=s=>{const i=e.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(const a of i)o[a]=s[a];return e.objectValues(o)},e.objectValues=s=>e.objectKeys(s).map(function(i){return s[i]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},e.find=(s,i)=>{for(const o of s)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function r(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(fe||(fe={}));var cc;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(cc||(cc={}));const $=fe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Bn=e=>{switch(typeof e){case"undefined":return $.undefined;case"string":return $.string;case"number":return isNaN(e)?$.nan:$.number;case"boolean":return $.boolean;case"function":return $.function;case"bigint":return $.bigint;case"symbol":return $.symbol;case"object":return Array.isArray(e)?$.array:e===null?$.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?$.promise:typeof Map<"u"&&e instanceof Map?$.map:typeof Set<"u"&&e instanceof Set?$.set:typeof Date<"u"&&e instanceof Date?$.date:$.object;default:return $.unknown}},A=fe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Cw=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Gt extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(i){return i.message},r={_errors:[]},s=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let a=r,l=0;for(;ln.message){const n={},r=[];for(const s of this.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(t(s))):r.push(t(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Gt.create=e=>new Gt(e);const zi=(e,t)=>{let n;switch(e.code){case A.invalid_type:e.received===$.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case A.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,fe.jsonStringifyReplacer)}`;break;case A.unrecognized_keys:n=`Unrecognized key(s) in object: ${fe.joinValues(e.keys,", ")}`;break;case A.invalid_union:n="Invalid input";break;case A.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${fe.joinValues(e.options)}`;break;case A.invalid_enum_value:n=`Invalid enum value. Expected ${fe.joinValues(e.options)}, received '${e.received}'`;break;case A.invalid_arguments:n="Invalid function arguments";break;case A.invalid_return_type:n="Invalid function return type";break;case A.invalid_date:n="Invalid date";break;case A.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:fe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case A.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case A.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case A.custom:n="Invalid input";break;case A.invalid_intersection_types:n="Intersection results could not be merged";break;case A.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case A.not_finite:n="Number must be finite";break;default:n=t.defaultError,fe.assertNever(e)}return{message:n}};let cy=zi;function bw(e){cy=e}function La(){return cy}const Da=e=>{const{data:t,path:n,errorMaps:r,issueData:s}=e,i=[...n,...s.path||[]],o={...s,path:i};let a="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)a=u(o,{data:t,defaultError:a}).message;return{...s,path:i,message:s.message||a}},Tw=[];function V(e,t){const n=Da({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,La(),zi].filter(r=>!!r)});e.common.issues.push(n)}class et{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const s of n){if(s.status==="aborted")return ne;s.status==="dirty"&&t.dirty(),r.push(s.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const s of n)r.push({key:await s.key,value:await s.value});return et.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const s of n){const{key:i,value:o}=s;if(i.status==="aborted"||o.status==="aborted")return ne;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const ne=Object.freeze({status:"aborted"}),dy=e=>({status:"dirty",value:e}),ot=e=>({status:"valid",value:e}),dc=e=>e.status==="aborted",fc=e=>e.status==="dirty",$i=e=>e.status==="valid",za=e=>typeof Promise<"u"&&e instanceof Promise;var G;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(G||(G={}));class hn{constructor(t,n,r,s){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Jf=(e,t)=>{if($i(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Gt(e.common.issues);return this._error=n,this._error}}};function se(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:s}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(o,a)=>o.code!=="invalid_type"?{message:a.defaultError}:typeof a.data>"u"?{message:r??a.defaultError}:{message:n??a.defaultError},description:s}}class oe{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Bn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Bn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new et,ctx:{common:t.parent.common,data:t.data,parsedType:Bn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(za(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const s={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Bn(t)},i=this._parseSync({data:t,path:s.path,parent:s});return Jf(s,i)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Bn(t)},s=this._parse({data:t,path:r.path,parent:r}),i=await(za(s)?s:Promise.resolve(s));return Jf(r,i)}refine(t,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,i)=>{const o=t(s),a=()=>i.addIssue({code:A.custom,...r(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,s)=>t(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(t){return new Xt({schema:this,typeName:q.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return bn.create(this,this._def)}nullable(){return Qr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Yt.create(this,this._def)}promise(){return Vs.create(this,this._def)}or(t){return Zi.create([this,t],this._def)}and(t){return Qi.create(this,t,this._def)}transform(t){return new Xt({...se(this._def),schema:this,typeName:q.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Yi({...se(this._def),innerType:this,defaultValue:n,typeName:q.ZodDefault})}brand(){return new py({typeName:q.ZodBranded,type:this,...se(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Ba({...se(this._def),innerType:this,catchValue:n,typeName:q.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return go.create(this,t)}readonly(){return Qa.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Nw=/^c[^\s-]{8,}$/i,Pw=/^[a-z][a-z0-9]*$/,Rw=/^[0-9A-HJKMNP-TV-Z]{26}$/,Ow=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Iw=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Aw="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Yl;const Mw=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,Fw=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,jw=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function Lw(e,t){return!!((t==="v4"||!t)&&Mw.test(e)||(t==="v6"||!t)&&Fw.test(e))}class Ht extends oe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==$.string){const i=this._getOrReturnCtx(t);return V(i,{code:A.invalid_type,expected:$.string,received:i.parsedType}),ne}const r=new et;let s;for(const i of this._def.checks)if(i.kind==="min")t.data.lengthi.value&&(s=this._getOrReturnCtx(t,s),V(s,{code:A.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,a=t.data.lengtht.test(s),{validation:n,code:A.invalid_string,...G.errToObj(r)})}_addCheck(t){return new Ht({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...G.errToObj(t)})}url(t){return this._addCheck({kind:"url",...G.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...G.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...G.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...G.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...G.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...G.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...G.errToObj(t)})}datetime(t){var n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,...G.errToObj(t==null?void 0:t.message)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...G.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...G.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...G.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...G.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...G.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...G.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...G.errToObj(n)})}nonempty(t){return this.min(1,G.errToObj(t))}trim(){return new Ht({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ht({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ht({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Ht({checks:[],typeName:q.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...se(e)})};function Dw(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=n>r?n:r,i=parseInt(e.toFixed(s).replace(".","")),o=parseInt(t.toFixed(s).replace(".",""));return i%o/Math.pow(10,s)}class dr extends oe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==$.number){const i=this._getOrReturnCtx(t);return V(i,{code:A.invalid_type,expected:$.number,received:i.parsedType}),ne}let r;const s=new et;for(const i of this._def.checks)i.kind==="int"?fe.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),V(r,{code:A.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),V(r,{code:A.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?Dw(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),V(r,{code:A.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),V(r,{code:A.not_finite,message:i.message}),s.dirty()):fe.assertNever(i);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,G.toString(n))}gt(t,n){return this.setLimit("min",t,!1,G.toString(n))}lte(t,n){return this.setLimit("max",t,!0,G.toString(n))}lt(t,n){return this.setLimit("max",t,!1,G.toString(n))}setLimit(t,n,r,s){return new dr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:G.toString(s)}]})}_addCheck(t){return new dr({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:G.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:G.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:G.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:G.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:G.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:G.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:G.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:G.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:G.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&fe.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew dr({checks:[],typeName:q.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...se(e)});class fr extends oe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==$.bigint){const i=this._getOrReturnCtx(t);return V(i,{code:A.invalid_type,expected:$.bigint,received:i.parsedType}),ne}let r;const s=new et;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),V(r,{code:A.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),V(r,{code:A.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):fe.assertNever(i);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,G.toString(n))}gt(t,n){return this.setLimit("min",t,!1,G.toString(n))}lte(t,n){return this.setLimit("max",t,!0,G.toString(n))}lt(t,n){return this.setLimit("max",t,!1,G.toString(n))}setLimit(t,n,r,s){return new fr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:G.toString(s)}]})}_addCheck(t){return new fr({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:G.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:G.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:G.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:G.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:G.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new fr({checks:[],typeName:q.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...se(e)})};class Vi extends oe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==$.boolean){const r=this._getOrReturnCtx(t);return V(r,{code:A.invalid_type,expected:$.boolean,received:r.parsedType}),ne}return ot(t.data)}}Vi.create=e=>new Vi({typeName:q.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...se(e)});class Br extends oe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==$.date){const i=this._getOrReturnCtx(t);return V(i,{code:A.invalid_type,expected:$.date,received:i.parsedType}),ne}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return V(i,{code:A.invalid_date}),ne}const r=new et;let s;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()i.value&&(s=this._getOrReturnCtx(t,s),V(s,{code:A.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):fe.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Br({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:G.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:G.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew Br({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:q.ZodDate,...se(e)});class $a extends oe{_parse(t){if(this._getType(t)!==$.symbol){const r=this._getOrReturnCtx(t);return V(r,{code:A.invalid_type,expected:$.symbol,received:r.parsedType}),ne}return ot(t.data)}}$a.create=e=>new $a({typeName:q.ZodSymbol,...se(e)});class Ui extends oe{_parse(t){if(this._getType(t)!==$.undefined){const r=this._getOrReturnCtx(t);return V(r,{code:A.invalid_type,expected:$.undefined,received:r.parsedType}),ne}return ot(t.data)}}Ui.create=e=>new Ui({typeName:q.ZodUndefined,...se(e)});class Bi extends oe{_parse(t){if(this._getType(t)!==$.null){const r=this._getOrReturnCtx(t);return V(r,{code:A.invalid_type,expected:$.null,received:r.parsedType}),ne}return ot(t.data)}}Bi.create=e=>new Bi({typeName:q.ZodNull,...se(e)});class $s extends oe{constructor(){super(...arguments),this._any=!0}_parse(t){return ot(t.data)}}$s.create=e=>new $s({typeName:q.ZodAny,...se(e)});class Lr extends oe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ot(t.data)}}Lr.create=e=>new Lr({typeName:q.ZodUnknown,...se(e)});class On extends oe{_parse(t){const n=this._getOrReturnCtx(t);return V(n,{code:A.invalid_type,expected:$.never,received:n.parsedType}),ne}}On.create=e=>new On({typeName:q.ZodNever,...se(e)});class Va extends oe{_parse(t){if(this._getType(t)!==$.undefined){const r=this._getOrReturnCtx(t);return V(r,{code:A.invalid_type,expected:$.void,received:r.parsedType}),ne}return ot(t.data)}}Va.create=e=>new Va({typeName:q.ZodVoid,...se(e)});class Yt extends oe{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),s=this._def;if(n.parsedType!==$.array)return V(n,{code:A.invalid_type,expected:$.array,received:n.parsedType}),ne;if(s.exactLength!==null){const o=n.data.length>s.exactLength.value,a=n.data.lengths.maxLength.value&&(V(n,{code:A.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>s.type._parseAsync(new hn(n,o,n.path,a)))).then(o=>et.mergeArray(r,o));const i=[...n.data].map((o,a)=>s.type._parseSync(new hn(n,o,n.path,a)));return et.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Yt({...this._def,minLength:{value:t,message:G.toString(n)}})}max(t,n){return new Yt({...this._def,maxLength:{value:t,message:G.toString(n)}})}length(t,n){return new Yt({...this._def,exactLength:{value:t,message:G.toString(n)}})}nonempty(t){return this.min(1,t)}}Yt.create=(e,t)=>new Yt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:q.ZodArray,...se(t)});function Yr(e){if(e instanceof Te){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=bn.create(Yr(r))}return new Te({...e._def,shape:()=>t})}else return e instanceof Yt?new Yt({...e._def,type:Yr(e.element)}):e instanceof bn?bn.create(Yr(e.unwrap())):e instanceof Qr?Qr.create(Yr(e.unwrap())):e instanceof mn?mn.create(e.items.map(t=>Yr(t))):e}class Te extends oe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=fe.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==$.object){const u=this._getOrReturnCtx(t);return V(u,{code:A.invalid_type,expected:$.object,received:u.parsedType}),ne}const{status:r,ctx:s}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof On&&this._def.unknownKeys==="strip"))for(const u in s.data)o.includes(u)||a.push(u);const l=[];for(const u of o){const c=i[u],p=s.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new hn(s,p,s.path,u)),alwaysSet:u in s.data})}if(this._def.catchall instanceof On){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of a)l.push({key:{status:"valid",value:c},value:{status:"valid",value:s.data[c]}});else if(u==="strict")a.length>0&&(V(s,{code:A.unrecognized_keys,keys:a}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of a){const p=s.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new hn(s,p,s.path,c)),alwaysSet:c in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const p=await c.key;u.push({key:p,value:await c.value,alwaysSet:c.alwaysSet})}return u}).then(u=>et.mergeObjectSync(r,u)):et.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return G.errToObj,new Te({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var s,i,o,a;const l=(o=(i=(s=this._def).errorMap)===null||i===void 0?void 0:i.call(s,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=G.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new Te({...this._def,unknownKeys:"strip"})}passthrough(){return new Te({...this._def,unknownKeys:"passthrough"})}extend(t){return new Te({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Te({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:q.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Te({...this._def,catchall:t})}pick(t){const n={};return fe.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Te({...this._def,shape:()=>n})}omit(t){const n={};return fe.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Te({...this._def,shape:()=>n})}deepPartial(){return Yr(this)}partial(t){const n={};return fe.objectKeys(this.shape).forEach(r=>{const s=this.shape[r];t&&!t[r]?n[r]=s:n[r]=s.optional()}),new Te({...this._def,shape:()=>n})}required(t){const n={};return fe.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof bn;)i=i._def.innerType;n[r]=i}}),new Te({...this._def,shape:()=>n})}keyof(){return fy(fe.objectKeys(this.shape))}}Te.create=(e,t)=>new Te({shape:()=>e,unknownKeys:"strip",catchall:On.create(),typeName:q.ZodObject,...se(t)});Te.strictCreate=(e,t)=>new Te({shape:()=>e,unknownKeys:"strict",catchall:On.create(),typeName:q.ZodObject,...se(t)});Te.lazycreate=(e,t)=>new Te({shape:e,unknownKeys:"strip",catchall:On.create(),typeName:q.ZodObject,...se(t)});class Zi extends oe{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function s(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new Gt(a.ctx.common.issues));return V(n,{code:A.invalid_union,unionErrors:o}),ne}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(s);{let i;const o=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!i&&(i={result:c,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(l=>new Gt(l));return V(n,{code:A.invalid_union,unionErrors:a}),ne}}get options(){return this._def.options}}Zi.create=(e,t)=>new Zi({options:e,typeName:q.ZodUnion,...se(t)});const ia=e=>e instanceof Wi?ia(e.schema):e instanceof Xt?ia(e.innerType()):e instanceof Ki?[e.value]:e instanceof pr?e.options:e instanceof Gi?Object.keys(e.enum):e instanceof Yi?ia(e._def.innerType):e instanceof Ui?[void 0]:e instanceof Bi?[null]:null;class ml extends oe{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==$.object)return V(n,{code:A.invalid_type,expected:$.object,received:n.parsedType}),ne;const r=this.discriminator,s=n.data[r],i=this.optionsMap.get(s);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(V(n,{code:A.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),ne)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const s=new Map;for(const i of n){const o=ia(i.shape[t]);if(!o)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of o){if(s.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);s.set(a,i)}}return new ml({typeName:q.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:s,...se(r)})}}function pc(e,t){const n=Bn(e),r=Bn(t);if(e===t)return{valid:!0,data:e};if(n===$.object&&r===$.object){const s=fe.objectKeys(t),i=fe.objectKeys(e).filter(a=>s.indexOf(a)!==-1),o={...e,...t};for(const a of i){const l=pc(e[a],t[a]);if(!l.valid)return{valid:!1};o[a]=l.data}return{valid:!0,data:o}}else if(n===$.array&&r===$.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let i=0;i{if(dc(i)||dc(o))return ne;const a=pc(i.value,o.value);return a.valid?((fc(i)||fc(o))&&n.dirty(),{status:n.value,value:a.data}):(V(r,{code:A.invalid_intersection_types}),ne)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Qi.create=(e,t,n)=>new Qi({left:e,right:t,typeName:q.ZodIntersection,...se(n)});class mn extends oe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.array)return V(r,{code:A.invalid_type,expected:$.array,received:r.parsedType}),ne;if(r.data.lengththis._def.items.length&&(V(r,{code:A.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new hn(r,o,r.path,a)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>et.mergeArray(n,o)):et.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new mn({...this._def,rest:t})}}mn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new mn({items:e,typeName:q.ZodTuple,rest:null,...se(t)})};class Hi extends oe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.object)return V(r,{code:A.invalid_type,expected:$.object,received:r.parsedType}),ne;const s=[],i=this._def.keyType,o=this._def.valueType;for(const a in r.data)s.push({key:i._parse(new hn(r,a,r.path,a)),value:o._parse(new hn(r,r.data[a],r.path,a))});return r.common.async?et.mergeObjectAsync(n,s):et.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof oe?new Hi({keyType:t,valueType:n,typeName:q.ZodRecord,...se(r)}):new Hi({keyType:Ht.create(),valueType:t,typeName:q.ZodRecord,...se(n)})}}class Ua extends oe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.map)return V(r,{code:A.invalid_type,expected:$.map,received:r.parsedType}),ne;const s=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([a,l],u)=>({key:s._parse(new hn(r,a,r.path,[u,"key"])),value:i._parse(new hn(r,l,r.path,[u,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of o){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return ne;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of o){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return ne;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}}}}Ua.create=(e,t,n)=>new Ua({valueType:t,keyType:e,typeName:q.ZodMap,...se(n)});class Zr extends oe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.set)return V(r,{code:A.invalid_type,expected:$.set,received:r.parsedType}),ne;const s=this._def;s.minSize!==null&&r.data.sizes.maxSize.value&&(V(r,{code:A.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const i=this._def.valueType;function o(l){const u=new Set;for(const c of l){if(c.status==="aborted")return ne;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const a=[...r.data.values()].map((l,u)=>i._parse(new hn(r,l,r.path,u)));return r.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(t,n){return new Zr({...this._def,minSize:{value:t,message:G.toString(n)}})}max(t,n){return new Zr({...this._def,maxSize:{value:t,message:G.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Zr.create=(e,t)=>new Zr({valueType:e,minSize:null,maxSize:null,typeName:q.ZodSet,...se(t)});class ys extends oe{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==$.function)return V(n,{code:A.invalid_type,expected:$.function,received:n.parsedType}),ne;function r(a,l){return Da({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,La(),zi].filter(u=>!!u),issueData:{code:A.invalid_arguments,argumentsError:l}})}function s(a,l){return Da({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,La(),zi].filter(u=>!!u),issueData:{code:A.invalid_return_type,returnTypeError:l}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof Vs){const a=this;return ot(async function(...l){const u=new Gt([]),c=await a._def.args.parseAsync(l,i).catch(g=>{throw u.addIssue(r(l,g)),u}),p=await Reflect.apply(o,this,c);return await a._def.returns._def.type.parseAsync(p,i).catch(g=>{throw u.addIssue(s(p,g)),u})})}else{const a=this;return ot(function(...l){const u=a._def.args.safeParse(l,i);if(!u.success)throw new Gt([r(l,u.error)]);const c=Reflect.apply(o,this,u.data),p=a._def.returns.safeParse(c,i);if(!p.success)throw new Gt([s(c,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new ys({...this._def,args:mn.create(t).rest(Lr.create())})}returns(t){return new ys({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new ys({args:t||mn.create([]).rest(Lr.create()),returns:n||Lr.create(),typeName:q.ZodFunction,...se(r)})}}class Wi extends oe{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Wi.create=(e,t)=>new Wi({getter:e,typeName:q.ZodLazy,...se(t)});class Ki extends oe{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return V(n,{received:n.data,code:A.invalid_literal,expected:this._def.value}),ne}return{status:"valid",value:t.data}}get value(){return this._def.value}}Ki.create=(e,t)=>new Ki({value:e,typeName:q.ZodLiteral,...se(t)});function fy(e,t){return new pr({values:e,typeName:q.ZodEnum,...se(t)})}class pr extends oe{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return V(n,{expected:fe.joinValues(r),received:n.parsedType,code:A.invalid_type}),ne}if(this._def.values.indexOf(t.data)===-1){const n=this._getOrReturnCtx(t),r=this._def.values;return V(n,{received:n.data,code:A.invalid_enum_value,options:r}),ne}return ot(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t){return pr.create(t)}exclude(t){return pr.create(this.options.filter(n=>!t.includes(n)))}}pr.create=fy;class Gi extends oe{_parse(t){const n=fe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==$.string&&r.parsedType!==$.number){const s=fe.objectValues(n);return V(r,{expected:fe.joinValues(s),received:r.parsedType,code:A.invalid_type}),ne}if(n.indexOf(t.data)===-1){const s=fe.objectValues(n);return V(r,{received:r.data,code:A.invalid_enum_value,options:s}),ne}return ot(t.data)}get enum(){return this._def.values}}Gi.create=(e,t)=>new Gi({values:e,typeName:q.ZodNativeEnum,...se(t)});class Vs extends oe{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==$.promise&&n.common.async===!1)return V(n,{code:A.invalid_type,expected:$.promise,received:n.parsedType}),ne;const r=n.parsedType===$.promise?n.data:Promise.resolve(n.data);return ot(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Vs.create=(e,t)=>new Vs({type:e,typeName:q.ZodPromise,...se(t)});class Xt extends oe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===q.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=this._def.effect||null,i={addIssue:o=>{V(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const o=s.transform(r.data,i);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(o).then(a=>this._def.schema._parseAsync({data:a,path:r.path,parent:r})):this._def.schema._parseSync({data:o,path:r.path,parent:r})}if(s.type==="refinement"){const o=a=>{const l=s.refinement(a,i);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?ne:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?ne:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!$i(o))return o;const a=s.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>$i(o)?Promise.resolve(s.transform(o.value,i)).then(a=>({status:n.value,value:a})):o);fe.assertNever(s)}}Xt.create=(e,t,n)=>new Xt({schema:e,typeName:q.ZodEffects,effect:t,...se(n)});Xt.createWithPreprocess=(e,t,n)=>new Xt({schema:t,effect:{type:"preprocess",transform:e},typeName:q.ZodEffects,...se(n)});class bn extends oe{_parse(t){return this._getType(t)===$.undefined?ot(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}bn.create=(e,t)=>new bn({innerType:e,typeName:q.ZodOptional,...se(t)});class Qr extends oe{_parse(t){return this._getType(t)===$.null?ot(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Qr.create=(e,t)=>new Qr({innerType:e,typeName:q.ZodNullable,...se(t)});class Yi extends oe{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===$.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Yi.create=(e,t)=>new Yi({innerType:e,typeName:q.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...se(t)});class Ba extends oe{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return za(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Gt(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Gt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ba.create=(e,t)=>new Ba({innerType:e,typeName:q.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...se(t)});class Za extends oe{_parse(t){if(this._getType(t)!==$.nan){const r=this._getOrReturnCtx(t);return V(r,{code:A.invalid_type,expected:$.nan,received:r.parsedType}),ne}return{status:"valid",value:t.data}}}Za.create=e=>new Za({typeName:q.ZodNaN,...se(e)});const zw=Symbol("zod_brand");class py extends oe{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class go extends oe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?ne:i.status==="dirty"?(n.dirty(),dy(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?ne:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(t,n){return new go({in:t,out:n,typeName:q.ZodPipeline})}}class Qa extends oe{_parse(t){const n=this._def.innerType._parse(t);return $i(n)&&(n.value=Object.freeze(n.value)),n}}Qa.create=(e,t)=>new Qa({innerType:e,typeName:q.ZodReadonly,...se(t)});const hy=(e,t={},n)=>e?$s.create().superRefine((r,s)=>{var i,o;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(o=(i=a.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,u=typeof a=="string"?{message:a}:a;s.addIssue({code:"custom",...u,fatal:l})}}):$s.create(),$w={object:Te.lazycreate};var q;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(q||(q={}));const Vw=(e,t={message:`Input not instance of ${e.name}`})=>hy(n=>n instanceof e,t),my=Ht.create,yy=dr.create,Uw=Za.create,Bw=fr.create,vy=Vi.create,Zw=Br.create,Qw=$a.create,Hw=Ui.create,Ww=Bi.create,Kw=$s.create,Gw=Lr.create,Yw=On.create,qw=Va.create,Xw=Yt.create,Jw=Te.create,ex=Te.strictCreate,tx=Zi.create,nx=ml.create,rx=Qi.create,sx=mn.create,ix=Hi.create,ox=Ua.create,ax=Zr.create,lx=ys.create,ux=Wi.create,cx=Ki.create,dx=pr.create,fx=Gi.create,px=Vs.create,ep=Xt.create,hx=bn.create,mx=Qr.create,yx=Xt.createWithPreprocess,vx=go.create,gx=()=>my().optional(),wx=()=>yy().optional(),xx=()=>vy().optional(),_x={string:e=>Ht.create({...e,coerce:!0}),number:e=>dr.create({...e,coerce:!0}),boolean:e=>Vi.create({...e,coerce:!0}),bigint:e=>fr.create({...e,coerce:!0}),date:e=>Br.create({...e,coerce:!0})},kx=ne;var ql=Object.freeze({__proto__:null,defaultErrorMap:zi,setErrorMap:bw,getErrorMap:La,makeIssue:Da,EMPTY_PATH:Tw,addIssueToContext:V,ParseStatus:et,INVALID:ne,DIRTY:dy,OK:ot,isAborted:dc,isDirty:fc,isValid:$i,isAsync:za,get util(){return fe},get objectUtil(){return cc},ZodParsedType:$,getParsedType:Bn,ZodType:oe,ZodString:Ht,ZodNumber:dr,ZodBigInt:fr,ZodBoolean:Vi,ZodDate:Br,ZodSymbol:$a,ZodUndefined:Ui,ZodNull:Bi,ZodAny:$s,ZodUnknown:Lr,ZodNever:On,ZodVoid:Va,ZodArray:Yt,ZodObject:Te,ZodUnion:Zi,ZodDiscriminatedUnion:ml,ZodIntersection:Qi,ZodTuple:mn,ZodRecord:Hi,ZodMap:Ua,ZodSet:Zr,ZodFunction:ys,ZodLazy:Wi,ZodLiteral:Ki,ZodEnum:pr,ZodNativeEnum:Gi,ZodPromise:Vs,ZodEffects:Xt,ZodTransformer:Xt,ZodOptional:bn,ZodNullable:Qr,ZodDefault:Yi,ZodCatch:Ba,ZodNaN:Za,BRAND:zw,ZodBranded:py,ZodPipeline:go,ZodReadonly:Qa,custom:hy,Schema:oe,ZodSchema:oe,late:$w,get ZodFirstPartyTypeKind(){return q},coerce:_x,any:Kw,array:Xw,bigint:Bw,boolean:vy,date:Zw,discriminatedUnion:nx,effect:ep,enum:dx,function:lx,instanceof:Vw,intersection:rx,lazy:ux,literal:cx,map:ox,nan:Uw,nativeEnum:fx,never:Yw,null:Ww,nullable:mx,number:yy,object:Jw,oboolean:xx,onumber:wx,optional:hx,ostring:gx,pipeline:vx,preprocess:yx,promise:px,record:ix,set:ax,strictObject:ex,string:my,symbol:Qw,transformer:ep,tuple:sx,undefined:Hw,union:tx,unknown:Gw,void:qw,NEVER:kx,ZodIssueCode:A,quotelessJson:Cw,ZodError:Gt});const Sx=ql.object({tokenId:ql.string().refine(e=>/^0\.0\.\d*$/.test(e),{message:dt.tokenIdFormatError}),accountIds:ql.string().refine(e=>e.split(/\s*,\s*|\n/).map(n=>n.trim()).filter(n=>n).every(n=>/^0\.0\.\d*$/.test(n)),{message:dt.accountIdsFormatError})});var tp=function(e,t,n){if(e&&"reportValidity"in e){var r=F(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},gy=function(e,t){var n=function(s){var i=t.fields[s];i&&i.ref&&"reportValidity"in i.ref?tp(i.ref,s,e):i.refs&&i.refs.forEach(function(o){return tp(o,s,e)})};for(var r in t.fields)n(r)},Ex=function(e,t){t.shouldUseNativeValidation&&gy(e,t);var n={};for(var r in e){var s=F(t.fields,r),i=Object.assign(e[r]||{},{ref:s&&s.ref});if(Cx(t.names||Object.keys(e),r)){var o=Object.assign({},F(n,r));he(o,"root",i),he(n,r,o)}else he(n,r,i)}return n},Cx=function(e,t){return e.some(function(n){return n.startsWith(t+".")})},bx=function(e,t){for(var n={};e.length;){var r=e[0],s=r.code,i=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var a=r.unionErrors[0].errors[0];n[o]={message:a.message,type:a.code}}else n[o]={message:i,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(c){return c.errors.forEach(function(p){return e.push(p)})}),t){var l=n[o].types,u=l&&l[r.code];n[o]=ty(o,t,n,s,u?[].concat(u,r.message):r.message)}e.shift()}return n},Tx=function(e,t,n){return n===void 0&&(n={}),function(r,s,i){try{return Promise.resolve(function(o,a){try{var l=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(u){return i.shouldUseNativeValidation&&gy({},i),{errors:{},values:n.raw?r:u}})}catch(u){return a(u)}return l&&l.then?l.then(void 0,a):l}(0,function(o){if(function(a){return a.errors!=null}(o))return{values:{},errors:Ex(bx(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}};const np=e=>e.split(/,|\s|\n/).map(n=>n.trim()).filter(n=>n!=="");function Nx(e,t=[]){let n=[];function r(i,o){const a=j.createContext(o),l=n.length;n=[...n,o];function u(p){const{scope:h,children:g,...x}=p,_=(h==null?void 0:h[e][l])||a,C=j.useMemo(()=>x,Object.values(x));return j.createElement(_.Provider,{value:C},g)}function c(p,h){const g=(h==null?void 0:h[e][l])||a,x=j.useContext(g);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}const s=()=>{const i=n.map(o=>j.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return j.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,Px(s,...t)]}function Px(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:l,scopeName:u})=>{const p=l(i)[`__scope${u}`];return{...a,...p}},{});return j.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}const wy="Progress",yl=100,[Rx,Xx]=Nx(wy),[Ox,Ix]=Rx(wy),xy=j.forwardRef((e,t)=>{const{__scopeProgress:n,value:r,max:s,getValueLabel:i=Fx,...o}=e,a=hc(s)?s:yl,l=ky(r,a)?r:null,u=Ha(l)?i(l,a):void 0;return j.createElement(Ox,{scope:n,value:l,max:a},j.createElement(dd.div,cr({"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":Ha(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":_y(l,a),"data-value":l??void 0,"data-max":a},o,{ref:t})))});xy.propTypes={max(e,t,n){const r=e[t],s=String(r);return r&&!hc(r)?new Error(jx(s,n)):null},value(e,t,n){const r=e[t],s=String(r),i=hc(e.max)?e.max:yl;return r!=null&&!ky(r,i)?new Error(Lx(s,n)):null}};const Ax="ProgressIndicator",Mx=j.forwardRef((e,t)=>{var n;const{__scopeProgress:r,...s}=e,i=Ix(Ax,r);return j.createElement(dd.div,cr({"data-state":_y(i.value,i.max),"data-value":(n=i.value)!==null&&n!==void 0?n:void 0,"data-max":i.max},s,{ref:t}))});function Fx(e,t){return`${Math.round(e/t*100)}%`}function _y(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Ha(e){return typeof e=="number"}function hc(e){return Ha(e)&&!isNaN(e)&&e>0}function ky(e,t){return Ha(e)&&!isNaN(e)&&e<=t&&e>=0}function jx(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${yl}\`.`}function Lx(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: +`+i.stack}return{value:e,source:t,stack:s,digest:null}}function $l(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ou(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Cg=typeof WeakMap=="function"?WeakMap:Map;function Xh(e,t,n){n=Cn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ta||(Ta=!0,Vu=r),Ou(e,t)},n}function Jh(e,t,n){n=Cn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Ou(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ou(e,t),typeof r!="function"&&(ir===null?ir=new Set([this]):ir.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function pf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Cg;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=zg.bind(null,e,t,n),t.then(e,e))}function hf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function mf(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Cn(-1,1),t.tag=2,sr(n,t,1))),n.lanes|=1),e)}var bg=In.ReactCurrentOwner,pt=!1;function rt(e,t,n,r){t.child=e===null?Oh(t,null,n,r):Fs(t,e.child,n,r)}function yf(e,t,n,r,s){n=n.render;var i=t.ref;return hs(t,s),r=Wc(e,t,n,r,i,s),n=Kc(),e!==null&&!pt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Rn(e,t,s)):(be&&n&&Fc(t),t.flags|=1,rt(e,t,r,s),t.child)}function vf(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!sd(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,em(e,t,i,r,s)):(e=na(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Ti,n(o,r)&&e.ref===t.ref)return Rn(e,t,s)}return t.flags|=1,e=ar(i,r),e.ref=t.ref,e.return=t,t.child=e}function em(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(Ti(i,r)&&e.ref===t.ref)if(pt=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(pt=!0);else return t.lanes=e.lanes,Rn(e,t,s)}return Iu(e,t,n,r,s)}function tm(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},we(ls,xt),xt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,we(ls,xt),xt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,we(ls,xt),xt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,we(ls,xt),xt|=r;return rt(e,t,s,n),t.child}function nm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Iu(e,t,n,r,s){var i=mt(n)?Dr:Je.current;return i=As(t,i),hs(t,s),n=Wc(e,t,n,r,i,s),r=Kc(),e!==null&&!pt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Rn(e,t,s)):(be&&r&&Fc(t),t.flags|=1,rt(e,t,n,s),t.child)}function gf(e,t,n,r,s){if(mt(n)){var i=!0;va(t)}else i=!1;if(hs(t,s),t.stateNode===null)Jo(e,t),Ph(t,n,r),Ru(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ft(u):(u=mt(n)?Dr:Je.current,u=As(t,u));var c=n.getDerivedStateFromProps,p=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";p||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&uf(t,o,r,u),$n=!1;var h=t.memoizedState;o.state=h,ka(t,r,o,s),l=t.memoizedState,a!==r||h!==l||ht.current||$n?(typeof c=="function"&&(Pu(t,n,c,r),l=t.memoizedState),(a=$n||lf(t,n,a,r,h,l,u))?(p||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Th(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:$t(t.type,a),o.props=u,p=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ft(l):(l=mt(n)?Dr:Je.current,l=As(t,l));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==p||h!==l)&&uf(t,o,r,l),$n=!1,h=t.memoizedState,o.state=h,ka(t,r,o,s);var x=t.memoizedState;a!==p||h!==x||ht.current||$n?(typeof g=="function"&&(Pu(t,n,g,r),x=t.memoizedState),(u=$n||lf(t,n,u,r,h,x,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,x,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,x,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),o.props=r,o.state=x,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Au(e,t,n,r,i,s)}function Au(e,t,n,r,s,i){nm(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&nf(t,n,!1),Rn(e,t,i);r=t.stateNode,bg.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Fs(t,e.child,null,i),t.child=Fs(t,null,a,i)):rt(e,t,a,i),t.memoizedState=r.state,s&&nf(t,n,!0),t.child}function rm(e){var t=e.stateNode;t.pendingContext?tf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tf(e,t.context,!1),Bc(e,t.containerInfo)}function wf(e,t,n,r,s){return Ms(),Lc(s),t.flags|=256,rt(e,t,n,r),t.child}var Mu={dehydrated:null,treeContext:null,retryLane:0};function Fu(e){return{baseLanes:e,cachePool:null,transitions:null}}function sm(e,t,n){var r=t.pendingProps,s=Ne.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),we(Ne,s&1),e===null)return Tu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=ol(o,r,0,null),e=jr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Fu(n),t.memoizedState=Mu,e):qc(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return Tg(e,t,o,r,a,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=ar(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=ar(a,i):(i=jr(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Fu(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Mu,r}return i=e.child,e=i.sibling,r=ar(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function qc(e,t){return t=ol({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function zo(e,t,n,r){return r!==null&&Lc(r),Fs(t,e.child,null,n),e=qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Tg(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=$l(Error(T(422))),zo(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=ol({mode:"visible",children:r.children},s,0,null),i=jr(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Fs(t,e.child,null,o),t.child.memoizedState=Fu(o),t.memoizedState=Mu,i);if(!(t.mode&1))return zo(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(T(419)),r=$l(i,r,void 0),zo(e,t,o,r)}if(a=(o&e.childLanes)!==0,pt||a){if(r=Qe,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Pn(e,s),Kt(r,e,s,-1))}return rd(),r=$l(Error(T(421))),zo(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=$g.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,_t=rr(s.nextSibling),kt=t,be=!0,Bt=null,e!==null&&(Ot[It++]=Sn,Ot[It++]=En,Ot[It++]=zr,Sn=e.id,En=e.overflow,zr=t),t=qc(t,r.children),t.flags|=4096,t)}function xf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Nu(e.return,t,n)}function Vl(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function im(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(rt(e,t,r.children,n),r=Ne.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xf(e,n,t);else if(e.tag===19)xf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(we(Ne,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Sa(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Vl(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Sa(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Vl(t,!0,n,null,i);break;case"together":Vl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Jo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Vr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=ar(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ar(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ng(e,t,n){switch(t.tag){case 3:rm(t),Ms();break;case 5:Ih(t);break;case 1:mt(t.type)&&va(t);break;case 4:Bc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;we(xa,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(we(Ne,Ne.current&1),t.flags|=128,null):n&t.child.childLanes?sm(e,t,n):(we(Ne,Ne.current&1),e=Rn(e,t,n),e!==null?e.sibling:null);we(Ne,Ne.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return im(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),we(Ne,Ne.current),r)break;return null;case 22:case 23:return t.lanes=0,tm(e,t,n)}return Rn(e,t,n)}var om,ju,am,lm;om=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ju=function(){};am=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Er(pn.current);var i=null;switch(n){case"input":s=su(e,s),r=su(e,r),i=[];break;case"select":s=Re({},s,{value:void 0}),r=Re({},r,{value:void 0}),i=[];break;case"textarea":s=au(e,s),r=au(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ma)}uu(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(xi.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(xi.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ke("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};lm=function(e,t,n,r){n!==r&&(t.flags|=4)};function ei(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Pg(e,t,n){var r=t.pendingProps;switch(jc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return mt(t.type)&&ya(),qe(t),null;case 3:return r=t.stateNode,js(),Ee(ht),Ee(Je),Qc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Lo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Bt!==null&&(Zu(Bt),Bt=null))),ju(e,t),qe(t),null;case 5:Zc(t);var s=Er(Ii.current);if(n=t.type,e!==null&&t.stateNode!=null)am(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return qe(t),null}if(e=Er(pn.current),Lo(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[cn]=t,r[Ri]=i,e=(t.mode&1)!==0,n){case"dialog":ke("cancel",r),ke("close",r);break;case"iframe":case"object":case"embed":ke("load",r);break;case"video":case"audio":for(s=0;s<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[cn]=t,e[Ri]=r,om(e,t,!1,!1),t.stateNode=e;e:{switch(o=cu(n,r),n){case"dialog":ke("cancel",e),ke("close",e),s=r;break;case"iframe":case"object":case"embed":ke("load",e),s=r;break;case"video":case"audio":for(s=0;sDs&&(t.flags|=128,r=!0,ei(i,!1),t.lanes=4194304)}else{if(!r)if(e=Sa(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ei(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!be)return qe(t),null}else 2*Me()-i.renderingStartTime>Ds&&n!==1073741824&&(t.flags|=128,r=!0,ei(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Me(),t.sibling=null,n=Ne.current,we(Ne,r?n&1|2:n&1),t):(qe(t),null);case 22:case 23:return nd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xt&1073741824&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function Rg(e,t){switch(jc(t),t.tag){case 1:return mt(t.type)&&ya(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return js(),Ee(ht),Ee(Je),Qc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Zc(t),null;case 13:if(Ee(Ne),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));Ms()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ee(Ne),null;case 4:return js(),null;case 10:return $c(t.type._context),null;case 22:case 23:return nd(),null;case 24:return null;default:return null}}var $o=!1,Xe=!1,Og=typeof WeakSet=="function"?WeakSet:Set,U=null;function as(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Oe(e,t,r)}else n.current=null}function Lu(e,t,n){try{n()}catch(r){Oe(e,t,r)}}var _f=!1;function Ig(e,t){if(xu=fa,e=fh(),Mc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,p=e,h=null;t:for(;;){for(var g;p!==n||s!==0&&p.nodeType!==3||(a=o+s),p!==i||r!==0&&p.nodeType!==3||(l=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(g=p.firstChild)!==null;)h=p,p=g;for(;;){if(p===e)break t;if(h===n&&++u===s&&(a=o),h===i&&++c===r&&(l=o),(g=p.nextSibling)!==null)break;p=h,h=p.parentNode}p=g}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(_u={focusedElem:e,selectionRange:n},fa=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var _=x.memoizedProps,E=x.memoizedState,f=t.stateNode,d=f.getSnapshotBeforeUpdate(t.elementType===t.type?_:$t(t.type,_),E);f.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(k){Oe(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return x=_f,_f=!1,x}function yi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Lu(t,n,i)}s=s.next}while(s!==r)}}function sl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Du(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function um(e){var t=e.alternate;t!==null&&(e.alternate=null,um(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[cn],delete t[Ri],delete t[Eu],delete t[hg],delete t[mg])),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 cm(e){return e.tag===5||e.tag===3||e.tag===4}function kf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function zu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ma));else if(r!==4&&(e=e.child,e!==null))for(zu(e,t,n),e=e.sibling;e!==null;)zu(e,t,n),e=e.sibling}function $u(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for($u(e,t,n),e=e.sibling;e!==null;)$u(e,t,n),e=e.sibling}var He=null,Ut=!1;function Fn(e,t,n){for(n=n.child;n!==null;)dm(e,t,n),n=n.sibling}function dm(e,t,n){if(fn&&typeof fn.onCommitFiberUnmount=="function")try{fn.onCommitFiberUnmount(Ya,n)}catch{}switch(n.tag){case 5:Xe||as(n,t);case 6:var r=He,s=Ut;He=null,Fn(e,t,n),He=r,Ut=s,He!==null&&(Ut?(e=He,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&(Ut?(e=He,n=n.stateNode,e.nodeType===8?Ml(e.parentNode,n):e.nodeType===1&&Ml(e,n),Ci(e)):Ml(He,n.stateNode));break;case 4:r=He,s=Ut,He=n.stateNode.containerInfo,Ut=!0,Fn(e,t,n),He=r,Ut=s;break;case 0:case 11:case 14:case 15:if(!Xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Lu(n,t,o),s=s.next}while(s!==r)}Fn(e,t,n);break;case 1:if(!Xe&&(as(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Oe(n,t,a)}Fn(e,t,n);break;case 21:Fn(e,t,n);break;case 22:n.mode&1?(Xe=(r=Xe)||n.memoizedState!==null,Fn(e,t,n),Xe=r):Fn(e,t,n);break;default:Fn(e,t,n)}}function Sf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Og),t.forEach(function(r){var s=Vg.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;rs&&(s=o),r&=~i}if(r=s,r=Me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Mg(r/1960))-r,10e?16:e,Xn===null)var r=!1;else{if(e=Xn,Xn=null,Na=0,de&6)throw Error(T(331));var s=de;for(de|=4,U=e.current;U!==null;){var i=U,o=i.child;if(U.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lMe()-ed?Fr(e,0):Jc|=n),yt(e,t)}function wm(e,t){t===0&&(e.mode&1?(t=Oo,Oo<<=1,!(Oo&130023424)&&(Oo=4194304)):t=1);var n=it();e=Pn(e,t),e!==null&&(fo(e,t,n),yt(e,n))}function $g(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),wm(e,n)}function Vg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),wm(e,n)}var xm;xm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ht.current)pt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pt=!1,Ng(e,t,n);pt=!!(e.flags&131072)}else pt=!1,be&&t.flags&1048576&&Sh(t,wa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Jo(e,t),e=t.pendingProps;var s=As(t,Je.current);hs(t,n),s=Wc(null,t,r,e,s,n);var i=Kc();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,mt(r)?(i=!0,va(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Uc(t),s.updater=nl,t.stateNode=s,s._reactInternals=t,Ru(t,r,e,n),t=Au(null,t,r,!0,i,n)):(t.tag=0,be&&i&&Fc(t),rt(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Jo(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=Bg(r),e=$t(r,e),s){case 0:t=Iu(null,t,r,e,n);break e;case 1:t=gf(null,t,r,e,n);break e;case 11:t=yf(null,t,r,e,n);break e;case 14:t=vf(null,t,r,$t(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:$t(r,s),Iu(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:$t(r,s),gf(e,t,r,s,n);case 3:e:{if(rm(t),e===null)throw Error(T(387));r=t.pendingProps,i=t.memoizedState,s=i.element,Th(e,t),ka(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Ls(Error(T(423)),t),t=wf(e,t,r,n,s);break e}else if(r!==s){s=Ls(Error(T(424)),t),t=wf(e,t,r,n,s);break e}else for(_t=rr(t.stateNode.containerInfo.firstChild),kt=t,be=!0,Bt=null,n=Oh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ms(),r===s){t=Rn(e,t,n);break e}rt(e,t,r,n)}t=t.child}return t;case 5:return Ih(t),e===null&&Tu(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,ku(r,s)?o=null:i!==null&&ku(r,i)&&(t.flags|=32),nm(e,t),rt(e,t,o,n),t.child;case 6:return e===null&&Tu(t),null;case 13:return sm(e,t,n);case 4:return Bc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fs(t,null,r,n):rt(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:$t(r,s),yf(e,t,r,s,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,we(xa,r._currentValue),r._currentValue=o,i!==null)if(qt(i.value,o)){if(i.children===s.children&&!ht.current){t=Rn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Cn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Nu(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(T(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Nu(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}rt(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,hs(t,n),s=Ft(s),r=r(s),t.flags|=1,rt(e,t,r,n),t.child;case 14:return r=t.type,s=$t(r,t.pendingProps),s=$t(r.type,s),vf(e,t,r,s,n);case 15:return em(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:$t(r,s),Jo(e,t),t.tag=1,mt(r)?(e=!0,va(t)):e=!1,hs(t,n),Ph(t,r,s),Ru(t,r,s,n),Au(null,t,r,!0,e,n);case 19:return im(e,t,n);case 22:return tm(e,t,n)}throw Error(T(156,t.tag))};function _m(e,t){return Wp(e,t)}function Ug(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 At(e,t,n,r){return new Ug(e,t,n,r)}function sd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bg(e){if(typeof e=="function")return sd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Sc)return 11;if(e===Ec)return 14}return 2}function ar(e,t){var n=e.alternate;return n===null?(n=At(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function na(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")sd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Xr:return jr(n.children,s,i,t);case kc:o=8,s|=8;break;case eu:return e=At(12,n,t,s|2),e.elementType=eu,e.lanes=i,e;case tu:return e=At(13,n,t,s),e.elementType=tu,e.lanes=i,e;case nu:return e=At(19,n,t,s),e.elementType=nu,e.lanes=i,e;case Rp:return ol(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Np:o=10;break e;case Pp:o=9;break e;case Sc:o=11;break e;case Ec:o=14;break e;case zn:o=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=At(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function jr(e,t,n,r){return e=At(7,e,r,t),e.lanes=n,e}function ol(e,t,n,r){return e=At(22,e,r,t),e.elementType=Rp,e.lanes=n,e.stateNode={isHidden:!1},e}function Ul(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function Bl(e,t,n){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zg(e,t,n,r,s){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=Sl(0),this.expirationTimes=Sl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sl(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function id(e,t,n,r,s,i,o,a,l){return e=new Zg(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=At(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Uc(i),e}function Qg(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Cm)}catch(e){console.error(e)}}Cm(),Sp.exports=Et;var bm=Sp.exports;const Yg=fp(bm);var Of=bm;Xl.createRoot=Of.createRoot,Xl.hydrateRoot=Of.hydrateRoot;function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(n=>qg(n,t))}const dl=j.forwardRef((e,t)=>{const{children:n,...r}=e,s=j.Children.toArray(n),i=s.find(e0);if(i){const o=i.props.children,a=s.map(l=>l===i?j.Children.count(o)>1?j.Children.only(null):j.isValidElement(o)?o.props.children:null:l);return j.createElement(Qu,cr({},r,{ref:t}),j.isValidElement(o)?j.cloneElement(o,void 0,a):null)}return j.createElement(Qu,cr({},r,{ref:t}),n)});dl.displayName="Slot";const Qu=j.forwardRef((e,t)=>{const{children:n,...r}=e;return j.isValidElement(n)?j.cloneElement(n,{...t0(r,n.props),ref:t?Xg(t,n.ref):n.ref}):j.Children.count(n)>1?j.Children.only(null):null});Qu.displayName="SlotClone";const Jg=({children:e})=>j.createElement(j.Fragment,null,e);function e0(e){return j.isValidElement(e)&&e.type===Jg}function t0(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{i(...a),s(...a)}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function Tm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,Af=n0,Nm=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Af(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(u=>{const c=n==null?void 0:n[u],p=i==null?void 0:i[u];if(c===null)return null;const h=If(c)||If(p);return s[u][h]}),a=n&&Object.entries(n).reduce((u,c)=>{let[p,h]=c;return h===void 0||(u[p]=h),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:p,className:h,...g}=c;return Object.entries(g).every(x=>{let[_,E]=x;return Array.isArray(E)?E.includes({...i,...a}[_]):{...i,...a}[_]===E})?[...u,p,h]:u},[]);return Af(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};function Pm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;ta(i)))==null?void 0:o.classGroupId}const Mf=/^\[(.+)\]$/;function i0(e){if(Mf.test(e)){const t=Mf.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function o0(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return l0(Object.entries(e.classGroups),n).forEach(([i,o])=>{Hu(o,r,i,t)}),r}function Hu(e,t,n,r){e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Ff(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(a0(s)){Hu(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Hu(o,Ff(t,i),n,r)})})}function Ff(e,t){let n=e;return t.split(ud).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function a0(e){return e.isThemeGetter}function l0(e,t){return t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e}function u0(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function s(i,o){n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)}return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}}const Om="!";function c0(e){const t=e.separator,n=t.length===1,r=t[0],s=t.length;return function(o){const a=[];let l=0,u=0,c;for(let _=0;_u?c-u:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:x}}}function d0(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function f0(e){return{cache:u0(e.cacheSize),splitModifiers:c0(e),...s0(e)}}const p0=/\s+/;function h0(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=new Set;return e.trim().split(p0).map(o=>{const{modifiers:a,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:c}=n(o);let p=r(c?u.substring(0,c):u),h=!!c;if(!p){if(!c)return{isTailwindClass:!1,originalClassName:o};if(p=r(u),!p)return{isTailwindClass:!1,originalClassName:o};h=!1}const g=d0(a).join(":");return{isTailwindClass:!0,modifierId:l?g+Om:g,classGroupId:p,originalClassName:o,hasPostfixModifier:h}}).reverse().filter(o=>{if(!o.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:u}=o,c=a+l;return i.has(c)?!1:(i.add(c),s(l,u).forEach(p=>i.add(a+p)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function m0(){let e=0,t,n,r="";for(;ep(c),e());return n=f0(u),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=h0(l,n);return s(l,c),c}return function(){return i(m0.apply(null,arguments))}}function _e(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const Am=/^\[(?:([a-z-]+):)?(.+)\]$/i,v0=/^\d+\/\d+$/,g0=new Set(["px","full","screen"]),w0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,x0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,k0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,S0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function gn(e){return Cr(e)||g0.has(e)||v0.test(e)}function jn(e){return Qs(e,"length",O0)}function Cr(e){return!!e&&!Number.isNaN(Number(e))}function Bo(e){return Qs(e,"number",Cr)}function ni(e){return!!e&&Number.isInteger(Number(e))}function E0(e){return e.endsWith("%")&&Cr(e.slice(0,-1))}function ie(e){return Am.test(e)}function Ln(e){return w0.test(e)}const C0=new Set(["length","size","percentage"]);function b0(e){return Qs(e,C0,Mm)}function T0(e){return Qs(e,"position",Mm)}const N0=new Set(["image","url"]);function P0(e){return Qs(e,N0,A0)}function R0(e){return Qs(e,"",I0)}function ri(){return!0}function Qs(e,t,n){const r=Am.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function O0(e){return x0.test(e)&&!_0.test(e)}function Mm(){return!1}function I0(e){return k0.test(e)}function A0(e){return S0.test(e)}function M0(){const e=_e("colors"),t=_e("spacing"),n=_e("blur"),r=_e("brightness"),s=_e("borderColor"),i=_e("borderRadius"),o=_e("borderSpacing"),a=_e("borderWidth"),l=_e("contrast"),u=_e("grayscale"),c=_e("hueRotate"),p=_e("invert"),h=_e("gap"),g=_e("gradientColorStops"),x=_e("gradientColorStopPositions"),_=_e("inset"),E=_e("margin"),f=_e("opacity"),d=_e("padding"),m=_e("saturate"),k=_e("scale"),C=_e("sepia"),O=_e("skew"),I=_e("space"),N=_e("translate"),X=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],me=()=>["auto",ie,t],L=()=>[ie,t],J=()=>["",gn,jn],ee=()=>["auto",Cr,ie],ce=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ye=()=>["solid","dashed","dotted","double","none"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],R=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",ie],Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[Cr,Bo],te=()=>[Cr,ie];return{cacheSize:500,separator:":",theme:{colors:[ri],spacing:[gn,jn],blur:["none","",Ln,ie],brightness:K(),borderColor:[e],borderRadius:["none","","full",Ln,ie],borderSpacing:L(),borderWidth:J(),contrast:K(),grayscale:B(),hueRotate:te(),invert:B(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[E0,jn],inset:me(),margin:me(),opacity:K(),padding:L(),saturate:K(),scale:K(),sepia:B(),skew:te(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",ie]}],container:["container"],columns:[{columns:[Ln]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ce(),ie]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[_]}],"inset-x":[{"inset-x":[_]}],"inset-y":[{"inset-y":[_]}],start:[{start:[_]}],end:[{end:[_]}],top:[{top:[_]}],right:[{right:[_]}],bottom:[{bottom:[_]}],left:[{left:[_]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ni,ie]}],basis:[{basis:me()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ie]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",ni,ie]}],"grid-cols":[{"grid-cols":[ri]}],"col-start-end":[{col:["auto",{span:["full",ni,ie]},ie]}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":[ri]}],"row-start-end":[{row:["auto",{span:[ni,ie]},ie]}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ie]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ie]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[d]}],px:[{px:[d]}],py:[{py:[d]}],ps:[{ps:[d]}],pe:[{pe:[d]}],pt:[{pt:[d]}],pr:[{pr:[d]}],pb:[{pb:[d]}],pl:[{pl:[d]}],m:[{m:[E]}],mx:[{mx:[E]}],my:[{my:[E]}],ms:[{ms:[E]}],me:[{me:[E]}],mt:[{mt:[E]}],mr:[{mr:[E]}],mb:[{mb:[E]}],ml:[{ml:[E]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ie,t]}],"min-w":[{"min-w":[ie,t,"min","max","fit"]}],"max-w":[{"max-w":[ie,t,"none","full","min","max","fit","prose",{screen:[Ln]},Ln]}],h:[{h:[ie,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ie,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ln,jn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Bo]}],"font-family":[{font:[ri]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ie]}],"line-clamp":[{"line-clamp":["none",Cr,Bo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",gn,ie]}],"list-image":[{"list-image":["none",ie]}],"list-style-type":[{list:["none","disc","decimal",ie]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[f]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[f]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ye(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",gn,jn]}],"underline-offset":[{"underline-offset":["auto",gn,ie]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[f]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ce(),T0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",b0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},P0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[f]}],"border-style":[{border:[...ye(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[f]}],"divide-style":[{divide:ye()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...ye()]}],"outline-offset":[{"outline-offset":[gn,ie]}],"outline-w":[{outline:[gn,jn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[f]}],"ring-offset-w":[{"ring-offset":[gn,jn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ln,R0]}],"shadow-color":[{shadow:[ri]}],opacity:[{opacity:[f]}],"mix-blend":[{"mix-blend":Ce()}],"bg-blend":[{"bg-blend":Ce()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ln,ie]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[m]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[f]}],"backdrop-saturate":[{"backdrop-saturate":[m]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ie]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",ie]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",ie]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[ni,ie]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ie]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ie]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[gn,jn,Bo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const F0=y0(M0);function yn(...e){return F0(r0(e))}const j0=Nm("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),cd=j.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?dl:"button";return Z.jsx(o,{className:yn(j0({variant:t,size:n,className:e})),ref:i,...s})});cd.displayName="Button";const L0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],dd=L0.reduce((e,t)=>{const n=j.forwardRef((r,s)=>{const{asChild:i,...o}=r,a=i?dl:t;return j.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),j.createElement(a,cr({},o,{ref:s}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),D0=j.forwardRef((e,t)=>j.createElement(dd.label,cr({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),Fm=D0,z0=Nm("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),fd=j.forwardRef(({className:e,...t},n)=>Z.jsx(Fm,{ref:n,className:yn(z0(),e),...t}));fd.displayName=Fm.displayName;var yo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},zs=typeof window>"u"||"Deno"in window;function Pt(){}function $0(e,t){return typeof e=="function"?e(t):e}function Wu(e){return typeof e=="number"&&e>=0&&e!==1/0}function jm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function jf(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==pd(o,t.options))return!1}else if(!Di(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof s<"u"&&s!==t.state.fetchStatus||i&&!i(t))}function Lf(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Li(t.options.mutationKey)!==Li(i))return!1}else if(!Di(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function pd(e,t){return((t==null?void 0:t.queryKeyHashFn)||Li)(e)}function Li(e){return JSON.stringify(e,(t,n)=>Gu(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Di(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Di(e[n],t[n])):!1}function Lm(e,t){if(e===t)return e;const n=Df(e)&&Df(t);if(n||Gu(e)&&Gu(t)){const r=n?e:Object.keys(e),s=r.length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{};let l=0;for(let u=0;u"u")return!0;const n=t.prototype;return!(!zf(n)||!n.hasOwnProperty("isPrototypeOf"))}function zf(e){return Object.prototype.toString.call(e)==="[object Object]"}function V0(e){return new Promise(t=>{setTimeout(t,e)})}function Yu(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Lm(e,t):t}function U0(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function B0(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Tr,Zn,vs,rp,Z0=(rp=class extends yo{constructor(){super();Q(this,Tr,void 0);Q(this,Zn,void 0);Q(this,vs,void 0);z(this,vs,t=>{if(!zs&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){v(this,Zn)||this.setEventListener(v(this,vs))}onUnsubscribe(){var t;this.hasListeners()||((t=v(this,Zn))==null||t.call(this),z(this,Zn,void 0))}setEventListener(t){var n;z(this,vs,t),(n=v(this,Zn))==null||n.call(this),z(this,Zn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){v(this,Tr)!==t&&(z(this,Tr,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof v(this,Tr)=="boolean"?v(this,Tr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Tr=new WeakMap,Zn=new WeakMap,vs=new WeakMap,rp),Oa=new Z0,gs,Qn,ws,sp,Q0=(sp=class extends yo{constructor(){super();Q(this,gs,!0);Q(this,Qn,void 0);Q(this,ws,void 0);z(this,ws,t=>{if(!zs&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){v(this,Qn)||this.setEventListener(v(this,ws))}onUnsubscribe(){var t;this.hasListeners()||((t=v(this,Qn))==null||t.call(this),z(this,Qn,void 0))}setEventListener(t){var n;z(this,ws,t),(n=v(this,Qn))==null||n.call(this),z(this,Qn,t(this.setOnline.bind(this)))}setOnline(t){v(this,gs)!==t&&(z(this,gs,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return v(this,gs)}},gs=new WeakMap,Qn=new WeakMap,ws=new WeakMap,sp),Ia=new Q0;function H0(e){return Math.min(1e3*2**e,3e4)}function fl(e){return(e??"online")==="online"?Ia.isOnline():!0}var Dm=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Zl(e){return e instanceof Dm}function zm(e){let t=!1,n=0,r=!1,s,i,o;const a=new Promise((E,f)=>{i=E,o=f}),l=E=>{var f;r||(g(new Dm(E)),(f=e.abort)==null||f.call(e))},u=()=>{t=!0},c=()=>{t=!1},p=()=>!Oa.isFocused()||e.networkMode!=="always"&&!Ia.isOnline(),h=E=>{var f;r||(r=!0,(f=e.onSuccess)==null||f.call(e,E),s==null||s(),i(E))},g=E=>{var f;r||(r=!0,(f=e.onError)==null||f.call(e,E),s==null||s(),o(E))},x=()=>new Promise(E=>{var f;s=d=>{const m=r||!p();return m&&E(d),m},(f=e.onPause)==null||f.call(e)}).then(()=>{var E;s=void 0,r||(E=e.onContinue)==null||E.call(e)}),_=()=>{if(r)return;let E;try{E=e.fn()}catch(f){E=Promise.reject(f)}Promise.resolve(E).then(h).catch(f=>{var O;if(r)return;const d=e.retry??(zs?0:3),m=e.retryDelay??H0,k=typeof m=="function"?m(n,f):m,C=d===!0||typeof d=="number"&&n{if(p())return x()}).then(()=>{t?g(f):_()})})};return fl(e.networkMode)?_():x().then(_),{promise:a,cancel:l,continue:()=>(s==null?void 0:s())?a:Promise.resolve(),cancelRetry:u,continueRetry:c}}function W0(){let e=[],t=0,n=h=>{h()},r=h=>{h()},s=h=>setTimeout(h,0);const i=h=>{s=h},o=h=>{let g;t++;try{g=h()}finally{t--,t||u()}return g},a=h=>{t?e.push(h):s(()=>{n(h)})},l=h=>(...g)=>{a(()=>{h(...g)})},u=()=>{const h=e;e=[],h.length&&s(()=>{r(()=>{h.forEach(g=>{n(g)})})})};return{batch:o,batchCalls:l,schedule:a,setNotifyFunction:h=>{n=h},setBatchNotifyFunction:h=>{r=h},setScheduler:i}}var We=W0(),Nr,ip,$m=(ip=class{constructor(){Q(this,Nr,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wu(this.gcTime)&&z(this,Nr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(zs?1/0:5*60*1e3))}clearGcTimeout(){v(this,Nr)&&(clearTimeout(v(this,Nr)),z(this,Nr,void 0))}},Nr=new WeakMap,ip),xs,_s,bt,Hn,Tt,Be,Xi,Pr,ks,ra,Vt,xn,op,K0=(op=class extends $m{constructor(t){super();Q(this,ks);Q(this,Vt);Q(this,xs,void 0);Q(this,_s,void 0);Q(this,bt,void 0);Q(this,Hn,void 0);Q(this,Tt,void 0);Q(this,Be,void 0);Q(this,Xi,void 0);Q(this,Pr,void 0);z(this,Pr,!1),z(this,Xi,t.defaultOptions),ae(this,ks,ra).call(this,t.options),z(this,Be,[]),z(this,bt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,z(this,xs,t.state||G0(this.options)),this.state=v(this,xs),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!v(this,Be).length&&this.state.fetchStatus==="idle"&&v(this,bt).remove(this)}setData(t,n){const r=Yu(this.state.data,t,this.options);return ae(this,Vt,xn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ae(this,Vt,xn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r;const n=v(this,Hn);return(r=v(this,Tt))==null||r.cancel(t),n?n.then(Pt).catch(Pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(v(this,xs))}isActive(){return v(this,Be).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||v(this,Be).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!jm(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=v(this,Be).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=v(this,Tt))==null||n.continue()}onOnline(){var n;const t=v(this,Be).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=v(this,Tt))==null||n.continue()}addObserver(t){v(this,Be).includes(t)||(v(this,Be).push(t),this.clearGcTimeout(),v(this,bt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){v(this,Be).includes(t)&&(z(this,Be,v(this,Be).filter(n=>n!==t)),v(this,Be).length||(v(this,Tt)&&(v(this,Pr)?v(this,Tt).cancel({revert:!0}):v(this,Tt).cancelRetry()),this.scheduleGc()),v(this,bt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return v(this,Be).length}invalidate(){this.state.isInvalidated||ae(this,Vt,xn).call(this,{type:"invalidate"})}fetch(t,n){var u,c,p,h;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(v(this,Hn))return(u=v(this,Tt))==null||u.continueRetry(),v(this,Hn)}if(t&&ae(this,ks,ra).call(this,t),!this.options.queryFn){const g=v(this,Be).find(x=>x.options.queryFn);g&&ae(this,ks,ra).call(this,g.options)}const r=new AbortController,s={queryKey:this.queryKey,meta:this.meta},i=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(z(this,Pr,!0),r.signal)})};i(s);const o=()=>this.options.queryFn?(z(this,Pr,!1),this.options.persister?this.options.persister(this.options.queryFn,s,this):this.options.queryFn(s)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(a),(c=this.options.behavior)==null||c.onFetch(a,this),z(this,_s,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=a.fetchOptions)==null?void 0:p.meta))&&ae(this,Vt,xn).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const l=g=>{var x,_,E,f;Zl(g)&&g.silent||ae(this,Vt,xn).call(this,{type:"error",error:g}),Zl(g)||((_=(x=v(this,bt).config).onError)==null||_.call(x,g,this),(f=(E=v(this,bt).config).onSettled)==null||f.call(E,this.state.data,g,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return z(this,Tt,zm({fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:g=>{var x,_,E,f;if(typeof g>"u"){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(g),(_=(x=v(this,bt).config).onSuccess)==null||_.call(x,g,this),(f=(E=v(this,bt).config).onSettled)==null||f.call(E,g,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(g,x)=>{ae(this,Vt,xn).call(this,{type:"failed",failureCount:g,error:x})},onPause:()=>{ae(this,Vt,xn).call(this,{type:"pause"})},onContinue:()=>{ae(this,Vt,xn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode})),z(this,Hn,v(this,Tt).promise),v(this,Hn)}},xs=new WeakMap,_s=new WeakMap,bt=new WeakMap,Hn=new WeakMap,Tt=new WeakMap,Be=new WeakMap,Xi=new WeakMap,Pr=new WeakMap,ks=new WeakSet,ra=function(t){this.options={...v(this,Xi),...t},this.updateGcTime(this.options.gcTime)},Vt=new WeakSet,xn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:fl(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Zl(s)&&s.revert&&v(this,_s)?{...v(this,_s),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),We.batch(()=>{v(this,Be).forEach(r=>{r.onQueryUpdate()}),v(this,bt).notify({query:this,type:"updated",action:t})})},op);function G0(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var on,ap,Y0=(ap=class extends yo{constructor(t={}){super();Q(this,on,void 0);this.config=t,z(this,on,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??pd(s,n);let o=this.get(i);return o||(o=new K0({cache:this,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){v(this,on).has(t.queryHash)||(v(this,on).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=v(this,on).get(t.queryHash);n&&(t.destroy(),n===t&&v(this,on).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){We.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return v(this,on).get(t)}getAll(){return[...v(this,on).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>jf(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>jf(t,r)):n}notify(t){We.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){We.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){We.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},on=new WeakMap,ap),an,Ji,wt,Ss,ln,Dn,lp,q0=(lp=class extends $m{constructor(t){super();Q(this,ln);Q(this,an,void 0);Q(this,Ji,void 0);Q(this,wt,void 0);Q(this,Ss,void 0);this.mutationId=t.mutationId,z(this,Ji,t.defaultOptions),z(this,wt,t.mutationCache),z(this,an,[]),this.state=t.state||X0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...v(this,Ji),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){v(this,an).includes(t)||(v(this,an).push(t),this.clearGcTimeout(),v(this,wt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){z(this,an,v(this,an).filter(n=>n!==t)),this.scheduleGc(),v(this,wt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){v(this,an).length||(this.state.status==="pending"?this.scheduleGc():v(this,wt).remove(this))}continue(){var t;return((t=v(this,Ss))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,o,a,l,u,c,p,h,g,x,_,E,f,d,m,k,C,O,I;const n=()=>(z(this,Ss,zm({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,X)=>{ae(this,ln,Dn).call(this,{type:"failed",failureCount:N,error:X})},onPause:()=>{ae(this,ln,Dn).call(this,{type:"pause"})},onContinue:()=>{ae(this,ln,Dn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),v(this,Ss).promise),r=this.state.status==="pending";try{if(!r){ae(this,ln,Dn).call(this,{type:"pending",variables:t}),await((i=(s=v(this,wt).config).onMutate)==null?void 0:i.call(s,t,this));const X=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t));X!==this.state.context&&ae(this,ln,Dn).call(this,{type:"pending",context:X,variables:t})}const N=await n();return await((u=(l=v(this,wt).config).onSuccess)==null?void 0:u.call(l,N,t,this.state.context,this)),await((p=(c=this.options).onSuccess)==null?void 0:p.call(c,N,t,this.state.context)),await((g=(h=v(this,wt).config).onSettled)==null?void 0:g.call(h,N,null,this.state.variables,this.state.context,this)),await((_=(x=this.options).onSettled)==null?void 0:_.call(x,N,null,t,this.state.context)),ae(this,ln,Dn).call(this,{type:"success",data:N}),N}catch(N){try{throw await((f=(E=v(this,wt).config).onError)==null?void 0:f.call(E,N,t,this.state.context,this)),await((m=(d=this.options).onError)==null?void 0:m.call(d,N,t,this.state.context)),await((C=(k=v(this,wt).config).onSettled)==null?void 0:C.call(k,void 0,N,this.state.variables,this.state.context,this)),await((I=(O=this.options).onSettled)==null?void 0:I.call(O,void 0,N,t,this.state.context)),N}finally{ae(this,ln,Dn).call(this,{type:"error",error:N})}}}},an=new WeakMap,Ji=new WeakMap,wt=new WeakMap,Ss=new WeakMap,ln=new WeakSet,Dn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!fl(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),We.batch(()=>{v(this,an).forEach(r=>{r.onMutationUpdate(t)}),v(this,wt).notify({mutation:this,type:"updated",action:t})})},lp);function X0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Nt,eo,Rr,up,J0=(up=class extends yo{constructor(t={}){super();Q(this,Nt,void 0);Q(this,eo,void 0);Q(this,Rr,void 0);this.config=t,z(this,Nt,[]),z(this,eo,0)}build(t,n,r){const s=new q0({mutationCache:this,mutationId:++Co(this,eo)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){v(this,Nt).push(t),this.notify({type:"added",mutation:t})}remove(t){z(this,Nt,v(this,Nt).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){We.batch(()=>{v(this,Nt).forEach(t=>{this.remove(t)})})}getAll(){return v(this,Nt)}find(t){const n={exact:!0,...t};return v(this,Nt).find(r=>Lf(n,r))}findAll(t={}){return v(this,Nt).filter(n=>Lf(t,n))}notify(t){We.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return z(this,Rr,(v(this,Rr)??Promise.resolve()).then(()=>{const t=v(this,Nt).filter(n=>n.state.isPaused);return We.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(Pt)),Promise.resolve()))}).then(()=>{z(this,Rr,void 0)})),v(this,Rr)}},Nt=new WeakMap,eo=new WeakMap,Rr=new WeakMap,up);function e1(e){return{onFetch:(t,n)=>{const r=async()=>{var x,_,E,f,d;const s=t.options,i=(E=(_=(x=t.fetchOptions)==null?void 0:x.meta)==null?void 0:_.fetchMore)==null?void 0:E.direction,o=((f=t.state.data)==null?void 0:f.pages)||[],a=((d=t.state.data)==null?void 0:d.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const c=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},p=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),h=async(m,k,C)=>{if(u)return Promise.reject();if(k==null&&m.pages.length)return Promise.resolve(m);const O={queryKey:t.queryKey,pageParam:k,direction:C?"backward":"forward",meta:t.options.meta};c(O);const I=await p(O),{maxPages:N}=t.options,X=C?B0:U0;return{pages:X(m.pages,I,N),pageParams:X(m.pageParams,k,N)}};let g;if(i&&o.length){const m=i==="backward",k=m?t1:$f,C={pages:o,pageParams:a},O=k(s,C);g=await h(C,O,m)}else{g=await h(l,a[0]??s.initialPageParam);const m=e??o.length;for(let k=1;k{var s,i;return(i=(s=t.options).persister)==null?void 0:i.call(s,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function $f(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function t1(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}var De,Wn,Kn,Es,Cs,Gn,bs,Ts,cp,n1=(cp=class{constructor(e={}){Q(this,De,void 0);Q(this,Wn,void 0);Q(this,Kn,void 0);Q(this,Es,void 0);Q(this,Cs,void 0);Q(this,Gn,void 0);Q(this,bs,void 0);Q(this,Ts,void 0);z(this,De,e.queryCache||new Y0),z(this,Wn,e.mutationCache||new J0),z(this,Kn,e.defaultOptions||{}),z(this,Es,new Map),z(this,Cs,new Map),z(this,Gn,0)}mount(){Co(this,Gn)._++,v(this,Gn)===1&&(z(this,bs,Oa.subscribe(()=>{Oa.isFocused()&&(this.resumePausedMutations(),v(this,De).onFocus())})),z(this,Ts,Ia.subscribe(()=>{Ia.isOnline()&&(this.resumePausedMutations(),v(this,De).onOnline())})))}unmount(){var e,t;Co(this,Gn)._--,v(this,Gn)===0&&((e=v(this,bs))==null||e.call(this),z(this,bs,void 0),(t=v(this,Ts))==null||t.call(this),z(this,Ts,void 0))}isFetching(e){return v(this,De).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return v(this,Wn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=v(this,De).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t!==void 0?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=v(this,De).get(r.queryHash),i=s==null?void 0:s.state.data,o=$0(t,i);if(!(typeof o>"u"))return v(this,De).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return We.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=v(this,De).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=v(this,De);We.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=v(this,De),r={type:"active",...e};return We.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=We.batch(()=>v(this,De).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Pt).catch(Pt)}invalidateQueries(e={},t={}){return We.batch(()=>{if(v(this,De).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=We.batch(()=>v(this,De).findAll(e).filter(s=>!s.isDisabled()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(Pt)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Pt)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const n=v(this,De).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pt).catch(Pt)}fetchInfiniteQuery(e){return e.behavior=e1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pt).catch(Pt)}resumePausedMutations(){return v(this,Wn).resumePausedMutations()}getQueryCache(){return v(this,De)}getMutationCache(){return v(this,Wn)}getDefaultOptions(){return v(this,Kn)}setDefaultOptions(e){z(this,Kn,e)}setQueryDefaults(e,t){v(this,Es).set(Li(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...v(this,Es).values()];let n={};return t.forEach(r=>{Di(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){v(this,Cs).set(Li(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...v(this,Cs).values()];let n={};return t.forEach(r=>{Di(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...v(this,Kn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=pd(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...v(this,Kn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){v(this,De).clear(),v(this,Wn).clear()}},De=new WeakMap,Wn=new WeakMap,Kn=new WeakMap,Es=new WeakMap,Cs=new WeakMap,Gn=new WeakMap,bs=new WeakMap,Ts=new WeakMap,cp),ct,Se,to,nt,Or,Ns,un,no,Ps,Rs,Ir,Ar,Yn,Os,Mr,ui,ro,qu,so,Xu,io,Ju,oo,ec,ao,tc,lo,nc,uo,rc,Ka,Vm,dp,r1=(dp=class extends yo{constructor(t,n){super();Q(this,Mr);Q(this,ro);Q(this,so);Q(this,io);Q(this,oo);Q(this,ao);Q(this,lo);Q(this,uo);Q(this,Ka);Q(this,ct,void 0);Q(this,Se,void 0);Q(this,to,void 0);Q(this,nt,void 0);Q(this,Or,void 0);Q(this,Ns,void 0);Q(this,un,void 0);Q(this,no,void 0);Q(this,Ps,void 0);Q(this,Rs,void 0);Q(this,Ir,void 0);Q(this,Ar,void 0);Q(this,Yn,void 0);Q(this,Os,new Set);this.options=n,z(this,ct,t),z(this,un,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(v(this,Se).addObserver(this),Vf(v(this,Se),this.options)?ae(this,Mr,ui).call(this):this.updateResult(),ae(this,oo,ec).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return sc(v(this,Se),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return sc(v(this,Se),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ae(this,ao,tc).call(this),ae(this,lo,nc).call(this),v(this,Se).removeObserver(this)}setOptions(t,n){const r=this.options,s=v(this,Se);if(this.options=v(this,ct).defaultQueryOptions(t),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");ae(this,uo,rc).call(this),Ku(this.options,r)||v(this,ct).getQueryCache().notify({type:"observerOptionsUpdated",query:v(this,Se),observer:this});const i=this.hasListeners();i&&Uf(v(this,Se),s,this.options,r)&&ae(this,Mr,ui).call(this),this.updateResult(n),i&&(v(this,Se)!==s||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&ae(this,ro,qu).call(this);const o=ae(this,so,Xu).call(this);i&&(v(this,Se)!==s||this.options.enabled!==r.enabled||o!==v(this,Yn))&&ae(this,io,Ju).call(this,o)}getOptimisticResult(t){const n=v(this,ct).getQueryCache().build(v(this,ct),t),r=this.createResult(n,t);return i1(this,r)&&(z(this,nt,r),z(this,Ns,this.options),z(this,Or,v(this,Se).state)),r}getCurrentResult(){return v(this,nt)}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(v(this,Os).add(r),t[r])})}),n}getCurrentQuery(){return v(this,Se)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=v(this,ct).defaultQueryOptions(t),r=v(this,ct).getQueryCache().build(v(this,ct),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return ae(this,Mr,ui).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),v(this,nt)))}createResult(t,n){var O;const r=v(this,Se),s=this.options,i=v(this,nt),o=v(this,Or),a=v(this,Ns),u=t!==r?t.state:v(this,to),{state:c}=t;let{error:p,errorUpdatedAt:h,fetchStatus:g,status:x}=c,_=!1,E;if(n._optimisticResults){const I=this.hasListeners(),N=!I&&Vf(t,n),X=I&&Uf(t,r,n,s);(N||X)&&(g=fl(t.options.networkMode)?"fetching":"paused",c.dataUpdatedAt||(x="pending")),n._optimisticResults==="isRestoring"&&(g="idle")}if(n.select&&typeof c.data<"u")if(i&&c.data===(o==null?void 0:o.data)&&n.select===v(this,no))E=v(this,Ps);else try{z(this,no,n.select),E=n.select(c.data),E=Yu(i==null?void 0:i.data,E,n),z(this,Ps,E),z(this,un,null)}catch(I){z(this,un,I)}else E=c.data;if(typeof n.placeholderData<"u"&&typeof E>"u"&&x==="pending"){let I;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))I=i.data;else if(I=typeof n.placeholderData=="function"?n.placeholderData((O=v(this,Rs))==null?void 0:O.state.data,v(this,Rs)):n.placeholderData,n.select&&typeof I<"u")try{I=n.select(I),z(this,un,null)}catch(N){z(this,un,N)}typeof I<"u"&&(x="success",E=Yu(i==null?void 0:i.data,I,n),_=!0)}v(this,un)&&(p=v(this,un),E=v(this,Ps),h=Date.now(),x="error");const f=g==="fetching",d=x==="pending",m=x==="error",k=d&&f;return{status:x,fetchStatus:g,isPending:d,isSuccess:x==="success",isError:m,isInitialLoading:k,isLoading:k,data:E,dataUpdatedAt:c.dataUpdatedAt,error:p,errorUpdatedAt:h,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:f,isRefetching:f&&!d,isLoadingError:m&&c.dataUpdatedAt===0,isPaused:g==="paused",isPlaceholderData:_,isRefetchError:m&&c.dataUpdatedAt!==0,isStale:hd(t,n),refetch:this.refetch}}updateResult(t){const n=v(this,nt),r=this.createResult(v(this,Se),this.options);if(z(this,Or,v(this,Se).state),z(this,Ns,this.options),v(this,Or).data!==void 0&&z(this,Rs,v(this,Se)),Ku(r,n))return;z(this,nt,r);const s={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!v(this,Os).size)return!0;const l=new Set(a??v(this,Os));return this.options.throwOnError&&l.add("error"),Object.keys(v(this,nt)).some(u=>{const c=u;return v(this,nt)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(s.listeners=!0),ae(this,Ka,Vm).call(this,{...s,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ae(this,oo,ec).call(this)}},ct=new WeakMap,Se=new WeakMap,to=new WeakMap,nt=new WeakMap,Or=new WeakMap,Ns=new WeakMap,un=new WeakMap,no=new WeakMap,Ps=new WeakMap,Rs=new WeakMap,Ir=new WeakMap,Ar=new WeakMap,Yn=new WeakMap,Os=new WeakMap,Mr=new WeakSet,ui=function(t){ae(this,uo,rc).call(this);let n=v(this,Se).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Pt)),n},ro=new WeakSet,qu=function(){if(ae(this,ao,tc).call(this),zs||v(this,nt).isStale||!Wu(this.options.staleTime))return;const n=jm(v(this,nt).dataUpdatedAt,this.options.staleTime)+1;z(this,Ir,setTimeout(()=>{v(this,nt).isStale||this.updateResult()},n))},so=new WeakSet,Xu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(v(this,Se)):this.options.refetchInterval)??!1},io=new WeakSet,Ju=function(t){ae(this,lo,nc).call(this),z(this,Yn,t),!(zs||this.options.enabled===!1||!Wu(v(this,Yn))||v(this,Yn)===0)&&z(this,Ar,setInterval(()=>{(this.options.refetchIntervalInBackground||Oa.isFocused())&&ae(this,Mr,ui).call(this)},v(this,Yn)))},oo=new WeakSet,ec=function(){ae(this,ro,qu).call(this),ae(this,io,Ju).call(this,ae(this,so,Xu).call(this))},ao=new WeakSet,tc=function(){v(this,Ir)&&(clearTimeout(v(this,Ir)),z(this,Ir,void 0))},lo=new WeakSet,nc=function(){v(this,Ar)&&(clearInterval(v(this,Ar)),z(this,Ar,void 0))},uo=new WeakSet,rc=function(){const t=v(this,ct).getQueryCache().build(v(this,ct),this.options);if(t===v(this,Se))return;const n=v(this,Se);z(this,Se,t),z(this,to,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Ka=new WeakSet,Vm=function(t){We.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(v(this,nt))}),v(this,ct).getQueryCache().notify({query:v(this,Se),type:"observerResultsUpdated"})})},dp);function s1(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Vf(e,t){return s1(e,t)||e.state.dataUpdatedAt>0&&sc(e,t,t.refetchOnMount)}function sc(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&hd(e,t)}return!1}function Uf(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&hd(e,n)}function hd(e,t){return e.isStaleByTime(t.staleTime)}function i1(e,t){return!Ku(e.getCurrentResult(),t)}var Um=j.createContext(void 0),o1=e=>{const t=j.useContext(Um);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},a1=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Z.jsx(Um.Provider,{value:e,children:t})),Bm=j.createContext(!1),l1=()=>j.useContext(Bm);Bm.Provider;function u1(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var c1=j.createContext(u1()),d1=()=>j.useContext(c1);function f1(e,t){return typeof e=="function"?e(...t):!!e}var p1=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},h1=e=>{j.useEffect(()=>{e.clearReset()},[e])},m1=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&f1(n,[e.error,r]),y1=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},v1=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,g1=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function w1(e,t,n){const r=o1(n),s=l1(),i=d1(),o=r.defaultQueryOptions(e);o._optimisticResults=s?"isRestoring":"optimistic",y1(o),p1(o,i),h1(i);const[a]=j.useState(()=>new t(r,o)),l=a.getOptimisticResult(o);if(j.useSyncExternalStore(j.useCallback(u=>{const c=s?()=>{}:a.subscribe(We.batchCalls(u));return a.updateResult(),c},[a,s]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),j.useEffect(()=>{a.setOptions(o,{listeners:!1})},[o,a]),v1(o,l))throw g1(o,a,i);if(m1({result:l,errorResetBoundary:i,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash)}))throw l.error;return o.notifyOnChangeProps?l:a.trackResult(l)}function x1(e,t){return w1(e,r1,t)}function Ql({className:e,...t}){return Z.jsx("div",{className:yn("animate-pulse rounded-md bg-muted",e),...t})}const md=j.forwardRef(({className:e,...t},n)=>Z.jsx("textarea",{className:yn("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));md.displayName="Textarea";function _1(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}_1(`html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}html[dir=rtl],[data-sonner-toaster][dir=rtl]{--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translate(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-y-position=top]{top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast] [data-button]:focus-visible{box-shadow:0 0 0 2px #0006}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toast][data-theme=dark] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:"";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y: translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y: translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} +`);var k1=e=>{switch(e){case"success":return C1;case"info":return T1;case"warning":return b1;case"error":return N1;default:return null}},S1=Array(12).fill(0),E1=({visible:e})=>b.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},b.createElement("div",{className:"sonner-spinner"},S1.map((t,n)=>b.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),C1=b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},b.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),b1=b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},b.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),T1=b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},b.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),N1=b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},b.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),P1=()=>{let[e,t]=b.useState(!1);return b.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},ic=1,R1=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:ic++,i=this.toasts.find(a=>a.id===s),o=e.dismissible===void 0?!0:e.dismissible;return i?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:n}),{...a,...e,id:s,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:s}),s},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0;return r.then(i=>{if(i&&typeof i.ok=="boolean"&&!i.ok){s=!1;let o=typeof t.error=="function"?t.error(`HTTP error! status: ${i.status}`):t.error,a=typeof t.description=="function"?t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:n,type:"error",message:o,description:a})}else if(t.success!==void 0){s=!1;let o=typeof t.success=="function"?t.success(i):t.success,a=typeof t.description=="function"?t.description(i):t.description;this.create({id:n,type:"success",message:o,description:a})}}).catch(i=>{if(t.error!==void 0){s=!1;let o=typeof t.error=="function"?t.error(i):t.error,a=typeof t.description=="function"?t.description(i):t.description;this.create({id:n,type:"error",message:o,description:a})}}).finally(()=>{var i;s&&(this.dismiss(n),n=void 0),(i=t.finally)==null||i.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||ic++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},zt=new R1,O1=(e,t)=>{let n=(t==null?void 0:t.id)||ic++;return zt.addToast({title:e,...t,id:n}),n},I1=O1,Hl=Object.assign(I1,{success:zt.success,info:zt.info,warning:zt.warning,error:zt.error,custom:zt.custom,message:zt.message,promise:zt.promise,dismiss:zt.dismiss,loading:zt.loading}),A1=3,M1="32px",F1=4e3,j1=356,Zm=14,L1=20,D1=200;function z1(...e){return e.filter(Boolean).join(" ")}var $1=e=>{var t,n,r,s,i,o,a;let{invert:l,toast:u,unstyled:c,interacting:p,setHeights:h,visibleToasts:g,heights:x,index:_,toasts:E,expanded:f,removeToast:d,closeButton:m,style:k,cancelButtonStyle:C,actionButtonStyle:O,className:I="",descriptionClassName:N="",duration:X,position:W,gap:me=Zm,loadingIcon:L,expandByDefault:J,classNames:ee,icons:ce,closeButtonAriaLabel:ye="Close toast",pauseWhenPageIsHidden:Ce,cn:R}=e,[B,Y]=b.useState(!1),[K,te]=b.useState(!1),[xe,Fe]=b.useState(!1),[vt,pe]=b.useState(!1),[Lt,Jt]=b.useState(0),[vr,An]=b.useState(0),Hs=b.useRef(null),Mn=b.useRef(null),xo=_===0,_o=_+1<=g,gt=u.type,gr=u.dismissible!==!1,_d=u.className||"",y=u.descriptionClassName||"",w=b.useMemo(()=>x.findIndex(re=>re.toastId===u.id)||0,[x,u.id]),S=b.useMemo(()=>{var re;return(re=u.closeButton)!=null?re:m},[u.closeButton,m]),D=b.useMemo(()=>u.duration||X||F1,[u.duration,X]),M=b.useRef(0),P=b.useRef(0),H=b.useRef(0),le=b.useRef(null),[Ae,tt]=W.split("-"),vn=b.useMemo(()=>x.reduce((re,ge,je)=>je>=w?re:re+ge.height,0),[x,w]),ko=P1(),Ws=u.invert||l,wr=gt==="loading";P.current=b.useMemo(()=>w*me+vn,[w,vn]),b.useEffect(()=>{Y(!0)},[]),b.useLayoutEffect(()=>{if(!B)return;let re=Mn.current,ge=re.style.height;re.style.height="auto";let je=re.getBoundingClientRect().height;re.style.height=ge,An(je),h(tn=>tn.find(nn=>nn.toastId===u.id)?tn.map(nn=>nn.toastId===u.id?{...nn,height:je}:nn):[{toastId:u.id,height:je,position:u.position},...tn])},[B,u.title,u.description,h,u.id]);let en=b.useCallback(()=>{te(!0),Jt(P.current),h(re=>re.filter(ge=>ge.toastId!==u.id)),setTimeout(()=>{d(u)},D1)},[u,d,h,P]);b.useEffect(()=>{if(u.promise&>==="loading"||u.duration===1/0||u.type==="loading")return;let re,ge=D;return f||p||Ce&&ko?(()=>{if(H.current{var je;(je=u.onAutoClose)==null||je.call(u,u),en()},ge)),()=>clearTimeout(re)},[f,p,J,u,D,en,u.promise,gt,Ce,ko]),b.useEffect(()=>{let re=Mn.current;if(re){let ge=re.getBoundingClientRect().height;return An(ge),h(je=>[{toastId:u.id,height:ge,position:u.position},...je]),()=>h(je=>je.filter(tn=>tn.toastId!==u.id))}},[h,u.id]),b.useEffect(()=>{u.delete&&en()},[en,u.delete]);function So(){return ce!=null&&ce.loading?b.createElement("div",{className:"loader","data-visible":gt==="loading"},ce.loading):L?b.createElement("div",{className:"sonner-loader","data-visible":gt==="loading"},L):b.createElement(E1,{visible:gt==="loading"})}return b.createElement("li",{"aria-live":u.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:Mn,className:R(I,_d,ee==null?void 0:ee.toast,(t=u==null?void 0:u.classNames)==null?void 0:t.toast,ee==null?void 0:ee.default,ee==null?void 0:ee[gt],(n=u==null?void 0:u.classNames)==null?void 0:n[gt]),"data-sonner-toast":"","data-styled":!(u.jsx||u.unstyled||c),"data-mounted":B,"data-promise":!!u.promise,"data-removed":K,"data-visible":_o,"data-y-position":Ae,"data-x-position":tt,"data-index":_,"data-front":xo,"data-swiping":xe,"data-dismissible":gr,"data-type":gt,"data-invert":Ws,"data-swipe-out":vt,"data-expanded":!!(f||J&&B),style:{"--index":_,"--toasts-before":_,"--z-index":E.length-_,"--offset":`${K?Lt:P.current}px`,"--initial-height":J?"auto":`${vr}px`,...k,...u.style},onPointerDown:re=>{wr||!gr||(Hs.current=new Date,Jt(P.current),re.target.setPointerCapture(re.pointerId),re.target.tagName!=="BUTTON"&&(Fe(!0),le.current={x:re.clientX,y:re.clientY}))},onPointerUp:()=>{var re,ge,je,tn;if(vt||!gr)return;le.current=null;let nn=Number(((re=Mn.current)==null?void 0:re.style.getPropertyValue("--swipe-amount").replace("px",""))||0),Eo=new Date().getTime()-((ge=Hs.current)==null?void 0:ge.getTime()),Cy=Math.abs(nn)/Eo;if(Math.abs(nn)>=L1||Cy>.11){Jt(P.current),(je=u.onDismiss)==null||je.call(u,u),en(),pe(!0);return}(tn=Mn.current)==null||tn.style.setProperty("--swipe-amount","0px"),Fe(!1)},onPointerMove:re=>{var ge;if(!le.current||!gr)return;let je=re.clientY-le.current.y,tn=re.clientX-le.current.x,nn=(Ae==="top"?Math.min:Math.max)(0,je),Eo=re.pointerType==="touch"?10:2;Math.abs(nn)>Eo?(ge=Mn.current)==null||ge.style.setProperty("--swipe-amount",`${je}px`):Math.abs(tn)>Eo&&(le.current=null)}},S&&!u.jsx?b.createElement("button",{"aria-label":ye,"data-disabled":wr,"data-close-button":!0,onClick:wr||!gr?()=>{}:()=>{var re;en(),(re=u.onDismiss)==null||re.call(u,u)},className:R(ee==null?void 0:ee.closeButton,(r=u==null?void 0:u.classNames)==null?void 0:r.closeButton)},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),b.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,u.jsx||b.isValidElement(u.title)?u.jsx||u.title:b.createElement(b.Fragment,null,gt||u.icon||u.promise?b.createElement("div",{"data-icon":""},u.promise||u.type==="loading"&&!u.icon?u.icon||(ce==null?void 0:ce.loading)||So():null,u.type!=="loading"?u.icon||(ce==null?void 0:ce[gt])||k1(gt):null):null,b.createElement("div",{"data-content":""},b.createElement("div",{"data-title":"",className:R(ee==null?void 0:ee.title,(s=u==null?void 0:u.classNames)==null?void 0:s.title)},u.title),u.description?b.createElement("div",{"data-description":"",className:R(N,y,ee==null?void 0:ee.description,(i=u==null?void 0:u.classNames)==null?void 0:i.description)},u.description):null),u.cancel?b.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||C,onClick:re=>{var ge;gr&&(en(),(ge=u.cancel)!=null&&ge.onClick&&u.cancel.onClick(re))},className:R(ee==null?void 0:ee.cancelButton,(o=u==null?void 0:u.classNames)==null?void 0:o.cancelButton)},u.cancel.label):null,u.action?b.createElement("button",{"data-button":"",style:u.actionButtonStyle||O,onClick:re=>{var ge;(ge=u.action)==null||ge.onClick(re),!re.defaultPrevented&&en()},className:R(ee==null?void 0:ee.actionButton,(a=u==null?void 0:u.classNames)==null?void 0:a.actionButton)},u.action.label):null))};function Bf(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var V1=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:s,closeButton:i,className:o,offset:a,theme:l="light",richColors:u,duration:c,style:p,visibleToasts:h=A1,toastOptions:g,dir:x=Bf(),gap:_,loadingIcon:E,icons:f,containerAriaLabel:d="Notifications",pauseWhenPageIsHidden:m,cn:k=z1}=e,[C,O]=b.useState([]),I=b.useMemo(()=>Array.from(new Set([n].concat(C.filter(K=>K.position).map(K=>K.position)))),[C,n]),[N,X]=b.useState([]),[W,me]=b.useState(!1),[L,J]=b.useState(!1),[ee,ce]=b.useState(l!=="system"?l:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ye=b.useRef(null),Ce=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=b.useRef(null),B=b.useRef(!1),Y=b.useCallback(K=>O(te=>te.filter(({id:xe})=>xe!==K.id)),[]);return b.useEffect(()=>zt.subscribe(K=>{if(K.dismiss){O(te=>te.map(xe=>xe.id===K.id?{...xe,delete:!0}:xe));return}setTimeout(()=>{Yg.flushSync(()=>{O(te=>{let xe=te.findIndex(Fe=>Fe.id===K.id);return xe!==-1?[...te.slice(0,xe),{...te[xe],...K},...te.slice(xe+1)]:[K,...te]})})})}),[]),b.useEffect(()=>{if(l!=="system"){ce(l);return}l==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ce("dark"):ce("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:K})=>{ce(K?"dark":"light")})},[l]),b.useEffect(()=>{C.length<=1&&me(!1)},[C]),b.useEffect(()=>{let K=te=>{var xe,Fe;r.every(vt=>te[vt]||te.code===vt)&&(me(!0),(xe=ye.current)==null||xe.focus()),te.code==="Escape"&&(document.activeElement===ye.current||(Fe=ye.current)!=null&&Fe.contains(document.activeElement))&&me(!1)};return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[r]),b.useEffect(()=>{if(ye.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,B.current=!1)}},[ye.current]),C.length?b.createElement("section",{"aria-label":`${d} ${Ce}`,tabIndex:-1},I.map((K,te)=>{var xe;let[Fe,vt]=K.split("-");return b.createElement("ol",{key:K,dir:x==="auto"?Bf():x,tabIndex:-1,ref:ye,className:o,"data-sonner-toaster":!0,"data-theme":ee,"data-rich-colors":u,"data-y-position":Fe,"data-x-position":vt,style:{"--front-toast-height":`${((xe=N[0])==null?void 0:xe.height)||0}px`,"--offset":typeof a=="number"?`${a}px`:a||M1,"--width":`${j1}px`,"--gap":`${Zm}px`,...p},onBlur:pe=>{B.current&&!pe.currentTarget.contains(pe.relatedTarget)&&(B.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||B.current||(B.current=!0,R.current=pe.relatedTarget)},onMouseEnter:()=>me(!0),onMouseMove:()=>me(!0),onMouseLeave:()=>{L||me(!1)},onPointerDown:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||J(!0)},onPointerUp:()=>J(!1)},C.filter(pe=>!pe.position&&te===0||pe.position===K).map((pe,Lt)=>{var Jt,vr;return b.createElement($1,{key:pe.id,icons:f,index:Lt,toast:pe,duration:(Jt=g==null?void 0:g.duration)!=null?Jt:c,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:t,visibleToasts:h,closeButton:(vr=g==null?void 0:g.closeButton)!=null?vr:i,interacting:L,position:K,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:Y,toasts:C.filter(An=>An.position==pe.position),heights:N.filter(An=>An.position==pe.position),setHeights:X,expandByDefault:s,gap:_,loadingIcon:E,expanded:W,pauseWhenPageIsHidden:m,cn:k})}))})):null};const U1="Copied to clipboard",B1="Copy to clipboard",Z1="HTTP error! Status:",Q1="Hedera Airdrop List Verifier",H1="Provide a list of Account IDs and a Token ID and this app will return only the accounts which can successfully receive the token as an airdrop.",W1="TokenId",K1="0.0.1234",G1="Account Ids list",Y1="0.0.123, 0.0.124, 0.0.125, 0.0.126",q1="Build list",X1="out of",J1="accounts will be able to receive an airdrop of tokens from",ew="associated accounts",tw="Successfully fetched data",nw="TokenId must be in the format 0.0.x",rw="MinAmount must be a number greater than or equal to 0",sw="Account ids should be comma separated.",dt={copiedToClipboard:U1,copyToClipboard:B1,httpError:Z1,title:Q1,description:H1,tokenId:W1,exampleTokenId:K1,accountIds:G1,exampleAccountIds:Y1,buildList:q1,outOf:X1,textAreaLabel:J1,accounts:ew,successfullyFetchedData:tw,tokenIdFormatError:nw,minAmountFormatError:rw,accountIdsFormatError:sw},Qm=j.forwardRef(({className:e,type:t,...n},r)=>Z.jsx("input",{type:t,className:yn("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));Qm.displayName="Input";var vo=e=>e.type==="checkbox",us=e=>e instanceof Date,st=e=>e==null;const Hm=e=>typeof e=="object";var Ve=e=>!st(e)&&!Array.isArray(e)&&Hm(e)&&!us(e),Wm=e=>Ve(e)&&e.target?vo(e.target)?e.target.checked:e.target.value:e,iw=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Km=(e,t)=>e.has(iw(t)),ow=e=>{const t=e.constructor&&e.constructor.prototype;return Ve(t)&&t.hasOwnProperty("isPrototypeOf")},yd=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ut(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(yd&&(e instanceof Blob||e instanceof FileList))&&(n||Ve(e)))if(t=n?[]:{},!n&&!ow(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=ut(e[r]));else return e;return t}var go=e=>Array.isArray(e)?e.filter(Boolean):[],Ie=e=>e===void 0,F=(e,t,n)=>{if(!t||!Ve(e))return n;const r=go(t.split(/[,[\].]+?/)).reduce((s,i)=>st(s)?s:s[i],e);return Ie(r)||r===e?Ie(e[t])?n:e[t]:r},Zt=e=>typeof e=="boolean";const Aa={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Qt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},wn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Gm=b.createContext(null),pl=()=>b.useContext(Gm),aw=e=>{const{children:t,...n}=e;return b.createElement(Gm.Provider,{value:n},t)};var Ym=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==Qt.all&&(t._proxyFormState[o]=!r||Qt.all),n&&(n[o]=!0),e[o]}});return s},Rt=e=>Ve(e)&&!Object.keys(e).length,qm=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return Rt(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!r||Qt.all))},sa=e=>Array.isArray(e)?e:[e],Xm=(e,t,n)=>!e||!t||e===t||sa(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function vd(e){const t=b.useRef(e);t.current=e,b.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function lw(e){const t=pl(),{control:n=t.control,disabled:r,name:s,exact:i}=e||{},[o,a]=b.useState(n._formState),l=b.useRef(!0),u=b.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=b.useRef(s);return c.current=s,vd({disabled:r,next:p=>l.current&&Xm(c.current,p.name,i)&&qm(p,u.current,n._updateFormState)&&a({...n._formState,...p}),subject:n._subjects.state}),b.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),Ym(o,n,u.current,!1)}var dn=e=>typeof e=="string",Jm=(e,t,n,r,s)=>dn(e)?(r&&t.watch.add(e),F(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),F(n,i))):(r&&(t.watchAll=!0),n);function uw(e){const t=pl(),{control:n=t.control,name:r,defaultValue:s,disabled:i,exact:o}=e||{},a=b.useRef(r);a.current=r,vd({disabled:i,subject:n._subjects.values,next:c=>{Xm(a.current,c.name,o)&&u(ut(Jm(a.current,n._names,c.values||n._formValues,!1,s)))}});const[l,u]=b.useState(n._getWatch(r,s));return b.useEffect(()=>n._removeUnmounted()),l}var gd=e=>/^\w*$/.test(e),ey=e=>go(e.replace(/["|']|\]/g,"").split(/\.|\[/)),he=(e,t,n)=>{let r=-1;const s=gd(t)?[t]:ey(t),i=s.length,o=i-1;for(;++r{const c=s._options.shouldUnregister||i,p=(h,g)=>{const x=F(s._fields,h);x&&(x._f.mount=g)};if(p(n,!0),c){const h=ut(F(s._options.defaultValues,n));he(s._defaultValues,n,h),Ie(F(s._formValues,n))&&he(s._formValues,n,h)}return()=>{(o?c&&!s._state.action:c)?s.unregister(n):p(n,!1)}},[n,s,o,i]),b.useEffect(()=>{F(s._fields,n)&&s._updateDisabledField({disabled:r,fields:s._fields,name:n,value:F(s._fields,n)._f.value})},[r,n,s]),{field:{name:n,value:a,...Zt(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:b.useCallback(c=>u.current.onChange({target:{value:Wm(c),name:n},type:Aa.CHANGE}),[n]),onBlur:b.useCallback(()=>u.current.onBlur({target:{value:F(s._formValues,n),name:n},type:Aa.BLUR}),[n,s]),ref:c=>{const p=F(s._fields,n);p&&c&&(p._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:h=>c.setCustomValidity(h),reportValidity:()=>c.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!F(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!F(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!F(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!F(l.validatingFields,n)},error:{enumerable:!0,get:()=>F(l.errors,n)}})}}const dw=e=>e.render(cw(e));var ty=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},Zf=e=>({isOnSubmit:!e||e===Qt.onSubmit,isOnBlur:e===Qt.onBlur,isOnChange:e===Qt.onChange,isOnAll:e===Qt.all,isOnTouch:e===Qt.onTouched}),Qf=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const wi=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=F(e,s);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!r)break;if(o.ref&&t(o.ref,o.name)&&!r)break;wi(a,t)}else Ve(a)&&wi(a,t)}}};var fw=(e,t,n)=>{const r=go(F(e,n));return he(r,"root",t[n]),he(e,n,r),e},wd=e=>e.type==="file",Jn=e=>typeof e=="function",Ma=e=>{if(!yd)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ia=e=>dn(e),xd=e=>e.type==="radio",Fa=e=>e instanceof RegExp;const Hf={value:!1,isValid:!1},Wf={value:!0,isValid:!0};var ny=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ie(e[0].attributes.value)?Ie(e[0].value)||e[0].value===""?Wf:{value:e[0].value,isValid:!0}:Wf:Hf}return Hf};const Kf={isValid:!1,value:null};var ry=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Kf):Kf;function Gf(e,t,n="validate"){if(ia(e)||Array.isArray(e)&&e.every(ia)||Zt(e)&&!e)return{type:n,message:ia(e)?e:"",ref:t}}var Gr=e=>Ve(e)&&!Fa(e)?e:{value:e,message:""},Yf=async(e,t,n,r,s)=>{const{ref:i,refs:o,required:a,maxLength:l,minLength:u,min:c,max:p,pattern:h,validate:g,name:x,valueAsNumber:_,mount:E,disabled:f}=e._f,d=F(t,x);if(!E||f)return{};const m=o?o[0]:i,k=L=>{r&&m.reportValidity&&(m.setCustomValidity(Zt(L)?"":L||""),m.reportValidity())},C={},O=xd(i),I=vo(i),N=O||I,X=(_||wd(i))&&Ie(i.value)&&Ie(d)||Ma(i)&&i.value===""||d===""||Array.isArray(d)&&!d.length,W=ty.bind(null,x,n,C),me=(L,J,ee,ce=wn.maxLength,ye=wn.minLength)=>{const Ce=L?J:ee;C[x]={type:L?ce:ye,message:Ce,ref:i,...W(L?ce:ye,Ce)}};if(s?!Array.isArray(d)||!d.length:a&&(!N&&(X||st(d))||Zt(d)&&!d||I&&!ny(o).isValid||O&&!ry(o).isValid)){const{value:L,message:J}=ia(a)?{value:!!a,message:a}:Gr(a);if(L&&(C[x]={type:wn.required,message:J,ref:m,...W(wn.required,J)},!n))return k(J),C}if(!X&&(!st(c)||!st(p))){let L,J;const ee=Gr(p),ce=Gr(c);if(!st(d)&&!isNaN(d)){const ye=i.valueAsNumber||d&&+d;st(ee.value)||(L=ye>ee.value),st(ce.value)||(J=yenew Date(new Date().toDateString()+" "+Y),R=i.type=="time",B=i.type=="week";dn(ee.value)&&d&&(L=R?Ce(d)>Ce(ee.value):B?d>ee.value:ye>new Date(ee.value)),dn(ce.value)&&d&&(J=R?Ce(d)+L.value,ce=!st(J.value)&&d.length<+J.value;if((ee||ce)&&(me(ee,L.message,J.message),!n))return k(C[x].message),C}if(h&&!X&&dn(d)){const{value:L,message:J}=Gr(h);if(Fa(L)&&!d.match(L)&&(C[x]={type:wn.pattern,message:J,ref:i,...W(wn.pattern,J)},!n))return k(J),C}if(g){if(Jn(g)){const L=await g(d,t),J=Gf(L,m);if(J&&(C[x]={...J,...W(wn.validate,J.message)},!n))return k(J.message),C}else if(Ve(g)){let L={};for(const J in g){if(!Rt(L)&&!n)break;const ee=Gf(await g[J](d,t),m,J);ee&&(L={...ee,...W(J,ee.message)},k(ee.message),n&&(C[x]=L))}if(!Rt(L)&&(C[x]={ref:m,...L},!n))return C}}return k(!0),C};function pw(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},ja=e=>st(e)||!Hm(e);function br(e,t){if(ja(e)||ja(t))return e===t;if(us(e)&&us(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n){const i=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const o=t[s];if(us(i)&&us(o)||Ve(i)&&Ve(o)||Array.isArray(i)&&Array.isArray(o)?!br(i,o):i!==o)return!1}}return!0}var sy=e=>e.type==="select-multiple",mw=e=>xd(e)||vo(e),Kl=e=>Ma(e)&&e.isConnected,iy=e=>{for(const t in e)if(Jn(e[t]))return!0;return!1};function La(e,t={}){const n=Array.isArray(e);if(Ve(e)||n)for(const r in e)Array.isArray(e[r])||Ve(e[r])&&!iy(e[r])?(t[r]=Array.isArray(e[r])?[]:{},La(e[r],t[r])):st(e[r])||(t[r]=!0);return t}function oy(e,t,n){const r=Array.isArray(e);if(Ve(e)||r)for(const s in e)Array.isArray(e[s])||Ve(e[s])&&!iy(e[s])?Ie(t)||ja(n[s])?n[s]=Array.isArray(e[s])?La(e[s],[]):{...La(e[s])}:oy(e[s],st(t)?{}:t[s],n[s]):n[s]=!br(e[s],t[s]);return n}var Zo=(e,t)=>oy(e,t,La(t)),ay=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ie(e)?e:t?e===""?NaN:e&&+e:n&&dn(e)?new Date(e):r?r(e):e;function Gl(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return wd(t)?t.files:xd(t)?ry(e.refs).value:sy(t)?[...t.selectedOptions].map(({value:n})=>n):vo(t)?ny(e.refs).value:ay(Ie(t.value)?e.ref.value:t.value,e)}var yw=(e,t,n,r)=>{const s={};for(const i of e){const o=F(t,i);o&&he(s,i,o._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},si=e=>Ie(e)?e:Fa(e)?e.source:Ve(e)?Fa(e.value)?e.value.source:e.value:e,vw=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function qf(e,t,n){const r=F(e,n);if(r||gd(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),o=F(t,i),a=F(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};s.pop()}return{name:n}}var gw=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,ww=(e,t)=>!go(F(e,t)).length&&Ue(e,t);const xw={mode:Qt.onSubmit,reValidateMode:Qt.onChange,shouldFocusError:!0};function _w(e={}){let t={...xw,...e},n={submitCount:0,isDirty:!1,isLoading:Jn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},s=Ve(t.defaultValues)||Ve(t.values)?ut(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:ut(s),o={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:Wl(),array:Wl(),state:Wl()},h=Zf(t.mode),g=Zf(t.reValidateMode),x=t.criteriaMode===Qt.all,_=y=>w=>{clearTimeout(u),u=setTimeout(y,w)},E=async y=>{if(c.isValid||y){const w=t.resolver?Rt((await N()).errors):await W(r,!0);w!==n.isValid&&p.state.next({isValid:w})}},f=(y,w)=>{(c.isValidating||c.validatingFields)&&((y||Array.from(a.mount)).forEach(S=>S&&he(n.validatingFields,S,!!w)),n.isValidating=Object.values(n.validatingFields).some(S=>S),p.state.next({validatingFields:n.validatingFields,isValidating:n.isValidating}))},d=(y,w=[],S,D,M=!0,P=!0)=>{if(D&&S){if(o.action=!0,P&&Array.isArray(F(r,y))){const H=S(F(r,y),D.argA,D.argB);M&&he(r,y,H)}if(P&&Array.isArray(F(n.errors,y))){const H=S(F(n.errors,y),D.argA,D.argB);M&&he(n.errors,y,H),ww(n.errors,y)}if(c.touchedFields&&P&&Array.isArray(F(n.touchedFields,y))){const H=S(F(n.touchedFields,y),D.argA,D.argB);M&&he(n.touchedFields,y,H)}c.dirtyFields&&(n.dirtyFields=Zo(s,i)),p.state.next({name:y,isDirty:L(y,w),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else he(i,y,w)},m=(y,w)=>{he(n.errors,y,w),p.state.next({errors:n.errors})},k=y=>{n.errors=y,p.state.next({errors:n.errors,isValid:!1})},C=(y,w,S,D)=>{const M=F(r,y);if(M){const P=F(i,y,Ie(S)?F(s,y):S);Ie(P)||D&&D.defaultChecked||w?he(i,y,w?P:Gl(M._f)):ce(y,P),o.mount&&E()}},O=(y,w,S,D,M)=>{let P=!1,H=!1;const le={name:y},Ae=!!(F(r,y)&&F(r,y)._f.disabled);if(!S||D){c.isDirty&&(H=n.isDirty,n.isDirty=le.isDirty=L(),P=H!==le.isDirty);const tt=Ae||br(F(s,y),w);H=!!(!Ae&&F(n.dirtyFields,y)),tt||Ae?Ue(n.dirtyFields,y):he(n.dirtyFields,y,!0),le.dirtyFields=n.dirtyFields,P=P||c.dirtyFields&&H!==!tt}if(S){const tt=F(n.touchedFields,y);tt||(he(n.touchedFields,y,S),le.touchedFields=n.touchedFields,P=P||c.touchedFields&&tt!==S)}return P&&M&&p.state.next(le),P?le:{}},I=(y,w,S,D)=>{const M=F(n.errors,y),P=c.isValid&&Zt(w)&&n.isValid!==w;if(e.delayError&&S?(l=_(()=>m(y,S)),l(e.delayError)):(clearTimeout(u),l=null,S?he(n.errors,y,S):Ue(n.errors,y)),(S?!br(M,S):M)||!Rt(D)||P){const H={...D,...P&&Zt(w)?{isValid:w}:{},errors:n.errors,name:y};n={...n,...H},p.state.next(H)}},N=async y=>{f(y,!0);const w=await t.resolver(i,t.context,yw(y||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return f(y),w},X=async y=>{const{errors:w}=await N(y);if(y)for(const S of y){const D=F(w,S);D?he(n.errors,S,D):Ue(n.errors,S)}else n.errors=w;return w},W=async(y,w,S={valid:!0})=>{for(const D in y){const M=y[D];if(M){const{_f:P,...H}=M;if(P){const le=a.array.has(P.name);f([D],!0);const Ae=await Yf(M,i,x,t.shouldUseNativeValidation&&!w,le);if(f([D]),Ae[P.name]&&(S.valid=!1,w))break;!w&&(F(Ae,P.name)?le?fw(n.errors,Ae,P.name):he(n.errors,P.name,Ae[P.name]):Ue(n.errors,P.name))}H&&await W(H,w,S)}}return S.valid},me=()=>{for(const y of a.unMount){const w=F(r,y);w&&(w._f.refs?w._f.refs.every(S=>!Kl(S)):!Kl(w._f.ref))&&pe(y)}a.unMount=new Set},L=(y,w)=>(y&&w&&he(i,y,w),!br(K(),s)),J=(y,w,S)=>Jm(y,a,{...o.mount?i:Ie(w)?s:dn(y)?{[y]:w}:w},S,w),ee=y=>go(F(o.mount?i:s,y,e.shouldUnregister?F(s,y,[]):[])),ce=(y,w,S={})=>{const D=F(r,y);let M=w;if(D){const P=D._f;P&&(!P.disabled&&he(i,y,ay(w,P)),M=Ma(P.ref)&&st(w)?"":w,sy(P.ref)?[...P.ref.options].forEach(H=>H.selected=M.includes(H.value)):P.refs?vo(P.ref)?P.refs.length>1?P.refs.forEach(H=>(!H.defaultChecked||!H.disabled)&&(H.checked=Array.isArray(M)?!!M.find(le=>le===H.value):M===H.value)):P.refs[0]&&(P.refs[0].checked=!!M):P.refs.forEach(H=>H.checked=H.value===M):wd(P.ref)?P.ref.value="":(P.ref.value=M,P.ref.type||p.values.next({name:y,values:{...i}})))}(S.shouldDirty||S.shouldTouch)&&O(y,M,S.shouldTouch,S.shouldDirty,!0),S.shouldValidate&&Y(y)},ye=(y,w,S)=>{for(const D in w){const M=w[D],P=`${y}.${D}`,H=F(r,P);(a.array.has(y)||!ja(M)||H&&!H._f)&&!us(M)?ye(P,M,S):ce(P,M,S)}},Ce=(y,w,S={})=>{const D=F(r,y),M=a.array.has(y),P=ut(w);he(i,y,P),M?(p.array.next({name:y,values:{...i}}),(c.isDirty||c.dirtyFields)&&S.shouldDirty&&p.state.next({name:y,dirtyFields:Zo(s,i),isDirty:L(y,P)})):D&&!D._f&&!st(P)?ye(y,P,S):ce(y,P,S),Qf(y,a)&&p.state.next({...n}),p.values.next({name:o.mount?y:void 0,values:{...i}})},R=async y=>{const w=y.target;let S=w.name,D=!0;const M=F(r,S),P=()=>w.type?Gl(M._f):Wm(y),H=le=>{D=Number.isNaN(le)||le===F(i,S,le)};if(M){let le,Ae;const tt=P(),vn=y.type===Aa.BLUR||y.type===Aa.FOCUS_OUT,ko=!vw(M._f)&&!t.resolver&&!F(n.errors,S)&&!M._f.deps||gw(vn,F(n.touchedFields,S),n.isSubmitted,g,h),Ws=Qf(S,a,vn);he(i,S,tt),vn?(M._f.onBlur&&M._f.onBlur(y),l&&l(0)):M._f.onChange&&M._f.onChange(y);const wr=O(S,tt,vn,!1),en=!Rt(wr)||Ws;if(!vn&&p.values.next({name:S,type:y.type,values:{...i}}),ko)return c.isValid&&E(),en&&p.state.next({name:S,...Ws?{}:wr});if(!vn&&Ws&&p.state.next({...n}),t.resolver){const{errors:So}=await N([S]);if(H(tt),D){const re=qf(n.errors,r,S),ge=qf(So,r,re.name||S);le=ge.error,S=ge.name,Ae=Rt(So)}}else f([S],!0),le=(await Yf(M,i,x,t.shouldUseNativeValidation))[S],f([S]),H(tt),D&&(le?Ae=!1:c.isValid&&(Ae=await W(r,!0)));D&&(M._f.deps&&Y(M._f.deps),I(S,Ae,le,wr))}},B=(y,w)=>{if(F(n.errors,w)&&y.focus)return y.focus(),1},Y=async(y,w={})=>{let S,D;const M=sa(y);if(t.resolver){const P=await X(Ie(y)?y:M);S=Rt(P),D=y?!M.some(H=>F(P,H)):S}else y?(D=(await Promise.all(M.map(async P=>{const H=F(r,P);return await W(H&&H._f?{[P]:H}:H)}))).every(Boolean),!(!D&&!n.isValid)&&E()):D=S=await W(r);return p.state.next({...!dn(y)||c.isValid&&S!==n.isValid?{}:{name:y},...t.resolver||!y?{isValid:S}:{},errors:n.errors}),w.shouldFocus&&!D&&wi(r,B,y?M:a.mount),D},K=y=>{const w={...s,...o.mount?i:{}};return Ie(y)?w:dn(y)?F(w,y):y.map(S=>F(w,S))},te=(y,w)=>({invalid:!!F((w||n).errors,y),isDirty:!!F((w||n).dirtyFields,y),isTouched:!!F((w||n).touchedFields,y),isValidating:!!F((w||n).validatingFields,y),error:F((w||n).errors,y)}),xe=y=>{y&&sa(y).forEach(w=>Ue(n.errors,w)),p.state.next({errors:y?n.errors:{}})},Fe=(y,w,S)=>{const D=(F(r,y,{_f:{}})._f||{}).ref;he(n.errors,y,{...w,ref:D}),p.state.next({name:y,errors:n.errors,isValid:!1}),S&&S.shouldFocus&&D&&D.focus&&D.focus()},vt=(y,w)=>Jn(y)?p.values.subscribe({next:S=>y(J(void 0,w),S)}):J(y,w,!0),pe=(y,w={})=>{for(const S of y?sa(y):a.mount)a.mount.delete(S),a.array.delete(S),w.keepValue||(Ue(r,S),Ue(i,S)),!w.keepError&&Ue(n.errors,S),!w.keepDirty&&Ue(n.dirtyFields,S),!w.keepTouched&&Ue(n.touchedFields,S),!w.keepIsValidating&&Ue(n.validatingFields,S),!t.shouldUnregister&&!w.keepDefaultValue&&Ue(s,S);p.values.next({values:{...i}}),p.state.next({...n,...w.keepDirty?{isDirty:L()}:{}}),!w.keepIsValid&&E()},Lt=({disabled:y,name:w,field:S,fields:D,value:M})=>{if(Zt(y)){const P=y?void 0:Ie(M)?Gl(S?S._f:F(D,w)._f):M;he(i,w,P),O(w,P,!1,!1,!0)}},Jt=(y,w={})=>{let S=F(r,y);const D=Zt(w.disabled);return he(r,y,{...S||{},_f:{...S&&S._f?S._f:{ref:{name:y}},name:y,mount:!0,...w}}),a.mount.add(y),S?Lt({field:S,disabled:w.disabled,name:y,value:w.value}):C(y,!0,w.value),{...D?{disabled:w.disabled}:{},...t.progressive?{required:!!w.required,min:si(w.min),max:si(w.max),minLength:si(w.minLength),maxLength:si(w.maxLength),pattern:si(w.pattern)}:{},name:y,onChange:R,onBlur:R,ref:M=>{if(M){Jt(y,w),S=F(r,y);const P=Ie(M.value)&&M.querySelectorAll&&M.querySelectorAll("input,select,textarea")[0]||M,H=mw(P),le=S._f.refs||[];if(H?le.find(Ae=>Ae===P):P===S._f.ref)return;he(r,y,{_f:{...S._f,...H?{refs:[...le.filter(Kl),P,...Array.isArray(F(s,y))?[{}]:[]],ref:{type:P.type,name:y}}:{ref:P}}}),C(y,!1,void 0,P)}else S=F(r,y,{}),S._f&&(S._f.mount=!1),(t.shouldUnregister||w.shouldUnregister)&&!(Km(a.array,y)&&o.action)&&a.unMount.add(y)}}},vr=()=>t.shouldFocusError&&wi(r,B,a.mount),An=y=>{Zt(y)&&(p.state.next({disabled:y}),wi(r,(w,S)=>{let D=y;const M=F(r,S);M&&Zt(M._f.disabled)&&(D||(D=M._f.disabled)),w.disabled=D},0,!1))},Hs=(y,w)=>async S=>{let D;S&&(S.preventDefault&&S.preventDefault(),S.persist&&S.persist());let M=ut(i);if(p.state.next({isSubmitting:!0}),t.resolver){const{errors:P,values:H}=await N();n.errors=P,M=H}else await W(r);if(Ue(n.errors,"root"),Rt(n.errors)){p.state.next({errors:{}});try{await y(M,S)}catch(P){D=P}}else w&&await w({...n.errors},S),vr(),setTimeout(vr);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Rt(n.errors)&&!D,submitCount:n.submitCount+1,errors:n.errors}),D)throw D},Mn=(y,w={})=>{F(r,y)&&(Ie(w.defaultValue)?Ce(y,ut(F(s,y))):(Ce(y,w.defaultValue),he(s,y,ut(w.defaultValue))),w.keepTouched||Ue(n.touchedFields,y),w.keepDirty||(Ue(n.dirtyFields,y),n.isDirty=w.defaultValue?L(y,ut(F(s,y))):L()),w.keepError||(Ue(n.errors,y),c.isValid&&E()),p.state.next({...n}))},xo=(y,w={})=>{const S=y?ut(y):s,D=ut(S),M=Rt(y),P=M?s:D;if(w.keepDefaultValues||(s=S),!w.keepValues){if(w.keepDirtyValues)for(const H of a.mount)F(n.dirtyFields,H)?he(P,H,F(i,H)):Ce(H,F(P,H));else{if(yd&&Ie(y))for(const H of a.mount){const le=F(r,H);if(le&&le._f){const Ae=Array.isArray(le._f.refs)?le._f.refs[0]:le._f.ref;if(Ma(Ae)){const tt=Ae.closest("form");if(tt){tt.reset();break}}}}r={}}i=e.shouldUnregister?w.keepDefaultValues?ut(s):{}:ut(P),p.array.next({values:{...P}}),p.values.next({values:{...P}})}a={mount:w.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!c.isValid||!!w.keepIsValid||!!w.keepDirtyValues,o.watch=!!e.shouldUnregister,p.state.next({submitCount:w.keepSubmitCount?n.submitCount:0,isDirty:M?!1:w.keepDirty?n.isDirty:!!(w.keepDefaultValues&&!br(y,s)),isSubmitted:w.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:M?[]:w.keepDirtyValues?w.keepDefaultValues&&i?Zo(s,i):n.dirtyFields:w.keepDefaultValues&&y?Zo(s,y):{},touchedFields:w.keepTouched?n.touchedFields:{},errors:w.keepErrors?n.errors:{},isSubmitSuccessful:w.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},_o=(y,w)=>xo(Jn(y)?y(i):y,w);return{control:{register:Jt,unregister:pe,getFieldState:te,handleSubmit:Hs,setError:Fe,_executeSchema:N,_getWatch:J,_getDirty:L,_updateValid:E,_removeUnmounted:me,_updateFieldArray:d,_updateDisabledField:Lt,_getFieldArray:ee,_reset:xo,_resetDefaultValues:()=>Jn(t.defaultValues)&&t.defaultValues().then(y=>{_o(y,t.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:y=>{n={...n,...y}},_disableForm:An,_subjects:p,_proxyFormState:c,_setErrors:k,get _fields(){return r},get _formValues(){return i},get _state(){return o},set _state(y){o=y},get _defaultValues(){return s},get _names(){return a},set _names(y){a=y},get _formState(){return n},set _formState(y){n=y},get _options(){return t},set _options(y){t={...t,...y}}},trigger:Y,register:Jt,handleSubmit:Hs,watch:vt,setValue:Ce,getValues:K,reset:_o,resetField:Mn,clearErrors:xe,unregister:pe,setError:Fe,setFocus:(y,w={})=>{const S=F(r,y),D=S&&S._f;if(D){const M=D.refs?D.refs[0]:D.ref;M.focus&&(M.focus(),w.shouldSelect&&M.select())}},getFieldState:te}}function kw(e={}){const t=b.useRef(),n=b.useRef(),[r,s]=b.useState({isDirty:!1,isValidating:!1,isLoading:Jn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Jn(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={..._w(e),formState:r});const i=t.current.control;return i._options=e,vd({subject:i._subjects.state,next:o=>{qm(o,i._proxyFormState,i._updateFormState,!0)&&s({...i._formState})}}),b.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),b.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),b.useEffect(()=>{e.values&&!br(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),b.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),b.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),b.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=Ym(r,i),t.current}const Sw=aw,ly=j.createContext({}),Xf=({...e})=>Z.jsx(ly.Provider,{value:{name:e.name},children:Z.jsx(dw,{...e})}),hl=()=>{const e=j.useContext(ly),t=j.useContext(uy),{getFieldState:n,formState:r}=pl(),s=n(e.name,r);if(!e)throw new Error("useFormField should be used within ");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},uy=j.createContext({}),oc=j.forwardRef(({className:e,...t},n)=>{const r=j.useId();return Z.jsx(uy.Provider,{value:{id:r},children:Z.jsx("div",{ref:n,className:yn("space-y-2",e),...t})})});oc.displayName="FormItem";const ac=j.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:s}=hl();return Z.jsx(fd,{ref:n,className:yn(r&&"text-destructive",e),htmlFor:s,...t})});ac.displayName="FormLabel";const lc=j.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:s,formMessageId:i}=hl();return Z.jsx(dl,{ref:t,id:r,"aria-describedby":n?`${s} ${i}`:`${s}`,"aria-invalid":!!n,...e})});lc.displayName="FormControl";const Ew=j.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=hl();return Z.jsx("p",{ref:n,id:r,className:yn("text-sm text-muted-foreground",e),...t})});Ew.displayName="FormDescription";const uc=j.forwardRef(({className:e,children:t,...n},r)=>{const{error:s,formMessageId:i}=hl(),o=s?String(s==null?void 0:s.message):t;return o?Z.jsx("p",{ref:r,id:i,className:yn("text-sm font-medium text-destructive",e),...n,children:o}):null});uc.displayName="FormMessage";var fe;(function(e){e.assertEqual=s=>s;function t(s){}e.assertIs=t;function n(s){throw new Error}e.assertNever=n,e.arrayToEnum=s=>{const i={};for(const o of s)i[o]=o;return i},e.getValidEnumValues=s=>{const i=e.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(const a of i)o[a]=s[a];return e.objectValues(o)},e.objectValues=s=>e.objectKeys(s).map(function(i){return s[i]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},e.find=(s,i)=>{for(const o of s)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function r(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(fe||(fe={}));var cc;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(cc||(cc={}));const $=fe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Bn=e=>{switch(typeof e){case"undefined":return $.undefined;case"string":return $.string;case"number":return isNaN(e)?$.nan:$.number;case"boolean":return $.boolean;case"function":return $.function;case"bigint":return $.bigint;case"symbol":return $.symbol;case"object":return Array.isArray(e)?$.array:e===null?$.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?$.promise:typeof Map<"u"&&e instanceof Map?$.map:typeof Set<"u"&&e instanceof Set?$.set:typeof Date<"u"&&e instanceof Date?$.date:$.object;default:return $.unknown}},A=fe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Cw=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Gt extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(i){return i.message},r={_errors:[]},s=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let a=r,l=0;for(;ln.message){const n={},r=[];for(const s of this.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(t(s))):r.push(t(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Gt.create=e=>new Gt(e);const zi=(e,t)=>{let n;switch(e.code){case A.invalid_type:e.received===$.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case A.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,fe.jsonStringifyReplacer)}`;break;case A.unrecognized_keys:n=`Unrecognized key(s) in object: ${fe.joinValues(e.keys,", ")}`;break;case A.invalid_union:n="Invalid input";break;case A.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${fe.joinValues(e.options)}`;break;case A.invalid_enum_value:n=`Invalid enum value. Expected ${fe.joinValues(e.options)}, received '${e.received}'`;break;case A.invalid_arguments:n="Invalid function arguments";break;case A.invalid_return_type:n="Invalid function return type";break;case A.invalid_date:n="Invalid date";break;case A.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:fe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case A.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case A.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case A.custom:n="Invalid input";break;case A.invalid_intersection_types:n="Intersection results could not be merged";break;case A.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case A.not_finite:n="Number must be finite";break;default:n=t.defaultError,fe.assertNever(e)}return{message:n}};let cy=zi;function bw(e){cy=e}function Da(){return cy}const za=e=>{const{data:t,path:n,errorMaps:r,issueData:s}=e,i=[...n,...s.path||[]],o={...s,path:i};let a="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)a=u(o,{data:t,defaultError:a}).message;return{...s,path:i,message:s.message||a}},Tw=[];function V(e,t){const n=za({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Da(),zi].filter(r=>!!r)});e.common.issues.push(n)}class et{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const s of n){if(s.status==="aborted")return ne;s.status==="dirty"&&t.dirty(),r.push(s.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const s of n)r.push({key:await s.key,value:await s.value});return et.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const s of n){const{key:i,value:o}=s;if(i.status==="aborted"||o.status==="aborted")return ne;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const ne=Object.freeze({status:"aborted"}),dy=e=>({status:"dirty",value:e}),ot=e=>({status:"valid",value:e}),dc=e=>e.status==="aborted",fc=e=>e.status==="dirty",$i=e=>e.status==="valid",$a=e=>typeof Promise<"u"&&e instanceof Promise;var G;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(G||(G={}));class hn{constructor(t,n,r,s){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Jf=(e,t)=>{if($i(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Gt(e.common.issues);return this._error=n,this._error}}};function se(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:s}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(o,a)=>o.code!=="invalid_type"?{message:a.defaultError}:typeof a.data>"u"?{message:r??a.defaultError}:{message:n??a.defaultError},description:s}}class oe{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Bn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Bn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new et,ctx:{common:t.parent.common,data:t.data,parsedType:Bn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if($a(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const s={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Bn(t)},i=this._parseSync({data:t,path:s.path,parent:s});return Jf(s,i)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Bn(t)},s=this._parse({data:t,path:r.path,parent:r}),i=await($a(s)?s:Promise.resolve(s));return Jf(r,i)}refine(t,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,i)=>{const o=t(s),a=()=>i.addIssue({code:A.custom,...r(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,s)=>t(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(t){return new Xt({schema:this,typeName:q.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return bn.create(this,this._def)}nullable(){return Qr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Yt.create(this,this._def)}promise(){return Vs.create(this,this._def)}or(t){return Zi.create([this,t],this._def)}and(t){return Qi.create(this,t,this._def)}transform(t){return new Xt({...se(this._def),schema:this,typeName:q.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Yi({...se(this._def),innerType:this,defaultValue:n,typeName:q.ZodDefault})}brand(){return new py({typeName:q.ZodBranded,type:this,...se(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Za({...se(this._def),innerType:this,catchValue:n,typeName:q.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return wo.create(this,t)}readonly(){return Ha.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Nw=/^c[^\s-]{8,}$/i,Pw=/^[a-z][a-z0-9]*$/,Rw=/^[0-9A-HJKMNP-TV-Z]{26}$/,Ow=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Iw=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Aw="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Yl;const Mw=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,Fw=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,jw=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function Lw(e,t){return!!((t==="v4"||!t)&&Mw.test(e)||(t==="v6"||!t)&&Fw.test(e))}class Ht extends oe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==$.string){const i=this._getOrReturnCtx(t);return V(i,{code:A.invalid_type,expected:$.string,received:i.parsedType}),ne}const r=new et;let s;for(const i of this._def.checks)if(i.kind==="min")t.data.lengthi.value&&(s=this._getOrReturnCtx(t,s),V(s,{code:A.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,a=t.data.lengtht.test(s),{validation:n,code:A.invalid_string,...G.errToObj(r)})}_addCheck(t){return new Ht({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...G.errToObj(t)})}url(t){return this._addCheck({kind:"url",...G.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...G.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...G.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...G.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...G.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...G.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...G.errToObj(t)})}datetime(t){var n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,...G.errToObj(t==null?void 0:t.message)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...G.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...G.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...G.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...G.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...G.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...G.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...G.errToObj(n)})}nonempty(t){return this.min(1,G.errToObj(t))}trim(){return new Ht({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ht({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ht({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Ht({checks:[],typeName:q.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...se(e)})};function Dw(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=n>r?n:r,i=parseInt(e.toFixed(s).replace(".","")),o=parseInt(t.toFixed(s).replace(".",""));return i%o/Math.pow(10,s)}class dr extends oe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==$.number){const i=this._getOrReturnCtx(t);return V(i,{code:A.invalid_type,expected:$.number,received:i.parsedType}),ne}let r;const s=new et;for(const i of this._def.checks)i.kind==="int"?fe.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),V(r,{code:A.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),V(r,{code:A.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?Dw(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),V(r,{code:A.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),V(r,{code:A.not_finite,message:i.message}),s.dirty()):fe.assertNever(i);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,G.toString(n))}gt(t,n){return this.setLimit("min",t,!1,G.toString(n))}lte(t,n){return this.setLimit("max",t,!0,G.toString(n))}lt(t,n){return this.setLimit("max",t,!1,G.toString(n))}setLimit(t,n,r,s){return new dr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:G.toString(s)}]})}_addCheck(t){return new dr({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:G.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:G.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:G.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:G.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:G.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:G.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:G.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:G.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:G.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&fe.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew dr({checks:[],typeName:q.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...se(e)});class fr extends oe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==$.bigint){const i=this._getOrReturnCtx(t);return V(i,{code:A.invalid_type,expected:$.bigint,received:i.parsedType}),ne}let r;const s=new et;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),V(r,{code:A.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),V(r,{code:A.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):fe.assertNever(i);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,G.toString(n))}gt(t,n){return this.setLimit("min",t,!1,G.toString(n))}lte(t,n){return this.setLimit("max",t,!0,G.toString(n))}lt(t,n){return this.setLimit("max",t,!1,G.toString(n))}setLimit(t,n,r,s){return new fr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:G.toString(s)}]})}_addCheck(t){return new fr({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:G.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:G.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:G.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:G.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:G.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new fr({checks:[],typeName:q.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...se(e)})};class Vi extends oe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==$.boolean){const r=this._getOrReturnCtx(t);return V(r,{code:A.invalid_type,expected:$.boolean,received:r.parsedType}),ne}return ot(t.data)}}Vi.create=e=>new Vi({typeName:q.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...se(e)});class Br extends oe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==$.date){const i=this._getOrReturnCtx(t);return V(i,{code:A.invalid_type,expected:$.date,received:i.parsedType}),ne}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return V(i,{code:A.invalid_date}),ne}const r=new et;let s;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()i.value&&(s=this._getOrReturnCtx(t,s),V(s,{code:A.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):fe.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Br({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:G.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:G.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew Br({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:q.ZodDate,...se(e)});class Va extends oe{_parse(t){if(this._getType(t)!==$.symbol){const r=this._getOrReturnCtx(t);return V(r,{code:A.invalid_type,expected:$.symbol,received:r.parsedType}),ne}return ot(t.data)}}Va.create=e=>new Va({typeName:q.ZodSymbol,...se(e)});class Ui extends oe{_parse(t){if(this._getType(t)!==$.undefined){const r=this._getOrReturnCtx(t);return V(r,{code:A.invalid_type,expected:$.undefined,received:r.parsedType}),ne}return ot(t.data)}}Ui.create=e=>new Ui({typeName:q.ZodUndefined,...se(e)});class Bi extends oe{_parse(t){if(this._getType(t)!==$.null){const r=this._getOrReturnCtx(t);return V(r,{code:A.invalid_type,expected:$.null,received:r.parsedType}),ne}return ot(t.data)}}Bi.create=e=>new Bi({typeName:q.ZodNull,...se(e)});class $s extends oe{constructor(){super(...arguments),this._any=!0}_parse(t){return ot(t.data)}}$s.create=e=>new $s({typeName:q.ZodAny,...se(e)});class Lr extends oe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ot(t.data)}}Lr.create=e=>new Lr({typeName:q.ZodUnknown,...se(e)});class On extends oe{_parse(t){const n=this._getOrReturnCtx(t);return V(n,{code:A.invalid_type,expected:$.never,received:n.parsedType}),ne}}On.create=e=>new On({typeName:q.ZodNever,...se(e)});class Ua extends oe{_parse(t){if(this._getType(t)!==$.undefined){const r=this._getOrReturnCtx(t);return V(r,{code:A.invalid_type,expected:$.void,received:r.parsedType}),ne}return ot(t.data)}}Ua.create=e=>new Ua({typeName:q.ZodVoid,...se(e)});class Yt extends oe{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),s=this._def;if(n.parsedType!==$.array)return V(n,{code:A.invalid_type,expected:$.array,received:n.parsedType}),ne;if(s.exactLength!==null){const o=n.data.length>s.exactLength.value,a=n.data.lengths.maxLength.value&&(V(n,{code:A.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>s.type._parseAsync(new hn(n,o,n.path,a)))).then(o=>et.mergeArray(r,o));const i=[...n.data].map((o,a)=>s.type._parseSync(new hn(n,o,n.path,a)));return et.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Yt({...this._def,minLength:{value:t,message:G.toString(n)}})}max(t,n){return new Yt({...this._def,maxLength:{value:t,message:G.toString(n)}})}length(t,n){return new Yt({...this._def,exactLength:{value:t,message:G.toString(n)}})}nonempty(t){return this.min(1,t)}}Yt.create=(e,t)=>new Yt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:q.ZodArray,...se(t)});function Yr(e){if(e instanceof Te){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=bn.create(Yr(r))}return new Te({...e._def,shape:()=>t})}else return e instanceof Yt?new Yt({...e._def,type:Yr(e.element)}):e instanceof bn?bn.create(Yr(e.unwrap())):e instanceof Qr?Qr.create(Yr(e.unwrap())):e instanceof mn?mn.create(e.items.map(t=>Yr(t))):e}class Te extends oe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=fe.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==$.object){const u=this._getOrReturnCtx(t);return V(u,{code:A.invalid_type,expected:$.object,received:u.parsedType}),ne}const{status:r,ctx:s}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof On&&this._def.unknownKeys==="strip"))for(const u in s.data)o.includes(u)||a.push(u);const l=[];for(const u of o){const c=i[u],p=s.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new hn(s,p,s.path,u)),alwaysSet:u in s.data})}if(this._def.catchall instanceof On){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of a)l.push({key:{status:"valid",value:c},value:{status:"valid",value:s.data[c]}});else if(u==="strict")a.length>0&&(V(s,{code:A.unrecognized_keys,keys:a}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of a){const p=s.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new hn(s,p,s.path,c)),alwaysSet:c in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const p=await c.key;u.push({key:p,value:await c.value,alwaysSet:c.alwaysSet})}return u}).then(u=>et.mergeObjectSync(r,u)):et.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return G.errToObj,new Te({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var s,i,o,a;const l=(o=(i=(s=this._def).errorMap)===null||i===void 0?void 0:i.call(s,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=G.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new Te({...this._def,unknownKeys:"strip"})}passthrough(){return new Te({...this._def,unknownKeys:"passthrough"})}extend(t){return new Te({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Te({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:q.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Te({...this._def,catchall:t})}pick(t){const n={};return fe.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Te({...this._def,shape:()=>n})}omit(t){const n={};return fe.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Te({...this._def,shape:()=>n})}deepPartial(){return Yr(this)}partial(t){const n={};return fe.objectKeys(this.shape).forEach(r=>{const s=this.shape[r];t&&!t[r]?n[r]=s:n[r]=s.optional()}),new Te({...this._def,shape:()=>n})}required(t){const n={};return fe.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof bn;)i=i._def.innerType;n[r]=i}}),new Te({...this._def,shape:()=>n})}keyof(){return fy(fe.objectKeys(this.shape))}}Te.create=(e,t)=>new Te({shape:()=>e,unknownKeys:"strip",catchall:On.create(),typeName:q.ZodObject,...se(t)});Te.strictCreate=(e,t)=>new Te({shape:()=>e,unknownKeys:"strict",catchall:On.create(),typeName:q.ZodObject,...se(t)});Te.lazycreate=(e,t)=>new Te({shape:e,unknownKeys:"strip",catchall:On.create(),typeName:q.ZodObject,...se(t)});class Zi extends oe{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function s(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new Gt(a.ctx.common.issues));return V(n,{code:A.invalid_union,unionErrors:o}),ne}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(s);{let i;const o=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!i&&(i={result:c,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(l=>new Gt(l));return V(n,{code:A.invalid_union,unionErrors:a}),ne}}get options(){return this._def.options}}Zi.create=(e,t)=>new Zi({options:e,typeName:q.ZodUnion,...se(t)});const oa=e=>e instanceof Wi?oa(e.schema):e instanceof Xt?oa(e.innerType()):e instanceof Ki?[e.value]:e instanceof pr?e.options:e instanceof Gi?Object.keys(e.enum):e instanceof Yi?oa(e._def.innerType):e instanceof Ui?[void 0]:e instanceof Bi?[null]:null;class ml extends oe{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==$.object)return V(n,{code:A.invalid_type,expected:$.object,received:n.parsedType}),ne;const r=this.discriminator,s=n.data[r],i=this.optionsMap.get(s);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(V(n,{code:A.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),ne)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const s=new Map;for(const i of n){const o=oa(i.shape[t]);if(!o)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of o){if(s.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);s.set(a,i)}}return new ml({typeName:q.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:s,...se(r)})}}function pc(e,t){const n=Bn(e),r=Bn(t);if(e===t)return{valid:!0,data:e};if(n===$.object&&r===$.object){const s=fe.objectKeys(t),i=fe.objectKeys(e).filter(a=>s.indexOf(a)!==-1),o={...e,...t};for(const a of i){const l=pc(e[a],t[a]);if(!l.valid)return{valid:!1};o[a]=l.data}return{valid:!0,data:o}}else if(n===$.array&&r===$.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let i=0;i{if(dc(i)||dc(o))return ne;const a=pc(i.value,o.value);return a.valid?((fc(i)||fc(o))&&n.dirty(),{status:n.value,value:a.data}):(V(r,{code:A.invalid_intersection_types}),ne)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Qi.create=(e,t,n)=>new Qi({left:e,right:t,typeName:q.ZodIntersection,...se(n)});class mn extends oe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.array)return V(r,{code:A.invalid_type,expected:$.array,received:r.parsedType}),ne;if(r.data.lengththis._def.items.length&&(V(r,{code:A.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new hn(r,o,r.path,a)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>et.mergeArray(n,o)):et.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new mn({...this._def,rest:t})}}mn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new mn({items:e,typeName:q.ZodTuple,rest:null,...se(t)})};class Hi extends oe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.object)return V(r,{code:A.invalid_type,expected:$.object,received:r.parsedType}),ne;const s=[],i=this._def.keyType,o=this._def.valueType;for(const a in r.data)s.push({key:i._parse(new hn(r,a,r.path,a)),value:o._parse(new hn(r,r.data[a],r.path,a))});return r.common.async?et.mergeObjectAsync(n,s):et.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof oe?new Hi({keyType:t,valueType:n,typeName:q.ZodRecord,...se(r)}):new Hi({keyType:Ht.create(),valueType:t,typeName:q.ZodRecord,...se(n)})}}class Ba extends oe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.map)return V(r,{code:A.invalid_type,expected:$.map,received:r.parsedType}),ne;const s=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([a,l],u)=>({key:s._parse(new hn(r,a,r.path,[u,"key"])),value:i._parse(new hn(r,l,r.path,[u,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of o){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return ne;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of o){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return ne;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}}}}Ba.create=(e,t,n)=>new Ba({valueType:t,keyType:e,typeName:q.ZodMap,...se(n)});class Zr extends oe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==$.set)return V(r,{code:A.invalid_type,expected:$.set,received:r.parsedType}),ne;const s=this._def;s.minSize!==null&&r.data.sizes.maxSize.value&&(V(r,{code:A.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const i=this._def.valueType;function o(l){const u=new Set;for(const c of l){if(c.status==="aborted")return ne;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const a=[...r.data.values()].map((l,u)=>i._parse(new hn(r,l,r.path,u)));return r.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(t,n){return new Zr({...this._def,minSize:{value:t,message:G.toString(n)}})}max(t,n){return new Zr({...this._def,maxSize:{value:t,message:G.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Zr.create=(e,t)=>new Zr({valueType:e,minSize:null,maxSize:null,typeName:q.ZodSet,...se(t)});class ys extends oe{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==$.function)return V(n,{code:A.invalid_type,expected:$.function,received:n.parsedType}),ne;function r(a,l){return za({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Da(),zi].filter(u=>!!u),issueData:{code:A.invalid_arguments,argumentsError:l}})}function s(a,l){return za({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Da(),zi].filter(u=>!!u),issueData:{code:A.invalid_return_type,returnTypeError:l}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof Vs){const a=this;return ot(async function(...l){const u=new Gt([]),c=await a._def.args.parseAsync(l,i).catch(g=>{throw u.addIssue(r(l,g)),u}),p=await Reflect.apply(o,this,c);return await a._def.returns._def.type.parseAsync(p,i).catch(g=>{throw u.addIssue(s(p,g)),u})})}else{const a=this;return ot(function(...l){const u=a._def.args.safeParse(l,i);if(!u.success)throw new Gt([r(l,u.error)]);const c=Reflect.apply(o,this,u.data),p=a._def.returns.safeParse(c,i);if(!p.success)throw new Gt([s(c,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new ys({...this._def,args:mn.create(t).rest(Lr.create())})}returns(t){return new ys({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new ys({args:t||mn.create([]).rest(Lr.create()),returns:n||Lr.create(),typeName:q.ZodFunction,...se(r)})}}class Wi extends oe{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Wi.create=(e,t)=>new Wi({getter:e,typeName:q.ZodLazy,...se(t)});class Ki extends oe{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return V(n,{received:n.data,code:A.invalid_literal,expected:this._def.value}),ne}return{status:"valid",value:t.data}}get value(){return this._def.value}}Ki.create=(e,t)=>new Ki({value:e,typeName:q.ZodLiteral,...se(t)});function fy(e,t){return new pr({values:e,typeName:q.ZodEnum,...se(t)})}class pr extends oe{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return V(n,{expected:fe.joinValues(r),received:n.parsedType,code:A.invalid_type}),ne}if(this._def.values.indexOf(t.data)===-1){const n=this._getOrReturnCtx(t),r=this._def.values;return V(n,{received:n.data,code:A.invalid_enum_value,options:r}),ne}return ot(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t){return pr.create(t)}exclude(t){return pr.create(this.options.filter(n=>!t.includes(n)))}}pr.create=fy;class Gi extends oe{_parse(t){const n=fe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==$.string&&r.parsedType!==$.number){const s=fe.objectValues(n);return V(r,{expected:fe.joinValues(s),received:r.parsedType,code:A.invalid_type}),ne}if(n.indexOf(t.data)===-1){const s=fe.objectValues(n);return V(r,{received:r.data,code:A.invalid_enum_value,options:s}),ne}return ot(t.data)}get enum(){return this._def.values}}Gi.create=(e,t)=>new Gi({values:e,typeName:q.ZodNativeEnum,...se(t)});class Vs extends oe{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==$.promise&&n.common.async===!1)return V(n,{code:A.invalid_type,expected:$.promise,received:n.parsedType}),ne;const r=n.parsedType===$.promise?n.data:Promise.resolve(n.data);return ot(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Vs.create=(e,t)=>new Vs({type:e,typeName:q.ZodPromise,...se(t)});class Xt extends oe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===q.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=this._def.effect||null,i={addIssue:o=>{V(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const o=s.transform(r.data,i);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(o).then(a=>this._def.schema._parseAsync({data:a,path:r.path,parent:r})):this._def.schema._parseSync({data:o,path:r.path,parent:r})}if(s.type==="refinement"){const o=a=>{const l=s.refinement(a,i);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?ne:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?ne:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!$i(o))return o;const a=s.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>$i(o)?Promise.resolve(s.transform(o.value,i)).then(a=>({status:n.value,value:a})):o);fe.assertNever(s)}}Xt.create=(e,t,n)=>new Xt({schema:e,typeName:q.ZodEffects,effect:t,...se(n)});Xt.createWithPreprocess=(e,t,n)=>new Xt({schema:t,effect:{type:"preprocess",transform:e},typeName:q.ZodEffects,...se(n)});class bn extends oe{_parse(t){return this._getType(t)===$.undefined?ot(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}bn.create=(e,t)=>new bn({innerType:e,typeName:q.ZodOptional,...se(t)});class Qr extends oe{_parse(t){return this._getType(t)===$.null?ot(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Qr.create=(e,t)=>new Qr({innerType:e,typeName:q.ZodNullable,...se(t)});class Yi extends oe{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===$.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Yi.create=(e,t)=>new Yi({innerType:e,typeName:q.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...se(t)});class Za extends oe{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return $a(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Gt(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Gt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Za.create=(e,t)=>new Za({innerType:e,typeName:q.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...se(t)});class Qa extends oe{_parse(t){if(this._getType(t)!==$.nan){const r=this._getOrReturnCtx(t);return V(r,{code:A.invalid_type,expected:$.nan,received:r.parsedType}),ne}return{status:"valid",value:t.data}}}Qa.create=e=>new Qa({typeName:q.ZodNaN,...se(e)});const zw=Symbol("zod_brand");class py extends oe{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class wo extends oe{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?ne:i.status==="dirty"?(n.dirty(),dy(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?ne:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(t,n){return new wo({in:t,out:n,typeName:q.ZodPipeline})}}class Ha extends oe{_parse(t){const n=this._def.innerType._parse(t);return $i(n)&&(n.value=Object.freeze(n.value)),n}}Ha.create=(e,t)=>new Ha({innerType:e,typeName:q.ZodReadonly,...se(t)});const hy=(e,t={},n)=>e?$s.create().superRefine((r,s)=>{var i,o;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(o=(i=a.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,u=typeof a=="string"?{message:a}:a;s.addIssue({code:"custom",...u,fatal:l})}}):$s.create(),$w={object:Te.lazycreate};var q;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(q||(q={}));const Vw=(e,t={message:`Input not instance of ${e.name}`})=>hy(n=>n instanceof e,t),my=Ht.create,yy=dr.create,Uw=Qa.create,Bw=fr.create,vy=Vi.create,Zw=Br.create,Qw=Va.create,Hw=Ui.create,Ww=Bi.create,Kw=$s.create,Gw=Lr.create,Yw=On.create,qw=Ua.create,Xw=Yt.create,Jw=Te.create,ex=Te.strictCreate,tx=Zi.create,nx=ml.create,rx=Qi.create,sx=mn.create,ix=Hi.create,ox=Ba.create,ax=Zr.create,lx=ys.create,ux=Wi.create,cx=Ki.create,dx=pr.create,fx=Gi.create,px=Vs.create,ep=Xt.create,hx=bn.create,mx=Qr.create,yx=Xt.createWithPreprocess,vx=wo.create,gx=()=>my().optional(),wx=()=>yy().optional(),xx=()=>vy().optional(),_x={string:e=>Ht.create({...e,coerce:!0}),number:e=>dr.create({...e,coerce:!0}),boolean:e=>Vi.create({...e,coerce:!0}),bigint:e=>fr.create({...e,coerce:!0}),date:e=>Br.create({...e,coerce:!0})},kx=ne;var ql=Object.freeze({__proto__:null,defaultErrorMap:zi,setErrorMap:bw,getErrorMap:Da,makeIssue:za,EMPTY_PATH:Tw,addIssueToContext:V,ParseStatus:et,INVALID:ne,DIRTY:dy,OK:ot,isAborted:dc,isDirty:fc,isValid:$i,isAsync:$a,get util(){return fe},get objectUtil(){return cc},ZodParsedType:$,getParsedType:Bn,ZodType:oe,ZodString:Ht,ZodNumber:dr,ZodBigInt:fr,ZodBoolean:Vi,ZodDate:Br,ZodSymbol:Va,ZodUndefined:Ui,ZodNull:Bi,ZodAny:$s,ZodUnknown:Lr,ZodNever:On,ZodVoid:Ua,ZodArray:Yt,ZodObject:Te,ZodUnion:Zi,ZodDiscriminatedUnion:ml,ZodIntersection:Qi,ZodTuple:mn,ZodRecord:Hi,ZodMap:Ba,ZodSet:Zr,ZodFunction:ys,ZodLazy:Wi,ZodLiteral:Ki,ZodEnum:pr,ZodNativeEnum:Gi,ZodPromise:Vs,ZodEffects:Xt,ZodTransformer:Xt,ZodOptional:bn,ZodNullable:Qr,ZodDefault:Yi,ZodCatch:Za,ZodNaN:Qa,BRAND:zw,ZodBranded:py,ZodPipeline:wo,ZodReadonly:Ha,custom:hy,Schema:oe,ZodSchema:oe,late:$w,get ZodFirstPartyTypeKind(){return q},coerce:_x,any:Kw,array:Xw,bigint:Bw,boolean:vy,date:Zw,discriminatedUnion:nx,effect:ep,enum:dx,function:lx,instanceof:Vw,intersection:rx,lazy:ux,literal:cx,map:ox,nan:Uw,nativeEnum:fx,never:Yw,null:Ww,nullable:mx,number:yy,object:Jw,oboolean:xx,onumber:wx,optional:hx,ostring:gx,pipeline:vx,preprocess:yx,promise:px,record:ix,set:ax,strictObject:ex,string:my,symbol:Qw,transformer:ep,tuple:sx,undefined:Hw,union:tx,unknown:Gw,void:qw,NEVER:kx,ZodIssueCode:A,quotelessJson:Cw,ZodError:Gt});const Sx=ql.object({tokenId:ql.string().refine(e=>/^0\.0\.\d*$/.test(e),{message:dt.tokenIdFormatError}),accountIds:ql.string().refine(e=>e.split(/\s*,\s*|\n/).map(n=>n.trim()).filter(n=>n).every(n=>/^0\.0\.\d*$/.test(n)),{message:dt.accountIdsFormatError})});var tp=function(e,t,n){if(e&&"reportValidity"in e){var r=F(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},gy=function(e,t){var n=function(s){var i=t.fields[s];i&&i.ref&&"reportValidity"in i.ref?tp(i.ref,s,e):i.refs&&i.refs.forEach(function(o){return tp(o,s,e)})};for(var r in t.fields)n(r)},Ex=function(e,t){t.shouldUseNativeValidation&&gy(e,t);var n={};for(var r in e){var s=F(t.fields,r),i=Object.assign(e[r]||{},{ref:s&&s.ref});if(Cx(t.names||Object.keys(e),r)){var o=Object.assign({},F(n,r));he(o,"root",i),he(n,r,o)}else he(n,r,i)}return n},Cx=function(e,t){return e.some(function(n){return n.startsWith(t+".")})},bx=function(e,t){for(var n={};e.length;){var r=e[0],s=r.code,i=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var a=r.unionErrors[0].errors[0];n[o]={message:a.message,type:a.code}}else n[o]={message:i,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(c){return c.errors.forEach(function(p){return e.push(p)})}),t){var l=n[o].types,u=l&&l[r.code];n[o]=ty(o,t,n,s,u?[].concat(u,r.message):r.message)}e.shift()}return n},Tx=function(e,t,n){return n===void 0&&(n={}),function(r,s,i){try{return Promise.resolve(function(o,a){try{var l=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(u){return i.shouldUseNativeValidation&&gy({},i),{errors:{},values:n.raw?r:u}})}catch(u){return a(u)}return l&&l.then?l.then(void 0,a):l}(0,function(o){if(function(a){return a.errors!=null}(o))return{values:{},errors:Ex(bx(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}};const np=e=>e.split(/,|\s|\n/).map(n=>n.trim()).filter(n=>n!=="");function Nx(e,t=[]){let n=[];function r(i,o){const a=j.createContext(o),l=n.length;n=[...n,o];function u(p){const{scope:h,children:g,...x}=p,_=(h==null?void 0:h[e][l])||a,E=j.useMemo(()=>x,Object.values(x));return j.createElement(_.Provider,{value:E},g)}function c(p,h){const g=(h==null?void 0:h[e][l])||a,x=j.useContext(g);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}const s=()=>{const i=n.map(o=>j.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return j.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,Px(s,...t)]}function Px(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:l,scopeName:u})=>{const p=l(i)[`__scope${u}`];return{...a,...p}},{});return j.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}const wy="Progress",yl=100,[Rx,e_]=Nx(wy),[Ox,Ix]=Rx(wy),xy=j.forwardRef((e,t)=>{const{__scopeProgress:n,value:r,max:s,getValueLabel:i=Fx,...o}=e,a=hc(s)?s:yl,l=ky(r,a)?r:null,u=Wa(l)?i(l,a):void 0;return j.createElement(Ox,{scope:n,value:l,max:a},j.createElement(dd.div,cr({"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":Wa(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":_y(l,a),"data-value":l??void 0,"data-max":a},o,{ref:t})))});xy.propTypes={max(e,t,n){const r=e[t],s=String(r);return r&&!hc(r)?new Error(jx(s,n)):null},value(e,t,n){const r=e[t],s=String(r),i=hc(e.max)?e.max:yl;return r!=null&&!ky(r,i)?new Error(Lx(s,n)):null}};const Ax="ProgressIndicator",Mx=j.forwardRef((e,t)=>{var n;const{__scopeProgress:r,...s}=e,i=Ix(Ax,r);return j.createElement(dd.div,cr({"data-state":_y(i.value,i.max),"data-value":(n=i.value)!==null&&n!==void 0?n:void 0,"data-max":i.max},s,{ref:t}))});function Fx(e,t){return`${Math.round(e/t*100)}%`}function _y(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Wa(e){return typeof e=="number"}function hc(e){return Wa(e)&&!isNaN(e)&&e>0}function ky(e,t){return Wa(e)&&!isNaN(e)&&e<=t&&e>=0}function jx(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${yl}\`.`}function Lx(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: - a positive number - less than the value passed to \`max\` (or ${yl} if no \`max\` prop is set) - \`null\` if the progress is indeterminate. -Defaulting to \`null\`.`}const Sy=xy,Dx=Mx,Ey=j.forwardRef(({className:e,value:t,...n},r)=>H.jsx(Sy,{ref:r,className:yn("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:H.jsx(Dx,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Ey.displayName=Sy.displayName;const zx=({setTokenId:e,setAccountIds:t,setShouldFetch:n,isFetching:r,fetchedAccountsBalance:s})=>{const[i,o]=j.useState(0),[a,l]=j.useState(0),u=kw({resolver:Tx(Sx),defaultValues:{tokenId:"",accountIds:""}}),c=({tokenId:h,accountIds:g})=>{e(h),o(np(g).length),t(np(g)),n(!0)},p=(h,g)=>h/g*100;return j.useEffect(()=>{l(p(s,i)),!r&&s===i&&l(0)},[i,s,r]),H.jsx(Sw,{...u,children:H.jsxs("form",{onSubmit:u.handleSubmit(c),className:"space-y-8",children:[H.jsxs("div",{className:"mt-10 flex items-start justify-center gap-2",children:[H.jsx("div",{className:"w-full sm:w-1/3",children:H.jsx(Xf,{control:u.control,name:"tokenId",render:({field:h})=>H.jsxs(oc,{children:[H.jsx(ac,{children:dt.tokenId}),H.jsx(lc,{children:H.jsx(Qm,{"data-testid":"tokenId",placeholder:dt.exampleTokenId,...h})}),H.jsx(uc,{})]})})}),H.jsx("div",{className:"w-full sm:w-1/3",children:H.jsx(Xf,{control:u.control,name:"accountIds",render:({field:h})=>H.jsxs(oc,{children:[H.jsx(ac,{children:dt.accountIds}),H.jsx(lc,{children:H.jsx(md,{"data-testid":"accountIds",placeholder:dt.exampleAccountIds,...h})}),H.jsx(uc,{})]})})})]}),H.jsx("div",{className:"flex items-center justify-center",children:H.jsx("div",{className:"w-full sm:w-[68%]",children:r?H.jsx(Ey,{className:"mt-6",value:a}):H.jsx(cd,{"data-testid":"submit",className:"w-full",disabled:r,type:"submit",children:dt.buildList})})})]})})},Wa=e=>`https://${e==="mainnet"?"mainnet-public":e}.mirrornode.hedera.com`,$x=async(e,t,n)=>(await(await fetch(`${Wa(n)}/api/v1/tokens/${t}/balances?account.id=${e}`)).json()).balances.length>0,Vx=async(e,t)=>(await(await fetch(`${Wa(t)}/api/v1/accounts/${e}`)).json()).max_automatic_token_associations,Ux=async(e,t,n)=>{let r=`${Wa(t)}/api/v1/accounts/${e}/tokens?limit=100`,s=0;do{if(s>=n)break;const o=await(await fetch(r)).json();for(const a of o.tokens)a.automatic_association&&s++;r=o.links.next?`${Wa(t)}${o.links.next}`:""}while(r);return s},Bx=async(e,t,n,r)=>{const s=[];for(const[i,o]of e.entries()){if(r&&r(i+1),await $x(o,t,n)){s.push(o);continue}const l=await Vx(o,n);if(!l)continue;const u=await Ux(o,n,l);l>u&&s.push(o)}return s},Zx="mainnet",Qx=()=>{const[e,t]=j.useState(""),[n,r]=j.useState([]),[s,i]=j.useState(!1),[o,a]=j.useState(0),{data:l=[],error:u,isFetching:c,isFetched:p,isSuccess:h}=x1({enabled:s,retry:0,throwOnError:!1,queryKey:["balances"],queryFn:()=>Bx(n,e,Zx,a)}),g=async x=>{if(navigator.clipboard&&window.isSecureContext){await navigator.clipboard.writeText(x),Hl.success(dt.copiedToClipboard);return}else{const _=document.createElement("textarea");_.value=x,_.style.position="absolute",_.style.left="-999999px",document.body.prepend(_),_.select();try{document.execCommand("copy")}catch(C){console.error(C)}finally{_.remove()}}};return j.useEffect(()=>{!c&&h&&Hl.success(dt.successfullyFetchedData)},[h,c]),j.useEffect(()=>{u&&Hl.error(u.toString())},[u]),j.useEffect(()=>{!c&&p&&i(!1)},[p,c]),H.jsxs("div",{className:"container mx-auto",children:[H.jsx("h1",{className:"mt-20 scroll-m-20 text-center text-4xl font-extrabold tracking-tight lg:text-5xl",children:dt.title}),H.jsx("p",{className:"text-center leading-7 [&:not(:first-child)]:mt-6",children:dt.description}),H.jsx("div",{className:"mb-20 mt-5",children:H.jsx(zx,{setTokenId:t,setAccountIds:r,setShouldFetch:i,isFetching:c,fetchedAccountsBalance:o})}),p||c?c?H.jsxs("div",{className:"flex w-full flex-col space-y-3",children:[H.jsx(Ql,{className:"h-5 w-[120px]"}),H.jsx(Ql,{className:"h-[200px] w-full rounded-xl"}),H.jsx(Ql,{className:"!mt-5 h-10 w-full"})]}):H.jsx(H.Fragment,{children:H.jsxs("div",{className:"grid w-full gap-5",children:[H.jsxs(fd,{htmlFor:"holders",children:[l.length," ",dt.outOf," ",n.length," ",dt.textAreaLabel," ",e]}),H.jsx(md,{"data-testid":"response",readOnly:!0,className:"min-h-[200px]",id:"holders",value:l.join(", ")}),H.jsx(cd,{onClick:async()=>{await g(l.join(", "))},children:dt.copyToClipboard})]})}):null]})},Hx=j.createContext(void 0),Wx={setTheme:e=>{},themes:[]},Kx=()=>{var e;return(e=j.useContext(Hx))!==null&&e!==void 0?e:Wx},Gx=({...e})=>{const{theme:t="system"}=Kx();return H.jsx(V1,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},Yx=new n1({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});Xl.createRoot(document.getElementById("root")).render(H.jsx(b.StrictMode,{children:H.jsxs(a1,{client:Yx,children:[H.jsx(Qx,{}),H.jsx(Gx,{})]})})); +Defaulting to \`null\`.`}const Sy=xy,Dx=Mx,Ey=j.forwardRef(({className:e,value:t,...n},r)=>Z.jsx(Sy,{ref:r,className:yn("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:Z.jsx(Dx,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Ey.displayName=Sy.displayName;const qi=e=>`https://${e==="mainnet"?"mainnet-public":e}.mirrornode.hedera.com`,zx=async(e,t)=>{const n=await fetch(`${qi(t)}/api/v1/tokens/${e}`,{method:"GET",headers:{}}),{name:r}=await n.json();return r},$x=e=>/^\d\.\d\.\d*$/.test(e),Vx=({setTokenId:e,setAccountIds:t,setShouldFetch:n,isFetching:r,fetchedAccountsBalance:s})=>{const[i,o]=j.useState(0),[a,l]=j.useState(0),[u,c]=j.useState(""),p=kw({resolver:Tx(Sx),defaultValues:{tokenId:"",accountIds:""}}),h=({tokenId:_,accountIds:E})=>{e(_),o(np(E).length),t(np(E)),n(!0)},g=async _=>{if(!$x(_))return;const E=await zx(_,"mainnet");c(E)},x=(_,E)=>_/E*100;return j.useEffect(()=>{l(x(s,i)),!r&&s===i&&l(0)},[i,s,r]),Z.jsx(Sw,{...p,children:Z.jsxs("form",{onSubmit:p.handleSubmit(h),className:"space-y-8",children:[Z.jsxs("div",{className:"mt-10 flex items-start justify-center gap-2",children:[Z.jsx("div",{className:"w-full sm:w-1/3",children:Z.jsx(Xf,{control:p.control,name:"tokenId",render:({field:_})=>Z.jsxs(oc,{children:[Z.jsx(ac,{children:dt.tokenId}),Z.jsx(lc,{children:Z.jsxs(Z.Fragment,{children:[Z.jsx(Qm,{"data-testid":"tokenId",placeholder:dt.exampleTokenId,..._,onBlur:E=>{_.onBlur(),g(E.target.value)}}),u&&Z.jsx("p",{className:"text-sm text-muted-foreground",children:u})]})}),Z.jsx(uc,{})]})})}),Z.jsx("div",{className:"w-full sm:w-1/3",children:Z.jsx(Xf,{control:p.control,name:"accountIds",render:({field:_})=>Z.jsxs(oc,{children:[Z.jsx(ac,{children:dt.accountIds}),Z.jsx(lc,{children:Z.jsx(md,{"data-testid":"accountIds",placeholder:dt.exampleAccountIds,..._})}),Z.jsx(uc,{})]})})})]}),Z.jsx("div",{className:"flex items-center justify-center",children:Z.jsx("div",{className:"w-full sm:w-[68%]",children:r?Z.jsx(Ey,{className:"mt-6",value:a}):Z.jsx(cd,{"data-testid":"submit",className:"w-full",disabled:r,type:"submit",children:dt.buildList})})})]})})},Ux=async(e,t,n)=>(await(await fetch(`${qi(n)}/api/v1/tokens/${t}/balances?account.id=${e}`)).json()).balances.length>0,Bx=async(e,t)=>(await(await fetch(`${qi(t)}/api/v1/accounts/${e}`)).json()).max_automatic_token_associations,Zx=async(e,t,n)=>{let r=`${qi(t)}/api/v1/accounts/${e}/tokens?limit=100`,s=0;do{if(s>=n)break;const o=await(await fetch(r)).json();for(const a of o.tokens)a.automatic_association&&s++;r=o.links.next?`${qi(t)}${o.links.next}`:""}while(r);return s},Qx=async(e,t,n,r)=>{const s=[];for(const[i,o]of e.entries()){if(r&&r(i+1),await Ux(o,t,n)){s.push(o);continue}const l=await Bx(o,n);if(!l)continue;const u=await Zx(o,n,l);l>u&&s.push(o)}return s},Hx="mainnet",Wx=()=>{const[e,t]=j.useState(""),[n,r]=j.useState([]),[s,i]=j.useState(!1),[o,a]=j.useState(0),{data:l=[],error:u,isFetching:c,isFetched:p,isSuccess:h}=x1({enabled:s,retry:0,throwOnError:!1,queryKey:["balances"],queryFn:()=>Qx(n,e,Hx,a)}),g=async x=>{if(navigator.clipboard&&window.isSecureContext){await navigator.clipboard.writeText(x),Hl.success(dt.copiedToClipboard);return}else{const _=document.createElement("textarea");_.value=x,_.style.position="absolute",_.style.left="-999999px",document.body.prepend(_),_.select();try{document.execCommand("copy")}catch(E){console.error(E)}finally{_.remove()}}};return j.useEffect(()=>{!c&&h&&Hl.success(dt.successfullyFetchedData)},[h,c]),j.useEffect(()=>{u&&Hl.error(u.toString())},[u]),j.useEffect(()=>{!c&&p&&i(!1)},[p,c]),Z.jsxs("div",{className:"container mx-auto",children:[Z.jsx("h1",{className:"mt-20 scroll-m-20 text-center text-4xl font-extrabold tracking-tight lg:text-5xl",children:dt.title}),Z.jsx("p",{className:"text-center leading-7 [&:not(:first-child)]:mt-6",children:dt.description}),Z.jsx("div",{className:"mb-20 mt-5",children:Z.jsx(Vx,{setTokenId:t,setAccountIds:r,setShouldFetch:i,isFetching:c,fetchedAccountsBalance:o})}),p||c?c?Z.jsxs("div",{className:"flex w-full flex-col space-y-3",children:[Z.jsx(Ql,{className:"h-5 w-[120px]"}),Z.jsx(Ql,{className:"h-[200px] w-full rounded-xl"}),Z.jsx(Ql,{className:"!mt-5 h-10 w-full"})]}):Z.jsx(Z.Fragment,{children:Z.jsxs("div",{className:"grid w-full gap-5",children:[Z.jsxs(fd,{htmlFor:"holders",children:[l.length," ",dt.outOf," ",n.length," ",dt.textAreaLabel," ",e]}),Z.jsx(md,{"data-testid":"response",readOnly:!0,className:"min-h-[200px]",id:"holders",value:l.join(", ")}),Z.jsx(cd,{onClick:async()=>{await g(l.join(", "))},children:dt.copyToClipboard})]})}):null]})},Kx=j.createContext(void 0),Gx={setTheme:e=>{},themes:[]},Yx=()=>{var e;return(e=j.useContext(Kx))!==null&&e!==void 0?e:Gx},qx=({...e})=>{const{theme:t="system"}=Yx();return Z.jsx(V1,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},Xx=new n1({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});Xl.createRoot(document.getElementById("root")).render(Z.jsx(b.StrictMode,{children:Z.jsxs(a1,{client:Xx,children:[Z.jsx(Wx,{}),Z.jsx(qx,{})]})})); diff --git a/assets/index-pi9QCzZl.css b/assets/index-pi9QCzZl.css deleted file mode 100644 index 8d2242e..0000000 --- a/assets/index-pi9QCzZl.css +++ /dev/null @@ -1,2 +0,0 @@ -/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com - */*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 84% 4.9%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--ring: 222.2 84% 4.9%;--radius: .5rem}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 750px){.container{max-width:750px}}.absolute{position:absolute}.relative{position:relative}.mx-auto{margin-left:auto;margin-right:auto}.\!mt-5{margin-top:1.25rem!important}.mb-20{margin-bottom:5rem}.mt-10{margin-top:2.5rem}.mt-20{margin-top:5rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-9{height:2.25rem}.h-\[200px\]{height:200px}.h-full{height:100%}.min-h-\[200px\]{min-height:200px}.min-h-\[80px\]{min-height:80px}.w-10{width:2.5rem}.w-\[120px\]{width:120px}.w-full{width:100%}.flex-1{flex:1 1 0%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.scroll-m-20{scroll-margin:5rem}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.gap-5{gap:1.25rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-input{border-color:hsl(var(--input))}.bg-background{background-color:hsl(var(--background))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.text-center{text-align:center}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.leading-7{line-height:1.75rem}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.underline-offset-4{text-underline-offset:4px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\[\.toaster\]\:bg-background{background-color:hsl(var(--background))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}@media (min-width: 640px){.sm\:w-1\/3{width:33.333333%}.sm\:w-\[68\%\]{width:68%}}@media (min-width: 1024px){.lg\:text-5xl{font-size:3rem;line-height:1}}.\[\&\:not\(\:first-child\)\]\:mt-6:not(:first-child){margin-top:1.5rem} diff --git a/assets/index-vZyrTR-p.css b/assets/index-vZyrTR-p.css new file mode 100644 index 0000000..c797f71 --- /dev/null +++ b/assets/index-vZyrTR-p.css @@ -0,0 +1,2 @@ +/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com + */*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}@font-face{font-family:Geist-Variable;src:url(/fonts/GeistVariableVF.woff2) format("woff2")}:root{font-family:Geist-Variable,sans-serif;--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 84% 4.9%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--ring: 222.2 84% 4.9%;--radius: .5rem}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 750px){.container{max-width:750px}}.absolute{position:absolute}.relative{position:relative}.mx-auto{margin-left:auto;margin-right:auto}.\!mt-5{margin-top:1.25rem!important}.mb-20{margin-bottom:5rem}.mt-10{margin-top:2.5rem}.mt-20{margin-top:5rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-9{height:2.25rem}.h-\[200px\]{height:200px}.h-full{height:100%}.min-h-\[200px\]{min-height:200px}.min-h-\[80px\]{min-height:80px}.w-10{width:2.5rem}.w-\[120px\]{width:120px}.w-full{width:100%}.flex-1{flex:1 1 0%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.scroll-m-20{scroll-margin:5rem}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.gap-5{gap:1.25rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-input{border-color:hsl(var(--input))}.bg-background{background-color:hsl(var(--background))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.text-center{text-align:center}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.leading-7{line-height:1.75rem}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.underline-offset-4{text-underline-offset:4px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\[\.toaster\]\:bg-background{background-color:hsl(var(--background))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}@media (min-width: 640px){.sm\:w-1\/3{width:33.333333%}.sm\:w-\[68\%\]{width:68%}}@media (min-width: 1024px){.lg\:text-5xl{font-size:3rem;line-height:1}}.\[\&\:not\(\:first-child\)\]\:mt-6:not(:first-child){margin-top:1.5rem} diff --git a/fonts/GeistVariableVF.woff2 b/fonts/GeistVariableVF.woff2 new file mode 100644 index 0000000..328a020 Binary files /dev/null and b/fonts/GeistVariableVF.woff2 differ diff --git a/index.html b/index.html index 8ffe6af..a11a2e5 100644 --- a/index.html +++ b/index.html @@ -2,11 +2,11 @@ - + Hedera Airdrop List Verifier - - + +