%k25u25%fgd5n!
var Sm=e=>{throw TypeError(e)};var cu=(e,t,n)=>t.has(e)||Sm("Cannot "+n);var M=(e,t,n)=>(cu(e,t,"read from private field"),n?n.call(e):t.get(e)),Oe=(e,t,n)=>t.has(e)?Sm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),xe=(e,t,n,r)=>(cu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Et=(e,t,n)=>(cu(e,t,"access private method"),n);var Ta=(e,t,n,r)=>({set _(s){xe(e,t,s,n)},get _(){return M(e,t,r)}});function $b(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const o=Object.getOwnPropertyDescriptor(r,s);o&&Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function Ty(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ry={exports:{}},gc={},Ay={exports:{}},je={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var fa=Symbol.for("react.element"),Vb=Symbol.for("react.portal"),Ub=Symbol.for("react.fragment"),Wb=Symbol.for("react.strict_mode"),qb=Symbol.for("react.profiler"),Kb=Symbol.for("react.provider"),Gb=Symbol.for("react.context"),Yb=Symbol.for("react.forward_ref"),Qb=Symbol.for("react.suspense"),Zb=Symbol.for("react.memo"),Jb=Symbol.for("react.lazy"),Nm=Symbol.iterator;function Xb(e){return e===null||typeof e!="object"?null:(e=Nm&&e[Nm]||e["@@iterator"],typeof e=="function"?e:null)}var Py={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Oy=Object.assign,Iy={};function $o(e,t,n){this.props=e,this.context=t,this.refs=Iy,this.updater=n||Py}$o.prototype.isReactComponent={};$o.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")};$o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function My(){}My.prototype=$o.prototype;function Pf(e,t,n){this.props=e,this.context=t,this.refs=Iy,this.updater=n||Py}var Of=Pf.prototype=new My;Of.constructor=Pf;Oy(Of,$o.prototype);Of.isPureReactComponent=!0;var Em=Array.isArray,Dy=Object.prototype.hasOwnProperty,If={current:null},Ly={key:!0,ref:!0,__self:!0,__source:!0};function Fy(e,t,n){var r,s={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Dy.call(t,r)&&!Ly.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var c=Array(a),u=0;u<a;u++)c[u]=arguments[u+2];s.children=c}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:fa,type:e,key:o,ref:i,props:s,_owner:If.current}}function eS(e,t){return{$$typeof:fa,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Mf(e){return typeof e=="object"&&e!==null&&e.$$typeof===fa}function tS(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var jm=/\/+/g;function uu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?tS(""+e.key):t.toString(36)}function nl(e,t,n,r,s){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case fa:case Vb:i=!0}}if(i)return i=e,s=s(i),e=r===""?"."+uu(i,0):r,Em(s)?(n="",e!=null&&(n=e.replace(jm,"$&/")+"/"),nl(s,t,n,"",function(u){return u})):s!=null&&(Mf(s)&&(s=eS(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(jm,"$&/")+"/")+e)),t.push(s)),1;if(i=0,r=r===""?".":r+":",Em(e))for(var a=0;a<e.length;a++){o=e[a];var c=r+uu(o,a);i+=nl(o,t,n,c,s)}else if(c=Xb(e),typeof c=="function")for(e=c.call(e),a=0;!(o=e.next()).done;)o=o.value,c=r+uu(o,a++),i+=nl(o,t,n,c,s);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Ra(e,t,n){if(e==null)return e;var r=[],s=0;return nl(e,r,"","",function(o){return t.call(n,o,s++)}),r}function nS(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Lt={current:null},rl={transition:null},rS={ReactCurrentDispatcher:Lt,ReactCurrentBatchConfig:rl,ReactCurrentOwner:If};function zy(){throw Error("act(...) is not supported in production builds of React.")}je.Children={map:Ra,forEach:function(e,t,n){Ra(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ra(e,function(){t++}),t},toArray:function(e){return Ra(e,function(t){return t})||[]},only:function(e){if(!Mf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};je.Component=$o;je.Fragment=Ub;je.Profiler=qb;je.PureComponent=Pf;je.StrictMode=Wb;je.Suspense=Qb;je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rS;je.act=zy;je.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Oy({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=If.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(c in t)Dy.call(t,c)&&!Ly.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&a!==void 0?a[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){a=Array(c);for(var u=0;u<c;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:fa,type:e.type,key:s,ref:o,props:r,_owner:i}};je.createContext=function(e){return e={$$typeof:Gb,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Kb,_context:e},e.Consumer=e};je.createElement=Fy;je.createFactory=function(e){var t=Fy.bind(null,e);return t.type=e,t};je.createRef=function(){return{current:null}};je.forwardRef=function(e){return{$$typeof:Yb,render:e}};je.isValidElement=Mf;je.lazy=function(e){return{$$typeof:Jb,_payload:{_status:-1,_result:e},_init:nS}};je.memo=function(e,t){return{$$typeof:Zb,type:e,compare:t===void 0?null:t}};je.startTransition=function(e){var t=rl.transition;rl.transition={};try{e()}finally{rl.transition=t}};je.unstable_act=zy;je.useCallback=function(e,t){return Lt.current.useCallback(e,t)};je.useContext=function(e){return Lt.current.useContext(e)};je.useDebugValue=function(){};je.useDeferredValue=function(e){return Lt.current.useDeferredValue(e)};je.useEffect=function(e,t){return Lt.current.useEffect(e,t)};je.useId=function(){return Lt.current.useId()};je.useImperativeHandle=function(e,t,n){return Lt.current.useImperativeHandle(e,t,n)};je.useInsertionEffect=function(e,t){return Lt.current.useInsertionEffect(e,t)};je.useLayoutEffect=function(e,t){return Lt.current.useLayoutEffect(e,t)};je.useMemo=function(e,t){return Lt.current.useMemo(e,t)};je.useReducer=function(e,t,n){return Lt.current.useReducer(e,t,n)};je.useRef=function(e){return Lt.current.useRef(e)};je.useState=function(e){return Lt.current.useState(e)};je.useSyncExternalStore=function(e,t,n){return Lt.current.useSyncExternalStore(e,t,n)};je.useTransition=function(){return Lt.current.useTransition()};je.version="18.3.1";Ay.exports=je;var y=Ay.exports;const F=Ty(y),By=$b({__proto__:null,default:F},[y]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var sS=y,oS=Symbol.for("react.element"),iS=Symbol.for("react.fragment"),aS=Object.prototype.hasOwnProperty,lS=sS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,cS={key:!0,ref:!0,__self:!0,__source:!0};function Hy(e,t,n){var r,s={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)aS.call(t,r)&&!cS.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:oS,type:e,key:o,ref:i,props:s,_owner:lS.current}}gc.Fragment=iS;gc.jsx=Hy;gc.jsxs=Hy;Ry.exports=gc;var l=Ry.exports,$y={exports:{}},un={},Vy={exports:{}},Uy={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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(_,L){var Q=_.length;_.push(L);e:for(;0<Q;){var q=Q-1>>>1,ne=_[q];if(0<s(ne,L))_[q]=L,_[Q]=ne,Q=q;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var L=_[0],Q=_.pop();if(Q!==L){_[0]=Q;e:for(var q=0,ne=_.length,le=ne>>>1;q<le;){var pe=2*(q+1)-1,ze=_[pe],me=pe+1,Z=_[me];if(0>s(ze,Q))me<ne&&0>s(Z,ze)?(_[q]=Z,_[me]=Q,q=me):(_[q]=ze,_[pe]=Q,q=pe);else if(me<ne&&0>s(Z,Q))_[q]=Z,_[me]=Q,q=me;else break e}}return L}function s(_,L){var Q=_.sortIndex-L.sortIndex;return Q!==0?Q:_.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var c=[],u=[],d=1,h=null,f=3,x=!1,v=!1,p=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(_){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=_)r(u),L.sortIndex=L.expirationTime,t(c,L);else break;L=n(u)}}function S(_){if(p=!1,w(_),!v)if(n(c)!==null)v=!0,W(N);else{var L=n(u);L!==null&&X(S,L.startTime-_)}}function N(_,L){v=!1,p&&(p=!1,g(C),C=-1),x=!0;var Q=f;try{for(w(L),h=n(c);h!==null&&(!(h.expirationTime>L)||_&&!z());){var q=h.callback;if(typeof q=="function"){h.callback=null,f=h.priorityLevel;var ne=q(h.expirationTime<=L);L=e.unstable_now(),typeof ne=="function"?h.callback=ne:h===n(c)&&r(c),w(L)}else r(c);h=n(c)}if(h!==null)var le=!0;else{var pe=n(u);pe!==null&&X(S,pe.startTime-L),le=!1}return le}finally{h=null,f=Q,x=!1}}var k=!1,j=null,C=-1,P=5,D=-1;function z(){return!(e.unstable_now()-D<P)}function O(){if(j!==null){var _=e.unstable_now();D=_;var L=!0;try{L=j(!0,_)}finally{L?V():(k=!1,j=null)}}else k=!1}var V;if(typeof m=="function")V=function(){m(O)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,Y=I.port2;I.port1.onmessage=O,V=function(){Y.postMessage(null)}}else V=function(){b(O,0)};function W(_){j=_,k||(k=!0,V())}function X(_,L){C=b(function(){_(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(_){_.callback=null},e.unstable_continueExecution=function(){v||x||(v=!0,W(N))},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(_){switch(f){case 1:case 2:case 3:var L=3;break;default:L=f}var Q=f;f=L;try{return _()}finally{f=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,L){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var Q=f;f=_;try{return L()}finally{f=Q}},e.unstable_scheduleCallback=function(_,L,Q){var q=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?q+Q:q):Q=q,_){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=Q+ne,_={id:d++,callback:L,priorityLevel:_,startTime:Q,expirationTime:ne,sortIndex:-1},Q>q?(_.sortIndex=Q,t(u,_),n(c)===null&&_===n(u)&&(p?(g(C),C=-1):p=!0,X(S,Q-q))):(_.sortIndex=ne,t(c,_),v||x||(v=!0,W(N))),_},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(_){var L=f;return function(){var Q=f;f=L;try{return _.apply(this,arguments)}finally{f=Q}}}})(Uy);Vy.exports=Uy;var uS=Vy.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var dS=y,an=uS;function B(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Wy=new Set,Oi={};function Fs(e,t){To(e,t),To(e+"Capture",t)}function To(e,t){for(Oi[e]=t,e=0;e<t.length;e++)Wy.add(t[e])}var dr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rd=Object.prototype.hasOwnProperty,fS=/^[: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]*$/,km={},Cm={};function hS(e){return rd.call(Cm,e)?!0:rd.call(km,e)?!1:fS.test(e)?Cm[e]=!0:(km[e]=!0,!1)}function mS(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 pS(e,t,n,r){if(t===null||typeof t>"u"||mS(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 Ft(e,t,n,r,s,o,i){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=o,this.removeEmptyString=i}var St={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){St[e]=new Ft(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];St[t]=new Ft(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){St[e]=new Ft(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){St[e]=new Ft(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){St[e]=new Ft(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){St[e]=new Ft(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){St[e]=new Ft(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){St[e]=new Ft(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){St[e]=new Ft(e,5,!1,e.toLowerCase(),null,!1,!1)});var Df=/[\-:]([a-z])/g;function Lf(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(Df,Lf);St[t]=new Ft(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(Df,Lf);St[t]=new Ft(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(Df,Lf);St[t]=new Ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){St[e]=new Ft(e,1,!1,e.toLowerCase(),null,!1,!1)});St.xlinkHref=new Ft("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){St[e]=new Ft(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ff(e,t,n,r){var s=St.hasOwnProperty(t)?St[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(pS(t,n,s,r)&&(n=null),r||s===null?hS(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var wr=dS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Aa=Symbol.for("react.element"),Zs=Symbol.for("react.portal"),Js=Symbol.for("react.fragment"),zf=Symbol.for("react.strict_mode"),sd=Symbol.for("react.profiler"),qy=Symbol.for("react.provider"),Ky=Symbol.for("react.context"),Bf=Symbol.for("react.forward_ref"),od=Symbol.for("react.suspense"),id=Symbol.for("react.suspense_list"),Hf=Symbol.for("react.memo"),Cr=Symbol.for("react.lazy"),Gy=Symbol.for("react.offscreen"),_m=Symbol.iterator;function ei(e){return e===null||typeof e!="object"?null:(e=_m&&e[_m]||e["@@iterator"],typeof e=="function"?e:null)}var et=Object.assign,du;function hi(e){if(du===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);du=t&&t[1]||""}return`
`+du+e}var fu=!1;function hu(e,t){if(!e||fu)return"";fu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
`),o=r.stack.split(`
`),i=s.length-1,a=o.length-1;1<=i&&0<=a&&s[i]!==o[a];)a--;for(;1<=i&&0<=a;i--,a--)if(s[i]!==o[a]){if(i!==1||a!==1)do if(i--,a--,0>a||s[i]!==o[a]){var c=`
`+s[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=i&&0<=a);break}}}finally{fu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hi(e):""}function gS(e){switch(e.tag){case 5:return hi(e.type);case 16:return hi("Lazy");case 13:return hi("Suspense");case 19:return hi("SuspenseList");case 0:case 2:case 15:return e=hu(e.type,!1),e;case 11:return e=hu(e.type.render,!1),e;case 1:return e=hu(e.type,!0),e;default:return""}}function ad(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 Js:return"Fragment";case Zs:return"Portal";case sd:return"Profiler";case zf:return"StrictMode";case od:return"Suspense";case id:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ky:return(e.displayName||"Context")+".Consumer";case qy:return(e._context.displayName||"Context")+".Provider";case Bf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hf:return t=e.displayName||null,t!==null?t:ad(e.type)||"Memo";case Cr:t=e._payload,e=e._init;try{return ad(e(t))}catch{}}return null}function yS(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 ad(t);case 8:return t===zf?"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 Jr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vS(e){var t=Yy(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,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pa(e){e._valueTracker||(e._valueTracker=vS(e))}function Qy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Yy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Nl(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 ld(e,t){var n=t.checked;return et({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Tm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jr(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 Zy(e,t){t=t.checked,t!=null&&Ff(e,"checked",t,!1)}function cd(e,t){Zy(e,t);var n=Jr(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")?ud(e,t.type,n):t.hasOwnProperty("defaultValue")&&ud(e,t.type,Jr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Rm(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 ud(e,t,n){(t!=="number"||Nl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mi=Array.isArray;function co(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Jr(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function dd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(B(91));return et({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Am(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(B(92));if(mi(n)){if(1<n.length)throw Error(B(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Jr(n)}}function Jy(e,t){var n=Jr(t.value),r=Jr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Pm(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Xy(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Xy(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Oa,ev=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Oa=Oa||document.createElement("div"),Oa.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Oa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ii(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wi={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},xS=["Webkit","ms","Moz","O"];Object.keys(wi).forEach(function(e){xS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wi[t]=wi[e]})});function tv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wi.hasOwnProperty(e)&&wi[e]?(""+t).trim():t+"px"}function nv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=tv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var wS=et({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 hd(e,t){if(t){if(wS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(B(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(B(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(B(61))}if(t.style!=null&&typeof t.style!="object")throw Error(B(62))}}function md(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 pd=null;function $f(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gd=null,uo=null,fo=null;function Om(e){if(e=pa(e)){if(typeof gd!="function")throw Error(B(280));var t=e.stateNode;t&&(t=bc(t),gd(e.stateNode,e.type,t))}}function rv(e){uo?fo?fo.push(e):fo=[e]:uo=e}function sv(){if(uo){var e=uo,t=fo;if(fo=uo=null,Om(e),t)for(e=0;e<t.length;e++)Om(t[e])}}function ov(e,t){return e(t)}function iv(){}var mu=!1;function av(e,t,n){if(mu)return e(t,n);mu=!0;try{return ov(e,t,n)}finally{mu=!1,(uo!==null||fo!==null)&&(iv(),sv())}}function Mi(e,t){var n=e.stateNode;if(n===null)return null;var r=bc(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(B(231,t,typeof n));return n}var yd=!1;if(dr)try{var ti={};Object.defineProperty(ti,"passive",{get:function(){yd=!0}}),window.addEventListener("test",ti,ti),window.removeEventListener("test",ti,ti)}catch{yd=!1}function bS(e,t,n,r,s,o,i,a,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var bi=!1,El=null,jl=!1,vd=null,SS={onError:function(e){bi=!0,El=e}};function NS(e,t,n,r,s,o,i,a,c){bi=!1,El=null,bS.apply(SS,arguments)}function ES(e,t,n,r,s,o,i,a,c){if(NS.apply(this,arguments),bi){if(bi){var u=El;bi=!1,El=null}else throw Error(B(198));jl||(jl=!0,vd=u)}}function zs(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function lv(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Im(e){if(zs(e)!==e)throw Error(B(188))}function jS(e){var t=e.alternate;if(!t){if(t=zs(e),t===null)throw Error(B(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return Im(s),e;if(o===r)return Im(s),t;o=o.sibling}throw Error(B(188))}if(n.return!==r.return)n=s,r=o;else{for(var i=!1,a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i){for(a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i)throw Error(B(189))}}if(n.alternate!==r)throw Error(B(190))}if(n.tag!==3)throw Error(B(188));return n.stateNode.current===n?e:t}function cv(e){return e=jS(e),e!==null?uv(e):null}function uv(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=uv(e);if(t!==null)return t;e=e.sibling}return null}var dv=an.unstable_scheduleCallback,Mm=an.unstable_cancelCallback,kS=an.unstable_shouldYield,CS=an.unstable_requestPaint,at=an.unstable_now,_S=an.unstable_getCurrentPriorityLevel,Vf=an.unstable_ImmediatePriority,fv=an.unstable_UserBlockingPriority,kl=an.unstable_NormalPriority,TS=an.unstable_LowPriority,hv=an.unstable_IdlePriority,yc=null,Yn=null;function RS(e){if(Yn&&typeof Yn.onCommitFiberRoot=="function")try{Yn.onCommitFiberRoot(yc,e,void 0,(e.current.flags&128)===128)}catch{}}var Rn=Math.clz32?Math.clz32:OS,AS=Math.log,PS=Math.LN2;function OS(e){return e>>>=0,e===0?32:31-(AS(e)/PS|0)|0}var Ia=64,Ma=4194304;function pi(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 Cl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~s;a!==0?r=pi(a):(o&=i,o!==0&&(r=pi(o)))}else i=n&~s,i!==0?r=pi(i):o!==0&&(r=pi(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,o=t&-t,s>=o||s===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Rn(t),s=1<<n,r|=e[n],t&=~s;return r}function IS(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function MS(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-Rn(o),a=1<<i,c=s[i];c===-1?(!(a&n)||a&r)&&(s[i]=IS(a,t)):c<=t&&(e.expiredLanes|=a),o&=~a}}function xd(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function mv(){var e=Ia;return Ia<<=1,!(Ia&4194240)&&(Ia=64),e}function pu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ha(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Rn(t),e[t]=n}function DS(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-Rn(n),o=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~o}}function Uf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Rn(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var Le=0;function pv(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var gv,Wf,yv,vv,xv,wd=!1,Da=[],$r=null,Vr=null,Ur=null,Di=new Map,Li=new Map,Rr=[],LS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Dm(e,t){switch(e){case"focusin":case"focusout":$r=null;break;case"dragenter":case"dragleave":Vr=null;break;case"mouseover":case"mouseout":Ur=null;break;case"pointerover":case"pointerout":Di.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Li.delete(t.pointerId)}}function ni(e,t,n,r,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[s]},t!==null&&(t=pa(t),t!==null&&Wf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function FS(e,t,n,r,s){switch(t){case"focusin":return $r=ni($r,e,t,n,r,s),!0;case"dragenter":return Vr=ni(Vr,e,t,n,r,s),!0;case"mouseover":return Ur=ni(Ur,e,t,n,r,s),!0;case"pointerover":var o=s.pointerId;return Di.set(o,ni(Di.get(o)||null,e,t,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,Li.set(o,ni(Li.get(o)||null,e,t,n,r,s)),!0}return!1}function wv(e){var t=ms(e.target);if(t!==null){var n=zs(t);if(n!==null){if(t=n.tag,t===13){if(t=lv(n),t!==null){e.blockedOn=t,xv(e.priority,function(){yv(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function sl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bd(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);pd=r,n.target.dispatchEvent(r),pd=null}else return t=pa(n),t!==null&&Wf(t),e.blockedOn=n,!1;t.shift()}return!0}function Lm(e,t,n){sl(e)&&n.delete(t)}function zS(){wd=!1,$r!==null&&sl($r)&&($r=null),Vr!==null&&sl(Vr)&&(Vr=null),Ur!==null&&sl(Ur)&&(Ur=null),Di.forEach(Lm),Li.forEach(Lm)}function ri(e,t){e.blockedOn===t&&(e.blockedOn=null,wd||(wd=!0,an.unstable_scheduleCallback(an.unstable_NormalPriority,zS)))}function Fi(e){function t(s){return ri(s,e)}if(0<Da.length){ri(Da[0],e);for(var n=1;n<Da.length;n++){var r=Da[n];r.blockedOn===e&&(r.blockedOn=null)}}for($r!==null&&ri($r,e),Vr!==null&&ri(Vr,e),Ur!==null&&ri(Ur,e),Di.forEach(t),Li.forEach(t),n=0;n<Rr.length;n++)r=Rr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Rr.length&&(n=Rr[0],n.blockedOn===null);)wv(n),n.blockedOn===null&&Rr.shift()}var ho=wr.ReactCurrentBatchConfig,_l=!0;function BS(e,t,n,r){var s=Le,o=ho.transition;ho.transition=null;try{Le=1,qf(e,t,n,r)}finally{Le=s,ho.transition=o}}function HS(e,t,n,r){var s=Le,o=ho.transition;ho.transition=null;try{Le=4,qf(e,t,n,r)}finally{Le=s,ho.transition=o}}function qf(e,t,n,r){if(_l){var s=bd(e,t,n,r);if(s===null)ju(e,t,r,Tl,n),Dm(e,r);else if(FS(s,e,t,n,r))r.stopPropagation();else if(Dm(e,r),t&4&&-1<LS.indexOf(e)){for(;s!==null;){var o=pa(s);if(o!==null&&gv(o),o=bd(e,t,n,r),o===null&&ju(e,t,r,Tl,n),o===s)break;s=o}s!==null&&r.stopPropagation()}else ju(e,t,r,null,n)}}var Tl=null;function bd(e,t,n,r){if(Tl=null,e=$f(r),e=ms(e),e!==null)if(t=zs(e),t===null)e=null;else if(n=t.tag,n===13){if(e=lv(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Tl=e,null}function bv(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(_S()){case Vf:return 1;case fv:return 4;case kl:case TS:return 16;case hv:return 536870912;default:return 16}default:return 16}}var Fr=null,Kf=null,ol=null;function Sv(){if(ol)return ol;var e,t=Kf,n=t.length,r,s="value"in Fr?Fr.value:Fr.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===s[o-r];r++);return ol=s.slice(e,1<r?1-r:void 0)}function il(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function La(){return!0}function Fm(){return!1}function dn(e){function t(n,r,s,o,i){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?La:Fm,this.isPropagationStopped=Fm,this}return et(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=La)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=La)},persist:function(){},isPersistent:La}),t}var Vo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gf=dn(Vo),ma=et({},Vo,{view:0,detail:0}),$S=dn(ma),gu,yu,si,vc=et({},ma,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==si&&(si&&e.type==="mousemove"?(gu=e.screenX-si.screenX,yu=e.screenY-si.screenY):yu=gu=0,si=e),gu)},movementY:function(e){return"movementY"in e?e.movementY:yu}}),zm=dn(vc),VS=et({},vc,{dataTransfer:0}),US=dn(VS),WS=et({},ma,{relatedTarget:0}),vu=dn(WS),qS=et({},Vo,{animationName:0,elapsedTime:0,pseudoElement:0}),KS=dn(qS),GS=et({},Vo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),YS=dn(GS),QS=et({},Vo,{data:0}),Bm=dn(QS),ZS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},JS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},XS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function eN(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=XS[e])?!!t[e]:!1}function Yf(){return eN}var tN=et({},ma,{key:function(e){if(e.key){var t=ZS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=il(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?JS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yf,charCode:function(e){return e.type==="keypress"?il(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?il(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),nN=dn(tN),rN=et({},vc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hm=dn(rN),sN=et({},ma,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yf}),oN=dn(sN),iN=et({},Vo,{propertyName:0,elapsedTime:0,pseudoElement:0}),aN=dn(iN),lN=et({},vc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),cN=dn(lN),uN=[9,13,27,32],Qf=dr&&"CompositionEvent"in window,Si=null;dr&&"documentMode"in document&&(Si=document.documentMode);var dN=dr&&"TextEvent"in window&&!Si,Nv=dr&&(!Qf||Si&&8<Si&&11>=Si),$m=" ",Vm=!1;function Ev(e,t){switch(e){case"keyup":return uN.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xs=!1;function fN(e,t){switch(e){case"compositionend":return jv(t);case"keypress":return t.which!==32?null:(Vm=!0,$m);case"textInput":return e=t.data,e===$m&&Vm?null:e;default:return null}}function hN(e,t){if(Xs)return e==="compositionend"||!Qf&&Ev(e,t)?(e=Sv(),ol=Kf=Fr=null,Xs=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nv&&t.locale!=="ko"?null:t.data;default:return null}}var mN={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Um(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!mN[e.type]:t==="textarea"}function kv(e,t,n,r){rv(r),t=Rl(t,"onChange"),0<t.length&&(n=new Gf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ni=null,zi=null;function pN(e){Lv(e,0)}function xc(e){var t=no(e);if(Qy(t))return e}function gN(e,t){if(e==="change")return t}var Cv=!1;if(dr){var xu;if(dr){var wu="oninput"in document;if(!wu){var Wm=document.createElement("div");Wm.setAttribute("oninput","return;"),wu=typeof Wm.oninput=="function"}xu=wu}else xu=!1;Cv=xu&&(!document.documentMode||9<document.documentMode)}function qm(){Ni&&(Ni.detachEvent("onpropertychange",_v),zi=Ni=null)}function _v(e){if(e.propertyName==="value"&&xc(zi)){var t=[];kv(t,zi,e,$f(e)),av(pN,t)}}function yN(e,t,n){e==="focusin"?(qm(),Ni=t,zi=n,Ni.attachEvent("onpropertychange",_v)):e==="focusout"&&qm()}function vN(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xc(zi)}function xN(e,t){if(e==="click")return xc(t)}function wN(e,t){if(e==="input"||e==="change")return xc(t)}function bN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var On=typeof Object.is=="function"?Object.is:bN;function Bi(e,t){if(On(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!rd.call(t,s)||!On(e[s],t[s]))return!1}return!0}function Km(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gm(e,t){var n=Km(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=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=Km(n)}}function Tv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rv(){for(var e=window,t=Nl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Nl(e.document)}return t}function Zf(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 SN(e){var t=Rv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Tv(n.ownerDocument.documentElement,n)){if(r!==null&&Zf(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,o=Math.min(r.start,s);r=r.end===void 0?o:Math.min(r.end,s),!e.extend&&o>r&&(s=r,r=o,o=s),s=Gm(n,o);var i=Gm(n,r);s&&i&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var NN=dr&&"documentMode"in document&&11>=document.documentMode,eo=null,Sd=null,Ei=null,Nd=!1;function Ym(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nd||eo==null||eo!==Nl(r)||(r=eo,"selectionStart"in r&&Zf(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}),Ei&&Bi(Ei,r)||(Ei=r,r=Rl(Sd,"onSelect"),0<r.length&&(t=new Gf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=eo)))}function Fa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var to={animationend:Fa("Animation","AnimationEnd"),animationiteration:Fa("Animation","AnimationIteration"),animationstart:Fa("Animation","AnimationStart"),transitionend:Fa("Transition","TransitionEnd")},bu={},Av={};dr&&(Av=document.createElement("div").style,"AnimationEvent"in window||(delete to.animationend.animation,delete to.animationiteration.animation,delete to.animationstart.animation),"TransitionEvent"in window||delete to.transitionend.transition);function wc(e){if(bu[e])return bu[e];if(!to[e])return e;var t=to[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Av)return bu[e]=t[n];return e}var Pv=wc("animationend"),Ov=wc("animationiteration"),Iv=wc("animationstart"),Mv=wc("transitionend"),Dv=new Map,Qm="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function is(e,t){Dv.set(e,t),Fs(t,[e])}for(var Su=0;Su<Qm.length;Su++){var Nu=Qm[Su],EN=Nu.toLowerCase(),jN=Nu[0].toUpperCase()+Nu.slice(1);is(EN,"on"+jN)}is(Pv,"onAnimationEnd");is(Ov,"onAnimationIteration");is(Iv,"onAnimationStart");is("dblclick","onDoubleClick");is("focusin","onFocus");is("focusout","onBlur");is(Mv,"onTransitionEnd");To("onMouseEnter",["mouseout","mouseover"]);To("onMouseLeave",["mouseout","mouseover"]);To("onPointerEnter",["pointerout","pointerover"]);To("onPointerLeave",["pointerout","pointerover"]);Fs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Fs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Fs("onBeforeInput",["compositionend","keypress","textInput","paste"]);Fs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Fs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Fs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kN=new Set("cancel close invalid load scroll toggle".split(" ").concat(gi));function Zm(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ES(r,t,void 0,e),e.currentTarget=null}function Lv(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],c=a.instance,u=a.currentTarget;if(a=a.listener,c!==o&&s.isPropagationStopped())break e;Zm(s,a,u),o=c}else for(i=0;i<r.length;i++){if(a=r[i],c=a.instance,u=a.currentTarget,a=a.listener,c!==o&&s.isPropagationStopped())break e;Zm(s,a,u),o=c}}}if(jl)throw e=vd,jl=!1,vd=null,e}function qe(e,t){var n=t[_d];n===void 0&&(n=t[_d]=new Set);var r=e+"__bubble";n.has(r)||(Fv(t,e,2,!1),n.add(r))}function Eu(e,t,n){var r=0;t&&(r|=4),Fv(n,e,r,t)}var za="_reactListening"+Math.random().toString(36).slice(2);function Hi(e){if(!e[za]){e[za]=!0,Wy.forEach(function(n){n!=="selectionchange"&&(kN.has(n)||Eu(n,!1,e),Eu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[za]||(t[za]=!0,Eu("selectionchange",!1,t))}}function Fv(e,t,n,r){switch(bv(t)){case 1:var s=BS;break;case 4:s=HS;break;default:s=qf}n=s.bind(null,t,n,e),s=void 0,!yd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function ju(e,t,n,r,s){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var c=i.tag;if((c===3||c===4)&&(c=i.stateNode.containerInfo,c===s||c.nodeType===8&&c.parentNode===s))return;i=i.return}for(;a!==null;){if(i=ms(a),i===null)return;if(c=i.tag,c===5||c===6){r=o=i;continue e}a=a.parentNode}}r=r.return}av(function(){var u=o,d=$f(n),h=[];e:{var f=Dv.get(e);if(f!==void 0){var x=Gf,v=e;switch(e){case"keypress":if(il(n)===0)break e;case"keydown":case"keyup":x=nN;break;case"focusin":v="focus",x=vu;break;case"focusout":v="blur",x=vu;break;case"beforeblur":case"afterblur":x=vu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=zm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=US;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=oN;break;case Pv:case Ov:case Iv:x=KS;break;case Mv:x=aN;break;case"scroll":x=$S;break;case"wheel":x=cN;break;case"copy":case"cut":case"paste":x=YS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=Hm}var p=(t&4)!==0,b=!p&&e==="scroll",g=p?f!==null?f+"Capture":null:f;p=[];for(var m=u,w;m!==null;){w=m;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,g!==null&&(S=Mi(m,g),S!=null&&p.push($i(m,S,w)))),b)break;m=m.return}0<p.length&&(f=new x(f,v,null,n,d),h.push({event:f,listeners:p}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",f&&n!==pd&&(v=n.relatedTarget||n.fromElement)&&(ms(v)||v[fr]))break e;if((x||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,x?(v=n.relatedTarget||n.toElement,x=u,v=v?ms(v):null,v!==null&&(b=zs(v),v!==b||v.tag!==5&&v.tag!==6)&&(v=null)):(x=null,v=u),x!==v)){if(p=zm,S="onMouseLeave",g="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(p=Hm,S="onPointerLeave",g="onPointerEnter",m="pointer"),b=x==null?f:no(x),w=v==null?f:no(v),f=new p(S,m+"leave",x,n,d),f.target=b,f.relatedTarget=w,S=null,ms(d)===u&&(p=new p(g,m+"enter",v,n,d),p.target=w,p.relatedTarget=b,S=p),b=S,x&&v)t:{for(p=x,g=v,m=0,w=p;w;w=Ws(w))m++;for(w=0,S=g;S;S=Ws(S))w++;for(;0<m-w;)p=Ws(p),m--;for(;0<w-m;)g=Ws(g),w--;for(;m--;){if(p===g||g!==null&&p===g.alternate)break t;p=Ws(p),g=Ws(g)}p=null}else p=null;x!==null&&Jm(h,f,x,p,!1),v!==null&&b!==null&&Jm(h,b,v,p,!0)}}e:{if(f=u?no(u):window,x=f.nodeName&&f.nodeName.toLowerCase(),x==="select"||x==="input"&&f.type==="file")var N=gN;else if(Um(f))if(Cv)N=wN;else{N=vN;var k=yN}else(x=f.nodeName)&&x.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(N=xN);if(N&&(N=N(e,u))){kv(h,N,n,d);break e}k&&k(e,f,u),e==="focusout"&&(k=f._wrapperState)&&k.controlled&&f.type==="number"&&ud(f,"number",f.value)}switch(k=u?no(u):window,e){case"focusin":(Um(k)||k.contentEditable==="true")&&(eo=k,Sd=u,Ei=null);break;case"focusout":Ei=Sd=eo=null;break;case"mousedown":Nd=!0;break;case"contextmenu":case"mouseup":case"dragend":Nd=!1,Ym(h,n,d);break;case"selectionchange":if(NN)break;case"keydown":case"keyup":Ym(h,n,d)}var j;if(Qf)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Xs?Ev(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(Nv&&n.locale!=="ko"&&(Xs||C!=="onCompositionStart"?C==="onCompositionEnd"&&Xs&&(j=Sv()):(Fr=d,Kf="value"in Fr?Fr.value:Fr.textContent,Xs=!0)),k=Rl(u,C),0<k.length&&(C=new Bm(C,e,null,n,d),h.push({event:C,listeners:k}),j?C.data=j:(j=jv(n),j!==null&&(C.data=j)))),(j=dN?fN(e,n):hN(e,n))&&(u=Rl(u,"onBeforeInput"),0<u.length&&(d=new Bm("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:u}),d.data=j))}Lv(h,t)})}function $i(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Rl(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=Mi(e,n),o!=null&&r.unshift($i(e,o,s)),o=Mi(e,t),o!=null&&r.push($i(e,o,s))),e=e.return}return r}function Ws(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Jm(e,t,n,r,s){for(var o=t._reactName,i=[];n!==null&&n!==r;){var a=n,c=a.alternate,u=a.stateNode;if(c!==null&&c===r)break;a.tag===5&&u!==null&&(a=u,s?(c=Mi(n,o),c!=null&&i.unshift($i(n,c,a))):s||(c=Mi(n,o),c!=null&&i.push($i(n,c,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var CN=/\r\n?/g,_N=/\u0000|\uFFFD/g;function Xm(e){return(typeof e=="string"?e:""+e).replace(CN,`
`).replace(_N,"")}function Ba(e,t,n){if(t=Xm(t),Xm(e)!==t&&n)throw Error(B(425))}function Al(){}var Ed=null,jd=null;function kd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Cd=typeof setTimeout=="function"?setTimeout:void 0,TN=typeof clearTimeout=="function"?clearTimeout:void 0,ep=typeof Promise=="function"?Promise:void 0,RN=typeof queueMicrotask=="function"?queueMicrotask:typeof ep<"u"?function(e){return ep.resolve(null).then(e).catch(AN)}:Cd;function AN(e){setTimeout(function(){throw e})}function ku(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Fi(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Fi(t)}function Wr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function tp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Uo=Math.random().toString(36).slice(2),qn="__reactFiber$"+Uo,Vi="__reactProps$"+Uo,fr="__reactContainer$"+Uo,_d="__reactEvents$"+Uo,PN="__reactListeners$"+Uo,ON="__reactHandles$"+Uo;function ms(e){var t=e[qn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fr]||n[qn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=tp(e);e!==null;){if(n=e[qn])return n;e=tp(e)}return t}e=n,n=e.parentNode}return null}function pa(e){return e=e[qn]||e[fr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function no(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(B(33))}function bc(e){return e[Vi]||null}var Td=[],ro=-1;function as(e){return{current:e}}function Ke(e){0>ro||(e.current=Td[ro],Td[ro]=null,ro--)}function Ve(e,t){ro++,Td[ro]=e.current,e.current=t}var Xr={},Rt=as(Xr),Ut=as(!1),ks=Xr;function Ro(e,t){var n=e.type.contextTypes;if(!n)return Xr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in n)s[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Wt(e){return e=e.childContextTypes,e!=null}function Pl(){Ke(Ut),Ke(Rt)}function np(e,t,n){if(Rt.current!==Xr)throw Error(B(168));Ve(Rt,t),Ve(Ut,n)}function zv(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(B(108,yS(e)||"Unknown",s));return et({},n,r)}function Ol(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xr,ks=Rt.current,Ve(Rt,e),Ve(Ut,Ut.current),!0}function rp(e,t,n){var r=e.stateNode;if(!r)throw Error(B(169));n?(e=zv(e,t,ks),r.__reactInternalMemoizedMergedChildContext=e,Ke(Ut),Ke(Rt),Ve(Rt,e)):Ke(Ut),Ve(Ut,n)}var ir=null,Sc=!1,Cu=!1;function Bv(e){ir===null?ir=[e]:ir.push(e)}function IN(e){Sc=!0,Bv(e)}function ls(){if(!Cu&&ir!==null){Cu=!0;var e=0,t=Le;try{var n=ir;for(Le=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ir=null,Sc=!1}catch(s){throw ir!==null&&(ir=ir.slice(e+1)),dv(Vf,ls),s}finally{Le=t,Cu=!1}}return null}var so=[],oo=0,Il=null,Ml=0,hn=[],mn=0,Cs=null,lr=1,cr="";function fs(e,t){so[oo++]=Ml,so[oo++]=Il,Il=e,Ml=t}function Hv(e,t,n){hn[mn++]=lr,hn[mn++]=cr,hn[mn++]=Cs,Cs=e;var r=lr;e=cr;var s=32-Rn(r)-1;r&=~(1<<s),n+=1;var o=32-Rn(t)+s;if(30<o){var i=s-s%5;o=(r&(1<<i)-1).toString(32),r>>=i,s-=i,lr=1<<32-Rn(t)+s|n<<s|r,cr=o+e}else lr=1<<o|n<<s|r,cr=e}function Jf(e){e.return!==null&&(fs(e,1),Hv(e,1,0))}function Xf(e){for(;e===Il;)Il=so[--oo],so[oo]=null,Ml=so[--oo],so[oo]=null;for(;e===Cs;)Cs=hn[--mn],hn[mn]=null,cr=hn[--mn],hn[mn]=null,lr=hn[--mn],hn[mn]=null}var sn=null,rn=null,Ye=!1,Cn=null;function $v(e,t){var n=pn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function sp(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,sn=e,rn=Wr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,sn=e,rn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Cs!==null?{id:lr,overflow:cr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=pn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,sn=e,rn=null,!0):!1;default:return!1}}function Rd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ad(e){if(Ye){var t=rn;if(t){var n=t;if(!sp(e,t)){if(Rd(e))throw Error(B(418));t=Wr(n.nextSibling);var r=sn;t&&sp(e,t)?$v(r,n):(e.flags=e.flags&-4097|2,Ye=!1,sn=e)}}else{if(Rd(e))throw Error(B(418));e.flags=e.flags&-4097|2,Ye=!1,sn=e}}}function op(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;sn=e}function Ha(e){if(e!==sn)return!1;if(!Ye)return op(e),Ye=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!kd(e.type,e.memoizedProps)),t&&(t=rn)){if(Rd(e))throw Vv(),Error(B(418));for(;t;)$v(e,t),t=Wr(t.nextSibling)}if(op(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(B(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){rn=Wr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}rn=null}}else rn=sn?Wr(e.stateNode.nextSibling):null;return!0}function Vv(){for(var e=rn;e;)e=Wr(e.nextSibling)}function Ao(){rn=sn=null,Ye=!1}function eh(e){Cn===null?Cn=[e]:Cn.push(e)}var MN=wr.ReactCurrentBatchConfig;function oi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(B(309));var r=n.stateNode}if(!r)throw Error(B(147,e));var s=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var a=s.refs;i===null?delete a[o]:a[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(B(284));if(!n._owner)throw Error(B(290,e))}return e}function $a(e,t){throw e=Object.prototype.toString.call(t),Error(B(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ip(e){var t=e._init;return t(e._payload)}function Uv(e){function t(g,m){if(e){var w=g.deletions;w===null?(g.deletions=[m],g.flags|=16):w.push(m)}}function n(g,m){if(!e)return null;for(;m!==null;)t(g,m),m=m.sibling;return null}function r(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function s(g,m){return g=Yr(g,m),g.index=0,g.sibling=null,g}function o(g,m,w){return g.index=w,e?(w=g.alternate,w!==null?(w=w.index,w<m?(g.flags|=2,m):w):(g.flags|=2,m)):(g.flags|=1048576,m)}function i(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,m,w,S){return m===null||m.tag!==6?(m=Iu(w,g.mode,S),m.return=g,m):(m=s(m,w),m.return=g,m)}function c(g,m,w,S){var N=w.type;return N===Js?d(g,m,w.props.children,S,w.key):m!==null&&(m.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Cr&&ip(N)===m.type)?(S=s(m,w.props),S.ref=oi(g,m,w),S.return=g,S):(S=hl(w.type,w.key,w.props,null,g.mode,S),S.ref=oi(g,m,w),S.return=g,S)}function u(g,m,w,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==w.containerInfo||m.stateNode.implementation!==w.implementation?(m=Mu(w,g.mode,S),m.return=g,m):(m=s(m,w.children||[]),m.return=g,m)}function d(g,m,w,S,N){return m===null||m.tag!==7?(m=Es(w,g.mode,S,N),m.return=g,m):(m=s(m,w),m.return=g,m)}function h(g,m,w){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Iu(""+m,g.mode,w),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Aa:return w=hl(m.type,m.key,m.props,null,g.mode,w),w.ref=oi(g,null,m),w.return=g,w;case Zs:return m=Mu(m,g.mode,w),m.return=g,m;case Cr:var S=m._init;return h(g,S(m._payload),w)}if(mi(m)||ei(m))return m=Es(m,g.mode,w,null),m.return=g,m;$a(g,m)}return null}function f(g,m,w,S){var N=m!==null?m.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return N!==null?null:a(g,m,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Aa:return w.key===N?c(g,m,w,S):null;case Zs:return w.key===N?u(g,m,w,S):null;case Cr:return N=w._init,f(g,m,N(w._payload),S)}if(mi(w)||ei(w))return N!==null?null:d(g,m,w,S,null);$a(g,w)}return null}function x(g,m,w,S,N){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(w)||null,a(m,g,""+S,N);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Aa:return g=g.get(S.key===null?w:S.key)||null,c(m,g,S,N);case Zs:return g=g.get(S.key===null?w:S.key)||null,u(m,g,S,N);case Cr:var k=S._init;return x(g,m,w,k(S._payload),N)}if(mi(S)||ei(S))return g=g.get(w)||null,d(m,g,S,N,null);$a(m,S)}return null}function v(g,m,w,S){for(var N=null,k=null,j=m,C=m=0,P=null;j!==null&&C<w.length;C++){j.index>C?(P=j,j=null):P=j.sibling;var D=f(g,j,w[C],S);if(D===null){j===null&&(j=P);break}e&&j&&D.alternate===null&&t(g,j),m=o(D,m,C),k===null?N=D:k.sibling=D,k=D,j=P}if(C===w.length)return n(g,j),Ye&&fs(g,C),N;if(j===null){for(;C<w.length;C++)j=h(g,w[C],S),j!==null&&(m=o(j,m,C),k===null?N=j:k.sibling=j,k=j);return Ye&&fs(g,C),N}for(j=r(g,j);C<w.length;C++)P=x(j,g,C,w[C],S),P!==null&&(e&&P.alternate!==null&&j.delete(P.key===null?C:P.key),m=o(P,m,C),k===null?N=P:k.sibling=P,k=P);return e&&j.forEach(function(z){return t(g,z)}),Ye&&fs(g,C),N}function p(g,m,w,S){var N=ei(w);if(typeof N!="function")throw Error(B(150));if(w=N.call(w),w==null)throw Error(B(151));for(var k=N=null,j=m,C=m=0,P=null,D=w.next();j!==null&&!D.done;C++,D=w.next()){j.index>C?(P=j,j=null):P=j.sibling;var z=f(g,j,D.value,S);if(z===null){j===null&&(j=P);break}e&&j&&z.alternate===null&&t(g,j),m=o(z,m,C),k===null?N=z:k.sibling=z,k=z,j=P}if(D.done)return n(g,j),Ye&&fs(g,C),N;if(j===null){for(;!D.done;C++,D=w.next())D=h(g,D.value,S),D!==null&&(m=o(D,m,C),k===null?N=D:k.sibling=D,k=D);return Ye&&fs(g,C),N}for(j=r(g,j);!D.done;C++,D=w.next())D=x(j,g,C,D.value,S),D!==null&&(e&&D.alternate!==null&&j.delete(D.key===null?C:D.key),m=o(D,m,C),k===null?N=D:k.sibling=D,k=D);return e&&j.forEach(function(O){return t(g,O)}),Ye&&fs(g,C),N}function b(g,m,w,S){if(typeof w=="object"&&w!==null&&w.type===Js&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Aa:e:{for(var N=w.key,k=m;k!==null;){if(k.key===N){if(N=w.type,N===Js){if(k.tag===7){n(g,k.sibling),m=s(k,w.props.children),m.return=g,g=m;break e}}else if(k.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Cr&&ip(N)===k.type){n(g,k.sibling),m=s(k,w.props),m.ref=oi(g,k,w),m.return=g,g=m;break e}n(g,k);break}else t(g,k);k=k.sibling}w.type===Js?(m=Es(w.props.children,g.mode,S,w.key),m.return=g,g=m):(S=hl(w.type,w.key,w.props,null,g.mode,S),S.ref=oi(g,m,w),S.return=g,g=S)}return i(g);case Zs:e:{for(k=w.key;m!==null;){if(m.key===k)if(m.tag===4&&m.stateNode.containerInfo===w.containerInfo&&m.stateNode.implementation===w.implementation){n(g,m.sibling),m=s(m,w.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=Mu(w,g.mode,S),m.return=g,g=m}return i(g);case Cr:return k=w._init,b(g,m,k(w._payload),S)}if(mi(w))return v(g,m,w,S);if(ei(w))return p(g,m,w,S);$a(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,m!==null&&m.tag===6?(n(g,m.sibling),m=s(m,w),m.return=g,g=m):(n(g,m),m=Iu(w,g.mode,S),m.return=g,g=m),i(g)):n(g,m)}return b}var Po=Uv(!0),Wv=Uv(!1),Dl=as(null),Ll=null,io=null,th=null;function nh(){th=io=Ll=null}function rh(e){var t=Dl.current;Ke(Dl),e._currentValue=t}function Pd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function mo(e,t){Ll=e,th=io=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Vt=!0),e.firstContext=null)}function yn(e){var t=e._currentValue;if(th!==e)if(e={context:e,memoizedValue:t,next:null},io===null){if(Ll===null)throw Error(B(308));io=e,Ll.dependencies={lanes:0,firstContext:e}}else io=io.next=e;return t}var ps=null;function sh(e){ps===null?ps=[e]:ps.push(e)}function qv(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,sh(t)):(n.next=s.next,s.next=n),t.interleaved=n,hr(e,r)}function hr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var _r=!1;function oh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Kv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ur(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,_e&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,hr(e,n)}return s=r.interleaved,s===null?(t.next=t,sh(r)):(t.next=s.next,s.next=t),r.interleaved=t,hr(e,n)}function al(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Uf(e,n)}}function ap(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?s=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fl(e,t,n,r){var s=e.updateQueue;_r=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var c=a,u=c.next;c.next=null,i===null?o=u:i.next=u,i=c;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=c))}if(o!==null){var h=s.baseState;i=0,d=u=c=null,a=o;do{var f=a.lane,x=a.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:x,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,p=a;switch(f=t,x=n,p.tag){case 1:if(v=p.payload,typeof v=="function"){h=v.call(x,h,f);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=p.payload,f=typeof v=="function"?v.call(x,h,f):v,f==null)break e;h=et({},h,f);break e;case 2:_r=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=s.effects,f===null?s.effects=[a]:f.push(a))}else x={eventTime:x,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=x,c=h):d=d.next=x,i|=f;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;f=a,a=f.next,f.next=null,s.lastBaseUpdate=f,s.shared.pending=null}}while(!0);if(d===null&&(c=h),s.baseState=c,s.firstBaseUpdate=u,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do i|=s.lane,s=s.next;while(s!==t)}else o===null&&(s.shared.lanes=0);Ts|=i,e.lanes=i,e.memoizedState=h}}function lp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(B(191,s));s.call(r)}}}var ga={},Qn=as(ga),Ui=as(ga),Wi=as(ga);function gs(e){if(e===ga)throw Error(B(174));return e}function ih(e,t){switch(Ve(Wi,t),Ve(Ui,e),Ve(Qn,ga),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=fd(t,e)}Ke(Qn),Ve(Qn,t)}function Oo(){Ke(Qn),Ke(Ui),Ke(Wi)}function Gv(e){gs(Wi.current);var t=gs(Qn.current),n=fd(t,e.type);t!==n&&(Ve(Ui,e),Ve(Qn,n))}function ah(e){Ui.current===e&&(Ke(Qn),Ke(Ui))}var Ze=as(0);function zl(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 _u=[];function lh(){for(var e=0;e<_u.length;e++)_u[e]._workInProgressVersionPrimary=null;_u.length=0}var ll=wr.ReactCurrentDispatcher,Tu=wr.ReactCurrentBatchConfig,_s=0,Xe=null,mt=null,yt=null,Bl=!1,ji=!1,qi=0,DN=0;function jt(){throw Error(B(321))}function ch(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!On(e[n],t[n]))return!1;return!0}function uh(e,t,n,r,s,o){if(_s=o,Xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ll.current=e===null||e.memoizedState===null?BN:HN,e=n(r,s),ji){o=0;do{if(ji=!1,qi=0,25<=o)throw Error(B(301));o+=1,yt=mt=null,t.updateQueue=null,ll.current=$N,e=n(r,s)}while(ji)}if(ll.current=Hl,t=mt!==null&&mt.next!==null,_s=0,yt=mt=Xe=null,Bl=!1,t)throw Error(B(300));return e}function dh(){var e=qi!==0;return qi=0,e}function Bn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yt===null?Xe.memoizedState=yt=e:yt=yt.next=e,yt}function vn(){if(mt===null){var e=Xe.alternate;e=e!==null?e.memoizedState:null}else e=mt.next;var t=yt===null?Xe.memoizedState:yt.next;if(t!==null)yt=t,mt=e;else{if(e===null)throw Error(B(310));mt=e,e={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},yt===null?Xe.memoizedState=yt=e:yt=yt.next=e}return yt}function Ki(e,t){return typeof t=="function"?t(e):t}function Ru(e){var t=vn(),n=t.queue;if(n===null)throw Error(B(311));n.lastRenderedReducer=e;var r=mt,s=r.baseQueue,o=n.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}r.baseQueue=s=o,n.pending=null}if(s!==null){o=s.next,r=r.baseState;var a=i=null,c=null,u=o;do{var d=u.lane;if((_s&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(a=c=h,i=r):c=c.next=h,Xe.lanes|=d,Ts|=d}u=u.next}while(u!==null&&u!==o);c===null?i=r:c.next=a,On(r,t.memoizedState)||(Vt=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do o=s.lane,Xe.lanes|=o,Ts|=o,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Au(e){var t=vn(),n=t.queue;if(n===null)throw Error(B(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);On(o,t.memoizedState)||(Vt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Yv(){}function Qv(e,t){var n=Xe,r=vn(),s=t(),o=!On(r.memoizedState,s);if(o&&(r.memoizedState=s,Vt=!0),r=r.queue,fh(Xv.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||yt!==null&&yt.memoizedState.tag&1){if(n.flags|=2048,Gi(9,Jv.bind(null,n,r,s,t),void 0,null),vt===null)throw Error(B(349));_s&30||Zv(n,t,s)}return s}function Zv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Xe.updateQueue,t===null?(t={lastEffect:null,stores:null},Xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Jv(e,t,n,r){t.value=n,t.getSnapshot=r,ex(t)&&tx(e)}function Xv(e,t,n){return n(function(){ex(t)&&tx(e)})}function ex(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!On(e,n)}catch{return!0}}function tx(e){var t=hr(e,1);t!==null&&An(t,e,1,-1)}function cp(e){var t=Bn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ki,lastRenderedState:e},t.queue=e,e=e.dispatch=zN.bind(null,Xe,e),[t.memoizedState,e]}function Gi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Xe.updateQueue,t===null?(t={lastEffect:null,stores:null},Xe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function nx(){return vn().memoizedState}function cl(e,t,n,r){var s=Bn();Xe.flags|=e,s.memoizedState=Gi(1|t,n,void 0,r===void 0?null:r)}function Nc(e,t,n,r){var s=vn();r=r===void 0?null:r;var o=void 0;if(mt!==null){var i=mt.memoizedState;if(o=i.destroy,r!==null&&ch(r,i.deps)){s.memoizedState=Gi(t,n,o,r);return}}Xe.flags|=e,s.memoizedState=Gi(1|t,n,o,r)}function up(e,t){return cl(8390656,8,e,t)}function fh(e,t){return Nc(2048,8,e,t)}function rx(e,t){return Nc(4,2,e,t)}function sx(e,t){return Nc(4,4,e,t)}function ox(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ix(e,t,n){return n=n!=null?n.concat([e]):null,Nc(4,4,ox.bind(null,t,e),n)}function hh(){}function ax(e,t){var n=vn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ch(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function lx(e,t){var n=vn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ch(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function cx(e,t,n){return _s&21?(On(n,t)||(n=mv(),Xe.lanes|=n,Ts|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Vt=!0),e.memoizedState=n)}function LN(e,t){var n=Le;Le=n!==0&&4>n?n:4,e(!0);var r=Tu.transition;Tu.transition={};try{e(!1),t()}finally{Le=n,Tu.transition=r}}function ux(){return vn().memoizedState}function FN(e,t,n){var r=Gr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},dx(e))fx(t,n);else if(n=qv(e,t,n,r),n!==null){var s=Dt();An(n,e,r,s),hx(n,t,r)}}function zN(e,t,n){var r=Gr(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(dx(e))fx(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,n);if(s.hasEagerState=!0,s.eagerState=a,On(a,i)){var c=t.interleaved;c===null?(s.next=s,sh(t)):(s.next=c.next,c.next=s),t.interleaved=s;return}}catch{}finally{}n=qv(e,t,s,r),n!==null&&(s=Dt(),An(n,e,r,s),hx(n,t,r))}}function dx(e){var t=e.alternate;return e===Xe||t!==null&&t===Xe}function fx(e,t){ji=Bl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Uf(e,n)}}var Hl={readContext:yn,useCallback:jt,useContext:jt,useEffect:jt,useImperativeHandle:jt,useInsertionEffect:jt,useLayoutEffect:jt,useMemo:jt,useReducer:jt,useRef:jt,useState:jt,useDebugValue:jt,useDeferredValue:jt,useTransition:jt,useMutableSource:jt,useSyncExternalStore:jt,useId:jt,unstable_isNewReconciler:!1},BN={readContext:yn,useCallback:function(e,t){return Bn().memoizedState=[e,t===void 0?null:t],e},useContext:yn,useEffect:up,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,cl(4194308,4,ox.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cl(4194308,4,e,t)},useInsertionEffect:function(e,t){return cl(4,2,e,t)},useMemo:function(e,t){var n=Bn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Bn();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=FN.bind(null,Xe,e),[r.memoizedState,e]},useRef:function(e){var t=Bn();return e={current:e},t.memoizedState=e},useState:cp,useDebugValue:hh,useDeferredValue:function(e){return Bn().memoizedState=e},useTransition:function(){var e=cp(!1),t=e[0];return e=LN.bind(null,e[1]),Bn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Xe,s=Bn();if(Ye){if(n===void 0)throw Error(B(407));n=n()}else{if(n=t(),vt===null)throw Error(B(349));_s&30||Zv(r,t,n)}s.memoizedState=n;var o={value:n,getSnapshot:t};return s.queue=o,up(Xv.bind(null,r,o,e),[e]),r.flags|=2048,Gi(9,Jv.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Bn(),t=vt.identifierPrefix;if(Ye){var n=cr,r=lr;n=(r&~(1<<32-Rn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=DN++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},HN={readContext:yn,useCallback:ax,useContext:yn,useEffect:fh,useImperativeHandle:ix,useInsertionEffect:rx,useLayoutEffect:sx,useMemo:lx,useReducer:Ru,useRef:nx,useState:function(){return Ru(Ki)},useDebugValue:hh,useDeferredValue:function(e){var t=vn();return cx(t,mt.memoizedState,e)},useTransition:function(){var e=Ru(Ki)[0],t=vn().memoizedState;return[e,t]},useMutableSource:Yv,useSyncExternalStore:Qv,useId:ux,unstable_isNewReconciler:!1},$N={readContext:yn,useCallback:ax,useContext:yn,useEffect:fh,useImperativeHandle:ix,useInsertionEffect:rx,useLayoutEffect:sx,useMemo:lx,useReducer:Au,useRef:nx,useState:function(){return Au(Ki)},useDebugValue:hh,useDeferredValue:function(e){var t=vn();return mt===null?t.memoizedState=e:cx(t,mt.memoizedState,e)},useTransition:function(){var e=Au(Ki)[0],t=vn().memoizedState;return[e,t]},useMutableSource:Yv,useSyncExternalStore:Qv,useId:ux,unstable_isNewReconciler:!1};function Nn(e,t){if(e&&e.defaultProps){t=et({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Od(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:et({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ec={isMounted:function(e){return(e=e._reactInternals)?zs(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Dt(),s=Gr(e),o=ur(r,s);o.payload=t,n!=null&&(o.callback=n),t=qr(e,o,s),t!==null&&(An(t,e,s,r),al(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Dt(),s=Gr(e),o=ur(r,s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=qr(e,o,s),t!==null&&(An(t,e,s,r),al(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Dt(),r=Gr(e),s=ur(n,r);s.tag=2,t!=null&&(s.callback=t),t=qr(e,s,r),t!==null&&(An(t,e,r,n),al(t,e,r))}};function dp(e,t,n,r,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!Bi(n,r)||!Bi(s,o):!0}function mx(e,t,n){var r=!1,s=Xr,o=t.contextType;return typeof o=="object"&&o!==null?o=yn(o):(s=Wt(t)?ks:Rt.current,r=t.contextTypes,o=(r=r!=null)?Ro(e,s):Xr),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ec,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function fp(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ec.enqueueReplaceState(t,t.state,null)}function Id(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},oh(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=yn(o):(o=Wt(t)?ks:Rt.current,s.context=Ro(e,o)),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Od(e,t,o,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Ec.enqueueReplaceState(s,s.state,null),Fl(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Io(e,t){try{var n="",r=t;do n+=gS(r),r=r.return;while(r);var s=n}catch(o){s=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:s,digest:null}}function Pu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Md(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var VN=typeof WeakMap=="function"?WeakMap:Map;function px(e,t,n){n=ur(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vl||(Vl=!0,Wd=r),Md(e,t)},n}function gx(e,t,n){n=ur(-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(){Md(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Md(e,t),typeof r!="function"&&(Kr===null?Kr=new Set([this]):Kr.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function hp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new VN;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=rE.bind(null,e,t,n),t.then(e,e))}function mp(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 pp(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=ur(-1,1),t.tag=2,qr(n,t,1))),n.lanes|=1),e)}var UN=wr.ReactCurrentOwner,Vt=!1;function Ot(e,t,n,r){t.child=e===null?Wv(t,null,n,r):Po(t,e.child,n,r)}function gp(e,t,n,r,s){n=n.render;var o=t.ref;return mo(t,s),r=uh(e,t,n,r,o,s),n=dh(),e!==null&&!Vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,mr(e,t,s)):(Ye&&n&&Jf(t),t.flags|=1,Ot(e,t,r,s),t.child)}function yp(e,t,n,r,s){if(e===null){var o=n.type;return typeof o=="function"&&!bh(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,yx(e,t,o,r,s)):(e=hl(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&s)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:Bi,n(i,r)&&e.ref===t.ref)return mr(e,t,s)}return t.flags|=1,e=Yr(o,r),e.ref=t.ref,e.return=t,t.child=e}function yx(e,t,n,r,s){if(e!==null){var o=e.memoizedProps;if(Bi(o,r)&&e.ref===t.ref)if(Vt=!1,t.pendingProps=r=o,(e.lanes&s)!==0)e.flags&131072&&(Vt=!0);else return t.lanes=e.lanes,mr(e,t,s)}return Dd(e,t,n,r,s)}function vx(e,t,n){var r=t.pendingProps,s=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ve(lo,tn),tn|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ve(lo,tn),tn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ve(lo,tn),tn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ve(lo,tn),tn|=r;return Ot(e,t,s,n),t.child}function xx(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Dd(e,t,n,r,s){var o=Wt(n)?ks:Rt.current;return o=Ro(t,o),mo(t,s),n=uh(e,t,n,r,o,s),r=dh(),e!==null&&!Vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,mr(e,t,s)):(Ye&&r&&Jf(t),t.flags|=1,Ot(e,t,n,s),t.child)}function vp(e,t,n,r,s){if(Wt(n)){var o=!0;Ol(t)}else o=!1;if(mo(t,s),t.stateNode===null)ul(e,t),mx(t,n,r),Id(t,n,r,s),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var c=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=yn(u):(u=Wt(n)?ks:Rt.current,u=Ro(t,u));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||c!==u)&&fp(t,i,r,u),_r=!1;var f=t.memoizedState;i.state=f,Fl(t,r,i,s),c=t.memoizedState,a!==r||f!==c||Ut.current||_r?(typeof d=="function"&&(Od(t,n,d,r),c=t.memoizedState),(a=_r||dp(t,n,a,r,f,c,u))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=u,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Kv(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Nn(t.type,a),i.props=u,h=t.pendingProps,f=i.context,c=n.contextType,typeof c=="object"&&c!==null?c=yn(c):(c=Wt(n)?ks:Rt.current,c=Ro(t,c));var x=n.getDerivedStateFromProps;(d=typeof x=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==h||f!==c)&&fp(t,i,r,c),_r=!1,f=t.memoizedState,i.state=f,Fl(t,r,i,s);var v=t.memoizedState;a!==h||f!==v||Ut.current||_r?(typeof x=="function"&&(Od(t,n,x,r),v=t.memoizedState),(u=_r||dp(t,n,u,r,f,v,c)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,v,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,v,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),i.props=r,i.state=v,i.context=c,r=u):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ld(e,t,n,r,o,s)}function Ld(e,t,n,r,s,o){xx(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return s&&rp(t,n,!1),mr(e,t,o);r=t.stateNode,UN.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Po(t,e.child,null,o),t.child=Po(t,null,a,o)):Ot(e,t,a,o),t.memoizedState=r.state,s&&rp(t,n,!0),t.child}function wx(e){var t=e.stateNode;t.pendingContext?np(e,t.pendingContext,t.pendingContext!==t.context):t.context&&np(e,t.context,!1),ih(e,t.containerInfo)}function xp(e,t,n,r,s){return Ao(),eh(s),t.flags|=256,Ot(e,t,n,r),t.child}var Fd={dehydrated:null,treeContext:null,retryLane:0};function zd(e){return{baseLanes:e,cachePool:null,transitions:null}}function bx(e,t,n){var r=t.pendingProps,s=Ze.current,o=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),Ve(Ze,s&1),e===null)return Ad(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):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Cc(i,r,0,null),e=Es(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=zd(n),t.memoizedState=Fd,e):mh(t,i));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return WN(e,t,i,r,a,s,n);if(o){o=r.fallback,i=t.mode,s=e.child,a=s.sibling;var c={mode:"hidden",children:r.children};return!(i&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Yr(s,c),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?o=Yr(a,o):(o=Es(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?zd(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=Fd,r}return o=e.child,e=o.sibling,r=Yr(o,{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 mh(e,t){return t=Cc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Va(e,t,n,r){return r!==null&&eh(r),Po(t,e.child,null,n),e=mh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function WN(e,t,n,r,s,o,i){if(n)return t.flags&256?(t.flags&=-257,r=Pu(Error(B(422))),Va(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,s=t.mode,r=Cc({mode:"visible",children:r.children},s,0,null),o=Es(o,s,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Po(t,e.child,null,i),t.child.memoizedState=zd(i),t.memoizedState=Fd,o);if(!(t.mode&1))return Va(e,t,i,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(B(419)),r=Pu(o,r,void 0),Va(e,t,i,r)}if(a=(i&e.childLanes)!==0,Vt||a){if(r=vt,r!==null){switch(i&-i){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|i)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,hr(e,s),An(r,e,s,-1))}return wh(),r=Pu(Error(B(421))),Va(e,t,i,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=sE.bind(null,e),s._reactRetry=t,null):(e=o.treeContext,rn=Wr(s.nextSibling),sn=t,Ye=!0,Cn=null,e!==null&&(hn[mn++]=lr,hn[mn++]=cr,hn[mn++]=Cs,lr=e.id,cr=e.overflow,Cs=t),t=mh(t,r.children),t.flags|=4096,t)}function wp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Pd(e.return,t,n)}function Ou(e,t,n,r,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=s)}function Sx(e,t,n){var r=t.pendingProps,s=r.revealOrder,o=r.tail;if(Ot(e,t,r.children,n),r=Ze.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&&wp(e,n,t);else if(e.tag===19)wp(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(Ve(Ze,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&&zl(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Ou(t,!1,s,n,o);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&zl(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Ou(t,!0,n,null,o);break;case"together":Ou(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ul(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function mr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ts|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(B(153));if(t.child!==null){for(e=t.child,n=Yr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Yr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function qN(e,t,n){switch(t.tag){case 3:wx(t),Ao();break;case 5:Gv(t);break;case 1:Wt(t.type)&&Ol(t);break;case 4:ih(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;Ve(Dl,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ve(Ze,Ze.current&1),t.flags|=128,null):n&t.child.childLanes?bx(e,t,n):(Ve(Ze,Ze.current&1),e=mr(e,t,n),e!==null?e.sibling:null);Ve(Ze,Ze.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Sx(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Ve(Ze,Ze.current),r)break;return null;case 22:case 23:return t.lanes=0,vx(e,t,n)}return mr(e,t,n)}var Nx,Bd,Ex,jx;Nx=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}};Bd=function(){};Ex=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,gs(Qn.current);var o=null;switch(n){case"input":s=ld(e,s),r=ld(e,r),o=[];break;case"select":s=et({},s,{value:void 0}),r=et({},r,{value:void 0}),o=[];break;case"textarea":s=dd(e,s),r=dd(e,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Al)}hd(n,r);var i;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Oi.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var c=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&c!==a&&(c!=null||a!=null))if(u==="style")if(a){for(i in a)!a.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&a[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(o||(o=[]),o.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(o=o||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Oi.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&qe("scroll",e),o||a===c||(o=[])):(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};jx=function(e,t,n,r){n!==r&&(t.flags|=4)};function ii(e,t){if(!Ye)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 kt(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 KN(e,t,n){var r=t.pendingProps;switch(Xf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return kt(t),null;case 1:return Wt(t.type)&&Pl(),kt(t),null;case 3:return r=t.stateNode,Oo(),Ke(Ut),Ke(Rt),lh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ha(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Cn!==null&&(Gd(Cn),Cn=null))),Bd(e,t),kt(t),null;case 5:ah(t);var s=gs(Wi.current);if(n=t.type,e!==null&&t.stateNode!=null)Ex(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(B(166));return kt(t),null}if(e=gs(Qn.current),Ha(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[qn]=t,r[Vi]=o,e=(t.mode&1)!==0,n){case"dialog":qe("cancel",r),qe("close",r);break;case"iframe":case"object":case"embed":qe("load",r);break;case"video":case"audio":for(s=0;s<gi.length;s++)qe(gi[s],r);break;case"source":qe("error",r);break;case"img":case"image":case"link":qe("error",r),qe("load",r);break;case"details":qe("toggle",r);break;case"input":Tm(r,o),qe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},qe("invalid",r);break;case"textarea":Am(r,o),qe("invalid",r)}hd(n,o),s=null;for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];i==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&Ba(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Ba(r.textContent,a,e),s=["children",""+a]):Oi.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&qe("scroll",r)}switch(n){case"input":Pa(r),Rm(r,o,!0);break;case"textarea":Pa(r),Pm(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Al)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Xy(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[qn]=t,e[Vi]=r,Nx(e,t,!1,!1),t.stateNode=e;e:{switch(i=md(n,r),n){case"dialog":qe("cancel",e),qe("close",e),s=r;break;case"iframe":case"object":case"embed":qe("load",e),s=r;break;case"video":case"audio":for(s=0;s<gi.length;s++)qe(gi[s],e);s=r;break;case"source":qe("error",e),s=r;break;case"img":case"image":case"link":qe("error",e),qe("load",e),s=r;break;case"details":qe("toggle",e),s=r;break;case"input":Tm(e,r),s=ld(e,r),qe("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=et({},r,{value:void 0}),qe("invalid",e);break;case"textarea":Am(e,r),s=dd(e,r),qe("invalid",e);break;default:s=r}hd(n,s),a=s;for(o in a)if(a.hasOwnProperty(o)){var c=a[o];o==="style"?nv(e,c):o==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&ev(e,c)):o==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Ii(e,c):typeof c=="number"&&Ii(e,""+c):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Oi.hasOwnProperty(o)?c!=null&&o==="onScroll"&&qe("scroll",e):c!=null&&Ff(e,o,c,i))}switch(n){case"input":Pa(e),Rm(e,r,!1);break;case"textarea":Pa(e),Pm(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Jr(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?co(e,!!r.multiple,o,!1):r.defaultValue!=null&&co(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Al)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return kt(t),null;case 6:if(e&&t.stateNode!=null)jx(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(B(166));if(n=gs(Wi.current),gs(Qn.current),Ha(t)){if(r=t.stateNode,n=t.memoizedProps,r[qn]=t,(o=r.nodeValue!==n)&&(e=sn,e!==null))switch(e.tag){case 3:Ba(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ba(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[qn]=t,t.stateNode=r}return kt(t),null;case 13:if(Ke(Ze),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ye&&rn!==null&&t.mode&1&&!(t.flags&128))Vv(),Ao(),t.flags|=98560,o=!1;else if(o=Ha(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(B(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(B(317));o[qn]=t}else Ao(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;kt(t),o=!1}else Cn!==null&&(Gd(Cn),Cn=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ze.current&1?pt===0&&(pt=3):wh())),t.updateQueue!==null&&(t.flags|=4),kt(t),null);case 4:return Oo(),Bd(e,t),e===null&&Hi(t.stateNode.containerInfo),kt(t),null;case 10:return rh(t.type._context),kt(t),null;case 17:return Wt(t.type)&&Pl(),kt(t),null;case 19:if(Ke(Ze),o=t.memoizedState,o===null)return kt(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)ii(o,!1);else{if(pt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=zl(e),i!==null){for(t.flags|=128,ii(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ve(Ze,Ze.current&1|2),t.child}e=e.sibling}o.tail!==null&&at()>Mo&&(t.flags|=128,r=!0,ii(o,!1),t.lanes=4194304)}else{if(!r)if(e=zl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ii(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Ye)return kt(t),null}else 2*at()-o.renderingStartTime>Mo&&n!==1073741824&&(t.flags|=128,r=!0,ii(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=at(),t.sibling=null,n=Ze.current,Ve(Ze,r?n&1|2:n&1),t):(kt(t),null);case 22:case 23:return xh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tn&1073741824&&(kt(t),t.subtreeFlags&6&&(t.flags|=8192)):kt(t),null;case 24:return null;case 25:return null}throw Error(B(156,t.tag))}function GN(e,t){switch(Xf(t),t.tag){case 1:return Wt(t.type)&&Pl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Oo(),Ke(Ut),Ke(Rt),lh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ah(t),null;case 13:if(Ke(Ze),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(B(340));Ao()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ke(Ze),null;case 4:return Oo(),null;case 10:return rh(t.type._context),null;case 22:case 23:return xh(),null;case 24:return null;default:return null}}var Ua=!1,_t=!1,YN=typeof WeakSet=="function"?WeakSet:Set,ee=null;function ao(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){st(e,t,r)}else n.current=null}function Hd(e,t,n){try{n()}catch(r){st(e,t,r)}}var bp=!1;function QN(e,t){if(Ed=_l,e=Rv(),Zf(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,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,a=-1,c=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var x;h!==n||s!==0&&h.nodeType!==3||(a=i+s),h!==o||r!==0&&h.nodeType!==3||(c=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(x=h.firstChild)!==null;)f=h,h=x;for(;;){if(h===e)break t;if(f===n&&++u===s&&(a=i),f===o&&++d===r&&(c=i),(x=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=x}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(jd={focusedElem:e,selectionRange:n},_l=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var p=v.memoizedProps,b=v.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?p:Nn(t.type,p),b);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(B(163))}}catch(S){st(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return v=bp,bp=!1,v}function ki(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 o=s.destroy;s.destroy=void 0,o!==void 0&&Hd(t,n,o)}s=s.next}while(s!==r)}}function jc(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 $d(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 kx(e){var t=e.alternate;t!==null&&(e.alternate=null,kx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[qn],delete t[Vi],delete t[_d],delete t[PN],delete t[ON])),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 Cx(e){return e.tag===5||e.tag===3||e.tag===4}function Sp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cx(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 Vd(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=Al));else if(r!==4&&(e=e.child,e!==null))for(Vd(e,t,n),e=e.sibling;e!==null;)Vd(e,t,n),e=e.sibling}function Ud(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(Ud(e,t,n),e=e.sibling;e!==null;)Ud(e,t,n),e=e.sibling}var xt=null,kn=!1;function Sr(e,t,n){for(n=n.child;n!==null;)_x(e,t,n),n=n.sibling}function _x(e,t,n){if(Yn&&typeof Yn.onCommitFiberUnmount=="function")try{Yn.onCommitFiberUnmount(yc,n)}catch{}switch(n.tag){case 5:_t||ao(n,t);case 6:var r=xt,s=kn;xt=null,Sr(e,t,n),xt=r,kn=s,xt!==null&&(kn?(e=xt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xt.removeChild(n.stateNode));break;case 18:xt!==null&&(kn?(e=xt,n=n.stateNode,e.nodeType===8?ku(e.parentNode,n):e.nodeType===1&&ku(e,n),Fi(e)):ku(xt,n.stateNode));break;case 4:r=xt,s=kn,xt=n.stateNode.containerInfo,kn=!0,Sr(e,t,n),xt=r,kn=s;break;case 0:case 11:case 14:case 15:if(!_t&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var o=s,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Hd(n,t,i),s=s.next}while(s!==r)}Sr(e,t,n);break;case 1:if(!_t&&(ao(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){st(n,t,a)}Sr(e,t,n);break;case 21:Sr(e,t,n);break;case 22:n.mode&1?(_t=(r=_t)||n.memoizedState!==null,Sr(e,t,n),_t=r):Sr(e,t,n);break;default:Sr(e,t,n)}}function Np(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new YN),t.forEach(function(r){var s=oE.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function bn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var o=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:xt=a.stateNode,kn=!1;break e;case 3:xt=a.stateNode.containerInfo,kn=!0;break e;case 4:xt=a.stateNode.containerInfo,kn=!0;break e}a=a.return}if(xt===null)throw Error(B(160));_x(o,i,s),xt=null,kn=!1;var c=s.alternate;c!==null&&(c.return=null),s.return=null}catch(u){st(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Tx(t,e),t=t.sibling}function Tx(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(bn(t,e),Fn(e),r&4){try{ki(3,e,e.return),jc(3,e)}catch(p){st(e,e.return,p)}try{ki(5,e,e.return)}catch(p){st(e,e.return,p)}}break;case 1:bn(t,e),Fn(e),r&512&&n!==null&&ao(n,n.return);break;case 5:if(bn(t,e),Fn(e),r&512&&n!==null&&ao(n,n.return),e.flags&32){var s=e.stateNode;try{Ii(s,"")}catch(p){st(e,e.return,p)}}if(r&4&&(s=e.stateNode,s!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,a=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&Zy(s,o),md(a,i);var u=md(a,o);for(i=0;i<c.length;i+=2){var d=c[i],h=c[i+1];d==="style"?nv(s,h):d==="dangerouslySetInnerHTML"?ev(s,h):d==="children"?Ii(s,h):Ff(s,d,h,u)}switch(a){case"input":cd(s,o);break;case"textarea":Jy(s,o);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var x=o.value;x!=null?co(s,!!o.multiple,x,!1):f!==!!o.multiple&&(o.defaultValue!=null?co(s,!!o.multiple,o.defaultValue,!0):co(s,!!o.multiple,o.multiple?[]:"",!1))}s[Vi]=o}catch(p){st(e,e.return,p)}}break;case 6:if(bn(t,e),Fn(e),r&4){if(e.stateNode===null)throw Error(B(162));s=e.stateNode,o=e.memoizedProps;try{s.nodeValue=o}catch(p){st(e,e.return,p)}}break;case 3:if(bn(t,e),Fn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Fi(t.containerInfo)}catch(p){st(e,e.return,p)}break;case 4:bn(t,e),Fn(e);break;case 13:bn(t,e),Fn(e),s=e.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(yh=at())),r&4&&Np(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(_t=(u=_t)||d,bn(t,e),_t=u):bn(t,e),Fn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(ee=e,d=e.child;d!==null;){for(h=ee=d;ee!==null;){switch(f=ee,x=f.child,f.tag){case 0:case 11:case 14:case 15:ki(4,f,f.return);break;case 1:ao(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(p){st(r,n,p)}}break;case 5:ao(f,f.return);break;case 22:if(f.memoizedState!==null){jp(h);continue}}x!==null?(x.return=f,ee=x):jp(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{s=h.stateNode,u?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=h.stateNode,c=h.memoizedProps.style,i=c!=null&&c.hasOwnProperty("display")?c.display:null,a.style.display=tv("display",i))}catch(p){st(e,e.return,p)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(p){st(e,e.return,p)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:bn(t,e),Fn(e),r&4&&Np(e);break;case 21:break;default:bn(t,e),Fn(e)}}function Fn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Cx(n)){var r=n;break e}n=n.return}throw Error(B(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Ii(s,""),r.flags&=-33);var o=Sp(e);Ud(e,o,s);break;case 3:case 4:var i=r.stateNode.containerInfo,a=Sp(e);Vd(e,a,i);break;default:throw Error(B(161))}}catch(c){st(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ZN(e,t,n){ee=e,Rx(e)}function Rx(e,t,n){for(var r=(e.mode&1)!==0;ee!==null;){var s=ee,o=s.child;if(s.tag===22&&r){var i=s.memoizedState!==null||Ua;if(!i){var a=s.alternate,c=a!==null&&a.memoizedState!==null||_t;a=Ua;var u=_t;if(Ua=i,(_t=c)&&!u)for(ee=s;ee!==null;)i=ee,c=i.child,i.tag===22&&i.memoizedState!==null?kp(s):c!==null?(c.return=i,ee=c):kp(s);for(;o!==null;)ee=o,Rx(o),o=o.sibling;ee=s,Ua=a,_t=u}Ep(e)}else s.subtreeFlags&8772&&o!==null?(o.return=s,ee=o):Ep(e)}}function Ep(e){for(;ee!==null;){var t=ee;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:_t||jc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!_t)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:Nn(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&lp(t,o,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}lp(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&Fi(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(B(163))}_t||t.flags&512&&$d(t)}catch(f){st(t,t.return,f)}}if(t===e){ee=null;break}if(n=t.sibling,n!==null){n.return=t.return,ee=n;break}ee=t.return}}function jp(e){for(;ee!==null;){var t=ee;if(t===e){ee=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ee=n;break}ee=t.return}}function kp(e){for(;ee!==null;){var t=ee;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{jc(4,t)}catch(c){st(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(c){st(t,s,c)}}var o=t.return;try{$d(t)}catch(c){st(t,o,c)}break;case 5:var i=t.return;try{$d(t)}catch(c){st(t,i,c)}}}catch(c){st(t,t.return,c)}if(t===e){ee=null;break}var a=t.sibling;if(a!==null){a.return=t.return,ee=a;break}ee=t.return}}var JN=Math.ceil,$l=wr.ReactCurrentDispatcher,ph=wr.ReactCurrentOwner,gn=wr.ReactCurrentBatchConfig,_e=0,vt=null,dt=null,bt=0,tn=0,lo=as(0),pt=0,Yi=null,Ts=0,kc=0,gh=0,Ci=null,$t=null,yh=0,Mo=1/0,or=null,Vl=!1,Wd=null,Kr=null,Wa=!1,zr=null,Ul=0,_i=0,qd=null,dl=-1,fl=0;function Dt(){return _e&6?at():dl!==-1?dl:dl=at()}function Gr(e){return e.mode&1?_e&2&&bt!==0?bt&-bt:MN.transition!==null?(fl===0&&(fl=mv()),fl):(e=Le,e!==0||(e=window.event,e=e===void 0?16:bv(e.type)),e):1}function An(e,t,n,r){if(50<_i)throw _i=0,qd=null,Error(B(185));ha(e,n,r),(!(_e&2)||e!==vt)&&(e===vt&&(!(_e&2)&&(kc|=n),pt===4&&Ar(e,bt)),qt(e,r),n===1&&_e===0&&!(t.mode&1)&&(Mo=at()+500,Sc&&ls()))}function qt(e,t){var n=e.callbackNode;MS(e,t);var r=Cl(e,e===vt?bt:0);if(r===0)n!==null&&Mm(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Mm(n),t===1)e.tag===0?IN(Cp.bind(null,e)):Bv(Cp.bind(null,e)),RN(function(){!(_e&6)&&ls()}),n=null;else{switch(pv(r)){case 1:n=Vf;break;case 4:n=fv;break;case 16:n=kl;break;case 536870912:n=hv;break;default:n=kl}n=Fx(n,Ax.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ax(e,t){if(dl=-1,fl=0,_e&6)throw Error(B(327));var n=e.callbackNode;if(po()&&e.callbackNode!==n)return null;var r=Cl(e,e===vt?bt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Wl(e,r);else{t=r;var s=_e;_e|=2;var o=Ox();(vt!==e||bt!==t)&&(or=null,Mo=at()+500,Ns(e,t));do try{tE();break}catch(a){Px(e,a)}while(!0);nh(),$l.current=o,_e=s,dt!==null?t=0:(vt=null,bt=0,t=pt)}if(t!==0){if(t===2&&(s=xd(e),s!==0&&(r=s,t=Kd(e,s))),t===1)throw n=Yi,Ns(e,0),Ar(e,r),qt(e,at()),n;if(t===6)Ar(e,r);else{if(s=e.current.alternate,!(r&30)&&!XN(s)&&(t=Wl(e,r),t===2&&(o=xd(e),o!==0&&(r=o,t=Kd(e,o))),t===1))throw n=Yi,Ns(e,0),Ar(e,r),qt(e,at()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(B(345));case 2:hs(e,$t,or);break;case 3:if(Ar(e,r),(r&130023424)===r&&(t=yh+500-at(),10<t)){if(Cl(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Dt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Cd(hs.bind(null,e,$t,or),t);break}hs(e,$t,or);break;case 4:if(Ar(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var i=31-Rn(r);o=1<<i,i=t[i],i>s&&(s=i),r&=~o}if(r=s,r=at()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*JN(r/1960))-r,10<r){e.timeoutHandle=Cd(hs.bind(null,e,$t,or),r);break}hs(e,$t,or);break;case 5:hs(e,$t,or);break;default:throw Error(B(329))}}}return qt(e,at()),e.callbackNode===n?Ax.bind(null,e):null}function Kd(e,t){var n=Ci;return e.current.memoizedState.isDehydrated&&(Ns(e,t).flags|=256),e=Wl(e,t),e!==2&&(t=$t,$t=n,t!==null&&Gd(t)),e}function Gd(e){$t===null?$t=e:$t.push.apply($t,e)}function XN(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],o=s.getSnapshot;s=s.value;try{if(!On(o(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ar(e,t){for(t&=~gh,t&=~kc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Rn(t),r=1<<n;e[n]=-1,t&=~r}}function Cp(e){if(_e&6)throw Error(B(327));po();var t=Cl(e,0);if(!(t&1))return qt(e,at()),null;var n=Wl(e,t);if(e.tag!==0&&n===2){var r=xd(e);r!==0&&(t=r,n=Kd(e,r))}if(n===1)throw n=Yi,Ns(e,0),Ar(e,t),qt(e,at()),n;if(n===6)throw Error(B(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,hs(e,$t,or),qt(e,at()),null}function vh(e,t){var n=_e;_e|=1;try{return e(t)}finally{_e=n,_e===0&&(Mo=at()+500,Sc&&ls())}}function Rs(e){zr!==null&&zr.tag===0&&!(_e&6)&&po();var t=_e;_e|=1;var n=gn.transition,r=Le;try{if(gn.transition=null,Le=1,e)return e()}finally{Le=r,gn.transition=n,_e=t,!(_e&6)&&ls()}}function xh(){tn=lo.current,Ke(lo)}function Ns(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,TN(n)),dt!==null)for(n=dt.return;n!==null;){var r=n;switch(Xf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Pl();break;case 3:Oo(),Ke(Ut),Ke(Rt),lh();break;case 5:ah(r);break;case 4:Oo();break;case 13:Ke(Ze);break;case 19:Ke(Ze);break;case 10:rh(r.type._context);break;case 22:case 23:xh()}n=n.return}if(vt=e,dt=e=Yr(e.current,null),bt=tn=t,pt=0,Yi=null,gh=kc=Ts=0,$t=Ci=null,ps!==null){for(t=0;t<ps.length;t++)if(n=ps[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=s,r.next=i}n.pending=r}ps=null}return e}function Px(e,t){do{var n=dt;try{if(nh(),ll.current=Hl,Bl){for(var r=Xe.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Bl=!1}if(_s=0,yt=mt=Xe=null,ji=!1,qi=0,ph.current=null,n===null||n.return===null){pt=1,Yi=t,dt=null;break}e:{var o=e,i=n.return,a=n,c=t;if(t=bt,a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=a,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var x=mp(i);if(x!==null){x.flags&=-257,pp(x,i,a,o,t),x.mode&1&&hp(o,u,t),t=x,c=u;var v=t.updateQueue;if(v===null){var p=new Set;p.add(c),t.updateQueue=p}else v.add(c);break e}else{if(!(t&1)){hp(o,u,t),wh();break e}c=Error(B(426))}}else if(Ye&&a.mode&1){var b=mp(i);if(b!==null){!(b.flags&65536)&&(b.flags|=256),pp(b,i,a,o,t),eh(Io(c,a));break e}}o=c=Io(c,a),pt!==4&&(pt=2),Ci===null?Ci=[o]:Ci.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=px(o,c,t);ap(o,g);break e;case 1:a=c;var m=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof m.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Kr===null||!Kr.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=gx(o,a,t);ap(o,S);break e}}o=o.return}while(o!==null)}Mx(n)}catch(N){t=N,dt===n&&n!==null&&(dt=n=n.return);continue}break}while(!0)}function Ox(){var e=$l.current;return $l.current=Hl,e===null?Hl:e}function wh(){(pt===0||pt===3||pt===2)&&(pt=4),vt===null||!(Ts&268435455)&&!(kc&268435455)||Ar(vt,bt)}function Wl(e,t){var n=_e;_e|=2;var r=Ox();(vt!==e||bt!==t)&&(or=null,Ns(e,t));do try{eE();break}catch(s){Px(e,s)}while(!0);if(nh(),_e=n,$l.current=r,dt!==null)throw Error(B(261));return vt=null,bt=0,pt}function eE(){for(;dt!==null;)Ix(dt)}function tE(){for(;dt!==null&&!kS();)Ix(dt)}function Ix(e){var t=Lx(e.alternate,e,tn);e.memoizedProps=e.pendingProps,t===null?Mx(e):dt=t,ph.current=null}function Mx(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=GN(n,t),n!==null){n.flags&=32767,dt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{pt=6,dt=null;return}}else if(n=KN(n,t,tn),n!==null){dt=n;return}if(t=t.sibling,t!==null){dt=t;return}dt=t=e}while(t!==null);pt===0&&(pt=5)}function hs(e,t,n){var r=Le,s=gn.transition;try{gn.transition=null,Le=1,nE(e,t,n,r)}finally{gn.transition=s,Le=r}return null}function nE(e,t,n,r){do po();while(zr!==null);if(_e&6)throw Error(B(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(B(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(DS(e,o),e===vt&&(dt=vt=null,bt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Wa||(Wa=!0,Fx(kl,function(){return po(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=gn.transition,gn.transition=null;var i=Le;Le=1;var a=_e;_e|=4,ph.current=null,QN(e,n),Tx(n,e),SN(jd),_l=!!Ed,jd=Ed=null,e.current=n,ZN(n),CS(),_e=a,Le=i,gn.transition=o}else e.current=n;if(Wa&&(Wa=!1,zr=e,Ul=s),o=e.pendingLanes,o===0&&(Kr=null),RS(n.stateNode),qt(e,at()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Vl)throw Vl=!1,e=Wd,Wd=null,e;return Ul&1&&e.tag!==0&&po(),o=e.pendingLanes,o&1?e===qd?_i++:(_i=0,qd=e):_i=0,ls(),null}function po(){if(zr!==null){var e=pv(Ul),t=gn.transition,n=Le;try{if(gn.transition=null,Le=16>e?16:e,zr===null)var r=!1;else{if(e=zr,zr=null,Ul=0,_e&6)throw Error(B(331));var s=_e;for(_e|=4,ee=e.current;ee!==null;){var o=ee,i=o.child;if(ee.flags&16){var a=o.deletions;if(a!==null){for(var c=0;c<a.length;c++){var u=a[c];for(ee=u;ee!==null;){var d=ee;switch(d.tag){case 0:case 11:case 15:ki(8,d,o)}var h=d.child;if(h!==null)h.return=d,ee=h;else for(;ee!==null;){d=ee;var f=d.sibling,x=d.return;if(kx(d),d===u){ee=null;break}if(f!==null){f.return=x,ee=f;break}ee=x}}}var v=o.alternate;if(v!==null){var p=v.child;if(p!==null){v.child=null;do{var b=p.sibling;p.sibling=null,p=b}while(p!==null)}}ee=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,ee=i;else e:for(;ee!==null;){if(o=ee,o.flags&2048)switch(o.tag){case 0:case 11:case 15:ki(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,ee=g;break e}ee=o.return}}var m=e.current;for(ee=m;ee!==null;){i=ee;var w=i.child;if(i.subtreeFlags&2064&&w!==null)w.return=i,ee=w;else e:for(i=m;ee!==null;){if(a=ee,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:jc(9,a)}}catch(N){st(a,a.return,N)}if(a===i){ee=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,ee=S;break e}ee=a.return}}if(_e=s,ls(),Yn&&typeof Yn.onPostCommitFiberRoot=="function")try{Yn.onPostCommitFiberRoot(yc,e)}catch{}r=!0}return r}finally{Le=n,gn.transition=t}}return!1}function _p(e,t,n){t=Io(n,t),t=px(e,t,1),e=qr(e,t,1),t=Dt(),e!==null&&(ha(e,1,t),qt(e,t))}function st(e,t,n){if(e.tag===3)_p(e,e,n);else for(;t!==null;){if(t.tag===3){_p(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Kr===null||!Kr.has(r))){e=Io(n,e),e=gx(t,e,1),t=qr(t,e,1),e=Dt(),t!==null&&(ha(t,1,e),qt(t,e));break}}t=t.return}}function rE(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Dt(),e.pingedLanes|=e.suspendedLanes&n,vt===e&&(bt&n)===n&&(pt===4||pt===3&&(bt&130023424)===bt&&500>at()-yh?Ns(e,0):gh|=n),qt(e,t)}function Dx(e,t){t===0&&(e.mode&1?(t=Ma,Ma<<=1,!(Ma&130023424)&&(Ma=4194304)):t=1);var n=Dt();e=hr(e,t),e!==null&&(ha(e,t,n),qt(e,n))}function sE(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dx(e,n)}function oE(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(B(314))}r!==null&&r.delete(t),Dx(e,n)}var Lx;Lx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ut.current)Vt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Vt=!1,qN(e,t,n);Vt=!!(e.flags&131072)}else Vt=!1,Ye&&t.flags&1048576&&Hv(t,Ml,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ul(e,t),e=t.pendingProps;var s=Ro(t,Rt.current);mo(t,n),s=uh(null,t,r,e,s,n);var o=dh();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,Wt(r)?(o=!0,Ol(t)):o=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,oh(t),s.updater=Ec,t.stateNode=s,s._reactInternals=t,Id(t,r,e,n),t=Ld(null,t,r,!0,o,n)):(t.tag=0,Ye&&o&&Jf(t),Ot(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ul(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=aE(r),e=Nn(r,e),s){case 0:t=Dd(null,t,r,e,n);break e;case 1:t=vp(null,t,r,e,n);break e;case 11:t=gp(null,t,r,e,n);break e;case 14:t=yp(null,t,r,Nn(r.type,e),n);break e}throw Error(B(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Nn(r,s),Dd(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Nn(r,s),vp(e,t,r,s,n);case 3:e:{if(wx(t),e===null)throw Error(B(387));r=t.pendingProps,o=t.memoizedState,s=o.element,Kv(e,t),Fl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){s=Io(Error(B(423)),t),t=xp(e,t,r,n,s);break e}else if(r!==s){s=Io(Error(B(424)),t),t=xp(e,t,r,n,s);break e}else for(rn=Wr(t.stateNode.containerInfo.firstChild),sn=t,Ye=!0,Cn=null,n=Wv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ao(),r===s){t=mr(e,t,n);break e}Ot(e,t,r,n)}t=t.child}return t;case 5:return Gv(t),e===null&&Ad(t),r=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,kd(r,s)?i=null:o!==null&&kd(r,o)&&(t.flags|=32),xx(e,t),Ot(e,t,i,n),t.child;case 6:return e===null&&Ad(t),null;case 13:return bx(e,t,n);case 4:return ih(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Po(t,null,r,n):Ot(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Nn(r,s),gp(e,t,r,s,n);case 7:return Ot(e,t,t.pendingProps,n),t.child;case 8:return Ot(e,t,t.pendingProps.children,n),t.child;case 12:return Ot(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,o=t.memoizedProps,i=s.value,Ve(Dl,r._currentValue),r._currentValue=i,o!==null)if(On(o.value,i)){if(o.children===s.children&&!Ut.current){t=mr(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=ur(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Pd(o.return,n,t),a.lanes|=n;break}c=c.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(B(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Pd(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Ot(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,mo(t,n),s=yn(s),r=r(s),t.flags|=1,Ot(e,t,r,n),t.child;case 14:return r=t.type,s=Nn(r,t.pendingProps),s=Nn(r.type,s),yp(e,t,r,s,n);case 15:return yx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Nn(r,s),ul(e,t),t.tag=1,Wt(r)?(e=!0,Ol(t)):e=!1,mo(t,n),mx(t,r,s),Id(t,r,s,n),Ld(null,t,r,!0,e,n);case 19:return Sx(e,t,n);case 22:return vx(e,t,n)}throw Error(B(156,t.tag))};function Fx(e,t){return dv(e,t)}function iE(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 pn(e,t,n,r){return new iE(e,t,n,r)}function bh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function aE(e){if(typeof e=="function")return bh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bf)return 11;if(e===Hf)return 14}return 2}function Yr(e,t){var n=e.alternate;return n===null?(n=pn(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 hl(e,t,n,r,s,o){var i=2;if(r=e,typeof e=="function")bh(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Js:return Es(n.children,s,o,t);case zf:i=8,s|=8;break;case sd:return e=pn(12,n,t,s|2),e.elementType=sd,e.lanes=o,e;case od:return e=pn(13,n,t,s),e.elementType=od,e.lanes=o,e;case id:return e=pn(19,n,t,s),e.elementType=id,e.lanes=o,e;case Gy:return Cc(n,s,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qy:i=10;break e;case Ky:i=9;break e;case Bf:i=11;break e;case Hf:i=14;break e;case Cr:i=16,r=null;break e}throw Error(B(130,e==null?e:typeof e,""))}return t=pn(i,n,t,s),t.elementType=e,t.type=r,t.lanes=o,t}function Es(e,t,n,r){return e=pn(7,e,r,t),e.lanes=n,e}function Cc(e,t,n,r){return e=pn(22,e,r,t),e.elementType=Gy,e.lanes=n,e.stateNode={isHidden:!1},e}function Iu(e,t,n){return e=pn(6,e,null,t),e.lanes=n,e}function Mu(e,t,n){return t=pn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lE(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=pu(0),this.expirationTimes=pu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pu(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Sh(e,t,n,r,s,o,i,a,c){return e=new lE(e,t,n,a,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=pn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},oh(o),e}function cE(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Zs,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function zx(e){if(!e)return Xr;e=e._reactInternals;e:{if(zs(e)!==e||e.tag!==1)throw Error(B(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Wt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(B(171))}if(e.tag===1){var n=e.type;if(Wt(n))return zv(e,n,t)}return t}function Bx(e,t,n,r,s,o,i,a,c){return e=Sh(n,r,!0,e,s,o,i,a,c),e.context=zx(null),n=e.current,r=Dt(),s=Gr(n),o=ur(r,s),o.callback=t??null,qr(n,o,s),e.current.lanes=s,ha(e,s,r),qt(e,r),e}function _c(e,t,n,r){var s=t.current,o=Dt(),i=Gr(s);return n=zx(n),t.context===null?t.context=n:t.pendingContext=n,t=ur(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=qr(s,t,i),e!==null&&(An(e,s,i,o),al(e,s,i)),i}function ql(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Tp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Nh(e,t){Tp(e,t),(e=e.alternate)&&Tp(e,t)}function uE(){return null}var Hx=typeof reportError=="function"?reportError:function(e){console.error(e)};function Eh(e){this._internalRoot=e}Tc.prototype.render=Eh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(B(409));_c(e,t,null,null)};Tc.prototype.unmount=Eh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Rs(function(){_c(null,e,null,null)}),t[fr]=null}};function Tc(e){this._internalRoot=e}Tc.prototype.unstable_scheduleHydration=function(e){if(e){var t=vv();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rr.length&&t!==0&&t<Rr[n].priority;n++);Rr.splice(n,0,e),n===0&&wv(e)}};function jh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Rc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Rp(){}function dE(e,t,n,r,s){if(s){if(typeof r=="function"){var o=r;r=function(){var u=ql(i);o.call(u)}}var i=Bx(t,r,e,0,null,!1,!1,"",Rp);return e._reactRootContainer=i,e[fr]=i.current,Hi(e.nodeType===8?e.parentNode:e),Rs(),i}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=ql(c);a.call(u)}}var c=Sh(e,0,!1,null,null,!1,!1,"",Rp);return e._reactRootContainer=c,e[fr]=c.current,Hi(e.nodeType===8?e.parentNode:e),Rs(function(){_c(t,c,n,r)}),c}function Ac(e,t,n,r,s){var o=n._reactRootContainer;if(o){var i=o;if(typeof s=="function"){var a=s;s=function(){var c=ql(i);a.call(c)}}_c(t,i,e,s)}else i=dE(n,t,e,s,r);return ql(i)}gv=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pi(t.pendingLanes);n!==0&&(Uf(t,n|1),qt(t,at()),!(_e&6)&&(Mo=at()+500,ls()))}break;case 13:Rs(function(){var r=hr(e,1);if(r!==null){var s=Dt();An(r,e,1,s)}}),Nh(e,1)}};Wf=function(e){if(e.tag===13){var t=hr(e,134217728);if(t!==null){var n=Dt();An(t,e,134217728,n)}Nh(e,134217728)}};yv=function(e){if(e.tag===13){var t=Gr(e),n=hr(e,t);if(n!==null){var r=Dt();An(n,e,t,r)}Nh(e,t)}};vv=function(){return Le};xv=function(e,t){var n=Le;try{return Le=e,t()}finally{Le=n}};gd=function(e,t,n){switch(t){case"input":if(cd(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=bc(r);if(!s)throw Error(B(90));Qy(r),cd(r,s)}}}break;case"textarea":Jy(e,n);break;case"select":t=n.value,t!=null&&co(e,!!n.multiple,t,!1)}};ov=vh;iv=Rs;var fE={usingClientEntryPoint:!1,Events:[pa,no,bc,rv,sv,vh]},ai={findFiberByHostInstance:ms,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},hE={bundleType:ai.bundleType,version:ai.version,rendererPackageName:ai.rendererPackageName,rendererConfig:ai.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:wr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=cv(e),e===null?null:e.stateNode},findFiberByHostInstance:ai.findFiberByHostInstance||uE,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var qa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qa.isDisabled&&qa.supportsFiber)try{yc=qa.inject(hE),Yn=qa}catch{}}un.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fE;un.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!jh(t))throw Error(B(200));return cE(e,t,null,n)};un.createRoot=function(e,t){if(!jh(e))throw Error(B(299));var n=!1,r="",s=Hx;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Sh(e,1,!1,null,null,n,!1,r,s),e[fr]=t.current,Hi(e.nodeType===8?e.parentNode:e),new Eh(t)};un.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(B(188)):(e=Object.keys(e).join(","),Error(B(268,e)));return e=cv(t),e=e===null?null:e.stateNode,e};un.flushSync=function(e){return Rs(e)};un.hydrate=function(e,t,n){if(!Rc(t))throw Error(B(200));return Ac(null,e,t,!0,n)};un.hydrateRoot=function(e,t,n){if(!jh(e))throw Error(B(405));var r=n!=null&&n.hydratedSources||null,s=!1,o="",i=Hx;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Bx(t,null,e,1,n??null,s,!1,o,i),e[fr]=t.current,Hi(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Tc(t)};un.render=function(e,t,n){if(!Rc(t))throw Error(B(200));return Ac(null,e,t,!1,n)};un.unmountComponentAtNode=function(e){if(!Rc(e))throw Error(B(40));return e._reactRootContainer?(Rs(function(){Ac(null,null,e,!1,function(){e._reactRootContainer=null,e[fr]=null})}),!0):!1};un.unstable_batchedUpdates=vh;un.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Rc(n))throw Error(B(200));if(e==null||e._reactInternals===void 0)throw Error(B(38));return Ac(e,t,n,!1,r)};un.version="18.3.1-next-f1338f8080-20240426";function $x(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($x)}catch(e){console.error(e)}}$x(),$y.exports=un;var Bs=$y.exports;const Vx=Ty(Bs);var Ux,Ap=Bs;Ux=Ap.createRoot,Ap.hydrateRoot;const mE=1,pE=1e6;let Du=0;function gE(){return Du=(Du+1)%Number.MAX_SAFE_INTEGER,Du.toString()}const Lu=new Map,Pp=e=>{if(Lu.has(e))return;const t=setTimeout(()=>{Lu.delete(e),Ti({type:"REMOVE_TOAST",toastId:e})},pE);Lu.set(e,t)},yE=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,mE)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Pp(n):e.toasts.forEach(r=>{Pp(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ml=[];let pl={toasts:[]};function Ti(e){pl=yE(pl,e),ml.forEach(t=>{t(pl)})}function Qi({...e}){const t=gE(),n=s=>Ti({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>Ti({type:"DISMISS_TOAST",toastId:t});return Ti({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function ya(){const[e,t]=y.useState(pl);return y.useEffect(()=>(ml.push(t),()=>{const n=ml.indexOf(t);n>-1&&ml.splice(n,1)}),[e]),{...e,toast:Qi,dismiss:n=>Ti({type:"DISMISS_TOAST",toastId:n})}}function ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function vE(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Wx(...e){return t=>e.forEach(n=>vE(n,t))}function Ge(...e){return y.useCallback(Wx(...e),e)}function xE(e,t=[]){let n=[];function r(o,i){const a=y.createContext(i),c=n.length;n=[...n,i];function u(h){const{scope:f,children:x,...v}=h,p=(f==null?void 0:f[e][c])||a,b=y.useMemo(()=>v,Object.values(v));return l.jsx(p.Provider,{value:b,children:x})}function d(h,f){const x=(f==null?void 0:f[e][c])||a,v=y.useContext(x);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,d]}const s=()=>{const o=n.map(i=>y.createContext(i));return function(a){const c=(a==null?void 0:a[e])||o;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return s.scopeName=e,[r,wE(s,...t)]}function wE(...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(o){const i=r.reduce((a,{useScope:c,scopeName:u})=>{const h=c(o)[`__scope${u}`];return{...a,...h}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var As=y.forwardRef((e,t)=>{const{children:n,...r}=e,s=y.Children.toArray(n),o=s.find(bE);if(o){const i=o.props.children,a=s.map(c=>c===o?y.Children.count(i)>1?y.Children.only(null):y.isValidElement(i)?i.props.children:null:c);return l.jsx(Yd,{...r,ref:t,children:y.isValidElement(i)?y.cloneElement(i,void 0,a):null})}return l.jsx(Yd,{...r,ref:t,children:n})});As.displayName="Slot";var Yd=y.forwardRef((e,t)=>{const{children:n,...r}=e;if(y.isValidElement(n)){const s=NE(n);return y.cloneElement(n,{...SE(r,n.props),ref:t?Wx(t,s):s})}return y.Children.count(n)>1?y.Children.only(null):null});Yd.displayName="SlotClone";var qx=({children:e})=>l.jsx(l.Fragment,{children:e});function bE(e){return y.isValidElement(e)&&e.type===qx}function SE(e,t){const n={...t};for(const r in t){const s=e[r],o=t[r];/^on[A-Z]/.test(r)?s&&o?n[r]=(...a)=>{o(...a),s(...a)}:s&&(n[r]=s):r==="style"?n[r]={...s,...o}:r==="className"&&(n[r]=[s,o].filter(Boolean).join(" "))}return{...e,...n}}function NE(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Kx(e){const t=e+"CollectionProvider",[n,r]=xE(t),[s,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=x=>{const{scope:v,children:p}=x,b=F.useRef(null),g=F.useRef(new Map).current;return l.jsx(s,{scope:v,itemMap:g,collectionRef:b,children:p})};i.displayName=t;const a=e+"CollectionSlot",c=F.forwardRef((x,v)=>{const{scope:p,children:b}=x,g=o(a,p),m=Ge(v,g.collectionRef);return l.jsx(As,{ref:m,children:b})});c.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=F.forwardRef((x,v)=>{const{scope:p,children:b,...g}=x,m=F.useRef(null),w=Ge(v,m),S=o(u,p);return F.useEffect(()=>(S.itemMap.set(m,{ref:m,...g}),()=>void S.itemMap.delete(m))),l.jsx(As,{[d]:"",ref:w,children:b})});h.displayName=u;function f(x){const v=o(e+"CollectionConsumer",x);return F.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const g=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((S,N)=>g.indexOf(S.ref.current)-g.indexOf(N.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:c,ItemSlot:h},f,r]}function EE(e,t){const n=y.createContext(t),r=o=>{const{children:i,...a}=o,c=y.useMemo(()=>a,Object.values(a));return l.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function s(o){const i=y.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,s]}function Pc(e,t=[]){let n=[];function r(o,i){const a=y.createContext(i),c=n.length;n=[...n,i];const u=h=>{var g;const{scope:f,children:x,...v}=h,p=((g=f==null?void 0:f[e])==null?void 0:g[c])||a,b=y.useMemo(()=>v,Object.values(v));return l.jsx(p.Provider,{value:b,children:x})};u.displayName=o+"Provider";function d(h,f){var p;const x=((p=f==null?void 0:f[e])==null?void 0:p[c])||a,v=y.useContext(x);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${o}\``)}return[u,d]}const s=()=>{const o=n.map(i=>y.createContext(i));return function(a){const c=(a==null?void 0:a[e])||o;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return s.scopeName=e,[r,jE(s,...t)]}function jE(...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(o){const i=r.reduce((a,{useScope:c,scopeName:u})=>{const h=c(o)[`__scope${u}`];return{...a,...h}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var kE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Te=kE.reduce((e,t)=>{const n=y.forwardRef((r,s)=>{const{asChild:o,...i}=r,a=o?As:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(a,{...i,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Gx(e,t){e&&Bs.flushSync(()=>e.dispatchEvent(t))}function ln(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function CE(e,t=globalThis==null?void 0:globalThis.document){const n=ln(e);y.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var _E="DismissableLayer",Qd="dismissableLayer.update",TE="dismissableLayer.pointerDownOutside",RE="dismissableLayer.focusOutside",Op,Yx=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),va=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:i,onDismiss:a,...c}=e,u=y.useContext(Yx),[d,h]=y.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=y.useState({}),v=Ge(t,j=>h(j)),p=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=p.indexOf(b),m=d?p.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,S=m>=g,N=PE(j=>{const C=j.target,P=[...u.branches].some(D=>D.contains(C));!S||P||(s==null||s(j),i==null||i(j),j.defaultPrevented||a==null||a())},f),k=OE(j=>{const C=j.target;[...u.branches].some(D=>D.contains(C))||(o==null||o(j),i==null||i(j),j.defaultPrevented||a==null||a())},f);return CE(j=>{m===u.layers.size-1&&(r==null||r(j),!j.defaultPrevented&&a&&(j.preventDefault(),a()))},f),y.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Op=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ip(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Op)}},[d,f,n,u]),y.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ip())},[d,u]),y.useEffect(()=>{const j=()=>x({});return document.addEventListener(Qd,j),()=>document.removeEventListener(Qd,j)},[]),l.jsx(Te.div,{...c,ref:v,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:ve(e.onFocusCapture,k.onFocusCapture),onBlurCapture:ve(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ve(e.onPointerDownCapture,N.onPointerDownCapture)})});va.displayName=_E;var AE="DismissableLayerBranch",Qx=y.forwardRef((e,t)=>{const n=y.useContext(Yx),r=y.useRef(null),s=Ge(t,r);return y.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),l.jsx(Te.div,{...e,ref:s})});Qx.displayName=AE;function PE(e,t=globalThis==null?void 0:globalThis.document){const n=ln(e),r=y.useRef(!1),s=y.useRef(()=>{});return y.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let c=function(){Zx(TE,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function OE(e,t=globalThis==null?void 0:globalThis.document){const n=ln(e),r=y.useRef(!1);return y.useEffect(()=>{const s=o=>{o.target&&!r.current&&Zx(RE,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ip(){const e=new CustomEvent(Qd);document.dispatchEvent(e)}function Zx(e,t,n,{discrete:r}){const s=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Gx(s,o):s.dispatchEvent(o)}var IE=va,ME=Qx,At=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},DE="Portal",Oc=y.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,o]=y.useState(!1);At(()=>o(!0),[]);const i=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Vx.createPortal(l.jsx(Te.div,{...r,ref:t}),i):null});Oc.displayName=DE;function LE(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var Wo=e=>{const{present:t,children:n}=e,r=FE(t),s=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),o=Ge(r.ref,zE(s));return typeof n=="function"||r.isPresent?y.cloneElement(s,{ref:o}):null};Wo.displayName="Presence";function FE(e){const[t,n]=y.useState(),r=y.useRef({}),s=y.useRef(e),o=y.useRef("none"),i=e?"mounted":"unmounted",[a,c]=LE(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const u=Ka(r.current);o.current=a==="mounted"?u:"none"},[a]),At(()=>{const u=r.current,d=s.current;if(d!==e){const f=o.current,x=Ka(u);e?c("MOUNT"):x==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&f!==x?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),At(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,h=x=>{const p=Ka(r.current).includes(x.animationName);if(x.target===t&&p&&(c("ANIMATION_END"),!s.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=x=>{x.target===t&&(o.current=Ka(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Ka(e){return(e==null?void 0:e.animationName)||"none"}function zE(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Kl({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,s]=BE({defaultProp:t,onChange:n}),o=e!==void 0,i=o?e:r,a=ln(n),c=y.useCallback(u=>{if(o){const h=typeof u=="function"?u(e):u;h!==e&&a(h)}else s(u)},[o,e,s,a]);return[i,c]}function BE({defaultProp:e,onChange:t}){const n=y.useState(e),[r]=n,s=y.useRef(r),o=ln(t);return y.useEffect(()=>{s.current!==r&&(o(r),s.current=r)},[r,s,o]),n}var HE="VisuallyHidden",xa=y.forwardRef((e,t)=>l.jsx(Te.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));xa.displayName=HE;var $E=xa,kh="ToastProvider",[Ch,VE,UE]=Kx("Toast"),[Jx,f4]=Pc("Toast",[UE]),[WE,Ic]=Jx(kh),Xx=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:i}=e,[a,c]=y.useState(null),[u,d]=y.useState(0),h=y.useRef(!1),f=y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${kh}\`. Expected non-empty \`string\`.`),l.jsx(Ch.Provider,{scope:t,children:l.jsx(WE,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:o,toastCount:u,viewport:a,onViewportChange:c,onToastAdd:y.useCallback(()=>d(x=>x+1),[]),onToastRemove:y.useCallback(()=>d(x=>x-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:i})})};Xx.displayName=kh;var e0="ToastViewport",qE=["F8"],Zd="toast.viewportPause",Jd="toast.viewportResume",t0=y.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=qE,label:s="Notifications ({hotkey})",...o}=e,i=Ic(e0,n),a=VE(n),c=y.useRef(null),u=y.useRef(null),d=y.useRef(null),h=y.useRef(null),f=Ge(t,h,i.onViewportChange),x=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=i.toastCount>0;y.useEffect(()=>{const b=g=>{var w;r.length!==0&&r.every(S=>g[S]||g.code===S)&&((w=h.current)==null||w.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),y.useEffect(()=>{const b=c.current,g=h.current;if(v&&b&&g){const m=()=>{if(!i.isClosePausedRef.current){const k=new CustomEvent(Zd);g.dispatchEvent(k),i.isClosePausedRef.current=!0}},w=()=>{if(i.isClosePausedRef.current){const k=new CustomEvent(Jd);g.dispatchEvent(k),i.isClosePausedRef.current=!1}},S=k=>{!b.contains(k.relatedTarget)&&w()},N=()=>{b.contains(document.activeElement)||w()};return b.addEventListener("focusin",m),b.addEventListener("focusout",S),b.addEventListener("pointermove",m),b.addEventListener("pointerleave",N),window.addEventListener("blur",m),window.addEventListener("focus",w),()=>{b.removeEventListener("focusin",m),b.removeEventListener("focusout",S),b.removeEventListener("pointermove",m),b.removeEventListener("pointerleave",N),window.removeEventListener("blur",m),window.removeEventListener("focus",w)}}},[v,i.isClosePausedRef]);const p=y.useCallback(({tabbingDirection:b})=>{const m=a().map(w=>{const S=w.ref.current,N=[S,...oj(S)];return b==="forwards"?N:N.reverse()});return(b==="forwards"?m.reverse():m).flat()},[a]);return y.useEffect(()=>{const b=h.current;if(b){const g=m=>{var N,k,j;const w=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!w){const C=document.activeElement,P=m.shiftKey;if(m.target===b&&P){(N=u.current)==null||N.focus();return}const O=p({tabbingDirection:P?"backwards":"forwards"}),V=O.findIndex(I=>I===C);Fu(O.slice(V+1))?m.preventDefault():P?(k=u.current)==null||k.focus():(j=d.current)==null||j.focus()}};return b.addEventListener("keydown",g),()=>b.removeEventListener("keydown",g)}},[a,p]),l.jsxs(ME,{ref:c,role:"region","aria-label":s.replace("{hotkey}",x),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&l.jsx(Xd,{ref:u,onFocusFromOutsideViewport:()=>{const b=p({tabbingDirection:"forwards"});Fu(b)}}),l.jsx(Ch.Slot,{scope:n,children:l.jsx(Te.ol,{tabIndex:-1,...o,ref:f})}),v&&l.jsx(Xd,{ref:d,onFocusFromOutsideViewport:()=>{const b=p({tabbingDirection:"backwards"});Fu(b)}})]})});t0.displayName=e0;var n0="ToastFocusProxy",Xd=y.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,o=Ic(n0,n);return l.jsx(xa,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const a=i.relatedTarget;!((u=o.viewport)!=null&&u.contains(a))&&r()}})});Xd.displayName=n0;var Mc="Toast",KE="toast.swipeStart",GE="toast.swipeMove",YE="toast.swipeCancel",QE="toast.swipeEnd",r0=y.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:o,...i}=e,[a=!0,c]=Kl({prop:r,defaultProp:s,onChange:o});return l.jsx(Wo,{present:n||a,children:l.jsx(XE,{open:a,...i,ref:t,onClose:()=>c(!1),onPause:ln(e.onPause),onResume:ln(e.onResume),onSwipeStart:ve(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ve(e.onSwipeMove,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:ve(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ve(e.onSwipeEnd,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),c(!1)})})})});r0.displayName=Mc;var[ZE,JE]=Jx(Mc,{onClose(){}}),XE=y.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:o,onClose:i,onEscapeKeyDown:a,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:f,onSwipeEnd:x,...v}=e,p=Ic(Mc,n),[b,g]=y.useState(null),m=Ge(t,I=>g(I)),w=y.useRef(null),S=y.useRef(null),N=s||p.duration,k=y.useRef(0),j=y.useRef(N),C=y.useRef(0),{onToastAdd:P,onToastRemove:D}=p,z=ln(()=>{var Y;(b==null?void 0:b.contains(document.activeElement))&&((Y=p.viewport)==null||Y.focus()),i()}),O=y.useCallback(I=>{!I||I===1/0||(window.clearTimeout(C.current),k.current=new Date().getTime(),C.current=window.setTimeout(z,I))},[z]);y.useEffect(()=>{const I=p.viewport;if(I){const Y=()=>{O(j.current),u==null||u()},W=()=>{const X=new Date().getTime()-k.current;j.current=j.current-X,window.clearTimeout(C.current),c==null||c()};return I.addEventListener(Zd,W),I.addEventListener(Jd,Y),()=>{I.removeEventListener(Zd,W),I.removeEventListener(Jd,Y)}}},[p.viewport,N,c,u,O]),y.useEffect(()=>{o&&!p.isClosePausedRef.current&&O(N)},[o,N,p.isClosePausedRef,O]),y.useEffect(()=>(P(),()=>D()),[P,D]);const V=y.useMemo(()=>b?u0(b):null,[b]);return p.viewport?l.jsxs(l.Fragment,{children:[V&&l.jsx(ej,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:V}),l.jsx(ZE,{scope:n,onClose:z,children:Bs.createPortal(l.jsx(Ch.ItemSlot,{scope:n,children:l.jsx(IE,{asChild:!0,onEscapeKeyDown:ve(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||z(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:l.jsx(Te.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":p.swipeDirection,...v,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ve(e.onKeyDown,I=>{I.key==="Escape"&&(a==null||a(I.nativeEvent),I.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,z()))}),onPointerDown:ve(e.onPointerDown,I=>{I.button===0&&(w.current={x:I.clientX,y:I.clientY})}),onPointerMove:ve(e.onPointerMove,I=>{if(!w.current)return;const Y=I.clientX-w.current.x,W=I.clientY-w.current.y,X=!!S.current,_=["left","right"].includes(p.swipeDirection),L=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,Q=_?L(0,Y):0,q=_?0:L(0,W),ne=I.pointerType==="touch"?10:2,le={x:Q,y:q},pe={originalEvent:I,delta:le};X?(S.current=le,Ga(GE,h,pe,{discrete:!1})):Mp(le,p.swipeDirection,ne)?(S.current=le,Ga(KE,d,pe,{discrete:!1}),I.target.setPointerCapture(I.pointerId)):(Math.abs(Y)>ne||Math.abs(W)>ne)&&(w.current=null)}),onPointerUp:ve(e.onPointerUp,I=>{const Y=S.current,W=I.target;if(W.hasPointerCapture(I.pointerId)&&W.releasePointerCapture(I.pointerId),S.current=null,w.current=null,Y){const X=I.currentTarget,_={originalEvent:I,delta:Y};Mp(Y,p.swipeDirection,p.swipeThreshold)?Ga(QE,x,_,{discrete:!0}):Ga(YE,f,_,{discrete:!0}),X.addEventListener("click",L=>L.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),ej=e=>{const{__scopeToast:t,children:n,...r}=e,s=Ic(Mc,t),[o,i]=y.useState(!1),[a,c]=y.useState(!1);return rj(()=>i(!0)),y.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:l.jsx(Oc,{asChild:!0,children:l.jsx(xa,{...r,children:o&&l.jsxs(l.Fragment,{children:[s.label," ",n]})})})},tj="ToastTitle",s0=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsx(Te.div,{...r,ref:t})});s0.displayName=tj;var nj="ToastDescription",o0=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsx(Te.div,{...r,ref:t})});o0.displayName=nj;var i0="ToastAction",a0=y.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?l.jsx(c0,{altText:n,asChild:!0,children:l.jsx(_h,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${i0}\`. Expected non-empty \`string\`.`),null)});a0.displayName=i0;var l0="ToastClose",_h=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=JE(l0,n);return l.jsx(c0,{asChild:!0,children:l.jsx(Te.button,{type:"button",...r,ref:t,onClick:ve(e.onClick,s.onClose)})})});_h.displayName=l0;var c0=y.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return l.jsx(Te.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function u0(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),sj(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!s)if(o){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...u0(r))}}),t}function Ga(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Gx(s,o):s.dispatchEvent(o)}var Mp=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),o=r>s;return t==="left"||t==="right"?o&&r>n:!o&&s>n};function rj(e=()=>{}){const t=ln(e);At(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function sj(e){return e.nodeType===e.ELEMENT_NODE}function oj(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Fu(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var ij=Xx,d0=t0,f0=r0,h0=s0,m0=o0,p0=a0,g0=_h;function y0(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;t<s;t++)e[t]&&(n=y0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function v0(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=y0(e))&&(r&&(r+=" "),r+=t);return r}const Dp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Lp=v0,Th=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Lp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:o}=t,i=Object.keys(s).map(u=>{const d=n==null?void 0:n[u],h=o==null?void 0:o[u];if(d===null)return null;const f=Dp(d)||Dp(h);return s[u][f]}),a=n&&Object.entries(n).reduce((u,d)=>{let[h,f]=d;return f===void 0||(u[h]=f),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:h,className:f,...x}=d;return Object.entries(x).every(v=>{let[p,b]=v;return Array.isArray(b)?b.includes({...o,...a}[p]):{...o,...a}[p]===b})?[...u,h,f]:u},[]);return Lp(e,i,c,n==null?void 0:n.class,n==null?void 0:n.className)};/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const aj=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),x0=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var lj={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cj=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:o,iconNode:i,...a},c)=>y.createElement("svg",{ref:c,...lj,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:x0("lucide",s),...a},[...i.map(([u,d])=>y.createElement(u,d)),...Array.isArray(o)?o:[o]]));/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fe=(e,t)=>{const n=y.forwardRef(({className:r,...s},o)=>y.createElement(cj,{ref:o,iconNode:t,className:x0(`lucide-${aj(e)}`,r),...s}));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const w0=Fe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Rh=Fe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fp=Fe("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const b0=Fe("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uj=Fe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ah=Fe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const S0=Fe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dj=Fe("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fj=Fe("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hj=Fe("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ph=Fe("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Dc=Fe("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mj=Fe("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pj=Fe("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gj=Fe("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const N0=Fe("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yj=Fe("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vj=Fe("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const E0=Fe("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const j0=Fe("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xj=Fe("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wj=Fe("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zp=Fe("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bj=Fe("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Sj=Fe("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Nj=Fe("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Lc=Fe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ej=Fe("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]),Oh="-",jj=e=>{const t=Cj(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(Oh);return a[0]===""&&a.length!==1&&a.shift(),k0(a,t)||kj(i)},getConflictingClassGroupIds:(i,a)=>{const c=n[i]||[];return a&&r[i]?[...c,...r[i]]:c}}},k0=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?k0(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(Oh);return(i=t.validators.find(({validator:a})=>a(o)))==null?void 0:i.classGroupId},Bp=/^\[(.+)\]$/,kj=e=>{if(Bp.test(e)){const t=Bp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Cj=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Tj(Object.entries(e.classGroups),n).forEach(([o,i])=>{ef(i,r,o,t)}),r},ef=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:Hp(t,s);o.classGroupId=n;return}if(typeof s=="function"){if(_j(s)){ef(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([o,i])=>{ef(i,Hp(t,o),n,r)})})},Hp=(e,t)=>{let n=e;return t.split(Oh).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},_j=e=>e.isThemeGetter,Tj=(e,t)=>t?e.map(([n,r])=>{const s=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,a])=>[t+i,a])):o);return[n,s]}):e,Rj=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return s(o,i),i},set(o,i){n.has(o)?n.set(o,i):s(o,i)}}},C0="!",Aj=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],o=t.length,i=a=>{const c=[];let u=0,d=0,h;for(let b=0;b<a.length;b++){let g=a[b];if(u===0){if(g===s&&(r||a.slice(b,b+o)===t)){c.push(a.slice(d,b)),d=b+o;continue}if(g==="/"){h=b;continue}}g==="["?u++:g==="]"&&u--}const f=c.length===0?a:a.substring(d),x=f.startsWith(C0),v=x?f.substring(1):f,p=h&&h>d?h-d:void 0;return{modifiers:c,hasImportantModifier:x,baseClassName:v,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:i}):i},Pj=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},Oj=e=>({cache:Rj(e.cacheSize),parseClassName:Aj(e),...jj(e)}),Ij=/\s+/,Mj=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,o=[],i=e.trim().split(Ij);let a="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{modifiers:d,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:x}=n(u);let v=!!x,p=r(v?f.substring(0,x):f);if(!p){if(!v){a=u+(a.length>0?" "+a:a);continue}if(p=r(f),!p){a=u+(a.length>0?" "+a:a);continue}v=!1}const b=Pj(d).join(":"),g=h?b+C0:b,m=g+p;if(o.includes(m))continue;o.push(m);const w=s(p,v);for(let S=0;S<w.length;++S){const N=w[S];o.push(g+N)}a=u+(a.length>0?" "+a:a)}return a};function Dj(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=_0(t))&&(r&&(r+=" "),r+=n);return r}const _0=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=_0(e[r]))&&(n&&(n+=" "),n+=t);return n};function Lj(e,...t){let n,r,s,o=i;function i(c){const u=t.reduce((d,h)=>h(d),e());return n=Oj(u),r=n.cache.get,s=n.cache.set,o=a,a(c)}function a(c){const u=r(c);if(u)return u;const d=Mj(c,n);return s(c,d),d}return function(){return o(Dj.apply(null,arguments))}}const We=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},T0=/^\[(?:([a-z-]+):)?(.+)\]$/i,Fj=/^\d+\/\d+$/,zj=new Set(["px","full","screen"]),Bj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Hj=/\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$/,$j=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Vj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Uj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,tr=e=>go(e)||zj.has(e)||Fj.test(e),Nr=e=>qo(e,"length",Jj),go=e=>!!e&&!Number.isNaN(Number(e)),zu=e=>qo(e,"number",go),li=e=>!!e&&Number.isInteger(Number(e)),Wj=e=>e.endsWith("%")&&go(e.slice(0,-1)),ye=e=>T0.test(e),Er=e=>Bj.test(e),qj=new Set(["length","size","percentage"]),Kj=e=>qo(e,qj,R0),Gj=e=>qo(e,"position",R0),Yj=new Set(["image","url"]),Qj=e=>qo(e,Yj,ek),Zj=e=>qo(e,"",Xj),ci=()=>!0,qo=(e,t,n)=>{const r=T0.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Jj=e=>Hj.test(e)&&!$j.test(e),R0=()=>!1,Xj=e=>Vj.test(e),ek=e=>Uj.test(e),tk=()=>{const e=We("colors"),t=We("spacing"),n=We("blur"),r=We("brightness"),s=We("borderColor"),o=We("borderRadius"),i=We("borderSpacing"),a=We("borderWidth"),c=We("contrast"),u=We("grayscale"),d=We("hueRotate"),h=We("invert"),f=We("gap"),x=We("gradientColorStops"),v=We("gradientColorStopPositions"),p=We("inset"),b=We("margin"),g=We("opacity"),m=We("padding"),w=We("saturate"),S=We("scale"),N=We("sepia"),k=We("skew"),j=We("space"),C=We("translate"),P=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",ye,t],O=()=>[ye,t],V=()=>["",tr,Nr],I=()=>["auto",go,ye],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",ye],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],q=()=>[go,ye];return{cacheSize:500,separator:":",theme:{colors:[ci],spacing:[tr,Nr],blur:["none","",Er,ye],brightness:q(),borderColor:[e],borderRadius:["none","","full",Er,ye],borderSpacing:O(),borderWidth:V(),contrast:q(),grayscale:L(),hueRotate:q(),invert:L(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[Wj,Nr],inset:z(),margin:z(),opacity:q(),padding:O(),saturate:q(),scale:q(),sepia:L(),skew:q(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",ye]}],container:["container"],columns:[{columns:[Er]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"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:[...Y(),ye]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",li,ye]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ye]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",li,ye]}],"grid-cols":[{"grid-cols":[ci]}],"col-start-end":[{col:["auto",{span:["full",li,ye]},ye]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[ci]}],"row-start-end":[{row:["auto",{span:[li,ye]},ye]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ye]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ye]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",..._()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",..._(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[..._(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ye,t]}],"min-w":[{"min-w":[ye,t,"min","max","fit"]}],"max-w":[{"max-w":[ye,t,"none","full","min","max","fit","prose",{screen:[Er]},Er]}],h:[{h:[ye,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ye,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ye,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ye,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Er,Nr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",zu]}],"font-family":[{font:[ci]}],"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",ye]}],"line-clamp":[{"line-clamp":["none",go,zu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",tr,ye]}],"list-image":[{"list-image":["none",ye]}],"list-style-type":[{list:["none","disc","decimal",ye]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",tr,Nr]}],"underline-offset":[{"underline-offset":["auto",tr,ye]}],"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:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye]}],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",ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),Gj]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Kj]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Qj]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"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":[g]}],"border-style":[{border:[...W(),"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":[g]}],"divide-style":[{divide:W()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[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:["",...W()]}],"outline-offset":[{"outline-offset":[tr,ye]}],"outline-w":[{outline:[tr,Nr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[tr,Nr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Er,Zj]}],"shadow-color":[{shadow:[ci]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Er,ye]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[w]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ye]}],duration:[{duration:q()}],ease:[{ease:["linear","in","out","in-out",ye]}],delay:[{delay:q()}],animate:[{animate:["none","spin","ping","pulse","bounce",ye]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[li,ye]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ye]}],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",ye]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",ye]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[tr,Nr,zu]}],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-s","border-color-e","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"]}}},nk=Lj(tk);function Ce(...e){return nk(v0(e))}const rk=ij,A0=y.forwardRef(({className:e,...t},n)=>l.jsx(d0,{ref:n,className:Ce("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));A0.displayName=d0.displayName;const sk=Th("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),P0=y.forwardRef(({className:e,variant:t,...n},r)=>l.jsx(f0,{ref:r,className:Ce(sk({variant:t}),e),...n}));P0.displayName=f0.displayName;const ok=y.forwardRef(({className:e,...t},n)=>l.jsx(p0,{ref:n,className:Ce("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));ok.displayName=p0.displayName;const O0=y.forwardRef(({className:e,...t},n)=>l.jsx(g0,{ref:n,className:Ce("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:l.jsx(Lc,{className:"h-4 w-4"})}));O0.displayName=g0.displayName;const I0=y.forwardRef(({className:e,...t},n)=>l.jsx(h0,{ref:n,className:Ce("text-sm font-semibold",e),...t}));I0.displayName=h0.displayName;const M0=y.forwardRef(({className:e,...t},n)=>l.jsx(m0,{ref:n,className:Ce("text-sm opacity-90",e),...t}));M0.displayName=m0.displayName;function ik(){const{toasts:e}=ya();return l.jsxs(rk,{children:[e.map(function({id:t,title:n,description:r,action:s,...o}){return l.jsxs(P0,{...o,children:[l.jsxs("div",{className:"grid gap-1",children:[n&&l.jsx(I0,{children:n}),r&&l.jsx(M0,{children:r})]}),s,l.jsx(O0,{})]},t)}),l.jsx(A0,{})]})}var $p=["light","dark"],ak="(prefers-color-scheme: dark)",lk=y.createContext(void 0),ck={setTheme:e=>{},themes:[]},uk=()=>{var e;return(e=y.useContext(lk))!=null?e:ck};y.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:o,value:i,attrs:a,nonce:c})=>{let u=o==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(v=>`'${v}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=s?$p.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(v,p=!1,b=!0)=>{let g=i?i[v]:v,m=p?v+"|| ''":`'${g}'`,w="";return s&&b&&!p&&$p.includes(v)&&(w+=`d.style.colorScheme = '${v}';`),n==="class"?p||g?w+=`c.add(${m})`:w+="null":g&&(w+=`d[s](n,${m})`),w},x=e?`!function(){${d}${f(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${ak}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}${u?"":"else{"+f(o,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}else{${f(o,!1,!1)};}${h}}catch(t){}}();`;return y.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:x}})});var dk=e=>{switch(e){case"success":return mk;case"info":return gk;case"warning":return pk;case"error":return yk;default:return null}},fk=Array(12).fill(0),hk=({visible:e})=>F.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},F.createElement("div",{className:"sonner-spinner"},fk.map((t,n)=>F.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),mk=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.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"})),pk=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},F.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"})),gk=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.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"})),yk=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.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"})),vk=()=>{let[e,t]=F.useState(document.hidden);return F.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},tf=1,xk=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:tf++,o=this.toasts.find(a=>a.id===s),i=e.dismissible===void 0?!0:e.dismissible;return o?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:n}),{...a,...e,id:s,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,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(async o=>{if(bk(o)&&!o.ok){s=!1;let i=typeof t.error=="function"?await t.error(`HTTP error! status: ${o.status}`):t.error,a=typeof t.description=="function"?await t.description(`HTTP error! status: ${o.status}`):t.description;this.create({id:n,type:"error",message:i,description:a})}else if(t.success!==void 0){s=!1;let i=typeof t.success=="function"?await t.success(o):t.success,a=typeof t.description=="function"?await t.description(o):t.description;this.create({id:n,type:"success",message:i,description:a})}}).catch(async o=>{if(t.error!==void 0){s=!1;let i=typeof t.error=="function"?await t.error(o):t.error,a=typeof t.description=="function"?await t.description(o):t.description;this.create({id:n,type:"error",message:i,description:a})}}).finally(()=>{var o;s&&(this.dismiss(n),n=void 0),(o=t.finally)==null||o.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||tf++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},en=new xk,wk=(e,t)=>{let n=(t==null?void 0:t.id)||tf++;return en.addToast({title:e,...t,id:n}),n},bk=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Sk=wk,Nk=()=>en.toasts;Object.assign(Sk,{success:en.success,info:en.info,warning:en.warning,error:en.error,custom:en.custom,message:en.message,promise:en.promise,dismiss:en.dismiss,loading:en.loading},{getHistory:Nk});function Ek(e,{insertAt:t}={}){if(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))}Ek(`:where(html[dir="ltr"]),:where([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%)}:where(html[dir="rtl"]),:where([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%)}:where([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}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([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}:where([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}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([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)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [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}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([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}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([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)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([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}:where([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}:where([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% - var(--mobile-offset) * 2)}[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%)}
`);function Ya(e){return e.label!==void 0}var jk=3,kk="32px",Ck=4e3,_k=356,Tk=14,Rk=20,Ak=200;function Pk(...e){return e.filter(Boolean).join(" ")}var Ok=e=>{var t,n,r,s,o,i,a,c,u,d;let{invert:h,toast:f,unstyled:x,interacting:v,setHeights:p,visibleToasts:b,heights:g,index:m,toasts:w,expanded:S,removeToast:N,defaultRichColors:k,closeButton:j,style:C,cancelButtonStyle:P,actionButtonStyle:D,className:z="",descriptionClassName:O="",duration:V,position:I,gap:Y,loadingIcon:W,expandByDefault:X,classNames:_,icons:L,closeButtonAriaLabel:Q="Close toast",pauseWhenPageIsHidden:q,cn:ne}=e,[le,pe]=F.useState(!1),[ze,me]=F.useState(!1),[Z,ae]=F.useState(!1),[ke,ce]=F.useState(!1),[ie,H]=F.useState(0),[de,Ee]=F.useState(0),Be=F.useRef(null),Ue=F.useRef(null),ht=m===0,Yt=m+1<=b,Ie=f.type,E=f.dismissible!==!1,T=f.className||"",A=f.descriptionClassName||"",G=F.useMemo(()=>g.findIndex(ue=>ue.toastId===f.id)||0,[g,f.id]),K=F.useMemo(()=>{var ue;return(ue=f.closeButton)!=null?ue:j},[f.closeButton,j]),$=F.useMemo(()=>f.duration||V||Ck,[f.duration,V]),se=F.useRef(0),we=F.useRef(0),Pe=F.useRef(0),Qe=F.useRef(null),[Nt,zt]=I.split("-"),br=F.useMemo(()=>g.reduce((ue,He,Me)=>Me>=G?ue:ue+He.height,0),[g,G]),wn=vk(),er=f.invert||h,ds=Ie==="loading";we.current=F.useMemo(()=>G*Y+br,[G,br]),F.useEffect(()=>{pe(!0)},[]),F.useLayoutEffect(()=>{if(!le)return;let ue=Ue.current,He=ue.style.height;ue.style.height="auto";let Me=ue.getBoundingClientRect().height;ue.style.height=He,Ee(Me),p(Zt=>Zt.find(Jt=>Jt.toastId===f.id)?Zt.map(Jt=>Jt.toastId===f.id?{...Jt,height:Me}:Jt):[{toastId:f.id,height:Me,position:f.position},...Zt])},[le,f.title,f.description,p,f.id]);let Qt=F.useCallback(()=>{me(!0),H(we.current),p(ue=>ue.filter(He=>He.toastId!==f.id)),setTimeout(()=>{N(f)},Ak)},[f,N,p,we]);F.useEffect(()=>{if(f.promise&&Ie==="loading"||f.duration===1/0||f.type==="loading")return;let ue,He=$;return S||v||q&&wn?(()=>{if(Pe.current<se.current){let Me=new Date().getTime()-se.current;He=He-Me}Pe.current=new Date().getTime()})():He!==1/0&&(se.current=new Date().getTime(),ue=setTimeout(()=>{var Me;(Me=f.onAutoClose)==null||Me.call(f,f),Qt()},He)),()=>clearTimeout(ue)},[S,v,X,f,$,Qt,f.promise,Ie,q,wn]),F.useEffect(()=>{let ue=Ue.current;if(ue){let He=ue.getBoundingClientRect().height;return Ee(He),p(Me=>[{toastId:f.id,height:He,position:f.position},...Me]),()=>p(Me=>Me.filter(Zt=>Zt.toastId!==f.id))}},[p,f.id]),F.useEffect(()=>{f.delete&&Qt()},[Qt,f.delete]);function Xo(){return L!=null&&L.loading?F.createElement("div",{className:"sonner-loader","data-visible":Ie==="loading"},L.loading):W?F.createElement("div",{className:"sonner-loader","data-visible":Ie==="loading"},W):F.createElement(hk,{visible:Ie==="loading"})}return F.createElement("li",{"aria-live":f.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:Ue,className:ne(z,T,_==null?void 0:_.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,_==null?void 0:_.default,_==null?void 0:_[Ie],(n=f==null?void 0:f.classNames)==null?void 0:n[Ie]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:k,"data-styled":!(f.jsx||f.unstyled||x),"data-mounted":le,"data-promise":!!f.promise,"data-removed":ze,"data-visible":Yt,"data-y-position":Nt,"data-x-position":zt,"data-index":m,"data-front":ht,"data-swiping":Z,"data-dismissible":E,"data-type":Ie,"data-invert":er,"data-swipe-out":ke,"data-expanded":!!(S||X&&le),style:{"--index":m,"--toasts-before":m,"--z-index":w.length-m,"--offset":`${ze?ie:we.current}px`,"--initial-height":X?"auto":`${de}px`,...C,...f.style},onPointerDown:ue=>{ds||!E||(Be.current=new Date,H(we.current),ue.target.setPointerCapture(ue.pointerId),ue.target.tagName!=="BUTTON"&&(ae(!0),Qe.current={x:ue.clientX,y:ue.clientY}))},onPointerUp:()=>{var ue,He,Me,Zt;if(ke||!E)return;Qe.current=null;let Jt=Number(((ue=Ue.current)==null?void 0:ue.style.getPropertyValue("--swipe-amount").replace("px",""))||0),Us=new Date().getTime()-((He=Be.current)==null?void 0:He.getTime()),_a=Math.abs(Jt)/Us;if(Math.abs(Jt)>=Rk||_a>.11){H(we.current),(Me=f.onDismiss)==null||Me.call(f,f),Qt(),ce(!0);return}(Zt=Ue.current)==null||Zt.style.setProperty("--swipe-amount","0px"),ae(!1)},onPointerMove:ue=>{var He;if(!Qe.current||!E)return;let Me=ue.clientY-Qe.current.y,Zt=ue.clientX-Qe.current.x,Jt=(Nt==="top"?Math.min:Math.max)(0,Me),Us=ue.pointerType==="touch"?10:2;Math.abs(Jt)>Us?(He=Ue.current)==null||He.style.setProperty("--swipe-amount",`${Me}px`):Math.abs(Zt)>Us&&(Qe.current=null)}},K&&!f.jsx?F.createElement("button",{"aria-label":Q,"data-disabled":ds,"data-close-button":!0,onClick:ds||!E?()=>{}:()=>{var ue;Qt(),(ue=f.onDismiss)==null||ue.call(f,f)},className:ne(_==null?void 0:_.closeButton,(s=f==null?void 0:f.classNames)==null?void 0:s.closeButton)},F.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"},F.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),F.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,f.jsx||F.isValidElement(f.title)?f.jsx||f.title:F.createElement(F.Fragment,null,Ie||f.icon||f.promise?F.createElement("div",{"data-icon":"",className:ne(_==null?void 0:_.icon,(o=f==null?void 0:f.classNames)==null?void 0:o.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Xo():null,f.type!=="loading"?f.icon||(L==null?void 0:L[Ie])||dk(Ie):null):null,F.createElement("div",{"data-content":"",className:ne(_==null?void 0:_.content,(i=f==null?void 0:f.classNames)==null?void 0:i.content)},F.createElement("div",{"data-title":"",className:ne(_==null?void 0:_.title,(a=f==null?void 0:f.classNames)==null?void 0:a.title)},f.title),f.description?F.createElement("div",{"data-description":"",className:ne(O,A,_==null?void 0:_.description,(c=f==null?void 0:f.classNames)==null?void 0:c.description)},f.description):null),F.isValidElement(f.cancel)?f.cancel:f.cancel&&Ya(f.cancel)?F.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||P,onClick:ue=>{var He,Me;Ya(f.cancel)&&E&&((Me=(He=f.cancel).onClick)==null||Me.call(He,ue),Qt())},className:ne(_==null?void 0:_.cancelButton,(u=f==null?void 0:f.classNames)==null?void 0:u.cancelButton)},f.cancel.label):null,F.isValidElement(f.action)?f.action:f.action&&Ya(f.action)?F.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||D,onClick:ue=>{var He,Me;Ya(f.action)&&(ue.defaultPrevented||((Me=(He=f.action).onClick)==null||Me.call(He,ue),Qt()))},className:ne(_==null?void 0:_.actionButton,(d=f==null?void 0:f.classNames)==null?void 0:d.actionButton)},f.action.label):null))};function Vp(){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 Ik=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:s,closeButton:o,className:i,offset:a,theme:c="light",richColors:u,duration:d,style:h,visibleToasts:f=jk,toastOptions:x,dir:v=Vp(),gap:p=Tk,loadingIcon:b,icons:g,containerAriaLabel:m="Notifications",pauseWhenPageIsHidden:w,cn:S=Pk}=e,[N,k]=F.useState([]),j=F.useMemo(()=>Array.from(new Set([n].concat(N.filter(q=>q.position).map(q=>q.position)))),[N,n]),[C,P]=F.useState([]),[D,z]=F.useState(!1),[O,V]=F.useState(!1),[I,Y]=F.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),W=F.useRef(null),X=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=F.useRef(null),L=F.useRef(!1),Q=F.useCallback(q=>{var ne;(ne=N.find(le=>le.id===q.id))!=null&&ne.delete||en.dismiss(q.id),k(le=>le.filter(({id:pe})=>pe!==q.id))},[N]);return F.useEffect(()=>en.subscribe(q=>{if(q.dismiss){k(ne=>ne.map(le=>le.id===q.id?{...le,delete:!0}:le));return}setTimeout(()=>{Vx.flushSync(()=>{k(ne=>{let le=ne.findIndex(pe=>pe.id===q.id);return le!==-1?[...ne.slice(0,le),{...ne[le],...q},...ne.slice(le+1)]:[q,...ne]})})})}),[]),F.useEffect(()=>{if(c!=="system"){Y(c);return}c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Y("dark"):Y("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:q})=>{Y(q?"dark":"light")})},[c]),F.useEffect(()=>{N.length<=1&&z(!1)},[N]),F.useEffect(()=>{let q=ne=>{var le,pe;r.every(ze=>ne[ze]||ne.code===ze)&&(z(!0),(le=W.current)==null||le.focus()),ne.code==="Escape"&&(document.activeElement===W.current||(pe=W.current)!=null&&pe.contains(document.activeElement))&&z(!1)};return document.addEventListener("keydown",q),()=>document.removeEventListener("keydown",q)},[r]),F.useEffect(()=>{if(W.current)return()=>{_.current&&(_.current.focus({preventScroll:!0}),_.current=null,L.current=!1)}},[W.current]),N.length?F.createElement("section",{"aria-label":`${m} ${X}`,tabIndex:-1},j.map((q,ne)=>{var le;let[pe,ze]=q.split("-");return F.createElement("ol",{key:q,dir:v==="auto"?Vp():v,tabIndex:-1,ref:W,className:i,"data-sonner-toaster":!0,"data-theme":I,"data-y-position":pe,"data-x-position":ze,style:{"--front-toast-height":`${((le=C[0])==null?void 0:le.height)||0}px`,"--offset":typeof a=="number"?`${a}px`:a||kk,"--width":`${_k}px`,"--gap":`${p}px`,...h},onBlur:me=>{L.current&&!me.currentTarget.contains(me.relatedTarget)&&(L.current=!1,_.current&&(_.current.focus({preventScroll:!0}),_.current=null))},onFocus:me=>{me.target instanceof HTMLElement&&me.target.dataset.dismissible==="false"||L.current||(L.current=!0,_.current=me.relatedTarget)},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{O||z(!1)},onPointerDown:me=>{me.target instanceof HTMLElement&&me.target.dataset.dismissible==="false"||V(!0)},onPointerUp:()=>V(!1)},N.filter(me=>!me.position&&ne===0||me.position===q).map((me,Z)=>{var ae,ke;return F.createElement(Ok,{key:me.id,icons:g,index:Z,toast:me,defaultRichColors:u,duration:(ae=x==null?void 0:x.duration)!=null?ae:d,className:x==null?void 0:x.className,descriptionClassName:x==null?void 0:x.descriptionClassName,invert:t,visibleToasts:f,closeButton:(ke=x==null?void 0:x.closeButton)!=null?ke:o,interacting:O,position:q,style:x==null?void 0:x.style,unstyled:x==null?void 0:x.unstyled,classNames:x==null?void 0:x.classNames,cancelButtonStyle:x==null?void 0:x.cancelButtonStyle,actionButtonStyle:x==null?void 0:x.actionButtonStyle,removeToast:Q,toasts:N.filter(ce=>ce.position==me.position),heights:C.filter(ce=>ce.position==me.position),setHeights:P,expandByDefault:s,gap:p,loadingIcon:b,expanded:D,pauseWhenPageIsHidden:w,cn:S})}))})):null};const Mk=({...e})=>{const{theme:t="system"}=uk();return l.jsx(Ik,{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})};var Dk=By.useId||(()=>{}),Lk=0;function yo(e){const[t,n]=y.useState(Dk());return At(()=>{n(r=>r??String(Lk++))},[e]),t?`radix-${t}`:""}const Fk=["top","right","bottom","left"],es=Math.min,nn=Math.max,Gl=Math.round,Qa=Math.floor,ts=e=>({x:e,y:e}),zk={left:"right",right:"left",bottom:"top",top:"bottom"},Bk={start:"end",end:"start"};function nf(e,t,n){return nn(e,es(t,n))}function pr(e,t){return typeof e=="function"?e(t):e}function gr(e){return e.split("-")[0]}function Ko(e){return e.split("-")[1]}function Ih(e){return e==="x"?"y":"x"}function Mh(e){return e==="y"?"height":"width"}function ns(e){return["top","bottom"].includes(gr(e))?"y":"x"}function Dh(e){return Ih(ns(e))}function Hk(e,t,n){n===void 0&&(n=!1);const r=Ko(e),s=Dh(e),o=Mh(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Yl(i)),[i,Yl(i)]}function $k(e){const t=Yl(e);return[rf(e),t,rf(t)]}function rf(e){return e.replace(/start|end/g,t=>Bk[t])}function Vk(e,t,n){const r=["left","right"],s=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?o:i;default:return[]}}function Uk(e,t,n,r){const s=Ko(e);let o=Vk(gr(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(rf)))),o}function Yl(e){return e.replace(/left|right|bottom|top/g,t=>zk[t])}function Wk(e){return{top:0,right:0,bottom:0,left:0,...e}}function D0(e){return typeof e!="number"?Wk(e):{top:e,right:e,bottom:e,left:e}}function Ql(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Up(e,t,n){let{reference:r,floating:s}=e;const o=ns(t),i=Dh(t),a=Mh(i),c=gr(t),u=o==="y",d=r.x+r.width/2-s.width/2,h=r.y+r.height/2-s.height/2,f=r[a]/2-s[a]/2;let x;switch(c){case"top":x={x:d,y:r.y-s.height};break;case"bottom":x={x:d,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:h};break;case"left":x={x:r.x-s.width,y:h};break;default:x={x:r.x,y:r.y}}switch(Ko(t)){case"start":x[i]-=f*(n&&u?-1:1);break;case"end":x[i]+=f*(n&&u?-1:1);break}return x}const qk=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:i}=n,a=o.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:h}=Up(u,r,c),f=r,x={},v=0;for(let p=0;p<a.length;p++){const{name:b,fn:g}=a[p],{x:m,y:w,data:S,reset:N}=await g({x:d,y:h,initialPlacement:r,placement:f,strategy:s,middlewareData:x,rects:u,platform:i,elements:{reference:e,floating:t}});d=m??d,h=w??h,x={...x,[b]:{...x[b],...S}},N&&v<=50&&(v++,typeof N=="object"&&(N.placement&&(f=N.placement),N.rects&&(u=N.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):N.rects),{x:d,y:h}=Up(u,f,c)),p=-1)}return{x:d,y:h,placement:f,strategy:s,middlewareData:x}};async function Zi(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:i,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:x=0}=pr(t,e),v=D0(x),b=a[f?h==="floating"?"reference":"floating":h],g=Ql(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),m=h==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),S=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},N=Ql(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:w,strategy:c}):m);return{top:(g.top-N.top+v.top)/S.y,bottom:(N.bottom-g.bottom+v.bottom)/S.y,left:(g.left-N.left+v.left)/S.x,right:(N.right-g.right+v.right)/S.x}}const Kk=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:i,elements:a,middlewareData:c}=t,{element:u,padding:d=0}=pr(e,t)||{};if(u==null)return{};const h=D0(d),f={x:n,y:r},x=Dh(s),v=Mh(x),p=await i.getDimensions(u),b=x==="y",g=b?"top":"left",m=b?"bottom":"right",w=b?"clientHeight":"clientWidth",S=o.reference[v]+o.reference[x]-f[x]-o.floating[v],N=f[x]-o.reference[x],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let j=k?k[w]:0;(!j||!await(i.isElement==null?void 0:i.isElement(k)))&&(j=a.floating[w]||o.floating[v]);const C=S/2-N/2,P=j/2-p[v]/2-1,D=es(h[g],P),z=es(h[m],P),O=D,V=j-p[v]-z,I=j/2-p[v]/2+C,Y=nf(O,I,V),W=!c.arrow&&Ko(s)!=null&&I!==Y&&o.reference[v]/2-(I<O?D:z)-p[v]/2<0,X=W?I<O?I-O:I-V:0;return{[x]:f[x]+X,data:{[x]:Y,centerOffset:I-Y-X,...W&&{alignmentOffset:X}},reset:W}}}),Gk=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:i,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,...b}=pr(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const g=gr(s),m=ns(a),w=gr(a)===a,S=await(c.isRTL==null?void 0:c.isRTL(u.floating)),N=f||(w||!p?[Yl(a)]:$k(a)),k=v!=="none";!f&&k&&N.push(...Uk(a,p,v,S));const j=[a,...N],C=await Zi(t,b),P=[];let D=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&P.push(C[g]),h){const I=Hk(s,i,S);P.push(C[I[0]],C[I[1]])}if(D=[...D,{placement:s,overflows:P}],!P.every(I=>I<=0)){var z,O;const I=(((z=o.flip)==null?void 0:z.index)||0)+1,Y=j[I];if(Y)return{data:{index:I,overflows:D},reset:{placement:Y}};let W=(O=D.filter(X=>X.overflows[0]<=0).sort((X,_)=>X.overflows[1]-_.overflows[1])[0])==null?void 0:O.placement;if(!W)switch(x){case"bestFit":{var V;const X=(V=D.filter(_=>{if(k){const L=ns(_.placement);return L===m||L==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(L=>L>0).reduce((L,Q)=>L+Q,0)]).sort((_,L)=>_[1]-L[1])[0])==null?void 0:V[0];X&&(W=X);break}case"initialPlacement":W=a;break}if(s!==W)return{reset:{placement:W}}}return{}}}};function Wp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qp(e){return Fk.some(t=>e[t]>=0)}const Yk=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=pr(e,t);switch(r){case"referenceHidden":{const o=await Zi(t,{...s,elementContext:"reference"}),i=Wp(o,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:qp(i)}}}case"escaped":{const o=await Zi(t,{...s,altBoundary:!0}),i=Wp(o,n.floating);return{data:{escapedOffsets:i,escaped:qp(i)}}}default:return{}}}}};async function Qk(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=gr(n),a=Ko(n),c=ns(n)==="y",u=["left","top"].includes(i)?-1:1,d=o&&c?-1:1,h=pr(t,e);let{mainAxis:f,crossAxis:x,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof v=="number"&&(x=a==="end"?v*-1:v),c?{x:x*d,y:f*u}:{x:f*u,y:x*d}}const Zk=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:o,placement:i,middlewareData:a}=t,c=await Qk(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+c.x,y:o+c.y,data:{...c,placement:i}}}}},Jk=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:b=>{let{x:g,y:m}=b;return{x:g,y:m}}},...c}=pr(e,t),u={x:n,y:r},d=await Zi(t,c),h=ns(gr(s)),f=Ih(h);let x=u[f],v=u[h];if(o){const b=f==="y"?"top":"left",g=f==="y"?"bottom":"right",m=x+d[b],w=x-d[g];x=nf(m,x,w)}if(i){const b=h==="y"?"top":"left",g=h==="y"?"bottom":"right",m=v+d[b],w=v-d[g];v=nf(m,v,w)}const p=a.fn({...t,[f]:x,[h]:v});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[f]:o,[h]:i}}}}}},Xk=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:o,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=pr(e,t),d={x:n,y:r},h=ns(s),f=Ih(h);let x=d[f],v=d[h];const p=pr(a,t),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const w=f==="y"?"height":"width",S=o.reference[f]-o.floating[w]+b.mainAxis,N=o.reference[f]+o.reference[w]-b.mainAxis;x<S?x=S:x>N&&(x=N)}if(u){var g,m;const w=f==="y"?"width":"height",S=["top","left"].includes(gr(s)),N=o.reference[h]-o.floating[w]+(S&&((g=i.offset)==null?void 0:g[h])||0)+(S?0:b.crossAxis),k=o.reference[h]+o.reference[w]+(S?0:((m=i.offset)==null?void 0:m[h])||0)-(S?b.crossAxis:0);v<N?v=N:v>k&&(v=k)}return{[f]:x,[h]:v}}}},eC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:o,platform:i,elements:a}=t,{apply:c=()=>{},...u}=pr(e,t),d=await Zi(t,u),h=gr(s),f=Ko(s),x=ns(s)==="y",{width:v,height:p}=o.floating;let b,g;h==="top"||h==="bottom"?(b=h,g=f===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(g=h,b=f==="end"?"top":"bottom");const m=p-d.top-d.bottom,w=v-d.left-d.right,S=es(p-d[b],m),N=es(v-d[g],w),k=!t.middlewareData.shift;let j=S,C=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=m),k&&!f){const D=nn(d.left,0),z=nn(d.right,0),O=nn(d.top,0),V=nn(d.bottom,0);x?C=v-2*(D!==0||z!==0?D+z:nn(d.left,d.right)):j=p-2*(O!==0||V!==0?O+V:nn(d.top,d.bottom))}await c({...t,availableWidth:C,availableHeight:j});const P=await i.getDimensions(a.floating);return v!==P.width||p!==P.height?{reset:{rects:!0}}:{}}}};function Fc(){return typeof window<"u"}function Go(e){return L0(e)?(e.nodeName||"").toLowerCase():"#document"}function on(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xn(e){var t;return(t=(L0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function L0(e){return Fc()?e instanceof Node||e instanceof on(e).Node:!1}function In(e){return Fc()?e instanceof Element||e instanceof on(e).Element:!1}function Jn(e){return Fc()?e instanceof HTMLElement||e instanceof on(e).HTMLElement:!1}function Kp(e){return!Fc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof on(e).ShadowRoot}function wa(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Mn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function tC(e){return["table","td","th"].includes(Go(e))}function zc(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Lh(e){const t=Fh(),n=In(e)?Mn(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function nC(e){let t=rs(e);for(;Jn(t)&&!Do(t);){if(Lh(t))return t;if(zc(t))return null;t=rs(t)}return null}function Fh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Do(e){return["html","body","#document"].includes(Go(e))}function Mn(e){return on(e).getComputedStyle(e)}function Bc(e){return In(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rs(e){if(Go(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Kp(e)&&e.host||Xn(e);return Kp(t)?t.host:t}function F0(e){const t=rs(e);return Do(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jn(t)&&wa(t)?t:F0(t)}function Ji(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=F0(e),o=s===((r=e.ownerDocument)==null?void 0:r.body),i=on(s);if(o){const a=sf(i);return t.concat(i,i.visualViewport||[],wa(s)?s:[],a&&n?Ji(a):[])}return t.concat(s,Ji(s,[],n))}function sf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function z0(e){const t=Mn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Jn(e),o=s?e.offsetWidth:n,i=s?e.offsetHeight:r,a=Gl(n)!==o||Gl(r)!==i;return a&&(n=o,r=i),{width:n,height:r,$:a}}function zh(e){return In(e)?e:e.contextElement}function vo(e){const t=zh(e);if(!Jn(t))return ts(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:o}=z0(t);let i=(o?Gl(n.width):n.width)/r,a=(o?Gl(n.height):n.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const rC=ts(0);function B0(e){const t=on(e);return!Fh()||!t.visualViewport?rC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==on(e)?!1:t}function Ps(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=zh(e);let i=ts(1);t&&(r?In(r)&&(i=vo(r)):i=vo(e));const a=sC(o,n,r)?B0(o):ts(0);let c=(s.left+a.x)/i.x,u=(s.top+a.y)/i.y,d=s.width/i.x,h=s.height/i.y;if(o){const f=on(o),x=r&&In(r)?on(r):r;let v=f,p=sf(v);for(;p&&r&&x!==v;){const b=vo(p),g=p.getBoundingClientRect(),m=Mn(p),w=g.left+(p.clientLeft+parseFloat(m.paddingLeft))*b.x,S=g.top+(p.clientTop+parseFloat(m.paddingTop))*b.y;c*=b.x,u*=b.y,d*=b.x,h*=b.y,c+=w,u+=S,v=on(p),p=sf(v)}}return Ql({width:d,height:h,x:c,y:u})}function oC(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const o=s==="fixed",i=Xn(r),a=t?zc(t.floating):!1;if(r===i||a&&o)return n;let c={scrollLeft:0,scrollTop:0},u=ts(1);const d=ts(0),h=Jn(r);if((h||!h&&!o)&&((Go(r)!=="body"||wa(i))&&(c=Bc(r)),Jn(r))){const f=Ps(r);u=vo(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x,y:n.y*u.y-c.scrollTop*u.y+d.y}}function iC(e){return Array.from(e.getClientRects())}function of(e,t){const n=Bc(e).scrollLeft;return t?t.left+n:Ps(Xn(e)).left+n}function aC(e){const t=Xn(e),n=Bc(e),r=e.ownerDocument.body,s=nn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=nn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+of(e);const a=-n.scrollTop;return Mn(r).direction==="rtl"&&(i+=nn(t.clientWidth,r.clientWidth)-s),{width:s,height:o,x:i,y:a}}function lC(e,t){const n=on(e),r=Xn(e),s=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,a=0,c=0;if(s){o=s.width,i=s.height;const u=Fh();(!u||u&&t==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:o,height:i,x:a,y:c}}function cC(e,t){const n=Ps(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,o=Jn(e)?vo(e):ts(1),i=e.clientWidth*o.x,a=e.clientHeight*o.y,c=s*o.x,u=r*o.y;return{width:i,height:a,x:c,y:u}}function Gp(e,t,n){let r;if(t==="viewport")r=lC(e,n);else if(t==="document")r=aC(Xn(e));else if(In(t))r=cC(t,n);else{const s=B0(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return Ql(r)}function H0(e,t){const n=rs(e);return n===t||!In(n)||Do(n)?!1:Mn(n).position==="fixed"||H0(n,t)}function uC(e,t){const n=t.get(e);if(n)return n;let r=Ji(e,[],!1).filter(a=>In(a)&&Go(a)!=="body"),s=null;const o=Mn(e).position==="fixed";let i=o?rs(e):e;for(;In(i)&&!Do(i);){const a=Mn(i),c=Lh(i);!c&&a.position==="fixed"&&(s=null),(o?!c&&!s:!c&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||wa(i)&&!c&&H0(e,i))?r=r.filter(d=>d!==i):s=a,i=rs(i)}return t.set(e,r),r}function dC(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const i=[...n==="clippingAncestors"?zc(t)?[]:uC(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((u,d)=>{const h=Gp(t,d,s);return u.top=nn(h.top,u.top),u.right=es(h.right,u.right),u.bottom=es(h.bottom,u.bottom),u.left=nn(h.left,u.left),u},Gp(t,a,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function fC(e){const{width:t,height:n}=z0(e);return{width:t,height:n}}function hC(e,t,n){const r=Jn(t),s=Xn(t),o=n==="fixed",i=Ps(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const c=ts(0);if(r||!r&&!o)if((Go(t)!=="body"||wa(s))&&(a=Bc(t)),r){const x=Ps(t,!0,o,t);c.x=x.x+t.clientLeft,c.y=x.y+t.clientTop}else s&&(c.x=of(s));let u=0,d=0;if(s&&!r&&!o){const x=s.getBoundingClientRect();d=x.top+a.scrollTop,u=x.left+a.scrollLeft-of(s,x)}const h=i.left+a.scrollLeft-c.x-u,f=i.top+a.scrollTop-c.y-d;return{x:h,y:f,width:i.width,height:i.height}}function Bu(e){return Mn(e).position==="static"}function Yp(e,t){if(!Jn(e)||Mn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Xn(e)===n&&(n=n.ownerDocument.body),n}function $0(e,t){const n=on(e);if(zc(e))return n;if(!Jn(e)){let s=rs(e);for(;s&&!Do(s);){if(In(s)&&!Bu(s))return s;s=rs(s)}return n}let r=Yp(e,t);for(;r&&tC(r)&&Bu(r);)r=Yp(r,t);return r&&Do(r)&&Bu(r)&&!Lh(r)?n:r||nC(e)||n}const mC=async function(e){const t=this.getOffsetParent||$0,n=this.getDimensions,r=await n(e.floating);return{reference:hC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function pC(e){return Mn(e).direction==="rtl"}const gC={convertOffsetParentRelativeRectToViewportRelativeRect:oC,getDocumentElement:Xn,getClippingRect:dC,getOffsetParent:$0,getElementRects:mC,getClientRects:iC,getDimensions:fC,getScale:vo,isElement:In,isRTL:pC};function yC(e,t){let n=null,r;const s=Xn(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),o();const{left:u,top:d,width:h,height:f}=e.getBoundingClientRect();if(a||t(),!h||!f)return;const x=Qa(d),v=Qa(s.clientWidth-(u+h)),p=Qa(s.clientHeight-(d+f)),b=Qa(u),m={rootMargin:-x+"px "+-v+"px "+-p+"px "+-b+"px",threshold:nn(0,es(1,c))||1};let w=!0;function S(N){const k=N[0].intersectionRatio;if(k!==c){if(!w)return i();k?i(!1,k):r=setTimeout(()=>{i(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(S,{...m,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,m)}n.observe(e)}return i(!0),o}function vC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=zh(e),d=s||o?[...u?Ji(u):[],...Ji(t)]:[];d.forEach(g=>{s&&g.addEventListener("scroll",n,{passive:!0}),o&&g.addEventListener("resize",n)});const h=u&&a?yC(u,n):null;let f=-1,x=null;i&&(x=new ResizeObserver(g=>{let[m]=g;m&&m.target===u&&x&&(x.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=x)==null||w.observe(t)})),n()}),u&&!c&&x.observe(u),x.observe(t));let v,p=c?Ps(e):null;c&&b();function b(){const g=Ps(e);p&&(g.x!==p.x||g.y!==p.y||g.width!==p.width||g.height!==p.height)&&n(),p=g,v=requestAnimationFrame(b)}return n(),()=>{var g;d.forEach(m=>{s&&m.removeEventListener("scroll",n),o&&m.removeEventListener("resize",n)}),h==null||h(),(g=x)==null||g.disconnect(),x=null,c&&cancelAnimationFrame(v)}}const xC=Zk,wC=Jk,bC=Gk,SC=eC,NC=Yk,Qp=Kk,EC=Xk,jC=(e,t,n)=>{const r=new Map,s={platform:gC,...n},o={...s.platform,_c:r};return qk(e,t,{...s,platform:o})};var gl=typeof document<"u"?y.useLayoutEffect:y.useEffect;function Zl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Zl(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const o=s[r];if(!(o==="_owner"&&e.$$typeof)&&!Zl(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function V0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zp(e,t){const n=V0(e);return Math.round(t*n)/n}function Hu(e){const t=y.useRef(e);return gl(()=>{t.current=e}),t}function kC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:o,floating:i}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[d,h]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,x]=y.useState(r);Zl(f,r)||x(r);const[v,p]=y.useState(null),[b,g]=y.useState(null),m=y.useCallback(_=>{_!==k.current&&(k.current=_,p(_))},[]),w=y.useCallback(_=>{_!==j.current&&(j.current=_,g(_))},[]),S=o||v,N=i||b,k=y.useRef(null),j=y.useRef(null),C=y.useRef(d),P=c!=null,D=Hu(c),z=Hu(s),O=Hu(u),V=y.useCallback(()=>{if(!k.current||!j.current)return;const _={placement:t,strategy:n,middleware:f};z.current&&(_.platform=z.current),jC(k.current,j.current,_).then(L=>{const Q={...L,isPositioned:O.current!==!1};I.current&&!Zl(C.current,Q)&&(C.current=Q,Bs.flushSync(()=>{h(Q)}))})},[f,t,n,z,O]);gl(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,h(_=>({..._,isPositioned:!1})))},[u]);const I=y.useRef(!1);gl(()=>(I.current=!0,()=>{I.current=!1}),[]),gl(()=>{if(S&&(k.current=S),N&&(j.current=N),S&&N){if(D.current)return D.current(S,N,V);V()}},[S,N,V,D,P]);const Y=y.useMemo(()=>({reference:k,floating:j,setReference:m,setFloating:w}),[m,w]),W=y.useMemo(()=>({reference:S,floating:N}),[S,N]),X=y.useMemo(()=>{const _={position:n,left:0,top:0};if(!W.floating)return _;const L=Zp(W.floating,d.x),Q=Zp(W.floating,d.y);return a?{..._,transform:"translate("+L+"px, "+Q+"px)",...V0(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:Q}},[n,a,W.floating,d.x,d.y]);return y.useMemo(()=>({...d,update:V,refs:Y,elements:W,floatingStyles:X}),[d,V,Y,W,X])}const CC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Qp({element:r.current,padding:s}).fn(n):{}:r?Qp({element:r,padding:s}).fn(n):{}}}},_C=(e,t)=>({...xC(e),options:[e,t]}),TC=(e,t)=>({...wC(e),options:[e,t]}),RC=(e,t)=>({...EC(e),options:[e,t]}),AC=(e,t)=>({...bC(e),options:[e,t]}),PC=(e,t)=>({...SC(e),options:[e,t]}),OC=(e,t)=>({...NC(e),options:[e,t]}),IC=(e,t)=>({...CC(e),options:[e,t]});var MC="Arrow",U0=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...o}=e;return l.jsx(Te.svg,{...o,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});U0.displayName=MC;var DC=U0;function LC(e,t=[]){let n=[];function r(o,i){const a=y.createContext(i),c=n.length;n=[...n,i];function u(h){const{scope:f,children:x,...v}=h,p=(f==null?void 0:f[e][c])||a,b=y.useMemo(()=>v,Object.values(v));return l.jsx(p.Provider,{value:b,children:x})}function d(h,f){const x=(f==null?void 0:f[e][c])||a,v=y.useContext(x);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,d]}const s=()=>{const o=n.map(i=>y.createContext(i));return function(a){const c=(a==null?void 0:a[e])||o;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return s.scopeName=e,[r,FC(s,...t)]}function FC(...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(o){const i=r.reduce((a,{useScope:c,scopeName:u})=>{const h=c(o)[`__scope${u}`];return{...a,...h}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function zC(e){const[t,n]=y.useState(void 0);return At(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let i,a;if("borderBoxSize"in o){const c=o.borderBoxSize,u=Array.isArray(c)?c[0]:c;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Bh="Popper",[W0,Hc]=LC(Bh),[BC,q0]=W0(Bh),K0=e=>{const{__scopePopper:t,children:n}=e,[r,s]=y.useState(null);return l.jsx(BC,{scope:t,anchor:r,onAnchorChange:s,children:n})};K0.displayName=Bh;var G0="PopperAnchor",Y0=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,o=q0(G0,n),i=y.useRef(null),a=Ge(t,i);return y.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:l.jsx(Te.div,{...s,ref:a})});Y0.displayName=G0;var Hh="PopperContent",[HC,$C]=W0(Hh),Q0=y.forwardRef((e,t)=>{var Z,ae,ke,ce,ie,H;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:o="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:x="optimized",onPlaced:v,...p}=e,b=q0(Hh,n),[g,m]=y.useState(null),w=Ge(t,de=>m(de)),[S,N]=y.useState(null),k=zC(S),j=(k==null?void 0:k.width)??0,C=(k==null?void 0:k.height)??0,P=r+(o!=="center"?"-"+o:""),D=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},z=Array.isArray(u)?u:[u],O=z.length>0,V={padding:D,boundary:z.filter(UC),altBoundary:O},{refs:I,floatingStyles:Y,placement:W,isPositioned:X,middlewareData:_}=kC({strategy:"fixed",placement:P,whileElementsMounted:(...de)=>vC(...de,{animationFrame:x==="always"}),elements:{reference:b.anchor},middleware:[_C({mainAxis:s+C,alignmentAxis:i}),c&&TC({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?RC():void 0,...V}),c&&AC({...V}),PC({...V,apply:({elements:de,rects:Ee,availableWidth:Be,availableHeight:Ue})=>{const{width:ht,height:Yt}=Ee.reference,Ie=de.floating.style;Ie.setProperty("--radix-popper-available-width",`${Be}px`),Ie.setProperty("--radix-popper-available-height",`${Ue}px`),Ie.setProperty("--radix-popper-anchor-width",`${ht}px`),Ie.setProperty("--radix-popper-anchor-height",`${Yt}px`)}}),S&&IC({element:S,padding:a}),WC({arrowWidth:j,arrowHeight:C}),f&&OC({strategy:"referenceHidden",...V})]}),[L,Q]=X0(W),q=ln(v);At(()=>{X&&(q==null||q())},[X,q]);const ne=(Z=_.arrow)==null?void 0:Z.x,le=(ae=_.arrow)==null?void 0:ae.y,pe=((ke=_.arrow)==null?void 0:ke.centerOffset)!==0,[ze,me]=y.useState();return At(()=>{g&&me(window.getComputedStyle(g).zIndex)},[g]),l.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:X?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ze,"--radix-popper-transform-origin":[(ce=_.transformOrigin)==null?void 0:ce.x,(ie=_.transformOrigin)==null?void 0:ie.y].join(" "),...((H=_.hide)==null?void 0:H.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(HC,{scope:n,placedSide:L,onArrowChange:N,arrowX:ne,arrowY:le,shouldHideArrow:pe,children:l.jsx(Te.div,{"data-side":L,"data-align":Q,...p,ref:w,style:{...p.style,animation:X?void 0:"none"}})})})});Q0.displayName=Hh;var Z0="PopperArrow",VC={top:"bottom",right:"left",bottom:"top",left:"right"},J0=y.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,o=$C(Z0,r),i=VC[o.placedSide];return l.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:l.jsx(DC,{...s,ref:n,style:{...s.style,display:"block"}})})});J0.displayName=Z0;function UC(e){return e!==null}var WC=e=>({name:"transformOrigin",options:e,fn(t){var b,g,m;const{placement:n,rects:r,middlewareData:s}=t,i=((b=s.arrow)==null?void 0:b.centerOffset)!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[u,d]=X0(n),h={start:"0%",center:"50%",end:"100%"}[d],f=(((g=s.arrow)==null?void 0:g.x)??0)+a/2,x=(((m=s.arrow)==null?void 0:m.y)??0)+c/2;let v="",p="";return u==="bottom"?(v=i?h:`${f}px`,p=`${-c}px`):u==="top"?(v=i?h:`${f}px`,p=`${r.floating.height+c}px`):u==="right"?(v=`${-c}px`,p=i?h:`${x}px`):u==="left"&&(v=`${r.floating.width+c}px`,p=i?h:`${x}px`),{data:{x:v,y:p}}}});function X0(e){const[t,n="center"]=e.split("-");return[t,n]}var qC=K0,ew=Y0,tw=Q0,nw=J0,[$c,h4]=Pc("Tooltip",[Hc]),$h=Hc(),rw="TooltipProvider",KC=700,Jp="tooltip.open",[GC,sw]=$c(rw),ow=e=>{const{__scopeTooltip:t,delayDuration:n=KC,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:o}=e,[i,a]=y.useState(!0),c=y.useRef(!1),u=y.useRef(0);return y.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),l.jsx(GC,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:y.useCallback(()=>{window.clearTimeout(u.current),a(!1)},[]),onClose:y.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a(!0),r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:y.useCallback(d=>{c.current=d},[]),disableHoverableContent:s,children:o})};ow.displayName=rw;var iw="Tooltip",[m4,Vc]=$c(iw),af="TooltipTrigger",YC=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Vc(af,n),o=sw(af,n),i=$h(n),a=y.useRef(null),c=Ge(t,a,s.onTriggerChange),u=y.useRef(!1),d=y.useRef(!1),h=y.useCallback(()=>u.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),l.jsx(ew,{asChild:!0,...i,children:l.jsx(Te.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:c,onPointerMove:ve(e.onPointerMove,f=>{f.pointerType!=="touch"&&!d.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:ve(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:ve(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:ve(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:ve(e.onBlur,s.onClose),onClick:ve(e.onClick,s.onClose)})})});YC.displayName=af;var QC="TooltipPortal",[p4,ZC]=$c(QC,{forceMount:void 0}),Lo="TooltipContent",aw=y.forwardRef((e,t)=>{const n=ZC(Lo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...o}=e,i=Vc(Lo,e.__scopeTooltip);return l.jsx(Wo,{present:r||i.open,children:i.disableHoverableContent?l.jsx(lw,{side:s,...o,ref:t}):l.jsx(JC,{side:s,...o,ref:t})})}),JC=y.forwardRef((e,t)=>{const n=Vc(Lo,e.__scopeTooltip),r=sw(Lo,e.__scopeTooltip),s=y.useRef(null),o=Ge(t,s),[i,a]=y.useState(null),{trigger:c,onClose:u}=n,d=s.current,{onPointerInTransitChange:h}=r,f=y.useCallback(()=>{a(null),h(!1)},[h]),x=y.useCallback((v,p)=>{const b=v.currentTarget,g={x:v.clientX,y:v.clientY},m=n2(g,b.getBoundingClientRect()),w=r2(g,m),S=s2(p.getBoundingClientRect()),N=i2([...w,...S]);a(N),h(!0)},[h]);return y.useEffect(()=>()=>f(),[f]),y.useEffect(()=>{if(c&&d){const v=b=>x(b,d),p=b=>x(b,c);return c.addEventListener("pointerleave",v),d.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",v),d.removeEventListener("pointerleave",p)}}},[c,d,x,f]),y.useEffect(()=>{if(i){const v=p=>{const b=p.target,g={x:p.clientX,y:p.clientY},m=(c==null?void 0:c.contains(b))||(d==null?void 0:d.contains(b)),w=!o2(g,i);m?f():w&&(f(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,d,i,u,f]),l.jsx(lw,{...e,ref:o})}),[XC,e2]=$c(iw,{isInside:!1}),lw=y.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:i,...a}=e,c=Vc(Lo,n),u=$h(n),{onClose:d}=c;return y.useEffect(()=>(document.addEventListener(Jp,d),()=>document.removeEventListener(Jp,d)),[d]),y.useEffect(()=>{if(c.trigger){const h=f=>{const x=f.target;x!=null&&x.contains(c.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,d]),l.jsx(va,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:l.jsxs(tw,{"data-state":c.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsx(qx,{children:r}),l.jsx(XC,{scope:n,isInside:!0,children:l.jsx($E,{id:c.contentId,role:"tooltip",children:s||r})})]})})});aw.displayName=Lo;var cw="TooltipArrow",t2=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=$h(n);return e2(cw,n).isInside?null:l.jsx(nw,{...s,...r,ref:t})});t2.displayName=cw;function n2(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,s,o)){case o:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function r2(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function s2(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function o2(e,t){const{x:n,y:r}=e;let s=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const a=t[o].x,c=t[o].y,u=t[i].x,d=t[i].y;c>r!=d>r&&n<(u-a)*(r-c)/(d-c)+a&&(s=!s)}return s}function i2(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),a2(t)}function a2(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const o=n[n.length-1],i=n[n.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var l2=ow,uw=aw;const c2=l2,u2=y.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsx(uw,{ref:r,sideOffset:t,className:Ce("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));u2.displayName=uw.displayName;var Uc=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(){}},Wc=typeof window>"u"||"Deno"in globalThis;function En(){}function d2(e,t){return typeof e=="function"?e(t):e}function f2(e){return typeof e=="number"&&e>=0&&e!==1/0}function h2(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Xp(e,t){return typeof e=="function"?e(t):e}function m2(e,t){return typeof e=="function"?e(t):e}function eg(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:o,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Vh(i,t.options))return!1}else if(!ea(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||o&&!o(t))}function tg(e,t){const{exact:n,status:r,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Xi(t.options.mutationKey)!==Xi(o))return!1}else if(!ea(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Vh(e,t){return((t==null?void 0:t.queryKeyHashFn)||Xi)(e)}function Xi(e){return JSON.stringify(e,(t,n)=>lf(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function ea(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!ea(e[n],t[n])):!1}function dw(e,t){if(e===t)return e;const n=ng(e)&&ng(t);if(n||lf(e)&&lf(t)){const r=n?e:Object.keys(e),s=r.length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let c=0;for(let u=0;u<i;u++){const d=n?u:o[u];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=dw(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return s===i&&c===s?e:a}return t}function ng(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function lf(e){if(!rg(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!rg(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function rg(e){return Object.prototype.toString.call(e)==="[object Object]"}function p2(e){return new Promise(t=>{setTimeout(t,e)})}function g2(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?dw(e,t):t}function y2(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function v2(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Uh=Symbol();function fw(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Uh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var xs,Or,wo,by,x2=(by=class extends Uc{constructor(){super();Oe(this,xs);Oe(this,Or);Oe(this,wo);xe(this,wo,t=>{if(!Wc&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){M(this,Or)||this.setEventListener(M(this,wo))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,Or))==null||t.call(this),xe(this,Or,void 0))}setEventListener(t){var n;xe(this,wo,t),(n=M(this,Or))==null||n.call(this),xe(this,Or,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){M(this,xs)!==t&&(xe(this,xs,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof M(this,xs)=="boolean"?M(this,xs):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},xs=new WeakMap,Or=new WeakMap,wo=new WeakMap,by),hw=new x2,bo,Ir,So,Sy,w2=(Sy=class extends Uc{constructor(){super();Oe(this,bo,!0);Oe(this,Ir);Oe(this,So);xe(this,So,t=>{if(!Wc&&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(){M(this,Ir)||this.setEventListener(M(this,So))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,Ir))==null||t.call(this),xe(this,Ir,void 0))}setEventListener(t){var n;xe(this,So,t),(n=M(this,Ir))==null||n.call(this),xe(this,Ir,t(this.setOnline.bind(this)))}setOnline(t){M(this,bo)!==t&&(xe(this,bo,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return M(this,bo)}},bo=new WeakMap,Ir=new WeakMap,So=new WeakMap,Sy),Jl=new w2;function b2(){let e,t;const n=new Promise((s,o)=>{e=s,t=o});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function S2(e){return Math.min(1e3*2**e,3e4)}function mw(e){return(e??"online")==="online"?Jl.isOnline():!0}var pw=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function $u(e){return e instanceof pw}function gw(e){let t=!1,n=0,r=!1,s;const o=b2(),i=p=>{var b;r||(f(new pw(p)),(b=e.abort)==null||b.call(e))},a=()=>{t=!0},c=()=>{t=!1},u=()=>hw.isFocused()&&(e.networkMode==="always"||Jl.isOnline())&&e.canRun(),d=()=>mw(e.networkMode)&&e.canRun(),h=p=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,p),s==null||s(),o.resolve(p))},f=p=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,p),s==null||s(),o.reject(p))},x=()=>new Promise(p=>{var b;s=g=>{(r||u())&&p(g)},(b=e.onPause)==null||b.call(e)}).then(()=>{var p;s=void 0,r||(p=e.onContinue)==null||p.call(e)}),v=()=>{if(r)return;let p;const b=n===0?e.initialPromise:void 0;try{p=b??e.fn()}catch(g){p=Promise.reject(g)}Promise.resolve(p).then(h).catch(g=>{var k;if(r)return;const m=e.retry??(Wc?0:3),w=e.retryDelay??S2,S=typeof w=="function"?w(n,g):w,N=m===!0||typeof m=="number"&&n<m||typeof m=="function"&&m(n,g);if(t||!N){f(g);return}n++,(k=e.onFail)==null||k.call(e,n,g),p2(S).then(()=>u()?void 0:x()).then(()=>{t?f(g):v()})})};return{promise:o,cancel:i,continue:()=>(s==null||s(),o),cancelRetry:a,continueRetry:c,canStart:d,start:()=>(d()?v():x().then(v),o)}}function N2(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=a=>setTimeout(a,0);const o=a=>{t?e.push(a):s(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||i()}return c},batchCalls:a=>(...c)=>{o(()=>{a(...c)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var Mt=N2(),ws,Ny,yw=(Ny=class{constructor(){Oe(this,ws)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),f2(this.gcTime)&&xe(this,ws,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Wc?1/0:5*60*1e3))}clearGcTimeout(){M(this,ws)&&(clearTimeout(M(this,ws)),xe(this,ws,void 0))}},ws=new WeakMap,Ny),No,Eo,fn,Ct,ua,bs,jn,sr,Ey,E2=(Ey=class extends yw{constructor(t){super();Oe(this,jn);Oe(this,No);Oe(this,Eo);Oe(this,fn);Oe(this,Ct);Oe(this,ua);Oe(this,bs);xe(this,bs,!1),xe(this,ua,t.defaultOptions),this.setOptions(t.options),this.observers=[],xe(this,fn,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,xe(this,No,k2(this.options)),this.state=t.state??M(this,No),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=M(this,Ct))==null?void 0:t.promise}setOptions(t){this.options={...M(this,ua),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&M(this,fn).remove(this)}setData(t,n){const r=g2(this.state.data,t,this.options);return Et(this,jn,sr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Et(this,jn,sr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=M(this,Ct))==null?void 0:r.promise;return(s=M(this,Ct))==null||s.cancel(t),n?n.then(En).catch(En):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(M(this,No))}isActive(){return this.observers.some(t=>m2(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Uh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!h2(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,Ct))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,Ct))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),M(this,fn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(M(this,Ct)&&(M(this,bs)?M(this,Ct).cancel({revert:!0}):M(this,Ct).cancelRetry()),this.scheduleGc()),M(this,fn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Et(this,jn,sr).call(this,{type:"invalidate"})}fetch(t,n){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(M(this,Ct))return M(this,Ct).continueRetry(),M(this,Ct).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(f=>f.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(xe(this,bs,!0),r.signal)})},o=()=>{const h=fw(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return s(f),xe(this,bs,!1),this.options.persister?this.options.persister(h,f,this):h(f)},i={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};s(i),(c=this.options.behavior)==null||c.onFetch(i,this),xe(this,Eo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=i.fetchOptions)==null?void 0:u.meta))&&Et(this,jn,sr).call(this,{type:"fetch",meta:(d=i.fetchOptions)==null?void 0:d.meta});const a=h=>{var f,x,v,p;$u(h)&&h.silent||Et(this,jn,sr).call(this,{type:"error",error:h}),$u(h)||((x=(f=M(this,fn).config).onError)==null||x.call(f,h,this),(p=(v=M(this,fn).config).onSettled)==null||p.call(v,this.state.data,h,this)),this.scheduleGc()};return xe(this,Ct,gw({initialPromise:n==null?void 0:n.initialPromise,fn:i.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var f,x,v,p;if(h===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(b){a(b);return}(x=(f=M(this,fn).config).onSuccess)==null||x.call(f,h,this),(p=(v=M(this,fn).config).onSettled)==null||p.call(v,h,this.state.error,this),this.scheduleGc()},onError:a,onFail:(h,f)=>{Et(this,jn,sr).call(this,{type:"failed",failureCount:h,error:f})},onPause:()=>{Et(this,jn,sr).call(this,{type:"pause"})},onContinue:()=>{Et(this,jn,sr).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),M(this,Ct).start()}},No=new WeakMap,Eo=new WeakMap,fn=new WeakMap,Ct=new WeakMap,ua=new WeakMap,bs=new WeakMap,jn=new WeakSet,sr=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,...j2(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return $u(s)&&s.revert&&M(this,Eo)?{...M(this,Eo),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),Mt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),M(this,fn).notify({query:this,type:"updated",action:t})})},Ey);function j2(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:mw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function k2(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Vn,jy,C2=(jy=class extends Uc{constructor(t={}){super();Oe(this,Vn);this.config=t,xe(this,Vn,new Map)}build(t,n,r){const s=n.queryKey,o=n.queryHash??Vh(s,n);let i=this.get(o);return i||(i=new E2({cache:this,queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){M(this,Vn).has(t.queryHash)||(M(this,Vn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=M(this,Vn).get(t.queryHash);n&&(t.destroy(),n===t&&M(this,Vn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Mt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return M(this,Vn).get(t)}getAll(){return[...M(this,Vn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>eg(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>eg(t,r)):n}notify(t){Mt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Mt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Mt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Vn=new WeakMap,jy),Un,Pt,Ss,Wn,jr,ky,_2=(ky=class extends yw{constructor(t){super();Oe(this,Wn);Oe(this,Un);Oe(this,Pt);Oe(this,Ss);this.mutationId=t.mutationId,xe(this,Pt,t.mutationCache),xe(this,Un,[]),this.state=t.state||T2(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){M(this,Un).includes(t)||(M(this,Un).push(t),this.clearGcTimeout(),M(this,Pt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){xe(this,Un,M(this,Un).filter(n=>n!==t)),this.scheduleGc(),M(this,Pt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){M(this,Un).length||(this.state.status==="pending"?this.scheduleGc():M(this,Pt).remove(this))}continue(){var t;return((t=M(this,Ss))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,o,i,a,c,u,d,h,f,x,v,p,b,g,m,w,S,N,k,j;xe(this,Ss,gw({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(C,P)=>{Et(this,Wn,jr).call(this,{type:"failed",failureCount:C,error:P})},onPause:()=>{Et(this,Wn,jr).call(this,{type:"pause"})},onContinue:()=>{Et(this,Wn,jr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>M(this,Pt).canRun(this)}));const n=this.state.status==="pending",r=!M(this,Ss).canStart();try{if(!n){Et(this,Wn,jr).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(s=M(this,Pt).config).onMutate)==null?void 0:o.call(s,t,this));const P=await((a=(i=this.options).onMutate)==null?void 0:a.call(i,t));P!==this.state.context&&Et(this,Wn,jr).call(this,{type:"pending",context:P,variables:t,isPaused:r})}const C=await M(this,Ss).start();return await((u=(c=M(this,Pt).config).onSuccess)==null?void 0:u.call(c,C,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,C,t,this.state.context)),await((x=(f=M(this,Pt).config).onSettled)==null?void 0:x.call(f,C,null,this.state.variables,this.state.context,this)),await((p=(v=this.options).onSettled)==null?void 0:p.call(v,C,null,t,this.state.context)),Et(this,Wn,jr).call(this,{type:"success",data:C}),C}catch(C){try{throw await((g=(b=M(this,Pt).config).onError)==null?void 0:g.call(b,C,t,this.state.context,this)),await((w=(m=this.options).onError)==null?void 0:w.call(m,C,t,this.state.context)),await((N=(S=M(this,Pt).config).onSettled)==null?void 0:N.call(S,void 0,C,this.state.variables,this.state.context,this)),await((j=(k=this.options).onSettled)==null?void 0:j.call(k,void 0,C,t,this.state.context)),C}finally{Et(this,Wn,jr).call(this,{type:"error",error:C})}}finally{M(this,Pt).runNext(this)}}},Un=new WeakMap,Pt=new WeakMap,Ss=new WeakMap,Wn=new WeakSet,jr=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:t.isPaused,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),Mt.batch(()=>{M(this,Un).forEach(r=>{r.onMutationUpdate(t)}),M(this,Pt).notify({mutation:this,type:"updated",action:t})})},ky);function T2(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xt,da,Cy,R2=(Cy=class extends Uc{constructor(t={}){super();Oe(this,Xt);Oe(this,da);this.config=t,xe(this,Xt,new Map),xe(this,da,Date.now())}build(t,n,r){const s=new _2({mutationCache:this,mutationId:++Ta(this,da)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){const n=Za(t),r=M(this,Xt).get(n)??[];r.push(t),M(this,Xt).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Za(t);if(M(this,Xt).has(n)){const s=(r=M(this,Xt).get(n))==null?void 0:r.filter(o=>o!==t);s&&(s.length===0?M(this,Xt).delete(n):M(this,Xt).set(n,s))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=M(this,Xt).get(Za(t)))==null?void 0:r.find(s=>s.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=M(this,Xt).get(Za(t)))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Mt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...M(this,Xt).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>tg(n,r))}findAll(t={}){return this.getAll().filter(n=>tg(t,n))}notify(t){Mt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Mt.batch(()=>Promise.all(t.map(n=>n.continue().catch(En))))}},Xt=new WeakMap,da=new WeakMap,Cy);function Za(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function sg(e){return{onFetch:(t,n)=>{var d,h,f,x,v;const r=t.options,s=(f=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:f.direction,o=((x=t.state.data)==null?void 0:x.pages)||[],i=((v=t.state.data)==null?void 0:v.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const u=async()=>{let p=!1;const b=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},g=fw(t.options,t.fetchOptions),m=async(w,S,N)=>{if(p)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const k={queryKey:t.queryKey,pageParam:S,direction:N?"backward":"forward",meta:t.options.meta};b(k);const j=await g(k),{maxPages:C}=t.options,P=N?v2:y2;return{pages:P(w.pages,j,C),pageParams:P(w.pageParams,S,C)}};if(s&&o.length){const w=s==="backward",S=w?A2:og,N={pages:o,pageParams:i},k=S(r,N);a=await m(N,k,w)}else{const w=e??o.length;do{const S=c===0?i[0]??r.initialPageParam:og(r,a);if(c>0&&S==null)break;a=await m(a,S),c++}while(c<w)}return a};t.options.persister?t.fetchFn=()=>{var p,b;return(b=(p=t.options).persister)==null?void 0:b.call(p,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function og(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function A2(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var nt,Mr,Dr,jo,ko,Lr,Co,_o,_y,P2=(_y=class{constructor(e={}){Oe(this,nt);Oe(this,Mr);Oe(this,Dr);Oe(this,jo);Oe(this,ko);Oe(this,Lr);Oe(this,Co);Oe(this,_o);xe(this,nt,e.queryCache||new C2),xe(this,Mr,e.mutationCache||new R2),xe(this,Dr,e.defaultOptions||{}),xe(this,jo,new Map),xe(this,ko,new Map),xe(this,Lr,0)}mount(){Ta(this,Lr)._++,M(this,Lr)===1&&(xe(this,Co,hw.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,nt).onFocus())})),xe(this,_o,Jl.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,nt).onOnline())})))}unmount(){var e,t;Ta(this,Lr)._--,M(this,Lr)===0&&((e=M(this,Co))==null||e.call(this),xe(this,Co,void 0),(t=M(this,_o))==null||t.call(this),xe(this,_o,void 0))}isFetching(e){return M(this,nt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return M(this,Mr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,nt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=M(this,nt).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Xp(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return M(this,nt).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=M(this,nt).get(r.queryHash),o=s==null?void 0:s.state.data,i=d2(t,o);if(i!==void 0)return M(this,nt).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Mt.batch(()=>M(this,nt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,nt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=M(this,nt);Mt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=M(this,nt),r={type:"active",...e};return Mt.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Mt.batch(()=>M(this,nt).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(En).catch(En)}invalidateQueries(e={},t={}){return Mt.batch(()=>{if(M(this,nt).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=Mt.batch(()=>M(this,nt).findAll(e).filter(s=>!s.isDisabled()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(En)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(En)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=M(this,nt).build(this,t);return n.isStaleByTime(Xp(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(En).catch(En)}fetchInfiniteQuery(e){return e.behavior=sg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(En).catch(En)}ensureInfiniteQueryData(e){return e.behavior=sg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Jl.isOnline()?M(this,Mr).resumePausedMutations():Promise.resolve()}getQueryCache(){return M(this,nt)}getMutationCache(){return M(this,Mr)}getDefaultOptions(){return M(this,Dr)}setDefaultOptions(e){xe(this,Dr,e)}setQueryDefaults(e,t){M(this,jo).set(Xi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...M(this,jo).values()];let n={};return t.forEach(r=>{ea(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){M(this,ko).set(Xi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...M(this,ko).values()];let n={};return t.forEach(r=>{ea(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...M(this,Dr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Vh(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Uh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...M(this,Dr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){M(this,nt).clear(),M(this,Mr).clear()}},nt=new WeakMap,Mr=new WeakMap,Dr=new WeakMap,jo=new WeakMap,ko=new WeakMap,Lr=new WeakMap,Co=new WeakMap,_o=new WeakMap,_y),O2=y.createContext(void 0),I2=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),l.jsx(O2.Provider,{value:e,children:t}));/**
* @remix-run/router v1.20.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ta.apply(this,arguments)}var Br;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Br||(Br={}));const ig="popstate";function M2(e){e===void 0&&(e={});function t(r,s){let{pathname:o,search:i,hash:a}=r.location;return cf("",{pathname:o,search:i,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Xl(s)}return L2(t,n,null,e)}function ft(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function vw(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function D2(){return Math.random().toString(36).substr(2,8)}function ag(e,t){return{usr:e.state,key:e.key,idx:t}}function cf(e,t,n,r){return n===void 0&&(n=null),ta({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Yo(t):t,{state:n,key:t&&t.key||r||D2()})}function Xl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Yo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function L2(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:o=!1}=r,i=s.history,a=Br.Pop,c=null,u=d();u==null&&(u=0,i.replaceState(ta({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function h(){a=Br.Pop;let b=d(),g=b==null?null:b-u;u=b,c&&c({action:a,location:p.location,delta:g})}function f(b,g){a=Br.Push;let m=cf(p.location,b,g);u=d()+1;let w=ag(m,u),S=p.createHref(m);try{i.pushState(w,"",S)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;s.location.assign(S)}o&&c&&c({action:a,location:p.location,delta:1})}function x(b,g){a=Br.Replace;let m=cf(p.location,b,g);u=d();let w=ag(m,u),S=p.createHref(m);i.replaceState(w,"",S),o&&c&&c({action:a,location:p.location,delta:0})}function v(b){let g=s.location.origin!=="null"?s.location.origin:s.location.href,m=typeof b=="string"?b:Xl(b);return m=m.replace(/ $/,"%20"),ft(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let p={get action(){return a},get location(){return e(s,i)},listen(b){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(ig,h),c=b,()=>{s.removeEventListener(ig,h),c=null}},createHref(b){return t(s,b)},createURL:v,encodeLocation(b){let g=v(b);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:x,go(b){return i.go(b)}};return p}var lg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lg||(lg={}));function F2(e,t,n){return n===void 0&&(n="/"),z2(e,t,n,!1)}function z2(e,t,n,r){let s=typeof t=="string"?Yo(t):t,o=Wh(s.pathname||"/",n);if(o==null)return null;let i=xw(e);B2(i);let a=null;for(let c=0;a==null&&c<i.length;++c){let u=Z2(o);a=Y2(i[c],u,r)}return a}function xw(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(o,i,a)=>{let c={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};c.relativePath.startsWith("/")&&(ft(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=Qr([r,c.relativePath]),d=n.concat(c);o.children&&o.children.length>0&&(ft(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),xw(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:K2(u,o.index),routesMeta:d})};return e.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))s(o,i);else for(let c of ww(o.path))s(o,i,c)}),t}function ww(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return s?[o,""]:[o];let i=ww(r.join("/")),a=[];return a.push(...i.map(c=>c===""?o:[o,c].join("/"))),s&&a.push(...i),a.map(c=>e.startsWith("/")&&c===""?"/":c)}function B2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:G2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const H2=/^:[\w-]+$/,$2=3,V2=2,U2=1,W2=10,q2=-2,cg=e=>e==="*";function K2(e,t){let n=e.split("/"),r=n.length;return n.some(cg)&&(r+=q2),t&&(r+=V2),n.filter(s=>!cg(s)).reduce((s,o)=>s+(H2.test(o)?$2:o===""?U2:W2),r)}function G2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function Y2(e,t,n){let{routesMeta:r}=e,s={},o="/",i=[];for(let a=0;a<r.length;++a){let c=r[a],u=a===r.length-1,d=o==="/"?t:t.slice(o.length)||"/",h=ug({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),f=c.route;if(!h&&u&&n&&!r[r.length-1].route.index&&(h=ug({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!h)return null;Object.assign(s,h.params),i.push({params:s,pathname:Qr([o,h.pathname]),pathnameBase:t_(Qr([o,h.pathnameBase])),route:f}),h.pathnameBase!=="/"&&(o=Qr([o,h.pathnameBase]))}return i}function ug(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Q2(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let o=s[0],i=o.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((u,d,h)=>{let{paramName:f,isOptional:x}=d;if(f==="*"){let p=a[h]||"";i=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}const v=a[h];return x&&!v?u[f]=void 0:u[f]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function Q2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),vw(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,c)=>(r.push({paramName:a,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function Z2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return vw(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Wh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function J2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Yo(e):e;return{pathname:n?n.startsWith("/")?n:X2(n,t):t,search:n_(r),hash:r_(s)}}function X2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Vu(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function e_(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function bw(e,t){let n=e_(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Sw(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=Yo(e):(s=ta({},e),ft(!s.pathname||!s.pathname.includes("?"),Vu("?","pathname","search",s)),ft(!s.pathname||!s.pathname.includes("#"),Vu("#","pathname","hash",s)),ft(!s.search||!s.search.includes("#"),Vu("#","search","hash",s)));let o=e===""||s.pathname==="",i=o?"/":s.pathname,a;if(i==null)a=n;else{let h=t.length-1;if(!r&&i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),h-=1;s.pathname=f.join("/")}a=h>=0?t[h]:"/"}let c=J2(s,a),u=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const Qr=e=>e.join("/").replace(/\/\/+/g,"/"),t_=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),n_=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,r_=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function s_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Nw=["post","put","patch","delete"];new Set(Nw);const o_=["get",...Nw];new Set(o_);/**
* React Router v6.27.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function na(){return na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},na.apply(this,arguments)}const qh=y.createContext(null),i_=y.createContext(null),Hs=y.createContext(null),qc=y.createContext(null),$s=y.createContext({outlet:null,matches:[],isDataRoute:!1}),Ew=y.createContext(null);function a_(e,t){let{relative:n}=t===void 0?{}:t;ba()||ft(!1);let{basename:r,navigator:s}=y.useContext(Hs),{hash:o,pathname:i,search:a}=kw(e,{relative:n}),c=i;return r!=="/"&&(c=i==="/"?r:Qr([r,i])),s.createHref({pathname:c,search:a,hash:o})}function ba(){return y.useContext(qc)!=null}function Vs(){return ba()||ft(!1),y.useContext(qc).location}function jw(e){y.useContext(Hs).static||y.useLayoutEffect(e)}function Kh(){let{isDataRoute:e}=y.useContext($s);return e?w_():l_()}function l_(){ba()||ft(!1);let e=y.useContext(qh),{basename:t,future:n,navigator:r}=y.useContext(Hs),{matches:s}=y.useContext($s),{pathname:o}=Vs(),i=JSON.stringify(bw(s,n.v7_relativeSplatPath)),a=y.useRef(!1);return jw(()=>{a.current=!0}),y.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let h=Sw(u,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Qr([t,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[t,r,i,o,e])}function kw(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(Hs),{matches:s}=y.useContext($s),{pathname:o}=Vs(),i=JSON.stringify(bw(s,r.v7_relativeSplatPath));return y.useMemo(()=>Sw(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function c_(e,t){return u_(e,t)}function u_(e,t,n,r){ba()||ft(!1);let{navigator:s}=y.useContext(Hs),{matches:o}=y.useContext($s),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let u=Vs(),d;if(t){var h;let b=typeof t=="string"?Yo(t):t;c==="/"||(h=b.pathname)!=null&&h.startsWith(c)||ft(!1),d=b}else d=u;let f=d.pathname||"/",x=f;if(c!=="/"){let b=c.replace(/^\//,"").split("/");x="/"+f.replace(/^\//,"").split("/").slice(b.length).join("/")}let v=F2(e,{pathname:x}),p=p_(v&&v.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:Qr([c,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?c:Qr([c,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),o,n,r);return t&&p?y.createElement(qc.Provider,{value:{location:na({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Br.Pop}},p):p}function d_(){let e=x_(),t=s_(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:s},n):null,null)}const f_=y.createElement(d_,null);class h_ extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement($s.Provider,{value:this.props.routeContext},y.createElement(Ew.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function m_(e){let{routeContext:t,match:n,children:r}=e,s=y.useContext(qh);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement($s.Provider,{value:t},r)}function p_(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let d=i.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id])!==void 0);d>=0||ft(!1),i=i.slice(0,Math.min(i.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<i.length;d++){let h=i[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=d),h.route.id){let{loaderData:f,errors:x}=n,v=h.route.loader&&f[h.route.id]===void 0&&(!x||x[h.route.id]===void 0);if(h.route.lazy||v){c=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,h,f)=>{let x,v=!1,p=null,b=null;n&&(x=a&&h.route.id?a[h.route.id]:void 0,p=h.route.errorElement||f_,c&&(u<0&&f===0?(v=!0,b=null):u===f&&(v=!0,b=h.route.hydrateFallbackElement||null)));let g=t.concat(i.slice(0,f+1)),m=()=>{let w;return x?w=p:v?w=b:h.route.Component?w=y.createElement(h.route.Component,null):h.route.element?w=h.route.element:w=d,y.createElement(m_,{match:h,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:w})};return n&&(h.route.ErrorBoundary||h.route.errorElement||f===0)?y.createElement(h_,{location:n.location,revalidation:n.revalidation,component:p,error:x,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var Cw=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Cw||{}),ec=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ec||{});function g_(e){let t=y.useContext(qh);return t||ft(!1),t}function y_(e){let t=y.useContext(i_);return t||ft(!1),t}function v_(e){let t=y.useContext($s);return t||ft(!1),t}function _w(e){let t=v_(),n=t.matches[t.matches.length-1];return n.route.id||ft(!1),n.route.id}function x_(){var e;let t=y.useContext(Ew),n=y_(ec.UseRouteError),r=_w(ec.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function w_(){let{router:e}=g_(Cw.UseNavigateStable),t=_w(ec.UseNavigateStable),n=y.useRef(!1);return jw(()=>{n.current=!0}),y.useCallback(function(s,o){o===void 0&&(o={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,na({fromRouteId:t},o)))},[e,t])}function Bt(e){ft(!1)}function b_(e){let{basename:t="/",children:n=null,location:r,navigationType:s=Br.Pop,navigator:o,static:i=!1,future:a}=e;ba()&&ft(!1);let c=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:c,navigator:o,static:i,future:na({v7_relativeSplatPath:!1},a)}),[c,a,o,i]);typeof r=="string"&&(r=Yo(r));let{pathname:d="/",search:h="",hash:f="",state:x=null,key:v="default"}=r,p=y.useMemo(()=>{let b=Wh(d,c);return b==null?null:{location:{pathname:b,search:h,hash:f,state:x,key:v},navigationType:s}},[c,d,h,f,x,v,s]);return p==null?null:y.createElement(Hs.Provider,{value:u},y.createElement(qc.Provider,{children:n,value:p}))}function S_(e){let{children:t,location:n}=e;return c_(uf(t),n)}new Promise(()=>{});function uf(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,s)=>{if(!y.isValidElement(r))return;let o=[...t,s];if(r.type===y.Fragment){n.push.apply(n,uf(r.props.children,o));return}r.type!==Bt&&ft(!1),!r.props.index||!r.props.children||ft(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=uf(r.props.children,o)),n.push(i)}),n}/**
* React Router DOM v6.27.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function df(){return df=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},df.apply(this,arguments)}function N_(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,o;for(o=0;o<r.length;o++)s=r[o],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function E_(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function j_(e,t){return e.button===0&&(!t||t==="_self")&&!E_(e)}const k_=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],C_="6";try{window.__reactRouterVersion=C_}catch{}const __="startTransition",dg=By[__];function T_(e){let{basename:t,children:n,future:r,window:s}=e,o=y.useRef();o.current==null&&(o.current=M2({window:s,v5Compat:!0}));let i=o.current,[a,c]=y.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=y.useCallback(h=>{u&&dg?dg(()=>c(h)):c(h)},[c,u]);return y.useLayoutEffect(()=>i.listen(d),[i,d]),y.createElement(b_,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const R_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",A_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ot=y.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:o,replace:i,state:a,target:c,to:u,preventScrollReset:d,viewTransition:h}=t,f=N_(t,k_),{basename:x}=y.useContext(Hs),v,p=!1;if(typeof u=="string"&&A_.test(u)&&(v=u,R_))try{let w=new URL(window.location.href),S=u.startsWith("//")?new URL(w.protocol+u):new URL(u),N=Wh(S.pathname,x);S.origin===w.origin&&N!=null?u=N+S.search+S.hash:p=!0}catch{}let b=a_(u,{relative:s}),g=P_(u,{replace:i,state:a,target:c,preventScrollReset:d,relative:s,viewTransition:h});function m(w){r&&r(w),w.defaultPrevented||g(w)}return y.createElement("a",df({},f,{href:v||b,onClick:p||o?r:m,ref:n,target:c}))});var fg;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(fg||(fg={}));var hg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(hg||(hg={}));function P_(e,t){let{target:n,replace:r,state:s,preventScrollReset:o,relative:i,viewTransition:a}=t===void 0?{}:t,c=Kh(),u=Vs(),d=kw(e,{relative:i});return y.useCallback(h=>{if(j_(h,n)){h.preventDefault();let f=r!==void 0?r:Xl(u)===Xl(d);c(e,{replace:f,state:s,preventScrollReset:o,relative:i,viewTransition:a})}},[u,c,d,r,s,n,e,o,i,a])}const O_=()=>{const{pathname:e}=Vs();return y.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[e]),null},I_=Th("inline-flex items-center justify-center gap-2 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 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{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"}}),De=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},o)=>{const i=r?As:"button";return l.jsx(i,{className:Ce(I_({variant:t,size:n,className:e})),ref:o,...s})});De.displayName="Button";const mg=[{name:"Home",path:"/"},{name:"About",path:"/about",children:[{name:"About Me",path:"/about"},{name:"I AM HER",path:"/book"},{name:"The Book Tour",path:"/tour"}]},{name:"Dear HER Sundays",path:"/dear-her-sundays",children:[{name:"All Posts",path:"/dear-her-sundays/posts"}]},{name:"Connect",path:"/connect"},{name:"Merch Shop",path:"/merch"},{name:"Contact",path:"/contact"}],M_=()=>{const[e,t]=y.useState(!1),[n,r]=y.useState(null),s=Vs(),o=a=>s.pathname===a,i=a=>r(n===a?null:a);return l.jsx("nav",{className:"fixed top-0 w-full bg-background/95 backdrop-blur-md z-50 border-b border-border",children:l.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[l.jsxs("div",{className:"flex justify-between items-center h-16",children:[l.jsx(ot,{to:"/",className:"flex items-center space-x-2",children:l.jsx("img",{className:"object-contain h-20",src:"https://res.cloudinary.com/dnv4dpcgj/image/upload/v1758564269/Asset_14_uflckt.png",alt:""})}),l.jsxs("div",{className:"hidden lg:flex items-center space-x-8",children:[mg.map(a=>a.children?l.jsxs("div",{className:"relative group",children:[l.jsx("span",{className:`text-sm font-medium cursor-pointer hover:text-primary ${o(a.path)?"text-primary border-b-2 border-primary":"text-muted-foreground"}`,children:a.name}),l.jsx("div",{className:"absolute left-0 mt-2 w-48 bg-background border border-border shadow-md rounded-md opacity-0 group-hover:opacity-100 transition-opacity",children:a.children.map(c=>l.jsx(ot,{to:c.path,className:"block px-4 py-2 text-sm text-muted-foreground hover:bg-muted hover:text-primary",children:c.name},c.name))})]},a.name):l.jsx(ot,{to:a.path,className:`text-sm font-medium transition-colors hover:text-primary ${o(a.path)?"text-primary border-b-2 border-primary":"text-muted-foreground"}`,children:a.name},a.name)),l.jsx(De,{asChild:!0,className:"bg-primary hover:bg-primary/90",children:l.jsx(ot,{to:"/coming-soon",children:"Join The Movement"})})]}),l.jsx("div",{className:"lg:hidden",children:l.jsx(De,{variant:"ghost",size:"sm",onClick:()=>t(!e),"aria-label":"Toggle menu",children:e?l.jsx(Lc,{className:"h-6 w-6"}):l.jsx(pj,{className:"h-6 w-6"})})})]}),e&&l.jsx("div",{className:"lg:hidden",children:l.jsxs("div",{className:"px-2 pt-2 pb-3 space-y-1 bg-background border-t border-border",children:[mg.map(a=>a.children?l.jsxs("div",{children:[l.jsxs("button",{onClick:()=>i(a.name),className:"w-full flex justify-between items-center px-3 py-2 text-base font-medium text-muted-foreground hover:text-primary hover:bg-primary/5",children:[a.name,n===a.name?l.jsx(S0,{className:"w-4 h-4"}):l.jsx(Ah,{className:"w-4 h-4"})]}),n===a.name&&l.jsx("div",{className:"ml-4 space-y-1",children:a.children.map(c=>l.jsx(ot,{to:c.path,className:"block px-3 py-3 text-muted-foreground hover:text-primary",onClick:()=>{t(!1),r(null)},children:c.name},c.name))})]},a.name):l.jsx(ot,{to:a.path,className:`block px-3 py-2 text-base font-medium transition-colors ${o(a.path)?"text-primary bg-primary/10":"text-muted-foreground hover:text-primary hover:bg-primary/5"}`,onClick:()=>{t(!1),r(null)},children:a.name},a.name)),l.jsx("div",{className:"px-3 py-2",children:l.jsx(De,{asChild:!0,className:"w-full bg-primary hover:bg-primary/90",children:l.jsx(ot,{to:"/coming-soon",onClick:()=>{t(!1),r(null)},children:"Join Movement"})})})]})})]})})},Hn=()=>{const e=new Date().getFullYear();return l.jsx("footer",{className:"bg-gray-900 text-white py-12",children:l.jsxs("div",{className:"max-w-6xl mx-auto px-4",children:[l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[l.jsxs("div",{className:"text-start md:text-left",children:[l.jsx("img",{src:"https://res.cloudinary.com/dnv4dpcgj/image/upload/v1758564269/Asset_14_uflckt.png",alt:"Nancy Duffour Logo",className:"h-[10rem] mx-auto md:mx-0 object-contain mb-4"}),l.jsx("p",{className:"text-gray-300 text-center md:text-start text-sm",children:"Empowering women through healing and spiritual transformation."})]}),l.jsxs("div",{className:"text-center md:text-left",children:[l.jsx("h3",{className:"text-lg font-semibold mb-4",children:"Quick Links"}),l.jsxs("ul",{className:"space-y-2",children:[l.jsx("li",{children:l.jsx(ot,{to:"/about",className:"text-gray-300 hover:text-emerald-400 transition-colors",children:"About Me"})}),l.jsx("li",{children:l.jsx(ot,{to:"/book",className:"text-gray-300 hover:text-emerald-400 transition-colors",children:"I AM HER Book"})}),l.jsx("li",{children:l.jsx(ot,{to:"/tour",className:"text-gray-300 hover:text-emerald-400 transition-colors",children:"Book Tour"})}),l.jsx("li",{children:l.jsx(ot,{to:"/dear-her-sundays",className:"text-gray-300 hover:text-emerald-400 transition-colors",children:"Dear HER Sundays"})}),l.jsx("li",{children:l.jsx(ot,{to:"/merch",className:"text-gray-300 hover:text-emerald-400 transition-colors",children:"Merch Shop"})}),l.jsx("li",{children:l.jsx(ot,{to:"/connect",className:"text-gray-300 hover:text-emerald-400 transition-colors",children:"Connect"})}),l.jsx("li",{children:l.jsx(ot,{to:"/contact",className:"text-gray-300 hover:text-emerald-400 transition-colors",children:"Contact"})})]})]}),l.jsxs("div",{className:"text-center md:text-left",children:[l.jsx("h3",{className:"text-lg font-semibold mb-4",children:"Join the Movement"}),l.jsxs("div",{className:"flex flex-col w-full justify-start gap-4",children:[l.jsx(De,{asChild:!0,size:"sm",className:"bg-emerald-400 hover:bg-emerald-500 text-green-900 font-semibold w-full md:w-auto",children:l.jsx(ot,{to:"/coming-soon",children:"Join the Movement"})}),l.jsx(De,{asChild:!0,size:"sm",variant:"outline",className:"bg-white/10 hover:bg-white text-white border-emerald-200 w-full md:w-auto",children:l.jsx(ot,{to:"/merch",children:"Shop 'I AM HER' Merch"})})]})]})]}),l.jsx("div",{className:"border-t border-gray-700 mt-8 pt-8 text-center",children:l.jsxs("p",{className:"text-gray-400 text-sm",children:["© ",e," Nancy Duffour. All rights reserved."]})})]})})},D_=()=>l.jsxs("div",{className:"min-h-screen",children:[l.jsxs("section",{className:"relative h-[35rem] xl:h-screen flex items-center justify-center pt-20 md:pt-0 overflow-hidden",children:[l.jsx("div",{className:"absolute inset-0 z-0",children:l.jsx("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"w-full h-full object-cover",style:{filter:"brightness(0.7)"},children:l.jsx("source",{src:"https://dm0qx8t0i9gc9.cloudfront.net/watermarks/video/BYhbSjKDtkvty6l0n/videoblocks-652db06f13841572379b3628_scxzjo6ob6__6f2dcef1db38bd6975e674a39683e482__P360.mp4"})})}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/60 via-green-900/50 to-green-800/70 z-10"}),l.jsxs("div",{className:"relative z-20 w-full max-w-7xl mx-auto px-4 h-full flex items-center",children:[l.jsx("div",{className:"lg:hidden absolute bottom-0 w-full text-center text-white flex flex-col items-center justify-center",children:l.jsxs("div",{className:"relative",children:[l.jsx("div",{className:"absolute inset-0 flex justify-center items-center opacity-50",children:l.jsx("img",{className:"absolute bottom-0 max-w-[350px] sm:max-w-[350px] md:max-w-[450px] w-full",src:"/heroND.png",alt:"Nancy Duffour"})}),l.jsxs("div",{className:"relative z-10 py-8",children:[l.jsxs("h1",{className:"text-4xl md:text-6xl font-bold mb-6 animate-fade-in",children:["I GOT THIS!",l.jsx("br",{}),l.jsx("span",{className:"text-emerald-300",children:"I AM HER"})]}),l.jsx("p",{className:"text-lg md:text-xl mb-8 max-w-2xl mx-auto leading-relaxed animate-fade-in",children:"A movement. A call. A spiritual assignment to restore what was broken and empower what was silenced."}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center animate-fade-in",children:[l.jsx(De,{asChild:!0,size:"lg",className:"bg-emerald-400 hover:bg-emerald-500 text-green-900 font-semibold",children:l.jsx(ot,{to:"/about",children:"Read My Story"})}),l.jsx(De,{asChild:!0,size:"lg",variant:"outline",className:"bg-white/10 hover:bg-white/20 text-white border-emerald-200",children:l.jsx(ot,{to:"/book",children:"Buy the Book"})})]})]})]})}),l.jsxs("div",{className:"hidden lg:flex w-full items-center justify-between",children:[l.jsx("div",{className:"flex-1 flex justify-center",children:l.jsx("img",{className:"absolute bottom-0 max-w-[500px] xl:max-w-[600px] w-full",src:"/heroND.png",alt:"Nancy Duffour"})}),l.jsxs("div",{className:"flex-1 text-white pl-8",children:[l.jsxs("h1",{className:"text-6xl xl:text-8xl font-bold mb-6 animate-fade-in",children:["I GOT THIS!",l.jsx("br",{}),l.jsx("span",{className:"text-emerald-300",children:"I AM HER"})]}),l.jsx("p",{className:"text-xl xl:text-2xl mb-8 leading-relaxed animate-fade-in",children:"A movement. A call. A spiritual assignment to restore what was broken and empower what was silenced."}),l.jsx("div",{className:"flex flex-col gap-4 animate-fade-in",children:l.jsxs("div",{className:"flex gap-4",children:[l.jsx(De,{asChild:!0,size:"lg",className:"bg-emerald-400 hover:bg-emerald-500 text-green-900 font-semibold",children:l.jsx(ot,{to:"/about",children:"Read My Story"})}),l.jsx(De,{asChild:!0,size:"lg",variant:"outline",className:"bg-white/10 hover:bg-white/20 text-white border-emerald-200",children:l.jsx(ot,{to:"/book",children:"Buy the Book"})})]})})]})]})]})]}),l.jsx("section",{className:"py-20 bg-gradient-to-r from-green-50 to-emerald-50",children:l.jsxs("div",{className:"max-w-4xl mx-auto px-4 text-center",children:[l.jsx("div",{className:"flex justify-center mb-6",children:[...Array(5)].map((e,t)=>l.jsx(j0,{className:"w-6 h-6 text-emerald-400 fill-current"},t))}),l.jsx("blockquote",{className:"text-2xl md:text-3xl font-light italic text-foreground mb-6",children:`"Nancy's words didn't just touch my heart—they awakened my spirit. For the first time in years, I remembered who I was before the world told me who to be."`}),l.jsx("cite",{className:"text-lg text-muted-foreground font-medium",children:"— Sarah M., Book Reader & Movement Member"})]})})]}),be=y.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:Ce("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));be.displayName="Card";const yr=y.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:Ce("flex flex-col space-y-1.5 p-6",e),...t}));yr.displayName="CardHeader";const vr=y.forwardRef(({className:e,...t},n)=>l.jsx("h3",{ref:n,className:Ce("text-2xl font-semibold leading-none tracking-tight",e),...t}));vr.displayName="CardTitle";const L_=y.forwardRef(({className:e,...t},n)=>l.jsx("p",{ref:n,className:Ce("text-sm text-muted-foreground",e),...t}));L_.displayName="CardDescription";const Se=y.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:Ce("p-6 pt-0",e),...t}));Se.displayName="CardContent";const F_=y.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:Ce("flex items-center p-6 pt-0",e),...t}));F_.displayName="CardFooter";const z_=()=>l.jsxs("div",{className:"pt-20 min-h-screen",children:[l.jsx("section",{className:"py-20 bg-gradient-to-r from-emerald-900 via-green-700 to-emerald-900 text-white",children:l.jsxs("div",{className:"max-w-4xl mx-auto px-4 text-center",children:[l.jsx("blockquote",{className:"text-3xl md:text-4xl font-light italic mb-6",children:`"I am not just a woman. I'm a call. A movement. A Ristora. "`}),l.jsx("cite",{className:"text-xl font-medium",children:"— Nancy Duffour"})]})}),l.jsx("section",{className:"py-20",children:l.jsx("div",{className:"max-w-4xl mx-auto px-4",children:l.jsxs("div",{className:"grid md:grid-cols-3 gap-12 items-start",children:[l.jsx("div",{className:"md:col-span-1",children:l.jsx(be,{className:"overflow-hidden sticky top-24",children:l.jsx(Se,{className:"p-0",children:l.jsxs("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"w-full h-full object-cover",style:{filter:"brightness(0.7)"},children:[l.jsx("source",{src:"https://cdn.jsdelivr.net/gh/LeviUdoh-17/voqueenAudioAssets/audio/AboutVid.mp4",type:"video/mp4"}),l.jsx("img",{src:"https://images.unsplash.com/photo-1649972904349-6e44c42644a7?auto=format&fit=crop&w=400&h=600",alt:"Nancy Duffour - Ristora",className:"w-full h-96 object-cover"})]})})})}),l.jsxs("div",{className:"md:col-span-2 space-y-8",children:[l.jsxs("div",{children:[l.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-8 text-primary",children:"Who am I? I'm not just a woman. I'm a call. A movement. A Ristora."}),l.jsxs("div",{className:"prose prose-lg max-w-none space-y-6 text-foreground",children:[l.jsx("p",{className:"text-xl leading-relaxed",children:"My name is Nancy Duffour, but Heaven calls me Ristora — and that's not just a name, it's a mantle. I was born with something deep inside me. A pull. A burden. A fire to bring Ristoration where the world has broken women, silenced truth, and normalized pain."}),l.jsx("p",{className:"text-lg leading-relaxed",children:"I am HER — and HER is not just a word. It's a mission. It means:"}),l.jsx("div",{className:"bg-muted/50 p-8 rounded-lg my-8",children:l.jsxs("ul",{className:"text-2xl font-bold space-y-4 text-primary",children:[l.jsx("li",{children:"Hope."}),l.jsx("li",{children:"Empowerment."}),l.jsx("li",{children:"Reform."})]})}),l.jsx("p",{className:"text-lg leading-relaxed",children:`HER is not a brand. It's a spiritual assignment. A wake-up call to the voiceless. A blueprint for women across Africa who have been told "you're too much," "you've failed," or "you'll never rise again."`}),l.jsx("p",{className:"text-lg leading-relaxed",children:`I've known pain. Not just the kind you talk about — the kind you hide. I've been through betrayal, abuse, deep abandonment, and seasons where even God felt far. But I never stopped hearing that still, small voice whisper, "You were born for more."`}),l.jsx("p",{className:"text-lg leading-relaxed font-medium text-primary",children:"I didn't build this platform to show off. I built it so you could find you again."}),l.jsx("p",{className:"text-lg leading-relaxed",children:"Yes, I wrote a book — I GOT THIS! I AM HER. But this website isn't just about a book. It's about a journey. A revival. A roar."})]})]}),l.jsxs("div",{className:"bg-gradient-to-r from-emerald-50 to-emerald-100 p-8 rounded-lg",children:[l.jsx("h2",{className:"text-3xl font-bold mb-6 text-primary",children:"WHO IS Ristora?"}),l.jsxs("div",{className:"space-y-4 text-lg leading-relaxed",children:[l.jsx("p",{children:"Ristora is the version of me that stopped apologizing for being powerful. She is bold. She is soft. She is fire and oil. She walks into rooms not to take space, but to shift atmospheres."}),l.jsx("p",{children:"Ristora is not a name I gave myself — it's the name God gave me in the middle of my wilderness. Because I wasn't called to be trendy. I was called to restore Africa."}),l.jsx("p",{children:"That's why everything I create — from my book, to my content, to my voice — is rooted in healing, honesty, and holy rebellion. This is not about going viral. This is about going deep."})]})]}),l.jsxs("div",{children:[l.jsx("h2",{className:"text-3xl font-bold mb-6 text-primary",children:"WHAT I STAND FOR"}),l.jsxs("ul",{className:"space-y-4 text-lg",children:[l.jsxs("li",{className:"flex items-start space-x-3",children:[l.jsx("span",{className:"text-primary-400 text-2xl",children:"•"}),l.jsx("span",{children:"Healing for every woman who's ever been broken and blamed"})]}),l.jsxs("li",{className:"flex items-start space-x-3",children:[l.jsx("span",{className:"text-primary-400 text-2xl",children:"•"}),l.jsx("span",{children:"A voice for those who've been silenced"})]}),l.jsxs("li",{className:"flex items-start space-x-3",children:[l.jsx("span",{className:"text-primary-400 text-2xl",children:"•"}),l.jsx("span",{children:"A safe space where no one has to pretend"})]}),l.jsxs("li",{className:"flex items-start space-x-3",children:[l.jsx("span",{className:"text-primary-400 text-2xl",children:"•"}),l.jsx("span",{children:"A reminder that you don't have to shrink to be loved"})]})]})]}),l.jsxs("div",{className:"bg-primary text-white p-8 rounded-lg",children:[l.jsx("h2",{className:"text-3xl font-bold mb-6",children:"THIS IS JUST THE BEGINNING"}),l.jsxs("div",{className:"space-y-4 text-lg leading-relaxed",children:[l.jsx("p",{children:"You may have met me through a post, a video, or a page in a book. But what you're seeing now is only the surface."}),l.jsx("p",{children:"There are movements loading. There are systems about to shake. There are nations that will rise again."}),l.jsx("p",{children:"And you? You're not here by accident. You're here because your spirit knows that something real is happening."}),l.jsx("p",{className:"font-bold text-primary-400",children:"You are HER too. And if I can rise, so can you."}),l.jsx("p",{className:"text-right italic mt-8",children:"Nancy Duffour — Ristora."})]})]})]})]})})})]}),wt=y.forwardRef(({className:e,type:t,...n},r)=>l.jsx("input",{type:t,className:Ce("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 file:text-foreground 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}));wt.displayName="Input";var B_="Label",Tw=y.forwardRef((e,t)=>l.jsx(Te.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Tw.displayName=B_;var Rw=Tw;const H_=Th("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),it=y.forwardRef(({className:e,...t},n)=>l.jsx(Rw,{ref:n,className:Ce(H_(),e),...t}));it.displayName=Rw.displayName;function pg(e,[t,n]){return Math.min(n,Math.max(t,e))}var $_=y.createContext(void 0);function V_(e){const t=y.useContext($_);return e||t||"ltr"}var Uu=0;function Aw(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??gg()),document.body.insertAdjacentElement("beforeend",e[1]??gg()),Uu++,()=>{Uu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Uu--}},[])}function gg(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Wu="focusScope.autoFocusOnMount",qu="focusScope.autoFocusOnUnmount",yg={bubbles:!1,cancelable:!0},U_="FocusScope",Gh=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...i}=e,[a,c]=y.useState(null),u=ln(s),d=ln(o),h=y.useRef(null),f=Ge(t,p=>c(p)),x=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let p=function(w){if(x.paused||!a)return;const S=w.target;a.contains(S)?h.current=S:kr(h.current,{select:!0})},b=function(w){if(x.paused||!a)return;const S=w.relatedTarget;S!==null&&(a.contains(S)||kr(h.current,{select:!0}))},g=function(w){if(document.activeElement===document.body)for(const N of w)N.removedNodes.length>0&&kr(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",b);const m=new MutationObserver(g);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",b),m.disconnect()}}},[r,a,x.paused]),y.useEffect(()=>{if(a){xg.add(x);const p=document.activeElement;if(!a.contains(p)){const g=new CustomEvent(Wu,yg);a.addEventListener(Wu,u),a.dispatchEvent(g),g.defaultPrevented||(W_(Q_(Pw(a)),{select:!0}),document.activeElement===p&&kr(a))}return()=>{a.removeEventListener(Wu,u),setTimeout(()=>{const g=new CustomEvent(qu,yg);a.addEventListener(qu,d),a.dispatchEvent(g),g.defaultPrevented||kr(p??document.body,{select:!0}),a.removeEventListener(qu,d),xg.remove(x)},0)}}},[a,u,d,x]);const v=y.useCallback(p=>{if(!n&&!r||x.paused)return;const b=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,g=document.activeElement;if(b&&g){const m=p.currentTarget,[w,S]=q_(m);w&&S?!p.shiftKey&&g===S?(p.preventDefault(),n&&kr(w,{select:!0})):p.shiftKey&&g===w&&(p.preventDefault(),n&&kr(S,{select:!0})):g===m&&p.preventDefault()}},[n,r,x.paused]);return l.jsx(Te.div,{tabIndex:-1,...i,ref:f,onKeyDown:v})});Gh.displayName=U_;function W_(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(kr(r,{select:t}),document.activeElement!==n)return}function q_(e){const t=Pw(e),n=vg(t,e),r=vg(t.reverse(),e);return[n,r]}function Pw(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function vg(e,t){for(const n of e)if(!K_(n,{upTo:t}))return n}function K_(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function G_(e){return e instanceof HTMLInputElement&&"select"in e}function kr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&G_(e)&&t&&e.select()}}var xg=Y_();function Y_(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=wg(e,t),e.unshift(t)},remove(t){var n;e=wg(e,t),(n=e[0])==null||n.resume()}}}function wg(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Q_(e){return e.filter(t=>t.tagName!=="A")}function Z_(e){const t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var J_=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},qs=new WeakMap,Ja=new WeakMap,Xa={},Ku=0,Ow=function(e){return e&&(e.host||Ow(e.parentNode))},X_=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ow(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},eT=function(e,t,n,r){var s=X_(t,Array.isArray(e)?e:[e]);Xa[n]||(Xa[n]=new WeakMap);var o=Xa[n],i=[],a=new Set,c=new Set(s),u=function(h){!h||a.has(h)||(a.add(h),u(h.parentNode))};s.forEach(u);var d=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(f){if(a.has(f))d(f);else try{var x=f.getAttribute(r),v=x!==null&&x!=="false",p=(qs.get(f)||0)+1,b=(o.get(f)||0)+1;qs.set(f,p),o.set(f,b),i.push(f),p===1&&v&&Ja.set(f,!0),b===1&&f.setAttribute(n,"true"),v||f.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",f,g)}})};return d(t),a.clear(),Ku++,function(){i.forEach(function(h){var f=qs.get(h)-1,x=o.get(h)-1;qs.set(h,f),o.set(h,x),f||(Ja.has(h)||h.removeAttribute(r),Ja.delete(h)),x||h.removeAttribute(n)}),Ku--,Ku||(qs=new WeakMap,qs=new WeakMap,Ja=new WeakMap,Xa={})}},Iw=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=J_(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),eT(r,s,n,"aria-hidden")):function(){return null}},Kn=function(){return Kn=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Kn.apply(this,arguments)};function Mw(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function tT(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,o;r<s;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var yl="right-scroll-bar-position",vl="width-before-scroll-bar",nT="with-scroll-bars-hidden",rT="--removed-body-scroll-bar-size";function Gu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function sT(e,t){var n=y.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var oT=typeof window<"u"?y.useLayoutEffect:y.useEffect,bg=new WeakMap;function iT(e,t){var n=sT(null,function(r){return e.forEach(function(s){return Gu(s,r)})});return oT(function(){var r=bg.get(n);if(r){var s=new Set(r),o=new Set(e),i=n.current;s.forEach(function(a){o.has(a)||Gu(a,null)}),o.forEach(function(a){s.has(a)||Gu(a,i)})}bg.set(n,e)},[e]),n}function aT(e){return e}function lT(e,t){t===void 0&&(t=aT);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var i=t(o,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(o){for(r=!0;n.length;){var i=n;n=[],i.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(o),i=n}var c=function(){var d=i;i=[],d.forEach(o)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return s}function cT(e){e===void 0&&(e={});var t=lT(null);return t.options=Kn({async:!0,ssr:!1},e),t}var Dw=function(e){var t=e.sideCar,n=Mw(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return y.createElement(r,Kn({},n))};Dw.isSideCarExport=!0;function uT(e,t){return e.useMedium(t),Dw}var Lw=cT(),Yu=function(){},Kc=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:Yu,onWheelCapture:Yu,onTouchMoveCapture:Yu}),s=r[0],o=r[1],i=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,f=e.sideCar,x=e.noIsolation,v=e.inert,p=e.allowPinchZoom,b=e.as,g=b===void 0?"div":b,m=e.gapMode,w=Mw(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=f,N=iT([n,t]),k=Kn(Kn({},w),s);return y.createElement(y.Fragment,null,d&&y.createElement(S,{sideCar:Lw,removeScrollBar:u,shards:h,noIsolation:x,inert:v,setCallbacks:o,allowPinchZoom:!!p,lockRef:n,gapMode:m}),i?y.cloneElement(y.Children.only(a),Kn(Kn({},k),{ref:N})):y.createElement(g,Kn({},k,{className:c,ref:N}),a))});Kc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Kc.classNames={fullWidth:vl,zeroRight:yl};var dT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function fT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=dT();return t&&e.setAttribute("nonce",t),e}function hT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function mT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var pT=function(){var e=0,t=null;return{add:function(n){e==0&&(t=fT())&&(hT(t,n),mT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},gT=function(){var e=pT();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Fw=function(){var e=gT(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},yT={left:0,top:0,right:0,gap:0},Qu=function(e){return parseInt(e||"",10)||0},vT=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Qu(n),Qu(r),Qu(s)]},xT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return yT;var t=vT(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},wT=Fw(),xo="data-scroll-locked",bT=function(e,t,n,r){var s=e.left,o=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
.`.concat(nT,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(a,"px ").concat(r,`;
}
body[`).concat(xo,`] {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(s,`px;
padding-top: `).concat(o,`px;
padding-right: `).concat(i,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(a,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(yl,` {
right: `).concat(a,"px ").concat(r,`;
}
.`).concat(vl,` {
margin-right: `).concat(a,"px ").concat(r,`;
}
.`).concat(yl," .").concat(yl,` {
right: 0 `).concat(r,`;
}
.`).concat(vl," .").concat(vl,` {
margin-right: 0 `).concat(r,`;
}
body[`).concat(xo,`] {
`).concat(rT,": ").concat(a,`px;
}
`)},Sg=function(){var e=parseInt(document.body.getAttribute(xo)||"0",10);return isFinite(e)?e:0},ST=function(){y.useEffect(function(){return document.body.setAttribute(xo,(Sg()+1).toString()),function(){var e=Sg()-1;e<=0?document.body.removeAttribute(xo):document.body.setAttribute(xo,e.toString())}},[])},NT=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;ST();var o=y.useMemo(function(){return xT(s)},[s]);return y.createElement(wT,{styles:bT(o,!t,s,n?"":"!important")})},ff=!1;if(typeof window<"u")try{var el=Object.defineProperty({},"passive",{get:function(){return ff=!0,!0}});window.addEventListener("test",el,el),window.removeEventListener("test",el,el)}catch{ff=!1}var Ks=ff?{passive:!1}:!1,ET=function(e){return e.tagName==="TEXTAREA"},zw=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ET(e)&&n[t]==="visible")},jT=function(e){return zw(e,"overflowY")},kT=function(e){return zw(e,"overflowX")},Ng=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=Bw(e,r);if(s){var o=Hw(e,r),i=o[1],a=o[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},CT=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},_T=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Bw=function(e,t){return e==="v"?jT(t):kT(t)},Hw=function(e,t){return e==="v"?CT(t):_T(t)},TT=function(e,t){return e==="h"&&t==="rtl"?-1:1},RT=function(e,t,n,r,s){var o=TT(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,c=t.contains(a),u=!1,d=i>0,h=0,f=0;do{var x=Hw(e,a),v=x[0],p=x[1],b=x[2],g=p-b-o*v;(v||g)&&Bw(e,a)&&(h+=g,f+=v),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&(Math.abs(h)<1||!s)||!d&&(Math.abs(f)<1||!s))&&(u=!0),u},tl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Eg=function(e){return[e.deltaX,e.deltaY]},jg=function(e){return e&&"current"in e?e.current:e},AT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},PT=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},OT=0,Gs=[];function IT(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),s=y.useState(OT++)[0],o=y.useState(Fw)[0],i=y.useRef(e);y.useEffect(function(){i.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var p=tT([e.lockRef.current],(e.shards||[]).map(jg),!0).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=y.useCallback(function(p,b){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var g=tl(p),m=n.current,w="deltaX"in p?p.deltaX:m[0]-g[0],S="deltaY"in p?p.deltaY:m[1]-g[1],N,k=p.target,j=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in p&&j==="h"&&k.type==="range")return!1;var C=Ng(j,k);if(!C)return!0;if(C?N=j:(N=j==="v"?"h":"v",C=Ng(j,k)),!C)return!1;if(!r.current&&"changedTouches"in p&&(w||S)&&(r.current=N),!N)return!0;var P=r.current||N;return RT(P,b,p,P==="h"?w:S,!0)},[]),c=y.useCallback(function(p){var b=p;if(!(!Gs.length||Gs[Gs.length-1]!==o)){var g="deltaY"in b?Eg(b):tl(b),m=t.current.filter(function(N){return N.name===b.type&&(N.target===b.target||b.target===N.shadowParent)&&AT(N.delta,g)})[0];if(m&&m.should){b.cancelable&&b.preventDefault();return}if(!m){var w=(i.current.shards||[]).map(jg).filter(Boolean).filter(function(N){return N.contains(b.target)}),S=w.length>0?a(b,w[0]):!i.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),u=y.useCallback(function(p,b,g,m){var w={name:p,delta:b,target:g,should:m,shadowParent:MT(g)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),d=y.useCallback(function(p){n.current=tl(p),r.current=void 0},[]),h=y.useCallback(function(p){u(p.type,Eg(p),p.target,a(p,e.lockRef.current))},[]),f=y.useCallback(function(p){u(p.type,tl(p),p.target,a(p,e.lockRef.current))},[]);y.useEffect(function(){return Gs.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Ks),document.addEventListener("touchmove",c,Ks),document.addEventListener("touchstart",d,Ks),function(){Gs=Gs.filter(function(p){return p!==o}),document.removeEventListener("wheel",c,Ks),document.removeEventListener("touchmove",c,Ks),document.removeEventListener("touchstart",d,Ks)}},[]);var x=e.removeScrollBar,v=e.inert;return y.createElement(y.Fragment,null,v?y.createElement(o,{styles:PT(s)}):null,x?y.createElement(NT,{gapMode:e.gapMode}):null)}function MT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const DT=uT(Lw,IT);var Yh=y.forwardRef(function(e,t){return y.createElement(Kc,Kn({},e,{ref:t,sideCar:DT}))});Yh.classNames=Kc.classNames;var LT=[" ","Enter","ArrowUp","ArrowDown"],FT=[" ","Enter"],Sa="Select",[Gc,Yc,zT]=Kx(Sa),[Qo,g4]=Pc(Sa,[zT,Hc]),Qc=Hc(),[BT,cs]=Qo(Sa),[HT,$T]=Qo(Sa),$w=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:s,onOpenChange:o,value:i,defaultValue:a,onValueChange:c,dir:u,name:d,autoComplete:h,disabled:f,required:x,form:v}=e,p=Qc(t),[b,g]=y.useState(null),[m,w]=y.useState(null),[S,N]=y.useState(!1),k=V_(u),[j=!1,C]=Kl({prop:r,defaultProp:s,onChange:o}),[P,D]=Kl({prop:i,defaultProp:a,onChange:c}),z=y.useRef(null),O=b?v||!!b.closest("form"):!0,[V,I]=y.useState(new Set),Y=Array.from(V).map(W=>W.props.value).join(";");return l.jsx(qC,{...p,children:l.jsxs(BT,{required:x,scope:t,trigger:b,onTriggerChange:g,valueNode:m,onValueNodeChange:w,valueNodeHasChildren:S,onValueNodeHasChildrenChange:N,contentId:yo(),value:P,onValueChange:D,open:j,onOpenChange:C,dir:k,triggerPointerDownPosRef:z,disabled:f,children:[l.jsx(Gc.Provider,{scope:t,children:l.jsx(HT,{scope:e.__scopeSelect,onNativeOptionAdd:y.useCallback(W=>{I(X=>new Set(X).add(W))},[]),onNativeOptionRemove:y.useCallback(W=>{I(X=>{const _=new Set(X);return _.delete(W),_})},[]),children:n})}),O?l.jsxs(h1,{"aria-hidden":!0,required:x,tabIndex:-1,name:d,autoComplete:h,value:P,onChange:W=>D(W.target.value),disabled:f,form:v,children:[P===void 0?l.jsx("option",{value:""}):null,Array.from(V)]},Y):null]})})};$w.displayName=Sa;var Vw="SelectTrigger",Uw=y.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...s}=e,o=Qc(n),i=cs(Vw,n),a=i.disabled||r,c=Ge(t,i.onTriggerChange),u=Yc(n),d=y.useRef("touch"),[h,f,x]=m1(p=>{const b=u().filter(w=>!w.disabled),g=b.find(w=>w.value===i.value),m=p1(b,p,g);m!==void 0&&i.onValueChange(m.value)}),v=p=>{a||(i.onOpenChange(!0),x()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return l.jsx(ew,{asChild:!0,...o,children:l.jsx(Te.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":f1(i.value)?"":void 0,...s,ref:c,onClick:ve(s.onClick,p=>{p.currentTarget.focus(),d.current!=="mouse"&&v(p)}),onPointerDown:ve(s.onPointerDown,p=>{d.current=p.pointerType;const b=p.target;b.hasPointerCapture(p.pointerId)&&b.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(v(p),p.preventDefault())}),onKeyDown:ve(s.onKeyDown,p=>{const b=h.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&f(p.key),!(b&&p.key===" ")&<.includes(p.key)&&(v(),p.preventDefault())})})})});Uw.displayName=Vw;var Ww="SelectValue",qw=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,children:o,placeholder:i="",...a}=e,c=cs(Ww,n),{onValueNodeHasChildrenChange:u}=c,d=o!==void 0,h=Ge(t,c.onValueNodeChange);return At(()=>{u(d)},[u,d]),l.jsx(Te.span,{...a,ref:h,style:{pointerEvents:"none"},children:f1(c.value)?l.jsx(l.Fragment,{children:i}):o})});qw.displayName=Ww;var VT="SelectIcon",Kw=y.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...s}=e;return l.jsx(Te.span,{"aria-hidden":!0,...s,ref:t,children:r||"▼"})});Kw.displayName=VT;var UT="SelectPortal",Gw=e=>l.jsx(Oc,{asChild:!0,...e});Gw.displayName=UT;var Os="SelectContent",Yw=y.forwardRef((e,t)=>{const n=cs(Os,e.__scopeSelect),[r,s]=y.useState();if(At(()=>{s(new DocumentFragment)},[]),!n.open){const o=r;return o?Bs.createPortal(l.jsx(Qw,{scope:e.__scopeSelect,children:l.jsx(Gc.Slot,{scope:e.__scopeSelect,children:l.jsx("div",{children:e.children})})}),o):null}return l.jsx(Zw,{...e,ref:t})});Yw.displayName=Os;var Sn=10,[Qw,us]=Qo(Os),WT="SelectContentImpl",Zw=y.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:o,onPointerDownOutside:i,side:a,sideOffset:c,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:x,sticky:v,hideWhenDetached:p,avoidCollisions:b,...g}=e,m=cs(Os,n),[w,S]=y.useState(null),[N,k]=y.useState(null),j=Ge(t,Z=>S(Z)),[C,P]=y.useState(null),[D,z]=y.useState(null),O=Yc(n),[V,I]=y.useState(!1),Y=y.useRef(!1);y.useEffect(()=>{if(w)return Iw(w)},[w]),Aw();const W=y.useCallback(Z=>{const[ae,...ke]=O().map(H=>H.ref.current),[ce]=ke.slice(-1),ie=document.activeElement;for(const H of Z)if(H===ie||(H==null||H.scrollIntoView({block:"nearest"}),H===ae&&N&&(N.scrollTop=0),H===ce&&N&&(N.scrollTop=N.scrollHeight),H==null||H.focus(),document.activeElement!==ie))return},[O,N]),X=y.useCallback(()=>W([C,w]),[W,C,w]);y.useEffect(()=>{V&&X()},[V,X]);const{onOpenChange:_,triggerPointerDownPosRef:L}=m;y.useEffect(()=>{if(w){let Z={x:0,y:0};const ae=ce=>{var ie,H;Z={x:Math.abs(Math.round(ce.pageX)-(((ie=L.current)==null?void 0:ie.x)??0)),y:Math.abs(Math.round(ce.pageY)-(((H=L.current)==null?void 0:H.y)??0))}},ke=ce=>{Z.x<=10&&Z.y<=10?ce.preventDefault():w.contains(ce.target)||_(!1),document.removeEventListener("pointermove",ae),L.current=null};return L.current!==null&&(document.addEventListener("pointermove",ae),document.addEventListener("pointerup",ke,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ae),document.removeEventListener("pointerup",ke,{capture:!0})}}},[w,_,L]),y.useEffect(()=>{const Z=()=>_(!1);return window.addEventListener("blur",Z),window.addEventListener("resize",Z),()=>{window.removeEventListener("blur",Z),window.removeEventListener("resize",Z)}},[_]);const[Q,q]=m1(Z=>{const ae=O().filter(ie=>!ie.disabled),ke=ae.find(ie=>ie.ref.current===document.activeElement),ce=p1(ae,Z,ke);ce&&setTimeout(()=>ce.ref.current.focus())}),ne=y.useCallback((Z,ae,ke)=>{const ce=!Y.current&&!ke;(m.value!==void 0&&m.value===ae||ce)&&(P(Z),ce&&(Y.current=!0))},[m.value]),le=y.useCallback(()=>w==null?void 0:w.focus(),[w]),pe=y.useCallback((Z,ae,ke)=>{const ce=!Y.current&&!ke;(m.value!==void 0&&m.value===ae||ce)&&z(Z)},[m.value]),ze=r==="popper"?hf:Jw,me=ze===hf?{side:a,sideOffset:c,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:x,sticky:v,hideWhenDetached:p,avoidCollisions:b}:{};return l.jsx(Qw,{scope:n,content:w,viewport:N,onViewportChange:k,itemRefCallback:ne,selectedItem:C,onItemLeave:le,itemTextRefCallback:pe,focusSelectedItem:X,selectedItemText:D,position:r,isPositioned:V,searchRef:Q,children:l.jsx(Yh,{as:As,allowPinchZoom:!0,children:l.jsx(Gh,{asChild:!0,trapped:m.open,onMountAutoFocus:Z=>{Z.preventDefault()},onUnmountAutoFocus:ve(s,Z=>{var ae;(ae=m.trigger)==null||ae.focus({preventScroll:!0}),Z.preventDefault()}),children:l.jsx(va,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:Z=>Z.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:l.jsx(ze,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:Z=>Z.preventDefault(),...g,...me,onPlaced:()=>I(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:ve(g.onKeyDown,Z=>{const ae=Z.ctrlKey||Z.altKey||Z.metaKey;if(Z.key==="Tab"&&Z.preventDefault(),!ae&&Z.key.length===1&&q(Z.key),["ArrowUp","ArrowDown","Home","End"].includes(Z.key)){let ce=O().filter(ie=>!ie.disabled).map(ie=>ie.ref.current);if(["ArrowUp","End"].includes(Z.key)&&(ce=ce.slice().reverse()),["ArrowUp","ArrowDown"].includes(Z.key)){const ie=Z.target,H=ce.indexOf(ie);ce=ce.slice(H+1)}setTimeout(()=>W(ce)),Z.preventDefault()}})})})})})})});Zw.displayName=WT;var qT="SelectItemAlignedPosition",Jw=y.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...s}=e,o=cs(Os,n),i=us(Os,n),[a,c]=y.useState(null),[u,d]=y.useState(null),h=Ge(t,j=>d(j)),f=Yc(n),x=y.useRef(!1),v=y.useRef(!0),{viewport:p,selectedItem:b,selectedItemText:g,focusSelectedItem:m}=i,w=y.useCallback(()=>{if(o.trigger&&o.valueNode&&a&&u&&p&&b&&g){const j=o.trigger.getBoundingClientRect(),C=u.getBoundingClientRect(),P=o.valueNode.getBoundingClientRect(),D=g.getBoundingClientRect();if(o.dir!=="rtl"){const ie=D.left-C.left,H=P.left-ie,de=j.left-H,Ee=j.width+de,Be=Math.max(Ee,C.width),Ue=window.innerWidth-Sn,ht=pg(H,[Sn,Math.max(Sn,Ue-Be)]);a.style.minWidth=Ee+"px",a.style.left=ht+"px"}else{const ie=C.right-D.right,H=window.innerWidth-P.right-ie,de=window.innerWidth-j.right-H,Ee=j.width+de,Be=Math.max(Ee,C.width),Ue=window.innerWidth-Sn,ht=pg(H,[Sn,Math.max(Sn,Ue-Be)]);a.style.minWidth=Ee+"px",a.style.right=ht+"px"}const z=f(),O=window.innerHeight-Sn*2,V=p.scrollHeight,I=window.getComputedStyle(u),Y=parseInt(I.borderTopWidth,10),W=parseInt(I.paddingTop,10),X=parseInt(I.borderBottomWidth,10),_=parseInt(I.paddingBottom,10),L=Y+W+V+_+X,Q=Math.min(b.offsetHeight*5,L),q=window.getComputedStyle(p),ne=parseInt(q.paddingTop,10),le=parseInt(q.paddingBottom,10),pe=j.top+j.height/2-Sn,ze=O-pe,me=b.offsetHeight/2,Z=b.offsetTop+me,ae=Y+W+Z,ke=L-ae;if(ae<=pe){const ie=z.length>0&&b===z[z.length-1].ref.current;a.style.bottom="0px";const H=u.clientHeight-p.offsetTop-p.offsetHeight,de=Math.max(ze,me+(ie?le:0)+H+X),Ee=ae+de;a.style.height=Ee+"px"}else{const ie=z.length>0&&b===z[0].ref.current;a.style.top="0px";const de=Math.max(pe,Y+p.offsetTop+(ie?ne:0)+me)+ke;a.style.height=de+"px",p.scrollTop=ae-pe+p.offsetTop}a.style.margin=`${Sn}px 0`,a.style.minHeight=Q+"px",a.style.maxHeight=O+"px",r==null||r(),requestAnimationFrame(()=>x.current=!0)}},[f,o.trigger,o.valueNode,a,u,p,b,g,o.dir,r]);At(()=>w(),[w]);const[S,N]=y.useState();At(()=>{u&&N(window.getComputedStyle(u).zIndex)},[u]);const k=y.useCallback(j=>{j&&v.current===!0&&(w(),m==null||m(),v.current=!1)},[w,m]);return l.jsx(GT,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:x,onScrollButtonChange:k,children:l.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:l.jsx(Te.div,{...s,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});Jw.displayName=qT;var KT="SelectPopperPosition",hf=y.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:s=Sn,...o}=e,i=Qc(n);return l.jsx(tw,{...i,...o,ref:t,align:r,collisionPadding:s,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});hf.displayName=KT;var[GT,Qh]=Qo(Os,{}),mf="SelectViewport",Xw=y.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...s}=e,o=us(mf,n),i=Qh(mf,n),a=Ge(t,o.onViewportChange),c=y.useRef(0);return l.jsxs(l.Fragment,{children:[l.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),l.jsx(Gc.Slot,{scope:n,children:l.jsx(Te.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:ve(s.onScroll,u=>{const d=u.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:f}=i;if(f!=null&&f.current&&h){const x=Math.abs(c.current-d.scrollTop);if(x>0){const v=window.innerHeight-Sn*2,p=parseFloat(h.style.minHeight),b=parseFloat(h.style.height),g=Math.max(p,b);if(g<v){const m=g+x,w=Math.min(v,m),S=m-w;h.style.height=w+"px",h.style.bottom==="0px"&&(d.scrollTop=S>0?S:0,h.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});Xw.displayName=mf;var e1="SelectGroup",[YT,QT]=Qo(e1),ZT=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=yo();return l.jsx(YT,{scope:n,id:s,children:l.jsx(Te.div,{role:"group","aria-labelledby":s,...r,ref:t})})});ZT.displayName=e1;var t1="SelectLabel",n1=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=QT(t1,n);return l.jsx(Te.div,{id:s.id,...r,ref:t})});n1.displayName=t1;var tc="SelectItem",[JT,r1]=Qo(tc),s1=y.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:s=!1,textValue:o,...i}=e,a=cs(tc,n),c=us(tc,n),u=a.value===r,[d,h]=y.useState(o??""),[f,x]=y.useState(!1),v=Ge(t,m=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,m,r,s)}),p=yo(),b=y.useRef("touch"),g=()=>{s||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return l.jsx(JT,{scope:n,value:r,disabled:s,textId:p,isSelected:u,onItemTextChange:y.useCallback(m=>{h(w=>w||((m==null?void 0:m.textContent)??"").trim())},[]),children:l.jsx(Gc.ItemSlot,{scope:n,value:r,disabled:s,textValue:d,children:l.jsx(Te.div,{role:"option","aria-labelledby":p,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...i,ref:v,onFocus:ve(i.onFocus,()=>x(!0)),onBlur:ve(i.onBlur,()=>x(!1)),onClick:ve(i.onClick,()=>{b.current!=="mouse"&&g()}),onPointerUp:ve(i.onPointerUp,()=>{b.current==="mouse"&&g()}),onPointerDown:ve(i.onPointerDown,m=>{b.current=m.pointerType}),onPointerMove:ve(i.onPointerMove,m=>{var w;b.current=m.pointerType,s?(w=c.onItemLeave)==null||w.call(c):b.current==="mouse"&&m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ve(i.onPointerLeave,m=>{var w;m.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:ve(i.onKeyDown,m=>{var S;((S=c.searchRef)==null?void 0:S.current)!==""&&m.key===" "||(FT.includes(m.key)&&g(),m.key===" "&&m.preventDefault())})})})})});s1.displayName=tc;var yi="SelectItemText",o1=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:s,...o}=e,i=cs(yi,n),a=us(yi,n),c=r1(yi,n),u=$T(yi,n),[d,h]=y.useState(null),f=Ge(t,g=>h(g),c.onItemTextChange,g=>{var m;return(m=a.itemTextRefCallback)==null?void 0:m.call(a,g,c.value,c.disabled)}),x=d==null?void 0:d.textContent,v=y.useMemo(()=>l.jsx("option",{value:c.value,disabled:c.disabled,children:x},c.value),[c.disabled,c.value,x]),{onNativeOptionAdd:p,onNativeOptionRemove:b}=u;return At(()=>(p(v),()=>b(v)),[p,b,v]),l.jsxs(l.Fragment,{children:[l.jsx(Te.span,{id:c.textId,...o,ref:f}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Bs.createPortal(o.children,i.valueNode):null]})});o1.displayName=yi;var i1="SelectItemIndicator",a1=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return r1(i1,n).isSelected?l.jsx(Te.span,{"aria-hidden":!0,...r,ref:t}):null});a1.displayName=i1;var pf="SelectScrollUpButton",l1=y.forwardRef((e,t)=>{const n=us(pf,e.__scopeSelect),r=Qh(pf,e.__scopeSelect),[s,o]=y.useState(!1),i=Ge(t,r.onScrollButtonChange);return At(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=c.scrollTop>0;o(u)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),s?l.jsx(u1,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});l1.displayName=pf;var gf="SelectScrollDownButton",c1=y.forwardRef((e,t)=>{const n=us(gf,e.__scopeSelect),r=Qh(gf,e.__scopeSelect),[s,o]=y.useState(!1),i=Ge(t,r.onScrollButtonChange);return At(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;o(d)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),s?l.jsx(u1,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});c1.displayName=gf;var u1=y.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...s}=e,o=us("SelectScrollButton",n),i=y.useRef(null),a=Yc(n),c=y.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return y.useEffect(()=>()=>c(),[c]),At(()=>{var d;const u=a().find(h=>h.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[a]),l.jsx(Te.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:ve(s.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:ve(s.onPointerMove,()=>{var u;(u=o.onItemLeave)==null||u.call(o),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:ve(s.onPointerLeave,()=>{c()})})}),XT="SelectSeparator",d1=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return l.jsx(Te.div,{"aria-hidden":!0,...r,ref:t})});d1.displayName=XT;var yf="SelectArrow",eR=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,s=Qc(n),o=cs(yf,n),i=us(yf,n);return o.open&&i.position==="popper"?l.jsx(nw,{...s,...r,ref:t}):null});eR.displayName=yf;function f1(e){return e===""||e===void 0}var h1=y.forwardRef((e,t)=>{const{value:n,...r}=e,s=y.useRef(null),o=Ge(t,s),i=Z_(n);return y.useEffect(()=>{const a=s.current,c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==n&&d){const h=new Event("change",{bubbles:!0});d.call(a,n),a.dispatchEvent(h)}},[i,n]),l.jsx(xa,{asChild:!0,children:l.jsx("select",{...r,ref:o,defaultValue:n})})});h1.displayName="BubbleSelect";function m1(e){const t=ln(e),n=y.useRef(""),r=y.useRef(0),s=y.useCallback(i=>{const a=n.current+i;t(a),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(a)},[t]),o=y.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,s,o]}function p1(e,t,n){const s=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=tR(e,Math.max(o,0));s.length===1&&(i=i.filter(u=>u!==n));const c=i.find(u=>u.textValue.toLowerCase().startsWith(s.toLowerCase()));return c!==n?c:void 0}function tR(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var nR=$w,g1=Uw,rR=qw,sR=Kw,oR=Gw,y1=Yw,iR=Xw,v1=n1,x1=s1,aR=o1,lR=a1,w1=l1,b1=c1,S1=d1;const N1=nR,E1=rR,Zh=y.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(g1,{ref:r,className:Ce("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,l.jsx(sR,{asChild:!0,children:l.jsx(Ah,{className:"h-4 w-4 opacity-50"})})]}));Zh.displayName=g1.displayName;const j1=y.forwardRef(({className:e,...t},n)=>l.jsx(w1,{ref:n,className:Ce("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsx(S0,{className:"h-4 w-4"})}));j1.displayName=w1.displayName;const k1=y.forwardRef(({className:e,...t},n)=>l.jsx(b1,{ref:n,className:Ce("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsx(Ah,{className:"h-4 w-4"})}));k1.displayName=b1.displayName;const Jh=y.forwardRef(({className:e,children:t,position:n="popper",...r},s)=>l.jsx(oR,{children:l.jsxs(y1,{ref:s,className:Ce("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[l.jsx(j1,{}),l.jsx(iR,{className:Ce("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),l.jsx(k1,{})]})}));Jh.displayName=y1.displayName;const cR=y.forwardRef(({className:e,...t},n)=>l.jsx(v1,{ref:n,className:Ce("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));cR.displayName=v1.displayName;const ar=y.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(x1,{ref:r,className:Ce("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(lR,{children:l.jsx(uj,{className:"h-4 w-4"})})}),l.jsx(aR,{children:t})]}));ar.displayName=x1.displayName;const uR=y.forwardRef(({className:e,...t},n)=>l.jsx(S1,{ref:n,className:Ce("-mx-1 my-1 h-px bg-muted",e),...t}));uR.displayName=S1.displayName;const Na=({children:e,className:t=""})=>l.jsxs("section",{className:`relative py-20 overflow-hidden ${t}`,children:[l.jsx("div",{className:"absolute inset-0 z-0",children:l.jsx("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"w-full h-full object-cover",style:{filter:"brightness(0.7)"},children:l.jsx("source",{src:"https://dm0qx8t0i9gc9.cloudfront.net/watermarks/video/BYhbSjKDtkvty6l0n/videoblocks-652db06f13841572379b3628_scxzjo6ob6__6f2dcef1db38bd6975e674a39683e482__P360.mp4",type:"video/mp4"})})}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/60 via-green-900/50 to-green-800/70 z-10"}),l.jsx("div",{className:"relative z-20 text-white",children:e})]}),dR=({handleAddToCart:e})=>{Kh();const[t,n]=y.useState({fullName:"",email:"",phone:"",street:"",city:"",state:"",country:"",format:"",quantity:1,notes:""});return l.jsxs("div",{className:"pt-20 min-h-screen",children:[l.jsx(Na,{children:l.jsx("div",{className:"max-w-6xl mx-auto px-4",children:l.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[l.jsx("div",{className:"text-center",children:l.jsx(be,{className:"overflow-hidden inline-block transform hover:scale-105 transition-transform",children:l.jsx(Se,{className:"p-0",children:l.jsx("img",{src:"/NDBook.jpg",alt:"I GOT THIS. I AM HER - Book Cover",className:"w-full h-auto object-cover shadow-2xl"})})})}),l.jsxs("div",{className:"space-y-8",children:[l.jsxs("h1",{className:"text-5xl md:text-6xl font-bold",children:["I GOT THIS!",l.jsx("br",{}),l.jsx("span",{className:"text-emerald-400",children:"I AM HER"})]}),l.jsx("p",{className:"text-xl leading-relaxed",children:"This book is more than words. It's a mirror. A journey from brokenness to breakthrough, from silence to strength. Written for every woman who's ever felt lost, unheard, or forgotten."}),l.jsxs("div",{className:"flex items-center space-x-2",children:[[...Array(5)].map((r,s)=>l.jsx(j0,{className:"w-6 h-6 text-yellow-400 fill-current"},s)),l.jsx("span",{className:"ml-2 text-lg",children:"(4.9/5 from 247 readers)"})]})]})]})})}),l.jsx("section",{className:"py-20",children:l.jsxs("div",{className:"max-w-6xl mx-auto px-4",children:[l.jsx("h2",{className:"text-4xl font-bold text-center mb-12",children:"What You'll Gain"}),l.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[l.jsx(be,{className:"text-center p-8 hover:shadow-lg transition-shadow",children:l.jsxs(Se,{className:"space-y-4",children:[l.jsx("div",{className:"text-4xl",children:"💚"}),l.jsx("h3",{className:"text-2xl font-bold text-primary",children:"Healing"}),l.jsx("p",{className:"text-muted-foreground",children:"Deep, authentic healing from past wounds and traumas that have held you back."})]})}),l.jsx(be,{className:"text-center p-8 hover:shadow-lg transition-shadow",children:l.jsxs(Se,{className:"space-y-4",children:[l.jsx("div",{className:"text-4xl",children:"⚡"}),l.jsx("h3",{className:"text-2xl font-bold text-primary",children:"Empowerment"}),l.jsx("p",{className:"text-muted-foreground",children:"Rediscover your voice, your power, and your purpose in this world."})]})}),l.jsx(be,{className:"text-center p-8 hover:shadow-lg transition-shadow",children:l.jsxs(Se,{className:"space-y-4",children:[l.jsx("div",{className:"text-4xl",children:"👑"}),l.jsx("h3",{className:"text-2xl font-bold text-primary",children:"Identity"}),l.jsx("p",{className:"text-muted-foreground",children:"Remember who you were before the world told you who to be."})]})})]})]})}),l.jsx("section",{className:"py-12 bg-muted/50",children:l.jsxs("div",{className:"max-w-4xl mx-auto px-4 text-center",children:[l.jsx("h2",{className:"text-3xl font-bold mb-8",children:"Get Your Copy Today"}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[l.jsx("a",{href:"https://www.amazon.com/GOT-THIS-HER-Rejection-Redemption-ebook/dp/B0FC6N3QMK/ref=sr_1_1?s=books&sr=1-1",children:l.jsxs(De,{size:"lg",className:"bg-yellow-500 hover:bg-yellow-400/90 text-white font-semibold",children:[l.jsx("img",{src:"/Amazon.webp",className:"w-5 h-5 mr-2",alt:"Amazon's Logo"}),"Buy on Amazon"]})}),l.jsx("a",{href:"https://selar.com/m/nancyduffour",children:l.jsxs(De,{size:"lg",className:"bg-purple-300 border border-purple-800 hover:bg-purple-400/90 text-black font-semibold",children:[l.jsx("img",{src:"/selarLogo.png",className:"w-5 h-5 mr-2 ",alt:"Amazon's Logo"}),"Buy on Selar"]})})]})]})}),l.jsx("section",{className:"py-20",children:l.jsx("div",{className:"max-w-4xl mx-auto px-4",children:l.jsxs(be,{children:[l.jsx(yr,{children:l.jsx(vr,{className:"text-3xl text-center",children:'Order "I GOT THIS! I AM HER"'})}),l.jsx(Se,{children:l.jsxs("div",{className:"space-y-6",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(it,{htmlFor:"format",children:"Book Format *"}),l.jsxs(N1,{onValueChange:r=>n(s=>({...s,format:r})),children:[l.jsx(Zh,{children:l.jsx(E1,{placeholder:"Select format"})}),l.jsxs(Jh,{children:[l.jsx(ar,{value:"hardcover",children:"Hardcover – ₦15,000"}),l.jsx(ar,{value:"paperback",children:"Paperback – ₦10,000"})]})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(it,{htmlFor:"quantity",children:"Quantity"}),l.jsx(wt,{id:"quantity",type:"number",min:"1",value:t.quantity,onChange:r=>n(s=>({...s,quantity:parseInt(r.target.value)}))})]}),l.jsx(De,{type:"button",size:"lg",className:"w-full bg-primary hover:bg-primary/90",onClick:()=>{if(!t.format)return alert("Select a format");const r=t.format==="hardcover"?15e3:1e4,s=Math.max(t.quantity,1);e({id:99,name:`I GOT THIS! I AM HER (${t.format})`,price:`₦${r}`,image:"/NDBook.jpg",size:"N/A",color:"N/A",quantity:s,source:"book",metadata:{format:t.format,quantity:s}}),Qi({title:"Added to Cart",description:`${name} has been added to your cart.`}),window.location.href="/checkout"},children:"Add to Cart & Checkout"})]})})]})})}),l.jsx("section",{className:"py-20 bg-muted/50",children:l.jsxs("div",{className:"max-w-4xl mx-auto px-4 text-center",children:[l.jsx("blockquote",{className:"text-2xl italic mb-6",children:`"This book didn't just change my perspective—it changed my life. Nancy's words are medicine for the soul."`}),l.jsx("cite",{className:"text-lg text-muted-foreground",children:"— Grace A., Movement Member"})]})})]})};var C1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},kg=F.createContext&&F.createContext(C1),fR=["attr","size","title"];function hR(e,t){if(e==null)return{};var n=mR(e,t),r,s;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mR(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nc.apply(this,arguments)}function Cg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function rc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cg(Object(n),!0).forEach(function(r){pR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pR(e,t,n){return t=gR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gR(e){var t=yR(e,"string");return typeof t=="symbol"?t:t+""}function yR(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _1(e){return e&&e.map((t,n)=>F.createElement(t.tag,rc({key:n},t.attr),_1(t.child)))}function Xh(e){return t=>F.createElement(vR,nc({attr:rc({},e.attr)},t),_1(e.child))}function vR(e){var t=n=>{var{attr:r,size:s,title:o}=e,i=hR(e,fR),a=s||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),F.createElement("svg",nc({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,i,{className:c,style:rc(rc({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&F.createElement("title",null,o),e.children)};return kg!==void 0?F.createElement(kg.Consumer,null,n=>t(n)):t(C1)}function T1(e){return Xh({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"},child:[]}]})(e)}function xR(e){return Xh({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm160 215.5v6.93c0 5.87-3.32 11.24-8.57 13.86l-15.39 7.7a15.485 15.485 0 0 1-15.53-.97l-18.21-12.14a15.52 15.52 0 0 0-13.5-1.81l-2.65.88c-9.7 3.23-13.66 14.79-7.99 23.3l13.24 19.86c2.87 4.31 7.71 6.9 12.89 6.9h8.21c8.56 0 15.5 6.94 15.5 15.5v11.34c0 3.35-1.09 6.62-3.1 9.3l-18.74 24.98c-1.42 1.9-2.39 4.1-2.83 6.43l-4.3 22.83c-.62 3.29-2.29 6.29-4.76 8.56a159.608 159.608 0 0 0-25 29.16l-13.03 19.55a27.756 27.756 0 0 1-23.09 12.36c-10.51 0-20.12-5.94-24.82-15.34a78.902 78.902 0 0 1-8.33-35.29V367.5c0-8.56-6.94-15.5-15.5-15.5h-25.88c-14.49 0-28.38-5.76-38.63-16a54.659 54.659 0 0 1-16-38.63v-14.06c0-17.19 8.1-33.38 21.85-43.7l27.58-20.69a54.663 54.663 0 0 1 32.78-10.93h.89c8.48 0 16.85 1.97 24.43 5.77l14.72 7.36c3.68 1.84 7.93 2.14 11.83.84l47.31-15.77c6.33-2.11 10.6-8.03 10.6-14.7 0-8.56-6.94-15.5-15.5-15.5h-10.09c-4.11 0-8.05-1.63-10.96-4.54l-6.92-6.92a15.493 15.493 0 0 0-10.96-4.54H199.5c-8.56 0-15.5-6.94-15.5-15.5v-4.4c0-7.11 4.84-13.31 11.74-15.04l14.45-3.61c3.74-.94 7-3.23 9.14-6.44l8.08-12.11c2.87-4.31 7.71-6.9 12.89-6.9h24.21c8.56 0 15.5-6.94 15.5-15.5v-21.7C359.23 71.63 422.86 131.02 441.93 208H423.5c-8.56 0-15.5 6.94-15.5 15.5z"},child:[]}]})(e)}function wR(e){return Xh({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"},child:[]}]})(e)}const bR=({product:e,selectedSize:t,onSizeChange:n,onAddToCart:r})=>l.jsxs(be,{className:"overflow-hidden hover:shadow-lg transition-shadow",children:[l.jsx(Se,{className:"p-0",children:l.jsx("img",{src:e.image,alt:e.name,className:"w-full h-80 object-cover"})}),l.jsxs(yr,{children:[l.jsx(vr,{className:"text-2xl",children:e.name}),l.jsx("p",{className:"text-muted-foreground",children:e.description}),l.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between pt-4",children:[l.jsx("span",{className:"text-3xl mb-10 md:mb-0 font-bold text-primary",children:e.price}),l.jsxs("div",{className:"flex items-center space-x-2",children:[l.jsxs(N1,{onValueChange:n,children:[l.jsx(Zh,{className:"w-24",children:l.jsx(E1,{placeholder:"Size"})}),l.jsxs(Jh,{children:[l.jsx(ar,{value:"xs",children:"XS"}),l.jsx(ar,{value:"s",children:"S"}),l.jsx(ar,{value:"m",children:"M"}),l.jsx(ar,{value:"l",children:"L"}),l.jsx(ar,{value:"xl",children:"XL"}),l.jsx(ar,{value:"xxl",children:"XXL"})]})]}),l.jsxs(De,{className:"bg-primary hover:bg-primary/90",onClick:()=>r(e,t),children:[l.jsx(E0,{className:"w-4 h-4 mr-2"}),"Add to Cart"]})]})]})]})]});var em="Dialog",[R1,y4]=Pc(em),[SR,Dn]=R1(em),A1=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:o,modal:i=!0}=e,a=y.useRef(null),c=y.useRef(null),[u=!1,d]=Kl({prop:r,defaultProp:s,onChange:o});return l.jsx(SR,{scope:t,triggerRef:a,contentRef:c,contentId:yo(),titleId:yo(),descriptionId:yo(),open:u,onOpenChange:d,onOpenToggle:y.useCallback(()=>d(h=>!h),[d]),modal:i,children:n})};A1.displayName=em;var P1="DialogTrigger",NR=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Dn(P1,n),o=Ge(t,s.triggerRef);return l.jsx(Te.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":rm(s.open),...r,ref:o,onClick:ve(e.onClick,s.onOpenToggle)})});NR.displayName=P1;var tm="DialogPortal",[ER,O1]=R1(tm,{forceMount:void 0}),I1=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,o=Dn(tm,t);return l.jsx(ER,{scope:t,forceMount:n,children:y.Children.map(r,i=>l.jsx(Wo,{present:n||o.open,children:l.jsx(Oc,{asChild:!0,container:s,children:i})}))})};I1.displayName=tm;var sc="DialogOverlay",M1=y.forwardRef((e,t)=>{const n=O1(sc,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,o=Dn(sc,e.__scopeDialog);return o.modal?l.jsx(Wo,{present:r||o.open,children:l.jsx(jR,{...s,ref:t})}):null});M1.displayName=sc;var jR=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Dn(sc,n);return l.jsx(Yh,{as:As,allowPinchZoom:!0,shards:[s.contentRef],children:l.jsx(Te.div,{"data-state":rm(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Is="DialogContent",D1=y.forwardRef((e,t)=>{const n=O1(Is,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,o=Dn(Is,e.__scopeDialog);return l.jsx(Wo,{present:r||o.open,children:o.modal?l.jsx(kR,{...s,ref:t}):l.jsx(CR,{...s,ref:t})})});D1.displayName=Is;var kR=y.forwardRef((e,t)=>{const n=Dn(Is,e.__scopeDialog),r=y.useRef(null),s=Ge(t,n.contentRef,r);return y.useEffect(()=>{const o=r.current;if(o)return Iw(o)},[]),l.jsx(L1,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ve(e.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:ve(e.onPointerDownOutside,o=>{const i=o.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&o.preventDefault()}),onFocusOutside:ve(e.onFocusOutside,o=>o.preventDefault())})}),CR=y.forwardRef((e,t)=>{const n=Dn(Is,e.__scopeDialog),r=y.useRef(!1),s=y.useRef(!1);return l.jsx(L1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:o=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const i=o.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),L1=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:o,...i}=e,a=Dn(Is,n),c=y.useRef(null),u=Ge(t,c);return Aw(),l.jsxs(l.Fragment,{children:[l.jsx(Gh,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:o,children:l.jsx(va,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":rm(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(_R,{titleId:a.titleId}),l.jsx(RR,{contentRef:c,descriptionId:a.descriptionId})]})]})}),nm="DialogTitle",F1=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Dn(nm,n);return l.jsx(Te.h2,{id:s.titleId,...r,ref:t})});F1.displayName=nm;var z1="DialogDescription",B1=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Dn(z1,n);return l.jsx(Te.p,{id:s.descriptionId,...r,ref:t})});B1.displayName=z1;var H1="DialogClose",$1=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Dn(H1,n);return l.jsx(Te.button,{type:"button",...r,ref:t,onClick:ve(e.onClick,()=>s.onOpenChange(!1))})});$1.displayName=H1;function rm(e){return e?"open":"closed"}var V1="DialogTitleWarning",[v4,U1]=EE(V1,{contentName:Is,titleName:nm,docsSlug:"dialog"}),_R=({titleId:e})=>{const t=U1(V1),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},TR="DialogDescriptionWarning",RR=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${U1(TR).contentName}}.`;return y.useEffect(()=>{var o;const s=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},AR=A1,PR=I1,W1=M1,q1=D1,K1=F1,G1=B1,OR=$1;const sm=AR,IR=PR,Y1=y.forwardRef(({className:e,...t},n)=>l.jsx(W1,{ref:n,className:Ce("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Y1.displayName=W1.displayName;const Zc=y.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(IR,{children:[l.jsx(Y1,{}),l.jsxs(q1,{ref:r,className:Ce("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,l.jsxs(OR,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[l.jsx(Lc,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Zc.displayName=q1.displayName;const om=({className:e,...t})=>l.jsx("div",{className:Ce("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});om.displayName="DialogHeader";const im=y.forwardRef(({className:e,...t},n)=>l.jsx(K1,{ref:n,className:Ce("text-lg font-semibold leading-none tracking-tight",e),...t}));im.displayName=K1.displayName;const MR=y.forwardRef(({className:e,...t},n)=>l.jsx(G1,{ref:n,className:Ce("text-sm text-muted-foreground",e),...t}));MR.displayName=G1.displayName;const DR=({isOpen:e,onClose:t,cartItems:n,onUpdateQuantity:r,onRemoveItem:s,onCheckout:o,getTotalPrice:i})=>l.jsx(sm,{open:e,onOpenChange:a=>!a&&t(),children:l.jsxs(Zc,{className:"max-w-md w-full p-6",children:[l.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Your Cart"}),n.length===0?l.jsx("p",{className:"text-center py-10 text-gray-500",children:"Cart is empty."}):l.jsx("div",{className:"space-y-4 overflow-y-auto max-h-96",children:n.map(a=>{var c,u;return l.jsxs("div",{className:"flex items-center justify-between border-b pb-3",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("img",{src:a.image,alt:a.name,className:"w-16 h-16 object-cover rounded"}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-semibold",children:a.name}),((c=a.metadata)==null?void 0:c.size)&&l.jsxs("p",{className:"text-sm text-muted",children:["Size: ",a.metadata.size]}),((u=a.metadata)==null?void 0:u.color)&&l.jsxs("p",{className:"text-sm text-muted",children:["Color: ",a.metadata.color]})]})]}),l.jsxs("div",{className:"flex flex-col items-end gap-2",children:[l.jsx("input",{type:"number",min:1,value:a.quantity,onChange:d=>{const h=parseInt(d.target.value)||1;r(a.id,a.size,h)},className:"w-14 text-center border rounded"}),l.jsx("button",{onClick:()=>{s(a.id,a.size),Qi({title:"Removed",description:`${a.name} removed from cart`,variant:"destructive"})},className:"text-red-500 hover:text-red-700",children:l.jsx(xj,{size:20})})]})]},`${a.id}-${a.size}`)})}),n.length>0&&l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"border-t mt-4 pt-4 flex justify-between font-bold",children:[l.jsx("span",{children:"Total:"}),l.jsxs("span",{children:["₦",i().toLocaleString()]})]}),l.jsxs(De,{variant:"default",className:"w-full mt-4 flex justify-center items-center gap-2",onClick:()=>{t(),o()},children:["Checkout ",l.jsx(Rh,{size:18})]})]})]})}),LR=({totalItems:e,onClick:t})=>l.jsx("div",{className:"fixed top-24 right-6 z-50",children:l.jsxs("div",{className:"relative group cursor-pointer",onClick:t,children:[l.jsxs("div",{className:"bg-primary text-white p-3 rounded-full shadow-lg hover:bg-primary/90 transition-all duration-300 group-hover:scale-110",children:[l.jsx(E0,{className:"w-6 h-6 group-hover:hidden"}),l.jsx("span",{className:"hidden group-hover:block text-sm font-semibold whitespace-nowrap px-2",children:"Check Out"})]}),e>0&&l.jsx("div",{className:"absolute -top-2 -right-2 bg-red-500 text-white text-xs rounded-full w-6 h-6 flex items-center justify-center",children:e})]})}),FR=()=>l.jsx("section",{className:"py-20 bg-muted/50",children:l.jsxs("div",{className:"max-w-4xl mx-auto px-4",children:[l.jsx("h2",{className:"text-3xl font-bold text-center mb-12",children:"Size Guide"}),l.jsx(be,{children:l.jsx(Se,{className:"p-8",children:l.jsx("div",{className:"overflow-x-auto",children:l.jsxs("table",{className:"w-full text-sm",children:[l.jsx("thead",{children:l.jsxs("tr",{className:"border-b",children:[l.jsx("th",{className:"text-left py-2",children:"Size"}),l.jsx("th",{className:"text-left py-2",children:"Chest (inches)"}),l.jsx("th",{className:"text-left py-2",children:"Length (inches)"}),l.jsx("th",{className:"text-left py-2",children:"Recommended For"})]})}),l.jsxs("tbody",{children:[l.jsxs("tr",{className:"border-b",children:[l.jsx("td",{className:"py-2 font-medium",children:"XS"}),l.jsx("td",{className:"py-2",children:"32-34"}),l.jsx("td",{className:"py-2",children:"25"}),l.jsx("td",{className:"py-2",children:"Size 4-6"})]}),l.jsxs("tr",{className:"border-b",children:[l.jsx("td",{className:"py-2 font-medium",children:"S"}),l.jsx("td",{className:"py-2",children:"34-36"}),l.jsx("td",{className:"py-2",children:"26"}),l.jsx("td",{className:"py-2",children:"Size 6-8"})]}),l.jsxs("tr",{className:"border-b",children:[l.jsx("td",{className:"py-2 font-medium",children:"M"}),l.jsx("td",{className:"py-2",children:"36-38"}),l.jsx("td",{className:"py-2",children:"27"}),l.jsx("td",{className:"py-2",children:"Size 8-10"})]}),l.jsxs("tr",{className:"border-b",children:[l.jsx("td",{className:"py-2 font-medium",children:"L"}),l.jsx("td",{className:"py-2",children:"38-40"}),l.jsx("td",{className:"py-2",children:"28"}),l.jsx("td",{className:"py-2",children:"Size 10-12"})]}),l.jsxs("tr",{className:"border-b",children:[l.jsx("td",{className:"py-2 font-medium",children:"XL"}),l.jsx("td",{className:"py-2",children:"40-42"}),l.jsx("td",{className:"py-2",children:"29"}),l.jsx("td",{className:"py-2",children:"Size 12-14"})]}),l.jsxs("tr",{children:[l.jsx("td",{className:"py-2 font-medium",children:"XXL"}),l.jsx("td",{className:"py-2",children:"42-44"}),l.jsx("td",{className:"py-2",children:"30"}),l.jsx("td",{className:"py-2",children:"Size 14-16"})]})]})]})})})})]})}),_g=[{name:"Sarah Johnson",location:"Lagos, Nigeria",product:"I AM HER T-Shirt"},{name:"Amara Okafor",location:"Abuja, Nigeria",product:"I AM HER Hat"},{name:"Blessing Adebayo",location:"Port Harcourt, Nigeria",product:"I AM HER Tote Bag"},{name:"Grace Ikenna",location:"Ibadan, Nigeria",product:"I AM HER Journal"},{name:"Faith Williams",location:"Kano, Nigeria",product:"I AM HER T-Shirt"},{name:"Joy Emeka",location:"Enugu, Nigeria",product:"I AM HER Hat"},{name:"Hope Adamu",location:"Kaduna, Nigeria",product:"I AM HER Tote Bag"},{name:"Peace Okoro",location:"Calabar, Nigeria",product:"I AM HER Journal"},{name:"Love Nnamdi",location:"Owerri, Nigeria",product:"I AM HER T-Shirt"},{name:"Mercy Abubakar",location:"Jos, Nigeria",product:"I AM HER Hat"},{name:"Favour Ogbonna",location:"Uyo, Nigeria",product:"I AM HER Tote Bag"},{name:"Divine Yakubu",location:"Minna, Nigeria",product:"I AM HER Journal"},{name:"Precious Obi",location:"Awka, Nigeria",product:"I AM HER T-Shirt"},{name:"Chioma Dike",location:"Aba, Nigeria",product:"I AM HER Hat"},{name:"Ebele Nwachukwu",location:"Onitsha, Nigeria",product:"I AM HER Tote Bag"},{name:"Nkechi Okwu",location:"Nsukka, Nigeria",product:"I AM HER Journal"},{name:"Adanna Eze",location:"Makurdi, Nigeria",product:"I AM HER T-Shirt"},{name:"Chinyere Agu",location:"Lokoja, Nigeria",product:"I AM HER Hat"},{name:"Ugochi Nwosu",location:"Abeokuta, Nigeria",product:"I AM HER Tote Bag"},{name:"Ngozi Peters",location:"Benin City, Nigeria",product:"I AM HER Journal"},{name:"Ifeoma Adeleke",location:"Osogbo, Nigeria",product:"I AM HER T-Shirt"},{name:"Chiamaka Okonkwo",location:"Akure, Nigeria",product:"I AM HER Hat"},{name:"Adaeze Chukwu",location:"Ado-Ekiti, Nigeria",product:"I AM HER Tote Bag"},{name:"Chidimma Ibe",location:"Ilorin, Nigeria",product:"I AM HER Journal"},{name:"Obioma Nwankwo",location:"Sokoto, Nigeria",product:"I AM HER T-Shirt"},{name:"Chinaza Okoro",location:"Gombe, Nigeria",product:"I AM HER Hat"},{name:"Adaora Udoh",location:"Umuahia, Nigeria",product:"I AM HER Tote Bag"},{name:"Nneka Onyeka",location:"Abakaliki, Nigeria",product:"I AM HER Journal"},{name:"Chika Onwuegbu",location:"Ikom, Nigeria",product:"I AM HER T-Shirt"},{name:"Amaka Okafor",location:"Yenagoa, Nigeria",product:"I AM HER Hat"},{name:"Oluchi Azubuike",location:"Warri, Nigeria",product:"I AM HER Tote Bag"},{name:"Cynthia Ogbu",location:"Sapele, Nigeria",product:"I AM HER Journal"},{name:"Adaure Igwe",location:"Asaba, Nigeria",product:"I AM HER T-Shirt"},{name:"Oge Ndukwe",location:"Agbor, Nigeria",product:"I AM HER Hat"},{name:"Kemi Adeyemi",location:"Ogbomoso, Nigeria",product:"I AM HER Tote Bag"},{name:"Folake Adesanya",location:"Ile-Ife, Nigeria",product:"I AM HER Journal"},{name:"Taiwo Olaleye",location:"Ondo, Nigeria",product:"I AM HER T-Shirt"},{name:"Bisi Ogundimu",location:"Ikeja, Nigeria",product:"I AM HER Hat"},{name:"Yemi Adebisi",location:"Epe, Nigeria",product:"I AM HER Tote Bag"},{name:"Funmi Ogundipe",location:"Badagry, Nigeria",product:"I AM HER Journal"},{name:"Ronke Fashola",location:"Ikorodu, Nigeria",product:"I AM HER T-Shirt"},{name:"Jumoke Adebayo",location:"Sagamu, Nigeria",product:"I AM HER Hat"},{name:"Stella Adebolu",location:"Akure, Nigeria",product:"I AM HER Tote Bag"},{name:"Victoria Ogundiran",location:"Ile-Oluji, Nigeria",product:"I AM HER Journal"},{name:"Mary Oluwaseun",location:"Ijero, Nigeria",product:"I AM HER T-Shirt"},{name:"Esther Olajide",location:"Emure, Nigeria",product:"I AM HER Hat"},{name:"Ruth Adeyinka",location:"Aramoko, Nigeria",product:"I AM HER Tote Bag"},{name:"Rebecca Olatunji",location:"Igbara-Odo, Nigeria",product:"I AM HER Journal"},{name:"Deborah Oni",location:"Otun, Nigeria",product:"I AM HER T-Shirt"},{name:"Hannah Adeoye",location:"Ikere, Nigeria",product:"I AM HER Hat"},{name:"Esther Adelusi",location:"Efon, Nigeria",product:"I AM HER Tote Bag"},{name:"Rachael Adeyemi",location:"Iyin",product:"I AM HER Journal"},{name:"Jennifer Afolabi",location:"Ise",product:"I AM HER T-Shirt"},{name:"Sandra Olumuyiwa",location:"Omuo",product:"I AM HER Hat"},{name:"Patricia Adebayo",location:"Ikole",product:"I AM HER Tote Bag"},{name:"Angela Oguntoyinbo",location:"Oye",product:"I AM HER Journal"},{name:"Monica Williams",location:"Moba",product:"I AM HER T-Shirt"},{name:"Helen Adeyemi",location:"Ido-Osi",product:"I AM HER Hat"},{name:"Catherine Olumide",location:"Gboyin",product:"I AM HER Tote Bag"},{name:"Grace Ogundimu",location:"Gbonyin",product:"I AM HER Journal"},{name:"Elizabeth Adebayo",location:"Ekiti-West",product:"I AM HER T-Shirt"},{name:"Margaret Ajayi",location:"Ekiti-East",product:"I AM HER Hat"},{name:"Linda Oluwole",location:"Ekiti South-West",product:"I AM HER Tote Bag"},{name:"Dorothy Adeyemi",location:"Emure-Ekiti",product:"I AM HER Journal"},{name:"Susan Oguntade",location:"Irepodun-Ifelodun",product:"I AM HER T-Shirt"},{name:"Comfort Adebajo",location:"Ijero-Ekiti",product:"I AM HER Hat"},{name:"Agnes Ogunleye",location:"Iju-Itaogbolu",product:"I AM HER Tote Bag"},{name:"Jane Adeyemi",location:"Ikere-Ekiti",product:"I AM HER Journal"},{name:"Rose Ogundipe",location:"Ikole-Ekiti",product:"I AM HER T-Shirt"},{name:"Florence Adebayo",location:"Ilejemeje",product:"I AM HER Hat"},{name:"Bridget Ogundimu",location:"Irepodun",product:"I AM HER Tote Bag"},{name:"Cecilia Adeyemi",location:"Ise-Orun",product:"I AM HER Journal"},{name:"Josephine Olumide",location:"Moba-Ekiti",product:"I AM HER T-Shirt"},{name:"Christine Oguntoyinbo",location:"Oye-Ekiti",product:"I AM HER Hat"},{name:"Felicia Adebayo",location:"Ado-Ekiti",product:"I AM HER Tote Bag"},{name:"Gladys Ajayi",location:"Efon-Alaaye",product:"I AM HER Journal"},{name:"Joyce Oluwole",location:"Ekiti-West",product:"I AM HER T-Shirt"},{name:"Alice Adeyemi",location:"Gbonyin",product:"I AM HER Hat"},{name:"Patience Ogundipe",location:"Gboyin",product:"I AM HER Tote Bag"},{name:"Vivian Adebajo",location:"Ido-Osi",product:"I AM HER Journal"},{name:"Charity Ogunleye",location:"Ifelodun",product:"I AM HER T-Shirt"},{name:"Lydia Adeyemi",location:"Ijero",product:"I AM HER Hat"},{name:"Priscilla Ogundiran",location:"Iju",product:"I AM HER Tote Bag"},{name:"Eunice Adebayo",location:"Ikere",product:"I AM HER Journal"},{name:"Miriam Ogundimu",location:"Ikole",product:"I AM HER T-Shirt"},{name:"Naomi Adeyemi",location:"Ilejemeje",product:"I AM HER Hat"},{name:"Abigail Olumide",location:"Irepodun",product:"I AM HER Tote Bag"},{name:"Sarah Oguntoyinbo",location:"Ise",product:"I AM HER Journal"},{name:"Rachel Adebayo",location:"Itaogbolu",product:"I AM HER T-Shirt"},{name:"Lydia Ajayi",location:"Moba",product:"I AM HER Hat"},{name:"Hannah Oluwole",location:"Omuo",product:"I AM HER Tote Bag"},{name:"Esther Adeyemi",location:"Orun",product:"I AM HER Journal"},{name:"Mary Ogundipe",location:"Oye",product:"I AM HER T-Shirt"},{name:"Ruth Adebajo",location:"Aramoko",product:"I AM HER Hat"},{name:"Deborah Ogunleye",location:"Efon",product:"I AM HER Tote Bag"},{name:"Rebecca Adeyemi",location:"Emure",product:"I AM HER Journal"},{name:"Esther Ogundiran",location:"Igbara-Odo",product:"I AM HER T-Shirt"},{name:"Jennifer Adebayo",location:"Ijero",product:"I AM HER Hat"},{name:"Grace Ogundimu",location:"Ikere",product:"I AM HER Tote Bag"},{name:"Elizabeth Adeyemi",location:"Ikole",product:"I AM HER Journal"},{name:"Margaret Olumide",location:"Ile-Ife",product:"I AM HER T-Shirt"},{name:"Linda Oguntoyinbo",location:"Ile-Oluji",product:"I AM HER Hat"},{name:"Dorothy Adebayo",location:"Irepodun",product:"I AM HER Tote Bag"},{name:"Susan Ajayi",location:"Ise-Orun",product:"I AM HER Journal"},{name:"Comfort Oluwole",location:"Iyin",product:"I AM HER T-Shirt"},{name:"Agnes Adeyemi",location:"Moba",product:"I AM HER Hat"},{name:"Jane Ogundipe",location:"Omuo",product:"I AM HER Tote Bag"},{name:"Rose Adebajo",location:"Otun",product:"I AM HER Journal"},{name:"Florence Ogunleye",location:"Oye",product:"I AM HER T-Shirt"},{name:"Bridget Adeyemi",location:"Ado-Ekiti",product:"I AM HER Hat"},{name:"Cecilia Ogundiran",location:"Akure",product:"I AM HER Tote Bag"},{name:"Josephine Adebayo",location:"Ekiti-East",product:"I AM HER Journal"},{name:"Christine Ogundimu",location:"Ekiti-West",product:"I AM HER T-Shirt"}],zR=()=>{const[e,t]=y.useState([]),n=()=>{const o=Math.floor(Math.random()*_g.length);return _g[o]},r=()=>{const i={...n(),id:Date.now()+Math.random()};t(a=>[...a,i]),setTimeout(()=>{t(a=>a.filter(c=>c.id!==i.id))},5e3)},s=o=>{t(i=>i.filter(a=>a.id!==o))};return y.useEffect(()=>{const o=setTimeout(()=>{r()},2e3),i=setInterval(()=>{Math.random()>.3&&r()},Math.random()*7e3+8e3);return()=>{clearTimeout(o),clearInterval(i)}},[]),l.jsx("div",{className:"fixed bottom-4 left-4 z-50 space-y-2 max-w-sm",children:e.map(o=>l.jsx(be,{className:"bg-white shadow-lg border-l-4 border-l-primary animate-slide-in-left",children:l.jsx(Se,{className:"p-4",children:l.jsxs("div",{className:"flex items-start justify-between",children:[l.jsxs("div",{className:"flex items-start space-x-3",children:[l.jsx("div",{className:"bg-primary/10 p-2 rounded-full",children:l.jsx(vj,{className:"w-4 h-4 text-primary"})}),l.jsxs("div",{className:"flex-1",children:[l.jsx("p",{className:"font-semibold text-sm text-gray-900",children:o.name}),l.jsxs("p",{className:"text-xs text-gray-600 flex items-center mt-1",children:[l.jsx(Dc,{className:"w-3 h-3 mr-1"}),o.location]}),l.jsxs("p",{className:"text-xs text-primary font-medium mt-1",children:["just bought ",o.product]})]})]}),l.jsx("button",{onClick:()=>s(o.id),className:"text-gray-400 hover:text-gray-600 ml-2",children:l.jsx(Lc,{className:"w-3 h-3"})})]})})},o.id))})},BR=({cartItems:e,handleAddToCart:t,onUpdateQuantity:n,onRemoveItem:r,getTotalPrice:s,getTotalItems:o,onCheckout:i})=>{const[a,c]=y.useState(""),[u,d]=y.useState(!1),h=[{id:1,name:"I AM HER T-Shirt",price:"₦8,000",image:"https://unsplash.com/photos/acn5ERAeSb4/download?force=true",description:"Premium cotton t-shirt with empowering message"},{id:2,name:"I AM HER Hat",price:"₦5,000",image:"https://unsplash.com/photos/t8HiP3e5abg/download?force=true",description:"Adjustable cap for everyday empowerment"},{id:3,name:"I AM HER Tote Bag",price:"₦6,500",image:"https://unsplash.com/photos/smTDI-z1rlY/download?force=true",description:"Eco-friendly tote for the empowered woman"},{id:4,name:"I AM HER Journal",price:"₦7,500",image:"https://unsplash.com/photos/y7GlIdTUOvo/download?force=true",description:"Daily affirmations and reflection journal"}],f=(x,v)=>{if(!v){Qi({title:"Size Required",description:"Pick a size before adding to cart.",variant:"destructive"});return}t({id:x.id,name:x.name,price:x.price,image:x.image,size:v,color:"Black",quantity:1,source:"merch",metadata:{size:v,color:"Black"}},{}),Qi({title:"Added to Cart",description:`${x.name} (Size ${v}) added.`})};return l.jsxs("div",{className:"pt-20 min-h-screen",children:[l.jsx(zR,{}),l.jsx(LR,{totalItems:o(),onClick:()=>d(!0)}),l.jsx("section",{className:"py-16 md:py-20 bg-gradient-to-r from-emerald-400 via-emerald-500 to-emerald-600 text-black",children:l.jsxs("div",{className:"max-w-6xl mx-auto px-4 text-center",children:[l.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold mb-6",children:"I AM HER Collection"}),l.jsx("p",{className:"text-lg md:text-xl mb-6 md:mb-8 max-w-3xl mx-auto leading-relaxed",children:"When you wear this, you're walking in healing. You're declaring your worth. You're part of the movement."}),l.jsx("blockquote",{className:"text-xl md:text-2xl italic font-light",children:`"When you wear this, you're walking in healing."`})]})}),l.jsx("section",{className:"py-20",children:l.jsx("div",{className:"max-w-6xl mx-auto px-4",children:l.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-2 gap-8",children:h.map(x=>l.jsx(bR,{product:x,selectedSize:a,onSizeChange:c,onAddToCart:f},x.id))})})}),l.jsx(FR,{}),l.jsx(DR,{isOpen:u,onClose:()=>d(!1),cartItems:e,onUpdateQuantity:n,onRemoveItem:r,onCheckout:i,getTotalPrice:s,getTotalItems:o}),l.jsx("section",{className:"py-20 bg-primary text-white",children:l.jsxs("div",{className:"max-w-4xl mx-auto px-4 text-center",children:[l.jsx("h2",{className:"text-4xl font-bold mb-8",children:"More Than Merchandise"}),l.jsx("p",{className:"text-xl leading-relaxed mb-8",children:"Every piece you wear is a declaration. A reminder. A movement. You're not just buying clothing—you're joining a sisterhood of women who refuse to stay silent."}),l.jsx("div",{className:"grid md:grid-cols-3 gap-8 text-center",children:[...Array(3)].map((x,v)=>l.jsxs("div",{children:[l.jsx(wR,{className:"w-12 h-12 mx-auto mb-4 text-white"}),l.jsx("h3",{className:"text-xl font-bold mb-2",children:["Premium Quality","Empowering Message","Supporting Women"][v]}),l.jsx("p",{children:["Made with love and attention to detail","Every item carries the HER movement","Proceeds support women's empowerment initiatives"][v]})]},v))})]})})]})};function Q1(e,t){return function(){return e.apply(t,arguments)}}const{toString:HR}=Object.prototype,{getPrototypeOf:am}=Object,{iterator:Jc,toStringTag:Z1}=Symbol,Xc=(e=>t=>{const n=HR.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ln=e=>(e=e.toLowerCase(),t=>Xc(t)===e),eu=e=>t=>typeof t===e,{isArray:Zo}=Array,ra=eu("undefined");function $R(e){return e!==null&&!ra(e)&&e.constructor!==null&&!ra(e.constructor)&&Kt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const J1=Ln("ArrayBuffer");function VR(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&J1(e.buffer),t}const UR=eu("string"),Kt=eu("function"),X1=eu("number"),tu=e=>e!==null&&typeof e=="object",WR=e=>e===!0||e===!1,xl=e=>{if(Xc(e)!=="object")return!1;const t=am(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Z1 in e)&&!(Jc in e)},qR=Ln("Date"),KR=Ln("File"),GR=Ln("Blob"),YR=Ln("FileList"),QR=e=>tu(e)&&Kt(e.pipe),ZR=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Kt(e.append)&&((t=Xc(e))==="formdata"||t==="object"&&Kt(e.toString)&&e.toString()==="[object FormData]"))},JR=Ln("URLSearchParams"),[XR,eA,tA,nA]=["ReadableStream","Request","Response","Headers"].map(Ln),rA=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ea(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Zo(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function eb(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const ys=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tb=e=>!ra(e)&&e!==ys;function vf(){const{caseless:e}=tb(this)&&this||{},t={},n=(r,s)=>{const o=e&&eb(t,s)||s;xl(t[o])&&xl(r)?t[o]=vf(t[o],r):xl(r)?t[o]=vf({},r):Zo(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Ea(arguments[r],n);return t}const sA=(e,t,n,{allOwnKeys:r}={})=>(Ea(t,(s,o)=>{n&&Kt(s)?e[o]=Q1(s,n):e[o]=s},{allOwnKeys:r}),e),oA=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),iA=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},aA=(e,t,n,r)=>{let s,o,i;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&am(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},lA=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},cA=e=>{if(!e)return null;if(Zo(e))return e;let t=e.length;if(!X1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},uA=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&am(Uint8Array)),dA=(e,t)=>{const r=(e&&e[Jc]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},fA=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},hA=Ln("HTMLFormElement"),mA=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Tg=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),pA=Ln("RegExp"),nb=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ea(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},gA=e=>{nb(e,(t,n)=>{if(Kt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Kt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},yA=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return Zo(e)?r(e):r(String(e).split(t)),n},vA=()=>{},xA=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function wA(e){return!!(e&&Kt(e.append)&&e[Z1]==="FormData"&&e[Jc])}const bA=e=>{const t=new Array(10),n=(r,s)=>{if(tu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=Zo(r)?[]:{};return Ea(r,(i,a)=>{const c=n(i,s+1);!ra(c)&&(o[a]=c)}),t[s]=void 0,o}}return r};return n(e,0)},SA=Ln("AsyncFunction"),NA=e=>e&&(tu(e)||Kt(e))&&Kt(e.then)&&Kt(e.catch),rb=((e,t)=>e?setImmediate:t?((n,r)=>(ys.addEventListener("message",({source:s,data:o})=>{s===ys&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ys.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Kt(ys.postMessage)),EA=typeof queueMicrotask<"u"?queueMicrotask.bind(ys):typeof process<"u"&&process.nextTick||rb,jA=e=>e!=null&&Kt(e[Jc]),R={isArray:Zo,isArrayBuffer:J1,isBuffer:$R,isFormData:ZR,isArrayBufferView:VR,isString:UR,isNumber:X1,isBoolean:WR,isObject:tu,isPlainObject:xl,isReadableStream:XR,isRequest:eA,isResponse:tA,isHeaders:nA,isUndefined:ra,isDate:qR,isFile:KR,isBlob:GR,isRegExp:pA,isFunction:Kt,isStream:QR,isURLSearchParams:JR,isTypedArray:uA,isFileList:YR,forEach:Ea,merge:vf,extend:sA,trim:rA,stripBOM:oA,inherits:iA,toFlatObject:aA,kindOf:Xc,kindOfTest:Ln,endsWith:lA,toArray:cA,forEachEntry:dA,matchAll:fA,isHTMLForm:hA,hasOwnProperty:Tg,hasOwnProp:Tg,reduceDescriptors:nb,freezeMethods:gA,toObjectSet:yA,toCamelCase:mA,noop:vA,toFiniteNumber:xA,findKey:eb,global:ys,isContextDefined:tb,isSpecCompliantForm:wA,toJSONObject:bA,isAsyncFn:SA,isThenable:NA,setImmediate:rb,asap:EA,isIterable:jA};function ge(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}R.inherits(ge,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.status}}});const sb=ge.prototype,ob={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ob[e]={value:e}});Object.defineProperties(ge,ob);Object.defineProperty(sb,"isAxiosError",{value:!0});ge.from=(e,t,n,r,s,o)=>{const i=Object.create(sb);return R.toFlatObject(e,i,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),ge.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const kA=null;function xf(e){return R.isPlainObject(e)||R.isArray(e)}function ib(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function Rg(e,t,n){return e?e.concat(t).map(function(s,o){return s=ib(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function CA(e){return R.isArray(e)&&!e.some(xf)}const _A=R.toFlatObject(R,{},null,function(t){return/^is[A-Z]/.test(t)});function nu(e,t,n){if(!R.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=R.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,b){return!R.isUndefined(b[p])});const r=n.metaTokens,s=n.visitor||d,o=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(s))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(R.isDate(v))return v.toISOString();if(R.isBoolean(v))return v.toString();if(!c&&R.isBlob(v))throw new ge("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(v)||R.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,p,b){let g=v;if(v&&!b&&typeof v=="object"){if(R.endsWith(p,"{}"))p=r?p:p.slice(0,-2),v=JSON.stringify(v);else if(R.isArray(v)&&CA(v)||(R.isFileList(v)||R.endsWith(p,"[]"))&&(g=R.toArray(v)))return p=ib(p),g.forEach(function(w,S){!(R.isUndefined(w)||w===null)&&t.append(i===!0?Rg([p],S,o):i===null?p:p+"[]",u(w))}),!1}return xf(v)?!0:(t.append(Rg(b,p,o),u(v)),!1)}const h=[],f=Object.assign(_A,{defaultVisitor:d,convertValue:u,isVisitable:xf});function x(v,p){if(!R.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+p.join("."));h.push(v),R.forEach(v,function(g,m){(!(R.isUndefined(g)||g===null)&&s.call(t,g,R.isString(m)?m.trim():m,p,f))===!0&&x(g,p?p.concat(m):[m])}),h.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return x(e),t}function Ag(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function lm(e,t){this._pairs=[],e&&nu(e,this,t)}const ab=lm.prototype;ab.append=function(t,n){this._pairs.push([t,n])};ab.toString=function(t){const n=t?function(r){return t.call(this,r,Ag)}:Ag;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function TA(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function lb(e,t,n){if(!t)return e;const r=n&&n.encode||TA;R.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=R.isURLSearchParams(t)?t.toString():new lm(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Pg{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){R.forEach(this.handlers,function(r){r!==null&&t(r)})}}const cb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},RA=typeof URLSearchParams<"u"?URLSearchParams:lm,AA=typeof FormData<"u"?FormData:null,PA=typeof Blob<"u"?Blob:null,OA={isBrowser:!0,classes:{URLSearchParams:RA,FormData:AA,Blob:PA},protocols:["http","https","file","blob","url","data"]},cm=typeof window<"u"&&typeof document<"u",wf=typeof navigator=="object"&&navigator||void 0,IA=cm&&(!wf||["ReactNative","NativeScript","NS"].indexOf(wf.product)<0),MA=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",DA=cm&&window.location.href||"http://localhost",LA=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cm,hasStandardBrowserEnv:IA,hasStandardBrowserWebWorkerEnv:MA,navigator:wf,origin:DA},Symbol.toStringTag,{value:"Module"})),Tt={...LA,...OA};function FA(e,t){return nu(e,new Tt.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return Tt.isNode&&R.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function zA(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function BA(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function ub(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),c=o>=n.length;return i=!i&&R.isArray(s)?s.length:i,c?(R.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!a):((!s[i]||!R.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&R.isArray(s[i])&&(s[i]=BA(s[i])),!a)}if(R.isFormData(e)&&R.isFunction(e.entries)){const n={};return R.forEachEntry(e,(r,s)=>{t(zA(r),s,n,0)}),n}return null}function HA(e,t,n){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const ja={transitional:cb,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=R.isObject(t);if(o&&R.isHTMLForm(t)&&(t=new FormData(t)),R.isFormData(t))return s?JSON.stringify(ub(t)):t;if(R.isArrayBuffer(t)||R.isBuffer(t)||R.isStream(t)||R.isFile(t)||R.isBlob(t)||R.isReadableStream(t))return t;if(R.isArrayBufferView(t))return t.buffer;if(R.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return FA(t,this.formSerializer).toString();if((a=R.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return nu(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),HA(t)):t}],transformResponse:[function(t){const n=this.transitional||ja.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(R.isResponse(t)||R.isReadableStream(t))return t;if(t&&R.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?ge.from(a,ge.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Tt.classes.FormData,Blob:Tt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],e=>{ja.headers[e]={}});const $A=R.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),VA=e=>{const t={};let n,r,s;return e&&e.split(`
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&$A[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Og=Symbol("internals");function ui(e){return e&&String(e).trim().toLowerCase()}function wl(e){return e===!1||e==null?e:R.isArray(e)?e.map(wl):String(e)}function UA(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const WA=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Zu(e,t,n,r,s){if(R.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!R.isString(t)){if(R.isString(r))return t.indexOf(r)!==-1;if(R.isRegExp(r))return r.test(t)}}function qA(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function KA(e,t){const n=R.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class Gt{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(a,c,u){const d=ui(c);if(!d)throw new Error("header name must be a non-empty string");const h=R.findKey(s,d);(!h||s[h]===void 0||u===!0||u===void 0&&s[h]!==!1)&&(s[h||c]=wl(a))}const i=(a,c)=>R.forEach(a,(u,d)=>o(u,d,c));if(R.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(R.isString(t)&&(t=t.trim())&&!WA(t))i(VA(t),n);else if(R.isObject(t)&&R.isIterable(t)){let a={},c,u;for(const d of t){if(!R.isArray(d))throw TypeError("Object iterator must return a key-value pair");a[u=d[0]]=(c=a[u])?R.isArray(c)?[...c,d[1]]:[c,d[1]]:d[1]}i(a,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=ui(t),t){const r=R.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return UA(s);if(R.isFunction(n))return n.call(this,s,r);if(R.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ui(t),t){const r=R.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Zu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=ui(i),i){const a=R.findKey(r,i);a&&(!n||Zu(r,r[a],a,n))&&(delete r[a],s=!0)}}return R.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||Zu(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return R.forEach(this,(s,o)=>{const i=R.findKey(r,o);if(i){n[i]=wl(s),delete n[o];return}const a=t?qA(o):String(o).trim();a!==o&&delete n[o],n[a]=wl(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return R.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&R.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Og]=this[Og]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=ui(i);r[a]||(KA(s,i),r[a]=!0)}return R.isArray(t)?t.forEach(o):o(t),this}}Gt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(Gt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});R.freezeMethods(Gt);function Ju(e,t){const n=this||ja,r=t||n,s=Gt.from(r.headers);let o=r.data;return R.forEach(e,function(a){o=a.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function db(e){return!!(e&&e.__CANCEL__)}function Jo(e,t,n){ge.call(this,e??"canceled",ge.ERR_CANCELED,t,n),this.name="CanceledError"}R.inherits(Jo,ge,{__CANCEL__:!0});function fb(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ge("Request failed with status code "+n.status,[ge.ERR_BAD_REQUEST,ge.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function GA(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function YA(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=r[o];i||(i=u),n[s]=c,r[s]=u;let h=o,f=0;for(;h!==s;)f+=n[h++],h=h%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i<t)return;const x=d&&u-d;return x?Math.round(f*1e3/x):void 0}}function QA(e,t){let n=0,r=1e3/t,s,o;const i=(u,d=Date.now())=>{n=d,s=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),h=d-n;h>=r?i(u,d):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},r-h)))},()=>s&&i(s)]}const oc=(e,t,n=3)=>{let r=0;const s=YA(50,250);return QA(o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,c=i-r,u=s(c),d=i<=a;r=i;const h={loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&d?(a-i)/u:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},n)},Ig=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Mg=e=>(...t)=>R.asap(()=>e(...t)),ZA=Tt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Tt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Tt.origin),Tt.navigator&&/(msie|trident)/i.test(Tt.navigator.userAgent)):()=>!0,JA=Tt.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];R.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),R.isString(r)&&i.push("path="+r),R.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function XA(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function eP(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function hb(e,t,n){let r=!XA(t);return e&&(r||n==!1)?eP(e,t):t}const Dg=e=>e instanceof Gt?{...e}:e;function Ms(e,t){t=t||{};const n={};function r(u,d,h,f){return R.isPlainObject(u)&&R.isPlainObject(d)?R.merge.call({caseless:f},u,d):R.isPlainObject(d)?R.merge({},d):R.isArray(d)?d.slice():d}function s(u,d,h,f){if(R.isUndefined(d)){if(!R.isUndefined(u))return r(void 0,u,h,f)}else return r(u,d,h,f)}function o(u,d){if(!R.isUndefined(d))return r(void 0,d)}function i(u,d){if(R.isUndefined(d)){if(!R.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function a(u,d,h){if(h in t)return r(u,d);if(h in e)return r(void 0,u)}const c={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(u,d,h)=>s(Dg(u),Dg(d),h,!0)};return R.forEach(Object.keys(Object.assign({},e,t)),function(d){const h=c[d]||s,f=h(e[d],t[d],d);R.isUndefined(f)&&h!==a||(n[d]=f)}),n}const mb=e=>{const t=Ms({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:a}=t;t.headers=i=Gt.from(i),t.url=lb(hb(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(R.isFormData(n)){if(Tt.hasStandardBrowserEnv||Tt.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...d]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Tt.hasStandardBrowserEnv&&(r&&R.isFunction(r)&&(r=r(t)),r||r!==!1&&ZA(t.url))){const u=s&&o&&JA.read(o);u&&i.set(s,u)}return t},tP=typeof XMLHttpRequest<"u",nP=tP&&function(e){return new Promise(function(n,r){const s=mb(e);let o=s.data;const i=Gt.from(s.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=s,d,h,f,x,v;function p(){x&&x(),v&&v(),s.cancelToken&&s.cancelToken.unsubscribe(d),s.signal&&s.signal.removeEventListener("abort",d)}let b=new XMLHttpRequest;b.open(s.method.toUpperCase(),s.url,!0),b.timeout=s.timeout;function g(){if(!b)return;const w=Gt.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),N={data:!a||a==="text"||a==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:w,config:e,request:b};fb(function(j){n(j),p()},function(j){r(j),p()},N),b=null}"onloadend"in b?b.onloadend=g:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(g)},b.onabort=function(){b&&(r(new ge("Request aborted",ge.ECONNABORTED,e,b)),b=null)},b.onerror=function(){r(new ge("Network Error",ge.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let S=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const N=s.transitional||cb;s.timeoutErrorMessage&&(S=s.timeoutErrorMessage),r(new ge(S,N.clarifyTimeoutError?ge.ETIMEDOUT:ge.ECONNABORTED,e,b)),b=null},o===void 0&&i.setContentType(null),"setRequestHeader"in b&&R.forEach(i.toJSON(),function(S,N){b.setRequestHeader(N,S)}),R.isUndefined(s.withCredentials)||(b.withCredentials=!!s.withCredentials),a&&a!=="json"&&(b.responseType=s.responseType),u&&([f,v]=oc(u,!0),b.addEventListener("progress",f)),c&&b.upload&&([h,x]=oc(c),b.upload.addEventListener("progress",h),b.upload.addEventListener("loadend",x)),(s.cancelToken||s.signal)&&(d=w=>{b&&(r(!w||w.type?new Jo(null,e,b):w),b.abort(),b=null)},s.cancelToken&&s.cancelToken.subscribe(d),s.signal&&(s.signal.aborted?d():s.signal.addEventListener("abort",d)));const m=GA(s.url);if(m&&Tt.protocols.indexOf(m)===-1){r(new ge("Unsupported protocol "+m+":",ge.ERR_BAD_REQUEST,e));return}b.send(o||null)})},rP=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,a();const d=u instanceof Error?u:this.reason;r.abort(d instanceof ge?d:new Jo(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,o(new ge(`timeout ${t} of ms exceeded`,ge.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:c}=r;return c.unsubscribe=()=>R.asap(a),c}},sP=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},oP=async function*(e,t){for await(const n of iP(e))yield*sP(n,t)},iP=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Lg=(e,t,n,r)=>{const s=oP(e,t);let o=0,i,a=c=>{i||(i=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await s.next();if(u){a(),c.close();return}let h=d.byteLength;if(n){let f=o+=h;n(f)}c.enqueue(new Uint8Array(d))}catch(u){throw a(u),u}},cancel(c){return a(c),s.return()}},{highWaterMark:2})},ru=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",pb=ru&&typeof ReadableStream=="function",aP=ru&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),gb=(e,...t)=>{try{return!!e(...t)}catch{return!1}},lP=pb&&gb(()=>{let e=!1;const t=new Request(Tt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Fg=64*1024,bf=pb&&gb(()=>R.isReadableStream(new Response("").body)),ic={stream:bf&&(e=>e.body)};ru&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ic[t]&&(ic[t]=R.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ge(`Response type '${t}' is not supported`,ge.ERR_NOT_SUPPORT,r)})})})(new Response);const cP=async e=>{if(e==null)return 0;if(R.isBlob(e))return e.size;if(R.isSpecCompliantForm(e))return(await new Request(Tt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(R.isArrayBufferView(e)||R.isArrayBuffer(e))return e.byteLength;if(R.isURLSearchParams(e)&&(e=e+""),R.isString(e))return(await aP(e)).byteLength},uP=async(e,t)=>{const n=R.toFiniteNumber(e.getContentLength());return n??cP(t)},dP=ru&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:d,withCredentials:h="same-origin",fetchOptions:f}=mb(e);u=u?(u+"").toLowerCase():"text";let x=rP([s,o&&o.toAbortSignal()],i),v;const p=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let b;try{if(c&&lP&&n!=="get"&&n!=="head"&&(b=await uP(d,r))!==0){let N=new Request(t,{method:"POST",body:r,duplex:"half"}),k;if(R.isFormData(r)&&(k=N.headers.get("content-type"))&&d.setContentType(k),N.body){const[j,C]=Ig(b,oc(Mg(c)));r=Lg(N.body,Fg,j,C)}}R.isString(h)||(h=h?"include":"omit");const g="credentials"in Request.prototype;v=new Request(t,{...f,signal:x,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:g?h:void 0});let m=await fetch(v,f);const w=bf&&(u==="stream"||u==="response");if(bf&&(a||w&&p)){const N={};["status","statusText","headers"].forEach(P=>{N[P]=m[P]});const k=R.toFiniteNumber(m.headers.get("content-length")),[j,C]=a&&Ig(k,oc(Mg(a),!0))||[];m=new Response(Lg(m.body,Fg,j,()=>{C&&C(),p&&p()}),N)}u=u||"text";let S=await ic[R.findKey(ic,u)||"text"](m,e);return!w&&p&&p(),await new Promise((N,k)=>{fb(N,k,{data:S,headers:Gt.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:v})})}catch(g){throw p&&p(),g&&g.name==="TypeError"&&/Load failed|fetch/i.test(g.message)?Object.assign(new ge("Network Error",ge.ERR_NETWORK,e,v),{cause:g.cause||g}):ge.from(g,g&&g.code,e,v)}}),Sf={http:kA,xhr:nP,fetch:dP};R.forEach(Sf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const zg=e=>`- ${e}`,fP=e=>R.isFunction(e)||e===null||e===!1,yb={getAdapter:e=>{e=R.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!fP(n)&&(r=Sf[(i=String(n)).toLowerCase()],r===void 0))throw new ge(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
`+o.map(zg).join(`
`):" "+zg(o[0]):"as no adapter specified";throw new ge("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Sf};function Xu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Jo(null,e)}function Bg(e){return Xu(e),e.headers=Gt.from(e.headers),e.data=Ju.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),yb.getAdapter(e.adapter||ja.adapter)(e).then(function(r){return Xu(e),r.data=Ju.call(e,e.transformResponse,r),r.headers=Gt.from(r.headers),r},function(r){return db(r)||(Xu(e),r&&r.response&&(r.response.data=Ju.call(e,e.transformResponse,r.response),r.response.headers=Gt.from(r.response.headers))),Promise.reject(r)})}const vb="1.10.0",su={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{su[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Hg={};su.transitional=function(t,n,r){function s(o,i){return"[Axios v"+vb+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,a)=>{if(t===!1)throw new ge(s(i," has been removed"+(n?" in "+n:"")),ge.ERR_DEPRECATED);return n&&!Hg[i]&&(Hg[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,a):!0}};su.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function hP(e,t,n){if(typeof e!="object")throw new ge("options must be an object",ge.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const a=e[o],c=a===void 0||i(a,o,e);if(c!==!0)throw new ge("option "+o+" must be "+c,ge.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ge("Unknown option "+o,ge.ERR_BAD_OPTION)}}const bl={assertOptions:hP,validators:su},zn=bl.validators;class js{constructor(t){this.defaults=t||{},this.interceptors={request:new Pg,response:new Pg}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ms(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&bl.assertOptions(r,{silentJSONParsing:zn.transitional(zn.boolean),forcedJSONParsing:zn.transitional(zn.boolean),clarifyTimeoutError:zn.transitional(zn.boolean)},!1),s!=null&&(R.isFunction(s)?n.paramsSerializer={serialize:s}:bl.assertOptions(s,{encode:zn.function,serialize:zn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),bl.assertOptions(n,{baseUrl:zn.spelling("baseURL"),withXsrfToken:zn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&R.merge(o.common,o[n.method]);o&&R.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=Gt.concat(i,o);const a=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let d,h=0,f;if(!c){const v=[Bg.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,u),f=v.length,d=Promise.resolve(n);h<f;)d=d.then(v[h++],v[h++]);return d}f=a.length;let x=n;for(h=0;h<f;){const v=a[h++],p=a[h++];try{x=v(x)}catch(b){p.call(this,b);break}}try{d=Bg.call(this,x)}catch(v){return Promise.reject(v)}for(h=0,f=u.length;h<f;)d=d.then(u[h++],u[h++]);return d}getUri(t){t=Ms(this.defaults,t);const n=hb(t.baseURL,t.url,t.allowAbsoluteUrls);return lb(n,t.params,t.paramsSerializer)}}R.forEach(["delete","get","head","options"],function(t){js.prototype[t]=function(n,r){return this.request(Ms(r||{},{method:t,url:n,data:(r||{}).data}))}});R.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,a){return this.request(Ms(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}js.prototype[t]=n(),js.prototype[t+"Form"]=n(!0)});class um{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,a){r.reason||(r.reason=new Jo(o,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new um(function(s){t=s}),cancel:t}}}function mP(e){return function(n){return e.apply(null,n)}}function pP(e){return R.isObject(e)&&e.isAxiosError===!0}const Nf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Nf).forEach(([e,t])=>{Nf[t]=e});function xb(e){const t=new js(e),n=Q1(js.prototype.request,t);return R.extend(n,js.prototype,t,{allOwnKeys:!0}),R.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return xb(Ms(e,s))},n}const tt=xb(ja);tt.Axios=js;tt.CanceledError=Jo;tt.CancelToken=um;tt.isCancel=db;tt.VERSION=vb;tt.toFormData=nu;tt.AxiosError=ge;tt.Cancel=tt.CanceledError;tt.all=function(t){return Promise.all(t)};tt.spread=mP;tt.isAxiosError=pP;tt.mergeConfig=Ms;tt.AxiosHeaders=Gt;tt.formToJSON=e=>ub(R.isHTMLForm(e)?new FormData(e):e);tt.getAdapter=yb.getAdapter;tt.HttpStatusCode=Nf;tt.default=tt;const ou=y.forwardRef(({className:e,...t},n)=>l.jsx("textarea",{className:Ce("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}));ou.displayName="Textarea";const gP=()=>{const[e,t]=y.useState(!1),{toast:n}=ya(),[r,s]=y.useState({name:"",email:"",message:"",company:""}),o=(a,c)=>{s(u=>({...u,[a]:c}))},i=async a=>{a.preventDefault(),t(!0);try{const c=await tt.post("https://nancy-backend.fly.dev/api/contact",r);c.data.status==="success"?(n({title:"Message Sent",description:"Your message has been successfully delivered. We’ll get back to you shortly.",variant:"default"}),s({name:"",email:"",message:"",company:""})):n({title:"Something went wrong",description:c.data.msg||"Please try again later or contact us via WhatsApp.",variant:"destructive"})}catch(c){console.error(c),n({title:"Something went wrong",description:"Please try again later or contact us via WhatsApp.",variant:"destructive"})}finally{t(!1)}};return l.jsxs("div",{className:"pt-20 min-h-screen",children:[l.jsx(Na,{children:l.jsxs("div",{className:"max-w-4xl mx-auto px-4 text-center",children:[l.jsx("h1",{className:"text-5xl md:text-6xl font-bold mb-6",children:"Contact Me"}),l.jsx("p",{className:"text-xl mb-8 max-w-2xl mx-auto",children:"Have a question? Want to share your story? Need to book a speaking engagement? I'd love to hear from you."})]})}),l.jsx("section",{className:"py-20",children:l.jsx("div",{className:"max-w-6xl mx-auto px-4",children:l.jsxs("div",{className:"grid md:grid-cols-2 gap-12",children:[l.jsxs(be,{className:"border-green-200",children:[l.jsx(yr,{children:l.jsx(vr,{className:"text-3xl",children:"Send Me a Message"})}),l.jsx(Se,{children:l.jsxs("form",{onSubmit:i,className:"space-y-6",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(it,{htmlFor:"name",children:"Your Name *"}),l.jsx(wt,{id:"name",required:!0,value:r.name,onChange:a=>o("name",a.target.value),placeholder:"Enter your full name"})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(it,{htmlFor:"email",children:"Email Address *"}),l.jsx(wt,{id:"email",type:"email",required:!0,value:r.email,onChange:a=>o("email",a.target.value),placeholder:"Enter your email address"})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(it,{htmlFor:"message",children:"Your Message *"}),l.jsx(ou,{id:"message",required:!0,rows:6,value:r.message,onChange:a=>o("message",a.target.value),placeholder:"Share your thoughts, questions, or story..."}),l.jsx("input",{type:"text",name:"company",value:r.company,onChange:a=>o("company",a.target.value),style:{display:"none"},"aria-hidden":"true",tabIndex:-1})]}),l.jsx(De,{type:"submit",size:"lg",className:"w-full bg-primary hover:bg-primary/90",disabled:e,children:e?"Sending...":"Send Message"})]})})]}),l.jsxs("div",{className:"space-y-8",children:[l.jsx(be,{className:"border-green-200",children:l.jsx(Se,{className:"p-8",children:l.jsxs("div",{className:"flex items-center space-x-4 mb-4",children:[l.jsx(Ph,{className:"w-8 h-8 text-primary"}),l.jsxs("div",{children:[l.jsx("h3",{className:"text-xl font-bold",children:"Email"}),l.jsx("a",{className:"text-muted-foreground",href:"mailto:info@nancyduffour.com",children:"info@nancyduffour.com"})]})]})})}),l.jsx(be,{className:"border-green-200",children:l.jsx(Se,{className:"p-8",children:l.jsxs("div",{className:"flex items-center space-x-4 mb-4",children:[l.jsx(N0,{className:"w-8 h-8 text-primary"}),l.jsxs("div",{children:[l.jsx("h3",{className:"text-xl font-bold",children:"Phone"}),l.jsx("a",{className:"text-muted-foreground block mt-3",href:"tel:+234 708 092 1501",children:"+234 708 092 1501"}),l.jsx("a",{className:"text-muted-foreground block mt-3",href:"tel:+234 704 777 1945",children:"+234 704 777 1945"}),l.jsx("a",{className:"text-muted-foreground block mt-3",href:"tel:+44 787 899 3686",children:"+44 787 899 3686"})]})]})})}),l.jsx(be,{className:"border-green-200",children:l.jsx(Se,{className:"p-8",children:l.jsxs("div",{className:"flex items-center space-x-4 mb-4",children:[l.jsx(T1,{className:"w-8 h-8 text-primary"}),l.jsxs("div",{children:[l.jsx("h3",{className:"text-xl font-bold",children:"WhatsApp"}),l.jsx("a",{href:"https://wa.me/+447878993686",children:l.jsx(De,{variant:"outline",className:"mt-2 border-green-300 text-green-700 hover:bg-green-50",children:"Chat with Team Nancy"})})]})]})})}),l.jsx(be,{className:"bg-green-50 border-green-200",children:l.jsxs(Se,{className:"p-8",children:[l.jsx("h3",{className:"text-xl font-bold mb-4 text-primary",children:"Speaking Engagements"}),l.jsx("p",{className:"text-muted-foreground mb-4",children:`Interested in having Nancy speak at your event, university, or organization? Let's discuss how we can bring the "I AM HER" message to your audience.`}),l.jsxs("ul",{className:"text-sm text-muted-foreground space-y-2",children:[l.jsx("li",{children:"• Book Talks & Readings"}),l.jsx("li",{children:"• Healing Sessions"}),l.jsx("li",{children:"• Women's Empowerment Workshops"}),l.jsx("li",{children:"• University Campus Tours"})]})]})})]})]})})}),l.jsx("section",{className:"py-12 bg-gradient-to-r from-green-50 to-emerald-50",children:l.jsxs("div",{className:"max-w-4xl mx-auto px-4 text-center",children:[l.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Response Time"}),l.jsx("p",{className:"text-muted-foreground",children:"I personally read every message. You can expect a response within 24-48 hours. For urgent matters, please call or WhatsApp."})]})})]})},yP=()=>{const e=[{name:"Instagram",handle:"@NancyDuffour",description:"Daily inspiration, behind-the-scenes moments, and healing content",icon:hj,color:"from-purple-500 via-red-400 to-yellow-500",url:"https://www.instagram.com/nancyduffour_official?igsh=OTdyOWcyb3B0cmpk&utm_source=qr"},{name:"TikTok",handle:"@NancyDuffour",description:"Quick doses of empowerment and viral healing moments",icon:bj,color:"from-black via-gray-300 to-black",url:"http://www.tiktok.com/@iamherwithnancy"},{name:"WhatsApp",handle:"Chat with Team Nancy",description:"Direct communication and support from the HER movement team",icon:T1,color:"from-green-600 via-green-500 to-green-400",url:"https://wa.me/+447878993686"},{name:"YouTube",handle:"Nancy Duffour - Ristora",description:"Deep dives, healing sessions, and the full HER movement journey",icon:Ej,color:"from-red-600 via-red-400 to-red-600",url:"https://www.youtube.com/@IAMHERWITHNANCY"}];return l.jsxs("div",{className:"pt-20 min-h-screen",children:[l.jsx(Na,{children:l.jsxs("div",{className:"max-w-4xl mx-auto px-4 text-center",children:[l.jsx("h1",{className:"text-5xl md:text-6xl font-bold mb-6",children:"Join the Movement"}),l.jsx("p",{className:"text-xl mb-8 max-w-2xl mx-auto",children:"Follow Nancy on every platform. This is more than content — it's connection. It's community. It's the HER movement spreading across the world."})]})}),l.jsx("section",{className:"py-20",children:l.jsx("div",{className:"max-w-6xl mx-auto px-4",children:l.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:e.map(t=>{const n=t.icon;return l.jsx(be,{className:"overflow-hidden hover:shadow-lg transition-all hover:scale-105 border-green-200",children:l.jsx(Se,{className:"p-0",children:l.jsxs("div",{className:`bg-gradient-to-r ${t.color} p-8 text-white`,children:[l.jsxs("div",{className:"flex items-center space-x-4 mb-4",children:[l.jsx(n,{className:"w-12 h-12"}),l.jsxs("div",{children:[l.jsx("h3",{className:"text-2xl font-bold",children:t.name}),l.jsx("p",{className:"text-lg opacity-90",children:t.handle})]})]}),l.jsx("p",{className:"text-white/90 mb-6",children:t.description}),l.jsx(De,{asChild:!0,variant:"secondary",size:"lg",className:"bg-white text-green-800 hover:bg-white/90",children:l.jsx("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",children:"Follow Now"})})]})})},t.name)})})})}),l.jsx("section",{className:"py-20",children:l.jsxs("div",{className:"max-w-4xl mx-auto px-4 text-center",children:[l.jsx("h2",{className:"text-4xl font-bold mb-6",children:"Ready to Rise?"}),l.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:'This is your invitation to step into your power. To remember who you are. To join thousands of women who are saying "I AM HER" and meaning it.'}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[l.jsx(De,{asChild:!0,size:"lg",className:"bg-emerald-400 hover:bg-emerald-500 text-white",children:l.jsx("a",{href:"/book",children:"Get the Book"})}),l.jsx(De,{asChild:!0,size:"lg",variant:"outline",className:"border-green-300 text-green-700 hover:bg-green-50",children:l.jsx("a",{href:"/coming-soon",children:"Join the Movement"})})]})]})})]})},vP=()=>{const[e,t]=y.useState(""),[n,r]=y.useState(!1),{toast:s}=ya(),o=async i=>{i.preventDefault(),r(!0);try{await tt.post("https://nancy-backend.fly.dev/api/subscribe",{email:e}),s({title:"You're in!",description:"Thank you! You'll be the first to know when something new drops."}),t("")}catch(a){console.error("Subscribe error:",a),s({title:"Something went wrong",description:"We couldn’t save your email. Please try again.",variant:"destructive"})}finally{r(!1)}};return l.jsxs("div",{className:"pt-20 min-h-screen",children:[l.jsx(Na,{className:"py-32",children:l.jsxs("div",{className:"max-w-4xl mx-auto px-4 text-center",children:[l.jsx("h1",{className:"text-4xl md:text-6xl font-bold mb-8",children:"You've seen the book. You've felt the fire. But there's more coming."}),l.jsx("div",{className:"mt-12 space-y-6 text-lg md:text-xl",children:l.jsx("p",{children:"New movements. New power. New purpose."})}),l.jsx("div",{className:"mt-16",children:l.jsx("p",{className:"text-2xl md:text-3xl font-light italic mb-8",children:"Stay close. Stay ready."})})]})}),l.jsx("section",{className:"py-20",children:l.jsx("div",{className:"max-w-2xl mx-auto px-4",children:l.jsxs(be,{className:"border-2 border-primary/20 shadow-2xl",children:[l.jsxs(yr,{className:"text-center",children:[l.jsx(vr,{className:"text-3xl mb-4",children:"Join the Mailing List"}),l.jsx("p",{className:"text-lg text-muted-foreground",children:"Be the first to know when the next wave of the HER movement launches."})]}),l.jsx(Se,{children:l.jsxs("form",{onSubmit:o,className:"space-y-6",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(it,{htmlFor:"email",className:"text-lg",children:"Email Address"}),l.jsx(wt,{id:"email",type:"email",required:!0,value:e,onChange:i=>t(i.target.value),placeholder:"Enter your email to stay connected",className:"text-lg py-6"})]}),l.jsxs(De,{type:"submit",size:"lg",className:"w-full bg-gradient-to-r from-emerald-600 to-green-600 hover:from-emerald-700 hover:to-green-700 text-lg py-3",disabled:n,children:[n?"Joining...":"Join the Movement",l.jsx(Rh,{className:"ml-2 w-5 h-5"})]})]})})]})})}),l.jsx("section",{className:"py-20 bg-gradient-to-r from-green-50 to-emerald-50",children:l.jsxs("div",{className:"max-w-6xl mx-auto px-4",children:[l.jsx("h2",{className:"text-4xl font-bold text-center mb-12",children:"What's Loading..."}),l.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[l.jsx(be,{className:"text-center hover:shadow-lg transition-shadow border-green-200",children:l.jsxs(Se,{className:"p-8",children:[l.jsx(xR,{className:"text-4xl text-emerald-950 mx-auto mb-4"}),l.jsx("h3",{className:"text-xl font-bold mb-4",children:"Global Sisterhood"}),l.jsx("p",{className:"text-muted-foreground",children:"A worldwide network of HER ambassadors spreading healing and empowerment."})]})}),l.jsx(be,{className:"text-center hover:shadow-lg transition-shadow border-green-200",children:l.jsxs(Se,{className:"p-8",children:[l.jsx("div",{className:"text-4xl mb-4",children:"🎓"}),l.jsx("h3",{className:"text-xl font-bold mb-4",children:"HER Academy"}),l.jsx("p",{className:"text-muted-foreground",children:"Deep healing courses and certification programs for women ready to lead."})]})}),l.jsx(be,{className:"text-center hover:shadow-lg transition-shadow border-green-200",children:l.jsxs(Se,{className:"p-8",children:[l.jsx("div",{className:"text-4xl mb-4",children:"📱"}),l.jsx("h3",{className:"text-xl font-bold mb-4",children:"HER App"}),l.jsx("p",{className:"text-muted-foreground",children:"Daily affirmations, healing exercises, and community connection in your pocket."})]})})]})]})}),l.jsx("section",{className:"py-20 bg-primary text-white",children:l.jsxs("div",{className:"max-w-4xl mx-auto px-4 text-center",children:[l.jsx("h2",{className:"text-4xl font-bold mb-8",children:"This Is Just the Beginning"}),l.jsx("p",{className:"text-xl leading-relaxed mb-8",children:"The book was the seed. The movement is growing. The revolution is coming. And you? You're not here by accident."}),l.jsx("p",{className:"text-2xl font-light italic",children:"You are HER. And HER is rising."})]})})]})},xP=()=>l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"max-w-2xl flex justify-center items-center mx-auto py-16 px-6 text-center",children:l.jsxs(be,{children:[l.jsx(yr,{children:l.jsx(vr,{className:"text-2xl",children:"Checkout Coming Soon"})}),l.jsx(Se,{children:l.jsxs("p",{className:"text-muted-foreground text-lg",children:["Our checkout page is temporarily unavailable. Please check back soon or contact us at ",l.jsx("a",{className:"text-green-400 hover:text-green-600",href:"mailto:iamheriamherbook@gmail.com",children:"info@nancyduffour.com"})," or ",l.jsx(ot,{to:"/contact",className:"text-green-400 hover:text-green-600",children:" Contact"})," for manual orders."]})})]})}),l.jsx(Hn,{})]});function wP(e){return Object.prototype.toString.call(e)==="[object Object]"}function $g(e){return wP(e)||Array.isArray(e)}function bP(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function dm(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),o=JSON.stringify(Object.keys(t.breakpoints||{}));return s!==o?!1:n.every(i=>{const a=e[i],c=t[i];return typeof a=="function"?`${a}`==`${c}`:!$g(a)||!$g(c)?a===c:dm(a,c)})}function Vg(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function SP(e,t){if(e.length!==t.length)return!1;const n=Vg(e),r=Vg(t);return n.every((s,o)=>{const i=r[o];return dm(s,i)})}function fm(e){return typeof e=="number"}function Ef(e){return typeof e=="string"}function iu(e){return typeof e=="boolean"}function Ug(e){return Object.prototype.toString.call(e)==="[object Object]"}function Je(e){return Math.abs(e)}function hm(e){return Math.sign(e)}function Ri(e,t){return Je(e-t)}function NP(e,t){if(e===0||t===0||Je(e)<=Je(t))return 0;const n=Ri(Je(e),Je(t));return Je(n/e)}function sa(e){return oa(e).map(Number)}function Pn(e){return e[ka(e)]}function ka(e){return Math.max(0,e.length-1)}function mm(e,t){return t===ka(e)}function Wg(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function oa(e){return Object.keys(e)}function wb(e,t){return[e,t].reduce((n,r)=>(oa(r).forEach(s=>{const o=n[s],i=r[s],a=Ug(o)&&Ug(i);n[s]=a?wb(o,i):i}),n),{})}function jf(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function EP(e,t){const n={start:r,center:s,end:o};function r(){return 0}function s(c){return o(c)/2}function o(c){return t-c}function i(c,u){return Ef(e)?n[e](c):e(t,c,u)}return{measure:i}}function ia(){let e=[];function t(s,o,i,a={passive:!0}){let c;if("addEventListener"in s)s.addEventListener(o,i,a),c=()=>s.removeEventListener(o,i,a);else{const u=s;u.addListener(i),c=()=>u.removeListener(i)}return e.push(c),r}function n(){e=e.filter(s=>s())}const r={add:t,clear:n};return r}function jP(e,t,n,r){const s=ia(),o=1e3/60;let i=null,a=0,c=0;function u(){s.add(e,"visibilitychange",()=>{e.hidden&&v()})}function d(){x(),s.clear()}function h(b){if(!c)return;i||(i=b);const g=b-i;for(i=b,a+=g;a>=o;)n(o),a-=o;const m=a/o;r(m),c&&t.requestAnimationFrame(h)}function f(){c||(c=t.requestAnimationFrame(h))}function x(){t.cancelAnimationFrame(c),i=null,a=0,c=0}function v(){i=null,a=0}return{init:u,destroy:d,start:f,stop:x,update:()=>n(o),render:r}}function kP(e,t){const n=t==="rtl",r=e==="y",s=r?"y":"x",o=r?"x":"y",i=!r&&n?-1:1,a=d(),c=h();function u(v){const{height:p,width:b}=v;return r?p:b}function d(){return r?"top":n?"right":"left"}function h(){return r?"bottom":n?"left":"right"}function f(v){return v*i}return{scroll:s,cross:o,startEdge:a,endEdge:c,measureSize:u,direction:f}}function Ds(e=0,t=0){const n=Je(e-t);function r(u){return u<e}function s(u){return u>t}function o(u){return r(u)||s(u)}function i(u){return o(u)?r(u)?e:t:u}function a(u){return n?u-n*Math.ceil((u-t)/n):u}return{length:n,max:t,min:e,constrain:i,reachedAny:o,reachedMax:s,reachedMin:r,removeOffset:a}}function bb(e,t,n){const{constrain:r}=Ds(0,e),s=e+1;let o=i(t);function i(f){return n?Je((s+f)%s):r(f)}function a(){return o}function c(f){return o=i(f),h}function u(f){return d().set(a()+f)}function d(){return bb(e,a(),n)}const h={get:a,set:c,add:u,clone:d};return h}function CP(e,t,n,r,s,o,i,a,c,u,d,h,f,x,v,p,b,g,m){const{cross:w,direction:S}=e,N=["INPUT","SELECT","TEXTAREA"],k={passive:!1},j=ia(),C=ia(),P=Ds(50,225).constrain(x.measure(20)),D={mouse:300,touch:400},z={mouse:500,touch:600},O=v?43:25;let V=!1,I=0,Y=0,W=!1,X=!1,_=!1,L=!1;function Q(H){if(!m)return;function de(Be){(iu(m)||m(H,Be))&&me(Be)}const Ee=t;j.add(Ee,"dragstart",Be=>Be.preventDefault(),k).add(Ee,"touchmove",()=>{},k).add(Ee,"touchend",()=>{}).add(Ee,"touchstart",de).add(Ee,"mousedown",de).add(Ee,"touchcancel",ae).add(Ee,"contextmenu",ae).add(Ee,"click",ke,!0)}function q(){j.clear(),C.clear()}function ne(){const H=L?n:t;C.add(H,"touchmove",Z,k).add(H,"touchend",ae).add(H,"mousemove",Z,k).add(H,"mouseup",ae)}function le(H){const de=H.nodeName||"";return N.includes(de)}function pe(){return(v?z:D)[L?"mouse":"touch"]}function ze(H,de){const Ee=h.add(hm(H)*-1),Be=d.byDistance(H,!v).distance;return v||Je(H)<P?Be:b&&de?Be*.5:d.byIndex(Ee.get(),0).distance}function me(H){const de=jf(H,r);L=de,_=v&&de&&!H.buttons&&V,V=Ri(s.get(),i.get())>=2,!(de&&H.button!==0)&&(le(H.target)||(W=!0,o.pointerDown(H),u.useFriction(0).useDuration(0),s.set(i),ne(),I=o.readPoint(H),Y=o.readPoint(H,w),f.emit("pointerDown")))}function Z(H){if(!jf(H,r)&&H.touches.length>=2)return ae(H);const Ee=o.readPoint(H),Be=o.readPoint(H,w),Ue=Ri(Ee,I),ht=Ri(Be,Y);if(!X&&!L&&(!H.cancelable||(X=Ue>ht,!X)))return ae(H);const Yt=o.pointerMove(H);Ue>p&&(_=!0),u.useFriction(.3).useDuration(.75),a.start(),s.add(S(Yt)),H.preventDefault()}function ae(H){const Ee=d.byDistance(0,!1).index!==h.get(),Be=o.pointerUp(H)*pe(),Ue=ze(S(Be),Ee),ht=NP(Be,Ue),Yt=O-10*ht,Ie=g+ht/50;X=!1,W=!1,C.clear(),u.useDuration(Yt).useFriction(Ie),c.distance(Ue,!v),L=!1,f.emit("pointerUp")}function ke(H){_&&(H.stopPropagation(),H.preventDefault(),_=!1)}function ce(){return W}return{init:Q,destroy:q,pointerDown:ce}}function _P(e,t){let r,s;function o(h){return h.timeStamp}function i(h,f){const v=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(jf(h,t)?h:h.touches[0])[v]}function a(h){return r=h,s=h,i(h)}function c(h){const f=i(h)-i(s),x=o(h)-o(r)>170;return s=h,x&&(r=h),f}function u(h){if(!r||!s)return 0;const f=i(s)-i(r),x=o(h)-o(r),v=o(h)-o(s)>170,p=f/x;return x&&!v&&Je(p)>.1?p:0}return{pointerDown:a,pointerMove:c,pointerUp:u,readPoint:i}}function TP(){function e(n){const{offsetTop:r,offsetLeft:s,offsetWidth:o,offsetHeight:i}=n;return{top:r,right:s+o,bottom:r+i,left:s,width:o,height:i}}return{measure:e}}function RP(e){function t(r){return e*(r/100)}return{measure:t}}function AP(e,t,n,r,s,o,i){const a=[e].concat(r);let c,u,d=[],h=!1;function f(b){return s.measureSize(i.measure(b))}function x(b){if(!o)return;u=f(e),d=r.map(f);function g(m){for(const w of m){if(h)return;const S=w.target===e,N=r.indexOf(w.target),k=S?u:d[N],j=f(S?e:r[N]);if(Je(j-k)>=.5){b.reInit(),t.emit("resize");break}}}c=new ResizeObserver(m=>{(iu(o)||o(b,m))&&g(m)}),n.requestAnimationFrame(()=>{a.forEach(m=>c.observe(m))})}function v(){h=!0,c&&c.disconnect()}return{init:x,destroy:v}}function PP(e,t,n,r,s,o){let i=0,a=0,c=s,u=o,d=e.get(),h=0;function f(k){const j=k/1e3,C=c*j,P=r.get()-e.get(),D=!c;let z=0;return D?(i=0,n.set(r),e.set(r),z=P):(n.set(e),i+=P/C,i*=u,d+=i,e.add(i*j),z=d-h),a=hm(z),h=d,N}function x(){const k=r.get()-t.get();return Je(k)<.001}function v(){return c}function p(){return a}function b(){return i}function g(){return w(s)}function m(){return S(o)}function w(k){return c=k,N}function S(k){return u=k,N}const N={direction:p,duration:v,velocity:b,seek:f,settled:x,useBaseFriction:m,useBaseDuration:g,useFriction:S,useDuration:w};return N}function OP(e,t,n,r,s){const o=s.measure(10),i=s.measure(50),a=Ds(.1,.99);let c=!1;function u(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function d(x){if(!u())return;const v=e.reachedMin(t.get())?"min":"max",p=Je(e[v]-t.get()),b=n.get()-t.get(),g=a.constrain(p/i);n.subtract(b*g),!x&&Je(b)<o&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function h(x){c=!x}return{shouldConstrain:u,constrain:d,toggleActive:h}}function IP(e,t,n,r,s){const o=Ds(-t+e,0),i=h(),a=d(),c=f();function u(v,p){return Ri(v,p)<1}function d(){const v=i[0],p=Pn(i),b=i.lastIndexOf(v),g=i.indexOf(p)+1;return Ds(b,g)}function h(){return n.map((v,p)=>{const{min:b,max:g}=o,m=o.constrain(v),w=!p,S=mm(n,p);return w?g:S||u(b,m)?b:u(g,m)?g:m}).map(v=>parseFloat(v.toFixed(3)))}function f(){if(t<=e+s)return[o.max];if(r==="keepSnaps")return i;const{min:v,max:p}=a;return i.slice(v,p)}return{snapsContained:c,scrollContainLimit:a}}function MP(e,t,n){const r=t[0],s=n?r-e:Pn(t);return{limit:Ds(s,r)}}function DP(e,t,n,r){const o=t.min+.1,i=t.max+.1,{reachedMin:a,reachedMax:c}=Ds(o,i);function u(f){return f===1?c(n.get()):f===-1?a(n.get()):!1}function d(f){if(!u(f))return;const x=e*(f*-1);r.forEach(v=>v.add(x))}return{loop:d}}function LP(e){const{max:t,length:n}=e;function r(o){const i=o-t;return n?i/-n:0}return{get:r}}function FP(e,t,n,r,s){const{startEdge:o,endEdge:i}=e,{groupSlides:a}=s,c=h().map(t.measure),u=f(),d=x();function h(){return a(r).map(p=>Pn(p)[i]-p[0][o]).map(Je)}function f(){return r.map(p=>n[o]-p[o]).map(p=>-Je(p))}function x(){return a(u).map(p=>p[0]).map((p,b)=>p+c[b])}return{snaps:u,snapsAligned:d}}function zP(e,t,n,r,s,o){const{groupSlides:i}=s,{min:a,max:c}=r,u=d();function d(){const f=i(o),x=!e||t==="keepSnaps";return n.length===1?[o]:x?f:f.slice(a,c).map((v,p,b)=>{const g=!p,m=mm(b,p);if(g){const w=Pn(b[0])+1;return Wg(w)}if(m){const w=ka(o)-Pn(b)[0]+1;return Wg(w,Pn(b)[0])}return v})}return{slideRegistry:u}}function BP(e,t,n,r,s){const{reachedAny:o,removeOffset:i,constrain:a}=r;function c(v){return v.concat().sort((p,b)=>Je(p)-Je(b))[0]}function u(v){const p=e?i(v):a(v),b=t.map((m,w)=>({diff:d(m-p,0),index:w})).sort((m,w)=>Je(m.diff)-Je(w.diff)),{index:g}=b[0];return{index:g,distance:p}}function d(v,p){const b=[v,v+n,v-n];if(!e)return v;if(!p)return c(b);const g=b.filter(m=>hm(m)===p);return g.length?c(g):Pn(b)-n}function h(v,p){const b=t[v]-s.get(),g=d(b,p);return{index:v,distance:g}}function f(v,p){const b=s.get()+v,{index:g,distance:m}=u(b),w=!e&&o(b);if(!p||w)return{index:g,distance:v};const S=t[g]-m,N=v+d(S,0);return{index:g,distance:N}}return{byDistance:f,byIndex:h,shortcut:d}}function HP(e,t,n,r,s,o,i){function a(h){const f=h.distance,x=h.index!==t.get();o.add(f),f&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),x&&(n.set(t.get()),t.set(h.index),i.emit("select"))}function c(h,f){const x=s.byDistance(h,f);a(x)}function u(h,f){const x=t.clone().set(h),v=s.byIndex(x.get(),f);a(v)}return{distance:c,index:u}}function $P(e,t,n,r,s,o,i,a){const c={passive:!0,capture:!0};let u=0;function d(x){if(!a)return;function v(p){if(new Date().getTime()-u>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;const m=n.findIndex(w=>w.includes(p));fm(m)&&(s.useDuration(0),r.index(m,0),i.emit("slideFocus"))}o.add(document,"keydown",h,!1),t.forEach((p,b)=>{o.add(p,"focus",g=>{(iu(a)||a(x,g))&&v(b)},c)})}function h(x){x.code==="Tab"&&(u=new Date().getTime())}return{init:d}}function vi(e){let t=e;function n(){return t}function r(c){t=i(c)}function s(c){t+=i(c)}function o(c){t-=i(c)}function i(c){return fm(c)?c:c.get()}return{get:n,set:r,add:s,subtract:o}}function Sb(e,t){const n=e.scroll==="x"?o:i,r=t.style;let s=!1;function o(h){return`translate3d(${h}px,0px,0px)`}function i(h){return`translate3d(0px,${h}px,0px)`}function a(h){s||(r.transform=n(e.direction(h)))}function c(h){s=!h}function u(){s||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:a,toggleActive:c}}function VP(e,t,n,r,s,o,i,a,c){const d=sa(s),h=sa(s).reverse(),f=g().concat(m());function x(j,C){return j.reduce((P,D)=>P-s[D],C)}function v(j,C){return j.reduce((P,D)=>x(P,C)>0?P.concat([D]):P,[])}function p(j){return o.map((C,P)=>({start:C-r[P]+.5+j,end:C+t-.5+j}))}function b(j,C,P){const D=p(C);return j.map(z=>{const O=P?0:-n,V=P?n:0,I=P?"end":"start",Y=D[z][I];return{index:z,loopPoint:Y,slideLocation:vi(-1),translate:Sb(e,c[z]),target:()=>a.get()>Y?O:V}})}function g(){const j=i[0],C=v(h,j);return b(C,n,!1)}function m(){const j=t-i[0]-1,C=v(d,j);return b(C,-n,!0)}function w(){return f.every(({index:j})=>{const C=d.filter(P=>P!==j);return x(C,t)<=.1})}function S(){f.forEach(j=>{const{target:C,translate:P,slideLocation:D}=j,z=C();z!==D.get()&&(P.to(z),D.set(z))})}function N(){f.forEach(j=>j.translate.clear())}return{canLoop:w,clear:N,loop:S,loopPoints:f}}function UP(e,t,n){let r,s=!1;function o(c){if(!n)return;function u(d){for(const h of d)if(h.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(d=>{s||(iu(n)||n(c,d))&&u(d)}),r.observe(e,{childList:!0})}function i(){r&&r.disconnect(),s=!0}return{init:o,destroy:i}}function WP(e,t,n,r){const s={};let o=null,i=null,a,c=!1;function u(){a=new IntersectionObserver(v=>{c||(v.forEach(p=>{const b=t.indexOf(p.target);s[b]=p}),o=null,i=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(v=>a.observe(v))}function d(){a&&a.disconnect(),c=!0}function h(v){return oa(s).reduce((p,b)=>{const g=parseInt(b),{isIntersecting:m}=s[g];return(v&&m||!v&&!m)&&p.push(g),p},[])}function f(v=!0){if(v&&o)return o;if(!v&&i)return i;const p=h(v);return v&&(o=p),v||(i=p),p}return{init:u,destroy:d,get:f}}function qP(e,t,n,r,s,o){const{measureSize:i,startEdge:a,endEdge:c}=e,u=n[0]&&s,d=v(),h=p(),f=n.map(i),x=b();function v(){if(!u)return 0;const m=n[0];return Je(t[a]-m[a])}function p(){if(!u)return 0;const m=o.getComputedStyle(Pn(r));return parseFloat(m.getPropertyValue(`margin-${c}`))}function b(){return n.map((m,w,S)=>{const N=!w,k=mm(S,w);return N?f[w]+d:k?f[w]+h:S[w+1][a]-m[a]}).map(Je)}return{slideSizes:f,slideSizesWithGaps:x,startGap:d,endGap:h}}function KP(e,t,n,r,s,o,i,a,c){const{startEdge:u,endEdge:d,direction:h}=e,f=fm(n);function x(g,m){return sa(g).filter(w=>w%m===0).map(w=>g.slice(w,w+m))}function v(g){return g.length?sa(g).reduce((m,w,S)=>{const N=Pn(m)||0,k=N===0,j=w===ka(g),C=s[u]-o[N][u],P=s[u]-o[w][d],D=!r&&k?h(i):0,z=!r&&j?h(a):0,O=Je(P-z-(C+D));return S&&O>t+c&&m.push(w),j&&m.push(g.length),m},[]).map((m,w,S)=>{const N=Math.max(S[w-1]||0);return g.slice(N,m)}):[]}function p(g){return f?x(g,n):v(g)}return{groupSlides:p}}function GP(e,t,n,r,s,o,i){const{align:a,axis:c,direction:u,startIndex:d,loop:h,duration:f,dragFree:x,dragThreshold:v,inViewThreshold:p,slidesToScroll:b,skipSnaps:g,containScroll:m,watchResize:w,watchSlides:S,watchDrag:N,watchFocus:k}=o,j=2,C=TP(),P=C.measure(t),D=n.map(C.measure),z=kP(c,u),O=z.measureSize(P),V=RP(O),I=EP(a,O),Y=!h&&!!m,W=h||!!m,{slideSizes:X,slideSizesWithGaps:_,startGap:L,endGap:Q}=qP(z,P,D,n,W,s),q=KP(z,O,b,h,P,D,L,Q,j),{snaps:ne,snapsAligned:le}=FP(z,I,P,D,q),pe=-Pn(ne)+Pn(_),{snapsContained:ze,scrollContainLimit:me}=IP(O,pe,le,m,j),Z=Y?ze:le,{limit:ae}=MP(pe,Z,h),ke=bb(ka(Z),d,h),ce=ke.clone(),ie=sa(n),H=({dragHandler:Nt,scrollBody:zt,scrollBounds:br,options:{loop:wn}},er)=>{wn||br.constrain(Nt.pointerDown()),zt.seek(er)},de=({scrollBody:Nt,translate:zt,location:br,offsetLocation:wn,scrollLooper:er,slideLooper:ds,dragHandler:Qt,animation:Xo,eventHandler:ue,scrollBounds:He,options:{loop:Me}},Zt)=>{const Jt=Nt.settled(),Us=!He.shouldConstrain(),_a=Me?Jt:Jt&&Us;_a&&!Qt.pointerDown()&&(Xo.stop(),ue.emit("settle")),_a||ue.emit("scroll");const Hb=br.get()*Zt+Yt.get()*(1-Zt);wn.set(Hb),Me&&(er.loop(Nt.direction()),ds.loop()),zt.to(wn.get())},Ee=jP(r,s,Nt=>H(Qe,Nt),Nt=>de(Qe,Nt)),Be=.68,Ue=Z[ke.get()],ht=vi(Ue),Yt=vi(Ue),Ie=vi(Ue),E=vi(Ue),T=PP(ht,Ie,Yt,E,f,Be),A=BP(h,Z,pe,ae,E),G=HP(Ee,ke,ce,T,A,E,i),K=LP(ae),$=ia(),se=WP(t,n,i,p),{slideRegistry:we}=zP(Y,m,Z,me,q,ie),Pe=$P(e,n,we,G,T,$,i,k),Qe={ownerDocument:r,ownerWindow:s,eventHandler:i,containerRect:P,slideRects:D,animation:Ee,axis:z,dragHandler:CP(z,e,r,s,E,_P(z,s),ht,Ee,G,T,A,ke,i,V,x,v,g,Be,N),eventStore:$,percentOfView:V,index:ke,indexPrevious:ce,limit:ae,location:ht,offsetLocation:Ie,previousLocation:Yt,options:o,resizeHandler:AP(t,i,s,n,z,w,C),scrollBody:T,scrollBounds:OP(ae,Ie,E,T,V),scrollLooper:DP(pe,ae,Ie,[ht,Ie,Yt,E]),scrollProgress:K,scrollSnapList:Z.map(K.get),scrollSnaps:Z,scrollTarget:A,scrollTo:G,slideLooper:VP(z,O,pe,X,_,ne,Z,Ie,n),slideFocus:Pe,slidesHandler:UP(t,i,S),slidesInView:se,slideIndexes:ie,slideRegistry:we,slidesToScroll:q,target:E,translate:Sb(z,t)};return Qe}function YP(){let e={},t;function n(u){t=u}function r(u){return e[u]||[]}function s(u){return r(u).forEach(d=>d(t,u)),c}function o(u,d){return e[u]=r(u).concat([d]),c}function i(u,d){return e[u]=r(u).filter(h=>h!==d),c}function a(){e={}}const c={init:n,emit:s,off:i,on:o,clear:a};return c}const QP={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function ZP(e){function t(o,i){return wb(o,i||{})}function n(o){const i=o.breakpoints||{},a=oa(i).filter(c=>e.matchMedia(c).matches).map(c=>i[c]).reduce((c,u)=>t(c,u),{});return t(o,a)}function r(o){return o.map(i=>oa(i.breakpoints||{})).reduce((i,a)=>i.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function JP(e){let t=[];function n(o,i){return t=i.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(o,e)),i.reduce((a,c)=>Object.assign(a,{[c.name]:c}),{})}function r(){t=t.filter(o=>o.destroy())}return{init:n,destroy:r}}function ac(e,t,n){const r=e.ownerDocument,s=r.defaultView,o=ZP(s),i=JP(o),a=ia(),c=YP(),{mergeOptions:u,optionsAtMedia:d,optionsMediaQueries:h}=o,{on:f,off:x,emit:v}=c,p=z;let b=!1,g,m=u(QP,ac.globalOptions),w=u(m),S=[],N,k,j;function C(){const{container:ie,slides:H}=w;k=(Ef(ie)?e.querySelector(ie):ie)||e.children[0];const Ee=Ef(H)?k.querySelectorAll(H):H;j=[].slice.call(Ee||k.children)}function P(ie){const H=GP(e,k,j,r,s,ie,c);if(ie.loop&&!H.slideLooper.canLoop()){const de=Object.assign({},ie,{loop:!1});return P(de)}return H}function D(ie,H){b||(m=u(m,ie),w=d(m),S=H||S,C(),g=P(w),h([m,...S.map(({options:de})=>de)]).forEach(de=>a.add(de,"change",z)),w.active&&(g.translate.to(g.location.get()),g.animation.init(),g.slidesInView.init(),g.slideFocus.init(ce),g.eventHandler.init(ce),g.resizeHandler.init(ce),g.slidesHandler.init(ce),g.options.loop&&g.slideLooper.loop(),k.offsetParent&&j.length&&g.dragHandler.init(ce),N=i.init(ce,S)))}function z(ie,H){const de=q();O(),D(u({startIndex:de},ie),H),c.emit("reInit")}function O(){g.dragHandler.destroy(),g.eventStore.clear(),g.translate.clear(),g.slideLooper.clear(),g.resizeHandler.destroy(),g.slidesHandler.destroy(),g.slidesInView.destroy(),g.animation.destroy(),i.destroy(),a.clear()}function V(){b||(b=!0,a.clear(),O(),c.emit("destroy"),c.clear())}function I(ie,H,de){!w.active||b||(g.scrollBody.useBaseFriction().useDuration(H===!0?0:w.duration),g.scrollTo.index(ie,de||0))}function Y(ie){const H=g.index.add(1).get();I(H,ie,-1)}function W(ie){const H=g.index.add(-1).get();I(H,ie,1)}function X(){return g.index.add(1).get()!==q()}function _(){return g.index.add(-1).get()!==q()}function L(){return g.scrollSnapList}function Q(){return g.scrollProgress.get(g.location.get())}function q(){return g.index.get()}function ne(){return g.indexPrevious.get()}function le(){return g.slidesInView.get()}function pe(){return g.slidesInView.get(!1)}function ze(){return N}function me(){return g}function Z(){return e}function ae(){return k}function ke(){return j}const ce={canScrollNext:X,canScrollPrev:_,containerNode:ae,internalEngine:me,destroy:V,off:x,on:f,emit:v,plugins:ze,previousScrollSnap:ne,reInit:p,rootNode:Z,scrollNext:Y,scrollPrev:W,scrollProgress:Q,scrollSnapList:L,scrollTo:I,selectedScrollSnap:q,slideNodes:ke,slidesInView:le,slidesNotInView:pe};return D(t,n),setTimeout(()=>c.emit("init"),0),ce}ac.globalOptions=void 0;function pm(e={},t=[]){const n=y.useRef(e),r=y.useRef(t),[s,o]=y.useState(),[i,a]=y.useState(),c=y.useCallback(()=>{s&&s.reInit(n.current,r.current)},[s]);return y.useEffect(()=>{dm(n.current,e)||(n.current=e,c())},[e,c]),y.useEffect(()=>{SP(r.current,t)||(r.current=t,c())},[t,c]),y.useEffect(()=>{if(bP()&&i){ac.globalOptions=pm.globalOptions;const u=ac(i,n.current,r.current);return o(u),()=>u.destroy()}else o(void 0)},[i,o]),[a,s]}pm.globalOptions=void 0;const Nb=y.createContext(null);function au(){const e=y.useContext(Nb);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const Eb=y.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:s,children:o,...i},a)=>{const[c,u]=pm({...t,axis:e==="horizontal"?"x":"y"},r),[d,h]=y.useState(!1),[f,x]=y.useState(!1),v=y.useCallback(m=>{m&&(h(m.canScrollPrev()),x(m.canScrollNext()))},[]),p=y.useCallback(()=>{u==null||u.scrollPrev()},[u]),b=y.useCallback(()=>{u==null||u.scrollNext()},[u]),g=y.useCallback(m=>{m.key==="ArrowLeft"?(m.preventDefault(),p()):m.key==="ArrowRight"&&(m.preventDefault(),b())},[p,b]);return y.useEffect(()=>{!u||!n||n(u)},[u,n]),y.useEffect(()=>{if(u)return v(u),u.on("reInit",v),u.on("select",v),()=>{u==null||u.off("select",v)}},[u,v]),l.jsx(Nb.Provider,{value:{carouselRef:c,api:u,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:p,scrollNext:b,canScrollPrev:d,canScrollNext:f},children:l.jsx("div",{ref:a,onKeyDownCapture:g,className:Ce("relative",s),role:"region","aria-roledescription":"carousel",...i,children:o})})});Eb.displayName="Carousel";const jb=y.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:s}=au();return l.jsx("div",{ref:r,className:"overflow-hidden",children:l.jsx("div",{ref:n,className:Ce("flex",s==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});jb.displayName="CarouselContent";const kb=y.forwardRef(({className:e,...t},n)=>{const{orientation:r}=au();return l.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:Ce("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});kb.displayName="CarouselItem";const Cb=y.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},s)=>{const{orientation:o,scrollPrev:i,canScrollPrev:a}=au();return l.jsxs(De,{ref:s,variant:t,size:n,className:Ce("absolute h-8 w-8 rounded-full",o==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!a,onClick:i,...r,children:[l.jsx(w0,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Cb.displayName="CarouselPrevious";const _b=y.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},s)=>{const{orientation:o,scrollNext:i,canScrollNext:a}=au();return l.jsxs(De,{ref:s,variant:t,size:n,className:Ce("absolute h-8 w-8 rounded-full",o==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!a,onClick:i,...r,children:[l.jsx(Rh,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"Next slide"})]})});_b.displayName="CarouselNext";const XP=()=>{const[e,t]=y.useState(),[n,r]=y.useState(0),[s,o]=y.useState(null),[i,a]=y.useState(null),[c,u]=y.useState(new Set),d=y.useRef({}),h=[{id:"1",title:"University of Lagos Book Talk",location:"Lagos, Nigeria",videoUrl:"https://dm0qx8t0i9gc9.cloudfront.net/watermarks/video/BYhbSjKDtkvty6l0n/videoblocks-652db06f13841572379b3628_scxzjo6ob6__6f2dcef1db38bd6975e674a39683e482__P360.mp4",thumbnail:"/ig1.jpeg",description:"Nancy shares her powerful message with students at University of Lagos"},{id:"2",title:"Covenant University Workshop",location:"Ota, Nigeria",videoUrl:"https://dm0qx8t0i9gc9.cloudfront.net/watermarks/video/BYhbSjKDtkvty6l0n/videoblocks-652db06f13841572379b3628_scxzjo6ob6__6f2dcef1db38bd6975e674a39683e482__P360.mp4",thumbnail:"/ig1.jpeg",description:"Women's empowerment workshop at Covenant University"},{id:"3",title:"Healing Session Highlights",location:"Ibadan, Nigeria",videoUrl:"https://dm0qx8t0i9gc9.cloudfront.net/watermarks/video/BYhbSjKDtkvty6l0n/videoblocks-652db06f13841572379b3628_scxzjo6ob6__6f2dcef1db38bd6975e674a39683e482__P360.mp4",thumbnail:"/ig1.jpeg",description:"Transformative healing session moments from the tour"},{id:"4",title:"Campus Movement Launch",location:"Zaria, Nigeria",videoUrl:"https://dm0qx8t0i9gc9.cloudfront.net/watermarks/video/BYhbSjKDtkvty6l0n/videoblocks-652db06f13841572379b3628_scxzjo6ob6__6f2dcef1db38bd6975e674a39683e482__P360.mp4",thumbnail:"/ig1.jpeg",description:"The official HER movement launch at university campus"}],f=[...h,...h,...h];y.useEffect(()=>{if(!e)return;const g=()=>{r(e.selectedScrollSnap())};return e.on("select",g),r(e.selectedScrollSnap()),()=>{e.off("select",g)}},[e]),y.useEffect(()=>{var m;const g=(m=f[n])==null?void 0:m.id;if(g){Object.values(d.current).forEach(S=>{S&&S.dataset.videoId!==g&&S.pause()});const w=d.current[g];w&&(w.play(),a(g))}},[n,f]);const x=g=>{o(s===g?null:g)},v=g=>{const m=d.current[g];m&&(m.paused?(m.play(),a(g)):(m.pause(),a(null)))},p=g=>{const m=d.current[g];m&&(m.muted=!m.muted,m.muted?u(w=>new Set([...w,g])):u(w=>{const S=new Set(w);return S.delete(g),S}))},b=g=>{const m=d.current[g];m&&m.requestFullscreen&&m.requestFullscreen()};return l.jsx("section",{className:"py-20",children:l.jsxs("div",{className:"max-w-6xl mx-auto px-4",children:[l.jsx("h2",{className:"text-4xl font-bold text-center mb-12",children:"Tour Highlights"}),l.jsxs(Eb,{setApi:t,className:"w-full",opts:{align:"center",loop:!0},children:[l.jsx(jb,{className:"-ml-2 md:-ml-4",children:f.map((g,m)=>l.jsx(kb,{className:"pl-2 md:pl-4 md:basis-1/2 lg:basis-1/3",children:l.jsx(be,{className:"border border-green-600 shadow-lg rounded-lg overflow-hidden hover:shadow-xl transition-shadow",children:l.jsxs(Se,{className:"p-0 relative",children:[l.jsxs("div",{className:"relative",children:[l.jsx("video",{ref:w=>{w&&(d.current[g.id]=w)},"data-video-id":g.id,className:"w-full h-64 object-cover cursor-pointer",poster:g.thumbnail,muted:!0,loop:!0,onClick:()=>x(g.id),children:l.jsx("source",{src:g.videoUrl,type:"video/mp4"})}),s===g.id&&l.jsx("div",{className:"absolute inset-0 bg-black/40 flex items-center justify-center",children:l.jsxs("div",{className:"flex items-center space-x-4",children:[l.jsx("button",{onClick:w=>{w.stopPropagation(),v(g.id)},className:"p-3 rounded-full border-2 border-white/80 bg-white/20 hover:bg-white/30 transition-colors",children:i===g.id?l.jsx(gj,{className:"w-6 h-6 text-white"}):l.jsx(yj,{className:"w-6 h-6 text-white"})}),l.jsx("button",{onClick:w=>{w.stopPropagation(),p(g.id)},className:"p-3 rounded-full border-2 border-white/80 bg-white/20 hover:bg-white/30 transition-colors",children:c.has(g.id)?l.jsx(Nj,{className:"w-6 h-6 text-white"}):l.jsx(Sj,{className:"w-6 h-6 text-white"})}),l.jsx("button",{onClick:w=>{w.stopPropagation(),b(g.id)},className:"p-3 rounded-full border-2 border-white/80 bg-white/20 hover:bg-white/30 transition-colors",children:l.jsx(mj,{className:"w-6 h-6 text-white"})})]})})]}),l.jsxs("div",{className:"p-4",children:[l.jsx("h3",{className:"font-bold mb-2 text-lg",children:g.title}),l.jsxs("div",{className:"flex items-center text-sm text-muted-foreground mb-2",children:[l.jsx(Dc,{className:"w-3 h-3 mr-1"}),l.jsx("span",{children:g.location})]}),l.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:g.description})]})]})})},`${g.id}-${m}`))}),l.jsx(Cb,{className:"left-4 border-green-600 text-green-600 hover:bg-green-600 hover:text-white"}),l.jsx(_b,{className:"right-4 border-green-600 text-green-600 hover:bg-green-600 hover:text-white"})]})]})})},eO=({isOpen:e,onClose:t,eventTitle:n,posterUrl:r})=>l.jsx(sm,{open:e,onOpenChange:t,children:l.jsxs(Zc,{className:"max-w-2xl p-0 overflow-hidden",children:[l.jsx(om,{className:"p-4 pb-2",children:l.jsx(im,{className:"text-xl font-bold",children:n})}),l.jsx("div",{className:"relative",children:l.jsx("img",{src:r,alt:`${n} poster`,className:"w-full h-auto object-cover"})})]})}),tO=({isOpen:e,onClose:t})=>{const{toast:n}=ya(),[r,s]=y.useState(!1),[o,i]=y.useState({name:"",email:"",phone:"",school:"",message:""}),a=u=>{const{name:d,value:h}=u.target;i(f=>({...f,[d]:h}))},c=async u=>{u.preventDefault(),s(!0);try{const d=await tt.post("https://nancy-backend.fly.dev/api/book-tour",o);d.data.status==="success"?(n({title:"Request Sent",description:"Thank you! Your booking request and confirmation email have been sent."}),i({name:"",email:"",phone:"",school:"",message:""}),t()):n({title:"Failed to send",description:d.data.msg||"Something went wrong. Please try again.",variant:"destructive"})}catch(d){console.error(d),n({title:"Failed to send",description:"Something went wrong. Please try again or contact us directly.",variant:"destructive"})}finally{s(!1)}};return l.jsx(sm,{open:e,onOpenChange:t,children:l.jsxs(Zc,{className:"sm:max-w-md",children:[l.jsx(om,{children:l.jsx(im,{className:"text-2xl font-bold text-center",children:"Request a Book Tour"})}),l.jsxs("form",{onSubmit:c,className:"space-y-4",children:[l.jsxs("div",{children:[l.jsx(it,{htmlFor:"name",children:"Name *"}),l.jsx(wt,{id:"name",name:"name",type:"text",value:o.name,onChange:a,required:!0,className:"mt-1"})]}),l.jsxs("div",{children:[l.jsx(it,{htmlFor:"email",children:"Email *"}),l.jsx(wt,{id:"email",name:"email",type:"email",value:o.email,onChange:a,required:!0,className:"mt-1"})]}),l.jsxs("div",{children:[l.jsx(it,{htmlFor:"phone",children:"Phone Number *"}),l.jsx(wt,{id:"phone",name:"phone",type:"tel",value:o.phone,onChange:a,required:!0,className:"mt-1"})]}),l.jsxs("div",{children:[l.jsx(it,{htmlFor:"school",children:"School/Institution *"}),l.jsx(wt,{id:"school",name:"school",type:"text",value:o.school,onChange:a,required:!0,className:"mt-1"})]}),l.jsxs("div",{children:[l.jsx(it,{htmlFor:"message",children:"Additional Message"}),l.jsx(ou,{id:"message",name:"message",value:o.message,onChange:a,rows:3,className:"mt-1",placeholder:"Tell us more about your event, expected audience size, preferred dates, etc."})]}),l.jsxs("div",{className:"flex gap-3 pt-4",children:[l.jsx(De,{type:"button",variant:"outline",onClick:t,className:"flex-1",children:"Cancel"}),l.jsx(De,{type:"submit",className:"flex-1 bg-primary hover:bg-primary/90",disabled:r,children:r?"Sending...":"Send Request"})]})]})]})})},nO=()=>{const[e,t]=y.useState(null),[n,r]=y.useState(!1),s=[{date:"TBC",university:"University of Lagos",location:"Lagos, Nigeria",eventType:"Book Talk & Healing Session",status:"confirmed",logo:"/logoUnilag.png",poster:"/ig1.jpeg"},{date:"TBC",university:"Lagos University",location:"Lagos, Nigeria",eventType:"Book Talk & Healing Session",status:"confirmed",logo:"/logoLasu.png",poster:"/ig1.jpeg"},{date:"TBC",university:"Nnamdi Azikiwe University",location:"Anambra, Nigeria",eventType:"Book Talk & Healing Session",status:"confirmed",logo:"/logoNnamdi.png",poster:"/ig1.jpeg"},{date:"TBC",university:"University of Abuja",location:"Abuja, Nigeria",eventType:"Women's Empowerment Workshop",status:"confirmed",logo:"/logoUniAbj.png",poster:"/ig1.jpeg"},{date:"TBC",university:"University of Ibadan",location:"Ibadan, Nigeria",eventType:"Meet & Greet + Book Signing",status:"confirmed",logo:"/logoUniIbadan.png",poster:"/ig1.jpeg"},{date:"TBC",university:"Caleb University",location:"Ogun State, Nigeria",eventType:"Meet & Greet + Book Signing",status:"confirmed",logo:"/logoCaleb.png",poster:"/ig1.jpeg"},{date:"TBC",university:"Babcock University",location:"Ogun State, Nigeria",eventType:"Meet & Greet + Book Signing",status:"confirmed",logo:"/logoBabcock.jpg",poster:"/ig1.jpg"},{date:"TBC",university:"Obafemi Awolowo University",location:"Osun, Nigeria",eventType:"HER Movement Campus Launch",status:"confirmed",logo:"/logoOAU.png",poster:"/ig1.jpeg"}],o=[{title:"Book Talk",description:'Deep dive into "I GOT THIS. I AM HER" with Q&A session',icon:Fp,duration:"90 minutes"},{title:"Healing Sessions",description:"Interactive workshops focusing on emotional and spiritual healing",icon:zp,duration:"2 hours"},{title:"Meet & Greet",description:"Personal connections with students and book signing",icon:zp,duration:"60 minutes"},{title:"Book Signing Booth",description:"Campus booth for book sales and personal dedications",icon:Fp,duration:"All day"}],i=(a,c)=>{t({title:a,posterUrl:c})};return l.jsxs("div",{className:"pt-20 min-h-screen",children:[l.jsx(Na,{children:l.jsxs("div",{className:"max-w-6xl mx-auto px-4 text-center",children:[l.jsx("h1",{className:"text-5xl md:text-6xl font-bold mb-6",children:"I GOT THIS! I AM HER"}),l.jsx("h2",{className:"text-3xl md:text-4xl font-light mb-8",children:"The Campus Tour"}),l.jsx("p",{className:"text-xl mb-8 max-w-3xl mx-auto",children:"Bringing the HER movement directly to universities across Nigeria. Healing, empowerment, and transformation happening one campus at a time."})]})}),l.jsx(XP,{}),l.jsx("section",{className:"py-20",children:l.jsxs("div",{className:"max-w-6xl mx-auto px-4",children:[l.jsx("h2",{className:"text-4xl font-bold text-center mb-12",children:"Upcoming Tour Dates"}),l.jsx("div",{className:"grid gap-6",children:s.map((a,c)=>l.jsxs(be,{className:"hover:shadow-lg transition-shadow relative overflow-hidden",children:[l.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:`url(${a.poster})`,filter:"blur(8px)",transform:"scale(1.2)",opacity:.25}}),l.jsx("div",{className:"relative bg-white/95 backdrop-blur-md",children:l.jsx(Se,{className:"p-6",children:l.jsxs("div",{className:"grid md:grid-cols-5 gap-4 items-center",children:[l.jsxs("div",{className:"text-center md:text-left",children:[l.jsxs("div",{className:"flex items-center justify-center md:justify-start mb-2",children:[l.jsx(b0,{className:"w-4 h-4 text-primary mr-2"}),l.jsx("span",{className:"text-lg font-bold text-primary",children:a.date})]}),l.jsx("span",{className:`inline-block px-2 py-1 rounded-full text-xs font-medium ${a.status==="confirmed"?"bg-green-100 text-green-800":"bg-yellow-100 text-yellow-800"}`,children:a.status})]}),l.jsx("div",{className:"text-center",children:l.jsx("img",{src:a.logo,alt:`${a.university} logo`,className:"w-12 h-12 mx-auto object-contain mb-1"})}),l.jsxs("div",{children:[l.jsx("h3",{className:"text-lg font-bold mb-1 leading-tight",children:a.university}),l.jsxs("div",{className:"flex items-center text-muted-foreground text-sm",children:[l.jsx(Dc,{className:"w-3 h-3 mr-1"}),l.jsx("span",{children:a.location})]})]}),l.jsx("div",{children:l.jsx("p",{className:"font-medium text-primary text-sm",children:a.eventType})}),l.jsx("div",{className:"text-center md:text-right",children:l.jsxs(De,{onClick:()=>i(a.university,a.poster),variant:"outline",size:"sm",className:"border-primary text-primary hover:bg-primary hover:text-white text-xs",children:[l.jsx(fj,{className:"w-3 h-3 mr-1"}),"View Poster"]})})]})})})]},c))})]})}),l.jsx("section",{className:"py-20 bg-muted/50",children:l.jsxs("div",{className:"max-w-6xl mx-auto px-4",children:[l.jsx("h2",{className:"text-4xl font-bold text-center mb-12",children:"What to Expect"}),l.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:o.map((a,c)=>{const u=a.icon;return l.jsx(be,{className:"text-center hover:shadow-lg transition-shadow",children:l.jsxs(Se,{className:"p-8",children:[l.jsx("div",{className:"flex justify-center mb-4",children:l.jsx(u,{className:"w-12 h-12 text-primary"})}),l.jsx("h3",{className:"text-xl font-bold mb-4",children:a.title}),l.jsx("p",{className:"text-muted-foreground mb-4",children:a.description}),l.jsx("span",{className:"text-sm font-medium text-primary",children:a.duration})]})},c)})})]})}),l.jsx("section",{className:"py-20 bg-primary text-white",children:l.jsxs("div",{className:"max-w-4xl mx-auto px-4 text-center",children:[l.jsx("h2",{className:"text-4xl font-bold mb-8",children:"Want Nancy at Your University?"}),l.jsx("p",{className:"text-xl mb-8 max-w-2xl mx-auto",children:'Bring the "I AM HER" movement to your campus. Nancy is available for speaking engagements, workshops, and healing sessions at universities across Africa.'}),l.jsxs(be,{className:"max-w-2xl mx-auto",children:[l.jsx(yr,{children:l.jsx(vr,{className:"text-2xl text-foreground",children:"Request a Campus Visit"})}),l.jsx(Se,{children:l.jsxs("div",{className:"space-y-4 text-foreground",children:[l.jsxs("div",{className:"flex items-center justify-center space-x-2",children:[l.jsx(Ph,{className:"w-5 h-5 text-primary"}),l.jsx("span",{className:"font-medium",children:"iamherbook@gmail.com"})]}),l.jsx("p",{className:"text-muted-foreground",children:"Include your university name, preferred dates, and expected audience size."}),l.jsx(De,{size:"lg",className:"bg-primary hover:bg-primary/90 text-white",onClick:()=>r(!0),children:"Send Booking Request"})]})})]})]})}),l.jsx(eO,{isOpen:!!e,onClose:()=>t(null),eventTitle:(e==null?void 0:e.title)||"",posterUrl:(e==null?void 0:e.posterUrl)||""}),l.jsx(tO,{isOpen:n,onClose:()=>r(!1)})]})},rO=()=>l.jsxs("div",{className:"pt-20 min-h-screen bg-gradient-to-br from-emerald-50 via-white to-green-50",children:[l.jsx("section",{className:"py-12 bg-gradient-to-r from-emerald-600 to-green-600 text-white",children:l.jsxs("div",{className:"max-w-4xl mx-auto px-4 text-center",children:[l.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:"Dear HER Sundays"}),l.jsx("p",{className:"text-xl md:text-2xl font-light",children:"by Nancy Duffour"}),l.jsxs("div",{className:"flex items-center justify-center mt-6 text-emerald-100",children:[l.jsx(b0,{className:"w-5 h-5 mr-2"}),l.jsx("span",{children:"Blog #3 – I smiled in public… but I was grieving in secret."})]}),l.jsx("p",{className:"text-center text-emerald-100 mt-4",children:" The silent pain of pretending to be okay."})]})}),l.jsxs("section",{className:"py-16",children:[l.jsxs("div",{className:"max-w-4xl mx-auto px-4 space-y-12",children:[l.jsx(be,{className:"overflow-hidden shadow-lg border-l-4 border-emerald-500",children:l.jsxs(Se,{className:"p-8",children:[l.jsxs("div",{className:"flex items-center mb-6",children:[l.jsx("div",{className:"bg-emerald-100 p-2 rounded-full mr-4",children:l.jsx("span",{className:"text-2xl",children:"🌿"})}),l.jsx("h2",{className:"text-2xl font-bold text-emerald-700",children:"The Bible Verse That Held Me This Week:"})]}),l.jsxs("div",{className:"prose prose-lg max-w-none text-gray-700 leading-relaxed space-y-4",children:[l.jsx("span",{className:"italic text-md",children:"He heals the brokenhearted and binds up their wounds.” — Psalm 147:3"}),l.jsxs("p",{className:"italic text-lg",children:["Some wounds don’t bleed. ",l.jsx("br",{}),"They hide behind lipstick and laughter. ",l.jsx("br",{}),"And it’s only when the crowd is gone and the lights go off that we feel how deep the cut really is."]}),l.jsxs("p",{className:"italic text-lg",children:["This verse didn’t rush me to heal. ",l.jsx("br",{}),"It just sat with me… quietly. ",l.jsx("br",{}),"And reminded me that even what I’ve buried, God can bind."]}),l.jsx("h4",{className:"font-bold text-emerald-800 text-xl",children:"🕯 Dear Beautiful Reader"}),l.jsx("p",{children:"Have you ever had to pretend to be okay just so the world doesn’t fall apart?"}),l.jsxs("p",{children:["You get up. ",l.jsx("br",{}),"You show up. ",l.jsx("br",{}),"You put on your “I’m fine” voice. ",l.jsx("br",{}),"But inside… you’re quietly grieving the version of yourself that had more energy, more hope, more dreams."]}),l.jsxs("p",{children:["I know that grief. ",l.jsx("br",{}),"And this week, I didn’t push it away. ",l.jsx("br",{}),"I sat with it."]}),l.jsxs("p",{children:["And something unexpected happened: ",l.jsx("br",{}),"I discovered that grief is not a sign of weakness. ",l.jsx("br",{}),"It’s proof that you had something worth loving… something worth losing… and now, something worth healing."]})]})]})}),l.jsx(be,{className:"overflow-hidden shadow-lg border-l-4 border-green-500",children:l.jsxs(Se,{className:"p-8",children:[l.jsx("div",{className:"flex items-center mb-6",children:l.jsx("h2",{className:"text-2xl font-bold text-green-700",children:"The Real-Life Story (From My Book)"})}),l.jsxs("div",{className:"prose prose-lg max-w-none text-gray-700 leading-relaxed space-y-4",children:[l.jsxs("p",{children:["There was a season in my life when I mastered the art of public strength and private sorrow. ",l.jsx("br",{}),"I hosted meetings. Encouraged others. Spoke life. Prayed. ",l.jsx("br",{}),"But I was silently mourning a life I thought I would have by now."]}),l.jsxs("p",{children:["The house was loud, but I felt alone. ",l.jsx("br",{}),"I couldn’t explain why I was sad — I just knew I was tired. ",l.jsx("br",{}),"Tired of holding it all together while breaking quietly."]}),l.jsxs("p",{children:["One night, I locked the door. ",l.jsx("br",{}),"Sat on the edge of the bed. ",l.jsx("br",{}),"And whispered something raw:"]}),l.jsxs("p",{className:"italic font-semibold text-emerald-700",children:["“God… I’m not angry. I’m just empty. ",l.jsx("br",{}),"I’m tired of surviving things I never asked for.”"]}),l.jsx("p",{className:"font-medium",children:"And like a soft breeze, I felt peace enter the room."}),l.jsxs("p",{children:["He didn’t fix everything in that moment. ",l.jsx("br",{}),"But He reminded me I wasn’t crazy. ",l.jsx("br",{}),"I was grieving. ",l.jsx("br",{}),"And that was okay."]})]})]})}),l.jsx(be,{className:"overflow-hidden shadow-lg border-l-4 border-emerald-400",children:l.jsxs(Se,{className:"p-8",children:[l.jsx("div",{className:"flex mb-6",children:l.jsx("h2",{className:"text-2xl font-bold text-emerald-700",children:"✍🏾 Journal Entry This Week:"})}),l.jsxs("blockquote",{className:" bg-white rounded-lg",children:["I’ve been moving on too quickly. ",l.jsx("br",{}),"Jumping from loss to leadership without space to breathe. ",l.jsx("br",{})]}),l.jsxs("blockquote",{children:["But today, I gave myself permission to pause. ",l.jsx("br",{}),"To feel.",l.jsx("br",{}),"To remember.",l.jsx("br",{}),"To cry.",l.jsx("br",{}),"Because healing isn’t a race. ",l.jsx("br",{}),"It’s a return — to the parts of me I abandoned while trying to survive."]})]})}),l.jsx(be,{className:"overflow-hidden shadow-lg border-l-4 border-emerald-400",children:l.jsxs(Se,{className:"p-8",children:[l.jsx("div",{className:"flex mb-6",children:l.jsx("h2",{className:"text-2xl font-bold text-emerald-700",children:"🔥 The Scene of a Woman Rising in Silence:"})}),l.jsxs("blockquote",{className:" bg-white rounded-lg",children:[l.jsx("p",{className:"font-sans font-bold text-emerald-800",children:"Picture her:"}),l.jsxs("p",{children:["A woman who hasn’t laughed deeply in months. ",l.jsx("br",{}),"Whose eyes still swell with tears when no one’s watching. ",l.jsx("br",{}),"She walks into a room and the atmosphere shifts — not because she’s loud, but because she carries quiet strength."]}),l.jsxs("p",{children:["She’s been overlooked. Underestimated. ",l.jsx("br",{}),"But she keeps showing up."]}),l.jsx("p",{children:"One day, she looks at herself in the mirror and whispers:"}),l.jsx("p",{className:"italic",children:"“I’m proud of you for surviving what no one clapped for.”"}),l.jsx("p",{children:"She fixes her hair. Puts on her shoes. And walks out like a woman who knows her pain didn’t disqualify her — it refined her."}),l.jsx("p",{children:"That woman is me. And maybe it’s you too."})]})]})}),l.jsx(be,{className:"overflow-hidden shadow-lg border-l-4 border-emerald-400",children:l.jsxs(Se,{className:"p-8",children:[l.jsx("div",{className:"flex items-center mb-6",children:l.jsx("h2",{className:"text-2xl font-bold text-emerald-700",children:"Confession of the Week:"})}),l.jsxs("blockquote",{className:"text-lg font-medium text-emerald-800 italic text-center bg-white p-6 rounded-lg shadow-sm",children:["Sometimes I want to be held more than I want to be healed. ",l.jsx("br",{}),"Because healing is a process. ",l.jsx("br",{}),"But being seen? That’s instant comfort."]})]})}),l.jsx(be,{className:"overflow-hidden shadow-lg bg-gradient-to-br from-emerald-600 to-green-600 text-white",children:l.jsxs(Se,{className:"p-8",children:[l.jsx("div",{className:"mb-6",children:l.jsx("h2",{className:"text-2xl font-bold",children:"Special Note:"})}),l.jsxs("blockquote",{className:"text-lg p-6 rounded-lg shadow-sm",children:[l.jsx("p",{children:"If you’re reading this and you’ve been grieving something in silence — a dream, a version of yourself, a relationship, a season you never got to say goodbye to — I want you to know:"}),l.jsxs("p",{children:["You’re not crazy. ",l.jsx("br",{}),"You’re not weak. ",l.jsx("br",{}),"You’re not behind."]}),l.jsxs("p",{children:["You’re healing. ",l.jsx("br",{}),"And it’s holy."]})]})]})}),l.jsx(be,{className:"overflow-hidden shadow-lg bg-white text-emerald-800",children:l.jsxs(Se,{className:"p-8",children:[l.jsx("div",{className:"mb-6",children:l.jsx("h2",{className:"text-2xl font-bold",children:"Voice Note from Me to You (Play this in your heart):"})}),l.jsxs("blockquote",{className:"text-lg p-6",children:[l.jsxs("p",{children:["“Bestie, please don’t be hard on yourself for being human. ",l.jsx("br",{}),"You’ve carried so much with so little help. ",l.jsx("br",{}),"You’ve smiled through disappointments. ",l.jsx("br",{}),"You’ve comforted others while needing comfort yourself."]}),l.jsxs("p",{children:["But you’re still here. ",l.jsx("br",{}),"And that, my love, is strength."]}),l.jsxs("p",{children:["Let God carry you this week. ",l.jsx("br",{}),"Let Him wipe the tears you’ve been hiding. ",l.jsx("br",{}),"Let Him see the version of you that doesn’t always get applause."]}),l.jsxs("p",{children:["You are more than your pain. ",l.jsx("br",{}),"You are proof that beauty can come from broken places. ",l.jsx("br",{}),"You are still HER. Even when you’re healing.”"]})]})]})}),l.jsx(be,{className:"overflow-hidden shadow-lg bg-white text-emerald-800",children:l.jsxs(Se,{className:"p-8",children:[l.jsx("div",{className:"mb-6",children:l.jsx("h2",{className:"text-2xl font-bold",children:"Healing Affirmations to Whisper This Week:"})}),l.jsxs("ul",{className:"text-lg p-6",children:[l.jsx("li",{children:"• I can grieve and grow at the same time."}),l.jsx("li",{children:"• My softness is not a weakness — it’s a superpower."}),l.jsx("li",{children:"• I deserve space to breathe, not just survive."}),l.jsx("li",{children:"• God is not waiting for me to “get over it.” He’s sitting with me in it."}),l.jsx("li",{children:"• I am her. Even when I feel fragile."})]})]})}),l.jsx(be,{className:"overflow-hidden shadow-lg bg-white text-emerald-800",children:l.jsxs(Se,{className:"p-8",children:[l.jsx("div",{className:"mb-6",children:l.jsx("h2",{className:"text-2xl font-bold",children:" Write Back to Me"})}),l.jsx("div",{className:"text-lg p-6",children:l.jsxs("p",{children:["Tell me what you’re grieving. ",l.jsx("br",{}),"Tell me what you’re holding in silence. ",l.jsx("br",{}),"Or just whisper, “Still standing.” ",l.jsx("br",{}),"I’ll understand."]})})]})}),l.jsx(be,{className:"overflow-hidden shadow-lg bg-white text-emerald-800",children:l.jsxs(Se,{className:"p-8",children:[l.jsx("div",{className:"mb-6",children:l.jsx("h2",{className:"text-2xl font-bold",children:" Before I Go…"})}),l.jsxs("div",{className:"text-lg p-6",children:[l.jsxs("p",{children:["Some of us weren’t allowed to grieve growing up. ",l.jsx("br",{}),"We were told to “be strong” or ",l.jsx("span",{className:"italic",children:"“move on.”"})," ",l.jsx("br",{}),"But not here. ",l.jsx("br",{}),"This space is for honest women. Tender women. Brave women."]}),l.jsx("p",{children:"This space is for YOU."}),l.jsx("p",{children:"And I’ll be here next week — waiting with another lifeline."})]})]})}),l.jsx(be,{className:"overflow-hidden shadow-lg bg-gradient-to-br from-emerald-600 to-green-600 text-white text-center",children:l.jsx(Se,{className:"p-8",children:l.jsx("div",{className:"text-lg font-san font-semibold p-6",children:l.jsxs("p",{children:["Until next Sunday, ",l.jsx("br",{}),"With love and truth, ",l.jsx("br",{}),"Nancy — Your Ristora ",l.jsx("br",{}),"I GOT THIS. I AM HER."]})})})})]}),l.jsx("div",{className:"text-center mt-12",children:l.jsx("a",{href:"/dear-her-sundays/posts",className:"text-emerald-700 hover:underline font-semibold text-lg",children:"✨ See More Posts from Nancy on Substack →"})})]})]}),ed=()=>l.jsx("svg",{viewBox:"0 0 75 65",width:"20",height:"20",fill:"grey-600",children:l.jsx("path",{d:"M0 0v65h75V0H0zm67.5 7.5v10H7.5v-10h60zm-60 50v-10h60v10h-60zm0-17.5V30h60v10H7.5z"})}),sO=()=>{const[e,t]=y.useState([]),[n,r]=y.useState(!0),[s,o]=y.useState(null);return y.useEffect(()=>{tt.get("https://nancy-backend.fly.dev/api/substack-feed").then(i=>{t(i.data),r(!1)}).catch(i=>{console.error("❌ Failed to fetch Substack feed:",i),o("Could not load Substack feed."),r(!1)})},[]),n?l.jsxs(l.Fragment,{children:[l.jsx("p",{className:"text-center text-gray-500",children:"Loading posts..."}),l.jsx("div",{className:"text-center mt-10 text-xl md:text-2xl",children:l.jsxs("a",{href:"https://iamherwithnancy.substack.com",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 bg-green-600 hover:bg-emerald-700 hover:text-green-600 font-semibold px-6 py-3 rounded-md transition",children:[l.jsx(ed,{}),"View Nancy on Substack"]})})]}):s?l.jsxs(l.Fragment,{children:[l.jsx("p",{className:"text-center text-red-500",children:s}),l.jsx("div",{className:"text-center mt-10 text-xl md:text-2xl",children:l.jsxs("a",{href:"https://iamherwithnancy.substack.com",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 bg-green-600 hover:bg-emerald-700 hover:text-green-600 font-semibold px-6 py-3 rounded-md transition",children:[l.jsx(ed,{}),"View Nancy on Substack"]})})]}):l.jsxs("section",{className:"px-4 py-6",children:[l.jsx("h2",{className:"text-3xl font-bold text-center text-[#004225] mb-8",children:"Read Nancy's Posts"}),l.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:e.map((i,a)=>l.jsxs("div",{className:"bg-white border border-gray-200 rounded-2xl shadow-sm hover:shadow-md transition-shadow duration-300 p-6 flex flex-col justify-between",children:[l.jsxs("div",{children:[l.jsx("a",{href:i.link,target:"_blank",rel:"noopener noreferrer",className:"text-xl font-semibold text-[#004225] hover:underline",children:i.title}),l.jsx("p",{className:"text-sm text-gray-500 mt-1",children:new Date(i.published).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}),l.jsx("div",{className:"mt-4 text-gray-700 text-sm leading-relaxed line-clamp-4",dangerouslySetInnerHTML:{__html:i.summary}})]}),l.jsx("div",{className:"mt-4",children:l.jsx("a",{href:i.link,target:"_blank",rel:"noopener noreferrer",className:"inline-block mt-2 text-sm font-medium text-[#004225] hover:underline",children:"Read more →"})})]},a))}),l.jsx("div",{className:"text-center mt-10 text-xl md:text-2xl",children:l.jsxs("a",{href:"https://iamherwithnancy.substack.com",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 bg-green-600 hover:bg-emerald-700 hover:text-green-600 font-semibold px-6 py-3 rounded-md transition",children:[l.jsx(ed,{}),"View More on Substack"]})})]})};function oO(){return l.jsxs(l.Fragment,{children:[l.jsx("section",{className:"bg-gradient-to-r from-green-700 via-emerald-500 to-green-700 text-white mt-16 py-20 px-4 text-center",children:l.jsxs("div",{className:"max-w-3xl mx-auto",children:[l.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4 text-transparent bg-clip-text bg-gradient-to-r from-slate-100 via-white to-slate-200 leading-normal",children:"Stay Inspired with Nancy"}),l.jsx("p",{className:"text-lg md:text-xl opacity-90",children:"Explore her latest writings, thoughts, and messages."})]})}),l.jsx("section",{className:"max-w-[70rem] mx-auto px-4 py-10",children:l.jsx(sO,{})}),l.jsx(Hn,{})]})}const iO=()=>{const e=Vs();return y.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),l.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:l.jsxs("div",{className:"text-center",children:[l.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),l.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),l.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})};var Ca=e=>e.type==="checkbox",vs=e=>e instanceof Date,It=e=>e==null;const Tb=e=>typeof e=="object";var lt=e=>!It(e)&&!Array.isArray(e)&&Tb(e)&&!vs(e),aO=e=>lt(e)&&e.target?Ca(e.target)?e.target.checked:e.target.value:e,lO=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,cO=(e,t)=>e.has(lO(t)),uO=e=>{const t=e.constructor&&e.constructor.prototype;return lt(t)&&t.hasOwnProperty("isPrototypeOf")},gm=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function gt(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(gm&&(e instanceof Blob||r))&&(n||lt(e)))if(t=n?[]:{},!n&&!uO(e))t=e;else for(const s in e)e.hasOwnProperty(s)&&(t[s]=gt(e[s]));else return e;return t}var lu=e=>/^\w*$/.test(e),ut=e=>e===void 0,ym=e=>Array.isArray(e)?e.filter(Boolean):[],vm=e=>ym(e.replace(/["|']|\]/g,"").split(/\.|\[/)),te=(e,t,n)=>{if(!t||!lt(e))return n;const r=(lu(t)?[t]:vm(t)).reduce((s,o)=>It(s)?s:s[o],e);return ut(r)||r===e?ut(e[t])?n:e[t]:r},$n=e=>typeof e=="boolean",$e=(e,t,n)=>{let r=-1;const s=lu(t)?[t]:vm(t),o=s.length,i=o-1;for(;++r<o;){const a=s[r];let c=n;if(r!==i){const u=e[a];c=lt(u)||Array.isArray(u)?u:isNaN(+s[r+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;e[a]=c,e=e[a]}};const qg={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},_n={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},nr={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},dO=F.createContext(null);dO.displayName="HookFormContext";var fO=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(s,o,{get:()=>{const i=o;return t._proxyFormState[i]!==_n.all&&(t._proxyFormState[i]=!r||_n.all),e[i]}});return s};const hO=typeof window<"u"?y.useLayoutEffect:y.useEffect;var Gn=e=>typeof e=="string",mO=(e,t,n,r,s)=>Gn(e)?(r&&t.watch.add(e),te(n,e,s)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),te(n,o))):(r&&(t.watchAll=!0),n),Rb=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},Ai=e=>Array.isArray(e)?e:[e],Kg=()=>{let e=[];return{get observers(){return e},next:s=>{for(const o of e)o.next&&o.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(o=>o!==s)}}),unsubscribe:()=>{e=[]}}},kf=e=>It(e)||!Tb(e);function Pr(e,t,n=new WeakSet){if(kf(e)||kf(t))return e===t;if(vs(e)&&vs(t))return e.getTime()===t.getTime();const r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const o of r){const i=e[o];if(!s.includes(o))return!1;if(o!=="ref"){const a=t[o];if(vs(i)&&vs(a)||lt(i)&<(a)||Array.isArray(i)&&Array.isArray(a)?!Pr(i,a,n):i!==a)return!1}}return!0}var Ht=e=>lt(e)&&!Object.keys(e).length,xm=e=>e.type==="file",Tn=e=>typeof e=="function",lc=e=>{if(!gm)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Ab=e=>e.type==="select-multiple",wm=e=>e.type==="radio",pO=e=>wm(e)||Ca(e),td=e=>lc(e)&&e.isConnected;function gO(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=ut(e)?r++:e[t[r++]];return e}function yO(e){for(const t in e)if(e.hasOwnProperty(t)&&!ut(e[t]))return!1;return!0}function ct(e,t){const n=Array.isArray(t)?t:lu(t)?[t]:vm(t),r=n.length===1?e:gO(e,n),s=n.length-1,o=n[s];return r&&delete r[o],s!==0&&(lt(r)&&Ht(r)||Array.isArray(r)&&yO(r))&&ct(e,n.slice(0,-1)),e}var Pb=e=>{for(const t in e)if(Tn(e[t]))return!0;return!1};function cc(e,t={}){const n=Array.isArray(e);if(lt(e)||n)for(const r in e)Array.isArray(e[r])||lt(e[r])&&!Pb(e[r])?(t[r]=Array.isArray(e[r])?[]:{},cc(e[r],t[r])):It(e[r])||(t[r]=!0);return t}function Ob(e,t,n){const r=Array.isArray(e);if(lt(e)||r)for(const s in e)Array.isArray(e[s])||lt(e[s])&&!Pb(e[s])?ut(t)||kf(n[s])?n[s]=Array.isArray(e[s])?cc(e[s],[]):{...cc(e[s])}:Ob(e[s],It(t)?{}:t[s],n[s]):n[s]=!Pr(e[s],t[s]);return n}var di=(e,t)=>Ob(e,t,cc(t));const Gg={value:!1,isValid:!1},Yg={value:!0,isValid:!0};var Ib=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&&!ut(e[0].attributes.value)?ut(e[0].value)||e[0].value===""?Yg:{value:e[0].value,isValid:!0}:Yg:Gg}return Gg},Mb=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ut(e)?e:t?e===""?NaN:e&&+e:n&&Gn(e)?new Date(e):r?r(e):e;const Qg={isValid:!1,value:null};var Db=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Qg):Qg;function Zg(e){const t=e.ref;return xm(t)?t.files:wm(t)?Db(e.refs).value:Ab(t)?[...t.selectedOptions].map(({value:n})=>n):Ca(t)?Ib(e.refs).value:Mb(ut(t.value)?e.ref.value:t.value,e)}var vO=(e,t,n,r)=>{const s={};for(const o of e){const i=te(t,o);i&&$e(s,o,i._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},uc=e=>e instanceof RegExp,fi=e=>ut(e)?e:uc(e)?e.source:lt(e)?uc(e.value)?e.value.source:e.value:e,Jg=e=>({isOnSubmit:!e||e===_n.onSubmit,isOnBlur:e===_n.onBlur,isOnChange:e===_n.onChange,isOnAll:e===_n.all,isOnTouch:e===_n.onTouched});const Xg="AsyncFunction";var xO=e=>!!e&&!!e.validate&&!!(Tn(e.validate)&&e.validate.constructor.name===Xg||lt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Xg)),wO=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),ey=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Pi=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const o=te(e,s);if(o){const{_f:i,...a}=o;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],s)&&!r)return!0;if(i.ref&&t(i.ref,i.name)&&!r)return!0;if(Pi(a,t))break}else if(lt(a)&&Pi(a,t))break}}};function ty(e,t,n){const r=te(e,n);if(r||lu(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const o=s.join("."),i=te(t,o),a=te(e,o);if(i&&!Array.isArray(i)&&n!==o)return{name:n};if(a&&a.type)return{name:o,error:a};if(a&&a.root&&a.root.type)return{name:`${o}.root`,error:a.root};s.pop()}return{name:n}}var bO=(e,t,n,r)=>{n(e);const{name:s,...o}=e;return Ht(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!r||_n.all))},SO=(e,t,n)=>!e||!t||e===t||Ai(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),NO=(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,EO=(e,t)=>!ym(te(e,t)).length&&ct(e,t),jO=(e,t,n)=>{const r=Ai(te(e,n));return $e(r,"root",t[n]),$e(e,n,r),e},Sl=e=>Gn(e);function ny(e,t,n="validate"){if(Sl(e)||Array.isArray(e)&&e.every(Sl)||$n(e)&&!e)return{type:n,message:Sl(e)?e:"",ref:t}}var Ys=e=>lt(e)&&!uc(e)?e:{value:e,message:""},ry=async(e,t,n,r,s,o)=>{const{ref:i,refs:a,required:c,maxLength:u,minLength:d,min:h,max:f,pattern:x,validate:v,name:p,valueAsNumber:b,mount:g}=e._f,m=te(n,p);if(!g||t.has(p))return{};const w=a?a[0]:i,S=O=>{s&&w.reportValidity&&(w.setCustomValidity($n(O)?"":O||""),w.reportValidity())},N={},k=wm(i),j=Ca(i),C=k||j,P=(b||xm(i))&&ut(i.value)&&ut(m)||lc(i)&&i.value===""||m===""||Array.isArray(m)&&!m.length,D=Rb.bind(null,p,r,N),z=(O,V,I,Y=nr.maxLength,W=nr.minLength)=>{const X=O?V:I;N[p]={type:O?Y:W,message:X,ref:i,...D(O?Y:W,X)}};if(o?!Array.isArray(m)||!m.length:c&&(!C&&(P||It(m))||$n(m)&&!m||j&&!Ib(a).isValid||k&&!Db(a).isValid)){const{value:O,message:V}=Sl(c)?{value:!!c,message:c}:Ys(c);if(O&&(N[p]={type:nr.required,message:V,ref:w,...D(nr.required,V)},!r))return S(V),N}if(!P&&(!It(h)||!It(f))){let O,V;const I=Ys(f),Y=Ys(h);if(!It(m)&&!isNaN(m)){const W=i.valueAsNumber||m&&+m;It(I.value)||(O=W>I.value),It(Y.value)||(V=W<Y.value)}else{const W=i.valueAsDate||new Date(m),X=Q=>new Date(new Date().toDateString()+" "+Q),_=i.type=="time",L=i.type=="week";Gn(I.value)&&m&&(O=_?X(m)>X(I.value):L?m>I.value:W>new Date(I.value)),Gn(Y.value)&&m&&(V=_?X(m)<X(Y.value):L?m<Y.value:W<new Date(Y.value))}if((O||V)&&(z(!!O,I.message,Y.message,nr.max,nr.min),!r))return S(N[p].message),N}if((u||d)&&!P&&(Gn(m)||o&&Array.isArray(m))){const O=Ys(u),V=Ys(d),I=!It(O.value)&&m.length>+O.value,Y=!It(V.value)&&m.length<+V.value;if((I||Y)&&(z(I,O.message,V.message),!r))return S(N[p].message),N}if(x&&!P&&Gn(m)){const{value:O,message:V}=Ys(x);if(uc(O)&&!m.match(O)&&(N[p]={type:nr.pattern,message:V,ref:i,...D(nr.pattern,V)},!r))return S(V),N}if(v){if(Tn(v)){const O=await v(m,n),V=ny(O,w);if(V&&(N[p]={...V,...D(nr.validate,V.message)},!r))return S(V.message),N}else if(lt(v)){let O={};for(const V in v){if(!Ht(O)&&!r)break;const I=ny(await v[V](m,n),w,V);I&&(O={...I,...D(V,I.message)},S(I.message),r&&(N[p]=O))}if(!Ht(O)&&(N[p]={ref:w,...O},!r))return N}}return S(!0),N};const kO={mode:_n.onSubmit,reValidateMode:_n.onChange,shouldFocusError:!0};function CO(e={}){let t={...kO,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Tn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},s=lt(t.defaultValues)||lt(t.values)?gt(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:gt(s),i={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let h={...d};const f={array:Kg(),state:Kg()},x=t.criteriaMode===_n.all,v=E=>T=>{clearTimeout(u),u=setTimeout(E,T)},p=async E=>{if(!t.disabled&&(d.isValid||h.isValid||E)){const T=t.resolver?Ht((await j()).errors):await P(r,!0);T!==n.isValid&&f.state.next({isValid:T})}},b=(E,T)=>{!t.disabled&&(d.isValidating||d.validatingFields||h.isValidating||h.validatingFields)&&((E||Array.from(a.mount)).forEach(A=>{A&&(T?$e(n.validatingFields,A,T):ct(n.validatingFields,A))}),f.state.next({validatingFields:n.validatingFields,isValidating:!Ht(n.validatingFields)}))},g=(E,T=[],A,G,K=!0,$=!0)=>{if(G&&A&&!t.disabled){if(i.action=!0,$&&Array.isArray(te(r,E))){const se=A(te(r,E),G.argA,G.argB);K&&$e(r,E,se)}if($&&Array.isArray(te(n.errors,E))){const se=A(te(n.errors,E),G.argA,G.argB);K&&$e(n.errors,E,se),EO(n.errors,E)}if((d.touchedFields||h.touchedFields)&&$&&Array.isArray(te(n.touchedFields,E))){const se=A(te(n.touchedFields,E),G.argA,G.argB);K&&$e(n.touchedFields,E,se)}(d.dirtyFields||h.dirtyFields)&&(n.dirtyFields=di(s,o)),f.state.next({name:E,isDirty:z(E,T),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else $e(o,E,T)},m=(E,T)=>{$e(n.errors,E,T),f.state.next({errors:n.errors})},w=E=>{n.errors=E,f.state.next({errors:n.errors,isValid:!1})},S=(E,T,A,G)=>{const K=te(r,E);if(K){const $=te(o,E,ut(A)?te(s,E):A);ut($)||G&&G.defaultChecked||T?$e(o,E,T?$:Zg(K._f)):I(E,$),i.mount&&p()}},N=(E,T,A,G,K)=>{let $=!1,se=!1;const we={name:E};if(!t.disabled){if(!A||G){(d.isDirty||h.isDirty)&&(se=n.isDirty,n.isDirty=we.isDirty=z(),$=se!==we.isDirty);const Pe=Pr(te(s,E),T);se=!!te(n.dirtyFields,E),Pe?ct(n.dirtyFields,E):$e(n.dirtyFields,E,!0),we.dirtyFields=n.dirtyFields,$=$||(d.dirtyFields||h.dirtyFields)&&se!==!Pe}if(A){const Pe=te(n.touchedFields,E);Pe||($e(n.touchedFields,E,A),we.touchedFields=n.touchedFields,$=$||(d.touchedFields||h.touchedFields)&&Pe!==A)}$&&K&&f.state.next(we)}return $?we:{}},k=(E,T,A,G)=>{const K=te(n.errors,E),$=(d.isValid||h.isValid)&&$n(T)&&n.isValid!==T;if(t.delayError&&A?(c=v(()=>m(E,A)),c(t.delayError)):(clearTimeout(u),c=null,A?$e(n.errors,E,A):ct(n.errors,E)),(A?!Pr(K,A):K)||!Ht(G)||$){const se={...G,...$&&$n(T)?{isValid:T}:{},errors:n.errors,name:E};n={...n,...se},f.state.next(se)}},j=async E=>{b(E,!0);const T=await t.resolver(o,t.context,vO(E||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return b(E),T},C=async E=>{const{errors:T}=await j(E);if(E)for(const A of E){const G=te(T,A);G?$e(n.errors,A,G):ct(n.errors,A)}else n.errors=T;return T},P=async(E,T,A={valid:!0})=>{for(const G in E){const K=E[G];if(K){const{_f:$,...se}=K;if($){const we=a.array.has($.name),Pe=K._f&&xO(K._f);Pe&&d.validatingFields&&b([G],!0);const Qe=await ry(K,a.disabled,o,x,t.shouldUseNativeValidation&&!T,we);if(Pe&&d.validatingFields&&b([G]),Qe[$.name]&&(A.valid=!1,T))break;!T&&(te(Qe,$.name)?we?jO(n.errors,Qe,$.name):$e(n.errors,$.name,Qe[$.name]):ct(n.errors,$.name))}!Ht(se)&&await P(se,T,A)}}return A.valid},D=()=>{for(const E of a.unMount){const T=te(r,E);T&&(T._f.refs?T._f.refs.every(A=>!td(A)):!td(T._f.ref))&&Z(E)}a.unMount=new Set},z=(E,T)=>!t.disabled&&(E&&T&&$e(o,E,T),!Pr(Q(),s)),O=(E,T,A)=>mO(E,a,{...i.mount?o:ut(T)?s:Gn(E)?{[E]:T}:T},A,T),V=E=>ym(te(i.mount?o:s,E,t.shouldUnregister?te(s,E,[]):[])),I=(E,T,A={})=>{const G=te(r,E);let K=T;if(G){const $=G._f;$&&(!$.disabled&&$e(o,E,Mb(T,$)),K=lc($.ref)&&It(T)?"":T,Ab($.ref)?[...$.ref.options].forEach(se=>se.selected=K.includes(se.value)):$.refs?Ca($.ref)?$.refs.forEach(se=>{(!se.defaultChecked||!se.disabled)&&(Array.isArray(K)?se.checked=!!K.find(we=>we===se.value):se.checked=K===se.value||!!K)}):$.refs.forEach(se=>se.checked=se.value===K):xm($.ref)?$.ref.value="":($.ref.value=K,$.ref.type||f.state.next({name:E,values:gt(o)})))}(A.shouldDirty||A.shouldTouch)&&N(E,K,A.shouldTouch,A.shouldDirty,!0),A.shouldValidate&&L(E)},Y=(E,T,A)=>{for(const G in T){if(!T.hasOwnProperty(G))return;const K=T[G],$=E+"."+G,se=te(r,$);(a.array.has(E)||lt(K)||se&&!se._f)&&!vs(K)?Y($,K,A):I($,K,A)}},W=(E,T,A={})=>{const G=te(r,E),K=a.array.has(E),$=gt(T);$e(o,E,$),K?(f.array.next({name:E,values:gt(o)}),(d.isDirty||d.dirtyFields||h.isDirty||h.dirtyFields)&&A.shouldDirty&&f.state.next({name:E,dirtyFields:di(s,o),isDirty:z(E,$)})):G&&!G._f&&!It($)?Y(E,$,A):I(E,$,A),ey(E,a)&&f.state.next({...n}),f.state.next({name:i.mount?E:void 0,values:gt(o)})},X=async E=>{i.mount=!0;const T=E.target;let A=T.name,G=!0;const K=te(r,A),$=Pe=>{G=Number.isNaN(Pe)||vs(Pe)&&isNaN(Pe.getTime())||Pr(Pe,te(o,A,Pe))},se=Jg(t.mode),we=Jg(t.reValidateMode);if(K){let Pe,Qe;const Nt=T.type?Zg(K._f):aO(E),zt=E.type===qg.BLUR||E.type===qg.FOCUS_OUT,br=!wO(K._f)&&!t.resolver&&!te(n.errors,A)&&!K._f.deps||NO(zt,te(n.touchedFields,A),n.isSubmitted,we,se),wn=ey(A,a,zt);$e(o,A,Nt),zt?(K._f.onBlur&&K._f.onBlur(E),c&&c(0)):K._f.onChange&&K._f.onChange(E);const er=N(A,Nt,zt),ds=!Ht(er)||wn;if(!zt&&f.state.next({name:A,type:E.type,values:gt(o)}),br)return(d.isValid||h.isValid)&&(t.mode==="onBlur"?zt&&p():zt||p()),ds&&f.state.next({name:A,...wn?{}:er});if(!zt&&wn&&f.state.next({...n}),t.resolver){const{errors:Qt}=await j([A]);if($(Nt),G){const Xo=ty(n.errors,r,A),ue=ty(Qt,r,Xo.name||A);Pe=ue.error,A=ue.name,Qe=Ht(Qt)}}else b([A],!0),Pe=(await ry(K,a.disabled,o,x,t.shouldUseNativeValidation))[A],b([A]),$(Nt),G&&(Pe?Qe=!1:(d.isValid||h.isValid)&&(Qe=await P(r,!0)));G&&(K._f.deps&&L(K._f.deps),k(A,Qe,Pe,er))}},_=(E,T)=>{if(te(n.errors,T)&&E.focus)return E.focus(),1},L=async(E,T={})=>{let A,G;const K=Ai(E);if(t.resolver){const $=await C(ut(E)?E:K);A=Ht($),G=E?!K.some(se=>te($,se)):A}else E?(G=(await Promise.all(K.map(async $=>{const se=te(r,$);return await P(se&&se._f?{[$]:se}:se)}))).every(Boolean),!(!G&&!n.isValid)&&p()):G=A=await P(r);return f.state.next({...!Gn(E)||(d.isValid||h.isValid)&&A!==n.isValid?{}:{name:E},...t.resolver||!E?{isValid:A}:{},errors:n.errors}),T.shouldFocus&&!G&&Pi(r,_,E?K:a.mount),G},Q=E=>{const T={...i.mount?o:s};return ut(E)?T:Gn(E)?te(T,E):E.map(A=>te(T,A))},q=(E,T)=>({invalid:!!te((T||n).errors,E),isDirty:!!te((T||n).dirtyFields,E),error:te((T||n).errors,E),isValidating:!!te(n.validatingFields,E),isTouched:!!te((T||n).touchedFields,E)}),ne=E=>{E&&Ai(E).forEach(T=>ct(n.errors,T)),f.state.next({errors:E?n.errors:{}})},le=(E,T,A)=>{const G=(te(r,E,{_f:{}})._f||{}).ref,K=te(n.errors,E)||{},{ref:$,message:se,type:we,...Pe}=K;$e(n.errors,E,{...Pe,...T,ref:G}),f.state.next({name:E,errors:n.errors,isValid:!1}),A&&A.shouldFocus&&G&&G.focus&&G.focus()},pe=(E,T)=>Tn(E)?f.state.subscribe({next:A=>E(O(void 0,T),A)}):O(E,T,!0),ze=E=>f.state.subscribe({next:T=>{SO(E.name,T.name,E.exact)&&bO(T,E.formState||d,ht,E.reRenderRoot)&&E.callback({values:{...o},...n,...T})}}).unsubscribe,me=E=>(i.mount=!0,h={...h,...E.formState},ze({...E,formState:h})),Z=(E,T={})=>{for(const A of E?Ai(E):a.mount)a.mount.delete(A),a.array.delete(A),T.keepValue||(ct(r,A),ct(o,A)),!T.keepError&&ct(n.errors,A),!T.keepDirty&&ct(n.dirtyFields,A),!T.keepTouched&&ct(n.touchedFields,A),!T.keepIsValidating&&ct(n.validatingFields,A),!t.shouldUnregister&&!T.keepDefaultValue&&ct(s,A);f.state.next({values:gt(o)}),f.state.next({...n,...T.keepDirty?{isDirty:z()}:{}}),!T.keepIsValid&&p()},ae=({disabled:E,name:T})=>{($n(E)&&i.mount||E||a.disabled.has(T))&&(E?a.disabled.add(T):a.disabled.delete(T))},ke=(E,T={})=>{let A=te(r,E);const G=$n(T.disabled)||$n(t.disabled);return $e(r,E,{...A||{},_f:{...A&&A._f?A._f:{ref:{name:E}},name:E,mount:!0,...T}}),a.mount.add(E),A?ae({disabled:$n(T.disabled)?T.disabled:t.disabled,name:E}):S(E,!0,T.value),{...G?{disabled:T.disabled||t.disabled}:{},...t.progressive?{required:!!T.required,min:fi(T.min),max:fi(T.max),minLength:fi(T.minLength),maxLength:fi(T.maxLength),pattern:fi(T.pattern)}:{},name:E,onChange:X,onBlur:X,ref:K=>{if(K){ke(E,T),A=te(r,E);const $=ut(K.value)&&K.querySelectorAll&&K.querySelectorAll("input,select,textarea")[0]||K,se=pO($),we=A._f.refs||[];if(se?we.find(Pe=>Pe===$):$===A._f.ref)return;$e(r,E,{_f:{...A._f,...se?{refs:[...we.filter(td),$,...Array.isArray(te(s,E))?[{}]:[]],ref:{type:$.type,name:E}}:{ref:$}}}),S(E,!1,void 0,$)}else A=te(r,E,{}),A._f&&(A._f.mount=!1),(t.shouldUnregister||T.shouldUnregister)&&!(cO(a.array,E)&&i.action)&&a.unMount.add(E)}}},ce=()=>t.shouldFocusError&&Pi(r,_,a.mount),ie=E=>{$n(E)&&(f.state.next({disabled:E}),Pi(r,(T,A)=>{const G=te(r,A);G&&(T.disabled=G._f.disabled||E,Array.isArray(G._f.refs)&&G._f.refs.forEach(K=>{K.disabled=G._f.disabled||E}))},0,!1))},H=(E,T)=>async A=>{let G;A&&(A.preventDefault&&A.preventDefault(),A.persist&&A.persist());let K=gt(o);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:$,values:se}=await j();n.errors=$,K=gt(se)}else await P(r);if(a.disabled.size)for(const $ of a.disabled)ct(K,$);if(ct(n.errors,"root"),Ht(n.errors)){f.state.next({errors:{}});try{await E(K,A)}catch($){G=$}}else T&&await T({...n.errors},A),ce(),setTimeout(ce);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ht(n.errors)&&!G,submitCount:n.submitCount+1,errors:n.errors}),G)throw G},de=(E,T={})=>{te(r,E)&&(ut(T.defaultValue)?W(E,gt(te(s,E))):(W(E,T.defaultValue),$e(s,E,gt(T.defaultValue))),T.keepTouched||ct(n.touchedFields,E),T.keepDirty||(ct(n.dirtyFields,E),n.isDirty=T.defaultValue?z(E,gt(te(s,E))):z()),T.keepError||(ct(n.errors,E),d.isValid&&p()),f.state.next({...n}))},Ee=(E,T={})=>{const A=E?gt(E):s,G=gt(A),K=Ht(E),$=K?s:G;if(T.keepDefaultValues||(s=A),!T.keepValues){if(T.keepDirtyValues){const se=new Set([...a.mount,...Object.keys(di(s,o))]);for(const we of Array.from(se))te(n.dirtyFields,we)?$e($,we,te(o,we)):W(we,te($,we))}else{if(gm&&ut(E))for(const se of a.mount){const we=te(r,se);if(we&&we._f){const Pe=Array.isArray(we._f.refs)?we._f.refs[0]:we._f.ref;if(lc(Pe)){const Qe=Pe.closest("form");if(Qe){Qe.reset();break}}}}if(T.keepFieldsRef)for(const se of a.mount)W(se,te($,se));else r={}}o=t.shouldUnregister?T.keepDefaultValues?gt(s):{}:gt($),f.array.next({values:{...$}}),f.state.next({values:{...$}})}a={mount:T.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!d.isValid||!!T.keepIsValid||!!T.keepDirtyValues,i.watch=!!t.shouldUnregister,f.state.next({submitCount:T.keepSubmitCount?n.submitCount:0,isDirty:K?!1:T.keepDirty?n.isDirty:!!(T.keepDefaultValues&&!Pr(E,s)),isSubmitted:T.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:K?{}:T.keepDirtyValues?T.keepDefaultValues&&o?di(s,o):n.dirtyFields:T.keepDefaultValues&&E?di(s,E):T.keepDirty?n.dirtyFields:{},touchedFields:T.keepTouched?n.touchedFields:{},errors:T.keepErrors?n.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Be=(E,T)=>Ee(Tn(E)?E(o):E,T),Ue=(E,T={})=>{const A=te(r,E),G=A&&A._f;if(G){const K=G.refs?G.refs[0]:G.ref;K.focus&&(K.focus(),T.shouldSelect&&Tn(K.select)&&K.select())}},ht=E=>{n={...n,...E}},Ie={control:{register:ke,unregister:Z,getFieldState:q,handleSubmit:H,setError:le,_subscribe:ze,_runSchema:j,_focusError:ce,_getWatch:O,_getDirty:z,_setValid:p,_setFieldArray:g,_setDisabledField:ae,_setErrors:w,_getFieldArray:V,_reset:Ee,_resetDefaultValues:()=>Tn(t.defaultValues)&&t.defaultValues().then(E=>{Be(E,t.resetOptions),f.state.next({isLoading:!1})}),_removeUnmounted:D,_disableForm:ie,_subjects:f,_proxyFormState:d,get _fields(){return r},get _formValues(){return o},get _state(){return i},set _state(E){i=E},get _defaultValues(){return s},get _names(){return a},set _names(E){a=E},get _formState(){return n},get _options(){return t},set _options(E){t={...t,...E}}},subscribe:me,trigger:L,register:ke,handleSubmit:H,watch:pe,setValue:W,getValues:Q,reset:Be,resetField:de,clearErrors:ne,unregister:Z,setError:le,setFocus:Ue,getFieldState:q};return{...Ie,formControl:Ie}}function _O(e={}){const t=F.useRef(void 0),n=F.useRef(void 0),[r,s]=F.useState({isDirty:!1,isValidating:!1,isLoading:Tn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Tn(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Tn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:i,...a}=CO(e);t.current={...a,formState:r}}const o=t.current.control;return o._options=e,hO(()=>{const i=o._subscribe({formState:o._proxyFormState,callback:()=>s({...o._formState}),reRenderRoot:!0});return s(a=>({...a,isReady:!0})),o._formState.isReady=!0,i},[o]),F.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),F.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),F.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),F.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),F.useEffect(()=>{if(o._proxyFormState.isDirty){const i=o._getDirty();i!==r.isDirty&&o._subjects.state.next({isDirty:i})}},[o,r.isDirty]),F.useEffect(()=>{e.values&&!Pr(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),n.current=e.values,s(i=>({...i}))):o._resetDefaultValues()},[o,e.values]),F.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=fO(r,o),t.current}var Ae;(function(e){e.assertEqual=s=>{};function t(s){}e.assertIs=t;function n(s){throw new Error}e.assertNever=n,e.arrayToEnum=s=>{const o={};for(const i of s)o[i]=i;return o},e.getValidEnumValues=s=>{const o=e.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),i={};for(const a of o)i[a]=s[a];return e.objectValues(i)},e.objectValues=s=>e.objectKeys(s).map(function(o){return s[o]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const o=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&o.push(i);return o},e.find=(s,o)=>{for(const i of s)if(o(i))return i},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,o=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(s,o)=>typeof o=="bigint"?o.toString():o})(Ae||(Ae={}));var sy;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(sy||(sy={}));const re=Ae.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Tr=e=>{switch(typeof e){case"undefined":return re.undefined;case"string":return re.string;case"number":return Number.isNaN(e)?re.nan:re.number;case"boolean":return re.boolean;case"function":return re.function;case"bigint":return re.bigint;case"symbol":return re.symbol;case"object":return Array.isArray(e)?re.array:e===null?re.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?re.promise:typeof Map<"u"&&e instanceof Map?re.map:typeof Set<"u"&&e instanceof Set?re.set:typeof Date<"u"&&e instanceof Date?re.date:re.object;default:return re.unknown}},U=Ae.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"]);class xr extends Error{get errors(){return this.issues}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}format(t){const n=t||function(o){return o.message},r={_errors:[]},s=o=>{for(const i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let a=r,c=0;for(;c<i.path.length;){const u=i.path[c];c===i.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(i))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return s(this),r}static assert(t){if(!(t instanceof xr))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ae.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const s of this.issues)if(s.path.length>0){const o=s.path[0];n[o]=n[o]||[],n[o].push(t(s))}else r.push(t(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}xr.create=e=>new xr(e);const Cf=(e,t)=>{let n;switch(e.code){case U.invalid_type:e.received===re.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case U.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ae.jsonStringifyReplacer)}`;break;case U.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ae.joinValues(e.keys,", ")}`;break;case U.invalid_union:n="Invalid input";break;case U.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ae.joinValues(e.options)}`;break;case U.invalid_enum_value:n=`Invalid enum value. Expected ${Ae.joinValues(e.options)}, received '${e.received}'`;break;case U.invalid_arguments:n="Invalid function arguments";break;case U.invalid_return_type:n="Invalid function return type";break;case U.invalid_date:n="Invalid date";break;case U.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}"`:Ae.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case U.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==="bigint"?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 U.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 U.custom:n="Invalid input";break;case U.invalid_intersection_types:n="Intersection results could not be merged";break;case U.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case U.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ae.assertNever(e)}return{message:n}};let TO=Cf;function RO(){return TO}const AO=e=>{const{data:t,path:n,errorMaps:r,issueData:s}=e,o=[...n,...s.path||[]],i={...s,path:o};if(s.message!==void 0)return{...s,path:o,message:s.message};let a="";const c=r.filter(u=>!!u).slice().reverse();for(const u of c)a=u(i,{data:t,defaultError:a}).message;return{...s,path:o,message:a}};function J(e,t){const n=RO(),r=AO({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Cf?void 0:Cf].filter(s=>!!s)});e.common.issues.push(r)}class cn{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 fe;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){const o=await s.key,i=await s.value;r.push({key:o,value:i})}return cn.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const s of n){const{key:o,value:i}=s;if(o.status==="aborted"||i.status==="aborted")return fe;o.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(r[o.value]=i.value)}return{status:t.value,value:r}}}const fe=Object.freeze({status:"aborted"}),xi=e=>({status:"dirty",value:e}),xn=e=>({status:"valid",value:e}),oy=e=>e.status==="aborted",iy=e=>e.status==="dirty",Fo=e=>e.status==="valid",dc=e=>typeof Promise<"u"&&e instanceof Promise;var oe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(oe||(oe={}));class ss{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||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const ay=(e,t)=>{if(Fo(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 xr(e.common.issues);return this._error=n,this._error}}};function Ne(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:(i,a)=>{const{message:c}=e;return i.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??r??a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:c??n??a.defaultError}},description:s}}class Re{get description(){return this._def.description}_getType(t){return Tr(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Tr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new cn,ctx:{common:t.parent.common,data:t.data,parsedType:Tr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(dc(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){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Tr(t)},s=this._parseSync({data:t,path:r.path,parent:r});return ay(r,s)}"~validate"(t){var r,s;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Tr(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:n});return Fo(o)?{value:o.value}:{issues:n.common.issues}}catch(o){(s=(r=o==null?void 0:o.message)==null?void 0:r.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(o=>Fo(o)?{value:o.value}:{issues:n.common.issues})}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:Tr(t)},s=this._parse({data:t,path:r.path,parent:r}),o=await(dc(s)?s:Promise.resolve(s));return ay(r,o)}refine(t,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,o)=>{const i=t(s),a=()=>o.addIssue({code:U.custom,...r(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(c=>c?!0:(a(),!1)):i?!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 Bo({schema:this,typeName:he.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}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),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Zr.create(this,this._def)}nullable(){return Ho.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Zn.create(this)}promise(){return pc.create(this,this._def)}or(t){return hc.create([this,t],this._def)}and(t){return mc.create(this,t,this._def)}transform(t){return new Bo({...Ne(this._def),schema:this,typeName:he.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Tf({...Ne(this._def),innerType:this,defaultValue:n,typeName:he.ZodDefault})}brand(){return new e4({typeName:he.ZodBranded,type:this,...Ne(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Rf({...Ne(this._def),innerType:this,catchValue:n,typeName:he.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return bm.create(this,t)}readonly(){return Af.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const PO=/^c[^\s-]{8,}$/i,OO=/^[0-9a-z]+$/,IO=/^[0-9A-HJKMNP-TV-Z]{26}$/i,MO=/^[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,DO=/^[a-z0-9_-]{21}$/i,LO=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,FO=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,zO=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,BO="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let nd;const HO=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,$O=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,VO=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,UO=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,WO=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,qO=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Lb="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",KO=new RegExp(`^${Lb}$`);function Fb(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function GO(e){return new RegExp(`^${Fb(e)}$`)}function YO(e){let t=`${Lb}T${Fb(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function QO(e,t){return!!((t==="v4"||!t)&&HO.test(e)||(t==="v6"||!t)&&VO.test(e))}function ZO(e,t){if(!LO.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&s.alg!==t)}catch{return!1}}function JO(e,t){return!!((t==="v4"||!t)&&$O.test(e)||(t==="v6"||!t)&&UO.test(e))}class Hr extends Re{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==re.string){const o=this._getOrReturnCtx(t);return J(o,{code:U.invalid_type,expected:re.string,received:o.parsedType}),fe}const r=new cn;let s;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(s=this._getOrReturnCtx(t,s),J(s,{code:U.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(s=this._getOrReturnCtx(t,s),J(s,{code:U.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const i=t.data.length>o.value,a=t.data.length<o.value;(i||a)&&(s=this._getOrReturnCtx(t,s),i?J(s,{code:U.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&J(s,{code:U.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")zO.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"email",code:U.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")nd||(nd=new RegExp(BO,"u")),nd.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"emoji",code:U.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")MO.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"uuid",code:U.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")DO.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"nanoid",code:U.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")PO.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"cuid",code:U.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")OO.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"cuid2",code:U.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")IO.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"ulid",code:U.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),J(s,{validation:"url",code:U.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"regex",code:U.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(s=this._getOrReturnCtx(t,s),J(s,{code:U.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(s=this._getOrReturnCtx(t,s),J(s,{code:U.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(s=this._getOrReturnCtx(t,s),J(s,{code:U.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?YO(o).test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{code:U.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?KO.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{code:U.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?GO(o).test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{code:U.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?FO.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"duration",code:U.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?QO(t.data,o.version)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"ip",code:U.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?ZO(t.data,o.alg)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"jwt",code:U.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?JO(t.data,o.version)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"cidr",code:U.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?WO.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"base64",code:U.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?qO.test(t.data)||(s=this._getOrReturnCtx(t,s),J(s,{validation:"base64url",code:U.invalid_string,message:o.message}),r.dirty()):Ae.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(s=>t.test(s),{validation:n,code:U.invalid_string,...oe.errToObj(r)})}_addCheck(t){return new Hr({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...oe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...oe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...oe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...oe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...oe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...oe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...oe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...oe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...oe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...oe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...oe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...oe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...oe.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...oe.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...oe.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...oe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...oe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...oe.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...oe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...oe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...oe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...oe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...oe.errToObj(n)})}nonempty(t){return this.min(1,oe.errToObj(t))}trim(){return new Hr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Hr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Hr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}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 isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}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 isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}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<t)&&(t=n.value);return t}}Hr.create=e=>new Hr({checks:[],typeName:he.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Ne(e)});function XO(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=n>r?n:r,o=Number.parseInt(e.toFixed(s).replace(".","")),i=Number.parseInt(t.toFixed(s).replace(".",""));return o%i/10**s}class aa extends Re{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)!==re.number){const o=this._getOrReturnCtx(t);return J(o,{code:U.invalid_type,expected:re.number,received:o.parsedType}),fe}let r;const s=new cn;for(const o of this._def.checks)o.kind==="int"?Ae.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),J(r,{code:U.invalid_type,expected:"integer",received:"float",message:o.message}),s.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),J(r,{code:U.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),J(r,{code:U.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="multipleOf"?XO(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),J(r,{code:U.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),J(r,{code:U.not_finite,message:o.message}),s.dirty()):Ae.assertNever(o);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,oe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,oe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,oe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,oe.toString(n))}setLimit(t,n,r,s){return new aa({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:oe.toString(s)}]})}_addCheck(t){return new aa({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:oe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:oe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:oe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:oe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:oe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:oe.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.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Ae.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.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}aa.create=e=>new aa({checks:[],typeName:he.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ne(e)});class la extends Re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==re.bigint)return this._getInvalidInput(t);let r;const s=new cn;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),J(r,{code:U.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),J(r,{code:U.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),J(r,{code:U.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):Ae.assertNever(o);return{status:s.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return J(n,{code:U.invalid_type,expected:re.bigint,received:n.parsedType}),fe}gte(t,n){return this.setLimit("min",t,!0,oe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,oe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,oe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,oe.toString(n))}setLimit(t,n,r,s){return new la({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:oe.toString(s)}]})}_addCheck(t){return new la({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:oe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:oe.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<t)&&(t=n.value);return t}}la.create=e=>new la({checks:[],typeName:he.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Ne(e)});class ly extends Re{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==re.boolean){const r=this._getOrReturnCtx(t);return J(r,{code:U.invalid_type,expected:re.boolean,received:r.parsedType}),fe}return xn(t.data)}}ly.create=e=>new ly({typeName:he.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ne(e)});class fc extends Re{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==re.date){const o=this._getOrReturnCtx(t);return J(o,{code:U.invalid_type,expected:re.date,received:o.parsedType}),fe}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return J(o,{code:U.invalid_date}),fe}const r=new cn;let s;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(s=this._getOrReturnCtx(t,s),J(s,{code:U.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(s=this._getOrReturnCtx(t,s),J(s,{code:U.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):Ae.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new fc({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:oe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:oe.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.value<t)&&(t=n.value);return t!=null?new Date(t):null}}fc.create=e=>new fc({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:he.ZodDate,...Ne(e)});class cy extends Re{_parse(t){if(this._getType(t)!==re.symbol){const r=this._getOrReturnCtx(t);return J(r,{code:U.invalid_type,expected:re.symbol,received:r.parsedType}),fe}return xn(t.data)}}cy.create=e=>new cy({typeName:he.ZodSymbol,...Ne(e)});class uy extends Re{_parse(t){if(this._getType(t)!==re.undefined){const r=this._getOrReturnCtx(t);return J(r,{code:U.invalid_type,expected:re.undefined,received:r.parsedType}),fe}return xn(t.data)}}uy.create=e=>new uy({typeName:he.ZodUndefined,...Ne(e)});class dy extends Re{_parse(t){if(this._getType(t)!==re.null){const r=this._getOrReturnCtx(t);return J(r,{code:U.invalid_type,expected:re.null,received:r.parsedType}),fe}return xn(t.data)}}dy.create=e=>new dy({typeName:he.ZodNull,...Ne(e)});class fy extends Re{constructor(){super(...arguments),this._any=!0}_parse(t){return xn(t.data)}}fy.create=e=>new fy({typeName:he.ZodAny,...Ne(e)});class hy extends Re{constructor(){super(...arguments),this._unknown=!0}_parse(t){return xn(t.data)}}hy.create=e=>new hy({typeName:he.ZodUnknown,...Ne(e)});class os extends Re{_parse(t){const n=this._getOrReturnCtx(t);return J(n,{code:U.invalid_type,expected:re.never,received:n.parsedType}),fe}}os.create=e=>new os({typeName:he.ZodNever,...Ne(e)});class my extends Re{_parse(t){if(this._getType(t)!==re.undefined){const r=this._getOrReturnCtx(t);return J(r,{code:U.invalid_type,expected:re.void,received:r.parsedType}),fe}return xn(t.data)}}my.create=e=>new my({typeName:he.ZodVoid,...Ne(e)});class Zn extends Re{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),s=this._def;if(n.parsedType!==re.array)return J(n,{code:U.invalid_type,expected:re.array,received:n.parsedType}),fe;if(s.exactLength!==null){const i=n.data.length>s.exactLength.value,a=n.data.length<s.exactLength.value;(i||a)&&(J(n,{code:i?U.too_big:U.too_small,minimum:a?s.exactLength.value:void 0,maximum:i?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(J(n,{code:U.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(J(n,{code:U.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((i,a)=>s.type._parseAsync(new ss(n,i,n.path,a)))).then(i=>cn.mergeArray(r,i));const o=[...n.data].map((i,a)=>s.type._parseSync(new ss(n,i,n.path,a)));return cn.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Zn({...this._def,minLength:{value:t,message:oe.toString(n)}})}max(t,n){return new Zn({...this._def,maxLength:{value:t,message:oe.toString(n)}})}length(t,n){return new Zn({...this._def,exactLength:{value:t,message:oe.toString(n)}})}nonempty(t){return this.min(1,t)}}Zn.create=(e,t)=>new Zn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:he.ZodArray,...Ne(t)});function Qs(e){if(e instanceof rt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Zr.create(Qs(r))}return new rt({...e._def,shape:()=>t})}else return e instanceof Zn?new Zn({...e._def,type:Qs(e.element)}):e instanceof Zr?Zr.create(Qs(e.unwrap())):e instanceof Ho?Ho.create(Qs(e.unwrap())):e instanceof Ls?Ls.create(e.items.map(t=>Qs(t))):e}class rt extends Re{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=Ae.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==re.object){const u=this._getOrReturnCtx(t);return J(u,{code:U.invalid_type,expected:re.object,received:u.parsedType}),fe}const{status:r,ctx:s}=this._processInputParams(t),{shape:o,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof os&&this._def.unknownKeys==="strip"))for(const u in s.data)i.includes(u)||a.push(u);const c=[];for(const u of i){const d=o[u],h=s.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new ss(s,h,s.path,u)),alwaysSet:u in s.data})}if(this._def.catchall instanceof os){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of a)c.push({key:{status:"valid",value:d},value:{status:"valid",value:s.data[d]}});else if(u==="strict")a.length>0&&(J(s,{code:U.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 d of a){const h=s.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new ss(s,h,s.path,d)),alwaysSet:d in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of c){const h=await d.key,f=await d.value;u.push({key:h,value:f,alwaysSet:d.alwaysSet})}return u}).then(u=>cn.mergeObjectSync(r,u)):cn.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return oe.errToObj,new rt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,i;const s=((i=(o=this._def).errorMap)==null?void 0:i.call(o,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:oe.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new rt({...this._def,unknownKeys:"strip"})}passthrough(){return new rt({...this._def,unknownKeys:"passthrough"})}extend(t){return new rt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new rt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:he.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new rt({...this._def,catchall:t})}pick(t){const n={};for(const r of Ae.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new rt({...this._def,shape:()=>n})}omit(t){const n={};for(const r of Ae.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new rt({...this._def,shape:()=>n})}deepPartial(){return Qs(this)}partial(t){const n={};for(const r of Ae.objectKeys(this.shape)){const s=this.shape[r];t&&!t[r]?n[r]=s:n[r]=s.optional()}return new rt({...this._def,shape:()=>n})}required(t){const n={};for(const r of Ae.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Zr;)o=o._def.innerType;n[r]=o}return new rt({...this._def,shape:()=>n})}keyof(){return zb(Ae.objectKeys(this.shape))}}rt.create=(e,t)=>new rt({shape:()=>e,unknownKeys:"strip",catchall:os.create(),typeName:he.ZodObject,...Ne(t)});rt.strictCreate=(e,t)=>new rt({shape:()=>e,unknownKeys:"strict",catchall:os.create(),typeName:he.ZodObject,...Ne(t)});rt.lazycreate=(e,t)=>new rt({shape:e,unknownKeys:"strip",catchall:os.create(),typeName:he.ZodObject,...Ne(t)});class hc extends Re{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function s(o){for(const a of o)if(a.result.status==="valid")return a.result;for(const a of o)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const i=o.map(a=>new xr(a.ctx.common.issues));return J(n,{code:U.invalid_union,unionErrors:i}),fe}if(n.common.async)return Promise.all(r.map(async o=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(s);{let o;const i=[];for(const c of r){const u={...n,common:{...n.common,issues:[]},parent:null},d=c._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!o&&(o={result:d,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const a=i.map(c=>new xr(c));return J(n,{code:U.invalid_union,unionErrors:a}),fe}}get options(){return this._def.options}}hc.create=(e,t)=>new hc({options:e,typeName:he.ZodUnion,...Ne(t)});function _f(e,t){const n=Tr(e),r=Tr(t);if(e===t)return{valid:!0,data:e};if(n===re.object&&r===re.object){const s=Ae.objectKeys(t),o=Ae.objectKeys(e).filter(a=>s.indexOf(a)!==-1),i={...e,...t};for(const a of o){const c=_f(e[a],t[a]);if(!c.valid)return{valid:!1};i[a]=c.data}return{valid:!0,data:i}}else if(n===re.array&&r===re.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let o=0;o<e.length;o++){const i=e[o],a=t[o],c=_f(i,a);if(!c.valid)return{valid:!1};s.push(c.data)}return{valid:!0,data:s}}else return n===re.date&&r===re.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class mc extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=(o,i)=>{if(oy(o)||oy(i))return fe;const a=_f(o.value,i.value);return a.valid?((iy(o)||iy(i))&&n.dirty(),{status:n.value,value:a.data}):(J(r,{code:U.invalid_intersection_types}),fe)};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(([o,i])=>s(o,i)):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}))}}mc.create=(e,t,n)=>new mc({left:e,right:t,typeName:he.ZodIntersection,...Ne(n)});class Ls extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==re.array)return J(r,{code:U.invalid_type,expected:re.array,received:r.parsedType}),fe;if(r.data.length<this._def.items.length)return J(r,{code:U.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),fe;!this._def.rest&&r.data.length>this._def.items.length&&(J(r,{code:U.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((i,a)=>{const c=this._def.items[a]||this._def.rest;return c?c._parse(new ss(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(o).then(i=>cn.mergeArray(n,i)):cn.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new Ls({...this._def,rest:t})}}Ls.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ls({items:e,typeName:he.ZodTuple,rest:null,...Ne(t)})};class py extends Re{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!==re.map)return J(r,{code:U.invalid_type,expected:re.map,received:r.parsedType}),fe;const s=this._def.keyType,o=this._def.valueType,i=[...r.data.entries()].map(([a,c],u)=>({key:s._parse(new ss(r,a,r.path,[u,"key"])),value:o._parse(new ss(r,c,r.path,[u,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const c of i){const u=await c.key,d=await c.value;if(u.status==="aborted"||d.status==="aborted")return fe;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const c of i){const u=c.key,d=c.value;if(u.status==="aborted"||d.status==="aborted")return fe;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(u.value,d.value)}return{status:n.value,value:a}}}}py.create=(e,t,n)=>new py({valueType:t,keyType:e,typeName:he.ZodMap,...Ne(n)});class ca extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==re.set)return J(r,{code:U.invalid_type,expected:re.set,received:r.parsedType}),fe;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(J(r,{code:U.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(J(r,{code:U.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const o=this._def.valueType;function i(c){const u=new Set;for(const d of c){if(d.status==="aborted")return fe;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}const a=[...r.data.values()].map((c,u)=>o._parse(new ss(r,c,r.path,u)));return r.common.async?Promise.all(a).then(c=>i(c)):i(a)}min(t,n){return new ca({...this._def,minSize:{value:t,message:oe.toString(n)}})}max(t,n){return new ca({...this._def,maxSize:{value:t,message:oe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}ca.create=(e,t)=>new ca({valueType:e,minSize:null,maxSize:null,typeName:he.ZodSet,...Ne(t)});class gy extends Re{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})}}gy.create=(e,t)=>new gy({getter:e,typeName:he.ZodLazy,...Ne(t)});class yy extends Re{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return J(n,{received:n.data,code:U.invalid_literal,expected:this._def.value}),fe}return{status:"valid",value:t.data}}get value(){return this._def.value}}yy.create=(e,t)=>new yy({value:e,typeName:he.ZodLiteral,...Ne(t)});function zb(e,t){return new zo({values:e,typeName:he.ZodEnum,...Ne(t)})}class zo extends Re{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return J(n,{expected:Ae.joinValues(r),received:n.parsedType,code:U.invalid_type}),fe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return J(n,{received:n.data,code:U.invalid_enum_value,options:r}),fe}return xn(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,n=this._def){return zo.create(t,{...this._def,...n})}exclude(t,n=this._def){return zo.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}zo.create=zb;class vy extends Re{_parse(t){const n=Ae.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==re.string&&r.parsedType!==re.number){const s=Ae.objectValues(n);return J(r,{expected:Ae.joinValues(s),received:r.parsedType,code:U.invalid_type}),fe}if(this._cache||(this._cache=new Set(Ae.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const s=Ae.objectValues(n);return J(r,{received:r.data,code:U.invalid_enum_value,options:s}),fe}return xn(t.data)}get enum(){return this._def.values}}vy.create=(e,t)=>new vy({values:e,typeName:he.ZodNativeEnum,...Ne(t)});class pc extends Re{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==re.promise&&n.common.async===!1)return J(n,{code:U.invalid_type,expected:re.promise,received:n.parsedType}),fe;const r=n.parsedType===re.promise?n.data:Promise.resolve(n.data);return xn(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}pc.create=(e,t)=>new pc({type:e,typeName:he.ZodPromise,...Ne(t)});class Bo extends Re{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===he.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=this._def.effect||null,o={addIssue:i=>{J(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),s.type==="preprocess"){const i=s.transform(r.data,o);if(r.common.async)return Promise.resolve(i).then(async a=>{if(n.value==="aborted")return fe;const c=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return c.status==="aborted"?fe:c.status==="dirty"||n.value==="dirty"?xi(c.value):c});{if(n.value==="aborted")return fe;const a=this._def.schema._parseSync({data:i,path:r.path,parent:r});return a.status==="aborted"?fe:a.status==="dirty"||n.value==="dirty"?xi(a.value):a}}if(s.type==="refinement"){const i=a=>{const c=s.refinement(a,o);if(r.common.async)return Promise.resolve(c);if(c 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"?fe:(a.status==="dirty"&&n.dirty(),i(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"?fe:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Fo(i))return fe;const a=s.transform(i.value,o);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(i=>Fo(i)?Promise.resolve(s.transform(i.value,o)).then(a=>({status:n.value,value:a})):fe);Ae.assertNever(s)}}Bo.create=(e,t,n)=>new Bo({schema:e,typeName:he.ZodEffects,effect:t,...Ne(n)});Bo.createWithPreprocess=(e,t,n)=>new Bo({schema:t,effect:{type:"preprocess",transform:e},typeName:he.ZodEffects,...Ne(n)});class Zr extends Re{_parse(t){return this._getType(t)===re.undefined?xn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Zr.create=(e,t)=>new Zr({innerType:e,typeName:he.ZodOptional,...Ne(t)});class Ho extends Re{_parse(t){return this._getType(t)===re.null?xn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ho.create=(e,t)=>new Ho({innerType:e,typeName:he.ZodNullable,...Ne(t)});class Tf extends Re{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===re.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Tf.create=(e,t)=>new Tf({innerType:e,typeName:he.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ne(t)});class Rf extends Re{_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 dc(s)?s.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new xr(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new xr(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Rf.create=(e,t)=>new Rf({innerType:e,typeName:he.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ne(t)});class xy extends Re{_parse(t){if(this._getType(t)!==re.nan){const r=this._getOrReturnCtx(t);return J(r,{code:U.invalid_type,expected:re.nan,received:r.parsedType}),fe}return{status:"valid",value:t.data}}}xy.create=e=>new xy({typeName:he.ZodNaN,...Ne(e)});class e4 extends Re{_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 bm extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?fe:o.status==="dirty"?(n.dirty(),xi(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?fe: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 bm({in:t,out:n,typeName:he.ZodPipeline})}}class Af extends Re{_parse(t){const n=this._def.innerType._parse(t),r=s=>(Fo(s)&&(s.value=Object.freeze(s.value)),s);return dc(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}Af.create=(e,t)=>new Af({innerType:e,typeName:he.ZodReadonly,...Ne(t)});rt.lazycreate;var he;(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"})(he||(he={}));const rr=Hr.create;os.create;Zn.create;const t4=rt.create;rt.strictCreate;hc.create;mc.create;Ls.create;zo.create;pc.create;Zr.create;Ho.create;const wy=(e,t,n)=>{if(e&&"reportValidity"in e){const r=te(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Bb=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?wy(r.ref,n,e):r.refs&&r.refs.forEach(s=>wy(s,n,e))}},n4=(e,t)=>{t.shouldUseNativeValidation&&Bb(e,t);const n={};for(const r in e){const s=te(t.fields,r),o=Object.assign(e[r]||{},{ref:s&&s.ref});if(r4(t.names||Object.keys(e),r)){const i=Object.assign({},te(n,r));$e(i,"root",o),$e(n,r,i)}else $e(n,r,o)}return n},r4=(e,t)=>e.some(n=>n.startsWith(t+"."));var s4=function(e,t){for(var n={};e.length;){var r=e[0],s=r.code,o=r.message,i=r.path.join(".");if(!n[i])if("unionErrors"in r){var a=r.unionErrors[0].errors[0];n[i]={message:a.message,type:a.code}}else n[i]={message:o,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(d){return d.errors.forEach(function(h){return e.push(h)})}),t){var c=n[i].types,u=c&&c[r.code];n[i]=Rb(i,t,n,s,u?[].concat(u,r.message):r.message)}e.shift()}return n},o4=function(e,t,n){return n===void 0&&(n={}),function(r,s,o){try{return Promise.resolve(function(i,a){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(u){return o.shouldUseNativeValidation&&Bb({},o),{errors:{},values:n.raw?r:u}})}catch(u){return a(u)}return c&&c.then?c.then(void 0,a):c}(0,function(i){if(function(a){return Array.isArray(a==null?void 0:a.errors)}(i))return{values:{},errors:n4(s4(i.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw i}))}catch(i){return Promise.reject(i)}}};const i4=t4({firstName:rr().min(1),lastName:rr().min(1),email:rr().email(),phone:rr().min(10),address:rr().min(1),city:rr().min(1),state:rr().min(1),zipCode:rr().optional(),specialInstructions:rr().optional()}),a4=({cartItems:e,onBack:t,onClearCart:n})=>{const{toast:r}=ya(),{register:s,handleSubmit:o,reset:i,formState:{errors:a}}=_O({resolver:o4(i4)}),[c,u]=y.useState(!1),d=()=>e.reduce((x,v)=>{const p=parseInt(v.price.replace("₦","").replace(",",""));return x+p*v.quantity},0),h=x=>{u(!0);const v=d(),p=e.map(g=>({id:g.id,name:g.name,price:g.price,quantity:g.quantity,size:g.size||null,color:g.color||null,source:g.source||"unknown",metadata:g.metadata||{}}));if(!window.PaystackPop){r({title:"Payment Error",description:"Paystack is not available. Please refresh and try again.",variant:"destructive"}),u(!1);return}window.PaystackPop.setup({key:"pk_live_9d7da65e088a62d664a69362921eee237262b077",email:x.email,amount:v*100,currency:"NGN",ref:`ND-${Date.now()}`,metadata:{firstName:x.firstName,lastName:x.lastName,email:x.email,phone:x.phone,address:x.address,city:x.city,state:x.state,zipCode:x.zipCode||"",specialInstructions:x.specialInstructions||"",product:p.map(g=>`${g.name} (x${g.quantity})`).join(", "),items:p},callback:g=>{r({title:"Payment Successful",description:`Ref: ${g.reference}`}),fetch("https://nancy-backend.fly.dev/api/save-order",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reference:g.reference,formData:x,items:p,totalAmount:v})}).then(m=>m.json()).then(m=>{m.status==="success"?(r({title:"Order Saved",description:"Thanks for shopping!"}),n(),i(),t()):r({title:"Order Save Failed",description:m.msg||"Please contact support.",variant:"destructive"}),u(!1)}).catch(()=>{r({title:"Server Error",description:"Unable to save order. Try again later.",variant:"destructive"}),u(!1)})},onClose:()=>{r({title:"Payment Cancelled",description:"You closed the payment window.",variant:"destructive"}),u(!1)}}).openIframe()},f=x=>h(x);return l.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-8",children:[l.jsxs("div",{className:"flex items-center mb-8",children:[l.jsxs(De,{variant:"ghost",onClick:t,className:"mr-4",children:[l.jsx(w0,{className:"w-4 h-4 mr-2"}),"Back to Cart"]}),l.jsx("h1",{className:"text-3xl font-bold",children:"Checkout"})]}),l.jsxs("div",{className:"grid lg:grid-cols-2 gap-8",children:[l.jsx("div",{children:l.jsxs(be,{children:[l.jsx(yr,{children:l.jsxs(vr,{className:"flex items-center",children:[l.jsx(dj,{className:"w-5 h-5 mr-2"}),"Order Summary"]})}),l.jsxs(Se,{className:"space-y-4",children:[e.map(x=>{var v,p;return l.jsxs("div",{className:"flex items-center space-x-4 p-4 border rounded-lg",children:[l.jsx("img",{src:x.image,alt:x.name,className:"w-16 h-16 object-cover rounded"}),l.jsxs("div",{className:"flex-1",children:[l.jsx("h3",{className:"font-semibold",children:x.name}),x.source==="merch"&&l.jsxs("p",{className:"text-sm text-muted-foreground",children:["Size: ",x.size.toUpperCase()," | Color: ",x.color]}),x.source==="book"&&l.jsxs("p",{className:"text-sm text-muted-foreground",children:["Format: ",((p=(v=x.metadata)==null?void 0:v.format)==null?void 0:p.toUpperCase())||"N/A"," | Quantity: ",x.quantity]}),l.jsxs("p",{className:"text-sm text-muted-foreground",children:["Quantity: ",x.quantity]}),l.jsxs("p",{className:"font-bold text-primary",children:[x.price," each"]})]}),l.jsx("div",{className:"text-right",children:l.jsxs("p",{className:"font-bold",children:["₦",(parseInt(x.price.replace("₦","").replace(",",""))*x.quantity).toLocaleString()]})})]},`${x.id}-${x.size}`)}),l.jsx("div",{className:"border-t pt-4",children:l.jsxs("div",{className:"flex justify-between items-center text-xl font-bold",children:[l.jsx("span",{children:"Total:"}),l.jsxs("span",{className:"text-primary",children:["₦",d().toLocaleString()]})]})})]})]})}),l.jsx("div",{children:l.jsxs(be,{children:[l.jsx(yr,{children:l.jsxs(vr,{className:"flex items-center",children:[l.jsx(wj,{className:"w-5 h-5 mr-2"}),"Shipping Information"]})}),l.jsx(Se,{children:l.jsxs("form",{onSubmit:o(f),className:"space-y-6",children:[l.jsx("p",{className:"text-gray-600",children:"* Automatic Card Filling is not allowed"}),l.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[l.jsxs("div",{children:[l.jsx(it,{htmlFor:"firstName",children:"First Name *"}),l.jsx(wt,{id:"firstName",...s("firstName")}),a.firstName&&l.jsx("p",{className:"text-red-500 text-sm",children:a.firstName.message})]}),l.jsxs("div",{children:[l.jsx(it,{htmlFor:"lastName",children:"Last Name *"}),l.jsx(wt,{id:"lastName",...s("lastName")}),a.lastName&&l.jsx("p",{className:"text-red-500 text-sm",children:a.lastName.message})]})]}),l.jsxs("div",{children:[l.jsxs(it,{htmlFor:"email",className:"flex items-center",children:[l.jsx(Ph,{className:"w-4 h-4 mr-1"})," Email Address *"]}),l.jsx(wt,{id:"email",type:"email",...s("email")}),a.email&&l.jsx("p",{className:"text-red-500 text-sm",children:a.email.message})]}),l.jsxs("div",{children:[l.jsxs(it,{htmlFor:"phone",className:"flex items-center",children:[l.jsx(N0,{className:"w-4 h-4 mr-1"})," Phone Number *"]}),l.jsx(wt,{id:"phone",type:"tel",...s("phone")}),a.phone&&l.jsx("p",{className:"text-red-500 text-sm",children:a.phone.message})]}),l.jsxs("div",{children:[l.jsxs(it,{htmlFor:"address",className:"flex items-center",children:[l.jsx(Dc,{className:"w-4 h-4 mr-1"})," Street Address *"]}),l.jsx(wt,{id:"address",...s("address")}),a.address&&l.jsx("p",{className:"text-red-500 text-sm",children:a.address.message})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[l.jsxs("div",{children:[l.jsx(it,{htmlFor:"city",children:"City *"}),l.jsx(wt,{id:"city",...s("city")}),a.city&&l.jsx("p",{className:"text-red-500 text-sm",children:a.city.message})]}),l.jsxs("div",{children:[l.jsx(it,{htmlFor:"state",children:"State *"}),l.jsx(wt,{id:"state",...s("state")}),a.state&&l.jsx("p",{className:"text-red-500 text-sm",children:a.state.message})]})]}),l.jsxs("div",{children:[l.jsx(it,{htmlFor:"zipCode",children:"Zip Code"}),l.jsx(wt,{id:"zipCode",...s("zipCode")})]}),l.jsxs("div",{children:[l.jsx(it,{htmlFor:"specialInstructions",children:"Special Instructions"}),l.jsx(ou,{id:"specialInstructions",...s("specialInstructions"),rows:3})]}),l.jsx(De,{type:"submit",className:"w-full bg-primary hover:bg-primary/90",size:"lg",disabled:c,children:c?"Processing...":`Pay Now – ₦${d().toLocaleString()}`})]})})]})})]})]})},l4=new P2,c4=()=>{const e=Kh(),[t,n]=F.useState(()=>{try{const d=localStorage.getItem("nd-cart");return d?JSON.parse(d):[]}catch(d){return console.error("Failed to load cart from localStorage",d),[]}});F.useEffect(()=>{try{localStorage.setItem("nd-cart",JSON.stringify(t))}catch(d){console.error("Failed to save cart to localStorage",d)}},[t]);const r=(d,h)=>{const f=t.find(x=>x.id===d.id&&x.size===d.size);n(f?t.map(x=>x.id===d.id&&x.size===d.size?{...x,quantity:x.quantity+d.quantity}:x):[...t,d])},s=()=>{n([]),localStorage.removeItem("nd-cart")},o=(d,h,f)=>{f<=0?n(t.filter(x=>!(x.id===d&&x.size===h))):n(t.map(x=>x.id===d&&x.size===h?{...x,quantity:f}:x))},i=(d,h)=>{n(t.filter(f=>!(f.id===d&&f.size===h)))},a=()=>t.reduce((d,h)=>{const f=parseInt(h.price.replace("₦","").replace(",",""));return d+f*h.quantity},0),c=()=>t.reduce((d,h)=>d+h.quantity,0),u=()=>{e("/checkout")};return l.jsxs(S_,{children:[l.jsx(Bt,{path:"/",element:l.jsxs(l.Fragment,{children:[l.jsx(D_,{}),l.jsx(Hn,{})]})}),l.jsx(Bt,{path:"/about",element:l.jsxs(l.Fragment,{children:[l.jsx(z_,{}),l.jsx(Hn,{})]})}),l.jsx(Bt,{path:"/book",element:l.jsx(dR,{handleAddToCart:r})}),l.jsx(Bt,{path:"/merch",element:l.jsx(BR,{cartItems:t,handleAddToCart:r,onUpdateQuantity:o,onRemoveItem:i,getTotalPrice:a,getTotalItems:c,onCheckout:u})}),l.jsx(Bt,{path:"/contact",element:l.jsxs(l.Fragment,{children:[l.jsx(gP,{}),l.jsx(Hn,{})]})}),l.jsx(Bt,{path:"/connect",element:l.jsxs(l.Fragment,{children:[l.jsx(yP,{}),l.jsx(Hn,{})]})}),l.jsx(Bt,{path:"/tour",element:l.jsxs(l.Fragment,{children:[l.jsx(nO,{}),l.jsx(Hn,{})]})}),l.jsx(Bt,{path:"/dear-her-sundays",element:l.jsxs(l.Fragment,{children:[l.jsx(rO,{}),l.jsx(Hn,{})]})}),l.jsx(Bt,{path:"/coming-soon",element:l.jsxs(l.Fragment,{children:[l.jsx(vP,{}),l.jsx(Hn,{})]})}),l.jsx(Bt,{path:"/checkout",element:l.jsx(a4,{cartItems:t,onClearCart:s,onBack:()=>e(-1)})}),l.jsx(Bt,{path:"/checkout1",element:l.jsx(xP,{})}),l.jsx(Bt,{path:"/dear-her-sundays/posts",element:l.jsx(oO,{})}),l.jsx(Bt,{path:"*",element:l.jsxs(l.Fragment,{children:[l.jsx(iO,{}),l.jsx(Hn,{})]})})]})},u4=()=>l.jsx(I2,{client:l4,children:l.jsxs(c2,{children:[l.jsx(ik,{}),l.jsx(Mk,{}),l.jsxs(T_,{children:[l.jsx(O_,{}),l.jsxs("div",{className:"min-h-screen bg-background",children:[l.jsx(M_,{}),l.jsx(c4,{})]})]})]})});Ux(document.getElementById("root")).render(l.jsx(u4,{}));