vendor: 5,279 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Dashboard-Dqzj2aB_.js","assets/button-CXcf0psP.js","assets/input-CEx6Es-i.js","assets/mail-Bq5DIA9G.js","assets/copy-DiuWMnTl.js","assets/eye-off-CNUKsdly.js","assets/Profile-BsXEFJqn.js","assets/user-D79swjNq.js","assets/AppSettings-BiJHIQ9y.js","assets/index-DLkBA9oM.js","assets/send-Cui5vdSF.js","assets/circle-check-CxxoOG2b.js","assets/Subscription-Cb-GBTau.js","assets/format-Ds46GObI.js","assets/fr-BMUfRRx4.js","assets/clock-B4kNyysl.js","assets/DashboardLayout-D9FuIvXe.js","assets/CGU-DqW3b7iU.js","assets/arrow-left-C0ILUW3s.js","assets/Legals-f_V1_aKJ.js","assets/circle-alert-DiBStlGt.js","assets/Refunds-FyeeZl9m.js","assets/circle-x-B_SKb_19.js","assets/Contact-D23yAEDQ.js","assets/BecomeAffiliate-Do-D4Au4.js","assets/AffiliateDashboard-DiK41tKA.js","assets/badge-61pv9H8q.js","assets/AdminAffiliates-Ba1K0t84.js","assets/AdminContactMessages-GwGznSSb.js","assets/AdminAnalytics-lN9OhIag.js","assets/ResetPin-u910Wp7u.js","assets/SeoFakeDashboards-BUljOcaF.js","assets/SeoLayout-Bid4tzv1.js","assets/SeoFakePaypal-jUWWhOdG.js","assets/SeoFakeStripe-CMPNnDcI.js","assets/SeoFakeBeacons-DmiCVH-N.js","assets/SeoFakeShopify-NGRdL7Tw.js","assets/SeoFauxDashboards-DzG-PJiL.js","assets/SeoFauxPaypal-foSLylq-.js","assets/SeoFauxStripe-BC4PNms0.js","assets/SeoFauxBeacons-C-HwY9FZ.js","assets/SeoFauxShopify-BXOOM3yG.js","assets/SeoCodirDashboard-BOvPqdwl.js","assets/ThankYou-CrQe-igK.js","assets/SignUp-B3rcfurT.js","assets/AuthInput-9rhwaw4R.js","assets/SignIn-DDTDfzmT.js","assets/ForgotPassword-KlEn9Tj1.js","assets/ResetPassword-CiHzIWa2.js"])))=>i.map(i=>d[i]); 2var zS=Object.defineProperty;var cy=e=>{throw TypeError(e)};var $S=(e,t,n)=>t in e?zS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var We=(e,t,n)=>$S(e,typeof t!="symbol"?t+"":t,n),Od=(e,t,n)=>t.has(e)||cy("Cannot "+n);var A=(e,t,n)=>(Od(e,t,"read from private field"),n?n.call(e):t.get(e)),be=(e,t,n)=>t.has(e)?cy("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ne=(e,t,n,r)=>(Od(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Oe=(e,t,n)=>(Od(e,t,"access private method"),n);var Ul=(e,t,n,r)=>({set _(o){ne(e,t,o,n)},get _(){return A(e,t,r)}});function qS(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const c=Object.getOwnPropertyDescriptor(r,o);c&&Object.defineProperty(e,o,c.get?c:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(o){if(o.ep)return;o.ep=!0;const c=n(o);fetch(o.href,c)}})();function hh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ld={exports:{}},Bo={},Dd={exports:{}},Ae={};/** 3 * @license React 4 * react.production.min.js 5 * 6 * Copyright (c) Facebook, Inc. and its affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var uy;function WS(){if(uy)return Ae;uy=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.iterator;function v(O){return O===null||typeof O!="object"?null:(O=x&&O[x]||O["@@iterator"],typeof O=="function"?O:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,j={};function S(O,H,me){this.props=O,this.context=H,this.refs=j,this.updater=me||w}S.prototype.isReactComponent={},S.prototype.setState=function(O,H){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,H,"setState")},S.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function _(){}_.prototype=S.prototype;function P(O,H,me){this.props=O,this.context=H,this.refs=j,this.updater=me||w}var C=P.prototype=new _;C.constructor=P,E(C,S.prototype),C.isPureReactComponent=!0;var T=Array.isArray,I=Object.prototype.hasOwnProperty,$={current:null},q={key:!0,ref:!0,__self:!0,__source:!0};function M(O,H,me){var ve,he={},J=null,we=null;if(H!=null)for(ve in H.ref!==void 0&&(we=H.ref),H.key!==void 0&&(J=""+H.key),H)
vendor: 12,096 bytes, lines 10-34
10I.call(H,ve)&&!q.hasOwnProperty(ve)&&(he[ve]=H[ve]);var Ne=arguments.length-2;if(Ne===1)he.children=me;else if(1<Ne){for(var _e=Array(Ne),Je=0;Je<Ne;Je++)_e[Je]=arguments[Je+2];he.children=_e}if(O&&O.defaultProps)for(ve in Ne=O.defaultProps,Ne)he[ve]===void 0&&(he[ve]=Ne[ve]);return{$$typeof:e,type:O,key:J,ref:we,props:he,_owner:$.current}}function U(O,H){return{$$typeof:e,type:O.type,key:H,ref:O.ref,props:O.props,_owner:O._owner}}function Z(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function pe(O){var H={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(me){return H[me]})}var je=/\/+/g;function Te(O,H){return typeof O=="object"&&O!==null&&O.key!=null?pe(""+O.key):H.toString(36)}function Ce(O,H,me,ve,he){var J=typeof O;(J==="undefined"||J==="boolean")&&(O=null);var we=!1;if(O===null)we=!0;else switch(J){case"string":case"number":we=!0;break;case"object":switch(O.$$typeof){case e:case t:we=!0}}if(we)return we=O,he=he(we),O=ve===""?"."+Te(we,0):ve,T(he)?(me="",O!=null&&(me=O.replace(je,"$&/")+"/"),Ce(he,H,me,"",function(Je){return Je})):he!=null&&(Z(he)&&(he=U(he,me+(!he.key||we&&we.key===he.key?"":(""+he.key).replace(je,"$&/")+"/")+O)),H.push(he)),1;if(we=0,ve=ve===""?".":ve+":",T(O))for(var Ne=0;Ne<O.length;Ne++){J=O[Ne];var _e=ve+Te(J,Ne);we+=Ce(J,H,me,_e,he)}else if(_e=v(O),typeof _e=="function")for(O=_e.call(O),Ne=0;!(J=O.next()).done;)J=J.value,_e=ve+Te(J,Ne++),we+=Ce(J,H,me,_e,he);else if(J==="object")throw H=String(O),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.");return we}function ge(O,H,me){if(O==null)return O;var ve=[],he=0;return Ce(O,ve,"","",function(J){return H.call(me,J,he++)}),ve}function fe(O){if(O._status===-1){var H=O._result;H=H(),H.then(function(me){(O._status===0||O._status===-1)&&(O._status=1,O._result=me)},function(me){(O._status===0||O._status===-1)&&(O._status=2,O._result=me)}),O._status===-1&&(O._status=0,O._result=H)}if(O._status===1)return O._result.default;throw O._result}var ce={current:null},Q={transition:null},se={ReactCurrentDispatcher:ce,ReactCurrentBatchConfig:Q,ReactCurrentOwner:$};function z(){throw Error("act(...) is not supported in production builds of React.")}return Ae.Children={map:ge,forEach:function(O,H,me){ge(O,function(){H.apply(this,arguments)},me)},count:function(O){var H=0;return ge(O,function(){H++}),H},toArray:function(O){return ge(O,function(H){return H})||[]},only:function(O){if(!Z(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},Ae.Component=S,Ae.Fragment=n,Ae.Profiler=o,Ae.PureComponent=P,Ae.StrictMode=r,Ae.Suspense=h,Ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=se,Ae.act=z,Ae.cloneElement=function(O,H,me){if(O==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+O+".");var ve=E({},O.props),he=O.key,J=O.ref,we=O._owner;if(H!=null){if(H.ref!==void 0&&(J=H.ref,we=$.current),H.key!==void 0&&(he=""+H.key),O.type&&O.type.defaultProps)var Ne=O.type.defaultProps;for(_e in H)I.call(H,_e)&&!q.hasOwnProperty(_e)&&(ve[_e]=H[_e]===void 0&&Ne!==void 0?Ne[_e]:H[_e])}var _e=arguments.length-2;if(_e===1)ve.children=me;else if(1<_e){Ne=Array(_e);for(var Je=0;Je<_e;Je++)Ne[Je]=arguments[Je+2];ve.children=Ne}return{$$typeof:e,type:O.type,key:he,ref:J,props:ve,_owner:we}},Ae.createContext=function(O){return O={$$typeof:u,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},O.Provider={$$typeof:c,_context:O},O.Consumer=O},Ae.createElement=M,Ae.createFactory=function(O){var H=M.bind(null,O);return H.type=O,H},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(O){return{$$typeof:f,render:O}},Ae.isValidElement=Z,Ae.lazy=function(O){return{$$typeof:y,_payload:{_status:-1,_result:O},_init:fe}},Ae.memo=function(O,H){return{$$typeof:p,type:O,compare:H===void 0?null:H}},Ae.startTransition=function(O){var H=Q.transition;Q.transition={};try{O()}finally{Q.transition=H}},Ae.unstable_act=z,Ae.useCallback=function(O,H){return ce.current.useCallback(O,H)},Ae.useContext=function(O){return ce.current.useContext(O)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(O){return ce.current.useDeferredValue(O)},Ae.useEffect=function(O,H){return ce.current.useEffect(O,H)},Ae.useId=function(){return ce.current.useId()},Ae.useImperativeHandle=function(O,H,me){return ce.current.useImperativeHandle(O,H,me)},Ae.useInsertionEffect=function(O,H){return ce.current.useInsertionEffect(O,H)},Ae.useLayoutEffect=function(O,H){return ce.current.useLayoutEffect(O,H)},Ae.useMemo=function(O,H){return ce.current.useMemo(O,H)},Ae.useReducer=function(O,H,me){return ce.current.useReducer(O,H,me)},Ae.useRef=function(O){return ce.current.useRef(O)},Ae.useState=function(O){return ce.current.useState(O)},Ae.useSyncExternalStore=function(O,H,me){return ce.current.useSyncExternalStore(O,H,me)},Ae.useTransition=function(){return ce.current.useTransition()},Ae.version="18.3.1",Ae}var dy;function ph(){return dy||(dy=1,Dd.exports=WS()),Dd.exports}/** 11 * @license React 12 * react-jsx-runtime.production.min.js 13 * 14 * Copyright (c) Facebook, Inc. and its affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var fy;function HS(){if(fy)return Bo;fy=1;var e=ph(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(f,h,p){var y,x={},v=null,w=null;p!==void 0&&(v=""+p),h.key!==void 0&&(v=""+h.key),h.ref!==void 0&&(w=h.ref);for(y in h)r.call(h,y)&&!c.hasOwnProperty(y)&&(x[y]=h[y]);if(f&&f.defaultProps)for(y in h=f.defaultProps,h)x[y]===void 0&&(x[y]=h[y]);return{$$typeof:t,type:f,key:v,ref:w,props:x,_owner:o.current}}return Bo.Fragment=n,Bo.jsx=u,Bo.jsxs=u,Bo}var hy;function KS(){return hy||(hy=1,Ld.exports=HS()),Ld.exports}var l=KS(),k=ph();const wi=hh(k),GS=qS({__proto__:null,default:wi},[k]);var zl={},Id={exports:{}},Zt={},Md={exports:{}},Fd={};/** 19 * @license React 20 * scheduler.production.min.js 21 * 22 * Copyright (c) Facebook, Inc. and its affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */var py;function QS(){return py||(py=1,(function(e){function t(Q,se){var z=Q.length;Q.push(se);e:for(;0<z;){var O=z-1>>>1,H=Q[O];if(0<o(H,se))Q[O]=se,Q[z]=H,z=O;else break e}}function n(Q){return Q.length===0?null:Q[0]}function r(Q){if(Q.length===0)return null;var se=Q[0],z=Q.pop();if(z!==se){Q[0]=z;e:for(var O=0,H=Q.length,me=H>>>1;O<me;){var ve=2*(O+1)-1,he=Q[ve],J=ve+1,we=Q[J];if(0>o(he,z))J<H&&0>o(we,he)?(Q[O]=we,Q[J]=z,O=J):(Q[O]=he,Q[ve]=z,O=ve);else if(J<H&&0>o(we,z))Q[O]=we,Q[J]=z,O=J;else break e}}return se}function o(Q,se){var z=Q.sortIndex-se.sortIndex;return z!==0?z:Q.id-se.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var h=[],p=[],y=1,x=null,v=3,w=!1,E=!1,j=!1,S=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(Q){for(var se=n(p);se!==null;){if(se.callback===null)r(p);else if(se.startTime<=Q)r(p),se.sortIndex=se.expirationTime,t(h,se);else break;se=n(p)}}function T(Q){if(j=!1,C(Q),!E)if(n(h)!==null)E=!0,fe(I);else{var se=n(p);se!==null&&ce(T,se.startTime-Q)}}function I(Q,se){E=!1,j&&(j=!1,_(M),M=-1),w=!0;var z=v;try{for(C(se),x=n(h);x!==null&&(!(x.expirationTime>se)||Q&&!pe());){var O=x.callback;if(typeof O=="function"){x.callback=null,v=x.priorityLevel;var H=O(x.expirationTime<=se);se=e.unstable_now(),typeof H=="function"?x.callback=H:x===n(h)&&r(h),C(se)}else r(h);x=n(h)}if(x!==null)var me=!0;else{var ve=n(p);ve!==null&&ce(T,ve.startTime-se),me=!1}return me}finally{x=null,v=z,w=!1}}var $=!1,q=null,M=-1,U=5,Z=-1;function pe(){return!(e.unstable_now()-Z<U)}function je(){if(q!==null){var Q=e.unstable_now();Z=Q;var se=!0;try{se=q(!0,Q)}finally{se?Te():($=!1,q=null)}}else $=!1}var Te;if(typeof P=="function")Te=function(){P(je)};else if(typeof MessageChannel<"u"){var Ce=new MessageChannel,ge=Ce.port2;Ce.port1.onmessage=je,Te=function(){ge.postMessage(null)}}else Te=function(){S(je,0)};function fe(Q){q=Q,$||($=!0,Te())}function ce(Q,se){M=S(function(){Q(e.unstable_now())},se)}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(Q){Q.callback=null},e.unstable_continueExecution=function(){E||w||(E=!0,fe(I))},e.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<Q?Math.floor(1e3/Q):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(h)},e.unstable_next=function(Q){switch(v){case 1:case 2:case 3:var se=3;break;default:se=v}var z=v;v=se;try{return Q()}finally{v=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Q,se){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var z=v;v=Q;try{return se()}finally{v=z}},e.unstable_scheduleCallback=function(Q,se,z){var O=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?O+z:O):z=O,Q){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=z+H,Q={id:y++,callback:se,priorityLevel:Q,startTime:z,expirationTime:H,sortIndex:-1},z>O?(Q.sortIndex=z,t(p,Q),n(h)===null&&Q===n(p)&&(j?(_(M),M=-1):j=!0,ce(T,z-O))):(Q.sortIndex=H,t(h,Q),E||w||(E=!0,fe(I))),Q},e.unstable_shouldYield=pe,e.unstable_wrapCallback=function(Q){var se=v;return function(){var z=v;v=se;try{return Q.apply(this,arguments)}finally{v=z}}}})(Fd)),Fd}var my;function YS(){return my||(my=1,Md.exports=QS()),Md.exports}/** 27 * @license React 28 * react-dom.production.min.js 29 * 30 * Copyright (c) Facebook, Inc. and its affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var gy;function XS(){if(gy)return Zt;gy=1;var e=ph(),t=YS();function n(s){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+s,a=1;a<arguments.length;a++)i+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+s+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function c(s,i){u(s,i),u(s+"Capture",i)}function u(s,i){for(o[s]=i,s=0;s<i.length;s++)r.add(i[s])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,p=/^[: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]*$/,y={},x={};function v(s){return h.call(x,s)?!0:h.call(y,s)?!1:p.test(s)?x[s]=!0:(y[s]=!0,!1)}function w(s,i,a,d){if(a!==null&&a.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return d?!1:a!==null?!a.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function E(s,i,a,d){if(i===null||typeof i>"u"||w(s,i,a,d))return!0;
vendor: 21,877 bytes, lines 34-38
34if(d)return!1;if(a!==null)switch(a.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function j(s,i,a,d,m,g,b){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=d,this.attributeNamespace=m,this.mustUseProperty=a,this.propertyName=s,this.type=i,this.sanitizeURL=g,this.removeEmptyString=b}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){S[s]=new j(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var i=s[0];S[i]=new j(i,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){S[s]=new j(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){S[s]=new j(s,2,!1,s,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(s){S[s]=new j(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){S[s]=new j(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){S[s]=new j(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){S[s]=new j(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){S[s]=new j(s,5,!1,s.toLowerCase(),null,!1,!1)});var _=/[\-:]([a-z])/g;function P(s){return s[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(s){var i=s.replace(_,P);S[i]=new j(i,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var i=s.replace(_,P);S[i]=new j(i,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var i=s.replace(_,P);S[i]=new j(i,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){S[s]=new j(s,1,!1,s.toLowerCase(),null,!1,!1)}),S.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){S[s]=new j(s,1,!1,s.toLowerCase(),null,!0,!0)});function C(s,i,a,d){var m=S.hasOwnProperty(i)?S[i]:null;(m!==null?m.type!==0:d||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(E(i,a,m,d)&&(a=null),d||m===null?v(i)&&(a===null?s.removeAttribute(i):s.setAttribute(i,""+a)):m.mustUseProperty?s[m.propertyName]=a===null?m.type===3?!1:"":a:(i=m.attributeName,d=m.attributeNamespace,a===null?s.removeAttribute(i):(m=m.type,a=m===3||m===4&&a===!0?"":""+a,d?s.setAttributeNS(d,i,a):s.setAttribute(i,a))))}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,I=Symbol.for("react.element"),$=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),Z=Symbol.for("react.provider"),pe=Symbol.for("react.context"),je=Symbol.for("react.forward_ref"),Te=Symbol.for("react.suspense"),Ce=Symbol.for("react.suspense_list"),ge=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),ce=Symbol.for("react.offscreen"),Q=Symbol.iterator;function se(s){return s===null||typeof s!="object"?null:(s=Q&&s[Q]||s["@@iterator"],typeof s=="function"?s:null)}var z=Object.assign,O;function H(s){if(O===void 0)try{throw Error()}catch(a){var i=a.stack.trim().match(/\n( *(at )?)/);O=i&&i[1]||""}return` 35`+O+s}var me=!1;function ve(s,i){if(!s||me)return"";me=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(V){var d=V}Reflect.construct(s,[],i)}else{try{i.call()}catch(V){d=V}s.call(i.prototype)}else{try{throw Error()}catch(V){d=V}s()}}catch(V){if(V&&d&&typeof V.stack=="string"){for(var m=V.stack.split(` 36`),g=d.stack.split(` 37`),b=m.length-1,N=g.length-1;1<=b&&0<=N&&m[b]!==g[N];)N--;for(;1<=b&&0<=N;b--,N--)if(m[b]!==g[N]){if(b!==1||N!==1)do if(b--,N--,0>N||m[b]!==g[N]){var R=` 38`+m[b].replace(" at new "," at ");return s.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",s.displayName)),R}while(1<=b&&0<=N);break}}}finally{me=!1,Error.prepareStackTrace=a}return(s=s?s.displayName||s.name:"")?H(s):""}function he(s){switch(s.tag){case 5:return H(s.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return s=ve(s.type,!1),s;case 11:return s=ve(s.type.render,!1),s;case 1:return s=ve(s.type,!0),s;default:return""}}function J(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case q:return"Fragment";case $:return"Portal";case U:return"Profiler";case M:return"StrictMode";case Te:return"Suspense";case Ce:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case pe:return(s.displayName||"Context")+".Consumer";case Z:return(s._context.displayName||"Context")+".Provider";case je:var i=s.render;return s=s.displayName,s||(s=i.displayName||i.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case ge:return i=s.displayName||null,i!==null?i:J(s.type)||"Memo";case fe:i=s._payload,s=s._init;try{return J(s(i))}catch{}}return null}function we(s){var i=s.type;switch(s.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=i.render,s=s.displayName||s.name||"",i.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return J(i);case 8:return i===M?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Ne(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function _e(s){var i=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Je(s){var i=_e(s)?"checked":"value",a=Object.getOwnPropertyDescriptor(s.constructor.prototype,i),d=""+s[i];if(!s.hasOwnProperty(i)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var m=a.get,g=a.set;return Object.defineProperty(s,i,{configurable:!0,get:function(){return m.call(this)},set:function(b){d=""+b,g.call(this,b)}}),Object.defineProperty(s,i,{enumerable:a.enumerable}),{getValue:function(){return d},setValue:function(b){d=""+b},stopTracking:function(){s._valueTracker=null,delete s[i]}}}}function Pt(s){s._valueTracker||(s._valueTracker=Je(s))}function $e(s){if(!s)return!1;var i=s._valueTracker;if(!i)return!0;var a=i.getValue(),d="";return s&&(d=_e(s)?s.checked?"true":"false":s.value),s=d,s!==a?(i.setValue(s),!0):!1}function Vt(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function Wt(s,i){var a=i.checked;return z({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??s._wrapperState.initialChecked})}function Ht(s,i){var a=i.defaultValue==null?"":i.defaultValue,d=i.checked!=null?i.checked:i.defaultChecked;a=Ne(i.value!=null?i.value:a),s._wrapperState={initialChecked:d,initialValue:a,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function W(s,i){i=i.checked,i!=null&&C(s,"checked",i,!1)}function Re(s,i){W(s,i);var a=Ne(i.value),d=i.type;if(a!=null)d==="number"?(a===0&&s.value===""||s.value!=a)&&(s.value=""+a):s.value!==""+a&&(s.value=""+a);else if(d==="submit"||d==="reset"){s.removeAttribute("value");return}i.hasOwnProperty("value")?bt(s,i.type,a):i.hasOwnProperty("defaultValue")&&bt(s,i.type,Ne(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(s.defaultChecked=!!i.defaultChecked)}function Kt(s,i,a){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var d=i.type;if(!(d!=="submit"&&d!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+s._wrapperState.initialValue,a||i===s.value||(s.value=i),s.defaultValue=i}a=s.name,a!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,a!==""&&(s.name=a)}function bt(s,i,a){(i!=="number"||Vt(s.ownerDocument)!==s)&&(a==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+a&&(s.defaultValue=""+a))}var gs=Array.isArray;function ys(s,i,a,d){if(s=s.options,i){i={};for(var m=0;m<a.length;m++)i["$"+a[m]]=!0;for(a=0;a<s.length;a++)m=i.hasOwnProperty("$"+s[a].value),s[a].selected!==m&&(s[a].selected=m),m&&d&&(s[a].defaultSelected=!0)}else{for(a=""+Ne(a),i=null,m=0;m<s.length;m++){if(s[m].value===a){s[m].selected=!0,d&&(s[m].defaultSelected=!0);return}i!==null||s[m].disabled||(i=s[m])}i!==null&&(i.selected=!0)}}function Jn(s,i){if(i.dangerouslySetInnerHTML!=null)throw Error(n(91));return z({},i,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function vp(s,i){var a=i.value;if(a==null){if(a=i.children,i=i.defaultValue,a!=null){if(i!=null)throw Error(n(92));if(gs(a)){if(1<a.length)throw Error(n(93));a=a[0]}i=a}i==null&&(i=""),a=i}s._wrapperState={initialValue:Ne(a)}}function bp(s,i){var a=Ne(i.value),d=Ne(i.defaultValue);a!=null&&(a=""+a,a!==s.value&&(s.value=a),i.defaultValue==null&&s.defaultValue!==a&&(s.defaultValue=a)),d!=null&&(s.defaultValue=""+d)}function wp(s){var i=s.textContent;i===s._wrapperState.initialValue&&i!==""&&i!==null&&(s.value=i)}function _p(s){switch(s){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 qc(s,i){return s==null||s==="http://www.w3.org/1999/xhtml"?_p(i):s==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var Oa,Sp=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,a,d,m){MSApp.execUnsafeLocalFunction(function(){return s(i,a,d,m)})}:s})(function(s,i){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=i;else{for(Oa=Oa||document.createElement("div"),Oa.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=Oa.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;i.firstChild;)s.appendChild(i.firstChild)}});function eo(s,i){if(i){var a=s.firstChild;if(a&&a===s.lastChild&&a.nodeType===3){a.nodeValue=i;return}}s.textContent=i}var to={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},H1=["Webkit","ms","Moz","O"];Object.keys(to).forEach(function(s){H1.forEach(function(i){i=i+s.charAt(0).toUpperCase()+s.substring(1),to[i]=to[s]})});function kp(s,i,a){return i==null||typeof i=="boolean"||i===""?"":a||typeof i!="number"||i===0||to.hasOwnProperty(s)&&to[s]?(""+i).trim():i+"px"}function jp(s,i){s=s.style;for(var a in i)if(i.hasOwnProperty(a)){var d=a.indexOf("--")===0,m=kp(a,i[a],d);a==="float"&&(a="cssFloat"),d?s.setProperty(a,m):s[a]=m}}var K1=z({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 Wc(s,i){if(i){if(K1[s]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,s));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(n(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(n(61))}if(i.style!=null&&typeof i.style!="object")throw Error(n(62))}}function Hc(s,i){if(s.indexOf("-")===-1)return typeof i.is=="string";switch(s){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 Kc=null;function Gc(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Qc=null,Kr=null,Gr=null;function Cp(s){if(s=ko(s)){if(typeof Qc!="function")throw Error(n(280));var i=s.stateNode;i&&(i=nl(i),Qc(s.stateNode,s.type,i))}}function Ep(s){Kr?Gr?Gr.push(s):Gr=[s]:Kr=s}function Np(){if(Kr){var s=Kr,i=Gr;if(Gr=Kr=null,Cp(s),i)for(s=0;s<i.length;s++)Cp(i[s])}}function Pp(s,i){return s(i)}function Tp(){}var Yc=!1;function Rp(s,i,a){if(Yc)return s(i,a);Yc=!0;try{return Pp(s,i,a)}finally{Yc=!1,(Kr!==null||Gr!==null)&&(Tp(),Np())}}function no(s,i){var a=s.stateNode;if(a===null)return null;var d=nl(a);if(d===null)return null;a=d[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(s=s.type,d=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!d;break e;default:s=!1}if(s)return null;if(a&&typeof a!="function")throw Error(n(231,i,typeof a));return a}var Xc=!1;if(f)try{var so={};Object.defineProperty(so,"passive",{get:function(){Xc=!0}}),window.addEventListener("test",so,so),window.removeEventListener("test",so,so)}catch{Xc=!1}function G1(s,i,a,d,m,g,b,N,R){var V=Array.prototype.slice.call(arguments,3);try{i.apply(a,V)}catch(G){this.onError(G)}}var ro=!1,La=null,Da=!1,Jc=null,Q1={onError:function(s){ro=!0,La=s}};function Y1(s,i,a,d,m,g,b,N,R){ro=!1,La=null,G1.apply(Q1,arguments)}function X1(s,i,a,d,m,g,b,N,R){if(Y1.apply(this,arguments),ro){if(ro){var V=La;ro=!1,La=null}else throw Error(n(198));Da||(Da=!0,Jc=V)}}function ar(s){var i=s,a=s;if(s.alternate)for(;i.return;)i=i.return;else{s=i;do i=s,(i.flags&4098)!==0&&(a=i.return),s=i.return;while(s)}return i.tag===3?a:null}function Ap(s){if(s.tag===13){var i=s.memoizedState;if(i===null&&(s=s.alternate,s!==null&&(i=s.memoizedState)),i!==null)return i.dehydrated}return null}function Op(s){if(ar(s)!==s)throw Error(n(188))}function J1(s){var i=s.alternate;if(!i){if(i=ar(s),i===null)throw Error(n(188));return i!==s?null:s}for(var a=s,d=i;;){var m=a.return;if(m===null)break;var g=m.alternate;if(g===null){if(d=m.return,d!==null){a=d;continue}break}if(m.child===g.child){for(g=m.child;g;){if(g===a)return Op(m),s;if(g===d)return Op(m),i;g=g.sibling}throw Error(n(188))}if(a.return!==d.return)a=m,d=g;else{for(var b=!1,N=m.child;N;){if(N===a){b=!0,a=m,d=g;break}if(N===d){b=!0,d=m,a=g;break}N=N.sibling}if(!b){for(N=g.child;N;){if(N===a){b=!0,a=g,d=m;break}if(N===d){b=!0,d=g,a=m;break}N=N.sibling}if(!b)throw Error(n(189))}}if(a.alternate!==d)throw Error(n(190))}if(a.tag!==3)throw Error(n(188));return a.stateNode.current===a?s:i}function Lp(s){return s=J1(s),s!==null?Dp(s):null}function Dp(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var i=Dp(s);if(i!==null)return i;s=s.sibling}return null}var Ip=t.unstable_scheduleCallback,Mp=t.unstable_cancelCallback,Z1=t.unstable_shouldYield,e_=t.unstable_requestPaint,ot=t.unstable_now,t_=t.unstable_getCurrentPriorityLevel,Zc=t.unstable_ImmediatePriority,Fp=t.unstable_UserBlockingPriority,Ia=t.unstable_NormalPriority,n_=t.unstable_LowPriority,Bp=t.unstable_IdlePriority,Ma=null,Bn=null;function s_(s){if(Bn&&typeof Bn.onCommitFiberRoot=="function")try{Bn.onCommitFiberRoot(Ma,s,void 0,(s.current.flags&128)===128)}catch{}}var Cn=Math.clz32?Math.clz32:o_,r_=Math.log,i_=Math.LN2;function o_(s){return s>>>=0,s===0?32:31-(r_(s)/i_|0)|0}var Fa=64,Ba=4194304;function io(s){switch(s&-s){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 s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function Va(s,i){var a=s.pendingLanes;if(a===0)return 0;var d=0,m=s.suspendedLanes,g=s.pingedLanes,b=a&268435455;if(b!==0){var N=b&~m;N!==0?d=io(N):(g&=b,g!==0&&(d=io(g)))}else b=a&~m,b!==0?d=io(b):g!==0&&(d=io(g));if(d===0)return 0;if(i!==0&&i!==d&&(i&m)===0&&(m=d&-d,g=i&-i,m>=g||m===16&&(g&4194240)!==0))return i;if((d&4)!==0&&(d|=a&16),i=s.entangledLanes,i!==0)for(s=s.entanglements,i&=d;0<i;)a=31-Cn(i),m=1<<a,d|=s[a],i&=~m;return d}function a_(s,i){switch(s){case 1:case 2:case 4:return i+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 i+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 l_(s,i){for(var a=s.suspendedLanes,d=s.pingedLanes,m=s.expirationTimes,g=s.pendingLanes;0<g;){var b=31-Cn(g),N=1<<b,R=m[b];R===-1?((N&a)===0||(N&d)!==0)&&(m[b]=a_(N,i)):R<=i&&(s.expiredLanes|=N),g&=~N}}function eu(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function Vp(){var s=Fa;return Fa<<=1,(Fa&4194240)===0&&(Fa=64),s}function tu(s){for(var i=[],a=0;31>a;a++)i.push(s);return i}function oo(s,i,a){s.pendingLanes|=i,i!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,i=31-Cn(i),s[i]=a}function c_(s,i){var a=s.pendingLanes&~i;s.pendingLanes=i,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=i,s.mutableReadLanes&=i,s.entangledLanes&=i,i=s.entanglements;var d=s.eventTimes;for(s=s.expirationTimes;0<a;){var m=31-Cn(a),g=1<<m;i[m]=0,d[m]=-1,s[m]=-1,a&=~g}}function nu(s,i){var a=s.entangledLanes|=i;for(s=s.entanglements;a;){var d=31-Cn(a),m=1<<d;m&i|s[d]&i&&(s[d]|=i),a&=~m}}var ze=0;function Up(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var zp,su,$p,qp,Wp,ru=!1,Ua=[],xs=null,vs=null,bs=null,ao=new Map,lo=new Map,ws=[],u_="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 Hp(s,i){switch(s){case"focusin":case"focusout":xs=null;break;case"dragenter":case"dragleave":vs=null;break;case"mouseover":case"mouseout":bs=null;break;case"pointerover":case"pointerout":ao.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":lo.delete(i.pointerId)}}function co(s,i,a,d,m,g){return s===null||s.nativeEvent!==g?(s={blockedOn:i,domEventName:a,eventSystemFlags:d,nativeEvent:g,targetContainers:[m]},i!==null&&(i=ko(i),i!==null&&su(i)),s):(s.eventSystemFlags|=d,i=s.targetContainers,m!==null&&i.indexOf(m)===-1&&i.push(m),s)}function d_(s,i,a,d,m){switch(i){case"focusin":return xs=co(xs,s,i,a,d,m),!0;case"dragenter":return vs=co(vs,s,i,a,d,m),!0;case"mouseover":return bs=co(bs,s,i,a,d,m),!0;case"pointerover":var g=m.pointerId;return ao.set(g,co(ao.get(g)||null,s,i,a,d,m)),!0;case"gotpointercapture":return g=m.pointerId,lo.set(g,co(lo.get(g)||null,s,i,a,d,m)),!0}return!1}function Kp(s){var i=lr(s.target);if(i!==null){var a=ar(i);if(a!==null){if(i=a.tag,i===13){if(i=Ap(a),i!==null){s.blockedOn=i,Wp(s.priority,function(){$p(a)});return}}else if(i===3&&a.stateNode.current.memoizedState.isDehydrated){s.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}s.blockedOn=null}function za(s){if(s.blockedOn!==null)return!1;for(var i=s.targetContainers;0<i.length;){var a=ou(s.domEventName,s.eventSystemFlags,i[0],s.nativeEvent);if(a===null){a=s.nativeEvent;var d=new a.constructor(a.type,a);Kc=d,a.target.dispatchEvent(d),Kc=null}else return i=ko(a),i!==null&&su(i),s.blockedOn=a,!1;i.shift()}return!0}function Gp(s,i,a){za(s)&&a.delete(i)}function f_(){ru=!1,xs!==null&&za(xs)&&(xs=null),vs!==null&&za(vs)&&(vs=null),bs!==null&&za(bs)&&(bs=null),ao.forEac
vendor: 3,264 bytes, line 38
38h(Gp),lo.forEach(Gp)}function uo(s,i){s.blockedOn===i&&(s.blockedOn=null,ru||(ru=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,f_)))}function fo(s){function i(m){return uo(m,s)}if(0<Ua.length){uo(Ua[0],s);for(var a=1;a<Ua.length;a++){var d=Ua[a];d.blockedOn===s&&(d.blockedOn=null)}}for(xs!==null&&uo(xs,s),vs!==null&&uo(vs,s),bs!==null&&uo(bs,s),ao.forEach(i),lo.forEach(i),a=0;a<ws.length;a++)d=ws[a],d.blockedOn===s&&(d.blockedOn=null);for(;0<ws.length&&(a=ws[0],a.blockedOn===null);)Kp(a),a.blockedOn===null&&ws.shift()}var Qr=T.ReactCurrentBatchConfig,$a=!0;function h_(s,i,a,d){var m=ze,g=Qr.transition;Qr.transition=null;try{ze=1,iu(s,i,a,d)}finally{ze=m,Qr.transition=g}}function p_(s,i,a,d){var m=ze,g=Qr.transition;Qr.transition=null;try{ze=4,iu(s,i,a,d)}finally{ze=m,Qr.transition=g}}function iu(s,i,a,d){if($a){var m=ou(s,i,a,d);if(m===null)Su(s,i,d,qa,a),Hp(s,d);else if(d_(m,s,i,a,d))d.stopPropagation();else if(Hp(s,d),i&4&&-1<u_.indexOf(s)){for(;m!==null;){var g=ko(m);if(g!==null&&zp(g),g=ou(s,i,a,d),g===null&&Su(s,i,d,qa,a),g===m)break;m=g}m!==null&&d.stopPropagation()}else Su(s,i,d,null,a)}}var qa=null;function ou(s,i,a,d){if(qa=null,s=Gc(d),s=lr(s),s!==null)if(i=ar(s),i===null)s=null;else if(a=i.tag,a===13){if(s=Ap(i),s!==null)return s;s=null}else if(a===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;s=null}else i!==s&&(s=null);return qa=s,null}function Qp(s){switch(s){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(t_()){case Zc:return 1;case Fp:return 4;case Ia:case n_:return 16;case Bp:return 536870912;default:return 16}default:return 16}}var _s=null,au=null,Wa=null;function Yp(){if(Wa)return Wa;var s,i=au,a=i.length,d,m="value"in _s?_s.value:_s.textContent,g=m.length;for(s=0;s<a&&i[s]===m[s];s++);var b=a-s;for(d=1;d<=b&&i[a-d]===m[g-d];d++);return Wa=m.slice(s,1<d?1-d:void 0)}function Ha(s){var i=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&i===13&&(s=13)):s=i,s===10&&(s=13),32<=s||s===13?s:0}function Ka(){return!0}function Xp(){return!1}function sn(s){function i(a,d,m,g,b){this._reactName=a,this._targetInst=m,this.type=d,this.nativeEvent=g,this.target=b,this.currentTarget=null;
vendor: 2,622 bytes, line 38
38for(var N in s)s.hasOwnProperty(N)&&(a=s[N],this[N]=a?a(g):g[N]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Ka:Xp,this.isPropagationStopped=Xp,this}return z(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ka)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ka)},persist:function(){},isPersistent:Ka}),i}var Yr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lu=sn(Yr),ho=z({},Yr,{view:0,detail:0}),m_=sn(ho),cu,uu,po,Ga=z({},ho,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fu,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==po&&(po&&s.type==="mousemove"?(cu=s.screenX-po.screenX,uu=s.screenY-po.screenY):uu=cu=0,po=s),cu)},movementY:function(s){return"movementY"in s?s.movementY:uu}}),Jp=sn(Ga),g_=z({},Ga,{dataTransfer:0}),y_=sn(g_),x_=z({},ho,{relatedTarget:0}),du=sn(x_),v_=z({},Yr,{animationName:0,elapsedTime:0,pseudoElement:0}),b_=sn(v_),w_=z({},Yr,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),__=sn(w_),S_=z({},Yr,{data:0}),Zp=sn(S_),k_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},j_={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"},C_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function E_(s){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(s):(s=C_[s])?!!i[s]:!1}function fu(){return E_}var N_=z({},ho,{key:function(s){if(s.key){var i=k_[s.key]||s.key;if(i!=="Unidentified")return i}return s.type==="keypress"?(s=Ha(s),s===13?"Enter":String.fromCharCode(s)):s.type==="
38keydown"||s.type==="keyup"?j_[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fu,charCode:function(s){return s.type==="keypress"?Ha(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Ha(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),P_=sn(N_),T_=z({},Ga,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),em=sn(T_),R_=z({},ho,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fu}),A_=sn(R_),O_=z({},Yr,{propertyName:0,elapsedTime:0,pseudoElement:0}),L_=sn(O_),D_=z({},Ga,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),I_=sn(D_),M_=[9,13,27,32],hu=f&&"CompositionEvent"in window,mo=null;f&&"documentMode"in document&&(mo=document.documentMode);var F_=f&&"TextEvent"in window&&!mo,tm=f&&(!hu||mo&&8<mo&&11>=mo),nm=" ",sm=!1;function rm(s,i){switch(s){case"keyup":return M_.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function im(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Xr=!1;function B_(s,i){switch(s){case"compositionend":return im(i);case"keypress":return i.which!==32?null:(sm=!0,nm);case"textInput":return s=i.data,s===nm&&sm?null:s;default:return null}}function V_(s,i){if(Xr)return s==="compositionend"||!hu&&rm(s,i)?(s=Yp(),Wa=au=_s=null,Xr=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return tm&&i.locale!=="ko"?null:i.data;default:return null}}var U_={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 om(s){var i=s&&s.nodeName&&s.nodeName.toLowerCase();return i==="input"?!!U_[s.type]:i==="textarea"}function am(s,i,a,d){Ep(d),i=Za(i,"onChange"),0<i.length&&(a=new lu("onChange","change",null,a,d),s.push({event:a,listeners:i}))}var go=null,yo=null;function z_(s){jm(s,0)}function Qa(s){var i=ni(s);if($e(i))return s}function $_(s,i){if(s==="change")return i}var lm=!1;if(f){var pu;if(f){var mu="oninput"in document;if(!mu){var cm=document.createElement("div");cm.setAttribute("oninput","return;"),mu=typeof cm.oninput=="function"}pu=mu}else pu=!1;lm=pu&&(!document.documentMode||9<document.documentMode)}function um(){go&&(go.detachEvent("onpropertychange",dm),yo=go=null)}function dm(s){if(s.propertyName==="value"&&Qa(yo)){var i=[];am(i,yo,s,Gc(s)),Rp(z_,i)}}function q_(s,i,a){s==="focusin"?(um(),go=i,yo=a,go.attachEvent("onpropertychange",dm)):s==="focusout"&&um()}function W_(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Qa(yo)}function H_(s,i){if(s==="click")return Qa(i)}function K_(s,i){if(s==="input"||s==="change")return Qa(i)}function G_(s,i){return s===i&&(s!==0||1/s===1/i)||s!==s&&i!==i}var En=typeof Object.is=="function"?Object.is:G_;function xo(s,i){if(En(s,i))return!0;if(typeof s!="object"||s===null||typeof i!="object"||i===null)return!1;var a=Object.keys(s),d=Object.keys(i);if(a.length!==d.length)return!1;for(d=0;d<a.length;d++){var m=a[d];if(!h.call(i,m)||!En(s[m],i[m]))return!1}return!0}function fm(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function hm(s,i){var a=fm(s);s=0;for(var d;a;){if(a.nodeType===3){if(d=s+a.textContent.length,s<=i&&d>=i)return{node:a,offset:i-s};s=d}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=fm(a)}}function pm(s,i){return s&&i?s===i?!0:s&&s.nodeType===3?!1:i&&i.nodeType===3?pm(s,i.parentNode):"contains"in s?s.contains(i):s.compareDocumentPosition?!!(s.compareDocumentPosition(i)&16):!1:!1}function mm(){for(var s=window,i=Vt();i instanceof s.HTMLIFrameElement;){try{var a=typeof i.contentWindow.location.href=="string"}catch{a=!1}if(a)s=i.contentWindow;else break;i=Vt(s.document)}return i}function gu(s){var i=s&&s.nodeName&&s.nodeName.toLowerCase();return i&&(i==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||i==="textarea"||s.contentEditable==="true")}function Q_(s){var i=mm(),a=s.focusedElem,d=s.selectionRange;if(i!==a&&a&&a.ownerDocument&&pm(a.ownerDocument.documentElement,a)){if(d!==null&&gu(a)){if(i=d.start,s=d.end,s===void 0&&(s=i),"selectionStart"in a)a.selectionStart=i,a.selectionEnd=Math.min(s,a.value.length);else if(s=(i=a.ownerDocument||document)&&i.defaultView||window,s.getSelection){s=s.getSelection();var m=a.textContent.length,g=Math.min(d.start,m);d=d.end===void 0?g:Math.min(d.end,m),!s.extend&&g>d&&(m=d,d=g,g=m),m=hm(a,g);var b=hm(a,d);m&&b&&(s.rangeCount!==1||s.anchorNode!==m.node||s.anchorOffset!==m.offset||s.focusNode!==b.node||s.focusOffset!==b.offset)&&(i=i.createRange(),i.setStart(m.node,m.offset),s.removeAllRanges(),g>d?(s.addRange(i),s.extend(b.node,b.offset)):(i.setEnd(b.node,b.offset),s.addRange(i)))}}for(i=[],s=a;s=s.parentNode;)s.nodeType===1&&i.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<i.length;a++)s=i[a],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var Y_=f&&"documentMode"in document&&11>=document.documentMode,Jr=null,yu=null,vo=null,xu=!1;function gm(s,i,a){var d=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;xu||Jr==null||Jr!==Vt(d)||(d=Jr,"selectionStart"in d&&gu(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focu
vendor: 11,277 bytes, lines 38-39
38sNode:d.focusNode,focusOffset:d.focusOffset}),vo&&xo(vo,d)||(vo=d,d=Za(yu,"onSelect"),0<d.length&&(i=new lu("onSelect","select",null,i,a),s.push({event:i,listeners:d}),i.target=Jr)))}function Ya(s,i){var a={};return a[s.toLowerCase()]=i.toLowerCase(),a["Webkit"+s]="webkit"+i,a["Moz"+s]="moz"+i,a}var Zr={animationend:Ya("Animation","AnimationEnd"),animationiteration:Ya("Animation","AnimationIteration"),animationstart:Ya("Animation","AnimationStart"),transitionend:Ya("Transition","TransitionEnd")},vu={},ym={};f&&(ym=document.createElement("div").style,"AnimationEvent"in window||(delete Zr.animationend.animation,delete Zr.animationiteration.animation,delete Zr.animationstart.animation),"TransitionEvent"in window||delete Zr.transitionend.transition);function Xa(s){if(vu[s])return vu[s];if(!Zr[s])return s;var i=Zr[s],a;for(a in i)if(i.hasOwnProperty(a)&&a in ym)return vu[s]=i[a];return s}var xm=Xa("animationend"),vm=Xa("animationiteration"),bm=Xa("animationstart"),wm=Xa("transitionend"),_m=new Map,Sm="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 Ss(s,i){_m.set(s,i),c(i,[s])}for(var bu=0;bu<Sm.length;bu++){var wu=Sm[bu],X_=wu.toLowerCase(),J_=wu[0].toUpperCase()+wu.slice(1);Ss(X_,"on"+J_)}Ss(xm,"onAnimationEnd"),Ss(vm,"onAnimationIteration"),Ss(bm,"onAnimationStart"),Ss("dblclick","onDoubleClick"),Ss("focusin","onFocus"),Ss("focusout","onBlur"),Ss(wm,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bo="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(" "),Z_=new Set("cancel close invalid load scroll toggle".split(" ").concat(bo));function km(s,i,a){var d=s.type||"unknown-event";s.currentTarget=a,X1(d,i,void 0,s),s.currentTarget=null}function jm(s,i){i=(i&4)!==0;for(var a=0;a<s.length;a++){var d=s[a],m=d.event;d=d.listeners;e:{var g=void 0;if(i)for(var b=d.length-1;0<=b;b--){var N=d[b],R=N.instance,V=N.currentTarget;if(N=N.listener,R!==g&&m.isPropagationStopped())break e;km(m,N,V),g=R}else for(b=0;b<d.length;b++){if(N=d[b],R=N.instance,V=N.currentTarget,N=N.listener,R!==g&&m.isPropagationStopped())break e;km(m,N,V),g=R}}}if(Da)throw s=Jc,Da=!1,Jc=null,s}function Ke(s,i){var a=i[Pu];a===void 0&&(a=i[Pu]=new Set);var d=s+"__bubble";a.has(d)||(Cm(i,s,2,!1),a.add(d))}function _u(s,i,a){var d=0;i&&(d|=4),Cm(a,s,d,i)}var Ja="_reactListening"+Math.random().toString(36).slice(2);function wo(s){if(!s[Ja]){s[Ja]=!0,r.forEach(function(a){a!=="selectionchange"&&(Z_.has(a)||_u(a,!1,s),_u(a,!0,s))});var i=s.nodeType===9?s:s.ownerDocument;i===null||i[Ja]||(i[Ja]=!0,_u("selectionchange",!1,i))}}function Cm(s,i,a,d){switch(Qp(i)){case 1:var m=h_;break;case 4:m=p_;break;default:m=iu}a=m.bind(null,i,a,s),m=void 0,!Xc||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(m=!0),d?m!==void 0?s.addEventListener(i,a,{capture:!0,passive:m}):s.addEventListener(i,a,!0):m!==void 0?s.addEventListener(i,a,{passive:m}):s.addEventListener(i,a,!1)}function Su(s,i,a,d,m){var g=d;if((i&1)===0&&(i&2)===0&&d!==null)e:for(;;){if(d===null)return;var b=d.tag;if(b===3||b===4){var N=d.stateNode.containerInfo;if(N===m||N.nodeType===8&&N.parentNode===m)break;if(b===4)for(b=d.return;b!==null;){var R=b.tag;if((R===3||R===4)&&(R=b.stateNode.containerInfo,R===m||R.nodeType===8&&R.parentNode===m))return;b=b.return}for(;N!==null;){if(b=lr(N),b===null)return;if(R=b.tag,R===5||R===6){d=g=b;continue e}N=N.parentNode}}d=d.return}Rp(function(){var V=g,G=Gc(a),Y=[];e:{var K=_m.get(s);if(K!==void 0){var te=lu,ie=s;switch(s){case"keypress":if(Ha(a)===0)break e;case"keydown":case"keyup":te=P_;break;case"focusin":ie="focus",te=du;break;case"focusout":ie="blur",te=du;break;case"beforeblur":case"afterblur":te=du;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":te=Jp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":te=y_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":te=A_;break;case xm:case vm:case bm:te=b_;break;case wm:te=L_;break;case"scroll":te=m_;break;case"wheel":te=I_;break;case"copy":case"cut":case"paste":te=__;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":te=em}var ue=(i&4)!==0,at=!ue&&s==="scroll",F=ue?K!==null?K+"Capture":null:K;ue=[];for(var L=V,B;L!==null;){B=L;var X=B.stateNode;if(B.tag===5&&X!==null&&(B=X,F!==null&&(X=no(L,F),X!=null&&ue.push(_o(L,X,B)))),at)break;L=L.return}0<ue.length&&(K=new te(K,ie,null,a,G),Y.push({event:K,listeners:ue}))}}if((i&7)===0){e:{if(K=s==="mouseover"||s==="pointerover",te=s==="mouseout"||s==="pointerout",K&&a!==Kc&&(ie=a.relatedTarget||a.fromElement)&&(lr(ie)||ie[Zn]))break e;if((te||K)&&(K=G.window===G?G:(K=G.ownerDocument)?K.defaultView||K.parentWindow:window,te?(ie=a.relatedTarget||a.toElement,te=V,ie=ie?lr(ie):null,ie!==null&&(at=ar(ie),ie!==at||ie.tag!==5&&ie.tag!==6)&&(ie=null)):(te=null,ie=V),te!==ie)){if(ue=Jp,X="onMouseLeave",F="onMouseEnter",L="mouse",(s==="pointerout"||s==="pointerover")&&(ue=em,X="onPointerLeave",F="onPointerEnter",L="pointer"),at=te==null?K:ni(te),B=ie==null?K:ni(ie),K=new ue(X,L+"leave",te,a,G),K.target=at,K.relatedTarget=B,X=null,lr(G)===V&&(ue=new ue(F,L+"enter",ie,a,G),ue.target=B,ue.relatedTarget=at,X=ue),at=X,te&&ie)t:{for(ue=te,F=ie,L=0,B=ue;B;B=ei(B))L++;for(B=0,X=F;X;X=ei(X))B++;for(;0<L-B;)ue=ei(ue),L--;for(;0<B-L;)F=ei(F),B--;for(;L--;){if(ue===F||F!==null&&ue===F.alternate)break t;ue=ei(ue),F=ei(F)}ue=null}else ue=null;te!==null&&Em(Y,K,te,ue,!1),ie!==null&&at!==null&&Em(Y,at,ie,ue,!0)}}e:{if(K=V?ni(V):window,te=K.nodeName&&K.nodeName.toLowerCase(),te==="select"||te==="input"&&K.type==="file")var de=$_;else if(om(K))if(lm)de=K_;else{de=W_;var ye=q_}else(te=K.nodeName)&&te.toLowerCase()==="input"&&(K.type==="checkbox"||K.type==="radio")&&(de=H_);if(de&&(de=de(s,V))){am(Y,de,a,G);break e}ye&&ye(s,K,V),s==="focusout"&&(ye=K._wrapperState)&&ye.controlled&&K.type==="number"&&bt(K,"number",K.value)}switch(ye=V?ni(V):window,s){case"focusin":(om(ye)||ye.contentEditable==="true")&&(Jr=ye,yu=V,vo=null);break;case"focusout":vo=yu=Jr=null;break;case"mousedown":xu=!0;break;case"contextmenu":case"mouseup":case"dragend":xu=!1,gm(Y,a,G);break;case"selectionchange":if(Y_)break;case"keydown":case"keyup":gm(Y,a,G)}var xe;if(hu)e:{switch(s){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else Xr?rm(s,a)&&(ke="onCompositionEnd"):s==="keydown"&&a.keyCode===229&&(ke="onCompositionStart");ke&&(tm&&a.locale!=="ko"&&(Xr||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&Xr&&(xe=Yp()):(_s=G,au="value"in _s?_s.value:_s.textContent,Xr=!0)),ye=Za(V,ke),0<ye.length&&(ke=new Zp(ke,s,null,a,G),Y.push({event:ke,listeners:ye}),xe?ke.data=xe:(xe=im(a),xe!==null&&(ke.data=xe)))),(xe=F_?B_(s,a):V_(s,a))&&(V=Za(V,"onBeforeInput"),0<V.length&&(G=new Zp("onBeforeInput","beforeinput",null,a,G),Y.push({event:G,listeners:V}),G.data=xe))}jm(Y,i)})}function _o(s,i,a){return{instance:s,listener:i,currentTarget:a}}function Za(s,i){for(var a=i+"Capture",d=[];s!==null;){var m=s,g=m.stateNode;m.tag===5&&g!==null&&(m=g,g=no(s,a),g!=null&&d.unshift(_o(s,g,m)),g=no(s,i),g!=null&&d.push(_o(s,g,m))),s=s.return}return d}function ei(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function Em(s,i,a,d,m){for(var g=i._reactName,b=[];a!==null&&a!==d;){var N=a,R=N.alternate,V=N.stateNode;if(R!==null&&R===d)break;N.tag===5&&V!==null&&(N=V,m?(R=no(a,g),R!=null&&b.unshift(_o(a,R,N))):m||(R=no(a,g),R!=null&&b.push(_o(a,R,N)))),a=a.return}b.length!==0&&s.push({event:i,listeners:b})}var eS=/\r\n?/g,tS=/\u0000|\uFFFD/g;function Nm(s){return(typeof s=="string"?s:""+s).replace(eS,` 39`).replace(tS,"")}function el(s,i,a){if(i=Nm(i),Nm(s)!==i&&a)throw Error(n(425))}function tl(){}var ku=null,ju=null;function Cu(s,i){return s==="textarea"||s==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Eu=typeof setTimeout=="function"?setTimeout:void 0,nS=typeof clearTimeout=="function"?clearTimeout:void 0,Pm=typeof Promise=="function"?Promise:void 0,sS=typeof queueMicrotask=="function"?queueMicrotask:typeof Pm<"u"?function(s){return Pm.resolve(null).then(s).catch(rS)}:Eu;function rS(s){setTimeout(function(){throw s})}function Nu(s,i){var a=i,d=0;do{var m=a.nextSibling;if(s.removeChild(a),m&&m.nodeType===8)if(a=m.data,a==="/$"){if(d===0){s.removeChild(m),fo(i);return}d--}else a!=="$"&&a!=="$?"&&a!=="$!"||d++;a=m}while(a);fo(i)}function ks(s){for(;s!=null;s=s.nextSibling){var i=s.nodeType;if(i===1||i===3)break;if(i===8){if(i=s.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return s}function Tm(s){s=s.previousSibling;for(var i=0;s;){if(s.nodeType===8){var a=s.data;if(a==="$"||a==="$!"||a==="$?"){if(i===0)return s;i--}else a==="/$"&&i++}s=s.previousSibling}return null}var ti=Math.random().toString(36).slice(2),Vn="__reactFiber$"+ti,So="__reactProps$"+ti,Zn="__reactContainer$"+ti,Pu="__reactEvents$"+ti,iS="__reactListeners$"+ti,oS="__reactHandles$"+ti;function lr(s){var i=s[Vn];if(i)return i;for(var a=s.parentNode;a;){if(i=a[Zn]||a[Vn]){if(a=i.alternate,i.child!==null||a!==null&&a.child!==null)for(s=Tm(s);s!==null;){if(a=s[Vn])return a;s=Tm(s)}return i}s=a,a=s.parentNode}return null}function ko(s){return s=s[Vn]||s[Zn],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function ni(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(n(33))}function nl(s){return s[So]||null}var Tu=[],si=-1;function js(s){return{current:s}}function Ge(s){0>
vendor: 4,227 bytes, line 39
39si||(s.current=Tu[si],Tu[si]=null,si--)}function qe(s,i){si++,Tu[si]=s.current,s.current=i}var Cs={},Tt=js(Cs),Gt=js(!1),cr=Cs;function ri(s,i){var a=s.type.contextTypes;if(!a)return Cs;var d=s.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===i)return d.__reactInternalMemoizedMaskedChildContext;var m={},g;for(g in a)m[g]=i[g];return d&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=i,s.__reactInternalMemoizedMaskedChildContext=m),m}function Qt(s){return s=s.childContextTypes,s!=null}function sl(){Ge(Gt),Ge(Tt)}function Rm(s,i,a){if(Tt.current!==Cs)throw Error(n(168));qe(Tt,i),qe(Gt,a)}function Am(s,i,a){var d=s.stateNode;if(i=i.childContextTypes,typeof d.getChildContext!="function")return a;d=d.getChildContext();for(var m in d)if(!(m in i))throw Error(n(108,we(s)||"Unknown",m));return z({},a,d)}function rl(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||Cs,cr=Tt.current,qe(Tt,s),qe(Gt,Gt.current),!0}function Om(s,i,a){var d=s.stateNode;if(!d)throw Error(n(169));a?(s=Am(s,i,cr),d.__reactInternalMemoizedMergedChildContext=s,Ge(Gt),Ge(Tt),qe(Tt,s)):Ge(Gt),qe(Gt,a)}var es=null,il=!1,Ru=!1;function Lm(s){es===null?es=[s]:es.push(s)}function aS(s){il=!0,Lm(s)}function Es(){if(!Ru&&es!==null){Ru=!0;var s=0,i=ze;try{var a=es;for(ze=1;s<a.length;s++){var d=a[s];do d=d(!0);while(d!==null)}es=null,il=!1}catch(m){throw es!==null&&(es=es.slice(s+1)),Ip(Zc,Es),m}finally{ze=i,Ru=!1}}return null}var ii=[],oi=0,ol=null,al=0,dn=[],fn=0,ur=null,ts=1,ns="";function dr(s,i){ii[oi++]=al,ii[oi++]=ol,ol=s,al=i}function Dm(s,i,a){dn[fn++]=ts,dn[fn++]=ns,dn[fn++]=ur,ur=s;var d=ts;s=ns;var m=32-Cn(d)-1;d&=~(1<<m),a+=1;var g=32-Cn(i)+m;if(30<g){var b=m-m%5;g=(d&(1<<b)-1).toString(32),d>>=b,m-=b,ts=1<<32-Cn(i)+m|a<<m|d,ns=g+s}else ts=1<<g|a<<m|d,ns=s}function Au(s){s.return!==null&&(dr(s,1),Dm(s,1,0))}function Ou(s){for(;s===ol;)ol=ii[--oi],ii[oi]=null,al=ii[--oi],ii[oi]=null;for(;s===ur;)ur=dn[--fn],dn[fn]=null,ns=dn[--fn],dn[fn]=null,ts=dn[--fn],dn[fn]=null}var rn=null,on=null,Xe=!1,Nn=null;function Im(s,i){var a=gn(5,null,null,0);a.elementType="DELETED",a.stateNode=i,a.return=s,i=s.deletions,i===null?(s.deletions=[a],s.flags|=16):i.push(a)}function Mm(s,i){switch(s.tag){case 5:var a=s.type;return i=i.nodeType!==1||a.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(s.stateNode=i,rn=s,on=ks(i.firstChild),!0):!1;case 6:return i=s.pendingProps===""||i.nodeType!==3?null:i,i!==null?(s.stateNode=i,rn=s,on=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(a=ur!==null?{id:ts,overflow:ns}:null,s.memoizedState={dehydrated:i,treeContext:a,retryLane:1073741824},a=gn(18,null,null,0),a.stateNode=i,a.return=s,s.child=a,rn=s,on=null,!0):!1;default:return!1}}function Lu(s){return(s.mode&1)!==0&&(s.flags&128)===0}function Du(s){if(Xe){var i=on;if(i){var a=i;if(!Mm(s,i)){if(Lu(s))throw Error(n(418));i=ks(a.nextSibling);var d=rn;i&&Mm(s,i)?Im(d,a):(s.flags=s.flags&-4097|2,Xe=!1,rn=s)}}else{if(Lu(s))throw Error(n(418));s.flags=s.flags&-4097|2,Xe=!1,rn=s}}}function Fm(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;rn=s}function ll(s){if(s!==rn)return!1;if(!Xe)return Fm(s),Xe=!0,!1;var i;if((i=s.tag!==3)&&!(i=s.tag!==5)&&(i=s.type,i=i!=="head"&&i!=="body"&&!Cu(s.type,s.memoizedProps)),i&&(i=on)){if(Lu(s))throw Bm(),Error(n(418));for(;i;)Im(s,i),i=ks(i.nextSibling)}if(Fm(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(317));e:{for(s=s.nextSibling,i=0;s;){if(s.nodeType===8){var a=s.data;if(a==="/$"){if(i===0){on=ks(s.nextSibling);break e}i--}else a!=="$"&&a!=="$!"&&a!=="$?"||i++}s=s.nextSibling}on=null}}else on=rn?ks(s.stateNode.nextSibling):null;return!0}function Bm(){for(var s=on;s;)s=ks(s.nextSibling)}function ai(){on=rn=null,Xe=!1}function Iu(s){Nn===null?Nn=[s]:Nn.push(s)}var lS=T.ReactCurrentBatchConfig;function jo(s,i,a){if(s=a.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(n(309));var d=a.stateNode}if(!d)throw Error(n(147,s));var m=d,g=""+s;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===g?i.ref:(i=function(b){var N=m.refs;b===null?delete N[g]:N[g]=b},i._stringRef=g,i)}
vendor: 5,435 bytes, line 39
39if(typeof s!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,s))}return s}function cl(s,i){throw s=Object.prototype.toString.call(i),Error(n(31,s==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":s))}function Vm(s){var i=s._init;return i(s._payload)}function Um(s){function i(F,L){if(s){var B=F.deletions;B===null?(F.deletions=[L],F.flags|=16):B.push(L)}}function a(F,L){if(!s)return null;for(;L!==null;)i(F,L),L=L.sibling;return null}function d(F,L){for(F=new Map;L!==null;)L.key!==null?F.set(L.key,L):F.set(L.index,L),L=L.sibling;return F}function m(F,L){return F=Ds(F,L),F.index=0,F.sibling=null,F}function g(F,L,B){return F.index=B,s?(B=F.alternate,B!==null?(B=B.index,B<L?(F.flags|=2,L):B):(F.flags|=2,L)):(F.flags|=1048576,L)}function b(F){return s&&F.alternate===null&&(F.flags|=2),F}function N(F,L,B,X){return L===null||L.tag!==6?(L=Ed(B,F.mode,X),L.return=F,L):(L=m(L,B),L.return=F,L)}function R(F,L,B,X){var de=B.type;return de===q?G(F,L,B.props.children,X,B.key):L!==null&&(L.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===fe&&Vm(de)===L.type)?(X=m(L,B.props),X.ref=jo(F,L,B),X.return=F,X):(X=Ol(B.type,B.key,B.props,null,F.mode,X),X.ref=jo(F,L,B),X.return=F,X)}function V(F,L,B,X){return L===null||L.tag!==4||L.stateNode.containerInfo!==B.containerInfo||L.stateNode.implementation!==B.implementation?(L=Nd(B,F.mode,X),L.return=F,L):(L=m(L,B.children||[]),L.return=F,L)}function G(F,L,B,X,de){return L===null||L.tag!==7?(L=vr(B,F.mode,X,de),L.return=F,L):(L=m(L,B),L.return=F,L)}function Y(F,L,B){if(typeof L=="string"&&L!==""||typeof L=="number")return L=Ed(""+L,F.mode,B),L.return=F,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case I:return B=Ol(L.type,L.key,L.props,null,F.mode,B),B.ref=jo(F,null,L),B.return=F,B;case $:return L=Nd(L,F.mode,B),L.return=F,L;case fe:var X=L._init;return Y(F,X(L._payload),B)}if(gs(L)||se(L))return L=vr(L,F.mode,B,null),L.return=F,L;cl(F,L)}return null}function K(F,L,B,X){var de=L!==null?L.key:null;if(typeof B=="string"&&B!==""||typeof B=="number")return de!==null?null:N(F,L,""+B,X);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case I:return B.key===de?R(F,L,B,X):null;case $:return B.key===de?V(F,L,B,X):null;case fe:return de=B._init,K(F,L,de(B._payload),X)}if(gs(B)||se(B))return de!==null?null:G(F,L,B,X,null);cl(F,B)}return null}function te(F,L,B,X,de){if(typeof X=="string"&&X!==""||typeof X=="number")return F=F.get(B)||null,N(L,F,""+X,de);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case I:return F=F.get(X.key===null?B:X.key)||null,R(L,F,X,de);case $:return F=F.get(X.key===null?B:X.key)||null,V(L,F,X,de);case fe:var ye=X._init;return te(F,L,B,ye(X._payload),de)}if(gs(X)||se(X))return F=F.get(B)||null,G(L,F,X,de,null);cl(L,X)}return null}function ie(F,L,B,X){for(var de=null,ye=null,xe=L,ke=L=0,xt=null;xe!==null&&ke<B.length;ke++){xe.index>ke?(xt=xe,xe=null):xt=xe.sibling;var Fe=K(F,xe,B[ke],X);if(Fe===null){xe===null&&(xe=xt);break}s&&xe&&Fe.alternate===null&&i(F,xe),L=g(Fe,L,ke),ye===null?de=Fe:ye.sibling=Fe,ye=Fe,xe=xt}if(ke===B.length)return a(F,xe),Xe&&dr(F,ke),de;if(xe===null){for(;ke<B.length;ke++)xe=Y(F,B[ke],X),xe!==null&&(L=g(xe,L,ke),ye===null?de=xe:ye.sibling=xe,ye=xe);return Xe&&dr(F,ke),de}for(xe=d(F,xe);ke<B.length;ke++)xt=te(xe,F,ke,B[ke],X),xt!==null&&(s&&xt.alternate!==null&&xe.delete(xt.key===null?ke:xt.key),L=g(xt,L,ke),ye===null?de=xt:ye.sibling=xt,ye=xt);return s&&xe.forEach(function(Is){return i(F,Is)}),Xe&&dr(F,ke),de}function ue(F,L,B,X){var de=se(B);if(typeof de!="function")throw Error(n(150));if(B=de.call(B),B==null)throw Error(n(151));for(var ye=de=null,xe=L,ke=L=0,xt=null,Fe=B.next();xe!==null&&!Fe.done;ke++,Fe=B.next()){xe.index>ke?(xt=xe,xe=null):xt=xe.sibling;var Is=K(F,xe,Fe.value,X);if(Is===null){xe===null&&(xe=xt);break}s&&xe&&Is.alternate===null&&i(F,xe),L=g(Is,L,ke),ye===null?de=Is:ye.sibling=Is,ye=Is,xe=xt}if(Fe.done)return a(F,xe),Xe&&dr(F,ke),de;if(xe===null){for(;!Fe.done;ke++,Fe=B.next())Fe=Y(F,Fe.value,X),Fe!==null&&(L=g(Fe,L,ke),ye===null?de=Fe:ye.sibling=Fe,ye=Fe);return Xe&&dr(F,ke),de}for(xe=d(F,xe);!Fe.done;ke++,Fe=B.next())Fe=te(xe,F,ke,Fe.value,X),Fe!==null&&(s&&Fe.alternate!==null&&xe.delete(Fe.key===null?ke:Fe.key),L=g(Fe,L,ke),ye===null?de=Fe:ye.sibling=Fe,ye=Fe);return s&&xe.forEach(function(US){return i(F,US)}),Xe&&dr(F,ke),de}function at(F,L,B,X){if(typeof B=="object"&&B!==null&&B.type===q&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case I:e:{for(var de=B.key,ye=L;ye!==null;){if(ye.key===de){if(de=B.type,de===q){if(ye.tag===7){a(F,ye.sibling),L=m(ye,B.props.children),L.return=F,F=L;break e}}else if(ye.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===fe&&Vm(de)===ye.type){a(F,ye.sibling),L=m(ye,B.props),L.ref=jo(F,ye,B),L.return=F,F=L;break e}a(F,ye);break}else i(F,ye);ye=ye.sibling}B.type===q?(L=vr(B.props.children,F.mode,X,B.key),L.return=F,F=L):(X=Ol(B.type,B.key,B.props,null,F.mode,X),X.ref=jo(F,L,B),X.return=F,F=X)}return b(F);case $:e:{for(ye=B.key;L!==null;){if(L.key===ye)if(L.tag===4&&L.stateNode.containerInfo===B.containerInfo&&L.stateNode.implementation===B.implementation){a(F,L.sibling),L=m(L,B.children||[]),L.return=F,F=L;break e}else{a(F,L);break}else i(F,L);L=L.sibling}L=Nd(B,F.mode,X),L.return=F,F=L}return b(F);case fe:return ye=B._init,at(F,L,ye(B._payload),X)}if(gs(B))return ie(F,L,B,X);if(se(B))return ue(F,L,B,X);cl(F,B)}
vendor: 4,651 bytes, line 39
39return typeof B=="string"&&B!==""||typeof B=="number"?(B=""+B,L!==null&&L.tag===6?(a(F,L.sibling),L=m(L,B),L.return=F,F=L):(a(F,L),L=Ed(B,F.mode,X),L.return=F,F=L),b(F)):a(F,L)}return at}var li=Um(!0),zm=Um(!1),ul=js(null),dl=null,ci=null,Mu=null;function Fu(){Mu=ci=dl=null}function Bu(s){var i=ul.current;Ge(ul),s._currentValue=i}function Vu(s,i,a){for(;s!==null;){var d=s.alternate;if((s.childLanes&i)!==i?(s.childLanes|=i,d!==null&&(d.childLanes|=i)):d!==null&&(d.childLanes&i)!==i&&(d.childLanes|=i),s===a)break;s=s.return}}function ui(s,i){dl=s,Mu=ci=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&i)!==0&&(Yt=!0),s.firstContext=null)}function hn(s){var i=s._currentValue;if(Mu!==s)if(s={context:s,memoizedValue:i,next:null},ci===null){if(dl===null)throw Error(n(308));ci=s,dl.dependencies={lanes:0,firstContext:s}}else ci=ci.next=s;return i}var fr=null;function Uu(s){fr===null?fr=[s]:fr.push(s)}function $m(s,i,a,d){var m=i.interleaved;return m===null?(a.next=a,Uu(i)):(a.next=m.next,m.next=a),i.interleaved=a,ss(s,d)}function ss(s,i){s.lanes|=i;var a=s.alternate;for(a!==null&&(a.lanes|=i),a=s,s=s.return;s!==null;)s.childLanes|=i,a=s.alternate,a!==null&&(a.childLanes|=i),a=s,s=s.return;return a.tag===3?a.stateNode:null}var Ns=!1;function zu(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qm(s,i){s=s.updateQueue,i.updateQueue===s&&(i.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function rs(s,i){return{eventTime:s,lane:i,tag:0,payload:null,callback:null,next:null}}function Ps(s,i,a){var d=s.updateQueue;if(d===null)return null;if(d=d.shared,(Me&2)!==0){var m=d.pending;return m===null?i.next=i:(i.next=m.next,m.next=i),d.pending=i,ss(s,a)}return m=d.interleaved,m===null?(i.next=i,Uu(d)):(i.next=m.next,m.next=i),d.interleaved=i,ss(s,a)}function fl(s,i,a){if(i=i.updateQueue,i!==null&&(i=i.shared,(a&4194240)!==0)){var d=i.lanes;d&=s.pendingLanes,a|=d,i.lanes=a,nu(s,a)}}function Wm(s,i){var a=s.updateQueue,d=s.alternate;if(d!==null&&(d=d.updateQueue,a===d)){var m=null,g=null;if(a=a.firstBaseUpdate,a!==null){do{var b={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};g===null?m=g=b:g=g.next=b,a=a.next}while(a!==null);g===null?m=g=i:g=g.next=i}else m=g=i;a={baseState:d.baseState,firstBaseUpdate:m,lastBaseUpdate:g,shared:d.shared,effects:d.effects},s.updateQueue=a;return}s=a.lastBaseUpdate,s===null?a.firstBaseUpdate=i:s.next=i,a.lastBaseUpdate=i}function hl(s,i,a,d){var m=s.updateQueue;Ns=!1;var g=m.firstBaseUpdate,b=m.lastBaseUpdate,N=m.shared.pending;if(N!==null){m.shared.pending=null;var R=N,V=R.next;R.next=null,b===null?g=V:b.next=V,b=R;var G=s.alternate;G!==null&&(G=G.updateQueue,N=G.lastBaseUpdate,N!==b&&(N===null?G.firstBaseUpdate=V:N.next=V,G.lastBaseUpdate=R))}if(g!==null){var Y=m.baseState;b=0,G=V=R=null,N=g;do{var K=N.lane,te=N.eventTime;if((d&K)===K){G!==null&&(G=G.next={eventTime:te,lane:0,tag:N.tag,payload:N.payload,callback:N.callback,next:null});e:{var ie=s,ue=N;switch(K=i,te=a,ue.tag){case 1:if(ie=ue.payload,typeof ie=="function"){Y=ie.call(te,Y,K);break e}Y=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=ue.payload,K=typeof ie=="function"?ie.call(te,Y,K):ie,K==null)break e;Y=z({},Y,K);break e;case 2:Ns=!0}}N.callback!==null&&N.lane!==0&&(s.flags|=64,K=m.effects,K===null?m.effects=[N]:K.push(N))}else te={eventTime:te,lane:K,tag:N.tag,payload:N.payload,callback:N.callback,next:null},G===null?(V=G=te,R=Y):G=G.next=te,b|=K;if(N=N.next,N===null){if(N=m.shared.pending,N===null)break;K=N,N=K.next,K.next=null,m.lastBaseUpdate=K,m.shared.pending=null}}while(!0);if(G===null&&(R=Y),m.baseState=R,m.firstBaseUpdate=V,m.lastBaseUpdate=G,i=m.shared.interleaved,i!==null){m=i;do b|=m.lane,m=m.next;while(m!==i)}else g===null&&(m.shared.lanes=0);mr|=b,s.lanes=b,s.memoizedState=Y}}function Hm(s,i,a){if(s=i.effects,i.effects=null,s!==null)for(i=0;i<s.length;i++){var d=s[i],m=d.callback;if(m!==null){if(d.callback=null,d=a,typeof m!="function")throw Error(n(191,m));m.call(d)}}}var Co={},Un=js(Co),Eo=js(Co),No=js(Co);function hr(s){if(s===Co)throw Error(n(174));return s}function $u(s,i){switch(qe(No,i),qe(Eo,s),qe(Un,Co),s=i.nodeType,s){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:qc(null,"");break;default:s=s===8?i.parentNode:i,i=s.namespaceURI||null,s=s.tagName,i=qc(i,s)}Ge(Un),qe(Un,i)}function di(){Ge(Un),Ge(Eo),Ge(No)}function Km(s){hr(No.current);var i=hr(Un.current),a=qc(i,s.type);i!==a&&(qe(Eo,s),qe(Un,a))}
vendor: 5,657 bytes, line 39
39function qu(s){Eo.current===s&&(Ge(Un),Ge(Eo))}var Ze=js(0);function pl(s){for(var i=s;i!==null;){if(i.tag===13){var a=i.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break;for(;i.sibling===null;){if(i.return===null||i.return===s)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Wu=[];function Hu(){for(var s=0;s<Wu.length;s++)Wu[s]._workInProgressVersionPrimary=null;Wu.length=0}var ml=T.ReactCurrentDispatcher,Ku=T.ReactCurrentBatchConfig,pr=0,et=null,ft=null,gt=null,gl=!1,Po=!1,To=0,cS=0;function Rt(){throw Error(n(321))}function Gu(s,i){if(i===null)return!1;for(var a=0;a<i.length&&a<s.length;a++)if(!En(s[a],i[a]))return!1;return!0}function Qu(s,i,a,d,m,g){if(pr=g,et=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,ml.current=s===null||s.memoizedState===null?hS:pS,s=a(d,m),Po){g=0;do{if(Po=!1,To=0,25<=g)throw Error(n(301));g+=1,gt=ft=null,i.updateQueue=null,ml.current=mS,s=a(d,m)}while(Po)}if(ml.current=vl,i=ft!==null&&ft.next!==null,pr=0,gt=ft=et=null,gl=!1,i)throw Error(n(300));return s}function Yu(){var s=To!==0;return To=0,s}function zn(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?et.memoizedState=gt=s:gt=gt.next=s,gt}function pn(){if(ft===null){var s=et.alternate;s=s!==null?s.memoizedState:null}else s=ft.next;var i=gt===null?et.memoizedState:gt.next;if(i!==null)gt=i,ft=s;else{if(s===null)throw Error(n(310));ft=s,s={memoizedState:ft.memoizedState,baseState:ft.baseState,baseQueue:ft.baseQueue,queue:ft.queue,next:null},gt===null?et.memoizedState=gt=s:gt=gt.next=s}return gt}function Ro(s,i){return typeof i=="function"?i(s):i}function Xu(s){var i=pn(),a=i.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=s;var d=ft,m=d.baseQueue,g=a.pending;if(g!==null){if(m!==null){var b=m.next;m.next=g.next,g.next=b}d.baseQueue=m=g,a.pending=null}if(m!==null){g=m.next,d=d.baseState;var N=b=null,R=null,V=g;do{var G=V.lane;if((pr&G)===G)R!==null&&(R=R.next={lane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),d=V.hasEagerState?V.eagerState:s(d,V.action);else{var Y={lane:G,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null};R===null?(N=R=Y,b=d):R=R.next=Y,et.lanes|=G,mr|=G}V=V.next}while(V!==null&&V!==g);R===null?b=d:R.next=N,En(d,i.memoizedState)||(Yt=!0),i.memoizedState=d,i.baseState=b,i.baseQueue=R,a.lastRenderedState=d}if(s=a.interleaved,s!==null){m=s;do g=m.lane,et.lanes|=g,mr|=g,m=m.next;while(m!==s)}else m===null&&(a.lanes=0);return[i.memoizedState,a.dispatch]}function Ju(s){var i=pn(),a=i.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=s;var d=a.dispatch,m=a.pending,g=i.memoizedState;if(m!==null){a.pending=null;var b=m=m.next;do g=s(g,b.action),b=b.next;while(b!==m);En(g,i.memoizedState)||(Yt=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),a.lastRenderedState=g}return[g,d]}function Gm(){}function Qm(s,i){var a=et,d=pn(),m=i(),g=!En(d.memoizedState,m);if(g&&(d.memoizedState=m,Yt=!0),d=d.queue,Zu(Jm.bind(null,a,d,s),[s]),d.getSnapshot!==i||g||gt!==null&>.memoizedState.tag&1){if(a.flags|=2048,Ao(9,Xm.bind(null,a,d,m,i),void 0,null),yt===null)throw Error(n(349));(pr&30)!==0||Ym(a,i,m)}return m}function Ym(s,i,a){s.flags|=16384,s={getSnapshot:i,value:a},i=et.updateQueue,i===null?(i={lastEffect:null,stores:null},et.updateQueue=i,i.stores=[s]):(a=i.stores,a===null?i.stores=[s]:a.push(s))}function Xm(s,i,a,d){i.value=a,i.getSnapshot=d,Zm(i)&&eg(s)}function Jm(s,i,a){return a(function(){Zm(i)&&eg(s)})}function Zm(s){var i=s.getSnapshot;s=s.value;try{var a=i();return!En(s,a)}catch{return!0}}function eg(s){var i=ss(s,1);i!==null&&An(i,s,1,-1)}function tg(s){var i=zn();return typeof s=="function"&&(s=s()),i.memoizedState=i.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:s},i.queue=s,s=s.dispatch=fS.bind(null,et,s),[i.memoizedState,s]}function Ao(s,i,a,d){return s={tag:s,create:i,destroy:a,deps:d,next:null},i=et.updateQueue,i===null?(i={lastEffect:null,stores:null},et.updateQueue=i,i.lastEffect=s.next=s):(a=i.lastEffect,a===null?i.lastEffect=s.next=s:(d=a.next,a.next=s,s.next=d,i.lastEffect=s)),s}function ng(){return pn().memoizedState}function yl(s,i,a,d){var m=zn();et.flags|=s,m.memoizedState=Ao(1|i,a,void 0,d===void 0?null:d)}function xl(s,i,a,d){var m=pn();d=d===void 0?null:d;var g=void 0;if(ft!==null){var b=ft.memoizedState;if(g=b.destroy,d!==null&&Gu(d,b.deps)){m.memoizedState=Ao(i,a,g,d);return}}et.flags|=s,m.memoizedState=Ao(1|i,a,g,d)}function sg(s,i){return yl(8390656,8,s,i)}function Zu(s,i){return xl(2048,8,s,i)}function rg(s,i){return xl(4,2,s,i)}function ig(s,i){return xl(4,4,s,i)}function og(s,i){if(typeof i=="function")return s=s(),i(s),function(){i(null)};if(i!=null)return s=s(),i.current=s,function(){i.current=null}}function ag(s,i,a){return a=a!=null?a.concat([s]):null,xl(4,4,og.bind(null,i,s),a)}function ed(){}function lg(s,i){var a=pn();i=i===void 0?null:i;var d=a.memoizedState;return d!==null&&i!==null&&Gu(i,d[1])?d[0]:(a.memoizedState=[s,i],s)}function cg(s,i){var a=pn();i=i===void 0?null:i;var d=a.memoizedState;return d!==null&&i!==null&&Gu(i,d[1])?d[0]:(s=s(),a.memoizedState=[s,i],s)}function ug(s,i,a){return(pr&21)===0?(s.baseState&&(s.baseState=!1,Yt=!0),s.memoizedState=a):(En(a,i)||(a=Vp(),et.lanes|=a,mr|=a,s.baseState=!0),i)}function uS(s,i){var a=ze;ze=a!==0&&4>a?a:4,s(!0);var d=Ku.transition;Ku.transition={};
vendor: 5,433 bytes, line 39
39try{s(!1),i()}finally{ze=a,Ku.transition=d}}function dg(){return pn().memoizedState}function dS(s,i,a){var d=Os(s);if(a={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null},fg(s))hg(i,a);else if(a=$m(s,i,a,d),a!==null){var m=zt();An(a,s,d,m),pg(a,i,d)}}function fS(s,i,a){var d=Os(s),m={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null};if(fg(s))hg(i,m);else{var g=s.alternate;if(s.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var b=i.lastRenderedState,N=g(b,a);if(m.hasEagerState=!0,m.eagerState=N,En(N,b)){var R=i.interleaved;R===null?(m.next=m,Uu(i)):(m.next=R.next,R.next=m),i.interleaved=m;return}}catch{}finally{}a=$m(s,i,m,d),a!==null&&(m=zt(),An(a,s,d,m),pg(a,i,d))}}function fg(s){var i=s.alternate;return s===et||i!==null&&i===et}function hg(s,i){Po=gl=!0;var a=s.pending;a===null?i.next=i:(i.next=a.next,a.next=i),s.pending=i}function pg(s,i,a){if((a&4194240)!==0){var d=i.lanes;d&=s.pendingLanes,a|=d,i.lanes=a,nu(s,a)}}var vl={readContext:hn,useCallback:Rt,useContext:Rt,useEffect:Rt,useImperativeHandle:Rt,useInsertionEffect:Rt,useLayoutEffect:Rt,useMemo:Rt,useReducer:Rt,useRef:Rt,useState:Rt,useDebugValue:Rt,useDeferredValue:Rt,useTransition:Rt,useMutableSource:Rt,useSyncExternalStore:Rt,useId:Rt,unstable_isNewReconciler:!1},hS={readContext:hn,useCallback:function(s,i){return zn().memoizedState=[s,i===void 0?null:i],s},useContext:hn,useEffect:sg,useImperativeHandle:function(s,i,a){return a=a!=null?a.concat([s]):null,yl(4194308,4,og.bind(null,i,s),a)},useLayoutEffect:function(s,i){return yl(4194308,4,s,i)},useInsertionEffect:function(s,i){return yl(4,2,s,i)},useMemo:function(s,i){var a=zn();return i=i===void 0?null:i,s=s(),a.memoizedState=[s,i],s},useReducer:function(s,i,a){var d=zn();return i=a!==void 0?a(i):i,d.memoizedState=d.baseState=i,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:i},d.queue=s,s=s.dispatch=dS.bind(null,et,s),[d.memoizedState,s]},useRef:function(s){var i=zn();return s={current:s},i.memoizedState=s},useState:tg,useDebugValue:ed,useDeferredValue:function(s){return zn().memoizedState=s},useTransition:function(){var s=tg(!1),i=s[0];return s=uS.bind(null,s[1]),zn().memoizedState=s,[i,s]},useMutableSource:function(){},useSyncExternalStore:function(s,i,a){var d=et,m=zn();if(Xe){if(a===void 0)throw Error(n(407));a=a()}else{if(a=i(),yt===null)throw Error(n(349));(pr&30)!==0||Ym(d,i,a)}m.memoizedState=a;var g={value:a,getSnapshot:i};return m.queue=g,sg(Jm.bind(null,d,g,s),[s]),d.flags|=2048,Ao(9,Xm.bind(null,d,g,a,i),void 0,null),a},useId:function(){var s=zn(),i=yt.identifierPrefix;if(Xe){var a=ns,d=ts;a=(d&~(1<<32-Cn(d)-1)).toString(32)+a,i=":"+i+"R"+a,a=To++,0<a&&(i+="H"+a.toString(32)),i+=":"}else a=cS++,i=":"+i+"r"+a.toString(32)+":";return s.memoizedState=i},unstable_isNewReconciler:!1},pS={readContext:hn,useCallback:lg,useContext:hn,useEffect:Zu,useImperativeHandle:ag,useInsertionEffect:rg,useLayoutEffect:ig,useMemo:cg,useReducer:Xu,useRef:ng,useState:function(){return Xu(Ro)},useDebugValue:ed,useDeferredValue:function(s){var i=pn();return ug(i,ft.memoizedState,s)},useTransition:function(){var s=Xu(Ro)[0],i=pn().memoizedState;return[s,i]},useMutableSource:Gm,useSyncExternalStore:Qm,useId:dg,unstable_isNewReconciler:!1},mS={readContext:hn,useCallback:lg,useContext:hn,useEffect:Zu,useImperativeHandle:ag,useInsertionEffect:rg,useLayoutEffect:ig,useMemo:cg,useReducer:Ju,useRef:ng,useState:function(){return Ju(Ro)},useDebugValue:ed,useDeferredValue:function(s){var i=pn();return ft===null?i.memoizedState=s:ug(i,ft.memoizedState,s)},useTransition:function(){var s=Ju(Ro)[0],i=pn().memoizedState;return[s,i]},useMutableSource:Gm,useSyncExternalStore:Qm,useId:dg,unstable_isNewReconciler:!1};function Pn(s,i){if(s&&s.defaultProps){i=z({},i),s=s.defaultProps;for(var a in s)i[a]===void 0&&(i[a]=s[a]);return i}return i}function td(s,i,a,d){i=s.memoizedState,a=a(d,i),a=a==null?i:z({},i,a),s.memoizedState=a,s.lanes===0&&(s.updateQueue.baseState=a)}var bl={isMounted:function(s){return(s=s._reactInternals)?ar(s)===s:!1},enqueueSetState:function(s,i,a){s=s._reactInternals;var d=zt(),m=Os(s),g=rs(d,m);g.payload=i,a!=null&&(g.callback=a),i=Ps(s,g,m),i!==null&&(An(i,s,m,d),fl(i,s,m))},enqueueReplaceState:function(s,i,a){s=s._reactInternals;var d=zt(),m=Os(s),g=rs(d,m);g.tag=1,g.payload=i,a!=null&&(g.callback=a),i=Ps(s,g,m),i!==null&&(An(i,s,m,d),fl(i,s,m))},enqueueForceUpdate:function(s,i){s=s._reactInternals;var a=zt(),d=Os(s),m=rs(a,d);m.tag=2,i!=null&&(m.callback=i),i=Ps(s,m,d),i!==null&&(An(i,s,d,a),fl(i,s,d))}};function mg(s,i,a,d,m,g,b){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(d,g,b):i.prototype&&i.prototype.isPureReactComponent?!xo(a,d)||!xo(m,g):!0}function gg(s,i,a){var d=!1,m=Cs,g=i.contextType;return typeof g=="object"&&g!==null?g=hn(g):(m=Qt(i)?cr:Tt.current,d=i.contextTypes,g=(d=d!=null)?ri(s,m):Cs),i=new i(a,g),s.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=bl,s.stateNode=i,i._reactInternals=s,d&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=m,s.__reactInternalMemoizedMaskedChildContext=g),i}function yg(s,i,a,d){s=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(a,d),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(a,d),i.state!==s&&bl.enqueueReplaceState(i,i.state,null)}
vendor: 4,224 bytes, lines 39-41
39function nd(s,i,a,d){var m=s.stateNode;m.props=a,m.state=s.memoizedState,m.refs={},zu(s);var g=i.contextType;typeof g=="object"&&g!==null?m.context=hn(g):(g=Qt(i)?cr:Tt.current,m.context=ri(s,g)),m.state=s.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(td(s,i,g,a),m.state=s.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(i=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),i!==m.state&&bl.enqueueReplaceState(m,m.state,null),hl(s,a,m,d),m.state=s.memoizedState),typeof m.componentDidMount=="function"&&(s.flags|=4194308)}function fi(s,i){try{var a="",d=i;do a+=he(d),d=d.return;while(d);var m=a}catch(g){m=` 40Error generating stack: `+g.message+` 41`+g.stack}return{value:s,source:i,stack:m,digest:null}}function sd(s,i,a){return{value:s,source:null,stack:a??null,digest:i??null}}function rd(s,i){try{console.error(i.value)}catch(a){setTimeout(function(){throw a})}}var gS=typeof WeakMap=="function"?WeakMap:Map;function xg(s,i,a){a=rs(-1,a),a.tag=3,a.payload={element:null};var d=i.value;return a.callback=function(){El||(El=!0,vd=d),rd(s,i)},a}function vg(s,i,a){a=rs(-1,a),a.tag=3;var d=s.type.getDerivedStateFromError;if(typeof d=="function"){var m=i.value;a.payload=function(){return d(m)},a.callback=function(){rd(s,i)}}var g=s.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(a.callback=function(){rd(s,i),typeof d!="function"&&(Rs===null?Rs=new Set([this]):Rs.add(this));var b=i.stack;this.componentDidCatch(i.value,{componentStack:b!==null?b:""})}),a}function bg(s,i,a){var d=s.pingCache;if(d===null){d=s.pingCache=new gS;var m=new Set;d.set(i,m)}else m=d.get(i),m===void 0&&(m=new Set,d.set(i,m));m.has(a)||(m.add(a),s=TS.bind(null,s,i,a),i.then(s,s))}function wg(s){do{var i;if((i=s.tag===13)&&(i=s.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return s;s=s.return}while(s!==null);return null}function _g(s,i,a,d,m){return(s.mode&1)===0?(s===i?s.flags|=65536:(s.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(i=rs(-1,1),i.tag=2,Ps(a,i,1))),a.lanes|=1),s):(s.flags|=65536,s.lanes=m,s)}var yS=T.ReactCurrentOwner,Yt=!1;function Ut(s,i,a,d){i.child=s===null?zm(i,null,a,d):li(i,s.child,a,d)}function Sg(s,i,a,d,m){a=a.render;var g=i.ref;return ui(i,m),d=Qu(s,i,a,d,g,m),a=Yu(),s!==null&&!Yt?(i.updateQueue=s.updateQueue,i.flags&=-2053,s.lanes&=~m,is(s,i,m)):(Xe&&a&&Au(i),i.flags|=1,Ut(s,i,d,m),i.child)}function kg(s,i,a,d,m){if(s===null){var g=a.type;return typeof g=="function"&&!Cd(g)&&g.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(i.tag=15,i.type=g,jg(s,i,g,d,m)):(s=Ol(a.type,null,d,i,i.mode,m),s.ref=i.ref,s.return=i,i.child=s)}if(g=s.child,(s.lanes&m)===0){var b=g.memoizedProps;if(a=a.compare,a=a!==null?a:xo,a(b,d)&&s.ref===i.ref)return is(s,i,m)}return i.flags|=1,s=Ds(g,d),s.ref=i.ref,s.return=i,i.child=s}function jg(s,i,a,d,m){if(s!==null){var g=s.memoizedProps;if(xo(g,d)&&s.ref===i.ref)if(Yt=!1,i.pendingProps=d=g,(s.lanes&m)!==0)(s.flags&131072)!==0&&(Yt=!0);else return i.lanes=s.lanes,is(s,i,m)}return id(s,i,a,d,m)}function Cg(s,i,a){var d=i.pendingProps,m=d.children,g=s!==null?s.memoizedState:null;if(d.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},qe(pi,an),an|=a;else{if((a&1073741824)===0)return s=g!==null?g.baseLanes|a:a,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:s,cachePool:null,transitions:null},i.updateQueue=null,qe(pi,an),an|=s,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=g!==null?g.baseLanes:a,qe(pi,an),an|=d}else g!==null?(d=g.baseLanes|a,i.memoizedState=null):d=a,qe(pi,an),an|=d;return Ut(s,i,m,a),i.child}function Eg(s,i){var a=i.ref;(s===null&&a!==null||s!==null&&s.ref!==a)&&(i.flags|=512,i.flags|=2097152)}function id(s,i,a,d,m){var g=Qt(a)?cr:Tt.current;return g=ri(i,g),ui(i,m),a=Qu(s,i,a,d,g,m),d=Yu(),s!==null&&!Yt?(i.updateQueue=s.updateQueue,i.flags&=-2053,s.lanes&=~m,is(s,i,m)):(Xe&&d&&Au(i),i.flags|=1,Ut(s,i,a,m),i.child)}
vendor: 39,625 bytes, line 41
41function Ng(s,i,a,d,m){if(Qt(a)){var g=!0;rl(i)}else g=!1;if(ui(i,m),i.stateNode===null)_l(s,i),gg(i,a,d),nd(i,a,d,m),d=!0;else if(s===null){var b=i.stateNode,N=i.memoizedProps;b.props=N;var R=b.context,V=a.contextType;typeof V=="object"&&V!==null?V=hn(V):(V=Qt(a)?cr:Tt.current,V=ri(i,V));var G=a.getDerivedStateFromProps,Y=typeof G=="function"||typeof b.getSnapshotBeforeUpdate=="function";Y||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(N!==d||R!==V)&&yg(i,b,d,V),Ns=!1;var K=i.memoizedState;b.state=K,hl(i,d,b,m),R=i.memoizedState,N!==d||K!==R||Gt.current||Ns?(typeof G=="function"&&(td(i,a,G,d),R=i.memoizedState),(N=Ns||mg(i,a,N,d,K,R,V))?(Y||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(i.flags|=4194308)):(typeof b.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=d,i.memoizedState=R),b.props=d,b.state=R,b.context=V,d=N):(typeof b.componentDidMount=="function"&&(i.flags|=4194308),d=!1)}else{b=i.stateNode,qm(s,i),N=i.memoizedProps,V=i.type===i.elementType?N:Pn(i.type,N),b.props=V,Y=i.pendingProps,K=b.context,R=a.contextType,typeof R=="object"&&R!==null?R=hn(R):(R=Qt(a)?cr:Tt.current,R=ri(i,R));var te=a.getDerivedStateFromProps;(G=typeof te=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(N!==Y||K!==R)&&yg(i,b,d,R),Ns=!1,K=i.memoizedState,b.state=K,hl(i,d,b,m);var ie=i.memoizedState;N!==Y||K!==ie||Gt.current||Ns?(typeof te=="function"&&(td(i,a,te,d),ie=i.memoizedState),(V=Ns||mg(i,a,V,d,K,ie,R)||!1)?(G||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(d,ie,R),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(d,ie,R)),typeof b.componentDidUpdate=="function"&&(i.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof b.componentDidUpdate!="function"||N===s.memoizedProps&&K===s.memoizedState||(i.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||N===s.memoizedProps&&K===s.memoizedState||(i.flags|=1024),i.memoizedProps=d,i.memoizedState=ie),b.props=d,b.state=ie,b.context=R,d=V):(typeof b.componentDidUpdate!="function"||N===s.memoizedProps&&K===s.memoizedState||(i.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||N===s.memoizedProps&&K===s.memoizedState||(i.flags|=1024),d=!1)}return od(s,i,a,d,g,m)}function od(s,i,a,d,m,g){Eg(s,i);var b=(i.flags&128)!==0;if(!d&&!b)return m&&Om(i,a,!1),is(s,i,g);d=i.stateNode,yS.current=i;var N=b&&typeof a.getDerivedStateFromError!="function"?null:d.render();return i.flags|=1,s!==null&&b?(i.child=li(i,s.child,null,g),i.child=li(i,null,N,g)):Ut(s,i,N,g),i.memoizedState=d.state,m&&Om(i,a,!0),i.child}function Pg(s){var i=s.stateNode;i.pendingContext?Rm(s,i.pendingContext,i.pendingContext!==i.context):i.context&&Rm(s,i.context,!1),$u(s,i.containerInfo)}function Tg(s,i,a,d,m){return ai(),Iu(m),i.flags|=256,Ut(s,i,a,d),i.child}var ad={dehydrated:null,treeContext:null,retryLane:0};function ld(s){return{baseLanes:s,cachePool:null,transitions:null}}function Rg(s,i,a){var d=i.pendingProps,m=Ze.current,g=!1,b=(i.flags&128)!==0,N;if((N=b)||(N=s!==null&&s.memoizedState===null?!1:(m&2)!==0),N?(g=!0,i.flags&=-129):(s===null||s.memoizedState!==null)&&(m|=1),qe(Ze,m&1),s===null)return Du(i),s=i.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((i.mode&1)===0?i.lanes=1:s.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(b=d.children,s=d.fallback,g?(d=i.mode,g=i.child,b={mode:"hidden",children:b},(d&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=b):g=Ll(b,d,0,null),s=vr(s,d,a,null),g.return=i,s.return=i,g.sibling=s,i.child=g,i.child.memoizedState=ld(a),i.memoizedState=ad,s):cd(i,b));if(m=s.memoizedState,m!==null&&(N=m.dehydrated,N!==null))return xS(s,i,b,d,N,m,a);if(g){g=d.fallback,b=i.mode,m=s.child,N=m.sibling;var R={mode:"hidden",children:d.children};return(b&1)===0&&i.child!==m?(d=i.child,d.childLanes=0,d.pendingProps=R,i.deletions=null):(d=Ds(m,R),d.subtreeFlags=m.subtreeFlags&14680064),N!==null?g=Ds(N,g):(g=vr(g,b,a,null),g.flags|=2),g.return=i,d.return=i,d.sibling=g,i.child=d,d=g,g=i.child,b=s.child.memoizedState,b=b===null?ld(a):{baseLanes:b.baseLanes|a,cachePool:null,transitions:b.transitions},g.memoizedState=b,g.childLanes=s.childLanes&~a,i.memoizedState=ad,d}return g=s.child,s=g.sibling,d=Ds(g,{mode:"visible",children:d.children}),(i.mode&1)===0&&(d.lanes=a),d.return=i,d.sibling=null,s!==null&&(a=i.deletions,a===null?(i.deletions=[s],i.flags|=16):a.push(s)),i.child=d,i.memoizedState=null,d}function cd(s,i){return i=Ll({mode:"visible",children:i},s.mode,0,null),i.return=s,s.child=i}function wl(s,i,a,d){return d!==null&&Iu(d),li(i,s.child,null,a),s=cd(i,i.pendingProps.children),s.flags|=2,i.memoizedState=null,s}function xS(s,i,a,d,m,g,b){if(a)return i.flags&256?(i.flags&=-257,d=sd(Error(n(422))),wl(s,i,b,d)):i.memoizedState!==null?(i.child=s.child,i.flags|=128,null):(g=d.fallback,m=i.mode,d=Ll({mode:"visible",children:d.children},m,0,null),g=vr(g,m,b,null),g.flags|=2,d.return=i,g.return=i,d.sibling=g,i.child=d,(i.mode&1)!==0&&li(i,s.child,null,b),i.child.memoizedState=ld(b),i.memoizedState=ad,g);if((i.mode&1)===0)return wl(s,i,b,null);if(m.data==="$!"){if(d=m.nextSibling&&m.nextSibling.dataset,d)var N=d.dgst;return d=N,g=Error(n(419)),d=sd(g,d,void 0),wl(s,i,b,d)}if(N=(b&s.childLanes)!==0,Yt||N){if(d=yt,d!==null){switch(b&-b){case 4:m=2;break;case 16:m=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:m=32;break;case 536870912:m=268435456;break;default:m=0}m=(m&(d.suspendedLanes|b))!==0?0:m,m!==0&&m!==g.retryLane&&(g.retryLane=m,ss(s,m),An(d,s,m,-1))}return jd(),d=sd(Error(n(421))),wl(s,i,b,d)}return m.data==="$?"?(i.flags|=128,i.child=s.child,i=RS.bind(null,s),m._reactRetry=i,null):(s=g.treeContext,on=ks(m.nextSibling),rn=i,Xe=!0,Nn=null,s!==null&&(dn[fn++]=ts,dn[fn++]=ns,dn[fn++]=ur,ts=s.id,ns=s.overflow,ur=i),i=cd(i,d.children),i.flags|=4096,i)}function Ag(s,i,a){s.lanes|=i;var d=s.alternate;d!==null&&(d.lanes|=i),Vu(s.return,i,a)}function ud(s,i,a,d,m){var g=s.memoizedState;g===null?s.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:a,tailMode:m}:(g.isBackwards=i,g.rendering=null,g.renderingStartTime=0,g.last=d,g.tail=a,g.tailMode=m)}function Og(s,i,a){var d=i.pendingProps,m=d.revealOrder,g=d.tail;if(Ut(s,i,d.children,a),d=Ze.current,(d&2)!==0)d=d&1|2,i.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=i.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&Ag(s,a,i);else if(s.tag===19)Ag(s,a,i);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}d&=1}if(qe(Ze,d),(i.mode&1)===0)i.memoizedState=null;else switch(m){case"forwards":for(a=i.child,m=null;a!==null;)s=a.alternate,s!==null&&pl(s)===null&&(m=a),a=a.sibling;a=m,a===null?(m=i.child,i.child=null):(m=a.sibling,a.sibling=null),ud(i,!1,m,a,g);break;case"backwards":for(a=null,m=i.child,i.child=null;m!==null;){if(s=m.alternate,s!==null&&pl(s)===null){i.child=m;break}s=m.sibling,m.sibling=a,a=m,m=s}ud(i,!0,a,null,g);break;case"together":ud(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function _l(s,i){(i.mode&1)===0&&s!==null&&(s.alternate=null,i.alternate=null,i.flags|=2)}function is(s,i,a){if(s!==null&&(i.dependencies=s.dependencies),mr|=i.lanes,(a&i.childLanes)===0)return null;if(s!==null&&i.child!==s.child)throw Error(n(153));if(i.child!==null){for(s=i.child,a=Ds(s,s.pendingProps),i.child=a,a.return=i;s.sibling!==null;)s=s.sibling,a=a.sibling=Ds(s,s.pendingProps),a.return=i;a.sibling=null}return i.child}function vS(s,i,a){switch(i.tag){case 3:Pg(i),ai();break;case 5:Km(i);break;case 1:Qt(i.type)&&rl(i);break;case 4:$u(i,i.stateNode.containerInfo);break;case 10:var d=i.type._context,m=i.memoizedProps.value;qe(ul,d._currentValue),d._currentValue=m;break;case 13:if(d=i.memoizedState,d!==null)return d.dehydrated!==null?(qe(Ze,Ze.current&1),i.flags|=128,null):(a&i.child.childLanes)!==0?Rg(s,i,a):(qe(Ze,Ze.current&1),s=is(s,i,a),s!==null?s.sibling:null);qe(Ze,Ze.current&1);break;case 19:if(d=(a&i.childLanes)!==0,(s.flags&128)!==0){if(d)return Og(s,i,a);i.flags|=128}if(m=i.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),qe(Ze,Ze.current),d)break;return null;case 22:case 23:return i.lanes=0,Cg(s,i,a)}return is(s,i,a)}var Lg,dd,Dg,Ig;Lg=function(s,i){for(var a=i.child;a!==null;){if(a.tag===5||a.tag===6)s.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},dd=function(){},Dg=function(s,i,a,d){var m=s.memoizedProps;if(m!==d){s=i.stateNode,hr(Un.current);var g=null;switch(a){case"input":m=Wt(s,m),d=Wt(s,d),g=[];break;case"select":m=z({},m,{value:void 0}),d=z({},d,{value:void 0}),g=[];break;case"textarea":m=Jn(s,m),d=Jn(s,d),g=[];break;default:typeof m.onClick!="function"&&typeof d.onClick=="function"&&(s.onclick=tl)}Wc(a,d);var b;a=null;for(V in m)if(!d.hasOwnProperty(V)&&m.hasOwnProperty(V)&&m[V]!=null)if(V==="style"){var N=m[V];for(b in N)N.hasOwnProperty(b)&&(a||(a={}),a[b]="")}else V!=="dangerouslySetInnerHTML"&&V!=="children"&&V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&V!=="autoFocus"&&(o.hasOwnProperty(V)?g||(g=[]):(g=g||[]).push(V,null));for(V in d){var R=d[V];if(N=m!=null?m[V]:void 0,d.hasOwnProperty(V)&&R!==N&&(R!=null||N!=null))if(V==="style")if(N){for(b in N)!N.hasOwnProperty(b)||R&&R.hasOwnProperty(b)||(a||(a={}),a[b]="");for(b in R)R.hasOwnProperty(b)&&N[b]!==R[b]&&(a||(a={}),a[b]=R[b])}else a||(g||(g=[]),g.push(V,a)),a=R;else V==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,N=N?N.__html:void 0,R!=null&&N!==R&&(g=g||[]).push(V,R)):V==="children"?typeof R!="string"&&typeof R!="number"||(g=g||[]).push(V,""+R):V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&(o.hasOwnProperty(V)?(R!=null&&V==="onScroll"&&Ke("scroll",s),g||N===R||(g=[])):(g=g||[]).push(V,R))}a&&(g=g||[]).push("style",a);var V=g;(i.updateQueue=V)&&(i.flags|=4)}},Ig=function(s,i,a,d){a!==d&&(i.flags|=4)};function Oo(s,i){if(!Xe)switch(s.tailMode){case"hidden":i=s.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?s.tail=null:a.sibling=null;break;case"collapsed":a=s.tail;for(var d=null;a!==null;)a.alternate!==null&&(d=a),a=a.sibling;d===null?i||s.tail===null?s.tail=null:s.tail.sibling=null:d.sibling=null}}function At(s){var i=s.alternate!==null&&s.alternate.child===s.child,a=0,d=0;if(i)for(var m=s.child;m!==null;)a|=m.lanes|m.childLanes,d|=m.subtreeFlags&14680064,d|=m.flags&14680064,m.return=s,m=m.sibling;else for(m=s.child;m!==null;)a|=m.lanes|m.childLanes,d|=m.subtreeFlags,d|=m.flags,m.return=s,m=m.sibling;return s.subtreeFlags|=d,s.childLanes=a,i}function bS(s,i,a){var d=i.pendingProps;switch(Ou(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return At(i),null;case 1:return Qt(i.type)&&sl(),At(i),null;case 3:return d=i.stateNode,di(),Ge(Gt),Ge(Tt),Hu(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(s===null||s.child===null)&&(ll(i)?i.flags|=4:s===null||s.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Nn!==null&&(_d(Nn),Nn=null))),dd(s,i),At(i),null;case 5:qu(i);var m=hr(No.current);if(a=i.type,s!==null&&i.stateNode!=null)Dg(s,i,a,d,m),s.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!d){if(i.stateNode===null)throw Error(n(166));return At(i),null}if(s=hr(Un.current),ll(i)){d=i.stateNode,a=i.type;var g=i.memoizedProps;switch(d[Vn]=i,d[So]=g,s=(i.mode&1)!==0,a){case"dialog":Ke("cancel",d),Ke("close",d);break;case"iframe":case"object":case"embed":Ke("load",d);break;case"video":case"audio":for(m=0;m<bo.length;m++)Ke(bo[m],d);break;case"source":Ke("error",d);break;case"img":case"image":case"link":Ke("error",d),Ke("load",d);break;case"details":Ke("toggle",d);break;case"input":Ht(d,g),Ke("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!g.multiple},Ke("invalid",d);break;case"textarea":vp(d,g),Ke("invalid",d)}Wc(a,g),m=null;for(var b in g)if(g.hasOwnProperty(b)){var N=g[b];b==="children"?typeof N=="string"?d.textContent!==N&&(g.suppressHydrationWarning!==!0&&el(d.textContent,N,s),m=["children",N]):typeof N=="number"&&d.textContent!==""+N&&(g.suppressHydrationWarning!==!0&&el(d.textContent,N,s),m=["children",""+N]):o.hasOwnProperty(b)&&N!=null&&b==="onScroll"&&Ke("scroll",d)}switch(a){case"input":Pt(d),Kt(d,g,!0);break;case"textarea":Pt(d),wp(d);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(d.onclick=tl)}d=m,i.updateQueue=d,d!==null&&(i.flags|=4)}else{b=m.nodeType===9?m:m.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=_p(a)),s==="http://www.w3.org/1999/xhtml"?a==="script"?(s=b.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof d.is=="string"?s=b.createElement(a,{is:d.is}):(s=b.createElement(a),a==="select"&&(b=s,d.multiple?b.multiple=!0:d.size&&(b.size=d.size))):s=b.createElementNS(s,a),s[Vn]=i,s[So]=d,Lg(s,i,!1,!1),i.stateNode=s;e:{switch(b=Hc(a,d),a){case"dialog":Ke("cancel",s),Ke("close",s),m=d;break;case"iframe":case"object":case"embed":Ke("load",s),m=d;break;case"video":case"audio":for(m=0;m<bo.length;m++)Ke(bo[m],s);m=d;break;case"source":Ke("error",s),m=d;break;case"img":case"image":case"link":Ke("error",s),Ke("load",s),m=d;break;case"details":Ke("toggle",s),m=d;break;case"input":Ht(s,d),m=Wt(s,d),Ke("invalid",s);break;case"option":m=d;break;case"select":s._wrapperState={wasMultiple:!!d.multiple},m=z({},d,{value:void 0}),Ke("invalid",s);break;case"textarea":vp(s,d),m=Jn(s,d),Ke("invalid",s);break;default:m=d}Wc(a,m),N=m;for(g in N)if(N.hasOwnProperty(g)){var R=N[g];g==="style"?jp(s,R):g==="dangerouslySetInnerHTML"?(R=R?R.__html:void 0,R!=null&&Sp(s,R)):g==="children"?typeof R=="string"?(a!=="textarea"||R!=="")&&eo(s,R):typeof R=="number"&&eo(s,""+R):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(o.hasOwnProperty(g)?R!=null&&g==="onScroll"&&Ke("scroll",s):R!=null&&C(s,g,R,b))}switch(a){case"input":Pt(s),Kt(s,d,!1);break;case"textarea":Pt(s),wp(s);break;case"option":d.value!=null&&s.setAttribute("value",""+Ne(d.value));break;case"select":s.multiple=!!d.multiple,g=d.value,g!=null?ys(s,!!d.multiple,g,!1):d.defaultValue!=null&&ys(s,!!d.multiple,d.defaultValue,!0);break;default:typeof m.onClick=="function"&&(s.onclick=tl)}switch(a){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return At(i),null;case 6:if(s&&i.stateNode!=null)Ig(s,i,s.memoizedProps,d);else{if(typeof d!="string"&&i.stateNode===null)throw Error(n(166));if(a=hr(No.current),hr(Un.current),ll(i)){if(d=i.stateNode,a=i.memoizedProps,d[Vn]=i,(g=d.nodeValue!==a)&&(s=rn,s!==null))switch(s.tag){case 3:el(d.nodeValue,a,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&el(d.nodeValue,a,(s.mode&1)!==0)}g&&(i.flags|=4)}else d=(a.nodeType===9?a:a.ownerDocument).createTextNode(d),d[Vn]=i,i.stateNode=d}return At(i),null;case 13:if(Ge(Ze),d=i.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(Xe&&on!==null&&(i.mode&1)!==0&&(i.flags&128)===0)Bm(),ai(),i.flags|=98560,g=!1;else if(g=ll(i),d!==null&&d.dehydrated!==null){if(s===null){if(!g)throw Error(n(318));if(g=i.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(n(317));g[Vn]=i}else ai(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;At(i),g=!1}else Nn!==null&&(_d(Nn),Nn=null),g=!0;if(!g)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=a,i):(d=d!==null,d!==(s!==null&&s.memoizedState!==null)&&d&&(i.child.flags|=8192,(i.mode&1)!==0&&(s===null||(Ze.current&1)!==0?ht===0&&(ht=3):jd())),i.updateQueue!==null&&(i.flags|=4),At(i),null);case 4:return di(),dd(s,i),s===null&&wo(i.stateNode.containerInfo),At(i),null;case 10:return Bu(i.type._context),At(i),null;case 17:return Qt(i.type)&&sl(),At(i),null;case 19:if(Ge(Ze),g=i.memoizedState,g===null)return At(i),null;if(d=(i.flags&128)!==0,b=g.rendering,b===null)if(d)Oo(g,!1);else{if(ht!==0||s!==null&&(s.flags&128)!==0)for(s=i.child;s!==null;){if(b=pl(s),b!==null){for(i.flags|=128,Oo(g,!1),d=b.updateQueue,d!==null&&(i.updateQueue=d,i.flags|=4),i.subtreeFlags=0,d=a,a=i.child;a!==null;)g=a,s=d,g.flags&=14680066,b=g.alternate,b===null?(g.childLanes=0,g.lanes=s,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=b.childLanes,g.lanes=b.lanes,g.child=b.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=b.memoizedProps,g.memoizedState=b.memoizedState,g.updateQueue=b.updateQueue,g.type=b.type,s=b.dependencies,g.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),a=a.sibling;return qe(Ze,Ze.current&1|2),i.child}s=s.sibling}g.tail!==null&&ot()>mi&&(i.flags|=128,d=!0,Oo(g,!1),i.lanes=4194304)}else{if(!d)if(s=pl(b),s!==null){if(i.flags|=128,d=!0,a=s.updateQueue,a!==null&&(i.updateQueue=a,i.flags|=4),Oo(g,!0),g.tail===null&&g.tailMode==="hidden"&&!b.alternate&&!Xe)return At(i),null}else 2*ot()-g.renderingStartTime>mi&&a!==1073741824&&(i.flags|=128,d=!0,Oo(g,!1),i.lanes=4194304);g.isBackwards?(b.sibling=i.child,i.child=b):(a=g.last,a!==null?a.sibling=b:i.child=b,g.last=b)}return g.tail!==null?(i=g.tail,g.rendering=i,g.tail=i.sibling,g.renderingStartTime=ot(),i.sibling=null,a=Ze.current,qe(Ze,d?a&1|2:a&1),i):(At(i),null);case 22:case 23:return kd(),d=i.memoizedState!==null,s!==null&&s.memoizedState!==null!==d&&(i.flags|=8192),d&&(i.mode&1)!==0?(an&1073741824)!==0&&(At(i),i.subtreeFlags&6&&(i.flags|=8192)):At(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function wS(s,i){switch(Ou(i),i.tag){case 1:return Qt(i.type)&&sl(),s=i.flags,s&65536?(i.flags=s&-65537|128,i):null;case 3:return di(),Ge(Gt),Ge(Tt),Hu(),s=i.flags,(s&65536)!==0&&(s&128)===0?(i.flags=s&-65537|128,i):null;case 5:return qu(i),null;case 13:if(Ge(Ze),s=i.memoizedState,s!==null&&s.dehydrated!==null){if(i.alternate===null)throw Error(n(340));ai()}return s=i.flags,s&65536?(i.flags=s&-65537|128,i):null;case 19:return Ge(Ze),null;case 4:return di(),null;case 10:return Bu(i.type._context),null;case 22:case 23:return kd(),null;case 24:return null;default:return null}}var Sl=!1,Ot=!1,_S=typeof WeakSet=="function"?WeakSet:Set,re=null;function hi(s,i){var a=s.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(d){nt(s,i,d)}else a.current=null}function fd(s,i,a){try{a()}catch(d){nt(s,i,d)}}var Mg=!1;function SS(s,i){if(ku=$a,s=mm(),gu(s)){if("selectionStart"in s)var a={start:s.selectionStart,end:s.selectionEnd};else e:{a=(a=s.ownerDocument)&&a.defaultView||window;var d=a.getSelection&&a.getSelection();if(d&&d.rangeCount!==0){a=d.anchorNode;var m=d.anchorOffset,g=d.focusNode;d=d.focusOffset;try{a.nodeType,g.nodeType}catch{a=null;break e}var b=0,N=-1,R=-1,V=0,G=0,Y=s,K=null;t:for(;;){for(var te;Y!==a||m!==0&&Y.nodeType!==3||(N=b+m),Y!==g||d!==0&&Y.nodeType!==3||(R=b+d),Y.nodeType===3&&(b+=Y.nodeValue.length),(te=Y.firstChild)!==null;)K=Y,Y=te;for(;;){if(Y===s)break t;if(K===a&&++V===m&&(N=b),K===g&&++G===d&&(R=b),(te=Y.nextSibling)!==null)break;Y=K,K=Y.parentNode}Y=te}a=N===-1||R===-1?null:{start:N,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(ju={focusedElem:s,selectionRange:a},$a=!1,re=i;re!==null;)if(i=re,s=i.child,(i.subtreeFlags&1028)!==0&&s!==null)s.return=i,re=s;else for(;re!==null;){i=re;try{var ie=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(ie!==null){var ue=ie.memoizedProps,at=ie.memoizedState,F=i.stateNode,L=F.getSnapshotBeforeUpdate(i.elementType===i.type?ue:Pn(i.type,ue),at);F.__reactInternalSnapshotBeforeUpdate=L}break;case 3:var B=i.stateNode.containerInfo;B.nodeType===1?B.textContent="":B.nodeType===9&&B.documentElement&&B.removeChild(B.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(X){nt(i,i.return,X)}if(s=i.sibling,s!==null){s.return=i.return,re=s;break}re=i.return}return ie=Mg,Mg=!1,ie}function Lo(s,i,a){var d=i.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var m=d=d.next;do{if((m.tag&s)===s){var g=m.destroy;m.destroy=void 0,g!==void 0&&fd(i,a,g)}m=m.next}while(m!==d)}}function kl(s,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var a=i=i.next;do{if((a.tag&s)===s){var d=a.create;a.destroy=d()}a=a.next}while(a!==i)}}function hd(s){var i=s.ref;if(i!==null){var a=s.stateNode;switch(s.tag){case 5:s=a;break;default:s=a}typeof i=="function"?i(s):i.current=s}}function Fg(s){var i=s.alternate;i!==null&&(s.alternate=null,Fg(i)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(i=s.stateNode,i!==null&&(delete i[Vn],delete i[So],delete i[Pu],delete i[iS],delete i[oS])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function Bg(s){return s.tag===5||s.tag===3||s.tag===4}function Vg(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||Bg(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function pd(s,i,a){var d=s.tag;if(d===5||d===6)s=s.stateNode,i?a.nodeType===8?a.parentNode.insertBefore(s,i):a.insertBefore(s,i):(a.nodeType===8?(i=a.parentNode,i.insertBefore(s,a)):(i=a,i.appendChild(s)),a=a._reactRootContainer,a!=null||i.onclick!==null||(i.onclick=tl));else if(d!==4&&(s=s.child,s!==null))for(pd(s,i,a),s=s.sibling;s!==null;)pd(s,i,a),s=s.sibling}function md(s,i,a){var d=s.tag;if(d===5||d===6)s=s.stateNode,i?a.insertBefore(s,i):a.appendChild(s);else if(d!==4&&(s=s.child,s!==null))for(md(s,i,a),s=s.sibling;s!==null;)md(s,i,a),s=s.sibling}var wt=null,Tn=!1;function Ts(s,i,a){for(a=a.child;a!==null;)Ug(s,i,a),a=a.sibling}function Ug(s,i,a){if(Bn&&typeof Bn.onCommitFiberUnmount=="function")try{Bn.onCommitFiberUnmount(Ma,a)}catch{}switch(a.tag){case 5:Ot||hi(a,i);case 6:var d=wt,m=Tn;wt=null,Ts(s,i,a),wt=d,Tn=m,wt!==null&&(Tn?(s=wt,a=a.stateNode,s.nodeType===8?s.parentNode.removeChild(a):s.removeChild(a)):wt.removeChild(a.stateNode));break;case 18:wt!==null&&(Tn?(s=wt,a=a.stateNode,s.nodeType===8?Nu(s.parentNode,a):s.nodeType===1&&Nu(s,a),fo(s)):Nu(wt,a.stateNode));break;case 4:d=wt,m=Tn,wt=a.stateNode.containerInfo,Tn=!0,Ts(s,i,a),wt=d,Tn=m;break;case 0:case 11:case 14:case 15:if(!Ot&&(d=a.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){m=d=d.next;do{var g=m,b=g.destroy;g=g.tag,b!==void 0&&((g&2)!==0||(g&4)!==0)&&fd(a,i,b),m=m.next}while(m!==d)}Ts(s,i,a);break;case 1:if(!Ot&&(hi(a,i),d=a.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=a.memoizedProps,d.state=a.memoizedState,d.componentWillUnmount()}catch(N){nt(a,i,N)}Ts(s,i,a);break;case 21:Ts(s,i,a);break;case 22:a.mode&1?(Ot=(d=Ot)||a.memoizedState!==null,Ts(s,i,a),Ot=d):Ts(s,i,a);break;default:Ts(s,i,a)}}function zg(s){var i=s.updateQueue;if(i!==null){s.updateQueue=null;var a=s.stateNode;a===null&&(a=s.stateNode=new _S),i.forEach(function(d){var m=AS.bind(null,s,d);a.has(d)||(a.add(d),d.then(m,m))})}}function Rn(s,i){var a=i.deletions;if(a!==null)for(var d=0;d<a.length;d++){var m=a[d];try{var g=s,b=i,N=b;e:for(;N!==null;){switch(N.tag){case 5:wt=N.stateNode,Tn=!1;break e;case 3:wt=N.stateNode.containerInfo,Tn=!0;break e;case 4:wt=N.stateNode.containerInfo,Tn=!0;break e}N=N.return}if(wt===null)throw Error(n(160));Ug(g,b,m),wt=null,Tn=!1;var R=m.alternate;R!==null&&(R.return=null),m.return=null}catch(V){nt(m,i,V)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)$g(i,s),i=i.sibling}function $g(s,i){var a=s.alternate,d=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(Rn(i,s),$n(s),d&4){try{Lo(3,s,s.return),kl(3,s)}catch(ue){nt(s,s.return,ue)}try{Lo(5,s,s.return)}catch(ue){nt(s,s.return,ue)}}break;case 1:Rn(i,s),$n(s),d&512&&a!==null&&hi(a,a.return);break;case 5:if(Rn(i,s),$n(s),d&512&&a!==null&&hi(a,a.return),s.flags&32){var m=s.stateNode;try{eo(m,"")}catch(ue){nt(s,s.return,ue)}}if(d&4&&(m=s.stateNode,m!=null)){var g=s.memoizedProps,b=a!==null?a.memoizedProps:g,N=s.type,R=s.updateQueue;if(s.updateQueue=null,R!==null)try{N==="input"&&g.type==="radio"&&g.name!=null&&W(m,g),Hc(N,b);var V=Hc(N,g);for(b=0;b<R.length;b+=2){var G=R[b],Y=R[b+1];G==="style"?jp(m,Y):G==="dangerouslySetInnerHTML"?Sp(m,Y):G==="children"?eo(m,Y):C(m,G,Y,V)}switch(N){case"input":Re(m,g);break;case"textarea":bp(m,g);break;case"select":var K=m._wrapperState.wasMultiple;m._wrapperState.wasMultiple=!!g.multiple;var te=g.value;te!=null?ys(m,!!g.multiple,te,!1):K!==!!g.multiple&&(g.defaultValue!=null?ys(m,!!g.multiple,g.defaultValue,!0):ys(m,!!g.multiple,g.multiple?[]:"",!1))}m[So]=g}catch(ue){nt(s,s.return,ue)}}break;case 6:if(Rn(i,s),$n(s),d&4){if(s.stateNode===null)throw Error(n(162));m=s.stateNode,g=s.memoizedProps;try{m.nodeValue=g}catch(ue){nt(s,s.return,ue)}}break;case 3:if(Rn(i,s),$n(s),d&4&&a!==null&&a.memoizedState.isDehydrated)try{fo(i.containerInfo)}catch(ue){nt(s,s.return,ue)}break;case 4:Rn(i,s),$n(s);break;case 13:Rn(i,s),$n(s),m=s.child,m.flags&8192&&(g=m.memoizedState!==null,m.stateNode.isHidden=g,!g||m.alternate!==null&&m.alternate.memoizedState!==null||(xd=ot())),d&4&&zg(s);break;case 22:if(G=a!==null&&a.memoizedState!==null,s.mode&1?(Ot=(V=Ot)||G,Rn(i,s),Ot=V):Rn(i,s),$n(s),d&8192){if(V=s.memoizedState!==null,(s.stateNode.isHidden=V)&&!G&&(s.mode&1)!==0)for(re=s,G=s.child;G!==null;){for(Y=re=G;re!==null;){switch(K=re,te=K.child,K.tag){case 0:case 11:case 14:case 15:Lo(4,K,K.return);break;case 1:hi(K,K.return);var ie=K.stateNode;if(typeof ie.componentWillUnmount=="function"){d=K,a=K.return;try{i=d,ie.props=i.memoizedProps,ie.state=i.memoizedState,ie.componentWillUnmount()}catch(ue){nt(d,a,ue)}}break;case 5:hi(K,K.return);break;case 22:if(K.memoizedState!==null){Hg(Y);continue}}te!==null?(te.return=K,re=te):Hg(Y)}G=G.sibling}e:for(G=null,Y=s;;){if(Y.tag===5){if(G===null){G=Y;try{m=Y.stateNode,V?(g=m.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(N=Y.stateNode,R=Y.memoizedProps.style,b=R!=null&&R.hasOwnProperty("display")?R.display:null,N.style.display=kp("display",b))}catch(ue){nt(s,s.return,ue)}}}else if(Y.tag===6){if(G===null)try{Y.stateNode.nodeValue=V?"":Y.memoizedProps}catch(ue){nt(s,s.return,ue)}}else if((Y.tag!==22&&Y.tag!==23||Y.memoizedState===null||Y===s)&&Y.child!==null){Y.child.return=Y,Y=Y.child;continue}if(Y===s)break e;for(;Y.sibling===null;){if(Y.return===null||Y.return===s)break e;G===Y&&(G=null),Y=Y.return}G===Y&&(G=null),Y.sibling.return=Y.return,Y=Y.sibling}}break;case 19:Rn(i,s),$n(s),d&4&&zg(s);break;case 21:break;default:Rn(i,s),$n(s)}}function $n(s){var i=s.flags;if(i&2){try{e:{for(var a=s.return;a!==null;){if(Bg(a)){var d=a;break e}a=a.return}throw Error(n(160))}switch(d.tag){case 5:var m=d.stateNode;d.flags&32&&(eo(m,""),d.flags&=-33);var g=Vg(s);md(s,g,m);break;case 3:case 4:var b=d.stateNode.containerInfo,N=Vg(s);pd(s,N,b);break;default:throw Error(n(161))}}catch(R){nt(s,s.return,R)}s.flags&=-3}i&4096&&(s.flags&=-4097)}function kS(s,i,a){re=s,qg(s)}function qg(s,i,a){for(var d=(s.mode&1)!==0;re!==null;){var m=re,g=m.child;if(m.tag===22&&d){var b=m.memoizedState!==null||Sl;if(!b){var N=m.alternate,R=N!==null&&N.memoizedState!==null||Ot;N=Sl;var V=Ot;if(Sl=b,(Ot=R)&&!V)for(re=m;re!==null;)b=re,R=b.child,b.tag===22&&b.memoizedState!==null?Kg(m):R!==null?(R.return=b,re=R):Kg(m);for(;g!==null;)re=g,qg(g),g=g.sibling;re=m,Sl=N,Ot=V}Wg(s)}else(m.subtreeFlags&8772)!==0&&g!==null?(g.return=m,re=g):Wg(s)}}function Wg(s){for(;re!==null;){var i=re;if((i.flags&8772)!==0){var a=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:Ot||kl(5,i);break;case 1:var d=i.stateNode;if(i.flags&4&&!Ot)if(a===null)d.componentDidMount();else{var m=i.elementType===i.type?a.memoizedProps:Pn(i.type,a.memoizedProps);d.componentDidUpdate(m,a.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var g=i.updateQueue;g!==null&&Hm(i,g,d);break;case 3:var b=i.updateQueue;if(b!==null){if(a=null,i.child!==null)switch(i.child.tag){case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}Hm(i,b,a)}break;case 5:var N=i.stateNode;if(a===null&&i.flags&4){a=N;var R=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":R.autoFocus&&a.focus();break;case"img":R.src&&(a.src=R.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var V=i.alternate;if(V!==null){var G=V.memoizedState;if(G!==null){var Y=G.dehydrated;Y!==null&&fo(Y)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Ot||i.flags&512&&hd(i)}catch(K){nt(i,i.return,K)}}if(i===s){re=null;break}if(a=i.sibling,a!==null){a.return=i.return,re=a;break}re=i.return}}function Hg(s){for(;re!==null;){var i=re;if(i===s){re=null;break}var a=i.sibling;if(a!==null){a.return=i.return,re=a;break}re=i.return}}function Kg(s){for(;re!==null;){var i=re;try{switch(i.tag){case 0:case 11:case 15:var a=i.return;try{kl(4,i)}catch(R){nt(i,a,R)}break;case 1:var d=i.stateNode;if(typeof d.componentDidMount=="function"){var m=i.return;try{d.componentDidMount()}catch(R){nt(i,m,R)}}var g=i.return;try{hd(i)}catch(R){nt(i,g,R)}break;case 5:var b=i.return;try{hd(i)}catch(R){nt(i,b,R)}}}catch(R){nt(i,i.return,R)}if(i===s){re=null;break}var N=i.sibling;if(N!==null){N.return=i.return,re=N;break}re=i.return}}var jS=Math.ceil,jl=T.ReactCurrentDispatcher,gd=T.ReactCurrentOwner,mn=T.ReactCurrentBatchConfig,Me=0,yt=null,ut=null,_t=0,an=0,pi=js(0),ht=0,Do=null,mr=0,Cl=0,yd=0,Io=null,Xt=null,xd=0,mi=1/0,os=null,El=!1,vd=null,Rs=null,Nl=!1,As=null,Pl=0,Mo=0,bd=null,Tl=-1,Rl=0;function zt(){return(Me&6)!==0?ot():Tl!==-1?Tl:Tl=ot()}function Os(s){return(s.mode&1)===0?1:(Me&2)!==0&&_t!==0?_t&-_t:lS.transition!==null?(Rl===0&&(Rl=Vp()),Rl):(s=ze,s!==0||(s=window.event,s=s===void 0?16:Qp(s.type)),s)}function An(s,i,a,d){if(50<Mo)throw Mo=0,bd=null,Error(n(185));oo(s,a,d),((Me&2)===0||s!==yt)&&(s===yt&&((Me&2)===0&&(Cl|=a),ht===4&&Ls(s,_t)),Jt(s,d),a===1&&Me===0&&(i.mode&1)===0&&(mi=ot()+500,il&&Es()))}function Jt(s,i){var a=s.callbackNode;l_(s,i);var d=Va(s,s===yt?_t:0);if(d===0)a!==null&&Mp(a),s.callbackNode=null,s.callbackPriority=0;else if(i=d&-d,s.callbackPriority!==i){if(a!=null&&Mp(a),i===1)s.tag===0?aS(Qg.bind(null,s)):Lm(Qg.bind(null,s)),sS(function(){(Me&6)===0&&Es()}),a=null;else{switch(Up(d)){case 1:a=Zc;break;case 4:a=Fp;break;case 16:a=Ia;break;case 536870912:a=Bp;break;default:a=Ia}a=sy(a,Gg.bind(null,s))}s.callbackPriority=i,s.callbackNode=a}}function Gg(s,i){if(Tl=-1,Rl=0,(Me&6)!==0)throw Error(n(327));var a=s.callbackNode;if(gi()&&s.callbackNode!==a)return null;var d=Va(s,s===yt?_t:0);if(d===0)return null;if((d&30)!==0||(d&s.expiredLanes)!==0||i)i=Al(s,d);else{i=d;var m=Me;Me|=2;var g=Xg();(yt!==s||_t!==i)&&(os=null,mi=ot()+500,yr(s,i));do try{NS();break}catch(N){Yg(s,N)}while(!0);Fu(),jl.current=g,Me=m,ut!==null?i=0:(yt=null,_t=0,i=ht)}if(i!==0){if(i===2&&(m=eu(s),m!==0&&(d=m,i=wd(s,m))),i===1)throw a=Do,yr(s,0),Ls(s,d),Jt(s,ot()),a;if(i===6)Ls(s,d);else{if(m=s.current.alternate,(d&30)===0&&!CS(m)&&(i=Al(s,d),i===2&&(g=eu(s),g!==0&&(d=g,i=wd(s,g))),i===1))throw a=Do,yr(s,0),Ls(s,d),Jt(s,ot()),a;switch(s.finishedWork=m,s.finishedLanes=d,i){case 0:case 1:throw Error(n(345));case 2:xr(s,Xt,os);break;case 3:if(Ls(s,d),(d&130023424)===d&&(i=xd+500-ot(),10<i)){if(Va(s,0)!==0)break;if(m=s.suspendedLanes,(m&d)!==d){zt(),s.pingedLanes|=s.suspendedLanes&m;break}s.timeoutHandle=Eu(xr.bind(null,s,Xt,os),i);break}xr(s,Xt,os);break;case 4:if(Ls(s,d),(d&4194240)===d)break;for(i=s.eventTimes,m=-1;0<d;){var b=31-Cn(d);g=1<<b,b=i[b],b>m&&(m=b),d&=~g}if(d=m,d=ot()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*jS(d/1960))-d,10<d){s.timeoutHandle=Eu(xr.bind(null,s,Xt,os),d);break}xr(s,Xt,os);break;case 5:xr(s,Xt,os);break;default:throw Error(n(329))}}}return Jt(s,ot()),s.callbackNode===a?Gg.bind(null,s):null}function wd(s,i){var a=Io;return s.current.memoizedState.isDehydrated&&(yr(s,i).flags|=256),s=Al(s,i),s!==2&&(i=Xt,Xt=a,i!==null&&_d(i)),s}function _d(s){Xt===null?Xt=s:Xt.push.apply(Xt,s)}function CS(s){for(var i=s;;){if(i.flags&16384){var a=i.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var d=0;d<a.length;d++){var m=a[d],g=m.getSnapshot;m=m.value;try{if(!En(g(),m))return!1}catch{return!1}}}if(a=i.child,i.subtreeFlags&16384&&a!==null)a.return=i,i=a;else{if(i===s)break;for(;i.sibling===null;){if(i.return===null||i.return===s)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Ls(s,i){for(i&=~yd,i&=~Cl,s.suspendedLanes|=i,s.pingedLanes&=~i,s=s.expirationTimes;0<i;){var a=31-Cn(i),d=1<<a;s[a]=-1,i&=~d}}function Qg(s){if((Me&6)!==0)throw Error(n(327));gi();var i=Va(s,0);if((i&1)===0)return Jt(s,ot()),null;var a=Al(s,i);if(s.tag!==0&&a===2){var d=eu(s);d!==0&&(i=d,a=wd(s,d))}if(a===1)throw a=Do,yr(s,0),Ls(s,i),Jt(s,ot()),a;if(a===6)throw Error(n(345));return s.finishedWork=s.current.alternate,s.finishedLanes=i,xr(s,Xt,os),Jt(s,ot()),null}function Sd(s,i){var a=Me;Me|=1;try{return s(i)}finally{Me=a,Me===0&&(mi=ot()+500,il&&Es())}}function gr(s){As!==null&&As.tag===0&&(Me&6)===0&&gi();var i=Me;Me|=1;var a=mn.transition,d=ze;try{if(mn.transition=null,ze=1,s)return s()}finally{ze=d,mn.transition=a,Me=i,(Me&6)===0&&Es()}}function kd(){an=pi.current,Ge(pi)}function yr(s,i){s.finishedWork=null,s.finishedLanes=0;var a=s.timeoutHandle;if(a!==-1&&(s.timeoutHandle=-1,nS(a)),ut!==null)for(a=ut.return;a!==null;){var d=a;switch(Ou(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&sl();break;case 3:di(),Ge(Gt),Ge(Tt),Hu();break;case 5:qu(d);break;case 4:di();break;case 13:Ge(Ze);break;case 19:Ge(Ze);break;case 10:Bu(d.type._context);break;case 22:case 23:kd()}a=a.return}if(yt=s,ut=s=Ds(s.current,null),_t=an=i,ht=0,Do=null,yd=Cl=mr=0,Xt=Io=null,fr!==null){for(i=0;i<fr.length;i++)if(a=fr[i],d=a.interleaved,d!==null){a.interleaved=null;var m=d.next,g=a.pending;if(g!==null){var b=g.next;g.next=m,d.next=b}a.pending=d}fr=null}return s}function Yg(s,i){do{var a=ut;try{if(Fu(),ml.current=vl,gl){for(var d=et.memoizedState;d!==null;){var m=d.queue;m!==null&&(m.pending=null),d=d.next}gl=!1}if(pr=0,gt=ft=et=null,Po=!1,To=0,gd.current=null,a===null||a.return===null){ht=1,Do=i,ut=null;break}e:{var g=s,b=a.return,N=a,R=i;if(i=_t,N.flags|=32768,R!==null&&typeof R=="object"&&typeof R.then=="function"){var V=R,G=N,Y=G.tag;if((G.mode&1)===0&&(Y===0||Y===11||Y===15)){var K=G.alternate;K?(G.updateQueue=K.updateQueue,G.memoizedState=K.memoizedState,G.lanes=K.lanes):(G.updateQueue=null,G.memoizedState=null)}var te=wg(b);if(te!==null){te.flags&=-257,_g(te,b,N,g,i),te.mode&1&&bg(g,V,i),i=te,R=V;var ie=i.updateQueue;if(ie===null){var ue=new Set;ue.add(R),i.updateQueue=ue}else ie.add(R);break e}else{if((i&1)===0){bg(g,V,i),jd();break e}R=Error(n(426))}}else if(Xe&&N.mode&1){var at=wg(b);if(at!==null){(at.flags&65536)===0&&(at.flags|=256),_g(at,b,N,g,i),Iu(fi(R,N));break e}}g=R=fi(R,N),ht!==4&&(ht=2),Io===null?Io=[g]:Io.push(g),g=b;do{switch(g.tag){case 3:g.flags|=65536,i&=-i,g.lanes|=i;var F=xg(g,R,i);Wm(g,F);break e;case 1:N=R;var L=g.type,B=g.stateNode;if((g.flags&128)===0&&(typeof L.getDerivedStateFromError=="function"||B!==null&&typeof B.componentDidCatch=="function"&&(Rs===null||!Rs.has(B)))){g.flags|=65536,i&=-i,g.lanes|=i;var X=vg(g,N,i);Wm(g,X);break e}}g=g.return}while(g!==null)}Zg(a)}catch(de){i=de,ut===a&&a!==null&&(ut=a=a.return);continue}break}while(!0)}function Xg(){var s=jl.current;return jl.current=vl,s===null?vl:s}function jd(){(ht===0||ht===3||ht===2)&&(ht=4),yt===null||(mr&268435455)===0&&(Cl&268435455)===0||Ls(yt,_t)}function Al(s,i){var a=Me;Me|=2;var d=Xg();(yt!==s||_t!==i)&&(os=null,yr(s,i));do try{ES();break}catch(m){Yg(s,m)}while(!0);if(Fu(),Me=a,jl.current=d,ut!==null)throw Error(n(261));return yt=null,_t=0,ht}function ES(){for(;ut!==null;)Jg(ut)}function NS(){for(;ut!==null&&!Z1();)Jg(ut)}function Jg(s){var i=ny(s.alternate,s,an);s.memoizedProps=s.pendingProps,i===null?Zg(s):ut=i,gd.current=null}function Zg(s){var i=s;do{var a=i.alternate;if(s=i.return,(i.flags&32768)===0){if(a=bS(a,i,an),a!==null){ut=a;return}}else{if(a=wS(a,i),a!==null){a.flags&=32767,ut=a;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{ht=6,ut=null;return}}if(i=i.sibling,i!==null){ut=i;return}ut=i=s}while(i!==null);ht===0&&(ht=5)}function xr(s,i,a){var d=ze,m=mn.transition;try{mn.transition=null,ze=1,PS(s,i,a,d)}finally{mn.transition=m,ze=d}return null}function PS(s,i,a,d){do gi();while(As!==null);if((Me&6)!==0)throw Error(n(327));a=s.finishedWork;var m=s.finishedLanes;if(a===null)return null;if(s.finishedWork=null,s.finishedLanes=0,a===s.current)throw Error(n(177));s.callbackNode=null,s.callbackPriority=0;var g=a.lanes|a.childLanes;if(c_(s,g),s===yt&&(ut=yt=null,_t=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Nl||(Nl=!0,sy(Ia,function(){return gi(),null})),g=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||g){g=mn.transition,mn.transition=null;var b=ze;ze=1;var N=Me;Me|=4,gd.current=null,SS(s,a),$g(a,s),Q_(ju),$a=!!ku,ju=ku=null,s.current=a,kS(a),e_(),Me=N,ze=b,mn.transition=g}else s.current=a;if(Nl&&(Nl=!1,As=s,Pl=m),g=s.pendingLanes,g===0&&(Rs=null),s_(a.stateNode),Jt(s,ot()),i!==null)for(d=s.onRecoverableError,a=0;a<i.length;a++)m=i[a],d(m.value,{componentStack:m.stack,digest:m.digest});if(El)throw El=!1,s=vd,vd=null,s;return(Pl&1)!==0&&s.tag!==0&&gi(),g=s.pendingLanes,(g&1)!==0?s===bd?Mo++:(Mo=0,bd=s):Mo=0,Es(),null}function gi(){if(As!==null){var s=Up(Pl),i=mn.transition,a=ze;try{if(mn.transition=null,ze=16>s?16:s,As===null)var d=!1;else{if(s=As,As=null,Pl=0,(Me&6)!==0)throw Error(n(331));var m=Me;for(Me|=4,re=s.current;re!==null;){var g=re,b=g.child;if((re.flags&16)!==0){var N=g.deletions;if(N!==null){for(var R=0;R<N.length;R++){var V=N[R];for(re=V;re!==null;){var G=re;switch(G.tag){case 0:case 11:case 15:Lo(8,G,g)}var Y=G.child;if(Y!==null)Y.return=G,re=Y;else for(;re!==null;){G=re;var K=G.sibling,te=G.return;if(Fg(G),G===V){re=null;break}if(K!==null){K.return=te,re=K;break}re=te}}}var ie=g.alternate;if(ie!==null){var ue=ie.child;if(ue!==null){ie.child=null;do{var at=ue.sibling;ue.sibling=null,ue=at}while(ue!==null)}}re=g}}if((g.subtreeFlags&2064)!==0&&b!==null)b.return=g,re=b;else e:for(;re!==null;){if(g=re,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:Lo(9,g,g.return)}var F=g.sibling;if(F!==null){F.return=g.return,re=F;break e}re=g.return}}var L=s.current;for(re=L;re!==null;){b=re;var B=b.child;if((b.subtreeFlags&2064)!==0&&B!==null)B.return=b,re=B;else e:for(b=L;re!==null;){if(N=re,(N.flags&2048)!==0)try{switch(N.tag){case 0:case 11:case 15:kl(9,N)}}catch(de){nt(N,N.return,de)}if(N===b){re=null;break e}var X=N.sibling;if(X!==null){X.return=N.return,re=X;break e}re=N.return}}
vendor: 4,763 bytes, line 41
41if(Me=m,Es(),Bn&&typeof Bn.onPostCommitFiberRoot=="function")try{Bn.onPostCommitFiberRoot(Ma,s)}catch{}d=!0}return d}finally{ze=a,mn.transition=i}}return!1}function ey(s,i,a){i=fi(a,i),i=xg(s,i,1),s=Ps(s,i,1),i=zt(),s!==null&&(oo(s,1,i),Jt(s,i))}function nt(s,i,a){if(s.tag===3)ey(s,s,a);else for(;i!==null;){if(i.tag===3){ey(i,s,a);break}else if(i.tag===1){var d=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Rs===null||!Rs.has(d))){s=fi(a,s),s=vg(i,s,1),i=Ps(i,s,1),s=zt(),i!==null&&(oo(i,1,s),Jt(i,s));break}}i=i.return}}function TS(s,i,a){var d=s.pingCache;d!==null&&d.delete(i),i=zt(),s.pingedLanes|=s.suspendedLanes&a,yt===s&&(_t&a)===a&&(ht===4||ht===3&&(_t&130023424)===_t&&500>ot()-xd?yr(s,0):yd|=a),Jt(s,i)}function ty(s,i){i===0&&((s.mode&1)===0?i=1:(i=Ba,Ba<<=1,(Ba&130023424)===0&&(Ba=4194304)));var a=zt();s=ss(s,i),s!==null&&(oo(s,i,a),Jt(s,a))}function RS(s){var i=s.memoizedState,a=0;i!==null&&(a=i.retryLane),ty(s,a)}function AS(s,i){var a=0;switch(s.tag){case 13:var d=s.stateNode,m=s.memoizedState;m!==null&&(a=m.retryLane);break;case 19:d=s.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(i),ty(s,a)}var ny;ny=function(s,i,a){if(s!==null)if(s.memoizedProps!==i.pendingProps||Gt.current)Yt=!0;else{if((s.lanes&a)===0&&(i.flags&128)===0)return Yt=!1,vS(s,i,a);Yt=(s.flags&131072)!==0}else Yt=!1,Xe&&(i.flags&1048576)!==0&&Dm(i,al,i.index);switch(i.lanes=0,i.tag){case 2:var d=i.type;_l(s,i),s=i.pendingProps;var m=ri(i,Tt.current);ui(i,a),m=Qu(null,i,d,s,m,a);var g=Yu();return i.flags|=1,typeof m=="object"&&m!==null&&typeof m.render=="function"&&m.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Qt(d)?(g=!0,rl(i)):g=!1,i.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,zu(i),m.updater=bl,i.stateNode=m,m._reactInternals=i,nd(i,d,s,a),i=od(null,i,d,!0,g,a)):(i.tag=0,Xe&&g&&Au(i),Ut(null,i,m,a),i=i.child),i;case 16:d=i.elementType;e:{switch(_l(s,i),s=i.pendingProps,m=d._init,d=m(d._payload),i.type=d,m=i.tag=LS(d),s=Pn(d,s),m){case 0:i=id(null,i,d,s,a);break e;case 1:i=Ng(null,i,d,s,a);break e;case 11:i=Sg(null,i,d,s,a);break e;case 14:i=kg(null,i,d,Pn(d.type,s),a);break e}throw Error(n(306,d,""))}return i;case 0:return d=i.type,m=i.pendingProps,m=i.elementType===d?m:Pn(d,m),id(s,i,d,m,a);case 1:return d=i.type,m=i.pendingProps,m=i.elementType===d?m:Pn(d,m),Ng(s,i,d,m,a);case 3:e:{if(Pg(i),s===null)throw Error(n(387));d=i.pendingProps,g=i.memoizedState,m=g.element,qm(s,i),hl(i,d,null,a);var b=i.memoizedState;if(d=b.element,g.isDehydrated)if(g={element:d,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){m=fi(Error(n(423)),i),i=Tg(s,i,d,a,m);break e}else if(d!==m){m=fi(Error(n(424)),i),i=Tg(s,i,d,a,m);break e}else for(on=ks(i.stateNode.containerInfo.firstChild),rn=i,Xe=!0,Nn=null,a=zm(i,null,d,a),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ai(),d===m){i=is(s,i,a);break e}Ut(s,i,d,a)}i=i.child}return i;case 5:return Km(i),s===null&&Du(i),d=i.type,m=i.pendingProps,g=s!==null?s.memoizedProps:null,b=m.children,Cu(d,m)?b=null:g!==null&&Cu(d,g)&&(i.flags|=32),Eg(s,i),Ut(s,i,b,a),i.child;case 6:return s===null&&Du(i),null;case 13:return Rg(s,i,a);case 4:return $u(i,i.stateNode.containerInfo),d=i.pendingProps,s===null?i.child=li(i,null,d,a):Ut(s,i,d,a),i.child;case 11:return d=i.type,m=i.pendingProps,m=i.elementType===d?m:Pn(d,m),Sg(s,i,d,m,a);case 7:return Ut(s,i,i.pendingProps,a),i.child;case 8:return Ut(s,i,i.pendingProps.children,a),i.child;case 12:return Ut(s,i,i.pendingProps.children,a),i.child;case 10:e:{if(d=i.type._context,m=i.pendingProps,g=i.memoizedProps,b=m.value,qe(ul,d._currentValue),d._currentValue=b,g!==null)if(En(g.value,b)){if(g.children===m.children&&!Gt.current){i=is(s,i,a);break e}}else for(g=i.child,g!==null&&(g.return=i);g!==null;){var N=g.dependencies;if(N!==null){b=g.child;for(var R=N.firstContext;R!==null;){if(R.context===d){if(g.tag===1){R=rs(-1,a&-a),R.tag=2;var V=g.updateQueue;if(V!==null){V=V.shared;var G=V.pending;G===null?R.next=R:(R.next=G.next,G.next=R),V.pending=R}}g.lanes|=a,R=g.alternate,R!==null&&(R.lanes|=a),Vu(g.return,a,i),N.lanes|=a;break}R=R.next}}else if(g.tag===10)b=g.type===i.type?null:g.child;else if(g.tag===18){if(b=g.return,b===null)throw Error(n(341));b.lanes|=a,N=b.alternate,N!==null&&(N.lanes|=a),Vu(b,a,i),b=g.sibling}else b=g.child;if(b!==null)b.return=g;else for(b=g;b!==null;){if(b===i){b=null;break}if(g=b.sibling,g!==null){g.return=b.return,b=g;break}b=b.return}g=b}Ut(s,i,m.children,a),i=i.child}return i;case 9:return m=i.type,d=i.pendingProps.children,ui(i,a),m=hn(m),d=d(m),i.flags|=1,Ut(s,i,d,a),i.child;
vendor: 10,663 bytes, line 41
41case 14:return d=i.type,m=Pn(d,i.pendingProps),m=Pn(d.type,m),kg(s,i,d,m,a);case 15:return jg(s,i,i.type,i.pendingProps,a);case 17:return d=i.type,m=i.pendingProps,m=i.elementType===d?m:Pn(d,m),_l(s,i),i.tag=1,Qt(d)?(s=!0,rl(i)):s=!1,ui(i,a),gg(i,d,m),nd(i,d,m,a),od(null,i,d,!0,s,a);case 19:return Og(s,i,a);case 22:return Cg(s,i,a)}throw Error(n(156,i.tag))};function sy(s,i){return Ip(s,i)}function OS(s,i,a,d){this.tag=s,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gn(s,i,a,d){return new OS(s,i,a,d)}function Cd(s){return s=s.prototype,!(!s||!s.isReactComponent)}function LS(s){if(typeof s=="function")return Cd(s)?1:0;if(s!=null){if(s=s.$$typeof,s===je)return 11;if(s===ge)return 14}return 2}function Ds(s,i){var a=s.alternate;return a===null?(a=gn(s.tag,i,s.key,s.mode),a.elementType=s.elementType,a.type=s.type,a.stateNode=s.stateNode,a.alternate=s,s.alternate=a):(a.pendingProps=i,a.type=s.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=s.flags&14680064,a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,i=s.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},a.sibling=s.sibling,a.index=s.index,a.ref=s.ref,a}function Ol(s,i,a,d,m,g){var b=2;if(d=s,typeof s=="function")Cd(s)&&(b=1);else if(typeof s=="string")b=5;else e:switch(s){case q:return vr(a.children,m,g,i);case M:b=8,m|=8;break;case U:return s=gn(12,a,i,m|2),s.elementType=U,s.lanes=g,s;case Te:return s=gn(13,a,i,m),s.elementType=Te,s.lanes=g,s;case Ce:return s=gn(19,a,i,m),s.elementType=Ce,s.lanes=g,s;case ce:return Ll(a,m,g,i);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case Z:b=10;break e;case pe:b=9;break e;case je:b=11;break e;case ge:b=14;break e;case fe:b=16,d=null;break e}throw Error(n(130,s==null?s:typeof s,""))}return i=gn(b,a,i,m),i.elementType=s,i.type=d,i.lanes=g,i}function vr(s,i,a,d){return s=gn(7,s,d,i),s.lanes=a,s}function Ll(s,i,a,d){return s=gn(22,s,d,i),s.elementType=ce,s.lanes=a,s.stateNode={isHidden:!1},s}function Ed(s,i,a){return s=gn(6,s,null,i),s.lanes=a,s}function Nd(s,i,a){return i=gn(4,s.children!==null?s.children:[],s.key,i),i.lanes=a,i.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},i}function DS(s,i,a,d,m){this.tag=i,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tu(0),this.expirationTimes=tu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tu(0),this.identifierPrefix=d,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null}function Pd(s,i,a,d,m,g,b,N,R){return s=new DS(s,i,a,N,R),i===1?(i=1,g===!0&&(i|=8)):i=0,g=gn(3,null,null,i),s.current=g,g.stateNode=s,g.memoizedState={element:d,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},zu(g),s}function IS(s,i,a){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$,key:d==null?null:""+d,children:s,containerInfo:i,implementation:a}}function ry(s){if(!s)return Cs;s=s._reactInternals;e:{if(ar(s)!==s||s.tag!==1)throw Error(n(170));var i=s;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(Qt(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(n(171))}if(s.tag===1){var a=s.type;if(Qt(a))return Am(s,a,i)}return i}function iy(s,i,a,d,m,g,b,N,R){return s=Pd(a,d,!0,s,m,g,b,N,R),s.context=ry(null),a=s.current,d=zt(),m=Os(a),g=rs(d,m),g.callback=i??null,Ps(a,g,m),s.current.lanes=m,oo(s,m,d),Jt(s,d),s}function Dl(s,i,a,d){var m=i.current,g=zt(),b=Os(m);return a=ry(a),i.context===null?i.context=a:i.pendingContext=a,i=rs(g,b),i.payload={element:s},d=d===void 0?null:d,d!==null&&(i.callback=d),s=Ps(m,i,b),s!==null&&(An(s,m,b,g),fl(s,m,b)),b}function Il(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function oy(s,i){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var a=s.retryLane;s.retryLane=a!==0&&a<i?a:i}}function Td(s,i){oy(s,i),(s=s.alternate)&&oy(s,i)}function MS(){return null}var ay=typeof reportError=="function"?reportError:function(s){console.error(s)};function Rd(s){this._internalRoot=s}Ml.prototype.render=Rd.prototype.render=function(s){var i=this._internalRoot;if(i===null)throw Error(n(409));Dl(s,i,null,null)},Ml.prototype.unmount=Rd.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var i=s.containerInfo;gr(function(){Dl(null,s,null,null)}),i[Zn]=null}};function Ml(s){this._internalRoot=s}Ml.prototype.unstable_scheduleHydration=function(s){if(s){var i=qp();s={blockedOn:null,target:s,priority:i};for(var a=0;a<ws.length&&i!==0&&i<ws[a].priority;a++);ws.splice(a,0,s),a===0&&Kp(s)}};function Ad(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function Fl(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function ly(){}function FS(s,i,a,d,m){if(m){if(typeof d=="function"){var g=d;d=function(){var V=Il(b);g.call(V)}}var b=iy(i,d,s,0,null,!1,!1,"",ly);return s._reactRootContainer=b,s[Zn]=b.current,wo(s.nodeType===8?s.parentNode:s),gr(),b}for(;m=s.lastChild;)s.removeChild(m);if(typeof d=="function"){var N=d;d=function(){var V=Il(R);N.call(V)}}var R=Pd(s,0,!1,null,null,!1,!1,"",ly);return s._reactRootContainer=R,s[Zn]=R.current,wo(s.nodeType===8?s.parentNode:s),gr(function(){Dl(i,R,a,d)}),R}function Bl(s,i,a,d,m){var g=a._reactRootContainer;if(g){var b=g;if(typeof m=="function"){var N=m;m=function(){var R=Il(b);N.call(R)}}Dl(i,b,s,m)}else b=FS(a,i,s,m,d);return Il(b)}zp=function(s){switch(s.tag){case 3:var i=s.stateNode;if(i.current.memoizedState.isDehydrated){var a=io(i.pendingLanes);a!==0&&(nu(i,a|1),Jt(i,ot()),(Me&6)===0&&(mi=ot()+500,Es()))}break;case 13:gr(function(){var d=ss(s,1);if(d!==null){var m=zt();An(d,s,1,m)}}),Td(s,1)}},su=function(s){if(s.tag===13){var i=ss(s,134217728);if(i!==null){var a=zt();An(i,s,134217728,a)}Td(s,134217728)}},$p=function(s){if(s.tag===13){var i=Os(s),a=ss(s,i);if(a!==null){var d=zt();An(a,s,i,d)}Td(s,i)}},qp=function(){return ze},Wp=function(s,i){var a=ze;try{return ze=s,i()}finally{ze=a}},Qc=function(s,i,a){switch(i){case"input":if(Re(s,a),i=a.name,a.type==="radio"&&i!=null){for(a=s;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<a.length;i++){var d=a[i];if(d!==s&&d.form===s.form){var m=nl(d);if(!m)throw Error(n(90));$e(d),Re(d,m)}}}break;case"textarea":bp(s,a);break;case"select":i=a.value,i!=null&&ys(s,!!a.multiple,i,!1)}},Pp=Sd,Tp=gr;var BS={usingClientEntryPoint:!1,Events:[ko,ni,nl,Ep,Np,Sd]},Fo={findFiberByHostInstance:lr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},VS={bundleType:Fo.bundleType,version:Fo.version,rendererPackageName:Fo.rendererPackageName,rendererConfig:Fo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=Lp(s),s===null?null:s.stateNode},findFiberByHostInstance:Fo.findFiberByHostInstance||MS,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 Vl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vl.isDisabled&&Vl.supportsFiber)try{Ma=Vl.inject(VS),Bn=Vl}catch{}}return Zt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=BS,Zt.createPortal=function(s,i){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ad(i))throw Error(n(200));return IS(s,i,null,a)},Zt.createRoot=function(s,i){if(!Ad(s))throw Error(n(299));var a=!1,d="",m=ay;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onRecoverableError!==void 0&&(m=i.onRecoverableError)),i=Pd(s,1,!1,null,null,a,!1,d,m),s[Zn]=i.current,wo(s.nodeType===8?s.parentNode:s),new Rd(i)},Zt.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var i=s._reactInternals;if(i===void 0)throw typeof s.render=="function"?Error(n(188)):(s=Object.keys(s).join(","),Error(n(268,s)));return s=Lp(i),s=s===null?null:s.stateNode,s},Zt.flushSync=function(s){return gr(s)},Zt.hydrate=function(s,i,a){if(!Fl(i))throw Error(n(200));return Bl(null,s,i,!0,a)},Zt.hydrateRoot=function(s,i,a){if(!Ad(s))throw Error(n(405));var d=a!=null&&a.hydratedSources||null,m=!1,g="",b=ay;if(a!=null&&(a.unstable_strictMode===!0&&(m=!0),a.identifierPrefix!==void 0&&(g=a.identifierPrefix),a.onRecoverableError!==void 0&&(b=a.onRecoverableError)),i=iy(i,null,s,1,a??null,m,!1,g,b),s[Zn]=i.current,wo(s),d)for(s=0;s<d.length;s++)a=d[s],m=a._getVersion,m=m(a._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[a,m]:i.mutableSourceEagerHydrationData.push(a,m);return new Ml(i)},Zt.render=function(s,i,a){if(!Fl(i))throw Error(n(200));return Bl(null,s,i,!1,a)},Zt.unmountComponentAtNode=function(s){if(!Fl(s))throw Error(n(40));return s._reactRootContainer?(gr(function(){Bl(null,null,s,!1,function(){s._reactRootContainer=null,s[Zn]=null})}),!0):!1},Zt.unstable_batchedUpdates=Sd,Zt.unstable_renderSubtreeIntoContainer=function(s,i,a,d){if(!Fl(a))throw Error(n(200));if(s==null||s._reactInternals===void 0)throw Error(n(38));return Bl(s,i,a,!1,d)},Zt.version="18.3.1-next-f1338f8080-20240426",Zt}var yy;function jv(){if(yy)return Id.exports;yy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Id.exports=XS(),Id.exports}var xy;function JS(){if(xy)return zl;xy=1;var e=jv();return zl.createRoot=e.createRoot,zl.hydrateRoot=e.hydrateRoot,zl}var ZS=JS();const ek=hh(ZS),tk="modulepreload",nk=function(e){return"/"+e},vy={}
41,Be=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let u=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(x=>({status:"fulfilled",value:x}),x=>({status:"rejected",reason:x}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),h=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));o=u(n.map(p=>{if(p=nk(p),p in vy)return;vy[p]=!0;const y=p.endsWith(".css"),x=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${x}`))return;const v=document.createElement("link");if(v.rel=y?"stylesheet":tk,y||(v.as="script"),v.crossOrigin="",v.href=p,h&&v.setAttribute("nonce",h),document.head.appendChild(v),y)return new Promise((w,E)=>{v.addEventListener("load",w),v.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${p}`)))})}))}function c(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return o.then(u=>{for(const f of u||[])f.status==="rejected"&&c(f.reason);return t().catch(c)})},sk=20,rk=1e6,ds={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let Bd=0;function ik(){return Bd=(Bd+1)%Number.MAX_VALUE,Bd.toString()}const Vd=new Map,by=e=>{if(Vd.has(e))return;const t=setTimeout(()=>{Vd.delete(e),ta({type:ds.REMOVE_TOAST,toastId:e})},rk);Vd.set(e,t)},ok=(e,t)=>{switch(t.type){case ds.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,sk)};case ds.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case ds.DISMISS_TOAST:{const{toastId:n}=t;return n?by(n):e.toasts.forEach(r=>{by(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case ds.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ec=[];let tc={toasts:[]};function ta(e){tc=ok(tc,e),ec.forEach(t=>{t(tc)})}function ak({...e}){const t=ik(),n=o=>ta({type:ds.UPDATE_TOAST,toast:{...o,id:t}}),r=()=>ta({type:ds.DISMISS_TOAST,toastId:t});return ta({type:ds.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function lk(){const[e,t]=k.useState(tc);return k.useEffect(()=>(ec.push(t),()=>{const n=ec.indexOf(t);n>-1&&ec.splice(n,1)}),[e]),{...e,toast:ak,dismiss:n=>ta({type:ds.DISMISS_TOAST,toastId:n})}}function Cv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Cv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ev(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Cv(e))&&(r&&(r+=" "),r+=t);return r}const wy=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_y=Ev,ck=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return _y(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:c}=t,u=Object.keys(o).map(p=>{const y=n==null?void 0:n[p],x=c==null?void 0:c[p];if(y===null)return null;const v=wy(y)||wy(x);return o[p][v]}),f=n&&Object.entries(n).reduce((p,y)=>{let[x,v]=y;return v===void 0||(p[x]=v),p},{}),h=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((p,y)=>{let{class:x,className:v,...w}=y;return Object.entries(w).every(E=>{let[j,S]=E;return Array.isArray(S)?S.includes({...c,...f}[j]):{...c,...f}[j]===S})?[...p,x,v]:p},[]);return _y(e,u,h,n==null?void 0:n.class,n==null?void 0:n.className)};/** 42 * @license lucide-react v0.475.0 - ISC 43 * 44 * This source code is licensed under the ISC license. 45 * See the LICENSE file in the root directory of this source tree. 46 */const uk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Nv=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 47 * @license lucide-react v0.475.0 - ISC 48 * 49 * This source code is licensed under the ISC license. 50 * See the LICENSE file in the root directory of this source tree. 51 */var dk={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"};/** 52 * @license lucide-react v0.475.0 - ISC 53 * 54 * This source code is licensed under the ISC license. 55 * See the LICENSE file in the root directory of this source tree. 56 */const fk=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:c,iconNode:u,...f},h)=>k.createElement("svg",{ref:h,...dk,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Nv("lucide",o),...f},[...u.map(([p,y])=>
56k.createElement(p,y)),...Array.isArray(c)?c:[c]]));/** 57 * @license lucide-react v0.475.0 - ISC 58 * 59 * This source code is licensed under the ISC license. 60 * See the LICENSE file in the root directory of this source tree. 61 */const Ie=(e,t)=>{const n=k.forwardRef(({className:r,...o},c)=>k.createElement(fk,{ref:c,iconNode:t,className:Nv(`lucide-${uk(e)}`,r),...o}));return n.displayName=`${e}`,n};/** 62 * @license lucide-react v0.475.0 - ISC 63 * 64 * This source code is licensed under the ISC license. 65 * See the LICENSE file in the root directory of this source tree. 66 */const hk=[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]],pk=Ie("ArrowLeftRight",hk);/** 67 * @license lucide-react v0.475.0 - ISC 68 * 69 * This source code is licensed under the ISC license. 70 * See the LICENSE file in the root directory of this source tree. 71 */const mk=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],gk=Ie("ArrowUpRight",mk);/** 72 * @license lucide-react v0.475.0 - ISC 73 * 74 * This source code is licensed under the ISC license. 75 * See the LICENSE file in the root directory of this source tree. 76 */const yk=[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M17 14h-6",key:"bkmgh3"}],["path",{d:"M13 18H7",key:"bb0bb7"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 18h.01",key:"1bdyru"}]],xk=Ie("CalendarRange",yk);/** 77 * @license lucide-react v0.475.0 - ISC 78 * 79 * This source code is licensed under the ISC license. 80 * See the LICENSE file in the root directory of this source tree. 81 */const vk=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],bk=Ie("ChartColumn",vk);/** 82 * @license lucide-react v0.475.0 - ISC 83 * 84 * This source code is licensed under the ISC license. 85 * See the LICENSE file in the root directory of this source tree. 86 */const wk=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],tr=Ie("Check",wk);/** 87 * @license lucide-react v0.475.0 - ISC 88 * 89 * This source code is licensed under the ISC license. 90 * See the LICENSE file in the root directory of this source tree. 91 */const _k=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Pv=Ie("CreditCard",_k);/** 92 * @license lucide-react v0.475.0 - ISC 93 * 94 * This source code is licensed under the ISC license. 95 * See the LICENSE file in the root directory of this source tree. 96 */const Sk=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],kk=Ie("Database",Sk);/** 97 * @license lucide-react v0.475.0 - ISC 98 * 99 * This source code is licensed under the ISC license. 100 * See the LICENSE file in the root directory of this source tree. 101 */const jk=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],Ck=Ie("Download",jk);/** 102 * @license lucide-react v0.475.0 - ISC 103 * 104 * This source code is licensed under the ISC license. 105 * See the LICENSE file in the root directory of this source tree. 106 */const Ek=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Nk=Ie("Eye",Ek);/** 107 * @license lucide-react v0.475.0 - ISC 108 * 109 * This source code is licensed under the ISC license. 110 * See the LICENSE file in the root directory of this source tree. 111 */const Pk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Tk=Ie("Info",Pk);/** 112 * @license lucide-react v0.475.0 - ISC 113 * 114 * This source code is licensed under the ISC license. 115 * See the LICENSE file in the root directory of this source tree. 116 */const Rk=[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]],Ak=Ie("ListOrdered",Rk);/** 117 * @license lucide-react v0.475.0 - ISC 118 * 119 * This source code is licensed under the ISC license. 120 * See the LICENSE file in the root directory of this source tree. 121 */const Ok=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],hc=Ie("LoaderCircle",Ok);/** 122 * @license lucide-react v0.475.0 - ISC 123 * 124 * This source code is licensed under the ISC license. 125 * See the LICENSE file in the root directory of this source tree. 126 */const Lk=[["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"}]],Tv=Ie("Lock",Lk);/** 127 * @license lucide-react v0.475.0 - ISC 128 * 129 * This source code is licensed under the ISC license. 130 * See the LICENSE file in the root directory of this source tree. 131 */const Dk=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],Nc=Ie("LogOut",Dk);/** 132 * @license lucide-react v0.475.0 - ISC 133 * 134 * This source code is licensed under the ISC license. 135 * See the LICENSE file in the root directory of this source tree. 136 */const Ik=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],Mk=Ie("Menu",Ik);/** 137 * @license lucide-react v0.475.0 - ISC 138 * 139 * This source code is licensed under the ISC license. 140 * See the LICENSE file in the root directory of this source tree. 141 */const Fk=[["path",{d:"M5 12h14",key:"1ays0h"}]],Bk=Ie("Minus",Fk);/** 142 * @license lucide-react v0.475.0 - ISC 143 * 144 * This source code is licensed under the ISC license. 145 * See the LICENSE file in the root directory of this source tree. 146 */const Vk=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Uk=Ie("Package",Vk);/** 147 * @license lucide-react v0.475.0 - ISC 148 * 149 * This source code is licensed under the ISC license. 150 * See the LICENSE file in the root directory of this source tree. 151 */const zk=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],$k=Ie("Pencil",zk);/** 152 * @license lucide-react v0.475.0 - ISC 153 * 154 * This source code is licensed under the ISC license. 155 * See the LICENSE file in the root directory of this source tree. 156 */const qk=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}
156]],Br=Ie("Plus",qk);/** 157 * @license lucide-react v0.475.0 - ISC 158 * 159 * This source code is licensed under the ISC license. 160 * See the LICENSE file in the root directory of this source tree. 161 */const Wk=[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]],Hk=Ie("Radio",Wk);/** 162 * @license lucide-react v0.475.0 - ISC 163 * 164 * This source code is licensed under the ISC license. 165 * See the LICENSE file in the root directory of this source tree. 166 */const Kk=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Pc=Ie("RefreshCw",Kk);/** 167 * @license lucide-react v0.475.0 - ISC 168 * 169 * This source code is licensed under the ISC license. 170 * See the LICENSE file in the root directory of this source tree. 171 */const Gk=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],bf=Ie("RotateCcw",Gk);/** 172 * @license lucide-react v0.475.0 - ISC 173 * 174 * This source code is licensed under the ISC license. 175 * See the LICENSE file in the root directory of this source tree. 176 */const Qk=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Sy=Ie("Save",Qk);/** 177 * @license lucide-react v0.475.0 - ISC 178 * 179 * This source code is licensed under the ISC license. 180 * See the LICENSE file in the root directory of this source tree. 181 */const Yk=[["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"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Wi=Ie("ShieldCheck",Yk);/** 182 * @license lucide-react v0.475.0 - ISC 183 * 184 * This source code is licensed under the ISC license. 185 * See the LICENSE file in the root directory of this source tree. 186 */const Xk=[["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"}]],Rv=Ie("Shield",Xk);/** 187 * @license lucide-react v0.475.0 - ISC 188 * 189 * This source code is licensed under the ISC license. 190 * See the LICENSE file in the root directory of this source tree. 191 */const Jk=[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]],Av=Ie("ShoppingBag",Jk);/** 192 * @license lucide-react v0.475.0 - ISC 193 * 194 * This source code is licensed under the ISC license. 195 * See the LICENSE file in the root directory of this source tree. 196 */const Zk=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],ej=Ie("ShoppingCart",Zk);/** 197 * @license lucide-react v0.475.0 - ISC 198 * 199 * This source code is licensed under the ISC license. 200 * See the LICENSE file in the root directory of this source tree. 201 */const tj=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Tc=Ie("Sparkles",tj);/** 202 * @license lucide-react v0.475.0 - ISC 203 * 204 * This source code is licensed under the ISC license. 205 * See the LICENSE file in the root directory of this source tree. 206 */const nj=[["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"}]],Ov=Ie("Star",nj);/** 207 * @license lucide-react v0.475.0 - ISC 208 * 209 * This source code is licensed under the ISC license. 210 * See the LICENSE file in the root directory of this source tree. 211 */const sj=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],Lv=Ie("TrendingUp",sj);/** 212 * @license lucide-react v0.475.0 - ISC 213 * 214 * This source code is licensed under the ISC license. 215 * See the LICENSE file in the root directory of this source tree. 216 */const rj=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ij=Ie("TriangleAlert",rj);/** 217 * @license lucide-react v0.475.0 - ISC 218 * 219 * This source code is licensed under the ISC license. 220 * See the LICENSE file in the root directory of this source tree. 221 */const oj=[["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"}]],aj=Ie("Users",oj);/** 222 * @license lucide-react v0.475.0 - ISC 223 * 224 * This source code is licensed under the ISC license. 225 * See the LICENSE file in the root directory of this source tree. 226 */const lj=[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]],mh=Ie("Wallet",lj);/** 227 * @license lucide-react v0.475.0 - ISC 228 * 229 * This source code is licensed under the ISC license. 230 * See the LICENSE file in the root directory of this source tree. 231 */const cj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 6,183 bytes, line 231
231],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],kn=Ie("X",cj),uj=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},dj=(e,t)=>({classGroupId:e,validator:t}),Dv=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),pc="-",ky=[],fj="arbitrary..",hj=e=>{const t=mj(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return pj(u);const f=u.split(pc),h=f[0]===""&&f.length>1?1:0;return Iv(f,h,t)},getConflictingClassGroupIds:(u,f)=>{if(f){const h=r[u],p=n[u];return h?p?uj(p,h):h:p||ky}return n[u]||ky}}},Iv=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],c=n.nextPart.get(o);if(c){const p=Iv(e,t+1,c);if(p)return p}const u=n.validators;if(u===null)return;const f=t===0?e.join(pc):e.slice(t).join(pc),h=u.length;for(let p=0;p<h;p++){const y=u[p];if(y.validator(f))return y.classGroupId}},pj=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?fj+r:void 0})(),mj=e=>{const{theme:t,classGroups:n}=e;return gj(n,t)},gj=(e,t)=>{const n=Dv();for(const r in e){const o=e[r];gh(o,n,r,t)}return n},gh=(e,t,n,r)=>{const o=e.length;for(let c=0;c<o;c++){const u=e[c];yj(u,t,n,r)}},yj=(e,t,n,r)=>{if(typeof e=="string"){xj(e,t,n);return}if(typeof e=="function"){vj(e,t,n,r);return}bj(e,t,n,r)},xj=(e,t,n)=>{const r=e===""?t:Mv(t,e);r.classGroupId=n},vj=(e,t,n,r)=>{if(wj(e)){gh(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(dj(n,e))},bj=(e,t,n,r)=>{const o=Object.entries(e),c=o.length;for(let u=0;u<c;u++){const[f,h]=o[u];gh(h,Mv(t,f),n,r)}},Mv=(e,t)=>{let n=e;const r=t.split(pc),o=r.length;for(let c=0;c<o;c++){const u=r[c];let f=n.nextPart.get(u);f||(f=Dv(),n.nextPart.set(u,f)),n=f}return n},wj=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,_j=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(c,u)=>{n[c]=u,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(c){let u=n[c];if(u!==void 0)return u;if((u=r[c])!==void 0)return o(c,u),u},set(c,u){c in n?n[c]=u:o(c,u)}}},wf="!",jy=":",Sj=[],Cy=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),kj=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const c=[];let u=0,f=0,h=0,p;const y=o.length;for(let j=0;j<y;j++){const S=o[j];if(u===0&&f===0){if(S===jy){c.push(o.slice(h,j)),h=j+1;continue}if(S==="/"){p=j;continue}}S==="["?u++:S==="]"?u--:S==="("?f++:S===")"&&f--}const x=c.length===0?o:o.slice(h);let v=x,w=!1;x.endsWith(wf)?(v=x.slice(0,-1),w=!0):x.startsWith(wf)&&(v=x.slice(1),w=!0);const E=p&&p>h?p-h:void 0;return Cy(c,w,v,E)};if(t){const o=t+jy,c=r;r=u=>u.startsWith(o)?c(u.slice(o.length)):Cy(Sj,!1,u,void 0,!0)}if(n){const o=r;r=c=>n({className:c,parseClassName:o})}return r},jj=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let c=0;c<n.length;c++){const u=n[c],f=u[0]==="[",h=t.has(u);f||h?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(u)):o.push(u)}return o.length>0&&(o.sort(),r.push(...o)),r}},Cj=e=>({cache:_j(e.cacheSize),parseClassName:kj(e),sortModifiers:jj(e),...hj(e)}),Ej=/\s+/,Nj=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:c}=t,u=[],f=e.trim().split(Ej);let h="";for(let p=f.length-1;p>=0;p-=1){const y=f[p],{isExternal:x,modifiers:v,hasImportantModifier:w,baseClassName:E,maybePostfixModifierPosition:j}=n(y);if(x){h=y+(h.length>0?" "+h:h);continue}let S=!!j,_=r(S?E.substring(0,j):E);if(!_){if(!S){h=y+(h.length>0?" "+h:h);continue}if(_=r(E),!_){h=y+(h.length>0?" "+h:h);continue}S=!1}const P=v.length===0?"":v.length===1?v[0]:c(v).join(":"),C=w?P+wf:P,T=C+_;if(u.indexOf(T)>-1)continue;u.push(T);const I=o(_,S);for(let $=0;$<I.length;++$){const q=I[$];u.push(C+q)}h=y+(h.length>0?" "+h:h)}return h},Pj=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=Fv(n))&&(o&&(o+=" "),o+=r);return o},Fv=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Fv(e[r]))&&(n&&(n+=" "),n+=t);return n},Tj=(e,...t)=>{let n,r,o,c;const u=h=>{const p=t.reduce((y,x)=>x(y),e());return n=Cj(p),r=n.cache.get,o=n.cache.set,c=f,f(h)},f=h=>{const p=r(h);if(p)return p;const y=Nj(h,n);return o(h,y),y};return c=u,(...h)=>c(Pj(...h))},Rj=[],pt=e=>{const t=n=>n[e]||Rj;return t.isThemeGetter=!0,t},Bv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Vv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Aj=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Oj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Lj=/\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$/,Dj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ij=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Mj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ms=e=>Aj.test(e),Pe=e=>!!e&&!Number.isNaN(Number(e)),Fs=e=>!!e&&Number.isInteger(Number(e)),Ud=e=>e.endsWith("%")&&Pe(e.slice(0,-1)),as=e=>Oj.test(e),Uv=()=>!0,Fj=e=>Lj.test(e)&&!Dj.test(e),yh=()=>!1,Bj=e=>Ij.test(e),Vj=e=>Mj.test(e),Uj=e=>!oe(e)&&!ae(e),zj=e=>rr(e,qv,yh),oe=e=>Bv.test(e),br=e=>rr(e,Wv,Fj),Ey=e=>rr(e,Yj,Pe),$j=e=>rr(e,Kv,Uv),qj=e=>rr(e,Hv,yh),Ny=e=>rr(e,zv,yh),Wj=e=>rr(e,$v,Vj),$l=e=>rr(e,Gv,Bj),ae=e=>Vv.test(e),Vo=e=>Wr(e,Wv),Hj=e=>Wr(e,Hv),Py=e=>Wr(e,zv),Kj=e=>Wr(e,qv),Gj=e=>Wr(e,$v),ql=e=>Wr(e,Gv,!0),Qj=e=>Wr(e,Kv,!0),rr=(e,t,n)=>{const r=Bv.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Wr=(e,t,n=!1)=>{const r=Vv.exec(e);return r?r[1]?t(r[1]):n:!1},zv=e=>e==="position"||e==="percentage",$v=e=>e==="image"||e==="url",qv=e=>e==="length"||e==="size"||e==="bg-size",Wv=e=>e==="length",Yj=e=>e==="number",Hv=e=>e==="family-name",Kv=e=>e==="number"||e==="weight",Gv=e=>e==="shadow",Xj=()=>{const e=pt("color"),t=pt("font"),n=pt("text"),r=pt("font-weight"),o=pt("tracking"),c=pt("leading"),u=pt("breakpoint"),f=pt("container"),h=pt("spacing"),p=pt("radius"),y=pt("shadow"),x=pt("inset-shadow"),v=pt("text-shadow"),w=pt("drop-shadow"),E=pt("blur"),j=pt("perspective"),S=pt("aspect"),_=pt
vendor: 4,122 bytes, line 231
231("ease"),P=pt("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...T(),ae,oe],$=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],M=()=>[ae,oe,h],U=()=>[Ms,"full","auto",...M()],Z=()=>[Fs,"none","subgrid",ae,oe],pe=()=>["auto",{span:["full",Fs,ae,oe]},Fs,ae,oe],je=()=>[Fs,"auto",ae,oe],Te=()=>["auto","min","max","fr",ae,oe],Ce=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ge=()=>["start","end","center","stretch","center-safe","end-safe"],fe=()=>["auto",...M()],ce=()=>[Ms,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],Q=()=>[Ms,"screen","full","dvw","lvw","svw","min","max","fit",...M()],se=()=>[Ms,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],z=()=>[e,ae,oe],O=()=>[...T(),Py,Ny,{position:[ae,oe]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],me=()=>["auto","cover","contain",Kj,zj,{size:[ae,oe]}],ve=()=>[Ud,Vo,br],he=()=>["","none","full",p,ae,oe],J=()=>["",Pe,Vo,br],we=()=>["solid","dashed","dotted","double"],Ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_e=()=>[Pe,Ud,Py,Ny],Je=()=>["","none",E,ae,oe],Pt=()=>["none",Pe,ae,oe],$e=()=>["none",Pe,ae,oe],Vt=()=>[Pe,ae,oe],Wt=()=>[Ms,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[as],breakpoint:[as],color:[Uv],container:[as],"drop-shadow":[as],ease:["in","out","in-out"],font:[Uj],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[as],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[as],shadow:[as],spacing:["px",Pe],text:[as],"text-shadow":[as],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ms,oe,ae,S]}],container:["container"],columns:[{columns:[Pe,oe,ae,f]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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"],sr:["sr-only","not-sr-only"],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:I()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:U()}],"inset-x":[{"inset-x":U()}],"inset-y":[{"inset-y":U()}],start:[{"inset-s":U(),start:U()}],end:[{"inset-e":U(),end:U()}],"inset-bs":[{"inset-bs":U()}],"inset-be":[{"inset-be":U()}],top:[{top:U()}],right:[{right:U()}],bottom:[{bottom:U()}],left:[{left:U()}],visibility:["visible","invisible","collapse"],z:[{z:[Fs,"auto",ae,oe]}],basis:[{basis:[Ms,"full","auto",f,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Pe,Ms,"auto","initial","none",oe]}],grow:[{grow:["",Pe,ae,oe]}],shrink:[{shrink:["",Pe,ae,oe]}],order:[{order:[Fs,"first","last","none",ae,oe]}],"grid-cols":[{"grid-cols":Z()}],"col-start-end":[{col:pe()}],"col-start":[{"col-start":je()}
vendor: 4,232 bytes, line 231
231],"col-end":[{"col-end":je()}],"grid-rows":[{"grid-rows":Z()}],"row-start-end":[{row:pe()}],"row-start":[{"row-start":je()}],"row-end":[{"row-end":je()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Te()}],"auto-rows":[{"auto-rows":Te()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...Ce(),"normal"]}],"justify-items":[{"justify-items":[...ge(),"normal"]}],"justify-self":[{"justify-self":["auto",...ge()]}],"align-content":[{content:["normal",...Ce()]}],"align-items":[{items:[...ge(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ge(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ce()}],"place-items":[{"place-items":[...ge(),"baseline"]}],"place-self":[{"place-self":["auto",...ge()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pbs:[{pbs:M()}],pbe:[{pbe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:fe()}],mx:[{mx:fe()}],my:[{my:fe()}],ms:[{ms:fe()}],me:[{me:fe()}],mbs:[{mbs:fe()}],mbe:[{mbe:fe()}],mt:[{mt:fe()}],mr:[{mr:fe()}],mb:[{mb:fe()}],ml:[{ml:fe()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:ce()}],"inline-size":[{inline:["auto",...Q()]}],"min-inline-size":[{"min-inline":["auto",...Q()]}],"max-inline-size":[{"max-inline":["none",...Q()]}],"block-size":[{block:["auto",...se()]}],"min-block-size":[{"min-block":["auto",...se()]}],"max-block-size":[{"max-block":["none",...se()]}],w:[{w:[f,"screen",...ce()]}],"min-w":[{"min-w":[f,"screen","none",...ce()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...ce()]}],h:[{h:["screen","lh",...ce()]}],"min-h":[{"min-h":["screen","lh","none",...ce()]}],"max-h":[{"max-h":["screen","lh",...ce()]}],"font-size":[{text:["base",n,Vo,br]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Qj,$j]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ud,oe]}],"font-family":[{font:[Hj,qj,t]}],"font-features":[{"font-features":[oe]}],"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:[o,ae,oe]}],"line-clamp":[{"line-clamp":[Pe,"none",ae,Ey]}],leading:[{leading:[c,...M()]}],"list-image":[{"list-image":["none",ae,oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ae,oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...we(),"wavy"]}],"text-decoration-thickness":[{decoration:[Pe,"from-font","auto",ae,br]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[Pe,"auto",ae,oe]}],"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",ae,oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ae,oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:me()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fs,ae,oe],radial:["",ae,oe],conic:[Fs,ae,oe]},Gj,Wj]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:ve()}
vendor: 7,388 bytes, line 231
231],"gradient-via-pos":[{via:ve()}],"gradient-to-pos":[{to:ve()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...we(),"hidden","none"]}],"divide-style":[{divide:[...we(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-bs":[{"border-bs":z()}],"border-color-be":[{"border-be":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...we(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Pe,ae,oe]}],"outline-w":[{outline:["",Pe,Vo,br]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",y,ql,$l]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",x,ql,$l]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[Pe,br]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",v,ql,$l]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[Pe,ae,oe]}],"mix-blend":[{"mix-blend":[...Ne(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ne()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":_e()}],"mask-image-linear-to-pos":[{"mask-linear-to":_e()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":_e()}],"mask-image-t-to-pos":[{"mask-t-to":_e()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":_e()}],"mask-image-r-to-pos":[{"mask-r-to":_e()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":_e()}],"mask-image-b-to-pos":[{"mask-b-to":_e()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":_e()}],"mask-image-l-to-pos":[{"mask-l-to":_e()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":_e()}],"mask-image-x-to-pos":[{"mask-x-to":_e()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":_e()}],"mask-image-y-to-pos":[{"mask-y-to":_e()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[ae,oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":_e()}],"mask-image-radial-to-pos":[{"mask-radial-to":_e()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[Pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":_e()}],"mask-image-conic-to-pos":[{"mask-conic-to":_e()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:me()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ae,oe]}],filter:[{filter:["","none",ae,oe]}],blur:[{blur:Je()}],brightness:[{brightness:[Pe,ae,oe]}],contrast:[{contrast:[Pe,ae,oe]}],"drop-shadow":[{"drop-shadow":["","none",w,ql,$l]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",Pe,ae,oe]}],"hue-rotate":[{"hue-rotate":[Pe,ae,oe]}],invert:[{invert:["",Pe,ae,oe]}],saturate:[{saturate:[Pe,ae,oe]}],sepia:[{sepia:["",Pe,ae,oe]}],"backdrop-filter":[{"backdrop-filter":["","none",ae,oe]}],"backdrop-blur":[{"backdrop-blur":Je()}],"backdrop-brightness":[{"backdrop-brightness":[Pe,ae,oe]}],"backdrop-contrast":[{"backdrop-contrast":[Pe,ae,oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Pe,ae,oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pe,ae,oe]}],"backdrop-invert":[{"backdrop-invert":["",Pe,ae,oe]}],"backdrop-opacity":[{"backdrop-opacity":[Pe,ae,oe]}],"backdrop-saturate":[{"backdrop-saturate":[Pe,ae,oe]}],"backdrop-sepia":[{"backdrop-sepia":["",Pe,ae,oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ae,oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Pe,"initial",ae,oe]}],ease:[{ease:["linear","initial",_,ae,oe]}],delay:[{delay:[Pe,ae,oe]}],animate:[{animate:["none",P,ae,oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,ae,oe]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:Pt()}],"rotate-x":[{"rotate-x":Pt()}],"rotate-y":[{"rotate-y":Pt()}],"rotate-z":[{"rotate-z":Pt()}],scale:[{scale:$e()}],"scale-x":[{"scale-x":$e()}],"scale-y":[{"scale-y":$e()}],"scale-z":[{"scale-z":$e()}],"scale-3d":["scale-3d"],skew:[{skew:Vt()}],"skew-x":[{"skew-x":Vt()}],"skew-y":[{"skew-y":Vt()}],transform:[{transform:[ae,oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Wt()}],"translate-x":[{"translate-x":Wt()}],"translate-y":[{"translate-y":Wt()}],"translate-z":[{"translate-z":Wt()}],"translate-none":["translate-none"],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}
vendor: 6,955 bytes, line 231
231],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",ae,oe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],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-mbs":[{"scroll-mbs":M()}],"scroll-mbe":[{"scroll-mbe":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-pbs":[{"scroll-pbs":M()}],"scroll-pbe":[{"scroll-pbe":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",ae,oe]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[Pe,Vo,br,Ey]}],stroke:[{stroke:["none",...z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Jj=Tj(Xj);function _a(...e){return Jj(Ev(e))}const Qv=k.forwardRef(({...e},t)=>l.jsx("div",{ref:t,className:"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}));Qv.displayName="ToastProvider";const Yv=k.forwardRef(({...e},t)=>l.jsx("div",{ref:t,className:"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}));Yv.displayName="ToastViewport";const Zj=ck("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"}}),Xv=k.forwardRef(({className:e,variant:t,...n},r)=>l.jsx("div",{ref:r,className:_a(Zj({variant:t}),e),...n}));Xv.displayName="Toast";const e2=k.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:_a("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));e2.displayName="ToastAction";const Jv=k.forwardRef(({className:e,...t},n)=>l.jsx("button",{ref:n,className:_a("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 4,313 bytes, line 231
231/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:l.jsx(kn,{className:"h-4 w-4"})}));Jv.displayName="ToastClose";const Zv=k.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:_a("text-sm font-semibold",e),...t}));Zv.displayName="ToastTitle";const eb=k.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:_a("text-sm opacity-90",e),...t}));eb.displayName="ToastDescription";function t2(){const{toasts:e}=lk();return l.jsxs(Qv,{children:[e.map(function({id:t,title:n,description:r,action:o,...c}){return l.jsxs(Xv,{...c,children:[l.jsxs("div",{className:"grid gap-1",children:[n&&l.jsx(Zv,{children:n}),r&&l.jsx(eb,{children:r})]}),o,l.jsx(Jv,{})]},t)}),l.jsx(Yv,{})]})}var Sa=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(){}},n2={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Us,fh,pv,s2=(pv=class{constructor(){be(this,Us,n2);be(this,fh,!1)}setTimeoutProvider(e){ne(this,Us,e)}setTimeout(e,t){return A(this,Us).setTimeout(e,t)}clearTimeout(e){A(this,Us).clearTimeout(e)}setInterval(e,t){return A(this,Us).setInterval(e,t)}clearInterval(e){A(this,Us).clearInterval(e)}},Us=new WeakMap,fh=new WeakMap,pv),Er=new s2;function r2(e){setTimeout(e,0)}var zr=typeof window>"u"||"Deno"in globalThis;function tn(){}function i2(e,t){return typeof e=="function"?e(t):e}function _f(e){return typeof e=="number"&&e>=0&&e!==1/0}function tb(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Js(e,t){return typeof e=="function"?e(t):e}function _n(e,t){return typeof e=="function"?e(t):e}function Ty(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:c,queryKey:u,stale:f}=e;if(u){if(r){if(t.queryHash!==xh(u,t.options))return!1}else if(!la(t.queryKey,u))return!1}if(n!=="all"){const h=t.isActive();if(n==="active"&&!h||n==="inactive"&&h)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||o&&o!==t.state.fetchStatus||c&&!c(t))}function Ry(e,t){const{exact:n,status:r,predicate:o,mutationKey:c}=e;if(c){if(!t.options.mutationKey)return!1;if(n){if(aa(t.options.mutationKey)!==aa(c))return!1}else if(!la(t.options.mutationKey,c))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function xh(e,t){return((t==null?void 0:t.queryKeyHashFn)||aa)(e)}function aa(e){return JSON.stringify(e,(t,n)=>kf(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function la(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>la(e[n],t[n])):!1}var o2=Object.prototype.hasOwnProperty;function nb(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Ay(e)&&Ay(t);if(!r&&!(kf(e)&&kf(t)))return t;const c=(r?e:Object.keys(e)).length,u=r?t:Object.keys(t),f=u.length,h=r?new Array(f):{};let p=0;for(let y=0;y<f;y++){const x=r?y:u[y],v=e[x],w=t[x];if(v===w){h[x]=v,(r?y<c:o2.call(e,x))&&p++;continue}if(v===null||w===null||typeof v!="object"||typeof w!="object"){h[x]=w;continue}const E=nb(v,w,n+1);h[x]=E,E===v&&p++}return c===f&&p===c?e:h}function Sf(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ay(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function kf(e){if(!Oy(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Oy(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Oy(e){return Object.prototype.toString.call(e)==="[object Object]"}function a2(e){return new Promise(t=>{Er.setTimeout(t,e)})}function jf(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?nb(e,t):t}function l2(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function c2(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var vh=Symbol();
vendor: 7,913 bytes, line 231
231function sb(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===vh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function rb(e,t){return typeof e=="function"?e(...t):!!e}function u2(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var Tr,zs,Ni,mv,d2=(mv=class extends Sa{constructor(){super();be(this,Tr);be(this,zs);be(this,Ni);ne(this,Ni,t=>{if(!zr&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){A(this,zs)||this.setEventListener(A(this,Ni))}onUnsubscribe(){var t;this.hasListeners()||((t=A(this,zs))==null||t.call(this),ne(this,zs,void 0))}setEventListener(t){var n;ne(this,Ni,t),(n=A(this,zs))==null||n.call(this),ne(this,zs,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){A(this,Tr)!==t&&(ne(this,Tr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof A(this,Tr)=="boolean"?A(this,Tr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Tr=new WeakMap,zs=new WeakMap,Ni=new WeakMap,mv),bh=new d2;function Cf(){let e,t;const n=new Promise((o,c)=>{e=o,t=c});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var f2=r2;function h2(){let e=[],t=0,n=f=>{f()},r=f=>{f()},o=f2;const c=f=>{t?e.push(f):o(()=>{n(f)})},u=()=>{const f=e;e=[],f.length&&o(()=>{r(()=>{f.forEach(h=>{n(h)})})})};return{batch:f=>{let h;t++;try{h=f()}finally{t--,t||u()}return h},batchCalls:f=>(...h)=>{c(()=>{f(...h)})},schedule:c,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{r=f},setScheduler:f=>{o=f}}}var Et=h2(),Pi,$s,Ti,gv,p2=(gv=class extends Sa{constructor(){super();be(this,Pi,!0);be(this,$s);be(this,Ti);ne(this,Ti,t=>{if(!zr&&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(){A(this,$s)||this.setEventListener(A(this,Ti))}onUnsubscribe(){var t;this.hasListeners()||((t=A(this,$s))==null||t.call(this),ne(this,$s,void 0))}setEventListener(t){var n;ne(this,Ti,t),(n=A(this,$s))==null||n.call(this),ne(this,$s,t(this.setOnline.bind(this)))}setOnline(t){A(this,Pi)!==t&&(ne(this,Pi,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return A(this,Pi)}},Pi=new WeakMap,$s=new WeakMap,Ti=new WeakMap,gv),mc=new p2;function m2(e){return Math.min(1e3*2**e,3e4)}function ib(e){return(e??"online")==="online"?mc.isOnline():!0}var Ef=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ob(e){let t=!1,n=0,r;const o=Cf(),c=()=>o.status!=="pending",u=j=>{var S;if(!c()){const _=new Ef(j);v(_),(S=e.onCancel)==null||S.call(e,_)}},f=()=>{t=!0},h=()=>{t=!1},p=()=>bh.isFocused()&&(e.networkMode==="always"||mc.isOnline())&&e.canRun(),y=()=>ib(e.networkMode)&&e.canRun(),x=j=>{c()||(r==null||r(),o.resolve(j))},v=j=>{c()||(r==null||r(),o.reject(j))},w=()=>new Promise(j=>{var S;r=_=>{(c()||p())&&j(_)},(S=e.onPause)==null||S.call(e)}).then(()=>{var j;r=void 0,c()||(j=e.onContinue)==null||j.call(e)}),E=()=>{if(c())return;let j;const S=n===0?e.initialPromise:void 0;try{j=S??e.fn()}catch(_){j=Promise.reject(_)}Promise.resolve(j).then(x).catch(_=>{var $;if(c())return;const P=e.retry??(zr?0:3),C=e.retryDelay??m2,T=typeof C=="function"?C(n,_):C,I=P===!0||typeof P=="number"&&n<P||typeof P=="function"&&P(n,_);if(t||!I){v(_);return}n++,($=e.onFail)==null||$.call(e,n,_),a2(T).then(()=>p()?void 0:w()).then(()=>{t?v(_):E()})})};return{promise:o,status:()=>o.status,cancel:u,continue:()=>(r==null||r(),o),cancelRetry:f,continueRetry:h,canStart:y,start:()=>(y()?E():w().then(E),o)}}var Rr,yv,ab=(yv=class{constructor(){be(this,Rr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_f(this.gcTime)&&ne(this,Rr,Er.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(zr?1/0:300*1e3))}clearGcTimeout(){A(this,Rr)&&(Er.clearTimeout(A(this,Rr)),ne(this,Rr,void 0))}},Rr=new WeakMap,yv),Ar,Ri,wn,Or,vt,ya,Lr,Dn,ls,xv,g2=(xv=class extends ab{constructor(t){super();be(this,Dn);be(this,Ar);be(this,Ri);be(this,wn);be(this,Or);be(this,vt);be(this,ya);be(this,Lr);ne(this,Lr,!1),ne(this,ya,t.defaultOptions),this.setOptions(t.options),this.observers=[],ne(this,Or,t.client),ne(this,wn,A(this,Or).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ne(this,Ar,Dy(this.options)),this.state=t.state??A(this,Ar),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=A(this,vt))==null?void 0:t.promise}setOptions(t){if(this.options={...A(this,ya),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Dy(this.options);n.data!==void 0&&(this.setState(Ly(n.data,n.dataUpdatedAt)),ne(this,Ar,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&A(this,wn).remove(this)}setData(t,n){const r=jf(this.state.data,t,this.options);return Oe(this,Dn,ls).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Oe(this,Dn,ls).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=A(this,vt))==null?void 0:r.promise;return(o=A(this,vt))==null||o.cancel(t),n?n.then(tn).catch(tn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(A(this,Ar))}isActive(){return this.observers.some(t=>_n(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Js(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:!tb(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=A(this,vt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=A(this,vt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),A(this,wn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(A(this,vt)&&(A(this,Lr)?A(this,vt).cancel({revert:!0}):A(this,vt).cancelRetry()),this.scheduleGc()),A(this,wn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Oe(this,Dn,ls).call(this,{type:"invalidate"})}async fetch(t,n){var h,p,y,x,v,w,E,j,S,_,P,C;if(this.state.fetchStatus!=="idle"&&((h=A(this,vt))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(A(this,vt))return A(this,vt).continueRetry(),A(this,vt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const T=this.observers.find(I=>I.options.queryFn);T&&this.setOptions(T.options)}const r=new AbortController,o=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(ne(this,Lr,!0),r.signal)}
231)},c=()=>{const T=sb(this.options,n),$=(()=>{const q={client:A(this,Or),queryKey:this.queryKey,meta:this.meta};return o(q),q})();return ne(this,Lr,!1),this.options.persister?this.options.persister(T,$,this):T($)},f=(()=>{const T={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:A(this,Or),state:this.state,fetchFn:c};return o(T),T})();(p=this.options.behavior)==null||p.onFetch(f,this),ne(this,Ri,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=f.fetchOptions)==null?void 0:y.meta))&&Oe(this,Dn,ls).call(this,{type:"fetch",meta:(x=f.fetchOptions)==null?void 0:x.meta}),ne(this,vt,ob({initialPromise:n==null?void 0:n.initialPromise,fn:f.fetchFn,onCancel:T=>{T instanceof Ef&&T.revert&&this.setState({...A(this,Ri),fetchStatus:"idle"}),r.abort()},onFail:(T,I)=>{Oe(this,Dn,ls).call(this,{type:"failed",failureCount:T,error:I})},onPause:()=>{Oe(this,Dn,ls).call(this,{type:"pause"})},onContinue:()=>{Oe(this,Dn,ls).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}));try{const T=await A(this,vt).start();if(T===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(T),(w=(v=A(this,wn).config).onSuccess)==null||w.call(v,T,this),(j=(E=A(this,wn).config).onSettled)==null||j.call(E,T,this.state.error,this),T}catch(T){if(T instanceof Ef){if(T.silent)return A(this,vt).promise;if(T.revert){if(this.state.data===void 0)throw T;return this.state.data}}throw Oe(this,Dn,ls).call(this,{type:"error",error:T}),(_=(S=A(this,wn).config).onError)==null||_.call(S,T,this),(C=(P=A(this,wn).config).onSettled)==null||C.call(P,this.state.data,T,this),T}finally{this.scheduleGc()}}},Ar=new WeakMap,Ri=new WeakMap,wn=new WeakMap,Or=new WeakMap,vt=new WeakMap,ya=new WeakMap,Lr=new WeakMap,Dn=new WeakSet,ls=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,...lb(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...Ly(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ne(this,Ri,t.manual?o:void 0),o;case"error":const c=t.error;return{...r,error:c,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Et.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),A(this,wn).notify({query:this,type:"updated",action:t})})},xv);function lb(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ib(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Ly(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Dy(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 en,Le,xa,$t,Dr,Ai,cs,qs,va,Oi,Li,Ir,Mr,Ws,Di,Ue,Qo,Nf,Pf,Tf,Rf,Af,Of,Lf,cb,vv,y2=(vv=class extends Sa{constructor(t,n){super();be(this,Ue);be(this,en);be(this,Le);be(this,xa);be(this,$t);be(this,Dr);be(this,Ai);be(this,cs);be(this,qs);be(this,va);be(this,Oi);be(this,Li);be(this,Ir);be(this,Mr);be(this,Ws);be(this,Di,new Set);this.options=n,ne(this,en,t),ne(this,qs,null),ne(this,cs,Cf()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(A(this,Le).addObserver(this),Iy(A(this,Le),this.options)?Oe(this,Ue,Qo).call(this):this.updateResult(),Oe(this,Ue,Rf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Df(A(this,Le),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Df(A(this,Le),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Oe(this,Ue,Af).call(this),Oe(this,Ue,Of).call(this),A(this,Le).removeObserver(this)}setOptions(t){const n=this.options,r=A(this,Le);if(this.options=A(this,en).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof _n(this.options.enabled,A(this,Le))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Oe(this,Ue,Lf).call(this),A(this,Le).setOptions(this.options),n._defaulted&&!Sf(this.options,n)&&A(this,en).getQueryCache().notify({type:"observerOptionsUpdated",query:A(this,Le),observer:this});const o=this.hasListeners();o&&My(A(this,Le),r,this.options,n)&&Oe(this,Ue,Qo).call(this),this.updateResult(),o&&(A(this,Le)!==r||_n(this.options.enabled,A(this,Le))!==_n(n.enabled,A(this,Le))||Js(this.options.staleTime,A(this,Le))!==Js(n.staleTime,A(this,Le)))&&Oe(this,Ue,Nf).call(this);const c=Oe(this,Ue,Pf).call(this);o&&(A(this,Le)!==r||_n(this.options.enabled,A(this,Le))!==_n(n.enabled,A(this,Le))||c!==A(this,Ws))&&Oe(this,Ue,Tf).call(this,c)}getOptimisticResult(t){const n=A(this,en).getQueryCache().build(A(this,en),t),r=this.createResult(n,t);return v2(this,r)&&(ne(this,$t,r),ne(this,Ai,this.options),ne(this,Dr,A(this,Le).state)),r}getCurrentResult(){return A(this,$t)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&A(this,cs).status==="pending"&&A(this,cs).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){A(this,Di).add(t)}getCurrentQuery(){return A(this,Le)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=A(this,en).defaultQueryOptions(t),r=A(this,en).getQueryCache().build(A(this,en),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Oe(this,Ue,Qo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),A(this,$t)))}createResult(t,n){var U;const r=A(this,Le),o=this.options,c=A(this,$t),u=A(this,Dr),f=A(this,Ai),p=t!==r?t.state:A(this,xa),{state:y}=t;let x={...y},v=!1,w;
vendor: 9,665 bytes, line 231
231if(n._optimisticResults){const Z=this.hasListeners(),pe=!Z&&Iy(t,n),je=Z&&My(t,r,n,o);(pe||je)&&(x={...x,...lb(y.data,t.options)}),n._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:E,errorUpdatedAt:j,status:S}=x;w=x.data;let _=!1;if(n.placeholderData!==void 0&&w===void 0&&S==="pending"){let Z;c!=null&&c.isPlaceholderData&&n.placeholderData===(f==null?void 0:f.placeholderData)?(Z=c.data,_=!0):Z=typeof n.placeholderData=="function"?n.placeholderData((U=A(this,Li))==null?void 0:U.state.data,A(this,Li)):n.placeholderData,Z!==void 0&&(S="success",w=jf(c==null?void 0:c.data,Z,n),v=!0)}if(n.select&&w!==void 0&&!_)if(c&&w===(u==null?void 0:u.data)&&n.select===A(this,va))w=A(this,Oi);else try{ne(this,va,n.select),w=n.select(w),w=jf(c==null?void 0:c.data,w,n),ne(this,Oi,w),ne(this,qs,null)}catch(Z){ne(this,qs,Z)}A(this,qs)&&(E=A(this,qs),w=A(this,Oi),j=Date.now(),S="error");const P=x.fetchStatus==="fetching",C=S==="pending",T=S==="error",I=C&&P,$=w!==void 0,M={status:S,fetchStatus:x.fetchStatus,isPending:C,isSuccess:S==="success",isError:T,isInitialLoading:I,isLoading:I,data:w,dataUpdatedAt:x.dataUpdatedAt,error:E,errorUpdatedAt:j,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>p.dataUpdateCount||x.errorUpdateCount>p.errorUpdateCount,isFetching:P,isRefetching:P&&!C,isLoadingError:T&&!$,isPaused:x.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:T&&$,isStale:wh(t,n),refetch:this.refetch,promise:A(this,cs),isEnabled:_n(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const Z=M.data!==void 0,pe=M.status==="error"&&!Z,je=ge=>{pe?ge.reject(M.error):Z&&ge.resolve(M.data)},Te=()=>{const ge=ne(this,cs,M.promise=Cf());je(ge)},Ce=A(this,cs);switch(Ce.status){case"pending":t.queryHash===r.queryHash&&je(Ce);break;case"fulfilled":(pe||M.data!==Ce.value)&&Te();break;case"rejected":(!pe||M.error!==Ce.reason)&&Te();break}}return M}updateResult(){const t=A(this,$t),n=this.createResult(A(this,Le),this.options);if(ne(this,Dr,A(this,Le).state),ne(this,Ai,this.options),A(this,Dr).data!==void 0&&ne(this,Li,A(this,Le)),Sf(n,t))return;ne(this,$t,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,c=typeof o=="function"?o():o;if(c==="all"||!c&&!A(this,Di).size)return!0;const u=new Set(c??A(this,Di));return this.options.throwOnError&&u.add("error"),Object.keys(A(this,$t)).some(f=>{const h=f;return A(this,$t)[h]!==t[h]&&u.has(h)})};Oe(this,Ue,cb).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Oe(this,Ue,Rf).call(this)}},en=new WeakMap,Le=new WeakMap,xa=new WeakMap,$t=new WeakMap,Dr=new WeakMap,Ai=new WeakMap,cs=new WeakMap,qs=new WeakMap,va=new WeakMap,Oi=new WeakMap,Li=new WeakMap,Ir=new WeakMap,Mr=new WeakMap,Ws=new WeakMap,Di=new WeakMap,Ue=new WeakSet,Qo=function(t){Oe(this,Ue,Lf).call(this);let n=A(this,Le).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(tn)),n},Nf=function(){Oe(this,Ue,Af).call(this);const t=Js(this.options.staleTime,A(this,Le));if(zr||A(this,$t).isStale||!_f(t))return;const r=tb(A(this,$t).dataUpdatedAt,t)+1;ne(this,Ir,Er.setTimeout(()=>{A(this,$t).isStale||this.updateResult()},r))},Pf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(A(this,Le)):this.options.refetchInterval)??!1},Tf=function(t){Oe(this,Ue,Of).call(this),ne(this,Ws,t),!(zr||_n(this.options.enabled,A(this,Le))===!1||!_f(A(this,Ws))||A(this,Ws)===0)&&ne(this,Mr,Er.setInterval(()=>{(this.options.refetchIntervalInBackground||bh.isFocused())&&Oe(this,Ue,Qo).call(this)},A(this,Ws)))},Rf=function(){Oe(this,Ue,Nf).call(this),Oe(this,Ue,Tf).call(this,Oe(this,Ue,Pf).call(this))},Af=function(){A(this,Ir)&&(Er.clearTimeout(A(this,Ir)),ne(this,Ir,void 0))},Of=function(){A(this,Mr)&&(Er.clearInterval(A(this,Mr)),ne(this,Mr,void 0))},Lf=function(){const t=A(this,en).getQueryCache().build(A(this,en),this.options);if(t===A(this,Le))return;const n=A(this,Le);ne(this,Le,t),ne(this,xa,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},cb=function(t){Et.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(A(this,$t))}),A(this,en).getQueryCache().notify({query:A(this,Le),type:"observerResultsUpdated"})})},vv);function x2(e,t){return _n(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Iy(e,t){return x2(e,t)||e.state.data!==void 0&&Df(e,t,t.refetchOnMount)}function Df(e,t,n){if(_n(t.enabled,e)!==!1&&Js(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&wh(e,t)}return!1}function My(e,t,n,r){return(e!==t||_n(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&wh(e,n)}function wh(e,t){return _n(t.enabled,e)!==!1&&e.isStaleByTime(Js(t.staleTime,e))}function v2(e,t){return!Sf(e.getCurrentResult(),t)}function Fy(e){return{onFetch:(t,n)=>{var y,x,v,w,E;const r=t.options,o=(v=(x=(y=t.fetchOptions)==null?void 0:y.meta)==null?void 0:x.fetchMore)==null?void 0:v.direction,c=((w=t.state.data)==null?void 0:w.pages)||[],u=((E=t.state.data)==null?void 0:E.pageParams)||[];let f={pages:[],pageParams:[]},h=0;const p=async()=>{let j=!1;const S=C=>{u2(C,()=>t.signal,()=>j=!0)},_=sb(t.options,t.fetchOptions),P=async(C,T,I)=>{if(j)return Promise.reject();if(T==null&&C.pages.length)return Promise.resolve(C);const q=(()=>{const pe={client:t.client,queryKey:t.queryKey,pageParam:T,direction:I?"backward":"forward",meta:t.options.meta};return S(pe),pe})(),M=await _(q),{maxPages:U}=t.options,Z=I?c2:l2;return{pages:Z(C.pages,M,U),pageParams:Z(C.pageParams,T,U)}};if(o&&c.length){const C=o==="backward",T=C?b2:By,I={pages:c,pageParams:u},$=T(r,I);f=await P(I,$,C)}else{const C=e??c.length;do{const T=h===0?u[0]??r.initialPageParam:By(r,f);if(h>0&&T==null)break;f=await P(f,T),h++}while(h<C)}return f};t.options.persister?t.fetchFn=()=>{var j,S;return(S=(j=t.options).persister)==null?void 0:S.call(j,p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=p}}}function By(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 b2(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 ba,Wn,It,Fr,Hn,Bs,bv,w2=(bv=class extends ab{constructor(t){super();be(this,Hn);be(this,ba);be(this,Wn);be(this,It);be(this,Fr);ne(this,ba,t.client),this.mutationId=t.mutationId,ne(this,It,t.mutationCache),ne(this,Wn,[]),this.state=t.state||_2(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){A(this,Wn).includes(t)||(A(this,Wn).push(t),this.clearGcTimeout(),A(this,It).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ne(this,Wn,A(this,Wn).filter(n=>n!==t)),this.scheduleGc(),A(this,It).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){A(this,Wn).length||(this.state.status==="pending"?this.scheduleGc():A(this,It).remove(this))}continue(){var t;return((t=A(this,Fr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var u,f,h,p,y,x,v,w,E,j,S,_,P,C,T,I,$,q;const n=()=>{Oe(this,Hn,Bs).call(this,{type:"continue"})},r={client:A(this,ba),meta:this.options.meta,mutationKey:this.options.mutationKey};ne(this,Fr,ob({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(M,U)=>{Oe(this,Hn,Bs).call(this,{type:"failed",failureCount:M,error:U})},onPause:()=>{Oe(this,Hn,Bs).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>A(this,It).canRun(this)}));const o=this.state.status==="pending",c=!A(this,Fr).canStart();try{if(o)n();else{Oe(this,Hn,Bs).call(this,{type:"pending",variables:t,isPaused:c}),A(this,It).config.onMutate&&await A(this,It).config.onMutate(t,this,r);const U=await((f=(u=this.options).onMutate)==null?void 0:f.call(u,t,r));U!==this.state.context&&Oe(this,Hn,Bs).call(this,{type:"pending",context:U,variables:t,isPaused:c})}const M=await A(this,Fr).start();return await((p=(h=A(this,It).config).onSuccess)==null?void 0:p.call(h,M,t,this.state.context,this,r)),await((x=(y=this.options).onSuccess)==null?void 0:x.call(y,M,t,this.state.context,r)),await((w=(v=A(this,It).config).onSettled)==null?void 0:w.call(v,M,null,this.state.variables,this.state.context,this,r)),await((j=(E=this.options).onSettled)==null?void 0:j.call(E,M,null,t,this.state.context,r)),Oe(this,Hn,Bs).call(this,{type:"success",data:M}),M}catch(M){try{await((_=(S=A(this,It).config).onError)==null?void 0:_.call(S,M,t,this.state.context,this,r))}catch(U){Promise.reject(U)}try{await((C=(P=this.options).onError)==null?void 0:C.call(P,M,t,this.state.context,r))}catch(U){Promise.reject(U)}try{await((I=(T=A(this,It).config).onSettled)==null?void 0:I.call(T,void 0,M,this.state.variables,this.state.context,this,r))}catch(U){Promise.reject(U)}try{await((q=($=this.options).onSettled)==null?void 0:q.call($,void 0,M,t,this.state.context,r))}catch(U){Promise.reject(U)}throw Oe(this,Hn,Bs).call(this,{type:"error",error:M}),M}finally{A(this,It).runNext(this)}}},ba=new WeakMap,Wn=new WeakMap,It=new WeakMap,Fr=new WeakMap,Hn=new WeakSet,Bs=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};
231case"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),Et.batch(()=>{A(this,Wn).forEach(r=>{r.onMutationUpdate(t)}),A(this,It).notify({mutation:this,type:"updated",action:t})})},bv);function _2(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var us,In,wa,wv,S2=(wv=class extends Sa{constructor(t={}){super();be(this,us);be(this,In);be(this,wa);this.config=t,ne(this,us,new Set),ne(this,In,new Map),ne(this,wa,0)}build(t,n,r){const o=new w2({client:t,mutationCache:this,mutationId:++Ul(this,wa)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){A(this,us).add(t);const n=Wl(t);if(typeof n=="string"){const r=A(this,In).get(n);r?r.push(t):A(this,In).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(A(this,us).delete(t)){const n=Wl(t);if(typeof n=="string"){const r=A(this,In).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&A(this,In).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Wl(t);if(typeof n=="string"){const r=A(this,In).get(n),o=r==null?void 0:r.find(c=>c.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Wl(t);if(typeof n=="string"){const o=(r=A(this,In).get(n))==null?void 0:r.find(c=>c!==t&&c.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Et.batch(()=>{A(this,us).forEach(t=>{this.notify({type:"removed",mutation:t})}),A(this,us).clear(),A(this,In).clear()})}getAll(){return Array.from(A(this,us))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ry(n,r))}findAll(t={}){return this.getAll().filter(n=>Ry(t,n))}notify(t){Et.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Et.batch(()=>Promise.all(t.map(n=>n.continue().catch(tn))))}},us=new WeakMap,In=new WeakMap,wa=new WeakMap,wv);function Wl(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Kn,_v,k2=(_v=class extends Sa{constructor(t={}){super();be(this,Kn);this.config=t,ne(this,Kn,new Map)}build(t,n,r){const o=n.queryKey,c=n.queryHash??xh(o,n);let u=this.get(c);return u||(u=new g2({client:t,queryKey:o,queryHash:c,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(u)),u}add(t){A(this,Kn).has(t.queryHash)||(A(this,Kn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=A(this,Kn).get(t.queryHash);n&&(t.destroy(),n===t&&A(this,Kn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Et.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return A(this,Kn).get(t)}getAll(){return[...A(this,Kn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ty(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ty(t,r)):n}notify(t){Et.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Et.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Et.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Kn=new WeakMap,_v),st,Hs,Ks,Ii,Mi,Gs,Fi,Bi,Sv,j2=(Sv=class{constructor(e={}){be(this,st);be(this,Hs);be(this,Ks);be(this,Ii);be(this,Mi);be(this,Gs);be(this,Fi);be(this,Bi);ne(this,st,e.queryCache||new k2),ne(this,Hs,e.mutationCache||new S2),ne(this,Ks,e.defaultOptions||{}),ne(this,Ii,new Map),ne(this,Mi,new Map),ne(this,Gs,0)}mount(){Ul(this,Gs)._++,A(this,Gs)===1&&(ne(this,Fi,bh.subscribe(async e=>{e&&(await this.resumePausedMutations(),A(this,st).onFocus())})),ne(this,Bi,mc.subscribe(async e=>{e&&(await this.resumePausedMutations(),A(this,st).onOnline())})))}unmount(){var e,t;Ul(this,Gs)._--,A(this,Gs)===0&&((e=A(this,Fi))==null||e.call(this),ne(this,Fi,void 0),(t=A(this,Bi))==null||t.call(this),ne(this,Bi,void 0))}isFetching(e){return A(this,st).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return A(this,Hs).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=A(this,st).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=A(this,st).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Js(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return A(this,st).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=A(this,st).get(r.queryHash),c=o==null?void 0:o.state.data,u=i2(t,c);if(u!==void 0)return A(this,st).build(this,r).setData(u,{...n,manual:!0})}
231setQueriesData(e,t,n){return Et.batch(()=>A(this,st).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=A(this,st).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=A(this,st);Et.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=A(this,st);return Et.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Et.batch(()=>A(this,st).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(tn).catch(tn)}invalidateQueries(e,t={}){return Et.batch(()=>(A(this,st).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=Et.batch(()=>A(this,st).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,n);return n.throwOnError||(c=c.catch(tn)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(r).then(tn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=A(this,st).build(this,t);return n.isStaleByTime(Js(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(tn).catch(tn)}fetchInfiniteQuery(e){return e.behavior=Fy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(tn).catch(tn)}ensureInfiniteQueryData(e){return e.behavior=Fy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return mc.isOnline()?A(this,Hs).resumePausedMutations():Promise.resolve()}getQueryCache(){return A(this,st)}getMutationCache(){return A(this,Hs)}getDefaultOptions(){return A(this,Ks)}setDefaultOptions(e){ne(this,Ks,e)}setQueryDefaults(e,t){A(this,Ii).set(aa(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...A(this,Ii).values()],n={};return t.forEach(r=>{la(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){A(this,Mi).set(aa(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...A(this,Mi).values()],n={};return t.forEach(r=>{la(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...A(this,Ks).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=xh(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===vh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...A(this,Ks).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){A(this,st).clear(),A(this,Hs).clear()}},st=new WeakMap,Hs=new WeakMap,Ks=new WeakMap,Ii=new WeakMap,Mi=new WeakMap,Gs=new WeakMap,Fi=new WeakMap,Bi=new WeakMap,Sv),ub=k.createContext(void 0),C2=e=>{const t=k.useContext(ub);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},E2=({client:e,children:t})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),l.jsx(ub.Provider,{value:e,children:t})),db=k.createContext(!1),N2=()=>k.useContext(db);db.Provider;function P2(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var T2=k.createContext(P2()),R2=()=>k.useContext(T2),A2=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?rb(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},O2=e=>{k.useEffect(()=>{e.clearReset()},[e])},L2=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||rb(n,[e.error,r])),D2=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},I2=(e,t)=>
231e.isLoading&&e.isFetching&&!t,M2=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Vy=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function F2(e,t,n){var v,w,E,j;const r=N2(),o=R2(),c=C2(),u=c.defaultQueryOptions(e);(w=(v=c.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||w.call(v,u);const f=c.getQueryCache().get(u.queryHash);u._optimisticResults=r?"isRestoring":"optimistic",D2(u),A2(u,o,f),O2(o);const h=!c.getQueryCache().get(u.queryHash),[p]=k.useState(()=>new t(c,u)),y=p.getOptimisticResult(u),x=!r&&e.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(S=>{const _=x?p.subscribe(Et.batchCalls(S)):tn;return p.updateResult(),_},[p,x]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),k.useEffect(()=>{p.setOptions(u)},[u,p]),M2(u,y))throw Vy(u,p,o);if(L2({result:y,errorResetBoundary:o,throwOnError:u.throwOnError,query:f,suspense:u.suspense}))throw y.error;if((j=(E=c.getDefaultOptions().queries)==null?void 0:E._experimental_afterQuery)==null||j.call(E,u,y),u.experimental_prefetchInRender&&!zr&&I2(y,r)){const S=h?Vy(u,p,o):f==null?void 0:f.promise;S==null||S.catch(tn).finally(()=>{p.updateResult()})}return u.notifyOnChangeProps?y:p.trackResult(y)}function B2(e,t){return F2(e,y2)}const V2=new j2({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var U2=jv();const PL=hh(U2);/** 232 * @remix-run/router v1.23.2 233 * 234 * Copyright (c) Remix Software Inc. 235 * 236 * This source code is licensed under the MIT license found in the 237 * LICENSE.md file in the root directory of this source tree. 238 * 239 * @license MIT 240 */function ca(){return ca=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},ca.apply(this,arguments)}var Qs;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Qs||(Qs={}));const Uy="popstate";function z2(e){e===void 0&&(e={});function t(r,o){let{pathname:c,search:u,hash:f}=r.location;return If("",{pathname:c,search:u,hash:f},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:gc(o)}return q2(t,n,null,e)}function ct(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function _h(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function $2(){return Math.random().toString(36).substr(2,8)}function zy(e,t){return{usr:e.state,key:e.key,idx:t}}function If(e,t,n,r){return n===void 0&&(n=null),ca({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Hi(t):t,{state:n,key:t&&t.key||r||$2()})}function gc(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 Hi(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 q2(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:c=!1}=r,u=o.history,f=Qs.Pop,h=null,p=y();p==null&&(p=0,u.replaceState(ca({},u.state,{idx:p}),""));function y(){return(u.state||{idx:null}).idx}function x(){f=Qs.Pop;let S=y(),_=S==null?null:S-p;p=S,h&&h({action:f,location:j.location,delta:_})}function v(S,_){f=Qs.Push;let P=If(j.location,S,_);p=y()+1;let C=zy(P,p),T=j.createHref(P);try{u.pushState(C,"",T)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;o.location.assign(T)}c&&h&&h({action:f,location:j.location,delta:1})}function w(S,_){f=Qs.Replace;let P=If(j.location,S,_);p=y();let C=zy(P,p),T=j.createHref(P);u.replaceState(C,"",T),c&&h&&h({action:f,location:j.location,delta:0})}function E(S){let _=o.location.origin!=="null"?o.location.origin:o.location.href,P=typeof S=="string"?S:gc(S);return P=P.replace(/ $/,"%20"),ct(_,"No window.location.(origin|href) available to create URL for href: "+P),new URL(P,_)}let j={get action(){return f},get location(){return e(o,u)},listen(S){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(Uy,x),h=S,()=>{o.removeEventListener(Uy,x),h=null}},createHref(S){return t(o,S)},createURL:E,encodeLocation(S){let _=E(S);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:v,replace:w,go(S){return u.go(S)}};return j}var $y;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})($y||($y={}));function W2(e,t,n){return n===void 0&&(n="/"),H2(e,t,n)}function H2(e,t,n,r){let o=typeof t=="string"?Hi(t):t,c=Sh(o.pathname||"/",n);if(c==null)return null;let u=fb(e);K2(u);let f=null;for(let h=0;f==null&&h<u.length;++h){let p=iC(c);f=nC(u[h],p)}return f}function fb(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(c,u,f)=>{let h={relativePath:f===void 0?c.path||"":f,caseSensitive:c.caseSensitive===!0,childrenIndex:u,route:c};h.relativePath.startsWith("/")&&(ct(h.relativePath.startsWith(r),'Absolute route path "'+h.relativePath+'" nested under path '+('"'+r+'" is not val
240id. An absolute child route path ')+"must start with the combined path of all its parent routes."),h.relativePath=h.relativePath.slice(r.length));let p=Zs([r,h.relativePath]),y=n.concat(h);c.children&&c.children.length>0&&(ct(c.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),fb(c.children,t,y,p)),!(c.path==null&&!c.index)&&t.push({path:p,score:eC(p,c.index),routesMeta:y})};return e.forEach((c,u)=>{var f;if(c.path===""||!((f=c.path)!=null&&f.includes("?")))o(c,u);else for(let h of hb(c.path))o(c,u,h)}),t}function hb(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),c=n.replace(/\?$/,"");if(r.length===0)return o?[c,""]:[c];let u=hb(r.join("/")),f=[];return f.push(...u.map(h=>h===""?c:[c,h].join("/"))),o&&f.push(...u),f.map(h=>e.startsWith("/")&&h===""?"/":h)}function K2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:tC(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const G2=/^:[\w-]+$/,Q2=3,Y2=2,X2=1,J2=10,Z2=-2,qy=e=>e==="*";function eC(e,t){let n=e.split("/"),r=n.length;return n.some(qy)&&(r+=Z2),t&&(r+=Y2),n.filter(o=>!qy(o)).reduce((o,c)=>o+(G2.test(c)?Q2:c===""?X2:J2),r)}function tC(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function nC(e,t,n){let{routesMeta:r}=e,o={},c="/",u=[];for(let f=0;f<r.length;++f){let h=r[f],p=f===r.length-1,y=c==="/"?t:t.slice(c.length)||"/",x=sC({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},y),v=h.route;if(!x)return null;
vendor: 5,343 bytes, lines 240-249
240Object.assign(o,x.params),u.push({params:o,pathname:Zs([c,x.pathname]),pathnameBase:uC(Zs([c,x.pathnameBase])),route:v}),x.pathnameBase!=="/"&&(c=Zs([c,x.pathnameBase]))}return u}function sC(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=rC(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let c=o[0],u=c.replace(/(.)\/+$/,"$1"),f=o.slice(1);return{params:r.reduce((p,y,x)=>{let{paramName:v,isOptional:w}=y;if(v==="*"){let j=f[x]||"";u=c.slice(0,c.length-j.length).replace(/(.)\/+$/,"$1")}const E=f[x];return w&&!E?p[v]=void 0:p[v]=(E||"").replace(/%2F/g,"/"),p},{}),pathname:c,pathnameBase:u,pattern:e}}function rC(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),_h(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,f,h)=>(r.push({paramName:f,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function iC(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return _h(!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 Sh(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)||"/"}const oC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,aC=e=>oC.test(e);function lC(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Hi(e):e,c;if(n)if(aC(n))c=n;else{if(n.includes("//")){let u=n;n=n.replace(/\/\/+/g,"/"),_h(!1,"Pathnames cannot have embedded double slashes - normalizing "+(u+" -> "+n))}n.startsWith("/")?c=Wy(n.substring(1),"/"):c=Wy(n,t)}else c=t;return{pathname:c,search:dC(r),hash:fC(o)}}function Wy(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function zd(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 cC(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function kh(e,t){let n=cC(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function jh(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Hi(e):(o=ca({},e),ct(!o.pathname||!o.pathname.includes("?"),zd("?","pathname","search",o)),ct(!o.pathname||!o.pathname.includes("#"),zd("#","pathname","hash",o)),ct(!o.search||!o.search.includes("#"),zd("#","search","hash",o)));let c=e===""||o.pathname==="",u=c?"/":o.pathname,f;if(u==null)f=n;else{let x=t.length-1;if(!r&&u.startsWith("..")){let v=u.split("/");for(;v[0]==="..";)v.shift(),x-=1;o.pathname=v.join("/")}f=x>=0?t[x]:"/"}let h=lC(o,f),p=u&&u!=="/"&&u.endsWith("/"),y=(c||u===".")&&n.endsWith("/");return!h.pathname.endsWith("/")&&(p||y)&&(h.pathname+="/"),h}const Zs=e=>e.join("/").replace(/\/\/+/g,"/"),uC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),dC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function hC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const pb=["post","put","patch","delete"];new Set(pb);const pC=["get",...pb];new Set(pC);/** 241 * React Router v6.30.3 242 * 243 * Copyright (c) Remix Software Inc. 244 * 245 * This source code is licensed under the MIT license found in the 246 * LICENSE.md file in the root directory of this source tree. 247 * 248 * @license MIT 249 */function ua(){return ua=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},ua.apply(this,arguments)}const Ch=k.createContext(null),mC=k.createContext(null),ir=k.createContext(null),Rc=k.createContext(null),ms=k.createContext({outlet:null,matches:[],isDataRoute:!1}),mb=k.createContext(null);function gC(e,t){let{relative:n}=t===void 0?{}:t;Ki()||ct(!1);let{basename:r,navigator:o}=k.useContext(ir),{hash:c,pathname:u,search:f}=yb(e,{relative:n}),h=u;return r!=="/"&&(h=u==="/"?r:Zs([r,u])),o.createHref({pathname:h,search:f,hash:c})}function Ki(){return k.useContext(Rc)!=null}function Gi(){return Ki()||ct(!1),k.useContext(Rc).location}function gb(e){k.useContext(ir).static||k.useLayoutEffect(e)}function Ac(){let{isDataRoute:e}=k.useContext(ms);return e?RC():yC()}function yC(){Ki()||ct(!1);let e=k.useContext(Ch),{basename:t,future:n,navigator:r}=k.useContext(ir),{matches:o}=k.useContext(ms),{pathname:c}=Gi(),u=JSON.stringify(kh(o,n.v7_relativeSplatPath)),f=k.useRef(!1);return gb(()=>{f.current=!0}
vendor: 4,238 bytes, line 249
249),k.useCallback(function(p,y){if(y===void 0&&(y={}),!f.current)return;if(typeof p=="number"){r.go(p);return}let x=jh(p,JSON.parse(u),c,y.relative==="path");e==null&&t!=="/"&&(x.pathname=x.pathname==="/"?t:Zs([t,x.pathname])),(y.replace?r.replace:r.push)(x,y.state,y)},[t,r,u,c,e])}const xC=k.createContext(null);function vC(e){let t=k.useContext(ms).outlet;return t&&k.createElement(xC.Provider,{value:e},t)}function yb(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=k.useContext(ir),{matches:o}=k.useContext(ms),{pathname:c}=Gi(),u=JSON.stringify(kh(o,r.v7_relativeSplatPath));return k.useMemo(()=>jh(e,JSON.parse(u),c,n==="path"),[e,u,c,n])}function bC(e,t){return wC(e,t)}function wC(e,t,n,r){Ki()||ct(!1);let{navigator:o}=k.useContext(ir),{matches:c}=k.useContext(ms),u=c[c.length-1],f=u?u.params:{};u&&u.pathname;let h=u?u.pathnameBase:"/";u&&u.route;let p=Gi(),y;if(t){var x;let S=typeof t=="string"?Hi(t):t;h==="/"||(x=S.pathname)!=null&&x.startsWith(h)||ct(!1),y=S}else y=p;let v=y.pathname||"/",w=v;if(h!=="/"){let S=h.replace(/^\//,"").split("/");w="/"+v.replace(/^\//,"").split("/").slice(S.length).join("/")}let E=W2(e,{pathname:w}),j=CC(E&&E.map(S=>Object.assign({},S,{params:Object.assign({},f,S.params),pathname:Zs([h,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?h:Zs([h,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),c,n,r);return t&&j?k.createElement(Rc.Provider,{value:{location:ua({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:Qs.Pop}},j):j}function _C(){let e=TC(),t=hC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:o},n):null,null)}const SC=k.createElement(_C,null);class kC extends k.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?k.createElement(ms.Provider,{value:this.props.routeContext},k.createElement(mb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jC(e){let{routeContext:t,match:n,children:r}=e,o=k.useContext(Ch);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(ms.Provider,{value:t},r)}function CC(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var c;if(!n)return null;if(n.errors)e=n.matches;else if((c=r)!=null&&c.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let u=e,f=(o=n)==null?void 0:o.errors;if(f!=null){let y=u.findIndex(x=>x.route.id&&(f==null?void 0:f[x.route.id])!==void 0);y>=0||ct(!1),u=u.slice(0,Math.min(u.length,y+1))}let h=!1,p=-1;if(n&&r&&r.v7_partialHydration)for(let y=0;y<u.length;y++){let x=u[y];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(p=y),x.route.id){let{loaderData:v,errors:w}=n,E=x.route.loader&&v[x.route.id]===void 0&&(!w||w[x.route.id]===void 0);if(x.route.lazy||E){h=!0,p>=0?u=u.slice(0,p+1):u=[u[0]];break}}}return u.reduceRight((y,x,v)=>{let w,E=!1,j=null,S=null;n&&(w=f&&x.route.id?f[x.route.id]:void 0,j=x.route.errorElement||SC,h&&(p<0&&v===0?(AC("route-fallback"),E=!0,S=null):p===v&&(E=!0,S=x.route.hydrateFallbackElement||null)));let _=t.concat(u.slice(0,v+1)),P=()=>{let C;return w?C=j:E?C=S:x.route.Component?C=k.createElement(x.route.Component,null):x.route.element?C=x.route.element:C=y,k.createElement(jC,{match:x,routeC
249ontext:{outlet:y,matches:_,isDataRoute:n!=null},children:C})};return n&&(x.route.ErrorBoundary||x.route.errorElement||v===0)?k.createElement(kC,{location:n.location,revalidation:n.revalidation,component:j,error:w,children:P(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):P()},null)}var xb=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(xb||{}),vb=(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})(vb||{});function EC(e){let t=k.useContext(Ch);return t||ct(!1),t}function NC(e){let t=k.useContext(mC);return t||ct(!1),t}function PC(e){let t=k.useContext(ms);return t||ct(!1),t}function bb(e){let t=PC(),n=t.matches[t.matches.length-1];return n.route.id||ct(!1),n.route.id}function TC(){var e;let t=k.useContext(mb),n=NC(),r=bb();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function RC(){let{router:e}=EC(xb.UseNavigateStable),t=bb(vb.UseNavigateStable),n=k.useRef(!1);return gb(()=>{n.current=!0}),k.useCallback(function(o,c){c===void 0&&(c={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ua({fromRouteId:t},c)))},[e,t])}const Hy={};function AC(e,t,n){Hy[e]||(Hy[e]=!0)}function OC(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Uo(e){let{to:t,replace:n,state:r,relative:o}=e;Ki()||ct(!1);let{future:c,static:u}=k.useContext(ir),{matches:f}=k.useContext(ms),{pathname:h}=Gi(),p=Ac(),y=jh(t,kh(f,c.v7_relativeSplatPath),h,o==="path"),x=JSON.stringify(y);return k.useEffect(()=>p(JSON.parse(x),{replace:n,state:r,relative:o}),[p,x,o,n,r]),null}function TL(e){return vC(e.context)}function Ee(e){ct(!1)}function LC(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Qs.Pop,navigator:c,static:u=!1,future:f}=e;Ki()&&ct(!1);let h=t.replace(/^\/*/,"/"),p=k.useMemo(()=>({basename:h,navigator:c,static:u,future:ua({v7_relativeSplatPath:!1},f)}),[h,f,c,u]);typeof r=="string"&&(r=Hi(r));let{pathname:y="/",search:x="",hash:v="",state:w=null,key:E="default"}=r,j=k.useMemo(()=>{let S=Sh(y,h);return S==null?null:{location:{pathname:S,search:x,hash:v,state:w,key:E},navigationType:o}},[h,y,x,v,w,E,o]);return j==null?null:k.createElement(ir.Provider,{value:p},k.createElement(Rc.Provider,{children:n,value:j}))}function DC(e){let{children:t,location:n}=e;return bC(Mf(t),n)}new Promise(()=>{});function Mf(e,t){t===void 0&&(t=[]);let n=[];return k.Children.forEach(e,(r,o)=>{if(!k.isValidElement(r))return;let c=[...t,o];if(r.type===k.Fragment){n.push.apply(n,Mf(r.props.children,c));return}r.type!==Ee&&ct(!1),!r.props.index||!r.props.children||ct(!1);let u={id:r.props.id||c.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&&(u.children=Mf(r.props.children,c)),n.push(u)}),n}/** 250 * React Router DOM v6.30.3 251 * 252 * Copyright (c) Remix Software Inc. 253 * 254 * This source code is licensed under the MIT license found in the 255 * LICENSE.md file in the root directory of this source tree. 256 * 257 * @license MIT 258 */function Ff(){return Ff=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},Ff.apply(this,arguments)}function IC(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,c;for(c=0;c<r.length;c++)o=r[c],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function MC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function FC(e,t){return e.button===0&&(!t||t==="_self")&&!MC(e)}const BC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],VC="6";try{window.__reactRouterVersion=VC}catch{}const UC="startTransition",Ky=GS[UC];function zC(e){let{basename:t,children:n,future:r,window:o}=e,c=k.useRef();c.current==null&&(c.current=z2({window:o,v5Compat:!0}));let u=c.current,[f,h]=k.useState({action:u.action,location:u.location}),{v7_startTransition:p}=r||{},y=k.useCallback(x=>{p&&Ky?Ky(()=>h(x)):h(x)},[h,p]);return k.useLayoutEffect(()=>u.listen(y),[u,y]),k.useEffect(()=>
vendor: 5,158 bytes, line 258
258OC(r),[r]),k.createElement(LC,{basename:t,children:n,location:f.location,navigationType:f.action,navigator:u,future:r})}const $C=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",qC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xn=k.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:c,replace:u,state:f,target:h,to:p,preventScrollReset:y,viewTransition:x}=t,v=IC(t,BC),{basename:w}=k.useContext(ir),E,j=!1;if(typeof p=="string"&&qC.test(p)&&(E=p,$C))try{let C=new URL(window.location.href),T=p.startsWith("//")?new URL(C.protocol+p):new URL(p),I=Sh(T.pathname,w);T.origin===C.origin&&I!=null?p=I+T.search+T.hash:j=!0}catch{}let S=gC(p,{relative:o}),_=WC(p,{replace:u,state:f,target:h,preventScrollReset:y,relative:o,viewTransition:x});function P(C){r&&r(C),C.defaultPrevented||_(C)}return k.createElement("a",Ff({},v,{href:E||S,onClick:j||c?r:P,ref:n,target:h}))});var Gy;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Gy||(Gy={}));var Qy;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Qy||(Qy={}));function WC(e,t){let{target:n,replace:r,state:o,preventScrollReset:c,relative:u,viewTransition:f}=t===void 0?{}:t,h=Ac(),p=Gi(),y=yb(e,{relative:u});return k.useCallback(x=>{if(FC(x,n)){x.preventDefault();let v=r!==void 0?r:gc(p)===gc(y);h(e,{replace:v,state:o,preventScrollReset:c,relative:u,viewTransition:f})}},[p,h,y,r,o,n,e,c,u,f])}function wb(e,t){return function(){return e.apply(t,arguments)}}const{toString:HC}=Object.prototype,{getPrototypeOf:Vi}=Object,{iterator:ka,toStringTag:_b}=Symbol,yc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),da=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),yc(n,t))return!0;n=Vi(n)}return!1},KC=(e,t)=>e!=null&&da(e,t)?e[t]:void 0,Eh=(e=>t=>{const n=HC.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fn=e=>(e=e.toLowerCase(),t=>Eh(t)===e),Oc=e=>t=>typeof t===e,{isArray:$r}=Array,Ui=Oc("undefined");function Qi(e){return e!==null&&!Ui(e)&&e.constructor!==null&&!Ui(e.constructor)&&nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Sb=Fn("ArrayBuffer");function GC(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Sb(e.buffer),t}const QC=Oc("string"),nn=Oc("function"),kb=Oc("number"),Yi=e=>e!==null&&typeof e=="object",YC=e=>e===!0||e===!1,nc=e=>{if(!Yi(e))return!1;const t=Vi(e);return(t===null||t===Object.prototype||Vi(t)===null)&&!da(e,_b)&&!da(e,ka)},XC=e=>{if(!Yi(e)||Qi(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},JC=Fn("Date"),ZC=Fn("File"),eE=e=>!!(e&&typeof e.uri<"u"),tE=e=>e&&typeof e.getParts<"u",nE=Fn("Blob"),sE=Fn("FileList"),rE=e=>Yi(e)&&nn(e.pipe);function iE(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Yy=iE(),Xy=typeof Yy.FormData<"u"?Yy.FormData:void 0,oE=e=>{if(!e)return!1;if(Xy&&e instanceof Xy)return!0;const t=Vi(e);if(!t||t===Object.prototype||!nn(e.append))return!1;const n=Eh(e);return n==="formdata"||n==="object"&&nn(e.toString)&&e.toString()==="[object FormData]"},aE=Fn("URLSearchParams"),[lE,cE,uE,dE]=["ReadableStream","Request","Response","Headers"].map(Fn),fE=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ja(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),$r(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Qi(e))return;const c=n?Object.getOwnPropertyNames(e):Object.keys(e),u=c.length;let f;for(r=0;r<u;r++)f=c[r],t.call(null,e[f],f,e)}}function jb(e,t){if(Qi(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Nr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Cb=e=>!Ui(e)&&e!==Nr;function Bf(...e){const{caseless:t,skipUndefined:n}=Cb(this)&&this||{},r={},o=(c,u)=>{if(u==="__proto__"||u==="constructor"||u==="prototype")return;const f=t&&typeof u=="string"&&jb(r,u)||u,h=yc(r,f)?r[f]:void 0;nc(h)&&nc(c)?r[f]=Bf(h,c):nc(c)?r[f]=Bf({},c):$r(c)?r[f]=c.slice():(!n||!Ui(c))&&(r[f]=c)};for(let c=0,u=e.length;c<u;c++){const f=e[c];if(!f||Qi(f)||(ja(f,o),typeof f!="object"||$r(f)))continue;const h=Object.getOwnPropertySymbols(f);for(let p=0;p<h.length;p++){const y=h[p];kE.call(f,y)&&o(f[y],y)}}return r}const hE=(e,t,n,{allOwnKeys:r}={})=>(ja(t,(o,c)=>{n&&nn(o)?Object.defineProperty(e,c,{__proto__:null,value:wb(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,c,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),pE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mE=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,
vendor: 4,523 bytes, lines 258-259
258configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},gE=(e,t,n,r)=>{let o,c,u;const f={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),c=o.length;c-- >0;)u=o[c],(!r||r(u,e,t))&&!f[u]&&(t[u]=e[u],f[u]=!0);e=n!==!1&&Vi(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},yE=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},xE=e=>{if(!e)return null;if($r(e))return e;let t=e.length;if(!kb(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},vE=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Vi(Uint8Array)),bE=(e,t)=>{const r=(e&&e[ka]).call(e);let o;for(;(o=r.next())&&!o.done;){const c=o.value;t.call(e,c[0],c[1])}},wE=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},_E=Fn("HTMLFormElement"),SE=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),{propertyIsEnumerable:kE}=Object.prototype,jE=Fn("RegExp"),Eb=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ja(n,(o,c)=>{let u;(u=t(o,c,e))!==!1&&(r[c]=u||o)}),Object.defineProperties(e,r)},CE=e=>{Eb(e,(t,n)=>{if(nn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(nn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},EE=(e,t)=>{const n={},r=o=>{o.forEach(c=>{n[c]=!0})};return $r(e)?r(e):r(String(e).split(t)),n},NE=()=>{},PE=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function TE(e){return!!(e&&nn(e.append)&&e[_b]==="FormData"&&e[ka])}const RE=e=>{const t=new WeakSet,n=r=>{if(Yi(r)){if(t.has(r))return;if(Qi(r))return r;if(!("toJSON"in r)){t.add(r);const o=$r(r)?[]:{};return ja(r,(c,u)=>{const f=n(c);!Ui(f)&&(o[u]=f)}),t.delete(r),o}}return r};return n(e)},AE=Fn("AsyncFunction"),OE=e=>e&&(Yi(e)||nn(e))&&nn(e.then)&&nn(e.catch),Nb=((e,t)=>e?setImmediate:t?((n,r)=>(Nr.addEventListener("message",({source:o,data:c})=>{o===Nr&&c===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Nr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",nn(Nr.postMessage)),LE=typeof queueMicrotask<"u"?queueMicrotask.bind(Nr):typeof process<"u"&&process.nextTick||Nb,Pb=e=>e!=null&&nn(e[ka]),DE=e=>e!=null&&da(e,ka)&&Pb(e),D={isArray:$r,isArrayBuffer:Sb,isBuffer:Qi,isFormData:oE,isArrayBufferView:GC,isString:QC,isNumber:kb,isBoolean:YC,isObject:Yi,isPlainObject:nc,isEmptyObject:XC,isReadableStream:lE,isRequest:cE,isResponse:uE,isHeaders:dE,isUndefined:Ui,isDate:JC,isFile:ZC,isReactNativeBlob:eE,isReactNative:tE,isBlob:nE,isRegExp:jE,isFunction:nn,isStream:rE,isURLSearchParams:aE,isTypedArray:vE,isFileList:sE,forEach:ja,merge:Bf,extend:hE,trim:fE,stripBOM:pE,inherits:mE,toFlatObject:gE,kindOf:Eh,kindOfTest:Fn,endsWith:yE,toArray:xE,forEachEntry:bE,matchAll:wE,isHTMLForm:_E,hasOwnProperty:yc,hasOwnProp:yc,hasOwnInPrototypeChain:da,getSafeProp:KC,reduceDescriptors:Eb,freezeMethods:CE,toObjectSet:EE,toCamelCase:SE,noop:NE,toFiniteNumber:PE,findKey:jb,global:Nr,isContextDefined:Cb,isSpecCompliantForm:TE,toJSONObject:RE,isAsyncFn:AE,isThenable:OE,setImmediate:Nb,asap:LE,isIterable:Pb,isSafeIterable:DE},IE=D.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ME=e=>{const t={};let n,r,o;return e&&e.split(` 259`).forEach(function(u){o=u.indexOf(":"),n=u.substring(0,o).trim().toLowerCase(),r=u.substring(o+1).trim(),!(!n||t[n]&&IE[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function FE(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const BE=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),VE=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Nh(e,t){return D.isArray(e)?e.map(n=>Nh(n,t)):FE(String(e).replace(t,""))}const UE=e=>Nh(e,BE),zE=e=>Nh(e,VE);function Tb(e){const t=Object.create(null);return D.forEach(e.toJSON(),(n,r)=>{t[r]=zE(n)}),t}const Jy=Symbol("internals");function zo(e){return e&&String(e).trim().toLowerCase()}function sc(e){return e===!1||e==null?e:D.isArray(e)?e.map(sc):UE(String(e))}function $E(e){const t=Object.create(null),n=/([^\s,;
259=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const qE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $d(e,t,n,r,o){if(D.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!D.isString(t)){if(D.isString(r))return t.indexOf(r)!==-1;if(D.isRegExp(r))return r.test(t)}}function WE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function HE(e,t){const n=D.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(o,c,u){return this[r].call(this,t,o,c,u)},configurable:!0})})}let Bt=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function c(f,h,p){const y=zo(h);if(!y)return;const x=D.findKey(o,y);(!x||o[x]===void 0||p===!0||p===void 0&&o[x]!==!1)&&(o[x||h]=sc(f))}const u=(f,h)=>D.forEach(f,(p,y)=>c(p,y,h));if(D.isPlainObject(t)||t instanceof this.constructor)u(t,n);else if(D.isString(t)&&(t=t.trim())&&!qE(t))u(ME(t),n);else if(D.isObject(t)&&D.isSafeIterable(t)){let f=Object.create(null),h,p;for(const y of t){if(!D.isArray(y))throw new TypeError("Object iterator must return a key-value pair");p=y[0],D.hasOwnProp(f,p)?(h=f[p],f[p]=D.isArray(h)?[...h,y[1]]:[h,y[1]]):f[p]=y[1]}u(f,n)}else t!=null&&c(n,t,r);return this}get(t,n){if(t=zo(t),t){const r=D.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return $E(o);if(D.isFunction(n))return n.call(this,o,r);if(D.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=zo(t),t){const r=D.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||$d(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function c(u){if(u=zo(u),u){const f=D.findKey(r,u);f&&(!n||$d(r,r[f],f,n))&&(delete r[f],o=!0)}}return D.isArray(t)?t.forEach(c):c(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const c=n[r];(!t||$d(this,this[c],c,t,!0))&&(delete this[c],o=!0)}return o}normalize(t){const n=this,r={};return D.forEach(this,(o,c)=>{const u=D.findKey(r,c);if(u){n[u]=sc(o),delete n[c];return}const f=t?WE(c):String(c).trim();f!==c&&delete n[c],n[f]=sc(o),r[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return D.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&D.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 260`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Jy]=this[Jy]={accessors:{}}).accessors,o=this.prototype;function c(u){const f=zo(u);r[f]||(HE(o,u),r[f]=!0)}return D.isArray(t)?t.forEach(c):c(t),this}};Bt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);D.reduceDescriptors(Bt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});D.freezeMethods(Bt);const KE="[REDACTED ****]";function GE(e){if(D.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(D.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function QE(e,t){const n=new Set(t.map(c=>String(c).toLowerCase())),r=[],o=c=>{if(c===null||typeof c!="object"||D.isBuffer(c))return c;if(r.indexOf(c)!==-1)return;c instanceof Bt&&(c=c.toJSON()),r.push(c);let u;if(D.isArray(c))u=[],c.forEach((f,h)=>{const p=o(f);D.isUndefined(p)||(u[h]=p)});else{if(!D.isPlainObject(c)&&GE(c))return r.pop(),c;u=Object.create(null);for(const[f,h]of Object.entries(c)){const p=n.has(f.toLowerCase())?KE:o(h);D.isUndefined(p)||(u[f]=p)}}return r.pop(),u};return o(e)}let ee=class Rb extends Error{static from(t,n,r,o,c,u){const f=new Rb(t.message,n||t.code,r,o,c);return Object.defineProperty(f,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),f.name=t.name,t.status!=null&&f.status==null&&(f.status=t.status),u&&Object.assign(f,u),f}constructor(t,n,r,o,c){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),c&&(this.response=c,this.status=c.status)}toJSON(){const t=this.config,n=t&&D.hasOwnProp(t,"redact")?t.redact:void 0,r=D.isArray(n)&&n.length>0?QE(t,n):D.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};
vendor: 4,486 bytes, line 260
260ee.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ee.ERR_BAD_OPTION="ERR_BAD_OPTION";ee.ECONNABORTED="ECONNABORTED";ee.ETIMEDOUT="ETIMEDOUT";ee.ECONNREFUSED="ECONNREFUSED";ee.ERR_NETWORK="ERR_NETWORK";ee.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ee.ERR_DEPRECATED="ERR_DEPRECATED";ee.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ee.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ee.ERR_CANCELED="ERR_CANCELED";ee.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ee.ERR_INVALID_URL="ERR_INVALID_URL";ee.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const YE=null,Ab=100;function Vf(e){return D.isPlainObject(e)||D.isArray(e)}function Ob(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function qd(e,t,n){return e?e.concat(t).map(function(o,c){return o=Ob(o),!n&&c?"["+o+"]":o}).join(n?".":""):t}function XE(e){return D.isArray(e)&&!e.some(Vf)}const JE=D.toFlatObject(D,{},null,function(t){return/^is[A-Z]/.test(t)});function Lc(e,t,n){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(P,C){return!D.isUndefined(C[P])});const r=n.metaTokens,o=n.visitor||E,c=n.dots,u=n.indexes,f=n.Blob||typeof Blob<"u"&&Blob,h=n.maxDepth===void 0?Ab:n.maxDepth,p=f&&D.isSpecCompliantForm(t),y=[];if(!D.isFunction(o))throw new TypeError("visitor must be a function");function x(_){if(_===null)return"";if(D.isDate(_))return _.toISOString();if(D.isBoolean(_))return _.toString();if(!p&&D.isBlob(_))throw new ee("Blob is not supported. Use a Buffer instead.");if(D.isArrayBuffer(_)||D.isTypedArray(_)){if(p&&typeof f=="function")return new f([_]);if(typeof Buffer<"u")return Buffer.from(_);throw new ee("Blob is not supported. Use a Buffer instead.",ee.ERR_NOT_SUPPORT)}return _}function v(_){if(_>h)throw new ee("Object is too deeply nested ("+_+" levels). Max depth: "+h,ee.ERR_FORM_DATA_DEPTH_EXCEEDED)}function w(_,P){if(h===1/0)return JSON.stringify(_);const C=[];return JSON.stringify(_,function(I,$){if(!D.isObject($))return $;for(;C.length&&C[C.length-1]!==this;)C.pop();return C.push($),v(P+C.length-1),$})}function E(_,P,C){let T=_;if(D.isReactNative(t)&&D.isReactNativeBlob(_))return t.append(qd(C,P,c),x(_)),!1;if(_&&!C&&typeof _=="object"){if(D.endsWith(P,"{}"))P=r?P:P.slice(0,-2),_=w(_,1);else if(D.isArray(_)&&XE(_)||(D.isFileList(_)||D.endsWith(P,"[]"))&&(T=D.toArray(_)))return P=Ob(P),T.forEach(function($,q){!(D.isUndefined($)||$===null)&&t.append(u===!0?qd([P],q,c):u===null?P:P+"[]",x($))}),!1}return Vf(_)?!0:(t.append(qd(C,P,c),x(_)),!1)}const j=Object.assign(JE,{defaultVisitor:E,convertValue:x,isVisitable:Vf});function S(_,P,C=0){if(!D.isUndefined(_)){if(v(C),y.indexOf(_)!==-1)throw new Error("Circular reference detected in "+P.join("."));y.push(_),D.forEach(_,function(I,$){(!(D.isUndefined(I)||I===null)&&o.call(t,I,D.isString($)?$.trim():$,P,j))===!0&&S(I,P?P.concat($):[$],C+1)}),y.pop()}}if(!D.isObject(e))throw new TypeError("data must be an object");return S(e),t}function Zy(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Ph(e,t){this._pairs=[],e&&Lc(e,this,t)}const Lb=Ph.prototype;Lb.append=function(t,n){this._pairs.push([t,n])};Lb.toString=function(t){const n=t?r=>t.call(this,r,Zy):Zy;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function ZE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Db(e,t,n){if(!t)return e;e=e||"";const r=D.isFunction(n)?{serialize:n}:n,o=D.getSafeProp(r,"encode")||ZE,c=D.getSafeProp(r,"serialize");let u;if(c?u=c(t,r):u=D.isURLSearchParams(t)?t.toString():new Ph(t,r).toString(o),u){const f=e.indexOf("#");f!==-1&&(e=e.slice(0,f)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class e0{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){D.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Th={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},eN=typeof URLSearchParams<"u"?URLSearchParams:Ph,tN=typeof FormData<"u"?FormData:null,nN=typeof Blob<"u"?Blob:null,sN={isBrowser:!0,classes:{
vendor: 2,427 bytes, line 260
260URLSearchParams:eN,FormData:tN,Blob:nN},protocols:["http","https","file","blob","url","data"]},Rh=typeof window<"u"&&typeof document<"u",Uf=typeof navigator=="object"&&navigator||void 0,rN=Rh&&(!Uf||["ReactNative","NativeScript","NS"].indexOf(Uf.product)<0),iN=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",oN=Rh&&window.location.href||"http://localhost",aN=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Rh,hasStandardBrowserEnv:rN,hasStandardBrowserWebWorkerEnv:iN,navigator:Uf,origin:oN},Symbol.toStringTag,{value:"Module"})),Nt={...aN,...sN};function lN(e,t){return Lc(e,new Nt.classes.URLSearchParams,{visitor:function(n,r,o,c){return Nt.isNode&&D.isBuffer(n)?(this.append(r,n.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)},...t})}const t0=Ab;function Ib(e){if(e>t0)throw new ee("FormData field is too deeply nested ("+e+" levels). Max depth: "+t0,ee.ERR_FORM_DATA_DEPTH_EXCEEDED)}function cN(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)Ib(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function uN(e){const t={},n=Object.keys(e);let r;const o=n.length;let c;for(r=0;r<o;r++)c=n[r],t[c]=e[c];return t}function Mb(e){function t(n,r,o,c){Ib(c);let u=n[c++];if(u==="__proto__")return!0;const f=Number.isFinite(+u),h=c>=n.length;return u=!u&&D.isArray(o)?o.length:u,h?(D.hasOwnProp(o,u)?o[u]=D.isArray(o[u])?o[u].concat(r):[o[u],r]:o[u]=r,!f):((!D.hasOwnProp(o,u)||!D.isObject(o[u]))&&(o[u]=[]),t(n,r,o[u],c)&&D.isArray(o[u])&&(o[u]=uN(o[u])),!f)}if(D.isFormData(e)&&D.isFunction(e.entries)){const n={};return D.forEachEntry(e,(r,o)=>{t(cN(r),o,n,0)}),n}return null}const yi=(e,t)=>e!=null&&D.hasOwnProp(e,t)?e[t]:void 0;function dN(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ca={transitional:Th,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,c=D.isObject(t);if(c&&D.isHTMLForm(t)&&(t=new FormData(t)),D.isFormData(t))return o?JSON.stringify(Mb(t)):t;if(D.isArrayBuffer(t)||D.isBuffer(t)||D.isStream(t)||D.isFile(t)||D.isBlob(t)||D.isReadableStream(t))return t;if(D.isArrayBufferView(t))return t.buffer;if(D.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;
vendor: 4,623 bytes, line 260
260if(c){const h=yi(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return lN(t,h).toString();if((f=D.isFileList(t))||r.indexOf("multipart/form-data")>-1){const p=yi(this,"env"),y=p&&p.FormData;return Lc(f?{"files[]":t}:t,y&&new y,h)}}return c||o?(n.setContentType("application/json",!1),dN(t)):t}],transformResponse:[function(t){const n=yi(this,"transitional")||Ca.transitional,r=n&&n.forcedJSONParsing,o=yi(this,"responseType"),c=o==="json";if(D.isResponse(t)||D.isReadableStream(t))return t;if(t&&D.isString(t)&&(r&&!o||c)){const f=!(n&&n.silentJSONParsing)&&c;try{return JSON.parse(t,yi(this,"parseReviver"))}catch(h){if(f)throw h.name==="SyntaxError"?ee.from(h,ee.ERR_BAD_RESPONSE,this,null,yi(this,"response")):h}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nt.classes.FormData,Blob:Nt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D.forEach(["delete","get","head","post","put","patch","query"],e=>{Ca.headers[e]={}});function Wd(e,t){const n=this||Ca,r=t||n,o=Bt.from(r.headers);let c=r.data;return D.forEach(e,function(f){c=f.call(n,c,o.normalize(),t?t.status:void 0)}),o.normalize(),c}function Fb(e){return!!(e&&e.__CANCEL__)}let Ea=class extends ee{constructor(t,n,r){super(t??"canceled",ee.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Bb(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ee("Request failed with status code "+n.status,n.status>=400&&n.status<500?ee.ERR_BAD_REQUEST:ee.ERR_BAD_RESPONSE,n.config,n.request,n))}function fN(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function hN(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,c=0,u;return t=t!==void 0?t:1e3,function(h){const p=Date.now(),y=r[c];u||(u=p),n[o]=h,r[o]=p;let x=c,v=0;for(;x!==o;)v+=n[x++],x=x%e;if(o=(o+1)%e,o===c&&(c=(c+1)%e),p-u<t)return;const w=y&&p-y;return w?Math.round(v*1e3/w):void 0}}function pN(e,t){let n=0,r=1e3/t,o,c;const u=(p,y=Date.now())=>{n=y,o=null,c&&(clearTimeout(c),c=null),e(...p)};return[(...p)=>{const y=Date.now(),x=y-n;x>=r?u(p,y):(o=p,c||(c=setTimeout(()=>{c=null,u(o)},r-x)))},()=>o&&u(o)]}const xc=(e,t,n=3)=>{let r=0;const o=hN(50,250);return pN(c=>{if(!c||typeof c.loaded!="number")return;const u=c.loaded,f=c.lengthComputable?c.total:void 0,h=f!=null?Math.min(u,f):u,p=Math.max(0,h-r),y=o(p);r=Math.max(r,h);const x={loaded:h,total:f,progress:f?h/f:void 0,bytes:p,rate:y||void 0,estimated:y&&f?(f-h)/y:void 0,event:c,lengthComputable:f!=null,[t?"download":"upload"]:!0};e(x)},n)},n0=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},s0=e=>(...t)=>D.asap(()=>e(...t)),mN=Nt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Nt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Nt.origin),Nt.navigator&&/(msie|trident)/i.test(Nt.navigator.userAgent)):()=>!0,gN=Nt.hasStandardBrowserEnv?{write(e,t,n,r,o,c,u){if(typeof document>"u")return;const f=[`${e}=${encodeURIComponent(t)}`];D.isNumber(n)&&f.push(`expires=${new Date(n).toUTCString()}`),D.isString(r)&&f.push(`path=${r}`),D.isString(o)&&f.push(`domain=${o}`),c===!0&&f.push("secure"),D.isString(u)&&f.push(`SameSite=${u}`),document.cookie=f.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===e)try{return decodeURIComponent(r.slice(o+1))}catch{return r.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function yN(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xN(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const vN=/^https?:(?!\/\/)/i,bN=/[\t\n\r]/g;function wN(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function _N(e){return wN(e).replace(bN,"")}function r0(e,t){if(typeof e=="string"&&vN.test(_N(e)))throw new ee('Invalid URL: missing "//" after protocol',ee.ERR_INVALID_URL,t)}function Vb(e,t,n,r){r0(t,r);let o=!yN(t);return e&&(o||n===!1)?(r0(e,r),xN(e,t)):t}const i0=e=>e instanceof Bt?{...e}:e;function qr(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(y,x,v,w){return D.isPlainObject(y)&&D.isPlainObject(x)?D.merge.call({caseless:w}
vendor: 1,643 bytes, line 260
260,y,x):D.isPlainObject(x)?D.merge({},x):D.isArray(x)?x.slice():x}function o(y,x,v,w){if(D.isUndefined(x)){if(!D.isUndefined(y))return r(void 0,y,v,w)}else return r(y,x,v,w)}function c(y,x){if(!D.isUndefined(x))return r(void 0,x)}function u(y,x){if(D.isUndefined(x)){if(!D.isUndefined(y))return r(void 0,y)}else return r(void 0,x)}function f(y){const x=D.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!D.isUndefined(x))if(D.isPlainObject(x)){if(D.hasOwnProp(x,y))return x[y]}else return;const v=D.hasOwnProp(e,"transitional")?e.transitional:void 0;if(D.isPlainObject(v)&&D.hasOwnProp(v,y))return v[y]}function h(y,x,v){if(D.hasOwnProp(t,v))return r(y,x);if(D.hasOwnProp(e,v))return r(void 0,y)}const p={url:c,method:c,data:c,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,allowedSocketPaths:u,responseEncoding:u,validateStatus:h,headers:(y,x,v)=>o(i0(y),i0(x),v,!0)};return D.forEach(Object.keys({...e,...t}),function(x){if(x==="__proto__"||x==="constructor"||x==="prototype")return;const v=D.hasOwnProp(p,x)?p[x]:o,w=D.hasOwnProp(e,x)?e[x]:void 0,E=D.hasOwnProp(t,x)?t[x]:void 0,j=v(w,E,x);D.isUndefined(j)&&v!==h||(n[x]=j)}),D.hasOwnProp(t,"validateStatus")&&D.isUndefined(t.validateStatus)&&f("validateStatusUndefinedResolves")===!1&&(D.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.val
vendor: 15,147 bytes, lines 260-266
260idateStatus),n}const SN=["content-type","content-length"];function kN(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,o])=>{SN.includes(r.toLowerCase())&&e.set(r,o)})}const jN=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function Ub(e){const t=qr({},e),n=v=>D.hasOwnProp(t,v)?t[v]:void 0,r=n("data");let o=n("withXSRFToken");const c=n("xsrfHeaderName"),u=n("xsrfCookieName");let f=n("headers");const h=n("auth"),p=n("baseURL"),y=n("allowAbsoluteUrls"),x=n("url");if(t.headers=f=Bt.from(f),t.url=Db(Vb(p,x,y,t),n("params"),n("paramsSerializer")),h){const v=D.getSafeProp(h,"username")||"",w=D.getSafeProp(h,"password")||"";try{f.set("Authorization","Basic "+btoa(v+":"+(w?jN(w):"")))}catch(E){throw ee.from(E,ee.ERR_BAD_OPTION_VALUE,e)}}if(D.isFormData(r)&&(Nt.hasStandardBrowserEnv||Nt.hasStandardBrowserWebWorkerEnv||D.isReactNative(r)?f.setContentType(void 0):D.isFunction(r.getHeaders)&&kN(f,r.getHeaders(),n("formDataHeaderPolicy"))),Nt.hasStandardBrowserEnv&&(D.isFunction(o)&&(o=o(t)),o===!0||o==null&&mN(t.url))){const w=c&&u&&gN.read(u);w&&f.set(c,w)}return t}const CN=typeof XMLHttpRequest<"u",EN=CN&&function(e){return new Promise(function(n,r){const o=Ub(e);let c=o.data;const u=Bt.from(o.headers).normalize();let{responseType:f,onUploadProgress:h,onDownloadProgress:p}=o,y,x,v,w,E;function j(){w&&w(),E&&E(),o.cancelToken&&o.cancelToken.unsubscribe(y),o.signal&&o.signal.removeEventListener("abort",y)}let S=new XMLHttpRequest;S.open(o.method.toUpperCase(),o.url,!0),S.timeout=o.timeout;function _(){if(!S)return;const C=Bt.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),I={data:!f||f==="text"||f==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:C,config:e,request:S};Bb(function(q){n(q),j()},function(q){r(q),j()},I),S=null}"onloadend"in S?S.onloadend=_:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.startsWith("file:"))||setTimeout(_)},S.onabort=function(){S&&(r(new ee("Request aborted",ee.ECONNABORTED,e,S)),j(),S=null)},S.onerror=function(T){const I=T&&T.message?T.message:"Network Error",$=new ee(I,ee.ERR_NETWORK,e,S);$.event=T||null,r($),j(),S=null},S.ontimeout=function(){let T=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const I=o.transitional||Th;o.timeoutErrorMessage&&(T=o.timeoutErrorMessage),r(new ee(T,I.clarifyTimeoutError?ee.ETIMEDOUT:ee.ECONNABORTED,e,S)),j(),S=null},c===void 0&&u.setContentType(null),"setRequestHeader"in S&&D.forEach(Tb(u),function(T,I){S.setRequestHeader(I,T)}),D.isUndefined(o.withCredentials)||(S.withCredentials=!!o.withCredentials),f&&f!=="json"&&(S.responseType=o.responseType),p&&([v,E]=xc(p,!0),S.addEventListener("progress",v)),h&&S.upload&&([x,w]=xc(h),S.upload.addEventListener("progress",x),S.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(y=C=>{S&&(r(!C||C.type?new Ea(null,e,S):C),S.abort(),j(),S=null)},o.cancelToken&&o.cancelToken.subscribe(y),o.signal&&(o.signal.aborted?y():o.signal.addEventListener("abort",y)));const P=fN(o.url);if(P&&!Nt.protocols.includes(P)){r(new ee("Unsupported protocol "+P+":",ee.ERR_BAD_REQUEST,e)),j();return}S.send(c||null)})},NN=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(h){if(!r){r=!0,u();const p=h instanceof Error?h:this.reason;n.abort(p instanceof ee?p:new Ea(p instanceof Error?p.message:p))}};let c=t&&setTimeout(()=>{c=null,o(new ee(`timeout of ${t}ms exceeded`,ee.ETIMEDOUT))},t);const u=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(o):h.removeEventListener("abort",o)}),e=null)};e.forEach(h=>h.addEventListener("abort",o,{once:!0}));const{signal:f}=n;return f.unsubscribe=()=>D.asap(u),f},PN=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},TN=async function*(e,t){for await(const n of RN(e))yield*PN(n,t)},RN=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},o0=(e,t,n,r)=>{const o=TN(e,t);let c=0,u,f=h=>{u||(u=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:p,value:y}=await o.next();if(p){f(),h.close();return}let x=y.byteLength;if(n){let v=c+=x;n(v)}h.enqueue(new Uint8Array(y))}catch(p){throw f(p),p}},cancel(h){return f(h),o.return()}},{highWaterMark:2})},vc=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,AN=(e,t,n)=>t+2<n&&vc(e.charCodeAt(t+1))&&vc(e.charCodeAt(t+2));function ON(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let u=r.length;const f=r.length;for(let w=0;w<f;w++)if(r.charCodeAt(w)===37&&w+2<f){const E=r.charCodeAt(w+1),j=r.charCodeAt(w+2);vc(E)&&vc(j)&&(u-=2,w+=2)}let h=0,p=f-1;const y=w=>w>=2&&r.charCodeAt(w-2)===37&&r.charCodeAt(w-1)===51&&(r.charCodeAt(w)===68||r.charCodeAt(w)===100);p>=0&&(r.charCodeAt(p)===61?(h++,p--):y(p)&&(h++,p-=3)),h===1&&p>=0&&(r.charCodeAt(p)===61||y(p))&&h++;const v=Math.floor(u/4)*3-(h||0);return v>0?v:0}let c=0;for(let u=0,f=r.length;u<f;u++){const h=r.charCodeAt(u);if(h===37&&AN(r,u,f))c+=1,u+=2;else if(h<128)c+=1;else if(h<2048)c+=2;else if(h>=55296&&h<=56319&&u+1<f){const p=r.charCodeAt(u+1);p>=56320&&p<=57343?(c+=4,u++):c+=3}else c+=3}return c}const Ah="1.18.1",a0=64*1024,{isFunction:Hl}=D,LN=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),l0=e=>{if(!D.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},c0=(e,...t)=>{try{return!!e(...t)}catch{return!1}},DN=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},IN=e=>{const t=D.global!==void 0&&D.global!==null?D.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=D.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:c,Response:u}=e,f=o?Hl(o):typeof fetch=="function",h=Hl(c),p=Hl(u);if(!f)return!1;const y=f&&Hl(n),x=f&&(typeof r=="function"?(_=>P=>_.encode(P))(new r):async _=>new Uint8Array(await new c(_).arrayBuffer())),v=h&&y&&c0(()=>{let _=!1;const P=new c(Nt.origin,{body:new n,method:"POST",get duplex(){return _=!0,"half"}}),C=P.headers.has("Content-Type");return P.body!=null&&P.body.cancel(),_&&!C}),w=p&&y&&c0(()=>D.isReadableStream(new u("").body)),E={stream:w&&(_=>_.body)};f&&["text","arrayBuffer","blob","formData","stream"].forEach(_=>{!E[_]&&(E[_]=(P,C)=>{let T=P&&P[_];if(T)return T.call(P);throw new ee(`Response type '${_}' is not supported`,ee.ERR_NOT_SUPPORT,C)})});const j=async _=>{if(_==null)return 0;if(D.isBlob(_))return _.size;if(D.isSpecCompliantForm(_))return(await new c(Nt.origin,{method:"POST",body:_}).arrayBuffer()).byteLength;if(D.isArrayBufferView(_)||D.isArrayBuffer(_))return _.byteLength;if(D.isURLSearchParams(_)&&(_=_+""),D.isString(_))return(await x(_)).byteLength},S=async(_,P)=>{const C=D.toFiniteNumber(_.getContentLength());return C??j(P)};return async _=>{let{url:P,method:C,data:T,signal:I,cancelToken:$,timeout:q,onDownloadProgress:M,onUploadProgress:U,responseType:Z,headers:pe,withCredentials:je="same-origin",fetchOptions:Te,maxContentLength:Ce,maxBodyLength:ge}=Ub(_);const fe=D.isNumber(Ce)&&Ce>-1,ce=D.isNumber(ge)&&ge>-1,Q=J=>D.hasOwnProp(_,J)?_[J]:void 0;let se=o||fetch;Z=Z?(Z+"").toLowerCase():"text";let z=NN([I,$&&$.toAbortSignal()],q),O=null;const H=z&&z.unsubscribe&&(()=>{z.unsubscribe()});let me,ve=null;const he=()=>new ee("Request body larger than maxBodyLength limit",ee.ERR_BAD_REQUEST,_,O);try{let J;const we=Q("auth");if(we){const W=D.getSafeProp(we,"username")||"",Re=D.getSafeProp(we,"password")||"";J={username:W,password:Re}}if(DN(P)){const W=new URL(P,Nt.origin);if(!J&&(W.username||W.password)){const Re=l0(W.username),Kt=l0(W.password);J={username:Re,password:Kt}}(W.username||W.password)&&(W.username="",W.password="",P=W.href)}if(J&&(pe.delete("authorization"),pe.set("Authorization","Basic "+btoa(LN((J.username||"")+":"+(J.password||""))))),fe&&typeof P=="string"&&P.startsWith("data:")&&ON(P)>Ce)throw new ee("maxContentLength size of "+Ce+" exceeded",ee.ERR_BAD_RESPONSE,_,O);if(ce&&C!=="get"&&C!=="head"){const W=await j(T);if(typeof W=="number"&&isFinite(W)&&(me=W,W>ge))throw he()}const Ne=ce&&(D.isReadableStream(T)||D.isStream(T)),_e=(W,Re,Kt)=>o0(W,a0,bt=>{if(ce&&bt>ge)throw ve=he();Re&&Re(bt)},Kt);if(v&&C!=="get"&&C!=="head"&&(U||Ne)){if(me=me??await S(pe,T),me!==0||Ne){let W=new c(P,{method:"POST",body:T,duplex:"half"}),Re;if(D.isFormData(T)&&(Re=W.headers.get("content-type"))&&pe.setContentType(Re),W.body){const[Kt,bt]=U&&n0(me,xc(s0(U)))||[];T=_e(W.body,Kt,bt)}}}else if(Ne&&!h&&y&&C!=="get"&&C!=="head")T=_e(T);else if(Ne&&h&&!v&&C!=="get"&&C!=="head")throw new ee("Stream request bodies are not supported by the current fetch implementation",ee.ERR_NOT_SUPPORT,_,O);D.isString(je)||(je=je?"include":"omit");const Je=h&&"credentials"in c.prototype;if(D.isFormData(T)){const W=pe.getContentType();W&&/^multipart\/form-data/i.test(W)&&!/boundary=/i.test(W)&&pe.delete("content-type")}pe.set("User-Agent","axios/"+Ah,!1);const Pt={...Te,signal:z,method:C.toUpperCase(),headers:Tb(pe.normalize()),body:T,duplex:"half",credentials:Je?je:void 0};O=h&&new c(P,Pt);let $e=await(h?se(O,Te):se(P,Pt));const Vt=Bt.from($e.headers);if(fe){const W=D.toFiniteNumber(Vt.getContentLength());if(W!=null&&W>Ce)throw new ee("maxContentLength size of "+Ce+" exceeded",ee.ERR_BAD_RESPONSE,_,O)}const Wt=w&&(Z==="stream"||Z==="response");if(w&&$e.body&&(M||fe||Wt&&H)){const W={};["status","statusText","headers"].forEach(Jn=>{W[Jn]=$e[Jn]});const Re=D.toFiniteNumber(Vt.getContentLength()),[Kt,bt]=M&&n0(Re,xc(s0(M),!0))||[];let gs=0;const ys=Jn=>{if(fe&&(gs=Jn,gs>Ce))throw new ee("maxContentLength size of "+Ce+" exceeded",ee.ERR_BAD_RESPONSE,_,O);Kt&&Kt(Jn)};$e=new u(o0($e.body,a0,ys,()=>{bt&&bt(),H&&H()}),W)}Z=Z||"text";let Ht=await E[D.findKey(E,Z)||"text"]($e,_);if(fe&&!w&&!Wt){let W;if(Ht!=null&&(typeof Ht.byteLength=="number"?W=Ht.byteLength:typeof Ht.size=="number"?W=Ht.size:typeof Ht=="string"&&(W=typeof r=="function"?new r().encode(Ht).byteLength:Ht.length)),typeof W=="number"&&W>Ce)throw new ee("maxContentLength size of "+Ce+" exceeded",ee.ERR_BAD_RESPONSE,_,O)}return!Wt&&H&&H(),await new Promise((W,Re)=>{Bb(W,Re,{data:Ht,headers:Bt.from($e.headers),status:$e.status,statusText:$e.statusText,config:_,request:O})})}catch(J){if(H&&H(),z&&z.aborted&&z.reason instanceof ee){const we=z.reason;throw we.config=_,O&&(we.request=O),J!==we&&Object.defineProperty(we,"cause",{__proto__:null,value:J,writable:!0,enumerable:!1,configurable:!0}),we}if(ve)throw O&&!ve.request&&(ve.request=O),ve;if(J instanceof ee)throw O&&!J.request&&(J.request=O),J;if(J&&J.name==="TypeError"&&/Load failed|fetch/i.test(J.message)){const we=new ee("Network Error",ee.ERR_NETWORK,_,O,J&&J.response);throw Object.defineProperty(we,"cause",{__proto__:null,value:J.cause||J,writable:!0,enumerable:!1,configurable:!0}),we}throw ee.from(J,J&&J.code,_,O,J&&J.response)}}},MN=new Map,zb=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,c=[r,o,n];let u=c.length,f=u,h,p,y=MN;for(;f--;)h=c[f],p=y.get(h),p===void 0&&y.set(h,p=f?new Map:IN(t)),y=p;return p};zb();const Oh={http:YE,xhr:EN,fetch:{get:zb}};D.forEach(Oh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const u0=e=>`- ${e}`,FN=e=>D.isFunction(e)||e===null||e===!1;function BN(e,t){e=D.isArray(e)?e:[e];const{length:n}=e;let r,o;const c={};for(let u=0;u<n;u++){r=e[u];let f;if(o=r,!FN(r)&&(o=Oh[(f=String(r)).toLowerCase()],o===void 0))throw new ee(`Unknown adapter '${f}'`);if(o&&(D.isFunction(o)||(o=o.get(t))))break;c[f||"#"+u]=o}if(!o){const u=Object.entries(c).map(([h,p])=>`adapter ${h} `+(p===!1?"is not supported by the environment":"is not available in the build"));let f=n?u.length>1?`since : 261`+u.map(u0).join(` 262`):" "+u0(u[0]):"as no adapter specified";throw new ee("There is no suitable adapter to dispatch the request "+f,ee.ERR_NOT_SUPPORT)}return o}const $b={getAdapter:BN,adapters:Oh};function Hd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ea(null,e)}function d0(e){return Hd(e),e.headers=Bt.from(e.headers),e.data=Wd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),$b.getAdapter(e.adapter||Ca.adapter,e)(e).then(function(r){Hd(e),e.response=r;try{r.data=Wd.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Bt.from(r.headers),r},function(r){if(!Fb(r)&&(Hd(e),r&&r.response)){e.response=r.response;try{r.response.data=Wd.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Bt.from(r.response.headers)}return Promise.reject(r)})}const Dc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Dc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const f0={};Dc.transitional=function(t,n,r){function o(c,u){return"[Axios v"+Ah+"] Transitional option '"+c+"'"+u+(r?". "+r:"")}return(c,u,f)=>{if(t===!1)throw new ee(o(u," has been removed"+(n?" in "+n:"")),ee.ERR_DEPRECATED);return n&&!f0[u]&&(f0[u]=!0,console.warn(o(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(c,u,f):!0}};Dc.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function VN(e,t,n){if(typeof e!="object"||e===null)throw new ee("options must be an object",ee.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const c=r[o],u=Object.prototype.hasOwnProperty.call(t,c)?t[c]:void 0;if(u){const f=e[c],h=f===void 0||u(f,c,e);if(h!==!0)throw new ee("option "+c+" must be "+h,ee.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ee("Unknown option "+c,ee.ERR_BAD_OPTION)}}const rc={assertOptions:VN,validators:Dc},Lt=rc.validators;let Vr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new e0,response:new e0}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const c=(()=>{if(!o.stack)return"";const u=o.stack.indexOf(` 263`);return u===-1?"":o.stack.slice(u+1)})();try{if(!r.stack)r.stack=c;else if(c){const u=c.indexOf(` 264`),f=u===-1?-1:c.indexOf(` 265`,u+1),h=f===-1?"":c.slice(f+1);String(r.stack).endsWith(h)||(r.stack+=` 266`+c)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=qr(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:c}=n;r!==void 0&&rc.assertOptions(r,{silentJSONParsing:Lt.transitional(Lt.boolean),forcedJSONParsing:Lt.transitional(Lt.boolean),clarifyTimeoutError:Lt.transitional(Lt.boolean),legacyInterceptorReqResOrdering:Lt.transitional(Lt.boolean),advertiseZstdAcceptEncoding:Lt.transitional(Lt.boolean),validateStatusUndefinedResolves:Lt.transitional(Lt.boolean)}
vendor: 3,165 bytes, line 266
266,!1),o!=null&&(D.isFunction(o)?n.paramsSerializer={serialize:o}:rc.assertOptions(o,{encode:Lt.function,serialize:Lt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),rc.assertOptions(n,{baseUrl:Lt.spelling("baseURL"),withXsrfToken:Lt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=c&&D.merge(c.common,c[n.method]);c&&D.forEach(["delete","get","head","post","put","patch","query","common"],E=>{delete c[E]}),n.headers=Bt.concat(u,c);const f=[];let h=!0;this.interceptors.request.forEach(function(j){if(typeof j.runWhen=="function"&&j.runWhen(n)===!1)return;h=h&&j.synchronous;const S=n.transitional||Th;S&&S.legacyInterceptorReqResOrdering?f.unshift(j.fulfilled,j.rejected):f.push(j.fulfilled,j.rejected)});const p=[];this.interceptors.response.forEach(function(j){p.push(j.fulfilled,j.rejected)});let y,x=0,v;if(!h){const E=[d0.bind(this),void 0];for(E.unshift(...f),E.push(...p),v=E.length,y=Promise.resolve(n);x<v;)y=y.then(E[x++],E[x++]);return y}v=f.length;let w=n;for(;x<v;){const E=f[x++],j=f[x++];try{w=E(w)}catch(S){j.call(this,S);break}}try{y=d0.call(this,w)}catch(E){return Promise.reject(E)}for(x=0,v=p.length;x<v;)y=y.then(p[x++],p[x++]);return y}getUri(t){t=qr(this.defaults,t);const n=Vb(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Db(n,t.params,t.paramsSerializer)}};D.forEach(["delete","get","head","options"],function(t){Vr.prototype[t]=function(n,r){return this.request(qr(r||{},{method:t,url:n,data:r&&D.hasOwnProp(r,"data")?r.data:void 0}))}});D.forEach(["post","put","patch","query"],function(t){function n(r){return function(c,u,f){return this.request(qr(f||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:c,data:u}))}}Vr.prototype[t]=n(),t!=="query"&&(Vr.prototype[t+"Form"]=n(!0))});let UN=class qb{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(c){n=c});const r=this;this.promise.then(o=>{if(!r._listeners)return;let c=r._listeners.length;for(;c-- >0;)r._listeners[c](o);r._listeners=null}),this.promise.then=o=>{let c;const u=new Promise(f=>{r.subscribe(f),c=f}).then(o);return u.cancel=function(){r.unsubscribe(c)},u},t(function(c,u,f){r.reason||(r.reason=new Ea(c,u,f),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new qb(function(o){t=o}),cancel:t}}};function zN(e){return function(n){return e.apply(null,n)}}function $N(e){return D.isObject(e)&&e.isAxiosError===!0}const zf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
266alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(zf).forEach(([e,t])=>{zf[t]=e});function Wb(e){const t=new Vr(e),n=wb(Vr.prototype.request,t);return D.extend(n,Vr.prototype,t,{allOwnKeys:!0}),D.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Wb(qr(e,o))},n}const it=Wb(Ca);it.Axios=Vr;it.CanceledError=Ea;it.CancelToken=UN;it.isCancel=Fb;it.VERSION=Ah;it.toFormData=Lc;it.AxiosError=ee;it.Cancel=it.CanceledError;it.all=function(t){return Promise.all(t)};it.spread=zN;it.isAxiosError=$N;it.mergeConfig=qr;it.AxiosHeaders=Bt;it.formToJSON=e=>Mb(D.isHTMLForm(e)?new FormData(e):e);it.getAdapter=$b.getAdapter;it.HttpStatusCode=zf;it.default=it;const{Axios:LL,AxiosError:DL,CanceledError:IL,isCancel:ML,CancelToken:FL,VERSION:BL,all:VL,Cancel:UL,isAxiosError:zL,spread:$L,toFormData:qL,AxiosHeaders:WL,HttpStatusCode:HL,formToJSON:KL,getAdapter:GL,mergeConfig:QL,create:YL}=it,Hb=typeof window>"u",h0=!Hb&&window.self!==window.top,qN=!Hb&&typeof document>"u",Kb=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),jt=[];for(let e=0;e<256;++e)jt.push((e+256).toString(16).slice(1));function WN(e,t=0){return(jt[e[t+0]]+jt[e[t+1]]+jt[e[t+2]]+jt[e[t+3]]+"-"+jt[e[t+4]]+jt[e[t+5]]+"-"+jt[e[t+6]]+jt[e[t+7]]+"-"+jt[e[t+8]]+jt[e[t+9]]+"-"+jt[e[t+10]]+jt[e[t+11]]+jt[e[t+12]]+jt[e[t+13]]+jt[e[t+14]]+jt[e[t+15]]).toLowerCase()}let Kd;const HN=new Uint8Array(16);function KN(){if(!Kd){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Kd=crypto.getRandomValues.bind(crypto)}return Kd(HN)}const GN=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),p0={randomUUID:GN};function QN(e,t,n){var o;e=e||{};const r=e.random??((o=e.rng)==null?void 0:o.call(e))??KN();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,WN(r)}function YN(e,t,n){return p0.randomUUID&&!e?p0.randomUUID():QN(e)}const $o=typeof window<"u"?window:{base44SharedInstances:{}};function XN(e,t){return $o.base44SharedInstances||($o.base44SharedInstances={}),$o.base44SharedInstances[e]||($o.base44SharedInstances[e]={instance:t()}),$o.base44SharedInstances[e].instance}const JN="__user_heartbeat_event__",ZN="__initialization_event__",eP="__session_duration_event__",m0="analytics-enable",g0="base44_analytics_session_id",tP={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},nP="analytics",Ve=XN(nP,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,fallbackSessionId:null,config:{...tP,...uP()}})),sP=({axiosClient:e,serverUrl:t,appId:n,userAuthModule:r,enabled:o})=>{var c;const{maxQueueSize:u,throttleTime:f,batchSize:h}=Ve.config;if(!o||!(!((c=Ve.config)===null||c===void 0)&&c.enabled)||qN)return{track:()=>{},cleanup:()=>{}};let p;const y=`${t}/api/apps/${n}/analytics/track/batch`,x=async T=>{await e.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:T}})},v=T=>{try{const I=JSON.stringify({events:T}),$=new Blob([I],{type:"application/json"});return typeof navigator>"u"||I.length>6e4||!navigator.sendBeacon(y,$)}catch{return!1}},w=async(T,I={})=>
266{if(T.length===0)return;const $=await cP(r),q=T.map(lP($));try{(!I.isBeacon||!v(q))&&await x(q)}catch{}},E=()=>{x0(w,{throttleTime:f,batchSize:h})},j=T=>{if(Ve.requestsQueue.length>=u)return;const I=aP();Ve.requestsQueue.push({...T,...I}),E()},S=()=>{x0(w,{throttleTime:f,batchSize:h}),p=v0(j),iP()},_=()=>{y0(),p==null||p(),oP(j);const T=Ve.requestsQueue.splice(0);w(T,{isBeacon:!0})},P=()=>{typeof window>"u"||(document.visibilityState==="hidden"?_():document.visibilityState==="visible"&&S())},C=()=>{y0(),p==null||p(),typeof window<"u"&&window.removeEventListener("visibilitychange",P)};return E(),p=v0(j),rP(j),typeof window<"u"&&window.addEventListener("visibilitychange",P),{track:j,cleanup:C}};function y0(){Ve.isProcessing=!1}async function x0(e,t){if(Ve.isProcessing)return;Ve.isProcessing=!0;const{throttleTime:n=1e3,batchSize:r=30}=t??{};for(;Ve.isProcessing&&Ve.requestsQueue.length>0;){const o=Ve.requestsQueue.splice(0,r);o.length&&await e(o),await new Promise(c=>setTimeout(c,n))}Ve.isProcessing=!1}function v0(e){var t;if(typeof window>"u"||Ve.isHeartBeatProcessing||((t=Ve.config.heartBeatInterval)!==null&&t!==void 0?t:0)<10)return()=>{};Ve.isHeartBeatProcessing=!0;const n=setInterval(()=>{e({eventName:JN})},Ve.config.heartBeatInterval);return()=>{clearInterval(n),Ve.isHeartBeatProcessing=!1}}function rP(e){typeof window>"u"||Ve.wasInitializationTracked||(Ve.wasInitializationTracked=!0,e({eventName:ZN,properties:{referrer:document==null?void 0:document.referrer}}))}function iP(){typeof window>"u"||Ve.sessionStartTime!==null||(Ve.sessionStartTime=new Date().toISOString())}function oP(e){if(typeof window>"u"||Ve.sessionStartTime===null)return;const t=new Date().getTime()-new Date(Ve.sessionStartTime).getTime();Ve.sessionStartTime=null,e({eventName:eP,properties:{sessionDuration:t}})}function aP(){var e,t;return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"&&(t=(e=window.location)===null||e===void 0?void 0:e.pathname)!==null&&t!==void 0?t:null}}function lP(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let Yo=null;function b0(){Ve.sessionContext=null,Yo=null}async function cP(e){if(!Ve.sessionContext){if(!e.hasToken())return{user_id:null,session_id:bc()};if(!Yo){const r=bc();Yo=e.me().then(o=>({user_id:o.id,session_id:r})).catch(()=>({user_id:null,session_id:r}))}const t=Yo,n=await t;return Yo===t&&(Ve.sessionContext=n),n}return Ve.sessionContext}function uP(){if(typeof window>"u"||!window.location)return;const t=new URLSearchParams(window.location.search).get(m0);if(t==null||!t.length)return;const n=new URLSearchParams(window.location.search);n.delete(m0);const r=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",r),{enabled:t==="true"}}function w0(){var e;return(e=Ve.fallbackSessionId)!==null&&e!==void 0?e:Ve.fallbackSessionId=Kb()}function bc(){if(typeof window>"u")return w0();try{const e=localStorage.getItem(g0);if(!e){const t=Kb();return localStorage.setItem(g0,t),t}return e}catch{return w0()}}class dP extends Error{constructor(t,n,r,o,c){super(t),this.name="Base44Error",this.status=n,this.code=r,this.data=o,this.originalError=c}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function qo({baseURL:e,headers:t={},token:n,interceptResponses:r=!0,onError:o}){const c=it.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...t}});return n&&(c.defaults.headers.common.Authorization=`Bearer ${n}`),c.interceptors.request.use(u=>{typeof window<"u"&&(window.location&&u.headers.set("X-Origin-URL",window.location.href),u.headers.get("Authorization")||u.headers.set("X-Base44-Anonymous-Id",bc()));const f=YN();if(u.requestId=f,h0)try{window.parent.postMessage({type:"api-request-start",requestId:f,data:{url:e+u.url,method:u.method,body:u.data instanceof FormData?"[FormData object]":u.data}},"*")}catch{}return u}),r&&c.interceptors.response.use(u=>{var f;const h=(f=u.config)===null||f===void 0?void 0:f.requestId;try{h0&&h&&window.parent.postMessage({type:"api-request-end",requestId:h,data:{statusCode:u.status,response:u.data}},"*")}catch{}return u.data},u=>{var f,h,p,y,x,v,w,E,j,S,_,P;const C=(f=u.response)===null||f===void 0?void 0:f.data,T=((h=C==null?void 0:C.error)===null||h===void 0?void 0:h.message)||(C==null?void 0:C.message)||(C==null?void 0:C.detail)||u.message,I=new dP(T,(p=u.response)===null||p===void 0?void 0:p.status,(S=(v=(x=(y=C==null?void 0:C.error)===null||y===void 0?void 0:y.code)!==null&&x!==void 0?x:C==null?void 0:C.code)!==null&&v!==void 0?v:(j=(E=(w=u.response)===null||w===void 0?void 0:w.headers)===null||E===void 0?void 0:E.get)===null||j===void 0?void 0:j.call(E,"x-base44-connector-error"))!==null&&S!==void 0?S:(P=(_=u.response)===null||_===void 0?void 0:_.headers)===null||P===void 0?void 0:P["x-base44-connector-error"],C,u);return o==null||o(I),Promise.reject(I)}),c}function _0(e){const{axios:t,appId:n,getSocket:r}=e;return new Proxy({},{get(o,c){if(!(typeof c!="string"||c==="then"||c.startsWith("_")))return pP(t,n,c,r)}})}function fP(e){var t;try{const n=JSON.parse(e);return{type:n.type,data:n.data,id:n.id||((t=n.data)===null||t===void 0?void 0:t.id),timestamp:n.timestamp||new Date().toISOString()}}catch(n){return console.warn("[Base44 SDK] Failed to parse realtime message:",n),null}}const hP=100;function S0(e){return typeof e=="object"&&e!==null}function pP(e,t,n,r){const o=`/apps/${t}/entities/${n}`,c=h=>Array.isArray(h)?h.join(","):h,u=(h,p,y,x,v)=>{const w={};return v&&(w.q=JSON.stringify(v)),h&&(w.sort=h),p&&(w.limit=p),y&&(w.skip=y),x&&(w.fields=c(x)),e.get(o,{params:w})},f=(h,p)=>{const y={};return p&&(y.q=JSON.stringify(p)),y.limit=h.limit||hP,h.cursor&&(y.cursor=h.cursor),"distinct"in h?y.distinct=h.distinct:(h.sort&&(y.sort=h.sort),h.fields&&(y.fields=c(h.fields))),e.get(`${o}/v2/list`,{params:y})};return{async list(...h){const[p,y,x,v]=h;return S0(p)?f(p):u(p,y,x,v)},async filter(h,...p){const[y,x,v,w]=p;return S0(y)?f(y,h):u(y,x,v,w,h)},async get(h){return e.get(`${o}/${h}`)},async create(h){return e.post(o,h)},async update(h,p){return e.put(`${o}/${h}`,p)},async delete(h){return e.delete(`${o}/${h}`)},async deleteMany(h){return e.delete(o,{data:h})},async bulkCreate(h){return e.post(`${o}/bulk`,h)},async updateMany(h,p){return e.patch(`${o}/update-many`,{query:h,data:p})},async count(h){const p={};return h&&(p.q=JSON.stringify(h)),(await e.get(`${o}/count`,{params:p})).count},async aggregate(h){return e.post(`${o}/aggregate`,h)},async upsert(h,p){return e.post(`${o}/upsert`,{records:h,key:p.key})},async bulkUpdate(h){return e.put(`${o}/bulk`,h)},async importEntities(h){const p=new FormData;return p.append("file",h,h.name),e.post(`${o}/import`,p,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(h){const p=`entities:${t}:${n}`;return r().subscribeToRoom(p,{update_model:v=>{var w;const E=fP(v.data);if(E){E.type!=="delete"&&(!((w=E.data)===null||w===void 0)&&w._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${E.id} was oversize and got slimmed for transport. Fields >10 KB are empty and the rest of the record may be a stub. Call \`entities.${n}.get("${E.id}")\` to fetch the full record.`);try{h(E)}catch(j){console.error("[Base44 SDK] Subscription callback error:",j)}}}})}}}function mP(e,t){return{async call(n,r,o){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(r!=null&&r.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:c,queryParams:u,...f}=o??{},h={...f,...c&&{path_params:c},...u&&{query_params:u}};return await e.post(`/apps/${t}/integrations/custom/${n}/${r}`,h)}}}function k0(e,t){const n=mP(e,t);return new Proxy({},{get(r,o){if(!(typeof o!="string"||o==="then"||o.startsWith("_")))return o==="custom"?n:new Proxy({},{get(c,u){if(!(typeof u!="string"||u==="then"||u.startsWith("_")))return async f=>{if(typeof f=="string")throw new Error(`Integration ${u} must receive an object with named parameters, received: ${f}`);let h,p;
266return f instanceof FormData||f&&Object.values(f).some(y=>y instanceof File)?(h=new FormData,Object.keys(f).forEach(y=>{f[y]instanceof File?h.append(y,f[y],f[y].name):typeof f[y]=="object"&&f[y]!==null?h.append(y,JSON.stringify(f[y])):h.append(y,f[y])}),p="multipart/form-data"):(h=f,p="application/json"),o==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${u}`,h||f,{headers:{"Content-Type":p}}):e.post(`/apps/${t}/integration-endpoints/installable/${o}/integration-endpoints/${u}`,h||f,{headers:{"Content-Type":p}})}}})}})}function gP(){return typeof window>"u"?!1:window!==window.parent}function yP(e,t,n){const c=Math.round(window.screenX+(window.outerWidth-500)/2),u=Math.round(window.screenY+(window.outerHeight-600)/2),f=window.open(e,"base44_auth",`width=500,height=600,left=${c},top=${u},resizable=yes,scrollbars=yes`);if(!f)return;const h=()=>{window.removeEventListener("message",p),clearInterval(y),f.closed||f.close()},p=x=>{var v;if(x.origin!==n||x.source!==f||!(!((v=x.data)===null||v===void 0)&&v.access_token))return;h();const w=new URL(t),{access_token:E,is_new_user:j}=x.data;w.searchParams.set("access_token",E),j!=null&&w.searchParams.set("is_new_user",String(j)),window.location.href=w.toString()},y=setInterval(()=>{f.closed&&h()},500);window.addEventListener("message",p)}function xP(e,t,n,r){let o=null;const c=()=>{o=null};let u=!!r.token;return{hasToken(){return u},async me(){const f=o??e.get(`/apps/${n}/entities/User/me`).finally(()=>{o===f&&(o=null)});return o=f,f},async updateMe(f){return e.put(`/apps/${n}/entities/User/me`,f)},redirectToLogin(f){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const h=f?new URL(f,window.location.origin).toString():window.location.href,p=`${r.appBaseUrl}/login?from_url=${encodeURIComponent(h)}`;window.location.href=p},loginWithProvider(f,h="/"){const p=new URL(h,window.location.origin).toString(),y=`app_id=${n}&from_url=${encodeURIComponent(p)}`;let x;f==="sso"?x=`/apps/${n}/auth/sso/login`:x=`/apps/auth${f==="google"?"":`/${f}`}/login`;const v=`${r.appBaseUrl}/api${x}?${y}`;if(gP()){const w=`${v}&popup_origin=${encodeURIComponent(window.location.origin)}`;return yP(w,p,window.location.origin)}window.location.href=v},logout(f){if(delete e.defaults.headers.common.Authorization,c(),b0(),u=!1,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(y){console.error("Failed to remove token from localStorage:",y)}const h=f||window.location.href,p=`${r.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(h)}`;window.location.href=p}},setToken(f,h=!0){if(f&&(c(),b0(),u=!0,e.defaults.headers.common.Authorization=`Bearer ${f}`,t.defaults.headers.common.Authorization=`Bearer ${f}`,h&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",f),window.localStorage.setItem("token",f)}catch(p){console.error("Failed to save token to localStorage:",p)}},async loginViaEmailPassword(f,h,p){var y;try{const x=await e.post(`/apps/${n}/auth/login`,{email:f,password:h,...p&&{turnstile_token:p}}),{access_token:v,user:w}=x;return v&&this.setToken(v),{access_token:v,user:w}}catch(x){throw((y=x.response)===null||y===void 0?void 0:y.status)===401&&await this.logout(),x}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(f,h){return e.post(`/apps/${n}/users/invite-user`,{user_email:f,role:h})},register(f){return e.post(`/apps/${n}/auth/register`,f)},verifyOtp({email:f,otpCode:h}){return e.post(`/apps/${n}/auth/verify-otp`,{email:f,otp_code:h})},resendOtp(f){return e.post(`/apps/${n}/auth/resend-otp`,{email:f})},resetPasswordRequest(f){return e.post(`/apps/${n}/auth/reset-password-request`,{email:f})},resetPassword({resetToken:f,newPassword:h}){return e.post(`/apps/${n}/auth/reset-password`,{reset_token:f,new_password:h})},changePassword({userId:f,currentPassword:h,newPassword:p}){return e.post(`/apps/${n}/auth/change-password`,{user_id:f,current_password:h,new_password:p})}}}function vP(e,t){return{async getAccessToken(n){const r=`/apps/${t}/auth/sso/accesstoken/${n}`;return e.get(r)},async getIdToken(n){const r=`/apps/${t}/auth/sso/idtoken/${n}`;return e.get(r)}}}const bP=new Set(["GET","POST","PUT","PATCH","DELETE","HEAD"]);
266function wP(e,t){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`)).access_token},async getConnection(n){var r;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const c=await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`);return{accessToken:c.access_token,connectionConfig:(r=c.connection_config)!==null&&r!==void 0?r:null}},async getWorkspaceConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const c=await e.get(`/apps/${t}/external-auth/tokens/connectors/${encodeURIComponent(n)}`);return{accessToken:c.access_token,connectionConfig:(r=c.connection_config)!==null&&r!==void 0?r:null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`)).access_token},async getCurrentAppUserConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const c=await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`);return{accessToken:c.access_token,connectionConfig:(r=c.connection_config)!==null&&r!==void 0?r:null}},async callApi(n,r){return Gb(n,"Integration type"),_P(e,`/apps/${t}/connectors/${encodeURIComponent(n)}/call`,r)}}}function Gb(e,t){if(!e||typeof e!="string")throw new Error(`${t} is required and must be a string`)}async function _P(e,t,n){var r,o,c,u,f,h,p,y,x;if(!n||typeof n!="object")throw new Error("Request is required and must be an object");Gb(n.path,"Request path");const v=(r=n.method)!==null&&r!==void 0?r:"GET";if(!bP.has(v))throw new Error("Request method must be one of GET, POST, PUT, PATCH, DELETE, or HEAD");const E=await e.post(t,{method:v,...n.host==null?{}:{host:n.host},path:n.path,query:(o=n.query)!==null&&o!==void 0?o:{},headers:(c=n.headers)!==null&&c!==void 0?c:{},body:(u=n.body)!==null&&u!==void 0?u:null});return{success:E.success,phase:E.phase,status:(f=E.status_code)!==null&&f!==void 0?f:null,data:E.data,dataBase64:(h=E.data_base64)!==null&&h!==void 0?h:null,contentType:(p=E.content_type)!==null&&p!==void 0?p:null,headers:(y=E.headers)!==null&&y!==void 0?y:{},creditsCharged:(x=E.credits_charged)!==null&&x!==void 0?x:0}}function SP(e,t){return{async connectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.post(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/initiate`)).redirect_url},async disconnectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");await e.delete(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}`)}}}function Ys(e={}){const{storageKey:t="base44_access_token",paramName:n="access_token",saveToStorage:r=!0,removeFromUrl:o=!0}=e;let c=null;if(typeof window<"u"&&window.location)try{const u=new URLSearchParams(window.location.search);if(c=u.get(n),c){if(r&&kP(c,{storageKey:t}),o){u.delete(n);const f=`${window.location.pathname}${u.toString()?`?${u.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,f)}return c}}catch(u){console.error("Error retrieving token from URL:",u)}if(typeof window<"u"&&window.localStorage)try{return c=window.localStorage.getItem(t),c}catch(u){console.error("Error retrieving token from local storage:",u)}return null}function kP(e,t){const{storageKey:n="base44_access_token"}=t;if(typeof window>"u"||!window.localStorage||!e)return!1;try{return window.localStorage.setItem(n,e),window.localStorage.setItem("token",e),!0}catch(r){return console.error("Error saving token to local storage:",r),!1}}function jP({axios:e,serviceRoleAxios:t,appId:n,serverUrl:r,functionsVersion:o,platformHeaders:c}){const u=new Headers(c),f=h=>{const p=h.defaults.headers.common.Authorization;return typeof p=="string"&&p.startsWith("Bearer ")?p:null};return async function(p,y={}){CP(p);const{fetch:x=fetch,...v}=y,w=new Headers(y.headers),E=(j,S)=>{S&&!w.has(j)&&w.set(j,S)};return E("Authorization",f(e)),E("Base44-Service-Authorization",f(t)),E("Base44-App-Id",n),E("Base44-Api-Url",r),E("Base44-Functions-Version",o),E("Base44-State",u.get("Base44-State")),E("X-Data-Env",u.get("X-Data-Env")),x(p,{...v,headers:w})}}function CP(e){if(typeof e!="string"||e==="")throw new Error("fetchWithAuth() requires a path, such as '/api/orders'.");const t=e.replace(/[\t\n\r]/g,"").replace(/^[\x00-\x20]+/,"");if(!t.startsWith("/")||t.startsWith("//")||t.startsWith("/\\"))throw new Error(`fetchWithAuth() only sends requests to your app's own origin, so your app's credentials never reach a third party. "${e}" is not a path on it â pass a relative path such as '/api/orders'. Use base44.functions.fetch() to call a Base44 backend function, or plain fetch() for another origin.`)}function j0(e,t,n){const r=(c,u)=>c?`${String(c).replace(/\/$/,"")}${u}`:u,o=c=>{const u=new Headers;if(n!=null&&n.getAuthHeaders){const f=n.getAuthHeaders();Object.entries(f).forEach(([h,p])=>{p!=null&&u.set(h,String(p))})}
266return c&&new Headers(c).forEach((f,h)=>{u.set(h,f)}),u};return{async invoke(c,u){if(typeof u=="string")throw new Error(`Function ${c} must receive an object with named parameters, received: ${u}`);let f,h;return u instanceof FormData||u&&Object.values(u).some(p=>p instanceof File)?(f=new FormData,Object.keys(u).forEach(p=>{u[p]instanceof File?f.append(p,u[p],u[p].name):typeof u[p]=="object"&&u[p]!==null?f.append(p,JSON.stringify(u[p])):f.append(p,u[p])}),h="multipart/form-data"):(f=u,h="application/json"),e.post(`/apps/${t}/functions/${c}`,f||u,{headers:{"Content-Type":h}})},async fetch(c,u={}){const h=`/functions${c.startsWith("/")?c:`/${c}`}`,p=o(u.headers),y={...u,headers:p};return await fetch(r(n==null?void 0:n.baseURL,h),y)}}}function C0({axios:e,getSocket:t,appId:n,serverUrl:r,token:o}){const c=`/apps/${n}/agents`,u={},f=()=>e.get(`${c}/conversations`),h=j=>e.get(`${c}/conversations/${j}`);return{getConversations:f,getConversation:h,listConversations:j=>e.get(`${c}/conversations`,{params:j}),createConversation:j=>e.post(`${c}/conversations`,j),addMessage:async(j,S)=>e.post(`${c}/conversations/v2/${j.id}/messages`,S),subscribeToConversation:(j,S)=>{const _=`/agent-conversations/${j}`,P=t(),C=h(j).then(T=>(u[j]=T,T));return P.subscribeToRoom(_,{connect:()=>{},update_model:async({data:T})=>{const I=JSON.parse(T);if(I._message){await C;const $=I._message,q=u[j];if(q){const M=q.messages||[],U=M.findIndex(pe=>pe.id===$.id),Z=U!==-1?M.map((pe,je)=>je===U?$:pe):[...M,$];u[j]={...q,messages:Z},S==null||S(u[j])}}}})},getWhatsAppConnectURL:j=>{const S=`${r}/api/apps/${n}/agents/${encodeURIComponent(j)}/whatsapp`,_=o??Ys();return _?`${S}?token=${_}`:S},getTelegramConnectURL:j=>{const S=`${r}/api/apps/${n}/agents/${encodeURIComponent(j)}/telegram`,_=o??Ys();return _?`${S}?token=${_}`:S}}}const E0={openai:"openai",typesafe:"typesafe"};function N0({serverUrl:e,token:t,appId:n}){return{connection:({provider:o="openai"}={})=>{var c;if(!Object.prototype.hasOwnProperty.call(E0,o))throw new Error(`Unsupported AI Gateway provider: ${o}`);const u=E0[o];return{baseURL:`${e}/api/apps/${n}/ai/${u}/v1`,token:(c=t??Ys())!==null&&c!==void 0?c:""}}}}function P0(e,t){const n=`/app-logs/${t}`;return{async logUserInApp(r){await e.post(`${n}/log-user-in-app/${r}`)},async fetchLogs(r={}){return await e.get(n,{params:r})},async getStats(r={}){return await e.get(`${n}/stats`,{params:r})}}}function EP(e,t){return{async getPublicSettings(){return e.get(`/apps/public/prod/public-settings/by-id/${t}`)}}}function NP(e,t){return{async inviteUser(n,r){if(r!=="user"&&r!=="admin")throw new Error(`Invalid role: "${r}". Role must be either "user" or "admin".`);return await e.post(`/apps/${t}/runtime/users/invite-user`,{user_email:n,role:r})}}}const Xn=Object.create(null);Xn.open="0";Xn.close="1";Xn.ping="2";Xn.pong="3";Xn.message="4";Xn.upgrade="5";Xn.noop="6";const ic=Object.create(null);Object.keys(Xn).forEach(e=>{ic[Xn[e]]=e});const $f={type:"error",data:"parser error"},Qb=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Yb=typeof ArrayBuffer=="function",Xb=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Lh=({type:e,data:t},n,r)=>Qb&&t instanceof Blob?n?r(t):T0(t,r):Yb&&(t instanceof ArrayBuffer||Xb(t))?n?r(t):T0(new Blob([t]),r):r(Xn[e]+(t||"")),T0=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function R0(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Gd;function PP(e,t){if(Qb&&e.data instanceof Blob)return e.data.arrayBuffer().then(R0).then(t);if(Yb&&(e.data instanceof ArrayBuffer||Xb(e.data)))return t(R0(e.data));Lh(e,!1,n=>{Gd||(Gd=new TextEncoder),t(Gd.encode(n))})}const A0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<A0.length;e++)Xo[A0.charCodeAt(e)]=e;const TP=e=>{let t=e.length*.75,n=e.length,r,o=0,c,u,f,h;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const p=new ArrayBuffer(t),y=new Uint8Array(p);for(r=0;r<n;r+=4)c=Xo[e.charCodeAt(r)],u=Xo[e.charCodeAt(r+1)],f=Xo[e.charCodeAt(r+2)],h=Xo[e.charCodeAt(r+3)],y[o++]=c<<2|u>>4,y[o++]=(u&15)<<4|f>>2,y[o++]=(f&3)<<6|h&63;return p},RP=typeof ArrayBuffer=="function",Dh=(e,t)=>{if(typeof e!="string")return{type:"message",data:Jb(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:AP(e.substring(1),t)}:ic[n]?e.length>1?{type:ic[n],data:e.substring(1)}:{type:ic[n]}:$f},AP=(e,t)=>{if(RP){const n=TP(e);return Jb(n,t)}else return{base64:!0,data:e}},Jb=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Zb="�",OP=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((c,u)=>{Lh(c,!1,f=>{r[u]=f,++o===n&&t(r.join(Zb))})})},LP=(e,t)=>
vendor: 3,901 bytes, line 266
266{const n=e.split(Zb),r=[];for(let o=0;o<n.length;o++){const c=Dh(n[o],t);if(r.push(c),c.type==="error")break}return r};function DP(){return new TransformStream({transform(e,t){PP(e,n=>{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const c=new DataView(o.buffer);c.setUint8(0,126),c.setUint16(1,r)}else{o=new Uint8Array(9);const c=new DataView(o.buffer);c.setUint8(0,127),c.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Qd;function Kl(e){return e.reduce((t,n)=>t+n.length,0)}function Gl(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function IP(e,t){Qd||(Qd=new TextDecoder);const n=[];let r=0,o=-1,c=!1;return new TransformStream({transform(u,f){for(n.push(u);;){if(r===0){if(Kl(n)<1)break;const h=Gl(n,1);c=(h[0]&128)===128,o=h[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(Kl(n)<2)break;const h=Gl(n,2);o=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),r=3}else if(r===2){if(Kl(n)<8)break;const h=Gl(n,8),p=new DataView(h.buffer,h.byteOffset,h.length),y=p.getUint32(0);if(y>Math.pow(2,21)-1){f.enqueue($f);break}o=y*Math.pow(2,32)+p.getUint32(4),r=3}else{if(Kl(n)<o)break;const h=Gl(n,o);f.enqueue(Dh(c?h:Qd.decode(h),t)),r=0}if(o===0||o>e){f.enqueue($f);break}}}})}const ew=4;function dt(e){if(e)return MP(e)}function MP(e){for(var t in dt.prototype)e[t]=dt.prototype[t];return e}dt.prototype.on=dt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};dt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};dt.prototype.off=dt.prototype.removeListener=dt.prototype.removeAllListeners=dt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};dt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this};dt.prototype.emitReserved=dt.prototype.emit;dt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};dt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Ic=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Sn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),FP="arraybuffer";function tw(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const BP=Sn.setTimeout,VP=Sn.clearTimeout;function Mc(e,t){t.useNativeTimers?(e.setTimeoutFn=BP.bind(Sn),e.clearTimeoutFn=VP.bind(Sn)):(e.setTimeoutFn=Sn.setTimeout.bind(Sn),e.clearTimeoutFn=Sn.clearTimeout.bind(Sn))}const UP=1.33;function zP(e){return typeof e=="string"?$P(e):Math.ceil((e.byteLength||e.size)*UP)}function $P(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function nw(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function qP(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function WP(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let c=n[r].split("=");
vendor: 6,261 bytes, line 266
266t[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return t}class HP extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Ih extends dt{constructor(t){super(),this.writable=!1,Mc(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new HP(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Dh(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=qP(t);return n.length?"?"+n:""}}class KP extends Ih{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};LP(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,OP(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=nw()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let sw=!1;try{sw=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const GP=sw;function QP(){}class YP extends KP{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,c)=>{this.onError("xhr post error",o,c)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Gn extends dt{constructor(t,n,r){super(),this.createRequest=t,Mc(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=tw(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=Gn.requestsCount++,Gn.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=QP,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Gn.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Gn.requestsCount=0;Gn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",O0);else if(typeof addEventListener=="function"){const e="onpagehide"in Sn?"pagehide":"unload";addEventListener(e,O0,!1)}}function O0(){for(let e in Gn.requests)Gn.requests.hasOwnProperty(e)&&Gn.requests[e].abort()}const XP=(function(){const e=rw({xdomain:!1});return e&&e.responseType!==null})();class JP extends YP{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=XP&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Gn(rw,this.uri(),t)}}function rw(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||GP))return new XMLHttpRequest}catch{}if(!t)try{return new Sn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const iw=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class ZP extends Ih{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=iw?{}:tw(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(o){return this.emitReserved("error",o)}
vendor: 15,989 bytes, line 266
266this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;Lh(r,this.supportsBinary,c=>{try{this.doWrite(r,c)}catch{}o&&Ic(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=nw()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Yd=Sn.WebSocket||Sn.MozWebSocket;class eT extends ZP{createSocket(t,n,r){return iw?new Yd(t,n,r):n?new Yd(t,n):new Yd(t)}doWrite(t,n){this.ws.send(n)}}class tT extends Ih{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=IP(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=DP();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();const c=()=>{r.read().then(({done:f,value:h})=>{f||(this.onPacket(h),c())}).catch(f=>{})};c();const u={type:"open"};this.query.sid&&(u.data=`{"sid":"${this.query.sid}"}`),this._writer.write(u).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;this._writer.write(r).then(()=>{o&&Ic(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const nT={websocket:eT,webtransport:tT,polling:JP},sT=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,rT=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function qf(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=sT.exec(e||""),c={},u=14;for(;u--;)c[rT[u]]=o[u]||"";return n!=-1&&r!=-1&&(c.source=t,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=iT(c,c.path),c.queryKey=oT(c,c.query),c}function iT(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function oT(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,c){o&&(n[o]=c)}),n}const Wf=typeof addEventListener=="function"&&typeof removeEventListener=="function",oc=[];Wf&&addEventListener("offline",()=>{oc.forEach(e=>e())},!1);class er extends dt{constructor(t,n){if(super(),this.binaryType=FP,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=qf(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=qf(n.host).host);Mc(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=WP(this.opts.query)),Wf&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},oc.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=ew,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&er.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",er.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(n+=zP(o)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Ic(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const c={type:t,data:n,options:r};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(er.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Wf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=oc.indexOf(this._offlineEventListener);r!==-1&&oc.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}er.protocol=ew;class aT extends er{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;er.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",x=>{if(!r)if(x.type==="pong"&&x.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;er.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(y(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const v=new Error("probe error");v.transport=n.name,this.emitReserved("upgradeError",v)}}))};function c(){r||(r=!0,y(),n.close(),n=null)}const u=x=>{const v=new Error("probe error: "+x);v.transport=n.name,c(),this.emitReserved("upgradeError",v)};function f(){u("transport closed")}function h(){u("socket closed")}function p(x){n&&x.name!==n.name&&c()}const y=()=>{n.removeListener("open",o),n.removeListener("error",u),n.removeListener("close",f),this.off("close",h),this.off("upgrading",p)};n.once("open",o),n.once("error",u),n.once("close",f),this.once("close",h),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let lT=class extends aT{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>nT[o]).filter(o=>!!o)),super(t,r)}};function cT(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=qf(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const c=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+c+":"+r.port+t,r.href=r.protocol+"://"+c+(n&&n.port===r.port?"":":"+r.port),r}const uT=typeof ArrayBuffer=="function",dT=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ow=Object.prototype.toString,fT=typeof Blob=="function"||typeof Blob<"u"&&ow.call(Blob)==="[object BlobConstructor]",hT=typeof File=="function"||typeof File<"u"&&ow.call(File)==="[object FileConstructor]";function Mh(e){return uT&&(e instanceof ArrayBuffer||dT(e))||fT&&e instanceof Blob||hT&&e instanceof File}function ac(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(ac(e[n]))return!0;return!1}if(Mh(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return ac(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&ac(e[n]))return!0;return!1}function pT(e){const t=[],n=e.data,r=e;return r.data=Hf(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Hf(e,t){if(!e)return e;if(Mh(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Hf(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Hf(e[r],t));return n}return e}function mT(e,t){return e.data=Kf(e.data,t),delete e.attachments,e}function Kf(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Kf(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Kf(e[n],t));return e}const gT=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var De;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(De||(De={}));class yT{constructor(t){this.replacer=t}encode(t){return(t.type===De.EVENT||t.type===De.ACK)&&ac(t)?this.encodeAsBinary({type:t.type===De.EVENT?De.BINARY_EVENT:De.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===De.BINARY_EVENT||t.type===De.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=pT(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}}class Fh extends dt{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===De.BINARY_EVENT;r||n.type===De.BINARY_ACK?(n.type=r?De.EVENT:De.ACK,this.reconstructor=new xT(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Mh(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(De[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===De.BINARY_EVENT||r.type===De.BINARY_ACK){const c=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const u=t.substring(c,n);if(u!=Number(u)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(u)}if(t.charAt(n+1)==="/"){const c=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(c,n)}else r.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const c=n+1;for(;++n;){const u=t.charAt(n);if(u==null||Number(u)!=u){--n;break}if(n===t.length)break}r.id=Number(t.substring(c,n+1))}
vendor: 4,501 bytes, line 266
266if(t.charAt(++n)){const c=this.tryParse(t.substr(n));if(Fh.isPayloadValid(r.type,c))r.data=c;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case De.CONNECT:return L0(n);case De.DISCONNECT:return n===void 0;case De.CONNECT_ERROR:return typeof n=="string"||L0(n);case De.EVENT:case De.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&gT.indexOf(n[0])===-1);case De.ACK:case De.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class xT{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=mT(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function L0(e){return Object.prototype.toString.call(e)==="[object Object]"}const vT=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Fh,Encoder:yT,get PacketType(){return De}},Symbol.toStringTag,{value:"Module"}));function Mn(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const bT=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class aw extends dt{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Mn(t,"open",this.onopen.bind(this)),Mn(t,"packet",this.onpacket.bind(this)),Mn(t,"error",this.onerror.bind(this)),Mn(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,o,c;if(bT.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const u={type:De.EVENT,data:n};if(u.options={},u.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const y=this.ids++,x=n.pop();this._registerAckCallback(y,x),u.id=y}const f=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,h=this.connected&&!(!((c=this.io.engine)===null||c===void 0)&&c._hasPingExpired());return this.flags.volatile&&!f||(h?(this.notifyOutgoingListeners(u),this.packet(u)):this.sendBuffer.push(u)),this.flags={},this}_registerAckCallback(t,n){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const c=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let f=0;f<this.sendBuffer.length;f++)this.sendBuffer[f].id===t&&this.sendBuffer.splice(f,1);n.call(this,new Error("operation has timed out"))},o),u=(...f)=>{this.io.clearTimeoutFn(c),n.apply(this,f)};u.withError=!0,this.acks[t]=u}emitWithAck(t,...n){return new Promise((r,o)=>{const c=(u,f)=>u?o(u):r(f);c.withError=!0,n.push(c),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...c)=>(this._queue[0],o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...c)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:De.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}
vendor: 7,087 bytes, line 266
266_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case De.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case De.EVENT:case De.BINARY_EVENT:this.onevent(t);break;case De.ACK:case De.BINARY_ACK:this.onack(t);break;case De.DISCONNECT:this.ondisconnect();break;case De.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:De.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:De.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function Xi(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Xi.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};Xi.prototype.reset=function(){this.attempts=0};Xi.prototype.setMin=function(e){this.ms=e};Xi.prototype.setMax=function(e){this.max=e};Xi.prototype.setJitter=function(e){this.jitter=e};class Gf extends dt{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Mc(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Xi({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||vT;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new lT(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Mn(n,"open",function(){r.onopen(),t&&t()}),c=f=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",f),t?t(f):this.maybeReconnectOnOpen()},u=Mn(n,"error",c);if(this._timeout!==!1){const f=this._timeout,h=this.setTimeoutFn(()=>{o(),c(new Error("timeout")),n.close()},f);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(o),this.subs.push(u),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Mn(t,"ping",this.onping.bind(this)),Mn(t,"data",this.ondata.bind(this)),Mn(t,"error",this.onerror.bind(this)),Mn(t,"close",this.onclose.bind(this)),Mn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Ic(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new aw(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}
266cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Wo={};function lc(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=cT(e,t.path||"/socket.io"),r=n.source,o=n.id,c=n.path,u=Wo[o]&&c in Wo[o].nsps,f=t.forceNew||t["force new connection"]||t.multiplex===!1||u;let h;return f?h=new Gf(r,t):(Wo[o]||(Wo[o]=new Gf(r,t)),h=Wo[o]),n.query&&!t.query&&(t.query=n.queryKey),h.socket(n.path,t)}Object.assign(lc,{Manager:Gf,Socket:aw,io:lc,connect:lc});const wT=250;function D0(e,t){var n;const r=(n=e.token)!==null&&n!==void 0?n:Ys(),o={app_id:e.appId};r?o.token=r:o.anonymous_id=bc();const c=lc(e.serverUrl,{path:e.mountPath,transports:e.transports,query:o});return c.on("connect",async()=>{var u;return console.log("connect",c.id),(u=t.connect)===null||u===void 0?void 0:u.call(t)}),c.on("update_model",async u=>{var f;return(f=t.update_model)===null||f===void 0?void 0:f.call(t,u)}),c.on("error",async u=>{var f;return(f=t.error)===null||f===void 0?void 0:f.call(t,u)}),c.on("connect_error",async u=>{var f;return console.error("connect_error",u),(f=t.error)===null||f===void 0?void 0:f.call(t,u)}),c}function _T({config:e}){let t={...e};const n={},r={},o={connect:async()=>{const _=[];Object.keys(n).forEach(P=>{const C=v(P);C.length!==0&&(p(P),C.forEach(({connect:T})=>{const I=async()=>T==null?void 0:T();_.push(I())}))}),await Promise.all(_)},update_model:async _=>{const C=v(_.room).map(T=>{var I;return(I=T.update_model)===null||I===void 0?void 0:I.call(T,_)});await Promise.all(C)},error:async _=>{console.error("error",_);const P=Object.values(n).flat().map(C=>{var T;return(T=C.error)===null||T===void 0?void 0:T.call(C,_)});await Promise.all(P)}};let c=D0(e,o);function u(){f()}function f(){E(),c&&c.disconnect()}function h(_){u(),t={...t,..._},c=D0(t,o)}function p(_){c.emit("join",_)}function y(_){c.emit("leave",_)}async function x(_,P){var C;const T=JSON.stringify(P);return(C=o.update_model)===null||C===void 0?void 0:C.call(o,{room:_,data:T})}function v(_){var P;return(P=n[_])!==null&&P!==void 0?P:[]}function w(_){const P=r[_];P&&(clearTimeout(P),delete r[_])}function E(){Object.keys(r).forEach(_=>{var P,C;clearTimeout(r[_]),delete r[_],((C=(P=n[_])===null||P===void 0?void 0:P.length)!==null&&C!==void 0?C:0)===0&&delete n[_]})}function j(_){w(_),r[_]=setTimeout(()=>{var P,C;delete r[_],!(((C=(P=n[_])===null||P===void 0?void 0:P.length)!==null&&C!==void 0?C:0)>0)&&(y(_),delete n[_])},wT)}return{socket:c,subscribeToRoom:(_,P)=>{n[_]?w(_):(p(_),n[_]=[]),n[_].push(P);let C=!1;return()=>{var T,I;C||(C=!0,n[_]=(I=(T=n[_])===null||T===void 0?void 0:T.filter($=>$!==P))!==null&&I!==void 0?I:[],n[_].length===0&&j(_))}},updateConfig:h,updateModel:x,disconnect:f}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(` 267 PartySocket requires a global 'EventTarget' class to be available! 268 You can polyfill this global by adding this to your code before any partysocket imports: 269 270 \`\`\` 271 import 'partysocket/event-target-polyfill'; 272 \`\`\` 273 Please file an issue at https://github.com/partykit/partykit if you're still having trouble. 274`);
vendor: 5,074 bytes, line 274
274var lw=class extends Event{constructor(t,n){super("error",n);We(this,"message");We(this,"error");this.message=t.message,this.error=t}},cw=class extends Event{constructor(t=1e3,n="",r){super("close",r);We(this,"code");We(this,"reason");We(this,"wasClean",!0);this.code=t,this.reason=n}},Xd={Event,ErrorEvent:lw,CloseEvent:cw};function ST(e,t){if(!e)throw new Error(t)}function kT(e){return new e.constructor(e.type,e)}function jT(e){return"data"in e?new MessageEvent(e.type,e):"code"in e||"reason"in e?new cw(e.code||1999,e.reason||"unknown reason",e):"error"in e?new lw(e.error,e):new Event(e.type,e)}var kv,CT=typeof process<"u"&&typeof((kv=process.versions)==null?void 0:kv.node)<"u"&&typeof document>"u",Ql=CT?jT:kT,wr={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},I0=!1,ET=class kr extends EventTarget{constructor(n,r,o={}){super();We(this,"_ws");We(this,"_retryCount",-1);We(this,"_uptimeTimeout");We(this,"_connectTimeout");We(this,"_shouldReconnect",!0);We(this,"_connectLock",!1);We(this,"_binaryType","blob");We(this,"_closeCalled",!1);We(this,"_messageQueue",[]);We(this,"_url");We(this,"_protocols");We(this,"_options");We(this,"onclose",null);We(this,"onerror",null);We(this,"onmessage",null);We(this,"onopen",null);We(this,"_handleOpen",n=>{this._debug("open event");const{minUptime:r=wr.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),r),ST(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(o=>{var c;return(c=this._ws)==null?void 0:c.send(o)}),this._messageQueue=[],this.onopen&&this.onopen(n),this.dispatchEvent(Ql(n))});We(this,"_handleMessage",n=>{this._debug("message event"),this.onmessage&&this.onmessage(n),this.dispatchEvent(Ql(n))});We(this,"_handleError",n=>{this._debug("error event",n.message),this._disconnect(void 0,n.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(n),this._debug("exec error listeners"),this.dispatchEvent(Ql(n)),this._connect()});We(this,"_handleClose",n=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(n),this.dispatchEvent(Ql(n))});this._url=n,this._protocols=r,this._options=o,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return kr.CONNECTING}get OPEN(){return kr.OPEN}get CLOSING(){return kr.CLOSING}get CLOSED(){return kr.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(n){this._binaryType=n,this._ws&&(this._ws.binaryType=n)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((r,o)=>(typeof o=="string"?r+=o.length:o instanceof Blob?r+=o.size:r+=o.byteLength,r),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?kr.CLOSED:kr.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(n=1e3,r){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(n,r)}reconnect(n,r){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(n,r),this._connect())}send(n){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",n),this._ws.send(n);else{const{maxEnqueuedMessages:r=wr.maxEnqueuedMessages}=this._options;this._messageQueue.length<r&&(this._debug("enqueue",n),this._messageQueue.push(n))}}_debug(...n){this._options.debug&&console.log.apply(console,["RWS>",...n])}_getNextDelay(){const{reconnectionDelayGrowFactor:n=wr.reconnectionDelayGrowFactor,minReconnectionDelay:r=wr.minReconnectionDelay,maxReconnectionDelay:o=wr.maxReconnectionDelay}=this._options;let c=0;return this._retryCount>0&&(c=r*Math.pow(n,this._retryCount-1),c>o&&(c=o)),this._debug("next delay",c),c}_wait(){return new Promise(n=>{setTimeout(n,this._getNextDelay())})}_getNextProtocols(n){if(!n)return Promise.resolve(null);if(typeof n=="string"||Array.isArray(n))return Promise.resolve(n);if(typeof n=="function"){const r=n();if(!r)return Promise.resolve(null);if(typeof r=="string"||Array.isArray(r))return Promise.resolve(r);if(r.then)return r}throw Error("Invalid protocols")}_getNextUrl(n){if(typeof n=="string")return Promise.resolve(n);if(typeof n=="function"){const r=n();if(typeof r=="string")return Promise.resolve(r);if(r.then)return r}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
274const{maxRetries:n=wr.maxRetries,connectionTimeout:r=wr.connectionTimeout}=this._options;if(this._retryCount>=n){this._debug("max retries reached",this._retryCount,">=",n);return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([o,c])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!I0&&(console.error(`â¼ï¸ No WebSocket implementation available. You should define options.WebSocket. 275 276For example, if you're using node.js, run \`npm install ws\`, and then in your code: 277 278import PartySocket from 'partysocket'; 279import WS from 'ws'; 280 281const partysocket = new PartySocket({ 282 host: "127.0.0.1:1999", 283 room: "test-room", 284 WebSocket: WS 285}); 286 287`),I0=!0);const u=this._options.WebSocket||WebSocket;this._debug("connect",{url:o,protocols:c}),this._ws=c?new u(o,c):new u(o),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),r)}).catch(o=>{this._connectLock=!1,this._handleError(new Xd.ErrorEvent(Error(o.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new Xd.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(n=1e3,r){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(n,r),this._handleClose(new Xd.CloseEvent(n,r,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};/*! 288 * Reconnecting WebSocket 289 * by Pedro Ladaria <[email protected]> 290 * https://github.com/pladaria/reconnecting-websocket 291 * License MIT 292 */const NT=1e3,PT=3e3,TT=new Set([405,409,422,503]),RT=new Set([400,403,404]);function AT(e){const t=e&&typeof e=="object"?e.status:void 0;return typeof t=="number"?t:void 0}function OT(e){return e instanceof Error?e:new Error(String(e))}class LT{constructor(t,n,r,o,c){var u;this.onClose=c,this.listeners=new Set,this.heartbeat=null,this.closed=!1,this.id=(u=o==null?void 0:o.id)!==null&&u!==void 0?u:crypto.randomUUID();let f=r.transport==="proxy";const h=async()=>{var v;if(this.closed)throw new Error("Actor connection is closed");if(!f)try{const{websocket_url:w,token:E}=await r.mintConnectionToken(t,n,this.id),j=w.includes("?")?"&":"?";return`${w}${j}token=${encodeURIComponent(E)}`}catch(w){const E=AT(w);if(!(r.transport!=="direct"&&E!==void 0&&TT.has(E))){E!==void 0&&RT.has(E)&&this.close();try{(v=r.onMintError)===null||v===void 0||v.call(r,OT(w))}catch{}throw w}f=!0}return IT(r.host,t,n,this.id,r.appId,r.getAuthToken(),r.functionsVersion)},p=new ET(h);this.ws=p;let y=Date.now();const x=()=>{y=Date.now()};p.addEventListener("open",x),p.addEventListener("message",v=>{x();let w;try{w=JSON.parse(v.data)}catch{return}if((w&&typeof w=="object"?w.type:void 0)!=="__pong")for(const j of this.listeners)j(w)}),this.heartbeat=setInterval(()=>{if(Date.now()-y>PT){x(),p.readyState===p.OPEN&&p.reconnect();return}try{p.send(JSON.stringify({type:"__ping"}))}catch{}},NT)}subscribe(t){return this.listeners.add(t),{unsubscribe:()=>{this.listeners.delete(t)}}}send(t){this.closed||this.ws.send(JSON.stringify(t))}close(){this.closed||(this.closed=!0,this.heartbeat&&(clearInterval(this.heartbeat),this.heartbeat=null),this.listeners.clear(),this.ws.close(),this.onClose())}}function DT(e,t,n,r){let o=null;return{connect(c){if(o)return o;const u=new LT(e,t,n,c,()=>{r.delete(u),o===u&&(o=null)});return o=u,r.add(u),u}}}function IT(e,t,n,r,o,c,u){let f=e.replace(/^(http|https|ws|wss):\/\//,"");f.endsWith("/")&&(f=f.slice(0,-1));const h=f.startsWith("localhost:")||f.startsWith("127.0.0.1:")||f.startsWith("192.168.")||f.startsWith("10.")||f.startsWith("172.")&&f.split(".")[1]>="16"&&f.split(".")[1]<="31"||f.startsWith("[::ffff:7f00:1]:"),p=new URLSearchParams([["_pk",r],["app_id",o],["handler",t]]);return c&&p.append("token",c),u&&p.append("fv",u),`${h?"ws":"wss"}://${f}/parties/${t}/${n}?${p}`}function MT(e,t){return e&&!e.startsWith("/")?e:t??e}function FT(e){const t=new Set;return{module:new Proxy({},{get(r,o){if(!(typeof o!="string"||o==="then"))return c=>DT(o,c,e,t)}}),closeAll:()=>{for(const r of[...t])r.close()}}}function BT(e){var t,n,r,o;
292const{serverUrl:c="https://base44.app",appId:u,analytics:f,token:h,serviceToken:p,requiresAuth:y=!1,appBaseUrl:x,options:v,functionsVersion:w,headers:E}=e,j=typeof x=="string"?x:"",S={serverUrl:c,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:u,token:h};let _=null;const P=()=>(_||(_=_T({config:S})),_),C={...E,"X-App-Id":String(u)},T=w?{...C,"Base44-Functions-Version":w}:C,I=qo({baseURL:`${c}/api`,headers:C,token:h,onError:v==null?void 0:v.onError}),$=qo({baseURL:`${c}/api`,headers:T,token:h,interceptResponses:!1,onError:v==null?void 0:v.onError}),q={...C,...h?{"on-behalf-of":`Bearer ${h}`}:{}},M=qo({baseURL:`${c}/api`,headers:q,token:p,onError:v==null?void 0:v.onError}),U=qo({baseURL:`${c}/api`,headers:T,token:p,interceptResponses:!1}),Z=qo({baseURL:`${c}/api`,headers:C}),pe=xP(I,$,u,{appBaseUrl:j,token:h});if(typeof window<"u"){const fe=h||Ys();fe&&pe.setToken(fe)}const je=FT({appId:u,host:MT(c,typeof window<"u"?(t=window.location)===null||t===void 0?void 0:t.origin:void 0),functionsVersion:w,getAuthToken:()=>h||Ys(),mintConnectionToken:async(fe,ce,Q)=>{const se=h||Ys();return await Z.post(`/apps/${u}/actors/${encodeURIComponent(fe)}/connection-token`,{room:ce,connection_id:Q},{headers:{...se?{Authorization:`Bearer ${se}`}:{},...w?{"Base44-Functions-Version":w}:{}}})},transport:v==null?void 0:v.actorsTransport,onMintError:v==null?void 0:v.onError}),Te={entities:_0({axios:I,appId:u,getSocket:P}),integrations:k0(I,u),connectors:SP(I,u),auth:pe,functions:j0($,u,{getAuthHeaders:()=>{const fe={},ce=h||Ys();return ce&&(fe.Authorization=`Bearer ${ce}`),fe},baseURL:(n=$.defaults)===null||n===void 0?void 0:n.baseURL}),agents:C0({axios:I,getSocket:P,appId:u,serverUrl:c,token:h}),aiGateway:N0({serverUrl:c,token:h,appId:u}),appLogs:P0(I,u),app:EP(I,u),users:NP(I,u),analytics:sP({axiosClient:I,serverUrl:c,appId:u,userAuthModule:pe,enabled:(r=f==null?void 0:f.enabled)!==null&&r!==void 0?r:!0}),actors:je.module,cleanup:()=>{Te.analytics.cleanup(),je.closeAll(),_&&_.disconnect()}},Ce={entities:_0({axios:M,appId:u,getSocket:P}),integrations:k0(M,u),sso:vP(M,u),connectors:wP(M,u),functions:j0(U,u,{getAuthHeaders:()=>{const fe={};return p&&(fe.Authorization=`Bearer ${p}`),fe},baseURL:(o=U.defaults)===null||o===void 0?void 0:o.baseURL}),agents:C0({axios:M,getSocket:P,appId:u,serverUrl:c,token:h}),aiGateway:N0({serverUrl:c,token:p,appId:u}),appLogs:P0(M,u),cleanup:()=>{_&&_.disconnect()}};return y&&typeof window<"u"&&setTimeout(async()=>{try{await Te.auth.isAuthenticated()||Te.auth.redirectToLogin(window.location.href)}catch(fe){console.error("Authentication check failed:",fe),Te.auth.redirectToLogin(window.location.href)}},0),{...Te,fetchWithAuth:jP({axios:I,serviceRoleAxios:M,appId:String(u),serverUrl:c,functionsVersion:w,platformHeaders:E}),setToken(fe){Te.auth.setToken(fe),_&&_.updateConfig({token:fe}),S.token=fe},getConfig(){return{serverUrl:c,appId:u,requiresAuth:y}},get asServiceRole(){if(!p)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return Ce}}}const uw=typeof window>"u",VT=uw?{localStorage:new Map}:window,na=VT.localStorage,UT=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),xi=(e,{defaultValue:t=void 0,removeFromUrl:n=!1}={})=>{if(uw)return t;const r=`base44_${UT(e)}`,o=new URLSearchParams(window.location.search),c=o.get(e);if(n){o.delete(e);const f=`${window.location.pathname}${o.toString()?`?${o.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,f)}if(c)return na.setItem(r,c),c;if(t)return na.setItem(r,t),t;const u=na.getItem(r);return u||null},zT=()=>(xi("clear_access_token")==="true"&&(na.removeItem("base44_access_token"),na.removeItem("token")),{appId:xi("app_id",{defaultValue:"69d3bbd071c32e8e2cd61c44"}),token:xi("access_token",{removeFromUrl:!0}),fromUrl:xi("from_url",{defaultValue:window.location.href}),functionsVersion:xi("functions_version",{defaultValue:"prod"}),appBaseUrl:xi("app_base_url",{defaultValue:void 0})}),_i={...zT()},{appId:$T,token:qT,functionsVersion:WT,appBaseUrl:HT}
292=_i,qt=BT({appId:$T,token:qT,functionsVersion:WT,serverUrl:"",requiresAuth:!1,appBaseUrl:HT});function KT({}){var o;const t=Gi().pathname.substring(1),{data:n,isFetched:r}=B2({queryKey:["user"],queryFn:async()=>{try{return{user:await qt.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return l.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:l.jsx("div",{className:"max-w-md w-full",children:l.jsxs("div",{className:"text-center space-y-6",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),l.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),l.jsxs("div",{className:"space-y-3",children:[l.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),l.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",l.jsxs("span",{className:"font-medium text-slate-700",children:['"',t,'"']})," could not be found in this application."]})]}),r&&n.isAuthenticated&&((o=n.user)==null?void 0:o.role)==="admin"&&l.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:l.jsxs("div",{className:"flex items-start space-x-3",children:[l.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:l.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),l.jsxs("div",{className:"text-left space-y-1",children:[l.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),l.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),l.jsx("div",{className:"pt-6",children:l.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[l.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const dw=k.createContext(),GT=({children:e})=>{const[t,n]=k.useState(null),[r,o]=k.useState(!1),[c,u]=k.useState(!0),[f,h]=k.useState(!0),[p,y]=k.useState(null),[x,v]=k.useState(null),[w,E]=k.useState(!1);k.useEffect(()=>{j()},[]);const j=async()=>{var T,I;try{h(!0),y(null);const $=it.create({baseURL:"/api/apps/public",headers:{"X-App-Id":_i.appId,..._i.token&&{Authorization:`Bearer ${_i.token}`}}});try{const M=(await $.get(`/prod/public-settings/by-id/${_i.appId}`)).data;v(M),_i.token?await _():(u(!1),o(!1)),h(!1)}catch(q){if(console.error("App state check failed:",q),q.status===403&&((I=(T=q.data)==null?void 0:T.extra_data)!=null&&I.reason)){const M=q.data.extra_data.reason;y(M==="auth_required"?{type:"auth_required",message:"Authentication required"}:M==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:M,message:q.message})}else y({type:"unknown",message:q.message||"Failed to load app"});h(!1),u(!1)}}catch($){console.error("Unexpected error:",$),y({type:"unknown",message:$.message||"An unexpected error occurred"}),h(!1),u(!1)}},S=()=>{E(!1)},_=async()=>{try{u(!0);const T=await qt.auth.me();n(T),o(!0),E(!1),u(!1)}catch(T){console.error("User auth check failed:",T),u(!1),o(!1),(T.status===401||T.status===403)&&y({type:"auth_required",message:"Authentication required"})}},P=(T=!0)=>{n(null),o(!1),T?qt.auth.logout(window.location.href):qt.auth.logout()},C=()=>{qt.auth.redirectToLogin(window.location.href)};return l.jsx(dw.Provider,{value:{user:t,isAuthenticated:r,isLoadingAuth:c,isLoadingPublicSettings:f,authError:p,appPublicSettings:x,twoFAPending:w,completeTwoFA:S,logout:P,navigateToLogin:C,checkAppState:j},children:e})},fw=()=>{const e=k.useContext(dw);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},hw=k.createContext(),QT=({children:e})=>{const[t,n]=k.useState(()=>localStorage.getItem("beacons_display_theme")||"mac"),r=o=>{localStorage.setItem("beacons_display_theme",o),n(o)};return l.jsx(hw.Provider,{value:{displayTheme:t,setDisplayTheme:r},children:e})},YT=()=>{const e=k.useContext(hw);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e},Jd={en:{nav_features:"Features",nav_pricing:"Pricing",nav_contact:"Contact",nav_dashboard:"Dashboard",nav_signin:"Sign in",nav_get_started:"Get Started",hero_social_proof_long:"Used by 600+ Digital Creators worldwide",hero_social_proof_short:"600+ creators worldwide",hero_subtitle:"Real numbers, now.",hero_description:"The perfect extension to edit your dashboard â completely undetectable.",hero_cta_start:"Get the extension now",hero_cta_affiliate:"Earn with Affiliation",hero_pill_chrome:"Chrome, Edge, Brave & Opera",hero_pill_stripe_soon:"Stripe â soon",features_tag:"Features",features_title_1:"One single toolkit,",features_title_2:"multiple extensions",features_subt
292itle:"Beacons. PayPal. Shopify. Works on Chrome, Edge, Brave, Opera and any Chromium browser.",features_1_tag:"HOW IT WORKS",features_1_title:"A browser extension, that's it",features_1_desc:"Install our extensions for Beacons, PayPal, Shopify and Stripe. They work on Chrome, Edge, Brave, Opera and any Chromium-based browser â and edit the real dashboards directly in your browser, nothing to install on your phone.",features_status_live:"Active",features_status_soon:"Soon",features_beacons_tag:"BEACONS EXTENSION",features_beacons_title:"Edit beacons.ai in 1 click",features_beacons_desc:"Add sales, customize your profile, edit your content â directly on your real beacons.ai page via our Chrome extension.",features_paypal_tag:"PAYPAL EXTENSION",features_paypal_title:"Dress up your PayPal page",features_paypal_desc:"Customize what you show on paypal.com â balance, recent transactions, cards â directly from the browser.",features_shopify_tag:"SHOPIFY EXTENSION",features_shopify_title:"Generate sales on Shopify",features_shopify_desc:"Add fake sales on your real products, generate visits and orders â directly on your Shopify admin via our Chrome extension.",features_pin_tag:"SECURE TOKEN",features_pin_title:"PIN-protected access",features_pin_desc:"Each extension is unlocked by a unique token tied to your account, protected by your personal 4-digit PIN.",features_refresh_tag:"SURVIVES REFRESH",features_refresh_title:"Survives every refresh",features_refresh_desc:"Unlike inspect-element tricks, our changes stay locked even after refreshing the page. F5 cancels nothing â that's what makes Codir different.",features_stripe_tag:"STRIPE EXTENSION",features_stripe_title:"Fake payouts, live",features_stripe_desc:"Edit your Stripe dashboard and create fake bank payouts from A to Z â amount, status, date â live in front of anyone.",features_fanvue_tag:"COMING SOON",features_fanvue_title:"Fanvue Extension",features_fanvue_desc:"Our next extension will let you customize your Fanvue creator dashboard the same way. Imminent release â your subscription will unlock it automatically.",pricing_tag:"Pricing",pricing_title_1:"Choose your",pricing_title_2:"browser extension",pricing_subtitle:"One subscription per extension. Choose your billing period and save more.",pricing_free_badge:"Free",pricing_free_title:"Use CODIR for free",pricing_free_desc:"Create an account and use the extension right away â capped version, no payment required.",pricing_free_price_note:"forever",pricing_free_feat_1:"All customization features",pricing_free_feat_2_pre:"Generation capped at",pricing_free_feat_2_bold:"â¬100 per extension",pricing_free_feat_3:"Upgrade to unlimited anytime with a plan below",pricing_bundle_cta:"Customize a bundle",pricing_bundle_discount:"-25% max",pricing_secure:"Secure payments via",pricing_condition_beacons:"At least 1 real sale on your Beacons account is required (any amount).",pricing_condition_shopify:"At least 1 real sale on your Shopify store is required (any amount).",pricing_condition_stripe:"At least 1 real payment on your Stripe account is required (any amount). A minimum balance of â¬0.20 is shown.",plan_feat_extension_chrome:"Compatible Chrome, Edge, Brave & Opera",plan_feat_mobile_pc:"Works on Mobile and PC",plan_feat_secure_token:"Secure extension token",plan_feat_persistent:"Persistent: your changes stay after reload",plan_feat_beacons_edit:"Edit your Beacons dashboards",plan_feat_beacons_add:"Add sales & content in 1 click",plan_feat_beacons_any:"Works on any beacons.ai profile",plan_feat_paypal_edit:"Edit your PayPal dashboards",plan_feat_paypal_add:"Add balance & transactions in 1 click",plan_feat_paypal_any:"Works on any PayPal account",plan_feat_shopify_edit:"Edit your Shopify dashboards",plan_feat_shopify_add:"Add sales & orders in 1 click",plan_feat_shopify_any:"Works on any Shopify store",plan_feat_stripe_edit:"Edit your Stripe dashboard (home, balances, payments, customers)",plan_feat_stripe_add:"Add payments, customers & payouts in 1 click",plan_feat_stripe_any:"Works on any Stripe account, French or English",plan_beacons_name:"Beacons Plan",plan_paypal_name:"PayPal Plan",plan_shopify_name:"Shopify Plan",plan_stripe_name:"Stripe Plan",plan_desc_beacons:"Chrome extension to edit beacons.ai",plan_desc_paypal:"Chrome extension for PayPal",plan_desc_shopify:"Chrome extension for Shopify",plan_desc_stripe:"Chrome extension for Stripe",pricing_card_popular:"Popular",pricing_card_free:"Free",pricing_card_cta_start:"Get started",pricing_card_cta_free:"Start for free",pricing_card_cta_manage:"Manage subscription",pricing_card_cta_redirecting:"Redirectingâ¦",pricing_card_condition_label:"Condition:",pricing_card_limit_label:"Limit:",pricing_card_free_limit:"Generation capped at â¬100",pricing_card_free_unit:"forever",plan_free_desc:"Try the extension for free â no payment required",period_biweekly_short:"2 wks",period_monthly_short:"month",period_biweekly_label:"2 weeks",period_monthly_label:"1 month",faq_title:"Frequently asked questions",faq_subtitle:"Everything you need to know before getting the extension.",faq_cta_title:"Ready to boost your numbers?",faq_cta_desc:"Install the extension in one click and start editing your dashboards right now.",faq_cta_button:"Get the extension now",footer_codir_dashboard:"CODIR Dashboard",footer_fake_dashboards:"Fake Dashboards",footer_terms:"Terms of Use",footer_legal:"Legal",footer_refunds:"Refund Policy",footer_contact:"Contact",footer_affiliate:"Become affiliate",footer_copyright:"© 2026 CODIR. All rights reserved.",footer_disclaimer_prefix:"â ï¸ CODIR is intended exclusively for",footer_disclaimer_bold:"entertainment, parody and design-testing purposes",footer_disclaimer_suffix:". The dashboards generated are fictional visual representations and do not constitute real financial data, statements, or proof of revenue.",auth_email_label:"Email",auth_password_label:"Password",auth_email_placeholder:"[email protected]",auth_password_placeholder_new:"Minimum 8 characters",auth_password_placeholder_current:"Your password",auth_show_password:"Show password",auth_hide_password:"Hide password",auth_signin_title:"Sign in",auth_signin_subtitle:"Welcome back",auth_signin_button:"Sign in",auth_signin_no_account:"No account yet?",auth_signin_create_link:"Create an account",auth_signin_forgot:"Forgot password?",auth_signin_error:"Wrong email or password.",auth_signup_t
292itle:"Create an account",auth_signup_subtitle:"Get started in seconds",auth_signup_button:"Create my account",auth_signup_has_account:"Already have an account?",auth_signup_signin_link:"Sign in",auth_signup_cgu_prefix:"By creating an account, you agree to our",auth_signup_cgu_link:"Terms",auth_signup_password_short:"Password must be at least 8 characters.",auth_signup_error:"Signup failed. Check your info.",auth_signup_otp_title:"Verify your email",auth_signup_otp_subtitle_prefix:"We sent a code to",auth_signup_otp_resend:"Resend code",auth_signup_otp_label:"Verification code",auth_signup_otp_button:"Verify and continue",auth_signup_otp_verifying:"Verifyingâ¦",auth_signup_otp_invalid:"Invalid or expired code.",auth_signup_otp_resend_failed:"Failed to resend the code.",dashnav_services:"Services",dashnav_profile:"Profile",dashnav_settings:"Settings",dashnav_subscription:"Subscription",dashnav_affiliate:"Affiliate",dashnav_analytics:"Analytics",dashnav_admin:"Admin",dashnav_messages:"Messages",dashnav_logout:"Log out",dash_welcome_back:"Welcome back,",dash_welcome_you:"there",dash_subtitle:"Your Chrome extension tokens â paste them in your browser extension.",dash_section_extensions:"Extensions",token_paste_hint:"Paste it in the Chrome extension to connect",token_install_title:"Install Chrome Extension",token_install_desc_prefix:"Required to use",token_setup_pin_desc:"Set a 4-digit PIN to protect your extension token.",token_setup_pin_placeholder:"4-digit PIN",token_setup_pin_button:"Save PIN",token_enter_pin_placeholder:"Enter PIN",token_reveal_button:"Reveal",token_forgot_pin:"Forgot PIN? Send reset email",token_persistent_note:"ð¡ Your token never changes, even when you renew your subscription.",token_copy:"Copy",token_copied:"Copied",token_hide:"Hide",token_autohide_prefix:"Auto-hide in",token_autohide_suffix:"s",token_locked_badge_prefix:"Requires",token_locked_badge_suffix:"subscription to unlock",token_locked_desc_prefix:"Activate your subscription to generate your token and unlock the",token_locked_desc_suffix:"extension to its full potential.",token_unlock_button:"Unlock",token_toast_pin_4digits:"PIN must be exactly 4 digits",token_toast_pin_invalid:"Invalid PIN",token_toast_copied:"Token copied!",token_toast_email_sent:"Email sent! Check your inbox to set a new PIN.",token_toast_email_failed:"Failed to send email",token_toast_pin_saved:"PIN saved!",token_toast_pin_save_failed:"Failed to save PIN",profile_title:"Profile",profile_subtitle:"Your personal information.",profile_section:"Your personal information",profile_fallback_name:"User",profile_field_fullname:"Full name",profile_field_email:"Email",profile_field_role:"Role",profile_role_admin:"Administrator",profile_role_affiliate:"Affiliate",profile_role_user:"User",settings_title:"Settings",settings_subtitle:"Manage your account and preferences.",settings_section:"Account and preferences",settings_email_title:"Email address",settings_email_desc:"Update your email address",settings_password_title:"Password",settings_password_desc:"Change your password",settings_password_new:"New password",settings_password_confirm:"Confirm password",settings_subscription_title:"Subscription",settings_subscription_desc:"Manage your services and plans",settings_subscription_button:"Manage subscription",settings_logout_title:"Log out",settings_logout_desc:"Sign out of your account",settings_logout_button:"Log out",settings_update_button:"Update",settings_delete_title:"Delete account",settings_delete_desc:"This action is irreversible",settings_delete_button:"Delete my account",settings_delete_dialog_desc:"You are about to permanently delete your account. This action is irreversible. Enter your password to confirm.",settings_delete_dialog_placeholder:"Enter your password",settings_delete_dialog_cancel:"Cancel",settings_delete_dialog_confirm:"Delete",settings_toast_email_required:"Please enter an email address",settings_toast_email_updated:"Email updated!",settings_toast_fields_required:"Please fill in all fields",settings_toast_passwords_mismatch:"Passwords do not match",settings_toast_password_updated:"Password updated!",settings_toast_password_required:"Please enter your password",settings_toast_account_deleted:"Account deleted",sub_page_title:"Subscription",sub_page_subtitle:"Cho
292ose the services you want to activate.",sub_section:"Choose your services",sub_period_30d:"Last 30 days",sub_admin_free:"Free · Admin",sub_plan_label_prefix:"Plan",sub_kpi_vs_previous:"vs prev. period",sub_status_active:"Active subscription",sub_status_cancelled:"Cancelled (access until end of period)",sub_status_admin_free:"Free admin access",sub_start_date:"Start",sub_next_renewal:"Next renewal",sub_access_ends:"Access ends",sub_start_now:"Get started now",sub_redirecting:"Redirectingâ¦",sub_already_prefix:"You're already subscribed to this service on the",sub_already_suffix:"plan. Cancel it first to switch billing period.",sub_download_ext:"Download the Chrome extension",sub_cancel_button:"Cancel subscription",sub_toast_activated:"Subscription activated successfully! ð",sub_toast_cancelled:"Subscription cancelled successfully!",sub_toast_cancel_error:"Error while cancelling",sub_toast_session_error:"Error creating payment session",sub_toast_payment_error:"Payment error",cancel_dialog_title:"Cancel subscription?",cancel_dialog_desc_prefix:"Are you sure you want to cancel your",cancel_dialog_desc_suffix:"subscription?",cancel_dialog_access_until_prefix:"You'll have access until",cancel_dialog_back:"Back",cancel_dialog_confirming:"Cancellingâ¦",cancel_dialog_confirm:"Confirm",common_active:"Active",common_inactive:"Inactive",common_loading:"Loadingâ¦",common_locked:"Locked",common_edit:"Edit",common_save:"Save",common_cancel:"Cancel",common_confirm:"Confirm",common_delete:"Delete"},fr:{nav_features:"Fonctionnalités",nav_pricing:"Tarifs",nav_contact:"Contact",nav_dashboard:"Tableau de bord",nav_signin:"Connexion",nav_get_started:"Commencer",hero_social_proof_long:"Utilisé par 600+ créateurs digitaux dans le monde",hero_social_proof_short:"600+ créateurs dans le monde",hero_subtitle:"Les vrais chiffres, maintenant.",hero_description:"L'extension parfaite pour modifier ton dashboard â totalement indétectable.",hero_cta_start:"Obtenir l'extension maintenant",hero_cta_affiliate:"Gagner avec l'affiliation",hero_pill_chrome:"Chrome, Edge, Brave & Opera",hero_pill_stripe_soon:"Stripe â bientôt",features_tag:"Fonctionnalités",features_title_1:"Une seule boîte à outils,",features_title_2:"plusieurs extensions",features_subtitle:"Beacons. PayPal. Shopify. Compatible Chrome, Edge, Brave, Opera et tous les navigateurs Chromium.",features_1_tag:"COMMENT ÃA MARCHE",features_1_title:"Une extension navigateur, c'est tout",features_1_desc:"Installe nos extensions pour Beacons, PayPal, Shopify et Stripe. Elles fonctionnent sur Chrome, Edge, Brave, Opera et tous les navigateurs basés sur Chromium â et modifient les vrais dashboards directement dans ton navigateur, rien à installer sur ton téléphone.",features_status_live:"Actif",features_status_soon:"Bientôt",features_beacons_tag:"EXTENSION BEACONS",features_beacons_title:"Modifie beacons.ai en 1 clic",features_beacons_desc:"Ajoute des ventes, personnalise ton profil, édite ton contenu â directement sur ta vraie page beacons.ai via notre extension Chrome.",features_paypal_tag:"EXTENSION PAYPAL",features_paypal_title:"Habille ta page PayPal",features_paypal_desc:"Personnalise ce que tu affiches sur paypal.com â solde, transactions récentes, cartes â directement depuis le navigateur.",features_shopify_tag:"EXTENSION SHOPIFY",features_shopify_title:"Génère des ventes sur Shopify",features_shopify_desc:"Ajoute de fausses ventes sur tes vrais produits, génère des visites et des commandes â directement sur ton admin Shopify via notre extension Chrome.",features_pin_tag:"TOKEN SÃCURISÃ",features_pin_title:"Accès protégé par PIN",features_pin_desc:"Chaque extension est déverrouillée par un token unique lié à ton compte, protégé par ton PIN personnel à 4 chiffres.",features_refresh_tag:"RÃSISTE AU REFRESH",features_refresh_title:"Survit à chaque actualisation",features_refresh_desc:"Contrairement aux astuces d'inspection d'élément, nos modifications restent verrouillées même après avoir actualisé la page. F5 n'annule rien â c'est ce qui rend Codir différent.",features_stripe_tag:"EXTENSION STRIPE",features_stripe_title:"Faux virements en live",features_stripe_desc:"Ãdite ton dashboard Stripe et réalise de faux virements bancaires de A à Z â montant, statut, date â en direct.",features_fanvue_tag:"BIENTÃT DISPONIBLE",features_fanvue_title:"Extension Fanvue",features_fanvue_desc:"Notre prochaine extension te permettra de personnaliser ton dashboard créateur Fanvue de la même façon. Sortie imminente â ton abonnement la débloquera automatiquement.",pricing_tag:"Tarifs",pricing_title_1:"Choisis ton",pricing_title_2:"extension navigateur",pricing_subtitle:"Un abonnement par extension. Choisis ta période de facturation et économise plus.",pricing_free_badge:"Gratuit",pricing_free_title:"Utilise CODIR gratuitement",pricing_free_desc:"Crée un compte et utilise l'extension tout de suite â version bridée, sans paiement.",pricing_free_price_note:"pour toujours",pricing_free_feat_1:"Toutes les fonctions de personnalisation",pricing_free_feat_2_pre:"Génération plafonnée à ",pricing_free_feat_2_bold:"100⬠par extension",pricing_free_feat_3:"Passe en illimité quand tu veux avec un plan ci-dessous",pricing_bundle_cta:"Personnaliser un bundle",pricing_bundle_discount:"-25% max",pricing_secure:"Paiements sécurisés via",pricing_condition_beacons:"Au moins 1 vraie vente sur ton compte Beacons est requise (n'importe quel montant).",pricing_condition_shopify:"Au moins 1 vraie vente sur ta boutique Shopify est requise (n'importe quel montant).",pricing_condition_stripe:"Au moins 1 vrai paiement sur ton compte Stripe est requis (n'importe quel montant). Un solde minimum de 0,20 ⬠est affiché.",plan_feat_extension_chrome:"Compatible Chrome, Edge, Brave & Opera",plan_feat_mobile_pc:"Fonctionne sur Mobile et PC",plan_feat_secure_token:"Token d'extension sécurisé",plan_feat_persistent:"Persistant : tes changements restent après reload",plan_feat_beacons_edit:"Ãdite tes dashboards Beacons",plan_feat_beacons_add:"Ajoute ventes & contenu en 1 clic",plan_feat_beacons_any:"Fonctionne sur n'importe quel profil beacons.ai",plan_feat_paypal_edit:"Ãdite tes dashboards PayPal",plan_feat_paypal_add:"Ajoute solde & transactions en 1 clic",plan_feat_paypal_any:"Fonctionne sur n'importe quel compte PayPal",plan_feat_shopify_edit:"Ãdite tes dashboards Shopify",plan_feat_shopify_add:"Ajoute ventes & commandes en 1 clic",plan_feat_shopify_any:"Fonctionne sur n'importe quelle boutique Shopify",plan_feat_str
292ipe_edit:"Ãdite ton dashboard Stripe (accueil, soldes, paiements, clients)",plan_feat_stripe_add:"Ajoute paiements, clients & virements en 1 clic",plan_feat_stripe_any:"Fonctionne sur n'importe quel compte Stripe, en français ou en anglais",plan_beacons_name:"Plan Beacons",plan_paypal_name:"Plan PayPal",plan_shopify_name:"Plan Shopify",plan_stripe_name:"Plan Stripe",plan_desc_beacons:"Extension Chrome pour éditer beacons.ai",plan_desc_paypal:"Extension Chrome pour PayPal",plan_desc_shopify:"Extension Chrome pour Shopify",plan_desc_stripe:"Extension Chrome pour Stripe",pricing_card_popular:"Populaire",pricing_card_free:"Gratuit",pricing_card_cta_start:"Commencer",pricing_card_cta_free:"Commencer gratuitement",pricing_card_cta_manage:"Gérer l'abonnement",pricing_card_cta_redirecting:"Redirectionâ¦",pricing_card_condition_label:"Condition :",pricing_card_limit_label:"Limite :",pricing_card_free_limit:"Génération plafonnée à 100â¬",pricing_card_free_unit:"pour toujours",plan_free_desc:"Essaie l'extension gratuitement â sans paiement",period_biweekly_short:"2 sem.",period_monthly_short:"mois",period_biweekly_label:"2 semaines",period_monthly_label:"1 mois",faq_title:"Questions fréquentes",faq_subtitle:"Tout ce qu'il faut savoir avant d'installer l'extension.",faq_cta_title:"Prêt à booster tes chiffres ?",faq_cta_desc:"Installe l'extension en un clic et commence à modifier tes dashboards dès maintenant.",faq_cta_button:"Obtenir l'extension maintenant",footer_codir_dashboard:"Dashboard CODIR",footer_fake_dashboards:"Faux Dashboards",footer_terms:"Conditions d'utilisation",footer_legal:"Mentions légales",footer_refunds:"Politique de remboursement",footer_contact:"Contact",footer_affiliate:"Devenir affilié",footer_copyright:"© 2026 CODIR. Tous droits réservés.",footer_disclaimer_prefix:"â ï¸ CODIR est destiné exclusivement à un usage",footer_disclaimer_bold:"de divertissement, parodique et de tests de design",footer_disclaimer_suffix:". Les dashboards générés sont des représentations visuelles fictives et ne constituent en aucun cas des données financières réelles, relevés ou preuves de revenus.",auth_email_label:"Email",auth_password_label:"Mot de passe",auth_email_placeholder:"[email protected]",auth_password_placeholder_new:"Minimum 8 caractères",auth_password_placeholder_current:"Ton mot de passe",auth_show_password:"Afficher le mot de passe",auth_hide_password:"Masquer le mot de passe",auth_signin_title:"Se connecter",auth_signin_subtitle:"Content de te revoir",auth_signin_button:"Se connecter",auth_signin_no_account:"Pas encore de compte ?",auth_signin_create_link:"Créer un compte",auth_signin_forgot:"Mot de passe oublié ?",auth_signin_error:"Email ou mot de passe incorrect.",auth_signup_title:"Créer un compte",auth_signup_subtitle:"Commence en quelques secondes",auth_signup_button:"Créer mon compte",auth_signup_has_account:"Déjà un compte ?",auth_signup_signin_link:"Se connecter",auth_signup_cgu_prefix:"En créant un compte, tu acceptes nos",auth_signup_cgu_link:"CGU",auth_signup_password_short:"Le mot de passe doit contenir au moins 8 caractères.",auth_signup_error:"Ãchec de l'inscription. Vérifie tes informations.",auth_signup_otp_title:"Vérifie ton email",auth_signup_otp_subtitle_prefix:"On a envoyé un code à ",auth_signup_otp_resend:"Renvoyer le code",auth_signup_otp_label:"Code de vérification",auth_signup_otp_button:"Vérifier et continuer",auth_signup_otp_verifying:"Vérificationâ¦",auth_signup_otp_invalid:"Code invalide ou expiré.",auth_signup_otp_resend_failed:"Impossible de renvoyer le code.",dashnav_services:"Services",dashnav_profile:"Profil",dashnav_settings:"Paramètres",dashnav_subscription:"Abonnement",dashnav_affiliate:"Affiliation",dashnav_analytics:"Analytics",dashnav_admin:"Admin",dashnav_messages:"Messages",dashnav_logout:"Déconnexion",dash_welcome_back:"Bon retour,",dash_welcome_you:"toi",dash_subtitle:"Tes tokens d'extension Chrome â colle-les dans ton extension navigateur.",dash_section_extensions:"Extensions",token_paste_hint:"Colle-le dans l'extension Chrome pour te connecter",token_install_title:"Installer l'extension Chrome",token_install_desc_prefix:"Nécessaire pour utiliser",token_setup_pin_desc:"Définis un PIN à 4 chiffres pour protéger ton token d'extension.",token_setup_pin_placeholder:"PIN à 4 chiffres",token_setup_pin_button:"Enregistrer le PIN",token_enter_pin_placeholder:"Entrer le PIN",token_reveal_button:"Afficher",token_forgot_pin:"PIN oublié ? Envoyer un mail de reset",token_persistent_note:"ð¡ Ton token ne change jamais, même quand tu renouvelles ton abonnement.",token_copy:"Copier",token_copied:"Copié",token_hide:"Masquer",token_autohide_prefix:"Masquage auto dans",token_autohide_suffix:"s",token_locked_badge_prefix:"Abonnement",token_locked_badge_suffix:"requis pour débrider",token_locked_desc_prefix:"Active ton abonnement pour générer ton token et débrider l'extension",token_locked_desc_suffix:"à son plein potentiel.",token_unlock_button:"Débloquer",token_toast_pin_4digits:"Le PIN doit contenir exactement 4 chiffres",token_toast_pin_invali
292d:"PIN invalide",token_toast_copied:"Token copié !",token_toast_email_sent:"Mail envoyé ! Vérifie ta boîte pour définir un nouveau PIN.",token_toast_email_failed:"Ãchec de l'envoi du mail",token_toast_pin_saved:"PIN enregistré !",token_toast_pin_save_failed:"Ãchec de l'enregistrement du PIN",profile_title:"Profil",profile_subtitle:"Tes informations personnelles.",profile_section:"Tes informations personnelles",profile_fallback_name:"Utilisateur",profile_field_fullname:"Nom complet",profile_field_email:"Email",profile_field_role:"Rôle",profile_role_admin:"Administrateur",profile_role_affiliate:"Affilié",profile_role_user:"Utilisateur",settings_title:"Paramètres",settings_subtitle:"Gère ton compte et tes préférences.",settings_section:"Compte et préférences",settings_email_title:"Adresse email",settings_email_desc:"Mets à jour ton adresse email",settings_password_title:"Mot de passe",settings_password_desc:"Change ton mot de passe",settings_password_new:"Nouveau mot de passe",settings_password_confirm:"Confirmer le mot de passe",settings_subscription_title:"Abonnement",settings_subscription_desc:"Gère tes services et abonnements",settings_subscription_button:"Gérer l'abonnement",settings_logout_title:"Déconnexion",settings_logout_desc:"Se déconnecter du compte",settings_logout_button:"Déconnexion",settings_update_button:"Mettre à jour",settings_delete_title:"Supprimer le compte",settings_delete_desc:"Cette action est irréversible",settings_delete_button:"Supprimer mon compte",settings_delete_dialog_desc:"Tu es sur le point de supprimer définitivement ton compte. Cette action est irréversible. Entre ton mot de passe pour confirmer.",settings_delete_dialog_placeholder:"Entre ton mot de passe",settings_delete_dialog_cancel:"Annuler",settings_delete_dialog_confirm:"Supprimer",settings_toast_email_required:"Entre une adresse email",settings_toast_email_updated:"Email mis à jour !",settings_toast_fields_required:"Remplis tous les champs",settings_toast_passwords_mismatch:"Les mots de passe ne correspondent pas",settings_toast_password_updated:"Mot de passe mis à jour !",settings_toast_password_required:"Entre ton mot de passe",settings_toast_account_deleted:"Compte supprimé",sub_page_title:"Abonnement",sub_page_subtitle:"Choisis les services que tu veux activer.",sub_section:"Choisis tes services",sub_period_30d:"30 derniers jours",sub_admin_free:"Gratuit · Admin",sub_plan_label_prefix:"Plan",sub_kpi_vs_previous:"vs 30j préc.",sub_status_active:"Abonnement actif",sub_status_cancelled:"Annulé (accès jusqu'à la fin de la période)",sub_status_admin_free:"Accès admin gratuit",sub_start_date:"Début",sub_next_renewal:"Prochain renouvellement",sub_access_ends:"Fin de l'accès",sub_start_now:"Commencer maintenant",sub_redirecting:"Redirectionâ¦",sub_already_prefix:"Tu es déjà abonné à ce service sur le plan",sub_already_suffix:". Annule-le d'abord pour changer de période.",sub_download_ext:"Télécharger l'extension Chrome",sub_cancel_button:"Annuler l'abonnement",sub_toast_activated:"Abonnement activé avec succès ! ð",sub_toast_cancelled:"Abonnement annulé avec succès !",sub_toast_cancel_error:"Erreur lors de l'annulation",sub_toast_session_error:"Erreur lors de la création de la session de paiement",sub_toast_payment_error:"Erreur de paiement",cancel_dialog_title:"Annuler l'abonnement ?",cancel_dialog_desc_prefix:"Es-tu sûr de vouloir annuler ton abonnement",cancel_dialog_desc_suffix:"?",cancel_dialog_access_until_prefix:"Tu conserves l'accès jusqu'au",cancel_dialog_back:"Retour",cancel_dialog_confirming:"Annulationâ¦",cancel_dialog_confirm:"Confirmer",common_active:"Actif",common_inactive:"Inactif",common_loading:"Chargementâ¦",common_locked:"Verrouillé",common_edit:"Ãditer",common_save:"Enregistrer",common_cancel:"Annuler",common_confirm:"Confirmer",common_delete:"Supprimer"}};function XT(e){const t=Jd[e]||Jd.en;return n=>t[n]??Jd.en[n]??n}const pw=k.createContext(),M0="codir_lang";function JT(){if(typeof navigator>"u")return"en";const e=navigator.languages&&navigator.languages.length?navigator.languages:[navigator.language||"en"];for(const t of e)if(typeof t=="string"&&t.toLowerCase().startsWith("fr"))return"fr";return"en"}function ZT(){if(typeof window>"u")return null;const e=new URLSearchParams(window.location.search).get("lang");return e==="fr"||e==="en"?e:null}function e4({children:e}){const[t,n]=k.useState(()=>{if(typeof window>"u")return"en";const c=ZT();if(c)return c;try{const u=localStorage.getItem(M0);if(u==="fr"||u==="en")return u}catch{}return JT()});k.useEffect(()=>{document.documentElement.setAttribute("lang",t);try{localStorage.setItem(M0,t)}catch{}},[t]);const r=c=>{(c==="fr"||c==="en")&&n(c)},o=XT(t);return l.jsx(pw.Provider,{value:{appLanguage:t,lang:t,changeLanguage:r,loaded:!0,t:o},children:e})}function jn(){return k.useContext(pw)}const t4=()=>l.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:l.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:l.jsxs("div",{className:"text-center",children:[l.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:l.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),l.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),l.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),l.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[l.jsx("p",{children:"If you believe this is an error, you can:"}),l.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[l.jsx("li",{children:"Verify you are logged in with the correct account"}),l.jsx("li",{children:"Contact the app administrator for access"}),l.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),Bh=k.createContext({});function Vh(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const Fc=k.createContext(null),Uh=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});
vendor: 31,382 bytes, lines 292-300
292class n4 extends k.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function s4({children:e,isPresent:t}){const n=k.useId(),r=k.useRef(null),o=k.useRef({width:0,height:0,top:0,left:0}),{nonce:c}=k.useContext(Uh);return k.useInsertionEffect(()=>{const{width:u,height:f,top:h,left:p}=o.current;if(t||!r.current||!u||!f)return;r.current.dataset.motionPopId=n;const y=document.createElement("style");return c&&(y.nonce=c),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(` 293 [data-motion-pop-id="${n}"] { 294 position: absolute !important; 295 width: ${u}px !important; 296 height: ${f}px !important; 297 top: ${h}px !important; 298 left: ${p}px !important; 299 } 300 `),()=>{document.head.removeChild(y)}},[t]),l.jsx(n4,{isPresent:t,childRef:r,sizeRef:o,children:k.cloneElement(e,{ref:r})})}const r4=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:c,mode:u})=>{const f=Vh(i4),h=k.useId(),p=k.useCallback(x=>{f.set(x,!0);for(const v of f.values())if(!v)return;r&&r()},[f,r]),y=k.useMemo(()=>({id:h,initial:t,isPresent:n,custom:o,onExitComplete:p,register:x=>(f.set(x,!1),()=>f.delete(x))}),c?[Math.random(),p]:[n,p]);return k.useMemo(()=>{f.forEach((x,v)=>f.set(v,!1))},[n]),k.useEffect(()=>{!n&&!f.size&&r&&r()},[n]),u==="popLayout"&&(e=l.jsx(s4,{isPresent:n,children:e})),l.jsx(Fc.Provider,{value:y,children:e})};function i4(){return new Map}function mw(e=!0){const t=k.useContext(Fc);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,c=k.useId();k.useEffect(()=>{e&&o(c)},[e]);const u=k.useCallback(()=>e&&r&&r(c),[c,r,e]);return!n&&r?[!1,u]:[!0]}const Yl=e=>e.key||"";function F0(e){const t=[];return k.Children.forEach(e,n=>{k.isValidElement(n)&&t.push(n)}),t}const zh=typeof window<"u",gw=zh?k.useLayoutEffect:k.useEffect,mt=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:c="sync",propagate:u=!1})=>{const[f,h]=mw(u),p=k.useMemo(()=>F0(e),[e]),y=u&&!f?[]:p.map(Yl),x=k.useRef(!0),v=k.useRef(p),w=Vh(()=>new Map),[E,j]=k.useState(p),[S,_]=k.useState(p);gw(()=>{x.current=!1,v.current=p;for(let T=0;T<S.length;T++){const I=Yl(S[T]);y.includes(I)?w.delete(I):w.get(I)!==!0&&w.set(I,!1)}},[S,y.length,y.join("-")]);const P=[];if(p!==E){let T=[...p];for(let I=0;I<S.length;I++){const $=S[I],q=Yl($);y.includes(q)||(T.splice(I,0,$),P.push($))}c==="wait"&&P.length&&(T=P),_(F0(T)),j(p);return}const{forceRender:C}=k.useContext(Bh);return l.jsx(l.Fragment,{children:S.map(T=>{const I=Yl(T),$=u&&!f?!1:p===S||y.includes(I),q=()=>{if(w.has(I))w.set(I,!0);else return;let M=!0;w.forEach(U=>{U||(M=!1)}),M&&(C==null||C(),_(v.current),u&&(h==null||h()),r&&r())};return l.jsx(r4,{isPresent:$,initial:!x.current||n?void 0:!1,custom:$?void 0:t,presenceAffectsLayout:o,mode:c,onExitComplete:$?void 0:q,children:T},I)})})},cn=e=>e;let yw=cn;function $h(e){let t;return()=>(t===void 0&&(t=e()),t)}const zi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},fs=e=>e*1e3,hs=e=>e/1e3,o4={useManualTiming:!1};function a4(e){let t=new Set,n=new Set,r=!1,o=!1;const c=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function f(p){c.has(p)&&(h.schedule(p),e()),p(u)}const h={schedule:(p,y=!1,x=!1)=>{const w=x&&r?t:n;return y&&c.add(p),w.has(p)||w.add(p),p},cancel:p=>{n.delete(p),c.delete(p)},process:p=>{if(u=p,r){o=!0;return}r=!0,[t,n]=[n,t],t.forEach(f),t.clear(),r=!1,o&&(o=!1,h.process(p))}};return h}const Xl=["read","resolveKeyframes","update","preRender","render","postRender"],l4=40;function xw(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},c=()=>n=!0,u=Xl.reduce((_,P)=>(_[P]=a4(c),_),{}),{read:f,resolveKeyframes:h,update:p,preRender:y,render:x,postRender:v}=u,w=()=>{const _=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(_-o.timestamp,l4),1),o.timestamp=_,o.isProcessing=!0,f.process(o),h.process(o),p.process(o),y.process(o),x.process(o),v.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(w))},E=()=>{n=!0,r=!0,o.isProcessing||e(w)};return{schedule:Xl.reduce((_,P)=>{const C=u[P];return _[P]=(T,I=!1,$=!1)=>(n||E(),C.schedule(T,I,$)),_},{}),cancel:_=>{for(let P=0;P<Xl.length;P++)u[Xl[P]].cancel(_)},state:o,steps:u}}const{schedule:Ye,cancel:nr,state:Ct,steps:Zd}=xw(typeof requestAnimationFrame<"u"?requestAnimationFrame:cn,!0),vw=k.createContext({strict:!1}),B0={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},$i={};for(const e in B0)$i[e]={isEnabled:t=>B0[e].some(n=>!!t[n])};function c4(e){for(const t in e)$i[t]={...$i[t],...e[t]}}const u4=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function wc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||u4.has(e)}let bw=e=>!wc(e);function d4(e){e&&(bw=t=>t.startsWith("on")?!wc(t):e(t))}try{d4(require("@emotion/is-prop-valid").default)}catch{}function f4(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(bw(o)||n===!0&&wc(o)||!t&&!wc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function h4(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}const Bc=k.createContext({});function fa(e){return typeof e=="string"||Array.isArray(e)}function Vc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const qh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wh=["initial",...qh];function Uc(e){return Vc(e.animate)||Wh.some(t=>fa(e[t]))}function ww(e){return!!(Uc(e)||e.variants)}function p4(e,t){if(Uc(e)){const{initial:n,animate:r}=e;return{initial:n===!1||fa(n)?n:void 0,animate:fa(r)?r:void 0}}return e.inherit!==!1?t:{}}function m4(e){const{initial:t,animate:n}=p4(e,k.useContext(Bc));return k.useMemo(()=>({initial:t,animate:n}),[V0(t),V0(n)])}function V0(e){return Array.isArray(e)?e.join(" "):e}const g4=Symbol.for("motionComponentSymbol");function Si(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function y4(e,t,n){return k.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Si(n)&&(n.current=r))},[t])}const Hh=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),x4="framerAppearId",_w="data-"+Hh(x4),{schedule:Kh}=xw(queueMicrotask,!1),Sw=k.createContext({});function v4(e,t,n,r,o){var c,u;const{visualElement:f}=k.useContext(Bc),h=k.useContext(vw),p=k.useContext(Fc),y=k.useContext(Uh).reducedMotion,x=k.useRef(null);r=r||h.renderer,!x.current&&r&&(x.current=r(e,{visualState:t,parent:f,props:n,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:y}));const v=x.current,w=k.useContext(Sw);v&&!v.projection&&o&&(v.type==="html"||v.type==="svg")&&b4(x.current,n,o,w);const E=k.useRef(!1);k.useInsertionEffect(()=>{v&&E.current&&v.update(n,p)});const j=n[_w],S=k.useRef(!!j&&!(!((c=window.MotionHandoffIsComplete)===null||c===void 0)&&c.call(window,j))&&((u=window.MotionHasOptimisedAnimation)===null||u===void 0?void 0:u.call(window,j)));return gw(()=>{v&&(E.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),Kh.render(v.render),S.current&&v.animationState&&v.animationState.animateChanges())}),k.useEffect(()=>{v&&(!S.current&&v.animationState&&v.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var _;(_=window.MotionHandoffMarkAsComplete)===null||_===void 0||_.call(window,j)}),S.current=!1))}),v}function b4(e,t,n,r){const{layoutId:o,layout:c,drag:u,dragConstraints:f,layoutScroll:h,layoutRoot:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:kw(e.parent)),e.projection.setOptions({layoutId:o,layout:c,alwaysMeasureLayout:!!u||f&&Si(f),visualElement:e,animationType:typeof c=="string"?c:"both",initialPromotionConfig:r,layoutScroll:h,layoutRoot:p})}function kw(e){if(e)return e.options.allowProjection!==!1?e.projection:kw(e.parent)}function w4({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var c,u;e&&c4(e);function f(p,y){let x;const v={...k.useContext(Uh),...p,layoutId:_4(p)},{isStatic:w}=v,E=m4(p),j=r(p,w);if(!w&&zh){S4();const S=k4(v);x=S.MeasureLayout,E.visualElement=v4(o,j,v,t,S.ProjectionNode)}return l.jsxs(Bc.Provider,{value:E,children:[x&&E.visualElement?l.jsx(x,{visualElement:E.visualElement,...v}):null,n(o,p,y4(j,E.visualElement,y),j,w,E.visualElement)]})}f.displayName=`motion.${typeof o=="string"?o:`create(${(u=(c=o.displayName)!==null&&c!==void 0?c:o.name)!==null&&u!==void 0?u:""})`}`;const h=k.forwardRef(f);return h[g4]=o,h}function _4({layoutId:e}){const t=k.useContext(Bh).id;return t&&e!==void 0?t+"-"+e:e}function S4(e,t){k.useContext(vw).strict}function k4(e){const{drag:t,layout:n}=$i;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const j4=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Gh(e){return typeof e!="string"||e.includes("-")?!1:!!(j4.indexOf(e)>-1||/[A-Z]/u.test(e))}function U0(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Qh(e,t,n,r){if(typeof t=="function"){const[o,c]=U0(r);t=t(n!==void 0?n:e.custom,o,c)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,c]=U0(r);t=t(n!==void 0?n:e.custom,o,c)}return t}const Qf=e=>Array.isArray(e),C4=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),E4=e=>Qf(e)?e[e.length-1]||0:e,Ft=e=>!!(e&&e.getVelocity);function cc(e){const t=Ft(e)?e.get():e;return C4(t)?t.toValue():t}function N4({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,c){const u={latestValues:P4(r,o,c,e),renderState:t()};return n&&(u.onMount=f=>n({props:r,current:f,...u}),u.onUpdate=f=>n(f)),u}const jw=e=>(t,n)=>{const r=k.useContext(Bc),o=k.useContext(Fc),c=()=>N4(e,t,r,o);return n?c():Vh(c)};function P4(e,t,n,r){const o={},c=r(e,{});for(const v in c)o[v]=cc(c[v]);let{initial:u,animate:f}=e;const h=Uc(e),p=ww(e);t&&p&&!h&&e.inherit!==!1&&(u===void 0&&(u=t.initial),f===void 0&&(f=t.animate));let y=n?n.initial===!1:!1;y=y||u===!1;const x=y?f:u;if(x&&typeof x!="boolean"&&!Vc(x)){const v=Array.isArray(x)?x:[x];for(let w=0;w<v.length;w++){const E=Qh(e,v[w]);if(E){const{transitionEnd:j,transition:S,..._}=E;for(const P in _){let C=_[P];if(Array.isArray(C)){const T=y?C.length-1:0;C=C[T]}C!==null&&(o[P]=C)}for(const P in j)o[P]=j[P]}}}return o}const Ji=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Hr=new Set(Ji),Cw=e=>t=>typeof t=="string"&&t.startsWith(e),Ew=Cw("--"),T4=Cw("var(--"),Yh=e=>T4(e)?R4.test(e.split("/*")[0].trim()):!1,R4=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Nw=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ps=(e,t,n)=>n>t?t:n<e?e:n,Zi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ha={...Zi,transform:e=>ps(0,1,e)},Jl={...Zi,default:1},Na=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Vs=Na("deg"),Qn=Na("%"),Se=Na("px"),A4=Na("vh"),O4=Na("vw"),z0={...Qn,parse:e=>Qn.parse(e)/100,transform:e=>Qn.transform(e*100)},L4={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,radius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,backgroundPositionX:Se,backgroundPositionY:Se},D4={rotate:Vs,rotateX:Vs,rotateY:Vs,rotateZ:Vs,scale:Jl,scaleX:Jl,scaleY:Jl,scaleZ:Jl,skew:Vs,skewX:Vs,skewY:Vs,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:ha,originX:z0,originY:z0,originZ:Se},$0={...Zi,transform:Math.round},Xh={...L4,...D4,zIndex:$0,size:Se,fillOpacity:ha,strokeOpacity:ha,numOctaves:$0},I4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},M4=Ji.length;function F4(e,t,n){let r="",o=!0;for(let c=0;c<M4;c++){const u=Ji[c],f=e[u];if(f===void 0)continue;let h=!0;if(typeof f=="number"?h=f===(u.startsWith("scale")?1:0):h=parseFloat(f)===0,!h||n){const p=Nw(f,Xh[u]);if(!h){o=!1;const y=I4[u]||u;r+=`${y}(${p}) `}n&&(t[u]=p)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Jh(e,t,n){const{style:r,vars:o,transformOrigin:c}=e;let u=!1,f=!1;for(const h in t){const p=t[h];if(Hr.has(h)){u=!0;continue}else if(Ew(h)){o[h]=p;continue}else{const y=Nw(p,Xh[h]);h.startsWith("origin")?(f=!0,c[h]=y):r[h]=y}}if(t.transform||(u||n?r.transform=F4(t,e.transform,n):r.transform&&(r.transform="none")),f){const{originX:h="50%",originY:p="50%",originZ:y=0}=c;r.transformOrigin=`${h} ${p} ${y}`}}const B4={offset:"stroke-dashoffset",array:"stroke-dasharray"},V4={offset:"strokeDashoffset",array:"strokeDasharray"};function U4(e,t,n=1,r=0,o=!0){e.pathLength=1;const c=o?B4:V4;e[c.offset]=Se.transform(-r);const u=Se.transform(t),f=Se.transform(n);e[c.array]=`${u} ${f}`}function q0(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function z4(e,t,n){const r=q0(t,e.x,e.width),o=q0(n,e.y,e.height);return`${r} ${o}`}function Zh(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:c,pathLength:u,pathSpacing:f=1,pathOffset:h=0,...p},y,x){if(Jh(e,p,x),y){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:w,dimensions:E}=e;v.transform&&(E&&(w.transform=v.transform),delete v.transform),E&&(o!==void 0||c!==void 0||w.transform)&&(w.transformOrigin=z4(E,o!==void 0?o:.5,c!==void 0?c:.5)),t!==void 0&&(v.x=t),n!==void 0&&(v.y=n),r!==void 0&&(v.scale=r),u!==void 0&&U4(v,u,f,h,!1)}const ep=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Pw=()=>({...ep(),attrs:{}}),tp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Tw(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const c in n)e.style.setProperty(c,n[c])}const Rw=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Aw(e,t,n,r){Tw(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Rw.has(o)?o:Hh(o),t.attrs[o])}const _c={};function $4(e){Object.assign(_c,e)}function Ow(e,{layout:t,layoutId:n}){return Hr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!_c[e]||e==="opacity")}function np(e,t,n){var r;const{style:o}=e,c={};for(const u in o)(Ft(o[u])||t.style&&Ft(t.style[u])||Ow(u,e)||((r=n==null?void 0:n.getValue(u))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(c[u]=o[u]);return c}function Lw(e,t,n){const r=np(e,t,n);for(const o in e)if(Ft(e[o])||Ft(t[o])){const c=Ji.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[c]=e[o]}return r}function q4(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const W0=["x","y","width","height","cx","cy","r"],W4={useVisualState:jw({scrapeMotionValuesFromProps:Lw,createRenderState:Pw,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let c=!!e.drag;if(!c){for(const f in o)if(Hr.has(f)){c=!0;break}}if(!c)return;let u=!t;if(t)for(let f=0;f<W0.length;f++){const h=W0[f];e[h]!==t[h]&&(u=!0)}u&&Ye.read(()=>{q4(n,r),Ye.render(()=>{Zh(r,o,tp(n.tagName),e.transformTemplate),Aw(n,r)})})}})},H4={useVisualState:jw({scrapeMotionValuesFromProps:np,createRenderState:ep})};function Dw(e,t,n){for(const r in t)!Ft(t[r])&&!Ow(r,n)&&(e[r]=t[r])}function K4({transformTemplate:e},t){return k.useMemo(()=>{const n=ep();return Jh(n,t,e),Object.assign({},n.vars,n.style)},[t])}function G4(e,t){const n=e.style||{},r={};return Dw(r,n,e),Object.assign(r,K4(e,t)),r}function Q4(e,t){const n={},r=G4(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function Y4(e,t,n,r){const o=k.useMemo(()=>{const c=Pw();return Zh(c,t,tp(r),e.transformTemplate),{...c.attrs,style:{...c.style}}},[t]);if(e.style){const c={};Dw(c,e.style,e),o.style={...c,...o.style}}return o}function X4(e=!1){return(n,r,o,{latestValues:c},u)=>{const h=(Gh(n)?Y4:Q4)(r,c,u,n),p=f4(r,typeof n=="string",e),y=n!==k.Fragment?{...p,...h,ref:o}:{},{children:x}=r,v=k.useMemo(()=>Ft(x)?x.get():x,[x]);return k.createElement(n,{...y,children:v})}}function J4(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const u={...Gh(r)?W4:H4,preloadedFeatures:e,useRender:X4(o),createVisualElement:t,Component:r};return w4(u)}}function Iw(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function zc(e,t,n){const r=e.getProps();return Qh(r,t,n!==void 0?n:r.custom,e)}const Z4=$h(()=>window.ScrollTimeline!==void 0);class e5{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(o=>{if(Z4()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{r.forEach((o,c)=>{o&&o(),this.animations[c].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class t5 extends e5{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function sp(e,t){return e?e[t]||e.default||e:void 0}const Yf=2e4;function Mw(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Yf;)t+=n,r=e.next(t);return t>=Yf?1/0:t}function rp(e){return typeof e=="function"}function H0(e,t){e.timeline=t,e.onfinish=null}const ip=e=>Array.isArray(e)&&typeof e[0]=="number",n5={linearEasing:void 0};function s5(e,t){const n=$h(e);return()=>{var r;return(r=n5[t])!==null&&r!==void 0?r:n()}}const Sc=s5(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Fw=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let c=0;c<o;c++)r+=e(zi(0,o-1,c))+", ";return`linear(${r.substring(0,r.length-2)})`};function Bw(e){return!!(typeof e=="function"&&Sc()||!e||typeof e=="string"&&(e in Xf||Sc())||ip(e)||Array.isArray(e)&&e.every(Bw))}const Jo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Xf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Jo([0,.65,.55,1]),circOut:Jo([.55,0,1,.45]),backIn:Jo([.31,.01,.66,-.59]),backOut:Jo([.33,1.53,.69,.99])};function Vw(e,t){if(e)return typeof e=="function"&&Sc()?Fw(e,t):ip(e)?Jo(e):Array.isArray(e)?e.map(n=>Vw(n,t)||Xf.easeOut):Xf[e]}const Ln={x:!1,y:!1};function Uw(){return Ln.x||Ln.y}function r5(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const c=(r=void 0)!==null&&r!==void 0?r:o.querySelectorAll(e);return c?Array.from(c):[]}return Array.from(e)}function zw(e,t){const n=r5(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function K0(e){return t=>{t.pointerType==="touch"||Uw()||e(t)}}function i5(e,t,n={}){const[r,o,c]=zw(e,n),u=K0(f=>{const{target:h}=f,p=t(f);if(typeof p!="function"||!h)return;const y=K0(x=>{p(x),h.removeEventListener("pointerleave",y)});h.addEventListener("pointerleave",y,o)});return r.forEach(f=>{f.addEventListener("pointerenter",u,o)}),c}const $w=(e,t)=>t?e===t?!0:$w(e,t.parentElement):!1,op=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,o5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function a5(e){return o5.has(e.tagName)||e.tabIndex!==-1}const Zo=new WeakSet;function G0(e){return t=>{t.key==="Enter"&&e(t)}}function ef(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const l5=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=G0(()=>{if(Zo.has(n))return;ef(n,"down");const o=G0(()=>{ef(n,"up")}),c=()=>ef(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",c,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Q0(e){return op(e)&&!Uw()}function c5(e,t,n={}){const[r,o,c]=zw(e,n),u=f=>{const h=f.currentTarget;if(!Q0(f)||Zo.has(h))return;Zo.add(h);const p=t(f),y=(w,E)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",v),!(!Q0(w)||!Zo.has(h))&&(Zo.delete(h),typeof p=="function"&&p(w,{success:E}))},x=w=>{y(w,n.useGlobalTarget||$w(h,w.target))},v=w=>{y(w,!1)};window.addEventListener("pointerup",x,o),window.addEventListener("pointercancel",v,o)};return r.forEach(f=>{!a5(f)&&f.getAttribute("tabindex")===null&&(f.tabIndex=0),(n.useGlobalTarget?window:f).addEventListener("pointerdown",u,o),f.addEventListener("focus",p=>l5(p,o),o)}),c}function u5(e){return e==="x"||e==="y"?Ln[e]?null:(Ln[e]=!0,()=>{Ln[e]=!1}):Ln.x||Ln.y?null:(Ln.x=Ln.y=!0,()=>{Ln.x=Ln.y=!1})}const qw=new Set(["width","height","top","left","right","bottom",...Ji]);let uc;function d5(){uc=void 0}const Yn={now:()=>(uc===void 0&&Yn.set(Ct.isProcessing||o4.useManualTiming?Ct.timestamp:performance.now()),uc),set:e=>{uc=e,queueMicrotask(d5)}};function ap(e,t){e.indexOf(t)===-1&&e.push(t)}function lp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class cp{constructor(){this.subscriptions=[]}add(t){return ap(this.subscriptions,t),()=>lp(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let c=0;c<o;c++){const u=this.subscriptions[c];u&&u(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Ww(e,t){return t?e*(1e3/t):0}const Y0=30,f5=e=>!isNaN(parseFloat(e));class h5{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const c=Yn.now();this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Yn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=f5(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new cp);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ye.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Yn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Y0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Y0);return Ww(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pa(e,t){return new h5(e,t)}function p5(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,pa(n))}function m5(e,t){const n=zc(e,t);let{transitionEnd:r={},transition:o={},...c}=n||{};c={...c,...r};for(const u in c){const f=E4(c[u]);p5(e,u,f)}}function g5(e){return!!(Ft(e)&&e.add)}function Jf(e,t){const n=e.getValue("willChange");if(g5(n))return n.add(t)}function Hw(e){return e.props[_w]}const Kw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,y5=1e-7,x5=12;function v5(e,t,n,r,o){let c,u,f=0;do u=t+(n-t)/2,c=Kw(u,r,o)-e,c>0?n=u:t=u;while(Math.abs(c)>y5&&++f<x5);return u}function Pa(e,t,n,r){if(e===t&&n===r)return cn;const o=c=>v5(c,0,1,e,n);return c=>c===0||c===1?c:Kw(o(c),t,r)}const Gw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Qw=e=>t=>1-e(1-t),Yw=Pa(.33,1.53,.69,.99),up=Qw(Yw),Xw=Gw(up),Jw=e=>(e*=2)<1?.5*up(e):.5*(2-Math.pow(2,-10*(e-1))),dp=e=>1-Math.sin(Math.acos(e)),Zw=Qw(dp),e1=Gw(dp),t1=e=>/^0[^.\s]+$/u.test(e);function b5(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||t1(e):!0}const sa=e=>Math.round(e*1e5)/1e5,fp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function w5(e){return e==null}const _5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,hp=(e,t)=>n=>!!(typeof n=="string"&&_5.test(n)&&n.startsWith(e)||t&&!w5(n)&&Object.prototype.hasOwnProperty.call(n,t)),n1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,c,u,f]=r.match(fp);return{[e]:parseFloat(o),[t]:parseFloat(c),[n]:parseFloat(u),alpha:f!==void 0?parseFloat(f):1}},S5=e=>ps(0,255,e),tf={...Zi,transform:e=>Math.round(S5(e))},Pr={test:hp("rgb","red"),parse:n1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+tf.transform(e)+", "+tf.transform(t)+", "+tf.transform(n)+", "+sa(ha.transform(r))+")"};function k5(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Zf={test:hp("#"),parse:k5,transform:Pr.transform},ki={test:hp("hsl","hue"),parse:n1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Qn.transform(sa(t))+", "+Qn.transform(sa(n))+", "+sa(ha.transform(r))+")"},Mt={test:e=>Pr.test(e)||Zf.test(e)||ki.test(e),parse:e=>Pr.test(e)?Pr.parse(e):ki.test(e)?ki.parse(e):Zf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Pr.transform(e):ki.transform(e)},j5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function C5(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(fp))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(j5))===null||n===void 0?void 0:n.length)||0)>0}const s1="number",r1="color",E5="var",N5="var(",X0="${}",P5=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ma(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let c=0;const f=t.replace(P5,h=>(Mt.test(h)?(r.color.push(c),o.push(r1),n.push(Mt.parse(h))):h.startsWith(N5)?(r.var.push(c),o.push(E5),n.push(h)):(r.number.push(c),o.push(s1),n.push(parseFloat(h))),++c,X0)).split(X0);return{values:n,split:f,indexes:r,types:o}}function i1(e){return ma(e).values}function o1(e){const{split:t,types:n}=ma(e),r=t.length;return o=>{let c="";for(let u=0;u<r;u++)if(c+=t[u],o[u]!==void 0){const f=n[u];f===s1?c+=sa(o[u]):f===r1?c+=Mt.transform(o[u]):c+=o[u]}return c}}const T5=e=>typeof e=="number"?0:e;function R5(e){const t=i1(e);return o1(e)(t.map(T5))}const sr={test:C5,parse:i1,createTransformer:o1,getAnimatableNone:R5},A5=new Set(["brightness","contrast","saturate","opacity"]);function O5(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(fp)||[];if(!r)return e;const o=n.replace(r,"");let c=A5.has(t)?1:0;return r!==n&&(c*=100),t+"("+c+o+")"}const L5=/\b([a-z-]*)\(.*?\)/gu,eh={...sr,getAnimatableNone:e=>{const t=e.match(L5);return t?t.map(O5).join(" "):e}},D5={...Xh,color:Mt,backgroundColor:Mt,outlineColor:Mt,fill:Mt,stroke:Mt,borderColor:Mt,borderTopColor:Mt,borderRightColor:Mt,borderBottomColor:Mt,borderLeftColor:Mt,filter:eh,WebkitFilter:eh},pp=e=>D5[e];function a1(e,t){let n=pp(e);return n!==eh&&(n=sr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const I5=new Set(["auto","none","0"]);function M5(e,t,n){let r=0,o;for(;r<e.length&&!o;){const c=e[r];typeof c=="string"&&!I5.has(c)&&ma(c).values.length&&(o=e[r]),r++}if(o&&n)for(const c of t)e[c]=a1(n,o)}const J0=e=>e===Zi||e===Se,Z0=(e,t)=>parseFloat(e.split(", ")[t]),ex=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Z0(o[1],t);{const c=r.match(/^matrix\((.+)\)$/u);return c?Z0(c[1],e):0}},F5=new Set(["x","y","z"]),B5=Ji.filter(e=>!F5.has(e));function V5(e){const t=[];
vendor: 8,721 bytes, line 300
300return B5.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const qi={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ex(4,13),y:ex(5,14)};qi.translateX=qi.x;qi.translateY=qi.y;const Ur=new Set;let th=!1,nh=!1;function l1(){if(nh){const e=Array.from(Ur).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=V5(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([c,u])=>{var f;(f=r.getValue(c))===null||f===void 0||f.set(u)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}nh=!1,th=!1,Ur.forEach(e=>e.complete()),Ur.clear()}function c1(){Ur.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(nh=!0)})}function U5(){c1(),l1()}class mp{constructor(t,n,r,o,c,u=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=c,this.isAsync=u}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ur.add(this),th||(th=!0,Ye.read(c1),Ye.resolveKeyframes(l1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let c=0;c<t.length;c++)if(t[c]===null)if(c===0){const u=o==null?void 0:o.get(),f=t[t.length-1];if(u!==void 0)t[0]=u;else if(r&&n){const h=r.readValue(n,f);h!=null&&(t[0]=h)}t[0]===void 0&&(t[0]=f),o&&u===void 0&&o.set(t[0])}else t[c]=t[c-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ur.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ur.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const u1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),z5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function $5(e){const t=z5.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function d1(e,t,n=1){const[r,o]=$5(e);if(!r)return;const c=window.getComputedStyle(t).getPropertyValue(r);if(c){const u=c.trim();return u1(u)?parseFloat(u):u}return Yh(o)?d1(o,t,n+1):o}const f1=e=>t=>t.test(e),q5={test:e=>e==="auto",parse:e=>e},h1=[Zi,Se,Qn,Vs,O4,A4,q5],tx=e=>h1.find(f1(e));class p1 extends mp{constructor(t,n,r,o,c){super(t,n,r,o,c,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let h=0;h<t.length;h++){let p=t[h];if(typeof p=="string"&&(p=p.trim(),Yh(p))){const y=d1(p,n.current);y!==void 0&&(t[h]=y),h===t.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!qw.has(r)||t.length!==2)return;const[o,c]=t,u=tx(o),f=tx(c);if(u!==f)if(J0(u)&&J0(f))for(let h=0;h<t.length;h++){const p=t[h];typeof p=="string"&&(t[h]=parseFloat(p))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)b5(t[o])&&r.push(o);r.length&&M5(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=qi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const c=n.getValue(r);c&&c.jump(this.measuredOrigin,!1);const u=o.length-1,f=o[u];o[u]=qi[r](n.measureViewportBox(),window.getComputedStyle(n.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([h,p])=>{n.getValue(h).set(p)}),this.resolveNoneKeyframes()}}const nx=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(sr.test(e)||e==="0")&&!e.startsWith("url("));function W5(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function H5(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const c=e[e.length-1],u=nx(o,t),f=nx(c,t);return!u||!f?!1:W5(e)||(n==="spring"||rp(n))&&r}const K5=e=>e!==null;function $c(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(K5),c=t&&n!=="loop"&&t%2===1?0:o.length-1;return!c||r===void 0?o[c]:r}const G5=40;class m1{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:c=0,repeatType:u="loop",...f}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Yn.now(),this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:c,repeatType:u,...f},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>G5?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&U5(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Yn.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:c,delay:u,onComplete:f,onUpdate:h,isGenerator:p}=this.options;if(!p&&!H5(t,r,o,c))if(u)this.options.duration=0;else{h&&h($c(t,this.options,n)),f&&f(),this.resolveFinishedPromise();return}const y=this.initPlayback(t,n);y!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...y},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const tt=(e,t,n)=>e+(t-e)*n;function nf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Q5({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,c=0,u=0;if(!t)o=c=u=n;else{const f=n<.5?n*(1+t):n+t-n*t,h=2*n-f;o=nf(h,f,e+1/3),c=nf(h,f,e),u=nf(h,f,e-1/3)}return{red:Math.round(o*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:r}}function kc(e,t){return n=>n>0?t:e}const sf=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Y5=[Zf,Pr,ki],X5=e=>Y5.find(t=>t.test(e));function sx(e){const t=X5(e);if(!t)return!1;let n=t.parse(e);return t===ki&&(n=Q5(n)),n}const rx=(e,t)=>{const n=sx(e),r=sx(t);if(!n||!r)return kc(e,t);const o={...n};return c=>(o.red=sf(n.red,r.red,c),o.green=sf(n.green,r.green,c),o.blue=sf(n.blue,r.blue,c),o.alpha=tt(n.alpha,r.alpha,c),Pr.transform(o))},J5=(e,t)=>n=>t(e(n)),Ta=(...e)=>e.reduce(J5),sh=new Set(["none","hidden"]);function Z5(e,t){return sh.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function eR(e,t){return n=>tt(e,t,n)}function gp(e){return typeof e=="number"?eR:typeof e=="string"?Yh(e)?kc:Mt.test(e)?rx:sR:Array.isArray(e)?g1:typeof e=="object"?Mt.test(e)?rx:tR:kc}function g1(e,t){const n=[...e],r=n.length,o=e.map((c,u)=>gp(c)(c,t[u]));return c=>{for(let u=0;u<r;u++)n[u]=o[u](c);return n}}function tR(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=gp(e[o])(e[o],t[o]));return o=>{for(const c in r)n[c]=r[c](o);return n}}function nR(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let c=0;c<t.values.length;c++){const u=t.types[c],f=e.indexes[u][o[u]],h=(n=e.values[f])!==null&&n!==void 0?n:0;r[c]=h,o[u]++}return r}const sR=(e,t)=>{const n=sr.createTransformer(t),r=ma(e),o=ma(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?sh.has(e)&&!o.values.length||sh.has(t)&&!r.values.length?Z5(e,t):Ta(g1(nR(r,o),o.values),n):kc(e,t)};function y1(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):gp(e)(e,t)}const rR=5;function x1(e,t,n){const r=Math.max(t-rR,0);return Ww(n-e(r),t-r)}const rt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},rf=.001;function iR({duration:e=rt.duration,bounce:t=rt.bounce,velocity:n=rt.velocity,mass:r=rt.mass}){let o,c,u=1-t;u=ps(rt.minDamping,rt.maxDamping,u),e=ps(rt.minDuration,rt.maxDuration,hs(e)),u<1?(o=p=>{const y=p*u,x=y*e,v=y-n,w=rh(p,u),E=Math.exp(-x);return rf-v/w*E},c=p=>{const x=p*u*e,v=x*n+n,w=Math.pow(u,2)*Math.pow(p,2)*e,E=Math.exp(-x),j=rh(Math.pow(p,2),u);return(-o(p)+rf>
vendor: 61,708 bytes, line 300
3000?-1:1)*((v-w)*E)/j}):(o=p=>{const y=Math.exp(-p*e),x=(p-n)*e+1;return-rf+y*x},c=p=>{const y=Math.exp(-p*e),x=(n-p)*(e*e);return y*x});const f=5/e,h=aR(o,c,f);if(e=fs(e),isNaN(h))return{stiffness:rt.stiffness,damping:rt.damping,duration:e};{const p=Math.pow(h,2)*r;return{stiffness:p,damping:u*2*Math.sqrt(r*p),duration:e}}}const oR=12;function aR(e,t,n){let r=n;for(let o=1;o<oR;o++)r=r-e(r)/t(r);return r}function rh(e,t){return e*Math.sqrt(1-t*t)}const lR=["duration","bounce"],cR=["stiffness","damping","mass"];function ix(e,t){return t.some(n=>e[n]!==void 0)}function uR(e){let t={velocity:rt.velocity,stiffness:rt.stiffness,damping:rt.damping,mass:rt.mass,isResolvedFromDuration:!1,...e};if(!ix(e,cR)&&ix(e,lR))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,c=2*ps(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:rt.mass,stiffness:o,damping:c}}else{const n=iR(e);t={...t,...n,mass:rt.mass},t.isResolvedFromDuration=!0}return t}function v1(e=rt.visualDuration,t=rt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const c=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],f={done:!1,value:c},{stiffness:h,damping:p,mass:y,duration:x,velocity:v,isResolvedFromDuration:w}=uR({...n,velocity:-hs(n.velocity||0)}),E=v||0,j=p/(2*Math.sqrt(h*y)),S=u-c,_=hs(Math.sqrt(h/y)),P=Math.abs(S)<5;r||(r=P?rt.restSpeed.granular:rt.restSpeed.default),o||(o=P?rt.restDelta.granular:rt.restDelta.default);let C;if(j<1){const I=rh(_,j);C=$=>{const q=Math.exp(-j*_*$);return u-q*((E+j*_*S)/I*Math.sin(I*$)+S*Math.cos(I*$))}}else if(j===1)C=I=>u-Math.exp(-_*I)*(S+(E+_*S)*I);else{const I=_*Math.sqrt(j*j-1);C=$=>{const q=Math.exp(-j*_*$),M=Math.min(I*$,300);return u-q*((E+j*_*S)*Math.sinh(M)+I*S*Math.cosh(M))/I}}const T={calculatedDuration:w&&x||null,next:I=>{const $=C(I);if(w)f.done=I>=x;else{let q=0;j<1&&(q=I===0?fs(E):x1(C,I,$));const M=Math.abs(q)<=r,U=Math.abs(u-$)<=o;f.done=M&&U}return f.value=f.done?u:$,f},toString:()=>{const I=Math.min(Mw(T),Yf),$=Fw(q=>T.next(I*q).value,I,30);return I+"ms "+$}};return T}function ox({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:c=500,modifyTarget:u,min:f,max:h,restDelta:p=.5,restSpeed:y}){const x=e[0],v={done:!1,value:x},w=M=>f!==void 0&&M<f||h!==void 0&&M>h,E=M=>f===void 0?h:h===void 0||Math.abs(f-M)<Math.abs(h-M)?f:h;let j=n*t;const S=x+j,_=u===void 0?S:u(S);_!==S&&(j=_-x);const P=M=>-j*Math.exp(-M/r),C=M=>_+P(M),T=M=>{const U=P(M),Z=C(M);v.done=Math.abs(U)<=p,v.value=v.done?_:Z};let I,$;const q=M=>{w(v.value)&&(I=M,$=v1({keyframes:[v.value,E(v.value)],velocity:x1(C,M,v.value),damping:o,stiffness:c,restDelta:p,restSpeed:y}))};return q(0),{calculatedDuration:null,next:M=>{let U=!1;return!$&&I===void 0&&(U=!0,T(M),q(M)),I!==void 0&&M>=I?$.next(M-I):(!U&&T(M),v)}}}const dR=Pa(.42,0,1,1),fR=Pa(0,0,.58,1),b1=Pa(.42,0,.58,1),hR=e=>Array.isArray(e)&&typeof e[0]!="number",pR={linear:cn,easeIn:dR,easeInOut:b1,easeOut:fR,circIn:dp,circInOut:e1,circOut:Zw,backIn:up,backInOut:Xw,backOut:Yw,anticipate:Jw},ax=e=>{if(ip(e)){yw(e.length===4);const[t,n,r,o]=e;return Pa(t,n,r,o)}else if(typeof e=="string")return pR[e];return e};function mR(e,t,n){const r=[],o=n||y1,c=e.length-1;for(let u=0;u<c;u++){let f=o(e[u],e[u+1]);if(t){const h=Array.isArray(t)?t[u]||cn:t;f=Ta(h,f)}r.push(f)}return r}function gR(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const c=e.length;if(yw(c===t.length),c===1)return()=>t[0];if(c===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[c-1]&&(e=[...e].reverse(),t=[...t].reverse());const f=mR(t,r,o),h=f.length,p=y=>{if(u&&y<e[0])return t[0];let x=0;if(h>1)for(;x<e.length-2&&!(y<e[x+1]);x++);const v=zi(e[x],e[x+1],y);return f[x](v)};return n?y=>p(ps(e[0],e[c-1],y)):p}function yR(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=zi(0,t,r);e.push(tt(n,1,o))}}function xR(e){const t=[0];return yR(t,e.length-1),t}function vR(e,t){return e.map(n=>n*t)}function bR(e,t){return e.map(()=>t||b1).splice(0,e.length-1)}function jc({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=hR(r)?r.map(ax):ax(r),c={done:!1,value:t[0]},u=vR(n&&n.length===t.length?n:xR(t),e),f=gR(u,t,{ease:Array.isArray(o)?o:bR(t,o)});return{calculatedDuration:e,next:h=>(c.value=f(h),c.done=h>=e,c)}}const wR=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ye.update(t,!0),stop:()=>nr(t),now:()=>Ct.isProcessing?Ct.timestamp:Yn.now()}},_R={decay:ox,inertia:ox,tween:jc,keyframes:jc,spring:v1},SR=e=>e/100;class yp extends m1{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:h}=this.options;h&&h()};const{name:n,motionValue:r,element:o,keyframes:c}=this.options,u=(o==null?void 0:o.KeyframeResolver)||mp,f=(h,p)=>this.onKeyframesResolved(h,p);this.resolver=new u(c,f,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:c,velocity:u=0}=this.options,f=rp(n)?n:_R[n]||jc;let h,p;f!==jc&&typeof t[0]!="number"&&(h=Ta(SR,y1(t[0],t[1])),t=[0,100]);const y=f({...this.options,keyframes:t});c==="mirror"&&(p=f({...this.options,keyframes:[...t].reverse(),velocity:-u})),y.calculatedDuration===null&&(y.calculatedDuration=Mw(y));const{calculatedDuration:x}=y,v=x+o,w=v*(r+1)-o;return{generator:y,mirroredGenerator:p,mapPercentToKeyframes:h,calculatedDuration:x,resolvedDuration:v,totalDuration:w}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:M}=this.options;return{done:!0,value:M[M.length-1]}}const{finalKeyframe:o,generator:c,mirroredGenerator:u,mapPercentToKeyframes:f,keyframes:h,calculatedDuration:p,totalDuration:y,resolvedDuration:x}=r;if(this.startTime===null)return c.next(0);const{delay:v,repeat:w,repeatType:E,repeatDelay:j,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-y/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const _=this.currentTime-v*(this.speed>=0?1:-1),P=this.speed>=0?_<0:_>y;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=y);let C=this.currentTime,T=c;if(w){const M=Math.min(this.currentTime,y)/x;let U=Math.floor(M),Z=M%1;!Z&&M>=1&&(Z=1),Z===1&&U--,U=Math.min(U,w+1),!!(U%2)&&(E==="reverse"?(Z=1-Z,j&&(Z-=j/x)):E==="mirror"&&(T=u)),C=ps(0,1,Z)*x}const I=P?{done:!1,value:h[0]}:T.next(C);f&&(I.value=f(I.value));let{done:$}=I;!P&&p!==null&&($=this.speed>=0?this.currentTime>=y:this.currentTime<=0);const q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&$);return q&&o!==void 0&&(I.value=$c(h,this.options,o)),S&&S(I.value),q&&this.finish(),I}get duration(){const{resolved:t}=this;return t?hs(t.calculatedDuration):0}get time(){return hs(this.currentTime)}set time(t){t=fs(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=hs(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=wR,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(c=>this.tick(c))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const kR=new Set(["opacity","clipPath","filter","transform"]);function jR(e,t,n,{delay:r=0,duration:o=300,repeat:c=0,repeatType:u="loop",ease:f="easeInOut",times:h}={}){const p={[t]:n};h&&(p.offset=h);const y=Vw(f,o);return Array.isArray(y)&&(p.easing=y),e.animate(p,{delay:r,duration:o,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:c+1,direction:u==="reverse"?"alternate":"normal"})}const CR=$h(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Cc=10,ER=2e4;function NR(e){return rp(e.type)||e.type==="spring"||!Bw(e.ease)}function PR(e,t){const n=new yp({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let c=0;for(;!r.done&&c<ER;)r=n.sample(c),o.push(r.value),c+=Cc;return{times:void 0,keyframes:o,duration:c-Cc,ease:"linear"}}const w1={anticipate:Jw,backInOut:Xw,circInOut:e1};function TR(e){return e in w1}class lx extends m1{constructor(t){super(t);const{name:n,motionValue:r,element:o,keyframes:c}=this.options;this.resolver=new p1(c,(u,f)=>this.onKeyframesResolved(u,f),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:o,ease:c,type:u,motionValue:f,name:h,startTime:p}=this.options;if(!f.owner||!f.owner.current)return!1;if(typeof c=="string"&&Sc()&&TR(c)&&(c=w1[c]),NR(this.options)){const{onComplete:x,onUpdate:v,motionValue:w,element:E,...j}=this.options,S=PR(t,j);t=S.keyframes,t.length===1&&(t[1]=t[0]),r=S.duration,o=S.times,c=S.ease,u="keyframes"}const y=jR(f.owner.current,h,t,{...this.options,duration:r,times:o,ease:c});return y.startTime=p??this.calcStartTime(),this.pendingTimeline?(H0(y,this.pendingTimeline),this.pendingTimeline=void 0):y.onfinish=()=>{const{onComplete:x}=this.options;f.set($c(t,this.options,n)),x&&x(),this.cancel(),this.resolveFinishedPromise()},{animation:y,duration:r,times:o,type:u,ease:c,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return hs(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return hs(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=fs(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return cn;const{animation:r}=n;H0(r,t)}return cn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:c,ease:u,times:f}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:p,onUpdate:y,onComplete:x,element:v,...w}=this.options,E=new yp({...w,keyframes:r,duration:o,type:c,ease:u,times:f,isGenerator:!0}),j=fs(this.time);p.setWithVelocity(E.sample(j-Cc).value,E.sample(j).value,Cc)}const{onStop:h}=this.options;h&&h(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:c,damping:u,type:f}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:p}=n.owner.getProps();return CR()&&r&&kR.has(r)&&!h&&!p&&!o&&c!=="mirror"&&u!==0&&f!=="inertia"}}const RR={type:"spring",stiffness:500,damping:25,restSpeed:10},AR=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),OR={type:"keyframes",duration:.8},LR={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},DR=(e,{keyframes:t})=>t.length>2?OR:Hr.has(e)?e.startsWith("scale")?AR(t[1]):RR:LR;function IR({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:c,repeatType:u,repeatDelay:f,from:h,elapsed:p,...y}){return!!Object.keys(y).length}const xp=(e,t,n,r={},o,c)=>u=>{const f=sp(r,e)||{},h=f.delay||r.delay||0;let{elapsed:p=0}=r;p=p-fs(h);let y={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...f,delay:-p,onUpdate:v=>{t.set(v),f.onUpdate&&f.onUpdate(v)},onComplete:()=>{u(),f.onComplete&&f.onComplete()},name:e,motionValue:t,element:c?void 0:o};IR(f)||(y={...y,...DR(e,y)}),y.duration&&(y.duration=fs(y.duration)),y.repeatDelay&&(y.repeatDelay=fs(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let x=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(y.duration=0,y.delay===0&&(x=!0)),x&&!c&&t.get()!==void 0){const v=$c(y.keyframes,f);if(v!==void 0)return Ye.update(()=>{y.onUpdate(v),y.onComplete()}),new t5([])}return!c&&lx.supports(y)?new lx(y):new yp(y)};function MR({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function _1(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var c;let{transition:u=e.getDefaultTransition(),transitionEnd:f,...h}=t;r&&(u=r);const p=[],y=o&&e.animationState&&e.animationState.getState()[o];for(const x in h){const v=e.getValue(x,(c=e.latestValues[x])!==null&&c!==void 0?c:null),w=h[x];if(w===void 0||y&&MR(y,x))continue;const E={delay:n,...sp(u||{},x)};let j=!1;if(window.MotionHandoffAnimation){const _=Hw(e);if(_){const P=window.MotionHandoffAnimation(_,x,Ye);P!==null&&(E.startTime=P,j=!0)}}Jf(e,x),v.start(xp(x,v,w,e.shouldReduceMotion&&qw.has(x)?{type:!1}:E,e,j));const S=v.animation;S&&p.push(S)}return f&&Promise.all(p).then(()=>{Ye.update(()=>{f&&m5(e,f)})}),p}function ih(e,t,n={}){var r;const o=zc(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:c=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(c=n.transitionOverride);const u=o?()=>Promise.all(_1(e,o,n)):()=>Promise.resolve(),f=e.variantChildren&&e.variantChildren.size?(p=0)=>{const{delayChildren:y=0,staggerChildren:x,staggerDirection:v}=c;return FR(e,t,y+p,x,v,n)}:()=>Promise.resolve(),{when:h}=c;if(h){const[p,y]=h==="beforeChildren"?[u,f]:[f,u];return p().then(()=>y())}else return Promise.all([u(),f(n.delay)])}function FR(e,t,n=0,r=0,o=1,c){const u=[],f=(e.variantChildren.size-1)*r,h=o===1?(p=0)=>p*r:(p=0)=>f-p*r;return Array.from(e.variantChildren).sort(BR).forEach((p,y)=>{p.notify("AnimationStart",t),u.push(ih(p,t,{...c,delay:n+h(y)}).then(()=>p.notify("AnimationComplete",t)))}),Promise.all(u)}function BR(e,t){return e.sortNodePosition(t)}function VR(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(c=>ih(e,c,n));r=Promise.all(o)}else if(typeof t=="string")r=ih(e,t,n);else{const o=typeof t=="function"?zc(e,t,n.custom):t;r=Promise.all(_1(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const UR=Wh.length;function S1(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?S1(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<UR;n++){const r=Wh[n],o=e.props[r];(fa(o)||o===!1)&&(t[r]=o)}return t}const zR=[...qh].reverse(),$R=qh.length;function qR(e){return t=>Promise.all(t.map(({animation:n,options:r})=>VR(e,n,r)))}function WR(e){let t=qR(e),n=cx(),r=!0;const o=h=>(p,y)=>{var x;const v=zc(e,y,h==="exit"?(x=e.presenceContext)===null||x===void 0?void 0:x.custom:void 0);if(v){const{transition:w,transitionEnd:E,...j}=v;p={...p,...j,...E}}return p};function c(h){t=h(e)}function u(h){const{props:p}=e,y=S1(e.parent)||{},x=[],v=new Set;let w={},E=1/0;for(let S=0;S<$R;S++){const _=zR[S],P=n[_],C=p[_]!==void 0?p[_]:y[_],T=fa(C),I=_===h?P.isActive:null;I===!1&&(E=S);let $=C===y[_]&&C!==p[_]&&T;if($&&r&&e.manuallyAnimateOnMount&&($=!1),P.protectedKeys={...w},!P.isActive&&I===null||!C&&!P.prevProp||Vc(C)||typeof C=="boolean")continue;const q=HR(P.prevProp,C);let M=q||_===h&&P.isActive&&!$&&T||S>E&&T,U=!1;const Z=Array.isArray(C)?C:[C];let pe=Z.reduce(o(_),{});I===!1&&(pe={});const{prevResolvedValues:je={}}=P,Te={...je,...pe},Ce=ce=>{M=!0,v.has(ce)&&(U=!0,v.delete(ce)),P.needsAnimating[ce]=!0;const Q=e.getValue(ce);Q&&(Q.liveStyle=!1)};for(const ce in Te){const Q=pe[ce],se=je[ce];if(w.hasOwnProperty(ce))continue;let z=!1;Qf(Q)&&Qf(se)?z=!Iw(Q,se):z=Q!==se,z?Q!=null?Ce(ce):v.add(ce):Q!==void 0&&v.has(ce)?Ce(ce):P.protectedKeys[ce]=!0}P.prevProp=C,P.prevResolvedValues=pe,P.isActive&&(w={...w,...pe}),r&&e.blockInitialAnimation&&(M=!1),M&&(!($&&q)||U)&&x.push(...Z.map(ce=>({animation:ce,options:{type:_}})))}if(v.size){const S={};v.forEach(_=>{const P=e.getBaseTarget(_),C=e.getValue(_);C&&(C.liveStyle=!0),S[_]=P??null}),x.push({animation:S})}let j=!!x.length;return r&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(j=!1),r=!1,j?t(x):Promise.resolve()}function f(h,p){var y;if(n[h].isActive===p)return Promise.resolve();(y=e.variantChildren)===null||y===void 0||y.forEach(v=>{var w;return(w=v.animationState)===null||w===void 0?void 0:w.setActive(h,p)}),n[h].isActive=p;const x=u(h);for(const v in n)n[v].protectedKeys={};return x}return{animateChanges:u,setActive:f,setAnimateFunction:c,getState:()=>n,reset:()=>{n=cx(),r=!0}}}function HR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Iw(t,e):!1}function _r(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function cx(){return{animate:_r(!0),whileInView:_r(),whileHover:_r(),whileTap:_r(),whileDrag:_r(),whileFocus:_r(),exit:_r()}}class or{constructor(t){this.isMounted=!1,this.node=t}update(){}}class KR extends or{constructor(t){super(t),t.animationState||(t.animationState=WR(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Vc(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let GR=0;class QR extends or{constructor(){super(...arguments),this.id=GR++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const YR={animation:{Feature:KR},exit:{Feature:QR}};function ga(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ra(e){return{point:{x:e.pageX,y:e.pageY}}}const XR=e=>t=>op(t)&&e(t,Ra(t));function ra(e,t,n,r){return ga(e,t,XR(n),r)}const ux=(e,t)=>Math.abs(e-t);function JR(e,t){const n=ux(e.x,t.x),r=ux(e.y,t.y);return Math.sqrt(n**2+r**2)}class k1{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:c=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=af(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,w=JR(x.offset,{x:0,y:0})>=3;if(!v&&!w)return;const{point:E}=x,{timestamp:j}=Ct;this.history.push({...E,timestamp:j});const{onStart:S,onMove:_}=this.handlers;v||(S&&S(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,x)},this.handlePointerMove=(x,v)=>{this.lastMoveEvent=x,this.lastMoveEventInfo=of(v,this.transformPagePoint),Ye.update(this.updatePoint,!0)},this.handlePointerUp=(x,v)=>{this.end();const{onEnd:w,onSessionEnd:E,resumeAnimation:j}=this.handlers;if(this.dragSnapToOrigin&&j&&j(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=af(x.type==="pointercancel"?this.lastMoveEventInfo:of(v,this.transformPagePoint),this.history);this.startEvent&&w&&w(x,S),E&&E(x,S)},!op(t))return;this.dragSnapToOrigin=c,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const u=Ra(t),f=of(u,this.transformPagePoint),{point:h}=f,{timestamp:p}=Ct;this.history=[{...h,timestamp:p}];const{onSessionStart:y}=n;y&&y(t,af(f,this.history)),this.removeListeners=Ta(ra(this.contextWindow,"pointermove",this.handlePointerMove),ra(this.contextWindow,"pointerup",this.handlePointerUp),ra(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),nr(this.updatePoint)}}function of(e,t){return t?{point:t(e.point)}:e}function dx(e,t){return{x:e.x-t.x,y:e.y-t.y}}function af({point:e},t){return{point:e,delta:dx(e,j1(t)),offset:dx(e,ZR(t)),velocity:eA(t,.1)}}function ZR(e){return e[0]}function j1(e){return e[e.length-1]}function eA(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=j1(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>fs(t)));)n--;if(!r)return{x:0,y:0};const c=hs(o.timestamp-r.timestamp);if(c===0)return{x:0,y:0};const u={x:(o.x-r.x)/c,y:(o.y-r.y)/c};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}const C1=1e-4,tA=1-C1,nA=1+C1,E1=.01,sA=0-E1,rA=0+E1;function un(e){return e.max-e.min}function iA(e,t,n){return Math.abs(e-t)<=n}function fx(e,t,n,r=.5){e.origin=r,e.originPoint=tt(t.min,t.max,e.origin),e.scale=un(n)/un(t),e.translate=tt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=tA&&e.scale<=nA||isNaN(e.scale))&&(e.scale=1),(e.translate>=sA&&e.translate<=rA||isNaN(e.translate))&&(e.translate=0)}function ia(e,t,n,r){fx(e.x,t.x,n.x,r?r.originX:void 0),fx(e.y,t.y,n.y,r?r.originY:void 0)}function hx(e,t,n){e.min=n.min+t.min,e.max=e.min+un(t)}function oA(e,t,n){hx(e.x,t.x,n.x),hx(e.y,t.y,n.y)}function px(e,t,n){e.min=t.min-n.min,e.max=e.min+un(t)}function oa(e,t,n){px(e.x,t.x,n.x),px(e.y,t.y,n.y)}function aA(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?tt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?tt(n,e,r.max):Math.min(e,n)),e}function mx(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function lA(e,{top:t,left:n,bottom:r,right:o}){return{x:mx(e.x,n,o),y:mx(e.y,t,r)}}function gx(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function cA(e,t){return{x:gx(e.x,t.x),y:gx(e.y,t.y)}}function uA(e,t){let n=.5;const r=un(e),o=un(t);return o>r?n=zi(t.min,t.max-r,e.min):r>o&&(n=zi(e.min,e.max-o,t.min)),ps(0,1,n)}function dA(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const oh=.35;function fA(e=oh){return e===!1?e=0:e===!0&&(e=oh),{x:yx(e,"left","right"),y:yx(e,"top","bottom")}}function yx(e,t,n){return{min:xx(e,t),max:xx(e,n)}}function xx(e,t){return typeof e=="number"?e:e[t]||0}const vx=()=>({translate:0,scale:1,origin:0,originPoint:0}),ji=()=>({x:vx(),y:vx()}),bx=()=>({min:0,max:0}),lt=()=>({x:bx(),y:bx()});function vn(e){return[e("x"),e("y")]}function N1({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function hA({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function pA(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function lf(e){return e===void 0||e===1}function ah({scale:e,scaleX:t,scaleY:n}){return!lf(e)||!lf(t)||!lf(n)}function jr(e){return ah(e)||P1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function P1(e){return wx(e.x)||wx(e.y)}function wx(e){return e&&e!=="0%"}function Ec(e,t,n){const r=e-n,o=t*r;return n+o}function _x(e,t,n,r,o){return o!==void 0&&(e=Ec(e,o,r)),Ec(e,n,r)+t}function lh(e,t=0,n=1,r,o){e.min=_x(e.min,t,n,r,o),e.max=_x(e.max,t,n,r,o)}function T1(e,{x:t,y:n}){lh(e.x,t.translate,t.scale,t.originPoint),lh(e.y,n.translate,n.scale,n.originPoint)}const Sx=.999999999999,kx=1.0000000000001;function mA(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let c,u;for(let f=0;f<o;f++){c=n[f],u=c.projectionDelta;const{visualElement:h}=c.options;h&&h.props.style&&h.props.style.display==="contents"||(r&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Ei(e,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,T1(e,u)),r&&jr(c.latestValues)&&Ei(e,c.latestValues))}t.x<kx&&t.x>Sx&&(t.x=1),t.y<kx&&t.y>Sx&&(t.y=1)}function Ci(e,t){e.min=e.min+t,e.max=e.max+t}function jx(e,t,n,r,o=.5){const c=tt(e.min,e.max,o);lh(e,t,n,c,r)}function Ei(e,t){jx(e.x,t.x,t.scaleX,t.scale,t.originX),jx(e.y,t.y,t.scaleY,t.scale,t.originY)}function R1(e,t){return N1(pA(e.getBoundingClientRect(),t))}function gA(e,t,n){const r=R1(e,n),{scroll:o}=t;return o&&(Ci(r.x,o.offset.x),Ci(r.y,o.offset.y)),r}const A1=({current:e})=>e?e.ownerDocument.defaultView:null,yA=new WeakMap;class xA{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=lt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=y=>{const{dragSnapToOrigin:x}=this.getProps();x?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ra(y).point)},c=(y,x)=>{const{drag:v,dragPropagation:w,onDragStart:E}=this.getProps();if(v&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=u5(v),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),vn(S=>{let _=this.getAxisMotionValue(S).get()||0;if(Qn.test(_)){const{projection:P}=this.visualElement;if(P&&P.layout){const C=P.layout.layoutBox[S];C&&(_=un(C)*(parseFloat(_)/100))}}this.originPoint[S]=_}),E&&Ye.postRender(()=>E(y,x)),Jf(this.visualElement,"transform");const{animationState:j}=this.visualElement;j&&j.setActive("whileDrag",!0)},u=(y,x)=>{const{dragPropagation:v,dragDirectionLock:w,onDirectionLock:E,onDrag:j}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:S}=x;if(w&&this.currentDirection===null){this.currentDirection=vA(S),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",x.point,S),this.updateAxis("y",x.point,S),this.visualElement.render(),j&&j(y,x)},f=(y,x)=>this.stop(y,x),h=()=>vn(y=>{var x;return this.getAnimationState(y)==="paused"&&((x=this.getAxisMotionValue(y).animation)===null||x===void 0?void 0:x.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new k1(t,{onSessionStart:o,onStart:c,onMove:u,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:A1(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:c}=this.getProps();c&&Ye.postRender(()=>c(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Zl(t,o,this.currentDirection))return;const c=this.getAxisMotionValue(t);let u=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(u=aA(u,this.constraints[t],this.elastic[t])),c.set(u)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,c=this.constraints;n&&Si(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=lA(o.layoutBox,n):this.constraints=!1,this.elastic=fA(r),c!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&vn(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=dA(o.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Si(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const c=gA(r,o.root,this.visualElement.getTransformPagePoint());let u=cA(o.layout.layoutBox,c);if(n){const f=n(hA(u));this.hasMutatedConstraints=!!f,f&&(u=N1(f))}return u}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:c,dragSnapToOrigin:u,onDragTransitionEnd:f}=this.getProps(),h=this.constraints||{},p=vn(y=>{if(!Zl(y,n,this.currentDirection))return;let x=h&&h[y]||{};u&&(x={min:0,max:0});const v=o?200:1e6,w=o?40:1e7,E={type:"inertia",velocity:r?t[y]:0,bounceStiffness:v,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...c,...x};return this.startAxisValueAnimation(y,E)});return Promise.all(p).then(f)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Jf(this.visualElement,t),r.start(xp(t,r,0,n,this.visualElement,!1))}stopAnimation(){vn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){vn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){vn(n=>{const{drag:r}=this.getProps();if(!Zl(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,c=this.getAxisMotionValue(n);if(o&&o.layout){const{min:u,max:f}=o.layout.layoutBox[n];c.set(t[n]-tt(u,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Si(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};vn(u=>{const f=this.getAxisMotionValue(u);if(f&&this.constraints!==!1){const h=f.get();o[u]=uA({min:h,max:h},this.constraints[u])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),vn(u=>{if(!Zl(u,t,null))return;const f=this.getAxisMotionValue(u),{min:h,max:p}=this.constraints[u];f.set(tt(h,p,o[u]))})}addListeners(){if(!this.visualElement.current)return;yA.set(this.visualElement,this);const t=this.visualElement.current,n=ra(t,"pointerdown",h=>{const{drag:p,dragListener:y=!0}=this.getProps();p&&y&&this.start(h)}),r=()=>{const{dragConstraints:h}=this.getProps();Si(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,c=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Ye.read(r);const u=ga(window,"resize",()=>this.scalePositionWithinConstraints()),f=o.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:p})=>{this.isDragging&&p&&(vn(y=>{const x=this.getAxisMotionValue(y);x&&(this.originPoint[y]+=h[y].translate,x.set(x.get()+h[y].translate))}),this.visualElement.render())}));return()=>{u(),n(),c(),f&&f()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:c=!1,dragElastic:u=oh,dragMomentum:f=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:c,dragElastic:u,dragMomentum:f}}}function Zl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function vA(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class bA extends or{constructor(t){super(t),this.removeGroupControls=cn,this.removeListeners=cn,this.controls=new xA(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||cn}unmount(){this.removeGroupControls(),this.removeListeners()}}const Cx=e=>(t,n)=>{e&&Ye.postRender(()=>e(t,n))};class wA extends or{constructor(){super(...arguments),this.removePointerDownListener=cn}onPointerDown(t){this.session=new k1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:A1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Cx(t),onStart:Cx(n),onMove:r,onEnd:(c,u)=>{delete this.session,o&&Ye.postRender(()=>o(c,u))}}}mount(){this.removePointerDownListener=ra(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const dc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ex(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ho={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=Ex(e,t.target.x),r=Ex(e,t.target.y);return`${n}% ${r}%`}},_A={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=sr.parse(e);if(o.length>5)return r;const c=sr.createTransformer(e),u=typeof o[0]!="number"?1:0,f=n.x.scale*t.x,h=n.y.scale*t.y;o[0+u]/=f,o[1+u]/=h;const p=tt(f,h,.5);return typeof o[2+u]=="number"&&(o[2+u]/=p),typeof o[3+u]=="number"&&(o[3+u]/=p),c(o)}};class SA extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:c}=t;$4(kA),c&&(n.group&&n.group.add(c),r&&r.register&&o&&r.register(c),c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,onExitComplete:()=>this.safeToRemove()})),dc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:c}=this.props,u=r.projection;return u&&(u.isPresent=c,o||t.layoutDependency!==n||n===void 0?u.willUpdate():this.safeToRemove(),t.isPresent!==c&&(c?u.promote():u.relegate()||Ye.postRender(()=>{const f=u.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Kh.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function O1(e){const[t,n]=mw(),r=k.useContext(Bh);return l.jsx(SA,{...e,layoutGroup:r,switchLayoutGroup:k.useContext(Sw),isPresent:t,safeToRemove:n})}const kA={borderRadius:{...Ho,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ho,borderTopRightRadius:Ho,borderBottomLeftRadius:Ho,borderBottomRightRadius:Ho,boxShadow:_A};function jA(e,t,n){const r=Ft(e)?e:pa(e);return r.start(xp("",r,t,n)),r.animation}function CA(e){return e instanceof SVGElement&&e.tagName!=="svg"}const EA=(e,t)=>e.depth-t.depth;class NA{constructor(){this.children=[],this.isDirty=!1}add(t){ap(this.children,t),this.isDirty=!0}remove(t){lp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(EA),this.isDirty=!1,this.children.forEach(t)}}function PA(e,t){const n=Yn.now(),r=({timestamp:o})=>{const c=o-n;c>=t&&(nr(r),e(c-t))};return Ye.read(r,!0),()=>nr(r)}const L1=["TopLeft","TopRight","BottomLeft","BottomRight"],TA=L1.length,Nx=e=>typeof e=="string"?parseFloat(e):e,Px=e=>typeof e=="number"||Se.test(e);function RA(e,t,n,r,o,c){o?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,AA(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,OA(r))):c&&(e.opacity=tt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let u=0;u<TA;u++){const f=`border${L1[u]}Radius`;let h=Tx(t,f),p=Tx(n,f);if(h===void 0&&p===void 0)continue;h||(h=0),p||(p=0),h===0||p===0||Px(h)===Px(p)?(e[f]=Math.max(tt(Nx(h),Nx(p),r),0),(Qn.test(p)||Qn.test(h))&&(e[f]+="%")):e[f]=p}(t.rotate||n.rotate)&&(e.rotate=tt(t.rotate||0,n.rotate||0,r))}function Tx(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const AA=D1(0,.5,Zw),OA=D1(.5,.95,cn);function D1(e,t,n){return r=>r<e?0:r>t?1:n(zi(e,t,r))}function Rx(e,t){e.min=t.min,e.max=t.max}function yn(e,t){Rx(e.x,t.x),Rx(e.y,t.y)}function Ax(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ox(e,t,n,r,o){return e-=t,e=Ec(e,1/n,r),o!==void 0&&(e=Ec(e,1/o,r)),e}function LA(e,t=0,n=1,r=.5,o,c=e,u=e){if(Qn.test(t)&&(t=parseFloat(t),t=tt(u.min,u.max,t/100)-u.min),typeof t!="number")return;let f=tt(c.min,c.max,r);e===c&&(f-=t),e.min=Ox(e.min,t,n,f,o),e.max=Ox(e.max,t,n,f,o)}function Lx(e,t,[n,r,o],c,u){LA(e,t[n],t[r],t[o],t.scale,c,u)}const DA=["x","scaleX","originX"],IA=["y","scaleY","originY"];function Dx(e,t,n,r){Lx(e.x,t,DA,n?n.x:void 0,r?r.x:void 0),Lx(e.y,t,IA,n?n.y:void 0,r?r.y:void 0)}function Ix(e){return e.translate===0&&e.scale===1}function I1(e){return Ix(e.x)&&Ix(e.y)}function Mx(e,t){return e.min===t.min&&e.max===t.max}function MA(e,t){return Mx(e.x,t.x)&&Mx(e.y,t.y)}function Fx(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function M1(e,t){return Fx(e.x,t.x)&&Fx(e.y,t.y)}function Bx(e){return un(e.x)/un(e.y)}function Vx(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class FA{constructor(){this.members=[]}add(t){ap(this.members,t),t.scheduleRender()}remove(t){if(lp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const c=this.members[o];if(c.isPresent!==!1){r=c;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function BA(e,t,n){let r="";const o=e.x.translate/t.x,c=e.y.translate/t.y,u=(n==null?void 0:n.z)||0;if((o||c||u)&&(r=`translate3d(${o}px, ${c}px, ${u}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:p,rotate:y,rotateX:x,rotateY:v,skewX:w,skewY:E}=n;p&&(r=`perspective(${p}px) ${r}`),y&&(r+=`rotate(${y}deg) `),x&&(r+=`rotateX(${x}deg) `),v&&(r+=`rotateY(${v}deg) `),w&&(r+=`skewX(${w}deg) `),E&&(r+=`skewY(${E}deg) `)}const f=e.x.scale*t.x,h=e.y.scale*t.y;return(f!==1||h!==1)&&(r+=`scale(${f}, ${h})`),r||"none"}const Cr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ea=typeof window<"u"&&window.MotionDebug!==void 0,cf=["","X","Y","Z"],VA={visibility:"hidden"},Ux=1e3;let UA=0;function uf(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function F1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Hw(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:c}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ye,!(o||c))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&F1(r)}function B1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(u={},f=t==null?void 0:t()){this.id=UA++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ea&&(Cr.totalNodes=Cr.resolvedTargetDeltas=Cr.recalculatedProjection=0),this.nodes.forEach(qA),this.nodes.forEach(QA),this.nodes.forEach(YA),this.nodes.forEach(WA),ea&&window.MotionDebug.record(Cr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new NA)}addEventListener(u,f){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new cp),this.eventHandlers.get(u).add(f)}notifyListeners(u,...f){const h=this.eventHandlers.get(u);h&&h.notify(...f)}hasListeners(u){return this.eventHandlers.has(u)}mount(u,f=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=CA(u),this.instance=u;const{layoutId:h,layout:p,visualElement:y}=this.options;if(y&&!y.current&&y.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),f&&(p||h)&&(this.isLayoutDirty=!0),e){let x;const v=()=>this.root.updateBlockedByResize=!1;e(u,()=>{this.root.updateBlockedByResize=!0,x&&x(),x=PA(v,250),dc.hasAnimatedSinceResize&&(dc.hasAnimatedSinceResize=!1,this.nodes.forEach($x))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&y&&(h||p)&&this.addEventListener("didUpdate",({delta:x,hasLayoutChanged:v,hasRelativeTargetChanged:w,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||y.getDefaultTransition()||t3,{onLayoutAnimationStart:S,onLayoutAnimationComplete:_}=y.getProps(),P=!this.targetLayout||!M1(this.targetLayout,E)||w,C=!v&&w;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||v&&(P||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(x,C);const T={...sp(j,"layout"),onPlay:S,onComplete:_};(y.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else v||$x(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,nr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(XA),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&F1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const x=this.path[y];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:f,layout:h}=this.options;if(f===void 0&&!h)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(zx);return}this.isUpdating||this.nodes.forEach(KA),this.isUpdating=!1,this.nodes.forEach(GA),this.nodes.forEach(zA),this.nodes.forEach($A),this.clearAllSnapshots();const f=Yn.now();Ct.delta=ps(0,1e3/60,f-Ct.timestamp),Ct.timestamp=f,Ct.isProcessing=!0,Zd.update.process(Ct),Zd.preRender.process(Ct),Zd.render.process(Ct),Ct.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Kh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(HA),this.sharedNodes.forEach(JA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ye.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ye.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(f=!1),f){const h=r(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:h,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!o)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!I1(this.projectionDelta),h=this.getTransformTemplate(),p=h?h(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;u&&(f||jr(this.latestValues)||y)&&(o(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const f=this.measurePageBox();let h=this.removeElementScroll(f);return u&&(h=this.removeTransform(h)),n3(h),{animationId:this.root.animationId,measuredBox:f,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:f}=this.options;if(!f)return lt();const h=f.measureViewportBox();if(!(((u=this.scroll)===null||u===void 0?void 0:u.wasRoot)||this.path.some(s3))){const{scroll:y}=this.root;y&&(Ci(h.x,y.offset.x),Ci(h.y,y.offset.y))}return h}removeElementScroll(u){var f;const h=lt();if(yn(h,u),!((f=this.scroll)===null||f===void 0)&&f.wasRoot)return h;for(let p=0;p<this.path.length;p++){const y=this.path[p],{scroll:x,options:v}=y;y!==this.root&&x&&v.layoutScroll&&(x.wasRoot&&yn(h,u),Ci(h.x,x.offset.x),Ci(h.y,x.offset.y))}return h}applyTransform(u,f=!1){const h=lt();yn(h,u);for(let p=0;p<this.path.length;p++){const y=this.path[p];!f&&y.options.layoutScroll&&y.scroll&&y!==y.root&&Ei(h,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),jr(y.latestValues)&&Ei(h,y.latestValues)}return jr(this.latestValues)&&Ei(h,this.latestValues),h}removeTransform(u){const f=lt();yn(f,u);for(let h=0;h<this.path.length;h++){const p=this.path[h];if(!p.instance||!jr(p.latestValues))continue;ah(p.latestValues)&&p.updateSnapshot();const y=lt(),x=p.measurePageBox();yn(y,x),Dx(f,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return jr(this.latestValues)&&Dx(f,this.latestValues),f}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ct.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var f;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==h;if(!(u||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((f=this.parent)===null||f===void 0)&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:x,layoutId:v}=this.options;if(!(!this.layout||!(x||v))){if(this.resolvedRelativeTargetAt=Ct.timestamp,!this.targetDelta&&!this.relativeTarget){const w=this.getClosestProjectingParent();w&&w.layout&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),oa(this.relativeTargetOrigin,this.layout.layoutBox,w.layout.layoutBox),yn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=lt(),this.targetWithTransforms=lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),oA(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):yn(this.target,this.layout.layoutBox),T1(this.target,this.targetDelta)):yn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const w=this.getClosestProjectingParent();w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),oa(this.relativeTargetOrigin,this.target,w.target),yn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ea&&Cr.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||ah(this.parent.latestValues)||P1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var u;const f=this.getLead(),h=!!this.resumingFrom||this!==f;let p=!0;if((this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty)&&(p=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Ct.timestamp&&(p=!1),p)return;const{layout:y,layoutId:x}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||x))return;yn(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,w=this.treeScale.y;mA(this.layoutCorrected,this.treeScale,this.path,h),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=lt());const{target:E}=f;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ax(this.prevProjectionDelta.x,this.projectionDelta.x),Ax(this.prevProjectionDelta.y,this.projectionDelta.y)),ia(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==w||!Vx(this.projectionDelta.x,this.prevProjectionDelta.x)||!Vx(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E)),ea&&Cr.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var f;if((f=this.options.visualElement)===null||f===void 0||f.scheduleRender(),u){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ji(),this.projectionDelta=ji(),this.projectionDeltaWithTransform=ji()}setAnimationOrigin(u,f=!1){const h=this.snapshot,p=h?h.latestValues:{},y={...this.latestValues},x=ji();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const v=lt(),w=h?h.source:void 0,E=this.layout?this.layout.source:void 0,j=w!==E,S=this.getStack(),_=!S||S.members.length<=1,P=!!(j&&!_&&this.options.crossfade===!0&&!this.path.some(e3));this.animationProgress=0;let C;this.mixTargetDelta=T=>{const I=T/1e3;qx(x.x,u.x,I),qx(x.y,u.y,I),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(oa(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ZA(this.relativeTarget,this.relativeTargetOrigin,v,I),C&&MA(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=lt()),yn(C,this.relativeTarget)),j&&(this.animationValues=y,RA(y,p,this.latestValues,I,P,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=I},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(nr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ye.update(()=>{dc.hasAnimatedSinceResize=!0,this.currentAnimation=jA(0,Ux,{...u,onUpdate:f=>{this.mixTargetDelta(f),u.onUpdate&&u.onUpdate(f)},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ux),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:f,target:h,layout:p,latestValues:y}=u;if(!(!f||!h||!p)){if(this!==u&&this.layout&&p&&V1(this.options.animationType,this.layout.layoutBox,p.layoutBox)){h=this.target||lt();const x=un(this.layout.layoutBox.x);h.x.min=u.target.x.min,h.x.max=h.x.min+x;const v=un(this.layout.layoutBox.y);h.y.min=u.target.y.min,h.y.max=h.y.min+v}yn(f,h),Ei(f,y),ia(this.projectionDeltaWithTransform,this.layoutCorrected,f,y)}}registerSharedNode(u,f){this.sharedNodes.has(u)||this.sharedNodes.set(u,new FA),this.sharedNodes.get(u).add(f);const p=f.options.initialPromotionConfig;f.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(f):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:f}=this.options;return f?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:f}=this.options;return f?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:f,preserveFollowOpacity:h}={}){const p=this.getStack();p&&p.promote(this,h),u&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let f=!1;const{latestValues:h}=u;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(f=!0),!f)return;const p={};h.z&&uf("z",u,p,this.animationValues);for(let y=0;y<cf.length;y++)uf(`rotate${cf[y]}`,u,p,this.animationValues),uf(`skew${cf[y]}`,u,p,this.animationValues);u.render();for(const y in p)u.setStaticValue(y,p[y]),this.animationValues&&(this.animationValues[y]=p[y]);u.scheduleRender()}getProjectionStyles(u){var f,h;if(!this.instance||this.isSVG)return;if(!this.isVisible)return VA;const p={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=cc(u==null?void 0:u.pointerEvents)||"",p.transform=y?y(this.latestValues,""):"none",p;const x=this.getLead();if(!this.projectionDelta||!this.layout||!x.target){const j={};return this.options.layoutId&&(j.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,j.pointerEvents=cc(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!jr(this.latestValues)&&(j.transform=y?y({},""):"none",this.hasProjected=!1),j}const v=x.animationValues||x.latestValues;this.applyTransformsToTarget(),p.transform=BA(this.projectionDeltaWithTransform,this.treeScale,v),y&&(p.transform=y(v,p.transform));const{x:w,y:E}=this.projectionDelta;p.transformOrigin=`${w.origin*100}% ${E.origin*100}% 0`,x.animationValues?p.opacity=x===this?(h=(f=v.opacity)!==null&&f!==void 0?f:this.latestValues.opacity)!==null&&h!==void 0?h:1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:p.opacity=x===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const j in _c){if(v[j]===void 0)continue;const{correct:S,applyTo:_}=_c[j],P=p.transform==="none"?v[j]:S(v[j],x);if(_){const C=_.length;for(let T=0;T<C;T++)p[_[T]]=P}else p[j]=P}return this.options.layoutId&&(p.pointerEvents=x===this?cc(u==null?void 0:u.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var f;return(f=u.currentAnimation)===null||f===void 0?void 0:f.stop()}),this.root.nodes.forEach(zx),this.root.sharedNodes.clear()}}}function zA(e){e.updateLayout()}function $A(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:c}=e.options,u=n.source!==e.layout.source;c==="size"?vn(x=>{const v=u?n.measuredBox[x]:n.layoutBox[x],w=un(v);v.min=r[x].min,v.max=v.min+w}):V1(c,n.layoutBox,r)&&vn(x=>{const v=u?n.measuredBox[x]:n.layoutBox[x],w=un(r[x]);v.max=v.min+w,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[x].max=e.relativeTarget[x].min+w)});const f=ji();ia(f,r,n.layoutBox);const h=ji();u?ia(h,e.applyTransform(o,!0),n.measuredBox):ia(h,r,n.layoutBox);const p=!I1(f);let y=!1;if(!e.resumeFrom){const x=e.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:v,layout:w}=x;if(v&&w){const E=lt();oa(E,n.layoutBox,v.layoutBox);const j=lt();oa(j,r,w.layoutBox),M1(E,j)||(y=!0),x.options.layoutRoot&&(e.relativeTarget=j,e.relativeTargetOrigin=E,e.relativeParent=x)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:h,layoutDelta:f,hasLayoutChanged:p,hasRelativeTargetChanged:y})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function qA(e){ea&&Cr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function WA(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function HA(e){e.clearSnapshot()}function zx(e){e.clearMeasurements()}function KA(e){e.isLayoutDirty=!1}function GA(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function $x(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function QA(e){e.resolveTargetDelta()}function YA(e){e.calcProjection()}
vendor: 6,595 bytes, line 300
300function XA(e){e.resetSkewAndRotation()}function JA(e){e.removeLeadSnapshot()}function qx(e,t,n){e.translate=tt(t.translate,0,n),e.scale=tt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Wx(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function ZA(e,t,n,r){Wx(e.x,t.x,n.x,r),Wx(e.y,t.y,n.y,r)}function e3(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const t3={duration:.45,ease:[.4,0,.1,1]},Hx=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Kx=Hx("applewebkit/")&&!Hx("chrome/")?Math.round:cn;function Gx(e){e.min=Kx(e.min),e.max=Kx(e.max)}function n3(e){Gx(e.x),Gx(e.y)}function V1(e,t,n){return e==="position"||e==="preserve-aspect"&&!iA(Bx(t),Bx(n),.2)}function s3(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const r3=B1({attachResizeListener:(e,t)=>ga(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),df={current:void 0},U1=B1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!df.current){const e=new r3({});e.mount(window),e.setOptions({layoutScroll:!0}),df.current=e}return df.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),i3={pan:{Feature:wA},drag:{Feature:bA,ProjectionNode:U1,MeasureLayout:O1}};function Qx(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,c=r[o];c&&Ye.postRender(()=>c(t,Ra(t)))}class o3 extends or{mount(){const{current:t}=this.node;t&&(this.unmount=i5(t,n=>(Qx(this.node,n,"Start"),r=>Qx(this.node,r,"End"))))}unmount(){}}class a3 extends or{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ta(ga(this.node.current,"focus",()=>this.onFocus()),ga(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Yx(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),c=r[o];c&&Ye.postRender(()=>c(t,Ra(t)))}class l3 extends or{mount(){const{current:t}=this.node;t&&(this.unmount=c5(t,n=>(Yx(this.node,n,"Start"),(r,{success:o})=>Yx(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ch=new WeakMap,ff=new WeakMap,c3=e=>{const t=ch.get(e.target);t&&t(e)},u3=e=>{e.forEach(c3)};function d3({root:e,...t}){const n=e||document;ff.has(n)||ff.set(n,{});const r=ff.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(u3,{root:e,...t})),r[o]}function f3(e,t,n){const r=d3(t);return ch.set(e,n),r.observe(e),()=>{ch.delete(e),r.unobserve(e)}}const h3={some:0,all:1};class p3 extends or{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:c}=t,u={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:h3[o]},f=h=>{const{isIntersecting:p}=h;if(this.isInView===p||(this.isInView=p,c&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:y,onViewportLeave:x}=this.node.getProps(),v=p?y:x;v&&v(h)};return f3(this.node.current,u,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(m3(t,n))&&this.startObserver()}unmount(){}}function m3({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const g3={inView:{Feature:p3},tap:{Feature:l3},focus:{Feature:a3},hover:{Feature:o3}},y3={layout:{ProjectionNode:U1,MeasureLayout:O1}},uh={current:null},z1={current:!1};function x3(){if(z1.current=!0,!!zh)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>uh.current=e.matches;e.addListener(t),t()}else uh.current=!1}const v3=[...h1,Mt,sr],b3=e=>v3.find(f1(e)),Xx=new WeakMap;function w3(e,t,n){for(const r in t){const o=t[r],c=n[r];if(Ft(o))e.addValue(r,o);else if(Ft(c))e.addValue(r,pa(o,{owner:e}));else if(c!==o)if(e.hasValue(r)){const u=e.getValue(r);u.liveStyle===!0?u.jump(o):u.hasAnimated||u.set(o)}else{const u=e.getStaticValue(r);e.addValue(r,pa(u!==void 0?u:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Jx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class _3{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:c,visualState:u},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=mp,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=Yn.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,Ye.render(this.render,!1,!0))};const{latestValues:h,renderState:p,onUpdate:y}=u;this.onUpdate=y,this.latestValues=h,this.baseTarget={...h},this.initialValues=n.initial?{...h}:{},this.renderState=p,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=f,this.blockInitialAnimation=!!c,this.isControllingVariants=Uc(n),this.isVariantNode=ww(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:x,...v}=this.scrapeMotionValuesFromProps(n,{},this);for(const w in v){const E=v[w];h[w]!==void 0&&Ft(E)&&E.set(h[w],!1)}}mount(t){this.current=t,Xx.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
vendor: 5,235 bytes, line 300
300h((n,r)=>this.bindToMotionValue(r,n)),z1.current||x3(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:uh.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Xx.delete(this.current),this.projection&&this.projection.unmount(),nr(this.notifyUpdate),nr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Hr.has(t),o=n.on("change",f=>{this.latestValues[t]=f,this.props.onUpdate&&Ye.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),c=n.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),c(),u&&u(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in $i){const n=$i[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const c=this.features[t];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Jx.length;r++){const o=Jx[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const c="on"+o,u=t[c];u&&(this.propEventSubscriptions[o]=this.on(o,u))}this.prevMotionValues=w3(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=pa(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(u1(o)||t1(o))?o=parseFloat(o):!b3(o)&&sr.test(n)&&(o=a1(t,n)),this.setBaseTarget(t,Ft(o)?o.get():o)),Ft(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const u=Qh(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);u&&(o=u[t])}if(r&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,t);return c!==void 0&&!Ft(c)?c:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new cp),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class $1 extends _3{constructor(){super(...arguments),this.KeyframeResolver=p1}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ft(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function S3(e){return window.getComputedStyle(e)}class k3 extends $1{constructor(){super(...arguments),this.type="html",this.renderInstance=Tw}readValueFromInstance(t,n){if(Hr.has(n)){const r=pp(n);return r&&r.default||0}else{const r=S3(t),o=(Ew(n)?r.getPropertyValue(n):r[n])||0;
300return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return R1(t,n)}build(t,n,r){Jh(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return np(t,n,r)}}class j3 extends $1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Hr.has(n)){const r=pp(n);return r&&r.default||0}return n=Rw.has(n)?n:Hh(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Lw(t,n,r)}build(t,n,r){Zh(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){Aw(t,n,r,o)}mount(t){this.isSVGTag=tp(t.tagName),super.mount(t)}}const C3=(e,t)=>Gh(e)?new j3(t):new k3(t,{allowProjection:e!==k.Fragment}),E3=J4({...YR,...g3,...i3,...y3},C3),le=h4(E3);function Zx({className:e=""}){const{appLanguage:t,changeLanguage:n}=jn();return l.jsxs("div",{className:`inline-flex items-center gap-0.5 p-0.5 rounded-full bg-white/5 border border-white/10 ${e}`,children:[l.jsx("button",{type:"button",onClick:()=>n("fr"),"aria-label":"Français",className:`px-2 py-0.5 rounded-full text-[11px] font-bold transition-colors ${t==="fr"?"bg-white text-black":"text-white/70 hover:text-white"}`,children:"FR"}),l.jsx("button",{type:"button",onClick:()=>n("en"),"aria-label":"English",className:`px-2 py-0.5 rounded-full text-[11px] font-bold transition-colors ${t==="en"?"bg-white text-black":"text-white/70 hover:text-white"}`,children:"EN"})]})}function N3(){const[e,t]=k.useState(!1),[n,r]=k.useState(!0),[o,c]=k.useState(!1),{t:u}=jn();k.useEffect(()=>{qt.auth.isAuthenticated().then(p=>{t(p),r(!1)})},[]);const f=p=>{var y;(y=document.getElementById(p))==null||y.scrollIntoView({behavior:"smooth"}),c(!1)},h=l.jsxs(l.Fragment,{children:[l.jsx("button",{onClick:()=>f("features"),className:"text-sm text-white/70 hover:text-white transition-colors px-2 sm:px-3 py-1 rounded-full hover:bg-white/10 font-medium",children:u("nav_features")}),l.jsx("button",{onClick:()=>f("pricing"),className:"text-sm text-white/70 hover:text-white transition-colors px-2 sm:px-3 py-1 rounded-full hover:bg-white/10 font-medium",children:u("nav_pricing")}),l.jsx("button",{onClick:()=>f("faq"),className:"text-sm text-white/70 hover:text-white transition-colors px-2 sm:px-3 py-1 rounded-full hover:bg-white/10 font-medium",children:"FAQ"}),l.jsx(xn,{to:"/contact",onClick:()=>c(!1),className:"text-sm text-white/70 hover:text-white transition-colors px-2 sm:px-3 py-1 rounded-full hover:bg-white/10 font-medium",children:u("nav_contact")})]});return l.jsxs(l.Fragment,{children:[l.jsx("nav",{className:"fixed top-12 sm:top-14 left-0 right-0 z-50 hidden sm:flex justify-center px-4",children:l.jsxs("div",{className:"flex items-center gap-1 sm:gap-2 bg-[#1a1a1a] border border-white/10 rounded-full px-3 sm:px-5 py-2 shadow-2xl backdrop-blur-xl",children:[l.jsxs(xn,{to:"/",className:"flex items-center gap-2 mr-2 sm:mr-4",children:[l.jsx("img",{src:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/ba76294fa_CodirLogo.png",alt:"CODIR",className:"h-7 w-auto"}),l.jsx("span",{className:"font-space font-bold text-white text-sm hidden sm:block",children:"CODIR"})]}),h,l.jsx("div",{className:"w-px h-5 bg-white/10 mx-0.5 sm:mx-1"}),l.jsx(Zx,{}),l.jsx("div",{className:"w-px h-5 bg-white/10 mx-0.5 sm:mx-1 hidden sm:block"}),!n&&(e?l.jsx(xn,{to:"/app",children:l.jsx("button",{className:"ml-1 px-2.5 sm:px-4 py-1.5 bg-white text-black text-xs sm:text-sm font-bold rounded-full hover:bg-white/90 transition-all",children:u("nav_dashboard")})}):l.jsxs(l.Fragment,{children:[l.jsx(xn,{to:"/signin",className:"ml-1 text-sm text-white/70 hover:text-white px-2 sm:px-3 py-1 rounded-full hover:bg-white/10 font-medium transition-colors hidden sm:block",children:u("nav_signin")}),l.jsx(xn,{to:"/signup",className:"ml-1 px-2.5 sm:px-4 py-1.5 bg-primary hover:bg-primary/90 text-primary-foreground text-xs sm:text-sm font-bold rounded-full transition-all shadow-lg shadow-primary/30 whitespace-nowrap",children:u("nav_get_started")})]}))]})}),l.jsx("nav",{className:"fixed top-12 left-0 right-0 z-50 flex sm:hidden items-center justify-between px-4",children:l.jsxs("div",{className:"flex items-center gap-1 bg-[#1a1a1a] border border-white/10 rounded-full px-3 py-2 shadow-2xl backdrop-blur-xl",children:[l.jsx(xn,{to:"/",className:"flex items-center gap-2",children:l.jsx("img",{src:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/ba76294fa_CodirLogo.png",alt:"CODIR",className:"h-7 w-auto"})}),l.jsx(Zx,{}),l.jsx("button",{onClick:()=>c(!o),className:"ml-1 h-8 w-8 rounded-full flex items-center justify-center text-white hover:bg-white/10 transition-colors","aria-label":"Menu",children:o?l.jsx(kn,{className:"h-4 w-4"}):l.jsx(Mk,{className:"h-4 w-4"})})]})}),l.jsx(mt,{children:o&&l.jsx(le.div,{initial:{opacity:0,y:-10}
300,animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},className:"fixed top-[5.5rem] left-4 right-4 z-50 sm:hidden bg-[#1a1a1a] border border-white/10 rounded-2xl p-4 shadow-2xl backdrop-blur-xl",children:l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsx("button",{onClick:()=>f("features"),className:"text-left text-sm text-white/80 hover:text-white hover:bg-white/10 rounded-lg px-3 py-2.5 font-medium transition-colors",children:u("nav_features")}),l.jsx("button",{onClick:()=>f("pricing"),className:"text-left text-sm text-white/80 hover:text-white hover:bg-white/10 rounded-lg px-3 py-2.5 font-medium transition-colors",children:u("nav_pricing")}),l.jsx("button",{onClick:()=>f("faq"),className:"text-left text-sm text-white/80 hover:text-white hover:bg-white/10 rounded-lg px-3 py-2.5 font-medium transition-colors",children:"FAQ"}),l.jsx(xn,{to:"/contact",onClick:()=>c(!1),className:"text-sm text-white/80 hover:text-white hover:bg-white/10 rounded-lg px-3 py-2.5 font-medium transition-colors",children:u("nav_contact")}),l.jsx("div",{className:"h-px bg-white/10 my-2"}),!n&&(e?l.jsx(xn,{to:"/app",onClick:()=>c(!1),className:"text-center px-4 py-2.5 bg-white text-black text-sm font-bold rounded-full hover:bg-white/90 transition-all",children:u("nav_dashboard")}):l.jsxs("div",{className:"flex flex-col gap-2",children:[l.jsx(xn,{to:"/signin",onClick:()=>c(!1),className:"text-center px-4 py-2.5 border border-white/20 text-white text-sm font-semibold rounded-full hover:bg-white/10 transition-all",children:u("nav_signin")}),l.jsx(xn,{to:"/signup",onClick:()=>c(!1),className:"text-center px-4 py-2.5 bg-primary text-primary-foreground text-sm font-bold rounded-full hover:bg-primary/90 transition-all shadow-lg shadow-primary/30",children:u("nav_get_started")})]}))]})})})]})}const Xs=30,P3={startX:130,endX:1340,startY:380,endY:680,chartMaxY:400},T3={startX:0,endX:400,startY:60,endY:380,chartMaxY:40},ev=412,tv=7,R3=.3,fc=e=>Math.round(e).toLocaleString("fr-FR"),Ko=e=>"â¬"+fc(e),A3=e=>"â¬"+e.toFixed(2).replace(".",",");function O3(e){if(e<=0)return new Array(Xs).fill(0);const t=[];let n=0;for(let r=0;r<Xs;r++){const o=.3+r/(Xs-1)*1.7,c=.6+Math.random()*.9,u=o*c;t.push(u),n+=u}return t.map(r=>r/n*e)}function L3(e){let t=0;for(const n of e)n>t&&(t=n);return t}function nv(e,t,n){const{startX:r,endX:o,startY:c,endY:u,chartMaxY:f}=n,h=o-r,p=e.map((x,v)=>{const w=r+v/(Xs-1)*h,E=t>0?x/t:0,j=u-E*(u-f)*.95;return{x:w,y:j}});let y=`M ${p[0].x.toFixed(1)} ${p[0].y.toFixed(1)}`;for(let x=1;x<p.length;x++){const v=(p[x-1].x+p[x].x)/2,w=(p[x-1].y+p[x].y)/2;y+=` Q ${p[x-1].x.toFixed(1)} ${p[x-1].y.toFixed(1)} ${v.toFixed(1)} ${w.toFixed(1)}`}return y+=` L ${p[Xs-1].x.toFixed(1)} ${p[Xs-1].y.toFixed(1)}`,{d:y,areaD:y+` L ${o} ${u} L ${r} ${u} Z`,tip:p[Xs-1]}}const D3=e=>1-Math.pow(1-e,3);function I3(){const{lang:e}=jn(),t=e==="fr",n={lastDays:t?"30 derniers jours â¾":"Last 30 days â¾",totalSales:t?"Ventes totales":"Total sales",orders:t?"Commandes":"Orders",convRate:t?"Taux de conversion":"Conversion rate",avgBasket:t?"Panier moyen":"Average order",vsPrev:t?"vs 30j préc.":"vs prev. 30d",salesPerDay:t?"Ventes par jour · 30 derniers jours":"Sales per day · last 30 days",editorTitle:t?"Ãditeur CODIR":"CODIR Editor",fieldSales:t?"Ventes totales":"Total sales",fieldOrders:t?"Commandes":"Orders",fieldConv:t?"Taux de conversion":"Conversion rate",period30d:t?"30j":"30d"},[r,o]=k.useState(!1),[c,u]=k.useState("47892"),[f,h]=k.useState("1284"),[p,y]=k.useState("4.7"),[x,v]=k.useState({sales:0,orders:0,conv:0,daily:new Array(Xs).fill(0),yMax:1}),w=k.useRef(null),E=k.useRef(x);E.current=x;const j=(ge,fe,ce)=>{const Q=O3(ge),se=Math.max(L3(Q)*1.1,1),z=E.current,O=performance.now(),H=800;w.current&&cancelAnimationFrame(w.current);const me=ve=>{const he=Math.min((ve-O)/H,1),J=D3(he),we=z.daily.map(($e,Vt)=>$e+(Q[Vt]-$e)*J),Ne=z.yMax+(se-z.yMax)*J,_e=z.sales+(ge-z.sales)*J,Je=z.orders+(fe-z.orders)*J,Pt=z.conv+(ce-z.conv)*J;v({daily:we,yMax:Ne,sales:_e,orders:Je,conv:Pt}),he<1?w.current=requestAnimationFrame(me):w.current=null};w.current=requestAnimationFrame(me)}
300;k.useEffect(()=>{const ge=setTimeout(()=>j(47892,1284,4.7),600);return()=>{clearTimeout(ge),w.current&&cancelAnimationFrame(w.current)}},[]),k.useEffect(()=>{const ge=Math.max(0,parseFloat(c)||0),fe=Math.max(0,parseInt(f,10)||0),ce=Math.max(0,parseFloat(p)||0);j(ge,fe,ce)},[c,f,p]);const{sales:S,orders:_,conv:P,daily:C,yMax:T}=x,I=_>0?S/_:0,$=(S-ev)/Math.max(ev,1)*100,q=(_-tv)/Math.max(tv,1)*100,M=P-R3,{d:U,areaD:Z,tip:pe}=nv(C,T,P3),{d:je,areaD:Te,tip:Ce}=nv(C,T,T3);return l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"absolute inset-0 z-0 pointer-events-none","aria-hidden":!0,style:{background:"linear-gradient(180deg, #0a0518 0%, #0a0518 55%, rgba(10,5,24,0.6) 80%, transparent 100%)"}}),l.jsx("div",{className:"hidden md:block absolute z-0 pointer-events-none overflow-hidden","aria-hidden":!0,style:{top:"5rem",left:0,right:0,bottom:0,WebkitMaskImage:"linear-gradient(to bottom, black 0%, black 92%, transparent 100%)",maskImage:"linear-gradient(to bottom, black 0%, black 92%, transparent 100%)"},children:l.jsx("div",{className:"absolute inset-0 opacity-70",style:{animation:"hbKb 30s ease-in-out infinite alternate"},children:l.jsxs("svg",{viewBox:"0 0 1400 800",preserveAspectRatio:"xMidYMin slice",className:"w-full h-full block",fontFamily:"Inter, system-ui, sans-serif",children:[l.jsx("defs",{children:l.jsxs("linearGradient",{id:"hbArea",x1:"0",y1:"0",x2:"0",y2:"1",children:[l.jsx("stop",{offset:"0%",stopColor:"#8b5cf6",stopOpacity:"0.55"}),l.jsx("stop",{offset:"100%",stopColor:"#8b5cf6",stopOpacity:"0"})]})}),l.jsx("rect",{x:"0",y:"0",width:"1400",height:"56",fill:"#0f0a1c"}),l.jsx("rect",{x:"24",y:"14",width:"28",height:"28",rx:"6",fill:"#8b5cf6"}),l.jsx("text",{x:"38",y:"34",fill:"#fff",fontSize:"15",fontWeight:"800",textAnchor:"middle",children:"C"}),l.jsx("text",{x:"66",y:"35",fill:"#c4b5fd",fontSize:"13",fontWeight:"500",children:"dashboard.myshop.io"}),l.jsx("rect",{x:"500",y:"14",width:"360",height:"28",rx:"6",fill:"#1a1428"}),l.jsx("text",{x:"520",y:"33",fill:"#6b6b85",fontSize:"11",children:"Rechercher"}),l.jsx("circle",{cx:"1330",cy:"28",r:"14",fill:"#5b21b6"}),l.jsx("text",{x:"1330",y:"33",fill:"#fff",fontSize:"12",fontWeight:"700",textAnchor:"middle",children:"M"}),l.jsx("rect",{x:"0",y:"56",width:"1400",height:"744",fill:"#0a0518"}),l.jsx("text",{x:"40",y:"106",fill:"#ffffff",fontSize:"24",fontWeight:"700",children:"Analytics"}),l.jsx("rect",{x:"1180",y:"86",width:"180",height:"34",rx:"8",fill:"#1a1428",stroke:"#2a1a4a",strokeWidth:"1"}),l.jsx("text",{x:"1200",y:"107",fill:"#c4b5fd",fontSize:"12",fontWeight:"500",children:n.lastDays}),l.jsx("rect",{x:"40",y:"140",width:"326",height:"130",rx:"12",fill:"#1a1428",stroke:"#2a1a4a",strokeWidth:"1"}),l.jsx("text",{x:"60",y:"164",fill:"#8a8aa0",fontSize:"12",fontWeight:"500",children:n.totalSales}),l.jsx("text",{x:"60",y:"204",fill:"#ffffff",fontSize:"30",fontWeight:"700",children:Ko(S)}),l.jsx("rect",{x:"60",y:"222",width:"100",height:"22",rx:"4",fill:"rgba(74,222,128,0.12)"}),l.jsx("text",{x:"72",y:"237",fill:"#4ade80",fontSize:"11",fontWeight:"600",children:($>=0?"â² +":"â¼ ")+fc(Math.abs($))+"%"}),l.jsx("text",{x:"172",y:"237",fill:"#6b6b85",fontSize:"11",children:n.vsPrev}),l.jsx("rect",{x:"382",y:"140",width:"326",height:"130",rx:"12",fill:"#1a1428",stroke:"#2a1a4a",strokeWidth:"1"}),l.jsx("text",{x:"402",y:"164",fill:"#8a8aa0",fontSize:"12",fontWeight:"500",children:n.orders}),l.jsx("text",{x:"402",y:"204",fill:"#ffffff",fontSize:"30",fontWeight:"700",children:fc(_)}),l.jsx("rect",{x:"402",y:"222",width:"100",height:"22",rx:"4",fill:"rgba(74,222,128,0.12)"}),l.jsx("text",{x:"414",y:"237",fill:"#4ade80",fontSize:"11",fontWeight:"600",children:(q>=0?"â² +":"â¼ ")+fc(Math.abs(q))+"%"}),l.jsx("text",{x:"515",y:"237",fill:"#6b6b85",fontSize:"11",children:n.vsPrev}),l.jsx("rect",{x:"724",y:"140",width:"326",height:"130",rx:"12",fill:"#1a1428",stroke:"#2a1a4a",strokeWidth:"1"}),l.jsx("text",{x:"744",y:"164",fill:"#8a8aa0",fontSize:"12",fontWeight:"500",children:n.convRate}),l.jsx("text",{x:"744",y:"204",fill:"#ffffff",fontSize:"30",fontWeight:"700",children:P.toFixed(1).replace(".",",")+"%"}),l.jsx("rect",{x:"744",y:"222",width:"90",height:"22",rx:"4",fill:"rgba(74,222,128,0.12)"}),l.jsx("text",{x:"756",y:"237",fill:"#4ade80",fontSize:"11",fontWeight:"600",children:(M>=0?"â² +":"â¼ ")+Math.abs(M).toFixed(1).replace(".",",")+" pt"}),l.jsx("text",{x:"847",y:"237",fill:"#6b6b85",fontSize:"11",children:n.vsPrev}),l.jsx("rect",{x:"1066",y:"140",width:"294",height:"130",rx:"12",fill:"#1a1428",stroke:"#2a1a4a",strokeWidth:"1"}),l.jsx("text",{x:"1086",y:"164",fill:"#8a8aa0",fontSize:"12",fontWeight:"500",children:n.avgBasket}),l.jsx("text",{x:"1086",y:"204",fill:"#ffffff",fontSize:"30",fontWeight:"700",children:A3
300(I)}),l.jsx("rect",{x:"1086",y:"222",width:"66",height:"22",rx:"4",fill:"rgba(74,222,128,0.12)"}),l.jsx("text",{x:"1098",y:"237",fill:"#4ade80",fontSize:"11",fontWeight:"600",children:"â² +33,2%"}),l.jsx("text",{x:"1165",y:"237",fill:"#6b6b85",fontSize:"11",children:n.vsPrev}),l.jsx("rect",{x:"40",y:"295",width:"1320",height:"455",rx:"12",fill:"#1a1428",stroke:"#2a1a4a",strokeWidth:"1"}),l.jsx("text",{x:"60",y:"330",fill:"#ffffff",fontSize:"16",fontWeight:"700",children:n.totalSales}),l.jsx("text",{x:"60",y:"352",fill:"#8a8aa0",fontSize:"12",children:n.salesPerDay}),l.jsx("text",{x:"60",y:"385",fill:"#6b6b85",fontSize:"10",children:Ko(T)}),l.jsx("text",{x:"60",y:"460",fill:"#6b6b85",fontSize:"10",children:Ko(T*.75)}),l.jsx("text",{x:"60",y:"535",fill:"#6b6b85",fontSize:"10",children:Ko(T*.5)}),l.jsx("text",{x:"60",y:"610",fill:"#6b6b85",fontSize:"10",children:Ko(T*.25)}),l.jsx("text",{x:"60",y:"685",fill:"#6b6b85",fontSize:"10",children:"â¬0"}),l.jsx("line",{x1:"120",y1:"380",x2:"1340",y2:"380",stroke:"#2a1a4a",strokeWidth:"1",strokeDasharray:"4 4"}),l.jsx("line",{x1:"120",y1:"455",x2:"1340",y2:"455",stroke:"#2a1a4a",strokeWidth:"1",strokeDasharray:"4 4"}),l.jsx("line",{x1:"120",y1:"530",x2:"1340",y2:"530",stroke:"#2a1a4a",strokeWidth:"1",strokeDasharray:"4 4"}),l.jsx("line",{x1:"120",y1:"605",x2:"1340",y2:"605",stroke:"#2a1a4a",strokeWidth:"1",strokeDasharray:"4 4"}),l.jsx("line",{x1:"120",y1:"680",x2:"1340",y2:"680",stroke:"#3a2a5a",strokeWidth:"1"}),l.jsx("text",{x:"130",y:"703",fill:"#6b6b85",fontSize:"10",children:"28 juin"}),l.jsx("text",{x:"350",y:"703",fill:"#6b6b85",fontSize:"10",children:"5 juil"}),l.jsx("text",{x:"580",y:"703",fill:"#6b6b85",fontSize:"10",children:"12 juil"}),l.jsx("text",{x:"810",y:"703",fill:"#6b6b85",fontSize:"10",children:"19 juil"}),l.jsx("text",{x:"1040",y:"703",fill:"#6b6b85",fontSize:"10",children:"26 juil"}),l.jsx("text",{x:"1290",y:"703",fill:"#6b6b85",fontSize:"10",children:"Auj."}),l.jsx("path",{d:Z,fill:"url(#hbArea)"}),l.jsx("path",{d:U,fill:"none",stroke:"#8b5cf6",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("circle",{cx:pe.x,cy:pe.y,r:"6",fill:"#8b5cf6"}),l.jsxs("circle",{cx:pe.x,cy:pe.y,r:"12",fill:"#8b5cf6",opacity:"0.3",children:[l.jsx("animate",{attributeName:"r",from:"6",to:"20",dur:"2s",repeatCount:"indefinite"}),l.jsx("animate",{attributeName:"opacity",from:"0.4",to:"0",dur:"2s",repeatCount:"indefinite"})]})]})})}),l.jsx("div",{className:"md:hidden absolute inset-x-0 bottom-0 z-0 pointer-events-none overflow-hidden","aria-hidden":!0,style:{top:"40%",WebkitMaskImage:"linear-gradient(to bottom, transparent 0%, black 30%, black 88%, transparent 100%)",maskImage:"linear-gradient(to bottom, transparent 0%, black 30%, black 88%, transparent 100%)"},children:l.jsxs("svg",{viewBox:"0 0 400 400",preserveAspectRatio:"xMidYMax slice",className:"w-full h-full block",children:[l.jsx("defs",{children:l.jsxs("linearGradient",{id:"hbAreaMobile",x1:"0",y1:"0",x2:"0",y2:"1",children:[l.jsx("stop",{offset:"0%",stopColor:"#8b5cf6",stopOpacity:"0.5"}),l.jsx("stop",{offset:"100%",stopColor:"#8b5cf6",stopOpacity:"0"})]})}),l.jsx("path",{d:Te,fill:"url(#hbAreaMobile)"}),l.jsx("path",{d:je,fill:"none",stroke:"#8b5cf6",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("circle",{cx:Ce.x,cy:Ce.y,r:"4",fill:"#8b5cf6"}),l.jsxs("circle",{cx:Ce.x,cy:Ce.y,r:"8",fill:"#8b5cf6",opacity:"0.3",children:[l.jsx("animate",{attributeName:"r",from:"4",to:"14",dur:"2s",repeatCount:"indefinite"}),l.jsx("animate",{attributeName:"opacity",from:"0.4",to:"0",dur:"2s",repeatCount:"indefinite"})]})]})}),l.jsx("div",{className:"absolute inset-0 z-[1] pointer-events-none","aria-hidden":!0,style:{backgroundImage:"linear-gradient(rgba(139,92,246,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(139,92,246,0.05) 1px, transparent 1px)",backgroundSize:"40px 40px",maskImage:"radial-gradient(ellipse at center, black 30%, transparent 90%)",WebkitMaskImage:"radial-gradient(ellipse at center, black 30%, transparent 90%)"}}),l.jsx("div",{className:"absolute inset-0 z-[2] pointer-events-none","aria-hidden":!0,style:{background:"linear-gradient(180deg, rgba(5,5,10,0.55) 0%, rgba(5,5,10,0.35) 30%, rgba(5,5,10,0.25) 55%, transparent 100%)"}}),l.jsx("div",{className:"absolute top-[15%] left-1/2 -translate-x-1/2 w-[1000px] h-[600px] z-[2] pointer-events-none","aria-hidden":!0,style:{background:"radial-gradient(ellipse, rgba(139,92,246,0.22) 0%, transparent 65%)",filter:"blur(80px)"}}),l.jsx(le.div,{initial:{opacity:0,y:30,scale:.95}
300,animate:{opacity:r?0:1,y:r?20:0,scale:r?.95:1},transition:{duration:.35,ease:"easeOut"},className:"absolute bottom-8 right-8 w-80 z-20 hidden md:block",style:{pointerEvents:r?"none":"auto"},children:l.jsxs("div",{className:"relative rounded-2xl border p-4",style:{background:"linear-gradient(180deg, #1a1428 0%, #12101f 100%)",borderColor:"rgba(139,92,246,0.4)",boxShadow:"0 30px 80px rgba(0,0,0,0.6), 0 0 0 4px rgba(139,92,246,0.08)",backdropFilter:"blur(20px)"},children:[l.jsxs("div",{className:"flex items-center gap-2.5 pb-3 mb-3.5 border-b border-white/5",children:[l.jsx("div",{className:"rounded-md grid place-items-center text-white font-extrabold text-[12px]",style:{background:"linear-gradient(135deg, #8b5cf6, #6366f1)",boxShadow:"0 0 12px rgba(139,92,246,0.5)",width:"26px",height:"26px"},children:"C"}),l.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[l.jsx("b",{className:"text-[13px] text-white font-semibold leading-tight",children:"Ãditeur CODIR"}),l.jsx("span",{className:"text-[10px] text-white/50 tracking-wider uppercase",children:"Live analytics"})]}),l.jsxs("div",{className:"flex items-center gap-1 text-[9px] text-green-400 font-bold tracking-wider",children:[l.jsx("span",{className:"bg-green-400 rounded-full",style:{boxShadow:"0 0 8px #4ade80",animation:"hbBlink 1s infinite",width:"6px",height:"6px"}}),"LIVE"]}),l.jsx("button",{onClick:()=>o(!0),className:"w-6 h-6 rounded-md grid place-items-center text-white/50 hover:bg-white/5 hover:text-white transition","aria-label":t?"Fermer l'éditeur":"Close editor",children:l.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:l.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]}),l.jsxs("div",{className:"mb-3",children:[l.jsxs("label",{className:"flex items-center justify-between text-[11px] text-white/60 mb-1.5 font-medium",children:[n.fieldSales,l.jsx("span",{className:"px-1.5 py-0.5 rounded text-[9px] font-bold",style:{background:"rgba(139,92,246,0.15)",color:"#c4b5fd"},children:n.period30d})]}),l.jsxs("div",{className:"relative",children:[l.jsx("span",{className:"absolute top-1/2 -translate-y-1/2 text-white/50 text-[13px] font-medium pointer-events-none",style:{left:"12px"},children:"â¬"}),l.jsx("input",{type:"number",value:c,onChange:ge=>u(ge.target.value),min:"0",max:"9999999",className:"w-full bg-black/40 border border-white/10 rounded-lg py-2.5 pr-3 text-white text-sm font-semibold outline-none focus:border-[#8b5cf6] transition",style:{paddingLeft:"26px"}})]})]}),l.jsx("div",{className:"flex gap-1.5 mb-3",children:[{v:5e3,label:"â¬5K"},{v:25e3,label:"â¬25K"},{v:1e5,label:"â¬100K"},{v:5e5,label:"â¬500K"}].map(ge=>l.jsx("button",{onClick:()=>u(String(ge.v)),className:"flex-1 border rounded-md text-[10px] py-1.5 font-semibold transition hover:brightness-125",style:{background:"rgba(139,92,246,0.1)",borderColor:"rgba(139,92,246,0.2)",color:"#c4b5fd"},children:ge.label},ge.v))}),l.jsxs("div",{className:"mb-3",children:[l.jsxs("label",{className:"flex items-center justify-between text-[11px] text-white/60 mb-1.5 font-medium",children:[n.fieldOrders,l.jsx("span",{className:"px-1.5 py-0.5 rounded text-[9px] font-bold",style:{background:"rgba(139,92,246,0.15)",color:"#c4b5fd"},children:n.period30d})]}),l.jsx("input",{type:"number",value:f,onChange:ge=>h(ge.target.value),min:"0",max:"999999",className:"w-full bg-black/40 border border-white/10 rounded-lg py-2.5 px-3 text-white text-sm font-semibold outline-none focus:border-[#8b5cf6] transition"})]}),l.jsxs("div",{children:[l.jsxs("label",{className:"flex items-center justify-between text-[11px] text-white/60 mb-1.5 font-medium",children:[n.fieldConv,l.jsx("span",{className:"px-1.5 py-0.5 rounded text-[9px] font-bold",style:{background:"rgba(139,92,246,0.15)",color:"#c4b5fd"},children:"%"})]}),l.jsx("input",{type:"number",value:p,onChange:ge=>y(ge.target.value),min:"0",max:"100",step:"0.1",className:"w-full bg-black/40 border border-white/10 rounded-lg py-2.5 px-3 text-white text-sm font-semibold outline-none focus:border-[#8b5cf6] transition"})]})]})}),l.jsxs(le.button,{onClick:()=>
300o(!1),initial:!1,animate:{opacity:r?1:0,y:r?0:20,scale:r?1:.95},transition:{duration:.35,ease:"easeOut"},className:"absolute bottom-8 right-8 items-center gap-2.5 rounded-full py-2 pl-3 pr-4 z-20 text-white text-xs font-semibold hidden md:flex",style:{background:"linear-gradient(180deg, #1a1428 0%, #12101f 100%)",border:"1px solid rgba(139,92,246,0.4)",boxShadow:"0 20px 60px rgba(0,0,0,0.5), 0 0 0 3px rgba(139,92,246,0.08)",backdropFilter:"blur(20px)",pointerEvents:r?"auto":"none"},children:[l.jsx("span",{className:"rounded-md grid place-items-center text-white font-extrabold text-[11px]",style:{background:"linear-gradient(135deg, #8b5cf6, #6366f1)",width:"22px",height:"22px"},children:"C"}),n.editorTitle,l.jsx("span",{className:"bg-green-400 rounded-full",style:{boxShadow:"0 0 8px #4ade80",animation:"hbBlink 1s infinite",width:"6px",height:"6px"}})]}),l.jsx("style",{children:"@keyframes hbKb { from { transform: scale(1.02); } to { transform: scale(1.06); } } @keyframes hbBlink { 50% { opacity: 0.3; } }"})]})}function M3(){const{t:e}=jn();return l.jsxs("section",{className:"relative flex flex-col items-center justify-center overflow-hidden px-4 pt-20 pb-8 min-h-screen sm:pt-24",children:[l.jsx(I3,{}),l.jsx(le.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.1},className:"relative z-10 text-center max-w-4xl mx-auto mb-6",children:l.jsxs("h2",{className:"font-space font-black leading-[1.05] tracking-tight px-2",style:{fontSize:"clamp(2.5rem, 8vw, 6rem)"},children:[l.jsxs("span",{className:"text-white [text-shadow:0_4px_24px_rgba(0,0,0,0.9),0_2px_8px_rgba(0,0,0,0.95)]",children:[e("hero_subtitle").split(",")[0],","]}),l.jsx("span",{className:"bg-gradient-to-r from-primary via-accent to-primary bg-clip-text text-transparent [filter:drop-shadow(0_2px_8px_rgba(0,0,0,0.6))]",children:e("hero_subtitle").split(",")[1]})]})}),l.jsx(le.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},className:"relative z-10 text-white text-base sm:text-lg text-center mb-10 max-w-xl px-2",children:e("hero_description")}),l.jsx(le.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.3},className:"relative z-10 flex items-center justify-center mb-16",children:l.jsx(xn,{to:"/signup",className:"px-8 py-3.5 bg-primary hover:bg-primary/90 text-primary-foreground font-bold rounded-full text-base transition-all shadow-xl shadow-primary/30 hover:scale-105",children:e("hero_cta_start")})}),l.jsx(le.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.4},className:"relative z-10 flex flex-wrap justify-center gap-2 mb-0 mt-8 px-2",children:[{logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/79b23d9fa_image.png",label:e("hero_pill_chrome"),rounded:!1},{logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/4a75bb4a7_LogoBeacons.png",label:"Beacons",rounded:!1,size:"h-5 w-5"},{logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/fb9c6ade2_image.png",label:"PayPal",rounded:!1},{logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/6bb88099f_ShopifyLogo.png",label:"Shopify",rounded:!1},{logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/23c01e3af_Sanstitre.png",label:"Stripe",rounded:!1,size:"h-6 w-6"}].map(t=>l.jsxs("div",{className:"flex items-center gap-1.5 px-4 py-1.5 bg-[#1a1a1a] border border-white/10 rounded-full text-sm text-white",children:[t.logo?l.jsx("img",{src:t.logo,alt:t.label,loading:"lazy",decoding:"async",width:"20",height:"20",className:`${t.size||"h-4 w-4"} object-contain ${t.rounded?"rounded-full bg-black":""}`}):l.jsx("span",{children:t.emoji}),l.jsx("span",{children:t.label})]},t.label))})]})}const F3=[{name:"Lucas M.",handle:"@lucas.growth",role:"Creator IG",stars:5,text:"L'extension fait vraiment le taf. Je modifie mes ventes Beacons en 2 clics et ça reste affiché même après actualisation, c'est bluffant."},{name:"Chloé D.",handle:"@chloedigital",role:"Coach business",stars:5,text:"Le dashboard PayPal ressemble EXACTEMENT au vrai, aucune différence visuelle. Parfait pour mes screens de vente."},{name:"Malik B.",handle:"@malik.trader",role:"Trader",stars:5,text:"J'ai modifié mon solde, mes transactions, tout. Le rendu est identique au vrai PayPal, y'a rien à redire."},{name:"Sarah L.",handle:"@sarahfitness",role:"Coach sportif",stars:5,text:"Installation de l'extension en 30 secondes, un PIN à saisir et c'est parti. Mon Beacons est prêt en 2 minutes."},{name:"Yanis K.",handle:"@yanis.ecom",role:"Ecom Shopify",stars:5,text:"L'extension Shopify c'est ce qu'il me manquait. Je mets mes propres chiffres de ventes et ça tient au refresh."},{name:"Emma R.",handle:"@emma.creator",role:"Content creator",stars:4,text:"Beacons + PayPal en même temps ça claque. J'attends Stripe avec impatience, ils ont dit que ça arrive bientôt."},{name:"Théo P.",handle:"@theobiz",role:"Entrepreneur",stars:5,text:"Ce que j'adore c'est que je peux régler chaque vente, chaque commission, chaque date directement dans l'extension. Ultra complet."},{name:"Inès C.",handle:"@ines.socials",role:"Community manager",stars:5,text:"Sur Beacons je peux même changer les photos de profil, les réseaux, les produits directement depuis l'extension."},{name:"Nathan V.",handle:"@nathanvst",role:"YouTuber",stars:5,text:"Pour mes vidéos YouTube c'est un cheat code. Le dashboard PayPal modifié rend hyper crédible face caméra."},{name:"Léa T.",handle:"@lea.marketing",role:"Freelance",stars:5,text:"L'extension est légère et ra
300pide, elle se déclenche uniquement sur les bonnes pages. Aucun ralentissement."},{name:"Adam J.",handle:"@adamjr",role:"Créateur digital",stars:5,text:"Les tableaux de bord se rechargent avec mes modifs, c'est de la magie. Aucune trace visible, tout est propre."},{name:"Camille F.",handle:"@camillef",role:"Coach mindset",stars:5,text:"Mon Beacons est enfin exactement comme je l'imaginais. Les ventes affichées font passer un vrai message pro."},{name:"Hugo A.",handle:"@hugoads",role:"Media buyer",stars:5,text:"Le PayPal modifié tient au refresh, c'est ça qui m'a convaincu. Rien à voir avec les extensions basiques du marché."},{name:"Manon S.",handle:"@manon.digital",role:"Créatrice de contenu",stars:5,text:"Ãa reste après actualisation, c'est vraiment ce qui change tout. Les autres extensions font pas ça."},{name:"Rayan H.",handle:"@rayan.biz",role:"Growth marketer",stars:5,text:"Le rendu de l'extension est irréprochable, aucun pixel qui bouge. C'est le seul outil qui fait ça aussi proprement."}],B3=[{name:"Lucas M.",handle:"@lucas.growth",role:"IG Creator",stars:5,text:"The extension really gets the job done. I edit my Beacons sales in 2 clicks and it stays visible even after refresh, it's stunning."},{name:"Chloé D.",handle:"@chloedigital",role:"Business coach",stars:5,text:"The PayPal dashboard looks EXACTLY like the real one, no visual difference. Perfect for my sales screenshots."},{name:"Malik B.",handle:"@malik.trader",role:"Trader",stars:5,text:"I edited my balance, transactions, everything. The rendering is identical to real PayPal, nothing to complain about."},{name:"Sarah L.",handle:"@sarahfitness",role:"Fitness coach",stars:5,text:"Extension installs in 30 seconds, set a PIN and you're good. My Beacons is ready in 2 minutes."},{name:"Yanis K.",handle:"@yanis.ecom",role:"Shopify seller",stars:5,text:"The Shopify extension is exactly what I was missing. I set my own sales figures and they survive the refresh."},{name:"Emma R.",handle:"@emma.creator",role:"Content creator",stars:4,text:"Beacons + PayPal at the same time is fire. Waiting for Stripe, they said it's coming soon."},{name:"Théo P.",handle:"@theobiz",role:"Entrepreneur",stars:5,text:"What I love is I can tune every sale, every commission, every date directly in the extension. Super complete."},{name:"Inès C.",handle:"@ines.socials",role:"Community manager",stars:5,text:"On Beacons I can even change profile pics, socials, products directly from the extension."},{name:"Nathan V.",handle:"@nathanvst",role:"YouTuber",stars:5,text:"For my YouTube videos it's a cheat code. The edited PayPal dashboard looks crazy credible on camera."},{name:"Léa T.",handle:"@lea.marketing",role:"Freelance",stars:5,text:"The extension is light and fast, it only triggers on the right pages. Zero slowdown."},{name:"Adam J.",handle:"@adamjr",role:"Digital creator",stars:5,text:"Dashboards reload with my edits, it's pure magic. No visible trace, everything is clean."},{name:"Camille F.",handle:"@camillef",role:"Mindset coach",stars:5,text:"My Beacons is finally exactly how I imagined it. The displayed sales send a real pro message."},{name:"Hugo A.",handle:"@hugoads",role:"Media buyer",stars:5,text:"The edited PayPal survives the refresh, that's what convinced me. Nothing to do with the basic extensions out there."},{name:"Manon S.",handle:"@manon.digital",role:"Content creator",stars:5,text:"It stays after refresh, that's really what changes everything. Other extensions don't do that."},{name:"Rayan H.",handle:"@rayan.biz",role:"Growth marketer",stars:5,text:"The extension rendering is flawless, not a pixel out of place. It's the only tool that does this so cleanly."}],sv=["from-indigo-500 to-purple-600","from-pink-500 to-rose-600","from-cyan-500 to-blue-600","from-amber-500 to-orange-600","from-emerald-500 to-teal-600","from-fuchsia-500 to-pink-600"];function V3({review:e,idx:t}){const n=sv[t%sv.length],r=e.name.split(" ").map(o=>o[0]).join("").slice(0,2);return l.jsxs("div",{className:"shrink-0 w-[320px] sm:w-[380px] mx-3 bg-white/[0.04] backdrop-blur-xl border border-white/10 rounded-2xl p-5 hover:border-primary/40 transition-colors",children:[l.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[l.jsx("div",{className:`h-10 w-10 rounded-full bg-gradient-to-br ${n} flex items-center justify-center text-white font-bold text-sm shrink-0`,children:r}),l.jsxs("div",{className:"min-w-0 flex-1",children:[l.jsx("div",{className:"font-semibold text-white text-sm truncate",children:e.name}),l.jsxs("div",{className:"text-xs text-white/50 truncate",children:[e.handle," · ",e.role]})]})]}),l.jsx("div",{className:"flex gap-0.5 mb-2",children:Array.from({length:5}).map((o,c)=>l.jsx(Ov,{className:`h-3.5 w-3.5 ${c<e.stars?"fill-yellow-400 text-yellow-400":"text-white/20"}`},c))}),l.jsxs("p",{className:"text-sm text-white/75 leading-relaxed",children:['"',e.text,'"']})]})}function U3(){const{lang:e}=jn(),t=e==="fr",n=t?F3:B3,r=[...n,...n];return l.jsxs("section",{className:"relative py-20 overflow-hidden",children:[l.jsx("div",{className:"absolute inset-0 pointer-events-none",children:l.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[400px] bg-primary/5 rounded-full blur-[100px]"})}),l.jsxs(le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-12 px-4",children:[l.jsxs("div",{className:"inline-flex items-center gap-2 mb-5",children:[l.jsx("div",{className:"flex gap-0.5",children:Array.from({length:5}).map((o,c)=>l.jsx(Ov,{className:"h-4 w-4 fill-yellow-400 text-yellow-400"},c))}),l.jsx("span",{className:"text-sm font-semibold text-white",children:"4,9/5"})]}),l.jsx("h2",{className:"font-space font-bold text-3xl sm:text-4xl md:text-5xl text-white tracking-tight mb-3",children:t?"Ils nous font confiance":"They trust us"}),l.jsx("p",{className:"text-white/70 text-base sm:text-lg max-w-xl mx-auto",children:t?"Ce qu'ils disent de l'extension au quotidien.":"What they s
300ay about the extension day-to-day."})]}),l.jsxs("div",{className:"relative",children:[l.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 w-20 sm:w-32 bg-gradient-to-r from-black/80 to-transparent z-10"}),l.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 w-20 sm:w-32 bg-gradient-to-l from-black/80 to-transparent z-10"}),l.jsx("div",{className:"flex overflow-hidden group",children:l.jsx("div",{className:"flex animate-marquee group-hover:[animation-play-state:paused]",style:{width:"max-content"},children:r.map((o,c)=>l.jsx(V3,{review:o,idx:c},c))})})]}),l.jsx("style",{children:` 301 @keyframes marquee { 302 0% { transform: translateX(0); } 303 100% { transform: translateX(-50%); } 304 } 305 .animate-marquee { 306 animation: marquee 60s linear infinite; 307 } 308 `})]})}function z3(){const[e,t]=k.useState("4827"),[n,r]=k.useState(!1);return k.useEffect(()=>{const c=setInterval(()=>{r(!0),setTimeout(()=>{const u=Math.floor(1e3+Math.random()*9e3).toString();t(u),r(!1)},700)},2600);return()=>clearInterval(c)},[]),l.jsxs("div",{className:"mt-4 bg-[#1a1a1a] rounded-2xl p-4 border border-white/10",children:[l.jsxs("div",{className:"flex items-center justify-between mb-3",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(le.div,{animate:{scale:n?[1,1.15,1]:1},transition:{duration:.6},className:"h-6 w-6 rounded-md bg-green-500/15 flex items-center justify-center",children:l.jsx(Tv,{className:"h-3 w-3 text-green-400"})}),l.jsx("span",{className:"text-[10px] uppercase tracking-wider text-white/40 font-semibold",children:"Secure PIN"})]}),l.jsx(le.div,{animate:{rotate:n?360:0,opacity:n?1:.4},transition:{duration:.7,ease:"linear"},children:l.jsx(Pc,{className:"h-3 w-3 text-white/40"})})]}),l.jsx("div",{className:"flex items-center justify-center gap-2 py-2",children:e.split("").map((o,c)=>l.jsxs("div",{className:"relative h-10 w-9 rounded-lg bg-black/40 border border-white/10 flex items-center justify-center overflow-hidden",children:[l.jsx(mt,{mode:"wait",children:l.jsx(le.span,{initial:{y:-14,opacity:0,filter:"blur(4px)"},animate:{y:0,opacity:n?.3:1,filter:"blur(0px)"},exit:{y:14,opacity:0,filter:"blur(4px)"},transition:{duration:.35,delay:c*.05},className:"font-mono text-base font-bold text-white",children:"â¢"},`${c}-${o}-${n}`)}),l.jsx(le.div,{className:"absolute bottom-0 left-0 h-0.5 bg-green-400",animate:{width:n?"100%":"0%"},transition:{duration:.7,delay:c*.05}})]},c))}),l.jsxs("div",{className:"flex items-center justify-center gap-1.5 mt-2",children:[l.jsx(Wi,{className:"h-3 w-3 text-green-400"}),l.jsx("span",{className:"text-[10px] text-white/40",children:n?"Refreshing tokenâ¦":"Token encrypted"})]})]})}function $3(){const[e,t]=k.useState(12),[n,r]=k.useState(!1),[o,c]=k.useState([]);return k.useEffect(()=>{const u=setInterval(()=>{r(!0),t(h=>h+1);const f=Date.now();c(h=>[...h,f]),setTimeout(()=>c(h=>h.filter(p=>p!==f)),1400),setTimeout(()=>r(!1),700)},2400);return()=>clearInterval(u)},[]),l.jsxs("div",{className:"mt-4 bg-[#1a1a1a] rounded-2xl p-4 border border-white/10 relative overflow-hidden",children:[l.jsx(mt,{children:n&&l.jsx(le.div,{className:"absolute inset-y-0 w-1/3 bg-gradient-to-r from-transparent via-white/20 to-transparent pointer-events-none",initial:{x:"-100%"},animate:{x:"300%"},exit:{opacity:0},transition:{duration:.9,ease:"easeInOut"}})}),l.jsx(le.div,{className:"absolute inset-0 bg-white/[0.05] pointer-events-none",animate:{opacity:n?1:0},transition:{duration:.4}}),l.jsxs("div",{className:"flex items-center gap-3 relative",children:[l.jsxs(le.div,{animate:n?{rotate:[0,-8,6,-4,0],scale:[1,1.08,1]}:{},transition:{duration:.6,ease:"easeInOut"},className:"shrink-0 relative",children:[l.jsx("img",{src:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/4a75bb4a7_LogoBeacons.png",alt:"Beacons",className:"h-10 w-10 object-contain"}),l.jsx(mt,{children:n&&l.jsx(le.div,{initial:{scale:0,opacity:0,rotate:-45},animate:{scale:1,opacity:1,rotate:0},exit:{scale:0,opacity:0},transition:{duration:.4},className:"absolute -top-1 -right-1",children:l.jsx(Tc,{className:"h-3 w-3 text-white"})})})]}),l.jsxs("div",{className:"flex-1 min-w-0 relative",children:[l.jsx("div",{className:"text-xs text-white/50 mb-0.5",children:"beacons.ai/yourname"}),l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsxs("span",{className:"text-sm text-white font-semibold tabular-nums inline-flex items-baseline gap-0.5",children:["+",l.jsx(mt,{mode:"popLayout",children:l.jsx(le.span,{initial:{y:14,opacity:0,filter:"blur(3px)"},animate:{y:0,opacity:1,filter:"blur(0px)"},exit:{y:-14,opacity:0,filter:"blur(3px)"},transition:{duration:.4,ease:[.22,1,.36,1]},className:"inline-block",children:e},e)}),l.jsx("span",{children:"sales added"})]}),l.jsx(le.div,{animate:{scale:n?[1,1.4,1]:1,rotate:n?[0,-10,0]:0}
308,transition:{duration:.5},children:l.jsx(Lv,{className:"h-3 w-3 text-green-400"})})]}),l.jsx("div",{className:"text-xs text-white/50",children:"via Codir extension"}),l.jsx(mt,{children:o.map(u=>l.jsx(le.div,{initial:{opacity:0,y:0,x:0,scale:.8},animate:{opacity:[0,1,1,0],y:-28,x:6,scale:1},exit:{opacity:0},transition:{duration:1.4,ease:"easeOut"},className:"absolute top-0 right-0 text-[10px] font-bold text-green-400 pointer-events-none",children:"+1"},u))})]})]})]})}function q3(){const[e,t]=k.useState(24891.4),[n,r]=k.useState(!1),[o,c]=k.useState(0),u=k.useRef(e);k.useEffect(()=>{const y=setInterval(()=>{r(!0),setTimeout(()=>{const x=Math.random()*350+50;u.current=e,t(v=>v+x),c(x),r(!1)},400)},2400);return()=>clearInterval(y)},[e]);const f=e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}),[h,p]=f.split(".");return l.jsxs("div",{className:"mt-4 bg-[#1a1a1a] rounded-2xl p-4 border border-white/10 relative overflow-hidden",children:[l.jsx(mt,{children:n&&l.jsx(le.div,{className:"absolute inset-y-0 w-1/3 bg-gradient-to-r from-transparent via-blue-400/20 to-transparent pointer-events-none",initial:{x:"-100%"},animate:{x:"300%"},exit:{opacity:0},transition:{duration:.9,ease:"easeInOut"}})}),l.jsx(le.div,{className:"absolute inset-0 bg-blue-500/[0.06] pointer-events-none",animate:{opacity:n?1:0},transition:{duration:.4}}),l.jsxs("div",{className:"flex items-center justify-between relative",children:[l.jsxs("div",{className:"min-w-0",children:[l.jsx("div",{className:"text-xs text-white/40 mb-0.5",children:"PayPal balance"}),l.jsxs("div",{className:"flex items-baseline gap-0.5 text-xl font-bold text-white font-space tabular-nums",children:[l.jsx("span",{children:"â¬"}),l.jsx(mt,{mode:"popLayout",children:l.jsx(le.span,{initial:{y:18,opacity:0,filter:"blur(4px)"},animate:{y:0,opacity:1,filter:"blur(0px)"},exit:{y:-18,opacity:0,filter:"blur(4px)"},transition:{duration:.45,ease:[.22,1,.36,1]},children:h},h)}),l.jsxs("span",{className:"text-white/50",children:[".",p]})]}),l.jsx(mt,{children:!n&&o>0&&l.jsxs(le.div,{initial:{opacity:0,y:4},animate:{opacity:[0,1,1,0],y:[4,-2,-8,-14]},exit:{opacity:0},transition:{duration:1.6,ease:"easeOut"},className:"absolute -top-1 left-4 text-[10px] font-bold text-green-400 flex items-center gap-0.5 pointer-events-none",children:[l.jsx(gk,{className:"h-2.5 w-2.5"}),"+â¬",o.toFixed(2)]},e)})]}),l.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[l.jsxs("span",{className:"relative flex h-2 w-2",children:[l.jsx(le.span,{className:"absolute inset-0 rounded-full bg-blue-400",animate:{scale:[1,2.2,1],opacity:[.6,0,.6]},transition:{duration:1.6,repeat:1/0,ease:"easeOut"}}),l.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-blue-400"})]}),l.jsx("span",{className:"text-[10px] uppercase tracking-wider text-blue-400 font-semibold",children:"Live"})]})]})]})}function W3(){const[e,t]=k.useState(8),[n,r]=k.useState(!1),[o,c]=k.useState([]);return k.useEffect(()=>{const u=setInterval(()=>{r(!0),t(h=>h+1);const f=Date.now();c(h=>[...h,f]),setTimeout(()=>c(h=>h.filter(p=>p!==f)),1400),setTimeout(()=>r(!1),700)},2400);return()=>clearInterval(u)},[]),l.jsxs("div",{className:"mt-4 bg-[#1a1a1a] rounded-2xl p-4 border border-white/10 relative overflow-hidden",children:[l.jsx(mt,{children:n&&l.jsx(le.div,{className:"absolute inset-y-0 w-1/3 bg-gradient-to-r from-transparent via-white/20 to-transparent pointer-events-none",initial:{x:"-100%"},animate:{x:"300%"},exit:{opacity:0},transition:{duration:.9,ease:"easeInOut"}})}),l.jsx(le.div,{className:"absolute inset-0 bg-white/[0.05] pointer-events-none",animate:{opacity:n?1:0},transition:{duration:.4}}),l.jsxs("div",{className:"flex items-center gap-3 relative",children:[l.jsxs(le.div,{animate:n?{rotate:[0,-8,6,-4,0],scale:[1,1.08,1]}:{},transition:{duration:.6,ease:"easeInOut"},className:"shrink-0 relative",children:[l.jsx("img",{src:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/6bb88099f_ShopifyLogo.png",alt:"Shopify",className:"h-10 w-10 object-contain"}),l.jsx(mt,{children:n&&l.jsx(le.div,{initial:{scale:0,opacity:0,rotate:-45}
308,animate:{scale:1,opacity:1,rotate:0},exit:{scale:0,opacity:0},transition:{duration:.4},className:"absolute -top-1 -right-1",children:l.jsx(Tc,{className:"h-3 w-3 text-white"})})})]}),l.jsxs("div",{className:"flex-1 min-w-0 relative",children:[l.jsx("div",{className:"text-xs text-white/50 mb-0.5",children:"yourstore.myshopify.com"}),l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsxs("span",{className:"text-sm text-white font-semibold tabular-nums inline-flex items-baseline gap-0.5",children:["+",l.jsx(mt,{mode:"popLayout",children:l.jsx(le.span,{initial:{y:14,opacity:0,filter:"blur(3px)"},animate:{y:0,opacity:1,filter:"blur(0px)"},exit:{y:-14,opacity:0,filter:"blur(3px)"},transition:{duration:.4,ease:[.22,1,.36,1]},className:"inline-block",children:e},e)}),l.jsx("span",{children:"orders added"})]}),l.jsx(le.div,{animate:{scale:n?[1,1.4,1]:1,rotate:n?[0,-10,0]:0},transition:{duration:.5},children:l.jsx(Av,{className:"h-3 w-3 text-green-400"})})]}),l.jsx("div",{className:"text-xs text-white/50",children:"via Codir extension"}),l.jsx(mt,{children:o.map(u=>l.jsx(le.div,{initial:{opacity:0,y:0,x:0,scale:.8},animate:{opacity:[0,1,1,0],y:-28,x:6,scale:1},exit:{opacity:0},transition:{duration:1.4,ease:"easeOut"},className:"absolute top-0 right-0 text-[10px] font-bold text-green-400 pointer-events-none",children:"+1"},u))})]})]})]})}function H3(){const[e,t]=k.useState(!1),[n,r]=k.useState(0);return k.useEffect(()=>{const o=setInterval(()=>{t(!0),setTimeout(()=>{t(!1),r(c=>c+1)},900)},2800);return()=>clearInterval(o)},[]),l.jsxs("div",{className:"mt-4 bg-[#1a1a1a] rounded-2xl p-4 border border-white/10 relative overflow-hidden",children:[l.jsxs("div",{className:"flex items-center gap-1.5 mb-3",children:[l.jsx("div",{className:"h-2 w-2 rounded-full bg-red-500/60"}),l.jsx("div",{className:"h-2 w-2 rounded-full bg-yellow-500/60"}),l.jsx("div",{className:"h-2 w-2 rounded-full bg-green-500/60"}),l.jsx(le.div,{animate:{rotate:e?360:0},transition:{duration:.9,ease:"linear"},className:"ml-2",children:l.jsx(Pc,{className:"h-3 w-3 text-white/50"})}),l.jsx("div",{className:"ml-2 flex-1 h-4 rounded bg-white/5 px-2 flex items-center",children:l.jsx("span",{className:"text-[9px] text-white/40 truncate",children:"yourstore.com"})})]}),l.jsxs("div",{className:"relative",children:[l.jsx(mt,{children:e&&l.jsx(le.div,{className:"absolute inset-0 bg-white/10 pointer-events-none rounded",initial:{opacity:0}
308,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3}})}),l.jsxs("div",{className:"space-y-1.5",children:[l.jsxs(le.div,{initial:{opacity:.3},animate:{opacity:1},transition:{duration:.4},className:"flex items-center gap-2 bg-white/5 rounded px-2 py-1.5",children:[l.jsx(tr,{className:"h-3 w-3 text-green-400 shrink-0"}),l.jsx("span",{className:"text-[10px] text-white/80",children:"Custom balance"}),l.jsx("span",{className:"ml-auto text-[10px] text-green-400 font-semibold tabular-nums",children:"â¬12,847"})]},`row1-${n}`),l.jsxs(le.div,{initial:{opacity:.3},animate:{opacity:1},transition:{duration:.4,delay:.05},className:"flex items-center gap-2 bg-white/5 rounded px-2 py-1.5",children:[l.jsx(tr,{className:"h-3 w-3 text-green-400 shrink-0"}),l.jsx("span",{className:"text-[10px] text-white/80",children:"Injected sales"}),l.jsx("span",{className:"ml-auto text-[10px] text-green-400 font-semibold",children:"Still here"})]},`row2-${n}`)]}),l.jsxs("div",{className:"mt-2 flex items-center gap-1.5 text-[10px] text-white/50",children:[l.jsx(Rv,{className:"h-2.5 w-2.5 text-primary"}),l.jsx("span",{children:"Refresh-proof · survives page reload"})]})]})]})}const K3=[{label:"Virement bancaire",amount:"+ 2 480,00 â¬",state:"Payé"},{label:"Virement bancaire",amount:"+ 950,00 â¬",state:"En transit"}
308,{label:"Virement bancaire",amount:"+ 12 300,00 â¬",state:"Payé"}];function G3(){return l.jsx("div",{className:"mt-4 space-y-2",children:K3.map((e,t)=>l.jsxs(le.div,{initial:{opacity:0,x:-8},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:.15*t,duration:.4},className:"flex items-center gap-2 bg-[#1a1a1a] rounded-lg px-3 py-2 border border-white/5",children:[l.jsx(le.span,{className:"h-1.5 w-1.5 rounded-full bg-[#635bff] shrink-0",animate:{scale:[1,1.6,1],opacity:[.6,1,.6]},transition:{duration:1.6,repeat:1/0,delay:.2*t}}),l.jsx("span",{className:"text-xs text-white/70",children:e.label}),l.jsx("span",{className:"ml-auto text-xs font-bold text-white",children:e.amount}),l.jsx("span",{className:`text-[10px] uppercase tracking-wider ${e.state==="Payé"?"text-green-400/70":"text-yellow-400/70"}`,children:e.state})]},t))})}function Q3(){const{t:e}=jn(),t=[{logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/79b23d9fa_image.png",tag:e("features_1_tag"),title:e("features_1_title"),description:e("features_1_desc"),preview:l.jsx("div",{className:"mt-4 space-y-2",children:[{plan:"Beacons Plan",target:"beacons.ai",logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/4a75bb4a7_LogoBeacons.png",status:"Live"},{plan:"PayPal Plan",target:"paypal.com",logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/fb9c6ade2_image.png",status:"Live"},{plan:"Shopify Plan",target:"shopify.com",logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/6bb88099f_ShopifyLogo.png",status:"Live"},{plan:"Stripe Plan",target:"stripe.com",logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/23c01e3af_Sanstitre.png",status:"Live",logoClass:"h-6 w-6"}].map(n=>l.jsxs("div",{className:"flex items-center gap-2 bg-[#1a1a1a] rounded-lg px-3 py-2 border border-white/5",children:[n.logo?l.jsx("img",{src:n.logo,alt:"",className:`${n.logoClass||"h-4 w-4"} object-contain shrink-0`}):l.jsx("span",{className:"text-sm shrink-0",children:n.emoji}),l.jsx("span",{className:"text-xs text-white/80 font-semibold",children:n.plan}),l.jsx("span",{className:"text-xs text-white/30",children:"â"}),l.jsx("span",{className:"text-xs text-white/60",children:n.target}),l.jsx("span",{className:`ml-auto text-[10px] uppercase tracking-wider ${n.status==="Soon"?"text-yellow-400/70":"text-green-400/70"}`,children:n.status==="Live"?e("features_status_live"):e("features_status_soon")})]},n.plan))}),span:"col-span-1 sm:col-span-2",bg:"bg-gradient-to-br from-cyan-500/10 to-transparent"},{logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/4a75bb4a7_LogoBeacons.png",tag:e("features_beacons_tag"),title:e("features_beacons_title"),description:e("features_beacons_desc"),preview:l.jsx($3,{}),span:"col-span-1",bg:"bg-gradient-to-br from-white/10 to-transparent"},{logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/fb9c6ade2_image.png",tag:e("features_paypal_tag"),title:e("features_paypal_title"),description:e("features_paypal_desc"),preview:l.jsx(q3,{}),span:"col-span-1",bg:"bg-gradient-to-br from-blue-500/10 to-transparent"},{logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/6bb88099f_ShopifyLogo.png",tag:e("features_shopify_tag"),title:e("features_shopify_title"),description:e("features_shopify_desc"),preview:l.jsx(W3,{}),span:"col-span-1",bg:"bg-gradient-to-br from-green-500/10 to-transparent"},{logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/23c01e3af_Sanstitre.png",logoClass:"h-12 w-12",tag:e("features_stripe_tag"),title:e("features_stripe_title"),description:e("features_stripe_desc"),preview:l.jsx(G3,{}),span:"col-span-1",bg:"bg-gradient-to-br from-[#635bff]/15 to-transparent"},{emoji:"ð¡ï¸",tag:e("features_refresh_tag"),title:e("features_refresh_title"),description:e("features_refresh_desc"),preview:l.jsx(H3,{}),span:"col-span-1 sm:col-span-2",bg:"bg-gradient-to-br from-primary/10 to-transparent"},{emoji:"ð",tag:e("features_pin_tag"),title:e("features_pin_title"),description:e("features_pin_desc"),preview:l.jsx(z3,{}),span:"col-span-1",bg:"bg-gradient-to-br from-green-500/10 to-transparent"}];return l.jsx("section",{id:"features",className:"relative pt-8 pb-24 px-4",children:l.jsxs("div",{className:"max-w-5xl mx-auto",children:[l.jsxs(le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-4",children:[l.jsx("div",{className:"inline-block text-xs font-bold text-white uppercase tracking-widest mb-4",children:e("features_tag")}),l.jsxs("h2",{className:"font-space font-black text-4xl sm:text-5xl text-white mb-4",children:[e("features_title_1"),l.jsx("br",{}),l.jsx("span",{className:"text-primary [text-shadow:0_4px_24px_rgba(0,0,0,0.85),0_2px_8px_rgba(0,0,0,0.9)]",children:e("features_title_2")})]}),l.jsx("p",{className:"text-white max-w-xl mx-auto",children:e("features_subt
308itle")})]}),l.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 mt-14",children:t.map((n,r)=>l.jsxs(le.div,{initial:{opacity:0,y:40,scale:.9,filter:"blur(8px) brightness(2)"},whileInView:{opacity:1,y:0,scale:1,filter:"blur(0px) brightness(1)"},viewport:{once:!0,margin:"-50px"},transition:{delay:r*.12,duration:.7,ease:[.22,1,.36,1]},whileHover:{y:-6,scale:1.02,filter:"brightness(1.15)",transition:{duration:.3,ease:"easeOut"}},className:`${n.span} ${n.bg} rounded-2xl border border-white/10 bg-white/5 backdrop-blur-xl p-6 hover:border-white/30 hover:shadow-[0_0_40px_-10px_rgba(255,255,255,0.2)] transition-[border-color,box-shadow] duration-300 cursor-default flex flex-col`,children:[l.jsx("div",{className:"text-xs font-bold text-white uppercase tracking-widest mb-2",children:n.tag}),n.logo?l.jsx("img",{src:n.logo,alt:"",className:`${n.logoClass||"h-8 w-8"} object-contain mb-1`}):l.jsx("div",{className:"text-2xl mb-1",children:n.emoji}),l.jsx("h3",{className:"font-space font-bold text-white text-lg mb-2",children:n.title}),l.jsx("p",{className:"text-sm text-white/80 leading-relaxed",children:n.description}),l.jsx("div",{className:"mt-auto",children:n.preview})]},r))})]})})}const hf=[{key:"beacons",name:"Beacons",logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/4a75bb4a7_LogoBeacons.png",src:"https://media.base44.com/videos/public/69d3bbd071c32e8e2cd61c44/1d14d0d7d_BeaconsVideo.mp4"},{key:"paypal",name:"PayPal",logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/fb9c6ade2_image.png",src:"https://media.base44.com/videos/public/69d3bbd071c32e8e2cd61c44/858a08086_PayPalVideo.mp4"},{key:"shopify",name:"Shopify",logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/6bb88099f_ShopifyLogo.png",src:"https://media.base44.com/videos/public/69d3bbd071c32e8e2cd61c44/752e8b331_ShopifyVideo.mp4"}];function Y3(){const{lang:e}=jn(),t=e==="fr",[n,r]=k.useState("beacons"),o=hf.find(c=>c.key===n)||hf[0];return l.jsx("section",{className:"relative py-20 px-4",children:l.jsxs("div",{className:"max-w-4xl mx-auto",children:[l.jsxs(le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-8",children:[l.jsx("div",{className:"text-xs font-bold text-white uppercase tracking-widest mb-4",children:t?"Les extensions en action":"Extensions in action"}),l.jsxs("h2",{className:"font-space font-black text-4xl sm:text-5xl text-white mb-4",children:[t?"Regarde-les":"Watch them"," ",l.jsx("span",{className:"bg-gradient-to-r from-primary via-accent to-primary bg-clip-text text-transparent",children:t?"travailler":"work"})]}),l.jsx("p",{className:"text-white/80 max-w-xl mx-auto",children:t?"Des démos réelles â modifications live directement dans le navigateur.":"Real demos â live edits directly in the browser."})]}),l.jsx("div",{className:"flex justify-center mb-8 px-2",children:l.jsx("div",{className:"inline-flex flex-wrap justify-center items-center gap-0.5 sm:gap-1 p-1 rounded-full bg-white/5 border border-white/10 backdrop-blur-xl max-w-full",children:hf.map(c=>{const u=c.key===n;return l.jsxs("button",{onClick:()=>r(c.key),className:`relative flex items-center gap-1.5 sm:gap-2 px-3 sm:px-5 py-2 rounded-full text-xs sm:text-sm font-semibold transition-colors ${u?"text-white":"text-white/60 hover:text-white/90"}`,children:[u&&l.jsx(le.div,{layoutId:"video-switch-pill",className:"absolute inset-0 bg-white/15 rounded-full border border-white/20",transition:{type:"spring",bounce:.2,duration:.5}}),l.jsx("img",{src:c.logo,alt:"",className:"relative h-4 w-4 object-contain"}),l.jsx("span",{className:"relative",children:c.name})]},c.key)})})}),l.jsxs(le.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.6,ease:"easeOut"},className:"relative rounded-2xl overflow-hidden border border-white/10 shadow-[0_0_60px_-15px_rgba(99,91,255,0.4)] bg-black",children:[l.jsx("div",{className:"absolute -inset-1 bg-gradient-to-r from-primary/30 via-accent/30 to-primary/30 blur-2xl -z-10"}),l.jsx(mt,{mode:"wait",children:l.jsx(le.video,{src:o.src,autoPlay:!0,loop:!0,muted:!0,playsInl
308ine:!0,controls:!0,onClick:c=>{const u=c.currentTarget;u.paused?u.play():u.pause()},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"w-full h-auto block cursor-pointer"},o.key)})]})]})})}const X3=[{key:"balance",label:"Balance",Icon:mh},{key:"payments",label:"Payments",Icon:pk},{key:"subs",label:"Subs",Icon:Pc},{key:"shopping",label:"Shopping",Icon:Av},{key:"editor",label:"Editor",Icon:$k}];function J3({activeTab:e,setActiveTab:t,onAction:n}){const[r,o]=k.useState(!0),[c,u]=k.useState("USD"),[f,h]=k.useState("English");return l.jsxs("div",{className:"relative w-[380px] max-w-full rounded-2xl bg-black border border-white/10 overflow-hidden shadow-[0_30px_80px_-20px_rgba(94,81,236,0.5)]",style:{fontFamily:"Inter, system-ui, sans-serif"},children:[l.jsx("div",{className:"pointer-events-none absolute -top-20 -right-20 w-64 h-64 rounded-full bg-[#5e51ec]/30 blur-3xl"}),l.jsxs("div",{className:"relative flex items-center gap-3 px-5 pt-5 pb-4",children:[l.jsx("div",{className:"h-10 w-10 rounded-[11px] overflow-hidden",children:l.jsx("img",{src:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/f2467a389_logo.png",alt:"Codir",className:"h-full w-full object-cover"})}),l.jsxs("div",{className:"flex-1",children:[l.jsx("div",{className:"text-white font-bold text-[19px] leading-tight",style:{fontFamily:"Space Grotesk, sans-serif"},children:"Codir · PayPal"}),l.jsx("div",{className:"text-[11px] text-white/50",children:"v2.0.0 · realistic dashboard"})]}),l.jsxs("button",{className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-red-500/15 text-red-400 hover:bg-red-500/25 transition text-xs font-semibold",children:[l.jsx(Nc,{className:"h-3.5 w-3.5"}),"Logout"]})]}),l.jsxs("div",{className:"px-4 pb-4 space-y-2",children:[l.jsxs("div",{className:"bg-[#0c0c10] border border-white/[0.06] rounded-2xl px-4 py-3 flex items-center justify-between",children:[l.jsx("span",{className:"text-sm text-white font-medium",children:"Enable extension"}),l.jsx("button",{onClick:()=>o(!r),className:`relative h-6 w-11 rounded-full transition ${r?"bg-[#5e51ec]":"bg-white/10"}`,children:l.jsx("span",{className:`absolute top-0.5 h-5 w-5 rounded-full bg-white transition-all ${r?"left-[22px]":"left-0.5"}`})})]}),l.jsxs("div",{className:"bg-[#0c0c10] border border-white/[0.06] rounded-2xl px-4 py-3 flex items-center justify-between",children:[l.jsx("span",{className:"text-sm text-white font-medium",children:"Currency"}),l.jsxs("select",{value:c,onChange:p=>u(p.target.value),className:"bg-transparent text-sm text-white/80 border border-white/10 rounded-md px-2 py-1 outline-none cursor-pointer",children:[l.jsx("option",{className:"bg-black",children:"EUR"}),l.jsx("option",{className:"bg-black",children:"USD"}),l.jsx("option",{className:"bg-black",children:"GBP"}),l.jsx("option",{className:"bg-black",children:"CAD"}),l.jsx("option",{className:"bg-black",children:"AUD"}),l.jsx("option",{className:"bg-black",children:"CHF"})]})]}),l.jsxs("div",{className:"bg-[#0c0c10] border border-white/[0.06] rounded-2xl px-4 py-3 flex items-center justify-between",children:[l.jsx("span",{className:"text-sm text-white font-medium",children:"PayPal language"}),l.jsxs("select",{value:f,onChange:p=>h(p.target.value),className:"bg-transparent text-sm text-white/80 border border-white/10 rounded-md px-2 py-1 outline-none cursor-pointer",children:[l.jsx("option",{className:"bg-black",children:"English"}),l.jsx("option",{className:"bg-black",children:"Français"})]})]}),l.jsxs("div",{className:"bg-[#0c0c10] border border-white/[0.06] rounded-full px-4 py-2 flex items-center gap-2",children:[l.jsxs("span",{className:"relative flex h-2 w-2",children:[l.jsx("span",{className:"absolute inline-flex h-full w-full rounded-full bg-green-500 opacity-60 animate-ping"}),l.jsx("span",{className:"relative rounded-full h-2 w-2 bg-green-500"})]}),l.jsx("span",{className:"text-xs text-white/70",children:"Connected to PayPal · Ready"})]}),l.jsx("div",{className:"bg-[#0c0c10] border border-white/[0.06] rounded-2xl p-[5px] grid grid-cols-5 ga
308p-1",children:X3.map(({key:p,label:y,Icon:x})=>{const v=e===p;return l.jsxs("button",{onClick:()=>t(p),className:`flex flex-col items-center gap-1 py-2 rounded-xl transition-all ${v?"bg-gradient-to-b from-[#5e51ec] to-[#4a3fd4] shadow-lg shadow-[#5e51ec]/40":"hover:bg-white/[0.04]"}`,children:[l.jsx(x,{className:`h-[17px] w-[17px] transition ${v?"text-white scale-110":"text-white/55"}`,strokeWidth:2}),l.jsx("span",{className:`text-[10px] font-bold ${v?"text-white":"text-white/55"}`,children:y})]},p)})}),l.jsxs("div",{className:`bg-[#0c0c10] border border-white/[0.06] rounded-2xl ${e==="payments"?"p-2 max-h-[320px] overflow-y-auto":"p-4 min-h-[180px]"}`,children:[e==="balance"&&l.jsxs("div",{children:[l.jsx("div",{className:"text-[10px] uppercase tracking-widest text-white/40 mb-3",children:"Displayed balance"}),l.jsx("label",{className:"text-xs text-white/60 block mb-1.5",children:"Available balance"}),l.jsx("input",{defaultValue:"12,450.00",className:"w-full bg-[#14141a] border border-white/[0.06] rounded-lg px-3 py-2.5 text-white text-sm outline-none focus:border-[#5e51ec]/50"})]}),e==="payments"&&l.jsxs("div",{className:"space-y-2",children:[l.jsxs("div",{className:"bg-[#14141a] border border-white/[0.06] rounded-xl p-3 space-y-3",children:[l.jsx("div",{className:"text-[10px] uppercase tracking-widest text-white/40 font-bold",children:"Count & amounts"}),l.jsxs("div",{children:[l.jsx("label",{className:"text-[11px] text-white/60 block mb-1.5",children:"Number of transactions to inject"}),l.jsx("input",{defaultValue:"9",className:"w-full bg-black border border-white/[0.06] rounded-lg px-3 py-2 text-white text-sm outline-none focus:border-[#5e51ec]/50"})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[l.jsxs("div",{children:[l.jsx("label",{className:"text-[11px] text-white/60 block mb-1.5",children:"Min amount"}),l.jsx("input",{defaultValue:"89,99",className:"w-full bg-black border border-white/[0.06] rounded-lg px-3 py-2 text-white text-sm outline-none focus:border-[#5e51ec]/50"})]}),l.jsxs("div",{children:[l.jsx("label",{className:"text-[11px] text-white/60 block mb-1.5",children:"Max amount"}),l.jsx("input",{defaultValue:"157,99",className:"w-full bg-black border border-white/[0.06] rounded-lg px-3 py-2 text-white text-sm outline-none focus:border-[#5e51ec]/50"})]})]})]}),l.jsxs("div",{className:"bg-[#14141a] border border-white/[0.06] rounded-xl p-3 space-y-3",children:[l.jsx("div",{className:"text-[10px] uppercase tracking-widest text-white/40 font-bold",children:"Period"}),l.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[l.jsxs("div",{children:[l.jsx("label",{className:"text-[11px] text-white/60 block mb-1.5",children:"From"}),l.jsx("input",{type:"date",defaultValue:"2026-06-01",className:"w-full bg-black border border-white/[0.06] rounded-lg px-3 py-2 text-white/90 text-sm outline-none focus:border-[#5e51ec]/50"})]}),l.jsxs("div",{children:[l.jsx("label",{className:"text-[11px] text-white/60 block mb-1.5",children:"To"}),l.jsx("input",{type:"date",defaultValue:"2026-06-03",className:"w-full bg-black border border-white/[0.06] rounded-lg px-3 py-2 text-white/90 text-sm outline-none focus:border-[#5e51ec]/50"})]})]}),l.jsx("p",{className:"text-[11px] text-[#a99dff]/80 leading-relaxed",children:"Distributed randomly between these dates with realistic names and amounts."})]}),l.jsxs("div",{className:"bg-[#14141a] border border-white/[0.06] rounded-xl p-3 space-y-3",children:[l.jsx("div",{className:"text-[10px] uppercase tracking-widest text-white/40 font-bold",children:"Transaction type"}),l.jsxs("div",{children:[l.jsx("label",{className:"text-[11px] text-white/60 block mb-1.5",children:"Type applied to all transactions"}),l.jsxs("select",{className:"w-full bg-black border border-white/[0.06] rounded-lg px-3 py-2 text-white text-sm outline-none cursor-pointer focus:border-[#5e51ec]/50",children:[l.jsx("option",{className:"bg-black",children:"Mixed (default, mostly Payments Received)"}),l.jsx("option",{className:"bg-black",children:"Payments Received only"}),l.jsx("option",{className:"bg-black",children:"Payments Sent only"}),l.jsx("option",{className:"bg-black",children:"Refunds"})]})]}),l.jsx("p",{className:"text-[11px] text-white/50 leading-relaxed",children:'Sets the label below the date ("25 May · Payment Received") and the amount sign (+ green for money in, â for money out).'})]})]}),e==="subs"&&l.jsxs("div",{className:"space-y-2.5",children:[l.jsxs("select",{className:"w-full bg-[#14141a] border border-white/[0.06] rounded-lg px-3 py-2 text-white/80 text-sm outline-none cursor-pointer",children:[l.jsx("option",{className:"bg-black",children:"Choose a serviceâ¦"}),l.jsx("option",{className:"bg-black",children:"Spotify â Premium"}),l.jsx("option",{className:"bg-black",children:"Meta â Facebook Ads"}),l.jsx("option",{className:"bg-black",children:"Wix.com â Web service"})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[l.jsx("input",{type:"date",defaultValue:"2024-06-15",className:"bg-[#14141a] border border-white/[0.06] rounded-lg px-2 py-2 text-white/80 text-xs outline-none"}),l.jsx("input",{defaultValue:"9.99",className:"bg-[#14141a] border border-white/[0.06] rounded-lg px-2 py-2 text-white text-xs outline-none"})]}),l.jsx("button",{onClick:()=>n==null?void 0:n(),className:"w-full bg-[#5e51ec]/15 border border-[#5e51ec]/30 text-[#a99dff] hover:bg-[#5e51ec]/25 rounded-lg py-2 text-xs font-semibold transition",children:"+ Add this subscription"})]}),e==="shopping"&&l.jsxs("div",{className:"space-y-2.5",children:[l.jsxs("select",{className:"w-full bg-[#14141a] border border-white/[0.06] rounded-lg px-3 py-2 text-white/80 text-sm outline-none cursor-pointer",children:[l.jsx("option",{className:"bg-black",children:"Choose a brandâ¦"}),l.jsx("option",{className:"bg-black",children:"League Of Legends â Riot"}),l.jsx("option",{className:"bg-black",children:"Steam â Valve"}),l.jsx("option",{className:"bg-black",children:"Notino"})]}),l.jsx("input",{defaultValue:"49.99",placeholder:"Amount",className:"w-full bg-[#14141a] border border-white/[0.06] rounded-lg px-3 py-2 text-white text-sm outline-none"}),l.jsx("button",{onClick:()=>n==null?void 0:n(),className:"w-full bg-[#5e51ec]/15 border border-[#5e51ec]/30 text-[#a99dff] hover:bg-[#5e51ec]/25 rounded-lg py-2 text-xs font-semibold transition",children:"+ Add this purchase"})]}),e==="editor"&&l.jsxs("div",{className:"space-y-3",children:[l.jsxs("p",{className:"text-xs text-white/60 leading-relaxed",children:["Generate first from the ",l.jsx("span",{className:"font-bold text-white",children:"Payments"})," tab, then customize name / amount / date / type here."]}),l.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[l.jsx("button",{onClick:()=>n==null?void 0:n(),className:"bg-[#5e51ec] hover:bg-[#6d61f0] text-white rounded-lg py-2 text-xs font-semibold transition",children:"Save & Apply"}),l.jsx("button",{onClick:()=>n==null?void 0:n(),className:"bg-white/[0.06] hover:bg-white/10 text-white rounded-lg py-2 text-xs font-semibold transition",children:"Refresh"})]})]})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-2 pt-1",children:[l.jsx("button",{onClick:()=>n==null?void 0:n(),className:"bg-[#5e51ec] hover:bg-[#6d61f0] text-white rounded-full py-2.5 text-sm font-semibold transition shadow-lg shadow-[#5e51ec]/30",children:"â Apply"}),l.jsx("button",{onClick:()=>n==null?void 0:n(),className:"bg-white/[0.06] hover:bg-white/10 text-white rounded-full py-2.5 text-sm font-semibold transition",children:"â» Reset"})]}),l.jsxs("div",{className:"flex items-center justify-center gap-3 pt-2 pb-1 text-[11px] text-white/40",children:[l.jsxs("span",{className:"flex items-center gap-1",children:[l.jsx(Wi,{className:"h-3 w-3"}),"Stealth mode"]}),l.jsx("span",{children:"·"}),l.jsx("a",{href:"#",className:"hover:text-white/70 transition",children:"Support"})]})]})]})}const Z3=[{key:"sales",label:"Sales",Icon:Lv},{key:"payouts",label:"Payouts",Icon:Pv},{key:"stats",label:"Stats",Icon:bk}],pf=[{name:"Mindset Reset",price:"47 â¬",type:"Digital download",sales:12},{name:"Productivity Pack",price:"27 â¬",type:"Digital download",sales:8},{name:"Notion Templates",price:"19 $US",type:"Digital download",sales:7}
308],eO=[{name:"Creator Toolkit",price:"59 â¬",type:"Digital download",sales:0},{name:"Lightroom Presets",price:"24 â¬",type:"Digital download",sales:0},{name:"1:1 Coaching Call",price:"120 $US",type:"Service",sales:0}],tO=["$ USD","⬠EUR","£ GBP","CA$ CAD","A$ AUD","CHF"],nO=[{key:"stripe",label:"Stripe",logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/23c01e3af_Sanstitre.png"},{key:"paypal",label:"PayPal",logo:"https://upload.wikimedia.org/wikipedia/commons/b/b5/PayPal.svg"}],mf=[{key:"instagram",label:"Instagram",color:"#E1306C",short:"In"},{key:"tiktok",label:"TikTok",color:"#FE2C55",short:"Tk"},{key:"linkbio",label:"Link in bio",color:"#5e51ec",short:"Lb"},{key:"direct",label:"Direct",color:"#6b7280",short:"Dr"},{key:"youtube",label:"YouTube",color:"#FF0000",short:"Yt"},{key:"email",label:"Email",color:"#EA4335",short:"Em"},{key:"x",label:"X",color:"#000",short:"X"}],sO=[{key:"desktop",label:"Desktop",color:"#2848F0",short:"Dk"},{key:"mobile",label:"Mobile",color:"#10B981",short:"Mo"},{key:"tablet",label:"Tablet",color:"#F59E0B",short:"Tb"}],gf=[{key:"fr",flag:"ð«ð·",label:"France"},{key:"uk",flag:"ð¬ð§",label:"UK"},{key:"us",flag:"ðºð¸",label:"USA"},{key:"es",flag:"ðªð¸",label:"Espagne"},{key:"be",flag:"ð§ðª",label:"Belgique"},{key:"ch",flag:"ð¨ð",label:"Suisse"},{key:"ca",flag:"ð¨ð¦",label:"Canada"},{key:"mx",flag:"ð²ð½",label:"Mexique"},{key:"br",flag:"ð§ð·",label:"Brésil"}],vi="w-full bg-[#14141a] border border-white/[0.06] rounded-lg px-3 py-2 text-white text-sm outline-none focus:border-[#5e51ec]/50";function rv({on:e,onToggle:t}){return l.jsx("button",{onClick:t,className:`relative h-6 w-11 rounded-full transition shrink-0 ${e?"bg-[#5e51ec]":"bg-white/10"}`,children:l.jsx("span",{className:`absolute top-0.5 h-5 w-5 rounded-full bg-white transition-all ${e?"left-[22px]":"left-0.5"}`})})}function Sr({children:e,pill:t}){return l.jsxs("div",{className:"flex items-center justify-between mb-2",children:[l.jsx("div",{className:"text-[10px] uppercase tracking-widest text-white/40 font-bold",children:e}),t&&l.jsx("span",{className:"text-[9px] uppercase tracking-wider font-bold text-[#a99dff] bg-[#5e51ec]/15 border border-[#5e51ec]/25 px-2 py-0.5 rounded-full",children:t})]})}function Go({label:e,children:t}){return l.jsxs("div",{className:"mb-2.5",children:[l.jsx("label",{className:"text-[11px] text-white/60 block mb-1.5",children:e}),t]})}function yf({on:e,label:t,color:n,short:r,flag:o,onToggle:c}){return l.jsxs("button",{onClick:c,className:`flex items-center gap-1.5 px-2 py-1.5 rounded-lg border transition ${e?"bg-[#5e51ec]/[0.12] border-[#5e51ec]/40 text-white":"bg-[#14141a] border-white/[0.06] text-white/50 hover:text-white/80"}`,children:[o?l.jsx("span",{className:"h-5 w-5 rounded-md bg-white/[0.06] flex items-center justify-center text-xs",children:o}):l.jsx("span",{className:"h-5 w-5 rounded-md flex items-center justify-center text-[9px] font-bold text-white",style:{background:n},children:r}),l.jsx("span",{className:"text-[11px] font-semibold",children:t}),e&&l.jsx(tr,{className:"h-3 w-3 text-[#a99dff] ml-0.5",strokeWidth:3})]})}function rO({activeTab:e,setActiveTab:t,onAction:n}){const[r,o]=k.useState(!0),[c,u]=k.useState(!1),[f,h]=k.useState(pf),[p,y]=k.useState(!1),[x,v]=k.useState("days"),[w,E]=k.useState([{count:18,label:"Jun 1 â Jun 28, 2026",days:28,amount:"846 â¬"},{count:9,label:"Jun 10 â Jun 15, 2026",days:6,amount:"423 â¬"}]),[j,S]=k.useState(Object.fromEntries(mf.map(U=>[U.key,["instagram","tiktok","linkbio"].includes(U.key)]))),[_,P]=k.useState({desktop:!0,mobile:!0,tablet:!1}),[C,T]=k.useState(Object.fromEntries(gf.map(U=>[U.key,["fr","uk","us"].includes(U.key)]))),I=()=>{h(p?pf:eO),y(!p),n()},$=()=>{E([...w,{count:12,label:"Jun 1 â Jun 30, 2026",days:30,amount:"564 â¬"}]),n()},q=()=>{E([]),n()},M=()=>{h(pf),y(!1),E([{count:18,label:"Jun 1 â Jun 28, 2026",days:28,amount:"846 â¬"},{count:9,label:"Jun 10 â Jun 15, 2026",days:6,amount:"423 â¬"}]),S(Object.fromEntries(mf.map(U=>[U.key,["instagram","tiktok","linkbio"].includes(U.key)]))),P({desktop:!0,mobile:!0,tablet:!1}),T(Object.fromEntries(gf.map(U=>[U.key,["fr","uk","us"].includes(U.key)]))),n()};return l.jsxs("div",{className:"relative w-[380px] max-w-full rounded-2xl bg-black border border-white/10 overflow-hidden shadow-[0_30px_80px_-20px_rgba(94,81,236,0.5)]",style:{fontFamily:"Inter, system-ui, sans-serif"},children:[l.jsx("div",{className:"pointer-events-none absolute -top-20 -right-20 w-64 h-64 roun
308ded-full bg-[#5e51ec]/30 blur-3xl"}),l.jsxs("div",{className:"relative flex items-center gap-3 px-5 pt-5 pb-4",children:[l.jsx("div",{className:"h-10 w-10 rounded-[11px] overflow-hidden",children:l.jsx("img",{src:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/f2467a389_logo.png",alt:"Codir",className:"h-full w-full object-cover"})}),l.jsxs("div",{className:"flex-1",children:[l.jsx("div",{className:"text-white font-bold text-[19px] leading-tight",style:{fontFamily:"Space Grotesk, sans-serif"},children:"Codir · Beacons"}),l.jsx("div",{className:"text-[11px] text-white/50",children:"v2.0.0 · digital product dashboards"})]}),l.jsxs("button",{onClick:n,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-red-500/15 text-red-400 hover:bg-red-500/25 transition text-xs font-semibold",children:[l.jsx(Nc,{className:"h-3.5 w-3.5"}),"Logout"]})]}),l.jsxs("div",{className:"px-4 pb-4 space-y-2",children:[l.jsxs("div",{className:"bg-[#0c0c10] border border-white/[0.06] rounded-2xl px-4 py-3 flex items-center justify-between gap-3",children:[l.jsx("div",{className:"min-w-0",children:l.jsx("div",{className:"text-sm text-white font-semibold",children:"Enable extension"})}),l.jsx(rv,{on:r,onToggle:()=>o(!r)})]}),l.jsxs("div",{className:"bg-[#0c0c10] border border-white/[0.06] rounded-2xl px-4 py-3 flex items-center justify-between gap-3",children:[l.jsxs("div",{className:"min-w-0",children:[l.jsx("div",{className:"text-sm text-white font-semibold",children:"âï¸ Edit mode"}),l.jsx("div",{className:"text-[11px] text-white/50",children:"Edit each transaction (Digital Product Sales)"})]}),l.jsx(rv,{on:c,onToggle:()=>u(!c)})]}),l.jsx("div",{className:"bg-[#0c0c10] border border-white/[0.06] rounded-2xl p-[5px] grid grid-cols-3 gap-1",children:Z3.map(({key:U,label:Z,Icon:pe})=>{const je=e===U;return l.jsxs("button",{onClick:()=>t(U),className:`flex flex-col items-center gap-1 py-2 rounded-xl transition-all ${je?"bg-gradient-to-b from-[#5e51ec] to-[#4a3fd4] shadow-lg shadow-[#5e51ec]/40":"hover:bg-white/[0.04]"}`,children:[l.jsx(pe,{className:`h-[17px] w-[17px] transition ${je?"text-white scale-110":"text-white/55"}`,strokeWidth:2}),l.jsx("span",{className:`text-[10px] font-bold ${je?"text-white":"text-white/55"}`,children:Z})]},U)})}),l.jsxs("div",{className:"bg-[#0c0c10] border border-white/[0.06] rounded-2xl p-4 max-h-[420px] overflow-y-auto",children:[e==="sales"&&l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{children:[l.jsx(Sr,{children:"Your products & sales"}),l.jsxs("button",{onClick:I,className:"w-full mb-2 bg-[#5e51ec] hover:bg-[#6d61f0] text-white rounded-full py-2 text-xs font-semibold transition shadow-lg shadow-[#5e51ec]/30 flex items-center justify-center gap-1.5",children:[l.jsx(Ck,{className:"h-3.5 w-3.5"}),"Import my products"]}),l.jsxs("p",{className:"text-[11px] text-white/45 mb-2.5 leading-relaxed",children:["Click ",l.jsx("span",{className:"text-white/80 font-semibold",children:"Import my products"})," â we open your store and load them with their real prices. Then just set how many sales each one made."]}),l.jsx("div",{className:"space-y-1.5",children:f.map((U,Z)=>l.jsxs("div",{className:"flex items-center gap-2 bg-[#14141a] border border-white/[0.06] rounded-xl px-3 py-2",children:[l.jsxs("div",{className:"min-w-0 flex-1",children:[l.jsxs("div",{className:"text-sm text-white font-semibold truncate",children:[U.name," â ",l.jsx("span",{className:"text-[#a99dff]",children:U.price})]}),l.jsx("div",{className:"text-[10px] text-white/40",children:U.type})]}),l.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[l.jsx("input",{type:"number",min:"0",value:U.sales,onChange:pe=>{const je=Math.max(0,parseInt(pe.target.value||"0",10));h(f.map((Te,Ce)=>Ce===Z?{...Te,sales:je}:Te))},className:"w-14 bg-black/40 border border-white/[0.08] rounded-md px-2 py-1 text-white text-xs text-center outline-none focus:border-[#5e51ec]/50"}),l.jsx("span",{className:"text-[10px] text-white/40",children:"sales"})]}),l.jsx("button",{onClick:n,className:"h-6 w-6 rounded-md bg-red-500/10 hover:bg-red-500/25 text-red-400 flex items-center justify-center transition shrink-0",children:l.jsx(kn,{className:"h-3 w-3"})})]},U.name))})]}),l.jsxs("div",{children:[l.jsx(Sr,{children:"Currency"}),l.jsx("select",{className:vi+" cursor-pointer",children:tO.map(U=>l.jsx("option",{className:"bg-black",children:U},U))})]}),l.jsxs("div",{children:[l.jsx(Sr,{children:"When did the sales happen?"}),l.jsxs("div",{className:"grid grid-cols-2 gap-1.5 mb-3 bg-[#14141a] border border-white/[0.06] rounded-lg p-1",children:[l.jsx("button",{onClick:()=>v("days"),className:`py-1.5 rounded-md text-[11px] font-semibold transition ${x==="days"?"bg-[#5e51ec] text-white":"text-white/60 hover:text-white"}`,children:"Spread over last N days"}),l.jsx("button",{onClick:()=>v("range"),className:`py-1.5 rounded-md text-[11px] font-semibold transition ${x==="range"?"bg-[#5e51ec] text-white":"text-white/60 hover:text-white"}`,children:"Specific date range"})]}),x==="days"?l.jsx(Go,{label:"Last (days)",children:l.jsx("input",{type:"number",defaultValue:"30",className:vi})}):l.jsx(Go,{label:"Pick the dates (click start then end · same day = one day)",children:l.jsx("input",{readOnly:!0,placeholder:"Select datesâ¦",defaultValue:"Jun 1 â Jun 28, 2026",className:vi+" cursor-pointer"})}),l.jsxs("div",{className:"grid grid-cols-[1fr_auto] gap-2 mt-2",children:[l.jsxs("button",{onClick:$,className:"bg-[#5e51ec] hover:bg-[#6d61f0] text-white rounded-lg py-2 text-sm font-semibold transition shadow-lg shadow-[#5e51ec]/30 flex items-center justify-center gap-1.5",children:[l.jsx(tr,{className:"h-3.5 w-3.5",
308strokeWidth:3}),"Generate sales"]}),l.jsx("button",{onClick:q,className:"bg-white/[0.04] hover:bg-white/[0.08] border border-white/10 text-white/70 hover:text-white rounded-lg px-3 text-xs font-semibold transition",children:"Clear all"})]})]}),l.jsxs("div",{children:[l.jsx(Sr,{pill:`${w.length} ${w.length===1?"batch":"batches"}`,children:"Generated batches"}),l.jsxs("p",{className:"text-[11px] text-white/45 mb-2 leading-relaxed",children:["Each click on ",l.jsx("span",{className:"text-white/80 font-semibold",children:"Generate sales"})," adds a batch â it ",l.jsx("span",{className:"text-white/80 font-semibold",children:"stacks"}),", it doesn't replace. The total shown on Beacons = sum of all batches."]}),w.length===0?l.jsx("div",{className:"text-center py-4 text-xs text-white/30 border border-dashed border-white/10 rounded-lg",children:"No batches yet"}):l.jsx("div",{className:"space-y-1.5",children:w.map((U,Z)=>l.jsxs("div",{className:"flex items-center gap-2 bg-[#14141a] border border-white/[0.06] rounded-xl px-3 py-2",children:[l.jsxs("div",{className:"min-w-0 flex-1",children:[l.jsxs("div",{className:"text-sm text-white font-semibold",children:[U.count," sales · ",l.jsx("span",{className:"text-[#a99dff]",children:U.amount})]}),l.jsxs("div",{className:"text-[10px] text-white/40",children:[U.label," · ",U.days," days"]})]}),l.jsx("button",{onClick:()=>{E(w.filter((pe,je)=>je!==Z)),n()},className:"h-6 w-6 rounded-md bg-red-500/10 hover:bg-red-500/25 text-red-400 flex items-center justify-center transition shrink-0",children:l.jsx(kn,{className:"h-3 w-3"})})]},Z))})]})]}),e==="payouts"&&l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{children:[l.jsx(Sr,{children:"Commissions"}),l.jsx("p",{className:"text-[11px] text-white/45 mb-2.5 leading-relaxed",children:"Extra revenue on top of your direct sales, as a % of total sales. Shown on the Payouts page (Affiliate / Referral Cash Out) and added to Total Payouts. Leave at 0 if you don't want any."}),l.jsx(Go,{label:"Affiliate â % of sales",children:l.jsxs("div",{className:"relative",children:[l.jsx("input",{type:"number",defaultValue:"0",className:vi+" pr-8"}),l.jsx("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-xs text-white/40",children:"%"})]})}),l.jsx(Go,{label:"Referral â % of sales",children:l.jsxs("div",{className:"relative",children:[l.jsx("input",{type:"number",defaultValue:"0",className:vi+" pr-8"}),l.jsx("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-xs text-white/40",children:"%"})]})})]}),l.jsxs("div",{children:[l.jsx(Sr,{children:"Payment methods"}),l.jsx("div",{className:"grid grid-cols-2 gap-2 mb-2.5",children:nO.map(U=>l.jsxs("div",{className:"relative flex flex-col items-center justify-center gap-1.5 bg-[#14141a] border border-[#5e51ec]/40 rounded-xl px-3 py-3",children:[l.jsx(tr,{className:"h-3 w-3 text-[#a99dff] absolute top-2 right-2",strokeWidth:3}),l.jsx("img",{src:U.logo,alt:U.label,className:"h-5 object-contain"}),l.jsx("span",{className:"text-[11px] text-white font-semibold",children:U.label})]},U.key))}),l.jsx("p",{className:"text-[11px] text-white/45 leading-relaxed",children:"Each sale becomes a payout sent to one of the selected methods. Commissions show on the Payouts KPIs."})]}),l.jsxs("button",{onClick:n,className:"w-full bg-[#5e51ec] hover:bg-[#6d61f0] text-white rounded-lg py-2.5 text-sm font-semibold transition shadow-lg shadow-[#5e51ec]/30 flex items-center justify-center gap-1.5",children:[l.jsx(Sy,{className:"h-4 w-4"}),"Save payouts"]})]}),e==="stats"&&l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{children:[l.jsx(Sr,{children:"Traffic & conversion"}),l.jsx(Go,{label:"Conversion rate (%) â orders ÷ views",children:l.jsx("input",{type:"number",defaultValue:"3.3",step:"0.1",className:vi})})]}),l.jsxs("div",{children:[l.jsx("label",{className:"text-[11px] text-white/60 block mb-1.5",children:"Traffic sources (used for each sale)"}),l.jsx("div",{className:"flex flex-wrap gap-1.5",children:mf.map(U=>l.jsx(yf,{on:j[U.key],label:U.label,color:U.color,short:U.short,onToggle:()=>{S({...j,[U.key]:!j[U.key]}),n()}},U.key))})]}),l.jsxs("div",{children:[l.jsx("label",{className:"text-[11px] text-white/60 block mb-1.5",children:"Devices (customer devices)"}),l.jsx("div",{className:"flex flex-wrap gap-1.5",children:sO.map(U=>l.jsx(yf,{on:_[U.key],label:U.label,color:U.color,short:U.short,onToggle:()=>{P({..._,[U.key]:!_[U.key]}),n()}},U.key))})]}),l.jsxs("div",{children:[l.jsx("label",{className:"text-[11px] text-white/60 block mb-1.5",children:"Customer countries"}),l.jsx("div",{className:"flex flex-wrap gap-1.5",children:gf.map(U=>l.jsx(yf,{on:C[U.key],label:U.label,flag:U.flag,onToggle:()=>{T({...C,[U.key]:!C[U.key]}),n()}},U.key))}),l.jsx("p",{className:"text-[11px] text-white/45 leading-relaxed mt-2",children:"Views are derived from your sales and conversion rate. Sources are spread across the sales (orders table + analytics)."})]}),l.jsxs("button",{onClick:n,className:"w-full bg-[#5e51ec] hover:bg-[#6d61f0] text-white rounded-lg py-2.5 text-sm font-semibold transition shadow-lg shadow-[#5e51ec]/30 flex items-center justify-center gap-1.5",children:[l.jsx(Sy,{className:"h-4 w-4"}),"Save stats"]})]})]}),l.jsxs("button",{onClick:M,className:"w-full bg-white/[0.03] hover:bg-white/[0.06] border border-white/10 text-white/60 hover:text-white rounded-lg py-2 text-xs font-semibold transition flex items-center justify-center gap-1.5",children:[l.jsx(bf,{className:"h-3.5 w-3.5"}),"Reset everything"]}),l.jsxs("div",{className:"flex items-center justify-center gap-3 pt-1 pb-1 text-[11px] text-white/40",children:[l.jsxs("span",{className:"flex items-center gap-1 hover:text-[#a99dff] transition cursor-pointer",children:[l.jsx(Wi,{className:"h-3 w-3"}),"Stealth mode"]}),l.jsx("span",{children:"·"}),l.jsx("a",{href:"#",className:"hover:text-[#a99dff] transition",children:"Support"})]})]})]})}const iO=[{key:"visits",label:"Visits",Icon:Nk},{key:"sales",label:"Sales",Icon:ej},{key:"orders",label:"Orders",Icon:Ak},{key:"products",label:"Products",Icon:Uk},{key:"live",label:"Live",Icon:Hk}],oO=["⬠EUR","US$ USD","£ GBP","CA$ CAD","A$ AUD","CHF"],aO=["ðºð¸ English","ð«ð· Français"],lO=[{key:"random",label:"ð² Random spikes"},{key:"flat",label:"â Flat"},{key:"growing",label:"â Growing"},{key:"declining",label:"â Declining"},{key:"peak",label:"â° Peak"}],cO=[{name:"T-shirt",price:"24,90 â¬",img:"https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?w=80&h=80&fit=crop"},{name:"Mug",price:"12,00 â¬",img:"https://images.unsplash.com/photo-1514228742587-6b1558fcca3d?w=80&h=80&fit=crop"},{name:"Tote bag",price:"18,00 â¬",img:"https://images.unsplash.com/photo-1591561954557-26941169b49e?w=80&h=80&fit=crop"}],He="w-full bg-[#14141a] border border-white/[0.06] rounded-lg px-3 py-2 text-white text-sm outline-none focus:border-[#5e51ec]/50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none";function uO({on:e,onToggle:t}){return l.jsx("button",{onClick:t,className:`relative h-6 w-11 rounded-full transition shrink-0 ${e?"bg-[#5e51ec]":"bg-white/10"}`,children:l.jsx("span",{className:`absolute top-0.5 h-5 w-5 rounded-full bg-white transition-all ${e?"left-[22px]":"left-0.5"}`})})}function Dt({children:e,pill:t}){return l.jsxs("div",{className:"flex items-center justify-between mb-2",children:[l.jsx("div",{className:"text-[10px] uppercase tracking-widest text-white/40 font-bold",children:e}),t&&l.jsx("span",{className:"text-[9px] uppercase tracking-wider font-bold text-[#a99dff] bg-[#5e51ec]/15 border border-[#5e51ec]/25 px-2 py-0.5 rounded-full",children:t})]})}function Qe({label:e,children:t}){return l.jsxs("div",{className:"mb-2.5",children:[l.jsx("label",{className:"text-[11px] text-white/60 block mb-1.5",children:e}),t]})}function On({children:e}){return l.jsx("p",{className:"text-[11px] text-white/45 leading-relaxed",children:e})}
308function iv({value:e,onChange:t}){return l.jsx("select",{value:e,onChange:n=>t(n.target.value),className:He+" cursor-pointer",children:lO.map(n=>l.jsx("option",{value:n.key,className:"bg-black",children:n.label},n.key))})}function dO({activeTab:e,setActiveTab:t,onAction:n}){const[r,o]=k.useState(!0),[c,u]=k.useState("random"),[f,h]=k.useState(cO),[p,y]=k.useState([{from:"Jun 1, 2026",to:"Jun 28, 2026",total:4820}]),[x,v]=k.useState([{product:"T-shirt",from:"Jun 1, 2026",to:"Jun 28, 2026",count:36}]),[w,E]=k.useState([{country:"France",city:"Paris",share:60},{country:"France",city:"Lyon",share:25},{country:"Belgium",city:"Brussels",share:15}]),[j,S]=k.useState([{country:"France",region:"Ãle-de-France",city:"Paris",share:50},{country:"France",region:"Auvergne-Rhône-Alpes",city:"Lyon",share:30},{country:"Belgium",region:"Brussels",city:"Brussels",share:20}]),[_,P]=k.useState(45),[C,T]=k.useState(3),[I,$]=k.useState(60);return l.jsxs("div",{className:"relative w-[380px] max-w-full rounded-2xl bg-black border border-white/10 overflow-hidden shadow-[0_30px_80px_-20px_rgba(94,81,236,0.5)]",style:{fontFamily:"Inter, system-ui, sans-serif"},children:[l.jsx("div",{className:"pointer-events-none absolute -top-20 -right-20 w-64 h-64 rounded-full bg-[#5e51ec]/30 blur-3xl"}),l.jsxs("div",{className:"relative flex items-center gap-3 px-5 pt-5 pb-4",children:[l.jsx("div",{className:"h-10 w-10 rounded-[11px] overflow-hidden",children:l.jsx("img",{src:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/f2467a389_logo.png",alt:"Codir",className:"h-full w-full object-cover"})}),l.jsxs("div",{className:"flex-1",children:[l.jsx("div",{className:"text-white font-bold text-[19px] leading-tight",style:{fontFamily:"Space Grotesk, sans-serif"},children:"Codir · Shopify"}),l.jsx("div",{className:"text-[11px] text-white/50",children:"v1.0.0 · admin dashboard"})]}),l.jsxs("button",{onClick:n,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-red-500/15 text-red-400 hover:bg-red-500/25 transition text-xs font-semibold",children:[l.jsx(Nc,{className:"h-3.5 w-3.5"}),"Logout"]})]}),l.jsxs("div",{className:"px-4 pb-4 space-y-2",children:[l.jsxs("div",{className:"bg-[#0c0c10] border border-white/[0.06] rounded-2xl px-4 py-3 flex items-center justify-between gap-3",children:[l.jsx("div",{className:"text-sm text-white font-semibold",children:"Enable extension"}),l.jsx(uO,{on:r,onToggle:()=>o(!r)})]}),l.jsxs("div",{className:"bg-[#0c0c10] border border-white/[0.06] rounded-2xl p-3 grid grid-cols-2 gap-2",children:[l.jsxs("div",{children:[l.jsx("label",{className:"text-[10px] uppercase tracking-widest text-white/40 font-bold block mb-1.5",children:"Currency"}),l.jsx("select",{className:He+" cursor-pointer",children:oO.map(q=>l.jsx("option",{className:"bg-black",children:q},q))})]}),l.jsxs("div",{children:[l.jsx("label",{className:"text-[10px] uppercase tracking-widest text-white/40 font-bold block mb-1.5",children:"Language"}),l.jsx("select",{className:He+" cursor-pointer",children:aO.map(q=>l.jsx("option",{className:"bg-black",children:q},q))})]})]}),l.jsxs("div",{className:"bg-[#0c0c10] border border-white/[0.06] rounded-2xl px-4 py-2.5 flex items-center gap-2",children:[l.jsx("span",{className:"h-2 w-2 rounded-full bg-green-400 animate-pulse"}),l.jsx("span",{className:"text-[11px] text-white/60",children:"Connected · admin.shopify.com/store/demo"})]}),l.jsx("div",{className:"bg-[#0c0c10] border border-white/[0.06] rounded-2xl p-[5px] grid grid-cols-5 gap-1",children:iO.map(({key:q,label:M,Icon:U})=>{const Z=e===q;return l.jsxs("button",{onClick:()=>t(q),className:`flex flex-col items-center gap-1 py-2 rounded-xl transition-all ${Z?"bg-gradient-to-b from-[#5e51ec] to-[#4a3fd4] shadow-lg shadow-[#5e51ec]/40":"hover:bg-white/[0.04]"}`,children:[l.jsx(U,{className:`h-[15px] w-[15px] transition ${Z?"text-white scale-110":"text-white/55"}`,strokeWidth:2}),l.jsx("span",{className:`text-[9px] font-bold ${Z?"text-white":"text-white/55"}`,children:M})]},q)})}),l.jsxs("div",{className:"bg-[#0c0c10] border border-white/[0.06] rounded-2xl p-4 max-h-[420px] overflow-y-auto",children:[e==="visits"&&l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{children:[l.jsx(Dt,{children:"Visits â add periods"}),l.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[l.jsx(Qe,{label:"From",children:l.jsx("input",{readOnly:!0,defaultValue:"Jun 1, 2026",className:He})}),l.jsx(Qe,{label:"To",children:l.jsx("input",{readOnly:!0,defaultValue:"Jun 28, 2026",className:He})})]}),l.jsx(Qe,{label:"Total visits",children:l.jsx("input",{type:"number",defaultValue:"4820",className:He})}),l.jsx(Qe,{label:"Distribution",children:l.jsx(iv,{value:c,onChange:u})}),l.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[l.jsx(Qe,{label:"From time (optional)",children:l.jsx("input",{placeholder:"09:00",className:He})}),l.jsx(Qe,{label:"To time (optional)",children:l.jsx("input",{placeholder:"18:00",className:He})})]}),l.jsx(On,{children:"Leave hours empty to spread visits randomly across the day. Fill them to concentrate visits within that slot."}),l.jsxs("button",{onClick:n,className:"mt-2 w-full bg-[#5e51ec] hover:bg-[#6d61f0] text-white rounded-lg py-2 text-sm font-semibold transition shadow-lg shadow-[#5e51ec]/30 flex items-center justify-center gap-1.5",children:[l.jsx(Br,{className:"h-3.5 w-3.5",
308strokeWidth:3})," Add period"]})]}),l.jsxs("div",{children:[l.jsx(Dt,{pill:`${p.length}`,children:"My visit periods"}),l.jsx("div",{className:"space-y-1.5",children:p.map((q,M)=>l.jsxs("div",{className:"flex items-center gap-2 bg-[#14141a] border border-white/[0.06] rounded-xl px-3 py-2",children:[l.jsxs("div",{className:"min-w-0 flex-1",children:[l.jsxs("div",{className:"text-sm text-white font-semibold",children:[q.total.toLocaleString()," visits"]}),l.jsxs("div",{className:"text-[10px] text-white/40",children:[q.from," â ",q.to]})]}),l.jsx("button",{onClick:()=>{y(p.filter((U,Z)=>Z!==M)),n()},className:"h-6 w-6 rounded-md bg-red-500/10 hover:bg-red-500/25 text-red-400 flex items-center justify-center transition",children:l.jsx(kn,{className:"h-3 w-3"})})]},M))})]}),l.jsxs("div",{children:[l.jsx(Dt,{children:"Device split"}),l.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[l.jsx(Qe,{label:"Desktop %",children:l.jsx("input",{type:"number",defaultValue:"30",className:He})}),l.jsx(Qe,{label:"Mobile %",children:l.jsx("input",{type:"number",defaultValue:"65",className:He})}),l.jsx(Qe,{label:"Tablet %",children:l.jsx("input",{type:"number",defaultValue:"5",className:He})})]}),l.jsx("button",{onClick:n,className:"w-full bg-[#5e51ec]/15 hover:bg-[#5e51ec]/25 border border-[#5e51ec]/40 text-[#a99dff] rounded-lg py-2 text-xs font-semibold transition",children:"Save device split"})]}),l.jsxs("div",{children:[l.jsx(Dt,{pill:`${w.length}`,children:"Locations"}),l.jsx("div",{className:"space-y-1.5 mb-2",children:w.map((q,M)=>l.jsxs("div",{className:"flex items-center gap-2 bg-[#14141a] border border-white/[0.06] rounded-xl px-3 py-2",children:[l.jsxs("div",{className:"min-w-0 flex-1",children:[l.jsxs("div",{className:"text-sm text-white font-semibold",children:[q.country," · ",q.city]}),l.jsxs("div",{className:"text-[10px] text-white/40",children:["Share ",q.share]})]}),l.jsx("button",{onClick:()=>{E(w.filter((U,Z)=>Z!==M)),n()},className:"h-6 w-6 rounded-md bg-red-500/10 hover:bg-red-500/25 text-red-400 flex items-center justify-center transition",children:l.jsx(kn,{className:"h-3 w-3"})})]},M))}),l.jsx(On,{children:"Share is a relative size â values do NOT need to add up to 100. Top 5 are shown, like Shopify."})]}),l.jsxs("div",{children:[l.jsx(Dt,{children:"Customers page"}),l.jsx(Qe,{label:"Number of customers",children:l.jsx("input",{type:"number",value:I,onChange:q=>$(parseInt(q.target.value||"0",10)),className:He})}),l.jsx(On,{children:"How many fake customers to show on the Customers page. Names + cities follow your Locations shares."})]})]}),e==="sales"&&l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{children:[l.jsx(Dt,{children:"Sales â add periods"}),l.jsx(Qe,{label:"Product",children:l.jsx("select",{className:He+" cursor-pointer",children:f.map(q=>l.jsxs("option",{className:"bg-black",children:[q.name," â ",q.price]},q.name))})}),l.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[l.jsx(Qe,{label:"From",children:l.jsx("input",{readOnly:!0,defaultValue:"Jun 1, 2026",className:He})}),l.jsx(Qe,{label:"To",children:l.jsx("input",{readOnly:!0,defaultValue:"Jun 28, 2026",className:He})})]}),l.jsx(Qe,{label:"Number of sales",children:l.jsx("input",{type:"number",defaultValue:"36",className:He})}),l.jsx(Qe,{label:"Distribution",children:l.jsx(iv,{value:c,onChange:u})}),l.jsxs("button",{onClick:n,className:"mt-2 w-full bg-[#5e51ec] hover:bg-[#6d61f0] text-white rounded-lg py-2 text-sm font-semibold transition shadow-lg shadow-[#5e51ec]/30 flex items-center justify-center gap-1.5",children:[l.jsx(Br,{className:"h-3.5 w-3.5",strokeWidth:3})," Add sales period"]}),l.jsx(On,{children:"Pick a product and how many units to sell. Total ⬠= sales à unit price. Each unit also counts as 1 order."})]}),l.jsxs("div",{children:[l.jsx(Dt,{pill:`${x.length}`,children:"My sales periods"}),l.jsx("div",{className:"space-y-1.5",children:x.map((q,M)=>l.jsxs("div",{className:"flex items-center gap-2 bg-[#14141a] border border-white/[0.06] rounded-xl px-3 py-2",children:[l.jsxs("div",{className:"min-w-0 flex-1",children:[l.jsxs("div",{className:"text-sm text-white font-semibold",children:[q.product," · ",q.count," sales"]}),l.jsxs("div",{className:"text-[10px] text-white/40",children:[q.from," â ",q.to]})]}),l.jsx("button",{onClick:()=>{v(x.filter((U,Z)=>Z!==M)),n()},className:"h-6 w-6 rounded-md bg-red-500/10 hover:bg-red-500/25 text-red-400 flex items-center justify-center transition",children:l.jsx(kn,{className:"h-3 w-3"})})]},M))})]}
308),l.jsxs("div",{children:[l.jsx(Dt,{children:"Real-Shopify formula"}),l.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[l.jsx(Qe,{label:"Tax (TVA) %",children:l.jsx("input",{type:"number",defaultValue:"20",className:He})}),l.jsx(Qe,{label:"Shipping â¬",children:l.jsx("input",{type:"number",defaultValue:"4.99",step:"0.01",className:He})}),l.jsx(Qe,{label:"Discount â¬",children:l.jsx("input",{type:"number",defaultValue:"0",className:He})})]}),l.jsx(Qe,{label:"Price mode",children:l.jsxs("select",{className:He+" cursor-pointer",children:[l.jsx("option",{className:"bg-black",children:"TTC (tax included)"}),l.jsx("option",{className:"bg-black",children:"HT (tax excluded)"})]})}),l.jsx(On,{children:"Total = gross + taxes + shipping â discounts (Shopify's exact formula)."})]})]}),e==="orders"&&l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"bg-[#14141a] border border-white/[0.06] rounded-xl p-3 flex items-start gap-3",children:[l.jsx("div",{className:"h-8 w-8 rounded-lg bg-[#5e51ec]/15 border border-[#5e51ec]/30 flex items-center justify-center text-base shrink-0",children:"ð§®"}),l.jsxs("div",{className:"min-w-0",children:[l.jsx("div",{className:"text-sm text-white font-semibold mb-0.5",children:"Orders are auto-derived"}),l.jsx(On,{children:"Each sale you add in the Sales tab counts as 1 order. Nothing to configure here."})]})]}),l.jsxs("div",{children:[l.jsx(Dt,{children:"Current order count"}),l.jsxs("div",{className:"bg-[#14141a] border border-white/[0.06] rounded-xl px-3 py-3 text-center",children:[l.jsx("div",{className:"text-3xl font-bold text-white",style:{fontFamily:"Space Grotesk, sans-serif"},children:"36"}),l.jsx("div",{className:"text-[10px] text-white/40 uppercase tracking-widest mt-1",children:"from your sales"})]})]}),l.jsxs("div",{children:[l.jsx(Dt,{children:"Fake orders list"}),l.jsx(On,{children:"How many fake orders to inject in the Orders table. They use your imported products + customer names, spread over the last 30 days."}),l.jsx(Qe,{label:"Number of orders",children:l.jsx("input",{type:"number",value:_,onChange:q=>P(parseInt(q.target.value||"0",10)),className:He})})]}),l.jsxs("div",{children:[l.jsx(Dt,{children:"Unfulfilled orders badge"}),l.jsx(On,{children:"The little pill next to Orders in the left menu = orders still to fulfill. Set to 0 to hide the pill."}),l.jsx(Qe,{label:"Orders to fulfill",children:l.jsx("input",{type:"number",value:C,onChange:q=>T(parseInt(q.target.value||"0",10)),className:He})})]})]}),e==="products"&&l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{children:[l.jsx(Dt,{children:"Step 1 â open your products page"}),l.jsx(On,{children:"Detecting current tabâ¦"}),l.jsx("button",{onClick:n,className:"mt-2 w-full bg-[#5e51ec] hover:bg-[#6d61f0] text-white rounded-lg py-2.5 text-sm font-semibold transition shadow-lg shadow-[#5e51ec]/30 flex items-center justify-center gap-1.5",children:"ð Open my Shopify products page"}),l.jsx("p",{className:"text-[11px] text-white/45 mt-2 leading-relaxed",children:"Once on that page, the extension will detect every product and import them automatically (name, price, image)."})]}),l.jsxs("div",{children:[l.jsx(Dt,{pill:`${f.length}`,children:"Step 2 â imported products"}),l.jsx("div",{className:"space-y-1.5",children:f.map((q,M)=>l.jsxs("div",{className:"flex items-center gap-2 bg-[#14141a] border border-white/[0.06] rounded-xl px-3 py-2",children:[l.jsx("img",{src:q.img,alt:"",className:"h-9 w-9 rounded-md object-cover shrink-0"}),l.jsxs("div",{className:"min-w-0 flex-1",children:[l.jsx("div",{className:"text-sm text-white font-semibold truncate",children:q.name}),l.jsx("div",{className:"text-[10px] text-[#a99dff]",children:q.price})]}),l.jsx("button",{onClick:()=>{h(f.filter((U,Z)=>Z!==M)),n()},className:"h-6 w-6 rounded-md bg-red-500/10 hover:bg-red-500/25 text-red-400 flex items-center justify-center transition shrink-0",children:l.jsx(kn,{className:"h-3 w-3"})})]},q.name))}),l.jsxs("button",{onClick:()=>{h([]),n()},className:"mt-2 w-full bg-white/[0.04] hover:bg-white/[0.08] border border-white/10 text-white/70 hover:text-white rounded-lg py-2 text-xs font-semibold transition flex items-center justify-center gap-1.5",children:[l.jsx(bf,{className:"h-3 w-3"})," Clear imported products"]})]}),l.jsxs("div",{children:[l.jsx(Dt,{children:"How it works"}),l.jsx(On,{children:"Once you have products imported AND you configure Visits + Conversion, the extension auto-generates Orders (= visits à conversion) and Sales (each order picks random products from your list)."})]})]}),e==="live"&&l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{children:[l.jsx(Dt,{children:"Live View â locations shown"}),l.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[l.jsx(Qe,{label:"Country",children:l.jsx("input",{placeholder:"France",className:He})}),l.jsx(Qe,{label:"Region",children:l.jsx("input",{placeholder:"Ãle-de-France",className:He})}),l.jsx(Qe,{label:"City",children:l.jsx("input",{placeholder:"Paris",className:He})})]}),l.jsx(Qe,{label:"Share %",children:l.jsx("input",{type:"number",defaultValue:"50",className:He})}),l.jsxs("button",{onClick:n,className:"w-full bg-[#5e51ec] hover:bg-[#6d61f0] text-white rounded-lg py-2 text-sm font-semibold transition shadow-lg shadow-[#5e51ec]/30 flex items-center justify-center gap-1.5",children:[l.jsx(Br,{className:"h-3.5 w-3.5",
308strokeWidth:3})," Add location"]}),l.jsx("button",{onClick:n,className:"mt-1.5 w-full bg-white/[0.04] hover:bg-white/[0.08] border border-white/10 text-white/70 hover:text-white rounded-lg py-2 text-xs font-semibold transition",children:"⨠Auto-fill cities from my countries"})]}),l.jsxs("div",{children:[l.jsx(Dt,{pill:`${j.length}`,children:"My live locations"}),l.jsx("div",{className:"space-y-1.5",children:j.map((q,M)=>l.jsxs("div",{className:"flex items-center gap-2 bg-[#14141a] border border-white/[0.06] rounded-xl px-3 py-2",children:[l.jsxs("div",{className:"min-w-0 flex-1",children:[l.jsxs("div",{className:"text-sm text-white font-semibold truncate",children:[q.country," · ",q.region," · ",q.city]}),l.jsxs("div",{className:"text-[10px] text-white/40",children:["Share ",q.share]})]}),l.jsx("button",{onClick:()=>{S(j.filter((U,Z)=>Z!==M)),n()},className:"h-6 w-6 rounded-md bg-red-500/10 hover:bg-red-500/25 text-red-400 flex items-center justify-center transition",children:l.jsx(kn,{className:"h-3 w-3"})})]},M))}),l.jsx(On,{children:"Leave empty to auto-generate cities from your Visits â Locations. Top 3 are displayed, like Shopify."})]}),l.jsxs("div",{className:"grid grid-cols-[1fr_auto] gap-2",children:[l.jsxs("button",{onClick:n,className:"bg-[#5e51ec] hover:bg-[#6d61f0] text-white rounded-lg py-2 text-sm font-semibold transition shadow-lg shadow-[#5e51ec]/30 flex items-center justify-center gap-1.5",children:[l.jsx(tr,{className:"h-3.5 w-3.5",strokeWidth:3})," Apply"]}),l.jsxs("button",{onClick:n,className:"bg-white/[0.04] hover:bg-white/[0.08] border border-white/10 text-white/70 hover:text-white rounded-lg px-3 text-xs font-semibold transition flex items-center gap-1",children:[l.jsx(bf,{className:"h-3 w-3"})," Reset"]})]})]})]}),l.jsxs("div",{className:"flex items-center justify-center gap-3 pt-1 pb-1 text-[11px] text-white/40",children:[l.jsxs("span",{className:"flex items-center gap-1 hover:text-[#a99dff] transition cursor-pointer",children:[l.jsx(Wi,{className:"h-3 w-3"}),"Stealth mode"]}),l.jsx("span",{children:"·"}),l.jsx("a",{href:"#",className:"hover:text-[#a99dff] transition",children:"Support"})]})]})]})}const fO=[{key:"payments",label:"Payments",Icon:Pv},{key:"customers",label:"Customers",Icon:aj},{key:"payouts",label:"Payouts",Icon:mh},{key:"scenario",label:"Scenario",Icon:xk},{key:"data",label:"Data",Icon:kk}],xf={succeeded:"Succeeded",refunded:"Refunded",failed:"Failed",uncaptured:"Uncaptured",blocked:"Blocked"},hO={succeeded:"bg-green-500/15 text-green-400",refunded:"bg-white/10 text-white/60",uncaptured:"bg-white/10 text-white/60",failed:"bg-red-500/15 text-red-400",blocked:"bg-red-500/15 text-red-400"},pO=[{id:1,amount:149,currency:"eur",status:"succeeded",customer:"[email protected]",date:"Sep 14, 10:12 AM",card:"Visa â¢â¢â¢â¢ 4242"},{id:2,amount:89,currency:"eur",status:"succeeded",customer:"[email protected]",date:"Sep 13, 6:40 PM",card:"CB â¢â¢â¢â¢ 0318"},{id:3,amount:49,currency:"eur",status:"refunded",customer:"[email protected]",date:"Sep 12, 2:05 PM",card:"Mastercard â¢â¢â¢â¢ 7710"},{id:4,amount:299,currency:"eur",status:"failed",customer:"[email protected]",date:"Sep 11, 9:30 AM",card:"Visa â¢â¢â¢â¢ 1007"}],bi=(e,t="eur")=>new Intl.NumberFormat("en-GB",{style:"currency",currency:t.toUpperCase()}).format(e||0),St="w-full bg-[#14141a] border border-white/[0.06] rounded-lg px-3 py-2 text-white text-sm outline-none focus:border-[#5e51ec]/50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none";function mO({on:e,onToggle:t}){return l.jsx("button",{onClick:t,className:`relative h-6 w-11 rounded-full transition shrink-0 ${e?"bg-[#5e51ec]":"bg-white/10"}`,children:l.jsx("span",{className:`absolute top-0.5 h-5 w-5 rounded-full bg-white transition-all ${e?"left-[22px]":"left-0.5"}`})})}function qn({children:e,pill:t}){return l.jsxs("div",{className:"flex items-center justify-between mb-2",children:[l.jsx("div",{className:"text-[10px] uppercase tracking-widest text-white/40 font-bold",children:e}),t&&l.jsx("span",{className:"text-[9px] uppercase tracking-wider font-bold text-[#a99dff] bg-[#5e51ec]/15 border border-[#5e51ec]/25 px-2 py-0.5 rounded-full",children:t})]})}function kt({label:e,children:t}){return l.jsxs("div",{className:"mb-2.5",children:[l.jsx("label",{className:"text-[11px] text-white/60 block mb-1.5",children:e}),t]})}function ln({children:e}){return l.jsx("p",{className:"text-[11px] text-white/45 leading-relaxed",children:e})}function gO({activeTab:e,setActiveTab:t,onAction:n}){const[r,o]=k.useState(!0),[c,u]=k.useState("en"),[f,h]=k.useState(pO),[p,y]=k.useState("all"),[x,v]=k.useState(""),[w,E]=k.useState("eur"),[j,S]=k.useState("succeeded"),[_,P]=k.useState(""),[C,T]=k.useState(""),[I,$]=k.useState("France"),[q,M]=k.useState(25),[U,Z]=k.useState("Crédit Agricole"),[pe,je]=k.useState("0172"),[Te,Ce]=k.useState("manual"),[ge,fe]=k.useState([{id:1,amount:189.15,bank:"Crédit Agricole",last4:"0172",date:"Aug 20"}]),[ce,Q]=k.useState(""),[se,z]=k.useState("Sep 1, 2026"),[O,H]=k.useState("Sep 14, 2026"),[me,ve]=k.useState(10),[he,J]=k.useState(1490),[we,Ne]=k.useState("eur"),_e=f.filter(W=>W.status==="succeeded").reduce((W,Re)=>W+Re.amount,0),Je=f.filter(W=>p==="all"||W.status===p),Pt=ge.reduce((W,Re)=>W+(Re.amount||0),0),$e=Math.max(_e-Pt,.2),Vt=()=>{const W=parseFloat(String(ce||$e).replace(",","."));if(!W||W<=0||W>$e)return;const Re=new Date().toLocaleDateString("en-US",{month:"short",day:"numeric"});fe([{id:Date.now(),amount:W,bank:U,last4:pe||"0172",date:Re},...ge]),Q(""),n()},Wt=W=>{W.preventDefault();const Re=parseFloat(String(x).replace(",","."));!Re||Re<=0||(h([{id:Date.now(),amount:Re,currency:w,status:j,customer:"[email protected]",date:"Sep 14, 4:30 PM",card:(_||"Visa")+" â¢â¢â¢â¢ "+(C||"4242")},...f]),v(""),n())},Ht=W=>{h(f.filter(Re=>Re.id!==W)),n()};return l.jsxs("div",{className:"relative w-full max-w-[380px] rounded-2xl bg-black border border-white/10 overflow-hidden shadow-[0_30px_80px_-20px_rgba(94,81,236,0.5)]",style:{fontFamily:"Inter, system-ui, sans-serif"},children:[l.jsx("div",{className:"pointer-events-none absolute -top-20 -right-20 w-64 h-64 roun
308ded-full bg-[#5e51ec]/30 blur-3xl"}),l.jsxs("div",{className:"relative flex items-center gap-3 px-5 pt-5 pb-4",children:[l.jsx("div",{className:"h-10 w-10 rounded-[11px] overflow-hidden",children:l.jsx("img",{src:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/f2467a389_logo.png",alt:"Codir",className:"h-full w-full object-cover"})}),l.jsxs("div",{className:"flex-1",children:[l.jsx("div",{className:"text-white font-bold text-[19px] leading-tight",style:{fontFamily:"Space Grotesk, sans-serif"},children:"Codir · Stripe"}),l.jsx("div",{className:"text-[11px] text-white/50",children:"v1.2.0 · dashboard"})]}),l.jsxs("button",{onClick:n,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-red-500/15 text-red-400 hover:bg-red-500/25 transition text-xs font-semibold",children:[l.jsx(Nc,{className:"h-3.5 w-3.5"}),"Logout"]})]}),l.jsxs("div",{className:"px-4 pb-4 space-y-2",children:[l.jsxs("div",{className:"bg-[#0c0c10] border border-white/[0.06] rounded-2xl px-4 py-3 flex items-center justify-between gap-3",children:[l.jsx("div",{className:"text-sm text-white font-semibold",children:"Enable extension"}),l.jsx(mO,{on:r,onToggle:()=>o(!r)})]}),l.jsxs("div",{className:"bg-[#0c0c10] border border-white/[0.06] rounded-2xl px-4 py-3 flex items-center justify-between gap-3",children:[l.jsx("div",{className:"text-sm text-white font-semibold",children:"Language"}),l.jsxs("select",{value:c,onChange:W=>{u(W.target.value),n()},className:"bg-[#14141a] border border-white/[0.06] rounded-lg px-3 py-1.5 text-white text-sm outline-none focus:border-[#5e51ec]/50 cursor-pointer w-[150px]",children:[l.jsx("option",{value:"en",className:"bg-black",children:"ðºð¸ English"}),l.jsx("option",{value:"fr",className:"bg-black",children:"ð«ð· Français"})]})]}),l.jsxs("div",{className:"bg-gradient-to-br from-[#17132d] to-[#0c0c10] border border-[#5e51ec]/35 rounded-2xl px-4 py-4",children:[l.jsx("p",{className:"text-[10px] uppercase tracking-widest text-white/50 font-bold",children:"Available balance"}),l.jsx("h2",{className:"text-[26px] font-bold text-white mt-1.5",style:{fontFamily:"Space Grotesk, sans-serif"},children:bi($e)}),l.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[l.jsxs("span",{className:"text-[11px] text-white/40",children:[f.length," payment",f.length!==1?"s":""," recorded"]}),l.jsx("span",{className:"text-white/20",children:"·"}),l.jsxs("span",{className:"text-[11px] text-white/40",children:[ge.length," payout",ge.length!==1?"s":""," made"]})]})]}),l.jsx("div",{className:"bg-[#0c0c10] border border-white/[0.06] rounded-2xl p-[5px] grid grid-cols-5 gap-1",children:fO.map(({key:W,label:Re,Icon:Kt})=>{const bt=e===W;return l.jsxs("button",{onClick:()=>t(W),className:`flex flex-col items-center gap-1 py-2 rounded-xl transition-all ${bt?"bg-gradient-to-b from-[#5e51ec] to-[#4a3fd4] shadow-lg shadow-[#5e51ec]/40":"hover:bg-white/[0.04]"}`,children:[l.jsx(Kt,{className:`h-[15px] w-[15px] transition ${bt?"text-white scale-110":"text-white/55"}`,strokeWidth:2}),l.jsx("span",{className:`text-[9px] font-bold ${bt?"text-white":"text-white/55"}`,children:Re})]},W)})}),l.jsxs("div",{className:"bg-[#0c0c10] border border-white/[0.06] rounded-2xl p-4 max-h-[420px] overflow-y-auto",children:[e==="payments"&&l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{children:[l.jsx(qn,{
308children:"Add a payment"}),l.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[l.jsx(kt,{label:"Amount",children:l.jsx("input",{type:"number",min:"0",step:"0.01",placeholder:"149.00",value:x,onChange:W=>v(W.target.value),className:St})}),l.jsx(kt,{label:"Currency",children:l.jsxs("select",{value:w,onChange:W=>E(W.target.value),className:St+" cursor-pointer",children:[l.jsx("option",{value:"eur",className:"bg-black",children:"EUR · â¬"}),l.jsx("option",{value:"usd",className:"bg-black",children:"USD · $"}),l.jsx("option",{value:"gbp",className:"bg-black",children:"GBP · £"})]})})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[l.jsx(kt,{label:"Status",children:l.jsx("select",{value:j,onChange:W=>S(W.target.value),className:St+" cursor-pointer",children:Object.entries(xf).map(([W,Re])=>l.jsx("option",{value:W,className:"bg-black",children:Re},W))})}),l.jsx(kt,{label:"Card",children:l.jsxs("select",{value:_,onChange:W=>P(W.target.value),className:St+" cursor-pointer",children:[l.jsx("option",{value:"",className:"bg-black",children:"Auto · by country"}),l.jsx("option",{className:"bg-black",children:"Visa"}),l.jsx("option",{className:"bg-black",children:"Mastercard"}),l.jsx("option",{className:"bg-black",children:"Cartes Bancaires"}),l.jsx("option",{className:"bg-black",children:"American Express"})]})})]}),l.jsx(kt,{label:"Last 4 digits",children:l.jsx("input",{maxLength:4,placeholder:"Auto",value:C,onChange:W=>T(W.target.value.replace(/\D/g,"").slice(0,4)),className:St})}),l.jsxs("button",{onClick:Wt,className:"mt-1 w-full bg-[#5e51ec] hover:bg-[#6d61f0] text-white rounded-lg py-2 text-sm font-semibold transition shadow-lg shadow-[#5e51ec]/30 flex items-center justify-center gap-1.5",children:[l.jsx(Br,{className:"h-3.5 w-3.5",strokeWidth:3})," Add payment"]}),l.jsx(ln,{children:"Leave card and last 4 digits empty to generate them by country."})]}),l.jsxs("div",{children:[l.jsx(qn,{pill:`${f.length}`,children:"My payments"}),l.jsx(kt,{label:"Show",children:l.jsxs("select",{value:p,onChange:W=>y(W.target.value),className:St+" cursor-pointer",children:[l.jsx("option",{value:"all",className:"bg-black",children:"All statuses"}),Object.entries(xf).map(([W,Re])=>l.jsx("option",{value:W,className:"bg-black",children:Re},W))]})}),l.jsxs("div",{className:"space-y-1.5",children:[Je.length===0&&l.jsx(ln,{children:"No payment for this selection."}),Je.map(W=>l.jsxs("div",{className:"flex items-center gap-2 bg-[#14141a] border border-white/[0.06] rounded-xl px-3 py-2",children:[l.jsxs("div",{className:"min-w-0 flex-1",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-sm text-white font-semibold",children:bi(W.amount,W.currency)}),l.jsx("span",{className:`text-[10px] font-bold px-2 py-0.5 rounded-full ${hO[W.status]}`,children:xf[W.status]})]}),l.jsxs("div",{className:"text-[10px] text-white/40 truncate",children:[W.customer," · ",W.card," · ",W.date]})]}),l.jsx("button",{onClick:()=>Ht(W.id),className:"h-6 w-6 rounded-md bg-red-500/10 hover:bg-red-500/25 text-red-400 flex items-center justify-center transition shrink-0",children:l.jsx(kn,{className:"h-3 w-3"})})]},W.id))]})]})]}),e==="customers"&&l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{children:[l.jsx(qn,{
308children:"Account country"}),l.jsx(kt,{label:"Country",children:l.jsx("select",{value:I,onChange:W=>{$(W.target.value),n()},className:St+" cursor-pointer",children:["France","Spain","Germany","Italy","Belgium","Netherlands","Portugal","Ireland","United Kingdom","United States"].map(W=>l.jsx("option",{className:"bg-black",children:W},W))})}),l.jsx(ln,{children:"Drives customer first names, last names, email domains and card-brand mix â Cartes Bancaires in France, Amex more common in the US."})]}),l.jsxs("div",{children:[l.jsx(qn,{children:"Customer base"}),l.jsx(kt,{label:"Number of customers",children:l.jsx("input",{type:"number",min:"0",max:"10000",value:q,onChange:W=>M(parseInt(W.target.value||"0",10)),className:St})}),l.jsx(ln,{children:"Generates that many profiles spread across your payments. A returning customer always keeps the same card and last 4 digits."})]})]}),e==="payouts"&&l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"bg-gradient-to-br from-[#17132d] to-[#0c0c10] border border-[#5e51ec]/35 rounded-xl px-4 py-3",children:[l.jsxs("div",{className:"flex items-center justify-between mb-3",children:[l.jsxs("div",{children:[l.jsx("div",{className:"text-[10px] uppercase tracking-widest text-white/50 font-bold",children:"Available to pay out"}),l.jsx("div",{className:"text-xl font-bold text-white mt-0.5",style:{fontFamily:"Space Grotesk, sans-serif"},children:bi($e)})]}),l.jsx(mh,{className:"h-5 w-5 text-[#a99dff]"})]}),l.jsx(kt,{label:"Amount to pay out (leave empty for full balance)",children:l.jsx("input",{type:"number",min:"0.01",step:"0.01",max:$e,placeholder:$e.toFixed(2),value:ce,onChange:W=>Q(W.target.value),className:St})}),l.jsxs("button",{onClick:Vt,disabled:$e<=.2,className:"w-full bg-[#5e51ec] hover:bg-[#6d61f0] disabled:opacity-40 disabled:cursor-not-allowed text-white rounded-lg py-2 text-sm font-semibold transition shadow-lg shadow-[#5e51ec]/30 flex items-center justify-center gap-1.5",children:[l.jsx(Br,{className:"h-3.5 w-3.5",strokeWidth:3})," Pay out now"]}),l.jsxs(ln,{children:["Creates a fake payout to ",U," â¢â¢â¢â¢ ",pe||"0172",". The funds leave your available balance instantly."]})]}
308),l.jsxs("div",{children:[l.jsx(qn,{children:"Bank account"}),l.jsx(kt,{label:"Bank",children:l.jsx("select",{value:U,onChange:W=>Z(W.target.value),className:St+" cursor-pointer",children:["Crédit Agricole","BNP Paribas","Société Générale","CIC","Boursorama","Qonto","Revolut Business","Customâ¦"].map(W=>l.jsx("option",{className:"bg-black",children:W},W))})}),l.jsx(kt,{label:"Last 4 digits",children:l.jsx("input",{maxLength:4,placeholder:"Auto",value:pe,onChange:W=>je(W.target.value.replace(/\D/g,"").slice(0,4)),className:St})}),l.jsx(ln,{children:'This is the account shown in the "Pay out" window and in the Recipient column.'})]}),l.jsxs("div",{children:[l.jsx(qn,{children:"Payout mode"}),l.jsx(kt,{label:"Payouts",children:l.jsxs("select",{value:Te,onChange:W=>Ce(W.target.value),className:St+" cursor-pointer",children:[l.jsx("option",{value:"manual",className:"bg-black",children:"Manual · I trigger them"}),l.jsx("option",{value:"auto",className:"bg-black",children:"Automatic · daily"})]})}),l.jsx(ln,{children:'Manual: funds stay in "Available" until you click Pay out. Automatic: they leave daily.'})]}),l.jsxs("div",{children:[l.jsx(qn,{pill:`${ge.length}`,children:"Payouts made"}),l.jsxs("div",{className:"space-y-1.5",children:[ge.length===0&&l.jsx(ln,{children:'No payout yet â use "Pay out now" above to create one.'}),ge.map((W,Re)=>l.jsxs("div",{className:"flex items-center gap-2 bg-[#14141a] border border-white/[0.06] rounded-xl px-3 py-2",children:[l.jsxs("div",{className:"min-w-0 flex-1",children:[l.jsx("div",{className:"text-sm text-white font-semibold",children:bi(W.amount)}),l.jsxs("div",{className:"text-[10px] text-white/40 truncate",children:[W.bank," â¢â¢â¢â¢ ",W.last4," · Paid · ",W.date]})]}),l.jsx("button",{onClick:()=>{fe(ge.filter((Kt,bt)=>bt!==Re)),n()},className:"h-6 w-6 rounded-md bg-red-500/10 hover:bg-red-500/25 text-red-400 flex items-center justify-center transition shrink-0",children:l.jsx(kn,{className:"h-3 w-3"})})]},W.id||Re))]}),l.jsx(ln,{children:"Deleting a payout returns the funds to your available balance."})]}
308),l.jsxs("div",{children:[l.jsx(qn,{children:"Availability delay"}),l.jsx(ln,{children:"Released 3 business days later in the euro area, 2 in the US/UK. Weekends and holidays don't count."})]})]}),e==="scenario"&&l.jsx("div",{className:"space-y-4",children:l.jsxs("div",{children:[l.jsx(qn,{children:"Create a period"}),l.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[l.jsx(kt,{label:"From",children:l.jsx("input",{value:se,onChange:W=>z(W.target.value),className:St})}),l.jsx(kt,{label:"To",children:l.jsx("input",{value:O,onChange:W=>H(W.target.value),className:St})})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[l.jsx(kt,{label:"Number of payments",children:l.jsx("input",{type:"number",min:"1",value:me,onChange:W=>ve(parseInt(W.target.value||"0",10)),className:St})}),l.jsx(kt,{label:"Total amount",children:l.jsx("input",{type:"number",min:"0.01",step:"0.01",value:he,onChange:W=>J(parseFloat(W.target.value||"0")),className:St})})]}),l.jsx(kt,{label:"Currency",children:l.jsxs("select",{value:we,onChange:W=>Ne(W.target.value),className:St+" cursor-pointer",children:[l.jsx("option",{value:"eur",className:"bg-black",children:"EUR · â¬"}),l.jsx("option",{value:"usd",className:"bg-black",children:"USD · $"}),l.jsx("option",{value:"gbp",className:"bg-black",children:"GBP · £"})]})}),l.jsx(ln,{children:me?`${me} payments · â ${bi(he/me,we)} each · ${bi(he,we)} total`:""}),l.jsxs("button",{onClick:n,className:"mt-2 w-full bg-[#5e51ec] hover:bg-[#6d61f0] text-white rounded-lg py-2 text-sm font-semibold transition shadow-lg shadow-[#5e51ec]/30 flex items-center justify-center gap-1.5",children:[l.jsx(Br,{className:"h-3.5 w-3.5",strokeWidth:3})," Add period"]}),l.jsx(ln,{children:"Spread evenly over the chosen dates. Future payments show up when due."})]})}),e==="data"&&l.jsx("div",{className:"space-y-4",children:l.jsxs("div",{children:[l.jsx(qn,{
308children:"Backup"}),l.jsxs("div",{className:"flex gap-2",children:[l.jsx("button",{onClick:n,className:"flex-1 bg-white/[0.04] hover:bg-white/[0.08] border border-white/10 text-white/70 hover:text-white rounded-lg py-2 text-xs font-semibold transition",children:"Export"}),l.jsx("button",{onClick:n,className:"flex-1 bg-white/[0.04] hover:bg-white/[0.08] border border-white/10 text-white/70 hover:text-white rounded-lg py-2 text-xs font-semibold transition",children:"Import"}),l.jsx("button",{onClick:n,className:"flex-1 bg-white/[0.04] hover:bg-white/[0.08] border border-white/10 text-white/70 hover:text-white rounded-lg py-2 text-xs font-semibold transition",children:"Refresh"})]}),l.jsx(ln,{children:"Everything stays on this computer, nothing is sent over the Internet. Export produces a re-importable JSON file."})]})})]}),l.jsxs("div",{className:"flex items-center justify-center gap-3 pt-1 pb-1 text-[11px] text-white/40",children:[l.jsxs("span",{className:"flex items-center gap-1 hover:text-[#a99dff] transition cursor-pointer",onClick:n,children:[l.jsx(Wi,{className:"h-3 w-3"}),"Stealth mode"]}),l.jsx("span",{children:"·"}),l.jsx("a",{href:"#",className:"hover:text-[#a99dff] transition",children:"Support"})]})]})]})}const ov={paypal:{balance:{title:"Set your displayed balance",text:"Override the available balance shown on your PayPal dashboard. Perfect for clean screenshots and credible demos."},payments:{title:"Generate realistic transactions",text:"Inject N transactions between two dates with realistic merchants, amounts and types â distributed randomly across the period."},subs:{title:"Add recurring charges",text:"Spotify, Meta Ads, Wix⦠recurring charges appear merged with normal transactions once you hit Apply."},shopping:{title:"One-off purchases",text:"Add purchases (Steam, Riot, Notinoâ¦) with their own card, shipping address and itemized order summary."},editor:{title:"Fine-tune each transaction",text:"Edit any generated transaction individually â merchant, amount, date or type. Total control."}},shopify:{visits:{title:"Drive your visit traffic",text:"Add visit periods with totals, distribution shape (random, growing, peakâ¦), device split and locations. Top-5 cities follow your shares â exactly like Shopify."},sales:{title:"Configure sales periods",text:"Pick a product, a date range and how many units s
308old. Total ⬠uses Shopify's exact formula: gross + tax + shipping â discounts. Each unit also becomes one order."},orders:{title:"Orders auto-derived",text:"Each sale counts as 1 order. Inject extra fake orders spread over the last 30 days and control the unfulfilled badge in the sidebar."},products:{title:"Import your real products",text:"Open your Shopify products page â the extension auto-detects every product (name, price, image). Once imported, orders and sales pick from your real catalog."},live:{title:"Live View locations",text:"Control the cities shown on the Live View map. Auto-fill picks real cities from your Visits â Locations countries, or add your own with custom shares."}},beacons:{sales:{title:"Generate realistic sales",text:"Import your real Beacons products with their own currency, then generate sale batches over any period. Each product keeps its native currency while aggregates are converted to your display currency."},payouts:{title:"Commissions & payment methods",text:"Set affiliate and referral percentages on total sales â they appear in the Affiliate / Referral cards on Payouts. Pick the payment methods (Stripe, PayPalâ¦) shown as 'Sent to' in the history."},stats:{title:"Shape traffic, devices & countries",text:"Set conversion rate, pick traffic sources with their share (Instagram, TikTok, Link in bioâ¦), the devices used and the customer countries. Realistic names, emails and addresses are picked from the selected countries."}},stripe:{payments:{title:"Add realistic payments",text:"Amount, currency, date, status (succeeded, refunded, failed, uncaptured, blocked), customer and card. Each payment lands on the Payments page, the home charts and the balance â with Stripe's real fee model."},customers:{title:"A believable customer base",text:"Pick the account country: first names, last names, email domains and card-brand mix follow it (Cartes Bancaires in France, Amex in the US). A returning customer always keeps the same card."},payouts:{title:"Balances & payouts",text:'Funds are released after 3 business days in the euro area (2 in the US/UK). Choose manual payouts â you click "Pay out" yourself â or daily automatic payouts.'},scenario:{title:"Generate a whole period",text:"Pick a date range, how many payments and the total amount: they are spread evenly, future ones appear when due."},data:{title:"Everything stays local",text:"Nothing is sent over the Internet. Export a JSON backup, re-import it later, refresh your Stripe tab in one click."}}};function yO({extension:e="paypal",activeTab:t}){const n=ov[e]||ov.paypal,r=n[t]||Object.values(n)[0];return l.jsxs("div",{className:"w-full max-w-sm",children:[l.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-[#5e51ec]/15 border border-[#5e51ec]/30 text-[#a99dff] text-[11px] font-bold uppercase tracking-widest mb-5",children:[l.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-[#5e51ec] animate-pulse"}),"Currently viewing"]}),l.jsx(mt,{mode:"wait",children:l.jsxs(le.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},exit:{opacity:0,y:-12},transition:{duration:.3,ease:[.22,1,.36,1]},children:[l.jsx("h3",{className:"font-space font-black text-2xl sm:text-3xl text-white mb-3 leading-tight",children:r.title}),l.jsx("p",{className:"text-white/70 text-sm leading-relaxed",children:r.text})]},`${e}-${t}`)}),l.jsx("div",{className:"mt-8 pt-6 border-t border-white/10",children:l.jsx("p",{className:"text-xs text-white/40 leading-relaxed",children:"Click any tab on the popup to explore what each panel does. All inputs are editable but nothing is saved â this is purely a visual preview."})})]})}const xO="https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/fb9c6ade2_image.png",vO="https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/4a75bb4a7_LogoBeacons.png",bO="https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/6bb88099f_ShopifyLogo.png",wO="https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/23c01e3af_Sanstitre.png";function _O(e){return[{key:"beacons",label:"Beacons",logo:vO,defaultTab:"sales",intro:{title:e?"Découvre Codir · Beacons.ai":"Meet Codir · Beacons.ai",text:e?"Importe tes produits, génère des vagues de ventes réalistes, règle les commissions et modélise le trafic, les appareils & les pays â le tout depuis une seule popup.":"Import your products, generate realistic waves of sales, tweak commissions and model traffic, devices & countries â all from a single popup."}},{key:"paypal",label:"PayPal",logo:xO,defaultTab:"balance",intro:{title:e?"Découvre Codir · PayPal":"Meet Codir · PayPal",text:e?"Solde, paiements, abonnements, achats et éditeur ligne par ligne â la vraie popup, en mode démo, directement dans ton navigateur.":"Balance, payments, subscriptions, purchases and a line-by-line editor â the real popup, in demo mode, right in y
308our browser."}},{key:"shopify",label:"Shopify",logo:bO,defaultTab:"visits",intro:{title:e?"Découvre Codir · Shopify":"Meet Codir · Shopify",text:e?"Génère des visites, des ventes et des commandes sur ton admin Shopify â périodes, pays, appareils et Live View, exactement comme le fait la vraie extension.":"Generate visits, sales and orders on your Shopify admin â date ranges, countries, devices and Live View, exactly like the real extension does."}},{key:"stripe",label:"Stripe",logo:wO,defaultTab:"payments",intro:{title:e?"Découvre Codir · Stripe":"Meet Codir · Stripe",text:e?"Ajoute des paiements, des clients et des virements sur ton vrai dashboard Stripe â accueil, soldes, transactions, exactement comme le fait la vraie extension.":"Add payments, customers and payouts on your real Stripe dashboard â home, balances, transactions, exactly like the real extension does."}}]}function SO(){var P;const{lang:e}=jn(),t=e==="fr",n=_O(t),[r,o]=k.useState("beacons"),[c,u]=k.useState("balance"),[f,h]=k.useState("sales"),[p,y]=k.useState("visits"),[x,v]=k.useState("payments"),[w,E]=k.useState(!1);k.useEffect(()=>{if(!w)return;const C=setTimeout(()=>E(!1),2200);return()=>clearTimeout(C)},[w]);const j=()=>{E(!1),setTimeout(()=>E(!0),30)},S=r==="paypal"?c:r==="shopify"?p:r==="stripe"?x:f,_=n.find(C=>C.key===r);return l.jsxs("section",{className:"relative py-24 px-4 border-t border-white/5 overflow-hidden",children:[l.jsx("div",{className:"pointer-events-none absolute top-0 left-1/2 -translate-x-1/2 w-[800px] h-[400px] bg-[#5e51ec]/15 blur-[140px] rounded-full"}),l.jsxs("div",{className:"relative max-w-6xl mx-auto",children:[l.jsxs(le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-10",children:[l.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-white/5 border border-white/10 text-[11px] font-bold uppercase tracking-widest text-white/70 mb-5",children:t?"Essaie l'extension":"Try the extension"}),l.jsxs("h2",{className:"font-space font-black text-4xl sm:text-5xl text-white mb-4 [filter:drop-shadow(0_4px_24px_rgba(0,0,0,0.85))_drop-shadow(0_2px_8px_rgba(0,0,0,0.9))]",children:[_.intro.title.split("·")[0],l.jsxs("span",{className:"bg-gradient-to-r from-[#5e51ec] via-[#8b7eff] to-[#5e51ec] bg-clip-text text-transparent [filter:drop-shadow(0_2px_12px_rgba(94,81,236,0.35))]",children:["· ",(P=_.intro.title.split("·")[1])==null?void 0:P.trim()]})]}),l.jsx("p",{className:"text-white/70 max-w-xl mx-auto",children:_.intro.text})]}),l.jsx("div",{className:"flex justify-center mb-12 px-2",children:l.jsx("div",{className:"inline-flex flex-wrap justify-center items-center gap-0.5 sm:gap-1 p-1 rounded-full bg-white/5 border border-white/10 backdrop-blur-xl max-w-full",children:n.map(C=>{const T=r===C.key;return l.jsxs("button",{onClick:()=>o(C.key),className:`relative flex items-center gap-1.5 sm:gap-2 px-3 sm:px-5 py-2 rounded-full text-xs sm:text-sm font-semibold transition-colors ${T?"text-white":"text-white/50 hover:text-white/80"}`,children:[T&&l.jsx(le.span,{layoutId:"ext-switch",className:"absolute inset-0 rounded-full bg-gradient-to-r from-[#5e51ec] to-[#6d61f0] shadow-lg shadow-[#5e51ec]/40",transition:{type:"spring",stiffness:400,damping:30}}),l.jsx("img",{src:C.logo,alt:"",className:"relative h-4 w-4 object-contain"}),l.jsx("span",{className:"relative",children:C.label})]},C.key)})})}),l.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_auto_1fr] gap-12 items-start justify-items-center",children:[l.jsxs(le.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},className:"hidden lg:block justify-self-end max-w-sm text-right pt-8",children:[l.jsx("h3",{className:"font-space font-bold text-2xl text-white mb-3",children:t?"Une vraie popup Chrome, dans ton navigateur.":"A real Chrome popup, right in your browser."}),l.jsx("p",{className:"text-white/60 text-sm leading-relaxed",children:t?"La popup à droite, c'est exactement la même interface de 380px que tu obtiens après avoir installé l'extension. Coche, tape, change d'onglet â tout réagit.":"The popup on the right is the exact same 380px interface you get after installing the extension. Toggle, type, switch tabs â everything reacts."})]}),l.jsx(mt,{mode:"wait",children:l.jsx(le.div,{initial:{opacity:0,y:20,scale:.97}
vendor: 4,695 bytes, line 308
308,animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-20,scale:.97},transition:{duration:.35,ease:[.22,1,.36,1]},children:r==="paypal"?l.jsx(J3,{activeTab:c,setActiveTab:u,onAction:j}):r==="shopify"?l.jsx(dO,{activeTab:p,setActiveTab:y,onAction:j}):r==="stripe"?l.jsx(gO,{activeTab:x,setActiveTab:v,onAction:j}):l.jsx(rO,{activeTab:f,setActiveTab:h,onAction:j})},r)}),l.jsx(le.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},className:"justify-self-center lg:justify-self-start pt-4 lg:pt-8 w-full max-w-md",children:l.jsx(yO,{extension:r,activeTab:S})})]})]}),l.jsx(mt,{children:w&&r==="paypal"&&l.jsx(le.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},exit:{opacity:0,y:30},transition:{duration:.25},className:"fixed bottom-8 left-1/2 -translate-x-1/2 z-50 px-5 py-2.5 rounded-full bg-[#5e51ec] text-white text-sm font-semibold shadow-lg shadow-[#5e51ec]/40",children:t?"Mode démo â aucune modification réelle n'est effectuée.":"Demo mode â no real changes are made."})})]})}function kO(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}Array(12).fill(0);let dh=1;class jO{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,c=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:dh++,u=this.toasts.find(h=>h.id===c),f=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),u?this.toasts=this.toasts.map(h=>h.id===c?(this.publish({...h,...t,id:c,title:r}),{...h,...t,id:c,dismissible:f,title:r}):h):this.addToast({title:r,...o,dismissible:f,id:c}),c},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let c=r!==void 0,u;const f=o.then(async p=>{if(u=["resolve",p],wi.isValidElement(p))c=!1,this.create({id:r,type:"default",message:p});else if(EO(p)&&!p.ok){c=!1;const x=typeof n.error=="function"?await n.error(`HTTP error! status: ${p.status}`):n.error,v=typeof n.description=="function"?await n.description(`HTTP error! status: ${p.status}`):n.description,E=typeof x=="object"&&!wi.isValidElement(x)?x:{message:x};this.create({id:r,type:"error",description:v,...E})}else if(p instanceof Error){c=!1;const x=typeof n.error=="function"?await n.error(p):n.error,v=typeof n.description=="function"?await n.description(p):n.description,E=typeof x=="object"&&!wi.isValidElement(x)?x:{message:x};this.create({id:r,type:"error",description:v,...E})}else if(n.success!==void 0){c=!1;const x=typeof n.success=="function"?await n.success(p):n.success,v=typeof n.description=="function"?await n.description(p):n.description,E=typeof x=="object"&&!wi.isValidElement(x)?x:{message:x};this.create({id:r,type:"success",description:v,...E})}}).catch(async p=>{if(u=["reject",p],n.error!==void 0){c=!1;const y=typeof n.error=="function"?await n.error(p):n.error,x=typeof n.description=="function"?await n.description(p):n.description,w=typeof y=="object"&&!wi.isValidElement(y)?y:{message:y};this.create({id:r,type:"error",description:x,...w})}}).finally(()=>{c&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),h=()=>new Promise((p,y)=>f.then(()=>u[0]==="reject"?y(u[1]):p(u[1])).catch(y));return typeof r!="string"&&typeof r!="number"?{unwrap:h}:Object.assign(r,{unwrap:h})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||dh++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const bn=new jO,CO=(e,t)=>
vendor: 447 bytes, line 308
308{const n=(t==null?void 0:t.id)||dh++;return bn.addToast({title:e,...t,id:n}),n},EO=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",NO=CO,PO=()=>bn.toasts,TO=()=>bn.getActiveToasts(),av=Object.assign(NO,{success:bn.success,info:bn.info,warning:bn.warning,error:bn.error,custom:bn.custom,message:bn.message,promise:bn.promise,dismiss:bn.dismiss,loading:bn.loading},{getHistory:PO,getToasts:TO});kO
vendor: 14,873 bytes, line 308
308("[data-sonner-toaster][dir=ltr],html[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%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [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;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [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);background:var(--normal-bg);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-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));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{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{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{from{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-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--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-sonner-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-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-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, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--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-sonner-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-sonner-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]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[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]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[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]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[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]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[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:first-child{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)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{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
308RO(){try{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID()}catch{}return`${Date.now()}-${Math.random().toString(36).slice(2,10)}`}function AO(){if(typeof document>"u")return{};const e=document.cookie.split(";").reduce((t,n)=>{const r=n.indexOf("=");if(r===-1)return t;const o=n.slice(0,r).trim(),c=n.slice(r+1).trim();return o&&(t[o]=c),t},{});return{sc_click_id:e._scclid||e.sc_click_id||void 0,sc_cookie1:e._scid||e.sc_cookie1||void 0}}function OO(e,t={}){const n=t.event_id||RO(),{user_email:r,user_phone:o,custom_data:c={}}=t;if(typeof window<"u"&&window.snaptr)try{window.snaptr("track",e,{event_id:n,...r?{user_email:r}:{},...o?{user_phone_number:o}:{},...c})}catch{}const u=typeof window<"u"?window.location.href:"",{sc_click_id:f,sc_cookie1:h}=AO();try{qt.functions.invoke("snapCapiTrack",{event_name:e,user_email:r,user_phone:o,event_id:n,event_source_url:u,sc_click_id:f,sc_cookie1:h,custom_data:c}).catch(p=>console.warn("Snap CAPI track failed:",(p==null?void 0:p.message)||p))}catch{}return n}function LO({apps:e,selected:t,onSelect:n}){return l.jsx("div",{className:"flex justify-center mb-10 px-2",children:l.jsx("div",{className:"inline-flex flex-wrap justify-center items-center gap-0.5 sm:gap-1 p-1 rounded-full bg-white/5 border border-white/10 backdrop-blur-xl max-w-full",children:e.map(r=>{const o=t===r.key,c=r.soon;return l.jsxs("button",{onClick:()=>!c&&n(r.key),disabled:c,className:`relative flex items-center gap-1.5 sm:gap-2 px-3 sm:px-5 py-2 rounded-full text-xs sm:text-sm font-semibold transition-colors ${o?"text-white":c?"text-white/30 curs
308or-not-allowed":"text-white/50 hover:text-white/80"}`,children:[o&&l.jsx(le.span,{layoutId:"pricing-app-switch",className:"absolute inset-0 rounded-full bg-gradient-to-r from-[#5e51ec] to-[#6d61f0] shadow-lg shadow-[#5e51ec]/40",transition:{type:"spring",stiffness:400,damping:30}}),r.logo?l.jsx("img",{src:r.logo,alt:r.name,className:"relative h-4 w-4 object-contain"}):l.jsx("span",{className:"relative text-base leading-none",children:r.emoji}),l.jsx("span",{className:"relative",children:r.name}),c&&l.jsx("span",{className:"relative text-[10px] uppercase tracking-wider text-white/40 font-bold ml-0.5",children:"Soon"})]},r.key)})})})}function DO({plan:e,app:t,features:n=[],index:r,onSelect:o,isActive:c,loading:u=!1,condition:f}){const{t:h}=jn(),p=!!e.free;return l.jsxs(le.div,{initial:{opacity:0,y:30,scale:.95},whileInView:{opacity:1,y:0,scale:1},viewport:{once:!0,margin:"-50px"},transition:{duration:.6,delay:r*.1,ease:[.22,1,.36,1]},whileHover:{y:-4,transition:{duration:.25}},className:`relative bg-white/5 backdrop-blur-xl border rounded-2xl p-6 flex flex-col ${e.popular?"border-[#5e51ec]/50 shadow-[0_0_40px_-15px_rgba(94,81,236,0.6)]":p?"border-white/15":"border-white/10"}`,children:[l.jsxs("div",{className:"flex items-center justify-between mb-5",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[t.logo?l.jsx("img",{src:t.logo,alt:t.name,className:"h-5 w-5 object-contain"}):l.jsx("span",{className:"text-base",children:t.emoji}),l.jsx("span",{className:"text-sm font-semibold text-white",children:t.name})]}),e.popular&&l.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider text-white bg-gradient-to-r from-[#5e51ec] to-[#6d61f0] px-2 py-0.5 rounded-full",children:h("pricing_card_popular")}),p&&l.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider text-white bg-gradient-to-r from-emerald-500 to-teal-500 px-2 py-0.5 rounded-full",children:h("pricing_card_free")})]}),l.jsxs("div",{className:"mb-5 min-h-[72px]",children:[l.jsxs("div",{className:"flex items-baseline gap-2 flex-wrap",children:[l.jsx("span",{className:"font-space font-black text-4xl text-white",children:p?"0â¬":`â¬${e.price.toFixed(2)}`}),l.jsx("span",{className:"text-sm text-white",children:p?e.unit:`/${e.unit}`}),e.oldPrice&&l.jsxs("span",{className:"text-sm text-white/30 line-through",children:["â¬",e.oldPrice]})]}),e.discount&&l.jsxs("span",{className:"inline-block mt-2 text-[11px] font-bold text-white bg-gradient-to-r from-[#5e51ec] to-[#6d61f0] px-2 py-0.5 rounded",children:["-",e.discount]})]}),l.jsx("button",{onClick:o,disabled:u,className:`w-full py-3 rounded-xl font-semibold text-sm transition-all mb-6 flex items-center justify-center gap-2 disabled:opacity-70 disabled:cursor-not-allowed ${c&&!p?"bg-green-500/20 text-green-400 border border-green-500/40":p?"bg-white/10 text-white border border-white/20 hover:bg-white/15":"bg-gradient-to-r from-[#5e51ec] to-[#6d61f0] text-white hover:opacity-90 shadow-lg shadow-[#5e51ec]/30"}`,children:u?l.jsxs(l.Fragment,{children:[l.jsx(hc,{className:"h-4 w-4 animate-spin"}),h("pricing_card_cta_redirecting")]}):h(p?"pricing_card_cta_free":c?"pricing_card_cta_manage":"pricing_card_cta_start")}),p&&l.jsxs("div",{className:"mb-4 flex items-start gap-2 rounded-lg border border-orange-400/30 bg-orange-400/10 px-3 py-2",children:[l.jsx(ij,{className:"h-3.5 w-3.5 text-orange-300 shrink-0 mt-0.5"}),l.jsxs("span",{className:"text-[11px] leading-snug text-orange-100/90",children:[l.jsx("span",{className:"font-semibold text-orange-200",children:h("pricing_card_limit_label")})," ",h("pricing_card_free_limit")]})]}),l.jsx("div",{className:"space-y-3 pt-5 border-t border-white/5",children:n.map(y=>l.jsxs("div",{className:"flex items-center gap-2.5",children:[l.jsx(tr,{className:"h-4 w-4 text-[#a99dff] shrink-0"}),l.jsx("span",{className:"text-sm text-white",children:y})]},y))}),f&&l.jsxs("div",{className:"mt-5 flex items-start gap-2 rounded-lg border border-amber-400/30 bg-amber-400/10 px-3 py-2",children:[l.jsx(Tk,{className:"h-3.5 w-3.5 text-amber-300 shrink-0 mt-0.5"}),l.jsxs("span",{className:"text-[11px] leading-snug text-amber-100/90",children:[l.jsx("span",{className:"font-semibold text-amber-200",children:h("pricing_card_condition_label")})," ",f]})]})]})}const lv=[{key:"biweekly",label:"2 semaines",unit:"2 sem."},{key:"monthly",label:"Mensuel",unit:"mois"}],cv={beacons:{biweekly:17.9,monthly:29.9},paypal:{biweekly:19.9,monthly:32.9},shopify:{biweekly:19.9,monthly:32.9},stripe:{biweekly:19.9,monthly:32.9}},IO=[{key:"beacons",name:"Beacons",logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/4a75bb4a7_LogoBeacons.png"},{key:"paypal",name:"PayPal",logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/fb9c6ade2_image.png"},{key:"shopify",name:"Shopify",logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/6bb88099f_ShopifyLogo.png"},{key:"stripe",name:"Stripe",logo:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/23c01e3af_Sanstitre.png"}];function MO(e){return e>=3?25:e>=2?15:0}function FO({open:e,onClose:t}){const[n,r]=k.useState("monthly"),[o,c]=k.useState([]),[u,f]=k.useState(!1),[h,p]=k.useState("");Ac();const y=S=>{c(_=>_.includes(S)?_.filter(P=>P!==S):[..._,S])},{subtotal:x,discountPct:v,total:w}=k.useMemo(()=>{const S=o.reduce((C,T)=>{var I;return C+(((I=cv[T])==null?void 0:I[n])||0)},0),_=MO(o.length),P=S*(1-_/100);return{subtotal:S,discountPct:_,total:P}},[o,n]),E=lv.find(S=>S.key===n),j=async()=>{var _,P;if(p(""),o.length<2){p("Sélectionne au moins 2 extensions pour bénéficier du bundle.");return}if(!await qt.auth.isAuthenticated()){qt.auth.redirectToLogin(window.location.pathname);return}f(!0);try{const T=new URLSearchParams(window.location.search).get("ref")||localStorage.getItem("affiliate_ref")||void 0,I=await qt.functions.invoke("createBundleCheckout",{serviceKeys:o,billingPeriod:n,...T?{affiliateCode:T}:{}});(_=I.data)!=null&&_.sessionUrl?window.location.href=I.data.sessionUrl:(p(((P=I.data)==null?void 0:P.error)||"Impossible de créer le paiement."),f(!1))}catch(C){console.error(C),p("Erreur lors de la création du paiement."),f(!1)}};return l.jsx(mt,{children:e&&l.jsxs(l.Fragment,{children:[l.jsx(le.div,{initial:{opacity:0}
308,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},onClick:t,className:"fixed inset-0 z-[100] bg-black/70 backdrop-blur-sm"}),l.jsx(le.div,{initial:{opacity:0,y:30,scale:.96},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:20,scale:.96},transition:{duration:.28,ease:[.22,1,.36,1]},className:"fixed inset-0 z-[101] flex items-end sm:items-center justify-center p-0 sm:p-4 pointer-events-none",children:l.jsxs("div",{className:"pointer-events-auto w-full max-w-lg rounded-t-2xl sm:rounded-2xl border border-white/10 bg-[#0d0f1a] shadow-2xl overflow-hidden max-h-[92vh] overflow-y-auto",children:[l.jsxs("div",{className:"flex items-center justify-between px-4 sm:px-6 py-4 sm:py-5 border-b border-white/5 sticky top-0 bg-[#0d0f1a] z-10",children:[l.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[l.jsx(Tc,{className:"h-4 w-4 text-[#a99dff] shrink-0"}),l.jsx("span",{className:"font-space font-bold text-white text-base sm:text-lg truncate",children:"Bundle personnalisé"})]}),l.jsx("button",{onClick:t,className:"p-1.5 rounded-lg text-white/50 hover:text-white hover:bg-white/10 transition","aria-label":"Fermer",children:l.jsx(kn,{className:"h-4 w-4"})})]}),l.jsxs("div",{className:"p-4 sm:p-6 space-y-5",children:[l.jsxs("p",{className:"text-sm text-white/70",children:["Choisis la période, puis coche les extensions."," ",l.jsx("span",{className:"text-white font-semibold",children:"-15%"})," à partir de 2,"," ",l.jsx("span",{className:"text-white font-semibold",children:"-25%"})," à partir de 3."]}),l.jsxs("div",{children:[l.jsx("div",{className:"text-[11px] font-bold uppercase tracking-wider text-white/50 mb-2",children:"Période"}),l.jsx("div",{className:"flex sm:inline-flex gap-1 p-1 rounded-xl bg-white/5 border border-white/10 w-full sm:w-auto",children:lv.map(S=>{const _=n===S.key;return l.jsxs("button",{onClick:()=>r(S.key),className:`relative flex-1 sm:flex-none px-3 sm:px-4 py-2 rounded-lg text-xs font-semibold transition ${_?"text-slate-900":"text-white/70 hover:text-white"}`,children:[_&&l.jsx(le.div,{layoutId:"bundlePeriodPill",className:"absolute inset-0 bg-white rounded-lg shadow",transition:{type:"spring",stiffness:380,damping:32}}),l.jsx("span",{className:"relative z-10",children:S.label})]},S.key)})})]}),l.jsxs("div",{children:[l.jsx("div",{className:"text-[11px] font-bold uppercase tracking-wider text-white/50 mb-2",children:"Extensions"}),l.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-2 sm:gap-2.5",children:IO.map(S=>{const _=o.includes(S.key),P=cv[S.key][n];return l.jsxs("button",{onClick:()=>y(S.key),className:`relative flex flex-col items-start gap-2 p-3 rounded-xl border text-left transition ${_?"border-[#5e51ec] bg-[#5e51ec]/10":"border-white/10 bg-white/5 hover:border-white/20"}`,children:[l.jsxs("div",{className:"flex items-center justify-between w-full",children:[l.jsx("img",{src:S.logo,alt:S.name,className:"h-6 w-6 object-contain"}),l.jsx("div",{className:`h-4 w-4 rounded-md border flex items-center justify-center transition ${_?"bg-[#5e51ec] border-[#5e51ec]":"border-white/30"}`,children:_&&l.jsx(tr,{className:"h-3 w-3 text-white",strokeWidth:3})})]}),l.jsxs("div",{children:[l.jsx("div",{className:"text-sm font-semibold text-white",children:S.name}),l.jsxs("div",{className:"text-[11px] text-white/50",children:[P.toFixed(2),"â¬/",E.unit]})]})]},S.key)})})]}),l.jsxs("div",{className:"rounded-xl border border-white/10 bg-white/[0.03] p-4 space-y-1.5",children:[l.jsxs("div",{className:"flex items-center justify-between text-sm text-white/70",children:[l.jsx("span",{children:"Sous-total"}),l.jsxs("span",{className:v>0?"line-through text-white/40":"",children:[x.toFixed(2),"â¬"]})]}),v>0&&l.jsxs("div",{className:"flex items-center justify-between text-sm",children:[l.jsx("span",{className:"text-[#a99dff] font-semibold",children:"Réduction bundle"}),l.jsxs("span",{className:"text-[#a99dff] font-semibold",children:["-",v,"%"]})]}),l.jsxs("div",{className:"flex items-center justify-between pt-2 mt-2 border-t border-white/5",children:[l.jsx("span",{className:"text-white font-semibold",children:"Total"}),l.jsxs("div",{className:"text-right",children:[l.jsxs("div",{className:"font-space font-black text-2xl text-white",children:[w.toFixed(2),"â¬"]}),l.jsxs("div",{className:"text-[11px] text-white/50",children:["/",E.unit]})]})]})]}),h&&l.jsx("div",{className:"text-xs text-red-400 bg-red-500/10 border border-red-500/30 rounded-lg px-3 py-2",children:h}),l.jsx("button",{onClick:j,disabled:u||o.length<2,className:"w-full py-3 rounded-xl font-semibold text-sm bg-gradient-to-r from-[#5e51ec] to-[#6d61f0] text-white hover:opacity-90 shadow-lg shadow-[#5e51ec]/30 disabled:opacity-50 disabled:cursor-not-allowed transition-all flex items-center justify-center gap-2",children:u?l.jsxs(l.Fragment,{children:[l.jsx(hc,{className:"h-4 w-4 animate-spin"}),"Redirectionâ¦"]}):o.length<2?"Choisis au moins 2 extensions":`Valider et payer ${w.toFixed(2)}â¬/${E.unit}`})]})]})})]})})}const BO="https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/4a75bb4a7_LogoBeacons.png",VO="https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/fb9c6ade2_image.png",UO="https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/6bb88099f_ShopifyLogo.png",zO="https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/23c01e3af_Sanstitre.png",uv=[{key:"beacons",name:"Beacons",logo:BO},{key:"paypal",name:"PayPal",logo:VO},{key:"shopify",name:"Shopify",logo:UO},{key:"stripe",name:"Stripe",logo:zO}];function $O(e){const t=[e("plan_feat_secure_token"),e("plan_feat_persistent")];return{beacons:{features:[e("plan_feat_beacons_edit"),e("plan_feat_extension_chrome"),e("plan_feat_mobile_pc"),e("plan_feat_beacons_add"),e("plan_feat_beacons_any"),...t],plans:[{id:"free",price:0,unit:e("pricing_card_free_unit"),free:!0},{id:"biweekly",price:17.9,unit:e("period_biweekly_short")},{id:"monthly",price:29.9,unit:e("period_monthly_short"),popular:!0}]},paypal:{features:[e("plan_feat_paypal_edit"),e("plan_feat_extension_chrome"),e("plan_feat_mobile_pc"),e("plan_feat_paypal_add"),e("plan_feat_paypal_any"),...t],plans:[{id:"free",price:0,unit:e("pricing_card_free_unit"),free:!0},{id:"biweekly",price:19.9,unit:e("period_biweekly_short")},{id:"monthly",price:32.9,unit:e("period_monthly_short"),popular:!0}]},shopify:{features:[e("plan_feat_shopify_edit"),e("plan_feat_extension_chrome"),e("plan_feat_mobile_pc"),e("plan_feat_shopify_add"),e("plan_feat_shopify_any"),...t],plans:[{id:"free",price:0,unit:e("pricing_card_free_unit"),free:!0},{id:"biweekly",price:19.9,unit:e("period_biweekly_short")},{id:"monthly",price:32.9,unit:e("period_monthly_short"),popular:!0}]}
308,stripe:{features:[e("plan_feat_stripe_edit"),e("plan_feat_extension_chrome"),e("plan_feat_mobile_pc"),e("plan_feat_stripe_add"),e("plan_feat_stripe_any"),...t],plans:[{id:"free",price:0,unit:e("pricing_card_free_unit"),free:!0},{id:"biweekly",price:19.9,unit:e("period_biweekly_short")},{id:"monthly",price:32.9,unit:e("period_monthly_short"),popular:!0}]}}}function qO(){const{t:e}=jn(),t=$O(e),[n,r]=k.useState("beacons"),[o,c]=k.useState({}),[u,f]=k.useState(!1),[h,p]=k.useState(null),y=Ac(),{isAuthenticated:x,user:v}=fw();k.useEffect(()=>{x&&(async()=>{var C;try{const T=await qt.functions.invoke("getStripeSubscriptions",{});c(((C=T.data)==null?void 0:C.subscriptions)||{})}catch{}})()},[x]);const w=t[n]||{plans:[],features:[]},E=w.plans,j=w.features,S=o[n],_=(S==null?void 0:S.isActive)&&!(S!=null&&S.cancelAtPeriodEnd),P=async C=>{var $,q;if(C==="free"){y(x?"/app":"/signup");return}if(_){y("/app/subscription");return}const I=new URLSearchParams(window.location.search).get("ref")||localStorage.getItem("affiliate_ref")||void 0;if(!x){const M=new URLSearchParams({checkout:n,period:C,...I?{ref:I}:{}});y(`/signup?${M.toString()}`);return}p({app:n,period:C});try{const M=await qt.functions.invoke("createStripeCheckout",{serviceKey:n,billingPeriod:C,source:"pricing_landing",...I?{affiliateCode:I}:{}});if(($=M.data)!=null&&$.sessionUrl){const U=(q=E.find(Z=>Z.id===C))==null?void 0:q.price;OO("START_CHECKOUT",{user_email:v==null?void 0:v.email,custom_data:{currency:"EUR",...U?{value:Number(U)}:{},content_ids:[n]}}),window.location.href=M.data.sessionUrl}else av.error("Erreur lors de la création du paiement"),p(null)}catch(M){console.error(M),av.error("Erreur de paiement"),p(null)}};return l.jsx("section",{id:"pricing",className:"relative py-24 px-4 border-t border-white/5",children:l.jsxs("div",{className:"max-w-5xl mx-auto",children:[l.jsxs(le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[l.jsx("div",{className:"text-xs font-bold text-white uppercase tracking-widest mb-4",children:e("pricing_tag")}),l.jsxs("h2",{className:"font-space font-black text-4xl sm:text-5xl text-white mb-4",children:[e("pricing_title_1"),l.jsx("br",{}),l.jsx("span",{className:"bg-gradient-to-r from-primary via-primary to-accent bg-clip-text text-transparent [filter:drop-shadow(0_4px_24px_rgba(0,0,0,0.85))_drop-shadow(0_2px_8px_rgba(0,0,0,0.9))]",children:e("pricing_title_2")})]}),l.jsx("p",{className:"text-white max-w-xl mx-auto",children:e("pricing_subtitle")})]}),l.jsx(LO,{apps:uv,selected:n,onSelect:r}),l.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 mb-10 max-w-4xl mx-auto",children:E.map((C,T)=>l.jsx(DO,{plan:C,app:uv.find(I=>I.key===n),features:j,index:T,isActive:_,loading:(h==null?void 0:h.app)===n&&(h==null?void 0:h.period)===C.id,onSelect:()=>P(C.id),condition:n==="beacons"?e("pricing_condition_beacons"):n==="shopify"?e("pricing_condition_shopify"):n==="stripe"?e("pricing_condition_stripe"):null},C.id))}),l.jsx(le.div,{initial:{opacity:0,y:6},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4},className:"flex justify-center mb-8",children:l.jsxs("button",{type:"button",onClick:()=>f(!0),className:"group inline-flex items-center gap-2 px-4 py-2 rounded-full border border-white/15 bg-white/5 hover:bg-white/10 hover:border-white/25 transition",children:[l.jsx(Tc,{className:"h-3.5 w-3.5 text-[#a99dff] group-hover:text-white transition"}),l.jsx("span",{className:"text-sm text-white/80 group-hover:text-white",children:e("pricing_bundle_cta")}),l.jsx("span",{className:"text-[10px] font-bold text-white bg-gradient-to-r from-[#5e51ec] to-[#6d61f0] px-2 py-0.5 rounded-full",children:e("pricing_bundle_discount")})]})}),l.jsx(FO,{open:u,onClose:()=>f(!1)}),l.jsx(le.div,{initial:{opacity:0}
308,whileInView:{opacity:1},viewport:{once:!0},className:"flex justify-center",children:l.jsxs("div",{className:"relative inline-flex items-center gap-2.5 px-5 py-2.5 rounded-full bg-[#635bff]/10 border border-[#635bff]/40 overflow-hidden shadow-[0_0_24px_rgba(99,91,255,0.25)]",children:[l.jsx(le.div,{className:"absolute inset-0 bg-gradient-to-r from-transparent via-[#635bff]/20 to-transparent",animate:{x:["-100%","100%"]},transition:{duration:3,repeat:1/0,ease:"linear"}}),l.jsx(Tv,{className:"relative h-3.5 w-3.5 text-[#a5a0ff]"}),l.jsx("span",{className:"relative text-sm text-white font-semibold",children:e("pricing_secure")}),l.jsx("img",{src:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/50cfb176b_image.png",alt:"Stripe",className:"relative h-4 w-auto object-contain"})]})})]})})}const dv={en:[{q:"Is the extension really safe and undetectable?",a:"Yes. The extension modifies the display of your dashboard locally in your browser only. Nothing is sent to Beacons, PayPal or Shopify â they never see the edits. It works exactly like a browser theme, but for numbers."},{q:"Is CODIR a scam or a serious project?",a:"CODIR is a real, actively maintained SaaS with 600+ active creators, secure Stripe payments, a public support team and a full refund policy. Everything is transparent and legal â the extensions are intended for entertainment, parody and design-testing use."},{q:"Will the people I show it to see anything different?",a:"No. The modifications only appear on YOUR screen, in YOUR browser. When you show or screen-share your dashboard, they see the edited numbers exactly as you do â totally indistinguishable from the real interface."},{q:"Do I need any technical skills to use it?",a:"None at all. Install the extension on Chrome, Edge, Brave, Opera or any Chromium browser, log in with your CODIR token, open your dashboard, and edit any number in one click. No code, no config."},{q:"Which dashboards are supported?",a:"Beacons, PayPal, Shopify and Stripe are fully supported today. Each dashboard has its own dedicated extension you can install separately."},{q:"How does the payment work?",a:"Payments are processed through Stripe â the same provider used by Amazon, Shopify and thousands of major companies. Your card details never touch our servers. You can cancel your subscription anytime from your account."},{q:"Can I cancel anytime?",a:"Yes. One click from your subscription page cancels the renewal. You keep access until the end of the period you already paid for â no hidden fees, no questions asked."},{q:"What if the extension stops working after an update?",a:"We monitor Beacons, PayPal and Shopify updates daily and push a new version of the extension within hours if anything breaks. Updates are automatic through the Chrome Web Store."},{q:"Is my account and data protected?",a:"Yes. Your access is protected by a 4-digit PIN, optional 2FA, and a secure token that never changes even when you renew. We never store your Beacons, PayPal or Shopify credentials â the extension runs entirely on your side."},{q:"What if I have a problem or need help?",a:"Our support team replies within 24h through the contact form. You'll also find a full refund policy on the site if the product doesn't fit your needs."}],fr:[{q:"L'extension est-elle vraiment sûre et indétectable ?",a:"Oui. L'extension modifie l'affichage de ton dashboard uniquement en local dans ton navigateur. Rien n'est envoyé à Beacons, PayPal ou Shopify â ils ne voient jamais les modifications. Ãa fonctionne exactement comme un thème de navigateur, mais pour les chiffres."},{q:"CODIR est-il fiable ou est-ce une arnaque ?",a:"CODIR est un vrai SaaS actif avec 600+ créateurs, des paiements sécurisés via Stripe, une équipe support publique et une politique de remboursement claire. Tout est transparent et légal â les extensions sont destinées à un usage de divertissement, parodique et de tests de design."},{q:"Les personnes à qui je montre l'écran verront-elles la différence ?",a:"Non. Les modifications n'apparaissent QUE sur ton écran, dans TON navigateur. Quand tu montres ou partages ton dashboard, ils voient les chiffres modifiés exactement comme toi â indiscernable de l'interface réelle."},{q:"Faut-il des compétences techniques pour l'utiliser ?",a:"Aucune. Tu installes l'extension sur Chrome, Edge, Brave, Opera ou n'importe quel navigateur basé sur Chromium, tu te connectes avec ton token CODIR, tu ouvres ton dashboard, et tu modifies n'importe quel chiffre en un clic. Zéro code, zéro config."},{q:"Quels dashboards sont supportés ?",a:"Beacons, PayPal, Shopify et Stripe sont entièrement supportés aujourd'hui. Chaque dashboard a sa propre extension que tu peux installer séparément."},{q:"Comment fonctionne le paiement ?",a:"Les paiements passent par Stripe â le même prestataire qu'utilisent Amazon, Shopify et des milliers de grandes entreprises. Tes coordonnées bancaires ne touchent jamais nos serveurs. Tu peux résilier à tout moment depuis ton compte."},{q:"Puis-je résilier à tout moment ?",a:"Oui. Un seul clic depuis la page abonnement suffit pour arrêter le renouvellement. Tu gardes l'accès jusqu'à la fin de la période déjà payée â pas de frais cachés, pas de justification à donner."},{q:"Que se passe-t-il si l'extension arrête de fonctionner après une mise à jour ?",a:"On surveille chaque jour les mises à jour de Beacons, PayPal et Shopify et on pousse une nouvelle version de l'extension en quelques heures si nécessaire. Les mises à jour sont automatiques via le Chrome Web Store."},{q:"Mon compte et mes données sont-ils protégés ?",a:"Oui. Ton accès est protégé par un code PIN à 4 chiffres, une authentification 2FA optionnelle et un token sécurisé qui ne change jamais, même au renouvellement. On ne stocke jamais tes identifiants Beacons, PayPal ou Shopify â l'extension tourne entièrement chez toi."},{q:"Et si j'ai un problème ou besoin d'aide ?",a:"Notre support répond sous 24h via le formulaire de contact. Tu trouveras aussi une politique de remboursement complète sur le site si le produit ne te convient pas."}]};function WO(){const{t:e,lang:t}=jn(),[n,r]=k.useState(0),o=dv[t]||dv.en;return l.jsxs("section",{id:"faq",className:"relative py-24 px-4 overflow-hidden",children:[l.jsx("div",{className:"absolute inset-0 pointer-events-none",children:l.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] bg-primary/10 rounded-full blur-[120px]"})}),l.jsxs("div",{className:"relative max-w-3xl mx-auto",children:[l.jsxs(le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-12",children:[l.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-white/5 border border-white/10 text-xs text-white/70 mb-4",children:[l.jsx(Wi,{className:"h-3.5 w-3.5 text-primary"}),"FAQ"]}),l.jsx("h2",{className:"font-space font-bold text-3xl sm:text-4xl md:text-5xl text-white tracking-tight mb-3",children:e("faq_title")}),l.jsx("p",{className:"text-white/70 text-base sm:text-lg",children:e("faq_subtitle")})]}),l.jsx("div",{className:"space-y-3",children:o.map((c,u)=>{const f=n===u;return l.jsxs(le.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:u*.03},className:`rounded-2xl border transition-colors ${f?"bg-white/[0.06] border-primary/40":"bg-white/[0.03] border-white/10 hover:border-white/20"}`,children:[l.jsxs("button",{onClick:()=>r(f?-1:u),className:"w-full flex items-center justify-between gap-4 px-5 py-4 text-left",children:[l.jsx("span",{className:"font-space font-semibold text-white text-sm sm:text-base",children:c.q}),l.jsx("span",{className:`shrink-0 h-7 w-7 rounded-full flex items-center justify-center transition-colors ${f?"bg-primary text-primary-foreground":"bg-white/10 text-white"}`,children:f?l.jsx(Bk,{className:"h-4 w-4"}):l.jsx(Br,{className:"h-4 w-4"})})]}),f&&l.jsx("div",{className:"px-5 pb-5 text-white/75 text-sm sm:text-base leading-relaxed",children:c.a})]},u)})}),l.jsxs(le.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"mt-16 relative rounded-3xl border border-primary/30 bg-gradient-to-br from-primary/20 via-primary/5 to-transparent p-8 sm:p-12 text-center overflow-hidden",children:[l.jsx("div",{className:"absolute -top-20 left-1/2 -translate-x-1/2 w-[300px] h-[300px] bg-primary/30 blur-[100px] rounded-full pointer-events-none"}),l.jsxs("div",{className:"relative",children:[l.jsx("h3",{className:"font-space font-bold text-2xl sm:text-3xl md:text-4xl text-white tracking-tight mb-3",children:e("faq_cta_title")}),l.jsx("p",{className:"text-white/70 mb-8 max-w-lg mx-auto",children:e("faq_cta_desc")}),l.jsx("button",{onClick:()=>qt.auth.redirectToLogin(),className:"px-8 py-3.5 bg-primary hover:bg-primary/90 text-primary-foreground font-bold rounded-full text-base transition-all shadow-xl shadow-primary/30 hover:scale-105",children:e("faq_cta_button")})]})]})]})]})}function HO(){const{t:e}=jn(),t=[{to:"/codir-dashboard",label:e("footer_codir_dashboard")},{to:"/fake-dashboards",label:e("footer_fake_dashboards")},{to:"/cgu",label:e("footer_terms")},{to:"/legals",label:e("footer_legal")},{to:"/refunds",label:e("footer_refunds")},{to:"/contact",label:e("footer_contact")},{to:"/become-affiliate",label:e("footer_affiliate")}];return l.jsx("footer",{className:"relative bg-black/40 backdrop-blur-sm border-t border-white/5 py-10 px-4",children:l.jsxs("div",{className:"max-w-5xl mx-auto flex flex-col gap-6 pb-20 md:pb-0",children:[l.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-4 md:gap-6 text-center md:text-left",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("img",{src:"https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/ba76294fa_CodirLogo.png",alt:"CODIR",className:"h-7 object-contain"}),l.jsx("span",{className:"font-space font-bold text-white",children:"CODIR"})]}),l.jsx("div",{className:"flex flex-wrap items-center justify-center gap-3 sm:gap-4 md:gap-6",children:t.map(n=>l.jsx(xn,{to:n.to,className:"text-xs sm:text-sm text-white hover:text-white transition-colors",children:n.label},n.to))}),l.jsx("p",{className:"text-xs sm:text-sm text-white text-center",children:e("footer_copyright")})]}),l.jsx("div",{className:"border-t border-white/5 pt-5 text-center",children:l.jsxs("p",{className:"text-xs text-white max-w-2xl mx-auto leading-relaxed",children:[e("footer_disclaimer_prefix")," ",l.jsx("strong",{className:"text-white",children:e("footer_disclaimer_bold")}),e("footer_disclaimer_suffix")]})})]})})}function KO(){const t=new URLSearchParams(window.location.search).get("ref");return t&&localStorage.setItem("affiliate_ref",t),l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"fixed inset-0 bg-cover bg-center bg-no-repeat pointer-events-none",style:{backgroundImage:"linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('https://media.base44.com/images/public/69d3bbd071c32e8e2cd61c44/af47b5357_f20-00-00-00.jpg')",zIndex:0}}),l.jsxs("div",{className:"relative min-h-screen",style:{zIndex:1},children:[l.jsx(N3,{}),l.jsx(M3,{}),l.jsx(Q3,{}),l.jsx(Y3,{}),l.jsx(U3,{}),l.jsx(SO,{}),l.jsx(qO,{}),l.jsx(WO,{}),l.jsx(HO,{})]})]})}function GO({onVerified:e}){const[t,n]=k.useState(["","","","","",""]),[r,o]=k.useState(!1),[c,u]=k.useState(!1),[f,h]=k.useState(""),[p,y]=k.useState(0),x=k.useRef([]);k.useEffect(()=>
308{v()},[]),k.useEffect(()=>{if(p>0){const P=setTimeout(()=>y(C=>C-1),1e3);return()=>clearTimeout(P)}},[p]);const v=async()=>{u(!0),h("");try{await qt.functions.invoke("sendTwoFACode",{}),y(60)}catch{h("Erreur lors de l'envoi du code.")}finally{u(!1)}},w=(P,C)=>{var I;if(!/^\d*$/.test(C))return;const T=[...t];if(T[P]=C.slice(-1),n(T),h(""),C&&P<5&&((I=x.current[P+1])==null||I.focus()),C&&P===5){const $=[...T.slice(0,5),C.slice(-1)].join("");$.length===6&&S($)}},E=(P,C)=>{var T;C.key==="Backspace"&&!t[P]&&P>0&&((T=x.current[P-1])==null||T.focus())},j=P=>{const C=P.clipboardData.getData("text").replace(/\D/g,"").slice(0,6);C.length===6&&(n(C.split("")),S(C))},S=async P=>{var C,T,I;o(!0),h("");try{const $=await qt.functions.invoke("verifyTwoFACode",{code:P});(C=$.data)!=null&&C.success?e():(h(((T=$.data)==null?void 0:T.error)||"Code invalide. Réessayez."),n(["","","","","",""]),(I=x.current[0])==null||I.focus())}catch{h("Erreur de vérification.")}finally{o(!1)}},_=()=>{const P=t.join("");P.length===6&&S(P)};return l.jsx("div",{className:"fixed inset-0 bg-background/95 backdrop-blur-sm z-50 flex items-center justify-center p-4",children:l.jsxs(le.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"w-full max-w-md bg-card border border-border rounded-2xl p-8",children:[l.jsxs("div",{className:"flex flex-col items-center text-center mb-8",children:[l.jsx("div",{className:"h-14 w-14 rounded-2xl bg-primary/10 flex items-center justify-center mb-4",children:l.jsx(Rv,{className:"h-7 w-7 text-primary"})}),l.jsx("h2",{className:"font-space font-bold text-2xl text-foreground mb-2",children:"Vérification A2F"}),l.jsx("p",{className:"text-muted-foreground text-sm",children:"Un code à 6 chiffres a été envoyé à votre adresse email. Entrez-le ci-dessous."})]}),l.jsx("div",{className:"flex gap-3 justify-center mb-6",onPaste:j,children:t.map((P,C)=>l.jsx("input",{ref:T=>x.current[C]=T,type:"text",inputMode:"numeric",maxLength:1,value:P,onChange:T=>w(C,T.target.value),onKeyDown:T=>E(C,T),className:`w-12 h-14 text-center text-xl font-bold bg-secondary border rounded-xl text-foreground focus:outline-none focus:ring-2 focus:ring-primary transition-all ${f?"border-destructive":"border-border focus:border-primary"}`,autoFocus:C===0},C))}),f&&l.jsx("p",{className:"text-destructive text-sm text-center mb-4",children:f}),l.jsxs("button",{onClick:_,disabled:r||t.join("").length<6,className:"w-full py-3 bg-primary hover:bg-primary/90 disabled:opacity-50 text-primary-foreground font-semibold rounded-xl transition-all flex items-center justify-center gap-2 mb-4",children:[r?l.jsx(hc,{className:"h-4 w-4 animate-spin"}):null,r?"Vérification...":"Valider"]}),l.jsx("div",{className:"text-center",children:p>0?l.jsxs("p",{className:"text-muted-foreground text-sm",children:["Renvoyer dans ",l.jsxs("span",{className:"text-foreground font-medium",children:[p,"s"]})]}):l.jsxs("button",{onClick:v,disabled:c,className:"text-primary text-sm hover:underline flex items-center gap-1.5 mx-auto",children:[c?l.jsx(hc,{className:"h-3 w-3 animate-spin"}):l.jsx(Pc,{className:"h-3 w-3"}),"Renvoyer le code"]})})]})})}const Aa=e=>k.lazy(async()=>{try{return await e()}catch(t){const n=(t==null?void 0:t.message)||"";if((/Failed to fetch dynamically imported module/i.test(n)||/Importing a module script failed/i.test(n)||/ChunkLoadError/i.test(n))&&!sessionStorage.getItem("chunk_reload_attempted"))return sessionStorage.setItem("chunk_reload_attempted","1"),window.location.reload(),new Promise(()=>{});throw t}}),QO=Aa(()=>Be(()=>import("./Dashboard-Dqzj2aB_.js"),__vite__mapDeps([0,1,2,3,4,5]))),YO=Aa(()=>Be(()=>import("./Profile-BsXEFJqn.js"),__vite__mapDeps([6,7,3]))),XO=Aa(()=>Be(()=>import("./AppSettings-BiJHIQ9y.js"),__vite__mapDeps([8,1,2,9,10,11,3]))),JO=Aa(()=>Be(()=>import("./Subscription-Cb-GBTau.js"),__vite__mapDeps([12,9,1,13,14,11,15]))),ZO=Aa(()=>Be(()=>import("./DashboardLayout-D9FuIvXe.js"),__vite__mapDeps([16,7,3]))),eL=k.lazy(()=>Be(()=>import("./CGU-DqW3b7iU.js"),__vite__mapDeps([17,18]))),tL=k.lazy(()=>Be(()=>import("./Legals-f_V1_aKJ.js"),__vite__mapDeps([19,18,20]))),nL=k.lazy(()=>Be(()=>import("./Refunds-FyeeZl9m.js"),__vite__mapDeps([21,18,20,11,3,22]))),sL=k.lazy(()=>Be(()=>import("./Contact-D23yAEDQ.js"),__vite__mapDeps([23,18,10]))),fv=k.lazy(()=>Be(()=>import("./BecomeAffiliate-Do-D4Au4.js"),__vite__mapDeps([24,11,18,10]))),rL=k.lazy(()=>Be(()=>import("./AffiliateDashboard-DiK41tKA.js"),__vite__mapDeps([25,26,1,11,4,15,13,14]))),iL=k.lazy(()=>Be(()=>import("./AdminAffiliates-Ba1K0t84.js"),__vite__mapDeps([27,26,1,15,11,22,13]))),oL=k.lazy(()=>Be(()=>import("./AdminContactMessages-GwGznSSb.js"),__vite__mapDeps([28,26,1,3,11,13]))),aL=k.lazy(()=>Be(()=>import("./AdminAnalytics-lN9OhIag.js"),__vite__mapDeps([29,13,14]))),lL=k.lazy(()=>Be(()=>
308import("./ResetPin-u910Wp7u.js"),__vite__mapDeps([30,1,2,22]))),cL=k.lazy(()=>Be(()=>import("./SeoFakeDashboards-BUljOcaF.js"),__vite__mapDeps([31,32]))),uL=k.lazy(()=>Be(()=>import("./SeoFakePaypal-jUWWhOdG.js"),__vite__mapDeps([33,32]))),dL=k.lazy(()=>Be(()=>import("./SeoFakeStripe-CMPNnDcI.js"),__vite__mapDeps([34,32]))),fL=k.lazy(()=>Be(()=>import("./SeoFakeBeacons-DmiCVH-N.js"),__vite__mapDeps([35,32]))),hL=k.lazy(()=>Be(()=>import("./SeoFakeShopify-NGRdL7Tw.js"),__vite__mapDeps([36,32]))),pL=k.lazy(()=>Be(()=>import("./SeoFauxDashboards-DzG-PJiL.js"),__vite__mapDeps([37,32]))),mL=k.lazy(()=>Be(()=>import("./SeoFauxPaypal-foSLylq-.js"),__vite__mapDeps([38,32]))),gL=k.lazy(()=>Be(()=>import("./SeoFauxStripe-BC4PNms0.js"),__vite__mapDeps([39,32]))),yL=k.lazy(()=>Be(()=>import("./SeoFauxBeacons-C-HwY9FZ.js"),__vite__mapDeps([40,32]))),xL=k.lazy(()=>Be(()=>import("./SeoFauxShopify-BXOOM3yG.js"),__vite__mapDeps([41,32]))),vf=k.lazy(()=>Be(()=>import("./SeoCodirDashboard-BOvPqdwl.js"),__vite__mapDeps([42,32]))),vL=k.lazy(()=>Be(()=>import("./ThankYou-CrQe-igK.js"),__vite__mapDeps([43,11]))),bL=k.lazy(()=>Be(()=>import("./Merci-gTu77t5H.js"),[])),wL=k.lazy(()=>Be(()=>import("./SignUp-B3rcfurT.js"),__vite__mapDeps([44,45,5]))),_L=k.lazy(()=>Be(()=>import("./SignIn-DDTDfzmT.js"),__vite__mapDeps([46,45,5]))),SL=k.lazy(()=>Be(()=>import("./ForgotPassword-KlEn9Tj1.js"),__vite__mapDeps([47,45,5,11]))),kL=k.lazy(()=>Be(()=>import("./ResetPassword-CiHzIWa2.js"),__vite__mapDeps([48,45,5,11]))),hv=()=>l.jsx("div",{className:"fixed inset-0 bg-background flex items-center justify-center",children:l.jsx("div",{className:"relative w-10 h-10",children:l.jsxs("svg",{className:"animate-spin w-10 h-10",viewBox:"0 0 40 40",fill:"none",children:[l.jsx("circle",{cx:"20",cy:"20",r:"16",stroke:"#f3f4f6",strokeWidth:"3"}),l.jsx("circle",{cx:"20",cy:"20",r:"16",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeDasharray:"60 40"})]})})}),jL=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n,navigateToLogin:r,twoFAPending:o,completeTwoFA:c}=fw();if(t||e)return l.jsx(hv,{});if(n){if(n.type==="user_not_registered")return l.jsx(t4,{});if(n.type==="auth_required")return r(),null}return o?l.jsx(GO,{onVerified:()=>{sessionStorage.setItem("2fa_verified","true"),c()}}):l.jsx(k.Suspense,{fallback:l.jsx(hv,{}),children:l.jsxs(DC,{children:[l.jsx(Ee,{path:"/",element:l.jsx(KO,{})}),l.jsxs(Ee,{element:l.jsx(ZO,{}),children:[l.jsx(Ee,{path:"/app",element:l.jsx(QO,{})}),l.jsx(Ee,{path:"/app/profile",element:l.jsx(YO,{})}),l.jsx(Ee,{path:"/app/settings",element:l.jsx(XO,{})}),l.jsx(Ee,{path:"/app/subscription",element:l.jsx(JO,{})}),l.jsx(Ee,{path:"/app/affiliate",element:l.jsx(rL,{})}),l.jsx(Ee,{path:"/app/admin/affiliates",element:l.jsx(iL,{})}),l.jsx(Ee,{path:"/app/admin/contact",element:l.jsx(oL,{})}),l.jsx(Ee,{path:"/app/admin/analytics",element:l.jsx(aL,{})})]}),l.jsx(Ee,{path:"/cgu",element:l.jsx(eL,{})}),l.jsx(Ee,{path:"/legals",element:l.jsx(tL,{})}),l.jsx(Ee,{path:"/refunds",element:l.jsx(nL,{})}),l.jsx(Ee,{path:"/contact",element:l.jsx(sL,{})}),l.jsx(Ee,{path:"/devenir-affilie",element:l.jsx(fv,{})}),l.jsx(Ee,{path:"/become-affiliate",element:l.jsx(fv,{})}),l.jsx(Ee,{path:"/reset-pin",element:l.jsx(lL,{})}),l.jsx(Ee,{path:"/fake-dashboards",element:l.jsx(cL,{})}),l.jsx(Ee,{path:"/fake-paypal-dashboard",element:l.jsx(uL,{})}),l.jsx(Ee,{path:"/fake-stripe-dashboard",element:l.jsx(dL,{})}),l.jsx(Ee,{path:"/fake-beacons-dashboard",element:l.jsx(fL,{})}),l.jsx(Ee,{path:"/fake-shopify-dashboard",element:l.jsx(hL,{})}),l.jsx(Ee,{path:"/faux-dashboards",element:l.jsx(pL,{})}),l.jsx(Ee,{path:"/faux-paypal-dashboard",element:l.jsx(mL,{})}),l.jsx(Ee,{path:"/faux-stripe-dashboard",element:l.jsx(gL,{})}),l.jsx(Ee,{path:"/faux-beacons-dashboard",element:l.jsx(yL,{})}),l.jsx(Ee,{path:"/faux-shopify-dashboard",element:l.jsx(xL,{})}),l.jsx(Ee,{path:"/codir-dashboard",element:l.jsx(vf,{})}),l.jsx(Ee,{path:"/codir",element:l.jsx(vf,{})}),l.jsx(Ee,{path:"/codir-extension",element:l.jsx(vf,{})}),l.jsx(Ee,{path:"/thank-you",element:l.jsx(vL,{})}),l.jsx(Ee,{path:"/merci",element:l.jsx(bL,{})}),l.jsx(Ee,{path:"/Dashboard",element:l.jsx(Uo,{to:"/app",replace:!0})}),l.jsx(Ee,{path:"/dashboard",element:l.jsx(Uo,{to:"/app",replace:!0})}),l.jsx(Ee,{path:"/Home",element:l.jsx(Uo,{to:"/",replace:!0})}),l.jsx(Ee,{path:"/home",element:l.jsx(Uo,{to:"/",replace:!0})}),l.jsx(Ee,{path:"/signup",element:l.jsx(wL,{})}),l.jsx(Ee,{path:"/signin",element:l.jsx(_L,{})}),l.jsx(Ee,{path:"/forgot-password",element:l.jsx(SL,{})}),l.jsx(Ee,{path:"/reset-password",element:l.jsx(kL,{})}),l.jsx(Ee,{path:"/login",element:l.jsx(Uo,{to:"/signin",replace:!0})}),l.jsx(Ee,{path:"*",element:l.jsx(KT,{})})]})})},CL=()=>{const{displayTheme:e}=YT();return l.jsx("div",{className:e==="windows"?"bg-gray-100 min-h-screen":"",children:l.jsx(GT,{children:l.jsxs(E2,{client:V2,children:[l.jsx(zC,{children:l.jsx(jL,{})}),l.jsx(t2,{})]})})})};function EL(){return l.jsx(QT,{children:l.jsx(e4,{children:l.jsx(CL,{})})})}const q1=(e="")=>/Failed to fetch dynamically imported module/i.test(e)||/Importing a module script failed/i.test(e)||/ChunkLoadError/i.test(e),W1=()=>{const e="chunk_reload_attempted";sessionStorage.getItem(e)||(sessionStorage.setItem(e,"1"),window.location.reload())};window.addEventListener("error",e=>{q1(e==null?void 0:e.message)&&W1()});window.addEventListener("unhandledrejection",e=>{var t;q1((t=e==null?void 0:e.reason)==null?void 0:t.message)&&W1()});ek.createRoot(document.getElementById("root")).render(l.jsx(EL,{}));export{mt as A,FO as B,tr as C,Ck as D,Nk as E,HO as F,Tk as I,hc as L,Uo as N,TL as O,N3 as P,Pc as R,Rv as S,Lv as T,aj as U,mh as W,kn as X,jn as a,qt as b,Ie as c,_a as d,Tv as e,Pv as f,Nc as g,Sy as h,Tc as i,l as j,OO as k,GS as l,le as m,U2 as n,PL as o,Gi as p,bk as q,k as r,Wi as s,av as t,Ac as u,xn as v,fw as w,ck as x,ej as y};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.