HifiPlanet-Website/hifi/assets/index-CeNRYcbS.js
Maaxxs e32bced40f Stop the homepage from jumping when mobile browser bars collapse
The hero used 100dvh, which grows once the phone browser has hidden its
address and bottom bars after a scroll. The hero then became ~110px
taller and pushed the stats strip and everything below it down, right
while the stats were fading in. 100svh stays fixed at the bars-shown
height, so the hero still fills the first screen on load but no longer
resizes afterwards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 00:33:21 +02:00

303 lines
468 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/iconRegistry-B8BVNGep.js","assets/eye-B3iFgvk-.js","assets/trash-2-CR1es5DZ.js","assets/Brands-C6eVwhOd.js","assets/ImageUploadField-DZzU8Hmm.js","assets/TextStyleWidget-DErOyFHL.js","assets/Models-CwWP_c2v.js","assets/GalleryBrands-DeSW9tLo.js","assets/GalleryProjects-DrxLi25V.js","assets/Packages-By73LRCs.js","assets/Services-Dnq8KYw0.js","assets/Partners-D1IaNCA2.js","assets/Downloads-B-dRPpYw.js","assets/HomeSections-Du6kmhHi.js","assets/RichTextEditor-BR1AFZHM.js","assets/WebsiteSettings-BwL06xkK.js","assets/LegalSettings-DAfuQqrY.js","assets/EmailSettings-Bbqu3Noj.js"])))=>i.map(i=>d[i]);
function iy(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function km(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bm={exports:{}},_o={},Sm={exports:{}},K={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Vs=Symbol.for("react.element"),oy=Symbol.for("react.portal"),ay=Symbol.for("react.fragment"),ly=Symbol.for("react.strict_mode"),uy=Symbol.for("react.profiler"),cy=Symbol.for("react.provider"),dy=Symbol.for("react.context"),fy=Symbol.for("react.forward_ref"),hy=Symbol.for("react.suspense"),my=Symbol.for("react.memo"),py=Symbol.for("react.lazy"),cd=Symbol.iterator;function gy(e){return e===null||typeof e!="object"?null:(e=cd&&e[cd]||e["@@iterator"],typeof e=="function"?e:null)}var jm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Pm=Object.assign,Tm={};function Cr(e,t,n){this.props=e,this.context=t,this.refs=Tm,this.updater=n||jm}Cr.prototype.isReactComponent={};Cr.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")};Cr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Cm(){}Cm.prototype=Cr.prototype;function Mu(e,t,n){this.props=e,this.context=t,this.refs=Tm,this.updater=n||jm}var Lu=Mu.prototype=new Cm;Lu.constructor=Mu;Pm(Lu,Cr.prototype);Lu.isPureReactComponent=!0;var dd=Array.isArray,Em=Object.prototype.hasOwnProperty,Au={current:null},Nm={key:!0,ref:!0,__self:!0,__source:!0};function _m(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Em.call(t,r)&&!Nm.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];s.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:Vs,type:e,key:i,ref:o,props:s,_owner:Au.current}}function xy(e,t){return{$$typeof:Vs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Du(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vs}function yy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var fd=/\/+/g;function ra(e,t){return typeof e=="object"&&e!==null&&e.key!=null?yy(""+e.key):t.toString(36)}function ji(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Vs:case oy:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+ra(o,0):r,dd(s)?(n="",e!=null&&(n=e.replace(fd,"$&/")+"/"),ji(s,t,n,"",function(c){return c})):s!=null&&(Du(s)&&(s=xy(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(fd,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",dd(e))for(var a=0;a<e.length;a++){i=e[a];var u=r+ra(i,a);o+=ji(i,t,n,u,s)}else if(u=gy(e),typeof u=="function")for(e=u.call(e),a=0;!(i=e.next()).done;)i=i.value,u=r+ra(i,a++),o+=ji(i,t,n,u,s);else if(i==="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 o}function Js(e,t,n){if(e==null)return e;var r=[],s=0;return ji(e,r,"","",function(i){return t.call(n,i,s++)}),r}function vy(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 $e={current:null},Pi={transition:null},wy={ReactCurrentDispatcher:$e,ReactCurrentBatchConfig:Pi,ReactCurrentOwner:Au};function Mm(){throw Error("act(...) is not supported in production builds of React.")}K.Children={map:Js,forEach:function(e,t,n){Js(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Js(e,function(){t++}),t},toArray:function(e){return Js(e,function(t){return t})||[]},only:function(e){if(!Du(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};K.Component=Cr;K.Fragment=ay;K.Profiler=uy;K.PureComponent=Mu;K.StrictMode=ly;K.Suspense=hy;K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wy;K.act=Mm;K.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=Pm({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Au.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)Em.call(t,u)&&!Nm.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){a=Array(u);for(var c=0;c<u;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Vs,type:e.type,key:s,ref:i,props:r,_owner:o}};K.createContext=function(e){return e={$$typeof:dy,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:cy,_context:e},e.Consumer=e};K.createElement=_m;K.createFactory=function(e){var t=_m.bind(null,e);return t.type=e,t};K.createRef=function(){return{current:null}};K.forwardRef=function(e){return{$$typeof:fy,render:e}};K.isValidElement=Du;K.lazy=function(e){return{$$typeof:py,_payload:{_status:-1,_result:e},_init:vy}};K.memo=function(e,t){return{$$typeof:my,type:e,compare:t===void 0?null:t}};K.startTransition=function(e){var t=Pi.transition;Pi.transition={};try{e()}finally{Pi.transition=t}};K.unstable_act=Mm;K.useCallback=function(e,t){return $e.current.useCallback(e,t)};K.useContext=function(e){return $e.current.useContext(e)};K.useDebugValue=function(){};K.useDeferredValue=function(e){return $e.current.useDeferredValue(e)};K.useEffect=function(e,t){return $e.current.useEffect(e,t)};K.useId=function(){return $e.current.useId()};K.useImperativeHandle=function(e,t,n){return $e.current.useImperativeHandle(e,t,n)};K.useInsertionEffect=function(e,t){return $e.current.useInsertionEffect(e,t)};K.useLayoutEffect=function(e,t){return $e.current.useLayoutEffect(e,t)};K.useMemo=function(e,t){return $e.current.useMemo(e,t)};K.useReducer=function(e,t,n){return $e.current.useReducer(e,t,n)};K.useRef=function(e){return $e.current.useRef(e)};K.useState=function(e){return $e.current.useState(e)};K.useSyncExternalStore=function(e,t,n){return $e.current.useSyncExternalStore(e,t,n)};K.useTransition=function(){return $e.current.useTransition()};K.version="18.3.1";Sm.exports=K;var x=Sm.exports;const Lm=km(x),ky=iy({__proto__:null,default:Lm},[x]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var by=x,Sy=Symbol.for("react.element"),jy=Symbol.for("react.fragment"),Py=Object.prototype.hasOwnProperty,Ty=by.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Cy={key:!0,ref:!0,__self:!0,__source:!0};function Am(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Py.call(t,r)&&!Cy.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:Sy,type:e,key:i,ref:o,props:s,_owner:Ty.current}}_o.Fragment=jy;_o.jsx=Am;_o.jsxs=Am;bm.exports=_o;var l=bm.exports,el={},Dm={exports:{}},tt={},Rm={exports:{}},Im={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(E,C){var A=E.length;E.push(C);e:for(;0<A;){var F=A-1>>>1,q=E[F];if(0<s(q,C))E[F]=C,E[A]=q,A=F;else break e}}function n(E){return E.length===0?null:E[0]}function r(E){if(E.length===0)return null;var C=E[0],A=E.pop();if(A!==C){E[0]=A;e:for(var F=0,q=E.length,Me=q>>>1;F<Me;){var D=2*(F+1)-1,$=E[D],fe=D+1,Q=E[fe];if(0>s($,A))fe<q&&0>s(Q,$)?(E[F]=Q,E[fe]=A,F=fe):(E[F]=$,E[D]=A,F=D);else if(fe<q&&0>s(Q,A))E[F]=Q,E[fe]=A,F=fe;else break e}}return C}function s(E,C){var A=E.sortIndex-C.sortIndex;return A!==0?A:E.id-C.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],c=[],d=1,f=null,h=3,p=!1,w=!1,v=!1,k=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(E){for(var C=n(c);C!==null;){if(C.callback===null)r(c);else if(C.startTime<=E)r(c),C.sortIndex=C.expirationTime,t(u,C);else break;C=n(c)}}function b(E){if(v=!1,y(E),!w)if(n(u)!==null)w=!0,B(P);else{var C=n(c);C!==null&&W(b,C.startTime-E)}}function P(E,C){w=!1,v&&(v=!1,g(j),j=-1),p=!0;var A=h;try{for(y(C),f=n(u);f!==null&&(!(f.expirationTime>C)||E&&!O());){var F=f.callback;if(typeof F=="function"){f.callback=null,h=f.priorityLevel;var q=F(f.expirationTime<=C);C=e.unstable_now(),typeof q=="function"?f.callback=q:f===n(u)&&r(u),y(C)}else r(u);f=n(u)}if(f!==null)var Me=!0;else{var D=n(c);D!==null&&W(b,D.startTime-C),Me=!1}return Me}finally{f=null,h=A,p=!1}}var T=!1,S=null,j=-1,L=5,N=-1;function O(){return!(e.unstable_now()-N<L)}function H(){if(S!==null){var E=e.unstable_now();N=E;var C=!0;try{C=S(!0,E)}finally{C?oe():(T=!1,S=null)}}else T=!1}var oe;if(typeof m=="function")oe=function(){m(H)};else if(typeof MessageChannel<"u"){var _=new MessageChannel,R=_.port2;_.port1.onmessage=H,oe=function(){R.postMessage(null)}}else oe=function(){k(H,0)};function B(E){S=E,T||(T=!0,oe())}function W(E,C){j=k(function(){E(e.unstable_now())},C)}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(E){E.callback=null},e.unstable_continueExecution=function(){w||p||(w=!0,B(P))},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<E?Math.floor(1e3/E):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(E){switch(h){case 1:case 2:case 3:var C=3;break;default:C=h}var A=h;h=C;try{return E()}finally{h=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(E,C){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var A=h;h=E;try{return C()}finally{h=A}},e.unstable_scheduleCallback=function(E,C,A){var F=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?F+A:F):A=F,E){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=A+q,E={id:d++,callback:C,priorityLevel:E,startTime:A,expirationTime:q,sortIndex:-1},A>F?(E.sortIndex=A,t(c,E),n(u)===null&&E===n(c)&&(v?(g(j),j=-1):v=!0,W(b,A-F))):(E.sortIndex=q,t(u,E),w||p||(w=!0,B(P))),E},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(E){var C=h;return function(){var A=h;h=C;try{return E.apply(this,arguments)}finally{h=A}}}})(Im);Rm.exports=Im;var Ey=Rm.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ny=x,et=Ey;function M(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 Vm=new Set,hs={};function Hn(e,t){gr(e,t),gr(e+"Capture",t)}function gr(e,t){for(hs[e]=t,e=0;e<t.length;e++)Vm.add(t[e])}var Ht=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tl=Object.prototype.hasOwnProperty,_y=/^[: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]*$/,hd={},md={};function My(e){return tl.call(md,e)?!0:tl.call(hd,e)?!1:_y.test(e)?md[e]=!0:(hd[e]=!0,!1)}function Ly(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"||Ly(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function He(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var _e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_e[e]=new He(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 He(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){_e[e]=new He(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_e[e]=new He(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 He(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){_e[e]=new He(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){_e[e]=new He(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){_e[e]=new He(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){_e[e]=new He(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ru=/[\-:]([a-z])/g;function Iu(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(Ru,Iu);_e[t]=new He(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(Ru,Iu);_e[t]=new He(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(Ru,Iu);_e[t]=new He(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){_e[e]=new He(e,1,!1,e.toLowerCase(),null,!1,!1)});_e.xlinkHref=new He("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){_e[e]=new He(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vu(e,t,n,r){var s=_e.hasOwnProperty(t)?_e[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ay(t,n,s,r)&&(n=null),r||s===null?My(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Kt=Ny.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ei=Symbol.for("react.element"),Xn=Symbol.for("react.portal"),Yn=Symbol.for("react.fragment"),Ou=Symbol.for("react.strict_mode"),nl=Symbol.for("react.profiler"),Om=Symbol.for("react.provider"),Fm=Symbol.for("react.context"),Fu=Symbol.for("react.forward_ref"),rl=Symbol.for("react.suspense"),sl=Symbol.for("react.suspense_list"),zu=Symbol.for("react.memo"),Qt=Symbol.for("react.lazy"),zm=Symbol.for("react.offscreen"),pd=Symbol.iterator;function Ir(e){return e===null||typeof e!="object"?null:(e=pd&&e[pd]||e["@@iterator"],typeof e=="function"?e:null)}var de=Object.assign,sa;function Gr(e){if(sa===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);sa=t&&t[1]||""}return`
`+sa+e}var ia=!1;function oa(e,t){if(!e||ia)return"";ia=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var s=c.stack.split(`
`),i=r.stack.split(`
`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var u=`
`+s[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{ia=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gr(e):""}function Dy(e){switch(e.tag){case 5:return Gr(e.type);case 16:return Gr("Lazy");case 13:return Gr("Suspense");case 19:return Gr("SuspenseList");case 0:case 2:case 15:return e=oa(e.type,!1),e;case 11:return e=oa(e.type.render,!1),e;case 1:return e=oa(e.type,!0),e;default:return""}}function il(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 Yn:return"Fragment";case Xn:return"Portal";case nl:return"Profiler";case Ou:return"StrictMode";case rl:return"Suspense";case sl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fm:return(e.displayName||"Context")+".Consumer";case Om:return(e._context.displayName||"Context")+".Provider";case Fu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case zu:return t=e.displayName||null,t!==null?t:il(e.type)||"Memo";case Qt:t=e._payload,e=e._init;try{return il(e(t))}catch{}}return null}function Ry(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 il(t);case 8:return t===Ou?"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 gn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Bm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Iy(e){var t=Bm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ti(e){e._valueTracker||(e._valueTracker=Iy(e))}function $m(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Bm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ui(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 ol(e,t){var n=t.checked;return de({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function gd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gn(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 Hm(e,t){t=t.checked,t!=null&&Vu(e,"checked",t,!1)}function al(e,t){Hm(e,t);var n=gn(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")?ll(e,t.type,n):t.hasOwnProperty("defaultValue")&&ll(e,t.type,gn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xd(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 ll(e,t,n){(t!=="number"||Ui(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Kr=Array.isArray;function cr(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+gn(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function ul(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(M(91));return de({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function yd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(M(92));if(Kr(n)){if(1<n.length)throw Error(M(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:gn(n)}}function Wm(e,t){var n=gn(t.value),r=gn(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 vd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Um(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 cl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Um(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ni,Gm=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ni=ni||document.createElement("div"),ni.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ni.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ms(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zr={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},Vy=["Webkit","ms","Moz","O"];Object.keys(Zr).forEach(function(e){Vy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zr[t]=Zr[e]})});function Km(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zr.hasOwnProperty(e)&&Zr[e]?(""+t).trim():t+"px"}function Xm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Km(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Oy=de({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 dl(e,t){if(t){if(Oy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function fl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var hl=null;function Bu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ml=null,dr=null,fr=null;function wd(e){if(e=zs(e)){if(typeof ml!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Ro(t),ml(e.stateNode,e.type,t))}}function Ym(e){dr?fr?fr.push(e):fr=[e]:dr=e}function qm(){if(dr){var e=dr,t=fr;if(fr=dr=null,wd(e),t)for(e=0;e<t.length;e++)wd(t[e])}}function Qm(e,t){return e(t)}function Zm(){}var aa=!1;function Jm(e,t,n){if(aa)return e(t,n);aa=!0;try{return Qm(e,t,n)}finally{aa=!1,(dr!==null||fr!==null)&&(Zm(),qm())}}function ps(e,t){var n=e.stateNode;if(n===null)return null;var r=Ro(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(M(231,t,typeof n));return n}var pl=!1;if(Ht)try{var Vr={};Object.defineProperty(Vr,"passive",{get:function(){pl=!0}}),window.addEventListener("test",Vr,Vr),window.removeEventListener("test",Vr,Vr)}catch{pl=!1}function Fy(e,t,n,r,s,i,o,a,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Jr=!1,Gi=null,Ki=!1,gl=null,zy={onError:function(e){Jr=!0,Gi=e}};function By(e,t,n,r,s,i,o,a,u){Jr=!1,Gi=null,Fy.apply(zy,arguments)}function $y(e,t,n,r,s,i,o,a,u){if(By.apply(this,arguments),Jr){if(Jr){var c=Gi;Jr=!1,Gi=null}else throw Error(M(198));Ki||(Ki=!0,gl=c)}}function Wn(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 ep(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 kd(e){if(Wn(e)!==e)throw Error(M(188))}function Hy(e){var t=e.alternate;if(!t){if(t=Wn(e),t===null)throw Error(M(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return kd(s),e;if(i===r)return kd(s),t;i=i.sibling}throw Error(M(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o)throw Error(M(189))}}if(n.alternate!==r)throw Error(M(190))}if(n.tag!==3)throw Error(M(188));return n.stateNode.current===n?e:t}function tp(e){return e=Hy(e),e!==null?np(e):null}function np(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=np(e);if(t!==null)return t;e=e.sibling}return null}var rp=et.unstable_scheduleCallback,bd=et.unstable_cancelCallback,Wy=et.unstable_shouldYield,Uy=et.unstable_requestPaint,pe=et.unstable_now,Gy=et.unstable_getCurrentPriorityLevel,$u=et.unstable_ImmediatePriority,sp=et.unstable_UserBlockingPriority,Xi=et.unstable_NormalPriority,Ky=et.unstable_LowPriority,ip=et.unstable_IdlePriority,Mo=null,Mt=null;function Xy(e){if(Mt&&typeof Mt.onCommitFiberRoot=="function")try{Mt.onCommitFiberRoot(Mo,e,void 0,(e.current.flags&128)===128)}catch{}}var wt=Math.clz32?Math.clz32:Qy,Yy=Math.log,qy=Math.LN2;function Qy(e){return e>>>=0,e===0?32:31-(Yy(e)/qy|0)|0}var ri=64,si=4194304;function Xr(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 Yi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Xr(a):(i&=o,i!==0&&(r=Xr(i)))}else o=n&~s,o!==0?r=Xr(o):i!==0&&(r=Xr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&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-wt(t),s=1<<n,r|=e[n],t&=~s;return r}function Zy(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 Jy(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-wt(i),a=1<<o,u=s[o];u===-1?(!(a&n)||a&r)&&(s[o]=Zy(a,t)):u<=t&&(e.expiredLanes|=a),i&=~a}}function xl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function op(){var e=ri;return ri<<=1,!(ri&4194240)&&(ri=64),e}function la(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Os(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wt(t),e[t]=n}function ev(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-wt(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Hu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-wt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var J=0;function ap(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var lp,Wu,up,cp,dp,yl=!1,ii=[],an=null,ln=null,un=null,gs=new Map,xs=new Map,en=[],tv="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 Sd(e,t){switch(e){case"focusin":case"focusout":an=null;break;case"dragenter":case"dragleave":ln=null;break;case"mouseover":case"mouseout":un=null;break;case"pointerover":case"pointerout":gs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xs.delete(t.pointerId)}}function Or(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=zs(t),t!==null&&Wu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function nv(e,t,n,r,s){switch(t){case"focusin":return an=Or(an,e,t,n,r,s),!0;case"dragenter":return ln=Or(ln,e,t,n,r,s),!0;case"mouseover":return un=Or(un,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return gs.set(i,Or(gs.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,xs.set(i,Or(xs.get(i)||null,e,t,n,r,s)),!0}return!1}function fp(e){var t=En(e.target);if(t!==null){var n=Wn(t);if(n!==null){if(t=n.tag,t===13){if(t=ep(n),t!==null){e.blockedOn=t,dp(e.priority,function(){up(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 Ti(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);hl=r,n.target.dispatchEvent(r),hl=null}else return t=zs(n),t!==null&&Wu(t),e.blockedOn=n,!1;t.shift()}return!0}function jd(e,t,n){Ti(e)&&n.delete(t)}function rv(){yl=!1,an!==null&&Ti(an)&&(an=null),ln!==null&&Ti(ln)&&(ln=null),un!==null&&Ti(un)&&(un=null),gs.forEach(jd),xs.forEach(jd)}function Fr(e,t){e.blockedOn===t&&(e.blockedOn=null,yl||(yl=!0,et.unstable_scheduleCallback(et.unstable_NormalPriority,rv)))}function ys(e){function t(s){return Fr(s,e)}if(0<ii.length){Fr(ii[0],e);for(var n=1;n<ii.length;n++){var r=ii[n];r.blockedOn===e&&(r.blockedOn=null)}}for(an!==null&&Fr(an,e),ln!==null&&Fr(ln,e),un!==null&&Fr(un,e),gs.forEach(t),xs.forEach(t),n=0;n<en.length;n++)r=en[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<en.length&&(n=en[0],n.blockedOn===null);)fp(n),n.blockedOn===null&&en.shift()}var hr=Kt.ReactCurrentBatchConfig,qi=!0;function sv(e,t,n,r){var s=J,i=hr.transition;hr.transition=null;try{J=1,Uu(e,t,n,r)}finally{J=s,hr.transition=i}}function iv(e,t,n,r){var s=J,i=hr.transition;hr.transition=null;try{J=4,Uu(e,t,n,r)}finally{J=s,hr.transition=i}}function Uu(e,t,n,r){if(qi){var s=vl(e,t,n,r);if(s===null)ya(e,t,r,Qi,n),Sd(e,r);else if(nv(s,e,t,n,r))r.stopPropagation();else if(Sd(e,r),t&4&&-1<tv.indexOf(e)){for(;s!==null;){var i=zs(s);if(i!==null&&lp(i),i=vl(e,t,n,r),i===null&&ya(e,t,r,Qi,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else ya(e,t,r,null,n)}}var Qi=null;function vl(e,t,n,r){if(Qi=null,e=Bu(r),e=En(e),e!==null)if(t=Wn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ep(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 Qi=e,null}function hp(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(Gy()){case $u:return 1;case sp:return 4;case Xi:case Ky:return 16;case ip:return 536870912;default:return 16}default:return 16}}var nn=null,Gu=null,Ci=null;function mp(){if(Ci)return Ci;var e,t=Gu,n=t.length,r,s="value"in nn?nn.value:nn.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return Ci=s.slice(e,1<r?1-r:void 0)}function Ei(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 oi(){return!0}function Pd(){return!1}function nt(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?oi:Pd,this.isPropagationStopped=Pd,this}return de(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=oi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=oi)},persist:function(){},isPersistent:oi}),t}var Er={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ku=nt(Er),Fs=de({},Er,{view:0,detail:0}),ov=nt(Fs),ua,ca,zr,Lo=de({},Fs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xu,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!==zr&&(zr&&e.type==="mousemove"?(ua=e.screenX-zr.screenX,ca=e.screenY-zr.screenY):ca=ua=0,zr=e),ua)},movementY:function(e){return"movementY"in e?e.movementY:ca}}),Td=nt(Lo),av=de({},Lo,{dataTransfer:0}),lv=nt(av),uv=de({},Fs,{relatedTarget:0}),da=nt(uv),cv=de({},Er,{animationName:0,elapsedTime:0,pseudoElement:0}),dv=nt(cv),fv=de({},Er,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hv=nt(fv),mv=de({},Er,{data:0}),Cd=nt(mv),pv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gv={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"},xv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xv[e])?!!t[e]:!1}function Xu(){return yv}var vv=de({},Fs,{key:function(e){if(e.key){var t=pv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ei(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?gv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xu,charCode:function(e){return e.type==="keypress"?Ei(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ei(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wv=nt(vv),kv=de({},Lo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ed=nt(kv),bv=de({},Fs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xu}),Sv=nt(bv),jv=de({},Er,{propertyName:0,elapsedTime:0,pseudoElement:0}),Pv=nt(jv),Tv=de({},Lo,{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}),Cv=nt(Tv),Ev=[9,13,27,32],Yu=Ht&&"CompositionEvent"in window,es=null;Ht&&"documentMode"in document&&(es=document.documentMode);var Nv=Ht&&"TextEvent"in window&&!es,pp=Ht&&(!Yu||es&&8<es&&11>=es),Nd=" ",_d=!1;function gp(e,t){switch(e){case"keyup":return Ev.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qn=!1;function _v(e,t){switch(e){case"compositionend":return xp(t);case"keypress":return t.which!==32?null:(_d=!0,Nd);case"textInput":return e=t.data,e===Nd&&_d?null:e;default:return null}}function Mv(e,t){if(qn)return e==="compositionend"||!Yu&&gp(e,t)?(e=mp(),Ci=Gu=nn=null,qn=!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 pp&&t.locale!=="ko"?null:t.data;default:return null}}var Lv={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 Md(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Lv[e.type]:t==="textarea"}function yp(e,t,n,r){Ym(r),t=Zi(t,"onChange"),0<t.length&&(n=new Ku("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ts=null,vs=null;function Av(e){Np(e,0)}function Ao(e){var t=Jn(e);if($m(t))return e}function Dv(e,t){if(e==="change")return t}var vp=!1;if(Ht){var fa;if(Ht){var ha="oninput"in document;if(!ha){var Ld=document.createElement("div");Ld.setAttribute("oninput","return;"),ha=typeof Ld.oninput=="function"}fa=ha}else fa=!1;vp=fa&&(!document.documentMode||9<document.documentMode)}function Ad(){ts&&(ts.detachEvent("onpropertychange",wp),vs=ts=null)}function wp(e){if(e.propertyName==="value"&&Ao(vs)){var t=[];yp(t,vs,e,Bu(e)),Jm(Av,t)}}function Rv(e,t,n){e==="focusin"?(Ad(),ts=t,vs=n,ts.attachEvent("onpropertychange",wp)):e==="focusout"&&Ad()}function Iv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ao(vs)}function Vv(e,t){if(e==="click")return Ao(t)}function Ov(e,t){if(e==="input"||e==="change")return Ao(t)}function Fv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var St=typeof Object.is=="function"?Object.is:Fv;function ws(e,t){if(St(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!tl.call(t,s)||!St(e[s],t[s]))return!1}return!0}function Dd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rd(e,t){var n=Dd(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=Dd(n)}}function kp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bp(){for(var e=window,t=Ui();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ui(e.document)}return t}function qu(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 zv(e){var t=bp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&kp(n.ownerDocument.documentElement,n)){if(r!==null&&qu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Rd(n,i);var o=Rd(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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 Bv=Ht&&"documentMode"in document&&11>=document.documentMode,Qn=null,wl=null,ns=null,kl=!1;function Id(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kl||Qn==null||Qn!==Ui(r)||(r=Qn,"selectionStart"in r&&qu(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}),ns&&ws(ns,r)||(ns=r,r=Zi(wl,"onSelect"),0<r.length&&(t=new Ku("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Qn)))}function ai(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Zn={animationend:ai("Animation","AnimationEnd"),animationiteration:ai("Animation","AnimationIteration"),animationstart:ai("Animation","AnimationStart"),transitionend:ai("Transition","TransitionEnd")},ma={},Sp={};Ht&&(Sp=document.createElement("div").style,"AnimationEvent"in window||(delete Zn.animationend.animation,delete Zn.animationiteration.animation,delete Zn.animationstart.animation),"TransitionEvent"in window||delete Zn.transitionend.transition);function Do(e){if(ma[e])return ma[e];if(!Zn[e])return e;var t=Zn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Sp)return ma[e]=t[n];return e}var jp=Do("animationend"),Pp=Do("animationiteration"),Tp=Do("animationstart"),Cp=Do("transitionend"),Ep=new Map,Vd="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 wn(e,t){Ep.set(e,t),Hn(t,[e])}for(var pa=0;pa<Vd.length;pa++){var ga=Vd[pa],$v=ga.toLowerCase(),Hv=ga[0].toUpperCase()+ga.slice(1);wn($v,"on"+Hv)}wn(jp,"onAnimationEnd");wn(Pp,"onAnimationIteration");wn(Tp,"onAnimationStart");wn("dblclick","onDoubleClick");wn("focusin","onFocus");wn("focusout","onBlur");wn(Cp,"onTransitionEnd");gr("onMouseEnter",["mouseout","mouseover"]);gr("onMouseLeave",["mouseout","mouseover"]);gr("onPointerEnter",["pointerout","pointerover"]);gr("onPointerLeave",["pointerout","pointerover"]);Hn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Hn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Hn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Hn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Hn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Hn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yr="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(" "),Wv=new Set("cancel close invalid load scroll toggle".split(" ").concat(Yr));function Od(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,$y(r,t,void 0,e),e.currentTarget=null}function Np(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],u=a.instance,c=a.currentTarget;if(a=a.listener,u!==i&&s.isPropagationStopped())break e;Od(s,a,c),i=u}else for(o=0;o<r.length;o++){if(a=r[o],u=a.instance,c=a.currentTarget,a=a.listener,u!==i&&s.isPropagationStopped())break e;Od(s,a,c),i=u}}}if(Ki)throw e=gl,Ki=!1,gl=null,e}function se(e,t){var n=t[Tl];n===void 0&&(n=t[Tl]=new Set);var r=e+"__bubble";n.has(r)||(_p(t,e,2,!1),n.add(r))}function xa(e,t,n){var r=0;t&&(r|=4),_p(n,e,r,t)}var li="_reactListening"+Math.random().toString(36).slice(2);function ks(e){if(!e[li]){e[li]=!0,Vm.forEach(function(n){n!=="selectionchange"&&(Wv.has(n)||xa(n,!1,e),xa(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[li]||(t[li]=!0,xa("selectionchange",!1,t))}}function _p(e,t,n,r){switch(hp(t)){case 1:var s=sv;break;case 4:s=iv;break;default:s=Uu}n=s.bind(null,t,n,e),s=void 0,!pl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function ya(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===s||u.nodeType===8&&u.parentNode===s))return;o=o.return}for(;a!==null;){if(o=En(a),o===null)return;if(u=o.tag,u===5||u===6){r=i=o;continue e}a=a.parentNode}}r=r.return}Jm(function(){var c=i,d=Bu(n),f=[];e:{var h=Ep.get(e);if(h!==void 0){var p=Ku,w=e;switch(e){case"keypress":if(Ei(n)===0)break e;case"keydown":case"keyup":p=wv;break;case"focusin":w="focus",p=da;break;case"focusout":w="blur",p=da;break;case"beforeblur":case"afterblur":p=da;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":p=Td;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=lv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Sv;break;case jp:case Pp:case Tp:p=dv;break;case Cp:p=Pv;break;case"scroll":p=ov;break;case"wheel":p=Cv;break;case"copy":case"cut":case"paste":p=hv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Ed}var v=(t&4)!==0,k=!v&&e==="scroll",g=v?h!==null?h+"Capture":null:h;v=[];for(var m=c,y;m!==null;){y=m;var b=y.stateNode;if(y.tag===5&&b!==null&&(y=b,g!==null&&(b=ps(m,g),b!=null&&v.push(bs(m,b,y)))),k)break;m=m.return}0<v.length&&(h=new p(h,w,null,n,d),f.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==hl&&(w=n.relatedTarget||n.fromElement)&&(En(w)||w[Wt]))break e;if((p||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,p?(w=n.relatedTarget||n.toElement,p=c,w=w?En(w):null,w!==null&&(k=Wn(w),w!==k||w.tag!==5&&w.tag!==6)&&(w=null)):(p=null,w=c),p!==w)){if(v=Td,b="onMouseLeave",g="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(v=Ed,b="onPointerLeave",g="onPointerEnter",m="pointer"),k=p==null?h:Jn(p),y=w==null?h:Jn(w),h=new v(b,m+"leave",p,n,d),h.target=k,h.relatedTarget=y,b=null,En(d)===c&&(v=new v(g,m+"enter",w,n,d),v.target=y,v.relatedTarget=k,b=v),k=b,p&&w)t:{for(v=p,g=w,m=0,y=v;y;y=Un(y))m++;for(y=0,b=g;b;b=Un(b))y++;for(;0<m-y;)v=Un(v),m--;for(;0<y-m;)g=Un(g),y--;for(;m--;){if(v===g||g!==null&&v===g.alternate)break t;v=Un(v),g=Un(g)}v=null}else v=null;p!==null&&Fd(f,h,p,v,!1),w!==null&&k!==null&&Fd(f,k,w,v,!0)}}e:{if(h=c?Jn(c):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var P=Dv;else if(Md(h))if(vp)P=Ov;else{P=Iv;var T=Rv}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(P=Vv);if(P&&(P=P(e,c))){yp(f,P,n,d);break e}T&&T(e,h,c),e==="focusout"&&(T=h._wrapperState)&&T.controlled&&h.type==="number"&&ll(h,"number",h.value)}switch(T=c?Jn(c):window,e){case"focusin":(Md(T)||T.contentEditable==="true")&&(Qn=T,wl=c,ns=null);break;case"focusout":ns=wl=Qn=null;break;case"mousedown":kl=!0;break;case"contextmenu":case"mouseup":case"dragend":kl=!1,Id(f,n,d);break;case"selectionchange":if(Bv)break;case"keydown":case"keyup":Id(f,n,d)}var S;if(Yu)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else qn?gp(e,n)&&(j="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(j="onCompositionStart");j&&(pp&&n.locale!=="ko"&&(qn||j!=="onCompositionStart"?j==="onCompositionEnd"&&qn&&(S=mp()):(nn=d,Gu="value"in nn?nn.value:nn.textContent,qn=!0)),T=Zi(c,j),0<T.length&&(j=new Cd(j,e,null,n,d),f.push({event:j,listeners:T}),S?j.data=S:(S=xp(n),S!==null&&(j.data=S)))),(S=Nv?_v(e,n):Mv(e,n))&&(c=Zi(c,"onBeforeInput"),0<c.length&&(d=new Cd("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:c}),d.data=S))}Np(f,t)})}function bs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zi(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=ps(e,n),i!=null&&r.unshift(bs(e,i,s)),i=ps(e,t),i!=null&&r.push(bs(e,i,s))),e=e.return}return r}function Un(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Fd(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,u=a.alternate,c=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&c!==null&&(a=c,s?(u=ps(n,i),u!=null&&o.unshift(bs(n,u,a))):s||(u=ps(n,i),u!=null&&o.push(bs(n,u,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Uv=/\r\n?/g,Gv=/\u0000|\uFFFD/g;function zd(e){return(typeof e=="string"?e:""+e).replace(Uv,`
`).replace(Gv,"")}function ui(e,t,n){if(t=zd(t),zd(e)!==t&&n)throw Error(M(425))}function Ji(){}var bl=null,Sl=null;function jl(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 Pl=typeof setTimeout=="function"?setTimeout:void 0,Kv=typeof clearTimeout=="function"?clearTimeout:void 0,Bd=typeof Promise=="function"?Promise:void 0,Xv=typeof queueMicrotask=="function"?queueMicrotask:typeof Bd<"u"?function(e){return Bd.resolve(null).then(e).catch(Yv)}:Pl;function Yv(e){setTimeout(function(){throw e})}function va(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),ys(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);ys(t)}function cn(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 $d(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 Nr=Math.random().toString(36).slice(2),_t="__reactFiber$"+Nr,Ss="__reactProps$"+Nr,Wt="__reactContainer$"+Nr,Tl="__reactEvents$"+Nr,qv="__reactListeners$"+Nr,Qv="__reactHandles$"+Nr;function En(e){var t=e[_t];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Wt]||n[_t]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$d(e);e!==null;){if(n=e[_t])return n;e=$d(e)}return t}e=n,n=e.parentNode}return null}function zs(e){return e=e[_t]||e[Wt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Jn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(M(33))}function Ro(e){return e[Ss]||null}var Cl=[],er=-1;function kn(e){return{current:e}}function ie(e){0>er||(e.current=Cl[er],Cl[er]=null,er--)}function re(e,t){er++,Cl[er]=e.current,e.current=t}var xn={},Ve=kn(xn),Ge=kn(!1),Vn=xn;function xr(e,t){var n=e.type.contextTypes;if(!n)return xn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Ke(e){return e=e.childContextTypes,e!=null}function eo(){ie(Ge),ie(Ve)}function Hd(e,t,n){if(Ve.current!==xn)throw Error(M(168));re(Ve,t),re(Ge,n)}function Mp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(M(108,Ry(e)||"Unknown",s));return de({},n,r)}function to(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xn,Vn=Ve.current,re(Ve,e),re(Ge,Ge.current),!0}function Wd(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=Mp(e,t,Vn),r.__reactInternalMemoizedMergedChildContext=e,ie(Ge),ie(Ve),re(Ve,e)):ie(Ge),re(Ge,n)}var Ot=null,Io=!1,wa=!1;function Lp(e){Ot===null?Ot=[e]:Ot.push(e)}function Zv(e){Io=!0,Lp(e)}function bn(){if(!wa&&Ot!==null){wa=!0;var e=0,t=J;try{var n=Ot;for(J=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ot=null,Io=!1}catch(s){throw Ot!==null&&(Ot=Ot.slice(e+1)),rp($u,bn),s}finally{J=t,wa=!1}}return null}var tr=[],nr=0,no=null,ro=0,it=[],ot=0,On=null,Ft=1,zt="";function Pn(e,t){tr[nr++]=ro,tr[nr++]=no,no=e,ro=t}function Ap(e,t,n){it[ot++]=Ft,it[ot++]=zt,it[ot++]=On,On=e;var r=Ft;e=zt;var s=32-wt(r)-1;r&=~(1<<s),n+=1;var i=32-wt(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Ft=1<<32-wt(t)+s|n<<s|r,zt=i+e}else Ft=1<<i|n<<s|r,zt=e}function Qu(e){e.return!==null&&(Pn(e,1),Ap(e,1,0))}function Zu(e){for(;e===no;)no=tr[--nr],tr[nr]=null,ro=tr[--nr],tr[nr]=null;for(;e===On;)On=it[--ot],it[ot]=null,zt=it[--ot],it[ot]=null,Ft=it[--ot],it[ot]=null}var Ze=null,Qe=null,ae=!1,yt=null;function Dp(e,t){var n=at(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ud(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,Ze=e,Qe=cn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ze=e,Qe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=On!==null?{id:Ft,overflow:zt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=at(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ze=e,Qe=null,!0):!1;default:return!1}}function El(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Nl(e){if(ae){var t=Qe;if(t){var n=t;if(!Ud(e,t)){if(El(e))throw Error(M(418));t=cn(n.nextSibling);var r=Ze;t&&Ud(e,t)?Dp(r,n):(e.flags=e.flags&-4097|2,ae=!1,Ze=e)}}else{if(El(e))throw Error(M(418));e.flags=e.flags&-4097|2,ae=!1,Ze=e}}}function Gd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ze=e}function ci(e){if(e!==Ze)return!1;if(!ae)return Gd(e),ae=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!jl(e.type,e.memoizedProps)),t&&(t=Qe)){if(El(e))throw Rp(),Error(M(418));for(;t;)Dp(e,t),t=cn(t.nextSibling)}if(Gd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Qe=cn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Qe=null}}else Qe=Ze?cn(e.stateNode.nextSibling):null;return!0}function Rp(){for(var e=Qe;e;)e=cn(e.nextSibling)}function yr(){Qe=Ze=null,ae=!1}function Ju(e){yt===null?yt=[e]:yt.push(e)}var Jv=Kt.ReactCurrentBatchConfig;function Br(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(M(309));var r=n.stateNode}if(!r)throw Error(M(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(M(284));if(!n._owner)throw Error(M(290,e))}return e}function di(e,t){throw e=Object.prototype.toString.call(t),Error(M(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Kd(e){var t=e._init;return t(e._payload)}function Ip(e){function t(g,m){if(e){var y=g.deletions;y===null?(g.deletions=[m],g.flags|=16):y.push(m)}}function n(g,m){if(!e)return null;for(;m!==null;)t(g,m),m=m.sibling;return null}function r(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function s(g,m){return g=mn(g,m),g.index=0,g.sibling=null,g}function i(g,m,y){return g.index=y,e?(y=g.alternate,y!==null?(y=y.index,y<m?(g.flags|=2,m):y):(g.flags|=2,m)):(g.flags|=1048576,m)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,m,y,b){return m===null||m.tag!==6?(m=Ca(y,g.mode,b),m.return=g,m):(m=s(m,y),m.return=g,m)}function u(g,m,y,b){var P=y.type;return P===Yn?d(g,m,y.props.children,b,y.key):m!==null&&(m.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Qt&&Kd(P)===m.type)?(b=s(m,y.props),b.ref=Br(g,m,y),b.return=g,b):(b=Ri(y.type,y.key,y.props,null,g.mode,b),b.ref=Br(g,m,y),b.return=g,b)}function c(g,m,y,b){return m===null||m.tag!==4||m.stateNode.containerInfo!==y.containerInfo||m.stateNode.implementation!==y.implementation?(m=Ea(y,g.mode,b),m.return=g,m):(m=s(m,y.children||[]),m.return=g,m)}function d(g,m,y,b,P){return m===null||m.tag!==7?(m=Dn(y,g.mode,b,P),m.return=g,m):(m=s(m,y),m.return=g,m)}function f(g,m,y){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Ca(""+m,g.mode,y),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case ei:return y=Ri(m.type,m.key,m.props,null,g.mode,y),y.ref=Br(g,null,m),y.return=g,y;case Xn:return m=Ea(m,g.mode,y),m.return=g,m;case Qt:var b=m._init;return f(g,b(m._payload),y)}if(Kr(m)||Ir(m))return m=Dn(m,g.mode,y,null),m.return=g,m;di(g,m)}return null}function h(g,m,y,b){var P=m!==null?m.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return P!==null?null:a(g,m,""+y,b);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ei:return y.key===P?u(g,m,y,b):null;case Xn:return y.key===P?c(g,m,y,b):null;case Qt:return P=y._init,h(g,m,P(y._payload),b)}if(Kr(y)||Ir(y))return P!==null?null:d(g,m,y,b,null);di(g,y)}return null}function p(g,m,y,b,P){if(typeof b=="string"&&b!==""||typeof b=="number")return g=g.get(y)||null,a(m,g,""+b,P);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case ei:return g=g.get(b.key===null?y:b.key)||null,u(m,g,b,P);case Xn:return g=g.get(b.key===null?y:b.key)||null,c(m,g,b,P);case Qt:var T=b._init;return p(g,m,y,T(b._payload),P)}if(Kr(b)||Ir(b))return g=g.get(y)||null,d(m,g,b,P,null);di(m,b)}return null}function w(g,m,y,b){for(var P=null,T=null,S=m,j=m=0,L=null;S!==null&&j<y.length;j++){S.index>j?(L=S,S=null):L=S.sibling;var N=h(g,S,y[j],b);if(N===null){S===null&&(S=L);break}e&&S&&N.alternate===null&&t(g,S),m=i(N,m,j),T===null?P=N:T.sibling=N,T=N,S=L}if(j===y.length)return n(g,S),ae&&Pn(g,j),P;if(S===null){for(;j<y.length;j++)S=f(g,y[j],b),S!==null&&(m=i(S,m,j),T===null?P=S:T.sibling=S,T=S);return ae&&Pn(g,j),P}for(S=r(g,S);j<y.length;j++)L=p(S,g,j,y[j],b),L!==null&&(e&&L.alternate!==null&&S.delete(L.key===null?j:L.key),m=i(L,m,j),T===null?P=L:T.sibling=L,T=L);return e&&S.forEach(function(O){return t(g,O)}),ae&&Pn(g,j),P}function v(g,m,y,b){var P=Ir(y);if(typeof P!="function")throw Error(M(150));if(y=P.call(y),y==null)throw Error(M(151));for(var T=P=null,S=m,j=m=0,L=null,N=y.next();S!==null&&!N.done;j++,N=y.next()){S.index>j?(L=S,S=null):L=S.sibling;var O=h(g,S,N.value,b);if(O===null){S===null&&(S=L);break}e&&S&&O.alternate===null&&t(g,S),m=i(O,m,j),T===null?P=O:T.sibling=O,T=O,S=L}if(N.done)return n(g,S),ae&&Pn(g,j),P;if(S===null){for(;!N.done;j++,N=y.next())N=f(g,N.value,b),N!==null&&(m=i(N,m,j),T===null?P=N:T.sibling=N,T=N);return ae&&Pn(g,j),P}for(S=r(g,S);!N.done;j++,N=y.next())N=p(S,g,j,N.value,b),N!==null&&(e&&N.alternate!==null&&S.delete(N.key===null?j:N.key),m=i(N,m,j),T===null?P=N:T.sibling=N,T=N);return e&&S.forEach(function(H){return t(g,H)}),ae&&Pn(g,j),P}function k(g,m,y,b){if(typeof y=="object"&&y!==null&&y.type===Yn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ei:e:{for(var P=y.key,T=m;T!==null;){if(T.key===P){if(P=y.type,P===Yn){if(T.tag===7){n(g,T.sibling),m=s(T,y.props.children),m.return=g,g=m;break e}}else if(T.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Qt&&Kd(P)===T.type){n(g,T.sibling),m=s(T,y.props),m.ref=Br(g,T,y),m.return=g,g=m;break e}n(g,T);break}else t(g,T);T=T.sibling}y.type===Yn?(m=Dn(y.props.children,g.mode,b,y.key),m.return=g,g=m):(b=Ri(y.type,y.key,y.props,null,g.mode,b),b.ref=Br(g,m,y),b.return=g,g=b)}return o(g);case Xn:e:{for(T=y.key;m!==null;){if(m.key===T)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(g,m.sibling),m=s(m,y.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=Ea(y,g.mode,b),m.return=g,g=m}return o(g);case Qt:return T=y._init,k(g,m,T(y._payload),b)}if(Kr(y))return w(g,m,y,b);if(Ir(y))return v(g,m,y,b);di(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(g,m.sibling),m=s(m,y),m.return=g,g=m):(n(g,m),m=Ca(y,g.mode,b),m.return=g,g=m),o(g)):n(g,m)}return k}var vr=Ip(!0),Vp=Ip(!1),so=kn(null),io=null,rr=null,ec=null;function tc(){ec=rr=io=null}function nc(e){var t=so.current;ie(so),e._currentValue=t}function _l(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 mr(e,t){io=e,ec=rr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ue=!0),e.firstContext=null)}function ct(e){var t=e._currentValue;if(ec!==e)if(e={context:e,memoizedValue:t,next:null},rr===null){if(io===null)throw Error(M(308));rr=e,io.dependencies={lanes:0,firstContext:e}}else rr=rr.next=e;return t}var Nn=null;function rc(e){Nn===null?Nn=[e]:Nn.push(e)}function Op(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,rc(t)):(n.next=s.next,s.next=n),t.interleaved=n,Ut(e,r)}function Ut(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 Zt=!1;function sc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fp(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 $t(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,Y&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Ut(e,n)}return s=r.interleaved,s===null?(t.next=t,rc(r)):(t.next=s.next,s.next=t),r.interleaved=t,Ut(e,n)}function Ni(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,Hu(e,n)}}function Xd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,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 oo(e,t,n,r){var s=e.updateQueue;Zt=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var u=a,c=u.next;u.next=null,o===null?i=c:o.next=c,o=u;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=u))}if(i!==null){var f=s.baseState;o=0,d=c=u=null,a=i;do{var h=a.lane,p=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,v=a;switch(h=t,p=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){f=w.call(p,f,h);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,h=typeof w=="function"?w.call(p,f,h):w,h==null)break e;f=de({},f,h);break e;case 2:Zt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=p,u=f):d=d.next=p,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(d===null&&(u=f),s.baseState=u,s.firstBaseUpdate=c,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);zn|=o,e.lanes=o,e.memoizedState=f}}function Yd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(M(191,s));s.call(r)}}}var Bs={},Lt=kn(Bs),js=kn(Bs),Ps=kn(Bs);function _n(e){if(e===Bs)throw Error(M(174));return e}function ic(e,t){switch(re(Ps,t),re(js,e),re(Lt,Bs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:cl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=cl(t,e)}ie(Lt),re(Lt,t)}function wr(){ie(Lt),ie(js),ie(Ps)}function zp(e){_n(Ps.current);var t=_n(Lt.current),n=cl(t,e.type);t!==n&&(re(js,e),re(Lt,n))}function oc(e){js.current===e&&(ie(Lt),ie(js))}var le=kn(0);function ao(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 ka=[];function ac(){for(var e=0;e<ka.length;e++)ka[e]._workInProgressVersionPrimary=null;ka.length=0}var _i=Kt.ReactCurrentDispatcher,ba=Kt.ReactCurrentBatchConfig,Fn=0,ue=null,we=null,Pe=null,lo=!1,rs=!1,Ts=0,e1=0;function Le(){throw Error(M(321))}function lc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!St(e[n],t[n]))return!1;return!0}function uc(e,t,n,r,s,i){if(Fn=i,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_i.current=e===null||e.memoizedState===null?s1:i1,e=n(r,s),rs){i=0;do{if(rs=!1,Ts=0,25<=i)throw Error(M(301));i+=1,Pe=we=null,t.updateQueue=null,_i.current=o1,e=n(r,s)}while(rs)}if(_i.current=uo,t=we!==null&&we.next!==null,Fn=0,Pe=we=ue=null,lo=!1,t)throw Error(M(300));return e}function cc(){var e=Ts!==0;return Ts=0,e}function Ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?ue.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function dt(){if(we===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=Pe===null?ue.memoizedState:Pe.next;if(t!==null)Pe=t,we=e;else{if(e===null)throw Error(M(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},Pe===null?ue.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function Cs(e,t){return typeof t=="function"?t(e):t}function Sa(e){var t=dt(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var r=we,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,u=null,c=i;do{var d=c.lane;if((Fn&d)===d)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(a=u=f,o=r):u=u.next=f,ue.lanes|=d,zn|=d}c=c.next}while(c!==null&&c!==i);u===null?o=r:u.next=a,St(r,t.memoizedState)||(Ue=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,ue.lanes|=i,zn|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ja(e){var t=dt(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);St(i,t.memoizedState)||(Ue=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Bp(){}function $p(e,t){var n=ue,r=dt(),s=t(),i=!St(r.memoizedState,s);if(i&&(r.memoizedState=s,Ue=!0),r=r.queue,dc(Up.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Pe!==null&&Pe.memoizedState.tag&1){if(n.flags|=2048,Es(9,Wp.bind(null,n,r,s,t),void 0,null),Te===null)throw Error(M(349));Fn&30||Hp(n,t,s)}return s}function Hp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ue.updateQueue,t===null?(t={lastEffect:null,stores:null},ue.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wp(e,t,n,r){t.value=n,t.getSnapshot=r,Gp(t)&&Kp(e)}function Up(e,t,n){return n(function(){Gp(t)&&Kp(e)})}function Gp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!St(e,n)}catch{return!0}}function Kp(e){var t=Ut(e,1);t!==null&&kt(t,e,1,-1)}function qd(e){var t=Ct();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:e},t.queue=e,e=e.dispatch=r1.bind(null,ue,e),[t.memoizedState,e]}function Es(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ue.updateQueue,t===null?(t={lastEffect:null,stores:null},ue.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 Xp(){return dt().memoizedState}function Mi(e,t,n,r){var s=Ct();ue.flags|=e,s.memoizedState=Es(1|t,n,void 0,r===void 0?null:r)}function Vo(e,t,n,r){var s=dt();r=r===void 0?null:r;var i=void 0;if(we!==null){var o=we.memoizedState;if(i=o.destroy,r!==null&&lc(r,o.deps)){s.memoizedState=Es(t,n,i,r);return}}ue.flags|=e,s.memoizedState=Es(1|t,n,i,r)}function Qd(e,t){return Mi(8390656,8,e,t)}function dc(e,t){return Vo(2048,8,e,t)}function Yp(e,t){return Vo(4,2,e,t)}function qp(e,t){return Vo(4,4,e,t)}function Qp(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 Zp(e,t,n){return n=n!=null?n.concat([e]):null,Vo(4,4,Qp.bind(null,t,e),n)}function fc(){}function Jp(e,t){var n=dt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&lc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function eg(e,t){var n=dt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&lc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function tg(e,t,n){return Fn&21?(St(n,t)||(n=op(),ue.lanes|=n,zn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ue=!0),e.memoizedState=n)}function t1(e,t){var n=J;J=n!==0&&4>n?n:4,e(!0);var r=ba.transition;ba.transition={};try{e(!1),t()}finally{J=n,ba.transition=r}}function ng(){return dt().memoizedState}function n1(e,t,n){var r=hn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rg(e))sg(t,n);else if(n=Op(e,t,n,r),n!==null){var s=Be();kt(n,e,r,s),ig(n,t,r)}}function r1(e,t,n){var r=hn(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rg(e))sg(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,St(a,o)){var u=t.interleaved;u===null?(s.next=s,rc(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=Op(e,t,s,r),n!==null&&(s=Be(),kt(n,e,r,s),ig(n,t,r))}}function rg(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function sg(e,t){rs=lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ig(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hu(e,n)}}var uo={readContext:ct,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useInsertionEffect:Le,useLayoutEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useMutableSource:Le,useSyncExternalStore:Le,useId:Le,unstable_isNewReconciler:!1},s1={readContext:ct,useCallback:function(e,t){return Ct().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:Qd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mi(4194308,4,Qp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mi(4,2,e,t)},useMemo:function(e,t){var n=Ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ct();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=n1.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=Ct();return e={current:e},t.memoizedState=e},useState:qd,useDebugValue:fc,useDeferredValue:function(e){return Ct().memoizedState=e},useTransition:function(){var e=qd(!1),t=e[0];return e=t1.bind(null,e[1]),Ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,s=Ct();if(ae){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),Te===null)throw Error(M(349));Fn&30||Hp(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Qd(Up.bind(null,r,i,e),[e]),r.flags|=2048,Es(9,Wp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ct(),t=Te.identifierPrefix;if(ae){var n=zt,r=Ft;n=(r&~(1<<32-wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ts++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=e1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},i1={readContext:ct,useCallback:Jp,useContext:ct,useEffect:dc,useImperativeHandle:Zp,useInsertionEffect:Yp,useLayoutEffect:qp,useMemo:eg,useReducer:Sa,useRef:Xp,useState:function(){return Sa(Cs)},useDebugValue:fc,useDeferredValue:function(e){var t=dt();return tg(t,we.memoizedState,e)},useTransition:function(){var e=Sa(Cs)[0],t=dt().memoizedState;return[e,t]},useMutableSource:Bp,useSyncExternalStore:$p,useId:ng,unstable_isNewReconciler:!1},o1={readContext:ct,useCallback:Jp,useContext:ct,useEffect:dc,useImperativeHandle:Zp,useInsertionEffect:Yp,useLayoutEffect:qp,useMemo:eg,useReducer:ja,useRef:Xp,useState:function(){return ja(Cs)},useDebugValue:fc,useDeferredValue:function(e){var t=dt();return we===null?t.memoizedState=e:tg(t,we.memoizedState,e)},useTransition:function(){var e=ja(Cs)[0],t=dt().memoizedState;return[e,t]},useMutableSource:Bp,useSyncExternalStore:$p,useId:ng,unstable_isNewReconciler:!1};function gt(e,t){if(e&&e.defaultProps){t=de({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ml(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:de({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Oo={isMounted:function(e){return(e=e._reactInternals)?Wn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Be(),s=hn(e),i=$t(r,s);i.payload=t,n!=null&&(i.callback=n),t=dn(e,i,s),t!==null&&(kt(t,e,s,r),Ni(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Be(),s=hn(e),i=$t(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=dn(e,i,s),t!==null&&(kt(t,e,s,r),Ni(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Be(),r=hn(e),s=$t(n,r);s.tag=2,t!=null&&(s.callback=t),t=dn(e,s,r),t!==null&&(kt(t,e,r,n),Ni(t,e,r))}};function Zd(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!ws(n,r)||!ws(s,i):!0}function og(e,t,n){var r=!1,s=xn,i=t.contextType;return typeof i=="object"&&i!==null?i=ct(i):(s=Ke(t)?Vn:Ve.current,r=t.contextTypes,i=(r=r!=null)?xr(e,s):xn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Oo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Jd(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&&Oo.enqueueReplaceState(t,t.state,null)}function Ll(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},sc(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=ct(i):(i=Ke(t)?Vn:Ve.current,s.context=xr(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Ml(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Oo.enqueueReplaceState(s,s.state,null),oo(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function kr(e,t){try{var n="",r=t;do n+=Dy(r),r=r.return;while(r);var s=n}catch(i){s=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:s,digest:null}}function Pa(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Al(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var a1=typeof WeakMap=="function"?WeakMap:Map;function ag(e,t,n){n=$t(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fo||(fo=!0,Hl=r),Al(e,t)},n}function lg(e,t,n){n=$t(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Al(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Al(e,t),typeof r!="function"&&(fn===null?fn=new Set([this]):fn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function ef(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new a1;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=k1.bind(null,e,t,n),t.then(e,e))}function tf(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 nf(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=$t(-1,1),t.tag=2,dn(n,t,1))),n.lanes|=1),e)}var l1=Kt.ReactCurrentOwner,Ue=!1;function Oe(e,t,n,r){t.child=e===null?Vp(t,null,n,r):vr(t,e.child,n,r)}function rf(e,t,n,r,s){n=n.render;var i=t.ref;return mr(t,s),r=uc(e,t,n,r,i,s),n=cc(),e!==null&&!Ue?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Gt(e,t,s)):(ae&&n&&Qu(t),t.flags|=1,Oe(e,t,r,s),t.child)}function sf(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!wc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,ug(e,t,i,r,s)):(e=Ri(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:ws,n(o,r)&&e.ref===t.ref)return Gt(e,t,s)}return t.flags|=1,e=mn(i,r),e.ref=t.ref,e.return=t,t.child=e}function ug(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(ws(i,r)&&e.ref===t.ref)if(Ue=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(Ue=!0);else return t.lanes=e.lanes,Gt(e,t,s)}return Dl(e,t,n,r,s)}function cg(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},re(ir,qe),qe|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,re(ir,qe),qe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,re(ir,qe),qe|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,re(ir,qe),qe|=r;return Oe(e,t,s,n),t.child}function dg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Dl(e,t,n,r,s){var i=Ke(n)?Vn:Ve.current;return i=xr(t,i),mr(t,s),n=uc(e,t,n,r,i,s),r=cc(),e!==null&&!Ue?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Gt(e,t,s)):(ae&&r&&Qu(t),t.flags|=1,Oe(e,t,n,s),t.child)}function of(e,t,n,r,s){if(Ke(n)){var i=!0;to(t)}else i=!1;if(mr(t,s),t.stateNode===null)Li(e,t),og(t,n,r),Ll(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var u=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=ct(c):(c=Ke(n)?Vn:Ve.current,c=xr(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||u!==c)&&Jd(t,o,r,c),Zt=!1;var h=t.memoizedState;o.state=h,oo(t,r,o,s),u=t.memoizedState,a!==r||h!==u||Ge.current||Zt?(typeof d=="function"&&(Ml(t,n,d,r),u=t.memoizedState),(a=Zt||Zd(t,n,a,r,h,u,c))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Fp(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:gt(t.type,a),o.props=c,f=t.pendingProps,h=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=ct(u):(u=Ke(n)?Vn:Ve.current,u=xr(t,u));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||h!==u)&&Jd(t,o,r,u),Zt=!1,h=t.memoizedState,o.state=h,oo(t,r,o,s);var w=t.memoizedState;a!==f||h!==w||Ge.current||Zt?(typeof p=="function"&&(Ml(t,n,p,r),w=t.memoizedState),(c=Zt||Zd(t,n,c,r,h,w,u)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=u,r=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Rl(e,t,n,r,i,s)}function Rl(e,t,n,r,s,i){dg(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Wd(t,n,!1),Gt(e,t,i);r=t.stateNode,l1.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=vr(t,e.child,null,i),t.child=vr(t,null,a,i)):Oe(e,t,a,i),t.memoizedState=r.state,s&&Wd(t,n,!0),t.child}function fg(e){var t=e.stateNode;t.pendingContext?Hd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Hd(e,t.context,!1),ic(e,t.containerInfo)}function af(e,t,n,r,s){return yr(),Ju(s),t.flags|=256,Oe(e,t,n,r),t.child}var Il={dehydrated:null,treeContext:null,retryLane:0};function Vl(e){return{baseLanes:e,cachePool:null,transitions:null}}function hg(e,t,n){var r=t.pendingProps,s=le.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),re(le,s&1),e===null)return Nl(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):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Bo(o,r,0,null),e=Dn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Vl(n),t.memoizedState=Il,e):hc(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return u1(e,t,o,r,a,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,a=s.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=mn(s,u),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=mn(a,i):(i=Dn(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Vl(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Il,r}return i=e.child,e=i.sibling,r=mn(i,{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 hc(e,t){return t=Bo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fi(e,t,n,r){return r!==null&&Ju(r),vr(t,e.child,null,n),e=hc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function u1(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Pa(Error(M(422))),fi(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=Bo({mode:"visible",children:r.children},s,0,null),i=Dn(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&vr(t,e.child,null,o),t.child.memoizedState=Vl(o),t.memoizedState=Il,i);if(!(t.mode&1))return fi(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(M(419)),r=Pa(i,r,void 0),fi(e,t,o,r)}if(a=(o&e.childLanes)!==0,Ue||a){if(r=Te,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Ut(e,s),kt(r,e,s,-1))}return vc(),r=Pa(Error(M(421))),fi(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=b1.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Qe=cn(s.nextSibling),Ze=t,ae=!0,yt=null,e!==null&&(it[ot++]=Ft,it[ot++]=zt,it[ot++]=On,Ft=e.id,zt=e.overflow,On=t),t=hc(t,r.children),t.flags|=4096,t)}function lf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),_l(e.return,t,n)}function Ta(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function mg(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Oe(e,t,r.children,n),r=le.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&&lf(e,n,t);else if(e.tag===19)lf(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(re(le,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&ao(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Ta(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&ao(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Ta(t,!0,n,null,i);break;case"together":Ta(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Li(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),zn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){for(e=t.child,n=mn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function c1(e,t,n){switch(t.tag){case 3:fg(t),yr();break;case 5:zp(t);break;case 1:Ke(t.type)&&to(t);break;case 4:ic(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;re(so,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(re(le,le.current&1),t.flags|=128,null):n&t.child.childLanes?hg(e,t,n):(re(le,le.current&1),e=Gt(e,t,n),e!==null?e.sibling:null);re(le,le.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return mg(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),re(le,le.current),r)break;return null;case 22:case 23:return t.lanes=0,cg(e,t,n)}return Gt(e,t,n)}var pg,Ol,gg,xg;pg=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ol=function(){};gg=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,_n(Lt.current);var i=null;switch(n){case"input":s=ol(e,s),r=ol(e,r),i=[];break;case"select":s=de({},s,{value:void 0}),r=de({},r,{value:void 0}),i=[];break;case"textarea":s=ul(e,s),r=ul(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ji)}dl(n,r);var o;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var a=s[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(hs.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(a=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&u!==a&&(u!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&a[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(i||(i=[]),i.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(i=i||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(hs.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&se("scroll",e),i||a===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};xg=function(e,t,n,r){n!==r&&(t.flags|=4)};function $r(e,t){if(!ae)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 Ae(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function d1(e,t,n){var r=t.pendingProps;switch(Zu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ae(t),null;case 1:return Ke(t.type)&&eo(),Ae(t),null;case 3:return r=t.stateNode,wr(),ie(Ge),ie(Ve),ac(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ci(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,yt!==null&&(Gl(yt),yt=null))),Ol(e,t),Ae(t),null;case 5:oc(t);var s=_n(Ps.current);if(n=t.type,e!==null&&t.stateNode!=null)gg(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(M(166));return Ae(t),null}if(e=_n(Lt.current),ci(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[_t]=t,r[Ss]=i,e=(t.mode&1)!==0,n){case"dialog":se("cancel",r),se("close",r);break;case"iframe":case"object":case"embed":se("load",r);break;case"video":case"audio":for(s=0;s<Yr.length;s++)se(Yr[s],r);break;case"source":se("error",r);break;case"img":case"image":case"link":se("error",r),se("load",r);break;case"details":se("toggle",r);break;case"input":gd(r,i),se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},se("invalid",r);break;case"textarea":yd(r,i),se("invalid",r)}dl(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&ui(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&ui(r.textContent,a,e),s=["children",""+a]):hs.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&se("scroll",r)}switch(n){case"input":ti(r),xd(r,i,!0);break;case"textarea":ti(r),vd(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Ji)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Um(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[_t]=t,e[Ss]=r,pg(e,t,!1,!1),t.stateNode=e;e:{switch(o=fl(n,r),n){case"dialog":se("cancel",e),se("close",e),s=r;break;case"iframe":case"object":case"embed":se("load",e),s=r;break;case"video":case"audio":for(s=0;s<Yr.length;s++)se(Yr[s],e);s=r;break;case"source":se("error",e),s=r;break;case"img":case"image":case"link":se("error",e),se("load",e),s=r;break;case"details":se("toggle",e),s=r;break;case"input":gd(e,r),s=ol(e,r),se("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=de({},r,{value:void 0}),se("invalid",e);break;case"textarea":yd(e,r),s=ul(e,r),se("invalid",e);break;default:s=r}dl(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var u=a[i];i==="style"?Xm(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Gm(e,u)):i==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&ms(e,u):typeof u=="number"&&ms(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(hs.hasOwnProperty(i)?u!=null&&i==="onScroll"&&se("scroll",e):u!=null&&Vu(e,i,u,o))}switch(n){case"input":ti(e),xd(e,r,!1);break;case"textarea":ti(e),vd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+gn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?cr(e,!!r.multiple,i,!1):r.defaultValue!=null&&cr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Ji)}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 Ae(t),null;case 6:if(e&&t.stateNode!=null)xg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(M(166));if(n=_n(Ps.current),_n(Lt.current),ci(t)){if(r=t.stateNode,n=t.memoizedProps,r[_t]=t,(i=r.nodeValue!==n)&&(e=Ze,e!==null))switch(e.tag){case 3:ui(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ui(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[_t]=t,t.stateNode=r}return Ae(t),null;case 13:if(ie(le),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ae&&Qe!==null&&t.mode&1&&!(t.flags&128))Rp(),yr(),t.flags|=98560,i=!1;else if(i=ci(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(M(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(M(317));i[_t]=t}else yr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ae(t),i=!1}else yt!==null&&(Gl(yt),yt=null),i=!0;if(!i)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||le.current&1?ke===0&&(ke=3):vc())),t.updateQueue!==null&&(t.flags|=4),Ae(t),null);case 4:return wr(),Ol(e,t),e===null&&ks(t.stateNode.containerInfo),Ae(t),null;case 10:return nc(t.type._context),Ae(t),null;case 17:return Ke(t.type)&&eo(),Ae(t),null;case 19:if(ie(le),i=t.memoizedState,i===null)return Ae(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)$r(i,!1);else{if(ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ao(e),o!==null){for(t.flags|=128,$r(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return re(le,le.current&1|2),t.child}e=e.sibling}i.tail!==null&&pe()>br&&(t.flags|=128,r=!0,$r(i,!1),t.lanes=4194304)}else{if(!r)if(e=ao(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$r(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ae)return Ae(t),null}else 2*pe()-i.renderingStartTime>br&&n!==1073741824&&(t.flags|=128,r=!0,$r(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=le.current,re(le,r?n&1|2:n&1),t):(Ae(t),null);case 22:case 23:return yc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?qe&1073741824&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function f1(e,t){switch(Zu(t),t.tag){case 1:return Ke(t.type)&&eo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wr(),ie(Ge),ie(Ve),ac(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return oc(t),null;case 13:if(ie(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));yr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(le),null;case 4:return wr(),null;case 10:return nc(t.type._context),null;case 22:case 23:return yc(),null;case 24:return null;default:return null}}var hi=!1,Ie=!1,h1=typeof WeakSet=="function"?WeakSet:Set,I=null;function sr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){me(e,t,r)}else n.current=null}function Fl(e,t,n){try{n()}catch(r){me(e,t,r)}}var uf=!1;function m1(e,t){if(bl=qi,e=bp(),qu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||s!==0&&f.nodeType!==3||(a=o+s),f!==i||r!==0&&f.nodeType!==3||(u=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===s&&(a=o),h===i&&++d===r&&(u=o),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Sl={focusedElem:e,selectionRange:n},qi=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,k=w.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:gt(t.type,v),k);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(b){me(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return w=uf,uf=!1,w}function ss(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Fl(t,n,i)}s=s.next}while(s!==r)}}function Fo(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 zl(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 yg(e){var t=e.alternate;t!==null&&(e.alternate=null,yg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_t],delete t[Ss],delete t[Tl],delete t[qv],delete t[Qv])),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 vg(e){return e.tag===5||e.tag===3||e.tag===4}function cf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vg(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 Bl(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=Ji));else if(r!==4&&(e=e.child,e!==null))for(Bl(e,t,n),e=e.sibling;e!==null;)Bl(e,t,n),e=e.sibling}function $l(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($l(e,t,n),e=e.sibling;e!==null;)$l(e,t,n),e=e.sibling}var Ee=null,xt=!1;function Yt(e,t,n){for(n=n.child;n!==null;)wg(e,t,n),n=n.sibling}function wg(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(Mo,n)}catch{}switch(n.tag){case 5:Ie||sr(n,t);case 6:var r=Ee,s=xt;Ee=null,Yt(e,t,n),Ee=r,xt=s,Ee!==null&&(xt?(e=Ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ee.removeChild(n.stateNode));break;case 18:Ee!==null&&(xt?(e=Ee,n=n.stateNode,e.nodeType===8?va(e.parentNode,n):e.nodeType===1&&va(e,n),ys(e)):va(Ee,n.stateNode));break;case 4:r=Ee,s=xt,Ee=n.stateNode.containerInfo,xt=!0,Yt(e,t,n),Ee=r,xt=s;break;case 0:case 11:case 14:case 15:if(!Ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Fl(n,t,o),s=s.next}while(s!==r)}Yt(e,t,n);break;case 1:if(!Ie&&(sr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){me(n,t,a)}Yt(e,t,n);break;case 21:Yt(e,t,n);break;case 22:n.mode&1?(Ie=(r=Ie)||n.memoizedState!==null,Yt(e,t,n),Ie=r):Yt(e,t,n);break;default:Yt(e,t,n)}}function df(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new h1),t.forEach(function(r){var s=S1.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function ht(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Ee=a.stateNode,xt=!1;break e;case 3:Ee=a.stateNode.containerInfo,xt=!0;break e;case 4:Ee=a.stateNode.containerInfo,xt=!0;break e}a=a.return}if(Ee===null)throw Error(M(160));wg(i,o,s),Ee=null,xt=!1;var u=s.alternate;u!==null&&(u.return=null),s.return=null}catch(c){me(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)kg(t,e),t=t.sibling}function kg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ht(t,e),Tt(e),r&4){try{ss(3,e,e.return),Fo(3,e)}catch(v){me(e,e.return,v)}try{ss(5,e,e.return)}catch(v){me(e,e.return,v)}}break;case 1:ht(t,e),Tt(e),r&512&&n!==null&&sr(n,n.return);break;case 5:if(ht(t,e),Tt(e),r&512&&n!==null&&sr(n,n.return),e.flags&32){var s=e.stateNode;try{ms(s,"")}catch(v){me(e,e.return,v)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Hm(s,i),fl(a,o);var c=fl(a,i);for(o=0;o<u.length;o+=2){var d=u[o],f=u[o+1];d==="style"?Xm(s,f):d==="dangerouslySetInnerHTML"?Gm(s,f):d==="children"?ms(s,f):Vu(s,d,f,c)}switch(a){case"input":al(s,i);break;case"textarea":Wm(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?cr(s,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?cr(s,!!i.multiple,i.defaultValue,!0):cr(s,!!i.multiple,i.multiple?[]:"",!1))}s[Ss]=i}catch(v){me(e,e.return,v)}}break;case 6:if(ht(t,e),Tt(e),r&4){if(e.stateNode===null)throw Error(M(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(v){me(e,e.return,v)}}break;case 3:if(ht(t,e),Tt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ys(t.containerInfo)}catch(v){me(e,e.return,v)}break;case 4:ht(t,e),Tt(e);break;case 13:ht(t,e),Tt(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(gc=pe())),r&4&&df(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Ie=(c=Ie)||d,ht(t,e),Ie=c):ht(t,e),Tt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(I=e,d=e.child;d!==null;){for(f=I=d;I!==null;){switch(h=I,p=h.child,h.tag){case 0:case 11:case 14:case 15:ss(4,h,h.return);break;case 1:sr(h,h.return);var w=h.stateNode;if(typeof w.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(v){me(r,n,v)}}break;case 5:sr(h,h.return);break;case 22:if(h.memoizedState!==null){hf(f);continue}}p!==null?(p.return=h,I=p):hf(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{s=f.stateNode,c?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=f.stateNode,u=f.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=Km("display",o))}catch(v){me(e,e.return,v)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(v){me(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ht(t,e),Tt(e),r&4&&df(e);break;case 21:break;default:ht(t,e),Tt(e)}}function Tt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(vg(n)){var r=n;break e}n=n.return}throw Error(M(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(ms(s,""),r.flags&=-33);var i=cf(e);$l(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=cf(e);Bl(e,a,o);break;default:throw Error(M(161))}}catch(u){me(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function p1(e,t,n){I=e,bg(e)}function bg(e,t,n){for(var r=(e.mode&1)!==0;I!==null;){var s=I,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||hi;if(!o){var a=s.alternate,u=a!==null&&a.memoizedState!==null||Ie;a=hi;var c=Ie;if(hi=o,(Ie=u)&&!c)for(I=s;I!==null;)o=I,u=o.child,o.tag===22&&o.memoizedState!==null?mf(s):u!==null?(u.return=o,I=u):mf(s);for(;i!==null;)I=i,bg(i),i=i.sibling;I=s,hi=a,Ie=c}ff(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,I=i):ff(e)}}function ff(e){for(;I!==null;){var t=I;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ie||Fo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ie)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:gt(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Yd(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Yd(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&ys(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(M(163))}Ie||t.flags&512&&zl(t)}catch(h){me(t,t.return,h)}}if(t===e){I=null;break}if(n=t.sibling,n!==null){n.return=t.return,I=n;break}I=t.return}}function hf(e){for(;I!==null;){var t=I;if(t===e){I=null;break}var n=t.sibling;if(n!==null){n.return=t.return,I=n;break}I=t.return}}function mf(e){for(;I!==null;){var t=I;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Fo(4,t)}catch(u){me(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(u){me(t,s,u)}}var i=t.return;try{zl(t)}catch(u){me(t,i,u)}break;case 5:var o=t.return;try{zl(t)}catch(u){me(t,o,u)}}}catch(u){me(t,t.return,u)}if(t===e){I=null;break}var a=t.sibling;if(a!==null){a.return=t.return,I=a;break}I=t.return}}var g1=Math.ceil,co=Kt.ReactCurrentDispatcher,mc=Kt.ReactCurrentOwner,ut=Kt.ReactCurrentBatchConfig,Y=0,Te=null,xe=null,Ne=0,qe=0,ir=kn(0),ke=0,Ns=null,zn=0,zo=0,pc=0,is=null,We=null,gc=0,br=1/0,Vt=null,fo=!1,Hl=null,fn=null,mi=!1,rn=null,ho=0,os=0,Wl=null,Ai=-1,Di=0;function Be(){return Y&6?pe():Ai!==-1?Ai:Ai=pe()}function hn(e){return e.mode&1?Y&2&&Ne!==0?Ne&-Ne:Jv.transition!==null?(Di===0&&(Di=op()),Di):(e=J,e!==0||(e=window.event,e=e===void 0?16:hp(e.type)),e):1}function kt(e,t,n,r){if(50<os)throw os=0,Wl=null,Error(M(185));Os(e,n,r),(!(Y&2)||e!==Te)&&(e===Te&&(!(Y&2)&&(zo|=n),ke===4&&tn(e,Ne)),Xe(e,r),n===1&&Y===0&&!(t.mode&1)&&(br=pe()+500,Io&&bn()))}function Xe(e,t){var n=e.callbackNode;Jy(e,t);var r=Yi(e,e===Te?Ne:0);if(r===0)n!==null&&bd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&bd(n),t===1)e.tag===0?Zv(pf.bind(null,e)):Lp(pf.bind(null,e)),Xv(function(){!(Y&6)&&bn()}),n=null;else{switch(ap(r)){case 1:n=$u;break;case 4:n=sp;break;case 16:n=Xi;break;case 536870912:n=ip;break;default:n=Xi}n=_g(n,Sg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Sg(e,t){if(Ai=-1,Di=0,Y&6)throw Error(M(327));var n=e.callbackNode;if(pr()&&e.callbackNode!==n)return null;var r=Yi(e,e===Te?Ne:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=mo(e,r);else{t=r;var s=Y;Y|=2;var i=Pg();(Te!==e||Ne!==t)&&(Vt=null,br=pe()+500,An(e,t));do try{v1();break}catch(a){jg(e,a)}while(!0);tc(),co.current=i,Y=s,xe!==null?t=0:(Te=null,Ne=0,t=ke)}if(t!==0){if(t===2&&(s=xl(e),s!==0&&(r=s,t=Ul(e,s))),t===1)throw n=Ns,An(e,0),tn(e,r),Xe(e,pe()),n;if(t===6)tn(e,r);else{if(s=e.current.alternate,!(r&30)&&!x1(s)&&(t=mo(e,r),t===2&&(i=xl(e),i!==0&&(r=i,t=Ul(e,i))),t===1))throw n=Ns,An(e,0),tn(e,r),Xe(e,pe()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(M(345));case 2:Tn(e,We,Vt);break;case 3:if(tn(e,r),(r&130023424)===r&&(t=gc+500-pe(),10<t)){if(Yi(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Be(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Pl(Tn.bind(null,e,We,Vt),t);break}Tn(e,We,Vt);break;case 4:if(tn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-wt(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*g1(r/1960))-r,10<r){e.timeoutHandle=Pl(Tn.bind(null,e,We,Vt),r);break}Tn(e,We,Vt);break;case 5:Tn(e,We,Vt);break;default:throw Error(M(329))}}}return Xe(e,pe()),e.callbackNode===n?Sg.bind(null,e):null}function Ul(e,t){var n=is;return e.current.memoizedState.isDehydrated&&(An(e,t).flags|=256),e=mo(e,t),e!==2&&(t=We,We=n,t!==null&&Gl(t)),e}function Gl(e){We===null?We=e:We.push.apply(We,e)}function x1(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!St(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function tn(e,t){for(t&=~pc,t&=~zo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-wt(t),r=1<<n;e[n]=-1,t&=~r}}function pf(e){if(Y&6)throw Error(M(327));pr();var t=Yi(e,0);if(!(t&1))return Xe(e,pe()),null;var n=mo(e,t);if(e.tag!==0&&n===2){var r=xl(e);r!==0&&(t=r,n=Ul(e,r))}if(n===1)throw n=Ns,An(e,0),tn(e,t),Xe(e,pe()),n;if(n===6)throw Error(M(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tn(e,We,Vt),Xe(e,pe()),null}function xc(e,t){var n=Y;Y|=1;try{return e(t)}finally{Y=n,Y===0&&(br=pe()+500,Io&&bn())}}function Bn(e){rn!==null&&rn.tag===0&&!(Y&6)&&pr();var t=Y;Y|=1;var n=ut.transition,r=J;try{if(ut.transition=null,J=1,e)return e()}finally{J=r,ut.transition=n,Y=t,!(Y&6)&&bn()}}function yc(){qe=ir.current,ie(ir)}function An(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Kv(n)),xe!==null)for(n=xe.return;n!==null;){var r=n;switch(Zu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&eo();break;case 3:wr(),ie(Ge),ie(Ve),ac();break;case 5:oc(r);break;case 4:wr();break;case 13:ie(le);break;case 19:ie(le);break;case 10:nc(r.type._context);break;case 22:case 23:yc()}n=n.return}if(Te=e,xe=e=mn(e.current,null),Ne=qe=t,ke=0,Ns=null,pc=zo=zn=0,We=is=null,Nn!==null){for(t=0;t<Nn.length;t++)if(n=Nn[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}Nn=null}return e}function jg(e,t){do{var n=xe;try{if(tc(),_i.current=uo,lo){for(var r=ue.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}lo=!1}if(Fn=0,Pe=we=ue=null,rs=!1,Ts=0,mc.current=null,n===null||n.return===null){ke=1,Ns=t,xe=null;break}e:{var i=e,o=n.return,a=n,u=t;if(t=Ne,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=tf(o);if(p!==null){p.flags&=-257,nf(p,o,a,i,t),p.mode&1&&ef(i,c,t),t=p,u=c;var w=t.updateQueue;if(w===null){var v=new Set;v.add(u),t.updateQueue=v}else w.add(u);break e}else{if(!(t&1)){ef(i,c,t),vc();break e}u=Error(M(426))}}else if(ae&&a.mode&1){var k=tf(o);if(k!==null){!(k.flags&65536)&&(k.flags|=256),nf(k,o,a,i,t),Ju(kr(u,a));break e}}i=u=kr(u,a),ke!==4&&(ke=2),is===null?is=[i]:is.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=ag(i,u,t);Xd(i,g);break e;case 1:a=u;var m=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(fn===null||!fn.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var b=lg(i,a,t);Xd(i,b);break e}}i=i.return}while(i!==null)}Cg(n)}catch(P){t=P,xe===n&&n!==null&&(xe=n=n.return);continue}break}while(!0)}function Pg(){var e=co.current;return co.current=uo,e===null?uo:e}function vc(){(ke===0||ke===3||ke===2)&&(ke=4),Te===null||!(zn&268435455)&&!(zo&268435455)||tn(Te,Ne)}function mo(e,t){var n=Y;Y|=2;var r=Pg();(Te!==e||Ne!==t)&&(Vt=null,An(e,t));do try{y1();break}catch(s){jg(e,s)}while(!0);if(tc(),Y=n,co.current=r,xe!==null)throw Error(M(261));return Te=null,Ne=0,ke}function y1(){for(;xe!==null;)Tg(xe)}function v1(){for(;xe!==null&&!Wy();)Tg(xe)}function Tg(e){var t=Ng(e.alternate,e,qe);e.memoizedProps=e.pendingProps,t===null?Cg(e):xe=t,mc.current=null}function Cg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=f1(n,t),n!==null){n.flags&=32767,xe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ke=6,xe=null;return}}else if(n=d1(n,t,qe),n!==null){xe=n;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);ke===0&&(ke=5)}function Tn(e,t,n){var r=J,s=ut.transition;try{ut.transition=null,J=1,w1(e,t,n,r)}finally{ut.transition=s,J=r}return null}function w1(e,t,n,r){do pr();while(rn!==null);if(Y&6)throw Error(M(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(M(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(ev(e,i),e===Te&&(xe=Te=null,Ne=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||mi||(mi=!0,_g(Xi,function(){return pr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=ut.transition,ut.transition=null;var o=J;J=1;var a=Y;Y|=4,mc.current=null,m1(e,n),kg(n,e),zv(Sl),qi=!!bl,Sl=bl=null,e.current=n,p1(n),Uy(),Y=a,J=o,ut.transition=i}else e.current=n;if(mi&&(mi=!1,rn=e,ho=s),i=e.pendingLanes,i===0&&(fn=null),Xy(n.stateNode),Xe(e,pe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(fo)throw fo=!1,e=Hl,Hl=null,e;return ho&1&&e.tag!==0&&pr(),i=e.pendingLanes,i&1?e===Wl?os++:(os=0,Wl=e):os=0,bn(),null}function pr(){if(rn!==null){var e=ap(ho),t=ut.transition,n=J;try{if(ut.transition=null,J=16>e?16:e,rn===null)var r=!1;else{if(e=rn,rn=null,ho=0,Y&6)throw Error(M(331));var s=Y;for(Y|=4,I=e.current;I!==null;){var i=I,o=i.child;if(I.flags&16){var a=i.deletions;if(a!==null){for(var u=0;u<a.length;u++){var c=a[u];for(I=c;I!==null;){var d=I;switch(d.tag){case 0:case 11:case 15:ss(8,d,i)}var f=d.child;if(f!==null)f.return=d,I=f;else for(;I!==null;){d=I;var h=d.sibling,p=d.return;if(yg(d),d===c){I=null;break}if(h!==null){h.return=p,I=h;break}I=p}}}var w=i.alternate;if(w!==null){var v=w.child;if(v!==null){w.child=null;do{var k=v.sibling;v.sibling=null,v=k}while(v!==null)}}I=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,I=o;else e:for(;I!==null;){if(i=I,i.flags&2048)switch(i.tag){case 0:case 11:case 15:ss(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,I=g;break e}I=i.return}}var m=e.current;for(I=m;I!==null;){o=I;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,I=y;else e:for(o=m;I!==null;){if(a=I,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Fo(9,a)}}catch(P){me(a,a.return,P)}if(a===o){I=null;break e}var b=a.sibling;if(b!==null){b.return=a.return,I=b;break e}I=a.return}}if(Y=s,bn(),Mt&&typeof Mt.onPostCommitFiberRoot=="function")try{Mt.onPostCommitFiberRoot(Mo,e)}catch{}r=!0}return r}finally{J=n,ut.transition=t}}return!1}function gf(e,t,n){t=kr(n,t),t=ag(e,t,1),e=dn(e,t,1),t=Be(),e!==null&&(Os(e,1,t),Xe(e,t))}function me(e,t,n){if(e.tag===3)gf(e,e,n);else for(;t!==null;){if(t.tag===3){gf(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=kr(n,e),e=lg(t,e,1),t=dn(t,e,1),e=Be(),t!==null&&(Os(t,1,e),Xe(t,e));break}}t=t.return}}function k1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Be(),e.pingedLanes|=e.suspendedLanes&n,Te===e&&(Ne&n)===n&&(ke===4||ke===3&&(Ne&130023424)===Ne&&500>pe()-gc?An(e,0):pc|=n),Xe(e,t)}function Eg(e,t){t===0&&(e.mode&1?(t=si,si<<=1,!(si&130023424)&&(si=4194304)):t=1);var n=Be();e=Ut(e,t),e!==null&&(Os(e,t,n),Xe(e,n))}function b1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Eg(e,n)}function S1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),Eg(e,n)}var Ng;Ng=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ge.current)Ue=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ue=!1,c1(e,t,n);Ue=!!(e.flags&131072)}else Ue=!1,ae&&t.flags&1048576&&Ap(t,ro,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Li(e,t),e=t.pendingProps;var s=xr(t,Ve.current);mr(t,n),s=uc(null,t,r,e,s,n);var i=cc();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ke(r)?(i=!0,to(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,sc(t),s.updater=Oo,t.stateNode=s,s._reactInternals=t,Ll(t,r,e,n),t=Rl(null,t,r,!0,i,n)):(t.tag=0,ae&&i&&Qu(t),Oe(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Li(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=P1(r),e=gt(r,e),s){case 0:t=Dl(null,t,r,e,n);break e;case 1:t=of(null,t,r,e,n);break e;case 11:t=rf(null,t,r,e,n);break e;case 14:t=sf(null,t,r,gt(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gt(r,s),Dl(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gt(r,s),of(e,t,r,s,n);case 3:e:{if(fg(t),e===null)throw Error(M(387));r=t.pendingProps,i=t.memoizedState,s=i.element,Fp(e,t),oo(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=kr(Error(M(423)),t),t=af(e,t,r,n,s);break e}else if(r!==s){s=kr(Error(M(424)),t),t=af(e,t,r,n,s);break e}else for(Qe=cn(t.stateNode.containerInfo.firstChild),Ze=t,ae=!0,yt=null,n=Vp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(yr(),r===s){t=Gt(e,t,n);break e}Oe(e,t,r,n)}t=t.child}return t;case 5:return zp(t),e===null&&Nl(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,jl(r,s)?o=null:i!==null&&jl(r,i)&&(t.flags|=32),dg(e,t),Oe(e,t,o,n),t.child;case 6:return e===null&&Nl(t),null;case 13:return hg(e,t,n);case 4:return ic(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vr(t,null,r,n):Oe(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gt(r,s),rf(e,t,r,s,n);case 7:return Oe(e,t,t.pendingProps,n),t.child;case 8:return Oe(e,t,t.pendingProps.children,n),t.child;case 12:return Oe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,re(so,r._currentValue),r._currentValue=o,i!==null)if(St(i.value,o)){if(i.children===s.children&&!Ge.current){t=Gt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=$t(-1,n&-n),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),_l(i.return,n,t),a.lanes|=n;break}u=u.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(M(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),_l(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Oe(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,mr(t,n),s=ct(s),r=r(s),t.flags|=1,Oe(e,t,r,n),t.child;case 14:return r=t.type,s=gt(r,t.pendingProps),s=gt(r.type,s),sf(e,t,r,s,n);case 15:return ug(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gt(r,s),Li(e,t),t.tag=1,Ke(r)?(e=!0,to(t)):e=!1,mr(t,n),og(t,r,s),Ll(t,r,s,n),Rl(null,t,r,!0,e,n);case 19:return mg(e,t,n);case 22:return cg(e,t,n)}throw Error(M(156,t.tag))};function _g(e,t){return rp(e,t)}function j1(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function at(e,t,n,r){return new j1(e,t,n,r)}function wc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function P1(e){if(typeof e=="function")return wc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fu)return 11;if(e===zu)return 14}return 2}function mn(e,t){var n=e.alternate;return n===null?(n=at(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ri(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")wc(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Yn:return Dn(n.children,s,i,t);case Ou:o=8,s|=8;break;case nl:return e=at(12,n,t,s|2),e.elementType=nl,e.lanes=i,e;case rl:return e=at(13,n,t,s),e.elementType=rl,e.lanes=i,e;case sl:return e=at(19,n,t,s),e.elementType=sl,e.lanes=i,e;case zm:return Bo(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Om:o=10;break e;case Fm:o=9;break e;case Fu:o=11;break e;case zu:o=14;break e;case Qt:o=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=at(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Dn(e,t,n,r){return e=at(7,e,r,t),e.lanes=n,e}function Bo(e,t,n,r){return e=at(22,e,r,t),e.elementType=zm,e.lanes=n,e.stateNode={isHidden:!1},e}function Ca(e,t,n){return e=at(6,e,null,t),e.lanes=n,e}function Ea(e,t,n){return t=at(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function T1(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=la(0),this.expirationTimes=la(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=la(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function kc(e,t,n,r,s,i,o,a,u){return e=new T1(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=at(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},sc(i),e}function C1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Mg(e){if(!e)return xn;e=e._reactInternals;e:{if(Wn(e)!==e||e.tag!==1)throw Error(M(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ke(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(M(171))}if(e.tag===1){var n=e.type;if(Ke(n))return Mp(e,n,t)}return t}function Lg(e,t,n,r,s,i,o,a,u){return e=kc(n,r,!0,e,s,i,o,a,u),e.context=Mg(null),n=e.current,r=Be(),s=hn(n),i=$t(r,s),i.callback=t??null,dn(n,i,s),e.current.lanes=s,Os(e,s,r),Xe(e,r),e}function $o(e,t,n,r){var s=t.current,i=Be(),o=hn(s);return n=Mg(n),t.context===null?t.context=n:t.pendingContext=n,t=$t(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=dn(s,t,o),e!==null&&(kt(e,s,o,i),Ni(e,s,o)),o}function po(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 xf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function bc(e,t){xf(e,t),(e=e.alternate)&&xf(e,t)}function E1(){return null}var Ag=typeof reportError=="function"?reportError:function(e){console.error(e)};function Sc(e){this._internalRoot=e}Ho.prototype.render=Sc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(M(409));$o(e,t,null,null)};Ho.prototype.unmount=Sc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Bn(function(){$o(null,e,null,null)}),t[Wt]=null}};function Ho(e){this._internalRoot=e}Ho.prototype.unstable_scheduleHydration=function(e){if(e){var t=cp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<en.length&&t!==0&&t<en[n].priority;n++);en.splice(n,0,e),n===0&&fp(e)}};function jc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Wo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function yf(){}function N1(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var c=po(o);i.call(c)}}var o=Lg(t,r,e,0,null,!1,!1,"",yf);return e._reactRootContainer=o,e[Wt]=o.current,ks(e.nodeType===8?e.parentNode:e),Bn(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var c=po(u);a.call(c)}}var u=kc(e,0,!1,null,null,!1,!1,"",yf);return e._reactRootContainer=u,e[Wt]=u.current,ks(e.nodeType===8?e.parentNode:e),Bn(function(){$o(t,u,n,r)}),u}function Uo(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var u=po(o);a.call(u)}}$o(t,o,e,s)}else o=N1(n,t,e,s,r);return po(o)}lp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Xr(t.pendingLanes);n!==0&&(Hu(t,n|1),Xe(t,pe()),!(Y&6)&&(br=pe()+500,bn()))}break;case 13:Bn(function(){var r=Ut(e,1);if(r!==null){var s=Be();kt(r,e,1,s)}}),bc(e,1)}};Wu=function(e){if(e.tag===13){var t=Ut(e,134217728);if(t!==null){var n=Be();kt(t,e,134217728,n)}bc(e,134217728)}};up=function(e){if(e.tag===13){var t=hn(e),n=Ut(e,t);if(n!==null){var r=Be();kt(n,e,t,r)}bc(e,t)}};cp=function(){return J};dp=function(e,t){var n=J;try{return J=e,t()}finally{J=n}};ml=function(e,t,n){switch(t){case"input":if(al(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=Ro(r);if(!s)throw Error(M(90));$m(r),al(r,s)}}}break;case"textarea":Wm(e,n);break;case"select":t=n.value,t!=null&&cr(e,!!n.multiple,t,!1)}};Qm=xc;Zm=Bn;var _1={usingClientEntryPoint:!1,Events:[zs,Jn,Ro,Ym,qm,xc]},Hr={findFiberByHostInstance:En,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},M1={bundleType:Hr.bundleType,version:Hr.version,rendererPackageName:Hr.rendererPackageName,rendererConfig:Hr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Kt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=tp(e),e===null?null:e.stateNode},findFiberByHostInstance:Hr.findFiberByHostInstance||E1,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 pi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pi.isDisabled&&pi.supportsFiber)try{Mo=pi.inject(M1),Mt=pi}catch{}}tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_1;tt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!jc(t))throw Error(M(200));return C1(e,t,null,n)};tt.createRoot=function(e,t){if(!jc(e))throw Error(M(299));var n=!1,r="",s=Ag;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=kc(e,1,!1,null,null,n,!1,r,s),e[Wt]=t.current,ks(e.nodeType===8?e.parentNode:e),new Sc(t)};tt.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(M(188)):(e=Object.keys(e).join(","),Error(M(268,e)));return e=tp(t),e=e===null?null:e.stateNode,e};tt.flushSync=function(e){return Bn(e)};tt.hydrate=function(e,t,n){if(!Wo(t))throw Error(M(200));return Uo(null,e,t,!0,n)};tt.hydrateRoot=function(e,t,n){if(!jc(e))throw Error(M(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Ag;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Lg(t,null,e,1,n??null,s,!1,i,o),e[Wt]=t.current,ks(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Ho(t)};tt.render=function(e,t,n){if(!Wo(t))throw Error(M(200));return Uo(null,e,t,!1,n)};tt.unmountComponentAtNode=function(e){if(!Wo(e))throw Error(M(40));return e._reactRootContainer?(Bn(function(){Uo(null,null,e,!1,function(){e._reactRootContainer=null,e[Wt]=null})}),!0):!1};tt.unstable_batchedUpdates=xc;tt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Wo(n))throw Error(M(200));if(e==null||e._reactInternals===void 0)throw Error(M(38));return Uo(e,t,n,!1,r)};tt.version="18.3.1-next-f1338f8080-20240426";function Dg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dg)}catch(e){console.error(e)}}Dg(),Dm.exports=tt;var Go=Dm.exports;const pN=km(Go);var vf=Go;el.createRoot=vf.createRoot,el.hydrateRoot=vf.hydrateRoot;/**
* @remix-run/router v1.23.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function _s(){return _s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_s.apply(null,arguments)}var sn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(sn||(sn={}));const wf="popstate";function L1(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:o,hash:a}=r.location;return Kl("",{pathname:i,search:o,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:go(s)}return D1(t,n,null,e)}function ce(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Pc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function A1(){return Math.random().toString(36).substr(2,8)}function kf(e,t){return{usr:e.state,key:e.key,idx:t}}function Kl(e,t,n,r){return n===void 0&&(n=null),_s({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?_r(t):t,{state:n,key:t&&t.key||r||A1()})}function go(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 _r(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 D1(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=sn.Pop,u=null,c=d();c==null&&(c=0,o.replaceState(_s({},o.state,{idx:c}),""));function d(){return(o.state||{idx:null}).idx}function f(){a=sn.Pop;let k=d(),g=k==null?null:k-c;c=k,u&&u({action:a,location:v.location,delta:g})}function h(k,g){a=sn.Push;let m=Kl(v.location,k,g);c=d()+1;let y=kf(m,c),b=v.createHref(m);try{o.pushState(y,"",b)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;s.location.assign(b)}i&&u&&u({action:a,location:v.location,delta:1})}function p(k,g){a=sn.Replace;let m=Kl(v.location,k,g);c=d();let y=kf(m,c),b=v.createHref(m);o.replaceState(y,"",b),i&&u&&u({action:a,location:v.location,delta:0})}function w(k){let g=s.location.origin!=="null"?s.location.origin:s.location.href,m=typeof k=="string"?k:go(k);return m=m.replace(/ $/,"%20"),ce(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let v={get action(){return a},get location(){return e(s,o)},listen(k){if(u)throw new Error("A history only accepts one active listener");return s.addEventListener(wf,f),u=k,()=>{s.removeEventListener(wf,f),u=null}},createHref(k){return t(s,k)},createURL:w,encodeLocation(k){let g=w(k);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:p,go(k){return o.go(k)}};return v}var bf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(bf||(bf={}));function R1(e,t,n){return n===void 0&&(n="/"),I1(e,t,n)}function I1(e,t,n,r){let s=typeof t=="string"?_r(t):t,i=Sr(s.pathname||"/",n);if(i==null)return null;let o=Rg(e);V1(o);let a=null,u=X1(i);for(let c=0;a==null&&c<o.length;++c)a=G1(o[c],u);return a}function Rg(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,o,a)=>{let u={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};u.relativePath.startsWith("/")&&(ce(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=pn([r,u.relativePath]),d=n.concat(u);i.children&&i.children.length>0&&(ce(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Rg(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:W1(c,i.index),routesMeta:d})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let u of Ig(i.path))s(i,o,u)}),t}function Ig(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=Ig(r.join("/")),a=[];return a.push(...o.map(u=>u===""?i:[i,u].join("/"))),s&&a.push(...o),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function V1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:U1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const O1=/^:[\w-]+$/,F1=3,z1=2,B1=1,$1=10,H1=-2,Sf=e=>e==="*";function W1(e,t){let n=e.split("/"),r=n.length;return n.some(Sf)&&(r+=H1),t&&(r+=z1),n.filter(s=>!Sf(s)).reduce((s,i)=>s+(O1.test(i)?F1:i===""?B1:$1),r)}function U1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function G1(e,t,n){let{routesMeta:r}=e,s={},i="/",o=[];for(let a=0;a<r.length;++a){let u=r[a],c=a===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",f=Xl({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},d),h=u.route;if(!f)return null;Object.assign(s,f.params),o.push({params:s,pathname:pn([i,f.pathname]),pathnameBase:J1(pn([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=pn([i,f.pathnameBase]))}return o}function Xl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=K1(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((c,d,f)=>{let{paramName:h,isOptional:p}=d;if(h==="*"){let v=a[f]||"";o=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const w=a[f];return p&&!w?c[h]=void 0:c[h]=(w||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function K1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Pc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function X1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Pc(!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 Sr(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 Y1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,q1=e=>Y1.test(e);function Q1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?_r(e):e,i;if(n)if(q1(n))i=n;else{if(n.includes("//")){let o=n;n=Vg(n),Pc(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?i=jf(n.substring(1),"/"):i=jf(n,t)}else i=t;return{pathname:i,search:ew(r),hash:tw(s)}}function jf(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Na(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Z1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Tc(e,t){let n=Z1(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Cc(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=_r(e):(s=_s({},e),ce(!s.pathname||!s.pathname.includes("?"),Na("?","pathname","search",s)),ce(!s.pathname||!s.pathname.includes("#"),Na("#","pathname","hash",s)),ce(!s.search||!s.search.includes("#"),Na("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;s.pathname=h.join("/")}a=f>=0?t[f]:"/"}let u=Q1(s,a),c=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const Vg=e=>e.replace(/\/\/+/g,"/"),pn=e=>Vg(e.join("/")),J1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ew=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,tw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function nw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Og=["post","put","patch","delete"];new Set(Og);const rw=["get",...Og];new Set(rw);/**
* React Router v6.30.4
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Ms(){return Ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ms.apply(null,arguments)}const Ko=x.createContext(null),Fg=x.createContext(null),Xt=x.createContext(null),Xo=x.createContext(null),Dt=x.createContext({outlet:null,matches:[],isDataRoute:!1}),zg=x.createContext(null);function sw(e,t){let{relative:n}=t===void 0?{}:t;Mr()||ce(!1);let{basename:r,navigator:s}=x.useContext(Xt),{hash:i,pathname:o,search:a}=qo(e,{relative:n}),u=o;return r!=="/"&&(u=o==="/"?r:pn([r,o])),s.createHref({pathname:u,search:a,hash:i})}function Mr(){return x.useContext(Xo)!=null}function rt(){return Mr()||ce(!1),x.useContext(Xo).location}function Bg(e){x.useContext(Xt).static||x.useLayoutEffect(e)}function Yo(){let{isDataRoute:e}=x.useContext(Dt);return e?vw():iw()}function iw(){Mr()||ce(!1);let e=x.useContext(Ko),{basename:t,future:n,navigator:r}=x.useContext(Xt),{matches:s}=x.useContext(Dt),{pathname:i}=rt(),o=JSON.stringify(Tc(s,n.v7_relativeSplatPath)),a=x.useRef(!1);return Bg(()=>{a.current=!0}),x.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let f=Cc(c,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:pn([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,o,i,e])}const ow=x.createContext(null);function aw(e){let t=x.useContext(Dt).outlet;return t&&x.createElement(ow.Provider,{value:e},t)}function $s(){let{matches:e}=x.useContext(Dt),t=e[e.length-1];return t?t.params:{}}function qo(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=x.useContext(Xt),{matches:s}=x.useContext(Dt),{pathname:i}=rt(),o=JSON.stringify(Tc(s,r.v7_relativeSplatPath));return x.useMemo(()=>Cc(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function lw(e,t){return uw(e,t)}function uw(e,t,n,r){Mr()||ce(!1);let{navigator:s}=x.useContext(Xt),{matches:i}=x.useContext(Dt),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let u=o?o.pathnameBase:"/";o&&o.route;let c=rt(),d;if(t){var f;let k=typeof t=="string"?_r(t):t;u==="/"||(f=k.pathname)!=null&&f.startsWith(u)||ce(!1),d=k}else d=c;let h=d.pathname||"/",p=h;if(u!=="/"){let k=u.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(k.length).join("/")}let w=R1(e,{pathname:p}),v=mw(w&&w.map(k=>Object.assign({},k,{params:Object.assign({},a,k.params),pathname:pn([u,s.encodeLocation?s.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?u:pn([u,s.encodeLocation?s.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),i,n,r);return t&&v?x.createElement(Xo.Provider,{value:{location:Ms({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:sn.Pop}},v):v}function cw(){let e=yw(),t=nw(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:s},n):null,null)}const dw=x.createElement(cw,null);class fw extends x.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?x.createElement(Dt.Provider,{value:this.props.routeContext},x.createElement(zg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hw(e){let{routeContext:t,match:n,children:r}=e,s=x.useContext(Ko);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(Dt.Provider,{value:t},r)}function mw(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let d=o.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||ce(!1),o=o.slice(0,Math.min(o.length,d+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let f=o[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:h,errors:p}=n,w=f.route.loader&&h[f.route.id]===void 0&&(!p||p[f.route.id]===void 0);if(f.route.lazy||w){u=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((d,f,h)=>{let p,w=!1,v=null,k=null;n&&(p=a&&f.route.id?a[f.route.id]:void 0,v=f.route.errorElement||dw,u&&(c<0&&h===0?(ww("route-fallback"),w=!0,k=null):c===h&&(w=!0,k=f.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,h+1)),m=()=>{let y;return p?y=v:w?y=k:f.route.Component?y=x.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=d,x.createElement(hw,{match:f,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:y})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?x.createElement(fw,{location:n.location,revalidation:n.revalidation,component:v,error:p,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var $g=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}($g||{}),Hg=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}(Hg||{});function pw(e){let t=x.useContext(Ko);return t||ce(!1),t}function gw(e){let t=x.useContext(Fg);return t||ce(!1),t}function xw(e){let t=x.useContext(Dt);return t||ce(!1),t}function Wg(e){let t=xw(),n=t.matches[t.matches.length-1];return n.route.id||ce(!1),n.route.id}function yw(){var e;let t=x.useContext(zg),n=gw(),r=Wg();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function vw(){let{router:e}=pw($g.UseNavigateStable),t=Wg(Hg.UseNavigateStable),n=x.useRef(!1);return Bg(()=>{n.current=!0}),x.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Ms({fromRouteId:t},i)))},[e,t])}const Pf={};function ww(e,t,n){Pf[e]||(Pf[e]=!0)}function kw(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Ls(e){let{to:t,replace:n,state:r,relative:s}=e;Mr()||ce(!1);let{future:i,static:o}=x.useContext(Xt),{matches:a}=x.useContext(Dt),{pathname:u}=rt(),c=Yo(),d=Cc(t,Tc(a,i.v7_relativeSplatPath),u,s==="path"),f=JSON.stringify(d);return x.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:s}),[c,f,s,n,r]),null}function Ec(e){return aw(e.context)}function z(e){ce(!1)}function bw(e){let{basename:t="/",children:n=null,location:r,navigationType:s=sn.Pop,navigator:i,static:o=!1,future:a}=e;Mr()&&ce(!1);let u=t.replace(/^\/*/,"/"),c=x.useMemo(()=>({basename:u,navigator:i,static:o,future:Ms({v7_relativeSplatPath:!1},a)}),[u,a,i,o]);typeof r=="string"&&(r=_r(r));let{pathname:d="/",search:f="",hash:h="",state:p=null,key:w="default"}=r,v=x.useMemo(()=>{let k=Sr(d,u);return k==null?null:{location:{pathname:k,search:f,hash:h,state:p,key:w},navigationType:s}},[u,d,f,h,p,w,s]);return v==null?null:x.createElement(Xt.Provider,{value:c},x.createElement(Xo.Provider,{children:n,value:v}))}function Sw(e){let{children:t,location:n}=e;return lw(Yl(t),n)}new Promise(()=>{});function Yl(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,s)=>{if(!x.isValidElement(r))return;let i=[...t,s];if(r.type===x.Fragment){n.push.apply(n,Yl(r.props.children,i));return}r.type!==z&&ce(!1),!r.props.index||!r.props.children||ce(!1);let o={id:r.props.id||i.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&&(o.children=Yl(r.props.children,i)),n.push(o)}),n}/**
* React Router DOM v6.30.4
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function xo(){return xo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xo.apply(null,arguments)}function Ug(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function jw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Pw(e,t){return e.button===0&&(!t||t==="_self")&&!jw(e)}function ql(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function Tw(e,t){let n=ql(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(i=>{n.append(s,i)})}),n}const Cw=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Ew=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Nw="6";try{window.__reactRouterVersion=Nw}catch{}const _w=x.createContext({isTransitioning:!1}),Mw="startTransition",Tf=ky[Mw];function Lw(e){let{basename:t,children:n,future:r,window:s}=e,i=x.useRef();i.current==null&&(i.current=L1({window:s,v5Compat:!0}));let o=i.current,[a,u]=x.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},d=x.useCallback(f=>{c&&Tf?Tf(()=>u(f)):u(f)},[u,c]);return x.useLayoutEffect(()=>o.listen(d),[o,d]),x.useEffect(()=>kw(r),[r]),x.createElement(bw,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const Aw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Dw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,U=x.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:a,target:u,to:c,preventScrollReset:d,viewTransition:f}=t,h=Ug(t,Cw),{basename:p}=x.useContext(Xt),w,v=!1;if(typeof c=="string"&&Dw.test(c)&&(w=c,Aw))try{let y=new URL(window.location.href),b=c.startsWith("//")?new URL(y.protocol+c):new URL(c),P=Sr(b.pathname,p);b.origin===y.origin&&P!=null?c=P+b.search+b.hash:v=!0}catch{}let k=sw(c,{relative:s}),g=Vw(c,{replace:o,state:a,target:u,preventScrollReset:d,relative:s,viewTransition:f});function m(y){r&&r(y),y.defaultPrevented||g(y)}return x.createElement("a",xo({},h,{href:w||k,onClick:v||i?r:m,ref:n,target:u}))}),Rw=x.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:s=!1,className:i="",end:o=!1,style:a,to:u,viewTransition:c,children:d}=t,f=Ug(t,Ew),h=qo(u,{relative:f.relative}),p=rt(),w=x.useContext(Fg),{navigator:v,basename:k}=x.useContext(Xt),g=w!=null&&Fw(h)&&c===!0,m=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,y=p.pathname,b=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;s||(y=y.toLowerCase(),b=b?b.toLowerCase():null,m=m.toLowerCase()),b&&k&&(b=Sr(b,k)||b);const P=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let T=y===m||!o&&y.startsWith(m)&&y.charAt(P)==="/",S=b!=null&&(b===m||!o&&b.startsWith(m)&&b.charAt(m.length)==="/"),j={isActive:T,isPending:S,isTransitioning:g},L=T?r:void 0,N;typeof i=="function"?N=i(j):N=[i,T?"active":null,S?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let O=typeof a=="function"?a(j):a;return x.createElement(U,xo({},f,{"aria-current":L,className:N,ref:n,style:O,to:u,viewTransition:c}),typeof d=="function"?d(j):d)});var Ql;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ql||(Ql={}));var Cf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Cf||(Cf={}));function Iw(e){let t=x.useContext(Ko);return t||ce(!1),t}function Vw(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,u=Yo(),c=rt(),d=qo(e,{relative:o});return x.useCallback(f=>{if(Pw(f,n)){f.preventDefault();let h=r!==void 0?r:go(c)===go(d);u(e,{replace:h,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[c,u,d,r,s,n,e,i,o,a])}function Ow(e){let t=x.useRef(ql(e)),n=x.useRef(!1),r=rt(),s=x.useMemo(()=>Tw(r.search,n.current?null:t.current),[r.search]),i=Yo(),o=x.useCallback((a,u)=>{const c=ql(typeof a=="function"?a(s):a);n.current=!0,i("?"+c,u)},[i,s]);return[s,o]}function Fw(e,t){t===void 0&&(t={});let n=x.useContext(_w);n==null&&ce(!1);let{basename:r}=Iw(Ql.useViewTransitionState),s=qo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Sr(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Sr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Xl(s.pathname,o)!=null||Xl(s.pathname,i)!=null}const zw="modulepreload",Bw=function(e){return"/"+e},Ef={},ee=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(n.map(u=>{if(u=Bw(u),u in Ef)return;Ef[u]=!0;const c=u.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":zw,c||(f.as="script"),f.crossOrigin="",f.href=u,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};function $w(){const{pathname:e}=rt();return x.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"instant"})},[e]),null}const Hw='a, button, [role="button"], label, select, summary, [data-cursor="hover"], .cursor-pointer',Ww='input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="file"]), textarea, [contenteditable="true"]';function Uw(){const e=x.useRef(null),t=x.useRef(null),n=x.useRef(null),r=x.useRef(null),s=x.useRef(null);return x.useEffect(()=>{const i=window.matchMedia("(pointer: fine)"),o=window.matchMedia("(prefers-reduced-motion: reduce)");if(!i.matches||o.matches)return;const a=e.current,u=t.current,c=n.current,d=r.current,f=s.current;if(!a||!u||!c||!d||!f)return;document.documentElement.classList.add("hifi-cursor-on");const h=-24*Math.PI/180,p=Math.cos(h),w=Math.sin(h);let v=-100,k=-100,g=0,m=2.4,y=2.4,b=16,P=6.5,T=16,S=6.5,j=!1,L,N=performance.now();const O=E=>{const C=Math.min((E-N)/1e3,.05);N=E,m+=(y-m)*Math.min(1,C*8),b+=(T-b)*Math.min(1,C*10),P+=(S-P)*Math.min(1,C*10),g+=m*C,u.style.transform=`translate3d(${v}px, ${k}px, 0)`,c.style.transform=`translate3d(${v}px, ${k}px, 0)`;const A=Math.cos(g)*b,F=Math.sin(g)*P;d.style.transform=`translate(${A*p-F*w}px, ${A*w+F*p}px)`,L=requestAnimationFrame(O)},H=E=>{a.dataset.state=E;const C=E==="hover";y=C?7:2.4,T=C?23:16,S=C?9.5:6.5},oe=E=>{v=E.clientX,k=E.clientY,j||(j=!0,a.dataset.hidden="false")},_=E=>{const C=E.target;C instanceof Element&&(C.closest(Ww)?H("text"):C.closest(Hw)?H("hover"):H("default"))},R=()=>{a.dataset.down="true",f.style.left=`${v}px`,f.style.top=`${k}px`,f.classList.remove("is-live"),f.offsetWidth,f.classList.add("is-live")},B=()=>{a.dataset.down="false"},W=()=>{j=!1,a.dataset.hidden="true"};return document.addEventListener("mousemove",oe,{passive:!0}),document.addEventListener("mouseover",_,{passive:!0}),document.addEventListener("mousedown",R,{passive:!0}),document.addEventListener("mouseup",B,{passive:!0}),document.documentElement.addEventListener("mouseleave",W),window.addEventListener("blur",W),L=requestAnimationFrame(O),()=>{cancelAnimationFrame(L),document.removeEventListener("mousemove",oe),document.removeEventListener("mouseover",_),document.removeEventListener("mousedown",R),document.removeEventListener("mouseup",B),document.documentElement.removeEventListener("mouseleave",W),window.removeEventListener("blur",W),document.documentElement.classList.remove("hifi-cursor-on")}},[]),l.jsxs("div",{ref:e,className:"hifi-cursor","data-state":"default","data-hidden":"true","data-down":"false","aria-hidden":"true",children:[l.jsxs("div",{ref:n,className:"hifi-cursor__orbit",children:[l.jsx("div",{className:"hifi-cursor__ring"}),l.jsx("div",{ref:r,className:"hifi-cursor__sat"})]}),l.jsx("div",{ref:t,className:"hifi-cursor__core"}),l.jsx("div",{ref:s,className:"hifi-cursor__pulse"})]})}const Gw=`${"/".replace(/\/$/,"")}/api`;let Zl=0;const Jl=new Set,Nf=e=>{Zl+=e,Jl.forEach(t=>t(Zl))},Kw=()=>Zl,Xw=e=>(Jl.add(e),()=>Jl.delete(e));async function Wr(e,t={}){Nf(1);try{return await Yw(e,t)}finally{Nf(-1)}}async function Yw(e,t){const n=await fetch(`${Gw}${e}`,{credentials:"include",headers:t.body instanceof FormData?{}:{"Content-Type":"application/json"},...t}),r=await n.text();let s=null;if(r)try{s=JSON.parse(r)}catch{}if(!n.ok)throw new Error((s==null?void 0:s.error)||`Fehler ${n.status}`);if(s===null&&r)throw new Error("Unerwartete Server-Antwort (kein gültiges JSON)");return s}const Z={get:(e,t)=>Wr(e,t),post:(e,t)=>Wr(e,{method:"POST",body:t instanceof FormData?t:JSON.stringify(t)}),put:(e,t)=>Wr(e,{method:"PUT",body:JSON.stringify(t)}),patch:(e,t)=>Wr(e,{method:"PATCH",body:JSON.stringify(t)}),delete:e=>Wr(e,{method:"DELETE"})};function qw({children:e}){const[t,n]=x.useState({pathname:null,needsSetup:null}),r=rt(),s=t.needsSetup===!1;x.useEffect(()=>{if(s)return;let o=!1;return Z.get("/setup/status").then(a=>{o||n({pathname:r.pathname,needsSetup:a.needs_setup})}).catch(()=>{o||n({pathname:r.pathname,needsSetup:!1})}),()=>{o=!0}},[r.pathname,s]);const i=t.pathname===r.pathname;return r.pathname==="/setup"?s?l.jsx(Ls,{to:"/",replace:!0}):!i||t.needsSetup===null?l.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"}):e:i&&t.needsSetup?l.jsx(Ls,{to:"/setup",replace:!0}):e}/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gg=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zw=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _f=e=>{const t=Zw(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var _a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jw=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Kg=x.createContext({});function gN({children:e,size:t,color:n,strokeWidth:r,absoluteStrokeWidth:s,className:i}){const o=x.useMemo(()=>({size:t,color:n,strokeWidth:r,absoluteStrokeWidth:s,className:i}),[t,n,r,s,i]);return x.createElement(Kg.Provider,{value:o},e)}const ek=()=>x.useContext(Kg),tk=x.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},u)=>{const{size:c=24,strokeWidth:d=2,absoluteStrokeWidth:f=!1,color:h="currentColor",className:p=""}=ek()??{},w=r??f?Number(n??d)*24/Number(t??c):n??d;return x.createElement("svg",{ref:u,..._a,width:t??c??_a.width,height:t??c??_a.height,stroke:e??h,strokeWidth:w,className:Gg("lucide",p,s),...!i&&!Jw(a)&&{"aria-hidden":"true"},...a},[...o.map(([v,k])=>x.createElement(v,k)),...Array.isArray(i)?i:[i]])});/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const G=(e,t)=>{const n=x.forwardRef(({className:r,...s},i)=>x.createElement(tk,{ref:i,iconNode:t,className:Gg(`lucide-${Qw(_f(e))}`,`lucide-${e}`,r),...s}));return n.displayName=_f(e),n};/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const nk=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],rk=G("boxes",nk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sk=[["path",{d:"m21 8-2 2-1.5-3.7A2 2 0 0 0 15.646 5H8.4a2 2 0 0 0-1.903 1.257L5 10 3 8",key:"1imjwt"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 14h.01",key:"7oqj8z"}],["rect",{width:"18",height:"8",x:"3",y:"10",rx:"2",key:"a7itu8"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]],ik=G("car-front",sk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ok=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Xg=G("car",ok);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ak=[["path",{d:"M18 19V9a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v8a2 2 0 0 0 2 2h2",key:"19jm3t"}],["path",{d:"M2 9h3a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H2",key:"13hakp"}],["path",{d:"M22 17v1a1 1 0 0 1-1 1H10v-9a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v9",key:"1crci8"}],["circle",{cx:"8",cy:"19",r:"2",key:"t8fc5s"}]],lk=G("caravan",ak);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uk=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ck=G("check",uk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dk=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fk=G("chevron-down",dk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hk=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],mk=G("chevron-left",hk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],gk=G("chevron-right",pk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xk=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],yk=G("chevron-up",xk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vk=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],wk=G("circle-play",vk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Yg=G("clock",kk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bk=[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]],Sk=G("cog",bk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jk=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Pk=G("download",jk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Tk=[["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"}]],Ck=G("external-link",Tk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ek=[["path",{d:"M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5",key:"4pqfef"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 12v-1",key:"1ej8lb"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M8 7V6",key:"1nbb54"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]],Nk=G("file-archive",Ek);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _k=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]],Mk=G("file-image",_k);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Lk=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z",key:"1tzo1f"}]],Ak=G("file-play",Lk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Dk=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Mf=G("file-text",Dk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Rk=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],Ik=G("flame",Rk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Vk=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Ok=G("layout-dashboard",Vk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fk=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],zk=G("lightbulb",Fk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Bk=[["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"}]],$k=G("lock",Bk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Hk=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],Wk=G("log-in",Hk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Uk=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Lf=G("mail",Uk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gk=[["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"}]],qg=G("map-pin",Gk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Kk=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Xk=G("message-circle",Kk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yk=[["rect",{x:"5",y:"2",width:"14",height:"20",rx:"7",key:"11ol66"}],["path",{d:"M12 6v4",key:"16clxf"}]],qk=G("mouse",Yk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qk=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],Zk=G("music",Qk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jk=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],eb=G("navigation",Jk);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const tb=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],nb=G("package",tb);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rb=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],yo=G("phone",rb);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sb=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],ib=G("send",sb);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ob=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],ab=G("shield-alert",ob);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lb=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],ub=G("shopping-bag",lb);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cb=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],db=G("thumbs-up",cb);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fb=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],hb=G("user",fb);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mb=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],pb=G("video",mb);/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gb=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],xb=G("zap",gb),Qg=x.createContext(null);function yb(){const e=new Date,t=e.getHours()+e.getMinutes()/60;return t>=6.5&&t<21?"light":"dark"}function vb({children:e}){const[t,n]=x.useState(()=>{const s=localStorage.getItem("hifi-theme");return s==="light"||s==="dark"?s:yb()});x.useEffect(()=>{document.documentElement.classList.toggle("dark",t==="dark"),localStorage.setItem("hifi-theme",t)},[t]);const r=()=>n(s=>s==="dark"?"light":"dark");return l.jsx(Qg.Provider,{value:{theme:t,toggleTheme:r},children:e})}function wb(){return x.useContext(Qg)}const kb={nav:{openMenu:"Menü öffnen",closeMenu:"Menü schließen",close:"Schließen",adminPanel:"Zum Admin-Panel",vehicles:"Fahrzeuge",services:"Leistungen",gallery:"Galerie",contact:"Kontakt",whatsapp:"WhatsApp",shop:"Zum Shop",downloads:"Downloads"},themeToggle:{label:"Theme umschalten"},languageToggle:{label:"Sprache auswählen"},footer:{routePlan:"Route planen",contactHeading:"Kontakt",contactForm:"Kontaktformular",hoursHeading:"Öffnungszeiten",open:"Geöffnet",closed:"Geschlossen",days:{monFri:"Montag – Freitag",sat:"Samstag",sun:"Sonntag"},copyright:e=>`© ${e} HifiPlanet. Alle Angaben ohne Gewähr.`,imprint:"Impressum",privacy:"Datenschutz",terms:"AGB",downloads:"Downloads",cookieSettings:"Cookie-Einstellungen"},cookieConsent:{bannerText:"Wir verwenden nur technisch notwendige Cookies. Für Google Maps, YouTube-Videos und Statistik-Cookies benötigen wir zusätzlich deine Zustimmung, da dabei Daten an Google übertragen werden.",moreInfo:"Mehr dazu in unserer",privacyPolicy:"Datenschutzerklärung",settings:"Einstellungen",onlyNecessary:"Nur notwendige",acceptAll:"Alle akzeptieren",modalTitle:"Cookie-Einstellungen",modalIntro:"Lege fest, welche Kategorien du zulassen möchtest. Mehr dazu in unserer",necessaryTitle:"Notwendig",necessaryDesc:"Für den Betrieb der Website erforderlich (z. B. Login-Session, Theme- und Cookie-Einstellung). Kann nicht deaktiviert werden.",externalTitle:"Externe Medien",externalDesc:"Google Maps und YouTube-Videos. Beim Laden werden Daten (u. a. deine IP-Adresse) an Google übertragen.",analyticsTitle:"Statistik",analyticsDesc:"Google Analytics hilft uns zu verstehen, wie die Website genutzt wird. Dabei werden Daten an Google übertragen.",cancel:"Abbrechen",saveSelection:"Auswahl speichern"},maintenance:{title:"Wartungsarbeiten",defaultMessage:"Dieser Bereich wird gerade aktualisiert. Bitte schau in Kürze wieder vorbei.",login:"Anmelden"},lightbox:{close:"Schließen",previous:"Vorheriges Bild",next:"Nächstes Bild"},home:{metaTitle:"Car-Hifi Umbauten nach Maß",metaDescription:"HifiPlanet – dein Car-Hifi Spezialist in Amorbach. Marke und Modell wählen, passende Sound-Pakete entdecken und unverbindlich anfragen.",stickyCta:"Bereit für deinen Sound-Umbau?",selectVehicle:"Fahrzeug auswählen",getInTouch:"Kontakt aufnehmen",welcome:"Willkommen bei HifiPlanet",heroTitle:"Home of pure Sound",heroSubtitle:"Dein Car-Hifi Spezialist für individuelle Sound-Umbauten. Wähle dein Fahrzeug, entdecke passende Pakete und frag unverbindlich an – wir kümmern uns um den Rest.",stats:[{value:"20+",label:"Jahre Erfahrung"},{value:"Riesige",label:"3D-Druckfarm im eigenen Haus"},{value:"Eigene",label:"CNC- & Laserwerkstatt"},{value:"International",label:"anerkannter Car-Hifi-Spezialist"}],brandsHeading:"Marken, mit denen wir arbeiten",youtubeBadge:"HifiPlanet präsentiert",youtubeTitle:"Das Handwerk hinter deinem Sound",youtubeText:"Entdecke die Handwerkskunst hinter unserer Arbeit",youtubeCta:"Jetzt ansehen",heroImageAlt:"Ground Zero Subwoofer und Endstufen mit violetter Ambiente-Beleuchtung",craftImageAlt:"Individueller Subwoofer-Bau",adviceImageAlt:"Endstufen-Einbau mit Ambiente-Beleuchtung",moreImageAlt:"Hochwertige Endstufe und Subwoofer, Studioaufnahme",craftEyebrow:"Handwerk",craftTitle:"Präzisionsarbeit in jedem Detail",craftText:"Ob eigens gefertigte Subwoofer-Gehäuse, integrierte Beleuchtung oder unsichtbar verlegte Kabelwege – dank eigener CNC-, Laser- und 3D-Druck-Fertigung entstehen bei uns Lösungen, die es von der Stange nicht gibt.",adviceEyebrow:"Beratung",adviceTitle:"Von der ersten Idee bis zum letzten Schliff",adviceText:"Jedes Fahrzeug und jeder Anspruch ist anders. Deshalb beraten wir dich persönlich und unverbindlich – vom dezenten Upgrade bis zum kompromisslosen High-End-System.",insightsTitle:"Einblicke in unsere Umbauten",insightsText:"Vom unauffälligen Sound-Upgrade bis zum aufwendigen Komplettumbau – Handarbeit aus unserer Werkstatt in Amorbach.",galleryAlts:["Individueller Subwoofer-Bau mit Ground Zero Bässen","Endstufen-Einbau mit violetter Ambiente-Beleuchtung","Hochtöner- und Mitteltöner-Einbau von Focal Utopia","Sony Navigationssystem mit Apple CarPlay im Cockpit","Verbauter Hochtöner im Kofferraum","Individueller Subwoofer-Einbau mit LED-Beleuchtung im Kofferraum"],reviewsRating:"5,0 von 181 Kunden bewertet",reviewsRatingDynamic:(e,t)=>`${e.toFixed(1).replace(".",",")} von ${t} Kunden bewertet`,reviewsText:"Das sagen unsere Kunden über uns.",reviewsLink:"Alle Bewertungen auf Google ansehen →",testimonials:[{name:"Thomas K.",text:"Über YouTube auf dieses Klang-Juwel gestoßen. Beratung und Empfehlungen sind erstklassig – der Tesla-Vorführwagen hat meine Leidenschaft für guten Sound neu entfacht."},{name:"Andreas I.",text:"Sehr professionelle Beratung und Service. Obwohl ich von VAG zu Mercedes gewechselt bin, wurde alles reibungslos angepasst. Die 3-Wege-Lautsprecher und zwei Subwoofer liefern außergewöhnliche Leistung."},{name:"Thomas F.",text:"Kompletter Audi A4 B9 Umbau hat meine Erwartungen übertroffen. Von Anfang bis Ende professionell, mit tadelloser Verarbeitung und Klangqualität."},{name:"Drago G.",text:"Beeindruckt von der CNC-Arbeit, die auf YouTube gezeigt wird. Angefangen mit 3D-gedruckten Lautsprecherringen für meinen Ford Mustang – daraus wurde ein viel größeres Projekt."},{name:"Leonardo B.",text:"Toller Service und meisterhafte Handwerkskunst. Saubere Installation, Leidenschaft in jedem Detail erkennbar."},{name:"Marcel S.",text:"Unschlagbares Preis-Leistungs-Verhältnis. Das Team hat sich viel Zeit genommen, um genau die Lösung für mein Budget zu finden."},{name:"Julia W.",text:"Endlich ein Betrieb, der auch Wohnmobile ernst nimmt. Die Soundanlage in unserem Camper klingt jetzt wie im Wohnzimmer."},{name:"Kevin R.",text:"Dashcam und Alarmanlage in einem Termin sauber verbaut, keine sichtbaren Kabel. Absolute Empfehlung für alle, die Wert auf Verarbeitung legen."},{name:"Sabrina H.",text:"Mein Oldtimer hat jetzt modernen Sound, ohne dass es dem Original-Look geschadet hätte. Genau das habe ich gesucht."},{name:"Niklas P.",text:"Von der ersten Anfrage bis zum fertigen Umbau lief alles reibungslos. Ehrliche Beratung ohne Verkaufsdruck."}],moreTitle:"Mehr als nur Car-Hifi",moreText:"Neben individuellen Sound-Umbauten bieten wir CNC-Zerspanung, Lasertechnik, 3D-Druck und mehr – alles aus einer Hand in unserer eigenen Werkstatt.",moreCta:"Alle Leistungen entdecken",faqHeading:"Häufig gestellte Fragen"},vehicleSelect:{metaTitle:"Fahrzeug auswählen",metaDescription:"Wähle deine Fahrzeugmarke und dein Modell und entdecke passende Car-Hifi Sound-Pakete von HifiPlanet.",title:"Fahrzeug auswählen",intro:"Wähle zuerst deine Marke, dann dein Modell – wir zeigen dir direkt die passenden Sound-Pakete.",empty:"Es sind noch keine Marken hinterlegt."},brandPage:{metaTitleFallback:"Modell auswählen",metaDescription:e=>`Wähle dein ${e} Modell und entdecke passende Car-Hifi Sound-Pakete von HifiPlanet.`,loading:"Lädt…",breadcrumbVehicles:"Fahrzeuge",titleSuffix:"Modell wählen",empty:"Für diese Marke sind noch keine Modelle hinterlegt."},modelPage:{metaTitleFallback:"Sound-Pakete",metaTitle:(e,t)=>`${e} ${t} Sound-Pakete`,metaDescription:(e,t)=>`Car-Hifi Sound-Pakete für ${e} ${t} inkl. aktueller Preise – von HifiPlanet unverbindlich anfragen.`,loading:"Lädt…",breadcrumbVehicles:"Fahrzeuge",titleSuffix:"Sound-Pakete",empty:"Für dieses Modell sind noch keine Pakete hinterlegt.",totalPrice:"ab ca.",productLoading:"Produkt wird geladen…",requestContact:"Kontakt anfragen",badges:{recommended:"Empfohlen",popular:"Am beliebtesten",tip:"Tipp",coming_soon:"Coming soon"},videoLink:"Zum Video",moreBullets:e=>e===1?"+ 1 weitere Leistung":`+ ${e} weitere Leistungen`,showMore:"Mehr anzeigen",lessBullets:"Weniger anzeigen",wheelHint:"Mit dem Mausrad blättern"},leistungen:{metaTitle:"Leistungen",metaDescription:"Car-Hifi, Wohnmobil & Caravan, Oldtimer, CNC-Zerspanung, Lasertechnik, 3D-Druck, Alarmanlagen und Dash Cams – alles aus einer Hand bei HifiPlanet in Amorbach.",title:"Unsere Leistungen",intro:"Von individuellen Sound-Umbauten bis zur eigenen CNC- und 3D-Druck-Fertigung – alles aus einer Hand in unserer Werkstatt in Amorbach.",notListedTitle:"Dein Projekt ist nicht dabei?",notListedText:"Sprich uns einfach an – wir finden gemeinsam die passende Lösung.",contact:"Kontakt aufnehmen"},contactPage:{metaTitle:"Kontakt",metaDescription:"Kontaktiere HifiPlanet in Amorbach für dein individuelles Car-Hifi Projekt – wir beraten dich gerne unverbindlich.",title:"Kontakt aufnehmen",heroEyebrow:"Kontakt",heroTitlePre:"Sprich",heroTitleAccent:"mit",heroTitlePost:"uns.",heroSubtitle:"Ob Anlage, Einbau oder Klang-Tuning für dein Fahrzeug — schreib uns, wir melden uns schnellstmöglich zurück.",packageBoxTitle:"Deine Anfrage bezieht sich auf",formTitle:"Anfrage senden",sentTitle:"Anfrage gesendet ✓",sentText:"Danke! Wir melden uns innerhalb eines Werktags bei dir.",contextIntro:"Deine Anfrage bezieht sich auf:",contextBrand:"Marke",contextModel:"Modell",contextPackage:"Paket",contextProduct:"Produkt",packagePrice:"Paketpreis",upgrades:"Upgrades",optionalUpgrades:"Optionale Upgrades",totalWithUpgrades:"Gesamt inkl. Upgrades",nameLabel:"Name *",namePlaceholder:"Max Mustermann",emailLabel:"E-Mail *",emailPlaceholder:"max@mail.de",phoneLabel:"Telefon",phonePlaceholder:"Optional",vinLabel:"Fahrgestellnummer (FIN)",vinPlaceholder:"Optional – hilft bei der Einschätzung",messageLabel:"Nachricht",messagePlaceholder:"Erzähl uns von deinem Projekt – Fahrzeug, Wunschklang, Budget …",requiredHint:"* Pflichtfelder",sending:"Wird gesendet…",submit:"Anfrage senden",cardTitle:"HiFi Planet Amorbach",address:"Adresse",phone:"Telefon",email:"E-Mail",hours:"Öffnungszeiten",hoursWeek:"Mo–Fr: 9:00–18:00 Uhr",hoursSat:"Sa: 10:00–13:00 Uhr",hoursWeekDays:"Mo–Fr",hoursWeekTime:"9:00 – 18:00 Uhr",hoursSatDay:"Sa",hoursSatTime:"10:00 – 13:00 Uhr",directionsTitle:"Anfahrt",mapEmbedName:"Die Google-Maps-Karte",mapOpenChip:"In Maps öffnen",routePlan:"Route planen",featurePremiumTitle:"Premium Klang",featurePremiumSub:"Höchste Qualität",featureGermanyTitle:"Made in Germany",featureGermanySub:"Präzise Handarbeit",featureIndividualTitle:"Individuell",featureIndividualSub:"Maßgeschneiderte Lösungen",featureExpertsTitle:"Experten Team",featureExpertsSub:"Leidenschaft & Know-how"},galleryOverview:{metaTitle:"Bildergalerie",metaDescription:"Einblicke in unsere Car-Hifi Umbauten – nach Marke sortiert. Wähle eine Marke und entdecke die Projekte.",title:"Bildergalerie",intro:"Wähle eine Marke und entdecke unsere Umbauten im Detail.",loading:"Lädt…",empty:"Es sind noch keine Galerie-Marken hinterlegt."},galleryBrandPage:{metaTitleFallback:"Bildergalerie",metaTitle:e=>`${e} Umbauten`,metaDescription:e=>`Einblicke in unsere ${e} Car-Hifi Umbauten.`,loading:"Lädt…",breadcrumbGallery:"Galerie",titleSuffix:"Projekt wählen",empty:"Für diese Marke sind noch keine Projekte hinterlegt."},galleryProjectPage:{metaTitleFallback:"Bildergalerie",metaDescription:e=>`Fotos unseres ${e} Umbaus.`,loading:"Lädt…",breadcrumbGallery:"Galerie",empty:"Für dieses Projekt sind noch keine Fotos hinterlegt.",enlargeImage:"Bild vergrößern"},downloadsPage:{metaTitle:"Downloads",metaDescription:"Dateien und Songs von HifiPlanet zum Anhören und Herunterladen.",title:"Downloads",intro:"Hier stellen wir dir Dateien und Songs bereit – direkt anhören oder herunterladen.",loading:"Lädt…",empty:"Aktuell stehen keine Downloads bereit.",download:"Herunterladen",lockedTitle:"Geschützter Bereich",lockedText:"Bitte gib das Passwort ein, das du von uns bekommen hast.",passwordLabel:"Passwort",unlock:"Freischalten",unlocking:"Wird geprüft…",wrongPassword:"Das Passwort stimmt leider nicht."}},bb={nav:{openMenu:"Open menu",closeMenu:"Close menu",close:"Close",adminPanel:"Go to admin panel",vehicles:"Vehicles",services:"Services",gallery:"Gallery",contact:"Contact",whatsapp:"WhatsApp",shop:"Visit shop",downloads:"Downloads"},themeToggle:{label:"Toggle theme"},languageToggle:{label:"Select language"},footer:{routePlan:"Get directions",contactHeading:"Contact",contactForm:"Contact form",hoursHeading:"Opening hours",open:"Open",closed:"Closed",days:{monFri:"Monday – Friday",sat:"Saturday",sun:"Sunday"},copyright:e=>`© ${e} HifiPlanet. All information without guarantee.`,imprint:"Legal notice",privacy:"Privacy",terms:"Terms",downloads:"Downloads",cookieSettings:"Cookie settings"},cookieConsent:{bannerText:"We only use technically necessary cookies. For Google Maps, YouTube videos and analytics cookies we need your additional consent, since data is transferred to Google in that case.",moreInfo:"More details in our",privacyPolicy:"privacy policy",settings:"Settings",onlyNecessary:"Necessary only",acceptAll:"Accept all",modalTitle:"Cookie settings",modalIntro:"Choose which categories you want to allow. More details in our",necessaryTitle:"Necessary",necessaryDesc:"Required to operate the website (e.g. login session, theme and cookie preference). Cannot be disabled.",externalTitle:"External media",externalDesc:"Google Maps and YouTube videos. Loading them transfers data (including your IP address) to Google.",analyticsTitle:"Analytics",analyticsDesc:"Google Analytics helps us understand how the website is used. This transfers data to Google.",cancel:"Cancel",saveSelection:"Save selection"},maintenance:{title:"Under maintenance",defaultMessage:"This area is currently being updated. Please check back shortly.",login:"Log in"},lightbox:{close:"Close",previous:"Previous image",next:"Next image"},home:{metaTitle:"Custom Car-Hifi Installations",metaDescription:"HifiPlanet – your car-hifi specialist in Amorbach, Germany. Choose your make and model, discover matching sound packages and get in touch, no obligation.",stickyCta:"Ready for your sound upgrade?",selectVehicle:"Select vehicle",getInTouch:"Get in touch",welcome:"Welcome to HifiPlanet",heroTitle:"Home of pure Sound",heroSubtitle:"Your car-hifi specialist for custom sound installations. Choose your vehicle, discover the right package and get in touch, no obligation – we take care of the rest.",stats:[{value:"20+",label:"years of experience"},{value:"Huge",label:"in-house 3D print farm"},{value:"In-house",label:"CNC & laser workshop"},{value:"International",label:"recognized car-hifi specialist"}],brandsHeading:"Brands we work with",youtubeBadge:"HifiPlanet presents",youtubeTitle:"The craft behind your sound",youtubeText:"Discover the artistry behind our work",youtubeCta:"Watch now",heroImageAlt:"Ground Zero subwoofer and amplifiers with purple ambient lighting",craftImageAlt:"Custom subwoofer build",adviceImageAlt:"Amplifier installation with ambient lighting",moreImageAlt:"High-end amplifier and subwoofer, studio shot",craftEyebrow:"Craftsmanship",craftTitle:"Precision work in every detail",craftText:"Whether custom-built subwoofer enclosures, integrated lighting or invisibly routed cabling – our own CNC, laser and 3D-printing production means we can build solutions you simply can't buy off the shelf.",adviceEyebrow:"Consultation",adviceTitle:"From the first idea to the final touch",adviceText:"Every vehicle and every requirement is different. That's why we advise you personally and without obligation – from a subtle upgrade to an uncompromising high-end system.",insightsTitle:"A look at our installations",insightsText:"From subtle sound upgrades to elaborate full installations – handcrafted in our workshop in Amorbach.",galleryAlts:["Custom subwoofer build with Ground Zero bass drivers","Amplifier installation with purple ambient lighting","Tweeter and midrange installation by Focal Utopia","Sony navigation system with Apple CarPlay in the cockpit","Installed tweeter in the trunk","Custom subwoofer installation with LED lighting in the trunk"],reviewsRating:"Rated 5.0 by 181 customers",reviewsRatingDynamic:(e,t)=>`Rated ${e.toFixed(1)} by ${t} customers`,reviewsText:"Here's what our customers say about us.",reviewsLink:"See all reviews on Google →",testimonials:[{name:"Thomas K.",text:"Found this gem through YouTube. Advice and recommendations are top-notch – the Tesla demo car reignited my passion for great sound."},{name:"Andreas I.",text:"Very professional advice and service. Even though I switched from VAG to Mercedes, everything was adapted smoothly. The 3-way speakers and two subwoofers deliver outstanding performance."},{name:"Thomas F.",text:"The complete Audi A4 B9 build exceeded my expectations. Professional from start to finish, with flawless workmanship and sound quality."},{name:"Drago G.",text:"Impressed by the CNC work shown on YouTube. Started with 3D-printed speaker rings for my Ford Mustang – it turned into a much bigger project."},{name:"Leonardo B.",text:"Great service and masterful craftsmanship. Clean installation, passion visible in every detail."},{name:"Marcel S.",text:"Unbeatable value for money. The team took a lot of time to find the exact solution for my budget."},{name:"Julia W.",text:"Finally a shop that takes motorhomes seriously too. The sound system in our camper now sounds like a living room."},{name:"Kevin R.",text:"Dash cam and alarm system installed cleanly in a single appointment, no visible cables. Highly recommended for anyone who values quality workmanship."},{name:"Sabrina H.",text:"My classic car now has modern sound without compromising the original look. Exactly what I was looking for."},{name:"Niklas P.",text:"From the first inquiry to the finished build, everything went smoothly. Honest advice with no sales pressure."}],moreTitle:"More than just car-hifi",moreText:"Besides custom sound installations, we also offer CNC machining, laser technology, 3D printing and more – all from a single source in our own workshop.",moreCta:"Discover all our services",faqHeading:"Frequently asked questions"},vehicleSelect:{metaTitle:"Select your vehicle",metaDescription:"Choose your vehicle make and model and discover matching car-hifi sound packages from HifiPlanet.",title:"Select your vehicle",intro:"Choose your make first, then your model – we'll show you the matching sound packages right away.",empty:"No brands have been added yet."},brandPage:{metaTitleFallback:"Select a model",metaDescription:e=>`Choose your ${e} model and discover matching car-hifi sound packages from HifiPlanet.`,loading:"Loading…",breadcrumbVehicles:"Vehicles",titleSuffix:"Select a model",empty:"No models have been added for this brand yet."},modelPage:{metaTitleFallback:"Sound packages",metaTitle:(e,t)=>`${e} ${t} sound packages`,metaDescription:(e,t)=>`Car-hifi sound packages for the ${e} ${t} including current prices – get in touch with HifiPlanet, no obligation.`,loading:"Loading…",breadcrumbVehicles:"Vehicles",titleSuffix:"Sound packages",empty:"No packages have been added for this model yet.",totalPrice:"from approx.",productLoading:"Loading product…",requestContact:"Request contact",badges:{recommended:"Recommended",popular:"Most popular",tip:"Tip",coming_soon:"Coming soon"},videoLink:"Watch video",moreBullets:e=>e===1?"+ 1 more feature":`+ ${e} more features`,showMore:"Show more",lessBullets:"Show less",wheelHint:"Scroll to browse"},leistungen:{metaTitle:"Services",metaDescription:"Car-hifi, motorhomes & caravans, classic cars, CNC machining, laser technology, 3D printing, alarm systems and dash cams – all from a single source at HifiPlanet in Amorbach.",title:"Our services",intro:"From custom sound installations to our own CNC and 3D-printing production – all from a single source in our workshop in Amorbach.",notListedTitle:"Don't see your project?",notListedText:"Just get in touch – we'll find the right solution together.",contact:"Get in touch"},contactPage:{metaTitle:"Contact",metaDescription:"Get in touch with HifiPlanet in Amorbach for your custom car-hifi project – we're happy to advise you, no obligation.",title:"Get in touch",heroEyebrow:"Contact",heroTitlePre:"Talk",heroTitleAccent:"to",heroTitlePost:"us.",heroSubtitle:"Whether it's a system, installation, or sound tuning for your car — write to us, we'll get back to you as soon as possible.",packageBoxTitle:"Your inquiry relates to",formTitle:"Send inquiry",sentTitle:"Inquiry sent ✓",sentText:"Thanks! We'll get back to you within one business day.",contextIntro:"Your inquiry relates to:",contextBrand:"Brand",contextModel:"Model",contextPackage:"Package",contextProduct:"Product",packagePrice:"Package price",upgrades:"Upgrades",optionalUpgrades:"Optional upgrades",totalWithUpgrades:"Total incl. upgrades",nameLabel:"Name *",namePlaceholder:"Max Mustermann",emailLabel:"Email *",emailPlaceholder:"max@mail.de",phoneLabel:"Phone",phonePlaceholder:"Optional",vinLabel:"Vehicle identification number (VIN)",vinPlaceholder:"Optional – helps us assess your vehicle",messageLabel:"Message",messagePlaceholder:"Tell us about your project – vehicle, desired sound, budget …",requiredHint:"* Required fields",sending:"Sending…",submit:"Send inquiry",cardTitle:"HiFi Planet Amorbach",address:"Address",phone:"Phone",email:"Email",hours:"Opening hours",hoursWeek:"Mon–Fri: 9:00 AM–6:00 PM",hoursSat:"Sat: 10:00 AM–1:00 PM",hoursWeekDays:"Mon–Fri",hoursWeekTime:"9:00 AM – 6:00 PM",hoursSatDay:"Sat",hoursSatTime:"10:00 AM – 1:00 PM",directionsTitle:"Directions",mapEmbedName:"The Google Maps map",mapOpenChip:"Open in Maps",routePlan:"Get directions",featurePremiumTitle:"Premium Sound",featurePremiumSub:"Highest quality",featureGermanyTitle:"Made in Germany",featureGermanySub:"Precision craftsmanship",featureIndividualTitle:"Custom-built",featureIndividualSub:"Tailored solutions",featureExpertsTitle:"Expert Team",featureExpertsSub:"Passion & know-how"},galleryOverview:{metaTitle:"Photo gallery",metaDescription:"A look at our car-hifi installations – sorted by brand. Choose a brand and explore the projects.",title:"Photo gallery",intro:"Choose a brand and explore our installations in detail.",loading:"Loading…",empty:"No gallery brands have been added yet."},galleryBrandPage:{metaTitleFallback:"Photo gallery",metaTitle:e=>`${e} installations`,metaDescription:e=>`A look at our ${e} car-hifi installations.`,loading:"Loading…",breadcrumbGallery:"Gallery",titleSuffix:"Select a project",empty:"No projects have been added for this brand yet."},galleryProjectPage:{metaTitleFallback:"Photo gallery",metaDescription:e=>`Photos of our ${e} installation.`,loading:"Loading…",breadcrumbGallery:"Gallery",empty:"No photos have been added for this project yet.",enlargeImage:"Enlarge image"},downloadsPage:{metaTitle:"Downloads",metaDescription:"Files and songs from HifiPlanet to listen to and download.",title:"Downloads",intro:"Here you will find files and songs we provide for you – listen right here or download them.",loading:"Loading…",empty:"There are no downloads available right now.",download:"Download",lockedTitle:"Protected area",lockedText:"Please enter the password you received from us.",passwordLabel:"Password",unlock:"Unlock",unlocking:"Checking…",wrongPassword:"Sorry, that password is not correct."}},Ii={de:kb,en:bb};function Sb(){const e=localStorage.getItem("hifi-lang");return e==="de"||e==="en"?e:(navigator.language||"de").toLowerCase().startsWith("de")?"de":"en"}function eu(e,t){return t.split(".").reduce((n,r)=>n==null?void 0:n[r],e)}const Zg=x.createContext({language:"de",setLanguage:()=>{},toggleLanguage:()=>{},t:e=>{const t=eu(Ii.de,e);return t!==void 0?t:e}});function Af({children:e}){const[t,n]=x.useState(Sb);x.useEffect(()=>{document.documentElement.setAttribute("lang",t),localStorage.setItem("hifi-lang",t)},[t]);const r=()=>n(i=>i==="de"?"en":"de"),s=i=>{const o=Ii[t]||Ii.de,a=eu(o,i);if(a!==void 0)return a;const u=eu(Ii.de,i);return u!==void 0?u:i};return l.jsx(Zg.Provider,{value:{language:t,setLanguage:n,toggleLanguage:r,t:s},children:e})}function Ce(){return x.useContext(Zg)}function Jg({overHero:e=!1,forceDark:t=!1}){const{theme:n,toggleTheme:r}=wb(),{t:s}=Ce();return l.jsx("button",{onClick:r,"aria-label":s("themeToggle.label"),className:`rounded-full p-2 transition ${e?"text-white hover:bg-white/10":t?"text-neutral-300 hover:bg-neutral-800":"text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:n==="dark"?l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-5 w-5",children:l.jsx("path",{d:"M12 3a1 1 0 011 1v1a1 1 0 11-2 0V4a1 1 0 011-1zm0 15a5 5 0 100-10 5 5 0 000 10zm9-6a1 1 0 010 2h-1a1 1 0 110-2h1zM4 12a1 1 0 010 2H3a1 1 0 110-2h1zm14.36-7.36a1 1 0 011.42 1.42l-.71.7a1 1 0 11-1.41-1.4l.7-.72zM5.64 18.36a1 1 0 011.41 1.41l-.7.71a1 1 0 11-1.42-1.41l.71-.71zm12.72 0l.71.7a1 1 0 11-1.41 1.42l-.71-.71a1 1 0 011.41-1.41zM6.34 5.64l-.7-.7A1 1 0 117.05 3.5l.7.71A1 1 0 016.34 5.64zM12 6a1 1 0 011-1v0a1 1 0 01-1 1zm0 12a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1z"})}):l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-5 w-5",children:l.jsx("path",{fillRule:"evenodd",d:"M9.53 2.25a.75.75 0 01.19.82 8.25 8.25 0 0011.03 11.03.75.75 0 011.01.99A10.5 10.5 0 1112.9 2.1a.75.75 0 011.63-.85z",clipRule:"evenodd"})})})}const e0=x.createContext(null);function jb({children:e}){const[t,n]=x.useState(null),[r,s]=x.useState(!0);x.useEffect(()=>{Z.get("/auth/me").then(d=>n(d.authenticated===!1?null:d)).catch(()=>n(null)).finally(()=>s(!1))},[]);const i=async(d,f)=>{const h=await Z.post("/auth/login",{username:d,password:f});return h.requires_2fa?{requires2fa:!0}:(n(h),{requires2fa:!1})},o=async d=>{const f=await Z.post("/auth/verify-2fa",{code:d});n(f)},a=async()=>{await Z.post("/auth/logout",{}),n(null)},u=async()=>{const d=await Z.get("/auth/me");n(d.authenticated===!1?null:d)},c=d=>{var f;return!!t&&(t.is_super_admin||((f=t.permissions)==null?void 0:f.includes(d)))};return l.jsx(e0.Provider,{value:{user:t,loading:r,login:i,verifyTwoFactor:o,logout:a,refreshUser:u,hasPermission:c},children:e})}function Hs(){return x.useContext(e0)}const t0=x.createContext({phone:"09373 20 62 390",whatsapp:null,contact_email:"info@hifi-planet-amorbach.de",address_street:"Boxbrunner Str. 20a",address_zip:"63916",address_city:"Amorbach",logo_path:null,logo_dark_path:null,business_hours:null,hero_image_path:null,ga_measurement_id:null,gallery_card_text_x:0,gallery_card_text_y:100,site_font:null,page_loader_enabled:1,package_card_width:210,package_card_height:480,vehicle_tile_width:240,vehicle_tile_height:180}),Pb=t0.Provider;function Pt(){return x.useContext(t0)}const tu="/assets/logo-dark-R-ckaBhx.png",Tb="https://www.audio4cars.de/",Df=e=>(e||"").replace(/[^\d+]/g,""),Rf=70,Cb=500;function Eb({className:e}){return l.jsxs("svg",{viewBox:"0 0 3 2",className:e,"aria-hidden":"true",children:[l.jsx("rect",{width:"3",height:"0.667",y:"0",fill:"#000"}),l.jsx("rect",{width:"3",height:"0.667",y:"0.667",fill:"#D00"}),l.jsx("rect",{width:"3",height:"0.666",y:"1.334",fill:"#FFCE00"})]})}function Nb({className:e}){return l.jsxs("svg",{viewBox:"0 0 60 30",className:e,"aria-hidden":"true",children:[l.jsx("clipPath",{id:"fgb-t",children:l.jsx("path",{d:"M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z"})}),l.jsx("path",{d:"M0,0 v30 h60 v-30 z",fill:"#00247d"}),l.jsx("path",{d:"M0,0 L60,30 M60,0 L0,30",stroke:"#fff",strokeWidth:"6"}),l.jsx("path",{d:"M0,0 L60,30 M60,0 L0,30",clipPath:"url(#fgb-t)",stroke:"#cf142b",strokeWidth:"4"}),l.jsx("path",{d:"M30,0 v30 M0,15 h60",stroke:"#fff",strokeWidth:"10"}),l.jsx("path",{d:"M30,0 v30 M0,15 h60",stroke:"#cf142b",strokeWidth:"6"})]})}const Ma=[{code:"de",label:"Deutsch",Flag:Eb},{code:"en",label:"English",Flag:Nb}];function _b({overHero:e=!1}){const{language:t,setLanguage:n,t:r}=Ce(),[s,i]=x.useState(!1),o=x.useRef(null),a=Ma.find(u=>u.code===t)||Ma[0];return x.useEffect(()=>{if(!s)return;const u=d=>{o.current&&!o.current.contains(d.target)&&i(!1)},c=d=>{d.key==="Escape"&&i(!1)};return document.addEventListener("mousedown",u),document.addEventListener("keydown",c),()=>{document.removeEventListener("mousedown",u),document.removeEventListener("keydown",c)}},[s]),l.jsxs("div",{className:"relative",ref:o,children:[l.jsxs("button",{type:"button",onClick:()=>i(u=>!u),"aria-haspopup":"listbox","aria-expanded":s,"aria-label":r("languageToggle.label"),className:`flex items-center gap-1 rounded-full p-1.5 transition ${e?"hover:bg-white/10":"hover:bg-neutral-800"}`,children:[l.jsx("span",{className:`block h-4 w-6 shrink-0 overflow-hidden rounded-[3px] ring-1 ${e?"ring-white/50":"ring-neutral-600"}`,children:l.jsx(a.Flag,{className:"h-full w-full"})}),l.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",className:`h-3 w-3 transition-transform ${e?"text-white/70":"text-neutral-400"} ${s?"rotate-180":""}`,children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z"})})]}),s&&l.jsx("div",{role:"listbox",className:"absolute right-0 z-50 mt-2 min-w-[9rem] overflow-hidden rounded-lg border border-neutral-700 bg-neutral-900 py-1 shadow-lg",children:Ma.map(u=>l.jsxs("button",{type:"button",role:"option","aria-selected":u.code===t,onClick:()=>{n(u.code),i(!1)},className:`flex w-full items-center gap-2 px-3 py-2 text-left text-sm transition hover:bg-neutral-800 ${u.code===t?"font-semibold text-brand-400":"text-neutral-200"}`,children:[l.jsx("span",{className:"block h-4 w-6 shrink-0 overflow-hidden rounded-[3px] ring-1 ring-neutral-600",children:l.jsx(u.Flag,{className:"h-full w-full"})}),u.label]},u.code))})]})}function Mb(){const[e,t]=x.useState(!1),[n,r]=x.useState(!1),[s,i]=x.useState(!1),{user:o}=Hs(),{phone:a,whatsapp:u,logo_dark_path:c,has_downloads:d}=Pt(),{t:f}=Ce(),h=6+(d?1:0)+(a?1:0)+(u?1:0),w=rt().pathname==="/",[v,k]=x.useState(!w);x.useEffect(()=>{if(!w){k(!0);return}const S=()=>k(window.scrollY>24);return S(),window.addEventListener("scroll",S,{passive:!0}),()=>window.removeEventListener("scroll",S)},[w]);const g=w&&!v;x.useEffect(()=>{if(e){r(!0);let L;const N=requestAnimationFrame(()=>{L=requestAnimationFrame(()=>i(!0))});return()=>{cancelAnimationFrame(N),L&&cancelAnimationFrame(L)}}i(!1);const S=Cb+(h-1)*Rf,j=setTimeout(()=>r(!1),S);return()=>clearTimeout(j)},[e,h]);const m=()=>`transition-all duration-500 ease-out ${s?"opacity-100":"opacity-0"}`,y=S=>({transitionDelay:`${(s?S:h-1-S)*Rf}ms`,transform:s?"translateY(0)":"translateY(-140px)"}),b=o&&l.jsx(U,{to:"/admin","aria-label":f("nav.adminPanel"),title:f("nav.adminPanel"),className:`rounded-full p-2 transition ${g?"text-white hover:bg-white/10":"text-neutral-300 hover:bg-neutral-800"}`,children:l.jsx(Ok,{className:"h-5 w-5"})});let P=0;const T=()=>y(P++);return l.jsxs("header",{className:`sticky top-0 z-30 border-b transition-colors duration-300 ${g?"border-transparent bg-transparent":"border-neutral-800 bg-neutral-950/90 backdrop-blur"}`,children:[l.jsxs("div",{className:"mx-auto grid max-w-6xl grid-cols-[1fr_auto_1fr] items-center gap-3 px-4 py-3 sm:px-6",children:[l.jsx("div",{className:"flex items-center justify-self-start",children:l.jsx("button",{onClick:()=>t(!0),"aria-label":f("nav.openMenu"),className:`rounded-md p-2 transition ${g?"text-white hover:bg-white/10":"text-neutral-300 hover:bg-neutral-800"}`,children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-6 w-6",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})})})}),l.jsx(U,{to:"/",className:"flex items-center justify-self-center rounded-lg px-2 py-1",children:l.jsx("img",{src:c||tu,alt:"HifiPlanet",className:"h-14 w-auto sm:h-16"})}),l.jsxs("div",{className:"flex items-center justify-self-end gap-1",children:[b,!e&&l.jsx(_b,{overHero:g}),l.jsx(Jg,{overHero:g,forceDark:!0})]})]}),n&&Go.createPortal(l.jsx("div",{className:"fixed inset-0 z-[100] overflow-y-auto text-left backdrop-blur-xl",style:{background:"linear-gradient(135deg, rgba(241,245,249,0.55) 0%, rgba(227,240,207,0.55) 50%, rgba(248,250,252,0.55) 100%)"},children:l.jsxs("div",{className:"relative mx-auto flex min-h-full max-w-6xl flex-col items-start justify-center gap-5 py-24 pl-6 pr-8 sm:pl-8",children:[l.jsxs("button",{onClick:()=>t(!1),"aria-label":f("nav.closeMenu"),className:"absolute left-6 top-8 flex items-center gap-2 text-neutral-600 hover:text-brand-600 sm:left-8 sm:top-[65px]",children:[l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-6 w-6",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6l12 12M18 6 6 18"})}),l.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide",children:f("nav.close")})]}),l.jsx(U,{to:"/fahrzeuge",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${m()}`,style:T(),children:f("nav.vehicles")}),l.jsx(U,{to:"/leistungen",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${m()}`,style:T(),children:f("nav.services")}),l.jsx(U,{to:"/galerie",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${m()}`,style:T(),children:f("nav.gallery")}),l.jsx(U,{to:"/kontakt",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${m()}`,style:T(),children:f("nav.contact")}),d&&l.jsx(U,{to:"/downloads",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${m()}`,style:T(),children:f("nav.downloads")}),l.jsx("div",{className:`h-px w-16 bg-brand-500/60 ${m()}`,style:T()}),a&&l.jsxs("a",{href:`tel:${Df(a)}`,className:`flex items-center gap-2 text-sm font-semibold uppercase tracking-wide text-neutral-600 hover:text-brand-600 ${m()}`,style:T(),children:[l.jsx(yo,{className:"h-4 w-4"}),a]}),u&&l.jsxs("a",{href:`https://wa.me/${Df(u).replace(/^0/,"49").replace("+","")}`,target:"_blank",rel:"noopener noreferrer",className:`flex items-center gap-2 text-sm font-semibold uppercase tracking-wide text-neutral-600 hover:text-brand-600 ${m()}`,style:T(),children:[l.jsx(Xk,{className:"h-4 w-4"}),f("nav.whatsapp")]}),l.jsxs("a",{href:Tb,target:"_blank",rel:"noopener noreferrer",className:`flex items-center gap-2 text-sm font-semibold uppercase tracking-wide text-neutral-600 hover:text-brand-600 ${m()}`,style:T(),children:[l.jsx(ub,{className:"h-4 w-4"}),f("nav.shop")]})]})}),document.body)]})}const If="hifiplanet-cookie-consent",n0={necessary:!0,external:!1,analytics:!1},r0=x.createContext({consent:n0,decided:!1,settingsOpen:!1,acceptAll:()=>{},rejectNonEssential:()=>{},saveCustom:()=>{},openSettings:()=>{},closeSettings:()=>{}});function Lb({children:e}){const[t,n]=x.useState(n0),[r,s]=x.useState(!1),[i,o]=x.useState(!1);x.useEffect(()=>{try{const p=localStorage.getItem(If);if(p){const w=JSON.parse(p);n({necessary:!0,external:!!w.external,analytics:!!w.analytics}),s(!0)}}catch{}},[]);const a=x.useCallback(p=>{n(p),s(!0),o(!1),localStorage.setItem(If,JSON.stringify({...p,decidedAt:new Date().toISOString()}))},[]),u=x.useCallback(()=>a({necessary:!0,external:!0,analytics:!0}),[a]),c=x.useCallback(()=>a({necessary:!0,external:!1,analytics:!1}),[a]),d=x.useCallback(p=>a({necessary:!0,external:!!p.external,analytics:!!p.analytics}),[a]),f=x.useCallback(()=>o(!0),[]),h=x.useCallback(()=>o(!1),[]);return l.jsx(r0.Provider,{value:{consent:t,decided:r,settingsOpen:i,acceptAll:u,rejectNonEssential:c,saveCustom:d,openSettings:f,closeSettings:h},children:e})}function Lr(){return x.useContext(r0)}const Ab=["mon","tue","wed","thu","fri","sat","sun"],Db=["sun","mon","tue","wed","thu","fri","sat"],La={mon:"Mo",tue:"Di",wed:"Mi",thu:"Do",fri:"Fr",sat:"Sa",sun:"So"};function Rb(e){const t=new Date,n=e==null?void 0:e[Db[t.getDay()]];if(!n||n.closed||!n.open||!n.close)return!1;const r=t.getHours()*60+t.getMinutes(),[s,i]=n.open.split(":").map(Number),[o,a]=n.close.split(":").map(Number);return r>=s*60+i&&r<o*60+a}function Ib(e){return!e||e.closed||!e.open||!e.close?null:`${e.open} – ${e.close} Uhr`}function s0(e,t="Geschlossen"){const n=[];return Ab.forEach(r=>{const s=Ib(e==null?void 0:e[r])||t,i=n[n.length-1];i&&i.label===s?i.days=`${i.firstLabel}-${La[r]}`:n.push({key:r,days:La[r],firstLabel:La[r],label:s})}),n}const Vb=e=>(e||"").replace(/[^\d+]/g,"");function Ob(){const{phone:e,contact_email:t,address_street:n,address_zip:r,address_city:s,business_hours:i,has_downloads:o}=Pt(),a=Rb(i),{openSettings:u}=Lr(),{pathname:c}=rt(),d=c==="/",{t:f}=Ce(),h=[n,[r,s].filter(Boolean).join(" ")].filter(Boolean).join(", "),p=`https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(h)}`,w=s0(i,f("footer.closed"));return l.jsxs("footer",{className:`border-t border-neutral-200 bg-neutral-50 py-10 text-sm text-neutral-600 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-300 ${d?"pb-24":""}`,children:[l.jsxs("div",{className:"mx-auto grid max-w-6xl gap-4 px-4 sm:grid-cols-3 sm:px-6",children:[l.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[l.jsx(qg,{className:"h-4 w-4 text-brand-500"}),l.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:"HifiPlanet"})]}),n&&l.jsx("p",{children:n}),(r||s)&&l.jsx("p",{children:[r,s].filter(Boolean).join(" ")}),l.jsxs("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"mt-4 flex items-center justify-center gap-1.5 rounded-md bg-brand-500 px-3 py-2 text-xs font-semibold text-white hover:bg-brand-600",children:[l.jsx(eb,{className:"h-3.5 w-3.5"}),f("footer.routePlan")]})]}),l.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[l.jsx(yo,{className:"h-4 w-4 text-brand-500"}),l.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:f("footer.contactHeading")})]}),l.jsx("p",{children:l.jsx("a",{href:`tel:${Vb(e)}`,className:"inline-block py-1 hover:text-brand-500",children:e})}),l.jsx("p",{children:l.jsx("a",{href:`mailto:${t}`,className:"inline-block py-1 hover:text-brand-500",children:t})}),l.jsx(U,{to:"/kontakt",className:"mt-4 flex items-center justify-center gap-1.5 rounded-md border border-neutral-300 px-3 py-2 text-xs font-semibold text-neutral-700 hover:border-brand-500 hover:text-brand-600 dark:border-neutral-700 dark:text-neutral-200",children:f("footer.contactForm")})]}),l.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsxs("div",{className:"mb-3 flex items-center justify-between gap-2",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Yg,{className:"h-4 w-4 text-brand-500"}),l.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:f("footer.hoursHeading")})]}),l.jsxs("span",{className:`flex items-center gap-1.5 rounded-full px-2 py-0.5 text-[11px] font-semibold ${a?"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300":"bg-neutral-100 text-neutral-500 dark:bg-neutral-800 dark:text-neutral-400"}`,children:[l.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${a?"bg-green-500":"bg-neutral-400"}`}),f(a?"footer.open":"footer.closed")]})]}),l.jsx("dl",{className:"space-y-1.5",children:w.map(v=>l.jsxs("div",{className:"flex items-center justify-between gap-3",children:[l.jsx("dt",{className:"text-neutral-500 dark:text-neutral-400",children:v.days}),l.jsx("dd",{className:"font-medium text-neutral-700 dark:text-neutral-200",children:v.label})]},v.key))})]})]}),l.jsx("div",{className:"mx-auto mt-8 max-w-6xl border-t border-neutral-200 px-4 pt-6 text-center text-xs text-neutral-500 dark:border-neutral-800 dark:text-neutral-400 sm:px-6",children:l.jsxs("p",{className:"flex flex-wrap items-center justify-center gap-x-2 gap-y-1",children:[l.jsx("span",{children:f("footer.copyright")(new Date().getFullYear())}),l.jsx("span",{children:"·"}),l.jsx(U,{to:"/impressum",className:"hover:text-brand-500",children:f("footer.imprint")}),l.jsx("span",{children:"·"}),l.jsx(U,{to:"/datenschutz",className:"hover:text-brand-500",children:f("footer.privacy")}),l.jsx("span",{children:"·"}),l.jsx(U,{to:"/agb",className:"hover:text-brand-500",children:f("footer.terms")}),l.jsx("span",{children:"·"}),o&&l.jsxs(l.Fragment,{children:[l.jsx(U,{to:"/downloads",className:"hover:text-brand-500",children:f("footer.downloads")}),l.jsx("span",{children:"·"})]}),l.jsx("button",{type:"button",onClick:u,className:"hover:text-brand-500",children:f("footer.cookieSettings")})]})})]})}const Nc=x.createContext({});function yn(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const Fb=typeof window<"u",Ws=Fb?x.useLayoutEffect:x.useEffect,Qo=x.createContext(null);function _c(e,t){e.indexOf(t)===-1&&e.push(t)}function vo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const jt=(e,t,n)=>n>t?t:n<e?e:n;let Mc=()=>{};const vn={},i0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),o0=e=>typeof e=="object"&&e!==null,a0=e=>/^0[^.\s]+$/u.test(e);function l0(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ye=e=>e,Us=(...e)=>e.reduce((t,n)=>r=>n(t(r))),jr=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class Lc{constructor(){this.subscriptions=[]}add(t){return _c(this.subscriptions,t),()=>vo(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Je=e=>e*1e3,lt=e=>e/1e3,Ac=(e,t)=>t?e*(1e3/t):0,u0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,zb=1e-7,Bb=12;function $b(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=u0(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>zb&&++a<Bb);return o}function Gs(e,t,n,r){if(e===t&&n===r)return Ye;const s=i=>$b(i,0,1,e,n);return i=>i===0||i===1?i:u0(s(i),t,r)}const c0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,d0=e=>t=>1-e(1-t),f0=Gs(.33,1.53,.69,.99),Dc=d0(f0),h0=c0(Dc),m0=e=>e>=1?1:(e*=2)<1?.5*Dc(e):.5*(2-Math.pow(2,-10*(e-1))),Rc=e=>1-Math.sin(Math.acos(e)),p0=d0(Rc),g0=c0(Rc),Hb=Gs(.42,0,1,1),Wb=Gs(0,0,.58,1),x0=Gs(.42,0,.58,1),Ub=e=>Array.isArray(e)&&typeof e[0]!="number",y0=e=>Array.isArray(e)&&typeof e[0]=="number",Gb={linear:Ye,easeIn:Hb,easeInOut:x0,easeOut:Wb,circIn:Rc,circInOut:g0,circOut:p0,backIn:Dc,backInOut:h0,backOut:f0,anticipate:m0},Kb=e=>typeof e=="string",Vf=e=>{if(y0(e)){Mc(e.length===4);const[t,n,r,s]=e;return Gs(t,n,r,s)}else if(Kb(e))return Gb[e];return e},gi=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Xb(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(u.schedule(c),e()),c(o)}const u={schedule:(c,d=!1,f=!1)=>{const p=f&&r?t:n;return d&&i.add(c),p.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(o=c,r){s=!0;return}r=!0;const d=t;t=n,n=d,t.forEach(a),t.clear(),r=!1,s&&(s=!1,u.process(c))}};return u}const Yb=40;function v0(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=gi.reduce((y,b)=>(y[b]=Xb(i),y),{}),{setup:a,read:u,resolveKeyframes:c,preUpdate:d,update:f,preRender:h,render:p,postRender:w}=o,v=()=>{const y=vn.useManualTiming,b=y?s.timestamp:performance.now();n=!1,y||(s.delta=r?1e3/60:Math.max(Math.min(b-s.timestamp,Yb),1)),s.timestamp=b,s.isProcessing=!0,a.process(s),u.process(s),c.process(s),d.process(s),f.process(s),h.process(s),p.process(s),w.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(v))},k=()=>{n=!0,r=!0,s.isProcessing||e(v)};return{schedule:gi.reduce((y,b)=>{const P=o[b];return y[b]=(T,S=!1,j=!1)=>(n||k(),P.schedule(T,S,j)),y},{}),cancel:y=>{for(let b=0;b<gi.length;b++)o[gi[b]].cancel(y)},state:s,steps:o}}const{schedule:X,cancel:ft,state:je,steps:Aa}=v0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ye,!0);let Vi;function qb(){Vi=void 0}const Fe={now:()=>(Vi===void 0&&Fe.set(je.isProcessing||vn.useManualTiming?je.timestamp:performance.now()),Vi),set:e=>{Vi=e,queueMicrotask(qb)}},w0=e=>t=>typeof t=="string"&&t.startsWith(e),k0=w0("--"),Qb=w0("var(--"),Ic=e=>Qb(e)?Zb.test(e.split("/*")[0].trim()):!1,Zb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Of(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Ar={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},As={...Ar,transform:e=>jt(0,1,e)},xi={...Ar,default:1},as=e=>Math.round(e*1e5)/1e5,Vc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Jb(e){return e==null}const e2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Oc=(e,t)=>n=>!!(typeof n=="string"&&e2.test(n)&&n.startsWith(e)||t&&!Jb(n)&&Object.prototype.hasOwnProperty.call(n,t)),b0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(Vc);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},t2=e=>jt(0,255,e),Da={...Ar,transform:e=>Math.round(t2(e))},Mn={test:Oc("rgb","red"),parse:b0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Da.transform(e)+", "+Da.transform(t)+", "+Da.transform(n)+", "+as(As.transform(r))+")"};function n2(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const nu={test:Oc("#"),parse:n2,transform:Mn.transform},Ks=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),It=Ks("deg"),At=Ks("%"),V=Ks("px"),r2=Ks("vh"),s2=Ks("vw"),Ff={...At,parse:e=>At.parse(e)/100,transform:e=>At.transform(e*100)},or={test:Oc("hsl","hue"),parse:b0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+At.transform(as(t))+", "+At.transform(as(n))+", "+as(As.transform(r))+")"},ge={test:e=>Mn.test(e)||nu.test(e)||or.test(e),parse:e=>Mn.test(e)?Mn.parse(e):or.test(e)?or.parse(e):nu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Mn.transform(e):or.transform(e),getAnimatableNone:e=>{const t=ge.parse(e);return t.alpha=0,ge.transform(t)}},i2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function o2(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Vc))==null?void 0:t.length)||0)+(((n=e.match(i2))==null?void 0:n.length)||0)>0}const S0="number",j0="color",a2="var",l2="var(",zf="${}",u2=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Pr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(u2,u=>(ge.test(u)?(r.color.push(i),s.push(j0),n.push(ge.parse(u))):u.startsWith(l2)?(r.var.push(i),s.push(a2),n.push(u)):(r.number.push(i),s.push(S0),n.push(parseFloat(u))),++i,zf)).split(zf);return{values:n,split:a,indexes:r,types:s}}function c2(e){return Pr(e).values}function P0({split:e,types:t}){const n=e.length;return r=>{let s="";for(let i=0;i<n;i++)if(s+=e[i],r[i]!==void 0){const o=t[i];o===S0?s+=as(r[i]):o===j0?s+=ge.transform(r[i]):s+=r[i]}return s}}function d2(e){return P0(Pr(e))}const f2=e=>typeof e=="number"?0:ge.test(e)?ge.getAnimatableNone(e):e,h2=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:f2(e);function m2(e){const t=Pr(e);return P0(t)(t.values.map((r,s)=>h2(r,t.split[s])))}const bt={test:o2,parse:c2,createTransformer:d2,getAnimatableNone:m2};function Ra(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function p2({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,u=2*n-a;s=Ra(u,a,e+1/3),i=Ra(u,a,e),o=Ra(u,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function wo(e,t){return n=>n>0?t:e}const te=(e,t,n)=>e+(t-e)*n,Ia=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},g2=[nu,Mn,or],x2=e=>g2.find(t=>t.test(e));function Bf(e){const t=x2(e);if(!t)return!1;let n=t.parse(e);return t===or&&(n=p2(n)),n}const $f=(e,t)=>{const n=Bf(e),r=Bf(t);if(!n||!r)return wo(e,t);const s={...n};return i=>(s.red=Ia(n.red,r.red,i),s.green=Ia(n.green,r.green,i),s.blue=Ia(n.blue,r.blue,i),s.alpha=te(n.alpha,r.alpha,i),Mn.transform(s))},ru=new Set(["none","hidden"]);function y2(e,t){return ru.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function v2(e,t){return n=>te(e,t,n)}function Fc(e){return typeof e=="number"?v2:typeof e=="string"?Ic(e)?wo:ge.test(e)?$f:b2:Array.isArray(e)?T0:typeof e=="object"?ge.test(e)?$f:w2:wo}function T0(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Fc(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function w2(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Fc(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function k2(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],o=e.indexes[i][r[i]],a=e.values[o]??0;n[s]=a,r[i]++}return n}const b2=(e,t)=>{const n=bt.createTransformer(t),r=Pr(e),s=Pr(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?ru.has(e)&&!s.values.length||ru.has(t)&&!r.values.length?y2(e,t):Us(T0(k2(r,s),s.values),n):wo(e,t)};function C0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?te(e,t,n):Fc(e)(e,t)}const S2=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>X.update(t,n),stop:()=>ft(t),now:()=>je.isProcessing?je.timestamp:Fe.now()}},E0=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=Math.round(e(i/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},ko=2e4;function zc(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ko;)t+=n,r=e.next(t);return t>=ko?1/0:t}function j2(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(zc(r),ko);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:lt(s)}}const he={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function su(e,t){return e*Math.sqrt(1-t*t)}const P2=12;function T2(e,t,n){let r=n;for(let s=1;s<P2;s++)r=r-e(r)/t(r);return r}const Va=.001;function C2({duration:e=he.duration,bounce:t=he.bounce,velocity:n=he.velocity,mass:r=he.mass}){let s,i,o=1-t;o=jt(he.minDamping,he.maxDamping,o),e=jt(he.minDuration,he.maxDuration,lt(e)),o<1?(s=c=>{const d=c*o,f=d*e,h=d-n,p=su(c,o),w=Math.exp(-f);return Va-h/p*w},i=c=>{const f=c*o*e,h=f*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,w=Math.exp(-f),v=su(Math.pow(c,2),o);return(-s(c)+Va>0?-1:1)*((h-p)*w)/v}):(s=c=>{const d=Math.exp(-c*e),f=(c-n)*e+1;return-Va+d*f},i=c=>{const d=Math.exp(-c*e),f=(n-c)*(e*e);return d*f});const a=5/e,u=T2(s,i,a);if(e=Je(e),isNaN(u))return{stiffness:he.stiffness,damping:he.damping,duration:e};{const c=Math.pow(u,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const E2=["duration","bounce"],N2=["stiffness","damping","mass"];function Hf(e,t){return t.some(n=>e[n]!==void 0)}function _2(e){let t={velocity:he.velocity,stiffness:he.stiffness,damping:he.damping,mass:he.mass,isResolvedFromDuration:!1,...e};if(!Hf(e,N2)&&Hf(e,E2))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*jt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:he.mass,stiffness:s,damping:i}}else{const n=C2({...e,velocity:0});t={...t,...n,mass:he.mass},t.isResolvedFromDuration=!0}return t}function bo(e=he.visualDuration,t=he.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:u,damping:c,mass:d,duration:f,velocity:h,isResolvedFromDuration:p}=_2({...n,velocity:-lt(n.velocity||0)}),w=h||0,v=c/(2*Math.sqrt(u*d)),k=o-i,g=lt(Math.sqrt(u/d)),m=Math.abs(k)<5;r||(r=m?he.restSpeed.granular:he.restSpeed.default),s||(s=m?he.restDelta.granular:he.restDelta.default);let y,b,P,T,S,j;if(v<1)P=su(g,v),T=(w+v*g*k)/P,y=N=>{const O=Math.exp(-v*g*N);return o-O*(T*Math.sin(P*N)+k*Math.cos(P*N))},S=v*g*T+k*P,j=v*g*k-T*P,b=N=>Math.exp(-v*g*N)*(S*Math.sin(P*N)+j*Math.cos(P*N));else if(v===1){y=O=>o-Math.exp(-g*O)*(k+(w+g*k)*O);const N=w+g*k;b=O=>Math.exp(-g*O)*(g*N*O-w)}else{const N=g*Math.sqrt(v*v-1);y=_=>{const R=Math.exp(-v*g*_),B=Math.min(N*_,300);return o-R*((w+v*g*k)*Math.sinh(B)+N*k*Math.cosh(B))/N};const O=(w+v*g*k)/N,H=v*g*O-k*N,oe=v*g*k-O*N;b=_=>{const R=Math.exp(-v*g*_),B=Math.min(N*_,300);return R*(H*Math.sinh(B)+oe*Math.cosh(B))}}const L={calculatedDuration:p&&f||null,velocity:N=>Je(b(N)),next:N=>{if(!p&&v<1){const H=Math.exp(-v*g*N),oe=Math.sin(P*N),_=Math.cos(P*N),R=o-H*(T*oe+k*_),B=Je(H*(S*oe+j*_));return a.done=Math.abs(B)<=r&&Math.abs(o-R)<=s,a.value=a.done?o:R,a}const O=y(N);if(p)a.done=N>=f;else{const H=Je(b(N));a.done=Math.abs(H)<=r&&Math.abs(o-O)<=s}return a.value=a.done?o:O,a},toString:()=>{const N=Math.min(zc(L),ko),O=E0(H=>L.next(N*H).value,N,30);return N+"ms "+O},toTransition:()=>{}};return L}bo.applyToOptions=e=>{const t=j2(e,100,bo);return e.ease=t.ease,e.duration=Je(t.duration),e.type="keyframes",e};const M2=5;function N0(e,t,n){const r=Math.max(t-M2,0);return Ac(n-e(r),t-r)}function iu({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:u,restDelta:c=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},p=j=>a!==void 0&&j<a||u!==void 0&&j>u,w=j=>a===void 0?u:u===void 0||Math.abs(a-j)<Math.abs(u-j)?a:u;let v=n*t;const k=f+v,g=o===void 0?k:o(k);g!==k&&(v=g-f);const m=j=>-v*Math.exp(-j/r),y=j=>g+m(j),b=j=>{const L=m(j),N=y(j);h.done=Math.abs(L)<=c,h.value=h.done?g:N};let P,T;const S=j=>{p(h.value)&&(P=j,T=bo({keyframes:[h.value,w(h.value)],velocity:N0(y,j,h.value),damping:s,stiffness:i,restDelta:c,restSpeed:d}))};return S(0),{calculatedDuration:null,next:j=>{let L=!1;return!T&&P===void 0&&(L=!0,b(j),S(j)),P!==void 0&&j>=P?T.next(j-P):(!L&&b(j),h)}}}function L2(e,t,n){const r=[],s=n||vn.mix||C0,i=e.length-1;for(let o=0;o<i;o++){let a=s(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||Ye:t;a=Us(u,a)}r.push(a)}return r}function Bc(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(Mc(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=L2(t,r,s),u=a.length,c=d=>{if(o&&d<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=jr(e[f],e[f+1],d);return a[f](h)};return n?d=>c(jt(e[0],e[i-1],d)):c}function A2(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=jr(0,t,r);e.push(te(n,1,s))}}function _0(e){const t=[0];return A2(t,e.length-1),t}function D2(e,t){return e.map(n=>n*t)}function R2(e,t){return e.map(()=>t||x0).splice(0,e.length-1)}function ls({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=Ub(r)?r.map(Vf):Vf(r),i={done:!1,value:t[0]},o=D2(n&&n.length===t.length?n:_0(t),e),a=Bc(o,t,{ease:Array.isArray(s)?s:R2(t,s)});return{calculatedDuration:e,next:u=>(i.value=a(u),i.done=u>=e,i)}}const I2=e=>e!==null;function Zo(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(I2),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const V2={decay:iu,inertia:iu,tween:ls,keyframes:ls,spring:bo};function M0(e){typeof e.type=="string"&&(e.type=V2[e.type])}class $c{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const O2=e=>e/100;class Ds extends $c{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==Fe.now()&&this.tick(Fe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;M0(t);const{type:n=ls,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const u=n||ls;u!==ls&&typeof a[0]!="number"&&(this.mixKeyframes=Us(O2,C0(a[0],a[1])),a=[0,100]);const c=u({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=zc(c));const{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:d,repeat:f,repeatType:h,repeatDelay:p,type:w,onUpdate:v,finalKeyframe:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),m=this.playbackSpeed>=0?g<0:g>s;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let y=this.currentTime,b=r;if(f){const j=Math.min(this.currentTime,s)/a;let L=Math.floor(j),N=j%1;!N&&j>=1&&(N=1),N===1&&L--,L=Math.min(L,f+1),!!(L%2)&&(h==="reverse"?(N=1-N,p&&(N-=p/a)):h==="mirror"&&(b=o)),y=jt(0,1,N)*a}let P;m?(this.delayState.value=d[0],P=this.delayState):P=b.next(y),i&&!m&&(P.value=i(P.value));let{done:T}=P;!m&&u!==null&&(T=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return S&&w!==iu&&(P.value=Zo(d,this.options,k,this.speed)),v&&v(P.value),S&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return lt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+lt(t)}get time(){return lt(this.currentTime)}set time(t){t=Je(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return N0(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Fe.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=lt(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=S2,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(s=this.options).onPlay)==null||i.call(s);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Fe.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function F2(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ln=e=>e*180/Math.PI,ou=e=>{const t=Ln(Math.atan2(e[1],e[0]));return au(t)},z2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ou,rotateZ:ou,skewX:e=>Ln(Math.atan(e[1])),skewY:e=>Ln(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},au=e=>(e=e%360,e<0&&(e+=360),e),Wf=ou,Uf=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Gf=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),B2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Uf,scaleY:Gf,scale:e=>(Uf(e)+Gf(e))/2,rotateX:e=>au(Ln(Math.atan2(e[6],e[5]))),rotateY:e=>au(Ln(Math.atan2(-e[2],e[0]))),rotateZ:Wf,rotate:Wf,skewX:e=>Ln(Math.atan(e[4])),skewY:e=>Ln(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function lu(e){return e.includes("scale")?1:0}function uu(e,t){if(!e||e==="none")return lu(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=B2,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=z2,s=a}if(!s)return lu(t);const i=r[t],o=s[1].split(",").map(H2);return typeof i=="function"?i(o):o[i]}const $2=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return uu(n,t)};function H2(e){return parseFloat(e.trim())}const Dr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rr=new Set([...Dr,"pathRotation"]),Kf=e=>e===Ar||e===V,W2=new Set(["x","y","z"]),U2=Dr.filter(e=>!W2.has(e));function G2(e){const t=[];return U2.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const on={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>uu(t,"x"),y:(e,{transform:t})=>uu(t,"y")};on.translateX=on.x;on.translateY=on.y;const Rn=new Set;let cu=!1,du=!1,fu=!1;function L0(){if(du){const e=Array.from(Rn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=G2(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}du=!1,cu=!1,Rn.forEach(e=>e.complete(fu)),Rn.clear()}function A0(){Rn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(du=!0)})}function K2(){fu=!0,A0(),L0(),fu=!1}class Hc{constructor(t,n,r,s,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Rn.add(this),cu||(cu=!0,X.read(A0),X.resolveKeyframes(L0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const i=s==null?void 0:s.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),s&&i===void 0&&s.set(t[0])}F2(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Rn.delete(this)}cancel(){this.state==="scheduled"&&(Rn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const X2=e=>e.startsWith("--");function D0(e,t,n){X2(t)?e.style.setProperty(t,n):e.style[t]=n}const Y2={};function Wc(e,t){const n=l0(e);return()=>Y2[t]??n()}const Uc=Wc(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),R0=Wc(()=>window.ViewTimeline!==void 0,"viewTimeline"),I0=Wc(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),qr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Xf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qr([0,.65,.55,1]),circOut:qr([.55,0,1,.45]),backIn:qr([.31,.01,.66,-.59]),backOut:qr([.33,1.53,.69,.99])};function V0(e,t){if(e)return typeof e=="function"?I0()?E0(e,t):"ease-out":y0(e)?qr(e):Array.isArray(e)?e.map(n=>V0(n,t)||Xf.easeOut):Xf[e]}function q2(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:u}={},c=void 0){const d={[t]:n};u&&(d.offset=u);const f=V0(a,s);Array.isArray(f)&&(d.easing=f);const h={delay:r,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(d,h)}function O0(e){return typeof e=="function"&&"applyToOptions"in e}function Q2({type:e,...t}){return O0(e)&&I0()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class F0 extends $c{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:u}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,Mc(typeof t.type!="string");const c=Q2(t);this.animation=q2(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=Zo(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(d),D0(n,r,d),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(r=this.animation).commitStyles)==null||s.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return lt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+lt(t)}get time(){return lt(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Je(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:s}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Uc()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Ye):s(this)}}const z0={anticipate:m0,backInOut:h0,circInOut:g0};function Z2(e){return e in z0}function J2(e){typeof e.ease=="string"&&Z2(e.ease)&&(e.ease=z0[e.ease])}const Oa=10;class eS extends F0{constructor(t){J2(t),M0(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Ds({...o,autoplay:!1}),u=Math.max(Oa,Fe.now()-this.startTime),c=jt(0,Oa,u-Oa),d=a.sample(u).value,{name:f}=this.options;i&&f&&D0(i,f,d),n.setWithVelocity(a.sample(Math.max(0,u-c)).value,d,c),a.stop()}}const Yf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(bt.test(e)||e==="0")&&!e.startsWith("url("));function tS(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function nS(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=Yf(s,t),a=Yf(i,t);return!o||!a?!1:tS(e)||(n==="spring"||O0(n))&&r}function hu(e){e.duration=0,e.type="keyframes"}const B0=new Set(["opacity","clipPath","filter","transform"]),rS=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function sS(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&rS.test(e[t]))return!0;return!1}const iS=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),oS=l0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function aS(e){var f;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:i,type:o,keyframes:a}=e;if(!(((f=t==null?void 0:t.owner)==null?void 0:f.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return oS()&&n&&(B0.has(n)||iS.has(n)&&sS(a))&&(n!=="transform"||!d)&&!c&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const lS=40;class uS extends $c{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:u,motionValue:c,element:d,...f}){var w;super(),this.stop=()=>{var v,k;this._animation&&(this._animation.stop(),(v=this.stopTimeline)==null||v.call(this)),(k=this.keyframeResolver)==null||k.cancel()},this.createdAt=Fe.now();const h={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:u,motionValue:c,element:d,...f},p=(d==null?void 0:d.KeyframeResolver)||Hc;this.keyframeResolver=new p(a,(v,k,g)=>this.onKeyframesResolved(v,k,h,!g),u,c,d),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(t,n,r,s){var g,m;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:u,isHandoff:c,onUpdate:d}=r;this.resolvedAt=Fe.now();let f=!0;nS(t,i,o,a)||(f=!1,(vn.instantAnimations||!u)&&(d==null||d(Zo(t,r,n))),t[0]=t[t.length-1],hu(r),r.repeat=0);const p={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>lS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},w=f&&!c&&aS(p),v=(m=(g=p.motionValue)==null?void 0:g.owner)==null?void 0:m.current;let k;if(w)try{k=new eS({...p,element:v})}catch{k=new Ds(p)}else k=new Ds(p);k.finished.then(()=>{this.notifyFinished()}).catch(Ye),this.pendingTimeline&&(this.stopTimeline=k.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=k}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),K2()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function $0(e,t,n,r=0,s=1){const i=Array.from(e).sort((c,d)=>c.sortNodePosition(d)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(i,o):s===1?i*r:a-i*r}const qf=30,cS=e=>!isNaN(parseFloat(e)),us={current:void 0};class dS{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=Fe.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Fe.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=cS(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Lc);const r=this.events[t].add(n);return t==="change"?()=>{r(),X.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return us.current&&us.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Fe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>qf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,qf);return Ac(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vt(e,t){return new dS(e,t)}function H0(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Gc(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?H0(n,e):n}const fS={type:"spring",stiffness:500,damping:25,restSpeed:10},hS=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),mS={type:"keyframes",duration:.8},pS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},gS=(e,{keyframes:t})=>t.length>2?mS:Rr.has(e)?e.startsWith("scale")?hS(t[1]):fS:pS,xS=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function yS(e){for(const t in e)if(!xS.has(t))return!0;return!1}const Kc=(e,t,n,r={},s,i)=>o=>{const a=Gc(r,e)||{},u=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Je(u);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};yS(a)||Object.assign(d,gS(e,d)),d.duration&&(d.duration=Je(d.duration)),d.repeatDelay&&(d.repeatDelay=Je(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(hu(d),d.delay===0&&(f=!0)),(vn.instantAnimations||vn.skipAnimations||s!=null&&s.shouldSkipAnimations||a.skipAnimations)&&(f=!0,hu(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,f&&!i&&t.get()!==void 0){const h=Zo(d.keyframes,a);if(h!==void 0){X.update(()=>{d.onUpdate(h),d.onComplete()});return}}return a.isSync?new Ds(d):new uS(d)},vS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wS(e){const t=vS.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function W0(e,t,n=1){const[r,s]=wS(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return i0(o)?parseFloat(o):o}return Ic(s)?W0(s,t,n+1):s}function Qf(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Xc(e,t,n,r){if(typeof t=="function"){const[s,i]=Qf(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=Qf(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function In(e,t,n){const r=e.getProps();return Xc(r,t,n!==void 0?n:r.custom,e)}const U0=new Set(["width","height","top","left","right","bottom",...Dr]),mu=e=>Array.isArray(e);function kS(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vt(n))}function bS(e){return mu(e)?e[e.length-1]||0:e}function SS(e,t){const n=In(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=bS(i[o]);kS(e,o,a)}}const be=e=>!!(e&&e.getVelocity);function jS(e){return!!(be(e)&&e.add)}function pu(e,t){const n=e.getValue("willChange");if(jS(n))return n.add(t);if(!n&&vn.WillChange){const r=new vn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Yc(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const PS="framerAppearId",G0="data-"+Yc(PS);function K0(e){return e.props[G0]}function TS({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function X0(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const u=e.getDefaultTransition();i=i?H0(i,u):u;const c=i==null?void 0:i.reduceMotion,d=i==null?void 0:i.skipAnimations;r&&(i=r);const f=[],h=s&&e.animationState&&e.animationState.getState()[s],p=i==null?void 0:i.path;p&&p.animateVisualElement(e,a,i,n,f);for(const w in a){const v=e.getValue(w,e.latestValues[w]??null),k=a[w];if(k===void 0||h&&TS(h,w))continue;const g={delay:n,...Gc(i||{},w)};d&&(g.skipAnimations=!0);const m=v.get();if(m!==void 0&&!v.isAnimating()&&!Array.isArray(k)&&k===m&&!g.velocity){X.update(()=>v.set(k));continue}let y=!1;if(window.MotionHandoffAnimation){const T=K0(e);if(T){const S=window.MotionHandoffAnimation(T,w,X);S!==null&&(g.startTime=S,y=!0)}}pu(e,w);const b=c??e.shouldReduceMotion;v.start(Kc(w,v,k,b&&U0.has(w)?{type:!1}:g,e,y));const P=v.animation;P&&f.push(P)}if(o){const w=()=>X.update(()=>{o&&SS(e,o)});f.length?Promise.all(f).then(w):w()}return f}function gu(e,t,n={}){var u;const r=In(e,t,n.type==="exit"?(u=e.presenceContext)==null?void 0:u.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const i=r?()=>Promise.all(X0(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=s;return CS(e,t,c,d,f,h,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,d]=a==="beforeChildren"?[i,o]:[o,i];return c().then(()=>d())}else return Promise.all([i(),o(n.delay)])}function CS(e,t,n=0,r=0,s=0,i=1,o){const a=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),a.push(gu(u,t,{...o,delay:n+(typeof r=="function"?0:r)+$0(e.variantChildren,u,r,s,i)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(a)}function ES(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>gu(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=gu(e,t,n);else{const s=typeof t=="function"?In(e,t,n.custom):t;r=Promise.all(X0(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const NS={test:e=>e==="auto",parse:e=>e},Y0=e=>t=>t.test(e),q0=[Ar,V,At,It,s2,r2,NS],Zf=e=>q0.find(Y0(e));function _S(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||a0(e):!0}const MS=new Set(["brightness","contrast","saturate","opacity"]);function LS(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Vc)||[];if(!r)return e;const s=n.replace(r,"");let i=MS.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const AS=/\b([a-z-]*)\(.*?\)/gu,xu={...bt,getAnimatableNone:e=>{const t=e.match(AS);return t?t.map(LS).join(" "):e}},yu={...bt,getAnimatableNone:e=>{const t=bt.parse(e);return bt.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Jf={...Ar,transform:Math.round},DS={rotate:It,pathRotation:It,rotateX:It,rotateY:It,rotateZ:It,scale:xi,scaleX:xi,scaleY:xi,scaleZ:xi,skew:It,skewX:It,skewY:It,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:As,originX:Ff,originY:Ff,originZ:V},So={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,inset:V,insetBlock:V,insetBlockStart:V,insetBlockEnd:V,insetInline:V,insetInlineStart:V,insetInlineEnd:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,paddingBlock:V,paddingBlockStart:V,paddingBlockEnd:V,paddingInline:V,paddingInlineStart:V,paddingInlineEnd:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,marginBlock:V,marginBlockStart:V,marginBlockEnd:V,marginInline:V,marginInlineStart:V,marginInlineEnd:V,fontSize:V,backgroundPositionX:V,backgroundPositionY:V,...DS,zIndex:Jf,fillOpacity:As,strokeOpacity:As,numOctaves:Jf},RS={...So,color:ge,backgroundColor:ge,outlineColor:ge,fill:ge,stroke:ge,borderColor:ge,borderTopColor:ge,borderRightColor:ge,borderBottomColor:ge,borderLeftColor:ge,filter:xu,WebkitFilter:xu,mask:yu,WebkitMask:yu},Q0=e=>RS[e],IS=new Set([xu,yu]);function Z0(e,t){let n=Q0(e);return IS.has(n)||(n=bt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const VS=new Set(["auto","none","0"]);function OS(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!VS.has(i)&&Pr(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=Z0(n,s)}class FS extends Hc{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let f=t[d];if(typeof f=="string"&&(f=f.trim(),Ic(f))){const h=W0(f,n.current);h!==void 0&&(t[d]=h),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!U0.has(r)||t.length!==2)return;const[s,i]=t,o=Zf(s),a=Zf(i),u=Of(s),c=Of(i);if(u!==c&&on[r]){this.needsMeasurement=!0;return}if(o!==a)if(Kf(o)&&Kf(a))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else on[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||_S(t[s]))&&r.push(s);r.length&&OS(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=on[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=r.length-1,o=r[i];r[i]=on[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([u,c])=>{t.getValue(u).set(c)}),this.resolveNoneKeyframes()}}const qc=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function J0(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const s=document.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}const vu=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function cs(e){return o0(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Tr,cancel:ex}=v0(queueMicrotask,!1),pt={x:!1,y:!1};function tx(){return pt.x||pt.y}function zS(e){return e==="x"||e==="y"?pt[e]?null:(pt[e]=!0,()=>{pt[e]=!1}):pt.x||pt.y?null:(pt.x=pt.y=!0,()=>{pt.x=pt.y=!1})}function nx(e,t){const n=J0(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function BS(e){return!(e.pointerType==="touch"||tx())}function $S(e,t,n={}){const[r,s,i]=nx(e,n);return r.forEach(o=>{let a=!1,u=!1,c;const d=()=>{o.removeEventListener("pointerleave",w)},f=k=>{c&&(c(k),c=void 0),d()},h=k=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),u&&(u=!1,f(k))},p=()=>{a=!0,window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",h,s)},w=k=>{if(k.pointerType!=="touch"){if(a){u=!0;return}f(k)}},v=k=>{if(!BS(k))return;u=!1;const g=t(o,k);typeof g=="function"&&(c=g,o.addEventListener("pointerleave",w,s))};o.addEventListener("pointerenter",v,s),o.addEventListener("pointerdown",p,s)}),i}const rx=(e,t)=>t?e===t?!0:rx(e,t.parentElement):!1,Qc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,HS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function WS(e){return HS.has(e.tagName)||e.isContentEditable===!0}const US=new Set(["INPUT","SELECT","TEXTAREA"]);function GS(e){return US.has(e.tagName)||e.isContentEditable===!0}const Oi=new WeakSet;function eh(e){return t=>{t.key==="Enter"&&e(t)}}function Fa(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const KS=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=eh(()=>{if(Oi.has(n))return;Fa(n,"down");const s=eh(()=>{Fa(n,"up")}),i=()=>Fa(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function th(e){return Qc(e)&&!tx()}const nh=new WeakSet;function XS(e,t,n={}){const[r,s,i]=nx(e,n),o=a=>{const u=a.currentTarget;if(!th(a)||nh.has(a))return;Oi.add(u),n.stopPropagation&&nh.add(a);const c=t(u,a),d={...s,capture:!0},f=(w,v)=>{window.removeEventListener("pointerup",h,d),window.removeEventListener("pointercancel",p,d),Oi.has(u)&&Oi.delete(u),th(w)&&typeof c=="function"&&c(w,{success:v})},h=w=>{f(w,u===window||u===document||n.useGlobalTarget||rx(u,w.target))},p=w=>{f(w,!1)};window.addEventListener("pointerup",h,d),window.addEventListener("pointercancel",p,d)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),cs(a)&&(a.addEventListener("focus",c=>KS(c,s)),!WS(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Zc(e){return o0(e)&&"ownerSVGElement"in e}const Fi=new WeakMap;let qt;const sx=(e,t,n)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:Zc(r)&&"getBBox"in r?r.getBBox()[t]:r[n],YS=sx("inline","width","offsetWidth"),qS=sx("block","height","offsetHeight");function QS({target:e,borderBoxSize:t}){var n;(n=Fi.get(e))==null||n.forEach(r=>{r(e,{get width(){return YS(e,t)},get height(){return qS(e,t)}})})}function ZS(e){e.forEach(QS)}function JS(){typeof ResizeObserver>"u"||(qt=new ResizeObserver(ZS))}function ej(e,t){qt||JS();const n=J0(e);return n.forEach(r=>{let s=Fi.get(r);s||(s=new Set,Fi.set(r,s)),s.add(t),qt==null||qt.observe(r)}),()=>{n.forEach(r=>{const s=Fi.get(r);s==null||s.delete(t),s!=null&&s.size||qt==null||qt.unobserve(r)})}}const zi=new Set;let ar;function tj(){ar=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};zi.forEach(t=>t(e))},window.addEventListener("resize",ar)}function nj(e){return zi.add(e),ar||tj(),()=>{zi.delete(e),!zi.size&&typeof ar=="function"&&(window.removeEventListener("resize",ar),ar=void 0)}}function wu(e,t){return typeof e=="function"?nj(e):ej(e,t)}function ix(e,t){let n;const r=()=>{const{currentTime:s}=t,o=(s===null?0:s.value)/100;n!==o&&e(o),n=o};return X.preUpdate(r,!0),()=>ft(r)}function rj(e){return Zc(e)&&e.tagName==="svg"}function sj(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],s=e[1+n],i=e[2+n],o=e[3+n],a=Bc(s,i,o);return t?a(r):a}function ij(e,t,n={}){const r=e.get();let s=null,i=r,o;const a=typeof r=="string"?r.replace(/[\d.-]/g,""):void 0,u=()=>{s&&(s.stop(),s=null),e.animation=void 0},c=()=>{const f=rh(e.get()),h=rh(i);if(f===h){u();return}const p=s?s.getGeneratorVelocity():e.getVelocity();u(),s=new Ds({keyframes:[f,h],velocity:p,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:o})},d=()=>{var f;c(),e.animation=s??void 0,(f=e.events.animationStart)==null||f.notify(),s==null||s.then(()=>{var h;e.animation=void 0,(h=e.events.animationComplete)==null||h.notify()})};if(e.attach((f,h)=>{i=f,o=p=>h(za(p,a)),X.postRender(d)},u),be(t)){let f=n.skipInitialAnimation===!0;const h=t.on("change",w=>{f?(f=!1,e.jump(za(w,a),!1)):e.set(za(w,a))}),p=e.on("destroy",h);return()=>{h(),p()}}return u}function za(e,t){return t?e+t:e}function rh(e){return typeof e=="number"?e:parseFloat(e)}const oj=[...q0,ge,bt],aj=e=>oj.find(Y0(e)),sh=()=>({translate:0,scale:1,origin:0,originPoint:0}),lr=()=>({x:sh(),y:sh()}),ih=()=>({min:0,max:0}),ve=()=>({x:ih(),y:ih()}),lj=new WeakMap;function Jo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Rs(e){return typeof e=="string"||Array.isArray(e)}const Jc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ed=["initial",...Jc];function ea(e){return Jo(e.animate)||ed.some(t=>Rs(e[t]))}function ox(e){return!!(ea(e)||e.variants)}function uj(e,t,n){for(const r in t){const s=t[r],i=n[r];if(be(s))e.addValue(r,s);else if(be(i))e.addValue(r,vt(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,vt(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ku={current:null},ax={current:!1},cj=typeof window<"u";function dj(){if(ax.current=!0,!!cj)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ku.current=e.matches;e.addEventListener("change",t),t()}else ku.current=!1}const oh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let jo={};function lx(e){jo=e}function fj(){return jo}class hj{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Hc,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=Fe.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,X.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=ea(n),this.isVariantNode=ox(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in h){const w=h[p];c[p]!==void 0&&be(w)&&w.set(c[p])}}mount(t){var n,r;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,lj.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ax.current||dj(),this.shouldReduceMotion=ku.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),ft(this.notifyUpdate),ft(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&B0.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:u,ease:c,duration:d}=n.accelerate,f=new F0({element:this.current,name:t,keyframes:a,times:u,ease:c,duration:Je(d)}),h=o(f);this.valueSubscriptions.set(t,()=>{h(),f.cancel()});return}const r=Rr.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&X.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in jo){const n=jo[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ve()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<oh.length;r++){const s=oh[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=uj(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=vt(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(i0(r)||a0(r))?r=parseFloat(r):!aj(r)&&bt.test(n)&&(r=Z0(t,n)),this.setBaseTarget(t,be(r)?r.get():r)),be(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Xc(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!be(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Lc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Tr.render(this.render)}}class ux extends hj{constructor(){super(...arguments),this.KeyframeResolver=FS}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;be(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Sn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function cx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function mj({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function pj(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ba(e){return e===void 0||e===1}function bu({scale:e,scaleX:t,scaleY:n}){return!Ba(e)||!Ba(t)||!Ba(n)}function Cn(e){return bu(e)||dx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dx(e){return ah(e.x)||ah(e.y)}function ah(e){return e&&e!=="0%"}function Po(e,t,n){const r=e-n,s=t*r;return n+s}function lh(e,t,n,r,s){return s!==void 0&&(e=Po(e,s,r)),Po(e,n,r)+t}function Su(e,t=0,n=1,r,s){e.min=lh(e.min,t,n,r,s),e.max=lh(e.max,t,n,r,s)}function fx(e,{x:t,y:n}){Su(e.x,t.translate,t.scale,t.originPoint),Su(e.y,n.translate,n.scale,n.originPoint)}const uh=.999999999999,ch=1.0000000000001;function gj(e,t,n,r=!1){var a;const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let u=0;u<s;u++){i=n[u],o=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(Nt(e.x,-i.scroll.offset.x),Nt(e.y,-i.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,fx(e,o)),r&&Cn(i.latestValues)&&Bi(e,i.latestValues,(a=i.layout)==null?void 0:a.layoutBox))}t.x<ch&&t.x>uh&&(t.x=1),t.y<ch&&t.y>uh&&(t.y=1)}function Nt(e,t){e.min+=t,e.max+=t}function dh(e,t,n,r,s=.5){const i=te(e.min,e.max,s);Su(e,t,n,i,r)}function fh(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Bi(e,t,n){const r=n??e;dh(e.x,fh(t.x,r.x),t.scaleX,t.scale,t.originX),dh(e.y,fh(t.y,r.y),t.scaleY,t.scale,t.originY)}function hx(e,t){return cx(pj(e.getBoundingClientRect(),t))}function xj(e,t,n){const r=hx(e,n),{scroll:s}=t;return s&&(Nt(r.x,s.offset.x),Nt(r.y,s.offset.y)),r}const yj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vj=Dr.length;function wj(e,t,n){let r="",s=!0;for(let o=0;o<vj;o++){const a=Dr[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number")c=u===(a.startsWith("scale")?1:0);else{const d=parseFloat(u);c=a.startsWith("scale")?d===1:d===0}if(!c||n){const d=vu(u,So[a]);if(!c){s=!1;const f=yj[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}const i=e.pathRotation;return i&&(s=!1,r+=`rotate(${vu(i,So.pathRotation)}) `),r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function td(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,a=!1;for(const u in t){const c=t[u];if(Rr.has(u)){o=!0;continue}else if(k0(u)){s[u]=c;continue}else{const d=vu(c,So[u]);u.startsWith("origin")?(a=!0,i[u]=d):r[u]=d}}if(t.transform||(o||n?r.transform=wj(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:u="50%",originY:c="50%",originZ:d=0}=i;r.transformOrigin=`${u} ${c} ${d}`}}function mx(e,{style:t,vars:n},r,s){const i=e.style;let o;for(o in t)i[o]=t[o];s==null||s.applyProjectionStyles(i,r);for(o in n)i.setProperty(o,n[o])}function hh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ur={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=hh(e,t.target.x),r=hh(e,t.target.y);return`${n}% ${r}%`}},kj={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=bt.parse(e);if(s.length>5)return r;const i=bt.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,u=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=u;const c=te(a,u,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}},ju={borderRadius:{...Ur,applyTo:[...qc]},borderTopLeftRadius:Ur,borderTopRightRadius:Ur,borderBottomLeftRadius:Ur,borderBottomRightRadius:Ur,boxShadow:kj};function px(e,{layout:t,layoutId:n}){return Rr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ju[e]||e==="opacity")}function nd(e,t,n){var o;const r=e.style,s=t==null?void 0:t.style,i={};if(!r)return i;for(const a in r)(be(r[a])||s&&be(s[a])||px(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function bj(e){return window.getComputedStyle(e)}class Sj extends ux{constructor(){super(...arguments),this.type="html",this.renderInstance=mx}readValueFromInstance(t,n){var r;if(Rr.has(n))return(r=this.projection)!=null&&r.isProjecting?lu(n):$2(t,n);{const s=bj(t),i=(k0(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return hx(t,n)}build(t,n,r){td(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return nd(t,n,r)}}const jj={offset:"stroke-dashoffset",array:"stroke-dasharray"},Pj={offset:"strokeDashoffset",array:"strokeDasharray"};function Tj(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?jj:Pj;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const Cj=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function gx(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},u,c,d){if(td(e,a,c),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete f.transformBox);for(const p of Cj)f[p]!==void 0&&(h[p]=f[p],delete f[p]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&Tj(f,s,i,o,!1)}const xx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),yx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Ej(e,t,n,r){mx(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(xx.has(s)?s:Yc(s),t.attrs[s])}function vx(e,t,n){const r=nd(e,t,n);for(const s in e)if(be(e[s])||be(t[s])){const i=Dr.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class Nj extends ux{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ve}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Rr.has(n)){const r=Q0(n);return r&&r.default||0}return n=xx.has(n)?n:Yc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return vx(t,n,r)}build(t,n,r){gx(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){Ej(t,n,r,s)}mount(t){this.isSVGTag=yx(t.tagName),super.mount(t)}}const _j=ed.length;function wx(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?wx(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<_j;n++){const r=ed[n],s=e.props[r];(Rs(s)||s===!1)&&(t[r]=s)}return t}function kx(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Mj=[...Jc].reverse(),Lj=Jc.length;function Aj(e){return t=>Promise.all(t.map(({animation:n,options:r})=>ES(e,n,r)))}function Dj(e){let t=Aj(e),n=mh(),r=!0,s=!1;const i=c=>(d,f)=>{var p;const h=In(e,f,c==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);if(h){const{transition:w,transitionEnd:v,...k}=h;d={...d,...k,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=wx(e.parent)||{},h=[],p=new Set;let w={},v=1/0;for(let g=0;g<Lj;g++){const m=Mj[g],y=n[m],b=d[m]!==void 0?d[m]:f[m],P=Rs(b),T=m===c?y.isActive:null;T===!1&&(v=g);let S=b===f[m]&&b!==d[m]&&P;if(S&&(r||s)&&e.manuallyAnimateOnMount&&(S=!1),y.protectedKeys={...w},!y.isActive&&T===null||!b&&!y.prevProp||Jo(b)||typeof b=="boolean")continue;if(m==="exit"&&y.isActive&&T!==!0){y.prevResolvedValues&&(w={...w,...y.prevResolvedValues});continue}const j=Rj(y.prevProp,b);let L=j||m===c&&y.isActive&&!S&&P||g>v&&P,N=!1;const O=Array.isArray(b)?b:[b];let H=O.reduce(i(m),{});T===!1&&(H={});const{prevResolvedValues:oe={}}=y,_={...oe,...H},R=E=>{L=!0,p.has(E)&&(N=!0,p.delete(E)),y.needsAnimating[E]=!0;const C=e.getValue(E);C&&(C.liveStyle=!1)};for(const E in _){const C=H[E],A=oe[E];if(w.hasOwnProperty(E))continue;let F=!1;mu(C)&&mu(A)?F=!kx(C,A)||j:F=C!==A,F?C!=null?R(E):p.add(E):C!==void 0&&p.has(E)?R(E):y.protectedKeys[E]=!0}y.prevProp=b,y.prevResolvedValues=H,y.isActive&&(w={...w,...H}),(r||s)&&e.blockInitialAnimation&&(L=!1);const B=S&&j;L&&(!B||N)&&h.push(...O.map(E=>{const C={type:m};if(typeof E=="string"&&(r||s)&&!B&&e.manuallyAnimateOnMount&&e.parent){const{parent:A}=e,F=In(A,E);if(A.enteringChildren&&F){const{delayChildren:q}=F.transition||{};C.delay=$0(A.enteringChildren,e,q)}}return{animation:E,options:C}}))}if(p.size){const g={};if(typeof d.initial!="boolean"){const m=In(e,Array.isArray(d.initial)?d.initial[0]:d.initial);m&&m.transition&&(g.transition=m.transition)}p.forEach(m=>{const y=e.getBaseTarget(m),b=e.getValue(m);b&&(b.liveStyle=!0),g[m]=y??null}),h.push({animation:g})}let k=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(k=!1),r=!1,s=!1,k?t(h):Promise.resolve()}function u(c,d){var h;if(n[c].isActive===d)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(p=>{var w;return(w=p.animationState)==null?void 0:w.setActive(c,d)}),n[c].isActive=d;const f=a(c);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=mh(),s=!0}}}function Rj(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!kx(t,e):!1}function jn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mh(){return{animate:jn(!0),whileInView:jn(),whileHover:jn(),whileTap:jn(),whileDrag:jn(),whileFocus:jn(),exit:jn()}}function Pu(e,t){e.min=t.min,e.max=t.max}function mt(e,t){Pu(e.x,t.x),Pu(e.y,t.y)}function ph(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const bx=1e-4,Ij=1-bx,Vj=1+bx,Sx=.01,Oj=0-Sx,Fj=0+Sx;function ze(e){return e.max-e.min}function zj(e,t,n){return Math.abs(e-t)<=n}function gh(e,t,n,r=.5){e.origin=r,e.originPoint=te(t.min,t.max,e.origin),e.scale=ze(n)/ze(t),e.translate=te(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ij&&e.scale<=Vj||isNaN(e.scale))&&(e.scale=1),(e.translate>=Oj&&e.translate<=Fj||isNaN(e.translate))&&(e.translate=0)}function ds(e,t,n,r){gh(e.x,t.x,n.x,r?r.originX:void 0),gh(e.y,t.y,n.y,r?r.originY:void 0)}function xh(e,t,n,r=0){const s=r?te(n.min,n.max,r):n.min;e.min=s+t.min,e.max=e.min+ze(t)}function Bj(e,t,n,r){xh(e.x,t.x,n.x,r==null?void 0:r.x),xh(e.y,t.y,n.y,r==null?void 0:r.y)}function yh(e,t,n,r=0){const s=r?te(n.min,n.max,r):n.min;e.min=t.min-s,e.max=e.min+ze(t)}function To(e,t,n,r){yh(e.x,t.x,n.x,r==null?void 0:r.x),yh(e.y,t.y,n.y,r==null?void 0:r.y)}function vh(e,t,n,r,s){return e-=t,e=Po(e,1/n,r),s!==void 0&&(e=Po(e,1/s,r)),e}function $j(e,t=0,n=1,r=.5,s,i=e,o=e){if(At.test(t)&&(t=parseFloat(t),t=te(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=te(i.min,i.max,r);e===i&&(a-=t),e.min=vh(e.min,t,n,a,s),e.max=vh(e.max,t,n,a,s)}function wh(e,t,[n,r,s],i,o){$j(e,t[n],t[r],t[s],t.scale,i,o)}const Hj=["x","scaleX","originX"],Wj=["y","scaleY","originY"];function kh(e,t,n,r){wh(e.x,t,Hj,n?n.x:void 0,r?r.x:void 0),wh(e.y,t,Wj,n?n.y:void 0,r?r.y:void 0)}function bh(e){return e.translate===0&&e.scale===1}function jx(e){return bh(e.x)&&bh(e.y)}function Sh(e,t){return e.min===t.min&&e.max===t.max}function Uj(e,t){return Sh(e.x,t.x)&&Sh(e.y,t.y)}function jh(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Px(e,t){return jh(e.x,t.x)&&jh(e.y,t.y)}function Ph(e){return ze(e.x)/ze(e.y)}function Th(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Et(e){return[e("x"),e("y")]}function Gj(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,pathRotation:f,rotateX:h,rotateY:p,skewX:w,skewY:v}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotate(${f}deg) `),h&&(r+=`rotateX(${h}deg) `),p&&(r+=`rotateY(${p}deg) `),w&&(r+=`skewX(${w}deg) `),v&&(r+=`skewY(${v}deg) `)}const a=e.x.scale*t.x,u=e.y.scale*t.y;return(a!==1||u!==1)&&(r+=`scale(${a}, ${u})`),r||"none"}const Kj=qc.length,Ch=e=>typeof e=="string"?parseFloat(e):e,Eh=e=>typeof e=="number"||V.test(e);function Xj(e,t,n,r,s,i){s?(e.opacity=te(0,n.opacity??1,Yj(r)),e.opacityExit=te(t.opacity??1,0,qj(r))):i&&(e.opacity=te(t.opacity??1,n.opacity??1,r));for(let o=0;o<Kj;o++){const a=qc[o];let u=Nh(t,a),c=Nh(n,a);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||Eh(u)===Eh(c)?(e[a]=Math.max(te(Ch(u),Ch(c),r),0),(At.test(c)||At.test(u))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=te(t.rotate||0,n.rotate||0,r))}function Nh(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Yj=Tx(0,.5,p0),qj=Tx(.5,.95,Ye);function Tx(e,t,n){return r=>r<e?0:r>t?1:n(jr(e,t,r))}function Qj(e,t,n){const r=be(e)?e:vt(e);return r.start(Kc("",r,t,n)),r.animation}function Is(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const Zj=(e,t)=>e.depth-t.depth;class Jj{constructor(){this.children=[],this.isDirty=!1}add(t){_c(this.children,t),this.isDirty=!0}remove(t){vo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Zj),this.isDirty=!1,this.children.forEach(t)}}function eP(e,t){const n=Fe.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(ft(r),e(i-t))};return X.setup(r,!0),()=>ft(r)}function $i(e){return be(e)?e.get():e}class tP{constructor(){this.members=[]}add(t){_c(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const s=r.instance;(!s||s.isConnected===!1)&&!r.snapshot&&(vo(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(vo(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const s=this.members[r];if(s.isPresent!==!1&&((n=s.instance)==null?void 0:n.isConnected)!==!1)return this.promote(s),!0}return!1}promote(t,n){var s;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:i}=r.options,{layoutDependency:o}=t.options;(i===void 0||i!==o)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(s=t.root)!=null&&s.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,s,i,o;(r=(n=t.options).onExitComplete)==null||r.call(n),(o=(s=t.resumingFrom)==null?void 0:(i=s.options).onExitComplete)==null||o.call(i)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const Hi={hasAnimatedSinceResize:!0,hasEverUpdated:!1},$a=["","X","Y","Z"],nP=1e3;let rP=0;function Ha(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Cx(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=K0(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",X,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Cx(r)}function Ex({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=rP++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(oP),this.nodes.forEach(fP),this.nodes.forEach(hP),this.nodes.forEach(aP)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new Jj)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Lc),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const u=this.eventHandlers.get(o);u&&u.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=Zc(o)&&!rj(o),this.instance=o;const{layoutId:a,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||a)&&(this.isLayoutDirty=!0),e){let d,f=0;const h=()=>this.root.updateBlockedByResize=!1;X.read(()=>{f=window.innerWidth}),e(o,()=>{const p=window.innerWidth;p!==f&&(f=p,this.root.updateBlockedByResize=!0,d&&d(),d=eP(h,250),Hi.hasAnimatedSinceResize&&(Hi.hasAnimatedSinceResize=!1,this.nodes.forEach(Lh)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||c.getDefaultTransition()||yP,{onLayoutAnimationStart:v,onLayoutAnimationComplete:k}=c.getProps(),g=!this.targetLayout||!Px(this.targetLayout,p),m=!f&&h;if(this.options.layoutRoot||this.resumeFrom||m||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const y={...Gc(w,"layout"),onPlay:v,onComplete:k};(c.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(d,m,y.path)}else f||Lh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ft(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(mP),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Cx(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:u}=this.options;if(a===void 0&&!u)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const u=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),u&&this.nodes.forEach(uP),this.nodes.forEach(_h);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Mh);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(cP),this.nodes.forEach(dP),this.nodes.forEach(sP),this.nodes.forEach(iP)):this.nodes.forEach(Mh),this.clearAllSnapshots();const a=Fe.now();je.delta=jt(0,1e3/60,a-je.timestamp),je.timestamp=a,je.isProcessing=!0,Aa.update.process(je),Aa.preRender.process(je),Aa.render.process(je),je.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Tr.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(lP),this.sharedNodes.forEach(pP)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,X.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){X.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ze(this.snapshot.measuredBox.x)&&!ze(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=ve()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!jx(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||Cn(this.latestValues)||d)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let u=this.removeElementScroll(a);return o&&(u=this.removeTransform(u)),vP(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:o}=this.options;if(!o)return ve();const a=o.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(wP))){const{scroll:d}=this.root;d&&(Nt(a.x,d.offset.x),Nt(a.y,d.offset.y))}return a}removeElementScroll(o){var u;const a=ve();if(mt(a,o),(u=this.scroll)!=null&&u.wasRoot)return a;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:f,options:h}=d;d!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&mt(a,o),Nt(a.x,f.offset.x),Nt(a.y,f.offset.y))}return a}applyTransform(o,a=!1,u){var d,f;const c=u||ve();mt(c,o);for(let h=0;h<this.path.length;h++){const p=this.path[h];!a&&p.options.layoutScroll&&p.scroll&&p!==p.root&&(Nt(c.x,-p.scroll.offset.x),Nt(c.y,-p.scroll.offset.y)),Cn(p.latestValues)&&Bi(c,p.latestValues,(d=p.layout)==null?void 0:d.layoutBox)}return Cn(this.latestValues)&&Bi(c,this.latestValues,(f=this.layout)==null?void 0:f.layoutBox),c}removeTransform(o){var u;const a=ve();mt(a,o);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!Cn(d.latestValues))continue;let f;d.instance&&(bu(d.latestValues)&&d.updateSnapshot(),f=ve(),mt(f,d.measurePageBox())),kh(a,d.latestValues,(u=d.snapshot)==null?void 0:u.layoutBox,f)}return Cn(this.latestValues)&&kh(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==je.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var p;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==a;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!this.layout||!(d||f))return;this.resolvedRelativeTargetAt=je.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ve(),this.targetWithTransforms=ve()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Bj(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):mt(this.target,this.layout.layoutBox),fx(this.target,this.targetDelta)):mt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||bu(this.parent.latestValues)||dx(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,u){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ve(),this.relativeTargetOrigin=ve(),To(this.relativeTargetOrigin,a,u,this.options.layoutAnchor||void 0),mt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var w;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let u=!0;if((this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===je.timestamp&&(u=!1),u)return;const{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;mt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;gj(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=ve());const{target:p}=o;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ph(this.prevProjectionDelta.x,this.projectionDelta.x),ph(this.prevProjectionDelta.y,this.projectionDelta.y)),ds(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Th(this.projectionDelta.x,this.prevProjectionDelta.x)||!Th(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=lr(),this.projectionDelta=lr(),this.projectionDeltaWithTransform=lr()}setAnimationOrigin(o,a=!1,u){const c=this.snapshot,d=c?c.latestValues:{},f={...this.latestValues},h=lr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const p=ve(),w=c?c.source:void 0,v=this.layout?this.layout.source:void 0,k=w!==v,g=this.getStack(),m=!g||g.members.length<=1,y=!!(k&&!m&&this.options.crossfade===!0&&!this.path.some(xP));this.animationProgress=0;let b;const P=u==null?void 0:u.interpolateProjection(o);this.mixTargetDelta=T=>{const S=T/1e3,j=P==null?void 0:P(S);j?(h.x.translate=j.x,h.x.scale=te(o.x.scale,1,S),h.x.origin=o.x.origin,h.x.originPoint=o.x.originPoint,h.y.translate=j.y,h.y.scale=te(o.y.scale,1,S),h.y.origin=o.y.origin,h.y.originPoint=o.y.originPoint):(Ah(h.x,o.x,S),Ah(h.y,o.y,S)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(To(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),gP(this.relativeTarget,this.relativeTargetOrigin,p,S),b&&Uj(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=ve()),mt(b,this.relativeTarget)),k&&(this.animationValues=f,Xj(f,d,this.latestValues,S,y,m)),j&&j.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=j.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,u,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||c.stop(),this.pendingAnimation&&(ft(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{Hi.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=vt(0)),this.motionValue.jump(0,!1),this.currentAnimation=Qj(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),o.onUpdate&&o.onUpdate(d)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(nP),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:u,layout:c,latestValues:d}=o;if(!(!a||!u||!c)){if(this!==o&&this.layout&&c&&Nx(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||ve();const f=ze(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+f;const h=ze(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+h}mt(a,u),Bi(a,d),ds(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new tP),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(a=!0),!a)return;const c={};u.z&&Ha("z",o,c,this.animationValues);for(let d=0;d<$a.length;d++)Ha(`rotate${$a[d]}`,o,c,this.animationValues),Ha(`skew${$a[d]}`,o,c,this.animationValues);o.render();for(const d in c)o.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=$i(a==null?void 0:a.pointerEvents)||"",o.transform=u?u(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=$i(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Cn(this.latestValues)&&(o.transform=u?u({},""):"none",this.hasProjected=!1);return}o.visibility="";const d=c.animationValues||c.latestValues;this.applyTransformsToTarget();let f=Gj(this.projectionDeltaWithTransform,this.treeScale,d);u&&(f=u(d,f)),o.transform=f;const{x:h,y:p}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,c.animationValues?o.opacity=c===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:o.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const w in ju){if(d[w]===void 0)continue;const{correct:v,applyTo:k,isCSSVariable:g}=ju[w],m=f==="none"?d[w]:v(d[w],c);if(k){const y=k.length;for(let b=0;b<y;b++)o[k[b]]=m}else g?this.options.visualElement.renderState.vars[w]=m:o[w]=m}this.options.layoutId&&(o.pointerEvents=c===this?$i(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(_h),this.root.sharedNodes.clear()}}}function sP(e){e.updateLayout()}function iP(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;if(i==="size")Et(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],p=ze(h);h.min=r[f].min,h.max=h.min+p});else if(i==="x"||i==="y"){const f=i==="x"?"y":"x";Pu(o?t.measuredBox[f]:t.layoutBox[f],r[f])}else Nx(i,t.layoutBox,r)&&Et(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],p=ze(r[f]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const a=lr();ds(a,r,t.layoutBox);const u=lr();o?ds(u,e.applyTransform(s,!0),t.measuredBox):ds(u,r,t.layoutBox);const c=!jx(a);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:p}=f;if(h&&p){const w=e.options.layoutAnchor||void 0,v=ve();To(v,t.layoutBox,h.layoutBox,w);const k=ve();To(k,r,p.layoutBox,w),Px(v,k)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=k,e.relativeTargetOrigin=v,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:u,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function oP(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function aP(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function lP(e){e.clearSnapshot()}function _h(e){e.clearMeasurements()}function uP(e){e.isLayoutDirty=!0,e.updateLayout()}function Mh(e){e.isLayoutDirty=!1}function cP(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function dP(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Lh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fP(e){e.resolveTargetDelta()}function hP(e){e.calcProjection()}function mP(e){e.resetSkewAndRotation()}function pP(e){e.removeLeadSnapshot()}function Ah(e,t,n){e.translate=te(t.translate,0,n),e.scale=te(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Dh(e,t,n,r){e.min=te(t.min,n.min,r),e.max=te(t.max,n.max,r)}function gP(e,t,n,r){Dh(e.x,t.x,n.x,r),Dh(e.y,t.y,n.y,r)}function xP(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const yP={duration:.45,ease:[.4,0,.1,1]},Rh=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ih=Rh("applewebkit/")&&!Rh("chrome/")?Math.round:Ye;function Vh(e){e.min=Ih(e.min),e.max=Ih(e.max)}function vP(e){Vh(e.x),Vh(e.y)}function Nx(e,t,n){return e==="position"||e==="preserve-aspect"&&!zj(Ph(t),Ph(n),.2)}function wP(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const kP=Ex({attachResizeListener:(e,t)=>Is(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Wa={current:void 0},_x=Ex({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Wa.current){const e=new kP({});e.mount(window),e.setOptions({layoutScroll:!0}),Wa.current=e}return Wa.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Xs=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Oh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function bP(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Oh(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():Oh(e[s],null)}}}}function SP(...e){return x.useCallback(bP(...e),e)}class jP extends x.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(cs(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,s=cs(r)&&r.offsetWidth||0,i=cs(r)&&r.offsetHeight||0,o=getComputedStyle(n),a=this.props.sizeRef.current;a.height=parseFloat(o.height),a.width=parseFloat(o.width),a.top=n.offsetTop,a.left=n.offsetLeft,a.right=s-a.width-a.left,a.bottom=i-a.height-a.top,a.direction=o.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function PP({children:e,isPresent:t,anchorX:n,anchorY:r,root:s,pop:i}){var h;const o=x.useId(),a=x.useRef(null),u=x.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:c}=x.useContext(Xs),d=((h=e.props)==null?void 0:h.ref)??(e==null?void 0:e.ref),f=SP(a,d);return x.useInsertionEffect(()=>{const{width:p,height:w,top:v,left:k,right:g,bottom:m,direction:y}=u.current;if(t||i===!1||!a.current||!p||!w)return;const b=y==="rtl",P=n==="left"?b?`right: ${g}`:`left: ${k}`:b?`left: ${k}`:`right: ${g}`,T=r==="bottom"?`bottom: ${m}`:`top: ${v}`;a.current.dataset.motionPopId=o;const S=document.createElement("style");c&&(S.nonce=c);const j=s??document.head;return j.appendChild(S),S.sheet&&S.sheet.insertRule(`
[data-motion-pop-id="${o}"] {
position: absolute !important;
width: ${p}px !important;
height: ${w}px !important;
${P}px !important;
${T}px !important;
}
`),()=>{var L;(L=a.current)==null||L.removeAttribute("data-motion-pop-id"),j.contains(S)&&j.removeChild(S)}},[t]),l.jsx(jP,{isPresent:t,childRef:a,sizeRef:u,pop:i,children:i===!1?e:x.cloneElement(e,{ref:f})})}const TP=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a,anchorY:u,root:c})=>{const d=yn(CP),f=x.useId(),h=x.useRef(n),p=x.useRef(r);Ws(()=>{h.current=n,p.current=r});let w=!0,v=x.useMemo(()=>(w=!1,{id:f,initial:t,isPresent:n,custom:s,onExitComplete:k=>{d.set(k,!0);for(const g of d.values())if(!g)return;r&&r()},register:k=>(d.set(k,!1),()=>{var g;d.delete(k),!h.current&&!d.size&&((g=p.current)==null||g.call(p))})}),[n,d,r]);return i&&w&&(v={...v}),x.useMemo(()=>{d.forEach((k,g)=>d.set(g,!1))},[n]),x.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),e=l.jsx(PP,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:u,root:c,children:e}),l.jsx(Qo.Provider,{value:v,children:e})};function CP(){return new Map}function Mx(e=!0){const t=x.useContext(Qo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=x.useId();x.useEffect(()=>{if(e)return s(i)},[e]);const o=x.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const yi=e=>e.key||"";function Fh(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const EP=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:a="left",anchorY:u="top",root:c})=>{const[d,f]=Mx(o),h=x.useMemo(()=>Fh(e),[e]),p=o&&!d?[]:h.map(yi),w=x.useRef(!0),v=x.useRef(h),k=yn(()=>new Map),g=x.useRef(new Set),[m,y]=x.useState(h),[b,P]=x.useState(h);Ws(()=>{w.current=!1,v.current=h;for(let j=0;j<b.length;j++){const L=yi(b[j]);p.includes(L)?(k.delete(L),g.current.delete(L)):k.get(L)!==!0&&k.set(L,!1)}},[b,p.length,p.join("-")]);const T=[];if(h!==m){let j=[...h];for(let L=0;L<b.length;L++){const N=b[L],O=yi(N);p.includes(O)||(j.splice(L,0,N),T.push(N))}return i==="wait"&&T.length&&(j=T),P(Fh(j)),y(h),null}const{forceRender:S}=x.useContext(Nc);return l.jsx(l.Fragment,{children:b.map(j=>{const L=yi(j),N=o&&!d?!1:h===b||p.includes(L),O=()=>{if(g.current.has(L))return;if(k.has(L))g.current.add(L),k.set(L,!0);else return;let H=!0;k.forEach(oe=>{oe||(H=!1)}),H&&(S==null||S(),P(v.current),o&&(f==null||f()),r&&r())};return l.jsx(TP,{isPresent:N,initial:!w.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,root:c,onExitComplete:N?void 0:O,anchorX:a,anchorY:u,children:j},L)})})},Lx=x.createContext({strict:!1}),zh={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Bh=!1;function NP(){if(Bh)return;const e={};for(const t in zh)e[t]={isEnabled:n=>zh[t].some(r=>!!n[r])};lx(e),Bh=!0}function Ax(){return NP(),fj()}function _P(e){const t=Ax();for(const n in e)t[n]={...t[n],...e[n]};lx(t)}const MP=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Co(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||MP.has(e)}let Dx=e=>!Co(e);function LP(e){typeof e=="function"&&(Dx=t=>t.startsWith("on")?!Co(t):e(t))}try{LP(require("@emotion/is-prop-valid").default)}catch{}function AP(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||be(e[s])||(Dx(s)||n===!0&&Co(s)||!t&&!Co(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const ta=x.createContext({});function DP(e,t){if(ea(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Rs(n)?n:void 0,animate:Rs(r)?r:void 0}}return e.inherit!==!1?t:{}}function RP(e){const{initial:t,animate:n}=DP(e,x.useContext(ta));return x.useMemo(()=>({initial:t,animate:n}),[$h(t),$h(n)])}function $h(e){return Array.isArray(e)?e.join(" "):e}const rd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Rx(e,t,n){for(const r in t)!be(t[r])&&!px(r,n)&&(e[r]=t[r])}function IP({transformTemplate:e},t){return x.useMemo(()=>{const n=rd();return td(n,t,e),Object.assign({},n.vars,n.style)},[t])}function VP(e,t){const n=e.style||{},r={};return Rx(r,n,e),Object.assign(r,IP(e,t)),r}function OP(e,t){const n={},r=VP(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Ix=()=>({...rd(),attrs:{}});function FP(e,t,n,r){const s=x.useMemo(()=>{const i=Ix();return gx(i,t,yx(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Rx(i,e.style,e),s.style={...i,...s.style}}return s}const zP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function sd(e){return typeof e!="string"||e.includes("-")?!1:!!(zP.indexOf(e)>-1||/[A-Z]/u.test(e))}function BP(e,t,n,{latestValues:r},s,i=!1,o){const u=(o??sd(e)?FP:OP)(t,r,s,e),c=AP(t,typeof e=="string",i),d=e!==x.Fragment?{...c,...u,ref:n}:{},{children:f}=t,h=x.useMemo(()=>be(f)?f.get():f,[f]);return x.createElement(e,{...d,children:h})}function $P({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:HP(n,r,s,e),renderState:t()}}function HP(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=$i(i[h]);let{initial:o,animate:a}=e;const u=ea(e),c=ox(e);t&&c&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const f=d?a:o;if(f&&typeof f!="boolean"&&!Jo(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p<h.length;p++){const w=Xc(e,h[p]);if(w){const{transitionEnd:v,transition:k,...g}=w;for(const m in g){let y=g[m];if(Array.isArray(y)){const b=d?y.length-1:0;y=y[b]}y!==null&&(s[m]=y)}for(const m in v)s[m]=v[m]}}}return s}const Vx=e=>(t,n)=>{const r=x.useContext(ta),s=x.useContext(Qo),i=()=>$P(e,t,r,s);return n?i():yn(i)},WP=Vx({scrapeMotionValuesFromProps:nd,createRenderState:rd}),UP=Vx({scrapeMotionValuesFromProps:vx,createRenderState:Ix}),GP=Symbol.for("motionComponentSymbol");function KP(e,t,n){const r=x.useRef(n);x.useInsertionEffect(()=>{r.current=n});const s=x.useRef(null);return x.useCallback(i=>{var a;i&&((a=e.onMount)==null||a.call(e,i)),t&&(i?t.mount(i):t.unmount());const o=r.current;if(typeof o=="function")if(i){const u=o(i);typeof u=="function"&&(s.current=u)}else s.current?(s.current(),s.current=null):o(i);else o&&(o.current=i)},[t])}const Ox=x.createContext({});function Kn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function XP(e,t,n,r,s,i){var y,b;const{visualElement:o}=x.useContext(ta),a=x.useContext(Lx),u=x.useContext(Qo),c=x.useContext(Xs),d=c.reducedMotion,f=c.skipAnimations,h=x.useRef(null),p=x.useRef(!1);r=r||a.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:o,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:i}),p.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const w=h.current,v=x.useContext(Ox);w&&!w.projection&&s&&(w.type==="html"||w.type==="svg")&&YP(h.current,n,s,v);const k=x.useRef(!1);x.useInsertionEffect(()=>{w&&k.current&&w.update(n,u)});const g=n[G0],m=x.useRef(!!g&&typeof window<"u"&&!((y=window.MotionHandoffIsComplete)!=null&&y.call(window,g))&&((b=window.MotionHasOptimisedAnimation)==null?void 0:b.call(window,g)));return Ws(()=>{p.current=!0,w&&(k.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),m.current&&w.animationState&&w.animationState.animateChanges())}),x.useEffect(()=>{w&&(!m.current&&w.animationState&&w.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var P;(P=window.MotionHandoffMarkAsComplete)==null||P.call(window,g)}),m.current=!1),w.enteringChildren=void 0)}),w}function YP(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:u,layoutRoot:c,layoutAnchor:d,layoutCrossfade:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Fx(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Kn(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:u,layoutRoot:c,layoutAnchor:d})}function Fx(e){if(e)return e.options.allowProjection!==!1?e.projection:Fx(e.parent)}function Ua(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&_P(r);const i=n?n==="svg":sd(e),o=i?UP:WP;function a(c,d){let f;const h={...x.useContext(Xs),...c,layoutId:qP(c)},{isStatic:p}=h,w=RP(c),v=o(c,p);if(!p&&typeof window<"u"){QP();const k=ZP(h);f=k.MeasureLayout,w.visualElement=XP(e,v,h,s,k.ProjectionNode,i)}return l.jsxs(ta.Provider,{value:w,children:[f&&w.visualElement?l.jsx(f,{visualElement:w.visualElement,...h}):null,BP(e,c,KP(v,w.visualElement,d),v,p,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=x.forwardRef(a);return u[GP]=e,u}function qP({layoutId:e}){const t=x.useContext(Nc).id;return t&&e!==void 0?t+"-"+e:e}function QP(e,t){x.useContext(Lx).strict}function ZP(e){const t=Ax(),{drag:n,layout:r}=t;if(!n&&!r)return{};const s={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function JP(e,t){if(typeof Proxy>"u")return Ua;const n=new Map,r=(i,o)=>Ua(i,o,e,t),s=(i,o)=>r(i,o);return new Proxy(s,{get:(i,o)=>o==="create"?r:(n.has(o)||n.set(o,Ua(o,void 0,e,t)),n.get(o))})}const eT=(e,t)=>t.isSVG??sd(e)?new Nj(t):new Sj(t,{allowProjection:e!==x.Fragment});class tT extends Sn{constructor(t){super(t),t.animationState||(t.animationState=Dj(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Jo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let nT=0;class rT extends Sn{constructor(){super(...arguments),this.id=nT++,this.isExitComplete=!1}update(){var i;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:o,custom:a}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const u=In(this.node,o,a);if(u){const{transition:c,transitionEnd:d,...f}=u;for(const h in f)(i=this.node.getValue(h))==null||i.jump(f[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const sT={animation:{Feature:tT},exit:{Feature:rT}};function Ys(e){return{point:{x:e.pageX,y:e.pageY}}}const iT=e=>t=>Qc(t)&&e(t,Ys(t));function fs(e,t,n,r){return Is(e,t,iT(n),r)}const zx=({current:e})=>e?e.ownerDocument.defaultView:null,Hh=(e,t)=>Math.abs(e-t);function oT(e,t){const n=Hh(e.x,t.x),r=Hh(e.y,t.y);return Math.sqrt(n**2+r**2)}const Wh=new Set(["auto","scroll"]);class Bx{constructor(t,n,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=w=>{this.handleScroll(w.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=vi(this.lastRawMoveEventInfo,this.transformPagePoint));const w=Ga(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,k=oT(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!v&&!k)return;const{point:g}=w,{timestamp:m}=je;this.history.push({...g,timestamp:m});const{onStart:y,onMove:b}=this.handlers;v||(y&&y(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,w)},this.handlePointerMove=(w,v)=>{this.lastMoveEvent=w,this.lastRawMoveEventInfo=v,this.lastMoveEventInfo=vi(v,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(w,v)=>{this.end();const{onEnd:k,onSessionEnd:g,resumeAnimation:m}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Ga(w.type==="pointercancel"?this.lastMoveEventInfo:vi(v,this.transformPagePoint),this.history);this.startEvent&&k&&k(w,y),g&&g(w,y)},!Qc(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=s||window;const u=Ys(t),c=vi(u,this.transformPagePoint),{point:d}=c,{timestamp:f}=je;this.history=[{...d,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,Ga(c,this.history));const p={passive:!0,capture:!0};this.removeListeners=Us(fs(this.contextWindow,"pointermove",this.handlePointerMove,p),fs(this.contextWindow,"pointerup",this.handlePointerUp,p),fs(this.contextWindow,"pointercancel",this.handlePointerUp,p)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Wh.has(r.overflowX)||Wh.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,s=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:s.x-n.x,y:s.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,s),X.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ft(this.updatePoint)}}function vi(e,t){return t?{point:t(e.point)}:e}function Uh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ga({point:e},t){return{point:e,delta:Uh(e,$x(t)),offset:Uh(e,aT(t)),velocity:lT(t,.1)}}function aT(e){return e[0]}function $x(e){return e[e.length-1]}function lT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=$x(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Je(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&s.timestamp-r.timestamp>Je(t)*2&&(r=e[1]);const i=lt(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function uT(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?te(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?te(n,e,r.max):Math.min(e,n)),e}function Gh(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function cT(e,{top:t,left:n,bottom:r,right:s}){return{x:Gh(e.x,n,s),y:Gh(e.y,t,r)}}function Kh(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function dT(e,t){return{x:Kh(e.x,t.x),y:Kh(e.y,t.y)}}function fT(e,t){let n=.5;const r=ze(e),s=ze(t);return s>r?n=jr(t.min,t.max-r,e.min):r>s&&(n=jr(e.min,e.max-s,t.min)),jt(0,1,n)}function hT(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Tu=.35;function mT(e=Tu){return e===!1?e=0:e===!0&&(e=Tu),{x:Xh(e,"left","right"),y:Xh(e,"top","bottom")}}function Xh(e,t,n){return{min:Yh(e,t),max:Yh(e,n)}}function Yh(e,t){return typeof e=="number"?e:e[t]||0}const pT=new WeakMap;class gT{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ve(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=f=>{n&&this.snapToCursor(Ys(f).point),this.stopAnimation()},o=(f,h)=>{const{drag:p,dragPropagation:w,onDragStart:v}=this.getProps();if(p&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=zS(p),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Et(g=>{let m=this.getAxisMotionValue(g).get()||0;if(At.test(m)){const{projection:y}=this.visualElement;if(y&&y.layout){const b=y.layout.layoutBox[g];b&&(m=ze(b)*(parseFloat(m)/100))}}this.originPoint[g]=m}),v&&X.update(()=>v(f,h),!1,!0),pu(this.visualElement,"transform");const{animationState:k}=this.visualElement;k&&k.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:w,onDirectionLock:v,onDrag:k}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:g}=h;if(w&&this.currentDirection===null){this.currentDirection=yT(g),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,g),this.updateAxis("y",h.point,g),this.visualElement.render(),k&&X.update(()=>k(f,h),!1,!0)},u=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new Bx(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:zx(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,s=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!s||!r)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&X.postRender(()=>a(r,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!wi(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=uT(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,s=this.constraints;t&&Kn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=cT(r.layoutBox,t):this.constraints=!1,this.elastic=mT(n),s!==this.constraints&&!Kn(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Et(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=hT(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Kn(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());const i=xj(r,s.root,this.visualElement.getTransformPagePoint());let o=dT(s.layout.layoutBox,i);if(n){const a=n(mj(o));this.hasMutatedConstraints=!!a,a&&(o=cx(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},c=Et(d=>{if(!wi(d,n,this.currentDirection))return;let f=u&&u[d]||{};(o===!0||o===d)&&(f={min:0,max:0});const h=s?200:1e6,p=s?40:1e7,w={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,w)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return pu(this.visualElement,t),r.start(Kc(t,r,0,n,this.visualElement,!1))}stopAnimation(){Et(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps()[n];return s||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Et(n=>{const{drag:r}=this.getProps();if(!wi(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n],u=i.get()||0;i.set(t[n]-te(o,a,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Kn(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Et(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const u=a.get();s[o]=fT({min:u,max:u},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Et(o=>{if(!wi(o,t,null))return;const a=this.getAxisMotionValue(o),{min:u,max:c}=this.constraints[o];a.set(te(u,c,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;pT.set(this.visualElement,this);const t=this.visualElement.current,n=fs(t,"pointerdown",c=>{const{drag:d,dragListener:f=!0}=this.getProps(),h=c.target,p=h!==t&&GS(h);d&&f&&!p&&this.start(c)});let r;const s=()=>{const{dragConstraints:c}=this.getProps();Kn(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=xT(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),X.read(s);const a=Is(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Et(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=c[f].translate,h.set(h.get()+c[f].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),u&&u(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=Tu,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function qh(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function xT(e,t,n){const r=wu(e,qh(n)),s=wu(t,qh(n));return()=>{r(),s()}}function wi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function yT(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class vT extends Sn{constructor(t){super(t),this.removeGroupControls=Ye,this.removeListeners=Ye,this.controls=new gT(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ye}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ka=e=>(t,n)=>{e&&X.update(()=>e(t,n),!1,!0)};class wT extends Sn{constructor(){super(...arguments),this.removePointerDownListener=Ye}onPointerDown(t){this.session=new Bx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zx(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Ka(t),onStart:Ka(n),onMove:Ka(r),onEnd:(i,o)=>{delete this.session,s&&X.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=fs(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Xa=!1;class kT extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),Xa&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Hi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),Xa=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||X.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),Tr.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;Xa=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Hx(e){const[t,n]=Mx(),r=x.useContext(Nc);return l.jsx(kT,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(Ox),isPresent:t,safeToRemove:n})}const bT={pan:{Feature:wT},drag:{Feature:vT,ProjectionNode:_x,MeasureLayout:Hx}};function Qh(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&X.postRender(()=>i(t,Ys(t)))}class ST extends Sn{mount(){const{current:t}=this.node;t&&(this.unmount=$S(t,(n,r)=>(Qh(this.node,r,"Start"),s=>Qh(this.node,s,"End"))))}unmount(){}}class jT extends Sn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Us(Is(this.node.current,"focus",()=>this.onFocus()),Is(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Zh(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&X.postRender(()=>i(t,Ys(t)))}class PT extends Sn{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=XS(t,(s,i)=>(Zh(this.node,i,"Start"),(o,{success:a})=>Zh(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Cu=new WeakMap,Ya=new WeakMap,TT=e=>{const t=Cu.get(e.target);t&&t(e)},CT=e=>{e.forEach(TT)};function ET({root:e,...t}){const n=e||document;Ya.has(n)||Ya.set(n,{});const r=Ya.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(CT,{root:e,...t})),r[s]}function NT(e,t,n){const r=ET(t);return Cu.set(e,n),r.observe(e),()=>{Cu.delete(e),r.unobserve(e)}}const _T={some:0,all:1};class MT extends Sn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var u;(u=this.stopObserver)==null||u.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:_T[s]},a=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),p=d?f:h;p&&p(c)};this.stopObserver=NT(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(LT(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function LT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const AT={inView:{Feature:MT},tap:{Feature:PT},focus:{Feature:jT},hover:{Feature:ST}},DT={layout:{ProjectionNode:_x,MeasureLayout:Hx}},RT={...sT,...AT,...bT,...DT},Bt=JP(RT,eT);function Eo(e){return typeof window>"u"?!1:e?R0():Uc()}const IT=50,Jh=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),VT=()=>({time:0,x:Jh(),y:Jh()}),OT={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function em(e,t,n,r){const s=n[t],{length:i,position:o}=OT[t],a=s.current,u=n.time;s.current=Math.abs(e[`scroll${o}`]),s.scrollLength=e[`scroll${i}`]-e[`client${i}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=jr(0,s.scrollLength,s.current);const c=r-u;s.velocity=c>IT?0:Ac(s.current-a,c)}function FT(e,t,n){em(e,"x",t,n),em(e,"y",t,n),t.time=n}function zT(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(cs(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const s=r.getBoundingClientRect();r=r.parentElement;const i=r.getBoundingClientRect();n.x+=s.left-i.left,n.y+=s.top-i.top}else if(r instanceof SVGGraphicsElement){const{x:s,y:i}=r.getBBox();n.x+=s,n.y+=i;let o=null,a=r.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=r.parentNode;r=o}else break;return n}const Eu={start:0,center:.5,end:1};function tm(e,t,n=0){let r=0;if(e in Eu&&(e=Eu[e]),typeof e=="string"){const s=parseFloat(e);e.endsWith("px")?r=s:e.endsWith("%")?e=s/100:e.endsWith("vw")?r=s/100*document.documentElement.clientWidth:e.endsWith("vh")?r=s/100*document.documentElement.clientHeight:e=s}return typeof e=="number"&&(r=t*e),n+r}const BT=[0,0];function $T(e,t,n,r){let s=Array.isArray(e)?e:BT,i=0,o=0;return typeof e=="number"?s=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?s=e.split(" "):s=[e,Eu[e]?e:"0"]),i=tm(s[0],n,r),o=tm(s[1],t),i-o}const Qr={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},HT={x:0,y:0};function WT(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function UT(e,t,n){const{offset:r=Qr.All}=n,{target:s=e,axis:i="y"}=n,o=i==="y"?"height":"width",a=s!==e?zT(s,e):HT,u=s===e?{width:e.scrollWidth,height:e.scrollHeight}:WT(s),c={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let d=!t[i].interpolate;const f=r.length;for(let h=0;h<f;h++){const p=$T(r[h],c[o],u[o],a[i]);!d&&p!==t[i].interpolatorOffsets[h]&&(d=!0),t[i].offset[h]=p}d&&(t[i].interpolate=Bc(t[i].offset,_0(r),{clamp:!1}),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=jt(0,1,t[i].interpolate(t[i].current))}function GT(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function KT(e,t,n,r={}){return{measure:s=>{GT(e,r.target,n),FT(e,n,s),(r.offset||r.target)&&UT(e,n,r)},notify:()=>t(n)}}const Gn=new WeakMap,nm=new WeakMap,qa=new WeakMap,rm=new WeakMap,ki=new WeakMap,sm=e=>e===document.scrollingElement?window:e;function Wx(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return Ye;let s=qa.get(t);s||(s=new Set,qa.set(t,s));const i=VT(),o=KT(t,e,i,r);if(s.add(o),!Gn.has(t)){const u=()=>{for(const h of s)h.measure(je.timestamp);X.preUpdate(c)},c=()=>{for(const h of s)h.notify()},d=()=>X.read(u);Gn.set(t,d);const f=sm(t);window.addEventListener("resize",d),t!==document.documentElement&&nm.set(t,wu(t,d)),f.addEventListener("scroll",d),d()}if(n&&!ki.has(t)){const u=Gn.get(t),c={width:t.scrollWidth,height:t.scrollHeight};rm.set(t,c);const d=()=>{const h=t.scrollWidth,p=t.scrollHeight;(c.width!==h||c.height!==p)&&(u(),c.width=h,c.height=p)},f=X.read(d,!0);ki.set(t,f)}const a=Gn.get(t);return X.read(a,!1,!0),()=>{var f;ft(a);const u=qa.get(t);if(!u||(u.delete(o),u.size))return;const c=Gn.get(t);Gn.delete(t),c&&(sm(t).removeEventListener("scroll",c),(f=nm.get(t))==null||f(),window.removeEventListener("resize",c));const d=ki.get(t);d&&(ft(d),ki.delete(t)),rm.delete(t)}}const XT=[[Qr.Enter,"entry"],[Qr.Exit,"exit"],[Qr.Any,"cover"],[Qr.All,"contain"]],im={start:0,end:1};function YT(e){const t=e.trim().split(/\s+/);if(t.length!==2)return;const n=im[t[0]],r=im[t[1]];if(!(n===void 0||r===void 0))return[n,r]}function qT(e){if(e.length!==2)return;const t=[];for(const n of e)if(Array.isArray(n))t.push(n);else if(typeof n=="string"){const r=YT(n);if(!r)return;t.push(r)}else return;return t}function QT(e,t){const n=qT(e);if(!n)return!1;for(let r=0;r<2;r++){const s=n[r],i=t[r];if(s[0]!==i[0]||s[1]!==i[1])return!1}return!0}function id(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[t,n]of XT)if(QT(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}const om=new Map;function am(e){const t={value:0},n=Wx(r=>{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:n}}function Ux({source:e,container:t,...n}){const{axis:r}=n;e&&(t=e);let s=om.get(t);s||(s=new Map,om.set(t,s));const i=n.target??"self";let o=s.get(i);o||(o={},s.set(i,o));const a=r+(n.offset??[]).join(",");return o[a]||(n.target&&Eo(n.target)?id(n.offset)?o[a]=new ViewTimeline({subject:n.target,axis:r}):o[a]=am({container:t,...n}):Eo()?o[a]=new ScrollTimeline({source:t,axis:r}):o[a]=am({container:t,...n})),o[a]}function ZT(e,t){const n=Ux(t),r=t.target?id(t.offset):void 0,s=t.target?Eo(t.target)&&!!r:Eo();return e.attachTimeline({timeline:s?n:void 0,...r&&s&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:i=>(i.pause(),ix(o=>{i.time=i.iterationDuration*o},n))})}function JT(e){return e&&(e.target||e.offset)}function eC(e){return e.length===2}function tC(e,t){return eC(e)||JT(t)?Wx(n=>{e(n[t.axis].progress,n)},t):ix(e,Ux(t))}function Gx(e,{axis:t="y",container:n=document.scrollingElement,...r}={}){if(!n)return Ye;const s={axis:t,container:n,...r};return typeof e=="function"?tC(e,s):ZT(e,s)}const nC=()=>({scrollX:vt(0),scrollY:vt(0),scrollXProgress:vt(0),scrollYProgress:vt(0)}),ur=e=>e?!e.current:!1;function lm(e,t,n,r){return{factory:s=>{let i;const o=()=>{if(ur(n)||ur(r)){Tr.read(o);return}i=Gx(s,{...t,axis:e,container:(n==null?void 0:n.current)||void 0,target:(r==null?void 0:r.current)||void 0})};return Tr.read(o),()=>{ex(o),i==null||i()}},times:[0,1],keyframes:[0,1],ease:s=>s,duration:1}}function rC(e,t){return typeof window>"u"?!1:e?R0()&&!!id(t):Uc()}function Kx({container:e,target:t,...n}={}){const r=yn(nC);rC(t,n.offset)&&(r.scrollXProgress.accelerate=lm("x",n,e,t),r.scrollYProgress.accelerate=lm("y",n,e,t));const s=x.useRef(null),i=x.useRef(!1),o=x.useCallback(()=>(s.current=Gx((a,{x:u,y:c})=>{r.scrollX.set(u.current),r.scrollXProgress.set(u.progress),r.scrollY.set(c.current),r.scrollYProgress.set(c.progress)},{...n,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0}),()=>{var a;(a=s.current)==null||a.call(s)}),[e,t,JSON.stringify(n.offset)]);return Ws(()=>{if(i.current=!1,ur(e)||ur(t)){i.current=!0;return}else return o()},[o]),x.useEffect(()=>{if(!i.current)return;let a;const u=()=>{const c=ur(e),d=ur(t);!c&&!d&&(a=o())};return Tr.read(u),()=>{ex(u),a==null||a()}},[o]),r}function Xx(e){const t=yn(()=>vt(e)),{isStatic:n}=x.useContext(Xs);if(n){const[,r]=x.useState(e);x.useEffect(()=>t.on("change",r),[])}return t}function Yx(e,t){const n=Xx(t()),r=()=>n.set(t());return r(),Ws(()=>{const s=()=>X.preRender(r,!1,!0),i=e.map(o=>o.on("change",s));return()=>{i.forEach(o=>o()),ft(r)}}),n}function sC(e){us.current=[],e();const t=Yx(us.current,e);return us.current=void 0,t}function Jt(e,t,n,r){if(typeof e=="function")return sC(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!="function")return iC(e,t,n,r);const o=typeof t=="function"?t:sj(t,n,r),a=Array.isArray(e)?um(e,o):um([e],([c])=>o(c)),u=Array.isArray(e)?void 0:e.accelerate;return u&&!u.isTransformed&&typeof t!="function"&&Array.isArray(n)&&(r==null?void 0:r.clamp)!==!1&&(a.accelerate={...u,times:t,keyframes:n,isTransformed:!0}),a}function um(e,t){const n=yn(()=>[]);return Yx(e,()=>{n.length=0;const r=e.length;for(let s=0;s<r;s++)n[s]=e[s].get();return t(n)})}function iC(e,t,n,r){const s=yn(()=>Object.keys(n)),i=yn(()=>({}));for(const o of s)i[o]=Jt(e,t,n[o],r);return i}function oC(e,t={}){const{isStatic:n}=x.useContext(Xs),r=()=>be(e)?e.get():e;if(n)return Jt(r);const s=Xx(r());return x.useInsertionEffect(()=>ij(s,e,t),[s,JSON.stringify(t)]),s}function aC(e,t={}){return oC(e,{type:"spring",...t})}function lC(){const{scrollYProgress:e}=Kx(),t=aC(e,{stiffness:200,damping:30,restDelta:.001});return l.jsx(Bt.div,{style:{scaleX:t},className:"fixed left-0 top-0 z-40 h-0.5 w-full origin-left bg-brand-500"})}const uC=()=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"h-10 w-10",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.7 6.3a4 4 0 0 0-5.5 4.5L3 17l2 2 6.2-6.2a4 4 0 0 0 4.5-5.5l-2.6 2.6-2-2 2.6-2.6Z"})});function qs({message:e,fullScreen:t=!1}){const{t:n}=Ce(),r=l.jsxs("div",{className:"mx-auto max-w-md text-center",children:[l.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-brand-100 text-brand-600 dark:bg-brand-900/40 dark:text-brand-400",children:l.jsx(uC,{})}),l.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:n("maintenance.title")}),l.jsx("p",{className:"text-neutral-600 dark:text-neutral-300",children:e||n("maintenance.defaultMessage")})]});return t?l.jsxs("div",{className:"relative flex min-h-screen items-center justify-center bg-white px-4 dark:bg-neutral-950",children:[r,l.jsxs(U,{to:"/admin/login","aria-label":n("maintenance.login"),title:n("maintenance.login"),className:"fixed bottom-4 right-4 flex items-center gap-2 rounded-full border border-neutral-200 bg-white px-3 py-2 text-sm font-medium text-neutral-600 shadow-sm transition hover:border-brand-500 hover:text-brand-600 dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-300 dark:hover:text-brand-400",children:[l.jsx(Wk,{className:"h-4 w-4"}),n("maintenance.login")]})]}):l.jsx("div",{className:"mx-auto max-w-6xl px-4 py-20 sm:px-6",children:r})}const cm=l.jsx(l.Fragment,{children:'Wartungsmodus aktiv – Besucher sehen aktuell eine Wartungsmeldung. Du siehst diese Seite nur, weil du die Berechtigung "Wartungsmodus umgehen" hast.'});function Qs({inline:e=!1}){return e?l.jsx("div",{className:"mb-8 rounded-lg bg-amber-500 px-4 py-2 text-center text-xs font-semibold text-white",children:cm}):l.jsx("div",{className:"bg-amber-500 px-4 py-2 text-center text-xs font-semibold text-white",children:cm})}function cC({onClose:e}){const{consent:t,saveCustom:n}=Lr(),[r,s]=x.useState(t.external),[i,o]=x.useState(t.analytics),{t:a}=Ce();return l.jsx("div",{className:"fixed inset-0 z-[60] flex items-center justify-center bg-black/50 p-4",onClick:e,children:l.jsxs("div",{className:"w-full max-w-md rounded-xl bg-white p-6 dark:bg-neutral-900",onClick:u=>u.stopPropagation(),children:[l.jsx("h2",{className:"mb-1 text-lg font-bold text-neutral-900 dark:text-white",children:a("cookieConsent.modalTitle")}),l.jsxs("p",{className:"mb-4 text-sm text-neutral-600 dark:text-neutral-300",children:[a("cookieConsent.modalIntro")," ",l.jsx(U,{to:"/datenschutz",className:"underline hover:text-brand-500",onClick:e,children:a("cookieConsent.privacyPolicy")}),"."]}),l.jsxs("div",{className:"space-y-3",children:[l.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-neutral-200 p-3 dark:border-neutral-700",children:[l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-semibold text-neutral-800 dark:text-neutral-100",children:a("cookieConsent.necessaryTitle")}),l.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:a("cookieConsent.necessaryDesc")})]}),l.jsx("input",{type:"checkbox",checked:!0,disabled:!0,className:"mt-1 h-4 w-4 shrink-0"})]}),l.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-neutral-200 p-3 dark:border-neutral-700",children:[l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-semibold text-neutral-800 dark:text-neutral-100",children:a("cookieConsent.externalTitle")}),l.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:a("cookieConsent.externalDesc")})]}),l.jsx("input",{type:"checkbox",checked:r,onChange:u=>s(u.target.checked),className:"mt-1 h-4 w-4 shrink-0"})]}),l.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-neutral-200 p-3 dark:border-neutral-700",children:[l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-semibold text-neutral-800 dark:text-neutral-100",children:a("cookieConsent.analyticsTitle")}),l.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:a("cookieConsent.analyticsDesc")})]}),l.jsx("input",{type:"checkbox",checked:i,onChange:u=>o(u.target.checked),className:"mt-1 h-4 w-4 shrink-0"})]})]}),l.jsxs("div",{className:"mt-5 flex justify-end gap-2",children:[l.jsx("button",{type:"button",onClick:e,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:a("cookieConsent.cancel")}),l.jsx("button",{type:"button",onClick:()=>n({external:r,analytics:i}),className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:a("cookieConsent.saveSelection")})]})]})})}function dC(){const{decided:e,settingsOpen:t,acceptAll:n,rejectNonEssential:r,openSettings:s,closeSettings:i}=Lr(),{t:o}=Ce();return l.jsxs(l.Fragment,{children:[!e&&l.jsx("div",{className:"fixed inset-x-0 bottom-0 z-50 border-t border-neutral-200 bg-white/95 p-4 shadow-lg backdrop-blur dark:border-neutral-800 dark:bg-neutral-900/95 sm:p-5",children:l.jsxs("div",{className:"mx-auto flex max-w-6xl flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[l.jsxs("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:[o("cookieConsent.bannerText")," ",o("cookieConsent.moreInfo")," ",l.jsx(U,{to:"/datenschutz",className:"underline hover:text-brand-500",children:o("cookieConsent.privacyPolicy")}),"."]}),l.jsxs("div",{className:"flex flex-wrap gap-2 sm:shrink-0",children:[l.jsx("button",{type:"button",onClick:s,className:"rounded-md border border-neutral-300 px-3 py-2 text-sm dark:border-neutral-700",children:o("cookieConsent.settings")}),l.jsx("button",{type:"button",onClick:r,className:"rounded-md border border-neutral-300 px-3 py-2 text-sm dark:border-neutral-700",children:o("cookieConsent.onlyNecessary")}),l.jsx("button",{type:"button",onClick:n,className:"rounded-md bg-brand-500 px-3 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:o("cookieConsent.acceptAll")})]})]})}),t&&l.jsx(cC,{onClose:i})]})}function fC(){const{consent:e}=Lr(),{ga_measurement_id:t}=Pt(),n=x.useRef(!1);return x.useEffect(()=>{if(!t||!e.analytics||n.current)return;n.current=!0;const r=document.createElement("script");r.src=`https://www.googletagmanager.com/gtag/js?id=${t}`,r.async=!0,document.head.appendChild(r),window.dataLayer=window.dataLayer||[];function s(...i){window.dataLayer.push(i)}window.gtag=s,s("js",new Date),s("config",t,{anonymize_ip:!0})},[t,e.analytics]),null}const qx=x.createContext({global:{enabled:!1,message:null},services:{enabled:!1,message:null},vehicles:{enabled:!1,message:null},bypass:!1}),hC=qx.Provider;function na(){return x.useContext(qx)}const od=x.createContext({}),mC=od.Provider;function $n(e,t){const n=e[t];if(!n)return{};const r={};return n.font_family&&(r.fontFamily=n.font_family),n.font_size&&(r.fontSize=n.font_size),n.color&&(r.color=n.color),r}function Re(e){const t=x.useContext(od);return $n(t,e)}function ad(){return x.useContext(od)}const pC=[{label:"Systemschrift",value:""},{label:"Serifenlos (Arial)",value:"Arial, Helvetica, sans-serif"},{label:"Serif (Georgia)",value:'Georgia, "Times New Roman", serif'},{label:"Klassisch (Times New Roman)",value:'"Times New Roman", Times, serif'},{label:"Modern (Verdana)",value:"Verdana, Geneva, sans-serif"},{label:"Schreibmaschine (Courier New)",value:'"Courier New", Courier, monospace'}],ld=x.createContext({fonts:[],refresh:()=>{}}),Qx=ld.Provider;function Zx(){return x.useContext(ld).fonts}function yN(){return x.useContext(ld).refresh}function vN(){const e=Zx();return[...pC,...e.map(t=>({label:t.name,value:t.font_family}))]}function gC(e){const t=/\.([a-z0-9]+)$/i.exec(e||"");return t?t[1].toLowerCase():""}const xC={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype"};function Jx(){const e=Zx();if(e.length===0)return null;const t=e.map(n=>{const r=xC[gC(n.file_path)]||"woff2";return`@font-face { font-family: "${n.font_family}"; src: url("${n.file_path}") format("${r}"); font-display: swap; }`}).join(`
`);return l.jsx("style",{children:t})}const yC=150,vC=300,wC=80,kC=5e3;function bC(){return l.jsx("div",{className:"fixed inset-0 z-[200] flex items-center justify-center bg-white dark:bg-neutral-950",children:l.jsx("div",{className:"h-10 w-10 animate-spin rounded-full border-4 border-neutral-200 border-t-brand-500 dark:border-neutral-800 dark:border-t-brand-500"})})}function SC({enabled:e,children:t}){const n=rt(),[r,s]=x.useState(!e),[i,o]=x.useState(!1),a=x.useRef(null);return x.useLayoutEffect(()=>{const u=a.current;if(!e||!u){s(!0),o(!1);return}s(!1),o(!1);let c=!1,d=0,f=null;const h=new Set,p=setTimeout(()=>{d=Date.now(),o(!0)},yC),w=()=>{s(!0),o(!1)},v=()=>{c=!0,clearTimeout(p),clearTimeout(f),clearTimeout(T),b.disconnect(),P()},k=()=>{if(c)return;v();const S=d?vC-(Date.now()-d):0;S>0?setTimeout(w,S):w()},g=()=>{clearTimeout(f),f=setTimeout(()=>{h.size===0&&Kw()===0&&k()},wC)},m=S=>{if(h.has(S)||S.complete||S.getBoundingClientRect().top>=window.innerHeight)return;S.loading==="lazy"&&(S.loading="eager"),h.add(S);const j=()=>{h.delete(S),S.removeEventListener("load",j),S.removeEventListener("error",j),g()};S.addEventListener("load",j),S.addEventListener("error",j)},y=S=>{var j;S.nodeType===1&&(S.tagName==="IMG"&&m(S),(j=S.querySelectorAll)==null||j.call(S,"img").forEach(m))},b=new MutationObserver(S=>{S.forEach(j=>j.addedNodes.forEach(y)),g()});b.observe(u,{childList:!0,subtree:!0});const P=Xw(g),T=setTimeout(k,kC);return u.querySelectorAll("img").forEach(m),g(),()=>{c||v()}},[n.pathname,e]),l.jsxs("div",{className:"relative",children:[l.jsx("div",{ref:a,style:e?{visibility:r?"visible":"hidden"}:void 0,children:t}),e&&i&&l.jsx(bC,{})]})}const jC={global:{enabled:!1,message:null},services:{enabled:!1,message:null},vehicles:{enabled:!1,message:null}},PC={mon:{open:"09:00",close:"18:00",closed:!1},tue:{open:"09:00",close:"18:00",closed:!1},wed:{open:"09:00",close:"18:00",closed:!1},thu:{open:"09:00",close:"18:00",closed:!1},fri:{open:"09:00",close:"18:00",closed:!1},sat:{open:"10:00",close:"13:00",closed:!1},sun:{open:"",close:"",closed:!0}},TC={phone:"09373 20 62 390",whatsapp:null,contact_email:"info@hifi-planet-amorbach.de",address_street:"Boxbrunner Str. 20a",address_zip:"63916",address_city:"Amorbach",logo_path:null,logo_dark_path:null,business_hours:PC,hero_image_path:null,ga_measurement_id:null,package_card_theme:"graphite",package_card_layout:"strip",package_wheel_hint_interval:8,package_card_width:210,package_card_height:480,vehicle_tile_width:240,vehicle_tile_height:180,gallery_card_text_x:0,gallery_card_text_y:100,site_font:null,page_loader_enabled:1,has_downloads:!1},CC=["/impressum","/datenschutz","/agb"];function EC(){const[e,t]=x.useState(null),[n,r]=x.useState(TC),[s,i]=x.useState({}),[o,a]=x.useState([]),{loading:u,hasPermission:c}=Hs(),d=rt();if(x.useEffect(()=>{Z.get("/maintenance").then(t).catch(()=>t(jC)),Z.get("/site-settings").then(r).catch(()=>{}),Z.get("/text-styles").then(i).catch(()=>{}),Z.get("/custom-fonts").then(a).catch(()=>{})},[]),x.useEffect(()=>{n.site_font?document.documentElement.style.setProperty("--site-font",n.site_font):document.documentElement.style.removeProperty("--site-font")},[n.site_font]),e===null||u)return l.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"});const f=c("maintenance.bypass"),h=CC.includes(d.pathname);return e.global.enabled&&!f&&!h?l.jsx(Af,{children:l.jsx(qs,{message:e.global.message,fullScreen:!0})}):l.jsx(Af,{children:l.jsx(hC,{value:{...e,bypass:f},children:l.jsx(Pb,{value:n,children:l.jsx(mC,{value:s,children:l.jsx(Qx,{value:{fonts:o,refresh:()=>{}},children:l.jsxs("div",{className:"page-texture flex min-h-screen flex-col text-neutral-900 dark:text-neutral-100",children:[l.jsx(Jx,{}),f&&e.global.enabled&&l.jsx(Qs,{}),l.jsx(lC,{}),l.jsx(Mb,{}),l.jsx("main",{className:"flex-1",children:l.jsx(SC,{enabled:d.pathname!=="/"&&!!n.page_loader_enabled,children:l.jsx(Ec,{})})}),l.jsx(Ob,{}),l.jsx(dC,{}),l.jsx(fC,{})]})})})})})})}const dm="/assets/logo-BNfZDkmN.png",NC={home:"M3 11.5 12 4l9 7.5M5 10v9a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1v-9",tag:"M4 4h7l9 9-7 7-9-9V4Zm3.5 3.5h.01",car:"M3 13.5 4.5 9A2 2 0 0 1 6.4 7.5h11.2A2 2 0 0 1 19.5 9L21 13.5M3 13.5v4a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1h12v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-4M3 13.5h18M6.5 16.5h.01M17.5 16.5h.01",box:"M12 3 4 7.5v9L12 21l8-4.5v-9L12 3Zm0 9 8-4.5M12 12v9M12 12 4 7.5",mail:"M4 6h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Zm0 0 8 7 8-7",users:"M16 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-4 6c-4 0-7 2-7 4.5V19h14v-1.5C19 15 16 13 12 13Z",shield:"M12 3 4 6v6c0 4.5 3.4 7.7 8 9 4.6-1.3 8-4.5 8-9V6l-8-3Zm-1.5 9.5 4-4 1 1-5 5-2.5-2.5 1-1 1.5 1.5Z",lock:"M6 10V8a6 6 0 1 1 12 0v2m-13 0h14a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1Zm7 5v2",briefcase:"M4 7h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1Zm4 0V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 12h18",sliders:"M4 6h16M4 6a2 2 0 1 0 4 0 2 2 0 0 0-4 0Zm16 6H4m10 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0ZM4 18h16m-12 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0Z",image:"M4 5h16a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Zm2 12 4.5-5.5L14 16l2.5-3L20 17H6ZM8 9.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",help:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-5.5v.01M9.5 9.25a2.5 2.5 0 1 1 3.5 2.29c-.7.32-1 .77-1 1.46v.3",download:"M12 4v11m0 0-4-4m4 4 4-4M5 19h14"},_C=({path:e})=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",className:"h-5 w-5 shrink-0",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e})});function MC(){const{logout:e,user:t,hasPermission:n}=Hs(),r=Yo(),[s,i]=x.useState(!1),[o,a]=x.useState(0),[u,c]=x.useState([]);x.useEffect(()=>{n("contact.manage")&&Z.get("/contact").then(v=>a(v.filter(k=>k.status==="new").length)).catch(()=>{})},[]);const d=()=>Z.get("/custom-fonts").then(c).catch(()=>{});x.useEffect(()=>{d()},[]);const f=[{title:null,links:[{to:"/admin",label:"Dashboard",icon:"home",end:!0},{to:"/admin/account",label:"Mein Konto",icon:"lock"}]},{title:"Fahrzeug-Katalog",links:[{to:"/admin/brands",label:"Marken",icon:"tag",permission:"brands.manage"},{to:"/admin/models",label:"Modelle",icon:"car",permission:"models.manage"},{to:"/admin/packages",label:"Pakete",icon:"box",permission:"packages.manage"}]},{title:"Website",links:[{to:"/admin/home-sections",label:"Startseite",icon:"home",permission:"content.manage"},{to:"/admin/services",label:"Leistungen",icon:"briefcase",permission:"services.manage"},{to:"/admin/faqs",label:"FAQ",icon:"help",permission:"content.manage"},{to:"/admin/partners",label:"Partner",icon:"tag",permission:"content.manage"},{to:"/admin/downloads",label:"Downloads",icon:"download",permission:"downloads.manage"}]},{title:"Bildergalerie",links:[{to:"/admin/gallery-brands",label:"Marken",icon:"tag",permission:"gallery.manage"},{to:"/admin/gallery-projects",label:"Projekte",icon:"image",permission:"gallery.manage"}]},{title:"Kunden",links:[{to:"/admin/contact-requests",label:"Kontaktanfragen",icon:"mail",permission:"contact.manage",badge:o}]},{title:"Verwaltung",links:[{to:"/admin/users",label:"Benutzer",icon:"users",permission:"users.manage"},{to:"/admin/permission-groups",label:"Berechtigungsgruppen",icon:"shield",permission:"permission_groups.manage"},{to:"/admin/settings",label:"Einstellungen",icon:"sliders",permission:"settings.manage"}]}].map(v=>({...v,links:v.links.filter(k=>!k.permission||n(k.permission))})).filter(v=>v.links.length>0),h=async()=>{await e(),r("/admin/login")},p=({isActive:v})=>`flex items-center justify-between gap-2 rounded-md px-3 py-2 text-sm font-medium transition ${v?"bg-brand-500 text-white":"text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,w=({onNavigate:v})=>l.jsx("nav",{className:"space-y-5",children:f.map((k,g)=>l.jsxs("div",{children:[k.title&&l.jsx("p",{className:"mb-1.5 px-3 text-xs font-semibold uppercase tracking-wide text-neutral-400 dark:text-neutral-500",children:k.title}),l.jsx("div",{className:"space-y-1",children:k.links.map(m=>l.jsxs(Rw,{to:m.to,end:m.end,className:p,onClick:v,children:[l.jsxs("span",{className:"flex items-center gap-2.5",children:[l.jsx(_C,{path:NC[m.icon]}),m.label]}),!!m.badge&&l.jsx("span",{className:"rounded-full bg-red-500 px-2 py-0.5 text-xs font-bold text-white",children:m.badge})]},m.to))})]},g))});return l.jsx(Qx,{value:{fonts:u,refresh:d},children:l.jsxs("div",{className:"flex min-h-screen bg-neutral-50 text-neutral-900 dark:bg-neutral-950 dark:text-neutral-100",children:[l.jsx(Jx,{}),l.jsxs("aside",{className:"hidden w-60 shrink-0 border-r border-neutral-200 p-4 dark:border-neutral-800 sm:block",children:[l.jsxs("div",{className:"mb-6 flex items-center gap-2 px-3",children:[l.jsxs(U,{to:"/",className:"rounded-lg px-2 py-1",children:[l.jsx("img",{src:dm,alt:"HifiPlanet",className:"h-7 w-auto dark:hidden"}),l.jsx("img",{src:tu,alt:"HifiPlanet",className:"hidden h-7 w-auto dark:block"})]}),l.jsx("span",{className:"text-sm font-semibold text-neutral-500 dark:text-neutral-400",children:"Admin"})]}),l.jsx(w,{})]}),l.jsxs("div",{className:"flex-1",children:[l.jsxs("header",{className:"border-b border-neutral-200 dark:border-neutral-800",children:[l.jsxs("div",{className:"flex items-center justify-between px-4 py-3 sm:px-6",children:[l.jsxs("div",{className:"flex items-center gap-2 sm:hidden",children:[l.jsx("button",{onClick:()=>i(v=>!v),"aria-label":"Menü öffnen",className:"rounded-md p-2 text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800",children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-6 w-6",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})})}),l.jsxs(U,{to:"/",className:"rounded-lg px-1.5 py-0.5",children:[l.jsx("img",{src:dm,alt:"HifiPlanet",className:"h-6 w-auto dark:hidden"}),l.jsx("img",{src:tu,alt:"HifiPlanet",className:"hidden h-6 w-auto dark:block"})]})]}),l.jsxs("p",{className:"hidden text-sm text-neutral-500 dark:text-neutral-400 sm:block",children:["Angemeldet als ",t==null?void 0:t.username,t!=null&&t.is_super_admin?" · Super-Admin":""]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Jg,{}),l.jsx("button",{onClick:h,className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm font-medium text-neutral-700 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",children:"Abmelden"})]})]}),s&&l.jsx("div",{className:"border-t border-neutral-200 px-4 py-3 dark:border-neutral-800 sm:hidden",children:l.jsx(w,{onNavigate:()=>i(!1)})})]}),l.jsx("main",{className:"p-4 sm:p-6",children:l.jsx(x.Suspense,{fallback:l.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}),children:l.jsx(Ec,{})})})]})]})})}function LC(){const{user:e,loading:t}=Hs();return t?l.jsx("div",{className:"flex min-h-screen items-center justify-center text-neutral-500",children:"Lädt…"}):e?l.jsx(Ec,{}):l.jsx(Ls,{to:"/admin/login",replace:!0})}function De({permission:e,children:t}){const{hasPermission:n}=Hs();return(Array.isArray(e)?e:[e]).some(i=>n(i))?t:l.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-8 text-center dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsx("h1",{className:"mb-2 text-lg font-bold text-neutral-900 dark:text-white",children:"Keine Berechtigung"}),l.jsx("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:"Du hast keinen Zugriff auf diesen Bereich. Bitte wende dich an einen Administrator, falls du hier Zugriff brauchst."})]})}function Qa(e,t,n="name"){if(!t)return;let r=document.head.querySelector(`meta[${n}="${e}"]`);r||(r=document.createElement("meta"),r.setAttribute(n,e),document.head.appendChild(r)),r.setAttribute("content",t)}function AC(e){let t=document.head.querySelector('link[rel="canonical"]');t||(t=document.createElement("link"),t.setAttribute("rel","canonical"),document.head.appendChild(t)),t.setAttribute("href",`https://hifi-planet.de${e}`)}function st({title:e,description:t,path:n}){x.useEffect(()=>{e&&(document.title=`${e} | HifiPlanet`,Qa("og:title",`${e} | HifiPlanet`,"property")),t&&(Qa("description",t),Qa("og:description",t,"property")),n&&AC(n)},[e,t,n])}const DC=[.16,1,.3,1],fm={up:{y:40},left:{x:-56},right:{x:56}};function RC(e){return{hidden:{opacity:0,scale:.96,filter:"blur(8px)",...fm[e]||fm.up},visible:{opacity:1,scale:1,x:0,y:0,filter:"blur(0px)"}}}const IC={hidden:{x:"-130%"},visible:{x:"230%",transition:{duration:1.1,ease:"easeInOut",delay:.4}}};function Se({children:e,direction:t="up",className:n="",index:r=0,shine:s=!1,style:i}){const o=Math.min(r*.09,.45);return l.jsxs(Bt.div,{className:n,style:{position:"relative",overflow:"hidden",...i},initial:"hidden",whileInView:"visible",viewport:{once:!0,amount:.25,margin:"-100px"},variants:RC(t),transition:{duration:.75,ease:DC,delay:o},children:[e,s&&l.jsx(Bt.div,{"aria-hidden":!0,variants:IC,className:"pointer-events-none absolute inset-y-0 -left-1/3 w-1/3 rotate-12 bg-gradient-to-r from-transparent via-white/40 to-transparent"})]})}function VC({items:e}){const[t,n]=x.useState(null);return l.jsx("div",{className:"divide-y divide-neutral-200 rounded-xl border border-neutral-200 bg-white dark:divide-neutral-800 dark:border-neutral-800 dark:bg-neutral-900",children:e.map((r,s)=>{const i=t===s;return l.jsxs("div",{children:[l.jsxs("button",{onClick:()=>n(i?null:s),className:"flex w-full items-center justify-between gap-4 px-5 py-4 text-left","aria-expanded":i,children:[l.jsx("span",{className:"font-medium text-neutral-900 dark:text-white",children:r.question}),l.jsx(Bt.svg,{animate:{rotate:i?180:0},transition:{duration:.2},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-5 w-5 shrink-0 text-neutral-500",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6 9 6 6 6-6"})})]}),l.jsx(EP,{initial:!1,children:i&&l.jsx(Bt.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25,ease:"easeInOut"},className:"overflow-hidden",children:l.jsx("p",{className:"px-5 pb-4 text-sm text-neutral-600 dark:text-neutral-300",children:r.answer})})})]},r.question)})})}function ey({count:e=5,className:t="h-4 w-4"}){return l.jsx("div",{className:"flex gap-0.5 text-amber-400",children:Array.from({length:e}).map((n,r)=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:t,children:l.jsx("path",{d:"M10 1.5l2.6 5.6 6.1.6-4.6 4.1 1.3 6-5.4-3.1-5.4 3.1 1.3-6-4.6-4.1 6.1-.6L10 1.5z"})},r))})}const OC=70;function FC({testimonials:e}){const t=x.useRef(null),n=x.useRef(null),r=x.useRef({pos:0,half:0,hovering:!1,dragging:!1,dragStartX:0,dragStartPos:0,lastTime:null,rafId:null}).current;x.useLayoutEffect(()=>{const i=n.current,o=window.matchMedia("(prefers-reduced-motion: reduce)").matches,a=()=>{i.style.transform=`translateX(${r.pos}px)`},u=m=>{if(r.half<=0)return m;for(;m>0;)m-=r.half;for(;m<=-r.half;)m+=r.half;return m},c=()=>{r.half=i.scrollWidth/2,r.pos===0?r.pos=-r.half:r.pos=u(r.pos),a()};c();const d=new ResizeObserver(c);d.observe(i);const f=m=>{r.lastTime===null&&(r.lastTime=m);const y=(m-r.lastTime)/1e3;r.lastTime=m,!r.dragging&&!r.hovering&&!o&&(r.pos=u(r.pos+OC*y),a()),r.rafId=requestAnimationFrame(f)};r.rafId=requestAnimationFrame(f);const h=t.current,p=()=>{r.hovering=!0},w=()=>{r.hovering=!1},v=m=>{r.dragging=!0,r.dragStartX=m.clientX,r.dragStartPos=r.pos,h.setPointerCapture(m.pointerId),h.classList.add("cursor-grabbing"),h.classList.remove("cursor-grab")},k=m=>{r.dragging&&(r.pos=u(r.dragStartPos+(m.clientX-r.dragStartX)),a())},g=m=>{r.dragging&&(r.dragging=!1,h.hasPointerCapture(m.pointerId)&&h.releasePointerCapture(m.pointerId),h.classList.remove("cursor-grabbing"),h.classList.add("cursor-grab"))};return h.addEventListener("pointerenter",p),h.addEventListener("pointerleave",w),h.addEventListener("pointerdown",v),h.addEventListener("pointermove",k),h.addEventListener("pointerup",g),h.addEventListener("pointercancel",g),()=>{cancelAnimationFrame(r.rafId),d.disconnect(),h.removeEventListener("pointerenter",p),h.removeEventListener("pointerleave",w),h.removeEventListener("pointerdown",v),h.removeEventListener("pointermove",k),h.removeEventListener("pointerup",g),h.removeEventListener("pointercancel",g)}},[e.length]);const s=[...e,...e];return l.jsx("div",{ref:t,className:"marquee-viewport cursor-grab touch-pan-y select-none overflow-hidden",children:l.jsx("div",{ref:n,className:"marquee-track flex w-max gap-5",children:s.map((i,o)=>l.jsx("div",{className:"w-64 shrink-0 sm:w-72 lg:w-80",children:l.jsxs("div",{className:"relative flex h-full flex-col overflow-hidden rounded-xl border border-neutral-200 bg-white p-6 shadow-sm transition-shadow duration-300 hover:shadow-lg dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 32 24",className:"absolute -right-1 -top-1 h-16 w-16 text-brand-500/10 dark:text-brand-400/10",children:l.jsx("path",{fill:"currentColor",d:"M9.4 0C4.4 3.5 1 9.1 1 15.3 1 20.6 4.3 24 8.4 24c3.8 0 6.6-3 6.6-6.6 0-3.4-2.4-5.9-5.4-5.9-.6 0-1.4.1-1.6.2C8.5 8.5 11.6 4.6 14.6 2.6L9.4 0zm16.5 0c-4.8 3.5-8.3 9.1-8.3 15.3 0 5.3 3.3 8.6 7.5 8.6 3.7 0 6.6-3 6.6-6.6 0-3.4-2.5-5.9-5.4-5.9-.6 0-1.4.1-1.6.2.5-3.3 3.6-7.1 6.7-9.1L25.9 0z"})}),l.jsx(ey,{className:"relative z-10 mb-3 h-4 w-4",count:i.rating||5}),l.jsxs("p",{className:"relative z-10 mb-4 line-clamp-6 flex-1 text-sm leading-relaxed text-neutral-600 dark:text-neutral-300",children:["„",i.text,'"']}),l.jsxs("div",{className:"relative z-10 mt-auto flex items-center gap-3",children:[i.photo?l.jsx("img",{src:i.photo,alt:"",referrerPolicy:"no-referrer",className:"h-9 w-9 shrink-0 rounded-full object-cover"}):l.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-brand-100 text-sm font-semibold text-brand-700 dark:bg-brand-900/40 dark:text-brand-300",children:i.name.charAt(0).toUpperCase()}),l.jsx("p",{className:"text-sm font-semibold text-neutral-900 dark:text-white",children:i.name})]})]})},`${i.name}-${o}`))})})}function No(e,t,n={x:0,y:0}){const r=Math.max(0,Math.min(100,e==null?n.x:Number(e)||0)),s=Math.max(0,Math.min(100,t==null?n.y:Number(t)||0));return{left:`${r}%`,top:`${s}%`,transform:`translate(-${r}%, -${s}%)`}}const zC="/assets/gallery-dash2-CEVCErVK.webp",ty="/assets/gallery-amp-purple-CESAKuOf.webp",BC="/assets/gallery-speaker-CUXQZ49Q.webp",ny="/assets/gallery-subs-COSd4seJ.webp",ry="/assets/gallery-dash-Cg-7v9qo.webp",$C="/assets/hero-trunk-Dp4_JHDh.webp",HC="/assets/gallery-rear-8cIXPC7T.webp",WC="/assets/hero-highlight-Co4f1Kj5.webp",UC="/assets/youtube-hintergrund-BqSbCrLQ.mp4",bi={left:"text-left",center:"text-center",right:"text-right"},GC={left:"",center:"mx-auto",right:"ml-auto"},KC={eyebrow_de:"",eyebrow_en:"",title_de:"",title_en:"",body_html_de:"",body_html_en:"",text_align:"center",text_align_x:50,text_align_y:50,button_label_de:"",button_label_en:"",button_url:"",font_family:null};function hm({label:e,url:t,className:n,style:r}){return!e||!t?null:t.startsWith("/")?l.jsx(U,{to:t,className:n,style:r,children:e}):l.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:n,style:r,children:e})}const XC=[{src:ny,width:900,height:600},{src:ty,width:900,height:600},{src:BC,width:900,height:1200},{src:ry,width:900,height:814},{src:HC,width:900,height:1200},{src:$C,width:1920,height:1280}];function YC(){const{hero_image_path:e}=Pt(),t=e||zC,{t:n,language:r}=Ce(),s=n("home.stats"),i=n("home.galleryAlts"),o=XC.map((D,$)=>({...D,alt:i[$]})),[a,u]=x.useState([]),[c,d]=x.useState({}),[f,h]=x.useState([]),p=D=>{const $=c[D]||KC;return{eyebrow:$[`eyebrow_${r}`]||"",title:$[`title_${r}`]||"",bodyHtml:$[`body_html_${r}`]||"",align:$.text_align||"center",alignX:$.text_align_x,alignY:$.text_align_y,buttonLabel:$[`button_label_${r}`]||"",buttonUrl:$.button_url||"",fontFamily:$.font_family||void 0}},w=Re("home_sections.hero.eyebrow"),v=Re("home_sections.hero.title"),k=Re("home_sections.youtube.eyebrow"),g=Re("home_sections.youtube.title"),m=Re("home_sections.youtube.button_label"),y=Re("home_sections.craft.eyebrow"),b=Re("home_sections.craft.title"),P=Re("home_sections.advice.eyebrow"),T=Re("home_sections.advice.title"),S=Re("home_sections.insights.eyebrow"),j=Re("home_sections.insights.title"),L=Re("home_sections.more.eyebrow"),N=Re("home_sections.more.title"),O=Re("home_sections.more.button_label");x.useEffect(()=>{Z.get("/home-sections").then(d).catch(()=>{})},[]),x.useEffect(()=>{Z.get("/partners").then(h).catch(()=>{})},[]);const[H,oe]=x.useState(null),_=H?H.reviews.filter(D=>D.review_text).map(D=>({name:D.author_name,text:D.review_text,rating:D.rating,photo:D.profile_photo_url})):n("home.testimonials");x.useEffect(()=>{Z.get("/faqs").then(D=>{u(D.map($=>({question:r==="de"?$.question_de:$.question_en,answer:r==="de"?$.answer_de:$.answer_en})))}).catch(()=>{})},[r]),x.useEffect(()=>{Z.get("/google-reviews").then(D=>{D.rating!=null&&D.reviews.some($=>$.review_text)&&oe(D)}).catch(()=>{})},[]),st({title:n("home.metaTitle"),description:n("home.metaDescription"),path:"/"}),x.useEffect(()=>{if(a.length===0)return;const D=document.createElement("script");return D.type="application/ld+json",D.text=JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:a.map($=>({"@type":"Question",name:$.question,acceptedAnswer:{"@type":"Answer",text:$.answer}}))}),document.head.appendChild(D),()=>document.head.removeChild(D)},[a]);const R=x.useRef(null);x.useEffect(()=>{const D=R.current;if(!D)return;const $=new IntersectionObserver(([fe])=>{fe.isIntersecting?(D.getAttribute("src")||(D.src=UC),D.play().catch(()=>{})):D.paused||D.pause()},{rootMargin:"300px 0px"});return $.observe(D),()=>$.disconnect()},[]);const B=x.useRef(null),{scrollYProgress:W}=Kx({target:B,offset:["start start","end start"]}),E=Jt(W,[0,1],["-6%","6%"]),C=Jt(W,[0,1],["0%","60%"]),A=Jt(W,[0,.8],[1,0]),F=Jt(W,[.5,1],[0,1]),q=Jt(F,D=>D>.05?"auto":"none"),Me=Jt(W,[.5,1],[16,0]);return l.jsxs("div",{children:[l.jsx(Bt.div,{style:{opacity:F,pointerEvents:q,y:Me},className:"fixed inset-x-0 bottom-0 z-20 border-t border-neutral-200 bg-white/95 px-4 py-3 shadow-[0_-8px_24px_rgba(0,0,0,0.08)] backdrop-blur dark:border-neutral-800 dark:bg-neutral-950/95 sm:px-6",children:l.jsxs("div",{className:"mx-auto flex max-w-6xl items-center justify-between gap-3",children:[l.jsx("p",{className:"hidden text-sm font-medium text-neutral-600 dark:text-neutral-300 sm:block",children:n("home.stickyCta")}),l.jsxs("div",{className:"flex w-full gap-3 sm:w-auto",children:[l.jsx(U,{to:"/fahrzeuge",className:"flex-1 rounded-md bg-brand-500 px-5 py-2.5 text-center text-sm font-semibold text-white shadow-sm transition hover:-translate-y-0.5 hover:bg-brand-600 sm:flex-none",children:n("home.selectVehicle")}),l.jsx(U,{to:"/kontakt",className:"flex-1 rounded-md border border-neutral-300 px-5 py-2.5 text-center text-sm font-semibold text-neutral-700 transition hover:-translate-y-0.5 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800 sm:flex-none",children:n("home.getInTouch")})]})]})}),l.jsxs("section",{ref:B,className:"relative -mt-[89px] h-svh min-h-[560px] overflow-hidden sm:-mt-[97px]",children:[l.jsx(Bt.img,{style:{y:E,scale:1.15},src:t,alt:n("home.heroImageAlt"),className:"absolute inset-0 h-full w-full object-cover"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-neutral-950 via-neutral-950/80 to-neutral-950/40"}),l.jsx(Bt.div,{style:{y:C,opacity:A},className:"absolute inset-0",children:l.jsx("div",{className:"absolute w-full max-w-2xl px-4 text-center sm:px-6",style:{...No(p("hero").alignX,p("hero").alignY,{x:50,y:50}),fontFamily:p("hero").fontFamily},children:l.jsxs(Bt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7,ease:"easeOut"},children:[p("hero").eyebrow&&l.jsx("p",{className:"mb-3 text-sm font-semibold uppercase tracking-wide text-brand-400",style:w,children:p("hero").eyebrow}),l.jsx("h1",{className:"text-3xl font-extrabold tracking-tight text-white sm:text-5xl",style:v,children:p("hero").title}),l.jsx("div",{className:"legal-content mx-auto mt-4 max-w-2xl text-base text-neutral-200 sm:text-lg",dangerouslySetInnerHTML:{__html:p("hero").bodyHtml}}),l.jsxs("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-3",children:[l.jsx(U,{to:"/fahrzeuge",className:"rounded-md bg-brand-500 px-6 py-3 text-sm font-semibold text-white shadow-sm transition hover:-translate-y-0.5 hover:bg-brand-600 hover:shadow-lg",children:n("home.selectVehicle")}),l.jsx(U,{to:"/kontakt",className:"rounded-md border border-white/30 bg-white/10 px-6 py-3 text-sm font-semibold text-white backdrop-blur transition hover:-translate-y-0.5 hover:bg-white/20",children:n("home.getInTouch")})]})]})})})]}),l.jsx("section",{className:"border-b border-neutral-200 bg-neutral-950 py-8 dark:border-neutral-800",children:l.jsx("div",{className:"mx-auto grid max-w-6xl grid-cols-2 gap-6 px-4 text-center sm:grid-cols-4 sm:px-6",children:s.map((D,$)=>l.jsxs(Se,{index:$,children:[l.jsx("p",{className:"text-2xl font-extrabold text-brand-400 sm:text-3xl",children:D.value}),l.jsx("p",{className:"text-sm text-neutral-400",children:D.label})]},D.label))})}),l.jsx("section",{className:"border-b border-neutral-200 py-8 dark:border-neutral-800",children:l.jsxs("div",{className:"mx-auto max-w-6xl px-4 sm:px-6",children:[l.jsx("p",{className:"mb-4 text-center text-xs font-semibold uppercase tracking-wide text-neutral-400",children:n("home.brandsHeading")}),l.jsx("div",{className:"flex flex-wrap items-center justify-center gap-x-8 gap-y-3",children:f.map((D,$)=>l.jsx(Se,{index:$,children:D.logo_path?l.jsx("img",{src:D.logo_path,alt:D.name,className:"h-8 max-w-[8rem] object-contain opacity-70 grayscale transition hover:opacity-100 hover:grayscale-0"}):l.jsx("span",{className:"text-lg font-bold text-neutral-400 dark:text-neutral-600",children:D.name})},D.id))})]})}),l.jsxs("section",{className:"relative min-h-[70vh] overflow-hidden sm:min-h-[85vh]",children:[l.jsx("video",{ref:R,loop:!0,muted:!0,playsInline:!0,preload:"none",poster:ry,className:"absolute inset-0 h-full w-full object-cover"}),l.jsx("div",{className:"absolute inset-0 bg-black/55"}),l.jsx("div",{className:"absolute w-full max-w-3xl px-4 text-center sm:px-6",style:{...No(p("youtube").alignX,p("youtube").alignY,{x:50,y:50}),fontFamily:p("youtube").fontFamily},children:l.jsxs(Se,{children:[p("youtube").eyebrow&&l.jsx("p",{className:"mb-4 text-xs font-semibold uppercase tracking-[0.2em] text-neutral-200 sm:text-sm",style:k,children:p("youtube").eyebrow}),l.jsx("h2",{className:"text-3xl font-bold uppercase tracking-wide text-white sm:text-5xl",style:g,children:p("youtube").title}),l.jsx("div",{className:"legal-content mt-4 text-xs font-semibold uppercase tracking-wide text-neutral-200 sm:text-sm",dangerouslySetInnerHTML:{__html:p("youtube").bodyHtml}}),l.jsx(hm,{label:p("youtube").buttonLabel,url:p("youtube").buttonUrl,className:"mt-8 inline-flex items-center justify-center rounded-full bg-white px-8 py-3 text-xs font-bold uppercase tracking-wide text-neutral-900 transition hover:-translate-y-0.5 hover:bg-neutral-100",style:m})]})})]}),l.jsx("section",{className:"grain-band border-y border-neutral-200 bg-neutral-50 py-16 dark:border-neutral-800 dark:bg-neutral-900/40",children:l.jsxs("div",{className:"mx-auto max-w-6xl space-y-16 overflow-hidden px-4 sm:px-6",children:[l.jsxs("div",{className:"grid items-center gap-8 md:grid-cols-2",children:[l.jsx(Se,{direction:"left",shine:!0,className:"rounded-xl shadow-lg",children:l.jsx("img",{src:ny,alt:n("home.craftImageAlt"),width:900,height:600,className:"w-full rounded-xl object-cover",style:{maxHeight:380}})}),l.jsxs(Se,{direction:"right",index:1,className:bi[p("craft").align],style:{fontFamily:p("craft").fontFamily},children:[p("craft").eyebrow&&l.jsx("p",{className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:y,children:p("craft").eyebrow}),l.jsx("h2",{className:"mb-3 text-2xl font-bold text-neutral-900 dark:text-white",style:b,children:p("craft").title}),l.jsx("div",{className:"legal-content text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:p("craft").bodyHtml}})]})]}),l.jsxs("div",{className:"grid items-center gap-8 md:grid-cols-2",children:[l.jsxs(Se,{direction:"left",className:`order-2 md:order-1 ${bi[p("advice").align]}`,style:{fontFamily:p("advice").fontFamily},children:[p("advice").eyebrow&&l.jsx("p",{className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:P,children:p("advice").eyebrow}),l.jsx("h2",{className:"mb-3 text-2xl font-bold text-neutral-900 dark:text-white",style:T,children:p("advice").title}),l.jsx("div",{className:"legal-content text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:p("advice").bodyHtml}})]}),l.jsx(Se,{direction:"right",index:1,shine:!0,className:"order-1 md:order-2 rounded-xl shadow-lg",children:l.jsx("img",{src:ty,alt:n("home.adviceImageAlt"),width:900,height:600,className:"w-full rounded-xl object-cover",style:{maxHeight:380}})})]})]})}),l.jsxs("section",{className:"mx-auto max-w-6xl px-4 py-16 sm:px-6",children:[l.jsxs(Se,{className:`mb-8 ${bi[p("insights").align]}`,style:{fontFamily:p("insights").fontFamily},children:[p("insights").eyebrow&&l.jsx("p",{className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:S,children:p("insights").eyebrow}),l.jsx("h2",{className:"text-2xl font-bold text-neutral-900 dark:text-white",style:j,children:p("insights").title}),l.jsx("div",{className:"legal-content mt-2 text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:p("insights").bodyHtml}})]}),l.jsx("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:o.map((D,$)=>l.jsx(Se,{index:$%3,shine:!0,className:"aspect-square overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:l.jsx("img",{src:D.src,alt:D.alt,width:D.width,height:D.height,loading:"lazy",className:"h-full w-full object-cover transition duration-300 hover:scale-105"})},D.src))})]}),l.jsx("section",{className:"grain-band border-y border-neutral-200 bg-neutral-50 py-16 dark:border-neutral-800 dark:bg-neutral-900/40",children:l.jsxs("div",{className:"mx-auto max-w-6xl px-4 sm:px-6",children:[l.jsxs(Se,{className:"mb-10 text-center",children:[l.jsx("div",{className:"mb-2 flex items-center justify-center gap-2",children:l.jsx(ey,{className:"h-6 w-6",count:H?Math.round(H.rating):5})}),l.jsx("h2",{className:"text-2xl font-bold text-neutral-900 dark:text-white",children:H?n("home.reviewsRatingDynamic")(H.rating,H.rating_count):n("home.reviewsRating")}),l.jsx("p",{className:"mt-1 text-neutral-600 dark:text-neutral-300",children:n("home.reviewsText")}),l.jsx("a",{href:"https://www.google.com/maps/search/?api=1&query=Hifi+Planet+Amorbach+Boxbrunner+Stra%C3%9Fe+20a",target:"_blank",rel:"noopener noreferrer",className:"mt-2 inline-block text-sm font-medium text-brand-600 hover:underline dark:text-brand-400",children:n("home.reviewsLink")})]}),l.jsx(Se,{children:l.jsx(FC,{testimonials:_})})]})}),l.jsx("section",{className:"mx-auto max-w-6xl overflow-hidden px-4 py-16 sm:px-6",children:l.jsxs("div",{className:"grid items-center gap-10 md:grid-cols-2",children:[l.jsx(Se,{direction:"left",shine:!0,className:"overflow-hidden rounded-xl shadow-lg",children:l.jsx("img",{src:WC,alt:n("home.moreImageAlt"),width:1600,height:905,className:"h-full w-full object-cover",loading:"lazy"})}),l.jsxs(Se,{direction:"right",index:1,className:`rounded-xl border border-neutral-200 bg-white p-8 shadow-sm dark:border-neutral-800 dark:bg-neutral-900 ${bi[p("more").align]}`,style:{fontFamily:p("more").fontFamily},children:[p("more").eyebrow&&l.jsx("p",{className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:L,children:p("more").eyebrow}),l.jsx("h2",{className:"mb-3 text-2xl font-bold text-neutral-900 dark:text-white",style:N,children:p("more").title}),l.jsx("div",{className:`legal-content mb-8 max-w-2xl text-neutral-600 dark:text-neutral-300 ${GC[p("more").align]}`,dangerouslySetInnerHTML:{__html:p("more").bodyHtml}}),l.jsx(hm,{label:p("more").buttonLabel,url:p("more").buttonUrl,className:"inline-block rounded-md border border-neutral-300 px-6 py-3 text-sm font-semibold text-neutral-700 transition hover:-translate-y-0.5 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",style:O})]})]})}),l.jsx("section",{className:"border-t border-neutral-300 py-16 dark:border-neutral-700",children:l.jsxs("div",{className:"mx-auto max-w-3xl px-4 sm:px-6",children:[l.jsx(Se,{className:"mb-8 text-center",children:l.jsx("h2",{className:"text-2xl font-bold text-neutral-900 dark:text-white",children:n("home.faqHeading")})}),l.jsx(Se,{index:1,children:l.jsx(VC,{items:a})})]})})]})}function qC(){const[e,t]=x.useState([]),[n,r]=x.useState(""),s=na(),{t:i}=Ce(),o=ad(),{vehicle_tile_width:a,vehicle_tile_height:u}=Pt(),c={width:`${a}px`,height:`${u}px`};return st({title:i("vehicleSelect.metaTitle"),description:i("vehicleSelect.metaDescription"),path:"/fahrzeuge"}),x.useEffect(()=>{s.vehicles.enabled&&!s.bypass||Z.get("/brands").then(t).catch(d=>r(d.message))},[s.vehicles.enabled,s.bypass]),s.vehicles.enabled&&!s.bypass?l.jsx(qs,{message:s.vehicles.message}):l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[s.vehicles.enabled&&s.bypass&&l.jsx(Qs,{inline:!0}),l.jsx("h1",{className:"mb-2 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:i("vehicleSelect.title")}),l.jsx("p",{className:"mb-8 text-neutral-600 dark:text-neutral-300",children:i("vehicleSelect.intro")}),n&&l.jsx("p",{className:"text-red-600",children:n}),e.length===0&&!n&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:i("vehicleSelect.empty")}),l.jsx("div",{className:"flex flex-wrap gap-4",children:e.map(d=>d.image_path?l.jsxs(U,{to:`/fahrzeuge/${d.slug}`,style:c,className:"group relative block shrink-0 overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[l.jsx("img",{src:d.image_path,alt:"",className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),l.jsx("span",{className:"absolute inset-x-0 bottom-0 p-4 text-center text-lg font-extrabold text-white",style:$n(o,`brands.${d.id}.name`),children:d.name})]},d.id):l.jsx(U,{to:`/fahrzeuge/${d.slug}`,style:c,className:"flex shrink-0 flex-col items-center justify-center gap-3 rounded-xl border border-neutral-200 bg-white px-6 text-center font-semibold text-neutral-800 shadow-sm transition hover:-translate-y-0.5 hover:border-brand-500 hover:shadow-md dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-100",children:l.jsx("span",{style:$n(o,`brands.${d.id}.name`),children:d.name})},d.id))})]})}function QC(){const{brandSlug:e}=$s(),[t,n]=x.useState(null),[r,s]=x.useState(""),i=na(),{t:o}=Ce(),a=ad(),u=Re(t?`brands.${t.brand.id}.name`:""),{vehicle_tile_width:c,vehicle_tile_height:d}=Pt(),f={width:`${c}px`,height:`${d}px`};return x.useEffect(()=>{i.vehicles.enabled&&!i.bypass||Z.get(`/brands/${e}/models`).then(n).catch(h=>s(h.message))},[e,i.vehicles.enabled,i.bypass]),st({title:t?`${t.brand.name} ${o("brandPage.titleSuffix")}`:o("brandPage.metaTitleFallback"),description:t?o("brandPage.metaDescription")(t.brand.name):void 0,path:`/fahrzeuge/${e}`}),i.vehicles.enabled&&!i.bypass?l.jsx(qs,{message:i.vehicles.message}):r?l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:r}):t?l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[i.vehicles.enabled&&i.bypass&&l.jsx(Qs,{inline:!0}),l.jsxs("p",{className:"mb-1 text-sm text-neutral-500 dark:text-neutral-400",children:[l.jsx(U,{to:"/fahrzeuge",className:"hover:text-brand-500",children:o("brandPage.breadcrumbVehicles")})," / ",l.jsx("span",{style:u,children:t.brand.name})]}),l.jsxs("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:[l.jsx("span",{style:u,children:t.brand.name})," – ",o("brandPage.titleSuffix")]}),t.models.length===0&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:o("brandPage.empty")}),l.jsx("div",{className:"flex flex-wrap gap-4",children:t.models.map(h=>h.image_path?l.jsxs(U,{to:`/fahrzeuge/${e}/${h.slug}`,style:f,className:"group relative block shrink-0 overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[l.jsx("img",{src:h.image_path,alt:"",className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),l.jsx("span",{className:"absolute inset-x-0 bottom-0 p-4 text-center text-lg font-extrabold text-white",style:$n(a,`car_models.${h.id}.name`),children:h.name})]},h.id):l.jsx(U,{to:`/fahrzeuge/${e}/${h.slug}`,style:f,className:"flex shrink-0 flex-col items-center justify-center gap-3 rounded-xl border border-neutral-200 bg-white px-6 text-center font-semibold text-neutral-800 shadow-sm transition hover:-translate-y-0.5 hover:border-brand-500 hover:shadow-md dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-100",children:l.jsx("span",{style:$n(a,`car_models.${h.id}.name`),children:h.name})},h.id))})]}):l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:o("brandPage.loading")})}function ZC({text:e}){return e?e.split(/(\*\*[^*]+\*\*)/g).map((n,r)=>{const s=n.match(/^\*\*([^*]+)\*\*$/);return s?l.jsx("strong",{children:s[1]},r):l.jsx("span",{children:n},r)}):null}const mm="data:image/webp;base64,UklGRmoNAABXRUJQVlA4IF4NAAAQjACdASrgAVYDPlEok0ajoqGhIRK4IHAKCWlu/F+5xDCoDux8VXNtc99B5Uf715Q+k/+V6E/yD7bfvf7tYI7QKys1Pu/n/K9wD+L/0L/aeqHflfZf937AH81/p//N/yXr9f9f+M/yf7c+4D6R/7n+O+BL9d+rb+0f//9yX9VQU+fHDhw4cN7KTkCBAgQIECBAgQIEB8GtgzU5WrVq1atWrVq1atTTWWxGRvDLM5r169evXr169evVcNgPhleRXp06dOnTp06dOnTpUIn65+OKaJVsmzZs2bNmzZs2bNmSyYC6ipEunTp06dOnTp06dOlydZVuN901q1atWrVq1atWrVXZqLYS16JYyeHDhw4cOHDhw4cN4wtQeDaQLgECBAgQIECBAgQIDddB6sEmQB2atWrVq1atWrVq1aq1iYS5JU9iBlzXr169evXr169evXeEPp+8N6OklatWrVq1atWrVq1V3IfqDdZ8CK1AgQIECBAgQIECBBQFoI3bXHSzdGb8+OHDhw4cOHDhw4ZwLNj/Gx48ePHjx48ePHjx5HaZ5q8hFQPLVq1atWrVq1atWrVWlrSSS1atWrVq1atWrVq1VouJ4vs1atWrVq1atWrVqzMNN6naRaj4OHDhw4cOHDhwzggYy8goXr169evXr169evXbAmy3nWg79+/fv379+/fv377Aw+GV3JG24BIkSJEiRIkSJEiRH091sORb3KZK2rVq1atWrVq1atWZgOgxn2g3CECBAgQIECBAgQHwEh4tRYq5WHRSJEiRIkSJEiRIkRmQ4gXd9q0Xa9evXr169evXr169SUP3aSDmqBOfHDhw4cOHDhw4cN/rYXzoW6jx48ePHjx48ePHjwyNgV/F/hRIkSJEiRIkSJEiRGcgeccx2x48ePHjx48ePHjx5+h2DL7y1q1atWrVq1atWrVqrLjxn1+UevXr169evXr169epWz/ixb7G7Fx48ePHjx48ePHjx64Dpo0+TFzjw4cOHDhw4cOHDhwr64/FOVqj1ftlBYsWLFixYsWLFixsB93m6MKtrfi/YePHjx48ePHjx48eGCFP4MdBX+BXbQiRIkSJEiRIkSJEiA+X4/Ne4l0FixYsWLFixYsWLTKZjxkHLs7TTrVq1atWrVq1atWrSGY83Cktx0PPjhw4cOHDhw4cN/7Xmd/H4DxEePHjx48ePHjx48ct7KWpas7p5jy5cuXLly5cuXLlyM+h2/gRIkSJEiRIkSJEiRAPRMs9EnbFixYsWLFixYsWLBwJstxClHwcOHDhw4cOHDhw3+o6GvCGxY8ePHjx48ePHjx45aAayr3BCnnxw4cOHDhw4cOG/2HuJWxIvK1JLZs2bNmzZs2bNmyAMNnZLnTo6dOnTp06dOnTp06Vd0rFPQfnwwCPHjx48ePHjx48eOU7jRhCFUn5bFixYsWLFixYsWKZRr/1LzwcOHDhw4cOHDhw4ZshIGgexQoECBAgQIECBAgQH+hD+jvXr169eu0AAP7/2BA2pStbx3f0LK6/mZcFuZpv73FLTm7GUv07j8lFLoOGX1EwKUHfPc4FImBkAvjxF1E2TgBogJKpQ2lbMv5bOqPckB4PELJo9ZXlMwGup4PkMOtTZPmrbNoaCJqn0H4Bx7A0xA439P5hkMGBnAEfInQIN5UeUIDb3y6tLej2gR8HhJ5XmTsxvmM15ltL5ZwdGmoNeW8NevUVUKqJ8mNngu7ocCsyGYaeYOGGZBBt6rj6bPVKVbxvb8onw6mljAaaxGTz0W+aNPv06kK3qhDe6/uHi8kg2qvjF3njhRMyOJKZzg12h4qOtVgTuKPAMRWYDkgwiRs9iYqcumonNNXvXk3FAk2LO5XnyjtD5sHSUO3pIrztpBvqq+UJzKeIwGBlPwA2NP46tOJxLzbrKeH4SQjt2HAsbrVcQ/b/TgKZGPwaqfGDN+OjqJK3Z9dyCkGGfGKeG1w9+HSZTm/qh052lQEJAcdUX6vm/+sDBxtrfl4Sg8iMcVnDsfTKJpsTYF/vzJ1oQ6/VPyIX1HpDwnPXsptu9rKDFazlkwc3ofi8uKJmycgPiG9xOLlzn4Af8Dm+LcjJUMAtA7XeZPLlW1bwogbRthU8oA4LcURuku6eXDJ1eb1IKUU7k/UK0cBeK+R5YVcmrOnZIyHzcIaClYnrIwerP535fHv4VXjURTO6/85BvSeTNWvQGqkW5v1hG6AEMrxBryfat3kmr+SNEz5wC2f54z1O7C2KsRpt3maISh9PhMg7jDIxmVe07eHtkLtz6v3yQUJQV95yazDYpH5JfpuYSb8dtmB1cKjeoDTPvik9dCA1UFCTZBfojpIOwXdwAR7JEdZkEi/24hMNKJJlB6udZZKqNJB1hNl24Z++z6lAGSAuRgSwDZGdbqxs+0iL6wmRHilqPOiYB6hQiPZ7cfpMZxesqRwyhcf1O29w4ORG/7BlerR8hYvY4B1XsPYbDORvPk6FHIDXwTXGpuDIta7G4F6RNDdOvCFkAl53GZo5h/p2QkWUry5YuyegnPlKjT3He6ewYypA9YOvMhaqip7kr9sF4TU2bX9foKZ+FFZNzhyySS+13+g4BdJo9YF3bw5b6eSxUfTWiDLNh50VjuqRQWHUEkiA8zJqnqkKCwuDy6iY2oF20FJQlGIPpCDKPBzdXSb/n9NDltaoUlbam7cDAU7CwNdaWFXTABRk0S0e49iF4tO106Uwul7DGYpq0Eu71TnKUjCtEBc83QH8skvRzHniEne3AtJLYRH0cMNSSzeCJ1g+Nfc8RaZkhLhCaZGZdYe5j0LGmQnVFt2iapZvGBi7Sw0X56zdziC9Foq0OPsqKFetZdICc2eUV5Vu1+nvisSzn8wlSDUt3OmRkt/gJxfJQfWxcu5HZ26qqNpA4ablWrX4E9DEmvXzpFGYCnYJMheN2BlWwBVLh1cyQ8INngXaoB8I5Pj9oYyuz/W+jvJQ6G074luX9D3pLkuc88D0Hae3ZqXrRYRzGF1vD8pHsk9Co8B6rpE/4GEwW/zsCtnjz5G8m4KFwf2qW1k0HkNv7Nlg38bcz6TdTzuw/jega5XZQQhflLu4I6l+s90BHFIR+JEXTBBqJwT+IgTnpHNc+h5Ek74HiKqXuGUNGIKIozHkiFxMlnrsklrpweBzYY6ype9CzepAuQF63xC/eIJw1pMZEC1pPgq/r+1gWx5M6g8fpu2O12sb6pLeqT+G4mK3yHMZTojfp1xwQedRmwZnWQ8SCh4XV2a/+3OTz4D4pmmumyBV7V2VW3he8y6usinSjfYPxLyTng27fgw6jQhHl2mVhxBBjiwr5ljvJV7L+MJYDiZjGWfBCsTmehk6rbNt7ahTJpHu4B9ctRqiZXjx0zGpTF91OKifmy4nTq31p1XaIsZAHCWvItXKeke06KKKRTIm6mCT9yBJVwG1sqQhjrkP77q0/JGYgOwgdCQCstsAZQ0FlOrGYXYTIQK/krLyCAZjg8vP/Ers/KVN8F88OsyU5/T1e5ba8A2F63qgwhtkWoVIEZErOVL8sM/DtpWTlcBNsvVOFl4tT+Sk6a2ScCptFL5F6cZXTIw8JmgoCbyqB6xyU+uPP5y09s5T8MDC7Em7NpxCjgD39eed40gHQrBm6CtAbS9JOCVPkPxbpcGDj/LoAGbnyYzMpOmTi28LJ9FTIqyGuAI0jxY/QpNelOOEvNK3io1HeYkK3AprImDk99tlUjgt9bc3ejCOFDXt9LqGHjFssGrhVHyJBmWjwHQipcIMHxF2jfP5jfAGuHtJRRncHIFgLWmJ1XmzJ0LLqWCJShdJSJLc7L6YeVcgKfzOZCwhtzJ7VeI3uBhPXQNOqCf5tlQ32HApAMvCIiBwhYrpfFo/kvjfTMB/NJ0w2Lk8GAFfFQY+U6uX1oB0hztGmA5HggJTwgLo8exG64m3Xu4fg2g4MmQol7z6xNwwubABnpoS3Og85giFkaarUP2ovQyixFpXki8Xf5a5NwjUGCPbx+LD3WKJiBtkiHsYMMV/VAZVNvdg/Ph/V4ZYOr+hw7g9mOJXi+oVZxG9pqJC9w8nRkegsnQ2lpRHn22lTsIa9aOkR0X8zp/IajQxUzv057a3WptBst0EZbZtfmWp6h2K0sDQS9oQT1PqOkGDJlz6ZHZzDMShDTcwJfIZMdnjpeHdPoYoqlcn3M8daRuMeTSP3mabP1/pdQrs6Wl7ToKog2Au/gv46pUMgVcKmdWNJdDF8RplMMXJpU2tZMdkTWq4ofSypsCfuWfeHOpFQGJdFF6OoH2pDJXvkqpj1a832g3uYtVQg1TGyqYqI7UBZQy4NEZbdj6O/s6MNEnfujUDQ8QZj7rSE2RI77egKDWzM708AsvlMFoeX4CVP09rMzXNP2aOZwY7zOBTvBgEEqCWlXAFlY8pW0zIm16gqSPiwRUgH41i1PuJx382C0zTWGT243ZhLnyOIlreUrMQAfwR/oYt+ljnDFKqa5PEczDPa+u/vWmR6UM+Q/lLFiIlgBJTfaekWoeLpPd9FPN4gIHzK1ZS8kDHyq3lh/e6FQ84a4Zg6JlfQC/qhAAAAA==",JC="/assets/base-BKOm0Bib.webp",eE="/assets/clear-DZZMSrMX.webp",tE="/assets/drive-BE2W1yna.webp",nE="/assets/prime-BTVNe2Gb.webp",rE="/assets/elite_r-BRvz_pyr.webp",sE="/assets/apex-CFy2qup8.webp",iE="/assets/statement-pTO-wTPx.webp",oE="/assets/limitless-DDs0S_PU.webp",aE=(e,t,n)=>{t/=100,n/=100;const r=o=>(o+e/30)%12,s=t*Math.min(n,1-n),i=o=>n-s*Math.max(-1,Math.min(r(o)-3,Math.min(9-r(o),1)));return[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)]},Za=(e,t,n)=>`rgb(${aE(e,t,n).join(", ")})`,pm=e=>e.map(([t,n,r,s,i,o])=>({bgTop:Za(t,n,r),border:Za(t,n,r+8),accent:Za(s,i,o),img:null})),gm={graphite:[{accent:"#b6b6b6",border:"#2a2a2a",bgTop:"#1c1c1c",img:JC},{accent:"#d3d3d3",border:"#2e2e2e",bgTop:"#212121",img:eE},{accent:"#8fb8bd",border:"#26383b",bgTop:"#16282b",img:tE},{accent:"#6fbf73",border:"#1f3a24",bgTop:"#122916",img:nE},{accent:"#63d34f",border:"#204a1c",bgTop:"#123312",img:rE},{accent:"#8bea3c",border:"#2b5518",bgTop:"#173a0f",img:sE},{accent:"#d9a83c",border:"#4a3a16",bgTop:"#33270d",img:iE},{accent:"#f2c14e",border:"#5a4718",bgTop:"#3d2f0c",img:oE}],"deep-blue":pm([[215,18,11,210,15,60],[212,25,11,208,32,60],[210,38,12,206,46,60],[212,46,12,205,56,61],[214,52,12,205,63,62],[216,58,12,205,68,63],[220,62,12,212,73,65],[226,66,12,216,78,68]]),"warm-bronze":pm([[30,15,11,34,22,60],[34,32,11,34,46,60],[32,46,12,30,58,60],[26,52,12,24,65,60],[20,55,12,18,68,60],[14,55,12,12,68,61],[8,52,12,6,64,62],[2,50,12,358,60,63]])},lE="#f2f2f2",uE="#8a8a8a",cE="#c4c4c4",xm=5,dE=3,fE={recommended:{Icon:db,className:"bg-brand-500 text-white"},popular:{Icon:Ik,className:"bg-amber-400 text-neutral-950"},tip:{Icon:zk,className:"bg-sky-500 text-white"},coming_soon:{Icon:Yg,className:"bg-white text-neutral-900"},custom:{Icon:null,className:"bg-brand-500 text-white"}};function hE({pkg:e,tier:t,tierT:n,layout:r,bullets:s,formatPrice:i,contactUrl:o,t:a}){const[u,c]=x.useState(!1),[d,f]=x.useState(!1),h=x.useRef(null),p=s.length-xm,w=u?s:s.slice(0,xm);x.useLayoutEffect(()=>{const S=h.current;if(!S||u){f(!1);return}const j=()=>f([...S.querySelectorAll("[data-clamp]")].some(N=>N.scrollHeight>N.clientHeight+1));j();const L=new ResizeObserver(j);return L.observe(S),()=>L.disconnect()},[u,s.length,e.description]);const v=ad(),k=$n(v,`packages.${e.id}.description`),g=$n(v,`packages.${e.id}.price_text`),{package_card_height:m}=Pt(),y=fE[e.badge],b=r!=="grid",P=e.badge==="custom"?e.badge_text:e.badge&&a(`modelPage.badges.${e.badge}`),T=t.img?null:{backgroundColor:t.accent,WebkitMaskImage:`url(${mm})`,maskImage:`url(${mm})`,maskMode:"luminance",WebkitMaskSize:"cover",maskSize:"cover",WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat"};return l.jsxs("div",{style:{borderColor:t.border,background:`linear-gradient(180deg, ${t.bgTop} 0%, #0b0b0b 55%, #080808 100%)`,...b?{gridRow:"span 4",gridTemplateRows:"subgrid",rowGap:0}:{minHeight:`${m}px`}},className:r==="strip"?"relative grid snap-start overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 dark:shadow-black/40":r==="coverflow"?"relative grid snap-center overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 will-change-transform dark:shadow-black/40":"relative flex flex-col overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 dark:shadow-black/40",children:[t.img?l.jsx("img",{src:t.img,alt:"","aria-hidden":"true",className:"pointer-events-none absolute inset-0 h-full w-full object-cover"}):l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"pointer-events-none absolute inset-0",style:{...T,opacity:.2+n*.45,filter:"blur(18px)"},"aria-hidden":"true"}),l.jsx("div",{className:"pointer-events-none absolute inset-0",style:{...T,opacity:.55+n*.45},"aria-hidden":"true"})]}),y&&P&&l.jsxs("span",{className:`absolute top-2 left-1/2 z-10 flex max-w-[calc(100%-16px)] -translate-x-1/2 items-center gap-1 whitespace-nowrap rounded-full px-3 py-1 text-xs font-bold shadow ${y.className}`,children:[y.Icon&&l.jsx(y.Icon,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":"true"}),l.jsx("span",{className:"truncate",children:P})]}),l.jsxs("div",{className:"relative z-10 text-center",style:{padding:"34px 20px 0",gridRow:1},children:[l.jsx("div",{style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"30px",letterSpacing:"3px",fontWeight:600,color:t.accent,textTransform:"uppercase",lineHeight:1.1},children:e.name}),l.jsx("div",{style:{width:"44px",height:"2px",margin:"14px auto 0",background:`linear-gradient(90deg, rgba(255,255,255,0) 0%, ${t.accent} 50%, rgba(255,255,255,0) 100%)`}})]}),s.length>0&&l.jsxs("div",{className:"relative z-10",style:{gridRow:2,padding:"18px 20px 14px",background:u?"linear-gradient(180deg, rgba(8,8,8,0.7) 0%, rgba(8,8,8,0.62) 94%, rgba(8,8,8,0) 100%)":"linear-gradient(180deg, rgba(8,8,8,0.55) 0%, rgba(8,8,8,0.48) 92%, rgba(8,8,8,0) 100%)"},children:[l.jsx("ul",{ref:h,className:"space-y-1.5 text-left",children:w.map((S,j)=>l.jsxs("li",{className:"flex items-start gap-2",style:{fontSize:"13px",color:cE,...S.fromDescription?k:null},children:[l.jsx(ck,{className:"mt-0.5 h-3.5 w-3.5 shrink-0",style:{color:t.accent}}),l.jsx("span",{"data-clamp":!0,className:"leading-snug",style:u?void 0:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:dE,overflow:"hidden"},children:S.fromDescription?l.jsx(ZC,{text:S.text}):S.text})]},j))}),(u||p>0||d)&&l.jsxs("button",{type:"button",onClick:()=>c(S=>!S),className:"mt-2.5 flex items-center gap-1 hover:opacity-80",style:{fontSize:"13px",color:t.accent},children:[u?a("modelPage.lessBullets"):p>0?a("modelPage.moreBullets")(p):a("modelPage.showMore"),u?l.jsx(yk,{className:"h-3.5 w-3.5"}):l.jsx(fk,{className:"h-3.5 w-3.5"})]})]}),l.jsx("div",{className:"relative z-10 flex-1",style:{gridRow:3}}),l.jsx("div",{className:"relative z-10",style:{gridRow:4,padding:"20px 20px 28px",background:"linear-gradient(180deg, rgba(8,8,8,0) 0%, rgba(8,8,8,0.85) 45%, rgba(8,8,8,0.95) 100%)"},children:l.jsxs("div",{className:"text-center",children:[!e.price_text&&l.jsx("div",{style:{fontSize:"13px",color:uE},children:a("modelPage.totalPrice")}),l.jsx("div",{style:{marginTop:"4px",fontFamily:"'Barlow Condensed', sans-serif",fontSize:"30px",fontWeight:600,letterSpacing:"1px",color:lE,...e.price_text?g:null},children:e.price_text||i(e.total_price)}),l.jsx(U,{to:o(e),className:"mt-4 inline-block rounded-md bg-brand-500 px-4 py-2 text-center text-sm font-semibold text-white shadow-lg shadow-brand-500/30 hover:bg-brand-400",children:a("modelPage.requestContact")}),e.video_url&&l.jsx("div",{className:"mt-3",children:l.jsxs("a",{href:e.video_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-full border border-white/15 bg-white/5 px-3 py-1 text-xs font-semibold text-white transition hover:bg-white/15",children:[l.jsx(wk,{className:"h-4 w-4 text-red-500","aria-hidden":"true"}),a("modelPage.videoLink")]})})]})})]})}function mE(){const{brandSlug:e,modelSlug:t}=$s(),[n,r]=x.useState(null),[s,i]=x.useState(""),o=na(),{t:a,language:u}=Ce(),{package_card_theme:c,package_card_layout:d,package_wheel_hint_interval:f,package_card_width:h,package_card_height:p}=Pt(),w=gm[c]||gm.graphite,v=["grid","strip","coverflow"].includes(d)?d:"strip",k=Math.max(2,Number(f)||8)*1e3,g=x.useRef(null),m=x.useRef(null),y=x.useRef(null),[b,P]=x.useState(!1),T=_=>new Intl.NumberFormat(u==="de"?"de-DE":"en-US",{style:"currency",currency:"EUR"}).format(_);x.useEffect(()=>{o.vehicles.enabled&&!o.bypass||Z.get(`/models/${e}/${t}/packages`).then(r).catch(_=>i(_.message))},[e,t,o.vehicles.enabled,o.bypass]),x.useEffect(()=>{const _=g.current;if(v!=="coverflow"||!_)return;let R=0;const B=()=>{R=0;const C=_.scrollLeft+_.clientWidth/2;for(const A of _.children){const F=A.offsetLeft+A.offsetWidth/2,q=Math.max(-1,Math.min(1,(F-C)/(A.offsetWidth*1.4))),Me=Math.abs(q);A.style.transform=`rotateY(${(-q*35).toFixed(2)}deg) scale(${(1-Me*.13).toFixed(3)}) translateZ(${(-Me*60).toFixed(1)}px)`,A.style.zIndex=String(100-Math.round(Me*50))}},W=()=>{R||(R=requestAnimationFrame(B))};B(),_.addEventListener("scroll",W,{passive:!0});const E=new ResizeObserver(W);return E.observe(_),()=>{_.removeEventListener("scroll",W),E.disconnect(),cancelAnimationFrame(R)}},[v,n]),x.useEffect(()=>{const _=g.current;if(v==="grid"||!_)return;const R=window.matchMedia("(pointer: coarse)").matches;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let W=[],E=0;const C=()=>{const F=Math.min(_.clientWidth*.4,160);W.push(setTimeout(()=>_.scrollTo({left:F,behavior:"smooth"}),500)),W.push(setTimeout(()=>_.scrollTo({left:0,behavior:"smooth"}),1250)),R||(W.push(setTimeout(()=>P(!0),450)),W.push(setTimeout(()=>P(!1),1700)))},A=new IntersectionObserver(([F])=>{F.isIntersecting&&(A.disconnect(),C(),E=setInterval(()=>{_.scrollLeft<=1&&C()},k))},{threshold:.35});return A.observe(_),()=>{A.disconnect(),clearInterval(E),W.forEach(clearTimeout)}},[v,n,k]),x.useEffect(()=>{const _=g.current;if(v==="grid"||!_)return;let R=0,B=0,W=!1,E=0,C=0;const A=()=>[..._.children].map(D=>D.offsetLeft+D.offsetWidth/2),F=(D,$)=>{let fe=0,Q=1/0;return D.forEach((ye,Rt)=>{const Zs=Math.abs(ye-$);Zs<Q&&(Q=Zs,fe=Rt)}),fe},q=()=>{W=!1;const D=A();if(!D.length)return;const $=_.scrollLeft+_.clientWidth/2,fe=F(D,$);let Q=fe;fe===E&&Math.abs(C)>4&&(Q=C>0?Math.min(E+1,D.length-1):Math.max(E-1,0));const ye=_.scrollWidth-_.clientWidth,Rt=Math.max(0,Math.min(D[Q]-_.clientWidth/2,ye));_.scrollTo({left:Rt,behavior:"smooth"}),clearTimeout(B),B=setTimeout(()=>{_.style.scrollSnapType=""},450)},Me=D=>{if(Math.abs(D.deltaX)>Math.abs(D.deltaY))return;const $=_.scrollWidth-_.clientWidth;if($<=1)return;const fe=_.scrollLeft<=1,Q=_.scrollLeft>=$-1;D.deltaY<0&&fe||D.deltaY>0&&Q||(D.preventDefault(),W||(W=!0,C=0,E=F(A(),_.scrollLeft+_.clientWidth/2)),C+=D.deltaY,_.style.scrollSnapType="none",_.scrollLeft+=D.deltaY,clearTimeout(R),R=setTimeout(q,150))};return _.addEventListener("wheel",Me,{passive:!1}),()=>{_.removeEventListener("wheel",Me),clearTimeout(R),clearTimeout(B)}},[v,n]),x.useEffect(()=>{const _=g.current,R=m.current,B=y.current;if(v==="grid"||!_||!R||!B)return;let W=0;const E=()=>{W=0;const Q=_.scrollWidth-_.clientWidth;if(Q<=1){R.style.opacity="0",R.style.pointerEvents="none";return}R.style.opacity="1",R.style.pointerEvents="auto";const ye=R.clientWidth,Rt=Math.max(32,_.clientWidth/_.scrollWidth*ye);B.style.width=`${Rt}px`,B.style.transform=`translateX(${(_.scrollLeft/Q*(ye-Rt)).toFixed(1)}px)`},C=()=>{W||(W=requestAnimationFrame(E))};E(),_.addEventListener("scroll",C,{passive:!0});const A=new ResizeObserver(C);A.observe(_);let F=!1,q=0;const Me=Q=>{const ye=R.getBoundingClientRect(),Rt=B.clientWidth,Zs=Math.min(Math.max(Q-ye.left-q,0),ye.width-Rt);_.scrollLeft=Zs/(ye.width-Rt)*(_.scrollWidth-_.clientWidth)},D=Q=>{F=!0,R.setPointerCapture(Q.pointerId),_.style.scrollSnapType="none";const ye=B.getBoundingClientRect();q=Q.clientX>=ye.left&&Q.clientX<=ye.right?Q.clientX-ye.left:B.clientWidth/2,Q.clientX>=ye.left&&Q.clientX<=ye.right||Me(Q.clientX)},$=Q=>{F&&Me(Q.clientX)},fe=Q=>{var ye;F&&(F=!1,(ye=R.hasPointerCapture)!=null&&ye.call(R,Q.pointerId)&&R.releasePointerCapture(Q.pointerId),_.style.scrollSnapType="")};return R.addEventListener("pointerdown",D),R.addEventListener("pointermove",$),R.addEventListener("pointerup",fe),R.addEventListener("pointercancel",fe),()=>{_.removeEventListener("scroll",C),A.disconnect(),cancelAnimationFrame(W),R.removeEventListener("pointerdown",D),R.removeEventListener("pointermove",$),R.removeEventListener("pointerup",fe),R.removeEventListener("pointercancel",fe)}},[v,n]),st({title:n?a("modelPage.metaTitle")(n.model.brand_name,n.model.name):a("modelPage.metaTitleFallback"),description:n?a("modelPage.metaDescription")(n.model.brand_name,n.model.name):void 0,path:`/fahrzeuge/${e}/${t}`});const S=Re(n?`car_models.${n.model.id}.name`:"");if(o.vehicles.enabled&&!o.bypass)return l.jsx(qs,{message:o.vehicles.message});if(s)return l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:s});if(!n)return l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:a("modelPage.loading")});const{model:j,packages:L}=n,N=new Map([...L].sort((_,R)=>_.total_price-R.total_price).map((_,R)=>[_.id,R])),O=_=>{const R=_.tier_count??L.length,B=_.tier_rank??N.get(_.id)??0,W=R<=1?0:B/(R-1),E=Math.round(W*(w.length-1));return{tier:w[E],tierT:W}},H=_=>[..._.products.map(R=>({text:R.name_override||R.scraped_name||a("modelPage.productLoading"),fromDescription:!1})),...(_.description||"").split(`
`).map(R=>R.trim()).filter(Boolean).map(R=>({text:R,fromDescription:!0}))],oe=_=>`/kontakt?${new URLSearchParams({brand:j.brand_name,model:j.name,package:_.name,packageId:_.id,total:_.total_price}).toString()}`;return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"mx-auto max-w-6xl px-4 pt-12 sm:px-6",children:[o.vehicles.enabled&&o.bypass&&l.jsx(Qs,{inline:!0}),l.jsxs("p",{className:"mb-1 text-sm text-neutral-500 dark:text-neutral-400",children:[l.jsx(U,{to:"/fahrzeuge",className:"hover:text-brand-500",children:a("modelPage.breadcrumbVehicles")})," /"," ",l.jsx(U,{to:`/fahrzeuge/${e}`,className:"hover:text-brand-500",children:j.brand_name})," / ",l.jsx("span",{style:S,children:j.name})]}),l.jsxs("h1",{className:`text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl ${L.length?"mb-2":"mb-8"}`,children:[j.brand_name," ",l.jsx("span",{style:S,children:j.name})," – ",a("modelPage.titleSuffix")]}),L.length===0&&l.jsx("p",{className:"pb-12 text-neutral-500 dark:text-neutral-400",children:a("modelPage.empty")})]}),L.length>0&&l.jsx("section",{className:"py-10 sm:py-14",style:{fontFamily:"'Barlow', sans-serif"},children:l.jsxs("div",{className:v==="grid"?"mx-auto max-w-6xl px-4 sm:px-6":"relative mx-auto max-w-[1880px] px-4 sm:px-6",children:[l.jsx("div",{ref:v==="grid"?void 0:g,className:v==="grid"?"grid items-stretch gap-[18px]":"grid select-none gap-x-[18px] overflow-x-auto pb-3 snap-x snap-mandatory [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",style:v==="grid"?{gridTemplateColumns:`repeat(auto-fill, minmax(${h}px, 1fr))`,gridAutoRows:"1fr"}:{gridAutoFlow:"column",gridAutoColumns:`${h}px`,gridTemplateRows:"auto auto 1fr auto",minHeight:`${Number(p)+(v==="coverflow"?22:12)}px`,...v==="coverflow"?{perspective:"1200px",paddingLeft:`calc(50% - ${h/2}px)`,paddingRight:`calc(50% - ${h/2}px)`,paddingTop:"10px"}:null},children:L.map(_=>{const{tier:R,tierT:B}=O(_);return l.jsx(hE,{pkg:_,tier:R,tierT:B,layout:v,bullets:H(_),formatPrice:T,contactUrl:oe,t:a},_.id)})}),v!=="grid"&&l.jsx("div",{className:`pointer-events-none absolute inset-x-0 top-1/2 z-[200] flex -translate-y-1/2 justify-center transition-opacity duration-300 ${b?"opacity-100":"opacity-0"}`,"aria-hidden":"true",children:l.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-white/10 bg-neutral-900/85 px-4 py-2 text-xs font-medium text-white shadow-lg backdrop-blur-sm",children:[l.jsx(mk,{className:"h-3.5 w-3.5 text-brand-400"}),l.jsx(qk,{className:"h-4 w-4 text-brand-400"}),l.jsx(gk,{className:"h-3.5 w-3.5 text-brand-400"}),l.jsx("span",{children:a("modelPage.wheelHint")})]})}),v!=="grid"&&l.jsx("div",{ref:m,className:"relative mx-auto mt-5 h-2 w-56 max-w-full cursor-pointer rounded-full bg-neutral-900/10 transition-opacity duration-200 dark:bg-white/10",style:{touchAction:"none"},"aria-hidden":"true",children:l.jsx("div",{ref:y,className:"absolute left-0 top-0 h-full rounded-full bg-brand-500 shadow-[0_0_10px_rgba(107,166,38,0.7)]",style:{width:"48px"}})})]})})]})}function pE(){const[e,t]=x.useState(null),[n,r]=x.useState(""),{t:s}=Ce(),{gallery_card_text_x:i,gallery_card_text_y:o}=Pt();return st({title:s("galleryOverview.metaTitle"),description:s("galleryOverview.metaDescription"),path:"/galerie"}),x.useEffect(()=>{Z.get("/gallery-brands").then(t).catch(a=>r(a.message))},[]),l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[l.jsx("h1",{className:"mb-2 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:s("galleryOverview.title")}),l.jsx("p",{className:"mb-8 text-neutral-600 dark:text-neutral-300",children:s("galleryOverview.intro")}),n&&l.jsx("p",{className:"text-red-600",children:n}),!e&&!n&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:s("galleryOverview.loading")}),e&&e.length===0&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:s("galleryOverview.empty")}),l.jsx("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4",children:e==null?void 0:e.map(a=>l.jsxs(U,{to:`/galerie/${a.slug}`,className:"group relative block aspect-[4/3] overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[a.cover_image_path?l.jsx("img",{src:a.cover_image_path,alt:a.name,className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}):l.jsx("div",{className:"flex h-full w-full items-center justify-center bg-neutral-200 dark:bg-neutral-800"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),l.jsx("span",{className:"absolute whitespace-nowrap p-4 text-lg font-extrabold text-white",style:No(i,o,{x:0,y:100}),children:a.name})]},a.id))})]})}function gE(){const{brandSlug:e}=$s(),[t,n]=x.useState(null),[r,s]=x.useState(""),{t:i}=Ce(),{gallery_card_text_x:o,gallery_card_text_y:a}=Pt();return x.useEffect(()=>{Z.get(`/gallery-brands/${e}/projects`).then(n).catch(u=>s(u.message))},[e]),st({title:t?i("galleryBrandPage.metaTitle")(t.brand.name):i("galleryBrandPage.metaTitleFallback"),description:t?i("galleryBrandPage.metaDescription")(t.brand.name):void 0,path:`/galerie/${e}`}),r?l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:r}):t?l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[l.jsxs("p",{className:"mb-1 text-sm text-neutral-500 dark:text-neutral-400",children:[l.jsx(U,{to:"/galerie",className:"hover:text-brand-500",children:i("galleryBrandPage.breadcrumbGallery")})," / ",t.brand.name]}),l.jsxs("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:[t.brand.name," – ",i("galleryBrandPage.titleSuffix")]}),t.projects.length===0&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:i("galleryBrandPage.empty")}),l.jsx("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4",children:t.projects.map(u=>l.jsxs(U,{to:`/galerie/${e}/${u.slug}`,className:"group relative block aspect-[4/3] overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[u.cover_image_path?l.jsx("img",{src:u.cover_image_path,alt:u.name,className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}):l.jsx("div",{className:"flex h-full w-full items-center justify-center bg-neutral-200 dark:bg-neutral-800"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),l.jsx("span",{className:"absolute whitespace-nowrap p-4 text-lg font-extrabold text-white",style:No(o,a,{x:0,y:100}),children:u.name})]},u.id))})]}):l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:i("galleryBrandPage.loading")})}function xE({photos:e,index:t,onClose:n,onNavigate:r}){const{t:s}=Ce();if(x.useEffect(()=>{if(t==null)return;const a=u=>{u.key==="Escape"&&n(),u.key==="ArrowRight"&&r(1),u.key==="ArrowLeft"&&r(-1)};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[t,n,r]),t==null)return null;const i=e[t],o=a=>a.stopPropagation();return Go.createPortal(l.jsxs("div",{className:"fixed inset-0 z-[200] flex items-center justify-center bg-black/90 p-4",onClick:n,children:[l.jsx("button",{onClick:a=>{o(a),n()},"aria-label":s("lightbox.close"),className:"absolute right-4 top-4 rounded-full p-2 text-white/80 hover:bg-white/10 hover:text-white",children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-7 w-7",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6l12 12M18 6 6 18"})})}),e.length>1&&l.jsx("button",{onClick:a=>{o(a),r(-1)},"aria-label":s("lightbox.previous"),className:"absolute left-2 top-1/2 -translate-y-1/2 rounded-full p-2 text-white/80 hover:bg-white/10 hover:text-white sm:left-4",children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-8 w-8",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m15 18-6-6 6-6"})})}),l.jsx("img",{src:i.image_path,alt:i.caption||"",onClick:o,className:"max-h-[85vh] max-w-full rounded-lg object-contain"}),e.length>1&&l.jsx("button",{onClick:a=>{o(a),r(1)},"aria-label":s("lightbox.next"),className:"absolute right-2 top-1/2 -translate-y-1/2 rounded-full p-2 text-white/80 hover:bg-white/10 hover:text-white sm:right-4",children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-8 w-8",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9 18 6-6-6-6"})})}),i.caption&&l.jsx("p",{onClick:o,className:"absolute bottom-4 left-1/2 -translate-x-1/2 rounded-full bg-black/60 px-4 py-1.5 text-sm text-white",children:i.caption})]}),document.body)}function yE(){const{brandSlug:e,projectSlug:t}=$s(),[n,r]=x.useState(null),[s,i]=x.useState(""),[o,a]=x.useState(null),{t:u}=Ce();x.useEffect(()=>{Z.get(`/gallery-brands/${e}/${t}/photos`).then(r).catch(d=>i(d.message))},[e,t]),st({title:n?`${n.project.name} – ${n.project.brand_name}`:u("galleryProjectPage.metaTitleFallback"),description:n?u("galleryProjectPage.metaDescription")(n.project.name):void 0,path:`/galerie/${e}/${t}`});const c=d=>{a(f=>{const h=n.photos.length;return(f+d+h)%h})};return s?l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:s}):n?l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[l.jsxs("p",{className:"mb-1 text-sm text-neutral-500 dark:text-neutral-400",children:[l.jsx(U,{to:"/galerie",className:"hover:text-brand-500",children:u("galleryProjectPage.breadcrumbGallery")})," /"," ",l.jsx(U,{to:`/galerie/${e}`,className:"hover:text-brand-500",children:n.project.brand_name})," / ",n.project.name]}),l.jsx("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:n.project.name}),n.photos.length===0&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:u("galleryProjectPage.empty")}),l.jsx("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:n.photos.map((d,f)=>l.jsx(Se,{index:f%6,shine:!0,className:"aspect-square overflow-hidden rounded-xl",children:l.jsx("button",{onClick:()=>a(f),className:"block h-full w-full","aria-label":d.caption||u("galleryProjectPage.enlargeImage"),children:l.jsx("img",{src:d.image_path,alt:d.caption||"",loading:"lazy",decoding:"async",className:"h-full w-full object-cover transition duration-300 hover:scale-105"})})},d.id))}),l.jsx(xE,{photos:n.photos,index:o,onClose:()=>a(null),onNavigate:c})]}):l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:u("galleryProjectPage.loading")})}const vE={car:Xg,caravan:lk,"car-front":ik,cog:Sk,zap:xb,boxes:rk,"shield-alert":ab,video:pb},wE=x.lazy(()=>ee(()=>import("./iconRegistry-B8BVNGep.js"),__vite__mapDeps([0,1,2])));function kE({name:e,className:t="h-6 w-6",...n}){if(!e)return null;const r=vE[e];return r?l.jsx(r,{className:t,...n}):l.jsx(x.Suspense,{fallback:l.jsx("span",{className:`inline-block ${t}`,"aria-hidden":"true"}),children:l.jsx(wE,{name:e,className:t,...n})})}function bE(){const[e,t]=x.useState([]),n=na(),{t:r}=Ce();return x.useEffect(()=>{Z.get("/services").then(t).catch(()=>t([]))},[]),st({title:r("leistungen.metaTitle"),description:r("leistungen.metaDescription"),path:"/leistungen"}),n.services.enabled&&!n.bypass?l.jsx(qs,{message:n.services.message}):l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[n.services.enabled&&n.bypass&&l.jsx(Qs,{inline:!0}),l.jsx("h1",{className:"mb-2 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:r("leistungen.title")}),l.jsx("p",{className:"mb-10 max-w-2xl text-neutral-600 dark:text-neutral-300",children:r("leistungen.intro")}),l.jsx("div",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:e.map((s,i)=>l.jsxs(Se,{index:i%3,shine:!0,className:"overflow-hidden rounded-xl border border-neutral-200 bg-white dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsxs("div",{className:"relative aspect-[4/3]",children:[s.image_path&&l.jsx("img",{src:s.image_path,alt:s.title,className:"h-full w-full object-cover",loading:"lazy"}),l.jsx("div",{className:"absolute -bottom-5 left-5 flex h-12 w-12 items-center justify-center rounded-full bg-brand-500 text-white shadow-lg ring-4 ring-white dark:ring-neutral-900",children:l.jsx(kE,{name:s.icon_name,className:"h-6 w-6"})})]}),l.jsxs("div",{className:"p-6 pt-8",children:[l.jsx("h2",{className:"mb-2 font-semibold text-neutral-900 dark:text-white",children:s.title}),l.jsx("p",{className:"mb-3 text-sm text-neutral-600 dark:text-neutral-300",children:s.description}),l.jsxs(U,{to:s.cta_url||"/kontakt",className:"text-sm font-semibold text-brand-600 hover:underline dark:text-brand-400",children:[s.cta_label||r("leistungen.contact")," →"]})]})]},s.id))}),l.jsxs("div",{className:"mt-12 rounded-xl border border-neutral-200 bg-neutral-50 p-8 text-center dark:border-neutral-800 dark:bg-neutral-900/40",children:[l.jsx("h2",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:r("leistungen.notListedTitle")}),l.jsx("p",{className:"mb-5 text-neutral-600 dark:text-neutral-300",children:r("leistungen.notListedText")}),l.jsx(U,{to:"/kontakt",className:"inline-block rounded-md bg-brand-500 px-6 py-3 text-sm font-semibold text-white hover:bg-brand-600",children:r("leistungen.contact")})]})]})}function SE({name:e,description:t,className:n="",children:r}){const{consent:s,acceptAll:i,openSettings:o}=Lr();return s.external?r:l.jsxs("div",{className:`flex flex-col items-center justify-center gap-3 rounded-xl border border-neutral-200 bg-neutral-50 p-6 text-center dark:border-neutral-800 dark:bg-neutral-900/40 ${n}`,children:[l.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:t||`${e} wird erst nach deiner Zustimmung geladen, da dabei Daten an Google übertragen werden.`}),l.jsxs("div",{className:"flex flex-wrap justify-center gap-2",children:[l.jsx("button",{type:"button",onClick:i,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:"Laden erlauben"}),l.jsx("button",{type:"button",onClick:o,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Cookie-Einstellungen"})]})]})}const sy=e=>(e||"").replace(/[^\d+]/g,""),jE=e=>`https://wa.me/${sy(e).replace(/^0/,"49").replace("+","")}`,Wi={fontFamily:"'Michroma', sans-serif"};function PE({className:e}){return l.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:l.jsx("path",{d:"M12 2a10 10 0 0 0-8.6 15l-1.3 4.8 5-1.3A10 10 0 1 0 12 2zm0 2a8 8 0 1 1-4.2 14.8l-.3-.2-2.6.7.7-2.5-.2-.3A8 8 0 0 1 12 4zm4.3 9.9c-.2-.1-1.4-.7-1.6-.8s-.4-.1-.5.1l-.7.9c-.1.1-.3.2-.5.1a6.5 6.5 0 0 1-3.2-2.8c-.1-.2 0-.4.1-.5l.4-.5.2-.4v-.4l-.7-1.7c-.2-.4-.4-.4-.5-.4h-.5c-.2 0-.4.1-.6.3-.7.7-.9 1.6-.6 2.7.5 1.7 1.6 3.1 3.4 4.2 1.7 1 2.5 1 3.4.9.5-.1 1.4-.6 1.6-1.1.2-.5.2-1 .1-1.1z"})})}function TE({path:e,className:t}){return l.jsx("svg",{className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:l.jsx("path",{d:e})})}const CE={premium:"M4 12v3M8 8v11M12 4v16M16 8v11M20 12v3",germany:"M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0 M12 2v2M12 20v2M2 12h2M20 12h2M5 5l1.5 1.5M17.5 17.5 19 19M19 5l-1.5 1.5M6.5 17.5 5 19",individual:"M6 3h12l4 6-10 12L2 9z M11 3 8 9l4 12 4-12-3-6M2 9h20",experts:"M20 6 9 17l-5-5"};function ym({formatted:e,color:t}){const[n,r]=e.split("€");return l.jsxs("span",{style:{...Wi,color:t},children:[n,l.jsx("span",{style:{fontFamily:"'Barlow', sans-serif"},children:"€"}),r]})}function Si({icon:e,label:t,name:n,type:r="text",required:s,value:i,onChange:o,placeholder:a}){return l.jsxs("div",{className:"flex flex-col gap-2",children:[l.jsx("label",{htmlFor:`kf-${n}`,className:"text-xs font-semibold uppercase tracking-[2px]",style:{color:"var(--kf-label)"},children:t}),l.jsxs("div",{className:"relative flex items-center",children:[l.jsx(e,{className:"pointer-events-none absolute left-[14px] h-[17px] w-[17px]",style:{color:"var(--kf-fieldicon)"}}),l.jsx("input",{id:`kf-${n}`,name:n,type:r,required:s,value:i,onChange:o,placeholder:a,className:"w-full rounded-lg border py-3.5 pl-[42px] pr-4 text-[15px] outline-none transition-colors",style:{background:"var(--kf-field)",borderColor:"var(--kf-fieldbrd)",color:"var(--kf-text2)"}})]})]})}function EE(){const[e]=Ow(),{phone:t,whatsapp:n,contact_email:r,address_street:s,address_zip:i,address_city:o,business_hours:a}=Pt(),{t:u,language:c}=Ce(),{consent:d}=Lr(),f=[s,[i,o].filter(Boolean).join(" ")].filter(Boolean).join(", "),h=encodeURIComponent(f),p=`https://www.google.com/maps/dir/?api=1&destination=${h}`,w=s0(a,u("footer.closed")),v=C=>new Intl.NumberFormat(c==="de"?"de-DE":"en-US",{style:"currency",currency:"EUR"}).format(C),[k,g]=x.useState({name:"",email:"",phone:"",vin:"",message:""}),[m,y]=x.useState("idle"),[b,P]=x.useState(""),[T,S]=x.useState([]),[j,L]=x.useState([]),N=e.get("packageId"),O=e.get("total")?Number(e.get("total")):null;x.useEffect(()=>{if(!N){S([]);return}Z.get(`/packages/${N}/upgrades`).then(S).catch(()=>S([]))},[N]);const H=C=>{L(A=>A.includes(C)?A.filter(F=>F!==C):[...A,C])},oe=T.filter(C=>j.includes(C.id)).reduce((C,A)=>C+Number(A.price),0);st({title:u("contactPage.metaTitle"),description:u("contactPage.metaDescription"),path:"/kontakt"});const _={brand:e.get("brand")||"",model:e.get("model")||"",package:e.get("package")||""},R=!!(_.brand&&_.model&&_.package),B=C=>g(A=>({...A,[C.target.name]:C.target.value})),W=async C=>{C.preventDefault(),y("sending"),P("");try{await Z.post("/contact",{...k,brand_name:_.brand||null,model_name:_.model||null,package_name:_.package||null,product_name:e.get("product")||null,package_id:N||null,package_product_id:e.get("productId")||null,upgrade_ids:j}),y("sent"),g({name:"",email:"",phone:"",vin:"",message:""})}catch(A){P(A.message),y("idle")}},E=[{key:"premium",title:u("contactPage.featurePremiumTitle"),sub:u("contactPage.featurePremiumSub")},{key:"germany",title:u("contactPage.featureGermanyTitle"),sub:u("contactPage.featureGermanySub")},{key:"individual",title:u("contactPage.featureIndividualTitle"),sub:u("contactPage.featureIndividualSub")},{key:"experts",title:u("contactPage.featureExpertsTitle"),sub:u("contactPage.featureExpertsSub")}];return l.jsx("div",{className:"kf-page kontakt-sektion relative w-full overflow-hidden px-4 pb-10 sm:px-10",style:{color:"var(--kf-text2)",fontFamily:"'Barlow', sans-serif"},children:l.jsxs("div",{className:"relative z-10 mx-auto max-w-[1280px] pt-10 sm:pt-14",children:[l.jsx("div",{className:"mb-3 text-[13px] font-semibold uppercase tracking-[6px]",style:{color:"var(--kf-accent2)"},children:u("contactPage.heroEyebrow")}),l.jsxs("h1",{className:"text-[34px] leading-[1.08] sm:text-[46px] lg:text-[60px]",style:{...Wi,color:"var(--kf-text)"},children:[u("contactPage.heroTitlePre")," ",l.jsx("span",{style:{color:"var(--kf-accent2)"},children:u("contactPage.heroTitleAccent")})," ",u("contactPage.heroTitlePost")]}),l.jsx("p",{className:"mb-10 mt-5 max-w-[520px] text-lg leading-[1.55]",style:{color:"var(--kf-muted)"},children:u("contactPage.heroSubtitle")}),l.jsxs("div",{className:"grid grid-cols-1 items-start gap-10 min-[981px]:grid-cols-[minmax(0,1.35fr)_minmax(320px,1fr)]",children:[l.jsx("div",{children:l.jsxs("div",{className:"rounded-2xl border p-[22px] sm:p-10",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow)"},children:[R&&l.jsxs("div",{className:"mb-8 rounded-xl border px-6 py-[22px]",style:{background:"var(--kf-pkgbg)",borderColor:"var(--kf-pkgbrd)"},children:[l.jsxs("div",{className:"mb-3.5 flex items-center gap-2.5 text-xs font-bold uppercase tracking-[2px]",style:{color:"var(--kf-accent2)"},children:[l.jsx(nb,{className:"h-4 w-4"}),u("contactPage.packageBoxTitle")]}),l.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-5 gap-y-2 text-[15px]",children:[l.jsx("span",{style:{color:"var(--kf-label)"},children:u("contactPage.contextBrand")}),l.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:_.brand}),l.jsx("span",{style:{color:"var(--kf-label)"},children:u("contactPage.contextModel")}),l.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:_.model}),l.jsx("span",{style:{color:"var(--kf-label)"},children:u("contactPage.contextPackage")}),l.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:_.package})]}),l.jsxs("div",{className:"mt-3.5 flex items-baseline justify-between border-t pt-3.5",style:{borderColor:"var(--kf-pkgbrd)"},children:[l.jsx("span",{className:"text-[13px] font-semibold uppercase tracking-wide",style:{color:"var(--kf-muted)"},children:u("contactPage.packagePrice")}),l.jsx("span",{className:"text-xl",children:O!=null?l.jsx(ym,{formatted:v(O),color:"var(--kf-text)"}):"—"})]})]}),T.length>0&&l.jsxs("div",{className:"mb-8 rounded-xl border p-5",style:{background:"var(--kf-field)",borderColor:"var(--kf-fieldbrd)"},children:[l.jsx("div",{className:"mb-3 text-xs font-bold uppercase tracking-[2px]",style:{color:"var(--kf-accent2)"},children:u("contactPage.optionalUpgrades")}),l.jsx("div",{className:"space-y-2",children:T.map(C=>l.jsxs("label",{className:"flex cursor-pointer items-start gap-3 rounded-lg border p-3 text-sm",style:{borderColor:"var(--kf-fieldbrd)"},children:[l.jsx("input",{type:"checkbox",checked:j.includes(C.id),onChange:()=>H(C.id),className:"mt-0.5 h-4 w-4 rounded",style:{accentColor:"var(--kf-accent)"}}),l.jsxs("span",{className:"flex-1",children:[l.jsx("span",{className:"block font-semibold",style:{color:"var(--kf-text2)"},children:C.name}),C.description&&l.jsx("span",{className:"block text-xs",style:{color:"var(--kf-muted)"},children:C.description})]}),l.jsxs("span",{className:"font-semibold",style:{color:"var(--kf-accent2)"},children:["+",v(C.price)]})]},C.id))}),j.length>0&&O!=null&&l.jsxs("div",{className:"mt-3 flex items-baseline justify-between border-t pt-3 text-sm",style:{borderColor:"var(--kf-pkgbrd)"},children:[l.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide",style:{color:"var(--kf-muted)"},children:u("contactPage.totalWithUpgrades")}),l.jsx(ym,{formatted:v(O+oe),color:"var(--kf-text)"})]})]}),l.jsx("h2",{className:"mb-8 text-xl",style:{...Wi,color:"var(--kf-text)"},children:u("contactPage.formTitle")}),m==="sent"&&l.jsxs("div",{className:"mb-6 rounded-[10px] border p-5",style:{borderColor:"var(--kf-accent)",background:"var(--kf-accentsoft)"},children:[l.jsx("div",{className:"text-base font-bold",style:{color:"var(--kf-accent2)"},children:u("contactPage.sentTitle")}),l.jsx("div",{className:"mt-1 text-sm",style:{color:"var(--kf-muted)"},children:u("contactPage.sentText")})]}),l.jsxs("form",{onSubmit:W,children:[l.jsxs("div",{className:"grid grid-cols-1 gap-6 min-[641px]:grid-cols-2",children:[l.jsx(Si,{icon:hb,label:u("contactPage.nameLabel"),name:"name",required:!0,value:k.name,onChange:B,placeholder:u("contactPage.namePlaceholder")}),l.jsx(Si,{icon:Lf,label:u("contactPage.emailLabel"),name:"email",type:"email",required:!0,value:k.email,onChange:B,placeholder:u("contactPage.emailPlaceholder")}),l.jsx(Si,{icon:yo,label:u("contactPage.phoneLabel"),name:"phone",value:k.phone,onChange:B,placeholder:u("contactPage.phonePlaceholder")}),l.jsx(Si,{icon:Xg,label:u("contactPage.vinLabel"),name:"vin",value:k.vin,onChange:B,placeholder:u("contactPage.vinPlaceholder")})]}),l.jsxs("div",{className:"mt-6 flex flex-col gap-2",children:[l.jsx("label",{htmlFor:"kf-message",className:"text-xs font-semibold uppercase tracking-[2px]",style:{color:"var(--kf-label)"},children:u("contactPage.messageLabel")}),l.jsx("textarea",{id:"kf-message",name:"message",rows:5,value:k.message,onChange:B,placeholder:u("contactPage.messagePlaceholder"),className:"w-full resize-y rounded-lg border px-4 py-3.5 text-[15px] outline-none",style:{background:"var(--kf-field)",borderColor:"var(--kf-fieldbrd)",color:"var(--kf-text2)"}})]}),b&&l.jsx("p",{className:"mt-4 text-sm text-red-600 dark:text-red-400",children:b}),l.jsxs("div",{className:"mt-8 flex flex-wrap items-center gap-5",children:[l.jsxs("button",{type:"submit",disabled:m==="sending",className:"inline-flex items-center gap-3 rounded-lg px-8 py-4 text-sm font-bold uppercase tracking-[3px] transition-[filter,box-shadow] hover:brightness-110 disabled:opacity-60",style:{background:"var(--kf-accent)",color:"var(--kf-btntext)",boxShadow:"0 10px 24px rgba(150,200,20,0.32)"},children:[l.jsx(ib,{className:"h-[18px] w-[18px]"}),u(m==="sending"?"contactPage.sending":"contactPage.submit")]}),l.jsx("div",{className:"text-[13px]",style:{color:"var(--kf-label)"},children:u("contactPage.requiredHint")})]})]})]})}),l.jsxs("div",{className:"flex flex-col gap-6",children:[l.jsxs("div",{className:"relative overflow-hidden rounded-2xl border px-[22px] py-[26px] sm:px-8 sm:py-[34px]",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow)"},children:[l.jsx("div",{className:"pointer-events-none absolute -right-[60px] -top-[60px] h-[190px] w-[190px] rounded-full border border-dashed",style:{borderColor:"var(--kf-pkgbrd)"}}),l.jsx("h2",{className:"mb-7 text-[17px]",style:{...Wi,color:"var(--kf-text)"},children:u("contactPage.cardTitle")}),l.jsxs("div",{className:"flex flex-col gap-5",children:[l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:l.jsx(yo,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),l.jsxs("div",{children:[l.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:u("contactPage.phone")}),l.jsx("a",{href:`tel:${sy(t)}`,className:"text-base font-semibold",style:{color:"var(--kf-text2)"},children:t})]})]}),l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:l.jsx(Lf,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),l.jsxs("div",{children:[l.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:u("contactPage.email")}),l.jsx("a",{href:`mailto:${r}`,className:"text-base font-semibold",style:{color:"var(--kf-text2)"},children:r})]})]}),l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:l.jsx(qg,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),l.jsxs("div",{children:[l.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:u("contactPage.address")}),l.jsxs("div",{className:"text-base font-semibold leading-[1.4]",style:{color:"var(--kf-text2)"},children:[s,l.jsx("br",{}),[i,o].filter(Boolean).join(" ")]})]})]}),n&&l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:l.jsx(PE,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),l.jsxs("div",{children:[l.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:u("nav.whatsapp")}),l.jsx("a",{href:jE(n),className:"text-base font-semibold",style:{color:"var(--kf-text2)"},children:n})]})]})]}),l.jsxs("div",{className:"mt-7 border-t pt-6",style:{borderColor:"var(--kf-divider)"},children:[l.jsx("div",{className:"mb-3 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:u("contactPage.hours")}),l.jsx("div",{className:"grid grid-cols-[auto_1fr] gap-x-6 gap-y-2 text-[15px]",children:w.map(C=>l.jsxs("span",{style:{display:"contents"},children:[l.jsx("span",{style:{color:"var(--kf-label)"},children:C.days}),l.jsx("span",{children:C.label})]},C.key))})]})]}),l.jsxs("div",{className:"relative overflow-hidden rounded-2xl border",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow)"},children:[d.external&&l.jsxs("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"absolute left-3.5 top-3.5 z-10 inline-flex items-center gap-2 rounded-lg border px-3.5 py-2 text-[13px] font-semibold hover:border-[var(--kf-accent)]",style:{background:"var(--kf-pill)",borderColor:"var(--kf-pillbrd)",color:"var(--kf-text2)",boxShadow:"var(--kf-shadow2)"},children:[u("contactPage.mapOpenChip"),l.jsx(Ck,{className:"h-3.5 w-3.5",style:{color:"var(--kf-accent2)"}})]}),l.jsx(SE,{name:u("contactPage.mapEmbedName"),className:"h-[210px] w-full",children:l.jsx("div",{className:"h-[210px] overflow-hidden",children:l.jsx("iframe",{title:"HifiPlanet Amorbach – Standort",src:`https://www.google.com/maps?q=${h}&output=embed`,width:"100%",height:"290",style:{border:0,display:"block",marginTop:"-60px"},loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})})}),l.jsxs("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2.5 border-t px-4 py-4 text-[13px] font-bold uppercase tracking-[3px] hover:bg-[var(--kf-accentsoft)]",style:{borderColor:"var(--kf-divider)",color:"var(--kf-accent2)"},children:[u("contactPage.routePlan")," →"]})]})]})]}),l.jsx("div",{className:"mt-10 grid grid-cols-1 overflow-hidden rounded-2xl border min-[641px]:grid-cols-2 min-[901px]:grid-cols-4",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow2)"},children:E.map(C=>l.jsxs("div",{className:"flex items-center gap-4 border-b p-6 last:border-b-0 min-[641px]:border-b-0 min-[641px]:border-r min-[641px]:last:border-r-0",style:{borderColor:"var(--kf-divider)"},children:[l.jsx("div",{className:"flex h-[46px] w-[46px] flex-shrink-0 items-center justify-center rounded-full border-[1.5px]",style:{borderColor:"var(--kf-pkgbrd)",color:"var(--kf-accent2)"},children:l.jsx(TE,{path:CE[C.key],className:"h-[22px] w-[22px]"})}),l.jsxs("div",{children:[l.jsx("div",{className:"text-[15px] font-bold",style:{color:"var(--kf-text)"},children:C.title}),l.jsx("div",{className:"mt-0.5 text-[13px]",style:{color:"var(--kf-muted)"},children:C.sub})]})]},C.key))})]})})}const Nu={audio:["mp3","wav","flac","m4a","aac","ogg","opus","aif","aiff","wma"],video:["mp4","mov","webm"],pdf:["pdf"],image:["jpg","jpeg","png","webp","gif"],archive:["zip","rar","7z"],document:["txt","rtf","doc","docx","xls","xlsx","odt","ods"]},wN=Object.values(Nu).flat(),NE=["mp3","wav","flac","m4a","aac","ogg","opus"],ud=e=>{const t=(e||"").lastIndexOf(".");return t===-1?"":e.slice(t+1).toLowerCase()},_E=e=>{const t=ud(e);return Object.keys(Nu).find(n=>Nu[n].includes(t))||"document"},ME=e=>NE.includes(ud(e)),LE=(e,t="de-DE")=>{const n=["B","KB","MB","GB"];let r=Number(e)||0,s=0;for(;r>=1024&&s<n.length-1;)r/=1024,s+=1;return`${new Intl.NumberFormat(t,{maximumFractionDigits:s>=2?1:0}).format(r)} ${n[s]}`},AE={audio:Zk,video:Ak,pdf:Mf,image:Mk,archive:Nk,document:Mf},_u="hifi-downloads-password",DE=()=>{try{return localStorage.getItem(_u)||""}catch{return""}},vm=e=>{try{e?localStorage.setItem(_u,e):localStorage.removeItem(_u)}catch{}},wm=e=>Z.get("/downloads",e?{headers:{"X-Download-Password":encodeURIComponent(e)}}:void 0);function RE(){const[e,t]=x.useState(null),[n,r]=x.useState(!1),[s,i]=x.useState(""),[o,a]=x.useState(!1),[u,c]=x.useState(!1),[d,f]=x.useState(""),{t:h,language:p}=Ce();x.useEffect(()=>{const v=DE();wm(v).then(k=>{k.locked?(v&&vm(""),r(!0)):t(k.items)}).catch(k=>f(k.message))},[]);const w=async v=>{v.preventDefault(),c(!0),a(!1);try{const k=await wm(s);k.locked?a(!0):(vm(s),r(!1),t(k.items))}catch(k){f(k.message)}finally{c(!1)}};return st({title:h("downloadsPage.metaTitle"),description:h("downloadsPage.metaDescription"),path:"/downloads"}),l.jsxs("div",{className:"mx-auto max-w-4xl px-4 py-12 sm:px-6",children:[l.jsx("h1",{className:"mb-2 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:h("downloadsPage.title")}),l.jsx("p",{className:"mb-10 max-w-2xl text-neutral-600 dark:text-neutral-300",children:h("downloadsPage.intro")}),d&&l.jsx("p",{className:"text-red-600",children:d}),!d&&!n&&e===null&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:h("downloadsPage.loading")}),(e==null?void 0:e.length)===0&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:h("downloadsPage.empty")}),n&&l.jsxs("form",{onSubmit:w,className:"max-w-md rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[l.jsx($k,{className:"h-5 w-5 text-brand-500","aria-hidden":"true"}),l.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:h("downloadsPage.lockedTitle")})]}),l.jsx("p",{className:"mb-4 text-sm text-neutral-600 dark:text-neutral-300",children:h("downloadsPage.lockedText")}),l.jsx("label",{htmlFor:"downloads-password",className:"sr-only",children:h("downloadsPage.passwordLabel")}),l.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[l.jsx("input",{id:"downloads-password",type:"password",required:!0,autoComplete:"off",value:s,onChange:v=>i(v.target.value),placeholder:h("downloadsPage.passwordLabel"),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm text-neutral-900 dark:border-neutral-700 dark:bg-neutral-950 dark:text-white"}),l.jsx("button",{type:"submit",disabled:u,className:"shrink-0 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:h(u?"downloadsPage.unlocking":"downloadsPage.unlock")})]}),o&&l.jsx("p",{className:"mt-2 text-sm text-red-600",role:"alert",children:h("downloadsPage.wrongPassword")})]}),l.jsx("div",{className:"space-y-4",children:e==null?void 0:e.map((v,k)=>{const g=AE[_E(v.file_name)];return l.jsx(Se,{index:k%4,className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:l.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-start",children:[l.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-brand-500/10 text-brand-600 dark:text-brand-400",children:l.jsx(g,{className:"h-6 w-6","aria-hidden":"true"})}),l.jsxs("div",{className:"min-w-0 flex-1",children:[l.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:v.title}),v.description&&l.jsx("p",{className:"mt-1 whitespace-pre-line text-sm text-neutral-600 dark:text-neutral-300",children:v.description}),l.jsxs("p",{className:"mt-1 text-xs text-neutral-400",children:[ud(v.file_name).toUpperCase()," · ",LE(v.file_size,p==="de"?"de-DE":"en-US")]}),ME(v.file_name)&&l.jsx("audio",{controls:!0,preload:"none",src:v.file_path,className:"mt-3 w-full"})]}),l.jsxs("a",{href:v.file_path,download:v.file_name,className:"inline-flex shrink-0 items-center justify-center gap-2 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:[l.jsx(Pk,{className:"h-4 w-4","aria-hidden":"true"}),h("downloadsPage.download")]})]})},v.id)})})]})}function IE(){const[e,t]=x.useState(null);return x.useEffect(()=>{Z.get("/legal-pages/impressum").then(t).catch(()=>{})},[]),st({title:(e==null?void 0:e.title)||"Impressum",description:"Impressum von HifiPlanet Amorbach gemäß § 5 DDG.",path:"/impressum"}),e?l.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-12 sm:px-6",children:[l.jsx("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:e.title}),l.jsx("div",{className:"legal-content text-sm text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:e.body_html}})]}):null}function VE(){const[e,t]=x.useState(null);return x.useEffect(()=>{Z.get("/legal-pages/datenschutz").then(t).catch(()=>{})},[]),st({title:(e==null?void 0:e.title)||"Datenschutzerklärung",description:"Datenschutzerklärung von HifiPlanet Amorbach gemäß Art. 13 DSGVO.",path:"/datenschutz"}),e?l.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-12 sm:px-6",children:[l.jsx("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:e.title}),l.jsx("div",{className:"legal-content text-sm text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:e.body_html}})]}):null}function OE(){const[e,t]=x.useState(null);return x.useEffect(()=>{Z.get("/legal-pages/agb").then(t).catch(()=>{})},[]),st({title:(e==null?void 0:e.title)||"AGB",description:"Allgemeine Geschäftsbedingungen von HifiPlanet Amorbach.",path:"/agb"}),e?l.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-12 sm:px-6",children:[l.jsx("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:e.title}),l.jsx("div",{className:"legal-content text-sm text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:e.body_html}})]}):null}const Ja="hifi-chunk-reload",ne=e=>x.lazy(()=>e().then(t=>{try{sessionStorage.removeItem(Ja)}catch{}return t},t=>{let n=!0;try{n=!!sessionStorage.getItem(Ja),sessionStorage.setItem(Ja,"1")}catch{}if(n)throw t;return window.location.reload(),new Promise(()=>{})})),FE=ne(()=>ee(()=>import("./SetupWizard-Dp_SZURq.js"),[])),zE=ne(()=>ee(()=>import("./Login-B4YL4ltB.js"),[])),BE=ne(()=>ee(()=>import("./Dashboard-bbSgJcnm.js"),[])),$E=ne(()=>ee(()=>import("./Brands-C6eVwhOd.js"),__vite__mapDeps([3,4,5]))),HE=ne(()=>ee(()=>import("./Models-CwWP_c2v.js"),__vite__mapDeps([6,4,5]))),WE=ne(()=>ee(()=>import("./GalleryBrands-DeSW9tLo.js"),__vite__mapDeps([7,4]))),UE=ne(()=>ee(()=>import("./GalleryProjects-DrxLi25V.js"),__vite__mapDeps([8,4]))),GE=ne(()=>ee(()=>import("./GalleryPhotos-Cx15BFfB.js"),[])),KE=ne(()=>ee(()=>import("./Packages-By73LRCs.js"),__vite__mapDeps([9,5,2,1]))),XE=ne(()=>ee(()=>import("./Services-Dnq8KYw0.js"),__vite__mapDeps([10,4,0,1,2]))),YE=ne(()=>ee(()=>import("./Faqs-Bl6JUAuu.js"),[])),qE=ne(()=>ee(()=>import("./Partners-D1IaNCA2.js"),__vite__mapDeps([11,4]))),QE=ne(()=>ee(()=>import("./Downloads-B-dRPpYw.js"),__vite__mapDeps([12,1]))),ZE=ne(()=>ee(()=>import("./HomeSections-Du6kmhHi.js"),__vite__mapDeps([13,14,5]))),JE=ne(()=>ee(()=>import("./ContactRequests-BvNwUpVJ.js"),[])),eN=ne(()=>ee(()=>import("./AccountSettings-BMihbnHe.js"),[])),tN=ne(()=>ee(()=>import("./AdminUsers-9iDwQGfx.js"),[])),nN=ne(()=>ee(()=>import("./PermissionGroups-DjFgNp_l.js"),[])),rN=ne(()=>ee(()=>import("./SettingsLayout-NML5nqk_.js"),[])),sN=ne(()=>ee(()=>import("./WebsiteSettings-BwL06xkK.js"),__vite__mapDeps([15,4]))),iN=ne(()=>ee(()=>import("./LegalSettings-DAfuQqrY.js"),__vite__mapDeps([16,14]))),oN=ne(()=>ee(()=>import("./UpdateSettings-9sbkjR1K.js"),[])),aN=ne(()=>ee(()=>import("./EmailSettings-Bbqu3Noj.js"),__vite__mapDeps([17,14]))),lN=ne(()=>ee(()=>import("./DatabaseSettings-BLcZKDfK.js"),[])),uN=ne(()=>ee(()=>import("./ExportImportSettings-DGzBdtyq.js"),[])),cN=ne(()=>ee(()=>import("./MaintenanceSettings-DfLGBunE.js"),[])),dN=ne(()=>ee(()=>import("./ResetSettings-B4htaA5Y.js"),[])),fN=l.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"});function hN(){const{packageId:e}=$s();return l.jsx(Ls,{to:`/admin/packages?paket=${e}`,replace:!0})}function mN(){return l.jsxs(l.Fragment,{children:[l.jsx($w,{}),l.jsx(Uw,{}),l.jsx(qw,{children:l.jsx(x.Suspense,{fallback:fN,children:l.jsxs(Sw,{children:[l.jsx(z,{path:"/setup",element:l.jsx(FE,{})}),l.jsxs(z,{element:l.jsx(EC,{}),children:[l.jsx(z,{path:"/",element:l.jsx(YC,{})}),l.jsx(z,{path:"/fahrzeuge",element:l.jsx(qC,{})}),l.jsx(z,{path:"/fahrzeuge/:brandSlug",element:l.jsx(QC,{})}),l.jsx(z,{path:"/fahrzeuge/:brandSlug/:modelSlug",element:l.jsx(mE,{})}),l.jsx(z,{path:"/galerie",element:l.jsx(pE,{})}),l.jsx(z,{path:"/galerie/:brandSlug",element:l.jsx(gE,{})}),l.jsx(z,{path:"/galerie/:brandSlug/:projectSlug",element:l.jsx(yE,{})}),l.jsx(z,{path:"/leistungen",element:l.jsx(bE,{})}),l.jsx(z,{path:"/kontakt",element:l.jsx(EE,{})}),l.jsx(z,{path:"/downloads",element:l.jsx(RE,{})}),l.jsx(z,{path:"/impressum",element:l.jsx(IE,{})}),l.jsx(z,{path:"/datenschutz",element:l.jsx(VE,{})}),l.jsx(z,{path:"/agb",element:l.jsx(OE,{})})]}),l.jsx(z,{path:"/admin/login",element:l.jsx(zE,{})}),l.jsx(z,{path:"/admin",element:l.jsx(LC,{}),children:l.jsxs(z,{element:l.jsx(MC,{}),children:[l.jsx(z,{index:!0,element:l.jsx(BE,{})}),l.jsx(z,{path:"account",element:l.jsx(eN,{})}),l.jsx(z,{path:"brands",element:l.jsx(De,{permission:"brands.manage",children:l.jsx($E,{})})}),l.jsx(z,{path:"models",element:l.jsx(De,{permission:"models.manage",children:l.jsx(HE,{})})}),l.jsx(z,{path:"gallery-brands",element:l.jsx(De,{permission:"gallery.manage",children:l.jsx(WE,{})})}),l.jsx(z,{path:"gallery-projects",element:l.jsx(De,{permission:"gallery.manage",children:l.jsx(UE,{})})}),l.jsx(z,{path:"gallery-projects/:projectId/photos",element:l.jsx(De,{permission:"gallery.manage",children:l.jsx(GE,{})})}),l.jsx(z,{path:"packages",element:l.jsx(De,{permission:"packages.manage",children:l.jsx(KE,{})})}),l.jsx(z,{path:"packages/:packageId/*",element:l.jsx(hN,{})}),l.jsx(z,{path:"services",element:l.jsx(De,{permission:"services.manage",children:l.jsx(XE,{})})}),l.jsx(z,{path:"faqs",element:l.jsx(De,{permission:"content.manage",children:l.jsx(YE,{})})}),l.jsx(z,{path:"partners",element:l.jsx(De,{permission:"content.manage",children:l.jsx(qE,{})})}),l.jsx(z,{path:"downloads",element:l.jsx(De,{permission:"downloads.manage",children:l.jsx(QE,{})})}),l.jsx(z,{path:"home-sections",element:l.jsx(De,{permission:"content.manage",children:l.jsx(ZE,{})})}),l.jsx(z,{path:"contact-requests",element:l.jsx(De,{permission:"contact.manage",children:l.jsx(JE,{})})}),l.jsx(z,{path:"users",element:l.jsx(De,{permission:"users.manage",children:l.jsx(tN,{})})}),l.jsx(z,{path:"permission-groups",element:l.jsx(De,{permission:"permission_groups.manage",children:l.jsx(nN,{})})}),l.jsxs(z,{path:"settings",element:l.jsx(De,{permission:"settings.manage",children:l.jsx(rN,{})}),children:[l.jsx(z,{index:!0,element:l.jsx(Ls,{to:"website",replace:!0})}),l.jsx(z,{path:"website",element:l.jsx(sN,{})}),l.jsx(z,{path:"legal",element:l.jsx(iN,{})}),l.jsx(z,{path:"email",element:l.jsx(aN,{})}),l.jsx(z,{path:"database",element:l.jsx(lN,{})}),l.jsx(z,{path:"export-import",element:l.jsx(uN,{})}),l.jsx(z,{path:"maintenance",element:l.jsx(cN,{})}),l.jsx(z,{path:"update",element:l.jsx(De,{permission:"system.update",children:l.jsx(oN,{})})}),l.jsx(z,{path:"reset",element:l.jsx(dN,{})})]})]})})]})})})]})}el.createRoot(document.getElementById("root")).render(l.jsx(Lm.StrictMode,{children:l.jsx(Lw,{basename:"/".replace(/\/$/,"")||"/",children:l.jsx(vb,{children:l.jsx(jb,{children:l.jsx(Lb,{children:l.jsx(mN,{})})})})})}));export{qk as $,wN as A,rk as B,wk as C,kE as D,ck as E,mk as F,yk as G,Yg as H,Sk as I,Pk as J,Ck as K,U as L,Nk as M,Ls as N,Ec as O,Mk as P,Ak as Q,Lm as R,Mf as S,Ik as T,Ok as U,zk as V,$k as W,Wk as X,Lf as Y,qg as Z,Xk as _,Z as a,Zk as a0,eb as a1,nb as a2,yo as a3,ib as a4,ab as a5,ub as a6,db as a7,hb as a8,pb as a9,xb as aa,tk as ab,gN as ac,ek as ad,Hs as b,Yo as c,tu as d,$s as e,Go as f,Ow as g,fk as h,gk as i,l as j,LE as k,dm as l,Gw as m,vN as n,No as o,Rw as p,Zx as q,x as r,yN as s,km as t,st as u,pN as v,G as w,Xg as x,ik as y,lk as z};