From 1d91ab718f202cab1fd37d923bccf9d372c2c837 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 1 Aug 2024 14:49:37 +0900 Subject: [PATCH] Updates --- assets/index-Ac3wkkJr.js | 163 ++++++++++++++++++++++++++++++++++++++ assets/index-JTyxU3IR.css | 1 + index.html | 14 ++++ 3 files changed, 178 insertions(+) create mode 100644 assets/index-Ac3wkkJr.js create mode 100644 assets/index-JTyxU3IR.css create mode 100644 index.html diff --git a/assets/index-Ac3wkkJr.js b/assets/index-Ac3wkkJr.js new file mode 100644 index 00000000..250bca5a --- /dev/null +++ b/assets/index-Ac3wkkJr.js @@ -0,0 +1,163 @@ +var wp=e=>{throw TypeError(e)};var jx=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var rc=(e,t,n)=>t.has(e)||wp("Cannot "+n);var k=(e,t,n)=>(rc(e,t,"read from private field"),n?n.call(e):t.get(e)),ee=(e,t,n)=>t.has(e)?wp("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),W=(e,t,n,r)=>(rc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),de=(e,t,n)=>(rc(e,t,"access private method"),n);var Oa=(e,t,n,r)=>({set _(i){W(e,t,i,n)},get _(){return k(e,t,r)}});var dO=jx((mO,bl)=>{function Wv(e,t){for(var n=0;nr[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function $v(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hv={exports:{}},hu={},Vv={exports:{}},ue={};/** + * @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 ua=Symbol.for("react.element"),Lx=Symbol.for("react.portal"),Ax=Symbol.for("react.fragment"),Ix=Symbol.for("react.strict_mode"),Fx=Symbol.for("react.profiler"),Ux=Symbol.for("react.provider"),zx=Symbol.for("react.context"),Yx=Symbol.for("react.forward_ref"),Wx=Symbol.for("react.suspense"),$x=Symbol.for("react.memo"),Hx=Symbol.for("react.lazy"),xp=Symbol.iterator;function Vx(e){return e===null||typeof e!="object"?null:(e=xp&&e[xp]||e["@@iterator"],typeof e=="function"?e:null)}var Bv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qv=Object.assign,Gv={};function Uo(e,t,n){this.props=e,this.context=t,this.refs=Gv,this.updater=n||Bv}Uo.prototype.isReactComponent={};Uo.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")};Uo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Kv(){}Kv.prototype=Uo.prototype;function mf(e,t,n){this.props=e,this.context=t,this.refs=Gv,this.updater=n||Bv}var vf=mf.prototype=new Kv;vf.constructor=mf;Qv(vf,Uo.prototype);vf.isPureReactComponent=!0;var Sp=Array.isArray,Zv=Object.prototype.hasOwnProperty,yf={current:null},qv={key:!0,ref:!0,__self:!0,__source:!0};function Xv(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Zv.call(t,r)&&!qv.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,te=A[J];if(0>>1;Ji(He,B))Uei(Gt,He)?(A[J]=Gt,A[Ue]=B,J=Ue):(A[J]=He,A[we]=B,J=we);else if(Uei(Gt,B))A[J]=Gt,A[Ue]=B,J=Ue;else break e}}return $}function i(A,$){var B=A.sortIndex-$.sortIndex;return B!==0?B:A.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],d=1,c=null,f=3,w=!1,x=!1,y=!1,_=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(A){for(var $=n(u);$!==null;){if($.callback===null)r(u);else if($.startTime<=A)r(u),$.sortIndex=$.expirationTime,t(l,$);else break;$=n(u)}}function E(A){if(y=!1,g(A),!x)if(n(l)!==null)x=!0,rt(D);else{var $=n(u);$!==null&&ae(E,$.startTime-A)}}function D(A,$){x=!1,y&&(y=!1,v(R),R=-1),w=!0;var B=f;try{for(g($),c=n(l);c!==null&&(!(c.expirationTime>$)||A&&!X());){var J=c.callback;if(typeof J=="function"){c.callback=null,f=c.priorityLevel;var te=J(c.expirationTime<=$);$=e.unstable_now(),typeof te=="function"?c.callback=te:c===n(l)&&r(l),g($)}else r(l);c=n(l)}if(c!==null)var Fe=!0;else{var we=n(u);we!==null&&ae(E,we.startTime-$),Fe=!1}return Fe}finally{c=null,f=B,w=!1}}var S=!1,M=null,R=-1,T=5,L=-1;function X(){return!(e.unstable_now()-LA||125J?(A.sortIndex=B,t(u,A),n(l)===null&&A===n(u)&&(y?(v(R),R=-1):y=!0,ae(E,B-J))):(A.sortIndex=te,t(l,A),x||w||(x=!0,rt(D))),A},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(A){var $=f;return function(){var B=f;f=$;try{return A.apply(this,arguments)}finally{f=B}}}})(iy);ry.exports=iy;var nS=ry.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 rS=p,$t=nS;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qc=Object.prototype.hasOwnProperty,iS=/^[: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]*$/,Cp={},Ep={};function oS(e){return Qc.call(Ep,e)?!0:Qc.call(Cp,e)?!1:iS.test(e)?Ep[e]=!0:(Cp[e]=!0,!1)}function sS(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 aS(e,t,n,r){if(t===null||typeof t>"u"||sS(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 Nt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var dt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){dt[e]=new Nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];dt[t]=new Nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){dt[e]=new Nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){dt[e]=new Nt(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){dt[e]=new Nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){dt[e]=new Nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){dt[e]=new Nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){dt[e]=new Nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){dt[e]=new Nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var wf=/[\-:]([a-z])/g;function xf(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(wf,xf);dt[t]=new Nt(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(wf,xf);dt[t]=new Nt(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(wf,xf);dt[t]=new Nt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){dt[e]=new Nt(e,1,!1,e.toLowerCase(),null,!1,!1)});dt.xlinkHref=new Nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){dt[e]=new Nt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Sf(e,t,n,r){var i=dt.hasOwnProperty(t)?dt[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==o[a]){var l=` +`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{sc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?fs(e):""}function lS(e){switch(e.tag){case 5:return fs(e.type);case 16:return fs("Lazy");case 13:return fs("Suspense");case 19:return fs("SuspenseList");case 0:case 2:case 15:return e=ac(e.type,!1),e;case 11:return e=ac(e.type.render,!1),e;case 1:return e=ac(e.type,!0),e;default:return""}}function qc(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 Hi:return"Fragment";case $i:return"Portal";case Gc:return"Profiler";case _f:return"StrictMode";case Kc:return"Suspense";case Zc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ay:return(e.displayName||"Context")+".Consumer";case sy:return(e._context.displayName||"Context")+".Provider";case Cf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ef:return t=e.displayName||null,t!==null?t:qc(e.type)||"Memo";case xr:t=e._payload,e=e._init;try{return qc(e(t))}catch{}}return null}function uS(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 qc(t);case 8:return t===_f?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Vr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cS(e){var t=uy(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Aa(e){e._valueTracker||(e._valueTracker=cS(e))}function cy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=uy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Tl(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 Xc(e,t){var n=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Np(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Vr(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 dy(e,t){t=t.checked,t!=null&&Sf(e,"checked",t,!1)}function Jc(e,t){dy(e,t);var n=Vr(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")?ed(e,t.type,n):t.hasOwnProperty("defaultValue")&&ed(e,t.type,Vr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Rp(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 ed(e,t,n){(t!=="number"||Tl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var hs=Array.isArray;function ro(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ia.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gs={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},dS=["Webkit","ms","Moz","O"];Object.keys(gs).forEach(function(e){dS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gs[t]=gs[e]})});function my(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||gs.hasOwnProperty(e)&&gs[e]?(""+t).trim():t+"px"}function vy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=my(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var fS=$e({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 rd(e,t){if(t){if(fS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function id(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 od=null;function kf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sd=null,io=null,oo=null;function Mp(e){if(e=fa(e)){if(typeof sd!="function")throw Error(O(280));var t=e.stateNode;t&&(t=gu(t),sd(e.stateNode,e.type,t))}}function yy(e){io?oo?oo.push(e):oo=[e]:io=e}function gy(){if(io){var e=io,t=oo;if(oo=io=null,Mp(e),t)for(e=0;e>>=0,e===0?32:31-(CS(e)/ES|0)|0}var Fa=64,Ua=4194304;function ps(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 Al(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=ps(a):(o&=s,o!==0&&(r=ps(o)))}else s=n&~i,s!==0?r=ps(s):o!==0&&(r=ps(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ca(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-mn(t),e[t]=n}function PS(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=xs),Up=" ",zp=!1;function Fy(e,t){switch(e){case"keyup":return n_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vi=!1;function i_(e,t){switch(e){case"compositionend":return Uy(t);case"keypress":return t.which!==32?null:(zp=!0,Up);case"textInput":return e=t.data,e===Up&&zp?null:e;default:return null}}function o_(e,t){if(Vi)return e==="compositionend"||!Of&&Fy(e,t)?(e=Ay(),pl=Mf=br=null,Vi=!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)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=Hp(n)}}function $y(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$y(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hy(){for(var e=window,t=Tl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Tl(e.document)}return t}function jf(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 p_(e){var t=Hy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$y(n.ownerDocument.documentElement,n)){if(r!==null&&jf(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Vp(n,o);var s=Vp(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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=document.documentMode,Bi=null,fd=null,_s=null,hd=!1;function Bp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hd||Bi==null||Bi!==Tl(r)||(r=Bi,"selectionStart"in r&&jf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),_s&&Is(_s,r)||(_s=r,r=Ul(fd,"onSelect"),0Ki||(e.current=wd[Ki],wd[Ki]=null,Ki--)}function De(e,t){Ki++,wd[Ki]=e.current,e.current=t}var Br={},yt=Gr(Br),bt=Gr(!1),Si=Br;function Mo(e,t){var n=e.type.contextTypes;if(!n)return Br;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Tt(e){return e=e.childContextTypes,e!=null}function Yl(){Te(bt),Te(yt)}function Jp(e,t,n){if(yt.current!==Br)throw Error(O(168));De(yt,t),De(bt,n)}function Jy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(O(108,uS(e)||"Unknown",i));return $e({},n,r)}function Wl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Br,Si=yt.current,De(yt,e),De(bt,bt.current),!0}function em(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=Jy(e,t,Si),r.__reactInternalMemoizedMergedChildContext=e,Te(bt),Te(yt),De(yt,e)):Te(bt),De(bt,n)}var Bn=null,wu=!1,Sc=!1;function eg(e){Bn===null?Bn=[e]:Bn.push(e)}function N_(e){wu=!0,eg(e)}function Kr(){if(!Sc&&Bn!==null){Sc=!0;var e=0,t=Se;try{var n=Bn;for(Se=1;e>=s,i-=s,Qn=1<<32-mn(t)+i|n<R?(T=M,M=null):T=M.sibling;var L=f(v,M,g[R],E);if(L===null){M===null&&(M=T);break}e&&M&&L.alternate===null&&t(v,M),h=o(L,h,R),S===null?D=L:S.sibling=L,S=L,M=T}if(R===g.length)return n(v,M),Ie&&Jr(v,R),D;if(M===null){for(;RR?(T=M,M=null):T=M.sibling;var X=f(v,M,L.value,E);if(X===null){M===null&&(M=T);break}e&&M&&X.alternate===null&&t(v,M),h=o(X,h,R),S===null?D=X:S.sibling=X,S=X,M=T}if(L.done)return n(v,M),Ie&&Jr(v,R),D;if(M===null){for(;!L.done;R++,L=g.next())L=c(v,L.value,E),L!==null&&(h=o(L,h,R),S===null?D=L:S.sibling=L,S=L);return Ie&&Jr(v,R),D}for(M=r(v,M);!L.done;R++,L=g.next())L=w(M,v,R,L.value,E),L!==null&&(e&&L.alternate!==null&&M.delete(L.key===null?R:L.key),h=o(L,h,R),S===null?D=L:S.sibling=L,S=L);return e&&M.forEach(function(H){return t(v,H)}),Ie&&Jr(v,R),D}function _(v,h,g,E){if(typeof g=="object"&&g!==null&&g.type===Hi&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case La:e:{for(var D=g.key,S=h;S!==null;){if(S.key===D){if(D=g.type,D===Hi){if(S.tag===7){n(v,S.sibling),h=i(S,g.props.children),h.return=v,v=h;break e}}else if(S.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===xr&&rm(D)===S.type){n(v,S.sibling),h=i(S,g.props),h.ref=ts(v,S,g),h.return=v,v=h;break e}n(v,S);break}else t(v,S);S=S.sibling}g.type===Hi?(h=gi(g.props.children,v.mode,E,g.key),h.return=v,v=h):(E=_l(g.type,g.key,g.props,null,v.mode,E),E.ref=ts(v,h,g),E.return=v,v=E)}return s(v);case $i:e:{for(S=g.key;h!==null;){if(h.key===S)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(v,h.sibling),h=i(h,g.children||[]),h.return=v,v=h;break e}else{n(v,h);break}else t(v,h);h=h.sibling}h=Dc(g,v.mode,E),h.return=v,v=h}return s(v);case xr:return S=g._init,_(v,h,S(g._payload),E)}if(hs(g))return x(v,h,g,E);if(Zo(g))return y(v,h,g,E);Ba(v,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(v,h.sibling),h=i(h,g),h.return=v,v=h):(n(v,h),h=Pc(g,v.mode,E),h.return=v,v=h),s(v)):n(v,h)}return _}var To=ig(!0),og=ig(!1),Vl=Gr(null),Bl=null,Xi=null,Ff=null;function Uf(){Ff=Xi=Bl=null}function zf(e){var t=Vl.current;Te(Vl),e._currentValue=t}function _d(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 ao(e,t){Bl=e,Ff=Xi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Mt=!0),e.firstContext=null)}function nn(e){var t=e._currentValue;if(Ff!==e)if(e={context:e,memoizedValue:t,next:null},Xi===null){if(Bl===null)throw Error(O(308));Xi=e,Bl.dependencies={lanes:0,firstContext:e}}else Xi=Xi.next=e;return t}var ri=null;function Yf(e){ri===null?ri=[e]:ri.push(e)}function sg(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Yf(t)):(n.next=i.next,i.next=n),t.interleaved=n,rr(e,r)}function rr(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 Sr=!1;function Wf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ag(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 Xn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ur(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,pe&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,rr(e,n)}return i=r.interleaved,i===null?(t.next=t,Yf(r)):(t.next=i.next,i.next=t),r.interleaved=t,rr(e,n)}function vl(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,Rf(e,n)}}function im(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,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 Ql(e,t,n,r){var i=e.updateQueue;Sr=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(o!==null){var c=i.baseState;s=0,d=u=l=null,a=o;do{var f=a.lane,w=a.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:w,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,y=a;switch(f=t,w=n,y.tag){case 1:if(x=y.payload,typeof x=="function"){c=x.call(w,c,f);break e}c=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=y.payload,f=typeof x=="function"?x.call(w,c,f):x,f==null)break e;c=$e({},c,f);break e;case 2:Sr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else w={eventTime:w,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=w,l=c):d=d.next=w,s|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(d===null&&(l=c),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Ei|=s,e.lanes=s,e.memoizedState=c}}function om(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Cc.transition;Cc.transition={};try{e(!1),t()}finally{Se=n,Cc.transition=r}}function Eg(){return rn().memoizedState}function M_(e,t,n){var r=Yr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},kg(e))Ng(t,n);else if(n=sg(e,t,n,r),n!==null){var i=Et();vn(n,e,r,i),Rg(n,t,r)}}function b_(e,t,n){var r=Yr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(kg(e))Ng(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,gn(a,s)){var l=t.interleaved;l===null?(i.next=i,Yf(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=sg(e,t,i,r),n!==null&&(i=Et(),vn(n,e,r,i),Rg(n,t,r))}}function kg(e){var t=e.alternate;return e===We||t!==null&&t===We}function Ng(e,t){Cs=Kl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rf(e,n)}}var Zl={readContext:nn,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useInsertionEffect:ft,useLayoutEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useMutableSource:ft,useSyncExternalStore:ft,useId:ft,unstable_isNewReconciler:!1},T_={readContext:nn,useCallback:function(e,t){return kn().memoizedState=[e,t===void 0?null:t],e},useContext:nn,useEffect:am,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,gl(4194308,4,wg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gl(4194308,4,e,t)},useInsertionEffect:function(e,t){return gl(4,2,e,t)},useMemo:function(e,t){var n=kn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=kn();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=M_.bind(null,We,e),[r.memoizedState,e]},useRef:function(e){var t=kn();return e={current:e},t.memoizedState=e},useState:sm,useDebugValue:Zf,useDeferredValue:function(e){return kn().memoizedState=e},useTransition:function(){var e=sm(!1),t=e[0];return e=D_.bind(null,e[1]),kn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=We,i=kn();if(Ie){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),ot===null)throw Error(O(349));Ci&30||dg(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,am(hg.bind(null,r,o,e),[e]),r.flags|=2048,Vs(9,fg.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=kn(),t=ot.identifierPrefix;if(Ie){var n=Gn,r=Qn;n=(r&~(1<<32-mn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=$s++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Mn]=t,e[zs]=r,Ig(e,t,!1,!1),t.stateNode=e;e:{switch(s=id(n,r),n){case"dialog":be("cancel",e),be("close",e),i=r;break;case"iframe":case"object":case"embed":be("load",e),i=r;break;case"video":case"audio":for(i=0;iLo&&(t.flags|=128,r=!0,ns(o,!1),t.lanes=4194304)}else{if(!r)if(e=Gl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ns(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Ie)return ht(t),null}else 2*Ke()-o.renderingStartTime>Lo&&n!==1073741824&&(t.flags|=128,r=!0,ns(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ke(),t.sibling=null,n=Ye.current,De(Ye,r?n&1|2:n&1),t):(ht(t),null);case 22:case 23:return nh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?It&1073741824&&(ht(t),t.subtreeFlags&6&&(t.flags|=8192)):ht(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function z_(e,t){switch(Af(t),t.tag){case 1:return Tt(t.type)&&Yl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Oo(),Te(bt),Te(yt),Vf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Hf(t),null;case 13:if(Te(Ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));bo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Te(Ye),null;case 4:return Oo(),null;case 10:return zf(t.type._context),null;case 22:case 23:return nh(),null;case 24:return null;default:return null}}var Ga=!1,mt=!1,Y_=typeof WeakSet=="function"?WeakSet:Set,Y=null;function Ji(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Qe(e,t,r)}else n.current=null}function bd(e,t,n){try{n()}catch(r){Qe(e,t,r)}}var gm=!1;function W_(e,t){if(pd=Il,e=Hy(),jf(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,d=0,c=e,f=null;t:for(;;){for(var w;c!==n||i!==0&&c.nodeType!==3||(a=s+i),c!==o||r!==0&&c.nodeType!==3||(l=s+r),c.nodeType===3&&(s+=c.nodeValue.length),(w=c.firstChild)!==null;)f=c,c=w;for(;;){if(c===e)break t;if(f===n&&++u===i&&(a=s),f===o&&++d===r&&(l=s),(w=c.nextSibling)!==null)break;c=f,f=c.parentNode}c=w}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(md={focusedElem:e,selectionRange:n},Il=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,_=x.memoizedState,v=t.stateNode,h=v.getSnapshotBeforeUpdate(t.elementType===t.type?y:ln(t.type,y),_);v.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(E){Qe(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return x=gm,gm=!1,x}function Es(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&bd(t,n,o)}i=i.next}while(i!==r)}}function _u(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 Td(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 zg(e){var t=e.alternate;t!==null&&(e.alternate=null,zg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mn],delete t[zs],delete t[gd],delete t[E_],delete t[k_])),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 Yg(e){return e.tag===5||e.tag===3||e.tag===4}function wm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yg(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 Od(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=zl));else if(r!==4&&(e=e.child,e!==null))for(Od(e,t,n),e=e.sibling;e!==null;)Od(e,t,n),e=e.sibling}function jd(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(jd(e,t,n),e=e.sibling;e!==null;)jd(e,t,n),e=e.sibling}var at=null,cn=!1;function pr(e,t,n){for(n=n.child;n!==null;)Wg(e,t,n),n=n.sibling}function Wg(e,t,n){if(On&&typeof On.onCommitFiberUnmount=="function")try{On.onCommitFiberUnmount(pu,n)}catch{}switch(n.tag){case 5:mt||Ji(n,t);case 6:var r=at,i=cn;at=null,pr(e,t,n),at=r,cn=i,at!==null&&(cn?(e=at,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):at.removeChild(n.stateNode));break;case 18:at!==null&&(cn?(e=at,n=n.stateNode,e.nodeType===8?xc(e.parentNode,n):e.nodeType===1&&xc(e,n),Ls(e)):xc(at,n.stateNode));break;case 4:r=at,i=cn,at=n.stateNode.containerInfo,cn=!0,pr(e,t,n),at=r,cn=i;break;case 0:case 11:case 14:case 15:if(!mt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&bd(n,t,s),i=i.next}while(i!==r)}pr(e,t,n);break;case 1:if(!mt&&(Ji(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Qe(n,t,a)}pr(e,t,n);break;case 21:pr(e,t,n);break;case 22:n.mode&1?(mt=(r=mt)||n.memoizedState!==null,pr(e,t,n),mt=r):pr(e,t,n);break;default:pr(e,t,n)}}function xm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Y_),t.forEach(function(r){var i=q_.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function an(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*H_(r/1960))-r,10e?16:e,Tr===null)var r=!1;else{if(e=Tr,Tr=null,Jl=0,pe&6)throw Error(O(331));var i=pe;for(pe|=4,Y=e.current;Y!==null;){var o=Y,s=o.child;if(Y.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lKe()-eh?yi(e,0):Jf|=n),Ot(e,t)}function Zg(e,t){t===0&&(e.mode&1?(t=Ua,Ua<<=1,!(Ua&130023424)&&(Ua=4194304)):t=1);var n=Et();e=rr(e,t),e!==null&&(ca(e,t,n),Ot(e,n))}function Z_(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Zg(e,n)}function q_(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),Zg(e,n)}var qg;qg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||bt.current)Mt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Mt=!1,F_(e,t,n);Mt=!!(e.flags&131072)}else Mt=!1,Ie&&t.flags&1048576&&tg(t,Hl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;wl(e,t),e=t.pendingProps;var i=Mo(t,yt.current);ao(t,n),i=Qf(null,t,r,e,i,n);var o=Gf();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Tt(r)?(o=!0,Wl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Wf(t),i.updater=Su,t.stateNode=i,i._reactInternals=t,Ed(t,r,e,n),t=Rd(null,t,r,!0,o,n)):(t.tag=0,Ie&&o&&Lf(t),_t(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(wl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=J_(r),e=ln(r,e),i){case 0:t=Nd(null,t,r,e,n);break e;case 1:t=mm(null,t,r,e,n);break e;case 11:t=hm(null,t,r,e,n);break e;case 14:t=pm(null,t,r,ln(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ln(r,i),Nd(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ln(r,i),mm(e,t,r,i,n);case 3:e:{if(jg(t),e===null)throw Error(O(387));r=t.pendingProps,o=t.memoizedState,i=o.element,ag(e,t),Ql(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=jo(Error(O(423)),t),t=vm(e,t,r,n,i);break e}else if(r!==i){i=jo(Error(O(424)),t),t=vm(e,t,r,n,i);break e}else for(Ut=Fr(t.stateNode.containerInfo.firstChild),Yt=t,Ie=!0,fn=null,n=og(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(bo(),r===i){t=ir(e,t,n);break e}_t(e,t,r,n)}t=t.child}return t;case 5:return lg(t),e===null&&Sd(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,vd(r,i)?s=null:o!==null&&vd(r,o)&&(t.flags|=32),Og(e,t),_t(e,t,s,n),t.child;case 6:return e===null&&Sd(t),null;case 13:return Lg(e,t,n);case 4:return $f(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=To(t,null,r,n):_t(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ln(r,i),hm(e,t,r,i,n);case 7:return _t(e,t,t.pendingProps,n),t.child;case 8:return _t(e,t,t.pendingProps.children,n),t.child;case 12:return _t(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,De(Vl,r._currentValue),r._currentValue=s,o!==null)if(gn(o.value,s)){if(o.children===i.children&&!bt.current){t=ir(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Xn(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),_d(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(O(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),_d(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}_t(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ao(t,n),i=nn(i),r=r(i),t.flags|=1,_t(e,t,r,n),t.child;case 14:return r=t.type,i=ln(r,t.pendingProps),i=ln(r.type,i),pm(e,t,r,i,n);case 15:return bg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ln(r,i),wl(e,t),t.tag=1,Tt(r)?(e=!0,Wl(t)):e=!1,ao(t,n),Pg(t,r,i),Ed(t,r,i,n),Rd(null,t,r,!0,e,n);case 19:return Ag(e,t,n);case 22:return Tg(e,t,n)}throw Error(O(156,t.tag))};function Xg(e,t){return ky(e,t)}function X_(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 en(e,t,n,r){return new X_(e,t,n,r)}function ih(e){return e=e.prototype,!(!e||!e.isReactComponent)}function J_(e){if(typeof e=="function")return ih(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Cf)return 11;if(e===Ef)return 14}return 2}function Wr(e,t){var n=e.alternate;return n===null?(n=en(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 _l(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")ih(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Hi:return gi(n.children,i,o,t);case _f:s=8,i|=8;break;case Gc:return e=en(12,n,t,i|2),e.elementType=Gc,e.lanes=o,e;case Kc:return e=en(13,n,t,i),e.elementType=Kc,e.lanes=o,e;case Zc:return e=en(19,n,t,i),e.elementType=Zc,e.lanes=o,e;case ly:return Eu(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case sy:s=10;break e;case ay:s=9;break e;case Cf:s=11;break e;case Ef:s=14;break e;case xr:s=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=en(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function gi(e,t,n,r){return e=en(7,e,r,t),e.lanes=n,e}function Eu(e,t,n,r){return e=en(22,e,r,t),e.elementType=ly,e.lanes=n,e.stateNode={isHidden:!1},e}function Pc(e,t,n){return e=en(6,e,null,t),e.lanes=n,e}function Dc(e,t,n){return t=en(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function eC(e,t,n,r,i){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=uc(0),this.expirationTimes=uc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uc(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function oh(e,t,n,r,i,o,s,a,l){return e=new eC(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=en(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wf(o),e}function tC(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n0)}catch(e){console.error(e)}}n0(),ny.exports=Vt;var pa=ny.exports;const r0=$v(pa),sC=Wv({__proto__:null,default:r0},[pa]);var Pm=pa;Bc.createRoot=Pm.createRoot,Bc.hydrateRoot=Pm.hydrateRoot;/** + * @remix-run/router v1.18.0 + * + * 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 ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Ao(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function lC(){return Math.random().toString(36).substr(2,8)}function Mm(e,t){return{usr:e.state,key:e.key,idx:t}}function Qs(e,t,n,r){return n===void 0&&(n=null),ze({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Zr(t):t,{state:n,key:t&&t.key||r||lC()})}function ma(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 Zr(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 uC(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=Xe.Pop,l=null,u=d();u==null&&(u=0,s.replaceState(ze({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function c(){a=Xe.Pop;let _=d(),v=_==null?null:_-u;u=_,l&&l({action:a,location:y.location,delta:v})}function f(_,v){a=Xe.Push;let h=Qs(y.location,_,v);u=d()+1;let g=Mm(h,u),E=y.createHref(h);try{s.pushState(g,"",E)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;i.location.assign(E)}o&&l&&l({action:a,location:y.location,delta:1})}function w(_,v){a=Xe.Replace;let h=Qs(y.location,_,v);u=d();let g=Mm(h,u),E=y.createHref(h);s.replaceState(g,"",E),o&&l&&l({action:a,location:y.location,delta:0})}function x(_){let v=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof _=="string"?_:ma(_);return h=h.replace(/ $/,"%20"),le(v,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,v)}let y={get action(){return a},get location(){return e(i,s)},listen(_){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Dm,c),l=_,()=>{i.removeEventListener(Dm,c),l=null}},createHref(_){return t(i,_)},createURL:x,encodeLocation(_){let v=x(_);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:w,go(_){return s.go(_)}};return y}var Pe;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Pe||(Pe={}));const cC=new Set(["lazy","caseSensitive","path","id","index","children"]);function dC(e){return e.index===!0}function Gs(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let s=[...n,String(o)],a=typeof i.id=="string"?i.id:s.join("-");if(le(i.index!==!0||!i.children,"Cannot specify children on an index route"),le(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),dC(i)){let l=ze({},i,t(i),{id:a});return r[a]=l,l}else{let l=ze({},i,t(i),{id:a,children:void 0});return r[a]=l,i.children&&(l.children=Gs(i.children,t,s,r)),l}})}function ti(e,t,n){return n===void 0&&(n="/"),Cl(e,t,n,!1)}function Cl(e,t,n,r){let i=typeof t=="string"?Zr(t):t,o=va(i.pathname||"/",n);if(o==null)return null;let s=o0(e);fC(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(le(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=$r([r,l.relativePath]),d=n.concat(l);o.children&&o.children.length>0&&(le(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),o0(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:wC(u,o.index),routesMeta:d})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of s0(o.path))i(o,s,l)}),t}function s0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=s0(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function fC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:xC(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const hC=/^:[\w-]+$/,pC=3,mC=2,vC=1,yC=10,gC=-2,bm=e=>e==="*";function wC(e,t){let n=e.split("/"),r=n.length;return n.some(bm)&&(r+=gC),t&&(r+=mC),n.filter(i=>!bm(i)).reduce((i,o)=>i+(hC.test(o)?pC:o===""?vC:yC),r)}function xC(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function SC(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a{let{paramName:f,isOptional:w}=d;if(f==="*"){let y=a[c]||"";s=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const x=a[c];return w&&!x?u[f]=void 0:u[f]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function _C(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ao(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function CC(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ao(!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 va(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)||"/"}function EC(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Zr(e):e;return{pathname:n?n.startsWith("/")?n:kC(n,t):t,search:RC(r),hash:PC(i)}}function kC(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Mc(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 and the router will parse it for you.'}function a0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function l0(e,t){let n=a0(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function u0(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Zr(e):(i=ze({},e),le(!i.pathname||!i.pathname.includes("?"),Mc("?","pathname","search",i)),le(!i.pathname||!i.pathname.includes("#"),Mc("#","pathname","hash",i)),le(!i.search||!i.search.includes("#"),Mc("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let c=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),c-=1;i.pathname=f.join("/")}a=c>=0?t[c]:"/"}let l=EC(i,a),u=s&&s!=="/"&&s.endsWith("/"),d=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const $r=e=>e.join("/").replace(/\/\/+/g,"/"),NC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),RC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,PC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class uh{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Du(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const c0=["post","put","patch","delete"],DC=new Set(c0),MC=["get",...c0],bC=new Set(MC),TC=new Set([301,302,303,307,308]),OC=new Set([307,308]),bc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},jC={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},is={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ch=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,LC=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),d0="remix-router-transitions";function AC(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;le(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let C=e.detectErrorBoundary;i=N=>({hasErrorBoundary:C(N)})}else i=LC;let o={},s=Gs(e.routes,i,void 0,o),a,l=e.basename||"/",u=e.unstable_dataStrategy||YC,d=e.unstable_patchRoutesOnMiss,c=ze({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,w=new Set,x=null,y=null,_=null,v=e.hydrationData!=null,h=ti(s,e.history.location,l),g=null;if(h==null&&!d){let C=St(404,{pathname:e.history.location.pathname}),{matches:N,route:P}=Wm(s);h=N,g={[P.id]:C}}h&&d&&!e.hydrationData&&nc(h,s,e.history.location.pathname).active&&(h=null);let E;if(!h)E=!1,h=[];else if(h.some(C=>C.route.lazy))E=!1;else if(!h.some(C=>C.route.loader))E=!0;else if(c.v7_partialHydration){let C=e.hydrationData?e.hydrationData.loaderData:null,N=e.hydrationData?e.hydrationData.errors:null,P=b=>b.route.loader?typeof b.route.loader=="function"&&b.route.loader.hydrate===!0?!1:C&&C[b.route.id]!==void 0||N&&N[b.route.id]!==void 0:!0;if(N){let b=h.findIndex(U=>N[U.route.id]!==void 0);E=h.slice(0,b+1).every(P)}else E=h.every(P)}else E=e.hydrationData!=null;let D,S={historyAction:e.history.action,location:e.history.location,matches:h,initialized:E,navigation:bc,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||g,fetchers:new Map,blockers:new Map},M=Xe.Pop,R=!1,T,L=!1,X=new Map,H=null,Ce=!1,oe=!1,Ze=[],rt=[],ae=new Map,A=0,$=-1,B=new Map,J=new Set,te=new Map,Fe=new Map,we=new Set,He=new Map,Ue=new Map,Gt=new Map,Bo=!1;function yx(){if(f=e.history.listen(C=>{let{action:N,location:P,delta:b}=C;if(Bo){Bo=!1;return}Ao(Ue.size===0||b!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let U=mp({currentLocation:S.location,nextLocation:P,historyAction:N});if(U&&b!=null){Bo=!0,e.history.go(b*-1),Ra(U,{state:"blocked",location:P,proceed(){Ra(U,{state:"proceeding",proceed:void 0,reset:void 0,location:P}),e.history.go(b)},reset(){let V=new Map(S.blockers);V.set(U,is),gt({blockers:V})}});return}return qr(N,P)}),n){eE(t,X);let C=()=>tE(t,X);t.addEventListener("pagehide",C),H=()=>t.removeEventListener("pagehide",C)}return S.initialized||qr(Xe.Pop,S.location,{initialHydration:!0}),D}function gx(){f&&f(),H&&H(),w.clear(),T&&T.abort(),S.fetchers.forEach((C,N)=>Na(N)),S.blockers.forEach((C,N)=>pp(N))}function wx(C){return w.add(C),()=>w.delete(C)}function gt(C,N){N===void 0&&(N={}),S=ze({},S,C);let P=[],b=[];c.v7_fetcherPersist&&S.fetchers.forEach((U,V)=>{U.state==="idle"&&(we.has(V)?b.push(V):P.push(V))}),[...w].forEach(U=>U(S,{deletedFetchers:b,unstable_viewTransitionOpts:N.viewTransitionOpts,unstable_flushSync:N.flushSync===!0})),c.v7_fetcherPersist&&(P.forEach(U=>S.fetchers.delete(U)),b.forEach(U=>Na(U)))}function Ti(C,N,P){var b,U;let{flushSync:V}=P===void 0?{}:P,q=S.actionData!=null&&S.navigation.formMethod!=null&&dn(S.navigation.formMethod)&&S.navigation.state==="loading"&&((b=C.state)==null?void 0:b._isRedirect)!==!0,I;N.actionData?Object.keys(N.actionData).length>0?I=N.actionData:I=null:q?I=S.actionData:I=null;let ne=N.loaderData?zm(S.loaderData,N.loaderData,N.matches||[],N.errors):S.loaderData,G=S.blockers;G.size>0&&(G=new Map(G),G.forEach((xe,Ne)=>G.set(Ne,is)));let Z=R===!0||S.navigation.formMethod!=null&&dn(S.navigation.formMethod)&&((U=C.state)==null?void 0:U._isRedirect)!==!0;a&&(s=a,a=void 0),Ce||M===Xe.Pop||(M===Xe.Push?e.history.push(C,C.state):M===Xe.Replace&&e.history.replace(C,C.state));let Ee;if(M===Xe.Pop){let xe=X.get(S.location.pathname);xe&&xe.has(C.pathname)?Ee={currentLocation:S.location,nextLocation:C}:X.has(C.pathname)&&(Ee={currentLocation:C,nextLocation:S.location})}else if(L){let xe=X.get(S.location.pathname);xe?xe.add(C.pathname):(xe=new Set([C.pathname]),X.set(S.location.pathname,xe)),Ee={currentLocation:S.location,nextLocation:C}}gt(ze({},N,{actionData:I,loaderData:ne,historyAction:M,location:C,initialized:!0,navigation:bc,revalidation:"idle",restoreScrollPosition:yp(C,N.matches||S.matches),preventScrollReset:Z,blockers:G}),{viewTransitionOpts:Ee,flushSync:V===!0}),M=Xe.Pop,R=!1,L=!1,Ce=!1,oe=!1,Ze=[],rt=[]}async function ap(C,N){if(typeof C=="number"){e.history.go(C);return}let P=Ud(S.location,S.matches,l,c.v7_prependBasename,C,c.v7_relativeSplatPath,N==null?void 0:N.fromRouteId,N==null?void 0:N.relative),{path:b,submission:U,error:V}=Om(c.v7_normalizeFormMethod,!1,P,N),q=S.location,I=Qs(S.location,b,N&&N.state);I=ze({},I,e.history.encodeLocation(I));let ne=N&&N.replace!=null?N.replace:void 0,G=Xe.Push;ne===!0?G=Xe.Replace:ne===!1||U!=null&&dn(U.formMethod)&&U.formAction===S.location.pathname+S.location.search&&(G=Xe.Replace);let Z=N&&"preventScrollReset"in N?N.preventScrollReset===!0:void 0,Ee=(N&&N.unstable_flushSync)===!0,xe=mp({currentLocation:q,nextLocation:I,historyAction:G});if(xe){Ra(xe,{state:"blocked",location:I,proceed(){Ra(xe,{state:"proceeding",proceed:void 0,reset:void 0,location:I}),ap(C,N)},reset(){let Ne=new Map(S.blockers);Ne.set(xe,is),gt({blockers:Ne})}});return}return await qr(G,I,{submission:U,pendingError:V,preventScrollReset:Z,replace:N&&N.replace,enableViewTransition:N&&N.unstable_viewTransition,flushSync:Ee})}function xx(){if(Ju(),gt({revalidation:"loading"}),S.navigation.state!=="submitting"){if(S.navigation.state==="idle"){qr(S.historyAction,S.location,{startUninterruptedRevalidation:!0});return}qr(M||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation})}}async function qr(C,N,P){T&&T.abort(),T=null,M=C,Ce=(P&&P.startUninterruptedRevalidation)===!0,Mx(S.location,S.matches),R=(P&&P.preventScrollReset)===!0,L=(P&&P.enableViewTransition)===!0;let b=a||s,U=P&&P.overrideNavigation,V=ti(b,N,l),q=(P&&P.flushSync)===!0,I=nc(V,b,N.pathname);if(I.active&&I.matches&&(V=I.matches),!V){let{error:ye,notFoundMatches:st,route:qe}=ec(N.pathname);Ti(N,{matches:st,loaderData:{},errors:{[qe.id]:ye}},{flushSync:q});return}if(S.initialized&&!oe&&QC(S.location,N)&&!(P&&P.submission&&dn(P.submission.formMethod))){Ti(N,{matches:V},{flushSync:q});return}T=new AbortController;let ne=Ii(e.history,N,T.signal,P&&P.submission),G;if(P&&P.pendingError)G=[to(V).route.id,{type:Pe.error,error:P.pendingError}];else if(P&&P.submission&&dn(P.submission.formMethod)){let ye=await Sx(ne,N,P.submission,V,I.active,{replace:P.replace,flushSync:q});if(ye.shortCircuited)return;if(ye.pendingActionResult){let[st,qe]=ye.pendingActionResult;if(Ft(qe)&&Du(qe.error)&&qe.error.status===404){T=null,Ti(N,{matches:ye.matches,loaderData:{},errors:{[st]:qe.error}});return}}V=ye.matches||V,G=ye.pendingActionResult,U=Tc(N,P.submission),q=!1,I.active=!1,ne=Ii(e.history,ne.url,ne.signal)}let{shortCircuited:Z,matches:Ee,loaderData:xe,errors:Ne}=await _x(ne,N,V,I.active,U,P&&P.submission,P&&P.fetcherSubmission,P&&P.replace,P&&P.initialHydration===!0,q,G);Z||(T=null,Ti(N,ze({matches:Ee||V},Ym(G),{loaderData:xe,errors:Ne})))}async function Sx(C,N,P,b,U,V){V===void 0&&(V={}),Ju();let q=XC(N,P);if(gt({navigation:q},{flushSync:V.flushSync===!0}),U){let G=await Da(b,N.pathname,C.signal);if(G.type==="aborted")return{shortCircuited:!0};if(G.type==="error"){let{boundaryId:Z,error:Ee}=Pa(N.pathname,G);return{matches:G.partialMatches,pendingActionResult:[Z,{type:Pe.error,error:Ee}]}}else if(G.matches)b=G.matches;else{let{notFoundMatches:Z,error:Ee,route:xe}=ec(N.pathname);return{matches:Z,pendingActionResult:[xe.id,{type:Pe.error,error:Ee}]}}}let I,ne=vs(b,N);if(!ne.route.action&&!ne.route.lazy)I={type:Pe.error,error:St(405,{method:C.method,pathname:N.pathname,routeId:ne.route.id})};else if(I=(await Go("action",C,[ne],b))[0],C.signal.aborted)return{shortCircuited:!0};if(si(I)){let G;return V&&V.replace!=null?G=V.replace:G=Im(I.response.headers.get("Location"),new URL(C.url),l)===S.location.pathname+S.location.search,await Qo(C,I,{submission:P,replace:G}),{shortCircuited:!0}}if(oi(I))throw St(400,{type:"defer-action"});if(Ft(I)){let G=to(b,ne.route.id);return(V&&V.replace)!==!0&&(M=Xe.Push),{matches:b,pendingActionResult:[G.route.id,I]}}return{matches:b,pendingActionResult:[ne.route.id,I]}}async function _x(C,N,P,b,U,V,q,I,ne,G,Z){let Ee=U||Tc(N,V),xe=V||q||Vm(Ee),Ne=!Ce&&(!c.v7_partialHydration||!ne);if(b){if(Ne){let Ve=lp(Z);gt(ze({navigation:Ee},Ve!==void 0?{actionData:Ve}:{}),{flushSync:G})}let se=await Da(P,N.pathname,C.signal);if(se.type==="aborted")return{shortCircuited:!0};if(se.type==="error"){let{boundaryId:Ve,error:Lt}=Pa(N.pathname,se);return{matches:se.partialMatches,loaderData:{},errors:{[Ve]:Lt}}}else if(se.matches)P=se.matches;else{let{error:Ve,notFoundMatches:Lt,route:Le}=ec(N.pathname);return{matches:Lt,loaderData:{},errors:{[Le.id]:Ve}}}}let ye=a||s,[st,qe]=jm(e.history,S,P,xe,N,c.v7_partialHydration&&ne===!0,c.v7_skipActionErrorRevalidation,oe,Ze,rt,we,te,J,ye,l,Z);if(tc(se=>!(P&&P.some(Ve=>Ve.route.id===se))||st&&st.some(Ve=>Ve.route.id===se)),$=++A,st.length===0&&qe.length===0){let se=fp();return Ti(N,ze({matches:P,loaderData:{},errors:Z&&Ft(Z[1])?{[Z[0]]:Z[1].error}:null},Ym(Z),se?{fetchers:new Map(S.fetchers)}:{}),{flushSync:G}),{shortCircuited:!0}}if(Ne){let se={};if(!b){se.navigation=Ee;let Ve=lp(Z);Ve!==void 0&&(se.actionData=Ve)}qe.length>0&&(se.fetchers=Cx(qe)),gt(se,{flushSync:G})}qe.forEach(se=>{ae.has(se.key)&&fr(se.key),se.controller&&ae.set(se.key,se.controller)});let Ko=()=>qe.forEach(se=>fr(se.key));T&&T.signal.addEventListener("abort",Ko);let{loaderResults:hr,fetcherResults:Oi}=await up(S.matches,P,st,qe,C);if(C.signal.aborted)return{shortCircuited:!0};T&&T.signal.removeEventListener("abort",Ko),qe.forEach(se=>ae.delete(se.key));let ji=$m([...hr,...Oi]);if(ji){if(ji.idx>=st.length){let se=qe[ji.idx-st.length].key;J.add(se)}return await Qo(C,ji.result,{replace:I}),{shortCircuited:!0}}let{loaderData:Li,errors:Cn}=Um(S,P,st,hr,Z,qe,Oi,He);He.forEach((se,Ve)=>{se.subscribe(Lt=>{(Lt||se.done)&&He.delete(Ve)})}),c.v7_partialHydration&&ne&&S.errors&&Object.entries(S.errors).filter(se=>{let[Ve]=se;return!st.some(Lt=>Lt.route.id===Ve)}).forEach(se=>{let[Ve,Lt]=se;Cn=Object.assign(Cn||{},{[Ve]:Lt})});let Ma=fp(),ba=hp($),Ta=Ma||ba||qe.length>0;return ze({matches:P,loaderData:Li,errors:Cn},Ta?{fetchers:new Map(S.fetchers)}:{})}function lp(C){if(C&&!Ft(C[1]))return{[C[0]]:C[1].data};if(S.actionData)return Object.keys(S.actionData).length===0?null:S.actionData}function Cx(C){return C.forEach(N=>{let P=S.fetchers.get(N.key),b=os(void 0,P?P.data:void 0);S.fetchers.set(N.key,b)}),new Map(S.fetchers)}function Ex(C,N,P,b){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");ae.has(C)&&fr(C);let U=(b&&b.unstable_flushSync)===!0,V=a||s,q=Ud(S.location,S.matches,l,c.v7_prependBasename,P,c.v7_relativeSplatPath,N,b==null?void 0:b.relative),I=ti(V,q,l),ne=nc(I,V,q);if(ne.active&&ne.matches&&(I=ne.matches),!I){Fn(C,N,St(404,{pathname:q}),{flushSync:U});return}let{path:G,submission:Z,error:Ee}=Om(c.v7_normalizeFormMethod,!0,q,b);if(Ee){Fn(C,N,Ee,{flushSync:U});return}let xe=vs(I,G);if(R=(b&&b.preventScrollReset)===!0,Z&&dn(Z.formMethod)){kx(C,N,G,xe,I,ne.active,U,Z);return}te.set(C,{routeId:N,path:G}),Nx(C,N,G,xe,I,ne.active,U,Z)}async function kx(C,N,P,b,U,V,q,I){Ju(),te.delete(C);function ne(Le){if(!Le.route.action&&!Le.route.lazy){let Un=St(405,{method:I.formMethod,pathname:P,routeId:N});return Fn(C,N,Un,{flushSync:q}),!0}return!1}if(!V&&ne(b))return;let G=S.fetchers.get(C);dr(C,JC(I,G),{flushSync:q});let Z=new AbortController,Ee=Ii(e.history,P,Z.signal,I);if(V){let Le=await Da(U,P,Ee.signal);if(Le.type==="aborted")return;if(Le.type==="error"){let{error:Un}=Pa(P,Le);Fn(C,N,Un,{flushSync:q});return}else if(Le.matches){if(U=Le.matches,b=vs(U,P),ne(b))return}else{Fn(C,N,St(404,{pathname:P}),{flushSync:q});return}}ae.set(C,Z);let xe=A,ye=(await Go("action",Ee,[b],U))[0];if(Ee.signal.aborted){ae.get(C)===Z&&ae.delete(C);return}if(c.v7_fetcherPersist&&we.has(C)){if(si(ye)||Ft(ye)){dr(C,yr(void 0));return}}else{if(si(ye))if(ae.delete(C),$>xe){dr(C,yr(void 0));return}else return J.add(C),dr(C,os(I)),Qo(Ee,ye,{fetcherSubmission:I});if(Ft(ye)){Fn(C,N,ye.error);return}}if(oi(ye))throw St(400,{type:"defer-action"});let st=S.navigation.location||S.location,qe=Ii(e.history,st,Z.signal),Ko=a||s,hr=S.navigation.state!=="idle"?ti(Ko,S.navigation.location,l):S.matches;le(hr,"Didn't find any matches after fetcher action");let Oi=++A;B.set(C,Oi);let ji=os(I,ye.data);S.fetchers.set(C,ji);let[Li,Cn]=jm(e.history,S,hr,I,st,!1,c.v7_skipActionErrorRevalidation,oe,Ze,rt,we,te,J,Ko,l,[b.route.id,ye]);Cn.filter(Le=>Le.key!==C).forEach(Le=>{let Un=Le.key,gp=S.fetchers.get(Un),Ox=os(void 0,gp?gp.data:void 0);S.fetchers.set(Un,Ox),ae.has(Un)&&fr(Un),Le.controller&&ae.set(Un,Le.controller)}),gt({fetchers:new Map(S.fetchers)});let Ma=()=>Cn.forEach(Le=>fr(Le.key));Z.signal.addEventListener("abort",Ma);let{loaderResults:ba,fetcherResults:Ta}=await up(S.matches,hr,Li,Cn,qe);if(Z.signal.aborted)return;Z.signal.removeEventListener("abort",Ma),B.delete(C),ae.delete(C),Cn.forEach(Le=>ae.delete(Le.key));let se=$m([...ba,...Ta]);if(se){if(se.idx>=Li.length){let Le=Cn[se.idx-Li.length].key;J.add(Le)}return Qo(qe,se.result)}let{loaderData:Ve,errors:Lt}=Um(S,S.matches,Li,ba,void 0,Cn,Ta,He);if(S.fetchers.has(C)){let Le=yr(ye.data);S.fetchers.set(C,Le)}hp(Oi),S.navigation.state==="loading"&&Oi>$?(le(M,"Expected pending action"),T&&T.abort(),Ti(S.navigation.location,{matches:hr,loaderData:Ve,errors:Lt,fetchers:new Map(S.fetchers)})):(gt({errors:Lt,loaderData:zm(S.loaderData,Ve,hr,Lt),fetchers:new Map(S.fetchers)}),oe=!1)}async function Nx(C,N,P,b,U,V,q,I){let ne=S.fetchers.get(C);dr(C,os(I,ne?ne.data:void 0),{flushSync:q});let G=new AbortController,Z=Ii(e.history,P,G.signal);if(V){let ye=await Da(U,P,Z.signal);if(ye.type==="aborted")return;if(ye.type==="error"){let{error:st}=Pa(P,ye);Fn(C,N,st,{flushSync:q});return}else if(ye.matches)U=ye.matches,b=vs(U,P);else{Fn(C,N,St(404,{pathname:P}),{flushSync:q});return}}ae.set(C,G);let Ee=A,Ne=(await Go("loader",Z,[b],U))[0];if(oi(Ne)&&(Ne=await v0(Ne,Z.signal,!0)||Ne),ae.get(C)===G&&ae.delete(C),!Z.signal.aborted){if(we.has(C)){dr(C,yr(void 0));return}if(si(Ne))if($>Ee){dr(C,yr(void 0));return}else{J.add(C),await Qo(Z,Ne);return}if(Ft(Ne)){Fn(C,N,Ne.error);return}le(!oi(Ne),"Unhandled fetcher deferred data"),dr(C,yr(Ne.data))}}async function Qo(C,N,P){let{submission:b,fetcherSubmission:U,replace:V}=P===void 0?{}:P;N.response.headers.has("X-Remix-Revalidate")&&(oe=!0);let q=N.response.headers.get("Location");le(q,"Expected a Location header on the redirect Response"),q=Im(q,new URL(C.url),l);let I=Qs(S.location,q,{_isRedirect:!0});if(n){let Ne=!1;if(N.response.headers.has("X-Remix-Reload-Document"))Ne=!0;else if(ch.test(q)){const ye=e.history.createURL(q);Ne=ye.origin!==t.location.origin||va(ye.pathname,l)==null}if(Ne){V?t.location.replace(q):t.location.assign(q);return}}T=null;let ne=V===!0?Xe.Replace:Xe.Push,{formMethod:G,formAction:Z,formEncType:Ee}=S.navigation;!b&&!U&&G&&Z&&Ee&&(b=Vm(S.navigation));let xe=b||U;if(OC.has(N.response.status)&&xe&&dn(xe.formMethod))await qr(ne,I,{submission:ze({},xe,{formAction:q}),preventScrollReset:R});else{let Ne=Tc(I,b);await qr(ne,I,{overrideNavigation:Ne,fetcherSubmission:U,preventScrollReset:R})}}async function Go(C,N,P,b){try{let U=await WC(u,C,N,P,b,o,i);return await Promise.all(U.map((V,q)=>{if(KC(V)){let I=V.result;return{type:Pe.redirect,response:VC(I,N,P[q].route.id,b,l,c.v7_relativeSplatPath)}}return HC(V)}))}catch(U){return P.map(()=>({type:Pe.error,error:U}))}}async function up(C,N,P,b,U){let[V,...q]=await Promise.all([P.length?Go("loader",U,P,N):[],...b.map(I=>{if(I.matches&&I.match&&I.controller){let ne=Ii(e.history,I.path,I.controller.signal);return Go("loader",ne,[I.match],I.matches).then(G=>G[0])}else return Promise.resolve({type:Pe.error,error:St(404,{pathname:I.path})})})]);return await Promise.all([Hm(C,P,V,V.map(()=>U.signal),!1,S.loaderData),Hm(C,b.map(I=>I.match),q,b.map(I=>I.controller?I.controller.signal:null),!0)]),{loaderResults:V,fetcherResults:q}}function Ju(){oe=!0,Ze.push(...tc()),te.forEach((C,N)=>{ae.has(N)&&(rt.push(N),fr(N))})}function dr(C,N,P){P===void 0&&(P={}),S.fetchers.set(C,N),gt({fetchers:new Map(S.fetchers)},{flushSync:(P&&P.flushSync)===!0})}function Fn(C,N,P,b){b===void 0&&(b={});let U=to(S.matches,N);Na(C),gt({errors:{[U.route.id]:P},fetchers:new Map(S.fetchers)},{flushSync:(b&&b.flushSync)===!0})}function cp(C){return c.v7_fetcherPersist&&(Fe.set(C,(Fe.get(C)||0)+1),we.has(C)&&we.delete(C)),S.fetchers.get(C)||jC}function Na(C){let N=S.fetchers.get(C);ae.has(C)&&!(N&&N.state==="loading"&&B.has(C))&&fr(C),te.delete(C),B.delete(C),J.delete(C),we.delete(C),S.fetchers.delete(C)}function Rx(C){if(c.v7_fetcherPersist){let N=(Fe.get(C)||0)-1;N<=0?(Fe.delete(C),we.add(C)):Fe.set(C,N)}else Na(C);gt({fetchers:new Map(S.fetchers)})}function fr(C){let N=ae.get(C);le(N,"Expected fetch controller: "+C),N.abort(),ae.delete(C)}function dp(C){for(let N of C){let P=cp(N),b=yr(P.data);S.fetchers.set(N,b)}}function fp(){let C=[],N=!1;for(let P of J){let b=S.fetchers.get(P);le(b,"Expected fetcher: "+P),b.state==="loading"&&(J.delete(P),C.push(P),N=!0)}return dp(C),N}function hp(C){let N=[];for(let[P,b]of B)if(b0}function Px(C,N){let P=S.blockers.get(C)||is;return Ue.get(C)!==N&&Ue.set(C,N),P}function pp(C){S.blockers.delete(C),Ue.delete(C)}function Ra(C,N){let P=S.blockers.get(C)||is;le(P.state==="unblocked"&&N.state==="blocked"||P.state==="blocked"&&N.state==="blocked"||P.state==="blocked"&&N.state==="proceeding"||P.state==="blocked"&&N.state==="unblocked"||P.state==="proceeding"&&N.state==="unblocked","Invalid blocker state transition: "+P.state+" -> "+N.state);let b=new Map(S.blockers);b.set(C,N),gt({blockers:b})}function mp(C){let{currentLocation:N,nextLocation:P,historyAction:b}=C;if(Ue.size===0)return;Ue.size>1&&Ao(!1,"A router only supports one blocker at a time");let U=Array.from(Ue.entries()),[V,q]=U[U.length-1],I=S.blockers.get(V);if(!(I&&I.state==="proceeding")&&q({currentLocation:N,nextLocation:P,historyAction:b}))return V}function ec(C){let N=St(404,{pathname:C}),P=a||s,{matches:b,route:U}=Wm(P);return tc(),{notFoundMatches:b,route:U,error:N}}function Pa(C,N){return{boundaryId:to(N.partialMatches).route.id,error:St(400,{type:"route-discovery",pathname:C,message:N.error!=null&&"message"in N.error?N.error:String(N.error)})}}function tc(C){let N=[];return He.forEach((P,b)=>{(!C||C(b))&&(P.cancel(),N.push(b),He.delete(b))}),N}function Dx(C,N,P){if(x=C,_=N,y=P||null,!v&&S.navigation===bc){v=!0;let b=yp(S.location,S.matches);b!=null&>({restoreScrollPosition:b})}return()=>{x=null,_=null,y=null}}function vp(C,N){return y&&y(C,N.map(b=>i0(b,S.loaderData)))||C.key}function Mx(C,N){if(x&&_){let P=vp(C,N);x[P]=_()}}function yp(C,N){if(x){let P=vp(C,N),b=x[P];if(typeof b=="number")return b}return null}function nc(C,N,P){if(d)if(C){let b=C[C.length-1].route;if(b.path&&(b.path==="*"||b.path.endsWith("/*")))return{active:!0,matches:Cl(N,P,l,!0)}}else return{active:!0,matches:Cl(N,P,l,!0)||[]};return{active:!1,matches:null}}async function Da(C,N,P){let b=C,U=b.length>0?b[b.length-1].route:null;for(;;){let V=a==null,q=a||s;try{await zC(d,N,b,q,o,i,Gt,P)}catch(Z){return{type:"error",error:Z,partialMatches:b}}finally{V&&(s=[...s])}if(P.aborted)return{type:"aborted"};let I=ti(q,N,l),ne=!1;if(I){let Z=I[I.length-1].route;if(Z.index)return{type:"success",matches:I};if(Z.path&&Z.path.length>0)if(Z.path==="*")ne=!0;else return{type:"success",matches:I}}let G=Cl(q,N,l,!0);if(!G||b.map(Z=>Z.route.id).join("-")===G.map(Z=>Z.route.id).join("-"))return{type:"success",matches:ne?I:null};if(b=G,U=b[b.length-1].route,U.path==="*")return{type:"success",matches:b}}}function bx(C){o={},a=Gs(C,i,void 0,o)}function Tx(C,N){let P=a==null;h0(C,N,a||s,o,i),P&&(s=[...s],gt({}))}return D={get basename(){return l},get future(){return c},get state(){return S},get routes(){return s},get window(){return t},initialize:yx,subscribe:wx,enableScrollRestoration:Dx,navigate:ap,fetch:Ex,revalidate:xx,createHref:C=>e.history.createHref(C),encodeLocation:C=>e.history.encodeLocation(C),getFetcher:cp,deleteFetcher:Rx,dispose:gx,getBlocker:Px,deleteBlocker:pp,patchRoutes:Tx,_internalFetchControllers:ae,_internalActiveDeferreds:He,_internalSetRoutes:bx},D}function IC(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Ud(e,t,n,r,i,o,s,a){let l,u;if(s){l=[];for(let c of t)if(l.push(c),c.route.id===s){u=c;break}}else l=t,u=t[t.length-1];let d=u0(i||".",l0(l,o),va(e.pathname,n)||e.pathname,a==="path");return i==null&&(d.search=e.search,d.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!dh(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:$r([n,d.pathname])),ma(d)}function Om(e,t,n,r){if(!r||!IC(r))return{path:n};if(r.formMethod&&!qC(r.formMethod))return{path:n,error:St(405,{method:r.formMethod})};let i=()=>({path:n,error:St(400,{type:"invalid-body"})}),o=r.formMethod||"get",s=e?o.toUpperCase():o.toLowerCase(),a=p0(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!dn(s))return i();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((w,x)=>{let[y,_]=x;return""+w+y+"="+_+` +`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!dn(s))return i();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:a,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return i()}}}le(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=zd(r.formData),u=r.formData;else if(r.body instanceof FormData)l=zd(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=Fm(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=Fm(l)}catch{return i()}let d={formMethod:s,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(dn(d.formMethod))return{path:n,submission:d};let c=Zr(n);return t&&c.search&&dh(c.search)&&l.append("index",""),c.search="?"+l,{path:ma(c),submission:d}}function FC(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function jm(e,t,n,r,i,o,s,a,l,u,d,c,f,w,x,y){let _=y?Ft(y[1])?y[1].error:y[1].data:void 0,v=e.createURL(t.location),h=e.createURL(i),g=y&&Ft(y[1])?y[0]:void 0,E=g?FC(n,g):n,D=y?y[1].statusCode:void 0,S=s&&D&&D>=400,M=E.filter((T,L)=>{let{route:X}=T;if(X.lazy)return!0;if(X.loader==null)return!1;if(o)return typeof X.loader!="function"||X.loader.hydrate?!0:t.loaderData[X.id]===void 0&&(!t.errors||t.errors[X.id]===void 0);if(UC(t.loaderData,t.matches[L],T)||l.some(oe=>oe===T.route.id))return!0;let H=t.matches[L],Ce=T;return Lm(T,ze({currentUrl:v,currentParams:H.params,nextUrl:h,nextParams:Ce.params},r,{actionResult:_,actionStatus:D,defaultShouldRevalidate:S?!1:a||v.pathname+v.search===h.pathname+h.search||v.search!==h.search||f0(H,Ce)}))}),R=[];return c.forEach((T,L)=>{if(o||!n.some(Ze=>Ze.route.id===T.routeId)||d.has(L))return;let X=ti(w,T.path,x);if(!X){R.push({key:L,routeId:T.routeId,path:T.path,matches:null,match:null,controller:null});return}let H=t.fetchers.get(L),Ce=vs(X,T.path),oe=!1;f.has(L)?oe=!1:u.includes(L)?oe=!0:H&&H.state!=="idle"&&H.data===void 0?oe=a:oe=Lm(Ce,ze({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:h,nextParams:n[n.length-1].params},r,{actionResult:_,actionStatus:D,defaultShouldRevalidate:S?!1:a})),oe&&R.push({key:L,routeId:T.routeId,path:T.path,matches:X,match:Ce,controller:new AbortController})}),[M,R]}function UC(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function f0(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Lm(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function zC(e,t,n,r,i,o,s,a){let l=[t,...n.map(u=>u.route.id)].join("-");try{let u=s.get(l);u||(u=e({path:t,matches:n,patch:(d,c)=>{a.aborted||h0(d,c,r,i,o)}}),s.set(l,u)),u&&GC(u)&&await u}finally{s.delete(l)}}function h0(e,t,n,r,i){if(e){var o;let s=r[e];le(s,"No route found to patch children into: routeId = "+e);let a=Gs(t,i,[e,"patch",String(((o=s.children)==null?void 0:o.length)||"0")],r);s.children?s.children.push(...a):s.children=a}else{let s=Gs(t,i,["patch",String(n.length||"0")],r);n.push(...s)}}async function Am(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];le(i,"No route found in manifest");let o={};for(let s in r){let l=i[s]!==void 0&&s!=="hasErrorBoundary";Ao(!l,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!l&&!cC.has(s)&&(o[s]=r[s])}Object.assign(i,o),Object.assign(i,ze({},t(i),{lazy:void 0}))}function YC(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function WC(e,t,n,r,i,o,s,a){let l=r.reduce((c,f)=>c.add(f.route.id),new Set),u=new Set,d=await e({matches:i.map(c=>{let f=l.has(c.route.id);return ze({},c,{shouldLoad:f,resolve:x=>(u.add(c.route.id),f?$C(t,n,c,o,s,x,a):Promise.resolve({type:Pe.data,result:void 0}))})}),request:n,params:i[0].params,context:a});return i.forEach(c=>le(u.has(c.route.id),'`match.resolve()` was not called for route id "'+c.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),d.filter((c,f)=>l.has(i[f].route.id))}async function $C(e,t,n,r,i,o,s){let a,l,u=d=>{let c,f=new Promise((y,_)=>c=_);l=()=>c(),t.signal.addEventListener("abort",l);let w=y=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):d({request:t,params:n.params,context:s},...y!==void 0?[y]:[]),x;return o?x=o(y=>w(y)):x=(async()=>{try{return{type:"data",result:await w()}}catch(y){return{type:"error",result:y}}})(),Promise.race([x,f])};try{let d=n.route[e];if(n.route.lazy)if(d){let c,[f]=await Promise.all([u(d).catch(w=>{c=w}),Am(n.route,i,r)]);if(c!==void 0)throw c;a=f}else if(await Am(n.route,i,r),d=n.route[e],d)a=await u(d);else if(e==="action"){let c=new URL(t.url),f=c.pathname+c.search;throw St(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:Pe.data,result:void 0};else if(d)a=await u(d);else{let c=new URL(t.url),f=c.pathname+c.search;throw St(404,{pathname:f})}le(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(d){return{type:Pe.error,result:d}}finally{l&&t.signal.removeEventListener("abort",l)}return a}async function HC(e){let{result:t,type:n,status:r}=e;if(m0(t)){let s;try{let a=t.headers.get("Content-Type");a&&/\bapplication\/json\b/.test(a)?t.body==null?s=null:s=await t.json():s=await t.text()}catch(a){return{type:Pe.error,error:a}}return n===Pe.error?{type:Pe.error,error:new uh(t.status,t.statusText,s),statusCode:t.status,headers:t.headers}:{type:Pe.data,data:s,statusCode:t.status,headers:t.headers}}if(n===Pe.error)return{type:Pe.error,error:t,statusCode:Du(t)?t.status:r};if(ZC(t)){var i,o;return{type:Pe.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((o=t.init)==null?void 0:o.headers)&&new Headers(t.init.headers)}}return{type:Pe.data,data:t,statusCode:r}}function VC(e,t,n,r,i,o){let s=e.headers.get("Location");if(le(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!ch.test(s)){let a=r.slice(0,r.findIndex(l=>l.route.id===n)+1);s=Ud(new URL(t.url),a,i,!0,s,o),e.headers.set("Location",s)}return e}function Im(e,t,n){if(ch.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=va(i.pathname,n)!=null;if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function Ii(e,t,n,r){let i=e.createURL(p0(t)).toString(),o={signal:n};if(r&&dn(r.formMethod)){let{formMethod:s,formEncType:a}=r;o.method=s.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=zd(r.formData):o.body=r.formData}return new Request(i,o)}function zd(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Fm(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function BC(e,t,n,r,i,o){let s={},a=null,l,u=!1,d={},c=r&&Ft(r[1])?r[1].error:void 0;return n.forEach((f,w)=>{let x=t[w].route.id;if(le(!si(f),"Cannot handle redirect results in processLoaderData"),Ft(f)){let y=f.error;c!==void 0&&(y=c,c=void 0),a=a||{};{let _=to(e,x);a[_.route.id]==null&&(a[_.route.id]=y)}s[x]=void 0,u||(u=!0,l=Du(f.error)?f.error.status:500),f.headers&&(d[x]=f.headers)}else oi(f)?(i.set(x,f.deferredData),s[x]=f.deferredData.data,f.statusCode!=null&&f.statusCode!==200&&!u&&(l=f.statusCode),f.headers&&(d[x]=f.headers)):(s[x]=f.data,f.statusCode&&f.statusCode!==200&&!u&&(l=f.statusCode),f.headers&&(d[x]=f.headers))}),c!==void 0&&r&&(a={[r[0]]:c},s[r[0]]=void 0),{loaderData:s,errors:a,statusCode:l||200,loaderHeaders:d}}function Um(e,t,n,r,i,o,s,a){let{loaderData:l,errors:u}=BC(t,n,r,i,a);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Wm(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function St(e,t){let{pathname:n,routeId:r,method:i,type:o,message:s}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",o==="route-discovery"?l='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnMiss()` '+(`function threw the following error: +`+s):i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",l='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new uh(e||500,a,new Error(l),!0)}function $m(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(si(n))return{result:n,idx:t}}}function p0(e){let t=typeof e=="string"?Zr(e):e;return ma(ze({},t,{hash:""}))}function QC(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function GC(e){return typeof e=="object"&&e!=null&&"then"in e}function KC(e){return m0(e.result)&&TC.has(e.result.status)}function oi(e){return e.type===Pe.deferred}function Ft(e){return e.type===Pe.error}function si(e){return(e&&e.type)===Pe.redirect}function ZC(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function m0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function qC(e){return bC.has(e.toLowerCase())}function dn(e){return DC.has(e.toLowerCase())}async function Hm(e,t,n,r,i,o){for(let s=0;sc.route.id===l.route.id),d=u!=null&&!f0(u,l)&&(o&&o[l.route.id])!==void 0;if(oi(a)&&(i||d)){let c=r[s];le(c,"Expected an AbortSignal for revalidating fetcher deferred result"),await v0(a,c,i).then(f=>{f&&(n[s]=f||n[s])})}}}async function v0(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Pe.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Pe.error,error:i}}return{type:Pe.data,data:e.deferredData.data}}}function dh(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function vs(e,t){let n=typeof t=="string"?Zr(t).search:t.search;if(e[e.length-1].route.index&&dh(n||""))return e[e.length-1];let r=a0(e);return r[r.length-1]}function Vm(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:s}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function Tc(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function XC(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function os(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function JC(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function yr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function eE(e,t){try{let n=e.sessionStorage.getItem(d0);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function tE(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(d0,JSON.stringify(n))}catch(r){Ao(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + * React Router v6.25.1 + * + * 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 nu(){return nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),p.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let c=u0(u,JSON.parse(s),o,d.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:$r([t,c.pathname])),(d.replace?r.replace:r.push)(c,d.state,d)},[t,r,s,o,e])}const iE=p.createContext(null);function oE(e){let t=p.useContext(Mi).outlet;return t&&p.createElement(iE.Provider,{value:e},t)}function sE(e,t,n,r){Tu()||le(!1);let{navigator:i}=p.useContext(bu),{matches:o}=p.useContext(Mi),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=hh(),d;d=u;let c=d.pathname||"/",f=c;if(l!=="/"){let y=l.replace(/^\//,"").split("/");f="/"+c.replace(/^\//,"").split("/").slice(y.length).join("/")}let w=ti(e,{pathname:f});return dE(w&&w.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:$r([l,i.encodeLocation?i.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:$r([l,i.encodeLocation?i.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,n,r)}function aE(){let e=mE(),t=Du(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:i},n):null,null)}const lE=p.createElement(aE,null);class uE extends p.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?p.createElement(Mi.Provider,{value:this.props.routeContext},p.createElement(g0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function cE(e){let{routeContext:t,match:n,children:r}=e,i=p.useContext(Mu);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Mi.Provider,{value:t},r)}function dE(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let d=s.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id])!==void 0);d>=0||le(!1),s=s.slice(0,Math.min(s.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,c,f)=>{let w,x=!1,y=null,_=null;n&&(w=a&&c.route.id?a[c.route.id]:void 0,y=c.route.errorElement||lE,l&&(u<0&&f===0?(yE("route-fallback"),x=!0,_=null):u===f&&(x=!0,_=c.route.hydrateFallbackElement||null)));let v=t.concat(s.slice(0,f+1)),h=()=>{let g;return w?g=y:x?g=_:c.route.Component?g=p.createElement(c.route.Component,null):c.route.element?g=c.route.element:g=d,p.createElement(cE,{match:c,routeContext:{outlet:d,matches:v,isDataRoute:n!=null},children:g})};return n&&(c.route.ErrorBoundary||c.route.errorElement||f===0)?p.createElement(uE,{location:n.location,revalidation:n.revalidation,component:y,error:w,children:h(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):h()},null)}var x0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(x0||{}),Ks=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}(Ks||{});function fE(e){let t=p.useContext(Mu);return t||le(!1),t}function S0(e){let t=p.useContext(y0);return t||le(!1),t}function hE(e){let t=p.useContext(Mi);return t||le(!1),t}function _0(e){let t=hE(),n=t.matches[t.matches.length-1];return n.route.id||le(!1),n.route.id}function pE(){let{matches:e,loaderData:t}=S0(Ks.UseMatches);return p.useMemo(()=>e.map(n=>i0(n,t)),[e,t])}function mE(){var e;let t=p.useContext(g0),n=S0(Ks.UseRouteError),r=_0(Ks.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function vE(){let{router:e}=fE(x0.UseNavigateStable),t=_0(Ks.UseNavigateStable),n=p.useRef(!1);return w0(()=>{n.current=!0}),p.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,nu({fromRouteId:t},o)))},[e,t])}const Bm={};function yE(e,t,n){Bm[e]||(Bm[e]=!0)}function gE(e){return oE(e.context)}function wE(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Xe.Pop,navigator:o,static:s=!1,future:a}=e;Tu()&&le(!1);let l=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:l,navigator:o,static:s,future:nu({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=Zr(r));let{pathname:d="/",search:c="",hash:f="",state:w=null,key:x="default"}=r,y=p.useMemo(()=>{let _=va(d,l);return _==null?null:{location:{pathname:_,search:c,hash:f,state:w,key:x},navigationType:i}},[l,d,c,f,w,x,i]);return y==null?null:p.createElement(bu.Provider,{value:u},p.createElement(fh.Provider,{children:n,value:y}))}new Promise(()=>{});function xE(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.25.1 + * + * 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 ru(){return ru=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function bE(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=p.useState(n.state),[s,a]=p.useState(),[l,u]=p.useState({isTransitioning:!1}),[d,c]=p.useState(),[f,w]=p.useState(),[x,y]=p.useState(),_=p.useRef(new Map),{v7_startTransition:v}=r||{},h=p.useCallback(R=>{v?DE(R):R()},[v]),g=p.useCallback((R,T)=>{let{deletedFetchers:L,unstable_flushSync:X,unstable_viewTransitionOpts:H}=T;L.forEach(oe=>_.current.delete(oe)),R.fetchers.forEach((oe,Ze)=>{oe.data!==void 0&&_.current.set(Ze,oe.data)});let Ce=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!H||Ce){X?ss(()=>o(R)):h(()=>o(R));return}if(X){ss(()=>{f&&(d&&d.resolve(),f.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:H.currentLocation,nextLocation:H.nextLocation})});let oe=n.window.document.startViewTransition(()=>{ss(()=>o(R))});oe.finished.finally(()=>{ss(()=>{c(void 0),w(void 0),a(void 0),u({isTransitioning:!1})})}),ss(()=>w(oe));return}f?(d&&d.resolve(),f.skipTransition(),y({state:R,currentLocation:H.currentLocation,nextLocation:H.nextLocation})):(a(R),u({isTransitioning:!0,flushSync:!1,currentLocation:H.currentLocation,nextLocation:H.nextLocation}))},[n.window,f,d,_,h]);p.useLayoutEffect(()=>n.subscribe(g),[n,g]),p.useEffect(()=>{l.isTransitioning&&!l.flushSync&&c(new ME)},[l]),p.useEffect(()=>{if(d&&s&&n.window){let R=s,T=d.promise,L=n.window.document.startViewTransition(async()=>{h(()=>o(R)),await T});L.finished.finally(()=>{c(void 0),w(void 0),a(void 0),u({isTransitioning:!1})}),w(L)}},[h,s,d,n.window]),p.useEffect(()=>{d&&s&&i.location.key===s.location.key&&d.resolve()},[d,f,i.location,s]),p.useEffect(()=>{!l.isTransitioning&&x&&(a(x.state),u({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),y(void 0))},[l.isTransitioning,x]),p.useEffect(()=>{},[]);let E=p.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:R=>n.navigate(R),push:(R,T,L)=>n.navigate(R,{state:T,preventScrollReset:L==null?void 0:L.preventScrollReset}),replace:(R,T,L)=>n.navigate(R,{replace:!0,state:T,preventScrollReset:L==null?void 0:L.preventScrollReset})}),[n]),D=n.basename||"/",S=p.useMemo(()=>({router:n,navigator:E,static:!1,basename:D}),[n,E,D]),M=p.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return p.createElement(p.Fragment,null,p.createElement(Mu.Provider,{value:S},p.createElement(y0.Provider,{value:i},p.createElement(NE.Provider,{value:_.current},p.createElement(kE.Provider,{value:l},p.createElement(wE,{basename:D,location:i.location,navigationType:i.historyAction,navigator:E,future:M},i.initialized||n.future.v7_partialHydration?p.createElement(TE,{routes:n.routes,future:n.future,state:i}):t))))),null)}const TE=p.memo(OE);function OE(e){let{routes:t,future:n,state:r}=e;return sE(t,void 0,r,n)}var Km;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Km||(Km={}));var Zm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Zm||(Zm={}));var ya=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Io=typeof window>"u"||"Deno"in globalThis;function Zt(){}function jE(e,t){return typeof e=="function"?e(t):e}function Yd(e){return typeof e=="number"&&e>=0&&e!==1/0}function C0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function uo(e,t){return typeof e=="function"?e(t):e}function hn(e,t){return typeof e=="function"?e(t):e}function qm(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==ph(s,t.options))return!1}else if(!qs(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||o&&!o(t))}function Xm(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Zs(t.options.mutationKey)!==Zs(o))return!1}else if(!qs(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ph(e,t){return((t==null?void 0:t.queryKeyHashFn)||Zs)(e)}function Zs(e){return JSON.stringify(e,(t,n)=>$d(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function qs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!qs(e[n],t[n])):!1}function E0(e,t){if(e===t)return e;const n=Jm(e)&&Jm(t);if(n||$d(e)&&$d(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,a=n?[]:{};let l=0;for(let u=0;u{setTimeout(t,e)})}function Hd(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?E0(e,t):t}function AE(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function IE(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var k0=Symbol();function N0(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===k0?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var ci,kr,vo,Ov,FE=(Ov=class extends ya{constructor(){super();ee(this,ci);ee(this,kr);ee(this,vo);W(this,vo,t=>{if(!Io&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){k(this,kr)||this.setEventListener(k(this,vo))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,kr))==null||t.call(this),W(this,kr,void 0))}setEventListener(t){var n;W(this,vo,t),(n=k(this,kr))==null||n.call(this),W(this,kr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){k(this,ci)!==t&&(W(this,ci,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof k(this,ci)=="boolean"?k(this,ci):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ci=new WeakMap,kr=new WeakMap,vo=new WeakMap,Ov),mh=new FE,yo,Nr,go,jv,UE=(jv=class extends ya{constructor(){super();ee(this,yo,!0);ee(this,Nr);ee(this,go);W(this,go,t=>{if(!Io&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){k(this,Nr)||this.setEventListener(k(this,go))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,Nr))==null||t.call(this),W(this,Nr,void 0))}setEventListener(t){var n;W(this,go,t),(n=k(this,Nr))==null||n.call(this),W(this,Nr,t(this.setOnline.bind(this)))}setOnline(t){k(this,yo)!==t&&(W(this,yo,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return k(this,yo)}},yo=new WeakMap,Nr=new WeakMap,go=new WeakMap,jv),iu=new UE;function zE(e){return Math.min(1e3*2**e,3e4)}function R0(e){return(e??"online")==="online"?iu.isOnline():!0}var P0=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Oc(e){return e instanceof P0}function D0(e){let t=!1,n=0,r=!1,i,o,s;const a=new Promise((v,h)=>{o=v,s=h}),l=v=>{var h;r||(x(new P0(v)),(h=e.abort)==null||h.call(e))},u=()=>{t=!0},d=()=>{t=!1},c=()=>mh.isFocused()&&(e.networkMode==="always"||iu.isOnline())&&e.canRun(),f=()=>R0(e.networkMode)&&e.canRun(),w=v=>{var h;r||(r=!0,(h=e.onSuccess)==null||h.call(e,v),i==null||i(),o(v))},x=v=>{var h;r||(r=!0,(h=e.onError)==null||h.call(e,v),i==null||i(),s(v))},y=()=>new Promise(v=>{var h;i=g=>{(r||c())&&v(g)},(h=e.onPause)==null||h.call(e)}).then(()=>{var v;i=void 0,r||(v=e.onContinue)==null||v.call(e)}),_=()=>{if(r)return;let v;const h=n===0?e.initialPromise:void 0;try{v=h??e.fn()}catch(g){v=Promise.reject(g)}Promise.resolve(v).then(w).catch(g=>{var R;if(r)return;const E=e.retry??(Io?0:3),D=e.retryDelay??zE,S=typeof D=="function"?D(n,g):D,M=E===!0||typeof E=="number"&&nc()?void 0:y()).then(()=>{t?x(g):_()})})};return{promise:a,cancel:l,continue:()=>(i==null||i(),a),cancelRetry:u,continueRetry:d,canStart:f,start:()=>(f()?_():y().then(_),a)}}function YE(){let e=[],t=0,n=f=>{f()},r=f=>{f()},i=f=>setTimeout(f,0);const o=f=>{i=f},s=f=>{let w;t++;try{w=f()}finally{t--,t||u()}return w},a=f=>{t?e.push(f):i(()=>{n(f)})},l=f=>(...w)=>{a(()=>{f(...w)})},u=()=>{const f=e;e=[],f.length&&i(()=>{r(()=>{f.forEach(w=>{n(w)})})})};return{batch:s,batchCalls:l,schedule:a,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{r=f},setScheduler:o}}var lt=YE(),di,Lv,M0=(Lv=class{constructor(){ee(this,di)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Yd(this.gcTime)&&W(this,di,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Io?1/0:5*60*1e3))}clearGcTimeout(){k(this,di)&&(clearTimeout(k(this,di)),W(this,di,void 0))}},di=new WeakMap,Lv),wo,xo,Kt,pt,oa,fi,un,Wn,Av,WE=(Av=class extends M0{constructor(t){super();ee(this,un);ee(this,wo);ee(this,xo);ee(this,Kt);ee(this,pt);ee(this,oa);ee(this,fi);W(this,fi,!1),W(this,oa,t.defaultOptions),this.setOptions(t.options),this.observers=[],W(this,Kt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,W(this,wo,t.state||$E(this.options)),this.state=k(this,wo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,pt))==null?void 0:t.promise}setOptions(t){this.options={...k(this,oa),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,Kt).remove(this)}setData(t,n){const r=Hd(this.state.data,t,this.options);return de(this,un,Wn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){de(this,un,Wn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=k(this,pt))==null?void 0:r.promise;return(i=k(this,pt))==null||i.cancel(t),n?n.then(Zt).catch(Zt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,wo))}isActive(){return this.observers.some(t=>hn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!C0(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,pt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,pt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,Kt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(k(this,pt)&&(k(this,fi)?k(this,pt).cancel({revert:!0}):k(this,pt).cancelRetry()),this.scheduleGc()),k(this,Kt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||de(this,un,Wn).call(this,{type:"invalidate"})}fetch(t,n){var l,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(k(this,pt))return k(this,pt).continueRetry(),k(this,pt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(f=>f.options.queryFn);c&&this.setOptions(c.options)}const r=new AbortController,i=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(W(this,fi,!0),r.signal)})},o=()=>{const c=N0(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),W(this,fi,!1),this.options.persister?this.options.persister(c,f,this):c(f)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(s),(l=this.options.behavior)==null||l.onFetch(s,this),W(this,xo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&de(this,un,Wn).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta});const a=c=>{var f,w,x,y;Oc(c)&&c.silent||de(this,un,Wn).call(this,{type:"error",error:c}),Oc(c)||((w=(f=k(this,Kt).config).onError)==null||w.call(f,c,this),(y=(x=k(this,Kt).config).onSettled)==null||y.call(x,this.state.data,c,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return W(this,pt,D0({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:c=>{var f,w,x,y;if(c===void 0){a(new Error(`${this.queryHash} data is undefined`));return}this.setData(c),(w=(f=k(this,Kt).config).onSuccess)==null||w.call(f,c,this),(y=(x=k(this,Kt).config).onSettled)==null||y.call(x,c,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:a,onFail:(c,f)=>{de(this,un,Wn).call(this,{type:"failed",failureCount:c,error:f})},onPause:()=>{de(this,un,Wn).call(this,{type:"pause"})},onContinue:()=>{de(this,un,Wn).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),k(this,pt).start()}},wo=new WeakMap,xo=new WeakMap,Kt=new WeakMap,pt=new WeakMap,oa=new WeakMap,fi=new WeakMap,un=new WeakSet,Wn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...b0(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Oc(i)&&i.revert&&k(this,xo)?{...k(this,xo),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),lt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),k(this,Kt).notify({query:this,type:"updated",action:t})})},Av);function b0(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:R0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function $E(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Nn,Iv,HE=(Iv=class extends ya{constructor(t={}){super();ee(this,Nn);this.config=t,W(this,Nn,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??ph(i,n);let s=this.get(o);return s||(s=new WE({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){k(this,Nn).has(t.queryHash)||(k(this,Nn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=k(this,Nn).get(t.queryHash);n&&(t.destroy(),n===t&&k(this,Nn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){lt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,Nn).get(t)}getAll(){return[...k(this,Nn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>qm(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>qm(t,r)):n}notify(t){lt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){lt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){lt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Nn=new WeakMap,Iv),Rn,wt,hi,Pn,gr,Fv,VE=(Fv=class extends M0{constructor(t){super();ee(this,Pn);ee(this,Rn);ee(this,wt);ee(this,hi);this.mutationId=t.mutationId,W(this,wt,t.mutationCache),W(this,Rn,[]),this.state=t.state||BE(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,Rn).includes(t)||(k(this,Rn).push(t),this.clearGcTimeout(),k(this,wt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){W(this,Rn,k(this,Rn).filter(n=>n!==t)),this.scheduleGc(),k(this,wt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,Rn).length||(this.state.status==="pending"?this.scheduleGc():k(this,wt).remove(this))}continue(){var t;return((t=k(this,hi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,s,a,l,u,d,c,f,w,x,y,_,v,h,g,E,D,S,M;W(this,hi,D0({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,T)=>{de(this,Pn,gr).call(this,{type:"failed",failureCount:R,error:T})},onPause:()=>{de(this,Pn,gr).call(this,{type:"pause"})},onContinue:()=>{de(this,Pn,gr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,wt).canRun(this)}));const n=this.state.status==="pending",r=!k(this,hi).canStart();try{if(!n){de(this,Pn,gr).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=k(this,wt).config).onMutate)==null?void 0:o.call(i,t,this));const T=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,t));T!==this.state.context&&de(this,Pn,gr).call(this,{type:"pending",context:T,variables:t,isPaused:r})}const R=await k(this,hi).start();return await((u=(l=k(this,wt).config).onSuccess)==null?void 0:u.call(l,R,t,this.state.context,this)),await((c=(d=this.options).onSuccess)==null?void 0:c.call(d,R,t,this.state.context)),await((w=(f=k(this,wt).config).onSettled)==null?void 0:w.call(f,R,null,this.state.variables,this.state.context,this)),await((y=(x=this.options).onSettled)==null?void 0:y.call(x,R,null,t,this.state.context)),de(this,Pn,gr).call(this,{type:"success",data:R}),R}catch(R){try{throw await((v=(_=k(this,wt).config).onError)==null?void 0:v.call(_,R,t,this.state.context,this)),await((g=(h=this.options).onError)==null?void 0:g.call(h,R,t,this.state.context)),await((D=(E=k(this,wt).config).onSettled)==null?void 0:D.call(E,void 0,R,this.state.variables,this.state.context,this)),await((M=(S=this.options).onSettled)==null?void 0:M.call(S,void 0,R,t,this.state.context)),R}finally{de(this,Pn,gr).call(this,{type:"error",error:R})}}finally{k(this,wt).runNext(this)}}},Rn=new WeakMap,wt=new WeakMap,hi=new WeakMap,Pn=new WeakSet,gr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),lt.batch(()=>{k(this,Rn).forEach(r=>{r.onMutationUpdate(t)}),k(this,wt).notify({mutation:this,type:"updated",action:t})})},Fv);function BE(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var At,sa,Uv,QE=(Uv=class extends ya{constructor(t={}){super();ee(this,At);ee(this,sa);this.config=t,W(this,At,new Map),W(this,sa,Date.now())}build(t,n,r){const i=new VE({mutationCache:this,mutationId:++Oa(this,sa)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=qa(t),r=k(this,At).get(n)??[];r.push(t),k(this,At).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=qa(t);if(k(this,At).has(n)){const i=(r=k(this,At).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?k(this,At).delete(n):k(this,At).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=k(this,At).get(qa(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=k(this,At).get(qa(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){lt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...k(this,At).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Xm(n,r))}findAll(t={}){return this.getAll().filter(n=>Xm(t,n))}notify(t){lt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return lt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Zt))))}},At=new WeakMap,sa=new WeakMap,Uv);function qa(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function GE(e){return{onFetch:(t,n)=>{const r=async()=>{var x,y,_,v,h;const i=t.options,o=(_=(y=(x=t.fetchOptions)==null?void 0:x.meta)==null?void 0:y.fetchMore)==null?void 0:_.direction,s=((v=t.state.data)==null?void 0:v.pages)||[],a=((h=t.state.data)==null?void 0:h.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const d=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},c=N0(t.options,t.fetchOptions),f=async(g,E,D)=>{if(u)return Promise.reject();if(E==null&&g.pages.length)return Promise.resolve(g);const S={queryKey:t.queryKey,pageParam:E,direction:D?"backward":"forward",meta:t.options.meta};d(S);const M=await c(S),{maxPages:R}=t.options,T=D?IE:AE;return{pages:T(g.pages,M,R),pageParams:T(g.pageParams,E,R)}};let w;if(o&&s.length){const g=o==="backward",E=g?KE:tv,D={pages:s,pageParams:a},S=E(i,D);w=await f(D,S,g)}else{w=await f(l,a[0]??i.initialPageParam);const g=e??s.length;for(let E=1;E{var i,o;return(o=(i=t.options).persister)==null?void 0:o.call(i,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function tv(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function KE(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Be,Rr,Pr,So,_o,Dr,Co,Eo,zv,ZE=(zv=class{constructor(e={}){ee(this,Be);ee(this,Rr);ee(this,Pr);ee(this,So);ee(this,_o);ee(this,Dr);ee(this,Co);ee(this,Eo);W(this,Be,e.queryCache||new HE),W(this,Rr,e.mutationCache||new QE),W(this,Pr,e.defaultOptions||{}),W(this,So,new Map),W(this,_o,new Map),W(this,Dr,0)}mount(){Oa(this,Dr)._++,k(this,Dr)===1&&(W(this,Co,mh.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Be).onFocus())})),W(this,Eo,iu.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Be).onOnline())})))}unmount(){var e,t;Oa(this,Dr)._--,k(this,Dr)===0&&((e=k(this,Co))==null||e.call(this),W(this,Co,void 0),(t=k(this,Eo))==null||t.call(this),W(this,Eo,void 0))}isFetching(e){return k(this,Be).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,Rr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,Be).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=k(this,Be).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(uo(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return k(this,Be).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=k(this,Be).get(r.queryHash),o=i==null?void 0:i.state.data,s=jE(t,o);if(s!==void 0)return k(this,Be).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return lt.batch(()=>k(this,Be).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,Be).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=k(this,Be);lt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=k(this,Be),r={type:"active",...e};return lt.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=lt.batch(()=>k(this,Be).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Zt).catch(Zt)}invalidateQueries(e={},t={}){return lt.batch(()=>{if(k(this,Be).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=lt.batch(()=>k(this,Be).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Zt)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Zt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=k(this,Be).build(this,t);return n.isStaleByTime(uo(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zt).catch(Zt)}fetchInfiniteQuery(e){return e.behavior=GE(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zt).catch(Zt)}resumePausedMutations(){return iu.isOnline()?k(this,Rr).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,Be)}getMutationCache(){return k(this,Rr)}getDefaultOptions(){return k(this,Pr)}setDefaultOptions(e){W(this,Pr,e)}setQueryDefaults(e,t){k(this,So).set(Zs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,So).values()];let n={};return t.forEach(r=>{qs(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){k(this,_o).set(Zs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,_o).values()];let n={};return t.forEach(r=>{qs(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,Pr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ph(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===k0&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,Pr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,Be).clear(),k(this,Rr).clear()}},Be=new WeakMap,Rr=new WeakMap,Pr=new WeakMap,So=new WeakMap,_o=new WeakMap,Dr=new WeakMap,Co=new WeakMap,Eo=new WeakMap,zv),Pt,fe,aa,xt,pi,ko,Dn,la,No,Ro,mi,vi,Mr,Po,ge,ys,Vd,Bd,Qd,Gd,Kd,Zd,qd,T0,Yv,qE=(Yv=class extends ya{constructor(t,n){super();ee(this,ge);ee(this,Pt);ee(this,fe);ee(this,aa);ee(this,xt);ee(this,pi);ee(this,ko);ee(this,Dn);ee(this,la);ee(this,No);ee(this,Ro);ee(this,mi);ee(this,vi);ee(this,Mr);ee(this,Po,new Set);this.options=n,W(this,Pt,t),W(this,Dn,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,fe).addObserver(this),nv(k(this,fe),this.options)?de(this,ge,ys).call(this):this.updateResult(),de(this,ge,Gd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xd(k(this,fe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xd(k(this,fe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,de(this,ge,Kd).call(this),de(this,ge,Zd).call(this),k(this,fe).removeObserver(this)}setOptions(t,n){const r=this.options,i=k(this,fe);if(this.options=k(this,Pt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof hn(this.options.enabled,k(this,fe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");de(this,ge,qd).call(this),k(this,fe).setOptions(this.options),r._defaulted&&!Wd(this.options,r)&&k(this,Pt).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,fe),observer:this});const o=this.hasListeners();o&&rv(k(this,fe),i,this.options,r)&&de(this,ge,ys).call(this),this.updateResult(n),o&&(k(this,fe)!==i||hn(this.options.enabled,k(this,fe))!==hn(r.enabled,k(this,fe))||uo(this.options.staleTime,k(this,fe))!==uo(r.staleTime,k(this,fe)))&&de(this,ge,Vd).call(this);const s=de(this,ge,Bd).call(this);o&&(k(this,fe)!==i||hn(this.options.enabled,k(this,fe))!==hn(r.enabled,k(this,fe))||s!==k(this,Mr))&&de(this,ge,Qd).call(this,s)}getOptimisticResult(t){const n=k(this,Pt).getQueryCache().build(k(this,Pt),t),r=this.createResult(n,t);return JE(this,r)&&(W(this,xt,r),W(this,ko,this.options),W(this,pi,k(this,fe).state)),r}getCurrentResult(){return k(this,xt)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){k(this,Po).add(t)}getCurrentQuery(){return k(this,fe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=k(this,Pt).defaultQueryOptions(t),r=k(this,Pt).getQueryCache().build(k(this,Pt),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return de(this,ge,ys).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,xt)))}createResult(t,n){var M;const r=k(this,fe),i=this.options,o=k(this,xt),s=k(this,pi),a=k(this,ko),u=t!==r?t.state:k(this,aa),{state:d}=t;let c={...d},f=!1,w;if(n._optimisticResults){const R=this.hasListeners(),T=!R&&nv(t,n),L=R&&rv(t,r,n,i);(T||L)&&(c={...c,...b0(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:x,errorUpdatedAt:y,status:_}=c;if(n.select&&c.data!==void 0)if(o&&c.data===(s==null?void 0:s.data)&&n.select===k(this,la))w=k(this,No);else try{W(this,la,n.select),w=n.select(c.data),w=Hd(o==null?void 0:o.data,w,n),W(this,No,w),W(this,Dn,null)}catch(R){W(this,Dn,R)}else w=c.data;if(n.placeholderData!==void 0&&w===void 0&&_==="pending"){let R;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))R=o.data;else if(R=typeof n.placeholderData=="function"?n.placeholderData((M=k(this,Ro))==null?void 0:M.state.data,k(this,Ro)):n.placeholderData,n.select&&R!==void 0)try{R=n.select(R),W(this,Dn,null)}catch(T){W(this,Dn,T)}R!==void 0&&(_="success",w=Hd(o==null?void 0:o.data,R,n),f=!0)}k(this,Dn)&&(x=k(this,Dn),w=k(this,No),y=Date.now(),_="error");const v=c.fetchStatus==="fetching",h=_==="pending",g=_==="error",E=h&&v,D=w!==void 0;return{status:_,fetchStatus:c.fetchStatus,isPending:h,isSuccess:_==="success",isError:g,isInitialLoading:E,isLoading:E,data:w,dataUpdatedAt:c.dataUpdatedAt,error:x,errorUpdatedAt:y,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:v,isRefetching:v&&!h,isLoadingError:g&&!D,isPaused:c.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:g&&D,isStale:vh(t,n),refetch:this.refetch}}updateResult(t){const n=k(this,xt),r=this.createResult(k(this,fe),this.options);if(W(this,pi,k(this,fe).state),W(this,ko,this.options),k(this,pi).data!==void 0&&W(this,Ro,k(this,fe)),Wd(r,n))return;W(this,xt,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!k(this,Po).size)return!0;const l=new Set(a??k(this,Po));return this.options.throwOnError&&l.add("error"),Object.keys(k(this,xt)).some(u=>{const d=u;return k(this,xt)[d]!==n[d]&&l.has(d)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),de(this,ge,T0).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&de(this,ge,Gd).call(this)}},Pt=new WeakMap,fe=new WeakMap,aa=new WeakMap,xt=new WeakMap,pi=new WeakMap,ko=new WeakMap,Dn=new WeakMap,la=new WeakMap,No=new WeakMap,Ro=new WeakMap,mi=new WeakMap,vi=new WeakMap,Mr=new WeakMap,Po=new WeakMap,ge=new WeakSet,ys=function(t){de(this,ge,qd).call(this);let n=k(this,fe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Zt)),n},Vd=function(){de(this,ge,Kd).call(this);const t=uo(this.options.staleTime,k(this,fe));if(Io||k(this,xt).isStale||!Yd(t))return;const r=C0(k(this,xt).dataUpdatedAt,t)+1;W(this,mi,setTimeout(()=>{k(this,xt).isStale||this.updateResult()},r))},Bd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,fe)):this.options.refetchInterval)??!1},Qd=function(t){de(this,ge,Zd).call(this),W(this,Mr,t),!(Io||hn(this.options.enabled,k(this,fe))===!1||!Yd(k(this,Mr))||k(this,Mr)===0)&&W(this,vi,setInterval(()=>{(this.options.refetchIntervalInBackground||mh.isFocused())&&de(this,ge,ys).call(this)},k(this,Mr)))},Gd=function(){de(this,ge,Vd).call(this),de(this,ge,Qd).call(this,de(this,ge,Bd).call(this))},Kd=function(){k(this,mi)&&(clearTimeout(k(this,mi)),W(this,mi,void 0))},Zd=function(){k(this,vi)&&(clearInterval(k(this,vi)),W(this,vi,void 0))},qd=function(){const t=k(this,Pt).getQueryCache().build(k(this,Pt),this.options);if(t===k(this,fe))return;const n=k(this,fe);W(this,fe,t),W(this,aa,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},T0=function(t){lt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(k(this,xt))}),k(this,Pt).getQueryCache().notify({query:k(this,fe),type:"observerResultsUpdated"})})},Yv);function XE(e,t){return hn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function nv(e,t){return XE(e,t)||e.state.data!==void 0&&Xd(e,t,t.refetchOnMount)}function Xd(e,t,n){if(hn(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&vh(e,t)}return!1}function rv(e,t,n,r){return(e!==t||hn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&vh(e,n)}function vh(e,t){return hn(t.enabled,e)!==!1&&e.isStaleByTime(uo(t.staleTime,e))}function JE(e,t){return!Wd(e.getCurrentResult(),t)}var O0=p.createContext(void 0),ek=e=>{const t=p.useContext(O0);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},tk=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),m.jsx(O0.Provider,{value:e,children:t})),j0=p.createContext(!1),nk=()=>p.useContext(j0);j0.Provider;function rk(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ik=p.createContext(rk()),ok=()=>p.useContext(ik);function sk(e,t){return typeof e=="function"?e(...t):!!e}var ak=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},lk=e=>{p.useEffect(()=>{e.clearReset()},[e])},uk=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&sk(n,[e.error,r]),ck=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},dk=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,fk=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function hk(e,t,n){var u,d,c,f;const r=ek(),i=nk(),o=ok(),s=r.defaultQueryOptions(e);(d=(u=r.getDefaultOptions().queries)==null?void 0:u._experimental_beforeQuery)==null||d.call(u,s),s._optimisticResults=i?"isRestoring":"optimistic",ck(s),ak(s,o),lk(o);const[a]=p.useState(()=>new t(r,s)),l=a.getOptimisticResult(s);if(p.useSyncExternalStore(p.useCallback(w=>{const x=i?()=>{}:a.subscribe(lt.batchCalls(w));return a.updateResult(),x},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),p.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),dk(s,l))throw fk(s,a,o);if(uk({result:l,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;return(f=(c=r.getDefaultOptions().queries)==null?void 0:c._experimental_afterQuery)==null||f.call(c,s,l),s.notifyOnChangeProps?l:a.trackResult(l)}function Xa(e,t){return hk(e,qE)}const iv=1e3,pk=new ZE({defaultOptions:{queries:{retry:1,retryDelay:iv,refetchOnWindowFocus:!1,staleTime:5*60*iv}}});function mk({children:e}){return m.jsx(tk,{client:pk,children:e})}const L0=p.createContext({isAlertOpen:!1,alertContent:m.jsx("div",{}),alertType:"confirm",alertCallback:()=>{},addAlertCallback:()=>{},openAlert:()=>{},closeAlert:()=>{}}),ga=()=>p.useContext(L0);function vk({children:e}){const[t,n]=p.useState(!1),[r,i]=p.useState("confirm"),[o,s]=p.useState(m.jsx("div",{})),[a,l]=p.useState(()=>{}),u=(w,x)=>{s(w),i(x),n(!0)},d=()=>{n(!1)},c=w=>{l(()=>w)},f=p.useMemo(()=>({isAlertOpen:t,alertContent:o,alertType:r,alertCallback:a,addAlertCallback:c,openAlert:u,closeAlert:d}),[t,o,r]);return m.jsx(L0.Provider,{value:f,children:e})}const A0=p.createContext({isModalOpen:!1,modalContent:m.jsx("div",{}),modalCallback:()=>{},addModalCallback:()=>{},openModal:()=>{},closeModal:()=>{}}),wa=()=>p.useContext(A0);function yk({children:e}){const[t,n]=p.useState(!1),[r,i]=p.useState(m.jsx("div",{})),[o,s]=p.useState(()=>{}),a=c=>{i(c),n(!0)},l=()=>{n(!1)},u=c=>{s(()=>c)},d=p.useMemo(()=>({isModalOpen:t,modalContent:r,modalCallback:o,addModalCallback:u,openModal:a,closeModal:l}),[t,r,o]);return m.jsx(A0.Provider,{value:d,children:e})}function gk({children:e}){return m.jsx(vk,{children:m.jsx(yk,{children:m.jsx(mk,{children:e})})})}const Er={ROOT:"/",EVENT_PAGE:"/eventPage",QUIZ_WINNER_DRAW:"/quizWinnerDraw",FASTEST_WINNER_DRAW:"/fastestWinnerDraw",WINNER_RESULT:"/winnerResult"};function wk({headerTitle:e,navTitles:t}){const n="font-bold text-3xl";return t?m.jsxs("div",{className:"flex flex-col",children:[m.jsx("h2",{className:`${n}`,children:e}),m.jsx("ul",{className:"flex gap-2 rounded-sm bg-slate-200",children:t.map(r=>m.jsx("li",{children:r.navTitle},r.navTitleId))})]}):m.jsx("h2",{className:`${n}`,children:e})}function xk(e,t){const n=p.createContext(t);function r(o){const{children:s,...a}=o,l=p.useMemo(()=>a,Object.values(a));return m.jsx(n.Provider,{value:l,children:s})}function i(o){const s=p.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,i]}function xa(e,t=[]){let n=[];function r(o,s){const a=p.createContext(s),l=n.length;n=[...n,s];function u(c){const{scope:f,children:w,...x}=c,y=(f==null?void 0:f[e][l])||a,_=p.useMemo(()=>x,Object.values(x));return m.jsx(y.Provider,{value:_,children:w})}function d(c,f){const w=(f==null?void 0:f[e][l])||a,x=p.useContext(w);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${c}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,d]}const i=()=>{const o=n.map(s=>p.createContext(s));return function(a){const l=(a==null?void 0:a[e])||o;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,Sk(i,...t)]}function Sk(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const c=l(o)[`__scope${u}`];return{...a,...c}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function _k(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function I0(...e){return t=>e.forEach(n=>_k(n,t))}function Ht(...e){return p.useCallback(I0(...e),e)}var Fo=p.forwardRef((e,t)=>{const{children:n,...r}=e,i=p.Children.toArray(n),o=i.find(Ck);if(o){const s=o.props.children,a=i.map(l=>l===o?p.Children.count(s)>1?p.Children.only(null):p.isValidElement(s)?s.props.children:null:l);return m.jsx(Jd,{...r,ref:t,children:p.isValidElement(s)?p.cloneElement(s,void 0,a):null})}return m.jsx(Jd,{...r,ref:t,children:n})});Fo.displayName="Slot";var Jd=p.forwardRef((e,t)=>{const{children:n,...r}=e;if(p.isValidElement(n)){const i=kk(n);return p.cloneElement(n,{...Ek(r,n.props),ref:t?I0(t,i):i})}return p.Children.count(n)>1?p.Children.only(null):null});Jd.displayName="SlotClone";var F0=({children:e})=>m.jsx(m.Fragment,{children:e});function Ck(e){return p.isValidElement(e)&&e.type===F0}function Ek(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{o(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function kk(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Nk(e){const t=e+"CollectionProvider",[n,r]=xa(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=w=>{const{scope:x,children:y}=w,_=K.useRef(null),v=K.useRef(new Map).current;return m.jsx(i,{scope:x,itemMap:v,collectionRef:_,children:y})};s.displayName=t;const a=e+"CollectionSlot",l=K.forwardRef((w,x)=>{const{scope:y,children:_}=w,v=o(a,y),h=Ht(x,v.collectionRef);return m.jsx(Fo,{ref:h,children:_})});l.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",c=K.forwardRef((w,x)=>{const{scope:y,children:_,...v}=w,h=K.useRef(null),g=Ht(x,h),E=o(u,y);return K.useEffect(()=>(E.itemMap.set(h,{ref:h,...v}),()=>void E.itemMap.delete(h))),m.jsx(Fo,{[d]:"",ref:g,children:_})});c.displayName=u;function f(w){const x=o(e+"CollectionConsumer",w);return K.useCallback(()=>{const _=x.collectionRef.current;if(!_)return[];const v=Array.from(_.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((E,D)=>v.indexOf(E.ref.current)-v.indexOf(D.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:l,ItemSlot:c},f,r]}function yn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Ni(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ou({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=Rk({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:r,a=Ni(n),l=p.useCallback(u=>{if(o){const c=typeof u=="function"?u(e):u;c!==e&&a(c)}else i(u)},[o,e,i,a]);return[s,l]}function Rk({defaultProp:e,onChange:t}){const n=p.useState(e),[r]=n,i=p.useRef(r),o=Ni(t);return p.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var Pk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],jt=Pk.reduce((e,t)=>{const n=p.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?Fo:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(a,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Dk(e,t){e&&pa.flushSync(()=>e.dispatchEvent(t))}var Xs=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{};function Mk(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var Sa=e=>{const{present:t,children:n}=e,r=bk(t),i=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),o=Ht(r.ref,Tk(i));return typeof n=="function"||r.isPresent?p.cloneElement(i,{ref:o}):null};Sa.displayName="Presence";function bk(e){const[t,n]=p.useState(),r=p.useRef({}),i=p.useRef(e),o=p.useRef("none"),s=e?"mounted":"unmounted",[a,l]=Mk(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=Ja(r.current);o.current=a==="mounted"?u:"none"},[a]),Xs(()=>{const u=r.current,d=i.current;if(d!==e){const f=o.current,w=Ja(u);e?l("MOUNT"):w==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&f!==w?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Xs(()=>{if(t){const u=c=>{const w=Ja(r.current).includes(c.animationName);c.target===t&&w&&pa.flushSync(()=>l("ANIMATION_END"))},d=c=>{c.target===t&&(o.current=Ja(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:p.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Ja(e){return(e==null?void 0:e.animationName)||"none"}function Tk(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ok=ey.useId||(()=>{}),jk=0;function Rs(e){const[t,n]=p.useState(Ok());return Xs(()=>{n(r=>r??String(jk++))},[e]),t?`radix-${t}`:""}var yh="Collapsible",[Lk,U0]=xa(yh),[Ak,gh]=Lk(yh),z0=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:o,onOpenChange:s,...a}=e,[l=!1,u]=Ou({prop:r,defaultProp:i,onChange:s});return m.jsx(Ak,{scope:n,disabled:o,contentId:Rs(),open:l,onOpenToggle:p.useCallback(()=>u(d=>!d),[u]),children:m.jsx(jt.div,{"data-state":xh(l),"data-disabled":o?"":void 0,...a,ref:t})})});z0.displayName=yh;var Y0="CollapsibleTrigger",W0=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=gh(Y0,n);return m.jsx(jt.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":xh(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:yn(e.onClick,i.onOpenToggle)})});W0.displayName=Y0;var wh="CollapsibleContent",$0=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=gh(wh,e.__scopeCollapsible);return m.jsx(Sa,{present:n||i.open,children:({present:o})=>m.jsx(Ik,{...r,ref:t,present:o})})});$0.displayName=wh;var Ik=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...o}=e,s=gh(wh,n),[a,l]=p.useState(r),u=p.useRef(null),d=Ht(t,u),c=p.useRef(0),f=c.current,w=p.useRef(0),x=w.current,y=s.open||a,_=p.useRef(y),v=p.useRef();return p.useEffect(()=>{const h=requestAnimationFrame(()=>_.current=!1);return()=>cancelAnimationFrame(h)},[]),Xs(()=>{const h=u.current;if(h){v.current=v.current||{transitionDuration:h.style.transitionDuration,animationName:h.style.animationName},h.style.transitionDuration="0s",h.style.animationName="none";const g=h.getBoundingClientRect();c.current=g.height,w.current=g.width,_.current||(h.style.transitionDuration=v.current.transitionDuration,h.style.animationName=v.current.animationName),l(r)}},[s.open,r]),m.jsx(jt.div,{"data-state":xh(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!y,...o,ref:d,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:y&&i})});function xh(e){return e?"open":"closed"}var Fk=z0,Uk=W0,zk=$0,Yk=p.createContext(void 0);function Wk(e){const t=p.useContext(Yk);return e||t||"ltr"}var ar="Accordion",$k=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Sh,Hk,Vk]=Nk(ar),[ju,hO]=xa(ar,[Vk,U0]),_h=U0(),H0=K.forwardRef((e,t)=>{const{type:n,...r}=e,i=r,o=r;return m.jsx(Sh.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?m.jsx(Kk,{...o,ref:t}):m.jsx(Gk,{...i,ref:t})})});H0.displayName=ar;var[V0,Bk]=ju(ar),[B0,Qk]=ju(ar,{collapsible:!1}),Gk=K.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:o=!1,...s}=e,[a,l]=Ou({prop:n,defaultProp:r,onChange:i});return m.jsx(V0,{scope:e.__scopeAccordion,value:a?[a]:[],onItemOpen:l,onItemClose:K.useCallback(()=>o&&l(""),[o,l]),children:m.jsx(B0,{scope:e.__scopeAccordion,collapsible:o,children:m.jsx(Q0,{...s,ref:t})})})}),Kk=K.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...o}=e,[s=[],a]=Ou({prop:n,defaultProp:r,onChange:i}),l=K.useCallback(d=>a((c=[])=>[...c,d]),[a]),u=K.useCallback(d=>a((c=[])=>c.filter(f=>f!==d)),[a]);return m.jsx(V0,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:m.jsx(B0,{scope:e.__scopeAccordion,collapsible:!0,children:m.jsx(Q0,{...o,ref:t})})})}),[Zk,Lu]=ju(ar),Q0=K.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:i,orientation:o="vertical",...s}=e,a=K.useRef(null),l=Ht(a,t),u=Hk(n),c=Wk(i)==="ltr",f=yn(e.onKeyDown,w=>{var R;if(!$k.includes(w.key))return;const x=w.target,y=u().filter(T=>{var L;return!((L=T.ref.current)!=null&&L.disabled)}),_=y.findIndex(T=>T.ref.current===x),v=y.length;if(_===-1)return;w.preventDefault();let h=_;const g=0,E=v-1,D=()=>{h=_+1,h>E&&(h=g)},S=()=>{h=_-1,h{const{__scopeAccordion:n,value:r,...i}=e,o=Lu(ou,n),s=Bk(ou,n),a=_h(n),l=Rs(),u=r&&s.value.includes(r)||!1,d=o.disabled||e.disabled;return m.jsx(qk,{scope:n,open:u,disabled:d,triggerId:l,children:m.jsx(Fk,{"data-orientation":o.orientation,"data-state":ew(u),...a,...i,ref:t,disabled:d,open:u,onOpenChange:c=>{c?s.onItemOpen(r):s.onItemClose(r)}})})});G0.displayName=ou;var K0="AccordionHeader",Z0=K.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=Lu(ar,n),o=Ch(K0,n);return m.jsx(jt.h3,{"data-orientation":i.orientation,"data-state":ew(o.open),"data-disabled":o.disabled?"":void 0,...r,ref:t})});Z0.displayName=K0;var ef="AccordionTrigger",q0=K.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=Lu(ar,n),o=Ch(ef,n),s=Qk(ef,n),a=_h(n);return m.jsx(Sh.ItemSlot,{scope:n,children:m.jsx(Uk,{"aria-disabled":o.open&&!s.collapsible||void 0,"data-orientation":i.orientation,id:o.triggerId,...a,...r,ref:t})})});q0.displayName=ef;var X0="AccordionContent",J0=K.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=Lu(ar,n),o=Ch(X0,n),s=_h(n);return m.jsx(zk,{role:"region","aria-labelledby":o.triggerId,"data-orientation":i.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});J0.displayName=X0;function ew(e){return e?"open":"closed"}var Xk=H0,Jk=G0,eN=Z0,tw=q0,nw=J0;/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const tN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),rw=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var nN={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const rN=p.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:s,...a},l)=>p.createElement("svg",{ref:l,...nN,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:rw("lucide",i),...a},[...s.map(([u,d])=>p.createElement(u,d)),...Array.isArray(o)?o:[o]]));/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Eh=(e,t)=>{const n=p.forwardRef(({className:r,...i},o)=>p.createElement(rN,{ref:o,iconNode:t,className:rw(`lucide-${tN(e)}`,r),...i}));return n.displayName=`${e}`,n};/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const iN=Eh("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const oN=Eh("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** + * @license lucide-react v0.414.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const sN=Eh("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);function iw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ta(o)))==null?void 0:s.classGroupId}const ov=/^\[(.+)\]$/;function lN(e){if(ov.test(e)){const t=ov.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function uN(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return dN(Object.entries(e.classGroups),n).forEach(([o,s])=>{tf(s,r,o,t)}),r}function tf(e,t,n,r){e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:sv(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(cN(i)){tf(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,s])=>{tf(s,sv(t,o),n,r)})})}function sv(e,t){let n=e;return t.split(kh).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function cN(e){return e.isThemeGetter}function dN(e,t){return t?e.map(([n,r])=>{const i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([s,a])=>[t+s,a])):o);return[n,i]}):e}function fN(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function i(o,s){n.set(o,s),t++,t>e&&(t=0,r=n,n=new Map)}return{get(o){let s=n.get(o);if(s!==void 0)return s;if((s=r.get(o))!==void 0)return i(o,s),s},set(o,s){n.has(o)?n.set(o,s):i(o,s)}}}const sw="!";function hN(e){const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length;function s(a){const l=[];let u=0,d=0,c;for(let _=0;_d?c-d:void 0;return{modifiers:l,hasImportantModifier:w,baseClassName:x,maybePostfixModifierPosition:y}}return n?function(l){return n({className:l,parseClassName:s})}:s}function pN(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function mN(e){return{cache:fN(e.cacheSize),parseClassName:hN(e),...aN(e)}}const vN=/\s+/;function yN(e,t){const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=new Set;return e.trim().split(vN).map(s=>{const{modifiers:a,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:d}=n(s);let c=!!d,f=r(c?u.substring(0,d):u);if(!f){if(!c)return{isTailwindClass:!1,originalClassName:s};if(f=r(u),!f)return{isTailwindClass:!1,originalClassName:s};c=!1}const w=pN(a).join(":");return{isTailwindClass:!0,modifierId:l?w+sw:w,classGroupId:f,originalClassName:s,hasPostfixModifier:c}}).reverse().filter(s=>{if(!s.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:u}=s,d=a+l;return o.has(d)?!1:(o.add(d),i(l,u).forEach(c=>o.add(a+c)),!0)}).reverse().map(s=>s.originalClassName).join(" ")}function gN(){let e=0,t,n,r="";for(;ec(d),e());return n=mN(u),r=n.cache.get,i=n.cache.set,o=a,a(l)}function a(l){const u=r(l);if(u)return u;const d=yN(l,n);return i(l,d),d}return function(){return o(gN.apply(null,arguments))}}function Me(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const lw=/^\[(?:([a-z-]+):)?(.+)\]$/i,xN=/^\d+\/\d+$/,SN=new Set(["px","full","screen"]),_N=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,CN=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,EN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,kN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,NN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function zn(e){return ai(e)||SN.has(e)||xN.test(e)}function mr(e){return Wo(e,"length",jN)}function ai(e){return!!e&&!Number.isNaN(Number(e))}function el(e){return Wo(e,"number",ai)}function as(e){return!!e&&Number.isInteger(Number(e))}function RN(e){return e.endsWith("%")&&ai(e.slice(0,-1))}function re(e){return lw.test(e)}function vr(e){return _N.test(e)}const PN=new Set(["length","size","percentage"]);function DN(e){return Wo(e,PN,uw)}function MN(e){return Wo(e,"position",uw)}const bN=new Set(["image","url"]);function TN(e){return Wo(e,bN,AN)}function ON(e){return Wo(e,"",LN)}function ls(){return!0}function Wo(e,t,n){const r=lw.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function jN(e){return CN.test(e)&&!EN.test(e)}function uw(){return!1}function LN(e){return kN.test(e)}function AN(e){return NN.test(e)}function IN(){const e=Me("colors"),t=Me("spacing"),n=Me("blur"),r=Me("brightness"),i=Me("borderColor"),o=Me("borderRadius"),s=Me("borderSpacing"),a=Me("borderWidth"),l=Me("contrast"),u=Me("grayscale"),d=Me("hueRotate"),c=Me("invert"),f=Me("gap"),w=Me("gradientColorStops"),x=Me("gradientColorStopPositions"),y=Me("inset"),_=Me("margin"),v=Me("opacity"),h=Me("padding"),g=Me("saturate"),E=Me("scale"),D=Me("sepia"),S=Me("skew"),M=Me("space"),R=Me("translate"),T=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto",re,t],H=()=>[re,t],Ce=()=>["",zn,mr],oe=()=>["auto",ai,re],Ze=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],rt=()=>["solid","dashed","dotted","double","none"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>["start","end","center","between","around","evenly","stretch"],$=()=>["","0",re],B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],J=()=>[ai,el],te=()=>[ai,re];return{cacheSize:500,separator:":",theme:{colors:[ls],spacing:[zn,mr],blur:["none","",vr,re],brightness:J(),borderColor:[e],borderRadius:["none","","full",vr,re],borderSpacing:H(),borderWidth:Ce(),contrast:J(),grayscale:$(),hueRotate:te(),invert:$(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[RN,mr],inset:X(),margin:X(),opacity:J(),padding:H(),saturate:J(),scale:J(),sepia:$(),skew:te(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",re]}],container:["container"],columns:[{columns:[vr]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ze(),re]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",as,re]}],basis:[{basis:X()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",re]}],grow:[{grow:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",as,re]}],"grid-cols":[{"grid-cols":[ls]}],"col-start-end":[{col:["auto",{span:["full",as,re]},re]}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":[ls]}],"row-start-end":[{row:["auto",{span:[as,re]},re]}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",re]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...A()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...A(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...A(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[M]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[M]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",re,t]}],"min-w":[{"min-w":[re,t,"min","max","fit"]}],"max-w":[{"max-w":[re,t,"none","full","min","max","fit","prose",{screen:[vr]},vr]}],h:[{h:[re,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[re,t,"auto","min","max","fit"]}],"font-size":[{text:["base",vr,mr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",el]}],"font-family":[{font:[ls]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",re]}],"line-clamp":[{"line-clamp":["none",ai,el]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",zn,re]}],"list-image":[{"list-image":["none",re]}],"list-style-type":[{list:["none","disc","decimal",re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...rt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",zn,mr]}],"underline-offset":[{"underline-offset":["auto",zn,re]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ze(),MN]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",DN]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},TN]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...rt(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:rt()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...rt()]}],"outline-offset":[{"outline-offset":[zn,re]}],"outline-w":[{outline:[zn,mr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[zn,mr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",vr,ON]}],"shadow-color":[{shadow:[ls]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...ae(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ae()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",vr,re]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[g]}],sepia:[{sepia:[D]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[D]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",re]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",re]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[as,re]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",re]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",re]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",re]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[zn,mr,el]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const FN=wN(IN);function _e(...e){return FN(Kn(e))}const cw=Xk,Nh=p.forwardRef(({className:e,...t},n)=>m.jsx(Jk,{ref:n,className:_e("border-b border-gray-400",e),...t}));Nh.displayName="AccordionItem";const Rh=p.forwardRef(({className:e,children:t,...n},r)=>m.jsx(eN,{className:"flex flex-1",children:m.jsxs(tw,{ref:r,className:_e("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,m.jsx(iN,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Rh.displayName=tw.displayName;const Ph=p.forwardRef(({className:e,children:t,...n},r)=>m.jsx(nw,{ref:r,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm transition-all",...n,children:m.jsx("div",{className:_e("pb-4 pt-0",e),children:t})}));Ph.displayName=nw.displayName;const UN=[{id:1,name:"이벤트 관리",path:Er.EVENT_PAGE},{id:2,name:"당첨자 관리",subRoutes:[{id:1,name:"추첨하기",path:Er.QUIZ_WINNER_DRAW},{id:2,name:"당첨자 목록",path:Er.WINNER_RESULT}]},{id:3,name:"기대평 관리",path:"/"}];function zN({isChecked:e,handleClose:t}){const n=nE(),r=i=>{i&&(n(i),t())};return m.jsx("div",{className:`absolute m-[-100px_0_0_-50px] h-screen w-[300px] origin-[0%_0%] transform list-none bg-slate-200 px-10 pt-[125px] font-sans antialiased transition-all duration-500 ease-[cubic-bezier(0.77,0.2,0.05,1.0)] ${e?"translate-x-0 opacity-100":"-translate-x-full opacity-0"}`,children:UN.map(i=>i.subRoutes?m.jsx(cw,{type:"single",collapsible:!0,children:m.jsxs(Nh,{value:String(i.id),children:[m.jsx(Rh,{children:i.name}),m.jsx(Ph,{children:i.subRoutes.map(o=>m.jsx("div",{role:"presentation",className:"cursor-pointer hover:underline",onClick:()=>{r(o.path)},children:o.name},o.id))})]})}):m.jsx("div",{role:"presentation",className:"border-b border-gray-400 py-4 hover:cursor-pointer hover:underline",onClick:()=>{r(i.path)},children:i.name},i.id))})}function YN(){const[e,t]=p.useState(!1),n=()=>{t(!e)},r=()=>{t(!1)},i="block w-8 h-1 mb-1 relative bg-[#cdcdcd] rounded z-10 origin-[4px_0px] transition-transform transition-bg duration-500 ease-custom-bezier";return m.jsx("nav",{role:"navigation",className:"ml-5 mt-10",children:m.jsxs("div",{id:"menuToggle",className:"relative z-10 select-none",children:[m.jsx("input",{type:"checkbox",checked:e,onChange:n,className:"absolute right-1 top-[-7px] z-20 h-8 w-10 cursor-pointer opacity-0"}),m.jsx("span",{className:`${i} ${e?"translate-x-[-2px] translate-y-[-1px] rotate-45 transform bg-slate-500":""}`}),m.jsx("span",{className:` ${i} ${e?"rotate-0 scale-[0.2,0.2] transform opacity-0":""}`}),m.jsx("span",{className:`${i} ${e?"translate-x-[-2px] translate-y-[-1px] rotate-[-45deg] transform bg-slate-500":""}`}),m.jsx(zN,{isChecked:e,handleClose:r})]})})}const Js=e=>typeof e=="number"&&!isNaN(e),wi=e=>typeof e=="string",zt=e=>typeof e=="function",El=e=>wi(e)||zt(e)?e:null,nf=e=>p.isValidElement(e)||wi(e)||zt(e)||Js(e);function WN(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Au(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(s){let{children:a,position:l,preventExitTransition:u,done:d,nodeRef:c,isIn:f,playToast:w}=s;const x=r?`${t}--${l}`:t,y=r?`${n}--${l}`:n,_=p.useRef(0);return p.useLayoutEffect(()=>{const v=c.current,h=x.split(" "),g=E=>{E.target===c.current&&(w(),v.removeEventListener("animationend",g),v.removeEventListener("animationcancel",g),_.current===0&&E.type!=="animationcancel"&&v.classList.remove(...h))};v.classList.add(...h),v.addEventListener("animationend",g),v.addEventListener("animationcancel",g)},[]),p.useEffect(()=>{const v=c.current,h=()=>{v.removeEventListener("animationend",h),i?WN(v,d,o):d()};f||(u?h():(_.current=1,v.className+=` ${y}`,v.addEventListener("animationend",h)))},[f]),K.createElement(K.Fragment,null,a)}}function av(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Ct=new Map;let ea=[];const rf=new Set,$N=e=>rf.forEach(t=>t(e)),dw=()=>Ct.size>0;function fw(e,t){var n;if(t)return!((n=Ct.get(t))==null||!n.isToastActive(e));let r=!1;return Ct.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function hw(e,t){nf(e)&&(dw()||ea.push({content:e,options:t}),Ct.forEach(n=>{n.buildToast(e,t)}))}function lv(e,t){Ct.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function HN(e){const{subscribe:t,getSnapshot:n,setProps:r}=p.useRef(function(o){const s=o.containerId||1;return{subscribe(a){const l=function(d,c,f){let w=1,x=0,y=[],_=[],v=[],h=c;const g=new Map,E=new Set,D=()=>{v=Array.from(g.values()),E.forEach(R=>R())},S=R=>{_=R==null?[]:_.filter(T=>T!==R),D()},M=R=>{const{toastId:T,onOpen:L,updateId:X,children:H}=R.props,Ce=X==null;R.staleId&&g.delete(R.staleId),g.set(T,R),_=[..._,R.props.toastId].filter(oe=>oe!==R.staleId),D(),f(av(R,Ce?"added":"updated")),Ce&&zt(L)&&L(p.isValidElement(H)&&H.props)};return{id:d,props:h,observe:R=>(E.add(R),()=>E.delete(R)),toggle:(R,T)=>{g.forEach(L=>{T!=null&&T!==L.props.toastId||zt(L.toggle)&&L.toggle(R)})},removeToast:S,toasts:g,clearQueue:()=>{x-=y.length,y=[]},buildToast:(R,T)=>{if((te=>{let{containerId:Fe,toastId:we,updateId:He}=te;const Ue=Fe?Fe!==d:d!==1,Gt=g.has(we)&&He==null;return Ue||Gt})(T))return;const{toastId:L,updateId:X,data:H,staleId:Ce,delay:oe}=T,Ze=()=>{S(L)},rt=X==null;rt&&x++;const ae={...h,style:h.toastStyle,key:w++,...Object.fromEntries(Object.entries(T).filter(te=>{let[Fe,we]=te;return we!=null})),toastId:L,updateId:X,data:H,closeToast:Ze,isIn:!1,className:El(T.className||h.toastClassName),bodyClassName:El(T.bodyClassName||h.bodyClassName),progressClassName:El(T.progressClassName||h.progressClassName),autoClose:!T.isLoading&&(A=T.autoClose,$=h.autoClose,A===!1||Js(A)&&A>0?A:$),deleteToast(){const te=g.get(L),{onClose:Fe,children:we}=te.props;zt(Fe)&&Fe(p.isValidElement(we)&&we.props),f(av(te,"removed")),g.delete(L),x--,x<0&&(x=0),y.length>0?M(y.shift()):D()}};var A,$;ae.closeButton=h.closeButton,T.closeButton===!1||nf(T.closeButton)?ae.closeButton=T.closeButton:T.closeButton===!0&&(ae.closeButton=!nf(h.closeButton)||h.closeButton);let B=R;p.isValidElement(R)&&!wi(R.type)?B=p.cloneElement(R,{closeToast:Ze,toastProps:ae,data:H}):zt(R)&&(B=R({closeToast:Ze,toastProps:ae,data:H}));const J={content:B,props:ae,staleId:Ce};h.limit&&h.limit>0&&x>h.limit&&rt?y.push(J):Js(oe)?setTimeout(()=>{M(J)},oe):M(J)},setProps(R){h=R},setToggle:(R,T)=>{g.get(R).toggle=T},isToastActive:R=>_.some(T=>T===R),getSnapshot:()=>h.newestOnTop?v.reverse():v}}(s,o,$N);Ct.set(s,l);const u=l.observe(a);return ea.forEach(d=>hw(d.content,d.options)),ea=[],()=>{u(),Ct.delete(s)}},setProps(a){var l;(l=Ct.get(s))==null||l.setProps(a)},getSnapshot(){var a;return(a=Ct.get(s))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const i=p.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!i)return[];const s=new Map;return i.forEach(a=>{const{position:l}=a.props;s.has(l)||s.set(l,[]),s.get(l).push(a)}),Array.from(s,a=>o(a[0],a[1]))},isToastActive:fw,count:i==null?void 0:i.length}}function VN(e){const[t,n]=p.useState(!1),[r,i]=p.useState(!1),o=p.useRef(null),s=p.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:l,closeToast:u,onClick:d,closeOnClick:c}=e;var f,w;function x(){n(!0)}function y(){n(!1)}function _(g){const E=o.current;s.canDrag&&E&&(s.didMove=!0,t&&y(),s.delta=e.draggableDirection==="x"?g.clientX-s.start:g.clientY-s.start,s.start!==g.clientX&&(s.canCloseOnClick=!1),E.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,E.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function v(){document.removeEventListener("pointermove",_),document.removeEventListener("pointerup",v);const g=o.current;if(s.canDrag&&s.didMove&&g){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();g.style.transition="transform 0.2s, opacity 0.2s",g.style.removeProperty("transform"),g.style.removeProperty("opacity")}}(w=Ct.get((f={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||w.setToggle(f.id,f.fn),p.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||y(),window.addEventListener("focus",x),window.addEventListener("blur",y),()=>{window.removeEventListener("focus",x),window.removeEventListener("blur",y)}},[e.pauseOnFocusLoss]);const h={onPointerDown:function(g){if(e.draggable===!0||e.draggable===g.pointerType){s.didMove=!1,document.addEventListener("pointermove",_),document.addEventListener("pointerup",v);const E=o.current;s.canCloseOnClick=!0,s.canDrag=!0,E.style.transition="none",e.draggableDirection==="x"?(s.start=g.clientX,s.removalDistance=E.offsetWidth*(e.draggablePercent/100)):(s.start=g.clientY,s.removalDistance=E.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(g){const{top:E,bottom:D,left:S,right:M}=o.current.getBoundingClientRect();g.nativeEvent.type!=="touchend"&&e.pauseOnHover&&g.clientX>=S&&g.clientX<=M&&g.clientY>=E&&g.clientY<=D?y():x()}};return a&&l&&(h.onMouseEnter=y,e.stacked||(h.onMouseLeave=x)),c&&(h.onClick=g=>{d&&d(g),s.canCloseOnClick&&u()}),{playToast:x,pauseToast:y,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:h}}function BN(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:s,style:a,controlledProgress:l,progress:u,rtl:d,isIn:c,theme:f}=e;const w=o||l&&u===0,x={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(x.transform=`scaleX(${u})`);const y=Kn("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),_=zt(s)?s({rtl:d,type:i,defaultClassName:y}):Kn(y,s),v={[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{c&&r()}};return K.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":w},K.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${i}`}),K.createElement("div",{role:"progressbar","aria-hidden":w?"true":"false","aria-label":"notification timer",className:_,style:x,...v}))}let QN=1;const pw=()=>""+QN++;function GN(e){return e&&(wi(e.toastId)||Js(e.toastId))?e.toastId:pw()}function Ps(e,t){return hw(e,t),t.toastId}function su(e,t){return{...t,type:t&&t.type||e,toastId:GN(t)}}function tl(e){return(t,n)=>Ps(t,su(e,n))}function Re(e,t){return Ps(e,su("default",t))}Re.loading=(e,t)=>Ps(e,su("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Re.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=wi(i)?Re.loading(i,n):Re.loading(i.render,{...n,...i}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(d,c,f)=>{if(c==null)return void Re.dismiss(r);const w={type:d,...a,...n,data:f},x=wi(c)?{render:c}:c;return r?Re.update(r,{...w,...x}):Re(x.render,{...w,...x}),f},u=zt(e)?e():e;return u.then(d=>l("success",s,d)).catch(d=>l("error",o,d)),u},Re.success=tl("success"),Re.info=tl("info"),Re.error=tl("error"),Re.warning=tl("warning"),Re.warn=Re.warning,Re.dark=(e,t)=>Ps(e,su("default",{theme:"dark",...t})),Re.dismiss=function(e){(function(t){var n;if(dw()){if(t==null||wi(n=t)||Js(n))Ct.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Ct.get(t.containerId);r?r.removeToast(t.id):Ct.forEach(i=>{i.removeToast(t.id)})}}else ea=ea.filter(r=>t!=null&&r.options.toastId!==t)})(e)},Re.clearWaitingQueue=function(e){e===void 0&&(e={}),Ct.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},Re.isActive=fw,Re.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=Ct.get(s||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:pw()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,Ps(s,o)}},Re.done=e=>{Re.update(e,{progress:1})},Re.onChange=function(e){return rf.add(e),()=>{rf.delete(e)}},Re.play=e=>lv(!0,e),Re.pause=e=>lv(!1,e);const KN=typeof window<"u"?p.useLayoutEffect:p.useEffect,nl=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return K.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},jc={info:function(e){return K.createElement(nl,{...e},K.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return K.createElement(nl,{...e},K.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return K.createElement(nl,{...e},K.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return K.createElement(nl,{...e},K.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return K.createElement("div",{className:"Toastify__spinner"})}},ZN=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=VN(e),{closeButton:s,children:a,autoClose:l,onClick:u,type:d,hideProgressBar:c,closeToast:f,transition:w,position:x,className:y,style:_,bodyClassName:v,bodyStyle:h,progressClassName:g,progressStyle:E,updateId:D,role:S,progress:M,rtl:R,toastId:T,deleteToast:L,isIn:X,isLoading:H,closeOnClick:Ce,theme:oe}=e,Ze=Kn("Toastify__toast",`Toastify__toast-theme--${oe}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":R},{"Toastify__toast--close-on-click":Ce}),rt=zt(y)?y({rtl:R,position:x,type:d,defaultClassName:Ze}):Kn(Ze,y),ae=function(J){let{theme:te,type:Fe,isLoading:we,icon:He}=J,Ue=null;const Gt={theme:te,type:Fe};return He===!1||(zt(He)?Ue=He({...Gt,isLoading:we}):p.isValidElement(He)?Ue=p.cloneElement(He,Gt):we?Ue=jc.spinner():(Bo=>Bo in jc)(Fe)&&(Ue=jc[Fe](Gt))),Ue}(e),A=!!M||!l,$={closeToast:f,type:d,theme:oe};let B=null;return s===!1||(B=zt(s)?s($):p.isValidElement(s)?p.cloneElement(s,$):function(J){let{closeToast:te,theme:Fe,ariaLabel:we="close"}=J;return K.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Fe}`,type:"button",onClick:He=>{He.stopPropagation(),te(He)},"aria-label":we},K.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},K.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}($)),K.createElement(w,{isIn:X,done:L,position:x,preventExitTransition:n,nodeRef:r,playToast:o},K.createElement("div",{id:T,onClick:u,"data-in":X,className:rt,...i,style:_,ref:r},K.createElement("div",{...X&&{role:S},className:zt(v)?v({type:d}):Kn("Toastify__toast-body",v),style:h},ae!=null&&K.createElement("div",{className:Kn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!H})},ae),K.createElement("div",null,a)),B,K.createElement(BN,{...D&&!A?{key:`pb-${D}`}:{},rtl:R,theme:oe,delay:l,isRunning:t,isIn:X,closeToast:f,hide:c,type:d,style:E,className:g,controlledProgress:A,progress:M||0})))},Iu=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},qN=Au(Iu("bounce",!0));Au(Iu("slide",!0));Au(Iu("zoom"));Au(Iu("flip"));const XN={position:"top-right",transition:qN,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function JN(e){let t={...XN,...e};const n=e.stacked,[r,i]=p.useState(!0),o=p.useRef(null),{getToastToRender:s,isToastActive:a,count:l}=HN(t),{className:u,style:d,rtl:c,containerId:f}=t;function w(y){const _=Kn("Toastify__toast-container",`Toastify__toast-container--${y}`,{"Toastify__toast-container--rtl":c});return zt(u)?u({position:y,rtl:c,defaultClassName:_}):Kn(_,El(u))}function x(){n&&(i(!0),Re.play())}return KN(()=>{if(n){var y;const _=o.current.querySelectorAll('[data-in="true"]'),v=12,h=(y=t.position)==null?void 0:y.includes("top");let g=0,E=0;Array.from(_).reverse().forEach((D,S)=>{const M=D;M.classList.add("Toastify__toast--stacked"),S>0&&(M.dataset.collapsed=`${r}`),M.dataset.pos||(M.dataset.pos=h?"top":"bot");const R=g*(r?.2:1)+(r?0:v*S);M.style.setProperty("--y",`${h?R:-1*R}px`),M.style.setProperty("--g",`${v}`),M.style.setProperty("--s",""+(1-(r?E:0))),g+=M.offsetHeight,E+=.025})}},[r,l,n]),K.createElement("div",{ref:o,className:"Toastify",id:f,onMouseEnter:()=>{n&&(i(!1),Re.pause())},onMouseLeave:x},s((y,_)=>{const v=_.length?{...d}:{...d,pointerEvents:"none"};return K.createElement("div",{className:w(y),style:v,key:`container-${y}`},_.map(h=>{let{content:g,props:E}=h;return K.createElement(ZN,{...E,stacked:n,collapseAll:x,isIn:a(E.toastId,E.containerId),style:E.style,key:`toast-${E.key}`},g)}))}))}function eR(e,t=globalThis==null?void 0:globalThis.document){const n=Ni(e);p.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var tR="DismissableLayer",of="dismissableLayer.update",nR="dismissableLayer.pointerDownOutside",rR="dismissableLayer.focusOutside",uv,mw=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vw=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...l}=e,u=p.useContext(mw),[d,c]=p.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=p.useState({}),x=Ht(t,M=>c(M)),y=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=y.indexOf(_),h=d?y.indexOf(d):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,E=h>=v,D=sR(M=>{const R=M.target,T=[...u.branches].some(L=>L.contains(R));!E||T||(i==null||i(M),s==null||s(M),M.defaultPrevented||a==null||a())},f),S=aR(M=>{const R=M.target;[...u.branches].some(L=>L.contains(R))||(o==null||o(M),s==null||s(M),M.defaultPrevented||a==null||a())},f);return eR(M=>{h===u.layers.size-1&&(r==null||r(M),!M.defaultPrevented&&a&&(M.preventDefault(),a()))},f),p.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(uv=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),cv(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=uv)}},[d,f,n,u]),p.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),cv())},[d,u]),p.useEffect(()=>{const M=()=>w({});return document.addEventListener(of,M),()=>document.removeEventListener(of,M)},[]),m.jsx(jt.div,{...l,ref:x,style:{pointerEvents:g?E?"auto":"none":void 0,...e.style},onFocusCapture:yn(e.onFocusCapture,S.onFocusCapture),onBlurCapture:yn(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:yn(e.onPointerDownCapture,D.onPointerDownCapture)})});vw.displayName=tR;var iR="DismissableLayerBranch",oR=p.forwardRef((e,t)=>{const n=p.useContext(mw),r=p.useRef(null),i=Ht(t,r);return p.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),m.jsx(jt.div,{...e,ref:i})});oR.displayName=iR;function sR(e,t=globalThis==null?void 0:globalThis.document){const n=Ni(e),r=p.useRef(!1),i=p.useRef(()=>{});return p.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let l=function(){yw(nR,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function aR(e,t=globalThis==null?void 0:globalThis.document){const n=Ni(e),r=p.useRef(!1);return p.useEffect(()=>{const i=o=>{o.target&&!r.current&&yw(rR,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function cv(){const e=new CustomEvent(of);document.dispatchEvent(e)}function yw(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Dk(i,o):i.dispatchEvent(o)}var Lc="focusScope.autoFocusOnMount",Ac="focusScope.autoFocusOnUnmount",dv={bubbles:!1,cancelable:!0},lR="FocusScope",gw=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[a,l]=p.useState(null),u=Ni(i),d=Ni(o),c=p.useRef(null),f=Ht(t,y=>l(y)),w=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let y=function(g){if(w.paused||!a)return;const E=g.target;a.contains(E)?c.current=E:wr(c.current,{select:!0})},_=function(g){if(w.paused||!a)return;const E=g.relatedTarget;E!==null&&(a.contains(E)||wr(c.current,{select:!0}))},v=function(g){if(document.activeElement===document.body)for(const D of g)D.removedNodes.length>0&&wr(a)};document.addEventListener("focusin",y),document.addEventListener("focusout",_);const h=new MutationObserver(v);return a&&h.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",_),h.disconnect()}}},[r,a,w.paused]),p.useEffect(()=>{if(a){hv.add(w);const y=document.activeElement;if(!a.contains(y)){const v=new CustomEvent(Lc,dv);a.addEventListener(Lc,u),a.dispatchEvent(v),v.defaultPrevented||(uR(pR(ww(a)),{select:!0}),document.activeElement===y&&wr(a))}return()=>{a.removeEventListener(Lc,u),setTimeout(()=>{const v=new CustomEvent(Ac,dv);a.addEventListener(Ac,d),a.dispatchEvent(v),v.defaultPrevented||wr(y??document.body,{select:!0}),a.removeEventListener(Ac,d),hv.remove(w)},0)}}},[a,u,d,w]);const x=p.useCallback(y=>{if(!n&&!r||w.paused)return;const _=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,v=document.activeElement;if(_&&v){const h=y.currentTarget,[g,E]=cR(h);g&&E?!y.shiftKey&&v===E?(y.preventDefault(),n&&wr(g,{select:!0})):y.shiftKey&&v===g&&(y.preventDefault(),n&&wr(E,{select:!0})):v===h&&y.preventDefault()}},[n,r,w.paused]);return m.jsx(jt.div,{tabIndex:-1,...s,ref:f,onKeyDown:x})});gw.displayName=lR;function uR(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(wr(r,{select:t}),document.activeElement!==n)return}function cR(e){const t=ww(e),n=fv(t,e),r=fv(t.reverse(),e);return[n,r]}function ww(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function fv(e,t){for(const n of e)if(!dR(n,{upTo:t}))return n}function dR(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function fR(e){return e instanceof HTMLInputElement&&"select"in e}function wr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&fR(e)&&t&&e.select()}}var hv=hR();function hR(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=pv(e,t),e.unshift(t)},remove(t){var n;e=pv(e,t),(n=e[0])==null||n.resume()}}}function pv(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function pR(e){return e.filter(t=>t.tagName!=="A")}var mR="Portal",xw=p.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,o]=p.useState(!1);Xs(()=>o(!0),[]);const s=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?r0.createPortal(m.jsx(jt.div,{...r,ref:t}),s):null});xw.displayName=mR;var Ic=0;function vR(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??mv()),document.body.insertAdjacentElement("beforeend",e[1]??mv()),Ic++,()=>{Ic===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ic--}},[])}function mv(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var bn=function(){return bn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r"u")return OR;var t=jR(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},AR=Ew(),co="data-scroll-locked",IR=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` + .`.concat(gR,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(a,"px ").concat(r,`; + } + body[`).concat(co,`] { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(i,`px; + padding-top: `).concat(o,`px; + padding-right: `).concat(s,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(a,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(kl,` { + right: `).concat(a,"px ").concat(r,`; + } + + .`).concat(Nl,` { + margin-right: `).concat(a,"px ").concat(r,`; + } + + .`).concat(kl," .").concat(kl,` { + right: 0 `).concat(r,`; + } + + .`).concat(Nl," .").concat(Nl,` { + margin-right: 0 `).concat(r,`; + } + + body[`).concat(co,`] { + `).concat(wR,": ").concat(a,`px; + } +`)},yv=function(){var e=parseInt(document.body.getAttribute(co)||"0",10);return isFinite(e)?e:0},FR=function(){p.useEffect(function(){return document.body.setAttribute(co,(yv()+1).toString()),function(){var e=yv()-1;e<=0?document.body.removeAttribute(co):document.body.setAttribute(co,e.toString())}},[])},UR=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;FR();var o=p.useMemo(function(){return LR(i)},[i]);return p.createElement(AR,{styles:IR(o,!t,i,n?"":"!important")})},sf=!1;if(typeof window<"u")try{var rl=Object.defineProperty({},"passive",{get:function(){return sf=!0,!0}});window.addEventListener("test",rl,rl),window.removeEventListener("test",rl,rl)}catch{sf=!1}var Fi=sf?{passive:!1}:!1,zR=function(e){return e.tagName==="TEXTAREA"},kw=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!zR(e)&&n[t]==="visible")},YR=function(e){return kw(e,"overflowY")},WR=function(e){return kw(e,"overflowX")},gv=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=Nw(e,r);if(i){var o=Rw(e,r),s=o[1],a=o[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},$R=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},HR=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Nw=function(e,t){return e==="v"?YR(t):WR(t)},Rw=function(e,t){return e==="v"?$R(t):HR(t)},VR=function(e,t){return e==="h"&&t==="rtl"?-1:1},BR=function(e,t,n,r,i){var o=VR(e,window.getComputedStyle(t).direction),s=o*r,a=n.target,l=t.contains(a),u=!1,d=s>0,c=0,f=0;do{var w=Rw(e,a),x=w[0],y=w[1],_=w[2],v=y-_-o*x;(x||v)&&Nw(e,a)&&(c+=v,f+=x),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(c)<1||!i)||!d&&(Math.abs(f)<1||!i))&&(u=!0),u},il=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wv=function(e){return[e.deltaX,e.deltaY]},xv=function(e){return e&&"current"in e?e.current:e},QR=function(e,t){return e[0]===t[0]&&e[1]===t[1]},GR=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},KR=0,Ui=[];function ZR(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),i=p.useState(KR++)[0],o=p.useState(Ew)[0],s=p.useRef(e);p.useEffect(function(){s.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var y=yR([e.lockRef.current],(e.shards||[]).map(xv),!0).filter(Boolean);return y.forEach(function(_){return _.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),y.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=p.useCallback(function(y,_){if("touches"in y&&y.touches.length===2)return!s.current.allowPinchZoom;var v=il(y),h=n.current,g="deltaX"in y?y.deltaX:h[0]-v[0],E="deltaY"in y?y.deltaY:h[1]-v[1],D,S=y.target,M=Math.abs(g)>Math.abs(E)?"h":"v";if("touches"in y&&M==="h"&&S.type==="range")return!1;var R=gv(M,S);if(!R)return!0;if(R?D=M:(D=M==="v"?"h":"v",R=gv(M,S)),!R)return!1;if(!r.current&&"changedTouches"in y&&(g||E)&&(r.current=D),!D)return!0;var T=r.current||D;return BR(T,_,y,T==="h"?g:E,!0)},[]),l=p.useCallback(function(y){var _=y;if(!(!Ui.length||Ui[Ui.length-1]!==o)){var v="deltaY"in _?wv(_):il(_),h=t.current.filter(function(D){return D.name===_.type&&(D.target===_.target||_.target===D.shadowParent)&&QR(D.delta,v)})[0];if(h&&h.should){_.cancelable&&_.preventDefault();return}if(!h){var g=(s.current.shards||[]).map(xv).filter(Boolean).filter(function(D){return D.contains(_.target)}),E=g.length>0?a(_,g[0]):!s.current.noIsolation;E&&_.cancelable&&_.preventDefault()}}},[]),u=p.useCallback(function(y,_,v,h){var g={name:y,delta:_,target:v,should:h,shadowParent:qR(v)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(E){return E!==g})},1)},[]),d=p.useCallback(function(y){n.current=il(y),r.current=void 0},[]),c=p.useCallback(function(y){u(y.type,wv(y),y.target,a(y,e.lockRef.current))},[]),f=p.useCallback(function(y){u(y.type,il(y),y.target,a(y,e.lockRef.current))},[]);p.useEffect(function(){return Ui.push(o),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Fi),document.addEventListener("touchmove",l,Fi),document.addEventListener("touchstart",d,Fi),function(){Ui=Ui.filter(function(y){return y!==o}),document.removeEventListener("wheel",l,Fi),document.removeEventListener("touchmove",l,Fi),document.removeEventListener("touchstart",d,Fi)}},[]);var w=e.removeScrollBar,x=e.inert;return p.createElement(p.Fragment,null,x?p.createElement(o,{styles:GR(i)}):null,w?p.createElement(UR,{gapMode:e.gapMode}):null)}function qR(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const XR=NR(Cw,ZR);var Pw=p.forwardRef(function(e,t){return p.createElement(Fu,bn({},e,{ref:t,sideCar:XR}))});Pw.classNames=Fu.classNames;var JR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},zi=new WeakMap,ol=new WeakMap,sl={},Yc=0,Dw=function(e){return e&&(e.host||Dw(e.parentNode))},eP=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Dw(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},tP=function(e,t,n,r){var i=eP(t,Array.isArray(e)?e:[e]);sl[n]||(sl[n]=new WeakMap);var o=sl[n],s=[],a=new Set,l=new Set(i),u=function(c){!c||a.has(c)||(a.add(c),u(c.parentNode))};i.forEach(u);var d=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(f){if(a.has(f))d(f);else try{var w=f.getAttribute(r),x=w!==null&&w!=="false",y=(zi.get(f)||0)+1,_=(o.get(f)||0)+1;zi.set(f,y),o.set(f,_),s.push(f),y===1&&x&&ol.set(f,!0),_===1&&f.setAttribute(n,"true"),x||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return d(t),a.clear(),Yc++,function(){s.forEach(function(c){var f=zi.get(c)-1,w=o.get(c)-1;zi.set(c,f),o.set(c,w),f||(ol.has(c)||c.removeAttribute(r),ol.delete(c)),w||c.removeAttribute(n)}),Yc--,Yc||(zi=new WeakMap,zi=new WeakMap,ol=new WeakMap,sl={})}},nP=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=JR(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),tP(r,i,n,"aria-hidden")):function(){return null}},Dh="Dialog",[Mw,bw]=xa(Dh),[rP,Sn]=Mw(Dh),Tw=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,a=p.useRef(null),l=p.useRef(null),[u=!1,d]=Ou({prop:r,defaultProp:i,onChange:o});return m.jsx(rP,{scope:t,triggerRef:a,contentRef:l,contentId:Rs(),titleId:Rs(),descriptionId:Rs(),open:u,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(c=>!c),[d]),modal:s,children:n})};Tw.displayName=Dh;var Ow="DialogTrigger",jw=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Sn(Ow,n),o=Ht(t,i.triggerRef);return m.jsx(jt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Oh(i.open),...r,ref:o,onClick:yn(e.onClick,i.onOpenToggle)})});jw.displayName=Ow;var Mh="DialogPortal",[iP,Lw]=Mw(Mh,{forceMount:void 0}),Aw=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=Sn(Mh,t);return m.jsx(iP,{scope:t,forceMount:n,children:p.Children.map(r,s=>m.jsx(Sa,{present:n||o.open,children:m.jsx(xw,{asChild:!0,container:i,children:s})}))})};Aw.displayName=Mh;var au="DialogOverlay",Iw=p.forwardRef((e,t)=>{const n=Lw(au,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=Sn(au,e.__scopeDialog);return o.modal?m.jsx(Sa,{present:r||o.open,children:m.jsx(oP,{...i,ref:t})}):null});Iw.displayName=au;var oP=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Sn(au,n);return m.jsx(Pw,{as:Fo,allowPinchZoom:!0,shards:[i.contentRef],children:m.jsx(jt.div,{"data-state":Oh(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ri="DialogContent",Fw=p.forwardRef((e,t)=>{const n=Lw(Ri,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=Sn(Ri,e.__scopeDialog);return m.jsx(Sa,{present:r||o.open,children:o.modal?m.jsx(sP,{...i,ref:t}):m.jsx(aP,{...i,ref:t})})});Fw.displayName=Ri;var sP=p.forwardRef((e,t)=>{const n=Sn(Ri,e.__scopeDialog),r=p.useRef(null),i=Ht(t,n.contentRef,r);return p.useEffect(()=>{const o=r.current;if(o)return nP(o)},[]),m.jsx(Uw,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:yn(e.onCloseAutoFocus,o=>{var s;o.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:yn(e.onPointerDownOutside,o=>{const s=o.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&o.preventDefault()}),onFocusOutside:yn(e.onFocusOutside,o=>o.preventDefault())})}),aP=p.forwardRef((e,t)=>{const n=Sn(Ri,e.__scopeDialog),r=p.useRef(!1),i=p.useRef(!1);return m.jsx(Uw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,o),o.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=o.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),Uw=p.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,a=Sn(Ri,n),l=p.useRef(null),u=Ht(t,l);return vR(),m.jsxs(m.Fragment,{children:[m.jsx(gw,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:m.jsx(vw,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Oh(a.open),...s,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(uP,{titleId:a.titleId}),m.jsx(dP,{contentRef:l,descriptionId:a.descriptionId})]})]})}),bh="DialogTitle",Th=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Sn(bh,n);return m.jsx(jt.h2,{id:i.titleId,...r,ref:t})});Th.displayName=bh;var zw="DialogDescription",Yw=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Sn(zw,n);return m.jsx(jt.p,{id:i.descriptionId,...r,ref:t})});Yw.displayName=zw;var Ww="DialogClose",$w=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Sn(Ww,n);return m.jsx(jt.button,{type:"button",...r,ref:t,onClick:yn(e.onClick,()=>i.onOpenChange(!1))})});$w.displayName=Ww;function Oh(e){return e?"open":"closed"}var Hw="DialogTitleWarning",[lP,Vw]=xk(Hw,{contentName:Ri,titleName:bh,docsSlug:"dialog"}),uP=({titleId:e})=>{const t=Vw(Hw),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. + +If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. + +For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},cP="DialogDescriptionWarning",dP=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Vw(cP).contentName}}.`;return p.useEffect(()=>{var o;const i=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Bw=Tw,fP=jw,Qw=Aw,jh=Iw,Lh=Fw,Ah=Th,Ih=Yw,Fh=$w;function Gw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="boolean"?"".concat(e):e===0?"0":e,_v=hP,pP=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return _v(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,s=Object.keys(i).map(u=>{const d=n==null?void 0:n[u],c=o==null?void 0:o[u];if(d===null)return null;const f=Sv(d)||Sv(c);return i[u][f]}),a=n&&Object.entries(n).reduce((u,d)=>{let[c,f]=d;return f===void 0||(u[c]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:c,className:f,...w}=d;return Object.entries(w).every(x=>{let[y,_]=x;return Array.isArray(_)?_.includes({...o,...a}[y]):{...o,...a}[y]===_})?[...u,c,f]:u},[]);return _v(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},Uu=pP("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Wt=p.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},o)=>{const s=r?Fo:"button";return m.jsx(s,{className:_e(Uu({variant:t,size:n,className:e})),ref:o,...i})});Wt.displayName="Button";const mP=Bw,vP=Qw,yP=Fh,Kw=p.forwardRef(({className:e,...t},n)=>m.jsx(jh,{ref:n,className:_e("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...t}));Kw.displayName=jh.displayName;const Zw=p.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(vP,{children:[m.jsx(Kw,{}),m.jsx(Lh,{ref:r,className:_e("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",e),...n,children:t})]}));Zw.displayName=Lh.displayName;function qw({className:e,...t}){return m.jsx("div",{className:_e("flex flex-col-reverse sm:flex-row sm:justify-center sm:space-x-2",e),...t})}qw.displayName="DialogFooter";const gP=p.forwardRef(({className:e,...t},n)=>m.jsx(Ah,{ref:n,className:_e("text-lg font-semibold leading-none tracking-tight",e),...t}));gP.displayName=Ah.displayName;const wP=p.forwardRef(({className:e,...t},n)=>m.jsx(Ih,{ref:n,className:_e("text-muted-foreground text-sm",e),...t}));wP.displayName=Ih.displayName;function xP(){const{isModalOpen:e,modalContent:t,modalCallback:n,closeModal:r}=wa(),i=()=>{r(),n()};return m.jsx(mP,{open:e,children:m.jsxs(Zw,{className:"w-auto max-w-fit",children:[m.jsx("div",{className:"flexcol flex min-h-[100px] w-full",children:t}),m.jsx(Th,{}),m.jsx("div",{className:"flex w-full flex-row justify-end",children:m.jsxs(qw,{children:[m.jsx(yP,{asChild:!0,onClick:r,children:m.jsx(Wt,{type:"button",variant:"secondary",children:"취소"})}),m.jsx(Wt,{type:"button",variant:"default",onClick:i,children:"확인"})]})})]})})}var Xw="AlertDialog",[SP,pO]=xa(Xw,[bw]),lr=bw(),Jw=e=>{const{__scopeAlertDialog:t,...n}=e,r=lr(t);return m.jsx(Bw,{...r,...n,modal:!0})};Jw.displayName=Xw;var _P="AlertDialogTrigger",CP=p.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=lr(n);return m.jsx(fP,{...i,...r,ref:t})});CP.displayName=_P;var EP="AlertDialogPortal",e1=e=>{const{__scopeAlertDialog:t,...n}=e,r=lr(t);return m.jsx(Qw,{...r,...n})};e1.displayName=EP;var kP="AlertDialogOverlay",t1=p.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=lr(n);return m.jsx(jh,{...i,...r,ref:t})});t1.displayName=kP;var fo="AlertDialogContent",[NP,RP]=SP(fo),n1=p.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...i}=e,o=lr(n),s=p.useRef(null),a=Ht(t,s),l=p.useRef(null);return m.jsx(lP,{contentName:fo,titleName:r1,docsSlug:"alert-dialog",children:m.jsx(NP,{scope:n,cancelRef:l,children:m.jsxs(Lh,{role:"alertdialog",...o,...i,ref:a,onOpenAutoFocus:yn(i.onOpenAutoFocus,u=>{var d;u.preventDefault(),(d=l.current)==null||d.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[m.jsx(F0,{children:r}),m.jsx(MP,{contentRef:s})]})})})});n1.displayName=fo;var r1="AlertDialogTitle",i1=p.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=lr(n);return m.jsx(Ah,{...i,...r,ref:t})});i1.displayName=r1;var o1="AlertDialogDescription",PP=p.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=lr(n);return m.jsx(Ih,{...i,...r,ref:t})});PP.displayName=o1;var DP="AlertDialogAction",s1=p.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=lr(n);return m.jsx(Fh,{...i,...r,ref:t})});s1.displayName=DP;var a1="AlertDialogCancel",l1=p.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=RP(a1,n),o=lr(n),s=Ht(t,i);return m.jsx(Fh,{...o,...r,ref:s})});l1.displayName=a1;var MP=({contentRef:e})=>{const t=`\`${fo}\` requires a description for the component to be accessible for screen reader users. + +You can add a description to the \`${fo}\` by passing a \`${o1}\` component as a child, which also benefits sighted users by adding visible context to the dialog. + +Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${fo}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. + +For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return p.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},bP=Jw,TP=e1,u1=t1,c1=n1,d1=s1,f1=l1;const OP=bP,jP=TP,h1=K.forwardRef(({className:e,...t},n)=>m.jsx(u1,{className:_e("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...t,ref:n}));h1.displayName=u1.displayName;const p1=K.forwardRef(({className:e,...t},n)=>m.jsxs(jP,{children:[m.jsx(h1,{}),m.jsx(c1,{ref:n,className:_e("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed left-[50%] top-[50%] z-50 grid w-full max-w-sm translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",e),...t})]}));p1.displayName=c1.displayName;function m1({className:e,...t}){return m.jsx("div",{className:_e("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t})}m1.displayName="AlertDialogFooter";const LP=K.forwardRef(({className:e,...t},n)=>m.jsx(d1,{ref:n,className:_e(Uu(),e),...t}));LP.displayName=d1.displayName;const AP=K.forwardRef(({className:e,...t},n)=>m.jsx(f1,{ref:n,className:_e(Uu({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));AP.displayName=f1.displayName;function IP(){const{isAlertOpen:e,alertCallback:t,alertContent:n,alertType:r,closeAlert:i}=ga(),o=r==="confirm",s=()=>{o&&t(),i()},a=()=>{i()};return m.jsxs(OP,{open:e,children:[m.jsx(i1,{}),m.jsxs(p1,{children:[m.jsx("div",{children:n}),m.jsx(m1,{children:m.jsxs("div",{className:"flex flex-row justify-end",children:[o&&m.jsx(Wt,{variant:"secondary",className:"mr-2",onClick:a,children:"취소"}),m.jsx(Wt,{onClick:s,children:"확인"})]})})]})]})}function FP(){return m.jsxs(m.Fragment,{children:[m.jsx(JN,{}),m.jsx(xP,{}),m.jsx(IP,{})]})}const UP=()=>{const e=pE(),t=hh(),n=e.filter(i=>i.id!=="0").find(i=>i.pathname===t.pathname);return{headerTitle:(n==null?void 0:n.id)??""}};function zP(){const{headerTitle:e}=UP();return m.jsxs("div",{className:"mx-auto flex h-screen w-screen min-w-[1200px]",children:[m.jsx(YN,{}),m.jsxs("div",{className:"mx-auto flex h-screen w-full max-w-[1200px] gap-10",children:[m.jsx(FP,{}),m.jsxs("div",{className:"flex w-full flex-col p-4 pb-8 pt-8",children:[m.jsx(wk,{headerTitle:e}),m.jsx(gE,{})]})]})]})}function v1({selectedTabName:e,setSelectedTabName:t,tabNames:n}){const r=i=>{t(i)};return m.jsx("div",{className:"flex flex-row",children:n.map(i=>m.jsx(Wt,{disabled:e===i,onClick:()=>r(i),children:i},i))})}const ut=K.forwardRef(({className:e,type:t,...n},r)=>m.jsx("input",{type:t,className:_e("border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));ut.displayName="Input";const YP="http://localhost:5173/src/services/api/mock";var $n=(e=>(e.COMMON_EVENT="/common-event.json",e.QUIZ_LIST="/quiz-list.json",e.RACING_WINNERS="/racing-winners.json",e.PERSONALITY_TEST_LIST="/personality-test-list.json",e))($n||{});const Cv={headers:{"Content-Type":"application/json"}},al=async({path:e,payload:t={},method:n,headers:r={}})=>fetch(YP+e,n==="GET"?{...Cv,...r,method:n}:{...Cv,...r,method:n,body:JSON.stringify(t)}),zu=()=>{const e=Xa({queryFn:async()=>{try{return await(await al({path:$n.COMMON_EVENT,method:"GET"})).json()}catch(i){console.log(i)}},queryKey:[$n.COMMON_EVENT]}),t=Xa({queryFn:async()=>{try{return await(await al({path:$n.QUIZ_LIST,method:"GET"})).json()}catch(i){console.log(i)}},queryKey:[$n.QUIZ_LIST]}),n=Xa({queryFn:async()=>{try{return await(await al({path:$n.RACING_WINNERS,method:"GET"})).json()}catch(i){console.log(i)}},queryKey:[$n.RACING_WINNERS]}),r=Xa({queryFn:async()=>{try{return await(await al({path:$n.PERSONALITY_TEST_LIST,method:"GET"})).json()}catch(i){console.log(i)}},queryKey:[$n.PERSONALITY_TEST_LIST]});return{commonEvent:e.data,quizEvent:t.data,racingWinners:n.data,personalityTestList:r.data}};//! moment.js +//! version : 2.30.1 +//! authors : Tim Wood, Iskren Chernev, Moment.js contributors +//! license : MIT +//! momentjs.com +var y1;function F(){return y1.apply(null,arguments)}function WP(e){y1=e}function wn(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function xi(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function me(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Uh(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(me(e,t))return!1;return!0}function Rt(e){return e===void 0}function or(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function _a(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function g1(e,t){var n=[],r,i=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var $h=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ll=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,$c={},ho={};function Q(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(ho[e]=i),t&&(ho[t[0]]=function(){return Ln(i.apply(this,arguments),t[1],t[2])}),n&&(ho[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function QP(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function GP(e){var t=e.match($h),n,r;for(n=0,r=t.length;n=0&&ll.test(e);)e=e.replace(ll,r),ll.lastIndex=0,n-=1;return e}var KP={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ZP(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match($h).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var qP="Invalid date";function XP(){return this._invalidDate}var JP="%d",eD=/\d{1,2}/;function tD(e){return this._ordinal.replace("%d",e)}var nD={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function rD(e,t,n,r){var i=this._relativeTime[n];return In(i)?i(e,t,n,r):i.replace(/%d/i,e)}function iD(e,t){var n=this._relativeTime[e>0?"future":"past"];return In(n)?n(t):n.replace(/%s/i,t)}var Nv={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function sn(e){return typeof e=="string"?Nv[e]||Nv[e.toLowerCase()]:void 0}function Hh(e){var t={},n,r;for(r in e)me(e,r)&&(n=sn(r),n&&(t[n]=e[r]));return t}var oD={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function sD(e){var t=[],n;for(n in e)me(e,n)&&t.push({unit:n,priority:oD[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var _1=/\d/,Qt=/\d\d/,C1=/\d{3}/,Vh=/\d{4}/,Wu=/[+-]?\d{6}/,je=/\d\d?/,E1=/\d\d\d\d?/,k1=/\d\d\d\d\d\d?/,$u=/\d{1,3}/,Bh=/\d{1,4}/,Hu=/[+-]?\d{1,6}/,$o=/\d+/,Vu=/[+-]?\d+/,aD=/Z|[+-]\d\d:?\d\d/gi,Bu=/Z|[+-]\d\d(?::?\d\d)?/gi,lD=/[+-]?\d+(\.\d{1,3})?/,Ea=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Ho=/^[1-9]\d?/,Qh=/^([1-9]\d|\d)/,lu;lu={};function z(e,t,n){lu[e]=In(t)?t:function(r,i){return r&&n?n:t}}function uD(e,t){return me(lu,e)?lu[e](t._strict,t._locale):new RegExp(cD(e))}function cD(e){return Jn(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function Jn(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Jt(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Jt(t)),n}var cf={};function ke(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),or(t)&&(r=function(o,s){s[t]=ce(o)}),i=e.length,n=0;n68?1900:2e3)};var N1=Vo("FullYear",!0);function pD(){return Qu(this.year())}function Vo(e,t){return function(n){return n!=null?(R1(this,e,n),F.updateOffset(this,t),this):ta(this,e)}}function ta(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function R1(e,t,n){var r,i,o,s,a;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,s=e.month(),a=e.date(),a=a===29&&s===1&&!Qu(o)?28:a,i?r.setUTCFullYear(o,s,a):r.setFullYear(o,s,a)}}function mD(e){return e=sn(e),In(this[e])?this[e]():this}function vD(e,t){if(typeof e=="object"){e=Hh(e);var n=sD(e),r,i=n.length;for(r=0;r=0?(a=new Date(e+400,t,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,o,s),a}function na(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function uu(e,t,n){var r=7+t-n,i=(7+na(e,0,r).getUTCDay()-t)%7;return-i+r-1}function O1(e,t,n,r,i){var o=(7+n-r)%7,s=uu(e,r,i),a=1+7*(t-1)+o+s,l,u;return a<=0?(l=e-1,u=Ds(l)+a):a>Ds(e)?(l=e+1,u=a-Ds(e)):(l=e,u=a),{year:l,dayOfYear:u}}function ra(e,t,n){var r=uu(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,s;return i<1?(s=e.year()-1,o=i+er(s,t,n)):i>er(e.year(),t,n)?(o=i-er(e.year(),t,n),s=e.year()+1):(s=e.year(),o=i),{week:o,year:s}}function er(e,t,n){var r=uu(e,t,n),i=uu(e+1,t,n);return(Ds(e)-r+i)/7}Q("w",["ww",2],"wo","week");Q("W",["WW",2],"Wo","isoWeek");z("w",je,Ho);z("ww",je,Qt);z("W",je,Ho);z("WW",je,Qt);ka(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=ce(e)});function DD(e){return ra(e,this._week.dow,this._week.doy).week}var MD={dow:0,doy:6};function bD(){return this._week.dow}function TD(){return this._week.doy}function OD(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function jD(e){var t=ra(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Q("d",0,"do","day");Q("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Q("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Q("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Q("e",0,0,"weekday");Q("E",0,0,"isoWeekday");z("d",je);z("e",je);z("E",je);z("dd",function(e,t){return t.weekdaysMinRegex(e)});z("ddd",function(e,t){return t.weekdaysShortRegex(e)});z("dddd",function(e,t){return t.weekdaysRegex(e)});ka(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:ie(n).invalidWeekday=e});ka(["d","e","E"],function(e,t,n,r){t[r]=ce(e)});function LD(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function AD(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Kh(e,t){return e.slice(t,7).concat(e.slice(0,t))}var ID="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),j1="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),FD="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),UD=Ea,zD=Ea,YD=Ea;function WD(e,t){var n=wn(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Kh(n,this._week.dow):e?n[e.day()]:n}function $D(e){return e===!0?Kh(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function HD(e){return e===!0?Kh(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function VD(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=An([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?t==="dddd"?(i=Ge.call(this._weekdaysParse,s),i!==-1?i:null):t==="ddd"?(i=Ge.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=Ge.call(this._minWeekdaysParse,s),i!==-1?i:null):t==="dddd"?(i=Ge.call(this._weekdaysParse,s),i!==-1||(i=Ge.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=Ge.call(this._minWeekdaysParse,s),i!==-1?i:null)):t==="ddd"?(i=Ge.call(this._shortWeekdaysParse,s),i!==-1||(i=Ge.call(this._weekdaysParse,s),i!==-1)?i:(i=Ge.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=Ge.call(this._minWeekdaysParse,s),i!==-1||(i=Ge.call(this._weekdaysParse,s),i!==-1)?i:(i=Ge.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function BD(e,t,n){var r,i,o;if(this._weekdaysParseExact)return VD.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=An([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function QD(e){if(!this.isValid())return e!=null?this:NaN;var t=ta(this,"Day");return e!=null?(e=LD(e,this.localeData()),this.add(e-t,"d")):t}function GD(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function KD(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=AD(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function ZD(e){return this._weekdaysParseExact?(me(this,"_weekdaysRegex")||Zh.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(me(this,"_weekdaysRegex")||(this._weekdaysRegex=UD),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qD(e){return this._weekdaysParseExact?(me(this,"_weekdaysRegex")||Zh.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(me(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=zD),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function XD(e){return this._weekdaysParseExact?(me(this,"_weekdaysRegex")||Zh.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(me(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=YD),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Zh(){function e(d,c){return c.length-d.length}var t=[],n=[],r=[],i=[],o,s,a,l,u;for(o=0;o<7;o++)s=An([2e3,1]).day(o),a=Jn(this.weekdaysMin(s,"")),l=Jn(this.weekdaysShort(s,"")),u=Jn(this.weekdays(s,"")),t.push(a),n.push(l),r.push(u),i.push(a),i.push(l),i.push(u);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function qh(){return this.hours()%12||12}function JD(){return this.hours()||24}Q("H",["HH",2],0,"hour");Q("h",["hh",2],0,qh);Q("k",["kk",2],0,JD);Q("hmm",0,0,function(){return""+qh.apply(this)+Ln(this.minutes(),2)});Q("hmmss",0,0,function(){return""+qh.apply(this)+Ln(this.minutes(),2)+Ln(this.seconds(),2)});Q("Hmm",0,0,function(){return""+this.hours()+Ln(this.minutes(),2)});Q("Hmmss",0,0,function(){return""+this.hours()+Ln(this.minutes(),2)+Ln(this.seconds(),2)});function L1(e,t){Q(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}L1("a",!0);L1("A",!1);function A1(e,t){return t._meridiemParse}z("a",A1);z("A",A1);z("H",je,Qh);z("h",je,Ho);z("k",je,Ho);z("HH",je,Qt);z("hh",je,Qt);z("kk",je,Qt);z("hmm",E1);z("hmmss",k1);z("Hmm",E1);z("Hmmss",k1);ke(["H","HH"],nt);ke(["k","kk"],function(e,t,n){var r=ce(e);t[nt]=r===24?0:r});ke(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});ke(["h","hh"],function(e,t,n){t[nt]=ce(e),ie(n).bigHour=!0});ke("hmm",function(e,t,n){var r=e.length-2;t[nt]=ce(e.substr(0,r)),t[pn]=ce(e.substr(r)),ie(n).bigHour=!0});ke("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[nt]=ce(e.substr(0,r)),t[pn]=ce(e.substr(r,2)),t[qn]=ce(e.substr(i)),ie(n).bigHour=!0});ke("Hmm",function(e,t,n){var r=e.length-2;t[nt]=ce(e.substr(0,r)),t[pn]=ce(e.substr(r))});ke("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[nt]=ce(e.substr(0,r)),t[pn]=ce(e.substr(r,2)),t[qn]=ce(e.substr(i))});function eM(e){return(e+"").toLowerCase().charAt(0)==="p"}var tM=/[ap]\.?m?\.?/i,nM=Vo("Hours",!0);function rM(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var I1={calendar:VP,longDateFormat:KP,invalidDate:qP,ordinal:JP,dayOfMonthOrdinalParse:eD,relativeTime:nD,months:gD,monthsShort:P1,week:MD,weekdays:ID,weekdaysMin:FD,weekdaysShort:j1,meridiemParse:tM},Ae={},us={},ia;function iM(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=Gu(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&iM(o,r)>=n-1)break;n--}t++}return ia}function sM(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Gu(e){var t=null,n;if(Ae[e]===void 0&&typeof bl<"u"&&bl&&bl.exports&&sM(e))try{t=ia._abbr,n=require,n("./locale/"+e),Hr(t)}catch{Ae[e]=null}return Ae[e]}function Hr(e,t){var n;return e&&(Rt(t)?n=ur(e):n=Xh(e,t),n?ia=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ia._abbr}function Xh(e,t){if(t!==null){var n,r=I1;if(t.abbr=e,Ae[e]!=null)x1("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Ae[e]._config;else if(t.parentLocale!=null)if(Ae[t.parentLocale]!=null)r=Ae[t.parentLocale]._config;else if(n=Gu(t.parentLocale),n!=null)r=n._config;else return us[t.parentLocale]||(us[t.parentLocale]=[]),us[t.parentLocale].push({name:e,config:t}),null;return Ae[e]=new Wh(lf(r,t)),us[e]&&us[e].forEach(function(i){Xh(i.name,i.config)}),Hr(e),Ae[e]}else return delete Ae[e],null}function aM(e,t){if(t!=null){var n,r,i=I1;Ae[e]!=null&&Ae[e].parentLocale!=null?Ae[e].set(lf(Ae[e]._config,t)):(r=Gu(e),r!=null&&(i=r._config),t=lf(i,t),r==null&&(t.abbr=e),n=new Wh(t),n.parentLocale=Ae[e],Ae[e]=n),Hr(e)}else Ae[e]!=null&&(Ae[e].parentLocale!=null?(Ae[e]=Ae[e].parentLocale,e===Hr()&&Hr(e)):Ae[e]!=null&&delete Ae[e]);return Ae[e]}function ur(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ia;if(!wn(e)){if(t=Gu(e),t)return t;e=[e]}return oM(e)}function lM(){return uf(Ae)}function Jh(e){var t,n=e._a;return n&&ie(e).overflow===-2&&(t=n[Zn]<0||n[Zn]>11?Zn:n[Tn]<1||n[Tn]>Gh(n[vt],n[Zn])?Tn:n[nt]<0||n[nt]>24||n[nt]===24&&(n[pn]!==0||n[qn]!==0||n[li]!==0)?nt:n[pn]<0||n[pn]>59?pn:n[qn]<0||n[qn]>59?qn:n[li]<0||n[li]>999?li:-1,ie(e)._overflowDayOfYear&&(tTn)&&(t=Tn),ie(e)._overflowWeeks&&t===-1&&(t=fD),ie(e)._overflowWeekday&&t===-1&&(t=hD),ie(e).overflow=t),e}var uM=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cM=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dM=/Z|[+-]\d\d(?::?\d\d)?/,ul=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Hc=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],fM=/^\/?Date\((-?\d+)/i,hM=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,pM={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function F1(e){var t,n,r=e._i,i=uM.exec(r)||cM.exec(r),o,s,a,l,u=ul.length,d=Hc.length;if(i){for(ie(e).iso=!0,t=0,n=u;tDs(s)||e._dayOfYear===0)&&(ie(e)._overflowDayOfYear=!0),n=na(s,0,e._dayOfYear),e._a[Zn]=n.getUTCMonth(),e._a[Tn]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[nt]===24&&e._a[pn]===0&&e._a[qn]===0&&e._a[li]===0&&(e._nextDay=!0,e._a[nt]=0),e._d=(e._useUTC?na:PD).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[nt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(ie(e).weekdayMismatch=!0)}}function _M(e){var t,n,r,i,o,s,a,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,s=4,n=Wi(t.GG,e._a[vt],ra(Oe(),1,4).year),r=Wi(t.W,1),i=Wi(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,s=e._locale._week.doy,u=ra(Oe(),o,s),n=Wi(t.gg,e._a[vt],u.year),r=Wi(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>er(n,o,s)?ie(e)._overflowWeeks=!0:l!=null?ie(e)._overflowWeekday=!0:(a=O1(n,r,i,o,s),e._a[vt]=a.year,e._dayOfYear=a.dayOfYear)}F.ISO_8601=function(){};F.RFC_2822=function(){};function tp(e){if(e._f===F.ISO_8601){F1(e);return}if(e._f===F.RFC_2822){U1(e);return}e._a=[],ie(e).empty=!0;var t=""+e._i,n,r,i,o,s,a=t.length,l=0,u,d;for(i=S1(e._f,e._locale).match($h)||[],d=i.length,n=0;n0&&ie(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),l+=r.length),ho[o]?(r?ie(e).empty=!1:ie(e).unusedTokens.push(o),dD(o,r,e)):e._strict&&!r&&ie(e).unusedTokens.push(o);ie(e).charsLeftOver=a-l,t.length>0&&ie(e).unusedInput.push(t),e._a[nt]<=12&&ie(e).bigHour===!0&&e._a[nt]>0&&(ie(e).bigHour=void 0),ie(e).parsedDateParts=e._a.slice(0),ie(e).meridiem=e._meridiem,e._a[nt]=CM(e._locale,e._a[nt],e._meridiem),u=ie(e).era,u!==null&&(e._a[vt]=e._locale.erasConvertYear(u,e._a[vt])),ep(e),Jh(e)}function CM(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function EM(e){var t,n,r,i,o,s,a=!1,l=e._f.length;if(l===0){ie(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:Yu()});function W1(e,t){var n,r;if(t.length===1&&wn(t[0])&&(t=t[0]),!t.length)return Oe();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function VM(){if(!Rt(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Yh(e,this),e=z1(e),e._a?(t=e._isUTC?An(e._a):Oe(e._a),this._isDSTShifted=this.isValid()&&AM(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function BM(){return this.isValid()?!this._isUTC:!1}function QM(){return this.isValid()?this._isUTC:!1}function H1(){return this.isValid()?this._isUTC&&this._offset===0:!1}var GM=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,KM=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function _n(e,t){var n=e,r=null,i,o,s;return Pl(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:or(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=GM.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:ce(r[Tn])*i,h:ce(r[nt])*i,m:ce(r[pn])*i,s:ce(r[qn])*i,ms:ce(df(r[li]*1e3))*i}):(r=KM.exec(e))?(i=r[1]==="-"?-1:1,n={y:Xr(r[2],i),M:Xr(r[3],i),w:Xr(r[4],i),d:Xr(r[5],i),h:Xr(r[6],i),m:Xr(r[7],i),s:Xr(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=ZM(Oe(n.from),Oe(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),o=new Ku(n),Pl(e)&&me(e,"_locale")&&(o._locale=e._locale),Pl(e)&&me(e,"_isValid")&&(o._isValid=e._isValid),o}_n.fn=Ku.prototype;_n.invalid=LM;function Xr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Pv(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function ZM(e,t){var n;return e.isValid()&&t.isValid()?(t=rp(t,e),e.isBefore(t)?n=Pv(e,t):(n=Pv(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function V1(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(x1(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),i=_n(n,r),B1(this,i,e),this}}function B1(e,t,n,r){var i=t._milliseconds,o=df(t._days),s=df(t._months);e.isValid()&&(r=r??!0,s&&M1(e,ta(e,"Month")+s*n),o&&R1(e,"Date",ta(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&F.updateOffset(e,o||s))}var qM=V1(1,"add"),XM=V1(-1,"subtract");function Q1(e){return typeof e=="string"||e instanceof String}function JM(e){return xn(e)||_a(e)||Q1(e)||or(e)||tb(e)||eb(e)||e===null||e===void 0}function eb(e){var t=xi(e)&&!Uh(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,o,s=r.length;for(i=0;in.valueOf():n.valueOf()9999?Rl(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):In(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Rl(n,"Z")):Rl(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function mb(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(n+r+i+o)}function vb(e){e||(e=this.isUtc()?F.defaultFormatUtc:F.defaultFormat);var t=Rl(this,e);return this.localeData().postformat(t)}function yb(e,t){return this.isValid()&&(xn(e)&&e.isValid()||Oe(e).isValid())?_n({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gb(e){return this.from(Oe(),e)}function wb(e,t){return this.isValid()&&(xn(e)&&e.isValid()||Oe(e).isValid())?_n({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function xb(e){return this.to(Oe(),e)}function G1(e){var t;return e===void 0?this._locale._abbr:(t=ur(e),t!=null&&(this._locale=t),this)}var K1=on("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Z1(){return this._locale}var cu=1e3,po=60*cu,du=60*po,q1=(365*400+97)*24*du;function mo(e,t){return(e%t+t)%t}function X1(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-q1:new Date(e,t,n).valueOf()}function J1(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-q1:Date.UTC(e,t,n)}function Sb(e){var t,n;if(e=sn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?J1:X1,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=mo(t+(this._isUTC?0:this.utcOffset()*po),du);break;case"minute":t=this._d.valueOf(),t-=mo(t,po);break;case"second":t=this._d.valueOf(),t-=mo(t,cu);break}return this._d.setTime(t),F.updateOffset(this,!0),this}function _b(e){var t,n;if(e=sn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?J1:X1,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=du-mo(t+(this._isUTC?0:this.utcOffset()*po),du)-1;break;case"minute":t=this._d.valueOf(),t+=po-mo(t,po)-1;break;case"second":t=this._d.valueOf(),t+=cu-mo(t,cu)-1;break}return this._d.setTime(t),F.updateOffset(this,!0),this}function Cb(){return this._d.valueOf()-(this._offset||0)*6e4}function Eb(){return Math.floor(this.valueOf()/1e3)}function kb(){return new Date(this.valueOf())}function Nb(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Rb(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Pb(){return this.isValid()?this.toISOString():null}function Db(){return zh(this)}function Mb(){return Or({},ie(this))}function bb(){return ie(this).overflow}function Tb(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Q("N",0,0,"eraAbbr");Q("NN",0,0,"eraAbbr");Q("NNN",0,0,"eraAbbr");Q("NNNN",0,0,"eraName");Q("NNNNN",0,0,"eraNarrow");Q("y",["y",1],"yo","eraYear");Q("y",["yy",2],0,"eraYear");Q("y",["yyy",3],0,"eraYear");Q("y",["yyyy",4],0,"eraYear");z("N",ip);z("NN",ip);z("NNN",ip);z("NNNN",$b);z("NNNNN",Hb);ke(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?ie(n).era=i:ie(n).invalidEra=e});z("y",$o);z("yy",$o);z("yyy",$o);z("yyyy",$o);z("yo",Vb);ke(["y","yy","yyy","yyyy"],vt);ke(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[vt]=n._locale.eraYearOrdinalParse(e,i):t[vt]=parseInt(e,10)});function Ob(e,t){var n,r,i,o=this._eras||ur("en")._eras;for(n=0,r=o.length;n=0)return o[r]}function Lb(e,t){var n=e.since<=e.until?1:-1;return t===void 0?F(e.since).year():F(e.since).year()+(t-e.offset)*n}function Ab(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;eo&&(t=o),Xb.call(this,e,t,n,r,i))}function Xb(e,t,n,r,i){var o=O1(e,t,n,r,i),s=na(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Q("Q",0,"Qo","quarter");z("Q",_1);ke("Q",function(e,t){t[Zn]=(ce(e)-1)*3});function Jb(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Q("D",["DD",2],"Do","date");z("D",je,Ho);z("DD",je,Qt);z("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});ke(["D","DD"],Tn);ke("Do",function(e,t){t[Tn]=ce(e.match(je)[0])});var tx=Vo("Date",!0);Q("DDD",["DDDD",3],"DDDo","dayOfYear");z("DDD",$u);z("DDDD",C1);ke(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ce(e)});function eT(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Q("m",["mm",2],0,"minute");z("m",je,Qh);z("mm",je,Qt);ke(["m","mm"],pn);var tT=Vo("Minutes",!1);Q("s",["ss",2],0,"second");z("s",je,Qh);z("ss",je,Qt);ke(["s","ss"],qn);var nT=Vo("Seconds",!1);Q("S",0,0,function(){return~~(this.millisecond()/100)});Q(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Q(0,["SSS",3],0,"millisecond");Q(0,["SSSS",4],0,function(){return this.millisecond()*10});Q(0,["SSSSS",5],0,function(){return this.millisecond()*100});Q(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Q(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Q(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Q(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});z("S",$u,_1);z("SS",$u,Qt);z("SSS",$u,C1);var jr,nx;for(jr="SSSS";jr.length<=9;jr+="S")z(jr,$o);function rT(e,t){t[li]=ce(("0."+e)*1e3)}for(jr="S";jr.length<=9;jr+="S")ke(jr,rT);nx=Vo("Milliseconds",!1);Q("z",0,0,"zoneAbbr");Q("zz",0,0,"zoneName");function iT(){return this._isUTC?"UTC":""}function oT(){return this._isUTC?"Coordinated Universal Time":""}var j=Ca.prototype;j.add=qM;j.calendar=ib;j.clone=ob;j.diff=fb;j.endOf=_b;j.format=vb;j.from=yb;j.fromNow=gb;j.to=wb;j.toNow=xb;j.get=mD;j.invalidAt=bb;j.isAfter=sb;j.isBefore=ab;j.isBetween=lb;j.isSame=ub;j.isSameOrAfter=cb;j.isSameOrBefore=db;j.isValid=Db;j.lang=K1;j.locale=G1;j.localeData=Z1;j.max=DM;j.min=PM;j.parsingFlags=Mb;j.set=vD;j.startOf=Sb;j.subtract=XM;j.toArray=Nb;j.toObject=Rb;j.toDate=kb;j.toISOString=pb;j.inspect=mb;typeof Symbol<"u"&&Symbol.for!=null&&(j[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});j.toJSON=Pb;j.toString=hb;j.unix=Eb;j.valueOf=Cb;j.creationData=Tb;j.eraName=Ab;j.eraNarrow=Ib;j.eraAbbr=Fb;j.eraYear=Ub;j.year=N1;j.isLeapYear=pD;j.weekYear=Bb;j.isoWeekYear=Qb;j.quarter=j.quarters=Jb;j.month=b1;j.daysInMonth=kD;j.week=j.weeks=OD;j.isoWeek=j.isoWeeks=jD;j.weeksInYear=Zb;j.weeksInWeekYear=qb;j.isoWeeksInYear=Gb;j.isoWeeksInISOWeekYear=Kb;j.date=tx;j.day=j.days=QD;j.weekday=GD;j.isoWeekday=KD;j.dayOfYear=eT;j.hour=j.hours=nM;j.minute=j.minutes=tT;j.second=j.seconds=nT;j.millisecond=j.milliseconds=nx;j.utcOffset=FM;j.utc=zM;j.local=YM;j.parseZone=WM;j.hasAlignedHourOffset=$M;j.isDST=HM;j.isLocal=BM;j.isUtcOffset=QM;j.isUtc=H1;j.isUTC=H1;j.zoneAbbr=iT;j.zoneName=oT;j.dates=on("dates accessor is deprecated. Use date instead.",tx);j.months=on("months accessor is deprecated. Use month instead",b1);j.years=on("years accessor is deprecated. Use year instead",N1);j.zone=on("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",UM);j.isDSTShifted=on("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",VM);function sT(e){return Oe(e*1e3)}function aT(){return Oe.apply(null,arguments).parseZone()}function rx(e){return e}var ve=Wh.prototype;ve.calendar=BP;ve.longDateFormat=ZP;ve.invalidDate=XP;ve.ordinal=tD;ve.preparse=rx;ve.postformat=rx;ve.relativeTime=rD;ve.pastFuture=iD;ve.set=HP;ve.eras=Ob;ve.erasParse=jb;ve.erasConvertYear=Lb;ve.erasAbbrRegex=Yb;ve.erasNameRegex=zb;ve.erasNarrowRegex=Wb;ve.months=SD;ve.monthsShort=_D;ve.monthsParse=ED;ve.monthsRegex=RD;ve.monthsShortRegex=ND;ve.week=DD;ve.firstDayOfYear=TD;ve.firstDayOfWeek=bD;ve.weekdays=WD;ve.weekdaysMin=HD;ve.weekdaysShort=$D;ve.weekdaysParse=BD;ve.weekdaysRegex=ZD;ve.weekdaysShortRegex=qD;ve.weekdaysMinRegex=XD;ve.isPM=eM;ve.meridiem=rM;function fu(e,t,n,r){var i=ur(),o=An().set(r,t);return i[n](o,e)}function ix(e,t,n){if(or(e)&&(t=e,e=void 0),e=e||"",t!=null)return fu(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=fu(e,r,n,"month");return i}function sp(e,t,n,r){typeof e=="boolean"?(or(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,or(t)&&(n=t,t=void 0),t=t||"");var i=ur(),o=e?i._week.dow:0,s,a=[];if(n!=null)return fu(t,(n+o)%7,r,"day");for(s=0;s<7;s++)a[s]=fu(t,(s+o)%7,r,"day");return a}function lT(e,t){return ix(e,t,"months")}function uT(e,t){return ix(e,t,"monthsShort")}function cT(e,t,n){return sp(e,t,n,"weekdays")}function dT(e,t,n){return sp(e,t,n,"weekdaysShort")}function fT(e,t,n){return sp(e,t,n,"weekdaysMin")}Hr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=ce(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});F.lang=on("moment.lang is deprecated. Use moment.locale instead.",Hr);F.langData=on("moment.langData is deprecated. Use moment.localeData instead.",ur);var Yn=Math.abs;function hT(){var e=this._data;return this._milliseconds=Yn(this._milliseconds),this._days=Yn(this._days),this._months=Yn(this._months),e.milliseconds=Yn(e.milliseconds),e.seconds=Yn(e.seconds),e.minutes=Yn(e.minutes),e.hours=Yn(e.hours),e.months=Yn(e.months),e.years=Yn(e.years),this}function ox(e,t,n,r){var i=_n(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function pT(e,t){return ox(this,e,t,1)}function mT(e,t){return ox(this,e,t,-1)}function Dv(e){return e<0?Math.floor(e):Math.ceil(e)}function vT(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,o,s,a,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Dv(hf(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Jt(e/1e3),r.seconds=i%60,o=Jt(i/60),r.minutes=o%60,s=Jt(o/60),r.hours=s%24,t+=Jt(s/24),l=Jt(sx(t)),n+=l,t-=Dv(hf(l)),a=Jt(n/12),n%=12,r.days=t,r.months=n,r.years=a,this}function sx(e){return e*4800/146097}function hf(e){return e*146097/4800}function yT(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=sn(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+sx(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(hf(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function cr(e){return function(){return this.as(e)}}var ax=cr("ms"),gT=cr("s"),wT=cr("m"),xT=cr("h"),ST=cr("d"),_T=cr("w"),CT=cr("M"),ET=cr("Q"),kT=cr("y"),NT=ax;function RT(){return _n(this)}function PT(e){return e=sn(e),this.isValid()?this[e+"s"]():NaN}function bi(e){return function(){return this.isValid()?this._data[e]:NaN}}var DT=bi("milliseconds"),MT=bi("seconds"),bT=bi("minutes"),TT=bi("hours"),OT=bi("days"),jT=bi("months"),LT=bi("years");function AT(){return Jt(this.days()/7)}var Vn=Math.round,no={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function IT(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function FT(e,t,n,r){var i=_n(e).abs(),o=Vn(i.as("s")),s=Vn(i.as("m")),a=Vn(i.as("h")),l=Vn(i.as("d")),u=Vn(i.as("M")),d=Vn(i.as("w")),c=Vn(i.as("y")),f=o<=n.ss&&["s",o]||o0,f[4]=r,IT.apply(null,f)}function UT(e){return e===void 0?Vn:typeof e=="function"?(Vn=e,!0):!1}function zT(e,t){return no[e]===void 0?!1:t===void 0?no[e]:(no[e]=t,e==="s"&&(no.ss=t-1),!0)}function YT(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=no,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},no,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=FT(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var Vc=Math.abs;function Yi(e){return(e>0)-(e<0)||+e}function qu(){if(!this.isValid())return this.localeData().invalidDate();var e=Vc(this._milliseconds)/1e3,t=Vc(this._days),n=Vc(this._months),r,i,o,s,a=this.asSeconds(),l,u,d,c;return a?(r=Jt(e/60),i=Jt(r/60),e%=60,r%=60,o=Jt(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",u=Yi(this._months)!==Yi(a)?"-":"",d=Yi(this._days)!==Yi(a)?"-":"",c=Yi(this._milliseconds)!==Yi(a)?"-":"",l+"P"+(o?u+o+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(i||r||e?"T":"")+(i?c+i+"H":"")+(r?c+r+"M":"")+(e?c+s+"S":"")):"P0D"}var he=Ku.prototype;he.isValid=jM;he.abs=hT;he.add=pT;he.subtract=mT;he.as=yT;he.asMilliseconds=ax;he.asSeconds=gT;he.asMinutes=wT;he.asHours=xT;he.asDays=ST;he.asWeeks=_T;he.asMonths=CT;he.asQuarters=ET;he.asYears=kT;he.valueOf=NT;he._bubble=vT;he.clone=RT;he.get=PT;he.milliseconds=DT;he.seconds=MT;he.minutes=bT;he.hours=TT;he.days=OT;he.weeks=AT;he.months=jT;he.years=LT;he.humanize=YT;he.toISOString=qu;he.toString=qu;he.toJSON=qu;he.locale=G1;he.localeData=Z1;he.toIsoString=on("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qu);he.lang=K1;Q("X",0,0,"unix");Q("x",0,0,"valueOf");z("x",Vu);z("X",lD);ke("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});ke("x",function(e,t,n){n._d=new Date(ce(e))});//! moment.js +F.version="2.30.1";WP(Oe);F.fn=j;F.min=MM;F.max=bM;F.now=TM;F.utc=An;F.unix=sT;F.months=lT;F.isDate=_a;F.locale=Hr;F.invalid=Yu;F.duration=_n;F.isMoment=xn;F.weekdays=cT;F.parseZone=aT;F.localeData=ur;F.isDuration=Pl;F.monthsShort=uT;F.weekdaysMin=fT;F.defineLocale=Xh;F.updateLocale=aM;F.locales=lM;F.weekdaysShort=dT;F.normalizeUnits=sn;F.relativeTimeRounding=UT;F.relativeTimeThreshold=zT;F.calendarFormat=rb;F.prototype=j;F.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Mv=e=>F(e).format("YYYY-MM-DD");function cl({description:e,element:t}){return m.jsx("div",{className:"w-1/2 p-1",children:m.jsxs("div",{className:"flex rounded-sm border-[1px] border-black",children:[m.jsx("div",{className:"flex min-h-[40px] w-32 items-center justify-center border-r-[1px] border-black",children:e}),m.jsx("div",{className:"flex w-full items-center justify-center",children:t})]})})}function WT({commonEvent:e}){const{openAlert:t,addAlertCallback:n}=ga(),[r,i]=p.useState(""),[o,s]=p.useState("");p.useEffect(()=>{e&&(i(Mv(e.startTime)),s(Mv(e.endTime)))},[e]);const a=(f,w)=>{const x=new Date(w).getTime()-new Date(f).getTime();return Number.isNaN(x)?0:x},l=(f,w)=>a(f,w)>=0,u=f=>{l(f,o)?i(f):Re("올바르지 않은 기간입니다.")},d=f=>{l(r,f)?s(f):Re("올바르지 않은 기간입니다.")},c=()=>{n(()=>{console.log("수정완료")}),t("이벤트를 수정할까요?","confirm")};return m.jsxs("div",{className:"flex flex-row flex-wrap rounded-sm border-[1px] border-black p-1",children:[m.jsx(cl,{description:"이벤트 명",element:m.jsx("div",{children:e.eventName})}),m.jsx(cl,{description:"상태",element:m.jsx("div",{children:e.status})}),m.jsx(cl,{description:"담당자",element:m.jsx("div",{children:e.eventManager})}),m.jsx(cl,{description:"진행 기간",element:m.jsxs(m.Fragment,{children:[m.jsx(ut,{type:"date",value:r,onChange:f=>{u(f.target.value)}}),"~",m.jsx(ut,{type:"date",value:o,onChange:f=>{d(f.target.value)}})]})}),m.jsx(Wt,{onClick:c,children:"수정완료"})]})}function bv(){const{commonEvent:e}=zu();return m.jsx("div",{className:"mt-4 flex flex-col gap-2",children:e&&m.jsx(WT,{commonEvent:e})})}function $T({quiz:e}){const{isModalOpen:t,addModalCallback:n}=wa(),{addAlertCallback:r,openAlert:i}=ga(),[o,s]=p.useState({name:e.question,winnerCount:e.winnerCount,options:[e.choice1,e.choice2,e.choice3,e.choice4],answerIndex:e.correctAnswer}),a=()=>{const f=o.name.length===0,w=Number.isNaN(o.winnerCount),x=o.options.find(_=>_==="")!==void 0,y=Number.isNaN(o.answerIndex);return f||w||x||y?["모든 정보값을 입력해주세요","alert"]:o.name.length>50?["질문은 공백 포함 50자까지 입력 가능합니다.","alert"]:o.winnerCount<=0?["당첨자는 최소 1명은 존재해야 합니다.","alert"]:o.options.find(_=>_.length>20)!==void 0?["보기는 공백 포함 20자까지 입력 가능합니다.","alert"]:["퀴즈를 수정할까요?","confirm"]};p.useEffect(()=>{n(()=>{r(()=>{console.log("저장 완료")}),i(...a())})},[t,o]);const l=(f,w)=>{s(x=>({...x,options:x.options.map((y,_)=>_===w?f:y)}))},u=f=>{s(w=>({...w,winnerCount:f}))},d=f=>{s(w=>({...w,name:f}))},c=f=>{s(w=>({...w,answerIndex:f}))};return m.jsxs("div",{className:"flex w-[800px] flex-col gap-4",children:[m.jsx("div",{className:"flex justify-end",children:"게시일 2024.10.24"}),m.jsxs("div",{className:"flex flex-row items-center gap-4",children:[m.jsx("div",{className:"min-w-fit",children:"당첨 인원"}),m.jsx(ut,{type:"number",value:o.winnerCount,onChange:f=>{u(parseInt(f.target.value,10))},className:"w-20"}),m.jsx("div",{className:"min-w-fit",children:"명"})]}),m.jsxs("div",{className:"flex flex-row items-center gap-4",children:[m.jsx("div",{className:"min-w-fit",children:"퀴즈"}),m.jsx(ut,{value:o.name,onChange:f=>{d(f.target.value)}})]}),m.jsx("div",{children:"보기"}),m.jsx("div",{className:"flex flex-col justify-between border-4 border-gray-300",children:o.options.map((f,w)=>m.jsxs("div",{className:"flex w-full items-center justify-start gap-4 p-4",children:[m.jsx(ut,{type:"checkbox",checked:w===o.answerIndex,className:"w-7 cursor-pointer",onClick:()=>{c(w)}}),m.jsx(ut,{type:"text",value:f,onChange:x=>{l(x.target.value,w)}})]}))})]})}function HT({quiz:e,index:t}){const{openModal:n}=wa(),r=()=>{n(m.jsx($T,{quiz:e}))};return m.jsxs(Nh,{value:String(t),children:[m.jsxs("div",{className:"flex h-20 w-full gap-2 border-[1px] border-black p-1",children:[m.jsx("p",{className:"w-1/4 border-[1px] border-black p-4",children:e.id}),m.jsx("div",{role:"presentation",className:"flex-grow-1 flex w-full border-[1px] border-black",children:m.jsx(Rh,{"aria-expanded":!0,value:String(t),children:m.jsx("p",{className:"p-4",children:e.question})})}),m.jsxs("div",{className:"flex w-1/4 items-center justify-between border-[1px] border-black p-4",children:[m.jsx("p",{children:e.postDate})," ",m.jsx(Wt,{onClick:r,children:"수정"})]})]}),m.jsx(Ph,{children:m.jsxs("div",{className:"mt-4 w-full border-4 border-gray-500",children:[m.jsxs("div",{className:"flex items-center p-4",children:[m.jsx(ut,{className:"mr-4 w-4",type:"checkbox",value:"1번"}),m.jsx("p",{children:e.choice1})]}),m.jsxs("div",{className:"flex items-center p-4",children:[m.jsx(ut,{className:"mr-4 w-4",type:"checkbox",value:"2번"}),m.jsx("p",{children:e.choice2})]}),m.jsxs("div",{className:"flex items-center p-4",children:[m.jsx(ut,{className:"mr-4 w-4",type:"checkbox",value:"3번"}),m.jsx("p",{children:e.choice3})]}),m.jsxs("div",{className:"flex items-center p-4",children:[m.jsx(ut,{className:"mr-4 w-4",type:"checkbox",value:"4번"}),m.jsx("p",{children:e.choice4})]})]})})]})}function VT(){const{quizEvent:e}=zu();return m.jsx("div",{className:"mt-4 flex flex-col gap-2",children:m.jsx(cw,{type:"single",collapsible:!0,children:e==null?void 0:e.map((t,n)=>m.jsx(HT,{quiz:t,index:n}))})})}const BT=["펫 프렌들리","여행의 정석","공간활용의 기술","레저의 정석"];function QT({personalityTest:e}){const{isModalOpen:t,addModalCallback:n}=wa(),{addAlertCallback:r,openAlert:i}=ga(),[o,s]=p.useState({title:e.question,answers:[e.choice1,e.choice2],scores:[[e.choice1_pet_score,e.choice1_travel_score,e.choice1_space_score,e.choice1_leisure_score],[e.choice2_pet_score,e.choice2_travel_score,e.choice2_space_score,e.choice2_leisure_score]]}),a=()=>{const c=o.answers.find(x=>x==="")!==void 0,f=o.title.length===0,w=o.scores.flat(1).length!==8;return c||f||w?["모든 정보값을 입력해주세요","alert"]:o.title.length>50?["질문은 공백 포함 50자까지 입력 가능합니다.","alert"]:o.title.length>50?["질문은 공백 포함 50자까지 입력 가능합니다.","alert"]:o.answers[0].length>20||o.answers[1].length>20?["보기는 공백 포함 20자까지 입력 가능합니다.","alert"]:["유형검사 내용을 수정할까요?","confirm"]},l=c=>{s(f=>({...f,title:c}))},u=(c,f)=>{s(w=>({...w,answers:w.answers.map((x,y)=>f===y?c:x)}))},d=(c,f,w)=>{const x=o.scores.slice();x[f][w]=c,s(y=>({...y,scores:x}))};return p.useEffect(()=>{n(()=>{r(()=>{console.log("저장 완료")}),i(...a())})},[t,o]),m.jsxs("div",{className:"flex w-[800px] flex-col",children:[m.jsxs("div",{className:"flex flex-row items-center gap-4",children:[m.jsx("div",{className:"min-w-fit",children:"유형 검사 문제"}),m.jsx(ut,{value:o.title,onChange:c=>{l(c.target.value)}})]}),m.jsx("div",{className:"flex justify-between",children:o.answers.map((c,f)=>m.jsxs("div",{className:"flex w-1/2 items-center gap-4 p-4",children:[m.jsx("div",{children:String.fromCharCode(65+f)}),m.jsx(ut,{value:c,onChange:w=>{u(w.target.value,f)}})]}))}),m.jsx("div",{className:"flex flex-row justify-between",children:o.scores.map((c,f)=>m.jsx("div",{className:"flex w-1/2 flex-col gap-1 p-4",children:BT.map((w,x)=>m.jsxs("div",{className:"flex flex-row gap-2",children:[m.jsxs("div",{className:"flex w-[400px] items-center justify-center rounded-sm bg-gray-500 text-white",children:[w,"+"]}),m.jsx(ut,{type:"number",value:c[x],onChange:y=>{d(parseInt(y.target.value,10),f,x)}})]}))}))})]})}const GT=[{KR:"펫 프랜들리",EN:"pet"},{KR:"여행의 정석",EN:"travel"},{KR:"공간활용의 기술",EN:"space"},{KR:"레저의 정석",EN:"leisure"}];function KT({personalityTest:e,quizIndex:t}){const{openModal:n}=wa(),r=[e.choice1,e.choice2],i=[Object.keys(e).filter(s=>s.includes("choice1_")),Object.keys(e).filter(s=>s.includes("choice1_"))],o=()=>{n(m.jsx(QT,{personalityTest:e}))};return m.jsxs("div",{children:[m.jsx("div",{children:t+1}),m.jsxs("div",{className:"flex flex-col gap-8 bg-[#EFEFEF] p-4",children:[m.jsxs("div",{className:"font-bold",children:["Q. ",e.question]}),r.map((s,a)=>m.jsxs("div",{children:[m.jsxs("div",{children:[m.jsx("span",{className:"mr-1 font-bold",children:String.fromCharCode(65+a)}),s]}),m.jsx("div",{className:"flex gap-4",children:i[a].map(l=>{var u;return m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx("span",{className:"rounded-sm bg-black p-1 p-2 text-white",children:(u=GT.find(d=>l.includes(d.EN)))==null?void 0:u.KR}),m.jsx("span",{className:"rounded-sm bg-gray-400 p-1 p-2 text-white",children:e[l]})]})})})]})),m.jsx("div",{className:"flex justify-end",children:m.jsx(Wt,{onClick:o,children:"수정"})})]})]})}function ZT(){const{personalityTestList:e}=zu();return m.jsx("div",{className:"flex flex-col gap-8",children:e==null?void 0:e.map((t,n)=>m.jsx(KT,{personalityTest:t,quizIndex:n}))})}const ui={COMMON:"이벤트 공통",QUIZ:"선착순 퀴즈",RACE:"캐스퍼 레이싱"};function qT({tabName:e}){switch(e){case ui.COMMON:return m.jsx(bv,{});case ui.QUIZ:return m.jsx(VT,{});case ui.RACE:return m.jsx(ZT,{});default:return m.jsx(bv,{})}}function XT(){const[e,t]=p.useState(ui.COMMON);return m.jsxs("div",{className:"w-full",children:[m.jsx(v1,{tabNames:[ui.COMMON,ui.QUIZ,ui.RACE],selectedTabName:e,setSelectedTabName:t}),m.jsx(qT,{tabName:e})]})}function JT(){const[e,t]=p.useState(""),[n,r]=p.useState(""),i=s=>{t(s)},o=s=>{r(s)};return m.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center",children:[m.jsx("p",{className:"mb-10",children:"Admin System"}),m.jsxs("div",{className:"flex w-[200px] flex-col gap-2",children:[m.jsx(ut,{placeholder:"아이디를 입력하세요.",value:e,onChange:s=>i(s.target.value)}),m.jsx(ut,{type:"password",placeholder:"비밀번호를 입력하세요.",value:n,onChange:s=>o(s.target.value)}),m.jsx(Wt,{children:"로그인"})]})]})}function eO(){const{openAlert:e,addAlertCallback:t}=ga(),[n,r]=p.useState([]),i=()=>({rank:n.length+1,winnerCount:"0"}),o=()=>{r(u=>{const d=[...u];return d.push(i()),d})},s=u=>{r(d=>{const c=[...d];return c.splice(u,1),c})},a=()=>{t(()=>{console.log("당첨자 추첨")}),e(m.jsxs("div",{children:[m.jsx("p",{children:"당첨자 추첨을 진행할까요?"}),m.jsxs("p",{className:"text-xs text-red-600",children:["ⓘ 재추첨 시 기존 당첨자 목록은 초기화됩니다.",m.jsx("br",{}),"추첨 전 목록을 다운로드 받아주세요."]})]}),"confirm")},l=({target:u},d)=>{r(c=>{const f=u.value,w=[...c];return w[d].winnerCount=f,w})};return m.jsxs("div",{className:"flex w-[600px] flex-col gap-2",children:[n.map((u,d)=>m.jsxs("div",{className:"flex flex-row justify-start rounded-sm border-2 border-black",children:[m.jsxs("p",{className:"mr-2 flex w-[100px] items-center justify-center border-r-2 border-black",children:[u.rank,"등"]}),m.jsxs("div",{className:"flex w-full flex-row justify-between p-2",children:[m.jsx("div",{children:m.jsx(ut,{value:u.winnerCount,onChange:c=>{l(c,d)},type:"number"})}),m.jsx("div",{children:n.length===u.rank&&m.jsx(Wt,{onClick:()=>{s(d)},children:"삭제"})})]})]},u.rank)),m.jsx(Wt,{onClick:o,children:"당첨 순위 추가하기 + "}),m.jsx(Wt,{onClick:a,children:"추첨하기"})]})}function lx({className:e,...t}){return m.jsx("nav",{role:"navigation","aria-label":"pagination",className:_e("mx-auto flex w-full justify-center",e),...t})}lx.displayName="Pagination";const ux=p.forwardRef(({className:e,...t},n)=>m.jsx("ul",{ref:n,className:_e("flex flex-row items-center gap-1",e),...t}));ux.displayName="PaginationContent";const Ml=p.forwardRef(({className:e,...t},n)=>m.jsx("li",{ref:n,className:_e("",e),...t}));Ml.displayName="PaginationItem";function Xu({className:e,isActive:t,size:n="icon",...r}){return m.jsx("a",{"aria-current":t?"page":void 0,className:_e(Uu({variant:t?"outline":"ghost",size:n}),e),...r})}Xu.displayName="PaginationLink";function cx({className:e,...t}){return m.jsxs(Xu,{"aria-label":"Go to previous page",size:"default",className:_e("gap-1 pl-2.5",e),...t,children:[m.jsx(oN,{className:"h-4 w-4"}),m.jsx("span",{children:"Previous"})]})}cx.displayName="PaginationPrevious";function dx({className:e,...t}){return m.jsxs(Xu,{"aria-label":"Go to next page",size:"default",className:_e("gap-1 pr-2.5",e),...t,children:[m.jsx("span",{children:"Next"}),m.jsx(sN,{className:"h-4 w-4"})]})}dx.displayName="PaginationNext";function tO({pageIndex:e,setPageIndex:t,total:n}){const o=Math.ceil(n/10)-1,s=new Array(o+1).fill(0).map((d,c)=>c),a=()=>{e-1>=0&&t(e-1)},l=()=>{e+1<=o&&t(e+1)},u=d=>{t(d)};return m.jsx(lx,{children:m.jsxs(ux,{children:[m.jsx(Ml,{className:"cursor-pointer",children:m.jsx(cx,{onClick:a})}),s.map(d=>m.jsx(Ml,{className:"cursor-pointer",onClick:()=>{u(d)},children:m.jsx(Xu,{isActive:e===d,children:d+1})},d)),m.jsx(Ml,{className:"cursor-pointer",children:m.jsx(dx,{onClick:l})})]})})}const fx=p.forwardRef(({className:e,...t},n)=>m.jsx("div",{className:"relative w-full overflow-auto",children:m.jsx("table",{ref:n,className:_e("w-full caption-bottom text-sm",e),...t})}));fx.displayName="Table";const hx=p.forwardRef(({className:e,...t},n)=>m.jsx("thead",{ref:n,className:_e("[&_tr]:border-b",e),...t}));hx.displayName="TableHeader";const px=p.forwardRef(({className:e,...t},n)=>m.jsx("tbody",{ref:n,className:_e("[&_tr:last-child]:border-0",e),...t}));px.displayName="TableBody";const nO=p.forwardRef(({className:e,...t},n)=>m.jsx("tfoot",{ref:n,className:_e("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",e),...t}));nO.displayName="TableFooter";const pf=p.forwardRef(({className:e,...t},n)=>m.jsx("tr",{ref:n,className:_e("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...t}));pf.displayName="TableRow";const mx=p.forwardRef(({className:e,...t},n)=>m.jsx("th",{ref:n,className:_e("text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0",e),...t}));mx.displayName="TableHead";const vx=p.forwardRef(({className:e,...t},n)=>m.jsx("td",{ref:n,className:_e("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));vx.displayName="TableCell";const rO=p.forwardRef(({className:e,...t},n)=>m.jsx("caption",{ref:n,className:_e("text-muted-foreground mt-4 text-sm",e),...t}));rO.displayName="TableCaption";function iO({headers:e,rows:t}){return m.jsxs(fx,{children:[m.jsx(hx,{children:m.jsx(pf,{children:e.map((n,r)=>m.jsx(mx,{className:`w-[${n.width}px]`,children:n.text},r))})}),m.jsx(px,{children:t.map(n=>m.jsx(pf,{children:n.map((r,i)=>m.jsx(vx,{className:"font-medium",children:r},i))},`row-${n.join()}`))})]})}const ds={QUIZ:"QUIZ",RACE:"RACE"},oO=[{text:"당첨 등수",width:"20%"},{text:"유저 이름",width:"20%"},{text:"유저 전화번호",width:"20%"},{text:"공유 링크 접속 ",width:"20%"},{text:"유형카드 ",width:"20%"}],sO=[{text:"유저 이름",width:"33%"},{text:"유저 전화번호",width:"33%"},{text:"당첨 날짜 ",width:"33%"}],Tv=(e,t)=>{const n=t.slice(e*10,e*10+10).map(r=>Object.values(r));for(;n.length<10;)n.push(["ㅤ"]);return n};function aO(){const{racingWinners:e}=zu(),[t,n]=p.useState(0),[r,i]=p.useState(ds.QUIZ),[o,s]=p.useState(0),[a,l]=p.useState([]),[u,d]=p.useState([]);return p.useEffect(()=>{r===ds.QUIZ&&e&&(s(e.length),l(Tv(t,e)),d(sO)),r===ds.RACE&&e&&(s(e.length),l(Tv(t,e)),d(oO))},[e,t]),p.useEffect(()=>{n(0)},[r]),m.jsxs("div",{className:"flex h-full w-full flex-col gap-4",children:[m.jsx(v1,{tabNames:[ds.QUIZ,ds.RACE],setSelectedTabName:i,selectedTabName:r}),m.jsx(iO,{headers:u,rows:a}),m.jsx(tO,{pageIndex:t,setPageIndex:n,total:o})]})}const lO=[{path:Er.ROOT,element:m.jsx(zP,{}),children:[{path:Er.ROOT,element:m.jsx(JT,{}),id:"로그인"},{path:Er.EVENT_PAGE,element:m.jsx(XT,{}),id:"이벤트 관리"},{path:Er.QUIZ_WINNER_DRAW,element:m.jsx(eO,{}),id:"추첨하기"},{path:Er.WINNER_RESULT,element:m.jsx(aO,{}),id:"당첨자 목록"}]}],uO=_E(lO);function cO(){return m.jsx(gk,{children:m.jsx(bE,{router:uO,fallbackElement:m.jsx(m.Fragment,{children:"loading..."})})})}Bc.createRoot(document.getElementById("root")).render(m.jsx(K.StrictMode,{children:m.jsx(cO,{})}))});export default dO(); diff --git a/assets/index-JTyxU3IR.css b/assets/index-JTyxU3IR.css new file mode 100644 index 00000000..52a45711 --- /dev/null +++ b/assets/index-JTyxU3IR.css @@ -0,0 +1 @@ +:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: #e74c3c;--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient( to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55 );--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%)}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right)}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%)}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right)}@media only screen and (max-width : 480px){.Toastify__toast-container{width:100vw;padding:0;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}}.Toastify__toast{--y: 0;position:relative;touch-action:none;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:var(--toastify-toast-bd-radius);box-shadow:0 4px 12px #0000001a;display:flex;justify-content:space-between;max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);cursor:default;direction:ltr;z-index:0;overflow:hidden}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{margin:auto 0;flex:1 1 auto;padding:6px;display:flex;align-items:center}.Toastify__toast-body>div:last-child{word-break:break-word;flex:1}.Toastify__toast-icon{margin-inline-end:10px;width:20px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width : 480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;align-self:flex-start;z-index:1}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial;border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp{position:absolute;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 84% 4.9%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--ring: 222.2 84% 4.9%;--radius: .5rem;--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.left-\[50\%\]{left:50%}.right-1{right:.25rem}.top-\[-7px\]{top:-7px}.top-\[50\%\]{top:50%}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.m-\[-100px_0_0_-50px\]{margin:-100px 0 0 -50px}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.ml-5{margin-left:1.25rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.h-1{height:.25rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-20{height:5rem}.h-4{height:1rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-full{height:100%}.h-screen{height:100vh}.min-h-\[100px\]{min-height:100px}.min-h-\[40px\]{min-height:40px}.w-1\/2{width:50%}.w-1\/4{width:25%}.w-10{width:2.5rem}.w-20{width:5rem}.w-32{width:8rem}.w-4{width:1rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[100px\]{width:100px}.w-\[200px\]{width:200px}.w-\[300px\]{width:300px}.w-\[400px\]{width:400px}.w-\[600px\]{width:600px}.w-\[800px\]{width:800px}.w-auto{width:auto}.w-full{width:100%}.w-screen{width:100vw}.min-w-\[1200px\]{min-width:1200px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.max-w-\[1200px\]{max-width:1200px}.max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.caption-bottom{caption-side:bottom}.origin-\[0\%_0\%\]{transform-origin:0% 0%}.origin-\[4px_0px\]{transform-origin:4px 0px}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-2px\]{--tw-translate-x: -2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-1px\]{--tw-translate-y: -1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-\[-45deg\]{--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-\[0\.2\,0\.2\]{--tw-scale-x: .2,.2;--tw-scale-y: .2,.2;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.list-none{list-style-type:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-\[1px\]{border-width:1px}.border-b{border-bottom-width:1px}.border-r-2{border-right-width:2px}.border-r-\[1px\]{border-right-width:1px}.border-t{border-top-width:1px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-input{border-color:hsl(var(--input))}.bg-\[\#EFEFEF\]{--tw-bg-opacity: 1;background-color:rgb(239 239 239 / var(--tw-bg-opacity))}.bg-\[\#cdcdcd\]{--tw-bg-opacity: 1;background-color:rgb(205 205 205 / var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--background))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-black\/80{background-color:#000c}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-slate-200{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity))}.bg-slate-500{--tw-bg-opacity: 1;background-color:rgb(100 116 139 / var(--tw-bg-opacity))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-4{padding-bottom:1rem}.pb-8{padding-bottom:2rem}.pl-2\.5{padding-left:.625rem}.pr-2\.5{padding-right:.625rem}.pt-0{padding-top:0}.pt-8{padding-top:2rem}.pt-\[125px\]{padding-top:125px}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-custom-bezier{transition-timing-function:cubic-bezier(.77,.2,.05,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-200{animation-duration:.2s}.duration-500{animation-duration:.5s}.ease-custom-bezier{animation-timing-function:cubic-bezier(.77,.2,.05,1)}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:justify-center{justify-content:center}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0px}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} diff --git a/index.html b/index.html new file mode 100644 index 00000000..ce7ec179 --- /dev/null +++ b/index.html @@ -0,0 +1,14 @@ + + + + + + + Vite + React + TS + + + + +
+ +