PageSourceSearch

https://holly-holiday-adventures-fun.lovable.app/assets/index-DNc3J_im.js

js holly-holiday-adventures-fun.lovable.app collected 2026-10-03 03:28:37 UTC 561,217 bytes, 488 lines download raw bytes

vendor: 6,120 bytes, lines 1-9
1var jd=e=>{throw TypeError(e)};var Bi=(e,t,n)=>t.has(e)||jd("Cannot "+n);var M=(e,t,n)=>(Bi(e,t,"read from private field"),n?n.call(e):t.get(e)),ie=(e,t,n)=>t.has(e)?jd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),J=(e,t,n,r)=>(Bi(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),De=(e,t,n)=>(Bi(e,t,"access private method"),n);var Io=(e,t,n,r)=>({set _(o){J(e,t,o,n)},get _(){return M(e,t,r)}});function Lx(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(r,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();function Of(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _f={exports:{}},ti={},Df={exports:{}},ee={};/**
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 bo=Symbol.for("react.element"),Hx=Symbol.for("react.portal"),Ix=Symbol.for("react.fragment"),Ox=Symbol.for("react.strict_mode"),_x=Symbol.for("react.profiler"),Dx=Symbol.for("react.provider"),Fx=Symbol.for("react.context"),zx=Symbol.for("react.forward_ref"),$x=Symbol.for("react.suspense"),Bx=Symbol.for("react.memo"),Wx=Symbol.for("react.lazy"),Nd=Symbol.iterator;function Ux(e){return e===null||typeof e!="object"?null:(e=Nd&&e[Nd]||e["@@iterator"],typeof e=="function"?e:null)}var Ff={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zf=Object.assign,$f={};function fs(e,t,n){this.props=e,this.context=t,this.refs=$f,this.updater=n||Ff}fs.prototype.isReactComponent={};fs.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Bf(){}Bf.prototype=fs.prototype;function Yc(e,t,n){this.props=e,this.context=t,this.refs=$f,this.updater=n||Ff}var Gc=Yc.prototype=new Bf;Gc.constructor=Yc;zf(Gc,fs.prototype);Gc.isPureReactComponent=!0;var kd=Array.isArray,Wf=Object.prototype.hasOwnProperty,qc={current:null},Uf={key:!0,ref:!0,__self:!0,__source:!0};function Vf(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)Wf.call(t,r)&&!Uf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:bo,type:e,key:a,ref:i,props:o,_owner:qc.current}}function Vx(e,t){return{$$typeof:bo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Qc(e){return typeof e=="object"&&e!==null&&e.$$typeof===bo}function Yx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Sd=/\/+/g;function Wi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Yx(""+e.key):t.toString(36)}function aa(e,t,n,r,o){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case bo:case Hx:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+Wi(i,0):r,kd(o)?(n="",e!=null&&(n=e.replace(Sd,"$&/")+"/"),aa(o,t,n,"",function(u){return u})):o!=null&&(Qc(o)&&(o=Vx(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Sd,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",kd(e))for(var l=0;l<e.length;l++){a=e[l];var c=r+Wi(a,l);i+=aa(a,t,n,c,o)}else if(c=Ux(e),typeof c=="function")for(e=c.call(e),l=0;!(a=e.next()).done;)a=a.value,c=r+Wi(a,l++),i+=aa(a,t,n,c,o);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Oo(e,t,n){if(e==null)return e;var r=[],o=0;return aa(e,r,"","",function(a){return t.call(n,a,o++)}),r}function Gx(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var qe={current:null},ia={transition:null},qx={ReactCurrentDispatcher:qe,ReactCurrentBatchConfig:ia,ReactCurrentOwner:qc};function Yf(){throw Error("act(...) is not supported in production builds of React.")}ee.Children={map:Oo,forEach:function(e,t,n){Oo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Oo(e,function(){t++}),t},toArray:function(e){return Oo(e,function(t){return t})||[]},only:function(e){if(!Qc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ee.Component=fs;ee.Fragment=Ix;ee.Profiler=_x;ee.PureComponent=Yc;ee.StrictMode=Ox;ee.Suspense=$x;
vendor: 9,017 bytes, lines 9-33
9ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qx;ee.act=Yf;ee.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=zf({},e.props),o=e.key,a=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,i=qc.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)Wf.call(t,c)&&!Uf.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:bo,type:e.type,key:o,ref:a,props:r,_owner:i}};ee.createContext=function(e){return e={$$typeof:Fx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Dx,_context:e},e.Consumer=e};ee.createElement=Vf;ee.createFactory=function(e){var t=Vf.bind(null,e);return t.type=e,t};ee.createRef=function(){return{current:null}};ee.forwardRef=function(e){return{$$typeof:zx,render:e}};ee.isValidElement=Qc;ee.lazy=function(e){return{$$typeof:Wx,_payload:{_status:-1,_result:e},_init:Gx}};ee.memo=function(e,t){return{$$typeof:Bx,type:e,compare:t===void 0?null:t}};ee.startTransition=function(e){var t=ia.transition;ia.transition={};try{e()}finally{ia.transition=t}};ee.unstable_act=Yf;ee.useCallback=function(e,t){return qe.current.useCallback(e,t)};ee.useContext=function(e){return qe.current.useContext(e)};ee.useDebugValue=function(){};ee.useDeferredValue=function(e){return qe.current.useDeferredValue(e)};ee.useEffect=function(e,t){return qe.current.useEffect(e,t)};ee.useId=function(){return qe.current.useId()};ee.useImperativeHandle=function(e,t,n){return qe.current.useImperativeHandle(e,t,n)};ee.useInsertionEffect=function(e,t){return qe.current.useInsertionEffect(e,t)};ee.useLayoutEffect=function(e,t){return qe.current.useLayoutEffect(e,t)};ee.useMemo=function(e,t){return qe.current.useMemo(e,t)};ee.useReducer=function(e,t,n){return qe.current.useReducer(e,t,n)};ee.useRef=function(e){return qe.current.useRef(e)};ee.useState=function(e){return qe.current.useState(e)};ee.useSyncExternalStore=function(e,t,n){return qe.current.useSyncExternalStore(e,t,n)};ee.useTransition=function(){return qe.current.useTransition()};ee.version="18.3.1";Df.exports=ee;var m=Df.exports;const F=Of(m),Gf=Lx({__proto__:null,default:F},[m]);/**
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 Qx=m,Kx=Symbol.for("react.element"),Xx=Symbol.for("react.fragment"),Zx=Object.prototype.hasOwnProperty,Jx=Qx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ey={key:!0,ref:!0,__self:!0,__source:!0};function qf(e,t,n){var r,o={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Zx.call(t,r)&&!ey.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Kx,type:e,key:a,ref:i,props:o,_owner:Jx.current}}ti.Fragment=Xx;ti.jsx=qf;ti.jsxs=qf;_f.exports=ti;var s=_f.exports,Qf={exports:{}},pt={},Kf={exports:{}},Xf={};/**
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 */(function(e){function t(k,R){var $=k.length;k.push(R);e:for(;0<$;){var B=$-1>>>1,G=k[B];if(0<o(G,R))k[B]=R,k[$]=G,$=B;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var R=k[0],$=k.pop();if($!==R){k[0]=$;e:for(var B=0,G=k.length,Q=G>>>1;B<Q;){var se=2*(B+1)-1,Pe=k[se],oe=se+1,rt=k[oe];if(0>o(Pe,$))oe<G&&0>o(rt,Pe)?(k[B]=rt,k[oe]=$,B=oe):(k[B]=Pe,k[se]=$,B=se);else if(oe<G&&0>o(rt,$))k[B]=rt,k[oe]=$,B=oe;else break e}}return R}function o(k,R){var $=k.sortIndex-R.sortIndex;return $!==0?$:k.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var c=[],u=[],h=1,f=null,d=3,v=!1,p=!1,x=!1,w=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(k){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=k)r(u),R.sortIndex=R.expirationTime,t(c,R);else break;R=n(u)}}function j(k){if(x=!1,b(k),!p)if(n(c)!==null)p=!0,W(N);else{var R=n(u);R!==null&&_(j,R.startTime-k)}}function N(k,R){p=!1,x&&(x=!1,g(C),C=-1),v=!0;var $=d;try{for(b(R),f=n(c);f!==null&&(!(f.expirationTime>R)||k&&!A());){var B=f.callback;if(typeof B=="function"){f.callback=null,d=f.priorityLevel;var G=B(f.expirationTime<=R);R=e.unstable_now(),typeof G=="function"?f.callback=G:f===n(c)&&r(c),b(R)}else r(c);f=n(c)}if(f!==null)var Q=!0;else{var se=n(u);se!==null&&_(j,se.startTime-R),Q=!1}return Q}finally{f=null,d=$,v=!1}}var S=!1,E=null,C=-1,T=5,P=-1;function A(){return!(e.unstable_now()-P<T)}function O(){if(E!==null){var k=e.unstable_now();P=k;var R=!0;try{R=E(!0,k)}finally{R?Y():(S=!1,E=null)}}else S=!1}var Y;if(typeof y=="function")Y=function(){y(O)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,q=D.port2;D.port1.onmessage=O,Y=function(){q.postMessage(null)}}else Y=function(){w(O,0)};function W(k){E=k,S||(S=!0,Y())}function _(k,R){C=w(function(){k(e.unstable_now())},R)}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(k){k.callback=null},e.unstable_continueExecution=function(){p||v||(p=!0,W(N))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(k){switch(d){case 1:case 2:case 3:var R=3;break;default:R=d}var $=d;d=R;try{return k()}finally{d=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,R){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var $=d;d=k;try{return R()}finally{d=$}},e.unstable_scheduleCallback=function(k,R,$){var B=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?B+$:B):$=B,k){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=$+G,k={id:h++,callback:R,priorityLevel:k,startTime:$,expirationTime:G,sortIndex:-1},$>B?(k.sortIndex=$,t(u,k),n(c)===null&&k===n(u)&&(x?(g(C),C=-1):x=!0,_(j,$-B))):(k.sortIndex=G,t(c,k),p||v||(p=!0,W(N))),k},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(k){var R=d;return function(){var $=d;d=R;try{return k.apply(this,arguments)}finally{d=$}}}})(Xf);Kf.exports=Xf;var ty=Kf.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 ny=m,ft=ty;function H(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Zf=new Set,qs={};function vr(e,t){ts(e,t),ts(e+"Capture",t)}function ts(e,t){for(qs[e]=t,e=0;e<t.length;e++)Zf.add(t[e])}var ln=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sl=Object.prototype.hasOwnProperty,ry=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Cd={},Ed={};function sy(e){return Sl.call(Ed,e)?!0:Sl.call(Cd,e)?!1:ry.test(e)?Ed[e]=!0:(Cd[e]=!0,!1)}function oy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ay(e,t,n,r){if(t===null||typeof t>"u"||oy(e,t,n,r))return!0;
vendor: 5,200 bytes, lines 33-34
33if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Qe(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var _e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_e[e]=new Qe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_e[t]=new Qe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){_e[e]=new Qe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_e[e]=new Qe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){_e[e]=new Qe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){_e[e]=new Qe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){_e[e]=new Qe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){_e[e]=new Qe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){_e[e]=new Qe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Kc=/[\-:]([a-z])/g;function Xc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Kc,Xc);_e[t]=new Qe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Kc,Xc);_e[t]=new Qe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Kc,Xc);_e[t]=new Qe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){_e[e]=new Qe(e,1,!1,e.toLowerCase(),null,!1,!1)});_e.xlinkHref=new Qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){_e[e]=new Qe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zc(e,t,n,r){var o=_e.hasOwnProperty(t)?_e[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ay(t,n,o,r)&&(n=null),r||o===null?sy(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var mn=ny.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_o=Symbol.for("react.element"),Sr=Symbol.for("react.portal"),Cr=Symbol.for("react.fragment"),Jc=Symbol.for("react.strict_mode"),Cl=Symbol.for("react.profiler"),Jf=Symbol.for("react.provider"),em=Symbol.for("react.context"),eu=Symbol.for("react.forward_ref"),El=Symbol.for("react.suspense"),Tl=Symbol.for("react.suspense_list"),tu=Symbol.for("react.memo"),jn=Symbol.for("react.lazy"),tm=Symbol.for("react.offscreen"),Td=Symbol.iterator;function ws(e){return e===null||typeof e!="object"?null:(e=Td&&e[Td]||e["@@iterator"],typeof e=="function"?e:null)}var we=Object.assign,Ui;function As(e){if(Ui===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ui=t&&t[1]||""}return`
34`+Ui+e}var Vi=!1;function Yi(e,t){if(!e||Vi)return"";Vi=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 4,297 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
35`),a=r.stack.split(`
36`),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(i!==1||l!==1)do if(i--,l--,0>l||o[i]!==a[l]){var c=`
37`+o[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=i&&0<=l);break}}}finally{Vi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?As(e):""}function iy(e){switch(e.tag){case 5:return As(e.type);case 16:return As("Lazy");case 13:return As("Suspense");case 19:return As("SuspenseList");case 0:case 2:case 15:return e=Yi(e.type,!1),e;case 11:return e=Yi(e.type.render,!1),e;case 1:return e=Yi(e.type,!0),e;default:return""}}function Pl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Cr:return"Fragment";case Sr:return"Portal";case Cl:return"Profiler";case Jc:return"StrictMode";case El:return"Suspense";case Tl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case em:return(e.displayName||"Context")+".Consumer";case Jf:return(e._context.displayName||"Context")+".Provider";case eu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case tu:return t=e.displayName||null,t!==null?t:Pl(e.type)||"Memo";case jn:t=e._payload,e=e._init;try{return Pl(e(t))}catch{}}return null}function ly(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pl(t);case 8:return t===Jc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Bn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cy(e){var t=nm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Do(e){e._valueTracker||(e._valueTracker=cy(e))}function rm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ja(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Rl(e,t){var n=t.checked;return we({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Bn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function sm(e,t){t=t.checked,t!=null&&Zc(e,"checked",t,!1)}function Ml(e,t){sm(e,t);var n=Bn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Al(e,t.type,n):t.hasOwnProperty("defaultValue")&&Al(e,t.type,Bn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}
vendor: 4,180 bytes, line 37
37function Rd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Al(e,t,n){(t!=="number"||ja(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ls=Array.isArray;function _r(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Bn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ll(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(H(91));return we({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Md(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(H(92));if(Ls(n)){if(1<n.length)throw Error(H(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Bn(n)}}function om(e,t){var n=Bn(t.value),r=Bn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ad(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function am(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Hl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?am(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Fo,im=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Fo=Fo||document.createElement("div"),Fo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Fo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var _s={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},uy=["Webkit","ms","Moz","O"];Object.keys(_s).forEach(function(e){uy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_s[t]=_s[e]})});function lm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||_s.hasOwnProperty(e)&&_s[e]?(""+t).trim():t+"px"}function cm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=lm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var dy=we({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 Il(e,t){if(t){if(dy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function Ol(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
37ing";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _l=null;function nu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Dl=null,Dr=null,Fr=null;function Ld(e){if(e=ko(e)){if(typeof Dl!="function")throw Error(H(280));var t=e.stateNode;t&&(t=ai(t),Dl(e.stateNode,e.type,t))}}function um(e){Dr?Fr?Fr.push(e):Fr=[e]:Dr=e}function dm(){if(Dr){var e=Dr,t=Fr;if(Fr=Dr=null,Ld(e),t)for(e=0;e<t.length;e++)Ld(t[e])}}function hm(e,t){return e(t)}function fm(){}var Gi=!1;function mm(e,t,n){if(Gi)return e(t,n);Gi=!0;try{return hm(e,t,n)}finally{Gi=!1,(Dr!==null||Fr!==null)&&(fm(),dm())}}function Ks(e,t){var n=e.stateNode;if(n===null)return null;var r=ai(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(H(231,t,typeof n));return n}var Fl=!1;if(ln)try{var bs={};Object.defineProperty(bs,"passive",{get:function(){Fl=!0}}),window.addEventListener("test",bs,bs),window.removeEventListener("test",bs,bs)}catch{Fl=!1}function hy(e,t,n,r,o,a,i,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(h){this.onError(h)}}var Ds=!1,Na=null,ka=!1,zl=null,fy={onError:function(e){Ds=!0,Na=e}};function my(e,t,n,r,o,a,i,l,c){Ds=!1,Na=null,hy.apply(fy,arguments)}function py(e,t,n,r,o,a,i,l,c){if(my.apply(this,arguments),Ds){if(Ds){var u=Na;Ds=!1,Na=null}else throw Error(H(198));ka||(ka=!0,zl=u)}}function wr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function pm(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Hd(e){if(wr(e)!==e)throw Error(H(188))}function gy(e){var t=e.alternate;if(!t){if(t=wr(e),t===null)throw Error(H(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var a=o.alternate;if(a===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Hd(o),e;if(a===r)return Hd(o),t;a=a.sibling}throw Error(H(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i)throw Error(H(189))}}if(n.alternate!==r)throw Error(H(190))}if(n.tag!==3)throw Error(H(188));return n.stateNode.current===n?e:t}function gm(e){return e=gy(e),e!==null?xm(e):null}function xm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=xm(e);if(t!==null)return t;e=e.sibling}return null}var ym=ft.unstable_scheduleCallback,Id=ft.unstable_cancelCallback,xy=ft.unstable_shouldYield,yy=ft.unstable_requestPaint,Ne=ft.unstable_now,vy=ft.unstable_getCurrentPriorityLevel,ru=ft.unstable_ImmediatePriority,vm=ft.unstable_UserBlockingPriority,Sa=ft.unstable_NormalPriority,wy=ft.unstable_LowPriority,wm=ft.unstable_IdlePriority,ni=null,Gt=null;function by(e){if(Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(ni,e,void 0,(e.current.flags&128)===128)}catch{}}var Mt=Math.clz32?Math.clz32:ky,jy=Math.log,Ny=Math.LN2;function ky(e){return e>>>=0,e===0?32:31-(jy(e)/Ny|0)|0}var zo=64,$o=4194304;function Hs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ca(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=Hs(l):(a&=i,a!==0&&(r=Hs(a)))}else i=n&~o,i!==0?r=Hs(i):a!==0&&(r=Hs(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Mt(t),o=1<<n,r|=e[n],t&=~o;return r}function Sy(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Cy(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-Mt(a),l=1<<i,c=o[i];c===-1?(!(l&n)||l&r)&&(o[i]=Sy(l,t)):c<=t&&(e.expiredLanes|=l),a&=~l}}function $l(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function bm(){var e=zo;return zo<<=1,!(zo&4194240)&&(zo=64),e}function qi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function jo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Mt(t),e[t]=n}function Ey(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Mt(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}function su(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Mt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var le=0;function jm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Nm,ou,km,Sm,Cm,Bl=!1,Bo=[],Hn=null,In=null,On=null,Xs=new Map,Zs=new Map,kn=[],Ty="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 Od(e,t){switch(e){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":In=null;break;case"mouseover":case"mouseout":On=null;break;case"pointerover":case"pointerout":Xs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zs.delete(t.pointerId)}}function js(e,t,n,r,o,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},t!==null&&(t=ko(t),t!==null&&ou(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Py(e,t,n,r,o){switch(t){case"focusin":return Hn=js(Hn,e,t,n,r,o),!0;case"dragenter":return In=js(In,e,t,n,r,o),!0;case"mouseover":return On=js(On,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Xs.set(a,js(Xs.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Zs.set(a,js(Zs.get(a)||null,e,t,n,r,o)),!0}return!1}function Em(e){var t=tr(e.target);if(t!==null){var n=wr(t);if(n!==null){if(t=n.tag,t===13){if(t=pm(n),t!==null){e.blockedOn=t,Cm(e.priority,function(){km(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function la(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Wl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);_l=r,n.target.dispatchEvent(r),_l=null}else return t=ko(n),t!==null&&ou(t),e.blockedOn=n,!1;t.shift()}return!0}function _d(e,t,n){la(e)&&n.delete(t)}function Ry(){Bl=!1,Hn!==null&&la(Hn)&&(Hn=null),In!==null&&la(In)&&(In=null),On!==null&&la(On)&&(On=null),Xs.forEach(_d),Zs.forEach(_d)}function Ns(e,t){e.blockedOn===t&&(e.blockedOn=null,Bl||(Bl=!0,ft.unstable_scheduleCallback(ft.unstable_NormalPriority,Ry)))}function Js(e){function t(o){return Ns(o,e)}if(0<Bo.length){Ns(Bo[0],e);for(var n=1;n<Bo.length;n++){var r=Bo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Hn!==null&&Ns(Hn,e),In!==null&&Ns(In,e),On!==null&&Ns(On,e),Xs.forEach(t),Zs.forEach(t),n=0;n<kn.length;n++)r=kn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<kn.length&&(n=kn[0],n.blockedOn===null);)Em(n),n.blockedOn===null&&kn.shift()}var zr=mn.ReactCurrentBatchConfig,Ea=!0;function My(e,t,n,r){var o=le,a=zr.transition;zr.transition=null;try{le=1,au(e,t,n,r)}finally{le=o,zr.transition=a}}function Ay(e,t,n,r){var o=le,a=zr.transition;zr.transition=null;try{le=4,au(e,t,n,r)}finally{le=o,zr.transition=a}}function au(e,t,n,r){if(Ea){var o=Wl(e,t,n,r);if(o===null)sl(e,t,r,Ta,n),Od(e,r);else if(Py(o,e,t,n,r))r.stopPropagation();else if(Od(e,r),t&4&&-1<Ty.indexOf(e)){for(;o!==null;){var a=ko(o);if(a!==null&&Nm(a),a=Wl(e,t,n,r),a===null&&sl(e,t,r,Ta,n),a===o)break;o=a}o!==null&&r.stopPropagation()}else sl(e,t,r,null,n)}}var Ta=null;function Wl(e,t,n,r){if(Ta=null,e=nu(r),e=tr(e),e!==null)if(t=wr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=pm(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ta=e,null}
vendor: 10,081 bytes, line 37
37function Tm(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(vy()){case ru:return 1;case vm:return 4;case Sa:case wy:return 16;case wm:return 536870912;default:return 16}default:return 16}}var Mn=null,iu=null,ca=null;function Pm(){if(ca)return ca;var e,t=iu,n=t.length,r,o="value"in Mn?Mn.value:Mn.textContent,a=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[a-r];r++);return ca=o.slice(e,1<r?1-r:void 0)}function ua(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Wo(){return!0}function Dd(){return!1}function gt(e){function t(n,r,o,a,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=a,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Wo:Dd,this.isPropagationStopped=Dd,this}return we(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Wo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Wo)},persist:function(){},isPersistent:Wo}),t}var ms={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lu=gt(ms),No=we({},ms,{view:0,detail:0}),Ly=gt(No),Qi,Ki,ks,ri=we({},No,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ks&&(ks&&e.type==="mousemove"?(Qi=e.screenX-ks.screenX,Ki=e.screenY-ks.screenY):Ki=Qi=0,ks=e),Qi)},movementY:function(e){return"movementY"in e?e.movementY:Ki}}),Fd=gt(ri),Hy=we({},ri,{dataTransfer:0}),Iy=gt(Hy),Oy=we({},No,{relatedTarget:0}),Xi=gt(Oy),_y=we({},ms,{animationName:0,elapsedTime:0,pseudoElement:0}),Dy=gt(_y),Fy=we({},ms,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zy=gt(Fy),$y=we({},ms,{data:0}),zd=gt($y),By={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wy={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"},Uy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Uy[e])?!!t[e]:!1}function cu(){return Vy}var Yy=we({},No,{key:function(e){if(e.key){var t=By[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ua(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Wy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cu,charCode:function(e){return e.type==="keypress"?ua(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ua(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Gy=gt(Yy),qy=we({},ri,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$d=gt(qy),Qy=we({},No,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cu}),Ky=gt(Qy),Xy=we({},ms,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zy=gt(Xy),Jy=we({},ri,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ev=gt(Jy),tv=[9,13,27,32],uu=ln&&"CompositionEvent"in window,Fs=null;ln&&"documentMode"in document&&(Fs=document.documentMode);var nv=ln&&"TextEvent"in window&&!Fs,Rm=ln&&(!uu||Fs&&8<Fs&&11>=Fs),Bd=" ",Wd=!1;function Mm(e,t){switch(e){case"keyup":return tv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Am(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Er=!1;function rv(e,t){switch(e){case"compositionend":return Am(t);case"keypress":return t.which!==32?null:(Wd=!0,Bd);case"textInput":return e=t.data,e===Bd&&Wd?null:e;default:return null}}function sv(e,t){if(Er)return e==="compositionend"||!uu&&Mm(e,t)?(e=Pm(),ca=iu=Mn=null,Er=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Rm&&t.locale!=="ko"?null:t.data;default:return null}}var ov={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 Ud(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ov[e.type]:t==="textarea"}function Lm(e,t,n,r){um(r),t=Pa(t,"onChange"),0<t.length&&(n=new lu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var zs=null,eo=null;function av(e){Um(e,0)}function si(e){var t=Rr(e);if(rm(t))return e}function iv(e,t){if(e==="change")return t}var Hm=!1;if(ln){var Zi;if(ln){var Ji="oninput"in document;if(!Ji){var Vd=document.createElement("div");Vd.setAttribute("oninput","return;"),Ji=typeof Vd.oninput=="function"}Zi=Ji}else Zi=!1;Hm=Zi&&(!document.documentMode||9<document.documentMode)}function Yd(){zs&&(zs.detachEvent("onpropertychange",Im),eo=zs=null)}function Im(e){if(e.propertyName==="value"&&si(eo)){var t=[];Lm(t,eo,e,nu(e)),mm(av,t)}}function lv(e,t,n){e==="focusin"?(Yd(),zs=t,eo=n,zs.attachEvent("onpropertychange",Im)):e==="focusout"&&Yd()}function cv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return si(eo)}function uv(e,t){if(e==="click")return si(t)}function dv(e,t){if(e==="input"||e==="change")return si(t)}function hv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ht=typeof Object.is=="function"?Object.is:hv;function to(e,t){if(Ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Sl.call(t,o)||!Ht(e[o],t[o]))return!1}return!0}function Gd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qd(e,t){var n=Gd(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Gd(n)}}function Om(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Om(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _m(){for(var e=window,t=ja();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ja(e.document)}return t}function du(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function fv(e){var t=_m(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Om(n.ownerDocument.documentElement,n)){if(r!==null&&du(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=qd(n,a);var i=qd(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mv=ln&&"documentMode"in document&&11>=document.documentMode,Tr=null,Ul=null,$s=null,Vl=!1;
vendor: 4,821 bytes, line 37
37function Qd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vl||Tr==null||Tr!==ja(r)||(r=Tr,"selectionStart"in r&&du(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),$s&&to($s,r)||($s=r,r=Pa(Ul,"onSelect"),0<r.length&&(t=new lu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Tr)))}function Uo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Pr={animationend:Uo("Animation","AnimationEnd"),animationiteration:Uo("Animation","AnimationIteration"),animationstart:Uo("Animation","AnimationStart"),transitionend:Uo("Transition","TransitionEnd")},el={},Dm={};ln&&(Dm=document.createElement("div").style,"AnimationEvent"in window||(delete Pr.animationend.animation,delete Pr.animationiteration.animation,delete Pr.animationstart.animation),"TransitionEvent"in window||delete Pr.transitionend.transition);function oi(e){if(el[e])return el[e];if(!Pr[e])return e;var t=Pr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Dm)return el[e]=t[n];return e}var Fm=oi("animationend"),zm=oi("animationiteration"),$m=oi("animationstart"),Bm=oi("transitionend"),Wm=new Map,Kd="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 Qn(e,t){Wm.set(e,t),vr(t,[e])}for(var tl=0;tl<Kd.length;tl++){var nl=Kd[tl],pv=nl.toLowerCase(),gv=nl[0].toUpperCase()+nl.slice(1);Qn(pv,"on"+gv)}Qn(Fm,"onAnimationEnd");Qn(zm,"onAnimationIteration");Qn($m,"onAnimationStart");Qn("dblclick","onDoubleClick");Qn("focusin","onFocus");Qn("focusout","onBlur");Qn(Bm,"onTransitionEnd");ts("onMouseEnter",["mouseout","mouseover"]);ts("onMouseLeave",["mouseout","mouseover"]);ts("onPointerEnter",["pointerout","pointerover"]);ts("onPointerLeave",["pointerout","pointerover"]);vr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));vr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));vr("onBeforeInput",["compositionend","keypress","textInput","paste"]);vr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));vr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));vr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Is="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(" "),xv=new Set("cancel close invalid load scroll toggle".split(" ").concat(Is));function Xd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,py(r,t,void 0,e),e.currentTarget=null}function Um(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==a&&o.isPropagationStopped())break e;Xd(o,l,u),a=c}else for(i=0;i<r.length;i++){if(l=r[i],c=l.instance,u=l.currentTarget,l=l.listener,c!==a&&o.isPropagationStopped())break e;Xd(o,l,u),a=c}}}if(ka)throw e=zl,ka=!1,zl=null,e}function pe(e,t){var n=t[Kl];n===void 0&&(n=t[Kl]=new Set);var r=e+"__bubble";n.has(r)||(Vm(t,e,2,!1),n.add(r))}function rl(e,t,n){var r=0;t&&(r|=4),Vm(n,e,r,t)}var Vo="_reactListening"+Math.random().toString(36).slice(2);function no(e){if(!e[Vo]){e[Vo]=!0,Zf.forEach(function(n){n!=="selectionchange"&&(xv.has(n)||rl(n,!1,e),rl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Vo]||(t[Vo]=!0,rl("selectionchange",!1,t))}}function Vm(e,t,n,r){switch(Tm(t)){case 1:var o=My;break;case 4:o=Ay;break;default:o=au}n=o.bind(null,t,n,e),o=void 0,!Fl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function sl(e,t,n,r,o){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;
vendor: 1,491 bytes, line 37
37if(l===o||l.nodeType===8&&l.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var c=i.tag;if((c===3||c===4)&&(c=i.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;i=i.return}for(;l!==null;){if(i=tr(l),i===null)return;if(c=i.tag,c===5||c===6){r=a=i;continue e}l=l.parentNode}}r=r.return}mm(function(){var u=a,h=nu(n),f=[];e:{var d=Wm.get(e);if(d!==void 0){var v=lu,p=e;switch(e){case"keypress":if(ua(n)===0)break e;case"keydown":case"keyup":v=Gy;break;case"focusin":p="focus",v=Xi;break;case"focusout":p="blur",v=Xi;break;case"beforeblur":case"afterblur":v=Xi;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=Fd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=Iy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=Ky;break;case Fm:case zm:case $m:v=Dy;break;case Bm:v=Zy;break;case"scroll":v=Ly;break;case"wheel":v=ev;break;case"copy":case"cut":case"paste":v=zy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=$d}var x=(t&4)!==0,w=!x&&e==="scroll",g=x?d!==null?d+"Capture":null:d;x=[];for(var y=u,b;y!==null;){b=y;var j=b.stateNode;if(b.tag===5&&j!==null&&(b=j,g!==null&&(j=Ks(y,g),j!=null&&x.push(ro(y,j,b)))),w)break;y=y.return}
vendor: 5,694 bytes, lines 37-38
370<x.length&&(d=new v(d,p,null,n,h),f.push({event:d,listeners:x}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",d&&n!==_l&&(p=n.relatedTarget||n.fromElement)&&(tr(p)||p[cn]))break e;if((v||d)&&(d=h.window===h?h:(d=h.ownerDocument)?d.defaultView||d.parentWindow:window,v?(p=n.relatedTarget||n.toElement,v=u,p=p?tr(p):null,p!==null&&(w=wr(p),p!==w||p.tag!==5&&p.tag!==6)&&(p=null)):(v=null,p=u),v!==p)){if(x=Fd,j="onMouseLeave",g="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(x=$d,j="onPointerLeave",g="onPointerEnter",y="pointer"),w=v==null?d:Rr(v),b=p==null?d:Rr(p),d=new x(j,y+"leave",v,n,h),d.target=w,d.relatedTarget=b,j=null,tr(h)===u&&(x=new x(g,y+"enter",p,n,h),x.target=b,x.relatedTarget=w,j=x),w=j,v&&p)t:{for(x=v,g=p,y=0,b=x;b;b=kr(b))y++;for(b=0,j=g;j;j=kr(j))b++;for(;0<y-b;)x=kr(x),y--;for(;0<b-y;)g=kr(g),b--;for(;y--;){if(x===g||g!==null&&x===g.alternate)break t;x=kr(x),g=kr(g)}x=null}else x=null;v!==null&&Zd(f,d,v,x,!1),p!==null&&w!==null&&Zd(f,w,p,x,!0)}}e:{if(d=u?Rr(u):window,v=d.nodeName&&d.nodeName.toLowerCase(),v==="select"||v==="input"&&d.type==="file")var N=iv;else if(Ud(d))if(Hm)N=dv;else{N=cv;var S=lv}else(v=d.nodeName)&&v.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(N=uv);if(N&&(N=N(e,u))){Lm(f,N,n,h);break e}S&&S(e,d,u),e==="focusout"&&(S=d._wrapperState)&&S.controlled&&d.type==="number"&&Al(d,"number",d.value)}switch(S=u?Rr(u):window,e){case"focusin":(Ud(S)||S.contentEditable==="true")&&(Tr=S,Ul=u,$s=null);break;case"focusout":$s=Ul=Tr=null;break;case"mousedown":Vl=!0;break;case"contextmenu":case"mouseup":case"dragend":Vl=!1,Qd(f,n,h);break;case"selectionchange":if(mv)break;case"keydown":case"keyup":Qd(f,n,h)}var E;if(uu)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Er?Mm(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(Rm&&n.locale!=="ko"&&(Er||C!=="onCompositionStart"?C==="onCompositionEnd"&&Er&&(E=Pm()):(Mn=h,iu="value"in Mn?Mn.value:Mn.textContent,Er=!0)),S=Pa(u,C),0<S.length&&(C=new zd(C,e,null,n,h),f.push({event:C,listeners:S}),E?C.data=E:(E=Am(n),E!==null&&(C.data=E)))),(E=nv?rv(e,n):sv(e,n))&&(u=Pa(u,"onBeforeInput"),0<u.length&&(h=new zd("onBeforeInput","beforeinput",null,n,h),f.push({event:h,listeners:u}),h.data=E))}Um(f,t)})}function ro(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Pa(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,a=o.stateNode;o.tag===5&&a!==null&&(o=a,a=Ks(e,n),a!=null&&r.unshift(ro(e,a,o)),a=Ks(e,t),a!=null&&r.push(ro(e,a,o))),e=e.return}return r}function kr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Zd(e,t,n,r,o){for(var a=t._reactName,i=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&u!==null&&(l=u,o?(c=Ks(n,a),c!=null&&i.unshift(ro(n,c,l))):o||(c=Ks(n,a),c!=null&&i.push(ro(n,c,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var yv=/\r\n?/g,vv=/\u0000|\uFFFD/g;function Jd(e){return(typeof e=="string"?e:""+e).replace(yv,`
38`).replace(vv,"")}function Yo(e,t,n){if(t=Jd(t),Jd(e)!==t&&n)throw Error(H(425))}function Ra(){}var Yl=null,Gl=null;function ql(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ql=typeof setTimeout=="function"?setTimeout:void 0,wv=typeof clearTimeout=="function"?clearTimeout:void 0,eh=typeof Promise=="function"?Promise:void 0,bv=typeof queueMicrotask=="function"?queueMicrotask:typeof eh<"u"?function(e){return eh.resolve(null).then(e).catch(jv)}:Ql;function jv(e){setTimeout(function(){throw e})}function ol(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Js(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Js(t)}function _n(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function th(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ps=Math.random().toString(36).slice(2),Yt="__reactFiber$"+ps,so="__reactProps$"+ps,cn="__reactContainer$"+ps,Kl="__reactEvents$"+ps,Nv="__reactListeners$"+ps,kv="__reactHandles$"+ps;function tr(e){var t=e[Yt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[cn]||n[Yt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=th(e);e!==null;){if(n=e[Yt])return n;e=th(e)}return t}e=n,n=e.parentNode}return null}function ko(e){return e=e[Yt]||e[cn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Rr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(H(33))}function ai(e){return e[so]||null}var Xl=[],Mr=-1;function Kn(e){return{current:e}}function ge(e){0>Mr||(e.current=Xl[Mr],Xl[Mr]=null,Mr--)}function de(e,t){Mr++,Xl[Mr]=e.current,e.current=t}var Wn={},We=Kn(Wn),Je=Kn(!1),dr=Wn;function ns(e,t){var n=e.type.contextTypes;if(!n)return Wn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function et(e){return e=e.childContextTypes,e!=null}function Ma(){ge(Je),ge(We)}
vendor: 16,916 bytes, line 38
38function nh(e,t,n){if(We.current!==Wn)throw Error(H(168));de(We,t),de(Je,n)}function Ym(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(H(108,ly(e)||"Unknown",o));return we({},n,r)}function Aa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wn,dr=We.current,de(We,e),de(Je,Je.current),!0}function rh(e,t,n){var r=e.stateNode;if(!r)throw Error(H(169));n?(e=Ym(e,t,dr),r.__reactInternalMemoizedMergedChildContext=e,ge(Je),ge(We),de(We,e)):ge(Je),de(Je,n)}var tn=null,ii=!1,al=!1;function Gm(e){tn===null?tn=[e]:tn.push(e)}function Sv(e){ii=!0,Gm(e)}function Xn(){if(!al&&tn!==null){al=!0;var e=0,t=le;try{var n=tn;for(le=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}tn=null,ii=!1}catch(o){throw tn!==null&&(tn=tn.slice(e+1)),ym(ru,Xn),o}finally{le=t,al=!1}}return null}var Ar=[],Lr=0,La=null,Ha=0,yt=[],vt=0,hr=null,sn=1,on="";function Zn(e,t){Ar[Lr++]=Ha,Ar[Lr++]=La,La=e,Ha=t}function qm(e,t,n){yt[vt++]=sn,yt[vt++]=on,yt[vt++]=hr,hr=e;var r=sn;e=on;var o=32-Mt(r)-1;r&=~(1<<o),n+=1;var a=32-Mt(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,sn=1<<32-Mt(t)+o|n<<o|r,on=a+e}else sn=1<<a|n<<o|r,on=e}function hu(e){e.return!==null&&(Zn(e,1),qm(e,1,0))}function fu(e){for(;e===La;)La=Ar[--Lr],Ar[Lr]=null,Ha=Ar[--Lr],Ar[Lr]=null;for(;e===hr;)hr=yt[--vt],yt[vt]=null,on=yt[--vt],yt[vt]=null,sn=yt[--vt],yt[vt]=null}var ut=null,lt=null,xe=!1,Rt=null;function Qm(e,t){var n=wt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function sh(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ut=e,lt=_n(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ut=e,lt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=hr!==null?{id:sn,overflow:on}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=wt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ut=e,lt=null,!0):!1;default:return!1}}function Zl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Jl(e){if(xe){var t=lt;if(t){var n=t;if(!sh(e,t)){if(Zl(e))throw Error(H(418));t=_n(n.nextSibling);var r=ut;t&&sh(e,t)?Qm(r,n):(e.flags=e.flags&-4097|2,xe=!1,ut=e)}}else{if(Zl(e))throw Error(H(418));e.flags=e.flags&-4097|2,xe=!1,ut=e}}}function oh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ut=e}function Go(e){if(e!==ut)return!1;if(!xe)return oh(e),xe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ql(e.type,e.memoizedProps)),t&&(t=lt)){if(Zl(e))throw Km(),Error(H(418));for(;t;)Qm(e,t),t=_n(t.nextSibling)}if(oh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){lt=_n(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}lt=null}}else lt=ut?_n(e.stateNode.nextSibling):null;return!0}function Km(){for(var e=lt;e;)e=_n(e.nextSibling)}function rs(){lt=ut=null,xe=!1}function mu(e){Rt===null?Rt=[e]:Rt.push(e)}var Cv=mn.ReactCurrentBatchConfig;function Ss(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(H(309));var r=n.stateNode}if(!r)throw Error(H(147,e));var o=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(i){var l=o.refs;i===null?delete l[a]:l[a]=i},t._stringRef=a,t)}if(typeof e!="string")throw Error(H(284));if(!n._owner)throw Error(H(290,e))}return e}function qo(e,t){throw e=Object.prototype.toString.call(t),Error(H(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ah(e){var t=e._init;return t(e._payload)}function Xm(e){function t(g,y){if(e){var b=g.deletions;b===null?(g.deletions=[y],g.flags|=16):b.push(y)}}function n(g,y){if(!e)return null;for(;y!==null;)t(g,y),y=y.sibling;return null}function r(g,y){for(g=new Map;y!==null;)y.key!==null?g.set(y.key,y):g.set(y.index,y),y=y.sibling;return g}function o(g,y){return g=$n(g,y),g.index=0,g.sibling=null,g}function a(g,y,b){return g.index=b,e?(b=g.alternate,b!==null?(b=b.index,b<y?(g.flags|=2,y):b):(g.flags|=2,y)):(g.flags|=1048576,y)}function i(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,y,b,j){return y===null||y.tag!==6?(y=fl(b,g.mode,j),y.return=g,y):(y=o(y,b),y.return=g,y)}function c(g,y,b,j){var N=b.type;return N===Cr?h(g,y,b.props.children,j,b.key):y!==null&&(y.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===jn&&ah(N)===y.type)?(j=o(y,b.props),j.ref=Ss(g,y,b),j.return=g,j):(j=xa(b.type,b.key,b.props,null,g.mode,j),j.ref=Ss(g,y,b),j.return=g,j)}function u(g,y,b,j){return y===null||y.tag!==4||y.stateNode.containerInfo!==b.containerInfo||y.stateNode.implementation!==b.implementation?(y=ml(b,g.mode,j),y.return=g,y):(y=o(y,b.children||[]),y.return=g,y)}function h(g,y,b,j,N){return y===null||y.tag!==7?(y=cr(b,g.mode,j,N),y.return=g,y):(y=o(y,b),y.return=g,y)}function f(g,y,b){if(typeof y=="string"&&y!==""||typeof y=="number")return y=fl(""+y,g.mode,b),y.return=g,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case _o:return b=xa(y.type,y.key,y.props,null,g.mode,b),b.ref=Ss(g,null,y),b.return=g,b;case Sr:return y=ml(y,g.mode,b),y.return=g,y;case jn:var j=y._init;return f(g,j(y._payload),b)}if(Ls(y)||ws(y))return y=cr(y,g.mode,b,null),y.return=g,y;qo(g,y)}return null}function d(g,y,b,j){var N=y!==null?y.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return N!==null?null:l(g,y,""+b,j);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case _o:return b.key===N?c(g,y,b,j):null;case Sr:return b.key===N?u(g,y,b,j):null;case jn:return N=b._init,d(g,y,N(b._payload),j)}if(Ls(b)||ws(b))return N!==null?null:h(g,y,b,j,null);qo(g,b)}return null}function v(g,y,b,j,N){if(typeof j=="string"&&j!==""||typeof j=="number")return g=g.get(b)||null,l(y,g,""+j,N);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case _o:return g=g.get(j.key===null?b:j.key)||null,c(y,g,j,N);case Sr:return g=g.get(j.key===null?b:j.key)||null,u(y,g,j,N);case jn:var S=j._init;return v(g,y,b,S(j._payload),N)}if(Ls(j)||ws(j))return g=g.get(b)||null,h(y,g,j,N,null);qo(y,j)}return null}function p(g,y,b,j){for(var N=null,S=null,E=y,C=y=0,T=null;E!==null&&C<b.length;C++){E.index>C?(T=E,E=null):T=E.sibling;var P=d(g,E,b[C],j);if(P===null){E===null&&(E=T);break}e&&E&&P.alternate===null&&t(g,E),y=a(P,y,C),S===null?N=P:S.sibling=P,S=P,E=T}if(C===b.length)return n(g,E),xe&&Zn(g,C),N;if(E===null){for(;C<b.length;C++)E=f(g,b[C],j),E!==null&&(y=a(E,y,C),S===null?N=E:S.sibling=E,S=E);return xe&&Zn(g,C),N}for(E=r(g,E);C<b.length;C++)T=v(E,g,C,b[C],j),T!==null&&(e&&T.alternate!==null&&E.delete(T.key===null?C:T.key),y=a(T,y,C),S===null?N=T:S.sibling=T,S=T);return e&&E.forEach(function(A){return t(g,A)}),xe&&Zn(g,C),N}function x(g,y,b,j){var N=ws(b);if(typeof N!="function")throw Error(H(150));if(b=N.call(b),b==null)throw Error(H(151));for(var S=N=null,E=y,C=y=0,T=null,P=b.next();E!==null&&!P.done;C++,P=b.next()){E.index>C?(T=E,E=null):T=E.sibling;var A=d(g,E,P.value,j);if(A===null){E===null&&(E=T);break}e&&E&&A.alternate===null&&t(g,E),y=a(A,y,C),S===null?N=A:S.sibling=A,S=A,E=T}if(P.done)return n(g,E),xe&&Zn(g,C),N;if(E===null){for(;!P.done;C++,P=b.next())P=f(g,P.value,j),P!==null&&(y=a(P,y,C),S===null?N=P:S.sibling=P,S=P);return xe&&Zn(g,C),N}for(E=r(g,E);!P.done;C++,P=b.next())P=v(E,g,C,P.value,j),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?C:P.key),y=a(P,y,C),S===null?N=P:S.sibling=P,S=P);return e&&E.forEach(function(O){return t(g,O)}),xe&&Zn(g,C),N}function w(g,y,b,j){if(typeof b=="object"&&b!==null&&b.type===Cr&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case _o:e:{for(var N=b.key,S=y;S!==null;){if(S.key===N){if(N=b.type,N===Cr){if(S.tag===7){n(g,S.sibling),y=o(S,b.props.children),y.return=g,g=y;break e}}else if(S.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===jn&&ah(N)===S.type){n(g,S.sibling),y=o(S,b.props),y.ref=Ss(g,S,b),y.return=g,g=y;break e}n(g,S);break}else t(g,S);S=S.sibling}b.type===Cr?(y=cr(b.props.children,g.mode,j,b.key),y.return=g,g=y):(j=xa(b.type,b.key,b.props,null,g.mode,j),j.ref=Ss(g,y,b),j.return=g,g=j)}return i(g);case Sr:e:{for(S=b.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){n(g,y.sibling),y=o(y,b.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=ml(b,g.mode,j),y.return=g,g=y}return i(g);case jn:return S=b._init,w(g,y,S(b._payload),j)}if(Ls(b))return p(g,y,b,j);if(ws(b))return x(g,y,b,j);qo(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(n(g,y.sibling),y=o(y,b),y.return=g,g=y):(n(g,y),y=fl(b,g.mode,j),y.return=g,g=y),i(g)):n(g,y)}return w}var ss=Xm(!0),Zm=Xm(!1),Ia=Kn(null),Oa=null,Hr=null,pu=null;function gu(){pu=Hr=Oa=null}function xu(e){var t=Ia.current;ge(Ia),e._currentValue=t}function ec(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function $r(e,t){Oa=e,pu=Hr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ze=!0),e.firstContext=null)}function jt(e){var t=e._currentValue;if(pu!==e)if(e={context:e,memoizedValue:t,next:null},Hr===null){if(Oa===null)throw Error(H(308));Hr=e,Oa.dependencies={lanes:0,firstContext:e}}else Hr=Hr.next=e;return t}var nr=null;function yu(e){nr===null?nr=[e]:nr.push(e)}function Jm(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,yu(t)):(n.next=o.next,o.next=n),t.interleaved=n,un(e,r)}function un(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Nn=!1;function vu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ep(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function an(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Dn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,re&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,un(e,n)}return o=r.interleaved,o===null?(t.next=t,yu(r)):(t.next=o.next,o.next=t),r.interleaved=t,un(e,n)}function da(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,su(e,n)}}function ih(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?o=a=i:a=a.next=i,n=n.next}while(n!==null);a===null?o=a=t:a=a.next=t}else o=a=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function _a(e,t,n,r){var o=e.updateQueue;Nn=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var c=l,u=c.next;c.next=null,i===null?a=u:i.next=u,i=c;var h=e.alternate;h!==null&&(h=h.updateQueue,l=h.lastBaseUpdate,l!==i&&(l===null?h.firstBaseUpdate=u:l.next=u,h.lastBaseUpdate=c))}if(a!==null){var f=o.baseState;i=0,h=u=c=null,l=a;do{var d=l.lane,v=l.eventTime;if((r&d)===d){h!==null&&(h=h.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var p=e,x=l;switch(d=t,v=n,x.tag){case 1:if(p=x.payload,typeof p=="function"){f=p.call(v,f,d);break e}f=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=x.payload,d=typeof p=="function"?p.call(v,f,d):p,d==null)break e;f=we({},f,d);break e;case 2:Nn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[l]:d.push(l))}else v={eventTime:v,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},h===null?(u=h=v,c=f):h=h.next=v,i|=d;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;d=l,l=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(h===null&&(c=f),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=h,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else a===null&&(o.shared.lanes=0);mr|=i,e.lanes=i,e.memoizedState=f}}function lh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(H(191,o));o.call(r)}}}var So={},qt=Kn(So),oo=Kn(So),ao=Kn(So);function rr(e){if(e===So)throw Error(H(174));return e}function wu(e,t){switch(de(ao,t),de(oo,e),de(qt,So),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Hl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Hl(t,e)}ge(qt),de(qt,t)}function os(){ge(qt),ge(oo),ge(ao)}function tp(e){rr(ao.current);var t=rr(qt.current),n=Hl(t,e.type);t!==n&&(de(oo,e),de(qt,n))}function bu(e){oo.current===e&&(ge(qt),ge(oo))}var ye=Kn(0);function Da(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var il=[];function ju(){for(var e=0;e<il.length;e++)il[e]._workInProgressVersionPrimary=null;il.length=0}var ha=mn.ReactCurrentDispatcher,ll=mn.ReactCurrentBatchConfig,fr=0,ve=null,Ce=null,Re=null,Fa=!1,Bs=!1,io=0,Ev=0;function Fe(){throw Error(H(321))}function Nu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ht(e[n],t[n]))return!1;return!0}function ku(e,t,n,r,o,a){if(fr=a,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ha.current=e===null||e.memoizedState===null?Mv:Av,e=n(r,o),Bs){a=0;do{if(Bs=!1,io=0,25<=a)throw Error(H(301));a+=1,Re=Ce=null,t.updateQueue=null,ha.current=Lv,e=n(r,o)}while(Bs)}if(ha.current=za,t=Ce!==null&&Ce.next!==null,fr=0,Re=Ce=ve=null,Fa=!1,t)throw Error(H(300));return e}function Su(){var e=io!==0;return io=0,e}function Bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?ve.memoizedState=Re=e:Re=Re.next=e,Re}function Nt(){if(Ce===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Re===null?ve.memoizedState:Re.next;if(t!==null)Re=t,Ce=e;else{if(e===null)throw Error(H(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Re===null?ve.memoizedState=Re=e:Re=Re.next=e}return Re}function lo(e,t){return typeof t=="function"?t(e):t}function cl(e){var t=Nt(),n=t.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=e;var r=Ce,o=r.baseQueue,a=n.pending;if(a!==null){if(o!==null){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(o!==null){a=o.next,r=r.baseState;var l=i=null,c=null,u=a;do{var h=u.lane;if((fr&h)===h)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:h,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=f,i=r):c=c.next=f,ve.lanes|=h,mr|=h}u=u.next}while(u!==null&&u!==a);c===null?i=r:c.next=l,Ht(r,t.memoizedState)||(Ze=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do a=o.lane,ve.lanes|=a,mr|=a,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ul(e){var t=Nt(),n=t.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do a=e(a,i.action),i=i.next;while(i!==o);Ht(a,t.memoizedState)||(Ze=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function np(){}function rp(e,t){var n=ve,r=Nt(),o=t(),a=!Ht(r.memoizedState,o);if(a&&(r.memoizedState=o,Ze=!0),r=r.queue,Cu(ap.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||Re!==null&&Re.memoizedState.tag&1){if(n.flags|=2048,co(9,op.bind(null,n,r,o,t),void 0,null),Me===null)throw Error(H(349));fr&30||sp(n,t,o)}return o}
vendor: 4,204 bytes, line 38
38function sp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function op(e,t,n,r){t.value=n,t.getSnapshot=r,ip(t)&&lp(e)}function ap(e,t,n){return n(function(){ip(t)&&lp(e)})}function ip(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ht(e,n)}catch{return!0}}function lp(e){var t=un(e,1);t!==null&&At(t,e,1,-1)}function ch(e){var t=Bt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:lo,lastRenderedState:e},t.queue=e,e=e.dispatch=Rv.bind(null,ve,e),[t.memoizedState,e]}function co(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function cp(){return Nt().memoizedState}function fa(e,t,n,r){var o=Bt();ve.flags|=e,o.memoizedState=co(1|t,n,void 0,r===void 0?null:r)}function li(e,t,n,r){var o=Nt();r=r===void 0?null:r;var a=void 0;if(Ce!==null){var i=Ce.memoizedState;if(a=i.destroy,r!==null&&Nu(r,i.deps)){o.memoizedState=co(t,n,a,r);return}}ve.flags|=e,o.memoizedState=co(1|t,n,a,r)}function uh(e,t){return fa(8390656,8,e,t)}function Cu(e,t){return li(2048,8,e,t)}function up(e,t){return li(4,2,e,t)}function dp(e,t){return li(4,4,e,t)}function hp(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function fp(e,t,n){return n=n!=null?n.concat([e]):null,li(4,4,hp.bind(null,t,e),n)}function Eu(){}function mp(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Nu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function pp(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Nu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function gp(e,t,n){return fr&21?(Ht(n,t)||(n=bm(),ve.lanes|=n,mr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ze=!0),e.memoizedState=n)}function Tv(e,t){var n=le;le=n!==0&&4>n?n:4,e(!0);var r=ll.transition;ll.transition={};try{e(!1),t()}finally{le=n,ll.transition=r}}function xp(){return Nt().memoizedState}function Pv(e,t,n){var r=zn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},yp(e))vp(t,n);else if(n=Jm(e,t,n,r),n!==null){var o=Ge();At(n,e,r,o),wp(n,t,r)}}function Rv(e,t,n){var r=zn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(yp(e))vp(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,Ht(l,i)){var c=t.interleaved;c===null?(o.next=o,yu(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=Jm(e,t,o,r),n!==null&&(o=Ge(),At(n,e,r,o),wp(n,t,r))}}function yp(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function vp(e,t){Bs=Fa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,su(e,n)}}var za={readContext:jt,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},Mv={readContext:jt,useCallback:function(e,t){return Bt().memoizedState=[e,t===void 0?null:t],e},useContext:jt,useEffect:uh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,fa(4194308,4,hp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fa(4194308,4,e,t)},useInsertionEffect:function(e,t){return fa(4,2,e,t)},useMemo:function(e,t){var n=Bt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Bt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Pv.bind(null,ve,e),[r.memoizedState,e]}
vendor: 4,632 bytes, lines 38-40
38,useRef:function(e){var t=Bt();return e={current:e},t.memoizedState=e},useState:ch,useDebugValue:Eu,useDeferredValue:function(e){return Bt().memoizedState=e},useTransition:function(){var e=ch(!1),t=e[0];return e=Tv.bind(null,e[1]),Bt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ve,o=Bt();if(xe){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),Me===null)throw Error(H(349));fr&30||sp(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,uh(ap.bind(null,r,a,e),[e]),r.flags|=2048,co(9,op.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Bt(),t=Me.identifierPrefix;if(xe){var n=on,r=sn;n=(r&~(1<<32-Mt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=io++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Ev++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Av={readContext:jt,useCallback:mp,useContext:jt,useEffect:Cu,useImperativeHandle:fp,useInsertionEffect:up,useLayoutEffect:dp,useMemo:pp,useReducer:cl,useRef:cp,useState:function(){return cl(lo)},useDebugValue:Eu,useDeferredValue:function(e){var t=Nt();return gp(t,Ce.memoizedState,e)},useTransition:function(){var e=cl(lo)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:np,useSyncExternalStore:rp,useId:xp,unstable_isNewReconciler:!1},Lv={readContext:jt,useCallback:mp,useContext:jt,useEffect:Cu,useImperativeHandle:fp,useInsertionEffect:up,useLayoutEffect:dp,useMemo:pp,useReducer:ul,useRef:cp,useState:function(){return ul(lo)},useDebugValue:Eu,useDeferredValue:function(e){var t=Nt();return Ce===null?t.memoizedState=e:gp(t,Ce.memoizedState,e)},useTransition:function(){var e=ul(lo)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:np,useSyncExternalStore:rp,useId:xp,unstable_isNewReconciler:!1};function Ct(e,t){if(e&&e.defaultProps){t=we({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function tc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:we({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ci={isMounted:function(e){return(e=e._reactInternals)?wr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ge(),o=zn(e),a=an(r,o);a.payload=t,n!=null&&(a.callback=n),t=Dn(e,a,o),t!==null&&(At(t,e,o,r),da(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ge(),o=zn(e),a=an(r,o);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Dn(e,a,o),t!==null&&(At(t,e,o,r),da(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ge(),r=zn(e),o=an(n,r);o.tag=2,t!=null&&(o.callback=t),t=Dn(e,o,r),t!==null&&(At(t,e,r,n),da(t,e,r))}};function dh(e,t,n,r,o,a,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,i):t.prototype&&t.prototype.isPureReactComponent?!to(n,r)||!to(o,a):!0}function bp(e,t,n){var r=!1,o=Wn,a=t.contextType;return typeof a=="object"&&a!==null?a=jt(a):(o=et(t)?dr:We.current,r=t.contextTypes,a=(r=r!=null)?ns(e,o):Wn),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ci,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function hh(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ci.enqueueReplaceState(t,t.state,null)}function nc(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},vu(e);var a=t.contextType;typeof a=="object"&&a!==null?o.context=jt(a):(a=et(t)?dr:We.current,o.context=ns(e,a)),o.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(tc(e,t,a,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&ci.enqueueReplaceState(o,o.state,null),_a(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function as(e,t){try{var n="",r=t;do n+=iy(r),r=r.return;while(r);var o=n}catch(a){o=`
39Error generating stack: `+a.message+`
40`+a.stack}return{value:e,source:t,stack:o,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function rc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Hv=typeof WeakMap=="function"?WeakMap:Map;
vendor: 9,437 bytes, line 40
40function jp(e,t,n){n=an(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ba||(Ba=!0,fc=r),rc(e,t)},n}function Np(e,t,n){n=an(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){rc(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){rc(e,t),typeof r!="function"&&(Fn===null?Fn=new Set([this]):Fn.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function fh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Hv;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=qv.bind(null,e,t,n),t.then(e,e))}function mh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ph(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=an(-1,1),t.tag=2,Dn(n,t,1))),n.lanes|=1),e)}var Iv=mn.ReactCurrentOwner,Ze=!1;function Ve(e,t,n,r){t.child=e===null?Zm(t,null,n,r):ss(t,e.child,n,r)}function gh(e,t,n,r,o){n=n.render;var a=t.ref;return $r(t,o),r=ku(e,t,n,r,a,o),n=Su(),e!==null&&!Ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,dn(e,t,o)):(xe&&n&&hu(t),t.flags|=1,Ve(e,t,r,o),t.child)}function xh(e,t,n,r,o){if(e===null){var a=n.type;return typeof a=="function"&&!Iu(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,kp(e,t,a,r,o)):(e=xa(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if(n=n.compare,n=n!==null?n:to,n(i,r)&&e.ref===t.ref)return dn(e,t,o)}return t.flags|=1,e=$n(a,r),e.ref=t.ref,e.return=t,t.child=e}function kp(e,t,n,r,o){if(e!==null){var a=e.memoizedProps;if(to(a,r)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=r=a,(e.lanes&o)!==0)e.flags&131072&&(Ze=!0);else return t.lanes=e.lanes,dn(e,t,o)}return sc(e,t,n,r,o)}function Sp(e,t,n){var r=t.pendingProps,o=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},de(Or,at),at|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,de(Or,at),at|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,de(Or,at),at|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,de(Or,at),at|=r;return Ve(e,t,o,n),t.child}function Cp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function sc(e,t,n,r,o){var a=et(n)?dr:We.current;return a=ns(t,a),$r(t,o),n=ku(e,t,n,r,a,o),r=Su(),e!==null&&!Ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,dn(e,t,o)):(xe&&r&&hu(t),t.flags|=1,Ve(e,t,n,o),t.child)}function yh(e,t,n,r,o){if(et(n)){var a=!0;Aa(t)}else a=!1;if($r(t,o),t.stateNode===null)ma(e,t),bp(t,n,r),nc(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var c=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=jt(u):(u=et(n)?dr:We.current,u=ns(t,u));var h=n.getDerivedStateFromProps,f=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||c!==u)&&hh(t,i,r,u),Nn=!1;var d=t.memoizedState;i.state=d,_a(t,r,i,o),c=t.memoizedState,l!==r||d!==c||Je.current||Nn?(typeof h=="function"&&(tc(t,n,h,r),c=t.memoizedState),(l=Nn||dh(t,n,l,r,d,c,u))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=u,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,ep(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ct(t.type,l),i.props=u,f=t.pendingProps,d=i.context,c=n.contextType,typeof c=="object"&&c!==null?c=jt(c):(c=et(n)?dr:We.current,c=ns(t,c));var v=n.getDerivedStateFromProps;(h=typeof v=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==f||d!==c)&&hh(t,i,r,c),Nn=!1,d=t.memoizedState,i.state=d,_a(t,r,i,o);var p=t.memoizedState;l!==f||d!==p||Je.current||Nn?(typeof v=="function"&&(tc(t,n,v,r),p=t.memoizedState),(u=Nn||dh(t,n,u,r,d,p,c)||!1)?(h||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,p,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,p,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=c,r=u):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return oc(e,t,n,r,a,o)}function oc(e,t,n,r,o,a){Cp(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&rh(t,n,!1),dn(e,t,a);r=t.stateNode,Iv.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=ss(t,e.child,null,a),t.child=ss(t,null,l,a)):Ve(e,t,l,a),t.memoizedState=r.state,o&&rh(t,n,!0),t.child}function Ep(e){var t=e.stateNode;t.pendingContext?nh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&nh(e,t.context,!1),wu(e,t.containerInfo)}function vh(e,t,n,r,o){return rs(),mu(o),t.flags|=256,Ve(e,t,n,r),t.child}var ac={dehydrated:null,treeContext:null,retryLane:0};function ic(e){return{baseLanes:e,cachePool:null,transitions:null}}function Tp(e,t,n){var r=t.pendingProps,o=ye.current,a=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),de(ye,o&1),e===null)return Jl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,a?(r=t.mode,a=t.child,i={mode:"hidden",children:i},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=i):a=hi(i,r,0,null),e=cr(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=ic(n),t.memoizedState=ac,e):Tu(t,i));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return Ov(e,t,i,r,l,o,n);if(a){a=r.fallback,i=t.mode,o=e.child,l=o.sibling;var c={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=$n(o,c),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?a=$n(l,a):(a=cr(a,i,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,i=e.child.memoizedState,i=i===null?ic(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},a.memoizedState=i,a.childLanes=e.childLanes&~n,t.memoizedState=ac,r}return a=e.child,e=a.sibling,r=$n(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Tu(e,t){return t=hi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qo(e,t,n,r){return r!==null&&mu(r),ss(t,e.child,null,n),e=Tu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ov(e,t,n,r,o,a,i){if(n)return t.flags&256?(t.flags&=-257,r=dl(Error(H(422))),Qo(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=hi({mode:"visible",children:r.children},o,0,null),a=cr(a,o,i,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&ss(t,e.child,null,i),t.child.memoizedState=ic(i),t.memoizedState=ac,a);if(!(t.mode&1))return Qo(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,a=Error(H(419)),r=dl(a,r,void 0),Qo(e,t,i,r)}if(l=(i&e.childLanes)!==0,Ze||l){if(r=Me,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==a.retryLane&&(a.retryLane=o,un(e,o),At(r,e,o,-1))}return Hu(),r=dl(Error(H(421))),Qo(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Qv.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,lt=_n(o.nextSibling),ut=t,xe=!0,Rt=null,e!==null&&(yt[vt++]=sn,yt[vt++]=on,yt[vt++]=hr,sn=e.id,on=e.overflow,hr=t),t=Tu(t,r.children),t.flags|=4096,t)}
vendor: 5,714 bytes, line 40
40function wh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ec(e.return,t,n)}function hl(e,t,n,r,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Pp(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(Ve(e,t,r.children,n),r=ye.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wh(e,n,t);else if(e.tag===19)wh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(de(ye,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Da(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),hl(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Da(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}hl(t,!0,n,null,a);break;case"together":hl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ma(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function dn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),mr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(H(153));if(t.child!==null){for(e=t.child,n=$n(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=$n(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _v(e,t,n){switch(t.tag){case 3:Ep(t),rs();break;case 5:tp(t);break;case 1:et(t.type)&&Aa(t);break;case 4:wu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;de(Ia,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(de(ye,ye.current&1),t.flags|=128,null):n&t.child.childLanes?Tp(e,t,n):(de(ye,ye.current&1),e=dn(e,t,n),e!==null?e.sibling:null);de(ye,ye.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Pp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),de(ye,ye.current),r)break;return null;case 22:case 23:return t.lanes=0,Sp(e,t,n)}return dn(e,t,n)}var Rp,lc,Mp,Ap;Rp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};lc=function(){};Mp=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,rr(qt.current);var a=null;switch(n){case"input":o=Rl(e,o),r=Rl(e,r),a=[];break;case"select":o=we({},o,{value:void 0}),r=we({},r,{value:void 0}),a=[];break;case"textarea":o=Ll(e,o),r=Ll(e,r),a=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ra)}Il(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(qs.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(a=a||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(a=a||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(qs.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&pe("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};Ap=function(e,t,n,r){n!==r&&(t.flags|=4)};function Cs(e,t){if(!xe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Dv(e,t,n){var r=t.pendingProps;switch(fu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return et(t.type)&&Ma(),ze(t),null;case 3:return r=t.stateNode,os(),ge(Je),ge(We),ju(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Go(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Rt!==null&&(gc(Rt),Rt=null))),lc(e,t),ze(t),null;case 5:bu(t);var o=rr(ao.current);if(n=t.type,e!==null&&t.stateNode!=null)Mp(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(H(166));return ze(t),null}if(e=rr(qt.current),Go(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;
vendor: 32,083 bytes, line 40
40switch(r[Yt]=t,r[so]=a,e=(t.mode&1)!==0,n){case"dialog":pe("cancel",r),pe("close",r);break;case"iframe":case"object":case"embed":pe("load",r);break;case"video":case"audio":for(o=0;o<Is.length;o++)pe(Is[o],r);break;case"source":pe("error",r);break;case"img":case"image":case"link":pe("error",r),pe("load",r);break;case"details":pe("toggle",r);break;case"input":Pd(r,a),pe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},pe("invalid",r);break;case"textarea":Md(r,a),pe("invalid",r)}Il(n,a),o=null;for(var i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="children"?typeof l=="string"?r.textContent!==l&&(a.suppressHydrationWarning!==!0&&Yo(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(a.suppressHydrationWarning!==!0&&Yo(r.textContent,l,e),o=["children",""+l]):qs.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&pe("scroll",r)}switch(n){case"input":Do(r),Rd(r,a,!0);break;case"textarea":Do(r),Ad(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Ra)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=am(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Yt]=t,e[so]=r,Rp(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ol(n,r),n){case"dialog":pe("cancel",e),pe("close",e),o=r;break;case"iframe":case"object":case"embed":pe("load",e),o=r;break;case"video":case"audio":for(o=0;o<Is.length;o++)pe(Is[o],e);o=r;break;case"source":pe("error",e),o=r;break;case"img":case"image":case"link":pe("error",e),pe("load",e),o=r;break;case"details":pe("toggle",e),o=r;break;case"input":Pd(e,r),o=Rl(e,r),pe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=we({},r,{value:void 0}),pe("invalid",e);break;case"textarea":Md(e,r),o=Ll(e,r),pe("invalid",e);break;default:o=r}Il(n,o),l=o;for(a in l)if(l.hasOwnProperty(a)){var c=l[a];a==="style"?cm(e,c):a==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&im(e,c)):a==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Qs(e,c):typeof c=="number"&&Qs(e,""+c):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(qs.hasOwnProperty(a)?c!=null&&a==="onScroll"&&pe("scroll",e):c!=null&&Zc(e,a,c,i))}switch(n){case"input":Do(e),Rd(e,r,!1);break;case"textarea":Do(e),Ad(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Bn(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?_r(e,!!r.multiple,a,!1):r.defaultValue!=null&&_r(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ra)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ze(t),null;case 6:if(e&&t.stateNode!=null)Ap(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(H(166));if(n=rr(ao.current),rr(qt.current),Go(t)){if(r=t.stateNode,n=t.memoizedProps,r[Yt]=t,(a=r.nodeValue!==n)&&(e=ut,e!==null))switch(e.tag){case 3:Yo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Yo(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Yt]=t,t.stateNode=r}return ze(t),null;case 13:if(ge(ye),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(xe&&lt!==null&&t.mode&1&&!(t.flags&128))Km(),rs(),t.flags|=98560,a=!1;else if(a=Go(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(H(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(H(317));a[Yt]=t}else rs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ze(t),a=!1}else Rt!==null&&(gc(Rt),Rt=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ye.current&1?Ee===0&&(Ee=3):Hu())),t.updateQueue!==null&&(t.flags|=4),ze(t),null);case 4:return os(),lc(e,t),e===null&&no(t.stateNode.containerInfo),ze(t),null;case 10:return xu(t.type._context),ze(t),null;case 17:return et(t.type)&&Ma(),ze(t),null;case 19:if(ge(ye),a=t.memoizedState,a===null)return ze(t),null;if(r=(t.flags&128)!==0,i=a.rendering,i===null)if(r)Cs(a,!1);else{if(Ee!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Da(e),i!==null){for(t.flags|=128,Cs(a,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,i=a.alternate,i===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return de(ye,ye.current&1|2),t.child}e=e.sibling}a.tail!==null&&Ne()>is&&(t.flags|=128,r=!0,Cs(a,!1),t.lanes=4194304)}else{if(!r)if(e=Da(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Cs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!xe)return ze(t),null}else 2*Ne()-a.renderingStartTime>is&&n!==1073741824&&(t.flags|=128,r=!0,Cs(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ne(),t.sibling=null,n=ye.current,de(ye,r?n&1|2:n&1),t):(ze(t),null);case 22:case 23:return Lu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?at&1073741824&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function Fv(e,t){switch(fu(t),t.tag){case 1:return et(t.type)&&Ma(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return os(),ge(Je),ge(We),ju(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bu(t),null;case 13:if(ge(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));rs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(ye),null;case 4:return os(),null;case 10:return xu(t.type._context),null;case 22:case 23:return Lu(),null;case 24:return null;default:return null}}var Ko=!1,Be=!1,zv=typeof WeakSet=="function"?WeakSet:Set,U=null;function Ir(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){je(e,t,r)}else n.current=null}function cc(e,t,n){try{n()}catch(r){je(e,t,r)}}var bh=!1;function $v(e,t){if(Yl=Ea,e=_m(),du(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,l=-1,c=-1,u=0,h=0,f=e,d=null;t:for(;;){for(var v;f!==n||o!==0&&f.nodeType!==3||(l=i+o),f!==a||r!==0&&f.nodeType!==3||(c=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(v=f.firstChild)!==null;)d=f,f=v;for(;;){if(f===e)break t;if(d===n&&++u===o&&(l=i),d===a&&++h===r&&(c=i),(v=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=v}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Gl={focusedElem:e,selectionRange:n},Ea=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var x=p.memoizedProps,w=p.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?x:Ct(t.type,x),w);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(H(163))}}catch(j){je(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return p=bh,bh=!1,p}function Ws(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&cc(t,n,a)}o=o.next}while(o!==r)}}function ui(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function uc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Lp(e){var t=e.alternate;t!==null&&(e.alternate=null,Lp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yt],delete t[so],delete t[Kl],delete t[Nv],delete t[kv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Hp(e){return e.tag===5||e.tag===3||e.tag===4}function jh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function dc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ra));else if(r!==4&&(e=e.child,e!==null))for(dc(e,t,n),e=e.sibling;e!==null;)dc(e,t,n),e=e.sibling}function hc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(hc(e,t,n),e=e.sibling;e!==null;)hc(e,t,n),e=e.sibling}var Le=null,Pt=!1;function xn(e,t,n){for(n=n.child;n!==null;)Ip(e,t,n),n=n.sibling}function Ip(e,t,n){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(ni,n)}catch{}switch(n.tag){case 5:Be||Ir(n,t);case 6:var r=Le,o=Pt;Le=null,xn(e,t,n),Le=r,Pt=o,Le!==null&&(Pt?(e=Le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Le.removeChild(n.stateNode));break;case 18:Le!==null&&(Pt?(e=Le,n=n.stateNode,e.nodeType===8?ol(e.parentNode,n):e.nodeType===1&&ol(e,n),Js(e)):ol(Le,n.stateNode));break;case 4:r=Le,o=Pt,Le=n.stateNode.containerInfo,Pt=!0,xn(e,t,n),Le=r,Pt=o;break;case 0:case 11:case 14:case 15:if(!Be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&cc(n,t,i),o=o.next}while(o!==r)}xn(e,t,n);break;case 1:if(!Be&&(Ir(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){je(n,t,l)}xn(e,t,n);break;case 21:xn(e,t,n);break;case 22:n.mode&1?(Be=(r=Be)||n.memoizedState!==null,xn(e,t,n),Be=r):xn(e,t,n);break;default:xn(e,t,n)}}function Nh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new zv),t.forEach(function(r){var o=Kv.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function St(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 5:Le=l.stateNode,Pt=!1;break e;case 3:Le=l.stateNode.containerInfo,Pt=!0;break e;case 4:Le=l.stateNode.containerInfo,Pt=!0;break e}l=l.return}if(Le===null)throw Error(H(160));Ip(a,i,o),Le=null,Pt=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(u){je(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Op(t,e),t=t.sibling}function Op(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(St(t,e),$t(e),r&4){try{Ws(3,e,e.return),ui(3,e)}catch(x){je(e,e.return,x)}try{Ws(5,e,e.return)}catch(x){je(e,e.return,x)}}break;case 1:St(t,e),$t(e),r&512&&n!==null&&Ir(n,n.return);break;case 5:if(St(t,e),$t(e),r&512&&n!==null&&Ir(n,n.return),e.flags&32){var o=e.stateNode;try{Qs(o,"")}catch(x){je(e,e.return,x)}}if(r&4&&(o=e.stateNode,o!=null)){var a=e.memoizedProps,i=n!==null?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&a.type==="radio"&&a.name!=null&&sm(o,a),Ol(l,i);var u=Ol(l,a);for(i=0;i<c.length;i+=2){var h=c[i],f=c[i+1];h==="style"?cm(o,f):h==="dangerouslySetInnerHTML"?im(o,f):h==="children"?Qs(o,f):Zc(o,h,f,u)}switch(l){case"input":Ml(o,a);break;case"textarea":om(o,a);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var v=a.value;v!=null?_r(o,!!a.multiple,v,!1):d!==!!a.multiple&&(a.defaultValue!=null?_r(o,!!a.multiple,a.defaultValue,!0):_r(o,!!a.multiple,a.multiple?[]:"",!1))}o[so]=a}catch(x){je(e,e.return,x)}}break;case 6:if(St(t,e),$t(e),r&4){if(e.stateNode===null)throw Error(H(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(x){je(e,e.return,x)}}break;case 3:if(St(t,e),$t(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Js(t.containerInfo)}catch(x){je(e,e.return,x)}break;case 4:St(t,e),$t(e);break;case 13:St(t,e),$t(e),o=e.child,o.flags&8192&&(a=o.memoizedState!==null,o.stateNode.isHidden=a,!a||o.alternate!==null&&o.alternate.memoizedState!==null||(Mu=Ne())),r&4&&Nh(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(Be=(u=Be)||h,St(t,e),Be=u):St(t,e),$t(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!h&&e.mode&1)for(U=e,h=e.child;h!==null;){for(f=U=h;U!==null;){switch(d=U,v=d.child,d.tag){case 0:case 11:case 14:case 15:Ws(4,d,d.return);break;case 1:Ir(d,d.return);var p=d.stateNode;if(typeof p.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(x){je(r,n,x)}}break;case 5:Ir(d,d.return);break;case 22:if(d.memoizedState!==null){Sh(f);continue}}v!==null?(v.return=d,U=v):Sh(f)}h=h.sibling}e:for(h=null,f=e;;){if(f.tag===5){if(h===null){h=f;try{o=f.stateNode,u?(a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(l=f.stateNode,c=f.memoizedProps.style,i=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=lm("display",i))}catch(x){je(e,e.return,x)}}}else if(f.tag===6){if(h===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(x){je(e,e.return,x)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;h===f&&(h=null),f=f.return}h===f&&(h=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:St(t,e),$t(e),r&4&&Nh(e);break;case 21:break;default:St(t,e),$t(e)}}function $t(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Hp(n)){var r=n;break e}n=n.return}throw Error(H(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Qs(o,""),r.flags&=-33);var a=jh(e);hc(e,a,o);break;case 3:case 4:var i=r.stateNode.containerInfo,l=jh(e);dc(e,l,i);break;default:throw Error(H(161))}}catch(c){je(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Bv(e,t,n){U=e,_p(e)}function _p(e,t,n){for(var r=(e.mode&1)!==0;U!==null;){var o=U,a=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||Ko;if(!i){var l=o.alternate,c=l!==null&&l.memoizedState!==null||Be;l=Ko;var u=Be;if(Ko=i,(Be=c)&&!u)for(U=o;U!==null;)i=U,c=i.child,i.tag===22&&i.memoizedState!==null?Ch(o):c!==null?(c.return=i,U=c):Ch(o);for(;a!==null;)U=a,_p(a),a=a.sibling;U=o,Ko=l,Be=u}kh(e)}else o.subtreeFlags&8772&&a!==null?(a.return=o,U=a):kh(e)}}function kh(e){for(;U!==null;){var t=U;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Be||ui(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Be)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ct(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&lh(t,a,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}lh(t,i,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var h=u.memoizedState;if(h!==null){var f=h.dehydrated;f!==null&&Js(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(H(163))}Be||t.flags&512&&uc(t)}catch(d){je(t,t.return,d)}}if(t===e){U=null;break}if(n=t.sibling,n!==null){n.return=t.return,U=n;break}U=t.return}}function Sh(e){for(;U!==null;){var t=U;if(t===e){U=null;break}var n=t.sibling;if(n!==null){n.return=t.return,U=n;break}U=t.return}}function Ch(e){for(;U!==null;){var t=U;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ui(4,t)}catch(c){je(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){je(t,o,c)}}var a=t.return;try{uc(t)}catch(c){je(t,a,c)}break;case 5:var i=t.return;try{uc(t)}catch(c){je(t,i,c)}}}catch(c){je(t,t.return,c)}if(t===e){U=null;break}var l=t.sibling;if(l!==null){l.return=t.return,U=l;break}U=t.return}}var Wv=Math.ceil,$a=mn.ReactCurrentDispatcher,Pu=mn.ReactCurrentOwner,bt=mn.ReactCurrentBatchConfig,re=0,Me=null,Se=null,Oe=0,at=0,Or=Kn(0),Ee=0,uo=null,mr=0,di=0,Ru=0,Us=null,Xe=null,Mu=0,is=1/0,en=null,Ba=!1,fc=null,Fn=null,Xo=!1,An=null,Wa=0,Vs=0,mc=null,pa=-1,ga=0;function Ge(){return re&6?Ne():pa!==-1?pa:pa=Ne()}function zn(e){return e.mode&1?re&2&&Oe!==0?Oe&-Oe:Cv.transition!==null?(ga===0&&(ga=bm()),ga):(e=le,e!==0||(e=window.event,e=e===void 0?16:Tm(e.type)),e):1}function At(e,t,n,r){if(50<Vs)throw Vs=0,mc=null,Error(H(185));jo(e,n,r),(!(re&2)||e!==Me)&&(e===Me&&(!(re&2)&&(di|=n),Ee===4&&Sn(e,Oe)),tt(e,r),n===1&&re===0&&!(t.mode&1)&&(is=Ne()+500,ii&&Xn()))}function tt(e,t){var n=e.callbackNode;Cy(e,t);var r=Ca(e,e===Me?Oe:0);if(r===0)n!==null&&Id(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Id(n),t===1)e.tag===0?Sv(Eh.bind(null,e)):Gm(Eh.bind(null,e)),bv(function(){!(re&6)&&Xn()}),n=null;else{switch(jm(r)){case 1:n=ru;break;case 4:n=vm;break;case 16:n=Sa;break;case 536870912:n=wm;break;default:n=Sa}n=Vp(n,Dp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Dp(e,t){if(pa=-1,ga=0,re&6)throw Error(H(327));var n=e.callbackNode;if(Br()&&e.callbackNode!==n)return null;var r=Ca(e,e===Me?Oe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ua(e,r);else{t=r;var o=re;re|=2;var a=zp();(Me!==e||Oe!==t)&&(en=null,is=Ne()+500,lr(e,t));do try{Yv();break}catch(l){Fp(e,l)}while(!0);gu(),$a.current=a,re=o,Se!==null?t=0:(Me=null,Oe=0,t=Ee)}if(t!==0){if(t===2&&(o=$l(e),o!==0&&(r=o,t=pc(e,o))),t===1)throw n=uo,lr(e,0),Sn(e,r),tt(e,Ne()),n;if(t===6)Sn(e,r);else{if(o=e.current.alternate,!(r&30)&&!Uv(o)&&(t=Ua(e,r),t===2&&(a=$l(e),a!==0&&(r=a,t=pc(e,a))),t===1))throw n=uo,lr(e,0),Sn(e,r),tt(e,Ne()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(H(345));case 2:Jn(e,Xe,en);break;case 3:if(Sn(e,r),(r&130023424)===r&&(t=Mu+500-Ne(),10<t)){if(Ca(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Ge(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ql(Jn.bind(null,e,Xe,en),t);break}Jn(e,Xe,en);break;case 4:if(Sn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Mt(r);a=1<<i,i=t[i],i>o&&(o=i),r&=~a}if(r=o,r=Ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Wv(r/1960))-r,10<r){e.timeoutHandle=Ql(Jn.bind(null,e,Xe,en),r);break}Jn(e,Xe,en);break;case 5:Jn(e,Xe,en);break;default:throw Error(H(329))}}}return tt(e,Ne()),e.callbackNode===n?Dp.bind(null,e):null}function pc(e,t){var n=Us;return e.current.memoizedState.isDehydrated&&(lr(e,t).flags|=256),e=Ua(e,t),e!==2&&(t=Xe,Xe=n,t!==null&&gc(t)),e}function gc(e){Xe===null?Xe=e:Xe.push.apply(Xe,e)}function Uv(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!Ht(a(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Sn(e,t){for(t&=~Ru,t&=~di,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Mt(t),r=1<<n;e[n]=-1,t&=~r}}function Eh(e){if(re&6)throw Error(H(327));Br();var t=Ca(e,0);if(!(t&1))return tt(e,Ne()),null;var n=Ua(e,t);if(e.tag!==0&&n===2){var r=$l(e);r!==0&&(t=r,n=pc(e,r))}if(n===1)throw n=uo,lr(e,0),Sn(e,t),tt(e,Ne()),n;if(n===6)throw Error(H(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Jn(e,Xe,en),tt(e,Ne()),null}function Au(e,t){var n=re;re|=1;try{return e(t)}finally{re=n,re===0&&(is=Ne()+500,ii&&Xn())}}function pr(e){An!==null&&An.tag===0&&!(re&6)&&Br();var t=re;re|=1;var n=bt.transition,r=le;try{if(bt.transition=null,le=1,e)return e()}finally{le=r,bt.transition=n,re=t,!(re&6)&&Xn()}}function Lu(){at=Or.current,ge(Or)}function lr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,wv(n)),Se!==null)for(n=Se.return;n!==null;){var r=n;switch(fu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ma();break;case 3:os(),ge(Je),ge(We),ju();break;case 5:bu(r);break;case 4:os();break;case 13:ge(ye);break;case 19:ge(ye);break;case 10:xu(r.type._context);break;case 22:case 23:Lu()}n=n.return}if(Me=e,Se=e=$n(e.current,null),Oe=at=t,Ee=0,uo=null,Ru=di=mr=0,Xe=Us=null,nr!==null){for(t=0;t<nr.length;t++)if(n=nr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,a=n.pending;if(a!==null){var i=a.next;a.next=o,r.next=i}n.pending=r}nr=null}return e}function Fp(e,t){do{var n=Se;try{if(gu(),ha.current=za,Fa){for(var r=ve.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Fa=!1}if(fr=0,Re=Ce=ve=null,Bs=!1,io=0,Pu.current=null,n===null||n.return===null){Ee=1,uo=t,Se=null;break}e:{var a=e,i=n.return,l=n,c=t;if(t=Oe,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,h=l,f=h.tag;if(!(h.mode&1)&&(f===0||f===11||f===15)){var d=h.alternate;d?(h.updateQueue=d.updateQueue,h.memoizedState=d.memoizedState,h.lanes=d.lanes):(h.updateQueue=null,h.memoizedState=null)}var v=mh(i);if(v!==null){v.flags&=-257,ph(v,i,l,a,t),v.mode&1&&fh(a,u,t),t=v,c=u;var p=t.updateQueue;if(p===null){var x=new Set;x.add(c),t.updateQueue=x}else p.add(c);break e}else{if(!(t&1)){fh(a,u,t),Hu();break e}c=Error(H(426))}}else if(xe&&l.mode&1){var w=mh(i);if(w!==null){!(w.flags&65536)&&(w.flags|=256),ph(w,i,l,a,t),mu(as(c,l));break e}}a=c=as(c,l),Ee!==4&&(Ee=2),Us===null?Us=[a]:Us.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var g=jp(a,c,t);ih(a,g);break e;case 1:l=c;var y=a.type,b=a.stateNode;if(!(a.flags&128)&&(typeof y.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Fn===null||!Fn.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t;var j=Np(a,l,t);ih(a,j);break e}}a=a.return}while(a!==null)}Bp(n)}catch(N){t=N,Se===n&&n!==null&&(Se=n=n.return);continue}break}while(!0)}function zp(){var e=$a.current;return $a.current=za,e===null?za:e}function Hu(){(Ee===0||Ee===3||Ee===2)&&(Ee=4),Me===null||!(mr&268435455)&&!(di&268435455)||Sn(Me,Oe)}function Ua(e,t){var n=re;re|=2;var r=zp();(Me!==e||Oe!==t)&&(en=null,lr(e,t));do try{Vv();break}catch(o){Fp(e,o)}while(!0);if(gu(),re=n,$a.current=r,Se!==null)throw Error(H(261));return Me=null,Oe=0,Ee}function Vv(){for(;Se!==null;)$p(Se)}function Yv(){for(;Se!==null&&!xy();)$p(Se)}function $p(e){var t=Up(e.alternate,e,at);e.memoizedProps=e.pendingProps,t===null?Bp(e):Se=t,Pu.current=null}function Bp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Fv(n,t),n!==null){n.flags&=32767,Se=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ee=6,Se=null;return}}else if(n=Dv(n,t,at),n!==null){Se=n;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Ee===0&&(Ee=5)}function Jn(e,t,n){var r=le,o=bt.transition;try{bt.transition=null,le=1,Gv(e,t,n,r)}finally{bt.transition=o,le=r}return null}function Gv(e,t,n,r){do Br();while(An!==null);if(re&6)throw Error(H(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(H(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(Ey(e,a),e===Me&&(Se=Me=null,Oe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Xo||(Xo=!0,Vp(Sa,function(){return Br(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=bt.transition,bt.transition=null;var i=le;le=1;var l=re;re|=4,Pu.current=null,$v(e,n),Op(n,e),fv(Gl),Ea=!!Yl,Gl=Yl=null,e.current=n,Bv(n),yy(),re=l,le=i,bt.transition=a}else e.current=n;if(Xo&&(Xo=!1,An=e,Wa=o),a=e.pendingLanes,a===0&&(Fn=null),by(n.stateNode),tt(e,Ne()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ba)throw Ba=!1,e=fc,fc=null,e;return Wa&1&&e.tag!==0&&Br(),a=e.pendingLanes,a&1?e===mc?Vs++:(Vs=0,mc=e):Vs=0,Xn(),null}function Br(){if(An!==null){var e=jm(Wa),t=bt.transition,n=le;try{if(bt.transition=null,le=16>e?16:e,An===null)var r=!1;else{if(e=An,An=null,Wa=0,re&6)throw Error(H(331));var o=re;for(re|=4,U=e.current;U!==null;){var a=U,i=a.child;if(U.flags&16){var l=a.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(U=u;U!==null;){var h=U;switch(h.tag){case 0:case 11:case 15:Ws(8,h,a)}var f=h.child;if(f!==null)f.return=h,U=f;else for(;U!==null;){h=U;var d=h.sibling,v=h.return;if(Lp(h),h===u){U=null;break}if(d!==null){d.return=v,U=d;break}U=v}}}var p=a.alternate;if(p!==null){var x=p.child;if(x!==null){p.child=null;do{var w=x.sibling;x.sibling=null,x=w}while(x!==null)}}U=a}}if(a.subtreeFlags&2064&&i!==null)i.return=a,U=i;else e:for(;U!==null;){if(a=U,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Ws(9,a,a.return)}var g=a.sibling;if(g!==null){g.return=a.return,U=g;break e}U=a.return}}var y=e.current;for(U=y;U!==null;){i=U;var b=i.child;if(i.subtreeFlags&2064&&b!==null)b.return=i,U=b;else e:for(i=y;U!==null;){if(l=U,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:ui(9,l)}}catch(N){je(l,l.return,N)}if(l===i){U=null;break e}var j=l.sibling;if(j!==null){j.return=l.return,U=j;break e}U=l.return}}if(re=o,Xn(),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(ni,e)}catch{}r=!0}return r}finally{le=n,bt.transition=t}}return!1}function Th(e,t,n){t=as(n,t),t=jp(e,t,1),e=Dn(e,t,1),t=Ge(),e!==null&&(jo(e,1,t),tt(e,t))}function je(e,t,n){if(e.tag===3)Th(e,e,n);else for(;t!==null;){if(t.tag===3){Th(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Fn===null||!Fn.has(r))){e=as(n,e),e=Np(t,e,1),t=Dn(t,e,1),e=Ge(),t!==null&&(jo(t,1,e),tt(t,e));break}}t=t.return}}function qv(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ge(),e.pingedLanes|=e.suspendedLanes&n,Me===e&&(Oe&n)===n&&(Ee===4||Ee===3&&(Oe&130023424)===Oe&&500>Ne()-Mu?lr(e,0):Ru|=n),tt(e,t)}function Wp(e,t){t===0&&(e.mode&1?(t=$o,$o<<=1,!($o&130023424)&&($o=4194304)):t=1);var n=Ge();e=un(e,t),e!==null&&(jo(e,t,n),tt(e,n))}function Qv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wp(e,n)}function Kv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(H(314))}r!==null&&r.delete(t),Wp(e,n)}var Up;Up=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Je.current)Ze=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ze=!1,_v(e,t,n);Ze=!!(e.flags&131072)}else Ze=!1,xe&&t.flags&1048576&&qm(t,Ha,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ma(e,t),e=t.pendingProps;var o=ns(t,We.current);$r(t,n),o=ku(null,t,r,e,o,n);var a=Su();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,et(r)?(a=!0,Aa(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,vu(t),o.updater=ci,t.stateNode=o,o._reactInternals=t,nc(t,r,e,n),t=oc(null,t,r,!0,a,n)):(t.tag=0,xe&&a&&hu(t),Ve(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ma(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Zv(r),e=Ct(r,e),o){case 0:t=sc(null,t,r,e,n);break e;case 1:t=yh(null,t,r,e,n);break e;case 11:t=gh(null,t,r,e,n);break e;case 14:t=xh(null,t,r,Ct(r.type,e),n);break e}throw Error(H(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ct(r,o),sc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ct(r,o),yh(e,t,r,o,n);case 3:e:{if(Ep(t),e===null)throw Error(H(387));r=t.pendingProps,a=t.memoizedState,o=a.element,ep(e,t),_a(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=as(Error(H(423)),t),t=vh(e,t,r,n,o);break e}else if(r!==o){o=as(Error(H(424)),t),t=vh(e,t,r,n,o);break e}else for(lt=_n(t.stateNode.containerInfo.firstChild),ut=t,xe=!0,Rt=null,n=Zm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(rs(),r===o){t=dn(e,t,n);break e}Ve(e,t,r,n)}t=t.child}return t;case 5:return tp(t),e===null&&Jl(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,ql(r,o)?i=null:a!==null&&ql(r,a)&&(t.flags|=32),Cp(e,t),Ve(e,t,i,n),t.child;case 6:return e===null&&Jl(t),null;case 13:return Tp(e,t,n);case 4:return wu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ss(t,null,r,n):Ve(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ct(r,o),gh(e,t,r,o,n);case 7:return Ve(e,t,t.pendingProps,n),t.child;case 8:return Ve(e,t,t.pendingProps.children,n),t.child;case 12:return Ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,de(Ia,r._currentValue),r._currentValue=i,a!==null)if(Ht(a.value,i)){if(a.children===o.children&&!Je.current){t=dn(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){i=a.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(a.tag===1){c=an(-1,n&-n),c.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?c.next=c:(c.next=h.next,h.next=c),u.pending=c}}a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),ec(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(H(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),ec(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Ve(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,$r(t,n),o=jt(o),r=r(o),t.flags|=1,Ve(e,t,r,n),t.child;case 14:return r=t.type,o=Ct(r,t.pendingProps),o=Ct(r.type,o),xh(e,t,r,o,n);case 15:return kp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ct(r,o),ma(e,t),t.tag=1,et(r)?(e=!0,Aa(t)):e=!1,$r(t,n),bp(t,r,o),nc(t,r,o,n),oc(null,t,r,!0,e,n);case 19:return Pp(e,t,n);
vendor: 4,599 bytes, line 40
40case 22:return Sp(e,t,n)}throw Error(H(156,t.tag))};function Vp(e,t){return ym(e,t)}function Xv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wt(e,t,n,r){return new Xv(e,t,n,r)}function Iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zv(e){if(typeof e=="function")return Iu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===eu)return 11;if(e===tu)return 14}return 2}function $n(e,t){var n=e.alternate;return n===null?(n=wt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function xa(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")Iu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Cr:return cr(n.children,o,a,t);case Jc:i=8,o|=8;break;case Cl:return e=wt(12,n,t,o|2),e.elementType=Cl,e.lanes=a,e;case El:return e=wt(13,n,t,o),e.elementType=El,e.lanes=a,e;case Tl:return e=wt(19,n,t,o),e.elementType=Tl,e.lanes=a,e;case tm:return hi(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Jf:i=10;break e;case em:i=9;break e;case eu:i=11;break e;case tu:i=14;break e;case jn:i=16,r=null;break e}throw Error(H(130,e==null?e:typeof e,""))}return t=wt(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function cr(e,t,n,r){return e=wt(7,e,r,t),e.lanes=n,e}function hi(e,t,n,r){return e=wt(22,e,r,t),e.elementType=tm,e.lanes=n,e.stateNode={isHidden:!1},e}function fl(e,t,n){return e=wt(6,e,null,t),e.lanes=n,e}function ml(e,t,n){return t=wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jv(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qi(0),this.expirationTimes=qi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qi(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ou(e,t,n,r,o,a,i,l,c){return e=new Jv(e,t,n,l,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=wt(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},vu(a),e}function ew(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Sr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Yp(e){if(!e)return Wn;e=e._reactInternals;e:{if(wr(e)!==e||e.tag!==1)throw Error(H(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(et(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(H(171))}if(e.tag===1){var n=e.type;if(et(n))return Ym(e,n,t)}return t}function Gp(e,t,n,r,o,a,i,l,c){return e=Ou(n,r,!0,e,o,a,i,l,c),e.context=Yp(null),n=e.current,r=Ge(),o=zn(n),a=an(r,o),a.callback=t??null,Dn(n,a,o),e.current.lanes=o,jo(e,o,r),tt(e,r),e}function fi(e,t,n,r){var o=t.current,a=Ge(),i=zn(o);return n=Yp(n),t.context===null?t.context=n:t.pendingContext=n,t=an(a,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Dn(o,t,i),e!==null&&(At(e,o,i,a),da(e,o,i)),i}function Va(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ph(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _u(e,t){Ph(e,t),(e=e.alternate)&&Ph(e,t)}function tw(){return null}var qp=typeof reportError=="function"?reportError:function(e){console.error(e)};function Du(e){this._internalRoot=e}mi.prototype.render=Du.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(H(409));fi(e,t,null,null)};
vendor: 4,334 bytes, line 40
40mi.prototype.unmount=Du.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;pr(function(){fi(null,e,null,null)}),t[cn]=null}};function mi(e){this._internalRoot=e}mi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Sm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<kn.length&&t!==0&&t<kn[n].priority;n++);kn.splice(n,0,e),n===0&&Em(e)}};function Fu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function pi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Rh(){}function nw(e,t,n,r,o){if(o){if(typeof r=="function"){var a=r;r=function(){var u=Va(i);a.call(u)}}var i=Gp(t,r,e,0,null,!1,!1,"",Rh);return e._reactRootContainer=i,e[cn]=i.current,no(e.nodeType===8?e.parentNode:e),pr(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=Va(c);l.call(u)}}var c=Ou(e,0,!1,null,null,!1,!1,"",Rh);return e._reactRootContainer=c,e[cn]=c.current,no(e.nodeType===8?e.parentNode:e),pr(function(){fi(t,c,n,r)}),c}function gi(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if(typeof o=="function"){var l=o;o=function(){var c=Va(i);l.call(c)}}fi(t,i,e,o)}else i=nw(n,t,e,o,r);return Va(i)}Nm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Hs(t.pendingLanes);n!==0&&(su(t,n|1),tt(t,Ne()),!(re&6)&&(is=Ne()+500,Xn()))}break;case 13:pr(function(){var r=un(e,1);if(r!==null){var o=Ge();At(r,e,1,o)}}),_u(e,1)}};ou=function(e){if(e.tag===13){var t=un(e,134217728);if(t!==null){var n=Ge();At(t,e,134217728,n)}_u(e,134217728)}};km=function(e){if(e.tag===13){var t=zn(e),n=un(e,t);if(n!==null){var r=Ge();At(n,e,t,r)}_u(e,t)}};Sm=function(){return le};Cm=function(e,t){var n=le;try{return le=e,t()}finally{le=n}};Dl=function(e,t,n){switch(t){case"input":if(Ml(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=ai(r);if(!o)throw Error(H(90));rm(r),Ml(r,o)}}}break;case"textarea":om(e,n);break;case"select":t=n.value,t!=null&&_r(e,!!n.multiple,t,!1)}};hm=Au;fm=pr;var rw={usingClientEntryPoint:!1,Events:[ko,Rr,ai,um,dm,Au]},Es={findFiberByHostInstance:tr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},sw={bundleType:Es.bundleType,version:Es.version,rendererPackageName:Es.rendererPackageName,rendererConfig:Es.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:mn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=gm(e),e===null?null:e.stateNode},findFiberByHostInstance:Es.findFiberByHostInstance||tw,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 Zo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zo.isDisabled&&Zo.supportsFiber)try{ni=Zo.inject(sw),Gt=Zo}catch{}}pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rw;pt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Fu(t))throw Error(H(200));return ew(e,t,null,n)};pt.createRoot=function(e,t){if(!Fu(e))throw Error(H(299));var n=!1,r="",o=qp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Ou(e,1,!1,null,null,n,!1,r,o),e[cn]=t.current,no(e.nodeType===8?e.parentNode:e),new Du(t)};pt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(H(188)):(e=Object.keys(e).join(","),Error(H(268,e)));return e=gm(t),e=e===null?null:e.stateNode,e};pt.flushSync=function(e){return pr(e)};pt.hydrate=function(e,t,n){if(!pi(t))throw Error(H(200));return gi(null,e,t,!0,n)};pt.hydrateRoot=function(e,t,n){if(!Fu(e))throw Error(H(405));var r=n!=null&&n.hydratedSources||null,o=!1,a="",i=qp;
40if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Gp(t,null,e,1,n??null,o,!1,a,i),e[cn]=t.current,no(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new mi(t)};pt.render=function(e,t,n){if(!pi(t))throw Error(H(200));return gi(null,e,t,!1,n)};pt.unmountComponentAtNode=function(e){if(!pi(e))throw Error(H(40));return e._reactRootContainer?(pr(function(){gi(null,null,e,!1,function(){e._reactRootContainer=null,e[cn]=null})}),!0):!1};pt.unstable_batchedUpdates=Au;pt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!pi(n))throw Error(H(200));if(e==null||e._reactInternals===void 0)throw Error(H(38));return gi(e,t,n,!1,r)};pt.version="18.3.1-next-f1338f8080-20240426";function Qp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qp)}catch(e){console.error(e)}}Qp(),Qf.exports=pt;var Co=Qf.exports;const Kp=Of(Co);var Xp,Mh=Co;Xp=Mh.createRoot,Mh.hydrateRoot;const ow=1,aw=1e6;let pl=0;function iw(){return pl=(pl+1)%Number.MAX_SAFE_INTEGER,pl.toString()}const gl=new Map,Ah=e=>{if(gl.has(e))return;const t=setTimeout(()=>{gl.delete(e),Ys({type:"REMOVE_TOAST",toastId:e})},aw);gl.set(e,t)},lw=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,ow)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Ah(n):e.toasts.forEach(r=>{Ah(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ya=[];let va={toasts:[]};function Ys(e){va=lw(va,e),ya.forEach(t=>{t(va)})}function cw({...e}){const t=iw(),n=o=>Ys({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Ys({type:"DISMISS_TOAST",toastId:t});return Ys({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function zu(){const[e,t]=m.useState(va);return m.useEffect(()=>(ya.push(t),()=>{const n=ya.indexOf(t);n>-1&&ya.splice(n,1)}),[e]),{...e,toast:cw,dismiss:n=>Ys({type:"DISMISS_TOAST",toastId:n})}}function ne(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function uw(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Zp(...e){return t=>e.forEach(n=>uw(n,t))}function Te(...e){return m.useCallback(Zp(...e),e)}function dw(e,t=[]){let n=[];function r(a,i){const l=m.createContext(i),c=n.length;n=[...n,i];function u(f){const{scope:d,children:v,...p}=f,x=(d==null?void 0:d[e][c])||l,w=m.useMemo(()=>p,Object.values(p));return s.jsx(x.Provider,{value:w,children:v})}function h(f,d){const v=(d==null?void 0:d[e][c])||l,p=m.useContext(v);if(p)return p;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return u.displayName=a+"Provider",[u,h]}const o=()=>{const a=n.map(i=>m.createContext(i));return function(l){const c=(l==null?void 0:l[e])||a;return m.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,hw(o,...t)]}function hw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(a)[`__scope${u}`];return{...l,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var ho=m.forwardRef((e,t)=>{const{children:n,...r}=e,o=m.Children.toArray(n),a=o.find(fw);if(a){const i=a.props.children,l=o.map(c=>c===a?m.Children.count(i)>1?m.Children.only(null):m.isValidElement(i)?i.props.children:null:c);return s.jsx(xc,{...r,ref:t,children:m.isValidElement(i)?m.cloneElement(i,void 0,l):null})}return s.jsx(xc,{...r,ref:t,children:n})});ho.displayName="Slot";var xc=m.forwardRef((e,t)=>
vendor: 8,447 bytes, line 40
40{const{children:n,...r}=e;if(m.isValidElement(n)){const o=pw(n);return m.cloneElement(n,{...mw(r,n.props),ref:t?Zp(t,o):o})}return m.Children.count(n)>1?m.Children.only(null):null});xc.displayName="SlotClone";var Jp=({children:e})=>s.jsx(s.Fragment,{children:e});function fw(e){return m.isValidElement(e)&&e.type===Jp}function mw(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...l)=>{a(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function pw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function $u(e){const t=e+"CollectionProvider",[n,r]=dw(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:p,children:x}=v,w=F.useRef(null),g=F.useRef(new Map).current;return s.jsx(o,{scope:p,itemMap:g,collectionRef:w,children:x})};i.displayName=t;const l=e+"CollectionSlot",c=F.forwardRef((v,p)=>{const{scope:x,children:w}=v,g=a(l,x),y=Te(p,g.collectionRef);return s.jsx(ho,{ref:y,children:w})});c.displayName=l;const u=e+"CollectionItemSlot",h="data-radix-collection-item",f=F.forwardRef((v,p)=>{const{scope:x,children:w,...g}=v,y=F.useRef(null),b=Te(p,y),j=a(u,x);return F.useEffect(()=>(j.itemMap.set(y,{ref:y,...g}),()=>void j.itemMap.delete(y))),s.jsx(ho,{[h]:"",ref:b,children:w})});f.displayName=u;function d(v){const p=a(e+"CollectionConsumer",v);return F.useCallback(()=>{const w=p.collectionRef.current;if(!w)return[];const g=Array.from(w.querySelectorAll(`[${h}]`));return Array.from(p.itemMap.values()).sort((j,N)=>g.indexOf(j.ref.current)-g.indexOf(N.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:i,Slot:c,ItemSlot:f},d,r]}function Eo(e,t=[]){let n=[];function r(a,i){const l=m.createContext(i),c=n.length;n=[...n,i];const u=f=>{var g;const{scope:d,children:v,...p}=f,x=((g=d==null?void 0:d[e])==null?void 0:g[c])||l,w=m.useMemo(()=>p,Object.values(p));return s.jsx(x.Provider,{value:w,children:v})};u.displayName=a+"Provider";function h(f,d){var x;const v=((x=d==null?void 0:d[e])==null?void 0:x[c])||l,p=m.useContext(v);if(p)return p;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[u,h]}const o=()=>{const a=n.map(i=>m.createContext(i));return function(l){const c=(l==null?void 0:l[e])||a;return m.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,gw(o,...t)]}function gw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(a)[`__scope${u}`];return{...l,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var xw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],he=xw.reduce((e,t)=>{const n=m.forwardRef((r,o)=>{const{asChild:a,...i}=r,l=a?ho:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(l,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function e0(e,t){e&&Co.flushSync(()=>e.dispatchEvent(t))}function It(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function yw(e,t=globalThis==null?void 0:globalThis.document){const n=It(e);m.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var vw="DismissableLayer",yc="dismissableLayer.update",ww="dismissableLayer.pointerDownOutside",bw="dismissableLayer.focusOutside",Lh,t0=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bu=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...c}=e,u=m.useContext(t0),[h,f]=m.useState(null),d=(h==null?void 0:h.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=m.useState({}),p=Te(t,E=>f(E)),x=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=x.indexOf(w),y=h?x.indexOf(h):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,j=y>=g,N=Nw(E=>{const C=E.target,T=[...u.branches].some(P=>P.contains(C));!j||T||(o==null||o(E),i==null||i(E),E.defaultPrevented||l==null||l())},d),S=kw(E=>{const C=E.target;[...u.branches].some(P=>P.contains(C))||(a==null||a(E),i==null||i(E),E.defaultPrevented||l==null||l())},d);return yw(E=>{y===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&l&&(E.preventDefault(),l()))},d),m.useEffect(()=>{if(h)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Lh=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),Hh(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Lh)}},[h,d,n,u]),m.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),Hh())},[h,u]),m.useEffect(()=>{const E=()=>v({});return document.addEventListener(yc,E),()=>document.removeEventListener(yc,E)},[]),s.jsx(he.div,{...c,ref:p,style:{pointerEvents:b?j?"auto":"none":void 0,...e.style},onFocusCapture:ne(e.onFocusCapture,S.onFocusCapture),onBlurCapture:ne(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:ne(e.onPointerDownCapture,N.onPointerDownCapture)})});Bu.displayName=vw;var jw="DismissableLayerBranch",n0=m.forwardRef((e,t)=>{const n=m.useContext(t0),r=m.useRef(null),o=Te(t,r);return m.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),s.jsx(he.div,{...e,ref:o})});n0.displayName=jw;function Nw(e,t=globalThis==null?void 0:globalThis.document){const n=It(e),r=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const a=l=>{if(l.target&&!r.current){let c=function(){r0(ww,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function kw(e,t=globalThis==null?void 0:globalThis.document){const n=It(e),r=m.useRef(!1);return m.useEffect(()=>{const o=a=>{a.target&&!r.current&&r0(bw,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Hh(){const e=new CustomEvent(yc);document.dispatchEvent(e)}function r0(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?e0(o,a):o.dispatchEvent(a)}var Sw=Bu,Cw=n0,Un=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},Ew="Portal",s0=m.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,a]=m.useState(!1);Un(()=>a(!0),[]);const i=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?Kp.createPortal(s.jsx(he.div,{...r,ref:t}),i):null});s0.displayName=Ew;function Tw(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var xi=e=>{const{present:t,children:n}=e,r=Pw(t),o=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),a=Te(r.ref,Rw(o));return typeof n=="function"||r.isPresent?m.cloneElement(o,{ref:a}):null};xi.displayName="Presence";function Pw(e){const[t,n]=m.useState(),r=m.useRef({}),o=m.useRef(e),a=m.useRef("none"),i=e?"mounted":"unmounted",[l,c]=Tw(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=Jo(r.current);a.current=l==="mounted"?u:"none"},[l]),Un(()=>{const u=r.current,h=o.current;if(h!==e){const d=a.current,v=Jo(u);e?c("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(h&&d!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Un(()=>
40{if(t){let u;const h=t.ownerDocument.defaultView??window,f=v=>{const x=Jo(r.current).includes(v.animationName);if(v.target===t&&x&&(c("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=h.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},d=v=>{v.target===t&&(a.current=Jo(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{h.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:m.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Jo(e){return(e==null?void 0:e.animationName)||"none"}function Rw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function yi({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Mw({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,l=It(n),c=m.useCallback(u=>{if(a){const f=typeof u=="function"?u(e):u;f!==e&&l(f)}else o(u)},[a,e,o,l]);return[i,c]}function Mw({defaultProp:e,onChange:t}){const n=m.useState(e),[r]=n,o=m.useRef(r),a=It(t);return m.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}var Aw="VisuallyHidden",vi=m.forwardRef((e,t)=>s.jsx(he.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));vi.displayName=Aw;var Lw=vi,Wu="ToastProvider",[Uu,Hw,Iw]=$u("Toast"),[o0,C5]=Eo("Toast",[Iw]),[Ow,wi]=o0(Wu),a0=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:i}=e,[l,c]=m.useState(null),[u,h]=m.useState(0),f=m.useRef(!1),d=m.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Wu}\`. Expected non-empty \`string\`.`),s.jsx(Uu.Provider,{scope:t,children:s.jsx(Ow,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:a,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:m.useCallback(()=>h(v=>v+1),[]),onToastRemove:m.useCallback(()=>h(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:d,children:i})})};a0.displayName=Wu;var i0="ToastViewport",_w=["F8"],vc="toast.viewportPause",wc="toast.viewportResume",l0=m.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=_w,label:o="Notifications ({hotkey})",...a}=e,i=wi(i0,n),l=Hw(n),c=m.useRef(null),u=m.useRef(null),h=m.useRef(null),f=m.useRef(null),d=Te(t,f,i.onViewportChange),v=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),p=i.toastCount>0;m.useEffect(()=>{const w=g=>{var b;r.length!==0&&r.every(j=>g[j]||g.code===j)&&((b=f.current)==null||b.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),m.useEffect(()=>{const w=c.current,g=f.current;if(p&&w&&g){const y=()=>{if(!i.isClosePausedRef.current){const S=new CustomEvent(vc);g.dispatchEvent(S),i.isClosePausedRef.current=!0}},b=()=>{if(i.isClosePausedRef.current){const S=new CustomEvent(wc);g.dispatchEvent(S),i.isClosePausedRef.current=!1}},j=S=>{!w.contains(S.relatedTarget)&&b()},N=()=>{w.contains(document.activeElement)||b()};return w.addEventListener("focusin",y),w.addEventListener("focusout",j),w.addEventListener("pointermove",y),w.addEventListener("pointerleave",N),window.addEventListener("blur",y),window.addEventListener("focus",b),()=>{w.removeEventListener("focusin",y),w.removeEventListener("focusout",j),w.removeEventListener("pointermove",y),w.removeEventListener("pointerleave",N),window.removeEventListener("blur",y),window.removeEventListener("focus",b)}}},[p,i.isClosePausedRef]);const x=m.useCallback(({tabbingDirection:w})=>{const y=l().map(b=>{const j=b.ref.current,N=[j,...Kw(j)];return w==="forwards"?N:N.reverse()});return(w==="forwards"?y.reverse():y).flat()},[l]);return m.useEffect(()=>{const w=f.current;if(w){const g=y=>{var N,S,E;const b=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!b){const C=document.activeElement,T=y.shiftKey;if(y.target===w&&T){(N=u.current)==null||N.focus();return}const O=x({tabbingDirection:T?"backwards":"forwards"}),Y=O.findIndex(D=>D===C);xl(O.slice(Y+1))?y.preventDefault():T?(S=u.current)==null||S.focus():(E=h.current)==null||E.focus()}};return w.addEventListener("keydown",g),()=>w.removeEventListener("keydown",g)}},[l,x]),s.jsxs(Cw,{ref:c,role:"region","aria-label":o.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:p?void 0:"none"},children:[p&&s.jsx(bc,{ref:u,onFocusFromOutsideViewport:()=>{const w=x({tabbingDirection:"forwards"});xl(w)}}),s.jsx(Uu.Slot,{scope:n,children:s.jsx(he.ol,{tabIndex:-1,...a,ref:d})}),p&&s.jsx(bc,{ref:h,onFocusFromOutsideViewport:()=>{const w=x({tabbingDirection:"backwards"});xl(w)}})]})});l0.displayName=i0;var c0="ToastFocusProxy",bc=m.forwardRef((e,t)=>
40{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,a=wi(c0,n);return s.jsx(vi,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const l=i.relatedTarget;!((u=a.viewport)!=null&&u.contains(l))&&r()}})});bc.displayName=c0;var bi="Toast",Dw="toast.swipeStart",Fw="toast.swipeMove",zw="toast.swipeCancel",$w="toast.swipeEnd",u0=m.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...i}=e,[l=!0,c]=yi({prop:r,defaultProp:o,onChange:a});return s.jsx(xi,{present:n||l,children:s.jsx(Uw,{open:l,...i,ref:t,onClose:()=>c(!1),onPause:It(e.onPause),onResume:It(e.onResume),onSwipeStart:ne(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ne(e.onSwipeMove,u=>{const{x:h,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${h}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:ne(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ne(e.onSwipeEnd,u=>{const{x:h,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${h}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),c(!1)})})})});u0.displayName=bi;var[Bw,Ww]=o0(bi,{onClose(){}}),Uw=m.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:a,onClose:i,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:h,onSwipeMove:f,onSwipeCancel:d,onSwipeEnd:v,...p}=e,x=wi(bi,n),[w,g]=m.useState(null),y=Te(t,D=>g(D)),b=m.useRef(null),j=m.useRef(null),N=o||x.duration,S=m.useRef(0),E=m.useRef(N),C=m.useRef(0),{onToastAdd:T,onToastRemove:P}=x,A=It(()=>{var q;(w==null?void 0:w.contains(document.activeElement))&&((q=x.viewport)==null||q.focus()),i()}),O=m.useCallback(D=>{!D||D===1/0||(window.clearTimeout(C.current),S.current=new Date().getTime(),C.current=window.setTimeout(A,D))},[A]);m.useEffect(()=>{const D=x.viewport;if(D){const q=()=>{O(E.current),u==null||u()},W=()=>{const _=new Date().getTime()-S.current;E.current=E.current-_,window.clearTimeout(C.current),c==null||c()};return D.addEventListener(vc,W),D.addEventListener(wc,q),()=>{D.removeEventListener(vc,W),D.removeEventListener(wc,q)}}},[x.viewport,N,c,u,O]),m.useEffect(()=>{a&&!x.isClosePausedRef.current&&O(N)},[a,N,x.isClosePausedRef,O]),m.useEffect(()=>(T(),()=>P()),[T,P]);const Y=m.useMemo(()=>w?x0(w):null,[w]);return x.viewport?s.jsxs(s.Fragment,{children:[Y&&s.jsx(Vw,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Y}),s.jsx(Bw,{scope:n,onClose:A,children:Co.createPortal(s.jsx(Uu.ItemSlot,{scope:n,children:s.jsx(Sw,{asChild:!0,onEscapeKeyDown:ne(l,()=>{x.isFocusedToastEscapeKeyDownRef.current||A(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:s.jsx(he.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":x.swipeDirection,...p,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ne(e.onKeyDown,D=>{D.key==="Escape"&&(l==null||l(D.nativeEvent),D.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,A()))}),onPointerDown:ne(e.onPointerDown,D=>{D.button===0&&(b.current={x:D.clientX,y:D.clientY})}),onPointerMove:ne(e.onPointerMove,D=>{if(!b.current)return;const q=D.clientX-b.current.x,W=D.clientY-b.current.y,_=!!j.current,k=["left","right"].includes(x.swipeDirection),R=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,$=k?R(0,q):0,B=k?0:R(0,W),G=D.pointerType==="touch"?10:2,Q={x:$,y:B},se={originalEvent:D,delta:Q};_?(j.current=Q,ea(Fw,f,se,{discrete:!1})):Ih(Q,x.swipeDirection,G)?(j.current=Q,ea(Dw,h,se,{discrete:!1}),D.target.setPointerCapture(D.pointerId)):(Math.abs(q)>G||Math.abs(W)>G)&&(b.current=null)}),onPointerUp:ne(e.onPointerUp,D=>{const q=j.current,W=D.target;if(W.hasPointerCapture(D.pointerId)&&W.releasePointerCapture(D.pointerId),j.current=null,b.current=null,q){const _=D.currentTarget,k={originalEvent:D,delta:q};Ih(q,x.swipeDirection,x.swipeThreshold)?ea($w,v,k,{discrete:!0}):ea(zw,d,k,{discrete:!0}),_.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),Vw=e=>{const{__scopeToast:t,children:n,...r}=e,o=wi(bi,t),[a,i]=m.useState(!1),[l,c]=m.useState(!1);return qw(()=>i(!0)),m.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:s.jsx(s0,{asChild:!0,children:s.jsx(vi,{...r,children:a&&s.jsxs(s.Fragment,{children:[o.label," ",n]})})})},Yw="ToastTitle",d0=m.forwardRef((e,t)=>
vendor: 8,556 bytes, lines 40-109
40{const{__scopeToast:n,...r}=e;return s.jsx(he.div,{...r,ref:t})});d0.displayName=Yw;var Gw="ToastDescription",h0=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return s.jsx(he.div,{...r,ref:t})});h0.displayName=Gw;var f0="ToastAction",m0=m.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?s.jsx(g0,{altText:n,asChild:!0,children:s.jsx(Vu,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${f0}\`. Expected non-empty \`string\`.`),null)});m0.displayName=f0;var p0="ToastClose",Vu=m.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Ww(p0,n);return s.jsx(g0,{asChild:!0,children:s.jsx(he.button,{type:"button",...r,ref:t,onClick:ne(e.onClick,o.onClose)})})});Vu.displayName=p0;var g0=m.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return s.jsx(he.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function x0(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Qw(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!o)if(a){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...x0(r))}}),t}function ea(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?e0(o,a):o.dispatchEvent(a)}var Ih=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return t==="left"||t==="right"?a&&r>n:!a&&o>n};function qw(e=()=>{}){const t=It(e);Un(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Qw(e){return e.nodeType===e.ELEMENT_NODE}function Kw(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function xl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Xw=a0,y0=l0,v0=u0,w0=d0,b0=h0,j0=m0,N0=Vu;function k0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=k0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function S0(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=k0(e))&&(r&&(r+=" "),r+=t);return r}const Oh=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_h=S0,ji=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return _h(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(u=>{const h=n==null?void 0:n[u],f=a==null?void 0:a[u];if(h===null)return null;const d=Oh(h)||Oh(f);return o[u][d]}),l=n&&Object.entries(n).reduce((u,h)=>{let[f,d]=h;return d===void 0||(u[f]=d),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,h)=>{let{class:f,className:d,...v}=h;return Object.entries(v).every(p=>{let[x,w]=p;return Array.isArray(w)?w.includes({...a,...l}[x]):{...a,...l}[x]===w})?[...u,f,d]:u},[]);return _h(e,i,c,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.462.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 Zw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),C0=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.462.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 Jw={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.462.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 eb=m.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...l},c)=>m.createElement("svg",{ref:c,...Jw,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:C0("lucide",o),...l},[...i.map(([u,h])=>m.createElement(u,h)),...Array.isArray(a)?a:[a]]));/**
56 * @license lucide-react v0.462.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 V=(e,t)=>{const n=m.forwardRef(({className:r,...o},a)=>m.createElement(eb,{ref:a,iconNode:t,className:C0(`lucide-${Zw(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.462.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 tb=V("Anchor",[["path",{d:"M12 22V8",key:"qkxhtm"}],["path",{d:"M5 12H2a10 10 0 0 0 20 0h-3",key:"1hv3nh"}],["circle",{cx:"12",cy:"5",r:"3",key:"rqqgnr"}]]);/**
66 * @license lucide-react v0.462.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 nn=V("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
71 * @license lucide-react v0.462.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 rn=V("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
76 * @license lucide-react v0.462.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 jc=V("Award",[["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"}]]);/**
81 * @license lucide-react v0.462.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 Ya=V("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
86 * @license lucide-react v0.462.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 Nc=V("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
91 * @license lucide-react v0.462.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 Yu=V("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
96 * @license lucide-react v0.462.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 kc=V("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
101 * @license lucide-react v0.462.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 Gu=V("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
106 * @license lucide-react v0.462.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 nb=V("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
111 * @license lucide-react v0.462.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 Ni=V("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
116 * @license lucide-react v0.462.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 ki=V("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
121 * @license lucide-react v0.462.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 rb=V("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
126 * @license lucide-react v0.462.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 sb=V("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
131 * @license lucide-react v0.462.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 fo=V("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
136 * @license lucide-react v0.462.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 ob=V("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
141 * @license lucide-react v0.462.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 qu=V("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
146 * @license lucide-react v0.462.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 E0=V("Coffee",[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]]);/**
151 * @license lucide-react v0.462.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 mo=V("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);/**
156 * @license lucide-react v0.462.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 Qu=V("Copy",[["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"}]]);/**
161 * @license lucide-react v0.462.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 er=V("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
166 * @license lucide-react v0.462.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 T0=V("ExternalLink",[["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"}]]);/**
171 * @license lucide-react v0.462.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 ab=V("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
176 * @license lucide-react v0.462.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 ib=V("Fish",[["path",{d:"M6.5 12c.94-3.46 4.94-6 8.5-6 3.56 0 6.06 2.54 7 6-.94 3.47-3.44 6-7 6s-7.56-2.53-8.5-6Z",key:"15baut"}],["path",{d:"M18 12v.5",key:"18hhni"}],["path",{d:"M16 17.93a9.77 9.77 0 0 1 0-11.86",key:"16dt7o"}],["path",{d:"M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33",key:"l9di03"}],["path",{d:"M10.46 7.26C10.2 5.88 9.17 4.24 8 3h5.8a2 2 0 0 1 1.98 1.67l.23 1.4",key:"1kjonw"}],["path",{d:"m16.01 17.93-.23 1.4A2 2 0 0 1 13.8 21H9.5a5.96 5.96 0 0 0 1.49-3.98",key:"1zlm23"}]]);/**
181 * @license lucide-react v0.462.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 P0=V("Gamepad2",[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]]);/**
186 * @license lucide-react v0.462.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 dt=V("Gift",[["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"}]]);/**
191 * @license lucide-react v0.462.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 lb=V("Hammer",[["path",{d:"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9",key:"eefl8a"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"b7pghm"}]]);/**
196 * @license lucide-react v0.462.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 ct=V("Heart",[["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"}]]);/**
201 * @license lucide-react v0.462.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 To=V("House",[["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"}]]);/**
206 * @license lucide-react v0.462.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 cb=V("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
211 * @license lucide-react v0.462.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 Sc=V("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
216 * @license lucide-react v0.462.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 Ku=V("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
221 * @license lucide-react v0.462.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 gr=V("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
226 * @license lucide-react v0.462.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 ub=V("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/**
231 * @license lucide-react v0.462.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 db=V("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
236 * @license lucide-react v0.462.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 hb=V("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
241 * @license lucide-react v0.462.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 R0=V("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
246 * @license lucide-react v0.462.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 fb=V("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
251 * @license lucide-react v0.462.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 M0=V("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
256 * @license lucide-react v0.462.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 mb=V("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
261 * @license lucide-react v0.462.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 pb=V("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
266 * @license lucide-react v0.462.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 Cc=V("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
271 * @license lucide-react v0.462.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 A0=V("Printer",[["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"}]]);/**
276 * @license lucide-react v0.462.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 gb=V("Puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);/**
281 * @license lucide-react v0.462.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 xb=V("Recycle",[["path",{d:"M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5",key:"x6z5xu"}],["path",{d:"M11 19h8.203a1.83 1.83 0 0 0 1.556-.89 1.784 1.784 0 0 0 0-1.775l-1.226-2.12",key:"1x4zh5"}],["path",{d:"m14 16-3 3 3 3",key:"f6jyew"}],["path",{d:"M8.293 13.596 7.196 9.5 3.1 10.598",key:"wf1obh"}],["path",{d:"m9.344 5.811 1.093-1.892A1.83 1.83 0 0 1 11.985 3a1.784 1.784 0 0 1 1.546.888l3.943 6.843",key:"9tzpgr"}],["path",{d:"m13.378 9.633 4.096 1.098 1.097-4.096",key:"1oe83g"}]]);/**
286 * @license lucide-react v0.462.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 ur=V("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
291 * @license lucide-react v0.462.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 Dh=V("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
296 * @license lucide-react v0.462.0 - ISC
297 *
298 * This source code is licensed under the ISC license.
299 * See the LICENSE file in the root directory of this source tree.
300 */const Xu=V("Share2",[["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"}]]);/**
301 * @license lucide-react v0.462.0 - ISC
302 *
303 * This source code is licensed under the ISC license.
304 * See the LICENSE file in the root directory of this source tree.
305 */const yb=V("Share",[["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["polyline",{points:"16 6 12 2 8 6",key:"m901s6"}],["line",{x1:"12",x2:"12",y1:"2",y2:"15",key:"1p0rca"}]]);/**
306 * @license lucide-react v0.462.0 - ISC
307 *
308 * This source code is licensed under the ISC license.
309 * See the LICENSE file in the root directory of this source tree.
310 */const vb=V("Shell",[["path",{d:"M14 11a2 2 0 1 1-4 0 4 4 0 0 1 8 0 6 6 0 0 1-12 0 8 8 0 0 1 16 0 10 10 0 1 1-20 0 11.93 11.93 0 0 1 2.42-7.22 2 2 0 1 1 3.16 2.44",key:"1cn552"}]]);/**
311 * @license lucide-react v0.462.0 - ISC
312 *
313 * This source code is licensed under the ISC license.
314 * See the LICENSE file in the root directory of this source tree.
315 */const wb=V("Ship",[["path",{d:"M12 10.189V14",key:"1p8cqu"}],["path",{d:"M12 2v3",key:"qbqxhf"}],["path",{d:"M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6",key:"qpkstq"}],["path",{d:"M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76",key:"7tigtc"}],["path",{d:"M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"1924j5"}]]);/**
316 * @license lucide-react v0.462.0 - ISC
317 *
318 * This source code is licensed under the ISC license.
319 * See the LICENSE file in the root directory of this source tree.
320 */const bb=V("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
321 * @license lucide-react v0.462.0 - ISC
322 *
323 * This source code is licensed under the ISC license.
324 * See the LICENSE file in the root directory of this source tree.
325 */const jb=V("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
326 * @license lucide-react v0.462.0 - ISC
327 *
328 * This source code is licensed under the ISC license.
329 * See the LICENSE file in the root directory of this source tree.
330 */const Nb=V("Smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);/**
331 * @license lucide-react v0.462.0 - ISC
332 *
333 * This source code is licensed under the ISC license.
334 * See the LICENSE file in the root directory of this source tree.
335 */const xr=V("Sparkles",[["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"}]]);/**
336 * @license lucide-react v0.462.0 - ISC
337 *
338 * This source code is licensed under the ISC license.
339 * See the LICENSE file in the root directory of this source tree.
340 */const mt=V("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
341 * @license lucide-react v0.462.0 - ISC
342 *
343 * This source code is licensed under the ISC license.
344 * See the LICENSE file in the root directory of this source tree.
345 */const Fh=V("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);/**
346 * @license lucide-react v0.462.0 - ISC
347 *
348 * This source code is licensed under the ISC license.
349 * See the LICENSE file in the root directory of this source tree.
350 */const ls=V("Trophy",[["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"}]]);/**
351 * @license lucide-react v0.462.0 - ISC
352 *
353 * This source code is licensed under the ISC license.
354 * See the LICENSE file in the root directory of this source tree.
355 */const kb=V("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/**
356 * @license lucide-react v0.462.0 - ISC
357 *
358 * This source code is licensed under the ISC license.
359 * See the LICENSE file in the root directory of this source tree.
360 */const Sb=V("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
361 * @license lucide-react v0.462.0 - ISC
362 *
363 * This source code is licensed under the ISC license.
364 * See the LICENSE file in the root directory of this source tree.
365 */const Cb=V("UtensilsCrossed",[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]]);/**
366 * @license lucide-react v0.462.0 - ISC
367 *
368 * This source code is licensed under the ISC license.
369 * See the LICENSE file in the root directory of this source tree.
370 */const Po=V("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/**
371 * @license lucide-react v0.462.0 - ISC
372 *
373 * This source code is licensed under the ISC license.
374 * See the LICENSE file in the root directory of this source tree.
375 */const Eb=V("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);/**
376 * @license lucide-react v0.462.0 - ISC
377 *
378 * This source code is licensed under the ISC license.
379 * See the LICENSE file in the root directory of this source tree.
380 */const cs=V("Waves",[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]]);/**
381 * @license lucide-react v0.462.0 - ISC
382 *
383 * This source code is licensed under the ISC license.
384 * See the LICENSE file in the root directory of this source tree.
385 */const Ro=V("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 4,823 bytes, line 385
385],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Zu="-",Tb=e=>{const t=Rb(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const l=i.split(Zu);return l[0]===""&&l.length!==1&&l.shift(),L0(l,t)||Pb(i)},getConflictingClassGroupIds:(i,l)=>{const c=n[i]||[];return l&&r[i]?[...c,...r[i]]:c}}},L0=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?L0(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Zu);return(i=t.validators.find(({validator:l})=>l(a)))==null?void 0:i.classGroupId},zh=/^\[(.+)\]$/,Pb=e=>{if(zh.test(e)){const t=zh.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Rb=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Ab(Object.entries(e.classGroups),n).forEach(([a,i])=>{Ec(i,r,a,t)}),r},Ec=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:$h(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(Mb(o)){Ec(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,i])=>{Ec(i,$h(t,a),n,r)})})},$h=(e,t)=>{let n=e;return t.split(Zu).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Mb=e=>e.isThemeGetter,Ab=(e,t)=>t?e.map(([n,r])=>{const o=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,l])=>[t+i,l])):a);return[n,o]}):e,Lb=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,i)=>{n.set(a,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let i=n.get(a);if(i!==void 0)return i;if((i=r.get(a))!==void 0)return o(a,i),i},set(a,i){n.has(a)?n.set(a,i):o(a,i)}}},H0="!",Hb=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],a=t.length,i=l=>{const c=[];let u=0,h=0,f;for(let w=0;w<l.length;w++){let g=l[w];if(u===0){if(g===o&&(r||l.slice(w,w+a)===t)){c.push(l.slice(h,w)),h=w+a;continue}if(g==="/"){f=w;continue}}g==="["?u++:g==="]"&&u--}const d=c.length===0?l:l.substring(h),v=d.startsWith(H0),p=v?d.substring(1):d,x=f&&f>h?f-h:void 0;return{modifiers:c,hasImportantModifier:v,baseClassName:p,maybePostfixModifierPosition:x}};return n?l=>n({className:l,parseClassName:i}):i},Ib=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Ob=e=>({cache:Lb(e.cacheSize),parseClassName:Hb(e),...Tb(e)}),_b=/\s+/,Db=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(_b);let l="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{modifiers:h,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:v}=n(u);let p=!!v,x=r(p?d.substring(0,v):d);if(!x){if(!p){l=u+(l.length>0?" "+l:l);continue}if(x=r(d),!x){l=u+(l.length>0?" "+l:l);continue}p=!1}const w=Ib(h).join(":"),g=f?w+H0:w,y=g+x;if(a.includes(y))continue;a.push(y);const b=o(x,p);for(let j=0;j<b.length;++j){const N=b[j];a.push(g+N)}l=u+(l.length>0?" "+l:l)}return l};function Fb(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=I0(t))&&(r&&(r+=" "),r+=n);return r}const I0=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=I0(e[r]))&&(n&&(n+=" "),n+=t);return n};function zb(e,...t){let n,r,o,a=i;function i(c){const u=t.reduce((h,f)=>f(h),e());return n=Ob(u),r=n.cache.get,o=n.cache.set,a=l,l(c)}function l(c){const u=r(c);if(u)return u;const h=Db(c,n);return o(c,h),h}return function(){return a(Fb.apply(null,arguments))}}const me=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},O0=/^\[(?:([a-z-]+):)?(.+)\]$/i,$b=/^\d+\/\d+$/,Bb=new Set(["px","full","screen"]),Wb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ub=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Vb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Yb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Gb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Zt=e=>Wr(e)||Bb.has(e)||$b.test(e),yn=e=>gs(e,"length",t1),Wr=e=>!!e&&!Number.isNaN(Number(e)),yl=e=>gs(e,"number",Wr),Ts=e=>!!e&&Number.isInteger(Number(e)),qb=e=>e.endsWith("%")&&Wr(e.slice(0,-1)),Z=e=>O0.test(e),vn=e=>Wb.test(e),Qb=new Set(["length","size","percentage"]),Kb=e=>gs(e,Qb,_0),Xb=e=>gs(e,"position",_0),Zb=new Set(["image","url"]),Jb=e=>gs(e,Zb,r1),e1=e=>gs(e,"",n1),Ps=()=>!0,gs=(e,t,n)=>{const r=O0.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},t1=e=>Ub.test(e)&&!Vb.test(e),_0=()=>!1,n1=e=>Yb.test(e),r1=e=>Gb.test(e),s1=()=>{const e=me("colors"),t=me("spacing"),n=me("blur"),r=me("brightness"),o=me("borderColor"),a=me("borderRadius"),i=me("borderSpacing"),l=me("borderWidth"),c=me
vendor: 12,276 bytes, line 385
385("contrast"),u=me("grayscale"),h=me("hueRotate"),f=me("invert"),d=me("gap"),v=me("gradientColorStops"),p=me("gradientColorStopPositions"),x=me("inset"),w=me("margin"),g=me("opacity"),y=me("padding"),b=me("saturate"),j=me("scale"),N=me("sepia"),S=me("skew"),E=me("space"),C=me("translate"),T=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto",Z,t],O=()=>[Z,t],Y=()=>["",Zt,yn],D=()=>["auto",Wr,Z],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],_=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",Z],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[Wr,Z];return{cacheSize:500,separator:":",theme:{colors:[Ps],spacing:[Zt,yn],blur:["none","",vn,Z],brightness:B(),borderColor:[e],borderRadius:["none","","full",vn,Z],borderSpacing:O(),borderWidth:Y(),contrast:B(),grayscale:R(),hueRotate:B(),invert:R(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[qb,yn],inset:A(),margin:A(),opacity:B(),padding:O(),saturate:B(),scale:B(),sepia:R(),skew:B(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",Z]}],container:["container"],columns:[{columns:[vn]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...q(),Z]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ts,Z]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Z]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Ts,Z]}],"grid-cols":[{"grid-cols":[Ps]}],"col-start-end":[{col:["auto",{span:["full",Ts,Z]},Z]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[Ps]}],"row-start-end":[{row:["auto",{span:[Ts,Z]},Z]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Z]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Z,t]}],"min-w":[{"min-w":[Z,t,"min","max","fit"]}],"max-w":[{"max-w":[Z,t,"none","full","min","max","fit","prose",{screen:[vn]},vn]}],h:[{h:[Z,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Z,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Z,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Z,t,"auto","min","max","fit"]}],"font-size":[{text:["base",vn,yn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yl]}],"font-family":[{font:[Ps]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Z]}],"line-clamp":[{"line-clamp":["none",Wr,yl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Zt,Z]}],"list-image":[{"list-image":["none",Z]}],"list-style-type":[{list:["none","disc","decimal",Z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Zt,yn]}],"underline-offset":[{"underline-offset":["auto",Zt,Z]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),Xb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Kb]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Jb]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:W()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[Zt,Z]}],"outline-w":[{outline:[Zt,yn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Zt,yn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",vn,e1]}],"shadow-color":[{shadow:[Ps]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[..._(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":_()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",vn,Z]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Z]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",Z]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",Z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[Ts,Z]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Z]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}
vendor: 4,941 bytes, line 385
385],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Zt,yn,yl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},o1=zb(s1);function ke(...e){return o1(S0(e))}const a1=Xw,D0=m.forwardRef(({className:e,...t},n)=>s.jsx(y0,{ref:n,className:ke("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));D0.displayName=y0.displayName;const i1=ji("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"}}),F0=m.forwardRef(({className:e,variant:t,...n},r)=>s.jsx(v0,{ref:r,className:ke(i1({variant:t}),e),...n}));F0.displayName=v0.displayName;const l1=m.forwardRef(({className:e,...t},n)=>s.jsx(j0,{ref:n,className:ke("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}));l1.displayName=j0.displayName;const z0=m.forwardRef(({className:e,...t},n)=>s.jsx(N0,{ref:n,className:ke("absolute right-2 top-2 rounded-md p-1 text-foreground
385/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:s.jsx(Ro,{className:"h-4 w-4"})}));z0.displayName=N0.displayName;const $0=m.forwardRef(({className:e,...t},n)=>s.jsx(w0,{ref:n,className:ke("text-sm font-semibold",e),...t}));$0.displayName=w0.displayName;const B0=m.forwardRef(({className:e,...t},n)=>s.jsx(b0,{ref:n,className:ke("text-sm opacity-90",e),...t}));B0.displayName=b0.displayName;function c1(){const{toasts:e}=zu();return s.jsxs(a1,{children:[e.map(function({id:t,title:n,description:r,action:o,...a}){return s.jsxs(F0,{...a,children:[s.jsxs("div",{className:"grid gap-1",children:[n&&s.jsx($0,{children:n}),r&&s.jsx(B0,{children:r})]}),o,s.jsx(z0,{})]},t)}),s.jsx(D0,{})]})}var Bh=["light","dark"],u1="(prefers-color-scheme: dark)",d1=m.createContext(void 0),h1={setTheme:e=>{},themes:[]},f1=()=>{var e;return(e=m.useContext(d1))!=null?e:h1};m.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:a,value:i,attrs:l,nonce:c})=>{let u=a==="system",h=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(p=>`'${p}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=o?Bh.includes(a)&&a?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${a}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",d=(p,x=!1,w=!0)=>{let g=i?i[p]:p,y=x?p+"|| ''":`'${g}'`,b="";return o&&w&&!x&&Bh.includes(p)&&(b+=`d.style.colorScheme = '${p}';`),n==="class"?x||g?b+=`c.add(${y})`:b+="null":g&&(b+=`d[s](n,${y})`),b},v=e?`!function(){${h}${d(e)}}()`:r?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${u1}',m=window.matchMedia(t);if(m.media!==t||m.matches){${d("dark")}}else{${d("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${d(i?"x[e]":"e",!0)}}${u?"":"else{"+d(a,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${d(i?"x[e]":"e",!0)}}else{${d(a,!1,!1)};}${f}}catch(t){}}();`;return m.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:v}})});var m1=e=>{switch(e){case"success":return x1;case"info":return v1;case"warning":return y1;case"error":return w1;default:return null}},p1=Array(12).fill(0),g1=({visible:e})=>F.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},F.createElement("div",{className:"sonner-spinner"},p1.map((t,n)=>F.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),x1=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),y1=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),v1=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),w1=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),b1=()=>{let[e,t]=F.useState(document.hidden);return F.useEffect(()=>{let n=()=>{t(document.hidden)};
385return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Tc=1,j1=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Tc++,a=this.toasts.find(l=>l.id===o),i=e.dismissible===void 0?!0:e.dismissible;return a?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:i,title:n}):l):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
385this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0;return r.then(async a=>{if(k1(a)&&!a.ok){o=!1;let i=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,l=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description;this.create({id:n,type:"error",message:i,description:l})}else if(t.success!==void 0){o=!1;let i=typeof t.success=="function"?await t.success(a):t.success,l=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"success",message:i,description:l})}}).catch(async a=>{if(t.error!==void 0){o=!1;let i=typeof t.error=="function"?await t.error(a):t.error,l=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"error",message:i,description:l})}}).finally(()=>{var a;o&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Tc++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},ot=new j1,N1=(e,t)=>{let n=(t==null?void 0:t.id)||Tc++;return ot.addToast({title:e,...t,id:n}),n},k1=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",S1=N1,C1=()=>ot.toasts,Lt=Object.assign(S1,{success:ot.success,info:ot.info,warning:ot.warning,error:ot.error,custom:ot.custom,message:ot.message,promise:ot.promise,dismiss:ot.dismiss,loading:ot.loading},{getHistory:C1});function E1(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}E1(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
385left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
385:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
386`);function ta(e){return e.label!==void 0}var T1=3,P1="32px",R1=4e3,M1=356,A1=14,L1=20,H1=200;function I1(...e){return e.filter(Boolean).join(" ")}var O1=e=>{var t,n,r,o,a,i,l,c,u,h;let{invert:f,toast:d,unstyled:v,interacting:p,setHeights:x,visibleToasts:w,heights:g,index:y,toasts:b,expanded:j,removeToast:N,defaultRichColors:S,closeButton:E,style:C,cancelButtonStyle:T,actionButtonStyle:P,className:A="",descriptionClassName:O="",duration:Y,position:D,gap:q,loadingIcon:W,expandByDefault:_,classNames:k,icons:R,closeButtonAriaLabel:$="Close toast",pauseWhenPageIsHidden:B,cn:G}=e,[Q,se]=F.useState(!1),[Pe,oe]=F.useState(!1),[rt,kt]=F.useState(!1),[Dt,K]=F.useState(!1),[ae,ce]=F.useState(0),[Ke,Xt]=F.useState(0),Ao=F.useRef(null),pn=F.useRef(null),Di=y===0,Fi=y+1<=w,Ae=d.type,br=d.dism
386issible!==!1,Cx=d.className||"",Ex=d.descriptionClassName||"",Lo=F.useMemo(()=>g.findIndex(X=>X.toastId===d.id)||0,[g,d.id]),Tx=F.useMemo(()=>{var X;return(X=d.closeButton)!=null?X:E},[d.closeButton,E]),xd=F.useMemo(()=>d.duration||Y||R1,[d.duration,Y]),zi=F.useRef(0),jr=F.useRef(0),yd=F.useRef(0),Nr=F.useRef(null),[vd,Px]=D.split("-"),wd=F.useMemo(()=>g.reduce((X,fe,ue)=>ue>=Lo?X:X+fe.height,0),[g,Lo]),bd=b1(),Rx=d.invert||f,$i=Ae==="loading";jr.current=F.useMemo(()=>Lo*q+wd,[Lo,wd]),F.useEffect(()=>{se(!0)},[]),F.useLayoutEffect(()=>{if(!Q)return;let X=pn.current,fe=X.style.height;X.style.height="auto";let ue=X.getBoundingClientRect().height;X.style.height=fe,Xt(ue),x(Ft=>Ft.find(zt=>zt.toastId===d.id)?Ft.map(zt=>zt.toastId===d.id?{...zt,height:ue}:zt):[{toastId:d.id,height:ue,position:d.position},...Ft])},[Q,d.title,d.description,x,d.id]);let gn=F.useCallback(()=>{oe(!0),ce(jr.current),x(X=>X.filter(fe=>fe.toastId!==d.id)),setTimeout(()=>{N(d)},H1)},[d,N,x,jr]);F.useEffect(()=>{if(d.promise&&Ae==="loading"||d.duration===1/0||d.type==="loading")return;let X,fe=xd;return j||p||B&&bd?(()=>{if(yd.current<zi.current){let ue=new Date().getTime()-zi.current;fe=fe-ue}yd.current=new Date().getTime()})():fe!==1/0&&(zi.current=new Date().getTime(),X=setTimeout(()=>{var ue;(ue=d.onAutoClose)==null||ue.call(d,d),gn()},fe)),()=>clearTimeout(X)},[j,p,_,d,xd,gn,d.promise,Ae,B,bd]),F.useEffect(()=>{let X=pn.current;if(X){let fe=X.getBoundingClientRect().height;return Xt(fe),x(ue=>[{toastId:d.id,height:fe,position:d.position},...ue]),()=>x(ue=>ue.filter(Ft=>Ft.toastId!==d.id))}},[x,d.id]),F.useEffect(()=>{d.delete&&gn()},[gn,d.delete]);function Mx(){return R!=null&&R.loading?F.createElement("div",{className:"sonner-loader","data-visible":Ae==="loading"},R.loading):W?F.createElement("div",{className:"sonner-loader","data-visible":Ae==="loading"},W):F.createElement(g1,{visible:Ae==="loading"})}return F.createElement("li",{"aria-live":d.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:pn,className:G(A,Cx,k==null?void 0:k.toast,(t=d==null?void 0:d.classNames)==null?void 0:t.toast,k==null?void 0:k.default,k==null?void 0:k[Ae],(n=d==null?void 0:d.classNames)==null?void 0:n[Ae]),"data-sonner-toast":"","data-rich-colors":(r=d.richColors)!=null?r:S,"data-styled":!(d.jsx||d.unstyled||v),"data-mounted":Q,"data-promise":!!d.promise,"data-removed":Pe,"data-visible":Fi,"data-y-position":vd,"data-x-position":Px,"data-index":y,"data-front":Di,"data-swiping":rt,"data-dismissible":br,"data-type":Ae,"data-invert":Rx,"data-swipe-out":Dt,"data-expanded":!!(j||_&&Q),style:{"--index":y,"--toasts-before":y,"--z-index":b.length-y,"--offset":`${Pe?ae:jr.current}px`,"--initial-height":_?"auto":`${Ke}px`,...C,...d.style},onPointerDown:X=>{$i||!br||(Ao.current=new Date,ce(jr.current),X.target.setPointerCapture(X.pointerId),X.target.tagName!=="BUTTON"&&(kt(!0),Nr.current={x:X.clientX,y:X.clientY}))},onPointerUp:()=>{var X,fe,ue,Ft;if(Dt||!br)return;Nr.current=null;let zt=Number(((X=pn.current)==null?void 0:X.style.getPropertyValue("--swipe-amount").replace("px",""))||0),Ho=new Date().getTime()-((fe=Ao.current)==null?void 0:fe.getTime()),Ax=Math.abs(zt)/Ho;if(Math.abs(zt)>=L1||Ax>.11){ce(jr.current),(ue=d.onDismiss)==null||ue.call(d,d),gn(),K(!0);return}(Ft=pn.current)==null||Ft.style.setProperty("--swipe-amount","0px"),kt(!1)},onPointerMove:X=>{var fe;if(!Nr.current||!br)return;let ue=X.clientY-Nr.current.y,Ft=X.clientX-Nr.current.x,zt=(vd==="top"?Math.min:Math.max)(0,ue),Ho=X.pointerType==="touch"?10:2;Math.abs(zt)>Ho?(fe=pn.current)==null||fe.style.setProperty("--swipe-amount",`${ue}px`):Math.abs(Ft)>Ho&&(Nr.current=null)}},Tx&&!d.jsx?F.createElement("button",{"aria-label":$,"data-disabled":$i,"data-close-button":!0,onClick:$i||!br?()=>{}:()=>{var X;gn(),(X=d.onDismiss)==null||X.call(d,d)},className:G(k==null?void 0:k.closeButton,(o=d==null?void 0:d.classNames)==null?void 0:o.closeButton)},F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},F.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),F.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,d.jsx||F.isValidElement(d.title)?d.jsx||d.title:F.createElement(F.Fragment,null,Ae||d.icon||d.promise?F.createElement("div",{"data-icon":"",className:G(k==null?void 0:k.icon,(a=d==null?void 0:d.classNames)==null?void 0:a.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Mx():null,d.type!=="loading"?d.icon||(
386R==null?void 0:R[Ae])||m1(Ae):null):null,F.createElement("div",{"data-content":"",className:G(k==null?void 0:k.content,(i=d==null?void 0:d.classNames)==null?void 0:i.content)},F.createElement("div",{"data-title":"",className:G(k==null?void 0:k.title,(l=d==null?void 0:d.classNames)==null?void 0:l.title)},d.title),d.description?F.createElement("div",{"data-description":"",className:G(O,Ex,k==null?void 0:k.description,(c=d==null?void 0:d.classNames)==null?void 0:c.description)},d.description):null),F.isValidElement(d.cancel)?d.cancel:d.cancel&&ta(d.cancel)?F.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||T,onClick:X=>{var fe,ue;ta(d.cancel)&&br&&((ue=(fe=d.cancel).onClick)==null||ue.call(fe,X),gn())},className:G(k==null?void 0:k.cancelButton,(u=d==null?void 0:d.classNames)==null?void 0:u.cancelButton)},d.cancel.label):null,F.isValidElement(d.action)?d.action:d.action&&ta(d.action)?F.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||P,onClick:X=>{var fe,ue;ta(d.action)&&(X.defaultPrevented||((ue=(fe=d.action).onClick)==null||ue.call(fe,X),gn()))},className:G(k==null?void 0:k.actionButton,(h=d==null?void 0:d.classNames)==null?void 0:h.actionButton)},d.action.label):null))};function Wh(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var _1=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:o,closeButton:a,className:i,offset:l,theme:c="light",richColors:u,duration:h,style:f,visibleToasts:d=T1,toastOptions:v,dir:p=Wh(),gap:x=A1,loadingIcon:w,icons:g,containerAriaLabel:y="Notifications",pauseWhenPageIsHidden:b,cn:j=I1}=e,[N,S]=F.useState([]),E=F.useMemo(()=>Array.from(new Set([n].concat(N.filter(B=>B.position).map(B=>B.position)))),[N,n]),[C,T]=F.useState([]),[P,A]=F.useState(!1),[O,Y]=F.useState(!1),[D,q]=F.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),W=F.useRef(null),_=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),k=F.useRef(null),R=F.useRef(!1),$=F.useCallback(B=>{var G;(G=N.find(Q=>Q.id===B.id))!=null&&G.delete||ot.dismiss(B.id),S(Q=>Q.filter(({id:se})=>se!==B.id))},[N]);return F.useEffect(()=>ot.subscribe(B=>{if(B.dismiss){S(G=>G.map(Q=>Q.id===B.id?{...Q,delete:!0}:Q));return}setTimeout(()=>{Kp.flushSync(()=>{S(G=>{let Q=G.findIndex(se=>se.id===B.id);return Q!==-1?[...G.slice(0,Q),{...G[Q],...B},...G.slice(Q+1)]:[B,...G]})})})}),[]),F.useEffect(()=>{if(c!=="system"){q(c);return}c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?q("dark"):q("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:B})=>
386{q(B?"dark":"light")})},[c]),F.useEffect(()=>{N.length<=1&&A(!1)},[N]),F.useEffect(()=>{let B=G=>{var Q,se;r.every(Pe=>G[Pe]||G.code===Pe)&&(A(!0),(Q=W.current)==null||Q.focus()),G.code==="Escape"&&(document.activeElement===W.current||(se=W.current)!=null&&se.contains(document.activeElement))&&A(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[r]),F.useEffect(()=>{if(W.current)return()=>{k.current&&(k.current.focus({preventScroll:!0}),k.current=null,R.current=!1)}},[W.current]),N.length?F.createElement("section",{"aria-label":`${y} ${_}`,tabIndex:-1},E.map((B,G)=>{var Q;let[se,Pe]=B.split("-");return F.createElement("ol",{key:B,dir:p==="auto"?Wh():p,tabIndex:-1,ref:W,className:i,"data-sonner-toaster":!0,"data-theme":D,"data-y-position":se,"data-x-position":Pe,style:{"--front-toast-height":`${((Q=C[0])==null?void 0:Q.height)||0}px`,"--offset":typeof l=="number"?`${l}px`:l||P1,"--width":`${M1}px`,"--gap":`${x}px`,...f},onBlur:oe=>{R.current&&!oe.currentTarget.contains(oe.relatedTarget)&&(R.current=!1,k.current&&(k.current.focus({preventScroll:!0}),k.current=null))},onFocus:oe=>{oe.target instanceof HTMLElement&&oe.target.dataset.dismissible==="false"||R.current||(R.current=!0,k.current=oe.relatedTarget)},onMouseEnter:()=>A(!0),onMouseMove:()=>A(!0),onMouseLeave:()=>{O||A(!1)},onPointerDown:oe=>{oe.target instanceof HTMLElement&&oe.target.dataset.dismissible==="false"||Y(!0)},onPointerUp:()=>Y(!1)},N.filter(oe=>!oe.position&&G===0||oe.position===B).map((oe,rt)=>{var kt,Dt;return F.createElement(O1,{key:oe.id,icons:g,index:rt,toast:oe,defaultRichColors:u,duration:(kt=v==null?void 0:v.duration)!=null?kt:h,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:t,visibleToasts:d,closeButton:(Dt=v==null?void 0:v.closeButton)!=null?Dt:a,interacting:O,position:B,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:$,toasts:N.filter(K=>K.position==oe.position),heights:C.filter(K=>K.position==oe.position),setHeights:T,expandByDefault:o,gap:x,loadingIcon:w,expanded:P,pauseWhenPageIsHidden:b,cn:j})}))})):null};const D1=({...e})=>{const{theme:t="system"}=f1();return s.jsx(_1,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var F1=Gf.useId||(()=>{}),z1=0;function $1(e){const[t,n]=m.useState(F1());return Un(()=>{n(r=>r??String(z1++))},[e]),t?`radix-${t}`:""}const B1=["top","right","bottom","left"],Vn=Math.min,it=Math.max,Ga=Math.round,na=Math.floor,Yn=e=>({x:e,y:e}),W1={left:"right",right:"left",bottom:"top",top:"bottom"},U1={start:"end",end:"start"};function Pc(e,t,n){return it(e,Vn(t,n))}function hn(e,t){return typeof e=="function"?e(t):e}function fn(e){return e.split("-")[0]}function xs(e){return e.split("-")[1]}function Ju(e){return e==="x"?"y":"x"}function ed(e){return e==="y"?"height":"width"}function Gn(e){return["top","bottom"].includes(fn(e))?"y":"x"}function td(e){return Ju(Gn(e))}function V1(e,t,n){n===void 0&&(n=!1);const r=xs(e),o=td(e),a=ed(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=qa(i)),[i,qa(i)]}function Y1(e){const t=qa(e);return[Rc(e),t,Rc(t)]}function Rc(e){return e.replace(/start|end/g,t=>U1[t])}function G1(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function q1(e,t,n,r){const o=xs(e);let a=G1(fn(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(Rc)))),a}function qa(e){return e.replace(/left|right|bottom|top/g,t=>W1[t])}function Q1(e){return{top:0,right:0,bottom:0,left:0,...e}}function W0(e){return typeof e!="number"?Q1(e):{top:e,right:e,bottom:e,left:e}}function Qa(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}
vendor: 10,253 bytes, line 386
386function Uh(e,t,n){let{reference:r,floating:o}=e;const a=Gn(t),i=td(t),l=ed(i),c=fn(t),u=a==="y",h=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[l]/2-o[l]/2;let v;switch(c){case"top":v={x:h,y:r.y-o.height};break;case"bottom":v={x:h,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:f};break;case"left":v={x:r.x-o.width,y:f};break;default:v={x:r.x,y:r.y}}switch(xs(t)){case"start":v[i]-=d*(n&&u?-1:1);break;case"end":v[i]+=d*(n&&u?-1:1);break}return v}const K1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:f}=Uh(u,r,c),d=r,v={},p=0;for(let x=0;x<l.length;x++){const{name:w,fn:g}=l[x],{x:y,y:b,data:j,reset:N}=await g({x:h,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:v,rects:u,platform:i,elements:{reference:e,floating:t}});h=y??h,f=b??f,v={...v,[w]:{...v[w],...j}},N&&p<=50&&(p++,typeof N=="object"&&(N.placement&&(d=N.placement),N.rects&&(u=N.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):N.rects),{x:h,y:f}=Uh(u,d,c)),x=-1)}return{x:h,y:f,placement:d,strategy:o,middlewareData:v}};async function po(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:d=!1,padding:v=0}=hn(t,e),p=W0(v),w=l[d?f==="floating"?"reference":"floating":f],g=Qa(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(w)))==null||n?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:h,strategy:c})),y=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),j=await(a.isElement==null?void 0:a.isElement(b))?await(a.getScale==null?void 0:a.getScale(b))||{x:1,y:1}:{x:1,y:1},N=Qa(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:b,strategy:c}):y);return{top:(g.top-N.top+p.top)/j.y,bottom:(N.bottom-g.bottom+p.bottom)/j.y,left:(g.left-N.left+p.left)/j.x,right:(N.right-g.right+p.right)/j.x}}const X1=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:l,middlewareData:c}=t,{element:u,padding:h=0}=hn(e,t)||{};if(u==null)return{};const f=W0(h),d={x:n,y:r},v=td(o),p=ed(v),x=await i.getDimensions(u),w=v==="y",g=w?"top":"left",y=w?"bottom":"right",b=w?"clientHeight":"clientWidth",j=a.reference[p]+a.reference[v]-d[v]-a.floating[p],N=d[v]-a.reference[v],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let E=S?S[b]:0;(!E||!await(i.isElement==null?void 0:i.isElement(S)))&&(E=l.floating[b]||a.floating[p]);const C=j/2-N/2,T=E/2-x[p]/2-1,P=Vn(f[g],T),A=Vn(f[y],T),O=P,Y=E-x[p]-A,D=E/2-x[p]/2+C,q=Pc(O,D,Y),W=!c.arrow&&xs(o)!=null&&D!==q&&a.reference[p]/2-(D<O?P:A)-x[p]/2<0,_=W?D<O?D-O:D-Y:0;return{[v]:d[v]+_,data:{[v]:q,centerOffset:D-q-_,...W&&{alignmentOffset:_}},reset:W}}}),Z1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:h=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:x=!0,...w}=hn(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const g=fn(o),y=Gn(l),b=fn(l)===l,j=await(c.isRTL==null?void 0:c.isRTL(u.floating)),N=d||(b||!x?[qa(l)]:Y1(l)),S=p!=="none";!d&&S&&N.push(...q1(l,x,p,j));const E=[l,...N],C=await po(t,w),T=[];let P=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&T.push(C[g]),f){const D=V1(o,i,j);T.push(C[D[0]],C[D[1]])}if(P=[...P,{placement:o,overflows:T}],!T.every(D=>D<=0)){var A,O;const D=(((A=a.flip)==null?void 0:A.index)||0)+1,q=E[D];if(q)return{data:{index:D,overflows:P},reset:{placement:q}};let W=(O=P.filter(_=>_.overflows[0]<=0).sort((_,k)=>_.overflows[1]-k.overflows[1])[0])==null?void 0:O.placement;if(!W)switch(v){case"bestFit":{var Y;const _=(Y=P.filter(k=>{if(S){const R=Gn(k.placement);return R===y||R==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(R=>R>0).reduce((R,$)=>R+$,0)]).sort((k,R)=>k[1]-R[1])[0])==null?void 0:Y[0];_&&(W=_);break}case"initialPlacement":W=l;break}if(o!==W)return{reset:{placement:W}}}return{}}}};function Vh(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yh(e){return B1.some(t=>e[t]>=0)}const J1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=hn(e,t);switch(r){case"referenceHidden":{const a=await po(t,{...o,elementContext:"reference"}),i=Vh(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Yh(i)}}}case"escaped":{const a=await po(t,{...o,altBoundary:!0}),i=Vh(a,n.floating);return{data:{escapedOffsets:i,escaped:Yh(i)}}}default:return{}}}}};async function e2(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=fn(n),l=xs(n),c=Gn(n)==="y",u=["left","top"].includes(i)?-1:1,h=a&&c?-1:1,f=hn(t,e);let{mainAxis:d,crossAxis:v,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof p=="number"&&(v=l==="end"?p*-1:p),c?{x:v*h,y:d*u}:{x:d*u,y:v*h}}const t2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:l}=t,c=await e2(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},n2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:w=>{let{x:g,y}=w;return{x:g,y}}},...c}=hn(e,t),u={x:n,y:r},h=await po(t,c),f=Gn(fn(o)),d=Ju(f);let v=u[d],p=u[f];if(a){const w=d==="y"?"top":"left",g=d==="y"?"bottom":"right",y=v+h[w],b=v-h[g];v=Pc(y,v,b)}if(i){const w=f==="y"?"top":"left",g=f==="y"?"bottom":"right",y=p+h[w],b=p-h[g];p=Pc(y,p,b)}const x=l.fn({...t,[d]:v,[f]:p});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[d]:a,[f]:i}}}}}},r2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=hn(e,t),h={x:n,y:r},f=Gn(o),d=Ju(f);let v=h[d],p=h[f];const x=hn(l,t),w=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(c){const b=d==="y"?"height":"width",j=a.reference[d]-a.floating[b]+w.mainAxis,N=a.reference[d]+a.reference[b]-w.mainAxis;v<j?v=j:v>N&&(v=N)}if(u){var g,y;const b=d==="y"?"width":"height",j=["top","left"].includes(fn(o)),N=a.reference[f]-a.floating[b]+(j&&((g=i.offset)==null?void 0:g[f])||0)+(j?0:w.crossAxis),S=a.reference[f]+a.reference[b]+(j?0:((y=i.offset)==null?void 0:y[f])||0)-(j?w.crossAxis:0);p<N?p=N:p>S&&(p=S)}return{[d]:v,[f]:p}}}},s2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:l}=t,{apply:c=()=>{},...u}=hn(e,t),h=await po(t,u),f=fn(o),d=xs(o),v=Gn(o)==="y",{width:p,height:x}=a.floating;let w,g;f==="top"||f==="bottom"?(w=f,g=d===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(g=f,w=d==="end"?"top":"bottom");const y=x-h.top-h.bottom,b=p-h.left-h.right,j=Vn(x-h[w],y),N=Vn(p-h[g],b),S=!t.middlewareData.shift;let E=j,C=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=y),S&&!d){const P=it(h.left,0),A=it(h.right,0),O=it(h.top,0),Y=it(h.bottom,0);v?C=p-2*(P!==0||A!==0?P+A:it(h.left,h.right)):E=x-2*(O!==0||Y!==0?O+Y:it(h.top,h.bottom))}await c({...t,availableWidth:C,availableHeight:E});const T=await i.getDimensions(l.floating);return p!==T.width||x!==T.height?{reset:{rects:!0}}:{}}}};function Si(){return typeof window<"u"}function ys(e){return U0(e)?(e.nodeName||"").toLowerCase():"#document"}function ht(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Kt(e){var t;return(t=(U0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function U0(e){return Si()?e instanceof Node||e instanceof ht(e).Node:!1}function Ot(e){return Si()?e instanceof Element||e instanceof ht(e).Element:!1}function Qt(e){return Si()?e instanceof HTMLElement||e instanceof ht(e).HTMLElement:!1}function Gh(e){return!Si()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ht(e).ShadowRoot}function Mo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=_t(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function o2(e){return["table","td","th"].includes(ys(e))}function Ci(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function nd(e){const t=rd(),n=Ot(e)?_t(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function a2(e){let t=qn(e);for(;Qt(t)&&!us(t);){if(nd(t))return t;if(Ci(t))return null;t=qn(t)}return null}function rd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function us(e){return["html","body","#document"].includes(ys(e))}function _t(e){return ht(e).getComputedStyle(e)}function Ei(e){return Ot(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qn(e){if(ys(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Gh(e)&&e.host||Kt(e);return Gh(t)?t.host:t}function V0(e){const t=qn(e);return us(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qt(t)&&Mo(t)?t:V0(t)}function go(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=V0(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=ht(o);if(a){const l=Mc(i);
vendor: 4,595 bytes, line 386
386return t.concat(i,i.visualViewport||[],Mo(o)?o:[],l&&n?go(l):[])}return t.concat(o,go(o,[],n))}function Mc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Y0(e){const t=_t(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Qt(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=Ga(n)!==a||Ga(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function sd(e){return Ot(e)?e:e.contextElement}function Ur(e){const t=sd(e);if(!Qt(t))return Yn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Y0(t);let i=(a?Ga(n.width):n.width)/r,l=(a?Ga(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const i2=Yn(0);function G0(e){const t=ht(e);return!rd()||!t.visualViewport?i2:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function l2(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ht(e)?!1:t}function yr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=sd(e);let i=Yn(1);t&&(r?Ot(r)&&(i=Ur(r)):i=Ur(e));const l=l2(a,n,r)?G0(a):Yn(0);let c=(o.left+l.x)/i.x,u=(o.top+l.y)/i.y,h=o.width/i.x,f=o.height/i.y;if(a){const d=ht(a),v=r&&Ot(r)?ht(r):r;let p=d,x=Mc(p);for(;x&&r&&v!==p;){const w=Ur(x),g=x.getBoundingClientRect(),y=_t(x),b=g.left+(x.clientLeft+parseFloat(y.paddingLeft))*w.x,j=g.top+(x.clientTop+parseFloat(y.paddingTop))*w.y;c*=w.x,u*=w.y,h*=w.x,f*=w.y,c+=b,u+=j,p=ht(x),x=Mc(p)}}return Qa({width:h,height:f,x:c,y:u})}function c2(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=Kt(r),l=t?Ci(t.floating):!1;if(r===i||l&&a)return n;let c={scrollLeft:0,scrollTop:0},u=Yn(1);const h=Yn(0),f=Qt(r);if((f||!f&&!a)&&((ys(r)!=="body"||Mo(i))&&(c=Ei(r)),Qt(r))){const d=yr(r);u=Ur(r),h.x=d.x+r.clientLeft,h.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+h.x,y:n.y*u.y-c.scrollTop*u.y+h.y}}function u2(e){return Array.from(e.getClientRects())}function Ac(e,t){const n=Ei(e).scrollLeft;return t?t.left+n:yr(Kt(e)).left+n}function d2(e){const t=Kt(e),n=Ei(e),r=e.ownerDocument.body,o=it(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=it(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Ac(e);const l=-n.scrollTop;return _t(r).direction==="rtl"&&(i+=it(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}function h2(e,t){const n=ht(e),r=Kt(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,l=0,c=0;if(o){a=o.width,i=o.height;const u=rd();(!u||u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:l,y:c}}function f2(e,t){const n=yr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Qt(e)?Ur(e):Yn(1),i=e.clientWidth*a.x,l=e.clientHeight*a.y,c=o*a.x,u=r*a.y;return{width:i,height:l,x:c,y:u}}function qh(e,t,n){let r;if(t==="viewport")r=h2(e,n);else if(t==="document")r=d2(Kt(e));else if(Ot(t))r=f2(t,n);else{const o=G0(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Qa(r)}function q0(e,t){const n=qn(e);return n===t||!Ot(n)||us(n)?!1:_t(n).position==="fixed"||q0(n,t)}function m2(e,t){const n=t.get(e);if(n)return n;let r=go(e,[],!1).filter(l=>Ot(l)&&ys(l)!=="body"),o=null;const a=_t(e).position==="fixed";let i=a?qn(e):e;for(;Ot(i)&&!us(i);){const l=_t(i),c=nd(i);!c&&l.position==="fixed"&&(o=null),(a?!c&&!o:!c&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Mo(i)&&!c&&q0(e,i))?r=r.filter(h=>h!==i):o=l,i=qn(i)}return t.set(e,r),r}function p2(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Ci(t)?[]:m2(t,this._c):[].concat(n),r],l=i[0],c=i.reduce((u,h)=>{const f=qh(t,h,o);return u.top=it(f.top,u.top),u.right=Vn(f.right,u.right),u.bottom=Vn(f.bottom,u.bottom),u.left=it(f.left,u.left),u},qh(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function g2(e){const{width:t,height:n}=Y0(e);return{width:t,height:n}}function x2(e,t,n){const r=Qt(t),o=Kt(t),a=n==="fixed",i=yr(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const c=Yn(0);if(r||!r&&!a)if((ys(t)!=="body"||Mo(o))&&(l=Ei(t)),r){const v=yr(t,!0,a,t);c.x=v.x+t.clientLeft,c.y=v.y+t.clientTop}else o&&(c.x=Ac(o));let u=0,h=0;if(o&&!r&&!a){const v=o.getBoundingClientRect();h=v.top+l.scrollTop,u=v.left+l.scrollLeft-Ac(o,v)}const f=i.left+l.scrollLeft-c.x-u,d=i.top+l.scrollTop-c.y-h;return{x:f,y:d,width:i.width,height:i.height}}function vl(e){return _t(e).position==="static"}function Qh(e,t){if(!Qt(e)||_t(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Kt(e)===n&&(n=n.ownerDocument.body),n}function Q0(e,t){const n=ht(e);
vendor: 8,985 bytes, line 386
386if(Ci(e))return n;if(!Qt(e)){let o=qn(e);for(;o&&!us(o);){if(Ot(o)&&!vl(o))return o;o=qn(o)}return n}let r=Qh(e,t);for(;r&&o2(r)&&vl(r);)r=Qh(r,t);return r&&us(r)&&vl(r)&&!nd(r)?n:r||a2(e)||n}const y2=async function(e){const t=this.getOffsetParent||Q0,n=this.getDimensions,r=await n(e.floating);return{reference:x2(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function v2(e){return _t(e).direction==="rtl"}const w2={convertOffsetParentRelativeRectToViewportRelativeRect:c2,getDocumentElement:Kt,getClippingRect:p2,getOffsetParent:Q0,getElementRects:y2,getClientRects:u2,getDimensions:g2,getScale:Ur,isElement:Ot,isRTL:v2};function b2(e,t){let n=null,r;const o=Kt(e);function a(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),a();const{left:u,top:h,width:f,height:d}=e.getBoundingClientRect();if(l||t(),!f||!d)return;const v=na(h),p=na(o.clientWidth-(u+f)),x=na(o.clientHeight-(h+d)),w=na(u),y={rootMargin:-v+"px "+-p+"px "+-x+"px "+-w+"px",threshold:it(0,Vn(1,c))||1};let b=!0;function j(N){const S=N[0].intersectionRatio;if(S!==c){if(!b)return i();S?i(!1,S):r=setTimeout(()=>{i(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(j,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(j,y)}n.observe(e)}return i(!0),a}function j2(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=sd(e),h=o||a?[...u?go(u):[],...go(t)]:[];h.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),a&&g.addEventListener("resize",n)});const f=u&&l?b2(u,n):null;let d=-1,v=null;i&&(v=new ResizeObserver(g=>{let[y]=g;y&&y.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var b;(b=v)==null||b.observe(t)})),n()}),u&&!c&&v.observe(u),v.observe(t));let p,x=c?yr(e):null;c&&w();function w(){const g=yr(e);x&&(g.x!==x.x||g.y!==x.y||g.width!==x.width||g.height!==x.height)&&n(),x=g,p=requestAnimationFrame(w)}return n(),()=>{var g;h.forEach(y=>{o&&y.removeEventListener("scroll",n),a&&y.removeEventListener("resize",n)}),f==null||f(),(g=v)==null||g.disconnect(),v=null,c&&cancelAnimationFrame(p)}}const N2=t2,k2=n2,S2=Z1,C2=s2,E2=J1,Kh=X1,T2=r2,P2=(e,t,n)=>{const r=new Map,o={platform:w2,...n},a={...o.platform,_c:r};return K1(e,t,{...o,platform:a})};var wa=typeof document<"u"?m.useLayoutEffect:m.useEffect;function Ka(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ka(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Ka(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function K0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xh(e,t){const n=K0(e);return Math.round(t*n)/n}function wl(e){const t=m.useRef(e);return wa(()=>{t.current=e}),t}function R2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[h,f]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,v]=m.useState(r);Ka(d,r)||v(r);const[p,x]=m.useState(null),[w,g]=m.useState(null),y=m.useCallback(k=>{k!==S.current&&(S.current=k,x(k))},[]),b=m.useCallback(k=>{k!==E.current&&(E.current=k,g(k))},[]),j=a||p,N=i||w,S=m.useRef(null),E=m.useRef(null),C=m.useRef(h),T=c!=null,P=wl(c),A=wl(o),O=wl(u),Y=m.useCallback(()=>{if(!S.current||!E.current)return;const k={placement:t,strategy:n,middleware:d};A.current&&(k.platform=A.current),P2(S.current,E.current,k).then(R=>{const $={...R,isPositioned:O.current!==!1};D.current&&!Ka(C.current,$)&&(C.current=$,Co.flushSync(()=>{f($)}))})},[d,t,n,A,O]);wa(()=>{u===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,f(k=>({...k,isPositioned:!1})))},[u]);const D=m.useRef(!1);wa(()=>(D.current=!0,()=>{D.current=!1}),[]),wa(()=>{if(j&&(S.current=j),N&&(E.current=N),j&&N){if(P.current)return P.current(j,N,Y);Y()}},[j,N,Y,P,T]);const q=m.useMemo(()=>({reference:S,floating:E,setReference:y,setFloating:b}),[y,b]),W=m.useMemo(()=>({reference:j,floating:N}),[j,N]),_=m.useMemo(()=>{const k={position:n,left:0,top:0};if(!W.floating)return k;const R=Xh(W.floating,h.x),$=Xh(W.floating,h.y);return l?{...k,transform:"translate("+R+"px, "+$+"px)",...K0(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:$}},[n,l,W.floating,h.x,h.y]);return m.useMemo(()=>({...h,update:Y,refs:q,elements:W,floatingStyles:_}),[h,Y,q,W,_])}const M2=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Kh({element:r.current,padding:o}).fn(n):{}:r?Kh({element:r,padding:o}).fn(n):{}}}},A2=(e,t)=>({...N2(e),options:[e,t]}),L2=(e,t)=>({...k2(e),options:[e,t]}),H2=(e,t)=>({...T2(e),options:[e,t]}),I2=(e,t)=>({...S2(e),options:[e,t]}),O2=(e,t)=>({...C2(e),options:[e,t]}),_2=(e,t)=>({...E2(e),options:[e,t]}),D2=(e,t)=>({...M2(e),options:[e,t]});var F2="Arrow",X0=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return s.jsx(he.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});X0.displayName=F2;var z2=X0;function $2(e,t=[]){let n=[];function r(a,i){const l=m.createContext(i),c=n.length;n=[...n,i];function u(f){const{scope:d,children:v,...p}=f,x=(d==null?void 0:d[e][c])||l,w=m.useMemo(()=>p,Object.values(p));return s.jsx(x.Provider,{value:w,children:v})}function h(f,d){const v=(d==null?void 0:d[e][c])||l,p=m.useContext(v);if(p)return p;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return u.displayName=a+"Provider",[u,h]}const o=()=>{const a=n.map(i=>m.createContext(i));return function(l){const c=(l==null?void 0:l[e])||a;return m.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,B2(o,...t)]}function B2(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(a)[`__scope${u}`];return{...l,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function od(e){const[t,n]=m.useState(void 0);return Un(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,l;if("borderBoxSize"in a){const c=a.borderBoxSize,u=Array.isArray(c)?c[0]:c;i=u.inlineSize,l=u.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Z0="Popper",[J0,eg]=$2(Z0),[E5,tg]=J0(Z0),ng="PopperAnchor",rg=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=tg(ng,n),i=m.useRef(null),l=Te(t,i);return m.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:s.jsx(he.div,{...o,ref:l})});rg.displayName=ng;var ad="PopperContent",[W2,U2]=J0(ad),sg=m.forwardRef((e,t)=>{var rt,kt,Dt,K,ae,ce;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:h=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:v="optimized",onPlaced:p,...x}=e,w=tg(ad,n),[g,y]=m.useState(null),b=Te(t,Ke=>y(Ke)),[j,N]=m.useState(null),S=od(j),E=(S==null?void 0:S.width)??0,C=(S==null?void 0:S.height)??0,T=r+(a!=="center"?"-"+a:""),P=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},A=Array.isArray(u)?u:[u],O=A.length>0,Y={padding:P,boundary:A.filter(Y2),altBoundary:O},{refs:D,floatingStyles:q,placement:W,isPositioned:_,middlewareData:k}=R2({strategy:"fixed",placement:T,whileElementsMounted:(...Ke)=>j2(...Ke,{animationFrame:v==="always"}),elements:{reference:w.anchor},middleware:[A2({mainAxis:o+C,alignmentAxis:i}),c&&L2({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?H2():void 0,...Y}),c&&I2({...Y}),O2({...Y,apply:({elements:Ke,rects:Xt,availableWidth:Ao,availableHeight:pn})=>{const{width:Di,height:Fi}=Xt.reference,Ae=Ke.floating.style;Ae.setProperty("--radix-popper-available-width",`${Ao}px`),Ae.setProperty("--radix-popper-available-height",`${pn}px`),Ae.setProperty("--radix-popper-anchor-width",`${Di}px`),Ae.setProperty("--radix-popper-anchor-height",`${Fi}px`)}}),j&&D2({element:j,padding:l}),G2({arrowWidth:E,arrowHeight:C}),d&&_2({strategy:"referenceHidden",...Y})]}),[R,$]=ig(W),B=It(p);Un(()=>{_&&(B==null||B())}
vendor: 8,518 bytes, line 386
386,[_,B]);const G=(rt=k.arrow)==null?void 0:rt.x,Q=(kt=k.arrow)==null?void 0:kt.y,se=((Dt=k.arrow)==null?void 0:Dt.centerOffset)!==0,[Pe,oe]=m.useState();return Un(()=>{g&&oe(window.getComputedStyle(g).zIndex)},[g]),s.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:_?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Pe,"--radix-popper-transform-origin":[(K=k.transformOrigin)==null?void 0:K.x,(ae=k.transformOrigin)==null?void 0:ae.y].join(" "),...((ce=k.hide)==null?void 0:ce.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(W2,{scope:n,placedSide:R,onArrowChange:N,arrowX:G,arrowY:Q,shouldHideArrow:se,children:s.jsx(he.div,{"data-side":R,"data-align":$,...x,ref:b,style:{...x.style,animation:_?void 0:"none"}})})})});sg.displayName=ad;var og="PopperArrow",V2={top:"bottom",right:"left",bottom:"top",left:"right"},ag=m.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=U2(og,r),i=V2[a.placedSide];return s.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:s.jsx(z2,{...o,ref:n,style:{...o.style,display:"block"}})})});ag.displayName=og;function Y2(e){return e!==null}var G2=e=>({name:"transformOrigin",options:e,fn(t){var w,g,y;const{placement:n,rects:r,middlewareData:o}=t,i=((w=o.arrow)==null?void 0:w.centerOffset)!==0,l=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[u,h]=ig(n),f={start:"0%",center:"50%",end:"100%"}[h],d=(((g=o.arrow)==null?void 0:g.x)??0)+l/2,v=(((y=o.arrow)==null?void 0:y.y)??0)+c/2;let p="",x="";return u==="bottom"?(p=i?f:`${d}px`,x=`${-c}px`):u==="top"?(p=i?f:`${d}px`,x=`${r.floating.height+c}px`):u==="right"?(p=`${-c}px`,x=i?f:`${v}px`):u==="left"&&(p=`${r.floating.width+c}px`,x=i?f:`${v}px`),{data:{x:p,y:x}}}});function ig(e){const[t,n="center"]=e.split("-");return[t,n]}var q2=rg,Q2=sg,K2=ag,[Ti,T5]=Eo("Tooltip",[eg]),id=eg(),lg="TooltipProvider",X2=700,Zh="tooltip.open",[Z2,cg]=Ti(lg),ug=e=>{const{__scopeTooltip:t,delayDuration:n=X2,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[i,l]=m.useState(!0),c=m.useRef(!1),u=m.useRef(0);return m.useEffect(()=>{const h=u.current;return()=>window.clearTimeout(h)},[]),s.jsx(Z2,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:m.useCallback(()=>{window.clearTimeout(u.current),l(!1)},[]),onClose:m.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>l(!0),r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:m.useCallback(h=>{c.current=h},[]),disableHoverableContent:o,children:a})};ug.displayName=lg;var dg="Tooltip",[P5,Pi]=Ti(dg),Lc="TooltipTrigger",J2=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Pi(Lc,n),a=cg(Lc,n),i=id(n),l=m.useRef(null),c=Te(t,l,o.onTriggerChange),u=m.useRef(!1),h=m.useRef(!1),f=m.useCallback(()=>u.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),s.jsx(q2,{asChild:!0,...i,children:s.jsx(he.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:ne(e.onPointerMove,d=>{d.pointerType!=="touch"&&!h.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),h.current=!0)}),onPointerLeave:ne(e.onPointerLeave,()=>{o.onTriggerLeave(),h.current=!1}),onPointerDown:ne(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ne(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ne(e.onBlur,o.onClose),onClick:ne(e.onClick,o.onClose)})})});J2.displayName=Lc;var ej="TooltipPortal",[R5,tj]=Ti(ej,{forceMount:void 0}),ds="TooltipContent",hg=m.forwardRef((e,t)=>{const n=tj(ds,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=Pi(ds,e.__scopeTooltip);return s.jsx(xi,{present:r||i.open,children:i.disableHoverableContent?s.jsx(fg,{side:o,...a,ref:t}):s.jsx(nj,{side:o,...a,ref:t})})}),nj=m.forwardRef((e,t)=>{const n=Pi(ds,e.__scopeTooltip),r=cg(ds,e.__scopeTooltip),o=m.useRef(null),a=Te(t,o),[i,l]=m.useState(null),{trigger:c,onClose:u}=n,h=o.current,{onPointerInTransitChange:f}=r,d=m.useCallback(()=>{l(null),f(!1)},[f]),v=m.useCallback((p,x)=>{const w=p.currentTarget,g={x:p.clientX,y:p.clientY},y=aj(g,w.getBoundingClientRect()),b=ij(g,y),j=lj(x.getBoundingClientRect()),N=uj([...b,...j]);l(N),f(!0)},[f]);return m.useEffect(()=>()=>d(),[d]),m.useEffect(()=>{if(c&&h){const p=w=>v(w,h),x=w=>v(w,c);return c.addEventListener("pointerleave",p),h.addEventListener("pointerleave",x),()=>{c.removeEventListener("pointerleave",p),h.removeEventListener("pointerleave",x)}}},[c,h,v,d]),m.useEffect(()=>{if(i){const p=x=>{const w=x.target,g={x:x.clientX,y:x.clientY},y=(c==null?void 0:c.contains(w))||(h==null?void 0:h.contains(w)),b=!cj(g,i);y?d():b&&(d(),u())};return document.addEventListener("pointermove",p),()=>document.removeEventListener("pointermove",p)}},[c,h,i,u,d]),s.jsx(fg,{...e,ref:a})}),[rj,sj]=Ti(dg,{isInside:!1}),fg=m.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...l}=e,c=Pi(ds,n),u=id(n),{onClose:h}=c;return m.useEffect(()=>(document.addEventListener(Zh,h),()=>document.removeEventListener(Zh,h)),[h]),m.useEffect(()=>{if(c.trigger){const f=d=>{const v=d.target;v!=null&&v.contains(c.trigger)&&h()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,h]),s.jsx(Bu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:h,children:s.jsxs(Q2,{"data-state":c.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[s.jsx(Jp,{children:r}),s.jsx(rj,{scope:n,isInside:!0,children:s.jsx(Lw,{id:c.contentId,role:"tooltip",children:o||r})})]})})});hg.displayName=ds;var mg="TooltipArrow",oj=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=id(n);return sj(mg,n).isInside?null:s.jsx(K2,{...o,...r,ref:t})});oj.displayName=mg;function aj(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ij(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function lj(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function cj(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const l=t[a].x,c=t[a].y,u=t[i].x,h=t[i].y;c>r!=h>r&&n<(u-l)*(r-c)/(h-c)+l&&(o=!o)}return o}function uj(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),dj(t)}function dj(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var hj=ug,pg=hg;const fj=hj,mj=m.forwardRef(({className:e,sideOffset:t=4,...n},r)=>s.jsx(pg,{ref:r,sideOffset:t,className:ke("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
386de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));mj.displayName=pg.displayName;var Ri=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(){}},Mi=typeof window>"u"||"Deno"in globalThis;function Et(){}function pj(e,t){return typeof e=="function"?e(t):e}function gj(e){return typeof e=="number"&&e>=0&&e!==1/0}function xj(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Jh(e,t){return typeof e=="function"?e(t):e}function yj(e,t){return typeof e=="function"?e(t):e}function ef(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:i,stale:l}=e;if(i){if(r){if(t.queryHash!==ld(i,t.options))return!1}else if(!yo(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||a&&!a(t))}function tf(e,t){const{exact:n,status:r,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(xo(t.options.mutationKey)!==xo(a))return!1}else if(!yo(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function ld(e,t){return((t==null?void 0:t.queryKeyHashFn)||xo)(e)}function xo(e){return JSON.stringify(e,(t,n)=>Hc(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function yo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!yo(e[n],t[n])):!1}function gg(e,t){if(e===t)return e;const n=nf(e)&&nf(t);if(n||Hc(e)&&Hc(t)){const r=n?e:Object.keys(e),o=r.length,a=n?t:Object.keys(t),i=a.length,l=n?[]:{};let c=0;for(let u=0;u<i;u++){const h=n?u:a[u];(!n&&r.includes(h)||n)&&e[h]===void 0&&t[h]===void 0?(l[h]=void 0,c++):(l[h]=gg(e[h],t[h]),l[h]===e[h]&&e[h]!==void 0&&c++)}return o===i&&c===o?e:l}return t}function nf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Hc(e){if(!rf(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!rf(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function rf(e){return Object.prototype.toString.call(e)==="[object Object]"}function vj(e){return new Promise(t=>{setTimeout(t,e)})}function wj(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?gg(e,t):t}function bj(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function jj(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var cd=Symbol();function xg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===cd?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var sr,Cn,Yr,Tf,Nj=(Tf=class extends Ri{constructor(){super();ie(this,sr);ie(this,Cn);ie(this,Yr);J(this,Yr,t=>{if(!Mi&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){M(this,Cn)||this.setEventListener(M(this,Yr))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,Cn))==null||t.call(this),J(this,Cn,void 0))}setEventListener(t){var n;J(this,Yr,t),(n=M(this,Cn))==null||n.call(this),J(this,Cn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){M(this,sr)!==t&&(J(this,sr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof M(this,sr)=="boolean"?M(this,sr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},sr=new WeakMap,Cn=new WeakMap,Yr=new WeakMap,Tf),yg=new Nj,Gr,En,qr,Pf,kj=(Pf=class extends Ri{constructor(){super();ie(this,Gr,!0);ie(this,En);ie(this,qr);J(this,qr,t=>{if(!Mi&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){M(this,En)||this.setEventListener(M(this,qr))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,En))==null||t.call(this),J(this,En,void 0))}setEventListener(t){var n;J(this,qr,t),(n=M(this,En))==null||n.call(this),J(this,En,t(this.setOnline.bind(this)))}setOnline(t){M(this,Gr)!==t&&(J(this,Gr,t),this.listeners.forEac
vendor: 21,156 bytes, line 386
386h(r=>{r(t)}))}isOnline(){return M(this,Gr)}},Gr=new WeakMap,En=new WeakMap,qr=new WeakMap,Pf),Xa=new kj;function Sj(){let e,t;const n=new Promise((o,a)=>{e=o,t=a});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Cj(e){return Math.min(1e3*2**e,3e4)}function vg(e){return(e??"online")==="online"?Xa.isOnline():!0}var wg=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function bl(e){return e instanceof wg}function bg(e){let t=!1,n=0,r=!1,o;const a=Sj(),i=x=>{var w;r||(d(new wg(x)),(w=e.abort)==null||w.call(e))},l=()=>{t=!0},c=()=>{t=!1},u=()=>yg.isFocused()&&(e.networkMode==="always"||Xa.isOnline())&&e.canRun(),h=()=>vg(e.networkMode)&&e.canRun(),f=x=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,x),o==null||o(),a.resolve(x))},d=x=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,x),o==null||o(),a.reject(x))},v=()=>new Promise(x=>{var w;o=g=>{(r||u())&&x(g)},(w=e.onPause)==null||w.call(e)}).then(()=>{var x;o=void 0,r||(x=e.onContinue)==null||x.call(e)}),p=()=>{if(r)return;let x;const w=n===0?e.initialPromise:void 0;try{x=w??e.fn()}catch(g){x=Promise.reject(g)}Promise.resolve(x).then(f).catch(g=>{var S;if(r)return;const y=e.retry??(Mi?0:3),b=e.retryDelay??Cj,j=typeof b=="function"?b(n,g):b,N=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,g);if(t||!N){d(g);return}n++,(S=e.onFail)==null||S.call(e,n,g),vj(j).then(()=>u()?void 0:v()).then(()=>{t?d(g):p()})})};return{promise:a,cancel:i,continue:()=>(o==null||o(),a),cancelRetry:l,continueRetry:c,canStart:h,start:()=>(h()?p():v().then(p),a)}}function Ej(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=l=>setTimeout(l,0);const a=l=>{t?e.push(l):o(()=>{n(l)})},i=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||i()}return c},batchCalls:l=>(...c)=>{a(()=>{l(...c)})},schedule:a,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Ye=Ej(),or,Rf,jg=(Rf=class{constructor(){ie(this,or)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),gj(this.gcTime)&&J(this,or,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Mi?1/0:5*60*1e3))}clearGcTimeout(){M(this,or)&&(clearTimeout(M(this,or)),J(this,or,void 0))}},or=new WeakMap,Rf),Qr,Kr,xt,$e,vo,ar,Tt,Jt,Mf,Tj=(Mf=class extends jg{constructor(t){super();ie(this,Tt);ie(this,Qr);ie(this,Kr);ie(this,xt);ie(this,$e);ie(this,vo);ie(this,ar);J(this,ar,!1),J(this,vo,t.defaultOptions),this.setOptions(t.options),this.observers=[],J(this,xt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,J(this,Qr,Rj(this.options)),this.state=t.state??M(this,Qr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=M(this,$e))==null?void 0:t.promise}setOptions(t){this.options={...M(this,vo),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&M(this,xt).remove(this)}setData(t,n){const r=wj(this.state.data,t,this.options);return De(this,Tt,Jt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){De(this,Tt,Jt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=M(this,$e))==null?void 0:r.promise;return(o=M(this,$e))==null||o.cancel(t),n?n.then(Et).catch(Et):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(M(this,Qr))}isActive(){return this.observers.some(t=>yj(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===cd||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!xj(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,$e))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,$e))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),M(this,xt).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,$e)&&(M(this,ar)?M(this,$e).cancel({revert:!0}):M(this,$e).cancelRetry()),this.scheduleGc()),M(this,xt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||De(this,Tt,Jt).call(this,{type:"invalidate"})}fetch(t,n){var c,u,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(M(this,$e))return M(this,$e).continueRetry(),M(this,$e).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(J(this,ar,!0),r.signal)})},a=()=>{const f=xg(this.options,n),d={queryKey:this.queryKey,meta:this.meta};return o(d),J(this,ar,!1),this.options.persister?this.options.persister(f,d,this):f(d)},i={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};o(i),(c=this.options.behavior)==null||c.onFetch(i,this),J(this,Kr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=i.fetchOptions)==null?void 0:u.meta))&&De(this,Tt,Jt).call(this,{type:"fetch",meta:(h=i.fetchOptions)==null?void 0:h.meta});const l=f=>{var d,v,p,x;bl(f)&&f.silent||De(this,Tt,Jt).call(this,{type:"error",error:f}),bl(f)||((v=(d=M(this,xt).config).onError)==null||v.call(d,f,this),(x=(p=M(this,xt).config).onSettled)==null||x.call(p,this.state.data,f,this)),this.scheduleGc()};return J(this,$e,bg({initialPromise:n==null?void 0:n.initialPromise,fn:i.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var d,v,p,x;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(w){l(w);return}(v=(d=M(this,xt).config).onSuccess)==null||v.call(d,f,this),(x=(p=M(this,xt).config).onSettled)==null||x.call(p,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,d)=>{De(this,Tt,Jt).call(this,{type:"failed",failureCount:f,error:d})},onPause:()=>{De(this,Tt,Jt).call(this,{type:"pause"})},onContinue:()=>{De(this,Tt,Jt).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),M(this,$e).start()}},Qr=new WeakMap,Kr=new WeakMap,xt=new WeakMap,$e=new WeakMap,vo=new WeakMap,ar=new WeakMap,Tt=new WeakSet,Jt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Pj(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return bl(o)&&o.revert&&M(this,Kr)?{...M(this,Kr),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ye.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),M(this,xt).notify({query:this,type:"updated",action:t})})},Mf);function Pj(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Rj(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Wt,Af,Mj=(Af=class extends Ri{constructor(t={}){super();ie(this,Wt);this.config=t,J(this,Wt,new Map)}build(t,n,r){const o=n.queryKey,a=n.queryHash??ld(o,n);let i=this.get(a);return i||(i=new Tj({cache:this,queryKey:o,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){M(this,Wt).has(t.queryHash)||(M(this,Wt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=M(this,Wt).get(t.queryHash);n&&(t.destroy(),n===t&&M(this,Wt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ye.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return M(this,Wt).get(t)}getAll(){return[...M(this,Wt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ef(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ef(t,r)):n}notify(t){Ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ye.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ye.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Wt=new WeakMap,Af),Ut,Ue,ir,Vt,bn,Lf,Aj=(Lf=class extends jg{constructor(t){super();ie(this,Vt);ie(this,Ut);ie(this,Ue);ie(this,ir);this.mutationId=t.mutationId,J(this,Ue,t.mutationCache),J(this,Ut,[]),this.state=t.state||Lj(),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,Ut).includes(t)||(M(this,Ut).push(t),this.clearGcTimeout(),M(this,Ue).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){J(this,Ut,M(this,Ut).filter(n=>n!==t)),this.scheduleGc(),M(this,Ue).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){M(this,Ut).length||(this.state.status==="pending"?this.scheduleGc():M(this,Ue).remove(this))}continue(){var t;return((t=M(this,ir))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,a,i,l,c,u,h,f,d,v,p,x,w,g,y,b,j,N,S,E;J(this,ir,bg({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(C,T)=>{De(this,Vt,bn).call(this,{type:"failed",failureCount:C,error:T})},onPause:()=>{De(this,Vt,bn).call(this,{type:"pause"})},onContinue:()=>{De(this,Vt,bn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>M(this,Ue).canRun(this)}));const n=this.state.status==="pending",r=!M(this,ir).canStart();try{if(!n){De(this,Vt,bn).call(this,{type:"pending",variables:t,isPaused:r}),await((a=(o=M(this,Ue).config).onMutate)==null?void 0:a.call(o,t,this));const T=await((l=(i=this.options).onMutate)==null?void 0:l.call(i,t));T!==this.state.context&&De(this,Vt,bn).call(this,{type:"pending",context:T,variables:t,isPaused:r})}const C=await M(this,ir).start();return await((u=(c=M(this,Ue).config).onSuccess)==null?void 0:u.call(c,C,t,this.state.context,this)),await((f=(h=this.options).onSuccess)==null?void 0:f.call(h,C,t,this.state.context)),await((v=(d=M(this,Ue).config).onSettled)==null?void 0:v.call(d,C,null,this.state.variables,this.state.context,this)),await((x=(p=this.options).onSettled)==null?void 0:x.call(p,C,null,t,this.state.context)),De(this,Vt,bn).call(this,{type:"success",data:C}),C}catch(C){try{throw await((g=(w=M(this,Ue).config).onError)==null?void 0:g.call(w,C,t,this.state.context,this)),await((b=(y=this.options).onError)==null?void 0:b.call(y,C,t,this.state.context)),await((N=(j=M(this,Ue).config).onSettled)==null?void 0:N.call(j,void 0,C,this.state.variables,this.state.context,this)),await((E=(S=this.options).onSettled)==null?void 0:E.call(S,void 0,C,t,this.state.context)),C}finally{De(this,Vt,bn).call(this,{type:"error",error:C})}}finally{M(this,Ue).runNext(this)}}},Ut=new WeakMap,Ue=new WeakMap,ir=new WeakMap,Vt=new WeakSet,bn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ye.batch(()=>{M(this,Ut).forEach(r=>{r.onMutationUpdate(t)}),M(this,Ue).notify({mutation:this,type:"updated",action:t})})},Lf);function Lj(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var st,wo,Hf,Hj=(Hf=class extends Ri{constructor(t={}){super();ie(this,st);ie(this,wo);this.config=t,J(this,st,new Map),J(this,wo,Date.now())}build(t,n,r){const o=new Aj({mutationCache:this,mutationId:++Io(this,wo)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){const n=ra(t),r=M(this,st).get(n)??[];r.push(t),M(this,st).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=ra(t);if(M(this,st).has(n)){const o=(r=M(this,st).get(n))==null?void 0:r.filter(a=>a!==t);o&&(o.length===0?M(this,st).delete(n):M(this,st).set(n,o))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=M(this,st).get(ra(t)))==null?void 0:r.find(o=>o.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=M(this,st).get(ra(t)))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Ye.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...M(this,st).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>tf(n,r))}findAll(t={}){return this.getAll().filter(n=>tf(t,n))}notify(t){Ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ye.batch(()=>Promise.all(t.map(n=>n.continue().catch(Et))))}},st=new WeakMap,wo=new WeakMap,Hf);function ra(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function sf(e){return{onFetch:(t,n)=>{var h,f,d,v,p;const r=t.options,o=(d=(f=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:f.fetchMore)==null?void 0:d.direction,a=((v=t.state.data)==null?void 0:v.pages)||[],i=((p=t.state.data)==null?void 0:p.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let x=!1;const w=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?x=!0:t.signal.addEventListener("abort",()=>{x=!0}),t.signal)})},g=xg(t.options,t.fetchOptions),y=async(b,j,N)=>{if(x)return Promise.reject();if(j==null&&b.pages.length)return Promise.resolve(b);const S={queryKey:t.queryKey,pageParam:j,direction:N?"backward":"forward",meta:t.options.meta};w(S);const E=await g(S),{maxPages:C}=t.options,T=N?jj:bj;return{pages:T(b.pages,E,C),pageParams:T(b.pageParams,j,C)}};if(o&&a.length){const b=o==="backward",j=b?Ij:of,N={pages:a,pageParams:i},S=j(r,N);l=await y(N,S,b)}else{const b=e??a.length;do{const j=c===0?i[0]??r.initialPageParam:of(r,l);if(c>0&&j==null)break;l=await y(l,j),c++}while(c<b)}return l};t.options.persister?t.fetchFn=()=>{var x,w;return(w=(x=t.options).persister)==null?void 0:w.call(x,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function of(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Ij(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var be,Tn,Pn,Xr,Zr,Rn,Jr,es,If,Oj=(If=class{constructor(e={}){ie(this,be);ie(this,Tn);ie(this,Pn);ie(this,Xr);ie(this,Zr);ie(this,Rn);ie(this,Jr);ie(this,es);J(this,be,e.queryCache||new Mj),J(this,Tn,e.mutationCache||new Hj),J(this,Pn,e.defaultOptions||{}),J(this,Xr,new Map),J(this,Zr,new Map),J(this,Rn,0)}mount(){Io(this,Rn)._++,M(this,Rn)===1&&(J(this,Jr,yg.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,be).onFocus())})),J(this,es,Xa.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,be).onOnline())})))}unmount(){var e,t;Io(this,Rn)._--,M(this,Rn)===0&&((e=M(this,Jr))==null||e.call(this),J(this,Jr,void 0),(t=M(this,es))==null||t.call(this),J(this,es,void 0))}isFetching(e){return M(this,be).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return M(this,Tn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,be).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=M(this,be).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Jh(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return M(this,be).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=M(this,be).get(r.queryHash),a=o==null?void 0:o.state.data,i=pj(t,a);if(i!==void 0)return M(this,be).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Ye.batch(()=>M(this,be).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,be).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=M(this,be);Ye.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=M(this,be),r={type:"active",...e};return Ye.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Ye.batch(()=>M(this,be).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Et).catch(Et)}invalidateQueries(e={},t={}){return Ye.batch(()=>{if(M(this,be).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Ye.batch(()=>M(this,be).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let a=o.fetch(void 0,n);return n.throwOnError||(a=a.catch(Et)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(Et)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=M(this,be).build(this,t);return n.isStaleByTime(Jh(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Et).catch(Et)}fetchInfiniteQuery(e){return e.behavior=sf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Et).catch(Et)}ensureInfiniteQueryData(e){return e.behavior=sf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Xa.isOnline()?M(this,Tn).resumePausedMutations():Promise.resolve()}getQueryCache(){return M(this,be)}getMutationCache(){return M(this,Tn)}getDefaultOptions(){return M(this,Pn)}setDefaultOptions(e){J(this,Pn,e)}setQueryDefaults(e,t){M(this,Xr).set(xo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...M(this,Xr).values()];let n={};return t.forEach(r=>{yo(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){M(this,Zr).set(xo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...M(this,Zr).values()];let n={};return t.forEach(r=>{yo(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...M(this,Pn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ld(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===cd&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...M(this,Pn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){M(this,be).clear(),M(this,Tn).clear()}},be=new WeakMap,Tn=new WeakMap,Pn=new WeakMap,Xr=new WeakMap,Zr=ne
vendor: 5,241 bytes, lines 386-395
386w WeakMap,Rn=new WeakMap,Jr=new WeakMap,es=new WeakMap,If),_j=m.createContext(void 0),Dj=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),s.jsx(_j.Provider,{value:e,children:t}));/**
387 * @remix-run/router v1.20.0
388 *
389 * Copyright (c) Remix Software Inc.
390 *
391 * This source code is licensed under the MIT license found in the
392 * LICENSE.md file in the root directory of this source tree.
393 *
394 * @license MIT
395 */function Za(){return Za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Za.apply(this,arguments)}var Ln;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ln||(Ln={}));const af="popstate";function Fj(e){e===void 0&&(e={});function t(r,o){let{pathname:a,search:i,hash:l}=r.location;return Ic("",{pathname:a,search:i,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:kg(o)}return $j(t,n,null,e)}function nt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ng(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function zj(){return Math.random().toString(36).substr(2,8)}function lf(e,t){return{usr:e.state,key:e.key,idx:t}}function Ic(e,t,n,r){return n===void 0&&(n=null),Za({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ai(t):t,{state:n,key:t&&t.key||r||zj()})}function kg(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ai(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function $j(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,l=Ln.Pop,c=null,u=h();u==null&&(u=0,i.replaceState(Za({},i.state,{idx:u}),""));function h(){return(i.state||{idx:null}).idx}function f(){l=Ln.Pop;let w=h(),g=w==null?null:w-u;u=w,c&&c({action:l,location:x.location,delta:g})}function d(w,g){l=Ln.Push;let y=Ic(x.location,w,g);u=h()+1;let b=lf(y,u),j=x.createHref(y);try{i.pushState(b,"",j)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;o.location.assign(j)}a&&c&&c({action:l,location:x.location,delta:1})}function v(w,g){l=Ln.Replace;let y=Ic(x.location,w,g);u=h();let b=lf(y,u),j=x.createHref(y);i.replaceState(b,"",j),a&&c&&c({action:l,location:x.location,delta:0})}function p(w){let g=o.location.origin!=="null"?o.location.origin:o.location.href,y=typeof w=="string"?w:kg(w);return y=y.replace(/ $/,"%20"),nt(g,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,g)}let x={get action(){return l},get location(){return e(o,i)},listen(w){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(af,f),c=w,()=>{o.removeEventListener(af,f),c=null}},createHref(w){return t(o,w)},createURL:p,encodeLocation(w){let g=p(w);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:d,replace:v,go(w){return i.go(w)}};return x}var cf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(cf||(cf={}));function Bj(e,t,n){return n===void 0&&(n="/"),Wj(e,t,n,!1)}function Wj(e,t,n,r){let o=typeof t=="string"?Ai(t):t,a=Eg(o.pathname||"/",n);if(a==null)return null;let i=Sg(e);Uj(i);let l=null;for(let c=0;l==null&&c<i.length;++c){let u=tN(a);l=Jj(i[c],u,r)}return l}function Sg(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(a,i,l)=>{let c={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};c.relativePath.startsWith("/")&&(nt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=Vr([r,c.relativePath]),h=n.concat(c);a.children&&a.children.length>0&&(nt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Sg(a.children,t,h,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:Xj(u,a.index),routesMeta:h})};return e.forEach((a,i)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))o(a,i);else for(let c of Cg(a.path))o(a,i,c)}),t}function Cg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=Cg(r.join("/")),l=[];return l.push(...i.map(c=>c===""?a:[a,c].join("/"))),o&&l.push(...i),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function Uj(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Zj(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Vj=/^:[\w-]+$/,Yj=3,Gj=2,qj=1,Qj=10,Kj=-2,uf=e=>e==="*";function Xj(e,t){let n=e.split("/"),r=n.length;return n.some(uf)&&(r+=Kj),t&&(r+=Gj),n.filter(o=>!uf(o)).reduce((o,a)=>o+(Vj.test(a)?Yj:a===""?qj:Qj),r)}function Zj(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}
vendor: 4,478 bytes, lines 395-404
395function Jj(e,t,n){let{routesMeta:r}=e,o={},a="/",i=[];for(let l=0;l<r.length;++l){let c=r[l],u=l===r.length-1,h=a==="/"?t:t.slice(a.length)||"/",f=df({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},h),d=c.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=df({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},h)),!f)return null;Object.assign(o,f.params),i.push({params:o,pathname:Vr([a,f.pathname]),pathnameBase:nN(Vr([a,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(a=Vr([a,f.pathnameBase]))}return i}function df(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=eN(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((u,h,f)=>{let{paramName:d,isOptional:v}=h;if(d==="*"){let x=l[f]||"";i=a.slice(0,a.length-x.length).replace(/(.)\/+$/,"$1")}const p=l[f];return v&&!p?u[d]=void 0:u[d]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:i,pattern:e}}function eN(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ng(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function tN(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ng(!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 Eg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Vr=e=>e.join("/").replace(/\/\/+/g,"/"),nN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function rN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Tg=["post","put","patch","delete"];new Set(Tg);const sN=["get",...Tg];new Set(sN);/**
396 * React Router v6.27.0
397 *
398 * Copyright (c) Remix Software Inc.
399 *
400 * This source code is licensed under the MIT license found in the
401 * LICENSE.md file in the root directory of this source tree.
402 *
403 * @license MIT
404 */function Ja(){return Ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ja.apply(this,arguments)}const oN=m.createContext(null),aN=m.createContext(null),Pg=m.createContext(null),Li=m.createContext(null),Hi=m.createContext({outlet:null,matches:[],isDataRoute:!1}),Rg=m.createContext(null);function ud(){return m.useContext(Li)!=null}function Mg(){return ud()||nt(!1),m.useContext(Li).location}function iN(e,t){return lN(e,t)}function lN(e,t,n,r){ud()||nt(!1);let{navigator:o}=m.useContext(Pg),{matches:a}=m.useContext(Hi),i=a[a.length-1],l=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let u=Mg(),h;if(t){var f;let w=typeof t=="string"?Ai(t):t;c==="/"||(f=w.pathname)!=null&&f.startsWith(c)||nt(!1),h=w}else h=u;let d=h.pathname||"/",v=d;if(c!=="/"){let w=c.replace(/^\//,"").split("/");v="/"+d.replace(/^\//,"").split("/").slice(w.length).join("/")}let p=Bj(e,{pathname:v}),x=fN(p&&p.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:Vr([c,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?c:Vr([c,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),a,n,r);return t&&x?m.createElement(Li.Provider,{value:{location:Ja({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:Ln.Pop}},x):x}function cN(){let e=xN(),t=rN(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 m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application 
404Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:o},n):null,null)}const uN=m.createElement(cN,null);class dN extends m.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?m.createElement(Hi.Provider,{value:this.props.routeContext},m.createElement(Rg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hN(e){let{routeContext:t,match:n,children:r}=e,o=m.useContext(oN);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(Hi.Provider,{value:t},r)}function fN(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let h=i.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);h>=0||nt(!1),i=i.slice(0,Math.min(i.length,h+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h<i.length;h++){let f=i[h];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=h),f.route.id){let{loaderData:d,errors:v}=n,p=f.route.loader&&d[f.route.id]===void 0&&(!v||v[f.route.id]===void 0);if(f.route.lazy||p){c=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((h,f,d)=>{let v,p=!1,x=null,w=null;n&&(v=l&&f.route.id?l[f.route.id]:void 0,x=f.route.errorElement||uN,c&&(u<0&&d===0?(p=!0,w=null):u===d&&(p=!0,w=f.route.hydrateFallbackElement||null)));let g=t.concat(i.slice(0,d+1)),y=()=>{let b;return v?b=x:p?b=w:f.route.Component?b=m.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=h,m.createElement(hN,{match:f,routeContext:{outlet:h,matches:g,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?m.createElement(dN,{location:n.location,revalidation:n.revalidation,component:x,error:v,children:y(),routeC
vendor: 4,088 bytes, lines 404-413
404ontext:{outlet:null,matches:g,isDataRoute:!0}}):y()},null)}var Oc=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}(Oc||{});function mN(e){let t=m.useContext(aN);return t||nt(!1),t}function pN(e){let t=m.useContext(Hi);return t||nt(!1),t}function gN(e){let t=pN(),n=t.matches[t.matches.length-1];return n.route.id||nt(!1),n.route.id}function xN(){var e;let t=m.useContext(Rg),n=mN(Oc.UseRouteError),r=gN(Oc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function _c(e){nt(!1)}function yN(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ln.Pop,navigator:a,static:i=!1,future:l}=e;ud()&&nt(!1);let c=t.replace(/^\/*/,"/"),u=m.useMemo(()=>({basename:c,navigator:a,static:i,future:Ja({v7_relativeSplatPath:!1},l)}),[c,l,a,i]);typeof r=="string"&&(r=Ai(r));let{pathname:h="/",search:f="",hash:d="",state:v=null,key:p="default"}=r,x=m.useMemo(()=>{let w=Eg(h,c);return w==null?null:{location:{pathname:w,search:f,hash:d,state:v,key:p},navigationType:o}},[c,h,f,d,v,p,o]);return x==null?null:m.createElement(Pg.Provider,{value:u},m.createElement(Li.Provider,{children:n,value:x}))}function vN(e){let{children:t,location:n}=e;return iN(Dc(t),n)}new Promise(()=>{});function Dc(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,o)=>{if(!m.isValidElement(r))return;let a=[...t,o];if(r.type===m.Fragment){n.push.apply(n,Dc(r.props.children,a));return}r.type!==_c&&nt(!1),!r.props.index||!r.props.children||nt(!1);let i={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Dc(r.props.children,a)),n.push(i)}),n}/**
405 * React Router DOM v6.27.0
406 *
407 * Copyright (c) Remix Software Inc.
408 *
409 * This source code is licensed under the MIT license found in the
410 * LICENSE.md file in the root directory of this source tree.
411 *
412 * @license MIT
413 */const wN="6";try{window.__reactRouterVersion=wN}catch{}const bN="startTransition",hf=Gf[bN];function jN(e){let{basename:t,children:n,future:r,window:o}=e,a=m.useRef();a.current==null&&(a.current=Fj({window:o,v5Compat:!0}));let i=a.current,[l,c]=m.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},h=m.useCallback(f=>{u&&hf?hf(()=>c(f)):c(f)},[c,u]);return m.useLayoutEffect(()=>i.listen(h),[i,h]),m.createElement(yN,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:i,future:r})}var ff;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ff||(ff={}));var mf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(mf||(mf={}));const L=m.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:ke("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));L.displayName="Card";const He=m.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:ke("flex flex-col space-y-1.5 p-6",e),...t}));He.displayName="CardHeader";const Ie=m.forwardRef(({className:e,...t},n)=>s.jsx("h3",{ref:n,className:ke("text-2xl font-semibold leading-none tracking-tight",e),...t}));Ie.displayName="CardTitle";const NN=m.forwardRef(({className:e,...t},n)=>s.jsx("p",{ref:n,className:ke("text-sm text-muted-foreground",e),...t}));NN.displayName="CardDescription";const z=m.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:ke("p-6 pt-0",e),...t}));
413z.displayName="CardContent";const kN=m.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:ke("flex items-center p-6 pt-0",e),...t}));kN.displayName="CardFooter";const SN=ji("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),I=m.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const i=r?ho:"button";return s.jsx(i,{className:ke(SN({variant:t,size:n,className:e})),ref:a,...o})});I.displayName="Button";const CN=ji("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function te({className:e,variant:t,...n}){return s.jsx("div",{className:ke(CN({variant:t}),e),...n})}function EN(e,t=[]){let n=[];function r(a,i){const l=m.createContext(i),c=n.length;n=[...n,i];function u(f){const{scope:d,children:v,...p}=f,x=(d==null?void 0:d[e][c])||l,w=m.useMemo(()=>p,Object.values(p));return s.jsx(x.Provider,{value:w,children:v})}function h(f,d){const v=(d==null?void 0:d[e][c])||l,p=m.useContext(v);if(p)return p;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return u.displayName=a+"Provider",[u,h]}const o=()=>{const a=n.map(i=>m.createContext(i));return function(l){const c=(l==null?void 0:l[e])||a;return m.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,TN(o,...t)]}function TN(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(a)[`__scope${u}`];return{...l,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var dd="Progress",hd=100,[PN,M5]=EN(dd),[RN,MN]=PN(dd),Ag=m.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:a=AN,...i}=e;(o||o===0)&&!pf(o)&&console.error(LN(`${o}`,"Progress"));const l=pf(o)?o:hd;r!==null&&!gf(r,l)&&console.error(HN(`${r}`,"Progress"));const c=gf(r,l)?r:null,u=ei(c)?a(c,l):void 0;return s.jsx(RN,{scope:n,value:c,max:l,children:s.jsx(he.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":ei(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":Ig(c,l),"data-value":c??void 0,"data-max":l,...i,ref:t})})});Ag.displayName=dd;var Lg="ProgressIndicator",Hg=m.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=MN(Lg,n);return s.jsx(he.div,{"data-state":Ig(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});Hg.displayName=Lg;function AN(e,t){return`${Math.round(e/t*100)}%`}function Ig(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function ei(e){return typeof e=="number"}function pf(e){return ei(e)&&!isNaN(e)&&e>0}function gf(e,t){return ei(e)&&!isNaN(e)&&e<=t&&e>=0}function LN(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${hd}\`.`}function HN(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
414  - a positive number
415  - less than the value passed to \`max\` (or ${hd} if no \`max\` prop is set)
416  - \`null\` or \`undefined\` if the progress is indeterminate.
417
418Defaulting to \`null\`.`}var Og=Ag,IN=Hg;const Ii=m.forwardRef(({className:e,value:t,...n},r)=>s.jsx(Og,{ref:r,className:ke("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:s.jsx(IN,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Ii.displayName=Og.displayName;function _g(e,[t,n]){return Math.min(n,Math.max(t,e))}var ON=m.createContext(void 0);function fd(e){const t=m.useContext(ON);return e||t||"ltr"}function Dg(e){const t=m.useRef({value:e,previous:e});return m.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Fg=["PageUp","PageDown"],zg=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],$g={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},vs="Slider",[Fc,_N,DN]=$u(vs),[Bg,A5]=Eo(vs,[DN]),[FN,Oi]=Bg(vs),Wg=m.forwardRef((e,t)=>
418{const{name:n,min:r=0,max:o=100,step:a=1,orientation:i="horizontal",disabled:l=!1,minStepsBetweenThumbs:c=0,defaultValue:u=[r],value:h,onValueChange:f=()=>{},onValueCommit:d=()=>{},inverted:v=!1,form:p,...x}=e,w=m.useRef(new Set),g=m.useRef(0),b=i==="horizontal"?zN:$N,[j=[],N]=yi({prop:h,defaultProp:u,onChange:A=>{var Y;(Y=[...w.current][g.current])==null||Y.focus(),f(A)}}),S=m.useRef(j);function E(A){const O=YN(j,A);P(A,O)}function C(A){P(A,g.current)}function T(){const A=S.current[g.current];j[g.current]!==A&&d(j)}function P(A,O,{commit:Y}={commit:!1}){const D=KN(a),q=XN(Math.round((A-r)/a)*a+r,D),W=_g(q,[r,o]);N((_=[])=>{const k=UN(_,W,O);if(QN(k,c*a)){g.current=k.indexOf(W);const R=String(k)!==String(_);return R&&Y&&d(k),R?k:_}else return _})}return s.jsx(FN,{scope:e.__scopeSlider,name:n,disabled:l,min:r,max:o,valueIndexToChangeRef:g,thumbs:w.current,values:j,orientation:i,form:p,children:s.jsx(Fc.Provider,{scope:e.__scopeSlider,children:s.jsx(Fc.Slot,{scope:e.__scopeSlider,children:s.jsx(b,{"aria-disabled":l,"data-disabled":l?"":void 0,...x,ref:t,onPointerDown:ne(x.onPointerDown,()=>{l||(S.current=j)}),min:r,max:o,inverted:v,onSlideStart:l?void 0:E,onSlideMove:l?void 0:C,onSlideEnd:l?void 0:T,onHomeKeyDown:()=>!l&&P(r,0,{commit:!0}),onEndKeyDown:()=>!l&&P(o,j.length-1,{commit:!0}),onStepKeyDown:({event:A,direction:O})=>{if(!l){const q=Fg.includes(A.key)||A.shiftKey&&zg.includes(A.key)?10:1,W=g.current,_=j[W],k=a*q*O;P(_+k,W,{commit:!0})}}})})})})});Wg.displayName=vs;var[Ug,Vg]=Bg(vs,{startEdge:"left",endEdge:"right",size:"width",direction:1}),zN=m.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:a,onSlideStart:i,onSlideMove:l,onSlideEnd:c,onStepKeyDown:u,...h}=e,[f,d]=m.useState(null),v=Te(t,b=>d(b)),p=m.useRef(),x=fd(o),w=x==="ltr",g=w&&!a||!w&&a;function y(b){const j=p.current||f.getBoundingClientRect(),N=[0,j.width],E=md(N,g?[n,r]:[r,n]);return p.current=j,E(b-j.left)}return s.jsx(Ug,{scope:e.__scopeSlider,startEdge:g?"left":"right",endEdge:g?"right":"left",direction:g?1:-1,size:"width",children:s.jsx(Yg,{dir:x,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:b=>{const j=y(b.clientX);i==null||i(j)},onSlideMove:b=>{const j=y(b.clientX);l==null||l(j)},onSlideEnd:()=>{p.current=void 0,c==null||c()},onStepKeyDown:b=>{const N=$g[g?"from-left":"from-right"].includes(b.key);u==null||u({event:b,direction:N?-1:1})}})})}),$N=m.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:a,onSlideMove:i,onSlideEnd:l,onStepKeyDown:c,...u}=e,h=m.useRef(null),f=Te(t,h),d=m.useRef(),v=!o;function p(x){const w=d.current||h.current.getBoundingClientRect(),g=[0,w.height],b=md(g,v?[r,n]:[n,r]);return d.current=w,b(x-w.top)}return s.jsx(Ug,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:s.jsx(Yg,{"data-orientation":"vertical",...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:x=>{const w=p(x.clientY);a==null||a(w)},onSlideMove:x=>{const w=p(x.clientY);i==null||i(w)},onSlideEnd:()=>{d.current=void 0,l==null||l()},onStepKeyDown:x=>{const g=$g[v?"from-bottom":"from-top"].includes(x.key);c==null||c({event:x,direction:g?-1:1})}})})}),Yg=m.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:l,onStepKeyDown:c,...u}=e,h=Oi(vs,n);return s.jsx(he.span,{...u,ref:t,onKeyDown:ne(e.onKeyDown,f=>{f.key==="Home"?(i(f),f.preventDefault()):f.key==="End"?(l(f),f.preventDefault()):Fg.concat(zg).includes(f.key)&&(c(f),f.preventDefault())}),onPointerDown:ne(e.onPointerDown,f=>{const d=f.target;d.setPointerCapture(f.pointerId),f.preventDefault(),h.thumbs.has(d)?d.focus():r(f)}),onPointerMove:ne(e.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&o(f)}),onPointerUp:ne(e.onPointerUp,f=>{const d=f.target;d.hasPointerCapture(f.pointerId)&&(d.releasePointerCapture(f.pointerId),a(f))})})}),Gg="SliderTrack",qg=m.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Oi(Gg,n);return s.jsx(he.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});qg.displayName=Gg;var zc="SliderRange",Qg=m.forwardRef((e,t)=>
418{const{__scopeSlider:n,...r}=e,o=Oi(zc,n),a=Vg(zc,n),i=m.useRef(null),l=Te(t,i),c=o.values.length,u=o.values.map(d=>Xg(d,o.min,o.max)),h=c>1?Math.min(...u):0,f=100-Math.max(...u);return s.jsx(he.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:l,style:{...e.style,[a.startEdge]:h+"%",[a.endEdge]:f+"%"}})});Qg.displayName=zc;var $c="SliderThumb",Kg=m.forwardRef((e,t)=>{const n=_N(e.__scopeSlider),[r,o]=m.useState(null),a=Te(t,l=>o(l)),i=m.useMemo(()=>r?n().findIndex(l=>l.ref.current===r):-1,[n,r]);return s.jsx(BN,{...e,ref:a,index:i})}),BN=m.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...a}=e,i=Oi($c,n),l=Vg($c,n),[c,u]=m.useState(null),h=Te(t,y=>u(y)),f=c?i.form||!!c.closest("form"):!0,d=od(c),v=i.values[r],p=v===void 0?0:Xg(v,i.min,i.max),x=VN(r,i.values.length),w=d==null?void 0:d[l.size],g=w?GN(w,p,l.direction):0;return m.useEffect(()=>{if(c)return i.thumbs.add(c),()=>{i.thumbs.delete(c)}},[c,i.thumbs]),s.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[l.startEdge]:`calc(${p}% + ${g}px)`},children:[s.jsx(Fc.ItemSlot,{scope:e.__scopeSlider,children:s.jsx(he.span,{role:"slider","aria-label":e["aria-label"]||x,"aria-valuemin":i.min,"aria-valuenow":v,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...a,ref:h,style:v===void 0?{display:"none"}:e.style,onFocus:ne(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),f&&s.jsx(WN,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:v},r)]})});Kg.displayName=$c;var WN=e=>{const{value:t,...n}=e,r=m.useRef(null),o=Dg(t);return m.useEffect(()=>{const a=r.current,i=window.HTMLInputElement.prototype,c=Object.getOwnPropertyDescriptor(i,"value").set;if(o!==t&&c){const u=new Event("input",{bubbles:!0});c.call(a,t),a.dispatchEvent(u)}},[o,t]),s.jsx("input",{style:{display:"none"},...n,ref:r,defaultValue:t})};function UN(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,a)=>o-a)}function Xg(e,t,n){const a=100/(n-t)*(e-t);return _g(a,[0,100])}function VN(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function YN(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function GN(e,t,n){const r=e/2,a=md([0,50],[0,r]);return(r-a(t)*n)*n}function qN(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function QN(e,t){if(t>0){const n=qN(e);return Math.min(...n)>=t}return!0}function md(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function KN(e){return(String(e).split(".")[1]||"").length}function XN(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Zg=Wg,ZN=qg,JN=Qg,ek=Kg;const Jg=m.forwardRef(({className:e,...t},n)=>s.jsxs(Zg,{ref:n,className:ke("relative flex w-full touch-none select-none items-center",e),...t,children:[s.jsx(ZN,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:s.jsx(JN,{className:"absolute h-full bg-primary"})}),s.jsx(ek,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));Jg.displayName=Zg.displayName;const tk=({isPlaying:e,onTogglePlay:t})=>{const[n,r]=m.useState("ocean"),[o,a]=m.useState([.5]),i=m.useRef(null),l=[{id:"ocean",name:"🌊 Ocean Waves",file:"ocean-waves.mp3"},{id:"rain",name:"🌧️ Gentle Rain",file:"gentle-rain.mp3"},{id:"lullaby",name:"🎵 Soft Lullaby",file:"soft-lullaby.mp3"},{id:"forest",name:"🌲 Forest Sounds",file:"forest-sounds.mp3"}];m.useEffect(()=>{i.current&&(i.current.volume=o[0])},[o]),m.useEffect(()=>{e&&i.current?i.current.play().catch(console.error):i.current&&i.current.pause()},[e]);const c=h=>{const f=e;i.current&&i.current.pause(),r(h),setTimeout(()=>{f&&i.current&&i.current.play().catch(console.error)},100)},u=l.find(h=>h.id===n);return s.jsx(L,{children:s.jsxs(z,{className:"p-6 space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold text-gray-700 mb-1",children:"Calming Music"}),s.jsx("p",{className:"text-sm text-gray-500",children:"Holly's sleepy time sounds"})]}),s.jsx(I,{variant:e?"default":"outline",size:"lg",onClick:t,className:e?"bg-purple-500 hover:bg-purple-600":"",children:e?s.jsxs(s.Fragment,{children:[s.jsx(M0,{className:"w-4 h-4 mr-2"}),"Playing"]}):s.jsxs(s.Fragment,{children:[s.jsx(Cc,{className:"w-4 h-4 mr-2"}),"Play Music"]})})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Choose your sound:"}),s.jsx("div",{className:"grid grid-cols-2 gap-2",children:l.map(h=>
418s.jsx(I,{variant:n===h.id?"default":"outline",size:"sm",onClick:()=>c(h.id),className:"text-xs",children:h.name},h.id))})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Volume:"}),s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx(Eb,{className:"w-4 h-4 text-gray-400"}),s.jsx(Po,{className:"w-4 h-4 text-gray-600"})]})]}),s.jsx(Jg,{value:o,onValueChange:a,max:1,min:0,step:.1,className:"w-full"})]}),s.jsxs("audio",{ref:i,loop:!0,preload:"none",onLoadStart:()=>console.log(`Loading ${u==null?void 0:u.name}`),children:[s.jsx("source",{src:`/audio/${u==null?void 0:u.file}`,type:"audio/mpeg"}),"Your browser does not support the audio element."]}),e&&s.jsxs("div",{className:"text-center text-purple-600 animate-pulse",children:["🎵 Playing: ",u==null?void 0:u.name," 🎵"]})]})})},nk=({onEarnCoins:e})=>{const[t,n]=m.useState([]),[r,o]=m.useState(!1),[a,i]=m.useState(!1),l=[{id:"teeth",label:"🦷 Brush your teeth",coins:2},{id:"pajamas",label:"👕 Put on pajamas",coins:2},{id:"tidy",label:"🧸 Tidy up toys",coins:3},{id:"story",label:"📖 Read a story",coins:3},{id:"cuddles",label:"🤗 Goodnight cuddles",coins:2}],c=h=>{const f=l.find(d=>d.id===h);f&&(t.includes(h)?n(t.filter(d=>d!==h)):(n([...t,h]),e(f.coins),t.length+1===l.length&&(i(!0),e(5),setTimeout(()=>i(!1),3e3))))},u=t.length/l.length*100;return s.jsxs("div",{className:"max-w-2xl mx-auto space-y-6",children:[s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"bg-gradient-to-r from-purple-400 to-blue-400 rounded-full w-20 h-20 mx-auto mb-4 flex items-center justify-center shadow-lg",children:s.jsx(R0,{className:"w-10 h-10 text-white"})}),s.jsx("h2",{className:"text-3xl font-bold mb-2 text-purple-600",children:"Holly's Bedtime Helper"}),s.jsx("p",{className:"text-gray-600",children:"Follow Holly's magical bedtime routine!"})]}),s.jsx(L,{children:s.jsx(z,{className:"p-6",children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-sm font-medium text-gray-600",children:"Bedtime Progress"}),s.jsxs(te,{variant:"secondary",children:[t.length,"/",l.length]})]}),s.jsx(Ii,{value:u,className:"h-3"}),u===100&&s.jsx("div",{className:"text-center text-green-600 font-semibold animate-bounce",children:"🌟 All done! Sweet dreams! 🌟"})]})})}),s.jsxs(L,{children:[s.jsx(He,{children:s.jsxs(Ie,{className:"flex items-center space-x-2",children:[s.jsx(fo,{className:"w-5 h-5 text-purple-500"}),s.jsx("span",{children:"Bedtime Checklist"})]})}),s.jsx(z,{className:"space-y-3",children:l.map(h=>{const f=t.includes(h.id);return s.jsxs("div",{className:`flex items-center justify-between p-3 rounded-lg border-2 cursor-pointer transition-all ${f?"bg-green-50 border-green-200 shadow-sm":"bg-white border-gray-200 hover:border-purple-300 hover:shadow-sm"}`,onClick:()=>c(h.id),children:[s.jsxs("div",{className:"flex items-center space-x-3",children:[f?s.jsx(fo,{className:"w-6 h-6 text-green-500"}):s.jsx(qu,{className:"w-6 h-6 text-gray-400"}),s.jsx("span",{className:`font-medium ${f?"text-green-700 line-through":"text-gray-700"}`,children:h.label})]}),s.jsxs(te,{variant:"outline",className:"text-xs",children:["+",h.coins," coins"]})]},h.id)})})]}),s.jsx(tk,{isPlaying:r,onTogglePlay:()=>o(!r)}),a&&s.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 animate-fade-in",children:s.jsx(L,{className:"mx-4 max-w-sm animate-scale-in",children:s.jsxs(z,{className:"p-8 text-center",children:[s.jsx("div",{className:"text-6xl mb-4",children:"🌟"}),s.jsx("h3",{className:"text-2xl font-bold text-purple-600 mb-2",children:"Amazing!"}),s.jsx("p",{className:"text-gray-600 mb-4",children:"You completed your bedtime routine!"}),s.jsxs(te,{className:"bg-yellow-500 text-white text-lg px-4 py-2",children:[s.jsx(mt,{className:"w-4 h-4 mr-2"}),"+5 Bonus Coins!"]})]})})})]})},rk=({onEarnCoins:e})=>{const[t,n]=m.useState(0),[r,o]=m.useState(60),[a,i]=m.useState(!1),[l,c]=m.useState([]),[u,h]=m.useState(!1),f=["🥤","🍎","🧻","🥫","🍌","🧴"],d=()=>{n(0),o(60),i(!0),h(!1),v()},v=()=>{const w=[];for(let g=0;g<15;g++)w.push({id:g,x:Math.random()*80+10,y:Math.random()*60+20,type:f[Math.floor(Math.random()*f.length)]});c(w)},p=w=>{c(g=>g.filter(y=>y.id!==w)),n(g=>g+10),e(1),l.length===1&&(i(!1),h(!0),e(20))};m.useEffect(()=>{let w;return a&&r>0?w=setTimeout(()=>
418o(g=>g-1),1e3):r===0&&i(!1),()=>clearTimeout(w)},[a,r]);const x=(15-l.length)/15*100;return s.jsxs("div",{className:"max-w-4xl mx-auto space-y-6",children:[s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"bg-gradient-to-r from-blue-400 to-green-400 rounded-full w-20 h-20 mx-auto mb-4 flex items-center justify-center shadow-lg",children:s.jsx(cs,{className:"w-10 h-10 text-white"})}),s.jsx("h2",{className:"text-3xl font-bold mb-2 text-blue-600",children:"Holly's Beach Cleanup"}),s.jsx("p",{className:"text-gray-600",children:"Help Holly keep Hemsby beach beautiful!"})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[s.jsx(L,{children:s.jsxs(z,{className:"p-4 text-center",children:[s.jsx("div",{className:"text-2xl font-bold text-blue-600",children:t}),s.jsx("div",{className:"text-sm text-gray-600",children:"Points"})]})}),s.jsx(L,{children:s.jsxs(z,{className:"p-4 text-center",children:[s.jsx("div",{className:"text-2xl font-bold text-green-600",children:15-l.length}),s.jsx("div",{className:"text-sm text-gray-600",children:"Items Collected"})]})}),s.jsx(L,{children:s.jsxs(z,{className:"p-4 text-center flex items-center justify-center space-x-2",children:[s.jsx(Fh,{className:"w-5 h-5 text-orange-500"}),s.jsxs("div",{className:"text-2xl font-bold text-orange-600",children:[r,"s"]})]})})]}),a&&s.jsx(L,{children:s.jsx(z,{className:"p-4",children:s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{children:"Beach Cleanup Progress"}),s.jsxs("span",{children:[Math.round(x),"%"]})]}),s.jsx(Ii,{value:x,className:"h-3"})]})})}),s.jsxs(L,{className:"min-h-[400px]",children:[s.jsx(He,{children:s.jsxs(Ie,{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx(xb,{className:"w-5 h-5 text-green-500"}),s.jsx("span",{children:"Beach Cleanup Game"})]}),!a&&!u&&s.jsx(I,{onClick:d,className:"bg-blue-500 hover:bg-blue-600",children:"Start Game"})]})}),s.jsxs(z,{className:"relative h-96 bg-gradient-to-b from-blue-100 to-yellow-100 rounded-lg overflow-hidden",children:[!a&&!u&&s.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:s.jsxs("div",{className:"text-center",children:[s.jsx(cs,{className:"w-16 h-16 mx-auto mb-4 text-blue-400"}),s.jsx("h3",{className:"text-xl font-semibold text-gray-700 mb-2",children:"Clean up the beach!"}),s.jsx("p",{className:"text-gray-500 mb-4",children:"Click on trash items to collect them"}),s.jsx(I,{onClick:d,size:"lg",className:"bg-blue-500 hover:bg-blue-600",children:"Start Cleaning"})]})}),a&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-16 bg-yellow-200 rounded-b-lg"}),l.map(w=>s.jsx("button",{className:"absolute text-2xl hover:scale-110 transition-transform cursor-pointer animate-bounce",style:{left:`${w.x}%`,top:`${w.y}%`},onClick:()=>p(w.id),children:w.type},w.id)),s.jsx("div",{className:"absolute bottom-4 left-4 text-4xl animate-pulse",children:"🧹👧"})]}),u&&s.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-green-50 bg-opacity-90",children:s.jsxs("div",{className:"text-center",children:[s.jsx(ls,{className:"w-16 h-16 mx-auto mb-4 text-yellow-500"}),s.jsx("h3",{className:"text-2xl font-bold text-green-600 mb-2",children:"Beach Cleaned! 🎉"}),s.jsxs("p",{className:"text-gray-600 mb-4",children:["You earned ",t," points!"]}),s.jsxs(te,{className:"bg-yellow-500 text-white text-lg px-4 py-2 mb-4",children:[s.jsx(mt,{className:"w-4 h-4 mr-2"}),"+20 Bonus Coins!"]}),s.jsx("div",{children:s.jsx(I,{onClick:d,className:"bg-blue-500 hover:bg-blue-600",children:"Play Again"})})]})}),r===0&&!u&&s.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-gray-50 bg-opacity-90",children:s.jsxs("div",{className:"text-center",children:[s.jsx(Fh,{className:"w-16 h-16 mx-auto mb-4 text-gray-400"}),s.jsx("h3",{className:"text-xl font-semibold text-gray-600 mb-2",children:"Time's Up!"}),s.jsxs("p",{className:"text-gray-500 mb-4",children:["You collected ",15-l.length," items"]}),s.jsx(I,{onClick:d,className:"bg-blue-500 hover:bg-blue-600",children:"Try Again"})]})})]})]})]})},ex=({apiKey:e,voiceId:t,modelId:n="eleven_multilingual_v2"})=>{const[r,o]=m.useState(!1),[a,i]=m.useState(!1),l=m.useRef(null),c=m.useCallback(async h=>{if(r){l.current&&(l.current.pause(),l.current=null),o(!1);return}i(!0);try{const f=await fetch(`https://api.elevenlabs.io/v1/text-to-speech/${t}`,{method:"POST",headers:{Accept:"audio/mpeg","Content-Type":"application/json","xi-api-key":e},body:JSON.stringify({text:h,model_id:n,voice_settings:{stability:.5,similarity_boost:.75,style:0,use_speaker_boost:!0}})});if(!f.ok)throw new Error("Failed to generate speech");const d=await f.blob(),v=URL.createObjectURL(d),p=new Audio(v);l.current=p,p.onplay=()=>{o(!0),i(!1)},p.onended=()=>{o(!1),URL.revokeObjectURL(v),l.current=null},p.onerror=()=>{o(!1),i(!1),URL.revokeObjectURL(v),l.current=null},await p.play()}catch(f){console.error("Error generating speech:",f),i(!1),o(!1)}},[e,t,n,r]),u=m.useCallback(()=>{l.current&&(l.current.pause(),l.current=null),o(!1)},[]);return{speak:c,stop:u,isPlaying:r,isLoading:a}},sk=()=>{const[e,t]=m.useState(null),[n,r]=m.useState(0),{speak:o,stop:a,isPlaying:i,isLoading:l}=ex({apiKey:"sk_b28f34ae58e259a7f3b08bfd00a14f071392dfb79b378004",voiceId:"pFZP5JQG7iQjIQuC4Bku"}),c=[{id:1,title:"Holly Saves the Day at Hemsby",duration:"5 min",difficulty:"Easy",description:"Join Holly as she helps a lost family find their way back to their caravan!",pages:[{text:"It was a sunny morning at Hemsby Holiday Park. Holly the Holiday Hero was getting ready for another day of adventures!",illustration:"🌅🏖️"},{text:"Suddenly, Holly heard someone crying near the beach. It was a little boy who couldn't find his family's caravan.",illustration:"😢👦"},{text:"Don't worry! said Holly with a big smile. I'll help you find your family. What does your caravan look like?",illustration:"😊🏕️"},{text:"Together, they searched the park. Holly used her special map and her kind heart to help the boy find his way home.",illustration:"🗺️❤️"},{text:"When they found the family, everyone was so happy! The boy's parents thanked Holly for being such a wonderful helper.",illustration:"🎉👨‍👩‍👦"},{text:"Holly felt proud and happy. Helping others was what she loved most about being a Holiday Hero!",illustration:"⭐😊"}]},{id:2,title:"The Great Beach Treasure Hunt",duration:"4 min",difficulty:"Easy",description:"Holly organizes a fun treasure hunt for all the children at the holiday park!",pages:[{text:"Holly had a brilliant idea - a treasure hunt on the beautiful Hemsby beach!",illustration:"💡🏴‍☠️"},{text:"She made a map with clues leading to special places around the beach and holiday park.",illustration:"🗺️✨"},{text:"Children from all over the park joined in, working together to solve Holly's clever clues.",illustration:"👦👧🔍"},{text:"The treasure? A box full of shiny shells, friendship bracelets, and Holly Hero stickers!",illustration:"💰🐚"},{text:"Everyone shared the treasure equally, and Holly taught them that the best treasure is friendship.",illustration:"🤝💝"}]},{id:3,title:"Dr. Rust's Silly Scheme",duration:"6 min",difficulty:"Medium",description:"Oh no! Dr. Rust is up to his old tricks again. Can Holly stop his mischievous plans?",pages:[{text:"Dr. Rust was hiding behind the arcade, planning to make all the games too difficult to play!",illustration:"😈🎮"},{text:"But Holly spotted him with her keen eyes. She knew she had to stop his silly scheme!",illustration:"👀🦸‍♀️"},{text:"Using her cleverness and kindness, Holly convinced Dr. Rust that games are more fun when everyone can enjoy them.",illustration:"🧠💝"},{text:"Dr. Rust realized his mistake and helped Holly make the games even more fun for everyone!",illustration:"😊🎯"},{text:"From that day on, Dr. Rust became Holly's friend and helper instead of her rival.",illustration:"🤝⭐"}]}],u=e?c.find(p=>p.id===e):null,h=()=>{u&&n<u.pages.length-1&&(r(n+1),a())},f=()=>{n>0&&(r(n-1),a())},d=p=>{t(p),r(0),a()},v=()=>{if(u){const p=u.pages[n];o(p.text)}};if(u){const p=u.pages[n];
418return s.jsx("div",{className:"max-w-2xl mx-auto space-y-6",children:s.jsxs(L,{className:"min-h-[500px]",children:[s.jsx(He,{children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs(Ie,{className:"flex items-center space-x-2",children:[s.jsx(Ya,{className:"w-5 h-5 text-orange-500"}),s.jsx("span",{children:u.title})]}),s.jsx(I,{variant:"ghost",onClick:()=>{t(null),a()},children:"Back to Stories"})]})}),s.jsxs(z,{className:"space-y-6",children:[s.jsxs("div",{className:"bg-gradient-to-br from-blue-50 to-purple-50 rounded-lg p-8 text-center min-h-[300px] flex flex-col justify-center",children:[s.jsx("div",{className:"text-6xl mb-6",children:p.illustration}),s.jsx("p",{className:"text-lg leading-relaxed text-gray-700 max-w-md mx-auto",children:p.text})]}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs(I,{variant:"outline",onClick:f,disabled:n===0,children:[s.jsx(Ni,{className:"w-4 h-4 mr-2"}),"Previous"]}),s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsxs(te,{variant:"secondary",children:["Page ",n+1," of ",u.pages.length]}),s.jsx(I,{variant:i?"default":"outline",onClick:v,disabled:l,className:"flex items-center space-x-2",children:l?s.jsxs(s.Fragment,{children:[s.jsx(cb,{className:"w-4 h-4 animate-spin"}),s.jsx("span",{children:"Loading..."})]}):i?s.jsxs(s.Fragment,{children:[s.jsx(M0,{className:"w-4 h-4"}),s.jsx("span",{children:"Pause"})]}):s.jsxs(s.Fragment,{children:[s.jsx(Cc,{className:"w-4 h-4"}),s.jsx("span",{children:"Listen"})]})})]}),s.jsxs(I,{variant:"outline",onClick:h,disabled:n===u.pages.length-1,children:["Next",s.jsx(ki,{className:"w-4 h-4 ml-2"})]})]}),(i||l)&&s.jsxs("div",{className:"text-center text-orange-600 animate-pulse",children:[s.jsx(Po,{className:"w-6 h-6 mx-auto mb-2"}),s.jsx("p",{children:l?"Holly is preparing to read...":"Holly is reading the story aloud..."})]})]})]})})}return s.jsxs("div",{className:"max-w-4xl mx-auto space-y-6",children:[s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"bg-gradient-to-r from-orange-400 to-red-400 rounded-full w-20 h-20 mx-auto mb-4 flex items-center justify-center shadow-lg",children:s.jsx(Ya,{className:"w-10 h-10 text-white"})}),s.jsx("h2",{className:"text-3xl font-bold mb-2 text-orange-600",children:"Holly's Story Time"}),s.jsx("p",{className:"text-gray-600",children:"Magical adventures and heartwarming tales!"})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:c.map(p=>s.jsx(L,{className:"hover:shadow-lg transition-all duration-300 hover:scale-105 cursor-pointer",children:s.jsxs(z,{className:"p-6",children:[s.jsxs("div",{className:"text-center mb-4",children:[s.jsx("div",{className:"text-4xl mb-3",children:"📚"}),s.jsx("h3",{className:"font-bold text-lg mb-2 text-gray-800",children:p.title}),s.jsx("p",{className:"text-sm text-gray-600 mb-4",children:p.description})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex justify-between items-center text-sm",children:[s.jsx(te,{variant:"outline",children:p.duration}),s.jsx(te,{variant:"secondary",children:p.difficulty})]}),s.jsxs(I,{className:"w-full bg-orange-500 hover:bg-orange-600",onClick:()=>d(p.id),children:[s.jsx(Cc,{className:"w-4 h-4 mr-2"}),"Start Reading"]})]})]})},p.id))}),s.jsx(L,{className:"border-dashed border-2 border-gray-300",children:s.jsxs(z,{className:"p-8 text-center",children:[s.jsx(mt,{className:"w-12 h-12 mx-auto mb-4 text-gray-400"}),s.jsx("h3",{className:"text-xl font-semibold text-gray-600 mb-2",children:"More Stories Coming Soon!"}),s.jsx("p",{className:"text-gray-500",children:"Holly is working on new adventures for you to enjoy."})]})})]})},ok=({title:e,description:t,imageUrl:n,isUnlocked:r})=>s.jsx(L,{className:`transition-all duration-300 ${r?"hover:shadow-lg hover:scale-105":"opacity-50 grayscale"}`,children:s.jsxs(z,{className:"p-0",children:[s.jsxs("div",{className:"relative",children:[s.jsx("img",{src:n,alt:e,className:"w-full h-32 object-cover rounded-t-lg"}),r&&s.jsx(te,{className:"absolute top-2 right-2 bg-green-500",children:"Unlocked"}),!r&&s.jsx("div",{className:"absolute inset-0 bg-gray-900 bg-opacity-50 rounded-t-lg flex items-center justify-center",children:s.jsx("span",{className:"text-white text-2xl",children:"🔒"})})]}),s.jsxs("div",{className:"p-3",children:[s.jsx("h4",{className:"font-semibold text-sm text-gray-800 mb
418-1",children:e}),s.jsx("p",{className:"text-xs text-gray-600",children:t})]})]})}),ak=({hollyCoins:e,onSpendCoins:t})=>{const[n,r]=m.useState(["🌟","🏖️","😊"]),[o,a]=m.useState(["First Steps"]),[i,l]=m.useState(["Welcome to Hemsby!","Sunset Postcard","Holly Adventure Postcard"]),{toast:c}=zu(),u=[{name:"Welcome to Hemsby!",title:"Welcome to Hemsby Beach",description:"Your first postcard from Holly's seaside adventure",imageUrl:"https://images.unsplash.com/photo-1500375592092-40eb2168fd21?w=300&h=200&fit=crop",unlocked:!0},{name:"Sunset Postcard",title:"Golden Hour Magic",description:"Beautiful Hemsby sunset over the ocean waves",imageUrl:"https://images.unsplash.com/photo-1472396961693-142e6e269027?w=300&h=200&fit=crop",unlocked:i.includes("Sunset Postcard")},{name:"Holly Adventure Postcard",title:"Adventure Awaits",description:"Holly's favorite spots for seaside fun",imageUrl:"https://images.unsplash.com/photo-1465146344425-f00d5f5c8f07?w=300&h=200&fit=crop",unlocked:i.includes("Holly Adventure Postcard")},{name:"Sandcastle Postcard",title:"Sandy Masterpiece",description:"Amazing sandcastle memories from the beach",imageUrl:"https://images.unsplash.com/photo-1482938289607-e9573fc25ebb?w=300&h=200&fit=crop",unlocked:i.includes("Sandcastle Postcard")},{name:"Seaside Fun Postcard",title:"Shell Collector",description:"Collecting shells and treasures by the shore",imageUrl:"https://images.unsplash.com/photo-1500375592092-40eb2168fd21?w=300&h=200&fit=crop",unlocked:i.includes("Seaside Fun Postcard")},{name:"Holiday Magic Postcard",title:"Magical Moments",description:"Capturing the wonder of coastal holidays",imageUrl:"https://images.unsplash.com/photo-1472396961693-142e6e269027?w=300&h=200&fit=crop",unlocked:i.includes("Holiday Magic Postcard")}],h=[{type:"sticker",name:"Holly Hero Sticker",icon:"🦸‍♀️",cost:10,description:"Show everyone you're a hero like Holly!"},{type:"sticker",name:"Beach Fun Sticker",icon:"🏖️",cost:8,description:"Remember your beach adventures"},{type:"sticker",name:"Friendship Sticker",icon:"👫",cost:12,description:"Celebrate making new friends"},{type:"sticker",name:"Ocean Wave Sticker",icon:"🌊",cost:15,description:"Beautiful ocean waves memory"},{type:"sticker",name:"Sunshine Sticker",icon:"☀️",cost:10,description:"Bright sunny day vibes"},{type:"sticker",name:"Ice Cream Sticker",icon:"🍦",cost:12,description:"Sweet holiday treats"},{type:"postcard",name:"Sunset Postcard",icon:"🌅",cost:15,description:"Beautiful Hemsby sunset scene"},{type:"postcard",name:"Holly Adventure Postcard",icon:"🎪",cost:18,description:"Holly's favorite adventure spots"},{type:"postcard",name:"Sandcastle Postcard",icon:"🏰",cost:20,description:"Amazing sandcastle memories"},{type:"postcard",name:"Seaside Fun Postcard",icon:"🐚",cost:16,description:"Collecting shells and treasures"},{type:"postcard",name:"Holiday Magic Postcard",icon:"✨",cost:22,description:"Magical moments at the coast"},{type:"badge",name:"Beach Cleaner Badge",icon:"🧹",cost:25,description:"Earned by keeping the beach clean"},{type:"badge",name:"Story Master Badge",icon:"📚",cost:30,description:"Read all of Holly's stories"},{type:"badge",name:"Early Bird Badge",icon:"🐦",cost:28,description:"Always ready for bedtime routine"},{type:"badge",name:"Explorer Badge",icon:"🗺️",cost:35,description:"Discovered all areas of Holly's world"},{type:"badge",name:"Kindness Badge",icon:"💝",cost:32,description:"Spread joy and kindness everywhere"},{type:"special",name:"Holly's Secret Map",icon:"🗞️",cost:50,description:"Unlock hidden areas and surprises"},{type:"special",name:"Rainbow Shell",icon:"🌈",cost:45,description:"Magical shell with special powers"},{type:"special",name:"Golden Sandcastle",icon:"🏆",cost:60,description:"Ultimate building achievement"},{type:"special",name:"Holly's Crown",icon:"👑",cost:75,description:"Become the holiday hero royalty"},{type:"special",name:"Magic Telescope",icon:"🔭",cost:40,description:"See distant adventures clearly"}],f=[{name:"First Steps",description:"Welcome to Holly's world!",icon:"👶",unlocked:!0,progress:100}
418,{name:"Bedtime Hero",description:"Complete 5 bedtime routines",icon:"🌙",unlocked:!1,progress:60},{name:"Beach Guardian",description:"Clean up the beach 3 times",icon:"🏖️",unlocked:!1,progress:33},{name:"Story Lover",description:"Read 10 stories",icon:"📖",unlocked:!1,progress:20},{name:"Coin Collector",description:"Earn 100 Holly Coins",icon:"💰",unlocked:e>=100,progress:Math.min(e/100*100,100)}],d=p=>{if(e>=p.cost){if(p.type==="sticker"&&n.includes(p.icon)||p.type==="badge"&&o.includes(p.name)||p.type==="postcard"&&i.includes(p.name)){c({title:"Already Owned!",description:`You already have ${p.name}`,variant:"destructive"});return}t(p.cost),p.type==="sticker"?r([...n,p.icon]):p.type==="badge"?a([...o,p.name]):p.type==="postcard"&&l([...i,p.name]),c({title:"Reward Unlocked! 🎉",description:`You got ${p.name}!`})}else c({title:"Not Enough Coins",description:`You need ${p.cost-e} more coins`,variant:"destructive"})},v=p=>p.type==="sticker"&&n.includes(p.icon)||p.type==="badge"&&o.includes(p.name)||p.type==="postcard"&&i.includes(p.name);return s.jsxs("div",{className:"max-w-6xl mx-auto space-y-6",children:[s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"bg-gradient-to-r from-pink-400 to-purple-400 rounded-full w-20 h-20 mx-auto mb-4 flex items-center justify-center shadow-lg",children:s.jsx(dt,{className:"w-10 h-10 text-white"})}),s.jsx("h2",{className:"text-3xl font-bold mb-2 text-pink-600",children:"Holly's Reward Center"}),s.jsx("p",{className:"text-gray-600",children:"Spend your Holly Coins and unlock amazing rewards!"})]}),s.jsx(L,{className:"bg-gradient-to-r from-yellow-50 to-orange-50 border-yellow-200",children:s.jsxs(z,{className:"p-6 text-center",children:[s.jsxs("div",{className:"flex items-center justify-center space-x-3 mb-2",children:[s.jsx(mo,{className:"w-8 h-8 text-yellow-500"}),s.jsx("span",{className:"text-3xl font-bold text-yellow-600",children:e})]}),s.jsx("p",{className:"text-yellow-700",children:"Holly Coins Available"})]})}),s.jsxs(L,{children:[s.jsx(He,{children:s.jsxs(Ie,{className:"flex items-center space-x-2",children:[s.jsx(ls,{className:"w-5 h-5 text-yellow-500"}),s.jsx("span",{children:"Achievements"})]})}),s.jsx(z,{className:"space-y-4",children:f.map((p,x)=>s.jsxs("div",{className:"flex items-center space-x-4 p-3 rounded-lg bg-gray-50",children:[s.jsx("div",{className:"text-2xl",children:p.icon}),s.jsxs("div",{className:"flex-1",children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsx("h4",{className:"font-semibold text-gray-800",children:p.name}),p.unlocked&&s.jsxs(te,{className:"bg-green-500",children:[s.jsx(jc,{className:"w-3 h-3 mr-1"}),"Unlocked"]})]}),s.jsx("p",{className:"text-sm text-gray-600 mb-2",children:p.description}),s.jsx(Ii,{value:p.progress,className:"h-2"})]})]},x))})]}),s.jsxs(L,{children:[s.jsx(He,{children:s.jsxs(Ie,{className:"flex items-center space-x-2",children:[s.jsx(dt,{className:"w-5 h-5 text-pink-500"}),s.jsx("span",{children:"Reward Shop"})]})}),s.jsxs(z,{children:[s.jsxs("div",{className:"mb-6",children:[s.jsx("h3",{className:"text-lg font-semibold mb-4 text-gray-700",children:"Choose Your Category:"}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsx(te,{className:"bg-blue-100 text-blue-700 text-sm py-1 px-3",children:"🌟 Stickers (8-15 coins)"}),s.jsx(te,{className:"bg-green-100 text-green-700 text-sm py-1 px-3",children:"📮 Postcards (15-22 coins)"}),s.jsx(te,{className:"bg-purple-100 text-purple-700 text-sm py-1 px-3",children:"🏆 Badges (25-35 coins)"}),s.jsx(te,{className:"bg-yellow-100 text-yellow-700 text-sm py-1 px-3",children:"✨ Special Items (40-75 coins)"})]})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:h.map((p,x)=>{const w=v(p),g=e>=p.cost;return s.jsxs("div",{className:`border rounded-lg p-4 hover:shadow-md transition-shadow ${p.type==="special"?"border-yellow-300 bg-yellow-50":""} ${w?"bg-green-50 border-green-200":""}`,children:[s.jsxs("div",{className:"text-center mb-3",children:[s.jsx("div",{className:"text-3xl mb-2",children:p.icon}),s.jsx("h4",{className:"font-semibold text-gray-800 text-sm",children:p.name}),s.jsx("p",{className:"text-xs text-gray-600 mt-1 h-8 overflow-hidden",children:p.description})]}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs(te,{variant:"outline",className:`text-xs ${p.type==="special"?"border-yellow-500 text-yellow-700":"text-yellow-600"}`,children:[s.jsx(mo,{className:"w-3 h-3 mr-1"}),p.cost]}),s.jsx(I,{size:"sm",disabled:!g||w,onClick:()=>d(p),className:`text-xs ${w?"bg-green-500 hover:bg-green-600":p.type==="special"?"bg-yellow-500 hover:bg-yellow-600":"bg-pink-500 hover:bg-pink-600"}`,children:w?"Owned":g?"Buy":"Need More"})]})]},x)})})]})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[s.jsxs(L,{children:[s.jsx(He,{children:s.jsxs(Ie,{className:"flex items-center space-x-2",children:[s.jsx(mt,{className:"w-4 h-4 text-yellow-500"}),s.jsx("span",{children:"My Stickers"})]})}),s.jsx(z,{children:s.jsxs("div",{className:"grid grid-cols-4 gap-2",children:[n.map((p,x)=>s.jsx("div",{className:"text-2xl text-center p-2 bg-gray-50 rounded",children:p},x)),Array.from({length:8-n.length}).map((p,x)=>s.jsx("div",{className:"text-2xl text-center p-2 bg-gray-100 rounded opacity-50",children:"❓"},x))]})})]}),s.jsxs(L,{children:[s.jsx(He,{children:s.jsxs(Ie,{className:"flex items-center space-x-2",children:[s.jsx(jc,{className:"w-4 h-4 text-blue-500"}),s.jsx("span",{children:"My Badges"})]})}),s.jsx(z,{children:s.jsx("div",{className:"space-y-2",children:o.map((p,x)=>s.jsxs("div",{className:"flex items-center space-x-2 p-2 bg-blue-50 rounded",children:[s.jsx(ls,{className:"w-4 h-4 text-blue-500"}),s.jsx("span",{className:"text-sm font-medium",children:p})]},x))})})]}),s.jsxs(L,{children:[s.jsx(He,{children:s.jsxs(Ie,{className:"flex items-center space-x-2",children:[s.jsx(Ku,{className:"w-4 h-4 text-green-500"}),s.jsx("span",{children:"My Postcard Collection"})]})}),s.jsx(z,{children:s.jsx("div",{className:"grid grid-cols-2 gap-3",children:u.map((p,x)=>
418s.jsx(ok,{title:p.title,description:p.description,imageUrl:p.imageUrl,isUnlocked:p.unlocked},x))})})]})]}),s.jsx(L,{className:"bg-gradient-to-r from-purple-100 to-pink-100 border-purple-200",children:s.jsxs(z,{className:"p-6 text-center",children:[s.jsx("div",{className:"text-4xl mb-3",children:"🎁"}),s.jsx("h3",{className:"text-xl font-bold text-purple-700 mb-2",children:"Special Holiday Bonus!"}),s.jsx("p",{className:"text-purple-600 mb-4",children:"Earn a golden coin for your next stay with L & K Holidays when you complete all achievements!"}),s.jsxs(te,{className:"bg-yellow-500 text-white",children:[s.jsx(ct,{className:"w-4 h-4 mr-2"}),"Real Holiday Reward!"]})]})})]})},Rs=[{id:"happy",name:"Happy",emoji:"😊",color:"text-yellow-600",bgColor:"bg-yellow-100",voiceLine:"I feel happy when I'm playing with my friends at the beach! Happiness makes my heart feel warm and bouncy.",copingTip:"When I feel happy, I like to share it with others and dance around!",hollyExpression:"🌟😄"},{id:"sad",name:"Sad",emoji:"😢",color:"text-blue-600",bgColor:"bg-blue-100",voiceLine:"I feel sad when it's time to say goodbye to holiday friends. It's okay to feel sad sometimes.",copingTip:"When I feel sad, I cuddle my favorite blanket and remember happy memories.",hollyExpression:"💙😔"},{id:"worried",name:"Worried",emoji:"😰",color:"text-purple-600",bgColor:"bg-purple-100",voiceLine:"I feel worried when I lose my teddy bear... but I know I'll find it again, or someone will help me.",copingTip:"When I feel worried, I talk to someone I trust and take slow, deep breaths.",hollyExpression:"💜😟"},{id:"excited",name:"Excited",emoji:"🤩",color:"text-orange-600",bgColor:"bg-orange-100",voiceLine:"I feel excited when we're going on a new adventure! My tummy gets all fluttery with joy.",copingTip:"When I feel excited, I jump up and down and tell everyone about what's making me happy!",hollyExpression:"🧡🤩"},{id:"tired",name:"Tired",emoji:"😴",color:"text-indigo-600",bgColor:"bg-indigo-100",voiceLine:"I feel tired after a long day of helping everyone. My body needs rest to feel better.",copingTip:"When I feel tired, I find a cozy spot to rest and close my eyes for a little while.",hollyExpression:"💤😌"},{id:"frustrated",name:"Frustrated",emoji:"😤",color:"text-red-600",bgColor:"bg-red-100",voiceLine:"I feel frustrated when things don't go the way I planned. It's normal to feel this way sometimes.",copingTip:"When I feel frustrated, I count to ten slowly and take three big deep breaths.",hollyExpression:"❤️😤"}],ik=()=>{const[e,t]=m.useState(Rs[0]),[n,r]=m.useState(new Set(["happy"])),[o,a]=m.useState(!1),[i,l]=m.useState(!1),{speak:c,isPlaying:u,isLoading:h}=ex({apiKey:"sk_b28f34ae58e259a7f3b08bfd00a14f071392dfb79b378004",voiceId:"pFZP5JQG7iQjIQuC4Bku"}),f=p=>{t(p),r(x=>new Set([...x,p.id])),l(!1),a(!1),c(p.voiceLine)},d=()=>{l(!0),c(e.copingTip)},v=()=>{a(!0),c("Now it's your turn! Can you show me your "+e.name.toLowerCase()+" face? Look in the mirror or just make the face - you're doing great!")};return s.jsxs("div",{className:"max-w-4xl mx-auto space-y-6",children:[s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"bg-gradient-to-r from-pink-400 to-purple-400 rounded-full w-20 h-20 mx-auto mb-4 flex items-center justify-center shadow-lg",children:s.jsx(ct,{className:"w-10 h-10 text-white"})}),s.jsx("h2",{className:"text-3xl font-bold mb-2 text-pink-600",children:"Explore Feelings with Holly"}),s.jsx("p",{className:"text-gray-600",children:"Tap on Holly to learn about different emotions together!"})]}),s.jsx(L,{className:"max-w-2xl mx-auto",children:s.jsx(z,{className:"p-8",children:s.jsxs("div",{className:"text-center space-y-6",children:[s.jsx("div",{className:`${e.bgColor} rounded-full w-48 h-48 mx-auto flex items-center justify-center text-6xl cursor-pointer transition-all duration-300 hover:scale-105 shadow-lg`,onClick:()=>c(e.voiceLine),children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-4xl mb-2",children:e.hollyExpression}),s.jsx("div",{className:"text-lg font-semibold text-gray-700",children:"Holly"})]})}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("h3",{className:`text-2xl font-bold ${e.color}`,children:["Holly feels ",e.name]}),(u||h)&&s.jsxs("div",{className:"text-center text-pink-600 animate-pulse",children:[s.jsx(Po,{className:"w-6 h-6 mx-auto mb-2"}),s.jsx("p",{children:h?"Holly is thinking...":"Holly is talking..."})]}),s.jsxs("div",{className:"flex justify-center space-x-3",children:[s.jsxs(I,{variant:"outline",onClick:d,className:"bg-white hover:bg-gray-50",children:[s.jsx(xr,{className:"w-4 h-4 mr-2"}),"Coping Tip"]}),s.jsxs(I,{variant:"outline",onClick:v,className:"bg-white hover:bg-gray-50",children:[s.jsx(mt,{className:"w-4 h-4 mr-2"}),"Mirror Time"]})]})]})]})})}),i&&s.jsx(L,{className:"max-w-2xl mx-auto border-2 border-dashed border-pink-300 bg-pink-50",children:s.jsxs(z,{className:"p-6 text-center",children:[s.jsx("h4",{className:"font-bold text-pink-700 mb-2",children:"Holly's Helpful Tip"}),s.jsx("p",{className:"text-gray-700",children:e.copingTip})]})}),o&&s.jsx(L,{className:"max-w-2xl mx-auto border-2 border-dashed border-purple-300 bg-purple-50",children:s.jsxs(z,{className:"p-6 text-center",children:[s.jsx("h4",{className:"font-bold text-purple-700 mb-2",children:"Mirror Moment!"}),s.jsxs("p",{className:"text-gray-700 mb-4",children:["Can you show your ",e.name.toLowerCase()," face? Holly thinks you're doing amazing! 🌟"]}),s.jsx("div",{className:"text-4xl",children:e.emoji})]})}),s.jsxs(L,{children:[s.jsx(He,{children:s.jsx(Ie,{className:"text-center text-gray-800",children:"Choose an Emotion"})}),s.jsx(z,{children:s.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:Rs.map(p=>s.jsxs(I,{variant:e.id===p.id?"default":"outline",className:`h-20 flex flex-col space-y-2 ${e.id===p.id?e.bgColor:"bg-white hover:bg-gray-50"}`,onClick:()=>f(p),children:[s.jsx("span",{className:"text-2xl",children:p.emoji}),s.jsx("span",{className:"text-sm font-medium",children:p.name}),n.has(p.id)&&s.jsxs(te,{variant:"secondary",className:"text-xs",children:[s.jsx(jc,{className:"w-3 h-3 mr-1"}),"Explored!"]})]}
418,p.id))})})]}),s.jsx(L,{className:"bg-gradient-to-r from-yellow-50 to-orange-50",children:s.jsxs(z,{className:"p-6 text-center",children:[s.jsx("h3",{className:"font-bold text-orange-700 mb-4",children:"Your Emotion Explorer Badges"}),s.jsx("div",{className:"flex justify-center space-x-2 mb-4",children:Array.from(n).map(p=>{const x=Rs.find(w=>w.id===p);return x?s.jsxs(te,{variant:"secondary",className:"text-sm",children:[x.emoji," ",x.name]},p):null})}),s.jsxs("p",{className:"text-orange-600",children:["You've explored ",n.size," of ",Rs.length," emotions with Holly!"]}),n.size===Rs.length&&s.jsxs("div",{className:"mt-4 p-4 bg-yellow-100 rounded-lg",children:[s.jsx("h4",{className:"font-bold text-yellow-800",children:"🏆 Emotion Expert!"}),s.jsx("p",{className:"text-yellow-700",children:"Amazing! You've learned about all emotions with Holly!"})]})]})})]})},hs=m.forwardRef(({className:e,type:t,...n},r)=>s.jsx("input",{type:t,className:ke("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));hs.displayName="Input";const lk=()=>{const[e,t]=m.useState(""),[n,r]=m.useState(null),[o,a]=m.useState(""),[i,l]=m.useState(0),[c,u]=m.useState(!1),h=["Holly loves collecting seashells on Hemsby beach!","Did you know Holly's caravan has a secret compartment for beach treasures?","Holly's favorite ice cream flavor is mint choc chip - just like the sea foam!","Holly once helped a lost crab find its way back to the sea!","The best time to spot seals near Hemsby is early morning!","Holly knows all the best rock pooling spots along the coast!","Beach huts come in over 20 different colors at some Norfolk beaches!","Holly's caravan windows are shaped like portholes - just like a ship!","The lighthouse near Great Yarmouth has been guiding ships for over 100 years!","Holly's favorite beach game is building the tallest sandcastle!"];m.useEffect(()=>{e&&(f(),d())},[e]);const f=()=>{const w=new Date,y=new Date(e).getTime()-w.getTime(),b=Math.ceil(y/(1e3*60*60*24));r(b)},d=()=>{const w=new Date().toDateString();if(o!==w&&n!==null&&n>0){a(w);const g=Math.min(i+1,10);l(g),u(!0),setTimeout(()=>u(!1),3e3),Lt.success("You've unlocked a Holly Fun Fact!",{description:h[g-1]||"Keep counting down!"})}},v=()=>n===null?"Let's set your holiday date!":n===0?"It's Holiday Time! I can't wait to see you at L & K Holidays!":n===1?"Only 1 more sleep until holiday fun begins!":n<0?"Hope you had an amazing holiday! Come back soon!":`Only ${n} more sleeps until holiday fun begins!`,p=()=>{if(n===null||n<=0)return 100;const w=30,g=Math.max(0,(w-n)/w*100);return Math.min(g,100)},x=async()=>{if(n!==null){const w=`Only ${n} sleeps until our L & K Holidays adventure! 🏖️`;try{await navigator.clipboard.writeText(w),Lt.success("Countdown copied to clipboard!",{description:"Share it with your friends and family!"})}catch{const y=document.createElement("textarea");y.value=w,document.body.appendChild(y),y.select(),document.execCommand("copy"),document.body.removeChild(y),Lt.success("Countdown copied to clipboard!")}}};return s.jsxs("div",{className:"max-w-4xl mx-auto space-y-6",children:[s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx("h1",{className:"text-4xl font-bold bg-gradient-to-r from-blue-600 to-orange-500 bg-clip-text text-transparent",children:"📱 How Many Sleeps Until Your Holiday?"}),s.jsx("p",{className:"text-lg text-gray-600",children:"Count down the days with Holly the Holiday Hero!"})]}),s.jsx(L,{className:"border-2 border-orange-200 bg-gradient-to-r from-blue-50 to-orange-50",children:s.jsx(z,{className:"p-6",children:s.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-4",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx(Yu,{className:"w-5 h-5 text-orange-600"}),s.jsx("label",{htmlFor:"holiday-date",className:"font-semibold text-gray-700",children:"When is your holiday starting?"})]}
418),s.jsx(hs,{id:"holiday-date",type:"date",value:e,onChange:w=>t(w.target.value),className:"max-w-xs"})]})})}),n!==null&&s.jsx(L,{className:"text-center p-8 bg-gradient-to-br from-yellow-50 to-orange-100 border-4 border-yellow-300",children:s.jsxs(z,{className:"space-y-6",children:[s.jsxs("div",{className:"space-y-4",children:[n>0&&s.jsx("div",{className:"text-8xl font-bold text-orange-600 animate-bounce",children:n}),n===0&&s.jsx("div",{className:"text-6xl animate-pulse",children:"🎉"}),s.jsxs("div",{className:"relative",children:[s.jsx("img",{src:"/lovable-uploads/263dee22-be77-4cdc-a5b2-03b4c38048be.png",alt:"Holly the Holiday Hero",className:`w-32 h-32 mx-auto object-contain ${n===0?"animate-bounce":"animate-pulse"}`}),s.jsxs("div",{className:"mt-4 p-4 bg-white rounded-xl shadow-lg border-2 border-orange-200 relative",children:[s.jsx("div",{className:"absolute -top-2 left-1/2 transform -translate-x-1/2 w-4 h-4 bg-white border-l-2 border-t-2 border-orange-200 rotate-45"}),s.jsxs("p",{className:"text-lg font-medium text-gray-700",children:["💬 ",v()]})]})]})]}),n>0&&s.jsxs(I,{onClick:x,className:"bg-orange-500 hover:bg-orange-600",children:[s.jsx(yb,{className:"w-4 h-4 mr-2"}),"Copy Countdown"]})]})}),n!==null&&n>0&&s.jsx(L,{className:"overflow-hidden bg-gradient-to-r from-blue-100 to-blue-200",children:s.jsxs(z,{className:"p-6",children:[s.jsx("h3",{className:"text-lg font-semibold mb-4 text-center text-blue-800",children:"Holly's Journey to Your Holiday! 🚐"}),s.jsxs("div",{className:"relative h-24 bg-gradient-to-r from-yellow-200 via-blue-200 to-green-200 rounded-lg overflow-hidden",children:[s.jsx("div",{className:"absolute bottom-0 w-full h-8 bg-gradient-to-r from-yellow-600 to-yellow-700"}),s.jsx("div",{className:"absolute bottom-2 transition-all duration-1000 ease-in-out",style:{left:`${p()}%`,transform:"translateX(-50%)"},children:s.jsx("div",{className:"text-4xl animate-bounce",children:"🚐"})}),s.jsxs("div",{className:"absolute right-4 bottom-2",children:[s.jsx(gr,{className:"w-8 h-8 text-red-500"}),s.jsx("span",{className:"text-xs font-bold text-red-600",children:"L & K Holidays"})]})]}),s.jsxs("div",{className:"mt-2 text-center text-sm text-gray-600",children:["Progress: ",Math.round(p()),"% there!"]})]})}),i>0&&s.jsx(L,{className:"border-2 border-purple-200 bg-purple-50",children:s.jsxs(z,{className:"p-6",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("h3",{className:"text-lg font-semibold text-purple-800",children:[s.jsx(dt,{className:"w-5 h-5 inline mr-2"}),"Holly's Fun Facts Collected"]}),s.jsxs(te,{variant:"secondary",className:"bg-purple-200 text-purple-800",children:[i,"/10"]})]}),s.jsx("div",{className:"grid grid-cols-5 gap-2",children:Array.from({length:10},(w,g)=>s.jsx("div",{className:`w-12 h-12 rounded-lg flex items-center justify-center text-2xl ${g<i?"bg-purple-200 border-2 border-purple-400":"bg-gray-100 border-2 border-gray-300"}`,children:g<i?"🌟":"🔒"},g))})]})}),c&&s.jsx("div",{className:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50",children:s.jsxs("div",{className:"bg-white p-8 rounded-xl text-center animate-scale-in",children:[s.jsx("div",{className:"text-6xl mb-4",children:"🎉"}),s.jsx("h3",{className:"text-2xl font-bold text-purple-600 mb-2",children:"New Fun Fact Unlocked!"}),s.jsx("p",{className:"text-gray-600",children:"Check your notifications!"})]})}),s.jsx("div",{className:"text-center text-sm text-gray-500 pt-8 border-t",children:s.jsx("p",{children:"© L & K Holidays - Making memories at Newport Caravan Park, Hemsby"})})]})},xf=({onStartGame:e})=>s.jsx("div",{className:"flex items-center justify-center min-h-screen p-4",children:s.jsx(L,{className:"max-w-md w-full bg-white/90 backdrop-blur-sm shadow-xl",children:s.jsxs(z,{className:"p-8 text-center",children:[s.jsx("h1",{className:"text-4xl font-bold mb-6 text-orange-600",children:"🧼 Dr. Rust Buster!"}),s.jsx("div",{className:"mb-6",children:s.jsx("img",{src:"/lovable-uploads/0e320cac-071d-4607-9ea4-f1199b4759e5.png",alt:"Holly ready to clean",className:"w-32 h-32 mx-auto object-contain rounded-lg"})}),s.jsx("h2",{className:"text-2xl font-semibold mb-4 text-blue-700",children:"Time to Bust the Rust!"}),s.jsx("p",{className:"text-lg text-gray-700 mb-6 leading-relaxed",children:"Tap on messes and rust to clean them up! Watch out — Dr. Rust is trying to take over the holiday park!"}),s.jsxs("div",{className:"space-y-2 mb-6 text-sm text-gray-600",children:[s.jsx("p",{children:"🎯 Tap rust patches to clean them (+1 point)"}),s.jsx("p",{children:"😈 Tap Dr. Rust to stun him"}),s.jsx("p",{children:"⭐ Tap Holly for bonus cleaning (+5 points)"}),s.jsx("p",{children:"⏰ You have 30 seconds!"})]}),s.jsx(I,{onClick:e,className:"bg-green-500 hover:bg-green-600 text-white text-xl px-8 py-4 rounded-full shadow-lg transform hover:scale-105 transition-all duration-200",children:"➡️ Start Cleaning!"})]})})}),ck=({onGameEnd:e})=>{const[t,n]=m.useState(0),[r,o]=m.useState(30),[a,i]=m.useState([]),[l,c]=m.useState(!1),u=()=>({x:Math.random()*80+5,y:Math.random()*70+15}),h=m.useCallback(()=>{const p={id:Math.random().toString(36).substr(2,9),...u(),type:"rust"};i(x=>[...x,p])},[]),f=m.useCallback(()=>
418{if(l)return;const p={id:"drrust-"+Math.random().toString(36).substr(2,9),...u(),type:"drrust"};i(x=>[...x.filter(w=>w.type!=="drrust"),p])},[l]),d=m.useCallback(()=>{const p={id:"holly-"+Math.random().toString(36).substr(2,9),...u(),type:"holly"};i(x=>[...x.filter(w=>w.type!=="holly"),p])},[]);m.useEffect(()=>{if(r>0){const p=setTimeout(()=>o(r-1),1e3);return()=>clearTimeout(p)}else e(t)},[r,t,e]),m.useEffect(()=>{const p=Array.from({length:3},()=>({id:Math.random().toString(36).substr(2,9),...u(),type:"rust"}));i(p)},[]),m.useEffect(()=>{const p=setInterval(()=>{Math.random()<.3&&f()},2e3);return()=>clearInterval(p)},[f]),m.useEffect(()=>{const p=setInterval(()=>{Math.random()<.2&&d()},3e3);return()=>clearInterval(p)},[d]),m.useEffect(()=>{const p=setInterval(()=>{a.filter(x=>x.type==="rust").length<5&&h()},1500);return()=>clearInterval(p)},[a,h]);const v=p=>{switch(p.type){case"rust":n(x=>x+1),i(x=>x.filter(w=>w.id!==p.id));break;case"drrust":c(!0),i(x=>x.filter(w=>w.id!==p.id)),setTimeout(()=>c(!1),3e3);break;case"holly":n(x=>x+5),i(x=>x.filter(w=>w.type!=="rust")),i(x=>x.filter(w=>w.id!==p.id));break}};return s.jsxs("div",{className:"min-h-screen relative bg-gradient-to-b from-blue-300 via-yellow-200 to-orange-200 overflow-hidden",style:{backgroundImage:"url('/lovable-uploads/1f9b991d-4267-47eb-b2f2-7ca37a652b20.png')",backgroundSize:"cover",backgroundPosition:"center",backgroundBlendMode:"overlay"},children:[s.jsxs("div",{className:"absolute top-4 left-4 right-4 flex justify-between items-center z-10",children:[s.jsx("div",{className:"bg-white/90 rounded-full px-4 py-2 shadow-lg",children:s.jsxs("span",{className:"text-xl font-bold text-blue-700",children:["Score: ",t]})}),s.jsx("div",{className:"bg-red-500/90 rounded-full px-4 py-2 shadow-lg",children:s.jsxs("span",{className:"text-xl font-bold text-white",children:["Time: ",r,"s"]})})]}),a.map(p=>s.jsxs(I,{onClick:()=>v(p),className:`absolute w-16 h-16 rounded-full shadow-xl transform hover:scale-110 transition-all duration-200 ${p.type==="rust"?"bg-orange-600 hover:bg-orange-700":p.type==="drrust"?"bg-red-700 hover:bg-red-800":"bg-green-500 hover:bg-green-600"}`,style:{left:`${p.x}%`,top:`${p.y}%`},children:[p.type==="rust"&&"🦠",p.type==="drrust"&&"😈",p.type==="holly"&&"⭐"]},p.id)),l&&s.jsx("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 bg-yellow-400 text-black px-4 py-2 rounded-full font-bold text-lg shadow-lg animate-bounce",children:"Dr. Rust Stunned! 😵"})]})},uk=({score:e,onPlayAgain:t})=>{const n=e>=20;return s.jsx("div",{className:"flex items-center justify-center min-h-screen p-4",children:s.jsx(L,{className:"max-w-md w-full bg-white/95 backdrop-blur-sm shadow-xl",children:s.jsxs(z,{className:"p-8 text-center",children:[s.jsx("div",{className:"mb-6",children:s.jsx("img",{src:"/lovable-uploads/0e320cac-071d-4607-9ea4-f1199b4759e5.png",alt:"Holly celebrating",className:"w-32 h-32 mx-auto object-contain rounded-lg"})}),s.jsx("h1",{className:"text-3xl font-bold mb-4 text-blue-700",children:"Great Job!"}),s.jsx("div",{className:"text-6xl font-bold text-orange-600 mb-4",children:e}),s.jsx("p",{className:"text-xl text-gray-700 mb-6",children:"Clean-Up Points!"}),n&&s.jsxs("div",{className:"bg-yellow-100 border-2 border-yellow-400 rounded-lg p-4 mb-6 animate-pulse",children:[s.jsx("h2",{className:"text-2xl font-bold text-yellow-700 mb-2",children:"🎉 Congratulations!"}),s.jsx("p",{className:"text-lg text-yellow-800",children:"You've earned a ⭐ Holly Clean-Up Star!"})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsx(I,{onClick:t,className:"w-full bg-green-500 hover:bg-green-600 text-white text-lg py-3 rounded-full shadow-lg",children:"🔁 Play Again"}),n&&s.jsx(I,{variant:"outline",className:"w-full border-2 border-yellow-500 text-yellow-700 hover:bg-yellow-50 text-lg py-3 rounded-full",onClick:()=>{navigator.share&&navigator.share({title:"Holly Clean-Up Star!",text:`I just earned a Holly Clean-Up Star with ${e} points in Dr. Rust Buster!`})},children:"🎁 Share Your Star"})]}),s.jsx("p",{className:"text-sm text-gray-500 mt-6",children:'Holly says: "Well done! The holiday park is sparkling clean!"'})]})})})},dk=()=>{const[e,t]=m.useState("start"),[n,r]=m.useState(0),o=()=>{t("playing")},a=c=>{r(c),t("end")},i=()=>{r(0),t("start")},l=()=>{switch(e){case"start":return s.jsx(xf,{onStartGame:o});case"playing":return s.jsx(ck,{onGameEnd:a});case"end":return s.jsx(uk,{score:n,onPlayAgain:i});default:return s.jsx(xf,{onStartGame:o})}};return s.jsx("div",{className:"min-h-screen bg-gradient-to-b from-blue-200 via-yellow-100 to-orange-200",children:l()})},hk=({onEarnCoins:e})=>{const[t,n]=m.useState(!1),[r,o]=m.useState(!1),[a,i]=m.useState(null),[l,c]=m.useState(!1),[u,h]=m.useState(!1),f=["/lovable-uploads/df2a559d-1385-4771-8edf-f2b909e32d13.png","/lovable-uploads/8a49d5f7-66d9-4450-9bf9-534e6d9fab16.png","/lovable-uploads/41fd6479
418-dba6-494b-ada6-b426895cdd7a.png","/lovable-uploads/aaa94c6e-3398-4f18-bcf9-bc065df9bf60.png","/lovable-uploads/b990d1ab-7abc-491b-9070-db8d08c04a59.png","/lovable-uploads/ebab248e-e1ca-4878-bf67-957f34255fe7.png"],d=[{id:"joke1",type:"joke",title:"Holly's Joke of the Day!",content:"Why don't seashells ever share? Because they're a little shellfish! 🐚",icon:s.jsx(Nb,{className:"w-8 h-8 text-yellow-500"})},{id:"coloring1",type:"coloring",title:"Holly's Beach Coloring Page!",content:"Color Holly's beach adventure and make it your own masterpiece!",icon:s.jsx(er,{className:"w-8 h-8 text-blue-500"}),coloringImage:f[0]},{id:"coloring2",type:"coloring",title:"Holly's Surprise Coloring Page!",content:"Create your own colorful version of Holly's magical world!",icon:s.jsx(er,{className:"w-8 h-8 text-purple-500"}),coloringImage:f[1]},{id:"coloring3",type:"coloring",title:"Holiday Fun Coloring Page!",content:"Color this special L&K Holidays scene with Holly!",icon:s.jsx(er,{className:"w-8 h-8 text-orange-500"}),coloringImage:f[2]},{id:"coloring4",type:"coloring",title:"Holly's Superhero Coloring Page!",content:"Make Holly shine in bright colors as your holiday hero!",icon:s.jsx(er,{className:"w-8 h-8 text-green-500"}),coloringImage:f[3]},{id:"coloring5",type:"coloring",title:"Holly's Postcard Coloring Page!",content:"Create your own special postcard to send to someone you love!",icon:s.jsx(er,{className:"w-8 h-8 text-pink-500"}),coloringImage:f[4]},{id:"coloring6",type:"coloring",title:"Holiday Caravan Coloring Page!",content:"Color this beautiful holiday caravan scene!",icon:s.jsx(er,{className:"w-8 h-8 text-indigo-500"}),coloringImage:f[5]},{id:"fact1",type:"fact",title:"Amazing Holiday Fact!",content:"Did you know? Hermit crabs can live up to 30 years and love to swap shells with friends!",icon:s.jsx(mt,{className:"w-8 h-8 text-purple-500"})},{id:"challenge1",type:"challenge",title:"Today's Beach Challenge!",content:`Try to hop on one foot 10 times while saying "Holly's Holiday Hero!" 🦶`,icon:s.jsx(xr,{className:"w-8 h-8 text-green-500"})},{id:"sticker1",type:"sticker",title:"Digital Sticker Unlocked!",content:"You've earned a special golden starfish sticker! ⭐🌟",icon:s.jsx(dt,{className:"w-8 h-8 text-orange-500"})},{id:"coins1",type:"coins",title:"Bonus Holly Coins!",content:"Holly found some extra coins on the beach for you!",icon:s.jsx(mo,{className:"w-8 h-8 text-yellow-600"}),bonus:10},{id:"game1",type:"game",title:"Mini Game Unlocked!",content:"Play Holly's special beach cleanup game to earn extra coins!",icon:s.jsx(P0,{className:"w-8 h-8 text-indigo-500"})},{id:"audio1",type:"audio",title:"Holly's Special Message!",content:"Listen to Holly's encouraging message about your holiday adventure!",icon:s.jsx(Po,{className:"w-8 h-8 text-pink-500"})}];m.useEffect(()=>{v(),p()},[]);const v=()=>{const y=new Date().toDateString();if(localStorage.getItem("hollys-surprise-date")===y){n(!0);const j=localStorage.getItem("hollys-surprise-today");j&&i(JSON.parse(j))}else n(!1)},p=()=>{const y=new Date,j=Math.floor((y.getTime()-new Date(y.getFullYear(),0,0).getTime())/(1e3*60*60*24))%d.length;i(d[j])},x=async()=>{t||!a||(o(!0),c(!0),setTimeout(()=>{c(!1),n(!0);const y=new Date().toDateString();localStorage.setItem("hollys-surprise-date",y),localStorage.setItem("hollys-surprise-today",JSON.stringify({...a,icon:null})),a.type==="coins"&&a.bonus&&e&&e(a.bonus),Lt.success("Surprise revealed!",{description:"Come back tomorrow for another magical surprise!"}),o(!1)},2e3))},w=()=>{if(a)switch(a.type){case"coloring":h(!0);break;case"game":Lt.info("Navigate to the Games section to play!",{description:"Holly's games are waiting for you!"});break;case"audio":Lt.info("Audio messages coming soon!",{description:"Holly is recording special messages for you!"});break}},g=()=>{a!=null&&a.coloringImage&&window.open(a.coloringImage,"_blank")};return u&&(a!=null&&a.coloringImage)?s.jsxs("div",{className:"max-w-4xl mx-auto space-y-8",children:[s.jsxs("div",{className:"text-center space-y-4",children:[s.jsxs("h1",{className:"text-4xl font-bold bg-gradient-to-r from-purple-600 to-pink-600 bg-clip-text text-transparent",children:["🎨 ",a.title]}),s.jsx("p",{className:"text-lg text-gray-600",children:"Your special coloring page is ready!"})]}),s.jsx(L,{className:"bg-white border-4 border-purple-200",children:s.jsx(z,{className:"p-8",children:s.jsxs("div",{className:"text-center space-y-6",children:[s.jsx("img",{src:a.c
418oloringImage,alt:"Holly's Coloring Page",className:"w-full max-w-2xl mx-auto border-2 border-gray-200 rounded-lg shadow-lg"}),s.jsxs("div",{className:"flex justify-center space-x-4",children:[s.jsxs(I,{onClick:g,className:"bg-blue-500 hover:bg-blue-600 text-white",children:[s.jsx(A0,{className:"w-4 h-4 mr-2"}),"Print Coloring Page"]}),s.jsx(I,{onClick:()=>h(!1),variant:"outline",children:"Back to Surprise"})]}),s.jsx("p",{className:"text-sm text-gray-500",children:'Tip: Right-click the image and select "Save image as..." to save it to your device!'})]})})})]}):s.jsxs("div",{className:"max-w-4xl mx-auto space-y-8",children:[s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx("h1",{className:"text-4xl font-bold bg-gradient-to-r from-purple-600 to-pink-600 bg-clip-text text-transparent",children:"🎁 Holly's Secret Surprise"}),s.jsx("p",{className:"text-lg text-gray-600",children:"One magical surprise every day with Holly the Holiday Hero!"})]}),s.jsx("div",{className:"text-center",children:s.jsxs("div",{className:"relative inline-block",children:[s.jsx("img",{src:"/lovable-uploads/263dee22-be77-4cdc-a5b2-03b4c38048be.png",alt:"Holly the Holiday Hero",className:`w-48 h-48 mx-auto object-contain ${r?"animate-bounce":"animate-pulse"}`}),l&&s.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:s.jsx("div",{className:"text-6xl animate-spin",children:"✨"})})]})}),s.jsx(L,{className:"relative overflow-hidden bg-gradient-to-br from-blue-50 via-purple-50 to-pink-50 border-4 border-purple-200",children:s.jsx(z,{className:"p-8",children:t?s.jsxs("div",{className:"text-center space-y-6",children:[s.jsx("div",{className:"text-6xl animate-bounce",children:a==null?void 0:a.icon}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs(te,{variant:"secondary",className:"bg-purple-200 text-purple-800 text-lg px-4 py-2",children:[s.jsx(Yu,{className:"w-4 h-4 mr-2"}),"Today's Surprise"]}),s.jsx("h2",{className:"text-3xl font-bold text-purple-800",children:a==null?void 0:a.title}),s.jsxs("div",{className:"max-w-2xl mx-auto p-6 bg-white rounded-xl border-2 border-purple-200 shadow-lg",children:[s.jsx("p",{className:"text-lg text-gray-700 leading-relaxed",children:a==null?void 0:a.content}),(a==null?void 0:a.bonus)&&s.jsxs("div",{className:"mt-4 flex items-center justify-center space-x-2",children:[s.jsx(mo,{className:"w-5 h-5 text-yellow-600"}),s.jsxs("span",{className:"font-bold text-yellow-600",children:["+",a.bonus," Holly Coins!"]})]})]}),((a==null?void 0:a.type)==="coloring"||(a==null?void 0:a.type)==="game"||(a==null?void 0:a.type)==="audio")&&s.jsxs(I,{onClick:w,variant:"outline",className:"border-purple-300 text-purple-700 hover:bg-purple-50",children:[a.type==="coloring"&&"View Coloring Page",a.type==="game"&&"Play Mini Game",a.type==="audio"&&"Listen Now"]})]})]}):s.jsxs("div",{className:"text-center space-y-6",children:[s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:`text-8xl cursor-pointer transition-transform duration-300 hover:scale-110 ${r?"animate-bounce":"animate-pulse"}`,onClick:x,children:"🎁"}),l&&s.jsxs("div",{className:"absolute inset-0 flex items-center justify-center",children:[s.jsx("div",{className:"text-4xl animate-ping",children:"✨"}),s.jsx("div",{className:"text-4xl animate-ping animation-delay-200",children:"🌟"}),s.jsx("div",{className:"text-4xl animate-ping animation-delay-400",children:"⭐"})]})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("h2",{className:"text-2xl font-bold text-purple-800",children:r?"Opening your surprise...":"Tap the treasure box!"}),s.jsx("p",{className:"text-gray-600",children:r?"Holly is preparing something magical!":"Your daily surprise is waiting inside!"}),!r&&s.jsxs(I,{onClick:x,className:"bg-gradient-to-r from-purple-500 to-pink-500 hover:from-purple-600 hover:to-pink-600 text-white text-lg px-8 py-3",disabled:r,children:[s.jsx(dt,{className:"w-5 h-5 mr-2"}),"Open Surprise!"]})]})]})})}),t&&s.jsx(L,{className:"bg-gradient-to-r from-yellow-50 to-orange-50 border-2 border-orange-200",children:s.jsxs(z,{className:"p-6 text-center",children:[s.jsx("div",{className:"text-4xl mb-4",children:"🌅"}),s.jsx("h3",{className:"text-2xl font-bold text-orange-800 mb-2",children:"See You Tomorrow!"}),s.jsx("p",{className:"text-orange-700",children:"Holly has another magical surprise waiting for you tomorrow morning!"}),s.jsx("p",{className:"text-sm text-orange-600 mt-2",children:"Come back at midnight for your next surprise! ⏰"})]})}),s.jsxs("div",{className:"text-center text-6xl space-x-4 opacity-50",children:[s.jsx("span",{children:"🏖️"}),s.jsx("span",{children:"🌊"}),s.jsx("span",{children:"🐚"}),s.jsx("span",{children:"⭐"}),s.jsx("span",{children:"🌺"})]}),s.jsx("div",{className:"text-center text-sm text-gray-500 pt-4 border-t",children:s.jsx("p",{children:"Holly's surprises reset every day at midnight! 🕛"})})]})},fk=({items:e,onItemMove:t,onTap:n})=>{const[r,o]=m.useState(null),a=(u,h)=>{o(h),n(),console.log("Drag started for item:",h.name)},i=u=>{if(u.preventDefault(),r){const h=u.currentTarget.getBoundingClientRect(),f=Math.max(0,Math.min(u.clientX-h.left-20,h.width-40)),d=Math.max(0,Math.min(u.clientY-h.top-20,h.height-40));console.log("Dropping item at:",f,d),t(r,f,d),o(null)}},l=u=>{u.preventDefault()},c=u=>{const h=Math.random()*200+50,f=Math.random()*150+50;t(u,h,f),n()};return s.jsx(L,{className:"relative overflow-hidden",children:s.jsxs("div",{className:"w-full h-96 bg-gradient-to-b from-sky-300 to-green-200 relative border-4 border-yellow-400 rounded-lg cursor-pointer",onDrop:i,onDragOver:l,onClick:n,style:{backgroundImage:`
419            radial-gradient(circle at 20% 20%, rgba(255,255,255,0.3) 2px, transparent 2px),
420            radial-gradient(circle at 80% 80%, rgba(255,255,255,0.3) 2px, transparent 2px),
421            linear-gradient(to bottom, #87CEEB 0%, #98FB98 100%)
422          `,backgroundSize:"50px 50px, 50px 50px, 100% 100%"},children:[s.jsxs("div",{className:"absolute bottom-0 left-1/2 transform -translate-x-1/2 w-64 h-32 bg-gradient-to-r from-orange-400 to-red-400 rounded-t-3xl border-4 border-yellow-600 shadow-lg",children:[s.jsx("div",{className:"absolute top-2 left-4 w-4 h-4 bg-yellow-300 rounded-full animate-pulse"}),s.jsx("div",{className:"absolute top-2 right-4 w-4 h-4 bg-yellow-300 rounded-full animate-pulse"}),s.jsx("div",{className:"absolute bottom-2 left-8 w-8 h-8 bg-gray-800 rounded-full border-2 border-gray-600"}),s.jsx("div",{className:"absolute bottom-2 right-8 w-8 h-8 bg-gray-800 rounded-full border-2 border-gray-600"}),s.jsx("div",{className:"absolute top-6 left-1/2 transform -translate-x-1/2 text-white font-bold text-sm",children:"Holly's Caravan"})]}),e.map(u=>s.jsx("div",{className:"absolute cursor-move hover:scale-110 transition-transform z-10",style:{left:Math.max(0,Math.min(u.x,300)),top:Math.max(0,Math.min(u.y,300)),userSelect:"none"},draggable:!0,onDragStart:h=>a(h,u),onClick:h=>{h.stopPropagation(),c(u)},children:s.jsx("div",{className:"text-3xl drop-shadow-lg transform hover:rotate-12 transition-transform animate-bounce",children:u.emoji})},`placed-${u.id}`)),e.length===0&&s.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:s.jsxs("div",{className:"text-center text-white bg-black bg-opacity-50 p-4 rounded-lg",children:[s.jsx("p",{className:"font-bold",children:"Drag decorations here!"}),s.jsx("p",{className:"text-sm",children:"Or click items in the decoration panel ✨"})]})}),s.jsx("div",{className:"absolute bottom-0 left-4 text-4xl animate-bounce",children:"🏖️"}),s.jsx("div",{className:"absolute top-4 right-8 text-2xl animate-pulse",children:"☀️"}),s.jsx("div",{className:"absolute top-8 left-8 text-xl animate-bounce delay-100",children:"☁️"}),s.jsx("div",{className:"absolute bottom-4 right-4 text-3xl animate-bounce delay-300",children:"🌊"})]})})},mk=({items:e,onItemSelect:t,onTap:n})=>{const r=[{type:"decoration",name:"Decorations",color:"bg-pink-100 border-pink-300"},{type:"furniture",name:"Furniture",color:"bg-blue-100 border-blue-300"}
422,{type:"accessory",name:"Accessories",color:"bg-green-100 border-green-300"}],o=a=>{if(a.unlocked){const i=Math.random()*250+50,l=Math.random()*200+50;console.log("Adding item to canvas:",a.name,"at position:",i,l),t(a,i,l),n()}else console.log("Item not unlocked:",a.name)};return s.jsxs("div",{className:"space-y-4",children:[s.jsx("h3",{className:"text-xl font-bold text-blue-600 text-center",children:"Decorations"}),r.map(a=>{const i=e.filter(l=>l.type===a.type);return i.length===0?null:s.jsxs(L,{className:`p-4 ${a.color}`,children:[s.jsx("h4",{className:"font-bold mb-3 text-center",children:a.name}),s.jsx("div",{className:"grid grid-cols-2 gap-3",children:i.map(l=>s.jsxs("div",{className:"relative",children:[s.jsxs(I,{variant:l.unlocked?"default":"secondary",className:`w-full h-20 flex flex-col items-center justify-center relative ${l.unlocked?"bg-white hover:bg-gray-50 text-gray-800 border-2 border-yellow-400 shadow-lg cursor-pointer":"bg-gray-200 cursor-not-allowed opacity-50"}`,onClick:()=>o(l),disabled:!l.unlocked,children:[!l.unlocked&&s.jsx(Sc,{className:"absolute top-1 right-1 w-3 h-3 text-gray-500"}),s.jsx("div",{className:`text-2xl ${l.unlocked?"animate-bounce":""}`,children:l.emoji}),s.jsx("div",{className:"text-xs mt-1 text-center leading-tight",children:l.name})]}),!l.unlocked&&s.jsx(te,{variant:"secondary",className:"absolute -bottom-2 left-1/2 transform -translate-x-1/2 text-xs bg-orange-100 text-orange-800 border-orange-300",children:l.unlockCondition})]},l.id))})]},a.type)}),s.jsxs(L,{className:"p-4 bg-yellow-100 border-yellow-300 text-center",children:[s.jsx("div",{className:"text-4xl mb-2",children:"🏆"}),s.jsx("p",{className:"text-sm text-yellow-800 font-medium",children:"Complete kind actions and daily tasks to unlock more decorations!"})]})]})},pk=({items:e,kindnessPoints:t,calmPoints:n,dailyTasks:r,onUnlock:o,onClose:a})=>{const i=h=>{var f,d,v;if(h.includes("Kindness")){const p=parseInt(((f=h.match(/\d+/))==null?void 0:f[0])||"0");return t>=p}if(h.includes("Calm")){const p=parseInt(((d=h.match(/\d+/))==null?void 0:d[0])||"0");return n>=p}if(h.includes("Daily")){const p=parseInt(((v=h.match(/\d+/))==null?void 0:v[0])||"0");return r>=p}return!1},l=e.filter(h=>h.unlocked),c=e.filter(h=>!h.unlocked&&i(h.unlockCondition)),u=e.filter(h=>!h.unlocked&&!i(h.unlockCondition));return s.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:s.jsx(L,{className:"max-w-2xl w-full max-h-[80vh] overflow-y-auto bg-gradient-to-b from-purple-100 to-pink-100",children:s.jsxs("div",{className:"p-6",children:[s.jsxs("div",{className:"flex justify-between items-center mb-6",children:[s.jsxs("h2",{className:"text-2xl font-bold text-purple-700 flex items-center gap-2",children:[s.jsx(dt,{className:"w-6 h-6"}),"Unlock Magical Items"]}),s.jsx(I,{variant:"ghost",onClick:a,children:s.jsx(Ro,{className:"w-5 h-5"})})]}),c.length>0&&s.jsxs("div",{className:"mb-6",children:[s.jsxs("h3",{className:"text-lg font-bold text-green-700 mb-3 flex items-center gap-2",children:[s.jsx(dt,{className:"w-5 h-5"}),"Ready to Unlock! 🎉"]}),s.jsx("div",{className:"grid gap-3",children:c.map(h=>s.jsx(L,{className:"p-4 bg-green-50 border-green-300",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"text-3xl animate-bounce",children:h.emoji}),s.jsxs("div",{children:[s.jsx("div",{className:"font-bold text-green-800",children:h.name}),s.jsx(te,{className:"bg-green-100 text-green-800",children:h.unlockCondition})]})]}),s.jsxs(I,{onClick:()=>o(h.id),className:"bg-green-500 hover:bg-green-600 text-white animate-pulse",children:[s.jsx(dt,{className:"w-4 h-4 mr-2"}),"Unlock!"]})]})},h.id))})]}),s.jsxs("div",{className:"mb-6",children:[s.jsxs("h3",{className:"text-lg font-bold text-blue-700 mb-3 flex items-center gap-2",children:[s.jsx(Gu,{className:"w-5 h-5"}),"Your Collection (",l.length,")"]}),s.jsx("div",{className:"grid grid-cols-3 gap-3",children:l.map(h=>s.jsxs(L,{className:"p-3 bg-blue-50 border-blue-300 text-center",children:[s.jsx("div",{className:"text-2xl mb-1",children:h.emoji}),s.jsx("div",{className:"text-sm font-medium text-blue-800",children:h.name})]}
422,h.id))})]}),s.jsxs("div",{children:[s.jsxs("h3",{className:"text-lg font-bold text-gray-700 mb-3 flex items-center gap-2",children:[s.jsx(Sc,{className:"w-5 h-5"}),"Keep Going! (",u.length,")"]}),s.jsx("div",{className:"grid gap-3",children:u.map(h=>s.jsx(L,{className:"p-4 bg-gray-50 border-gray-300",children:s.jsxs("div",{className:"flex items-center gap-3 opacity-60",children:[s.jsx(Sc,{className:"w-4 h-4 text-gray-500"}),s.jsx("div",{className:"text-2xl",children:h.emoji}),s.jsxs("div",{children:[s.jsx("div",{className:"font-bold text-gray-700",children:h.name}),s.jsx(te,{variant:"secondary",children:h.unlockCondition})]})]})},h.id))})]}),c.length===0&&s.jsxs(L,{className:"p-6 bg-yellow-50 border-yellow-300 text-center mt-4",children:[s.jsx("div",{className:"text-4xl mb-2",children:"🌟"}),s.jsx("p",{className:"text-yellow-800 font-medium",children:"Keep being kind and calm to unlock more magical items!"})]})]})})})},gk=({onClose:e})=>{const[t,n]=m.useState(!1),r=()=>{console.log("Taking screenshot of caravan..."),alert("Screenshot saved! 📸")},o=()=>{const a="Look at my magical caravan that I built with Holly the Holiday Hero! 🏕️✨ I've been practicing kindness and staying calm to unlock all these decorations!";navigator.share?navigator.share({title:"My Magical Caravan",text:a,url:window.location.href}):navigator.clipboard.writeText(a).then(()=>{n(!0),setTimeout(()=>n(!1),2e3)})};return s.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:s.jsx(L,{className:"max-w-md w-full bg-gradient-to-b from-yellow-100 to-orange-100",children:s.jsxs("div",{className:"p-6",children:[s.jsxs("div",{className:"flex justify-between items-center mb-6",children:[s.jsxs("h2",{className:"text-2xl font-bold text-orange-700 flex items-center gap-2",children:[s.jsx(kc,{className:"w-6 h-6"}),"Share Your Caravan"]}),s.jsx(I,{variant:"ghost",onClick:e,children:s.jsx(Ro,{className:"w-5 h-5"})})]}),s.jsxs("div",{className:"text-center mb-6",children:[s.jsx("div",{className:"text-6xl mb-4",children:"🏕️✨"}),s.jsx("p",{className:"text-orange-800 mb-4",children:"Show everyone your amazing caravan! You've worked so hard to make it magical."})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs(I,{onClick:r,className:"w-full bg-blue-500 hover:bg-blue-600 text-white text-lg py-3",children:[s.jsx(kc,{className:"w-5 h-5 mr-2"}),"Take Screenshot"]}),s.jsxs(I,{onClick:o,className:"w-full bg-green-500 hover:bg-green-600 text-white text-lg py-3",children:[s.jsx(Xu,{className:"w-5 h-5 mr-2"}),"Share with Friends"]}),t&&s.jsx("div",{className:"text-center text-green-700 font-medium animate-bounce",children:"✅ Copied to clipboard!"})]}),s.jsxs(L,{className:"mt-6 p-4 bg-pink-50 border-pink-300 text-center",children:[s.jsx(ct,{className:"w-6 h-6 mx-auto mb-2 text-pink-500"}),s.jsx("p",{className:"text-pink-800 text-sm",children:`"I'm so proud of your beautiful caravan, hero! Keep being kind and calm!" - Holly`})]})]})})})},xk=()=>{const[e,t]=m.useState([]),[n,r]=m.useState([]),[o,a]=m.useState(10),[i,l]=m.useState(8),[c,u]=m.useState(3),[h,f]=m.useState(!1),[d,v]=m.useState(!1),[p,x]=m.useState("Welcome to your magical caravan, hero! Let's make it amazing together!");m.useEffect(()=>{t([{id:"1",type:"decoration",name:"Fairy Lights",emoji:"✨",x:0,y:0,unlocked:!0,unlockCondition:"Free starter item!"},{id:"2",type:"furniture",name:"Cozy Chair",emoji:"🪑",x:0,y:0,unlocked:!0,unlockCondition:"Free starter item!"},{id:"3",type:"accessory",name:"Welcome Flag",emoji:"🏴",x:0,y:0,unlocked:!0,unlockCondition:"Free starter item!"},{id:"4",type:"decoration",name:"Rainbow Lights",emoji:"🌈",x:0,y:0,unlocked:!1,unlockCondition:"5 Kindness Points"},{id:"5",type:"furniture",name:"Reading Nook",emoji:"📚",x:0,y:0,unlocked:!1,unlockCondition:"3 Calm Points"},{id:"6",type:"accessory",name:"Dancing Seagulls",emoji:"🕊️",x:0,y:0,unlocked:!1,unlockCondition:"2 Daily Tasks"},{id:"7",type:"decoration",name:"Star Garland",emoji:"⭐",x:0,y:0,unlocked:!1,unlockCondition:"8 Kindness Points"},{id:"8",type:"furniture",name:"Tea Table",emoji:"🫖",x:0,y:0,unlocked:!1,unlockCondition:"5 Calm Points"},{id:"9",type:"accessory",name:"Wind Chimes",emoji:"🎐",x:0,y:0,unlocked:!1,unlockCondition:"4 Daily Tasks"}])},[]),m.useEffect(()=>{t(N=>N.map(S=>{if(!S.unlocked){const E=w(S.unlockCondition);return E&&(console.log("Auto-unlocking item:",S.name),x(`Amazing! You've unlocked ${S.name}! Your kindness and efforts are paying off, hero!`),g("unlock")),{...S,unlocked:E}}return S}))},[o,i,c]);const w=N=>
422{var S,E,C;if(N.includes("Kindness")){const T=parseInt(((S=N.match(/\d+/))==null?void 0:S[0])||"0");return o>=T}if(N.includes("Calm")){const T=parseInt(((E=N.match(/\d+/))==null?void 0:E[0])||"0");return i>=T}if(N.includes("Daily")){const T=parseInt(((C=N.match(/\d+/))==null?void 0:C[0])||"0");return c>=T}return!0},g=N=>{console.log(`Playing ${N} sound effect`)},y=(N,S,E)=>{const C={...N,x:S,y:E};r(P=>[...P.filter(O=>O.id!==N.id),C]),g("place");const T=["Beautiful choice, hero! Your caravan looks magical!","You're such a creative decorator! Holly loves it!","Amazing! Your caravan is becoming more wonderful!","Perfect placement! You have such great style!"];x(T[Math.floor(Math.random()*T.length)])},b=N=>{t(S=>S.map(E=>E.id===N?{...E,unlocked:!0}:E)),g("unlock"),x("Hooray! You've unlocked something magical! You're doing amazing, hero!")},j=N=>{N==="kindness"?(a(S=>S+1),x("Your kindness makes the world brighter! Keep being amazing!")):N==="calm"?(l(S=>S+1),x("Taking time to be calm shows real wisdom! You're growing stronger!")):N==="daily"&&(u(S=>S+1),x("Another task completed! You're building great habits, hero!")),g("unlock")};return s.jsx("div",{className:"min-h-screen bg-gradient-to-b from-sky-200 via-blue-100 to-yellow-100 p-4",children:s.jsxs("div",{className:"max-w-6xl mx-auto",children:[s.jsxs("div",{className:"text-center mb-6",children:[s.jsxs("h1",{className:"text-4xl font-bold text-blue-600 mb-2 flex items-center justify-center gap-2",children:[s.jsx(To,{className:"w-8 h-8"}),"Holly's Magical Caravan Builder"]}),s.jsx("p",{className:"text-lg text-blue-800",children:"Build your dream holiday home with Holly!"})]}),s.jsx(L,{className:"mb-6 bg-gradient-to-r from-pink-100 to-purple-100 border-2 border-pink-300",children:s.jsxs("div",{className:"p-4 flex items-center gap-4",children:[s.jsx("div",{className:"text-6xl",children:"🏕️"}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-bold text-purple-700 mb-1",children:"Holly says:"}),s.jsxs("p",{className:"text-purple-800 italic",children:['"',p,'"']})]})]})}),s.jsxs("div",{className:"grid grid-cols-3 gap-4 mb-6",children:[s.jsxs(L,{className:"p-4 text-center bg-red-50 border-red-200",children:[s.jsx(ct,{className:"w-6 h-6 mx-auto mb-2 text-red-500"}),s.jsx("div",{className:"font-bold text-red-700",children:"Kindness Points"}),s.jsx(te,{className:"mt-1 bg-red-100 text-red-800",children:o})]}),s.jsxs(L,{className:"p-4 text-center bg-blue-50 border-blue-200",children:[s.jsx(mt,{className:"w-6 h-6 mx-auto mb-2 text-blue-500"}),s.jsx("div",{className:"font-bold text-blue-700",children:"Calm Points"}),s.jsx(te,{className:"mt-1 bg-blue-100 text-blue-800",children:i})]}),s.jsxs(L,{className:"p-4 text-center bg-green-50 border-green-200",children:[s.jsx(dt,{className:"w-6 h-6 mx-auto mb-2 text-green-500"}),s.jsx("div",{className:"font-bold text-green-700",children:"Daily Tasks"}),s.jsx(te,{className:"mt-1 bg-green-100 text-green-800",children:c})]})]}),s.jsxs("div",{className:"flex justify-center gap-4 mb-6",children:[s.jsxs(I,{onClick:()=>j("kindness"),className:"bg-red-500 hover:bg-red-600 text-white",children:[s.jsx(ct,{className:"w-4 h-4 mr-2"}),"Do Something Kind"]}),s.jsxs(I,{onClick:()=>j("calm"),className:"bg-blue-500 hover:bg-blue-600 text-white",children:[s.jsx(mt,{className:"w-4 h-4 mr-2"}),"Practice Being Calm"]}),s.jsxs(I,{onClick:()=>j("daily"),className:"bg-green-500 hover:bg-green-600 text-white",children:[s.jsx(dt,{className:"w-4 h-4 mr-2"}),"Complete Daily Task"]})]}),s.jsxs("div",{className:"grid lg:grid-cols-3 gap-6",children:[s.jsx("div",{className:"lg:col-span-2",children:s.jsx(fk,{items:n,onItemMove:y,onTap:()=>g("tap")})}),s.jsx("div",{children:s.jsx(mk,{items:e,onItemSelect:y,onTap:()=>g("tap")})})]}),s.jsxs("div",{className:"flex justify-center gap-4 mt-6",children:[s.jsxs(I,{onClick:()=>f(!0),className:"bg-purple-500 hover:bg-purple-600 text-white",children:[s.jsx(dt,{className:"w-4 h-4 mr-2"}),"Check Unlocks"]}),s.jsxs(I,{onClick:()=>v(!0),className:"bg-yellow-500 hover:bg-yellow-600 text-white",children:[s.jsx(kc,{className:"w-4 h-4 mr-2"}),"Share My Caravan"]})]}),h&&s.jsx(pk,{items:e,kindnessPoints:o,calmPoints:i,dailyTasks:c,onUnlock:b,onClose:()=>f(!1)}),d&&s.jsx(gk,{onClose:()=>v(!1)})]})})},yk=()=>{const[e,t]=m.useState(null),n=o=>
422{t(e===o?null:o)},r=[{id:"food",title:"Food & Family Meals",icon:Cb,color:"bg-orange-500",content:{intro:"Fueling happy families and satisfying everyone's taste buds!",tips:["Beach Cafe - Great for quick snacks and ice creams, outdoor seating perfect for wiggly kids","The Lacon Arms - Family pub with play area, kids menu includes familiar favorites","Fish & Chips from Palmers - Classic seaside treat, perfect for beach picnics","Hemsby Beach Holiday Park Restaurant - Family dining with high chairs and children's portions","The Corner House Restaurant - Traditional British fare, accommodating staff for dietary needs","Scratby Garden Centre Cafe - Indoor/outdoor seating, fresh cakes, and adjacent playground","Newport Links Golf Club Restaurant - Family-friendly dining with golf course views (5 mins from Newport CP)","The Albion Inn (Hemsby) - Traditional pub food, beer garden, children welcome until 8pm","Winterton Beach Cafe - Seasonal opening, perfect for Winterton dunes visits","The Fishermans Return (Winterton) - Historic pub with family room and local ales","King Neptune (Horsey) - Beachside dining, famous for fresh crab sandwiches","Co-op Food Store - Stock up on familiar snacks and easy meal ingredients","Tesco Express (Great Yarmouth) - 10 mins drive for bigger weekly shop","Iceland (Caister) - Frozen favorites and easy meal solutions for caravan cooking","Spar (Winterton) - Convenient local shop for basics and newspapers","Pack backup snacks - Cereal bars, fruit pouches for energy dips or sensory needs","Beach picnics work wonders - Less pressure than restaurants, kids can move around","Many places offer takeaway - Perfect for eating back at your caravan base"],hollyTip:"Use Holly's Bedtime Helper after big meals to help little ones wind down!"}},{id:"activities",title:"Things to Do",icon:cs,color:"bg-blue-500",content:{intro:"Adventures for every energy level and sensory need!",tips:["Hemsby Beach - Endless digging, splashing, and running. Perfect for burning energy!","Hemsby Beach Holiday Park - Indoor and outdoor play areas, entertainment program","Winterton-on-Sea Beach & Dunes - Quieter beach, amazing for nature walks and seal spotting (10 mins from Newport)","California Cliffs - Stunning views and coastal walks (pushchair accessible paths)","Newport Links Golf Course - Mini golf and driving range, family-friendly (adjacent to Newport CP)","Horsey Windpump - Historic windmill with countryside walks (15 mins drive)","Horsey Beach - Famous for grey seals, less crowded than main beaches (15 mins)","Great Yarmouth Pleasure Beach - Classic rides and amusements (15 mins drive)","SEA LIFE Centre Great Yarmouth - Perfect rainy day activity, sensory-friendly environment","Thrigby Hall Wildlife Gardens - Animals and adventure playground (20 mins drive)","BeWILDerwood (Hoveton) - Treetop adventure park, brilliant for active kids (45 mins)","Caister Castle Car Boot Sale (Sundays) - Treasure hunting fun for all ages","Norfolk Broads boat trips - Calming water journeys from nearby Martham or Potter Heigham","Crazy golf at various locations - Good for focus and turn-taking practice","Beach hut hire - Your own quiet retreat when things get overwhelming","Early morning beach walks - Peaceful and less crowded for sensitive children","Rock pooling at low tide - Great for curious minds and gentle exploration","Scratby Garden Centre playground - Free play area with cafe nearby","Trinity Broads (Martham) - Boat hire and peaceful river walks (20 mins from Newport)","Somerton Hall Antiques Centre - Indoor browsing for rainy days, treasure hunting for older kids"],hollyTip:"Try Holly's Beach Cleanup game while exploring - it makes tidying up fun!"}},{id:"shops",title:"Shops & Essentials",icon:bb,color:"bg-green-500",content:{intro:"Everything you need for a stress-free stay!",tips:["Co-op Food Store (Hemsby) - Main grocery shopping, pharmacy section, cash machine","Spar Shop (Winterton) - Local convenience store, newspapers, basic groceries (10 mins from Newport)","Tesco Express (Great Yarmouth) - Larger selection, clothing, pharmacy, petrol station","Iceland (Caister-on-Sea) - Frozen foods, family packs, good for caravan cooking","Boots Pharmacy (Great Yarmouth) - Full pharmacy services, baby supplies, sun cream","Superdrug (Great Yarmouth) - Health and beauty essentials, family toiletries","Various Hemsby gift shops - Beach toys, buckets, spades, and emergency entertainment","Hemsby Beach Holiday Park shop - Basic essentials and holiday necessities","Caister Point Store - Local convenience shop with basics and newspapers","Great Yarmouth Market (Wed, Fri, Sat) - Fresh produce, clothes, toys, and local treats","Martham Village Stores - Local shop with essentials and friendly service (15 mins)","Potter Heigham stores - Several shops along the river, good for boating supplies","Winterton Post Office & Stores - Post services and general supplies","Cash machines - At Co-op Hemsby, holiday parks, and most Great Yarmouth locations","Post Office (Caister-on-Sea) - Postal services and basic banking","Argos (Great Yarmouth) - Useful for forgotten essentials, toys, and electronics","Beach equipment hire - Windbreaks, chairs, umbrellas available from several beach vend
422ors","Bike hire available - Several local shops offer family bike rental with child seats","Norfolk Broads Authority shops - Maps, guides, and boating accessories"],hollyTip:"Holly's Rewards system can motivate shopping trips - 'Help find 3 items' turns errands into games!"}},{id:"places",title:"Places to Visit",icon:gr,color:"bg-teal-500",content:{intro:"Amazing places to explore beyond the beach!",tips:["Great Yarmouth town center - Historic market place, shops, and Golden Mile attractions","Norfolk Broads - Beautiful waterways, perfect for boat trips and wildlife spotting","Caister-on-Sea Roman Fort - Ancient history site with information boards (free entry)","Horsey Beach & Seal Colony - See seals in their natural habitat (seasonal, 15 mins from Newport)","Horsey Windpump & Countryside - National Trust site with walks and history (15 mins)","Winterton-on-Sea village - Charming coastal village with dunes and nature reserve (10 mins)","Trinity Broads (Martham) - Peaceful waterways, boat hire, and river walks (20 mins)","Potter Heigham Bridge - Historic medieval bridge and bustling river village (25 mins)","Wroxham 'Capital of the Broads' - Boat hire, riverside walks, and Roy's department store","Norfolk Lavender (Heacham) - Stunning purple fields and family activities (1 hour drive)","Dinosaur Adventure (Lenwade) - Outdoor adventure park with dinosaur trail (1 hour)","Pettitts Animal Adventure Park (Reedham) - Family farm with rides and animals (30 mins)","Norwich City Center - Cathedral, castle, and excellent shopping (45 mins drive)","Sheringham and Cromer - Traditional seaside towns with pier and crab fishing","Hunstanton - Unique west-facing beach with famous striped cliffs (1.5 hours)","Ranworth Broad Nature Reserve - Peaceful wildlife watching and floating visitor center","Ludham village - Charming Broads village with shops and boat yards (25 mins)","How Hill Nature Reserve - Environmental center with walks and activities (30 mins)"],hollyTip:"Use Holly's Countdown feature to build excitement before day trips!"}},{id:"parent-tips",title:"Parent Tips",icon:ct,color:"bg-pink-500",content:{intro:"Real advice for real families - you've got this!",tips:["Lower expectations, increase flexibility - Holidays are different, and that's okay","Pack sensory comforts - Familiar blankets, headphones, or fidget toys","Plan for meltdowns - Know where quiet spaces are (your caravan, beach huts, quieter beach areas)","Embrace the chaos - Sand everywhere and late bedtimes are part of the magic","Use visual schedules - Even on holiday, structure helps some children feel secure","Tag team with your partner - Take turns for solo time and one-on-one attention","Remember: tired parents = tired decisions. Rest when you can!","Beach safety first - Always supervise near water, check tide times, use sun protection","Pack a 'boredom buster' bag - Small toys, snacks, and activities for unexpected waits","Local knowledge helps - Ask caravan park staff for insider tips and recommendations","Weather backup plans - Indoor activities ready for rainy Norfolk days","Medication reminders - Set phone alarms, pack extras, know local pharmacy locations","Photo opportunities - Capture memories but don't live through the camera lens","Newport CP advantages - Quieter location, close to Winterton dunes, easy Broads access","Seal watching tips - Best times are early morning or late afternoon, bring binoculars","Broads exploration - Hire a day boat from nearby Potter Heigham or Martham"],hollyTip:"Holly's Feelings section is perfect for helping children name emotions during exciting (or overwhelming) holiday moments!"}},{id:"emergency",title:"Emergency Info",icon:pb,color:"bg-red-500",content:{intro:"Important contacts for peace of mind (hopefully unused!)",tips:["NHS 111 - Non-emergency medical advice and guidance","999 - Emergency services (ambulance, fire, police)","James Paget University Hospital A&E - Lowestoft Road, Gorleston-on-Sea (20 mins drive)","Norfolk & Norwich University Hospital - Colney Lane, Norwich (45 mins drive)","Boots Pharmacy Great Yarmouth - Market Place, Great Yarmouth (15 mins drive)","Caister Medical Centre - High Street, Caister-on-Sea (walk-in 
422services)","Great Yarmouth Medical Centre - Northgate Street (urgent appointments)","Coastguard - 999 or HM Coastguard Rescue for beach emergencies","Hemsby Lifeboat Station - Beach rescue and water safety emergencies","Norfolk Police non-emergency - 101 for non-urgent matters","Local Tourist Information - Great Yarmouth, for general help and directions","Caravan park emergency contacts - Always get these on arrival","Save these numbers in your phone before you need them!","What3Words app - Helpful for precise location sharing in emergencies","Newport Caravan Park office - For on-site emergencies and assistance","Winterton Coastguard - Local coastal rescue services"],hollyTip:"Hopefully you won't need these, but Holly believes in being prepared for anything!"}},{id:"holly-tips",title:"Holly Hero Tips",icon:mt,color:"bg-purple-500",content:{intro:"Making the most of your magical Holly companion around Hemsby!",tips:["Bedtime Helper - Perfect for caravan bedtimes when routines are disrupted","Beach Cleanup Game - Turn beach exploring into an interactive adventure","Feelings Check-ins - Use throughout the day to help children process holiday excitement","Daily Surprises - Check Holly's surprise each morning for extra holiday magic","Countdown Timer - Great for 'five more minutes' beach warnings or activity transitions","Stories - Perfect for caravan quiet time or evening wind-down","Reward System - 'Help pack the car' or 'try new food' become achievement unlocks!","Caravan Builder - Let kids design their dream holiday home while you plan the day","Emotional Learning - Brilliant for processing new experiences and big feelings","Use Holly during travel - Games and activities for car journeys to attractions","Evening routine - Holly's tools help maintain bedtime structure away from home","Rainy day companion - Indoor activities when Norfolk weather doesn't cooperate"],hollyTip:"Holly is designed to be your family's holiday sidekick - use her tools whenever life needs a little extra magic!"}},{id:"feedback",title:"Feedback & Contact",icon:hb,color:"bg-indigo-500",content:{intro:"We'd love to hear from you! Your feedback helps us make holidays even better.",tips:["Share your Hemsby holiday experiences - What worked well for your family?","Tell us about Holly's app features - Which tools were most helpful?","Suggest improvements - What would make your next visit even easier?","Report any issues - Problems with accommodations, facilities, or local services","Ask questions - Planning your next visit or need local recommendations?","Special needs support - Let us know how we can better accommodate your family","Photo submissions - Share your magical Hemsby moments (with permission)","Holiday tips from families - Your advice could help other parents!","Accessibility feedback - Help us improve access for all families","Local business recommendations - Found a hidden gem? Tell us about it!","Seasonal updates - What's different during your visit time?","Emergency improvements - Suggestions for our safety information"],hollyTip:"Holly loves hearing from families! Your stories help make the app even more magical for everyone."}}];return s.jsx("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 via-orange-50 to-pink-50 p-4",children:s.jsxs("div",{className:"max-w-4xl mx-auto",children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsx("div",{className:"mb-6",children:s.jsx("img",{src:"/lovable-uploads/263dee22-be77-4cdc-a5b2-03b4c38048be.png",alt:"Holly the Holiday Hero",className:"w-32 h-32 mx-auto object-contain"})}),s.jsx("h1",{className:"text-4xl font-bold mb-4 bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:"Grown-Up Zone"}),s.jsx("p",{className:"text-lg text-gray-600 mb-4 max-w-2xl mx-auto",children:"Your friendly guide to Hemsby with children - especially those with ADHD. Real advice for real families making magical memories."}),s.jsxs(te,{className:"bg-orange-100 text-orange-800 text-base px-4 py-2",children:[s.jsx(E0,{className:"w-4 h-4 mr-2"}),"Parent-Friendly Tips Inside"]})]}),s.jsx(L,{className:"mb-8 bg-gradient-to-r from-yellow-100 to-orange-100 border-2 border-orange-200",children:s.jsxs(z,{className:"p-6 text-center",children:[s.jsx("div",{className:"text-6xl mb-4",children:"👋"}),s.jsx("p",{className:"text-orange-800 text-lg mb-4",children:`"Welcome to your parent headquarters, heroes! I know holidays with little ones can feel like juggling sand castles in a hurricane - but you're doing amazing. This guide is packed with practical tips from families who've been there. Take a deep breath, grab a cuppa, and let's make this holiday magical for everyone!"`}),s.jsx("p",{className:"text-orange-600 font-medium",children:"- Holly 💕"})]})}),s.jsx("div",{className:"space-y-4",children:r.map(o=>s.jsxs(L,{className:"overflow-hidden hover:shadow-lg transition-all duration-300",children:[s.jsx(He,{className:"cursor-pointer",onClick:()=>n(o.id),children:s.jsxs(Ie,{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:`${o.color} rounded-full w-12 h-12 flex items-center justify-center shadow-md`,children:s.jsx(o.icon,{className:"w-6 h-6 text-white"})}),s.jsx("span",{className:"text-xl",children:o.title})]}),e===o.id?s.jsx(rb,{className:"w-5 h-5 text-gray-500"}):s.jsx(nb,{className:"w-5 h-5 text-gray-500"})]})}),e===o.id&&s.jsxs(z,{className:"pt-0",children:[s.jsx("p",{className:"text-gray-600 mb-4 italic",children:o.content.intro}),o.content.tips.length>0&&s.jsx("div",{className:"space-y-2 mb-6",children:o.content.tips.map((a,i)=>s.jsxs("div",{className:"flex items-start space-x-3",children:[s.jsx("div",{className:"w-2 h-2 bg-blue-400 rounded-full mt-2 flex-shrink-0"}),s.jsx("p",{className:"text-gray-700",children:a})]},i))}),o.id==="feedback"&&s.jsx(L,{className:"bg-indigo-50 border-indigo-200 mb-6",children:s.jsxs(z,{className:"p-4",children:[s.jsxs("div",{className:"flex items-center space-x-3 mb-3",children:[s.jsx(Ku,{className:"w-5 h-5 text-indigo-600"}),s.jsx("h4",{className:"font-medium text-indigo-800",children:"Get in Touch"})]}),s.jsxs("p",{className:"text-indigo-700 mb-2",children:["Email us at: ",s.jsx("a",{href:"mailto:[email protected]",className:"font-medium underline hover:text-indigo-900",children:"[email protected]"})]}),s.jsx("p",{className:"text-indigo-600 text-sm",children:"We aim to respond to all feedback within 48 hours. Your input helps us create even better holiday experiences!"})]})}),s.jsx(L,{className:"bg-purple-50 border-purple-200",children:s.jsx(z,{className:"p-4",children:s.jsxs("div",{className:"flex items-start space-x-3",children:[s.jsx(mt,{className:"w-5 h-5 text-purple-500 mt-1 flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium text-purple-800 mb-1",children:"Holly's Tip:"}),s.jsx("p",{className:"text-purple-700",children:o.content.hollyTip})]})]})})})]})]},o.id))}),s.jsx(L,{className:"mt-8 bg-gradient-to-r from-green-100 to-blue-100 border-2 border-green-200",children:s.jsxs(z,{className:"p-6 text-center",children:[s.jsxs("div",{className:"flex justify-center items-center space-x-2 mb-4",children:[s.jsx(Sb,{className:"w-6 h-6 text-green-600"}),s.jsx(ct,{className:"w-6 h-6 text-pink-500"}),s.jsx(To,{className:"w-6 h-6 text-blue-600"})]}),s.jsx("p",{className:"text-gray-700 text-lg mb-4",children:"Remember: There's no such thing as a perfect holiday, only perfect moments. Focus on connection, not perfection. You're creating memories, not magazine covers!"}),s.jsx("p",{className:"text-gray-600 font-medium",children:"Need more Holly magic? Explore the other sections of the app for activities, games, and tools designed to support your family's adventure."})]})})]})})},vk=()=>{const[e,t]=m.useState(0),n=[{title:"Jellyfish Have No Brain! 🎐",content:"Did you know jellyfish have been floating around our oceans for over 500 million years without a brain, heart, or blood? They're basically living water balloons with superpowers!",icon:"🪼",funElement:"They're 95% water - just like a wobbly jelly!"},{title:"Seahorses Are Terrible Swimmers! 🌊",content:"Seahorses are probably the worst swimmers in the sea! They're so bad at swimming that they can actually die of exhaustion in strong currents. But hey, they're the only fish where daddy carries the babies!",icon:"🐴",funElement:"They hold on to seaweed with their curly tail
422s like underwater monkeys!"},{title:"Crabs Walk Sideways for a Reason! 🦀",content:"Crabs walk sideways because their legs bend outward! It's like trying to walk with your knees pointing the wrong way. But this makes them super fast escape artists!",icon:"🦀",funElement:"Some crabs can run as fast as you can walk!"},{title:"Sand is Made of Tiny Shells! 🏖️",content:"Most beach sand is actually made from millions of tiny broken shells, coral pieces, and fish poop! Yes, you heard that right - fish poop! But don't worry, it's been cleaned by the ocean for thousands of years.",icon:"🐚",funElement:"One parrotfish can make 200 pounds of sand per year!"},{title:"Seagulls Can Drink Seawater! 🕊️",content:"Seagulls have special salt glands above their eyes that filter out salt from seawater. It's like having a built-in water purifier! The extra salt drips out of their beaks.",icon:"🕊️",funElement:"They basically have superhero water powers!"},{title:"Starfish Can Regrow Their Arms! ⭐",content:"If a starfish loses an arm, it can grow a whole new one! Some starfish can even grow into a completely new starfish from just one arm. Talk about amazing superpowers!",icon:"⭐",funElement:"It's like having a magical regeneration spell!"}],r=()=>{t(i=>(i+1)%n.length)},o=()=>{t(i=>(i-1+n.length)%n.length)},a=n[e];return s.jsxs("div",{className:"max-w-4xl mx-auto",children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsx("div",{className:"text-6xl mb-4 animate-bounce",children:"🌊"}),s.jsx("h2",{className:"text-3xl font-bold mb-4 text-blue-600",children:"Seaside Secrets"}),s.jsx("p",{className:"text-lg text-gray-600",children:"Amazing facts about our wonderful seaside world!"})]}),s.jsxs(L,{className:"mb-8 shadow-lg border-2 border-blue-200 bg-gradient-to-br from-blue-50 to-cyan-50",children:[s.jsxs(He,{className:"text-center pb-4",children:[s.jsx("div",{className:"text-8xl mb-4 animate-pulse",children:a.icon}),s.jsx(Ie,{className:"text-2xl text-blue-700",children:a.title})]}),s.jsxs(z,{className:"text-center",children:[s.jsx("p",{className:"text-lg mb-6 leading-relaxed",children:a.content}),s.jsx("div",{className:"bg-yellow-100 border-2 border-yellow-300 rounded-lg p-4 mb-6",children:s.jsxs("p",{className:"font-bold text-yellow-800 flex items-center justify-center",children:[s.jsx(cs,{className:"w-5 h-5 mr-2"}),"Holly's Fun Fact: ",a.funElement]})}),s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsxs(I,{onClick:o,variant:"outline",className:"border-blue-300 hover:bg-blue-50",children:[s.jsx(Ni,{className:"w-4 h-4 mr-2"}),"Previous"]}),s.jsx("div",{className:"flex space-x-2",children:n.map((i,l)=>s.jsx("div",{className:`w-3 h-3 rounded-full transition-all ${l===e?"bg-blue-500 scale-125":"bg-blue-200"}`},l))}),s.jsxs(I,{onClick:r,variant:"outline",className:"border-blue-300 hover:bg-blue-50",children:["Next",s.jsx(ki,{className:"w-4 h-4 ml-2"})]})]})]})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[s.jsxs(L,{className:"text-center p-4 hover:shadow-lg transition-all hover:scale-105",children:[s.jsx(ib,{className:"w-8 h-8 mx-auto mb-2 text-blue-500"}),s.jsx("h3",{className:"font-bold text-blue-600",children:"Sea Creatures"}),s.jsx("p",{className:"text-sm text-gray-600",children:"Discover amazing ocean animals"})]}),s.jsxs(L,{className:"text-center p-4 hover:shadow-lg transition-all hover:scale-105",children:[s.jsx(cs,{className:"w-8 h-8 mx-auto mb-2 text-cyan-500"}),s.jsx("h3",{className:"font-bold text-cyan-600",children:"Ocean Wonders"}),s.jsx("p",{className:"text-sm text-gray-600",children:"Learn about waves and tides"})]}),s.jsxs(L,{className:"text-center p-4 hover:shadow-lg transition-all hover:scale-105",children:[s.jsx(vb,{className:"w-8 h-8 mx-auto mb-2 text-orange-500"}),s.jsx("h3",{className:"font-bold text-orange-600",children:"Beach Treasures"}),s.jsx("p",{className:"text-sm text-gray-600",children:"Find out about shells and sand"})]})]})]})},wk=()=>{const[e,t]=m.useState(0),n=[{title:"Holly's Magical Birth! ✨",content:"Once upon a time, a shooting star fell into the sea near Hemsby and mixed with the love of a thous
422and holiday families. From this magical mixture, Holly was born - part caravan, part holiday spirit, all heart! She chose to help families make the most wonderful memories together.",icon:"🌟",funElement:"Holly's cape is woven from sunset colors and seaside dreams!"},{title:"The First Caravan Holiday! 🏕️",content:"The very first caravan holiday happened over 100 years ago! A clever person attached wheels to a little house and said 'Let's take our home on an adventure!' It was like inventing the world's first mobile bedroom.",icon:"🏠",funElement:"The first caravans were pulled by horses - imagine clip-clopping to the beach!"},{title:"Caravans Have Secret Powers! 🔮",content:"Every caravan has the magical power to turn strangers into friends, rainy days into cozy adventures, and ordinary weekends into unforgettable memories. Holly believes that's the most important magic of all!",icon:"🎪",funElement:"Holly says caravans are like happiness machines with wheels!"},{title:"The Smallest Caravan Ever! 🐭",content:"The world's smallest caravan is only about as big as a bathtub! It's so tiny that you'd have to crawl inside, but it has everything you need - a bed, a tiny kitchen, and even a little window to peek out of.",icon:"🛁",funElement:"It's perfect for mouse-sized holidays!"},{title:"Holiday Traditions Started Here! 🎉",content:"Many of our favorite holiday traditions started in seaside towns like Hemsby! Building sandcastles, eating fish and chips by the sea, and collecting shells all began as simple seaside pleasures that families loved so much, they became traditions.",icon:"🏰",funElement:"Holly helped start the tradition of making friends with seagulls!"},{title:"Caravans Are Time Machines! ⏰",content:"Holly discovered that caravans are actually time machines! They can transport you back to simpler times when the biggest worry was whether to have ice cream before or after lunch. Step inside, and suddenly you're living in holiday time!",icon:"⏰",funElement:"In holiday time, every minute feels like an adventure!"}],r=()=>{t(i=>(i+1)%n.length)},o=()=>{t(i=>(i-1+n.length)%n.length)},a=n[e];return s.jsxs("div",{className:"max-w-4xl mx-auto",children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsx("div",{className:"text-6xl mb-4 animate-bounce",children:"🏕️"}),s.jsx("h2",{className:"text-3xl font-bold mb-4 text-orange-600",children:"Caravan Curiosities"}),s.jsx("p",{className:"text-lg text-gray-600",children:"Discover the magic behind holidays and Holly's own story!"})]}),s.jsxs(L,{className:"mb-8 shadow-lg border-2 border-orange-200 bg-gradient-to-br from-orange-50 to-yellow-50",children:[s.jsxs(He,{className:"text-center pb-4",children:[s.jsx("div",{className:"text-8xl mb-4 animate-pulse",children:a.icon}),s.jsx(Ie,{className:"text-2xl text-orange-700",children:a.title})]}),s.jsxs(z,{className:"text-center",children:[s.jsx("p",{className:"text-lg mb-6 leading-relaxed",children:a.content}),s.jsx("div",{className:"bg-purple-100 border-2 border-purple-300 rounded-lg p-4 mb-6",children:s.jsxs("p",{className:"font-bold text-purple-800 flex items-center justify-center",children:[s.jsx(xr,{className:"w-5 h-5 mr-2"}),"Holly's Magic Touch: ",a.funElement]})}),s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsxs(I,{onClick:o,variant:"outline",className:"border-orange-300 hover:bg-orange-50",children:[s.jsx(Ni,{className:"w-4 h-4 mr-2"}),"Previous"]}),s.jsx("div",{className:"flex space-x-2",children:n.map((i,l)=>s.jsx("div",{className:`w-3 h-3 rounded-full transition-all ${l===e?"bg-orange-500 scale-125":"bg-orange-200"}`},l))}),s.jsxs(I,{onClick:r,variant:"outline",className:"border-orange-300 hover:bg-orange-50",children:["Next",s.jsx(ki,{className:"w-4 h-4 ml-2"})]})]})]})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[s.jsxs(L,{className:"text-center p-4 hover:shadow-lg transition-all hover:scale-105",children:[s.jsx(To,{className:"w-8 h-8 mx-auto mb-2 text-orange-500"}),s.jsx("h3",{className:"font-bold text-orange-600",children:"Holiday Homes"}),s.jsx("p",{className:"text-sm text-gray-600",children:"Mobile magic on wheels"})]}),s.jsxs(L,{className:"text-center p-4 hover:shadow-lg transition-all hover:scale-105",children:[s.jsx(xr,{className:"w-8 h-8 mx-auto mb-2 text-purple-500"}),s.jsx("h3",{className:"font-bold text-purple-600",children:"Holly's Magic"}),s.jsx("p",{className:"text-sm text-gray-600",children:"The spirit of holidays"})]}),s.jsxs(L,{className:"text-center p-4 hover:shadow-lg transition-all hover:scale-105",children:[s.jsx(ct,{className:"w-8 h-8 mx-auto mb-2 text-pink-500"}),s.jsx("h3",{className:"font-bold text-pink-600",children:"Family Fun"}),s.jsx("p",{className:"text-sm text-gray-600",children:"Making memories together"})]})]})]})},bk=()=>{const[e,t]=m.useState(0),n=[{title:"The Hemsby Pirates! 🏴‍☠️",content:"Long ago, pirates used to hide their treasure along the Norfolk coast! Legend says that Captain Blackbeard himself buried a chest of golden coins somewhere near Hemsby. Local fishermen still find old coins on the beach sometimes - maybe they're from pirate treasure!",icon:"🏴‍☠️",funElement:"Holly once found a shiny button that might have belonged to a pirate captain!"},{title:"The Brave Hemsby Lifeboat! 🚤",content:"For over 150 years, the brave volunteers of Hemsby lifeboat have rescued people from the dangerous North Sea. They've saved thous
422ands of lives! The lifeboat crew are real-life heroes who rush out in storms to help anyone in trouble.",icon:"🚤",funElement:"Holly cheers for the lifeboat crew - they're her real-life superheroes!"},{title:"The Disappearing Village! 🏘️",content:"Did you know that parts of old Hemsby have actually fallen into the sea? The cliffs are slowly being eaten away by the waves, and some houses that were once far from the beach are now right on the edge! It's like the sea is playing a very slow game of Pac-Man.",icon:"🌊",funElement:"Holly helps the sea and land stay friends by bringing them holiday joy!"},{title:"The Great Seal Colony! 🦭",content:"Every winter, hundreds of grey seals come to the beaches near Hemsby to have their babies! These seal families create a massive seal nursery right on the beach. Baby seals are called pups, and they're as cute as the name sounds!",icon:"🦭",funElement:"Holly loves to watch the seal families and wishes them happy holidays too!"},{title:"The Ancient Dunes! 🏜️",content:"The sand dunes around Hemsby are thousands of years old! They were formed by wind and waves working together like nature's own construction team. Some of the plants growing there have been living in the same sandy spot for hundreds of years!",icon:"🌾",funElement:"Holly thinks the dunes are like nature's own bouncy castles!"},{title:"The Lighthouse Stories! 💡",content:"The lighthouses along the Norfolk coast have guided ships safely home for centuries. Each lighthouse has its own special pattern of light flashes - it's like they're speaking in a secret code to the ships! Sailors can tell which lighthouse they're seeing just by counting the flashes.",icon:"💡",funElement:"Holly learned lighthouse language and uses it to say 'Welcome!' to holiday visitors!"}],r=()=>{t(i=>(i+1)%n.length)},o=()=>{t(i=>(i-1+n.length)%n.length)},a=n[e];return s.jsxs("div",{className:"max-w-4xl mx-auto",children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsx("div",{className:"text-6xl mb-4 animate-bounce",children:"🏴‍☠️"}),s.jsx("h2",{className:"text-3xl font-bold mb-4 text-green-600",children:"Local Legends"}),s.jsx("p",{className:"text-lg text-gray-600",children:"Amazing stories and history from our special Hemsby area!"})]}),s.jsxs(L,{className:"mb-8 shadow-lg border-2 border-green-200 bg-gradient-to-br from-green-50 to-emerald-50",children:[s.jsxs(He,{className:"text-center pb-4",children:[s.jsx("div",{className:"text-8xl mb-4 animate-pulse",children:a.icon}),s.jsx(Ie,{className:"text-2xl text-green-700",children:a.title})]}),s.jsxs(z,{className:"text-center",children:[s.jsx("p",{className:"text-lg mb-6 leading-relaxed",children:a.content}),s.jsx("div",{className:"bg-amber-100 border-2 border-amber-300 rounded-lg p-4 mb-6",children:s.jsxs("p",{className:"font-bold text-amber-800 flex items-center justify-center",children:[s.jsx(gr,{className:"w-5 h-5 mr-2"}),"Holly's Local Knowledge: ",a.funElement]})}),s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsxs(I,{onClick:o,variant:"outline",className:"border-green-300 hover:bg-green-50",children:[s.jsx(Ni,{className:"w-4 h-4 mr-2"}),"Previous"]}),s.jsx("div",{className:"flex space-x-2",children:n.map((i,l)=>s.jsx("div",{className:`w-3 h-3 rounded-full transition-all ${l===e?"bg-green-500 scale-125":"bg-green-200"}`},l))}),s.jsxs(I,{onClick:r,variant:"outline",className:"border-green-300 hover:bg-green-50",children:["Next",s.jsx(ki,{className:"w-4 h-4 ml-2"})]})]})]})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[s.jsxs(L,{className:"text-center p-4 hover:shadow-lg transition-all hover:scale-105",children:[s.jsx(wb,{className:"w-8 h-8 mx-auto mb-2 text-blue-500"}),s.jsx("h3",{className:"font-bold text-blue-600",children:"Maritime History"}),s.jsx("p",{className:"text-sm text-gray-600",children:"Pirates, ships, and sea adventures"})]}),s.jsxs(L,{className:"text-center p-4 hover:shadow-lg transition-all hover:scale-105",children:[s.jsx(tb,{className:"w-8 h-8 mx-auto mb-2 text-green-500"}),s.jsx("h3",{className:"font-bold text-green-600",children:"Coastal Life"}),s.jsx("p",{className:"text-sm text-gray-600",children:"Life by the wonderful sea"})]}),s.jsxs(L,{className:"text-center p-4 hover:shadow-lg transition-all hover:scale-105",children:[s.jsx(gr,{className:"w-8 h-8 mx-auto mb-2 text-red-500"}),s.jsx("h3",{className:"font-bold text-red-600",children:"Local Heroes"}),s.jsx("p",{className:"text-sm text-gray-600",children:"Real people doing amazing things"})]})]})]})};function jk(e,t=[]){let n=[];function r(a,i){const l=m.createContext(i),c=n.length;n=[...n,i];function u(f){const{scope:d,children:v,...p}=f,x=(d==null?void 0:d[e][c])||l,w=m.useMemo(()=>p,Object.values(p));return s.jsx(x.Provider,{value:w,children:v})}function h(f,d){const v=(d==null?void 0:d[e][c])||l,p=m.useContext(v);if(p)return p;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return u.displayName=a+"Provider",[u,h]}const o=()=>{const a=n.map(i=>m.createContext(i));return function(l){const c=(l==null?void 0:l[e])||a;return m.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,Nk(o,...t)]}function Nk(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));
vendor: 5,829 bytes, line 422
422return function(a){const i=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(a)[`__scope${u}`];return{...l,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var jl="rovingFocusGroup.onEntryFocus",kk={bubbles:!1,cancelable:!0},_i="RovingFocusGroup",[Bc,tx,Sk]=$u(_i),[Ck,nx]=jk(_i,[Sk]),[Ek,Tk]=Ck(_i),rx=m.forwardRef((e,t)=>s.jsx(Bc.Provider,{scope:e.__scopeRovingFocusGroup,children:s.jsx(Bc.Slot,{scope:e.__scopeRovingFocusGroup,children:s.jsx(Pk,{...e,ref:t})})}));rx.displayName=_i;var Pk=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:h=!1,...f}=e,d=m.useRef(null),v=Te(t,d),p=fd(a),[x=null,w]=yi({prop:i,defaultProp:l,onChange:c}),[g,y]=m.useState(!1),b=It(u),j=tx(n),N=m.useRef(!1),[S,E]=m.useState(0);return m.useEffect(()=>{const C=d.current;if(C)return C.addEventListener(jl,b),()=>C.removeEventListener(jl,b)},[b]),s.jsx(Ek,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:x,onItemFocus:m.useCallback(C=>w(C),[w]),onItemShiftTab:m.useCallback(()=>y(!0),[]),onFocusableItemAdd:m.useCallback(()=>E(C=>C+1),[]),onFocusableItemRemove:m.useCallback(()=>E(C=>C-1),[]),children:s.jsx(he.div,{tabIndex:g||S===0?-1:0,"data-orientation":r,...f,ref:v,style:{outline:"none",...e.style},onMouseDown:ne(e.onMouseDown,()=>{N.current=!0}),onFocus:ne(e.onFocus,C=>{const T=!N.current;if(C.target===C.currentTarget&&T&&!g){const P=new CustomEvent(jl,kk);if(C.currentTarget.dispatchEvent(P),!P.defaultPrevented){const A=j().filter(W=>W.focusable),O=A.find(W=>W.active),Y=A.find(W=>W.id===x),q=[O,Y,...A].filter(Boolean).map(W=>W.ref.current);ax(q,h)}}N.current=!1}),onBlur:ne(e.onBlur,()=>y(!1))})})}),sx="RovingFocusGroupItem",ox=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,l=$1(),c=a||l,u=Tk(sx,n),h=u.currentTabStopId===c,f=tx(n),{onFocusableItemAdd:d,onFocusableItemRemove:v}=u;return m.useEffect(()=>{if(r)return d(),()=>v()},[r,d,v]),s.jsx(Bc.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:s.jsx(he.span,{tabIndex:h?0:-1,"data-orientation":u.orientation,...i,ref:t,onMouseDown:ne(e.onMouseDown,p=>{r?u.onItemFocus(c):p.preventDefault()}),onFocus:ne(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:ne(e.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){u.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const x=Ak(p,u.orientation,u.dir);if(x!==void 0){if(p.metaKey||p.ctrlKey||p.altKey||p.shiftKey)return;p.preventDefault();let g=f().filter(y=>y.focusable).map(y=>y.ref.current);if(x==="last")g.reverse();else if(x==="prev"||x==="next"){x==="prev"&&g.reverse();const y=g.indexOf(p.currentTarget);g=u.loop?Lk(g,y+1):g.slice(y+1)}setTimeout(()=>ax(g))}})})})});ox.displayName=sx;var Rk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Mk(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Ak(e,t,n){const r=Mk(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Rk[r]}function ax(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Lk(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Hk=rx,Ik=ox,pd="Radio",[Ok,ix]=Eo(pd),[_k,Dk]=Ok(pd),lx=m.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:i,value:l="on",onCheck:c,form:u,...h}=e,[f,d]=m.useState(null),v=Te(t,w=>d(w)),p=m.useRef(!1),x=f?u||!!f.closest("form"):!0;return s.jsxs(_k,{scope:n,checked:o,disabled:i,children:[s.jsx(he.button,{type:"button",role:"radio","aria-checked":o,"data-state":dx(o),"data-disabled":i?"":void 0,disabled:i,value:l,...h,ref:v,onClick:ne(e.onClick,w=>{o||c==null||c(),x&&(p.current=w.isPropagationStopped(),p.current||w.stopPropagation())})}),x&&s.jsx(Fk,{control:f,bubbles:!p.current,name:r,value:l,checked:o,required:a,disabled:i,form:u,style:{transform:"translateX(-100%)"}})]})});lx.displayName=pd;var cx="RadioIndicator",ux=m.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=Dk(cx,n);return s.jsx(xi,{present:r||a.checked,children:s.jsx(he.span,{"data-state":dx(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});ux.displayName=cx;var Fk=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=m.useRef(null),i=Dg(n),l=od(t);return m.useEffect(()=>{const c=a.current,u=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(u,"checked").set;if(i!==n&&f){const d=new Event("click",{bubbles:r});f.call(c,n),c.dispatchEvent(d)}},[i,n,r]),s.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function dx(e){return e?"checked":"unchecked"}var zk=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],gd="RadioGroup",[$k,L5]=Eo(gd,[nx,ix]),hx=nx(),fx=ix(),[Bk,Wk]=$k(gd),mx=m.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:i=!1,disabled:l=!1,orientation:c,dir:u,loop:h=!0,onValueChange:f,...d}=e,v=hx(n),p=fd(u),[x,w]=yi({prop:a,defaultProp:o,onChange:f});return s.jsx(Bk,{scope:n,name:r,required:i,disabled:l,value:x,onValueChange:w,children:s.jsx(Hk,{asChild:!0,...v,orientation:c,dir:p,loop:h,children:s.jsx(he.div,{role:"radiogroup","aria-required":i,"aria-orientation":c,"data-disabled":l?"":void 0,dir:p,...d,ref:t})})})});mx.displayName=gd;var px="RadioGroupItem",gx=m.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=Wk(px,n),i=a.disabled||r,l=hx(n),c=fx(n),u=m.useRef(null),h=Te(t,u),f=a.value===o.value,d=m.useRef(!1);return m.useEffect(()=>
422{const v=x=>{zk.includes(x.key)&&(d.current=!0)},p=()=>d.current=!1;return document.addEventListener("keydown",v),document.addEventListener("keyup",p),()=>{document.removeEventListener("keydown",v),document.removeEventListener("keyup",p)}},[]),s.jsx(Ik,{asChild:!0,...l,focusable:!i,active:f,children:s.jsx(lx,{disabled:i,required:a.required,checked:f,...c,...o,name:a.name,ref:h,onCheck:()=>a.onValueChange(o.value),onKeyDown:ne(v=>{v.key==="Enter"&&v.preventDefault()}),onFocus:ne(o.onFocus,()=>{var v;d.current&&((v=u.current)==null||v.click())})})})});gx.displayName=px;var Uk="RadioGroupIndicator",xx=m.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=fx(n);return s.jsx(ux,{...o,...r,ref:t})});xx.displayName=Uk;var yx=mx,vx=gx,Vk=xx;const wx=m.forwardRef(({className:e,...t},n)=>s.jsx(yx,{className:ke("grid gap-2",e),...t,ref:n}));wx.displayName=yx.displayName;const bx=m.forwardRef(({className:e,...t},n)=>s.jsx(vx,{ref:n,className:ke("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:s.jsx(Vk,{className:"flex items-center justify-center",children:s.jsx(qu,{className:"h-2.5 w-2.5 fill-current text-current"})})}));bx.displayName=vx.displayName;var Yk="Label",jx=m.forwardRef((e,t)=>s.jsx(he.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));jx.displayName=Yk;var Nx=jx;const Gk=ji("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),kx=m.forwardRef(({className:e,...t},n)=>s.jsx(Nx,{ref:n,className:ke(Gk(),e),...t}));kx.displayName=Nx.displayName;const qk=({onQuizComplete:e})=>{const[t,n]=m.useState(0),[r,o]=m.useState(""),[a,i]=m.useState(!1),[l,c]=m.useState(!1),[u,h]=m.useState(!1),f=[{topic:"Seaside",question:"What percentage of a jellyfish is water?",options:["50%","75%","95%","100%"],correct:2,explanation:"Jellyfish are 95% water! That's why they're so wobbly and squishy!",funFact:"🪼 Holly thinks jellyfish are like living water balloons!"},{topic:"Animals",question:"Which parent seahorse carries the babies?",options:["Mummy seahorse","Daddy seahorse","Both parents","Neither"],correct:1,explanation:"Daddy seahorses are the ones who carry and give birth to the babies! They're super dads!",funFact:"🐴 Holly thinks seahorse dads deserve a special Father's Day!"},{topic:"Beach",question:"What is most beach sand made from?",options:["Tiny rocks","Broken shells","Fish scales","Magic dust"],correct:1,explanation:"Most sand is made from millions of tiny broken shells and coral pieces!",funFact:"🏖️ Holly loves that every grain of sand has a story!"},{topic:"Pirates",question:"Which famous pirate might have buried treasure near Hemsby?",options:["Captain Hook","Blackbeard","Jack Sparrow","Captain Holly"],correct:1,explanation:"Legend says Blackbeard buried treasure along the Norfolk coast!",funFact:"🏴‍☠️ Holly wishes she could find pirate treasure to share with everyone!"},{topic:"Caravans",question:"What pulled the very first caravans?",options:["Cars","Horses","People","Magic"],correct:1,explanation:"The first caravans were pulled by horses over 100 years ago!",funFact:"🐴 Holly thinks horses were the original holiday helpers!"},{topic:"Seals",question:"What are baby seals called?",options:["Kittens","Cubs","Pups","Babies"],correct:2,explanation:"Baby seals are called pups! Just like baby dogs!",funFact:"🦭 Holly loves that seal families vacation on our beaches too!"}];m.useEffect(()=>{const x=new Date,w=Math.floor((x.getTime()-new Date(x.getFullYear(),0,0).getTime())/(1e3*60*60*24));n(w%f.length)},[]);const d=f[t],v=()=>{if(!r){Lt.error("Please select an answer first!");return}const w=parseInt(r)===d.correct;c(w),i(!0),h(!0),e(w,d.topic),w?Lt.success("🎉 Correct! You earned a Holly sticker!"):Lt.error("Not quite right, but you learned something new!")},p=()=>{o(""),i(!1),c(!1),h(!1),n(x=>(x+1)%f.length)};return s.jsxs("div",{className:"max-w-2xl mx-auto",children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsx("div",{className:"text-6xl mb-4 animate-bounce",children:"🧠"}),s.jsx("h2",{className:"text-3xl font-bold mb-4 text-purple-600",children:"Daily Quiz"}),s.jsx("p",{className:"text-lg text-gray-600",children:"Test your knowledge and earn Holly stickers!"})]}),s.jsxs(L,{className:"shadow-lg border-2 border-purple-200 bg-gradient-to-br from-purple-50 to-pink-50",children:[s.jsxs(He,{className:"text-center",children:[s.jsxs("div",{className:"flex items-center justify-center space-x-2 mb-4",children:[s.jsx(Nc,{className:"w-8 h-8 text-purple-600"}),s.jsxs("span",{className:"text-sm font-bold text-purple-600 bg-purple-100 px-3 py-1 rounded-full",children:[d.topic," Quiz"]})]}),s.jsx(Ie,{className:"text-xl text-purple-700",children:d.question})]}),s.jsx(z,{children:a?s.jsxs("div",{className:"text-center space-y-6",children:[s.jsx("div",{className:`text-8xl ${l?"animate-bounce":"animate-pulse"}`,children:l?"🌟":"💡"}),s.jsx("div",{className:`flex items-center justify-center space-x-2 text-xl font-bold ${l?"text-green-600":"text-orange-600"}`,children:l?s.jsxs(s.Fragment,{children:[s.jsx(sb,{className:"w-6 h-6"}),s.jsx("span",{children:"Correct! Well done!"})]}):s.jsxs(s.Fragment,{children:[s.jsx(ob,{className:"w-6 h-6"}),s.jsx("span",{children:"Not quite, but great try!"})]})}),s.jsxs("div",{className:"bg-white border-2 border-gray-200 rounded-lg p-4",children:[s.jsx("p",{className:"text-lg mb-2",children:d.explanation}),s.jsx("p",{className:"text-purple-600 font-bold",children:d.funFact})]}),s.jsxs(I,{onClick:p,className:"bg-blue-500 hover:bg-blue-600 text-white",children:[s.jsx(ur,{className:"w-4 h-4 mr-2"}),"Try Another Quiz"]})]}):s.jsxs("div",{className:"space-y-6",children:[s.jsx(wx,{value:r,onValueChange:o,children:d.options.map((x,w)=>s.jsxs("div",{className:"flex items-center space-x-2 p-3 border-2 border-gray-200 rounded-lg hover:border-purple-300 transition-colors",children:[s.jsx(bx,{value:w.toString(),id:`option-${w}`}),s.jsx(kx,{htmlFor:`option-${w}`,className:"flex-1 cursor-pointer text-lg",children:x})]},w))}),s.jsx(I,{onClick:v,className:"w-full bg-purple-500 hover:bg-purple-600 text-white text-lg py-3",disabled:!r,children:"Submit Answer"})]})})]}),u&&s.jsx("div",{className:"mt-6 text-center",children:s.jsx("p",{className:"text-gray-600",children:"Come back tomorrow for a brand new daily quiz!"})})]})},Qk=()=>{const[e,t]=m.useState("home"),[n,r]=m.useState(0),[o,a]=m.useState([]),[i,l]=m.useState(!1);m.useEffect(()=>
422{const d=localStorage.getItem("holly-curiosities-progress");if(d){const v=JSON.parse(d);r(v.correctQuizzes||0),a(v.earnedStickers||[]),l(v.hasFactHunterBadge||!1)}},[]),m.useEffect(()=>{const d={correctQuizzes:n,earnedStickers:o,hasFactHunterBadge:i};localStorage.setItem("holly-curiosities-progress",JSON.stringify(d)),n>=5&&!i&&(l(!0),Lt.success("🏆 Congratulations! You've unlocked the Official Holly Fact Hunter Badge!"))},[n,o,i]);const c=(d,v)=>{if(d){r(x=>x+1);const p=`${v}-${Date.now()}`;a(x=>[...x,p]),Lt.success("🌟 Well done! You earned a Holly sticker!")}},u=()=>{const d=new(window.AudioContext||window.webkitAudioContext),v=d.createOscillator(),p=d.createGain();v.connect(p),p.connect(d.destination),v.frequency.setValueAtTime(800,d.currentTime),v.frequency.exponentialRampToValueAtTime(400,d.currentTime+.3),p.gain.setValueAtTime(.3,d.currentTime),p.gain.exponentialRampToValueAtTime(.01,d.currentTime+.3),v.start(d.currentTime),v.stop(d.currentTime+.3)},h=[{id:"seaside",icon:cs,label:"Seaside Secrets",color:"bg-blue-500",emoji:"🌊"},{id:"caravan",icon:To,label:"Caravan Curiosities",color:"bg-orange-500",emoji:"🏕️"},{id:"legends",icon:gr,label:"Local Legends",color:"bg-green-500",emoji:"🏴‍☠️"},{id:"quiz",icon:Nc,label:"Daily Quiz",color:"bg-purple-500",emoji:"🧠"}],f=()=>{switch(e){case"seaside":return s.jsx(vk,{});case"caravan":return s.jsx(wk,{});case"legends":return s.jsx(bk,{});case"quiz":return s.jsx(qk,{onQuizComplete:c});default:return s.jsxs("div",{className:"text-center py-8",children:[s.jsxs("div",{className:"mb-8 animate-bounce",children:[s.jsx("div",{className:"text-8xl mb-4",children:"🎪"}),s.jsx("h2",{className:"text-4xl font-bold mb-4 bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:"Holly's Holiday Curiosities"}),s.jsx("p",{className:"text-lg text-gray-600 mb-8 max-w-2xl mx-auto",children:"Welcome to my world of amazing facts and fun discoveries! Explore the wonders of the seaside, learn caravan secrets, and discover local legends!"})]}),s.jsxs("div",{className:"mb-8 p-6 bg-gradient-to-r from-yellow-50 to-orange-50 rounded-xl border-2 border-orange-200 max-w-2xl mx-auto",children:[s.jsxs("div",{className:"flex items-center justify-center space-x-6 mb-4",children:[s.jsxs(te,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-lg px-4 py-2",children:[s.jsx(mt,{className:"w-5 h-5 mr-2"}),o.length," Stickers"]}),s.jsxs(te,{variant:"secondary",className:"bg-green-100 text-green-800 text-lg px-4 py-2",children:[s.jsx(Nc,{className:"w-5 h-5 mr-2"}),n,"/5 Quizzes"]}),i&&s.jsxs(te,{variant:"secondary",className:"bg-yellow-100 text-yellow-800 text-lg px-4 py-2 animate-pulse",children:[s.jsx(ls,{className:"w-5 h-5 mr-2"}),"Fact Hunter!"]})]}),i&&s.jsxs(I,{onClick:()=>window.print(),className:"bg-yellow-500 hover:bg-yellow-600 text-white",children:[s.jsx(ls,{className:"w-4 h-4 mr-2"}),"Print Your Badge!"]})]}),s.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 max-w-4xl mx-auto",children:h.map(d=>s.jsx(L,{className:"hover:shadow-lg transition-all duration-300 hover:scale-105 cursor-pointer transform hover:-translate-y-1",onClick:()=>{t(d.id),u()},children:s.jsxs(z,{className:"p-6 text-center",children:[s.jsx("div",{className:"text-4xl mb-3 animate-pulse",children:d.emoji}),s.jsx("div",{className:`${d.color} rounded-full w-16 h-16 mx-auto mb-3 flex items-center justify-center shadow-lg`,children:s.jsx(d.icon,{className:"w-8 h-8 text-white"})}),s.jsx("h3",{className:"font-semibold text-gray-700",children:d.label})]})},d.id))})]})}};return s.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 via-purple-50 to-pink-50",children:[s.jsx("div",{className:"bg-white shadow-sm sticky top-0 z-50",children:s.jsxs("div",{className:"container mx-auto px-4 py-4 flex items-center justify-between",children:[s.jsx("div",{className:"flex items-center space-x-3",children:s.jsxs(I,{variant:"ghost",onClick:()=>t("home"),className:"flex items-center space-x-2",children:[s.jsx(xr,{className:"w-6 h-6 text-purple-500"}),s.jsx("span",{className:"text-xl font-bold text-gray-800",children:"Holly's Curiosities"})]})}),s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsx(I,{variant:"ghost",size:"sm",onClick:u,className:"text-purple-600 hover:bg-purple-100",children:s.jsx(Po,{className:"w-4 h-4"})}),s.jsxs(te,{variant:"secondary",className:"bg-yellow-100 text-yellow-800",children:[s.jsx(mt,{className:"w-4 h-4 mr-1"}),o.length]})]})]})}),s.jsx("div",{className:"container mx-auto px-4 py-8",children:f()})]})},Kk=()=>{const[e,t]=m.useState(!1),{toast:n}=zu(),r=window.location.origin,o="Check out Holly's Holiday Adventures - a magical app full of games, stories, and holiday fun for kids! 🎄✨",a=async()=>{try{await navigator.clipboard.writeText(r),t(!0),n({title:"Link copied!",description:"Share the magic with your friends and family!"}),setTimeout(()=>t(!1),2e3)}catch{n({title:"Oops!",description:"Couldn't copy the link. Try selecting and copying manually.",variant:"destructive"})}},i=[{name:"WhatsApp",icon:db,url:`https://wa.me/?text=${encodeURIComponent(o+" "+r)}`,color:"bg-green-500 hover:bg-green-600"},{name:"Email",icon:Ku,url:`mailto:?subject=${encodeURIComponent("Holly's Holiday Adventures")}&body=${encodeURIComponent(o+`
423
424`+r)}`,color:"bg-blue-500 hover:bg-blue-600"},{name:"Facebook",icon:ab,url:`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(r)}`,color:"bg-blue-700 hover:bg-blue-800"},{name:"Twitter",icon:kb,url:`https://twitter.com/intent/tweet?text=${encodeURIComponent(o)}&url=${encodeURIComponent(r)}`,color:"bg-sky-500 hover:bg-sky-600"}],l=c=>{window.open(c,"_blank","noopener,noreferrer")};return s.jsx("div",{className:"min-h-screen bg-gradient-to-br from-red-50 via-green-50 to-blue-50 p-4",children:s.jsxs("div",{className:"max-w-2xl mx-auto 
424space-y-6",children:[s.jsxs("div",{className:"text-center space-y-4",children:[s.jsx("div",{className:"flex justify-center",children:s.jsx("div",{className:"bg-gradient-to-r from-red-500 to-green-500 p-4 rounded-full",children:s.jsx(Xu,{className:"h-8 w-8 text-white"})})}),s.jsx("h1",{className:"text-3xl font-bold text-gray-800",children:"Share the Magic! ✨"}),s.jsx("p",{className:"text-lg text-gray-600",children:"Spread joy by sharing Holly's Holiday Adventures with friends and family"})]}),s.jsxs(L,{className:"border-2 border-red-200 shadow-lg",children:[s.jsx(He,{className:"bg-gradient-to-r from-red-100 to-green-100",children:s.jsxs(Ie,{className:"flex items-center gap-2 text-xl",children:[s.jsx(dt,{className:"h-6 w-6 text-red-500"}),"Share Holly's Holiday Adventures"]})}),s.jsxs(z,{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"bg-white p-4 rounded-lg border border-gray-200",children:[s.jsx("h3",{className:"font-semibold text-gray-800 mb-2",children:"What's inside:"}),s.jsxs("ul",{className:"space-y-2 text-sm text-gray-600",children:[s.jsxs("li",{className:"flex items-center gap-2",children:[s.jsx(ct,{className:"h-4 w-4 text-red-500"}),"Beach cleanup and environmental games"]}),s.jsxs("li",{className:"flex items-center gap-2",children:[s.jsx(ct,{className:"h-4 w-4 text-red-500"}),"Holiday curiosities and daily quizzes"]}),s.jsxs("li",{className:"flex items-center gap-2",children:[s.jsx(ct,{className:"h-4 w-4 text-red-500"}),"Bedtime stories and emotional learning"]}),s.jsxs("li",{className:"flex items-center gap-2",children:[s.jsx(ct,{className:"h-4 w-4 text-red-500"}),"Caravan builder and creative activities"]})]})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsx("h3",{className:"font-semibold text-gray-800",children:"Share Link"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("div",{className:"flex-1 p-3 bg-gray-50 border border-gray-200 rounded-lg text-sm text-gray-600 font-mono",children:r}),s.jsxs(I,{onClick:a,variant:e?"default":"outline",className:e?"bg-green-500 hover:bg-green-600":"",children:[s.jsx(Qu,{className:"h-4 w-4 mr-2"}),e?"Copied!":"Copy"]})]})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsx("h3",{className:"font-semibold text-gray-800",children:"Share on Social Media"}),s.jsx("div",{className:"grid grid-cols-2 gap-3",children:i.map(c=>s.jsxs(I,{onClick:()=>l(c.url),className:`${c.color} text-white border-0 h-12`,variant:"default",children:[s.jsx(c.icon,{className:"h-5 w-5 mr-2"}),c.name]},c.name))})]}),s.jsx("div",{className:"bg-gradient-to-r from-yellow-50 to-orange-50 p-4 rounded-lg border border-yellow-200",children:s.jsx("p",{className:"text-center text-gray-700 font-medium",children:"🎁 Every share spreads holiday magic to another family! 🎁"})})]})]}),s.jsxs(L,{className:"border border-green-200",children:[s.jsx(He,{children:s.jsx(Ie,{className:"text-lg text-green-700",children:"Sharing Tips"})}),s.jsx(z,{className:"space-y-3",children:s.jsxs("div",{className:"text-sm text-gray-600 space-y-2",children:[s.jsx("p",{children:"• Perfect for families with children ages 4-12"}),s.jsx("p",{children:"• Great for holiday entertainment and learning"}),s.jsx("p",{children:"• Works on phones, tablets, and computers"}),s.jsx("p",{children:"• No downloads required - just open and play!"})]})})]})]})})},Nl={correctAnswer:"holly protects hemsby",prizeInstructions:`📸 Take a photo, tag Holly Holiday Hero, and message us on Facebook to claim your prize! 🎁
425
426Or tap below to go straight to our page.`,facebookUrl:"https://www.facebook.com/share/1J6qpF434h/?mibextid=wwXIfr",trailTips:["Look carefully in shop windows 👀","Some letters are easier than others!","Work together as a team 🧩","Don't forget to check near the doors! 🚪"],howToPlaySteps:[{emoji:"🔍",text:"Find hidden letters in shops around Hemsby (tap to view locations)"},{emoji:"✏️",text:"Write each letter down"},{emoji:"🧩",text:"Collect the letters to reveal the secret words"},{emoji:"📱",text:"Enter them in the app to help Holly win!"}],introText:`Lord EroDo is causing trouble in Hemsby! 😈
427
428Holly needs your help to find the hidden letters and solve the secret words!`,successTitle:"
428🎉 AMAZING WORK!",successMessage:"You helped Holly protect Hemsby and stopped Lord EroDo!",retryTitle:"Not quite right yet… 🤔",retryMessage:"Keep exploring and try again!"},yf=["#f59e0b","#ef4444","#3b82f6","#22c55e","#a855f7","#ec4899"],Wc=()=>{const[e]=m.useState(()=>Array.from({length:50},(t,n)=>({id:n,x:Math.random()*100,color:yf[Math.floor(Math.random()*yf.length)],delay:Math.random()*2,duration:2+Math.random()*2,size:6+Math.random()*8})));return s.jsx("div",{className:"fixed inset-0 pointer-events-none z-50 overflow-hidden",children:e.map(t=>s.jsx("div",{className:"absolute animate-confetti-fall",style:{left:`${t.x}%`,top:-20,width:t.size,height:t.size,backgroundColor:t.color,borderRadius:Math.random()>.5?"50%":"2px",animationDelay:`${t.delay}s`,animationDuration:`${t.duration}s`}},t.id))})},Ms=19,vf="holly-trail-letters",Xk=()=>{const[e,t]=m.useState(()=>{try{const i=localStorage.getItem(vf);if(i){const l=JSON.parse(i);if(Array.isArray(l)&&l.length===Ms)return l}}catch{}return Array(Ms).fill("")}),n=m.useRef([]);m.useEffect(()=>{localStorage.setItem(vf,JSON.stringify(e))},[e]);const r=e.filter(i=>i.length>0).length,o=(i,l)=>{var u;const c=l.slice(-1).toUpperCase();c&&!/^[A-Z]$/.test(c)||(t(h=>{const f=[...h];return f[i]=c,f}),c&&i<Ms-1&&((u=n.current[i+1])==null||u.focus()))},a=(i,l)=>{var c;l.key==="Backspace"&&!e[i]&&i>0&&((c=n.current[i-1])==null||c.focus())};return s.jsxs("div",{className:"mt-3 p-4 rounded-xl bg-gradient-to-br from-amber-50 to-orange-50 border-2 border-amber-200",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("p",{className:"text-sm font-semibold text-amber-700",children:"✏️ Letter Tracker"}),s.jsxs(te,{className:"bg-amber-500 text-white text-xs",children:[r,"/",Ms," found"]})]}),s.jsx("div",{className:"flex flex-wrap gap-1.5 justify-center",children:e.map((i,l)=>s.jsx("input",{ref:c=>{n.current[l]=c},type:"text",inputMode:"text",maxLength:1,value:i,onChange:c=>o(l,c.target.value),onKeyDown:c=>a(l,c),className:`w-10 h-12 text-center text-lg font-bold rounded-lg border-2 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-amber-400 focus:border-amber-400 ${i?"border-green-400 bg-green-50 text-green-700":"border-amber-200 bg-white text-gray-700"}`},l))}),r===Ms&&s.jsx("p",{className:"text-center text-green-600 font-semibold text-sm mt-3 animate-bounce",children:"🎉 All letters found! Now solve the secret word!"})]})},Zk="/images/holly-certificate.png",Jk="https://www.facebook.com/share/1J6qpF434h/?mibextid=wwXIfr",e5=()=>{const e=navigator.userAgent||navigator.vendor||"";return/FBAN|FBAV|FB_IAB|Instagram/i.test(e)},Sx=({onBack:e,onComplete:t,hardMode:n=!1,restoredFromUrl:r=!1,restoredName:o="",trailType:a="treasure"})=>{const[i,l]=m.useState(o),[c,u]=m.useState(!1),h=m.useRef(null),[f,d]=m.useState(!1),v=m.useRef(null),[p,x]=m.useState(!1),w=e5(),g=m.useCallback(()=>{const T=window.location.origin+window.location.pathname,P=new URLSearchParams;return P.set("trail",a),P.set("complete","1"),i.trim()&&P.set("name",i.trim()),n&&P.set("hard","1"),`${T}?${P.toString()}`},[a,i,n]),y=async()=>{const T=g();try{await navigator.clipboard.writeText(T)}catch{const P=document.createElement("textarea");P.value=T,P.style.position="fixed",P.style.opacity="0",document.body.appendChild(P),P.select(),document.execCommand("copy"),document.body.removeChild(P)}x(!0),setTimeout(()=>x(!1),2500)},b=m.useCallback(()=>{const T=h.current;if(!T||!v.current)return;const P=v.current;T.width=P.naturalWidth,T.height=P.naturalHeight;const A=T.getContext("2d");if(!A)return;if(A.drawImage(P,0,0),n){const k=T.width,R=T.height,$=Math.round(k*.015),B=A.createLinearGradient(0,0,k,R);B.addColorStop(0,"#dc2626"),B.addColorStop(.5,"#f97316"),B.addColorStop(1,"#dc2626"),A.strokeStyle=B,A.lineWidth=$,A.strokeRect($/2,$/2,k-$,R-$);const G=Math.round(k*.22),Q=Math.round(R*.06),se=k-G-Math.round(k*.04),Pe=Math.round(R*.04);A.fillStyle="#dc2626",A.beginPath(),A.roundRect(se,Pe,G,Q,Math.round(Q*.3)),A.fill(),A.fillStyle="#ffffff",A.font=`bold ${Math.round(k*.022)}px sans-serif`,A.textAlign="center",A.textBaseline="middle",A.fillText("🔥 HARD MODE",se+G/2,Pe+Q/2)}
428const O=P.naturalHeight*.345,Y=P.naturalWidth*.38;A.font=`bold ${Math.round(P.naturalWidth*.032)}px 'Georgia', serif`,A.fillStyle="#4a3728",A.textAlign="center",A.textBaseline="middle",A.fillText(i,Y,O);const q=new Date().toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"}),W=P.naturalHeight*.885,_=P.naturalWidth*.22;A.font=`${Math.round(P.naturalWidth*.022)}px 'Georgia', serif`,A.fillStyle="#4a3728",A.textAlign="center",A.fillText(q,_,W),d(!0)},[i,n]);m.useEffect(()=>{if(c){const T=new Image;T.crossOrigin="anonymous",T.onload=()=>{v.current=T,b()},T.src=Zk}},[c,b]);const j=()=>{const T=h.current;return T?T.toDataURL("image/png"):null},N=()=>{if(!i.trim())return;const T=j();if(!T)return;const P=`Holly-Certificate-${i.replace(/\s+/g,"-")}.png`,A=document.createElement("a");A.download=P,A.href=T,document.body.appendChild(A),A.click(),document.body.removeChild(A),/iPad|iPhone|iPod/.test(navigator.userAgent)&&setTimeout(()=>S(T,P),300)},S=(T,P)=>{const A=window.open("","_blank");if(!A){fetch(T).then(O=>O.blob()).then(O=>{const Y=URL.createObjectURL(O);window.location.href=Y});return}A.document.write(`
429      <html>
430        <head>
431          <meta name="viewport" content="width=device-width, initial-scale=1">
432          <title>${P}</title>
433          <style>
434            * { margin: 0; padding: 0; box-sizing: border-box; }
435            body { font-family: -apple-system, BlinkMacSystemFont, sans-serif; background: #fef3c7; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 16px; }
436            .header { text-align: center; margin-bottom: 16px; }
437            .header h1 { font-size: 20px; color: #92400e; margin-bottom: 4px; }
438            .header p { font-size: 14px; color: #78716c; }
439            img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); margin-bottom: 20px; }
440            .actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; }
441            .btn { display: block; text-align: center; padding: 14px; border-radius: 12px; font-size: 16px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; }
442            .btn-download { background: linear-gradient(to right, #22c55e, #10b981); color: white; }
443            .btn-print { background: linear-gradient(to right, #3b82f6, #6366f1); color: white; }
444            @media print { .actions, .header p { display: none; } body { background: white; padding: 0; } img { box-shadow: none; width: 100%; } }
445          </style>
446        </head>
447        <body>
448          <div class="header">
449            <h1>🏆 Your Holly Certificate!</h1>
450            <p>Press and hold the image to save it, or use the buttons below.</p>
451          </div>
452          <img src="${T}" alt="Holly Certificate for ${i}" />
453          <div class="actions">
454            <a class="btn btn-download" href="${T}" download="${P}">⬇️ Download Certificate</a>
455            <button class="btn btn-print" onclick="window.print()">🖨️ Print Certificate</button>
456          </div>
457        </body>
458      </html>
459    `),A.document.close()},E=()=>{const T=j();if(!T)return;const P=`Holly-Certificate-${i.replace(/\s+/g,"-")}.png`;S(T,P)},C=()=>{if(!w)return null;const T=g();return s.jsx(L,{className:"border-2 border-sky-300 bg-gradient-to-br from-sky-50 to-blue-50 mb-6",children:s.jsxs(z,{className:"p-5 space-y-3",children:[s.jsxs("p",{className:"text-sky-800 font-semibold text-base leading-snug",children:["📱 Having trouble downloading in Facebook? Use the menu in Facebook (⋮ or ⋯) and tap ",s.jsx("strong",{children:'"Open in Browser"'}),", then use the link below."]}),s.jsx(hs,{readOnly:!0,value:T,className:"text-sm bg-white border-2 border-sky-200 text-sky-700 font-mono",onFocus:P=>P.target.select()}),s.jsxs("div",{className:"flex gap-2",children:[s.jsxs(I,{onClick:y,className:"flex-1 bg-gradient-to-r from-sky-500 to-blue-500 hover:from-sky-600 hover:to-blue-600 text-white rounded-xl py-3 text-sm font-semibold",children:[p?s.jsx(Gu,{className:"w-4 h-4 mr-1"}):s.jsx(Qu,{className:"w-4 h-4 mr-1"}),p?"Copied!":"Copy Certificate Link"]}),s.jsxs(I,{onClick:()=>window.location.href=T,variant:"outline",className:"flex-1 border-sky-300 text-sky-700 hover:bg-sky-50 rounded-xl py-3 text-sm font-semibold",children:[s.jsx(T0,{className:"w-4 h-4 mr-1"}),"View Certificate"]})]})]})})};return c?s.jsxs("div",{className:"animate-fade-in text-center",children:[s.jsx("div",{className:"text-5xl mb-3",children:"🎓"}),s.jsx("h2",{className:"text-3xl font-bold mb-4 bg-gradient-to-r from-yellow-500 to-amber-500 bg-clip-text text-transparent",children:"Your Holly Certificate!"}),s.jsxs("div",{className:`rounded-xl overflow-hidden shadow-2xl border-4 mb-6 ${n?"border-red-400":"border-amber-300"}`,children:[s.jsx("canvas",{ref:h,className:"w-full h-auto",style:{display:f?"block":"none"}}),!f&&s.jsx("div",{className:"h-64 flex items-center justify-center bg-amber-50",children:s.jsx("p",{className:"text-amber-600 animate-pulse text-lg",children:"Creating your certificate..."})})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row justify-center gap-3 mb-6",children:[s.jsxs(I,{onClick:N,className:"bg-gradient-to-r from-green-500 to-emerald-500 hover:from-green-600 hover:to-emerald-600 text-white text-lg px-6 py-5 rounded-xl shadow-lg",children:[s.jsx(er,{className:"w-5 h-5 mr-2"}),"Download Certificate"]}),s.jsxs(I,{onClick:E,className:"bg-gradient-to-r from-blue-500 to-indigo-500 hover:from-blue-600 hover:to-indigo-600 text-white text-lg px-6 py-5 rounded-xl shadow-lg",children:[s.jsx(A0,{className:"w-5 h-5 mr-2"}),"Print Certificate"]})]}),C(),s.jsx(L,{className:"border-2 border-amber-200 bg-gradient-to-br from-amber-50 to-yellow-50 mb-6",children:s.jsxs(z,{className:"p-5",children:[s.jsx("p",{className:"text-lg text-amber-700 font-semibold mb-3",children:"📸 Share your certificate and tag Holly the Holiday Hero!"}),s.jsxs("a",{href:Jk,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center bg-gradient-to-r from-blue-600 to-blue-700 hover:from-blue-700 hover:to-blue-800 text-white px-6 py-3 rounded-xl shadow-lg transition-all",children:["Share on Facebook",s.jsx(rn,{className:"w-5 h-5 ml-2"})]})]})}),t&&s.jsxs(I,{onClick:t,className:"w-full max-w-md mx-auto bg-gradient-to-r from-green-500 to-emerald-500 hover:from-green-600 hover:to-emerald-600 text-white text-xl py-6 rounded-xl shadow-lg font-bold mb-4",size:"lg",children:["🏆 Claim Your Prize",s.jsx(rn,{className:"w-5 h-5 ml-2"})]}),s.jsxs(I,{variant:"outline",onClick:()=>{u(!1),l("")},className:"text-lg px-6 py-5",children:[s.jsx(nn,{className:"w-4 h-4 mr-2"}),"Edit Name"]})]}):s.jsxs("div",{className:"animate-fade-in text-center max-w-md mx-auto",children:[r&&s.jsx(L,{className:"border-2 border-green-300 bg-gradient-to-br from-green-50 to-emerald-50 mb-6",children:s.jsx(z,{className:"p-4",children:s.jsx("p",{className:"text-green-700 font-semibold text-lg",children:"🎉 Welcome back! Your adventure is complete — finish your certificate below."})})}
459),s.jsx("div",{className:"text-6xl mb-4",children:n?"🔥":"🏅"}),s.jsx("h2",{className:"text-3xl font-bold mb-2 bg-gradient-to-r from-yellow-500 to-amber-500 bg-clip-text text-transparent",children:n?"Hard Mode Certificate! 🔥":"Your Certificate Awaits!"}),s.jsx("p",{className:"text-lg text-gray-600 mb-6",children:"Enter your name for your certificate 💛"}),s.jsx(L,{className:"border-2 border-amber-200 mb-6",children:s.jsxs(z,{className:"p-6",children:[s.jsx(hs,{value:i,onChange:T=>l(T.target.value),placeholder:"Your name...",className:"text-xl text-center h-14 mb-4 border-2 border-amber-200 focus:border-amber-400",maxLength:30,autoFocus:!0}),s.jsxs(I,{onClick:()=>u(!0),disabled:!i.trim(),className:"w-full bg-gradient-to-r from-amber-500 to-orange-500 hover:from-amber-600 hover:to-orange-600 text-white text-lg py-6 rounded-xl shadow-lg",size:"lg",children:["Create My Certificate",s.jsx(rn,{className:"w-5 h-5 ml-2"})]})]})}),C(),s.jsxs(I,{variant:"outline",onClick:e,className:"text-lg px-6 py-5",children:[s.jsx(nn,{className:"w-4 h-4 mr-2"}),"Back"]})]})},wf=[{text:"Oh no… something strange is happening in Hemsby 😟",dark:!1},{text:"Lord EroDo has hidden a secret phrase around the local shops… 💀",dark:!0},{text:"If no one solves it, he wins… and the fun disappears! 🌊",dark:!0},{text:"But Holly believes YOU can stop him 💛",dark:!1}],t5=[{emoji:"🗺️",text:"Explore the shops"},{emoji:"🔍",text:"Find the hidden letters"},{emoji:"🧠",text:"Solve the secret phrase"},{emoji:"🏆",text:"Defeat Lord EroDo!"}],n5=({onStart:e})=>{const[t,n]=m.useState(0),[r,o]=m.useState(!1),[a,i]=m.useState(!1);return m.useEffect(()=>{if(t<wf.length){const l=setTimeout(()=>n(c=>c+1),800);return()=>clearTimeout(l)}else{const l=setTimeout(()=>o(!0),600);return()=>clearTimeout(l)}},[t]),m.useEffect(()=>{if(r){const l=setTimeout(()=>i(!0),800);return()=>clearTimeout(l)}},[r]),s.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-amber-50 via-sky-50 to-blue-100 flex flex-col items-center px-4 py-6",children:[s.jsx("img",{src:"/lovable-uploads/0e320cac-071d-4607-9ea4-f1199b4759e5.png",alt:"Holly the Holiday Hero",className:"w-28 h-28 object-contain drop-shadow-lg mb-4 animate-bounce",style:{animationDuration:"2s"}}),s.jsx("h1",{className:"text-2xl font-extrabold text-amber-800 text-center mb-6",children:"🌟 Holly Needs Your Help! 🌟"}),s.jsx("div",{className:"max-w-md w-full space-y-3 mb-6",children:wf.map((l,c)=>s.jsx("div",{className:`transition-all duration-700 ${c<t?"opacity-100 translate-y-0":"opacity-0 translate-y-4"} ${l.dark?"bg-gray-800/90 text-gray-100 border border-gray-600":"bg-white/80 text-gray-800 border border-amber-200"} rounded-xl px-4 py-3 text-center font-semibold text-base shadow-sm`,children:l.text},c))}),s.jsxs("div",{className:`max-w-md w-full transition-all duration-700 ${r?"opacity-100 translate-y-0":"opacity-0 translate-y-6"}`,children:[s.jsxs("div",{className:"bg-white/70 rounded-xl border border-amber-200 p-5 mb-5",children:[s.jsx("h2",{className:"text-sm font-bold text-amber-700 uppercase tracking-wide mb-3 text-center",children:"🎯 Your Mission"}),s.jsx("div",{className:"space-y-2.5",children:t5.map((l,c)=>s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("span",{className:"text-xl",children:l.emoji}),s.jsx("span",{className:"text-sm font-semibold text-gray-700",children:l.text})]},c))})]}),s.jsx("p",{className:"text-center text-sm font-bold text-orange-600 mb-5 animate-pulse",children:"⚠️ Families are already out playing RIGHT NOW!"})]}),s.jsx("div",{className:`max-w-md w-full transition-all duration-700 ${a?"opacity-100 scale-100":"opacity-0 scale-90"}`,children:s.jsx(I,{onClick:e,className:"w-full text-lg font-bold py-6 rounded-xl shadow-lg bg-gradient-to-r from-orange-500 to-amber-500 hover:from-orange-600 hover:to-amber-600 text-white border-0",children:"✨ START YOUR ADVENTURE ✨"})})]})},bf=[e=>`👀 ${e} families are playing right now…`,e=>`👀 ${e} families exploring Hemsby…`,e=>`👀 ${e} teams searching for the letters…`,e=>`👀 ${e} families trying to defeat Lord EroDo…`],jf=["🏆 A family just solved the trail!","🎉 Someone just defeated Lord EroDo!"],r5=()=>{const[e,t]=m.useState(""),[n,r]=m.useState(!1),o=m.useCallback(()=>{const a=Math.floor(Math.random()*4)+2,i=bf[Math.floor(Math.random()*bf.length)];return i(a)},[]);return m.useEffect(()=>{t(o());let a;const i=setInterval(()=>{r(!0),setTimeout(()=>{t(o()),r(!1)},400)},12e3+Math.random()*8e3),l=()=>{const c=3e4+Math.random()*3e4;a=setTimeout(()=>{r(!0),setTimeout(()=>{t(jf[Math.floor(Math.random()*jf.length)]),r(!1),setTimeout(()=>{r(!0),setTimeout(()=>{t(o()),r(!1)},400)},4e3)},400),l()},c)};return l(),()=>{clearInterval(i),clearTimeout(a)}},[o]),s.jsx("div",{className:"w-full flex justify-center py-1.5",children:s.jsx("div",{className:`inline-flex items-center px-3 py-1 rounded-full bg-amber-100/80 border border-amber-200/60 text-xs font-medium text-amber-700 transition-opacity duration-400 ${n?"opacity-0":"opacity-100"}`,children:e})})},Nf=[{title:"💀 Lord EroDo Appears...",lines:['"You think you can solve MY trail? 😈"','"The letters are hidden well…"',`"You'll never find them all!"`]},{title:"💀 Lord EroDo Lurks...",lines:[`"You're getting closer…"`,'"But not close enough! 😈"']},{title:"💀 Lord EroDo Watches...",lines:['"I can see you searching…"',`"You won't win! 😈"`]},{title:"💀 Lord EroDo Warns...",lines:['"Turn back now…"','"Or keep going if you dare! 😈"']}],s5=()=>{const[e,t]=m.useState(!1),[n,r]=m.useState(!1),[o,a]=m.useState(!1),[i]=m.useState(()=>Nf[Math.floor(Math.random()*Nf.length)]);m.useEffect(()=>{if(sessionStorage.getItem("erodo_popup_shown"))return;const u=2e4+Math.random()*2e4,h=setTimeout(()=>{sessionStorage.setItem("erodo_popup_shown","1"),t(!0),requestAnimationFrame(()=>r(!0)),setTimeout(()=>a(!0),350)},u);return()=>clearTimeout(h)},[]);const l=()=>{r(!1),setTimeout(()=>t(!1),400)};return e?s.jsx("div",{className:`fixed inset-0 z-[100] flex items-center justify-center px-4 transition-opacity duration-500 ${n?"opacity-100":"opacity-0"}`,style:{background:"rgba(10, 5, 20, 0.82)"},children:s.jsxs("div",{className:`bg-gray-900 border border-gray-700 rounded-2xl max-w-sm w-full text-center shadow-2xl overflow-hidden transition-transform duration-500 ${n?"scale-100":"scale-90"}`,children:[s.jsxs("div",{className:"relative w-full",style:{minHeight:"160px"},children:[s.jsx("img",{src:"/images/lord-erodo-full.jpeg",alt:"Lord EroDo – The Crumbling Tyrant of the Coastline",className:`w-full object-cover transition-all duration-700 ${o?"opacity-100 scale-100":"opacity-0 scale-[1.03]"}`,style:{height:"180px",objectPosition:"top center",maskImage:"linear-gradient(to bottom, black 70%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 70%, transparent 100%)"}}),s.jsx("div",{className:`absolute inset-0 pointer-events-none transition-opacity duration-1000 ${o?"opacity-100":"opacity-0"}`,style:{background:"radial-gradient(ellipse 30% 20% at 50% 40%, rgba(255, 220, 50, 0.12) 0%, transparent 70%)"}})]}),s.jsxs("div",{className:"px-6 pb-6 -mt-2",children:[s.jsx("h2",{className:"text-xl font-extrabold text-red-400 mb-3",children:i.title}),s.jsx("div",{className:"space-y-1.5 mb-5",children:i.lines.map((c,u)=>s.jsx("p",{className:"text-gray-300 font-medium text-sm",children:c},u))}),s.jsx(I,{onClick:l,className:"w-full text-base font-bold py-5 rounded-xl bg-gradient-to-r from-orange-500 to-amber-500 hover:from-orange-600 hover:to-amber-600 text-white border-0 mb-2",children:"👉 I'll prove you wrong!"}),s.jsx("button",{onClick:l,className:"text-xs text-gray-500 hover:text-gray-300 transition-colors",children:"❌ Close"})]})]})}):null},kf=[{threshold:0,text:"The storm is strong… 🌊"},{threshold:.25,text:"The waves are weakening… 💪"},{threshold:.5,text:"You're calming the sea! 🌤️"},{threshold:.75,text:"The storm is nearly gone! ☀️"},{threshold:1,text:"The sea is calm… you saved Hemsby 💛"}],Gs=({progress:e,variant:t})=>{const n=Math.min(1,Math.max(0,e)),r=m.useMemo(()=>{let u=kf[0].text;for(const h of kf)n>=h.threshold&&(u=h.text);return u},[n]),o=1-n,a=n,i=28+(1-n)*22,l=4+(1-n)*10,c=t==="outdoor"?"Each clue you solve weakens the storm outside!":"You're calming the storm from inside!";return s.jsxs("div",{className:"mb-5 rounded-2xl overflow-hidden border-2 transition-colors duration-700",style:{borderColor:`hsl(${210+n*10}, ${50+n*20}%, ${40+n*30}%)`},children:[s.jsxs("div",{className:"relative",style:{height:`${i+24}px`},children:[s.jsx("div",{className:"absolute inset-0 transition-opacity duration-1000",style:{opacity:o,background:"linear-gradient(180deg, hsl(220, 40%, 25%) 0%, hsl(210, 50%, 35%) 100%)"}}),s.jsx("div",{className:"absolute inset-0 transition-opacity duration-1000",style:{opacity:a,background:"linear-gradient(180deg, hsl(200, 70%, 85%) 0%, hsl(195, 80%, 70%) 100%)"}}),s.jsxs("svg",{className:"absolute bottom-0 left-0 w-full",style:{height:`${i}px`},viewBox:"0 0 400 60",preserveAspectRatio:"none",children:[s.jsx("path",{className:"transition-all duration-700",style:{opacity:.4},fill:n>.8?"hsl(195, 70%, 75%)":"hsl(215, 45%, 50%)",children:s.jsx("animate",{attributeName:"d",dur:`${2.5+n*3}
459s`,repeatCount:"indefinite",values:`
460                M0,${30-l} Q50,${30+l} 100,${30-l*.5} Q150,${30-l} 200,${30+l*.8} Q250,${30+l} 300,${30-l*.6} Q350,${30-l*.8} 400,${30+l*.5} L400,60 L0,60 Z;
461                M0,${30+l*.5} Q50,${30-l} 100,${30+l*.8} Q150,${30+l} 200,${30-l*.5} Q250,${30-l*.8} 300,${30+l*.6} Q350,${30+l} 400,${30-l*.5} L400,60 L0,60 Z;
462                M0,${30-l} Q50,${30+l} 100,${30-l*.5} Q150,${30-l} 200,${30+l*.8} Q250,${30+l} 300,${30-l*.6} Q350,${30-l*.8} 400,${30+l*.5} L400,60 L0,60 Z
463              `})}),s.jsx("path",{className:"transition-all duration-700",style:{opacity:.7},fill:n>.8?"hsl(195, 65%, 65%)":"hsl(210, 50%, 40%)",children:s.jsx("animate",{attributeName:"d",dur:`${2+n*2.5}s`,repeatCount:"indefinite",values:`
464                M0,${35-l*.8} Q60,${35+l} 120,${35-l*.6} Q180,${35-l*.9} 240,${35+l*.7} Q300,${35+l*.8} 360,${35-l*.5} L400,35 L400,60 L0,60 Z;
465                M0,${35+l*.6} Q60,${35-l*.8} 120,${35+l*.7} Q180,${35+l} 240,${35-l*.6} Q300,${35-l*.7} 360,${35+l*.8} L400,35 L400,60 L0,60 Z;
466                M0,${35-l*.8} Q60,${35+l} 120,${35-l*.6} Q180,${35-l*.9} 240,${35+l*.7} Q300,${35+l*.8} 360,${35-l*.5} L400,35 L400,60 L0,60 Z
467              `})}),s.jsx("path",{className:"transition-all duration-700",style:{opacity:o*.5},fill:"none",stroke:"hsla(0, 0%, 100%, 0.4)",strokeWidth:"1.5",children:s.jsx("animate",{attributeName:"d",dur:"3s",repeatCount:"indefinite",values:`
468                M0,${34-l*.8} Q60,${34+l} 120,${34-l*.6} Q180,${34-l*.9} 240,${34+l*.7} Q300,${34+l*.8} 400,${34-l*.5};
469                M0,${34+l*.6} Q60,${34-l*.8} 120,${34+l*.7} Q180,${34+l} 240,${34-l*.6} Q300,${34-l*.7} 400,${34+l*.8};
470                M0,${34-l*.8} Q60,${34+l} 120,${34-l*.6} Q180,${34-l*.9} 240,${34+l*.7} Q300,${34+l*.8} 400,${34-l*.5}
471              `})})]}),s.jsx("div",{className:"absolute top-2 left-3 flex items-center gap-1.5",children:s.jsx("span",{className:"text-xs font-bold drop-shadow-md",style:{color:n>.7?"hsl(210, 50%, 30%)":"hsla(0, 0%, 100%, 0.9)"},children:"💀 EroDo's Power"})}),s.jsx("div",{className:"absolute top-2 right-3",children:s.jsxs("span",{className:"text-xs font-bold drop-shadow-md",style:{color:n>.7?"hsl(210, 50%, 30%)":"hsla(0, 0%, 100%, 0.9)"},children:[Math.round((1-n)*100),"%"]})})]}),s.jsxs("div",{className:"px-4 py-2.5 text-center transition-colors duration-700",style:{background:n>=1?"linear-gradient(90deg, hsl(150, 50%, 94%), hsl(170, 50%, 90%))":n>.5?"linear-gradient(90deg, hsl(200, 60%, 92%), hsl(195, 55%, 88%))":"linear-gradient(90deg, hsl(220, 30%, 90%), hsl(215, 35%, 86%))"},children:[s.jsx("p",{className:"text-sm font-bold transition-colors duration-700",style:{color:n>=1?"hsl(150, 40%, 30%)":n>.5?"hsl(200, 50%, 30%)":"hsl(220, 30%, 35%)"},children:r}),s.jsx("p",{className:"text-xs mt-0.5 transition-colors duration-700",style:{color:n>=1?"hsl(150, 30%, 45%)":n>.5?"hsl(200, 40%, 45%)":"hsl(220, 20%, 50%)"},children:c})]})]})},wn=[{id:"beach-shop",name:"Beach Shop",description:"Right by the beach entrance — you can't miss it!"},{id:"mrs-bs",name:"Mrs B's",description:"On the main strip heading towards the beach"},{id:"crystal-palace",name:"Crystal Palace Amusements",description:"Near Newport Caravan Park"},{id:"when-its-gone",name:"When It's Gone It's Gone",description:"Along the main road near the shops"},{id:"mrs-marvins",name:"Mrs Marvin's (Letter M)",description:"Look carefully — this is where you'll find the letter M!"},{id:"blue-dolphin",name:"Blue Dolphin Fish & Chips",description:"The chippy on the main strip — follow your nose!"},{id:"bs-bazaar",name:"B's Bazaar",description:"A treasure trove of goodies on the high street"},{id:"lost-world-golf",name:"Lost World Golf",description:"The adventure golf course — look near the entrance"},{id:"carousel",name:"Carousel Amusements",description:"Near Bermuda Caravan Park, next door to the café — easy to spot along the amusements"},{id:"newport-reception",name:"Newport Reception",description:"At the entrance to Newport Caravan Park"},{id:"jacks-seafood",name:"Jack's Seafood",description:"Serving up fresh seafood on the main road"},{id:"townies",name:"Townies Indoor Play",description:"The indoor play centre — great for rainy days!"},{id:"fun-fair",name:"Hemsby Fun Fair",description:"At the funfair near the beach — check by the rides!"},{id:"community-shop",name:"Community Shop",description:"Opposite Sundowner — the local community shop in the village"},{id:"lacon-arms",name:"Lacon Arms",description:"The pub in the heart of Hemsby village"},{id:"bebe-rais",name:"Bebe-Rais",description:"Along the main strip near the other shops"},{id:"lifeboat-shop",name:"Hemsby Lifeboat Shop",description:"Supporting the lifeboat crew — near the seafront"},{id:"our-price",name:"Our Price",description:"On the main road through Hemsby"},{id:"beach-cafe",name:"Beach Café",description:"Right by the beach — perfect for a cuppa!"}],Sf={"beach-shop":"Sand dunes help protect land from waves and wind 🌊","mrs-bs":"Plants on dunes hold the sand together with their roots 🌱","crystal-palace":"Strong winds can move sand across beaches 💨","when-its-gone":"Storm waves can wash sand away ⛈️","mrs-marvins":"Beaches change shape over time 🏖️","blue-dolphin":"High tides reach further up the beach 🌕","bs-bazaar":"Sea defences help slow erosion 🛡️","lost-world-golf":"Footpaths can wear down dunes over time 👣",carousel:"Some areas lose sand faster than others 🌊","newport-reception":"Storms can change coastlines quickly ⛈️","jacks-seafood":"Dunes act as natural barriers 🌾",townies:"Sand can be carried away by both wind and water 🌬️","fun-fair":"Coastal erosion is a natural process 🌍","community-shop":"Sea levels rising can increase erosion 🌊","lacon-arms":"Some beaches gain sand while others lose it ⚖️","bebe-rais":"Driftwoo
471d and seaweed can help trap sand 🌿","lifeboat-shop":"Human activity can affect how coastlines change 🏗️","our-price":"The sea is always shaping the land 🌊","beach-cafe":"Protecting dunes helps protect homes and wildlife 🏡"},o5=new Set(["crystal-palace","lost-world-golf","fun-fair","our-price"]),sa={"crystal-palace":{erodo:"Hehehe… the wind is MY friend! 💨",fact:"Strong winds can move sand and reshape entire beaches…",holly:"Don't worry 💛 together we can protect Hemsby!"},"lost-world-golf":{erodo:"Hahaha… even YOUR footsteps help ME! 👣",fact:"Footpaths on dunes can wear them down over time…",holly:"That's why we stay on marked paths 💛 small steps make a big difference!"},"fun-fair":{erodo:"You can't stop erosion… it's nature! 🌍",fact:"Coastal erosion is a natural process that shapes the land…",holly:"It IS natural — but we can help slow it down 💛 that's what heroes do!"},"our-price":{erodo:"The sea never stops… it's always moving… 🌊",fact:"The sea is always shaping and reshaping the land…",holly:"And WE never stop protecting it 💛 Hemsby is worth fighting for!"}},kl="holly-trail-visited",Uc="holly-trail-progress",Cf=[`Hmm… interesting guess! 👀
472
473That's not quite Holly's promise yet 💛
474Try reading your letters as words together 🌊✨`,`So close! 🤔
475
476Think about what Holly does for Hemsby 🌊
477Once you have all the letters, solve the words 💛`,`You're very close now 💛
478
479The letters spell out Holly's promise…
480What does Holly do to help Hemsby? 🌊✨`];function a5(){try{const e=localStorage.getItem(Uc);return e?JSON.parse(e):{}}catch{return{}}}const i5=({completionFromUrl:e,onCompletionConsumed:t})=>{const n=a5(),r=e?"certificate":n.screen&&n.screen!=="storyIntro"?n.screen:"storyIntro",[o,a]=m.useState(r),[i,l]=m.useState(!!e),[c,u]=m.useState((e==null?void 0:e.name)||"");m.useState(()=>{e&&t&&t()});const[h,f]=m.useState(""),[d,v]=m.useState(!1),[p,x]=m.useState(!1),[w,g]=m.useState(n.attempts??0),[y,b]=m.useState(()=>{try{const _=n.visited??JSON.parse(localStorage.getItem(kl)||"[]");return new Set(_)}catch{return new Set}}),[j,N]=m.useState(!1),[S,E]=m.useState(!1),[C,T]=m.useState(null);m.useEffect(()=>{const _={screen:o,attempts:w,visited:[...y]};localStorage.setItem(Uc,JSON.stringify(_)),localStorage.setItem(kl,JSON.stringify([...y]))},[o,w,y]);const P=()=>{h.trim().toLowerCase()===Nl.correctAnswer?(v(!0),setTimeout(()=>v(!1),5e3),a("celebration")):(g(k=>k+1),a("incorrect"))},A=()=>{localStorage.removeItem(Uc),localStorage.removeItem(kl),b(new Set),f(""),g(0),a("storyIntro"),E(!1)},O=_=>{b(k=>{const R=new Set(k);return R.has(_)?R.delete(_):(R.add(_),T(_)),R.size===wn.length&&!S&&(N(!0),E(!0),setTimeout(()=>N(!1),5e3)),R.size<wn.length&&E(!1),R})},Y=y.size===wn.length,D=y.size/wn.length*100,q=C?o5.has(C):!1,W=[Dh,mb,gb,jb];return s.jsxs("div",{className:"max-w-2xl mx-auto py-4",children:[s.jsx(r5,{}),s.jsx(s5,{}),d&&s.jsx(Wc,{}),j&&s.jsx(Wc,{}),p&&s.jsx("div",{className:"fixed inset-0 z-50 flex items-end justify-center bg-black/40",onClick:()=>x(!1),children:s.jsxs("div",{className:"w-full max-w-2xl bg-white rounded-t-2xl shadow-2xl animate-fade-in max-h-[85vh] flex flex-col",onClick:_=>_.stopPropagation(),children:[s.jsxs("div",{className:"flex items-center justify-between p-4 border-b sticky top-0 bg-white rounded-t-2xl",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-bold text-amber-600",children:"📍 Trail Locations"}),s.jsx("p",{className:"text-sm text-gray-500",children:"Tap to mark as visited"})]}),s.jsx("button",{onClick:()=>x(!1),className:"p-2 rounded-full hover:bg-gray-100",children:s.jsx(Ro,{className:"w-5 h-5 text-gray-500"})})]}),s.jsxs("div",{className:"px-4 pt-3 pb-2",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"font-semibold text-amber-700 text-sm",children:"Progress"}),s.jsxs(te,{className:"bg-amber-500 text-white text-xs",children:[y.size,"/",wn.length," found"]})]}),s.jsx("div",{className:"w-full bg-amber-100 rounded-full h-2.5 overflow-hidden",children:s.jsx("div",{className:"bg-gradient-to-r from-amber-400 to-orange-500 h-2.5 rounded-full transition-all duration-500",style:{width:`${D}%`}})})]}),Y&&s.jsxs("div",{className:"mx-4 mt-2 p-4 rounded-xl border-2 border-green-300 bg-gradient-to-br from-green-50 to-emerald-50 text-center",children:[s.jsx(ls,{className:"w-10 h-10 text-yellow-500 mx-auto mb-2"}),s.jsx("h4",{className:"text-lg font-bold text-green-700 mb-1",children:"🎉 Amazing Work!"}),s.jsx("p",{className:"text-green-600 text-sm mb-1",children:"You've found all the locations!"}),s.jsx("p",{className:"text-green-700 font-semibold text-sm",children:"Now solve the secret words! 💛"})]}),s.jsx("div",{className:"flex-1 overflow-y-auto p-4 space-y-2",children:wn.map(_=>{const k=y.has(_.id);return s.jsxs("div",{onClick:()=>O(_.id),className:`flex items-center gap-3 p-3 rounded-xl border-2 cursor-pointer transition-all duration-200 ${k?"border-green-300 bg-green-50/50":"border-amber-100 hover:border-amber-300"}`,children:[s.jsx("div",{className:"flex-shrink-0",children:k?s.jsx(fo,{className:"w-7 h-7 text-green-500"}):s.jsx(qu,{className:"w-7 h-7 text-amber-300"})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("h4",{className:`font-semibold leading-tight ${k?"text-green-700 line-through decoration-2":"text-gray-800"}`,children:_.name}),s.jsxs("p",{className:"text-xs text-gray-500 flex items-center gap-1 mt-0.5",children:[s.jsx(gr,{className:"w-3 h-3 flex-shrink-0"}),_.description]})]})]},_.id)})})]})}),C&&Sf[C]&&!q&&s.jsx("div",{className:"fixed inset-0 z-[60] flex items-center justify-center bg-black/40",onClick:()=>T(null),children:s.jsxs("div",{className:"mx-4 w-full max-w-sm bg-gradient-to-br from-amber-50 to-orange-50 rounded-2xl shadow-2xl border-2 border-amber-300 p-6 text-center animate-fade-in",onClick:_=>_.stopPropagation(),children:[s.jsx("img",{src:"/images/holly-hero.png",alt:"Holly",className:"w-20 h-20 mx-auto mb-3 object-contain"}),s.jsx("p",{className:"text-lg font-bold text-amber-600 mb-2",children:"Nice one, explorer! 💛"}),s.jsxs("div",{className:"bg-white/70 rounded-xl p-4 mb-4 border border-amber-200",children:[s.jsx("p",{className:"text-sm font-semibold text-amber-500 uppercase tracking-wider mb-1",children:"Holly Fact"}),s.jsx("p",{className:"text-base text-gray-700 leading-relaxed",children:Sf[C]})]}),s.jsx(I,{onClick:()=>T(null),className:"bg-gradient-to-r from-amber-500 to-orange-500 hover:from-amber-600 hover:to-orange-600 text-white px-6 py-2 rounded-xl",children:"Next clue ✨"})]})}),C&&q&&sa[C]&&s.jsx("div",{className:"fixed inset-0 z-[60] flex items-center justify-center bg-black/40",onClick:()=>T(null),children:s.jsxs("div",{className:"mx-4 w-full max-w-sm rounded-2xl shadow-2xl border-2 border-purple-400 overflow-hidden animate-fade-in",onClick:_=>_.stopPropagation(),children:[s.jsxs("div",{className:"bg-gradient-to-br from-purple-100 to-indigo-100 p-5 text-center",children:[s.jsx("img",{src:"/images/lord-erodo.png",alt:"Lord EroDo",className:"w-16 h-16 mx-auto mb-2 object-cover object-top rounded-full border-2 border-purple-400"}),s.jsx("p",{className:"text-sm font-bold text-purple-500 uppercase tracking-wider mb-1",children:"Lord EroDo says…"}),s.jsxs("p",{className:"text-base text-purple-700 italic font-medium",children:['"',sa[C].erodo,'"']})]}),s.jsxs("div",{className:"bg-white/90 px-5 py-4 text-center border-y border-purple-200",children:[s.jsx("p",{className:"text-sm font-semibold text-gray-500 uppercase tracking-wider mb-1",children:"Erosion Fact"}),s.jsx("p",{className:"text-base text-gray-700 leading-relaxed",children:sa[C].fact})]}),s.jsxs("div",{className:"bg-gradient-to-br from-amber-50 to-orange-50 p-5 text-center",children:[s.jsx("img",{src:"/images/holly-hero.png",alt:"Holly",className:"w-14 h-14 mx-auto mb-2 object-contain"}),s.jsx("p",{className:"text-sm font-bold text-amber-500 uppercase tracking-wider mb-1",children:"Holly says…"}),s.jsx("p",{className:"text-base text-amber-700 font-medium",children:sa[C].holly}),s.jsx(I,{onClick:()=>T(null),className:"mt-4 bg-gradient-to-r from-amber-500 to-orange-500 hover:from-amber-600 hover:to-orange-600 text-white px-6 py-2 rounded-xl",children:"Next clue ✨"})]})]})}),o==="storyIntro"&&s.jsx(n5,{onStart:()=>a("landing")}),o==="landing"&&s.jsxs("div",{className:"text-center",children:[s.jsx("img",{src:"/images/holly-hero.png",alt:"Holly the Holiday Hero",className:"w-32 h-32 mx-auto mb-4 object-contain animate-bounce",style:{animationDuration:"2s"}}),s.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-6 bg-gradient-to-r from-amber-500 to-orange-600 bg-clip-text text-transparent",children:"Holly the Holiday Hero Treasure Trail"}),s.jsx(L,{className:"mb-4 border-2 border-purple-300 bg-gradient-to-br from-purple-50 to-indigo-50 animate-fade-in",style:{animationDelay:"0.3s",animationFillMode:"both"},children:s.jsxs(z,{className:"p-6 md:p-8",children:[s.jsx("img",{src:"/images/lord-erodo.png",alt:"Lord EroDo",className:"w-20 h-20 mx-auto mb-3 object-cover object-top rounded-full border-2 border-purple-400 animate-bounce",style:{animationDuration:"1.5s"}}),s.jsx("p",{className:"text-sm font-bold text-purple-500 uppercase tracking-wider mb-2",children:"Lord EroDo says…"}),s.jsx("p",{className:"text-lg md:text-xl text-purple-700 italic font-medium",children:`"You'll never solve my secret words… Hemsby will be mine!"`}),s.jsx("p",{className:"text-sm text-purple-400 mt-2",children:"Mwahahaha! 🦹‍♂️"})]})}),s.jsx(L,{className:"mb-8 border-2 border-amber-200 bg-gradient-to-br from-amber-50 to-orange-50 animate-fade-in",style:{animationDelay:"1s",animationFillMode:"both"},children:s.jsxs(z,{className:"p-6 md:p-8",children:[s.jsx("img",{src:"/images/holly-hero.png",alt:"Holly",className:"w-20 h-20 mx-auto mb-3 object-contain",style:{animation:"pulse 2s infinite"}}),s.jsx("p",{className:"text-sm font-bold text-amber-500 uppercase tracking-wider mb-2",children:"Holly the Holiday Hero"}),s.jsx("p",{className:"text-lg md:text-xl text-amber-700 font-medium",children:`"Don't worry! Together we can stop Lord EroDo and save Hemsby!" 💪🌊`}),s.jsx("p",{className:"text-base text-gray-600 mt-3",children:"Holly needs YOUR help to find the hidden letters and solve the secret words!"})]})}),s.jsxs(I,{onClick:()=>a("howToPlay"),className:"bg-gradient-to-r from-amber-500 to-orange-500 hover:from-amber-600 hover:to-orange-600 text-white text-lg px-8 py-6 rounded-xl shadow-lg hover:shadow-xl transition-all animate-fade-in",style:{animationDelay:"1.6s",animationFillMode:"both"},size:"lg",children:["Start Adventure",s.jsx(rn,{className:"w-5 h-5 ml-2"})]})]}),o==="howToPlay"&&s.jsxs("div",{className:"animate-fade-in",children:[s.jsx(Gs,{progress:y.size/wn.length,variant:"outdoor"}),s.jsx("h2",{className:"text-3xl font-bold text-center mb-8 text-amber-600",children:"How to Play"}),s.jsx("div",{className:"space-y-4 mb-8",children:Nl.howToPlaySteps.map((_,k)=>{const R=W[k]||Dh,$=k===0;return s.jsx(L,{className:`border-2 border-amber-100 transition-colors ${$?"hover:border-amber-400 cursor-pointer hover:shadow-md":"hover:border-amber-300"}`,onClick:$?()=>x(!0):void 0,children:s.jsxs(z,{className:"p-5",children:[s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsx("div",{className:"bg-amber-100 rounded-full w-12 h-12 flex items-center justify-center flex-shrink-0",children:s.jsx(R,{className:"w-6 h-6 text-amber-600"})}),s.jsxs("div",{className:"flex items-center space-x-3 flex-1",children:[s.jsx(te,{className:"bg-amber-500 text-white text-sm",children:k+1}),s.jsx("p",{className:"text-lg text-gray-700",children:_.text})]}),$&&s.jsx(rn,{className:"w-5 h-5 text-amber-400 flex-shrink-0"})]}),k===1&&s.jsx(Xk,{})]})},k)})}),s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsxs(I,{variant:"outline",onClick:()=>a("landing"),className:"text-lg px-6 py-5",children:[s.jsx(nn,{className:"w-4 h-4 mr-2"}),"Back"]}),s.jsxs(I,{variant:"ghost",onClick:A,className:"text-xs text-gray-400 hover:text-red-500",children:[s.jsx(ur,{className:"w-3 h-3 mr-1"}),"Restart"]}),s.jsxs(I,{onClick:()=>a("tips"),className:"bg-gradient-to-r from-amber-500 to-orange-500 hover:from-amber-600 hover:to-orange-600 text-white text-lg px-6 py-5",children:["Next",s.jsx(rn,{className:"w-4 h-4 ml-2"})]})]})]}),o==="tips"&&s.jsxs("div",{className:"animate-fade-in",children:[s.jsx(Gs,{progress:y.size/wn.length,variant:"outdoor"}),s.jsx("h2",{className:"text-3xl font-bold text-center mb-2 text-amber-600",children:"Trail Tips"}),s.jsx("p",{className:"text-center text-gray-500 mb-8",children:"Handy hints from Holly!"}),s.jsx("div",{className:"space-y-3 mb-8",children:Nl.trailTips.map((_,k)=>s.jsx(L,{className:"border-l-4 border-l-amber-400 bg-amber-50/50",children:s.jsxs(z,{className:"p-4 flex items-center space-x-3",children:[s.jsx(xr,{className:"w-5 h-5 text-amber-500 flex-shrink-0"}),s.jsx("p",{className:"text-lg text-gray-700",children:_})]})},k))}),y.size>=15&&s.jsx(L,{className:"border-2 border-purple-200 bg-gradient-to-br from-purple-50 to-indigo-50 mb-6 animate-fade-in",children:s.jsxs(z,{className:"p-5 md:p-6",children:[s.jsx("div",{className:"text-4xl mb-2",children:"✨"}),s.jsx("p",{className:"text-sm font-bold text-purple-500 uppercase tracking-wider mb-2",children:"Holly whispers…"}),s.jsx("p",{className:"text-base md:text-lg text-purple-700 italic leading-relaxed",children:`"You've gathered my letters… but the answer isn't spoken aloud 💛`}),s.jsx("p",{className:"text-base md:text-lg text-purple-700 italic leading-relaxed mt-1",children:"Look closely… what do they whisper when they stand together?"}),s.jsx("p",{className:"text-base md:text-lg text-purple-700 italic leading-relaxed mt-1",children:`It's the promise I keep for Hemsby… 🌊✨"`})]})}),s.jsxs("div",{className:"flex justify-between",children:[s.jsxs(I,{variant:"outline",onClick:()=>a("howToPlay"),className:"text-lg px-6 py-5",children:[s.jsx(nn,{className:"w-4 h-4 mr-2"}),"Back"]}),s.jsxs(I,{onClick:()=>a("ending"),className:"bg-gradient-to-r from-amber-500 to-orange-500 hover:from-amber-600 hover:to-orange-600 text-white text-lg px-6 py-5",children:["I'm Ready!",s.jsx(rn,{className:"w-4 h-4 ml-2"})]})]})]}),o==="ending"&&s.jsxs("div",{className:"animate-fade-in text-center",children:[s.jsx(L,{className:"mb-6 border-2 border-purple-300 bg-gradient-to-br from-purple-50 to-indigo-100 animate-fade-in",style:{animationDelay:"0.2s",animationFillMode:"both"},children:s.jsxs(z,{className:"p-6 md:p-8",children:[s.jsx("img",{src:"/images/lord-erodo.png",alt:"Lord EroDo",className:"w-full max-w-xs mx-auto mb-4 rounded-xl object-contain",style:{animation:"pulse 2s infinite"}}),s.jsx("p",{className:"text-sm font-bold text-purple-500 uppercase tracking-wider mb-3",children:"Lord EroDo"}),s.jsx("p",{className:"text-lg text-purple-700 italic leading-relaxed",children:`"Wait… no… something's changing… 👀`}),s.jsx("p",{className:"text-lg text-purple-700 italic leading-relaxed mt-2",children:"You understand n
480ow… the dunes… the waves… the wind… 🌊💨"}),s.jsx("p",{className:"text-lg text-purple-700 italic leading-relaxed mt-2",children:`No… this wasn't supposed to happen…"`})]})}),s.jsx(L,{className:"mb-8 border-2 border-amber-200 bg-gradient-to-br from-amber-50 to-orange-50 animate-fade-in",style:{animationDelay:"1s",animationFillMode:"both"},children:s.jsxs(z,{className:"p-6 md:p-8",children:[s.jsx("img",{src:"/images/holly-hero.png",alt:"Holly",className:"w-24 h-24 mx-auto mb-3 object-contain"}),s.jsx("p",{className:"text-sm font-bold text-amber-500 uppercase tracking-wider mb-3",children:"Holly the Holiday Hero"}),s.jsx("p",{className:"text-lg text-amber-700 font-medium leading-relaxed",children:`"You're ready, explorer 💛`}),s.jsx("p",{className:"text-lg text-amber-700 font-medium leading-relaxed mt-2",children:"You've discovered my promise to Hemsby…"}),s.jsx("p",{className:"text-lg text-amber-700 font-medium leading-relaxed mt-2",children:`Now it's time to say it out loud."`})]})}),s.jsx(I,{onClick:()=>a("answer"),className:"bg-gradient-to-r from-green-500 to-emerald-500 hover:from-green-600 hover:to-emerald-600 text-white text-xl px-8 py-6 rounded-xl shadow-lg animate-fade-in",style:{animationDelay:"1.8s",animationFillMode:"both"},size:"lg",children:"Enter Your Answer"}),s.jsx("div",{className:"mt-4",children:s.jsxs(I,{variant:"outline",onClick:()=>a("tips"),className:"text-lg px-6 py-5",children:[s.jsx(nn,{className:"w-4 h-4 mr-2"}),"Back to Tips"]})})]}),o==="answer"&&s.jsxs("div",{className:"animate-fade-in text-center",children:[s.jsx("div",{className:"text-6xl mb-4",children:"🔐"}),s.jsx("h2",{className:"text-3xl font-bold mb-2 text-amber-600",children:"What's Holly's Promise?"}),s.jsx("p",{className:"text-gray-500 mb-6",children:"Enter the secret words you've discovered 💛"}),s.jsx(L,{className:"border-2 border-amber-200 mb-8",children:s.jsxs(z,{className:"p-6 md:p-8",children:[s.jsx(hs,{value:h,onChange:_=>f(_.target.value),placeholder:"Enter your answer...",className:"text-xl text-center h-14 mb-6 border-2 border-amber-200 focus:border-amber-400",onKeyDown:_=>_.key==="Enter"&&h.trim()&&P()}),s.jsxs(I,{onClick:P,disabled:!h.trim(),className:"w-full bg-gradient-to-r from-green-500 to-emerald-500 hover:from-green-600 hover:to-emerald-600 text-white text-xl py-6 rounded-xl shadow-lg",size:"lg",children:[s.jsx(fo,{className:"w-6 h-6 mr-2"}),"Submit Answer"]})]})}),s.jsxs(I,{variant:"outline",onClick:()=>a("ending"),className:"text-lg px-6 py-5",children:[s.jsx(nn,{className:"w-4 h-4 mr-2"}),"Back"]})]}),o==="incorrect"&&s.jsxs("div",{className:"animate-fade-in text-center",children:[s.jsx("div",{className:"text-7xl mb-4",children:"🤔"}),s.jsx(L,{className:"border-2 border-amber-200 bg-gradient-to-br from-amber-50 to-orange-50 mb-8",children:s.jsx(z,{className:"p-6 md:p-8",children:s.jsx("p",{className:"text-lg md:text-xl text-amber-700 italic leading-relaxed whitespace-pre-line",children:Cf[(w-1)%Cf.length]})})}),s.jsxs(I,{onClick:()=>{f(""),a("answer")},className:"w-full max-w-md mx-auto bg-gradient-to-r from-amber-500 to-orange-500 hover:from-amber-600 hover:to-orange-600 text-white text-lg py-5 rounded-xl shadow-lg mb-4",size:"lg",children:[s.jsx(ur,{className:"w-5 h-5 mr-2"}),"Try a Different Answer"]}),s.jsxs(I,{variant:"outline",onClick:()=>a("ending"),className:"text-lg px-6 py-5",children:[s.jsx(nn,{className:"w-4 h-4 mr-2"}),"Back to Story"]})]}),o==="celebration"&&s.jsxs("div",{className:"animate-fade-in text-center",children:[s.jsx(Gs,{progress:1,variant:"outdoor"}),s.jsx("img",{src:"/images/holly-hero.png",alt:"Holly the Holiday Hero",className:"w-40 h-40 mx-auto mb-4 object-contain"}),s.jsx("h2",{className:"text-4xl font-bold mb-4 bg-gradient-to-r from-sky-400 to-blue-500 bg-clip-text text-transparent",children:"YOU SAVED HEMSBY! 🌟"}),s.jsx(L,{className:"border-2 border-sky-200 bg-gradient-to-br from-sky-50 to-blue-50 mb-6",children:s.jsxs(z,{className:"p-6 md:p-8 space-y-2",children:[s.jsx("p",{className:"text-lg text-sky-700",children:"The storm is gone… ☀️"}),s.jsx("p",{className:"text-lg text-sky-700",children:"The sea is calm… 🌊"}),s.jsx("p",{className:"text-xl text-sky-800 font-bold",children:"You saved Hemsby 💛"})]})}),s.jsx(L,{className:"border-2 border-green-300 bg-gradient-to-br from-green-50 to-emerald-50 mb-6",children:s.jsxs(z,{className:"p-6",children:[s.jsx("p",{className:"text-lg text-green-700 font-medium",children:"You did it! 💛 Hemsby is safe because of you."}),s.jsx("p",{className:"text-base text-green-600 mt-2",children:"Download your certificate and celebrate your adventure! 🎓"})]})}),s.jsxs(I,{onClick:()=>a("certificate"),className:"w-full max-w-md mx-auto bg-gradient-to-r from-amber-500 to-orange-500 hover:from-amber-600 hover:to-orange-600 text-white text-xl py-6 rounded-xl shadow-lg font-bold",size:"lg",children:["🎓 Create My Certificate",s.jsx(rn,{className:"w-5 h-5 ml-2"})]})]}),o==="certificate"&&s.jsx(Sx,{onBack:()=>a("celebration"),onComplete:()=>a("claimPrize"),restoredFromUrl:i,restoredName:c,trailType:"treasure"}),o==="claimPrize"&&s.jsxs("div",{className:"animate-fade-in text-center",children:[s.jsx("div",{className:"text-7xl mb-4",children:"🏆"}),s.jsx("h2",{className:"text-3xl font-bold mb-4 bg-gradient-to-r from-amber-500 to-orange-600 bg-clip-text text-transparent",children:"You Did It! 💛"}),s.jsx(L,{className:"border-2 border-green-300 bg-gradient-to-br from-green-50 to-emerald-50 mb-6",children:s.jsxs(z,{className:"p-6 md:p-8",children:[s.jsx("p",{className:"text-lg text-green-700 mb-2",children:"Hemsby is safe because of you. 🌊✨"}),s.jsx("p",{className:"text-base text-green-600",children:"Download your certificate and celebrate your adventure! 🎓"})]})}),s.jsx(L,{className:"border-2 border-sky-200 bg-gradient-to-br from-sky-50 to-blue-50 mb-6",children:s.jsxs(z,{className:"p-5",children:[s.jsx("p",{className:"text-base text-sky-700 font-medium",children:"Holly loves seeing your adventures 💛"}),s.jsx("p",{className:"text-sm text-sky-600 mt-1",children:"If you'd like to, share your win with Holly on Facebook!"})]})}),s.jsx(I,{onClick:()=>{const _=encodeURIComponent(`I just completed the Holly Treasure Trail in Hemsby! 🌞💛
481We helped save the coast and had so much fun!
482
483Can you solve it too?
484
485Play here: https://holly-holiday-adventures-fun.lovable.app`);window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent("https://holly-holiday-adventures-fun.lovable.app")}&quote=${_}`,"_blank")},className:"w-full max-w-md mx-auto bg-gradient-to-r from-blue-600 to-blue-700 hover:from-blue-700 hover:to-blue-800 text-white text-lg py-5 rounded-xl shadow-lg font-bold mb-4",children:"📲 Share Your Adventure"}),s.jsxs("div",{className:"flex flex-col items-center gap-3",children:[s.jsxs(I,{variant:"outline",onClick:()=>a("certificate"),className:"text-lg px-6 py-5",children:[s.jsx(nn,{className:"w-4 h-4 mr-2"}),"Back to Certificate"]}),s.jsxs(I,{variant:"outline",onClick:A,className:"text-base px-6 py-4 text-red-500 border-red-200 hover:bg-red-50",children:[s.jsx(ur,{className:"w-4 h-4 mr-2"}),"Restart Trail"]})]})]})]})},l5=({onStart:e,onStartTrail:t,onStartRainyDay:n})=>{const r=()=>{var o;typeof window<"u"&&"gtag"in window&&((o=window.gtag)==null||o.call(window,"event","treasure_trail_start",{event_category:"engagement"})),e()};return s.jsx("div",{className:"w-full py-6 px-4",children:s.jsxs("div",{className:"max-w-lg mx-auto text-center",children:[s.jsx("img",{src:"/images/holly-hero.png",alt:"Holly the Holiday Hero",className:"w-28 h-28 mx-auto object-contain drop-shadow-md mb-4"}),s.jsx("h2",{className:"text-3xl font-extrabold text-sky-800 mb
485-2 leading-tight",children:"Can YOU help Holly save Hemsby? 🌊💛"}),s.jsxs("p",{className:"text-base text-gray-600 mb-6 leading-relaxed",children:["Lord Erodo is using storms and waves to take over the coast…",s.jsx("br",{}),"Holly needs your help to stop him!"]}),s.jsx(I,{onClick:r,className:"w-full text-xl font-bold py-7 rounded-xl shadow-lg bg-gradient-to-r from-orange-500 to-amber-500 hover:from-orange-600 hover:to-amber-600 text-white border-0 mb-6",children:"👉 START YOUR ADVENTURE ✨"}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mb-6",children:[s.jsx(L,{className:"hover:shadow-xl transition-all duration-300 hover:scale-105 cursor-pointer border-2 border-amber-300 bg-gradient-to-br from-amber-50 to-orange-50",onClick:t,children:s.jsxs(z,{className:"p-5 text-center",children:[s.jsx("div",{className:"text-4xl mb-2",children:"🌞"}),s.jsx("h3",{className:"text-lg font-bold text-amber-700 mb-1",children:"Outdoor Treasure Trail"}),s.jsx("p",{className:"text-sm text-amber-600",children:"Explore Hemsby and solve clues around real locations"})]})}),s.jsx(L,{className:"hover:shadow-xl transition-all duration-300 hover:scale-105 cursor-pointer border-2 border-sky-300 bg-gradient-to-br from-sky-50 to-blue-50",onClick:n,children:s.jsxs(z,{className:"p-5 text-center",children:[s.jsx("div",{className:"text-4xl mb-2",children:"☔"}),s.jsx("h3",{className:"text-lg font-bold text-sky-700 mb-1",children:"Rainy Day Rescue"}),s.jsx("p",{className:"text-sm text-sky-600",children:"Play indoors and help Holly defeat Lord Erodo from home"})]})})]}),s.jsxs("div",{className:"mb-6",children:[s.jsx("img",{src:"/images/lord-erodo-full.jpeg",alt:"Lord Erodo - The Crumbling Tyrant",className:"w-full max-w-xs mx-auto rounded-xl shadow-lg mb-3",style:{height:"200px",objectFit:"cover",objectPosition:"top center",maskImage:"linear-gradient(to bottom, black 75%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 75%, transparent 100%)"}}),s.jsx("p",{className:"text-lg font-bold text-red-600",children:"Lord Erodo is rising… can you stop him? 😈"})]}),s.jsx(L,{className:"border-2 border-sky-200 bg-gradient-to-br from-sky-50 to-blue-50 mb-6",children:s.jsxs(z,{className:"p-5",children:[s.jsx("h3",{className:"text-base font-bold text-sky-700 uppercase tracking-wide mb-3",children:"What you'll do"}),s.jsx("div",{className:"grid grid-cols-2 gap-3 text-left",children:[{emoji:"🧩",text:"Solve clues"},{emoji:"🌊",text:"Calm the storm"},{emoji:"💛",text:"Help Holly"},{emoji:"🏆",text:"Earn your certificate"}].map((o,a)=>s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-xl",children:o.emoji}),s.jsx("span",{className:"text-sm font-medium text-gray-700",children:o.text})]},a))})]})}),s.jsx(L,{className:"border-2 border-blue-200 bg-gradient-to-br from-blue-50 to-indigo-50 mb-6",children:s.jsxs(z,{className:"p-4 text-center",children:[s.jsx("p",{className:"text-base text-blue-700 font-medium",children:"🌊 Each correct answer weakens the storm…"}),s.jsx("p",{className:"text-sm text-blue-500 mt-1",children:"Watch the waves calm as you progress!"})]})}),s.jsx(L,{className:"border-2 border-amber-200 bg-gradient-to-br from-amber-50 to-yellow-50 mb-6",children:s.jsxs(z,{className:"p-4 text-center",children:[s.jsx("span",{className:"text-3xl",children:"🎓"}),s.jsx("p",{className:"text-base text-amber-700 font-medium mt-1",children:"Complete your adventure and earn a certificate!"})]})})]})})},Vc=["HOLLY SAVES HEMSBY TODAY","PROTECT THE COAST TOGETHER","HEMSBY HEROES STOP ERODO","WAVES CANNOT BEAT US NOW","HOLLY GUARDS THE SHORELINE","SAVE HEMSBY FROM THE STORM","HEROES PROTECT THE DUNES","CALM THE STORM SAVE HEMSBY"];function oa(){return Vc[Math.floor(Math.random()*Vc.length)]}function c5(e){const t=e.split("").filter(n=>n!==" ");return{phrase:e,letters:t,totalSteps:t.length}}const u5=Vc[0],d5=[{type:"knowledge",question:"What wears away the land by the sea?",answers:["Waves","Cars","Trees"],correct:0,hint:"Think about what moves in the ocean 🌊"},{type:"knowledge",question:"What is a sandy hill near the beach called?",answers:["A dune","A road","A bridge"],correct:0,hint:"It's made of sand and found near the sea 🏖️"}
485,{type:"knowledge",question:"What makes waves bigger and stronger?",answers:["Wind","Music","Sunlight"],correct:0,hint:"You can feel it blowing on the beach! 💨"},{type:"knowledge",question:"What is it called when the sea wears land away?",answers:["Erosion","Painting","Growing"],correct:0,hint:"It starts with 'E' and changes the coast 🌍"},{type:"knowledge",question:"What happens to cliffs over many years?",answers:["They get worn away","They grow taller","They turn green"],correct:0,hint:"The sea slowly changes them 🌊"},{type:"knowledge",question:"What is the beach mostly made of?",answers:["Sand","Metal","Plastic"],correct:0,hint:"It's soft and gets between your toes! 🏖️"},{type:"knowledge",question:"What grows on sand dunes to hold them together?",answers:["Marram grass","Oak trees","Roses"],correct:0,hint:"A special tough grass 🌾"},{type:"knowledge",question:"What does the tide do every single day?",answers:["Goes in and out","Stays still","Turns red"],correct:0,hint:"It changes the beach twice a day 🌊"},{type:"knowledge",question:"Which type of rock is hardest for waves to break?",answers:["Granite","Sand","Clay"],correct:0,hint:"It's very hard and strong 🪨"},{type:"knowledge",question:"What helps protect the coast from waves?",answers:["Sea walls","Balloons","Kites"],correct:0,hint:"They're built to block the water 🧱"},{type:"knowledge",question:"What shapes pebbles into smooth round shapes?",answers:["The sea","Paint","Glue"],correct:0,hint:"Water rolls them over and over 🌊"},{type:"knowledge",question:"What can storms bring to the coast?",answers:["Big waves","Snowmen","Rainbows"],correct:0,hint:"They crash on the shore during bad weather 🌊"},{type:"scenario",question:"You see a sign saying 'Keep off the dunes.' What do you do?",answers:["Stay on the path","Climb the dunes","Ignore the sign"],correct:0,hint:"Signs are there to help protect the coast 👣"},{type:"scenario",question:"You find litter on the beach. What's the best thing to do?",answers:["Pick it up safely","Leave it there","Bury it in sand"],correct:0,hint:"Keeping the beach clean helps everyone 🧹"},{type:"scenario",question:"The waves are very big today. What should you do?",answers:["Stay back from the water","Jump in","Throw stones at the waves"],correct:0,hint:"Big waves can be dangerous — stay safe! ⚠️"},{type:"scenario",question:"You notice a path on the dunes is blocked off. What do you do?",answers:["Find another path","Go through anyway","Move the barrier"],correct:0,hint:"Blocked paths are closed for a good reason 🚧"},{type:"scenario",question:"Your friend wants to dig a big hole in the dunes. What do you say?",answers:["Let's not — dunes need protecting!","Great idea!","Dig faster!"],correct:0,hint:"Dunes protect the land behind them 🌿"},{type:"scenario",question:"You see a bird nesting on the beach. What's the kindest choice?",answers:["Walk quietly around it","Get closer to look","Shout to your friends"],correct:0,hint:"Wildlife needs space and quiet 🐦"},{type:"scenario",question:"It starts to rain heavily at the beach. What should you do?",answers:["Head to shelter","Stay in the water","Build a sandcastle"],correct:0,hint:"Storms can make the sea dangerous 🌧️"},{type:"scenario",question:"You find a crab in a rock pool. What do you do?",answers:["Look but don't touch","Pick it up","Take it home"],correct:0,hint:"Wild animals are happiest in their home 🦀"},{type:"visual",question:"Which of these is a sand dune? 🏖️",answers:["A sandy hill near the sea","A brick building","A car park"],correct:0,hint:"It's natural and made of sand 🌾"},{type:"visual",question:"Which animal would you find in a rock pool? 🪨",answers:["A crab","A dog","A cow"],correct:0,hint:"It walks sideways! 🦀"},{type:"visual",question:"Which of these helps protect the coast? 🛡️",answers:["A sea wall","A trampoline","A kite"],correct:0,hint:"It's built from concrete or stone 🧱"},{type:"visual",question:"What colour is the sea usually? 🎨",answers:["Blue or green","Pink","Orange"],correct:0,hint:"Look out the window towards the beach! 🌊"},{type:"visual",question:"Which of these lives by the coast? 🐦",answers:["A seagull","A penguin","A parrot"],correct:0,hint:"You see them at the seaside a lot! 🐦"},{type:"visual",question:"Which one is a type of coastal defence? 🏗️",answers:["A groyne (wooden barrier)","A slide","A swing"],correct:0,hint:"It's built on the beach to trap sand 🪵"},{type:"visual",question:"What does a stormy sea look like? ⛈️",answers:["Dark, rough and choppy","Calm and flat","Pink and sparkly"],correct:0,hint:"Think about what happens during a storm 🌊"},{type:"visual",question:"Which of these protects baby turtles? 🐢",answers:["Clean beaches","Loud music","Bright lights at night"],correct:0,hint:"A tidy beach helps wildlife 🐢"}
485,{type:"story",question:"Who is trying to destroy Hemsby's coast? 😈",answers:["Lord EroDo","Holly","The lifeguard"],correct:0,hint:"He's the villain of our adventure! 😈"},{type:"story",question:"Who is the hero helping to save Hemsby? 💛",answers:["Holly","Lord EroDo","A pirate"],correct:0,hint:"Her name starts with H! 💛"},{type:"story",question:"What is Lord EroDo using to attack the coast?",answers:["Storms and waves","Magic paint","A spaceship"],correct:0,hint:"He uses the power of nature against us! 🌊"},{type:"story",question:"What happens when you answer questions correctly?",answers:["The storm gets weaker","Lord EroDo gets stronger","Nothing happens"],correct:0,hint:"You're calming the sea! 🌊"},{type:"story",question:"Why does Holly need YOUR help?",answers:["To stop Lord EroDo together","To go shopping","To fly a kite"],correct:0,hint:"Heroes are stronger as a team! 💪"},{type:"story",question:"What will happen if we don't stop Lord EroDo?",answers:["Hemsby's coast could be damaged","Nothing at all","It will snow"],correct:0,hint:"Erosion is a real threat to Hemsby 🏡"},{type:"story",question:"How does Holly feel when you get an answer right?",answers:["Happy and proud!","Sad","Confused"],correct:0,hint:"She's cheering you on! 💛"},{type:"story",question:"What are you trying to reveal by answering questions?",answers:["A secret message","A treasure map","A recipe"],correct:0,hint:"Each letter is a clue! 🔤"}],h5=[{type:"knowledge",question:"What type of erosion happens when waves compress air in rock cracks?",answers:["Hydraulic action","Abrasion","Attrition"],correct:0,hint:"Think about water pressure forcing air into gaps 💨"},{type:"knowledge",question:"What is longshore drift?",answers:["Movement of sediment along the coast","Waves going out to sea","Sand blowing inland"],correct:0,hint:"It moves material sideways along the beach 🏖️"},{type:"knowledge",question:"What type of rock erodes fastest?",answers:["Soft rock like clay","Hard rock like granite","Metamorphic rock"],correct:0,hint:"Softer materials break down more quickly 🪨"},{type:"knowledge",question:"What is the fetch of a wave?",answers:["Distance wind blows over open water","The height of a wave","How fast waves travel"],correct:0,hint:"A longer one means bigger waves ⛵"},{type:"knowledge",question:"What process makes pebbles rounder over time?",answers:["Attrition","Oxidation","Condensation"],correct:0,hint:"Rocks bumping into each other 🪨"},{type:"knowledge",question:"What is the swash?",answers:["Wave rushing up the beach","Wave pulling back","Sand flying in the wind"],correct:0,hint:"The forward push onto shore 🌊"},{type:"knowledge",question:"What is the backwash?",answers:["Water flowing back to the sea","A wave hitting a cliff","Rain running off dunes"],correct:0,hint:"Gravity pulls water back down the beach 🌊"},{type:"knowledge",question:"What is corrasion?",answers:["Waves hurling rocks at cliffs","Chemical dissolving of rock","Wind blowing sand inland"],correct:0,hint:"The sea uses rocks like sandpaper 🪨"},{type:"scenario",question:"A council asks your advice: the cliffs are crumbling. What do you recommend?",answers:["Build sea defences like rip rap","Paint the cliffs","Ignore the problem"],correct:0,hint:"Large boulders absorb wave energy 🪨"},{type:"scenario",question:"Beach sand keeps disappearing. What coastal management technique would help?",answers:["Beach nourishment — adding more sand","Removing all the groynes","Banning visitors"],correct:0,hint:"Putting back what the sea took 🏖️"},{type:"scenario",question:"Homes are at risk from coastal erosion. What is 'managed retreat'?",answers:["Allowing sea to flood low-value land","Building walls in the sea","Moving the ocean"],correct:0,hint:"Sometimes we let nature take back certain areas 🌿"},{type:"scenario",question:"A storm surge warning is issued. What does this mean?",answers:["Sea levels will temporarily rise dangerously","The sea will disappear","It will be sunny"],correct:0,hint:"Low pressure and wind push water levels up 🌊"},{type:"scenario",question:"The local salt marsh is being considered for development. Why might that be a bad idea?",answers:["Salt marshes absorb wave energy","They create bigger waves","They have no purpose"],correct:0,hint:"The
485se wetlands act like natural sponges 🌱"},{type:"scenario",question:"Groynes along the beach are trapping sand on one side. What's happening on the other side?",answers:["That beach is losing sand","It's gaining more sand","Nothing changes"],correct:0,hint:"Protecting one area can affect another ⚖️"},{type:"scenario",question:"Climate change is discussed at a town meeting. How does it affect coastal erosion?",answers:["Rising seas and stronger storms increase it","It stops erosion completely","It has no effect"],correct:0,hint:"More water and wilder weather 🌡️"},{type:"visual",question:"Which coastal feature is a pillar of rock left after an arch collapses?",answers:["A stack","A spit","A bar"],correct:0,hint:"Think about what happens after a rock arch falls 🌊"},{type:"visual",question:"What are gabions? 🧱",answers:["Wire cages filled with rocks","Types of seashells","Wooden fences"],correct:0,hint:"Metal containers packed with stone 🧱"},{type:"visual",question:"What is a wave-cut platform?",answers:["Flat rock area where cliffs retreated","A surfing stage","A type of pier"],correct:0,hint:"Exposed at low tide where cliffs used to be 🪨"},{type:"visual",question:"What does a spit look like on a map?",answers:["A narrow strip extending into the sea","A circular island","A straight cliff"],correct:0,hint:"It sticks out from the coast like a finger 👉"},{type:"visual",question:"Which of these is a tombolo?",answers:["Sand bar connecting an island to mainland","A type of storm","A coastal bird"],correct:0,hint:"It creates a land bridge 🏝️"},{type:"visual",question:"What does a concordant coastline look like?",answers:["Rock layers running parallel to shore","A coast with no cliffs","A zigzag shape"],correct:0,hint:"Rock bands go in the same direction as the coast 🗺️"},{type:"story",question:"Lord EroDo uses hydraulic action. What is he really doing?",answers:["Forcing water into cracks to break rock","Painting the cliffs","Building sandcastles"],correct:0,hint:"Water pressure is his weapon 💨"},{type:"story",question:"Holly says Hemsby is at special risk. Why?",answers:["It sits on soft sandy cliffs","It's on a mountain","It's inland"],correct:0,hint:"The type of ground matters 🏡"},{type:"story",question:"In our story, what does calming the storm represent?",answers:["Stopping coastal erosion","Making it rain more","Building more houses"],correct:0,hint:"Each answer weakens Lord EroDo's power 🌊"},{type:"story",question:"Holly mentions coastal realignment. What does she mean?",answers:["Moving defences inland, letting sea reclaim land","Building walls further into the sea","Planting forests in the ocean"],correct:0,hint:"Working with nature rather than against it 🌿"},{type:"story",question:"What is Lord EroDo's greatest weapon according to the story?",answers:["The relentless power of the sea","A magic wand","A giant robot"],correct:0,hint:"The sea never stops 🌊"},{type:"story",question:"Why does Holly say 'every answer matters'?",answers:["Each one weakens the storm a little more","She likes counting","Answers are worth money"],correct:0,hint:"Small actions add up to big change! 💪"},{type:"story",question:"What is the difference between weathering and erosion in our adventure?",answers:["Weathering breaks rock in place, erosion moves it","They are the same thing","Weathering only happens underground"],correct:0,hint:"One stays put, the other involves transport 🚚"}],f5=u5.split("").filter(e=>e!==" ");f5.length;function m5(e){return[{step:Math.floor(e*.25),title:"💀 Lord EroDo Lurks...",lines:[`"You're doing well… too well! 😈"`,`"But you'll never finish MY storm trail!"`]},{step:Math.floor(e*.5),title:"💀 Lord EroDo Watches...",lines:['"Halfway?! Impossible! 😈"','"The storm is getting stronger…"','"You should give up now!"']},{step:Math.floor(e*.75),title:"💀 Lord EroDo Panics...",lines:[`"No… NO! You're almost there! 😈"`,`"This can't be happening!"`,`"I won't let you win!"`]}]}function p5(e,t){const n=["knowledge","scenario","visual","story"],r={knowledge:Os(e.filter(l=>
485l.type==="knowledge")),scenario:Os(e.filter(l=>l.type==="scenario")),visual:Os(e.filter(l=>l.type==="visual")),story:Os(e.filter(l=>l.type==="story"))},o=[],a={knowledge:0,scenario:0,visual:0,story:0};for(let l=0;l<t;l++){const c=n[l%n.length],u=r[c],h=a[c]%u.length;o.push(u[h]),a[c]++}return g5(o)}function g5(e){const t=Os(e),n=[],r=[...t];for(;r.length>0;){const o=n.length>=1?n[n.length-1].type:null,a=n.length>=2?n[n.length-2].type:null,i=o&&o===a?o:null,l=r.findIndex(c=>c.type!==i);l===-1?n.push(r.shift()):n.push(r.splice(l,1)[0])}return n}function Os(e){const t=[...e];for(let n=t.length-1;n>0;n--){const r=Math.floor(Math.random()*(n+1));[t[n],t[r]]=[t[r],t[n]]}return t}function x5(e){const t=[...e];for(let n=t.length-1;n>0;n--){const r=Math.floor(Math.random()*(n+1));[t[n],t[r]]=[t[r],t[n]]}return t}const ba="holly-rdr-progress";function y5(){try{const e=localStorage.getItem(ba);return e?JSON.parse(e):{}}catch{return{}}}const v5=({completionFromUrl:e,onCompletionConsumed:t})=>{const n=y5(),r=n.screen&&n.screen!=="intro",o=e?"certificate":r?n.screen:"intro",[a,i]=m.useState(o),[l,c]=m.useState(!!e),[u,h]=m.useState((e==null?void 0:e.name)||"");m.useState(()=>{e&&t&&t()});const[f,d]=m.useState(n.difficulty??"normal"),[v,p]=m.useState(n.currentStep??0),[x,w]=m.useState(null),[g,y]=m.useState(!1),[b,j]=m.useState(!1),[N,S]=m.useState(n.revealedLetters??[]),[E,C]=m.useState(""),[T,P]=m.useState(n.attempts??0),[A,O]=m.useState(!1),[Y,D]=m.useState(null),[q,W]=m.useState(()=>n.sessionPhrase||oa()),{phrase:_,letters:k,totalSteps:R}=m.useMemo(()=>c5(q),[q]),$=m.useMemo(()=>m5(R),[R]);m.useEffect(()=>{const K={screen:a,difficulty:f,currentStep:v,revealedLetters:N,sessionPhrase:q,attempts:T};localStorage.setItem(ba,JSON.stringify(K))},[a,f,v,N,q,T]),m.useMemo(()=>{console.log(`[Holly Debug] Session phrase: "${_}" (${R} letters)`)},[_,R]);const B=f==="hard"?h5:d5,Q=m.useMemo(()=>p5(B,R).map((ae,ce)=>{const Ke=ae.answers[ae.correct],Xt=x5(ae.answers);return{question:ae.question,answers:Xt,correctAnswer:Ke,hint:ae.hint,letter:k[ce]}}),[f,q])[v],se=_.split(""),Pe=K=>{if(g)return;w(K),y(!0);const ae=Q.answers[K]===Q.correctAnswer;j(ae),ae&&S(ce=>[...ce,Q.letter])},oe=()=>{if(!b){w(null),y(!1);return}const K=v+1;if($.find(ce=>ce.step===K)){D(K),i("erodo"),w(null),y(!1);return}K>=R?i("answer"):(p(K),w(null),y(!1))},rt=()=>{const K=Y;D(null),K>=R?i("answer"):(p(K),i("quiz"))},kt=()=>{E.trim().toUpperCase()===_?(O(!0),setTimeout(()=>O(!1),5e3),i("celebration")):(P(K=>K+1),i("incorrect"))},Dt=Q?Q.answers.indexOf(Q.correctAnswer):-1;return s.jsxs("div",{className:"max-w-2xl mx-auto py-4",children:[A&&s.jsx(Wc,{}),a==="intro"&&s.jsxs("div",{className:"animate-fade-in text-center px-2",children:[s.jsx("img",{src:"/images/holly-hero.png",alt:"Holly",className:"w-28 h-28 mx-auto mb-4 object-contain"}),s.jsx("h2",{className:"text-3xl font-extrabold mb-4 text-sky-700",children:"Holly's Rainy Day Rescue ☔"}),s.jsx(L,{className:"border-2 border-sky-200 bg-gradient-to-br from-sky-50 to-blue-50 mb-6",children:s.jsxs(z,{className:"p-6 space-y-3 text-lg text-sky-800 leading-relaxed",children:[s.jsx("p",{children:"The rain has trapped families inside… 🌧️"}),s.jsx("p",{children:"But Lord EroDo is using the storm to take over Hemsby! 💀"}),s.jsxs("p",{children:["Holly needs ",s.jsx("strong",{children:"YOUR"})," help."]}),s.jsx("p",{children:"Can you complete the trail from indoors and save the day? 💛"})]})}),s.jsx("img",{src:"/images/lord-erodo-full.jpeg",alt:"Lord EroDo",className:"w-full max-w-xs mx-auto rounded-xl mb-6 shadow-lg",style:{maskImage:"linear-gradient(to bottom, black 80%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 80%, transparent 100%)"}}),s.jsxs("div",{className:"mb-6",children:[s.jsx("p",{className:"text-sm font-semibold text-sky-600 mb-3",children:"Choose your challenge:"}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("button",{onClick:()=>d("normal"),className:`p-4 rounded-xl border-2 transition-all text-left ${f==="normal"?"border-sky-400 bg-sky-50 ring-2 ring-sky-300":"border-gray-200 bg-white hover:border-sky-200"}`,children:[s.jsx("span",{className:"text-2xl block mb-1",children:"🌟"}),s.jsx("span",{className:"font-bold text-sky-700 block",children:"Normal"}),s.jsx("span",{className:"text-xs text-gray-500",children:"Ages 5–10"})]}),s.jsxs("button",{onClick:()=>d("hard"),className:`p-4 rounded-xl border-2 transition-all text-left ${f==="hard"?"border-red-400 bg-red-50 ring-2 ring-red-300":"border-gray-200 bg-white hover:border-red-200"}`,children:[s.jsx("span",{className:"text-2xl block mb-1",children:"🔥"}),s.jsx("span",{className:"font-bold text-red-600 block",children:"Hard Mode"}),s.jsx("span",{className:"text-xs text-gray-500",children:"Ages 10+"})]})]})]}),s.jsx(I,{onClick:()=>{const K=oa();W(K),p(0),w(null),y(!1),j(!1),S([]),C(""),P(0),D(null),i("quiz")},className:"w-full text-lg font-bold py-6 rounded-xl shadow-lg bg-gradient-to-r from-sky-500 to-blue-500 hover:from-sky-600 hover:to-blue-600 text-white border-0",children:"✨ START THE RESCUE ✨"})]}),a==="quiz"&&Q&&s.jsxs("div",{className:"animate-fade-in px-2",children:[s.jsx(Gs,{progress:(v+(b&&g?1:0))/R,variant:"indoor"}),s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("span",{className:"text-sm font-semibold text-sky-600",children:["Step ",v+1," of ",R]}),s.jsxs("button",{onClick:()=>{localStorage.removeItem(ba),W(oa()),p(0),w(null),y(!1),j(!1),S([]),C(""),P(0),D(null),i("intro")},className:"text-xs text-gray-400 hover:text-red-500 flex items-center gap-1",children:[s.jsx(ur,{className:"w-3 h-3"}),"Restart"]})]}),s.jsx("div",{className:"w-full bg-sky-100 rounded-full h-2.5 mb-6 overflow-hidden",children:s.jsx("div",{className:"bg-gradient-to-r from-sky-4
48500 to-blue-500 h-2.5 rounded-full transition-all duration-500",style:{width:`${(v+(b&&g?1:0))/R*100}%`}})}),s.jsx("div",{className:"flex flex-wrap justify-center gap-1 mb-6",children:se.map((K,ae)=>{if(K===" ")return s.jsx("div",{className:"w-3"},ae);const ce=se.slice(0,ae+1).filter(Xt=>Xt!==" ").length-1,Ke=ce<N.length;return s.jsx("div",{className:`w-7 h-9 rounded border-2 flex items-center justify-center text-sm font-bold transition-all ${Ke?"border-sky-400 bg-sky-50 text-sky-700":"border-gray-200 bg-gray-50 text-transparent"}`,children:Ke?N[ce]:"?"},ae)})}),s.jsx(L,{className:"border-2 border-sky-200 mb-6",children:s.jsxs(z,{className:"p-6",children:[s.jsx("h3",{className:"text-xl font-bold text-sky-800 mb-5 text-center",children:Q.question}),s.jsx("div",{className:"space-y-3",children:Q.answers.map((K,ae)=>{let ce="w-full text-left text-lg py-4 px-5 rounded-xl border-2 transition-all font-medium ";return g?ae===Dt?ce+="border-green-400 bg-green-50 text-green-700":ae===x&&!b?ce+="border-red-300 bg-red-50 text-red-600":ce+="border-gray-200 bg-gray-50 text-gray-400":ce+="border-sky-200 hover:border-sky-400 hover:bg-sky-50 text-gray-700 cursor-pointer",s.jsx("button",{onClick:()=>Pe(ae),className:ce,disabled:g,children:K},ae)})}),g&&s.jsx("div",{className:`mt-5 p-4 rounded-xl text-center ${b?"bg-green-50 border border-green-200":"bg-amber-50 border border-amber-200"}`,children:b?s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-green-700 font-bold text-lg",children:"✅ Correct!"}),s.jsxs("p",{className:"text-green-600 mt-1",children:["You earned the letter: ",s.jsx("strong",{className:"text-2xl",children:Q.letter})]})]}):s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-amber-700 font-bold text-lg",children:"Not quite! 🤔"}),s.jsx("p",{className:"text-amber-600 mt-1",children:Q.hint})]})})]})}),g&&s.jsx(I,{onClick:oe,className:`w-full text-lg font-bold py-5 rounded-xl shadow-lg ${b?"bg-gradient-to-r from-sky-500 to-blue-500 hover:from-sky-600 hover:to-blue-600 text-white":"bg-gradient-to-r from-amber-500 to-orange-500 hover:from-amber-600 hover:to-orange-600 text-white"}`,children:b?v+1>=R?"Solve the Phrase ✨":"Next Question →":"Try Again 🔄"})]}),a==="erodo"&&Y!==null&&s.jsxs("div",{className:"animate-fade-in text-center px-2",children:[s.jsx("img",{src:"/images/lord-erodo-full.jpeg",alt:"Lord EroDo",className:"w-full max-w-xs mx-auto rounded-xl mb-4 shadow-lg",style:{height:"200px",objectFit:"cover",objectPosition:"top center",maskImage:"linear-gradient(to bottom, black 70%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 70%, transparent 100%)"}}),(()=>{const K=$.find(ae=>ae.step===Y);return K?s.jsx(L,{className:"border-2 border-purple-300 bg-gradient-to-br from-gray-900 to-gray-800 mb-6",children:s.jsxs(z,{className:"p-6",children:[s.jsx("h3",{className:"text-xl font-bold text-red-400 mb-3",children:K.title}),s.jsx("div",{className:"space-y-2",children:K.lines.map((ae,ce)=>s.jsx("p",{className:"text-gray-300 font-medium",children:ae},ce))})]})}):null})(),s.jsx(I,{onClick:rt,className:"w-full text-lg font-bold py-5 rounded-xl bg-gradient-to-r from-orange-500 to-amber-500 hover:from-orange-600 hover:to-amber-600 text-white",children:"👉 I'll prove you wrong!"})]}),a==="answer"&&s.jsxs("div",{className:"animate-fade-in text-center px-2",children:[s.jsx("div",{className:"text-6xl mb-4",children:"🔐"}),s.jsx("h2",{className:"text-3xl font-bold mb-2 text-sky-700",children:"Solve the Secret Message!"}),s.jsx("p",{className:"text-gray-500 mb-4",children:"Put the letters together to reveal the secret message 💛"}),s.jsx("div",{className:"flex flex-wrap justify-center gap-1 mb-6",children:se.map((K,ae)=>{if(K===" ")return s.jsx("div",{className:"w-3"},ae);const ce=se.slice(0,ae+1).filter(Ke=>Ke!==" ").length-1;return s.jsx("div",{className:"w-8 h-10 rounded border-2 border-sky-400 bg-sky-50 flex items-center justify-center text-base font-bold text-sky-700",children:ce<N.length?N[ce]:"?"},ae)})}),s.jsx(L,{className:"border-2 border-sky-200 mb-6",children:s.jsxs(z,{className:"p-6",children:[s.jsx(hs,{value:E,onChange:K=>C(K.target.value),placeholder:"Type the secret message...",className:"text-xl text-center h-14 mb-4 border-2 border-sky-200 focus:border-sky-400",onKeyDown:K=>K.key==="Enter"&&E.trim()&&kt()}),s.jsxs(I,{onClick:kt,disabled:!E.trim(),className:"w-full bg-gradient-to-r from-green-500 to-emerald-500 hover:from-green-600 hover:to-emerald-600 text-white text-xl py-6 rounded-xl shadow-lg",children:[s.jsx(fo,{className:"w-6 h-6 mr-2"}),"Submit Answer"]})]})})]}),a==="incorrect"&&s.jsxs("div",{className:"animate-fade-in text-center px-2",children:[s.jsx("div",{className:"text-7xl mb-4",children:"🤔"}),s.jsx(L,{className:"border-2 border-amber-200 bg-gradient-to-br from-amber-50 to-orange-50 mb-6",children:s.jsx(z,{className:"p-6",children:s.jsx("p",{className:"text-lg text-amber-700 italic",children:T<=1?"Hmm… not quite! Look at the letters you collected and try again 💛":"So close! The letters spell out what Holly does for Hemsby 🌊"})})}),s.jsxs(I,{onClick:()=>{C(""),i("answer")},className:"w-full bg-gradient-to-r from-sky-500 to-blue-500 hover:from-sky-600 hover:to-blue-600 text-white text-lg py-5 rounded-xl",children:[s.jsx(ur,{className:"w-5 h-5 mr-2"}),"Try Again"]})]}),a==="celebration"&&s.jsxs("div",{className:"animate-fade-in text-center px-2",children:[s.jsx(Gs,{progress:1,variant:"indoor"}),s.jsx("img",{src:"/images/holly-hero.png",alt:"Holly",className:"w-36 h-36 mx-auto mb-4 object-contain"}),s.jsx("h2",{className:"text-4xl font-bold mb-4 bg-gradient-to-r from-sky-4
48500 to-blue-500 bg-clip-text text-transparent",children:"YOU SAVED HEMSBY! 🌟"}),s.jsx(L,{className:"border-2 border-sky-200 bg-gradient-to-br from-sky-50 to-blue-50 mb-6",children:s.jsxs(z,{className:"p-6 space-y-2 text-lg text-sky-700 leading-relaxed",children:[s.jsx("p",{children:"The storm is gone… ☀️"}),s.jsx("p",{children:"The sea is calm… 🌊"}),s.jsx("p",{className:"text-xl font-bold text-sky-800",children:"You saved Hemsby 💛"})]})}),s.jsx(L,{className:"border-2 border-green-300 bg-gradient-to-br from-green-50 to-emerald-50 mb-6",children:s.jsxs(z,{className:"p-5",children:[s.jsx("p",{className:"text-lg text-green-700 font-medium",children:"You did it! 💛 Hemsby is safe because of you."}),s.jsx("p",{className:"text-base text-green-600 mt-2",children:"Download your certificate and celebrate your adventure! 🎓"})]})}),s.jsxs(I,{onClick:()=>i("certificate"),className:"w-full max-w-md mx-auto bg-gradient-to-r from-amber-500 to-orange-500 hover:from-amber-600 hover:to-orange-600 text-white text-xl py-6 rounded-xl shadow-lg font-bold",children:["🎓 Create My Certificate",s.jsx(rn,{className:"w-5 h-5 ml-2"})]})]}),a==="certificate"&&s.jsx(Sx,{onBack:()=>i("celebration"),onComplete:()=>i("claimPrize"),hardMode:f==="hard",restoredFromUrl:l,restoredName:u,trailType:"rainyday"}),a==="claimPrize"&&s.jsxs("div",{className:"animate-fade-in text-center px-2",children:[s.jsx("div",{className:"text-7xl mb-4",children:"🏆"}),s.jsx("h2",{className:"text-3xl font-bold mb-4 bg-gradient-to-r from-sky-500 to-blue-600 bg-clip-text text-transparent",children:"You Did It! 💛"}),s.jsx(L,{className:"border-2 border-green-300 bg-gradient-to-br from-green-50 to-emerald-50 mb-6",children:s.jsxs(z,{className:"p-6",children:[s.jsx("p",{className:"text-lg text-green-700 mb-2",children:"Hemsby is safe because of you. 🌊✨"}),s.jsx("p",{className:"text-base text-green-600",children:"Download your certificate and celebrate your adventure! 🎓"})]})}),s.jsx(L,{className:"border-2 border-sky-200 bg-gradient-to-br from-sky-50 to-blue-50 mb-6",children:s.jsxs(z,{className:"p-5",children:[s.jsx("p",{className:"text-base text-sky-700 font-medium",children:"Holly loves seeing your adventures 💛"}),s.jsx("p",{className:"text-sm text-sky-600 mt-1",children:"If you'd like to, share your win with Holly on Facebook!"})]})}),s.jsx(I,{onClick:()=>{const K=encodeURIComponent(`I just helped Holly save Hemsby in the Rainy Day Rescue! 🌧️💛
486Can you defeat Lord Erodo too?
487
488Play here: https://holly-holiday-adventures-fun.lovable.app`);window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent("https://holly-holiday-adventures-fun.lovable.app")}&quote=${K}`,"_blank")},className:"w-full max-w-md mx-auto bg-gradient-to-r from-blue-600 to-blue-700 hover:from-blue-700 hover:to-blue-800 text-white text-lg py-5 rounded-xl shadow-lg font-bold mb-4",children:"📲 Share Your Adventure"}),s.jsxs(I,{variant:"outline",onClick:()=>i("certificate"),className:"w-full max-w-md mx-auto text-lg px-6 py-5 mb-3",children:[s.jsx(nn,{className:"w-4 h-4 mr-2"}),"Back to Certificate"]}),s.jsxs(I,{onClick:()=>{localStorage.removeItem(ba),W(oa()),p(0),w(null),y(!1),j(!1),S([]),C(""),P(0),D(null),i("intro")},className:"w-full max-w-md mx-auto bg-gradient-to-r from-sky-500 to-blue-500 hover:from-sky-600 hover:to-blue-600 text-white text-lg py-5 rounded-xl shadow-lg font-bold",children:[s.jsx(ur,{className:"w-5 h-5 mr-2"}),"Play Again 🎮"]})]})]})},Ef="https://holly-holiday-adventures-fun.lovable.app",w5=()=>{const[e,t]=m.useState(!1),[n,r]=m.useState(!1);if(e)return null;const o=async()=>{try{await navigator.clipboard.writeText(Ef)}catch{const a=document.createElement("textarea");a.value=Ef,document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a)}r(!0),setTimeout(()=>r(!1),4e3)};return s.jsxs("div",{className:"bg-amber-50 border-b-2 border-amber-200 px-4 py-3 relative",children:[s.jsx("button",{onClick:()=>t(!0),className:"absolute top-2 right-2 text-amber-400 hover:text-amber-600 p-1","aria-label":"Dismiss",children:s.jsx(Ro,{className:"w-4 h-4"})}),s.jsxs("div",{className:"max-w-lg mx-auto text-center",children:[s.jsx("p",{className:"text-lg font-semibold text-amber-800 mb-1",children:"📲 Opening from Facebook?"}),s.jsx("p",{className:"text-sm text-amber-700 mb-3",children:"For the best experience, open this in your browser."}),s.jsx(I,{onClick:o,className:"bg-gradient-to-r from-amber-500 to-orange-500 hover:from-amber-600 hover:to-orange-600 text-white rounded-xl px-5 py-2 text-sm font-semibold",children:n?s.jsxs(s.Fragment,{children:[s.jsx(Gu,{className:"w-4 h-4 mr-1"}),"Link copied!"]}):s.jsxs(s.Fragment,{children:[s.jsx(Qu,{className:"w-4 h-4 mr-1"}),"👉 Copy Link to Open in Browser"]})}),n&&s.jsx("p",{className:"text-sm text-amber-700 mt-2 animate-fade-in",children:"Link copied! Open it in Safari or Chrome for the best experience 💛"})]})]})},b5=()=>{const[e,t]=m.useState("home"),[n,r]=m.useState(null);m.useEffect(()=>{const d=new URLSearchParams(window.location.search),v=d.get("trail"),p=d.get("complete");if(v&&p==="1"){const x=d.get("name")||"",w=d.get("hard")==="1";r({name:x||void 0,hardMode:w}
488),v==="treasure"?t("treasure"):v==="rainyday"&&t("rainyday"),window.history.replaceState({},"",window.location.pathname)}},[]);const[o,a]=m.useState("beach"),[i,l]=m.useState(42),c=[{id:"home",icon:To,label:"Home",color:"bg-blue-500"},{id:"treasure",icon:ub,label:"Treasure Trail",color:"bg-amber-500"},{id:"rainyday",icon:gr,label:"Rainy Day ☔",color:"bg-sky-500"},{id:"curiosities",icon:Ya,label:"Curiosities",color:"bg-indigo-500"},{id:"builder",icon:lb,label:"Caravan Builder",color:"bg-orange-500"},{id:"surprise",icon:xr,label:"Surprise",color:"bg-purple-500"},{id:"countdown",icon:Yu,label:"Countdown",color:"bg-orange-500"},{id:"feelings",icon:ct,label:"Feelings",color:"bg-pink-500"},{id:"bedtime",icon:R0,label:"Bedtime",color:"bg-purple-500"},{id:"games",icon:P0,label:"Games",color:"bg-green-500"},{id:"stories",icon:Ya,label:"Stories",color:"bg-orange-500"},{id:"rewards",icon:dt,label:"Rewards",color:"bg-pink-500"},{id:"creative",icon:fb,label:"Creative",color:"bg-yellow-500"},{id:"share",icon:Xu,label:"Share App",color:"bg-teal-500"},{id:"grownup",icon:E0,label:"Grown-Up Zone",color:"bg-amber-600"}],u=d=>{l(v=>v-d)},h=()=>o==="rustbuster"?s.jsx(dk,{}):s.jsxs("div",{children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsx("h2",{className:"text-3xl font-bold mb-4 text-green-600",children:"Holly's Games"}),s.jsx("p",{className:"text-lg text-gray-600 mb-6",children:"Choose your adventure!"}),s.jsxs("div",{className:"flex justify-center gap-4 mb-8",children:[s.jsxs(I,{onClick:()=>a("beach"),variant:o==="beach"?"default":"outline",className:"flex items-center space-x-2",children:[s.jsx("span",{children:"🌊"}),s.jsx("span",{children:"Beach Cleanup"})]}),s.jsxs(I,{onClick:()=>a("rustbuster"),variant:o==="rustbuster"?"default":"outline",className:"flex items-center space-x-2",children:[s.jsx("span",{children:"🧼"}),s.jsx("span",{children:"Dr. Rust Buster"})]})]})]}),s.jsx(rk,{onEarnCoins:d=>l(v=>v+d)})]}),f=()=>{switch(e){case"curiosities":return s.jsx(Qk,{});case"treasure":return s.jsx(i5,{completionFromUrl:n,onCompletionConsumed:()=>r(null)});case"rainyday":return s.jsx(v5,{completionFromUrl:n,onCompletionConsumed:()=>r(null)});case"builder":return s.jsx(xk,{});case"surprise":return s.jsx(hk,{onEarnCoins:d=>l(v=>v+d)});case"countdown":return s.jsx(lk,{});case"feelings":return s.jsx(ik,{});case"bedtime":return s.jsx(nk,{onEarnCoins:d=>l(v=>v+d)});case"games":return h();case"stories":return s.jsx(sk,{});case"rewards":return s.jsx(ak,{hollyCoins:i,onSpendCoins:u});case"grownup":return s.jsx(yk,{});case"share":return s.jsx(Kk,{});case"creative":return s.jsxs("div",{className:"text-center py-16",children:[s.jsx("div",{className:"mb-8",children:s.jsx("img",{src:"/lovable-uploads/263dee22-be77-4cdc-a5b2-03b4c38048be.png",alt:"Holly the Holiday Hero - L & K Holidays",className:"w-64 h-64 mx-auto object-contain"})}),s.jsx("h2",{className:"text-3xl font-bold mb-4 text-yellow-600",children:"Creative Corner"}),s.jsx("p",{className:"text-lg text-gray-600 mb-8",children:"Coming Soon!"}),s.jsx("p",{className:"text-gray-500",children:"Color Holly and make postcards"})]});default:return s.jsxs("div",{className:"text-center",children:[s.jsx(l5,{onStart:()=>t("treasure"),onStartTrail:()=>t("treasure"),onStartRainyDay:()=>t("rainyday")}),s.jsxs("div",{className:"mb-8 p-6 bg-gradient-to-r from-blue-50 to-orange-50 rounded-xl border-2 border-orange-200 max-w-2xl mx-auto",children:[s.jsx("img",{src:"/lovable-uploads/1f9b991d-4267-47eb-b2f2-7ca37a652b20.png",alt:"Welcome to your perfect seaside escape with Holly",className:"w-full max-w-md mx-auto object-contain rounded-lg mb-4"}),s.jsx("p",{className:"text-orange-700 font-medium mb-4",children:"Welcome to your perfect seaside escape with Holly!"}),s.jsx(I,{asChild:!0,className:"bg-orange-500 hover:bg-orange-600 text-white",children:s.jsxs("a",{href:"https://www.l-k-holidays.com",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center space-x-2",children:[s.jsx("span",{children:"Visit L & K Holidays"}),s.jsx(T0,{className:"w-4 h-4"})]})})]}),s.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4 max-w-2xl mx-auto",children:c.slice(1).map(d=>s.jsx(L,{className:"hover:shadow-lg transition-all duration-300 hover:scale-105 cursor-pointer",onClick:()=>t(d.id),children:s.jsxs(z,{className:"p-6 text-center",children:[s.jsx("div",{className:`${d.color} rounded-full w-16 h-16 mx-auto mb-3 flex items-center justify-center shadow-md`,children:s.jsx(d.icon,{className:"w-8 h-8 text-white"})}),s.jsx("h3",{className:"font-semibold text-gray-700",children:d.label})]})},d.id))})]})}};return s.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 via-purple-50 to-pink-50",children:[e==="home"&&s.jsx(w5,{}),s.jsx("div",{className:"bg-white shadow-sm sticky top-0 z-50",children:s.jsxs("div",{className:"container mx-auto px-4 py-4 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:"bg-gradient-to-r from-blue-500 to-purple-500 rounded-full w-10 h-10 flex items-center justify-center",children:s.jsx(mt,{className:"w-6 h-6 text-white"})}),s.jsx("h1",{className:"text-xl font-bold text-gray-800",children:"Holly the Holiday Hero"})]}),s.jsx("div",{className:"flex items-center space-x-2",children:s.jsxs(te,{variant:"secondary",className:"bg-yellow-100 text-yellow-800 hover:bg-yellow-200",children:[s.jsx(mo,{className:"w-4 h-4 mr-1"}),i]})})]})}),s.jsx("div",{className:"bg-white border-b shadow-sm",children:s.jsx("div",{className:"container mx-auto px-4",children:s.jsx("div",{className:"flex space-x-1 overflow-x-auto py-2",children:c.map(d=>s.jsxs(I,{variant:e===d.id?"default":"ghost",className:`flex items-center space-x-2 whitespace-nowrap ${e===d.id?"bg-gradient-to-r from-blue-500 to-purple-500 text-white":"hover:bg-gray-100"}`,onClick:()=>t(d.id),children:[s.jsx(d.icon,{className:"w-4 h-4"}),s.jsx("span",{children:d.label})]},d.id))})})}),s.jsx("div",{className:"container mx-auto px-4 py-8",children:f()})]})},j5=()=>{const e=Mg();return m.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),s.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:s.jsxs("div",{className:"text-center",children:[s.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),s.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),s.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},N5=new Oj,k5=()=>s.jsx(Dj,{client:N5,children:s.jsxs(fj,{children:[s.jsx(c1,{}),s.jsx(D1,{}),s.jsx(jN,{children:s.jsxs(vN,{children:[s.jsx(_c,{path:"/",element:s.jsx(b5,{})}),s.jsx(_c,{path:"*",element:s.jsx(j5,{})})]})})]})});Xp(document.getElementById("root")).render(s.jsx(k5,{}));

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.