var Cd=Object.defineProperty;var Pd=(e,t,n)=>t in e?Cd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var R=(e,t,n)=>Pd(e,typeof t!="symbol"?t+"":t,n);function Td(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const l in r)if(l!=="default"&&!(l in e)){const i=Object.getOwnPropertyDescriptor(r,l);i&&Object.defineProperty(e,l,i.get?i:{enumerable:!0,get:()=>r[l]})}}}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 l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function _d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qo={exports:{}},Ll={},bo={exports:{}},I={};/**
 * @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 wr=Symbol.for("react.element"),Ld=Symbol.for("react.portal"),zd=Symbol.for("react.fragment"),Rd=Symbol.for("react.strict_mode"),Md=Symbol.for("react.profiler"),Od=Symbol.for("react.provider"),Id=Symbol.for("react.context"),Dd=Symbol.for("react.forward_ref"),Ad=Symbol.for("react.suspense"),Fd=Symbol.for("react.memo"),Ud=Symbol.for("react.lazy"),Na=Symbol.iterator;function Bd(e){return e===null||typeof e!="object"?null:(e=Na&&e[Na]||e["@@iterator"],typeof e=="function"?e:null)}var Go={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Jo=Object.assign,Zo={};function Tn(e,t,n){this.props=e,this.context=t,this.refs=Zo,this.updater=n||Go}Tn.prototype.isReactComponent={};Tn.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")};Tn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function eu(){}eu.prototype=Tn.prototype;function Es(e,t,n){this.props=e,this.context=t,this.refs=Zo,this.updater=n||Go}var Cs=Es.prototype=new eu;Cs.constructor=Es;Jo(Cs,Tn.prototype);Cs.isPureReactComponent=!0;var Ea=Array.isArray,tu=Object.prototype.hasOwnProperty,Ps={current:null},nu={key:!0,ref:!0,__self:!0,__source:!0};function ru(e,t,n){var r,l={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)tu.call(t,r)&&!nu.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1<u){for(var o=Array(u),c=0;c<u;c++)o[c]=arguments[c+2];l.children=o}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)l[r]===void 0&&(l[r]=u[r]);return{$$typeof:wr,type:e,key:i,ref:a,props:l,_owner:Ps.current}}function Wd(e,t){return{$$typeof:wr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ts(e){return typeof e=="object"&&e!==null&&e.$$typeof===wr}function $d(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ca=/\/+/g;function Jl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?$d(""+e.key):t.toString(36)}function Qr(e,t,n,r,l){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case wr:case Ld:a=!0}}if(a)return a=e,l=l(a),e=r===""?"."+Jl(a,0):r,Ea(l)?(n="",e!=null&&(n=e.replace(Ca,"$&/")+"/"),Qr(l,t,n,"",function(c){return c})):l!=null&&(Ts(l)&&(l=Wd(l,n+(!l.key||a&&a.key===l.key?"":(""+l.key).replace(Ca,"$&/")+"/")+e)),t.push(l)),1;if(a=0,r=r===""?".":r+":",Ea(e))for(var u=0;u<e.length;u++){i=e[u];var o=r+Jl(i,u);a+=Qr(i,t,n,o,l)}else if(o=Bd(e),typeof o=="function")for(e=o.call(e),u=0;!(i=e.next()).done;)i=i.value,o=r+Jl(i,u++),a+=Qr(i,t,n,o,l);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 a}function _r(e,t,n){if(e==null)return e;var r=[],l=0;return Qr(e,r,"","",function(i){return t.call(n,i,l++)}),r}function Hd(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 ge={current:null},Yr={transition:null},Vd={ReactCurrentDispatcher:ge,ReactCurrentBatchConfig:Yr,ReactCurrentOwner:Ps};function lu(){throw Error("act(...) is not supported in production builds of React.")}I.Children={map:_r,forEach:function(e,t,n){_r(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return _r(e,function(){t++}),t},toArray:function(e){return _r(e,function(t){return t})||[]},only:function(e){if(!Ts(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};I.Component=Tn;I.Fragment=zd;I.Profiler=Md;I.PureComponent=Es;I.StrictMode=Rd;I.Suspense=Ad;I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vd;I.act=lu;I.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=Jo({},e.props),l=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Ps.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(o in t)tu.call(t,o)&&!nu.hasOwnProperty(o)&&(r[o]=t[o]===void 0&&u!==void 0?u[o]:t[o])}var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){u=Array(o);for(var c=0;c<o;c++)u[c]=arguments[c+2];r.children=u}return{$$typeof:wr,type:e.type,key:l,ref:i,props:r,_owner:a}};I.createContext=function(e){return e={$$typeof:Id,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Od,_context:e},e.Consumer=e};I.createElement=ru;I.createFactory=function(e){var t=ru.bind(null,e);return t.type=e,t};I.createRef=function(){return{current:null}};I.forwardRef=function(e){return{$$typeof:Dd,render:e}};I.isValidElement=Ts;I.lazy=function(e){return{$$typeof:Ud,_payload:{_status:-1,_result:e},_init:Hd}};I.memo=function(e,t){return{$$typeof:Fd,type:e,compare:t===void 0?null:t}};I.startTransition=function(e){var t=Yr.transition;Yr.transition={};try{e()}finally{Yr.transition=t}};I.unstable_act=lu;I.useCallback=function(e,t){return ge.current.useCallback(e,t)};I.useContext=function(e){return ge.current.useContext(e)};I.useDebugValue=function(){};I.useDeferredValue=function(e){return ge.current.useDeferredValue(e)};I.useEffect=function(e,t){return ge.current.useEffect(e,t)};I.useId=function(){return ge.current.useId()};I.useImperativeHandle=function(e,t,n){return ge.current.useImperativeHandle(e,t,n)};I.useInsertionEffect=function(e,t){return ge.current.useInsertionEffect(e,t)};I.useLayoutEffect=function(e,t){return ge.current.useLayoutEffect(e,t)};I.useMemo=function(e,t){return ge.current.useMemo(e,t)};I.useReducer=function(e,t,n){return ge.current.useReducer(e,t,n)};I.useRef=function(e){return ge.current.useRef(e)};I.useState=function(e){return ge.current.useState(e)};I.useSyncExternalStore=function(e,t,n){return ge.current.useSyncExternalStore(e,t,n)};I.useTransition=function(){return ge.current.useTransition()};I.version="18.3.1";bo.exports=I;var x=bo.exports;const iu=_d(x),Kd=Td({__proto__:null,default:iu},[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 Qd=x,Yd=Symbol.for("react.element"),Xd=Symbol.for("react.fragment"),qd=Object.prototype.hasOwnProperty,bd=Qd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Gd={key:!0,ref:!0,__self:!0,__source:!0};function su(e,t,n){var r,l={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)qd.call(t,r)&&!Gd.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:Yd,type:e,key:i,ref:a,props:l,_owner:bd.current}}Ll.Fragment=Xd;Ll.jsx=su;Ll.jsxs=su;qo.exports=Ll;var s=qo.exports,Pi={},au={exports:{}},Re={},ou={exports:{}},uu={};/**
 * @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(w,E){var P=w.length;w.push(E);e:for(;0<P;){var D=P-1>>>1,J=w[D];if(0<l(J,E))w[D]=E,w[P]=J,P=D;else break e}}function n(w){return w.length===0?null:w[0]}function r(w){if(w.length===0)return null;var E=w[0],P=w.pop();if(P!==E){w[0]=P;e:for(var D=0,J=w.length,Pr=J>>>1;D<Pr;){var It=2*(D+1)-1,Gl=w[It],Dt=It+1,Tr=w[Dt];if(0>l(Gl,P))Dt<J&&0>l(Tr,Gl)?(w[D]=Tr,w[Dt]=P,D=Dt):(w[D]=Gl,w[It]=P,D=It);else if(Dt<J&&0>l(Tr,P))w[D]=Tr,w[Dt]=P,D=Dt;else break e}}return E}function l(w,E){var P=w.sortIndex-E.sortIndex;return P!==0?P:w.id-E.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,u=a.now();e.unstable_now=function(){return a.now()-u}}var o=[],c=[],p=1,f=null,h=3,j=!1,g=!1,k=!1,N=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(w){for(var E=n(c);E!==null;){if(E.callback===null)r(c);else if(E.startTime<=w)r(c),E.sortIndex=E.expirationTime,t(o,E);else break;E=n(c)}}function y(w){if(k=!1,v(w),!g)if(n(o)!==null)g=!0,On(C);else{var E=n(c);E!==null&&M(y,E.startTime-w)}}function C(w,E){g=!1,k&&(k=!1,m(z),z=-1),j=!0;var P=h;try{for(v(E),f=n(o);f!==null&&(!(f.expirationTime>E)||w&&!xe());){var D=f.callback;if(typeof D=="function"){f.callback=null,h=f.priorityLevel;var J=D(f.expirationTime<=E);E=e.unstable_now(),typeof J=="function"?f.callback=J:f===n(o)&&r(o),v(E)}else r(o);f=n(o)}if(f!==null)var Pr=!0;else{var It=n(c);It!==null&&M(y,It.startTime-E),Pr=!1}return Pr}finally{f=null,h=P,j=!1}}var T=!1,L=null,z=-1,W=5,O=-1;function xe(){return!(e.unstable_now()-O<W)}function Gt(){if(L!==null){var w=e.unstable_now();O=w;var E=!0;try{E=L(!0,w)}finally{E?Jt():(T=!1,L=null)}}else T=!1}var Jt;if(typeof d=="function")Jt=function(){d(Gt)};else if(typeof MessageChannel<"u"){var bl=new MessageChannel,Sa=bl.port2;bl.port1.onmessage=Gt,Jt=function(){Sa.postMessage(null)}}else Jt=function(){N(Gt,0)};function On(w){L=w,T||(T=!0,Jt())}function M(w,E){z=N(function(){w(e.unstable_now())},E)}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(w){w.callback=null},e.unstable_continueExecution=function(){g||j||(g=!0,On(C))},e.unstable_forceFrameRate=function(w){0>w||125<w?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<w?Math.floor(1e3/w):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(o)},e.unstable_next=function(w){switch(h){case 1:case 2:case 3:var E=3;break;default:E=h}var P=h;h=E;try{return w()}finally{h=P}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(w,E){switch(w){case 1:case 2:case 3:case 4:case 5:break;default:w=3}var P=h;h=w;try{return E()}finally{h=P}},e.unstable_scheduleCallback=function(w,E,P){var D=e.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?D+P:D):P=D,w){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=P+J,w={id:p++,callback:E,priorityLevel:w,startTime:P,expirationTime:J,sortIndex:-1},P>D?(w.sortIndex=P,t(c,w),n(o)===null&&w===n(c)&&(k?(m(z),z=-1):k=!0,M(y,P-D))):(w.sortIndex=J,t(o,w),g||j||(g=!0,On(C))),w},e.unstable_shouldYield=xe,e.unstable_wrapCallback=function(w){var E=h;return function(){var P=h;h=E;try{return w.apply(this,arguments)}finally{h=P}}}})(uu);ou.exports=uu;var Jd=ou.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 Zd=x,ze=Jd;function S(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 cu=new Set,rr={};function qt(e,t){jn(e,t),jn(e+"Capture",t)}function jn(e,t){for(rr[e]=t,e=0;e<t.length;e++)cu.add(t[e])}var lt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ti=Object.prototype.hasOwnProperty,ef=/^[: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]*$/,Pa={},Ta={};function tf(e){return Ti.call(Ta,e)?!0:Ti.call(Pa,e)?!1:ef.test(e)?Ta[e]=!0:(Pa[e]=!0,!1)}function nf(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 rf(e,t,n,r){if(t===null||typeof t>"u"||nf(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 ye(e,t,n,r,l,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){oe[e]=new ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];oe[t]=new ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){oe[e]=new ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){oe[e]=new ye(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){oe[e]=new ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){oe[e]=new ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){oe[e]=new ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){oe[e]=new ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){oe[e]=new ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var _s=/[\-:]([a-z])/g;function Ls(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(_s,Ls);oe[t]=new ye(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(_s,Ls);oe[t]=new ye(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(_s,Ls);oe[t]=new ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){oe[e]=new ye(e,1,!1,e.toLowerCase(),null,!1,!1)});oe.xlinkHref=new ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){oe[e]=new ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function zs(e,t,n,r){var l=oe.hasOwnProperty(t)?oe[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(rf(t,n,l,r)&&(n=null),r||l===null?tf(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ot=Zd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Lr=Symbol.for("react.element"),tn=Symbol.for("react.portal"),nn=Symbol.for("react.fragment"),Rs=Symbol.for("react.strict_mode"),_i=Symbol.for("react.profiler"),du=Symbol.for("react.provider"),fu=Symbol.for("react.context"),Ms=Symbol.for("react.forward_ref"),Li=Symbol.for("react.suspense"),zi=Symbol.for("react.suspense_list"),Os=Symbol.for("react.memo"),ht=Symbol.for("react.lazy"),hu=Symbol.for("react.offscreen"),_a=Symbol.iterator;function In(e){return e===null||typeof e!="object"?null:(e=_a&&e[_a]||e["@@iterator"],typeof e=="function"?e:null)}var q=Object.assign,Zl;function Vn(e){if(Zl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Zl=t&&t[1]||""}return`
`+Zl+e}var ei=!1;function ti(e,t){if(!e||ei)return"";ei=!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 l=c.stack.split(`
`),i=r.stack.split(`
`),a=l.length-1,u=i.length-1;1<=a&&0<=u&&l[a]!==i[u];)u--;for(;1<=a&&0<=u;a--,u--)if(l[a]!==i[u]){if(a!==1||u!==1)do if(a--,u--,0>u||l[a]!==i[u]){var o=`
`+l[a].replace(" at new "," at ");return e.displayName&&o.includes("<anonymous>")&&(o=o.replace("<anonymous>",e.displayName)),o}while(1<=a&&0<=u);break}}}finally{ei=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Vn(e):""}function lf(e){switch(e.tag){case 5:return Vn(e.type);case 16:return Vn("Lazy");case 13:return Vn("Suspense");case 19:return Vn("SuspenseList");case 0:case 2:case 15:return e=ti(e.type,!1),e;case 11:return e=ti(e.type.render,!1),e;case 1:return e=ti(e.type,!0),e;default:return""}}function Ri(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 nn:return"Fragment";case tn:return"Portal";case _i:return"Profiler";case Rs:return"StrictMode";case Li:return"Suspense";case zi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fu:return(e.displayName||"Context")+".Consumer";case du:return(e._context.displayName||"Context")+".Provider";case Ms:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Os:return t=e.displayName||null,t!==null?t:Ri(e.type)||"Memo";case ht:t=e._payload,e=e._init;try{return Ri(e(t))}catch{}}return null}function sf(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 Ri(t);case 8:return t===Rs?"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 _t(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function af(e){var t=pu(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 l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zr(e){e._valueTracker||(e._valueTracker=af(e))}function mu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ll(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 Mi(e,t){var n=t.checked;return q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function La(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_t(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 vu(e,t){t=t.checked,t!=null&&zs(e,"checked",t,!1)}function Oi(e,t){vu(e,t);var n=_t(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")?Ii(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ii(e,t.type,_t(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function za(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 Ii(e,t,n){(t!=="number"||ll(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Kn=Array.isArray;function pn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+_t(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Di(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(S(91));return q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ra(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(S(92));if(Kn(n)){if(1<n.length)throw Error(S(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:_t(n)}}function gu(e,t){var n=_t(t.value),r=_t(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 Ma(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function yu(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 Ai(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?yu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Rr,xu=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Rr=Rr||document.createElement("div"),Rr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Rr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function lr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xn={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},of=["Webkit","ms","Moz","O"];Object.keys(Xn).forEach(function(e){of.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xn[t]=Xn[e]})});function ju(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xn.hasOwnProperty(e)&&Xn[e]?(""+t).trim():t+"px"}function ku(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=ju(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var uf=q({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 Fi(e,t){if(t){if(uf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(S(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(S(61))}if(t.style!=null&&typeof t.style!="object")throw Error(S(62))}}function Ui(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 Bi=null;function Is(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wi=null,mn=null,vn=null;function Oa(e){if(e=Er(e)){if(typeof Wi!="function")throw Error(S(280));var t=e.stateNode;t&&(t=Il(t),Wi(e.stateNode,e.type,t))}}function wu(e){mn?vn?vn.push(e):vn=[e]:mn=e}function Su(){if(mn){var e=mn,t=vn;if(vn=mn=null,Oa(e),t)for(e=0;e<t.length;e++)Oa(t[e])}}function Nu(e,t){return e(t)}function Eu(){}var ni=!1;function Cu(e,t,n){if(ni)return e(t,n);ni=!0;try{return Nu(e,t,n)}finally{ni=!1,(mn!==null||vn!==null)&&(Eu(),Su())}}function ir(e,t){var n=e.stateNode;if(n===null)return null;var r=Il(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(S(231,t,typeof n));return n}var $i=!1;if(lt)try{var Dn={};Object.defineProperty(Dn,"passive",{get:function(){$i=!0}}),window.addEventListener("test",Dn,Dn),window.removeEventListener("test",Dn,Dn)}catch{$i=!1}function cf(e,t,n,r,l,i,a,u,o){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(p){this.onError(p)}}var qn=!1,il=null,sl=!1,Hi=null,df={onError:function(e){qn=!0,il=e}};function ff(e,t,n,r,l,i,a,u,o){qn=!1,il=null,cf.apply(df,arguments)}function hf(e,t,n,r,l,i,a,u,o){if(ff.apply(this,arguments),qn){if(qn){var c=il;qn=!1,il=null}else throw Error(S(198));sl||(sl=!0,Hi=c)}}function bt(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 Pu(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 Ia(e){if(bt(e)!==e)throw Error(S(188))}function pf(e){var t=e.alternate;if(!t){if(t=bt(e),t===null)throw Error(S(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return Ia(l),e;if(i===r)return Ia(l),t;i=i.sibling}throw Error(S(188))}if(n.return!==r.return)n=l,r=i;else{for(var a=!1,u=l.child;u;){if(u===n){a=!0,n=l,r=i;break}if(u===r){a=!0,r=l,n=i;break}u=u.sibling}if(!a){for(u=i.child;u;){if(u===n){a=!0,n=i,r=l;break}if(u===r){a=!0,r=i,n=l;break}u=u.sibling}if(!a)throw Error(S(189))}}if(n.alternate!==r)throw Error(S(190))}if(n.tag!==3)throw Error(S(188));return n.stateNode.current===n?e:t}function Tu(e){return e=pf(e),e!==null?_u(e):null}function _u(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=_u(e);if(t!==null)return t;e=e.sibling}return null}var Lu=ze.unstable_scheduleCallback,Da=ze.unstable_cancelCallback,mf=ze.unstable_shouldYield,vf=ze.unstable_requestPaint,G=ze.unstable_now,gf=ze.unstable_getCurrentPriorityLevel,Ds=ze.unstable_ImmediatePriority,zu=ze.unstable_UserBlockingPriority,al=ze.unstable_NormalPriority,yf=ze.unstable_LowPriority,Ru=ze.unstable_IdlePriority,zl=null,be=null;function xf(e){if(be&&typeof be.onCommitFiberRoot=="function")try{be.onCommitFiberRoot(zl,e,void 0,(e.current.flags&128)===128)}catch{}}var Ve=Math.clz32?Math.clz32:wf,jf=Math.log,kf=Math.LN2;function wf(e){return e>>>=0,e===0?32:31-(jf(e)/kf|0)|0}var Mr=64,Or=4194304;function Qn(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 ol(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var u=a&~l;u!==0?r=Qn(u):(i&=a,i!==0&&(r=Qn(i)))}else a=n&~l,a!==0?r=Qn(a):i!==0&&(r=Qn(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===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-Ve(t),l=1<<n,r|=e[n],t&=~l;return r}function Sf(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 Nf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Ve(i),u=1<<a,o=l[a];o===-1?(!(u&n)||u&r)&&(l[a]=Sf(u,t)):o<=t&&(e.expiredLanes|=u),i&=~u}}function Vi(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Mu(){var e=Mr;return Mr<<=1,!(Mr&4194240)&&(Mr=64),e}function ri(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Sr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ve(t),e[t]=n}function Ef(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 l=31-Ve(n),i=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~i}}function As(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ve(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var U=0;function Ou(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Iu,Fs,Du,Au,Fu,Ki=!1,Ir=[],jt=null,kt=null,wt=null,sr=new Map,ar=new Map,mt=[],Cf="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 Aa(e,t){switch(e){case"focusin":case"focusout":jt=null;break;case"dragenter":case"dragleave":kt=null;break;case"mouseover":case"mouseout":wt=null;break;case"pointerover":case"pointerout":sr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ar.delete(t.pointerId)}}function An(e,t,n,r,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[l]},t!==null&&(t=Er(t),t!==null&&Fs(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Pf(e,t,n,r,l){switch(t){case"focusin":return jt=An(jt,e,t,n,r,l),!0;case"dragenter":return kt=An(kt,e,t,n,r,l),!0;case"mouseover":return wt=An(wt,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return sr.set(i,An(sr.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,ar.set(i,An(ar.get(i)||null,e,t,n,r,l)),!0}return!1}function Uu(e){var t=Ut(e.target);if(t!==null){var n=bt(t);if(n!==null){if(t=n.tag,t===13){if(t=Pu(n),t!==null){e.blockedOn=t,Fu(e.priority,function(){Du(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 Xr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Bi=r,n.target.dispatchEvent(r),Bi=null}else return t=Er(n),t!==null&&Fs(t),e.blockedOn=n,!1;t.shift()}return!0}function Fa(e,t,n){Xr(e)&&n.delete(t)}function Tf(){Ki=!1,jt!==null&&Xr(jt)&&(jt=null),kt!==null&&Xr(kt)&&(kt=null),wt!==null&&Xr(wt)&&(wt=null),sr.forEach(Fa),ar.forEach(Fa)}function Fn(e,t){e.blockedOn===t&&(e.blockedOn=null,Ki||(Ki=!0,ze.unstable_scheduleCallback(ze.unstable_NormalPriority,Tf)))}function or(e){function t(l){return Fn(l,e)}if(0<Ir.length){Fn(Ir[0],e);for(var n=1;n<Ir.length;n++){var r=Ir[n];r.blockedOn===e&&(r.blockedOn=null)}}for(jt!==null&&Fn(jt,e),kt!==null&&Fn(kt,e),wt!==null&&Fn(wt,e),sr.forEach(t),ar.forEach(t),n=0;n<mt.length;n++)r=mt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<mt.length&&(n=mt[0],n.blockedOn===null);)Uu(n),n.blockedOn===null&&mt.shift()}var gn=ot.ReactCurrentBatchConfig,ul=!0;function _f(e,t,n,r){var l=U,i=gn.transition;gn.transition=null;try{U=1,Us(e,t,n,r)}finally{U=l,gn.transition=i}}function Lf(e,t,n,r){var l=U,i=gn.transition;gn.transition=null;try{U=4,Us(e,t,n,r)}finally{U=l,gn.transition=i}}function Us(e,t,n,r){if(ul){var l=Qi(e,t,n,r);if(l===null)hi(e,t,r,cl,n),Aa(e,r);else if(Pf(l,e,t,n,r))r.stopPropagation();else if(Aa(e,r),t&4&&-1<Cf.indexOf(e)){for(;l!==null;){var i=Er(l);if(i!==null&&Iu(i),i=Qi(e,t,n,r),i===null&&hi(e,t,r,cl,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else hi(e,t,r,null,n)}}var cl=null;function Qi(e,t,n,r){if(cl=null,e=Is(r),e=Ut(e),e!==null)if(t=bt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Pu(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 cl=e,null}function Bu(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(gf()){case Ds:return 1;case zu:return 4;case al:case yf:return 16;case Ru:return 536870912;default:return 16}default:return 16}}var gt=null,Bs=null,qr=null;function Wu(){if(qr)return qr;var e,t=Bs,n=t.length,r,l="value"in gt?gt.value:gt.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===l[i-r];r++);return qr=l.slice(e,1<r?1-r:void 0)}function br(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 Dr(){return!0}function Ua(){return!1}function Me(e){function t(n,r,l,i,a){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(i):i[u]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Dr:Ua,this.isPropagationStopped=Ua,this}return q(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=Dr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Dr)},persist:function(){},isPersistent:Dr}),t}var _n={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ws=Me(_n),Nr=q({},_n,{view:0,detail:0}),zf=Me(Nr),li,ii,Un,Rl=q({},Nr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$s,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!==Un&&(Un&&e.type==="mousemove"?(li=e.screenX-Un.screenX,ii=e.screenY-Un.screenY):ii=li=0,Un=e),li)},movementY:function(e){return"movementY"in e?e.movementY:ii}}),Ba=Me(Rl),Rf=q({},Rl,{dataTransfer:0}),Mf=Me(Rf),Of=q({},Nr,{relatedTarget:0}),si=Me(Of),If=q({},_n,{animationName:0,elapsedTime:0,pseudoElement:0}),Df=Me(If),Af=q({},_n,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ff=Me(Af),Uf=q({},_n,{data:0}),Wa=Me(Uf),Bf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wf={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"},$f={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$f[e])?!!t[e]:!1}function $s(){return Hf}var Vf=q({},Nr,{key:function(e){if(e.key){var t=Bf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=br(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Wf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$s,charCode:function(e){return e.type==="keypress"?br(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?br(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Kf=Me(Vf),Qf=q({},Rl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$a=Me(Qf),Yf=q({},Nr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$s}),Xf=Me(Yf),qf=q({},_n,{propertyName:0,elapsedTime:0,pseudoElement:0}),bf=Me(qf),Gf=q({},Rl,{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}),Jf=Me(Gf),Zf=[9,13,27,32],Hs=lt&&"CompositionEvent"in window,bn=null;lt&&"documentMode"in document&&(bn=document.documentMode);var eh=lt&&"TextEvent"in window&&!bn,$u=lt&&(!Hs||bn&&8<bn&&11>=bn),Ha=" ",Va=!1;function Hu(e,t){switch(e){case"keyup":return Zf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rn=!1;function th(e,t){switch(e){case"compositionend":return Vu(t);case"keypress":return t.which!==32?null:(Va=!0,Ha);case"textInput":return e=t.data,e===Ha&&Va?null:e;default:return null}}function nh(e,t){if(rn)return e==="compositionend"||!Hs&&Hu(e,t)?(e=Wu(),qr=Bs=gt=null,rn=!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 $u&&t.locale!=="ko"?null:t.data;default:return null}}var rh={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 Ka(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rh[e.type]:t==="textarea"}function Ku(e,t,n,r){wu(r),t=dl(t,"onChange"),0<t.length&&(n=new Ws("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,ur=null;function lh(e){nc(e,0)}function Ml(e){var t=an(e);if(mu(t))return e}function ih(e,t){if(e==="change")return t}var Qu=!1;if(lt){var ai;if(lt){var oi="oninput"in document;if(!oi){var Qa=document.createElement("div");Qa.setAttribute("oninput","return;"),oi=typeof Qa.oninput=="function"}ai=oi}else ai=!1;Qu=ai&&(!document.documentMode||9<document.documentMode)}function Ya(){Gn&&(Gn.detachEvent("onpropertychange",Yu),ur=Gn=null)}function Yu(e){if(e.propertyName==="value"&&Ml(ur)){var t=[];Ku(t,ur,e,Is(e)),Cu(lh,t)}}function sh(e,t,n){e==="focusin"?(Ya(),Gn=t,ur=n,Gn.attachEvent("onpropertychange",Yu)):e==="focusout"&&Ya()}function ah(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ml(ur)}function oh(e,t){if(e==="click")return Ml(t)}function uh(e,t){if(e==="input"||e==="change")return Ml(t)}function ch(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qe=typeof Object.is=="function"?Object.is:ch;function cr(e,t){if(Qe(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 l=n[r];if(!Ti.call(t,l)||!Qe(e[l],t[l]))return!1}return!0}function Xa(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qa(e,t){var n=Xa(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=Xa(n)}}function Xu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qu(){for(var e=window,t=ll();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ll(e.document)}return t}function Vs(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 dh(e){var t=qu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xu(n.ownerDocument.documentElement,n)){if(r!==null&&Vs(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 l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=qa(n,i);var a=qa(n,r);l&&a&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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 fh=lt&&"documentMode"in document&&11>=document.documentMode,ln=null,Yi=null,Jn=null,Xi=!1;function ba(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xi||ln==null||ln!==ll(r)||(r=ln,"selectionStart"in r&&Vs(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}),Jn&&cr(Jn,r)||(Jn=r,r=dl(Yi,"onSelect"),0<r.length&&(t=new Ws("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ln)))}function Ar(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sn={animationend:Ar("Animation","AnimationEnd"),animationiteration:Ar("Animation","AnimationIteration"),animationstart:Ar("Animation","AnimationStart"),transitionend:Ar("Transition","TransitionEnd")},ui={},bu={};lt&&(bu=document.createElement("div").style,"AnimationEvent"in window||(delete sn.animationend.animation,delete sn.animationiteration.animation,delete sn.animationstart.animation),"TransitionEvent"in window||delete sn.transitionend.transition);function Ol(e){if(ui[e])return ui[e];if(!sn[e])return e;var t=sn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in bu)return ui[e]=t[n];return e}var Gu=Ol("animationend"),Ju=Ol("animationiteration"),Zu=Ol("animationstart"),ec=Ol("transitionend"),tc=new Map,Ga="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 zt(e,t){tc.set(e,t),qt(t,[e])}for(var ci=0;ci<Ga.length;ci++){var di=Ga[ci],hh=di.toLowerCase(),ph=di[0].toUpperCase()+di.slice(1);zt(hh,"on"+ph)}zt(Gu,"onAnimationEnd");zt(Ju,"onAnimationIteration");zt(Zu,"onAnimationStart");zt("dblclick","onDoubleClick");zt("focusin","onFocus");zt("focusout","onBlur");zt(ec,"onTransitionEnd");jn("onMouseEnter",["mouseout","mouseover"]);jn("onMouseLeave",["mouseout","mouseover"]);jn("onPointerEnter",["pointerout","pointerover"]);jn("onPointerLeave",["pointerout","pointerover"]);qt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));qt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));qt("onBeforeInput",["compositionend","keypress","textInput","paste"]);qt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));qt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));qt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yn="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(" "),mh=new Set("cancel close invalid load scroll toggle".split(" ").concat(Yn));function Ja(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,hf(r,t,void 0,e),e.currentTarget=null}function nc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var u=r[a],o=u.instance,c=u.currentTarget;if(u=u.listener,o!==i&&l.isPropagationStopped())break e;Ja(l,u,c),i=o}else for(a=0;a<r.length;a++){if(u=r[a],o=u.instance,c=u.currentTarget,u=u.listener,o!==i&&l.isPropagationStopped())break e;Ja(l,u,c),i=o}}}if(sl)throw e=Hi,sl=!1,Hi=null,e}function H(e,t){var n=t[Zi];n===void 0&&(n=t[Zi]=new Set);var r=e+"__bubble";n.has(r)||(rc(t,e,2,!1),n.add(r))}function fi(e,t,n){var r=0;t&&(r|=4),rc(n,e,r,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function dr(e){if(!e[Fr]){e[Fr]=!0,cu.forEach(function(n){n!=="selectionchange"&&(mh.has(n)||fi(n,!1,e),fi(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fr]||(t[Fr]=!0,fi("selectionchange",!1,t))}}function rc(e,t,n,r){switch(Bu(t)){case 1:var l=_f;break;case 4:l=Lf;break;default:l=Us}n=l.bind(null,t,n,e),l=void 0,!$i||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function hi(e,t,n,r,l){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var u=r.stateNode.containerInfo;if(u===l||u.nodeType===8&&u.parentNode===l)break;if(a===4)for(a=r.return;a!==null;){var o=a.tag;if((o===3||o===4)&&(o=a.stateNode.containerInfo,o===l||o.nodeType===8&&o.parentNode===l))return;a=a.return}for(;u!==null;){if(a=Ut(u),a===null)return;if(o=a.tag,o===5||o===6){r=i=a;continue e}u=u.parentNode}}r=r.return}Cu(function(){var c=i,p=Is(n),f=[];e:{var h=tc.get(e);if(h!==void 0){var j=Ws,g=e;switch(e){case"keypress":if(br(n)===0)break e;case"keydown":case"keyup":j=Kf;break;case"focusin":g="focus",j=si;break;case"focusout":g="blur",j=si;break;case"beforeblur":case"afterblur":j=si;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":j=Ba;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=Mf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=Xf;break;case Gu:case Ju:case Zu:j=Df;break;case ec:j=bf;break;case"scroll":j=zf;break;case"wheel":j=Jf;break;case"copy":case"cut":case"paste":j=Ff;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=$a}var k=(t&4)!==0,N=!k&&e==="scroll",m=k?h!==null?h+"Capture":null:h;k=[];for(var d=c,v;d!==null;){v=d;var y=v.stateNode;if(v.tag===5&&y!==null&&(v=y,m!==null&&(y=ir(d,m),y!=null&&k.push(fr(d,y,v)))),N)break;d=d.return}0<k.length&&(h=new j(h,g,null,n,p),f.push({event:h,listeners:k}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",h&&n!==Bi&&(g=n.relatedTarget||n.fromElement)&&(Ut(g)||g[it]))break e;if((j||h)&&(h=p.window===p?p:(h=p.ownerDocument)?h.defaultView||h.parentWindow:window,j?(g=n.relatedTarget||n.toElement,j=c,g=g?Ut(g):null,g!==null&&(N=bt(g),g!==N||g.tag!==5&&g.tag!==6)&&(g=null)):(j=null,g=c),j!==g)){if(k=Ba,y="onMouseLeave",m="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(k=$a,y="onPointerLeave",m="onPointerEnter",d="pointer"),N=j==null?h:an(j),v=g==null?h:an(g),h=new k(y,d+"leave",j,n,p),h.target=N,h.relatedTarget=v,y=null,Ut(p)===c&&(k=new k(m,d+"enter",g,n,p),k.target=v,k.relatedTarget=N,y=k),N=y,j&&g)t:{for(k=j,m=g,d=0,v=k;v;v=Zt(v))d++;for(v=0,y=m;y;y=Zt(y))v++;for(;0<d-v;)k=Zt(k),d--;for(;0<v-d;)m=Zt(m),v--;for(;d--;){if(k===m||m!==null&&k===m.alternate)break t;k=Zt(k),m=Zt(m)}k=null}else k=null;j!==null&&Za(f,h,j,k,!1),g!==null&&N!==null&&Za(f,N,g,k,!0)}}e:{if(h=c?an(c):window,j=h.nodeName&&h.nodeName.toLowerCase(),j==="select"||j==="input"&&h.type==="file")var C=ih;else if(Ka(h))if(Qu)C=uh;else{C=ah;var T=sh}else(j=h.nodeName)&&j.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(C=oh);if(C&&(C=C(e,c))){Ku(f,C,n,p);break e}T&&T(e,h,c),e==="focusout"&&(T=h._wrapperState)&&T.controlled&&h.type==="number"&&Ii(h,"number",h.value)}switch(T=c?an(c):window,e){case"focusin":(Ka(T)||T.contentEditable==="true")&&(ln=T,Yi=c,Jn=null);break;case"focusout":Jn=Yi=ln=null;break;case"mousedown":Xi=!0;break;case"contextmenu":case"mouseup":case"dragend":Xi=!1,ba(f,n,p);break;case"selectionchange":if(fh)break;case"keydown":case"keyup":ba(f,n,p)}var L;if(Hs)e:{switch(e){case"compositionstart":var z="onCompositionStart";break e;case"compositionend":z="onCompositionEnd";break e;case"compositionupdate":z="onCompositionUpdate";break e}z=void 0}else rn?Hu(e,n)&&(z="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(z="onCompositionStart");z&&($u&&n.locale!=="ko"&&(rn||z!=="onCompositionStart"?z==="onCompositionEnd"&&rn&&(L=Wu()):(gt=p,Bs="value"in gt?gt.value:gt.textContent,rn=!0)),T=dl(c,z),0<T.length&&(z=new Wa(z,e,null,n,p),f.push({event:z,listeners:T}),L?z.data=L:(L=Vu(n),L!==null&&(z.data=L)))),(L=eh?th(e,n):nh(e,n))&&(c=dl(c,"onBeforeInput"),0<c.length&&(p=new Wa("onBeforeInput","beforeinput",null,n,p),f.push({event:p,listeners:c}),p.data=L))}nc(f,t)})}function fr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function dl(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=ir(e,n),i!=null&&r.unshift(fr(e,i,l)),i=ir(e,t),i!=null&&r.push(fr(e,i,l))),e=e.return}return r}function Zt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Za(e,t,n,r,l){for(var i=t._reactName,a=[];n!==null&&n!==r;){var u=n,o=u.alternate,c=u.stateNode;if(o!==null&&o===r)break;u.tag===5&&c!==null&&(u=c,l?(o=ir(n,i),o!=null&&a.unshift(fr(n,o,u))):l||(o=ir(n,i),o!=null&&a.push(fr(n,o,u)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var vh=/\r\n?/g,gh=/\u0000|\uFFFD/g;function eo(e){return(typeof e=="string"?e:""+e).replace(vh,`
`).replace(gh,"")}function Ur(e,t,n){if(t=eo(t),eo(e)!==t&&n)throw Error(S(425))}function fl(){}var qi=null,bi=null;function Gi(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 Ji=typeof setTimeout=="function"?setTimeout:void 0,yh=typeof clearTimeout=="function"?clearTimeout:void 0,to=typeof Promise=="function"?Promise:void 0,xh=typeof queueMicrotask=="function"?queueMicrotask:typeof to<"u"?function(e){return to.resolve(null).then(e).catch(jh)}:Ji;function jh(e){setTimeout(function(){throw e})}function pi(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),or(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);or(t)}function St(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 no(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 Ln=Math.random().toString(36).slice(2),qe="__reactFiber$"+Ln,hr="__reactProps$"+Ln,it="__reactContainer$"+Ln,Zi="__reactEvents$"+Ln,kh="__reactListeners$"+Ln,wh="__reactHandles$"+Ln;function Ut(e){var t=e[qe];if(t)return t;for(var n=e.parentNode;n;){if(t=n[it]||n[qe]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=no(e);e!==null;){if(n=e[qe])return n;e=no(e)}return t}e=n,n=e.parentNode}return null}function Er(e){return e=e[qe]||e[it],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function an(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(S(33))}function Il(e){return e[hr]||null}var es=[],on=-1;function Rt(e){return{current:e}}function V(e){0>on||(e.current=es[on],es[on]=null,on--)}function $(e,t){on++,es[on]=e.current,e.current=t}var Lt={},pe=Rt(Lt),Se=Rt(!1),Vt=Lt;function kn(e,t){var n=e.type.contextTypes;if(!n)return Lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ne(e){return e=e.childContextTypes,e!=null}function hl(){V(Se),V(pe)}function ro(e,t,n){if(pe.current!==Lt)throw Error(S(168));$(pe,t),$(Se,n)}function lc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(S(108,sf(e)||"Unknown",l));return q({},n,r)}function pl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Lt,Vt=pe.current,$(pe,e),$(Se,Se.current),!0}function lo(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=lc(e,t,Vt),r.__reactInternalMemoizedMergedChildContext=e,V(Se),V(pe),$(pe,e)):V(Se),$(Se,n)}var et=null,Dl=!1,mi=!1;function ic(e){et===null?et=[e]:et.push(e)}function Sh(e){Dl=!0,ic(e)}function Mt(){if(!mi&&et!==null){mi=!0;var e=0,t=U;try{var n=et;for(U=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}et=null,Dl=!1}catch(l){throw et!==null&&(et=et.slice(e+1)),Lu(Ds,Mt),l}finally{U=t,mi=!1}}return null}var un=[],cn=0,ml=null,vl=0,Oe=[],Ie=0,Kt=null,tt=1,nt="";function At(e,t){un[cn++]=vl,un[cn++]=ml,ml=e,vl=t}function sc(e,t,n){Oe[Ie++]=tt,Oe[Ie++]=nt,Oe[Ie++]=Kt,Kt=e;var r=tt;e=nt;var l=32-Ve(r)-1;r&=~(1<<l),n+=1;var i=32-Ve(t)+l;if(30<i){var a=l-l%5;i=(r&(1<<a)-1).toString(32),r>>=a,l-=a,tt=1<<32-Ve(t)+l|n<<l|r,nt=i+e}else tt=1<<i|n<<l|r,nt=e}function Ks(e){e.return!==null&&(At(e,1),sc(e,1,0))}function Qs(e){for(;e===ml;)ml=un[--cn],un[cn]=null,vl=un[--cn],un[cn]=null;for(;e===Kt;)Kt=Oe[--Ie],Oe[Ie]=null,nt=Oe[--Ie],Oe[Ie]=null,tt=Oe[--Ie],Oe[Ie]=null}var Le=null,_e=null,K=!1,He=null;function ac(e,t){var n=De(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 io(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,Le=e,_e=St(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Le=e,_e=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Kt!==null?{id:tt,overflow:nt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=De(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Le=e,_e=null,!0):!1;default:return!1}}function ts(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ns(e){if(K){var t=_e;if(t){var n=t;if(!io(e,t)){if(ts(e))throw Error(S(418));t=St(n.nextSibling);var r=Le;t&&io(e,t)?ac(r,n):(e.flags=e.flags&-4097|2,K=!1,Le=e)}}else{if(ts(e))throw Error(S(418));e.flags=e.flags&-4097|2,K=!1,Le=e}}}function so(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Le=e}function Br(e){if(e!==Le)return!1;if(!K)return so(e),K=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Gi(e.type,e.memoizedProps)),t&&(t=_e)){if(ts(e))throw oc(),Error(S(418));for(;t;)ac(e,t),t=St(t.nextSibling)}if(so(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(S(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){_e=St(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}_e=null}}else _e=Le?St(e.stateNode.nextSibling):null;return!0}function oc(){for(var e=_e;e;)e=St(e.nextSibling)}function wn(){_e=Le=null,K=!1}function Ys(e){He===null?He=[e]:He.push(e)}var Nh=ot.ReactCurrentBatchConfig;function Bn(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(S(309));var r=n.stateNode}if(!r)throw Error(S(147,e));var l=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var u=l.refs;a===null?delete u[i]:u[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(S(284));if(!n._owner)throw Error(S(290,e))}return e}function Wr(e,t){throw e=Object.prototype.toString.call(t),Error(S(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ao(e){var t=e._init;return t(e._payload)}function uc(e){function t(m,d){if(e){var v=m.deletions;v===null?(m.deletions=[d],m.flags|=16):v.push(d)}}function n(m,d){if(!e)return null;for(;d!==null;)t(m,d),d=d.sibling;return null}function r(m,d){for(m=new Map;d!==null;)d.key!==null?m.set(d.key,d):m.set(d.index,d),d=d.sibling;return m}function l(m,d){return m=Pt(m,d),m.index=0,m.sibling=null,m}function i(m,d,v){return m.index=v,e?(v=m.alternate,v!==null?(v=v.index,v<d?(m.flags|=2,d):v):(m.flags|=2,d)):(m.flags|=1048576,d)}function a(m){return e&&m.alternate===null&&(m.flags|=2),m}function u(m,d,v,y){return d===null||d.tag!==6?(d=wi(v,m.mode,y),d.return=m,d):(d=l(d,v),d.return=m,d)}function o(m,d,v,y){var C=v.type;return C===nn?p(m,d,v.props.children,y,v.key):d!==null&&(d.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===ht&&ao(C)===d.type)?(y=l(d,v.props),y.ref=Bn(m,d,v),y.return=m,y):(y=rl(v.type,v.key,v.props,null,m.mode,y),y.ref=Bn(m,d,v),y.return=m,y)}function c(m,d,v,y){return d===null||d.tag!==4||d.stateNode.containerInfo!==v.containerInfo||d.stateNode.implementation!==v.implementation?(d=Si(v,m.mode,y),d.return=m,d):(d=l(d,v.children||[]),d.return=m,d)}function p(m,d,v,y,C){return d===null||d.tag!==7?(d=Ht(v,m.mode,y,C),d.return=m,d):(d=l(d,v),d.return=m,d)}function f(m,d,v){if(typeof d=="string"&&d!==""||typeof d=="number")return d=wi(""+d,m.mode,v),d.return=m,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Lr:return v=rl(d.type,d.key,d.props,null,m.mode,v),v.ref=Bn(m,null,d),v.return=m,v;case tn:return d=Si(d,m.mode,v),d.return=m,d;case ht:var y=d._init;return f(m,y(d._payload),v)}if(Kn(d)||In(d))return d=Ht(d,m.mode,v,null),d.return=m,d;Wr(m,d)}return null}function h(m,d,v,y){var C=d!==null?d.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return C!==null?null:u(m,d,""+v,y);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Lr:return v.key===C?o(m,d,v,y):null;case tn:return v.key===C?c(m,d,v,y):null;case ht:return C=v._init,h(m,d,C(v._payload),y)}if(Kn(v)||In(v))return C!==null?null:p(m,d,v,y,null);Wr(m,v)}return null}function j(m,d,v,y,C){if(typeof y=="string"&&y!==""||typeof y=="number")return m=m.get(v)||null,u(d,m,""+y,C);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Lr:return m=m.get(y.key===null?v:y.key)||null,o(d,m,y,C);case tn:return m=m.get(y.key===null?v:y.key)||null,c(d,m,y,C);case ht:var T=y._init;return j(m,d,v,T(y._payload),C)}if(Kn(y)||In(y))return m=m.get(v)||null,p(d,m,y,C,null);Wr(d,y)}return null}function g(m,d,v,y){for(var C=null,T=null,L=d,z=d=0,W=null;L!==null&&z<v.length;z++){L.index>z?(W=L,L=null):W=L.sibling;var O=h(m,L,v[z],y);if(O===null){L===null&&(L=W);break}e&&L&&O.alternate===null&&t(m,L),d=i(O,d,z),T===null?C=O:T.sibling=O,T=O,L=W}if(z===v.length)return n(m,L),K&&At(m,z),C;if(L===null){for(;z<v.length;z++)L=f(m,v[z],y),L!==null&&(d=i(L,d,z),T===null?C=L:T.sibling=L,T=L);return K&&At(m,z),C}for(L=r(m,L);z<v.length;z++)W=j(L,m,z,v[z],y),W!==null&&(e&&W.alternate!==null&&L.delete(W.key===null?z:W.key),d=i(W,d,z),T===null?C=W:T.sibling=W,T=W);return e&&L.forEach(function(xe){return t(m,xe)}),K&&At(m,z),C}function k(m,d,v,y){var C=In(v);if(typeof C!="function")throw Error(S(150));if(v=C.call(v),v==null)throw Error(S(151));for(var T=C=null,L=d,z=d=0,W=null,O=v.next();L!==null&&!O.done;z++,O=v.next()){L.index>z?(W=L,L=null):W=L.sibling;var xe=h(m,L,O.value,y);if(xe===null){L===null&&(L=W);break}e&&L&&xe.alternate===null&&t(m,L),d=i(xe,d,z),T===null?C=xe:T.sibling=xe,T=xe,L=W}if(O.done)return n(m,L),K&&At(m,z),C;if(L===null){for(;!O.done;z++,O=v.next())O=f(m,O.value,y),O!==null&&(d=i(O,d,z),T===null?C=O:T.sibling=O,T=O);return K&&At(m,z),C}for(L=r(m,L);!O.done;z++,O=v.next())O=j(L,m,z,O.value,y),O!==null&&(e&&O.alternate!==null&&L.delete(O.key===null?z:O.key),d=i(O,d,z),T===null?C=O:T.sibling=O,T=O);return e&&L.forEach(function(Gt){return t(m,Gt)}),K&&At(m,z),C}function N(m,d,v,y){if(typeof v=="object"&&v!==null&&v.type===nn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Lr:e:{for(var C=v.key,T=d;T!==null;){if(T.key===C){if(C=v.type,C===nn){if(T.tag===7){n(m,T.sibling),d=l(T,v.props.children),d.return=m,m=d;break e}}else if(T.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===ht&&ao(C)===T.type){n(m,T.sibling),d=l(T,v.props),d.ref=Bn(m,T,v),d.return=m,m=d;break e}n(m,T);break}else t(m,T);T=T.sibling}v.type===nn?(d=Ht(v.props.children,m.mode,y,v.key),d.return=m,m=d):(y=rl(v.type,v.key,v.props,null,m.mode,y),y.ref=Bn(m,d,v),y.return=m,m=y)}return a(m);case tn:e:{for(T=v.key;d!==null;){if(d.key===T)if(d.tag===4&&d.stateNode.containerInfo===v.containerInfo&&d.stateNode.implementation===v.implementation){n(m,d.sibling),d=l(d,v.children||[]),d.return=m,m=d;break e}else{n(m,d);break}else t(m,d);d=d.sibling}d=Si(v,m.mode,y),d.return=m,m=d}return a(m);case ht:return T=v._init,N(m,d,T(v._payload),y)}if(Kn(v))return g(m,d,v,y);if(In(v))return k(m,d,v,y);Wr(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,d!==null&&d.tag===6?(n(m,d.sibling),d=l(d,v),d.return=m,m=d):(n(m,d),d=wi(v,m.mode,y),d.return=m,m=d),a(m)):n(m,d)}return N}var Sn=uc(!0),cc=uc(!1),gl=Rt(null),yl=null,dn=null,Xs=null;function qs(){Xs=dn=yl=null}function bs(e){var t=gl.current;V(gl),e._currentValue=t}function rs(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 yn(e,t){yl=e,Xs=dn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(we=!0),e.firstContext=null)}function Fe(e){var t=e._currentValue;if(Xs!==e)if(e={context:e,memoizedValue:t,next:null},dn===null){if(yl===null)throw Error(S(308));dn=e,yl.dependencies={lanes:0,firstContext:e}}else dn=dn.next=e;return t}var Bt=null;function Gs(e){Bt===null?Bt=[e]:Bt.push(e)}function dc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Gs(t)):(n.next=l.next,l.next=n),t.interleaved=n,st(e,r)}function st(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 pt=!1;function Js(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fc(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 rt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Nt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,A&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,st(e,n)}return l=r.interleaved,l===null?(t.next=t,Gs(r)):(t.next=l.next,l.next=t),r.interleaved=t,st(e,n)}function Gr(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,As(e,n)}}function oo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,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 xl(e,t,n,r){var l=e.updateQueue;pt=!1;var i=l.firstBaseUpdate,a=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var o=u,c=o.next;o.next=null,a===null?i=c:a.next=c,a=o;var p=e.alternate;p!==null&&(p=p.updateQueue,u=p.lastBaseUpdate,u!==a&&(u===null?p.firstBaseUpdate=c:u.next=c,p.lastBaseUpdate=o))}if(i!==null){var f=l.baseState;a=0,p=c=o=null,u=i;do{var h=u.lane,j=u.eventTime;if((r&h)===h){p!==null&&(p=p.next={eventTime:j,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var g=e,k=u;switch(h=t,j=n,k.tag){case 1:if(g=k.payload,typeof g=="function"){f=g.call(j,f,h);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=k.payload,h=typeof g=="function"?g.call(j,f,h):g,h==null)break e;f=q({},f,h);break e;case 2:pt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[u]:h.push(u))}else j={eventTime:j,lane:h,tag:u.tag,payload:u.payload,callback:u.callback,next:null},p===null?(c=p=j,o=f):p=p.next=j,a|=h;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;h=u,u=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(p===null&&(o=f),l.baseState=o,l.firstBaseUpdate=c,l.lastBaseUpdate=p,t=l.shared.interleaved,t!==null){l=t;do a|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);Yt|=a,e.lanes=a,e.memoizedState=f}}function uo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(S(191,l));l.call(r)}}}var Cr={},Ge=Rt(Cr),pr=Rt(Cr),mr=Rt(Cr);function Wt(e){if(e===Cr)throw Error(S(174));return e}function Zs(e,t){switch($(mr,t),$(pr,e),$(Ge,Cr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ai(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ai(t,e)}V(Ge),$(Ge,t)}function Nn(){V(Ge),V(pr),V(mr)}function hc(e){Wt(mr.current);var t=Wt(Ge.current),n=Ai(t,e.type);t!==n&&($(pr,e),$(Ge,n))}function ea(e){pr.current===e&&(V(Ge),V(pr))}var Q=Rt(0);function jl(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 vi=[];function ta(){for(var e=0;e<vi.length;e++)vi[e]._workInProgressVersionPrimary=null;vi.length=0}var Jr=ot.ReactCurrentDispatcher,gi=ot.ReactCurrentBatchConfig,Qt=0,Y=null,ne=null,le=null,kl=!1,Zn=!1,vr=0,Eh=0;function ce(){throw Error(S(321))}function na(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qe(e[n],t[n]))return!1;return!0}function ra(e,t,n,r,l,i){if(Qt=i,Y=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Jr.current=e===null||e.memoizedState===null?_h:Lh,e=n(r,l),Zn){i=0;do{if(Zn=!1,vr=0,25<=i)throw Error(S(301));i+=1,le=ne=null,t.updateQueue=null,Jr.current=zh,e=n(r,l)}while(Zn)}if(Jr.current=wl,t=ne!==null&&ne.next!==null,Qt=0,le=ne=Y=null,kl=!1,t)throw Error(S(300));return e}function la(){var e=vr!==0;return vr=0,e}function Xe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return le===null?Y.memoizedState=le=e:le=le.next=e,le}function Ue(){if(ne===null){var e=Y.alternate;e=e!==null?e.memoizedState:null}else e=ne.next;var t=le===null?Y.memoizedState:le.next;if(t!==null)le=t,ne=e;else{if(e===null)throw Error(S(310));ne=e,e={memoizedState:ne.memoizedState,baseState:ne.baseState,baseQueue:ne.baseQueue,queue:ne.queue,next:null},le===null?Y.memoizedState=le=e:le=le.next=e}return le}function gr(e,t){return typeof t=="function"?t(e):t}function yi(e){var t=Ue(),n=t.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=e;var r=ne,l=r.baseQueue,i=n.pending;if(i!==null){if(l!==null){var a=l.next;l.next=i.next,i.next=a}r.baseQueue=l=i,n.pending=null}if(l!==null){i=l.next,r=r.baseState;var u=a=null,o=null,c=i;do{var p=c.lane;if((Qt&p)===p)o!==null&&(o=o.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:p,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};o===null?(u=o=f,a=r):o=o.next=f,Y.lanes|=p,Yt|=p}c=c.next}while(c!==null&&c!==i);o===null?a=r:o.next=u,Qe(r,t.memoizedState)||(we=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=o,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do i=l.lane,Y.lanes|=i,Yt|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xi(e){var t=Ue(),n=t.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var a=l=l.next;do i=e(i,a.action),a=a.next;while(a!==l);Qe(i,t.memoizedState)||(we=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function pc(){}function mc(e,t){var n=Y,r=Ue(),l=t(),i=!Qe(r.memoizedState,l);if(i&&(r.memoizedState=l,we=!0),r=r.queue,ia(yc.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||le!==null&&le.memoizedState.tag&1){if(n.flags|=2048,yr(9,gc.bind(null,n,r,l,t),void 0,null),ie===null)throw Error(S(349));Qt&30||vc(n,t,l)}return l}function vc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Y.updateQueue,t===null?(t={lastEffect:null,stores:null},Y.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gc(e,t,n,r){t.value=n,t.getSnapshot=r,xc(t)&&jc(e)}function yc(e,t,n){return n(function(){xc(t)&&jc(e)})}function xc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qe(e,n)}catch{return!0}}function jc(e){var t=st(e,1);t!==null&&Ke(t,e,1,-1)}function co(e){var t=Xe();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:e},t.queue=e,e=e.dispatch=Th.bind(null,Y,e),[t.memoizedState,e]}function yr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Y.updateQueue,t===null?(t={lastEffect:null,stores:null},Y.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 kc(){return Ue().memoizedState}function Zr(e,t,n,r){var l=Xe();Y.flags|=e,l.memoizedState=yr(1|t,n,void 0,r===void 0?null:r)}function Al(e,t,n,r){var l=Ue();r=r===void 0?null:r;var i=void 0;if(ne!==null){var a=ne.memoizedState;if(i=a.destroy,r!==null&&na(r,a.deps)){l.memoizedState=yr(t,n,i,r);return}}Y.flags|=e,l.memoizedState=yr(1|t,n,i,r)}function fo(e,t){return Zr(8390656,8,e,t)}function ia(e,t){return Al(2048,8,e,t)}function wc(e,t){return Al(4,2,e,t)}function Sc(e,t){return Al(4,4,e,t)}function Nc(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 Ec(e,t,n){return n=n!=null?n.concat([e]):null,Al(4,4,Nc.bind(null,t,e),n)}function sa(){}function Cc(e,t){var n=Ue();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&na(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Pc(e,t){var n=Ue();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&na(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Tc(e,t,n){return Qt&21?(Qe(n,t)||(n=Mu(),Y.lanes|=n,Yt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,we=!0),e.memoizedState=n)}function Ch(e,t){var n=U;U=n!==0&&4>n?n:4,e(!0);var r=gi.transition;gi.transition={};try{e(!1),t()}finally{U=n,gi.transition=r}}function _c(){return Ue().memoizedState}function Ph(e,t,n){var r=Ct(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Lc(e))zc(t,n);else if(n=dc(e,t,n,r),n!==null){var l=ve();Ke(n,e,r,l),Rc(n,t,r)}}function Th(e,t,n){var r=Ct(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Lc(e))zc(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,u=i(a,n);if(l.hasEagerState=!0,l.eagerState=u,Qe(u,a)){var o=t.interleaved;o===null?(l.next=l,Gs(t)):(l.next=o.next,o.next=l),t.interleaved=l;return}}catch{}finally{}n=dc(e,t,l,r),n!==null&&(l=ve(),Ke(n,e,r,l),Rc(n,t,r))}}function Lc(e){var t=e.alternate;return e===Y||t!==null&&t===Y}function zc(e,t){Zn=kl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,As(e,n)}}var wl={readContext:Fe,useCallback:ce,useContext:ce,useEffect:ce,useImperativeHandle:ce,useInsertionEffect:ce,useLayoutEffect:ce,useMemo:ce,useReducer:ce,useRef:ce,useState:ce,useDebugValue:ce,useDeferredValue:ce,useTransition:ce,useMutableSource:ce,useSyncExternalStore:ce,useId:ce,unstable_isNewReconciler:!1},_h={readContext:Fe,useCallback:function(e,t){return Xe().memoizedState=[e,t===void 0?null:t],e},useContext:Fe,useEffect:fo,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zr(4194308,4,Nc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zr(4,2,e,t)},useMemo:function(e,t){var n=Xe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xe();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=Ph.bind(null,Y,e),[r.memoizedState,e]},useRef:function(e){var t=Xe();return e={current:e},t.memoizedState=e},useState:co,useDebugValue:sa,useDeferredValue:function(e){return Xe().memoizedState=e},useTransition:function(){var e=co(!1),t=e[0];return e=Ch.bind(null,e[1]),Xe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Y,l=Xe();if(K){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),ie===null)throw Error(S(349));Qt&30||vc(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,fo(yc.bind(null,r,i,e),[e]),r.flags|=2048,yr(9,gc.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Xe(),t=ie.identifierPrefix;if(K){var n=nt,r=tt;n=(r&~(1<<32-Ve(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=vr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Eh++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Lh={readContext:Fe,useCallback:Cc,useContext:Fe,useEffect:ia,useImperativeHandle:Ec,useInsertionEffect:wc,useLayoutEffect:Sc,useMemo:Pc,useReducer:yi,useRef:kc,useState:function(){return yi(gr)},useDebugValue:sa,useDeferredValue:function(e){var t=Ue();return Tc(t,ne.memoizedState,e)},useTransition:function(){var e=yi(gr)[0],t=Ue().memoizedState;return[e,t]},useMutableSource:pc,useSyncExternalStore:mc,useId:_c,unstable_isNewReconciler:!1},zh={readContext:Fe,useCallback:Cc,useContext:Fe,useEffect:ia,useImperativeHandle:Ec,useInsertionEffect:wc,useLayoutEffect:Sc,useMemo:Pc,useReducer:xi,useRef:kc,useState:function(){return xi(gr)},useDebugValue:sa,useDeferredValue:function(e){var t=Ue();return ne===null?t.memoizedState=e:Tc(t,ne.memoizedState,e)},useTransition:function(){var e=xi(gr)[0],t=Ue().memoizedState;return[e,t]},useMutableSource:pc,useSyncExternalStore:mc,useId:_c,unstable_isNewReconciler:!1};function We(e,t){if(e&&e.defaultProps){t=q({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ls(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:q({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Fl={isMounted:function(e){return(e=e._reactInternals)?bt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ve(),l=Ct(e),i=rt(r,l);i.payload=t,n!=null&&(i.callback=n),t=Nt(e,i,l),t!==null&&(Ke(t,e,l,r),Gr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ve(),l=Ct(e),i=rt(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Nt(e,i,l),t!==null&&(Ke(t,e,l,r),Gr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ve(),r=Ct(e),l=rt(n,r);l.tag=2,t!=null&&(l.callback=t),t=Nt(e,l,r),t!==null&&(Ke(t,e,r,n),Gr(t,e,r))}};function ho(e,t,n,r,l,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!cr(n,r)||!cr(l,i):!0}function Mc(e,t,n){var r=!1,l=Lt,i=t.contextType;return typeof i=="object"&&i!==null?i=Fe(i):(l=Ne(t)?Vt:pe.current,r=t.contextTypes,i=(r=r!=null)?kn(e,l):Lt),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Fl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function po(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&&Fl.enqueueReplaceState(t,t.state,null)}function is(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Js(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=Fe(i):(i=Ne(t)?Vt:pe.current,l.context=kn(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(ls(e,t,i,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&Fl.enqueueReplaceState(l,l.state,null),xl(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function En(e,t){try{var n="",r=t;do n+=lf(r),r=r.return;while(r);var l=n}catch(i){l=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:l,digest:null}}function ji(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ss(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Rh=typeof WeakMap=="function"?WeakMap:Map;function Oc(e,t,n){n=rt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Nl||(Nl=!0,vs=r),ss(e,t)},n}function Ic(e,t,n){n=rt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){ss(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ss(e,t),typeof r!="function"&&(Et===null?Et=new Set([this]):Et.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function mo(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rh;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Qh.bind(null,e,t,n),t.then(e,e))}function vo(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 go(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,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=rt(-1,1),t.tag=2,Nt(n,t,1))),n.lanes|=1),e)}var Mh=ot.ReactCurrentOwner,we=!1;function me(e,t,n,r){t.child=e===null?cc(t,null,n,r):Sn(t,e.child,n,r)}function yo(e,t,n,r,l){n=n.render;var i=t.ref;return yn(t,l),r=ra(e,t,n,r,i,l),n=la(),e!==null&&!we?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,at(e,t,l)):(K&&n&&Ks(t),t.flags|=1,me(e,t,r,l),t.child)}function xo(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!pa(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Dc(e,t,i,r,l)):(e=rl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&l)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:cr,n(a,r)&&e.ref===t.ref)return at(e,t,l)}return t.flags|=1,e=Pt(i,r),e.ref=t.ref,e.return=t,t.child=e}function Dc(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(cr(i,r)&&e.ref===t.ref)if(we=!1,t.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(we=!0);else return t.lanes=e.lanes,at(e,t,l)}return as(e,t,n,r,l)}function Ac(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$(hn,Te),Te|=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,$(hn,Te),Te|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,$(hn,Te),Te|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,$(hn,Te),Te|=r;return me(e,t,l,n),t.child}function Fc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function as(e,t,n,r,l){var i=Ne(n)?Vt:pe.current;return i=kn(t,i),yn(t,l),n=ra(e,t,n,r,i,l),r=la(),e!==null&&!we?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,at(e,t,l)):(K&&r&&Ks(t),t.flags|=1,me(e,t,n,l),t.child)}function jo(e,t,n,r,l){if(Ne(n)){var i=!0;pl(t)}else i=!1;if(yn(t,l),t.stateNode===null)el(e,t),Mc(t,n,r),is(t,n,r,l),r=!0;else if(e===null){var a=t.stateNode,u=t.memoizedProps;a.props=u;var o=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Fe(c):(c=Ne(n)?Vt:pe.current,c=kn(t,c));var p=n.getDerivedStateFromProps,f=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(u!==r||o!==c)&&po(t,a,r,c),pt=!1;var h=t.memoizedState;a.state=h,xl(t,r,a,l),o=t.memoizedState,u!==r||h!==o||Se.current||pt?(typeof p=="function"&&(ls(t,n,p,r),o=t.memoizedState),(u=pt||ho(t,n,u,r,h,o,c))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=o),a.props=r,a.state=o,a.context=c,r=u):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,fc(e,t),u=t.memoizedProps,c=t.type===t.elementType?u:We(t.type,u),a.props=c,f=t.pendingProps,h=a.context,o=n.contextType,typeof o=="object"&&o!==null?o=Fe(o):(o=Ne(n)?Vt:pe.current,o=kn(t,o));var j=n.getDerivedStateFromProps;(p=typeof j=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(u!==f||h!==o)&&po(t,a,r,o),pt=!1,h=t.memoizedState,a.state=h,xl(t,r,a,l);var g=t.memoizedState;u!==f||h!==g||Se.current||pt?(typeof j=="function"&&(ls(t,n,j,r),g=t.memoizedState),(c=pt||ho(t,n,c,r,h,g,o)||!1)?(p||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,g,o),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,g,o)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),a.props=r,a.state=g,a.context=o,r=c):(typeof a.componentDidUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return os(e,t,n,r,i,l)}function os(e,t,n,r,l,i){Fc(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return l&&lo(t,n,!1),at(e,t,i);r=t.stateNode,Mh.current=t;var u=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Sn(t,e.child,null,i),t.child=Sn(t,null,u,i)):me(e,t,u,i),t.memoizedState=r.state,l&&lo(t,n,!0),t.child}function Uc(e){var t=e.stateNode;t.pendingContext?ro(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ro(e,t.context,!1),Zs(e,t.containerInfo)}function ko(e,t,n,r,l){return wn(),Ys(l),t.flags|=256,me(e,t,n,r),t.child}var us={dehydrated:null,treeContext:null,retryLane:0};function cs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Bc(e,t,n){var r=t.pendingProps,l=Q.current,i=!1,a=(t.flags&128)!==0,u;if((u=a)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),$(Q,l&1),e===null)return ns(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):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Wl(a,r,0,null),e=Ht(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=cs(n),t.memoizedState=us,e):aa(t,a));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return Oh(e,t,a,r,u,l,n);if(i){i=r.fallback,a=t.mode,l=e.child,u=l.sibling;var o={mode:"hidden",children:r.children};return!(a&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=o,t.deletions=null):(r=Pt(l,o),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?i=Pt(u,i):(i=Ht(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?cs(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=us,r}return i=e.child,e=i.sibling,r=Pt(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 aa(e,t){return t=Wl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function $r(e,t,n,r){return r!==null&&Ys(r),Sn(t,e.child,null,n),e=aa(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Oh(e,t,n,r,l,i,a){if(n)return t.flags&256?(t.flags&=-257,r=ji(Error(S(422))),$r(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=Wl({mode:"visible",children:r.children},l,0,null),i=Ht(i,l,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Sn(t,e.child,null,a),t.child.memoizedState=cs(a),t.memoizedState=us,i);if(!(t.mode&1))return $r(e,t,a,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,i=Error(S(419)),r=ji(i,r,void 0),$r(e,t,a,r)}if(u=(a&e.childLanes)!==0,we||u){if(r=ie,r!==null){switch(a&-a){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|a)?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,st(e,l),Ke(r,e,l,-1))}return ha(),r=ji(Error(S(421))),$r(e,t,a,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Yh.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,_e=St(l.nextSibling),Le=t,K=!0,He=null,e!==null&&(Oe[Ie++]=tt,Oe[Ie++]=nt,Oe[Ie++]=Kt,tt=e.id,nt=e.overflow,Kt=t),t=aa(t,r.children),t.flags|=4096,t)}function wo(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),rs(e.return,t,n)}function ki(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function Wc(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(me(e,t,r.children,n),r=Q.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&&wo(e,n,t);else if(e.tag===19)wo(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($(Q,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&jl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),ki(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&jl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}ki(t,!0,n,null,i);break;case"together":ki(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function el(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function at(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Yt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(S(153));if(t.child!==null){for(e=t.child,n=Pt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Pt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ih(e,t,n){switch(t.tag){case 3:Uc(t),wn();break;case 5:hc(t);break;case 1:Ne(t.type)&&pl(t);break;case 4:Zs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;$(gl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?($(Q,Q.current&1),t.flags|=128,null):n&t.child.childLanes?Bc(e,t,n):($(Q,Q.current&1),e=at(e,t,n),e!==null?e.sibling:null);$(Q,Q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Wc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),$(Q,Q.current),r)break;return null;case 22:case 23:return t.lanes=0,Ac(e,t,n)}return at(e,t,n)}var $c,ds,Hc,Vc;$c=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}};ds=function(){};Hc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Wt(Ge.current);var i=null;switch(n){case"input":l=Mi(e,l),r=Mi(e,r),i=[];break;case"select":l=q({},l,{value:void 0}),r=q({},r,{value:void 0}),i=[];break;case"textarea":l=Di(e,l),r=Di(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=fl)}Fi(n,r);var a;n=null;for(c in l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!=null)if(c==="style"){var u=l[c];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(rr.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var o=r[c];if(u=l!=null?l[c]:void 0,r.hasOwnProperty(c)&&o!==u&&(o!=null||u!=null))if(c==="style")if(u){for(a in u)!u.hasOwnProperty(a)||o&&o.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in o)o.hasOwnProperty(a)&&u[a]!==o[a]&&(n||(n={}),n[a]=o[a])}else n||(i||(i=[]),i.push(c,n)),n=o;else c==="dangerouslySetInnerHTML"?(o=o?o.__html:void 0,u=u?u.__html:void 0,o!=null&&u!==o&&(i=i||[]).push(c,o)):c==="children"?typeof o!="string"&&typeof o!="number"||(i=i||[]).push(c,""+o):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(rr.hasOwnProperty(c)?(o!=null&&c==="onScroll"&&H("scroll",e),i||u===o||(i=[])):(i=i||[]).push(c,o))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};Vc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Wn(e,t){if(!K)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 de(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Dh(e,t,n){var r=t.pendingProps;switch(Qs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return de(t),null;case 1:return Ne(t.type)&&hl(),de(t),null;case 3:return r=t.stateNode,Nn(),V(Se),V(pe),ta(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Br(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,He!==null&&(xs(He),He=null))),ds(e,t),de(t),null;case 5:ea(t);var l=Wt(mr.current);if(n=t.type,e!==null&&t.stateNode!=null)Hc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(S(166));return de(t),null}if(e=Wt(Ge.current),Br(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[qe]=t,r[hr]=i,e=(t.mode&1)!==0,n){case"dialog":H("cancel",r),H("close",r);break;case"iframe":case"object":case"embed":H("load",r);break;case"video":case"audio":for(l=0;l<Yn.length;l++)H(Yn[l],r);break;case"source":H("error",r);break;case"img":case"image":case"link":H("error",r),H("load",r);break;case"details":H("toggle",r);break;case"input":La(r,i),H("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},H("invalid",r);break;case"textarea":Ra(r,i),H("invalid",r)}Fi(n,i),l=null;for(var a in i)if(i.hasOwnProperty(a)){var u=i[a];a==="children"?typeof u=="string"?r.textContent!==u&&(i.suppressHydrationWarning!==!0&&Ur(r.textContent,u,e),l=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(i.suppressHydrationWarning!==!0&&Ur(r.textContent,u,e),l=["children",""+u]):rr.hasOwnProperty(a)&&u!=null&&a==="onScroll"&&H("scroll",r)}switch(n){case"input":zr(r),za(r,i,!0);break;case"textarea":zr(r),Ma(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=fl)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=yu(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[qe]=t,e[hr]=r,$c(e,t,!1,!1),t.stateNode=e;e:{switch(a=Ui(n,r),n){case"dialog":H("cancel",e),H("close",e),l=r;break;case"iframe":case"object":case"embed":H("load",e),l=r;break;case"video":case"audio":for(l=0;l<Yn.length;l++)H(Yn[l],e);l=r;break;case"source":H("error",e),l=r;break;case"img":case"image":case"link":H("error",e),H("load",e),l=r;break;case"details":H("toggle",e),l=r;break;case"input":La(e,r),l=Mi(e,r),H("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=q({},r,{value:void 0}),H("invalid",e);break;case"textarea":Ra(e,r),l=Di(e,r),H("invalid",e);break;default:l=r}Fi(n,l),u=l;for(i in u)if(u.hasOwnProperty(i)){var o=u[i];i==="style"?ku(e,o):i==="dangerouslySetInnerHTML"?(o=o?o.__html:void 0,o!=null&&xu(e,o)):i==="children"?typeof o=="string"?(n!=="textarea"||o!=="")&&lr(e,o):typeof o=="number"&&lr(e,""+o):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(rr.hasOwnProperty(i)?o!=null&&i==="onScroll"&&H("scroll",e):o!=null&&zs(e,i,o,a))}switch(n){case"input":zr(e),za(e,r,!1);break;case"textarea":zr(e),Ma(e);break;case"option":r.value!=null&&e.setAttribute("value",""+_t(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?pn(e,!!r.multiple,i,!1):r.defaultValue!=null&&pn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=fl)}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 de(t),null;case 6:if(e&&t.stateNode!=null)Vc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(S(166));if(n=Wt(mr.current),Wt(Ge.current),Br(t)){if(r=t.stateNode,n=t.memoizedProps,r[qe]=t,(i=r.nodeValue!==n)&&(e=Le,e!==null))switch(e.tag){case 3:Ur(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ur(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[qe]=t,t.stateNode=r}return de(t),null;case 13:if(V(Q),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(K&&_e!==null&&t.mode&1&&!(t.flags&128))oc(),wn(),t.flags|=98560,i=!1;else if(i=Br(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(S(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(S(317));i[qe]=t}else wn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;de(t),i=!1}else He!==null&&(xs(He),He=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||Q.current&1?re===0&&(re=3):ha())),t.updateQueue!==null&&(t.flags|=4),de(t),null);case 4:return Nn(),ds(e,t),e===null&&dr(t.stateNode.containerInfo),de(t),null;case 10:return bs(t.type._context),de(t),null;case 17:return Ne(t.type)&&hl(),de(t),null;case 19:if(V(Q),i=t.memoizedState,i===null)return de(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)Wn(i,!1);else{if(re!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=jl(e),a!==null){for(t.flags|=128,Wn(i,!1),r=a.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,a=i.alternate,a===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=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return $(Q,Q.current&1|2),t.child}e=e.sibling}i.tail!==null&&G()>Cn&&(t.flags|=128,r=!0,Wn(i,!1),t.lanes=4194304)}else{if(!r)if(e=jl(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Wn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!K)return de(t),null}else 2*G()-i.renderingStartTime>Cn&&n!==1073741824&&(t.flags|=128,r=!0,Wn(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=G(),t.sibling=null,n=Q.current,$(Q,r?n&1|2:n&1),t):(de(t),null);case 22:case 23:return fa(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Te&1073741824&&(de(t),t.subtreeFlags&6&&(t.flags|=8192)):de(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function Ah(e,t){switch(Qs(t),t.tag){case 1:return Ne(t.type)&&hl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Nn(),V(Se),V(pe),ta(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ea(t),null;case 13:if(V(Q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(Q),null;case 4:return Nn(),null;case 10:return bs(t.type._context),null;case 22:case 23:return fa(),null;case 24:return null;default:return null}}var Hr=!1,he=!1,Fh=typeof WeakSet=="function"?WeakSet:Set,_=null;function fn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){b(e,t,r)}else n.current=null}function fs(e,t,n){try{n()}catch(r){b(e,t,r)}}var So=!1;function Uh(e,t){if(qi=ul,e=qu(),Vs(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 l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,u=-1,o=-1,c=0,p=0,f=e,h=null;t:for(;;){for(var j;f!==n||l!==0&&f.nodeType!==3||(u=a+l),f!==i||r!==0&&f.nodeType!==3||(o=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(j=f.firstChild)!==null;)h=f,f=j;for(;;){if(f===e)break t;if(h===n&&++c===l&&(u=a),h===i&&++p===r&&(o=a),(j=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=j}n=u===-1||o===-1?null:{start:u,end:o}}else n=null}n=n||{start:0,end:0}}else n=null;for(bi={focusedElem:e,selectionRange:n},ul=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var k=g.memoizedProps,N=g.memoizedState,m=t.stateNode,d=m.getSnapshotBeforeUpdate(t.elementType===t.type?k:We(t.type,k),N);m.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(y){b(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return g=So,So=!1,g}function er(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&fs(t,n,i)}l=l.next}while(l!==r)}}function Ul(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 hs(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 Kc(e){var t=e.alternate;t!==null&&(e.alternate=null,Kc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[qe],delete t[hr],delete t[Zi],delete t[kh],delete t[wh])),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 Qc(e){return e.tag===5||e.tag===3||e.tag===4}function No(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qc(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 ps(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=fl));else if(r!==4&&(e=e.child,e!==null))for(ps(e,t,n),e=e.sibling;e!==null;)ps(e,t,n),e=e.sibling}function ms(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(ms(e,t,n),e=e.sibling;e!==null;)ms(e,t,n),e=e.sibling}var se=null,$e=!1;function ct(e,t,n){for(n=n.child;n!==null;)Yc(e,t,n),n=n.sibling}function Yc(e,t,n){if(be&&typeof be.onCommitFiberUnmount=="function")try{be.onCommitFiberUnmount(zl,n)}catch{}switch(n.tag){case 5:he||fn(n,t);case 6:var r=se,l=$e;se=null,ct(e,t,n),se=r,$e=l,se!==null&&($e?(e=se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):se.removeChild(n.stateNode));break;case 18:se!==null&&($e?(e=se,n=n.stateNode,e.nodeType===8?pi(e.parentNode,n):e.nodeType===1&&pi(e,n),or(e)):pi(se,n.stateNode));break;case 4:r=se,l=$e,se=n.stateNode.containerInfo,$e=!0,ct(e,t,n),se=r,$e=l;break;case 0:case 11:case 14:case 15:if(!he&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&fs(n,t,a),l=l.next}while(l!==r)}ct(e,t,n);break;case 1:if(!he&&(fn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){b(n,t,u)}ct(e,t,n);break;case 21:ct(e,t,n);break;case 22:n.mode&1?(he=(r=he)||n.memoizedState!==null,ct(e,t,n),he=r):ct(e,t,n);break;default:ct(e,t,n)}}function Eo(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Fh),t.forEach(function(r){var l=Xh.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Be(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var i=e,a=t,u=a;e:for(;u!==null;){switch(u.tag){case 5:se=u.stateNode,$e=!1;break e;case 3:se=u.stateNode.containerInfo,$e=!0;break e;case 4:se=u.stateNode.containerInfo,$e=!0;break e}u=u.return}if(se===null)throw Error(S(160));Yc(i,a,l),se=null,$e=!1;var o=l.alternate;o!==null&&(o.return=null),l.return=null}catch(c){b(l,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Xc(t,e),t=t.sibling}function Xc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Be(t,e),Ye(e),r&4){try{er(3,e,e.return),Ul(3,e)}catch(k){b(e,e.return,k)}try{er(5,e,e.return)}catch(k){b(e,e.return,k)}}break;case 1:Be(t,e),Ye(e),r&512&&n!==null&&fn(n,n.return);break;case 5:if(Be(t,e),Ye(e),r&512&&n!==null&&fn(n,n.return),e.flags&32){var l=e.stateNode;try{lr(l,"")}catch(k){b(e,e.return,k)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,u=e.type,o=e.updateQueue;if(e.updateQueue=null,o!==null)try{u==="input"&&i.type==="radio"&&i.name!=null&&vu(l,i),Ui(u,a);var c=Ui(u,i);for(a=0;a<o.length;a+=2){var p=o[a],f=o[a+1];p==="style"?ku(l,f):p==="dangerouslySetInnerHTML"?xu(l,f):p==="children"?lr(l,f):zs(l,p,f,c)}switch(u){case"input":Oi(l,i);break;case"textarea":gu(l,i);break;case"select":var h=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var j=i.value;j!=null?pn(l,!!i.multiple,j,!1):h!==!!i.multiple&&(i.defaultValue!=null?pn(l,!!i.multiple,i.defaultValue,!0):pn(l,!!i.multiple,i.multiple?[]:"",!1))}l[hr]=i}catch(k){b(e,e.return,k)}}break;case 6:if(Be(t,e),Ye(e),r&4){if(e.stateNode===null)throw Error(S(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(k){b(e,e.return,k)}}break;case 3:if(Be(t,e),Ye(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{or(t.containerInfo)}catch(k){b(e,e.return,k)}break;case 4:Be(t,e),Ye(e);break;case 13:Be(t,e),Ye(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(ca=G())),r&4&&Eo(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(he=(c=he)||p,Be(t,e),he=c):Be(t,e),Ye(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!p&&e.mode&1)for(_=e,p=e.child;p!==null;){for(f=_=p;_!==null;){switch(h=_,j=h.child,h.tag){case 0:case 11:case 14:case 15:er(4,h,h.return);break;case 1:fn(h,h.return);var g=h.stateNode;if(typeof g.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(k){b(r,n,k)}}break;case 5:fn(h,h.return);break;case 22:if(h.memoizedState!==null){Po(f);continue}}j!==null?(j.return=h,_=j):Po(f)}p=p.sibling}e:for(p=null,f=e;;){if(f.tag===5){if(p===null){p=f;try{l=f.stateNode,c?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(u=f.stateNode,o=f.memoizedProps.style,a=o!=null&&o.hasOwnProperty("display")?o.display:null,u.style.display=ju("display",a))}catch(k){b(e,e.return,k)}}}else if(f.tag===6){if(p===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(k){b(e,e.return,k)}}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;p===f&&(p=null),f=f.return}p===f&&(p=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Be(t,e),Ye(e),r&4&&Eo(e);break;case 21:break;default:Be(t,e),Ye(e)}}function Ye(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Qc(n)){var r=n;break e}n=n.return}throw Error(S(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(lr(l,""),r.flags&=-33);var i=No(e);ms(e,i,l);break;case 3:case 4:var a=r.stateNode.containerInfo,u=No(e);ps(e,u,a);break;default:throw Error(S(161))}}catch(o){b(e,e.return,o)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Bh(e,t,n){_=e,qc(e)}function qc(e,t,n){for(var r=(e.mode&1)!==0;_!==null;){var l=_,i=l.child;if(l.tag===22&&r){var a=l.memoizedState!==null||Hr;if(!a){var u=l.alternate,o=u!==null&&u.memoizedState!==null||he;u=Hr;var c=he;if(Hr=a,(he=o)&&!c)for(_=l;_!==null;)a=_,o=a.child,a.tag===22&&a.memoizedState!==null?To(l):o!==null?(o.return=a,_=o):To(l);for(;i!==null;)_=i,qc(i),i=i.sibling;_=l,Hr=u,he=c}Co(e)}else l.subtreeFlags&8772&&i!==null?(i.return=l,_=i):Co(e)}}function Co(e){for(;_!==null;){var t=_;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:he||Ul(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!he)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:We(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&uo(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}uo(t,a,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var o=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":o.autoFocus&&n.focus();break;case"img":o.src&&(n.src=o.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 p=c.memoizedState;if(p!==null){var f=p.dehydrated;f!==null&&or(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(S(163))}he||t.flags&512&&hs(t)}catch(h){b(t,t.return,h)}}if(t===e){_=null;break}if(n=t.sibling,n!==null){n.return=t.return,_=n;break}_=t.return}}function Po(e){for(;_!==null;){var t=_;if(t===e){_=null;break}var n=t.sibling;if(n!==null){n.return=t.return,_=n;break}_=t.return}}function To(e){for(;_!==null;){var t=_;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ul(4,t)}catch(o){b(t,n,o)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(o){b(t,l,o)}}var i=t.return;try{hs(t)}catch(o){b(t,i,o)}break;case 5:var a=t.return;try{hs(t)}catch(o){b(t,a,o)}}}catch(o){b(t,t.return,o)}if(t===e){_=null;break}var u=t.sibling;if(u!==null){u.return=t.return,_=u;break}_=t.return}}var Wh=Math.ceil,Sl=ot.ReactCurrentDispatcher,oa=ot.ReactCurrentOwner,Ae=ot.ReactCurrentBatchConfig,A=0,ie=null,ee=null,ae=0,Te=0,hn=Rt(0),re=0,xr=null,Yt=0,Bl=0,ua=0,tr=null,ke=null,ca=0,Cn=1/0,Ze=null,Nl=!1,vs=null,Et=null,Vr=!1,yt=null,El=0,nr=0,gs=null,tl=-1,nl=0;function ve(){return A&6?G():tl!==-1?tl:tl=G()}function Ct(e){return e.mode&1?A&2&&ae!==0?ae&-ae:Nh.transition!==null?(nl===0&&(nl=Mu()),nl):(e=U,e!==0||(e=window.event,e=e===void 0?16:Bu(e.type)),e):1}function Ke(e,t,n,r){if(50<nr)throw nr=0,gs=null,Error(S(185));Sr(e,n,r),(!(A&2)||e!==ie)&&(e===ie&&(!(A&2)&&(Bl|=n),re===4&&vt(e,ae)),Ee(e,r),n===1&&A===0&&!(t.mode&1)&&(Cn=G()+500,Dl&&Mt()))}function Ee(e,t){var n=e.callbackNode;Nf(e,t);var r=ol(e,e===ie?ae:0);if(r===0)n!==null&&Da(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Da(n),t===1)e.tag===0?Sh(_o.bind(null,e)):ic(_o.bind(null,e)),xh(function(){!(A&6)&&Mt()}),n=null;else{switch(Ou(r)){case 1:n=Ds;break;case 4:n=zu;break;case 16:n=al;break;case 536870912:n=Ru;break;default:n=al}n=rd(n,bc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function bc(e,t){if(tl=-1,nl=0,A&6)throw Error(S(327));var n=e.callbackNode;if(xn()&&e.callbackNode!==n)return null;var r=ol(e,e===ie?ae:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Cl(e,r);else{t=r;var l=A;A|=2;var i=Jc();(ie!==e||ae!==t)&&(Ze=null,Cn=G()+500,$t(e,t));do try{Vh();break}catch(u){Gc(e,u)}while(!0);qs(),Sl.current=i,A=l,ee!==null?t=0:(ie=null,ae=0,t=re)}if(t!==0){if(t===2&&(l=Vi(e),l!==0&&(r=l,t=ys(e,l))),t===1)throw n=xr,$t(e,0),vt(e,r),Ee(e,G()),n;if(t===6)vt(e,r);else{if(l=e.current.alternate,!(r&30)&&!$h(l)&&(t=Cl(e,r),t===2&&(i=Vi(e),i!==0&&(r=i,t=ys(e,i))),t===1))throw n=xr,$t(e,0),vt(e,r),Ee(e,G()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(S(345));case 2:Ft(e,ke,Ze);break;case 3:if(vt(e,r),(r&130023424)===r&&(t=ca+500-G(),10<t)){if(ol(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ve(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Ji(Ft.bind(null,e,ke,Ze),t);break}Ft(e,ke,Ze);break;case 4:if(vt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var a=31-Ve(r);i=1<<a,a=t[a],a>l&&(l=a),r&=~i}if(r=l,r=G()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Wh(r/1960))-r,10<r){e.timeoutHandle=Ji(Ft.bind(null,e,ke,Ze),r);break}Ft(e,ke,Ze);break;case 5:Ft(e,ke,Ze);break;default:throw Error(S(329))}}}return Ee(e,G()),e.callbackNode===n?bc.bind(null,e):null}function ys(e,t){var n=tr;return e.current.memoizedState.isDehydrated&&($t(e,t).flags|=256),e=Cl(e,t),e!==2&&(t=ke,ke=n,t!==null&&xs(t)),e}function xs(e){ke===null?ke=e:ke.push.apply(ke,e)}function $h(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 l=n[r],i=l.getSnapshot;l=l.value;try{if(!Qe(i(),l))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 vt(e,t){for(t&=~ua,t&=~Bl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ve(t),r=1<<n;e[n]=-1,t&=~r}}function _o(e){if(A&6)throw Error(S(327));xn();var t=ol(e,0);if(!(t&1))return Ee(e,G()),null;var n=Cl(e,t);if(e.tag!==0&&n===2){var r=Vi(e);r!==0&&(t=r,n=ys(e,r))}if(n===1)throw n=xr,$t(e,0),vt(e,t),Ee(e,G()),n;if(n===6)throw Error(S(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ft(e,ke,Ze),Ee(e,G()),null}function da(e,t){var n=A;A|=1;try{return e(t)}finally{A=n,A===0&&(Cn=G()+500,Dl&&Mt())}}function Xt(e){yt!==null&&yt.tag===0&&!(A&6)&&xn();var t=A;A|=1;var n=Ae.transition,r=U;try{if(Ae.transition=null,U=1,e)return e()}finally{U=r,Ae.transition=n,A=t,!(A&6)&&Mt()}}function fa(){Te=hn.current,V(hn)}function $t(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,yh(n)),ee!==null)for(n=ee.return;n!==null;){var r=n;switch(Qs(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&hl();break;case 3:Nn(),V(Se),V(pe),ta();break;case 5:ea(r);break;case 4:Nn();break;case 13:V(Q);break;case 19:V(Q);break;case 10:bs(r.type._context);break;case 22:case 23:fa()}n=n.return}if(ie=e,ee=e=Pt(e.current,null),ae=Te=t,re=0,xr=null,ua=Bl=Yt=0,ke=tr=null,Bt!==null){for(t=0;t<Bt.length;t++)if(n=Bt[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=l,r.next=a}n.pending=r}Bt=null}return e}function Gc(e,t){do{var n=ee;try{if(qs(),Jr.current=wl,kl){for(var r=Y.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}kl=!1}if(Qt=0,le=ne=Y=null,Zn=!1,vr=0,oa.current=null,n===null||n.return===null){re=1,xr=t,ee=null;break}e:{var i=e,a=n.return,u=n,o=t;if(t=ae,u.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){var c=o,p=u,f=p.tag;if(!(p.mode&1)&&(f===0||f===11||f===15)){var h=p.alternate;h?(p.updateQueue=h.updateQueue,p.memoizedState=h.memoizedState,p.lanes=h.lanes):(p.updateQueue=null,p.memoizedState=null)}var j=vo(a);if(j!==null){j.flags&=-257,go(j,a,u,i,t),j.mode&1&&mo(i,c,t),t=j,o=c;var g=t.updateQueue;if(g===null){var k=new Set;k.add(o),t.updateQueue=k}else g.add(o);break e}else{if(!(t&1)){mo(i,c,t),ha();break e}o=Error(S(426))}}else if(K&&u.mode&1){var N=vo(a);if(N!==null){!(N.flags&65536)&&(N.flags|=256),go(N,a,u,i,t),Ys(En(o,u));break e}}i=o=En(o,u),re!==4&&(re=2),tr===null?tr=[i]:tr.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=Oc(i,o,t);oo(i,m);break e;case 1:u=o;var d=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof d.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Et===null||!Et.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t;var y=Ic(i,u,t);oo(i,y);break e}}i=i.return}while(i!==null)}ed(n)}catch(C){t=C,ee===n&&n!==null&&(ee=n=n.return);continue}break}while(!0)}function Jc(){var e=Sl.current;return Sl.current=wl,e===null?wl:e}function ha(){(re===0||re===3||re===2)&&(re=4),ie===null||!(Yt&268435455)&&!(Bl&268435455)||vt(ie,ae)}function Cl(e,t){var n=A;A|=2;var r=Jc();(ie!==e||ae!==t)&&(Ze=null,$t(e,t));do try{Hh();break}catch(l){Gc(e,l)}while(!0);if(qs(),A=n,Sl.current=r,ee!==null)throw Error(S(261));return ie=null,ae=0,re}function Hh(){for(;ee!==null;)Zc(ee)}function Vh(){for(;ee!==null&&!mf();)Zc(ee)}function Zc(e){var t=nd(e.alternate,e,Te);e.memoizedProps=e.pendingProps,t===null?ed(e):ee=t,oa.current=null}function ed(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Ah(n,t),n!==null){n.flags&=32767,ee=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{re=6,ee=null;return}}else if(n=Dh(n,t,Te),n!==null){ee=n;return}if(t=t.sibling,t!==null){ee=t;return}ee=t=e}while(t!==null);re===0&&(re=5)}function Ft(e,t,n){var r=U,l=Ae.transition;try{Ae.transition=null,U=1,Kh(e,t,n,r)}finally{Ae.transition=l,U=r}return null}function Kh(e,t,n,r){do xn();while(yt!==null);if(A&6)throw Error(S(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(S(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Ef(e,i),e===ie&&(ee=ie=null,ae=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Vr||(Vr=!0,rd(al,function(){return xn(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Ae.transition,Ae.transition=null;var a=U;U=1;var u=A;A|=4,oa.current=null,Uh(e,n),Xc(n,e),dh(bi),ul=!!qi,bi=qi=null,e.current=n,Bh(n),vf(),A=u,U=a,Ae.transition=i}else e.current=n;if(Vr&&(Vr=!1,yt=e,El=l),i=e.pendingLanes,i===0&&(Et=null),xf(n.stateNode),Ee(e,G()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(Nl)throw Nl=!1,e=vs,vs=null,e;return El&1&&e.tag!==0&&xn(),i=e.pendingLanes,i&1?e===gs?nr++:(nr=0,gs=e):nr=0,Mt(),null}function xn(){if(yt!==null){var e=Ou(El),t=Ae.transition,n=U;try{if(Ae.transition=null,U=16>e?16:e,yt===null)var r=!1;else{if(e=yt,yt=null,El=0,A&6)throw Error(S(331));var l=A;for(A|=4,_=e.current;_!==null;){var i=_,a=i.child;if(_.flags&16){var u=i.deletions;if(u!==null){for(var o=0;o<u.length;o++){var c=u[o];for(_=c;_!==null;){var p=_;switch(p.tag){case 0:case 11:case 15:er(8,p,i)}var f=p.child;if(f!==null)f.return=p,_=f;else for(;_!==null;){p=_;var h=p.sibling,j=p.return;if(Kc(p),p===c){_=null;break}if(h!==null){h.return=j,_=h;break}_=j}}}var g=i.alternate;if(g!==null){var k=g.child;if(k!==null){g.child=null;do{var N=k.sibling;k.sibling=null,k=N}while(k!==null)}}_=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,_=a;else e:for(;_!==null;){if(i=_,i.flags&2048)switch(i.tag){case 0:case 11:case 15:er(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,_=m;break e}_=i.return}}var d=e.current;for(_=d;_!==null;){a=_;var v=a.child;if(a.subtreeFlags&2064&&v!==null)v.return=a,_=v;else e:for(a=d;_!==null;){if(u=_,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:Ul(9,u)}}catch(C){b(u,u.return,C)}if(u===a){_=null;break e}var y=u.sibling;if(y!==null){y.return=u.return,_=y;break e}_=u.return}}if(A=l,Mt(),be&&typeof be.onPostCommitFiberRoot=="function")try{be.onPostCommitFiberRoot(zl,e)}catch{}r=!0}return r}finally{U=n,Ae.transition=t}}return!1}function Lo(e,t,n){t=En(n,t),t=Oc(e,t,1),e=Nt(e,t,1),t=ve(),e!==null&&(Sr(e,1,t),Ee(e,t))}function b(e,t,n){if(e.tag===3)Lo(e,e,n);else for(;t!==null;){if(t.tag===3){Lo(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Et===null||!Et.has(r))){e=En(n,e),e=Ic(t,e,1),t=Nt(t,e,1),e=ve(),t!==null&&(Sr(t,1,e),Ee(t,e));break}}t=t.return}}function Qh(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ve(),e.pingedLanes|=e.suspendedLanes&n,ie===e&&(ae&n)===n&&(re===4||re===3&&(ae&130023424)===ae&&500>G()-ca?$t(e,0):ua|=n),Ee(e,t)}function td(e,t){t===0&&(e.mode&1?(t=Or,Or<<=1,!(Or&130023424)&&(Or=4194304)):t=1);var n=ve();e=st(e,t),e!==null&&(Sr(e,t,n),Ee(e,n))}function Yh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),td(e,n)}function Xh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(S(314))}r!==null&&r.delete(t),td(e,n)}var nd;nd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Se.current)we=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return we=!1,Ih(e,t,n);we=!!(e.flags&131072)}else we=!1,K&&t.flags&1048576&&sc(t,vl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;el(e,t),e=t.pendingProps;var l=kn(t,pe.current);yn(t,n),l=ra(null,t,r,e,l,n);var i=la();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ne(r)?(i=!0,pl(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Js(t),l.updater=Fl,t.stateNode=l,l._reactInternals=t,is(t,r,e,n),t=os(null,t,r,!0,i,n)):(t.tag=0,K&&i&&Ks(t),me(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(el(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=bh(r),e=We(r,e),l){case 0:t=as(null,t,r,e,n);break e;case 1:t=jo(null,t,r,e,n);break e;case 11:t=yo(null,t,r,e,n);break e;case 14:t=xo(null,t,r,We(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:We(r,l),as(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:We(r,l),jo(e,t,r,l,n);case 3:e:{if(Uc(t),e===null)throw Error(S(387));r=t.pendingProps,i=t.memoizedState,l=i.element,fc(e,t),xl(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=En(Error(S(423)),t),t=ko(e,t,r,n,l);break e}else if(r!==l){l=En(Error(S(424)),t),t=ko(e,t,r,n,l);break e}else for(_e=St(t.stateNode.containerInfo.firstChild),Le=t,K=!0,He=null,n=cc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wn(),r===l){t=at(e,t,n);break e}me(e,t,r,n)}t=t.child}return t;case 5:return hc(t),e===null&&ns(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,a=l.children,Gi(r,l)?a=null:i!==null&&Gi(r,i)&&(t.flags|=32),Fc(e,t),me(e,t,a,n),t.child;case 6:return e===null&&ns(t),null;case 13:return Bc(e,t,n);case 4:return Zs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Sn(t,null,r,n):me(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:We(r,l),yo(e,t,r,l,n);case 7:return me(e,t,t.pendingProps,n),t.child;case 8:return me(e,t,t.pendingProps.children,n),t.child;case 12:return me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,a=l.value,$(gl,r._currentValue),r._currentValue=a,i!==null)if(Qe(i.value,a)){if(i.children===l.children&&!Se.current){t=at(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){a=i.child;for(var o=u.firstContext;o!==null;){if(o.context===r){if(i.tag===1){o=rt(-1,n&-n),o.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var p=c.pending;p===null?o.next=o:(o.next=p.next,p.next=o),c.pending=o}}i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),rs(i.return,n,t),u.lanes|=n;break}o=o.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(S(341));a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),rs(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}me(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,yn(t,n),l=Fe(l),r=r(l),t.flags|=1,me(e,t,r,n),t.child;case 14:return r=t.type,l=We(r,t.pendingProps),l=We(r.type,l),xo(e,t,r,l,n);case 15:return Dc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:We(r,l),el(e,t),t.tag=1,Ne(r)?(e=!0,pl(t)):e=!1,yn(t,n),Mc(t,r,l),is(t,r,l,n),os(null,t,r,!0,e,n);case 19:return Wc(e,t,n);case 22:return Ac(e,t,n)}throw Error(S(156,t.tag))};function rd(e,t){return Lu(e,t)}function qh(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 De(e,t,n,r){return new qh(e,t,n,r)}function pa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bh(e){if(typeof e=="function")return pa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ms)return 11;if(e===Os)return 14}return 2}function Pt(e,t){var n=e.alternate;return n===null?(n=De(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 rl(e,t,n,r,l,i){var a=2;if(r=e,typeof e=="function")pa(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case nn:return Ht(n.children,l,i,t);case Rs:a=8,l|=8;break;case _i:return e=De(12,n,t,l|2),e.elementType=_i,e.lanes=i,e;case Li:return e=De(13,n,t,l),e.elementType=Li,e.lanes=i,e;case zi:return e=De(19,n,t,l),e.elementType=zi,e.lanes=i,e;case hu:return Wl(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case du:a=10;break e;case fu:a=9;break e;case Ms:a=11;break e;case Os:a=14;break e;case ht:a=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=De(a,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Ht(e,t,n,r){return e=De(7,e,r,t),e.lanes=n,e}function Wl(e,t,n,r){return e=De(22,e,r,t),e.elementType=hu,e.lanes=n,e.stateNode={isHidden:!1},e}function wi(e,t,n){return e=De(6,e,null,t),e.lanes=n,e}function Si(e,t,n){return t=De(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gh(e,t,n,r,l){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=ri(0),this.expirationTimes=ri(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ri(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ma(e,t,n,r,l,i,a,u,o){return e=new Gh(e,t,n,u,o),t===1?(t=1,i===!0&&(t|=8)):t=0,i=De(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Js(i),e}function Jh(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:tn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ld(e){if(!e)return Lt;e=e._reactInternals;e:{if(bt(e)!==e||e.tag!==1)throw Error(S(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ne(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(S(171))}if(e.tag===1){var n=e.type;if(Ne(n))return lc(e,n,t)}return t}function id(e,t,n,r,l,i,a,u,o){return e=ma(n,r,!0,e,l,i,a,u,o),e.context=ld(null),n=e.current,r=ve(),l=Ct(n),i=rt(r,l),i.callback=t??null,Nt(n,i,l),e.current.lanes=l,Sr(e,l,r),Ee(e,r),e}function $l(e,t,n,r){var l=t.current,i=ve(),a=Ct(l);return n=ld(n),t.context===null?t.context=n:t.pendingContext=n,t=rt(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Nt(l,t,a),e!==null&&(Ke(e,l,a,i),Gr(e,l,a)),a}function Pl(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 zo(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function va(e,t){zo(e,t),(e=e.alternate)&&zo(e,t)}function Zh(){return null}var sd=typeof reportError=="function"?reportError:function(e){console.error(e)};function ga(e){this._internalRoot=e}Hl.prototype.render=ga.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(S(409));$l(e,t,null,null)};Hl.prototype.unmount=ga.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xt(function(){$l(null,e,null,null)}),t[it]=null}};function Hl(e){this._internalRoot=e}Hl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Au();e={blockedOn:null,target:e,priority:t};for(var n=0;n<mt.length&&t!==0&&t<mt[n].priority;n++);mt.splice(n,0,e),n===0&&Uu(e)}};function ya(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Vl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ro(){}function ep(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var c=Pl(a);i.call(c)}}var a=id(t,r,e,0,null,!1,!1,"",Ro);return e._reactRootContainer=a,e[it]=a.current,dr(e.nodeType===8?e.parentNode:e),Xt(),a}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var u=r;r=function(){var c=Pl(o);u.call(c)}}var o=ma(e,0,!1,null,null,!1,!1,"",Ro);return e._reactRootContainer=o,e[it]=o.current,dr(e.nodeType===8?e.parentNode:e),Xt(function(){$l(t,o,n,r)}),o}function Kl(e,t,n,r,l){var i=n._reactRootContainer;if(i){var a=i;if(typeof l=="function"){var u=l;l=function(){var o=Pl(a);u.call(o)}}$l(t,a,e,l)}else a=ep(n,t,e,l,r);return Pl(a)}Iu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Qn(t.pendingLanes);n!==0&&(As(t,n|1),Ee(t,G()),!(A&6)&&(Cn=G()+500,Mt()))}break;case 13:Xt(function(){var r=st(e,1);if(r!==null){var l=ve();Ke(r,e,1,l)}}),va(e,1)}};Fs=function(e){if(e.tag===13){var t=st(e,134217728);if(t!==null){var n=ve();Ke(t,e,134217728,n)}va(e,134217728)}};Du=function(e){if(e.tag===13){var t=Ct(e),n=st(e,t);if(n!==null){var r=ve();Ke(n,e,t,r)}va(e,t)}};Au=function(){return U};Fu=function(e,t){var n=U;try{return U=e,t()}finally{U=n}};Wi=function(e,t,n){switch(t){case"input":if(Oi(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 l=Il(r);if(!l)throw Error(S(90));mu(r),Oi(r,l)}}}break;case"textarea":gu(e,n);break;case"select":t=n.value,t!=null&&pn(e,!!n.multiple,t,!1)}};Nu=da;Eu=Xt;var tp={usingClientEntryPoint:!1,Events:[Er,an,Il,wu,Su,da]},$n={findFiberByHostInstance:Ut,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},np={bundleType:$n.bundleType,version:$n.version,rendererPackageName:$n.rendererPackageName,rendererConfig:$n.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ot.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Tu(e),e===null?null:e.stateNode},findFiberByHostInstance:$n.findFiberByHostInstance||Zh,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 Kr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kr.isDisabled&&Kr.supportsFiber)try{zl=Kr.inject(np),be=Kr}catch{}}Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tp;Re.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ya(t))throw Error(S(200));return Jh(e,t,null,n)};Re.createRoot=function(e,t){if(!ya(e))throw Error(S(299));var n=!1,r="",l=sd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=ma(e,1,!1,null,null,n,!1,r,l),e[it]=t.current,dr(e.nodeType===8?e.parentNode:e),new ga(t)};Re.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(S(188)):(e=Object.keys(e).join(","),Error(S(268,e)));return e=Tu(t),e=e===null?null:e.stateNode,e};Re.flushSync=function(e){return Xt(e)};Re.hydrate=function(e,t,n){if(!Vl(t))throw Error(S(200));return Kl(null,e,t,!0,n)};Re.hydrateRoot=function(e,t,n){if(!ya(e))throw Error(S(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",a=sd;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=id(t,null,e,1,n??null,l,!1,i,a),e[it]=t.current,dr(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Hl(t)};Re.render=function(e,t,n){if(!Vl(t))throw Error(S(200));return Kl(null,e,t,!1,n)};Re.unmountComponentAtNode=function(e){if(!Vl(e))throw Error(S(40));return e._reactRootContainer?(Xt(function(){Kl(null,null,e,!1,function(){e._reactRootContainer=null,e[it]=null})}),!0):!1};Re.unstable_batchedUpdates=da;Re.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Vl(n))throw Error(S(200));if(e==null||e._reactInternals===void 0)throw Error(S(38));return Kl(e,t,n,!1,r)};Re.version="18.3.1-next-f1338f8080-20240426";function ad(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ad)}catch(e){console.error(e)}}ad(),au.exports=Re;var rp=au.exports,Mo=rp;Pi.createRoot=Mo.createRoot,Pi.hydrateRoot=Mo.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 jr(){return jr=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},jr.apply(null,arguments)}var xt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(xt||(xt={}));const Oo="popstate";function lp(e){e===void 0&&(e={});function t(r,l){let{pathname:i,search:a,hash:u}=r.location;return js("",{pathname:i,search:a,hash:u},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function n(r,l){return typeof l=="string"?l:Tl(l)}return sp(t,n,null,e)}function X(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function xa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ip(){return Math.random().toString(36).substr(2,8)}function Io(e,t){return{usr:e.state,key:e.key,idx:t}}function js(e,t,n,r){return n===void 0&&(n=null),jr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?zn(t):t,{state:n,key:t&&t.key||r||ip()})}function Tl(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 zn(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 sp(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,a=l.history,u=xt.Pop,o=null,c=p();c==null&&(c=0,a.replaceState(jr({},a.state,{idx:c}),""));function p(){return(a.state||{idx:null}).idx}function f(){u=xt.Pop;let N=p(),m=N==null?null:N-c;c=N,o&&o({action:u,location:k.location,delta:m})}function h(N,m){u=xt.Push;let d=js(k.location,N,m);c=p()+1;let v=Io(d,c),y=k.createHref(d);try{a.pushState(v,"",y)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;l.location.assign(y)}i&&o&&o({action:u,location:k.location,delta:1})}function j(N,m){u=xt.Replace;let d=js(k.location,N,m);c=p();let v=Io(d,c),y=k.createHref(d);a.replaceState(v,"",y),i&&o&&o({action:u,location:k.location,delta:0})}function g(N){let m=l.location.origin!=="null"?l.location.origin:l.location.href,d=typeof N=="string"?N:Tl(N);return d=d.replace(/ $/,"%20"),X(m,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,m)}let k={get action(){return u},get location(){return e(l,a)},listen(N){if(o)throw new Error("A history only accepts one active listener");return l.addEventListener(Oo,f),o=N,()=>{l.removeEventListener(Oo,f),o=null}},createHref(N){return t(l,N)},createURL:g,encodeLocation(N){let m=g(N);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:j,go(N){return a.go(N)}};return k}var Do;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Do||(Do={}));function ap(e,t,n){return n===void 0&&(n="/"),op(e,t,n)}function op(e,t,n,r){let l=typeof t=="string"?zn(t):t,i=Pn(l.pathname||"/",n);if(i==null)return null;let a=od(e);up(a);let u=null,o=jp(i);for(let c=0;u==null&&c<a.length;++c)u=yp(a[c],o);return u}function od(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let l=(i,a,u)=>{let o={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};o.relativePath.startsWith("/")&&(X(o.relativePath.startsWith(r),'Absolute route path "'+o.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),o.relativePath=o.relativePath.slice(r.length));let c=Tt([r,o.relativePath]),p=n.concat(o);i.children&&i.children.length>0&&(X(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),od(i.children,t,p,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:vp(c,i.index),routesMeta:p})};return e.forEach((i,a)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))l(i,a);else for(let o of ud(i.path))l(i,a,o)}),t}function ud(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return l?[i,""]:[i];let a=ud(r.join("/")),u=[];return u.push(...a.map(o=>o===""?i:[i,o].join("/"))),l&&u.push(...a),u.map(o=>e.startsWith("/")&&o===""?"/":o)}function up(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:gp(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const cp=/^:[\w-]+$/,dp=3,fp=2,hp=1,pp=10,mp=-2,Ao=e=>e==="*";function vp(e,t){let n=e.split("/"),r=n.length;return n.some(Ao)&&(r+=mp),t&&(r+=fp),n.filter(l=>!Ao(l)).reduce((l,i)=>l+(cp.test(i)?dp:i===""?hp:pp),r)}function gp(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function yp(e,t,n){let{routesMeta:r}=e,l={},i="/",a=[];for(let u=0;u<r.length;++u){let o=r[u],c=u===r.length-1,p=i==="/"?t:t.slice(i.length)||"/",f=ks({path:o.relativePath,caseSensitive:o.caseSensitive,end:c},p),h=o.route;if(!f)return null;Object.assign(l,f.params),a.push({params:l,pathname:Tt([i,f.pathname]),pathnameBase:Ep(Tt([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=Tt([i,f.pathnameBase]))}return a}function ks(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=xp(e.path,e.caseSensitive,e.end),l=t.match(n);if(!l)return null;let i=l[0],a=i.replace(/(.)\/+$/,"$1"),u=l.slice(1);return{params:r.reduce((c,p,f)=>{let{paramName:h,isOptional:j}=p;if(h==="*"){let k=u[f]||"";a=i.slice(0,i.length-k.length).replace(/(.)\/+$/,"$1")}const g=u[f];return j&&!g?c[h]=void 0:c[h]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function xp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),xa(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=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,u,o)=>(r.push({paramName:u,isOptional:o!=null}),o?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function jp(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return xa(!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 Pn(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 kp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wp=e=>kp.test(e);function Sp(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?zn(e):e,i;if(n)if(wp(n))i=n;else{if(n.includes("//")){let a=n;n=cd(n),xa(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?i=Fo(n.substring(1),"/"):i=Fo(n,t)}else i=t;return{pathname:i,search:Cp(r),hash:Pp(l)}}function Fo(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function Ni(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 Np(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ja(e,t){let n=Np(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ka(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=zn(e):(l=jr({},e),X(!l.pathname||!l.pathname.includes("?"),Ni("?","pathname","search",l)),X(!l.pathname||!l.pathname.includes("#"),Ni("#","pathname","hash",l)),X(!l.search||!l.search.includes("#"),Ni("#","search","hash",l)));let i=e===""||l.pathname==="",a=i?"/":l.pathname,u;if(a==null)u=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),f-=1;l.pathname=h.join("/")}u=f>=0?t[f]:"/"}let o=Sp(l,u),c=a&&a!=="/"&&a.endsWith("/"),p=(i||a===".")&&n.endsWith("/");return!o.pathname.endsWith("/")&&(c||p)&&(o.pathname+="/"),o}const cd=e=>e.replace(/\/\/+/g,"/"),Tt=e=>cd(e.join("/")),Ep=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Cp=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Pp=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Tp(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const dd=["post","put","patch","delete"];new Set(dd);const _p=["get",...dd];new Set(_p);/**
 * 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 kr(){return kr=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},kr.apply(null,arguments)}const Ql=x.createContext(null),fd=x.createContext(null),ut=x.createContext(null),Yl=x.createContext(null),Je=x.createContext({outlet:null,matches:[],isDataRoute:!1}),hd=x.createContext(null);function Lp(e,t){let{relative:n}=t===void 0?{}:t;Rn()||X(!1);let{basename:r,navigator:l}=x.useContext(ut),{hash:i,pathname:a,search:u}=Xl(e,{relative:n}),o=a;return r!=="/"&&(o=a==="/"?r:Tt([r,a])),l.createHref({pathname:o,search:u,hash:i})}function Rn(){return x.useContext(Yl)!=null}function Ot(){return Rn()||X(!1),x.useContext(Yl).location}function pd(e){x.useContext(ut).static||x.useLayoutEffect(e)}function Mn(){let{isDataRoute:e}=x.useContext(Je);return e?Kp():zp()}function zp(){Rn()||X(!1);let e=x.useContext(Ql),{basename:t,future:n,navigator:r}=x.useContext(ut),{matches:l}=x.useContext(Je),{pathname:i}=Ot(),a=JSON.stringify(ja(l,n.v7_relativeSplatPath)),u=x.useRef(!1);return pd(()=>{u.current=!0}),x.useCallback(function(c,p){if(p===void 0&&(p={}),!u.current)return;if(typeof c=="number"){r.go(c);return}let f=ka(c,JSON.parse(a),i,p.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Tt([t,f.pathname])),(p.replace?r.replace:r.push)(f,p.state,p)},[t,r,a,i,e])}const Rp=x.createContext(null);function Mp(e){let t=x.useContext(Je).outlet;return t&&x.createElement(Rp.Provider,{value:e},t)}function md(){let{matches:e}=x.useContext(Je),t=e[e.length-1];return t?t.params:{}}function Xl(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=x.useContext(ut),{matches:l}=x.useContext(Je),{pathname:i}=Ot(),a=JSON.stringify(ja(l,r.v7_relativeSplatPath));return x.useMemo(()=>ka(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function Op(e,t){return Ip(e,t)}function Ip(e,t,n,r){Rn()||X(!1);let{navigator:l}=x.useContext(ut),{matches:i}=x.useContext(Je),a=i[i.length-1],u=a?a.params:{};a&&a.pathname;let o=a?a.pathnameBase:"/";a&&a.route;let c=Ot(),p;if(t){var f;let N=typeof t=="string"?zn(t):t;o==="/"||(f=N.pathname)!=null&&f.startsWith(o)||X(!1),p=N}else p=c;let h=p.pathname||"/",j=h;if(o!=="/"){let N=o.replace(/^\//,"").split("/");j="/"+h.replace(/^\//,"").split("/").slice(N.length).join("/")}let g=ap(e,{pathname:j}),k=Bp(g&&g.map(N=>Object.assign({},N,{params:Object.assign({},u,N.params),pathname:Tt([o,l.encodeLocation?l.encodeLocation(N.pathname).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?o:Tt([o,l.encodeLocation?l.encodeLocation(N.pathnameBase).pathname:N.pathnameBase])})),i,n,r);return t&&k?x.createElement(Yl.Provider,{value:{location:kr({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:xt.Pop}},k):k}function Dp(){let e=Vp(),t=Tp(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={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:l},n):null,null)}const Ap=x.createElement(Dp,null);class Fp 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(Je.Provider,{value:this.props.routeContext},x.createElement(hd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Up(e){let{routeContext:t,match:n,children:r}=e,l=x.useContext(Ql);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(Je.Provider,{value:t},r)}function Bp(e,t,n,r){var l;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 a=e,u=(l=n)==null?void 0:l.errors;if(u!=null){let p=a.findIndex(f=>f.route.id&&(u==null?void 0:u[f.route.id])!==void 0);p>=0||X(!1),a=a.slice(0,Math.min(a.length,p+1))}let o=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p<a.length;p++){let f=a[p];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=p),f.route.id){let{loaderData:h,errors:j}=n,g=f.route.loader&&h[f.route.id]===void 0&&(!j||j[f.route.id]===void 0);if(f.route.lazy||g){o=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((p,f,h)=>{let j,g=!1,k=null,N=null;n&&(j=u&&f.route.id?u[f.route.id]:void 0,k=f.route.errorElement||Ap,o&&(c<0&&h===0?(Qp("route-fallback"),g=!0,N=null):c===h&&(g=!0,N=f.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,h+1)),d=()=>{let v;return j?v=k:g?v=N:f.route.Component?v=x.createElement(f.route.Component,null):f.route.element?v=f.route.element:v=p,x.createElement(Up,{match:f,routeContext:{outlet:p,matches:m,isDataRoute:n!=null},children:v})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?x.createElement(Fp,{location:n.location,revalidation:n.revalidation,component:k,error:j,children:d(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):d()},null)}var vd=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(vd||{}),gd=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}(gd||{});function Wp(e){let t=x.useContext(Ql);return t||X(!1),t}function $p(e){let t=x.useContext(fd);return t||X(!1),t}function Hp(e){let t=x.useContext(Je);return t||X(!1),t}function yd(e){let t=Hp(),n=t.matches[t.matches.length-1];return n.route.id||X(!1),n.route.id}function Vp(){var e;let t=x.useContext(hd),n=$p(),r=yd();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Kp(){let{router:e}=Wp(vd.UseNavigateStable),t=yd(gd.UseNavigateStable),n=x.useRef(!1);return pd(()=>{n.current=!0}),x.useCallback(function(l,i){i===void 0&&(i={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,kr({fromRouteId:t},i)))},[e,t])}const Uo={};function Qp(e,t,n){Uo[e]||(Uo[e]=!0)}function Yp(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Xp(e){let{to:t,replace:n,state:r,relative:l}=e;Rn()||X(!1);let{future:i,static:a}=x.useContext(ut),{matches:u}=x.useContext(Je),{pathname:o}=Ot(),c=Mn(),p=ka(t,ja(u,i.v7_relativeSplatPath),o,l==="path"),f=JSON.stringify(p);return x.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:l}),[c,f,l,n,r]),null}function qp(e){return Mp(e.context)}function fe(e){X(!1)}function bp(e){let{basename:t="/",children:n=null,location:r,navigationType:l=xt.Pop,navigator:i,static:a=!1,future:u}=e;Rn()&&X(!1);let o=t.replace(/^\/*/,"/"),c=x.useMemo(()=>({basename:o,navigator:i,static:a,future:kr({v7_relativeSplatPath:!1},u)}),[o,u,i,a]);typeof r=="string"&&(r=zn(r));let{pathname:p="/",search:f="",hash:h="",state:j=null,key:g="default"}=r,k=x.useMemo(()=>{let N=Pn(p,o);return N==null?null:{location:{pathname:N,search:f,hash:h,state:j,key:g},navigationType:l}},[o,p,f,h,j,g,l]);return k==null?null:x.createElement(ut.Provider,{value:c},x.createElement(Yl.Provider,{children:n,value:k}))}function Gp(e){let{children:t,location:n}=e;return Op(ws(t),n)}new Promise(()=>{});function ws(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,l)=>{if(!x.isValidElement(r))return;let i=[...t,l];if(r.type===x.Fragment){n.push.apply(n,ws(r.props.children,i));return}r.type!==fe&&X(!1),!r.props.index||!r.props.children||X(!1);let a={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&&(a.children=ws(r.props.children,i)),n.push(a)}),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 _l(){return _l=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},_l.apply(null,arguments)}function xd(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 Jp(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Zp(e,t){return e.button===0&&(!t||t==="_self")&&!Jp(e)}const em=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],tm=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],nm="6";try{window.__reactRouterVersion=nm}catch{}const rm=x.createContext({isTransitioning:!1}),lm="startTransition",Bo=Kd[lm];function im(e){let{basename:t,children:n,future:r,window:l}=e,i=x.useRef();i.current==null&&(i.current=lp({window:l,v5Compat:!0}));let a=i.current,[u,o]=x.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},p=x.useCallback(f=>{c&&Bo?Bo(()=>o(f)):o(f)},[o,c]);return x.useLayoutEffect(()=>a.listen(p),[a,p]),x.useEffect(()=>Yp(r),[r]),x.createElement(bp,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:a,future:r})}const sm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",am=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Z=x.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:i,replace:a,state:u,target:o,to:c,preventScrollReset:p,viewTransition:f}=t,h=xd(t,em),{basename:j}=x.useContext(ut),g,k=!1;if(typeof c=="string"&&am.test(c)&&(g=c,sm))try{let v=new URL(window.location.href),y=c.startsWith("//")?new URL(v.protocol+c):new URL(c),C=Pn(y.pathname,j);y.origin===v.origin&&C!=null?c=C+y.search+y.hash:k=!0}catch{}let N=Lp(c,{relative:l}),m=um(c,{replace:a,state:u,target:o,preventScrollReset:p,relative:l,viewTransition:f});function d(v){r&&r(v),v.defaultPrevented||m(v)}return x.createElement("a",_l({},h,{href:g||N,onClick:k||i?r:d,ref:n,target:o}))}),en=x.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:l=!1,className:i="",end:a=!1,style:u,to:o,viewTransition:c,children:p}=t,f=xd(t,tm),h=Xl(o,{relative:f.relative}),j=Ot(),g=x.useContext(fd),{navigator:k,basename:N}=x.useContext(ut),m=g!=null&&cm(h)&&c===!0,d=k.encodeLocation?k.encodeLocation(h).pathname:h.pathname,v=j.pathname,y=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;l||(v=v.toLowerCase(),y=y?y.toLowerCase():null,d=d.toLowerCase()),y&&N&&(y=Pn(y,N)||y);const C=d!=="/"&&d.endsWith("/")?d.length-1:d.length;let T=v===d||!a&&v.startsWith(d)&&v.charAt(C)==="/",L=y!=null&&(y===d||!a&&y.startsWith(d)&&y.charAt(d.length)==="/"),z={isActive:T,isPending:L,isTransitioning:m},W=T?r:void 0,O;typeof i=="function"?O=i(z):O=[i,T?"active":null,L?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let xe=typeof u=="function"?u(z):u;return x.createElement(Z,_l({},f,{"aria-current":W,className:O,ref:n,style:xe,to:o,viewTransition:c}),typeof p=="function"?p(z):p)});var Ss;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ss||(Ss={}));var Wo;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Wo||(Wo={}));function om(e){let t=x.useContext(Ql);return t||X(!1),t}function um(e,t){let{target:n,replace:r,state:l,preventScrollReset:i,relative:a,viewTransition:u}=t===void 0?{}:t,o=Mn(),c=Ot(),p=Xl(e,{relative:a});return x.useCallback(f=>{if(Zp(f,n)){f.preventDefault();let h=r!==void 0?r:Tl(c)===Tl(p);o(e,{replace:h,state:l,preventScrollReset:i,relative:a,viewTransition:u})}},[c,o,p,r,l,n,e,i,a,u])}function cm(e,t){t===void 0&&(t={});let n=x.useContext(rm);n==null&&X(!1);let{basename:r}=om(Ss.useViewTransitionState),l=Xl(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Pn(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Pn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ks(l.pathname,a)!=null||ks(l.pathname,i)!=null}var $o="1.3.23";function jd(e,t,n){return Math.max(e,Math.min(t,n))}function dm(e,t,n){return(1-n)*e+n*t}function fm(e,t,n,r){return dm(e,t,1-Math.exp(-n*r))}function hm(e,t){return(e%t+t)%t}var pm=class{constructor(){R(this,"isRunning",!1);R(this,"value",0);R(this,"from",0);R(this,"to",0);R(this,"currentTime",0);R(this,"lerp");R(this,"duration");R(this,"easing");R(this,"onUpdate")}advance(e){var n;if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=e;const r=jd(0,this.currentTime/this.duration,1);t=r>=1;const l=t?1:this.easing(r);this.value=this.from+(this.to-this.from)*l}else this.lerp?(this.value=fm(this.value,this.to,this.lerp*60,e),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),(n=this.onUpdate)==null||n.call(this,this.value,t)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:n,duration:r,easing:l,onStart:i,onUpdate:a}){this.from=this.value=e,this.to=t,this.lerp=n,this.duration=r,this.easing=l,this.currentTime=0,this.isRunning=!0,i==null||i(),this.onUpdate=a}};function mm(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>{n=void 0,e.apply(this,r)},t)}}var vm=class{constructor(e,t,{autoResize:n=!0,debounce:r=250}={}){R(this,"width",0);R(this,"height",0);R(this,"scrollHeight",0);R(this,"scrollWidth",0);R(this,"debouncedResize");R(this,"wrapperResizeObserver");R(this,"contentResizeObserver");R(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()});R(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)});R(this,"onContentResize",()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)});this.wrapper=e,this.content=t,n&&(this.debouncedResize=mm(this.resize,r),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var e,t;(e=this.wrapperResizeObserver)==null||e.disconnect(),(t=this.contentResizeObserver)==null||t.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},kd=class{constructor(){R(this,"events",{})}emit(e,...t){var r;const n=this.events[e]||[];for(let l=0,i=n.length;l<i;l++)(r=n[l])==null||r.call(n,...t)}on(e,t){return this.events[e]?this.events[e].push(t):this.events[e]=[t],()=>{var n;this.events[e]=(n=this.events[e])==null?void 0:n.filter(r=>t!==r)}}off(e,t){var n;this.events[e]=(n=this.events[e])==null?void 0:n.filter(r=>t!==r)}destroy(){this.events={}}};const gm=100/6,dt={passive:!1};function Ho(e,t){return e===1?gm:e===2?t:1}var ym=class{constructor(e,t={wheelMultiplier:1,touchMultiplier:1}){R(this,"touchStart",{x:0,y:0});R(this,"lastDelta",{x:0,y:0});R(this,"window",{width:0,height:0});R(this,"emitter",new kd);R(this,"onTouchStart",e=>{const{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:e})});R(this,"onTouchMove",e=>{const{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e,r=-(t-this.touchStart.x)*this.options.touchMultiplier,l=-(n-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:r,y:l},this.emitter.emit("scroll",{deltaX:r,deltaY:l,event:e})});R(this,"onTouchEnd",e=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})});R(this,"onWheel",e=>{let{deltaX:t,deltaY:n,deltaMode:r}=e;const l=Ho(r,this.window.width),i=Ho(r,this.window.height);t*=l,n*=i,t*=this.options.wheelMultiplier,n*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:t,deltaY:n,event:e})});R(this,"onWindowResize",()=>{this.window={width:window.innerWidth,height:window.innerHeight}});this.element=e,this.options=t,window.addEventListener("resize",this.onWindowResize),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,dt),this.element.addEventListener("touchstart",this.onTouchStart,dt),this.element.addEventListener("touchmove",this.onTouchMove,dt),this.element.addEventListener("touchend",this.onTouchEnd,dt)}on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize),this.element.removeEventListener("wheel",this.onWheel,dt),this.element.removeEventListener("touchstart",this.onTouchStart,dt),this.element.removeEventListener("touchmove",this.onTouchMove,dt),this.element.removeEventListener("touchend",this.onTouchEnd,dt)}};const Vo=e=>Math.min(1,1.001-2**(-10*e));var xm=class{constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:n=e,smoothWheel:r=!0,syncTouch:l=!1,syncTouchLerp:i=.075,touchInertiaExponent:a=1.7,duration:u,easing:o,lerp:c=.1,infinite:p=!1,orientation:f="vertical",gestureOrientation:h=f==="horizontal"?"both":"vertical",touchMultiplier:j=1,wheelMultiplier:g=1,autoResize:k=!0,prevent:N,virtualScroll:m,overscroll:d=!0,autoRaf:v=!1,anchors:y=!1,autoToggle:C=!1,allowNestedScroll:T=!1,__experimental__naiveDimensions:L=!1,naiveDimensions:z=L,stopInertiaOnNavigate:W=!1}={}){R(this,"_isScrolling",!1);R(this,"_isStopped",!1);R(this,"_isLocked",!1);R(this,"_preventNextNativeScrollEvent",!1);R(this,"_resetVelocityTimeout",null);R(this,"_rafId",null);R(this,"isTouching");R(this,"time",0);R(this,"userData",{});R(this,"lastVelocity",0);R(this,"velocity",0);R(this,"direction",0);R(this,"options");R(this,"targetScroll");R(this,"animatedScroll");R(this,"animate",new pm);R(this,"emitter",new kd);R(this,"dimensions");R(this,"virtualScroll");R(this,"onScrollEnd",e=>{e instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&e.stopPropagation()});R(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))});R(this,"onTransitionEnd",e=>{var t;(t=e.propertyName)!=null&&t.includes("overflow")&&e.target===this.rootElement&&this.checkOverflow()});R(this,"onClick",e=>{const t=e.composedPath().filter(r=>r instanceof HTMLAnchorElement&&r.href).map(r=>new URL(r.href)),n=new URL(window.location.href);if(this.options.anchors){const r=t.find(l=>n.host===l.host&&n.pathname===l.pathname&&l.hash);if(r){const l=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,i=`#${r.hash.split("#")[1]}`;this.scrollTo(i,l);return}}if(this.options.stopInertiaOnNavigate&&t.some(r=>n.host===r.host&&n.pathname!==r.pathname)){this.reset();return}});R(this,"onPointerDown",e=>{e.button===1&&this.reset()});R(this,"onVirtualScroll",e=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(e)===!1)return;const{deltaX:t,deltaY:n,event:r}=e;if(this.emitter.emit("virtual-scroll",{deltaX:t,deltaY:n,event:r}),r.ctrlKey||r.lenisStopPropagation)return;const l=r.type.includes("touch"),i=r.type.includes("wheel");this.isTouching=r.type==="touchstart"||r.type==="touchmove";const a=t===0&&n===0;if(this.options.syncTouch&&l&&r.type==="touchstart"&&a&&!this.isStopped&&!this.isLocked){this.reset();return}const u=this.options.gestureOrientation==="vertical"&&n===0||this.options.gestureOrientation==="horizontal"&&t===0;if(a||u)return;let o=r.composedPath();o=o.slice(0,o.indexOf(this.rootElement));const c=this.options.prevent,p=Math.abs(t)>=Math.abs(n)?"horizontal":"vertical";if(o.find(g=>{var k,N,m,d,v;return g instanceof HTMLElement&&(typeof c=="function"&&(c==null?void 0:c(g))||((k=g.hasAttribute)==null?void 0:k.call(g,"data-lenis-prevent"))||p==="vertical"&&((N=g.hasAttribute)==null?void 0:N.call(g,"data-lenis-prevent-vertical"))||p==="horizontal"&&((m=g.hasAttribute)==null?void 0:m.call(g,"data-lenis-prevent-horizontal"))||l&&((d=g.hasAttribute)==null?void 0:d.call(g,"data-lenis-prevent-touch"))||i&&((v=g.hasAttribute)==null?void 0:v.call(g,"data-lenis-prevent-wheel"))||this.options.allowNestedScroll&&this.hasNestedScroll(g,{deltaX:t,deltaY:n}))}))return;if(this.isStopped||this.isLocked){r.cancelable&&r.preventDefault();return}if(!(this.options.syncTouch&&l||this.options.smoothWheel&&i)){this.isScrolling="native",this.animate.stop(),r.lenisStopPropagation=!0;return}let f=n;this.options.gestureOrientation==="both"?f=Math.abs(n)>Math.abs(t)?n:t:this.options.gestureOrientation==="horizontal"&&(f=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&n>0||this.animatedScroll===this.limit&&n<0))&&(r.lenisStopPropagation=!0),r.cancelable&&r.preventDefault();const h=l&&this.options.syncTouch,j=l&&r.type==="touchend";j&&(f=Math.sign(f)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+f,{programmatic:!1,...h?{lerp:j?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})});R(this,"onNativeScroll",()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){const e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}});R(this,"raf",e=>{const t=e-(this.time||e);this.time=e,this.animate.advance(t*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))});window.lenisVersion=$o,window.lenis||(window.lenis={}),window.lenis.version=$o,f==="horizontal"&&(window.lenis.horizontal=!0),l===!0&&(window.lenis.touch=!0),(!e||e===document.documentElement)&&(e=window),typeof u=="number"&&typeof o!="function"?o=Vo:typeof o=="function"&&typeof u!="number"&&(u=1),this.options={wrapper:e,content:t,eventsTarget:n,smoothWheel:r,syncTouch:l,syncTouchLerp:i,touchInertiaExponent:a,duration:u,easing:o,lerp:c,infinite:p,gestureOrientation:h,orientation:f,touchMultiplier:j,wheelMultiplier:g,autoResize:k,prevent:N,virtualScroll:m,overscroll:d,autoRaf:v,anchors:y,autoToggle:C,allowNestedScroll:T,naiveDimensions:z,stopInertiaOnNavigate:W},this.dimensions=new vm(e,t,{autoResize:k}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown),this.virtualScroll=new ym(n,{touchMultiplier:j,wheelMultiplier:g}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}get overflow(){const e=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[e]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:"instant"}):this.options.wrapper.scrollTo({top:e,behavior:"instant"})}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}scrollTo(e,{offset:t=0,immediate:n=!1,lock:r=!1,programmatic:l=!0,lerp:i=l?this.options.lerp:void 0,duration:a=l?this.options.duration:void 0,easing:u=l?this.options.easing:void 0,onStart:o,onComplete:c,force:p=!1,userData:f}={}){if((this.isStopped||this.isLocked)&&!p)return;let h=e,j=t;if(typeof h=="string"&&["top","left","start","#"].includes(h))h=0;else if(typeof h=="string"&&["bottom","right","end"].includes(h))h=this.limit;else{let g=null;if(typeof h=="string"?(g=document.querySelector(h),g||(h==="#top"?h=0:console.warn("Lenis: Target not found",h))):h instanceof HTMLElement&&(h!=null&&h.nodeType)&&(g=h),g){if(this.options.wrapper!==window){const y=this.rootElement.getBoundingClientRect();j-=this.isHorizontal?y.left:y.top}const k=g.getBoundingClientRect(),N=getComputedStyle(g),m=this.isHorizontal?Number.parseFloat(N.scrollMarginLeft):Number.parseFloat(N.scrollMarginTop),d=getComputedStyle(this.rootElement),v=this.isHorizontal?Number.parseFloat(d.scrollPaddingLeft):Number.parseFloat(d.scrollPaddingTop);h=(this.isHorizontal?k.left:k.top)+this.animatedScroll-(Number.isNaN(m)?0:m)-(Number.isNaN(v)?0:v)}}if(typeof h=="number"){if(h+=j,this.options.infinite){if(l){this.targetScroll=this.animatedScroll=this.scroll;const g=h-this.animatedScroll;g>this.limit/2?h-=this.limit:g<-this.limit/2&&(h+=this.limit)}}else h=jd(0,h,this.limit);if(h===this.targetScroll){o==null||o(this),c==null||c(this);return}if(this.userData=f??{},n){this.animatedScroll=this.targetScroll=h,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),c==null||c(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}l||(this.targetScroll=h),typeof a=="number"&&typeof u!="function"?u=Vo:typeof u=="function"&&typeof a!="number"&&(a=1),this.animate.fromTo(this.animatedScroll,h,{duration:a,easing:u,lerp:i,onStart:()=>{r&&(this.isLocked=!0),this.isScrolling="smooth",o==null||o(this)},onUpdate:(g,k)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=g-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=g,this.setScroll(this.scroll),l&&(this.targetScroll=g),k||this.emit(),k&&(this.reset(),this.emit(),c==null||c(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(e,{deltaX:t,deltaY:n}){const r=Date.now();e._lenis||(e._lenis={});const l=e._lenis;let i,a,u,o,c,p,f,h,j,g;if(r-(l.time??0)>2e3){l.time=Date.now();const T=window.getComputedStyle(e);if(l.computedStyle=T,i=["auto","overlay","scroll"].includes(T.overflowX),a=["auto","overlay","scroll"].includes(T.overflowY),c=["auto"].includes(T.overscrollBehaviorX),p=["auto"].includes(T.overscrollBehaviorY),l.hasOverflowX=i,l.hasOverflowY=a,!(i||a))return!1;f=e.scrollWidth,h=e.scrollHeight,j=e.clientWidth,g=e.clientHeight,u=f>j,o=h>g,l.isScrollableX=u,l.isScrollableY=o,l.scrollWidth=f,l.scrollHeight=h,l.clientWidth=j,l.clientHeight=g,l.hasOverscrollBehaviorX=c,l.hasOverscrollBehaviorY=p}else u=l.isScrollableX,o=l.isScrollableY,i=l.hasOverflowX,a=l.hasOverflowY,f=l.scrollWidth,h=l.scrollHeight,j=l.clientWidth,g=l.clientHeight,c=l.hasOverscrollBehaviorX,p=l.hasOverscrollBehaviorY;if(!(i&&u||a&&o))return!1;const k=Math.abs(t)>=Math.abs(n)?"horizontal":"vertical";let N,m,d,v,y,C;if(k==="horizontal")N=Math.round(e.scrollLeft),m=f-j,d=t,v=i,y=u,C=c;else if(k==="vertical")N=Math.round(e.scrollTop),m=h-g,d=n,v=a,y=o,C=p;else return!1;return!C&&(N>=m||N<=0)?!0:(d>0?N<m:N>0)&&v&&y}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){const e=this.options.wrapper;return this.isHorizontal?e.scrollX??e.scrollLeft:e.scrollY??e.scrollTop}get scroll(){return this.options.infinite?hm(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let e="lenis";return this.options.autoToggle&&(e+=" lenis-autoToggle"),this.isStopped&&(e+=" lenis-stopped"),this.isLocked&&(e+=" lenis-locked"),this.isScrolling&&(e+=" lenis-scrolling"),this.isScrolling==="smooth"&&(e+=" lenis-smooth"),e}updateClassName(){this.cleanUpClassName(),this.className.split(" ").forEach(e=>{this.rootElement.classList.add(e)})}cleanUpClassName(){for(const e of Array.from(this.rootElement.classList))(e==="lenis"||e.startsWith("lenis-"))&&this.rootElement.classList.remove(e)}};const F=(e,t=1200)=>`https://images.unsplash.com/${e}?auto=format&fit=crop&w=${t}&q=80`,jm=[{id:"p1",name:"Bench Segment Modular",category:"Seating",price:45e5,stock:24,image:F("photo-1567538096630-e0c55bd6374c"),description:"Bangku modular segmen dengan rangka baja berlapis powder coating dan dudukan kayu solid. Dapat dikonfigurasi sesuai kebutuhan ruang tunggu, lobi, maupun area publik. Finishing halus tahan gores dengan garansi struktur 5 tahun."},{id:"p2",name:"Lemari Gantung / Kaca",category:"Storage",price:275e4,stock:38,image:F("photo-1556228453-efd6c1ff04f6"),description:"Lemari gantung dengan pintu kaca tempered 5mm dan rangka particle board kualitas ekspor. Ideal untuk arsip kantor maupun display. Engsel soft-closing dan kunci sentral untuk keamanan dokumen."},{id:"p3",name:"Locker 12 Pintu",category:"Storage",price:62e5,stock:15,image:F("photo-1600585154340-be6161a56a0c"),description:"Locker 12 pintu berbahan plat baja tebal dengan sistem kunci individual. Ventilasi udara pada setiap pintu, label holder, dan finishing cat oven anti karat. Cocok untuk pabrik, sekolah, dan fasilitas olahraga."},{id:"p4",name:"Meja Komputer",category:"Meja",price:185e4,stock:52,image:F("photo-1518455027359-f3f8164ba6bd"),description:"Meja komputer ergonomis dengan rak keyboard sliding, manajemen kabel tersembunyi, dan permukaan melamin anti gores. Desain ringkas yang tetap memberi ruang kerja luas."},{id:"p5",name:"Meja Rapat",category:"Meja",price:79e5,stock:9,image:F("photo-1431540015161-0bf868a2d407"),description:"Meja rapat kapasitas 10 orang dengan top table kayu veneer premium dan kaki baja arsitektural. Dilengkapi cable port tertanam untuk kebutuhan presentasi modern."},{id:"p6",name:"Meja Resepsionis",category:"Meja",price:95e5,stock:6,image:F("photo-1497366811353-6870744d04b2"),description:"Meja resepsionis dua tingkat dengan aksen LED tersembunyi dan kombinasi material kayu-HPL premium. Menciptakan kesan pertama yang elegan untuk kantor dan hotel."},{id:"p7",name:"Kursi Kantor Ergonomis",category:"Seating",price:235e4,stock:44,image:F("photo-1505843490538-5133c6c7d0e1"),description:"Kursi kantor dengan penyangga lumbar adjustable, sandaran mesh breathable, dan hydraulic class 4. Dirancang untuk kenyamanan kerja 8+ jam setiap hari."},{id:"p8",name:"Sofa Tamu Premium",category:"Seating",price:875e4,stock:7,image:F("photo-1555041469-a586c61ea9bc"),description:"Sofa tamu 3 dudukan dengan upholstery fabric kelas atas, busa high density, dan rangka kayu solid kering oven. Kemewahan yang dibangun untuk bertahan puluhan tahun."},{id:"p9",name:"Rak Arsip Terbuka",category:"Storage",price:315e4,stock:21,image:F("photo-1594620302200-9a762244a156"),description:"Rak arsip terbuka 5 tingkat dengan kapasitas beban 60kg per ambalan. Konstruksi knock-down memudahkan pemindahan dan penataan ulang ruang arsip."},{id:"p10",name:"Meja Direktur Eksekutif",category:"Meja",price:125e5,stock:4,image:F("photo-1524758631624-e2822e304c36"),description:"Meja direktur L-shape dengan veneer kayu walnut, laci kunci sentral, dan credenza samping terintegrasi. Pernyataan wibawa untuk ruang pimpinan."},{id:"p11",name:"Partisi Kantor Modular",category:"Aksesori",price:145e4,stock:60,image:F("photo-1497366754035-f200968a6e72"),description:"Panel partisi modular peredam suara dengan rangka aluminium. Sistem sambung fleksibel untuk membentuk workstation sesuai layout kantor Anda."},{id:"p12",name:"Credenza Penyimpanan",category:"Storage",price:41e5,stock:13,image:F("photo-1538688525198-9b88f6f53126"),description:"Credenza rendah dengan kombinasi pintu sliding dan laci, finishing duco halus. Sempurna sebagai penyimpanan sekaligus elemen estetika ruang rapat."}],km=F("photo-1618220179428-22790b461013",1920),wd=F("photo-1616486338812-3dadae4b4ace"),wm=F("photo-1505693416388-ac5ce068fe85"),Sm=F("photo-1556911220-bff31c812dba"),Nm=[F("photo-1581091226825-a6a2a5aee158",800),F("photo-1504917595217-d4dc5ebe6122",800),F("photo-1565793298595-6a879b1d9492",800),F("photo-1530124566582-a618bc2615dc",800)],Ko=[{img:F("photo-1505693416388-ac5ce068fe85",900),label:"Kamar Tidur Utama",cat:"Bedroom"},{img:F("photo-1556911220-bff31c812dba",900),label:"Dapur Modern",cat:"Kitchen"},{img:F("photo-1616486338812-3dadae4b4ace",900),label:"Ruang Keluarga",cat:"Interior"},{img:F("photo-1600210492486-724fe5c67fb0",900),label:"Ruang Tamu Minimalis",cat:"Interior"},{img:F("photo-1598928506311-c55ded91a20c",900),label:"Living Room Project",cat:"Interior"},{img:F("photo-1600607687939-ce8a6c25118c",900),label:"Koridor & Tangga",cat:"Interior"},{img:F("photo-1600566753190-17f0baa2a6c3",900),label:"Fasad Hunian",cat:"Exterior"},{img:F("photo-1581091226825-a6a2a5aee158",900),label:"Lini Produksi",cat:"Factory"},{img:F("photo-1567016432779-094069958ea5",900),label:"Kamar Tidur Hotel",cat:"Bedroom"},{img:F("photo-1556228453-efd6c1ff04f6",900),label:"Detail Kabinet",cat:"Kitchen"},{img:F("photo-1503387762-592deb58ef4e",900),label:"Studi Arsitektur",cat:"Exterior"},{img:F("photo-1565793298595-6a879b1d9492",900),label:"Workshop Kayu",cat:"Factory"}],Ce=e=>new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR",minimumFractionDigits:0}).format(e),Em="/api";let Ns=sessionStorage.getItem("wl_token")||"";function Qo(e){Ns=e||"",e?sessionStorage.setItem("wl_token",e):sessionStorage.removeItem("wl_token")}async function Pe(e,t="GET",n){const r=await fetch(`${Em}/${e}`,{method:t,headers:{"Content-Type":"application/json",...Ns?{Authorization:`Bearer ${Ns}`}:{}},body:n!==void 0?JSON.stringify(n):void 0}),l=await r.json().catch(()=>({}));if(!r.ok){const i=new Error(l.error||`HTTP ${r.status}`);throw i.status=r.status,i}return l}const je={login:(e,t)=>Pe("auth.php","POST",{username:e,password:t}),getProducts:()=>Pe("products.php"),createProduct:e=>Pe("products.php","POST",e),updateProduct:e=>Pe("products.php","PUT",e),deleteProduct:e=>Pe(`products.php?id=${encodeURIComponent(e)}`,"DELETE"),getOrders:()=>Pe("orders.php"),createOrder:e=>Pe("orders.php","POST",e),updateOrderStatus:(e,t)=>Pe("orders.php","PUT",{id:e,status:t}),getInquiries:()=>Pe("inquiries.php"),createInquiry:e=>Pe("inquiries.php","POST",e),markInquiryRead:e=>Pe("inquiries.php","PUT",{id:e}),getSettings:()=>Pe("settings.php"),saveSettings:e=>Pe("settings.php","PUT",e)},Sd=x.createContext(null);function Hn(e,t){const[n,r]=x.useState(()=>{try{const l=localStorage.getItem(e);return l?JSON.parse(l):t}catch{return t}});return x.useEffect(()=>{try{localStorage.setItem(e,JSON.stringify(n))}catch{}},[e,n]),[n,r]}function Cm({children:e}){const[t,n]=x.useState(!1),[r,l]=Hn("wl_products",jm),[i,a]=Hn("wl_cart",[]),[u,o]=Hn("wl_orders",[]),[c,p]=Hn("wl_inquiries",[]),[f,h]=Hn("wl_settings",{storeName:"WOODLAND",legalName:"PT. PAPARTI PERTAMA",email:"marketing@woodland.co.id",phone:"0266-7501037",address:"Jl. Cinyocok Tengah, Pamuruyan, Kec. Cibadak, Kab. Sukabumi, Jawa Barat, 43351"}),[j,g]=x.useState(()=>sessionStorage.getItem("wl_admin")==="1"),[k,N]=x.useState(!1);x.useEffect(()=>{let M=!1;return(async()=>{try{const w=await je.getProducts();if(M||!Array.isArray(w))return;n(!0),w.length>0&&l(w);const E=await je.getSettings();!M&&E&&Object.keys(E).length>0&&h(P=>({...P,...E}))}catch{}})(),()=>{M=!0}},[]),x.useEffect(()=>{!t||!j||(je.getOrders().then(o).catch(()=>{}),je.getInquiries().then(p).catch(()=>{}))},[t,j]);const m=(M,w=1)=>{a(E=>E.find(D=>D.productId===M)?E.map(D=>D.productId===M?{...D,qty:D.qty+w}:D):[...E,{productId:M,qty:w}])},d=(M,w)=>{a(E=>w<=0?E.filter(P=>P.productId!==M):E.map(P=>P.productId===M?{...P,qty:w}:P))},v=()=>a([]),y=x.useMemo(()=>i.map(M=>{const w=r.find(E=>E.id===M.productId);return w?{...M,product:w}:null}).filter(Boolean),[i,r]),C=y.reduce((M,w)=>M+w.product.price*w.qty,0),T=y.reduce((M,w)=>M+w.qty,0),On={products:r,cart:i,cartDetailed:y,cartTotal:C,cartCount:T,cartOpen:k,setCartOpen:N,orders:u,inquiries:c,settings:f,setSettings:M=>{h(M),t&&je.saveSettings(M).catch(()=>{})},isAdmin:j,apiMode:t,addToCart:m,updateCartQty:d,clearCart:v,placeOrder:async M=>{if(t){const E=await je.createOrder({customer:M,items:i.map(({productId:P,qty:D})=>({productId:P,qty:D}))});return o(P=>[E,...P]),je.getProducts().then(l).catch(()=>{}),v(),E}const w={id:"WL-"+Date.now().toString().slice(-8),date:new Date().toISOString(),customer:M,items:y.map(E=>({productId:E.productId,name:E.product.name,price:E.product.price,qty:E.qty})),total:C,status:"Pending"};return o(E=>[w,...E]),l(E=>E.map(P=>{const D=i.find(J=>J.productId===P.id);return D?{...P,stock:Math.max(0,P.stock-D.qty)}:P})),v(),w},updateOrderStatus:(M,w)=>{o(E=>E.map(P=>P.id===M?{...P,status:w}:P)),t&&je.updateOrderStatus(M,w).catch(()=>{})},addInquiry:async M=>{if(t){const E=await je.createInquiry(M);return p(P=>[E,...P]),E}const w={id:"INQ-"+Date.now().toString().slice(-8),date:new Date().toISOString(),read:!1,...M};return p(E=>[w,...E]),w},markInquiryRead:M=>{p(w=>w.map(E=>E.id===M?{...E,read:!0}:E)),t&&je.markInquiryRead(M).catch(()=>{})},saveProduct:async M=>{if(t){const w=M.id&&r.some(P=>P.id===M.id),E=w?await je.updateProduct(M):await je.createProduct(M);return l(P=>w?P.map(D=>D.id===E.id?E:D):[E,...P]),E}return l(w=>w.some(P=>P.id===M.id)?w.map(P=>P.id===M.id?M:P):[{...M,id:"p"+Date.now()},...w]),M},deleteProduct:M=>{l(w=>w.filter(E=>E.id!==M)),t&&je.deleteProduct(M).catch(()=>{})},login:async(M,w)=>{if(t)try{const{token:E}=await je.login(M,w);return Qo(E),sessionStorage.setItem("wl_admin","1"),g(!0),!0}catch{return!1}return M==="admin"&&w==="woodland2026"?(sessionStorage.setItem("wl_admin","1"),g(!0),!0):!1},logout:()=>{sessionStorage.removeItem("wl_admin"),Qo(""),g(!1)}};return s.jsx(Sd.Provider,{value:On,children:e})}const ue=()=>x.useContext(Sd),Pm={fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},te=({children:e,size:t=20,...n})=>s.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",...Pm,...n,children:e}),ql=e=>s.jsxs(te,{...e,children:[s.jsx("path",{d:"M3 4h2l2.4 12.2a1.5 1.5 0 0 0 1.5 1.2h8.4a1.5 1.5 0 0 0 1.5-1.2L20.5 8H6"}),s.jsx("circle",{cx:"9.5",cy:"21",r:"1"}),s.jsx("circle",{cx:"17.5",cy:"21",r:"1"})]}),Nd=e=>s.jsx(te,{...e,children:s.jsx("path",{d:"M4.5 12.5l5 5 10-11"})}),Tm=e=>s.jsx(te,{...e,children:s.jsx("path",{d:"M6 6l12 12M18 6L6 18"})}),_m=e=>s.jsx(te,{...e,children:s.jsx("path",{d:"M4 7h16M10 11v6M14 11v6M6 7l1 13a1.5 1.5 0 0 0 1.5 1.4h7A1.5 1.5 0 0 0 17 20l1-13M9 7V4.5A1.5 1.5 0 0 1 10.5 3h3A1.5 1.5 0 0 1 15 4.5V7"})}),Ed=e=>s.jsxs(te,{...e,children:[s.jsx("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2.5"}),s.jsx("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),Lm=e=>s.jsx(te,{...e,children:s.jsx("path",{d:"M5 4h4l1.5 4.5L8 10a13 13 0 0 0 6 6l1.5-2.5L20 15v4a1.8 1.8 0 0 1-2 1.8A16.5 16.5 0 0 1 3.2 6 1.8 1.8 0 0 1 5 4z"})}),Yo=e=>s.jsxs(te,{...e,children:[s.jsx("path",{d:"M12 21s-7-5.5-7-11a7 7 0 0 1 14 0c0 5.5-7 11-7 11z"}),s.jsx("circle",{cx:"12",cy:"10",r:"2.6"})]}),zm=e=>s.jsxs(te,{...e,children:[s.jsx("path",{d:"M5 11V8.5A2.5 2.5 0 0 1 7.5 6h9A2.5 2.5 0 0 1 19 8.5V11"}),s.jsx("path",{d:"M4 11a2 2 0 0 1 2 2v1h12v-1a2 2 0 0 1 4 0v3.5A1.5 1.5 0 0 1 20.5 18h-17A1.5 1.5 0 0 1 2 16.5V13a2 2 0 0 1 2-2z"}),s.jsx("path",{d:"M5 18v2M19 18v2"})]}),Rm=e=>s.jsxs(te,{...e,children:[s.jsx("path",{d:"M12 10c0-3.5 2.5-5 5-5-.5 3.5-2 5.5-5 5.5M12 10c0-3.5-2.5-5-5-5 .5 3.5 2 5.5 5 5.5"}),s.jsx("path",{d:"M12 5v8"}),s.jsx("path",{d:"M8 13h8l-1 7a1.5 1.5 0 0 1-1.5 1.3h-3A1.5 1.5 0 0 1 9 20l-1-7z"})]}),Mm=e=>s.jsxs(te,{...e,children:[s.jsx("path",{d:"M3 21h18M5 21V8l7-5 7 5v13"}),s.jsx("path",{d:"M9 21v-5a1.5 1.5 0 0 1 1.5-1.5h3A1.5 1.5 0 0 1 15 16v5M9.5 11h1.5M13 11h1.5"})]}),Om=e=>s.jsxs(te,{...e,children:[s.jsx("circle",{cx:"12",cy:"12",r:"9"}),s.jsx("path",{d:"M15.5 8.5l-2 5-5 2 2-5 5-2z"}),s.jsx("circle",{cx:"12",cy:"12",r:"0.8",fill:"currentColor"})]}),Im=e=>s.jsx(te,{...e,children:s.jsx("path",{d:"M14 8h2.5V4.8H14a3.8 3.8 0 0 0-3.8 3.8V11H8v3h2.2v7H13.4v-7h2.4l.5-3h-2.9V8.9A.9.9 0 0 1 14 8z"})}),Dm=e=>s.jsxs(te,{...e,children:[s.jsx("rect",{x:"3.5",y:"3.5",width:"17",height:"17",rx:"4.5"}),s.jsx("circle",{cx:"12",cy:"12",r:"3.8"}),s.jsx("circle",{cx:"17",cy:"7",r:"0.8",fill:"currentColor",stroke:"none"})]}),Am=e=>s.jsxs(te,{...e,children:[s.jsx("rect",{x:"2.5",y:"5.5",width:"19",height:"13",rx:"3.5"}),s.jsx("path",{d:"M10.2 9.2l4.8 2.8-4.8 2.8z",fill:"currentColor",stroke:"none"})]}),Fm=e=>s.jsxs(te,{...e,children:[s.jsx("path",{d:"M12 3.5a8.5 8.5 0 0 0-7.3 12.8L3.5 20.5l4.3-1.1A8.5 8.5 0 1 0 12 3.5z"}),s.jsx("path",{d:"M9 8.8c-.3 1.8 1.5 4.6 3.6 5.7 1 .5 1.9.6 2.4 0l.5-.7-1.7-1-.8.5a5.7 5.7 0 0 1-2.2-2.3l.6-.7-1-1.7-.8.5c-.3.2-.5.8-.6 1.7z"})]}),Um=e=>s.jsxs(te,{...e,children:[s.jsx("path",{d:"M4 4v16h16"}),s.jsx("path",{d:"M8 16v-5M12 16V8M16 16v-3"})]}),Bm=e=>s.jsxs(te,{...e,children:[s.jsx("path",{d:"M3.5 7.5L12 3l8.5 4.5v9L12 21l-8.5-4.5z"}),s.jsx("path",{d:"M3.5 7.5L12 12l8.5-4.5M12 12v9"})]}),Wm=e=>s.jsxs(te,{...e,children:[s.jsx("path",{d:"M7 10V4.5A1.5 1.5 0 0 1 8.5 3h7A1.5 1.5 0 0 1 17 4.5V10"}),s.jsx("path",{d:"M5.5 14a2 2 0 1 1 1.8-2.9c.2.4.7.9 1.2.9h7c.5 0 1-.5 1.2-.9A2 2 0 1 1 18.5 14v2.5A1.5 1.5 0 0 1 17 18H7a1.5 1.5 0 0 1-1.5-1.5z"}),s.jsx("path",{d:"M7 18v3M17 18v3"})]}),$m=e=>s.jsxs(te,{...e,children:[s.jsx("circle",{cx:"12",cy:"12",r:"3"}),s.jsx("path",{d:"M12 2.8l1.2 2.4 2.7.4 1.9-1.9 1.5 1.5-1.9 1.9.4 2.7 2.4 1.2-2.4 1.2-.4 2.7 1.9 1.9-1.5 1.5-1.9-1.9-2.7.4L12 21.2l-1.2-2.4-2.7-.4-1.9 1.9-1.5-1.5 1.9-1.9-.4-2.7L3.8 12l2.4-1.2.4-2.7-1.9-1.9 1.5-1.5 1.9 1.9 2.7-.4z"})]}),Hm=e=>s.jsxs(te,{...e,children:[s.jsx("path",{d:"M14 4h-7A1.5 1.5 0 0 0 5.5 5.5v13A1.5 1.5 0 0 0 7 20h7"}),s.jsx("path",{d:"M10 12h10M16.5 8.5L20 12l-3.5 3.5"})]});function Vm(){const{cartCount:e,setCartOpen:t}=ue(),[n,r]=x.useState(!1),[l,i]=x.useState(!1),{pathname:a}=Ot();x.useEffect(()=>{const o=()=>r(window.scrollY>60);return o(),window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[]),x.useEffect(()=>i(!1),[a]);const u=[{to:"/",label:"Home"},{to:"/tentang-kami",label:"Tentang Kami"},{to:"/produk",label:"Produk"},{to:"/gallery",label:"Gallery"},{to:"/contact",label:"Contact Us"}];return s.jsx("header",{className:`nav ${n?"solid":""}`,children:s.jsxs("div",{className:"container nav-inner",children:[s.jsxs(Z,{to:"/",className:`wordmark ${n?"":"on-dark"}`,children:[s.jsx("span",{className:"wood",children:"wood"}),s.jsx("span",{className:"land",children:"land"}),s.jsx("span",{className:"leaf",children:"®"})]}),s.jsx("nav",{children:s.jsx("ul",{className:`nav-links ${l?"open":""}`,children:u.map(o=>s.jsx("li",{children:s.jsx(en,{to:o.to,end:o.to==="/",className:({isActive:c})=>c?"active":"",children:o.label})},o.to))})}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:20},children:[s.jsxs("button",{className:"cart-btn",onClick:()=>t(!0),"aria-label":"Keranjang belanja",children:[s.jsx(ql,{size:22}),e>0&&s.jsx("span",{className:"cart-badge",children:e})]}),s.jsx("button",{className:"hamburger",onClick:()=>i(!l),"aria-label":"Menu",children:l?"✕":"☰"})]})]})})}function Km(){const{settings:e}=ue();return s.jsxs("footer",{className:"footer",children:[s.jsxs("div",{className:"container footer-main",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"wordmark on-dark",style:{marginBottom:18},children:[s.jsx("span",{className:"wood",children:"wood"}),s.jsx("span",{className:"land",children:"land"}),s.jsx("span",{className:"leaf",children:"®"})]}),s.jsxs("p",{children:[e.legalName," — pabrik furnitur Indonesia sejak 1980. Membangun hubungan yang terpercaya dengan pelanggan melalui kualitas dan layanan purna jual terbaik."]}),s.jsxs("div",{className:"social-row","aria-label":"We Are Social",children:[s.jsx("a",{href:"#","aria-label":"Facebook",children:s.jsx(Im,{size:18})}),s.jsx("a",{href:"#","aria-label":"Instagram",children:s.jsx(Dm,{size:18})}),s.jsx("a",{href:"#","aria-label":"YouTube",children:s.jsx(Am,{size:18})}),s.jsx("a",{href:"#","aria-label":"WhatsApp",children:s.jsx(Fm,{size:18})})]})]}),s.jsxs("div",{children:[s.jsx("h4",{children:"Navigasi"}),s.jsxs("ul",{children:[s.jsx("li",{children:s.jsx(Z,{to:"/",children:"Home"})}),s.jsx("li",{children:s.jsx(Z,{to:"/tentang-kami",children:"Tentang Kami"})}),s.jsx("li",{children:s.jsx(Z,{to:"/produk",children:"Produk"})}),s.jsx("li",{children:s.jsx(Z,{to:"/gallery",children:"Gallery"})}),s.jsx("li",{children:s.jsx(Z,{to:"/contact",children:"Contact Us"})})]})]}),s.jsxs("div",{children:[s.jsx("h4",{children:"Layanan"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Interior Design"}),s.jsx("li",{children:"Decoration"}),s.jsx("li",{children:"Exterior Design"}),s.jsx("li",{children:"Architecture"})]})]}),s.jsxs("div",{children:[s.jsx("h4",{children:"Hubungi Kami"}),s.jsxs("ul",{children:[s.jsx("li",{children:e.email}),s.jsx("li",{children:e.phone}),s.jsx("li",{children:e.address})]})]})]}),s.jsxs("div",{className:"footer-bottom",children:["Copyright © 2026 woodland.co.id. All Rights Reserved ·"," ",s.jsx(Z,{to:"/admin/login",style:{opacity:.6},children:"Admin"})]})]})}function Qm(){const{cartOpen:e,setCartOpen:t,cartDetailed:n,cartTotal:r,updateCartQty:l}=ue(),i=Mn();return e?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"drawer-backdrop",onClick:()=>t(!1)}),s.jsxs("aside",{className:"drawer",children:[s.jsxs("div",{className:"drawer-head",children:[s.jsx("h3",{children:"Keranjang Belanja"}),s.jsx("button",{className:"drawer-close",onClick:()=>t(!1),"aria-label":"Tutup",children:s.jsx(Tm,{size:20})})]}),s.jsx("div",{className:"drawer-body","data-lenis-prevent":!0,children:n.length===0?s.jsxs("div",{className:"empty-note",children:[s.jsx("p",{style:{marginBottom:12,color:"var(--line)"},children:s.jsx(ql,{size:56})}),s.jsx("p",{children:"Keranjang Anda masih kosong."})]}):n.map(a=>s.jsxs("div",{className:"cart-line",children:[s.jsx("img",{src:a.product.image,alt:a.product.name}),s.jsxs("div",{className:"info",children:[s.jsx("h4",{children:a.product.name}),s.jsx("div",{className:"price",children:Ce(a.product.price)}),s.jsxs("div",{className:"qty-control",style:{display:"inline-flex"},children:[s.jsx("button",{onClick:()=>l(a.productId,a.qty-1),children:"−"}),s.jsx("span",{children:a.qty}),s.jsx("button",{onClick:()=>l(a.productId,a.qty+1),children:"+"})]})]}),s.jsx("button",{className:"drawer-close",onClick:()=>l(a.productId,0),"aria-label":"Hapus",style:{alignSelf:"flex-start"},children:s.jsx(_m,{size:17})})]},a.productId))}),s.jsxs("div",{className:"drawer-foot",children:[s.jsxs("div",{className:"total-row",children:[s.jsx("span",{children:"Total"}),s.jsx("span",{style:{color:"var(--orange)"},children:Ce(r)})]}),s.jsx("button",{className:"btn btn-primary",style:{width:"100%"},disabled:n.length===0,onClick:()=>{t(!1),i("/checkout")},children:"Lanjut ke Pembayaran"})]})]})]}):null}function B({children:e,delay:t=0,className:n=""}){const r=x.useRef(null),[l,i]=x.useState(!1);return x.useEffect(()=>{const a=r.current;if(!a)return;const u=new IntersectionObserver(([o])=>{o.isIntersecting&&(i(!0),u.disconnect())},{threshold:.12});return u.observe(a),()=>u.disconnect()},[]),s.jsx("div",{ref:r,className:`reveal ${l?"visible":""} ${n}`,style:{transitionDelay:`${t}ms`},children:e})}function wa({product:e}){const{addToCart:t}=ue(),[n,r]=x.useState(!1),l=x.useRef(null),i=()=>{t(e.id),r(!0),clearTimeout(l.current),l.current=setTimeout(()=>r(!1),1600)};return s.jsxs("div",{className:"product-card",children:[s.jsxs(Z,{to:`/produk/${e.id}`,className:"product-thumb",children:[s.jsx("img",{src:e.image,alt:e.name,loading:"lazy"}),s.jsx("span",{className:"product-cat",children:e.category})]}),s.jsxs("div",{className:"product-body",children:[s.jsx("h3",{children:e.name}),s.jsx("div",{className:"product-price",children:Ce(e.price)}),s.jsxs("div",{className:"stock-note",children:["Stok: ",e.stock," unit"]}),s.jsxs("div",{className:"product-actions",children:[s.jsxs("button",{className:`btn btn-primary btn-sm ${n?"btn-added":""}`,disabled:e.stock===0,onClick:i,children:[n?s.jsx(Nd,{size:16}):s.jsx(ql,{size:16}),n?"Ditambahkan":"Keranjang"]}),s.jsx(Z,{to:`/produk/${e.id}`,className:"btn btn-outline btn-sm",children:"Read more"})]})]})]})}const Xo=["/videos/hero-1.mp4","/videos/hero-2.mp4","/videos/hero-3.mp4"];function Ei({target:e,suffix:t=""}){const n=x.useRef(null),[r,l]=x.useState(0);return x.useEffect(()=>{const i=n.current;if(!i)return;const a=new IntersectionObserver(([u])=>{if(!u.isIntersecting)return;a.disconnect();const o=performance.now(),c=1600,p=f=>{const h=Math.min((f-o)/c,1);l(Math.round(e*(1-Math.pow(1-h,3)))),h<1&&requestAnimationFrame(p)};requestAnimationFrame(p)},{threshold:.4});return a.observe(i),()=>a.disconnect()},[e]),s.jsxs("span",{ref:n,children:[r,t]})}const Ym=[{icon:s.jsx(zm,{size:26}),title:"Interior Design",desc:"Perencanaan ruang menyeluruh, dari konsep hingga eksekusi, untuk hunian dan komersial."},{icon:s.jsx(Rm,{size:26}),title:"Decoration",desc:"Sentuhan dekoratif yang menghidupkan karakter setiap ruangan dengan detail premium."},{icon:s.jsx(Mm,{size:26}),title:"Exterior Design",desc:"Fasad dan ruang luar yang memadukan estetika, fungsi, dan ketahanan material."},{icon:s.jsx(Om,{size:26}),title:"Architecture",desc:"Solusi arsitektur terintegrasi dengan standar industri dan pengalaman 44 tahun."}];function Xm(){const{products:e}=ue(),t=e.slice(0,3),[n,r]=x.useState(0);return s.jsxs("main",{children:[s.jsxs("section",{className:"hero",children:[s.jsx("video",{className:"hero-video",src:Xo[n],poster:km,autoPlay:!0,muted:!0,playsInline:!0,onEnded:()=>r(l=>(l+1)%Xo.length)},n),s.jsx("div",{className:"container",children:s.jsxs("div",{className:"hero-content",children:[s.jsx("span",{className:"eyebrow hero-eyebrow",children:"Sejak 1980 · PT. Paparti Pertama"}),s.jsxs("h1",{children:["Furnitur Premium, ",s.jsx("em",{children:"Dibuat"})," untuk Generasi"]}),s.jsx("p",{children:"WOODLAND menghadirkan furnitur dan solusi desain interior berkualitas ekspor dari pabrik kami di Sukabumi, dengan misi membangun hubungan yang terpercaya dengan pelanggan."}),s.jsxs("div",{className:"hero-actions",children:[s.jsx(Z,{to:"/produk",className:"btn btn-primary",children:"Lihat Produk"}),s.jsx(Z,{to:"/contact",className:"btn btn-ghost",children:"Hubungi Kami"})]})]})}),s.jsxs("button",{className:"hero-scroll",onClick:()=>{var l;return(l=window.__lenis)==null?void 0:l.scrollTo(".section",{offset:-40})},"aria-label":"Gulir ke bawah",children:[s.jsx("span",{children:"Scroll"}),s.jsx("span",{className:"scroll-line"})]})]}),s.jsx("section",{className:"section",children:s.jsxs("div",{className:"container",children:[s.jsxs(B,{children:[s.jsx("span",{className:"eyebrow",children:"Layanan Kami"}),s.jsx("h2",{className:"section-title",children:"Empat Pilar Keahlian Kami"}),s.jsx("p",{className:"section-sub",children:"Lebih dari sekadar furnitur — kami merancang pengalaman ruang secara menyeluruh."})]}),s.jsx("div",{className:"services-grid",children:Ym.map((l,i)=>s.jsx(B,{delay:i*90,children:s.jsxs("div",{className:"service-card",children:[s.jsx("div",{className:"service-icon",children:l.icon}),s.jsx("h3",{children:l.title}),s.jsx("p",{children:l.desc})]})},l.title))})]})}),s.jsx("section",{className:"section",style:{background:"var(--white)"},children:s.jsxs("div",{className:"container about-grid",children:[s.jsx(B,{children:s.jsxs("div",{className:"about-media",children:[s.jsx("img",{src:wd,alt:"Interior karya WOODLAND"}),s.jsxs("div",{className:"years-badge",children:[s.jsx("div",{className:"num",children:"44"}),s.jsx("div",{className:"lbl",children:"Tahun Pengalaman"})]})]})}),s.jsx(B,{delay:120,children:s.jsxs("div",{className:"about-text",children:[s.jsx("span",{className:"eyebrow",children:"About Us"}),s.jsx("h2",{className:"section-title",children:"Warisan Keahlian Sejak 1980"}),s.jsx("p",{children:"PT. PAPARTI PERTAMA berdiri sejak awal 1980 sebagai pabrik industri furnitur di Indonesia. Pada 2011, perusahaan memfokuskan diri pada industri furnitur dengan meluncurkan merek WOODLAND."}),s.jsx("p",{children:"Didukung staf dan operator profesional yang berpengalaman di bidangnya, kami terus meningkatkan inovasi produk dan manajemen demi menjaga hubungan baik dengan mitra pemerintah/BUMD dan sektor swasta."}),s.jsx("div",{className:"about-mission",children:"“Membangun hubungan yang terpercaya dengan pelanggan”"}),s.jsx(Z,{to:"/tentang-kami",className:"btn btn-dark",children:"Selengkapnya Tentang Kami"})]})})]})}),s.jsx("section",{className:"section",children:s.jsxs("div",{className:"container",children:[s.jsxs(B,{children:[s.jsx("span",{className:"eyebrow",children:"Our Works"}),s.jsx("h2",{className:"section-title",children:"Karya yang Berbicara"})]}),s.jsxs("div",{className:"work-row",children:[s.jsx(B,{className:"work-media",children:s.jsx("img",{src:wm,alt:"Amazing Bedrooms"})}),s.jsx(B,{delay:120,children:s.jsxs("div",{className:"work-text",children:[s.jsx("span",{className:"eyebrow",children:"Interior"}),s.jsx("h3",{children:"Amazing Bedrooms"}),s.jsx("p",{children:"Desainer interior kami merencanakan, meriset, mengoordinasikan, dan mengelola setiap proyek secara menyeluruh — mulai dari pengembangan konsep, perencanaan ruang, inspeksi lokasi, hingga manajemen konstruksi dan eksekusi desain. Hasilnya: kamar tidur yang bukan hanya indah, tetapi juga nyaman dihuni setiap hari."})]})})]}),s.jsxs("div",{className:"work-row",children:[s.jsx(B,{className:"work-media",children:s.jsx("img",{src:Sm,alt:"Modern Kitchens"})}),s.jsx(B,{delay:120,children:s.jsxs("div",{className:"work-text",children:[s.jsx("span",{className:"eyebrow",children:"Interior"}),s.jsx("h3",{children:"Modern Kitchens"}),s.jsx("p",{children:"Desain interior adalah seni dan ilmu meningkatkan kualitas ruang dalam sebuah bangunan untuk menciptakan lingkungan yang lebih sehat dan estetis bagi penggunanya. Dapur rancangan kami memadukan ergonomi, material premium, dan alur kerja yang efisien."}),s.jsxs("div",{className:"chips",children:[s.jsx("span",{className:"chip",children:"Modern"}),s.jsx("span",{className:"chip",children:"Minimal"}),s.jsx("span",{className:"chip",children:"Ergonomic"}),s.jsx("span",{className:"chip",children:"Perfect"})]})]})})]})]})}),s.jsx("section",{className:"section",style:{paddingTop:0},children:s.jsx("div",{className:"container",children:s.jsx(B,{children:s.jsxs("div",{className:"stats",children:[s.jsxs("div",{className:"stat",children:[s.jsx("div",{className:"num",children:s.jsx(Ei,{target:15})}),s.jsx("div",{className:"lbl",children:"Creative Designers"})]}),s.jsxs("div",{className:"stat",children:[s.jsx("div",{className:"num",children:s.jsx(Ei,{target:730,suffix:"+"})}),s.jsx("div",{className:"lbl",children:"Projects Selesai"})]}),s.jsxs("div",{className:"stat",children:[s.jsx("div",{className:"num",children:s.jsx(Ei,{target:250,suffix:"+"})}),s.jsx("div",{className:"lbl",children:"Klien Puas"})]})]})})})}),s.jsx("section",{className:"section",style:{paddingTop:30},children:s.jsxs("div",{className:"container",children:[s.jsxs(B,{children:[s.jsx("span",{className:"eyebrow",children:"Produk Unggulan"}),s.jsx("h2",{className:"section-title",children:"Koleksi Pilihan"})]}),s.jsx("div",{className:"products-grid",children:t.map((l,i)=>s.jsx(B,{delay:i*90,children:s.jsx(wa,{product:l})},l.id))}),s.jsx("div",{style:{textAlign:"center",marginTop:48},children:s.jsx(Z,{to:"/produk",className:"btn btn-outline",children:"Lihat Semua Produk →"})})]})})]})}const qm=["Banten","Nusa Tenggara Barat","Kalimantan Barat","Sumatra Barat","Jawa Barat","dan lainnya"];function bm(){return s.jsxs("main",{children:[s.jsx("section",{className:"page-hero",children:s.jsxs("div",{className:"container",children:[s.jsx("h1",{children:"Tentang Kami"}),s.jsxs("div",{className:"crumb",children:["Home / ",s.jsx("b",{children:"Tentang Kami"})]})]})}),s.jsx("section",{className:"section",children:s.jsxs("div",{className:"container about-grid",children:[s.jsx(B,{children:s.jsxs("div",{className:"about-media",children:[s.jsx("img",{src:wd,alt:"WOODLAND craftsmanship"}),s.jsxs("div",{className:"years-badge",children:[s.jsx("div",{className:"num",children:"44"}),s.jsx("div",{className:"lbl",children:"Tahun Pengalaman"})]})]})}),s.jsx(B,{delay:120,children:s.jsxs("div",{className:"about-text",children:[s.jsx("span",{className:"eyebrow",children:"About Us"}),s.jsx("h2",{className:"section-title",children:"PT. Paparti Pertama"}),s.jsx("p",{children:"PT. PAPARTI PERTAMA berdiri sejak awal 1980 sebagai pabrik industri furnitur di Indonesia. Untuk meningkatkan kinerja dan efisiensi perusahaan, pada 2011 industri particle board dinonaktifkan dan perusahaan melanjutkan industri furnitur dengan meluncurkan merek WOODLAND."}),s.jsx("p",{children:"Dengan dukungan staf dan operator profesional yang berpengalaman di bidangnya, perusahaan terus meningkatkan inovasi produk dan manajemen sebagai bukti komitmen kami menjaga hubungan baik dengan pemberi kerja dan mitra instansi pemerintah/BUMD serta sektor swasta, dengan mengutamakan kualitas layanan dan purna jual sebagai prioritas."}),s.jsx("div",{className:"about-mission",children:"“Membangun hubungan yang terpercaya dengan pelanggan”"}),s.jsx("p",{children:"PT. PAPARTI PERTAMA memiliki perwakilan di beberapa provinsi di Indonesia, antara lain:"}),s.jsx("div",{className:"chips",style:{marginTop:14},children:qm.map(e=>s.jsx("span",{className:"chip",children:e},e))})]})})]})}),s.jsx("section",{className:"section",style:{background:"var(--white)"},children:s.jsxs("div",{className:"container",children:[s.jsxs(B,{children:[s.jsx("span",{className:"eyebrow",children:"Our Factory"}),s.jsx("h2",{className:"section-title",children:"Pabrik Kami di Sukabumi"}),s.jsx("p",{className:"section-sub",children:"Fasilitas produksi modern dengan kontrol kualitas ketat di setiap tahap — dari pemilihan material hingga finishing akhir."})]}),s.jsx("div",{className:"factory-grid",children:Nm.map((e,t)=>s.jsx(B,{delay:t*80,children:s.jsx("img",{src:e,alt:`Pabrik WOODLAND ${t+1}`,loading:"lazy"})},e))})]})})]})}const Ci=6;function Gm(){const{products:e}=ue(),[t,n]=x.useState(1),[r,l]=x.useState("Semua"),i=["Semua",...new Set(e.map(p=>p.category))],a=r==="Semua"?e:e.filter(p=>p.category===r),u=Math.max(1,Math.ceil(a.length/Ci)),o=Math.min(t,u),c=a.slice((o-1)*Ci,o*Ci);return s.jsxs("main",{children:[s.jsx("section",{className:"page-hero",children:s.jsxs("div",{className:"container",children:[s.jsx("h1",{children:"Produk Kami"}),s.jsxs("div",{className:"crumb",children:["Home / ",s.jsx("b",{children:"Produk"})]})]})}),s.jsx("section",{className:"section",children:s.jsxs("div",{className:"container",children:[s.jsxs(B,{children:[s.jsx("span",{className:"eyebrow",children:"Katalog"}),s.jsx("h2",{className:"section-title",children:"Koleksi Furnitur WOODLAND"}),s.jsx("div",{className:"gallery-filters",children:i.map(p=>s.jsx("button",{className:"chip",style:r===p?{background:"var(--orange)",color:"#fff",borderColor:"var(--orange)"}:{cursor:"pointer"},onClick:()=>{l(p),n(1)},children:p},p))})]}),s.jsx("div",{className:"products-grid",children:c.map((p,f)=>s.jsx(B,{delay:f*70,children:s.jsx(wa,{product:p})},p.id))}),u>1&&s.jsxs("div",{className:"pagination",children:[Array.from({length:u},(p,f)=>s.jsx("button",{className:`page-btn ${o===f+1?"active":""}`,onClick:()=>{n(f+1),window.scrollTo({top:300,behavior:"smooth"})},children:f+1},f)),s.jsx("button",{className:"page-btn",disabled:o===u,onClick:()=>n(o+1),children:"→"})]})]})})]})}function Jm(){const{id:e}=md(),{products:t,addToCart:n}=ue(),[r,l]=x.useState(1),[i,a]=x.useState(!1),u=x.useRef(null),o=t.find(f=>f.id===e),c=()=>{n(o.id,r),a(!0),clearTimeout(u.current),u.current=setTimeout(()=>a(!1),1600)};if(!o)return s.jsx("main",{className:"section",style:{paddingTop:180},children:s.jsxs("div",{className:"container",style:{textAlign:"center"},children:[s.jsx("h2",{className:"section-title",children:"Produk tidak ditemukan"}),s.jsx(Z,{to:"/produk",className:"btn btn-primary",children:"Kembali ke Produk"})]})});const p=t.filter(f=>f.category===o.category&&f.id!==o.id).slice(0,3);return s.jsxs("main",{children:[s.jsx("section",{className:"page-hero",style:{padding:"150px 0 70px"},children:s.jsxs("div",{className:"container",children:[s.jsx("h1",{children:o.name}),s.jsxs("div",{className:"crumb",children:["Produk / ",s.jsx("b",{children:o.category})]})]})}),s.jsx("section",{className:"section",children:s.jsxs("div",{className:"container detail-grid",children:[s.jsx(B,{children:s.jsx("img",{src:o.image,alt:o.name})}),s.jsx(B,{delay:120,children:s.jsxs("div",{className:"detail-info",children:[s.jsx("span",{className:"eyebrow",children:o.category}),s.jsx("h1",{className:"serif",children:o.name}),s.jsx("div",{className:"stock-note",children:o.stock>0?`Tersedia · Stok ${o.stock} unit`:"Stok habis"}),s.jsx("div",{className:"detail-price",children:Ce(o.price)}),s.jsx("p",{className:"detail-desc",children:o.description}),s.jsxs("div",{className:"qty-row",children:[s.jsx("span",{style:{fontWeight:600,fontSize:"0.9rem"},children:"Jumlah"}),s.jsxs("div",{className:"qty-control",children:[s.jsx("button",{onClick:()=>l(Math.max(1,r-1)),children:"−"}),s.jsx("span",{children:r}),s.jsx("button",{onClick:()=>l(Math.min(o.stock||1,r+1)),children:"+"})]})]}),s.jsxs("div",{style:{display:"flex",gap:14,flexWrap:"wrap"},children:[s.jsxs("button",{className:`btn btn-primary ${i?"btn-added":""}`,disabled:o.stock===0,onClick:c,children:[i?s.jsx(Nd,{size:18}):s.jsx(ql,{size:18}),i?"Ditambahkan":"Tambah ke Keranjang"]}),s.jsx(Z,{to:"/contact",className:"btn btn-outline",children:"Tanya Produk Ini"})]})]})})]})}),p.length>0&&s.jsx("section",{className:"section",style:{paddingTop:0},children:s.jsxs("div",{className:"container",children:[s.jsxs(B,{children:[s.jsx("span",{className:"eyebrow",children:"Terkait"}),s.jsx("h2",{className:"section-title",children:"Produk Serupa"})]}),s.jsx("div",{className:"products-grid",children:p.map((f,h)=>s.jsx(B,{delay:h*80,children:s.jsx(wa,{product:f})},f.id))})]})})]})}const Zm=["Semua","Interior","Bedroom","Kitchen","Exterior","Factory"];function ev(){const[e,t]=x.useState("Semua"),[n,r]=x.useState(null),l=e==="Semua"?Ko:Ko.filter(i=>i.cat===e);return s.jsxs("main",{children:[s.jsx("section",{className:"page-hero",children:s.jsxs("div",{className:"container",children:[s.jsx("h1",{children:"Gallery"}),s.jsxs("div",{className:"crumb",children:["Home / ",s.jsx("b",{children:"Gallery"})]})]})}),s.jsx("section",{className:"section",children:s.jsxs("div",{className:"container",children:[s.jsxs(B,{children:[s.jsx("span",{className:"eyebrow",children:"Portofolio"}),s.jsx("h2",{className:"section-title",children:"Jejak Karya Kami"}),s.jsx("div",{className:"gallery-filters",children:Zm.map(i=>s.jsx("button",{className:"chip",style:e===i?{background:"var(--orange)",color:"#fff",borderColor:"var(--orange)"}:{cursor:"pointer"},onClick:()=>t(i),children:i},i))})]}),s.jsx("div",{className:"gallery-grid",children:l.map((i,a)=>s.jsxs("div",{className:"gallery-item",onClick:()=>r(i),children:[s.jsx("img",{src:i.img,alt:i.label,loading:"lazy"}),s.jsx("div",{className:"cap",children:i.label})]},i.img+a))})]})}),n&&s.jsx("div",{className:"lightbox",onClick:()=>r(null),children:s.jsx("img",{src:n.img,alt:n.label})})]})}function tv(){const{settings:e,addInquiry:t}=ue(),[n,r]=x.useState({name:"",email:"",phone:"",department:"Business Department",message:""}),[l,i]=x.useState(!1),a=o=>c=>r({...n,[o]:c.target.value}),u=async o=>{o.preventDefault();try{await t(n),r({name:"",email:"",phone:"",department:"Business Department",message:""}),i(!0),setTimeout(()=>i(!1),4e3)}catch{alert("Gagal mengirim pesan. Silakan coba lagi.")}};return s.jsxs("main",{children:[s.jsx("section",{className:"page-hero",children:s.jsxs("div",{className:"container",children:[s.jsx("h1",{children:"Contact Us"}),s.jsxs("div",{className:"crumb",children:["Home / ",s.jsx("b",{children:"Contact Us"})]})]})}),s.jsx("section",{className:"section",children:s.jsxs("div",{className:"container contact-grid",children:[s.jsx(B,{children:s.jsxs("div",{children:[s.jsx("span",{className:"eyebrow",children:"Hubungi Kami"}),s.jsx("h2",{className:"section-title",children:"Mari Berbincang"}),s.jsxs("div",{className:"contact-card",children:[s.jsxs("div",{className:"contact-item",children:[s.jsx("div",{className:"ico",children:s.jsx(Ed,{size:19})}),s.jsxs("div",{children:[s.jsx("h4",{children:"Email"}),s.jsx("p",{children:e.email})]})]}),s.jsxs("div",{className:"contact-item",children:[s.jsx("div",{className:"ico",children:s.jsx(Lm,{size:19})}),s.jsxs("div",{children:[s.jsx("h4",{children:"Telepon"}),s.jsx("p",{children:e.phone})]})]}),s.jsxs("div",{className:"contact-item",children:[s.jsx("div",{className:"ico",children:s.jsx(Yo,{size:19})}),s.jsxs("div",{children:[s.jsx("h4",{children:"Alamat"}),s.jsx("p",{children:e.address})]})]})]}),s.jsxs("div",{className:"map-placeholder",children:[s.jsx(Yo,{size:30}),"Peta Lokasi — Cibadak, Sukabumi"]})]})}),s.jsx(B,{delay:120,children:s.jsxs("div",{className:"panel",children:[s.jsx("h3",{className:"serif",style:{fontSize:"1.5rem",marginBottom:6},children:"Kirim pesan Anda melalui formulir di bawah"}),s.jsx("p",{style:{color:"var(--muted)",fontSize:"0.9rem",marginBottom:26},children:"Tim kami akan merespons dalam 1×24 jam kerja."}),s.jsxs("form",{onSubmit:u,children:[s.jsxs("div",{className:"form-row",children:[s.jsxs("div",{className:"field",children:[s.jsxs("label",{children:["Your Name ",s.jsx("span",{className:"req",children:"(*)"})]}),s.jsx("input",{required:!0,value:n.name,onChange:a("name"),placeholder:"Nama lengkap"})]}),s.jsxs("div",{className:"field",children:[s.jsxs("label",{children:["Your Email ",s.jsx("span",{className:"req",children:"(*)"})]}),s.jsx("input",{required:!0,type:"email",value:n.email,onChange:a("email"),placeholder:"nama@email.com"})]})]}),s.jsxs("div",{className:"form-row",children:[s.jsxs("div",{className:"field",children:[s.jsx("label",{children:"Phone"}),s.jsx("input",{value:n.phone,onChange:a("phone"),placeholder:"08xx xxxx xxxx"})]}),s.jsxs("div",{className:"field",children:[s.jsx("label",{children:"Department"}),s.jsxs("select",{value:n.department,onChange:a("department"),children:[s.jsx("option",{children:"Business Department"}),s.jsx("option",{children:"Marketing Department"}),s.jsx("option",{children:"After-Sales Service"})]})]})]}),s.jsxs("div",{className:"field",children:[s.jsx("label",{children:"Your Question"}),s.jsx("textarea",{required:!0,value:n.message,onChange:a("message"),placeholder:"Tulis pertanyaan atau kebutuhan Anda..."})]}),s.jsx("button",{className:"btn btn-primary",type:"submit",style:{width:"100%"},children:"Submit"})]})]})})]})}),l&&s.jsx("div",{className:"toast",children:"✓ Pesan Anda berhasil terkirim. Terima kasih!"})]})}function nv(){const{cartDetailed:e,cartTotal:t,placeOrder:n}=ue(),r=Mn(),[l,i]=x.useState({name:"",email:"",phone:"",address:"",note:""}),a=h=>j=>i({...l,[h]:j.target.value}),[u,o]=x.useState(!1),[c,p]=x.useState(""),f=async h=>{if(h.preventDefault(),!u){o(!0),p("");try{const j=await n(l);r(`/pesanan-sukses/${j.id}`)}catch{p("Gagal membuat pesanan. Silakan coba lagi.")}finally{o(!1)}}};return e.length===0?s.jsx("main",{className:"section",style:{paddingTop:180},children:s.jsxs("div",{className:"container success-wrap",children:[s.jsx("div",{className:"success-icon",children:"🛒"}),s.jsx("h2",{className:"section-title",children:"Keranjang Kosong"}),s.jsx("p",{style:{color:"var(--muted)",marginBottom:28},children:"Belum ada produk di keranjang Anda. Jelajahi koleksi kami terlebih dahulu."}),s.jsx(Z,{to:"/produk",className:"btn btn-primary",children:"Lihat Produk"})]})}):s.jsxs("main",{children:[s.jsx("section",{className:"page-hero",style:{padding:"150px 0 70px"},children:s.jsxs("div",{className:"container",children:[s.jsx("h1",{children:"Checkout"}),s.jsxs("div",{className:"crumb",children:["Keranjang / ",s.jsx("b",{children:"Checkout"})]})]})}),s.jsx("section",{className:"section",children:s.jsxs("div",{className:"container checkout-grid",children:[s.jsx(B,{children:s.jsxs("div",{className:"panel",children:[s.jsx("h3",{className:"serif",style:{fontSize:"1.4rem",marginBottom:24},children:"Data Pengiriman"}),s.jsxs("form",{onSubmit:f,id:"checkout-form",children:[s.jsxs("div",{className:"form-row",children:[s.jsxs("div",{className:"field",children:[s.jsxs("label",{children:["Nama Lengkap ",s.jsx("span",{className:"req",children:"(*)"})]}),s.jsx("input",{required:!0,value:l.name,onChange:a("name")})]}),s.jsxs("div",{className:"field",children:[s.jsxs("label",{children:["Email ",s.jsx("span",{className:"req",children:"(*)"})]}),s.jsx("input",{required:!0,type:"email",value:l.email,onChange:a("email")})]})]}),s.jsxs("div",{className:"field",children:[s.jsxs("label",{children:["No. Telepon ",s.jsx("span",{className:"req",children:"(*)"})]}),s.jsx("input",{required:!0,value:l.phone,onChange:a("phone")})]}),s.jsxs("div",{className:"field",children:[s.jsxs("label",{children:["Alamat Pengiriman ",s.jsx("span",{className:"req",children:"(*)"})]}),s.jsx("textarea",{required:!0,value:l.address,onChange:a("address"),placeholder:"Jalan, kecamatan, kota, kode pos"})]}),s.jsxs("div",{className:"field",children:[s.jsx("label",{children:"Catatan (opsional)"}),s.jsx("input",{value:l.note,onChange:a("note"),placeholder:"Permintaan khusus"})]})]})]})}),s.jsx(B,{delay:120,children:s.jsxs("div",{className:"panel",style:{background:"var(--cream)"},children:[s.jsx("h3",{className:"serif",style:{fontSize:"1.4rem",marginBottom:18},children:"Ringkasan Pesanan"}),e.map(h=>s.jsxs("div",{className:"summary-line",children:[s.jsxs("span",{children:[h.product.name," × ",h.qty]}),s.jsx("span",{style:{fontWeight:600},children:Ce(h.product.price*h.qty)})]},h.productId)),s.jsxs("div",{className:"summary-line",children:[s.jsx("span",{children:"Pengiriman"}),s.jsx("span",{style:{color:"var(--green)",fontWeight:600},children:"Dihitung kemudian"})]}),s.jsxs("div",{className:"summary-total",children:[s.jsx("span",{children:"Total"}),s.jsx("span",{style:{color:"var(--orange)"},children:Ce(t)})]}),c&&s.jsx("div",{className:"error-note",style:{marginTop:18},children:c}),s.jsx("button",{className:"btn btn-primary",type:"submit",form:"checkout-form",disabled:u,style:{width:"100%",marginTop:24},children:u?"Memproses…":"Buat Pesanan"}),s.jsx("p",{style:{fontSize:"0.78rem",color:"var(--muted)",marginTop:14,textAlign:"center"},children:"Tim kami akan menghubungi Anda untuk konfirmasi pembayaran & pengiriman."})]})})]})})]})}function rv(){const{orderId:e}=md(),{orders:t}=ue(),n=t.find(r=>r.id===e);return s.jsx("main",{className:"section",style:{paddingTop:180},children:s.jsxs("div",{className:"container success-wrap",children:[s.jsx("div",{className:"success-icon",children:"✓"}),s.jsx("h2",{className:"section-title",children:"Pesanan Berhasil Dibuat!"}),s.jsx("p",{style:{color:"var(--muted)"},children:"Terima kasih telah berbelanja di WOODLAND. Nomor pesanan Anda:"}),s.jsx("p",{className:"serif",style:{fontSize:"1.6rem",color:"var(--orange)",margin:"10px 0 24px"},children:e}),n&&s.jsxs("div",{className:"panel",style:{textAlign:"left",marginBottom:32},children:[n.items.map(r=>s.jsxs("div",{className:"summary-line",children:[s.jsxs("span",{children:[r.name," × ",r.qty]}),s.jsx("span",{style:{fontWeight:600},children:Ce(r.price*r.qty)})]},r.productId)),s.jsxs("div",{className:"summary-total",children:[s.jsx("span",{children:"Total"}),s.jsx("span",{style:{color:"var(--orange)"},children:Ce(n.total)})]})]}),s.jsx("p",{style:{color:"var(--muted)",fontSize:"0.9rem",marginBottom:30},children:"Tim kami akan menghubungi Anda melalui email/telepon untuk konfirmasi pembayaran dan jadwal pengiriman."}),s.jsxs("div",{style:{display:"flex",gap:14,justifyContent:"center",flexWrap:"wrap"},children:[s.jsx(Z,{to:"/produk",className:"btn btn-primary",children:"Belanja Lagi"}),s.jsx(Z,{to:"/",className:"btn btn-outline",children:"Kembali ke Beranda"})]})]})})}function lv(){const{login:e}=ue(),t=Mn(),[n,r]=x.useState(""),[l,i]=x.useState(""),[a,u]=x.useState(!1),o=async c=>{c.preventDefault(),await e(n,l)?t("/admin"):u(!0)};return s.jsx("div",{className:"admin-login",children:s.jsxs("div",{className:"login-card",children:[s.jsxs("div",{className:"wordmark",children:[s.jsx("span",{className:"wood",children:"wood"}),s.jsx("span",{className:"land",children:"land"}),s.jsx("span",{className:"leaf",children:"®"})]}),s.jsx("h2",{className:"serif",children:"Admin Dashboard"}),s.jsx("p",{className:"hint",children:"Masuk untuk mengelola produk, pesanan, dan pesan."}),a&&s.jsx("div",{className:"error-note",children:"Username atau password salah."}),s.jsxs("form",{onSubmit:o,children:[s.jsxs("div",{className:"field",children:[s.jsx("label",{children:"Username"}),s.jsx("input",{value:n,onChange:c=>r(c.target.value),autoFocus:!0})]}),s.jsxs("div",{className:"field",children:[s.jsx("label",{children:"Password"}),s.jsx("input",{type:"password",value:l,onChange:c=>i(c.target.value)})]}),s.jsx("button",{className:"btn btn-primary",style:{width:"100%"},type:"submit",children:"Masuk"})]})]})})}function iv(){const{isAdmin:e,logout:t,inquiries:n}=ue(),r=Mn();if(!e)return s.jsx(Xp,{to:"/admin/login",replace:!0});const l=n.filter(i=>!i.read).length;return s.jsxs("div",{className:"admin-shell",children:[s.jsxs("aside",{className:"admin-side",children:[s.jsxs("div",{className:"wordmark on-dark",children:[s.jsx("span",{className:"wood",children:"wood"}),s.jsx("span",{className:"land",children:"land"}),s.jsx("span",{className:"leaf",children:"®"})]}),s.jsxs("nav",{className:"admin-nav",children:[s.jsxs(en,{to:"/admin",end:!0,children:[s.jsx(Um,{size:17})," Overview"]}),s.jsxs(en,{to:"/admin/produk",children:[s.jsx(Wm,{size:17})," Produk"]}),s.jsxs(en,{to:"/admin/pesanan",children:[s.jsx(Bm,{size:17})," Pesanan"]}),s.jsxs(en,{to:"/admin/pesan",children:[s.jsx(Ed,{size:17})," Pesan"," ",l>0&&s.jsx("span",{className:"cart-badge",style:{position:"static"},children:l})]}),s.jsxs(en,{to:"/admin/pengaturan",children:[s.jsx($m,{size:17})," Pengaturan"]})]}),s.jsx("div",{style:{padding:"0 14px 10px"},children:s.jsxs("button",{className:"btn btn-sm btn-ghost",style:{width:"100%",borderColor:"rgba(255,255,255,0.25)"},onClick:()=>{t(),r("/")},children:[s.jsx(Hm,{size:16})," Keluar"]})})]}),s.jsx("main",{className:"admin-main",children:s.jsx(qp,{})})]})}function sv({orders:e}){const t=Array.from({length:7},(u,o)=>{const c=new Date;c.setDate(c.getDate()-(6-o));const p=c.toISOString().slice(0,10),f=e.filter(h=>h.date.slice(0,10)===p).reduce((h,j)=>h+j.total,0);return{label:c.toLocaleDateString("id-ID",{weekday:"short"}),total:f}}),n=Math.max(...t.map(u=>u.total),1),r=640,l=200,i=30,a=(r-i*2)/t.length;return s.jsx("div",{className:"chart-wrap",children:s.jsx("svg",{viewBox:`0 0 ${r} ${l+30}`,style:{width:"100%"},children:t.map((u,o)=>{const c=Math.max(4,u.total/n*l*.85),p=i+o*a+a*.18;return s.jsxs("g",{children:[s.jsx("rect",{x:p,y:l-c,width:a*.64,height:c,rx:"8",fill:u.total>0?"var(--orange)":"#ece6dd"}),s.jsx("text",{x:p+a*.32,y:l+20,textAnchor:"middle",fontSize:"12",fill:"#6b6b6b",children:u.label})]},o)})})})}function av(){const{orders:e,products:t,inquiries:n}=ue(),r=e.reduce((l,i)=>l+i.total,0);return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"admin-head",children:[s.jsx("h1",{className:"serif",children:"Overview"}),s.jsx(Z,{to:"/",className:"btn btn-sm btn-outline",children:"Lihat Toko →"})]}),s.jsxs("div",{className:"kpis",children:[s.jsxs("div",{className:"kpi",children:[s.jsx("div",{className:"lbl",children:"Total Penjualan"}),s.jsx("div",{className:"val",children:Ce(r)}),s.jsx("div",{className:"accent"})]}),s.jsxs("div",{className:"kpi",children:[s.jsx("div",{className:"lbl",children:"Jumlah Pesanan"}),s.jsx("div",{className:"val",children:e.length}),s.jsx("div",{className:"accent"})]}),s.jsxs("div",{className:"kpi",children:[s.jsx("div",{className:"lbl",children:"Produk Aktif"}),s.jsx("div",{className:"val",children:t.length}),s.jsx("div",{className:"accent"})]}),s.jsxs("div",{className:"kpi",children:[s.jsx("div",{className:"lbl",children:"Pesan Masuk"}),s.jsx("div",{className:"val",children:n.length}),s.jsx("div",{className:"accent"})]})]}),s.jsxs("div",{className:"admin-card",children:[s.jsx("h3",{className:"serif",children:"Penjualan 7 Hari Terakhir"}),s.jsx(sv,{orders:e})]}),s.jsxs("div",{className:"admin-card",children:[s.jsx("h3",{className:"serif",children:"Pesanan Terbaru"}),e.length===0?s.jsx("p",{style:{color:"var(--muted)"},children:"Belum ada pesanan. Pesanan dari checkout toko akan muncul di sini."}):s.jsxs("table",{className:"table",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"No. Pesanan"}),s.jsx("th",{children:"Pelanggan"}),s.jsx("th",{children:"Tanggal"}),s.jsx("th",{children:"Total"}),s.jsx("th",{children:"Status"})]})}),s.jsx("tbody",{children:e.slice(0,5).map(l=>s.jsxs("tr",{children:[s.jsx("td",{style:{fontWeight:600},children:l.id}),s.jsx("td",{children:l.customer.name}),s.jsx("td",{children:new Date(l.date).toLocaleDateString("id-ID")}),s.jsx("td",{children:Ce(l.total)}),s.jsx("td",{children:s.jsx("span",{className:`badge ${l.status}`,children:l.status})})]},l.id))})]})]})]})}const ov={id:"",name:"",category:"Meja",price:0,stock:0,image:"",description:""};function uv(){const{products:e,saveProduct:t,deleteProduct:n}=ue(),[r,l]=x.useState(null),[i,a]=x.useState(null),u=c=>p=>l({...r,[c]:c==="price"||c==="stock"?Number(p.target.value):p.target.value}),o=c=>{c.preventDefault(),t(r),l(null)};return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"admin-head",children:[s.jsx("h1",{className:"serif",children:"Produk"}),s.jsx("button",{className:"btn btn-primary btn-sm",onClick:()=>l({...ov}),children:"+ Tambah Produk"})]}),s.jsx("div",{className:"admin-card",children:s.jsxs("table",{className:"table",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{}),s.jsx("th",{children:"Nama"}),s.jsx("th",{children:"Kategori"}),s.jsx("th",{children:"Harga"}),s.jsx("th",{children:"Stok"}),s.jsx("th",{style:{textAlign:"right"},children:"Aksi"})]})}),s.jsx("tbody",{children:e.map(c=>s.jsxs("tr",{children:[s.jsx("td",{children:s.jsx("img",{src:c.image,alt:c.name})}),s.jsx("td",{style:{fontWeight:600},children:c.name}),s.jsx("td",{children:c.category}),s.jsx("td",{children:Ce(c.price)}),s.jsx("td",{children:s.jsxs("span",{className:`badge ${c.stock===0?"Pending":"Selesai"}`,children:[c.stock," unit"]})}),s.jsxs("td",{style:{textAlign:"right",whiteSpace:"nowrap"},children:[s.jsx("button",{className:"btn btn-sm btn-outline",onClick:()=>l({...c}),children:"Edit"})," ",s.jsx("button",{className:"btn btn-sm btn-dark",onClick:()=>a(c),children:"Hapus"})]})]},c.id))})]})}),r&&s.jsx("div",{className:"modal-backdrop",onClick:c=>c.target===c.currentTarget&&l(null),children:s.jsxs("div",{className:"modal",children:[s.jsx("h3",{className:"serif",children:r.id?"Edit Produk":"Tambah Produk"}),s.jsxs("form",{onSubmit:o,children:[s.jsxs("div",{className:"field",children:[s.jsx("label",{children:"Nama Produk"}),s.jsx("input",{required:!0,value:r.name,onChange:u("name")})]}),s.jsxs("div",{className:"form-row",children:[s.jsxs("div",{className:"field",children:[s.jsx("label",{children:"Kategori"}),s.jsxs("select",{value:r.category,onChange:u("category"),children:[s.jsx("option",{children:"Meja"}),s.jsx("option",{children:"Seating"}),s.jsx("option",{children:"Storage"}),s.jsx("option",{children:"Aksesori"})]})]}),s.jsxs("div",{className:"field",children:[s.jsx("label",{children:"Harga (Rp)"}),s.jsx("input",{required:!0,type:"number",min:"0",value:r.price,onChange:u("price")})]})]}),s.jsxs("div",{className:"form-row",children:[s.jsxs("div",{className:"field",children:[s.jsx("label",{children:"Stok"}),s.jsx("input",{required:!0,type:"number",min:"0",value:r.stock,onChange:u("stock")})]}),s.jsxs("div",{className:"field",children:[s.jsx("label",{children:"URL Gambar"}),s.jsx("input",{value:r.image,onChange:u("image"),placeholder:"https://..."})]})]}),s.jsxs("div",{className:"field",children:[s.jsx("label",{children:"Deskripsi"}),s.jsx("textarea",{value:r.description,onChange:u("description")})]}),s.jsxs("div",{className:"modal-actions",children:[s.jsx("button",{type:"button",className:"btn btn-sm btn-outline",onClick:()=>l(null),children:"Batal"}),s.jsx("button",{type:"submit",className:"btn btn-sm btn-primary",children:"Simpan"})]})]})]})}),i&&s.jsx("div",{className:"modal-backdrop",onClick:c=>c.target===c.currentTarget&&a(null),children:s.jsxs("div",{className:"modal",style:{width:"min(440px, 100%)"},children:[s.jsx("h3",{className:"serif",children:"Hapus Produk?"}),s.jsxs("p",{style:{color:"var(--muted)",marginBottom:22},children:['"',i.name,'" akan dihapus permanen dari katalog.']}),s.jsxs("div",{className:"modal-actions",children:[s.jsx("button",{className:"btn btn-sm btn-outline",onClick:()=>a(null),children:"Batal"}),s.jsx("button",{className:"btn btn-sm btn-primary",onClick:()=>{n(i.id),a(null)},children:"Ya, Hapus"})]})]})})]})}const cv=["Pending","Diproses","Dikirim","Selesai"];function dv(){const{orders:e,updateOrderStatus:t}=ue(),[n,r]=x.useState(null);return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"admin-head",children:s.jsx("h1",{className:"serif",children:"Pesanan"})}),s.jsx("div",{className:"admin-card",children:e.length===0?s.jsx("p",{style:{color:"var(--muted)"},children:"Belum ada pesanan. Pesanan yang dibuat pelanggan lewat checkout akan muncul di sini."}):s.jsxs("table",{className:"table",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"No. Pesanan"}),s.jsx("th",{children:"Pelanggan"}),s.jsx("th",{children:"Kontak"}),s.jsx("th",{children:"Tanggal"}),s.jsx("th",{children:"Total"}),s.jsx("th",{children:"Status"}),s.jsx("th",{})]})}),s.jsx("tbody",{children:e.map(l=>s.jsxs("tr",{children:[s.jsx("td",{style:{fontWeight:600},children:l.id}),s.jsx("td",{children:l.customer.name}),s.jsxs("td",{style:{fontSize:"0.82rem",color:"var(--muted)"},children:[l.customer.email,s.jsx("br",{}),l.customer.phone]}),s.jsx("td",{children:new Date(l.date).toLocaleString("id-ID",{dateStyle:"medium",timeStyle:"short"})}),s.jsx("td",{style:{fontWeight:600},children:Ce(l.total)}),s.jsx("td",{children:s.jsx("select",{className:"status-select",value:l.status,onChange:i=>t(l.id,i.target.value),children:cv.map(i=>s.jsx("option",{children:i},i))})}),s.jsx("td",{children:s.jsx("button",{className:"btn btn-sm btn-outline",onClick:()=>r(l),children:"Detail"})})]},l.id))})]})}),n&&s.jsx("div",{className:"modal-backdrop",onClick:l=>l.target===l.currentTarget&&r(null),children:s.jsxs("div",{className:"modal",children:[s.jsxs("h3",{className:"serif",children:["Pesanan ",n.id]}),s.jsxs("p",{style:{marginBottom:4},children:[s.jsx("b",{children:n.customer.name})," · ",n.customer.email," · ",n.customer.phone]}),s.jsxs("p",{style:{color:"var(--muted)",fontSize:"0.9rem",marginBottom:18},children:[n.customer.address,n.customer.note&&s.jsxs(s.Fragment,{children:[" · Catatan: ",n.customer.note]})]}),n.items.map(l=>s.jsxs("div",{className:"summary-line",children:[s.jsxs("span",{children:[l.name," × ",l.qty]}),s.jsx("span",{style:{fontWeight:600},children:Ce(l.price*l.qty)})]},l.productId)),s.jsxs("div",{className:"summary-total",children:[s.jsx("span",{children:"Total"}),s.jsx("span",{style:{color:"var(--orange)"},children:Ce(n.total)})]}),s.jsxs("div",{className:"modal-actions",children:[s.jsx("span",{className:`badge ${n.status}`,style:{alignSelf:"center"},children:n.status}),s.jsx("button",{className:"btn btn-sm btn-primary",onClick:()=>r(null),children:"Tutup"})]})]})})]})}function fv(){const{inquiries:e,markInquiryRead:t}=ue();return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"admin-head",children:s.jsx("h1",{className:"serif",children:"Pesan / Inquiries"})}),e.length===0?s.jsx("div",{className:"admin-card",children:s.jsx("p",{style:{color:"var(--muted)"},children:"Belum ada pesan. Kiriman formulir Contact Us akan muncul di sini."})}):e.map(n=>s.jsxs("div",{className:"admin-card",style:n.read?{}:{borderLeft:"4px solid var(--orange)"},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",gap:10},children:[s.jsxs("div",{children:[s.jsx("b",{children:n.name})," ",s.jsxs("span",{style:{color:"var(--muted)",fontSize:"0.86rem"},children:["· ",n.email," ",n.phone&&s.jsxs(s.Fragment,{children:["· ",n.phone]})," · ",n.department]})]}),s.jsx("span",{style:{color:"var(--muted)",fontSize:"0.82rem"},children:new Date(n.date).toLocaleString("id-ID",{dateStyle:"medium",timeStyle:"short"})})]}),s.jsx("p",{style:{margin:"12px 0",color:"var(--charcoal)"},children:n.message}),!n.read&&s.jsx("button",{className:"btn btn-sm btn-outline",onClick:()=>t(n.id),children:"✓ Tandai Dibaca"})]},n.id))]})}function hv(){const{settings:e,setSettings:t}=ue(),[n,r]=x.useState(e),[l,i]=x.useState(!1),a=o=>c=>r({...n,[o]:c.target.value}),u=o=>{o.preventDefault(),t(n),i(!0),setTimeout(()=>i(!1),3e3)};return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"admin-head",children:s.jsx("h1",{className:"serif",children:"Pengaturan"})}),s.jsxs("div",{className:"admin-card",style:{maxWidth:640},children:[s.jsx("h3",{className:"serif",children:"Informasi Toko"}),s.jsxs("form",{onSubmit:u,children:[s.jsxs("div",{className:"form-row",children:[s.jsxs("div",{className:"field",children:[s.jsx("label",{children:"Nama Brand"}),s.jsx("input",{value:n.storeName,onChange:a("storeName")})]}),s.jsxs("div",{className:"field",children:[s.jsx("label",{children:"Badan Hukum"}),s.jsx("input",{value:n.legalName,onChange:a("legalName")})]})]}),s.jsxs("div",{className:"form-row",children:[s.jsxs("div",{className:"field",children:[s.jsx("label",{children:"Email"}),s.jsx("input",{type:"email",value:n.email,onChange:a("email")})]}),s.jsxs("div",{className:"field",children:[s.jsx("label",{children:"Telepon"}),s.jsx("input",{value:n.phone,onChange:a("phone")})]})]}),s.jsxs("div",{className:"field",children:[s.jsx("label",{children:"Alamat"}),s.jsx("textarea",{value:n.address,onChange:a("address")})]}),s.jsx("button",{className:"btn btn-primary btn-sm",type:"submit",children:"Simpan Pengaturan"})]})]}),l&&s.jsx("div",{className:"toast",children:"✓ Pengaturan berhasil disimpan"})]})}function pv(){const{pathname:e}=Ot(),t=x.useRef(null),n=e.startsWith("/admin");return x.useEffect(()=>{if(n)return;const r=new xm({duration:1.25,easing:a=>Math.min(1,1.001-Math.pow(2,-10*a)),smoothWheel:!0,wheelMultiplier:.95,touchMultiplier:1.6});t.current=r,window.__lenis=r;let l;const i=a=>{r.raf(a),l=requestAnimationFrame(i)};return l=requestAnimationFrame(i),()=>{cancelAnimationFrame(l),r.destroy(),t.current=null,window.__lenis=null}},[n]),x.useEffect(()=>{t.current?t.current.scrollTo(0,{immediate:!0}):window.scrollTo(0,0)},[e]),null}function ft({children:e}){return s.jsxs(s.Fragment,{children:[s.jsx(Vm,{}),s.jsx(Qm,{}),e,s.jsx(Km,{})]})}function mv(){return s.jsxs(s.Fragment,{children:[s.jsx(pv,{}),s.jsxs(Gp,{children:[s.jsx(fe,{path:"/",element:s.jsx(ft,{children:s.jsx(Xm,{})})}),s.jsx(fe,{path:"/tentang-kami",element:s.jsx(ft,{children:s.jsx(bm,{})})}),s.jsx(fe,{path:"/produk",element:s.jsx(ft,{children:s.jsx(Gm,{})})}),s.jsx(fe,{path:"/produk/:id",element:s.jsx(ft,{children:s.jsx(Jm,{})})}),s.jsx(fe,{path:"/gallery",element:s.jsx(ft,{children:s.jsx(ev,{})})}),s.jsx(fe,{path:"/contact",element:s.jsx(ft,{children:s.jsx(tv,{})})}),s.jsx(fe,{path:"/checkout",element:s.jsx(ft,{children:s.jsx(nv,{})})}),s.jsx(fe,{path:"/pesanan-sukses/:orderId",element:s.jsx(ft,{children:s.jsx(rv,{})})}),s.jsx(fe,{path:"/admin/login",element:s.jsx(lv,{})}),s.jsxs(fe,{path:"/admin",element:s.jsx(iv,{}),children:[s.jsx(fe,{index:!0,element:s.jsx(av,{})}),s.jsx(fe,{path:"produk",element:s.jsx(uv,{})}),s.jsx(fe,{path:"pesanan",element:s.jsx(dv,{})}),s.jsx(fe,{path:"pesan",element:s.jsx(fv,{})}),s.jsx(fe,{path:"pengaturan",element:s.jsx(hv,{})})]})]})]})}Pi.createRoot(document.getElementById("root")).render(s.jsx(iu.StrictMode,{children:s.jsx(im,{children:s.jsx(Cm,{children:s.jsx(mv,{})})})}));
