PageSourceSearch

https://mikeeats.base44.app/assets/index-CmCQ6on4.js

js mikeeats.base44.app collected 2026-10-03 03:15:33 UTC 712,598 bytes, 379 lines download raw bytes

vendor: 6,297 bytes, lines 1-9
1var ik=Object.defineProperty;var yy=e=>{throw TypeError(e)};var ok=(e,t,n)=>t in e?ik(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ye=(e,t,n)=>ok(e,typeof t!="symbol"?t+"":t,n),zd=(e,t,n)=>t.has(e)||yy("Cannot "+n);var M=(e,t,n)=>(zd(e,t,"read from private field"),n?n.call(e):t.get(e)),ke=(e,t,n)=>t.has(e)?yy("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ce=(e,t,n,s)=>(zd(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),Ie=(e,t,n)=>(zd(e,t,"access private method"),n);var Wl=(e,t,n,s)=>({set _(o){ce(e,t,o,n)},get _(){return M(e,t,s)}});function ak(e,t){for(var n=0;n<t.length;n++){const s=t[n];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in e)){const c=Object.getOwnPropertyDescriptor(s,o);c&&Object.defineProperty(e,o,c.get?c:{enumerable:!0,get:()=>s[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"]'))s(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"&&s(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 s(o){if(o.ep)return;o.ep=!0;const c=n(o);fetch(o.href,c)}})();function Mv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $d={exports:{}},Fo={},Wd={exports:{}},De={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var xy;function lk(){if(xy)return De;xy=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=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"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=y&&k[y]||k["@@iterator"],typeof k=="function"?k:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,b={};function _(k,B,Y){this.props=k,this.context=B,this.refs=b,this.updater=Y||j}_.prototype.isReactComponent={},_.prototype.setState=function(k,B){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,B,"setState")},_.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function w(){}w.prototype=_.prototype;function T(k,B,Y){this.props=k,this.context=B,this.refs=b,this.updater=Y||j}var A=T.prototype=new w;A.constructor=T,N(A,_.prototype),A.isPureReactComponent=!0;var R=Array.isArray,I=Object.prototype.hasOwnProperty,V={current:null},Z={key:!0,ref:!0,__self:!0,__source:!0};function F(k,B,Y){var te,J={},W=null,X=null;if(B!=null)for(te in B.ref!==void 0&&(X=B.ref),B.key!==void 0&&(W=""+B.key),B)I.call(B,te)&&!Z.hasOwnProperty(te)&&(J[te]=B[te]);var ie=arguments.length-2;if(ie===1)J.children=Y;else if(1<ie){for(var oe=Array(ie),Re=0;Re<ie;Re++)oe[Re]=arguments[Re+2];J.children=oe}if(k&&k.defaultProps)for(te in ie=k.defaultProps,ie)J[te]===void 0&&(J[te]=ie[te]);return{$$typeof:e,type:k,key:W,ref:X,props:J,_owner:V.current}}function ne(k,B){return{$$typeof:e,type:k.type,key:B,ref:k.ref,props:k.props,_owner:k._owner}}function ye(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function Ne(k){var B={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(Y){return B[Y]})}var re=/\/+/g;function Se(k,B){return typeof k=="object"&&k!==null&&k.key!=null?Ne(""+k.key):B.toString(36)}function Te(k,B,Y,te,J){var W=typeof k;(W==="undefined"||W==="boolean")&&(k=null);var X=!1;if(k===null)X=!0;else switch(W){case"string":case"number":X=!0;break;case"object":switch(k.$$typeof){case e:case t:X=!0}}if(X)return X=k,J=J(X),k=te===""?"."+Se(X,0):te,R(J)?(Y="",k!=null&&(Y=k.replace(re,"$&/")+"/"),Te(J,B,Y,"",function(Re){return Re})):J!=null&&(ye(J)&&(J=ne(J,Y+(!J.key||X&&X.key===J.key?"":(""+J.key).replace(re,"$&/")+"/")+k)),B.push(J)),1;if(X=0,te=te===""?".":te+":",R(k))for(var ie=0;ie<k.length;ie++){W=k[ie];var oe=te+Se(W,ie);X+=Te(W,B,Y,oe,J)}else if(oe=v(k),typeof oe=="function")for(k=oe.call(k),ie=0;!(W=k.next()).done;)W=W.value,oe=te+Se(W,ie++),X+=Te(W,B,Y,oe,J);else if(W==="object")throw B=String(k),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.");return X}function Ae(k,B,Y){if(k==null)return k;var te=[],J=0;return Te(k,te,"","",function(W){return B.call(Y,W,J++)}),te}function me(k){if(k._status===-1){var B=k._result;B=B(),B.then(function(Y){(k._status===0||k._status===-1)&&(k._status=1,k._result=Y)},function(Y){(k._status===0||k._status===-1)&&(k._status=2,k._result=Y)}),k._status===-1&&(k._status=0,k._result=B)}if(k._status===1)return k._result.default;throw k._result}var xe={current:null},G={transition:null},le={ReactCurrentDispatcher:xe,ReactCurrentBatchConfig:G,ReactCurrentOwner:V};function C(){throw Error("act(...) is not supported in production builds of React.")}return De.Children={map:Ae,forEach:function(k,B,Y){Ae(k,function(){B.apply(this,arguments)},Y)},count:function(k){var B=0;return Ae(k,function(){B++}),B},toArray:function(k){return Ae(k,function(B){return B})||[]},only:function(k){if(!ye(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},De.Component=_,De.Fragment=n,De.Profiler=o,De.PureComponent=T,De.
vendor: 9,327 bytes, lines 9-33
9StrictMode=s,De.Suspense=h,De.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=le,De.act=C,De.cloneElement=function(k,B,Y){if(k==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var te=N({},k.props),J=k.key,W=k.ref,X=k._owner;if(B!=null){if(B.ref!==void 0&&(W=B.ref,X=V.current),B.key!==void 0&&(J=""+B.key),k.type&&k.type.defaultProps)var ie=k.type.defaultProps;for(oe in B)I.call(B,oe)&&!Z.hasOwnProperty(oe)&&(te[oe]=B[oe]===void 0&&ie!==void 0?ie[oe]:B[oe])}var oe=arguments.length-2;if(oe===1)te.children=Y;else if(1<oe){ie=Array(oe);for(var Re=0;Re<oe;Re++)ie[Re]=arguments[Re+2];te.children=ie}return{$$typeof:e,type:k.type,key:J,ref:W,props:te,_owner:X}},De.createContext=function(k){return k={$$typeof:u,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},k.Provider={$$typeof:c,_context:k},k.Consumer=k},De.createElement=F,De.createFactory=function(k){var B=F.bind(null,k);return B.type=k,B},De.createRef=function(){return{current:null}},De.forwardRef=function(k){return{$$typeof:f,render:k}},De.isValidElement=ye,De.lazy=function(k){return{$$typeof:g,_payload:{_status:-1,_result:k},_init:me}},De.memo=function(k,B){return{$$typeof:p,type:k,compare:B===void 0?null:B}},De.startTransition=function(k){var B=G.transition;G.transition={};try{k()}finally{G.transition=B}},De.unstable_act=C,De.useCallback=function(k,B){return xe.current.useCallback(k,B)},De.useContext=function(k){return xe.current.useContext(k)},De.useDebugValue=function(){},De.useDeferredValue=function(k){return xe.current.useDeferredValue(k)},De.useEffect=function(k,B){return xe.current.useEffect(k,B)},De.useId=function(){return xe.current.useId()},De.useImperativeHandle=function(k,B,Y){return xe.current.useImperativeHandle(k,B,Y)},De.useInsertionEffect=function(k,B){return xe.current.useInsertionEffect(k,B)},De.useLayoutEffect=function(k,B){return xe.current.useLayoutEffect(k,B)},De.useMemo=function(k,B){return xe.current.useMemo(k,B)},De.useReducer=function(k,B,Y){return xe.current.useReducer(k,B,Y)},De.useRef=function(k){return xe.current.useRef(k)},De.useState=function(k){return xe.current.useState(k)},De.useSyncExternalStore=function(k,B,Y){return xe.current.useSyncExternalStore(k,B,Y)},De.useTransition=function(){return xe.current.useTransition()},De.version="18.3.1",De}var vy;function kh(){return vy||(vy=1,Wd.exports=lk()),Wd.exports}/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var by;function ck(){if(by)return Fo;by=1;var e=kh(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=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 g,y={},v=null,j=null;p!==void 0&&(v=""+p),h.key!==void 0&&(v=""+h.key),h.ref!==void 0&&(j=h.ref);for(g in h)s.call(h,g)&&!c.hasOwnProperty(g)&&(y[g]=h[g]);if(f&&f.defaultProps)for(g in h=f.defaultProps,h)y[g]===void 0&&(y[g]=h[g]);return{$$typeof:t,type:f,key:v,ref:j,props:y,_owner:o.current}}return Fo.Fragment=n,Fo.jsx=u,Fo.jsxs=u,Fo}var wy;function uk(){return wy||(wy=1,$d.exports=ck()),$d.exports}var l=uk(),E=kh();const vi=Mv(E),dk=ak({__proto__:null,default:vi},[E]);var Hl={},Hd={exports:{}},Gt={},qd={exports:{}},Kd={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var Sy;function fk(){return Sy||(Sy=1,(function(e){function t(G,le){var C=G.length;G.push(le);e:for(;0<C;){var k=C-1>>>1,B=G[k];if(0<o(B,le))G[k]=le,G[C]=B,C=k;else break e}}function n(G){return G.length===0?null:G[0]}function s(G){if(G.length===0)return null;var le=G[0],C=G.pop();if(C!==le){G[0]=C;e:for(var k=0,B=G.length,Y=B>>>1;k<Y;){var te=2*(k+1)-1,J=G[te],W=te+1,X=G[W];if(0>o(J,C))W<B&&0>o(X,J)?(G[k]=X,G[W]=C,k=W):(G[k]=J,G[te]=C,k=te);else if(W<B&&0>o(X,C))G[k]=X,G[W]=C,k=W;else break e}}return le}function o(G,le){var C=G.sortIndex-le.sortIndex;return C!==0?C:G.id-le.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=[],g=1,y=null,v=3,j=!1,N=!1,b=!1,_=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(G){for(var le=n(p);le!==null;){if(le.callback===null)s(p);else if(le.startTime<=G)s(p),le.sortIndex=le.expirationTime,t(h,le);else break;le=n(p)}}function R(G){if(b=!1,A(G),!N)if(n(h)!==null)N=!0,me(I);else{var le=n(p);le!==null&&xe(R,le.startTime-G)}}function I(G,le){N=!1,b&&(b=!1,w(F),F=-1),j=!0;var C=v;try{for(A(le),y=n(h);y!==null&&(!(y.expirationTime>le)||G&&!Ne());){var k=y.callback;if(typeof k=="function"){y.callback=null,v=y.priorityLevel;var B=k(y.expirationTime<=le);le=e.unstable_now(),typeof B=="function"?y.callback=B:y===n(h)&&s(h),A(le)}else s(h);y=n(h)}if(y!==null)var Y=!0;else{var te=n(p);te!==null&&xe(R,te.startTime-le),Y=!1}return Y}finally{y=null,v=C,j=!1}}var V=!1,Z=null,F=-1,ne=5,ye=-1;function Ne(){return!(e.unstable_now()-ye<ne)}function re(){if(Z!==null){var G=e.unstable_now();ye=G;var le=!0;try{le=Z(!0,G)}finally{le?Se():(V=!1,Z=null)}}else V=!1}var Se;if(typeof T=="function")Se=function(){T(re)};else if(typeof MessageChannel<"u"){var Te=new MessageChannel,Ae=Te.port2;Te.port1.onmessage=re,Se=function(){Ae.postMessage(null)}}else Se=function(){_(re,0)};function me(G){Z=G,V||(V=!0,Se())}function xe(G,le){F=_(function(){G(e.unstable_now())},le)}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(G){G.callback=null},e.unstable_continueExecution=function(){N||j||(N=!0,me(I))},e.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<G?Math.floor(1e3/G):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(h)},e.unstable_next=function(G){switch(v){case 1:case 2:case 3:var le=3;break;default:le=v}var C=v;v=le;try{return G()}finally{v=C}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(G,le){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var C=v;v=G;try{return le()}finally{v=C}},e.unstable_scheduleCallback=function(G,le,C){var k=e.unstable_now();switch(typeof C=="object"&&C!==null?(C=C.delay,C=typeof C=="number"&&0<C?k+C:k):C=k,G){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=C+B,G={id:g++,callback:le,priorityLevel:G,startTime:C,expirationTime:B,sortIndex:-1},C>k?(G.sortIndex=C,t(p,G),n(h)===null&&G===n(p)&&(b?(w(F),F=-1):b=!0,xe(R,C-k))):(G.sortIndex=B,t(h,G),N||j||(N=!0,me(I))),G},e.unstable_shouldYield=Ne,e.unstable_wrapCallback=function(G){var le=v;return function(){var C=v;v=le;try{return G.apply(this,arguments)}finally{v=C}}}})(Kd)),Kd}var ky;function hk(){return ky||(ky=1,qd.exports=fk()),qd.exports}/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var jy;function pk(){if(jy)return Gt;jy=1;var e=kh(),t=hk();function n(r){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+r,a=1;a<arguments.length;a++)i+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,o={};function c(r,i){u(r,i),u(r+"Capture",i)}function u(r,i){for(o[r]=i,r=0;r<i.length;r++)s.add(i[r])}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]*$/,g={},y={};function v(r){return h.call(y,r)?!0:h.call(g,r)?!1:p.test(r)?y[r]=!0:(g[r]=!0,!1)}function j(r,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:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function N(r,i,a,d){if(i===null||typeof i>
vendor: 44,946 bytes, lines 33-38
33"u"||j(r,i,a,d))return!0;if(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 b(r,i,a,d,m,x,S){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=d,this.attributeNamespace=m,this.mustUseProperty=a,this.propertyName=r,this.type=i,this.sanitizeURL=x,this.removeEmptyString=S}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){_[r]=new b(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var i=r[0];_[i]=new b(i,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){_[r]=new b(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){_[r]=new b(r,2,!1,r,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(r){_[r]=new b(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){_[r]=new b(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){_[r]=new b(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){_[r]=new b(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){_[r]=new b(r,5,!1,r.toLowerCase(),null,!1,!1)});var w=/[\-:]([a-z])/g;function T(r){return r[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(r){var i=r.replace(w,T);_[i]=new b(i,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var i=r.replace(w,T);_[i]=new b(i,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var i=r.replace(w,T);_[i]=new b(i,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){_[r]=new b(r,1,!1,r.toLowerCase(),null,!1,!1)}),_.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){_[r]=new b(r,1,!1,r.toLowerCase(),null,!0,!0)});function A(r,i,a,d){var m=_.hasOwnProperty(i)?_[i]:null;(m!==null?m.type!==0:d||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(N(i,a,m,d)&&(a=null),d||m===null?v(i)&&(a===null?r.removeAttribute(i):r.setAttribute(i,""+a)):m.mustUseProperty?r[m.propertyName]=a===null?m.type===3?!1:"":a:(i=m.attributeName,d=m.attributeNamespace,a===null?r.removeAttribute(i):(m=m.type,a=m===3||m===4&&a===!0?"":""+a,d?r.setAttributeNS(d,i,a):r.setAttribute(i,a))))}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,I=Symbol.for("react.element"),V=Symbol.for("react.portal"),Z=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),ye=Symbol.for("react.provider"),Ne=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),Se=Symbol.for("react.suspense"),Te=Symbol.for("react.suspense_list"),Ae=Symbol.for("react.memo"),me=Symbol.for("react.lazy"),xe=Symbol.for("react.offscreen"),G=Symbol.iterator;function le(r){return r===null||typeof r!="object"?null:(r=G&&r[G]||r["@@iterator"],typeof r=="function"?r:null)}var C=Object.assign,k;function B(r){if(k===void 0)try{throw Error()}catch(a){var i=a.stack.trim().match(/\n( *(at )?)/);k=i&&i[1]||""}return`
34`+k+r}var Y=!1;function te(r,i){if(!r||Y)return"";Y=!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($){var d=$}Reflect.construct(r,[],i)}else{try{i.call()}catch($){d=$}r.call(i.prototype)}else{try{throw Error()}catch($){d=$}r()}}catch($){if($&&d&&typeof $.stack=="string"){for(var m=$.stack.split(`
35`),x=d.stack.split(`
36`),S=m.length-1,P=x.length-1;1<=S&&0<=P&&m[S]!==x[P];)P--;for(;1<=S&&0<=P;S--,P--)if(m[S]!==x[P]){if(S!==1||P!==1)do if(S--,P--,0>P||m[S]!==x[P]){var O=`
37`+m[S].replace(" at new "," at ");return r.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",r.displayName)),O}while(1<=S&&0<=P);break}}}finally{Y=!1,Error.prepareStackTrace=a}return(r=r?r.displayName||r.name:"")?B(r):""}function J(r){switch(r.tag){case 5:return B(r.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return r=te(r.type,!1),r;case 11:return r=te(r.type.render,!1),r;case 1:return r=te(r.type,!0),r;default:return""}}function W(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case Z:return"Fragment";case V:return"Portal";case ne:return"Profiler";case F:return"StrictMode";case Se:return"Suspense";case Te:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Ne:return(r.displayName||"Context")+".Consumer";case ye:return(r._context.displayName||"Context")+".Provider";case re:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Ae:return i=r.displayName||null,i!==null?i:W(r.type)||"Memo";case me:i=r._payload,r=r._init;try{return W(r(i))}catch{}}return null}function X(r){var i=r.type;switch(r.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 r=i.render,r=r.displayName||r.name||"",i.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(i);case 8:return i===F?"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 ie(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function oe(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Re(r){var i=oe(r)?"checked":"value",a=Object.getOwnPropertyDescriptor(r.constructor.prototype,i),d=""+r[i];if(!r.hasOwnProperty(i)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var m=a.get,x=a.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return m.call(this)},set:function(S){d=""+S,x.call(this,S)}}),Object.defineProperty(r,i,{enumerable:a.enumerable}),{getValue:function(){return d},setValue:function(S){d=""+S},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function Le(r){r._valueTracker||(r._valueTracker=Re(r))}function Oe(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var a=i.getValue(),d="";return r&&(d=oe(r)?r.checked?"true":"false":r.value),r=d,r!==a?(i.setValue(r),!0):!1}function He(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Ce(r,i){var a=i.checked;return C({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??r._wrapperState.initialChecked})}function Ge(r,i){var a=i.defaultValue==null?"":i.defaultValue,d=i.checked!=null?i.checked:i.defaultChecked;a=ie(i.value!=null?i.value:a),r._wrapperState={initialChecked:d,initialValue:a,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function ve(r,i){i=i.checked,i!=null&&A(r,"checked",i,!1)}function qe(r,i){ve(r,i);var a=ie(i.value),d=i.type;if(a!=null)d==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+a):r.value!==""+a&&(r.value=""+a);else if(d==="submit"||d==="reset"){r.removeAttribute("value");return}i.hasOwnProperty("value")?pt(r,i.type,a):i.hasOwnProperty("defaultValue")&&pt(r,i.type,ie(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(r.defaultChecked=!!i.defaultChecked)}function ot(r,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=""+r._wrapperState.initialValue,a||i===r.value||(r.value=i),r.defaultValue=i}a=r.name,a!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,a!==""&&(r.name=a)}function pt(r,i,a){(i!=="number"||He(r.ownerDocument)!==r)&&(a==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+a&&(r.defaultValue=""+a))}var mt=Array.isArray;function An(r,i,a,d){if(r=r.options,i){i={};for(var m=0;m<a.length;m++)i["$"+a[m]]=!0;for(a=0;a<r.length;a++)m=i.hasOwnProperty("$"+r[a].value),r[a].selected!==m&&(r[a].selected=m),m&&d&&(r[a].defaultSelected=!0)}else{for(a=""+ie(a),i=null,m=0;m<r.length;m++){if(r[m].value===a){r[m].selected=!0,d&&(r[m].defaultSelected=!0);return}i!==null||r[m].disabled||(i=r[m])}i!==null&&(i.selected=!0)}}function yn(r,i){if(i.dangerouslySetInnerHTML!=null)throw Error(n(91));return C({},i,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function Ma(r,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(mt(a)){if(1<a.length)throw Error(n(93));a=a[0]}i=a}i==null&&(i=""),a=i}r._wrapperState={initialValue:ie(a)}}function Xi(r,i){var a=ie(i.value),d=ie(i.defaultValue);a!=null&&(a=""+a,a!==r.value&&(r.value=a),i.defaultValue==null&&r.defaultValue!==a&&(r.defaultValue=a)),d!=null&&(r.defaultValue=""+d)}function La(r){var i=r.textContent;i===r._wrapperState.initialValue&&i!==""&&i!==null&&(r.value=i)}function Ji(r){switch(r){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 Zi(r,i){return r==null||r==="http://www.w3.org/1999/xhtml"?Ji(i):r==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var qs,eo=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,a,d,m){MSApp.execUnsafeLocalFunction(function(){return r(i,a,d,m)})}:r})(function(r,i){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=i;else{for(qs=qs||document.createElement("div"),qs.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=qs.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;i.firstChild;)r.appendChild(i.firstChild)}});function hr(r,i){if(i){var a=r.firstChild;if(a&&a===r.lastChild&&a.nodeType===3){a.nodeValue=i;return}}r.textContent=i}var Qn={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},Zc=["Webkit","ms","Moz","O"];Object.keys(Qn).forEach(function(r){Zc.forEach(function(i){i=i+r.charAt(0).toUpperCase()+r.substring(1),Qn[i]=Qn[r]})});function Da(r,i,a){return i==null||typeof i=="boolean"||i===""?"":a||typeof i!="number"||i===0||Qn.hasOwnProperty(r)&&Qn[r]?(""+i).trim():i+"px"}function Op(r,i){r=r.style;for(var a in i)if(i.hasOwnProperty(a)){var d=a.indexOf("--")===0,m=Da(a,i[a],d);a==="float"&&(a="cssFloat"),d?r.setProperty(a,m):r[a]=m}}var u2=C({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 eu(r,i){if(i){if(u2[r]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,r));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 tu(r,i){if(r.indexOf("-")===-1)return typeof i.is=="string";switch(r){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 nu=null;function ru(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var su=null,Ks=null,Gs=null;function Mp(r){if(r=ko(r)){if(typeof su!="function")throw Error(n(280));var i=r.stateNode;i&&(i=il(i),su(r.stateNode,r.type,i))}}function Lp(r){Ks?Gs?Gs.push(r):Gs=[r]:Ks=r}function Dp(){if(Ks){var r=Ks,i=Gs;if(Gs=Ks=null,Mp(r),i)for(r=0;r<i.length;r++)Mp(i[r])}}function Ip(r,i){return r(i)}function Fp(){}var iu=!1;function Bp(r,i,a){if(iu)return r(i,a);iu=!0;try{return Ip(r,i,a)}finally{iu=!1,(Ks!==null||Gs!==null)&&(Fp(),Dp())}}function to(r,i){var a=r.stateNode;if(a===null)return null;var d=il(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)||(r=r.type,d=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!d;break e;default:r=!1}if(r)return null;if(a&&typeof a!="function")throw Error(n(231,i,typeof a));return a}var ou=!1;if(f)try{var no={};Object.defineProperty(no,"passive",{get:function(){ou=!0}}),window.addEventListener("test",no,no),window.removeEventListener("test",no,no)}catch{ou=!1}function d2(r,i,a,d,m,x,S,P,O){var $=Array.prototype.slice.call(arguments,3);try{i.apply(a,$)}catch(q){this.onError(q)}}var ro=!1,Ia=null,Fa=!1,au=null,f2={onError:function(r){ro=!0,Ia=r}};function h2(r,i,a,d,m,x,S,P,O){ro=!1,Ia=null,d2.apply(f2,arguments)}function p2(r,i,a,d,m,x,S,P,O){if(h2.apply(this,arguments),ro){if(ro){var $=Ia;ro=!1,Ia=null}else throw Error(n(198));Fa||(Fa=!0,au=$)}}function rs(r){var i=r,a=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(a=i.return),r=i.return;while(r)}return i.tag===3?a:null}function Up(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function Vp(r){if(rs(r)!==r)throw Error(n(188))}function m2(r){var i=r.alternate;if(!i){if(i=rs(r),i===null)throw Error(n(188));return i!==r?null:r}for(var a=r,d=i;;){var m=a.return;if(m===null)break;var x=m.alternate;if(x===null){if(d=m.return,d!==null){a=d;continue}break}if(m.child===x.child){for(x=m.child;x;){if(x===a)return Vp(m),r;if(x===d)return Vp(m),i;x=x.sibling}throw Error(n(188))}if(a.return!==d.return)a=m,d=x;else{for(var S=!1,P=m.child;P;){if(P===a){S=!0,a=m,d=x;break}if(P===d){S=!0,d=m,a=x;break}P=P.sibling}if(!S){for(P=x.child;P;){if(P===a){S=!0,a=x,d=m;break}if(P===d){S=!0,d=x,a=m;break}P=P.sibling}if(!S)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?r:i}function zp(r){return r=m2(r),r!==null?$p(r):null}function $p(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var i=$p(r);if(i!==null)return i;r=r.sibling}return null}var Wp=t.unstable_scheduleCallback,Hp=t.unstable_cancelCallback,g2=t.unstable_shouldYield,y2=t.unstable_requestPaint,at=t.unstable_now,x2=t.unstable_getCurrentPriorityLevel,lu=t.unstable_ImmediatePriority,qp=t.unstable_UserBlockingPriority,Ba=t.unstable_NormalPriority,v2=t.unstable_LowPriority,Kp=t.unstable_IdlePriority,Ua=null,Rn=null;function b2(r){if(Rn&&typeof Rn.onCommitFiberRoot=="function")try{Rn.onCommitFiberRoot(Ua,r,void 0,(r.current.flags&128)===128)}catch{}}var xn=Math.clz32?Math.clz32:k2,w2=Math.log,S2=Math.LN2;function k2(r){return r>>>=0,r===0?32:31-(w2(r)/S2|0)|0}var Va=64,za=4194304;function so(r){switch(r&-r){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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function $a(r,i){var a=r.pendingLanes;if(a===0)return 0;var d=0,m=r.suspendedLanes,x=r.pingedLanes,S=a&268435455;if(S!==0){var P=S&~m;P!==0?d=so(P):(x&=S,x!==0&&(d=so(x)))}else S=a&~m,S!==0?d=so(S):x!==0&&(d=so(x));if(d===0)return 0;if(i!==0&&i!==d&&(i&m)===0&&(m=d&-d,x=i&-i,m>=x||m===16&&(x&4194240)!==0))return i;if((d&4)!==0&&(d|=a&16),i=r.entangledLanes,i!==0)for(r=r.entanglements,i&=d;0<i;)a=31-xn(i),m=1<<a,d|=r[a],i&=~m;return d}function j2(r,i){switch(r){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 N2(r,i){for(var a=r.suspendedLanes,d=r.pingedLanes,m=r.expirationTimes,x=r.pendingLanes;0<x;){var S=31-xn(x),P=1<<S,O=m[S];O===-1?((P&a)===0||(P&d)!==0)&&(m[S]=j2(P,i)):O<=i&&(r.expiredLanes|=P),x&=~P}}function cu(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function Gp(){var r=Va;return Va<<=1,(Va&4194240)===0&&(Va=64),r}function uu(r){for(var i=[],a=0;31>a;a++)i.push(r);return i}function io(r,i,a){r.pendingLanes|=i,i!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,i=31-xn(i),r[i]=a}function _2(r,i){var a=r.pendingLanes&~i;r.pendingLanes=i,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=i,r.mutableReadLanes&=i,r.entangledLanes&=i,i=r.entanglements;var d=r.eventTimes;for(r=r.expirationTimes;0<a;){var m=31-xn(a),x=1<<m;i[m]=0,d[m]=-1,r[m]=-1,a&=~x}}function du(r,i){var a=r.entangledLanes|=i;for(r=r.entanglements;a;){var d=31-xn(a),m=1<<d;m&i|r[d]&i&&(r[d]|=i),a&=~m}}var Ke=0;function Qp(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Yp,fu,Xp,Jp,Zp,hu=!1,Wa=[],pr=null,mr=null,gr=null,oo=new Map,ao=new Map,yr=[],E2="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 em(r,i){switch(r){case"focusin":case"focusout":pr=null;break;case"dragenter":case"dragleave":mr=null;break;case"mouseover":case"mouseout":gr=null;break;case"pointerover":case"pointerout":oo.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":ao.delete(i.pointerId)}}function lo(r,i,a,d,m,x){return r===null||r.nativeEvent!==x?(r={blockedOn:i,domEventName:a,eventSystemFlags:d,nativeEvent:x,targetContainers:[m]},i!==null&&(i=ko(i),i!==null&&fu(i)),r):(r.eventSystemFlags|=d,i=r.targetContainers,m!==null&&i.indexOf(m)===-1&&i.push(m),r)}function C2(r,i,a,d,m){switch(i){case"focusin":return pr=lo(pr,r,i,a,d,m),!0;case"dragenter":return mr=lo(mr,r,i,a,d,m),!0;case"mouseover":return gr=lo(gr,r,i,a,d,m),!0;case"pointerover":var x=m.pointerId;return oo.set(x,lo(oo.get(x)||null,r,i,a,d,m)),!0;case"gotpointercapture":return x=m.pointerId,ao.set(x,lo(ao.get(x)||null,r,i,a,d,m)),!0}return!1}function tm(r){var i=ss(r.target);if(i!==null){var a=rs(i);if(a!==null){if(i=a.tag,i===13){if(i=Up(a),i!==null){r.blockedOn=i,Zp(r.priority,function(){Xp(a)});return}}else if(i===3&&a.stateNode.current.memoizedState.isDehydrated){r.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Ha(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var a=mu(r.domEventName,r.eventSystemFlags,i[0],r.nativeEvent);if(a===null){a=r.nativeEvent;var d=new a.constructor(a.type,a);nu=d,a.target.dispatchEvent(d),nu=null}else return i=ko(a),i!==null&&fu(i),r.blockedOn=a,!1;i.shift()}return!0}function nm(r,i,a){Ha(r)&&a.delete(i)}function T2(){hu=!1,pr!==null&&Ha(pr)&&(pr=null),mr!==null&&Ha(mr)&&(mr=null),gr!==null&&Ha(gr)&&(gr=null),oo.forEach(nm),ao.forEach(nm)}function co(r,i){r.blockedOn===i&&(r.blockedOn=null,hu||(hu=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,T2)))}function uo(r){function i(m){return co(m,r)}if(0<Wa.length){co(Wa[0],r);for(var a=1;a<Wa.length;a++){var d=Wa[a];d.blockedOn===r&&(d.blockedOn=null)}}for(pr!==null&&co(pr,r),mr!==null&&co(mr,r),gr!==null&&co(gr,r),oo.forEach(i),ao.forEach(i),a=0;a<yr.length;a++)d=yr[a],d.blockedOn===r&&(d.blockedOn=null);for(;0<yr.length&&(a=yr[0],a.blockedOn===null);)tm(a),a.blockedOn===null&&yr.shift()}var Qs=R.ReactCurrentBatchConfig,qa=!0;function P2(r,i,a,d){var m=Ke,x=Qs.transition;Qs.transition=null;try{Ke=1,pu(r,i,a,d)}finally{Ke=m,Qs.transition=x}}function A2(r,i,a,d){var m=Ke,x=Qs.transition;Qs.transition=null;try{Ke=4,pu(r,i,a,d)}finally{Ke=m,Qs.transition=x}}function pu(r,i,a,d){if(qa){var m=mu(r,i,a,d);if(m===null)Ru(r,i,d,Ka,a),em(r,d);else if(C2(m,r,i,a,d))d.stopPropagation();else if(em(r,d),i&4&&-1<E2.indexOf(r)){for(;m!==null;){var x=ko(m);if(x!==null&&Yp(x),x=mu(r,i,a,d),x===null&&Ru(r,i,d,Ka,a),x===m)break;m=x}m!==null&&d.stopPropagation()}else Ru(r,i,d,null,a)}}var Ka=null;function mu(r,i,a,d){if(Ka=null,r=ru(d),r=ss(r),r!==null)if(i=rs(r),i===null)r=null;else if(a=i.tag,a===13){if(r=Up(i),r!==null)return r;r=null}else if(a===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null);return Ka=r,null}function rm(r){switch(r){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(x2()){case lu:return 1;case qp:return 4;case Ba:case v2:return 16;case Kp:return 536870912;default:return 16}default:return 16}}var xr=null,gu=null,Ga=null;function sm(){if(Ga)return Ga;var r,i=gu,a=i.length,d,m="value"in xr?xr.value:xr.textContent,x=m.length;for(r=0;r<a&&i[r]===m[r];r++);var S=a-r;for(d=1;d<=S&&i[a-d]===m[x-d];d++);return Ga=m.slice(r,1<d?1-d:void 0)}function Qa(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function Ya(){return!0}function im(){return!1}function Jt(r){function i(a,d,m,x,S){this._reactName=a,this._targetInst=m,this.type=d,this.nativeEvent=x,this.target=S,this.currentTarget=null;for(var P in r)r.hasOwnProperty(P)&&(a=r[P],this[P]=a?a(x):x[P]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Ya:im,this.isPropagationStopped=im,this}return C(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=Ya)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ya)},persist:function(){},isPersistent:Ya}),i}var Ys={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yu=Jt(Ys),fo=C({},Ys,{view:0,detail:0}),R2=Jt(fo),xu,vu,ho,Xa=C({},fo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wu,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==ho&&(ho&&r.type==="mousemove"?(xu=r.screenX-ho.screenX,vu=r.screenY-ho.screenY):vu=xu=0,ho=r),xu)},movementY:function(r){return"movementY"in r?r.movementY:vu}}),om=Jt(Xa),O2=C({},Xa,{dataTransfer:0}),M2=Jt(O2),L2=C({},fo,{relatedTarget:0}),bu=Jt(L2),D2=C({},Ys,{animationName:0,elapsedTime:0,pseudoElement:0}),I2=Jt(D2),F2=C({},Ys,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),B2=Jt(F2),U2=C({},Ys,{data:0}),am=Jt(U2),V2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},z2={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"},$2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function W2(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=$2[r])?!!i[r]:!1}function wu(){return W2}var H2=C({},fo,{key:function(r){if(r.key){var i=V2[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=Qa(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?z2[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wu,charCode:function(r){return r.type==="keypress"?Qa(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Qa(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),q2=Jt(H2),K2=C({},Xa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lm=Jt(K2),G2=C({},fo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wu}),Q2=Jt(G2),Y2=C({},Ys,{propertyName:0,elapsedTime:0,pseudoElement:0}),X2=Jt(Y2),J2=C({},Xa,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Z2=Jt(J2),eS=[9,13,27,32],Su=f&&"CompositionEvent"in window,po=null;f&&"documentMode"in document&&(po=document.documentMode);var tS=f&&"TextEvent"in window&&!po,cm=f&&(!Su||po&&8<po&&11>=po),um=" ",dm=!1;function fm(r,i){switch(r){case"keyup":return eS.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hm(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Xs=!1;function nS(r,i){switch(r){case"compositionend":return hm(i);case"keypress":return i.which!==32?null:(dm=!0,um);case"textInput":return r=i.data,r===um&&dm?null:r;default:return null}}function rS(r,i){if(Xs)return r==="compositionend"||!Su&&fm(r,i)?(r=sm(),Ga=gu=xr=null,Xs=!1,r):null;switch(r){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 cm&&i.locale!=="ko"?null:i.data;default:return null}}var sS={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 pm(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!sS[r.type]:i==="textarea"}function mm(r,i,a,d){Lp(d),i=nl(i,"onChange"),0<i.length&&(a=new yu("onChange","change",null,a,d),r.push({event:a,listeners:i}))}var mo=null,go=null;function iS(r){Om(r,0)}function Ja(r){var i=ni(r);if(Oe(i))return r}function oS(r,i){if(r==="change")return i}var gm=!1;if(f){var ku;if(f){var ju="oninput"in document;if(!ju){var ym=document.createElement("div");ym.setAttribute("oninput","return;"),ju=typeof ym.oninput=="function"}ku=ju}else ku=!1;gm=ku&&(!document.documentMode||9<document.documentMode)}function xm(){mo&&(mo.detachEvent("onpropertychange",vm),go=mo=null)}function vm(r){if(r.propertyName==="value"&&Ja(go)){var i=[];mm(i,go,r,ru(r)),Bp(iS,i)}}function aS(r,i,a){r==="focusin"?(xm(),mo=i,go=a,mo.attachEvent("onpropertychange",vm)):r==="focusout"&&xm()}function lS(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Ja(go)}function cS(r,i){if(r==="click")return Ja(i)}function uS(r,i){if(r==="input"||r==="change")return Ja(i)}function dS(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var vn=typeof Object.is=="function"?Object.is:dS;function yo(r,i){if(vn(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var a=Object.keys(r),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)||!vn(r[m],i[m]))return!1}return!0}function bm(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function wm(r,i){var a=bm(r);r=0;for(var d;a;){if(a.nodeType===3){if(d=r+a.textContent.length,r<=i&&d>=i)return{node:a,offset:i-r};r=d}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=bm(a)}}function Sm(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?Sm(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function km(){for(var r=window,i=He();i instanceof r.HTMLIFrameElement;){try{var a=typeof i.contentWindow.location.href=="string"}catch{a=!1}if(a)r=i.contentWindow;else break;i=He(r.document)}return i}function Nu(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}function fS(r){var i=km(),a=r.focusedElem,d=r.selectionRange;if(i!==a&&a&&a.ownerDocument&&Sm(a.ownerDocument.documentElement,a)){if(d!==null&&Nu(a)){if(i=d.start,r=d.end,r===void 0&&(r=i),"selectionStart"in a)a.selectionStart=i,a.selectionEnd=Math.min(r,a.value.length);else if(r=(i=a.ownerDocument||document)&&i.defaultView||window,r.getSelection){r=r.getSelection();var m=a.textContent.length,x=Math.min(d.start,m);d=d.end===void 0?x:Math.min(d.end,m),!r.extend&&x>d&&(m=d,d=x,x=m),m=wm(a,x);var S=wm(a,d);m&&S&&(r.rangeCount!==1||r.anchorNode!==m.node||r.anchorOffset!==m.offset||r.focusNode!==S.node||r.focusOffset!==S.offset)&&(i=i.createRange(),i.setStart(m.node,m.offset),r.removeAllRanges(),x>d?(r.addRange(i),r.extend(S.node,S.offset)):(i.setEnd(S.node,S.offset),r.addRange(i)))}}for(i=[],r=a;r=r.parentNode;)r.nodeType===1&&i.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<i.length;a++)r=i[a],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var hS=f&&"documentMode"in document&&11>=document.documentMode,Js=null,_u=null,xo=null,Eu=!1;function jm(r,i,a){var d=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Eu||Js==null||Js!==He(d)||(d=Js,"selectionStart"in d&&Nu(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),xo&&yo(xo,d)||(xo=d,d=nl(_u,"onSelect"),0<d.length&&(i=new yu("onSelect","select",null,i,a),r.push({event:i,listeners:d}),i.target=Js)))}function Za(r,i){var a={};return a[r.toLowerCase()]=i.toLowerCase(),a["Webkit"+r]="webkit"+i,a["Moz"+r]="moz"+i,a}var Zs={animationend:Za("Animation","AnimationEnd"),animationiteration:Za("Animation","AnimationIteration"),animationstart:Za("Animation","AnimationStart"),transitionend:Za("Transition","TransitionEnd")},Cu={},Nm={};f&&(Nm=document.createElement("div").style,"AnimationEvent"in window||(delete Zs.animationend.animation,delete Zs.animationiteration.animation,delete Zs.animationstart.animation),"TransitionEvent"in window||delete Zs.transitionend.transition);function el(r){if(Cu[r])return Cu[r];if(!Zs[r])return r;var i=Zs[r],a;for(a in i)if(i.hasOwnProperty(a)&&a in Nm)return Cu[r]=i[a];return r}var _m=el("animationend"),Em=el("animationiteration"),Cm=el("animationstart"),Tm=el("transitionend"),Pm=new Map,Am="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 vr(r,i){Pm.set(r,i),c(i,[r])}for(var Tu=0;Tu<Am.length;Tu++){var Pu=Am[Tu],pS=Pu.toLowerCase(),mS=Pu[0].toUpperCase()+Pu.slice(1);vr(pS,"on"+mS)}vr(_m,"onAnimationEnd"),vr(Em,"onAnimationIteration"),vr(Cm,"onAnimationStart"),vr("dblclick","onDoubleClick"),vr("focusin","onFocus"),vr("focusout","onBlur"),vr(Tm,"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 vo="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(" "),gS=new Set("cancel close invalid load scroll toggle".split(" ").concat(vo));function Rm(r,i,a){var d=r.type||"unknown-event";r.currentTarget=a,p2(d,i,void 0,r),r.currentTarget=null}function Om(r,i){i=(i&4)!==0;for(var a=0;a<r.length;a++){var d=r[a],m=d.event;d=d.listeners;e:{var x=void 0;if(i)for(var S=d.length-1;0<=S;S--){var P=d[S],O=P.instance,$=P.currentTarget;if(P=P.listener,O!==x&&m.isPropagationStopped())break e;Rm(m,P,$),x=O}else for(S=0;S<d.length;S++){if(P=d[S],O=P.instance,$=P.currentTarget,P=P.listener,O!==x&&m.isPropagationStopped())break e;Rm(m,P,$),x=O}}}if(Fa)throw r=au,Fa=!1,au=null,r}function Xe(r,i){var a=i[Fu];a===void 0&&(a=i[Fu]=new Set);var d=r+"__bubble";a.has(d)||(Mm(i,r,2,!1),a.add(d))}function Au(r,i,a){var d=0;i&&(d|=4),Mm(a,r,d,i)}var tl="_reactListening"+Math.random().toString(36).slice(2);function bo(r){if(!r[tl]){r[tl]=!0,s.forEach(function(a){a!=="selectionchange"&&(gS.has(a)||Au(a,!1,r),Au(a,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[tl]||(i[tl]=!0,Au("selectionchange",!1,i))}}function Mm(r,i,a,d){switch(rm(i)){case 1:var m=P2;break;case 4:m=A2;break;default:m=pu}a=m.bind(null,i,a,r),m=void 0,!ou||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(m=!0),d?m!==void 0?r.addEventListener(i,a,{capture:!0,passive:m}):r.addEventListener(i,a,!0):m!==void 0?r.addEventListener(i,a,{passive:m}):r.addEventListener(i,a,!1)}function Ru(r,i,a,d,m){var x=d;if((i&1)===0&&(i&2)===0&&d!==null)e:for(;;){if(d===null)return;var S=d.tag;if(S===3||S===4){var P=d.stateNode.containerInfo;if(P===m||P.nodeType===8&&P.parentNode===m)break;if(S===4)for(S=d.return;S!==null;){var O=S.tag;if((O===3||O===4)&&(O=S.stateNode.containerInfo,O===m||O.nodeType===8&&O.parentNode===m))return;S=S.return}for(;P!==null;){if(S=ss(P),S===null)return;if(O=S.tag,O===5||O===6){d=x=S;continue e}P=P.parentNode}}d=d.return}Bp(function(){var $=x,q=ru(a),Q=[];e:{var H=Pm.get(r);if(H!==void 0){var ae=yu,de=r;switch(r){case"keypress":if(Qa(a)===0)break e;case"keydown":case"keyup":ae=q2;break;case"focusin":de="focus",ae=bu;break;case"focusout":de="blur",ae=bu;break;case"beforeblur":case"afterblur":ae=bu;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":ae=om;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=M2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=Q2;break;case _m:case Em:case Cm:ae=I2;break;case Tm:ae=X2;break;case"scroll":ae=R2;break;case"wheel":ae=Z2;break;case"copy":case"cut":case"paste":ae=B2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=lm}var pe=(i&4)!==0,lt=!pe&&r==="scroll",U=pe?H!==null?H+"Capture":null:H;pe=[];for(var L=$,z;L!==null;){z=L;var ee=z.stateNode;if(z.tag===5&&ee!==null&&(z=ee,U!==null&&(ee=to(L,U),ee!=null&&pe.push(wo(L,ee,z)))),lt)break;L=L.return}0<pe.length&&(H=new ae(H,de,null,a,q),Q.push({event:H,listeners:pe}))}}if((i&7)===0){e:{if(H=r==="mouseover"||r==="pointerover",ae=r==="mouseout"||r==="pointerout",H&&a!==nu&&(de=a.relatedTarget||a.fromElement)&&(ss(de)||de[Yn]))break e;if((ae||H)&&(H=q.window===q?q:(H=q.ownerDocument)?H.defaultView||H.parentWindow:window,ae?(de=a.relatedTarget||a.toElement,ae=$,de=de?ss(de):null,de!==null&&(lt=rs(de),de!==lt||de.tag!==5&&de.tag!==6)&&(de=null)):(ae=null,de=$),ae!==de)){if(pe=om,ee="onMouseLeave",U="onMouseEnter",L="mouse",(r==="pointerout"||r==="pointerover")&&(pe=lm,ee="onPointerLeave",U="onPointerEnter",L="pointer"),lt=ae==null?H:ni(ae),z=de==null?H:ni(de),H=new pe(ee,L+"leave",ae,a,q),H.target=lt,H.relatedTarget=z,ee=null,ss(q)===$&&(pe=new pe(U,L+"enter",de,a,q),pe.target=z,pe.relatedTarget=lt,ee=pe),lt=ee,ae&&de)t:{for(pe=ae,U=de,L=0,z=pe;z;z=ei(z))L++;for(z=0,ee=U;ee;ee=ei(ee))z++;for(;0<L-z;)pe=ei(pe),L--;for(;0<z-L;)U=ei(U),z--;for(;L--;){if(pe===U||U!==null&&pe===U.alternate)break t;pe=ei(pe),U=ei(U)}pe=null}else pe=null;ae!==null&&Lm(Q,H,ae,pe,!1),de!==null&&lt!==null&&Lm(Q,lt,de,pe,!0)}}e:{if(H=$?ni($):window,ae=H.nodeName&&H.nodeName.toLowerCase(),ae==="select"||ae==="input"&&H.type==="file")var ge=oS;else if(pm(H))if(gm)ge=uS;else{ge=lS;var be=aS}else(ae=H.nodeName)&&ae.toLowerCase()==="input"&&(H.type==="checkbox"||H.type==="radio")&&(ge=cS);if(ge&&(ge=ge(r,$))){mm(Q,ge,a,q);break e}be&&be(r,H,$),r==="focusout"&&(be=H._wrapperState)&&be.controlled&&H.type==="number"&&pt(H,"number",H.value)}switch(be=$?ni($):window,r){case"focusin":(pm(be)||be.contentEditable==="true")&&(Js=be,_u=$,xo=null);break;case"focusout":xo=_u=Js=null;break;case"mousedown":Eu=!0;break;case"contextmenu":case"mouseup":case"dragend":Eu=!1,jm(Q,a,q);break;case"selectionchange":if(hS)break;case"keydown":case"keyup":jm(Q,a,q)}var we;if(Su)e:{switch(r){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else Xs?fm(r,a)&&(_e="onCompositionEnd"):r==="keydown"&&a.keyCode===229&&(_e="onCompositionStart");_e&&(cm&&a.locale!=="ko"&&(Xs||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&Xs&&(we=sm()):(xr=q,gu="value"in xr?xr.value:xr.textContent,Xs=!0)),be=nl($,_e),0<be.length&&(_e=new am(_e,r,null,a,q),Q.push({event:_e,listeners:be}),we?_e.data=we:(we=hm(a),we!==null&&(_e.data=we)))),(we=tS?nS(r,a):rS(r,a))&&($=nl($,"onBeforeInput"),0<$.length&&(q=new am("onBeforeInput","beforeinput",null,a,q),Q.push({event:q,listeners:$}),q.data=we))}Om(Q,i)})}function wo(r,i,a){return{instance:r,listener:i,currentTarget:a}}function nl(r,i){for(var a=i+"Capture",d=[];r!==null;){var m=r,x=m.stateNode;m.tag===5&&x!==null&&(m=x,x=to(r,a),x!=null&&d.unshift(wo(r,x,m)),x=to(r,i),x!=null&&d.push(wo(r,x,m))),r=r.return}return d}function ei(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Lm(r,i,a,d,m){for(var x=i._reactName,S=[];a!==null&&a!==d;){var P=a,O=P.alternate,$=P.stateNode;if(O!==null&&O===d)break;P.tag===5&&$!==null&&(P=$,m?(O=to(a,x),O!=null&&S.unshift(wo(a,O,P))):m||(O=to(a,x),O!=null&&S.push(wo(a,O,P)))),a=a.return}S.length!==0&&r.push({event:i,listeners:S})}var yS=/\r\n?/g,xS=/\u0000|\uFFFD/g;function Dm(r){return(typeof r=="string"?r:""+r).replace(yS,`
38`).replace(xS,"")}function rl(r,i,a){if(i=Dm(i),Dm(r)!==i&&a)throw Error(n(425))}function sl(){}var Ou=null,Mu=null;function Lu(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Du=typeof setTimeout=="function"?setTimeout:void 0,vS=typeof clearTimeout=="function"?clearTimeout:void 0,Im=typeof Promise=="function"?Promise:void 0,bS=typeof queueMicrotask=="function"?queueMicrotask:typeof Im<"u"?function(r){return Im.resolve(null).then(r).catch(wS)}:Du;function wS(r){setTimeout(function(){throw r})}function Iu(r,i){var a=i,d=0;do{var m=a.nextSibling;if(r.removeChild(a),m&&m.nodeType===8)if(a=m.data,a==="/$"){if(d===0){r.removeChild(m),uo(i);return}d--}else a!=="$"&&a!=="$?"&&a!=="$!"||d++;a=m}while(a);uo(i)}function br(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return r}function Fm(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var a=r.data;if(a==="$"||a==="$!"||a==="$?"){if(i===0)return r;i--}else a==="/$"&&i++}r=r.previousSibling}return null}var ti=Math.random().toString(36).slice(2),On="__reactFiber$"+ti,So="__reactProps$"+ti,Yn="__reactContainer$"+ti,Fu="__reactEvents$"+ti,SS="__reactListeners$"+ti,kS="__reactHandles$"+ti;function ss(r){var i=r[On];if(i)return i;for(var a=r.parentNode;a;){if(i=a[Yn]||a[On]){if(a=i.alternate,i.child!==null||a!==null&&a.child!==null)for(r=Fm(r);r!==null;){if(a=r[On])return a;r=Fm(r)}return i}r=a,a=r.parentNode}return null}function ko(r){return r=r[On]||r[Yn],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function ni(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function il(r){return r[So]||null}
vendor: 5,256 bytes, line 38
38var Bu=[],ri=-1;function wr(r){return{current:r}}function Je(r){0>ri||(r.current=Bu[ri],Bu[ri]=null,ri--)}function Qe(r,i){ri++,Bu[ri]=r.current,r.current=i}var Sr={},Tt=wr(Sr),$t=wr(!1),is=Sr;function si(r,i){var a=r.type.contextTypes;if(!a)return Sr;var d=r.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===i)return d.__reactInternalMemoizedMaskedChildContext;var m={},x;for(x in a)m[x]=i[x];return d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=i,r.__reactInternalMemoizedMaskedChildContext=m),m}function Wt(r){return r=r.childContextTypes,r!=null}function ol(){Je($t),Je(Tt)}function Bm(r,i,a){if(Tt.current!==Sr)throw Error(n(168));Qe(Tt,i),Qe($t,a)}function Um(r,i,a){var d=r.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,X(r)||"Unknown",m));return C({},a,d)}function al(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Sr,is=Tt.current,Qe(Tt,r),Qe($t,$t.current),!0}function Vm(r,i,a){var d=r.stateNode;if(!d)throw Error(n(169));a?(r=Um(r,i,is),d.__reactInternalMemoizedMergedChildContext=r,Je($t),Je(Tt),Qe(Tt,r)):Je($t),Qe($t,a)}var Xn=null,ll=!1,Uu=!1;function zm(r){Xn===null?Xn=[r]:Xn.push(r)}function jS(r){ll=!0,zm(r)}function kr(){if(!Uu&&Xn!==null){Uu=!0;var r=0,i=Ke;try{var a=Xn;for(Ke=1;r<a.length;r++){var d=a[r];do d=d(!0);while(d!==null)}Xn=null,ll=!1}catch(m){throw Xn!==null&&(Xn=Xn.slice(r+1)),Wp(lu,kr),m}finally{Ke=i,Uu=!1}}return null}var ii=[],oi=0,cl=null,ul=0,sn=[],on=0,os=null,Jn=1,Zn="";function as(r,i){ii[oi++]=ul,ii[oi++]=cl,cl=r,ul=i}function $m(r,i,a){sn[on++]=Jn,sn[on++]=Zn,sn[on++]=os,os=r;var d=Jn;r=Zn;var m=32-xn(d)-1;d&=~(1<<m),a+=1;var x=32-xn(i)+m;if(30<x){var S=m-m%5;x=(d&(1<<S)-1).toString(32),d>>=S,m-=S,Jn=1<<32-xn(i)+m|a<<m|d,Zn=x+r}else Jn=1<<x|a<<m|d,Zn=r}function Vu(r){r.return!==null&&(as(r,1),$m(r,1,0))}function zu(r){for(;r===cl;)cl=ii[--oi],ii[oi]=null,ul=ii[--oi],ii[oi]=null;for(;r===os;)os=sn[--on],sn[on]=null,Zn=sn[--on],sn[on]=null,Jn=sn[--on],sn[on]=null}var Zt=null,en=null,Ze=!1,bn=null;function Wm(r,i){var a=un(5,null,null,0);a.elementType="DELETED",a.stateNode=i,a.return=r,i=r.deletions,i===null?(r.deletions=[a],r.flags|=16):i.push(a)}function Hm(r,i){switch(r.tag){case 5:var a=r.type;return i=i.nodeType!==1||a.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(r.stateNode=i,Zt=r,en=br(i.firstChild),!0):!1;case 6:return i=r.pendingProps===""||i.nodeType!==3?null:i,i!==null?(r.stateNode=i,Zt=r,en=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(a=os!==null?{id:Jn,overflow:Zn}:null,r.memoizedState={dehydrated:i,treeContext:a,retryLane:1073741824},a=un(18,null,null,0),a.stateNode=i,a.return=r,r.child=a,Zt=r,en=null,!0):!1;default:return!1}}function $u(r){return(r.mode&1)!==0&&(r.flags&128)===0}function Wu(r){if(Ze){var i=en;if(i){var a=i;if(!Hm(r,i)){if($u(r))throw Error(n(418));i=br(a.nextSibling);var d=Zt;i&&Hm(r,i)?Wm(d,a):(r.flags=r.flags&-4097|2,Ze=!1,Zt=r)}}else{if($u(r))throw Error(n(418));r.flags=r.flags&-4097|2,Ze=!1,Zt=r}}}function qm(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;Zt=r}function dl(r){if(r!==Zt)return!1;if(!Ze)return qm(r),Ze=!0,!1;var i;if((i=r.tag!==3)&&!(i=r.tag!==5)&&(i=r.type,i=i!=="head"&&i!=="body"&&!Lu(r.type,r.memoizedProps)),i&&(i=en)){if($u(r))throw Km(),Error(n(418));for(;i;)Wm(r,i),i=br(i.nextSibling)}if(qm(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,i=0;r;){if(r.nodeType===8){var a=r.data;if(a==="/$"){if(i===0){en=br(r.nextSibling);break e}i--}else a!=="$"&&a!=="$!"&&a!=="$?"||i++}r=r.nextSibling}en=null}}else en=Zt?br(r.stateNode.nextSibling):null;return!0}function Km(){for(var r=en;r;)r=br(r.nextSibling)}function ai(){en=Zt=null,Ze=!1}function Hu(r){bn===null?bn=[r]:bn.push(r)}var NS=R.ReactCurrentBatchConfig;function jo(r,i,a){if(r=a.ref,r!==null&&typeof r!="function"&&typeof r!="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,r));var m=d,x=""+r;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===x?i.ref:(i=function(S){var P=m.refs;S===null?delete P[x]:P[x]=S},i._stringRef=x,i)}if(typeof r!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,r))}return r}function fl(r,i){throw r=Object.prototype.toString.call(i),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r))}function Gm(r){var i=r._init;return i(r._payload)}function Qm(r){function i(U,L){if(r){var z=U.deletions;z===null?(U.deletions=[L],U.flags|=16):z.push(L)}}function a(U,L){if(!r)return null;for(;L!==null;)i(U,L),L=L.sibling;return null}function d(U,L){for(U=new Map;L!==null;)L.key!==null?U.set(L.key,L):U.set(L.index,L),L=L.sibling;return U}function m(U,L){return U=Ar(U,L),U.index=0,U.sibling=null,U}function x(U,L,z){return U.index=z,r?(z=U.alternate,z!==null?(z=z.index,z<L?(U.flags|=2,L):z):(U.flags|=2,L)):(U.flags|=1048576,L)}function S(U){return r&&U.alternate===null&&(U.flags|=2),U}function P(U,L,z,ee){return L===null||L.tag!==6?(L=Dd(z,U.mode,ee),L.return=U,L):(L=m(L,z),L.return=U,L)}function O(U,L,z,ee){var ge=z.type;
vendor: 4,527 bytes, line 38
38return ge===Z?q(U,L,z.props.children,ee,z.key):L!==null&&(L.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===me&&Gm(ge)===L.type)?(ee=m(L,z.props),ee.ref=jo(U,L,z),ee.return=U,ee):(ee=Dl(z.type,z.key,z.props,null,U.mode,ee),ee.ref=jo(U,L,z),ee.return=U,ee)}function $(U,L,z,ee){return L===null||L.tag!==4||L.stateNode.containerInfo!==z.containerInfo||L.stateNode.implementation!==z.implementation?(L=Id(z,U.mode,ee),L.return=U,L):(L=m(L,z.children||[]),L.return=U,L)}function q(U,L,z,ee,ge){return L===null||L.tag!==7?(L=ms(z,U.mode,ee,ge),L.return=U,L):(L=m(L,z),L.return=U,L)}function Q(U,L,z){if(typeof L=="string"&&L!==""||typeof L=="number")return L=Dd(""+L,U.mode,z),L.return=U,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case I:return z=Dl(L.type,L.key,L.props,null,U.mode,z),z.ref=jo(U,null,L),z.return=U,z;case V:return L=Id(L,U.mode,z),L.return=U,L;case me:var ee=L._init;return Q(U,ee(L._payload),z)}if(mt(L)||le(L))return L=ms(L,U.mode,z,null),L.return=U,L;fl(U,L)}return null}function H(U,L,z,ee){var ge=L!==null?L.key:null;if(typeof z=="string"&&z!==""||typeof z=="number")return ge!==null?null:P(U,L,""+z,ee);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case I:return z.key===ge?O(U,L,z,ee):null;case V:return z.key===ge?$(U,L,z,ee):null;case me:return ge=z._init,H(U,L,ge(z._payload),ee)}if(mt(z)||le(z))return ge!==null?null:q(U,L,z,ee,null);fl(U,z)}return null}function ae(U,L,z,ee,ge){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return U=U.get(z)||null,P(L,U,""+ee,ge);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case I:return U=U.get(ee.key===null?z:ee.key)||null,O(L,U,ee,ge);case V:return U=U.get(ee.key===null?z:ee.key)||null,$(L,U,ee,ge);case me:var be=ee._init;return ae(U,L,z,be(ee._payload),ge)}if(mt(ee)||le(ee))return U=U.get(z)||null,q(L,U,ee,ge,null);fl(L,ee)}return null}function de(U,L,z,ee){for(var ge=null,be=null,we=L,_e=L=0,wt=null;we!==null&&_e<z.length;_e++){we.index>_e?(wt=we,we=null):wt=we.sibling;var Ve=H(U,we,z[_e],ee);if(Ve===null){we===null&&(we=wt);break}r&&we&&Ve.alternate===null&&i(U,we),L=x(Ve,L,_e),be===null?ge=Ve:be.sibling=Ve,be=Ve,we=wt}if(_e===z.length)return a(U,we),Ze&&as(U,_e),ge;if(we===null){for(;_e<z.length;_e++)we=Q(U,z[_e],ee),we!==null&&(L=x(we,L,_e),be===null?ge=we:be.sibling=we,be=we);return Ze&&as(U,_e),ge}for(we=d(U,we);_e<z.length;_e++)wt=ae(we,U,_e,z[_e],ee),wt!==null&&(r&&wt.alternate!==null&&we.delete(wt.key===null?_e:wt.key),L=x(wt,L,_e),be===null?ge=wt:be.sibling=wt,be=wt);return r&&we.forEach(function(Rr){return i(U,Rr)}),Ze&&as(U,_e),ge}function pe(U,L,z,ee){var ge=le(z);if(typeof ge!="function")throw Error(n(150));if(z=ge.call(z),z==null)throw Error(n(151));for(var be=ge=null,we=L,_e=L=0,wt=null,Ve=z.next();we!==null&&!Ve.done;_e++,Ve=z.next()){we.index>_e?(wt=we,we=null):wt=we.sibling;var Rr=H(U,we,Ve.value,ee);if(Rr===null){we===null&&(we=wt);break}r&&we&&Rr.alternate===null&&i(U,we),L=x(Rr,L,_e),be===null?ge=Rr:be.sibling=Rr,be=Rr,we=wt}if(Ve.done)return a(U,we),Ze&&as(U,_e),ge;if(we===null){for(;!Ve.done;_e++,Ve=z.next())Ve=Q(U,Ve.value,ee),Ve!==null&&(L=x(Ve,L,_e),be===null?ge=Ve:be.sibling=Ve,be=Ve);return Ze&&as(U,_e),ge}for(we=d(U,we);!Ve.done;_e++,Ve=z.next())Ve=ae(we,U,_e,Ve.value,ee),Ve!==null&&(r&&Ve.alternate!==null&&we.delete(Ve.key===null?_e:Ve.key),L=x(Ve,L,_e),be===null?ge=Ve:be.sibling=Ve,be=Ve);return r&&we.forEach(function(sk){return i(U,sk)}),Ze&&as(U,_e),ge}function lt(U,L,z,ee){if(typeof z=="object"&&z!==null&&z.type===Z&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case I:e:{for(var ge=z.key,be=L;be!==null;){if(be.key===ge){if(ge=z.type,ge===Z){if(be.tag===7){a(U,be.sibling),L=m(be,z.props.children),L.return=U,U=L;break e}}else if(be.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===me&&Gm(ge)===be.type){a(U,be.sibling),L=m(be,z.props),L.ref=jo(U,be,z),L.return=U,U=L;break e}a(U,be);break}else i(U,be);be=be.sibling}z.type===Z?(L=ms(z.props.children,U.mode,ee,z.key),L.return=U,U=L):(ee=Dl(z.type,z.key,z.props,null,U.mode,ee),ee.ref=jo(U,L,z),ee.return=U,U=ee)}return S(U);case V:e:{for(be=z.key;L!==null;){if(L.key===be)if(L.tag===4&&L.stateNode.containerInfo===z.containerInfo&&L.stateNode.implementation===z.implementation){a(U,L.sibling),L=m(L,z.children||[]),L.return=U,U=L;break e}else{a(U,L);break}else i(U,L);L=L.sibling}L=Id(z,U.mode,ee),L.return=U,U=L}return S(U);case me:return be=z._init,lt(U,L,be(z._payload),ee)}if(mt(z))return de(U,L,z,ee);if(le(z))return pe(U,L,z,ee);
vendor: 4,300 bytes, line 38
38fl(U,z)}return typeof z=="string"&&z!==""||typeof z=="number"?(z=""+z,L!==null&&L.tag===6?(a(U,L.sibling),L=m(L,z),L.return=U,U=L):(a(U,L),L=Dd(z,U.mode,ee),L.return=U,U=L),S(U)):a(U,L)}return lt}var li=Qm(!0),Ym=Qm(!1),hl=wr(null),pl=null,ci=null,qu=null;function Ku(){qu=ci=pl=null}function Gu(r){var i=hl.current;Je(hl),r._currentValue=i}function Qu(r,i,a){for(;r!==null;){var d=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,d!==null&&(d.childLanes|=i)):d!==null&&(d.childLanes&i)!==i&&(d.childLanes|=i),r===a)break;r=r.return}}function ui(r,i){pl=r,qu=ci=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&i)!==0&&(Ht=!0),r.firstContext=null)}function an(r){var i=r._currentValue;if(qu!==r)if(r={context:r,memoizedValue:i,next:null},ci===null){if(pl===null)throw Error(n(308));ci=r,pl.dependencies={lanes:0,firstContext:r}}else ci=ci.next=r;return i}var ls=null;function Yu(r){ls===null?ls=[r]:ls.push(r)}function Xm(r,i,a,d){var m=i.interleaved;return m===null?(a.next=a,Yu(i)):(a.next=m.next,m.next=a),i.interleaved=a,er(r,d)}function er(r,i){r.lanes|=i;var a=r.alternate;for(a!==null&&(a.lanes|=i),a=r,r=r.return;r!==null;)r.childLanes|=i,a=r.alternate,a!==null&&(a.childLanes|=i),a=r,r=r.return;return a.tag===3?a.stateNode:null}var jr=!1;function Xu(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jm(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function tr(r,i){return{eventTime:r,lane:i,tag:0,payload:null,callback:null,next:null}}function Nr(r,i,a){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(Ue&2)!==0){var m=d.pending;return m===null?i.next=i:(i.next=m.next,m.next=i),d.pending=i,er(r,a)}return m=d.interleaved,m===null?(i.next=i,Yu(d)):(i.next=m.next,m.next=i),d.interleaved=i,er(r,a)}function ml(r,i,a){if(i=i.updateQueue,i!==null&&(i=i.shared,(a&4194240)!==0)){var d=i.lanes;d&=r.pendingLanes,a|=d,i.lanes=a,du(r,a)}}function Zm(r,i){var a=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,a===d)){var m=null,x=null;if(a=a.firstBaseUpdate,a!==null){do{var S={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};x===null?m=x=S:x=x.next=S,a=a.next}while(a!==null);x===null?m=x=i:x=x.next=i}else m=x=i;a={baseState:d.baseState,firstBaseUpdate:m,lastBaseUpdate:x,shared:d.shared,effects:d.effects},r.updateQueue=a;return}r=a.lastBaseUpdate,r===null?a.firstBaseUpdate=i:r.next=i,a.lastBaseUpdate=i}function gl(r,i,a,d){var m=r.updateQueue;jr=!1;var x=m.firstBaseUpdate,S=m.lastBaseUpdate,P=m.shared.pending;if(P!==null){m.shared.pending=null;var O=P,$=O.next;O.next=null,S===null?x=$:S.next=$,S=O;var q=r.alternate;q!==null&&(q=q.updateQueue,P=q.lastBaseUpdate,P!==S&&(P===null?q.firstBaseUpdate=$:P.next=$,q.lastBaseUpdate=O))}if(x!==null){var Q=m.baseState;S=0,q=$=O=null,P=x;do{var H=P.lane,ae=P.eventTime;if((d&H)===H){q!==null&&(q=q.next={eventTime:ae,lane:0,tag:P.tag,payload:P.payload,callback:P.callback,next:null});e:{var de=r,pe=P;switch(H=i,ae=a,pe.tag){case 1:if(de=pe.payload,typeof de=="function"){Q=de.call(ae,Q,H);break e}Q=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=pe.payload,H=typeof de=="function"?de.call(ae,Q,H):de,H==null)break e;Q=C({},Q,H);break e;case 2:jr=!0}}P.callback!==null&&P.lane!==0&&(r.flags|=64,H=m.effects,H===null?m.effects=[P]:H.push(P))}else ae={eventTime:ae,lane:H,tag:P.tag,payload:P.payload,callback:P.callback,next:null},q===null?($=q=ae,O=Q):q=q.next=ae,S|=H;if(P=P.next,P===null){if(P=m.shared.pending,P===null)break;H=P,P=H.next,H.next=null,m.lastBaseUpdate=H,m.shared.pending=null}}while(!0);if(q===null&&(O=Q),m.baseState=O,m.firstBaseUpdate=$,m.lastBaseUpdate=q,i=m.shared.interleaved,i!==null){m=i;do S|=m.lane,m=m.next;while(m!==i)}else x===null&&(m.shared.lanes=0);ds|=S,r.lanes=S,r.memoizedState=Q}}function eg(r,i,a){if(r=i.effects,i.effects=null,r!==null)for(i=0;i<r.length;i++){var d=r[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 No={},Mn=wr(No),_o=wr(No),Eo=wr(No);function cs(r){if(r===No)throw Error(n(174));return r}
vendor: 7,994 bytes, line 38
38function Ju(r,i){switch(Qe(Eo,i),Qe(_o,r),Qe(Mn,No),r=i.nodeType,r){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:Zi(null,"");break;default:r=r===8?i.parentNode:i,i=r.namespaceURI||null,r=r.tagName,i=Zi(i,r)}Je(Mn),Qe(Mn,i)}function di(){Je(Mn),Je(_o),Je(Eo)}function tg(r){cs(Eo.current);var i=cs(Mn.current),a=Zi(i,r.type);i!==a&&(Qe(_o,r),Qe(Mn,a))}function Zu(r){_o.current===r&&(Je(Mn),Je(_o))}var et=wr(0);function yl(r){for(var i=r;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===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var ed=[];function td(){for(var r=0;r<ed.length;r++)ed[r]._workInProgressVersionPrimary=null;ed.length=0}var xl=R.ReactCurrentDispatcher,nd=R.ReactCurrentBatchConfig,us=0,tt=null,gt=null,vt=null,vl=!1,Co=!1,To=0,_S=0;function Pt(){throw Error(n(321))}function rd(r,i){if(i===null)return!1;for(var a=0;a<i.length&&a<r.length;a++)if(!vn(r[a],i[a]))return!1;return!0}function sd(r,i,a,d,m,x){if(us=x,tt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,xl.current=r===null||r.memoizedState===null?PS:AS,r=a(d,m),Co){x=0;do{if(Co=!1,To=0,25<=x)throw Error(n(301));x+=1,vt=gt=null,i.updateQueue=null,xl.current=RS,r=a(d,m)}while(Co)}if(xl.current=Sl,i=gt!==null&&gt.next!==null,us=0,vt=gt=tt=null,vl=!1,i)throw Error(n(300));return r}function id(){var r=To!==0;return To=0,r}function Ln(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vt===null?tt.memoizedState=vt=r:vt=vt.next=r,vt}function ln(){if(gt===null){var r=tt.alternate;r=r!==null?r.memoizedState:null}else r=gt.next;var i=vt===null?tt.memoizedState:vt.next;if(i!==null)vt=i,gt=r;else{if(r===null)throw Error(n(310));gt=r,r={memoizedState:gt.memoizedState,baseState:gt.baseState,baseQueue:gt.baseQueue,queue:gt.queue,next:null},vt===null?tt.memoizedState=vt=r:vt=vt.next=r}return vt}function Po(r,i){return typeof i=="function"?i(r):i}function od(r){var i=ln(),a=i.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var d=gt,m=d.baseQueue,x=a.pending;if(x!==null){if(m!==null){var S=m.next;m.next=x.next,x.next=S}d.baseQueue=m=x,a.pending=null}if(m!==null){x=m.next,d=d.baseState;var P=S=null,O=null,$=x;do{var q=$.lane;if((us&q)===q)O!==null&&(O=O.next={lane:0,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),d=$.hasEagerState?$.eagerState:r(d,$.action);else{var Q={lane:q,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null};O===null?(P=O=Q,S=d):O=O.next=Q,tt.lanes|=q,ds|=q}$=$.next}while($!==null&&$!==x);O===null?S=d:O.next=P,vn(d,i.memoizedState)||(Ht=!0),i.memoizedState=d,i.baseState=S,i.baseQueue=O,a.lastRenderedState=d}if(r=a.interleaved,r!==null){m=r;do x=m.lane,tt.lanes|=x,ds|=x,m=m.next;while(m!==r)}else m===null&&(a.lanes=0);return[i.memoizedState,a.dispatch]}function ad(r){var i=ln(),a=i.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var d=a.dispatch,m=a.pending,x=i.memoizedState;if(m!==null){a.pending=null;var S=m=m.next;do x=r(x,S.action),S=S.next;while(S!==m);vn(x,i.memoizedState)||(Ht=!0),i.memoizedState=x,i.baseQueue===null&&(i.baseState=x),a.lastRenderedState=x}return[x,d]}function ng(){}function rg(r,i){var a=tt,d=ln(),m=i(),x=!vn(d.memoizedState,m);if(x&&(d.memoizedState=m,Ht=!0),d=d.queue,ld(og.bind(null,a,d,r),[r]),d.getSnapshot!==i||x||vt!==null&&vt.memoizedState.tag&1){if(a.flags|=2048,Ao(9,ig.bind(null,a,d,m,i),void 0,null),bt===null)throw Error(n(349));(us&30)!==0||sg(a,i,m)}return m}function sg(r,i,a){r.flags|=16384,r={getSnapshot:i,value:a},i=tt.updateQueue,i===null?(i={lastEffect:null,stores:null},tt.updateQueue=i,i.stores=[r]):(a=i.stores,a===null?i.stores=[r]:a.push(r))}function ig(r,i,a,d){i.value=a,i.getSnapshot=d,ag(i)&&lg(r)}function og(r,i,a){return a(function(){ag(i)&&lg(r)})}function ag(r){var i=r.getSnapshot;r=r.value;try{var a=i();return!vn(r,a)}catch{return!0}}function lg(r){var i=er(r,1);i!==null&&jn(i,r,1,-1)}function cg(r){var i=Ln();return typeof r=="function"&&(r=r()),i.memoizedState=i.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:r},i.queue=r,r=r.dispatch=TS.bind(null,tt,r),[i.memoizedState,r]}function Ao(r,i,a,d){return r={tag:r,create:i,destroy:a,deps:d,next:null},i=tt.updateQueue,i===null?(i={lastEffect:null,stores:null},tt.updateQueue=i,i.lastEffect=r.next=r):(a=i.lastEffect,a===null?i.lastEffect=r.next=r:(d=a.next,a.next=r,r.next=d,i.lastEffect=r)),r}function ug(){return ln().memoizedState}function bl(r,i,a,d){var m=Ln();tt.flags|=r,m.memoizedState=Ao(1|i,a,void 0,d===void 0?null:d)}function wl(r,i,a,d){var m=ln();d=d===void 0?null:d;var x=void 0;if(gt!==null){var S=gt.memoizedState;if(x=S.destroy,d!==null&&rd(d,S.deps)){m.memoizedState=Ao(i,a,x,d);return}}tt.flags|=r,m.memoizedState=Ao(1|i,a,x,d)}function dg(r,i){return bl(8390656,8,r,i)}function ld(r,i){return wl(2048,8,r,i)}function fg(r,i){return wl(4,2,r,i)}function hg(r,i){return wl(4,4,r,i)}function pg(r,i){if(typeof i=="function")return r=r(),i(r),function(){i(null)};if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function mg(r,i,a){return a=a!=null?a.concat([r]):null,wl(4,4,pg.bind(null,i,r),a)}function cd(){}function gg(r,i){var a=ln();i=i===void 0?null:i;var d=a.memoizedState;return d!==null&&i!==null&&rd(i,d[1])?d[0]:(a.memoizedState=[r,i],r)}function yg(r,i){var a=ln();i=i===void 0?null:i;var d=a.memoizedState;return d!==null&&i!==null&&rd(i,d[1])?d[0]:(r=r(),a.memoizedState=[r,i],r)}function xg(r,i,a){return(us&21)===0?(r.baseState&&(r.baseState=!1,Ht=!0),r.memoizedState=a):(vn(a,i)||(a=Gp(),tt.lanes|=a,ds|=a,r.baseState=!0),i)}function ES(r,i){var a=Ke;Ke=a!==0&&4>a?a:4,r(!0);var d=nd.transition;nd.transition={};try{r(!1),i()}finally{Ke=a,nd.transition=d}}function vg(){return ln().memoizedState}function CS(r,i,a){var d=Tr(r);if(a={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null},bg(r))wg(i,a);else if(a=Xm(r,i,a,d),a!==null){var m=Ut();jn(a,r,d,m),Sg(a,i,d)}}function TS(r,i,a){var d=Tr(r),m={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null};if(bg(r))wg(i,m);else{var x=r.alternate;if(r.lanes===0&&(x===null||x.lanes===0)&&(x=i.lastRenderedReducer,x!==null))try{var S=i.lastRenderedState,P=x(S,a);if(m.hasEagerState=!0,m.eagerState=P,vn(P,S)){var O=i.interleaved;O===null?(m.next=m,Yu(i)):(m.next=O.next,O.next=m),i.interleaved=m;return}}catch{}finally{}a=Xm(r,i,m,d),a!==null&&(m=Ut(),jn(a,r,d,m),Sg(a,i,d))}}function bg(r){var i=r.alternate;return r===tt||i!==null&&i===tt}function wg(r,i){Co=vl=!0;var a=r.pending;a===null?i.next=i:(i.next=a.next,a.next=i),r.pending=i}function Sg(r,i,a){if((a&4194240)!==0){var d=i.lanes;d&=r.pendingLanes,a|=d,i.lanes=a,du(r,a)}}var Sl={readContext:an,useCallback:Pt,useContext:Pt,useEffect:Pt,useImperativeHandle:Pt,useInsertionEffect:Pt,useLayoutEffect:Pt,useMemo:Pt,useReducer:Pt,useRef:Pt,useState:Pt,useDebugValue:Pt,useDeferredValue:Pt,useTransition:Pt,useMutableSource:Pt,useSyncExternalStore:Pt,useId:Pt,unstable_isNewReconciler:!1},PS={readContext:an,useCallback:function(r,i){return Ln().memoizedState=[r,i===void 0?null:i],r},useContext:an,useEffect:dg,useImperativeHandle:function(r,i,a){return a=a!=null?a.concat([r]):null,bl(4194308,4,pg.bind(null,i,r),a)},useLayoutEffect:function(r,i){return bl(4194308,4,r,i)},useInsertionEffect:function(r,i){return bl(4,2,r,i)},useMemo:function(r,i){var a=Ln();return i=i===void 0?null:i,r=r(),a.memoizedState=[r,i],r},useReducer:function(r,i,a){var d=Ln();return i=a!==void 0?a(i):i,d.memoizedState=d.baseState=i,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:i},d.queue=r,r=r.dispatch=CS.bind(null,tt,r),[d.memoizedState,r]}
vendor: 10,149 bytes, lines 38-40
38,useRef:function(r){var i=Ln();return r={current:r},i.memoizedState=r},useState:cg,useDebugValue:cd,useDeferredValue:function(r){return Ln().memoizedState=r},useTransition:function(){var r=cg(!1),i=r[0];return r=ES.bind(null,r[1]),Ln().memoizedState=r,[i,r]},useMutableSource:function(){},useSyncExternalStore:function(r,i,a){var d=tt,m=Ln();if(Ze){if(a===void 0)throw Error(n(407));a=a()}else{if(a=i(),bt===null)throw Error(n(349));(us&30)!==0||sg(d,i,a)}m.memoizedState=a;var x={value:a,getSnapshot:i};return m.queue=x,dg(og.bind(null,d,x,r),[r]),d.flags|=2048,Ao(9,ig.bind(null,d,x,a,i),void 0,null),a},useId:function(){var r=Ln(),i=bt.identifierPrefix;if(Ze){var a=Zn,d=Jn;a=(d&~(1<<32-xn(d)-1)).toString(32)+a,i=":"+i+"R"+a,a=To++,0<a&&(i+="H"+a.toString(32)),i+=":"}else a=_S++,i=":"+i+"r"+a.toString(32)+":";return r.memoizedState=i},unstable_isNewReconciler:!1},AS={readContext:an,useCallback:gg,useContext:an,useEffect:ld,useImperativeHandle:mg,useInsertionEffect:fg,useLayoutEffect:hg,useMemo:yg,useReducer:od,useRef:ug,useState:function(){return od(Po)},useDebugValue:cd,useDeferredValue:function(r){var i=ln();return xg(i,gt.memoizedState,r)},useTransition:function(){var r=od(Po)[0],i=ln().memoizedState;return[r,i]},useMutableSource:ng,useSyncExternalStore:rg,useId:vg,unstable_isNewReconciler:!1},RS={readContext:an,useCallback:gg,useContext:an,useEffect:ld,useImperativeHandle:mg,useInsertionEffect:fg,useLayoutEffect:hg,useMemo:yg,useReducer:ad,useRef:ug,useState:function(){return ad(Po)},useDebugValue:cd,useDeferredValue:function(r){var i=ln();return gt===null?i.memoizedState=r:xg(i,gt.memoizedState,r)},useTransition:function(){var r=ad(Po)[0],i=ln().memoizedState;return[r,i]},useMutableSource:ng,useSyncExternalStore:rg,useId:vg,unstable_isNewReconciler:!1};function wn(r,i){if(r&&r.defaultProps){i=C({},i),r=r.defaultProps;for(var a in r)i[a]===void 0&&(i[a]=r[a]);return i}return i}function ud(r,i,a,d){i=r.memoizedState,a=a(d,i),a=a==null?i:C({},i,a),r.memoizedState=a,r.lanes===0&&(r.updateQueue.baseState=a)}var kl={isMounted:function(r){return(r=r._reactInternals)?rs(r)===r:!1},enqueueSetState:function(r,i,a){r=r._reactInternals;var d=Ut(),m=Tr(r),x=tr(d,m);x.payload=i,a!=null&&(x.callback=a),i=Nr(r,x,m),i!==null&&(jn(i,r,m,d),ml(i,r,m))},enqueueReplaceState:function(r,i,a){r=r._reactInternals;var d=Ut(),m=Tr(r),x=tr(d,m);x.tag=1,x.payload=i,a!=null&&(x.callback=a),i=Nr(r,x,m),i!==null&&(jn(i,r,m,d),ml(i,r,m))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var a=Ut(),d=Tr(r),m=tr(a,d);m.tag=2,i!=null&&(m.callback=i),i=Nr(r,m,d),i!==null&&(jn(i,r,d,a),ml(i,r,d))}};function kg(r,i,a,d,m,x,S){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,x,S):i.prototype&&i.prototype.isPureReactComponent?!yo(a,d)||!yo(m,x):!0}function jg(r,i,a){var d=!1,m=Sr,x=i.contextType;return typeof x=="object"&&x!==null?x=an(x):(m=Wt(i)?is:Tt.current,d=i.contextTypes,x=(d=d!=null)?si(r,m):Sr),i=new i(a,x),r.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=kl,r.stateNode=i,i._reactInternals=r,d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=m,r.__reactInternalMemoizedMaskedChildContext=x),i}function Ng(r,i,a,d){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(a,d),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(a,d),i.state!==r&&kl.enqueueReplaceState(i,i.state,null)}function dd(r,i,a,d){var m=r.stateNode;m.props=a,m.state=r.memoizedState,m.refs={},Xu(r);var x=i.contextType;typeof x=="object"&&x!==null?m.context=an(x):(x=Wt(i)?is:Tt.current,m.context=si(r,x)),m.state=r.memoizedState,x=i.getDerivedStateFromProps,typeof x=="function"&&(ud(r,i,x,a),m.state=r.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&&kl.enqueueReplaceState(m,m.state,null),gl(r,a,m,d),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308)}function fi(r,i){try{var a="",d=i;do a+=J(d),d=d.return;while(d);var m=a}catch(x){m=`
39Error generating stack: `+x.message+`
40`+x.stack}return{value:r,source:i,stack:m,digest:null}}function fd(r,i,a){return{value:r,source:null,stack:a??null,digest:i??null}}function hd(r,i){try{console.error(i.value)}catch(a){setTimeout(function(){throw a})}}var OS=typeof WeakMap=="function"?WeakMap:Map;function _g(r,i,a){a=tr(-1,a),a.tag=3,a.payload={element:null};var d=i.value;return a.callback=function(){Pl||(Pl=!0,Cd=d),hd(r,i)},a}function Eg(r,i,a){a=tr(-1,a),a.tag=3;var d=r.type.getDerivedStateFromError;if(typeof d=="function"){var m=i.value;a.payload=function(){return d(m)},a.callback=function(){hd(r,i)}}var x=r.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(a.callback=function(){hd(r,i),typeof d!="function"&&(Er===null?Er=new Set([this]):Er.add(this));var S=i.stack;this.componentDidCatch(i.value,{componentStack:S!==null?S:""})}),a}function Cg(r,i,a){var d=r.pingCache;if(d===null){d=r.pingCache=new OS;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),r=KS.bind(null,r,i,a),i.then(r,r))}function Tg(r){do{var i;if((i=r.tag===13)&&(i=r.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return r;r=r.return}while(r!==null);return null}function Pg(r,i,a,d,m){return(r.mode&1)===0?(r===i?r.flags|=65536:(r.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(i=tr(-1,1),i.tag=2,Nr(a,i,1))),a.lanes|=1),r):(r.flags|=65536,r.lanes=m,r)}var MS=R.ReactCurrentOwner,Ht=!1;function Bt(r,i,a,d){i.child=r===null?Ym(i,null,a,d):li(i,r.child,a,d)}function Ag(r,i,a,d,m){a=a.render;var x=i.ref;return ui(i,m),d=sd(r,i,a,d,x,m),a=id(),r!==null&&!Ht?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~m,nr(r,i,m)):(Ze&&a&&Vu(i),i.flags|=1,Bt(r,i,d,m),i.child)}function Rg(r,i,a,d,m){if(r===null){var x=a.type;return typeof x=="function"&&!Ld(x)&&x.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(i.tag=15,i.type=x,Og(r,i,x,d,m)):(r=Dl(a.type,null,d,i,i.mode,m),r.ref=i.ref,r.return=i,i.child=r)}if(x=r.child,(r.lanes&m)===0){var S=x.memoizedProps;if(a=a.compare,a=a!==null?a:yo,a(S,d)&&r.ref===i.ref)return nr(r,i,m)}return i.flags|=1,r=Ar(x,d),r.ref=i.ref,r.return=i,i.child=r}function Og(r,i,a,d,m){if(r!==null){var x=r.memoizedProps;if(yo(x,d)&&r.ref===i.ref)if(Ht=!1,i.pendingProps=d=x,(r.lanes&m)!==0)(r.flags&131072)!==0&&(Ht=!0);else return i.lanes=r.lanes,nr(r,i,m)}return pd(r,i,a,d,m)}function Mg(r,i,a){var d=i.pendingProps,m=d.children,x=r!==null?r.memoizedState:null;if(d.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},Qe(pi,tn),tn|=a;else{if((a&1073741824)===0)return r=x!==null?x.baseLanes|a:a,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:r,cachePool:null,transitions:null},i.updateQueue=null,Qe(pi,tn),tn|=r,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=x!==null?x.baseLanes:a,Qe(pi,tn),tn|=d}else x!==null?(d=x.baseLanes|a,i.memoizedState=null):d=a,Qe(pi,tn),tn|=d;return Bt(r,i,m,a),i.child}function Lg(r,i){var a=i.ref;(r===null&&a!==null||r!==null&&r.ref!==a)&&(i.flags|=512,i.flags|=2097152)}function pd(r,i,a,d,m){var x=Wt(a)?is:Tt.current;return x=si(i,x),ui(i,m),a=sd(r,i,a,d,x,m),d=id(),r!==null&&!Ht?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~m,nr(r,i,m)):(Ze&&d&&Vu(i),i.flags|=1,Bt(r,i,a,m),i.child)}function Dg(r,i,a,d,m){if(Wt(a)){var x=!0;al(i)}else x=!1;if(ui(i,m),i.stateNode===null)Nl(r,i),jg(i,a,d),dd(i,a,d,m),d=!0;else if(r===null){var S=i.stateNode,P=i.memoizedProps;S.props=P;var O=S.context,$=a.contextType;typeof $=="object"&&$!==null?$=an($):($=Wt(a)?is:Tt.current,$=si(i,$));var q=a.getDerivedStateFromProps,Q=typeof q=="function"||typeof S.getSnapshotBeforeUpdate=="function";Q||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(P!==d||O!==$)&&Ng(i,S,d,$),jr=!1;var H=i.memoizedState;S.state=H,gl(i,d,S,m),O=i.memoizedState,P!==d||H!==O||$t.current||jr?(typeof q=="function"&&(ud(i,a,q,d),O=i.memoizedState),(P=jr||kg(i,a,P,d,H,O,$))?(Q||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(i.flags|=4194308)):(typeof S.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=d,i.memoizedState=O),S.props=d,S.state=O,S.context=$,d=P):(typeof S.componentDidMount=="function"&&(i.flags|=4194308),d=!1)}else{S=i.stateNode,Jm(r,i),P=i.memoizedProps,$=i.type===i.elementType?P:wn(i.type,P),S.props=$,Q=i.pendingProps,H=S.context,O=a.contextType,typeof O=="object"&&O!==null?O=an(O):(O=Wt(a)?is:Tt.current,O=si(i,O));var ae=a.getDerivedStateFromProps;(q=typeof ae=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(P!==Q||H!==O)&&Ng(i,S,d,O),jr=!1,H=i.memoizedState,S.state=H,gl(i,d,S,m);var de=i.memoizedState;P!==Q||H!==de||$t.current||jr?(typeof ae=="function"&&(ud(i,a,ae,d),de=i.memoizedState),($=jr||kg(i,a,$,d,H,de,O)||!1)?(q||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(d,de,O),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(d,de,O)),typeof S.componentDidUpdate=="function"&&(i.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof S.componentDidUpdate!="function"||P===r.memoizedProps&&H===r.memoizedState||(i.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||P===r.memoizedProps&&H===r.memoizedState||(i.flags|=1024),i.memoizedProps=d,i.memoizedState=de),S.props=d,S.state=de,
vendor: 34,869 bytes, line 40
40S.context=O,d=$):(typeof S.componentDidUpdate!="function"||P===r.memoizedProps&&H===r.memoizedState||(i.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||P===r.memoizedProps&&H===r.memoizedState||(i.flags|=1024),d=!1)}return md(r,i,a,d,x,m)}function md(r,i,a,d,m,x){Lg(r,i);var S=(i.flags&128)!==0;if(!d&&!S)return m&&Vm(i,a,!1),nr(r,i,x);d=i.stateNode,MS.current=i;var P=S&&typeof a.getDerivedStateFromError!="function"?null:d.render();return i.flags|=1,r!==null&&S?(i.child=li(i,r.child,null,x),i.child=li(i,null,P,x)):Bt(r,i,P,x),i.memoizedState=d.state,m&&Vm(i,a,!0),i.child}function Ig(r){var i=r.stateNode;i.pendingContext?Bm(r,i.pendingContext,i.pendingContext!==i.context):i.context&&Bm(r,i.context,!1),Ju(r,i.containerInfo)}function Fg(r,i,a,d,m){return ai(),Hu(m),i.flags|=256,Bt(r,i,a,d),i.child}var gd={dehydrated:null,treeContext:null,retryLane:0};function yd(r){return{baseLanes:r,cachePool:null,transitions:null}}function Bg(r,i,a){var d=i.pendingProps,m=et.current,x=!1,S=(i.flags&128)!==0,P;if((P=S)||(P=r!==null&&r.memoizedState===null?!1:(m&2)!==0),P?(x=!0,i.flags&=-129):(r===null||r.memoizedState!==null)&&(m|=1),Qe(et,m&1),r===null)return Wu(i),r=i.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((i.mode&1)===0?i.lanes=1:r.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(S=d.children,r=d.fallback,x?(d=i.mode,x=i.child,S={mode:"hidden",children:S},(d&1)===0&&x!==null?(x.childLanes=0,x.pendingProps=S):x=Il(S,d,0,null),r=ms(r,d,a,null),x.return=i,r.return=i,x.sibling=r,i.child=x,i.child.memoizedState=yd(a),i.memoizedState=gd,r):xd(i,S));if(m=r.memoizedState,m!==null&&(P=m.dehydrated,P!==null))return LS(r,i,S,d,P,m,a);if(x){x=d.fallback,S=i.mode,m=r.child,P=m.sibling;var O={mode:"hidden",children:d.children};return(S&1)===0&&i.child!==m?(d=i.child,d.childLanes=0,d.pendingProps=O,i.deletions=null):(d=Ar(m,O),d.subtreeFlags=m.subtreeFlags&14680064),P!==null?x=Ar(P,x):(x=ms(x,S,a,null),x.flags|=2),x.return=i,d.return=i,d.sibling=x,i.child=d,d=x,x=i.child,S=r.child.memoizedState,S=S===null?yd(a):{baseLanes:S.baseLanes|a,cachePool:null,transitions:S.transitions},x.memoizedState=S,x.childLanes=r.childLanes&~a,i.memoizedState=gd,d}return x=r.child,r=x.sibling,d=Ar(x,{mode:"visible",children:d.children}),(i.mode&1)===0&&(d.lanes=a),d.return=i,d.sibling=null,r!==null&&(a=i.deletions,a===null?(i.deletions=[r],i.flags|=16):a.push(r)),i.child=d,i.memoizedState=null,d}function xd(r,i){return i=Il({mode:"visible",children:i},r.mode,0,null),i.return=r,r.child=i}function jl(r,i,a,d){return d!==null&&Hu(d),li(i,r.child,null,a),r=xd(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function LS(r,i,a,d,m,x,S){if(a)return i.flags&256?(i.flags&=-257,d=fd(Error(n(422))),jl(r,i,S,d)):i.memoizedState!==null?(i.child=r.child,i.flags|=128,null):(x=d.fallback,m=i.mode,d=Il({mode:"visible",children:d.children},m,0,null),x=ms(x,m,S,null),x.flags|=2,d.return=i,x.return=i,d.sibling=x,i.child=d,(i.mode&1)!==0&&li(i,r.child,null,S),i.child.memoizedState=yd(S),i.memoizedState=gd,x);if((i.mode&1)===0)return jl(r,i,S,null);if(m.data==="$!"){if(d=m.nextSibling&&m.nextSibling.dataset,d)var P=d.dgst;return d=P,x=Error(n(419)),d=fd(x,d,void 0),jl(r,i,S,d)}if(P=(S&r.childLanes)!==0,Ht||P){if(d=bt,d!==null){switch(S&-S){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|S))!==0?0:m,m!==0&&m!==x.retryLane&&(x.retryLane=m,er(r,m),jn(d,r,m,-1))}return Md(),d=fd(Error(n(421))),jl(r,i,S,d)}return m.data==="$?"?(i.flags|=128,i.child=r.child,i=GS.bind(null,r),m._reactRetry=i,null):(r=x.treeContext,en=br(m.nextSibling),Zt=i,Ze=!0,bn=null,r!==null&&(sn[on++]=Jn,sn[on++]=Zn,sn[on++]=os,Jn=r.id,Zn=r.overflow,os=i),i=xd(i,d.children),i.flags|=4096,i)}function Ug(r,i,a){r.lanes|=i;var d=r.alternate;d!==null&&(d.lanes|=i),Qu(r.return,i,a)}function vd(r,i,a,d,m){var x=r.memoizedState;x===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:a,tailMode:m}:(x.isBackwards=i,x.rendering=null,x.renderingStartTime=0,x.last=d,x.tail=a,x.tailMode=m)}function Vg(r,i,a){var d=i.pendingProps,m=d.revealOrder,x=d.tail;if(Bt(r,i,d.children,a),d=et.current,(d&2)!==0)d=d&1|2,i.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Ug(r,a,i);else if(r.tag===19)Ug(r,a,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}d&=1}if(Qe(et,d),(i.mode&1)===0)i.memoizedState=null;else switch(m){case"forwards":for(a=i.child,m=null;a!==null;)r=a.alternate,r!==null&&yl(r)===null&&(m=a),a=a.sibling;a=m,a===null?(m=i.child,i.child=null):(m=a.sibling,a.sibling=null),vd(i,!1,m,a,x);break;case"backwards":for(a=null,m=i.child,i.child=null;m!==null;){if(r=m.alternate,r!==null&&yl(r)===null){i.child=m;break}r=m.sibling,m.sibling=a,a=m,m=r}vd(i,!0,a,null,x);break;case"together":vd(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Nl(r,i){(i.mode&1)===0&&r!==null&&(r.alternate=null,i.alternate=null,i.flags|=2)}function nr(r,i,a){if(r!==null&&(i.dependencies=r.dependencies),ds|=i.lanes,(a&i.childLanes)===0)return null;if(r!==null&&i.child!==r.child)throw Error(n(153));if(i.child!==null){for(r=i.child,a=Ar(r,r.pendingProps),i.child=a,a.return=i;r.sibling!==null;)r=r.sibling,a=a.sibling=Ar(r,r.pendingProps),a.return=i;a.sibling=null}return i.child}function DS(r,i,a){switch(i.tag){case 3:Ig(i),ai();break;case 5:tg(i);break;case 1:Wt(i.type)&&al(i);break;case 4:Ju(i,i.stateNode.containerInfo);break;case 10:var d=i.type._context,m=i.memoizedProps.value;Qe(hl,d._currentValue),d._currentValue=m;break;case 13:if(d=i.memoizedState,d!==null)return d.dehydrated!==null?(Qe(et,et.current&1),i.flags|=128,null):(a&i.child.childLanes)!==0?Bg(r,i,a):(Qe(et,et.current&1),r=nr(r,i,a),r!==null?r.sibling:null);Qe(et,et.current&1);break;case 19:if(d=(a&i.childLanes)!==0,(r.flags&128)!==0){if(d)return Vg(r,i,a);i.flags|=128}if(m=i.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),Qe(et,et.current),d)break;return null;case 22:case 23:return i.lanes=0,Mg(r,i,a)}return nr(r,i,a)}var zg,bd,$g,Wg;zg=function(r,i){for(var a=i.child;a!==null;){if(a.tag===5||a.tag===6)r.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}},bd=function(){},$g=function(r,i,a,d){var m=r.memoizedProps;if(m!==d){r=i.stateNode,cs(Mn.current);var x=null;switch(a){case"input":m=Ce(r,m),d=Ce(r,d),x=[];break;case"select":m=C({},m,{value:void 0}),d=C({},d,{value:void 0}),x=[];break;case"textarea":m=yn(r,m),d=yn(r,d),x=[];break;default:typeof m.onClick!="function"&&typeof d.onClick=="function"&&(r.onclick=sl)}eu(a,d);var S;a=null;for($ in m)if(!d.hasOwnProperty($)&&m.hasOwnProperty($)&&m[$]!=null)if($==="style"){var P=m[$];for(S in P)P.hasOwnProperty(S)&&(a||(a={}),a[S]="")}else $!=="dangerouslySetInnerHTML"&&$!=="children"&&$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&$!=="autoFocus"&&(o.hasOwnProperty($)?x||(x=[]):(x=x||[]).push($,null));for($ in d){var O=d[$];if(P=m!=null?m[$]:void 0,d.hasOwnProperty($)&&O!==P&&(O!=null||P!=null))if($==="style")if(P){for(S in P)!P.hasOwnProperty(S)||O&&O.hasOwnProperty(S)||(a||(a={}),a[S]="");for(S in O)O.hasOwnProperty(S)&&P[S]!==O[S]&&(a||(a={}),a[S]=O[S])}else a||(x||(x=[]),x.push($,a)),a=O;else $==="dangerouslySetInnerHTML"?(O=O?O.__html:void 0,P=P?P.__html:void 0,O!=null&&P!==O&&(x=x||[]).push($,O)):$==="children"?typeof O!="string"&&typeof O!="number"||(x=x||[]).push($,""+O):$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&(o.hasOwnProperty($)?(O!=null&&$==="onScroll"&&Xe("scroll",r),x||P===O||(x=[])):(x=x||[]).push($,O))}a&&(x=x||[]).push("style",a);var $=x;(i.updateQueue=$)&&(i.flags|=4)}},Wg=function(r,i,a,d){a!==d&&(i.flags|=4)};function Ro(r,i){if(!Ze)switch(r.tailMode){case"hidden":i=r.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?r.tail=null:a.sibling=null;break;case"collapsed":a=r.tail;for(var d=null;a!==null;)a.alternate!==null&&(d=a),a=a.sibling;d===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function At(r){var i=r.alternate!==null&&r.alternate.child===r.child,a=0,d=0;if(i)for(var m=r.child;m!==null;)a|=m.lanes|m.childLanes,d|=m.subtreeFlags&14680064,d|=m.flags&14680064,m.return=r,m=m.sibling;else for(m=r.child;m!==null;)a|=m.lanes|m.childLanes,d|=m.subtreeFlags,d|=m.flags,m.return=r,m=m.sibling;return r.subtreeFlags|=d,r.childLanes=a,i}function IS(r,i,a){var d=i.pendingProps;switch(zu(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 Wt(i.type)&&ol(),At(i),null;case 3:return d=i.stateNode,di(),Je($t),Je(Tt),td(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(r===null||r.child===null)&&(dl(i)?i.flags|=4:r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,bn!==null&&(Ad(bn),bn=null))),bd(r,i),At(i),null;case 5:Zu(i);var m=cs(Eo.current);if(a=i.type,r!==null&&i.stateNode!=null)$g(r,i,a,d,m),r.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(r=cs(Mn.current),dl(i)){d=i.stateNode,a=i.type;var x=i.memoizedProps;switch(d[On]=i,d[So]=x,r=(i.mode&1)!==0,a){case"dialog":Xe("cancel",d),Xe("close",d);break;case"iframe":case"object":case"embed":Xe("load",d);break;case"video":case"audio":for(m=0;m<vo.length;m++)Xe(vo[m],d);break;case"source":Xe("error",d);break;case"img":case"image":case"link":Xe("error",d),Xe("load",d);break;case"details":Xe("toggle",d);break;case"input":Ge(d,x),Xe("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!x.multiple},Xe("invalid",d);break;case"textarea":Ma(d,x),Xe("invalid",d)}eu(a,x),m=null;for(var S in x)if(x.hasOwnProperty(S)){var P=x[S];S==="children"?typeof P=="string"?d.textContent!==P&&(x.suppressHydrationWarning!==!0&&rl(d.textContent,P,r),m=["children",P]):typeof P=="number"&&d.textContent!==""+P&&(x.suppressHydrationWarning!==!0&&rl(d.textContent,P,r),m=["children",""+P]):o.hasOwnProperty(S)&&P!=null&&S==="onScroll"&&Xe("scroll",d)}switch(a){case"input":Le(d),ot(d,x,!0);break;case"textarea":Le(d),La(d);break;case"select":case"option":break;default:typeof x.onClick=="function"&&(d.onclick=sl)}d=m,i.updateQueue=d,d!==null&&(i.flags|=4)}else{S=m.nodeType===9?m:m.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=Ji(a)),r==="http://www.w3.org/1999/xhtml"?a==="script"?(r=S.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof d.is=="string"?r=S.createElement(a,{is:d.is}):(r=S.createElement(a),a==="select"&&(S=r,d.multiple?S.multiple=!0:d.size&&(S.size=d.size))):r=S.createElementNS(r,a),r[On]=i,r[So]=d,zg(r,i,!1,!1),i.stateNode=r;e:{switch(S=tu(a,d),a){case"dialog":Xe("cancel",r),Xe("close",r),m=d;break;case"iframe":case"object":case"embed":Xe("load",r),m=d;break;case"video":case"audio":for(m=0;m<vo.length;m++)Xe(vo[m],r);m=d;break;case"source":Xe("error",r),m=d;break;case"img":case"image":case"link":Xe("error",r),Xe("load",r),m=d;break;case"details":Xe("toggle",r),m=d;break;case"input":Ge(r,d),m=Ce(r,d),Xe("invalid",r);break;case"option":m=d;break;case"select":r._wrapperState={wasMultiple:!!d.multiple},m=C({},d,{value:void 0}),Xe("invalid",r);break;case"textarea":Ma(r,d),m=yn(r,d),Xe("invalid",r);break;default:m=d}eu(a,m),P=m;for(x in P)if(P.hasOwnProperty(x)){var O=P[x];x==="style"?Op(r,O):x==="dangerouslySetInnerHTML"?(O=O?O.__html:void 0,O!=null&&eo(r,O)):x==="children"?typeof O=="string"?(a!=="textarea"||O!=="")&&hr(r,O):typeof O=="number"&&hr(r,""+O):x!=="suppressContentEditableWarning"&&x!=="suppressHydrationWarning"&&x!=="autoFocus"&&(o.hasOwnProperty(x)?O!=null&&x==="onScroll"&&Xe("scroll",r):O!=null&&A(r,x,O,S))}switch(a){case"input":Le(r),ot(r,d,!1);break;case"textarea":Le(r),La(r);break;case"option":d.value!=null&&r.setAttribute("value",""+ie(d.value));break;case"select":r.multiple=!!d.multiple,x=d.value,x!=null?An(r,!!d.multiple,x,!1):d.defaultValue!=null&&An(r,!!d.multiple,d.defaultValue,!0);break;default:typeof m.onClick=="function"&&(r.onclick=sl)}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(r&&i.stateNode!=null)Wg(r,i,r.memoizedProps,d);else{if(typeof d!="string"&&i.stateNode===null)throw Error(n(166));if(a=cs(Eo.current),cs(Mn.current),dl(i)){if(d=i.stateNode,a=i.memoizedProps,d[On]=i,(x=d.nodeValue!==a)&&(r=Zt,r!==null))switch(r.tag){case 3:rl(d.nodeValue,a,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&rl(d.nodeValue,a,(r.mode&1)!==0)}x&&(i.flags|=4)}else d=(a.nodeType===9?a:a.ownerDocument).createTextNode(d),d[On]=i,i.stateNode=d}return At(i),null;case 13:if(Je(et),d=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(Ze&&en!==null&&(i.mode&1)!==0&&(i.flags&128)===0)Km(),ai(),i.flags|=98560,x=!1;else if(x=dl(i),d!==null&&d.dehydrated!==null){if(r===null){if(!x)throw Error(n(318));if(x=i.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(n(317));x[On]=i}else ai(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;At(i),x=!1}else bn!==null&&(Ad(bn),bn=null),x=!0;if(!x)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=a,i):(d=d!==null,d!==(r!==null&&r.memoizedState!==null)&&d&&(i.child.flags|=8192,(i.mode&1)!==0&&(r===null||(et.current&1)!==0?yt===0&&(yt=3):Md())),i.updateQueue!==null&&(i.flags|=4),At(i),null);case 4:return di(),bd(r,i),r===null&&bo(i.stateNode.containerInfo),At(i),null;case 10:return Gu(i.type._context),At(i),null;case 17:return Wt(i.type)&&ol(),At(i),null;case 19:if(Je(et),x=i.memoizedState,x===null)return At(i),null;if(d=(i.flags&128)!==0,S=x.rendering,S===null)if(d)Ro(x,!1);else{if(yt!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(S=yl(r),S!==null){for(i.flags|=128,Ro(x,!1),d=S.updateQueue,d!==null&&(i.updateQueue=d,i.flags|=4),i.subtreeFlags=0,d=a,a=i.child;a!==null;)x=a,r=d,x.flags&=14680066,S=x.alternate,S===null?(x.childLanes=0,x.lanes=r,x.child=null,x.subtreeFlags=0,x.memoizedProps=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null,x.stateNode=null):(x.childLanes=S.childLanes,x.lanes=S.lanes,x.child=S.child,x.subtreeFlags=0,x.deletions=null,x.memoizedProps=S.memoizedProps,x.memoizedState=S.memoizedState,x.updateQueue=S.updateQueue,x.type=S.type,r=S.dependencies,x.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),a=a.sibling;return Qe(et,et.current&1|2),i.child}r=r.sibling}x.tail!==null&&at()>mi&&(i.flags|=128,d=!0,Ro(x,!1),i.lanes=4194304)}else{if(!d)if(r=yl(S),r!==null){if(i.flags|=128,d=!0,a=r.updateQueue,a!==null&&(i.updateQueue=a,i.flags|=4),Ro(x,!0),x.tail===null&&x.tailMode==="hidden"&&!S.alternate&&!Ze)return At(i),null}else 2*at()-x.renderingStartTime>mi&&a!==1073741824&&(i.flags|=128,d=!0,Ro(x,!1),i.lanes=4194304);x.isBackwards?(S.sibling=i.child,i.child=S):(a=x.last,a!==null?a.sibling=S:i.child=S,x.last=S)}return x.tail!==null?(i=x.tail,x.rendering=i,x.tail=i.sibling,x.renderingStartTime=at(),i.sibling=null,a=et.current,Qe(et,d?a&1|2:a&1),i):(At(i),null);case 22:case 23:return Od(),d=i.memoizedState!==null,r!==null&&r.memoizedState!==null!==d&&(i.flags|=8192),d&&(i.mode&1)!==0?(tn&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 FS(r,i){switch(zu(i),i.tag){case 1:return Wt(i.type)&&ol(),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return di(),Je($t),Je(Tt),td(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 5:return Zu(i),null;case 13:if(Je(et),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(n(340));ai()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return Je(et),null;case 4:return di(),null;case 10:return Gu(i.type._context),null;case 22:case 23:return Od(),null;case 24:return null;default:return null}}var _l=!1,Rt=!1,BS=typeof WeakSet=="function"?WeakSet:Set,ue=null;function hi(r,i){var a=r.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(d){rt(r,i,d)}else a.current=null}function wd(r,i,a){try{a()}catch(d){rt(r,i,d)}}var Hg=!1;function US(r,i){if(Ou=qa,r=km(),Nu(r)){if("selectionStart"in r)var a={start:r.selectionStart,end:r.selectionEnd};else e:{a=(a=r.ownerDocument)&&a.defaultView||window;var d=a.getSelection&&a.getSelection();if(d&&d.rangeCount!==0){a=d.anchorNode;var m=d.anchorOffset,x=d.focusNode;d=d.focusOffset;try{a.nodeType,x.nodeType}catch{a=null;break e}var S=0,P=-1,O=-1,$=0,q=0,Q=r,H=null;t:for(;;){for(var ae;Q!==a||m!==0&&Q.nodeType!==3||(P=S+m),Q!==x||d!==0&&Q.nodeType!==3||(O=S+d),Q.nodeType===3&&(S+=Q.nodeValue.length),(ae=Q.firstChild)!==null;)H=Q,Q=ae;for(;;){if(Q===r)break t;if(H===a&&++$===m&&(P=S),H===x&&++q===d&&(O=S),(ae=Q.nextSibling)!==null)break;Q=H,H=Q.parentNode}Q=ae}a=P===-1||O===-1?null:{start:P,end:O}}else a=null}a=a||{start:0,end:0}}else a=null;for(Mu={focusedElem:r,selectionRange:a},qa=!1,ue=i;ue!==null;)if(i=ue,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,ue=r;else for(;ue!==null;){i=ue;try{var de=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(de!==null){var pe=de.memoizedProps,lt=de.memoizedState,U=i.stateNode,L=U.getSnapshotBeforeUpdate(i.elementType===i.type?pe:wn(i.type,pe),lt);U.__reactInternalSnapshotBeforeUpdate=L}break;case 3:var z=i.stateNode.containerInfo;z.nodeType===1?z.textContent="":z.nodeType===9&&z.documentElement&&z.removeChild(z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ee){rt(i,i.return,ee)}if(r=i.sibling,r!==null){r.return=i.return,ue=r;break}ue=i.return}return de=Hg,Hg=!1,de}function Oo(r,i,a){var d=i.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var m=d=d.next;do{if((m.tag&r)===r){var x=m.destroy;m.destroy=void 0,x!==void 0&&wd(i,a,x)}m=m.next}while(m!==d)}}function El(r,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var a=i=i.next;do{if((a.tag&r)===r){var d=a.create;a.destroy=d()}a=a.next}while(a!==i)}}function Sd(r){var i=r.ref;if(i!==null){var a=r.stateNode;switch(r.tag){case 5:r=a;break;default:r=a}typeof i=="function"?i(r):i.current=r}}function qg(r){var i=r.alternate;i!==null&&(r.alternate=null,qg(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&(delete i[On],delete i[So],delete i[Fu],delete i[SS],delete i[kS])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Kg(r){return r.tag===5||r.tag===3||r.tag===4}function Gg(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Kg(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function kd(r,i,a){var d=r.tag;if(d===5||d===6)r=r.stateNode,i?a.nodeType===8?a.parentNode.insertBefore(r,i):a.insertBefore(r,i):(a.nodeType===8?(i=a.parentNode,i.insertBefore(r,a)):(i=a,i.appendChild(r)),a=a._reactRootContainer,a!=null||i.onclick!==null||(i.onclick=sl));else if(d!==4&&(r=r.child,r!==null))for(kd(r,i,a),r=r.sibling;r!==null;)kd(r,i,a),r=r.sibling}function jd(r,i,a){var d=r.tag;if(d===5||d===6)r=r.stateNode,i?a.insertBefore(r,i):a.appendChild(r);else if(d!==4&&(r=r.child,r!==null))for(jd(r,i,a),r=r.sibling;r!==null;)jd(r,i,a),r=r.sibling}var jt=null,Sn=!1;function _r(r,i,a){for(a=a.child;a!==null;)Qg(r,i,a),a=a.sibling}function Qg(r,i,a){if(Rn&&typeof Rn.onCommitFiberUnmount=="function")try{Rn.onCommitFiberUnmount(Ua,a)}catch{}switch(a.tag){case 5:Rt||hi(a,i);case 6:var d=jt,m=Sn;jt=null,_r(r,i,a),jt=d,Sn=m,jt!==null&&(Sn?(r=jt,a=a.stateNode,r.nodeType===8?r.parentNode.removeChild(a):r.removeChild(a)):jt.removeChild(a.stateNode));break;case 18:jt!==null&&(Sn?(r=jt,a=a.stateNode,r.nodeType===8?Iu(r.parentNode,a):r.nodeType===1&&Iu(r,a),uo(r)):Iu(jt,a.stateNode));break;case 4:d=jt,m=Sn,jt=a.stateNode.containerInfo,Sn=!0,_r(r,i,a),jt=d,Sn=m;break;case 0:case 11:case 14:case 15:if(!Rt&&(d=a.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){m=d=d.next;do{var x=m,S=x.destroy;x=x.tag,S!==void 0&&((x&2)!==0||(x&4)!==0)&&wd(a,i,S),m=m.next}while(m!==d)}_r(r,i,a);break;case 1:if(!Rt&&(hi(a,i),d=a.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=a.memoizedProps,d.state=a.memoizedState,d.componentWillUnmount()}catch(P){rt(a,i,P)}_r(r,i,a);break;case 21:_r(r,i,a);break;case 22:a.mode&1?(Rt=(d=Rt)||a.memoizedState!==null,_r(r,i,a),Rt=d):_r(r,i,a);break;default:_r(r,i,a)}}function Yg(r){var i=r.updateQueue;if(i!==null){r.updateQueue=null;var a=r.stateNode;a===null&&(a=r.stateNode=new BS),i.forEach(function(d){var m=QS.bind(null,r,d);a.has(d)||(a.add(d),d.then(m,m))})}}function kn(r,i){var a=i.deletions;if(a!==null)for(var d=0;d<a.length;d++){var m=a[d];try{var x=r,S=i,P=S;e:for(;P!==null;){switch(P.tag){case 5:jt=P.stateNode,Sn=!1;break e;case 3:jt=P.stateNode.containerInfo,Sn=!0;break e;case 4:jt=P.stateNode.containerInfo,Sn=!0;break e}P=P.return}if(jt===null)throw Error(n(160));Qg(x,S,m),jt=null,Sn=!1;var O=m.alternate;O!==null&&(O.return=null),m.return=null}catch($){rt(m,i,$)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Xg(i,r),i=i.sibling}function Xg(r,i){var a=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(kn(i,r),Dn(r),d&4){try{Oo(3,r,r.return),El(3,r)}catch(pe){rt(r,r.return,pe)}try{Oo(5,r,r.return)}catch(pe){rt(r,r.return,pe)}}break;case 1:kn(i,r),Dn(r),d&512&&a!==null&&hi(a,a.return);break;case 5:if(kn(i,r),Dn(r),d&512&&a!==null&&hi(a,a.return),r.flags&32){var m=r.stateNode;try{hr(m,"")}catch(pe){rt(r,r.return,pe)}}if(d&4&&(m=r.stateNode,m!=null)){var x=r.memoizedProps,S=a!==null?a.memoizedProps:x,P=r.type,O=r.updateQueue;if(r.updateQueue=null,O!==null)try{P==="input"&&x.type==="radio"&&x.name!=null&&ve(m,x),tu(P,S);var $=tu(P,x);for(S=0;S<O.length;S+=2){var q=O[S],Q=O[S+1];q==="style"?Op(m,Q):q==="dangerouslySetInnerHTML"?eo(m,Q):q==="children"?hr(m,Q):A(m,q,Q,$)}switch(P){case"input":qe(m,x);break;case"textarea":Xi(m,x);break;case"select":var H=m._wrapperState.wasMultiple;m._wrapperState.wasMultiple=!!x.multiple;var ae=x.value;ae!=null?An(m,!!x.multiple,ae,!1):H!==!!x.multiple&&(x.defaultValue!=null?An(m,!!x.multiple,x.defaultValue,!0):An(m,!!x.multiple,x.multiple?[]:"",!1))}m[So]=x}catch(pe){rt(r,r.return,pe)}}break;case 6:if(kn(i,r),Dn(r),d&4){if(r.stateNode===null)throw Error(n(162));m=r.stateNode,x=r.memoizedProps;try{m.nodeValue=x}catch(pe){rt(r,r.return,pe)}}break;case 3:if(kn(i,r),Dn(r),d&4&&a!==null&&a.memoizedState.isDehydrated)try{uo(i.containerInfo)}catch(pe){rt(r,r.return,pe)}break;case 4:kn(i,r),Dn(r);break;case 13:kn(i,r),Dn(r),m=r.child,m.flags&8192&&(x=m.memoizedState!==null,m.stateNode.isHidden=x,!x||m.alternate!==null&&m.alternate.memoizedState!==null||(Ed=at())),d&4&&Yg(r);break;case 22:if(q=a!==null&&a.memoizedState!==null,r.mode&1?(Rt=($=Rt)||q,kn(i,r),Rt=$):kn(i,r),Dn(r),d&8192){if($=r.memoizedState!==null,(r.stateNode.isHidden=$)&&!q&&(r.mode&1)!==0)for(ue=r,q=r.child;q!==null;){for(Q=ue=q;ue!==null;){switch(H=ue,ae=H.child,H.tag){case 0:case 11:case 14:case 15:Oo(4,H,H.return);break;case 1:hi(H,H.return);var de=H.stateNode;if(typeof de.componentWillUnmount=="function"){d=H,a=H.return;try{i=d,de.props=i.memoizedProps,de.state=i.memoizedState,de.componentWillUnmount()}catch(pe){rt(d,a,pe)}}break;case 5:hi(H,H.return);break;case 22:if(H.memoizedState!==null){ey(Q);continue}}ae!==null?(ae.return=H,ue=ae):ey(Q)}q=q.sibling}e:for(q=null,Q=r;;){if(Q.tag===5){if(q===null){q=Q;try{m=Q.stateNode,$?(x=m.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none"):(P=Q.stateNode,O=Q.memoizedProps.style,S=O!=null&&O.hasOwnProperty("display")?O.display:null,P.style.display=Da("display",S))}catch(pe){rt(r,r.return,pe)}}}else if(Q.tag===6){if(q===null)try{Q.stateNode.nodeValue=$?"":Q.memoizedProps}catch(pe){rt(r,r.return,pe)}}else if((Q.tag!==22&&Q.tag!==23||Q.memoizedState===null||Q===r)&&Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===r)break e;for(;Q.sibling===null;){if(Q.return===null||Q.return===r)break e;q===Q&&(q=null),Q=Q.return}q===Q&&(q=null),Q.sibling.return=Q.return,Q=Q.sibling}}break;case 19:kn(i,r),Dn(r),d&4&&Yg(r);break;case 21:break;default:kn(i,r),Dn(r)}}function Dn(r){var i=r.flags;if(i&2){try{e:{for(var a=r.return;a!==null;){if(Kg(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&&(hr(m,""),d.flags&=-33);var x=Gg(r);jd(r,x,m);break;case 3:case 4:var S=d.stateNode.containerInfo,P=Gg(r);kd(r,P,S);break;default:throw Error(n(161))}}catch(O){rt(r,r.return,O)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function VS(r,i,a){ue=r,Jg(r)}function Jg(r,i,a){for(var d=(r.mode&1)!==0;ue!==null;){var m=ue,x=m.child;if(m.tag===22&&d){var S=m.memoizedState!==null||_l;if(!S){var P=m.alternate,O=P!==null&&P.memoizedState!==null||Rt;P=_l;var $=Rt;if(_l=S,(Rt=O)&&!$)for(ue=m;ue!==null;)S=ue,O=S.child,S.tag===22&&S.memoizedState!==null?ty(m):O!==null?(O.return=S,ue=O):ty(m);for(;x!==null;)ue=x,Jg(x),x=x.sibling;ue=m,_l=P,Rt=$}Zg(r)}else(m.subtreeFlags&8772)!==0&&x!==null?(x.return=m,ue=x):Zg(r)}}function Zg(r){for(;ue!==null;){var i=ue;if((i.flags&8772)!==0){var a=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:Rt||El(5,i);break;case 1:var d=i.stateNode;if(i.flags&4&&!Rt)if(a===null)d.componentDidMount();else{var m=i.elementType===i.type?a.memoizedProps:wn(i.type,a.memoizedProps);d.componentDidUpdate(m,a.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var x=i.updateQueue;x!==null&&eg(i,x,d);break;case 3:var S=i.updateQueue;if(S!==null){if(a=null,i.child!==null)switch(i.child.tag){case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}eg(i,S,a)}break;case 5:var P=i.stateNode;if(a===null&&i.flags&4){a=P;var O=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":O.autoFocus&&a.focus();break;case"img":O.src&&(a.src=O.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var $=i.alternate;if($!==null){var q=$.memoizedState;if(q!==null){var Q=q.dehydrated;Q!==null&&uo(Q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Rt||i.flags&512&&Sd(i)}catch(H){rt(i,i.return,H)}}if(i===r){ue=null;break}if(a=i.sibling,a!==null){a.return=i.return,ue=a;break}ue=i.return}}function ey(r){for(;ue!==null;){var i=ue;if(i===r){ue=null;break}var a=i.sibling;if(a!==null){a.return=i.return,ue=a;break}ue=i.return}}function ty(r){for(;ue!==null;){var i=ue;try{switch(i.tag){case 0:case 11:case 15:var a=i.return;try{El(4,i)}catch(O){rt(i,a,O)}break;case 1:var d=i.stateNode;if(typeof d.componentDidMount=="function"){var m=i.return;try{d.componentDidMount()}catch(O){rt(i,m,O)}}var x=i.return;try{Sd(i)}catch(O){rt(i,x,O)}break;case 5:var S=i.return;try{Sd(i)}catch(O){rt(i,S,O)}}}catch(O){rt(i,i.return,O)}if(i===r){ue=null;break}var P=i.sibling;if(P!==null){P.return=i.return,ue=P;break}ue=i.return}}var zS=Math.ceil,Cl=R.ReactCurrentDispatcher,Nd=R.ReactCurrentOwner,cn=R.ReactCurrentBatchConfig,Ue=0,bt=null,dt=null,Nt=0,tn=0,pi=wr(0),yt=0,Mo=null,ds=0,Tl=0,_d=0,Lo=null,qt=null,Ed=0,mi=1/0,rr=null,Pl=!1,Cd=null,Er=null,Al=!1,Cr=null,Rl=0,Do=0,Td=null,Ol=-1,Ml=0;function Ut(){return(Ue&6)!==0?at():Ol!==-1?Ol:Ol=at()}function Tr(r){return(r.mode&1)===0?1:(Ue&2)!==0&&Nt!==0?Nt&-Nt:NS.transition!==null?(Ml===0&&(Ml=Gp()),Ml):(r=Ke,r!==0||(r=window.event,r=r===void 0?16:rm(r.type)),r)}function jn(r,i,a,d){if(50<Do)throw Do=0,Td=null,Error(n(185));io(r,a,d),((Ue&2)===0||r!==bt)&&(r===bt&&((Ue&2)===0&&(Tl|=a),yt===4&&Pr(r,Nt)),Kt(r,d),a===1&&Ue===0&&(i.mode&1)===0&&(mi=at()+500,ll&&kr()))}function Kt(r,i){var a=r.callbackNode;N2(r,i);var d=$a(r,r===bt?Nt:0);if(d===0)a!==null&&Hp(a),r.callbackNode=null,r.callbackPriority=0;else if(i=d&-d,r.callbackPriority!==i){if(a!=null&&Hp(a),i===1)r.tag===0?jS(ry.bind(null,r)):zm(ry.bind(null,r)),bS(function(){(Ue&6)===0&&kr()}),a=null;else{switch(Qp(d)){case 1:a=lu;break;case 4:a=qp;break;case 16:a=Ba;break;case 536870912:a=Kp;break;default:a=Ba}a=dy(a,ny.bind(null,r))}r.callbackPriority=i,r.callbackNode=a}}function ny(r,i){if(Ol=-1,Ml=0,(Ue&6)!==0)throw Error(n(327));var a=r.callbackNode;if(gi()&&r.callbackNode!==a)return null;var d=$a(r,r===bt?Nt:0);if(d===0)return null;if((d&30)!==0||(d&r.expiredLanes)!==0||i)i=Ll(r,d);else{i=d;var m=Ue;Ue|=2;var x=iy();(bt!==r||Nt!==i)&&(rr=null,mi=at()+500,hs(r,i));do try{HS();break}catch(P){sy(r,P)}while(!0);Ku(),Cl.current=x,Ue=m,dt!==null?i=0:(bt=null,Nt=0,i=yt)}if(i!==0){if(i===2&&(m=cu(r),m!==0&&(d=m,i=Pd(r,m))),i===1)throw a=Mo,hs(r,0),Pr(r,d),Kt(r,at()),a;if(i===6)Pr(r,d);else{if(m=r.current.alternate,(d&30)===0&&!$S(m)&&(i=Ll(r,d),i===2&&(x=cu(r),x!==0&&(d=x,i=Pd(r,x))),i===1))throw a=Mo,hs(r,0),Pr(r,d),Kt(r,at()),a;switch(r.finishedWork=m,r.finishedLanes=d,i){case 0:case 1:throw Error(n(345));case 2:ps(r,qt,rr);break;case 3:if(Pr(r,d),(d&130023424)===d&&(i=Ed+500-at(),10<i)){if($a(r,0)!==0)break;if(m=r.suspendedLanes,(m&d)!==d){Ut(),r.pingedLanes|=r.suspendedLanes&m;break}r.timeoutHandle=Du(ps.bind(null,r,qt,rr),i);break}ps(r,qt,rr);break;case 4:if(Pr(r,d),(d&4194240)===d)break;for(i=r.eventTimes,m=-1;0<d;){var S=31-xn(d);x=1<<S,S=i[S],S>m&&(m=S),d&=~x}if(d=m,d=at()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*zS(d/1960))-d,10<d){r.timeoutHandle=Du(ps.bind(null,r,qt,rr),d);break}ps(r,qt,rr);break;case 5:ps(r,qt,rr);break;default:throw Error(n(329))}}}return Kt(r,at()),r.callbackNode===a?ny.bind(null,r):null}function Pd(r,i){var a=Lo;return r.current.memoizedState.isDehydrated&&(hs(r,i).flags|=256),r=Ll(r,i),r!==2&&(i=qt,qt=a,i!==null&&Ad(i)),r}function Ad(r){qt===null?qt=r:qt.push.apply(qt,r)}function $S(r){for(var i=r;;){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],x=m.getSnapshot;m=m.value;try{if(!vn(x(),m))return!1}catch{return!1}}}if(a=i.child,i.subtreeFlags&16384&&a!==null)a.return=i,i=a;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Pr(r,i){for(i&=~_d,i&=~Tl,r.suspendedLanes|=i,r.pingedLanes&=~i,r=r.expirationTimes;0<i;){var a=31-xn(i),d=1<<a;r[a]=-1,i&=~d}}function ry(r){if((Ue&6)!==0)throw Error(n(327));gi();var i=$a(r,0);if((i&1)===0)return Kt(r,at()),null;var a=Ll(r,i);if(r.tag!==0&&a===2){var d=cu(r);d!==0&&(i=d,a=Pd(r,d))}if(a===1)throw a=Mo,hs(r,0),Pr(r,i),Kt(r,at()),a;if(a===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=i,ps(r,qt,rr),Kt(r,at()),null}function Rd(r,i){var a=Ue;Ue|=1;try{return r(i)}finally{Ue=a,Ue===0&&(mi=at()+500,ll&&kr())}}function fs(r){Cr!==null&&Cr.tag===0&&(Ue&6)===0&&gi();var i=Ue;Ue|=1;var a=cn.transition,d=Ke;try{if(cn.transition=null,Ke=1,r)return r()}finally{Ke=d,cn.transition=a,Ue=i,(Ue&6)===0&&kr()}}function Od(){tn=pi.current,Je(pi)}function hs(r,i){r.finishedWork=null,r.finishedLanes=0;var a=r.timeoutHandle;if(a!==-1&&(r.timeoutHandle=-1,vS(a)),dt!==null)for(a=dt.return;a!==null;){var d=a;switch(zu(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&ol();break;case 3:di(),Je($t),Je(Tt),td();break;case 5:Zu(d);break;case 4:di();break;case 13:Je(et);break;case 19:Je(et);break;case 10:Gu(d.type._context);break;case 22:case 23:Od()}a=a.return}if(bt=r,dt=r=Ar(r.current,null),Nt=tn=i,yt=0,Mo=null,_d=Tl=ds=0,qt=Lo=null,ls!==null){for(i=0;i<ls.length;i++)if(a=ls[i],d=a.interleaved,d!==null){a.interleaved=null;var m=d.next,x=a.pending;if(x!==null){var S=x.next;x.next=m,d.next=S}a.pending=d}ls=null}return r}function sy(r,i){do{var a=dt;try{if(Ku(),xl.current=Sl,vl){for(var d=tt.memoizedState;d!==null;){var m=d.queue;m!==null&&(m.pending=null),d=d.next}vl=!1}if(us=0,vt=gt=tt=null,Co=!1,To=0,Nd.current=null,a===null||a.return===null){yt=1,Mo=i,dt=null;break}e:{var x=r,S=a.return,P=a,O=i;if(i=Nt,P.flags|=32768,O!==null&&typeof O=="object"&&typeof O.then=="function"){var $=O,q=P,Q=q.tag;if((q.mode&1)===0&&(Q===0||Q===11||Q===15)){var H=q.alternate;H?(q.updateQueue=H.updateQueue,q.memoizedState=H.memoizedState,q.lanes=H.lanes):(q.updateQueue=null,q.memoizedState=null)}var ae=Tg(S);if(ae!==null){ae.flags&=-257,Pg(ae,S,P,x,i),ae.mode&1&&Cg(x,$,i),i=ae,O=$;var de=i.updateQueue;if(de===null){var pe=new Set;pe.add(O),i.updateQueue=pe}else de.add(O);break e}else{if((i&1)===0){Cg(x,$,i),Md();break e}O=Error(n(426))}}else if(Ze&&P.mode&1){var lt=Tg(S);if(lt!==null){(lt.flags&65536)===0&&(lt.flags|=256),Pg(lt,S,P,x,i),Hu(fi(O,P));break e}}x=O=fi(O,P),yt!==4&&(yt=2),Lo===null?Lo=[x]:Lo.push(x),x=S;do{switch(x.tag){case 3:x.flags|=65536,i&=-i,x.lanes|=i;var U=_g(x,O,i);Zm(x,U);break e;case 1:P=O;var L=x.type,z=x.stateNode;if((x.flags&128)===0&&(typeof L.getDerivedStateFromError=="function"||z!==null&&typeof z.componentDidCatch=="function"&&(Er===null||!Er.has(z)))){x.flags|=65536,i&=-i,x.lanes|=i;var ee=Eg(x,P,i);Zm(x,ee);break e}}x=x.return}while(x!==null)}ay(a)}catch(ge){i=ge,dt===a&&a!==null&&(dt=a=a.return);continue}break}while(!0)}function iy(){var r=Cl.current;return Cl.current=Sl,r===null?Sl:r}function Md(){(yt===0||yt===3||yt===2)&&(yt=4),bt===null||(ds&268435455)===0&&(Tl&268435455)===0||Pr(bt,Nt)}function Ll(r,i){var a=Ue;Ue|=2;var d=iy();(bt!==r||Nt!==i)&&(rr=null,hs(r,i));do try{WS();break}catch(m){sy(r,m)}while(!0);if(Ku(),Ue=a,Cl.current=d,dt!==null)throw Error(n(261));return bt=null,Nt=0,yt}function WS(){for(;dt!==null;)oy(dt)}function HS(){for(;dt!==null&&!g2();)oy(dt)}function oy(r){var i=uy(r.alternate,r,tn);r.memoizedProps=r.pendingProps,i===null?ay(r):dt=i,Nd.current=null}function ay(r){var i=r;do{var a=i.alternate;if(r=i.return,(i.flags&32768)===0){if(a=IS(a,i,tn),a!==null){dt=a;return}}else{if(a=FS(a,i),a!==null){a.flags&=32767,dt=a;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{yt=6,dt=null;return}}if(i=i.sibling,i!==null){dt=i;return}dt=i=r}while(i!==null);yt===0&&(yt=5)}function ps(r,i,a){var d=Ke,m=cn.transition;try{cn.transition=null,Ke=1,qS(r,i,a,d)}finally{cn.transition=m,Ke=d}return null}
vendor: 5,374 bytes, line 40
40function qS(r,i,a,d){do gi();while(Cr!==null);if((Ue&6)!==0)throw Error(n(327));a=r.finishedWork;var m=r.finishedLanes;if(a===null)return null;if(r.finishedWork=null,r.finishedLanes=0,a===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var x=a.lanes|a.childLanes;if(_2(r,x),r===bt&&(dt=bt=null,Nt=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Al||(Al=!0,dy(Ba,function(){return gi(),null})),x=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||x){x=cn.transition,cn.transition=null;var S=Ke;Ke=1;var P=Ue;Ue|=4,Nd.current=null,US(r,a),Xg(a,r),fS(Mu),qa=!!Ou,Mu=Ou=null,r.current=a,VS(a),y2(),Ue=P,Ke=S,cn.transition=x}else r.current=a;if(Al&&(Al=!1,Cr=r,Rl=m),x=r.pendingLanes,x===0&&(Er=null),b2(a.stateNode),Kt(r,at()),i!==null)for(d=r.onRecoverableError,a=0;a<i.length;a++)m=i[a],d(m.value,{componentStack:m.stack,digest:m.digest});if(Pl)throw Pl=!1,r=Cd,Cd=null,r;return(Rl&1)!==0&&r.tag!==0&&gi(),x=r.pendingLanes,(x&1)!==0?r===Td?Do++:(Do=0,Td=r):Do=0,kr(),null}function gi(){if(Cr!==null){var r=Qp(Rl),i=cn.transition,a=Ke;try{if(cn.transition=null,Ke=16>r?16:r,Cr===null)var d=!1;else{if(r=Cr,Cr=null,Rl=0,(Ue&6)!==0)throw Error(n(331));var m=Ue;for(Ue|=4,ue=r.current;ue!==null;){var x=ue,S=x.child;if((ue.flags&16)!==0){var P=x.deletions;if(P!==null){for(var O=0;O<P.length;O++){var $=P[O];for(ue=$;ue!==null;){var q=ue;switch(q.tag){case 0:case 11:case 15:Oo(8,q,x)}var Q=q.child;if(Q!==null)Q.return=q,ue=Q;else for(;ue!==null;){q=ue;var H=q.sibling,ae=q.return;if(qg(q),q===$){ue=null;break}if(H!==null){H.return=ae,ue=H;break}ue=ae}}}var de=x.alternate;if(de!==null){var pe=de.child;if(pe!==null){de.child=null;do{var lt=pe.sibling;pe.sibling=null,pe=lt}while(pe!==null)}}ue=x}}if((x.subtreeFlags&2064)!==0&&S!==null)S.return=x,ue=S;else e:for(;ue!==null;){if(x=ue,(x.flags&2048)!==0)switch(x.tag){case 0:case 11:case 15:Oo(9,x,x.return)}var U=x.sibling;if(U!==null){U.return=x.return,ue=U;break e}ue=x.return}}var L=r.current;for(ue=L;ue!==null;){S=ue;var z=S.child;if((S.subtreeFlags&2064)!==0&&z!==null)z.return=S,ue=z;else e:for(S=L;ue!==null;){if(P=ue,(P.flags&2048)!==0)try{switch(P.tag){case 0:case 11:case 15:El(9,P)}}catch(ge){rt(P,P.return,ge)}if(P===S){ue=null;break e}var ee=P.sibling;if(ee!==null){ee.return=P.return,ue=ee;break e}ue=P.return}}if(Ue=m,kr(),Rn&&typeof Rn.onPostCommitFiberRoot=="function")try{Rn.onPostCommitFiberRoot(Ua,r)}catch{}d=!0}return d}finally{Ke=a,cn.transition=i}}return!1}function ly(r,i,a){i=fi(a,i),i=_g(r,i,1),r=Nr(r,i,1),i=Ut(),r!==null&&(io(r,1,i),Kt(r,i))}function rt(r,i,a){if(r.tag===3)ly(r,r,a);else for(;i!==null;){if(i.tag===3){ly(i,r,a);break}else if(i.tag===1){var d=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Er===null||!Er.has(d))){r=fi(a,r),r=Eg(i,r,1),i=Nr(i,r,1),r=Ut(),i!==null&&(io(i,1,r),Kt(i,r));break}}i=i.return}}function KS(r,i,a){var d=r.pingCache;d!==null&&d.delete(i),i=Ut(),r.pingedLanes|=r.suspendedLanes&a,bt===r&&(Nt&a)===a&&(yt===4||yt===3&&(Nt&130023424)===Nt&&500>at()-Ed?hs(r,0):_d|=a),Kt(r,i)}function cy(r,i){i===0&&((r.mode&1)===0?i=1:(i=za,za<<=1,(za&130023424)===0&&(za=4194304)));var a=Ut();r=er(r,i),r!==null&&(io(r,i,a),Kt(r,a))}function GS(r){var i=r.memoizedState,a=0;i!==null&&(a=i.retryLane),cy(r,a)}function QS(r,i){var a=0;switch(r.tag){case 13:var d=r.stateNode,m=r.memoizedState;m!==null&&(a=m.retryLane);break;case 19:d=r.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(i),cy(r,a)}var uy;uy=function(r,i,a){if(r!==null)if(r.memoizedProps!==i.pendingProps||$t.current)Ht=!0;else{if((r.lanes&a)===0&&(i.flags&128)===0)return Ht=!1,DS(r,i,a);Ht=(r.flags&131072)!==0}else Ht=!1,Ze&&(i.flags&1048576)!==0&&$m(i,ul,i.index);switch(i.lanes=0,i.tag){case 2:var d=i.type;Nl(r,i),r=i.pendingProps;var m=si(i,Tt.current);ui(i,a),m=sd(null,i,d,r,m,a);var x=id();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,Wt(d)?(x=!0,al(i)):x=!1,i.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,Xu(i),m.updater=kl,i.stateNode=m,m._reactInternals=i,dd(i,d,r,a),i=md(null,i,d,!0,x,a)):(i.tag=0,Ze&&x&&Vu(i),Bt(null,i,m,a),i=i.child),i;case 16:d=i.elementType;e:{switch(Nl(r,i),r=i.pendingProps,m=d._init,d=m(d._payload),i.type=d,m=i.tag=XS(d),r=wn(d,r),m){case 0:i=pd(null,i,d,r,a);break e;case 1:i=Dg(null,i,d,r,a);break e;case 11:i=Ag(null,i,d,r,a);break e;case 14:i=Rg(null,i,d,wn(d.type,r),a);break e}throw Error(n(306,d,""))}return i;case 0:return d=i.type,m=i.pendingProps,m=i.elementType===d?m:wn(d,m),pd(r,i,d,m,a);case 1:return d=i.type,m=i.pendingProps,m=i.elementType===d?m:wn(d,m),Dg(r,i,d,m,a);case 3:e:{if(Ig(i),r===null)throw Error(n(387));d=i.pendingProps,x=i.memoizedState,m=x.element,Jm(r,i),gl(i,d,null,a);var S=i.memoizedState;if(d=S.element,x.isDehydrated)if(x={element:d,isDehydrated:!1,cache:S.cache,pendingSuspenseBoundaries:S.pendingSuspenseBoundaries,transitions:S.transitions},i.updateQueue.baseState=x,i.memoizedState=x,i.flags&256){m=fi(Error(n(423)),i),i=Fg(r,i,d,a,m);break e}else if(d!==m){m=fi(Error(n(424)),i),i=Fg(r,i,d,a,m);break e}else for(en=br(i.stateNode.containerInfo.firstChild),Zt=i,Ze=!0,bn=null,a=Ym(i,null,d,a),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ai(),d===m){i=nr(r,i,a);break e}Bt(r,i,d,a)}i=i.child}return i;
vendor: 8,528 bytes, line 40
40case 5:return tg(i),r===null&&Wu(i),d=i.type,m=i.pendingProps,x=r!==null?r.memoizedProps:null,S=m.children,Lu(d,m)?S=null:x!==null&&Lu(d,x)&&(i.flags|=32),Lg(r,i),Bt(r,i,S,a),i.child;case 6:return r===null&&Wu(i),null;case 13:return Bg(r,i,a);case 4:return Ju(i,i.stateNode.containerInfo),d=i.pendingProps,r===null?i.child=li(i,null,d,a):Bt(r,i,d,a),i.child;case 11:return d=i.type,m=i.pendingProps,m=i.elementType===d?m:wn(d,m),Ag(r,i,d,m,a);case 7:return Bt(r,i,i.pendingProps,a),i.child;case 8:return Bt(r,i,i.pendingProps.children,a),i.child;case 12:return Bt(r,i,i.pendingProps.children,a),i.child;case 10:e:{if(d=i.type._context,m=i.pendingProps,x=i.memoizedProps,S=m.value,Qe(hl,d._currentValue),d._currentValue=S,x!==null)if(vn(x.value,S)){if(x.children===m.children&&!$t.current){i=nr(r,i,a);break e}}else for(x=i.child,x!==null&&(x.return=i);x!==null;){var P=x.dependencies;if(P!==null){S=x.child;for(var O=P.firstContext;O!==null;){if(O.context===d){if(x.tag===1){O=tr(-1,a&-a),O.tag=2;var $=x.updateQueue;if($!==null){$=$.shared;var q=$.pending;q===null?O.next=O:(O.next=q.next,q.next=O),$.pending=O}}x.lanes|=a,O=x.alternate,O!==null&&(O.lanes|=a),Qu(x.return,a,i),P.lanes|=a;break}O=O.next}}else if(x.tag===10)S=x.type===i.type?null:x.child;else if(x.tag===18){if(S=x.return,S===null)throw Error(n(341));S.lanes|=a,P=S.alternate,P!==null&&(P.lanes|=a),Qu(S,a,i),S=x.sibling}else S=x.child;if(S!==null)S.return=x;else for(S=x;S!==null;){if(S===i){S=null;break}if(x=S.sibling,x!==null){x.return=S.return,S=x;break}S=S.return}x=S}Bt(r,i,m.children,a),i=i.child}return i;case 9:return m=i.type,d=i.pendingProps.children,ui(i,a),m=an(m),d=d(m),i.flags|=1,Bt(r,i,d,a),i.child;case 14:return d=i.type,m=wn(d,i.pendingProps),m=wn(d.type,m),Rg(r,i,d,m,a);case 15:return Og(r,i,i.type,i.pendingProps,a);case 17:return d=i.type,m=i.pendingProps,m=i.elementType===d?m:wn(d,m),Nl(r,i),i.tag=1,Wt(d)?(r=!0,al(i)):r=!1,ui(i,a),jg(i,d,m),dd(i,d,m,a),md(null,i,d,!0,r,a);case 19:return Vg(r,i,a);case 22:return Mg(r,i,a)}throw Error(n(156,i.tag))};function dy(r,i){return Wp(r,i)}function YS(r,i,a,d){this.tag=r,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 un(r,i,a,d){return new YS(r,i,a,d)}function Ld(r){return r=r.prototype,!(!r||!r.isReactComponent)}function XS(r){if(typeof r=="function")return Ld(r)?1:0;if(r!=null){if(r=r.$$typeof,r===re)return 11;if(r===Ae)return 14}return 2}function Ar(r,i){var a=r.alternate;return a===null?(a=un(r.tag,i,r.key,r.mode),a.elementType=r.elementType,a.type=r.type,a.stateNode=r.stateNode,a.alternate=r,r.alternate=a):(a.pendingProps=i,a.type=r.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=r.flags&14680064,a.childLanes=r.childLanes,a.lanes=r.lanes,a.child=r.child,a.memoizedProps=r.memoizedProps,a.memoizedState=r.memoizedState,a.updateQueue=r.updateQueue,i=r.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},a.sibling=r.sibling,a.index=r.index,a.ref=r.ref,a}function Dl(r,i,a,d,m,x){var S=2;if(d=r,typeof r=="function")Ld(r)&&(S=1);else if(typeof r=="string")S=5;else e:switch(r){case Z:return ms(a.children,m,x,i);case F:S=8,m|=8;break;case ne:return r=un(12,a,i,m|2),r.elementType=ne,r.lanes=x,r;case Se:return r=un(13,a,i,m),r.elementType=Se,r.lanes=x,r;case Te:return r=un(19,a,i,m),r.elementType=Te,r.lanes=x,r;case xe:return Il(a,m,x,i);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case ye:S=10;break e;case Ne:S=9;break e;case re:S=11;break e;case Ae:S=14;break e;case me:S=16,d=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return i=un(S,a,i,m),i.elementType=r,i.type=d,i.lanes=x,i}function ms(r,i,a,d){return r=un(7,r,d,i),r.lanes=a,r}function Il(r,i,a,d){return r=un(22,r,d,i),r.elementType=xe,r.lanes=a,r.stateNode={isHidden:!1},r}function Dd(r,i,a){return r=un(6,r,null,i),r.lanes=a,r}function Id(r,i,a){return i=un(4,r.children!==null?r.children:[],r.key,i),i.lanes=a,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}function JS(r,i,a,d,m){this.tag=i,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=uu(0),this.expirationTimes=uu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uu(0),this.identifierPrefix=d,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null}function Fd(r,i,a,d,m,x,S,P,O){return r=new JS(r,i,a,P,O),i===1?(i=1,x===!0&&(i|=8)):i=0,x=un(3,null,null,i),r.current=x,x.stateNode=r,x.memoizedState={element:d,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xu(x),r}function ZS(r,i,a){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:V,key:d==null?null:""+d,children:r,containerInfo:i,implementation:a}}function fy(r){if(!r)return Sr;r=r._reactInternals;e:{if(rs(r)!==r||r.tag!==1)throw Error(n(170));var i=r;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(Wt(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(n(171))}if(r.tag===1){var a=r.type;if(Wt(a))return Um(r,a,i)}return i}function hy(r,i,a,d,m,x,S,P,O){return r=Fd(a,d,!0,r,m,x,S,P,O),r.context=fy(null),a=r.current,d=Ut(),m=Tr(a),x=tr(d,m),x.callback=i??null,Nr(a,x,m),r.current.lanes=m,io(r,m,d),Kt(r,d),r}function Fl(r,i,a,d){var m=i.current,x=Ut(),S=Tr(m);return a=fy(a),i.context===null?i.context=a:i.pendingContext=a,i=tr(x,S),i.payload={element:r},d=d===void 0?null:d,d!==null&&(i.callback=d),r=Nr(m,i,S),r!==null&&(jn(r,m,S,x),ml(r,m,S)),S}function Bl(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function py(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var a=r.retryLane;r.retryLane=a!==0&&a<i?a:i}}function Bd(r,i){py(r,i),(r=r.alternate)&&py(r,i)}function ek(){return null}var my=typeof reportError=="function"?reportError:function(r){console.error(r)};function Ud(r){this._internalRoot=r}Ul.prototype.render=Ud.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(n(409));Fl(r,i,null,null)},Ul.prototype.unmount=Ud.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;fs(function(){Fl(null,r,null,null)}),i[Yn]=null}};function Ul(r){this._internalRoot=r}Ul.prototype.unstable_scheduleHydration=function(r){if(r){var i=Jp();r={blockedOn:null,target:r,priority:i};for(var a=0;a<yr.length&&i!==0&&i<yr[a].priority;a++);yr.splice(a,0,r),a===0&&tm(r)}};function Vd(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function Vl(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function gy(){}function tk(r,i,a,d,m){if(m){if(typeof d=="function"){var x=d;d=function(){var $=Bl(S);x.call($)}}var S=hy(i,d,r,0,null,!1,!1,"",gy);return r._reactRootContainer=S,r[Yn]=S.current,bo(r.nodeType===8?r.parentNode:r),fs(),S}for(;m=r.lastChild;)r.removeChild(m);if(typeof d=="function"){var P=d;d=function(){var $=Bl(O);P.call($)}}var O=Fd(r,0,!1,null,null,!1,!1,"",gy);return r._reactRootContainer=O,r[Yn]=O.current,bo(r.nodeType===8?r.parentNode:r),fs(function(){Fl(i,O,a,d)}),O}function zl(r,i,a,d,m){var x=a._reactRootContainer;if(x){var S=x;if(typeof m=="function"){var P=m;m=function(){var O=Bl(S);P.call(O)}}Fl(i,S,r,m)}else S=tk(a,i,r,m,d);return Bl(S)}Yp=function(r){switch(r.tag){case 3:var i=r.stateNode;if(i.current.memoizedState.isDehydrated){var a=so(i.pendingLanes);a!==0&&(du(i,a|1),Kt(i,at()),(Ue&6)===0&&(mi=at()+500,kr()))}break;case 13:fs(function(){var d=er(r,1);if(d!==null){var m=Ut();jn(d,r,1,m)}}),Bd(r,1)}},fu=function(r){if(r.tag===13){var i=er(r,134217728);if(i!==null){var a=Ut();jn(i,r,134217728,a)}Bd(r,134217728)}},Xp=function(r){if(r.tag===13){var i=Tr(r),a=er(r,i);if(a!==null){var d=Ut();jn(a,r,i,d)}Bd(r,i)}},Jp=function(){return Ke},Zp=function(r,i){var a=Ke;try{return Ke=r,i()}finally{Ke=a}},su=function(r,i,a){switch(i){case"input":if(qe(r,a),i=a.name,a.t
vendor: 4,339 bytes, line 40
40ype==="radio"&&i!=null){for(a=r;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!==r&&d.form===r.form){var m=il(d);if(!m)throw Error(n(90));Oe(d),qe(d,m)}}}break;case"textarea":Xi(r,a);break;case"select":i=a.value,i!=null&&An(r,!!a.multiple,i,!1)}},Ip=Rd,Fp=fs;var nk={usingClientEntryPoint:!1,Events:[ko,ni,il,Lp,Dp,Rd]},Io={findFiberByHostInstance:ss,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rk={bundleType:Io.bundleType,version:Io.version,rendererPackageName:Io.rendererPackageName,rendererConfig:Io.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=zp(r),r===null?null:r.stateNode},findFiberByHostInstance:Io.findFiberByHostInstance||ek,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 $l=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$l.isDisabled&&$l.supportsFiber)try{Ua=$l.inject(rk),Rn=$l}catch{}}return Gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nk,Gt.createPortal=function(r,i){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Vd(i))throw Error(n(200));return ZS(r,i,null,a)},Gt.createRoot=function(r,i){if(!Vd(r))throw Error(n(299));var a=!1,d="",m=my;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onRecoverableError!==void 0&&(m=i.onRecoverableError)),i=Fd(r,1,!1,null,null,a,!1,d,m),r[Yn]=i.current,bo(r.nodeType===8?r.parentNode:r),new Ud(i)},Gt.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=zp(i),r=r===null?null:r.stateNode,r},Gt.flushSync=function(r){return fs(r)},Gt.hydrate=function(r,i,a){if(!Vl(i))throw Error(n(200));return zl(null,r,i,!0,a)},Gt.hydrateRoot=function(r,i,a){if(!Vd(r))throw Error(n(405));var d=a!=null&&a.hydratedSources||null,m=!1,x="",S=my;if(a!=null&&(a.unstable_strictMode===!0&&(m=!0),a.identifierPrefix!==void 0&&(x=a.identifierPrefix),a.onRecoverableError!==void 0&&(S=a.onRecoverableError)),i=hy(i,null,r,1,a??null,m,!1,x,S),r[Yn]=i.current,bo(r),d)for(r=0;r<d.length;r++)a=d[r],m=a._getVersion,m=m(a._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[a,m]:i.mutableSourceEagerHydrationData.push(a,m);return new Ul(i)},Gt.render=function(r,i,a){if(!Vl(i))throw Error(n(200));return zl(null,r,i,!1,a)},Gt.unmountComponentAtNode=function(r){if(!Vl(r))throw Error(n(40));return r._reactRootContainer?(fs(function(){zl(null,null,r,!1,function(){r._reactRootContainer=null,r[Yn]=null})}),!0):!1},Gt.unstable_batchedUpdates=Rd,Gt.unstable_renderSubtreeIntoContainer=function(r,i,a,d){if(!Vl(a))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return zl(r,i,a,!1,d)},Gt.version="18.3.1-next-f1338f8080-20240426",Gt}var Ny;function Lv(){if(Ny)return Hd.exports;Ny=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(),Hd.exports=pk(),Hd.exports}var _y;function mk(){if(_y)return Hl;_y=1;var e=Lv();return Hl.createRoot=e.createRoot,Hl.hydrateRoot=e.hydrateRoot,Hl}var gk=mk();const yk=Mv(gk),xk=20,vk=1e6,cr={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let Gd=0;function bk(){return Gd=(Gd+1)%Number.MAX_VALUE,Gd.toString()}const Qd=new Map,Ey=e=>{if(Qd.has(e))return;const t=setTimeout(()=>{Qd.delete(e),Jo({type:cr.REMOVE_TOAST,toastId:e})},vk);Qd.set(e,t)},wk=(e,t)=>{switch(t.type){case cr.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,xk)};case cr.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case cr.DISMISS_TOAST:{const{toastId:n}=t;
vendor: 16,384 bytes, lines 40-235
40return n?Ey(n):e.toasts.forEach(s=>{Ey(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===n||n===void 0?{...s,open:!1}:s)}}case cr.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ac=[];let lc={toasts:[]};function Jo(e){lc=wk(lc,e),ac.forEach(t=>{t(lc)})}function Sk({...e}){const t=bk(),n=o=>Jo({type:cr.UPDATE_TOAST,toast:{...o,id:t}}),s=()=>Jo({type:cr.DISMISS_TOAST,toastId:t});return Jo({type:cr.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:o=>{o||s()}}}),{id:t,dismiss:s,update:n}}function kk(){const[e,t]=E.useState(lc);return E.useEffect(()=>(ac.push(t),()=>{const n=ac.indexOf(t);n>-1&&ac.splice(n,1)}),[e]),{...e,toast:Sk,dismiss:n=>Jo({type:cr.DISMISS_TOAST,toastId:n})}}function Dv(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Dv(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function Iv(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Dv(e))&&(s&&(s+=" "),s+=t);return s}const Cy=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ty=Iv,jk=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return Ty(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 g=n==null?void 0:n[p],y=c==null?void 0:c[p];if(g===null)return null;const v=Cy(g)||Cy(y);return o[p][v]}),f=n&&Object.entries(n).reduce((p,g)=>{let[y,v]=g;return v===void 0||(p[y]=v),p},{}),h=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((p,g)=>{let{class:y,className:v,...j}=g;return Object.entries(j).every(N=>{let[b,_]=N;return Array.isArray(_)?_.includes({...c,...f}[b]):{...c,...f}[b]===_})?[...p,y,v]:p},[]);return Ty(e,u,h,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.475.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const Nk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Fv=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.475.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var _k={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"};/**
51 * @license lucide-react v0.475.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const Ek=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:o="",children:c,iconNode:u,...f},h)=>E.createElement("svg",{ref:h,..._k,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:Fv("lucide",o),...f},[...u.map(([p,g])=>E.createElement(p,g)),...Array.isArray(c)?c:[c]]));/**
56 * @license lucide-react v0.475.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const Ee=(e,t)=>{const n=E.forwardRef(({className:s,...o},c)=>E.createElement(Ek,{ref:c,iconNode:t,className:Fv(`lucide-${Nk(e)}`,s),...o}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.475.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const Ck=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Tk=Ee("ArrowLeft",Ck);/**
66 * @license lucide-react v0.475.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const Pk=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],Ak=Ee("Award",Pk);/**
71 * @license lucide-react v0.475.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const Rk=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Ok=Ee("Calendar",Rk);/**
76 * @license lucide-react v0.475.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const Mk=[["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"}]],Lk=Ee("ChartColumn",Mk);/**
81 * @license lucide-react v0.475.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const Dk=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],jh=Ee("Check",Dk);/**
86 * @license lucide-react v0.475.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const Ik=[["path",{d:"M17 21a1 1 0 0 0 1-1v-5.35c0-.457.316-.844.727-1.041a4 4 0 0 0-2.134-7.589 5 5 0 0 0-9.186 0 4 4 0 0 0-2.134 7.588c.411.198.727.585.727 1.041V20a1 1 0 0 0 1 1Z",key:"1qvrer"}],["path",{d:"M6 17h12",key:"1jwigz"}]],Fk=Ee("ChefHat",Ik);/**
91 * @license lucide-react v0.475.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const Bk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Uk=Ee("ChevronRight",Bk);/**
96 * @license lucide-react v0.475.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const Vk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Sa=Ee("CircleAlert",Vk);/**
101 * @license lucide-react v0.475.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const zk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Wn=Ee("CircleCheck",zk);/**
106 * @license lucide-react v0.475.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const $k=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Ic=Ee("Clock",$k);/**
111 * @license lucide-react v0.475.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const Wk=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Bv=Ee("Copy",Wk);/**
116 * @license lucide-react v0.475.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const Hk=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],qk=Ee("CreditCard",Hk);/**
121 * @license lucide-react v0.475.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const Kk=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],Uv=Ee("Crown",Kk);/**
126 * @license lucide-react v0.475.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const Gk=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],Qk=Ee("DollarSign",Gk);/**
131 * @license lucide-react v0.475.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const Yk=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Vv=Ee("ExternalLink",Yk);/**
136 * @license lucide-react v0.475.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const Xk=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Jk=Ee("EyeOff",Xk);/**
141 * @license lucide-react v0.475.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const Zk=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],ej=Ee("Filter",Zk);/**
146 * @license lucide-react v0.475.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const tj=[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]],aa=Ee("Gift",tj);/**
151 * @license lucide-react v0.475.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const nj=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],zv=Ee("Heart",nj);/**
156 * @license lucide-react v0.475.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const rj=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],sj=Ee("House",rj);/**
161 * @license lucide-react v0.475.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const ij=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],Py=Ee("Leaf",ij);/**
166 * @license lucide-react v0.475.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const oj=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],aj=Ee("Lightbulb",oj);/**
171 * @license lucide-react v0.475.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const lj=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Fc=Ee("LoaderCircle",lj);/**
176 * @license lucide-react v0.475.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const cj=[["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"}]],Nh=Ee("Lock",cj);/**
181 * @license lucide-react v0.475.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const uj=[["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"}]],$v=Ee("LogOut",uj);/**
186 * @license lucide-react v0.475.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const dj=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],Xr=Ee("Mail",dj);/**
191 * @license lucide-react v0.475.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const fj=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Wv=Ee("MapPin",fj);/**
196 * @license lucide-react v0.475.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */const hj=[["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"}]],Hv=Ee("Menu",hj);/**
201 * @license lucide-react v0.475.0 - ISC
202 *
203 * This source code is licensed under the ISC license.
204 * See the LICENSE file in the root directory of this source tree.
205 */const pj=[["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"}]],Jr=Ee("Package",pj);/**
206 * @license lucide-react v0.475.0 - ISC
207 *
208 * This source code is licensed under the ISC license.
209 * See the LICENSE file in the root directory of this source tree.
210 */const mj=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],_h=Ee("Phone",mj);/**
211 * @license lucide-react v0.475.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const gj=[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]],yj=Ee("Printer",gj);/**
216 * @license lucide-react v0.475.0 - ISC
217 *
218 * This source code is licensed under the ISC license.
219 * See the LICENSE file in the root directory of this source tree.
220 */const xj=[["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"}]],vj=Ee("RotateCcw",xj);/**
221 * @license lucide-react v0.475.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const bj=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],wj=Ee("Search",bj);/**
226 * @license lucide-react v0.475.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const Sj=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Eh=Ee("Share2",Sj);/**
231 * @license lucide-react v0.475.0 - ISC
232 *
233 * This source code is licensed under the ISC license.
234 * See the LICENSE file in the root directory of this source tree.
235 */const kj=[["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 5
235a1 1 0 0 1 1 1z",key:"oel41y"}]],qv=Ee("Shield",kj);/**
236 * @license lucide-react v0.475.0 - ISC
237 *
238 * This source code is licensed under the ISC license.
239 * See the LICENSE file in the root directory of this source tree.
240 */const jj=[["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"}]],Ay=Ee("ShoppingBag",jj);/**
241 * @license lucide-react v0.475.0 - ISC
242 *
243 * This source code is licensed under the ISC license.
244 * See the LICENSE file in the root directory of this source tree.
245 */const Nj=[["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"}]],cc=Ee("ShoppingCart",Nj);/**
246 * @license lucide-react v0.475.0 - ISC
247 *
248 * This source code is licensed under the ISC license.
249 * See the LICENSE file in the root directory of this source tree.
250 */const _j=[["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"}]],Kv=Ee("Sparkles",_j);/**
251 * @license lucide-react v0.475.0 - ISC
252 *
253 * This source code is licensed under the ISC license.
254 * See the LICENSE file in the root directory of this source tree.
255 */const Ej=[["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"}]],Cj=Ee("Star",Ej);/**
256 * @license lucide-react v0.475.0 - ISC
257 *
258 * This source code is licensed under the ISC license.
259 * See the LICENSE file in the root directory of this source tree.
260 */const Tj=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Pj=Ee("Trash2",Tj);/**
261 * @license lucide-react v0.475.0 - ISC
262 *
263 * This source code is licensed under the ISC license.
264 * See the LICENSE file in the root directory of this source tree.
265 */const Aj=[["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"}]],Gv=Ee("TrendingUp",Aj);/**
266 * @license lucide-react v0.475.0 - ISC
267 *
268 * This source code is licensed under the ISC license.
269 * See the LICENSE file in the root directory of this source tree.
270 */const Rj=[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]],Oj=Ee("Trophy",Rj);/**
271 * @license lucide-react v0.475.0 - ISC
272 *
273 * This source code is licensed under the ISC license.
274 * See the LICENSE file in the root directory of this source tree.
275 */const Mj=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]],Fi=Ee("Truck",Mj);/**
276 * @license lucide-react v0.475.0 - ISC
277 *
278 * This source code is licensed under the ISC license.
279 * See the LICENSE file in the root directory of this source tree.
280 */const Lj=[["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"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],Dj=Ee("UserPlus",Lj);/**
281 * @license lucide-react v0.475.0 - ISC
282 *
283 * This source code is licensed under the ISC license.
284 * See the LICENSE file in the root directory of this source tree.
285 */const Ij=[["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"}]],Ch=Ee("Users",Ij);/**
286 * @license lucide-react v0.475.0 - ISC
287 *
288 * This source code is licensed under the ISC license.
289 * See the LICENSE file in the root directory of this source tree.
290 */const Fj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 8,788 bytes, lines 290-295
290],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],$i=Ee("X",Fj);/**
291 * @license lucide-react v0.475.0 - ISC
292 *
293 * This source code is licensed under the ISC license.
294 * See the LICENSE file in the root directory of this source tree.
295 */const Bj=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Uj=Ee("Zap",Bj),Vj=(e,t)=>{const n=new Array(e.length+t.length);for(let s=0;s<e.length;s++)n[s]=e[s];for(let s=0;s<t.length;s++)n[e.length+s]=t[s];return n},zj=(e,t)=>({classGroupId:e,validator:t}),Qv=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Sc="-",Ry=[],$j="arbitrary..",Wj=e=>{const t=qj(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return Hj(u);const f=u.split(Sc),h=f[0]===""&&f.length>1?1:0;return Yv(f,h,t)},getConflictingClassGroupIds:(u,f)=>{if(f){const h=s[u],p=n[u];return h?p?Vj(p,h):h:p||Ry}return n[u]||Ry}}},Yv=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],c=n.nextPart.get(o);if(c){const p=Yv(e,t+1,c);if(p)return p}const u=n.validators;if(u===null)return;const f=t===0?e.join(Sc):e.slice(t).join(Sc),h=u.length;for(let p=0;p<h;p++){const g=u[p];if(g.validator(f))return g.classGroupId}},Hj=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),s=t.slice(0,n);return s?$j+s:void 0})(),qj=e=>{const{theme:t,classGroups:n}=e;return Kj(n,t)},Kj=(e,t)=>{const n=Qv();for(const s in e){const o=e[s];Th(o,n,s,t)}return n},Th=(e,t,n,s)=>{const o=e.length;for(let c=0;c<o;c++){const u=e[c];Gj(u,t,n,s)}},Gj=(e,t,n,s)=>{if(typeof e=="string"){Qj(e,t,n);return}if(typeof e=="function"){Yj(e,t,n,s);return}Xj(e,t,n,s)},Qj=(e,t,n)=>{const s=e===""?t:Xv(t,e);s.classGroupId=n},Yj=(e,t,n,s)=>{if(Jj(e)){Th(e(s),t,n,s);return}t.validators===null&&(t.validators=[]),t.validators.push(zj(n,e))},Xj=(e,t,n,s)=>{const o=Object.entries(e),c=o.length;for(let u=0;u<c;u++){const[f,h]=o[u];Th(h,Xv(t,f),n,s)}},Xv=(e,t)=>{let n=e;const s=t.split(Sc),o=s.length;for(let c=0;c<o;c++){const u=s[c];let f=n.nextPart.get(u);f||(f=Qv(),n.nextPart.set(u,f)),n=f}return n},Jj=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Zj=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),s=Object.create(null);const o=(c,u)=>{n[c]=u,t++,t>e&&(t=0,s=n,n=Object.create(null))};return{get(c){let u=n[c];if(u!==void 0)return u;if((u=s[c])!==void 0)return o(c,u),u},set(c,u){c in n?n[c]=u:o(c,u)}}},Nf="!",Oy=":",eN=[],My=(e,t,n,s,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:s,isExternal:o}),tN=e=>{const{prefix:t,experimentalParseClassName:n}=e;let s=o=>{const c=[];let u=0,f=0,h=0,p;const g=o.length;for(let b=0;b<g;b++){const _=o[b];if(u===0&&f===0){if(_===Oy){c.push(o.slice(h,b)),h=b+1;continue}if(_==="/"){p=b;continue}}_==="["?u++:_==="]"?u--:_==="("?f++:_===")"&&f--}const y=c.length===0?o:o.slice(h);let v=y,j=!1;y.endsWith(Nf)?(v=y.slice(0,-1),j=!0):y.startsWith(Nf)&&(v=y.slice(1),j=!0);const N=p&&p>h?p-h:void 0;return My(c,j,v,N)};if(t){const o=t+Oy,c=s;s=u=>u.startsWith(o)?c(u.slice(o.length)):My(eN,!1,u,void 0,!0)}if(n){const o=s;s=c=>n({className:c,parseClassName:o})}return s},nN=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,s)=>{t.set(n,1e6+s)}),n=>{const s=[];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(),s.push(...o),o=[]),s.push(u)):o.push(u)}return o.length>0&&(o.sort(),s.push(...o)),s}},rN=e=>({cache:Zj(e.cacheSize),parseClassName:tN(e),sortModifiers:nN(e),...Wj(e)}),sN=/\s+/,iN=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:c}=t,u=[],f=e.trim().split(sN);let h="";for(let p=f.length-1;p>=0;p-=1){const g=f[p],{isExternal:y,modifiers:v,hasImportantModifier:j,baseClassName:N,maybePostfixModifierPosition:b}=n(g);if(y){h=g+(h.length>0?" "+h:h);continue}let _=!!b,w=s(_?N.substring(0,b):N);if(!w){if(!_){h=g+(h.length>0?" "+h:h);continue}if(w=s(N),!w){h=g+(h.length>0?" "+h:h);continue}_=!1}const T=v.length===0?"":v.length===1?v[0]:c(v).join(":"),A=j?T+Nf:T,R=A+w;if(u.indexOf(R)>-1)continue;u.push(R);const I=o(w,_);for(let V=0;V<I.length;++V){const Z=I[V];u.push(A+Z)}h=g+(h.length>0?" "+h:h)}return h},oN=(...e)=>{let t=0,n,s,o="";for(;t<e.length;)(n=e[t++])&&(s=Jv(n))&&(o&&(o+=" "),o+=s);return o},Jv=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=Jv(e[s]))&&(n&&(n+=" "),n+=t);return n},aN=(e,...t)=>{let n,s,o,c;const u=h=>{const p=t.reduce((g,y)=>y(g),e());return n=rN(p),s=n.cache.get,o=n.cache.set,c=f,f(h)},f=h=>{const p=s(h);if(p)return p;const g=iN(h,n);return o(h,g),g};return c=u,(...h)=>c(oN(...h))},lN=[],xt=e=>{const t=n=>n[e]||lN;return t.isThemeGetter=!0,t},Zv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,eb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,cN=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,uN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dN=/\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$/,fN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,hN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Or=e=>cN.test(e),Me=e=>!!e&&!Number.isNaN(Number(e)),Mr=e=>!!e&&Number.isInteger(Number(e)),Yd=e=>e.endsWith("%")&&Me(e.slice(0,-1)),sr=e=>uN.test(e),tb=()=>!0,mN=e=>dN.test(e)&&!fN.test(e),Ph=()=>!1,gN=e=>hN.test(e),yN=e=>pN.test(e),xN=e=>!fe(e)&&!he(e),vN=e=>es(e,sb,Ph),fe=e=>Zv.test(e),gs=e=>es(e,ib,mN),Ly=e=>es(e,EN,Me),bN=e=>es(e,ab,tb),wN=e=>es(e,ob,Ph),Dy=e=>es(e,nb,Ph),SN=e=>es(e,rb,yN),ql=e=>es(e,lb,gN),he=e=>eb.test(e),Bo=e=>zs(e,ib),kN=e=>zs(e,ob),Iy=e=>zs(e,nb),jN=e=>zs(e,sb),NN=e=>zs(e,rb),Kl=e=>zs(e,lb,!0),_N=e=>zs(e,ab,!0),es=(e,t,n)=>{const s=Zv.exec(e);return s?s[1]?t(s[1]):n(s[2]):!1},zs=(e,t,n=!1)=>{const s=eb.exec(e);return s?s[1]?t(s[1]):n:!1},nb=e=>e==="position"||e==="percentage",rb=e=>e==="image"||e==="url",sb=e=>e==="length"||e==="size"||e==="bg-size",ib=e=>e==="length",EN=e=>e==="number",ob=e=>e==="family-name",ab=e=>e==="number"||e==="weight",lb=e=>e==="shadow",CN=()=>{const e=xt("color"),t=xt("font"),n=xt("text"),s=xt("font-weight"),o=xt("tracking"),c=xt("leading"),u=xt("breakpoint"),f=xt("container"),h=xt("spacing"),p=xt("radius"),g=xt("shadow"),y=xt("inset-shadow"),v=xt("text-shadow"),j=xt("drop-shadow"),N=xt("blur"),b=xt("perspective"),_=xt("aspect"),w=xt("ease"),T=xt("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...R(),he,fe],V=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],F=()=>[he,fe,h],ne=()=>[Or,"full","auto",...F()],ye=()=>[Mr,"none","subgrid",he,fe],Ne=()=>["auto",{span:["full",Mr,he,fe]},Mr,he,fe],re=()=>[Mr,"auto",he,fe],Se=()=>["auto","min","max","fr",he,fe],Te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ae=()=>["start","end","center","stretch","center-safe","end-safe"],me=()=>["auto",...F()],xe=()=>[Or,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],G=()=>[Or,"screen","full","dvw","lvw","svw","min","max","fit",...F()],le=()=>[Or,"screen","full","lh","dvh","lvh","svh","min","max","fit",...F()],C=()=>[e,he,fe],k=()=>[...R(),Iy,Dy,{position:[he,fe]}],B=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y=()=>["auto","cover","contain",jN,vN,{size:[he,fe]}],te=()=>[Yd,Bo,gs],J=()=>["","none","full",p,he,fe],W=()=>["",Me,Bo,gs],X=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>[Me,Yd,Iy,Dy],Re=()=>["","none",N,he,fe],Le=()=>["none",Me,he,fe],Oe=()=>["none",Me,he,fe],He=()=>[Me,he,fe],Ce=()=>[Or,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[sr],breakpoint:[sr],color:[tb],container:[sr],"drop-shadow":[sr],ease:["in","out","in-out"],font:[xN],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[sr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[sr],shadow:[sr],spacing:["px",Me],text:[sr],"text-shadow":[sr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Or,fe,he,_]}
vendor: 6,144 bytes, line 295
295],container:["container"],columns:[{columns:[Me,fe,he,f]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ne()}],"inset-x":[{"inset-x":ne()}],"inset-y":[{"inset-y":ne()}],start:[{"inset-s":ne(),start:ne()}],end:[{"inset-e":ne(),end:ne()}],"inset-bs":[{"inset-bs":ne()}],"inset-be":[{"inset-be":ne()}],top:[{top:ne()}],right:[{right:ne()}],bottom:[{bottom:ne()}],left:[{left:ne()}],visibility:["visible","invisible","collapse"],z:[{z:[Mr,"auto",he,fe]}],basis:[{basis:[Or,"full","auto",f,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,Or,"auto","initial","none",fe]}],grow:[{grow:["",Me,he,fe]}],shrink:[{shrink:["",Me,he,fe]}],order:[{order:[Mr,"first","last","none",he,fe]}],"grid-cols":[{"grid-cols":ye()}],"col-start-end":[{col:Ne()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":ye()}],"row-start-end":[{row:Ne()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Se()}],"auto-rows":[{"auto-rows":Se()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...Te(),"normal"]}],"justify-items":[{"justify-items":[...Ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ae()]}],"align-content":[{content:["normal",...Te()]}],"align-items":[{items:[...Ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":Te()}],"place-items":[{"place-items":[...Ae(),"baseline"]}],"place-self":[{"place-self":["auto",...Ae()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pbs:[{pbs:F()}],pbe:[{pbe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],m:[{m:me()}],mx:[{mx:me()}],my:[{my:me()}],ms:[{ms:me()}],me:[{me:me()}],mbs:[{mbs:me()}],mbe:[{mbe:me()}],mt:[{mt:me()}],mr:[{mr:me()}],mb:[{mb:me()}],ml:[{ml:me()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:xe()}],"inline-size":[{inline:["auto",...G()]}],"min-inline-size":[{"min-inline":["auto",...G()]}],"max-inline-size":[{"max-inline":["none",...G()]}],"block-size":[{block:["auto",...le()]}],"min-block-size":[{"min-block":["auto",...le()]}],"max-block-size":[{"max-block":["none",...le()]}],w:[{w:[f,"screen",...xe()]}],"min-w":[{"min-w":[f,"screen","none",...xe()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...xe()]}],h:[{h:["screen","lh",...xe()]}],"min-h":[{"min-h":["screen","lh","none",...xe()]}],"max-h":[{"max-h":["screen","lh",...xe()]}],"font-size":[{text:["base",n,Bo,gs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,_N,bN]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Yd,fe]}],"font-family":[{font:[kN,wN,t]}],"font-features":[{"font-features":[fe]}],"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,he,fe]}],"line-clamp":[{"line-clamp":[Me,"none",he,Ly]}],leading:[{leading:[c,...F()]}],"list-image":[{"list-image":["none",he,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",he,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",he,gs]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[Me,"auto",he,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",he,fe]}],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",he,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:k()}],"bg-repeat":[{bg:B()}],"bg-size":[{bg:Y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Mr,he,fe],radial:["",he,fe],conic:[Mr,he,fe]},NN,SN]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:te()}
vendor: 7,369 bytes, line 295
295],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-bs":[{"border-bs":W()}],"border-w-be":[{"border-be":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-bs":[{"border-bs":C()}],"border-color-be":[{"border-be":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,he,fe]}],"outline-w":[{outline:["",Me,Bo,gs]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",g,Kl,ql]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",y,Kl,ql]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[Me,gs]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",v,Kl,ql]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[Me,he,fe]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"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":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[he,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"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":R()}],"mask-image-conic-pos":[{"mask-conic":[Me]}],"mask-image-conic-from-pos":[{"mask-conic-from":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:k()}],"mask-repeat":[{mask:B()}],"mask-size":[{mask:Y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",he,fe]}],filter:[{filter:["","none",he,fe]}],blur:[{blur:Re()}],brightness:[{brightness:[Me,he,fe]}],contrast:[{contrast:[Me,he,fe]}],"drop-shadow":[{"drop-shadow":["","none",j,Kl,ql]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",Me,he,fe]}],"hue-rotate":[{"hue-rotate":[Me,he,fe]}],invert:[{invert:["",Me,he,fe]}],saturate:[{saturate:[Me,he,fe]}],sepia:[{sepia:["",Me,he,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",he,fe]}],"backdrop-blur":[{"backdrop-blur":Re()}],"backdrop-brightness":[{"backdrop-brightness":[Me,he,fe]}],"backdrop-contrast":[{"backdrop-contrast":[Me,he,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,he,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,he,fe]}],"backdrop-invert":[{"backdrop-invert":["",Me,he,fe]}],"backdrop-opacity":[{"backdrop-opacity":[Me,he,fe]}],"backdrop-saturate":[{"backdrop-saturate":[Me,he,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,he,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",he,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",he,fe]}],ease:[{ease:["linear","initial",w,he,fe]}],delay:[{delay:[Me,he,fe]}],animate:[{animate:["none",T,he,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,he,fe]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:Le()}],"rotate-x":[{"rotate-x":Le()}],"rotate-y":[{"rotate-y":Le()}],"rotate-z":[{"rotate-z":Le()}],scale:[{scale:Oe()}],"scale-x":[{"scale-x":Oe()}],"scale-y":[{"scale-y":Oe()}],"scale-z":[{"scale-z":Oe()}],"scale-3d":["scale-3d"],skew:[{skew:He()}],"skew-x":[{"skew-x":He()}],"skew-y":[{"skew-y":He()}],transform:[{transform:[he,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ce()}],"translate-x":[{"translate-x":Ce()}],"translate-y":[{"translate-y":Ce()}],"translate-z":[{"translate-z":Ce()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}
vendor: 6,955 bytes, line 295
295],"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",he,fe]}],"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":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mbs":[{"scroll-mbs":F()}],"scroll-mbe":[{"scroll-mbe":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pbs":[{"scroll-pbs":F()}],"scroll-pbe":[{"scroll-pbe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"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",he,fe]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[Me,Bo,gs,Ly]}],stroke:[{stroke:["none",...C()]}],"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"]}},TN=aN(CN);function ka(...e){return TN(Iv(e))}const cb=E.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}));cb.displayName="ToastProvider";const ub=E.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}));ub.displayName="ToastViewport";const PN=jk("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"}}),db=E.forwardRef(({className:e,variant:t,...n},s)=>l.jsx("div",{ref:s,className:ka(PN({variant:t}),e),...n}));db.displayName="Toast";const AN=E.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:ka("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}));AN.displayName="ToastAction";const fb=E.forwardRef(({className:e,...t},n)=>l.jsx("button",{ref:n,className:ka("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 5,010 bytes, line 295
295/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($i,{className:"h-4 w-4"})}));fb.displayName="ToastClose";const hb=E.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:ka("text-sm font-semibold",e),...t}));hb.displayName="ToastTitle";const pb=E.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:ka("text-sm opacity-90",e),...t}));pb.displayName="ToastDescription";function RN(){const{toasts:e}=kk();return l.jsxs(cb,{children:[e.map(function({id:t,title:n,description:s,action:o,...c}){return l.jsxs(db,{...c,children:[l.jsxs("div",{className:"grid gap-1",children:[n&&l.jsx(hb,{children:n}),s&&l.jsx(pb,{children:s})]}),o,l.jsx(fb,{})]},t)}),l.jsx(ub,{})]})}var ja=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(){}},ON={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Fr,Sh,kv,MN=(kv=class{constructor(){ke(this,Fr,ON);ke(this,Sh,!1)}setTimeoutProvider(e){ce(this,Fr,e)}setTimeout(e,t){return M(this,Fr).setTimeout(e,t)}clearTimeout(e){M(this,Fr).clearTimeout(e)}setInterval(e,t){return M(this,Fr).setInterval(e,t)}clearInterval(e){M(this,Fr).clearInterval(e)}},Fr=new WeakMap,Sh=new WeakMap,kv),Ss=new MN;function LN(e){setTimeout(e,0)}var Is=typeof window>"u"||"Deno"in globalThis;function Yt(){}function DN(e,t){return typeof e=="function"?e(t):e}function _f(e){return typeof e=="number"&&e>=0&&e!==1/0}function mb(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Gr(e,t){return typeof e=="function"?e(t):e}function mn(e,t){return typeof e=="function"?e(t):e}function Fy(e,t){const{type:n="all",exact:s,fetchStatus:o,predicate:c,queryKey:u,stale:f}=e;if(u){if(s){if(t.queryHash!==Ah(u,t.options))return!1}else if(!ca(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 By(e,t){const{exact:n,status:s,predicate:o,mutationKey:c}=e;if(c){if(!t.options.mutationKey)return!1;if(n){if(la(t.options.mutationKey)!==la(c))return!1}else if(!ca(t.options.mutationKey,c))return!1}return!(s&&t.state.status!==s||o&&!o(t))}function Ah(e,t){return((t==null?void 0:t.queryKeyHashFn)||la)(e)}function la(e){return JSON.stringify(e,(t,n)=>Cf(n)?Object.keys(n).sort().reduce((s,o)=>(s[o]=n[o],s),{}):n)}function ca(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ca(e[n],t[n])):!1}var IN=Object.prototype.hasOwnProperty;function gb(e,t,n=0){if(e===t)return e;if(n>500)return t;const s=Uy(e)&&Uy(t);if(!s&&!(Cf(e)&&Cf(t)))return t;const c=(s?e:Object.keys(e)).length,u=s?t:Object.keys(t),f=u.length,h=s?new Array(f):{};let p=0;for(let g=0;g<f;g++){const y=s?g:u[g],v=e[y],j=t[y];if(v===j){h[y]=v,(s?g<c:IN.call(e,y))&&p++;continue}if(v===null||j===null||typeof v!="object"||typeof j!="object"){h[y]=j;continue}const N=gb(v,j,n+1);h[y]=N,N===v&&p++}return c===f&&p===c?e:h}function Ef(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 Uy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Cf(e){if(!Vy(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Vy(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Vy(e){return Object.prototype.toString.call(e)==="[object Object]"}function FN(e){return new Promise(t=>{Ss.setTimeout(t,e)})}function Tf(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?gb(e,t):t}function BN(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function UN(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var Rh=Symbol();function yb(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Rh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function xb(e,t){return typeof e=="function"?e(...t):!!e}function VN(e,t,n){let s=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),s||(s=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var _s,Br,_i,jv,zN=(jv=class extends ja{constructor(){super();ke(this,_s);ke(this,Br);ke(this,_i);ce(this,_i,t=>{if(!Is&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}
vendor: 4,186 bytes, line 295
295onSubscribe(){M(this,Br)||this.setEventListener(M(this,_i))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,Br))==null||t.call(this),ce(this,Br,void 0))}setEventListener(t){var n;ce(this,_i,t),(n=M(this,Br))==null||n.call(this),ce(this,Br,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){M(this,_s)!==t&&(ce(this,_s,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof M(this,_s)=="boolean"?M(this,_s):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},_s=new WeakMap,Br=new WeakMap,_i=new WeakMap,jv),Oh=new zN;function Pf(){let e,t;const n=new Promise((o,c)=>{e=o,t=c});n.status="pending",n.catch(()=>{});function s(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{s({status:"fulfilled",value:o}),e(o)},n.reject=o=>{s({status:"rejected",reason:o}),t(o)},n}var $N=LN;function WN(){let e=[],t=0,n=f=>{f()},s=f=>{f()},o=$N;const c=f=>{t?e.push(f):o(()=>{n(f)})},u=()=>{const f=e;e=[],f.length&&o(()=>{s(()=>{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=>{s=f},setScheduler:f=>{o=f}}}var Et=WN(),Ei,Ur,Ci,Nv,HN=(Nv=class extends ja{constructor(){super();ke(this,Ei,!0);ke(this,Ur);ke(this,Ci);ce(this,Ci,t=>{if(!Is&&window.addEventListener){const n=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",s)}}})}onSubscribe(){M(this,Ur)||this.setEventListener(M(this,Ci))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,Ur))==null||t.call(this),ce(this,Ur,void 0))}setEventListener(t){var n;ce(this,Ci,t),(n=M(this,Ur))==null||n.call(this),ce(this,Ur,t(this.setOnline.bind(this)))}setOnline(t){M(this,Ei)!==t&&(ce(this,Ei,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return M(this,Ei)}},Ei=new WeakMap,Ur=new WeakMap,Ci=new WeakMap,Nv),kc=new HN;function qN(e){return Math.min(1e3*2**e,3e4)}function vb(e){return(e??"online")==="online"?kc.isOnline():!0}var Af=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function bb(e){let t=!1,n=0,s;const o=Pf(),c=()=>o.status!=="pending",u=b=>{var _;if(!c()){const w=new Af(b);v(w),(_=e.onCancel)==null||_.call(e,w)}},f=()=>{t=!0},h=()=>{t=!1},p=()=>Oh.isFocused()&&(e.networkMode==="always"||kc.isOnline())&&e.canRun(),g=()=>vb(e.networkMode)&&e.canRun(),y=b=>{c()||(s==null||s(),o.resolve(b))},v=b=>{c()||(s==null||s(),o.reject(b))},j=()=>new Promise(b=>{var _;s=w=>{(c()||p())&&b(w)},(_=e.onPause)==null||_.call(e)}).then(()=>{var b;s=void 0,c()||(b=e.onContinue)==null||b.call(e)}),N=()=>{if(c())return;let b;const _=n===0?e.initialPromise:void 0;try{b=_??e.fn()}catch(w){b=Promise.reject(w)}Promise.resolve(b).then(y).catch(w=>{var V;if(c())return;const T=e.retry??(Is?0:3),A=e.retryDelay??qN,R=typeof A=="function"?A(n,w):A,I=T===!0||typeof T=="number"&&n<T||typeof T=="function"&&T(n,w);if(t||!I){v(w);return}n++,(V=e.onFail)==null||V.call(e,n,w),FN(R).then(()=>p()?void 0:j()).then(()=>{t?v(w):N()})})};return{promise:o,status:()=>o.status,cancel:u,continue:()=>(s==null||s(),o),cancelRetry:f,continueRetry:h,canStart:g,start:()=>(g()?N():j().then(N),o)}}var Es,_v,wb=(_v=class{constructor(){ke(this,Es)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_f(this.gcTime)&&ce(this,Es,Ss.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Is?1/0:300*1e3))}clearGcTimeout(){M(this,Es)&&(Ss.clearTimeout(M(this,Es)),ce(this,Es,void 0))}},Es=new WeakMap,_v),Cs,Ti,pn,Ts,St,ya,Ps,_n,ir,Ev,KN=(Ev=class extends wb{constructor(t){super();ke(this,_n);ke(this,Cs);ke(this,Ti);ke(this,pn);ke(this,Ts);ke(this,St);ke(this,ya);ke(this,Ps);ce(this,Ps,!1),ce(this,ya,t.defaultOptions),this.setOptions(t.options),this.observers=[],ce(this,Ts,t.client),ce(this,pn,M(this,Ts).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ce(this,Cs,$
vendor: 4,455 bytes, line 295
295y(this.options)),this.state=t.state??M(this,Cs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=M(this,St))==null?void 0:t.promise}setOptions(t){if(this.options={...M(this,ya),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=$y(this.options);n.data!==void 0&&(this.setState(zy(n.data,n.dataUpdatedAt)),ce(this,Cs,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&M(this,pn).remove(this)}setData(t,n){const s=Tf(this.state.data,t,this.options);return Ie(this,_n,ir).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){Ie(this,_n,ir).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,o;const n=(s=M(this,St))==null?void 0:s.promise;return(o=M(this,St))==null||o.cancel(t),n?n.then(Yt).catch(Yt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(M(this,Cs))}isActive(){return this.observers.some(t=>mn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Rh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Gr(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:!mb(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,St))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,St))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),M(this,pn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(M(this,St)&&(M(this,Ps)?M(this,St).cancel({revert:!0}):M(this,St).cancelRetry()),this.scheduleGc()),M(this,pn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ie(this,_n,ir).call(this,{type:"invalidate"})}async fetch(t,n){var h,p,g,y,v,j,N,b,_,w,T,A;if(this.state.fetchStatus!=="idle"&&((h=M(this,St))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(M(this,St))return M(this,St).continueRetry(),M(this,St).promise}if(t&&this.setOptions(t),!this.options.queryFn){const R=this.observers.find(I=>I.options.queryFn);R&&this.setOptions(R.options)}const s=new AbortController,o=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(ce(this,Ps,!0),s.signal)})},c=()=>{const R=yb(this.options,n),V=(()=>{const Z={client:M(this,Ts),queryKey:this.queryKey,meta:this.meta};return o(Z),Z})();return ce(this,Ps,!1),this.options.persister?this.options.persister(R,V,this):R(V)},f=(()=>{const R={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:M(this,Ts),state:this.state,fetchFn:c};return o(R),R})();(p=this.options.behavior)==null||p.onFetch(f,this),ce(this,Ti,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=f.fetchOptions)==null?void 0:g.meta))&&Ie(this,_n,ir).call(this,{type:"fetch",meta:(y=f.fetchOptions)==null?void 0:y.meta}),ce(this,St,bb({initialPromise:n==null?void 0:n.initialPromise,fn:f.fetchFn,onCancel:R=>{R instanceof Af&&R.revert&&this.setState({...M(this,Ti),fetchStatus:"idle"}),s.abort()},onFail:(R,I)=>{Ie(this,_n,ir).call(this,{type:"failed",failureCount:R,error:I})},onPause:()=>{Ie(this,_n,ir).call(this,{type:"pause"})},onContinue:()=>{Ie(this,_n,ir).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}));try{const R=await M(this,St).start();if(R===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(R),(j=(v=M(this,pn).config).onSuccess)==null||j.call(v,R,this),(b=(N=M(this,pn).config).onSettled)==null||b.call(N,R,this.state.error,this),R}catch(R){if(R instanceof Af){if(R.silent)return M(this,St).promise;
295if(R.revert){if(this.state.data===void 0)throw R;return this.state.data}}throw Ie(this,_n,ir).call(this,{type:"error",error:R}),(w=(_=M(this,pn).config).onError)==null||w.call(_,R,this),(A=(T=M(this,pn).config).onSettled)==null||A.call(T,this.state.data,R,this),R}finally{this.scheduleGc()}}},Cs=new WeakMap,Ti=new WeakMap,pn=new WeakMap,Ts=new WeakMap,St=new WeakMap,ya=new WeakMap,Ps=new WeakMap,_n=new WeakSet,ir=function(t){const n=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Sb(s.data,this.options),fetchMeta:t.meta??null};case"success":const o={...s,...zy(t.data,t.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ce(this,Ti,t.manual?o:void 0),o;case"error":const c=t.error;return{...s,error:c,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),Et.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),M(this,pn).notify({query:this,type:"updated",action:t})})},Ev);function Sb(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vb(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function zy(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function $y(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Qt,Fe,xa,Vt,As,Pi,or,Vr,va,Ai,Ri,Rs,Os,zr,Oi,We,Ho,Rf,Of,Mf,Lf,Df,If,Ff,kb,Cv,GN=(Cv=class extends ja{constructor(t,n){super();ke(this,We);ke(this,Qt);ke(this,Fe);ke(this,xa);ke(this,Vt);ke(this,As);ke(this,Pi);ke(this,or);ke(this,Vr);ke(this,va);ke(this,Ai);ke(this,Ri);ke(this,Rs);ke(this,Os);ke(this,zr);ke(this,Oi,new Set);this.options=n,ce(this,Qt,t),ce(this,Vr,null),ce(this,or,Pf()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(M(this,Fe).addObserver(this),Wy(M(this,Fe),this.options)?Ie(this,We,Ho).call(this):this.updateResult(),Ie(this,We,Lf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Bf(M(this,Fe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Bf(M(this,Fe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ie(this,We,Df).call(this),Ie(this,We,If).call(this),M(this,Fe).removeObserver(this)}setOptions(t){const n=this.options,s=M(this,Fe);if(this.options=M(this,Qt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof mn(this.options.enabled,M(this,Fe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ie(this,We,Ff).call(this),M(this,Fe).setOptions(this.options),n._defaulted&&!Ef(this.options,n)&&M(this,Qt).getQueryCache().notify({type:"observerOptionsUpdated",query:M(this,Fe),observer:this});const o=this.hasListeners();o&&Hy(M(this,Fe),s,this.options,n)&&Ie(this,We,Ho).call(this),this.updateResult(),o&&(M(this,Fe)!==s||mn(this.options.enabled,M(this,Fe))!==mn(n.enabled,M(this,Fe))||Gr(this.options.staleTime,M(this,Fe))!==Gr(n.staleTime,M(this,Fe)))&&Ie(this,We,Rf).call(this);const c=Ie(this,We,Of).call(this);o&&(M(this,Fe)!==s||mn(this.options.enabled,M(this,Fe))!==mn(n.enabled,M(this,Fe))||c!==M(this,zr))&&Ie(this,We,Mf).call(this,c)}getOptimisticResult(t){const n=M(this,Qt).getQueryCache().build(M(this,Qt),t),s=this.createResult(n,t);return YN(this,s)&&(ce(this,Vt,s),ce(this,Pi,this.options),ce(this,As,M(this,Fe).state)),s}getCurrentResult(){return M(this,Vt)}trackResult(t,n){return new Proxy(t,{get:(s,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&M(this,or).status==="pending"&&M(this,or).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,o))})}trackProp(t){M(this,Oi).add(t)}getCurrentQuery(){return M(this,Fe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=M(this,Qt).defaultQueryOptions(t),s=M(this,Qt).getQueryCache().build(M(this,Qt),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){return Ie(this,We,Ho).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),M(this,Vt)))}createResult(t,n){var ne;const s=M(this,Fe),o=this.options,c=M(this,Vt),u=M(this,As),f=M(this,Pi),p=t!==s?t.state:M(this,xa),{state:g}=t;let y={...g},v=!1,j;if(n._optimisticResults){const ye=this.hasListeners(),Ne=!ye&&Wy(t,n),re=ye&&Hy(t,s,n,o);(Ne||re)&&(y={...y,...Sb(g.data,t.options)}),n._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:N,errorUpdatedAt:b,status:_}=y;j=y.data;let w=!1;if(n.placeholderData!==void 0&&j===void 0&&_==="pending"){let ye;c!=null&&c.isPlaceholderData&&n.placeholderData===(f==null?void 0:f.placeholderData)?(ye=c.data,w=!0):ye=typeof n.placeholderData=="function"?n.placeholderData((ne=M(this,Ri))==null?void 0:ne.state.data,M(this,Ri)):n.placeholderData,ye!==void 0&&(_="success",j=Tf(c==null?void 0:c.data,ye,n),v=!0)}if(n.select&&j!==void 0&&!w)if(c&&j===(u==null?void 0:u.data)&&n.select===M(this,va))j=M(this,Ai);else try{ce(this,va,n.select),j=n.select(j),j=Tf(c==null?void 0:c.data,j,n),ce(this,Ai,j),ce(this,Vr,null)}catch(ye){ce(this,Vr,ye)}M(this,Vr)&&(N=M(this,Vr),j=M(this,Ai),b=Date.now(),_="error");const T=y.fetchStatus==="fetching",A=_==="pending",R=_==="error",I=A&&T,V=j!==void 0,F={status:_,fetchStatus:y.fetchStatus,isPending:A,isSuccess:_==="success",isError:R,isInitialLoading:I,isLoading:I,data:j,dataUpdatedAt:y.dataUpdatedAt,error:N,errorUpdatedAt:b,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdate
vendor: 4,137 bytes, line 295
295Count:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:T,isRefetching:T&&!A,isLoadingError:R&&!V,isPaused:y.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:R&&V,isStale:Mh(t,n),refetch:this.refetch,promise:M(this,or),isEnabled:mn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const ye=F.data!==void 0,Ne=F.status==="error"&&!ye,re=Ae=>{Ne?Ae.reject(F.error):ye&&Ae.resolve(F.data)},Se=()=>{const Ae=ce(this,or,F.promise=Pf());re(Ae)},Te=M(this,or);switch(Te.status){case"pending":t.queryHash===s.queryHash&&re(Te);break;case"fulfilled":(Ne||F.data!==Te.value)&&Se();break;case"rejected":(!Ne||F.error!==Te.reason)&&Se();break}}return F}updateResult(){const t=M(this,Vt),n=this.createResult(M(this,Fe),this.options);if(ce(this,As,M(this,Fe).state),ce(this,Pi,this.options),M(this,As).data!==void 0&&ce(this,Ri,M(this,Fe)),Ef(n,t))return;ce(this,Vt,n);const s=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,c=typeof o=="function"?o():o;if(c==="all"||!c&&!M(this,Oi).size)return!0;const u=new Set(c??M(this,Oi));return this.options.throwOnError&&u.add("error"),Object.keys(M(this,Vt)).some(f=>{const h=f;return M(this,Vt)[h]!==t[h]&&u.has(h)})};Ie(this,We,kb).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ie(this,We,Lf).call(this)}},Qt=new WeakMap,Fe=new WeakMap,xa=new WeakMap,Vt=new WeakMap,As=new WeakMap,Pi=new WeakMap,or=new WeakMap,Vr=new WeakMap,va=new WeakMap,Ai=new WeakMap,Ri=new WeakMap,Rs=new WeakMap,Os=new WeakMap,zr=new WeakMap,Oi=new WeakMap,We=new WeakSet,Ho=function(t){Ie(this,We,Ff).call(this);let n=M(this,Fe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Yt)),n},Rf=function(){Ie(this,We,Df).call(this);const t=Gr(this.options.staleTime,M(this,Fe));if(Is||M(this,Vt).isStale||!_f(t))return;const s=mb(M(this,Vt).dataUpdatedAt,t)+1;ce(this,Rs,Ss.setTimeout(()=>{M(this,Vt).isStale||this.updateResult()},s))},Of=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(M(this,Fe)):this.options.refetchInterval)??!1},Mf=function(t){Ie(this,We,If).call(this),ce(this,zr,t),!(Is||mn(this.options.enabled,M(this,Fe))===!1||!_f(M(this,zr))||M(this,zr)===0)&&ce(this,Os,Ss.setInterval(()=>{(this.options.refetchIntervalInBackground||Oh.isFocused())&&Ie(this,We,Ho).call(this)},M(this,zr)))},Lf=function(){Ie(this,We,Rf).call(this),Ie(this,We,Mf).call(this,Ie(this,We,Of).call(this))},Df=function(){M(this,Rs)&&(Ss.clearTimeout(M(this,Rs)),ce(this,Rs,void 0))},If=function(){M(this,Os)&&(Ss.clearInterval(M(this,Os)),ce(this,Os,void 0))},Ff=function(){const t=M(this,Qt).getQueryCache().build(M(this,Qt),this.options);if(t===M(this,Fe))return;const n=M(this,Fe);ce(this,Fe,t),ce(this,xa,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},kb=function(t){Et.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(M(this,Vt))}),M(this,Qt).getQueryCache().notify({query:M(this,Fe),type:"observerResultsUpdated"})})},Cv);function QN(e,t){return mn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Wy(e,t){return QN(e,t)||e.state.data!==void 0&&Bf(e,t,t.refetchOnMount)}function Bf(e,t,n){if(mn(t.enabled,e)!==!1&&Gr(t.staleTime,e)!=="static"){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&Mh(e,t)}return!1}function Hy(e,t,n,s){return(e!==t||mn(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Mh(e,n)}function Mh(e,t){return mn(t.enabled,e)!==!1&&e.isStaleByTime(Gr(t.staleTime,e))}function YN(e,t){return!Ef(e.getCurrentResult(),t)}function qy(e){return{onFetch:(t,n)=>{var g,y,v,j,N;const s=t.options,o=(v=(y=(g=t.fetchOptions)==null?void 0:g.meta)==null?void 0:y.fetchMore)==null?void 0:v.direction,c=((j=t.state.data)==null?void 0:j.pages)||[],u=((N=t.state.data)==null?void 0:N.pageParams)||[];let f={pages:[],pageParams:[]},h=0;const p=async()=>{let b=!1;const _=A=>{VN(A,()=>t.signal,()=>b=!0)},w=yb(t.options,t.fetchOptions),T=async(A,R,I)=>
vendor: 4,311 bytes, line 295
295{if(b)return Promise.reject();if(R==null&&A.pages.length)return Promise.resolve(A);const Z=(()=>{const Ne={client:t.client,queryKey:t.queryKey,pageParam:R,direction:I?"backward":"forward",meta:t.options.meta};return _(Ne),Ne})(),F=await w(Z),{maxPages:ne}=t.options,ye=I?UN:BN;return{pages:ye(A.pages,F,ne),pageParams:ye(A.pageParams,R,ne)}};if(o&&c.length){const A=o==="backward",R=A?XN:Ky,I={pages:c,pageParams:u},V=R(s,I);f=await T(I,V,A)}else{const A=e??c.length;do{const R=h===0?u[0]??s.initialPageParam:Ky(s,f);if(h>0&&R==null)break;f=await T(f,R),h++}while(h<A)}return f};t.options.persister?t.fetchFn=()=>{var b,_;return(_=(b=t.options).persister)==null?void 0:_.call(b,p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=p}}}function Ky(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function XN(e,{pages:t,pageParams:n}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,n[0],n):void 0}var ba,In,Mt,Ms,Fn,Lr,Tv,JN=(Tv=class extends wb{constructor(t){super();ke(this,Fn);ke(this,ba);ke(this,In);ke(this,Mt);ke(this,Ms);ce(this,ba,t.client),this.mutationId=t.mutationId,ce(this,Mt,t.mutationCache),ce(this,In,[]),this.state=t.state||ZN(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){M(this,In).includes(t)||(M(this,In).push(t),this.clearGcTimeout(),M(this,Mt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ce(this,In,M(this,In).filter(n=>n!==t)),this.scheduleGc(),M(this,Mt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){M(this,In).length||(this.state.status==="pending"?this.scheduleGc():M(this,Mt).remove(this))}continue(){var t;return((t=M(this,Ms))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var u,f,h,p,g,y,v,j,N,b,_,w,T,A,R,I,V,Z;const n=()=>{Ie(this,Fn,Lr).call(this,{type:"continue"})},s={client:M(this,ba),meta:this.options.meta,mutationKey:this.options.mutationKey};ce(this,Ms,bb({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(F,ne)=>{Ie(this,Fn,Lr).call(this,{type:"failed",failureCount:F,error:ne})},onPause:()=>{Ie(this,Fn,Lr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>M(this,Mt).canRun(this)}));const o=this.state.status==="pending",c=!M(this,Ms).canStart();try{if(o)n();else{Ie(this,Fn,Lr).call(this,{type:"pending",variables:t,isPaused:c}),M(this,Mt).config.onMutate&&await M(this,Mt).config.onMutate(t,this,s);const ne=await((f=(u=this.options).onMutate)==null?void 0:f.call(u,t,s));ne!==this.state.context&&Ie(this,Fn,Lr).call(this,{type:"pending",context:ne,variables:t,isPaused:c})}const F=await M(this,Ms).start();return await((p=(h=M(this,Mt).config).onSuccess)==null?void 0:p.call(h,F,t,this.state.context,this,s)),await((y=(g=this.options).onSuccess)==null?void 0:y.call(g,F,t,this.state.context,s)),await((j=(v=M(this,Mt).config).onSettled)==null?void 0:j.call(v,F,null,this.state.variables,this.state.context,this,s)),await((b=(N=this.options).onSettled)==null?void 0:b.call(N,F,null,t,this.state.context,s)),Ie(this,Fn,Lr).call(this,{type:"success",data:F}),F}catch(F){try{await((w=(_=M(this,Mt).config).onError)==null?void 0:w.call(_,F,t,this.state.context,this,s))}catch(ne){Promise.reject(ne)}try{await((A=(T=this.options).onError)==null?void 0:A.call(T,F,t,this.state.context,s))}catch(ne){Promise.reject(ne)}try{await((I=(R=M(this,Mt).config).onSettled)==null?void 0:I.call(R,void 0,F,this.state.variables,this.state.context,this,s))}catch(ne){Promise.reject(ne)}try{await((Z=(V=this.options).onSettled)==null?void 0:Z.call(V,void 0,F,t,this.state.context,s))}catch(ne){Promise.reject(ne)}throw Ie(this,Fn,Lr).call(this,{type:"error",error:F}),F}finally{M(this,Mt).runNext(this)}}},ba=new WeakMap,In=new WeakMap,Mt=new WeakMap,Ms=new WeakMap,Fn=new WeakSet,Lr=function(t){const n=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};
295case"pending":return{...s,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{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Et.batch(()=>{M(this,In).forEach(s=>{s.onMutationUpdate(t)}),M(this,Mt).notify({mutation:this,type:"updated",action:t})})},Tv);function ZN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ar,En,wa,Pv,e_=(Pv=class extends ja{constructor(t={}){super();ke(this,ar);ke(this,En);ke(this,wa);this.config=t,ce(this,ar,new Set),ce(this,En,new Map),ce(this,wa,0)}build(t,n,s){const o=new JN({client:t,mutationCache:this,mutationId:++Wl(this,wa)._,options:t.defaultMutationOptions(n),state:s});return this.add(o),o}add(t){M(this,ar).add(t);const n=Gl(t);if(typeof n=="string"){const s=M(this,En).get(n);s?s.push(t):M(this,En).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(M(this,ar).delete(t)){const n=Gl(t);if(typeof n=="string"){const s=M(this,En).get(n);if(s)if(s.length>1){const o=s.indexOf(t);o!==-1&&s.splice(o,1)}else s[0]===t&&M(this,En).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Gl(t);if(typeof n=="string"){const s=M(this,En).get(n),o=s==null?void 0:s.find(c=>c.state.status==="pending");return!o||o===t}else return!0}runNext(t){var s;const n=Gl(t);if(typeof n=="string"){const o=(s=M(this,En).get(n))==null?void 0:s.find(c=>c!==t&&c.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Et.batch(()=>{M(this,ar).forEach(t=>{this.notify({type:"removed",mutation:t})}),M(this,ar).clear(),M(this,En).clear()})}getAll(){return Array.from(M(this,ar))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>By(n,s))}findAll(t={}){return this.getAll().filter(n=>By(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(Yt))))}},ar=new WeakMap,En=new WeakMap,wa=new WeakMap,Pv);function Gl(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Bn,Av,t_=(Av=class extends ja{constructor(t={}){super();ke(this,Bn);this.config=t,ce(this,Bn,new Map)}build(t,n,s){const o=n.queryKey,c=n.queryHash??Ah(o,n);let u=this.get(c);return u||(u=new KN({client:t,queryKey:o,queryHash:c,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(o)}),this.add(u)),u}add(t){M(this,Bn).has(t.queryHash)||(M(this,Bn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=M(this,Bn).get(t.queryHash);n&&(t.destroy(),n===t&&M(this,Bn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Et.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return M(this,Bn).get(t)}getAll(){return[...M(this,Bn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Fy(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>Fy(t,s)):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()})})}},Bn=new WeakMap,Av),st,$r,Wr,Mi,Li,Hr,Di,Ii,Rv,n_=(Rv=class{constructor(e={}){ke(this,st);ke(this,$r);ke(this,Wr);ke(this,Mi);ke(this,Li);ke(this,Hr);ke(this,Di);ke(this,Ii);ce(this,st,e.queryCache||new t_),ce(this,$r,e.mutationCache||new e_),ce(this,Wr,e.defaultOptions||{}),ce(this,Mi,new Map),ce(this,Li,new Map),ce(this,Hr,0)}mount(){Wl(this,Hr)._++,M(this,Hr)===1&&(ce(this,Di,Oh.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,st).onFocus())})),ce(this,Ii,kc.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,st).onOnline())})))}unmount(){var e,t;Wl(this,Hr)._--,M(this,Hr)===0&&((e=M(this,Di))==null||e.call(this),ce(this,Di,void 0),(t=M(this,Ii))==null||t.call(this),ce(this,Ii,void 0))}isFetching(e){return M(this,st).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return M(this,$r).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,st).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=M(this,st).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Gr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return M(this,st).findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=this.defaultQueryOptions({queryKey:e}),o=M(this,st).get(s.queryHash),c=o==null?void 0:o.state.data,u=DN(t,c);if(u!==void 0)return M(this,st).build(this,s).setData(u,{...n,manual:!0})}
295setQueriesData(e,t,n){return Et.batch(()=>M(this,st).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,st).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=M(this,st);Et.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=M(this,st);return Et.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=Et.batch(()=>M(this,st).findAll(e).map(o=>o.cancel(n)));return Promise.all(s).then(Yt).catch(Yt)}invalidateQueries(e,t={}){return Et.batch(()=>(M(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},s=Et.batch(()=>M(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(Yt)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(s).then(Yt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=M(this,st).build(this,t);return n.isStaleByTime(Gr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Yt).catch(Yt)}fetchInfiniteQuery(e){return e.behavior=qy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Yt).catch(Yt)}ensureInfiniteQueryData(e){return e.behavior=qy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return kc.isOnline()?M(this,$r).resumePausedMutations():Promise.resolve()}getQueryCache(){return M(this,st)}getMutationCache(){return M(this,$r)}getDefaultOptions(){return M(this,Wr)}setDefaultOptions(e){ce(this,Wr,e)}setQueryDefaults(e,t){M(this,Mi).set(la(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...M(this,Mi).values()],n={};return t.forEach(s=>{ca(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){M(this,Li).set(la(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...M(this,Li).values()],n={};return t.forEach(s=>{ca(e,s.mutationKey)&&Object.assign(n,s.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...M(this,Wr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ah(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===Rh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...M(this,Wr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){M(this,st).clear(),M(this,$r).clear()}},st=new WeakMap,$r=new WeakMap,Wr=new WeakMap,Mi=new WeakMap,Li=new WeakMap,Hr=new WeakMap,Di=new WeakMap,Ii=new WeakMap,Rv),jb=E.createContext(void 0),r_=e=>{const t=E.useContext(jb);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},s_=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),l.jsx(jb.Provider,{value:e,children:t})),Nb=E.createContext(!1),i_=()=>E.useContext(Nb);Nb.Provider;function o_(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var a_=E.createContext(o_()),l_=()=>E.useContext(a_),c_=(e,t,n)=>{const s=n!=null&&n.state.error&&typeof e.throwOnError=="function"?xb(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||s)&&(t.isReset()||(e.retryOnMount=!1))},u_=e=>{E.useEffect(()=>{e.clearReset()},[e])},d_=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(o&&e.data===void 0||xb(n,[e.error,s])),f_=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...o)=>n(s(...o)):n(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},h_=(e,t)=>e.isLoading&&e.isFetching&&!t,p_=(e,t)=>
295(e==null?void 0:e.suspense)&&t.isPending,Gy=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function m_(e,t,n){var v,j,N,b;const s=i_(),o=l_(),c=r_(),u=c.defaultQueryOptions(e);(j=(v=c.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||j.call(v,u);const f=c.getQueryCache().get(u.queryHash);u._optimisticResults=s?"isRestoring":"optimistic",f_(u),c_(u,o,f),u_(o);const h=!c.getQueryCache().get(u.queryHash),[p]=E.useState(()=>new t(c,u)),g=p.getOptimisticResult(u),y=!s&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(_=>{const w=y?p.subscribe(Et.batchCalls(_)):Yt;return p.updateResult(),w},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),E.useEffect(()=>{p.setOptions(u)},[u,p]),p_(u,g))throw Gy(u,p,o);if(d_({result:g,errorResetBoundary:o,throwOnError:u.throwOnError,query:f,suspense:u.suspense}))throw g.error;if((b=(N=c.getDefaultOptions().queries)==null?void 0:N._experimental_afterQuery)==null||b.call(N,u,g),u.experimental_prefetchInRender&&!Is&&h_(g,s)){const _=h?Gy(u,p,o):f==null?void 0:f.promise;_==null||_.catch(Yt).finally(()=>{p.updateResult()})}return u.notifyOnChangeProps?g:p.trackResult(g)}function g_(e,t){return m_(e,GN)}const y_=new n_({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});Lv();/**
296 * @remix-run/router v1.23.2
297 *
298 * Copyright (c) Remix Software Inc.
299 *
300 * This source code is licensed under the MIT license found in the
301 * LICENSE.md file in the root directory of this source tree.
302 *
303 * @license MIT
304 */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 s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},ua.apply(this,arguments)}var qr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(qr||(qr={}));const Qy="popstate";function x_(e){e===void 0&&(e={});function t(s,o){let{pathname:c,search:u,hash:f}=s.location;return Uf("",{pathname:c,search:u,hash:f},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(s,o){return typeof o=="string"?o:jc(o)}return b_(t,n,null,e)}function ht(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Lh(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function v_(){return Math.random().toString(36).substr(2,8)}function Yy(e,t){return{usr:e.state,key:e.key,idx:t}}function Uf(e,t,n,s){return n===void 0&&(n=null),ua({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Wi(t):t,{state:n,key:t&&t.key||s||v_()})}function jc(e){let{pathname:t="/",search:n="",hash:s=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function Wi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let s=e.indexOf("?");s>=0&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}function b_(e,t,n,s){s===void 0&&(s={});let{window:o=document.defaultView,v5Compat:c=!1}=s,u=o.history,f=qr.Pop,h=null,p=g();p==null&&(p=0,u.replaceState(ua({},u.state,{idx:p}),""));function g(){return(u.state||{idx:null}).idx}function y(){f=qr.Pop;let _=g(),w=_==null?null:_-p;p=_,h&&h({action:f,location:b.location,delta:w})}function v(_,w){f=qr.Push;let T=Uf(b.location,_,w);p=g()+1;let A=Yy(T,p),R=b.createHref(T);try{u.pushState(A,"",R)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;o.location.assign(R)}c&&h&&h({action:f,location:b.location,delta:1})}function j(_,w){f=qr.Replace;let T=Uf(b.location,_,w);p=g();let A=Yy(T,p),R=b.createHref(T);u.replaceState(A,"",R),c&&h&&h({action:f,location:b.location,delta:0})}function N(_){let w=o.location.origin!=="null"?o.location.origin:o.location.href,T=typeof _=="string"?_:jc(_);return T=T.replace(/ $/,"%20"),ht(w,"No window.location.(origin|href) available to create URL for href: "+T),new URL(T,w)}let b={get action(){return f},get location(){return e(o,u)},listen(_){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(Qy,y),h=_,()=>{o.removeEventListener(Qy,y),h=null}},createHref(_){return t(o,_)},createURL:N,encodeLocation(_){let w=N(_);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:v,replace:j,go(_){return u.go(_)}};return b}var Xy;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Xy||(Xy={}));function w_(e,t,n){return n===void 0&&(n="/"),S_(e,t,n)}function S_(e,t,n,s){let o=typeof t=="string"?Wi(t):t,c=Dh(o.pathname||"/",n);if(c==null)return null;let u=_b(e);k_(u);let f=null;for(let h=0;f==null&&h<u.length;++h){let p=L_(c);f=R_(u[h],p)}return f}function _b(e,t,n,s){t===void 0&&(t=[]),n===void 0&&(n=[]),s===void 0&&(s="");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("/")&&(ht(h.relativePath.startsWith(s),'Absolute route path "'+h.relativePath+'" nested under path '+('"'+s+'" is not val
304id. An absolute child route path ')+"must start with the combined path of all its parent routes."),h.relativePath=h.relativePath.slice(s.length));let p=Qr([s,h.relativePath]),g=n.concat(h);c.children&&c.children.length>0&&(ht(c.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),_b(c.children,t,g,p)),!(c.path==null&&!c.index)&&t.push({path:p,score:P_(p,c.index),routesMeta:g})};return e.forEach((c,u)=>{var f;if(c.path===""||!((f=c.path)!=null&&f.includes("?")))o(c,u);else for(let h of Eb(c.path))o(c,u,h)}),t}function Eb(e){let t=e.split("/");if(t.length===0)return[];let[n,...s]=t,o=n.endsWith("?"),c=n.replace(/\?$/,"");if(s.length===0)return o?[c,""]:[c];let u=Eb(s.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 k_(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:A_(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}const j_=/^:[\w-]+$/,N_=3,__=2,E_=1,C_=10,T_=-2,Jy=e=>e==="*";function P_(e,t){let n=e.split("/"),s=n.length;return n.some(Jy)&&(s+=T_),t&&(s+=__),n.filter(o=>!Jy(o)).reduce((o,c)=>o+(j_.test(c)?N_:c===""?E_:C_),s)}function A_(e,t){return e.length===t.length&&e.slice(0,-1).every((s,o)=>s===t[o])?e[e.length-1]-t[t.length-1]:0}function R_(e,t,n){let{routesMeta:s}=e,o={},c="/",u=[];for(let f=0;f<s.length;++f){let h=s[f],p=f===s.length-1,g=c==="/"?t:t.slice(c.length)||"/",y=O_({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},g),v=h.route;if(!y)return null;
vendor: 7,087 bytes, lines 304-313
304Object.assign(o,y.params),u.push({params:o,pathname:Qr([c,y.pathname]),pathnameBase:U_(Qr([c,y.pathnameBase])),route:v}),y.pathnameBase!=="/"&&(c=Qr([c,y.pathnameBase]))}return u}function O_(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,s]=M_(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:s.reduce((p,g,y)=>{let{paramName:v,isOptional:j}=g;if(v==="*"){let b=f[y]||"";u=c.slice(0,c.length-b.length).replace(/(.)\/+$/,"$1")}const N=f[y];return j&&!N?p[v]=void 0:p[v]=(N||"").replace(/%2F/g,"/"),p},{}),pathname:c,pathnameBase:u,pattern:e}}function M_(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Lh(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 s=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,f,h)=>(s.push({paramName:f,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),s]}function L_(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Lh(!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 Dh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,s=e.charAt(n);return s&&s!=="/"?null:e.slice(n)||"/"}const D_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,I_=e=>D_.test(e);function F_(e,t){t===void 0&&(t="/");let{pathname:n,search:s="",hash:o=""}=typeof e=="string"?Wi(e):e,c;if(n)if(I_(n))c=n;else{if(n.includes("//")){let u=n;n=n.replace(/\/\/+/g,"/"),Lh(!1,"Pathnames cannot have embedded double slashes - normalizing "+(u+" -> "+n))}n.startsWith("/")?c=Zy(n.substring(1),"/"):c=Zy(n,t)}else c=t;return{pathname:c,search:V_(s),hash:z_(o)}}function Zy(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 Xd(e,t,n,s){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(s)+"].  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 B_(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Cb(e,t){let n=B_(e);return t?n.map((s,o)=>o===n.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function Tb(e,t,n,s){s===void 0&&(s=!1);let o;typeof e=="string"?o=Wi(e):(o=ua({},e),ht(!o.pathname||!o.pathname.includes("?"),Xd("?","pathname","search",o)),ht(!o.pathname||!o.pathname.includes("#"),Xd("#","pathname","hash",o)),ht(!o.search||!o.search.includes("#"),Xd("#","search","hash",o)));let c=e===""||o.pathname==="",u=c?"/":o.pathname,f;if(u==null)f=n;else{let y=t.length-1;if(!s&&u.startsWith("..")){let v=u.split("/");for(;v[0]==="..";)v.shift(),y-=1;o.pathname=v.join("/")}f=y>=0?t[y]:"/"}let h=F_(o,f),p=u&&u!=="/"&&u.endsWith("/"),g=(c||u===".")&&n.endsWith("/");return!h.pathname.endsWith("/")&&(p||g)&&(h.pathname+="/"),h}const Qr=e=>e.join("/").replace(/\/\/+/g,"/"),U_=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),V_=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,z_=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function $_(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 W_=["get",...Pb];new Set(W_);/**
305 * React Router v6.30.3
306 *
307 * Copyright (c) Remix Software Inc.
308 *
309 * This source code is licensed under the MIT license found in the
310 * LICENSE.md file in the root directory of this source tree.
311 *
312 * @license MIT
313 */function da(){return da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},da.apply(this,arguments)}const Ih=E.createContext(null),H_=E.createContext(null),$s=E.createContext(null),Bc=E.createContext(null),Ws=E.createContext({outlet:null,matches:[],isDataRoute:!1}),Ab=E.createContext(null);function q_(e,t){let{relative:n}=t===void 0?{}:t;Na()||ht(!1);let{basename:s,navigator:o}=E.useContext($s),{hash:c,pathname:u,search:f}=Ob(e,{relative:n}),h=u;return s!=="/"&&(h=u==="/"?s:Qr([s,u])),o.createHref({pathname:h,search:f,hash:c})}function Na(){return E.useContext(Bc)!=null}function ts(){return Na()||ht(!1),E.useContext(Bc).location}function Rb(e){E.useContext($s).static||E.useLayoutEffect(e)}function Fh(){let{isDataRoute:e}=E.useContext(Ws);return e?iE():K_()}function K_(){Na()||ht(!1);let e=E.useContext(Ih),{basename:t,future:n,navigator:s}=E.useContext($s),{matches:o}=E.useContext(Ws),{pathname:c}=ts(),u=JSON.stringify(Cb(o,n.v7_relativeSplatPath)),f=E.useRef(!1);return Rb(()=>{f.current=!0}),E.useCallback(function(p,g){if(g===void 0&&(g={}),!f.current)return;if(typeof p=="number"){s.go(p);return}let y=Tb(p,JSON.parse(u),c,g.relative==="path");e==null&&t!=="/"&&(y.pathname=y.pathname==="/"?t:Qr([t,y.pathname])),(g.replace?s.replace:s.push)(y,g.state,g)},[t,s,u,c,e])}function Ob(e,t){let{relative:n}=t===void 0?{}:t,{future:s}=E.useContext($s),{matches:o}=E.useContext(Ws),{pathname:c}=ts(),u=JSON.stringify(Cb(o,s.v7_relativeSplatPath));return E.useMemo(()=>Tb(e,JSON.parse(u),c,n==="path"),[e,u,c,n])}function G_(e,t){return Q_(e,t)}function Q_(e,t,n,s){Na()||ht(!1);let{navigator:o}=E.useContext($s),{matches:c}=E.useContext(Ws),u=c[c.length-1],f=u?u.params:{};u&&u.pathname;let h=u?u.pathnameBase:"/";u&&u.route;let p=ts(),g;if(t){var y;let _=typeof t=="string"?Wi(t):t;h==="/"||(y=_.pathname)!=null&&y.startsWith(h)||ht(!1),g=_}else g=p;let v=g.pathname||"/",j=v;if(h!=="/"){let _=h.replace(/^\//,"").split("/");j="/"+v.replace(/^\//,"").split("/").slice(_.length).join("/")}let N=w_(e,{pathname:j}),b=eE(N&&N.map(_=>Object.assign({},_,{params:Object.assign({},f,_.params),pathname:Qr([h,o.encodeLocation?o.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?h:Qr([h,o.encodeLocation?o.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),c,n,s);return t&&b?E.createElement(Bc.Provider,{value:{location:da({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:qr.Pop}},b):b}function Y_(){let e=sE(),t=$_(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 E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application 
313Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:o},n):null,null)}const X_=E.createElement(Y_,null);class J_ extends E.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?E.createElement(Ws.Provider,{value:this.props.routeContext},E.createElement(Ab.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Z_(e){let{routeContext:t,match:n,children:s}=e,o=E.useContext(Ih);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(Ws.Provider,{value:t},s)}function eE(e,t,n,s){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),s===void 0&&(s=null),e==null){var c;if(!n)return null;if(n.errors)e=n.matches;else if((c=s)!=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 g=u.findIndex(y=>y.route.id&&(f==null?void 0:f[y.route.id])!==void 0);g>=0||ht(!1),u=u.slice(0,Math.min(u.length,g+1))}let h=!1,p=-1;if(n&&s&&s.v7_partialHydration)for(let g=0;g<u.length;g++){let y=u[g];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(p=g),y.route.id){let{loaderData:v,errors:j}=n,N=y.route.loader&&v[y.route.id]===void 0&&(!j||j[y.route.id]===void 0);if(y.route.lazy||N){h=!0,p>=0?u=u.slice(0,p+1):u=[u[0]];break}}}return u.reduceRight((g,y,v)=>{let j,N=!1,b=null,_=null;n&&(j=f&&y.route.id?f[y.route.id]:void 0,b=y.route.errorElement||X_,h&&(p<0&&v===0?(oE("route-fallback"),N=!0,_=null):p===v&&(N=!0,_=y.route.hydrateFallbackElement||null)));let w=t.concat(u.slice(0,v+1)),T=()=>{let A;return j?A=b:N?A=_:y.route.Component?A=E.createElement(y.route.Component,null):y.route.element?A=y.route.element:A=g,E.createElement(Z_,{match:y,routeContext:{outlet:g,matches:w,isDataRoute:n!=null},children:A})};return n&&(y.route.ErrorBoundary||y.route.errorElement||v===0)?E.createElement(J_,{location:n.location,revalidation:n.revalidation,component:b,error:j,children:T(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):T()},null)}var Mb=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Mb||{}),Lb=(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})(Lb||{});function tE(e){let t=E.useContext(Ih);return t||ht(!1),t}function nE(e){let t=E.useContext(H_);return t||ht(!1),t}function rE(e){let t=E.useContext(Ws);return t||ht(!1),t}function Db(e){let t=rE(),n=t.matches[t.matches.length-1];return n.route.id||ht(!1),n.route.id}function sE(){var e;let t=E.useContext(Ab),n=nE(),s=Db();return t!==void 0?t:(e=n.errors)==null?void 0:e[s]}function iE(){let{router:e}=tE(Mb.UseNavigateStable),t=Db(Lb.UseNavigateStable),n=E.useRef(!1);return Rb(()=>{n.current=!0}),E.useCallback(function(o,c){c===void 0&&(c={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,da({fromRouteId:t},c)))},[e,t])}const e0={};function oE(e,t,n){e0[e]||(e0[e]=!0)}function aE(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function nn(e){ht(!1)}function lE(e){let{basename:t="/",children:n=null,location:s,navigationType:o=qr.Pop,navigator:c,static:u=!1,future:f}=e;Na()&&ht(!1);let h=t.replace(/^\/*/,"/"),p=E.useMemo(()=>({basename:h,navigator:c,static:u,future:da({v7_relativeSplatPath:!1},f)}),[h,f,c,u]);typeof s=="string"&&(s=Wi(s));let{pathname:g="/",search:y="",hash:v="",state:j=null,key:N="default"}=s,b=E.useMemo(()=>{let _=Dh(g,h);return _==null?null:{location:{pathname:_,search:y,hash:v,state:j,key:N},navigationType:o}},[h,g,y,v,j,N,o]);return b==null?null:E.createElement($s.Provider,{value:p},E.createElement(Bc.Provider,{children:n,value:b}))}function cE(e){let{children:t,location:n}=e;return G_(Vf(t),n)}new Promise(()=>{});function Vf(e,t){t===void 0&&(t=[]);let n=[];
313return E.Children.forEach(e,(s,o)=>{if(!E.isValidElement(s))return;let c=[...t,o];if(s.type===E.Fragment){n.push.apply(n,Vf(s.props.children,c));return}s.type!==nn&&ht(!1),!s.props.index||!s.props.children||ht(!1);let u={id:s.props.id||c.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(u.children=Vf(s.props.children,c)),n.push(u)}),n}/**
314 * React Router DOM v6.30.3
315 *
316 * Copyright (c) Remix Software Inc.
317 *
318 * This source code is licensed under the MIT license found in the
319 * LICENSE.md file in the root directory of this source tree.
320 *
321 * @license MIT
322 */function zf(){return zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},zf.apply(this,arguments)}function uE(e,t){if(e==null)return{};var n={},s=Object.keys(e),o,c;for(c=0;c<s.length;c++)o=s[c],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function dE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function fE(e,t){return e.button===0&&(!t||t==="_self")&&!dE(e)}function $f(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let s=e[n];return t.concat(Array.isArray(s)?s.map(o=>[n,o]):[[n,s]])},[]))}function hE(e,t){let n=$f(e);return t&&t.forEach((s,o)=>{n.has(o)||t.getAll(o).forEach(c=>{n.append(o,c)})}),n}const pE=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],mE="6";try{window.__reactRouterVersion=mE}catch{}const gE="startTransition",t0=dk[gE];function yE(e){let{basename:t,children:n,future:s,window:o}=e,c=E.useRef();c.current==null&&(c.current=x_({window:o,v5Compat:!0}));let u=c.current,[f,h]=E.useState({action:u.action,location:u.location}),{v7_startTransition:p}=s||{},g=E.useCallback(y=>{p&&t0?t0(()=>h(y)):h(y)},[h,p]);return E.useLayoutEffect(()=>u.listen(g),[u,g]),E.useEffect(()=>aE(s),[s]),E.createElement(lE,{basename:t,children:n,location:f.location,navigationType:f.action,navigator:u,future:s})}const xE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lr=E.forwardRef(function(t,n){let{onClick:s,relative:o,reloadDocument:c,replace:u,state:f,target:h,to:p,preventScrollReset:g,viewTransition:y}=t,v=uE(t,pE),{basename:j}=E.useContext($s),N,b=!1;if(typeof p=="string"&&vE.test(p)&&(N=p,xE))try{let A=new URL(window.location.href),R=p.startsWith("//")?new URL(A.protocol+p):new URL(p),I=Dh(R.pathname,j);R.origin===A.origin&&I!=null?p=I+R.search+R.hash:b=!0}catch{}let _=q_(p,{relative:o}),w=bE(p,{replace:u,state:f,target:h,preventScrollReset:g,relative:o,viewTransition:y});function T(A){s&&s(A),A.defaultPrevented||w(A)}return E.createElement("a",zf({},v,{href:N||_,onClick:b||c?s:T,ref:n,target:h}))});var n0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(n0||(n0={}));var r0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(r0||(r0={}));function bE(e,t){let{target:n,replace:s,state:o,preventScrollReset:c,relative:u,viewTransition:f}=t===void 0?{}:t,h=Fh(),p=ts(),g=Ob(e,{relative:u});return E.useCallback(y=>{if(fE(y,n)){y.preventDefault();let v=s!==void 0?s:jc(p)===jc(g);h(e,{replace:v,state:o,preventScrollReset:c,relative:u,viewTransition:f})}},[p,h,g,s,o,n,e,c,u,f])}function Ib(e){let t=E.useRef($f(e)),n=E.useRef(!1),s=ts(),o=E.useMemo(()=>hE(s.search,n.current?null:t.current),[s.search]),c=Fh(),u=E.useCallback((f,h)=>{const p=$f(typeof f=="function"?f(o):f);
vendor: 32,749 bytes, lines 322-330
322n.current=!0,c("?"+p,h)},[c,o]);return[o,u]}const Bh=E.createContext({});function Hi(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const Uc=E.createContext(null),Vc=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class wE extends E.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function SE({children:e,isPresent:t}){const n=E.useId(),s=E.useRef(null),o=E.useRef({width:0,height:0,top:0,left:0}),{nonce:c}=E.useContext(Vc);return E.useInsertionEffect(()=>{const{width:u,height:f,top:h,left:p}=o.current;if(t||!s.current||!u||!f)return;s.current.dataset.motionPopId=n;const g=document.createElement("style");return c&&(g.nonce=c),document.head.appendChild(g),g.sheet&&g.sheet.insertRule(`
323          [data-motion-pop-id="${n}"] {
324            position: absolute !important;
325            width: ${u}px !important;
326            height: ${f}px !important;
327            top: ${h}px !important;
328            left: ${p}px !important;
329          }
330        `),()=>{document.head.removeChild(g)}},[t]),l.jsx(wE,{isPresent:t,childRef:s,sizeRef:o,children:E.cloneElement(e,{ref:s})})}const kE=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:o,presenceAffectsLayout:c,mode:u})=>{const f=Hi(jE),h=E.useId(),p=E.useCallback(y=>{f.set(y,!0);for(const v of f.values())if(!v)return;s&&s()},[f,s]),g=E.useMemo(()=>({id:h,initial:t,isPresent:n,custom:o,onExitComplete:p,register:y=>(f.set(y,!1),()=>f.delete(y))}),c?[Math.random(),p]:[n,p]);return E.useMemo(()=>{f.forEach((y,v)=>f.set(v,!1))},[n]),E.useEffect(()=>{!n&&!f.size&&s&&s()},[n]),u==="popLayout"&&(e=l.jsx(SE,{isPresent:n,children:e})),l.jsx(Uc.Provider,{value:g,children:e})};function jE(){return new Map}function Fb(e=!0){const t=E.useContext(Uc);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:o}=t,c=E.useId();E.useEffect(()=>{e&&o(c)},[e]);const u=E.useCallback(()=>e&&s&&s(c),[c,s,e]);return!n&&s?[!1,u]:[!0]}const Ql=e=>e.key||"";function s0(e){const t=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&t.push(n)}),t}const Uh=typeof window<"u",zc=Uh?E.useLayoutEffect:E.useEffect,fr=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:o=!0,mode:c="sync",propagate:u=!1})=>{const[f,h]=Fb(u),p=E.useMemo(()=>s0(e),[e]),g=u&&!f?[]:p.map(Ql),y=E.useRef(!0),v=E.useRef(p),j=Hi(()=>new Map),[N,b]=E.useState(p),[_,w]=E.useState(p);zc(()=>{y.current=!1,v.current=p;for(let R=0;R<_.length;R++){const I=Ql(_[R]);g.includes(I)?j.delete(I):j.get(I)!==!0&&j.set(I,!1)}},[_,g.length,g.join("-")]);const T=[];if(p!==N){let R=[...p];for(let I=0;I<_.length;I++){const V=_[I],Z=Ql(V);g.includes(Z)||(R.splice(I,0,V),T.push(V))}c==="wait"&&T.length&&(R=T),w(s0(R)),b(p);return}const{forceRender:A}=E.useContext(Bh);return l.jsx(l.Fragment,{children:_.map(R=>{const I=Ql(R),V=u&&!f?!1:p===_||g.includes(I),Z=()=>{if(j.has(I))j.set(I,!0);else return;let F=!0;j.forEach(ne=>{ne||(F=!1)}),F&&(A==null||A(),w(v.current),u&&(h==null||h()),s&&s())};return l.jsx(kE,{isPresent:V,initial:!y.current||n?void 0:!1,custom:V?void 0:t,presenceAffectsLayout:o,mode:c,onExitComplete:V?void 0:Z,children:R},I)})})},zt=e=>e;let NE=zt,Bb=zt;function Vh(e){let t;return()=>(t===void 0&&(t=e()),t)}const Fs=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},ur=e=>e*1e3,dr=e=>e/1e3,_E={useManualTiming:!1};function EE(e){let t=new Set,n=new Set,s=!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,g=!1,y=!1)=>{const j=y&&s?t:n;return g&&c.add(p),j.has(p)||j.add(p),p},cancel:p=>{n.delete(p),c.delete(p)},process:p=>{if(u=p,s){o=!0;return}s=!0,[t,n]=[n,t],t.forEach(f),t.clear(),s=!1,o&&(o=!1,h.process(p))}};return h}const Yl=["read","resolveKeyframes","update","preRender","render","postRender"],CE=40;function Ub(e,t){let n=!1,s=!0;const o={delta:0,timestamp:0,isProcessing:!1},c=()=>n=!0,u=Yl.reduce((w,T)=>(w[T]=EE(c),w),{}),{read:f,resolveKeyframes:h,update:p,preRender:g,render:y,postRender:v}=u,j=()=>{const w=performance.now();n=!1,o.delta=s?1e3/60:Math.max(Math.min(w-o.timestamp,CE),1),o.timestamp=w,o.isProcessing=!0,f.process(o),h.process(o),p.process(o),g.process(o),y.process(o),v.process(o),o.isProcessing=!1,n&&t&&(s=!1,e(j))},N=()=>{n=!0,s=!0,o.isProcessing||e(j)};return{schedule:Yl.reduce((w,T)=>{const A=u[T];return w[T]=(R,I=!1,V=!1)=>(n||N(),A.schedule(R,I,V)),w},{}),cancel:w=>{for(let T=0;T<Yl.length;T++)u[Yl[T]].cancel(w)},state:o,steps:u}}const{schedule:ze,cancel:Tn,state:kt,steps:Jd}=Ub(typeof requestAnimationFrame<"u"?requestAnimationFrame:zt,!0),Vb=E.createContext({strict:!1}),i0={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"]},Bi={};for(const e in i0)Bi[e]={isEnabled:t=>i0[e].some(n=>!!t[n])};function TE(e){for(const t in e)Bi[t]={...Bi[t],...e[t]}}const PE=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 Nc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||PE.has(e)}let zb=e=>!Nc(e);function AE(e){e&&(zb=t=>t.startsWith("on")?!Nc(t):e(t))}try{AE(require("@emotion/is-prop-valid").default)}catch{}function RE(e,t,n){const s={};for(const o in e)o==="values"&&typeof e.values=="object"||(zb(o)||n===!0&&Nc(o)||!t&&!Nc(o)||e.draggable&&o.startsWith("onDrag"))&&(s[o]=e[o]);return s}function OE(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...s)=>e(...s);return new Proxy(n,{get:(s,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}const $c=E.createContext({});function fa(e){return typeof e=="string"||Array.isArray(e)}function Wc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const zh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$h=["initial",...zh];function Hc(e){return Wc(e.animate)||$h.some(t=>fa(e[t]))}function $b(e){return!!(Hc(e)||e.variants)}function ME(e,t){if(Hc(e)){const{initial:n,animate:s}=e;return{initial:n===!1||fa(n)?n:void 0,animate:fa(s)?s:void 0}}return e.inherit!==!1?t:{}}function LE(e){const{initial:t,animate:n}=ME(e,E.useContext($c));return E.useMemo(()=>({initial:t,animate:n}),[o0(t),o0(n)])}function o0(e){return Array.isArray(e)?e.join(" "):e}const DE=Symbol.for("motionComponentSymbol");function wi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function IE(e,t,n){return E.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):wi(n)&&(n.current=s))},[t])}const Wh=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),FE="framerAppearId",Wb="data-"+Wh(FE),{schedule:Hh}=Ub(queueMicrotask,!1),Hb=E.createContext({});function BE(e,t,n,s,o){var c,u;const{visualElement:f}=E.useContext($c),h=E.useContext(Vb),p=E.useContext(Uc),g=E.useContext(Vc).reducedMotion,y=E.useRef(null);s=s||h.renderer,!y.current&&s&&(y.current=s(e,{visualState:t,parent:f,props:n,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:g}));const v=y.current,j=E.useContext(Hb);v&&!v.projection&&o&&(v.type==="html"||v.type==="svg")&&UE(y.current,n,o,j);const N=E.useRef(!1);E.useInsertionEffect(()=>{v&&N.current&&v.update(n,p)});const b=n[Wb],_=E.useRef(!!b&&!(!((c=window.MotionHandoffIsComplete)===null||c===void 0)&&c.call(window,b))&&((u=window.MotionHasOptimisedAnimation)===null||u===void 0?void 0:u.call(window,b)));return zc(()=>{v&&(N.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),Hh.render(v.render),_.current&&v.animationState&&v.animationState.animateChanges())}),E.useEffect(()=>{v&&(!_.current&&v.animationState&&v.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,b)}),_.current=!1))}),v}function UE(e,t,n,s){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:qb(e.parent)),e.projection.setOptions({layoutId:o,layout:c,alwaysMeasureLayout:!!u||f&&wi(f),visualElement:e,animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,layoutScroll:h,layoutRoot:p})}function qb(e){if(e)return e.options.allowProjection!==!1?e.projection:qb(e.parent)}function VE({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:o}){var c,u;e&&TE(e);function f(p,g){let y;const v={...E.useContext(Vc),...p,layoutId:zE(p)},{isStatic:j}=v,N=LE(p),b=s(p,j);if(!j&&Uh){$E();const _=WE(v);y=_.MeasureLayout,N.visualElement=BE(o,b,v,t,_.ProjectionNode)}return l.jsxs($c.Provider,{value:N,children:[y&&N.visualElement?l.jsx(y,{visualElement:N.visualElement,...v}):null,n(o,p,IE(b,N.visualElement,g),b,j,N.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=E.forwardRef(f);return h[DE]=o,h}function zE({layoutId:e}){const t=E.useContext(Bh).id;return t&&e!==void 0?t+"-"+e:e}function $E(e,t){E.useContext(Vb).strict}function WE(e){const{drag:t,layout:n}=Bi;if(!t&&!n)return{};const s={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const HE=["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 qh(e){return typeof e!="string"||e.includes("-")?!1:!!(HE.indexOf(e)>-1||/[A-Z]/u.test(e))}function a0(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function Kh(e,t,n,s){if(typeof t=="function"){const[o,c]=a0(s);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]=a0(s);t=t(n!==void 0?n:e.custom,o,c)}return t}const Wf=e=>Array.isArray(e),qE=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),KE=e=>Wf(e)?e[e.length-1]||0:e,Dt=e=>!!(e&&e.getVelocity);function uc(e){const t=Dt(e)?e.get():e;return qE(t)?t.toValue():t}function GE({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},s,o,c){const u={latestValues:QE(s,o,c,e),renderState:t()};return n&&(u.onMount=f=>n({props:s,current:f,...u}),u.onUpdate=f=>n(f)),u}const Kb=e=>(t,n)=>{const s=E.useContext($c),o=E.useContext(Uc),c=()=>GE(e,t,s,o);return n?c():Hi(c)};function QE(e,t,n,s){const o={},c=s(e,{});for(const v in c)o[v]=uc(c[v]);let{initial:u,animate:f}=e;const h=Hc(e),p=$b(e);t&&p&&!h&&e.inherit!==!1&&(u===void 0&&(u=t.initial),f===void 0&&(f=t.animate));let g=n?n.initial===!1:!1;g=g||u===!1;const y=g?f:u;if(y&&typeof y!="boolean"&&!Wc(y)){const v=Array.isArray(y)?y:[y];for(let j=0;j<v.length;j++){const N=Kh(e,v[j]);if(N){const{transitionEnd:b,transition:_,...w}=N;for(const T in w){let A=w[T];if(Array.isArray(A)){const R=g?A.length-1:0;A=A[R]}A!==null&&(o[T]=A)}for(const T in b)o[T]=b[T]}}}return o}const qi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Hs=new Set(qi),Gb=e=>t=>typeof t=="string"&&t.startsWith(e),Qb=Gb("--"),YE=Gb("var(--"),Gh=e=>YE(e)?XE.test(e.split("/*")[0].trim()):!1,XE=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Yb=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Hn=(e,t,n)=>n>t?t:n<e?e:n,Ki={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ha={...Ki,transform:e=>Hn(0,1,e)},Xl={...Ki,default:1},_a=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Dr=_a("deg"),Vn=_a("%"),je=_a("px"),JE=_a("vh"),ZE=_a("vw"),l0={...Vn,parse:e=>Vn.parse(e)/100,transform:e=>Vn.transform(e*100)},eC={borderWidth:je,borderTopWidth:je,borderRightWidth:je,borderBottomWidth:je,borderLeftWidth:je,borderRadius:je,radius:je,borderTopLeftRadius:je,borderTopRightRadius:je,borderBottomRightRadius:je,borderBottomLeftRadius:je,width:je,maxWidth:je,height:je,maxHeight:je,top:je,right:je,bottom:je,left:je,padding:je,paddingTop:je,paddingRight:je,paddingBottom:je,paddingLeft:je,margin:je,marginTop:je,marginRight:je,marginBottom:je,marginLeft:je,backgroundPositionX:je,backgroundPositionY:je},tC={rotate:Dr,rotateX:Dr,rotateY:Dr,rotateZ:Dr,scale:Xl,scaleX:Xl,scaleY:Xl,scaleZ:Xl,skew:Dr,skewX:Dr,skewY:Dr,distance:je,translateX:je,translateY:je,translateZ:je,x:je,y:je,z:je,perspective:je,transformPerspective:je,opacity:ha,originX:l0,originY:l0,originZ:je},c0={...Ki,transform:Math.round},Qh={...eC,...tC,zIndex:c0,size:je,fillOpacity:ha,strokeOpacity:ha,numOctaves:c0},nC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rC=qi.length;function sC(e,t,n){let s="",o=!0;for(let c=0;c<rC;c++){const u=qi[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=Yb(f,Qh[u]);if(!h){o=!1;const g=nC[u]||u;s+=`${g}(${p}) `}n&&(t[u]=p)}}return s=s.trim(),n?s=n(t,o?"":s):o&&(s="none"),s}function Yh(e,t,n){const{style:s,vars:o,transformOrigin:c}=e;let u=!1,f=!1;for(const h in t){const p=t[h];if(Hs.has(h)){u=!0;continue}else if(Qb(h)){o[h]=p;continue}else{const g=Yb(p,Qh[h]);h.startsWith("origin")?(f=!0,c[h]=g):s[h]=g}}if(t.transform||(u||n?s.transform=sC(t,e.transform,n):s.transform&&(s.transform="none")),f){const{originX:h="50%",originY:p="50%",originZ:g=0}=c;s.transformOrigin=`${h} ${p} ${g}`}}const iC={offset:"stroke-dashoffset",array:"stroke-dasharray"},oC={offset:"strokeDashoffset",array:"strokeDasharray"};function aC(e,t,n=1,s=0,o=!0){e.pathLength=1;const c=o?iC:oC;e[c.offset]=je.transform(-s);const u=je.transform(t),f=je.transform(n);e[c.array]=`${u} ${f}`}function u0(e,t,n){return typeof e=="string"?e:je.transform(t+n*e)}function lC(e,t,n){const s=u0(t,e.x,e.width),o=u0(n,e.y,e.height);return`${s} ${o}`}function Xh(e,{attrX:t,attrY:n,attrScale:s,originX:o,originY:c,pathLength:u,pathSpacing:f=1,pathOffset:h=0,...p},g,y){if(Yh(e,p,y),g){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:j,dimensions:N}=e;v.transform&&(N&&(j.transform=v.transform),delete v.transform),N&&(o!==void 0||c!==void 0||j.transform)&&(j.transformOrigin=lC(N,o!==void 0?o:.5,c!==void 0?c:.5)),t!==void 0&&(v.x=t),n!==void 0&&(v.y=n),s!==void 0&&(v.scale=s),u!==void 0&&aC(v,u,f,h,!1)}const Jh=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Xb=()=>({...Jh(),attrs:{}}),Zh=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Jb(e,{style:t,vars:n},s,o){Object.assign(e.style,t,o&&o.getProjectionStyles(s));for(const c in n)e.style.setProperty(c,n[c])}const Zb=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 ew(e,t,n,s){Jb(e,t,void 0,s);for(const o in t.attrs)e.setAttribute(Zb.has(o)?o:Wh(o),t.attrs[o])}const _c={};function cC(e){Object.assign(_c,e)}function tw(e,{layout:t,layoutId:n}){return Hs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!_c[e]||e==="opacity")}function ep(e,t,n){var s;const{style:o}=e,c={};for(const u in o)(Dt(o[u])||t.style&&Dt(t.style[u])||tw(u,e)||((s=n==null?void 0:n.getValue(u))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(c[u]=o[u]);return c}function nw(e,t,n){const s=ep(e,t,n);for(const o in e)if(Dt(e[o])||Dt(t[o])){const c=qi.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;s[c]=e[o]}return s}function uC(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 d0=["x","y","width","height","cx","cy","r"],dC={useVisualState:Kb({scrapeMotionValuesFromProps:nw,createRenderState:Xb,onUpdate:({props:e,prevProps:t,current:n,renderState:s,latestValues:o})=>{if(!n)return;let c=!!e.drag;if(!c){for(const f in o)if(Hs.has(f)){c=!0;break}}if(!c)return;let u=!t;if(t)for(let f=0;f<d0.length;f++){const h=d0[f];e[h]!==t[h]&&(u=!0)}u&&ze.read(()=>{uC(n,s),ze.render(()=>{Xh(s,o,Zh(n.tagName),e.transformTemplate),ew(n,s)})})}})},fC={useVisualState:Kb({scrapeMotionValuesFromProps:ep,createRenderState:Jh})};function rw(e,t,n){for(const s in t)!Dt(t[s])&&!tw(s,n)&&(e[s]=t[s])}function hC({transformTemplate:e},t){return E.useMemo(()=>{const n=Jh();return Yh(n,t,e),Object.assign({},n.vars,n.style)},[t])}function pC(e,t){const n=e.style||{},s={};return rw(s,n,e),Object.assign(s,hC(e,t)),s}function mC(e,t){const n={},s=pC(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.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=s,n}function gC(e,t,n,s){const o=E.useMemo(()=>{const c=Xb();return Xh(c,t,Zh(s),e.transformTemplate),{...c.attrs,style:{...c.style}}},[t]);if(e.style){const c={};rw(c,e.style,e),o.style={...c,...o.style}}return o}function yC(e=!1){return(n,s,o,{latestValues:c},u)=>{const h=(qh(n)?gC:mC)(s,c,u,n),p=RE(s,typeof n=="string",e),g=n!==E.Fragment?{...p,...h,ref:o}:{},{children:y}=s,v=E.useMemo(()=>Dt(y)?y.get():y,[y]);return E.createElement(n,{...g,children:v})}}function xC(e,t){return function(s,{forwardMotionProps:o}={forwardMotionProps:!1}){const u={...qh(s)?dC:fC,preloadedFeatures:e,useRender:yC(o),createVisualElement:t,Component:s};return VE(u)}}function sw(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}function qc(e,t,n){const s=e.getProps();return Kh(s,t,n!==void 0?n:s.custom,e)}const iw=Vh(()=>window.ScrollTimeline!==void 0);class vC{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 s=0;s<this.animations.length;s++)this.animations[s][t]=n}attachTimeline(t,n){const s=this.animations.map(o=>{if(iw()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{s.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 bC extends vC{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function tp(e,t){return e?e[t]||e.default||e:void 0}const Hf=2e4;function ow(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<Hf;)t+=n,s=e.next(t);return t>=Hf?1/0:t}function np(e){return typeof e=="function"}function f0(e,t){e.timeline=t,e.onfinish=null}const rp=e=>Array.isArray(e)&&typeof e[0]=="number",wC={linearEasing:void 0};function SC(e,t){const n=Vh(e);return()=>{var s;return(s=wC[t])!==null&&s!==void 0?s:n()}}const Ec=SC(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),aw=(e,t,n=10)=>{let s="";const o=Math.max(Math.round(t/n),2);for(let c=0;c<o;c++)s+=e(Fs(0,o-1,c))+", ";return`linear(${s.substring(0,s.length-2)})`};function lw(e){return!!(typeof e=="function"&&Ec()||!e||typeof e=="string"&&(e in qf||Ec())||rp(e)||Array.isArray(e)&&e.every(lw))}const qo=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,qf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qo([0,.65,.55,1]),circOut:qo([.55,0,1,.45]),backIn:qo([.31,.01,.66,-.59]),backOut:qo([.33,1.53,.69,.99])};function cw(e,t){if(e)return typeof e=="function"&&Ec()?aw(e,t):rp(e)?qo(e):Array.isArray(e)?e.map(n=>cw(n,t)||qf.easeOut):qf[e]}const Nn={x:!1,y:!1};function uw(){return Nn.x||Nn.y}function dw(e,t,n){var s;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const c=(s=void 0)!==null&&s!==void 0?s:o.querySelectorAll(e);return c?Array.from(c):[]}return Array.from(e)}function fw(e,t){const n=dw(e),s=new AbortController,o={passive:!0,...t,signal:s.signal};return[n,o,()=>s.abort()]}function h0(e){return t=>{t.pointerType==="touch"||uw()||e(t)}}function kC(e,t,n={}){const[s,o,c]=fw(e,n),u=h0(f=>{const{target:h}=f,p=t(f);if(typeof p!="function"||!h)return;const g=h0(y=>{p(y),h.removeEventListener("pointerleave",g)});h.addEventListener("pointerleave",g,o)});return s.forEach(f=>{f.addEventListener("pointerenter",u,o)}),c}const hw=(e,t)=>t?e===t?!0:hw(e,t.parentElement):!1,sp=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,jC=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function NC(e){return jC.has(e.tagName)||e.tabIndex!==-1}const Ko=new WeakSet;function p0(e){return t=>{t.key==="Enter"&&e(t)}}function Zd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const _C=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=p0(()=>{if(Ko.has(n))return;Zd(n,"down");const o=p0(()=>{Zd(n,"up")}),c=()=>Zd(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",c,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function m0(e){return sp(e)&&!uw()}function EC(e,t,n={}){const[s,o,c]=fw(e,n),u=f=>{const h=f.currentTarget;if(!m0(f)||Ko.has(h))return;Ko.add(h);const p=t(f),g=(j,N)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",v),!(!m0(j)||!Ko.has(h))&&(Ko.delete(h),typeof p=="function"&&p(j,{success:N}))},y=j=>{g(j,n.useGlobalTarget||hw(h,j.target))},v=j=>{g(j,!1)};window.addEventListener("pointerup",y,o),window.addEventListener("pointercancel",v,o)};return s.forEach(f=>{!NC(f)&&f.getAttribute("tabindex")===null&&(f.tabIndex=0),(n.useGlobalTarget?window:f).addEventListener("pointerdown",u,o),f.addEventListener("focus",p=>_C(p,o),o)}),c}function CC(e){return e==="x"||e==="y"?Nn[e]?null:(Nn[e]=!0,()=>{Nn[e]=!1}):Nn.x||Nn.y?null:(Nn.x=Nn.y=!0,()=>{Nn.x=Nn.y=!1})}const pw=new Set(["width","height","top","left","right","bottom",...qi]);let dc;function TC(){dc=void 0}const zn={now:()=>(dc===void 0&&zn.set(kt.isProcessing||_E.useManualTiming?kt.timestamp:performance.now()),dc),set:e=>{dc=e,queueMicrotask(TC)}};function ip(e,t){e.indexOf(t)===-1&&e.push(t)}function op(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ap{constructor(){this.subscriptions=[]}add(t){return ip(this.subscriptions,t),()=>op(this.subscriptions,t)}notify(t,n,s){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,s);else for(let c=0;c<o;c++){const u=this.subscriptions[c];u&&u(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function lp(e,t){return t?e*(1e3/t):0}const g0=30,PC=e=>!isNaN(parseFloat(e)),Zo={current:void 0};class AC{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,o=!0)=>{const c=zn.now();this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),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=zn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=PC(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 ap);const s=this.events[t].add(n);return t==="change"?()=>{s(),ze.read(()=>{this.events.change.getSize()||this.stop()})}:s}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,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}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 Zo.current&&Zo.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=zn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>g0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,g0);return lp(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 Un(e,t){return new AC(e,t)}function RC(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Un(n))}function OC(e,t){const n=qc(e,t);let{transitionEnd:s={},transition:o={},...c}=n||{};c={...c,...s};for(const u in c){const f=KE(c[u]);RC(e,u,f)}}function MC(e){return!!(Dt(e)&&e.add)}function Kf(e,t){const n=e.getValue("willChange");if(MC(n))return n.add(t)}function mw(e){return e.props[Wb]}const gw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,LC=1e-7,DC=12;function IC(e,t,n,s,o){let c,u,f=0;do u=t+(n-t)/2,c=gw(u,s,o)-e,c>0?n=u:t=u;while(Math.abs(c)>LC&&++f<DC);return u}function Ea(e,t,n,s){if(e===t&&n===s)return zt;const o=c=>IC(c,0,1,e,n);return c=>c===0||c===1?c:gw(o(c),t,s)}const yw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,xw=e=>t=>1-e(1-t),vw=Ea(.33,1.53,.69,.99),cp=xw(vw),bw=yw(cp),ww=e=>(e*=2)<1?.5*cp(e):.5*(2-Math.pow(2,-10*(e-1))),up=e=>1-Math.sin(Math.acos(e)),Sw=xw(up),kw=yw(up),jw=e=>/^0[^.\s]+$/u.test(e);function FC(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||jw(e):!0}const ea=e=>Math.round(e*1e5)/1e5,dp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function BC(e){return e==null}const UC=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fp=(e,t)=>n=>!!(typeof n=="string"&&UC.test(n)&&n.startsWith(e)||t&&!BC(n)&&Object.prototype.hasOwnProperty.call(n,t)),Nw=(e,t,n)=>s=>{if(typeof s!="string")return s;const[o,c,u,f]=s.match(dp);return{[e]:parseFloat(o),[t]:parseFloat(c),[n]:parseFloat(u),alpha:f!==void 0?parseFloat(f):1}},VC=e=>Hn(0,255,e),ef={...Ki,transform:e=>Math.round(VC(e))},ks={test:fp("rgb","red"),parse:Nw("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+ef.transform(e)+", "+ef.transform(t)+", "+ef.transform(n)+", "+ea(ha.transform(s))+")"};function zC(e){let t="",n="",s="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,s+=s,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:o?parseInt(o,16)/255:1}}const Gf={test:fp("#"),parse:zC,transform:ks.transform},Si={test:fp("hsl","hue"),parse:Nw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+Vn.transform(ea(t))+", "+Vn.transform(ea(n))+", "+ea(ha.transform(s))+")"},Lt={test:e=>ks.test(e)||Gf.test(e)||Si.test(e),parse:e=>ks.test(e)?ks.parse(e):Si.test(e)?Si.parse(e):Gf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ks.transform(e):Si.transform(e)},$C=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function WC(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(dp))===null||t===void 0?void 0:t.length)||0)+(((n=e.match($C))===null||n===void 0?void 0:n.length)||0)>0}const _w="number",Ew="color",HC="var",qC="var(",y0="${}",KC=/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 pa(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},o=[];let c=0;const f=t.replace(KC,h=>(Lt.test(h)?(s.color.push(c),o.push(Ew),n.push(Lt.parse(h))):h.startsWith(qC)?(s.var.push(c),o.push(HC),n.push(h)):(s.number.push(c),o.push(_w),n.push(parseFloat(h))),++c,y0)).split(y0);return{values:n,split:f,indexes:s,types:o}}function Cw(e){return pa(e).values}function Tw(e){const{split:t,types:n}=pa(e),s=t.length;return o=>{let c="";for(let u=0;u<s;u++)if(c+=t[u],o[u]!==void 0){const f=n[u];f===_w?c+=ea(o[u]):f===Ew?c+=Lt.transform(o[u]):c+=o[u]}return c}}const GC=e=>typeof e=="number"?0:e;function QC(e){const t=Cw(e);return Tw(e)(t.map(GC))}const Zr={test:WC,parse:Cw,createTransformer:Tw,getAnimatableNone:QC},YC=new Set(["brightness","contrast","saturate","opacity"]);function XC(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(dp)||[];if(!s)return e;const o=n.replace(s,"");let c=YC.has(t)?1:0;return s!==n&&(c*=100),t+"("+c+o+")"}const JC=/\b([a-z-]*)\(.*?\)/gu,Qf={...Zr,getAnimatableNone:e=>{const t=e.match(JC);return t?t.map(XC).join(" "):e}},ZC={...Qh,color:Lt,backgroundColor:Lt,outlineColor:Lt,fill:Lt,stroke:Lt,borderColor:Lt,borderTopColor:Lt,borderRightColor:Lt,borderBottomColor:Lt,borderLeftColor:Lt,filter:Qf,WebkitFilter:Qf},hp=e=>ZC[e];function Pw(e,t){let n=hp(e);return n!==Qf&&(n=Zr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const eT=new Set(["auto","none","0"]);function tT(e,t,n){let s=0,o;for(;s<e.length&&!o;){const c=e[s];typeof c=="string"&&!eT.has(c)&&pa(c).values.length&&(o=e[s]),s++}if(o&&n)for(const c of t)e[c]=Pw(n,o)}const x0=e=>e===Ki||e===je,v0=(e,t)=>parseFloat(e.split(", ")[t]),b0=(e,t)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const o=s.match(/^matrix3d\((.+)\)$/u);if(o)return v0(o[1],t);{const c=s.match(/^matrix\((.+)\)$/u);return c?v0(c[1],e):0}},nT=new Set(["x","y","z"]),rT=qi.filter(e=>!nT.has(e));function sT(e){const t=[];return rT.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const Ui={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:b0(4,13),y:b0(5,14)};Ui.translateX=Ui.x;Ui.translateY=Ui.y;const Ls=new Set;let Yf=!1,Xf=!1;function Aw(){if(Xf){const e=Array.from(Ls).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const o=sT(s);o.length&&(n.set(s,o),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const o=n.get(s);o&&o.forEach(([c,u])=>{var f;(f=s.getValue(c))===null||f===void 0||f.set(u)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}
vendor: 7,509 bytes, line 330
330Xf=!1,Yf=!1,Ls.forEach(e=>e.complete()),Ls.clear()}function Rw(){Ls.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Xf=!0)})}function iT(){Rw(),Aw()}class pp{constructor(t,n,s,o,c,u=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=o,this.element=c,this.isAsync=u}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ls.add(this),Yf||(Yf=!0,ze.read(Rw),ze.resolveKeyframes(Aw))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,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(s&&n){const h=s.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),Ls.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ls.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ow=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),oT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function aT(e){const t=oT.exec(e);if(!t)return[,];const[,n,s,o]=t;return[`--${n??s}`,o]}function Mw(e,t,n=1){const[s,o]=aT(e);if(!s)return;const c=window.getComputedStyle(t).getPropertyValue(s);if(c){const u=c.trim();return Ow(u)?parseFloat(u):u}return Gh(o)?Mw(o,t,n+1):o}const Lw=e=>t=>t.test(e),lT={test:e=>e==="auto",parse:e=>e},Dw=[Ki,je,Vn,Dr,ZE,JE,lT],w0=e=>Dw.find(Lw(e));class Iw extends pp{constructor(t,n,s,o,c){super(t,n,s,o,c,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=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(),Gh(p))){const g=Mw(p,n.current);g!==void 0&&(t[h]=g),h===t.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!pw.has(s)||t.length!==2)return;const[o,c]=t,u=w0(o),f=w0(c);if(u!==f)if(x0(u)&&x0(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,s=[];for(let o=0;o<t.length;o++)FC(t[o])&&s.push(o);s.length&&tT(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ui[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(s,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:s,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const c=n.getValue(s);c&&c.jump(this.measuredOrigin,!1);const u=o.length-1,f=o[u];o[u]=Ui[s](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 S0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Zr.test(e)||e==="0")&&!e.startsWith("url("));function cT(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 uT(e,t,n,s){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const c=e[e.length-1],u=S0(o,t),f=S0(c,t);return!u||!f?!1:cT(e)||(n==="spring"||np(n))&&s}const dT=e=>e!==null;function Kc(e,{repeat:t,repeatType:n="loop"},s){const o=e.filter(dT),c=t&&n!=="loop"&&t%2===1?0:o.length-1;return!c||s===void 0?o[c]:s}const fT=40;class Fw{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:o=0,repeatDelay:c=0,repeatType:u="loop",...f}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=zn.now(),this.options={autoplay:t,delay:n,type:s,repeat:o,repeatDelay:c,repeatType:u,...f},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>fT?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&iT(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=zn.now(),this.hasAttemptedResolve=!0;const{name:s,type:o,velocity:c,delay:u,onComplete:f,onUpdate:h,isGenerator:p}=this.options;if(!p&&!uT(t,s,o,c))if(u)this.options.duration=0;else{h&&h(Kc(t,this.options,n)),f&&f(),this.resolveFinishedPromise();return}const g=this.initPlayback(t,n);g!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...g},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 nt=(e,t,n)=>e+(t-e)*n;function tf(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 hT({hue:e,saturation:t,lightness:n,alpha:s}){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=tf(h,f,e+1/3),c=tf(h,f,e),u=tf(h,f,e-1/3)}return{red:Math.round(o*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:s}}function Cc(e,t){return n=>n>0?t:e}const nf=(e,t,n)=>{const s=e*e,o=n*(t*t-s)+s;return o<0?0:Math.sqrt(o)},pT=[Gf,ks,Si],mT=e=>pT.find(t=>t.test(e));function k0(e){const t=mT(e);if(!t)return!1;let n=t.parse(e);return t===Si&&(n=hT(n)),n}const j0=(e,t)=>{const n=k0(e),s=k0(t);if(!n||!s)return Cc(e,t);const o={...n};return c=>(o.red=nf(n.red,s.red,c),o.green=nf(n.green,s.green,c),o.blue=nf(n.blue,s.blue,c),o.alpha=nt(n.alpha,s.alpha,c),ks.transform(o))},gT=(e,t)=>n=>t(e(n)),Ca=(...e)=>e.reduce(gT),Jf=new Set(["none","hidden"]);function yT(e,t){return Jf.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function xT(e,t){return n=>nt(e,t,n)}function mp(e){return typeof e=="number"?xT:typeof e=="string"?Gh(e)?Cc:Lt.test(e)?j0:wT:Array.isArray(e)?Bw:typeof e=="object"?Lt.test(e)?j0:vT:Cc}function Bw(e,t){const n=[...e],s=n.length,o=e.map((c,u)=>mp(c)(c,t[u]));return c=>{for(let u=0;u<s;u++)n[u]=o[u](c);return n}}function vT(e,t){const n={...e,...t},s={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(s[o]=mp(e[o])(e[o],t[o]));return o=>{for(const c in s)n[c]=s[c](o);return n}}function bT(e,t){var n;const s=[],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;s[c]=h,o[u]++}return s}const wT=(e,t)=>{const n=Zr.createTransformer(t),s=pa(e),o=pa(t);return s.indexes.var.length===o.indexes.var.length&&s.indexes.color.length===o.indexes.color.length&&s.indexes.number.length>=o.indexes.number.length?Jf.has(e)&&!o.values.length||Jf.has(t)&&!s.values.length?yT(e,t):Ca(Bw(bT(s,o),o.values),n):Cc(e,t)};function Uw(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?nt(e,t,n):mp(e)(e,t)}const ST=5;function Vw(e,t,n){const s=Math.max(t-ST,0);return lp(n-e(s),t-s)}const it={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 kT({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:s=it.mass}){let o,c,u=1-t;u=Hn(it.minDamping,it.maxDamping,u),e=Hn(it.minDuration,it.maxDuration,dr(e)),u<1?(o=p=>
vendor: 8,814 bytes, line 330
330{const g=p*u,y=g*e,v=g-n,j=Zf(p,u),N=Math.exp(-y);return rf-v/j*N},c=p=>{const y=p*u*e,v=y*n+n,j=Math.pow(u,2)*Math.pow(p,2)*e,N=Math.exp(-y),b=Zf(Math.pow(p,2),u);return(-o(p)+rf>0?-1:1)*((v-j)*N)/b}):(o=p=>{const g=Math.exp(-p*e),y=(p-n)*e+1;return-rf+g*y},c=p=>{const g=Math.exp(-p*e),y=(n-p)*(e*e);return g*y});const f=5/e,h=NT(o,c,f);if(e=ur(e),isNaN(h))return{stiffness:it.stiffness,damping:it.damping,duration:e};{const p=Math.pow(h,2)*s;return{stiffness:p,damping:u*2*Math.sqrt(s*p),duration:e}}}const jT=12;function NT(e,t,n){let s=n;for(let o=1;o<jT;o++)s=s-e(s)/t(s);return s}function Zf(e,t){return e*Math.sqrt(1-t*t)}const _T=["duration","bounce"],ET=["stiffness","damping","mass"];function N0(e,t){return t.some(n=>e[n]!==void 0)}function CT(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!N0(e,ET)&&N0(e,_T))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),o=s*s,c=2*Hn(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:it.mass,stiffness:o,damping:c}}else{const n=kT(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function zw(e=it.visualDuration,t=it.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,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:g,duration:y,velocity:v,isResolvedFromDuration:j}=CT({...n,velocity:-dr(n.velocity||0)}),N=v||0,b=p/(2*Math.sqrt(h*g)),_=u-c,w=dr(Math.sqrt(h/g)),T=Math.abs(_)<5;s||(s=T?it.restSpeed.granular:it.restSpeed.default),o||(o=T?it.restDelta.granular:it.restDelta.default);let A;if(b<1){const I=Zf(w,b);A=V=>{const Z=Math.exp(-b*w*V);return u-Z*((N+b*w*_)/I*Math.sin(I*V)+_*Math.cos(I*V))}}else if(b===1)A=I=>u-Math.exp(-w*I)*(_+(N+w*_)*I);else{const I=w*Math.sqrt(b*b-1);A=V=>{const Z=Math.exp(-b*w*V),F=Math.min(I*V,300);return u-Z*((N+b*w*_)*Math.sinh(F)+I*_*Math.cosh(F))/I}}const R={calculatedDuration:j&&y||null,next:I=>{const V=A(I);if(j)f.done=I>=y;else{let Z=0;b<1&&(Z=I===0?ur(N):Vw(A,I,V));const F=Math.abs(Z)<=s,ne=Math.abs(u-V)<=o;f.done=F&&ne}return f.value=f.done?u:V,f},toString:()=>{const I=Math.min(ow(R),Hf),V=aw(Z=>R.next(I*Z).value,I,30);return I+"ms "+V}};return R}function _0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:c=500,modifyTarget:u,min:f,max:h,restDelta:p=.5,restSpeed:g}){const y=e[0],v={done:!1,value:y},j=F=>f!==void 0&&F<f||h!==void 0&&F>h,N=F=>f===void 0?h:h===void 0||Math.abs(f-F)<Math.abs(h-F)?f:h;let b=n*t;const _=y+b,w=u===void 0?_:u(_);w!==_&&(b=w-y);const T=F=>-b*Math.exp(-F/s),A=F=>w+T(F),R=F=>{const ne=T(F),ye=A(F);v.done=Math.abs(ne)<=p,v.value=v.done?w:ye};let I,V;const Z=F=>{j(v.value)&&(I=F,V=zw({keyframes:[v.value,N(v.value)],velocity:Vw(A,F,v.value),damping:o,stiffness:c,restDelta:p,restSpeed:g}))};return Z(0),{calculatedDuration:null,next:F=>{let ne=!1;return!V&&I===void 0&&(ne=!0,R(F),Z(F)),I!==void 0&&F>=I?V.next(F-I):(!ne&&R(F),v)}}}const TT=Ea(.42,0,1,1),PT=Ea(0,0,.58,1),$w=Ea(.42,0,.58,1),AT=e=>Array.isArray(e)&&typeof e[0]!="number",RT={linear:zt,easeIn:TT,easeInOut:$w,easeOut:PT,circIn:up,circInOut:kw,circOut:Sw,backIn:cp,backInOut:bw,backOut:vw,anticipate:ww},E0=e=>{if(rp(e)){Bb(e.length===4);const[t,n,s,o]=e;return Ea(t,n,s,o)}else if(typeof e=="string")return RT[e];return e};function OT(e,t,n){const s=[],o=n||Uw,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]||zt:t;f=Ca(h,f)}s.push(f)}return s}function gp(e,t,{clamp:n=!0,ease:s,mixer:o}={}){const c=e.length;if(Bb(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=OT(t,s,o),h=f.length,p=g=>{if(u&&g<e[0])return t[0];let y=0;if(h>1)for(;y<e.length-2&&!(g<e[y+1]);y++);const v=Fs(e[y],e[y+1],g);return f[y](v)};return n?g=>p(Hn(e[0],e[c-1],g)):p}function MT(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const o=Fs(0,t,s);e.push(nt(n,1,o))}}function Ww(e){const t=[0];return MT(t,e.length-1),t}function LT(e,t){return e.map(n=>n*t)}function DT(e,t){return e.map(()=>t||$w).splice(0,e.length-1)}function Tc({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const o=AT(s)?s.map(E0):E0(s),c={done:!1,value:t[0]},u=LT(n&&n.length===t.length?n:Ww(t),e),f=gp(u,t,{ease:Array.isArray(o)?o:DT(t,o)});return{calculatedDuration:e,next:h=>(c.value=f(h),c.done=h>=e,c)}}const IT=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ze.update(t,!0),stop:()=>Tn(t),now:()=>kt.isProcessing?kt.timestamp:zn.now()}},FT={decay:_0,inertia:_0,tween:Tc,keyframes:Tc,spring:zw},BT=e=>e/100;class yp extends Fw{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:s,element:o,keyframes:c}=this.options,u=(o==null?void 0:o.KeyframeResolver)||pp,f=(h,p)=>this.onKeyframesResolved(h,p);this.resolver=new u(c,f,n,s,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:s=0,repeatDelay:o=0,repeatType:c,velocity:u=0}=this.options,f=np(n)?n:FT[n]||Tc;let h,p;f!==Tc&&typeof t[0]!="number"&&(h=Ca(BT,Uw(t[0],t[1])),t=[0,100]);const g=f({...this.options,keyframes:t});c==="mirror"&&(p=f({...this.options,keyframes:[...t].reverse(),velocity:-u})),g.calculatedDuration===null&&(g.calculatedDuration=ow(g));const{calculatedDuration:y}=g,v=y+o,j=v*(s+1)-o;return{generator:g,mirroredGenerator:p,mapPercentToKeyframes:h,calculatedDuration:y,resolvedDuration:v,totalDuration:j}}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:s}=this;if(!s){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:o,generator:c,mirroredGenerator:u,mapPercentToKeyframes:f,keyframes:h,calculatedDuration:p,totalDuration:g,resolvedDuration:y}=s;if(this.startTime===null)return c.next(0);const{delay:v,repeat:j,repeatType:N,repeatDelay:b,onUpdate:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-g/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 w=this.currentTime-v*(this.speed>=0?1:-1),T=this.speed>=0?w<0:w>g;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=g);let A=this.currentTime,R=c;if(j){const F=Math.min(this.currentTime,g)/y;let ne=Math.floor(F),ye=F%1;!ye&&F>=1&&(ye=1),ye===1&&ne--,ne=Math.min(ne,j+1),!!(ne%2)&&(N==="reverse"?(ye=1-ye,b&&(ye-=b/y)):N==="mirror"&&(R=u)),A=Hn(0,1,ye)*y}const I=T?{done:!1,value:h[0]}:R.next(A);f&&(I.value=f(I.value));let{done:V}=I;!T&&p!==null&&(V=this.speed>=0?this.currentTime>=g:this.currentTime<=0);const Z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return Z&&o!==void 0&&(I.value=Kc(h,this.options,o)),_&&_(I.value),Z&&this.finish(),I}get duration(){const{resolved:t}=this;return t?dr(t.calculatedDuration):0}get time(){return dr(this.currentTime)}set time(t){t=ur(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=dr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=IT,onPlay:n,startTime:s}=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=s??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.updateFinishedProm
vendor: 5,506 bytes, line 330
330ise()}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 UT=new Set(["opacity","clipPath","filter","transform"]);function VT(e,t,n,{delay:s=0,duration:o=300,repeat:c=0,repeatType:u="loop",ease:f="easeInOut",times:h}={}){const p={[t]:n};h&&(p.offset=h);const g=cw(f,o);return Array.isArray(g)&&(p.easing=g),e.animate(p,{delay:s,duration:o,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:c+1,direction:u==="reverse"?"alternate":"normal"})}const zT=Vh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Pc=10,$T=2e4;function WT(e){return np(e.type)||e.type==="spring"||!lw(e.ease)}function HT(e,t){const n=new yp({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:e[0]};const o=[];let c=0;for(;!s.done&&c<$T;)s=n.sample(c),o.push(s.value),c+=Pc;return{times:void 0,keyframes:o,duration:c-Pc,ease:"linear"}}const Hw={anticipate:ww,backInOut:bw,circInOut:kw};function qT(e){return e in Hw}class C0 extends Fw{constructor(t){super(t);const{name:n,motionValue:s,element:o,keyframes:c}=this.options;this.resolver=new Iw(c,(u,f)=>this.onKeyframesResolved(u,f),n,s,o),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:s=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"&&Ec()&&qT(c)&&(c=Hw[c]),WT(this.options)){const{onComplete:y,onUpdate:v,motionValue:j,element:N,...b}=this.options,_=HT(t,b);t=_.keyframes,t.length===1&&(t[1]=t[0]),s=_.duration,o=_.times,c=_.ease,u="keyframes"}const g=VT(f.owner.current,h,t,{...this.options,duration:s,times:o,ease:c});return g.startTime=p??this.calcStartTime(),this.pendingTimeline?(f0(g,this.pendingTimeline),this.pendingTimeline=void 0):g.onfinish=()=>{const{onComplete:y}=this.options;f.set(Kc(t,this.options,n)),y&&y(),this.cancel(),this.resolveFinishedPromise()},{animation:g,duration:s,times:o,type:u,ease:c,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return dr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return dr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=ur(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:s}=n;s.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 zt;const{animation:s}=n;f0(s,t)}return zt}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:s,duration:o,type:c,ease:u,times:f}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:p,onUpdate:g,onComplete:y,element:v,...j}=this.options,N=new yp({...j,keyframes:s,duration:o,type:c,ease:u,times:f,isGenerator:!0}),b=ur(this.time);p.setWithVelocity(N.sample(b-Pc).value,N.sample(b).value,Pc)}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:s,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 zT()&&s&&UT.has(s)&&!h&&!p&&!o&&c!=="mirror"&&u!==0&&f!=="inertia"}}const KT={type:"spring",stiffness:500,damping:25,restSpeed:10},GT=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),QT={type:"keyframes",duration:.8},YT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},XT=(e,{keyframes:t})=>t.length>2?QT:Hs.has(e)?e.startsWith("scale")?GT(t[1]):KT:YT;function JT({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:o,repeat:c,repeatType:u,repeatDelay:f,from:h,elapsed:p,...g}){return!!Object.keys(g).length}const xp=(e,t,n,s={},o,c)=>u=>{const f=tp(s,e)||{},h=f.delay||s.delay||0;let{elapsed:p=0}=s;p=p-ur(h);let g={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};JT(f)||(g={...g,...XT(e,g)}),g.duration&&(g.duration=ur(g.duration)),g.repeatDelay&&(g.repeatDelay=ur(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let y=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(g.duration=0,g.delay===0&&(y=!0)),y&&!c&&t.get()!==void 0){const v=Kc(g.keyframes,f);if(v!==void 0)return ze.update(()=>{g.onUpdate(v),g.onComplete()}),new bC([])}return!c&&C0.supports(g)?new C0(g):new yp(g)};function ZT({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}
vendor: 9,691 bytes, line 330
330function qw(e,t,{delay:n=0,transitionOverride:s,type:o}={}){var c;let{transition:u=e.getDefaultTransition(),transitionEnd:f,...h}=t;s&&(u=s);const p=[],g=o&&e.animationState&&e.animationState.getState()[o];for(const y in h){const v=e.getValue(y,(c=e.latestValues[y])!==null&&c!==void 0?c:null),j=h[y];if(j===void 0||g&&ZT(g,y))continue;const N={delay:n,...tp(u||{},y)};let b=!1;if(window.MotionHandoffAnimation){const w=mw(e);if(w){const T=window.MotionHandoffAnimation(w,y,ze);T!==null&&(N.startTime=T,b=!0)}}Kf(e,y),v.start(xp(y,v,j,e.shouldReduceMotion&&pw.has(y)?{type:!1}:N,e,b));const _=v.animation;_&&p.push(_)}return f&&Promise.all(p).then(()=>{ze.update(()=>{f&&OC(e,f)})}),p}function eh(e,t,n={}){var s;const o=qc(e,t,n.type==="exit"?(s=e.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:c=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(c=n.transitionOverride);const u=o?()=>Promise.all(qw(e,o,n)):()=>Promise.resolve(),f=e.variantChildren&&e.variantChildren.size?(p=0)=>{const{delayChildren:g=0,staggerChildren:y,staggerDirection:v}=c;return eP(e,t,g+p,y,v,n)}:()=>Promise.resolve(),{when:h}=c;if(h){const[p,g]=h==="beforeChildren"?[u,f]:[f,u];return p().then(()=>g())}else return Promise.all([u(),f(n.delay)])}function eP(e,t,n=0,s=0,o=1,c){const u=[],f=(e.variantChildren.size-1)*s,h=o===1?(p=0)=>p*s:(p=0)=>f-p*s;return Array.from(e.variantChildren).sort(tP).forEach((p,g)=>{p.notify("AnimationStart",t),u.push(eh(p,t,{...c,delay:n+h(g)}).then(()=>p.notify("AnimationComplete",t)))}),Promise.all(u)}function tP(e,t){return e.sortNodePosition(t)}function nP(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const o=t.map(c=>eh(e,c,n));s=Promise.all(o)}else if(typeof t=="string")s=eh(e,t,n);else{const o=typeof t=="function"?qc(e,t,n.custom):t;s=Promise.all(qw(e,o,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const rP=$h.length;function Kw(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Kw(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<rP;n++){const s=$h[n],o=e.props[s];(fa(o)||o===!1)&&(t[s]=o)}return t}const sP=[...zh].reverse(),iP=zh.length;function oP(e){return t=>Promise.all(t.map(({animation:n,options:s})=>nP(e,n,s)))}function aP(e){let t=oP(e),n=T0(),s=!0;const o=h=>(p,g)=>{var y;const v=qc(e,g,h==="exit"?(y=e.presenceContext)===null||y===void 0?void 0:y.custom:void 0);if(v){const{transition:j,transitionEnd:N,...b}=v;p={...p,...b,...N}}return p};function c(h){t=h(e)}function u(h){const{props:p}=e,g=Kw(e.parent)||{},y=[],v=new Set;let j={},N=1/0;for(let _=0;_<iP;_++){const w=sP[_],T=n[w],A=p[w]!==void 0?p[w]:g[w],R=fa(A),I=w===h?T.isActive:null;I===!1&&(N=_);let V=A===g[w]&&A!==p[w]&&R;if(V&&s&&e.manuallyAnimateOnMount&&(V=!1),T.protectedKeys={...j},!T.isActive&&I===null||!A&&!T.prevProp||Wc(A)||typeof A=="boolean")continue;const Z=lP(T.prevProp,A);let F=Z||w===h&&T.isActive&&!V&&R||_>N&&R,ne=!1;const ye=Array.isArray(A)?A:[A];let Ne=ye.reduce(o(w),{});I===!1&&(Ne={});const{prevResolvedValues:re={}}=T,Se={...re,...Ne},Te=xe=>{F=!0,v.has(xe)&&(ne=!0,v.delete(xe)),T.needsAnimating[xe]=!0;const G=e.getValue(xe);G&&(G.liveStyle=!1)};for(const xe in Se){const G=Ne[xe],le=re[xe];if(j.hasOwnProperty(xe))continue;let C=!1;Wf(G)&&Wf(le)?C=!sw(G,le):C=G!==le,C?G!=null?Te(xe):v.add(xe):G!==void 0&&v.has(xe)?Te(xe):T.protectedKeys[xe]=!0}T.prevProp=A,T.prevResolvedValues=Ne,T.isActive&&(j={...j,...Ne}),s&&e.blockInitialAnimation&&(F=!1),F&&(!(V&&Z)||ne)&&y.push(...ye.map(xe=>({animation:xe,options:{type:w}})))}if(v.size){const _={};v.forEach(w=>{const T=e.getBaseTarget(w),A=e.getValue(w);A&&(A.liveStyle=!0),_[w]=T??null}),y.push({animation:_})}let b=!!y.length;return s&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(b=!1),s=!1,b?t(y):Promise.resolve()}function f(h,p){var g;if(n[h].isActive===p)return Promise.resolve();(g=e.variantChildren)===null||g===void 0||g.forEach(v=>{var j;return(j=v.animationState)===null||j===void 0?void 0:j.setActive(h,p)}),n[h].isActive=p;const y=u(h);for(const v in n)n[v].protectedKeys={};return y}return{animateChanges:u,setActive:f,setAnimateFunction:c,getState:()=>n,reset:()=>{n=T0(),s=!0}}}function lP(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!sw(t,e):!1}function ys(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function T0(){return{animate:ys(!0),whileInView:ys(),whileHover:ys(),whileTap:ys(),whileDrag:ys(),whileFocus:ys(),exit:ys()}}class ns{constructor(t){this.isMounted=!1,this.node=t}update(){}}class cP extends ns{constructor(t){super(t),t.animationState||(t.animationState=aP(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Wc(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 uP=0;class dP extends ns{constructor(){super(...arguments),this.id=uP++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)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 fP={animation:{Feature:cP},exit:{Feature:dP}};function ma(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function Ta(e){return{point:{x:e.pageX,y:e.pageY}}}const hP=e=>t=>sp(t)&&e(t,Ta(t));function ta(e,t,n,s){return ma(e,t,hP(n),s)}const P0=(e,t)=>Math.abs(e-t);function pP(e,t){const n=P0(e.x,t.x),s=P0(e.y,t.y);return Math.sqrt(n**2+s**2)}class Gw{constructor(t,n,{transformPagePoint:s,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 y=of(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,j=pP(y.offset,{x:0,y:0})>=3;if(!v&&!j)return;const{point:N}=y,{timestamp:b}=kt;this.history.push({...N,timestamp:b});const{onStart:_,onMove:w}=this.handlers;v||(_&&_(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,y)},this.handlePointerMove=(y,v)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=sf(v,this.transformPagePoint),ze.update(this.updatePoint,!0)},this.handlePointerUp=(y,v)=>{this.end();const{onEnd:j,onSessionEnd:N,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=of(y.type==="pointercancel"?this.lastMoveEventInfo:sf(v,this.transformPagePoint),this.history);this.startEvent&&j&&j(y,_),N&&N(y,_)},!sp(t))return;this.dragSnapToOrigin=c,this.handlers=n,this.transformPagePoint=s,this.contextWindow=o||window;const u=Ta(t),f=sf(u,this.transformPagePoint),{point:h}=f,{timestamp:p}=kt;this.history=[{...h,timestamp:p}];const{onSessionStart:g}=n;g&&g(t,of(f,this.history)),this.removeListeners=Ca(ta(this.contextWindow,"pointermove",this.handlePointerMove),ta(this.contextWindow,"pointerup",this.handlePointerUp),ta(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Tn(this.updatePoint)}}function sf(e,t){return t?{point:t(e.point)}:e}function A0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function of({point:e},t){return{point:e,delta:A0(e,Qw(t)),offset:A0(e,mP(t)),velocity:gP(t,.1)}}function mP(e){return e[0]}function Qw(e){return e[e.length-1]}function gP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const o=Qw(e);for(;n>=0&&(s=e[n],!(o.timestamp-s.timestamp>ur(t)));)n--;if(!s)return{x:0,y:0};const c=dr(o.timestamp-s.timestamp);if(c===0)return{x:0,y:0};const u={x:(o.x-s.x)/c,y:(o.y-s.y)/c};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}const Yw=1e-4,yP=1-Yw,xP=1+Yw,Xw=.01,vP=0-Xw,bP=0+Xw;function rn(e){return e.max-e.min}function wP(e,t,n){return Math.abs(e-t)<=n}function R0(e,t,n,s=.5){e.origin=s,e.originPoint=nt(t.min,t.max,e.origin),e.scale=rn(n)/rn(t),e.translate=nt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=yP&&e.scale<=xP||isNaN(e.scale))&&(e.scale=1),(e.translate>=vP&&e.translate<=bP||isNaN(e.translate))&&(e.translate=0)}function na(e,t,n,s){R0(e.x,t.x,n.x,s?s.originX:void 0),R0(e.y,t.y,n.y,s?s.originY:void 0)}function O0(e,t,n){e.min=n.min+t.min,e.max=e.min+rn(t)}function SP(e,t,n){O0(e.x,t.x,n.x),O0(e.y,t.y,n.y)}function M0(e,t,n){e.min=t.min-n.min,e.max=e.min+rn(t)}function ra(e,t,n){M0(e.x,t.x,n.x),M0(e.y,t.y,n.y)}function kP(e,{min:t,max:n},s){return t!==void 0&&e<t?e=s?nt(t,e,s.min):Math.max(e,t):n!==void 0&&e>n&&(e=s?nt(n,e,s.max):Math.min(e,n)),e}function L0(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 jP(e,{top:t,left:n,bottom:s,right:o}){return{x:L0(e.x,n,o),y:L0(e.y,t,s)}}function D0(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,s]=[s,n]),{min:n,max:s}}function NP(e,t){return{x:D0(e.x,t.x),y:D0(e.y,t.y)}}function _P(e,t){let n=.5;const s=rn(e),o=rn(t);return o>s?n=Fs(t.min,t.max-s,e.min):s>o&&(n=Fs(e.min,e.max-o,t.min)),Hn(0,1,n)}function EP(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 th=.35;function CP(e=th){return e===!1?e=0:e===!0&&(e=th),{x:I0(e,"left","right"),y:I0(e,"to
330p","bottom")}}function I0(e,t,n){return{min:F0(e,t),max:F0(e,n)}}function F0(e,t){return typeof e=="number"?e:e[t]||0}const B0=()=>({translate:0,scale:1,origin:0,originPoint:0}),ki=()=>({x:B0(),y:B0()}),U0=()=>({min:0,max:0}),ct=()=>({x:U0(),y:U0()});function fn(e){return[e("x"),e("y")]}function Jw({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function TP({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function PP(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function af(e){return e===void 0||e===1}function nh({scale:e,scaleX:t,scaleY:n}){return!af(e)||!af(t)||!af(n)}function vs(e){return nh(e)||Zw(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Zw(e){return V0(e.x)||V0(e.y)}function V0(e){return e&&e!=="0%"}function Ac(e,t,n){const s=e-n,o=t*s;return n+o}function z0(e,t,n,s,o){return o!==void 0&&(e=Ac(e,o,s)),Ac(e,n,s)+t}function rh(e,t=0,n=1,s,o){e.min=z0(e.min,t,n,s,o),e.max=z0(e.max,t,n,s,o)}function e1(e,{x:t,y:n}){rh(e.x,t.translate,t.scale,t.originPoint),rh(e.y,n.translate,n.scale,n.originPoint)}const $0=.999999999999,W0=1.0000000000001;function AP(e,t,n,s=!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"||(s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Ni(e,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,e1(e,u)),s&&vs(c.latestValues)&&Ni(e,c.latestValues))}t.x<W0&&t.x>$0&&(t.x=1),t.y<W0&&t.y>$0&&(t.y=1)}function ji(e,t){e.min=e.min+t,e.max=e.max+t}function H0(e,t,n,s,o=.5){const c=nt(e.min,e.max,o);rh(e,t,n,c,s)}function Ni(e,t){H0(e.x,t.x,t.scaleX,t.scale,t.originX),H0(e.y,t.y,t.scaleY,t.scale,t.originY)}function t1(e,t){return Jw(PP(e.getBoundingClientRect(),t))}function RP(e,t,n){const s=t1(e,n),{scroll:o}=t;return o&&(ji(s.x,o.offset.x),ji(s.y,o.offset.y)),s}const n1=({current:e})=>e?e.ownerDocument.defaultView:null,OP=new WeakMap;class MP{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=ct(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const o=g=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ta(g).point)},c=(g,y)=>{const{drag:v,dragPropagation:j,onDragStart:N}=this.getProps();if(v&&!j&&(this.openDragLock&&this.openDragLock(),this.openDragLock=CC(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),fn(_=>{let w=this.getAxisMotionValue(_).get()||0;if(Vn.test(w)){const{projection:T}=this.visualElement;if(T&&T.layout){const A=T.layout.layoutBox[_];A&&(w=rn(A)*(parseFloat(w)/100))}}this.originPoint[_]=w}),N&&ze.postRender(()=>N(g,y)),Kf(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},u=(g,y)=>{const{dragPropagation:v,dragDirectionLock:j,onDirectionLock:N,onDrag:b}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:_}=y;if(j&&this.currentDirection===null){this.currentDirection=LP(_),this.currentDirection!==null&&N&&N(this.currentDirection);return}this.updateAxis("x",y.point,_),this.updateAxis("y",y.point,_),this.visualElement.render(),b&&b(g,y)},f=(g,y)=>this.stop(g,y),h=()=>fn(g=>{var y;return this.getAnimationState(g)==="paused"&&((y=this.getAxisMotionValue(g).animation)===null||y===void 0?void 0:y.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new Gw(t,{onSessionStart:o,onStart:c,onMove:u,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:n1(this.visualElement)})}stop(t,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:c}=this.getProps();c&&ze.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:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,s){const{drag:o}=this.getProps();if(!s||!Jl(t,o,this.currentDirection))return;const c=this.getAxisMotionValue(t);let u=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(u=kP(u,this.constraints[t],this.elastic[t])),c.set(u)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:s}=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&&wi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=jP(o.layoutBox,n):this.constraints=!1,this.elastic=CP(s),c!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&fn(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=EP(o.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!wi(t))return!1;const s=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const c=RP(s,o.root,this.visualElement.getTransformPagePoint());let u=NP(o.layout.layoutBox,c);if(n){const f=n(TP(u));this.hasMutatedConstraints=!!f,f&&(u=Jw(f))}return u}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:o,dragTransition:c,dragSnapToOrigin:u,onDragTransitionEnd:f}=this.getProps(),h=this.constraints||{},p=fn(g=>{if(!Jl(g,n,this.currentDirection))return;let y=h&&h[g]||{};u&&(y={min:0,max:0});const v=o?200:1e6,j=o?40:1e7,N={type:"inertia",velocity:s?t[g]:0,bounceStiffness:v,bounceDamping:j,timeConstant:750,restDelta:1,restSpeed:10,...c,...y};return this.startAxisValueAnimation(g,N)});return Promise.all(p).then(f)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return Kf(this.visualElement,t),s.start(xp(t,s,0,n,this.visualElement,!1))}stopAnimation(){fn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){fn(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()}`,s=this.visualElement.getProps(),o=s[n];return o||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){fn(n=>{const{drag:s}=this.getProps();if(!Jl(n,s,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]-nt(u,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!wi(n)||!s||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};fn(u=>{const f=this.getAxisMotionValue(u);if(f&&this.constraints!==!1){const h=f.get();o[u]=_P({min:h,max:h},this.constraints[u])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),fn(u=>{if(!Jl(u,t,null))return;const f=this.getAxisMotionValue(u),{min:h,max:p}=this.constraints[u];f.set(nt(h,p,o[u]))})}addListeners(){if(!this.visualElement.current)return;OP.set(this.visualElement,this);const t=this.visualElement.current,n=ta(t,"pointerdown",h=>{const{drag:p,dragListener:g=!0}=this.getProps();p&&g&&this.start(h)}),s=()=>{const{dragConstraints:h}=this.getProps();wi(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,c=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ze.read(s);const u=ma(window,"resize",()=>this.scalePositionWithinConstraints()),f=o.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:p})=>{this.isDragging&&p&&(fn(g=>{const y=this.getAxisMotionValue(g);y&&(this.originPoint[g]+=h[g].translate,y.set(y.get()+h[g].translate))}),this.visualElement.render())}));return()=>{u(),n(),c(),f&&f()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:o=!1,dragConstraints:c=!1,dragElastic:u=th,dragMomentum:f=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:o,dragConstraints:c,dragElastic:u,dragMomentum:f}}}function Jl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function LP(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class DP extends ns{constructor(t){super(t),this.removeGroupControls=zt,this.removeListeners=zt,this.controls=new MP(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||zt}unmount(){this.removeGroupControls(),this.removeListeners()}}const q0=e=>(t,n)=>{e&&ze.postRender(()=>e(t,n))};class IP extends ns{constructor(){super(...arguments),this.removePointerDownListener=zt}onPointerDown(t){this.session=new Gw(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:o}=this.node.getProps();return{onSessionStart:q0(t),onStart:q0(n),onMove:s,onEnd:(c,u)=>{delete this.session,o&&ze.postRender(()=>o(c,u))}}}mount(){this.removePointerDownListener=ta(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 fc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function K0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Uo={correct:(e,t)=>
vendor: 39,503 bytes, line 330
330{if(!t.target)return e;if(typeof e=="string")if(je.test(e))e=parseFloat(e);else return e;const n=K0(e,t.target.x),s=K0(e,t.target.y);return`${n}% ${s}%`}},FP={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,o=Zr.parse(e);if(o.length>5)return s;const c=Zr.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=nt(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 BP extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:o}=this.props,{projection:c}=t;cC(UP),c&&(n.group&&n.group.add(c),s&&s.register&&o&&s.register(c),c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,onExitComplete:()=>this.safeToRemove()})),fc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:o,isPresent:c}=this.props,u=s.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()||ze.postRender(()=>{const f=u.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Hh.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),s&&s.deregister&&s.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function r1(e){const[t,n]=Fb(),s=E.useContext(Bh);return l.jsx(BP,{...e,layoutGroup:s,switchLayoutGroup:E.useContext(Hb),isPresent:t,safeToRemove:n})}const UP={borderRadius:{...Uo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Uo,borderTopRightRadius:Uo,borderBottomLeftRadius:Uo,borderBottomRightRadius:Uo,boxShadow:FP};function VP(e,t,n){const s=Dt(e)?e:Un(e);return s.start(xp("",s,t,n)),s.animation}function zP(e){return e instanceof SVGElement&&e.tagName!=="svg"}const $P=(e,t)=>e.depth-t.depth;class WP{constructor(){this.children=[],this.isDirty=!1}add(t){ip(this.children,t),this.isDirty=!0}remove(t){op(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort($P),this.isDirty=!1,this.children.forEach(t)}}function HP(e,t){const n=zn.now(),s=({timestamp:o})=>{const c=o-n;c>=t&&(Tn(s),e(c-t))};return ze.read(s,!0),()=>Tn(s)}const s1=["TopLeft","TopRight","BottomLeft","BottomRight"],qP=s1.length,G0=e=>typeof e=="string"?parseFloat(e):e,Q0=e=>typeof e=="number"||je.test(e);function KP(e,t,n,s,o,c){o?(e.opacity=nt(0,n.opacity!==void 0?n.opacity:1,GP(s)),e.opacityExit=nt(t.opacity!==void 0?t.opacity:1,0,QP(s))):c&&(e.opacity=nt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let u=0;u<qP;u++){const f=`border${s1[u]}Radius`;let h=Y0(t,f),p=Y0(n,f);if(h===void 0&&p===void 0)continue;h||(h=0),p||(p=0),h===0||p===0||Q0(h)===Q0(p)?(e[f]=Math.max(nt(G0(h),G0(p),s),0),(Vn.test(p)||Vn.test(h))&&(e[f]+="%")):e[f]=p}(t.rotate||n.rotate)&&(e.rotate=nt(t.rotate||0,n.rotate||0,s))}function Y0(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const GP=i1(0,.5,Sw),QP=i1(.5,.95,zt);function i1(e,t,n){return s=>s<e?0:s>t?1:n(Fs(e,t,s))}function X0(e,t){e.min=t.min,e.max=t.max}function dn(e,t){X0(e.x,t.x),X0(e.y,t.y)}function J0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Z0(e,t,n,s,o){return e-=t,e=Ac(e,1/n,s),o!==void 0&&(e=Ac(e,1/o,s)),e}function YP(e,t=0,n=1,s=.5,o,c=e,u=e){if(Vn.test(t)&&(t=parseFloat(t),t=nt(u.min,u.max,t/100)-u.min),typeof t!="number")return;let f=nt(c.min,c.max,s);e===c&&(f-=t),e.min=Z0(e.min,t,n,f,o),e.max=Z0(e.max,t,n,f,o)}function ex(e,t,[n,s,o],c,u){YP(e,t[n],t[s],t[o],t.scale,c,u)}const XP=["x","scaleX","originX"],JP=["y","scaleY","originY"];function tx(e,t,n,s){ex(e.x,t,XP,n?n.x:void 0,s?s.x:void 0),ex(e.y,t,JP,n?n.y:void 0,s?s.y:void 0)}function nx(e){return e.translate===0&&e.scale===1}function o1(e){return nx(e.x)&&nx(e.y)}function rx(e,t){return e.min===t.min&&e.max===t.max}function ZP(e,t){return rx(e.x,t.x)&&rx(e.y,t.y)}function sx(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function a1(e,t){return sx(e.x,t.x)&&sx(e.y,t.y)}function ix(e){return rn(e.x)/rn(e.y)}function ox(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class eA{constructor(){this.members=[]}add(t){ip(this.members,t),t.scheduleRender()}remove(t){if(op(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 s;for(let o=n;o>=0;o--){const c=this.members[o];if(c.isPresent!==!1){s=c;break}}return s?(this.promote(s),!0):!1}promote(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,n&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:s}=t;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function tA(e,t,n){let s="";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)&&(s=`translate3d(${o}px, ${c}px, ${u}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:p,rotate:g,rotateX:y,rotateY:v,skewX:j,skewY:N}=n;p&&(s=`perspective(${p}px) ${s}`),g&&(s+=`rotate(${g}deg) `),y&&(s+=`rotateX(${y}deg) `),v&&(s+=`rotateY(${v}deg) `),j&&(s+=`skewX(${j}deg) `),N&&(s+=`skewY(${N}deg) `)}const f=e.x.scale*t.x,h=e.y.scale*t.y;return(f!==1||h!==1)&&(s+=`scale(${f}, ${h})`),s||"none"}const bs={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Go=typeof window<"u"&&window.MotionDebug!==void 0,lf=["","X","Y","Z"],nA={visibility:"hidden"},ax=1e3;let rA=0;function cf(e,t,n,s){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),s&&(s[e]=0))}function l1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=mw(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:c}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ze,!(o||c))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&l1(s)}function c1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(u={},f=t==null?void 0:t()){this.id=rA++,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,Go&&(bs.totalNodes=bs.resolvedTargetDeltas=bs.recalculatedProjection=0),this.nodes.forEach(oA),this.nodes.forEach(dA),this.nodes.forEach(fA),this.nodes.forEach(aA),Go&&window.MotionDebug.record(bs)},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 WP)}addEventListener(u,f){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new ap),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=zP(u),this.instance=u;const{layoutId:h,layout:p,visualElement:g}=this.options;if(g&&!g.current&&g.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),f&&(p||h)&&(this.isLayoutDirty=!0),e){let y;const v=()=>this.root.updateBlockedByResize=!1;e(u,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=HP(v,250),fc.hasAnimatedSinceResize&&(fc.hasAnimatedSinceResize=!1,this.nodes.forEach(cx))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&g&&(h||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeTargetChanged:j,layout:N})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||g.getDefaultTransition()||yA,{onLayoutAnimationStart:_,onLayoutAnimationComplete:w}=g.getProps(),T=!this.targetLayout||!a1(this.targetLayout,N)||j,A=!v&&j;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||A||v&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,A);const R={...tp(b,"layout"),onPlay:_,onComplete:w};(g.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R)}else v||cx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=N})}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,Tn(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(hA),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&&l1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const y=this.path[g];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.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(lx);return}this.isUpdating||this.nodes.forEach(cA),this.isUpdating=!1,this.nodes.forEach(uA),this.nodes.forEach(sA),this.nodes.forEach(iA),this.clearAllSnapshots();const f=zn.now();kt.delta=Hn(0,1e3/60,f-kt.timestamp),kt.timestamp=f,kt.isProcessing=!0,Jd.update.process(kt),Jd.preRender.process(kt),Jd.render.process(kt),kt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(lA),this.sharedNodes.forEach(pA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ze.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ze.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=ct(),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=s(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&&!o1(this.projectionDelta),h=this.getTransformTemplate(),p=h?h(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;u&&(f||vs(this.latestValues)||g)&&(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)),xA(h),{animationId:this.root.animationId,measuredBox:f,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:f}=this.options;if(!f)return ct();const h=f.measureViewportBox();if(!(((u=this.scroll)===null||u===void 0?void 0:u.wasRoot)||this.path.some(vA))){const{scroll:g}=this.root;g&&(ji(h.x,g.offset.x),ji(h.y,g.offset.y))}return h}removeElementScroll(u){var f;const h=ct();if(dn(h,u),!((f=this.scroll)===null||f===void 0)&&f.wasRoot)return h;for(let p=0;p<this.path.length;p++){const g=this.path[p],{scroll:y,options:v}=g;g!==this.root&&y&&v.layoutScroll&&(y.wasRoot&&dn(h,u),ji(h.x,y.offset.x),ji(h.y,y.offset.y))}return h}applyTransform(u,f=!1){const h=ct();dn(h,u);for(let p=0;p<this.path.length;p++){const g=this.path[p];!f&&g.options.layoutScroll&&g.scroll&&g!==g.root&&Ni(h,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),vs(g.latestValues)&&Ni(h,g.latestValues)}return vs(this.latestValues)&&Ni(h,this.latestValues),h}removeTransform(u){const f=ct();dn(f,u);for(let h=0;h<this.path.length;h++){const p=this.path[h];if(!p.instance||!vs(p.latestValues))continue;nh(p.latestValues)&&p.updateSnapshot();const g=ct(),y=p.measurePageBox();dn(g,y),tx(f,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,g)}return vs(this.latestValues)&&tx(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!==kt.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:y,layoutId:v}=this.options;if(!(!this.layout||!(y||v))){if(this.resolvedRelativeTargetAt=kt.timestamp,!this.targetDelta&&!this.relativeTarget){const j=this.getClosestProjectingParent();j&&j.layout&&this.animationProgress!==1?(this.relativeParent=j,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ct(),this.relativeTargetOrigin=ct(),ra(this.relativeTargetOrigin,this.layout.layoutBox,j.layout.layoutBox),dn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ct(),this.targetWithTransforms=ct()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),SP(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):dn(this.target,this.layout.layoutBox),e1(this.target,this.targetDelta)):dn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const j=this.getClosestProjectingParent();j&&!!j.resumingFrom==!!this.resumingFrom&&!j.options.layoutScroll&&j.target&&this.animationProgress!==1?(this.relativeParent=j,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ct(),this.relativeTargetOrigin=ct(),ra(this.relativeTargetOrigin,this.target,j.target),dn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Go&&bs.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||nh(this.parent.latestValues)||Zw(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===kt.timestamp&&(p=!1),p)return;const{layout:g,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||y))return;dn(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,j=this.treeScale.y;AP(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=ct());const{target:N}=f;if(!N){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(J0(this.prevProjectionDelta.x,this.projectionDelta.x),J0(this.prevProjectionDelta.y,this.projectionDelta.y)),na(this.projectionDelta,this.layoutCorrected,N,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==j||!ox(this.projectionDelta.x,this.prevProjectionDelta.x)||!ox(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",N)),Go&&bs.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=ki(),this.projectionDelta=ki(),this.projectionDeltaWithTransform=ki()}setAnimationOrigin(u,f=!1){const h=this.snapshot,p=h?h.latestValues:{},g={...this.latestValues},y=ki();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const v=ct(),j=h?h.source:void 0,N=this.layout?this.layout.source:void 0,b=j!==N,_=this.getStack(),w=!_||_.members.length<=1,T=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(gA));this.animationProgress=0;let A;this.mixTargetDelta=R=>{const I=R/1e3;ux(y.x,u.x,I),ux(y.y,u.y,I),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ra(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mA(this.relativeTarget,this.relativeTargetOrigin,v,I),A&&ZP(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=ct()),dn(A,this.relativeTarget)),b&&(this.animationValues=g,KP(g,p,this.latestValues,I,T,w)),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&&(Tn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ze.update(()=>{fc.hasAnimatedSinceResize=!0,this.currentAnimation=VP(0,ax,{...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(ax),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:f,target:h,layout:p,latestValues:g}=u;if(!(!f||!h||!p)){if(this!==u&&this.layout&&p&&u1(this.options.animationType,this.layout.layoutBox,p.layoutBox)){h=this.target||ct();const y=rn(this.layout.layoutBox.x);h.x.min=u.target.x.min,h.x.max=h.x.min+y;const v=rn(this.layout.layoutBox.y);h.y.min=u.target.y.min,h.y.max=h.y.min+v}dn(f,h),Ni(f,g),na(this.projectionDeltaWithTransform,this.layoutCorrected,f,g)}}registerSharedNode(u,f){this.sharedNodes.has(u)||this.sharedNodes.set(u,new eA),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&&cf("z",u,p,this.animationValues);for(let g=0;g<lf.length;g++)cf(`rotate${lf[g]}`,u,p,this.animationValues),cf(`skew${lf[g]}`,u,p,this.animationValues);u.render();for(const g in p)u.setStaticValue(g,p[g]),this.animationValues&&(this.animationValues[g]=p[g]);u.scheduleRender()}getProjectionStyles(u){var f,h;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nA;const p={visibility:""},g=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=uc(u==null?void 0:u.pointerEvents)||"",p.transform=g?g(this.latestValues,""):"none",p;const y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=uc(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!vs(this.latestValues)&&(b.transform=g?g({},""):"none",this.hasProjected=!1),b}const v=y.animationValues||y.latestValues;this.applyTransformsToTarget(),p.transform=tA(this.projectionDeltaWithTransform,this.treeScale,v),g&&(p.transform=g(v,p.transform));const{x:j,y:N}=this.projectionDelta;p.transformOrigin=`${j.origin*100}% ${N.origin*100}% 0`,y.animationValues?p.opacity=y===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=y===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const b in _c){if(v[b]===void 0)continue;const{correct:_,applyTo:w}=_c[b],T=p.transform==="none"?v[b]:_(v[b],y);if(w){const A=w.length;for(let R=0;R<A;R++)p[w[R]]=T}else p[b]=T}return this.options.layoutId&&(p.pointerEvents=y===this?uc(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(lx),this.root.sharedNodes.clear()}}}function sA(e){e.updateLayout()}function iA(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:s,measuredBox:o}=e.layout,{animationType:c}=e.options,u=n.source!==e.layout.source;c==="size"?fn(y=>{const v=u?n.measuredBox[y]:n.layoutBox[y],j=rn(v);v.min=s[y].min,v.max=v.min+j}):u1(c,n.layoutBox,s)&&fn(y=>{const v=u?n.measuredBox[y]:n.layoutBox[y],j=rn(s[y]);v.max=v.min+j,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+j)});const f=ki();na(f,s,n.layoutBox);const h=ki();u?na(h,e.applyTransform(o,!0),n.measuredBox):na(h,s,n.layoutBox);const p=!o1(f);let g=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:v,layout:j}=y;if(v&&j){const N=ct();ra(N,n.layoutBox,v.layoutBox);const b=ct();ra(b,s,j.layoutBox),a1(N,b)||(g=!0),y.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=N,e.relativeParent=y)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:h,layoutDelta:f,hasLayoutChanged:p,hasRelativeTargetChanged:g})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function oA(e){Go&&bs.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 aA(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function lA(e){e.clearSnapshot()}function lx(e){e.clearMeasurements()}function cA(e){e.isLayoutDirty=!1}function uA(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function cx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function dA(e){e.resolveTargetDelta()}function fA(e){e.calcProjection()}function hA(e){e.resetSkewAndRotation()}function pA(e){e.removeLeadSnapshot()}function ux(e,t,n){e.translate=nt(t.translate,0,n),e.scale=nt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function dx(e,t,n,s){e.min=nt(t.min,n.min,s),e.max=nt(t.max,n.max,s)}function mA(e,t,n,s){dx(e.x,t.x,n.x,s),dx(e.y,t.y,n.y,s)}function gA(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const yA={duration:.45,ease:[.4,0,.1,1]},fx=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),hx=fx("applewebkit/")&&!fx("chrome/")?Math.round:zt;function px(e){e.min=hx(e.min),e.max=hx(e.max)}function xA(e){px(e.x),px(e.y)}function u1(e,t,n){return e==="position"||e==="preserve-aspect"&&!wP(ix(t),ix(n),.2)}function vA(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const bA=c1({attachResizeListener:(e,t)=>ma(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),uf={current:void 0},d1=c1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!uf.current){const e=new bA({});e.mount(window),e.setOptions({layoutScroll:!0}),uf.current=e}return uf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),wA={pan:{Feature:IP},drag:{Feature:DP,ProjectionNode:d1,MeasureLayout:r1}};function mx(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,c=s[o];c&&ze.postRender(()=>c(t,Ta(t)))}class SA extends ns{mount(){const{current:t}=this.node;t&&(this.unmount=kC(t,n=>(mx(this.node,n,"Start"),s=>mx(this.node,s,"End"))))}unmount(){}}class kA extends ns{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=Ca(ma(this.node.current,"focus",()=>this.onFocus()),ma(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function gx(e,t,n){const{props:s}=e;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),c=s[o];c&&ze.postRender(()=>c(t,Ta(t)))}class jA extends ns{mount(){const{current:t}=this.node;t&&(this.unmount=EC(t,n=>(gx(this.node,n,"Start"),(s,{success:o})=>gx(this.node,s,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const sh=new WeakMap,df=new WeakMap,NA=e=>{const t=sh.get(e.target);t&&t(e)},_A=e=>{e.forEach(NA)};function EA({root:e,...t}){const n=e||document;df.has(n)||df.set(n,{});const s=df.get(n),o=JSON.stringify(t);return s[o]||(s[o]=new IntersectionObserver(_A,{root:e,...t})),s[o]}function CA(e,t,n){const s=EA(t);return sh.set(e,n),s.observe(e),()=>{sh.delete(e),s.unobserve(e)}}const TA={some:0,all:1};class PA extends ns{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:o="some",once:c}=t,u={root:n?n.current:void 0,rootMargin:s,threshold:typeof o=="number"?o:TA[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:g,onViewportLeave:y}=this.node.getProps(),v=p?g:y;v&&v(h)};return CA(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(AA(t,n))&&this.startObserver()}unmount(){}}function AA({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const RA={inView:{Feature:PA},tap:{Feature:jA},focus:{Feature:kA},hover:{Feature:SA}},OA={layout:{ProjectionNode:d1,MeasureLayout:r1}},ih={current:null},f1={current:!1};function MA(){if(f1.current=!0,!!Uh)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ih.current=e.matches;e.addListener(t),t()}else ih.current=!1}const LA=[...Dw,Lt,Zr],DA=e=>LA.find(Lw(e)),yx=new WeakMap;function IA(e,t,n){for(const s in t){const o=t[s],c=n[s];if(Dt(o))e.addValue(s,o);else if(Dt(c))e.addValue(s,Un(o,{owner:e}));else if(c!==o)if(e.hasValue(s)){const u=e.getValue(s);u.liveStyle===!0?u.jump(o):u.hasAnimated||u.set(o)}else{const u=e.getStaticValue(s);e.addValue(s,Un(u!==void 0?u:o,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const xx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class FA{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,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=pp,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 j=zn.now();this.renderScheduledAt<j&&(this.renderScheduledAt=j,ze.render(this.render,!1,!0))};const{latestValues:h,renderState:p,onUpdate:g}=u;this.onUpdate=g,this.latestValues=h,this.baseTarget={...h},this.initialValues=n.initial?{...h}:{},this.renderState=p,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=f,this.blockInitialAnimation=!!c,this.isControllingVariants=Hc(n),this.isVariantNode=$b(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:y,...v}=this.scrapeMotionValuesFromProps(n,{},this);for(const j in v){const N=v[j];h[j]!==void 0&&Dt(N)&&N.set(h[j],!1)}}mount(t){this.current=t,yx.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.forEach((n,s)=>this.bindToMotionValue(s,n)),f1.current||MA(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ih.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){yx.delete(this.current),this.projection&&this.projection.unmount(),Tn(this.notifyUpdate),Tn(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 s=Hs.has(t),o=n.on("change",f=>{this.latestValues[t]=f,this.props.onUpdate&&ze.preRender(this.notifyUpdate),s&&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 Bi){const n=Bi[t];if(!n)continue;const{isEnabled:s,Feature:o}=n;if(!this.features[t]&&o&&s(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):ct()}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 s=0;s<xx.length;s++){const o=xx[s];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=IA(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 s=this.values.get(t);n!==s&&(s&&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 s=this.values.get(t);return s===void 0&&n!==void 0&&(s=Un(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){var s;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Ow(o)||jw(o))?o=parseFloat(o):!DA(o)&&Zr.test(n)&&(o=Pw(t,n)),this.setBaseTarget(t,Dt(o)?o.get():o)),Dt(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:s}=this.props;let o;if(typeof s=="string"||typeof s=="object"){const u=Kh(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);u&&(o=u[t])}if(s&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,t);return c!==void 0&&!Dt(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 ap),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class h1 extends FA{constructor(){super(...arguments),this.KeyframeResolver=Iw}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:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Dt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function BA(e){return window.getComputedStyle(e)}class UA extends h1{constructor(){super(...arguments),this.type="html",this.renderInstance=Jb}readValueFromInstance(t,n){if(Hs.has(n)){const s=hp(n);return s&&s.default||0}else{const s=BA(t),o=(Qb(n)?s.getPropertyValue(n):s[n])||0;
330return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return t1(t,n)}build(t,n,s){Yh(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return ep(t,n,s)}}class VA extends h1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ct}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Hs.has(n)){const s=hp(n);return s&&s.default||0}return n=Zb.has(n)?n:Wh(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return nw(t,n,s)}build(t,n,s){Xh(t,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,s,o){ew(t,n,s,o)}mount(t){this.isSVGTag=Zh(t.tagName),super.mount(t)}}const zA=(e,t)=>qh(e)?new VA(t):new UA(t,{allowProjection:e!==E.Fragment}),$A=xC({...fP,...RA,...wA,...OA},zA),K=OE($A);function p1(e,t){let n;const s=()=>{const{currentTime:o}=t,u=(o===null?0:o.value)/100;n!==u&&e(u),n=u};return ze.update(s,!0),()=>Tn(s)}const hc=new WeakMap;let Ir;function WA(e,t){if(t){const{inlineSize:n,blockSize:s}=t[0];return{width:n,height:s}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function HA({target:e,contentRect:t,borderBoxSize:n}){var s;(s=hc.get(e))===null||s===void 0||s.forEach(o=>{o({target:e,contentSize:t,get size(){return WA(e,n)}})})}function qA(e){e.forEach(HA)}function KA(){typeof ResizeObserver>"u"||(Ir=new ResizeObserver(qA))}function GA(e,t){Ir||KA();const n=dw(e);return n.forEach(s=>{let o=hc.get(s);o||(o=new Set,hc.set(s,o)),o.add(t),Ir==null||Ir.observe(s)}),()=>{n.forEach(s=>{const o=hc.get(s);o==null||o.delete(t),o!=null&&o.size||Ir==null||Ir.unobserve(s)})}}const pc=new Set;let sa;function QA(){sa=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};pc.forEach(n=>n(t))},window.addEventListener("resize",sa)}function YA(e){return pc.add(e),sa||QA(),()=>{pc.delete(e),!pc.size&&sa&&(sa=void 0)}}function XA(e,t){return typeof e=="function"?YA(e):GA(e,t)}const JA=50,vx=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),ZA=()=>({time:0,x:vx(),y:vx()}),e4={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function bx(e,t,n,s){const o=n[t],{length:c,position:u}=e4[t],f=o.current,h=n.time;o.current=e[`scroll${u}`],o.scrollLength=e[`scroll${c}`]-e[`client${c}`],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=Fs(0,o.scrollLength,o.current);const p=s-h;o.velocity=p>JA?0:lp(o.current-f,p)}function t4(e,t,n){bx(e,"x",t,n),bx(e,"y",t,n),t.time=n}function n4(e,t){const n={x:0,y:0};let s=e;for(;s&&s!==t;)if(s instanceof HTMLElement)n.x+=s.offsetLeft,n.y+=s.offsetTop,s=s.offsetParent;else if(s.tagName==="svg"){const o=s.getBoundingClientRect();s=s.parentElement;const c=s.getBoundingClientRect();n.x+=o.left-c.left,n.y+=o.top-c.top}else if(s instanceof SVGGraphicsElement){const{x:o,y:c}=s.getBBox();n.x+=o,n.y+=c;let u=null,f=s.parentNode;for(;!u;)f.tagName==="svg"&&(u=f),f=s.parentNode;s=u}else break;return n}const oh={start:0,center:.5,end:1};function wx(e,t,n=0){let s=0;if(e in oh&&(e=oh[e]),typeof e=="string"){const o=parseFloat(e);e.endsWith("px")?s=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?s=o/100*document.documentElement.clientWidth:e.endsWith("vh")?s=o/100*document.documentElement.clientHeight:e=o}return typeof e=="number"&&(s=t*e),n+s}const r4=[0,0];function s4(e,t,n,s){let o=Array.isArray(e)?e:r4,c=0,u=0;return typeof e=="number"?o=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,oh[e]?e:"0"]),c=wx(o[0],n,s),u=wx(o[1],t),c-u}const i4={All:[[0,0],[1,1]]},o4={x:0,y:0};function a4(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function l4(e,t,n){const{offset:s=i4.All}=n,{target:o=e,axis:c="y"}=n,u=c==="y"?"height":"width",f=o!==e?n4(o,e):o4,h=o===e?{width:e.scrollWidth,height:e.scrollHeight}:a4(o),p={width:e.clientWidth,height:e.clientHeight};t[c].offset.length=0;let g=!t[c].interpolate;const y=s.length;for(let v=0;v<y;v++){const j=s4(s[v],p[u],h[u],f[c]);
330!g&&j!==t[c].interpolatorOffsets[v]&&(g=!0),t[c].offset[v]=j}g&&(t[c].interpolate=gp(t[c].offset,Ww(s),{clamp:!1}),t[c].interpolatorOffsets=[...t[c].offset]),t[c].progress=Hn(0,1,t[c].interpolate(t[c].current))}function c4(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let s=t;for(;s&&s!==e;)n.x.targetOffset+=s.offsetLeft,n.y.targetOffset+=s.offsetTop,s=s.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function u4(e,t,n,s={}){return{measure:()=>c4(e,s.target,n),update:o=>{t4(e,n,o),(s.offset||s.target)&&l4(e,n,s)},notify:()=>t(n)}}const Vo=new WeakMap,Sx=new WeakMap,ff=new WeakMap,kx=e=>e===document.documentElement?window:e;function vp(e,{container:t=document.documentElement,...n}={}){let s=ff.get(t);s||(s=new Set,ff.set(t,s));const o=ZA(),c=u4(t,e,o,n);if(s.add(c),!Vo.has(t)){const f=()=>{for(const v of s)v.measure()},h=()=>{for(const v of s)v.update(kt.timestamp)},p=()=>{for(const v of s)v.notify()},g=()=>{ze.read(f,!1,!0),ze.read(h,!1,!0),ze.update(p,!1,!0)};Vo.set(t,g);const y=kx(t);window.addEventListener("resize",g,{passive:!0}),t!==document.documentElement&&Sx.set(t,XA(t,g)),y.addEventListener("scroll",g,{passive:!0})}const u=Vo.get(t);return ze.read(u,!1,!0),()=>{var f;Tn(u);const h=ff.get(t);if(!h||(h.delete(c),h.size))return;const p=Vo.get(t);Vo.delete(t),p&&(kx(t).removeEventListener("scroll",p),(f=Sx.get(t))===null||f===void 0||f(),window.removeEventListener("resize",p))}}function d4({source:e,container:t,axis:n="y"}){e&&(t=e);const s={value:0},o=vp(c=>{s.value=c[n].progress*100},{container:t,axis:n});return{currentTime:s,cancel:o}}const hf=new Map;function m1({source:e,container:t=document.documentElement,axis:n="y"}={}){e&&(t=e),hf.has(t)||hf.set(t,{});const s=hf.get(t);return s[n]||(s[n]=iw()?new ScrollTimeline({source:t,axis:n}):d4({source:t,axis:n})),s[n]}function f4(e){return e.length===2}function g1(e){return e&&(e.target||e.offset)}function h4(e,t){return f4(e)||g1(t)?vp(n=>{e(n[t.axis].progress,n)},t):p1(e,m1(t))}function p4(e,t){if(e.flatten(),g1(t))return e.pause(),vp(n=>{e.time=e.duration*n[t.axis].progress},t);{const n=m1(t);return e.attachTimeline?e.attachTimeline(n,s=>(s.pause(),p1(o=>{s.time=s.duration*o},n))):zt}}function m4(e,{axis:t="y",...n}={}){const s={axis:t,...n};return typeof e=="function"?h4(e,s):p4(e,s)}function jx(e,t){NE(!!(!t||t.current))}const g4=()=>({scrollX:Un(0),scrollY:Un(0),scrollXProgress:Un(0),scrollYProgress:Un(0)});function y4({container:e,target:t,layoutEffect:n=!0,...s}={}){const o=Hi(g4);return(n?zc:E.useEffect)(()=>(jx("target",t),jx("container",e),m4((u,{x:f,y:h})=>{o.scrollX.set(f.current),o.scrollXProgress.set(f.progress),o.scrollY.set(h.current),o.scrollYProgress.set(h.progress)},{...s,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0})),[e,t,JSON.stringify(s.offset)]),o}function x4(e){const t=Hi(()=>Un(e)),{isStatic:n}=E.useContext(Vc);if(n){const[,s]=E.useState(e);E.useEffect(()=>t.on("change",s),[])}return t}function y1(e,t){const n=x4(t()),s=()=>n.set(t());return s(),zc(()=>{const o=()=>ze.preRender(s,!1,!0),c=e.map(u=>u.on("change",o));return()=>{c.forEach(u=>u()),Tn(s)}}),n}const v4=e=>e&&typeof e=="object"&&e.mix,b4=e=>v4(e)?e.mix:void 0;function w4(...e){const t=!Array.isArray(e[0]),n=t?0:-1,s=e[0+n],o=e[1+n],c=e[2+n],u=e[3+n],f=gp(o,c,{mixer:b4(c[0]),...u});return t?f(s):f}function S4(e){Zo.current=[],e();const t=y1(Zo.current,e);return Zo.current=void 0,t}function k4(e,t,n,s){if(typeof e=="function")return S4(e);const o=typeof t=="function"?t:w4(t,n,s);return Array.isArray(e)?Nx(e,o):Nx([e],([c])=>o(c))}function Nx(e,t){const n=Hi(()=>[]);return y1(e,()=>{n.length=0;const s=e.length;for(let o=0;o<s;o++)n[o]=e[o].get();return t(n)})}function j4(){return l.jsxs("svg",{viewBox:"0 0 60 200",width:"60",height:"200",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("rect",{x:"24",y:"80",width:"12",height:"115",rx:"6",fill:"#8B4513"}),l.jsx("rect",{x:"26",y:"60",width:"8",height:"30",rx:"3",fill:"#C0A080"}),l.jsx("rect",{x:"10",y:"5",width:"40",height:"62",rx:"8",fill:"#D4D4D4",stroke:"#A0A0A0",strokeWidth:"1.5"}),l.jsx("ellipse",{cx:"20",cy:"20",rx:"4",ry:"5",fill:"#B0B0B0"}),l.jsx("ellipse",{cx:"40",cy:"20",rx:"4",ry:"5",fill:"#B0B0B0"}),l.jsx("ellipse",{cx:"20",cy:"42",rx:"4",ry:"5",fill:"#B0B0B0"}),l.jsx("ellipse",{cx:"40",cy:"42",rx:"4",ry:"5",fill:"#B0B0B0"}),l.jsx("ellipse",{cx:"30",cy:"58",rx:"4",ry:"4",fill:"#B0B0B0"}),l.jsx("rect",{x:"14",y:"8",width:"4",height:"50",rx:"2",fill:"white",opacity:"0.4"})]})}function N4({children:e}){const t=ts();return l.jsx(fr,{mode:"wait",children:l.jsxs(K.div,{children:[l.jsx(K.div,{initial:{opacity:0,y:12}
vendor: 4,298 bytes, line 330
330,animate:{opacity:1,y:0},exit:{opacity:0,y:-12},transition:{duration:.6,ease:"easeInOut"},children:e}),l.jsxs(K.div,{className:"fixed inset-0 z-[200] pointer-events-none flex items-center justify-center overflow-hidden",initial:{x:"-110vw"},animate:{x:"110vw"},transition:{duration:1,ease:"easeInOut"},children:[l.jsx(K.div,{className:"absolute inset-y-0 w-[60vw]",style:{background:"hsl(130,28%,35%)",left:"-10vw"}}),l.jsx(K.div,{className:"absolute",style:{left:"calc(50% - 30px)",top:"50%",transform:"translateY(-50%) rotate(90deg)"},children:l.jsx(j4,{})}),l.jsx(K.div,{className:"absolute inset-y-0 w-[30vw] opacity-30",style:{background:"linear-gradient(to right, hsl(42,35%,93%), transparent)",left:"30vw"}})]})]},t.pathname)})}function x1(e,t){return function(){return e.apply(t,arguments)}}const{toString:_4}=Object.prototype,{getPrototypeOf:Vi}=Object,{iterator:Pa,toStringTag:v1}=Symbol,Rc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ga=(e,t)=>{let n=e;const s=[];for(;n!=null&&n!==Object.prototype;){if(s.indexOf(n)!==-1)return!1;if(s.push(n),Rc(n,t))return!0;n=Vi(n)}return!1},E4=(e,t)=>e!=null&&ga(e,t)?e[t]:void 0,bp=(e=>t=>{const n=_4.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Pn=e=>(e=e.toLowerCase(),t=>bp(t)===e),Gc=e=>t=>typeof t===e,{isArray:Bs}=Array,zi=Gc("undefined");function Gi(e){return e!==null&&!zi(e)&&e.constructor!==null&&!zi(e.constructor)&&Xt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const b1=Pn("ArrayBuffer");function C4(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&b1(e.buffer),t}const T4=Gc("string"),Xt=Gc("function"),w1=Gc("number"),Qi=e=>e!==null&&typeof e=="object",P4=e=>e===!0||e===!1,mc=e=>{if(!Qi(e))return!1;const t=Vi(e);return(t===null||t===Object.prototype||Vi(t)===null)&&!ga(e,v1)&&!ga(e,Pa)},A4=e=>{if(!Qi(e)||Gi(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},R4=Pn("Date"),O4=Pn("File"),M4=e=>!!(e&&typeof e.uri<"u"),L4=e=>e&&typeof e.getParts<"u",D4=Pn("Blob"),I4=Pn("FileList"),F4=e=>Qi(e)&&Xt(e.pipe);function B4(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const _x=B4(),Ex=typeof _x.FormData<"u"?_x.FormData:void 0,U4=e=>{if(!e)return!1;if(Ex&&e instanceof Ex)return!0;const t=Vi(e);if(!t||t===Object.prototype||!Xt(e.append))return!1;const n=bp(e);return n==="formdata"||n==="object"&&Xt(e.toString)&&e.toString()==="[object FormData]"},V4=Pn("URLSearchParams"),[z4,$4,W4,H4]=["ReadableStream","Request","Response","Headers"].map(Pn),q4=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Aa(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),Bs(e))for(s=0,o=e.length;s<o;s++)t.call(null,e[s],s,e);else{if(Gi(e))return;const c=n?Object.getOwnPropertyNames(e):Object.keys(e),u=c.length;let f;for(s=0;s<u;s++)f=c[s],t.call(null,e[f],f,e)}}function S1(e,t){if(Gi(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s=n.length,o;for(;s-- >0;)if(o=n[s],t===o.toLowerCase())return o;return null}const js=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,k1=e=>!zi(e)&&e!==js;function ah(...e){const{caseless:t,skipUndefined:n}=k1(this)&&this||{},s={},o=(c,u)=>{if(u==="__proto__"||u==="constructor"||u==="prototype")return;const f=t&&typeof u=="string"&&S1(s,u)||u,h=Rc(s,f)?s[f]:void 0;mc(h)&&mc(c)?s[f]=ah(h,c):mc(c)?s[f]=ah({},c):Bs(c)?s[f]=c.slice():(!n||!zi(c))&&(s[f]=c)};for(let c=0,u=e.length;c<u;c++){const f=e[c];if(!f||Gi(f)||(Aa(f,o),typeof f!="object"||Bs(f)))continue;const h=Object.getOwnPropertySymbols(f);for(let p=0;p<h.length;p++){const g=h[p];sR.call(f,g)&&o(f[g],g)}}return s}const K4=(e,t,n,{allOwnKeys:s}={})=>(Aa(t,(o,c)=>{n&&Xt(o)?Object.defineProperty(e,c,{__proto__:null,value:x1(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,c,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),e),G4=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Q4=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,
vendor: 4,523 bytes, lines 330-331
330configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Y4=(e,t,n,s)=>{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],(!s||s(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},X4=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},J4=e=>{if(!e)return null;if(Bs(e))return e;let t=e.length;if(!w1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Z4=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Vi(Uint8Array)),eR=(e,t)=>{const s=(e&&e[Pa]).call(e);let o;for(;(o=s.next())&&!o.done;){const c=o.value;t.call(e,c[0],c[1])}},tR=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},nR=Pn("HTMLFormElement"),rR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),{propertyIsEnumerable:sR}=Object.prototype,iR=Pn("RegExp"),j1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Aa(n,(o,c)=>{let u;(u=t(o,c,e))!==!1&&(s[c]=u||o)}),Object.defineProperties(e,s)},oR=e=>{j1(e,(t,n)=>{if(Xt(e)&&["arguments","caller","callee"].includes(n))return!1;const s=e[n];if(Xt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},aR=(e,t)=>{const n={},s=o=>{o.forEach(c=>{n[c]=!0})};return Bs(e)?s(e):s(String(e).split(t)),n},lR=()=>{},cR=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function uR(e){return!!(e&&Xt(e.append)&&e[v1]==="FormData"&&e[Pa])}const dR=e=>{const t=new WeakSet,n=s=>{if(Qi(s)){if(t.has(s))return;if(Gi(s))return s;if(!("toJSON"in s)){t.add(s);const o=Bs(s)?[]:{};return Aa(s,(c,u)=>{const f=n(c);!zi(f)&&(o[u]=f)}),t.delete(s),o}}return s};return n(e)},fR=Pn("AsyncFunction"),hR=e=>e&&(Qi(e)||Xt(e))&&Xt(e.then)&&Xt(e.catch),N1=((e,t)=>e?setImmediate:t?((n,s)=>(js.addEventListener("message",({source:o,data:c})=>{o===js&&c===n&&s.length&&s.shift()()},!1),o=>{s.push(o),js.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Xt(js.postMessage)),pR=typeof queueMicrotask<"u"?queueMicrotask.bind(js):typeof process<"u"&&process.nextTick||N1,_1=e=>e!=null&&Xt(e[Pa]),mR=e=>e!=null&&ga(e,Pa)&&_1(e),D={isArray:Bs,isArrayBuffer:b1,isBuffer:Gi,isFormData:U4,isArrayBufferView:C4,isString:T4,isNumber:w1,isBoolean:P4,isObject:Qi,isPlainObject:mc,isEmptyObject:A4,isReadableStream:z4,isRequest:$4,isResponse:W4,isHeaders:H4,isUndefined:zi,isDate:R4,isFile:O4,isReactNativeBlob:M4,isReactNative:L4,isBlob:D4,isRegExp:iR,isFunction:Xt,isStream:F4,isURLSearchParams:V4,isTypedArray:Z4,isFileList:I4,forEach:Aa,merge:ah,extend:K4,trim:q4,stripBOM:G4,inherits:Q4,toFlatObject:Y4,kindOf:bp,kindOfTest:Pn,endsWith:X4,toArray:J4,forEachEntry:eR,matchAll:tR,isHTMLForm:nR,hasOwnProperty:Rc,hasOwnProp:Rc,hasOwnInPrototypeChain:ga,getSafeProp:E4,reduceDescriptors:j1,freezeMethods:oR,toObjectSet:aR,toCamelCase:rR,noop:lR,toFiniteNumber:cR,findKey:S1,global:js,isContextDefined:k1,isSpecCompliantForm:uR,toJSONObject:dR,isAsyncFn:fR,isThenable:hR,setImmediate:N1,asap:pR,isIterable:_1,isSafeIterable:mR},gR=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"]),yR=e=>{const t={};let n,s,o;return e&&e.split(`
331`).forEach(function(u){o=u.indexOf(":"),n=u.substring(0,o).trim().toLowerCase(),s=u.substring(o+1).trim(),!(!n||t[n]&&gR[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t};function xR(e){let t=0,n=e.length;for(;t<n;){const s=e.charCodeAt(t);if(s!==9&&s!==32)break;t+=1}for(;n>t;){const s=e.charCodeAt(n-1);if(s!==9&&s!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const vR=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),bR=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function wp(e,t){return D.isArray(e)?e.map(n=>wp(n,t)):xR(String(e).replace(t,""))}const wR=e=>wp(e,vR),SR=e=>wp(e,bR);function E1(e){const t=Object.create(null);return D.forEach(e.toJSON(),(n,s)=>{t[s]=SR(n)}),t}const Cx=Symbol("internals");function zo(e){return e&&String(e).trim().toLowerCase()}function gc(e){return e===!1||e==null?e:D.isArray(e)?e.map(gc):wR(String(e))}function kR(e){const t=Object.create(null),n=/([^\s,;
331=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const jR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function pf(e,t,n,s,o){if(D.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!D.isString(t)){if(D.isString(s))return t.indexOf(s)!==-1;if(D.isRegExp(s))return s.test(t)}}function NR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function _R(e,t){const n=D.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{__proto__:null,value:function(o,c,u){return this[s].call(this,t,o,c,u)},configurable:!0})})}let It=class{constructor(t){t&&this.set(t)}set(t,n,s){const o=this;function c(f,h,p){const g=zo(h);if(!g)return;const y=D.findKey(o,g);(!y||o[y]===void 0||p===!0||p===void 0&&o[y]!==!1)&&(o[y||h]=gc(f))}const u=(f,h)=>D.forEach(f,(p,g)=>c(p,g,h));if(D.isPlainObject(t)||t instanceof this.constructor)u(t,n);else if(D.isString(t)&&(t=t.trim())&&!jR(t))u(yR(t),n);else if(D.isObject(t)&&D.isSafeIterable(t)){let f=Object.create(null),h,p;for(const g of t){if(!D.isArray(g))throw new TypeError("Object iterator must return a key-value pair");p=g[0],D.hasOwnProp(f,p)?(h=f[p],f[p]=D.isArray(h)?[...h,g[1]]:[h,g[1]]):f[p]=g[1]}u(f,n)}else t!=null&&c(n,t,s);return this}get(t,n){if(t=zo(t),t){const s=D.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return kR(o);if(D.isFunction(n))return n.call(this,o,s);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 s=D.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||pf(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let o=!1;function c(u){if(u=zo(u),u){const f=D.findKey(s,u);f&&(!n||pf(s,s[f],f,n))&&(delete s[f],o=!0)}}return D.isArray(t)?t.forEach(c):c(t),o}clear(t){const n=Object.keys(this);let s=n.length,o=!1;for(;s--;){const c=n[s];(!t||pf(this,this[c],c,t,!0))&&(delete this[c],o=!0)}return o}normalize(t){const n=this,s={};return D.forEach(this,(o,c)=>{const u=D.findKey(s,c);if(u){n[u]=gc(o),delete n[c];return}const f=t?NR(c):String(c).trim();f!==c&&delete n[c],n[f]=gc(o),s[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return D.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&D.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
332`)}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 s=new this(t);return n.forEach(o=>s.set(o)),s}static accessor(t){const s=(this[Cx]=this[Cx]={accessors:{}}).accessors,o=this.prototype;function c(u){const f=zo(u);s[f]||(_R(o,u),s[f]=!0)}return D.isArray(t)?t.forEach(c):c(t),this}};It.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);D.reduceDescriptors(It.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});D.freezeMethods(It);const ER="[REDACTED ****]";function CR(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 TR(e,t){const n=new Set(t.map(c=>String(c).toLowerCase())),s=[],o=c=>{if(c===null||typeof c!="object"||D.isBuffer(c))return c;if(s.indexOf(c)!==-1)return;c instanceof It&&(c=c.toJSON()),s.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)&&CR(c))return s.pop(),c;u=Object.create(null);for(const[f,h]of Object.entries(c)){const p=n.has(f.toLowerCase())?ER:o(h);D.isUndefined(p)||(u[f]=p)}}return s.pop(),u};return o(e)}let se=class C1 extends Error{static from(t,n,s,o,c,u){const f=new C1(t.message,n||t.code,s,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,s,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),s&&(this.config=s),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,s=D.isArray(n)&&n.length>0?TR(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:s,code:this.code,status:this.status}}};se.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";se.ERR_BAD_OPTION="ERR_BAD_OPTION";se.ECONNABORTED="ECONNABORTED";se.ETIMEDOUT="ETIMEDOUT";se.ECONNREFUSED="ECONNREFUSED";
vendor: 4,317 bytes, line 332
332se.ERR_NETWORK="ERR_NETWORK";se.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";se.ERR_DEPRECATED="ERR_DEPRECATED";se.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";se.ERR_BAD_REQUEST="ERR_BAD_REQUEST";se.ERR_CANCELED="ERR_CANCELED";se.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";se.ERR_INVALID_URL="ERR_INVALID_URL";se.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const PR=null,T1=100;function lh(e){return D.isPlainObject(e)||D.isArray(e)}function P1(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function mf(e,t,n){return e?e.concat(t).map(function(o,c){return o=P1(o),!n&&c?"["+o+"]":o}).join(n?".":""):t}function AR(e){return D.isArray(e)&&!e.some(lh)}const RR=D.toFlatObject(D,{},null,function(t){return/^is[A-Z]/.test(t)});function Qc(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(T,A){return!D.isUndefined(A[T])});const s=n.metaTokens,o=n.visitor||N,c=n.dots,u=n.indexes,f=n.Blob||typeof Blob<"u"&&Blob,h=n.maxDepth===void 0?T1:n.maxDepth,p=f&&D.isSpecCompliantForm(t),g=[];if(!D.isFunction(o))throw new TypeError("visitor must be a function");function y(w){if(w===null)return"";if(D.isDate(w))return w.toISOString();if(D.isBoolean(w))return w.toString();if(!p&&D.isBlob(w))throw new se("Blob is not supported. Use a Buffer instead.");if(D.isArrayBuffer(w)||D.isTypedArray(w)){if(p&&typeof f=="function")return new f([w]);if(typeof Buffer<"u")return Buffer.from(w);throw new se("Blob is not supported. Use a Buffer instead.",se.ERR_NOT_SUPPORT)}return w}function v(w){if(w>h)throw new se("Object is too deeply nested ("+w+" levels). Max depth: "+h,se.ERR_FORM_DATA_DEPTH_EXCEEDED)}function j(w,T){if(h===1/0)return JSON.stringify(w);const A=[];return JSON.stringify(w,function(I,V){if(!D.isObject(V))return V;for(;A.length&&A[A.length-1]!==this;)A.pop();return A.push(V),v(T+A.length-1),V})}function N(w,T,A){let R=w;if(D.isReactNative(t)&&D.isReactNativeBlob(w))return t.append(mf(A,T,c),y(w)),!1;if(w&&!A&&typeof w=="object"){if(D.endsWith(T,"{}"))T=s?T:T.slice(0,-2),w=j(w,1);else if(D.isArray(w)&&AR(w)||(D.isFileList(w)||D.endsWith(T,"[]"))&&(R=D.toArray(w)))return T=P1(T),R.forEach(function(V,Z){!(D.isUndefined(V)||V===null)&&t.append(u===!0?mf([T],Z,c):u===null?T:T+"[]",y(V))}),!1}return lh(w)?!0:(t.append(mf(A,T,c),y(w)),!1)}const b=Object.assign(RR,{defaultVisitor:N,convertValue:y,isVisitable:lh});function _(w,T,A=0){if(!D.isUndefined(w)){if(v(A),g.indexOf(w)!==-1)throw new Error("Circular reference detected in "+T.join("."));g.push(w),D.forEach(w,function(I,V){(!(D.isUndefined(I)||I===null)&&o.call(t,I,D.isString(V)?V.trim():V,T,b))===!0&&_(I,T?T.concat(V):[V],A+1)}),g.pop()}}if(!D.isObject(e))throw new TypeError("data must be an object");return _(e),t}function Tx(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(s){return t[s]})}function Sp(e,t){this._pairs=[],e&&Qc(e,this,t)}const A1=Sp.prototype;A1.append=function(t,n){this._pairs.push([t,n])};A1.toString=function(t){const n=t?s=>t.call(this,s,Tx):Tx;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function OR(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function R1(e,t,n){if(!t)return e;e=e||"";const s=D.isFunction(n)?{serialize:n}:n,o=D.getSafeProp(s,"encode")||OR,c=D.getSafeProp(s,"serialize");let u;if(c?u=c(t,s):u=D.isURLSearchParams(t)?t.toString():new Sp(t,s).toString(o),u){const f=e.indexOf("#");f!==-1&&(e=e.slice(0,f)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class Px{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.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(s){s!==null&&t(s)})}}const kp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},MR=typeof URLSearchParams<"u"?URLSearchParams:Sp,LR=typeof FormData<"u"?FormData:null,DR=typeof Blob<"u"?Blob:null,IR={isBrowser:!0,classes:{
vendor: 2,427 bytes, line 332
332URLSearchParams:MR,FormData:LR,Blob:DR},protocols:["http","https","file","blob","url","data"]},jp=typeof window<"u"&&typeof document<"u",ch=typeof navigator=="object"&&navigator||void 0,FR=jp&&(!ch||["ReactNative","NativeScript","NS"].indexOf(ch.product)<0),BR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",UR=jp&&window.location.href||"http://localhost",VR=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:jp,hasStandardBrowserEnv:FR,hasStandardBrowserWebWorkerEnv:BR,navigator:ch,origin:UR},Symbol.toStringTag,{value:"Module"})),Ct={...VR,...IR};function zR(e,t){return Qc(e,new Ct.classes.URLSearchParams,{visitor:function(n,s,o,c){return Ct.isNode&&D.isBuffer(n)?(this.append(s,n.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)},...t})}const Ax=T1;function O1(e){if(e>Ax)throw new se("FormData field is too deeply nested ("+e+" levels). Max depth: "+Ax,se.ERR_FORM_DATA_DEPTH_EXCEEDED)}function $R(e){const t=[],n=/\w+|\[(\w*)]/g;let s;for(;(s=n.exec(e))!==null;)O1(t.length),t.push(s[0]==="[]"?"":s[1]||s[0]);return t}function WR(e){const t={},n=Object.keys(e);let s;const o=n.length;let c;for(s=0;s<o;s++)c=n[s],t[c]=e[c];return t}function M1(e){function t(n,s,o,c){O1(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(s):[o[u],s]:o[u]=s,!f):((!D.hasOwnProp(o,u)||!D.isObject(o[u]))&&(o[u]=[]),t(n,s,o[u],c)&&D.isArray(o[u])&&(o[u]=WR(o[u])),!f)}if(D.isFormData(e)&&D.isFunction(e.entries)){const n={};return D.forEachEntry(e,(s,o)=>{t($R(s),o,n,0)}),n}return null}const yi=(e,t)=>e!=null&&D.hasOwnProp(e,t)?e[t]:void 0;function HR(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Ra={transitional:kp,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,c=D.isObject(t);if(c&&D.isHTMLForm(t)&&(t=new FormData(t)),D.isFormData(t))return o?JSON.stringify(M1(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 332
332if(c){const h=yi(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return zR(t,h).toString();if((f=D.isFileList(t))||s.indexOf("multipart/form-data")>-1){const p=yi(this,"env"),g=p&&p.FormData;return Qc(f?{"files[]":t}:t,g&&new g,h)}}return c||o?(n.setContentType("application/json",!1),HR(t)):t}],transformResponse:[function(t){const n=yi(this,"transitional")||Ra.transitional,s=n&&n.forcedJSONParsing,o=yi(this,"responseType"),c=o==="json";if(D.isResponse(t)||D.isReadableStream(t))return t;if(t&&D.isString(t)&&(s&&!o||c)){const f=!(n&&n.silentJSONParsing)&&c;try{return JSON.parse(t,yi(this,"parseReviver"))}catch(h){if(f)throw h.name==="SyntaxError"?se.from(h,se.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:Ct.classes.FormData,Blob:Ct.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=>{Ra.headers[e]={}});function gf(e,t){const n=this||Ra,s=t||n,o=It.from(s.headers);let c=s.data;return D.forEach(e,function(f){c=f.call(n,c,o.normalize(),t?t.status:void 0)}),o.normalize(),c}function L1(e){return!!(e&&e.__CANCEL__)}let Oa=class extends se{constructor(t,n,s){super(t??"canceled",se.ERR_CANCELED,n,s),this.name="CanceledError",this.__CANCEL__=!0}};function D1(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new se("Request failed with status code "+n.status,n.status>=400&&n.status<500?se.ERR_BAD_REQUEST:se.ERR_BAD_RESPONSE,n.config,n.request,n))}function qR(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function KR(e,t){e=e||10;const n=new Array(e),s=new Array(e);let o=0,c=0,u;return t=t!==void 0?t:1e3,function(h){const p=Date.now(),g=s[c];u||(u=p),n[o]=h,s[o]=p;let y=c,v=0;for(;y!==o;)v+=n[y++],y=y%e;if(o=(o+1)%e,o===c&&(c=(c+1)%e),p-u<t)return;const j=g&&p-g;return j?Math.round(v*1e3/j):void 0}}function GR(e,t){let n=0,s=1e3/t,o,c;const u=(p,g=Date.now())=>{n=g,o=null,c&&(clearTimeout(c),c=null),e(...p)};return[(...p)=>{const g=Date.now(),y=g-n;y>=s?u(p,g):(o=p,c||(c=setTimeout(()=>{c=null,u(o)},s-y)))},()=>o&&u(o)]}const Oc=(e,t,n=3)=>{let s=0;const o=KR(50,250);return GR(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-s),g=o(p);s=Math.max(s,h);const y={loaded:h,total:f,progress:f?h/f:void 0,bytes:p,rate:g||void 0,estimated:g&&f?(f-h)/g:void 0,event:c,lengthComputable:f!=null,[t?"download":"upload"]:!0};e(y)},n)},Rx=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Ox=e=>(...t)=>D.asap(()=>e(...t)),QR=Ct.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ct.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ct.origin),Ct.navigator&&/(msie|trident)/i.test(Ct.navigator.userAgent)):()=>!0,YR=Ct.hasStandardBrowserEnv?{write(e,t,n,s,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(s)&&f.push(`path=${s}`),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 s=t[n].replace(/^\s+/,""),o=s.indexOf("=");if(o!==-1&&s.slice(0,o)===e)try{return decodeURIComponent(s.slice(o+1))}catch{return s.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function XR(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function JR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const ZR=/^https?:(?!\/\/)/i,e5=/[\t\n\r]/g;function t5(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function n5(e){return t5(e).replace(e5,"")}function Mx(e,t){if(typeof e=="string"&&ZR.test(n5(e)))throw new se('Invalid URL: missing "//" after protocol',se.ERR_INVALID_URL,t)}function I1(e,t,n,s){Mx(t,s);let o=!XR(t);return e&&(o||n===!1)?(Mx(e,s),JR(e,t)):t}const Lx=e=>e instanceof It?{...e}:e;function Us(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 s(g,y,v,j){return D.isPlainObject(g)&&D.isPlainObject(y)?D.merge.call({caseless:j}
vendor: 1,643 bytes, line 332
332,g,y):D.isPlainObject(y)?D.merge({},y):D.isArray(y)?y.slice():y}function o(g,y,v,j){if(D.isUndefined(y)){if(!D.isUndefined(g))return s(void 0,g,v,j)}else return s(g,y,v,j)}function c(g,y){if(!D.isUndefined(y))return s(void 0,y)}function u(g,y){if(D.isUndefined(y)){if(!D.isUndefined(g))return s(void 0,g)}else return s(void 0,y)}function f(g){const y=D.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!D.isUndefined(y))if(D.isPlainObject(y)){if(D.hasOwnProp(y,g))return y[g]}else return;const v=D.hasOwnProp(e,"transitional")?e.transitional:void 0;if(D.isPlainObject(v)&&D.hasOwnProp(v,g))return v[g]}function h(g,y,v){if(D.hasOwnProp(t,v))return s(g,y);if(D.hasOwnProp(e,v))return s(void 0,g)}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:(g,y,v)=>o(Lx(g),Lx(y),v,!0)};return D.forEach(Object.keys({...e,...t}),function(y){if(y==="__proto__"||y==="constructor"||y==="prototype")return;const v=D.hasOwnProp(p,y)?p[y]:o,j=D.hasOwnProp(e,y)?e[y]:void 0,N=D.hasOwnProp(t,y)?t[y]:void 0,b=v(j,N,y);D.isUndefined(b)&&v!==h||(n[y]=b)}),D.hasOwnProp(t,"validateStatus")&&D.isUndefined(t.validateStatus)&&f("validateStatusUndefinedResolves")===!1&&(D.hasOwnProp(e,"validateStatus")?n.validateStatus=s(void 0,e.validateStatus):delete n.val
vendor: 12,284 bytes, lines 332-334
332idateStatus),n}const r5=["content-type","content-length"];function s5(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([s,o])=>{r5.includes(s.toLowerCase())&&e.set(s,o)})}const i5=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function F1(e){const t=Us({},e),n=v=>D.hasOwnProp(t,v)?t[v]:void 0,s=n("data");let o=n("withXSRFToken");const c=n("xsrfHeaderName"),u=n("xsrfCookieName");let f=n("headers");const h=n("auth"),p=n("baseURL"),g=n("allowAbsoluteUrls"),y=n("url");if(t.headers=f=It.from(f),t.url=R1(I1(p,y,g,t),n("params"),n("paramsSerializer")),h){const v=D.getSafeProp(h,"username")||"",j=D.getSafeProp(h,"password")||"";try{f.set("Authorization","Basic "+btoa(v+":"+(j?i5(j):"")))}catch(N){throw se.from(N,se.ERR_BAD_OPTION_VALUE,e)}}if(D.isFormData(s)&&(Ct.hasStandardBrowserEnv||Ct.hasStandardBrowserWebWorkerEnv||D.isReactNative(s)?f.setContentType(void 0):D.isFunction(s.getHeaders)&&s5(f,s.getHeaders(),n("formDataHeaderPolicy"))),Ct.hasStandardBrowserEnv&&(D.isFunction(o)&&(o=o(t)),o===!0||o==null&&QR(t.url))){const j=c&&u&&YR.read(u);j&&f.set(c,j)}return t}const o5=typeof XMLHttpRequest<"u",a5=o5&&function(e){return new Promise(function(n,s){const o=F1(e);let c=o.data;const u=It.from(o.headers).normalize();let{responseType:f,onUploadProgress:h,onDownloadProgress:p}=o,g,y,v,j,N;function b(){j&&j(),N&&N(),o.cancelToken&&o.cancelToken.unsubscribe(g),o.signal&&o.signal.removeEventListener("abort",g)}let _=new XMLHttpRequest;_.open(o.method.toUpperCase(),o.url,!0),_.timeout=o.timeout;function w(){if(!_)return;const A=It.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),I={data:!f||f==="text"||f==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:A,config:e,request:_};D1(function(Z){n(Z),b()},function(Z){s(Z),b()},I),_=null}"onloadend"in _?_.onloadend=w:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.startsWith("file:"))||setTimeout(w)},_.onabort=function(){_&&(s(new se("Request aborted",se.ECONNABORTED,e,_)),b(),_=null)},_.onerror=function(R){const I=R&&R.message?R.message:"Network Error",V=new se(I,se.ERR_NETWORK,e,_);V.event=R||null,s(V),b(),_=null},_.ontimeout=function(){let R=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const I=o.transitional||kp;o.timeoutErrorMessage&&(R=o.timeoutErrorMessage),s(new se(R,I.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,e,_)),b(),_=null},c===void 0&&u.setContentType(null),"setRequestHeader"in _&&D.forEach(E1(u),function(R,I){_.setRequestHeader(I,R)}),D.isUndefined(o.withCredentials)||(_.withCredentials=!!o.withCredentials),f&&f!=="json"&&(_.responseType=o.responseType),p&&([v,N]=Oc(p,!0),_.addEventListener("progress",v)),h&&_.upload&&([y,j]=Oc(h),_.upload.addEventListener("progress",y),_.upload.addEventListener("loadend",j)),(o.cancelToken||o.signal)&&(g=A=>{_&&(s(!A||A.type?new Oa(null,e,_):A),_.abort(),b(),_=null)},o.cancelToken&&o.cancelToken.subscribe(g),o.signal&&(o.signal.aborted?g():o.signal.addEventListener("abort",g)));const T=qR(o.url);if(T&&!Ct.protocols.includes(T)){s(new se("Unsupported protocol "+T+":",se.ERR_BAD_REQUEST,e)),b();return}_.send(c||null)})},l5=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let s=!1;const o=function(h){if(!s){s=!0,u();const p=h instanceof Error?h:this.reason;n.abort(p instanceof se?p:new Oa(p instanceof Error?p.message:p))}};let c=t&&setTimeout(()=>{c=null,o(new se(`timeout of ${t}ms exceeded`,se.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},c5=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,o;for(;s<n;)o=s+t,yield e.slice(s,o),s=o},u5=async function*(e,t){for await(const n of d5(e))yield*c5(n,t)},d5=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},Dx=(e,t,n,s)=>{const o=u5(e,t);let c=0,u,f=h=>{u||(u=!0,s&&s(h))};return new ReadableStream({async pull(h){try{const{done:p,value:g}=await o.next();if(p){f(),h.close();return}let y=g.byteLength;if(n){let v=c+=y;n(v)}h.enqueue(new Uint8Array(g))}catch(p){throw f(p),p}},cancel(h){return f(h),o.return()}},{highWaterMark:2})},Mc=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,f5=(e,t,n)=>t+2<n&&Mc(e.charCodeAt(t+1))&&Mc(e.charCodeAt(t+2));function h5(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),s=e.slice(t+1);if(/;base64/i.test(n)){let u=s.length;const f=s.length;for(let j=0;j<f;j++)if(s.charCodeAt(j)===37&&j+2<f){const N=s.charCodeAt(j+1),b=s.charCodeAt(j+2);Mc(N)&&Mc(b)&&(u-=2,j+=2)}let h=0,p=f-1;const g=j=>j>=2&&s.charCodeAt(j-2)===37&&s.charCodeAt(j-1)===51&&(s.charCodeAt(j)===68||s.charCodeAt(j)===100);p>=0&&(s.charCodeAt(p)===61?(h++,p--):g(p)&&(h++,p-=3)),h===1&&p>=0&&(s.charCodeAt(p)===61||g(p))&&h++;const v=Math.floor(u/4)*3-(h||0);return v>0?v:0}let c=0;for(let u=0,f=s.length;u<f;u++){const h=s.charCodeAt(u);if(h===37&&f5(s,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=s.charCodeAt(u+1);p>=56320&&p<=57343?(c+=4,u++):c+=3}else c+=3}return c}const Np="1.18.1",Ix=64*1024,{isFunction:Zl}=D,p5=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Fx=e=>{if(!D.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Bx=(e,...t)=>{try{return!!e(...t)}catch{return!1}},m5=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},g5=e=>{const t=D.global!==void 0&&D.global!==null?D.global:globalThis,{ReadableStream:n,TextEncoder:s}=t;e=D.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:c,Response:u}=e,f=o?Zl(o):typeof fetch=="function",h=Zl(c),p=Zl(u);if(!f)return!1;const g=f&&Zl(n),y=f&&(typeof s=="function"?(w=>T=>w.encode(T))(new s):async w=>new Uint8Array(await new c(w).arrayBuffer())),v=h&&g&&Bx(()=>{let w=!1;const T=new c(Ct.origin,{body:new n,method:"POST",get duplex(){return w=!0,"half"}}),A=T.headers.has("Content-Type");return T.body!=null&&T.body.cancel(),w&&!A}),j=p&&g&&Bx(()=>D.isReadableStream(new u("").body)),N={stream:j&&(w=>w.body)};f&&["text","arrayBuffer","blob","formData","stream"].forEach(w=>{!N[w]&&(N[w]=(T,A)=>{let R=T&&T[w];if(R)return R.call(T);throw new se(`Response type '${w}' is not supported`,se.ERR_NOT_SUPPORT,A)})});const b=async w=>{if(w==null)return 0;if(D.isBlob(w))return w.size;if(D.isSpecCompliantForm(w))return(await new c(Ct.origin,{method:"POST",body:w}).arrayBuffer()).byteLength;if(D.isArrayBufferView(w)||D.isArrayBuffer(w))return w.byteLength;if(D.isURLSearchParams(w)&&(w=w+""),D.isString(w))return(await y(w)).byteLength},_=async(w,T)=>{const A=D.toFiniteNumber(w.getContentLength());return A??b(T)};return async w=>{let{url:T,method:A,data:R,signal:I,cancelToken:V,timeout:Z,onDownloadProgress:F,onUploadProgress:ne,responseType:ye,headers:Ne,withCredentials:re="same-origin",fetchOptions:Se,maxContentLength:Te,maxBodyLength:Ae}=F1(w);const me=D.isNumber(Te)&&Te>-1,xe=D.isNumber(Ae)&&Ae>-1,G=W=>D.hasOwnProp(w,W)?w[W]:void 0;let le=o||fetch;ye=ye?(ye+"").toLowerCase():"text";let C=l5([I,V&&V.toAbortSignal()],Z),k=null;const B=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let Y,te=null;const J=()=>new se("Request body larger than maxBodyLength limit",se.ERR_BAD_REQUEST,w,k);try{let W;const X=G("auth");if(X){const ve=D.getSafeProp(X,"username")||"",qe=D.getSafeProp(X,"password")||"";W={username:ve,password:qe}}if(m5(T)){const ve=new URL(T,Ct.origin);if(!W&&(ve.username||ve.password)){const qe=Fx(ve.username),ot=Fx(ve.password);W={username:qe,password:ot}}(ve.username||ve.password)&&(ve.username="",ve.password="",T=ve.href)}if(W&&(Ne.delete("authorization"),Ne.set("Authorization","Basic "+btoa(p5((W.username||"")+":"+(W.password||""))))),me&&typeof T=="string"&&T.startsWith("data:")&&h5(T)>Te)throw new se("maxContentLength size of "+Te+" exceeded",se.ERR_BAD_RESPONSE,w,k);if(xe&&A!=="get"&&A!=="head"){const ve=await b(R);if(typeof ve=="number"&&isFinite(ve)&&(Y=ve,ve>Ae))throw J()}const ie=xe&&(D.isReadableStream(R)||D.isStream(R)),oe=(ve,qe,ot)=>Dx(ve,Ix,pt=>{if(xe&&pt>Ae)throw te=J();qe&&qe(pt)},ot);if(v&&A!=="get"&&A!=="head"&&(ne||ie)){if(Y=Y??await _(Ne,R),Y!==0||ie){let ve=new c(T,{method:"POST",body:R,duplex:"half"}),qe;if(D.isFormData(R)&&(qe=ve.headers.get("content-type"))&&Ne.setContentType(qe),ve.body){const[ot,pt]=ne&&Rx(Y,Oc(Ox(ne)))||[];R=oe(ve.body,ot,pt)}}}else if(ie&&!h&&g&&A!=="get"&&A!=="head")R=oe(R);else if(ie&&h&&!v&&A!=="get"&&A!=="head")throw new se("Stream request bodies are not supported by the current fetch implementation",se.ERR_NOT_SUPPORT,w,k);D.isString(re)||(re=re?"include":"omit");const Re=h&&"credentials"in c.prototype;if(D.isFormData(R)){const ve=Ne.getContentType();ve&&/^multipart\/form-data/i.test(ve)&&!/boundary=/i.test(ve)&&Ne.delete("content-type")}Ne.set("User-Agent","axios/"+Np,!1);const Le={...Se,signal:C,method:A.toUpperCase(),headers:E1(Ne.normalize()),body:R,duplex:"half",credentials:Re?re:void 0};k=h&&new c(T,Le);let Oe=await(h?le(k,Se):le(T,Le));const He=It.from(Oe.headers);if(me){const ve=D.toFiniteNumber(He.getContentLength());if(ve!=null&&ve>Te)throw new se("maxContentLength size of "+Te+" exceeded",se.ERR_BAD_RESPONSE,w,k)}const Ce=j&&(ye==="stream"||ye==="response");if(j&&Oe.body&&(F||me||Ce&&B)){const ve={};["status","statusText","headers"].forEach(yn=>{ve[yn]=Oe[yn]});const qe=D.toFiniteNumber(He.getContentLength()),[ot,pt]=F&&Rx(qe,Oc(Ox(F),!0))||[];let mt=0;const An=yn=>{if(me&&(mt=yn,mt>Te))throw new se("maxContentLength size of "+Te+" exceeded",se.ERR_BAD_RESPONSE,w,k);ot&&ot(yn)};Oe=new u(Dx(Oe.body,Ix,An,()=>{pt&&pt(),B&&B()}),ve)}ye=ye||"text";let Ge=await N[D.findKey(N,ye)||"text"](Oe,w);if(me&&!j&&!Ce){let ve;if(Ge!=null&&(typeof Ge.byteLength=="number"?ve=Ge.byteLength:typeof Ge.size=="number"?ve=Ge.size:typeof Ge=="string"&&(ve=typeof s=="function"?new s().encode(Ge).byteLength:Ge.length)),typeof ve=="number"&&ve>Te)throw new se("maxContentLength size of "+Te+" exceeded",se.ERR_BAD_RESPONSE,w,k)}return!Ce&&B&&B(),await new Promise((ve,qe)=>{D1(ve,qe,{data:Ge,headers:It.from(Oe.headers),status:Oe.status,statusText:Oe.statusText,config:w,request:k})})}catch(W){if(B&&B(),C&&C.aborted&&C.reason instanceof se){const X=C.reason;throw X.config=w,k&&(X.request=k),W!==X&&Object.defineProperty(X,"cause",{__proto__:null,value:W,writable:!0,enumerable:!1,configurable:!0}),X}if(te)throw k&&!te.request&&(te.request=k),te;if(W instanceof se)throw k&&!W.request&&(W.request=k),W;if(W&&W.name==="TypeError"&&/Load failed|fetch/i.test(W.message)){const X=new se("Network Error",se.ERR_NETWORK,w,k,W&&W.response);throw Object.defineProperty(X,"cause",{__proto__:null,value:W.cause||W,writable:!0,enumerable:!1,configurable:!0}),X}throw se.from(W,W&&W.code,w,k,W&&W.response)}}},y5=new Map,B1=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:o}=t,c=[s,o,n];let u=c.length,f=u,h,p,g=y5;for(;f--;)h=c[f],p=g.get(h),p===void 0&&g.set(h,p=f?new Map:g5(t)),g=p;return p};B1();const _p={http:PR,xhr:a5,fetch:{get:B1}};D.forEach(_p,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Ux=e=>`- ${e}`,x5=e=>D.isFunction(e)||e===null||e===!1;function v5(e,t){e=D.isArray(e)?e:[e];const{length:n}=e;let s,o;const c={};for(let u=0;u<n;u++){s=e[u];let f;if(o=s,!x5(s)&&(o=_p[(f=String(s)).toLowerCase()],o===void 0))throw new se(`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 :
333`+u.map(Ux).join(`
334`):" "+Ux(u[0]):"as no adapter specified";throw new se("There is no suitable adapter to dispatch the request "+f,se.ERR_NOT_SUPPORT)}return o}
vendor: 5,332 bytes, lines 334-338
334const U1={getAdapter:v5,adapters:_p};function yf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Oa(null,e)}function Vx(e){return yf(e),e.headers=It.from(e.headers),e.data=gf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),U1.getAdapter(e.adapter||Ra.adapter,e)(e).then(function(s){yf(e),e.response=s;try{s.data=gf.call(e,e.transformResponse,s)}finally{delete e.response}return s.headers=It.from(s.headers),s},function(s){if(!L1(s)&&(yf(e),s&&s.response)){e.response=s.response;try{s.response.data=gf.call(e,e.transformResponse,s.response)}finally{delete e.response}s.response.headers=It.from(s.response.headers)}return Promise.reject(s)})}const Yc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Yc[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const zx={};Yc.transitional=function(t,n,s){function o(c,u){return"[Axios v"+Np+"] Transitional option '"+c+"'"+u+(s?". "+s:"")}return(c,u,f)=>{if(t===!1)throw new se(o(u," has been removed"+(n?" in "+n:"")),se.ERR_DEPRECATED);return n&&!zx[u]&&(zx[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}};Yc.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function b5(e,t,n){if(typeof e!="object"||e===null)throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const c=s[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 se("option "+c+" must be "+h,se.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new se("Unknown option "+c,se.ERR_BAD_OPTION)}}const yc={assertOptions:b5,validators:Yc},Ot=yc.validators;let Ds=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Px,response:new Px}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const c=(()=>{if(!o.stack)return"";const u=o.stack.indexOf(`
335`);return u===-1?"":o.stack.slice(u+1)})();try{if(!s.stack)s.stack=c;else if(c){const u=c.indexOf(`
336`),f=u===-1?-1:c.indexOf(`
337`,u+1),h=f===-1?"":c.slice(f+1);String(s.stack).endsWith(h)||(s.stack+=`
338`+c)}}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Us(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:c}=n;s!==void 0&&yc.assertOptions(s,{silentJSONParsing:Ot.transitional(Ot.boolean),forcedJSONParsing:Ot.transitional(Ot.boolean),clarifyTimeoutError:Ot.transitional(Ot.boolean),legacyInterceptorReqResOrdering:Ot.transitional(Ot.boolean),advertiseZstdAcceptEncoding:Ot.transitional(Ot.boolean),validateStatusUndefinedResolves:Ot.transitional(Ot.boolean)},!1),o!=null&&(D.isFunction(o)?n.paramsSerializer={serialize:o}:yc.assertOptions(o,{encode:Ot.function,serialize:Ot.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),yc.assertOptions(n,{baseUrl:Ot.spelling("baseURL"),withXsrfToken:Ot.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"],N=>{delete c[N]}),n.headers=It.concat(u,c);const f=[];let h=!0;this.interceptors.request.forEach(function(b){if(typeof b.runWhen=="function"&&b.runWhen(n)===!1)return;h=h&&b.synchronous;const _=n.transitional||kp;_&&_.legacyInterceptorReqResOrdering?f.unshift(b.fulfilled,b.rejected):f.push(b.fulfilled,b.rejected)});const p=[];this.interceptors.response.forEach(function(b){p.push(b.fulfilled,b.rejected)});let g,y=0,v;if(!h){const N=[Vx.bind(this),void 0];for(N.unshift(...f),N.push(...p),v=N.length,g=Promise.resolve(n);y<v;)g=g.then(N[y++],N[y++]);return g}v=f.length;let j=n;for(;y<v;){const N=f[y++],b=f[y++];try{j=N(j)}catch(_){b.call(this,_);break}}try{g=Vx.call(this,j)}catch(N){return Promise.reject(N)}for(y=0,v=p.length;y<v;)g=g.then(p[y++],p[y++]);return g}getUri(t){t=Us(this.defaults,t);const n=I1(t.baseURL,t.url,t.allowAbsoluteUrls,t);return R1(n,t.params,t.paramsSerializer)}};D.forEach(["delete","get","head","options"],function(t){Ds.prototype[t]=function(n,s){return this.request(Us(s||{},{method:t,url:n,data:s&&D.hasOwnProp(s,"data")?s.data:void 0}))}});D.forEach(["post","put","patch","query"],function(t){function n(s){return function(c,u,f){return this.request(Us(f||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:c,data:u}))}}Ds.prototype[t]=n(),t!=="query"&&(Ds.prototype[t+"Form"]=n(!0))});let w5=class V1{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 s=this;this.promise.then(o=>{if(!s._listeners)return;let c=s._listeners.length;for(;c-- >0;)s._listeners[c](o);s._listeners=null}),this.promise.then=o=>{let c;const u=new Promise(f=>{s.subscribe(f),c=f}).then(o);return u.cancel=function(){s.unsubscribe(c)},u},t(function(c,u,f){s.reason||(s.reason=new Oa(c,u,f),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
338subscribe(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=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new V1(function(o){t=o}),cancel:t}}};function S5(e){return function(n){return e.apply(null,n)}}function k5(e){return D.isObject(e)&&e.isAxiosError===!0}const uh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(uh).forEach(([e,t])=>{uh[t]=e});function z1(e){const t=new Ds(e),n=x1(Ds.prototype.request,t);return D.extend(n,Ds.prototype,t,{allOwnKeys:!0}),D.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return z1(Us(e,o))},n}const ut=z1(Ra);ut.Axios=Ds;ut.CanceledError=Oa;ut.CancelToken=w5;ut.isCancel=L1;ut.VERSION=Np;ut.toFormData=Qc;ut.AxiosError=se;ut.Cancel=ut.CanceledError;ut.all=function(t){return Promise.all(t)};ut.spread=S5;ut.isAxiosError=k5;ut.mergeConfig=Us;ut.AxiosHeaders=It;ut.formToJSON=e=>M1(D.isHTMLForm(e)?new FormData(e):e);ut.getAdapter=U1.getAdapter;ut.HttpStatusCode=uh;ut.default=ut;const{Axios:r6,AxiosError:s6,CanceledError:i6,isCancel:o6,CancelToken:a6,VERSION:l6,all:c6,Cancel:u6,isAxiosError:d6,spread:f6,toFormData:h6,AxiosHeaders:p6,HttpStatusCode:m6,formToJSON:g6,getAdapter:y6,mergeConfig:x6,create:v6}=ut,$1=typeof window>"u",$x=!$1&&window.self!==window.top,j5=!$1&&typeof document>"u",W1=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),_t=[];for(let e=0;e<256;++e)_t.push((e+256).toString(16).slice(1));function N5(e,t=0){return(_t[e[t+0]]+_t[e[t+1]]+_t[e[t+2]]+_t[e[t+3]]+"-"+_t[e[t+4]]+_t[e[t+5]]+"-"+_t[e[t+6]]+_t[e[t+7]]+"-"+_t[e[t+8]]+_t[e[t+9]]+"-"+_t[e[t+10]]+_t[e[t+11]]+_t[e[t+12]]+_t[e[t+13]]+_t[e[t+14]]+_t[e[t+15]]).toLowerCase()}let xf;const _5=new Uint8Array(16);function E5(){if(!xf){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");xf=crypto.getRandomValues.bind(crypto)}return xf(_5)}const C5=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Wx={randomUUID:C5};function T5(e,t,n){var o;e=e||{};const s=e.random??((o=e.rng)==null?void 0:o.call(e))??E5();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,N5(s)}function P5(e,t,n){return Wx.randomUUID&&!e?Wx.randomUUID():T5(e)}const $o=typeof window<"u"?window:{base44SharedInstances:{}};function A5(e,t){return $o.base44SharedInstances||($o.base44SharedInstances={}),$o.base44SharedInstances[e]||($o.base44SharedInstances[e]={instance:t()}),$o.base44SharedInstances[e].instance}
338const R5="__user_heartbeat_event__",O5="__initialization_event__",M5="__session_duration_event__",Hx="analytics-enable",qx="base44_analytics_session_id",L5={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},D5="analytics",$e=A5(D5,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,fallbackSessionId:null,config:{...L5,...W5()}})),I5=({axiosClient:e,serverUrl:t,appId:n,userAuthModule:s,enabled:o})=>{var c;const{maxQueueSize:u,throttleTime:f,batchSize:h}=$e.config;if(!o||!(!((c=$e.config)===null||c===void 0)&&c.enabled)||j5)return{track:()=>{},cleanup:()=>{}};let p;const g=`${t}/api/apps/${n}/analytics/track/batch`,y=async R=>{await e.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:R}})},v=R=>{try{const I=JSON.stringify({events:R}),V=new Blob([I],{type:"application/json"});return typeof navigator>"u"||I.length>6e4||!navigator.sendBeacon(g,V)}catch{return!1}},j=async(R,I={})=>{if(R.length===0)return;const V=await $5(s),Z=R.map(z5(V));try{(!I.isBeacon||!v(Z))&&await y(Z)}catch{}},N=()=>{Gx(j,{throttleTime:f,batchSize:h})},b=R=>{if($e.requestsQueue.length>=u)return;const I=V5();$e.requestsQueue.push({...R,...I}),N()},_=()=>{Gx(j,{throttleTime:f,batchSize:h}),p=Qx(b),B5()},w=()=>{Kx(),p==null||p(),U5(b);const R=$e.requestsQueue.splice(0);j(R,{isBeacon:!0})},T=()=>{typeof window>"u"||(document.visibilityState==="hidden"?w():document.visibilityState==="visible"&&_())},A=()=>{Kx(),p==null||p(),typeof window<"u"&&window.removeEventListener("visibilitychange",T)};return N(),p=Qx(b),F5(b),typeof window<"u"&&window.addEventListener("visibilitychange",T),{track:b,cleanup:A}};function Kx(){$e.isProcessing=!1}async function Gx(e,t){if($e.isProcessing)return;$e.isProcessing=!0;const{throttleTime:n=1e3,batchSize:s=30}=t??{};for(;$e.isProcessing&&$e.requestsQueue.length>0;){const o=$e.requestsQueue.splice(0,s);o.length&&await e(o),await new Promise(c=>setTimeout(c,n))}$e.isProcessing=!1}function Qx(e){var t;if(typeof window>"u"||$e.isHeartBeatProcessing||((t=$e.config.heartBeatInterval)!==null&&t!==void 0?t:0)<10)return()=>{};$e.isHeartBeatProcessing=!0;const n=setInterval(()=>{e({eventName:R5})},$e.config.heartBeatInterval);return()=>{clearInterval(n),$e.isHeartBeatProcessing=!1}}function F5(e){typeof window>"u"||$e.wasInitializationTracked||($e.wasInitializationTracked=!0,e({eventName:O5,properties:{referrer:document==null?void 0:document.referrer}}))}function B5(){typeof window>"u"||$e.sessionStartTime!==null||($e.sessionStartTime=new Date().toISOString())}function U5(e){if(typeof window>"u"||$e.sessionStartTime===null)return;const t=new Date().getTime()-new Date($e.sessionStartTime).getTime();$e.sessionStartTime=null,e({eventName:M5,properties:{sessionDuration:t}})}function V5(){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 z5(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let Qo=null;function Yx(){$e.sessionContext=null,Qo=null}async function $5(e){if(!$e.sessionContext){if(!e.hasToken())return{user_id:null,session_id:Lc()};if(!Qo){const s=Lc();Qo=e.me().then(o=>({user_id:o.id,session_id:s})).catch(()=>({user_id:null,session_id:s}))}const t=Qo,n=await t;return Qo===t&&($e.sessionContext=n),n}return $e.sessionContext}function W5(){if(typeof window>"u"||!window.location)return;const t=new URLSearchParams(window.location.search).get(Hx);if(t==null||!t.length)return;const n=new URLSearchParams(window.location.search);n.delete(Hx);const s=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",s),{enabled:t==="true"}}function Xx(){var e;return(e=$e.fallbackSessionId)!==null&&e!==void 0?e:$e.fallbackSessionId=W1()}function Lc(){if(typeof window>"u")return Xx();try{const e=localStorage.getItem(qx);if(!e){const t=W1();return localStorage.setItem(qx,t),t}return e}catch{return Xx()}}
338class H5 extends Error{constructor(t,n,s,o,c){super(t),this.name="Base44Error",this.status=n,this.code=s,this.data=o,this.originalError=c}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function bi({baseURL:e,headers:t={},token:n,interceptResponses:s=!0,onError:o}){const c=ut.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",Lc()));const f=P5();if(u.requestId=f,$x)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}),s&&c.interceptors.response.use(u=>{var f;const h=(f=u.config)===null||f===void 0?void 0:f.requestId;try{$x&&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,g,y,v,j,N,b,_,w,T;const A=(f=u.response)===null||f===void 0?void 0:f.data,R=((h=A==null?void 0:A.error)===null||h===void 0?void 0:h.message)||(A==null?void 0:A.message)||(A==null?void 0:A.detail)||u.message,I=new H5(R,(p=u.response)===null||p===void 0?void 0:p.status,(_=(v=(y=(g=A==null?void 0:A.error)===null||g===void 0?void 0:g.code)!==null&&y!==void 0?y:A==null?void 0:A.code)!==null&&v!==void 0?v:(b=(N=(j=u.response)===null||j===void 0?void 0:j.headers)===null||N===void 0?void 0:N.get)===null||b===void 0?void 0:b.call(N,"x-base44-connector-error"))!==null&&_!==void 0?_:(T=(w=u.response)===null||w===void 0?void 0:w.headers)===null||T===void 0?void 0:T["x-base44-connector-error"],A,u);return o==null||o(I),Promise.reject(I)}),c}function Jx(e){const{axios:t,appId:n,getSocket:s}=e;return new Proxy({},{get(o,c){if(!(typeof c!="string"||c==="then"||c.startsWith("_")))return G5(t,n,c,s)}})}function q5(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 K5=100;function Zx(e){return typeof e=="object"&&e!==null}function G5(e,t,n,s){const o=`/apps/${t}/entities/${n}`,c=h=>Array.isArray(h)?h.join(","):h,u=(h,p,g,y,v)=>{const j={};return v&&(j.q=JSON.stringify(v)),h&&(j.sort=h),p&&(j.limit=p),g&&(j.skip=g),y&&(j.fields=c(y)),e.get(o,{params:j})},f=(h,p)=>{const g={};return p&&(g.q=JSON.stringify(p)),g.limit=h.limit||K5,h.cursor&&(g.cursor=h.cursor),"distinct"in h?g.distinct=h.distinct:(h.sort&&(g.sort=h.sort),h.fields&&(g.fields=c(h.fields))),e.get(`${o}/v2/list`,{params:g})};return{async list(...h){const[p,g,y,v]=h;return Zx(p)?f(p):u(p,g,y,v)},async filter(h,...p){const[g,y,v,j]=p;return Zx(g)?f(g,h):u(g,y,v,j,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 s().subscribeToRoom(p,{update_model:v=>{var j;const N=q5(v.data);if(N){N.type!=="delete"&&(!((j=N.data)===null||j===void 0)&&j._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${N.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("${N.id}")\` to fetch the full record.`);try{h(N)}catch(b){console.error("[Base44 SDK] Subscription callback error:",b)}}}})}}}function Q5(e,t){return{async call(n,s,o){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(s!=null&&s.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}/${s}`,h)}}}function ev(e,t){const n=Q5(e,t);return new Proxy({},{get(s,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;
338return f instanceof FormData||f&&Object.values(f).some(g=>g instanceof File)?(h=new FormData,Object.keys(f).forEach(g=>{f[g]instanceof File?h.append(g,f[g],f[g].name):typeof f[g]=="object"&&f[g]!==null?h.append(g,JSON.stringify(f[g])):h.append(g,f[g])}),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 Y5(){return typeof window>"u"?!1:window!==window.parent}function X5(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(g),f.closed||f.close()},p=y=>{var v;if(y.origin!==n||y.source!==f||!(!((v=y.data)===null||v===void 0)&&v.access_token))return;h();const j=new URL(t),{access_token:N,is_new_user:b}=y.data;j.searchParams.set("access_token",N),b!=null&&j.searchParams.set("is_new_user",String(b)),window.location.href=j.toString()},g=setInterval(()=>{f.closed&&h()},500);window.addEventListener("message",p)}function J5(e,t,n,s){let o=null;const c=()=>{o=null};let u=!!s.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=`${s.appBaseUrl}/login?from_url=${encodeURIComponent(h)}`;window.location.href=p},loginWithProvider(f,h="/"){const p=new URL(h,window.location.origin).toString(),g=`app_id=${n}&from_url=${encodeURIComponent(p)}`;let y;f==="sso"?y=`/apps/${n}/auth/sso/login`:y=`/apps/auth${f==="google"?"":`/${f}`}/login`;const v=`${s.appBaseUrl}/api${y}?${g}`;if(Y5()){const j=`${v}&popup_origin=${encodeURIComponent(window.location.origin)}`;return X5(j,p,window.location.origin)}window.location.href=v},logout(f){if(delete e.defaults.headers.common.Authorization,c(),Yx(),u=!1,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(g){console.error("Failed to remove token from localStorage:",g)}const h=f||window.location.href,p=`${s.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(h)}`;window.location.href=p}},setToken(f,h=!0){if(f&&(c(),Yx(),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 g;try{const y=await e.post(`/apps/${n}/auth/login`,{email:f,password:h,...p&&{turnstile_token:p}}),{access_token:v,user:j}=y;return v&&this.setToken(v),{access_token:v,user:j}}catch(y){throw((g=y.response)===null||g===void 0?void 0:g.status)===401&&await this.logout(),y}},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 Z5(e,t){return{async getAccessToken(n){const s=`/apps/${t}/auth/sso/accesstoken/${n}`;return e.get(s)},async getIdToken(n){const s=`/apps/${t}/auth/sso/idtoken/${n}`;return e.get(s)}}}const e3=new Set(["GET","POST","PUT","PATCH","DELETE","HEAD"]);
338function t3(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 s;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:(s=c.connection_config)!==null&&s!==void 0?s:null}},async getWorkspaceConnection(n){var s;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:(s=c.connection_config)!==null&&s!==void 0?s: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 s;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:(s=c.connection_config)!==null&&s!==void 0?s:null}},async callApi(n,s){return H1(n,"Integration type"),n3(e,`/apps/${t}/connectors/${encodeURIComponent(n)}/call`,s)}}}function H1(e,t){if(!e||typeof e!="string")throw new Error(`${t} is required and must be a string`)}async function n3(e,t,n){var s,o,c,u,f,h,p,g,y;if(!n||typeof n!="object")throw new Error("Request is required and must be an object");H1(n.path,"Request path");const v=(s=n.method)!==null&&s!==void 0?s:"GET";if(!e3.has(v))throw new Error("Request method must be one of GET, POST, PUT, PATCH, DELETE, or HEAD");const N=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:N.success,phase:N.phase,status:(f=N.status_code)!==null&&f!==void 0?f:null,data:N.data,dataBase64:(h=N.data_base64)!==null&&h!==void 0?h:null,contentType:(p=N.content_type)!==null&&p!==void 0?p:null,headers:(g=N.headers)!==null&&g!==void 0?g:{},creditsCharged:(y=N.credits_charged)!==null&&y!==void 0?y:0}}function r3(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 Kr(e={}){const{storageKey:t="base44_access_token",paramName:n="access_token",saveToStorage:s=!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(s&&s3(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 s3(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(s){return console.error("Error saving token to local storage:",s),!1}}function i3({axios:e,serviceRoleAxios:t,appId:n,serverUrl:s,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,g={}){o3(p);const{fetch:y=fetch,...v}=g,j=new Headers(g.headers),N=(b,_)=>{_&&!j.has(b)&&j.set(b,_)};return N("Authorization",f(e)),N("Base44-Service-Authorization",f(t)),N("Base44-App-Id",n),N("Base44-Api-Url",s),N("Base44-Functions-Version",o),N("Base44-State",u.get("Base44-State")),N("X-Data-Env",u.get("X-Data-Env")),y(p,{...v,headers:j})}}function o3(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 tv(e,t,n){const s=(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))})}
338return 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),g={...u,headers:p};return await fetch(s(n==null?void 0:n.baseURL,h),g)}}}function nv({axios:e,getSocket:t,appId:n,serverUrl:s,token:o}){const c=`/apps/${n}/agents`,u={},f=()=>e.get(`${c}/conversations`),h=b=>e.get(`${c}/conversations/${b}`);return{getConversations:f,getConversation:h,listConversations:b=>e.get(`${c}/conversations`,{params:b}),createConversation:b=>e.post(`${c}/conversations`,b),addMessage:async(b,_)=>e.post(`${c}/conversations/v2/${b.id}/messages`,_),subscribeToConversation:(b,_)=>{const w=`/agent-conversations/${b}`,T=t(),A=h(b).then(R=>(u[b]=R,R));return T.subscribeToRoom(w,{connect:()=>{},update_model:async({data:R})=>{const I=JSON.parse(R);if(I._message){await A;const V=I._message,Z=u[b];if(Z){const F=Z.messages||[],ne=F.findIndex(Ne=>Ne.id===V.id),ye=ne!==-1?F.map((Ne,re)=>re===ne?V:Ne):[...F,V];u[b]={...Z,messages:ye},_==null||_(u[b])}}}})},getWhatsAppConnectURL:b=>{const _=`${s}/api/apps/${n}/agents/${encodeURIComponent(b)}/whatsapp`,w=o??Kr();return w?`${_}?token=${w}`:_},getTelegramConnectURL:b=>{const _=`${s}/api/apps/${n}/agents/${encodeURIComponent(b)}/telegram`,w=o??Kr();return w?`${_}?token=${w}`:_}}}const rv={openai:"openai",typesafe:"typesafe"};function sv({serverUrl:e,token:t,appId:n}){return{connection:({provider:o="openai"}={})=>{var c;if(!Object.prototype.hasOwnProperty.call(rv,o))throw new Error(`Unsupported AI Gateway provider: ${o}`);const u=rv[o];return{baseURL:`${e}/api/apps/${n}/ai/${u}/v1`,token:(c=t??Kr())!==null&&c!==void 0?c:""}}}}function iv(e,t){const n=`/app-logs/${t}`;return{async logUserInApp(s){await e.post(`${n}/log-user-in-app/${s}`)},async fetchLogs(s={}){return await e.get(n,{params:s})},async getStats(s={}){return await e.get(`${n}/stats`,{params:s})}}}function a3(e,t){return{async getPublicSettings(){return e.get(`/apps/public/prod/public-settings/by-id/${t}`)}}}function l3(e,t){return{async inviteUser(n,s){if(s!=="user"&&s!=="admin")throw new Error(`Invalid role: "${s}". Role must be either "user" or "admin".`);return await e.post(`/apps/${t}/runtime/users/invite-user`,{user_email:n,role:s})}}}const qn=Object.create(null);qn.open="0";qn.close="1";qn.ping="2";qn.pong="3";qn.message="4";qn.upgrade="5";qn.noop="6";const xc=Object.create(null);Object.keys(qn).forEach(e=>{xc[qn[e]]=e});const dh={type:"error",data:"parser error"},q1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",K1=typeof ArrayBuffer=="function",G1=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Ep=({type:e,data:t},n,s)=>q1&&t instanceof Blob?n?s(t):ov(t,s):K1&&(t instanceof ArrayBuffer||G1(t))?n?s(t):ov(new Blob([t]),s):s(qn[e]+(t||"")),ov=(e,t)=>{const n=new FileReader;return n.onload=function(){const s=n.result.split(",")[1];t("b"+(s||""))},n.readAsDataURL(e)};function av(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let vf;function c3(e,t){if(q1&&e.data instanceof Blob)return e.data.arrayBuffer().then(av).then(t);if(K1&&(e.data instanceof ArrayBuffer||G1(e.data)))return t(av(e.data));Ep(e,!1,n=>{vf||(vf=new TextEncoder),t(vf.encode(n))})}const lv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<lv.length;e++)Yo[lv.charCodeAt(e)]=e;const u3=e=>{let t=e.length*.75,n=e.length,s,o=0,c,u,f,h;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const p=new ArrayBuffer(t),g=new Uint8Array(p);for(s=0;s<n;s+=4)c=Yo[e.charCodeAt(s)],u=Yo[e.charCodeAt(s+1)],f=Yo[e.charCodeAt(s+2)],h=Yo[e.charCodeAt(s+3)],g[o++]=c<<2|u>>4,g[o++]=(u&15)<<4|f>>2,g[o++]=(f&3)<<6|h&63;return p},d3=typeof ArrayBuffer=="function",Cp=(e,t)=>{if(typeof e!="string")return{type:"message",data:Q1(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:f3(e.substring(1),t)}:xc[n]?e.length>1?{type:xc[n],data:e.substring(1)}:{type:xc[n]}:dh},f3=(e,t)=>
vendor: 4,246 bytes, line 338
338{if(d3){const n=u3(e);return Q1(n,t)}else return{base64:!0,data:e}},Q1=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Y1="�",h3=(e,t)=>{const n=e.length,s=new Array(n);let o=0;e.forEach((c,u)=>{Ep(c,!1,f=>{s[u]=f,++o===n&&t(s.join(Y1))})})},p3=(e,t)=>{const n=e.split(Y1),s=[];for(let o=0;o<n.length;o++){const c=Cp(n[o],t);if(s.push(c),c.type==="error")break}return s};function m3(){return new TransformStream({transform(e,t){c3(e,n=>{const s=n.length;let o;if(s<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,s);else if(s<65536){o=new Uint8Array(3);const c=new DataView(o.buffer);c.setUint8(0,126),c.setUint16(1,s)}else{o=new Uint8Array(9);const c=new DataView(o.buffer);c.setUint8(0,127),c.setBigUint64(1,BigInt(s))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let bf;function ec(e){return e.reduce((t,n)=>t+n.length,0)}function tc(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let s=0;for(let o=0;o<t;o++)n[o]=e[0][s++],s===e[0].length&&(e.shift(),s=0);return e.length&&s<e[0].length&&(e[0]=e[0].slice(s)),n}function g3(e,t){bf||(bf=new TextDecoder);const n=[];let s=0,o=-1,c=!1;return new TransformStream({transform(u,f){for(n.push(u);;){if(s===0){if(ec(n)<1)break;const h=tc(n,1);c=(h[0]&128)===128,o=h[0]&127,o<126?s=3:o===126?s=1:s=2}else if(s===1){if(ec(n)<2)break;const h=tc(n,2);o=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),s=3}else if(s===2){if(ec(n)<8)break;const h=tc(n,8),p=new DataView(h.buffer,h.byteOffset,h.length),g=p.getUint32(0);if(g>Math.pow(2,21)-1){f.enqueue(dh);break}o=g*Math.pow(2,32)+p.getUint32(4),s=3}else{if(ec(n)<o)break;const h=tc(n,o);f.enqueue(Cp(c?h:bf.decode(h),t)),s=0}if(o===0||o>e){f.enqueue(dh);break}}}})}const X1=4;function ft(e){if(e)return y3(e)}function y3(e){for(var t in ft.prototype)e[t]=ft.prototype[t];return e}ft.prototype.on=ft.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ft.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};ft.prototype.off=ft.prototype.removeListener=ft.prototype.removeAllListeners=ft.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 s,o=0;o<n.length;o++)if(s=n[o],s===t||s.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};ft.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],s=1;s<arguments.length;s++)t[s-1]=arguments[s];if(n){n=n.slice(0);for(var s=0,o=n.length;s<o;++s)n[s].apply(this,t)}return this};ft.prototype.emitReserved=ft.prototype.emit;ft.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ft.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Xc=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),gn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),x3="arraybuffer";function J1(e,...t){return t.reduce((n,s)=>(e.hasOwnProperty(s)&&(n[s]=e[s]),n),{})}const v3=gn.setTimeout,b3=gn.clearTimeout;function Jc(e,t){t.useNativeTimers?(e.setTimeoutFn=v3.bind(gn),e.clearTimeoutFn=b3.bind(gn)):(e.setTimeoutFn=gn.setTimeout.bind(gn),e.clearTimeoutFn=gn.clearTimeout.bind(gn))}const w3=1.33;function S3(e){return typeof e=="string"?k3(e):Math.ceil((e.byteLength||e.size)*w3)}function k3(e){let t=0,n=0;for(let s=0,o=e.length;s<o;s++)t=e.charCodeAt(s),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(s++,n+=4);return n}function Z1(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function j3(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function N3(e){let t={},n=e.split("&");for(let s=0,o=n.length;s<o;s++){let c=n[s].split("=");
vendor: 6,261 bytes, line 338
338t[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return t}class _3 extends Error{constructor(t,n,s){super(t),this.description=n,this.context=s,this.type="TransportError"}}class Tp extends ft{constructor(t){super(),this.writable=!1,Jc(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,s){return super.emitReserved("error",new _3(t,n,s)),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=Cp(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=j3(t);return n.length?"?"+n:""}}class E3 extends Tp{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 s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||n()})),this.writable||(s++,this.once("drain",function(){--s||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};p3(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,h3(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]=Z1()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let e2=!1;try{e2=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const C3=e2;function T3(){}class P3 extends E3{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let s=location.port;s||(s=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||s!==t.port}}doWrite(t,n){const s=this.request({method:"POST",data:t});s.on("success",n),s.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,s)=>{this.onError("xhr poll error",n,s)}),this.pollXhr=t}}class $n extends ft{constructor(t,n,s){super(),this.createRequest=t,Jc(this,s),this._opts=s,this._method=s.method||"GET",this._uri=n,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var t;const n=J1(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(n);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&s.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var o;s.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=$n.requestsCount++,$n.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=T3,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete $n.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()}}$n.requestsCount=0;$n.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",cv);else if(typeof addEventListener=="function"){const e="onpagehide"in gn?"pagehide":"unload";addEventListener(e,cv,!1)}}function cv(){for(let e in $n.requests)$n.requests.hasOwnProperty(e)&&$n.requests[e].abort()}const A3=(function(){const e=t2({xdomain:!1});return e&&e.responseType!==null})();class R3 extends P3{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=A3&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new $n(t2,this.uri(),t)}}function t2(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||C3))return new XMLHttpRequest}catch{}if(!t)try{return new gn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const n2=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class O3 extends Tp{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,s=n2?{}:J1(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,s)}catch(o){return this.emitReserved("error",o)}
vendor: 15,989 bytes, line 338
338this.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 s=t[n],o=n===t.length-1;Ep(s,this.supportsBinary,c=>{try{this.doWrite(s,c)}catch{}o&&Xc(()=>{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]=Z1()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const wf=gn.WebSocket||gn.MozWebSocket;class M3 extends O3{createSocket(t,n,s){return n2?new wf(t,n,s):n?new wf(t,n):new wf(t)}doWrite(t,n){this.ws.send(n)}}class L3 extends Tp{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=g3(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=t.readable.pipeThrough(n).getReader(),o=m3();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();const c=()=>{s.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 s=t[n],o=n===t.length-1;this._writer.write(s).then(()=>{o&&Xc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const D3={websocket:M3,webtransport:L3,polling:R3},I3=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,F3=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function fh(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),s=e.indexOf("]");n!=-1&&s!=-1&&(e=e.substring(0,n)+e.substring(n,s).replace(/:/g,";")+e.substring(s,e.length));let o=I3.exec(e||""),c={},u=14;for(;u--;)c[F3[u]]=o[u]||"";return n!=-1&&s!=-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=B3(c,c.path),c.queryKey=U3(c,c.query),c}function B3(e,t){const n=/\/{2,9}/g,s=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&s.splice(0,1),t.slice(-1)=="/"&&s.splice(s.length-1,1),s}function U3(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,o,c){o&&(n[o]=c)}),n}const hh=typeof addEventListener=="function"&&typeof removeEventListener=="function",vc=[];hh&&addEventListener("offline",()=>{vc.forEach(e=>e())},!1);class Yr extends ft{constructor(t,n){if(super(),this.binaryType=x3,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 s=fh(t);n.hostname=s.host,n.secure=s.protocol==="https"||s.protocol==="wss",n.port=s.port,s.query&&(n.query=s.query)}else n.host&&(n.hostname=fh(n.host).host);Jc(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(s=>{const o=s.prototype.name;this.transports.push(o),this._transportsByName[o]=s}),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=N3(this.opts.query)),hh&&(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"})},vc.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=X1,n.transport=t,this.id&&(n.sid=this.id);const s=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](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Yr.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",Yr.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 s=0;s<this.writeBuffer.length;s++){const o=this.writeBuffer[s].data;if(o&&(n+=S3(o)),s>0&&n>this._maxPayload)return this.writeBuffer.slice(0,s);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Xc(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,s){return this._sendPacket("message",t,n,s),this}send(t,n,s){return this._sendPacket("message",t,n,s),this}_sendPacket(t,n,s,o){if(typeof n=="function"&&(o=n,n=void 0),typeof s=="function"&&(o=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const c={type:t,data:n,options:s};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()},s=()=>{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?s():t()}):this.upgrading?s():t()),this}_onError(t){if(Yr.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(),hh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=vc.indexOf(this._offlineEventListener);s!==-1&&vc.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Yr.protocol=X1;class V3 extends Yr{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),s=!1;Yr.priorWebsocketSuccess=!1;const o=()=>{s||(n.send([{type:"ping",data:"probe"}]),n.once("packet",y=>{if(!s)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Yr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(g(),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(){s||(s=!0,g(),n.close(),n=null)}const u=y=>{const v=new Error("probe error: "+y);v.transport=n.name,c(),this.emitReserved("upgradeError",v)};function f(){u("transport closed")}function h(){u("socket closed")}function p(y){n&&y.name!==n.name&&c()}const g=()=>{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(()=>{s||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let s=0;s<t.length;s++)~this.transports.indexOf(t[s])&&n.push(t[s]);return n}}let z3=class extends V3{constructor(t,n={}){const s=typeof t=="object"?t:n;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(o=>D3[o]).filter(o=>!!o)),super(t,s)}};function $3(e,t="",n){let s=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),s=fh(e)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const c=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+c+":"+s.port+t,s.href=s.protocol+"://"+c+(n&&n.port===s.port?"":":"+s.port),s}const W3=typeof ArrayBuffer=="function",H3=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,r2=Object.prototype.toString,q3=typeof Blob=="function"||typeof Blob<"u"&&r2.call(Blob)==="[object BlobConstructor]",K3=typeof File=="function"||typeof File<"u"&&r2.call(File)==="[object FileConstructor]";function Pp(e){return W3&&(e instanceof ArrayBuffer||H3(e))||q3&&e instanceof Blob||K3&&e instanceof File}function bc(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,s=e.length;n<s;n++)if(bc(e[n]))return!0;return!1}if(Pp(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return bc(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&bc(e[n]))return!0;return!1}function G3(e){const t=[],n=e.data,s=e;return s.data=ph(n,t),s.attachments=t.length,{packet:s,buffers:t}}function ph(e,t){if(!e)return e;if(Pp(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 s=0;s<e.length;s++)n[s]=ph(e[s],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=ph(e[s],t));return n}return e}function Q3(e,t){return e.data=mh(e.data,t),delete e.attachments,e}function mh(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]=mh(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=mh(e[n],t));return e}const Y3=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Be;(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"})(Be||(Be={}));class X3{constructor(t){this.replacer=t}encode(t){return(t.type===Be.EVENT||t.type===Be.ACK)&&bc(t)?this.encodeAsBinary({type:t.type===Be.EVENT?Be.BINARY_EVENT:Be.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Be.BINARY_EVENT||t.type===Be.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=G3(t),s=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(s),o}}class Ap extends ft{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 s=n.type===Be.BINARY_EVENT;s||n.type===Be.BINARY_ACK?(n.type=s?Be.EVENT:Be.ACK,this.reconstructor=new J3(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Pp(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 s={type:Number(t.charAt(0))};if(Be[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Be.BINARY_EVENT||s.type===Be.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");s.attachments=Number(u)}if(t.charAt(n+1)==="/"){const c=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););s.nsp=t.substring(c,n)}else s.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}s.id=Number(t.substring(c,n+1))}
vendor: 4,501 bytes, line 338
338if(t.charAt(++n)){const c=this.tryParse(t.substr(n));if(Ap.isPayloadValid(s.type,c))s.data=c;else throw new Error("invalid payload")}return s}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Be.CONNECT:return uv(n);case Be.DISCONNECT:return n===void 0;case Be.CONNECT_ERROR:return typeof n=="string"||uv(n);case Be.EVENT:case Be.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&Y3.indexOf(n[0])===-1);case Be.ACK:case Be.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class J3{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=Q3(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function uv(e){return Object.prototype.toString.call(e)==="[object Object]"}const Z3=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Ap,Encoder:X3,get PacketType(){return Be}},Symbol.toStringTag,{value:"Module"}));function Cn(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const eO=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class s2 extends ft{constructor(t,n,s){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,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Cn(t,"open",this.onopen.bind(this)),Cn(t,"packet",this.onpacket.bind(this)),Cn(t,"error",this.onerror.bind(this)),Cn(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 s,o,c;if(eO.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:Be.EVENT,data:n};if(u.options={},u.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const g=this.ids++,y=n.pop();this._registerAckCallback(g,y),u.id=g}const f=(o=(s=this.io.engine)===null||s===void 0?void 0:s.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 s;const o=(s=this.flags.timeout)!==null&&s!==void 0?s: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((s,o)=>{const c=(u,f)=>u?o(u):s(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 s={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?s.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...c)),s.pending=!1,this._drainQueue())),this._queue.push(s),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:Be.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 338
338_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(s=>String(s.id)===t)){const s=this.acks[t];delete this.acks[t],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Be.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 Be.EVENT:case Be.BINARY_EVENT:this.onevent(t);break;case Be.ACK:case Be.BINARY_ACK:this.onack(t);break;case Be.DISCONNECT:this.ondisconnect();break;case Be.CONNECT_ERROR:this.destroy();const s=new Error(t.data.message);s.data=t.data.data,this.emitReserved("connect_error",s);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 s of n)s.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 s=!1;return function(...o){s||(s=!0,n.packet({type:Be.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:Be.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 s=0;s<n.length;s++)if(t===n[s])return n.splice(s,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 s=0;s<n.length;s++)if(t===n[s])return n.splice(s,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 s of n)s.apply(this,t.data)}}}function Yi(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}Yi.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};Yi.prototype.reset=function(){this.attempts=0};Yi.prototype.setMin=function(e){this.ms=e};Yi.prototype.setMax=function(e){this.max=e};Yi.prototype.setJitter=function(e){this.jitter=e};class gh extends ft{constructor(t,n){var s;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,Jc(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((s=n.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Yi({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||Z3;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 z3(this.uri,this.opts);const n=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const o=Cn(n,"open",function(){s.onopen(),t&&t()}),c=f=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",f),t?t(f):this.maybeReconnectOnOpen()},u=Cn(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(Cn(t,"ping",this.onping.bind(this)),Cn(t,"data",this.ondata.bind(this)),Cn(t,"error",this.onerror.bind(this)),Cn(t,"close",this.onclose.bind(this)),Cn(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){Xc(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new s2(this,t,n),this.nsps[t]=s),s}_destroy(t){const n=Object.keys(this.nsps);for(const s of n)if(this.nsps[s].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let s=0;s<n.length;s++)this.engine.write(n[s],t.options)}
338cleanup(){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 s;this.cleanup(),(s=this.engine)===null||s===void 0||s.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 s=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&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Wo={};function wc(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=$3(e,t.path||"/socket.io"),s=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 gh(s,t):(Wo[o]||(Wo[o]=new gh(s,t)),h=Wo[o]),n.query&&!t.query&&(t.query=n.queryKey),h.socket(n.path,t)}Object.assign(wc,{Manager:gh,Socket:s2,io:wc,connect:wc});const tO=250;function dv(e,t){var n;const s=(n=e.token)!==null&&n!==void 0?n:Kr(),o={app_id:e.appId};s?o.token=s:o.anonymous_id=Lc();const c=wc(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 nO({config:e}){let t={...e};const n={},s={},o={connect:async()=>{const w=[];Object.keys(n).forEach(T=>{const A=v(T);A.length!==0&&(p(T),A.forEach(({connect:R})=>{const I=async()=>R==null?void 0:R();w.push(I())}))}),await Promise.all(w)},update_model:async w=>{const A=v(w.room).map(R=>{var I;return(I=R.update_model)===null||I===void 0?void 0:I.call(R,w)});await Promise.all(A)},error:async w=>{console.error("error",w);const T=Object.values(n).flat().map(A=>{var R;return(R=A.error)===null||R===void 0?void 0:R.call(A,w)});await Promise.all(T)}};let c=dv(e,o);function u(){f()}function f(){N(),c&&c.disconnect()}function h(w){u(),t={...t,...w},c=dv(t,o)}function p(w){c.emit("join",w)}function g(w){c.emit("leave",w)}async function y(w,T){var A;const R=JSON.stringify(T);return(A=o.update_model)===null||A===void 0?void 0:A.call(o,{room:w,data:R})}function v(w){var T;return(T=n[w])!==null&&T!==void 0?T:[]}function j(w){const T=s[w];T&&(clearTimeout(T),delete s[w])}function N(){Object.keys(s).forEach(w=>{var T,A;clearTimeout(s[w]),delete s[w],((A=(T=n[w])===null||T===void 0?void 0:T.length)!==null&&A!==void 0?A:0)===0&&delete n[w]})}function b(w){j(w),s[w]=setTimeout(()=>{var T,A;delete s[w],!(((A=(T=n[w])===null||T===void 0?void 0:T.length)!==null&&A!==void 0?A:0)>0)&&(g(w),delete n[w])},tO)}return{socket:c,subscribeToRoom:(w,T)=>{n[w]?j(w):(p(w),n[w]=[]),n[w].push(T);let A=!1;return()=>{var R,I;A||(A=!0,n[w]=(I=(R=n[w])===null||R===void 0?void 0:R.filter(V=>V!==T))!==null&&I!==void 0?I:[],n[w].length===0&&b(w))}},updateConfig:h,updateModel:y,disconnect:f}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(`
339  PartySocket requires a global 'EventTarget' class to be available!
340  You can polyfill this global by adding this to your code before any partysocket imports: 
341  
342  \`\`\`
343  import 'partysocket/event-target-polyfill';
344  \`\`\`
345  Please file an issue at https://github.com/partykit/partykit if you're still having trouble.
346`);
vendor: 5,074 bytes, line 346
346var i2=class extends Event{constructor(t,n){super("error",n);Ye(this,"message");Ye(this,"error");this.message=t.message,this.error=t}},o2=class extends Event{constructor(t=1e3,n="",s){super("close",s);Ye(this,"code");Ye(this,"reason");Ye(this,"wasClean",!0);this.code=t,this.reason=n}},Sf={Event,ErrorEvent:i2,CloseEvent:o2};function rO(e,t){if(!e)throw new Error(t)}function sO(e){return new e.constructor(e.type,e)}function iO(e){return"data"in e?new MessageEvent(e.type,e):"code"in e||"reason"in e?new o2(e.code||1999,e.reason||"unknown reason",e):"error"in e?new i2(e.error,e):new Event(e.type,e)}var Ov,oO=typeof process<"u"&&typeof((Ov=process.versions)==null?void 0:Ov.node)<"u"&&typeof document>"u",nc=oO?iO:sO,xs={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},fv=!1,aO=class ws extends EventTarget{constructor(n,s,o={}){super();Ye(this,"_ws");Ye(this,"_retryCount",-1);Ye(this,"_uptimeTimeout");Ye(this,"_connectTimeout");Ye(this,"_shouldReconnect",!0);Ye(this,"_connectLock",!1);Ye(this,"_binaryType","blob");Ye(this,"_closeCalled",!1);Ye(this,"_messageQueue",[]);Ye(this,"_url");Ye(this,"_protocols");Ye(this,"_options");Ye(this,"onclose",null);Ye(this,"onerror",null);Ye(this,"onmessage",null);Ye(this,"onopen",null);Ye(this,"_handleOpen",n=>{this._debug("open event");const{minUptime:s=xs.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),s),rO(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(nc(n))});Ye(this,"_handleMessage",n=>{this._debug("message event"),this.onmessage&&this.onmessage(n),this.dispatchEvent(nc(n))});Ye(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(nc(n)),this._connect()});Ye(this,"_handleClose",n=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(n),this.dispatchEvent(nc(n))});this._url=n,this._protocols=s,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 ws.CONNECTING}get OPEN(){return ws.OPEN}get CLOSING(){return ws.CLOSING}get CLOSED(){return ws.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((s,o)=>(typeof o=="string"?s+=o.length:o instanceof Blob?s+=o.size:s+=o.byteLength,s),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?ws.CLOSED:ws.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(n=1e3,s){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,s)}reconnect(n,s){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(n,s),this._connect())}send(n){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",n),this._ws.send(n);else{const{maxEnqueuedMessages:s=xs.maxEnqueuedMessages}=this._options;this._messageQueue.length<s&&(this._debug("enqueue",n),this._messageQueue.push(n))}}_debug(...n){this._options.debug&&console.log.apply(console,["RWS>",...n])}_getNextDelay(){const{reconnectionDelayGrowFactor:n=xs.reconnectionDelayGrowFactor,minReconnectionDelay:s=xs.minReconnectionDelay,maxReconnectionDelay:o=xs.maxReconnectionDelay}=this._options;let c=0;return this._retryCount>0&&(c=s*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 s=n();if(!s)return Promise.resolve(null);if(typeof s=="string"||Array.isArray(s))return Promise.resolve(s);if(s.then)return s}throw Error("Invalid protocols")}_getNextUrl(n){if(typeof n=="string")return Promise.resolve(n);if(typeof n=="function"){const s=n();if(typeof s=="string")return Promise.resolve(s);if(s.then)return s}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
346const{maxRetries:n=xs.maxRetries,connectionTimeout:s=xs.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"&&!fv&&(console.error(`‼️ No WebSocket implementation available. You should define options.WebSocket. 
347
348For example, if you're using node.js, run \`npm install ws\`, and then in your code:
349
350import PartySocket from 'partysocket';
351import WS from 'ws';
352
353const partysocket = new PartySocket({
354  host: "127.0.0.1:1999",
355  room: "test-room",
356  WebSocket: WS
357});
358
359`),fv=!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(),s)}).catch(o=>{this._connectLock=!1,this._handleError(new Sf.ErrorEvent(Error(o.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new Sf.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(n=1e3,s){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(n,s),this._handleClose(new Sf.CloseEvent(n,s,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)}};/*!
360 * Reconnecting WebSocket
361 * by Pedro Ladaria <[email protected]>
362 * https://github.com/pladaria/reconnecting-websocket
363 * License MIT
364 */const lO=1e3,cO=3e3,uO=new Set([405,409,422,503]),dO=new Set([400,403,404]);function fO(e){const t=e&&typeof e=="object"?e.status:void 0;return typeof t=="number"?t:void 0}function hO(e){return e instanceof Error?e:new Error(String(e))}class pO{constructor(t,n,s,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=s.transport==="proxy";const h=async()=>{var v;if(this.closed)throw new Error("Actor connection is closed");if(!f)try{const{websocket_url:j,token:N}=await s.mintConnectionToken(t,n,this.id),b=j.includes("?")?"&":"?";return`${j}${b}token=${encodeURIComponent(N)}`}catch(j){const N=fO(j);if(!(s.transport!=="direct"&&N!==void 0&&uO.has(N))){N!==void 0&&dO.has(N)&&this.close();try{(v=s.onMintError)===null||v===void 0||v.call(s,hO(j))}catch{}throw j}f=!0}return gO(s.host,t,n,this.id,s.appId,s.getAuthToken(),s.functionsVersion)},p=new aO(h);this.ws=p;let g=Date.now();const y=()=>{g=Date.now()};p.addEventListener("open",y),p.addEventListener("message",v=>{y();let j;try{j=JSON.parse(v.data)}catch{return}if((j&&typeof j=="object"?j.type:void 0)!=="__pong")for(const b of this.listeners)b(j)}),this.heartbeat=setInterval(()=>{if(Date.now()-g>cO){y(),p.readyState===p.OPEN&&p.reconnect();return}try{p.send(JSON.stringify({type:"__ping"}))}catch{}},lO)}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 mO(e,t,n,s){let o=null;return{connect(c){if(o)return o;const u=new pO(e,t,n,c,()=>{s.delete(u),o===u&&(o=null)});return o=u,s.add(u),u}}}function gO(e,t,n,s,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",s],["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 yO(e,t){return e&&!e.startsWith("/")?e:t??e}function xO(e){const t=new Set;return{module:new Proxy({},{get(s,o){if(!(typeof o!="string"||o==="then"))return c=>mO(o,c,e,t)}}),closeAll:()=>{for(const s of[...t])s.close()}}}function vO(e){var t,n,s,o;
364const{serverUrl:c="https://base44.app",appId:u,analytics:f,token:h,serviceToken:p,requiresAuth:g=!1,appBaseUrl:y,options:v,functionsVersion:j,headers:N}=e,b=typeof y=="string"?y:"",_={serverUrl:c,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:u,token:h};let w=null;const T=()=>(w||(w=nO({config:_})),w),A={...N,"X-App-Id":String(u)},R=j?{...A,"Base44-Functions-Version":j}:A,I=bi({baseURL:`${c}/api`,headers:A,token:h,onError:v==null?void 0:v.onError}),V=bi({baseURL:`${c}/api`,headers:R,token:h,interceptResponses:!1,onError:v==null?void 0:v.onError}),Z={...A,...h?{"on-behalf-of":`Bearer ${h}`}:{}},F=bi({baseURL:`${c}/api`,headers:Z,token:p,onError:v==null?void 0:v.onError}),ne=bi({baseURL:`${c}/api`,headers:R,token:p,interceptResponses:!1}),ye=bi({baseURL:`${c}/api`,headers:A}),Ne=J5(I,V,u,{appBaseUrl:b,token:h});if(typeof window<"u"){const me=h||Kr();me&&Ne.setToken(me)}const re=xO({appId:u,host:yO(c,typeof window<"u"?(t=window.location)===null||t===void 0?void 0:t.origin:void 0),functionsVersion:j,getAuthToken:()=>h||Kr(),mintConnectionToken:async(me,xe,G)=>{const le=h||Kr();return await ye.post(`/apps/${u}/actors/${encodeURIComponent(me)}/connection-token`,{room:xe,connection_id:G},{headers:{...le?{Authorization:`Bearer ${le}`}:{},...j?{"Base44-Functions-Version":j}:{}}})},transport:v==null?void 0:v.actorsTransport,onMintError:v==null?void 0:v.onError}),Se={entities:Jx({axios:I,appId:u,getSocket:T}),integrations:ev(I,u),connectors:r3(I,u),auth:Ne,functions:tv(V,u,{getAuthHeaders:()=>{const me={},xe=h||Kr();return xe&&(me.Authorization=`Bearer ${xe}`),me},baseURL:(n=V.defaults)===null||n===void 0?void 0:n.baseURL}),agents:nv({axios:I,getSocket:T,appId:u,serverUrl:c,token:h}),aiGateway:sv({serverUrl:c,token:h,appId:u}),appLogs:iv(I,u),app:a3(I,u),users:l3(I,u),analytics:I5({axiosClient:I,serverUrl:c,appId:u,userAuthModule:Ne,enabled:(s=f==null?void 0:f.enabled)!==null&&s!==void 0?s:!0}),actors:re.module,cleanup:()=>{Se.analytics.cleanup(),re.closeAll(),w&&w.disconnect()}},Te={entities:Jx({axios:F,appId:u,getSocket:T}),integrations:ev(F,u),sso:Z5(F,u),connectors:t3(F,u),functions:tv(ne,u,{getAuthHeaders:()=>{const me={};return p&&(me.Authorization=`Bearer ${p}`),me},baseURL:(o=ne.defaults)===null||o===void 0?void 0:o.baseURL}),agents:nv({axios:F,getSocket:T,appId:u,serverUrl:c,token:h}),aiGateway:sv({serverUrl:c,token:p,appId:u}),appLogs:iv(F,u),cleanup:()=>{w&&w.disconnect()}};return g&&typeof window<"u"&&setTimeout(async()=>{try{await Se.auth.isAuthenticated()||Se.auth.redirectToLogin(window.location.href)}catch(me){console.error("Authentication check failed:",me),Se.auth.redirectToLogin(window.location.href)}},0),{...Se,fetchWithAuth:i3({axios:I,serviceRoleAxios:F,appId:String(u),serverUrl:c,functionsVersion:j,platformHeaders:N}),setToken(me){Se.auth.setToken(me),w&&w.updateConfig({token:me}),_.token=me},getConfig(){return{serverUrl:c,appId:u,requiresAuth:g}},get asServiceRole(){if(!p)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return Te}}}const a2=typeof window>"u",bO=a2?{localStorage:new Map}:window,ia=bO.localStorage,wO=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),xi=(e,{defaultValue:t=void 0,removeFromUrl:n=!1}={})=>{if(a2)return t;const s=`base44_${wO(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 ia.setItem(s,c),c;if(t)return ia.setItem(s,t),t;const u=ia.getItem(s);return u||null},SO=()=>(xi("clear_access_token")==="true"&&(ia.removeItem("base44_access_token"),ia.removeItem("token")),{appId:xi("app_id",{defaultValue:"69d570bf9daf11d7a45beb82"}),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})}),Xo={...SO()},{appId:kO,token:jO,functionsVersion:NO,appBaseUrl:_O}=Xo,Pe=vO({appId:kO,token:jO,functionsVersion:NO,serverUrl:"",requiresAuth:!1,appBaseUrl:_O});function EO({}){var o;const t=ts().pathname.substring(1),{data:n,isFetched:s}=g_({queryKey:["user"],queryFn:async()=>{try{return{user:await Pe.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."]})]}),s&&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 l2=E.createContext(),CO=({children:e})=>{const[t,n]=E.useState(null),[s,o]=E.useState(!1),[c,u]=E.useState(!0),[f,h]=E.useState(!0),[p,g]=E.useState(null),[y,v]=E.useState(null);E.useEffect(()=>{j()},[]);const j=async()=>{var w,T;try{h(!0),g(null);const A=bi({baseURL:"/api/apps/public",headers:{"X-App-Id":Xo.appId},token:Xo.token,interceptResponses:!0});try{const R=await A.get(`/prod/public-settings/by-id/${Xo.appId}`);v(R),Xo.token?await N():(u(!1),o(!1)),h(!1)}catch(R){if(console.error("App state check failed:",R),R.status===403&&((T=(w=R.data)==null?void 0:w.extra_data)!=null&&T.reason)){const I=R.data.extra_data.reason;g(I==="auth_required"?{type:"auth_required",message:"Authentication required"}:I==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:I,message:R.message})}else g({type:"unknown",message:R.message||"Failed to load app"});h(!1),u(!1)}}catch(A){console.error("Unexpected error:",A),g({type:"unknown",message:A.message||"An unexpected error occurred"}),h(!1),u(!1)}},N=async()=>{try{u(!0);const w=await Pe.auth.me();n(w),o(!0),u(!1)}catch(w){console.error("User auth check failed:",w),u(!1),o(!1),(w.status===401||w.status===403)&&g({type:"auth_required",message:"Authentication required"})}},b=(w=!0)=>{n(null),o(!1),w?Pe.auth.logout(window.location.href):Pe.auth.logout()},_=()=>{Pe.auth.redirectToLogin(window.location.href)};return l.jsx(l2.Provider,{value:{user:t,isAuthenticated:s,isLoadingAuth:c,isLoadingPublicSettings:f,authError:p,appPublicSettings:y,logout:b,navigateToLogin:_,checkAppState:j},children:e})},TO=()=>{const e=E.useContext(l2);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},PO=()=>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"})]})]})]})})});function yh({size:e=20}){const t=[{label:"Instagram",href:"https://www.instagram.com/mikeeatss/",color:"#E4405F",icon:l.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"
364currentColor",children:l.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z"})})},{label:"TikTok",href:"https://www.tiktok.com/@mikeeats_",color:"#00F2EA",icon:l.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",children:l.jsx("path",{d:"M19.59 6.69a4.83 4.83 0 01-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 01-2.88 2.5 2.89 2.89 0 01-2.89-2.89 2.89 2.89 0 012.89-2.89c.28 0 .54.04.79.1v-3.5a6.37 6.37 0 00-.79-.05A6.34 6.34 0 003.15 15.2a6.34 6.34 0 0010.86 4.48V13a8.28 8.28 0 005.58 2.17V11.7a4.83 4.83 0 01-3.77-1.85V6.69h3.77z"})})},{label:"Facebook",href:"https://www.facebook.com/share/1bfRGHhXqN/?mibextid=wwXIfr",color:"#1877F2",icon:l.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",children:l.jsx("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})},{label:"YouTube",href:"https://www.youtube.com/@MikeEatss",color:"#FF0000",icon:l.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",children:l.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})})}];return l.jsx("div",{className:"flex items-center gap-3",children:t.map(n=>l.jsx("a",{href:n.href,target:"_blank",rel:"noopener noreferrer","aria-label":n.label,className:"p-2 rounded-full text-muted-foreground transition-all duration-300 hover:-translate-y-1",style:{"--glow":n.color},onMouseEnter:s=>{s.currentTarget.style.color=n.color,s.currentTarget.style.boxShadow=`0 4px 20px ${n.color}40`},onMouseLeave:s=>{s.currentTarget.style.color="",s.currentTarget.style.boxShadow=""},children:n.icon},n.label))})}const hv=[{label:"Menu",href:"#menu"},{label:"🍂 Fall Menu",href:"/fall-menu"},{label:"Gallery",href:"#gallery"},{label:"Flavors",href:"#flavors"},{label:"Build",href:"#builder"},{label:"Catering",href:"#catering"},{label:"Reviews",href:"#reviews"},{label:"FAQ",href:"#faq"},{label:"About",href:"#about"},{label:"Stories",href:"/blog"},{label:"Track Order",href:"/track"},{label:"Ship Order",href:"/shipping"},{label:"CRAVE CLUB",href:"/dashboard"}];function Kn(){const[e,t]=E.useState(!1),[n,s]=E.useState(!1);return ts().pathname,E.useEffect(()=>{Pe.auth.me().then(c=>{(c==null?void 0:c.role)==="admin"&&s(!0)}).catch(()=>{})},[]),l.jsxs("header",{className:"fixed top-0 left-0 right-0 z-50 bg-background/80 backdrop-blur-lg border-b border-border/50",children:[l.jsxs("div",{className:"max-w-7xl mx-auto px-6 md:px-[8vw] flex items-center justify-between h-16 md:h-20",children:[l.jsxs(lr,{to:"/",className:"font-heading text-2xl md:text-3xl font-semibold tracking-tight text-foreground",children:["Mike",l.jsx("span",{className:"text-primary",children:"Eats"})]}),l.jsxs("nav",{className:"hidden md:flex items-center gap-8",children:[hv.map(c=>c.href.startsWith("/")?l.jsx(lr,{to:c.href,className:"font-body text-sm font-medium text-muted-foreground hover:text-foreground transition-colors duration-300",children:c.label},c.href):l.jsx("a",{href:c.href,className:"font-body text-sm font-medium text-muted-foreground hover:text-foreground transition-colors duration-300",children:c.label},c.href)),l.jsx(yh,{size:18}),n&&l.jsx(lr,{to:"/admin",className:"px-3 py-1.5 bg-primary text-primary-foreground font-body text-xs font-semibold rounded-full hover:opacity-90 transition-all",children:"Admin"})]}),l.jsx("button",{className:"md:hidden p-2 text-foreground",onClick:()=>t(!e),"aria-label":"Toggle menu",children:e?l.jsx($i,{size:24}):l.jsx(Hv,{size:24})})]}),e&&l.jsxs("div",{className:"md:hidden bg-background border-t border-border px-6 pb-6 pt-4 space-y-4 animate-in slide-in-from-top-2 duration-200",children:[hv.map(c=>c.href.startsWith("/")?l.jsx(lr,{to:c.href,onClick:()=>t(!1),className:"block font-body text-base font-medium text-foreground",children:c.label},c.href):l.jsx("a",{href:c.href,onClick:()=>t(!1),className:"block font-body text-base font-medium text-foreground",children:c.label},c.href)),n&&l.jsx(lr,{to:"/admin",onClick:()=>t(!1),className:"block font-body text-base font-semibold text-primary",children:"🔐 Admin Dashboard"}),l.jsx("div",{className:"pt-2",children:l.jsx(yh,{size:22})})]})]})}const rc=["Did you know? The cheesecake we know today has roots in ancient Greece, dating back thous
364ands of years!","Fun fact: A typical cheesecake contains about 2 pounds of cream cheese — that's the secret to perfection!","Baking tip: Always let your cheesecake cool gradually. Rapid temperature changes cause cracks!","Did you know? The New York style cheesecake became famous in the 1940s at Junior's restaurant in Brooklyn.","Baking tip: Room temperature ingredients mix better and create a smoother batter.","Fun fact: Cheesecake is technically a custard pie, not a cake — the creamy filling is the star!","Did you know? Adding sour cream to cheesecake batter creates that signature tangy flavor.","Baking tip: A water bath (bain-marie) helps your cheesecake bake evenly and prevents cracks.","Fun fact: The strawberry is the most popular cheesecake topping in North America!","Baking tip: Don't skip the cooling phase in the oven — it prevents the dreaded cheesecake sink."];function AO(){const[e,t]=E.useState("");return E.useEffect(()=>{const n=new Date().toDateString();if(localStorage.getItem("funFactDate")!==n){const o=Math.floor(Math.random()*rc.length);t(rc[o]),localStorage.setItem("funFactDate",n),localStorage.setItem("funFact",rc[o])}else t(localStorage.getItem("funFact")||rc[0])},[]),l.jsx("div",{className:"bg-primary/5 border-t border-border px-6 py-4",children:l.jsxs("div",{className:"max-w-7xl mx-auto flex items-start gap-3",children:[l.jsx(aj,{className:"w-5 h-5 text-primary shrink-0 mt-0.5"}),l.jsx("p",{className:"font-body text-sm text-muted-foreground",children:e})]})})}function c2(){const e=[{icon:qv,label:"SSL Secure",desc:"Encrypted transactions"},{icon:Nh,label:"Data Protected",desc:"PCI DSS compliant"},{icon:qk,label:"Secure Payments",desc:"Stripe verified"},{icon:Wn,label:"Verified Seller",desc:"Trusted business"}];return l.jsx("div",{className:"flex flex-wrap gap-6 justify-center md:justify-start py-8",children:e.map(t=>{const n=t.icon;return l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(n,{className:"w-5 h-5 text-primary shrink-0"}),l.jsxs("div",{children:[l.jsx("p",{className:"font-body text-xs font-semibold text-foreground",children:t.label}),l.jsx("p",{className:"font-body text-xs text-muted-foreground",children:t.desc})]})]},t.label)})})}const RO=Object.freeze(Object.defineProperty({__proto__:null,default:c2},Symbol.toStringTag,{value:"Module"}));function Gn(){return l.jsxs("footer",{className:"bg-foreground text-background",children:[l.jsxs("div",{className:"max-w-7xl mx-auto px-6 md:px-[8vw] py-16",children:[l.jsxs("div",{className:"grid md:grid-cols-3 gap-12 md:gap-8",children:[l.jsxs("div",{children:[l.jsxs("h3",{className:"font-heading text-3xl font-semibold mb-4",children:["Mike",l.jsx("span",{className:"opacity-60",children:"Eats"})]}),l.jsx("p",{className:"font-body text-sm opacity-60 leading-relaxed max-w-xs",children:"Handcrafted desserts made with love. From signature cheesecakes to party bundles — every bite tells a story."})]}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-body text-sm font-semibold uppercase tracking-widest mb-4 opacity-40",children:"Quick Links"}),l.jsx("nav",{className:"flex flex-col gap-3",children:[{label:"Menu",href:"#menu"},{label:"Gallery",href:"#gallery"},{label:"Catering",href:"#catering"},{label:"Contact",href:"/contact"},{label:"Legal",href:"/legal"}].map(e=>e.href.startsWith("/")?l.jsx(lr,{to:e.href,className:"font-body text-sm opacity-60 hover:opacity-100 transition-opacity duration-300",children:e.label},e.href):l.jsx("a",{href:e.href,className:"font-body text-sm opacity-60 hover:opacity-100 transition-opacity duration-300",children:e.label},e.href))})]}),l.jsxs("div",{children:[l.jsx("h4",{className:"font-body text-sm font-semibold uppercase tracking-widest mb-4 opacity-40",children:"Connect"}),l.jsx("a",{href:"mailto:[email protected]",className:"font-body text-sm opacity-60 hover:opacity-100 transition-opacity duration-300 block mb-4",children:"[email protected]"}),l.jsx(yh,{size:22})]})]}),l.jsxs("div",{className:"mt-16 pt-8 border-t border-background/10",children:[l.jsx(c2,{}),l.jsx("div",{className:"text-center mt-8",children:l.jsxs("p",{className:"font-body text-xs opacity-40",children:["© ",new Date().getFullYear()," MikeEats. All rights reserved. Handcrafted with passion."]})})]})]}),l.jsx(AO,{})]})}const pv=["#C8860A","#2D6A2D","#8B1A1A","#E8C84A","#1A4A7A","#C8860A","#8B1A1A","#2D6A2D","#E8C84A","#1A4A7A"];function Ns({flipped:e=!1}){return l.jsx("div",{className:`w-full flex ${e?"flex-row-reverse":""}`,style:{height:"10px"},children:Array.from({length:60}).map((t,n)=>l.jsx("div",{className:"flex-1 h-full",style:{backgroundColor:pv[n%pv.length]}},n))})}
364function Vs({symbol:e="gye_nyame",className:t="",size:n=48,color:s="currentColor",opacity:o=.15}){const c={gye_nyame:l.jsxs("svg",{viewBox:"0 0 100 100",width:n,height:n,className:t,style:{opacity:o},children:[l.jsx("circle",{cx:"50",cy:"50",r:"42",fill:"none",stroke:s,strokeWidth:"3"}),l.jsx("circle",{cx:"50",cy:"50",r:"30",fill:"none",stroke:s,strokeWidth:"2"}),l.jsx("circle",{cx:"50",cy:"50",r:"10",fill:s}),[0,45,90,135,180,225,270,315].map((u,f)=>{const h=u*Math.PI/180;return l.jsx("line",{x1:50+13*Math.cos(h),y1:50+13*Math.sin(h),x2:50+28*Math.cos(h),y2:50+28*Math.sin(h),stroke:s,strokeWidth:"2.5"},f)}),[0,90,180,270].map((u,f)=>{const h=u*Math.PI/180;return l.jsx("circle",{cx:50+38*Math.cos(h),cy:50+38*Math.sin(h),r:"5",fill:s},f)})]}),sankofa:l.jsxs("svg",{viewBox:"0 0 100 100",width:n,height:n,className:t,style:{opacity:o},children:[l.jsx("path",{d:"M50 20 C30 20 15 35 15 50 C15 65 30 80 50 80 C70 80 85 65 85 50 C85 35 70 20 50 20Z",fill:"none",stroke:s,strokeWidth:"3"}),l.jsx("path",{d:"M35 50 Q50 30 65 50 Q50 70 35 50Z",fill:s}),l.jsx("circle",{cx:"50",cy:"15",r:"7",fill:s}),l.jsx("line",{x1:"50",y1:"80",x2:"50",y2:"95",stroke:s,strokeWidth:"3"}),l.jsx("line",{x1:"40",y1:"90",x2:"50",y2:"95",stroke:s,strokeWidth:"3"}),l.jsx("line",{x1:"60",y1:"90",x2:"50",y2:"95",stroke:s,strokeWidth:"3"})]}),dwennimmen:l.jsxs("svg",{viewBox:"0 0 100 100",width:n,height:n,className:t,style:{opacity:o},children:[[0,90,180,270].map((u,f)=>{const h=u*Math.PI/180,p=50+22*Math.cos(h),g=50+22*Math.sin(h);return l.jsx("circle",{cx:p,cy:g,r:"16",fill:"none",stroke:s,strokeWidth:"3"},f)}),l.jsx("circle",{cx:"50",cy:"50",r:"10",fill:s}),l.jsx("circle",{cx:"50",cy:"50",r:"5",fill:"transparent",stroke:s,strokeWidth:"2"})]}),aya:l.jsxs("svg",{viewBox:"0 0 100 100",width:n,height:n,className:t,style:{opacity:o},children:[l.jsx("line",{x1:"50",y1:"90",x2:"50",y2:"10",stroke:s,strokeWidth:"3"}),[25,35,45,55,65,75].map((u,f)=>{const h=18-f*1.5;return l.jsxs("g",{children:[l.jsx("path",{d:`M50 ${u} Q${50-h} ${u-8} ${50-h+4} ${u-18}`,fill:"none",stroke:s,strokeWidth:"2.5"}),l.jsx("path",{d:`M50 ${u} Q${50+h} ${u-8} ${50+h-4} ${u-18}`,fill:"none",stroke:s,strokeWidth:"2.5"})]},f)})]})};return c[e]||c.gye_nyame}const OO=[{name:"Black Lives Matter",tagline:"Fighting for Black lives, dignity, and justice",description:"Black Lives Matter is a global movement fighting against anti-Black racism and police violence. Their foundation funds Black-led organizations working on healing, justice, and systemic change across communities.",url:"https://blacklivesmatter.com/donate",color:"from-gray-900/90 to-gray-800/70",accent:"#E8C84A",flag:"✊🏿"},{name:"NAACP",tagline:"Over 100 years fighting for civil rights",description:"The NAACP is America's oldest and most powerful civil rights organization, fighting for political, educational, social, and economic equality for all. Their legal defense fund and advocacy work has shaped American history.",url:"https://naacp.org/donate",color:"from-blue-900/80 to-blue-800/60",accent:"#C8860A",flag:"🏛️"},{name:"Black Youth Helpline",tagline:"Mental health support for Black youth & families",description:"The Black Youth Helpline provides free, culturally sensitive mental health support and crisis intervention for Black children, youth, and families across North America. They're on the front lines every day for our community.",url:"https://blackyouthhelpline.com/donate",color:"from-red-900/80 to-red-800/60",accent:"#E8C84A",flag:"🖤"},{name:"CAMFED",tagline:"African women-led — educating girls, transforming communities",description:"CAMFED (Campaign for Female Education) is an African women-led nonprofit that supports girls' education and young women's leadership across sub-Saharan Africa. Every dollar goes directly to breaking the cycle of poverty through education.",url:"https://camfed.org/donate",color:"from-green-900/80 to-green-800/60",accent:"#C8860A",flag:"🌍"}],MO=[{icon:"✊",title:"Community First",body:"Every dessert MikeEats sells is a reinvestment in community. When you order, you're supporting a Black-owned business that gives back."},{icon:"📚",title:"Education is Power",body:"We believe in lifting the next generation. From local youth to girls across Africa — education changes everything."},{icon:"💬",title:"Mental Health Matters",body:"The Black community deserves culturally competent mental health support. We're proud to spotlight organizations doing that work."},{icon:"🌱",title:"Build Together",body:"Ubuntu — I am because we are. MikeEats was built on that principle. Support Black businesses. Support each other."}];function LO(){return l.jsxs("div",{className:"min-h-screen bg-background",children:[l.jsx(Kn,{}),l.jsx(Ns,{}),l.jsxs("div",{className:"bg-foreground text-background relative overflow-hidden pt-28 pb-20",children:[l.jsx("div",{className:"absolute top-10 right-10 hidden md:block",children:l.jsx(Vs,{symbol:"gye_nyame",size:100,color:"#E8C84A",opacity:.15})}),l.jsx("div",{className:"absolute bottom-0 left-0 right-0",children:l.jsx(Ns,{})}),l.jsxs("div",{className:"max-w-4xl mx-auto px-6 md:px-[8vw]",children:[l.jsxs(lr,{to:"/",className:"inline-flex items-center gap-2 font-body text-sm text-background/50 hover:text-background transition-colors mb-10",children:[l.jsx(Tk,{size:16})," Back to MikeEats"]}),l.jsxs(K.div,{initial:{opacity:0,y:30}
364,animate:{opacity:1,y:0},transition:{duration:.6},children:[l.jsx("p",{className:"font-body text-xs uppercase tracking-[0.3em] text-primary mb-4",children:"MikeEats Community"}),l.jsxs("h1",{className:"font-heading text-5xl md:text-7xl font-semibold leading-tight mb-6",children:["Black Empowerment",l.jsx("br",{}),"& Community"]}),l.jsx("p",{className:"font-body text-lg text-background/70 leading-relaxed max-w-xl",children:"MikeEats is more than desserts — it's a statement. We're a Black-owned business rooted in community, culture, and giving back. Here's what we stand for and who we support."})]})]})]}),l.jsx("div",{className:"py-20 md:py-28",children:l.jsxs("div",{className:"max-w-5xl mx-auto px-6 md:px-[8vw]",children:[l.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-14",children:[l.jsx("p",{className:"font-body text-xs uppercase tracking-[0.3em] text-primary mb-3",children:"What We Believe"}),l.jsx("h2",{className:"font-heading text-4xl md:text-5xl font-semibold text-foreground",children:"Our Values"})]}),l.jsx("div",{className:"grid sm:grid-cols-2 gap-6",children:MO.map((e,t)=>l.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:t*.08},className:"bg-secondary/50 border border-border rounded-2xl p-7",children:[l.jsx("span",{className:"text-3xl block mb-4",children:e.icon}),l.jsx("h3",{className:"font-heading text-xl font-semibold text-foreground mb-2",children:e.title}),l.jsx("p",{className:"font-body text-sm text-muted-foreground leading-relaxed",children:e.body})]},e.title))})]})}),l.jsxs("div",{className:"py-20 md:py-28 bg-foreground relative overflow-hidden",children:[l.jsx("div",{className:"absolute top-0 left-0 right-0",children:l.jsx(Ns,{})}),l.jsx("div",{className:"absolute bottom-0 left-0 right-0",children:l.jsx(Ns,{flipped:!0})}),l.jsxs("div",{className:"max-w-4xl mx-auto px-6 md:px-[8vw] pt-8 pb-8",children:[l.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-14",children:[l.jsx(zv,{className:"w-8 h-8 text-primary mx-auto mb-4"}),l.jsx("p",{className:"font-body text-xs uppercase tracking-[0.3em] text-primary mb-3",children:"Give Back"}),l.jsx("h2",{className:"font-heading text-4xl md:text-5xl font-semibold text-background mb-4",children:"Organizations We Support"}),l.jsx("p",{className:"font-body text-sm text-background/60 max-w-md mx-auto",children:"If MikeEats has ever brought sweetness to your life, consider passing that energy forward. These two organizations are doing real work in our community."})]}),l.jsx("div",{className:"space-y-6",children:OO.map((e,t)=>l.jsx(K.div,{initial:{opacity:0,x:t%2===0?-20:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5,delay:t*.1},className:`bg-gradient-to-r ${e.color} border border-background/10 rounded-3xl p-8`,children:l.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-6",children:[l.jsxs("div",{className:"flex-1",children:[l.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[l.jsx("span",{className:"text-3xl",children:e.flag}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-heading text-2xl font-semibold text-background",children:e.name}),l.jsx("p",{className:"font-body text-xs text-background/60 uppercase tracking-wider",children:e.tagline})]})]}),l.jsx("p",{className:"font-body text-sm text-background/80 leading-relaxed max-w-lg",children:e.description})]}),l.jsxs("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-7 py-3.5 rounded-full font-body text-sm font-semibold transition-all hover:scale-105 shrink-0",style:{backgroundColor:e.accent,color:"#1a1a0f"},children:["Donate Now ",l.jsx(Vv,{className:"w-4 h-4"})]})]})},e.name))}),l.jsx(K.p,{initial:{opacity:0}
364,whileInView:{opacity:1},viewport:{once:!0},className:"text-center font-body text-xs text-background/40 mt-8",children:"MikeEats does not handle donations — links go directly to each organization's official donation page."})]})]}),l.jsx("div",{className:"py-20 md:py-24 bg-secondary/40",children:l.jsxs("div",{className:"max-w-2xl mx-auto px-6 text-center",children:[l.jsx(Vs,{symbol:"dwennimmen",size:50,color:"hsl(var(--primary))",opacity:.4,className:"mx-auto mb-6"}),l.jsx("blockquote",{className:"font-heading text-3xl md:text-4xl font-semibold text-foreground leading-snug mb-6",children:'"A child who is not embraced by the village will burn it down to feel its warmth."'}),l.jsx("p",{className:"font-body text-sm text-muted-foreground uppercase tracking-widest",children:"— African Proverb"}),l.jsx("div",{className:"mt-8 w-12 h-0.5 bg-primary mx-auto"}),l.jsx("p",{className:"font-body text-sm text-muted-foreground mt-6 leading-relaxed",children:"That's why we invest in our youth. That's why we support organizations that wrap arms around the next generation."})]})}),l.jsx(Gn,{})]})}const DO="modulepreload",IO=function(e){return"/"+e},mv={},Ft=function(t,n,s){let o=Promise.resolve();if(n&&n.length>0){let u=function(p){return Promise.all(p.map(g=>Promise.resolve(g).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};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=IO(p),p in mv)return;mv[p]=!0;const g=p.endsWith(".css"),y=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const v=document.createElement("link");if(v.rel=g?"stylesheet":DO,g||(v.as="script"),v.crossOrigin="",v.href=p,h&&v.setAttribute("nonce",h),document.head.appendChild(v),g)return new Promise((j,N)=>{v.addEventListener("load",j),v.addEventListener("error",()=>N(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)})};function FO(){const[e,t]=E.useState(""),[n,s]=E.useState(!0);return E.useEffect(()=>{const c=new Date("2026-04-08T00:00:00").getTime()+336*60*60*1e3,u=()=>{const h=new Date().getTime(),p=c-h;if(p<=0){s(!1);return}const g=Math.floor(p/(1e3*60*60*24)),y=Math.floor(p%(1e3*60*60*24)/(1e3*60*60)),v=Math.floor(p%(1e3*60*60)/(1e3*60));t(`${g}d ${y}h ${v}m`)};u();const f=setInterval(u,6e4);return()=>clearInterval(f)},[]),n?l.jsxs(K.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},className:"relative overflow-hidden bg-gradient-to-r from-primary via-primary/90 to-primary text-primary-foreground",children:[l.jsx("div",{className:"absolute inset-0 opacity-20",children:l.jsx(K.div,{animate:{rotate:360},transition:{duration:20,repeat:1/0,ease:"linear"},className:"absolute top-0 right-0 w-96 h-96 bg-gradient-to-br from-white to-transparent rounded-full blur-3xl"})}),l.jsx("div",{className:"absolute top-0 left-0 w-24 h-24 bg-white opacity-10 transform -rotate-45"}),l.jsx("div",{className:"absolute bottom-0 right-0 w-32 h-32 bg-white opacity-10 transform rotate-45"}),l.jsx("div",{className:"relative px-6 md:px-[8vw] py-6 md:py-8",children:l.jsx("div",{className:"max-w-7xl mx-auto",children:l.jsxs(K.div,{initial:{scale:.9},animate:{scale:1},transition:{duration:.5,delay:.3},className:"text-center",children:[l.jsx("div",{className:"inline-block mb-3",children:l.jsx(K.span,{animate:{rotate:[0,5,-5,0]},transition:{duration:2,repeat:1/0},className:"inline-block px-6 py-2 bg-white/20 backdrop-blur-sm border-2 border-white rounded-full font-heading text-sm font-bold uppercase tracking-widest",children:"🎉 Grand Opening 🎉"})}),l.jsx("h2",{className:"font-heading text-4xl md:text-6xl font-bold mb-2 drop-shadow-lg",children:l.jsx(K.span,{animate:{scale:[1,1.05,1]},transition:{duration:1.5,repeat:1/0},className:"inline-block",children:"5% OFF"})}),l.jsx("p",{className:"font-body text-lg md:text-xl font-semibold mb-4 drop-shadow",children:"All Orders for the First 2 Weeks"}
364),l.jsxs(K.div,{animate:{opacity:[1,.8,1]},transition:{duration:2,repeat:1/0},className:"font-body text-sm md:text-base font-bold",children:["Offer expires in: ",l.jsx("span",{className:"text-white bg-black/20 px-3 py-1 rounded-full",children:e})]})]})})}),l.jsxs("div",{className:"absolute bottom-0 left-0 right-0 h-20 overflow-hidden",children:[l.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 1200 80",preserveAspectRatio:"none",className:"absolute inset-0",style:{backgroundImage:`url('data:image/svg+xml;utf8,<svg width="1200" height="80" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="ribbon1" x="0" y="0" width="600" height="80" patternUnits="userSpaceOnUse"><path d="M0,40 Q150,10 300,40 T600,40" stroke="rgba(255,255,255,0.3)" stroke-width="8" fill="none" stroke-linecap="round"/><path d="M0,40 Q150,10 300,40 T600,40" stroke="rgba(255,255,255,0.5)" stroke-width="4" fill="none" stroke-linecap="round" stroke-dasharray="50,50"/></pattern></defs><rect width="1200" height="80" fill="url(%23ribbon1)"/></svg>')`,backgroundSize:"600px 80px",animation:"ribbon-flow 12s linear infinite"}}),l.jsx("style",{children:`
365          @keyframes ribbon-flow {
366            0% { background-position: 0 0; }
367            100% { background-position: 600px 0; }
368          }
369        `})]})]}):null}function BO(){const[e,t]=E.useState(null),[n,s]=E.useState(!1);return E.useEffect(()=>{Pe.entities.Special.filter({active:!0}).then(o=>{o.length>0&&t(o[0])}).catch(()=>{})},[]),!e||n?null:l.jsx(fr,{children:l.jsxs(K.div,{initial:{y:-60,opacity:0},animate:{y:0,opacity:1},exit:{y:-60,opacity:0},transition:{duration:.4},className:"fixed top-0 left-0 right-0 z-[60] bg-primary text-primary-foreground",children:[l.jsx("div",{className:"flex h-1",children:["#C8860A","#2D6A2D","#8B1A1A","#E8C84A","#1A4A7A"].map((o,c)=>l.jsx("div",{className:"flex-1",style:{backgroundColor:o}},c))}),l.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-2.5 flex items-center justify-between gap-4",children:[l.jsxs("div",{className:"flex items-center gap-3 flex-1 justify-center",children:[l.jsx(Kv,{className:"w-4 h-4 shrink-0"}),e.badge&&l.jsx("span",{className:"hidden sm:inline bg-primary-foreground/20 text-primary-foreground font-body text-xs font-semibold px-2 py-0.5 rounded-full uppercase tracking-wider",children:e.badge}),l.jsxs("p",{className:"font-body text-sm font-medium text-center",children:[l.jsx("span",{className:"font-semibold",children:e.title}),e.description&&l.jsxs("span",{className:"hidden sm:inline opacity-80",children:[" — ",e.description]})]}),l.jsx("a",{href:"#catering",onClick:()=>s(!0),className:"hidden sm:inline font-body text-xs underline underline-offset-2 opacity-80 hover:opacity-100 whitespace-nowrap",children:"Order now →"})]}),l.jsx("button",{onClick:()=>s(!0),className:"shrink-0 opacity-70 hover:opacity-100 transition-opacity",children:l.jsx($i,{className:"w-4 h-4"})})]})]})})}function xh(){try{return JSON.parse(localStorage.getItem("mikeeats_cart")||"[]")}catch{return[]}}function vh(e){localStorage.setItem("mikeeats_cart",JSON.stringify(e)),window.dispatchEvent(new Event("cart_updated"))}function oa(e){const t=xh(),n=t.find(s=>s.id===e.id);n?n.qty=(n.qty||1)+1:t.push({...e,qty:1}),vh(t)}function UO(){const[e,t]=E.useState(!1),[n,s]=E.useState(xh()),[o,c]=E.useState(!1),[u,f]=E.useState(!1),[h,p]=E.useState(""),[g,y]=E.useState(null),[v,j]=E.useState("");E.useEffect(()=>{const V=()=>s(xh());return window.addEventListener("cart_updated",V),()=>window.removeEventListener("cart_updated",V)},[]);const N=n.reduce((V,Z)=>V+(Z.price||0)*(Z.qty||1),0),b=n.reduce((V,Z)=>V+(Z.qty||1),0),_=async()=>{var Z,F;const V=h.trim().toUpperCase();if(V==="WELCOME10")y({code:"WELCOME10",percent:10});else if(V==="COMEBACK15")try{const ne=await Pe.functions.invoke("validateComebackCoupon",{});(Z=ne.data)!=null&&Z.valid?y({code:"COMEBACK15",percent:15}):(y(null),alert(((F=ne.data)==null?void 0:F.message)||"COMEBACK15 is only valid for customers who haven't ordered in 60+ days."))}catch{y(null),alert("Could not validate code. Please try again.")}else y(null)},w=g?N*(g.percent/100):0,T=N-w,A=V=>{vh(n.filter(Z=>Z.id!==V))},R=(V,Z)=>{const F=n.map(ne=>ne.id===V?{...ne,qty:Math.max(1,(ne.qty||1)+Z)}:ne);vh(F)},I=async()=>{var Z;if(!n||n.length===0){alert("Your cart is empty");return}c(!0),f(!1);const V=setTimeout(()=>f(!0),5e3);try{console.log("[Cart] Starting checkout with items:",n);const F=await Pe.functions.invoke("create-checkout",{cartItems:n,neededBy:v,discountCode:g?g.code:null});clearTimeout(V),console.log("[Cart] Checkout response:",F),(Z=F.data)!=null&&Z.url?(console.log("[Cart] Redirecting to:",F.data.url),window.location.href=F.data.url):(console.error("[Cart] No URL in response:",F.data),alert("Failed to create checkout session. Please try again."))}catch(F){clearTimeout(V),console.error("[Cart] Checkout error:",F),alert("Checkout error: "+(F.message||"Unknown error"))}finally{c(!1),f(!1)}};return l.jsxs(l.Fragment,{children:[l.jsxs("button",{onClick:()=>t(!0),className:"fixed bottom-4 right-4 sm:bottom-6 sm:right-6 z-50 w-14 h-14 bg-primary text-primary-foreground rounded-full shadow-2xl flex items-center justify-center hover:opacity-90 transition-all",children:[l.jsx(cc,{className:"w-6 h-6"}),b>0&&l.jsx("span",{className:"absolute -top-1 -right-1 w-5 h-5 bg-red-500 text-white text-xs font-bold rounded-full flex items-center justify-center",children:b})]}),l.jsx(fr,{children:e&&l.jsxs(l.Fragment,{children:[l.jsx(K.div,{initial:{opacity:0}
369,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-foreground/40 z-50 backdrop-blur-sm",onClick:()=>t(!1)}),l.jsxs(K.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:28,stiffness:260},className:"fixed top-0 right-0 h-full w-full max-w-sm bg-background z-50 shadow-2xl flex flex-col",children:[l.jsxs("div",{className:"flex items-center justify-between px-6 py-5 border-b border-border",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(cc,{className:"w-5 h-5 text-primary"}),l.jsx("h2",{className:"font-heading text-2xl font-semibold text-foreground",children:"Your Cart"})]}),l.jsx("button",{onClick:()=>t(!1),className:"p-2 rounded-full hover:bg-secondary transition-colors",children:l.jsx($i,{className:"w-5 h-5 text-muted-foreground"})})]}),l.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-4 space-y-4",children:n.length===0?l.jsxs("div",{className:"flex flex-col items-center justify-center h-48 text-center",children:[l.jsx(cc,{className:"w-10 h-10 text-muted-foreground/30 mb-3"}),l.jsx("p",{className:"font-body text-sm text-muted-foreground",children:"Your cart is empty"}),l.jsx("button",{onClick:()=>{var V;t(!1),(V=document.getElementById("specials"))==null||V.scrollIntoView({behavior:"smooth"})},className:"mt-4 font-body text-sm text-primary hover:underline",children:"Browse specials →"})]}):n.map(V=>l.jsxs("div",{className:"flex items-start gap-4 bg-secondary/50 rounded-2xl p-4",children:[V.image&&l.jsx("img",{src:V.image,alt:V.name,className:"w-16 h-16 rounded-xl object-cover shrink-0"}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("p",{className:"font-body text-sm font-semibold text-foreground leading-tight",children:V.name}),V.description&&l.jsx("p",{className:"font-body text-xs text-muted-foreground mt-0.5 leading-snug",children:V.description}),V.price>0&&l.jsxs("p",{className:"font-heading text-lg font-bold text-primary mt-0.5",children:["$",(V.price*(V.qty||1)).toFixed(2)]}),l.jsxs("div",{className:"flex items-center gap-3 mt-2",children:[l.jsx("button",{onClick:()=>R(V.id,-1),className:"w-6 h-6 rounded-full bg-border flex items-center justify-center font-body text-sm font-bold hover:bg-primary hover:text-primary-foreground transition-colors",children:"−"}),l.jsx("span",{className:"font-body text-sm font-medium text-foreground",children:V.qty||1}),l.jsx("button",{onClick:()=>R(V.id,1),className:"w-6 h-6 rounded-full bg-border flex items-center justify-center font-body text-sm font-bold hover:bg-primary hover:text-primary-foreground transition-colors",children:"+"})]})]}),l.jsx("button",{onClick:()=>A(V.id),className:"p-1 text-muted-foreground hover:text-red-500 transition-colors",children:l.jsx(Pj,{className:"w-4 h-4"})})]},V.id))}),n.length>0&&l.jsxs("div",{className:"px-6 py-5 border-t border-border space-y-4",children:[l.jsxs("div",{className:"space-y-1",children:[l.jsx("label",{className:"font-body text-xs text-muted-foreground uppercase tracking-wide font-semibold",children:"When do you need this by?"}),l.jsx("input",{type:"datetime-local",value:v,onChange:V=>j(V.target.value),className:"w-full px-3 py-2 rounded-lg border border-border bg-background font-body text-xs text-foreground focus:outline-none focus:ring-2 focus:ring-primary/30 transition-all"}),l.jsx("p",{className:"font-body text-xs text-muted-foreground opacity-60",children:"Optional — helps Mike plan your order."})]}),l.jsxs("div",{className:"space-y-2 bg-primary/5 rounded-xl p-3 border border-primary/10",children:[l.jsx("label",{className:"font-body text-xs text-muted-foreground uppercase tracking-wide font-semibold",children:"Discount Code"}),l.jsxs("div",{className:"flex gap-2",children:[l.jsx("input",{type:"text",value:h,onChange:V=>p(V.target.value.toUpperCase()),placeholder:"Enter discount code",className:"flex-1 px-3 py-2 rounded-lg border border-border bg-background font-body text-xs text-foreground placeholder:text-muted-foreground/50 focus:outline-none focus:ring-2 focus:ring-primary/30 transition-all"}),l.jsx("button",{onClick:_,className:"px-4 py-2 bg-primary text-primary-foreground font-body text-xs font-semibold rounded-lg hover:opacity-90 transition-all",children:"Apply"})]}),g&&l.jsxs("p",{className:"font-body text-xs text-green-600 font-semibold flex items-center gap-1",children:["✓ ",g.code," applied (",g.percent,"% off)"]}),h&&!g&&l.jsx("p",{className:"font-body text-xs text-orange-600",children:"Code not found"})]}),l.jsxs("div",{className:"space-y-2.5 bg-secondary/30 rounded-xl p-4",children:[l.jsxs("div",{className:"flex justify-between items-center",children:[l.jsx("span",{className:"font-body text-xs text-muted-foreground",children:"Subtotal"}),l.jsxs("span",{className:"font-body text-sm text-foreground",children:["$",N.toFixed(2)]})]}),w>0&&l.jsxs("div",{className:"flex justify-between items-center",children:[l.jsx("span",{className:"font-body text-xs text-green-600 font-semibold",children:"Discount"}),l.jsxs("span",{className:"font-body text-sm text-green-600 font-bold",children:["-$",w.toFixed(2)]})]}),l.jsxs("div",{className:"flex justify-between items-center pt-2 border-t border-border/50",children:[l.jsx("span",{className:"font-heading text-sm font-semibold text-foreground",children:"Total"}),l.jsxs("span",{className:"font-heading text-2xl font-bold text-primary",children:["$",T.toFixed(2)]})]})]}),l.jsxs("div",{children:[l.jsx("button",{onClick:I,disabled:o,className:"w-full py-3.5 bg-primary text-primary-foreground font-body text-sm font-semibold rounded-full hover:opacity-90 transition-all flex items-center justify-center gap-2 disabled:opacity-50 shadow-lg hover:shadow-xl",children:o?l.jsxs(l.Fragment,{children:[l.jsx(Fc,{className:"w-4 h-4 animate-spin"})," Processing..."]}):l.jsxs(l.Fragment,{children:[l.jsx(Uk,{className:"w-4 h-4"})," Proceed to Payment"]})}),u&&o&&l.jsx("p",{className:"text-center font-body text-xs text-orange-600 mt-2",children:"Taking longer than usual... please wait"})]})]})]})]})})]})}const sc=[{id:"cheesecake",label:"🍰 Cheesecake",image:"https://media.base44.com/images/public/69d570bf9daf11d7a45beb82/2763afe8d_Resized_20250618_122901.jpg"},{id:"cupcakes",label:"🧁 Cupcakes",image:"https://media.base44.com/images/public/69d570bf9daf11d7a45beb82/a0b503751_IMG_348
3691.jpg"},{id:"cookies",label:"🍪 Cookies",image:"https://images.unsplash.com/photo-1499636136210-6f4ee915583e?w=800&q=80"}],VO=[{id:"8",label:'8"',price:45,serves:"6–8"},{id:"9",label:'9"',price:58,serves:"8–10"},{id:"10",label:'10"',price:68,serves:"10–14"},{id:"11",label:'11"',price:82,serves:"14–18"}],zO=["Classic New York","Strawberry Crunch","Mixed Berry","Apple Caramel","Oreo & Cream","Key Lime","Banana Pudding","Lemon Blueberry","Chocolate Swirl","Peach Cobbler"],$O=[{id:"fruit",label:"Fresh Fruit",price:10},{id:"caramel",label:"Salted Caramel",price:8},{id:"ganache",label:"Chocolate Ganache",price:8},{id:"oreo",label:"Oreo Crumble",price:7},{id:"strawberry",label:"Strawberry Glaze",price:9},{id:"cake-layer",label:"+ Cake Layer",price:15}],WO=[{id:"half",label:"Half Dozen",price:20,serves:"6 cupcakes"},{id:"full",label:"Full Dozen",price:30,serves:"12 cupcakes"}],HO=["Vanilla Bean","Rich Chocolate","Red Velvet","Lemon Blueberry","Strawberry","Funfetti","Caramel Swirl","Cookies & Cream"],qO=[{id:"tray-6",label:"Tray of 6",price:12,serves:"6 cookies"},{id:"tray-12",label:"Tray of 12",price:18,serves:"12 cookies"},{id:"tray-24",label:"Tray of 24",price:32,serves:"24 cookies"}],KO=["Classic Chocolate Chip","Double Chocolate","Snickerdoodle","Peanut Butter","Oatmeal Raisin","Sugar Cookie","Pumpkin Spice"];function kf({sizes:e,flavors:t,toppings:n,showToppings:s=!1,image:o,itemLabel:c}){const[u,f]=E.useState(e[0]),[h,p]=E.useState(t[0]),[g,y]=E.useState({}),v=b=>y(_=>{const w={..._};return w[b]?delete w[b]:w[b]=!0,w}),j=E.useMemo(()=>(n||[]).filter(b=>g[b.id]).reduce((b,_)=>b+_.price,0),[g,n]),N=u.price+j;return l.jsxs("div",{className:"grid md:grid-cols-2 gap-10",children:[l.jsxs("div",{className:"space-y-8",children:[l.jsxs("div",{children:[l.jsx("h3",{className:"font-heading text-lg font-semibold text-foreground mb-4",children:"1. Choose a Size"}),l.jsx("div",{className:`grid gap-2 ${e.length<=2?"grid-cols-2":"grid-cols-4"}`,children:e.map(b=>l.jsxs("button",{onClick:()=>f(b),className:`py-4 px-2 rounded-xl border-2 text-center transition-all duration-200 ${u.id===b.id?"border-primary bg-primary/5":"border-border hover:border-primary/30"}`,children:[l.jsx("p",{className:"font-heading text-base font-bold text-foreground",children:b.label}),l.jsx("p",{className:"font-body text-xs text-muted-foreground mt-1",children:b.serves}),l.jsxs("p",{className:"font-body text-sm font-semibold text-primary mt-1",children:["$",b.price]})]},b.id))})]}),l.jsxs("div",{children:[l.jsx("h3",{className:"font-heading text-lg font-semibold text-foreground mb-4",children:"2. Pick a Flavor"}),l.jsx("div",{className:"grid grid-cols-2 gap-2",children:t.map(b=>l.jsx("button",{onClick:()=>p(b),className:`px-4 py-3 rounded-xl border-2 text-left font-body text-sm transition-all duration-200 ${h===b?"border-primary bg-primary/5 font-semibold text-foreground":"border-border text-muted-foreground hover:border-primary/30"}`,children:b},b))})]}),s&&n&&l.jsxs("div",{children:[l.jsxs("h3",{className:"font-heading text-lg font-semibold text-foreground mb-4",children:["3. Add Toppings ",l.jsx("span",{className:"font-body text-sm text-muted-foreground font-normal",children:"(optional)"})]}),l.jsx("div",{className:"grid grid-cols-2 gap-2",children:n.map(b=>l.jsxs("button",{onClick:()=>v(b.id),className:`px-4 py-3 rounded-xl border-2 text-left transition-all duration-200 ${g[b.id]?"border-primary bg-primary/5":"border-border hover:border-primary/30"}`,children:[l.jsx("p",{className:"font-body text-sm font-semibold text-foreground",children:b.label}),l.jsxs("p",{className:"font-body text-xs text-primary",children:["+$",b.price]})]},b.id))})]})]}),l.jsx("div",{children:l.jsxs(K.div,{layout:!0,className:"bg-background border border-border rounded-3xl p-8 sticky top-24 shadow-sm",children:[l.jsxs("p",{className:"font-body text-xs uppercase tracking-widest text-muted-foreground mb-6",children:["Your ",c]}),l.jsx("img",{src:o,alt:c,className:"w-full rounded-2xl mb-6 object-cover h-40"}),l.jsxs("div",{className:"space-y-2 mb-6",children:[l.jsxs("div",{className:"flex justify-between font-body text-sm",children:[l.jsx("span",{className:"text-muted-foreground",children:"Size"}),l.jsxs("span",{className:"text-foreground font-medium",children:[u.label," · ",u.serves]})]}),l.jsxs("div",{className:"flex justify-between font-body text-sm",children:[l.jsx("span",{className:"text-muted-foreground",children:"Flavor"}),l.jsx("span",{className:"text-foreground font-medium",children:h})]}),(n||[]).filter(b=>g[b.id]).map(b=>l.jsxs("div",{className:"flex justify-between font-body text-sm",children:[l.jsx("span",{className:"text-muted-foreground",children:b.label}),l.jsxs("span",{className:"text-primary",children:["+$",b.price]})]},b.id))]}),l.jsx("div",{className:"border-t border-border pt-4 mb-6",children:l.jsx(fr,{mode:"wait",children:l.jsxs(K.div,{initial:{opacity:0,y:8}
369,animate:{opacity:1,y:0},exit:{opacity:0,y:-8},className:"flex justify-between items-center",children:[l.jsx("span",{className:"font-body text-sm text-muted-foreground",children:"Total"}),l.jsxs("span",{className:"font-heading text-4xl font-bold text-primary",children:["$",N]})]},N)})}),l.jsxs("button",{type:"button",onClick:()=>oa({id:`${c}-${u.id}-${h}`,name:`${h} ${c} (${u.label})`,price:N,image:o}),className:"block w-full text-center py-3.5 bg-primary text-primary-foreground font-body text-sm font-medium rounded-full hover:opacity-90 transition-all",children:["Add to Cart — $",N]}),l.jsx("p",{className:"font-body text-xs text-muted-foreground text-center mt-3",children:"Mention your selections in the order notes below."})]})})]})}function GO(){const[e,t]=E.useState("cheesecake");return l.jsxs("section",{id:"builder",className:"py-24 md:py-32 bg-secondary/30 relative overflow-hidden",children:[l.jsx("div",{className:"absolute top-8 right-8 hidden md:block",children:l.jsx(Vs,{symbol:"gye_nyame",size:80,color:"hsl(var(--primary))",opacity:.2})}),l.jsxs("div",{className:"max-w-4xl mx-auto px-6 md:px-[8vw]",children:[l.jsxs(K.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-10",children:[l.jsx("p",{className:"font-body text-xs uppercase tracking-[0.3em] text-primary mb-3",children:"Design Yours"}),l.jsx("h2",{className:"font-heading text-4xl md:text-5xl lg:text-6xl font-semibold text-foreground mb-4",children:"Build Your Order"}),l.jsx("p",{className:"font-body text-base text-muted-foreground max-w-md mx-auto",children:"Pick your item, size, and flavor — see the price update live."})]}),l.jsx("div",{className:"flex gap-2 mb-10 bg-background border border-border rounded-2xl p-2",children:sc.map(n=>l.jsx("button",{onClick:()=>t(n.id),className:`flex-1 py-3 px-4 rounded-xl font-body text-sm font-medium transition-all duration-200 ${e===n.id?"bg-primary text-primary-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,children:n.label},n.id))}),l.jsx(fr,{mode:"wait",children:l.jsxs(K.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},exit:{opacity:0,y:-12},transition:{duration:.25},children:[e==="cheesecake"&&l.jsx(kf,{sizes:VO,flavors:zO,toppings:$O,showToppings:!0,image:sc[0].image,itemLabel:"Cheesecake"}),e==="cupcakes"&&l.jsx(kf,{sizes:WO,flavors:HO,image:sc[1].image,itemLabel:"Cupcakes"}),e==="cookies"&&l.jsx(kf,{sizes:qO,flavors:KO,image:sc[2].image,itemLabel:"Cookies"})]},e)})]})]})}function QO({isOpen:e=!1,onClose:t}){const[n,s]=E.useState(""),[o,c]=E.useState("idle"),u=async f=>{f.preventDefault(),c("loading");try{await Pe.functions.invoke("subscribeEmail",{email:n,source:"popup"}),c("success"),s(""),setTimeout(()=>{c("idle"),t()},2e3)}catch{c("error")}};return l.jsx(fr,{children:e&&l.jsxs(l.Fragment,{children:[l.jsx(K.div,{initial:{opacity:0}
369,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-foreground/40 z-50 backdrop-blur-sm",onClick:t}),l.jsx(K.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:"fixed inset-0 z-50 flex items-center justify-center px-4 py-4",children:l.jsxs("div",{className:"w-full max-w-md bg-background rounded-2xl shadow-xl border border-border p-6 sm:p-8 relative overflow-hidden max-h-[90vh] overflow-y-auto",children:[l.jsx(K.div,{className:"absolute top-6 left-4 text-2xl",animate:{rotate:[0,5,-5,0]},transition:{duration:3,repeat:1/0},children:"🍃"}),l.jsx(K.div,{className:"absolute bottom-6 right-4 text-2xl",animate:{rotate:[0,-5,5,0]},transition:{duration:3,repeat:1/0,delay:.5},children:"🍃"}),l.jsx(K.div,{className:"absolute top-1/3 right-6 text-xl opacity-60",animate:{y:[0,10,0]},transition:{duration:4,repeat:1/0},children:"🌿"}),l.jsx("button",{onClick:t,className:"absolute top-4 right-4 p-2 text-muted-foreground hover:text-foreground transition-colors z-10",children:l.jsx($i,{className:"w-5 h-5"})}),l.jsxs(K.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.1},className:"flex items-center gap-3 mb-4",children:[l.jsx(Xr,{className:"w-5 h-5 text-primary"}),l.jsx("h2",{className:"font-heading text-2xl font-semibold text-foreground",children:"Unlock 10% Off"})]}),l.jsx("p",{className:"font-body text-sm text-muted-foreground mb-6",children:"Sign up for our email list and get 10% off your first order. Plus stay in the loop with new flavors, special events, and behind-the-scenes updates."}),l.jsxs("form",{onSubmit:u,className:"space-y-3",children:[l.jsxs("div",{className:"flex flex-col gap-2",children:[l.jsx("input",{type:"email",value:n,onChange:f=>s(f.target.value),placeholder:"[email protected]",disabled:o==="loading",className:"w-full px-4 py-3 rounded-lg border border-border bg-background font-body text-base text-foreground placeholder:text-muted-foreground/50 focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary transition-all disabled:opacity-50"}),l.jsx("button",{type:"submit",disabled:o==="loading"||!n.trim(),className:"w-full py-3.5 bg-primary text-primary-foreground font-body text-sm font-semibold rounded-lg hover:opacity-90 transition-all disabled:opacity-50",children:o==="loading"?"Subscribing...":"Subscribe & Get 10% Off"})]}),o==="success"&&l.jsxs(K.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"flex items-center gap-2 p-3 bg-green-50 border border-green-200 rounded-lg",children:[l.jsx(Wn,{className:"w-4 h-4 text-green-600 shrink-0"}),l.jsx("p",{className:"font-body text-xs font-semibold text-green-700",children:"Success! Your code is EMAIL10"})]}),o==="error"&&l.jsxs(K.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"flex items-center gap-2 p-3 bg-red-50 border border-red-200 rounded-lg",children:[l.jsx(Sa,{className:"w-4 h-4 text-red-600 shrink-0"}),l.jsx("p",{className:"font-body text-xs text-red-700",children:"Error. Try again."})]})]}),l.jsxs("div",{className:"mt-5 pt-4 border-t border-border text-center",children:[l.jsx("p",{className:"font-body text-xs text-muted-foreground mb-3",children:"Want to earn loyalty points & track orders?"}),l.jsxs("button",{onClick:()=>Pe.auth.redirectToLogin(),className:"inline-flex items-center gap-2 px-5 py-2.5 bg-secondary text-foreground font-body text-sm font-semibold rounded-lg hover:bg-secondary/80 transition-all",children:[l.jsx(Dj,{className:"w-4 h-4"})," Create an Account"]})]}),l.jsx("p",{className:"font-body text-xs text-muted-foreground text-center mt-4",children:"We respect your privacy. Unsubscribe anytime."})]})})]})})}function YO(){const e=E.useRef(null),{scrollYProgress:t}=y4({target:e,offset:["start start","end start"]}),n=k4(t,[0,1],["0%","30%"]);return l.jsxs("section",{ref:e,className:"relative min-h-screen flex items-center overflow-hidden pt-20",children:[l.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[l.jsx(K.div,{style:{y:n},className:"absolute inset-0 scale-110",children:l.jsx("img",{src:"https://media.base44.com/images/public/69d570bf9daf11d7a45beb82/f929208e4_generated_image.png",alt:"Signature MikeEats cheesecake",className:"w-full h-full object-cover"})}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-foreground
369/80 via-foreground/50 to-transparent"})]}),l.jsx("div",{className:"absolute top-24 right-8 md:right-16 z-10 hidden md:block",children:l.jsx(Vs,{symbol:"gye_nyame",size:90,color:"#E8C84A",opacity:.25})}),l.jsx("div",{className:"absolute bottom-16 right-24 z-10 hidden md:block",children:l.jsx(Vs,{symbol:"dwennimmen",size:64,color:"#C8860A",opacity:.2})}),l.jsx("div",{className:"relative z-10 max-w-7xl mx-auto px-6 md:px-[8vw] w-full py-20",children:l.jsxs(K.div,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:.8,ease:"easeOut"},className:"max-w-xl",children:[l.jsx("p",{className:"font-body text-xs uppercase tracking-[0.3em] text-background/60 mb-4",children:"Handcrafted Desserts"}),l.jsxs("h1",{className:"font-heading text-5xl md:text-7xl lg:text-8xl font-semibold text-background leading-[0.95] mb-6",children:["Mike",l.jsx("br",{}),"Eats"]}),l.jsx("p",{className:"font-body text-base md:text-lg text-background/70 leading-relaxed max-w-md mb-10",children:"From signature cheesecakes to cupcake party bundles, every creation is a sculpted masterpiece — baked fresh to order, just for you."}),l.jsxs("div",{className:"flex flex-wrap gap-4",children:[l.jsx("a",{href:"#menu",className:"inline-flex items-center justify-center px-8 py-3.5 bg-primary text-primary-foreground font-body text-sm font-medium rounded-full hover:opacity-90 transition-all duration-300",children:"View Menu"}),l.jsx("a",{href:"#catering",className:"inline-flex items-center justify-center px-8 py-3.5 border border-background/30 text-background font-body text-sm font-medium rounded-full hover:bg-background/10 transition-all duration-300",children:"Order Catering"}),l.jsx(lr,{to:"/dashboard",className:"inline-flex items-center justify-center px-8 py-3.5 bg-primary text-primary-foreground font-body text-sm font-medium rounded-full hover:opacity-90 transition-all duration-300",children:"Join CRAVE CLUB™"})]})]})}),l.jsx("div",{className:"absolute bottom-0 left-0 right-0",children:l.jsx(Ns,{})})]})}const XO=[{title:"Cheesecakes",description:'Our signature creation — rich, creamy, and made from scratch in sizes 8" to 11".',image:"https://media.base44.com/images/public/69d570bf9daf11d7a45beb82/2f8b3184d_IMG_3256.png"},{title:"Cupcakes",description:"Perfectly frosted cupcakes in a variety of flavors. Available by the half or full dozen.",image:"https://media.base44.com/images/public/69d570bf9daf11d7a45beb82/a0b503751_IMG_3481.jpg"},{title:"Brownies",description:"Rich, fudgy brownies with a crisp shell — the ultimate chocolate indulgence.",image:"https://media.base44.com/images/public/69d570bf9daf11d7a45beb82/c9c98949f_IMG_3482.jpg"},{title:"Cookies",description:"Soft, chewy cookies in a variety of flavors — baked fresh and perfect by the dozen.",image:"https://images.unsplash.com/photo-1499636136210-6f4ee915583e?w=800&q=80"}];function JO(){return l.jsxs("section",{id:"menu",className:"py-24 md:py-32 bg-secondary/50 relative overflow-hidden",children:[l.jsx(Ns,{}),l.jsx("div",{className:"absolute top-12 left-4 opacity-40",children:l.jsx(Vs,{symbol:"aya",size:80,color:"hsl(var(--primary))",opacity:.5})}),l.jsx("div",{className:"absolute bottom-12 right-4 opacity-40",children:l.jsx(Vs,{symbol:"sankofa",size:80,color:"hsl(var(--primary))",opacity:.5})}),l.jsxs("div",{className:"max-w-7xl mx-auto px-6 md:px-[8vw]",children:[l.jsxs(K.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-16",children:[l.jsx("p",{className:"font-body text-xs uppercase tracking-[0.3em] text-primary mb-3",children:"What We Offer"}),l.jsx("h2",{className:"font-heading text-4xl md:text-5xl lg:text-6xl font-semibold text-foreground",children:"Our Specialties"})]}),l.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-8",children:XO.map((e,t)=>l.jsxs(K.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:t*.15},className:"group transition-transform duration-300 hover:-translate-y-1",children:[l.jsxs("div",{className:"relative overflow-hidden rounded-2xl mb-6 aspect-square",children:[l.jsx("img",{src:e.image,alt:e.title,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105"}
369),l.jsx("div",{className:"absolute inset-0 bg-foreground/0 group-hover:bg-foreground/10 transition-colors duration-500"})]}),l.jsx("h3",{className:"font-heading text-2xl font-semibold text-foreground mb-2",children:e.title}),l.jsx("p",{className:"font-body text-sm text-muted-foreground leading-relaxed",children:e.description})]},e.title))})]}),l.jsx(Ns,{flipped:!0})]})}E.lazy(()=>Ft(()=>import("./BlogSection-CZMIMjzV.js"),[]));const ZO=E.lazy(()=>Ft(()=>import("./TestimonialsSection-BpOzZ2hH.js"),[])),eM=E.lazy(()=>Ft(()=>import("./AfricanArtSection-_LiZZPmA.js"),[])),tM=E.lazy(()=>Ft(()=>import("./FlavorMenu-BkHOO4aS.js"),[])),nM=E.lazy(()=>Ft(()=>import("./FAQSection-CXp8Thra.js"),[])),rM=E.lazy(()=>Ft(()=>import("./GallerySection-BB7Fn6hK.js"),[])),sM=E.lazy(()=>Ft(()=>import("./AboutSection-C6YxK5Md.js"),[])),iM=E.lazy(()=>Ft(()=>import("./CateringForm-FsfSbyvx.js"),[])),oM=E.lazy(()=>Ft(()=>import("./MiniCheesecakeBox-D2roGJUP.js"),[])),aM=E.lazy(()=>Ft(()=>import("./SeasonalSpecials-CDoXw51F.js"),[])),lM=E.lazy(()=>Ft(()=>import("./CustomOrderForm-Cig9ZWq4.js"),[])),cM=E.lazy(()=>Ft(()=>import("./TipsSection-BdDm21j1.js"),[])),uM=E.lazy(()=>Ft(()=>import("./FeedbackSection-CNHGzDgI.js"),[])),dM=E.lazy(()=>Ft(()=>import("./CraveClubPromo-B-oFmDYb.js"),[])),fM=E.lazy(()=>Ft(()=>import("./NewsletterSection-7Jj-d7g9.js"),[])),hM=E.lazy(()=>Ft(()=>Promise.resolve().then(()=>RO),void 0));function pM(){const[e,t]=E.useState(!1);return E.useEffect(()=>{localStorage.getItem("emailModalSeen")||(t(!0),localStorage.setItem("emailModalSeen","true"))},[]),l.jsxs("div",{className:"min-h-screen bg-background",children:[l.jsx(QO,{isOpen:e,onClose:()=>t(!1)}),l.jsx(FO,{}),l.jsx(BO,{}),l.jsx(Kn,{}),l.jsx(YO,{}),l.jsx(JO,{}),l.jsx(E.Suspense,{fallback:null,children:l.jsx(rM,{})}),l.jsx("section",{id:"menu",children:l.jsx(E.Suspense,{fallback:null,children:l.jsx(tM,{})})}),l.jsx(GO,{}),l.jsxs(E.Suspense,{fallback:null,children:[l.jsx(oM,{}),l.jsx(aM,{}),l.jsx(iM,{}),l.jsx(lM,{})]}),l.jsx("section",{id:"tips",children:l.jsx(E.Suspense,{fallback:null,children:l.jsx(cM,{})})}),l.jsx(E.Suspense,{fallback:null,children:l.jsx(dM,{})}),l.jsx("section",{className:"py-16 bg-secondary/30 border-y border-border",children:l.jsx("div",{className:"max-w-7xl mx-auto px-6 md:px-[8vw]",children:l.jsx(E.Suspense,{fallback:null,children:l.jsx(hM,{})})})}),l.jsxs(E.Suspense,{fallback:null,children:[l.jsx(uM,{}),l.jsx(ZO,{}),l.jsx(nM,{}),l.jsx(sM,{}),l.jsx(eM,{}),l.jsx(fM,{})]}),l.jsx(Gn,{}),l.jsx(UO,{})]})}var Rp={};(function e(t,n,s,o){var c=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),u=typeof Path2D=="function"&&typeof DOMMatrix=="function",f=(function(){if(!t.OffscreenCanvas)return!1;try{var C=new OffscreenCanvas(1,1),k=C.getContext("2d");k.fillRect(0,0,1,1);var B=C.transferToImageBitmap();k.createPattern(B,"no-repeat")}catch{return!1}return!0})();function h(){}function p(C){var k=n.exports.Promise,B=k!==void 0?k:t.Promise;return typeof B=="function"?new B(C):(C(h,h),null)}var g=(function(C,k){return{transform:function(B){if(C)return B;if(k.has(B))return k.get(B);var Y=new OffscreenCanvas(B.width,B.height),te=Y.getContext("2d");return te.drawImage(B,0,0),k.set(B,Y),Y},clear:function(){k.clear()}}})(f,new Map),y=(function(){var C=Math.floor(16.666666666666668),k,B,Y={},te=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(k=function(J){var W=Math.random();return Y[W]=requestAnimationFrame(function X(ie){te===ie||te+C-1<ie?(te=ie,delete Y[W],J()):Y[W]=requestAnimationFrame(X)}),W},B=function(J){Y[J]&&cancelAnimationFrame(Y[J])}):(k=function(J){return setTimeout(J,C)},B=function(J){return clearTimeout(J)}),{frame:k,cancel:B}})(),v=(function(){var C,k,B={};function Y(te){function J(W,X){te.postMessage({options:W||{},callback:X})}te.init=function(X){var ie=X.transferControlToOffscreen();te.postMessage({canvas:ie},[ie])},te.fire=function(X,ie,oe){if(k)return J(X,null),k;var Re=Math.random().toString(36).slice(2);return k=p(function(Le){function Oe(He){He.data.callback===Re&&(delete B[Re],te.removeEventListener("message",Oe),k=null,g.clear(),oe(),Le())}te.addEventListener("message",Oe),J(X,Re),B[Re]=Oe.bind(null,{data:{callback:Re}})}),k},te.reset=function(){te.postMessage({reset:!0});for(var X in B)B[X](),delete B[X]}}return function(){if(C)return C;if(!s&&c){var te=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {","  if (msg.data.options) {","    CONFETTI(msg.data.options).then(function () {","      if (msg.data.callback) {","        postMessage({ callback: msg.data.callback });","      }","    });","  } else if (msg.data.reset) {","    CONFETTI && CONFETTI.reset();","  } else if (msg.data.resize) {","    SIZE.width = msg.data.resize.width;","    SIZE.height = msg.data.resize.height;","  } else if (msg.data.canvas) {","    SIZE.width = msg.data.canvas.width;","    SIZE.height = msg.data.canvas.height;","    CONFETTI = module.exports.create(msg.data.canvas);","  }","}"].join(`
370`);try{C=new Worker(URL.createObjectURL(new Blob([te])))}catch(J){return typeof console<"u"&&typeof console.warn=="function"&&console.warn("🎊 Could not load worker",J),null}Y(C)}return C}})(),j={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function N(C,k){return k?k(C):C}function b(C){return C!=null}function _(C,k,B){return N(C&&b(C[k])?C[k]:j[k],B)}function w(C){return C<0?0:Math.floor(C)}function T(C,k){return Math.floor(Math.random()*(k-C))+C}function A(C){return parseInt(C,16)}function R(C){return C.map(I)}function I(C){var k=String(C).replace(/[^0-9a-f]/gi,"");return k.length<6&&(k=k[0]+k[0]+k[1]+k[1]+k[2]+k[2]),{r:A(k.substring(0,2)),g:A(k.substring(2,4)),b:A(k.substring(4,6))}}function V(C){var k=_(C,"origin",Object);return k.x=_(k,"x",Number),k.y=_(k,"y",Number),k}function Z(C){C.width=document.documentElement.clientWidth,C.height=document.documentElement.clientHeight}function F(C){var k=C.getBoundingClientRect();C.width=k.width,C.height=k.height}function ne(C){var k=document.createElement("canvas");return k.style.position="fixed",k.style.top="0px",k.style.left="0px",k.style.pointerEvents="none",k.style.zIndex=C,k}function ye(C,k,B,Y,te,J,W,X,ie){C.save(),C.translate(k,B),C.rotate(J),C.scale(Y,te),C.arc(0,0,1,W,X,ie),C.restore(
vendor: 2,873 bytes, line 370
370)}function Ne(C){var k=C.angle*(Math.PI/180),B=C.spread*(Math.PI/180);return{x:C.x,y:C.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:C.startVelocity*.5+Math.random()*C.startVelocity,angle2D:-k+(.5*B-Math.random()*B),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:C.color,shape:C.shape,tick:0,totalTicks:C.ticks,decay:C.decay,drift:C.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:C.gravity*3,ovalScalar:.6,scalar:C.scalar,flat:C.flat}}function re(C,k){k.x+=Math.cos(k.angle2D)*k.velocity+k.drift,k.y+=Math.sin(k.angle2D)*k.velocity+k.gravity,k.velocity*=k.decay,k.flat?(k.wobble=0,k.wobbleX=k.x+10*k.scalar,k.wobbleY=k.y+10*k.scalar,k.tiltSin=0,k.tiltCos=0,k.random=1):(k.wobble+=k.wobbleSpeed,k.wobbleX=k.x+10*k.scalar*Math.cos(k.wobble),k.wobbleY=k.y+10*k.scalar*Math.sin(k.wobble),k.tiltAngle+=.1,k.tiltSin=Math.sin(k.tiltAngle),k.tiltCos=Math.cos(k.tiltAngle),k.random=Math.random()+2);var B=k.tick++/k.totalTicks,Y=k.x+k.random*k.tiltCos,te=k.y+k.random*k.tiltSin,J=k.wobbleX+k.random*k.tiltCos,W=k.wobbleY+k.random*k.tiltSin;if(C.fillStyle="rgba("+k.color.r+", "+k.color.g+", "+k.color.b+", "+(1-B)+")",C.beginPath(),u&&k.shape.type==="path"&&typeof k.shape.path=="string"&&Array.isArray(k.shape.matrix))C.fill(xe(k.shape.path,k.shape.matrix,k.x,k.y,Math.abs(J-Y)*.1,Math.abs(W-te)*.1,Math.PI/10*k.wobble));else if(k.shape.type==="bitmap"){var X=Math.PI/10*k.wobble,ie=Math.abs(J-Y)*.1,oe=Math.abs(W-te)*.1,Re=k.shape.bitmap.width*k.scalar,Le=k.shape.bitmap.height*k.scalar,Oe=new DOMMatrix([Math.cos(X)*ie,Math.sin(X)*ie,-Math.sin(X)*oe,Math.cos(X)*oe,k.x,k.y]);Oe.multiplySelf(new DOMMatrix(k.shape.matrix));var He=C.createPattern(g.transform(k.shape.bitmap),"no-repeat");He.setTransform(Oe),C.globalAlpha=1-B,C.fillStyle=He,C.fillRect(k.x-Re/2,k.y-Le/2,Re,Le),C.globalAlpha=1}else if(k.shape==="circle")C.ellipse?C.ellipse(k.x,k.y,Math.abs(J-Y)*k.ovalScalar,Math.abs(W-te)*k.ovalScalar,Math.PI/10*k.wobble,0,2*Math.PI):ye(C,k.x,k.y,Math.abs(J-Y)*k.ovalScalar,Math.abs(W-te)*k.ovalScalar,Math.PI/10*k.wobble,0,2*Math.PI);else if(k.shape==="star")for(var Ce=Math.PI/2*3,Ge=4*k.scalar,ve=8*k.scalar,qe=k.x,ot=k.y,pt=5,mt=Math.PI/pt;pt--;)qe=k.x+Math.cos(Ce)*ve,ot=k.y+Math.sin(Ce)*ve,C.lineTo(qe,ot),Ce+=mt,qe=k.x+Math.cos(Ce)*Ge,ot=k.y+Math.sin(Ce)*Ge,C.lineTo(qe,ot),Ce+=mt;else C.moveTo(Math.floor(k.x),Math.floor(k.y)),C.lineTo(Math.floor(k.wobbleX),Math.floor(te)),C.lineTo(Math.floor(J),Math.floor(W)),C.lineTo(Math.floor(Y),Math.floor(k.wobbleY));return C.closePath(),C.fill(),k.tick<k.totalTicks}function Se(C,k,B,Y,te){var J=k.slice(),W=C.getContext("2d"),X,ie,oe=p(function(Re){function Le(){X=ie=null,W.clearRect(0,0,Y.width,Y.height),g.clear(),te(),Re()}function Oe(){s&&!(Y.width===o.width&&Y.height===o.height)&&(Y.width=C.width=o.width,Y.height=C.height=o.height),!Y.width&&!Y.he
vendor: 4,657 bytes, line 370
370ight&&(B(C),Y.width=C.width,Y.height=C.height),W.clearRect(0,0,Y.width,Y.height),J=J.filter(function(He){return re(W,He)}),J.length?X=y.frame(Oe):Le()}X=y.frame(Oe),ie=Le});return{addFettis:function(Re){return J=J.concat(Re),oe},canvas:C,promise:oe,reset:function(){X&&y.cancel(X),ie&&ie()}}}function Te(C,k){var B=!C,Y=!!_(k||{},"resize"),te=!1,J=_(k,"disableForReducedMotion",Boolean),W=c&&!!_(k||{},"useWorker"),X=W?v():null,ie=B?Z:F,oe=C&&X?!!C.__confetti_initialized:!1,Re=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,Le;function Oe(Ce,Ge,ve){for(var qe=_(Ce,"particleCount",w),ot=_(Ce,"angle",Number),pt=_(Ce,"spread",Number),mt=_(Ce,"startVelocity",Number),An=_(Ce,"decay",Number),yn=_(Ce,"gravity",Number),Ma=_(Ce,"drift",Number),Xi=_(Ce,"colors",R),La=_(Ce,"ticks",Number),Ji=_(Ce,"shapes"),Zi=_(Ce,"scalar"),qs=!!_(Ce,"flat"),eo=V(Ce),hr=qe,Qn=[],Zc=C.width*eo.x,Da=C.height*eo.y;hr--;)Qn.push(Ne({x:Zc,y:Da,angle:ot,spread:pt,startVelocity:mt,color:Xi[hr%Xi.length],shape:Ji[T(0,Ji.length)],ticks:La,decay:An,gravity:yn,drift:Ma,scalar:Zi,flat:qs}));return Le?Le.addFettis(Qn):(Le=Se(C,Qn,ie,Ge,ve),Le.promise)}function He(Ce){var Ge=J||_(Ce,"disableForReducedMotion",Boolean),ve=_(Ce,"zIndex",Number);if(Ge&&Re)return p(function(mt){mt()});B&&Le?C=Le.canvas:B&&!C&&(C=ne(ve),document.body.appendChild(C)),Y&&!oe&&ie(C);var qe={width:C.width,height:C.height};X&&!oe&&X.init(C),oe=!0,X&&(C.__confetti_initialized=!0);function ot(){if(X){var mt={getBoundingClientRect:function(){if(!B)return C.getBoundingClientRect()}};ie(mt),X.postMessage({resize:{width:mt.width,height:mt.height}});return}qe.width=qe.height=null}function pt(){Le=null,Y&&(te=!1,t.removeEventListener("resize",ot)),B&&C&&(document.body.contains(C)&&document.body.removeChild(C),C=null,oe=!1)}return Y&&!te&&(te=!0,t.addEventListener("resize",ot,!1)),X?X.fire(Ce,qe,pt):Oe(Ce,qe,pt)}return He.reset=function(){X&&X.reset(),Le&&Le.reset()},He}var Ae;function me(){return Ae||(Ae=Te(null,{useWorker:!0,resize:!0})),Ae}function xe(C,k,B,Y,te,J,W){var X=new Path2D(C),ie=new Path2D;ie.addPath(X,new DOMMatrix(k));var oe=new Path2D;return oe.addPath(ie,new DOMMatrix([Math.cos(W)*te,Math.sin(W)*te,-Math.sin(W)*J,Math.cos(W)*J,B,Y])),oe}function G(C){if(!u)throw new Error("path confetti are not supported in this browser");var k,B;typeof C=="string"?k=C:(k=C.path,B=C.matrix);var Y=new Path2D(k),te=document.createElement("canvas"),J=te.getContext("2d");if(!B){for(var W=1e3,X=W,ie=W,oe=0,Re=0,Le,Oe,He=0;He<W;He+=2)for(var Ce=0;Ce<W;Ce+=2)J.isPointInPath(Y,He,Ce,"nonzero")&&(X=Math.min(X,He),ie=Math.min(ie,Ce),oe=Math.max(oe,He),Re=Math.max(Re,Ce));Le=oe-X,Oe=Re-ie;var Ge=10,ve=Math.min(Ge/Le,Ge/Oe);B=[ve,0,0,ve,-Math.round(Le/2+X)*ve,-Math.round(Oe/2+ie)*ve]}return{type:"path",path:k,matrix:B}}function le(C){var k,B=1,Y="#000000",te='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof C=="string"?k=C:(k=C.text,B="scalar"in C?C.scalar:B,te="fontFamily"in C?C.fontFamily:te,Y="color"in C?C.color:Y);var J=10*B,W=""+J+"px "+te,X=new OffscreenCanvas(J,J),ie=X.getContext("2d");ie.font=W;var oe=ie.measureText(k),Re=Math.ceil(oe.actualBoundingBoxRight+oe.actualBoundingBoxLeft),Le=Math.ceil(oe.actualBoundingBoxAscent+oe.actualBoundingBoxDescent),Oe=2,He=oe.actualBoundingBoxLeft+Oe,Ce=oe.actualBoundingBoxAscent+Oe;Re+=Oe+Oe,Le+=Oe+Oe,X=new OffscreenCanvas(Re,Le),ie=X.getContext("2d"),ie.font=W,ie.fillStyle=Y,ie.fillText(k,He,Ce);var Ge=1/B;return{type:"bitmap",bitmap:X.transferToImageBitmap(),matrix:[Ge,0,0,Ge,-Re*Ge/2,-Le*Ge/2]}}n.exports=function(){return me().apply(this,arguments)},n.exports.reset=function(){me().reset()},n.exports.create=Te,n.exports.shapeFromPath=G,n.exports.shapeFromText=le})((function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}})(),Rp,!1);const bh=Rp.exports;Rp.exports.create;function mM(){const[e]=Ib(),[t,n]=E.useState(null),[s,o]=E.useState(""),[c,u]=E.useState("idle"),f=Fh(),h=()=>{const p=localStorage.getItem("mikeeats_last_cart");p&&(localStorage.setItem("mikeeats_cart",p),window.dispatchEvent(new Event("cart_updated"))),f("/"),setTimeout(()=>window.dispatchEvent(new Event("open_cart")),500)};return E.useEffect(()=>{const p=e.get("session_id");p&&(localStorage.setItem("last_session_id",p),n({sessionId:p}));const g=localStorage.getItem("mikeeats_cart");g&&g!=="[]"&&localStorage.setItem("mikeeats_last_cart",g),localStorage.setItem("mikeeats_cart","[]"),window.dispatchEvent(new Event("cart_updated")),setTimeout(()=>{bh({particleCount:150,spread:80,origin:{y:.4}
370,colors:["#2D6A2D","#C8860A","#E8C84A","#8B1A1A","#1A4A7A"]})},800);const y=async j=>{var N;try{const b=await Pe.functions.invoke("getCheckoutSessionEmail",{sessionId:j});(N=b.data)!=null&&N.email&&o(b.data.email)}catch(b){console.error("Error fetching email:",b)}},v=e.get("session_id");v&&y(v)},[e]),l.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center px-6 py-12",children:l.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"text-center max-w-md",children:[l.jsx(K.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15,delay:.2},className:"mb-6 flex justify-center",children:l.jsx(Wn,{className:"w-24 h-24 text-green-600"})}),l.jsx("h1",{className:"font-heading text-4xl md:text-5xl font-semibold text-foreground mb-3",children:"Payment Successful!"}),l.jsx("p",{className:"font-body text-base text-muted-foreground mb-2",children:"Thank you for your order. We've received your payment and will begin preparing your desserts."}),(t==null?void 0:t.sessionId)&&l.jsxs("p",{className:"font-body text-xs text-muted-foreground/60 mb-8 break-all",children:["Session ID: ",t.sessionId]}),l.jsxs("div",{className:"bg-secondary/50 border border-border rounded-2xl p-6 mb-8",children:[l.jsx("p",{className:"font-body text-sm text-muted-foreground mb-2",children:"A confirmation email has been sent to your inbox."}),l.jsx("p",{className:"font-body text-sm font-semibold text-foreground",children:"Mike will reach out shortly to confirm details!"})]}),c!=="success"&&l.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"bg-primary/10 border border-primary/30 rounded-3xl p-8 mb-8",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-4 justify-center",children:[l.jsx(aa,{className:"w-5 h-5 text-primary"}),l.jsx("h2",{className:"font-heading text-2xl font-semibold text-foreground",children:"Join CRAVE CLUB™"})]}),l.jsxs("p",{className:"font-body text-sm text-muted-foreground mb-6",children:["Earn loyalty points on every order and unlock exclusive rewards. New members get ",l.jsx("span",{className:"text-primary font-semibold",children:"+10 FREE points"}),"!"]}),l.jsxs("form",{onSubmit:async p=>{if(p.preventDefault(),!!s){u("loading");try{await Pe.auth.redirectToLogin()}catch{u("error")}}},className:"space-y-3",children:[l.jsx("input",{type:"email",value:s,onChange:p=>o(p.target.value),placeholder:"Enter your email",required:!0,className:"w-full px-4 py-3 rounded-xl border border-border bg-background font-body text-sm text-foreground placeholder:text-muted-foreground/50 focus:outline-none focus:ring-2 focus:ring-primary/30 transition-all"}),l.jsx("button",{type:"submit",disabled:c==="loading"||!s,className:"w-full py-3 bg-primary text-primary-foreground font-body text-sm font-medium rounded-full hover:opacity-90 transition-all disabled:opacity-50 flex items-center justify-center gap-2",children:c==="loading"?l.jsxs(l.Fragment,{children:[l.jsx(Fc,{className:"w-4 h-4 animate-spin"})," Creating Account..."]}):"Create Account & Earn Points"}),c==="error"&&l.jsx("p",{className:"font-body text-xs text-red-600 text-center",children:"Something went wrong. Please try again."})]}),l.jsx("p",{className:"font-body text-xs text-muted-foreground text-center mt-4",children:"Or skip and start earning on your next order"})]}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[l.jsxs("button",{onClick:h,className:"inline-flex items-center gap-2 px-6 py-3.5 bg-primary text-primary-foreground font-body text-sm font-medium rounded-full hover:opacity-90 transition-all",children:[l.jsx(vj,{className:"w-4 h-4"}),"Order Again"]}),l.jsxs(lr,{to:"/",className:"inline-flex items-center gap-2 px-6 py-3.5 bg-secondary text-foreground font-body text-sm font-medium rounded-full hover:opacity-90 transition-all",children:[l.jsx(sj,{className:"w-4 h-4"}),"Back to Home"]})]})]})})}function gM(){const[e]=Ib(),t=e.get("session_id"),[n,s]=E.useState(null),[o,c]=E.useState(!0),[u,f]=E.useState(null);return E.useEffect(()=>{if(!t){f("No session ID provided"),c(!1);return}(async()=>{try{const p=await Pe.functions.invoke("handlePaymentSuccess",{sessionId:t});s(p.data),c(!1)}catch(p){f(p.message),c(!1)}})()},[t]),l.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[l.jsx(Kn,{}),l.jsx("main",{className:"flex-1 flex items-center justify-center py-20 px-6",children:o?l.jsxs("div",{className:"text-center",children:[l.jsx("div",{className:"w-12 h-12 border-4 border-slate-200 border-t-primary rounded-full animate-spin mx-auto mb-4"}),l.jsx("p",{className:"font-body text-muted-foreground",children:"Processing your order..."})]}):u?l.jsxs(K.div,{initial:{opacity:0,y:20}
370,animate:{opacity:1,y:0},className:"max-w-md w-full text-center",children:[l.jsx(Sa,{className:"w-16 h-16 text-red-500 mx-auto mb-4"}),l.jsx("h1",{className:"font-heading text-3xl font-semibold text-foreground mb-2",children:"Error"}),l.jsx("p",{className:"font-body text-sm text-muted-foreground mb-6",children:u}),l.jsx("a",{href:"/",className:"inline-block px-8 py-3 bg-primary text-primary-foreground font-body text-sm font-medium rounded-full hover:opacity-90",children:"Return Home"})]}):n?l.jsxs(K.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.5},className:"max-w-2xl w-full",children:[l.jsxs("div",{className:"text-center mb-10",children:[l.jsx(K.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.2,type:"spring"},className:"mb-6",children:l.jsx(Wn,{className:"w-20 h-20 text-green-600 mx-auto"})}),l.jsx("h1",{className:"font-heading text-4xl md:text-5xl font-semibold text-foreground mb-2",children:"Order Confirmed!"}),l.jsx("p",{className:"font-body text-lg text-muted-foreground",children:"Thank you for your purchase. We're preparing your order."})]}),l.jsxs("div",{className:"bg-card border border-border rounded-3xl p-8 mb-8 space-y-6",children:[l.jsxs("div",{className:"pb-6 border-b border-border",children:[l.jsx("p",{className:"font-body text-sm text-muted-foreground mb-1",children:"Order ID"}),l.jsx("p",{className:"font-heading text-2xl font-bold text-foreground",children:n.orderId})]}),l.jsx("div",{className:"space-y-4",children:l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx(Jr,{className:"w-5 h-5 text-primary mt-1 shrink-0"}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("p",{className:"font-body text-sm text-muted-foreground mb-1",children:"Items"}),l.jsx("p",{className:"font-body text-sm font-medium text-foreground break-words",children:n.items})]})]})}),l.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-4 border-t border-border",children:[l.jsxs("div",{children:[l.jsx("p",{className:"font-body text-xs text-muted-foreground mb-2",children:"Subtotal"}),l.jsxs("p",{className:"font-heading text-2xl font-bold text-foreground",children:["$",n.subtotal.toFixed(2)]})]}),l.jsxs("div",{children:[l.jsx("p",{className:"font-body text-xs text-muted-foreground mb-2",children:"Tax"}),l.jsxs("p",{className:"font-heading text-2xl font-bold text-foreground",children:["$",n.tax.toFixed(2)]})]})]}),l.jsx("div",{className:"pt-4 border-t border-border",children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("p",{className:"font-body text-sm font-semibold text-foreground",children:"Total Paid"}),l.jsxs("p",{className:"font-heading text-4xl font-bold text-primary",children:["$",n.total.toFixed(2)]})]})})]}),l.jsxs("div",{className:"bg-secondary/50 rounded-2xl p-6 mb-8 border border-border",children:[l.jsx("h3",{className:"font-heading text-lg font-semibold text-foreground mb-4",children:"What's Next?"}),l.jsxs("ol",{className:"space-y-3",children:[l.jsxs("li",{className:"flex gap-3 font-body text-sm",children:[l.jsx("span",{className:"font-bold text-primary shrink-0",children:"1."}),l.jsx("span",{className:"text-foreground",children:"Check your email for a confirmation with order details"})]}),l.jsxs("li",{className:"flex gap-3 font-body text-sm",children:[l.jsx("span",{className:"font-bold text-primary shrink-0",children:"2."}),l.jsx("span",{className:"text-foreground",children:"Mike will follow up soon to confirm pickup/delivery details"})]}),l.jsxs("li",{className:"flex gap-3 font-body text-sm",children:[l.jsx("span",{className:"font-bold text-primary shrink-0",children:"3."}),l.jsx("span",{className:"text-foreground",children:"Your order will be ready within 24–48 hours"})]})]})]}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[l.jsx("a",{href:"/",className:"px-8 py-3.5 bg-primary text-primary-foreground font-body text-sm font-medium rounded-full hover:opacity-90 transition-all text-center",children:"Return Home"}),l.jsx("a",{href:"#",className:"px-8 py-3.5 border border-primary text-primary font-body text-sm font-medium rounded-full hover:bg-primary hover:text-primary-foreground transition-all text-center",children:"Contact Mike"})]})]}):null}),l.jsx(Gn,{})]})}
370function yM(){const[e,t]=E.useState({name:"",email:"",phone:"",message:""}),[n,s]=E.useState("idle"),o=u=>{t({...e,[u.target.name]:u.target.value})},c=async u=>{u.preventDefault(),s("loading");try{const f=new FormData;Object.entries(e).forEach(([p,g])=>f.append(p,g)),(await fetch("https://formspree.io/f/xlgozyoe",{method:"POST",body:f,headers:{Accept:"application/json"}})).ok?(s("success"),t({name:"",email:"",phone:"",message:""}),setTimeout(()=>s("idle"),3e3)):s("error")}catch{s("error")}};return l.jsxs("div",{className:"min-h-screen bg-background",children:[l.jsx(Kn,{}),l.jsx("div",{className:"max-w-5xl mx-auto px-6 md:px-[8vw] py-24 md:py-32",children:l.jsxs(K.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},children:[l.jsxs("div",{className:"text-center mb-16",children:[l.jsx("p",{className:"font-body text-xs uppercase tracking-[0.3em] text-primary mb-3",children:"Get in Touch"}),l.jsx("h1",{className:"font-heading text-4xl md:text-5xl font-semibold text-foreground mb-4",children:"Contact Us"}),l.jsx("p",{className:"font-body text-lg text-muted-foreground max-w-2xl mx-auto",children:"Have questions? Want to place a custom order? Reach out — Mike loves hearing from customers."})]}),l.jsxs("div",{className:"grid md:grid-cols-3 gap-8 mb-16",children:[l.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-secondary/60 border border-border rounded-2xl p-6 text-center",children:[l.jsx(Xr,{className:"w-8 h-8 text-primary mx-auto mb-3"}),l.jsx("h3",{className:"font-heading text-lg font-semibold text-foreground mb-1",children:"Email"}),l.jsx("a",{href:"mailto:[email protected]",className:"font-body text-sm text-primary hover:underline",children:"[email protected]"})]}),l.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"bg-secondary/60 border border-border rounded-2xl p-6 text-center",children:[l.jsx(_h,{className:"w-8 h-8 text-primary mx-auto mb-3"}),l.jsx("h3",{className:"font-heading text-lg font-semibold text-foreground mb-1",children:"Phone"}),l.jsx("a",{href:"tel:+15551234567",className:"font-body text-sm text-primary hover:underline",children:"Available upon request"})]}),l.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2},className:"bg-secondary/60 border border-border rounded-2xl p-6 text-center",children:[l.jsx(Wv,{className:"w-8 h-8 text-primary mx-auto mb-3"}),l.jsx("h3",{className:"font-heading text-lg font-semibold text-foreground mb-1",children:"Location"}),l.jsx("p",{className:"font-body text-sm text-muted-foreground",children:"Pickup & delivery available in the area"})]})]}),l.jsxs(K.form,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},onSubmit:c,className:"max-w-2xl mx-auto bg-secondary/40 border border-border rounded-2xl p-8",children:[l.jsx("h2",{className:"font-heading text-2xl font-semibold text-foreground mb-6",children:"Send a Message"}),l.jsxs("div",{className:"space-y-4 mb-6",children:[l.jsxs("div",{children:[l.jsx("label",{className:"font-body text-sm text-muted-foreground block mb-2",children:"Name *"}),l.jsx("input",{type:"text",name:"name",required:!0,value:e.name,onChange:o,className:"w-full px-4 py-3 rounded-xl border border-border bg-background font-body text-sm text-foreground placeholder:text-muted-foreground/50 focus:outline-none focus:ring-2 focus:ring-primary/30",placeholder:"Your name"})]}),l.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[l.jsxs("div",{children:[l.jsx("label",{className:"font-body text-sm text-muted-foreground block mb-2",children:"Email *"}),l.jsx("input",{type:"email",name:"email",required:!0,value:e.email,onChange:o,className:"w-full px-4 py-3 rounded-xl border border-border bg-background font-body text-sm text-foreground placeholder:text-muted-foreground/50 focus:outline-none focus:ring-2 focus:ring-primary/30",placeholder:"[email protected]"})]}),l.jsxs("div",{children:[l.jsx("label",{className:"font-body text-sm text-muted-foreground block mb-2",children:"Phone"}),l.jsx("input",{type:"tel",name:"phone",value:e.phone,onChange:o,className:"w-full px-4 py-3 rounded-xl border border-border bg-background font-body text-sm text-foreground placeholder:text-muted-foreground
370/50 focus:outline-none focus:ring-2 focus:ring-primary/30",placeholder:"(555) 123-4567"})]})]}),l.jsxs("div",{children:[l.jsx("label",{className:"font-body text-sm text-muted-foreground block mb-2",children:"Message *"}),l.jsx("textarea",{name:"message",required:!0,value:e.message,onChange:o,rows:5,className:"w-full px-4 py-3 rounded-xl border border-border bg-background font-body text-sm text-foreground placeholder:text-muted-foreground/50 focus:outline-none focus:ring-2 focus:ring-primary/30 resize-none",placeholder:"Tell us what's on your mind..."})]})]}),n==="success"&&l.jsxs(K.div,{initial:{opacity:0},animate:{opacity:1},className:"flex items-center gap-2 p-3 bg-green-50 border border-green-200 rounded-lg mb-4",children:[l.jsx(Wn,{className:"w-5 h-5 text-green-600"}),l.jsx("p",{className:"font-body text-sm text-green-700",children:"Message sent! We'll get back to you soon."})]}),n==="error"&&l.jsxs(K.div,{initial:{opacity:0},animate:{opacity:1},className:"flex items-center gap-2 p-3 bg-red-50 border border-red-200 rounded-lg mb-4",children:[l.jsx(Sa,{className:"w-5 h-5 text-red-600"}),l.jsx("p",{className:"font-body text-sm text-red-700",children:"Error sending message. Please try again."})]}),l.jsx("button",{type:"submit",disabled:n==="loading",className:"w-full py-3.5 bg-primary text-primary-foreground font-body text-sm font-medium rounded-full hover:opacity-90 transition-all disabled:opacity-50 flex items-center justify-center gap-2",children:n==="loading"?l.jsxs(l.Fragment,{children:[l.jsx(Fc,{className:"w-4 h-4 animate-spin"})," Sending..."]}):"Send Message"})]})]})}),l.jsx(Gn,{})]})}function xM(){return l.jsxs("div",{className:"min-h-screen bg-background",children:[l.jsx(Kn,{}),l.jsx("div",{className:"max-w-4xl mx-auto px-6 md:px-[8vw] py-24 md:py-32",children:l.jsxs(K.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},children:[l.jsxs("section",{className:"mb-16",children:[l.jsx("h1",{className:"font-heading text-4xl md:text-5xl font-semibold text-foreground mb-8",children:"Terms of Service"}),l.jsxs("div",{className:"space-y-6 font-body text-foreground leading-relaxed",children:[l.jsxs("div",{children:[l.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-3",children:"1. Order Placement"}),l.jsx("p",{className:"text-muted-foreground",children:"All orders are made to order and require at least 48 hours notice for standard requests. Rush orders (24–48 hour turnaround) are available for an additional fee. Orders are not considered confirmed until you receive direct confirmation from Mike."})]}),l.jsxs("div",{children:[l.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-3",children:"2. Pricing & Payment"}),l.jsx("p",{className:"text-muted-foreground",children:"Prices are listed in USD. Payment is processed securely via Stripe at checkout. All transactions are non-refundable once preparation has begun. Estimated totals may be adjusted based on customizations confirmed during follow-up."})]}),l.jsxs("div",{children:[l.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-3",children:"3. No Refunds Policy"}),l.jsx("p",{className:"text-muted-foreground",children:"All goods are made to order. Once your order is confirmed and preparation has begun, we are unable to offer refunds. Please review your order carefully before submitting. For changes or cancellations, contact Mike as early as possible at [email protected]."})]}),l.jsxs("div",{children:[l.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-3",children:"4. Allergen Awareness"}),l.jsx("p",{className:"text-muted-foreground",children:"Our products are made in a home kitchen that handles wheat, eggs, dairy, nuts, and soy. While we do our absolute best to accommodate dietary restrictions, we cannot guarantee a completely allergen-free environment. Please mention any allergies in your order notes."})]}),l.jsxs("div",{children:[l.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-3",children:"5. Pickup & Delivery"}),l.jsx("p",{className:"text-muted-foreground",children:"Pickup is always free at a mutually agreed time. Delivery is available for a distance-based fee (typically $5–$20), which will be confirmed during order confirmation. Delivery address must be provided in order notes."})]})]})]}),l.jsx("div",{className:"border-t border-border my-16"}),l.jsxs("section",{children:[l.jsx("h1",{className:"font-heading text-4xl md:text-5xl font-semibold text-foreground mb-8",children:"Privacy Policy"}),l.jsxs("div",{className:"space-y-6 font-body text-foreground leading-relaxed",children:[l.jsxs("div",{children:[l.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-3",children:"1. Information We Collect"}),l.jsx("p",{className:"text-muted-foreground",children:"When you place an order, we collect your name, email, phone number, and delivery address. If you sign up for our email list, we collect your email address to send you updates on new flavors, seasonal specials, and promotions."})]}),l.jsxs("div",{children:[l.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-3",children:"2. How We Use Your Information"}),l.jsx("p",{className:"text-muted-foreground",children:"We use your information to process orders, send order confirmations, track deliveries, and communicate with you about your order. If you're on our email list, we'll send you occasional updates and special offers. We do not sell or share your information with third parties."})]}),l.jsxs("div",{children:[l.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-3",children:"3. Payment Security"}),l.jsx("p",{className:"text-muted-foreground",children:"Payment processing is handled securely by Stripe. We do not store full credit card details. Your payment information is protected by industry-standard encryption."})]}),l.jsxs("div",{children:[l.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-3",children:"4. Email Unsubscribe"}),l.jsx("p",{className:"text-muted-foreground",children:'You can unsubscribe from our email list at any time by clicking the "unsubscribe" link in any email we send you. We respect your privacy and do not spam.'})]}),l.jsxs("div",{children:[l.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-3",children:"5. Contact"}),l.jsx("p",{className:"text-muted-foreground",children:"If you have questions about this Privacy Policy or how we handle your data, please contact us at [email protected]."})]})]})]})]})}),l.jsx(Gn,{})]})}function vM(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 wh=1;class bM{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>
vendor: 3,664 bytes, line 370
370{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:s,...o}=t,c=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:wh++,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:s}),{...h,...t,id:c,dismissible:f,title:s}):h):this.addToast({title:s,...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(s=>s({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 s;n.loading!==void 0&&(s=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=s!==void 0,u;const f=o.then(async p=>{if(u=["resolve",p],vi.isValidElement(p))c=!1,this.create({id:s,type:"default",message:p});else if(SM(p)&&!p.ok){c=!1;const y=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,N=typeof y=="object"&&!vi.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:v,...N})}else if(p instanceof Error){c=!1;const y=typeof n.error=="function"?await n.error(p):n.error,v=typeof n.description=="function"?await n.description(p):n.description,N=typeof y=="object"&&!vi.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:v,...N})}else if(n.success!==void 0){c=!1;const y=typeof n.success=="function"?await n.success(p):n.success,v=typeof n.description=="function"?await n.description(p):n.description,N=typeof y=="object"&&!vi.isValidElement(y)?y:{message:y};this.create({id:s,type:"success",description:v,...N})}}).catch(async p=>{if(u=["reject",p],n.error!==void 0){c=!1;const g=typeof n.error=="function"?await n.error(p):n.error,y=typeof n.description=="function"?await n.description(p):n.description,j=typeof g=="object"&&!vi.isValidElement(g)?g:{message:g};this.create({id:s,type:"error",description:y,...j})}}).finally(()=>{c&&(this.dismiss(s),s=void 0),n.finally==null||n.finally.call(n)}),h=()=>new Promise((p,g)=>f.then(()=>u[0]==="reject"?g(u[1]):p(u[1])).catch(g));return typeof s!="string"&&typeof s!="number"?{unwrap:h}:Object.assign(s,{unwrap:h})},this.custom=(t,n)=>{const s=(n==null?void 0:n.id)||wh++;return this.create({jsx:t(s),id:s,...n}),s},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const hn=new bM,wM=(e,t)=>{const n=(t==null?void 0:t.id)||wh++;return hn.addToast({title:e,...t,id:n}),n},SM=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",kM=wM,jM=()=>hn.toasts,NM=()=>hn.getActiveToasts(),Dc=Object.assign(kM,{success:hn.success,info:hn.info,warning:hn.warning,error:hn.error,custom:hn.custom,message:hn.message,promise:hn.promise,dismiss:hn.dismiss,loading:hn.loading},{getHistory:jM,getToasts:NM});vM
vendor: 4,787 bytes, line 370
370("[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;
vendor: 10,086 bytes, line 370
370left: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 
370_M({couponCode:e,onClose:t}){const[n,s]=E.useState(!1),o=c=>{navigator.clipboard.writeText(c),s(!0),Dc.success("Coupon copied!"),setTimeout(()=>s(!1),2e3)};return l.jsxs(K.div,{initial:{opacity:0,scale:.8,y:20},animate:{opacity:1,scale:1,y:0},transition:{duration:.6,type:"spring",stiffness:100},className:"bg-gradient-to-br from-green-50 to-emerald-50 border-2 border-green-300 rounded-2xl p-8 text-center relative overflow-hidden",children:[l.jsx(K.div,{animate:{rotate:360},transition:{duration:20,repeat:1/0,ease:"linear"},className:"absolute top-4 right-4 text-3xl",children:"✨"}),l.jsx(K.div,{animate:{rotate:-360},transition:{duration:25,repeat:1/0,ease:"linear"},className:"absolute bottom-4 left-4 text-3xl",children:"🎉"}),l.jsx(K.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.3,type:"spring"},className:"text-5xl mb-4 relative z-10",children:"🎁"}),l.jsx(K.h2,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.4},className:"font-heading text-2xl font-bold text-green-900 mb-2 relative z-10",children:"Reward Redeemed!"}),l.jsx(K.p,{initial:{opacity:0}
370,animate:{opacity:1},transition:{delay:.5},className:"font-body text-sm text-green-700 mb-6 relative z-10",children:"Your coupon code is ready to use"}),l.jsx(K.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.6},className:"bg-white rounded-xl p-6 border-2 border-green-300 mb-6 relative z-10 shadow-lg",children:l.jsxs(K.div,{animate:{scale:[1,1.05,1]},transition:{duration:.6,delay:.8},className:"flex items-center justify-between gap-4",children:[l.jsx("span",{className:"font-heading text-3xl font-bold text-green-700 tracking-wider",children:e}),l.jsx(K.button,{whileHover:{scale:1.1},whileTap:{scale:.95},onClick:()=>o(e),className:"p-3 bg-green-100 hover:bg-green-200 rounded-lg transition-colors relative z-10",children:n?l.jsx(jh,{className:"w-6 h-6 text-green-600"}):l.jsx(Bv,{className:"w-6 h-6 text-green-600"})})]})}),l.jsx(K.button,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.7},whileHover:{scale:1.05},whileTap:{scale:.95},onClick:t,className:"px-8 py-3 bg-green-600 text-white font-body font-semibold rounded-full hover:bg-green-700 transition-all relative z-10",children:"Got it!"})]})}function EM({rewards:e,onRewardWon:t}){const[n,s]=E.useState(!1),[o,c]=E.useState(0),[u,f]=E.useState(null),h=e.slice(0,8),p=360/h.length,g=()=>{if(n)return;s(!0),f(null);const y=Math.floor(Math.random()*h.length),j=Math.random()*360+360*5-y*p;c(j),setTimeout(()=>{f(h[y]),s(!1)},3e3)};return l.jsxs("div",{className:"space-y-8",children:[l.jsxs("div",{className:"flex flex-col items-center gap-6",children:[l.jsxs("div",{className:"relative w-72 h-72",children:[l.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 z-20 w-0 h-0 border-l-6 border-r-6 border-t-8 border-l-transparent border-r-transparent border-t-primary"}),l.jsxs(K.div,{animate:{rotate:o},transition:{duration:3,ease:"easeOut"},className:"w-full h-full rounded-full relative",style:{background:`conic-gradient(
371                hsl(130 28% 35%) 0deg ${p}deg,
372                hsl(130 28% 50%) ${p}deg ${p*2}deg,
373                hsl(130 28% 35%) ${p*2}deg ${p*3}deg,
374                hsl(130 28% 50%) ${p*3}deg ${p*4}deg,
375                hsl(130 28% 35%) ${p*4}deg ${p*5}deg,
376                hsl(130 28% 50%) ${p*5}deg ${p*6}deg,
377                hsl(130 28% 35%) ${p*6}deg ${p*7}deg,
378                hsl(130 28% 50%) ${p*7}deg 360deg
379              )`},children:[h.map((y,v)=>{const j=(v*p+p/2)*(Math.PI/180),N=Math.cos(j)*100,b=Math.sin(j)*100;return l.jsxs("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-center",style:{transform:`translate(calc(-50% + ${N}px), calc(-50% + ${b}px)) rotate(${v*p+90}deg)`}
379,children:[l.jsx("p",{className:"font-body text-xs font-bold text-white whitespace-nowrap text-shadow",children:y.points}),l.jsx("p",{className:"font-body text-[10px] text-white/80",children:"pts"})]},v)}),l.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-20 h-20 bg-background rounded-full border-4 border-primary flex items-center justify-center",children:l.jsx(Kv,{className:"w-8 h-8 text-primary"})})]})]}),l.jsx("button",{onClick:g,disabled:n,className:`px-8 py-3 rounded-full font-body font-semibold transition-all ${n?"bg-muted text-muted-foreground cursor-not-allowed":"bg-primary text-primary-foreground hover:opacity-90 active:scale-95"}`,children:n?"Spinning...":"Spin to Win 🎡"})]}),u&&l.jsxs(K.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"bg-gradient-to-r from-amber-50 to-orange-50 border-2 border-amber-200 rounded-2xl p-8 text-center",children:[l.jsx("p",{className:"font-body text-sm text-amber-600 uppercase tracking-widest font-semibold mb-3",children:"🎉 You Won!"}),l.jsx("p",{className:"font-heading text-3xl font-bold text-foreground mb-2",children:u.description}),l.jsxs("p",{className:"font-body text-lg text-primary font-semibold mb-6",children:[u.points," points needed"]}),l.jsx("button",{onClick:()=>t(u),className:"px-6 py-2.5 bg-amber-600 text-white font-body text-sm font-semibold rounded-full hover:bg-amber-700 transition-all",children:"Redeem Now →"})]})]})}const CM=[{id:"first_order",name:"First Bite",emoji:"🍰",description:"Place your first order"},{id:"flavor_explorer",name:"Flavor Explorer",emoji:"🎨",description:"Try 5 different flavors"},{id:"referral_king",name:"Referral King",emoji:"👑",description:"Refer 3+ friends"},{id:"gold_tier",name:"Golden Member",emoji:"🏆",description:"Reach Gold tier (500+ pts)"},{id:"big_spender",name:"Big Spender",emoji:"💰",description:"Spend $500+"},{id:"loyalty_veteran",name:"Loyalty Veteran",emoji:"⭐",description:"Member for 6+ months"}];function TM({achievements:e=[]}){const t=new Set(Array.isArray(e)?e:typeof e=="string"?JSON.parse(e):[]);return l.jsxs("div",{className:"space-y-6",children:[l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[l.jsx(Ak,{className:"w-5 h-5 text-primary"}),l.jsx("h3",{className:"font-heading text-lg font-semibold text-foreground",children:"Achievements"})]}),l.jsx("p",{className:"font-body text-sm text-muted-foreground mb-6",children:"Unlock badges as you reach milestones in your CRAVE CLUB journey."})]}),l.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:CM.map(n=>{const s=t.has(n.id);return l.jsxs(K.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:`rounded-2xl p-4 text-center border-2 transition-all ${s?"bg-primary/10 border-primary":"bg-secondary/30 border-border"}`,children:[l.jsxs("div",{className:"relative mb-3 flex justify-center",children:[l.jsx("span",{className:`text-3xl transition-all ${!s&&"opacity-40 grayscale"}`,children:n.emoji}),!s&&l.jsx(Nh,{className:"w-4 h-4 text-muted-foreground absolute bottom-0 right-0"})]}),l.jsx("p",{className:`font-body text-xs font-semibold mb-1 ${s?"text-foreground":"text-muted-foreground"}`,children:n.name}),l.jsx("p",{className:"font-body text-xs text-muted-foreground",children:n.description}),s&&l.jsx("p",{className:"font-body text-xs text-primary font-semibold mt-2",children:"✓ Unlocked"})]},n.id)})})]})}function gv({title:e,data:t,userEmail:n}){return l.jsxs("div",{className:"bg-secondary/50 rounded-2xl p-6 border border-border",children:[l.jsx("h3",{className:"font-heading text-lg font-semibold text-foreground mb-4",children:e}),l.jsx("div",{className:"space-y-2",children:t.map((s,o)=>{const c=s.user_email===n,u=s.hide_leaderboard_name?"Anonymous User":s.full_name||s.user_email.split("@")[0];return l.jsxs("div",{className:`flex items-center justify-between p-3 rounded-lg border ${c?"bg-primary/10 border-primary":"bg-background border-border"}`,children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("span",{className:"font-body text-sm font-semibold text-muted-foreground w-6 text-center",children:o+1}),l.jsx("p",{className:"font-body text-sm font-medium text-foreground",children:u})]}),l.jsx("p",{className:"font-heading text-lg font-bold text-primary",children:s.value})]},o)})})]})}function PM({user:e,profile:t,onToggleHideName:n}){const[s,o]=E.useState({spenders:[],referrers:[]}),[c,u]=E.useState("spenders");return E.useEffect(()=>{(async()=>{try{const h=await Pe.entities.UserProfile.filter({},"-total_spent",10),p=await Pe.entities.UserProfile.filter({},"-referral_count",10);o({spenders:h.map(g=>{var y;return{...g,value:`$${((y=g.total_spent)==null?void 0:y.toFixed(2))??"0.00"}`}}),referrers:p.map(g=>({...g,value:g.referral_count??0}))})}catch(h){console.error("Error fetching leaderboard:",h)}})()},[]),l.jsxs("div",{className:"space-y-6",children:[l.jsxs("div",{className:"flex items-center justify-between mb-4",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Oj,{className:"w-5 h-5 text-primary"}),l.jsx("h3",{className:"font-heading text-lg font-semibold text-foreground",children:"Leaderboard"})]}),l.jsxs("button",{onClick:n,className:"flex items-center gap-2 px-4 py-2 bg-secondary text-foreground text-xs font-medium rounded-full hover:bg-secondary/80 transition-all",children:[t!=null&&t.hide_leaderboard_name?l.jsx(Jk,{size:14}):l.jsx(qv,{size:14}),t!=null&&t.hide_leaderboard_name?"Show My Name":"Hide My Name"]})]}),l.jsxs("div",{className:"flex gap-2 p-1.5 bg-secondary rounded-full w-full max-w-sm mx-auto",children:[l.jsx("button",{onClick:()=>u("spenders"),className:`w-1/2 py-2 text-center font-body text-sm font-medium rounded-full transition-all ${c==="spenders"?"bg-primary text-primary-foreground shadow":"text-muted-foreground"}`,children:"Top Spenders"}),l.jsx("button",{onClick:()=>u("referrers"),className:`w-1/2 py-2 text-center font-body text-sm font-medium rounded-full transition-all ${c==="referrers"?"bg-primary text-primary-foreground shadow":"text-muted-foreground"}`,children:"Top Referrers"})]}),l.jsxs(K.div,{initial:{opacity:0}
379,animate:{opacity:1},children:[c==="spenders"&&l.jsx(gv,{title:"Top 10 Spenders",data:s.spenders,userEmail:e==null?void 0:e.email}),c==="referrers"&&l.jsx(gv,{title:"Top 10 Referrers",data:s.referrers,userEmail:e==null?void 0:e.email})]},c)]})}const AM=[{id:"gold_deal_1",name:"Gold Flash Sale - 20% Off Any Cheesecake",description:"Exclusive 20% discount on any made-to-order cheesecake. Valid for 48 hours from first use.",badge:"⚡ 48HR",discount:"20%",order_label:"20% Off Cheesecake Coupon",value:"$50+"},{id:"gold_deal_2",name:"Free Premium Topping Upgrade",description:"Add any premium topping to your next order for free — fresh berries, chocolate drizzle, or luxe glazes.",badge:"🎁 Free",discount:"Free",order_label:"Free Premium Topping",value:"$15+"},{id:"gold_deal_3",name:"Double Points This Month",description:"Earn 2 loyalty points per $1 spent throughout the month. Stack with referrals!",badge:"2X",discount:"2X Points",order_label:"Double Points Activation",value:"Unlimited"}];function RM({loyaltyTier:e}){return e==="Gold"?l.jsxs("div",{className:"space-y-6",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[l.jsx(Uv,{className:"w-5 h-5 text-amber-500"}),l.jsx("h3",{className:"font-heading text-lg font-semibold text-foreground",children:"Gold Exclusive Deals"})]}),l.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:AM.map((n,s)=>l.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:s*.1},className:"bg-gradient-to-br from-amber-50 to-orange-50 border-2 border-amber-200 rounded-2xl p-6 relative overflow-hidden",children:[l.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-amber-300/20 rounded-full blur-3xl"}),l.jsxs("div",{className:"relative z-10",children:[l.jsxs("div",{className:"flex items-start justify-between mb-3",children:[l.jsx("span",{className:"inline-block px-3 py-1 bg-amber-600 text-white font-body text-xs font-semibold rounded-full",children:n.badge}),l.jsx("span",{className:"font-heading text-2xl font-bold text-amber-700",children:n.discount})]}),l.jsx("h4",{className:"font-heading text-lg font-semibold text-foreground mb-2",children:n.name}),l.jsx("p",{className:"font-body text-sm text-muted-foreground mb-4",children:n.description}),l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("span",{className:"font-body text-xs text-amber-700 font-semibold",children:["Value: ",n.value]}),l.jsx("button",{onClick:()=>{oa({id:n.id,name:n.order_label,price:0,image:null})},className:"px-4 py-2 bg-amber-600 text-white font-body text-xs font-semibold rounded-full hover:bg-amber-700 transition-all",children:"Claim →"})]})]})]},n.id))}),l.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-2xl p-4",children:l.jsxs("p",{className:"font-body text-sm text-blue-900",children:[l.jsx("span",{className:"font-semibold",children:"💡 Tip:"})," Gold deals refresh monthly. Check back for new exclusive offers!"]})})]}):l.jsxs("div",{className:"bg-gradient-to-r from-amber-50 to-orange-50 border-2 border-amber-200 rounded-2xl p-8 text-center",children:[l.jsx(Nh,{className:"w-8 h-8 text-amber-600 mx-auto mb-4"}),l.jsx("p",{className:"font-heading text-xl font-semibold text-amber-900 mb-2",children:"Gold Member Only"}),l.jsxs("p",{className:"font-body text-sm text-amber-700",children:["Reach Gold tier (500+ loyalty points) to unlock exclusive deals, flash sales, and perks! You're ",500-(parseInt(localStorage.getItem("loyalty_points"))||0)," points away."]})]})}const OM=[{icon:Eh,label:"Share your code",desc:"Give your unique referral code to friends & family"},{icon:Ch,label:"They order",desc:"When they place their first order using your code"},{icon:Cj,label:"Both earn points",desc:"You get +50 points, they get +25 points — win-win!"}];function MM({profile:e,user:t}){const[n,s]=E.useState(!1),o=(e==null?void 0:e.referral_code)||null,c=(e==null?void 0:e.referral_count)||0,u=c*50,f=()=>{o&&(navigator.clipboard.writeText(o),s(!0),Dc.success("Referral code copied!"),setTimeout(()=>s(!1),2e3))},h=`Use my MikeEats referral code ${o} when ordering and we both earn loyalty points! 🍰`,p=async()=>{navigator.share?await navigator.share({title:"MikeEats Referral",text:h}):(navigator.clipboard.writeText(h),Dc.success("Share text copied!"))};return l.jsxs("div",{className:"space-y-6",children:[l.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[l.jsxs("div",{className:"bg-secondary/50 rounded-2xl p-5 border border-border text-center",children:[l.jsx("p",{className:"font-heading text-3xl font-bold text-primary",children:c}),l.jsx("p",{className:"font-body text-xs text-muted-foreground mt-1",children:"Friends Referred"})]}),l.jsxs("div",{className:"bg-secondary/50 rounded-2xl p-5 border border-border text-center",children:[l.jsxs("p",{className:"font-heading text-3xl font-bold text-green-600",children:["+",u]}),l.jsx("p",{className:"font-body text-xs text-muted-foreground mt-1",children:"Points Earned"})]})]}),l.jsxs("div",{className:"bg-gradient-to-r from-primary/10 to-primary/5 border border-primary/20 rounded-2xl p-6",children:[l.jsx("p",{className:"font-body text-xs text-muted-foreground uppercase tracking-wider mb-2",children:"Your Referral Code"}),o?l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[l.jsx("p",{className:"font-heading text-3xl font-bold text-primary tracking-widest",children:o}),l.jsx("button",{onClick:f,className:"p-2 bg-primary/10 rounded-lg hover:bg-primary/20 transition-colors",children:n?l.jsx(jh,{className:"w-4 h-4 text-primary"}):l.jsx(Bv,{className:"w-4 h-4 text-primary"})})]}),l.jsxs("button",{onClick:p,className:"inline-flex items-center gap-2 px-5 py-2.5 bg-primary text-primary-foreground font-body text-sm font-semibold rounded-full hover:opacity-90 transition-all",children:[l.jsx(Eh,{className:"w-4 h-4"})," Share with Friends"]})]}):l.jsx("p",{className:"font-body text-sm text-muted-foreground",children:"Your referral code will appear here after your first order."})]}),l.jsxs("div",{className:"bg-card rounded-2xl border border-border p-6",children:[l.jsx("h3",{className:"font-heading text-lg font-semibold text-foreground mb-5",children:"How It Works"}),l.jsx("div",{className:"space-y-4",children:OM.map((g,y)=>{const v=g.icon;return l.jsxs(K.div,{initial:{opacity:0,x:-10}
379,animate:{opacity:1,x:0},transition:{delay:y*.1},className:"flex items-start gap-4",children:[l.jsx("div",{className:"w-9 h-9 bg-primary/10 rounded-xl flex items-center justify-center shrink-0",children:l.jsx(v,{className:"w-4 h-4 text-primary"})}),l.jsxs("div",{children:[l.jsx("p",{className:"font-body text-sm font-semibold text-foreground",children:g.label}),l.jsx("p",{className:"font-body text-xs text-muted-foreground",children:g.desc})]})]},y)})})]}),l.jsxs("div",{className:"bg-amber-50 border border-amber-200 rounded-2xl p-5 flex gap-3",children:[l.jsx(aa,{className:"w-5 h-5 text-amber-600 shrink-0 mt-0.5"}),l.jsxs("p",{className:"font-body text-sm text-amber-800",children:[l.jsx("span",{className:"font-semibold",children:"You earn 50 points"})," for each friend who orders using your code.",l.jsx("span",{className:"font-semibold",children:" They earn 25 points"})," as a welcome bonus. Points apply automatically!"]})]})]})}const yv=[{id:"reward_25_pts",points:25,description:"$3 off",value:"$3"},{id:"reward_50_pts",points:50,description:"Free cupcake",value:"$4-5"},{id:"reward_100_pts",points:100,description:"$10 off",value:"$10"},{id:"reward_120_pts",points:120,description:"Free cake cup",value:"$5"},{id:"reward_200_pts",points:200,description:"Free 6 mini cheesecakes",value:"$30"},{id:"reward_300_pts",points:300,description:"$25 off order",value:"$25"},{id:"reward_400_pts",points:400,description:"Deluxe Cheesecake Box upgrade",value:"$50"}];function LM(){var Ne;const[e,t]=E.useState(null),[n,s]=E.useState(null),[o,c]=E.useState([]),[u,f]=E.useState([]),[h,p]=E.useState(!0),[g,y]=E.useState("overview"),[v,j]=E.useState(null),[N,b]=E.useState(null),[_,w]=E.useState(!1),[T,A]=E.useState(!1),[R,I]=E.useState(!1);E.useEffect(()=>{(async()=>{var Se,Te;try{const Ae=await Pe.auth.me();t(Ae);const me=await Pe.entities.UserProfile.filter({user_email:Ae.email},"-created_date",1);if(s(me[0]||null),(Se=me[0])!=null&&Se.birthday){const G=new Date,le=`${String(G.getMonth()+1).padStart(2,"0")}-${String(G.getDate()).padStart(2,"0")}`;me[0].birthday===le&&(A(!0),setTimeout(()=>{bh({particleCount:100,spread:70,origin:{y:.3},colors:["#2D6A2D","#C8860A","#E8C84A","#8B1A1A","#1A4A7A"]})},500))}const xe=await Pe.entities.Order.filter({customer_email:Ae.email},"-created_date",10);if(c(xe),(Te=me[0])!=null&&Te.favorite_order_ids){const G=me[0].favorite_order_ids.split(","),le=await Promise.all(G.map(C=>Pe.entities.Order.filter({order_id:C},"-created_date",1)));f(le.filter(C=>C.length>0).map(C=>C[0]))}}catch(Ae){console.error("Error loading dashboard:",Ae)}finally{p(!1)}})()},[]);const V=(n==null?void 0:n.loyalty_points)>=500?"Gold":(n==null?void 0:n.loyalty_points)>=250?"Silver":"Bronze",Z=V==="Gold"?null:V==="Silver"?500-(n==null?void 0:n.loyalty_points):250-(n==null?void 0:n.loyalty_points),F=async()=>{await Pe.auth.logout()},ne=async re=>{if(!n)return;const Se=n.favorite_order_ids?n.favorite_order_ids.split(","):[],Te=Se.includes(re)?Se.filter(Ae=>Ae!==re):[...Se,re];await Pe.entities.UserProfile.update(n.id,{favorite_order_ids:Te.join(",")}),s({...n,favorite_order_ids:Te.join(",")})},ye=async re=>{j(re);try{const Se=await Pe.functions.invoke("redeemLoyaltyReward",{rewardId:re});b(Se.coupon_code),s({...n,loyalty_points:Se.points_remaining}),I(!0),bh({particleCount:100,spread:70,origin:{y:.6},colors:["#2D6A2D","#C8860A","#E8C84A","#8B1A1A","#1A4A7A"]})}catch(Se){Dc.error(Se.message||"Failed to redeem reward")}finally{j(null)}};return h?l.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:l.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})}):e?l.jsxs("div",{className:"min-h-screen bg-background",children:[l.jsx(Kn,{}),l.jsx("div",{className:"pt-24 pb-20",children:l.jsxs("div",{className:"max-w-5xl mx-auto px-6 md:px-[8vw]",children:[l.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"flex items-center justify-between mb-12",children:[l.jsxs("div",{children:[l.jsxs("h1",{className:"font-heading text-4xl md:text-5xl font-semibold text-foreground mb-2",children:["Welcome back, ",e==null?void 0:e.full_name,"!"]}),l.jsx("p",{className:"font-body text-muted-foreground",children:"Manage your account, rewards, and favorite orders."})]}),l.jsxs("button",{onClick:F,className:"px-5 py-2.5 bg-secondary text-foreground font-body text-sm font-medium rounded-full hover:bg-secondary/80 transition-all flex items-center gap-2",children:[l.jsx($v,{className:"w-4 h-4"})," Logout"]})]}),l.jsxs(K.div,{initial:{opacity:0,y:20}
379,animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-gradient-to-r from-primary/10 to-primary/5 border border-primary/20 rounded-3xl p-8 mb-8",children:[l.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[l.jsx(aa,{className:"w-6 h-6 text-primary"}),l.jsx("h2",{className:"font-heading text-2xl font-semibold text-foreground",children:"Loyalty Rewards"})]}),l.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[l.jsxs("div",{className:"bg-background rounded-2xl p-6 border border-border",children:[l.jsx("p",{className:"font-body text-xs text-muted-foreground uppercase tracking-wider mb-1",children:"Current Points"}),l.jsx("p",{className:"font-heading text-4xl font-bold text-primary",children:(n==null?void 0:n.loyalty_points)||0})]}),l.jsxs("div",{className:"bg-background rounded-2xl p-6 border border-border",children:[l.jsx("p",{className:"font-body text-xs text-muted-foreground uppercase tracking-wider mb-1",children:"Member Tier"}),l.jsx("p",{className:"font-heading text-2xl font-semibold text-foreground",children:V}),l.jsx("p",{className:"font-body text-xs text-muted-foreground mt-2",children:Z?`${Z} points to next tier`:"🏆 Top tier!"})]}),l.jsxs("div",{className:"bg-background rounded-2xl p-6 border border-border",children:[l.jsx("p",{className:"font-body text-xs text-muted-foreground uppercase tracking-wider mb-1",children:"Total Spent"}),l.jsxs("p",{className:"font-heading text-3xl font-bold text-foreground",children:["$",((Ne=n==null?void 0:n.total_spent)==null?void 0:Ne.toFixed(2))||"0.00"]})]})]}),l.jsx("div",{className:"mt-6 bg-background rounded-2xl p-4 border border-border",children:l.jsxs("p",{className:"font-body text-sm text-muted-foreground",children:["✨ ",l.jsx("span",{className:"font-semibold text-foreground",children:"Earn 1 point per $1 spent"})," — Redeem 100 points for $10 off!"]})})]}),l.jsxs("div",{className:"mb-8 border-b border-border pb-4",children:[l.jsx("div",{className:"hidden md:flex gap-3",children:[{id:"overview",label:"Overview"},{id:"orders",label:"Order History"},{id:"favorites",label:"Favorites"},{id:"addresses",label:"Addresses"},{id:"achievements",label:"Achievements"},{id:"leaderboard",label:"Leaderboard"},{id:"rewards",label:"Rewards"},{id:"referral",label:"Refer Friends"}].map(re=>l.jsx("button",{onClick:()=>y(re.id),className:`px-4 py-3 font-body text-sm font-medium border-b-2 transition-all ${g===re.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:re.label},re.id))}),l.jsx("div",{className:"md:hidden flex gap-2 overflow-x-auto pb-1 scrollbar-none",children:[{id:"overview",label:"Overview"},{id:"orders",label:"Orders"},{id:"favorites",label:"Favorites"},{id:"addresses",label:"Addresses"},{id:"achievements",label:"Achievements"},{id:"leaderboard",label:"Leaderboard"},{id:"rewards",label:"Rewards"},{id:"referral",label:"Refer Friends"}].map(re=>l.jsx("button",{onClick:()=>y(re.id),className:`shrink-0 px-4 py-2 rounded-full font-body text-sm font-medium transition-all ${g===re.id?"bg-primary text-primary-foreground":"bg-secondary text-muted-foreground"}`,children:re.label},re.id))})]}),l.jsxs(K.div,{initial:{opacity:0}
379,animate:{opacity:1},transition:{duration:.3},children:[g==="overview"&&l.jsx("div",{className:"space-y-6",children:l.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[l.jsxs("div",{className:"bg-secondary/50 rounded-2xl p-6 border border-border",children:[l.jsx("h3",{className:"font-heading text-lg font-semibold text-foreground mb-3",children:"Recent Orders"}),o.length===0?l.jsx("p",{className:"font-body text-sm text-muted-foreground",children:"No orders yet."}):l.jsx("div",{className:"space-y-2",children:o.slice(0,3).map(re=>l.jsxs("div",{className:"p-3 bg-background rounded-lg border border-border",children:[l.jsx("p",{className:"font-body text-sm font-semibold text-foreground",children:re.customer_name}),l.jsx("p",{className:"font-body text-xs text-muted-foreground",children:new Date(re.created_date).toLocaleDateString()})]},re.id))})]}),l.jsxs("div",{className:"bg-secondary/50 rounded-2xl p-6 border border-border",children:[l.jsx("h3",{className:"font-heading text-lg font-semibold text-foreground mb-3",children:"Account Info"}),l.jsxs("div",{className:"space-y-3",children:[l.jsxs("div",{children:[l.jsx("p",{className:"font-body text-xs text-muted-foreground",children:"Email"}),l.jsx("p",{className:"font-body text-sm text-foreground",children:e==null?void 0:e.email})]}),l.jsxs("div",{children:[l.jsx("p",{className:"font-body text-xs text-muted-foreground",children:"Member Since"}),l.jsx("p",{className:"font-body text-sm text-foreground",children:n!=null&&n.member_since?new Date(n.member_since).toLocaleDateString():n!=null&&n.created_date?new Date(n.created_date).toLocaleDateString():"—"})]})]})]})]})}),g==="orders"&&l.jsx("div",{className:"space-y-3",children:o.length===0?l.jsx("p",{className:"font-body text-muted-foreground",children:"No orders yet."}):o.map(re=>l.jsxs(K.div,{initial:{opacity:0}
379,animate:{opacity:1},className:"bg-secondary/50 rounded-2xl p-6 border border-border flex items-center justify-between",children:[l.jsxs("div",{children:[l.jsx("p",{className:"font-body font-semibold text-foreground",children:re.order_id}),l.jsx("p",{className:"font-body text-sm text-muted-foreground",children:new Date(re.created_date).toLocaleDateString()}),l.jsx("p",{className:"font-body text-sm text-primary font-medium mt-1",children:re.status})]}),l.jsx("button",{onClick:()=>ne(re.id),className:"p-3 text-muted-foreground hover:text-primary transition-colors",children:l.jsx(zv,{className:"w-5 h-5",fill:u.some(Se=>Se.id===re.id)?"currentColor":"none"})})]},re.id))}),g==="favorites"&&l.jsx("div",{className:"space-y-3",children:u.length===0?l.jsx("p",{className:"font-body text-muted-foreground",children:"No favorite orders yet. ❤️"}):u.map(re=>l.jsxs("div",{className:"bg-secondary/50 rounded-2xl p-6 border border-primary/20",children:[l.jsx("p",{className:"font-body font-semibold text-foreground",children:re.order_id}),l.jsx("p",{className:"font-body text-sm text-muted-foreground",children:re.order_items})]},re.id))}),g==="addresses"&&l.jsxs("div",{children:[l.jsx("p",{className:"font-body text-muted-foreground mb-4",children:"Saved delivery addresses will appear here."}),l.jsxs("button",{className:"px-6 py-3 bg-primary text-primary-foreground font-body text-sm font-medium rounded-full hover:opacity-90 transition-all flex items-center gap-2",children:[l.jsx(Wv,{className:"w-4 h-4"})," Add Address"]})]}),g==="achievements"&&l.jsx(TM,{achievements:n==null?void 0:n.achievements}),g==="leaderboard"&&l.jsx(PM,{user:e,profile:n,onToggleHideName:async()=>{await Pe.entities.UserProfile.update(n.id,{hide_leaderboard_name:!n.hide_leaderboard_name}),s({...n,hide_leaderboard_name:!n.hide_leaderboard_name})}}),T&&l.jsxs(K.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"bg-gradient-to-r from-pink-100 via-rose-50 to-pink-100 border-2 border-pink-300 rounded-2xl p-6 mb-8 text-center relative overflow-hidden",children:[l.jsx(K.div,{animate:{scale:[1,1.2,1]},transition:{duration:.6,repeat:1/0},className:"absolute top-4 right-6 text-4xl",children:"🎂"}),l.jsx(K.div,{animate:{rotate:360},transition:{duration:3,repeat:1/0},className:"absolute bottom-4 left-6 text-4xl",children:"🎈"}),l.jsx("h3",{className:"font-heading text-2xl font-bold text-rose-700 relative z-10",children:"🎉 Happy Birthday! 🎉"}),l.jsx("p",{className:"font-body text-sm text-rose-600 mt-2 relative z-10",children:"Enjoy your special day with exclusive birthday rewards!"})]}),g==="rewards"&&l.jsxs("div",{className:"space-y-8",children:[V==="Gold"&&l.jsx("div",{className:"mb-8",children:l.jsx(RM,{loyaltyTier:V})}),l.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-2xl p-6",children:l.jsxs("p",{className:"font-body text-sm text-blue-900",children:[l.jsx("span",{className:"font-semibold",children:"📍 Pickup Only:"})," All rewards must be picked up in-store. We do not offer shipping or delivery for redeemed rewards."]})}),_?l.jsx(EM,{rewards:yv,onRewardWon:re=>{ye(re.id),w(!1)}}):l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"bg-gradient-to-r from-amber-50 to-orange-50 border border-orange-200 rounded-2xl p-6 md:p-8",children:[l.jsx("h3",{className:"font-heading text-2xl font-semibold text-foreground mb-6",children:"🏆 What You Could Win"}),l.jsxs("div",{className:"space-y-3",children:[l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx("span",{className:"text-lg",children:"🍰"}),l.jsxs("div",{children:[l.jsx("p",{className:"font-body font-semibold text-foreground",children:"Mini Cheesecake Tray"}),l.jsx("p",{className:"font-body text-xs text-muted-foreground",children:"200 points — 6 assorted mini cheesecakes (our cost: ~$30)"})]})]}),l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx("span",{className:"text-lg",children:"💰"}),l.jsxs("div",{children:[l.jsx("p",{className:"font-body font-semibold text-foreground",children:"Cash Discounts"}),l.jsx("p",{className:"font-body text-xs text-muted-foreground",children:"25 pts for $3 off, 100 pts for $10 off, 300 pts for $25 off"})]})]}),l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx("span",{className:"text-lg",children:"⭐"}),l.jsxs("div",{children:[l.jsx("p",{className:"font-body font-semibold text-foreground",children:"Premium Upgrades"}),l.jsx("p",{className:"font-body text-xs text-muted-foreground",children:"400 pts for Deluxe Cheesecake Box discount — valued at $50+"})]})]})]})]}),N&&R?l.jsx(_M,{couponCode:N,onClose:()=>{I(!1),b(null)}}):l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"space-y-6",children:[l.jsx("div",{className:"flex items-center justify-between",children:l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[l.jsx(Uj,{className:"w-5 h-5 text-primary"}),l.jsx("h3",{className:"font-heading text-lg font-semibold text-foreground",children:"Available Rewards"})]}),l.jsxs("p",{className:"font-body text-sm text-muted-foreground",children:["You have ",l.jsx("span",{className:"font-bold text-primary",children:(n==null?void 0:n.loyalty_points)||0})," points to spend"]})]})}),l.jsx("button",{onClick:()=>w(!0),className:"px-6 py-3 bg-gradient-to-r from-primary to-primary/80 text-primary-foreground font-body font-semibold rounded-full hover:opacity-90 transition-all flex items-center gap-2 justify-center w-full",children:"🎡 Try Mystery Reward Wheel"})]}),l.jsx("div",{className:"bg-primary/10 rounded-2xl p-6 border border-primary/20",children:l.jsx("p",{className:"font-body text-sm text-muted-foreground",children:"Or choose a specific reward below"})}),l.jsx("div",{className:"grid sm:grid-cols-2 gap-4",children:yv.map(re=>{const Se=((n==null?void 0:n.loyalty_points)||0)>=re.points;return l.jsxs(K.div,{initial:{opacity:0}
379,animate:{opacity:1},className:`rounded-2xl border-2 p-4 transition-all ${Se?"border-primary bg-primary/5 hover:shadow-lg":"border-border bg-secondary/30 opacity-60"}`,children:[l.jsxs("div",{className:"flex items-start justify-between mb-3",children:[l.jsx("span",{className:"font-heading text-2xl font-bold text-primary",children:re.points}),l.jsxs("span",{className:"font-body text-xs bg-primary/10 text-primary px-2 py-1 rounded-full",children:["Worth ",re.value]})]}),l.jsx("p",{className:"font-body text-sm font-semibold text-foreground mb-3",children:re.description}),l.jsx("button",{onClick:()=>ye(re.id),disabled:!Se||v===re.id,className:`w-full py-2.5 rounded-lg font-body text-xs font-semibold transition-all ${Se?"bg-primary text-primary-foreground hover:opacity-90":"bg-muted text-muted-foreground cursor-not-allowed"} ${v===re.id?"opacity-50":""}`,children:v===re.id?"Redeeming...":"Redeem"})]},re.id)})})]})]})]}),g==="referral"&&l.jsx(MM,{profile:n,user:e})]},g)]})}),l.jsx(Gn,{})]}):l.jsxs("div",{className:"min-h-screen bg-background",children:[l.jsx(Kn,{}),l.jsx("div",{className:"pt-24 pb-20 flex items-center justify-center",children:l.jsxs("div",{className:"max-w-md mx-auto px-6 text-center",children:[l.jsx(aa,{className:"w-16 h-16 text-primary mx-auto mb-6"}),l.jsx("h1",{className:"font-heading text-3xl font-semibold text-foreground mb-3",children:"Welcome to CRAVE CLUB™"}),l.jsx("p",{className:"font-body text-muted-foreground mb-8",children:"Sign in to earn points on every order and unlock exclusive rewards."}),l.jsx("button",{onClick:()=>Pe.auth.redirectToLogin(),className:"px-8 py-3.5 bg-primary text-primary-foreground font-body text-sm font-medium rounded-full hover:opacity-90 transition-all",children:"Sign In to Your Account"})]})}),l.jsx(Gn,{})]})}function DM(){const[e,t]=E.useState([]),[n,s]=E.useState(!0);if(E.useEffect(()=>{(async()=>{try{const T=await Pe.entities.Order.list("-created_date",200);t(T)}catch(T){console.error("Error loading metrics:",T)}finally{s(!1)}})()},[]),n)return l.jsx("div",{className:"grid md:grid-cols-4 gap-4",children:[...Array(4)].map((w,T)=>l.jsx("div",{className:"animate-pulse bg-secondary rounded-2xl h-28"},T))});const o=w=>parseFloat((w||"0").toString().replace(/[^0-9.-]/g,""))||0,c=new Date,u=c.toDateString(),f=new Date(c);f.setDate(c.getDate()-7),new Date(c).setDate(c.getDate()-30);const p=e.reduce((w,T)=>w+o(T.estimated_total),0),g=e.filter(w=>new Date(w.created_date).toDateString()===u).reduce((w,T)=>w+o(T.estimated_total),0),y=e.filter(w=>new Date(w.created_date)>=f).reduce((w,T)=>w+o(T.estimated_total),0),v=e.length>0?p/e.length:0,j=e.filter(w=>["received","confirmed","preparing"].includes(w.status)),N=e.filter(w=>w.status==="delivered"),b=[{label:"Total Revenue",value:`$${p.toFixed(2)}`,icon:Qk,color:"text-green-600",bg:"bg-green-50"},{label:"This Week",value:`$${y.toFixed(2)}`,icon:Gv,color:"text-blue-600",bg:"bg-blue-50"},{label:"Today",value:`$${g.toFixed(2)}`,icon:Ok,color:"text-purple-600",bg:"bg-purple-50"},{label:"Avg Order",value:`$${v.toFixed(2)}`,icon:cc,color:"text-orange-600",bg:"bg-orange-50"}],_=["received","confirmed","preparing","ready","delivered"].map(w=>({status:w,count:e.filter(T=>T.status===w).length}));return l.jsxs("div",{className:"space-y-6",children:[l.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 md:gap-4",children:b.map((w,T)=>{const A=w.icon;return l.jsxs(K.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:T*.08},className:"bg-card rounded-2xl p-5 border border-border",children:[l.jsx("div",{className:`w-9 h-9 ${w.bg} rounded-xl flex items-center justify-center mb-3`,children:l.jsx(A,{className:`w-5 h-5 ${w.color}`})}),l.jsx("p",{className:"font-body text-xs text-muted-foreground uppercase tracking-wide mb-1",children:w.label}),l.jsx("p",{className:"font-heading text-2xl md:text-3xl font-bold text-foreground",children:w.value})]},T)})}),l.jsxs("div",{className:"grid md:grid-cols-3 gap-3",children:[l.jsxs("div",{className:"bg-card rounded-2xl p-5 border border-border",children:[l.jsx("p",{className:"font-body text-xs text-muted-foreground uppercase tracking-wide mb-1",children:"Total Orders"}),l.jsx("p",{className:"font-heading text-3xl font-bold text-foreground",children:e.length})]}),l.jsxs("div",{className:"bg-card rounded-2xl p-5 border border-border",children:[l.jsx("p",{className:"font-body text-xs text-muted-foreground uppercase tracking-wide mb-1",children:"Active Orders"}),l.jsx("p",{className:"font-heading text-3xl font-bold text-orange-600",children:j.length})]}),l.jsxs("div",{className:"bg-card rounded-2xl p-5 border border-border",children:[l.jsx("p",{className:"font-body text-xs text-muted-foreground uppercase tracking-wide mb-1",children:"Completed"}),l.jsx("p",{className:"font-heading text-3xl font-bold text-green-600",children:N.length})]})]}),l.jsxs("div",{className:"bg-card rounded-2xl p-5 border border-border",children:[l.jsx("h3",{className:"font-heading text-base font-semibold text-foreground mb-4",children:"Orders by Status"}),l.jsx("div",{className:"space-y-3",children:_.map(({status:w,count:T})=>{const A=e.length>0?T/e.length*100:0;return l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("span",{className:"font-body text-xs capitalize text-muted-foreground w-20 shrink-0",children:w}),l.jsx("div",{className:"flex-1 bg-secondary rounded-full h-2",children:l.jsx("div",{className:"bg-primary h-2 rounded-full transition-all duration-500",style:{width:`${A}%`}})}),l.jsx("span",{className:"font-body text-xs font-semibold text-foreground w-8 text-right",children:T})]},w)})})]}),l.jsxs("div",{className:"bg-card rounded-2xl border border-border overflow-hidden",children:[l.jsx("div",{className:"px-5 py-4 border-b border-border",children:l.jsx("h3",{className:"font-heading text-base font-semibold text-foreground",children:"Recent Orders"})}),l.jsx("div",{className:"divide-y divide-border max-h-80 overflow-y-auto",children:e.slice(0,20).map(w=>l.jsxs("div",{className:"flex items-center justify-between px-5 py-3 hover:bg-secondary/30 transition-colors",children:[l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("p",{className:"font-body text-sm font-semibold text-foreground truncate",children:w.
379customer_name||w.customer_email||"Guest"}),l.jsxs("p",{className:"font-body text-xs text-muted-foreground",children:[new Date(w.created_date).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})," · ",l.jsx("span",{className:"capitalize",children:w.status})]})]}),l.jsx("p",{className:"font-heading text-sm font-bold text-primary ml-3",children:w.estimated_total||"—"})]},w.id))})]})]})}const xv={received:{icon:Sa,color:"bg-orange-100 text-orange-700",dot:"bg-orange-500"},confirmed:{icon:Jr,color:"bg-blue-100 text-blue-700",dot:"bg-blue-500"},preparing:{icon:Ic,color:"bg-yellow-100 text-yellow-700",dot:"bg-yellow-500"},ready:{icon:Wn,color:"bg-green-100 text-green-700",dot:"bg-green-500"},shipped:{icon:Fi,color:"bg-purple-100 text-purple-700",dot:"bg-purple-500"},delivered:{icon:Fi,color:"bg-gray-100 text-gray-600",dot:"bg-gray-400"}},vv=["received","confirmed","preparing","ready","shipped","delivered"];function IM(){const[e,t]=E.useState([]),[n,s]=E.useState(!0),[o,c]=E.useState("all"),[u,f]=E.useState({});E.useEffect(()=>{let y;return(async()=>{try{const j=await Pe.entities.Order.list("-created_date",100);t(j),y=Pe.entities.Order.subscribe(N=>{N.type==="create"?t(b=>[N.data,...b]):N.type==="update"?t(b=>b.map(_=>_.id===N.id?N.data:_)):N.type==="delete"&&t(b=>b.filter(_=>_.id!==N.id))})}catch(j){console.error("Error loading orders:",j)}finally{s(!1)}})(),()=>y==null?void 0:y()},[]);const h=async(y,v)=>{const j={status:v};if(v==="shipped"){const N=u[y]||{};N.tracking_number&&(j.tracking_number=N.tracking_number),N.tracking_carrier&&(j.tracking_carrier=N.tracking_carrier),j.shipped_date=N.shipped_date||new Date().toISOString()}await Pe.entities.Order.update(y,j)},p=(y,v,j)=>{f(N=>({...N,[y]:{...N[y]||{},[v]:j}}))};if(n)return l.jsx("div",{className:"space-y-3",children:[...Array(3)].map((y,v)=>l.jsx("div",{className:"animate-pulse bg-secondary rounded-2xl h-36"},v))});const g=o==="all"?e:e.filter(y=>y.status===o);return l.jsxs("div",{className:"space-y-5",children:[l.jsxs("div",{className:"flex gap-2 flex-wrap items-center",children:[l.jsx(ej,{className:"w-4 h-4 text-muted-foreground shrink-0"}),["all",...vv].map(y=>l.jsx("button",{onClick:()=>c(y),className:`px-3 py-1.5 rounded-full font-body text-xs font-medium capitalize transition-all ${o===y?"bg-primary text-primary-foreground":"bg-secondary text-muted-foreground hover:text-foreground"}`,children:y==="all"?`All (${e.length})`:`${y} (${e.filter(v=>v.status===y).length})`},y))]}),g.length===0?l.jsx("div",{className:"text-center py-16 text-muted-foreground font-body",children:"No orders found."}):g.map((y,v)=>{var N,b,_,w;const j=xv[y.status]||xv.received;return j.icon,l.jsxs(K.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:v*.04},className:"bg-card rounded-2xl border border-border overflow-hidden",children:[l.jsxs("div",{className:"flex items-start justify-between px-5 pt-5 pb-3 gap-3",children:[l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[l.jsx("p",{className:"font-heading text-base font-semibold text-foreground",children:y.customer_name||"Unknown"}),l.jsxs("span",{className:`inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full font-body text-xs font-semibold ${j.color}`,children:[l.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${j.dot}`}),y.status]})]}),l.jsxs("div",{className:"flex items-center gap-3 mt-1 flex-wrap",children:[y.customer_email&&l.jsxs("a",{href:`mailto:${y.customer_email}`,className:"flex items-center gap-1 font-body text-xs text-muted-foreground hover:text-primary transition-colors",children:[l.jsx(Xr,{className:"w-3 h-3"}),y.customer_email]}),y.customer_phone&&l.jsxs("a",{href:`tel:${y.customer_phone}`,className:"flex items-center gap-1 font-body text-xs text-muted-foreground hover:text-primary transition-colors",children:[l.jsx(_h,{className:"w-3 h-3"}),y.customer_phone]})]}),l.jsxs("p",{className:"font-body text-xs text-muted-foreground mt-1",children:["Ordered: ",new Date(y.created_date).toLocaleString("en-US",{dateStyle:"medium",timeStyle:"short"})]}),y.estimated_ready_time&&l.jsxs("p",{className:"font-body text-xs font-semibold text-primary mt-0.5",children:["⏰ Needed by: ",y.estimated_ready_time]})]}),l.jsx("div",{className:"text-right shrink-0",children:l.jsx("p",{className:"font-heading text-2xl font-bold text-primary",children:y.estimated_total||"—"})})]}),y.order_items&&l.jsxs("div",{className:"mx-5 mb-3 bg-secondary/50 rounded-xl p-3",children:[l.jsx("p",{className:"font-body text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-1",children:"Items"}),l.jsx("p",{className:"font-body text-sm text-foreground leading-relaxed",children:y.order_items})]}),y.notes&&l.jsxs("div",{className:"mx-5 mb-3 bg-blue-50 rounded-xl p-3 border border-blue-100",children:[l.jsx("p",{className:"font-body text-xs font-semibold text-blue-800 mb-1",children:"Customer Note"}),l.jsx("p",{className:"font-body text-xs text-blue-700",children:y.notes})]}),y.status==="shipped"||y.tracking_number?l.jsxs("div",{className:"mx-5 mb-3 bg-purple-50 border border-purple-200 rounded-xl p-3 space-y-1",children:[l.jsx("p",{className:"font-body text-xs font-semibold text-purple-700 uppercase tracking-wide",children:"Shipping Info"}),y.shipped_date&&l.jsxs("p",{className:"font-body text-xs text-purple-800",children:["Shipped: ",new Date(y.shipped_date).toLocaleDateString()]}),y.tracking_carrier&&l.jsxs("p",{className:"font-body text-xs text-purple-800",children:["Carrier: ",y.tracking_carrier]}),y.tracking_number&&l.jsxs("p",{className:"font-body text-xs font-mono text-purple-900 font-semibold",children:["Tracking: ",y.tracking_number]})]}):y.status==="ready"&&l.jsxs("div",{className:"mx-5 mb-3 bg-purple-50 border border-purple-200 rounded-xl p-3 space-y-2",children:[l.jsx("p",{className:"font-body text-xs font-semibold text-purple-700",children:"Add tracking before marking Shipped (optional)"}),l.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[l.jsx("input",{type:"text",placeholder:"Tracking number",value:((N=u[y.id])==null?void 0:N.tracking_number)||"",onChange:T=>p(y.id,"tracking_number",T.target.value),className:"col-span-2 px-3 py-2 rounded-lg border border-border bg-background font-body text-xs text-foreground focus:outline-none focus:ring-1 focus:ring-primary/30"}),l.jsxs("select",{value:((b=u[y.id])==null?void 0:b.tracking_carrier)||"",onChange:T=>p(y.id,"tracking_carrier",T.target.value),className:"px-3 py-2 rounded-lg border border-border bg-background font-body text-xs text-foreground focus:outline-none",children:[l.jsx("option",{value:"",children:"Carrier..."}),["UPS","FedEx","USPS","DHL","Other"].map(T=>l.jsx("option",{value:T,children:T},T))]}),l.jsx("input",{type:"date",value:((w=(_=u[y.id])==null?void 0:_.shipped_date)==null?void 0:w.slice(0,10))||"",onChange:T=>p(y.id,"shipped_date",T.target.value),className:"px-3 py-2 rounded-lg border border-border bg-background font-body text-xs text-foreground focus:outline-none"})]})]}),l.jsx("div",{className:"px-5 pb-5 flex gap-2 flex-wrap",children:vv.map(T=>l.jsx("button",{onClick:()=>h(y.id,T),disabled:y.status===T,className:`px-3 py-1.5 rounded-lg font-body text-xs font-medium capitalize transition-all ${y.status===T?"bg-primary text-primary-foreground cursor-default":"bg-secondary text-muted-foreground hover:bg-secondary/70 hover:text-foreground"}`,children:T},T))})]},y.id)})]})}function FM(){const[e,t]=E.useState([]),[n,s]=E.useState([]),[o,c]=E.useState(!0),[u,f]=E.useState(!1),[h,p]=E.useState(null),g=async()=>{f(!0),p(null);try{const N=await Pe.functions.invoke("sendComebackEmails",{});p({success:!0,message:`✅ Sent to ${N.data.sent} inactive customer${N.data.sent!==1?"s":""}!`})}catch{p({success:!1,message:"❌ Failed to send emails. Try again."})}finally{f(!1)}};if(E.useEffect(()=>{(async()=>{try{const b=await Pe.entities.UserProfile.list("-total_spent",100);t(b);const _=b.slice(0,10);s(_)}catch(b){console.error("Error loading customers:",b)}finally{c(!1)}})()},[]),o)return l.jsx("div",{className:"text-center py-12",children:"Loading customers..."});const y=e.length,v=e.filter(N=>N.loyalty_points>=500).length,j=e.reduce((N,b)=>N+(b.referral_count||0),0);return l.jsxs("div",{className:"space-y-8",children:[l.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[l.jsx(K.div,{initial:{opacity:0,y:20}
379,animate:{opacity:1,y:0},className:"bg-secondary/50 rounded-2xl p-6 border border-border",children:l.jsxs("div",{className:"flex items-start justify-between",children:[l.jsxs("div",{children:[l.jsx("p",{className:"font-body text-xs text-muted-foreground uppercase tracking-wider mb-1",children:"Total Customers"}),l.jsx("p",{className:"font-heading text-3xl font-bold text-foreground",children:y})]}),l.jsx(Ch,{className:"w-6 h-6 text-blue-600"})]})}),l.jsx(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-secondary/50 rounded-2xl p-6 border border-border",children:l.jsxs("div",{className:"flex items-start justify-between",children:[l.jsxs("div",{children:[l.jsx("p",{className:"font-body text-xs text-muted-foreground uppercase tracking-wider mb-1",children:"Gold Members"}),l.jsx("p",{className:"font-heading text-3xl font-bold text-primary",children:v})]}),l.jsx(Uv,{className:"w-6 h-6 text-yellow-600"})]})}),l.jsx(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-secondary/50 rounded-2xl p-6 border border-border",children:l.jsxs("div",{className:"flex items-start justify-between",children:[l.jsxs("div",{children:[l.jsx("p",{className:"font-body text-xs text-muted-foreground uppercase tracking-wider mb-1",children:"Total Referrals"}),l.jsx("p",{className:"font-heading text-3xl font-bold text-green-600",children:j})]}),l.jsx(aa,{className:"w-6 h-6 text-green-600"})]})})]}),l.jsx("div",{className:"bg-amber-50 border border-amber-200 rounded-2xl p-6",children:l.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[l.jsxs("div",{children:[l.jsxs("h3",{className:"font-heading text-lg font-semibold text-amber-900 flex items-center gap-2",children:[l.jsx(Xr,{className:"w-5 h-5 text-amber-600"})," Win-Back Campaign"]}),l.jsxs("p",{className:"font-body text-sm text-amber-700 mt-1",children:["Send the ",l.jsx("span",{className:"font-bold",children:"COMEBACK15"})," coupon (15% off) to all customers who haven't ordered in 60+ days."]}),h&&l.jsx("p",{className:`font-body text-sm mt-2 font-semibold ${h.success?"text-green-700":"text-red-600"}`,children:h.message})]}),l.jsx("button",{onClick:g,disabled:u,className:"shrink-0 flex items-center gap-2 px-6 py-3 bg-amber-600 text-white font-body text-sm font-semibold rounded-full hover:bg-amber-700 transition-all disabled:opacity-50",children:u?l.jsxs(l.Fragment,{children:[l.jsx(Fc,{className:"w-4 h-4 animate-spin"})," Sending..."]}):l.jsxs(l.Fragment,{children:[l.jsx(Xr,{className:"w-4 h-4"})," Send Comeback Emails"]}
379)})]})}),l.jsxs("div",{className:"bg-secondary/50 rounded-2xl p-6 border border-border",children:[l.jsx("h3",{className:"font-heading text-lg font-semibold text-foreground mb-4",children:"Top Customers by Spending"}),l.jsx("div",{className:"space-y-3 max-h-96 overflow-y-auto",children:n.map((N,b)=>{var _;return l.jsxs(K.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:b*.05},className:"flex items-center justify-between p-4 bg-background rounded-lg",children:[l.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[l.jsx("div",{className:"w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center",children:l.jsxs("span",{className:"font-heading font-bold text-primary",children:["#",b+1]})}),l.jsxs("div",{children:[l.jsx("p",{className:"font-body font-semibold text-foreground",children:N.hide_leaderboard_name?"Anonymous":N.user_email}),l.jsxs("p",{className:"font-body text-xs text-muted-foreground",children:[N.loyalty_points," pts • ",N.referral_count||0," referrals"]})]})]}),l.jsxs("div",{className:"text-right",children:[l.jsxs("p",{className:"font-heading font-bold text-primary",children:["$",((_=N.total_spent)==null?void 0:_.toFixed(2))||"0.00"]}),l.jsx("p",{className:"font-body text-xs text-muted-foreground",children:N.loyalty_points>=500?"Gold":N.loyalty_points>=250?"Silver":"Bronze"})]})]},N.id)})})]})]})}function BM(){const[e,t]=E.useState([]),[n,s]=E.useState(!0);E.useEffect(()=>{(async()=>{try{const h=await Pe.entities.Special.list("-created_date",50);return t(h),Pe.entities.Special.subscribe(g=>{g.type==="create"?t(y=>[g.data,...y]):g.type==="update"?t(y=>y.map(v=>v.id===g.id?g.data:v)):g.type==="delete"&&t(y=>y.filter(v=>v.id!==g.id))})}catch(h){console.error("Error loading specials:",h)}finally{s(!1)}})().then(h=>()=>h==null?void 0:h())},[]);const o=async(f,h)=>{try{await Pe.entities.Special.update(f,{active:!h})}catch(p){console.error("Error updating special:",p)}};if(n)return l.jsx("div",{className:"text-center py-12",children:"Loading inventory..."});const c=e.filter(f=>f.active),u=e.filter(f=>!f.active);return l.jsxs("div",{className:"space-y-8",children:[l.jsxs("div",{children:[l.jsxs("h3",{className:"font-heading text-lg font-semibold text-foreground mb-4",children:["Active Specials (",c.length,")"]}),c.length===0?l.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No active specials"}):l.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:c.map((f,h)=>l.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:h*.05},className:"bg-green-50 border-2 border-green-300 rounded-2xl p-6",children:[f.image_url&&l.jsx("img",{src:f.image_url,alt:f.title,className:"w-full h-40 object-cover rounded-lg mb-4"}),l.jsx("div",{className:"flex items-start justify-between mb-3",children:l.jsxs("div",{children:[l.jsx("p",{className:"font-heading font-semibold text-foreground",children:f.title}),f.badge&&l.jsx("span",{className:"inline-block mt-2 px-3 py-1 bg-green-600 text-white text-xs font-semibold rounded-full",children:f.badge})]})}),l.jsx("p",{className:"font-body text-sm text-muted-foreground mb-4",children:f.description}),f.expires_on&&l.jsxs("p",{className:"font-body text-xs text-green-700 mb-3",children:["Expires: ",new Date(f.expires_on).toLocaleDateString()]}),l.jsx("button",{onClick:()=>o(f.id,f.active),className:"w-full px-4 py-2 bg-green-600 text-white font-body text-sm font-medium rounded-lg hover:bg-green-700 transition-all",children:"Deactivate"})]},f.id))})]}),l.jsxs("div",{children:[l.jsxs("h3",{className:"font-heading text-lg font-semibold text-foreground mb-4",children:["Inactive Specials (",u.length,")"]}),u.length===0?l.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No inactive specials"}):l.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:u.map((f,h)=>l.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:h*.05},className:"bg-secondary/50 border border-border rounded-2xl p-6 opacity-60",children:[f.image_url&&l.jsx("img",{src:f.image_url,alt:f.title,className:"w-full h-40 object-cover rounded-lg mb-4 grayscale"}),l.jsx("div",{className:"flex items-start justify-between mb-3",children:l.jsxs("div",{children:[l.jsx("p",{className:"font-heading font-semibold text-foreground",children:f.title}),f.badge&&l.jsx("span",{className:"inline-block mt-2 px-3 py-1 bg-muted text-muted-foreground text-xs font-semibold rounded-full",children:f.badge})]})}),l.jsx("p",{className:"font-body text-sm text-muted-foreground mb-4",children:f.description}),l.jsx("button",{onClick:()=>o(f.id,f.active),className:"w-full px-4 py-2 bg-primary text-primary-foreground font-body text-sm font-medium rounded-lg hover:opacity-90 transition-all",children:"Activate"})]},f.id))})]})]})}const ic={received:{label:"Received",dot:"bg-orange-400",badge:"bg-orange-50 text-orange-700 border-orange-200"},confirmed:{label:"Confirmed",dot:"bg-blue-400",badge:"bg-blue-50 text-blue-700 border-blue-200"},preparing:{label:"Preparing",dot:"bg-yellow-400",badge:"bg-yellow-50 text-yellow-700 border-yellow-200"},ready:{label:"Ready",dot:"bg-green-400",badge:"bg-green-50 text-green-700 border-green-200"},delivered:{label:"Delivered",dot:"bg-gray-400",badge:"bg-gray-50 text-gray-700 border-gray-200"}};function UM(){const[e,t]=E.useState([]),[n,s]=E.useState(!0),[o,c]=E.useState("active"),[u,f]=E.useState(null);E.useEffect(()=>{h()},[]);const h=async()=>{try{const b=await Pe.entities.Order.list("-created_date",100);t(b)}catch(b){console.error("Error loading orders:",b)}finally{s(!1)}},p=async(b,_)=>{f(b.id);try{await Pe.entities.Order.update(b.id,{status:_}),t(w=>w.map(T=>T.id===b.id?{...T,status:_}:T));try{await Pe.functions.invoke("notifyOrderUpdate",{orderId:b.id,status:_,data:{...b,status:_}})}catch(w){console.warn("Notification failed:",w.message)}}catch(w){console.error("Failed to update status:",w)}finally{f(null)}},g=async(b,_)=>{try{await Pe.entities.Order.update(b.id,{estimated_ready_time:_}),t(w=>w.map(T=>T.id===b.id?{...T,estimated_ready_time:_}:T))}catch(w){console.error("Failed to update ready time:",w)}},y=async(b,_)=>{try{await Pe.entities.Order.update(b.id,{mike_notes:_}),t(w=>w.map(T=>T.id===b.id?{...T,mike_notes:_}:T))}catch(w){console.error("Failed to update notes:",w)}},v={received:"confirmed",confirmed:"preparing",preparing:"ready",ready:"delivered"},j=o==="active"?e.filter(b=>b.status!=="delivered"):e,N=e.filter(b=>b.status!=="delivered").length;return n?l.jsx("div",{className:"space-y-4",children:[...Array(3)].map((b,_)=>l.jsx("div",{className:"animate-pulse bg-secondary rounded-2xl h-40"},_))}):l.jsxs("div",{className:"space-y-6",children:[l.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:["received","confirmed","preparing","ready"].map(b=>{const _=e.filter(T=>T.status===b).length,w=ic[b];return l.jsxs("div",{className:"bg-card rounded-2xl p-4 border border-border flex items-center gap-3",children:[l.jsx("div",{className:`w-3 h-3 rounded-full ${w.dot}`}),l.jsxs("div",{children:[l.jsx("p",{className:"font-body text-xs text-muted-foreground capitalize",children:w.label}),l.jsx("p",{className:"font-heading text-2xl font-bold text-foreground",children:_})]})]},b)})}),l.jsxs("div",{className:"flex gap-2",children:[l.jsxs("button",{onClick:()=>c("active"),className:`px-4 py-2 rounded-lg font-body text-sm font-medium transition-all ${o==="active"?"bg-primary text-primary-foreground":"bg-secondary text-muted-foreground hover:text-foreground"}`,children:["Active (",N,")"]}),l.jsxs("button",{onClick:()=>c("all"),className:`px-4 py-2 rounded-lg font-body text-sm font-medium transition-all ${o==="all"?"bg-primary text-primary-foreground":"bg-secondary text-muted-foreground hover:text-foreground"}`,children:["All Orders (",e.length,")"]})]}),j.length===0?l.jsxs("div",{className:"text-center py-16 bg-card rounded-2xl border border-border",children:[l.jsx(Wn,{className:"w-10 h-10 text-green-500 mx-auto mb-3"}),l.jsx("p",{className:"font-body font-semibold text-foreground",children:"All caught up!"}),l.jsx("p",{className:"font-body text-sm text-muted-foreground mt-1",children:"No active orders right now."})]}):l.jsx("div",{className:"space-y-4",children:j.map((b,_)=>{var R;const w=ic[b.status]||ic.received,T=v[b.status],A=u===b.id;return l.jsxs(K.div,{initial:{opacity:0,y:12}
379,animate:{opacity:1,y:0},transition:{delay:_*.04},className:"bg-card rounded-2xl border border-border overflow-hidden",children:[l.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("div",{className:`w-2.5 h-2.5 rounded-full ${w.dot}`}),l.jsxs("div",{children:[l.jsx("p",{className:"font-body text-sm font-bold text-foreground",children:b.customer_name||"Guest"}),l.jsx("p",{className:"font-body text-xs text-muted-foreground",children:new Date(b.created_date).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})})]})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:`font-body text-xs font-semibold px-2.5 py-1 rounded-full border capitalize ${w.badge}`,children:w.label}),l.jsx("span",{className:"font-heading text-sm font-bold text-primary",children:b.estimated_total||"—"})]})]}),l.jsxs("div",{className:"px-5 py-4 space-y-4",children:[l.jsxs("div",{className:"flex flex-wrap gap-4 text-sm",children:[b.customer_email&&l.jsxs("a",{href:`mailto:${b.customer_email}`,className:"flex items-center gap-1.5 text-muted-foreground hover:text-primary transition-colors",children:[l.jsx(Xr,{className:"w-3.5 h-3.5"})," ",b.customer_email]}),b.customer_phone&&l.jsxs("a",{href:`tel:${b.customer_phone}`,className:"flex items-center gap-1.5 text-muted-foreground hover:text-primary transition-colors",children:[l.jsx(_h,{className:"w-3.5 h-3.5"})," ",b.customer_phone]})]}),b.order_items&&l.jsxs("div",{className:"bg-secondary/50 rounded-xl px-4 py-3 flex items-start gap-2",children:[l.jsx(Jr,{className:"w-4 h-4 text-muted-foreground shrink-0 mt-0.5"}),l.jsx("p",{className:"font-body text-sm text-foreground",children:b.order_items})]}),(b.event_date||b.estimated_ready_time)&&l.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[l.jsx(Ic,{className:"w-4 h-4 text-muted-foreground"}),l.jsx("span",{className:"font-body text-muted-foreground",children:"Needed by:"}),l.jsx("span",{className:"font-body font-semibold text-foreground",children:b.event_date||b.estimated_ready_time})]}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[l.jsxs("div",{className:"flex-1",children:[l.jsx("label",{className:"font-body text-xs text-muted-foreground uppercase tracking-wide mb-1 block",children:"Ready / Delivery Time"}),l.jsx("input",{type:"datetime-local",defaultValue:b.estimated_ready_time||"",onBlur:I=>{I.target.value!==b.estimated_ready_time&&g(b,I.target.value)},className:"w-full px-3 py-2 rounded-lg border border-border bg-background font-body text-xs text-foreground focus:outline-none focus:ring-2 focus:ring-primary/30 transition-all"})]}),l.jsxs("div",{className:"flex-1",children:[l.jsx("label",{className:"font-body text-xs text-muted-foreground uppercase tracking-wide mb-1 block",children:"Note to Customer"}),l.jsx("input",{type:"text",defaultValue:b.mike_notes||"",placeholder:"e.g. Your order is on the way!",onBlur:I=>{I.target.value!==b.mike_notes&&y(b,I.target.value)},className:"w-full px-3 py-2 rounded-lg border border-border bg-background font-body text-xs text-foreground placeholder:text-muted-foreground/50 focus:outline-none focus:ring-2 focus:ring-primary/30 transition-all"})]})]}),T&&l.jsxs("button",{onClick:()=>p(b,T),disabled:A,className:"w-full py-2.5 bg-primary text-primary-foreground font-body text-sm font-semibold rounded-xl hover:opacity-90 transition-all disabled:opacity-50 flex items-center justify-center gap-2",children:[l.jsx(Fi,{className:"w-4 h-4"}),A?"Updating...":`Mark as ${(R=ic[T])==null?void 0:R.label}`]}),!T&&b.status==="delivered"&&l.jsxs("div",{className:"flex items-center justify-center gap-2 py-2 text-green-600",children:[l.jsx(Wn,{className:"w-4 h-4"}),l.jsx("span",{className:"font-body text-sm font-semibold",children:"Delivered ✓"})]})]})]},b.id)})})]})}const bv=[{id:"sales",label:"Sales & Revenue",icon:Gv},{id:"orders",label:"Orders",icon:Jr},{id:"shipping",label:"Shipping",icon:Fi},{id:"customers",label:"Customers",icon:Ch},{id:"inventory",label:"Inventory",icon:Lk}];
379function VM(){var p;const[e,t]=E.useState(null),[n,s]=E.useState(!0),[o,c]=E.useState("sales"),[u,f]=E.useState(!1);if(E.useEffect(()=>{(async()=>{try{const y=await Pe.auth.me();(y==null?void 0:y.role)==="admin"?t(y):window.location.href="/"}catch{window.location.href="/"}finally{s(!1)}})()},[]),n)return l.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:l.jsx("div",{className:"w-8 h-8 border-4 border-primary/20 border-t-primary rounded-full animate-spin"})});if(!e)return null;const h=()=>l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsx("div",{className:"px-6 py-6 border-b border-border",children:l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Fk,{className:"w-6 h-6 text-primary"}),l.jsxs("div",{children:[l.jsx("p",{className:"font-heading text-xl font-semibold text-foreground",children:"MikeEats"}),l.jsx("p",{className:"font-body text-xs text-muted-foreground",children:"Admin Panel"})]})]})}),l.jsx("nav",{className:"flex-1 px-3 py-4 space-y-1",children:bv.map(g=>{const y=g.icon,v=o===g.id;return l.jsxs("button",{onClick:()=>{c(g.id),f(!1)},className:`w-full flex items-center gap-3 px-4 py-3 rounded-xl font-body text-sm font-medium transition-all ${v?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-secondary hover:text-foreground"}`,children:[l.jsx(y,{className:"w-4 h-4 shrink-0"}),g.label]},g.id)})}),l.jsxs("div",{className:"px-3 py-4 border-t border-border space-y-2",children:[l.jsx("a",{href:"/",className:"w-full flex items-center gap-3 px-4 py-3 rounded-xl font-body text-sm text-muted-foreground hover:bg-secondary hover:text-foreground transition-all",children:"← View Site"}),l.jsxs("button",{onClick:()=>Pe.auth.logout(),className:"w-full flex items-center gap-3 px-4 py-3 rounded-xl font-body text-sm text-muted-foreground hover:bg-red-50 hover:text-red-600 transition-all",children:[l.jsx($v,{className:"w-4 h-4"})," Logout"]})]})]});return l.jsxs("div",{className:"min-h-screen bg-background flex",children:[l.jsx("aside",{className:"hidden md:flex flex-col w-56 border-r border-border bg-card shrink-0 fixed inset-y-0 left-0 z-30",children:l.jsx(h,{})}),l.jsx(fr,{children:u&&l.jsxs(l.Fragment,{children:[l.jsx(K.div,{initial:{opacity:0}
379,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-foreground/40 z-40 md:hidden",onClick:()=>f(!1)}),l.jsxs(K.aside,{initial:{x:-224},animate:{x:0},exit:{x:-224},transition:{type:"spring",damping:28,stiffness:260},className:"fixed inset-y-0 left-0 w-56 bg-card border-r border-border z-50 md:hidden flex flex-col",children:[l.jsx("button",{onClick:()=>f(!1),className:"absolute top-4 right-4 p-1 text-muted-foreground",children:l.jsx($i,{className:"w-5 h-5"})}),l.jsx(h,{})]})]})}),l.jsxs("div",{className:"flex-1 md:ml-56 flex flex-col min-h-screen",children:[l.jsxs("header",{className:"sticky top-0 z-20 bg-background/90 backdrop-blur-sm border-b border-border px-4 md:px-8 py-4 flex items-center justify-between",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("button",{onClick:()=>f(!0),className:"md:hidden p-2 rounded-lg hover:bg-secondary transition-colors",children:l.jsx(Hv,{className:"w-5 h-5"})}),l.jsxs("div",{children:[l.jsx("h1",{className:"font-heading text-xl md:text-2xl font-semibold text-foreground",children:(p=bv.find(g=>g.id===o))==null?void 0:p.label}),l.jsxs("p",{className:"font-body text-xs text-muted-foreground hidden md:block",children:["Hi ",e.full_name||e.email," 👋"]})]})]}),l.jsx("div",{className:"flex items-center gap-2",children:l.jsx("span",{className:"hidden md:block font-body text-xs text-muted-foreground bg-primary/10 text-primary px-3 py-1 rounded-full font-semibold",children:"Admin"})})]}),l.jsx("main",{className:"flex-1 px-4 md:px-8 py-6",children:l.jsx(fr,{mode:"wait",children:l.jsxs(K.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[o==="sales"&&l.jsx(DM,{}),o==="orders"&&l.jsx(IM,{}),o==="shipping"&&l.jsx(UM,{}),o==="customers"&&l.jsx(FM,{}),o==="inventory"&&l.jsx(BM,{})]},o)})})]})]})}const wv={received:{icon:Sa,label:"Order Received",color:"text-orange-600",bg:"bg-orange-50",border:"border-orange-200",desc:"We've received your order and will confirm it shortly."},confirmed:{icon:Jr,label:"Confirmed",color:"text-blue-600",bg:"bg-blue-50",border:"border-blue-200",desc:"Mike has confirmed your order and is planning preparation."},preparing:{icon:Ic,label:"Being Prepared",color:"text-yellow-600",bg:"bg-yellow-50",border:"border-yellow-200",desc:"Your delicious desserts are being made fresh right now!"},ready:{icon:Wn,label:"Ready!",color:"text-green-600",bg:"bg-green-50",border:"border-green-200",desc:"Your order is ready for pickup/delivery. Mike will be in touch!"},shipped:{icon:Fi,label:"Shipped!",color:"text-purple-600",bg:"bg-purple-50",border:"border-purple-200",desc:"Your order is on its way! See tracking info below."},delivered:{icon:Wn,label:"Delivered",color:"text-gray-600",bg:"bg-gray-50",border:"border-gray-200",desc:"Your order has been delivered. Enjoy every bite!"}},oc={UPS:e=>`https://www.ups.com/track?tracknum=${e}`,FedEx:e=>`https://www.fedex.com/fedextrack/?trknbr=${e}`,USPS:e=>`https://tools.usps.com/go/TrackConfirmAction?tLabels=${e}`,DHL:e=>`https://www.dhl.com/en/express/tracking.html?AWB=${e}`,Other:e=>null},zM={UPS:3,FedEx:2,USPS:5,DHL:2,Other:5},Sv=(e,t)=>{if(!e)return null;const n=zM[t]||5,s=new Date(e);return s.setDate(s.getDate()+n),s.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})},jf=["received","confirmed","preparing","ready","shipped","delivered"];function $M(){const[e,t]=E.useState(""),[n,s]=E.useState("email"),[o,c]=E.useState([]),[u,f]=E.useState(!1),[h,p]=E.useState(!1),[g,y]=E.useState({}),v=async N=>{if(N.preventDefault(),!!e.trim()){f(!0),p(!1);try{let b=[];n==="email"?b=await Pe.entities.Order.filter({customer_email:e.trim()},"-created_date",10):b=await Pe.entities.Order.filter({order_id:e.trim()},"-created_date",5),c(b);const _={};b.forEach(w=>{_[w.id]={email:w.email_notifications||!1,sms:w.sms_notifications||!1}}),y(_)}catch(b){console.error("Error searching orders:",b),c([])}finally{f(!1),p(!0)}}},j=async(N,b,_)=>{y(w=>({...w,[N]:{...w[N],[b]:_}}));try{const w={};b==="email"&&(w.email_notifications=_),b==="sms"&&(w.sms_notifications=_),await Pe.entities.Order.update(N,w)}catch(w){console.error("Error updating notifications:",w)}};return l.jsxs("div",{className:"min-h-screen bg-background",children:[l.jsx(Kn,{}),l.jsx("div",{className:"pt-24 pb-20",children:l.jsxs("div",{className:"max-w-2xl mx-auto px-6",children:[l.jsxs(K.div,{initial:{opacity:0,y:20}
379,animate:{opacity:1,y:0},className:"text-center mb-12",children:[l.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 bg-primary/10 rounded-full mb-5",children:l.jsx(Jr,{className:"w-7 h-7 text-primary"})}),l.jsx("h1",{className:"font-heading text-4xl md:text-5xl font-semibold text-foreground mb-3",children:"Track Your Order"}),l.jsx("p",{className:"font-body text-muted-foreground",children:"Enter your email or order ID to see your order status."})]}),l.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-card rounded-2xl border border-border p-6 mb-8",children:[l.jsx("div",{className:"flex gap-2 mb-5",children:[{id:"email",label:"Search by Email"},{id:"order_id",label:"Search by Order ID"}].map(N=>l.jsx("button",{onClick:()=>{s(N.id),t(""),c([]),p(!1)},className:`flex-1 py-2.5 rounded-lg font-body text-sm font-medium transition-all ${n===N.id?"bg-primary text-primary-foreground":"bg-secondary text-muted-foreground hover:text-foreground"}`,children:N.label},N.id))}),l.jsxs("form",{onSubmit:v,className:"flex gap-2",children:[l.jsxs("div",{className:"flex-1 relative",children:[l.jsx(wj,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),l.jsx("input",{type:n==="email"?"email":"text",value:e,onChange:N=>t(N.target.value),placeholder:n==="email"?"[email protected]":"Order ID",className:"w-full pl-9 pr-4 py-3 rounded-xl border border-border bg-background font-body text-sm text-foreground placeholder:text-muted-foreground/50 focus:outline-none focus:ring-2 focus:ring-primary/30 transition-all"})]}),l.jsx("button",{type:"submit",disabled:u||!e.trim(),className:"px-5 py-3 bg-primary text-primary-foreground font-body text-sm font-semibold rounded-xl hover:opacity-90 transition-all disabled:opacity-50",children:u?"...":"Track"})]})]}),l.jsx(fr,{children:h&&l.jsx(K.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0},children:o.length===0?l.jsxs("div",{className:"text-center py-12 bg-card rounded-2xl border border-border",children:[l.jsx(Jr,{className:"w-10 h-10 text-muted-foreground/30 mx-auto mb-3"}),l.jsx("p",{className:"font-body text-muted-foreground font-semibold",children:"No orders found"}),l.jsx("p",{className:"font-body text-sm text-muted-foreground mt-1",children:"Double-check the email or order ID you entered."}),l.jsxs("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-1 mt-4 font-body text-sm text-primary hover:underline",children:[l.jsx(Xr,{className:"w-3.5 h-3.5"})," Contact Mike for help"]})]}):l.jsxs("div",{className:"space-y-4",children:[l.jsxs("p",{className:"font-body text-sm text-muted-foreground",children:[o.length," order",o.length!==1?"s":""," found"]}),o.map(N=>{var T,A,R;const b=wv[N.status]||wv.received,_=b.icon,w=jf.indexOf(N.status);return l.jsxs(K.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"bg-card rounded-2xl border border-border overflow-hidden",children:[l.jsxs("div",{className:`px-6 py-4 ${b.bg} ${b.border} border-b flex items-center gap-3`,children:[l.jsx(_,{className:`w-5 h-5 ${b.color}`}),l.jsxs("div",{children:[l.jsx("p",{className:`font-body text-sm font-bold ${b.color}`,children:b.label}),l.jsx("p",{className:"font-body text-xs text-muted-foreground",children:b.desc})]})]}),l.jsxs("div",{className:"px-6 py-5 space-y-4",children:[l.jsx("div",{className:"flex items-center gap-1",children:jf.map((I,V)=>l.jsxs("div",{className:"flex items-center flex-1",children:[l.jsx("div",{className:`w-6 h-6 rounded-full flex items-center justify-center shrink-0 text-xs font-bold transition-all ${V<=w?"bg-primary text-primary-foreground":"bg-secondary text-muted-foreground"}`,children:V<w?"✓":V+1}),V<jf.length-1&&l.jsx("div",{className:`flex-1 h-1 mx-1 rounded-full transition-all ${V<w?"bg-primary":"bg-secondary"}`})]},I))}),l.jsxs("div",{className:"grid grid-cols-2 gap-3 text-sm",children:[l.jsxs("div",{children:[l.jsx("p",{className:"font-body text-xs text-muted-foreground uppercase tracking-wide mb-0.5",children:"Customer"}),l.jsx("p",{className:"font-body font-semibold text-foreground",children:N.customer_name||"—"})]}),l.jsxs("div",{children:[l.jsx("p",{className:"font-body text-xs text-muted-foreground uppercase tracking-wide mb-0.5",children:"Total"}),l.jsx("p",{className:"font-heading text-lg font-bold text-primary",children:N.estimated_total||"—"})]}),l.jsxs("div",{children:[l.jsx("p",{className:"font-body text-xs text-muted-foreground uppercase tracking-wide mb-0.5",children:"Ordered"}),l.jsx("p",{className:"font-body text-foreground",children:new Date(N.created_date).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})})]}),N.estimated_ready_time&&l.jsxs("div",{children:[l.jsx("p",{className:"font-body text-xs text-muted-foreground uppercase tracking-wide mb-0.5",children:"Needed By"}),l.jsx("p",{className:"font-body text-foreground font-semibold text-primary",children:N.estimated_ready_time})]})]}),N.order_items&&l.jsxs("div",{className:"bg-secondary/50 rounded-xl p-3",children:[l.jsx("p",{className:"font-body text-xs text-muted-foreground uppercase tracking-wide mb-1",children:"Items"}),l.jsx("p",{className:"font-body text-sm text-foreground",children:N.order_items})]}),(N.status==="shipped"||N.tracking_number)&&l.jsxs("div",{className:"bg-purple-50 border border-purple-200 rounded-xl p-4 space-y-3",children:[l.jsxs("p",{className:"font-body text-xs font-semibold text-purple-700 uppercase tracking-wide flex items-center gap-1.5",children:[l.jsx(Fi,{className:"w-3.5 h-3.5"})," Shipping Info"]}),N.shipped_date&&l.jsxs("p",{className:"font-body text-sm text-foreground",children:[l.jsx("span",{className:"text-muted-foreground",children:"Shipped: "}),l.jsx("span",{className:"font-semibold",children:new Date(N.shipped_date).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})})]}),Sv(N.shipped_date,N.tracking_carrier)&&l.jsxs("p",{className:"font-body text-sm text-foreground bg-white/50 p-2 rounded-lg",children:[l.jsx("span",{className:"text-muted-foreground",children:"Est. Delivery: "}),l.jsx("span",{className:"font-semibold text-purple-700",children:Sv(N.shipped_date,N.tracking_carrier)})]}),N.tracking_number&&l.jsxs("div",{children:[l.jsxs("p",{className:"font-body text-sm text-foreground",children:[l.jsx("span",{className:"text-muted-foreground",children:"Tracking #: "}),l.jsx("span",{className:"font-semibold font-mono",children:N.tracking_number}),N.tracking_carrier&&l.jsxs("span",{className:"ml-1 text-muted-foreground",children:["(",N.tracking_carrier,")"]})]}),N.tracking_carrier&&((T=oc[N.tracking_carrier])==null?void 0:T.call(oc,N.tracking_number))&&l.jsxs("a",{href:oc[N.tracking_carrier](N.tracking_number),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-2 px-4 py-2 bg-purple-600 text-white font-body text-xs font-semibold rounded-lg hover:bg-purple-700 transition-all",children:[l.jsx(Vv,{className:"w-3.5 h-3.5"})," Track on ",N.tracking_carrier]})]})]}),N.mike_notes&&l.jsxs("div",{className:"bg-primary/5 border border-primary/20 rounded-xl p-3",children:[l.jsx("p",{className:"font-body text-xs font-semibold text-primary mb-1",children:"Update from Mike"}),l.jsx("p",{className:"font-body text-sm text-foreground",children:N.mike_notes})]}),l.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-4 space-y-3",children:[l.jsx("p",{className:"font-body text-xs font-semibold text-blue-700 uppercase tracking-wide",children:"Get Status Upd
379ates"}),l.jsxs("label",{className:"flex items-center gap-3 cursor-pointer",children:[l.jsx("input",{type:"checkbox",checked:((A=g[N.id])==null?void 0:A.email)||!1,onChange:I=>j(N.id,"email",I.target.checked),className:"w-4 h-4 accent-primary"}),l.jsx("span",{className:"font-body text-sm text-foreground",children:"Email me status updates"})]}),l.jsxs("label",{className:"flex items-center gap-3 cursor-pointer",children:[l.jsx("input",{type:"checkbox",checked:((R=g[N.id])==null?void 0:R.sms)||!1,onChange:I=>j(N.id,"sms",I.target.checked),className:"w-4 h-4 accent-primary"}),l.jsx("span",{className:"font-body text-sm text-foreground",children:"Text me (SMS) updates"})]}),l.jsx("p",{className:"font-body text-xs text-blue-600",children:"We'll notify you when your order ships, is out for delivery, and arrives."})]}),l.jsxs("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-1.5 font-body text-xs text-muted-foreground hover:text-primary transition-colors",children:[l.jsx(Xr,{className:"w-3.5 h-3.5"})," Questions? Email Mike"]})]})]},N.id)})]})})})]})}),l.jsx(Gn,{})]})}function WM(){return l.jsxs("div",{className:"min-h-screen bg-background",children:[l.jsx(Kn,{}),l.jsx("div",{className:"pt-24 pb-20 flex items-center justify-center min-h-[80vh]",children:l.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-md px-6",children:[l.jsx("div",{className:"inline-flex items-center justify-center w-20 h-20 bg-primary/10 rounded-full mb-6",children:l.jsx(Jr,{className:"w-10 h-10 text-primary"})}),l.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 bg-primary/10 rounded-full mb-5",children:[l.jsx(Ic,{className:"w-4 h-4 text-primary"}),l.jsx("span",{className:"font-body text-sm font-semibold text-primary",children:"Coming Soon"})]}),l.jsx("h1",{className:"font-heading text-4xl md:text-5xl font-semibold text-foreground mb-4",children:"Shipping Is Coming"}),l.jsx("p",{className:"font-body text-muted-foreground leading-relaxed mb-8",children:"We're working on nationwide shipping so you can get MikeEats cheesecakes delivered right to your door. Check back soon!"}),l.jsx("a",{href:"/",className:"inline-flex items-center gap-2 px-6 py-3 bg-primary text-primary-foreground font-body text-sm font-semibold rounded-full hover:opacity-90 transition-all",children:"Back to Home"})]})}),l.jsx(Gn,{})]})}const HM="https://media.base44.com/images/public/69d570bf9daf11d7a45beb82/ecb174960_17ffbeda471b3a54e562ecb2b33ea57d.jpg",qM=[{id:"special-pumpkin",title:"Pumpkin Spice Cheesecake",price:"$45",description:"Creamy pumpkin-spice cheesecake on a gingersnap crust, topped with a swirl of spiced cream. Fall's signature flavor.",image:"https://media.base44.com/images/public/69d570bf9daf11d7a45beb82/795735cb3_IMG_0716.jpeg",order_label:"Pumpkin Spice Cheesecake",order_price:45},{id:"special-caramel-apple",title:"Caramel Apple Cheesecake",price:"$45",description:"Spiced apple compote layered over rich caramel cheesecake with a shortbread crust. Like biting into a caramel apple — elevated.",image:"https://media.base44.com/images/public/69d570bf9daf11d7a45beb82/1b4deab43_IMG_1006.jpeg",order_label:"Caramel Apple Cheesecake",order_price:45},{id:"special-pumpkin-cinnabon",title:"Pumpkin Cinnabon Cheesecake",price:"$45",description:"Creamy pumpkin cheesecake swirled with rich cinnamon-spice filling on a buttery graham crust — a Cinnabon met a cheesecake and fell in love.",image:"https://media.base44.com/images/public/69d570bf9daf11d7a45beb82/1bb4862b7_IMG_0606.png",order_label:"Pumpkin Cinnabon Cheesecake",order_price:45},{id:"special-sweet-potato",title:"Sweet Potato Streusel Cupcakes",price:"$20 / 6  •  $30 / 12",description:"Southern sweet potato cupcakes topped with a buttery brown-sugar streusel. Warm spices, soulful comfort — the ultimate fall treat.",image:"https://media.base44.com/images/public/69d570bf9daf11d7a45beb82/c6a009803_IMG_0715.jpeg",priceOptions:[{id:"6pack",label:"6 Pack",price:20},{id:"12pack",label:"12 Pack",price:30}]}
379],KM=[{id:"cookie-pumpkin-spice",title:"Pumpkin Spice Cookies",description:"Soft, spiced pumpkin cookies rolled in cinnamon sugar — like a pumpkin snickerdoodle. Warm, cozy, and perfectly autumn.",image:"https://images.unsplash.com/photo-1606312619070-d48b4c652a52?w=800&q=80",priceOptions:[{id:"tray-6",label:"Tray of 6",price:12},{id:"tray-12",label:"Tray of 12",price:18},{id:"tray-24",label:"Tray of 24",price:32}]},{id:"cookie-maple-pecan",title:"Maple Pecan Cookies",description:"Buttery cookies loaded with toasted pecans and a hint of real maple syrup. A New England fall classic.",image:"https://images.unsplash.com/photo-1568054384219-90a4d48676f4?w=800&q=80",priceOptions:[{id:"tray-6",label:"Tray of 6",price:12},{id:"tray-12",label:"Tray of 12",price:18},{id:"tray-24",label:"Tray of 24",price:32}]},{id:"cookie-apple-oatmeal",title:"Apple Oatmeal Cookies",description:"Chewy oatmeal cookies studded with spiced dried apples and a brown-sugar glaze. Comfort in every bite.",image:"https://images.unsplash.com/photo-1598373182133-52452f769a2b?w=800&q=80",priceOptions:[{id:"tray-6",label:"Tray of 6",price:12},{id:"tray-12",label:"Tray of 12",price:18},{id:"tray-24",label:"Tray of 24",price:32}]},{id:"cookie-cinnamon-snickerdoodle",title:"Cinnamon Snickerdoodles",description:"Classic snickerdoodles with an extra hit of cinnamon and a crackly sugar crust. The ultimate fall cookie jar staple.",image:"https://images.unsplash.com/photo-1499636136210-6f4ee915583e?w=800&q=80",priceOptions:[{id:"tray-6",label:"Tray of 6",price:12},{id:"tray-12",label:"Tray of 12",price:18},{id:"tray-24",label:"Tray of 24",price:32}]}],GM=[{title:"Cheesecakes",emoji:"🍰",flavors:["Pumpkin Spice","Caramel Apple","Sweet Potato","Maple Pecan","Pumpkin Cinnabon"]},{title:"Cupcakes",emoji:"🧁",flavors:["Sweet Potato Streusel","Pumpkin Spice","Apple Cider","Maple Bacon"]},{title:"Cookies",emoji:"🍪",flavors:["Pumpkin Spice","Maple Pecan","Apple Oatmeal","Cinnamon Snickerdoodle"]}];function QM(){const[e,t]=E.useState(!1),n=async()=>{const o=window.location.href;try{if(navigator.share){await navigator.share({title:"MikeEats — Fall Menu",url:o});return}await navigator.clipboard.writeText(o),t(!0),setTimeout(()=>t(!1),2e3)}catch{try{await navigator.clipboard.writeText(o),t(!0),setTimeout(()=>t(!1),2e3)}catch{}}},s=()=>{const o=document.getElementById("catering");o?o.scrollIntoView({behavior:"smooth"}):window.location.href="/#catering"};return l.jsxs("div",{className:"min-h-screen bg-background",children:[l.jsx(Kn,{}),l.jsxs("section",{className:"relative h-[60vh] min-h-[420px] overflow-hidden",children:[l.jsx("img",{src:HM,alt:"Fall Menu",className:"absolute inset-0 w-full h-full object-cover"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-amber-950/50 via-amber-900/55 to-amber-950/85"}),l.jsx("div",{className:"relative h-full max-w-5xl mx-auto px-6 md:px-[8vw] flex flex-col items-center justify-center text-center",children:l.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[l.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[l.jsx(Py,{className:"w-5 h-5 text-orange-200"}),l.jsx("p",{className:"font-body text-xs uppercase tracking-[0.35em] text-orange-200",children:"September – November"}),l.jsx(Py,{className:"w-5 h-5 text-orange-200"})]}),l.jsx("h1",{className:"font-heading text-5xl md:text-7xl font-semibold text-amber-50 drop-shadow-lg mb-4",children:"Fall Menu"}),l.jsx("p",{className:"font-body text-base md:text-lg text-amber-100/90 max-w-xl mx-auto",children:"Cozy seasonal flavors crafted with warm spices and autumn harvest ingredients. Available for a limited time."})]})})]}),l.jsx("div",{className:"sticky top-0 z-30 bg-background/95 backdrop-blur border-b border-border print:hidden",children:l.jsxs("div",{className:"max-w-5xl mx-auto px-6 md:px-[8vw] py-3 flex items-center justify-between gap-3",children:[l.jsx("p",{className:"font-heading text-lg font-semibold text-foreground hidden sm:block",children:"🍂 MikeEats Fall Menu"}),l.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[l.jsxs("button",{onClick:s,className:"inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground font-body text-sm font-medium rounded-full hover:opacity-90 transition-all",children:[l.jsx(Ay,{className:"w-4 h-4"})," Order Now"]}),l.jsxs("button",{onClick:n,className:"inline-flex items-center gap-2 px-4 py-2 border border-border font-body text-sm font-medium rounded-full hover:bg-secondary transition-all",children:[e?l.jsx(jh,{className:"w-4 h-4 text-green-600"}):l.jsx(Eh,{className:"w-4 h-4"}),e?"Link Copied":"Share"]}),l.jsxs("button",{onClick:()=>window.print(),className:"inline-flex items-center gap-2 px-4 py-2 border border-border font-body text-sm font-medium rounded-full hover:bg-secondary transition-all",children:[l.jsx(yj,{className:"w-4 h-4"})," ",l.jsx("span",{className:"hidden sm:inline",children:"Print"})]})]})]})}),l.jsx("section",{className:"py-16 md:py-20",children:l.jsxs("div",{className:"max-w-5xl mx-auto px-6 md:px-[8vw]",children:[l.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"text-center mb-12",children:[l.jsx("p",{className:"font-body text-xs uppercase tracking-[0.3em] text-primary mb-3",children:"Featured Specials"}),l.jsx("h2",{className:"font-heading text-4xl md:text-5xl font-semibold text-foreground",children:"Seasonal Showstoppers"})]}),l.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:qM.map((o,c)=>l.jsxs(K.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:c*.08},className:"group bg-card rounded-3xl overflow-hidden border border-border shadow-sm hover:shadow-xl transition-all duration-300",children:[l.jsxs("div",{className:"relative h-56 overflow-hidden",children:[l.jsx("img",{src:o.image,alt:o.title,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-foreground
379/60 to-transparent"}),l.jsx("span",{className:"absolute top-4 left-4 px-3 py-1 bg-primary text-primary-foreground font-body text-xs font-semibold rounded-full shadow-md",children:"🍂 Fall Special"})]}),l.jsxs("div",{className:"p-6",children:[l.jsxs("div",{className:"flex items-start justify-between gap-3 mb-2",children:[l.jsx("h3",{className:"font-heading text-2xl font-semibold text-foreground",children:o.title}),l.jsx("span",{className:"font-heading text-xl font-bold text-primary whitespace-nowrap",children:o.price})]}),l.jsx("p",{className:"font-body text-sm text-muted-foreground leading-relaxed mb-4",children:o.description}),o.priceOptions?l.jsx("div",{className:"flex flex-wrap gap-2",children:o.priceOptions.map(u=>l.jsxs("button",{onClick:()=>oa({id:`${o.id}-${u.id}`,name:`${o.order_label} (${u.label})`,price:u.price,image:o.image}),className:"inline-flex items-center gap-1.5 font-body text-sm font-semibold rounded-full px-5 py-2.5 border border-primary text-primary hover:bg-primary hover:text-primary-foreground transition-all",children:[u.label," — $",u.price]},u.id))}):l.jsxs("button",{onClick:()=>oa({id:o.id,name:o.order_label,price:o.order_price,image:o.image}),className:"inline-flex items-center gap-1.5 font-body text-sm font-semibold rounded-full px-5 py-2.5 bg-primary text-primary-foreground hover:opacity-90 transition-all",children:["Add to Cart — ",o.price]})]})]},o.id))})]})}),l.jsx("section",{className:"py-16 md:py-20 bg-secondary/40",children:l.jsxs("div",{className:"max-w-5xl mx-auto px-6 md:px-[8vw]",children:[l.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"text-center mb-12",children:[l.jsx("p",{className:"font-body text-xs uppercase tracking-[0.3em] text-primary mb-3",children:"Fresh-Baked Trays"}),l.jsx("h2",{className:"font-heading text-4xl md:text-5xl font-semibold text-foreground",children:"Fall Flavor Cookies 🍪"}),l.jsx("p",{className:"font-body text-sm text-muted-foreground mt-3 max-w-md mx-auto",children:"Pick your tray size and your favorite fall flavor."})]}),l.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:KM.map((o,c)=>l.jsxs(K.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:c*.08},className:"group bg-card rounded-3xl overflow-hidden border border-border shadow-sm hover:shadow-xl transition-all duration-300",children:[l.jsxs("div",{className:"relative h-52 overflow-hidden",children:[l.jsx("img",{src:o.image,alt:o.title,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-foreground
379/60 to-transparent"}),l.jsx("span",{className:"absolute top-4 left-4 px-3 py-1 bg-primary text-primary-foreground font-body text-xs font-semibold rounded-full shadow-md",children:"🍪 Fall Cookie"})]}),l.jsxs("div",{className:"p-6",children:[l.jsx("h3",{className:"font-heading text-2xl font-semibold text-foreground mb-2",children:o.title}),l.jsx("p",{className:"font-body text-sm text-muted-foreground leading-relaxed mb-4",children:o.description}),l.jsx("div",{className:"flex flex-wrap gap-2",children:o.priceOptions.map(u=>l.jsxs("button",{onClick:()=>oa({id:`${o.id}-${u.id}`,name:`${o.title} (${u.label})`,price:u.price,image:o.image}),className:"inline-flex items-center gap-1.5 font-body text-sm font-semibold rounded-full px-5 py-2.5 border border-primary text-primary hover:bg-primary hover:text-primary-foreground transition-all",children:[u.label," — $",u.price]},u.id))})]})]},o.id))})]})}),l.jsx("section",{className:"py-16 md:py-20",children:l.jsxs("div",{className:"max-w-5xl mx-auto px-6 md:px-[8vw]",children:[l.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"text-center mb-12",children:[l.jsx("p",{className:"font-body text-xs uppercase tracking-[0.3em] text-primary mb-3",children:"Build Your Own"}),l.jsx("h2",{className:"font-heading text-4xl md:text-5xl font-semibold text-foreground",children:"Fall Flavors"}),l.jsx("p",{className:"font-body text-sm text-muted-foreground mt-3 max-w-md mx-auto",children:"Mix and match across cheesecakes, cupcakes, and cookies."})]}),l.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:GM.map((o,c)=>l.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:c*.1},className:"bg-background rounded-2xl p-6 border border-orange-200/60 shadow-sm",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[l.jsx("span",{className:"text-2xl",children:o.emoji}),l.jsx("h3",{className:"font-heading text-xl font-semibold text-foreground",children:o.title})]}),l.jsx("ul",{className:"space-y-2.5",children:o.flavors.map(u=>l.jsxs("li",{className:"flex items-center gap-3 font-body text-sm text-foreground",children:[l.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-orange-500 shrink-0"}),u]},u))})]},o.title))})]})}),l.jsx("section",{className:"py-16 md:py-20 print:hidden",children:l.jsx("div",{className:"max-w-3xl mx-auto px-6 md:px-[8vw] text-center",children:l.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:[l.jsx("h2",{className:"font-heading text-4xl font-semibold text-foreground mb-4",children:"Ready to Taste Fall?"}),l.jsx("p",{className:"font-body text-base text-muted-foreground mb-8",children:"Order online for pickup or delivery, or request a custom catering quote."}),l.jsxs("button",{onClick:s,className:"inline-flex items-center gap-2 px-8 py-4 bg-primary text-primary-foreground font-body text-base font-medium rounded-full hover:opacity-90 transition-all",children:[l.jsx(Ay,{className:"w-5 h-5"})," Place an Order"]}),l.jsxs("p",{className:"font-body text-xs text-muted-foreground mt-6",children:["🍁 Available September through November — while the season lasts. Use code ",l.jsx("span",{className:"font-semibold text-primary",children:"FALL10"})," for 10% off."]})]})})}),l.jsx(Gn,{})]})}const YM=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n,navigateToLogin:s}=TO();if(t||e)return l.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:l.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(n){if(n.type==="user_not_registered")return l.jsx(PO,{});if(n.type==="auth_required")return s(),null}return l.jsx(N4,{children:l.jsxs(cE,{children:[l.jsx(nn,{path:"/",element:l.jsx(pM,{})}),l.jsx(nn,{path:"/blog",element:l.jsx(LO,{})}),l.jsx(nn,{path:"/contact",element:l.jsx(yM,{})}),l.jsx(nn,{path:"/legal",element:l.jsx(xM,{})}),l.jsx(nn,{path:"/success",element:l.jsx(mM,{})}),l.jsx(nn,{path:"/confirmation",element:l.jsx(gM,{})}),l.jsx(nn,{path:"/dashboard",element:l.jsx(LM,{})}),l.jsx(nn,{path:"/admin",element:l.jsx(VM,{})}),l.jsx(nn,{path:"/track",element:l.jsx($M,{})}),l.jsx(nn,{path:"/shipping",element:l.jsx(WM,{})}),l.jsx(nn,{path:"/fall-menu",element:l.jsx(QM,{})}),l.jsx(nn,{path:"*",element:l.jsx(EO,{})})]})})};function XM(){return l.jsx(CO,{children:l.jsxs(s_,{client:y_,children:[l.jsx(yE,{children:l.jsx(YM,{})}),l.jsx(RN,{})]})})}yk.createRoot(document.getElementById("root")).render(l.jsx(XM,{}));export{Vs as A,Wn as C,aa as G,zv as H,Ns as K,lr as L,Xr as M,Cj as S,Gv as T,Dj as U,fr as a,Pe as b,Ee as c,yh as d,Kv as e,Fk as f,oa as g,Sa as h,Py as i,l as j,Fc as k,K as m,E as r};

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.