var mf=e=>{throw TypeError(e)};var Dl=(e,t,n)=>t.has(e)||mf("Cannot "+n);var T=(e,t,n)=>(Dl(e,t,"read from private field"),n?n.call(e):t.get(e)),ue=(e,t,n)=>t.has(e)?mf("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ne=(e,t,n,r)=>(Dl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Qe=(e,t,n)=>(Dl(e,t,"access private method"),n);var _i=(e,t,n,r)=>({set _(s){ne(e,t,s,n)},get _(){return T(e,t,r)}});function hx(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 Dh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zh={exports:{}},Xa={},Fh={exports:{}},oe={};/**
* @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 di=Symbol.for("react.element"),mx=Symbol.for("react.portal"),gx=Symbol.for("react.fragment"),vx=Symbol.for("react.strict_mode"),yx=Symbol.for("react.profiler"),xx=Symbol.for("react.provider"),wx=Symbol.for("react.context"),bx=Symbol.for("react.forward_ref"),Sx=Symbol.for("react.suspense"),kx=Symbol.for("react.memo"),Cx=Symbol.for("react.lazy"),gf=Symbol.iterator;function Ex(e){return e===null||typeof e!="object"?null:(e=gf&&e[gf]||e["@@iterator"],typeof e=="function"?e:null)}var $h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Vh=Object.assign,Bh={};function Zs(e,t,n){this.props=e,this.context=t,this.refs=Bh,this.updater=n||$h}Zs.prototype.isReactComponent={};Zs.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")};Zs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Uh(){}Uh.prototype=Zs.prototype;function Mu(e,t,n){this.props=e,this.context=t,this.refs=Bh,this.updater=n||$h}var Du=Mu.prototype=new Uh;Du.constructor=Mu;Vh(Du,Zs.prototype);Du.isPureReactComponent=!0;var vf=Array.isArray,Hh=Object.prototype.hasOwnProperty,zu={current:null},Wh={key:!0,ref:!0,__self:!0,__source:!0};function qh(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)Hh.call(t,r)&&!Wh.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];s.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:di,type:e,key:o,ref:i,props:s,_owner:zu.current}}function Nx(e,t){return{$$typeof:di,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Fu(e){return typeof e=="object"&&e!==null&&e.$$typeof===di}function _x(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var yf=/\/+/g;function zl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_x(""+e.key):t.toString(36)}function Ki(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 di:case mx:i=!0}}if(i)return i=e,s=s(i),e=r===""?"."+zl(i,0):r,vf(s)?(n="",e!=null&&(n=e.replace(yf,"$&/")+"/"),Ki(s,t,n,"",function(c){return c})):s!=null&&(Fu(s)&&(s=Nx(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(yf,"$&/")+"/")+e)),t.push(s)),1;if(i=0,r=r===""?".":r+":",vf(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+zl(o,a);i+=Ki(o,t,n,l,s)}else if(l=Ex(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+zl(o,a++),i+=Ki(o,t,n,l,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 ji(e,t,n){if(e==null)return e;var r=[],s=0;return Ki(e,r,"","",function(o){return t.call(n,o,s++)}),r}function jx(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 at={current:null},Yi={transition:null},Tx={ReactCurrentDispatcher:at,ReactCurrentBatchConfig:Yi,ReactCurrentOwner:zu};function Gh(){throw Error("act(...) is not supported in production builds of React.")}oe.Children={map:ji,forEach:function(e,t,n){ji(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ji(e,function(){t++}),t},toArray:function(e){return ji(e,function(t){return t})||[]},only:function(e){if(!Fu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};oe.Component=Zs;oe.Fragment=gx;oe.Profiler=yx;oe.PureComponent=Mu;oe.StrictMode=vx;oe.Suspense=Sx;oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Tx;oe.act=Gh;oe.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=Vh({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=zu.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Hh.call(t,l)&&!Wh.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:di,type:e.type,key:s,ref:o,props:r,_owner:i}};oe.createContext=function(e){return e={$$typeof:wx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:xx,_context:e},e.Consumer=e};oe.createElement=qh;oe.createFactory=function(e){var t=qh.bind(null,e);return t.type=e,t};oe.createRef=function(){return{current:null}};oe.forwardRef=function(e){return{$$typeof:bx,render:e}};oe.isValidElement=Fu;oe.lazy=function(e){return{$$typeof:Cx,_payload:{_status:-1,_result:e},_init:jx}};oe.memo=function(e,t){return{$$typeof:kx,type:e,compare:t===void 0?null:t}};oe.startTransition=function(e){var t=Yi.transition;Yi.transition={};try{e()}finally{Yi.transition=t}};oe.unstable_act=Gh;oe.useCallback=function(e,t){return at.current.useCallback(e,t)};oe.useContext=function(e){return at.current.useContext(e)};oe.useDebugValue=function(){};oe.useDeferredValue=function(e){return at.current.useDeferredValue(e)};oe.useEffect=function(e,t){return at.current.useEffect(e,t)};oe.useId=function(){return at.current.useId()};oe.useImperativeHandle=function(e,t,n){return at.current.useImperativeHandle(e,t,n)};oe.useInsertionEffect=function(e,t){return at.current.useInsertionEffect(e,t)};oe.useLayoutEffect=function(e,t){return at.current.useLayoutEffect(e,t)};oe.useMemo=function(e,t){return at.current.useMemo(e,t)};oe.useReducer=function(e,t,n){return at.current.useReducer(e,t,n)};oe.useRef=function(e){return at.current.useRef(e)};oe.useState=function(e){return at.current.useState(e)};oe.useSyncExternalStore=function(e,t,n){return at.current.useSyncExternalStore(e,t,n)};oe.useTransition=function(){return at.current.useTransition()};oe.version="18.3.1";Fh.exports=oe;var b=Fh.exports;const O=Dh(b),$u=hx({__proto__:null,default:O},[b]);/**
* @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 Px=b,Rx=Symbol.for("react.element"),Ax=Symbol.for("react.fragment"),Ox=Object.prototype.hasOwnProperty,Lx=Px.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ix={key:!0,ref:!0,__self:!0,__source:!0};function Qh(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)Ox.call(t,r)&&!Ix.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:Rx,type:e,key:o,ref:i,props:s,_owner:Lx.current}}Xa.Fragment=Ax;Xa.jsx=Qh;Xa.jsxs=Qh;zh.exports=Xa;var u=zh.exports,Zh={exports:{}},_t={},Kh={exports:{}},Yh={};/**
* @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(_,j){var D=_.length;_.push(j);e:for(;0<D;){var G=D-1>>>1,B=_[G];if(0<s(B,j))_[G]=j,_[D]=B,D=G;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var j=_[0],D=_.pop();if(D!==j){_[0]=D;e:for(var G=0,B=_.length,K=B>>>1;G<K;){var Y=2*(G+1)-1,he=_[Y],Ne=Y+1,J=_[Ne];if(0>s(he,D))Ne<B&&0>s(J,he)?(_[G]=J,_[Ne]=D,G=Ne):(_[G]=he,_[Y]=D,G=Y);else if(Ne<B&&0>s(J,D))_[G]=J,_[Ne]=D,G=Ne;else break e}}return j}function s(_,j){var D=_.sortIndex-j.sortIndex;return D!==0?D:_.id-j.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 l=[],c=[],d=1,f=null,g=3,m=!1,w=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(_){for(var j=n(c);j!==null;){if(j.callback===null)r(c);else if(j.startTime<=_)r(c),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(c)}}function S(_){if(v=!1,y(_),!w)if(n(l)!==null)w=!0,W(k);else{var j=n(c);j!==null&&q(S,j.startTime-_)}}function k(_,j){w=!1,v&&(v=!1,p(N),N=-1),m=!0;var D=g;try{for(y(j),f=n(l);f!==null&&(!(f.expirationTime>j)||_&&!z());){var G=f.callback;if(typeof G=="function"){f.callback=null,g=f.priorityLevel;var B=G(f.expirationTime<=j);j=e.unstable_now(),typeof B=="function"?f.callback=B:f===n(l)&&r(l),y(j)}else r(l);f=n(l)}if(f!==null)var K=!0;else{var Y=n(c);Y!==null&&q(S,Y.startTime-j),K=!1}return K}finally{f=null,g=D,m=!1}}var C=!1,E=null,N=-1,P=5,R=-1;function z(){return!(e.unstable_now()-R<P)}function M(){if(E!==null){var _=e.unstable_now();R=_;var j=!0;try{j=E(!0,_)}finally{j?Z():(C=!1,E=null)}}else C=!1}var Z;if(typeof h=="function")Z=function(){h(M)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,Q=A.port2;A.port1.onmessage=M,Z=function(){Q.postMessage(null)}}else Z=function(){x(M,0)};function W(_){E=_,C||(C=!0,Z())}function q(_,j){N=x(function(){_(e.unstable_now())},j)}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(){w||m||(w=!0,W(k))},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 g},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(_){switch(g){case 1:case 2:case 3:var j=3;break;default:j=g}var D=g;g=j;try{return _()}finally{g=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,j){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var D=g;g=_;try{return j()}finally{g=D}},e.unstable_scheduleCallback=function(_,j,D){var G=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?G+D:G):D=G,_){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=D+B,_={id:d++,callback:j,priorityLevel:_,startTime:D,expirationTime:B,sortIndex:-1},D>G?(_.sortIndex=D,t(c,_),n(l)===null&&_===n(c)&&(v?(p(N),N=-1):v=!0,q(S,D-G))):(_.sortIndex=B,t(l,_),w||m||(w=!0,W(k))),_},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(_){var j=g;return function(){var D=g;g=j;try{return _.apply(this,arguments)}finally{g=D}}}})(Yh);Kh.exports=Yh;var Mx=Kh.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 Dx=b,Ct=Mx;function L(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 Xh=new Set,Lo={};function Yr(e,t){Ms(e,t),Ms(e+"Capture",t)}function Ms(e,t){for(Lo[e]=t,e=0;e<t.length;e++)Xh.add(t[e])}var Pn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bc=Object.prototype.hasOwnProperty,zx=/^[: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]*$/,xf={},wf={};function Fx(e){return bc.call(wf,e)?!0:bc.call(xf,e)?!1:zx.test(e)?wf[e]=!0:(xf[e]=!0,!1)}function $x(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 Vx(e,t,n,r){if(t===null||typeof t>"u"||$x(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function lt(e,t,n,r,s,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 Ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ge[e]=new lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ge[t]=new lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ge[e]=new lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ge[e]=new lt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ge[e]=new lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ge[e]=new lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ge[e]=new lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ge[e]=new lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ge[e]=new lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Vu=/[\-:]([a-z])/g;function Bu(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(Vu,Bu);Ge[t]=new lt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Vu,Bu);Ge[t]=new lt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Vu,Bu);Ge[t]=new lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ge[e]=new lt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ge.xlinkHref=new lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ge[e]=new lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Uu(e,t,n,r){var s=Ge.hasOwnProperty(t)?Ge[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Vx(t,n,s,r)&&(n=null),r||s===null?Fx(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 Dn=Dx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ti=Symbol.for("react.element"),ls=Symbol.for("react.portal"),cs=Symbol.for("react.fragment"),Hu=Symbol.for("react.strict_mode"),Sc=Symbol.for("react.profiler"),Jh=Symbol.for("react.provider"),em=Symbol.for("react.context"),Wu=Symbol.for("react.forward_ref"),kc=Symbol.for("react.suspense"),Cc=Symbol.for("react.suspense_list"),qu=Symbol.for("react.memo"),Gn=Symbol.for("react.lazy"),tm=Symbol.for("react.offscreen"),bf=Symbol.iterator;function io(e){return e===null||typeof e!="object"?null:(e=bf&&e[bf]||e["@@iterator"],typeof e=="function"?e:null)}var Ee=Object.assign,Fl;function vo(e){if(Fl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Fl=t&&t[1]||""}return`
`+Fl+e}var $l=!1;function Vl(e,t){if(!e||$l)return"";$l=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var s=c.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 l=`
`+s[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{$l=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vo(e):""}function Bx(e){switch(e.tag){case 5:return vo(e.type);case 16:return vo("Lazy");case 13:return vo("Suspense");case 19:return vo("SuspenseList");case 0:case 2:case 15:return e=Vl(e.type,!1),e;case 11:return e=Vl(e.type.render,!1),e;case 1:return e=Vl(e.type,!0),e;default:return""}}function Ec(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 cs:return"Fragment";case ls:return"Portal";case Sc:return"Profiler";case Hu:return"StrictMode";case kc:return"Suspense";case Cc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case em:return(e.displayName||"Context")+".Consumer";case Jh:return(e._context.displayName||"Context")+".Provider";case Wu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qu:return t=e.displayName||null,t!==null?t:Ec(e.type)||"Memo";case Gn:t=e._payload,e=e._init;try{return Ec(e(t))}catch{}}return null}function Ux(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 Ec(t);case 8:return t===Hu?"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 vr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Hx(e){var t=nm(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 Pi(e){e._valueTracker||(e._valueTracker=Hx(e))}function rm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fa(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 Nc(e,t){var n=t.checked;return Ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Sf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vr(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 sm(e,t){t=t.checked,t!=null&&Uu(e,"checked",t,!1)}function _c(e,t){sm(e,t);var n=vr(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")?jc(e,t.type,n):t.hasOwnProperty("defaultValue")&&jc(e,t.type,vr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function kf(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 jc(e,t,n){(t!=="number"||fa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yo=Array.isArray;function ws(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=""+vr(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 Tc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(L(91));return Ee({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Cf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(L(92));if(yo(n)){if(1<n.length)throw Error(L(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:vr(n)}}function om(e,t){var n=vr(t.value),r=vr(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 Ef(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function im(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 Pc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?im(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ri,am=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(Ri=Ri||document.createElement("div"),Ri.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ri.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Io(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ko={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},Wx=["Webkit","ms","Moz","O"];Object.keys(ko).forEach(function(e){Wx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ko[t]=ko[e]})});function lm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ko.hasOwnProperty(e)&&ko[e]?(""+t).trim():t+"px"}function cm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=lm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var qx=Ee({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 Rc(e,t){if(t){if(qx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function Ac(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 Oc=null;function Gu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lc=null,bs=null,Ss=null;function Nf(e){if(e=hi(e)){if(typeof Lc!="function")throw Error(L(280));var t=e.stateNode;t&&(t=rl(t),Lc(e.stateNode,e.type,t))}}function um(e){bs?Ss?Ss.push(e):Ss=[e]:bs=e}function dm(){if(bs){var e=bs,t=Ss;if(Ss=bs=null,Nf(e),t)for(e=0;e<t.length;e++)Nf(t[e])}}function fm(e,t){return e(t)}function pm(){}var Bl=!1;function hm(e,t,n){if(Bl)return e(t,n);Bl=!0;try{return fm(e,t,n)}finally{Bl=!1,(bs!==null||Ss!==null)&&(pm(),dm())}}function Mo(e,t){var n=e.stateNode;if(n===null)return null;var r=rl(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(L(231,t,typeof n));return n}var Ic=!1;if(Pn)try{var ao={};Object.defineProperty(ao,"passive",{get:function(){Ic=!0}}),window.addEventListener("test",ao,ao),window.removeEventListener("test",ao,ao)}catch{Ic=!1}function Gx(e,t,n,r,s,o,i,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Co=!1,pa=null,ha=!1,Mc=null,Qx={onError:function(e){Co=!0,pa=e}};function Zx(e,t,n,r,s,o,i,a,l){Co=!1,pa=null,Gx.apply(Qx,arguments)}function Kx(e,t,n,r,s,o,i,a,l){if(Zx.apply(this,arguments),Co){if(Co){var c=pa;Co=!1,pa=null}else throw Error(L(198));ha||(ha=!0,Mc=c)}}function Xr(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 mm(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 _f(e){if(Xr(e)!==e)throw Error(L(188))}function Yx(e){var t=e.alternate;if(!t){if(t=Xr(e),t===null)throw Error(L(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 _f(s),e;if(o===r)return _f(s),t;o=o.sibling}throw Error(L(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(L(189))}}if(n.alternate!==r)throw Error(L(190))}if(n.tag!==3)throw Error(L(188));return n.stateNode.current===n?e:t}function gm(e){return e=Yx(e),e!==null?vm(e):null}function vm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=vm(e);if(t!==null)return t;e=e.sibling}return null}var ym=Ct.unstable_scheduleCallback,jf=Ct.unstable_cancelCallback,Xx=Ct.unstable_shouldYield,Jx=Ct.unstable_requestPaint,Re=Ct.unstable_now,e0=Ct.unstable_getCurrentPriorityLevel,Qu=Ct.unstable_ImmediatePriority,xm=Ct.unstable_UserBlockingPriority,ma=Ct.unstable_NormalPriority,t0=Ct.unstable_LowPriority,wm=Ct.unstable_IdlePriority,Ja=null,hn=null;function n0(e){if(hn&&typeof hn.onCommitFiberRoot=="function")try{hn.onCommitFiberRoot(Ja,e,void 0,(e.current.flags&128)===128)}catch{}}var Xt=Math.clz32?Math.clz32:o0,r0=Math.log,s0=Math.LN2;function o0(e){return e>>>=0,e===0?32:31-(r0(e)/s0|0)|0}var Ai=64,Oi=4194304;function xo(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 ga(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=xo(a):(o&=i,o!==0&&(r=xo(o)))}else i=n&~s,i!==0?r=xo(i):o!==0&&(r=xo(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-Xt(t),s=1<<n,r|=e[n],t&=~s;return r}function i0(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 a0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-Xt(o),a=1<<i,l=s[i];l===-1?(!(a&n)||a&r)&&(s[i]=i0(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function Dc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function bm(){var e=Ai;return Ai<<=1,!(Ai&4194240)&&(Ai=64),e}function Ul(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function fi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xt(t),e[t]=n}function l0(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-Xt(n),o=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~o}}function Zu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Xt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var pe=0;function Sm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var km,Ku,Cm,Em,Nm,zc=!1,Li=[],ar=null,lr=null,cr=null,Do=new Map,zo=new Map,Kn=[],c0="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 Tf(e,t){switch(e){case"focusin":case"focusout":ar=null;break;case"dragenter":case"dragleave":lr=null;break;case"mouseover":case"mouseout":cr=null;break;case"pointerover":case"pointerout":Do.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zo.delete(t.pointerId)}}function lo(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=hi(t),t!==null&&Ku(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function u0(e,t,n,r,s){switch(t){case"focusin":return ar=lo(ar,e,t,n,r,s),!0;case"dragenter":return lr=lo(lr,e,t,n,r,s),!0;case"mouseover":return cr=lo(cr,e,t,n,r,s),!0;case"pointerover":var o=s.pointerId;return Do.set(o,lo(Do.get(o)||null,e,t,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,zo.set(o,lo(zo.get(o)||null,e,t,n,r,s)),!0}return!1}function _m(e){var t=Rr(e.target);if(t!==null){var n=Xr(t);if(n!==null){if(t=n.tag,t===13){if(t=mm(n),t!==null){e.blockedOn=t,Nm(e.priority,function(){Cm(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 Xi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Fc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Oc=r,n.target.dispatchEvent(r),Oc=null}else return t=hi(n),t!==null&&Ku(t),e.blockedOn=n,!1;t.shift()}return!0}function Pf(e,t,n){Xi(e)&&n.delete(t)}function d0(){zc=!1,ar!==null&&Xi(ar)&&(ar=null),lr!==null&&Xi(lr)&&(lr=null),cr!==null&&Xi(cr)&&(cr=null),Do.forEach(Pf),zo.forEach(Pf)}function co(e,t){e.blockedOn===t&&(e.blockedOn=null,zc||(zc=!0,Ct.unstable_scheduleCallback(Ct.unstable_NormalPriority,d0)))}function Fo(e){function t(s){return co(s,e)}if(0<Li.length){co(Li[0],e);for(var n=1;n<Li.length;n++){var r=Li[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ar!==null&&co(ar,e),lr!==null&&co(lr,e),cr!==null&&co(cr,e),Do.forEach(t),zo.forEach(t),n=0;n<Kn.length;n++)r=Kn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Kn.length&&(n=Kn[0],n.blockedOn===null);)_m(n),n.blockedOn===null&&Kn.shift()}var ks=Dn.ReactCurrentBatchConfig,va=!0;function f0(e,t,n,r){var s=pe,o=ks.transition;ks.transition=null;try{pe=1,Yu(e,t,n,r)}finally{pe=s,ks.transition=o}}function p0(e,t,n,r){var s=pe,o=ks.transition;ks.transition=null;try{pe=4,Yu(e,t,n,r)}finally{pe=s,ks.transition=o}}function Yu(e,t,n,r){if(va){var s=Fc(e,t,n,r);if(s===null)Jl(e,t,r,ya,n),Tf(e,r);else if(u0(s,e,t,n,r))r.stopPropagation();else if(Tf(e,r),t&4&&-1<c0.indexOf(e)){for(;s!==null;){var o=hi(s);if(o!==null&&km(o),o=Fc(e,t,n,r),o===null&&Jl(e,t,r,ya,n),o===s)break;s=o}s!==null&&r.stopPropagation()}else Jl(e,t,r,null,n)}}var ya=null;function Fc(e,t,n,r){if(ya=null,e=Gu(r),e=Rr(e),e!==null)if(t=Xr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=mm(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 ya=e,null}function jm(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(e0()){case Qu:return 1;case xm:return 4;case ma:case t0:return 16;case wm:return 536870912;default:return 16}default:return 16}}var rr=null,Xu=null,Ji=null;function Tm(){if(Ji)return Ji;var e,t=Xu,n=t.length,r,s="value"in rr?rr.value:rr.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 Ji=s.slice(e,1<r?1-r:void 0)}function ea(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 Ii(){return!0}function Rf(){return!1}function jt(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)?Ii:Rf,this.isPropagationStopped=Rf,this}return Ee(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=Ii)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ii)},persist:function(){},isPersistent:Ii}),t}var Ks={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ju=jt(Ks),pi=Ee({},Ks,{view:0,detail:0}),h0=jt(pi),Hl,Wl,uo,el=Ee({},pi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ed,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!==uo&&(uo&&e.type==="mousemove"?(Hl=e.screenX-uo.screenX,Wl=e.screenY-uo.screenY):Wl=Hl=0,uo=e),Hl)},movementY:function(e){return"movementY"in e?e.movementY:Wl}}),Af=jt(el),m0=Ee({},el,{dataTransfer:0}),g0=jt(m0),v0=Ee({},pi,{relatedTarget:0}),ql=jt(v0),y0=Ee({},Ks,{animationName:0,elapsedTime:0,pseudoElement:0}),x0=jt(y0),w0=Ee({},Ks,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),b0=jt(w0),S0=Ee({},Ks,{data:0}),Of=jt(S0),k0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},C0={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"},E0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function N0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=E0[e])?!!t[e]:!1}function ed(){return N0}var _0=Ee({},pi,{key:function(e){if(e.key){var t=k0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ea(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?C0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ed,charCode:function(e){return e.type==="keypress"?ea(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ea(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),j0=jt(_0),T0=Ee({},el,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lf=jt(T0),P0=Ee({},pi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ed}),R0=jt(P0),A0=Ee({},Ks,{propertyName:0,elapsedTime:0,pseudoElement:0}),O0=jt(A0),L0=Ee({},el,{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}),I0=jt(L0),M0=[9,13,27,32],td=Pn&&"CompositionEvent"in window,Eo=null;Pn&&"documentMode"in document&&(Eo=document.documentMode);var D0=Pn&&"TextEvent"in window&&!Eo,Pm=Pn&&(!td||Eo&&8<Eo&&11>=Eo),If=" ",Mf=!1;function Rm(e,t){switch(e){case"keyup":return M0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Am(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var us=!1;function z0(e,t){switch(e){case"compositionend":return Am(t);case"keypress":return t.which!==32?null:(Mf=!0,If);case"textInput":return e=t.data,e===If&&Mf?null:e;default:return null}}function F0(e,t){if(us)return e==="compositionend"||!td&&Rm(e,t)?(e=Tm(),Ji=Xu=rr=null,us=!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 Pm&&t.locale!=="ko"?null:t.data;default:return null}}var $0={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 Df(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$0[e.type]:t==="textarea"}function Om(e,t,n,r){um(r),t=xa(t,"onChange"),0<t.length&&(n=new Ju("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var No=null,$o=null;function V0(e){Hm(e,0)}function tl(e){var t=ps(e);if(rm(t))return e}function B0(e,t){if(e==="change")return t}var Lm=!1;if(Pn){var Gl;if(Pn){var Ql="oninput"in document;if(!Ql){var zf=document.createElement("div");zf.setAttribute("oninput","return;"),Ql=typeof zf.oninput=="function"}Gl=Ql}else Gl=!1;Lm=Gl&&(!document.documentMode||9<document.documentMode)}function Ff(){No&&(No.detachEvent("onpropertychange",Im),$o=No=null)}function Im(e){if(e.propertyName==="value"&&tl($o)){var t=[];Om(t,$o,e,Gu(e)),hm(V0,t)}}function U0(e,t,n){e==="focusin"?(Ff(),No=t,$o=n,No.attachEvent("onpropertychange",Im)):e==="focusout"&&Ff()}function H0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tl($o)}function W0(e,t){if(e==="click")return tl(t)}function q0(e,t){if(e==="input"||e==="change")return tl(t)}function G0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:G0;function Vo(e,t){if(tn(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(!bc.call(t,s)||!tn(e[s],t[s]))return!1}return!0}function $f(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vf(e,t){var n=$f(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=$f(n)}}function Mm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dm(){for(var e=window,t=fa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fa(e.document)}return t}function nd(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 Q0(e){var t=Dm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Mm(n.ownerDocument.documentElement,n)){if(r!==null&&nd(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=Vf(n,o);var i=Vf(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 Z0=Pn&&"documentMode"in document&&11>=document.documentMode,ds=null,$c=null,_o=null,Vc=!1;function Bf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vc||ds==null||ds!==fa(r)||(r=ds,"selectionStart"in r&&nd(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}),_o&&Vo(_o,r)||(_o=r,r=xa($c,"onSelect"),0<r.length&&(t=new Ju("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ds)))}function Mi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fs={animationend:Mi("Animation","AnimationEnd"),animationiteration:Mi("Animation","AnimationIteration"),animationstart:Mi("Animation","AnimationStart"),transitionend:Mi("Transition","TransitionEnd")},Zl={},zm={};Pn&&(zm=document.createElement("div").style,"AnimationEvent"in window||(delete fs.animationend.animation,delete fs.animationiteration.animation,delete fs.animationstart.animation),"TransitionEvent"in window||delete fs.transitionend.transition);function nl(e){if(Zl[e])return Zl[e];if(!fs[e])return e;var t=fs[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in zm)return Zl[e]=t[n];return e}var Fm=nl("animationend"),$m=nl("animationiteration"),Vm=nl("animationstart"),Bm=nl("transitionend"),Um=new Map,Uf="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 Cr(e,t){Um.set(e,t),Yr(t,[e])}for(var Kl=0;Kl<Uf.length;Kl++){var Yl=Uf[Kl],K0=Yl.toLowerCase(),Y0=Yl[0].toUpperCase()+Yl.slice(1);Cr(K0,"on"+Y0)}Cr(Fm,"onAnimationEnd");Cr($m,"onAnimationIteration");Cr(Vm,"onAnimationStart");Cr("dblclick","onDoubleClick");Cr("focusin","onFocus");Cr("focusout","onBlur");Cr(Bm,"onTransitionEnd");Ms("onMouseEnter",["mouseout","mouseover"]);Ms("onMouseLeave",["mouseout","mouseover"]);Ms("onPointerEnter",["pointerout","pointerover"]);Ms("onPointerLeave",["pointerout","pointerover"]);Yr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Yr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Yr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Yr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Yr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Yr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wo="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(" "),X0=new Set("cancel close invalid load scroll toggle".split(" ").concat(wo));function Hf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Kx(r,t,void 0,e),e.currentTarget=null}function Hm(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],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==o&&s.isPropagationStopped())break e;Hf(s,a,c),o=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,c=a.currentTarget,a=a.listener,l!==o&&s.isPropagationStopped())break e;Hf(s,a,c),o=l}}}if(ha)throw e=Mc,ha=!1,Mc=null,e}function xe(e,t){var n=t[qc];n===void 0&&(n=t[qc]=new Set);var r=e+"__bubble";n.has(r)||(Wm(t,e,2,!1),n.add(r))}function Xl(e,t,n){var r=0;t&&(r|=4),Wm(n,e,r,t)}var Di="_reactListening"+Math.random().toString(36).slice(2);function Bo(e){if(!e[Di]){e[Di]=!0,Xh.forEach(function(n){n!=="selectionchange"&&(X0.has(n)||Xl(n,!1,e),Xl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Di]||(t[Di]=!0,Xl("selectionchange",!1,t))}}function Wm(e,t,n,r){switch(jm(t)){case 1:var s=f0;break;case 4:s=p0;break;default:s=Yu}n=s.bind(null,t,n,e),s=void 0,!Ic||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 Jl(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 l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;i=i.return}for(;a!==null;){if(i=Rr(a),i===null)return;if(l=i.tag,l===5||l===6){r=o=i;continue e}a=a.parentNode}}r=r.return}hm(function(){var c=o,d=Gu(n),f=[];e:{var g=Um.get(e);if(g!==void 0){var m=Ju,w=e;switch(e){case"keypress":if(ea(n)===0)break e;case"keydown":case"keyup":m=j0;break;case"focusin":w="focus",m=ql;break;case"focusout":w="blur",m=ql;break;case"beforeblur":case"afterblur":m=ql;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":m=Af;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=g0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=R0;break;case Fm:case $m:case Vm:m=x0;break;case Bm:m=O0;break;case"scroll":m=h0;break;case"wheel":m=I0;break;case"copy":case"cut":case"paste":m=b0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Lf}var v=(t&4)!==0,x=!v&&e==="scroll",p=v?g!==null?g+"Capture":null:g;v=[];for(var h=c,y;h!==null;){y=h;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,p!==null&&(S=Mo(h,p),S!=null&&v.push(Uo(h,S,y)))),x)break;h=h.return}0<v.length&&(g=new m(g,w,null,n,d),f.push({event:g,listeners:v}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",g&&n!==Oc&&(w=n.relatedTarget||n.fromElement)&&(Rr(w)||w[Rn]))break e;if((m||g)&&(g=d.window===d?d:(g=d.ownerDocument)?g.defaultView||g.parentWindow:window,m?(w=n.relatedTarget||n.toElement,m=c,w=w?Rr(w):null,w!==null&&(x=Xr(w),w!==x||w.tag!==5&&w.tag!==6)&&(w=null)):(m=null,w=c),m!==w)){if(v=Af,S="onMouseLeave",p="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(v=Lf,S="onPointerLeave",p="onPointerEnter",h="pointer"),x=m==null?g:ps(m),y=w==null?g:ps(w),g=new v(S,h+"leave",m,n,d),g.target=x,g.relatedTarget=y,S=null,Rr(d)===c&&(v=new v(p,h+"enter",w,n,d),v.target=y,v.relatedTarget=x,S=v),x=S,m&&w)t:{for(v=m,p=w,h=0,y=v;y;y=os(y))h++;for(y=0,S=p;S;S=os(S))y++;for(;0<h-y;)v=os(v),h--;for(;0<y-h;)p=os(p),y--;for(;h--;){if(v===p||p!==null&&v===p.alternate)break t;v=os(v),p=os(p)}v=null}else v=null;m!==null&&Wf(f,g,m,v,!1),w!==null&&x!==null&&Wf(f,x,w,v,!0)}}e:{if(g=c?ps(c):window,m=g.nodeName&&g.nodeName.toLowerCase(),m==="select"||m==="input"&&g.type==="file")var k=B0;else if(Df(g))if(Lm)k=q0;else{k=H0;var C=U0}else(m=g.nodeName)&&m.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(k=W0);if(k&&(k=k(e,c))){Om(f,k,n,d);break e}C&&C(e,g,c),e==="focusout"&&(C=g._wrapperState)&&C.controlled&&g.type==="number"&&jc(g,"number",g.value)}switch(C=c?ps(c):window,e){case"focusin":(Df(C)||C.contentEditable==="true")&&(ds=C,$c=c,_o=null);break;case"focusout":_o=$c=ds=null;break;case"mousedown":Vc=!0;break;case"contextmenu":case"mouseup":case"dragend":Vc=!1,Bf(f,n,d);break;case"selectionchange":if(Z0)break;case"keydown":case"keyup":Bf(f,n,d)}var E;if(td)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else us?Rm(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(Pm&&n.locale!=="ko"&&(us||N!=="onCompositionStart"?N==="onCompositionEnd"&&us&&(E=Tm()):(rr=d,Xu="value"in rr?rr.value:rr.textContent,us=!0)),C=xa(c,N),0<C.length&&(N=new Of(N,e,null,n,d),f.push({event:N,listeners:C}),E?N.data=E:(E=Am(n),E!==null&&(N.data=E)))),(E=D0?z0(e,n):F0(e,n))&&(c=xa(c,"onBeforeInput"),0<c.length&&(d=new Of("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:c}),d.data=E))}Hm(f,t)})}function Uo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function xa(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=Mo(e,n),o!=null&&r.unshift(Uo(e,o,s)),o=Mo(e,t),o!=null&&r.push(Uo(e,o,s))),e=e.return}return r}function os(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Wf(e,t,n,r,s){for(var o=t._reactName,i=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,s?(l=Mo(n,o),l!=null&&i.unshift(Uo(n,l,a))):s||(l=Mo(n,o),l!=null&&i.push(Uo(n,l,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var J0=/\r\n?/g,e1=/\u0000|\uFFFD/g;function qf(e){return(typeof e=="string"?e:""+e).replace(J0,`
`).replace(e1,"")}function zi(e,t,n){if(t=qf(t),qf(e)!==t&&n)throw Error(L(425))}function wa(){}var Bc=null,Uc=null;function Hc(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 Wc=typeof setTimeout=="function"?setTimeout:void 0,t1=typeof clearTimeout=="function"?clearTimeout:void 0,Gf=typeof Promise=="function"?Promise:void 0,n1=typeof queueMicrotask=="function"?queueMicrotask:typeof Gf<"u"?function(e){return Gf.resolve(null).then(e).catch(r1)}:Wc;function r1(e){setTimeout(function(){throw e})}function ec(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),Fo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Fo(t)}function ur(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 Qf(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 Ys=Math.random().toString(36).slice(2),fn="__reactFiber$"+Ys,Ho="__reactProps$"+Ys,Rn="__reactContainer$"+Ys,qc="__reactEvents$"+Ys,s1="__reactListeners$"+Ys,o1="__reactHandles$"+Ys;function Rr(e){var t=e[fn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Rn]||n[fn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Qf(e);e!==null;){if(n=e[fn])return n;e=Qf(e)}return t}e=n,n=e.parentNode}return null}function hi(e){return e=e[fn]||e[Rn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ps(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(L(33))}function rl(e){return e[Ho]||null}var Gc=[],hs=-1;function Er(e){return{current:e}}function we(e){0>hs||(e.current=Gc[hs],Gc[hs]=null,hs--)}function ge(e,t){hs++,Gc[hs]=e.current,e.current=t}var yr={},Je=Er(yr),pt=Er(!1),Br=yr;function Ds(e,t){var n=e.type.contextTypes;if(!n)return yr;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 ht(e){return e=e.childContextTypes,e!=null}function ba(){we(pt),we(Je)}function Zf(e,t,n){if(Je.current!==yr)throw Error(L(168));ge(Je,t),ge(pt,n)}function qm(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(L(108,Ux(e)||"Unknown",s));return Ee({},n,r)}function Sa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yr,Br=Je.current,ge(Je,e),ge(pt,pt.current),!0}function Kf(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=qm(e,t,Br),r.__reactInternalMemoizedMergedChildContext=e,we(pt),we(Je),ge(Je,e)):we(pt),ge(pt,n)}var En=null,sl=!1,tc=!1;function Gm(e){En===null?En=[e]:En.push(e)}function i1(e){sl=!0,Gm(e)}function Nr(){if(!tc&&En!==null){tc=!0;var e=0,t=pe;try{var n=En;for(pe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}En=null,sl=!1}catch(s){throw En!==null&&(En=En.slice(e+1)),ym(Qu,Nr),s}finally{pe=t,tc=!1}}return null}var ms=[],gs=0,ka=null,Ca=0,Pt=[],Rt=0,Ur=null,_n=1,jn="";function jr(e,t){ms[gs++]=Ca,ms[gs++]=ka,ka=e,Ca=t}function Qm(e,t,n){Pt[Rt++]=_n,Pt[Rt++]=jn,Pt[Rt++]=Ur,Ur=e;var r=_n;e=jn;var s=32-Xt(r)-1;r&=~(1<<s),n+=1;var o=32-Xt(t)+s;if(30<o){var i=s-s%5;o=(r&(1<<i)-1).toString(32),r>>=i,s-=i,_n=1<<32-Xt(t)+s|n<<s|r,jn=o+e}else _n=1<<o|n<<s|r,jn=e}function rd(e){e.return!==null&&(jr(e,1),Qm(e,1,0))}function sd(e){for(;e===ka;)ka=ms[--gs],ms[gs]=null,Ca=ms[--gs],ms[gs]=null;for(;e===Ur;)Ur=Pt[--Rt],Pt[Rt]=null,jn=Pt[--Rt],Pt[Rt]=null,_n=Pt[--Rt],Pt[Rt]=null}var St=null,bt=null,be=!1,Yt=null;function Zm(e,t){var n=At(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 Yf(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,St=e,bt=ur(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,St=e,bt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ur!==null?{id:_n,overflow:jn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=At(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,St=e,bt=null,!0):!1;default:return!1}}function Qc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Zc(e){if(be){var t=bt;if(t){var n=t;if(!Yf(e,t)){if(Qc(e))throw Error(L(418));t=ur(n.nextSibling);var r=St;t&&Yf(e,t)?Zm(r,n):(e.flags=e.flags&-4097|2,be=!1,St=e)}}else{if(Qc(e))throw Error(L(418));e.flags=e.flags&-4097|2,be=!1,St=e}}}function Xf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;St=e}function Fi(e){if(e!==St)return!1;if(!be)return Xf(e),be=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Hc(e.type,e.memoizedProps)),t&&(t=bt)){if(Qc(e))throw Km(),Error(L(418));for(;t;)Zm(e,t),t=ur(t.nextSibling)}if(Xf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(L(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){bt=ur(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}bt=null}}else bt=St?ur(e.stateNode.nextSibling):null;return!0}function Km(){for(var e=bt;e;)e=ur(e.nextSibling)}function zs(){bt=St=null,be=!1}function od(e){Yt===null?Yt=[e]:Yt.push(e)}var a1=Dn.ReactCurrentBatchConfig;function fo(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(L(309));var r=n.stateNode}if(!r)throw Error(L(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(L(284));if(!n._owner)throw Error(L(290,e))}return e}function $i(e,t){throw e=Object.prototype.toString.call(t),Error(L(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Jf(e){var t=e._init;return t(e._payload)}function Ym(e){function t(p,h){if(e){var y=p.deletions;y===null?(p.deletions=[h],p.flags|=16):y.push(h)}}function n(p,h){if(!e)return null;for(;h!==null;)t(p,h),h=h.sibling;return null}function r(p,h){for(p=new Map;h!==null;)h.key!==null?p.set(h.key,h):p.set(h.index,h),h=h.sibling;return p}function s(p,h){return p=hr(p,h),p.index=0,p.sibling=null,p}function o(p,h,y){return p.index=y,e?(y=p.alternate,y!==null?(y=y.index,y<h?(p.flags|=2,h):y):(p.flags|=2,h)):(p.flags|=1048576,h)}function i(p){return e&&p.alternate===null&&(p.flags|=2),p}function a(p,h,y,S){return h===null||h.tag!==6?(h=lc(y,p.mode,S),h.return=p,h):(h=s(h,y),h.return=p,h)}function l(p,h,y,S){var k=y.type;return k===cs?d(p,h,y.props.children,S,y.key):h!==null&&(h.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Gn&&Jf(k)===h.type)?(S=s(h,y.props),S.ref=fo(p,h,y),S.return=p,S):(S=aa(y.type,y.key,y.props,null,p.mode,S),S.ref=fo(p,h,y),S.return=p,S)}function c(p,h,y,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==y.containerInfo||h.stateNode.implementation!==y.implementation?(h=cc(y,p.mode,S),h.return=p,h):(h=s(h,y.children||[]),h.return=p,h)}function d(p,h,y,S,k){return h===null||h.tag!==7?(h=Vr(y,p.mode,S,k),h.return=p,h):(h=s(h,y),h.return=p,h)}function f(p,h,y){if(typeof h=="string"&&h!==""||typeof h=="number")return h=lc(""+h,p.mode,y),h.return=p,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Ti:return y=aa(h.type,h.key,h.props,null,p.mode,y),y.ref=fo(p,null,h),y.return=p,y;case ls:return h=cc(h,p.mode,y),h.return=p,h;case Gn:var S=h._init;return f(p,S(h._payload),y)}if(yo(h)||io(h))return h=Vr(h,p.mode,y,null),h.return=p,h;$i(p,h)}return null}function g(p,h,y,S){var k=h!==null?h.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return k!==null?null:a(p,h,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ti:return y.key===k?l(p,h,y,S):null;case ls:return y.key===k?c(p,h,y,S):null;case Gn:return k=y._init,g(p,h,k(y._payload),S)}if(yo(y)||io(y))return k!==null?null:d(p,h,y,S,null);$i(p,y)}return null}function m(p,h,y,S,k){if(typeof S=="string"&&S!==""||typeof S=="number")return p=p.get(y)||null,a(h,p,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Ti:return p=p.get(S.key===null?y:S.key)||null,l(h,p,S,k);case ls:return p=p.get(S.key===null?y:S.key)||null,c(h,p,S,k);case Gn:var C=S._init;return m(p,h,y,C(S._payload),k)}if(yo(S)||io(S))return p=p.get(y)||null,d(h,p,S,k,null);$i(h,S)}return null}function w(p,h,y,S){for(var k=null,C=null,E=h,N=h=0,P=null;E!==null&&N<y.length;N++){E.index>N?(P=E,E=null):P=E.sibling;var R=g(p,E,y[N],S);if(R===null){E===null&&(E=P);break}e&&E&&R.alternate===null&&t(p,E),h=o(R,h,N),C===null?k=R:C.sibling=R,C=R,E=P}if(N===y.length)return n(p,E),be&&jr(p,N),k;if(E===null){for(;N<y.length;N++)E=f(p,y[N],S),E!==null&&(h=o(E,h,N),C===null?k=E:C.sibling=E,C=E);return be&&jr(p,N),k}for(E=r(p,E);N<y.length;N++)P=m(E,p,N,y[N],S),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?N:P.key),h=o(P,h,N),C===null?k=P:C.sibling=P,C=P);return e&&E.forEach(function(z){return t(p,z)}),be&&jr(p,N),k}function v(p,h,y,S){var k=io(y);if(typeof k!="function")throw Error(L(150));if(y=k.call(y),y==null)throw Error(L(151));for(var C=k=null,E=h,N=h=0,P=null,R=y.next();E!==null&&!R.done;N++,R=y.next()){E.index>N?(P=E,E=null):P=E.sibling;var z=g(p,E,R.value,S);if(z===null){E===null&&(E=P);break}e&&E&&z.alternate===null&&t(p,E),h=o(z,h,N),C===null?k=z:C.sibling=z,C=z,E=P}if(R.done)return n(p,E),be&&jr(p,N),k;if(E===null){for(;!R.done;N++,R=y.next())R=f(p,R.value,S),R!==null&&(h=o(R,h,N),C===null?k=R:C.sibling=R,C=R);return be&&jr(p,N),k}for(E=r(p,E);!R.done;N++,R=y.next())R=m(E,p,N,R.value,S),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?N:R.key),h=o(R,h,N),C===null?k=R:C.sibling=R,C=R);return e&&E.forEach(function(M){return t(p,M)}),be&&jr(p,N),k}function x(p,h,y,S){if(typeof y=="object"&&y!==null&&y.type===cs&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Ti:e:{for(var k=y.key,C=h;C!==null;){if(C.key===k){if(k=y.type,k===cs){if(C.tag===7){n(p,C.sibling),h=s(C,y.props.children),h.return=p,p=h;break e}}else if(C.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Gn&&Jf(k)===C.type){n(p,C.sibling),h=s(C,y.props),h.ref=fo(p,C,y),h.return=p,p=h;break e}n(p,C);break}else t(p,C);C=C.sibling}y.type===cs?(h=Vr(y.props.children,p.mode,S,y.key),h.return=p,p=h):(S=aa(y.type,y.key,y.props,null,p.mode,S),S.ref=fo(p,h,y),S.return=p,p=S)}return i(p);case ls:e:{for(C=y.key;h!==null;){if(h.key===C)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(p,h.sibling),h=s(h,y.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=cc(y,p.mode,S),h.return=p,p=h}return i(p);case Gn:return C=y._init,x(p,h,C(y._payload),S)}if(yo(y))return w(p,h,y,S);if(io(y))return v(p,h,y,S);$i(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(p,h.sibling),h=s(h,y),h.return=p,p=h):(n(p,h),h=lc(y,p.mode,S),h.return=p,p=h),i(p)):n(p,h)}return x}var Fs=Ym(!0),Xm=Ym(!1),Ea=Er(null),Na=null,vs=null,id=null;function ad(){id=vs=Na=null}function ld(e){var t=Ea.current;we(Ea),e._currentValue=t}function Kc(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 Cs(e,t){Na=e,id=vs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ft=!0),e.firstContext=null)}function Lt(e){var t=e._currentValue;if(id!==e)if(e={context:e,memoizedValue:t,next:null},vs===null){if(Na===null)throw Error(L(308));vs=e,Na.dependencies={lanes:0,firstContext:e}}else vs=vs.next=e;return t}var Ar=null;function cd(e){Ar===null?Ar=[e]:Ar.push(e)}function Jm(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,cd(t)):(n.next=s.next,s.next=n),t.interleaved=n,An(e,r)}function An(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 Qn=!1;function ud(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function eg(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 Tn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function dr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ae&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,An(e,n)}return s=r.interleaved,s===null?(t.next=t,cd(r)):(t.next=s.next,s.next=t),r.interleaved=t,An(e,n)}function ta(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,Zu(e,n)}}function ep(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 _a(e,t,n,r){var s=e.updateQueue;Qn=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,c=l.next;l.next=null,i===null?o=c:i.next=c,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(o!==null){var f=s.baseState;i=0,d=c=l=null,a=o;do{var g=a.lane,m=a.eventTime;if((r&g)===g){d!==null&&(d=d.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,v=a;switch(g=t,m=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){f=w.call(m,f,g);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,g=typeof w=="function"?w.call(m,f,g):w,g==null)break e;f=Ee({},f,g);break e;case 2:Qn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=s.effects,g===null?s.effects=[a]:g.push(a))}else m={eventTime:m,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=m,l=f):d=d.next=m,i|=g;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;g=a,a=g.next,g.next=null,s.lastBaseUpdate=g,s.shared.pending=null}}while(!0);if(d===null&&(l=f),s.baseState=l,s.firstBaseUpdate=c,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);Wr|=i,e.lanes=i,e.memoizedState=f}}function tp(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(L(191,s));s.call(r)}}}var mi={},mn=Er(mi),Wo=Er(mi),qo=Er(mi);function Or(e){if(e===mi)throw Error(L(174));return e}function dd(e,t){switch(ge(qo,t),ge(Wo,e),ge(mn,mi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pc(t,e)}we(mn),ge(mn,t)}function $s(){we(mn),we(Wo),we(qo)}function tg(e){Or(qo.current);var t=Or(mn.current),n=Pc(t,e.type);t!==n&&(ge(Wo,e),ge(mn,n))}function fd(e){Wo.current===e&&(we(mn),we(Wo))}var Se=Er(0);function ja(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 nc=[];function pd(){for(var e=0;e<nc.length;e++)nc[e]._workInProgressVersionPrimary=null;nc.length=0}var na=Dn.ReactCurrentDispatcher,rc=Dn.ReactCurrentBatchConfig,Hr=0,Ce=null,ze=null,Be=null,Ta=!1,jo=!1,Go=0,l1=0;function Ze(){throw Error(L(321))}function hd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tn(e[n],t[n]))return!1;return!0}function md(e,t,n,r,s,o){if(Hr=o,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,na.current=e===null||e.memoizedState===null?f1:p1,e=n(r,s),jo){o=0;do{if(jo=!1,Go=0,25<=o)throw Error(L(301));o+=1,Be=ze=null,t.updateQueue=null,na.current=h1,e=n(r,s)}while(jo)}if(na.current=Pa,t=ze!==null&&ze.next!==null,Hr=0,Be=ze=Ce=null,Ta=!1,t)throw Error(L(300));return e}function gd(){var e=Go!==0;return Go=0,e}function ln(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Be===null?Ce.memoizedState=Be=e:Be=Be.next=e,Be}function It(){if(ze===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Be===null?Ce.memoizedState:Be.next;if(t!==null)Be=t,ze=e;else{if(e===null)throw Error(L(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Be===null?Ce.memoizedState=Be=e:Be=Be.next=e}return Be}function Qo(e,t){return typeof t=="function"?t(e):t}function sc(e){var t=It(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var r=ze,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,l=null,c=o;do{var d=c.lane;if((Hr&d)===d)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=f,i=r):l=l.next=f,Ce.lanes|=d,Wr|=d}c=c.next}while(c!==null&&c!==o);l===null?i=r:l.next=a,tn(r,t.memoizedState)||(ft=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do o=s.lane,Ce.lanes|=o,Wr|=o,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function oc(e){var t=It(),n=t.queue;if(n===null)throw Error(L(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);tn(o,t.memoizedState)||(ft=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ng(){}function rg(e,t){var n=Ce,r=It(),s=t(),o=!tn(r.memoizedState,s);if(o&&(r.memoizedState=s,ft=!0),r=r.queue,vd(ig.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Be!==null&&Be.memoizedState.tag&1){if(n.flags|=2048,Zo(9,og.bind(null,n,r,s,t),void 0,null),Ue===null)throw Error(L(349));Hr&30||sg(n,t,s)}return s}function sg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function og(e,t,n,r){t.value=n,t.getSnapshot=r,ag(t)&&lg(e)}function ig(e,t,n){return n(function(){ag(t)&&lg(e)})}function ag(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tn(e,n)}catch{return!0}}function lg(e){var t=An(e,1);t!==null&&Jt(t,e,1,-1)}function np(e){var t=ln();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qo,lastRenderedState:e},t.queue=e,e=e.dispatch=d1.bind(null,Ce,e),[t.memoizedState,e]}function Zo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.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 cg(){return It().memoizedState}function ra(e,t,n,r){var s=ln();Ce.flags|=e,s.memoizedState=Zo(1|t,n,void 0,r===void 0?null:r)}function ol(e,t,n,r){var s=It();r=r===void 0?null:r;var o=void 0;if(ze!==null){var i=ze.memoizedState;if(o=i.destroy,r!==null&&hd(r,i.deps)){s.memoizedState=Zo(t,n,o,r);return}}Ce.flags|=e,s.memoizedState=Zo(1|t,n,o,r)}function rp(e,t){return ra(8390656,8,e,t)}function vd(e,t){return ol(2048,8,e,t)}function ug(e,t){return ol(4,2,e,t)}function dg(e,t){return ol(4,4,e,t)}function fg(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 pg(e,t,n){return n=n!=null?n.concat([e]):null,ol(4,4,fg.bind(null,t,e),n)}function yd(){}function hg(e,t){var n=It();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function mg(e,t){var n=It();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function gg(e,t,n){return Hr&21?(tn(n,t)||(n=bm(),Ce.lanes|=n,Wr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ft=!0),e.memoizedState=n)}function c1(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=rc.transition;rc.transition={};try{e(!1),t()}finally{pe=n,rc.transition=r}}function vg(){return It().memoizedState}function u1(e,t,n){var r=pr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},yg(e))xg(t,n);else if(n=Jm(e,t,n,r),n!==null){var s=it();Jt(n,e,r,s),wg(n,t,r)}}function d1(e,t,n){var r=pr(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(yg(e))xg(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,tn(a,i)){var l=t.interleaved;l===null?(s.next=s,cd(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=Jm(e,t,s,r),n!==null&&(s=it(),Jt(n,e,r,s),wg(n,t,r))}}function yg(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function xg(e,t){jo=Ta=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zu(e,n)}}var Pa={readContext:Lt,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useInsertionEffect:Ze,useLayoutEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useMutableSource:Ze,useSyncExternalStore:Ze,useId:Ze,unstable_isNewReconciler:!1},f1={readContext:Lt,useCallback:function(e,t){return ln().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:rp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ra(4194308,4,fg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ra(4194308,4,e,t)},useInsertionEffect:function(e,t){return ra(4,2,e,t)},useMemo:function(e,t){var n=ln();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ln();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=u1.bind(null,Ce,e),[r.memoizedState,e]},useRef:function(e){var t=ln();return e={current:e},t.memoizedState=e},useState:np,useDebugValue:yd,useDeferredValue:function(e){return ln().memoizedState=e},useTransition:function(){var e=np(!1),t=e[0];return e=c1.bind(null,e[1]),ln().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ce,s=ln();if(be){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),Ue===null)throw Error(L(349));Hr&30||sg(r,t,n)}s.memoizedState=n;var o={value:n,getSnapshot:t};return s.queue=o,rp(ig.bind(null,r,o,e),[e]),r.flags|=2048,Zo(9,og.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ln(),t=Ue.identifierPrefix;if(be){var n=jn,r=_n;n=(r&~(1<<32-Xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Go++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=l1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},p1={readContext:Lt,useCallback:hg,useContext:Lt,useEffect:vd,useImperativeHandle:pg,useInsertionEffect:ug,useLayoutEffect:dg,useMemo:mg,useReducer:sc,useRef:cg,useState:function(){return sc(Qo)},useDebugValue:yd,useDeferredValue:function(e){var t=It();return gg(t,ze.memoizedState,e)},useTransition:function(){var e=sc(Qo)[0],t=It().memoizedState;return[e,t]},useMutableSource:ng,useSyncExternalStore:rg,useId:vg,unstable_isNewReconciler:!1},h1={readContext:Lt,useCallback:hg,useContext:Lt,useEffect:vd,useImperativeHandle:pg,useInsertionEffect:ug,useLayoutEffect:dg,useMemo:mg,useReducer:oc,useRef:cg,useState:function(){return oc(Qo)},useDebugValue:yd,useDeferredValue:function(e){var t=It();return ze===null?t.memoizedState=e:gg(t,ze.memoizedState,e)},useTransition:function(){var e=oc(Qo)[0],t=It().memoizedState;return[e,t]},useMutableSource:ng,useSyncExternalStore:rg,useId:vg,unstable_isNewReconciler:!1};function qt(e,t){if(e&&e.defaultProps){t=Ee({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Yc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ee({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var il={isMounted:function(e){return(e=e._reactInternals)?Xr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=it(),s=pr(e),o=Tn(r,s);o.payload=t,n!=null&&(o.callback=n),t=dr(e,o,s),t!==null&&(Jt(t,e,s,r),ta(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=it(),s=pr(e),o=Tn(r,s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=dr(e,o,s),t!==null&&(Jt(t,e,s,r),ta(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=it(),r=pr(e),s=Tn(n,r);s.tag=2,t!=null&&(s.callback=t),t=dr(e,s,r),t!==null&&(Jt(t,e,r,n),ta(t,e,r))}};function sp(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?!Vo(n,r)||!Vo(s,o):!0}function bg(e,t,n){var r=!1,s=yr,o=t.contextType;return typeof o=="object"&&o!==null?o=Lt(o):(s=ht(t)?Br:Je.current,r=t.contextTypes,o=(r=r!=null)?Ds(e,s):yr),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=il,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function op(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&&il.enqueueReplaceState(t,t.state,null)}function Xc(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},ud(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=Lt(o):(o=ht(t)?Br:Je.current,s.context=Ds(e,o)),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Yc(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&&il.enqueueReplaceState(s,s.state,null),_a(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Vs(e,t){try{var n="",r=t;do n+=Bx(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 ic(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Jc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var m1=typeof WeakMap=="function"?WeakMap:Map;function Sg(e,t,n){n=Tn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Aa||(Aa=!0,cu=r),Jc(e,t)},n}function kg(e,t,n){n=Tn(-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(){Jc(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Jc(e,t),typeof r!="function"&&(fr===null?fr=new Set([this]):fr.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function ip(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new m1;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=T1.bind(null,e,t,n),t.then(e,e))}function ap(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 lp(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=Tn(-1,1),t.tag=2,dr(n,t,1))),n.lanes|=1),e)}var g1=Dn.ReactCurrentOwner,ft=!1;function rt(e,t,n,r){t.child=e===null?Xm(t,null,n,r):Fs(t,e.child,n,r)}function cp(e,t,n,r,s){n=n.render;var o=t.ref;return Cs(t,s),r=md(e,t,n,r,o,s),n=gd(),e!==null&&!ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,On(e,t,s)):(be&&n&&rd(t),t.flags|=1,rt(e,t,r,s),t.child)}function up(e,t,n,r,s){if(e===null){var o=n.type;return typeof o=="function"&&!Nd(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Cg(e,t,o,r,s)):(e=aa(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:Vo,n(i,r)&&e.ref===t.ref)return On(e,t,s)}return t.flags|=1,e=hr(o,r),e.ref=t.ref,e.return=t,t.child=e}function Cg(e,t,n,r,s){if(e!==null){var o=e.memoizedProps;if(Vo(o,r)&&e.ref===t.ref)if(ft=!1,t.pendingProps=r=o,(e.lanes&s)!==0)e.flags&131072&&(ft=!0);else return t.lanes=e.lanes,On(e,t,s)}return eu(e,t,n,r,s)}function Eg(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},ge(xs,yt),yt|=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,ge(xs,yt),yt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,ge(xs,yt),yt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,ge(xs,yt),yt|=r;return rt(e,t,s,n),t.child}function Ng(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function eu(e,t,n,r,s){var o=ht(n)?Br:Je.current;return o=Ds(t,o),Cs(t,s),n=md(e,t,n,r,o,s),r=gd(),e!==null&&!ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,On(e,t,s)):(be&&r&&rd(t),t.flags|=1,rt(e,t,n,s),t.child)}function dp(e,t,n,r,s){if(ht(n)){var o=!0;Sa(t)}else o=!1;if(Cs(t,s),t.stateNode===null)sa(e,t),bg(t,n,r),Xc(t,n,r,s),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=Lt(c):(c=ht(n)?Br:Je.current,c=Ds(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==c)&&op(t,i,r,c),Qn=!1;var g=t.memoizedState;i.state=g,_a(t,r,i,s),l=t.memoizedState,a!==r||g!==l||pt.current||Qn?(typeof d=="function"&&(Yc(t,n,d,r),l=t.memoizedState),(a=Qn||sp(t,n,a,r,g,l,c))?(f||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=l),i.props=r,i.state=l,i.context=c,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,eg(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:qt(t.type,a),i.props=c,f=t.pendingProps,g=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=Lt(l):(l=ht(n)?Br:Je.current,l=Ds(t,l));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==f||g!==l)&&op(t,i,r,l),Qn=!1,g=t.memoizedState,i.state=g,_a(t,r,i,s);var w=t.memoizedState;a!==f||g!==w||pt.current||Qn?(typeof m=="function"&&(Yc(t,n,m,r),w=t.memoizedState),(c=Qn||sp(t,n,c,r,g,w,l)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,w,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,w,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),i.props=r,i.state=w,i.context=l,r=c):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return tu(e,t,n,r,o,s)}function tu(e,t,n,r,s,o){Ng(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return s&&Kf(t,n,!1),On(e,t,o);r=t.stateNode,g1.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Fs(t,e.child,null,o),t.child=Fs(t,null,a,o)):rt(e,t,a,o),t.memoizedState=r.state,s&&Kf(t,n,!0),t.child}function _g(e){var t=e.stateNode;t.pendingContext?Zf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Zf(e,t.context,!1),dd(e,t.containerInfo)}function fp(e,t,n,r,s){return zs(),od(s),t.flags|=256,rt(e,t,n,r),t.child}var nu={dehydrated:null,treeContext:null,retryLane:0};function ru(e){return{baseLanes:e,cachePool:null,transitions:null}}function jg(e,t,n){var r=t.pendingProps,s=Se.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),ge(Se,s&1),e===null)return Zc(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=cl(i,r,0,null),e=Vr(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ru(n),t.memoizedState=nu,e):xd(t,i));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return v1(e,t,i,r,a,s,n);if(o){o=r.fallback,i=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=hr(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?o=hr(a,o):(o=Vr(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?ru(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=nu,r}return o=e.child,e=o.sibling,r=hr(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 xd(e,t){return t=cl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vi(e,t,n,r){return r!==null&&od(r),Fs(t,e.child,null,n),e=xd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function v1(e,t,n,r,s,o,i){if(n)return t.flags&256?(t.flags&=-257,r=ic(Error(L(422))),Vi(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,s=t.mode,r=cl({mode:"visible",children:r.children},s,0,null),o=Vr(o,s,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Fs(t,e.child,null,i),t.child.memoizedState=ru(i),t.memoizedState=nu,o);if(!(t.mode&1))return Vi(e,t,i,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(L(419)),r=ic(o,r,void 0),Vi(e,t,i,r)}if(a=(i&e.childLanes)!==0,ft||a){if(r=Ue,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,An(e,s),Jt(r,e,s,-1))}return Ed(),r=ic(Error(L(421))),Vi(e,t,i,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=P1.bind(null,e),s._reactRetry=t,null):(e=o.treeContext,bt=ur(s.nextSibling),St=t,be=!0,Yt=null,e!==null&&(Pt[Rt++]=_n,Pt[Rt++]=jn,Pt[Rt++]=Ur,_n=e.id,jn=e.overflow,Ur=t),t=xd(t,r.children),t.flags|=4096,t)}function pp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Kc(e.return,t,n)}function ac(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 Tg(e,t,n){var r=t.pendingProps,s=r.revealOrder,o=r.tail;if(rt(e,t,r.children,n),r=Se.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&&pp(e,n,t);else if(e.tag===19)pp(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(ge(Se,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&&ja(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),ac(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&&ja(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}ac(t,!0,n,null,o);break;case"together":ac(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function sa(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function On(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(L(153));if(t.child!==null){for(e=t.child,n=hr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=hr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function y1(e,t,n){switch(t.tag){case 3:_g(t),zs();break;case 5:tg(t);break;case 1:ht(t.type)&&Sa(t);break;case 4:dd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;ge(Ea,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ge(Se,Se.current&1),t.flags|=128,null):n&t.child.childLanes?jg(e,t,n):(ge(Se,Se.current&1),e=On(e,t,n),e!==null?e.sibling:null);ge(Se,Se.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Tg(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ge(Se,Se.current),r)break;return null;case 22:case 23:return t.lanes=0,Eg(e,t,n)}return On(e,t,n)}var Pg,su,Rg,Ag;Pg=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}};su=function(){};Rg=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Or(mn.current);var o=null;switch(n){case"input":s=Nc(e,s),r=Nc(e,r),o=[];break;case"select":s=Ee({},s,{value:void 0}),r=Ee({},r,{value:void 0}),o=[];break;case"textarea":s=Tc(e,s),r=Tc(e,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=wa)}Rc(n,r);var i;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var a=s[c];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Lo.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(a=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Lo.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&xe("scroll",e),o||a===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};Ag=function(e,t,n,r){n!==r&&(t.flags|=4)};function po(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ke(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 x1(e,t,n){var r=t.pendingProps;switch(sd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return ht(t.type)&&ba(),Ke(t),null;case 3:return r=t.stateNode,$s(),we(pt),we(Je),pd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Fi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Yt!==null&&(fu(Yt),Yt=null))),su(e,t),Ke(t),null;case 5:fd(t);var s=Or(qo.current);if(n=t.type,e!==null&&t.stateNode!=null)Rg(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(L(166));return Ke(t),null}if(e=Or(mn.current),Fi(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[fn]=t,r[Ho]=o,e=(t.mode&1)!==0,n){case"dialog":xe("cancel",r),xe("close",r);break;case"iframe":case"object":case"embed":xe("load",r);break;case"video":case"audio":for(s=0;s<wo.length;s++)xe(wo[s],r);break;case"source":xe("error",r);break;case"img":case"image":case"link":xe("error",r),xe("load",r);break;case"details":xe("toggle",r);break;case"input":Sf(r,o),xe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},xe("invalid",r);break;case"textarea":Cf(r,o),xe("invalid",r)}Rc(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&&zi(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&zi(r.textContent,a,e),s=["children",""+a]):Lo.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&xe("scroll",r)}switch(n){case"input":Pi(r),kf(r,o,!0);break;case"textarea":Pi(r),Ef(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=wa)}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=im(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[fn]=t,e[Ho]=r,Pg(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ac(n,r),n){case"dialog":xe("cancel",e),xe("close",e),s=r;break;case"iframe":case"object":case"embed":xe("load",e),s=r;break;case"video":case"audio":for(s=0;s<wo.length;s++)xe(wo[s],e);s=r;break;case"source":xe("error",e),s=r;break;case"img":case"image":case"link":xe("error",e),xe("load",e),s=r;break;case"details":xe("toggle",e),s=r;break;case"input":Sf(e,r),s=Nc(e,r),xe("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Ee({},r,{value:void 0}),xe("invalid",e);break;case"textarea":Cf(e,r),s=Tc(e,r),xe("invalid",e);break;default:s=r}Rc(n,s),a=s;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?cm(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&am(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Io(e,l):typeof l=="number"&&Io(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Lo.hasOwnProperty(o)?l!=null&&o==="onScroll"&&xe("scroll",e):l!=null&&Uu(e,o,l,i))}switch(n){case"input":Pi(e),kf(e,r,!1);break;case"textarea":Pi(e),Ef(e);break;case"option":r.value!=null&&e.setAttribute("value",""+vr(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?ws(e,!!r.multiple,o,!1):r.defaultValue!=null&&ws(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=wa)}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 Ke(t),null;case 6:if(e&&t.stateNode!=null)Ag(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(L(166));if(n=Or(qo.current),Or(mn.current),Fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[fn]=t,(o=r.nodeValue!==n)&&(e=St,e!==null))switch(e.tag){case 3:zi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&zi(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[fn]=t,t.stateNode=r}return Ke(t),null;case 13:if(we(Se),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(be&&bt!==null&&t.mode&1&&!(t.flags&128))Km(),zs(),t.flags|=98560,o=!1;else if(o=Fi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(L(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(L(317));o[fn]=t}else zs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ke(t),o=!1}else Yt!==null&&(fu(Yt),Yt=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||Se.current&1?Fe===0&&(Fe=3):Ed())),t.updateQueue!==null&&(t.flags|=4),Ke(t),null);case 4:return $s(),su(e,t),e===null&&Bo(t.stateNode.containerInfo),Ke(t),null;case 10:return ld(t.type._context),Ke(t),null;case 17:return ht(t.type)&&ba(),Ke(t),null;case 19:if(we(Se),o=t.memoizedState,o===null)return Ke(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)po(o,!1);else{if(Fe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=ja(e),i!==null){for(t.flags|=128,po(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 ge(Se,Se.current&1|2),t.child}e=e.sibling}o.tail!==null&&Re()>Bs&&(t.flags|=128,r=!0,po(o,!1),t.lanes=4194304)}else{if(!r)if(e=ja(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),po(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!be)return Ke(t),null}else 2*Re()-o.renderingStartTime>Bs&&n!==1073741824&&(t.flags|=128,r=!0,po(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=Re(),t.sibling=null,n=Se.current,ge(Se,r?n&1|2:n&1),t):(Ke(t),null);case 22:case 23:return Cd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yt&1073741824&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function w1(e,t){switch(sd(t),t.tag){case 1:return ht(t.type)&&ba(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $s(),we(pt),we(Je),pd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return fd(t),null;case 13:if(we(Se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));zs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(Se),null;case 4:return $s(),null;case 10:return ld(t.type._context),null;case 22:case 23:return Cd(),null;case 24:return null;default:return null}}var Bi=!1,Xe=!1,b1=typeof WeakSet=="function"?WeakSet:Set,$=null;function ys(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function ou(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var hp=!1;function S1(e,t){if(Bc=va,e=Dm(),nd(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,l=-1,c=0,d=0,f=e,g=null;t:for(;;){for(var m;f!==n||s!==0&&f.nodeType!==3||(a=i+s),f!==o||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)g=f,f=m;for(;;){if(f===e)break t;if(g===n&&++c===s&&(a=i),g===o&&++d===r&&(l=i),(m=f.nextSibling)!==null)break;f=g,g=f.parentNode}f=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Uc={focusedElem:e,selectionRange:n},va=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,x=w.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?v:qt(t.type,v),x);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(S){Pe(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return w=hp,hp=!1,w}function To(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&&ou(t,n,o)}s=s.next}while(s!==r)}}function al(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 iu(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 Og(e){var t=e.alternate;t!==null&&(e.alternate=null,Og(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fn],delete t[Ho],delete t[qc],delete t[s1],delete t[o1])),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 Lg(e){return e.tag===5||e.tag===3||e.tag===4}function mp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Lg(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 au(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=wa));else if(r!==4&&(e=e.child,e!==null))for(au(e,t,n),e=e.sibling;e!==null;)au(e,t,n),e=e.sibling}function lu(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(lu(e,t,n),e=e.sibling;e!==null;)lu(e,t,n),e=e.sibling}var We=null,Kt=!1;function Un(e,t,n){for(n=n.child;n!==null;)Ig(e,t,n),n=n.sibling}function Ig(e,t,n){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(Ja,n)}catch{}switch(n.tag){case 5:Xe||ys(n,t);case 6:var r=We,s=Kt;We=null,Un(e,t,n),We=r,Kt=s,We!==null&&(Kt?(e=We,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):We.removeChild(n.stateNode));break;case 18:We!==null&&(Kt?(e=We,n=n.stateNode,e.nodeType===8?ec(e.parentNode,n):e.nodeType===1&&ec(e,n),Fo(e)):ec(We,n.stateNode));break;case 4:r=We,s=Kt,We=n.stateNode.containerInfo,Kt=!0,Un(e,t,n),We=r,Kt=s;break;case 0:case 11:case 14:case 15:if(!Xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var o=s,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&ou(n,t,i),s=s.next}while(s!==r)}Un(e,t,n);break;case 1:if(!Xe&&(ys(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Pe(n,t,a)}Un(e,t,n);break;case 21:Un(e,t,n);break;case 22:n.mode&1?(Xe=(r=Xe)||n.memoizedState!==null,Un(e,t,n),Xe=r):Un(e,t,n);break;default:Un(e,t,n)}}function gp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new b1),t.forEach(function(r){var s=R1.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Ht(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:We=a.stateNode,Kt=!1;break e;case 3:We=a.stateNode.containerInfo,Kt=!0;break e;case 4:We=a.stateNode.containerInfo,Kt=!0;break e}a=a.return}if(We===null)throw Error(L(160));Ig(o,i,s),We=null,Kt=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(c){Pe(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Mg(t,e),t=t.sibling}function Mg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ht(t,e),an(e),r&4){try{To(3,e,e.return),al(3,e)}catch(v){Pe(e,e.return,v)}try{To(5,e,e.return)}catch(v){Pe(e,e.return,v)}}break;case 1:Ht(t,e),an(e),r&512&&n!==null&&ys(n,n.return);break;case 5:if(Ht(t,e),an(e),r&512&&n!==null&&ys(n,n.return),e.flags&32){var s=e.stateNode;try{Io(s,"")}catch(v){Pe(e,e.return,v)}}if(r&4&&(s=e.stateNode,s!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&sm(s,o),Ac(a,i);var c=Ac(a,o);for(i=0;i<l.length;i+=2){var d=l[i],f=l[i+1];d==="style"?cm(s,f):d==="dangerouslySetInnerHTML"?am(s,f):d==="children"?Io(s,f):Uu(s,d,f,c)}switch(a){case"input":_c(s,o);break;case"textarea":om(s,o);break;case"select":var g=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m!=null?ws(s,!!o.multiple,m,!1):g!==!!o.multiple&&(o.defaultValue!=null?ws(s,!!o.multiple,o.defaultValue,!0):ws(s,!!o.multiple,o.multiple?[]:"",!1))}s[Ho]=o}catch(v){Pe(e,e.return,v)}}break;case 6:if(Ht(t,e),an(e),r&4){if(e.stateNode===null)throw Error(L(162));s=e.stateNode,o=e.memoizedProps;try{s.nodeValue=o}catch(v){Pe(e,e.return,v)}}break;case 3:if(Ht(t,e),an(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Fo(t.containerInfo)}catch(v){Pe(e,e.return,v)}break;case 4:Ht(t,e),an(e);break;case 13:Ht(t,e),an(e),s=e.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(Sd=Re())),r&4&&gp(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Xe=(c=Xe)||d,Ht(t,e),Xe=c):Ht(t,e),an(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for($=e,d=e.child;d!==null;){for(f=$=d;$!==null;){switch(g=$,m=g.child,g.tag){case 0:case 11:case 14:case 15:To(4,g,g.return);break;case 1:ys(g,g.return);var w=g.stateNode;if(typeof w.componentWillUnmount=="function"){r=g,n=g.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(v){Pe(r,n,v)}}break;case 5:ys(g,g.return);break;case 22:if(g.memoizedState!==null){yp(f);continue}}m!==null?(m.return=g,$=m):yp(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{s=f.stateNode,c?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=f.stateNode,l=f.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=lm("display",i))}catch(v){Pe(e,e.return,v)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(v){Pe(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ht(t,e),an(e),r&4&&gp(e);break;case 21:break;default:Ht(t,e),an(e)}}function an(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Lg(n)){var r=n;break e}n=n.return}throw Error(L(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Io(s,""),r.flags&=-33);var o=mp(e);lu(e,o,s);break;case 3:case 4:var i=r.stateNode.containerInfo,a=mp(e);au(e,a,i);break;default:throw Error(L(161))}}catch(l){Pe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function k1(e,t,n){$=e,Dg(e)}function Dg(e,t,n){for(var r=(e.mode&1)!==0;$!==null;){var s=$,o=s.child;if(s.tag===22&&r){var i=s.memoizedState!==null||Bi;if(!i){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Xe;a=Bi;var c=Xe;if(Bi=i,(Xe=l)&&!c)for($=s;$!==null;)i=$,l=i.child,i.tag===22&&i.memoizedState!==null?xp(s):l!==null?(l.return=i,$=l):xp(s);for(;o!==null;)$=o,Dg(o),o=o.sibling;$=s,Bi=a,Xe=c}vp(e)}else s.subtreeFlags&8772&&o!==null?(o.return=s,$=o):vp(e)}}function vp(e){for(;$!==null;){var t=$;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Xe||al(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Xe)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:qt(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&tp(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}tp(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Fo(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(L(163))}Xe||t.flags&512&&iu(t)}catch(g){Pe(t,t.return,g)}}if(t===e){$=null;break}if(n=t.sibling,n!==null){n.return=t.return,$=n;break}$=t.return}}function yp(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$=n;break}$=t.return}}function xp(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{al(4,t)}catch(l){Pe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){Pe(t,s,l)}}var o=t.return;try{iu(t)}catch(l){Pe(t,o,l)}break;case 5:var i=t.return;try{iu(t)}catch(l){Pe(t,i,l)}}}catch(l){Pe(t,t.return,l)}if(t===e){$=null;break}var a=t.sibling;if(a!==null){a.return=t.return,$=a;break}$=t.return}}var C1=Math.ceil,Ra=Dn.ReactCurrentDispatcher,wd=Dn.ReactCurrentOwner,Ot=Dn.ReactCurrentBatchConfig,ae=0,Ue=null,Le=null,qe=0,yt=0,xs=Er(0),Fe=0,Ko=null,Wr=0,ll=0,bd=0,Po=null,dt=null,Sd=0,Bs=1/0,Cn=null,Aa=!1,cu=null,fr=null,Ui=!1,sr=null,Oa=0,Ro=0,uu=null,oa=-1,ia=0;function it(){return ae&6?Re():oa!==-1?oa:oa=Re()}function pr(e){return e.mode&1?ae&2&&qe!==0?qe&-qe:a1.transition!==null?(ia===0&&(ia=bm()),ia):(e=pe,e!==0||(e=window.event,e=e===void 0?16:jm(e.type)),e):1}function Jt(e,t,n,r){if(50<Ro)throw Ro=0,uu=null,Error(L(185));fi(e,n,r),(!(ae&2)||e!==Ue)&&(e===Ue&&(!(ae&2)&&(ll|=n),Fe===4&&Yn(e,qe)),mt(e,r),n===1&&ae===0&&!(t.mode&1)&&(Bs=Re()+500,sl&&Nr()))}function mt(e,t){var n=e.callbackNode;a0(e,t);var r=ga(e,e===Ue?qe:0);if(r===0)n!==null&&jf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&jf(n),t===1)e.tag===0?i1(wp.bind(null,e)):Gm(wp.bind(null,e)),n1(function(){!(ae&6)&&Nr()}),n=null;else{switch(Sm(r)){case 1:n=Qu;break;case 4:n=xm;break;case 16:n=ma;break;case 536870912:n=wm;break;default:n=ma}n=Wg(n,zg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function zg(e,t){if(oa=-1,ia=0,ae&6)throw Error(L(327));var n=e.callbackNode;if(Es()&&e.callbackNode!==n)return null;var r=ga(e,e===Ue?qe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=La(e,r);else{t=r;var s=ae;ae|=2;var o=$g();(Ue!==e||qe!==t)&&(Cn=null,Bs=Re()+500,$r(e,t));do try{_1();break}catch(a){Fg(e,a)}while(!0);ad(),Ra.current=o,ae=s,Le!==null?t=0:(Ue=null,qe=0,t=Fe)}if(t!==0){if(t===2&&(s=Dc(e),s!==0&&(r=s,t=du(e,s))),t===1)throw n=Ko,$r(e,0),Yn(e,r),mt(e,Re()),n;if(t===6)Yn(e,r);else{if(s=e.current.alternate,!(r&30)&&!E1(s)&&(t=La(e,r),t===2&&(o=Dc(e),o!==0&&(r=o,t=du(e,o))),t===1))throw n=Ko,$r(e,0),Yn(e,r),mt(e,Re()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(L(345));case 2:Tr(e,dt,Cn);break;case 3:if(Yn(e,r),(r&130023424)===r&&(t=Sd+500-Re(),10<t)){if(ga(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){it(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Wc(Tr.bind(null,e,dt,Cn),t);break}Tr(e,dt,Cn);break;case 4:if(Yn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var i=31-Xt(r);o=1<<i,i=t[i],i>s&&(s=i),r&=~o}if(r=s,r=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*C1(r/1960))-r,10<r){e.timeoutHandle=Wc(Tr.bind(null,e,dt,Cn),r);break}Tr(e,dt,Cn);break;case 5:Tr(e,dt,Cn);break;default:throw Error(L(329))}}}return mt(e,Re()),e.callbackNode===n?zg.bind(null,e):null}function du(e,t){var n=Po;return e.current.memoizedState.isDehydrated&&($r(e,t).flags|=256),e=La(e,t),e!==2&&(t=dt,dt=n,t!==null&&fu(t)),e}function fu(e){dt===null?dt=e:dt.push.apply(dt,e)}function E1(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(!tn(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 Yn(e,t){for(t&=~bd,t&=~ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Xt(t),r=1<<n;e[n]=-1,t&=~r}}function wp(e){if(ae&6)throw Error(L(327));Es();var t=ga(e,0);if(!(t&1))return mt(e,Re()),null;var n=La(e,t);if(e.tag!==0&&n===2){var r=Dc(e);r!==0&&(t=r,n=du(e,r))}if(n===1)throw n=Ko,$r(e,0),Yn(e,t),mt(e,Re()),n;if(n===6)throw Error(L(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tr(e,dt,Cn),mt(e,Re()),null}function kd(e,t){var n=ae;ae|=1;try{return e(t)}finally{ae=n,ae===0&&(Bs=Re()+500,sl&&Nr())}}function qr(e){sr!==null&&sr.tag===0&&!(ae&6)&&Es();var t=ae;ae|=1;var n=Ot.transition,r=pe;try{if(Ot.transition=null,pe=1,e)return e()}finally{pe=r,Ot.transition=n,ae=t,!(ae&6)&&Nr()}}function Cd(){yt=xs.current,we(xs)}function $r(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,t1(n)),Le!==null)for(n=Le.return;n!==null;){var r=n;switch(sd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ba();break;case 3:$s(),we(pt),we(Je),pd();break;case 5:fd(r);break;case 4:$s();break;case 13:we(Se);break;case 19:we(Se);break;case 10:ld(r.type._context);break;case 22:case 23:Cd()}n=n.return}if(Ue=e,Le=e=hr(e.current,null),qe=yt=t,Fe=0,Ko=null,bd=ll=Wr=0,dt=Po=null,Ar!==null){for(t=0;t<Ar.length;t++)if(n=Ar[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}Ar=null}return e}function Fg(e,t){do{var n=Le;try{if(ad(),na.current=Pa,Ta){for(var r=Ce.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Ta=!1}if(Hr=0,Be=ze=Ce=null,jo=!1,Go=0,wd.current=null,n===null||n.return===null){Fe=1,Ko=t,Le=null;break}e:{var o=e,i=n.return,a=n,l=t;if(t=qe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var g=d.alternate;g?(d.updateQueue=g.updateQueue,d.memoizedState=g.memoizedState,d.lanes=g.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=ap(i);if(m!==null){m.flags&=-257,lp(m,i,a,o,t),m.mode&1&&ip(o,c,t),t=m,l=c;var w=t.updateQueue;if(w===null){var v=new Set;v.add(l),t.updateQueue=v}else w.add(l);break e}else{if(!(t&1)){ip(o,c,t),Ed();break e}l=Error(L(426))}}else if(be&&a.mode&1){var x=ap(i);if(x!==null){!(x.flags&65536)&&(x.flags|=256),lp(x,i,a,o,t),od(Vs(l,a));break e}}o=l=Vs(l,a),Fe!==4&&(Fe=2),Po===null?Po=[o]:Po.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var p=Sg(o,l,t);ep(o,p);break e;case 1:a=l;var h=o.type,y=o.stateNode;if(!(o.flags&128)&&(typeof h.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(fr===null||!fr.has(y)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=kg(o,a,t);ep(o,S);break e}}o=o.return}while(o!==null)}Bg(n)}catch(k){t=k,Le===n&&n!==null&&(Le=n=n.return);continue}break}while(!0)}function $g(){var e=Ra.current;return Ra.current=Pa,e===null?Pa:e}function Ed(){(Fe===0||Fe===3||Fe===2)&&(Fe=4),Ue===null||!(Wr&268435455)&&!(ll&268435455)||Yn(Ue,qe)}function La(e,t){var n=ae;ae|=2;var r=$g();(Ue!==e||qe!==t)&&(Cn=null,$r(e,t));do try{N1();break}catch(s){Fg(e,s)}while(!0);if(ad(),ae=n,Ra.current=r,Le!==null)throw Error(L(261));return Ue=null,qe=0,Fe}function N1(){for(;Le!==null;)Vg(Le)}function _1(){for(;Le!==null&&!Xx();)Vg(Le)}function Vg(e){var t=Hg(e.alternate,e,yt);e.memoizedProps=e.pendingProps,t===null?Bg(e):Le=t,wd.current=null}function Bg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=w1(n,t),n!==null){n.flags&=32767,Le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Fe=6,Le=null;return}}else if(n=x1(n,t,yt),n!==null){Le=n;return}if(t=t.sibling,t!==null){Le=t;return}Le=t=e}while(t!==null);Fe===0&&(Fe=5)}function Tr(e,t,n){var r=pe,s=Ot.transition;try{Ot.transition=null,pe=1,j1(e,t,n,r)}finally{Ot.transition=s,pe=r}return null}function j1(e,t,n,r){do Es();while(sr!==null);if(ae&6)throw Error(L(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(L(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(l0(e,o),e===Ue&&(Le=Ue=null,qe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ui||(Ui=!0,Wg(ma,function(){return Es(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Ot.transition,Ot.transition=null;var i=pe;pe=1;var a=ae;ae|=4,wd.current=null,S1(e,n),Mg(n,e),Q0(Uc),va=!!Bc,Uc=Bc=null,e.current=n,k1(n),Jx(),ae=a,pe=i,Ot.transition=o}else e.current=n;if(Ui&&(Ui=!1,sr=e,Oa=s),o=e.pendingLanes,o===0&&(fr=null),n0(n.stateNode),mt(e,Re()),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(Aa)throw Aa=!1,e=cu,cu=null,e;return Oa&1&&e.tag!==0&&Es(),o=e.pendingLanes,o&1?e===uu?Ro++:(Ro=0,uu=e):Ro=0,Nr(),null}function Es(){if(sr!==null){var e=Sm(Oa),t=Ot.transition,n=pe;try{if(Ot.transition=null,pe=16>e?16:e,sr===null)var r=!1;else{if(e=sr,sr=null,Oa=0,ae&6)throw Error(L(331));var s=ae;for(ae|=4,$=e.current;$!==null;){var o=$,i=o.child;if($.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for($=c;$!==null;){var d=$;switch(d.tag){case 0:case 11:case 15:To(8,d,o)}var f=d.child;if(f!==null)f.return=d,$=f;else for(;$!==null;){d=$;var g=d.sibling,m=d.return;if(Og(d),d===c){$=null;break}if(g!==null){g.return=m,$=g;break}$=m}}}var w=o.alternate;if(w!==null){var v=w.child;if(v!==null){w.child=null;do{var x=v.sibling;v.sibling=null,v=x}while(v!==null)}}$=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,$=i;else e:for(;$!==null;){if(o=$,o.flags&2048)switch(o.tag){case 0:case 11:case 15:To(9,o,o.return)}var p=o.sibling;if(p!==null){p.return=o.return,$=p;break e}$=o.return}}var h=e.current;for($=h;$!==null;){i=$;var y=i.child;if(i.subtreeFlags&2064&&y!==null)y.return=i,$=y;else e:for(i=h;$!==null;){if(a=$,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:al(9,a)}}catch(k){Pe(a,a.return,k)}if(a===i){$=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,$=S;break e}$=a.return}}if(ae=s,Nr(),hn&&typeof hn.onPostCommitFiberRoot=="function")try{hn.onPostCommitFiberRoot(Ja,e)}catch{}r=!0}return r}finally{pe=n,Ot.transition=t}}return!1}function bp(e,t,n){t=Vs(n,t),t=Sg(e,t,1),e=dr(e,t,1),t=it(),e!==null&&(fi(e,1,t),mt(e,t))}function Pe(e,t,n){if(e.tag===3)bp(e,e,n);else for(;t!==null;){if(t.tag===3){bp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(fr===null||!fr.has(r))){e=Vs(n,e),e=kg(t,e,1),t=dr(t,e,1),e=it(),t!==null&&(fi(t,1,e),mt(t,e));break}}t=t.return}}function T1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=it(),e.pingedLanes|=e.suspendedLanes&n,Ue===e&&(qe&n)===n&&(Fe===4||Fe===3&&(qe&130023424)===qe&&500>Re()-Sd?$r(e,0):bd|=n),mt(e,t)}function Ug(e,t){t===0&&(e.mode&1?(t=Oi,Oi<<=1,!(Oi&130023424)&&(Oi=4194304)):t=1);var n=it();e=An(e,t),e!==null&&(fi(e,t,n),mt(e,n))}function P1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ug(e,n)}function R1(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(L(314))}r!==null&&r.delete(t),Ug(e,n)}var Hg;Hg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pt.current)ft=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ft=!1,y1(e,t,n);ft=!!(e.flags&131072)}else ft=!1,be&&t.flags&1048576&&Qm(t,Ca,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;sa(e,t),e=t.pendingProps;var s=Ds(t,Je.current);Cs(t,n),s=md(null,t,r,e,s,n);var o=gd();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,ht(r)?(o=!0,Sa(t)):o=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,ud(t),s.updater=il,t.stateNode=s,s._reactInternals=t,Xc(t,r,e,n),t=tu(null,t,r,!0,o,n)):(t.tag=0,be&&o&&rd(t),rt(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(sa(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=O1(r),e=qt(r,e),s){case 0:t=eu(null,t,r,e,n);break e;case 1:t=dp(null,t,r,e,n);break e;case 11:t=cp(null,t,r,e,n);break e;case 14:t=up(null,t,r,qt(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:qt(r,s),eu(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:qt(r,s),dp(e,t,r,s,n);case 3:e:{if(_g(t),e===null)throw Error(L(387));r=t.pendingProps,o=t.memoizedState,s=o.element,eg(e,t),_a(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=Vs(Error(L(423)),t),t=fp(e,t,r,n,s);break e}else if(r!==s){s=Vs(Error(L(424)),t),t=fp(e,t,r,n,s);break e}else for(bt=ur(t.stateNode.containerInfo.firstChild),St=t,be=!0,Yt=null,n=Xm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zs(),r===s){t=On(e,t,n);break e}rt(e,t,r,n)}t=t.child}return t;case 5:return tg(t),e===null&&Zc(t),r=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,Hc(r,s)?i=null:o!==null&&Hc(r,o)&&(t.flags|=32),Ng(e,t),rt(e,t,i,n),t.child;case 6:return e===null&&Zc(t),null;case 13:return jg(e,t,n);case 4:return dd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fs(t,null,r,n):rt(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:qt(r,s),cp(e,t,r,s,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,o=t.memoizedProps,i=s.value,ge(Ea,r._currentValue),r._currentValue=i,o!==null)if(tn(o.value,i)){if(o.children===s.children&&!pt.current){t=On(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 l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Tn(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Kc(o.return,n,t),a.lanes|=n;break}l=l.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(L(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Kc(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}rt(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Cs(t,n),s=Lt(s),r=r(s),t.flags|=1,rt(e,t,r,n),t.child;case 14:return r=t.type,s=qt(r,t.pendingProps),s=qt(r.type,s),up(e,t,r,s,n);case 15:return Cg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:qt(r,s),sa(e,t),t.tag=1,ht(r)?(e=!0,Sa(t)):e=!1,Cs(t,n),bg(t,r,s),Xc(t,r,s,n),tu(null,t,r,!0,e,n);case 19:return Tg(e,t,n);case 22:return Eg(e,t,n)}throw Error(L(156,t.tag))};function Wg(e,t){return ym(e,t)}function A1(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,n,r){return new A1(e,t,n,r)}function Nd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function O1(e){if(typeof e=="function")return Nd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wu)return 11;if(e===qu)return 14}return 2}function hr(e,t){var n=e.alternate;return n===null?(n=At(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function aa(e,t,n,r,s,o){var i=2;if(r=e,typeof e=="function")Nd(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case cs:return Vr(n.children,s,o,t);case Hu:i=8,s|=8;break;case Sc:return e=At(12,n,t,s|2),e.elementType=Sc,e.lanes=o,e;case kc:return e=At(13,n,t,s),e.elementType=kc,e.lanes=o,e;case Cc:return e=At(19,n,t,s),e.elementType=Cc,e.lanes=o,e;case tm:return cl(n,s,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Jh:i=10;break e;case em:i=9;break e;case Wu:i=11;break e;case qu:i=14;break e;case Gn:i=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=At(i,n,t,s),t.elementType=e,t.type=r,t.lanes=o,t}function Vr(e,t,n,r){return e=At(7,e,r,t),e.lanes=n,e}function cl(e,t,n,r){return e=At(22,e,r,t),e.elementType=tm,e.lanes=n,e.stateNode={isHidden:!1},e}function lc(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function cc(e,t,n){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function L1(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=Ul(0),this.expirationTimes=Ul(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ul(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function _d(e,t,n,r,s,o,i,a,l){return e=new L1(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=At(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ud(o),e}function I1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ls,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function qg(e){if(!e)return yr;e=e._reactInternals;e:{if(Xr(e)!==e||e.tag!==1)throw Error(L(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ht(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(L(171))}if(e.tag===1){var n=e.type;if(ht(n))return qm(e,n,t)}return t}function Gg(e,t,n,r,s,o,i,a,l){return e=_d(n,r,!0,e,s,o,i,a,l),e.context=qg(null),n=e.current,r=it(),s=pr(n),o=Tn(r,s),o.callback=t??null,dr(n,o,s),e.current.lanes=s,fi(e,s,r),mt(e,r),e}function ul(e,t,n,r){var s=t.current,o=it(),i=pr(s);return n=qg(n),t.context===null?t.context=n:t.pendingContext=n,t=Tn(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=dr(s,t,i),e!==null&&(Jt(e,s,i,o),ta(e,s,i)),i}function Ia(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 Sp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function jd(e,t){Sp(e,t),(e=e.alternate)&&Sp(e,t)}function M1(){return null}var Qg=typeof reportError=="function"?reportError:function(e){console.error(e)};function Td(e){this._internalRoot=e}dl.prototype.render=Td.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(L(409));ul(e,t,null,null)};dl.prototype.unmount=Td.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qr(function(){ul(null,e,null,null)}),t[Rn]=null}};function dl(e){this._internalRoot=e}dl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Em();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Kn.length&&t!==0&&t<Kn[n].priority;n++);Kn.splice(n,0,e),n===0&&_m(e)}};function Pd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function fl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function kp(){}function D1(e,t,n,r,s){if(s){if(typeof r=="function"){var o=r;r=function(){var c=Ia(i);o.call(c)}}var i=Gg(t,r,e,0,null,!1,!1,"",kp);return e._reactRootContainer=i,e[Rn]=i.current,Bo(e.nodeType===8?e.parentNode:e),qr(),i}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var c=Ia(l);a.call(c)}}var l=_d(e,0,!1,null,null,!1,!1,"",kp);return e._reactRootContainer=l,e[Rn]=l.current,Bo(e.nodeType===8?e.parentNode:e),qr(function(){ul(t,l,n,r)}),l}function pl(e,t,n,r,s){var o=n._reactRootContainer;if(o){var i=o;if(typeof s=="function"){var a=s;s=function(){var l=Ia(i);a.call(l)}}ul(t,i,e,s)}else i=D1(n,t,e,s,r);return Ia(i)}km=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=xo(t.pendingLanes);n!==0&&(Zu(t,n|1),mt(t,Re()),!(ae&6)&&(Bs=Re()+500,Nr()))}break;case 13:qr(function(){var r=An(e,1);if(r!==null){var s=it();Jt(r,e,1,s)}}),jd(e,1)}};Ku=function(e){if(e.tag===13){var t=An(e,134217728);if(t!==null){var n=it();Jt(t,e,134217728,n)}jd(e,134217728)}};Cm=function(e){if(e.tag===13){var t=pr(e),n=An(e,t);if(n!==null){var r=it();Jt(n,e,t,r)}jd(e,t)}};Em=function(){return pe};Nm=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}};Lc=function(e,t,n){switch(t){case"input":if(_c(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=rl(r);if(!s)throw Error(L(90));rm(r),_c(r,s)}}}break;case"textarea":om(e,n);break;case"select":t=n.value,t!=null&&ws(e,!!n.multiple,t,!1)}};fm=kd;pm=qr;var z1={usingClientEntryPoint:!1,Events:[hi,ps,rl,um,dm,kd]},ho={findFiberByHostInstance:Rr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},F1={bundleType:ho.bundleType,version:ho.version,rendererPackageName:ho.rendererPackageName,rendererConfig:ho.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Dn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=gm(e),e===null?null:e.stateNode},findFiberByHostInstance:ho.findFiberByHostInstance||M1,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 Hi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hi.isDisabled&&Hi.supportsFiber)try{Ja=Hi.inject(F1),hn=Hi}catch{}}_t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z1;_t.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Pd(t))throw Error(L(200));return I1(e,t,null,n)};_t.createRoot=function(e,t){if(!Pd(e))throw Error(L(299));var n=!1,r="",s=Qg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=_d(e,1,!1,null,null,n,!1,r,s),e[Rn]=t.current,Bo(e.nodeType===8?e.parentNode:e),new Td(t)};_t.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(L(188)):(e=Object.keys(e).join(","),Error(L(268,e)));return e=gm(t),e=e===null?null:e.stateNode,e};_t.flushSync=function(e){return qr(e)};_t.hydrate=function(e,t,n){if(!fl(t))throw Error(L(200));return pl(null,e,t,!0,n)};_t.hydrateRoot=function(e,t,n){if(!Pd(e))throw Error(L(405));var r=n!=null&&n.hydratedSources||null,s=!1,o="",i=Qg;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Gg(t,null,e,1,n??null,s,!1,o,i),e[Rn]=t.current,Bo(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 dl(t)};_t.render=function(e,t,n){if(!fl(t))throw Error(L(200));return pl(null,e,t,!1,n)};_t.unmountComponentAtNode=function(e){if(!fl(e))throw Error(L(40));return e._reactRootContainer?(qr(function(){pl(null,null,e,!1,function(){e._reactRootContainer=null,e[Rn]=null})}),!0):!1};_t.unstable_batchedUpdates=kd;_t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!fl(n))throw Error(L(200));if(e==null||e._reactInternals===void 0)throw Error(L(38));return pl(e,t,n,!1,r)};_t.version="18.3.1-next-f1338f8080-20240426";function Zg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Zg)}catch(e){console.error(e)}}Zg(),Zh.exports=_t;var gi=Zh.exports;const Kg=Dh(gi);var Yg,Cp=gi;Yg=Cp.createRoot,Cp.hydrateRoot;const $1=1,V1=1e6;let uc=0;function B1(){return uc=(uc+1)%Number.MAX_SAFE_INTEGER,uc.toString()}const dc=new Map,Ep=e=>{if(dc.has(e))return;const t=setTimeout(()=>{dc.delete(e),Ao({type:"REMOVE_TOAST",toastId:e})},V1);dc.set(e,t)},U1=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,$1)};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?Ep(n):e.toasts.forEach(r=>{Ep(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)}}},la=[];let ca={toasts:[]};function Ao(e){ca=U1(ca,e),la.forEach(t=>{t(ca)})}function H1({...e}){const t=B1(),n=s=>Ao({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>Ao({type:"DISMISS_TOAST",toastId:t});return Ao({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function W1(){const[e,t]=b.useState(ca);return b.useEffect(()=>(la.push(t),()=>{const n=la.indexOf(t);n>-1&&la.splice(n,1)}),[e]),{...e,toast:H1,dismiss:n=>Ao({type:"DISMISS_TOAST",toastId:n})}}function Ae(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 Np(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Xg(...e){return t=>{let n=!1;const r=e.map(s=>{const o=Np(s,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let s=0;s<r.length;s++){const o=r[s];typeof o=="function"?o():Np(e[s],null)}}}}function Et(...e){return b.useCallback(Xg(...e),e)}function Xs(e,t=[]){let n=[];function r(o,i){const a=b.createContext(i),l=n.length;n=[...n,i];const c=f=>{var p;const{scope:g,children:m,...w}=f,v=((p=g==null?void 0:g[e])==null?void 0:p[l])||a,x=b.useMemo(()=>w,Object.values(w));return u.jsx(v.Provider,{value:x,children:m})};c.displayName=o+"Provider";function d(f,g){var v;const m=((v=g==null?void 0:g[e])==null?void 0:v[l])||a,w=b.useContext(m);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[c,d]}const s=()=>{const o=n.map(i=>b.createContext(i));return function(a){const l=(a==null?void 0:a[e])||o;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,q1(s,...t)]}function q1(...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:l,scopeName:c})=>{const f=l(o)[`__scope${c}`];return{...a,...f}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Ma(e){const t=Q1(e),n=b.forwardRef((r,s)=>{const{children:o,...i}=r,a=b.Children.toArray(o),l=a.find(K1);if(l){const c=l.props.children,d=a.map(f=>f===l?b.Children.count(c)>1?b.Children.only(null):b.isValidElement(c)?c.props.children:null:f);return u.jsx(t,{...i,ref:s,children:b.isValidElement(c)?b.cloneElement(c,void 0,d):null})}return u.jsx(t,{...i,ref:s,children:o})});return n.displayName=`${e}.Slot`,n}var G1=Ma("Slot");function Q1(e){const t=b.forwardRef((n,r)=>{const{children:s,...o}=n;if(b.isValidElement(s)){const i=X1(s),a=Y1(o,s.props);return s.type!==b.Fragment&&(a.ref=r?Xg(r,i):i),b.cloneElement(s,a)}return b.Children.count(s)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Jg=Symbol("radix.slottable");function Z1(e){const t=({children:n})=>u.jsx(u.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Jg,t}function K1(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Jg}function Y1(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)=>{const l=o(...a);return s(...a),l}:s&&(n[r]=s):r==="style"?n[r]={...s,...o}:r==="className"&&(n[r]=[s,o].filter(Boolean).join(" "))}return{...e,...n}}function X1(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 ev(e){const t=e+"CollectionProvider",[n,r]=Xs(t),[s,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:x,children:p}=v,h=O.useRef(null),y=O.useRef(new Map).current;return u.jsx(s,{scope:x,itemMap:y,collectionRef:h,children:p})};i.displayName=t;const a=e+"CollectionSlot",l=Ma(a),c=O.forwardRef((v,x)=>{const{scope:p,children:h}=v,y=o(a,p),S=Et(x,y.collectionRef);return u.jsx(l,{ref:S,children:h})});c.displayName=a;const d=e+"CollectionItemSlot",f="data-radix-collection-item",g=Ma(d),m=O.forwardRef((v,x)=>{const{scope:p,children:h,...y}=v,S=O.useRef(null),k=Et(x,S),C=o(d,p);return O.useEffect(()=>(C.itemMap.set(S,{ref:S,...y}),()=>void C.itemMap.delete(S))),u.jsx(g,{[f]:"",ref:k,children:h})});m.displayName=d;function w(v){const x=o(e+"CollectionConsumer",v);return O.useCallback(()=>{const h=x.collectionRef.current;if(!h)return[];const y=Array.from(h.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((C,E)=>y.indexOf(C.ref.current)-y.indexOf(E.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:c,ItemSlot:m},w,r]}var J1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$e=J1.reduce((e,t)=>{const n=Ma(`Primitive.${t}`),r=b.forwardRef((s,o)=>{const{asChild:i,...a}=s,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function tv(e,t){e&&gi.flushSync(()=>e.dispatchEvent(t))}function xr(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function ew(e,t=globalThis==null?void 0:globalThis.document){const n=xr(e);b.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 tw="DismissableLayer",pu="dismissableLayer.update",nw="dismissableLayer.pointerDownOutside",rw="dismissableLayer.focusOutside",_p,nv=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Rd=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:i,onDismiss:a,...l}=e,c=b.useContext(nv),[d,f]=b.useState(null),g=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=b.useState({}),w=Et(t,E=>f(E)),v=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),p=v.indexOf(x),h=d?v.indexOf(d):-1,y=c.layersWithOutsidePointerEventsDisabled.size>0,S=h>=p,k=ow(E=>{const N=E.target,P=[...c.branches].some(R=>R.contains(N));!S||P||(s==null||s(E),i==null||i(E),E.defaultPrevented||a==null||a())},g),C=iw(E=>{const N=E.target;[...c.branches].some(R=>R.contains(N))||(o==null||o(E),i==null||i(E),E.defaultPrevented||a==null||a())},g);return ew(E=>{h===c.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},g),b.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(_p=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),jp(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=_p)}},[d,g,n,c]),b.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),jp())},[d,c]),b.useEffect(()=>{const E=()=>m({});return document.addEventListener(pu,E),()=>document.removeEventListener(pu,E)},[]),u.jsx($e.div,{...l,ref:w,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:Ae(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Ae(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Ae(e.onPointerDownCapture,k.onPointerDownCapture)})});Rd.displayName=tw;var sw="DismissableLayerBranch",rv=b.forwardRef((e,t)=>{const n=b.useContext(nv),r=b.useRef(null),s=Et(t,r);return b.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),u.jsx($e.div,{...e,ref:s})});rv.displayName=sw;function ow(e,t=globalThis==null?void 0:globalThis.document){const n=xr(e),r=b.useRef(!1),s=b.useRef(()=>{});return b.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let l=function(){sv(nw,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}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 iw(e,t=globalThis==null?void 0:globalThis.document){const n=xr(e),r=b.useRef(!1);return b.useEffect(()=>{const s=o=>{o.target&&!r.current&&sv(rw,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 jp(){const e=new CustomEvent(pu);document.dispatchEvent(e)}function sv(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?tv(s,o):s.dispatchEvent(o)}var aw=Rd,lw=rv,yn=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},cw="Portal",ov=b.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,o]=b.useState(!1);yn(()=>o(!0),[]);const i=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Kg.createPortal(u.jsx($e.div,{...r,ref:t}),i):null});ov.displayName=cw;function uw(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var hl=e=>{const{present:t,children:n}=e,r=dw(t),s=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),o=Et(r.ref,fw(s));return typeof n=="function"||r.isPresent?b.cloneElement(s,{ref:o}):null};hl.displayName="Presence";function dw(e){const[t,n]=b.useState(),r=b.useRef(null),s=b.useRef(e),o=b.useRef("none"),i=e?"mounted":"unmounted",[a,l]=uw(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const c=Wi(r.current);o.current=a==="mounted"?c:"none"},[a]),yn(()=>{const c=r.current,d=s.current;if(d!==e){const g=o.current,m=Wi(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&g!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),yn(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,f=m=>{const v=Wi(r.current).includes(m.animationName);if(m.target===t&&v&&(l("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},g=m=>{m.target===t&&(o.current=Wi(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:b.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Wi(e){return(e==null?void 0:e.animationName)||"none"}function fw(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)}var pw=$u[" useInsertionEffect ".trim().toString()]||yn;function ml({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,o,i]=hw({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:s;{const d=b.useRef(e!==void 0);b.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const c=b.useCallback(d=>{var f;if(a){const g=mw(d)?d(e):d;g!==e&&((f=i.current)==null||f.call(i,g))}else o(d)},[a,e,o,i]);return[l,c]}function hw({defaultProp:e,onChange:t}){const[n,r]=b.useState(e),s=b.useRef(n),o=b.useRef(t);return pw(()=>{o.current=t},[t]),b.useEffect(()=>{var i;s.current!==n&&((i=o.current)==null||i.call(o,n),s.current=n)},[n,s]),[n,r,o]}function mw(e){return typeof e=="function"}var gw=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),vw="VisuallyHidden",gl=b.forwardRef((e,t)=>u.jsx($e.span,{...e,ref:t,style:{...gw,...e.style}}));gl.displayName=vw;var yw=gl,Ad="ToastProvider",[Od,xw,ww]=ev("Toast"),[iv,q_]=Xs("Toast",[ww]),[bw,vl]=iv(Ad),av=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:i}=e,[a,l]=b.useState(null),[c,d]=b.useState(0),f=b.useRef(!1),g=b.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Ad}\`. Expected non-empty \`string\`.`),u.jsx(Od.Provider,{scope:t,children:u.jsx(bw,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:o,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:b.useCallback(()=>d(m=>m+1),[]),onToastRemove:b.useCallback(()=>d(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:g,children:i})})};av.displayName=Ad;var lv="ToastViewport",Sw=["F8"],hu="toast.viewportPause",mu="toast.viewportResume",cv=b.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Sw,label:s="Notifications ({hotkey})",...o}=e,i=vl(lv,n),a=xw(n),l=b.useRef(null),c=b.useRef(null),d=b.useRef(null),f=b.useRef(null),g=Et(t,f,i.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=i.toastCount>0;b.useEffect(()=>{const x=p=>{var y;r.length!==0&&r.every(S=>p[S]||p.code===S)&&((y=f.current)==null||y.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),b.useEffect(()=>{const x=l.current,p=f.current;if(w&&x&&p){const h=()=>{if(!i.isClosePausedRef.current){const C=new CustomEvent(hu);p.dispatchEvent(C),i.isClosePausedRef.current=!0}},y=()=>{if(i.isClosePausedRef.current){const C=new CustomEvent(mu);p.dispatchEvent(C),i.isClosePausedRef.current=!1}},S=C=>{!x.contains(C.relatedTarget)&&y()},k=()=>{x.contains(document.activeElement)||y()};return x.addEventListener("focusin",h),x.addEventListener("focusout",S),x.addEventListener("pointermove",h),x.addEventListener("pointerleave",k),window.addEventListener("blur",h),window.addEventListener("focus",y),()=>{x.removeEventListener("focusin",h),x.removeEventListener("focusout",S),x.removeEventListener("pointermove",h),x.removeEventListener("pointerleave",k),window.removeEventListener("blur",h),window.removeEventListener("focus",y)}}},[w,i.isClosePausedRef]);const v=b.useCallback(({tabbingDirection:x})=>{const h=a().map(y=>{const S=y.ref.current,k=[S,...Iw(S)];return x==="forwards"?k:k.reverse()});return(x==="forwards"?h.reverse():h).flat()},[a]);return b.useEffect(()=>{const x=f.current;if(x){const p=h=>{var k,C,E;const y=h.altKey||h.ctrlKey||h.metaKey;if(h.key==="Tab"&&!y){const N=document.activeElement,P=h.shiftKey;if(h.target===x&&P){(k=c.current)==null||k.focus();return}const M=v({tabbingDirection:P?"backwards":"forwards"}),Z=M.findIndex(A=>A===N);fc(M.slice(Z+1))?h.preventDefault():P?(C=c.current)==null||C.focus():(E=d.current)==null||E.focus()}};return x.addEventListener("keydown",p),()=>x.removeEventListener("keydown",p)}},[a,v]),u.jsxs(lw,{ref:l,role:"region","aria-label":s.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&u.jsx(gu,{ref:c,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"forwards"});fc(x)}}),u.jsx(Od.Slot,{scope:n,children:u.jsx($e.ol,{tabIndex:-1,...o,ref:g})}),w&&u.jsx(gu,{ref:d,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"backwards"});fc(x)}})]})});cv.displayName=lv;var uv="ToastFocusProxy",gu=b.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,o=vl(uv,n);return u.jsx(gl,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:i=>{var c;const a=i.relatedTarget;!((c=o.viewport)!=null&&c.contains(a))&&r()}})});gu.displayName=uv;var vi="Toast",kw="toast.swipeStart",Cw="toast.swipeMove",Ew="toast.swipeCancel",Nw="toast.swipeEnd",dv=b.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:o,...i}=e,[a,l]=ml({prop:r,defaultProp:s??!0,onChange:o,caller:vi});return u.jsx(hl,{present:n||a,children:u.jsx(Tw,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:xr(e.onPause),onResume:xr(e.onResume),onSwipeStart:Ae(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ae(e.onSwipeMove,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Ae(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ae(e.onSwipeEnd,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});dv.displayName=vi;var[_w,jw]=iv(vi,{onClose(){}}),Tw=b.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:o,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:g,onSwipeEnd:m,...w}=e,v=vl(vi,n),[x,p]=b.useState(null),h=Et(t,A=>p(A)),y=b.useRef(null),S=b.useRef(null),k=s||v.duration,C=b.useRef(0),E=b.useRef(k),N=b.useRef(0),{onToastAdd:P,onToastRemove:R}=v,z=xr(()=>{var Q;(x==null?void 0:x.contains(document.activeElement))&&((Q=v.viewport)==null||Q.focus()),i()}),M=b.useCallback(A=>{!A||A===1/0||(window.clearTimeout(N.current),C.current=new Date().getTime(),N.current=window.setTimeout(z,A))},[z]);b.useEffect(()=>{const A=v.viewport;if(A){const Q=()=>{M(E.current),c==null||c()},W=()=>{const q=new Date().getTime()-C.current;E.current=E.current-q,window.clearTimeout(N.current),l==null||l()};return A.addEventListener(hu,W),A.addEventListener(mu,Q),()=>{A.removeEventListener(hu,W),A.removeEventListener(mu,Q)}}},[v.viewport,k,l,c,M]),b.useEffect(()=>{o&&!v.isClosePausedRef.current&&M(k)},[o,k,v.isClosePausedRef,M]),b.useEffect(()=>(P(),()=>R()),[P,R]);const Z=b.useMemo(()=>x?yv(x):null,[x]);return v.viewport?u.jsxs(u.Fragment,{children:[Z&&u.jsx(Pw,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Z}),u.jsx(_w,{scope:n,onClose:z,children:gi.createPortal(u.jsx(Od.ItemSlot,{scope:n,children:u.jsx(aw,{asChild:!0,onEscapeKeyDown:Ae(a,()=>{v.isFocusedToastEscapeKeyDownRef.current||z(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx($e.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":v.swipeDirection,...w,ref:h,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ae(e.onKeyDown,A=>{A.key==="Escape"&&(a==null||a(A.nativeEvent),A.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,z()))}),onPointerDown:Ae(e.onPointerDown,A=>{A.button===0&&(y.current={x:A.clientX,y:A.clientY})}),onPointerMove:Ae(e.onPointerMove,A=>{if(!y.current)return;const Q=A.clientX-y.current.x,W=A.clientY-y.current.y,q=!!S.current,_=["left","right"].includes(v.swipeDirection),j=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,D=_?j(0,Q):0,G=_?0:j(0,W),B=A.pointerType==="touch"?10:2,K={x:D,y:G},Y={originalEvent:A,delta:K};q?(S.current=K,qi(Cw,f,Y,{discrete:!1})):Tp(K,v.swipeDirection,B)?(S.current=K,qi(kw,d,Y,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(Q)>B||Math.abs(W)>B)&&(y.current=null)}),onPointerUp:Ae(e.onPointerUp,A=>{const Q=S.current,W=A.target;if(W.hasPointerCapture(A.pointerId)&&W.releasePointerCapture(A.pointerId),S.current=null,y.current=null,Q){const q=A.currentTarget,_={originalEvent:A,delta:Q};Tp(Q,v.swipeDirection,v.swipeThreshold)?qi(Nw,m,_,{discrete:!0}):qi(Ew,g,_,{discrete:!0}),q.addEventListener("click",j=>j.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),Pw=e=>{const{__scopeToast:t,children:n,...r}=e,s=vl(vi,t),[o,i]=b.useState(!1),[a,l]=b.useState(!1);return Ow(()=>i(!0)),b.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:u.jsx(ov,{asChild:!0,children:u.jsx(gl,{...r,children:o&&u.jsxs(u.Fragment,{children:[s.label," ",n]})})})},Rw="ToastTitle",fv=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx($e.div,{...r,ref:t})});fv.displayName=Rw;var Aw="ToastDescription",pv=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx($e.div,{...r,ref:t})});pv.displayName=Aw;var hv="ToastAction",mv=b.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?u.jsx(vv,{altText:n,asChild:!0,children:u.jsx(Ld,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${hv}\`. Expected non-empty \`string\`.`),null)});mv.displayName=hv;var gv="ToastClose",Ld=b.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=jw(gv,n);return u.jsx(vv,{asChild:!0,children:u.jsx($e.button,{type:"button",...r,ref:t,onClick:Ae(e.onClick,s.onClose)})})});Ld.displayName=gv;var vv=b.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return u.jsx($e.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function yv(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Lw(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(...yv(r))}}),t}function qi(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?tv(s,o):s.dispatchEvent(o)}var Tp=(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 Ow(e=()=>{}){const t=xr(e);yn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Lw(e){return e.nodeType===e.ELEMENT_NODE}function Iw(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 fc(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Mw=av,xv=cv,wv=dv,bv=fv,Sv=pv,kv=mv,Cv=Ld;function Ev(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=Ev(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Nv(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Ev(e))&&(r&&(r+=" "),r+=t);return r}const Pp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Rp=Nv,_v=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Rp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:o}=t,i=Object.keys(s).map(c=>{const d=n==null?void 0:n[c],f=o==null?void 0:o[c];if(d===null)return null;const g=Pp(d)||Pp(f);return s[c][g]}),a=n&&Object.entries(n).reduce((c,d)=>{let[f,g]=d;return g===void 0||(c[f]=g),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:f,className:g,...m}=d;return Object.entries(m).every(w=>{let[v,x]=w;return Array.isArray(x)?x.includes({...o,...a}[v]):{...o,...a}[v]===x})?[...c,f,g]:c},[]);return Rp(e,i,l,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 Dw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),jv=(...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 zw={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 Fw=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:o,iconNode:i,...a},l)=>b.createElement("svg",{ref:l,...zw,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:jv("lucide",s),...a},[...i.map(([c,d])=>b.createElement(c,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 Me=(e,t)=>{const n=b.forwardRef(({className:r,...s},o)=>b.createElement(Fw,{ref:o,iconNode:t,className:jv(`lucide-${Dw(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 yl=Me("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 ot=Me("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 Id=Me("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 $w=Me("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 Da=Me("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
* @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 Vw=Me("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
* @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 Bw=Me("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
* @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 Uw=Me("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
* @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 Hw=Me("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 Ww=Me("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 qw=Me("PhoneCall",[["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"}],["path",{d:"M14.05 2a9 9 0 0 1 8 7.94",key:"vmijpz"}],["path",{d:"M14.05 6A5 5 0 0 1 18 10",key:"13nbpp"}]]);/**
* @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 xl=Me("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 Gw=Me("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/**
* @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 Qw=Me("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
* @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 Zw=Me("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
* @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 Md=Me("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 Kw=Me("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 Yw=Me("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
* @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 Xw=Me("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 Jw=Me("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Dd="-",eb=e=>{const t=nb(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(Dd);return a[0]===""&&a.length!==1&&a.shift(),Tv(a,t)||tb(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},Tv=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Tv(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const o=e.join(Dd);return(i=t.validators.find(({validator:a})=>a(o)))==null?void 0:i.classGroupId},Ap=/^\[(.+)\]$/,tb=e=>{if(Ap.test(e)){const t=Ap.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},nb=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return sb(Object.entries(e.classGroups),n).forEach(([o,i])=>{vu(i,r,o,t)}),r},vu=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const o=s===""?t:Op(t,s);o.classGroupId=n;return}if(typeof s=="function"){if(rb(s)){vu(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([o,i])=>{vu(i,Op(t,o),n,r)})})},Op=(e,t)=>{let n=e;return t.split(Dd).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},rb=e=>e.isThemeGetter,sb=(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,ob=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)}}},Pv="!",ib=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],o=t.length,i=a=>{const l=[];let c=0,d=0,f;for(let x=0;x<a.length;x++){let p=a[x];if(c===0){if(p===s&&(r||a.slice(x,x+o)===t)){l.push(a.slice(d,x)),d=x+o;continue}if(p==="/"){f=x;continue}}p==="["?c++:p==="]"&&c--}const g=l.length===0?a:a.substring(d),m=g.startsWith(Pv),w=m?g.substring(1):g,v=f&&f>d?f-d:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:w,maybePostfixModifierPosition:v}};return n?a=>n({className:a,parseClassName:i}):i},ab=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},lb=e=>({cache:ob(e.cacheSize),parseClassName:ib(e),...eb(e)}),cb=/\s+/,ub=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,o=[],i=e.trim().split(cb);let a="";for(let l=i.length-1;l>=0;l-=1){const c=i[l],{modifiers:d,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:m}=n(c);let w=!!m,v=r(w?g.substring(0,m):g);if(!v){if(!w){a=c+(a.length>0?" "+a:a);continue}if(v=r(g),!v){a=c+(a.length>0?" "+a:a);continue}w=!1}const x=ab(d).join(":"),p=f?x+Pv:x,h=p+v;if(o.includes(h))continue;o.push(h);const y=s(v,w);for(let S=0;S<y.length;++S){const k=y[S];o.push(p+k)}a=c+(a.length>0?" "+a:a)}return a};function db(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Rv(t))&&(r&&(r+=" "),r+=n);return r}const Rv=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Rv(e[r]))&&(n&&(n+=" "),n+=t);return n};function fb(e,...t){let n,r,s,o=i;function i(l){const c=t.reduce((d,f)=>f(d),e());return n=lb(c),r=n.cache.get,s=n.cache.set,o=a,a(l)}function a(l){const c=r(l);if(c)return c;const d=ub(l,n);return s(l,d),d}return function(){return o(db.apply(null,arguments))}}const ye=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Av=/^\[(?:([a-z-]+):)?(.+)\]$/i,pb=/^\d+\/\d+$/,hb=new Set(["px","full","screen"]),mb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gb=/\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$/,vb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,yb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Sn=e=>Ns(e)||hb.has(e)||pb.test(e),Hn=e=>Js(e,"length",_b),Ns=e=>!!e&&!Number.isNaN(Number(e)),pc=e=>Js(e,"number",Ns),mo=e=>!!e&&Number.isInteger(Number(e)),wb=e=>e.endsWith("%")&&Ns(e.slice(0,-1)),re=e=>Av.test(e),Wn=e=>mb.test(e),bb=new Set(["length","size","percentage"]),Sb=e=>Js(e,bb,Ov),kb=e=>Js(e,"position",Ov),Cb=new Set(["image","url"]),Eb=e=>Js(e,Cb,Tb),Nb=e=>Js(e,"",jb),go=()=>!0,Js=(e,t,n)=>{const r=Av.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},_b=e=>gb.test(e)&&!vb.test(e),Ov=()=>!1,jb=e=>yb.test(e),Tb=e=>xb.test(e),Pb=()=>{const e=ye("colors"),t=ye("spacing"),n=ye("blur"),r=ye("brightness"),s=ye("borderColor"),o=ye("borderRadius"),i=ye("borderSpacing"),a=ye("borderWidth"),l=ye("contrast"),c=ye("grayscale"),d=ye("hueRotate"),f=ye("invert"),g=ye("gap"),m=ye("gradientColorStops"),w=ye("gradientColorStopPositions"),v=ye("inset"),x=ye("margin"),p=ye("opacity"),h=ye("padding"),y=ye("saturate"),S=ye("scale"),k=ye("sepia"),C=ye("skew"),E=ye("space"),N=ye("translate"),P=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",re,t],M=()=>[re,t],Z=()=>["",Sn,Hn],A=()=>["auto",Ns,re],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],q=()=>["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"],j=()=>["","0",re],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[Ns,re];return{cacheSize:500,separator:":",theme:{colors:[go],spacing:[Sn,Hn],blur:["none","",Wn,re],brightness:G(),borderColor:[e],borderRadius:["none","","full",Wn,re],borderSpacing:M(),borderWidth:Z(),contrast:G(),grayscale:j(),hueRotate:G(),invert:j(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[wb,Hn],inset:z(),margin:z(),opacity:G(),padding:M(),saturate:G(),scale:G(),sepia:j(),skew:G(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",re]}],container:["container"],columns:[{columns:[Wn]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"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:[...Q(),re]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",mo,re]}],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",re]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",mo,re]}],"grid-cols":[{"grid-cols":[go]}],"col-start-end":[{col:["auto",{span:["full",mo,re]},re]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[go]}],"row-start-end":[{row:["auto",{span:[mo,re]},re]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",re]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"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:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",re,t]}],"min-w":[{"min-w":[re,t,"min","max","fit"]}],"max-w":[{"max-w":[re,t,"none","full","min","max","fit","prose",{screen:[Wn]},Wn]}],h:[{h:[re,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[re,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Wn,Hn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pc]}],"font-family":[{font:[go]}],"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-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",re]}],"line-clamp":[{"line-clamp":["none",Ns,pc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Sn,re]}],"list-image":[{"list-image":["none",re]}],"list-style-type":[{list:["none","disc","decimal",re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[p]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Sn,Hn]}],"underline-offset":[{"underline-offset":["auto",Sn,re]}],"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:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re]}],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",re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[p]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),kb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Sb]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Eb]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],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":[p]}],"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":[p]}],"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":[Sn,re]}],"outline-w":[{outline:[Sn,Hn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[p]}],"ring-offset-w":[{"ring-offset":[Sn,Hn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Wn,Nb]}],"shadow-color":[{shadow:[go]}],opacity:[{opacity:[p]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Wn,re]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[y]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[p]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"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",re]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",re]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[mo,re]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",re]}],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",re]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",re]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Sn,Hn,pc]}],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"]}}},Rb=fb(Pb);function He(...e){return Rb(Nv(e))}const Ab=Mw,Lv=b.forwardRef(({className:e,...t},n)=>u.jsx(xv,{ref:n,className:He("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}));Lv.displayName=xv.displayName;const Ob=_v("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"}}),Iv=b.forwardRef(({className:e,variant:t,...n},r)=>u.jsx(wv,{ref:r,className:He(Ob({variant:t}),e),...n}));Iv.displayName=wv.displayName;const Lb=b.forwardRef(({className:e,...t},n)=>u.jsx(kv,{ref:n,className:He("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 group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));Lb.displayName=kv.displayName;const Mv=b.forwardRef(({className:e,...t},n)=>u.jsx(Cv,{ref:n,className:He("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:u.jsx(Xw,{className:"h-4 w-4"})}));Mv.displayName=Cv.displayName;const Dv=b.forwardRef(({className:e,...t},n)=>u.jsx(bv,{ref:n,className:He("text-sm font-semibold",e),...t}));Dv.displayName=bv.displayName;const zv=b.forwardRef(({className:e,...t},n)=>u.jsx(Sv,{ref:n,className:He("text-sm opacity-90",e),...t}));zv.displayName=Sv.displayName;function Ib(){const{toasts:e}=W1();return u.jsxs(Ab,{children:[e.map(function({id:t,title:n,description:r,action:s,...o}){return u.jsxs(Iv,{...o,children:[u.jsxs("div",{className:"grid gap-1",children:[n&&u.jsx(Dv,{children:n}),r&&u.jsx(zv,{children:r})]}),s,u.jsx(Mv,{})]},t)}),u.jsx(Lv,{})]})}var Lp=["light","dark"],Mb="(prefers-color-scheme: dark)",Db=b.createContext(void 0),zb={setTheme:e=>{},themes:[]},Fb=()=>{var e;return(e=b.useContext(Db))!=null?e:zb};b.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:o,value:i,attrs:a,nonce:l})=>{let c=o==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(w=>`'${w}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=s?Lp.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",g=(w,v=!1,x=!0)=>{let p=i?i[w]:w,h=v?w+"|| ''":`'${p}'`,y="";return s&&x&&!v&&Lp.includes(w)&&(y+=`d.style.colorScheme = '${w}';`),n==="class"?v||p?y+=`c.add(${h})`:y+="null":p&&(y+=`d[s](n,${h})`),y},m=e?`!function(){${d}${g(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${Mb}',m=window.matchMedia(t);if(m.media!==t||m.matches){${g("dark")}}else{${g("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${g(i?"x[e]":"e",!0)}}${c?"":"else{"+g(o,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${g(i?"x[e]":"e",!0)}}else{${g(o,!1,!1)};}${f}}catch(t){}}();`;return b.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})});var $b=e=>{switch(e){case"success":return Ub;case"info":return Wb;case"warning":return Hb;case"error":return qb;default:return null}},Vb=Array(12).fill(0),Bb=({visible:e,className:t})=>O.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},O.createElement("div",{className:"sonner-spinner"},Vb.map((n,r)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Ub=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),Hb=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},O.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"})),Wb=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),qb=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.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"})),Gb=O.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"},O.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),O.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Qb=()=>{let[e,t]=O.useState(document.hidden);return O.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},yu=1,Zb=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:yu++,o=this.toasts.find(a=>a.id===s),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),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=>(this.dismissedToasts.add(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,o,i=r.then(async l=>{if(o=["resolve",l],O.isValidElement(l))s=!1,this.create({id:n,type:"default",message:l});else if(Yb(l)&&!l.ok){s=!1;let c=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:c,description:d})}else if(t.success!==void 0){s=!1;let c=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:c,description:d})}}).catch(async l=>{if(o=["reject",l],t.error!==void 0){s=!1;let c=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:c,description:d})}}).finally(()=>{var l;s&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,c)=>i.then(()=>o[0]==="reject"?c(o[1]):l(o[1])).catch(c));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||yu++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},ut=new Zb,Kb=(e,t)=>{let n=(t==null?void 0:t.id)||yu++;return ut.addToast({title:e,...t,id:n}),n},Yb=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Xb=Kb,Jb=()=>ut.toasts,eS=()=>ut.getActiveToasts(),hc=Object.assign(Xb,{success:ut.success,info:ut.info,warning:ut.warning,error:ut.error,custom:ut.custom,message:ut.message,promise:ut.promise,dismiss:ut.dismiss,loading:ut.loading},{getHistory:Jb,getToasts:eS});function tS(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))}tS(`: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;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-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;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}: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:-50%;right:-50%;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-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);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-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--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-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[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 Gi(e){return e.label!==void 0}var nS=3,rS="32px",sS="16px",Ip=4e3,oS=356,iS=14,aS=20,lS=200;function Wt(...e){return e.filter(Boolean).join(" ")}function cS(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var uS=e=>{var t,n,r,s,o,i,a,l,c,d,f;let{invert:g,toast:m,unstyled:w,interacting:v,setHeights:x,visibleToasts:p,heights:h,index:y,toasts:S,expanded:k,removeToast:C,defaultRichColors:E,closeButton:N,style:P,cancelButtonStyle:R,actionButtonStyle:z,className:M="",descriptionClassName:Z="",duration:A,position:Q,gap:W,loadingIcon:q,expandByDefault:_,classNames:j,icons:D,closeButtonAriaLabel:G="Close toast",pauseWhenPageIsHidden:B}=e,[K,Y]=O.useState(null),[he,Ne]=O.useState(null),[J,_e]=O.useState(!1),[Ve,Oe]=O.useState(!1),[ce,V]=O.useState(!1),[ie,ve]=O.useState(!1),[De,et]=O.useState(!1),[gt,vt]=O.useState(0),[tt,on]=O.useState(0),Dt=O.useRef(m.duration||A||Ip),ns=O.useRef(null),zt=O.useRef(null),Si=y===0,ki=y+1<=p,ct=m.type,bn=m.dismissible!==!1,Ol=m.className||"",ro=m.descriptionClassName||"",Ft=O.useMemo(()=>h.findIndex(X=>X.toastId===m.id)||0,[h,m.id]),so=O.useMemo(()=>{var X;return(X=m.closeButton)!=null?X:N},[m.closeButton,N]),rs=O.useMemo(()=>m.duration||A||Ip,[m.duration,A]),zn=O.useRef(0),Fn=O.useRef(0),Ci=O.useRef(0),$n=O.useRef(null),[Ll,Il]=Q.split("-"),oo=O.useMemo(()=>h.reduce((X,fe,me)=>me>=Ft?X:X+fe.height,0),[h,Ft]),Ei=Qb(),Ni=m.invert||g,ss=ct==="loading";Fn.current=O.useMemo(()=>Ft*W+oo,[Ft,oo]),O.useEffect(()=>{Dt.current=rs},[rs]),O.useEffect(()=>{_e(!0)},[]),O.useEffect(()=>{let X=zt.current;if(X){let fe=X.getBoundingClientRect().height;return on(fe),x(me=>[{toastId:m.id,height:fe,position:m.position},...me]),()=>x(me=>me.filter(Vt=>Vt.toastId!==m.id))}},[x,m.id]),O.useLayoutEffect(()=>{if(!J)return;let X=zt.current,fe=X.style.height;X.style.height="auto";let me=X.getBoundingClientRect().height;X.style.height=fe,on(me),x(Vt=>Vt.find(Bt=>Bt.toastId===m.id)?Vt.map(Bt=>Bt.toastId===m.id?{...Bt,height:me}:Bt):[{toastId:m.id,height:me,position:m.position},...Vt])},[J,m.title,m.description,x,m.id]);let $t=O.useCallback(()=>{Oe(!0),vt(Fn.current),x(X=>X.filter(fe=>fe.toastId!==m.id)),setTimeout(()=>{C(m)},lS)},[m,C,x,Fn]);O.useEffect(()=>{if(m.promise&&ct==="loading"||m.duration===1/0||m.type==="loading")return;let X;return k||v||B&&Ei?(()=>{if(Ci.current<zn.current){let fe=new Date().getTime()-zn.current;Dt.current=Dt.current-fe}Ci.current=new Date().getTime()})():Dt.current!==1/0&&(zn.current=new Date().getTime(),X=setTimeout(()=>{var fe;(fe=m.onAutoClose)==null||fe.call(m,m),$t()},Dt.current)),()=>clearTimeout(X)},[k,v,m,ct,B,Ei,$t]),O.useEffect(()=>{m.delete&&$t()},[$t,m.delete]);function Ml(){var X,fe,me;return D!=null&&D.loading?O.createElement("div",{className:Wt(j==null?void 0:j.loader,(X=m==null?void 0:m.classNames)==null?void 0:X.loader,"sonner-loader"),"data-visible":ct==="loading"},D.loading):q?O.createElement("div",{className:Wt(j==null?void 0:j.loader,(fe=m==null?void 0:m.classNames)==null?void 0:fe.loader,"sonner-loader"),"data-visible":ct==="loading"},q):O.createElement(Bb,{className:Wt(j==null?void 0:j.loader,(me=m==null?void 0:m.classNames)==null?void 0:me.loader),visible:ct==="loading"})}return O.createElement("li",{tabIndex:0,ref:zt,className:Wt(M,Ol,j==null?void 0:j.toast,(t=m==null?void 0:m.classNames)==null?void 0:t.toast,j==null?void 0:j.default,j==null?void 0:j[ct],(n=m==null?void 0:m.classNames)==null?void 0:n[ct]),"data-sonner-toast":"","data-rich-colors":(r=m.richColors)!=null?r:E,"data-styled":!(m.jsx||m.unstyled||w),"data-mounted":J,"data-promise":!!m.promise,"data-swiped":De,"data-removed":Ve,"data-visible":ki,"data-y-position":Ll,"data-x-position":Il,"data-index":y,"data-front":Si,"data-swiping":ce,"data-dismissible":bn,"data-type":ct,"data-invert":Ni,"data-swipe-out":ie,"data-swipe-direction":he,"data-expanded":!!(k||_&&J),style:{"--index":y,"--toasts-before":y,"--z-index":S.length-y,"--offset":`${Ve?gt:Fn.current}px`,"--initial-height":_?"auto":`${tt}px`,...P,...m.style},onDragEnd:()=>{V(!1),Y(null),$n.current=null},onPointerDown:X=>{ss||!bn||(ns.current=new Date,vt(Fn.current),X.target.setPointerCapture(X.pointerId),X.target.tagName!=="BUTTON"&&(V(!0),$n.current={x:X.clientX,y:X.clientY}))},onPointerUp:()=>{var X,fe,me,Vt;if(ie||!bn)return;$n.current=null;let Bt=Number(((X=zt.current)==null?void 0:X.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Vn=Number(((fe=zt.current)==null?void 0:fe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),_r=new Date().getTime()-((me=ns.current)==null?void 0:me.getTime()),Ut=K==="x"?Bt:Vn,Bn=Math.abs(Ut)/_r;if(Math.abs(Ut)>=aS||Bn>.11){vt(Fn.current),(Vt=m.onDismiss)==null||Vt.call(m,m),Ne(K==="x"?Bt>0?"right":"left":Vn>0?"down":"up"),$t(),ve(!0),et(!1);return}V(!1),Y(null)},onPointerMove:X=>{var fe,me,Vt,Bt;if(!$n.current||!bn||((fe=window.getSelection())==null?void 0:fe.toString().length)>0)return;let Vn=X.clientY-$n.current.y,_r=X.clientX-$n.current.x,Ut=(me=e.swipeDirections)!=null?me:cS(Q);!K&&(Math.abs(_r)>1||Math.abs(Vn)>1)&&Y(Math.abs(_r)>Math.abs(Vn)?"x":"y");let Bn={x:0,y:0};K==="y"?(Ut.includes("top")||Ut.includes("bottom"))&&(Ut.includes("top")&&Vn<0||Ut.includes("bottom")&&Vn>0)&&(Bn.y=Vn):K==="x"&&(Ut.includes("left")||Ut.includes("right"))&&(Ut.includes("left")&&_r<0||Ut.includes("right")&&_r>0)&&(Bn.x=_r),(Math.abs(Bn.x)>0||Math.abs(Bn.y)>0)&&et(!0),(Vt=zt.current)==null||Vt.style.setProperty("--swipe-amount-x",`${Bn.x}px`),(Bt=zt.current)==null||Bt.style.setProperty("--swipe-amount-y",`${Bn.y}px`)}},so&&!m.jsx?O.createElement("button",{"aria-label":G,"data-disabled":ss,"data-close-button":!0,onClick:ss||!bn?()=>{}:()=>{var X;$t(),(X=m.onDismiss)==null||X.call(m,m)},className:Wt(j==null?void 0:j.closeButton,(s=m==null?void 0:m.classNames)==null?void 0:s.closeButton)},(o=D==null?void 0:D.close)!=null?o:Gb):null,m.jsx||b.isValidElement(m.title)?m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title:O.createElement(O.Fragment,null,ct||m.icon||m.promise?O.createElement("div",{"data-icon":"",className:Wt(j==null?void 0:j.icon,(i=m==null?void 0:m.classNames)==null?void 0:i.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||Ml():null,m.type!=="loading"?m.icon||(D==null?void 0:D[ct])||$b(ct):null):null,O.createElement("div",{"data-content":"",className:Wt(j==null?void 0:j.content,(a=m==null?void 0:m.classNames)==null?void 0:a.content)},O.createElement("div",{"data-title":"",className:Wt(j==null?void 0:j.title,(l=m==null?void 0:m.classNames)==null?void 0:l.title)},typeof m.title=="function"?m.title():m.title),m.description?O.createElement("div",{"data-description":"",className:Wt(Z,ro,j==null?void 0:j.description,(c=m==null?void 0:m.classNames)==null?void 0:c.description)},typeof m.description=="function"?m.description():m.description):null),b.isValidElement(m.cancel)?m.cancel:m.cancel&&Gi(m.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||R,onClick:X=>{var fe,me;Gi(m.cancel)&&bn&&((me=(fe=m.cancel).onClick)==null||me.call(fe,X),$t())},className:Wt(j==null?void 0:j.cancelButton,(d=m==null?void 0:m.classNames)==null?void 0:d.cancelButton)},m.cancel.label):null,b.isValidElement(m.action)?m.action:m.action&&Gi(m.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||z,onClick:X=>{var fe,me;Gi(m.action)&&((me=(fe=m.action).onClick)==null||me.call(fe,X),!X.defaultPrevented&&$t())},className:Wt(j==null?void 0:j.actionButton,(f=m==null?void 0:m.classNames)==null?void 0:f.actionButton)},m.action.label):null))};function Mp(){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}function dS(e,t){let n={};return[e,t].forEach((r,s)=>{let o=s===1,i=o?"--mobile-offset":"--offset",a=o?sS:rS;function l(c){["top","right","bottom","left"].forEach(d=>{n[`${i}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${i}-${c}`]=a:n[`${i}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(a)}),n}var fS=b.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:i,className:a,offset:l,mobileOffset:c,theme:d="light",richColors:f,duration:g,style:m,visibleToasts:w=nS,toastOptions:v,dir:x=Mp(),gap:p=iS,loadingIcon:h,icons:y,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:k}=e,[C,E]=O.useState([]),N=O.useMemo(()=>Array.from(new Set([r].concat(C.filter(B=>B.position).map(B=>B.position)))),[C,r]),[P,R]=O.useState([]),[z,M]=O.useState(!1),[Z,A]=O.useState(!1),[Q,W]=O.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),q=O.useRef(null),_=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=O.useRef(null),D=O.useRef(!1),G=O.useCallback(B=>{E(K=>{var Y;return(Y=K.find(he=>he.id===B.id))!=null&&Y.delete||ut.dismiss(B.id),K.filter(({id:he})=>he!==B.id)})},[]);return O.useEffect(()=>ut.subscribe(B=>{if(B.dismiss){E(K=>K.map(Y=>Y.id===B.id?{...Y,delete:!0}:Y));return}setTimeout(()=>{Kg.flushSync(()=>{E(K=>{let Y=K.findIndex(he=>he.id===B.id);return Y!==-1?[...K.slice(0,Y),{...K[Y],...B},...K.slice(Y+1)]:[B,...K]})})})}),[]),O.useEffect(()=>{if(d!=="system"){W(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?W("dark"):W("light")),typeof window>"u")return;let B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:K})=>{W(K?"dark":"light")})}catch{B.addListener(({matches:Y})=>{try{W(Y?"dark":"light")}catch(he){console.error(he)}})}},[d]),O.useEffect(()=>{C.length<=1&&M(!1)},[C]),O.useEffect(()=>{let B=K=>{var Y,he;s.every(Ne=>K[Ne]||K.code===Ne)&&(M(!0),(Y=q.current)==null||Y.focus()),K.code==="Escape"&&(document.activeElement===q.current||(he=q.current)!=null&&he.contains(document.activeElement))&&M(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[s]),O.useEffect(()=>{if(q.current)return()=>{j.current&&(j.current.focus({preventScroll:!0}),j.current=null,D.current=!1)}},[q.current]),O.createElement("section",{ref:t,"aria-label":`${S} ${_}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map((B,K)=>{var Y;let[he,Ne]=B.split("-");return C.length?O.createElement("ol",{key:B,dir:x==="auto"?Mp():x,tabIndex:-1,ref:q,className:a,"data-sonner-toaster":!0,"data-theme":Q,"data-y-position":he,"data-lifted":z&&C.length>1&&!o,"data-x-position":Ne,style:{"--front-toast-height":`${((Y=P[0])==null?void 0:Y.height)||0}px`,"--width":`${oS}px`,"--gap":`${p}px`,...m,...dS(l,c)},onBlur:J=>{D.current&&!J.currentTarget.contains(J.relatedTarget)&&(D.current=!1,j.current&&(j.current.focus({preventScroll:!0}),j.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||D.current||(D.current=!0,j.current=J.relatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{Z||M(!1)},onDragEnd:()=>M(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||A(!0)},onPointerUp:()=>A(!1)},C.filter(J=>!J.position&&K===0||J.position===B).map((J,_e)=>{var Ve,Oe;return O.createElement(uS,{key:J.id,icons:y,index:_e,toast:J,defaultRichColors:f,duration:(Ve=v==null?void 0:v.duration)!=null?Ve:g,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:w,closeButton:(Oe=v==null?void 0:v.closeButton)!=null?Oe:i,interacting:Z,position:B,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:G,toasts:C.filter(ce=>ce.position==J.position),heights:P.filter(ce=>ce.position==J.position),setHeights:R,expandByDefault:o,gap:p,loadingIcon:h,expanded:z,pauseWhenPageIsHidden:k,swipeDirections:e.swipeDirections})})):null}))});const pS=({...e})=>{const{theme:t="system"}=Fb();return u.jsx(fS,{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 hS=$u[" useId ".trim().toString()]||(()=>{}),mS=0;function Fv(e){const[t,n]=b.useState(hS());return yn(()=>{n(r=>r??String(mS++))},[e]),t?`radix-${t}`:""}const gS=["top","right","bottom","left"],wr=Math.min,xt=Math.max,za=Math.round,Qi=Math.floor,gn=e=>({x:e,y:e}),vS={left:"right",right:"left",bottom:"top",top:"bottom"},yS={start:"end",end:"start"};function xu(e,t,n){return xt(e,wr(t,n))}function Ln(e,t){return typeof e=="function"?e(t):e}function In(e){return e.split("-")[0]}function eo(e){return e.split("-")[1]}function zd(e){return e==="x"?"y":"x"}function Fd(e){return e==="y"?"height":"width"}const xS=new Set(["top","bottom"]);function pn(e){return xS.has(In(e))?"y":"x"}function $d(e){return zd(pn(e))}function wS(e,t,n){n===void 0&&(n=!1);const r=eo(e),s=$d(e),o=Fd(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Fa(i)),[i,Fa(i)]}function bS(e){const t=Fa(e);return[wu(e),t,wu(t)]}function wu(e){return e.replace(/start|end/g,t=>yS[t])}const Dp=["left","right"],zp=["right","left"],SS=["top","bottom"],kS=["bottom","top"];function CS(e,t,n){switch(e){case"top":case"bottom":return n?t?zp:Dp:t?Dp:zp;case"left":case"right":return t?SS:kS;default:return[]}}function ES(e,t,n,r){const s=eo(e);let o=CS(In(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(wu)))),o}function Fa(e){return e.replace(/left|right|bottom|top/g,t=>vS[t])}function NS(e){return{top:0,right:0,bottom:0,left:0,...e}}function $v(e){return typeof e!="number"?NS(e):{top:e,right:e,bottom:e,left:e}}function $a(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 Fp(e,t,n){let{reference:r,floating:s}=e;const o=pn(t),i=$d(t),a=Fd(i),l=In(t),c=o==="y",d=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,g=r[a]/2-s[a]/2;let m;switch(l){case"top":m={x:d,y:r.y-s.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-s.width,y:f};break;default:m={x:r.x,y:r.y}}switch(eo(t)){case"start":m[i]-=g*(n&&c?-1:1);break;case"end":m[i]+=g*(n&&c?-1:1);break}return m}const _S=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:i}=n,a=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:f}=Fp(c,r,l),g=r,m={},w=0;for(let v=0;v<a.length;v++){const{name:x,fn:p}=a[v],{x:h,y,data:S,reset:k}=await p({x:d,y:f,initialPlacement:r,placement:g,strategy:s,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});d=h??d,f=y??f,m={...m,[x]:{...m[x],...S}},k&&w<=50&&(w++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(c=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):k.rects),{x:d,y:f}=Fp(c,g,l)),v=-1)}return{x:d,y:f,placement:g,strategy:s,middlewareData:m}};async function Yo(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:g=!1,padding:m=0}=Ln(t,e),w=$v(m),x=a[g?f==="floating"?"reference":"floating":f],p=$a(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(x)))==null||n?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),h=f==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,y=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),S=await(o.isElement==null?void 0:o.isElement(y))?await(o.getScale==null?void 0:o.getScale(y))||{x:1,y:1}:{x:1,y:1},k=$a(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:h,offsetParent:y,strategy:l}):h);return{top:(p.top-k.top+w.top)/S.y,bottom:(k.bottom-p.bottom+w.bottom)/S.y,left:(p.left-k.left+w.left)/S.x,right:(k.right-p.right+w.right)/S.x}}const jS=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=Ln(e,t)||{};if(c==null)return{};const f=$v(d),g={x:n,y:r},m=$d(s),w=Fd(m),v=await i.getDimensions(c),x=m==="y",p=x?"top":"left",h=x?"bottom":"right",y=x?"clientHeight":"clientWidth",S=o.reference[w]+o.reference[m]-g[m]-o.floating[w],k=g[m]-o.reference[m],C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let E=C?C[y]:0;(!E||!await(i.isElement==null?void 0:i.isElement(C)))&&(E=a.floating[y]||o.floating[w]);const N=S/2-k/2,P=E/2-v[w]/2-1,R=wr(f[p],P),z=wr(f[h],P),M=R,Z=E-v[w]-z,A=E/2-v[w]/2+N,Q=xu(M,A,Z),W=!l.arrow&&eo(s)!=null&&A!==Q&&o.reference[w]/2-(A<M?R:z)-v[w]/2<0,q=W?A<M?A-M:A-Z:0;return{[m]:g[m]+q,data:{[m]:Q,centerOffset:A-Q-q,...W&&{alignmentOffset:q}},reset:W}}}),TS=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:l,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,...x}=Ln(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const p=In(s),h=pn(a),y=In(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),k=g||(y||!v?[Fa(a)]:bS(a)),C=w!=="none";!g&&C&&k.push(...ES(a,v,w,S));const E=[a,...k],N=await Yo(t,x),P=[];let R=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&P.push(N[p]),f){const A=wS(s,i,S);P.push(N[A[0]],N[A[1]])}if(R=[...R,{placement:s,overflows:P}],!P.every(A=>A<=0)){var z,M;const A=(((z=o.flip)==null?void 0:z.index)||0)+1,Q=E[A];if(Q&&(!(f==="alignment"?h!==pn(Q):!1)||R.every(_=>_.overflows[0]>0&&pn(_.placement)===h)))return{data:{index:A,overflows:R},reset:{placement:Q}};let W=(M=R.filter(q=>q.overflows[0]<=0).sort((q,_)=>q.overflows[1]-_.overflows[1])[0])==null?void 0:M.placement;if(!W)switch(m){case"bestFit":{var Z;const q=(Z=R.filter(_=>{if(C){const j=pn(_.placement);return j===h||j==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(j=>j>0).reduce((j,D)=>j+D,0)]).sort((_,j)=>_[1]-j[1])[0])==null?void 0:Z[0];q&&(W=q);break}case"initialPlacement":W=a;break}if(s!==W)return{reset:{placement:W}}}return{}}}};function $p(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vp(e){return gS.some(t=>e[t]>=0)}const PS=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=Ln(e,t);switch(r){case"referenceHidden":{const o=await Yo(t,{...s,elementContext:"reference"}),i=$p(o,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Vp(i)}}}case"escaped":{const o=await Yo(t,{...s,altBoundary:!0}),i=$p(o,n.floating);return{data:{escapedOffsets:i,escaped:Vp(i)}}}default:return{}}}}},Vv=new Set(["left","top"]);async function RS(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=In(n),a=eo(n),l=pn(n)==="y",c=Vv.has(i)?-1:1,d=o&&l?-1:1,f=Ln(t,e);let{mainAxis:g,crossAxis:m,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof w=="number"&&(m=a==="end"?w*-1:w),l?{x:m*d,y:g*c}:{x:g*c,y:m*d}}const AS=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,l=await RS(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:o+l.y,data:{...l,placement:i}}}}},OS=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:x=>{let{x:p,y:h}=x;return{x:p,y:h}}},...l}=Ln(e,t),c={x:n,y:r},d=await Yo(t,l),f=pn(In(s)),g=zd(f);let m=c[g],w=c[f];if(o){const x=g==="y"?"top":"left",p=g==="y"?"bottom":"right",h=m+d[x],y=m-d[p];m=xu(h,m,y)}if(i){const x=f==="y"?"top":"left",p=f==="y"?"bottom":"right",h=w+d[x],y=w-d[p];w=xu(h,w,y)}const v=a.fn({...t,[g]:m,[f]:w});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:o,[f]:i}}}}}},LS=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:l=!0,crossAxis:c=!0}=Ln(e,t),d={x:n,y:r},f=pn(s),g=zd(f);let m=d[g],w=d[f];const v=Ln(a,t),x=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const y=g==="y"?"height":"width",S=o.reference[g]-o.floating[y]+x.mainAxis,k=o.reference[g]+o.reference[y]-x.mainAxis;m<S?m=S:m>k&&(m=k)}if(c){var p,h;const y=g==="y"?"width":"height",S=Vv.has(In(s)),k=o.reference[f]-o.floating[y]+(S&&((p=i.offset)==null?void 0:p[f])||0)+(S?0:x.crossAxis),C=o.reference[f]+o.reference[y]+(S?0:((h=i.offset)==null?void 0:h[f])||0)-(S?x.crossAxis:0);w<k?w=k:w>C&&(w=C)}return{[g]:m,[f]:w}}}},IS=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:l=()=>{},...c}=Ln(e,t),d=await Yo(t,c),f=In(s),g=eo(s),m=pn(s)==="y",{width:w,height:v}=o.floating;let x,p;f==="top"||f==="bottom"?(x=f,p=g===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(p=f,x=g==="end"?"top":"bottom");const h=v-d.top-d.bottom,y=w-d.left-d.right,S=wr(v-d[x],h),k=wr(w-d[p],y),C=!t.middlewareData.shift;let E=S,N=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=h),C&&!g){const R=xt(d.left,0),z=xt(d.right,0),M=xt(d.top,0),Z=xt(d.bottom,0);m?N=w-2*(R!==0||z!==0?R+z:xt(d.left,d.right)):E=v-2*(M!==0||Z!==0?M+Z:xt(d.top,d.bottom))}await l({...t,availableWidth:N,availableHeight:E});const P=await i.getDimensions(a.floating);return w!==P.width||v!==P.height?{reset:{rects:!0}}:{}}}};function wl(){return typeof window<"u"}function to(e){return Bv(e)?(e.nodeName||"").toLowerCase():"#document"}function kt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wn(e){var t;return(t=(Bv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Bv(e){return wl()?e instanceof Node||e instanceof kt(e).Node:!1}function nn(e){return wl()?e instanceof Element||e instanceof kt(e).Element:!1}function xn(e){return wl()?e instanceof HTMLElement||e instanceof kt(e).HTMLElement:!1}function Bp(e){return!wl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof kt(e).ShadowRoot}const MS=new Set(["inline","contents"]);function yi(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=rn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!MS.has(s)}const DS=new Set(["table","td","th"]);function zS(e){return DS.has(to(e))}const FS=[":popover-open",":modal"];function bl(e){return FS.some(t=>{try{return e.matches(t)}catch{return!1}})}const $S=["transform","translate","scale","rotate","perspective"],VS=["transform","translate","scale","rotate","perspective","filter"],BS=["paint","layout","strict","content"];function Vd(e){const t=Bd(),n=nn(e)?rn(e):e;return $S.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||VS.some(r=>(n.willChange||"").includes(r))||BS.some(r=>(n.contain||"").includes(r))}function US(e){let t=br(e);for(;xn(t)&&!Us(t);){if(Vd(t))return t;if(bl(t))return null;t=br(t)}return null}function Bd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const HS=new Set(["html","body","#document"]);function Us(e){return HS.has(to(e))}function rn(e){return kt(e).getComputedStyle(e)}function Sl(e){return nn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function br(e){if(to(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Bp(e)&&e.host||wn(e);return Bp(t)?t.host:t}function Uv(e){const t=br(e);return Us(t)?e.ownerDocument?e.ownerDocument.body:e.body:xn(t)&&yi(t)?t:Uv(t)}function Xo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Uv(e),o=s===((r=e.ownerDocument)==null?void 0:r.body),i=kt(s);if(o){const a=bu(i);return t.concat(i,i.visualViewport||[],yi(s)?s:[],a&&n?Xo(a):[])}return t.concat(s,Xo(s,[],n))}function bu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hv(e){const t=rn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=xn(e),o=s?e.offsetWidth:n,i=s?e.offsetHeight:r,a=za(n)!==o||za(r)!==i;return a&&(n=o,r=i),{width:n,height:r,$:a}}function Ud(e){return nn(e)?e:e.contextElement}function _s(e){const t=Ud(e);if(!xn(t))return gn(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:o}=Hv(t);let i=(o?za(n.width):n.width)/r,a=(o?za(n.height):n.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const WS=gn(0);function Wv(e){const t=kt(e);return!Bd()||!t.visualViewport?WS:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qS(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==kt(e)?!1:t}function Gr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=Ud(e);let i=gn(1);t&&(r?nn(r)&&(i=_s(r)):i=_s(e));const a=qS(o,n,r)?Wv(o):gn(0);let l=(s.left+a.x)/i.x,c=(s.top+a.y)/i.y,d=s.width/i.x,f=s.height/i.y;if(o){const g=kt(o),m=r&&nn(r)?kt(r):r;let w=g,v=bu(w);for(;v&&r&&m!==w;){const x=_s(v),p=v.getBoundingClientRect(),h=rn(v),y=p.left+(v.clientLeft+parseFloat(h.paddingLeft))*x.x,S=p.top+(v.clientTop+parseFloat(h.paddingTop))*x.y;l*=x.x,c*=x.y,d*=x.x,f*=x.y,l+=y,c+=S,w=kt(v),v=bu(w)}}return $a({width:d,height:f,x:l,y:c})}function Hd(e,t){const n=Sl(e).scrollLeft;return t?t.left+n:Gr(wn(e)).left+n}function qv(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:Hd(e,r)),o=r.top+t.scrollTop;return{x:s,y:o}}function GS(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const o=s==="fixed",i=wn(r),a=t?bl(t.floating):!1;if(r===i||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=gn(1);const d=gn(0),f=xn(r);if((f||!f&&!o)&&((to(r)!=="body"||yi(i))&&(l=Sl(r)),xn(r))){const m=Gr(r);c=_s(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const g=i&&!f&&!o?qv(i,l,!0):gn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+g.x,y:n.y*c.y-l.scrollTop*c.y+d.y+g.y}}function QS(e){return Array.from(e.getClientRects())}function ZS(e){const t=wn(e),n=Sl(e),r=e.ownerDocument.body,s=xt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=xt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Hd(e);const a=-n.scrollTop;return rn(r).direction==="rtl"&&(i+=xt(t.clientWidth,r.clientWidth)-s),{width:s,height:o,x:i,y:a}}function KS(e,t){const n=kt(e),r=wn(e),s=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,a=0,l=0;if(s){o=s.width,i=s.height;const c=Bd();(!c||c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:i,x:a,y:l}}const YS=new Set(["absolute","fixed"]);function XS(e,t){const n=Gr(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,o=xn(e)?_s(e):gn(1),i=e.clientWidth*o.x,a=e.clientHeight*o.y,l=s*o.x,c=r*o.y;return{width:i,height:a,x:l,y:c}}function Up(e,t,n){let r;if(t==="viewport")r=KS(e,n);else if(t==="document")r=ZS(wn(e));else if(nn(t))r=XS(t,n);else{const s=Wv(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return $a(r)}function Gv(e,t){const n=br(e);return n===t||!nn(n)||Us(n)?!1:rn(n).position==="fixed"||Gv(n,t)}function JS(e,t){const n=t.get(e);if(n)return n;let r=Xo(e,[],!1).filter(a=>nn(a)&&to(a)!=="body"),s=null;const o=rn(e).position==="fixed";let i=o?br(e):e;for(;nn(i)&&!Us(i);){const a=rn(i),l=Vd(i);!l&&a.position==="fixed"&&(s=null),(o?!l&&!s:!l&&a.position==="static"&&!!s&&YS.has(s.position)||yi(i)&&!l&&Gv(e,i))?r=r.filter(d=>d!==i):s=a,i=br(i)}return t.set(e,r),r}function ek(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const i=[...n==="clippingAncestors"?bl(t)?[]:JS(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((c,d)=>{const f=Up(t,d,s);return c.top=xt(f.top,c.top),c.right=wr(f.right,c.right),c.bottom=wr(f.bottom,c.bottom),c.left=xt(f.left,c.left),c},Up(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function tk(e){const{width:t,height:n}=Hv(e);return{width:t,height:n}}function nk(e,t,n){const r=xn(t),s=wn(t),o=n==="fixed",i=Gr(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=gn(0);function c(){l.x=Hd(s)}if(r||!r&&!o)if((to(t)!=="body"||yi(s))&&(a=Sl(t)),r){const m=Gr(t,!0,o,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else s&&c();o&&!r&&s&&c();const d=s&&!r&&!o?qv(s,a):gn(0),f=i.left+a.scrollLeft-l.x-d.x,g=i.top+a.scrollTop-l.y-d.y;return{x:f,y:g,width:i.width,height:i.height}}function mc(e){return rn(e).position==="static"}function Hp(e,t){if(!xn(e)||rn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return wn(e)===n&&(n=n.ownerDocument.body),n}function Qv(e,t){const n=kt(e);if(bl(e))return n;if(!xn(e)){let s=br(e);for(;s&&!Us(s);){if(nn(s)&&!mc(s))return s;s=br(s)}return n}let r=Hp(e,t);for(;r&&zS(r)&&mc(r);)r=Hp(r,t);return r&&Us(r)&&mc(r)&&!Vd(r)?n:r||US(e)||n}const rk=async function(e){const t=this.getOffsetParent||Qv,n=this.getDimensions,r=await n(e.floating);return{reference:nk(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function sk(e){return rn(e).direction==="rtl"}const ok={convertOffsetParentRelativeRectToViewportRelativeRect:GS,getDocumentElement:wn,getClippingRect:ek,getOffsetParent:Qv,getElementRects:rk,getClientRects:QS,getDimensions:tk,getScale:_s,isElement:nn,isRTL:sk};function Zv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ik(e,t){let n=null,r;const s=wn(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:d,top:f,width:g,height:m}=c;if(a||t(),!g||!m)return;const w=Qi(f),v=Qi(s.clientWidth-(d+g)),x=Qi(s.clientHeight-(f+m)),p=Qi(d),y={rootMargin:-w+"px "+-v+"px "+-x+"px "+-p+"px",threshold:xt(0,wr(1,l))||1};let S=!0;function k(C){const E=C[0].intersectionRatio;if(E!==l){if(!S)return i();E?i(!1,E):r=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!Zv(c,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(k,{...y,root:s.ownerDocument})}catch{n=new IntersectionObserver(k,y)}n.observe(e)}return i(!0),o}function ak(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:l=!1}=r,c=Ud(e),d=s||o?[...c?Xo(c):[],...Xo(t)]:[];d.forEach(p=>{s&&p.addEventListener("scroll",n,{passive:!0}),o&&p.addEventListener("resize",n)});const f=c&&a?ik(c,n):null;let g=-1,m=null;i&&(m=new ResizeObserver(p=>{let[h]=p;h&&h.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let w,v=l?Gr(e):null;l&&x();function x(){const p=Gr(e);v&&!Zv(v,p)&&n(),v=p,w=requestAnimationFrame(x)}return n(),()=>{var p;d.forEach(h=>{s&&h.removeEventListener("scroll",n),o&&h.removeEventListener("resize",n)}),f==null||f(),(p=m)==null||p.disconnect(),m=null,l&&cancelAnimationFrame(w)}}const lk=AS,ck=OS,uk=TS,dk=IS,fk=PS,Wp=jS,pk=LS,hk=(e,t,n)=>{const r=new Map,s={platform:ok,...n},o={...s.platform,_c:r};return _S(e,t,{...s,platform:o})};var mk=typeof document<"u",gk=function(){},ua=mk?b.useLayoutEffect:gk;function Va(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(!Va(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)&&!Va(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Kv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function qp(e,t){const n=Kv(e);return Math.round(t*n)/n}function gc(e){const t=b.useRef(e);return ua(()=>{t.current=e}),t}function vk(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:l,open:c}=e,[d,f]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,m]=b.useState(r);Va(g,r)||m(r);const[w,v]=b.useState(null),[x,p]=b.useState(null),h=b.useCallback(_=>{_!==C.current&&(C.current=_,v(_))},[]),y=b.useCallback(_=>{_!==E.current&&(E.current=_,p(_))},[]),S=o||w,k=i||x,C=b.useRef(null),E=b.useRef(null),N=b.useRef(d),P=l!=null,R=gc(l),z=gc(s),M=gc(c),Z=b.useCallback(()=>{if(!C.current||!E.current)return;const _={placement:t,strategy:n,middleware:g};z.current&&(_.platform=z.current),hk(C.current,E.current,_).then(j=>{const D={...j,isPositioned:M.current!==!1};A.current&&!Va(N.current,D)&&(N.current=D,gi.flushSync(()=>{f(D)}))})},[g,t,n,z,M]);ua(()=>{c===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,f(_=>({..._,isPositioned:!1})))},[c]);const A=b.useRef(!1);ua(()=>(A.current=!0,()=>{A.current=!1}),[]),ua(()=>{if(S&&(C.current=S),k&&(E.current=k),S&&k){if(R.current)return R.current(S,k,Z);Z()}},[S,k,Z,R,P]);const Q=b.useMemo(()=>({reference:C,floating:E,setReference:h,setFloating:y}),[h,y]),W=b.useMemo(()=>({reference:S,floating:k}),[S,k]),q=b.useMemo(()=>{const _={position:n,left:0,top:0};if(!W.floating)return _;const j=qp(W.floating,d.x),D=qp(W.floating,d.y);return a?{..._,transform:"translate("+j+"px, "+D+"px)",...Kv(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:D}},[n,a,W.floating,d.x,d.y]);return b.useMemo(()=>({...d,update:Z,refs:Q,elements:W,floatingStyles:q}),[d,Z,Q,W,q])}const yk=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?Wp({element:r.current,padding:s}).fn(n):{}:r?Wp({element:r,padding:s}).fn(n):{}}}},xk=(e,t)=>({...lk(e),options:[e,t]}),wk=(e,t)=>({...ck(e),options:[e,t]}),bk=(e,t)=>({...pk(e),options:[e,t]}),Sk=(e,t)=>({...uk(e),options:[e,t]}),kk=(e,t)=>({...dk(e),options:[e,t]}),Ck=(e,t)=>({...fk(e),options:[e,t]}),Ek=(e,t)=>({...yk(e),options:[e,t]});var Nk="Arrow",Yv=b.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...o}=e;return u.jsx($e.svg,{...o,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Yv.displayName=Nk;var _k=Yv;function jk(e){const[t,n]=b.useState(void 0);return yn(()=>{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 l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.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 Xv="Popper",[Jv,ey]=Xs(Xv),[G_,ty]=Jv(Xv),ny="PopperAnchor",ry=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,o=ty(ny,n),i=b.useRef(null),a=Et(t,i);return b.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:u.jsx($e.div,{...s,ref:a})});ry.displayName=ny;var Wd="PopperContent",[Tk,Pk]=Jv(Wd),sy=b.forwardRef((e,t)=>{var J,_e,Ve,Oe,ce,V;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:o="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:g=!1,updatePositionStrategy:m="optimized",onPlaced:w,...v}=e,x=ty(Wd,n),[p,h]=b.useState(null),y=Et(t,ie=>h(ie)),[S,k]=b.useState(null),C=jk(S),E=(C==null?void 0:C.width)??0,N=(C==null?void 0:C.height)??0,P=r+(o!=="center"?"-"+o:""),R=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},z=Array.isArray(c)?c:[c],M=z.length>0,Z={padding:R,boundary:z.filter(Ak),altBoundary:M},{refs:A,floatingStyles:Q,placement:W,isPositioned:q,middlewareData:_}=vk({strategy:"fixed",placement:P,whileElementsMounted:(...ie)=>ak(...ie,{animationFrame:m==="always"}),elements:{reference:x.anchor},middleware:[xk({mainAxis:s+N,alignmentAxis:i}),l&&wk({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?bk():void 0,...Z}),l&&Sk({...Z}),kk({...Z,apply:({elements:ie,rects:ve,availableWidth:De,availableHeight:et})=>{const{width:gt,height:vt}=ve.reference,tt=ie.floating.style;tt.setProperty("--radix-popper-available-width",`${De}px`),tt.setProperty("--radix-popper-available-height",`${et}px`),tt.setProperty("--radix-popper-anchor-width",`${gt}px`),tt.setProperty("--radix-popper-anchor-height",`${vt}px`)}}),S&&Ek({element:S,padding:a}),Ok({arrowWidth:E,arrowHeight:N}),g&&Ck({strategy:"referenceHidden",...Z})]}),[j,D]=ay(W),G=xr(w);yn(()=>{q&&(G==null||G())},[q,G]);const B=(J=_.arrow)==null?void 0:J.x,K=(_e=_.arrow)==null?void 0:_e.y,Y=((Ve=_.arrow)==null?void 0:Ve.centerOffset)!==0,[he,Ne]=b.useState();return yn(()=>{p&&Ne(window.getComputedStyle(p).zIndex)},[p]),u.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:q?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(Oe=_.transformOrigin)==null?void 0:Oe.x,(ce=_.transformOrigin)==null?void 0:ce.y].join(" "),...((V=_.hide)==null?void 0:V.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(Tk,{scope:n,placedSide:j,onArrowChange:k,arrowX:B,arrowY:K,shouldHideArrow:Y,children:u.jsx($e.div,{"data-side":j,"data-align":D,...v,ref:y,style:{...v.style,animation:q?void 0:"none"}})})})});sy.displayName=Wd;var oy="PopperArrow",Rk={top:"bottom",right:"left",bottom:"top",left:"right"},iy=b.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,o=Pk(oy,r),i=Rk[o.placedSide];return u.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:u.jsx(_k,{...s,ref:n,style:{...s.style,display:"block"}})})});iy.displayName=oy;function Ak(e){return e!==null}var Ok=e=>({name:"transformOrigin",options:e,fn(t){var x,p,h;const{placement:n,rects:r,middlewareData:s}=t,i=((x=s.arrow)==null?void 0:x.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,d]=ay(n),f={start:"0%",center:"50%",end:"100%"}[d],g=(((p=s.arrow)==null?void 0:p.x)??0)+a/2,m=(((h=s.arrow)==null?void 0:h.y)??0)+l/2;let w="",v="";return c==="bottom"?(w=i?f:`${g}px`,v=`${-l}px`):c==="top"?(w=i?f:`${g}px`,v=`${r.floating.height+l}px`):c==="right"?(w=`${-l}px`,v=i?f:`${m}px`):c==="left"&&(w=`${r.floating.width+l}px`,v=i?f:`${m}px`),{data:{x:w,y:v}}}});function ay(e){const[t,n="center"]=e.split("-");return[t,n]}var Lk=ry,Ik=sy,Mk=iy,[kl,Q_]=Xs("Tooltip",[ey]),qd=ey(),ly="TooltipProvider",Dk=700,Gp="tooltip.open",[zk,cy]=kl(ly),uy=e=>{const{__scopeTooltip:t,delayDuration:n=Dk,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:o}=e,i=b.useRef(!0),a=b.useRef(!1),l=b.useRef(0);return b.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),u.jsx(zk,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:b.useCallback(c=>{a.current=c},[]),disableHoverableContent:s,children:o})};uy.displayName=ly;var dy="Tooltip",[Z_,Cl]=kl(dy),Su="TooltipTrigger",Fk=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Cl(Su,n),o=cy(Su,n),i=qd(n),a=b.useRef(null),l=Et(t,a,s.onTriggerChange),c=b.useRef(!1),d=b.useRef(!1),f=b.useCallback(()=>c.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),u.jsx(Lk,{asChild:!0,...i,children:u.jsx($e.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:l,onPointerMove:Ae(e.onPointerMove,g=>{g.pointerType!=="touch"&&!d.current&&!o.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:Ae(e.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:Ae(e.onPointerDown,()=>{s.open&&s.onClose(),c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Ae(e.onFocus,()=>{c.current||s.onOpen()}),onBlur:Ae(e.onBlur,s.onClose),onClick:Ae(e.onClick,s.onClose)})})});Fk.displayName=Su;var $k="TooltipPortal",[K_,Vk]=kl($k,{forceMount:void 0}),Hs="TooltipContent",fy=b.forwardRef((e,t)=>{const n=Vk(Hs,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...o}=e,i=Cl(Hs,e.__scopeTooltip);return u.jsx(hl,{present:r||i.open,children:i.disableHoverableContent?u.jsx(py,{side:s,...o,ref:t}):u.jsx(Bk,{side:s,...o,ref:t})})}),Bk=b.forwardRef((e,t)=>{const n=Cl(Hs,e.__scopeTooltip),r=cy(Hs,e.__scopeTooltip),s=b.useRef(null),o=Et(t,s),[i,a]=b.useState(null),{trigger:l,onClose:c}=n,d=s.current,{onPointerInTransitChange:f}=r,g=b.useCallback(()=>{a(null),f(!1)},[f]),m=b.useCallback((w,v)=>{const x=w.currentTarget,p={x:w.clientX,y:w.clientY},h=Gk(p,x.getBoundingClientRect()),y=Qk(p,h),S=Zk(v.getBoundingClientRect()),k=Yk([...y,...S]);a(k),f(!0)},[f]);return b.useEffect(()=>()=>g(),[g]),b.useEffect(()=>{if(l&&d){const w=x=>m(x,d),v=x=>m(x,l);return l.addEventListener("pointerleave",w),d.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",v)}}},[l,d,m,g]),b.useEffect(()=>{if(i){const w=v=>{const x=v.target,p={x:v.clientX,y:v.clientY},h=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),y=!Kk(p,i);h?g():y&&(g(),c())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,d,i,c,g]),u.jsx(py,{...e,ref:o})}),[Uk,Hk]=kl(dy,{isInside:!1}),Wk=Z1("TooltipContent"),py=b.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:i,...a}=e,l=Cl(Hs,n),c=qd(n),{onClose:d}=l;return b.useEffect(()=>(document.addEventListener(Gp,d),()=>document.removeEventListener(Gp,d)),[d]),b.useEffect(()=>{if(l.trigger){const f=g=>{const m=g.target;m!=null&&m.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),u.jsx(Rd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:u.jsxs(Ik,{"data-state":l.stateAttribute,...c,...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:[u.jsx(Wk,{children:r}),u.jsx(Uk,{scope:n,isInside:!0,children:u.jsx(yw,{id:l.contentId,role:"tooltip",children:s||r})})]})})});fy.displayName=Hs;var hy="TooltipArrow",qk=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=qd(n);return Hk(hy,n).isInside?null:u.jsx(Mk,{...s,...r,ref:t})});qk.displayName=hy;function Gk(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 Qk(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 Zk(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 Kk(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],l=t[i],c=a.x,d=a.y,f=l.x,g=l.y;d>r!=g>r&&n<(f-c)*(r-d)/(g-d)+c&&(s=!s)}return s}function Yk(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),Xk(t)}function Xk(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 Jk=uy,my=fy;const eC=Jk,tC=b.forwardRef(({className:e,sideOffset:t=4,...n},r)=>u.jsx(my,{ref:r,sideOffset:t,className:He("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}));tC.displayName=my.displayName;var El=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(){}},Nl=typeof window>"u"||"Deno"in globalThis;function Gt(){}function nC(e,t){return typeof e=="function"?e(t):e}function rC(e){return typeof e=="number"&&e>=0&&e!==1/0}function sC(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ku(e,t){return typeof e=="function"?e(t):e}function oC(e,t){return typeof e=="function"?e(t):e}function Qp(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:o,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Gd(i,t.options))return!1}else if(!ei(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||o&&!o(t))}function Zp(e,t){const{exact:n,status:r,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Jo(t.options.mutationKey)!==Jo(o))return!1}else if(!ei(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Gd(e,t){return((t==null?void 0:t.queryKeyHashFn)||Jo)(e)}function Jo(e){return JSON.stringify(e,(t,n)=>Cu(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function ei(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ei(e[n],t[n])):!1}function gy(e,t){if(e===t)return e;const n=Kp(e)&&Kp(t);if(n||Cu(e)&&Cu(t)){const r=n?e:Object.keys(e),s=r.length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{},l=new Set(r);let c=0;for(let d=0;d<i;d++){const f=n?d:o[d];(!n&&l.has(f)||n)&&e[f]===void 0&&t[f]===void 0?(a[f]=void 0,c++):(a[f]=gy(e[f],t[f]),a[f]===e[f]&&e[f]!==void 0&&c++)}return s===i&&c===s?e:a}return t}function Kp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Cu(e){if(!Yp(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Yp(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Yp(e){return Object.prototype.toString.call(e)==="[object Object]"}function iC(e){return new Promise(t=>{setTimeout(t,e)})}function aC(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?gy(e,t):t}function lC(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function cC(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Qd=Symbol();function vy(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Qd?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Lr,Xn,js,Th,uC=(Th=class extends El{constructor(){super();ue(this,Lr);ue(this,Xn);ue(this,js);ne(this,js,t=>{if(!Nl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,Xn)||this.setEventListener(T(this,js))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Xn))==null||t.call(this),ne(this,Xn,void 0))}setEventListener(t){var n;ne(this,js,t),(n=T(this,Xn))==null||n.call(this),ne(this,Xn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){T(this,Lr)!==t&&(ne(this,Lr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,Lr)=="boolean"?T(this,Lr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Lr=new WeakMap,Xn=new WeakMap,js=new WeakMap,Th),yy=new uC,Ts,Jn,Ps,Ph,dC=(Ph=class extends El{constructor(){super();ue(this,Ts,!0);ue(this,Jn);ue(this,Ps);ne(this,Ps,t=>{if(!Nl&&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(){T(this,Jn)||this.setEventListener(T(this,Ps))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Jn))==null||t.call(this),ne(this,Jn,void 0))}setEventListener(t){var n;ne(this,Ps,t),(n=T(this,Jn))==null||n.call(this),ne(this,Jn,t(this.setOnline.bind(this)))}setOnline(t){T(this,Ts)!==t&&(ne(this,Ts,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return T(this,Ts)}},Ts=new WeakMap,Jn=new WeakMap,Ps=new WeakMap,Ph),Ba=new dC;function fC(){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 pC(e){return Math.min(1e3*2**e,3e4)}function xy(e){return(e??"online")==="online"?Ba.isOnline():!0}var wy=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function vc(e){return e instanceof wy}function by(e){let t=!1,n=0,r=!1,s;const o=fC(),i=v=>{var x;r||(g(new wy(v)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>yy.isFocused()&&(e.networkMode==="always"||Ba.isOnline())&&e.canRun(),d=()=>xy(e.networkMode)&&e.canRun(),f=v=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,v),s==null||s(),o.resolve(v))},g=v=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,v),s==null||s(),o.reject(v))},m=()=>new Promise(v=>{var x;s=p=>{(r||c())&&v(p)},(x=e.onPause)==null||x.call(e)}).then(()=>{var v;s=void 0,r||(v=e.onContinue)==null||v.call(e)}),w=()=>{if(r)return;let v;const x=n===0?e.initialPromise:void 0;try{v=x??e.fn()}catch(p){v=Promise.reject(p)}Promise.resolve(v).then(f).catch(p=>{var C;if(r)return;const h=e.retry??(Nl?0:3),y=e.retryDelay??pC,S=typeof y=="function"?y(n,p):y,k=h===!0||typeof h=="number"&&n<h||typeof h=="function"&&h(n,p);if(t||!k){g(p);return}n++,(C=e.onFail)==null||C.call(e,n,p),iC(S).then(()=>c()?void 0:m()).then(()=>{t?g(p):w()})})};return{promise:o,cancel:i,continue:()=>(s==null||s(),o),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?w():m().then(w),o)}}var hC=e=>setTimeout(e,0);function mC(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=hC;const o=a=>{t?e.push(a):s(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var st=mC(),Ir,Rh,Sy=(Rh=class{constructor(){ue(this,Ir)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),rC(this.gcTime)&&ne(this,Ir,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Nl?1/0:5*60*1e3))}clearGcTimeout(){T(this,Ir)&&(clearTimeout(T(this,Ir)),ne(this,Ir,void 0))}},Ir=new WeakMap,Rh),Rs,Mr,Tt,Dr,Ye,ci,zr,Qt,kn,Ah,gC=(Ah=class extends Sy{constructor(t){super();ue(this,Qt);ue(this,Rs);ue(this,Mr);ue(this,Tt);ue(this,Dr);ue(this,Ye);ue(this,ci);ue(this,zr);ne(this,zr,!1),ne(this,ci,t.defaultOptions),this.setOptions(t.options),this.observers=[],ne(this,Dr,t.client),ne(this,Tt,T(this,Dr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ne(this,Rs,yC(this.options)),this.state=t.state??T(this,Rs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,Ye))==null?void 0:t.promise}setOptions(t){this.options={...T(this,ci),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,Tt).remove(this)}setData(t,n){const r=aC(this.state.data,t,this.options);return Qe(this,Qt,kn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Qe(this,Qt,kn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=T(this,Ye))==null?void 0:r.promise;return(s=T(this,Ye))==null||s.cancel(t),n?n.then(Gt).catch(Gt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Rs))}isActive(){return this.observers.some(t=>oC(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Qd||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ku(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!sC(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Ye))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Ye))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,Tt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,Ye)&&(T(this,zr)?T(this,Ye).cancel({revert:!0}):T(this,Ye).cancelRetry()),this.scheduleGc()),T(this,Tt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Qe(this,Qt,kn).call(this,{type:"invalidate"})}fetch(t,n){var c,d,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,Ye))return T(this,Ye).continueRetry(),T(this,Ye).promise}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(m=>m.options.queryFn);g&&this.setOptions(g.options)}const r=new AbortController,s=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(ne(this,zr,!0),r.signal)})},o=()=>{const g=vy(this.options,n),w=(()=>{const v={client:T(this,Dr),queryKey:this.queryKey,meta:this.meta};return s(v),v})();return ne(this,zr,!1),this.options.persister?this.options.persister(g,w,this):g(w)},a=(()=>{const g={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,Dr),state:this.state,fetchFn:o};return s(g),g})();(c=this.options.behavior)==null||c.onFetch(a,this),ne(this,Mr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&Qe(this,Qt,kn).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const l=g=>{var m,w,v,x;vc(g)&&g.silent||Qe(this,Qt,kn).call(this,{type:"error",error:g}),vc(g)||((w=(m=T(this,Tt).config).onError)==null||w.call(m,g,this),(x=(v=T(this,Tt).config).onSettled)==null||x.call(v,this.state.data,g,this)),this.scheduleGc()};return ne(this,Ye,by({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:g=>{var m,w,v,x;if(g===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(g)}catch(p){l(p);return}(w=(m=T(this,Tt).config).onSuccess)==null||w.call(m,g,this),(x=(v=T(this,Tt).config).onSettled)==null||x.call(v,g,this.state.error,this),this.scheduleGc()},onError:l,onFail:(g,m)=>{Qe(this,Qt,kn).call(this,{type:"failed",failureCount:g,error:m})},onPause:()=>{Qe(this,Qt,kn).call(this,{type:"pause"})},onContinue:()=>{Qe(this,Qt,kn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),T(this,Ye).start()}},Rs=new WeakMap,Mr=new WeakMap,Tt=new WeakMap,Dr=new WeakMap,Ye=new WeakMap,ci=new WeakMap,zr=new WeakMap,Qt=new WeakSet,kn=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,...vC(r.data,this.options),fetchMeta:t.meta??null};case"success":return ne(this,Mr,void 0),{...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 vc(s)&&s.revert&&T(this,Mr)?{...T(this,Mr),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),st.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),T(this,Tt).notify({query:this,type:"updated",action:t})})},Ah);function vC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xy(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function yC(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 cn,Oh,xC=(Oh=class extends El{constructor(t={}){super();ue(this,cn);this.config=t,ne(this,cn,new Map)}build(t,n,r){const s=n.queryKey,o=n.queryHash??Gd(s,n);let i=this.get(o);return i||(i=new gC({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(i)),i}add(t){T(this,cn).has(t.queryHash)||(T(this,cn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,cn).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,cn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){st.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,cn).get(t)}getAll(){return[...T(this,cn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Qp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Qp(t,r)):n}notify(t){st.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){st.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){st.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},cn=new WeakMap,Oh),un,nt,Fr,dn,qn,Lh,wC=(Lh=class extends Sy{constructor(t){super();ue(this,dn);ue(this,un);ue(this,nt);ue(this,Fr);this.mutationId=t.mutationId,ne(this,nt,t.mutationCache),ne(this,un,[]),this.state=t.state||bC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,un).includes(t)||(T(this,un).push(t),this.clearGcTimeout(),T(this,nt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ne(this,un,T(this,un).filter(n=>n!==t)),this.scheduleGc(),T(this,nt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,un).length||(this.state.status==="pending"?this.scheduleGc():T(this,nt).remove(this))}continue(){var t;return((t=T(this,Fr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,a,l,c,d,f,g,m,w,v,x,p,h,y,S,k,C,E,N;const n=()=>{Qe(this,dn,qn).call(this,{type:"continue"})};ne(this,Fr,by({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,R)=>{Qe(this,dn,qn).call(this,{type:"failed",failureCount:P,error:R})},onPause:()=>{Qe(this,dn,qn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,nt).canRun(this)}));const r=this.state.status==="pending",s=!T(this,Fr).canStart();try{if(r)n();else{Qe(this,dn,qn).call(this,{type:"pending",variables:t,isPaused:s}),await((i=(o=T(this,nt).config).onMutate)==null?void 0:i.call(o,t,this));const R=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));R!==this.state.context&&Qe(this,dn,qn).call(this,{type:"pending",context:R,variables:t,isPaused:s})}const P=await T(this,Fr).start();return await((d=(c=T(this,nt).config).onSuccess)==null?void 0:d.call(c,P,t,this.state.context,this)),await((g=(f=this.options).onSuccess)==null?void 0:g.call(f,P,t,this.state.context)),await((w=(m=T(this,nt).config).onSettled)==null?void 0:w.call(m,P,null,this.state.variables,this.state.context,this)),await((x=(v=this.options).onSettled)==null?void 0:x.call(v,P,null,t,this.state.context)),Qe(this,dn,qn).call(this,{type:"success",data:P}),P}catch(P){try{throw await((h=(p=T(this,nt).config).onError)==null?void 0:h.call(p,P,t,this.state.context,this)),await((S=(y=this.options).onError)==null?void 0:S.call(y,P,t,this.state.context)),await((C=(k=T(this,nt).config).onSettled)==null?void 0:C.call(k,void 0,P,this.state.variables,this.state.context,this)),await((N=(E=this.options).onSettled)==null?void 0:N.call(E,void 0,P,t,this.state.context)),P}finally{Qe(this,dn,qn).call(this,{type:"error",error:P})}}finally{T(this,nt).runNext(this)}}},un=new WeakMap,nt=new WeakMap,Fr=new WeakMap,dn=new WeakSet,qn=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),st.batch(()=>{T(this,un).forEach(r=>{r.onMutationUpdate(t)}),T(this,nt).notify({mutation:this,type:"updated",action:t})})},Lh);function bC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Nn,Zt,ui,Ih,SC=(Ih=class extends El{constructor(t={}){super();ue(this,Nn);ue(this,Zt);ue(this,ui);this.config=t,ne(this,Nn,new Set),ne(this,Zt,new Map),ne(this,ui,0)}build(t,n,r){const s=new wC({mutationCache:this,mutationId:++_i(this,ui)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){T(this,Nn).add(t);const n=Zi(t);if(typeof n=="string"){const r=T(this,Zt).get(n);r?r.push(t):T(this,Zt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,Nn).delete(t)){const n=Zi(t);if(typeof n=="string"){const r=T(this,Zt).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&T(this,Zt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Zi(t);if(typeof n=="string"){const r=T(this,Zt).get(n),s=r==null?void 0:r.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Zi(t);if(typeof n=="string"){const s=(r=T(this,Zt).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){st.batch(()=>{T(this,Nn).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,Nn).clear(),T(this,Zt).clear()})}getAll(){return Array.from(T(this,Nn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Zp(n,r))}findAll(t={}){return this.getAll().filter(n=>Zp(t,n))}notify(t){st.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return st.batch(()=>Promise.all(t.map(n=>n.continue().catch(Gt))))}},Nn=new WeakMap,Zt=new WeakMap,ui=new WeakMap,Ih);function Zi(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Xp(e){return{onFetch:(t,n)=>{var d,f,g,m,w;const r=t.options,s=(g=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:g.direction,o=((m=t.state.data)==null?void 0:m.pages)||[],i=((w=t.state.data)==null?void 0:w.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let v=!1;const x=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},p=vy(t.options,t.fetchOptions),h=async(y,S,k)=>{if(v)return Promise.reject();if(S==null&&y.pages.length)return Promise.resolve(y);const E=(()=>{const z={client:t.client,queryKey:t.queryKey,pageParam:S,direction:k?"backward":"forward",meta:t.options.meta};return x(z),z})(),N=await p(E),{maxPages:P}=t.options,R=k?cC:lC;return{pages:R(y.pages,N,P),pageParams:R(y.pageParams,S,P)}};if(s&&o.length){const y=s==="backward",S=y?kC:Jp,k={pages:o,pageParams:i},C=S(r,k);a=await h(k,C,y)}else{const y=e??o.length;do{const S=l===0?i[0]??r.initialPageParam:Jp(r,a);if(l>0&&S==null)break;a=await h(a,S),l++}while(l<y)}return a};t.options.persister?t.fetchFn=()=>{var v,x;return(x=(v=t.options).persister)==null?void 0:x.call(v,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Jp(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 kC(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 je,er,tr,As,Os,nr,Ls,Is,Mh,CC=(Mh=class{constructor(e={}){ue(this,je);ue(this,er);ue(this,tr);ue(this,As);ue(this,Os);ue(this,nr);ue(this,Ls);ue(this,Is);ne(this,je,e.queryCache||new xC),ne(this,er,e.mutationCache||new SC),ne(this,tr,e.defaultOptions||{}),ne(this,As,new Map),ne(this,Os,new Map),ne(this,nr,0)}mount(){_i(this,nr)._++,T(this,nr)===1&&(ne(this,Ls,yy.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,je).onFocus())})),ne(this,Is,Ba.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,je).onOnline())})))}unmount(){var e,t;_i(this,nr)._--,T(this,nr)===0&&((e=T(this,Ls))==null||e.call(this),ne(this,Ls,void 0),(t=T(this,Is))==null||t.call(this),ne(this,Is,void 0))}isFetching(e){return T(this,je).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,er).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,je).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,je).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ku(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return T(this,je).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=T(this,je).get(r.queryHash),o=s==null?void 0:s.state.data,i=nC(t,o);if(i!==void 0)return T(this,je).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return st.batch(()=>T(this,je).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,je).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,je);st.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,je);return st.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=st.batch(()=>T(this,je).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Gt).catch(Gt)}invalidateQueries(e,t={}){return st.batch(()=>(T(this,je).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=st.batch(()=>T(this,je).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(Gt)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Gt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,je).build(this,t);return n.isStaleByTime(ku(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Gt).catch(Gt)}fetchInfiniteQuery(e){return e.behavior=Xp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Gt).catch(Gt)}ensureInfiniteQueryData(e){return e.behavior=Xp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ba.isOnline()?T(this,er).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,je)}getMutationCache(){return T(this,er)}getDefaultOptions(){return T(this,tr)}setDefaultOptions(e){ne(this,tr,e)}setQueryDefaults(e,t){T(this,As).set(Jo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,As).values()],n={};return t.forEach(r=>{ei(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){T(this,Os).set(Jo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,Os).values()],n={};return t.forEach(r=>{ei(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,tr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Gd(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.queryFn===Qd&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,tr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,je).clear(),T(this,er).clear()}},je=new WeakMap,er=new WeakMap,tr=new WeakMap,As=new WeakMap,Os=new WeakMap,nr=new WeakMap,Ls=new WeakMap,Is=new WeakMap,Mh),EC=b.createContext(void 0),NC=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(EC.Provider,{value:e,children:t}));/**
* @remix-run/router v1.23.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 ti(){return ti=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},ti.apply(this,arguments)}var or;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(or||(or={}));const eh="popstate";function _C(e){e===void 0&&(e={});function t(r,s){let{pathname:o,search:i,hash:a}=r.location;return Eu("",{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:Ua(s)}return TC(t,n,null,e)}function Ie(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ky(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function jC(){return Math.random().toString(36).substr(2,8)}function th(e,t){return{usr:e.state,key:e.key,idx:t}}function Eu(e,t,n,r){return n===void 0&&(n=null),ti({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?no(t):t,{state:n,key:t&&t.key||r||jC()})}function Ua(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 no(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 TC(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:o=!1}=r,i=s.history,a=or.Pop,l=null,c=d();c==null&&(c=0,i.replaceState(ti({},i.state,{idx:c}),""));function d(){return(i.state||{idx:null}).idx}function f(){a=or.Pop;let x=d(),p=x==null?null:x-c;c=x,l&&l({action:a,location:v.location,delta:p})}function g(x,p){a=or.Push;let h=Eu(v.location,x,p);c=d()+1;let y=th(h,c),S=v.createHref(h);try{i.pushState(y,"",S)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;s.location.assign(S)}o&&l&&l({action:a,location:v.location,delta:1})}function m(x,p){a=or.Replace;let h=Eu(v.location,x,p);c=d();let y=th(h,c),S=v.createHref(h);i.replaceState(y,"",S),o&&l&&l({action:a,location:v.location,delta:0})}function w(x){let p=s.location.origin!=="null"?s.location.origin:s.location.href,h=typeof x=="string"?x:Ua(x);return h=h.replace(/ $/,"%20"),Ie(p,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,p)}let v={get action(){return a},get location(){return e(s,i)},listen(x){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(eh,f),l=x,()=>{s.removeEventListener(eh,f),l=null}},createHref(x){return t(s,x)},createURL:w,encodeLocation(x){let p=w(x);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:g,replace:m,go(x){return i.go(x)}};return v}var nh;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(nh||(nh={}));function PC(e,t,n){return n===void 0&&(n="/"),RC(e,t,n,!1)}function RC(e,t,n,r){let s=typeof t=="string"?no(t):t,o=Zd(s.pathname||"/",n);if(o==null)return null;let i=Cy(e);AC(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let c=UC(o);a=VC(i[l],c,r)}return a}function Cy(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(o,i,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(Ie(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=mr([r,l.relativePath]),d=n.concat(l);o.children&&o.children.length>0&&(Ie(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Cy(o.children,t,d,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:FC(c,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 l of Ey(o.path))s(o,i,l)}),t}function Ey(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=Ey(r.join("/")),a=[];return a.push(...i.map(l=>l===""?o:[o,l].join("/"))),s&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function AC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:$C(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const OC=/^:[\w-]+$/,LC=3,IC=2,MC=1,DC=10,zC=-2,rh=e=>e==="*";function FC(e,t){let n=e.split("/"),r=n.length;return n.some(rh)&&(r+=zC),t&&(r+=IC),n.filter(s=>!rh(s)).reduce((s,o)=>s+(OC.test(o)?LC:o===""?MC:DC),r)}function $C(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 VC(e,t,n){let{routesMeta:r}=e,s={},o="/",i=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,d=o==="/"?t:t.slice(o.length)||"/",f=sh({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),g=l.route;if(!f&&c&&n&&!r[r.length-1].route.index&&(f=sh({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!f)return null;Object.assign(s,f.params),i.push({params:s,pathname:mr([o,f.pathname]),pathnameBase:GC(mr([o,f.pathnameBase])),route:g}),f.pathnameBase!=="/"&&(o=mr([o,f.pathnameBase]))}return i}function sh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=BC(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((c,d,f)=>{let{paramName:g,isOptional:m}=d;if(g==="*"){let v=a[f]||"";i=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const w=a[f];return m&&!w?c[g]=void 0:c[g]=(w||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:i,pattern:e}}function BC(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ky(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,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function UC(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ky(!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 Zd(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 HC(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?no(e):e;return{pathname:n?n.startsWith("/")?n:WC(n,t):t,search:QC(r),hash:ZC(s)}}function WC(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 yc(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 qC(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ny(e,t){let n=qC(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function _y(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=no(e):(s=ti({},e),Ie(!s.pathname||!s.pathname.includes("?"),yc("?","pathname","search",s)),Ie(!s.pathname||!s.pathname.includes("#"),yc("#","pathname","hash",s)),Ie(!s.search||!s.search.includes("#"),yc("#","search","hash",s)));let o=e===""||s.pathname==="",i=o?"/":s.pathname,a;if(i==null)a=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),f-=1;s.pathname=g.join("/")}a=f>=0?t[f]:"/"}let l=HC(s,a),c=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const mr=e=>e.join("/").replace(/\/\/+/g,"/"),GC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),QC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ZC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function KC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const jy=["post","put","patch","delete"];new Set(jy);const YC=["get",...jy];new Set(YC);/**
* React Router v6.30.1
*
* 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 ni(){return ni=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},ni.apply(this,arguments)}const Kd=b.createContext(null),XC=b.createContext(null),Jr=b.createContext(null),_l=b.createContext(null),es=b.createContext({outlet:null,matches:[],isDataRoute:!1}),Ty=b.createContext(null);function JC(e,t){let{relative:n}=t===void 0?{}:t;xi()||Ie(!1);let{basename:r,navigator:s}=b.useContext(Jr),{hash:o,pathname:i,search:a}=Ay(e,{relative:n}),l=i;return r!=="/"&&(l=i==="/"?r:mr([r,i])),s.createHref({pathname:l,search:a,hash:o})}function xi(){return b.useContext(_l)!=null}function wi(){return xi()||Ie(!1),b.useContext(_l).location}function Py(e){b.useContext(Jr).static||b.useLayoutEffect(e)}function Ry(){let{isDataRoute:e}=b.useContext(es);return e?fE():eE()}function eE(){xi()||Ie(!1);let e=b.useContext(Kd),{basename:t,future:n,navigator:r}=b.useContext(Jr),{matches:s}=b.useContext(es),{pathname:o}=wi(),i=JSON.stringify(Ny(s,n.v7_relativeSplatPath)),a=b.useRef(!1);return Py(()=>{a.current=!0}),b.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let f=_y(c,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:mr([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,i,o,e])}function Ay(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=b.useContext(Jr),{matches:s}=b.useContext(es),{pathname:o}=wi(),i=JSON.stringify(Ny(s,r.v7_relativeSplatPath));return b.useMemo(()=>_y(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function tE(e,t){return nE(e,t)}function nE(e,t,n,r){xi()||Ie(!1);let{navigator:s}=b.useContext(Jr),{matches:o}=b.useContext(es),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let c=wi(),d;if(t){var f;let x=typeof t=="string"?no(t):t;l==="/"||(f=x.pathname)!=null&&f.startsWith(l)||Ie(!1),d=x}else d=c;let g=d.pathname||"/",m=g;if(l!=="/"){let x=l.replace(/^\//,"").split("/");m="/"+g.replace(/^\//,"").split("/").slice(x.length).join("/")}let w=PC(e,{pathname:m}),v=aE(w&&w.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:mr([l,s.encodeLocation?s.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:mr([l,s.encodeLocation?s.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&v?b.createElement(_l.Provider,{value:{location:ni({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:or.Pop}},v):v}function rE(){let e=dE(),t=KC(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 b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:s},n):null,null)}const sE=b.createElement(rE,null);class oE extends b.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?b.createElement(es.Provider,{value:this.props.routeContext},b.createElement(Ty.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function iE(e){let{routeContext:t,match:n,children:r}=e,s=b.useContext(Kd);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(es.Provider,{value:t},r)}function aE(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(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||Ie(!1),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<i.length;d++){let f=i[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:g,errors:m}=n,w=f.route.loader&&g[f.route.id]===void 0&&(!m||m[f.route.id]===void 0);if(f.route.lazy||w){l=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((d,f,g)=>{let m,w=!1,v=null,x=null;n&&(m=a&&f.route.id?a[f.route.id]:void 0,v=f.route.errorElement||sE,l&&(c<0&&g===0?(w=!0,x=null):c===g&&(w=!0,x=f.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,g+1)),h=()=>{let y;return m?y=v:w?y=x:f.route.Component?y=b.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=d,b.createElement(iE,{match:f,routeContext:{outlet:d,matches:p,isDataRoute:n!=null},children:y})};return n&&(f.route.ErrorBoundary||f.route.errorElement||g===0)?b.createElement(oE,{location:n.location,revalidation:n.revalidation,component:v,error:m,children:h(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):h()},null)}var Oy=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Oy||{}),Ha=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}(Ha||{});function lE(e){let t=b.useContext(Kd);return t||Ie(!1),t}function cE(e){let t=b.useContext(XC);return t||Ie(!1),t}function uE(e){let t=b.useContext(es);return t||Ie(!1),t}function Ly(e){let t=uE(),n=t.matches[t.matches.length-1];return n.route.id||Ie(!1),n.route.id}function dE(){var e;let t=b.useContext(Ty),n=cE(Ha.UseRouteError),r=Ly(Ha.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function fE(){let{router:e}=lE(Oy.UseNavigateStable),t=Ly(Ha.UseNavigateStable),n=b.useRef(!1);return Py(()=>{n.current=!0}),b.useCallback(function(s,o){o===void 0&&(o={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,ni({fromRouteId:t},o)))},[e,t])}function pE(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Pr(e){Ie(!1)}function hE(e){let{basename:t="/",children:n=null,location:r,navigationType:s=or.Pop,navigator:o,static:i=!1,future:a}=e;xi()&&Ie(!1);let l=t.replace(/^\/*/,"/"),c=b.useMemo(()=>({basename:l,navigator:o,static:i,future:ni({v7_relativeSplatPath:!1},a)}),[l,a,o,i]);typeof r=="string"&&(r=no(r));let{pathname:d="/",search:f="",hash:g="",state:m=null,key:w="default"}=r,v=b.useMemo(()=>{let x=Zd(d,l);return x==null?null:{location:{pathname:x,search:f,hash:g,state:m,key:w},navigationType:s}},[l,d,f,g,m,w,s]);return v==null?null:b.createElement(Jr.Provider,{value:c},b.createElement(_l.Provider,{children:n,value:v}))}function mE(e){let{children:t,location:n}=e;return tE(Nu(t),n)}new Promise(()=>{});function Nu(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,s)=>{if(!b.isValidElement(r))return;let o=[...t,s];if(r.type===b.Fragment){n.push.apply(n,Nu(r.props.children,o));return}r.type!==Pr&&Ie(!1),!r.props.index||!r.props.children||Ie(!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=Nu(r.props.children,o)),n.push(i)}),n}/**
* React Router DOM v6.30.1
*
* 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 _u(){return _u=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},_u.apply(this,arguments)}function gE(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 vE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function yE(e,t){return e.button===0&&(!t||t==="_self")&&!vE(e)}const xE=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],wE="6";try{window.__reactRouterVersion=wE}catch{}const bE="startTransition",oh=$u[bE];function SE(e){let{basename:t,children:n,future:r,window:s}=e,o=b.useRef();o.current==null&&(o.current=_C({window:s,v5Compat:!0}));let i=o.current,[a,l]=b.useState({action:i.action,location:i.location}),{v7_startTransition:c}=r||{},d=b.useCallback(f=>{c&&oh?oh(()=>l(f)):l(f)},[l,c]);return b.useLayoutEffect(()=>i.listen(d),[i,d]),b.useEffect(()=>pE(r),[r]),b.createElement(hE,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const kE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",CE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qr=b.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:o,replace:i,state:a,target:l,to:c,preventScrollReset:d,viewTransition:f}=t,g=gE(t,xE),{basename:m}=b.useContext(Jr),w,v=!1;if(typeof c=="string"&&CE.test(c)&&(w=c,kE))try{let y=new URL(window.location.href),S=c.startsWith("//")?new URL(y.protocol+c):new URL(c),k=Zd(S.pathname,m);S.origin===y.origin&&k!=null?c=k+S.search+S.hash:v=!0}catch{}let x=JC(c,{relative:s}),p=EE(c,{replace:i,state:a,target:l,preventScrollReset:d,relative:s,viewTransition:f});function h(y){r&&r(y),y.defaultPrevented||p(y)}return b.createElement("a",_u({},g,{href:w||x,onClick:v||o?r:h,ref:n,target:l}))});var ih;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ih||(ih={}));var ah;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ah||(ah={}));function EE(e,t){let{target:n,replace:r,state:s,preventScrollReset:o,relative:i,viewTransition:a}=t===void 0?{}:t,l=Ry(),c=wi(),d=Ay(e,{relative:i});return b.useCallback(f=>{if(yE(f,n)){f.preventDefault();let g=r!==void 0?r:Ua(c)===Ua(d);l(e,{replace:g,state:s,preventScrollReset:o,relative:i,viewTransition:a})}},[c,l,d,r,s,n,e,o,i,a])}const ts="/assets/logo-lead-artisan-Bij7FzPY.png",Yd=()=>{const[e,t]=b.useState(!1);return b.useEffect(()=>{const n=()=>t(window.scrollY>10);return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)},[]),u.jsx("header",{className:`fixed top-0 left-0 right-0 z-50 bg-background transition-shadow duration-300 ${e?"shadow-md":""}`,children:u.jsxs("div",{className:"container-content flex items-center justify-between px-3 py-2 md:px-8 md:py-3",children:[u.jsx("img",{src:ts,alt:"Lead Artisan",className:"h-10 md:h-16 w-auto"}),u.jsx("p",{className:"hidden lg:block text-sm font-medium text-muted-foreground",children:"Audit gratuit de votre fiche Google"}),u.jsxs("a",{href:"tel:+33783558075",className:"flex items-center gap-2 text-xs md:text-sm font-bold whitespace-nowrap rounded-full px-4 py-2 md:px-5 md:py-2.5 gradient-accent text-accent-foreground shadow-md hover:shadow-lg transition-all duration-300 hover:scale-105",children:[u.jsx(xl,{className:"w-4 h-4 shrink-0"}),u.jsx("span",{children:"07 83 55 80 75"})]})]})})},NE="/assets/hero-phone-mockup-DNmscvHb.png",_E="/assets/google-business-profile-Es-1iphE.webp",jE=["Sans engagement","RĂ©sultats dĂšs 30 jours","SpĂ©cialiste artisans BTP"],TE=()=>{const e=()=>{var t;(t=document.getElementById("cta-final"))==null||t.scrollIntoView({behavior:"smooth"})};return u.jsxs("section",{className:"gradient-primary pt-28 pb-16 md:pt-32 md:pb-24 relative overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 lg:hidden bg-cover bg-center",style:{backgroundImage:`url(${_E})`},children:u.jsx("div",{className:"absolute inset-0 bg-primary/85"})}),u.jsx("div",{className:"container-content px-4 md:px-8 relative z-10",children:u.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-12",children:[u.jsxs("div",{className:"flex-1 text-primary-foreground",children:[u.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-extrabold leading-tight mb-6",children:"Artisans : recevez plus d'appels et dĂ©crochez plus de chantiers grĂące Ă votre fiche Google"}),u.jsx("p",{className:"text-lg md:text-xl opacity-90 mb-8 leading-relaxed",children:"Nous optimisons et gĂ©rons votre fiche Google Business pour que les clients de votre zone vous trouvent EN PREMIER. Sans effort de votre part."}),u.jsxs("button",{id:"cta-hero",onClick:e,className:"gradient-accent text-accent-foreground font-bold text-lg px-8 py-4 rounded-lg hover:opacity-90 transition-opacity inline-flex items-center gap-2 shadow-lg",children:["Recevoir mon audit gratuit",u.jsx(ot,{className:"w-5 h-5"})]}),u.jsx("div",{className:"flex flex-wrap gap-4 mt-8",children:jE.map(t=>u.jsxs("div",{className:"flex items-center gap-2 bg-primary-foreground/10 backdrop-blur-sm rounded-full px-4 py-2 text-sm",children:[u.jsx(Da,{className:"w-4 h-4 text-accent"}),u.jsx("span",{children:t})]},t))})]}),u.jsx("div",{className:"hidden lg:block flex-shrink-0 w-64 md:w-80",children:u.jsx("img",{src:NE,alt:"Fiche Google Business optimisĂ©e d'un artisan avec 4.8 Ă©toiles",className:"w-full drop-shadow-2xl",loading:"eager"})})]})})]})},wt=()=>{const e=b.useRef(null);return b.useEffect(()=>{const t=new IntersectionObserver(r=>{r.forEach(s=>{s.isIntersecting&&s.target.classList.add("visible")})},{threshold:.1}),n=e.current;return n&&(n.querySelectorAll(".animate-on-scroll").forEach(s=>t.observe(s)),n.classList.contains("animate-on-scroll")&&t.observe(n)),()=>t.disconnect()},[]),e},PE=[{title:"Vos concurrents apparaissent avant vous",text:"Quand un client tape « plombier + votre ville » sur Google, ce sont vos concurrents qui s'affichent en premier. Pas vous. Et c'est eux qui reçoivent l'appel."},{title:"Votre fiche existe, mais elle ne travaille pas pour vous",text:"Pas de publications, des photos floues, une description vide⊠Votre fiche Google est comme une vitrine Ă©teinte. Les clients passent devant sans s'arrĂȘter."},{title:"Vos avis clients sont ignorĂ©s ou inexistants",text:"Un prospect hĂ©site entre vous et un concurrent. Il regarde les avis Google. Si vous en avez peu, ou si personne ne rĂ©pond aux avis existants, il choisit l'autre."},{title:"Vous n'avez pas le temps de gĂ©rer tout ça",text:"Votre mĂ©tier, c'est d'ĂȘtre sur les chantiers. Pas de passer des heures sur Google Ă publier des posts et gĂ©rer votre image en ligne."}],RE=()=>{const e=wt();return u.jsx("section",{className:"section-padding bg-surface-alt",ref:e,children:u.jsxs("div",{className:"container-content",children:[u.jsxs("div",{className:"flex flex-col items-center mb-14",children:[u.jsx("img",{src:ts,alt:"Lead Artisan",className:"h-20 w-auto mb-6 animate-on-scroll"}),u.jsx("h2",{className:"animate-on-scroll text-2xl md:text-3xl lg:text-4xl font-extrabold text-center text-foreground leading-tight max-w-3xl",children:"Votre fiche Google vous coĂ»te des chantiers chaque jour⊠sans que vous le sachiez"})]}),u.jsx("div",{className:"grid md:grid-cols-2 gap-6 lg:gap-8",children:PE.map((t,n)=>u.jsx("div",{className:"animate-on-scroll group relative bg-card rounded-2xl border border-border/60 p-7 md:p-8 shadow-sm hover:shadow-lg hover:border-destructive/30 transition-all duration-300",style:{transitionDelay:`${n*100}ms`},children:u.jsxs("div",{className:"flex gap-4 items-start",children:[u.jsx("div",{className:"w-10 h-10 rounded-full bg-destructive/10 flex items-center justify-center flex-shrink-0 mt-0.5 group-hover:bg-destructive/20 transition-colors",children:u.jsx(Vw,{className:"w-5 h-5 text-destructive"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"font-bold text-lg mb-2 text-foreground leading-snug",children:t.title}),u.jsx("p",{className:"text-muted-foreground leading-relaxed",children:t.text})]})]})},n))}),u.jsx("div",{className:"animate-on-scroll flex justify-center mt-10",children:u.jsxs("a",{href:"#cta-final",className:"gradient-accent text-accent-foreground font-bold text-lg px-8 py-4 rounded-lg hover:opacity-90 transition-opacity inline-flex items-center gap-2 shadow-lg",children:["Demander mon audit gratuit",u.jsx(ot,{className:"w-5 h-5"})]})})]})})},AE=[{value:"87%",label:"des Français utilisent Google pour trouver un artisan prĂšs de chez eux"},{value:"42%",label:"des clics vont au 1er rĂ©sultat affichĂ© sur le classement des fiches Google."},{value:"70%",label:"du potentiel d'appels est perdu avec une fiche non optimisĂ©e"}],OE=()=>{const e=wt();return u.jsx("section",{className:"section-padding bg-background",ref:e,children:u.jsxs("div",{className:"container-content text-center",children:[u.jsxs("div",{className:"flex flex-col items-center mb-14",children:[u.jsx("img",{src:ts,alt:"Lead Artisan",className:"h-20 w-auto mb-6 animate-on-scroll"}),u.jsx("h2",{className:"animate-on-scroll text-2xl md:text-3xl lg:text-4xl font-extrabold text-foreground leading-tight max-w-3xl",children:"Pendant que vous lisez ces lignes, des clients vous cherchent sur GoogleâŠ"}),u.jsx("p",{className:"animate-on-scroll text-lg text-muted-foreground mt-4",children:"La question est : est-ce qu'ils vous trouvent ?"})]}),u.jsx("div",{className:"grid md:grid-cols-3 gap-6 lg:gap-10 mb-14",children:AE.map((t,n)=>u.jsxs("div",{className:"animate-on-scroll flex flex-col items-center p-8 rounded-2xl bg-surface-alt",style:{transitionDelay:`${n*150}ms`},children:[u.jsx("div",{className:"text-5xl md:text-6xl lg:text-7xl font-black text-accent mb-4 tracking-tight",children:t.value}),u.jsx("div",{className:"w-12 h-0.5 bg-accent/30 rounded-full mb-4"}),u.jsx("p",{className:"text-muted-foreground leading-relaxed",children:t.label})]},n))}),u.jsx("div",{className:"animate-on-scroll",children:u.jsx("p",{className:"text-lg md:text-xl font-bold text-foreground bg-accent/5 border border-accent/20 rounded-xl px-8 py-5 inline-block",children:"Chaque jour sans fiche optimisĂ©e, c'est un chantier de plus qui va Ă votre concurrent."})}),u.jsx("div",{className:"animate-on-scroll flex justify-center mt-10",children:u.jsxs("a",{href:"#cta-final",className:"gradient-accent text-accent-foreground font-bold text-lg px-8 py-4 rounded-lg hover:opacity-90 transition-opacity inline-flex items-center gap-2 shadow-lg",children:["Demander mon audit gratuit",u.jsx(ot,{className:"w-5 h-5"})]})})]})})},lh=[{icon:Qw,num:"1",title:"Audit",text:"Nous analysons votre fiche Google en dĂ©tail et identifions tout ce qui vous fait perdre des clients : positionnement, catĂ©gories, photos, avis, publicationsâŠ"},{icon:Yw,num:"2",title:"Optimisation",text:"Nous optimisons votre fiche de A Ă Z : description percutante, mots-clĂ©s stratĂ©giques, photos professionnelles, catĂ©gories prĂ©cises, horaires Ă jour."},{icon:Gw,num:"3",title:"Gestion continue",text:"Chaque mois, nous publions du contenu sur votre fiche, rĂ©pondons Ă vos avis clients et vous envoyons un rapport clair de vos rĂ©sultats : vues, clics, appels."}],LE=()=>{const e=wt(),t=()=>{var n;(n=document.getElementById("cta-final"))==null||n.scrollIntoView({behavior:"smooth"})};return u.jsx("section",{className:"section-padding bg-surface-alt",ref:e,children:u.jsxs("div",{className:"container-content text-center",children:[u.jsxs("div",{className:"flex flex-col items-center mb-14",children:[u.jsx("img",{src:ts,alt:"Lead Artisan",className:"h-20 w-auto mb-6 animate-on-scroll"}),u.jsx("h2",{className:"animate-on-scroll text-2xl md:text-3xl lg:text-4xl font-extrabold text-foreground leading-tight max-w-3xl",children:"On s'occupe de tout. Vous, vous faites votre mĂ©tier."}),u.jsx("p",{className:"animate-on-scroll text-lg text-muted-foreground mt-4",children:"En 3 Ă©tapes simples, votre fiche Google devient votre meilleur commercial."})]}),u.jsx("div",{className:"grid md:grid-cols-3 gap-6 lg:gap-8 mb-14",children:lh.map((n,r)=>u.jsxs("div",{className:"animate-on-scroll group relative flex flex-col items-center bg-card rounded-2xl border border-border/60 p-8 md:p-10 shadow-sm hover:shadow-lg hover:border-accent/30 transition-all duration-300",style:{transitionDelay:`${r*150}ms`},children:[r<lh.length-1&&u.jsx("div",{className:"hidden md:block absolute top-14 -right-4 lg:-right-5 w-8 lg:w-10 h-0.5 bg-accent/30 z-10"}),u.jsx("div",{className:"w-16 h-16 rounded-full gradient-accent flex items-center justify-center mb-5 shadow-lg group-hover:scale-110 transition-transform duration-300",children:u.jsx(n.icon,{className:"w-7 h-7 text-accent-foreground"})}),u.jsxs("span",{className:"text-sm font-bold text-accent tracking-widest uppercase mb-2",children:["Ătape ",n.num]}),u.jsx("h3",{className:"text-xl font-bold mb-3 text-foreground",children:n.title}),u.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n.text})]},r))}),u.jsxs("button",{id:"cta-solution",onClick:t,className:"animate-on-scroll gradient-accent text-accent-foreground font-bold text-lg px-10 py-4 rounded-xl hover:opacity-90 transition-opacity inline-flex items-center gap-2 shadow-lg hover:shadow-xl hover:scale-[1.02] transition-all duration-300",children:["DĂ©marrer avec un audit gratuit",u.jsx(ot,{className:"w-5 h-5"})]})]})})},IE="/assets/logo-lead-artisan-blanc-B28E4zGp.png",ME=[{icon:qw,title:"Plus d'appels de clients qualifiĂ©s",text:"Votre tĂ©lĂ©phone sonne plus souvent avec des demandes de devis sĂ©rieuses, de clients qui sont dans votre zone et prĂȘts Ă engager un artisan."},{icon:Ww,title:"Vous apparaissez en haut des fiches Google",text:"Soyez le premier rĂ©sultat que les clients voient quand ils cherchent un artisan dans votre ville. La position n°1, c'est celle qui reçoit les appels."},{icon:Md,title:"Une rĂ©putation en bĂ©ton",text:"Vos avis clients sont gĂ©rĂ©s avec professionnalisme. Chaque avis reçoit une rĂ©ponse personnalisĂ©e. Votre note monte, votre crĂ©dibilitĂ© aussi."},{icon:Bw,title:"ZĂ©ro prise de tĂȘte",text:"Vous ne touchez Ă rien. On gĂšre tout, du premier post au dernier avis. Chaque mois, vous recevez un rapport clair qui prouve les rĂ©sultats."}],DE=()=>{const e=wt();return u.jsx("section",{className:"section-padding gradient-primary",ref:e,children:u.jsxs("div",{className:"container-content",children:[u.jsx("img",{src:IE,alt:"Lead Artisan",className:"h-16 w-auto mx-auto mb-6 animate-on-scroll"}),u.jsx("h2",{className:"animate-on-scroll text-2xl md:text-3xl lg:text-4xl font-bold text-center mb-12 text-primary-foreground",children:"Ce que Lead-Artisan change concrĂštement pour votre activitĂ©"}),u.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:ME.map((t,n)=>u.jsxs("div",{className:"animate-on-scroll flex gap-5 p-6 rounded-xl bg-primary-foreground/10 backdrop-blur-sm",style:{transitionDelay:`${n*100}ms`},children:[u.jsx("div",{className:"w-12 h-12 rounded-lg bg-accent/20 flex items-center justify-center flex-shrink-0",children:u.jsx(t.icon,{className:"w-6 h-6 text-accent"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"font-bold text-lg mb-2 text-primary-foreground",children:t.title}),u.jsx("p",{className:"text-primary-foreground/80 leading-relaxed",children:t.text})]})]},n))}),u.jsx("div",{className:"animate-on-scroll flex justify-center mt-10",children:u.jsxs("a",{href:"#cta-final",className:"bg-accent text-accent-foreground font-bold text-lg px-8 py-4 rounded-lg hover:opacity-90 transition-opacity inline-flex items-center gap-2 shadow-lg",children:["Demander mon audit gratuit",u.jsx(ot,{className:"w-5 h-5"})]})})]})})},zE={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function FE(e,t){const n=e.scrollSnapList();return typeof t=="number"?n.map(()=>t):t(n,e)}function $E(e,t){const n=e.rootNode();return t&&t(n)||n}function Xd(e={}){let t,n,r,s,o=null,i=0,a=!1,l=!1,c=!1,d=!1;function f(A,Q){n=A;const{mergeOptions:W,optionsAtMedia:q}=Q,_=W(zE,Xd.globalOptions),j=W(_,e);if(t=q(j),n.scrollSnapList().length<=1)return;d=t.jump,r=!1,s=FE(n,t.delay);const{eventStore:D,ownerDocument:G}=n.internalEngine(),B=!!n.internalEngine().options.watchDrag,K=$E(n,t.rootNode);D.add(G,"visibilitychange",p),B&&n.on("pointerDown",y),B&&!t.stopOnInteraction&&n.on("pointerUp",S),t.stopOnMouseEnter&&D.add(K,"mouseenter",k),t.stopOnMouseEnter&&!t.stopOnInteraction&&D.add(K,"mouseleave",C),t.stopOnFocusIn&&n.on("slideFocusStart",x),t.stopOnFocusIn&&!t.stopOnInteraction&&D.add(n.containerNode(),"focusout",v),t.playOnInit&&v()}function g(){n.off("pointerDown",y).off("pointerUp",S).off("slideFocusStart",x),x(),r=!0,a=!1}function m(){const{ownerWindow:A}=n.internalEngine();A.clearTimeout(i),i=A.setTimeout(z,s[n.selectedScrollSnap()]),o=new Date().getTime(),n.emit("autoplay:timerset")}function w(){const{ownerWindow:A}=n.internalEngine();A.clearTimeout(i),i=0,o=null,n.emit("autoplay:timerstopped")}function v(){if(!r){if(h()){c=!0;return}a||n.emit("autoplay:play"),m(),a=!0}}function x(){r||(a&&n.emit("autoplay:stop"),w(),a=!1)}function p(){if(h())return c=a,x();c&&v()}function h(){const{ownerDocument:A}=n.internalEngine();return A.visibilityState==="hidden"}function y(){l||x()}function S(){l||v()}function k(){l=!0,x()}function C(){l=!1,v()}function E(A){typeof A<"u"&&(d=A),v()}function N(){a&&x()}function P(){a&&v()}function R(){return a}function z(){const{index:A}=n.internalEngine(),Q=A.clone().add(1).get(),W=n.scrollSnapList().length-1,q=t.stopOnLastSnap&&Q===W;if(n.canScrollNext()?n.scrollNext(d):n.scrollTo(0,d),n.emit("autoplay:select"),q)return x();v()}function M(){if(!o)return null;const A=s[n.selectedScrollSnap()],Q=new Date().getTime()-o;return A-Q}return{name:"autoplay",options:e,init:f,destroy:g,play:E,stop:N,reset:P,isPlaying:R,timeUntilNext:M}}Xd.globalOptions=void 0;function VE(e){return Object.prototype.toString.call(e)==="[object Object]"}function ch(e){return VE(e)||Array.isArray(e)}function BE(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Jd(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],l=t[i];return typeof a=="function"?`${a}`==`${l}`:!ch(a)||!ch(l)?a===l:Jd(a,l)})}function uh(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function UE(e,t){if(e.length!==t.length)return!1;const n=uh(e),r=uh(t);return n.every((s,o)=>{const i=r[o];return Jd(s,i)})}function ef(e){return typeof e=="number"}function ju(e){return typeof e=="string"}function jl(e){return typeof e=="boolean"}function dh(e){return Object.prototype.toString.call(e)==="[object Object]"}function ke(e){return Math.abs(e)}function tf(e){return Math.sign(e)}function Oo(e,t){return ke(e-t)}function HE(e,t){if(e===0||t===0||ke(e)<=ke(t))return 0;const n=Oo(ke(e),ke(t));return ke(n/e)}function WE(e){return Math.round(e*100)/100}function ri(e){return si(e).map(Number)}function en(e){return e[bi(e)]}function bi(e){return Math.max(0,e.length-1)}function nf(e,t){return t===bi(e)}function fh(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function si(e){return Object.keys(e)}function Iy(e,t){return[e,t].reduce((n,r)=>(si(r).forEach(s=>{const o=n[s],i=r[s],a=dh(o)&&dh(i);n[s]=a?Iy(o,i):i}),n),{})}function Tu(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function qE(e,t){const n={start:r,center:s,end:o};function r(){return 0}function s(l){return o(l)/2}function o(l){return t-l}function i(l,c){return ju(e)?n[e](l):e(t,l,c)}return{measure:i}}function oi(){let e=[];function t(s,o,i,a={passive:!0}){let l;if("addEventListener"in s)s.addEventListener(o,i,a),l=()=>s.removeEventListener(o,i,a);else{const c=s;c.addListener(i),l=()=>c.removeListener(i)}return e.push(l),r}function n(){e=e.filter(s=>s())}const r={add:t,clear:n};return r}function GE(e,t,n,r){const s=oi(),o=1e3/60;let i=null,a=0,l=0;function c(){s.add(e,"visibilitychange",()=>{e.hidden&&w()})}function d(){m(),s.clear()}function f(x){if(!l)return;i||(i=x,n(),n());const p=x-i;for(i=x,a+=p;a>=o;)n(),a-=o;const h=a/o;r(h),l&&(l=t.requestAnimationFrame(f))}function g(){l||(l=t.requestAnimationFrame(f))}function m(){t.cancelAnimationFrame(l),i=null,a=0,l=0}function w(){i=null,a=0}return{init:c,destroy:d,start:g,stop:m,update:n,render:r}}function QE(e,t){const n=t==="rtl",r=e==="y",s=r?"y":"x",o=r?"x":"y",i=!r&&n?-1:1,a=d(),l=f();function c(w){const{height:v,width:x}=w;return r?v:x}function d(){return r?"top":n?"right":"left"}function f(){return r?"bottom":n?"left":"right"}function g(w){return w*i}return{scroll:s,cross:o,startEdge:a,endEdge:l,measureSize:c,direction:g}}function Zr(e=0,t=0){const n=ke(e-t);function r(c){return c<e}function s(c){return c>t}function o(c){return r(c)||s(c)}function i(c){return o(c)?r(c)?e:t:c}function a(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:i,reachedAny:o,reachedMax:s,reachedMin:r,removeOffset:a}}function My(e,t,n){const{constrain:r}=Zr(0,e),s=e+1;let o=i(t);function i(g){return n?ke((s+g)%s):r(g)}function a(){return o}function l(g){return o=i(g),f}function c(g){return d().set(a()+g)}function d(){return My(e,a(),n)}const f={get:a,set:l,add:c,clone:d};return f}function ZE(e,t,n,r,s,o,i,a,l,c,d,f,g,m,w,v,x,p,h){const{cross:y,direction:S}=e,k=["INPUT","SELECT","TEXTAREA"],C={passive:!1},E=oi(),N=oi(),P=Zr(50,225).constrain(m.measure(20)),R={mouse:300,touch:400},z={mouse:500,touch:600},M=w?43:25;let Z=!1,A=0,Q=0,W=!1,q=!1,_=!1,j=!1;function D(V){if(!h)return;function ie(De){(jl(h)||h(V,De))&&Ne(De)}const ve=t;E.add(ve,"dragstart",De=>De.preventDefault(),C).add(ve,"touchmove",()=>{},C).add(ve,"touchend",()=>{}).add(ve,"touchstart",ie).add(ve,"mousedown",ie).add(ve,"touchcancel",_e).add(ve,"contextmenu",_e).add(ve,"click",Ve,!0)}function G(){E.clear(),N.clear()}function B(){const V=j?n:t;N.add(V,"touchmove",J,C).add(V,"touchend",_e).add(V,"mousemove",J,C).add(V,"mouseup",_e)}function K(V){const ie=V.nodeName||"";return k.includes(ie)}function Y(){return(w?z:R)[j?"mouse":"touch"]}function he(V,ie){const ve=f.add(tf(V)*-1),De=d.byDistance(V,!w).distance;return w||ke(V)<P?De:x&&ie?De*.5:d.byIndex(ve.get(),0).distance}function Ne(V){const ie=Tu(V,r);j=ie,_=w&&ie&&!V.buttons&&Z,Z=Oo(s.get(),i.get())>=2,!(ie&&V.button!==0)&&(K(V.target)||(W=!0,o.pointerDown(V),c.useFriction(0).useDuration(0),s.set(i),B(),A=o.readPoint(V),Q=o.readPoint(V,y),g.emit("pointerDown")))}function J(V){if(!Tu(V,r)&&V.touches.length>=2)return _e(V);const ve=o.readPoint(V),De=o.readPoint(V,y),et=Oo(ve,A),gt=Oo(De,Q);if(!q&&!j&&(!V.cancelable||(q=et>gt,!q)))return _e(V);const vt=o.pointerMove(V);et>v&&(_=!0),c.useFriction(.3).useDuration(.75),a.start(),s.add(S(vt)),V.preventDefault()}function _e(V){const ve=d.byDistance(0,!1).index!==f.get(),De=o.pointerUp(V)*Y(),et=he(S(De),ve),gt=HE(De,et),vt=M-10*gt,tt=p+gt/50;q=!1,W=!1,N.clear(),c.useDuration(vt).useFriction(tt),l.distance(et,!w),j=!1,g.emit("pointerUp")}function Ve(V){_&&(V.stopPropagation(),V.preventDefault(),_=!1)}function Oe(){return W}return{init:D,destroy:G,pointerDown:Oe}}function KE(e,t){let r,s;function o(f){return f.timeStamp}function i(f,g){const w=`client${(g||e.scroll)==="x"?"X":"Y"}`;return(Tu(f,t)?f:f.touches[0])[w]}function a(f){return r=f,s=f,i(f)}function l(f){const g=i(f)-i(s),m=o(f)-o(r)>170;return s=f,m&&(r=f),g}function c(f){if(!r||!s)return 0;const g=i(s)-i(r),m=o(f)-o(r),w=o(f)-o(s)>170,v=g/m;return m&&!w&&ke(v)>.1?v:0}return{pointerDown:a,pointerMove:l,pointerUp:c,readPoint:i}}function YE(){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 XE(e){function t(r){return e*(r/100)}return{measure:t}}function JE(e,t,n,r,s,o,i){const a=[e].concat(r);let l,c,d=[],f=!1;function g(x){return s.measureSize(i.measure(x))}function m(x){if(!o)return;c=g(e),d=r.map(g);function p(h){for(const y of h){if(f)return;const S=y.target===e,k=r.indexOf(y.target),C=S?c:d[k],E=g(S?e:r[k]);if(ke(E-C)>=.5){x.reInit(),t.emit("resize");break}}}l=new ResizeObserver(h=>{(jl(o)||o(x,h))&&p(h)}),n.requestAnimationFrame(()=>{a.forEach(h=>l.observe(h))})}function w(){f=!0,l&&l.disconnect()}return{init:m,destroy:w}}function eN(e,t,n,r,s,o){let i=0,a=0,l=s,c=o,d=e.get(),f=0;function g(){const C=r.get()-e.get(),E=!l;let N=0;return E?(i=0,n.set(r),e.set(r),N=C):(n.set(e),i+=C/l,i*=c,d+=i,e.add(i),N=d-f),a=tf(N),f=d,k}function m(){const C=r.get()-t.get();return ke(C)<.001}function w(){return l}function v(){return a}function x(){return i}function p(){return y(s)}function h(){return S(o)}function y(C){return l=C,k}function S(C){return c=C,k}const k={direction:v,duration:w,velocity:x,seek:g,settled:m,useBaseFriction:h,useBaseDuration:p,useFriction:S,useDuration:y};return k}function tN(e,t,n,r,s){const o=s.measure(10),i=s.measure(50),a=Zr(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function d(m){if(!c())return;const w=e.reachedMin(t.get())?"min":"max",v=ke(e[w]-t.get()),x=n.get()-t.get(),p=a.constrain(v/i);n.subtract(x*p),!m&&ke(x)<o&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function f(m){l=!m}return{shouldConstrain:c,constrain:d,toggleActive:f}}function nN(e,t,n,r,s){const o=Zr(-t+e,0),i=f(),a=d(),l=g();function c(w,v){return Oo(w,v)<=1}function d(){const w=i[0],v=en(i),x=i.lastIndexOf(w),p=i.indexOf(v)+1;return Zr(x,p)}function f(){return n.map((w,v)=>{const{min:x,max:p}=o,h=o.constrain(w),y=!v,S=nf(n,v);return y?p:S||c(x,h)?x:c(p,h)?p:h}).map(w=>parseFloat(w.toFixed(3)))}function g(){if(t<=e+s)return[o.max];if(r==="keepSnaps")return i;const{min:w,max:v}=a;return i.slice(w,v)}return{snapsContained:l,scrollContainLimit:a}}function rN(e,t,n){const r=t[0],s=n?r-e:en(t);return{limit:Zr(s,r)}}function sN(e,t,n,r){const o=t.min+.1,i=t.max+.1,{reachedMin:a,reachedMax:l}=Zr(o,i);function c(g){return g===1?l(n.get()):g===-1?a(n.get()):!1}function d(g){if(!c(g))return;const m=e*(g*-1);r.forEach(w=>w.add(m))}return{loop:d}}function oN(e){const{max:t,length:n}=e;function r(o){const i=o-t;return n?i/-n:0}return{get:r}}function iN(e,t,n,r,s){const{startEdge:o,endEdge:i}=e,{groupSlides:a}=s,l=f().map(t.measure),c=g(),d=m();function f(){return a(r).map(v=>en(v)[i]-v[0][o]).map(ke)}function g(){return r.map(v=>n[o]-v[o]).map(v=>-ke(v))}function m(){return a(c).map(v=>v[0]).map((v,x)=>v+l[x])}return{snaps:c,snapsAligned:d}}function aN(e,t,n,r,s,o){const{groupSlides:i}=s,{min:a,max:l}=r,c=d();function d(){const g=i(o),m=!e||t==="keepSnaps";return n.length===1?[o]:m?g:g.slice(a,l).map((w,v,x)=>{const p=!v,h=nf(x,v);if(p){const y=en(x[0])+1;return fh(y)}if(h){const y=bi(o)-en(x)[0]+1;return fh(y,en(x)[0])}return w})}return{slideRegistry:c}}function lN(e,t,n,r,s){const{reachedAny:o,removeOffset:i,constrain:a}=r;function l(w){return w.concat().sort((v,x)=>ke(v)-ke(x))[0]}function c(w){const v=e?i(w):a(w),x=t.map((h,y)=>({diff:d(h-v,0),index:y})).sort((h,y)=>ke(h.diff)-ke(y.diff)),{index:p}=x[0];return{index:p,distance:v}}function d(w,v){const x=[w,w+n,w-n];if(!e)return w;if(!v)return l(x);const p=x.filter(h=>tf(h)===v);return p.length?l(p):en(x)-n}function f(w,v){const x=t[w]-s.get(),p=d(x,v);return{index:w,distance:p}}function g(w,v){const x=s.get()+w,{index:p,distance:h}=c(x),y=!e&&o(x);if(!v||y)return{index:p,distance:w};const S=t[p]-h,k=w+d(S,0);return{index:p,distance:k}}return{byDistance:g,byIndex:f,shortcut:d}}function cN(e,t,n,r,s,o,i){function a(f){const g=f.distance,m=f.index!==t.get();o.add(g),g&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),m&&(n.set(t.get()),t.set(f.index),i.emit("select"))}function l(f,g){const m=s.byDistance(f,g);a(m)}function c(f,g){const m=t.clone().set(f),w=s.byIndex(m.get(),g);a(w)}return{distance:l,index:c}}function uN(e,t,n,r,s,o,i,a){const l={passive:!0,capture:!0};let c=0;function d(m){if(!a)return;function w(v){if(new Date().getTime()-c>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;const h=n.findIndex(y=>y.includes(v));ef(h)&&(s.useDuration(0),r.index(h,0),i.emit("slideFocus"))}o.add(document,"keydown",f,!1),t.forEach((v,x)=>{o.add(v,"focus",p=>{(jl(a)||a(m,p))&&w(x)},l)})}function f(m){m.code==="Tab"&&(c=new Date().getTime())}return{init:d}}function bo(e){let t=e;function n(){return t}function r(l){t=i(l)}function s(l){t+=i(l)}function o(l){t-=i(l)}function i(l){return ef(l)?l:l.get()}return{get:n,set:r,add:s,subtract:o}}function Dy(e,t){const n=e.scroll==="x"?i:a,r=t.style;let s=null,o=!1;function i(g){return`translate3d(${g}px,0px,0px)`}function a(g){return`translate3d(0px,${g}px,0px)`}function l(g){if(o)return;const m=WE(e.direction(g));m!==s&&(r.transform=n(m),s=m)}function c(g){o=!g}function d(){o||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:d,to:l,toggleActive:c}}function dN(e,t,n,r,s,o,i,a,l){const d=ri(s),f=ri(s).reverse(),g=p().concat(h());function m(E,N){return E.reduce((P,R)=>P-s[R],N)}function w(E,N){return E.reduce((P,R)=>m(P,N)>0?P.concat([R]):P,[])}function v(E){return o.map((N,P)=>({start:N-r[P]+.5+E,end:N+t-.5+E}))}function x(E,N,P){const R=v(N);return E.map(z=>{const M=P?0:-n,Z=P?n:0,A=P?"end":"start",Q=R[z][A];return{index:z,loopPoint:Q,slideLocation:bo(-1),translate:Dy(e,l[z]),target:()=>a.get()>Q?M:Z}})}function p(){const E=i[0],N=w(f,E);return x(N,n,!1)}function h(){const E=t-i[0]-1,N=w(d,E);return x(N,-n,!0)}function y(){return g.every(({index:E})=>{const N=d.filter(P=>P!==E);return m(N,t)<=.1})}function S(){g.forEach(E=>{const{target:N,translate:P,slideLocation:R}=E,z=N();z!==R.get()&&(P.to(z),R.set(z))})}function k(){g.forEach(E=>E.translate.clear())}return{canLoop:y,clear:k,loop:S,loopPoints:g}}function fN(e,t,n){let r,s=!1;function o(l){if(!n)return;function c(d){for(const f of d)if(f.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(d=>{s||(jl(n)||n(l,d))&&c(d)}),r.observe(e,{childList:!0})}function i(){r&&r.disconnect(),s=!0}return{init:o,destroy:i}}function pN(e,t,n,r){const s={};let o=null,i=null,a,l=!1;function c(){a=new IntersectionObserver(w=>{l||(w.forEach(v=>{const x=t.indexOf(v.target);s[x]=v}),o=null,i=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(w=>a.observe(w))}function d(){a&&a.disconnect(),l=!0}function f(w){return si(s).reduce((v,x)=>{const p=parseInt(x),{isIntersecting:h}=s[p];return(w&&h||!w&&!h)&&v.push(p),v},[])}function g(w=!0){if(w&&o)return o;if(!w&&i)return i;const v=f(w);return w&&(o=v),w||(i=v),v}return{init:c,destroy:d,get:g}}function hN(e,t,n,r,s,o){const{measureSize:i,startEdge:a,endEdge:l}=e,c=n[0]&&s,d=w(),f=v(),g=n.map(i),m=x();function w(){if(!c)return 0;const h=n[0];return ke(t[a]-h[a])}function v(){if(!c)return 0;const h=o.getComputedStyle(en(r));return parseFloat(h.getPropertyValue(`margin-${l}`))}function x(){return n.map((h,y,S)=>{const k=!y,C=nf(S,y);return k?g[y]+d:C?g[y]+f:S[y+1][a]-h[a]}).map(ke)}return{slideSizes:g,slideSizesWithGaps:m,startGap:d,endGap:f}}function mN(e,t,n,r,s,o,i,a,l){const{startEdge:c,endEdge:d,direction:f}=e,g=ef(n);function m(p,h){return ri(p).filter(y=>y%h===0).map(y=>p.slice(y,y+h))}function w(p){return p.length?ri(p).reduce((h,y,S)=>{const k=en(h)||0,C=k===0,E=y===bi(p),N=s[c]-o[k][c],P=s[c]-o[y][d],R=!r&&C?f(i):0,z=!r&&E?f(a):0,M=ke(P-z-(N+R));return S&&M>t+l&&h.push(y),E&&h.push(p.length),h},[]).map((h,y,S)=>{const k=Math.max(S[y-1]||0);return p.slice(k,h)}):[]}function v(p){return g?m(p,n):w(p)}return{groupSlides:v}}function gN(e,t,n,r,s,o,i){const{align:a,axis:l,direction:c,startIndex:d,loop:f,duration:g,dragFree:m,dragThreshold:w,inViewThreshold:v,slidesToScroll:x,skipSnaps:p,containScroll:h,watchResize:y,watchSlides:S,watchDrag:k,watchFocus:C}=o,E=2,N=YE(),P=N.measure(t),R=n.map(N.measure),z=QE(l,c),M=z.measureSize(P),Z=XE(M),A=qE(a,M),Q=!f&&!!h,W=f||!!h,{slideSizes:q,slideSizesWithGaps:_,startGap:j,endGap:D}=hN(z,P,R,n,W,s),G=mN(z,M,x,f,P,R,j,D,E),{snaps:B,snapsAligned:K}=iN(z,A,P,R,G),Y=-en(B)+en(_),{snapsContained:he,scrollContainLimit:Ne}=nN(M,Y,K,h,E),J=Q?he:K,{limit:_e}=rN(Y,J,f),Ve=My(bi(J),d,f),Oe=Ve.clone(),ce=ri(n),V=({dragHandler:Ft,scrollBody:so,scrollBounds:rs,options:{loop:zn}})=>{zn||rs.constrain(Ft.pointerDown()),so.seek()},ie=({scrollBody:Ft,translate:so,location:rs,offsetLocation:zn,previousLocation:Fn,scrollLooper:Ci,slideLooper:$n,dragHandler:Ll,animation:Il,eventHandler:oo,scrollBounds:Ei,options:{loop:Ni}},ss)=>{const $t=Ft.settled(),Ml=!Ei.shouldConstrain(),X=Ni?$t:$t&&Ml,fe=X&&!Ll.pointerDown();fe&&Il.stop();const me=rs.get()*ss+Fn.get()*(1-ss);zn.set(me),Ni&&(Ci.loop(Ft.direction()),$n.loop()),so.to(zn.get()),fe&&oo.emit("settle"),X||oo.emit("scroll")},ve=GE(r,s,()=>V(ro),Ft=>ie(ro,Ft)),De=.68,et=J[Ve.get()],gt=bo(et),vt=bo(et),tt=bo(et),on=bo(et),Dt=eN(gt,tt,vt,on,g,De),ns=lN(f,J,Y,_e,on),zt=cN(ve,Ve,Oe,Dt,ns,on,i),Si=oN(_e),ki=oi(),ct=pN(t,n,i,v),{slideRegistry:bn}=aN(Q,h,J,Ne,G,ce),Ol=uN(e,n,bn,zt,Dt,ki,i,C),ro={ownerDocument:r,ownerWindow:s,eventHandler:i,containerRect:P,slideRects:R,animation:ve,axis:z,dragHandler:ZE(z,e,r,s,on,KE(z,s),gt,ve,zt,Dt,ns,Ve,i,Z,m,w,p,De,k),eventStore:ki,percentOfView:Z,index:Ve,indexPrevious:Oe,limit:_e,location:gt,offsetLocation:tt,previousLocation:vt,options:o,resizeHandler:JE(t,i,s,n,z,y,N),scrollBody:Dt,scrollBounds:tN(_e,tt,on,Dt,Z),scrollLooper:sN(Y,_e,tt,[gt,tt,vt,on]),scrollProgress:Si,scrollSnapList:J.map(Si.get),scrollSnaps:J,scrollTarget:ns,scrollTo:zt,slideLooper:dN(z,M,Y,q,_,B,J,tt,n),slideFocus:Ol,slidesHandler:fN(t,i,S),slidesInView:ct,slideIndexes:ce,slideRegistry:bn,slidesToScroll:G,target:on,translate:Dy(z,t)};return ro}function vN(){let e={},t;function n(c){t=c}function r(c){return e[c]||[]}function s(c){return r(c).forEach(d=>d(t,c)),l}function o(c,d){return e[c]=r(c).concat([d]),l}function i(c,d){return e[c]=r(c).filter(f=>f!==d),l}function a(){e={}}const l={init:n,emit:s,off:i,on:o,clear:a};return l}const yN={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 xN(e){function t(o,i){return Iy(o,i||{})}function n(o){const i=o.breakpoints||{},a=si(i).filter(l=>e.matchMedia(l).matches).map(l=>i[l]).reduce((l,c)=>t(l,c),{});return t(o,a)}function r(o){return o.map(i=>si(i.breakpoints||{})).reduce((i,a)=>i.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function wN(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,l)=>Object.assign(a,{[l.name]:l}),{})}function r(){t=t.filter(o=>o.destroy())}return{init:n,destroy:r}}function Wa(e,t,n){const r=e.ownerDocument,s=r.defaultView,o=xN(s),i=wN(o),a=oi(),l=vN(),{mergeOptions:c,optionsAtMedia:d,optionsMediaQueries:f}=o,{on:g,off:m,emit:w}=l,v=z;let x=!1,p,h=c(yN,Wa.globalOptions),y=c(h),S=[],k,C,E;function N(){const{container:ce,slides:V}=y;C=(ju(ce)?e.querySelector(ce):ce)||e.children[0];const ve=ju(V)?C.querySelectorAll(V):V;E=[].slice.call(ve||C.children)}function P(ce){const V=gN(e,C,E,r,s,ce,l);if(ce.loop&&!V.slideLooper.canLoop()){const ie=Object.assign({},ce,{loop:!1});return P(ie)}return V}function R(ce,V){x||(h=c(h,ce),y=d(h),S=V||S,N(),p=P(y),f([h,...S.map(({options:ie})=>ie)]).forEach(ie=>a.add(ie,"change",z)),y.active&&(p.translate.to(p.location.get()),p.animation.init(),p.slidesInView.init(),p.slideFocus.init(Oe),p.eventHandler.init(Oe),p.resizeHandler.init(Oe),p.slidesHandler.init(Oe),p.options.loop&&p.slideLooper.loop(),C.offsetParent&&E.length&&p.dragHandler.init(Oe),k=i.init(Oe,S)))}function z(ce,V){const ie=G();M(),R(c({startIndex:ie},ce),V),l.emit("reInit")}function M(){p.dragHandler.destroy(),p.eventStore.clear(),p.translate.clear(),p.slideLooper.clear(),p.resizeHandler.destroy(),p.slidesHandler.destroy(),p.slidesInView.destroy(),p.animation.destroy(),i.destroy(),a.clear()}function Z(){x||(x=!0,a.clear(),M(),l.emit("destroy"),l.clear())}function A(ce,V,ie){!y.active||x||(p.scrollBody.useBaseFriction().useDuration(V===!0?0:y.duration),p.scrollTo.index(ce,ie||0))}function Q(ce){const V=p.index.add(1).get();A(V,ce,-1)}function W(ce){const V=p.index.add(-1).get();A(V,ce,1)}function q(){return p.index.add(1).get()!==G()}function _(){return p.index.add(-1).get()!==G()}function j(){return p.scrollSnapList}function D(){return p.scrollProgress.get(p.offsetLocation.get())}function G(){return p.index.get()}function B(){return p.indexPrevious.get()}function K(){return p.slidesInView.get()}function Y(){return p.slidesInView.get(!1)}function he(){return k}function Ne(){return p}function J(){return e}function _e(){return C}function Ve(){return E}const Oe={canScrollNext:q,canScrollPrev:_,containerNode:_e,internalEngine:Ne,destroy:Z,off:m,on:g,emit:w,plugins:he,previousScrollSnap:B,reInit:v,rootNode:J,scrollNext:Q,scrollPrev:W,scrollProgress:D,scrollSnapList:j,scrollTo:A,selectedScrollSnap:G,slideNodes:Ve,slidesInView:K,slidesNotInView:Y};return R(t,n),setTimeout(()=>l.emit("init"),0),Oe}Wa.globalOptions=void 0;function rf(e={},t=[]){const n=b.useRef(e),r=b.useRef(t),[s,o]=b.useState(),[i,a]=b.useState(),l=b.useCallback(()=>{s&&s.reInit(n.current,r.current)},[s]);return b.useEffect(()=>{Jd(n.current,e)||(n.current=e,l())},[e,l]),b.useEffect(()=>{UE(r.current,t)||(r.current=t,l())},[t,l]),b.useEffect(()=>{if(BE()&&i){Wa.globalOptions=rf.globalOptions;const c=Wa(i,n.current,r.current);return o(c),()=>c.destroy()}else o(void 0)},[i,o]),[a,s]}rf.globalOptions=void 0;const bN=_v("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"}}),sf=b.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},o)=>{const i=r?G1:"button";return u.jsx(i,{className:He(bN({variant:t,size:n,className:e})),ref:o,...s})});sf.displayName="Button";const zy=b.createContext(null);function Tl(){const e=b.useContext(zy);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const Fy=b.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:s,children:o,...i},a)=>{const[l,c]=rf({...t,axis:e==="horizontal"?"x":"y"},r),[d,f]=b.useState(!1),[g,m]=b.useState(!1),w=b.useCallback(h=>{h&&(f(h.canScrollPrev()),m(h.canScrollNext()))},[]),v=b.useCallback(()=>{c==null||c.scrollPrev()},[c]),x=b.useCallback(()=>{c==null||c.scrollNext()},[c]),p=b.useCallback(h=>{h.key==="ArrowLeft"?(h.preventDefault(),v()):h.key==="ArrowRight"&&(h.preventDefault(),x())},[v,x]);return b.useEffect(()=>{!c||!n||n(c)},[c,n]),b.useEffect(()=>{if(c)return w(c),c.on("reInit",w),c.on("select",w),()=>{c==null||c.off("select",w)}},[c,w]),u.jsx(zy.Provider,{value:{carouselRef:l,api:c,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:v,scrollNext:x,canScrollPrev:d,canScrollNext:g},children:u.jsx("div",{ref:a,onKeyDownCapture:p,className:He("relative",s),role:"region","aria-roledescription":"carousel",...i,children:o})})});Fy.displayName="Carousel";const $y=b.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:s}=Tl();return u.jsx("div",{ref:r,className:"overflow-hidden",children:u.jsx("div",{ref:n,className:He("flex",s==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});$y.displayName="CarouselContent";const Vy=b.forwardRef(({className:e,...t},n)=>{const{orientation:r}=Tl();return u.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:He("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});Vy.displayName="CarouselItem";const By=b.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},s)=>{const{orientation:o,scrollPrev:i,canScrollPrev:a}=Tl();return u.jsxs(sf,{ref:s,variant:t,size:n,className:He("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:[u.jsx(yl,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Previous slide"})]})});By.displayName="CarouselPrevious";const Uy=b.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},s)=>{const{orientation:o,scrollNext:i,canScrollNext:a}=Tl();return u.jsxs(sf,{ref:s,variant:t,size:n,className:He("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:[u.jsx(ot,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Next slide"})]})});Uy.displayName="CarouselNext";const SN=[{name:"StĂ©phane M.",role:"Plombier-chauffagiste Ă Bordeaux",text:"Avant Lead-Artisan, ma fiche Google existait mais ne me rapportait quasiment rien. En 2 mois, j'ai vu une vraie diffĂ©rence : je reçois 3 Ă 4 appels de plus par semaine de clients qui me trouvent sur Google. Le rapport mensuel me montre exactement ce qui a changĂ©. Je recommande Ă tous les artisans qui veulent arrĂȘter de dĂ©pendre du bouche-Ă -oreille.",initials:"SM"},{name:"Julien D.",role:"Ălectricien Ă Dax",text:"HonnĂȘtement, je ne pensais pas que ma fiche Google avait autant d'importance. Lead-Artisan m'a fait un audit et j'ai compris tout ce que je perdais. Depuis qu'ils gĂšrent ma fiche, ma note est passĂ©e de 3.8 Ă 4.6 Ă©toiles et je ne cours plus aprĂšs les clients. Pour 149⏠par mois, c'est largement rentabilisĂ© dĂšs le premier chantier dĂ©crochĂ©.",initials:"JD"},{name:"Marie-Claire T.",role:"Entreprise de peinture Ă Mont-de-Marsan",text:"Ce qui m'a convaincue, c'est que je n'ai rien Ă faire. Ils s'occupent de tout : les publications, les rĂ©ponses aux avis, les photos. Moi je reçois un rapport chaque mois et je vois que ça marche. En 3 mois, mes vues sur Google ont doublĂ©. C'est le meilleur investissement que j'ai fait pour mon entreprise cette annĂ©e.",initials:"MT"},{name:"Laurent B.",role:"Menuisier Ă Pau",text:"J'Ă©tais sceptique au dĂ©but, mais les rĂ©sultats parlent d'eux-mĂȘmes. En 6 semaines, j'ai dĂ©crochĂ© 5 nouveaux chantiers uniquement grĂące Ă ma fiche Google optimisĂ©e. L'Ă©quipe est rĂ©active et professionnelle. Aujourd'hui, je ne pourrais plus m'en passer.",initials:"LB"},{name:"Sophie R.",role:"Carreleuse Ă Bayonne",text:"En tant que femme artisan, la visibilitĂ© en ligne est encore plus importante pour se faire connaĂźtre. Lead-Artisan a transformĂ© ma prĂ©sence sur Google : +60% de vues en 3 mois et des demandes de devis rĂ©guliĂšres. Le suivi mensuel est top, je sais exactement oĂč j'en suis.",initials:"SR"},{name:"François G.",role:"Couvreur Ă Arcachon",text:"Avant, je dĂ©pensais des centaines d'euros en publicitĂ© sans savoir ce que ça me rapportait. Avec Lead-Artisan, c'est clair et transparent. Ma fiche Google est devenue mon premier canal d'acquisition de clients. Le retour sur investissement est imbattable.",initials:"FG"}],kN=["+35% de vues en moyenne","+25% d'appels supplĂ©mentaires","+0.8 point sur la note Google"],CN=()=>{const e=wt();return u.jsx("section",{className:"section-padding bg-surface-alt",ref:e,children:u.jsxs("div",{className:"container-content",children:[u.jsx("img",{src:ts,alt:"Lead Artisan",className:"h-20 w-auto mx-auto mb-4 animate-on-scroll"}),u.jsx("h2",{className:"animate-on-scroll text-2xl md:text-3xl lg:text-4xl font-bold text-center mb-12 text-foreground",children:"Ils nous font confiance pour remplir leur carnet de commandes"}),u.jsx("div",{className:"animate-on-scroll px-8 md:px-12 mb-12",children:u.jsxs(Fy,{opts:{loop:!0,align:"start"},plugins:[Xd({delay:4e3,stopOnInteraction:!1})],className:"w-full",children:[u.jsx($y,{className:"-ml-4",children:SN.map((t,n)=>u.jsx(Vy,{className:"pl-4 md:basis-1/2 lg:basis-1/3",children:u.jsxs("div",{className:"bg-card rounded-xl p-6 border shadow-sm h-full flex flex-col",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[u.jsx("div",{className:"w-12 h-12 rounded-full bg-primary flex items-center justify-center text-primary-foreground font-bold text-sm",children:t.initials}),u.jsxs("div",{children:[u.jsx("div",{className:"font-bold text-foreground",children:t.name}),u.jsx("div",{className:"text-sm text-muted-foreground",children:t.role})]})]}),u.jsx("div",{className:"flex gap-0.5 mb-3",children:[...Array(5)].map((r,s)=>u.jsx(Md,{className:"w-4 h-4 fill-accent text-accent"},s))}),u.jsx("p",{className:"text-muted-foreground leading-relaxed text-sm flex-1",children:t.text})]})},n))}),u.jsx(By,{}),u.jsx(Uy,{})]})}),u.jsx("div",{className:"animate-on-scroll bg-primary/5 rounded-xl p-6 flex flex-col md:flex-row items-center justify-center gap-6 md:gap-12",children:kN.map((t,n)=>u.jsx("span",{className:"font-bold text-primary text-lg",children:t},n))}),u.jsx("div",{className:"animate-on-scroll flex justify-center mt-10",children:u.jsxs("a",{href:"#cta-final",className:"gradient-accent text-accent-foreground font-bold text-lg px-8 py-4 rounded-lg hover:opacity-90 transition-opacity inline-flex items-center gap-2 shadow-lg",children:["Demander mon audit gratuit",u.jsx(ot,{className:"w-5 h-5"})]})})]})})},EN=["Audit complet de votre fiche Google","Optimisation initiale de A Ă Z (description, catĂ©gories, photos, mots-clĂ©s)","4 Ă 8 publications Google par mois","Gestion et rĂ©ponse Ă tous vos avis clients","Rapport mensuel de performance (vues, clics, appels, actions)","Support dĂ©diĂ© par tĂ©lĂ©phone et email","Conseils personnalisĂ©s pour booster votre visibilitĂ©"],NN=()=>{const e=wt(),t=()=>{var n;(n=document.getElementById("cta-final"))==null||n.scrollIntoView({behavior:"smooth"})};return u.jsx("section",{className:"section-padding bg-background",ref:e,children:u.jsxs("div",{className:"container-content text-center",children:[u.jsx("img",{src:ts,alt:"Lead Artisan",className:"h-20 w-auto mx-auto mb-4 animate-on-scroll"}),u.jsx("h2",{className:"animate-on-scroll text-2xl md:text-3xl lg:text-4xl font-bold mb-12 text-foreground",children:"Une offre simple, complĂšte, sans surprise"}),u.jsxs("div",{className:"animate-on-scroll max-w-lg mx-auto border-2 border-accent rounded-2xl overflow-hidden shadow-xl",children:[u.jsxs("div",{className:"gradient-accent p-6",children:[u.jsx("p",{className:"text-accent-foreground font-bold text-sm tracking-widest uppercase mb-2",children:"Formule Artisan"}),u.jsxs("div",{className:"text-accent-foreground",children:[u.jsx("span",{className:"text-5xl font-black",children:"149âŹ"}),u.jsx("span",{className:"text-xl font-medium",children:" /mois HT"})]}),u.jsx("p",{className:"text-accent-foreground/80 text-sm mt-2",children:"Sans engagement â RĂ©siliable Ă tout moment"})]}),u.jsxs("div",{className:"p-8 bg-card",children:[u.jsx("ul",{className:"space-y-4 text-left mb-8",children:EN.map((n,r)=>u.jsxs("li",{className:"flex items-start gap-3",children:[u.jsx(Id,{className:"w-5 h-5 text-success flex-shrink-0 mt-0.5"}),u.jsx("span",{className:"text-foreground",children:n})]},r))}),u.jsxs("button",{id:"cta-offre",onClick:t,className:"w-full gradient-accent text-accent-foreground font-bold text-lg px-8 py-4 rounded-lg hover:opacity-90 transition-opacity inline-flex items-center justify-center gap-2",children:["Demander mon audit gratuit",u.jsx(ot,{className:"w-5 h-5"})]})]})]}),u.jsx("p",{className:"animate-on-scroll mt-6 text-muted-foreground italic",children:"149âŹ/mois, c'est moins que le prix d'un seul chantier manquĂ©."})]})})};var Pl="Collapsible",[_N,Hy]=Xs(Pl),[jN,of]=_N(Pl),Wy=b.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:s,disabled:o,onOpenChange:i,...a}=e,[l,c]=ml({prop:r,defaultProp:s??!1,onChange:i,caller:Pl});return u.jsx(jN,{scope:n,disabled:o,contentId:Fv(),open:l,onOpenToggle:b.useCallback(()=>c(d=>!d),[c]),children:u.jsx($e.div,{"data-state":lf(l),"data-disabled":o?"":void 0,...a,ref:t})})});Wy.displayName=Pl;var qy="CollapsibleTrigger",Gy=b.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,s=of(qy,n);return u.jsx($e.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":lf(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...r,ref:t,onClick:Ae(e.onClick,s.onOpenToggle)})});Gy.displayName=qy;var af="CollapsibleContent",Qy=b.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=of(af,e.__scopeCollapsible);return u.jsx(hl,{present:n||s.open,children:({present:o})=>u.jsx(TN,{...r,ref:t,present:o})})});Qy.displayName=af;var TN=b.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:s,...o}=e,i=of(af,n),[a,l]=b.useState(r),c=b.useRef(null),d=Et(t,c),f=b.useRef(0),g=f.current,m=b.useRef(0),w=m.current,v=i.open||a,x=b.useRef(v),p=b.useRef(void 0);return b.useEffect(()=>{const h=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(h)},[]),yn(()=>{const h=c.current;if(h){p.current=p.current||{transitionDuration:h.style.transitionDuration,animationName:h.style.animationName},h.style.transitionDuration="0s",h.style.animationName="none";const y=h.getBoundingClientRect();f.current=y.height,m.current=y.width,x.current||(h.style.transitionDuration=p.current.transitionDuration,h.style.animationName=p.current.animationName),l(r)}},[i.open,r]),u.jsx($e.div,{"data-state":lf(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!v,...o,ref:d,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:v&&s})});function lf(e){return e?"open":"closed"}var PN=Wy,RN=Gy,AN=Qy,ON=b.createContext(void 0);function LN(e){const t=b.useContext(ON);return e||t||"ltr"}var sn="Accordion",IN=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[cf,MN,DN]=ev(sn),[Rl,Y_]=Xs(sn,[DN,Hy]),uf=Hy(),Zy=O.forwardRef((e,t)=>{const{type:n,...r}=e,s=r,o=r;return u.jsx(cf.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?u.jsx(VN,{...o,ref:t}):u.jsx($N,{...s,ref:t})})});Zy.displayName=sn;var[Ky,zN]=Rl(sn),[Yy,FN]=Rl(sn,{collapsible:!1}),$N=O.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:s=()=>{},collapsible:o=!1,...i}=e,[a,l]=ml({prop:n,defaultProp:r??"",onChange:s,caller:sn});return u.jsx(Ky,{scope:e.__scopeAccordion,value:O.useMemo(()=>a?[a]:[],[a]),onItemOpen:l,onItemClose:O.useCallback(()=>o&&l(""),[o,l]),children:u.jsx(Yy,{scope:e.__scopeAccordion,collapsible:o,children:u.jsx(Xy,{...i,ref:t})})})}),VN=O.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:s=()=>{},...o}=e,[i,a]=ml({prop:n,defaultProp:r??[],onChange:s,caller:sn}),l=O.useCallback(d=>a((f=[])=>[...f,d]),[a]),c=O.useCallback(d=>a((f=[])=>f.filter(g=>g!==d)),[a]);return u.jsx(Ky,{scope:e.__scopeAccordion,value:i,onItemOpen:l,onItemClose:c,children:u.jsx(Yy,{scope:e.__scopeAccordion,collapsible:!0,children:u.jsx(Xy,{...o,ref:t})})})}),[BN,Al]=Rl(sn),Xy=O.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:s,orientation:o="vertical",...i}=e,a=O.useRef(null),l=Et(a,t),c=MN(n),f=LN(s)==="ltr",g=Ae(e.onKeyDown,m=>{var N;if(!IN.includes(m.key))return;const w=m.target,v=c().filter(P=>{var R;return!((R=P.ref.current)!=null&&R.disabled)}),x=v.findIndex(P=>P.ref.current===w),p=v.length;if(x===-1)return;m.preventDefault();let h=x;const y=0,S=p-1,k=()=>{h=x+1,h>S&&(h=y)},C=()=>{h=x-1,h<y&&(h=S)};switch(m.key){case"Home":h=y;break;case"End":h=S;break;case"ArrowRight":o==="horizontal"&&(f?k():C());break;case"ArrowDown":o==="vertical"&&k();break;case"ArrowLeft":o==="horizontal"&&(f?C():k());break;case"ArrowUp":o==="vertical"&&C();break}const E=h%p;(N=v[E].ref.current)==null||N.focus()});return u.jsx(BN,{scope:n,disabled:r,direction:s,orientation:o,children:u.jsx(cf.Slot,{scope:n,children:u.jsx($e.div,{...i,"data-orientation":o,ref:l,onKeyDown:r?void 0:g})})})}),qa="AccordionItem",[UN,df]=Rl(qa),Jy=O.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...s}=e,o=Al(qa,n),i=zN(qa,n),a=uf(n),l=Fv(),c=r&&i.value.includes(r)||!1,d=o.disabled||e.disabled;return u.jsx(UN,{scope:n,open:c,disabled:d,triggerId:l,children:u.jsx(PN,{"data-orientation":o.orientation,"data-state":ox(c),...a,...s,ref:t,disabled:d,open:c,onOpenChange:f=>{f?i.onItemOpen(r):i.onItemClose(r)}})})});Jy.displayName=qa;var ex="AccordionHeader",tx=O.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=Al(sn,n),o=df(ex,n);return u.jsx($e.h3,{"data-orientation":s.orientation,"data-state":ox(o.open),"data-disabled":o.disabled?"":void 0,...r,ref:t})});tx.displayName=ex;var Pu="AccordionTrigger",nx=O.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=Al(sn,n),o=df(Pu,n),i=FN(Pu,n),a=uf(n);return u.jsx(cf.ItemSlot,{scope:n,children:u.jsx(RN,{"aria-disabled":o.open&&!i.collapsible||void 0,"data-orientation":s.orientation,id:o.triggerId,...a,...r,ref:t})})});nx.displayName=Pu;var rx="AccordionContent",sx=O.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,s=Al(sn,n),o=df(rx,n),i=uf(n);return u.jsx(AN,{role:"region","aria-labelledby":o.triggerId,"data-orientation":s.orientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});sx.displayName=rx;function ox(e){return e?"open":"closed"}var HN=Zy,WN=Jy,qN=tx,ix=nx,ax=sx;const GN=HN,lx=b.forwardRef(({className:e,...t},n)=>u.jsx(WN,{ref:n,className:He("border-b",e),...t}));lx.displayName="AccordionItem";const cx=b.forwardRef(({className:e,children:t,...n},r)=>u.jsx(qN,{className:"flex",children:u.jsxs(ix,{ref:r,className:He("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,u.jsx($w,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));cx.displayName=ix.displayName;const ux=b.forwardRef(({className:e,children:t,...n},r)=>u.jsx(ax,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:u.jsx("div",{className:He("pb-4 pt-0",e),children:t})}));ux.displayName=ax.displayName;const QN=[{q:"J'ai dĂ©jĂ une fiche Google, pourquoi payer pour l'optimiser ?",a:"Avoir une fiche Google, c'est comme avoir une vitrine. Mais si elle est mal Ă©clairĂ©e, mal rangĂ©e et qu'il n'y a aucune enseigne, personne ne rentre. L'optimisation, c'est ce qui transforme une fiche qui existe en une fiche qui rapporte des clients. La plupart des artisans que nous accompagnons avaient dĂ©jĂ une fiche â elle ne leur rapportait simplement rien."},{q:"En combien de temps vais-je voir des rĂ©sultats ?",a:"Les premiers effets sont visibles dĂšs 2 Ă 4 semaines aprĂšs l'optimisation initiale : plus de vues sur votre fiche, plus de clics, et progressivement plus d'appels. Les rĂ©sultats les plus significatifs arrivent entre le 2á” et le 3á” mois, lorsque Google valorise la rĂ©gularitĂ© de votre activitĂ© sur votre fiche."},{q:"Est-ce que je suis engagĂ© ?",a:"Non, aucun engagement. Vous pouvez rĂ©silier Ă tout moment. Nous sommes convaincus que nos rĂ©sultats parlent d'eux-mĂȘmes â c'est pour cela que nous ne vous enfermons pas dans un contrat."},{q:"Comment je sais que ça fonctionne ?",a:"Chaque mois, vous recevez un rapport clair et dĂ©taillĂ© avec vos statistiques : nombre de vues de votre fiche, nombre de clics, nombre d'appels reçus via Google, Ă©volution de votre note. Vous voyez noir sur blanc ce que votre investissement vous rapporte."},{q:"Je ne suis pas Ă l'aise avec le digital, c'est un problĂšme ?",a:"Pas du tout, c'est justement pour ça que nous existons. Vous n'avez rien Ă faire. Pas de compte Ă crĂ©er, pas de logiciel Ă apprendre. On s'occupe de tout. La seule chose que vous remarquerez, c'est que votre tĂ©lĂ©phone sonne plus souvent."}],ZN=()=>{const e=wt();return u.jsx("section",{className:"section-padding bg-surface-alt",ref:e,children:u.jsxs("div",{className:"container-content max-w-3xl",children:[u.jsx("img",{src:ts,alt:"Lead Artisan",className:"h-20 w-auto mx-auto mb-4 animate-on-scroll"}),u.jsx("h2",{className:"animate-on-scroll text-2xl md:text-3xl lg:text-4xl font-bold text-center mb-12 text-foreground",children:"Vos questions, nos rĂ©ponses"}),u.jsx("div",{className:"animate-on-scroll",children:u.jsx(GN,{type:"single",collapsible:!0,className:"space-y-3",children:QN.map((t,n)=>u.jsxs(lx,{value:`faq-${n}`,className:"bg-card border rounded-xl px-6",children:[u.jsx(cx,{className:"text-left font-semibold text-foreground hover:no-underline",children:t.q}),u.jsx(ux,{className:"text-muted-foreground leading-relaxed",children:t.a})]},n))})})]})})},ff="/assets/logo-lead-artisan-blanc-B28E4zGp.png";var de;(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})(de||(de={}));var ph;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(ph||(ph={}));const U=de.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Zn=e=>{switch(typeof e){case"undefined":return U.undefined;case"string":return U.string;case"number":return Number.isNaN(e)?U.nan:U.number;case"boolean":return U.boolean;case"function":return U.function;case"bigint":return U.bigint;case"symbol":return U.symbol;case"object":return Array.isArray(e)?U.array:e===null?U.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?U.promise:typeof Map<"u"&&e instanceof Map?U.map:typeof Set<"u"&&e instanceof Set?U.set:typeof Date<"u"&&e instanceof Date?U.date:U.object;default:return U.unknown}},I=de.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 Mn 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,l=0;for(;l<i.path.length;){const c=i.path[l];l===i.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(n(i))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return s(this),r}static assert(t){if(!(t instanceof Mn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,de.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()}}Mn.create=e=>new Mn(e);const Ru=(e,t)=>{let n;switch(e.code){case I.invalid_type:e.received===U.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case I.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,de.jsonStringifyReplacer)}`;break;case I.unrecognized_keys:n=`Unrecognized key(s) in object: ${de.joinValues(e.keys,", ")}`;break;case I.invalid_union:n="Invalid input";break;case I.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${de.joinValues(e.options)}`;break;case I.invalid_enum_value:n=`Invalid enum value. Expected ${de.joinValues(e.options)}, received '${e.received}'`;break;case I.invalid_arguments:n="Invalid function arguments";break;case I.invalid_return_type:n="Invalid function return type";break;case I.invalid_date:n="Invalid date";break;case I.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}"`:de.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case I.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 I.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 I.custom:n="Invalid input";break;case I.invalid_intersection_types:n="Intersection results could not be merged";break;case I.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case I.not_finite:n="Number must be finite";break;default:n=t.defaultError,de.assertNever(e)}return{message:n}};let KN=Ru;function YN(){return KN}const XN=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 l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(i,{data:t,defaultError:a}).message;return{...s,path:o,message:a}};function F(e,t){const n=YN(),r=XN({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ru?void 0:Ru].filter(s=>!!s)});e.common.issues.push(r)}class Nt{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 ee;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 Nt.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 ee;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 ee=Object.freeze({status:"aborted"}),So=e=>({status:"dirty",value:e}),Mt=e=>({status:"valid",value:e}),hh=e=>e.status==="aborted",mh=e=>e.status==="dirty",Ws=e=>e.status==="valid",Ga=e=>typeof Promise<"u"&&e instanceof Promise;var H;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(H||(H={}));class Sr{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 gh=(e,t)=>{if(Ws(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 Mn(e.common.issues);return this._error=n,this._error}}};function se(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:s}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(i,a)=>{const{message:l}=e;return i.code==="invalid_enum_value"?{message:l??a.defaultError}:typeof a.data>"u"?{message:l??r??a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:l??n??a.defaultError}},description:s}}class le{get description(){return this._def.description}_getType(t){return Zn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Zn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Nt,ctx:{common:t.parent.common,data:t.data,parsedType:Zn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Ga(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:Zn(t)},s=this._parseSync({data:t,path:r.path,parent:r});return gh(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:Zn(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:n});return Ws(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=>Ws(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:Zn(t)},s=this._parse({data:t,path:r.path,parent:r}),o=await(Ga(s)?s:Promise.resolve(s));return gh(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:I.custom,...r(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!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 Gs({schema:this,typeName:te.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 gr.create(this,this._def)}nullable(){return Qs.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return vn.create(this)}promise(){return Ya.create(this,this._def)}or(t){return Za.create([this,t],this._def)}and(t){return Ka.create(this,t,this._def)}transform(t){return new Gs({...se(this._def),schema:this,typeName:te.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Ou({...se(this._def),innerType:this,defaultValue:n,typeName:te.ZodDefault})}brand(){return new b_({typeName:te.ZodBranded,type:this,...se(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Lu({...se(this._def),innerType:this,catchValue:n,typeName:te.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return pf.create(this,t)}readonly(){return Iu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const JN=/^c[^\s-]{8,}$/i,e_=/^[0-9a-z]+$/,t_=/^[0-9A-HJKMNP-TV-Z]{26}$/i,n_=/^[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,r_=/^[a-z0-9_-]{21}$/i,s_=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,o_=/^[-+]?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)?)??$/,i_=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,a_="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let xc;const l_=/^(?:(?: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])$/,c_=/^(?:(?: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])$/,u_=/^(([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]))$/,d_=/^(([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])$/,f_=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,p_=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dx="((\\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])))",h_=new RegExp(`^${dx}$`);function fx(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 m_(e){return new RegExp(`^${fx(e)}$`)}function g_(e){let t=`${dx}T${fx(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 v_(e,t){return!!((t==="v4"||!t)&&l_.test(e)||(t==="v6"||!t)&&u_.test(e))}function y_(e,t){if(!s_.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 x_(e,t){return!!((t==="v4"||!t)&&c_.test(e)||(t==="v6"||!t)&&d_.test(e))}class ir extends le{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==U.string){const o=this._getOrReturnCtx(t);return F(o,{code:I.invalid_type,expected:U.string,received:o.parsedType}),ee}const r=new Nt;let s;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(s=this._getOrReturnCtx(t,s),F(s,{code:I.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),F(s,{code:I.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?F(s,{code:I.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&F(s,{code:I.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")i_.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"email",code:I.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")xc||(xc=new RegExp(a_,"u")),xc.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"emoji",code:I.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")n_.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"uuid",code:I.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")r_.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"nanoid",code:I.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")JN.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"cuid",code:I.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")e_.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"cuid2",code:I.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")t_.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"ulid",code:I.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),F(s,{validation:"url",code:I.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),F(s,{validation:"regex",code:I.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),F(s,{code:I.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),F(s,{code:I.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(s=this._getOrReturnCtx(t,s),F(s,{code:I.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?g_(o).test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{code:I.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?h_.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{code:I.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?m_(o).test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{code:I.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?o_.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"duration",code:I.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?v_(t.data,o.version)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"ip",code:I.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?y_(t.data,o.alg)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"jwt",code:I.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?x_(t.data,o.version)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"cidr",code:I.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?f_.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"base64",code:I.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?p_.test(t.data)||(s=this._getOrReturnCtx(t,s),F(s,{validation:"base64url",code:I.invalid_string,message:o.message}),r.dirty()):de.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(s=>t.test(s),{validation:n,code:I.invalid_string,...H.errToObj(r)})}_addCheck(t){return new ir({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...H.errToObj(t)})}url(t){return this._addCheck({kind:"url",...H.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...H.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...H.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...H.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...H.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...H.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...H.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...H.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...H.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...H.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...H.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...H.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,...H.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,...H.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...H.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...H.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...H.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...H.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...H.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...H.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...H.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...H.errToObj(n)})}nonempty(t){return this.min(1,H.errToObj(t))}trim(){return new ir({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ir({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ir({...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}}ir.create=e=>new ir({checks:[],typeName:te.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...se(e)});function w_(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 ii extends le{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)!==U.number){const o=this._getOrReturnCtx(t);return F(o,{code:I.invalid_type,expected:U.number,received:o.parsedType}),ee}let r;const s=new Nt;for(const o of this._def.checks)o.kind==="int"?de.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),F(r,{code:I.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),F(r,{code:I.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),F(r,{code:I.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="multipleOf"?w_(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),F(r,{code:I.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),F(r,{code:I.not_finite,message:o.message}),s.dirty()):de.assertNever(o);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,H.toString(n))}gt(t,n){return this.setLimit("min",t,!1,H.toString(n))}lte(t,n){return this.setLimit("max",t,!0,H.toString(n))}lt(t,n){return this.setLimit("max",t,!1,H.toString(n))}setLimit(t,n,r,s){return new ii({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:H.toString(s)}]})}_addCheck(t){return new ii({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:H.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:H.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:H.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:H.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:H.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:H.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:H.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:H.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:H.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"&&de.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)}}ii.create=e=>new ii({checks:[],typeName:te.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...se(e)});class ai extends le{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)!==U.bigint)return this._getInvalidInput(t);let r;const s=new Nt;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),F(r,{code:I.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),F(r,{code:I.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),F(r,{code:I.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):de.assertNever(o);return{status:s.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return F(n,{code:I.invalid_type,expected:U.bigint,received:n.parsedType}),ee}gte(t,n){return this.setLimit("min",t,!0,H.toString(n))}gt(t,n){return this.setLimit("min",t,!1,H.toString(n))}lte(t,n){return this.setLimit("max",t,!0,H.toString(n))}lt(t,n){return this.setLimit("max",t,!1,H.toString(n))}setLimit(t,n,r,s){return new ai({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:H.toString(s)}]})}_addCheck(t){return new ai({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:H.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:H.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:H.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:H.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:H.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}}ai.create=e=>new ai({checks:[],typeName:te.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...se(e)});class vh extends le{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==U.boolean){const r=this._getOrReturnCtx(t);return F(r,{code:I.invalid_type,expected:U.boolean,received:r.parsedType}),ee}return Mt(t.data)}}vh.create=e=>new vh({typeName:te.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...se(e)});class Qa extends le{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==U.date){const o=this._getOrReturnCtx(t);return F(o,{code:I.invalid_type,expected:U.date,received:o.parsedType}),ee}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return F(o,{code:I.invalid_date}),ee}const r=new Nt;let s;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(s=this._getOrReturnCtx(t,s),F(s,{code:I.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),F(s,{code:I.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):de.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Qa({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:H.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:H.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}}Qa.create=e=>new Qa({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:te.ZodDate,...se(e)});class yh extends le{_parse(t){if(this._getType(t)!==U.symbol){const r=this._getOrReturnCtx(t);return F(r,{code:I.invalid_type,expected:U.symbol,received:r.parsedType}),ee}return Mt(t.data)}}yh.create=e=>new yh({typeName:te.ZodSymbol,...se(e)});class xh extends le{_parse(t){if(this._getType(t)!==U.undefined){const r=this._getOrReturnCtx(t);return F(r,{code:I.invalid_type,expected:U.undefined,received:r.parsedType}),ee}return Mt(t.data)}}xh.create=e=>new xh({typeName:te.ZodUndefined,...se(e)});class wh extends le{_parse(t){if(this._getType(t)!==U.null){const r=this._getOrReturnCtx(t);return F(r,{code:I.invalid_type,expected:U.null,received:r.parsedType}),ee}return Mt(t.data)}}wh.create=e=>new wh({typeName:te.ZodNull,...se(e)});class bh extends le{constructor(){super(...arguments),this._any=!0}_parse(t){return Mt(t.data)}}bh.create=e=>new bh({typeName:te.ZodAny,...se(e)});class Sh extends le{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Mt(t.data)}}Sh.create=e=>new Sh({typeName:te.ZodUnknown,...se(e)});class kr extends le{_parse(t){const n=this._getOrReturnCtx(t);return F(n,{code:I.invalid_type,expected:U.never,received:n.parsedType}),ee}}kr.create=e=>new kr({typeName:te.ZodNever,...se(e)});class kh extends le{_parse(t){if(this._getType(t)!==U.undefined){const r=this._getOrReturnCtx(t);return F(r,{code:I.invalid_type,expected:U.void,received:r.parsedType}),ee}return Mt(t.data)}}kh.create=e=>new kh({typeName:te.ZodVoid,...se(e)});class vn extends le{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),s=this._def;if(n.parsedType!==U.array)return F(n,{code:I.invalid_type,expected:U.array,received:n.parsedType}),ee;if(s.exactLength!==null){const i=n.data.length>s.exactLength.value,a=n.data.length<s.exactLength.value;(i||a)&&(F(n,{code:i?I.too_big:I.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&&(F(n,{code:I.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&&(F(n,{code:I.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 Sr(n,i,n.path,a)))).then(i=>Nt.mergeArray(r,i));const o=[...n.data].map((i,a)=>s.type._parseSync(new Sr(n,i,n.path,a)));return Nt.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new vn({...this._def,minLength:{value:t,message:H.toString(n)}})}max(t,n){return new vn({...this._def,maxLength:{value:t,message:H.toString(n)}})}length(t,n){return new vn({...this._def,exactLength:{value:t,message:H.toString(n)}})}nonempty(t){return this.min(1,t)}}vn.create=(e,t)=>new vn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:te.ZodArray,...se(t)});function as(e){if(e instanceof Te){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=gr.create(as(r))}return new Te({...e._def,shape:()=>t})}else return e instanceof vn?new vn({...e._def,type:as(e.element)}):e instanceof gr?gr.create(as(e.unwrap())):e instanceof Qs?Qs.create(as(e.unwrap())):e instanceof Kr?Kr.create(e.items.map(t=>as(t))):e}class Te extends le{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=de.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==U.object){const c=this._getOrReturnCtx(t);return F(c,{code:I.invalid_type,expected:U.object,received:c.parsedType}),ee}const{status:r,ctx:s}=this._processInputParams(t),{shape:o,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof kr&&this._def.unknownKeys==="strip"))for(const c in s.data)i.includes(c)||a.push(c);const l=[];for(const c of i){const d=o[c],f=s.data[c];l.push({key:{status:"valid",value:c},value:d._parse(new Sr(s,f,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof kr){const c=this._def.unknownKeys;if(c==="passthrough")for(const d of a)l.push({key:{status:"valid",value:d},value:{status:"valid",value:s.data[d]}});else if(c==="strict")a.length>0&&(F(s,{code:I.unrecognized_keys,keys:a}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const d of a){const f=s.data[d];l.push({key:{status:"valid",value:d},value:c._parse(new Sr(s,f,s.path,d)),alwaysSet:d in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const c=[];for(const d of l){const f=await d.key,g=await d.value;c.push({key:f,value:g,alwaysSet:d.alwaysSet})}return c}).then(c=>Nt.mergeObjectSync(r,c)):Nt.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return H.errToObj,new Te({...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:H.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new Te({...this._def,unknownKeys:"strip"})}passthrough(){return new Te({...this._def,unknownKeys:"passthrough"})}extend(t){return new Te({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Te({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:te.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Te({...this._def,catchall:t})}pick(t){const n={};for(const r of de.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Te({...this._def,shape:()=>n})}omit(t){const n={};for(const r of de.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Te({...this._def,shape:()=>n})}deepPartial(){return as(this)}partial(t){const n={};for(const r of de.objectKeys(this.shape)){const s=this.shape[r];t&&!t[r]?n[r]=s:n[r]=s.optional()}return new Te({...this._def,shape:()=>n})}required(t){const n={};for(const r of de.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof gr;)o=o._def.innerType;n[r]=o}return new Te({...this._def,shape:()=>n})}keyof(){return px(de.objectKeys(this.shape))}}Te.create=(e,t)=>new Te({shape:()=>e,unknownKeys:"strip",catchall:kr.create(),typeName:te.ZodObject,...se(t)});Te.strictCreate=(e,t)=>new Te({shape:()=>e,unknownKeys:"strict",catchall:kr.create(),typeName:te.ZodObject,...se(t)});Te.lazycreate=(e,t)=>new Te({shape:e,unknownKeys:"strip",catchall:kr.create(),typeName:te.ZodObject,...se(t)});class Za extends le{_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 Mn(a.ctx.common.issues));return F(n,{code:I.invalid_union,unionErrors:i}),ee}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 l of r){const c={...n,common:{...n.common,issues:[]},parent:null},d=l._parseSync({data:n.data,path:n.path,parent:c});if(d.status==="valid")return d;d.status==="dirty"&&!o&&(o={result:d,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const a=i.map(l=>new Mn(l));return F(n,{code:I.invalid_union,unionErrors:a}),ee}}get options(){return this._def.options}}Za.create=(e,t)=>new Za({options:e,typeName:te.ZodUnion,...se(t)});function Au(e,t){const n=Zn(e),r=Zn(t);if(e===t)return{valid:!0,data:e};if(n===U.object&&r===U.object){const s=de.objectKeys(t),o=de.objectKeys(e).filter(a=>s.indexOf(a)!==-1),i={...e,...t};for(const a of o){const l=Au(e[a],t[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(n===U.array&&r===U.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],l=Au(i,a);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return n===U.date&&r===U.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Ka extends le{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=(o,i)=>{if(hh(o)||hh(i))return ee;const a=Au(o.value,i.value);return a.valid?((mh(o)||mh(i))&&n.dirty(),{status:n.value,value:a.data}):(F(r,{code:I.invalid_intersection_types}),ee)};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}))}}Ka.create=(e,t,n)=>new Ka({left:e,right:t,typeName:te.ZodIntersection,...se(n)});class Kr extends le{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==U.array)return F(r,{code:I.invalid_type,expected:U.array,received:r.parsedType}),ee;if(r.data.length<this._def.items.length)return F(r,{code:I.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ee;!this._def.rest&&r.data.length>this._def.items.length&&(F(r,{code:I.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Sr(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(o).then(i=>Nt.mergeArray(n,i)):Nt.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new Kr({...this._def,rest:t})}}Kr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Kr({items:e,typeName:te.ZodTuple,rest:null,...se(t)})};class Ch extends le{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!==U.map)return F(r,{code:I.invalid_type,expected:U.map,received:r.parsedType}),ee;const s=this._def.keyType,o=this._def.valueType,i=[...r.data.entries()].map(([a,l],c)=>({key:s._parse(new Sr(r,a,r.path,[c,"key"])),value:o._parse(new Sr(r,l,r.path,[c,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of i){const c=await l.key,d=await l.value;if(c.status==="aborted"||d.status==="aborted")return ee;(c.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(c.value,d.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of i){const c=l.key,d=l.value;if(c.status==="aborted"||d.status==="aborted")return ee;(c.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(c.value,d.value)}return{status:n.value,value:a}}}}Ch.create=(e,t,n)=>new Ch({valueType:t,keyType:e,typeName:te.ZodMap,...se(n)});class li extends le{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==U.set)return F(r,{code:I.invalid_type,expected:U.set,received:r.parsedType}),ee;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(F(r,{code:I.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&&(F(r,{code:I.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(l){const c=new Set;for(const d of l){if(d.status==="aborted")return ee;d.status==="dirty"&&n.dirty(),c.add(d.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>o._parse(new Sr(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(t,n){return new li({...this._def,minSize:{value:t,message:H.toString(n)}})}max(t,n){return new li({...this._def,maxSize:{value:t,message:H.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}li.create=(e,t)=>new li({valueType:e,minSize:null,maxSize:null,typeName:te.ZodSet,...se(t)});class Eh extends le{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})}}Eh.create=(e,t)=>new Eh({getter:e,typeName:te.ZodLazy,...se(t)});class Nh extends le{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return F(n,{received:n.data,code:I.invalid_literal,expected:this._def.value}),ee}return{status:"valid",value:t.data}}get value(){return this._def.value}}Nh.create=(e,t)=>new Nh({value:e,typeName:te.ZodLiteral,...se(t)});function px(e,t){return new qs({values:e,typeName:te.ZodEnum,...se(t)})}class qs extends le{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return F(n,{expected:de.joinValues(r),received:n.parsedType,code:I.invalid_type}),ee}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 F(n,{received:n.data,code:I.invalid_enum_value,options:r}),ee}return Mt(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 qs.create(t,{...this._def,...n})}exclude(t,n=this._def){return qs.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}qs.create=px;class _h extends le{_parse(t){const n=de.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==U.string&&r.parsedType!==U.number){const s=de.objectValues(n);return F(r,{expected:de.joinValues(s),received:r.parsedType,code:I.invalid_type}),ee}if(this._cache||(this._cache=new Set(de.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const s=de.objectValues(n);return F(r,{received:r.data,code:I.invalid_enum_value,options:s}),ee}return Mt(t.data)}get enum(){return this._def.values}}_h.create=(e,t)=>new _h({values:e,typeName:te.ZodNativeEnum,...se(t)});class Ya extends le{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==U.promise&&n.common.async===!1)return F(n,{code:I.invalid_type,expected:U.promise,received:n.parsedType}),ee;const r=n.parsedType===U.promise?n.data:Promise.resolve(n.data);return Mt(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Ya.create=(e,t)=>new Ya({type:e,typeName:te.ZodPromise,...se(t)});class Gs extends le{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===te.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=>{F(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 ee;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?ee:l.status==="dirty"||n.value==="dirty"?So(l.value):l});{if(n.value==="aborted")return ee;const a=this._def.schema._parseSync({data:i,path:r.path,parent:r});return a.status==="aborted"?ee:a.status==="dirty"||n.value==="dirty"?So(a.value):a}}if(s.type==="refinement"){const i=a=>{const l=s.refinement(a,o);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?ee:(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"?ee:(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(!Ws(i))return ee;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=>Ws(i)?Promise.resolve(s.transform(i.value,o)).then(a=>({status:n.value,value:a})):ee);de.assertNever(s)}}Gs.create=(e,t,n)=>new Gs({schema:e,typeName:te.ZodEffects,effect:t,...se(n)});Gs.createWithPreprocess=(e,t,n)=>new Gs({schema:t,effect:{type:"preprocess",transform:e},typeName:te.ZodEffects,...se(n)});class gr extends le{_parse(t){return this._getType(t)===U.undefined?Mt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}gr.create=(e,t)=>new gr({innerType:e,typeName:te.ZodOptional,...se(t)});class Qs extends le{_parse(t){return this._getType(t)===U.null?Mt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Qs.create=(e,t)=>new Qs({innerType:e,typeName:te.ZodNullable,...se(t)});class Ou extends le{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===U.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Ou.create=(e,t)=>new Ou({innerType:e,typeName:te.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...se(t)});class Lu extends le{_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 Ga(s)?s.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Mn(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Mn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Lu.create=(e,t)=>new Lu({innerType:e,typeName:te.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...se(t)});class jh extends le{_parse(t){if(this._getType(t)!==U.nan){const r=this._getOrReturnCtx(t);return F(r,{code:I.invalid_type,expected:U.nan,received:r.parsedType}),ee}return{status:"valid",value:t.data}}}jh.create=e=>new jh({typeName:te.ZodNaN,...se(e)});class b_ extends le{_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 pf extends le{_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"?ee:o.status==="dirty"?(n.dirty(),So(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"?ee: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 pf({in:t,out:n,typeName:te.ZodPipeline})}}class Iu extends le{_parse(t){const n=this._def.innerType._parse(t),r=s=>(Ws(s)&&(s.value=Object.freeze(s.value)),s);return Ga(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}Iu.create=(e,t)=>new Iu({innerType:e,typeName:te.ZodReadonly,...se(t)});Te.lazycreate;var te;(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"})(te||(te={}));const is=ir.create;kr.create;vn.create;const S_=Te.create;Te.strictCreate;Za.create;Ka.create;Kr.create;qs.create;Ya.create;gr.create;Qs.create;const da=5,k_=[{emoji:"đ§",label:"Plombier / Chauffagiste"},{emoji:"âĄ",label:"Ălectricien"},{emoji:"đ§±",label:"Maçon / Gros Ćuvre"},{emoji:"đ ",label:"Couvreur / Charpentier"},{emoji:"đš",label:"Peintre / Façadier"},{emoji:"đȘ”",label:"Menuisier / ĂbĂ©niste"},{emoji:"đ©",label:"Autre artisan BTP"}],C_=[{emoji:"â
",label:"Oui, mais elle ne me rapporte pas grand-chose"},{emoji:"đ€·",label:"Je ne suis pas sĂ»r"},{emoji:"â",label:"Non, je n'en ai pas"}],E_=[{emoji:"đ",label:"Recevoir plus d'appels de clients"},{emoji:"đ",label:"ApparaĂźtre en premier sur Google Maps"},{emoji:"â",label:"AmĂ©liorer ma rĂ©putation / mes avis en ligne"},{emoji:"đ",label:"Tout ça Ă la fois"}],N_=S_({entreprise:is().trim().min(1,"Le nom d'entreprise est requis").max(100),nom:is().trim().min(1,"Le nom est requis").max(100),prenom:is().trim().min(1,"Le prĂ©nom est requis").max(100),telephone:is().trim().min(1,"Le tĂ©lĂ©phone est requis").max(20).regex(/^(?:(?:\+33|0033|0)\s*[1-9])(?:[\s.-]*\d{2}){4}$/,"NumĂ©ro de tĂ©lĂ©phone invalide (ex : 06 12 34 56 78)"),email:is().trim().max(255).optional().refine(e=>!e||is().email().safeParse(e).success,"Email invalide")}),__=({currentStep:e})=>u.jsxs("div",{className:"mb-6",children:[u.jsxs("div",{className:"flex items-center justify-between relative",children:[u.jsx("div",{className:"absolute top-3 left-0 right-0 h-0.5 bg-border"}),u.jsx("div",{className:"absolute top-3 left-0 h-0.5 bg-accent transition-all duration-500",style:{width:`${(e-1)/(da-1)*100}%`}}),Array.from({length:da},(t,n)=>{const r=n+1,s=r<=e;return u.jsx("div",{className:"relative z-10 flex flex-col items-center",children:u.jsx("div",{className:He("w-6 h-6 rounded-full flex items-center justify-center text-xs font-bold transition-colors duration-300",s?"bg-accent text-accent-foreground":"bg-muted text-muted-foreground border border-border"),children:r<e?u.jsx(Id,{className:"w-3 h-3"}):r})},r)})]}),u.jsxs("p",{className:"text-center text-xs text-muted-foreground mt-3",children:["Ătape ",e," sur ",da]})]}),wc=({emoji:e,label:t,selected:n,onClick:r,fullWidth:s=!1})=>u.jsxs("button",{type:"button",onClick:r,className:He("flex items-center gap-3 p-4 rounded-xl border-2 text-left transition-all duration-200 cursor-pointer group","hover:bg-muted/60 hover:border-accent/40 hover:shadow-md hover:-translate-y-0.5",n?"border-accent bg-accent/5 shadow-md ring-1 ring-accent/20":"border-border bg-card shadow-sm",s?"w-full":""),children:[u.jsx("span",{className:"text-2xl flex-shrink-0 group-hover:scale-110 transition-transform duration-200",children:e}),u.jsx("span",{className:"font-semibold text-foreground text-[0.9rem] leading-tight tracking-tight",children:t})]}),j_=({children:e,stepKey:t})=>u.jsx("div",{className:"animate-fade-in",children:e},t),T_=()=>{const[e,t]=b.useState(1),[n,r]=b.useState("right"),[s,o]=b.useState(!1),[i,a]=b.useState({}),[l,c]=b.useState({metier:"",fiche_google:"",objectif:"",ville:"",entreprise:"",nom:"",prenom:"",telephone:"",email:""}),d=b.useCallback(()=>{r("right"),t(p=>Math.min(p+1,da))},[]),f=b.useCallback(()=>{r("left"),t(p=>Math.max(p-1,1))},[]),g=(p,h)=>{c(y=>({...y,[p]:h})),setTimeout(()=>d(),300)},[m,w]=b.useState(!1),v=async()=>{const p=N_.safeParse(l);if(!p.success){const h={};p.error.errors.forEach(y=>{y.path[0]&&(h[y.path[0]]=y.message)}),a(h);return}a({}),w(!0);try{await fetch("https://n8n.srv1216950.hstgr.cloud/webhook/f9ef3e97-faa3-462f-b384-2cfa5919d85f",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({metier:l.metier,fiche_google:l.fiche_google,objectif:l.objectif,ville:l.ville,entreprise:l.entreprise,nom:l.nom,prenom:l.prenom,telephone:l.telephone,email:l.email})}),hc.success("Demande envoyĂ©e ! Nous vous recontactons trĂšs vite."),o(!0)}catch{hc.error("Une erreur est survenue. Veuillez rĂ©essayer ou nous appeler directement.")}finally{w(!1)}},x="w-full px-4 py-3 rounded-xl border-2 border-border bg-card text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent transition-all";return s?u.jsxs("div",{className:"animate-fade-in py-6 text-center",children:[u.jsx("div",{className:"w-16 h-16 rounded-full bg-[hsl(var(--success)/0.15)] flex items-center justify-center mx-auto mb-4",children:u.jsx("span",{className:"text-4xl",children:"đ"})}),u.jsxs("h3",{className:"text-2xl font-bold text-foreground mb-2",children:["Merci ",l.prenom||""," !"]}),u.jsx("p",{className:"text-muted-foreground mb-6",children:"Nous analysons votre fiche Google et vous recontactons sous 24h avec votre audit personnalisĂ©."}),u.jsxs("div",{className:"text-left max-w-xs mx-auto mb-6",children:[u.jsx("p",{className:"text-sm font-semibold text-foreground mb-3",children:"En attendant, voici ce que nous allons vĂ©rifier :"}),["Votre positionnement sur Google Maps","La qualitĂ© de votre fiche vs vos concurrents","Vos avis clients et votre note","Vos opportunitĂ©s d'amĂ©lioration"].map(p=>u.jsxs("div",{className:"flex items-start gap-2 mb-2",children:[u.jsx(Id,{className:"w-4 h-4 text-[hsl(var(--success))] mt-0.5 flex-shrink-0"}),u.jsx("span",{className:"text-sm text-muted-foreground",children:p})]},p))]}),u.jsxs("a",{href:"tel:+33783558075",className:"inline-flex items-center gap-2 text-accent font-semibold hover:underline",children:[u.jsx(xl,{className:"w-4 h-4"}),"Une question ? Appelez-nous : 07 83 55 80 75"]})]}):u.jsxs("div",{children:[u.jsx(__,{currentStep:e}),e>1&&u.jsxs("button",{type:"button",onClick:f,className:"flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground transition-colors mb-4",children:[u.jsx(yl,{className:"w-4 h-4"}),"Retour"]}),u.jsxs(j_,{stepKey:e,children:[e===1&&u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-accent font-semibold text-center mb-1 tracking-wide uppercase",children:"Ătape 1"}),u.jsx("h3",{className:"text-xl font-extrabold text-foreground mb-1 text-center tracking-tight",children:"Quel est votre mĂ©tier ?"}),u.jsx("p",{className:"text-sm text-muted-foreground text-center mb-5",children:"SĂ©lectionnez votre activitĂ© principale"}),u.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:k_.map(p=>u.jsx(wc,{emoji:p.emoji,label:p.label,selected:l.metier===p.label,onClick:()=>g("metier",p.label)},p.label))})]}),e===2&&u.jsxs("div",{children:[u.jsx("h3",{className:"text-lg font-bold text-foreground mb-4 text-center",children:"Avez-vous dĂ©jĂ une fiche Google Business ?"}),u.jsx("div",{className:"space-y-3",children:C_.map(p=>u.jsx(wc,{emoji:p.emoji,label:p.label,selected:l.fiche_google===p.label,onClick:()=>g("fiche_google",p.label),fullWidth:!0},p.label))})]}),e===3&&u.jsxs("div",{children:[u.jsx("h3",{className:"text-lg font-bold text-foreground mb-4 text-center",children:"Quel est votre objectif principal ?"}),u.jsx("div",{className:"space-y-3",children:E_.map(p=>u.jsx(wc,{emoji:p.emoji,label:p.label,selected:l.objectif===p.label,onClick:()=>g("objectif",p.label),fullWidth:!0},p.label))})]}),e===4&&u.jsxs("div",{children:[u.jsx("h3",{className:"text-lg font-bold text-foreground mb-4 text-center",children:"Dans quelle ville exercez-vous ?"}),u.jsx("input",{type:"text",placeholder:"Ex : Dax, Bordeaux, Mont-de-MarsanâŠ",value:l.ville,onChange:p=>c({...l,ville:p.target.value}),className:x}),u.jsxs("button",{type:"button",onClick:()=>{if(!l.ville.trim()){hc.error("Veuillez indiquer votre ville.");return}d()},className:"w-full mt-4 bg-accent text-accent-foreground font-bold text-base px-6 py-3 rounded-xl hover:opacity-90 transition-opacity inline-flex items-center justify-center gap-2",children:["Suivant",u.jsx(ot,{className:"w-5 h-5"})]})]}),e===5&&u.jsxs("div",{children:[u.jsx("h3",{className:"text-lg font-bold text-foreground mb-4 text-center",children:"Parfait ! OĂč pouvons-nous vous envoyer votre audit gratuit ?"}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium text-foreground mb-1 block",children:"Nom de votre entreprise"}),u.jsx("input",{type:"text",placeholder:"Ex : Dupont Plomberie",value:l.entreprise,onChange:p=>c({...l,entreprise:p.target.value}),className:x}),i.entreprise&&u.jsx("p",{className:"text-destructive text-xs mt-1",children:i.entreprise})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium text-foreground mb-1 block",children:"Votre prĂ©nom"}),u.jsx("input",{type:"text",placeholder:"Jean",value:l.prenom,onChange:p=>c({...l,prenom:p.target.value}),className:x}),i.prenom&&u.jsx("p",{className:"text-destructive text-xs mt-1",children:i.prenom})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium text-foreground mb-1 block",children:"Votre nom"}),u.jsx("input",{type:"text",placeholder:"Dupont",value:l.nom,onChange:p=>c({...l,nom:p.target.value}),className:x}),i.nom&&u.jsx("p",{className:"text-destructive text-xs mt-1",children:i.nom})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium text-foreground mb-1 block",children:"Votre numĂ©ro de tĂ©lĂ©phone"}),u.jsx("input",{type:"tel",placeholder:"06 12 34 56 78",value:l.telephone,onChange:p=>c({...l,telephone:p.target.value}),className:x}),i.telephone&&u.jsx("p",{className:"text-destructive text-xs mt-1",children:i.telephone})]}),u.jsxs("div",{children:[u.jsxs("label",{className:"text-sm font-medium text-foreground mb-1 block",children:["Votre email ",u.jsx("span",{className:"text-muted-foreground font-normal",children:"(facultatif)"})]}),u.jsx("input",{type:"email",placeholder:"jean.dupont@email.com",value:l.email,onChange:p=>c({...l,email:p.target.value}),className:x}),i.email&&u.jsx("p",{className:"text-destructive text-xs mt-1",children:i.email})]})]}),u.jsxs("button",{type:"button",onClick:v,disabled:m,className:"w-full mt-5 bg-accent text-accent-foreground font-bold text-lg px-6 py-4 rounded-xl hover:opacity-90 transition-opacity inline-flex items-center justify-center gap-2 disabled:opacity-60 disabled:cursor-not-allowed",children:[m?"Envoi en coursâŠ":"Recevoir mon audit gratuit",!m&&u.jsx(ot,{className:"w-5 h-5"})]}),u.jsxs("div",{className:"flex items-center justify-center gap-2 mt-3 text-xs text-muted-foreground",children:[u.jsx(Uw,{className:"w-3 h-3"}),u.jsx("span",{children:"Vos informations restent confidentielles. ZĂ©ro spam, c'est promis."})]})]})]})]})},P_=()=>{const e=wt();return u.jsx("section",{id:"cta-final",className:"section-padding gradient-primary",ref:e,children:u.jsxs("div",{className:"container-content text-center",children:[u.jsx("img",{src:ff,alt:"Lead Artisan",className:"h-20 w-auto mx-auto mb-4 animate-on-scroll"}),u.jsx("h2",{className:"animate-on-scroll text-2xl md:text-3xl lg:text-4xl font-bold mb-4 text-primary-foreground",children:"PrĂȘt Ă recevoir plus d'appels dĂšs le mois prochain ?"}),u.jsx("p",{className:"animate-on-scroll text-lg text-primary-foreground/80 mb-12 max-w-2xl mx-auto",children:"Demandez votre audit gratuit maintenant. On analyse votre fiche Google et on vous montre exactement ce que vous perdez â et comment y remĂ©dier."}),u.jsx("div",{className:"animate-on-scroll max-w-[520px] mx-auto bg-card rounded-2xl p-6 md:p-8 shadow-2xl",children:u.jsx(T_,{})}),u.jsxs("div",{className:"animate-on-scroll mt-10",children:[u.jsx("p",{className:"text-primary-foreground/70 mb-2",children:"Ou appelez-nous directement :"}),u.jsxs("a",{href:"tel:+33783558075",className:"inline-flex items-center gap-3 text-2xl font-bold text-primary-foreground hover:text-accent transition-colors",children:[u.jsx(xl,{className:"w-6 h-6"}),"07 83 55 80 75"]})]})]})})},R_="/assets/logo-lead-artisan-blanc-B28E4zGp.png",hf=()=>u.jsx("footer",{className:"bg-footer text-footer-foreground py-12 px-4 md:px-8",children:u.jsxs("div",{className:"container-content",children:[u.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-6",children:[u.jsxs("div",{children:[u.jsx("img",{src:R_,alt:"Lead Artisan",className:"h-12 w-auto mb-2"}),u.jsx("p",{className:"text-sm opacity-70",children:"Lead-Artisan â Votre fiche Google, enfin rentable."})]}),u.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-4 text-sm opacity-70",children:[u.jsx(Qr,{to:"/mentions-legales",className:"hover:opacity-100 transition-opacity",children:"Mentions lĂ©gales"}),u.jsx(Qr,{to:"/politique-de-confidentialite",className:"hover:opacity-100 transition-opacity",children:"Politique de confidentialitĂ©"}),u.jsx("a",{href:"tel:+33783558075",className:"hover:opacity-100 transition-opacity",children:"07 83 55 80 75"})]})]}),u.jsx("div",{className:"border-t border-primary-foreground/10 mt-8 pt-6 text-center text-sm opacity-50",children:"© 2026 Lead-Artisan. Tous droits rĂ©servĂ©s."})]})}),A_=()=>u.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-50 md:hidden",children:u.jsxs("a",{href:"tel:+33783558075",className:"flex items-center justify-center gap-3 gradient-accent text-accent-foreground font-bold py-4 rounded-t-xl shadow-2xl",children:[u.jsx(xl,{className:"w-5 h-5"}),"Appelez-nous : 07 83 55 80 75"]})}),O_=()=>u.jsxs("div",{className:"min-h-screen pb-14 md:pb-0",children:[u.jsx(Yd,{}),u.jsx(TE,{}),u.jsx(RE,{}),u.jsx(OE,{}),u.jsx(LE,{}),u.jsx(DE,{}),u.jsx(CN,{}),u.jsx(NN,{}),u.jsx(ZN,{}),u.jsx(P_,{}),u.jsx(hf,{}),u.jsx(A_,{})]}),L_=()=>u.jsxs("div",{className:"min-h-screen flex flex-col",children:[u.jsx(Yd,{}),u.jsx("main",{className:"flex-1 pt-28 pb-16 px-4 md:px-8",children:u.jsxs("div",{className:"max-w-3xl mx-auto",children:[u.jsxs(Qr,{to:"/",className:"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground transition-colors mb-8",children:[u.jsx(yl,{className:"w-4 h-4"}),"Retour Ă l'accueil"]}),u.jsx("h1",{className:"text-3xl font-extrabold text-foreground mb-8",children:"Mentions lĂ©gales"}),u.jsxs("div",{className:"prose prose-sm max-w-none text-muted-foreground space-y-6",children:[u.jsxs("section",{children:[u.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Ăditeur du site"}),u.jsxs("p",{children:["Le site ",u.jsx("strong",{children:"lead-artisan.fr"})," est Ă©ditĂ© par :",u.jsx("br",{}),"Marc Bourdin",u.jsx("br",{}),"Forme juridique : Entrepreneur individuel",u.jsx("br",{}),"SiĂšge social : 14 A Rue des Coteaux, 17770 Saint-Bris-des-Bois",u.jsx("br",{}),"SIRET : 493 797 898 00035",u.jsx("br",{}),"RCS : 493 797 898 R.C.S. Saintes",u.jsx("br",{}),"N° TVA intracommunautaire : FR06493797898",u.jsx("br",{}),"Directeur de la publication : Marc Bourdin",u.jsx("br",{}),"TĂ©lĂ©phone : 07 83 55 80 75"]})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"text-lg font-bold text-foreground",children:"HĂ©bergement"}),u.jsxs("p",{children:["Le site est hĂ©bergĂ© par :",u.jsx("br",{}),"Netlify, Inc.",u.jsx("br",{}),"512 2nd Street, Suite 200, San Francisco, CA 94107, Ătats-Unis",u.jsx("br",{}),"Site web : ",u.jsx("a",{href:"https://www.netlify.com",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"www.netlify.com"})]})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"text-lg font-bold text-foreground",children:"PropriĂ©tĂ© intellectuelle"}),u.jsx("p",{children:"L'ensemble du contenu de ce site (textes, images, vidĂ©os, logos, icĂŽnes, sons, logiciels, etc.) est protĂ©gĂ© par les lois en vigueur sur la propriĂ©tĂ© intellectuelle. Toute reproduction, reprĂ©sentation, modification, publication, adaptation de tout ou partie des Ă©lĂ©ments du site est interdite, sauf autorisation Ă©crite prĂ©alable de Lead Artisan."})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Limitation de responsabilitĂ©"}),u.jsx("p",{children:"Lead Artisan s'efforce de fournir des informations aussi prĂ©cises que possible. Toutefois, elle ne pourra ĂȘtre tenue responsable des omissions, inexactitudes ou carences dans la mise Ă jour, qu'elles soient de son fait ou du fait de tiers partenaires qui lui fournissent ces informations."})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Cookies"}),u.jsx("p",{children:"Le site peut ĂȘtre amenĂ© Ă utiliser des cookies afin d'amĂ©liorer l'expĂ©rience utilisateur. L'utilisateur peut s'opposer Ă l'enregistrement de cookies en configurant son navigateur."})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Droit applicable"}),u.jsx("p",{children:"Les prĂ©sentes mentions lĂ©gales sont rĂ©gies par le droit français. En cas de litige, les tribunaux français seront seuls compĂ©tents."})]})]})]})}),u.jsx(hf,{})]}),I_=()=>u.jsxs("div",{className:"min-h-screen flex flex-col",children:[u.jsx(Yd,{}),u.jsx("main",{className:"flex-1 pt-28 pb-16 px-4 md:px-8",children:u.jsxs("div",{className:"max-w-3xl mx-auto",children:[u.jsxs(Qr,{to:"/",className:"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground transition-colors mb-8",children:[u.jsx(yl,{className:"w-4 h-4"}),"Retour Ă l'accueil"]}),u.jsx("h1",{className:"text-3xl font-extrabold text-foreground mb-8",children:"Politique de confidentialitĂ©"}),u.jsxs("div",{className:"prose prose-sm max-w-none text-muted-foreground space-y-6",children:[u.jsxs("section",{children:[u.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Introduction"}),u.jsx("p",{children:"La sociĂ©tĂ© Lead Artisan accorde une grande importance Ă la protection de vos donnĂ©es personnelles. La prĂ©sente politique de confidentialitĂ© dĂ©crit les donnĂ©es collectĂ©es, les finalitĂ©s de leur traitement et vos droits."})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"text-lg font-bold text-foreground",children:"DonnĂ©es collectĂ©es"}),u.jsx("p",{children:"Lors de l'utilisation de notre formulaire d'audit gratuit, nous collectons les donnĂ©es suivantes :"}),u.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[u.jsx("li",{children:"Nom et prĂ©nom"}),u.jsx("li",{children:"Nom de l'entreprise"}),u.jsx("li",{children:"NumĂ©ro de tĂ©lĂ©phone"}),u.jsx("li",{children:"Adresse email (facultatif)"}),u.jsx("li",{children:"Ville d'exercice"}),u.jsx("li",{children:"MĂ©tier exercĂ©"}),u.jsx("li",{children:"Informations sur votre fiche Google Business"})]})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"text-lg font-bold text-foreground",children:"FinalitĂ©s du traitement"}),u.jsx("p",{children:"Vos donnĂ©es sont collectĂ©es aux fins suivantes :"}),u.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[u.jsx("li",{children:"RĂ©alisation de l'audit gratuit de votre fiche Google Business"}),u.jsx("li",{children:"Prise de contact pour vous transmettre les rĂ©sultats de l'audit"}),u.jsx("li",{children:"Proposition de nos services d'optimisation"})]})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Base lĂ©gale"}),u.jsx("p",{children:"Le traitement de vos donnĂ©es repose sur votre consentement, donnĂ© lors de la soumission du formulaire de demande d'audit."})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"text-lg font-bold text-foreground",children:"DurĂ©e de conservation"}),u.jsx("p",{children:"Vos donnĂ©es personnelles sont conservĂ©es pour une durĂ©e maximale de 3 ans Ă compter de votre derniĂšre interaction avec notre sociĂ©tĂ©, sauf obligation lĂ©gale contraire."})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Destinataires des donnĂ©es"}),u.jsx("p",{children:"Vos donnĂ©es sont strictement rĂ©servĂ©es Ă l'usage de Lead Artisan. Elles ne sont ni vendues, ni cĂ©dĂ©es, ni louĂ©es Ă des tiers. Seuls les membres habilitĂ©s de notre Ă©quipe y ont accĂšs."})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Vos droits"}),u.jsx("p",{children:"ConformĂ©ment au RĂšglement GĂ©nĂ©ral sur la Protection des DonnĂ©es (RGPD), vous disposez des droits suivants :"}),u.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[u.jsxs("li",{children:[u.jsx("strong",{children:"Droit d'accĂšs :"})," obtenir une copie de vos donnĂ©es personnelles"]}),u.jsxs("li",{children:[u.jsx("strong",{children:"Droit de rectification :"})," corriger des donnĂ©es inexactes"]}),u.jsxs("li",{children:[u.jsx("strong",{children:"Droit Ă l'effacement :"})," demander la suppression de vos donnĂ©es"]}),u.jsxs("li",{children:[u.jsx("strong",{children:"Droit Ă la portabilitĂ© :"})," recevoir vos donnĂ©es dans un format structurĂ©"]}),u.jsxs("li",{children:[u.jsx("strong",{children:"Droit d'opposition :"})," vous opposer au traitement de vos donnĂ©es"]})]}),u.jsxs("p",{className:"mt-2",children:["Pour exercer ces droits, contactez-nous par tĂ©lĂ©phone au ",u.jsx("strong",{children:"07 83 55 80 75"}),"."]})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"text-lg font-bold text-foreground",children:"SĂ©curitĂ©"}),u.jsx("p",{children:"Nous mettons en Ćuvre des mesures techniques et organisationnelles appropriĂ©es pour protĂ©ger vos donnĂ©es contre tout accĂšs non autorisĂ©, perte ou altĂ©ration."})]}),u.jsxs("section",{children:[u.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Modification de la politique"}),u.jsx("p",{children:"Nous nous rĂ©servons le droit de modifier cette politique Ă tout moment. La version en vigueur est celle accessible sur le site."})]})]})]})}),u.jsx(hf,{})]}),M_="/assets/logo-lead-artisan-blanc-B28E4zGp.png",D_=[{num:1,text:u.jsxs(u.Fragment,{children:["La catĂ©gorie principale mal choisie qui vous rend ",u.jsx("strong",{children:"invisible"})," dans 80% des recherches locales"]}),visible:!0},{num:2,text:u.jsxs(u.Fragment,{children:["L'erreur sur les photos qui fait fuir ",u.jsx("strong",{children:"7 prospects sur 10"})," avant mĂȘme qu'ils vous appellent"]}),visible:!0},{num:3,text:u.jsx(u.Fragment,{children:"Le piĂšge de la description vide qui empĂȘche Google de vous recommander aux bons clients"}),visible:!0},{num:4,text:u.jsx(u.Fragment,{children:"L'erreur de gestion des avis qui dĂ©truit votre crĂ©dibilitĂ© en silence..."}),visible:!1}],z_=[{value:"87%",label:"des Français cherchent un artisan sur Google"},{value:"42%",label:"des clics vont au 1er rĂ©sultat affichĂ©"},{value:"70%",label:"d'appels perdus sans fiche optimisĂ©e"}],F_=[{stars:5,text:"En 6 semaines, j'ai dĂ©crochĂ© 5 nouveaux chantiers uniquement grĂące Ă ma fiche Google optimisĂ©e. L'Ă©quipe est rĂ©active et professionnelle.",initials:"LB",name:"Laurent B.",role:"Menuisier Ă Pau"},{stars:5,text:"Ma note est passĂ©e de 3.8 Ă 4.6 Ă©toiles et je ne cours plus aprĂšs les clients. Pour 149 euros par mois, c'est largement rentabilisĂ© dĂšs le premier chantier.",initials:"JD",name:"Julien D.",role:"Ălectricien Ă Dax"}],$_=()=>{const e=wt(),t=wt(),n=wt(),r=wt(),s=wt(),[o,i]=b.useState(""),[a,l]=b.useState(""),[c,d]=b.useState(!1),[f,g]=b.useState(!1),m=b.useRef(null),w=()=>{var h;(h=m.current)==null||h.scrollIntoView({behavior:"smooth",block:"center"})},v=Ry(),x=async h=>{if(h.preventDefault(),!(!a||!o)){g(!0);try{await fetch("https://n8n.srv1216950.hstgr.cloud/webhook/c0a9ded7-a88b-4a97-8d49-91e9f3e5bcc9",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prenom:o,email:a,source:"7-erreurs-fiche-google",type:"lead_magnet"})})}catch{}finally{g(!1),v("/merci-guide-fiche-google")}}},p=h=>u.jsx("div",{id:h,className:"bg-card rounded-2xl p-6 md:p-8 shadow-2xl max-w-md w-full mx-auto",children:c?u.jsxs("div",{className:"text-center py-4",children:[u.jsx("div",{className:"w-14 h-14 bg-success/20 rounded-full flex items-center justify-center mx-auto mb-4",children:u.jsx(Da,{className:"w-7 h-7 text-success"})}),u.jsxs("h3",{className:"text-xl font-bold text-foreground mb-2",children:["C'est envoyĂ©, ",o," ! đ"]}),u.jsx("p",{className:"text-muted-foreground",children:"VĂ©rifiez votre boĂźte mail. Le guide arrive dans les prochaines minutes."})]}):u.jsxs("form",{ref:m,onSubmit:x,children:[u.jsx("h3",{className:"text-lg font-bold text-foreground text-center mb-1",children:"Recevez le guide gratuitement"}),u.jsx("p",{className:"text-sm text-muted-foreground text-center mb-5",children:"AccĂšs immĂ©diat par email â 0 spam, promis."}),u.jsx("label",{className:"block text-sm font-semibold text-foreground mb-1.5",children:"Votre prĂ©nom"}),u.jsx("input",{type:"text",required:!0,placeholder:"Ex : StĂ©phane",value:o,onChange:y=>i(y.target.value),className:"w-full px-4 py-3 rounded-lg border border-input bg-background text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring mb-4"}),u.jsx("label",{className:"block text-sm font-semibold text-foreground mb-1.5",children:"Votre email professionnel"}),u.jsx("input",{type:"email",required:!0,placeholder:"Ex : stephane@gmail.com",value:a,onChange:y=>l(y.target.value),className:"w-full px-4 py-3 rounded-lg border border-input bg-background text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring mb-5"}),u.jsx("button",{type:"submit",disabled:f,className:"w-full gradient-accent text-accent-foreground font-bold text-base px-6 py-3.5 rounded-lg hover:opacity-90 transition-opacity inline-flex items-center justify-center gap-2 shadow-lg disabled:opacity-60",children:f?"EnvoiâŠ":u.jsxs(u.Fragment,{children:["TĂ©lĂ©charger le guide gratuit",u.jsx(ot,{className:"w-5 h-5"})]})}),u.jsxs("p",{className:"text-xs text-muted-foreground mt-3 text-center flex items-center justify-center gap-1",children:[u.jsx(Zw,{className:"w-3 h-3"}),"Vos donnĂ©es restent confidentielles. DĂ©sabonnement en 1 clic."]})]})});return u.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[u.jsx("div",{className:"gradient-primary text-center py-2.5 px-4",children:u.jsxs("p",{className:"text-sm text-primary-foreground",children:[u.jsx("span",{className:"text-accent font-bold",children:"+2 300 artisans"})," ont dĂ©jĂ tĂ©lĂ©chargĂ© ce guide"]})}),u.jsx("section",{className:"gradient-primary pb-16 pt-10 px-4 md:px-8",ref:e,children:u.jsxs("div",{className:"container-content text-center",children:[u.jsxs("div",{className:"animate-on-scroll flex flex-col items-center gap-3 mb-8",children:[u.jsx("span",{className:"bg-accent/20 text-accent-foreground text-xs font-bold px-3 py-1 rounded-full uppercase tracking-wider",children:"đ Guide gratuit"}),u.jsx("img",{src:M_,alt:"Lead Artisan",className:"h-20 md:h-24 w-auto"})]}),u.jsxs("h1",{className:"animate-on-scroll text-3xl md:text-4xl lg:text-5xl font-extrabold text-primary-foreground leading-tight max-w-3xl mx-auto mb-5",children:["Les ",u.jsx("span",{className:"text-accent",children:"7 erreurs fatales"})," qui tuent votre fiche Google",u.jsx("span",{className:"block mt-1",children:"(et vos chantiers)"})]}),u.jsx("p",{className:"animate-on-scroll text-base md:text-lg text-primary-foreground/80 max-w-2xl mx-auto mb-10",children:"90% des artisans font au moins 3 de ces erreurs. Corrigez-les et recevez jusqu'Ă 40% d'appels en plus, sans dĂ©penser un euro en pub."}),u.jsx("div",{className:"animate-on-scroll",children:p()}),u.jsxs("div",{className:"animate-on-scroll flex flex-wrap items-center justify-center gap-6 mt-8 text-sm text-primary-foreground/70",children:[u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(Da,{className:"w-4 h-4 text-accent"})," 100% gratuit"]}),u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(Jw,{className:"w-4 h-4 text-accent"})," AccĂšs immĂ©diat"]}),u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(Kw,{className:"w-4 h-4 text-accent"})," SpĂ©cialiste artisans"]})]})]})}),u.jsx("section",{className:"section-padding bg-background",ref:t,children:u.jsxs("div",{className:"container-content max-w-2xl",children:[u.jsxs("div",{className:"text-center mb-10",children:[u.jsx("h2",{className:"animate-on-scroll text-2xl md:text-3xl font-extrabold text-foreground mb-3",children:"Dans ce guide, vous dĂ©couvrirez..."}),u.jsx("p",{className:"animate-on-scroll text-muted-foreground",children:"Un aperçu des erreurs qui vous coĂ»tent des chantiers chaque semaine"})]}),u.jsx("div",{className:"space-y-4",children:D_.map((h,y)=>u.jsxs("div",{className:`animate-on-scroll relative flex items-start gap-4 rounded-xl border-l-4 p-5 transition-all duration-300 ${h.visible?"border-l-accent bg-card shadow-sm":"border-l-muted bg-muted/30 opacity-50 blur-[2px]"}`,style:{transitionDelay:`${y*100}ms`},children:[u.jsx("div",{className:`w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0 text-sm font-bold ${h.visible?"gradient-accent text-accent-foreground":"bg-muted text-muted-foreground"}`,children:h.num}),u.jsx("p",{className:"text-foreground leading-relaxed pt-0.5",children:h.text})]},y))}),u.jsx("p",{className:"animate-on-scroll text-center text-muted-foreground mt-6 font-medium",children:"+ 3 autres erreurs critiques rĂ©vĂ©lĂ©es dans le guide"}),u.jsx("div",{className:"animate-on-scroll text-center mt-8",children:u.jsxs("button",{onClick:w,className:"gradient-accent text-accent-foreground font-bold text-base px-8 py-3.5 rounded-lg hover:opacity-90 transition-opacity inline-flex items-center gap-2 shadow-lg",children:["DĂ©couvrir les 7 erreurs",u.jsx(ot,{className:"w-5 h-5"})]})})]})}),u.jsx("section",{className:"gradient-primary py-14 px-4",ref:n,children:u.jsx("div",{className:"container-content",children:u.jsx("div",{className:"grid grid-cols-3 gap-4 md:gap-8 max-w-3xl mx-auto text-center",children:z_.map((h,y)=>u.jsxs("div",{className:"animate-on-scroll",style:{transitionDelay:`${y*120}ms`},children:[u.jsx("p",{className:"text-3xl md:text-4xl font-extrabold text-accent mb-1",children:h.value}),u.jsx("p",{className:"text-xs md:text-sm text-primary-foreground/70",children:h.label})]},y))})})}),u.jsx("section",{className:"section-padding bg-background",ref:r,children:u.jsxs("div",{className:"container-content max-w-2xl",children:[u.jsx("h2",{className:"animate-on-scroll text-2xl md:text-3xl font-extrabold text-foreground text-center mb-10",children:"Ce que les artisans disent de nous"}),u.jsx("div",{className:"space-y-5",children:F_.map((h,y)=>u.jsxs("div",{className:"animate-on-scroll bg-card rounded-2xl border border-border/60 p-6 md:p-7 shadow-sm",style:{transitionDelay:`${y*120}ms`},children:[u.jsx("div",{className:"flex gap-0.5 mb-3",children:Array.from({length:h.stars}).map((S,k)=>u.jsx(Md,{className:"w-5 h-5 fill-accent text-accent"},k))}),u.jsx("p",{className:"text-foreground leading-relaxed italic mb-4",children:h.text}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"w-10 h-10 rounded-full gradient-primary flex items-center justify-center text-sm font-bold text-primary-foreground",children:h.initials}),u.jsxs("div",{children:[u.jsx("p",{className:"font-bold text-foreground text-sm",children:h.name}),u.jsx("p",{className:"text-xs text-muted-foreground",children:h.role})]})]})]},y))}),u.jsx("div",{className:"animate-on-scroll text-center mt-8",children:u.jsxs("button",{onClick:w,className:"gradient-accent text-accent-foreground font-bold text-base px-8 py-3.5 rounded-lg hover:opacity-90 transition-opacity inline-flex items-center gap-2 shadow-lg",children:["TĂ©lĂ©charger le guide gratuit",u.jsx(ot,{className:"w-5 h-5"})]})})]})}),u.jsx("section",{className:"gradient-primary section-padding",ref:s,children:u.jsxs("div",{className:"container-content text-center",children:[u.jsx("img",{src:ff,alt:"Lead Artisan",className:"h-14 w-auto mx-auto mb-6 animate-on-scroll"}),u.jsx("h2",{className:"animate-on-scroll text-2xl md:text-3xl font-extrabold text-primary-foreground mb-4 max-w-2xl mx-auto leading-tight",children:"Chaque jour sans fiche optimisĂ©e, c'est un chantier qui va Ă votre concurrent"}),u.jsx("p",{className:"animate-on-scroll text-primary-foreground/80 mb-8 max-w-xl mx-auto",children:"TĂ©lĂ©chargez le guide, corrigez vos erreurs, et commencez Ă recevoir plus d'appels dĂšs cette semaine."}),u.jsx("div",{className:"animate-on-scroll",children:u.jsxs("button",{onClick:w,className:"gradient-accent text-accent-foreground font-bold text-lg px-10 py-4 rounded-xl hover:opacity-90 transition-opacity inline-flex items-center gap-2 shadow-lg hover:shadow-xl hover:scale-[1.02] transition-all duration-300",children:["Je veux le guide gratuit",u.jsx(ot,{className:"w-5 h-5"})]})})]})}),u.jsx("footer",{className:"bg-footer text-footer-foreground py-6 px-4",children:u.jsxs("div",{className:"container-content text-center text-sm opacity-60 flex flex-wrap items-center justify-center gap-2",children:[u.jsx("span",{children:"© 2026 Lead-Artisan. Tous droits rĂ©servĂ©s."}),u.jsx("span",{children:"|"}),u.jsx("a",{href:"https://lead-artisan.fr",className:"hover:opacity-100 transition-opacity",children:"lead-artisan.fr"}),u.jsx("span",{children:"|"}),u.jsx(Qr,{to:"/mentions-legales",className:"hover:opacity-100 transition-opacity",children:"Mentions lĂ©gales"}),u.jsx("span",{children:"|"}),u.jsx(Qr,{to:"/politique-de-confidentialite",className:"hover:opacity-100 transition-opacity",children:"Politique de confidentialitĂ©"})]})})]})},V_=()=>u.jsx("div",{className:"min-h-screen flex flex-col gradient-primary",children:u.jsx("div",{className:"flex-1 flex items-center justify-center px-4 py-16",children:u.jsxs("div",{className:"max-w-lg w-full text-center",children:[u.jsx("img",{src:ff,alt:"Lead Artisan",className:"h-16 w-auto mx-auto mb-10"}),u.jsx("div",{className:"w-16 h-16 bg-success/20 rounded-full flex items-center justify-center mx-auto mb-6",children:u.jsx(Da,{className:"w-8 h-8 text-success"})}),u.jsx("h1",{className:"text-3xl md:text-4xl font-extrabold text-primary-foreground mb-4",children:"Merci ! Votre guide arrive đ"}),u.jsxs("p",{className:"text-lg text-primary-foreground/80 mb-6",children:["Vous allez recevoir le guide ",u.jsx("strong",{className:"text-primary-foreground",children:"« Les 7 erreurs fatales »"})," par email d'ici ",u.jsx("strong",{className:"text-accent",children:"2 minutes"}),"."]}),u.jsx("div",{className:"bg-primary-foreground/10 rounded-xl p-5 mb-10 border border-primary-foreground/10",children:u.jsxs("div",{className:"flex items-start gap-3 text-left",children:[u.jsx(Hw,{className:"w-5 h-5 text-accent flex-shrink-0 mt-0.5"}),u.jsxs("p",{className:"text-sm text-primary-foreground/80",children:[u.jsx("strong",{className:"text-primary-foreground",children:"Vous ne voyez rien ?"})," Pensez Ă vĂ©rifier votre dossier ",u.jsx("strong",{className:"text-accent",children:"Spams"})," ou ",u.jsx("strong",{className:"text-accent",children:"Promotions"}),". L'email arrive de Lead Artisan."]})]})}),u.jsxs("a",{href:"https://www.lead-artisan.fr",className:"gradient-accent text-accent-foreground font-bold text-lg px-8 py-4 rounded-xl hover:opacity-90 transition-opacity inline-flex items-center gap-2 shadow-lg",children:["DĂ©couvrir Lead Artisan",u.jsx(ot,{className:"w-5 h-5"})]}),u.jsxs("p",{className:"text-sm text-primary-foreground/50 mt-8",children:["© 2026 Lead-Artisan. Tous droits rĂ©servĂ©s. |"," ",u.jsx(Qr,{to:"/mentions-legales",className:"hover:text-primary-foreground/80 transition-colors",children:"Mentions lĂ©gales"})]})]})})}),B_=()=>{const e=wi();return b.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),u.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:u.jsxs("div",{className:"text-center",children:[u.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),u.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),u.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},U_=new CC,H_=()=>u.jsx(NC,{client:U_,children:u.jsxs(eC,{children:[u.jsx(Ib,{}),u.jsx(pS,{}),u.jsx(SE,{children:u.jsxs(mE,{children:[u.jsx(Pr,{path:"/",element:u.jsx(O_,{})}),u.jsx(Pr,{path:"/mentions-legales",element:u.jsx(L_,{})}),u.jsx(Pr,{path:"/politique-de-confidentialite",element:u.jsx(I_,{})}),u.jsx(Pr,{path:"/7-erreurs-fiche-google",element:u.jsx($_,{})}),u.jsx(Pr,{path:"/merci-guide-fiche-google",element:u.jsx(V_,{})}),u.jsx(Pr,{path:"*",element:u.jsx(B_,{})})]})})]})});Yg(document.getElementById("root")).render(u.jsx(H_,{}));