@jonit-dev/night-watch-cli 1.8.1 → 1.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,376 @@
1
+ var Hp=Object.defineProperty;var Z0=l=>{throw TypeError(l)};var Lp=(l,u,d)=>u in l?Hp(l,u,{enumerable:!0,configurable:!0,writable:!0,value:d}):l[u]=d;var Q0=(l,u,d)=>Lp(l,typeof u!="symbol"?u+"":u,d),lf=(l,u,d)=>u.has(l)||Z0("Cannot "+d);var K=(l,u,d)=>(lf(l,u,"read from private field"),d?d.call(l):u.get(l)),st=(l,u,d)=>u.has(l)?Z0("Cannot add the same private member more than once"):u instanceof WeakSet?u.add(l):u.set(l,d),Ee=(l,u,d,o)=>(lf(l,u,"write to private field"),o?o.call(l,d):u.set(l,d),d),Ne=(l,u,d)=>(lf(l,u,"access private method"),d);(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const g of document.querySelectorAll('link[rel="modulepreload"]'))o(g);new MutationObserver(g=>{for(const f of g)if(f.type==="childList")for(const y of f.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&o(y)}).observe(document,{childList:!0,subtree:!0});function d(g){const f={};return g.integrity&&(f.integrity=g.integrity),g.referrerPolicy&&(f.referrerPolicy=g.referrerPolicy),g.crossOrigin==="use-credentials"?f.credentials="include":g.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(g){if(g.ep)return;g.ep=!0;const f=d(g);fetch(g.href,f)}})();function Rf(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function qp(l){if(Object.prototype.hasOwnProperty.call(l,"__esModule"))return l;var u=l.default;if(typeof u=="function"){var d=function o(){return this instanceof o?Reflect.construct(u,arguments,this.constructor):u.apply(this,arguments)};d.prototype=u.prototype}else d={};return Object.defineProperty(d,"__esModule",{value:!0}),Object.keys(l).forEach(function(o){var g=Object.getOwnPropertyDescriptor(l,o);Object.defineProperty(d,o,g.get?g:{enumerable:!0,get:function(){return l[o]}})}),d}var sf={exports:{}},Bi={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var P0;function Vp(){if(P0)return Bi;P0=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function d(o,g,f){var y=null;if(f!==void 0&&(y=""+f),g.key!==void 0&&(y=""+g.key),"key"in g){f={};for(var w in g)w!=="key"&&(f[w]=g[w])}else f=g;return g=f.ref,{$$typeof:l,type:o,key:y,ref:g!==void 0?g:null,props:f}}return Bi.Fragment=u,Bi.jsx=d,Bi.jsxs=d,Bi}var W0;function Bp(){return W0||(W0=1,sf.exports=Vp()),sf.exports}var s=Bp(),rf={exports:{}},qe={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var I0;function Yp(){if(I0)return qe;I0=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),y=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),T=Symbol.iterator;function D(k){return k===null||typeof k!="object"?null:(k=T&&k[T]||k["@@iterator"],typeof k=="function"?k:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,$={};function X(k,le,me){this.props=k,this.context=le,this.refs=$,this.updater=me||q}X.prototype.isReactComponent={},X.prototype.setState=function(k,le){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,le,"setState")},X.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function Q(){}Q.prototype=X.prototype;function F(k,le,me){this.props=k,this.context=le,this.refs=$,this.updater=me||q}var J=F.prototype=new Q;J.constructor=F,M(J,X.prototype),J.isPureReactComponent=!0;var ne=Array.isArray;function ee(){}var P={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function A(k,le,me){var xe=me.ref;return{$$typeof:l,type:k,key:le,ref:xe!==void 0?xe:null,props:me}}function C(k,le){return A(k.type,le,k.props)}function ae(k){return typeof k=="object"&&k!==null&&k.$$typeof===l}function Y(k){var le={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(me){return le[me]})}var ie=/\/+/g;function ge(k,le){return typeof k=="object"&&k!==null&&k.key!=null?Y(""+k.key):le.toString(36)}function he(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(ee,ee):(k.status="pending",k.then(function(le){k.status==="pending"&&(k.status="fulfilled",k.value=le)},function(le){k.status==="pending"&&(k.status="rejected",k.reason=le)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function V(k,le,me,xe,Re){var Me=typeof k;(Me==="undefined"||Me==="boolean")&&(k=null);var ke=!1;if(k===null)ke=!0;else switch(Me){case"bigint":case"string":case"number":ke=!0;break;case"object":switch(k.$$typeof){case l:case u:ke=!0;break;case N:return ke=k._init,V(ke(k._payload),le,me,xe,Re)}}if(ke)return Re=Re(k),ke=xe===""?"."+ge(k,0):xe,ne(Re)?(me="",ke!=null&&(me=ke.replace(ie,"$&/")+"/"),V(Re,le,me,"",function(ta){return ta})):Re!=null&&(ae(Re)&&(Re=C(Re,me+(Re.key==null||k&&k.key===Re.key?"":(""+Re.key).replace(ie,"$&/")+"/")+ke)),le.push(Re)),1;ke=0;var jt=xe===""?".":xe+":";if(ne(k))for(var et=0;et<k.length;et++)xe=k[et],Me=jt+ge(xe,et),ke+=V(xe,le,me,Me,Re);else if(et=D(k),typeof et=="function")for(k=et.call(k),et=0;!(xe=k.next()).done;)xe=xe.value,Me=jt+ge(xe,et++),ke+=V(xe,le,me,Me,Re);else if(Me==="object"){if(typeof k.then=="function")return V(he(k),le,me,xe,Re);throw le=String(k),Error("Objects are not valid as a React child (found: "+(le==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":le)+"). If you meant to render a collection of children, use an array instead.")}return ke}function re(k,le,me){if(k==null)return k;var xe=[],Re=0;return V(k,xe,"","",function(Me){return le.call(me,Me,Re++)}),xe}function ye(k){if(k._status===-1){var le=k._result;le=le(),le.then(function(me){(k._status===0||k._status===-1)&&(k._status=1,k._result=me)},function(me){(k._status===0||k._status===-1)&&(k._status=2,k._result=me)}),k._status===-1&&(k._status=0,k._result=le)}if(k._status===1)return k._result.default;throw k._result}var Te=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var le=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(le))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},pe={map:re,forEach:function(k,le,me){re(k,function(){le.apply(this,arguments)},me)},count:function(k){var le=0;return re(k,function(){le++}),le},toArray:function(k){return re(k,function(le){return le})||[]},only:function(k){if(!ae(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return qe.Activity=S,qe.Children=pe,qe.Component=X,qe.Fragment=d,qe.Profiler=g,qe.PureComponent=F,qe.StrictMode=o,qe.Suspense=b,qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,qe.__COMPILER_RUNTIME={__proto__:null,c:function(k){return P.H.useMemoCache(k)}},qe.cache=function(k){return function(){return k.apply(null,arguments)}},qe.cacheSignal=function(){return null},qe.cloneElement=function(k,le,me){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var xe=M({},k.props),Re=k.key;if(le!=null)for(Me in le.key!==void 0&&(Re=""+le.key),le)!W.call(le,Me)||Me==="key"||Me==="__self"||Me==="__source"||Me==="ref"&&le.ref===void 0||(xe[Me]=le[Me]);var Me=arguments.length-2;if(Me===1)xe.children=me;else if(1<Me){for(var ke=Array(Me),jt=0;jt<Me;jt++)ke[jt]=arguments[jt+2];xe.children=ke}return A(k.type,Re,xe)},qe.createContext=function(k){return k={$$typeof:y,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:f,_context:k},k},qe.createElement=function(k,le,me){var xe,Re={},Me=null;if(le!=null)for(xe in le.key!==void 0&&(Me=""+le.key),le)W.call(le,xe)&&xe!=="key"&&xe!=="__self"&&xe!=="__source"&&(Re[xe]=le[xe]);var ke=arguments.length-2;if(ke===1)Re.children=me;else if(1<ke){for(var jt=Array(ke),et=0;et<ke;et++)jt[et]=arguments[et+2];Re.children=jt}if(k&&k.defaultProps)for(xe in ke=k.defaultProps,ke)Re[xe]===void 0&&(Re[xe]=ke[xe]);return A(k,Me,Re)},qe.createRef=function(){return{current:null}},qe.forwardRef=function(k){return{$$typeof:w,render:k}},qe.isValidElement=ae,qe.lazy=function(k){return{$$typeof:N,_payload:{_status:-1,_result:k},_init:ye}},qe.memo=function(k,le){return{$$typeof:x,type:k,compare:le===void 0?null:le}},qe.startTransition=function(k){var le=P.T,me={};P.T=me;try{var xe=k(),Re=P.S;Re!==null&&Re(me,xe),typeof xe=="object"&&xe!==null&&typeof xe.then=="function"&&xe.then(ee,Te)}catch(Me){Te(Me)}finally{le!==null&&me.types!==null&&(le.types=me.types),P.T=le}},qe.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},qe.use=function(k){return P.H.use(k)},qe.useActionState=function(k,le,me){return P.H.useActionState(k,le,me)},qe.useCallback=function(k,le){return P.H.useCallback(k,le)},qe.useContext=function(k){return P.H.useContext(k)},qe.useDebugValue=function(){},qe.useDeferredValue=function(k,le){return P.H.useDeferredValue(k,le)},qe.useEffect=function(k,le){return P.H.useEffect(k,le)},qe.useEffectEvent=function(k){return P.H.useEffectEvent(k)},qe.useId=function(){return P.H.useId()},qe.useImperativeHandle=function(k,le,me){return P.H.useImperativeHandle(k,le,me)},qe.useInsertionEffect=function(k,le){return P.H.useInsertionEffect(k,le)},qe.useLayoutEffect=function(k,le){return P.H.useLayoutEffect(k,le)},qe.useMemo=function(k,le){return P.H.useMemo(k,le)},qe.useOptimistic=function(k,le){return P.H.useOptimistic(k,le)},qe.useReducer=function(k,le,me){return P.H.useReducer(k,le,me)},qe.useRef=function(k){return P.H.useRef(k)},qe.useState=function(k){return P.H.useState(k)},qe.useSyncExternalStore=function(k,le,me){return P.H.useSyncExternalStore(k,le,me)},qe.useTransition=function(){return P.H.useTransition()},qe.version="19.2.4",qe}var X0;function Af(){return X0||(X0=1,rf.exports=Yp()),rf.exports}var L=Af();const Ve=Rf(L);var uf={exports:{}},Yi={},cf={exports:{}},of={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var J0;function $p(){return J0||(J0=1,(function(l){function u(V,re){var ye=V.length;V.push(re);e:for(;0<ye;){var Te=ye-1>>>1,pe=V[Te];if(0<g(pe,re))V[Te]=re,V[ye]=pe,ye=Te;else break e}}function d(V){return V.length===0?null:V[0]}function o(V){if(V.length===0)return null;var re=V[0],ye=V.pop();if(ye!==re){V[0]=ye;e:for(var Te=0,pe=V.length,k=pe>>>1;Te<k;){var le=2*(Te+1)-1,me=V[le],xe=le+1,Re=V[xe];if(0>g(me,ye))xe<pe&&0>g(Re,me)?(V[Te]=Re,V[xe]=ye,Te=xe):(V[Te]=me,V[le]=ye,Te=le);else if(xe<pe&&0>g(Re,ye))V[Te]=Re,V[xe]=ye,Te=xe;else break e}}return re}function g(V,re){var ye=V.sortIndex-re.sortIndex;return ye!==0?ye:V.id-re.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var y=Date,w=y.now();l.unstable_now=function(){return y.now()-w}}var b=[],x=[],N=1,S=null,T=3,D=!1,q=!1,M=!1,$=!1,X=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function J(V){for(var re=d(x);re!==null;){if(re.callback===null)o(x);else if(re.startTime<=V)o(x),re.sortIndex=re.expirationTime,u(b,re);else break;re=d(x)}}function ne(V){if(M=!1,J(V),!q)if(d(b)!==null)q=!0,ee||(ee=!0,Y());else{var re=d(x);re!==null&&he(ne,re.startTime-V)}}var ee=!1,P=-1,W=5,A=-1;function C(){return $?!0:!(l.unstable_now()-A<W)}function ae(){if($=!1,ee){var V=l.unstable_now();A=V;var re=!0;try{e:{q=!1,M&&(M=!1,Q(P),P=-1),D=!0;var ye=T;try{t:{for(J(V),S=d(b);S!==null&&!(S.expirationTime>V&&C());){var Te=S.callback;if(typeof Te=="function"){S.callback=null,T=S.priorityLevel;var pe=Te(S.expirationTime<=V);if(V=l.unstable_now(),typeof pe=="function"){S.callback=pe,J(V),re=!0;break t}S===d(b)&&o(b),J(V)}else o(b);S=d(b)}if(S!==null)re=!0;else{var k=d(x);k!==null&&he(ne,k.startTime-V),re=!1}}break e}finally{S=null,T=ye,D=!1}re=void 0}}finally{re?Y():ee=!1}}}var Y;if(typeof F=="function")Y=function(){F(ae)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,ge=ie.port2;ie.port1.onmessage=ae,Y=function(){ge.postMessage(null)}}else Y=function(){X(ae,0)};function he(V,re){P=X(function(){V(l.unstable_now())},re)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(V){V.callback=null},l.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<V?Math.floor(1e3/V):5},l.unstable_getCurrentPriorityLevel=function(){return T},l.unstable_next=function(V){switch(T){case 1:case 2:case 3:var re=3;break;default:re=T}var ye=T;T=re;try{return V()}finally{T=ye}},l.unstable_requestPaint=function(){$=!0},l.unstable_runWithPriority=function(V,re){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var ye=T;T=V;try{return re()}finally{T=ye}},l.unstable_scheduleCallback=function(V,re,ye){var Te=l.unstable_now();switch(typeof ye=="object"&&ye!==null?(ye=ye.delay,ye=typeof ye=="number"&&0<ye?Te+ye:Te):ye=Te,V){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=ye+pe,V={id:N++,callback:re,priorityLevel:V,startTime:ye,expirationTime:pe,sortIndex:-1},ye>Te?(V.sortIndex=ye,u(x,V),d(b)===null&&V===d(x)&&(M?(Q(P),P=-1):M=!0,he(ne,ye-Te))):(V.sortIndex=pe,u(b,V),q||D||(q=!0,ee||(ee=!0,Y()))),V},l.unstable_shouldYield=C,l.unstable_wrapCallback=function(V){var re=T;return function(){var ye=T;T=re;try{return V.apply(this,arguments)}finally{T=ye}}}})(of)),of}var K0;function Fp(){return K0||(K0=1,cf.exports=$p()),cf.exports}var df={exports:{}},ia={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var eg;function Gp(){if(eg)return ia;eg=1;var l=Af();function u(b){var x="https://react.dev/errors/"+b;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)x+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+b+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var o={d:{f:d,r:function(){throw Error(u(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},g=Symbol.for("react.portal");function f(b,x,N){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:g,key:S==null?null:""+S,children:b,containerInfo:x,implementation:N}}var y=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function w(b,x){if(b==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return ia.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ia.createPortal=function(b,x){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(u(299));return f(b,x,null,N)},ia.flushSync=function(b){var x=y.T,N=o.p;try{if(y.T=null,o.p=2,b)return b()}finally{y.T=x,o.p=N,o.d.f()}},ia.preconnect=function(b,x){typeof b=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,o.d.C(b,x))},ia.prefetchDNS=function(b){typeof b=="string"&&o.d.D(b)},ia.preinit=function(b,x){if(typeof b=="string"&&x&&typeof x.as=="string"){var N=x.as,S=w(N,x.crossOrigin),T=typeof x.integrity=="string"?x.integrity:void 0,D=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;N==="style"?o.d.S(b,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:S,integrity:T,fetchPriority:D}):N==="script"&&o.d.X(b,{crossOrigin:S,integrity:T,fetchPriority:D,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},ia.preinitModule=function(b,x){if(typeof b=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var N=w(x.as,x.crossOrigin);o.d.M(b,{crossOrigin:N,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&o.d.M(b)},ia.preload=function(b,x){if(typeof b=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var N=x.as,S=w(N,x.crossOrigin);o.d.L(b,N,{crossOrigin:S,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},ia.preloadModule=function(b,x){if(typeof b=="string")if(x){var N=w(x.as,x.crossOrigin);o.d.m(b,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:N,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else o.d.m(b)},ia.requestFormReset=function(b){o.d.r(b)},ia.unstable_batchedUpdates=function(b,x){return b(x)},ia.useFormState=function(b,x,N){return y.H.useFormState(b,x,N)},ia.useFormStatus=function(){return y.H.useHostTransitionStatus()},ia.version="19.2.4",ia}var tg;function ey(){if(tg)return df.exports;tg=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),df.exports=Gp(),df.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var ag;function Zp(){if(ag)return Yi;ag=1;var l=Fp(),u=Af(),d=ey();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function g(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function y(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function w(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(f(e)!==e)throw Error(o(188))}function x(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,n=t;;){var i=a.return;if(i===null)break;var c=i.alternate;if(c===null){if(n=i.return,n!==null){a=n;continue}break}if(i.child===c.child){for(c=i.child;c;){if(c===a)return b(i),e;if(c===n)return b(i),t;c=c.sibling}throw Error(o(188))}if(a.return!==n.return)a=i,n=c;else{for(var p=!1,E=i.child;E;){if(E===a){p=!0,a=i,n=c;break}if(E===n){p=!0,n=i,a=c;break}E=E.sibling}if(!p){for(E=c.child;E;){if(E===a){p=!0,a=c,n=i;break}if(E===n){p=!0,n=c,a=i;break}E=E.sibling}if(!p)throw Error(o(189))}}if(a.alternate!==n)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function N(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=N(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,T=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),F=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),C=Symbol.for("react.memo_cache_sentinel"),ae=Symbol.iterator;function Y(e){return e===null||typeof e!="object"?null:(e=ae&&e[ae]||e["@@iterator"],typeof e=="function"?e:null)}var ie=Symbol.for("react.client.reference");function ge(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ie?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case X:return"Profiler";case $:return"StrictMode";case ne:return"Suspense";case ee:return"SuspenseList";case A:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case q:return"Portal";case F:return e.displayName||"Context";case Q:return(e._context.displayName||"Context")+".Consumer";case J:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return t=e.displayName||null,t!==null?t:ge(e.type)||"Memo";case W:t=e._payload,e=e._init;try{return ge(e(t))}catch{}}return null}var he=Array.isArray,V=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye={pending:!1,data:null,method:null,action:null},Te=[],pe=-1;function k(e){return{current:e}}function le(e){0>pe||(e.current=Te[pe],Te[pe]=null,pe--)}function me(e,t){pe++,Te[pe]=e.current,e.current=t}var xe=k(null),Re=k(null),Me=k(null),ke=k(null);function jt(e,t){switch(me(Me,t),me(Re,e),me(xe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?g0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=g0(t),e=y0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}le(xe),me(xe,e)}function et(){le(xe),le(Re),le(Me)}function ta(e){e.memoizedState!==null&&me(ke,e);var t=xe.current,a=y0(t,e.type);t!==a&&(me(Re,e),me(xe,a))}function Ca(e){Re.current===e&&(le(xe),le(Re)),ke.current===e&&(le(ke),Hi._currentValue=ye)}var yn,Ja;function fa(e){if(yn===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);yn=t&&t[1]||"",Ja=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+yn+e+Ja}var ha=!1;function xn(e,t){if(!e||ha)return"";ha=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(te){var I=te}Reflect.construct(e,[],ce)}else{try{ce.call()}catch(te){I=te}e.call(ce.prototype)}}else{try{throw Error()}catch(te){I=te}(ce=e())&&typeof ce.catch=="function"&&ce.catch(function(){})}}catch(te){if(te&&I&&typeof te.stack=="string")return[te.stack,I.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=n.DetermineComponentFrameRoot(),p=c[0],E=c[1];if(p&&E){var R=p.split(`
44
+ `),Z=E.split(`
45
+ `);for(i=n=0;n<R.length&&!R[n].includes("DetermineComponentFrameRoot");)n++;for(;i<Z.length&&!Z[i].includes("DetermineComponentFrameRoot");)i++;if(n===R.length||i===Z.length)for(n=R.length-1,i=Z.length-1;1<=n&&0<=i&&R[n]!==Z[i];)i--;for(;1<=n&&0<=i;n--,i--)if(R[n]!==Z[i]){if(n!==1||i!==1)do if(n--,i--,0>i||R[n]!==Z[i]){var se=`
46
+ `+R[n].replace(" at new "," at ");return e.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",e.displayName)),se}while(1<=n&&0<=i);break}}}finally{ha=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?fa(a):""}function fe(e,t){switch(e.tag){case 26:case 27:case 5:return fa(e.type);case 16:return fa("Lazy");case 13:return e.child!==t&&t!==null?fa("Suspense Fallback"):fa("Suspense");case 19:return fa("SuspenseList");case 0:case 15:return xn(e.type,!1);case 11:return xn(e.type.render,!1);case 1:return xn(e.type,!0);case 31:return fa("Activity");default:return""}}function Se(e){try{var t="",a=null;do t+=fe(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
47
+ Error generating stack: `+n.message+`
48
+ `+n.stack}}var He=Object.prototype.hasOwnProperty,Ze=l.unstable_scheduleCallback,xt=l.unstable_cancelCallback,Ka=l.unstable_shouldYield,Rn=l.unstable_requestPaint,ot=l.unstable_now,aa=l.unstable_getCurrentPriorityLevel,en=l.unstable_ImmediatePriority,pn=l.unstable_UserBlockingPriority,oe=l.unstable_NormalPriority,Oe=l.unstable_LowPriority,Xe=l.unstable_IdlePriority,ze=l.log,ma=l.unstable_setDisableYieldValue,nt=null,vt=null;function bt(e){if(typeof ze=="function"&&ma(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(nt,e)}catch{}}var Ut=Math.clz32?Math.clz32:eo,Ls=Math.log,Kc=Math.LN2;function eo(e){return e>>>=0,e===0?32:31-(Ls(e)/Kc|0)|0}var il=256,qs=262144,na=4194304;function vn(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Pl(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var i=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var E=n&134217727;return E!==0?(n=E&~c,n!==0?i=vn(n):(p&=E,p!==0?i=vn(p):a||(a=E&~e,a!==0&&(i=vn(a))))):(E=n&~c,E!==0?i=vn(E):p!==0?i=vn(p):a||(a=n&~e,a!==0&&(i=vn(a)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:i}function ul(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function cu(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Vr(){var e=na;return na<<=1,(na&62914560)===0&&(na=4194304),e}function Vs(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function cl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ou(e,t,a,n,i,c){var p=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var E=e.entanglements,R=e.expirationTimes,Z=e.hiddenUpdates;for(a=p&~a;0<a;){var se=31-Ut(a),ce=1<<se;E[se]=0,R[se]=-1;var I=Z[se];if(I!==null)for(Z[se]=null,se=0;se<I.length;se++){var te=I[se];te!==null&&(te.lane&=-536870913)}a&=~ce}n!==0&&pt(e,n,0),c!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function pt(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Ut(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function ga(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-Ut(a),i=1<<n;i&t|e[n]&t&&(e[n]|=t),a&=~i}}function Br(e,t){var a=t&-t;return a=(a&42)!==0?1:Bs(a),(a&(e.suspendedLanes|t))!==0?0:a}function Bs(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function la(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ys(){var e=re.p;return e!==0?e:(e=window.event,e===void 0?32:q0(e.type))}function Yr(e,t){var a=re.p;try{return re.p=e,t()}finally{re.p=a}}var tn=Math.random().toString(36).slice(2),Dt="__reactFiber$"+tn,Yt="__reactProps$"+tn,An="__reactContainer$"+tn,Wl="__reactEvents$"+tn,du="__reactListeners$"+tn,fu="__reactHandles$"+tn,hu="__reactResources$"+tn,Il="__reactMarker$"+tn;function $s(e){delete e[Dt],delete e[Yt],delete e[Wl],delete e[du],delete e[fu]}function _n(e){var t=e[Dt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[An]||a[Dt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=N0(e);e!==null;){if(a=e[Dt])return a;e=N0(e)}return t}e=a,a=e.parentNode}return null}function De(e){if(e=e[Dt]||e[An]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ya(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function an(e){var t=e[hu];return t||(t=e[hu]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ht(e){e[Il]=!0}var mu=new Set,$r={};function bn(e,t){ol(e,t),ol(e+"Capture",t)}function ol(e,t){for($r[e]=t,e=0;e<t.length;e++)mu.add(t[e])}var gu=RegExp("^[: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]*$"),yu={},kn={};function Fr(e){return He.call(kn,e)?!0:He.call(yu,e)?!1:gu.test(e)?kn[e]=!0:(yu[e]=!0,!1)}function Pt(e,t,a){if(Fr(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Fs(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function rt(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function Rt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Sn(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gr(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,c=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(p){a=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(p){a=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xl(e){if(!e._valueTracker){var t=Sn(e)?"checked":"value";e._valueTracker=Gr(e,t,""+e[t])}}function dl(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=Sn(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function nn(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}}var Gs=/[\n"\\]/g;function Wt(e){return e.replace(Gs,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Zs(e,t,a,n,i,c,p,E){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Rt(t)):e.value!==""+Rt(t)&&(e.value=""+Rt(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Jl(e,p,Rt(t)):a!=null?Jl(e,p,Rt(a)):n!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+Rt(E):e.removeAttribute("name")}function fl(e,t,a,n,i,c,p,E){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Xl(e);return}a=a!=null?""+Rt(a):"",t=t!=null?""+Rt(t):a,E||t===e.value||(e.value=t),e.defaultValue=t}n=n??i,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=E?e.checked:!!n,e.defaultChecked=!!n,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),Xl(e)}function Jl(e,t,a){t==="number"&&nn(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function zn(e,t,a,n){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&n&&(e[a].defaultSelected=!0)}else{for(a=""+Rt(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Kl(e,t,a){if(t!=null&&(t=""+Rt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Rt(a):""}function Zr(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(o(92));if(he(n)){if(1<n.length)throw Error(o(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=Rt(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),Xl(e)}function ln(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var es=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ts(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||es.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function xu(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var i in t)n=t[i],t.hasOwnProperty(i)&&a[i]!==n&&ts(e,i,n)}else for(var c in t)t.hasOwnProperty(c)&&ts(e,c,t[c])}function Qs(e){if(e.indexOf("-")===-1)return!1;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 to=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),pu=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function as(e){return pu.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function qa(){}var Qr=null;function Ps(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Un=null,hl=null;function vu(e){var t=De(e);if(t&&(e=t.stateNode)){var a=e[Yt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Zs(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Wt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var i=n[Yt]||null;if(!i)throw Error(o(90));Zs(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&dl(n)}break e;case"textarea":Kl(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&zn(e,!!a.multiple,t,!1)}}}var Pr=!1;function Wr(e,t,a){if(Pr)return e(t,a);Pr=!0;try{var n=e(t);return n}finally{if(Pr=!1,(Un!==null||hl!==null)&&(hc(),Un&&(t=Un,e=hl,hl=Un=null,vu(t),e)))for(t=0;t<e.length;t++)vu(e[t])}}function ns(e,t){var a=e.stateNode;if(a===null)return null;var n=a[Yt]||null;if(n===null)return null;a=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ir=!1;if(sn)try{var ls={};Object.defineProperty(ls,"passive",{get:function(){Ir=!0}}),window.addEventListener("test",ls,ls),window.removeEventListener("test",ls,ls)}catch{Ir=!1}var wn=null,Ws=null,Is=null;function $t(){if(Is)return Is;var e,t=Ws,a=t.length,n,i="value"in wn?wn.value:wn.textContent,c=i.length;for(e=0;e<a&&t[e]===i[e];e++);var p=a-e;for(n=1;n<=p&&t[a-n]===i[c-n];n++);return Is=i.slice(e,1<n?1-n:void 0)}function ss(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function rn(){return!0}function Hn(){return!1}function At(e){function t(a,n,i,c,p){this._reactName=a,this._targetInst=i,this.type=n,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(a=e[E],this[E]=a?a(c):c[E]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?rn:Hn,this.isPropagationStopped=Hn,this}return S(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=rn)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=rn)},persist:function(){},isPersistent:rn}),t}var Nn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rs=At(Nn),is=S({},Nn,{view:0,detail:0}),Xr=At(is),Xs,us,cs,Js=S({},is,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ds,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cs&&(cs&&e.type==="mousemove"?(Xs=e.screenX-cs.screenX,us=e.screenY-cs.screenY):us=Xs=0,cs=e),Xs)},movementY:function(e){return"movementY"in e?e.movementY:us}}),bu=At(Js),ao=S({},Js,{dataTransfer:0}),no=At(ao),lo=S({},is,{relatedTarget:0}),Ks=At(lo),so=S({},Nn,{animationName:0,elapsedTime:0,pseudoElement:0}),ml=At(so),ro=S({},Nn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gl=At(ro),os=S({},Nn,{data:0}),yl=At(os),io={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uo={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},co={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oo(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=co[e])?!!t[e]:!1}function ds(){return oo}var fo=S({},is,{key:function(e){if(e.key){var t=io[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ss(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?uo[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ds,charCode:function(e){return e.type==="keypress"?ss(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ss(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ho=At(fo),mo=S({},Js,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Su=At(mo),go=S({},is,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ds}),yo=At(go),wu=S({},Nn,{propertyName:0,elapsedTime:0,pseudoElement:0}),xo=At(wu),po=S({},Js,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),vo=At(po),bo=S({},Nn,{newState:0,oldState:0}),So=At(bo),Nu=[9,13,27,32],Jr=sn&&"CompositionEvent"in window,fs=null;sn&&"documentMode"in document&&(fs=document.documentMode);var wo=sn&&"TextEvent"in window&&!fs,ju=sn&&(!Jr||fs&&8<fs&&11>=fs),Eu=" ",Tu=!1;function Mu(e,t){switch(e){case"keyup":return Nu.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xl=!1;function No(e,t){switch(e){case"compositionend":return Cu(t);case"keypress":return t.which!==32?null:(Tu=!0,Eu);case"textInput":return e=t.data,e===Eu&&Tu?null:e;default:return null}}function jo(e,t){if(xl)return e==="compositionend"||!Jr&&Mu(e,t)?(e=$t(),Is=Ws=wn=null,xl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ju&&t.locale!=="ko"?null:t.data;default:return null}}var Eo={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ou(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Eo[e.type]:t==="textarea"}function Kr(e,t,a,n){Un?hl?hl.push(n):hl=[n]:Un=n,t=bc(t,"onChange"),0<t.length&&(a=new rs("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var pl=null,hs=null;function xa(e){c0(e,0)}function un(e){var t=ya(e);if(dl(t))return e}function Du(e,t){if(e==="change")return t}var jn=!1;if(sn){var ei;if(sn){var Oa="oninput"in document;if(!Oa){var ti=document.createElement("div");ti.setAttribute("oninput","return;"),Oa=typeof ti.oninput=="function"}ei=Oa}else ei=!1;jn=ei&&(!document.documentMode||9<document.documentMode)}function ai(){pl&&(pl.detachEvent("onpropertychange",ni),hs=pl=null)}function ni(e){if(e.propertyName==="value"&&un(hs)){var t=[];Kr(t,hs,e,Ps(e)),Wr(xa,t)}}function Qe(e,t,a){e==="focusin"?(ai(),pl=t,hs=a,pl.attachEvent("onpropertychange",ni)):e==="focusout"&&ai()}function vl(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return un(hs)}function To(e,t){if(e==="click")return un(t)}function St(e,t){if(e==="input"||e==="change")return un(t)}function ms(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var sa=typeof Object.is=="function"?Object.is:ms;function gs(e,t){if(sa(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var i=a[n];if(!He.call(t,i)||!sa(e[i],t[i]))return!1}return!0}function Ru(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Au(e,t){var a=Ru(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Ru(a)}}function Je(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Je(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=nn(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=nn(e.document)}return t}function er(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")}var _u=sn&&"documentMode"in document&&11>=document.documentMode,bl=null,tr=null,It=null,ar=!1;function ys(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ar||bl==null||bl!==nn(n)||(n=bl,"selectionStart"in n&&er(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),It&&gs(It,n)||(It=n,n=bc(tr,"onSelect"),0<n.length&&(t=new rs("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=bl)))}function Ln(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Sl={animationend:Ln("Animation","AnimationEnd"),animationiteration:Ln("Animation","AnimationIteration"),animationstart:Ln("Animation","AnimationStart"),transitionrun:Ln("Transition","TransitionRun"),transitionstart:Ln("Transition","TransitionStart"),transitioncancel:Ln("Transition","TransitionCancel"),transitionend:Ln("Transition","TransitionEnd")},li={},ku={};sn&&(ku=document.createElement("div").style,"AnimationEvent"in window||(delete Sl.animationend.animation,delete Sl.animationiteration.animation,delete Sl.animationstart.animation),"TransitionEvent"in window||delete Sl.transitionend.transition);function qn(e){if(li[e])return li[e];if(!Sl[e])return e;var t=Sl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in ku)return li[e]=t[a];return e}var zu=qn("animationend"),Uu=qn("animationiteration"),nr=qn("animationstart"),Co=qn("transitionrun"),Oo=qn("transitionstart"),Hu=qn("transitioncancel"),si=qn("transitionend"),ri=new Map,ii="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ii.push("scrollEnd");function pa(e,t){ri.set(e,t),bn(t,[e])}var wl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ca=[],Va=0,xs=0;function Nl(){for(var e=Va,t=xs=Va=0;t<e;){var a=ca[t];ca[t++]=null;var n=ca[t];ca[t++]=null;var i=ca[t];ca[t++]=null;var c=ca[t];if(ca[t++]=null,n!==null&&i!==null){var p=n.pending;p===null?i.next=i:(i.next=p.next,p.next=i),n.pending=i}c!==0&&ps(a,i,c)}}function Ba(e,t,a,n){ca[Va++]=e,ca[Va++]=t,ca[Va++]=a,ca[Va++]=n,xs|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function lr(e,t,a,n){return Ba(e,t,a,n),vs(e)}function Ya(e,t){return Ba(e,null,null,t),vs(e)}function ps(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var i=!1,c=e.return;c!==null;)c.childLanes|=a,n=c.alternate,n!==null&&(n.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(i=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,i&&t!==null&&(i=31-Ut(a),e=c.hiddenUpdates,n=e[i],n===null?e[i]=[t]:n.push(t),t.lane=a|536870912),c):null}function vs(e){if(50<Di)throw Di=0,Cd=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Da={};function sr(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xt(e,t,a,n){return new sr(e,t,a,n)}function rr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $a(e,t){var a=e.alternate;return a===null?(a=Xt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Lu(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ir(e,t,a,n,i,c){var p=0;if(n=e,typeof e=="function")rr(e)&&(p=1);else if(typeof e=="string")p=Ep(e,a,xe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case A:return e=Xt(31,a,t,i),e.elementType=A,e.lanes=c,e;case M:return Fa(a.children,i,c,t);case $:p=8,i|=24;break;case X:return e=Xt(12,a,t,i|2),e.elementType=X,e.lanes=c,e;case ne:return e=Xt(13,a,t,i),e.elementType=ne,e.lanes=c,e;case ee:return e=Xt(19,a,t,i),e.elementType=ee,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:p=10;break e;case Q:p=9;break e;case J:p=11;break e;case P:p=14;break e;case W:p=16,n=null;break e}p=29,a=Error(o(130,e===null?"null":typeof e,"")),n=null}return t=Xt(p,a,t,i),t.elementType=e,t.type=n,t.lanes=c,t}function Fa(e,t,a,n){return e=Xt(7,e,n,t),e.lanes=a,e}function ui(e,t,a){return e=Xt(6,e,null,t),e.lanes=a,e}function qu(e){var t=Xt(18,null,null,0);return t.stateNode=e,t}function jl(e,t,a){return t=Xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ci=new WeakMap;function va(e,t){if(typeof e=="object"&&e!==null){var a=ci.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Se(t)},ci.set(e,t),t)}return{value:e,source:t,stack:Se(t)}}var Vn=[],Bn=0,bs=null,cn=0,ra=[],je=0,ba=null,Ga=1,m="";function r(e,t){Vn[Bn++]=cn,Vn[Bn++]=bs,bs=e,cn=t}function h(e,t,a){ra[je++]=Ga,ra[je++]=m,ra[je++]=ba,ba=e;var n=Ga;e=m;var i=32-Ut(n)-1;n&=~(1<<i),a+=1;var c=32-Ut(t)+i;if(30<c){var p=i-i%5;c=(n&(1<<p)-1).toString(32),n>>=p,i-=p,Ga=1<<32-Ut(t)+i|a<<i|n,m=c+e}else Ga=1<<c|a<<i|n,m=e}function v(e){e.return!==null&&(r(e,1),h(e,1,0))}function j(e){for(;e===bs;)bs=Vn[--Bn],Vn[Bn]=null,cn=Vn[--Bn],Vn[Bn]=null;for(;e===ba;)ba=ra[--je],ra[je]=null,m=ra[--je],ra[je]=null,Ga=ra[--je],ra[je]=null}function O(e,t){ra[je++]=Ga,ra[je++]=m,ra[je++]=ba,Ga=t.id,m=t.overflow,ba=e}var _=null,z=null,H=!1,de=null,ve=!1,Le=Error(o(519));function Pe(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw on(va(t,e)),Le}function Ae(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[Dt]=e,t[Yt]=n,a){case"dialog":Ge("cancel",t),Ge("close",t);break;case"iframe":case"object":case"embed":Ge("load",t);break;case"video":case"audio":for(a=0;a<Ai.length;a++)Ge(Ai[a],t);break;case"source":Ge("error",t);break;case"img":case"image":case"link":Ge("error",t),Ge("load",t);break;case"details":Ge("toggle",t);break;case"input":Ge("invalid",t),fl(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Ge("invalid",t);break;case"textarea":Ge("invalid",t),Zr(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||h0(t.textContent,a)?(n.popover!=null&&(Ge("beforetoggle",t),Ge("toggle",t)),n.onScroll!=null&&Ge("scroll",t),n.onScrollEnd!=null&&Ge("scrollend",t),n.onClick!=null&&(t.onclick=qa),t=!0):t=!1,t||Pe(e,!0)}function Mt(e){for(_=e.return;_;)switch(_.tag){case 5:case 31:case 13:ve=!1;return;case 27:case 3:ve=!0;return;default:_=_.return}}function Gt(e){if(e!==_)return!1;if(!H)return Mt(e),H=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||$d(e.type,e.memoizedProps)),a=!a),a&&z&&Pe(e),Mt(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));z=w0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));z=w0(e)}else t===27?(t=z,Hl(e.type)?(e=Pd,Pd=null,z=e):z=t):z=_?Wa(e.stateNode.nextSibling):null;return!0}function Zt(){z=_=null,H=!1}function En(){var e=de;return e!==null&&(ja===null?ja=e:ja.push.apply(ja,e),de=null),e}function on(e){de===null?de=[e]:de.push(e)}var ur=k(null),Yn=null,Za=null;function Tn(e,t,a){me(ur,t._currentValue),t._currentValue=a}function dn(e){e._currentValue=ur.current,le(ur)}function oi(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function $n(e,t,a,n){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var c=i.dependencies;if(c!==null){var p=i.child;c=c.firstContext;e:for(;c!==null;){var E=c;c=i;for(var R=0;R<t.length;R++)if(E.context===t[R]){c.lanes|=a,E=c.alternate,E!==null&&(E.lanes|=a),oi(c.return,a,e),n||(p=null);break e}c=E.next}}else if(i.tag===18){if(p=i.return,p===null)throw Error(o(341));p.lanes|=a,c=p.alternate,c!==null&&(c.lanes|=a),oi(p,a,e),p=null}else p=i.child;if(p!==null)p.return=i;else for(p=i;p!==null;){if(p===e){p=null;break}if(i=p.sibling,i!==null){i.return=p.return,p=i;break}p=p.return}i=p}}function Qa(e,t,a,n){e=null;for(var i=t,c=!1;i!==null;){if(!c){if((i.flags&524288)!==0)c=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var p=i.alternate;if(p===null)throw Error(o(387));if(p=p.memoizedProps,p!==null){var E=i.type;sa(i.pendingProps.value,p.value)||(e!==null?e.push(E):e=[E])}}else if(i===ke.current){if(p=i.alternate,p===null)throw Error(o(387));p.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Hi):e=[Hi])}i=i.return}e!==null&&$n(t,e,a,n),t.flags|=262144}function cr(e){for(e=e.firstContext;e!==null;){if(!sa(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ss(e){Yn=e,Za=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Jt(e){return Jf(Yn,e)}function Vu(e,t){return Yn===null&&Ss(e),Jf(e,t)}function Jf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Za===null){if(e===null)throw Error(o(308));Za=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Za=Za.next=t;return a}var Sx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},wx=l.unstable_scheduleCallback,Nx=l.unstable_NormalPriority,Lt={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Do(){return{controller:new Sx,data:new Map,refCount:0}}function di(e){e.refCount--,e.refCount===0&&wx(Nx,function(){e.controller.abort()})}var fi=null,Ro=0,or=0,dr=null;function jx(e,t){if(fi===null){var a=fi=[];Ro=0,or=kd(),dr={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Ro++,t.then(Kf,Kf),t}function Kf(){if(--Ro===0&&fi!==null){dr!==null&&(dr.status="fulfilled");var e=fi;fi=null,or=0,dr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ex(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(n.status="rejected",n.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),n}var eh=V.S;V.S=function(e,t){Hm=ot(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&jx(e,t),eh!==null&&eh(e,t)};var ws=k(null);function Ao(){var e=ws.current;return e!==null?e:yt.pooledCache}function Bu(e,t){t===null?me(ws,ws.current):me(ws,t.pool)}function th(){var e=Ao();return e===null?null:{parent:Lt._currentValue,pool:e}}var fr=Error(o(460)),_o=Error(o(474)),Yu=Error(o(542)),$u={then:function(){}};function ah(e){return e=e.status,e==="fulfilled"||e==="rejected"}function nh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(qa,qa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sh(e),e;default:if(typeof t.status=="string")t.then(qa,qa);else{if(e=yt,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=n}},function(n){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sh(e),e}throw js=t,fr}}function Ns(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(js=a,fr):a}}var js=null;function lh(){if(js===null)throw Error(o(459));var e=js;return js=null,e}function sh(e){if(e===fr||e===Yu)throw Error(o(483))}var hr=null,hi=0;function Fu(e){var t=hi;return hi+=1,hr===null&&(hr=[]),nh(hr,e,t)}function mi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Gu(e,t){throw t.$$typeof===T?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function rh(e){function t(B,U){if(e){var G=B.deletions;G===null?(B.deletions=[U],B.flags|=16):G.push(U)}}function a(B,U){if(!e)return null;for(;U!==null;)t(B,U),U=U.sibling;return null}function n(B){for(var U=new Map;B!==null;)B.key!==null?U.set(B.key,B):U.set(B.index,B),B=B.sibling;return U}function i(B,U){return B=$a(B,U),B.index=0,B.sibling=null,B}function c(B,U,G){return B.index=G,e?(G=B.alternate,G!==null?(G=G.index,G<U?(B.flags|=67108866,U):G):(B.flags|=67108866,U)):(B.flags|=1048576,U)}function p(B){return e&&B.alternate===null&&(B.flags|=67108866),B}function E(B,U,G,ue){return U===null||U.tag!==6?(U=ui(G,B.mode,ue),U.return=B,U):(U=i(U,G),U.return=B,U)}function R(B,U,G,ue){var Ce=G.type;return Ce===M?se(B,U,G.props.children,ue,G.key):U!==null&&(U.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===W&&Ns(Ce)===U.type)?(U=i(U,G.props),mi(U,G),U.return=B,U):(U=ir(G.type,G.key,G.props,null,B.mode,ue),mi(U,G),U.return=B,U)}function Z(B,U,G,ue){return U===null||U.tag!==4||U.stateNode.containerInfo!==G.containerInfo||U.stateNode.implementation!==G.implementation?(U=jl(G,B.mode,ue),U.return=B,U):(U=i(U,G.children||[]),U.return=B,U)}function se(B,U,G,ue,Ce){return U===null||U.tag!==7?(U=Fa(G,B.mode,ue,Ce),U.return=B,U):(U=i(U,G),U.return=B,U)}function ce(B,U,G){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=ui(""+U,B.mode,G),U.return=B,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case D:return G=ir(U.type,U.key,U.props,null,B.mode,G),mi(G,U),G.return=B,G;case q:return U=jl(U,B.mode,G),U.return=B,U;case W:return U=Ns(U),ce(B,U,G)}if(he(U)||Y(U))return U=Fa(U,B.mode,G,null),U.return=B,U;if(typeof U.then=="function")return ce(B,Fu(U),G);if(U.$$typeof===F)return ce(B,Vu(B,U),G);Gu(B,U)}return null}function I(B,U,G,ue){var Ce=U!==null?U.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return Ce!==null?null:E(B,U,""+G,ue);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case D:return G.key===Ce?R(B,U,G,ue):null;case q:return G.key===Ce?Z(B,U,G,ue):null;case W:return G=Ns(G),I(B,U,G,ue)}if(he(G)||Y(G))return Ce!==null?null:se(B,U,G,ue,null);if(typeof G.then=="function")return I(B,U,Fu(G),ue);if(G.$$typeof===F)return I(B,U,Vu(B,G),ue);Gu(B,G)}return null}function te(B,U,G,ue,Ce){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return B=B.get(G)||null,E(U,B,""+ue,Ce);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case D:return B=B.get(ue.key===null?G:ue.key)||null,R(U,B,ue,Ce);case q:return B=B.get(ue.key===null?G:ue.key)||null,Z(U,B,ue,Ce);case W:return ue=Ns(ue),te(B,U,G,ue,Ce)}if(he(ue)||Y(ue))return B=B.get(G)||null,se(U,B,ue,Ce,null);if(typeof ue.then=="function")return te(B,U,G,Fu(ue),Ce);if(ue.$$typeof===F)return te(B,U,G,Vu(U,ue),Ce);Gu(U,ue)}return null}function be(B,U,G,ue){for(var Ce=null,tt=null,we=U,Ye=U=0,Ie=null;we!==null&&Ye<G.length;Ye++){we.index>Ye?(Ie=we,we=null):Ie=we.sibling;var at=I(B,we,G[Ye],ue);if(at===null){we===null&&(we=Ie);break}e&&we&&at.alternate===null&&t(B,we),U=c(at,U,Ye),tt===null?Ce=at:tt.sibling=at,tt=at,we=Ie}if(Ye===G.length)return a(B,we),H&&r(B,Ye),Ce;if(we===null){for(;Ye<G.length;Ye++)we=ce(B,G[Ye],ue),we!==null&&(U=c(we,U,Ye),tt===null?Ce=we:tt.sibling=we,tt=we);return H&&r(B,Ye),Ce}for(we=n(we);Ye<G.length;Ye++)Ie=te(we,B,Ye,G[Ye],ue),Ie!==null&&(e&&Ie.alternate!==null&&we.delete(Ie.key===null?Ye:Ie.key),U=c(Ie,U,Ye),tt===null?Ce=Ie:tt.sibling=Ie,tt=Ie);return e&&we.forEach(function(Yl){return t(B,Yl)}),H&&r(B,Ye),Ce}function _e(B,U,G,ue){if(G==null)throw Error(o(151));for(var Ce=null,tt=null,we=U,Ye=U=0,Ie=null,at=G.next();we!==null&&!at.done;Ye++,at=G.next()){we.index>Ye?(Ie=we,we=null):Ie=we.sibling;var Yl=I(B,we,at.value,ue);if(Yl===null){we===null&&(we=Ie);break}e&&we&&Yl.alternate===null&&t(B,we),U=c(Yl,U,Ye),tt===null?Ce=Yl:tt.sibling=Yl,tt=Yl,we=Ie}if(at.done)return a(B,we),H&&r(B,Ye),Ce;if(we===null){for(;!at.done;Ye++,at=G.next())at=ce(B,at.value,ue),at!==null&&(U=c(at,U,Ye),tt===null?Ce=at:tt.sibling=at,tt=at);return H&&r(B,Ye),Ce}for(we=n(we);!at.done;Ye++,at=G.next())at=te(we,B,Ye,at.value,ue),at!==null&&(e&&at.alternate!==null&&we.delete(at.key===null?Ye:at.key),U=c(at,U,Ye),tt===null?Ce=at:tt.sibling=at,tt=at);return e&&we.forEach(function(Up){return t(B,Up)}),H&&r(B,Ye),Ce}function ht(B,U,G,ue){if(typeof G=="object"&&G!==null&&G.type===M&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case D:e:{for(var Ce=G.key;U!==null;){if(U.key===Ce){if(Ce=G.type,Ce===M){if(U.tag===7){a(B,U.sibling),ue=i(U,G.props.children),ue.return=B,B=ue;break e}}else if(U.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===W&&Ns(Ce)===U.type){a(B,U.sibling),ue=i(U,G.props),mi(ue,G),ue.return=B,B=ue;break e}a(B,U);break}else t(B,U);U=U.sibling}G.type===M?(ue=Fa(G.props.children,B.mode,ue,G.key),ue.return=B,B=ue):(ue=ir(G.type,G.key,G.props,null,B.mode,ue),mi(ue,G),ue.return=B,B=ue)}return p(B);case q:e:{for(Ce=G.key;U!==null;){if(U.key===Ce)if(U.tag===4&&U.stateNode.containerInfo===G.containerInfo&&U.stateNode.implementation===G.implementation){a(B,U.sibling),ue=i(U,G.children||[]),ue.return=B,B=ue;break e}else{a(B,U);break}else t(B,U);U=U.sibling}ue=jl(G,B.mode,ue),ue.return=B,B=ue}return p(B);case W:return G=Ns(G),ht(B,U,G,ue)}if(he(G))return be(B,U,G,ue);if(Y(G)){if(Ce=Y(G),typeof Ce!="function")throw Error(o(150));return G=Ce.call(G),_e(B,U,G,ue)}if(typeof G.then=="function")return ht(B,U,Fu(G),ue);if(G.$$typeof===F)return ht(B,U,Vu(B,G),ue);Gu(B,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,U!==null&&U.tag===6?(a(B,U.sibling),ue=i(U,G),ue.return=B,B=ue):(a(B,U),ue=ui(G,B.mode,ue),ue.return=B,B=ue),p(B)):a(B,U)}return function(B,U,G,ue){try{hi=0;var Ce=ht(B,U,G,ue);return hr=null,Ce}catch(we){if(we===fr||we===Yu)throw we;var tt=Xt(29,we,null,B.mode);return tt.lanes=ue,tt.return=B,tt}finally{}}}var Es=rh(!0),ih=rh(!1),El=!1;function ko(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Tl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ml(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(lt&2)!==0){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,t=vs(e),ps(e,null,a),t}return Ba(e,n,t,a),vs(e)}function gi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,ga(e,a)}}function Uo(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var i=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var p={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?i=c=p:c=c.next=p,a=a.next}while(a!==null);c===null?i=c=t:c=c.next=t}else i=c=t;a={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Ho=!1;function yi(){if(Ho){var e=dr;if(e!==null)throw e}}function xi(e,t,a,n){Ho=!1;var i=e.updateQueue;El=!1;var c=i.firstBaseUpdate,p=i.lastBaseUpdate,E=i.shared.pending;if(E!==null){i.shared.pending=null;var R=E,Z=R.next;R.next=null,p===null?c=Z:p.next=Z,p=R;var se=e.alternate;se!==null&&(se=se.updateQueue,E=se.lastBaseUpdate,E!==p&&(E===null?se.firstBaseUpdate=Z:E.next=Z,se.lastBaseUpdate=R))}if(c!==null){var ce=i.baseState;p=0,se=Z=R=null,E=c;do{var I=E.lane&-536870913,te=I!==E.lane;if(te?(We&I)===I:(n&I)===I){I!==0&&I===or&&(Ho=!0),se!==null&&(se=se.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var be=e,_e=E;I=t;var ht=a;switch(_e.tag){case 1:if(be=_e.payload,typeof be=="function"){ce=be.call(ht,ce,I);break e}ce=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=_e.payload,I=typeof be=="function"?be.call(ht,ce,I):be,I==null)break e;ce=S({},ce,I);break e;case 2:El=!0}}I=E.callback,I!==null&&(e.flags|=64,te&&(e.flags|=8192),te=i.callbacks,te===null?i.callbacks=[I]:te.push(I))}else te={lane:I,tag:E.tag,payload:E.payload,callback:E.callback,next:null},se===null?(Z=se=te,R=ce):se=se.next=te,p|=I;if(E=E.next,E===null){if(E=i.shared.pending,E===null)break;te=E,E=te.next,te.next=null,i.lastBaseUpdate=te,i.shared.pending=null}}while(!0);se===null&&(R=ce),i.baseState=R,i.firstBaseUpdate=Z,i.lastBaseUpdate=se,c===null&&(i.shared.lanes=0),Al|=p,e.lanes=p,e.memoizedState=ce}}function uh(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function ch(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)uh(a[e],t)}var mr=k(null),Zu=k(0);function oh(e,t){e=Jn,me(Zu,e),me(mr,t),Jn=e|t.baseLanes}function Lo(){me(Zu,Jn),me(mr,mr.current)}function qo(){Jn=Zu.current,le(mr),le(Zu)}var Ra=k(null),Pa=null;function Cl(e){var t=e.alternate;me(_t,_t.current&1),me(Ra,e),Pa===null&&(t===null||mr.current!==null||t.memoizedState!==null)&&(Pa=e)}function Vo(e){me(_t,_t.current),me(Ra,e),Pa===null&&(Pa=e)}function dh(e){e.tag===22?(me(_t,_t.current),me(Ra,e),Pa===null&&(Pa=e)):Ol()}function Ol(){me(_t,_t.current),me(Ra,Ra.current)}function Aa(e){le(Ra),Pa===e&&(Pa=null),le(_t)}var _t=k(0);function Qu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Zd(a)||Qd(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fn=0,Be=null,dt=null,qt=null,Pu=!1,gr=!1,Ts=!1,Wu=0,pi=0,yr=null,Tx=0;function Ct(){throw Error(o(321))}function Bo(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!sa(e[a],t[a]))return!1;return!0}function Yo(e,t,a,n,i,c){return Fn=c,Be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,V.H=e===null||e.memoizedState===null?Ph:nd,Ts=!1,c=a(n,i),Ts=!1,gr&&(c=hh(t,a,n,i)),fh(e),c}function fh(e){V.H=Si;var t=dt!==null&&dt.next!==null;if(Fn=0,qt=dt=Be=null,Pu=!1,pi=0,yr=null,t)throw Error(o(300));e===null||Vt||(e=e.dependencies,e!==null&&cr(e)&&(Vt=!0))}function hh(e,t,a,n){Be=e;var i=0;do{if(gr&&(yr=null),pi=0,gr=!1,25<=i)throw Error(o(301));if(i+=1,qt=dt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}V.H=Wh,c=t(a,n)}while(gr);return c}function Mx(){var e=V.H,t=e.useState()[0];return t=typeof t.then=="function"?vi(t):t,e=e.useState()[0],(dt!==null?dt.memoizedState:null)!==e&&(Be.flags|=1024),t}function $o(){var e=Wu!==0;return Wu=0,e}function Fo(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Go(e){if(Pu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Pu=!1}Fn=0,qt=dt=Be=null,gr=!1,pi=Wu=0,yr=null}function oa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qt===null?Be.memoizedState=qt=e:qt=qt.next=e,qt}function kt(){if(dt===null){var e=Be.alternate;e=e!==null?e.memoizedState:null}else e=dt.next;var t=qt===null?Be.memoizedState:qt.next;if(t!==null)qt=t,dt=e;else{if(e===null)throw Be.alternate===null?Error(o(467)):Error(o(310));dt=e,e={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},qt===null?Be.memoizedState=qt=e:qt=qt.next=e}return qt}function Iu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vi(e){var t=pi;return pi+=1,yr===null&&(yr=[]),e=nh(yr,e,t),t=Be,(qt===null?t.memoizedState:qt.next)===null&&(t=t.alternate,V.H=t===null||t.memoizedState===null?Ph:nd),e}function Xu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return vi(e);if(e.$$typeof===F)return Jt(e)}throw Error(o(438,String(e)))}function Zo(e){var t=null,a=Be.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=Be.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Iu(),Be.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=C;return t.index++,a}function Gn(e,t){return typeof t=="function"?t(e):t}function Ju(e){var t=kt();return Qo(t,dt,e)}function Qo(e,t,a){var n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=a;var i=e.baseQueue,c=n.pending;if(c!==null){if(i!==null){var p=i.next;i.next=c.next,c.next=p}t.baseQueue=i=c,n.pending=null}if(c=e.baseState,i===null)e.memoizedState=c;else{t=i.next;var E=p=null,R=null,Z=t,se=!1;do{var ce=Z.lane&-536870913;if(ce!==Z.lane?(We&ce)===ce:(Fn&ce)===ce){var I=Z.revertLane;if(I===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null}),ce===or&&(se=!0);else if((Fn&I)===I){Z=Z.next,I===or&&(se=!0);continue}else ce={lane:0,revertLane:Z.revertLane,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},R===null?(E=R=ce,p=c):R=R.next=ce,Be.lanes|=I,Al|=I;ce=Z.action,Ts&&a(c,ce),c=Z.hasEagerState?Z.eagerState:a(c,ce)}else I={lane:ce,revertLane:Z.revertLane,gesture:Z.gesture,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},R===null?(E=R=I,p=c):R=R.next=I,Be.lanes|=ce,Al|=ce;Z=Z.next}while(Z!==null&&Z!==t);if(R===null?p=c:R.next=E,!sa(c,e.memoizedState)&&(Vt=!0,se&&(a=dr,a!==null)))throw a;e.memoizedState=c,e.baseState=p,e.baseQueue=R,n.lastRenderedState=c}return i===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Po(e){var t=kt(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var n=a.dispatch,i=a.pending,c=t.memoizedState;if(i!==null){a.pending=null;var p=i=i.next;do c=e(c,p.action),p=p.next;while(p!==i);sa(c,t.memoizedState)||(Vt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,n]}function mh(e,t,a){var n=Be,i=kt(),c=H;if(c){if(a===void 0)throw Error(o(407));a=a()}else a=t();var p=!sa((dt||i).memoizedState,a);if(p&&(i.memoizedState=a,Vt=!0),i=i.queue,Xo(xh.bind(null,n,i,e),[e]),i.getSnapshot!==t||p||qt!==null&&qt.memoizedState.tag&1){if(n.flags|=2048,xr(9,{destroy:void 0},yh.bind(null,n,i,a,t),null),yt===null)throw Error(o(349));c||(Fn&127)!==0||gh(n,t,a)}return a}function gh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Be.updateQueue,t===null?(t=Iu(),Be.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function yh(e,t,a,n){t.value=a,t.getSnapshot=n,ph(t)&&vh(e)}function xh(e,t,a){return a(function(){ph(t)&&vh(e)})}function ph(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!sa(e,a)}catch{return!0}}function vh(e){var t=Ya(e,2);t!==null&&Ea(t,e,2)}function Wo(e){var t=oa();if(typeof e=="function"){var a=e;if(e=a(),Ts){bt(!0);try{a()}finally{bt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:e},t}function bh(e,t,a,n){return e.baseState=a,Qo(e,dt,typeof n=="function"?n:Gn)}function Cx(e,t,a,n,i){if(tc(e))throw Error(o(485));if(e=t.action,e!==null){var c={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){c.listeners.push(p)}};V.T!==null?a(!0):c.isTransition=!1,n(c),a=t.pending,a===null?(c.next=t.pending=c,Sh(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Sh(e,t){var a=t.action,n=t.payload,i=e.state;if(t.isTransition){var c=V.T,p={};V.T=p;try{var E=a(i,n),R=V.S;R!==null&&R(p,E),wh(e,t,E)}catch(Z){Io(e,t,Z)}finally{c!==null&&p.types!==null&&(c.types=p.types),V.T=c}}else try{c=a(i,n),wh(e,t,c)}catch(Z){Io(e,t,Z)}}function wh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){Nh(e,t,n)},function(n){return Io(e,t,n)}):Nh(e,t,a)}function Nh(e,t,a){t.status="fulfilled",t.value=a,jh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Sh(e,a)))}function Io(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,jh(t),t=t.next;while(t!==n)}e.action=null}function jh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Eh(e,t){return t}function Th(e,t){if(H){var a=yt.formState;if(a!==null){e:{var n=Be;if(H){if(z){t:{for(var i=z,c=ve;i.nodeType!==8;){if(!c){i=null;break t}if(i=Wa(i.nextSibling),i===null){i=null;break t}}c=i.data,i=c==="F!"||c==="F"?i:null}if(i){z=Wa(i.nextSibling),n=i.data==="F!";break e}}Pe(n)}n=!1}n&&(t=a[0])}}return a=oa(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eh,lastRenderedState:t},a.queue=n,a=Gh.bind(null,Be,n),n.dispatch=a,n=Wo(!1),c=ad.bind(null,Be,!1,n.queue),n=oa(),i={state:t,dispatch:null,action:e,pending:null},n.queue=i,a=Cx.bind(null,Be,i,c,a),i.dispatch=a,n.memoizedState=e,[t,a,!1]}function Mh(e){var t=kt();return Ch(t,dt,e)}function Ch(e,t,a){if(t=Qo(e,t,Eh)[0],e=Ju(Gn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=vi(t)}catch(p){throw p===fr?Yu:p}else n=t;t=kt();var i=t.queue,c=i.dispatch;return a!==t.memoizedState&&(Be.flags|=2048,xr(9,{destroy:void 0},Ox.bind(null,i,a),null)),[n,c,e]}function Ox(e,t){e.action=t}function Oh(e){var t=kt(),a=dt;if(a!==null)return Ch(t,a,e);kt(),t=t.memoizedState,a=kt();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function xr(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=Be.updateQueue,t===null&&(t=Iu(),Be.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function Dh(){return kt().memoizedState}function Ku(e,t,a,n){var i=oa();Be.flags|=e,i.memoizedState=xr(1|t,{destroy:void 0},a,n===void 0?null:n)}function ec(e,t,a,n){var i=kt();n=n===void 0?null:n;var c=i.memoizedState.inst;dt!==null&&n!==null&&Bo(n,dt.memoizedState.deps)?i.memoizedState=xr(t,c,a,n):(Be.flags|=e,i.memoizedState=xr(1|t,c,a,n))}function Rh(e,t){Ku(8390656,8,e,t)}function Xo(e,t){ec(2048,8,e,t)}function Dx(e){Be.flags|=4;var t=Be.updateQueue;if(t===null)t=Iu(),Be.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Ah(e){var t=kt().memoizedState;return Dx({ref:t,nextImpl:e}),function(){if((lt&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function _h(e,t){return ec(4,2,e,t)}function kh(e,t){return ec(4,4,e,t)}function zh(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Uh(e,t,a){a=a!=null?a.concat([e]):null,ec(4,4,zh.bind(null,t,e),a)}function Jo(){}function Hh(e,t){var a=kt();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&Bo(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function Lh(e,t){var a=kt();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&Bo(t,n[1]))return n[0];if(n=e(),Ts){bt(!0);try{e()}finally{bt(!1)}}return a.memoizedState=[n,t],n}function Ko(e,t,a){return a===void 0||(Fn&1073741824)!==0&&(We&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=qm(),Be.lanes|=e,Al|=e,a)}function qh(e,t,a,n){return sa(a,t)?a:mr.current!==null?(e=Ko(e,a,n),sa(e,t)||(Vt=!0),e):(Fn&42)===0||(Fn&1073741824)!==0&&(We&261930)===0?(Vt=!0,e.memoizedState=a):(e=qm(),Be.lanes|=e,Al|=e,t)}function Vh(e,t,a,n,i){var c=re.p;re.p=c!==0&&8>c?c:8;var p=V.T,E={};V.T=E,ad(e,!1,t,a);try{var R=i(),Z=V.S;if(Z!==null&&Z(E,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var se=Ex(R,n);bi(e,t,se,za(e))}else bi(e,t,n,za(e))}catch(ce){bi(e,t,{then:function(){},status:"rejected",reason:ce},za())}finally{re.p=c,p!==null&&E.types!==null&&(p.types=E.types),V.T=p}}function Rx(){}function ed(e,t,a,n){if(e.tag!==5)throw Error(o(476));var i=Bh(e).queue;Vh(e,i,t,ye,a===null?Rx:function(){return Yh(e),a(n)})}function Bh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ye,baseState:ye,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:ye},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Yh(e){var t=Bh(e);t.next===null&&(t=e.alternate.memoizedState),bi(e,t.next.queue,{},za())}function td(){return Jt(Hi)}function $h(){return kt().memoizedState}function Fh(){return kt().memoizedState}function Ax(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=za();e=Tl(a);var n=Ml(t,e,a);n!==null&&(Ea(n,t,a),gi(n,t,a)),t={cache:Do()},e.payload=t;return}t=t.return}}function _x(e,t,a){var n=za();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},tc(e)?Zh(t,a):(a=lr(e,t,a,n),a!==null&&(Ea(a,e,n),Qh(a,t,n)))}function Gh(e,t,a){var n=za();bi(e,t,a,n)}function bi(e,t,a,n){var i={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(tc(e))Zh(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,E=c(p,a);if(i.hasEagerState=!0,i.eagerState=E,sa(E,p))return Ba(e,t,i,0),yt===null&&Nl(),!1}catch{}finally{}if(a=lr(e,t,i,n),a!==null)return Ea(a,e,n),Qh(a,t,n),!0}return!1}function ad(e,t,a,n){if(n={lane:2,revertLane:kd(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},tc(e)){if(t)throw Error(o(479))}else t=lr(e,a,n,2),t!==null&&Ea(t,e,2)}function tc(e){var t=e.alternate;return e===Be||t!==null&&t===Be}function Zh(e,t){gr=Pu=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Qh(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,ga(e,a)}}var Si={readContext:Jt,use:Xu,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useLayoutEffect:Ct,useInsertionEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useSyncExternalStore:Ct,useId:Ct,useHostTransitionStatus:Ct,useFormState:Ct,useActionState:Ct,useOptimistic:Ct,useMemoCache:Ct,useCacheRefresh:Ct};Si.useEffectEvent=Ct;var Ph={readContext:Jt,use:Xu,useCallback:function(e,t){return oa().memoizedState=[e,t===void 0?null:t],e},useContext:Jt,useEffect:Rh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ku(4194308,4,zh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ku(4194308,4,e,t)},useInsertionEffect:function(e,t){Ku(4,2,e,t)},useMemo:function(e,t){var a=oa();t=t===void 0?null:t;var n=e();if(Ts){bt(!0);try{e()}finally{bt(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=oa();if(a!==void 0){var i=a(t);if(Ts){bt(!0);try{a(t)}finally{bt(!1)}}}else i=t;return n.memoizedState=n.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},n.queue=e,e=e.dispatch=_x.bind(null,Be,e),[n.memoizedState,e]},useRef:function(e){var t=oa();return e={current:e},t.memoizedState=e},useState:function(e){e=Wo(e);var t=e.queue,a=Gh.bind(null,Be,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Jo,useDeferredValue:function(e,t){var a=oa();return Ko(a,e,t)},useTransition:function(){var e=Wo(!1);return e=Vh.bind(null,Be,e.queue,!0,!1),oa().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=Be,i=oa();if(H){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),yt===null)throw Error(o(349));(We&127)!==0||gh(n,t,a)}i.memoizedState=a;var c={value:a,getSnapshot:t};return i.queue=c,Rh(xh.bind(null,n,c,e),[e]),n.flags|=2048,xr(9,{destroy:void 0},yh.bind(null,n,c,a,t),null),a},useId:function(){var e=oa(),t=yt.identifierPrefix;if(H){var a=m,n=Ga;a=(n&~(1<<32-Ut(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Wu++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Tx++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:td,useFormState:Th,useActionState:Th,useOptimistic:function(e){var t=oa();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ad.bind(null,Be,!0,a),a.dispatch=t,[e,t]},useMemoCache:Zo,useCacheRefresh:function(){return oa().memoizedState=Ax.bind(null,Be)},useEffectEvent:function(e){var t=oa(),a={impl:e};return t.memoizedState=a,function(){if((lt&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},nd={readContext:Jt,use:Xu,useCallback:Hh,useContext:Jt,useEffect:Xo,useImperativeHandle:Uh,useInsertionEffect:_h,useLayoutEffect:kh,useMemo:Lh,useReducer:Ju,useRef:Dh,useState:function(){return Ju(Gn)},useDebugValue:Jo,useDeferredValue:function(e,t){var a=kt();return qh(a,dt.memoizedState,e,t)},useTransition:function(){var e=Ju(Gn)[0],t=kt().memoizedState;return[typeof e=="boolean"?e:vi(e),t]},useSyncExternalStore:mh,useId:$h,useHostTransitionStatus:td,useFormState:Mh,useActionState:Mh,useOptimistic:function(e,t){var a=kt();return bh(a,dt,e,t)},useMemoCache:Zo,useCacheRefresh:Fh};nd.useEffectEvent=Ah;var Wh={readContext:Jt,use:Xu,useCallback:Hh,useContext:Jt,useEffect:Xo,useImperativeHandle:Uh,useInsertionEffect:_h,useLayoutEffect:kh,useMemo:Lh,useReducer:Po,useRef:Dh,useState:function(){return Po(Gn)},useDebugValue:Jo,useDeferredValue:function(e,t){var a=kt();return dt===null?Ko(a,e,t):qh(a,dt.memoizedState,e,t)},useTransition:function(){var e=Po(Gn)[0],t=kt().memoizedState;return[typeof e=="boolean"?e:vi(e),t]},useSyncExternalStore:mh,useId:$h,useHostTransitionStatus:td,useFormState:Oh,useActionState:Oh,useOptimistic:function(e,t){var a=kt();return dt!==null?bh(a,dt,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Zo,useCacheRefresh:Fh};Wh.useEffectEvent=Ah;function ld(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:S({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var sd={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=za(),i=Tl(n);i.payload=t,a!=null&&(i.callback=a),t=Ml(e,i,n),t!==null&&(Ea(t,e,n),gi(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=za(),i=Tl(n);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=Ml(e,i,n),t!==null&&(Ea(t,e,n),gi(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=za(),n=Tl(a);n.tag=2,t!=null&&(n.callback=t),t=Ml(e,n,a),t!==null&&(Ea(t,e,a),gi(t,e,a))}};function Ih(e,t,a,n,i,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,c,p):t.prototype&&t.prototype.isPureReactComponent?!gs(a,n)||!gs(i,c):!0}function Xh(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&sd.enqueueReplaceState(t,t.state,null)}function Ms(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=S({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function Jh(e){wl(e)}function Kh(e){console.error(e)}function em(e){wl(e)}function ac(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function tm(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function rd(e,t,a){return a=Tl(a),a.tag=3,a.payload={element:null},a.callback=function(){ac(e,t)},a}function am(e){return e=Tl(e),e.tag=3,e}function nm(e,t,a,n){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var c=n.value;e.payload=function(){return i(c)},e.callback=function(){tm(t,a,n)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){tm(t,a,n),typeof i!="function"&&(_l===null?_l=new Set([this]):_l.add(this));var E=n.stack;this.componentDidCatch(n.value,{componentStack:E!==null?E:""})})}function kx(e,t,a,n,i){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&Qa(t,a,i,!0),a=Ra.current,a!==null){switch(a.tag){case 31:case 13:return Pa===null?mc():a.alternate===null&&Ot===0&&(Ot=3),a.flags&=-257,a.flags|=65536,a.lanes=i,n===$u?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),Rd(e,n,i)),!1;case 22:return a.flags|=65536,n===$u?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),Rd(e,n,i)),!1}throw Error(o(435,a.tag))}return Rd(e,n,i),mc(),!1}if(H)return t=Ra.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,n!==Le&&(e=Error(o(422),{cause:n}),on(va(e,a)))):(n!==Le&&(t=Error(o(423),{cause:n}),on(va(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,n=va(n,a),i=rd(e.stateNode,n,i),Uo(e,i),Ot!==4&&(Ot=2)),!1;var c=Error(o(520),{cause:n});if(c=va(c,a),Oi===null?Oi=[c]:Oi.push(c),Ot!==4&&(Ot=2),t===null)return!0;n=va(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=rd(a.stateNode,n,e),Uo(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(_l===null||!_l.has(c))))return a.flags|=65536,i&=-i,a.lanes|=i,i=am(i),nm(i,e,a,n),Uo(a,i),!1}a=a.return}while(a!==null);return!1}var id=Error(o(461)),Vt=!1;function Kt(e,t,a,n){t.child=e===null?ih(t,null,a,n):Es(t,e.child,a,n)}function lm(e,t,a,n,i){a=a.render;var c=t.ref;if("ref"in n){var p={};for(var E in n)E!=="ref"&&(p[E]=n[E])}else p=n;return Ss(t),n=Yo(e,t,a,p,c,i),E=$o(),e!==null&&!Vt?(Fo(e,t,i),Zn(e,t,i)):(H&&E&&v(t),t.flags|=1,Kt(e,t,n,i),t.child)}function sm(e,t,a,n,i){if(e===null){var c=a.type;return typeof c=="function"&&!rr(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,rm(e,t,c,n,i)):(e=ir(a.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!gd(e,i)){var p=c.memoizedProps;if(a=a.compare,a=a!==null?a:gs,a(p,n)&&e.ref===t.ref)return Zn(e,t,i)}return t.flags|=1,e=$a(c,n),e.ref=t.ref,e.return=t,t.child=e}function rm(e,t,a,n,i){if(e!==null){var c=e.memoizedProps;if(gs(c,n)&&e.ref===t.ref)if(Vt=!1,t.pendingProps=n=c,gd(e,i))(e.flags&131072)!==0&&(Vt=!0);else return t.lanes=e.lanes,Zn(e,t,i)}return ud(e,t,a,n,i)}function im(e,t,a,n){var i=n.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(n=t.child=e.child,i=0;n!==null;)i=i|n.lanes|n.childLanes,n=n.sibling;n=i&~c}else n=0,t.child=null;return um(e,t,c,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Bu(t,c!==null?c.cachePool:null),c!==null?oh(t,c):Lo(),dh(t);else return n=t.lanes=536870912,um(e,t,c!==null?c.baseLanes|a:a,a,n)}else c!==null?(Bu(t,c.cachePool),oh(t,c),Ol(),t.memoizedState=null):(e!==null&&Bu(t,null),Lo(),Ol());return Kt(e,t,i,a),t.child}function wi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function um(e,t,a,n,i){var c=Ao();return c=c===null?null:{parent:Lt._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&Bu(t,null),Lo(),dh(t),e!==null&&Qa(e,t,n,!0),t.childLanes=i,null}function nc(e,t){return t=sc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function cm(e,t,a){return Es(t,e.child,null,a),e=nc(t,t.pendingProps),e.flags|=2,Aa(t),t.memoizedState=null,e}function zx(e,t,a){var n=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(H){if(n.mode==="hidden")return e=nc(t,n),t.lanes=536870912,wi(null,e);if(Vo(t),(e=z)?(e=S0(e,ve),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ba!==null?{id:Ga,overflow:m}:null,retryLane:536870912,hydrationErrors:null},a=qu(e),a.return=t,t.child=a,_=t,z=null)):e=null,e===null)throw Pe(t);return t.lanes=536870912,null}return nc(t,n)}var c=e.memoizedState;if(c!==null){var p=c.dehydrated;if(Vo(t),i)if(t.flags&256)t.flags&=-257,t=cm(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Vt||Qa(e,t,a,!1),i=(a&e.childLanes)!==0,Vt||i){if(n=yt,n!==null&&(p=Br(n,a),p!==0&&p!==c.retryLane))throw c.retryLane=p,Ya(e,p),Ea(n,e,p),id;mc(),t=cm(e,t,a)}else e=c.treeContext,z=Wa(p.nextSibling),_=t,H=!0,de=null,ve=!1,e!==null&&O(t,e),t=nc(t,n),t.flags|=4096;return t}return e=$a(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function lc(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function ud(e,t,a,n,i){return Ss(t),a=Yo(e,t,a,n,void 0,i),n=$o(),e!==null&&!Vt?(Fo(e,t,i),Zn(e,t,i)):(H&&n&&v(t),t.flags|=1,Kt(e,t,a,i),t.child)}function om(e,t,a,n,i,c){return Ss(t),t.updateQueue=null,a=hh(t,n,a,i),fh(e),n=$o(),e!==null&&!Vt?(Fo(e,t,c),Zn(e,t,c)):(H&&n&&v(t),t.flags|=1,Kt(e,t,a,c),t.child)}function dm(e,t,a,n,i){if(Ss(t),t.stateNode===null){var c=Da,p=a.contextType;typeof p=="object"&&p!==null&&(c=Jt(p)),c=new a(n,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=sd,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=n,c.state=t.memoizedState,c.refs={},ko(t),p=a.contextType,c.context=typeof p=="object"&&p!==null?Jt(p):Da,c.state=t.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(ld(t,a,p,n),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&sd.enqueueReplaceState(c,c.state,null),xi(t,n,c,i),yi(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){c=t.stateNode;var E=t.memoizedProps,R=Ms(a,E);c.props=R;var Z=c.context,se=a.contextType;p=Da,typeof se=="object"&&se!==null&&(p=Jt(se));var ce=a.getDerivedStateFromProps;se=typeof ce=="function"||typeof c.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,se||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(E||Z!==p)&&Xh(t,c,n,p),El=!1;var I=t.memoizedState;c.state=I,xi(t,n,c,i),yi(),Z=t.memoizedState,E||I!==Z||El?(typeof ce=="function"&&(ld(t,a,ce,n),Z=t.memoizedState),(R=El||Ih(t,a,R,n,I,Z,p))?(se||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=Z),c.props=n,c.state=Z,c.context=p,n=R):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{c=t.stateNode,zo(e,t),p=t.memoizedProps,se=Ms(a,p),c.props=se,ce=t.pendingProps,I=c.context,Z=a.contextType,R=Da,typeof Z=="object"&&Z!==null&&(R=Jt(Z)),E=a.getDerivedStateFromProps,(Z=typeof E=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==ce||I!==R)&&Xh(t,c,n,R),El=!1,I=t.memoizedState,c.state=I,xi(t,n,c,i),yi();var te=t.memoizedState;p!==ce||I!==te||El||e!==null&&e.dependencies!==null&&cr(e.dependencies)?(typeof E=="function"&&(ld(t,a,E,n),te=t.memoizedState),(se=El||Ih(t,a,se,n,I,te,R)||e!==null&&e.dependencies!==null&&cr(e.dependencies))?(Z||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(n,te,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(n,te,R)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=te),c.props=n,c.state=te,c.context=R,n=se):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),n=!1)}return c=n,lc(e,t),n=(t.flags&128)!==0,c||n?(c=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&n?(t.child=Es(t,e.child,null,i),t.child=Es(t,null,a,i)):Kt(e,t,a,i),t.memoizedState=c.state,e=t.child):e=Zn(e,t,i),e}function fm(e,t,a,n){return Zt(),t.flags|=256,Kt(e,t,a,n),t.child}var cd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function od(e){return{baseLanes:e,cachePool:th()}}function dd(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=ka),e}function hm(e,t,a){var n=t.pendingProps,i=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(_t.current&2)!==0),p&&(i=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(H){if(i?Cl(t):Ol(),(e=z)?(e=S0(e,ve),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ba!==null?{id:Ga,overflow:m}:null,retryLane:536870912,hydrationErrors:null},a=qu(e),a.return=t,t.child=a,_=t,z=null)):e=null,e===null)throw Pe(t);return Qd(e)?t.lanes=32:t.lanes=536870912,null}var E=n.children;return n=n.fallback,i?(Ol(),i=t.mode,E=sc({mode:"hidden",children:E},i),n=Fa(n,i,a,null),E.return=t,n.return=t,E.sibling=n,t.child=E,n=t.child,n.memoizedState=od(a),n.childLanes=dd(e,p,a),t.memoizedState=cd,wi(null,n)):(Cl(t),fd(t,E))}var R=e.memoizedState;if(R!==null&&(E=R.dehydrated,E!==null)){if(c)t.flags&256?(Cl(t),t.flags&=-257,t=hd(e,t,a)):t.memoizedState!==null?(Ol(),t.child=e.child,t.flags|=128,t=null):(Ol(),E=n.fallback,i=t.mode,n=sc({mode:"visible",children:n.children},i),E=Fa(E,i,a,null),E.flags|=2,n.return=t,E.return=t,n.sibling=E,t.child=n,Es(t,e.child,null,a),n=t.child,n.memoizedState=od(a),n.childLanes=dd(e,p,a),t.memoizedState=cd,t=wi(null,n));else if(Cl(t),Qd(E)){if(p=E.nextSibling&&E.nextSibling.dataset,p)var Z=p.dgst;p=Z,n=Error(o(419)),n.stack="",n.digest=p,on({value:n,source:null,stack:null}),t=hd(e,t,a)}else if(Vt||Qa(e,t,a,!1),p=(a&e.childLanes)!==0,Vt||p){if(p=yt,p!==null&&(n=Br(p,a),n!==0&&n!==R.retryLane))throw R.retryLane=n,Ya(e,n),Ea(p,e,n),id;Zd(E)||mc(),t=hd(e,t,a)}else Zd(E)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,z=Wa(E.nextSibling),_=t,H=!0,de=null,ve=!1,e!==null&&O(t,e),t=fd(t,n.children),t.flags|=4096);return t}return i?(Ol(),E=n.fallback,i=t.mode,R=e.child,Z=R.sibling,n=$a(R,{mode:"hidden",children:n.children}),n.subtreeFlags=R.subtreeFlags&65011712,Z!==null?E=$a(Z,E):(E=Fa(E,i,a,null),E.flags|=2),E.return=t,n.return=t,n.sibling=E,t.child=n,wi(null,n),n=t.child,E=e.child.memoizedState,E===null?E=od(a):(i=E.cachePool,i!==null?(R=Lt._currentValue,i=i.parent!==R?{parent:R,pool:R}:i):i=th(),E={baseLanes:E.baseLanes|a,cachePool:i}),n.memoizedState=E,n.childLanes=dd(e,p,a),t.memoizedState=cd,wi(e.child,n)):(Cl(t),a=e.child,e=a.sibling,a=$a(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=a,t.memoizedState=null,a)}function fd(e,t){return t=sc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function sc(e,t){return e=Xt(22,e,null,t),e.lanes=0,e}function hd(e,t,a){return Es(t,e.child,null,a),e=fd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function mm(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),oi(e.return,t,a)}function md(e,t,a,n,i,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:i,treeForkCount:c}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=n,p.tail=a,p.tailMode=i,p.treeForkCount=c)}function gm(e,t,a){var n=t.pendingProps,i=n.revealOrder,c=n.tail;n=n.children;var p=_t.current,E=(p&2)!==0;if(E?(p=p&1|2,t.flags|=128):p&=1,me(_t,p),Kt(e,t,n,a),n=H?cn:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mm(e,a,t);else if(e.tag===19)mm(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&Qu(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),md(t,!1,i,a,c,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Qu(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}md(t,!0,a,null,c,n);break;case"together":md(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function Zn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Al|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Qa(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=$a(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=$a(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function gd(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&cr(e)))}function Ux(e,t,a){switch(t.tag){case 3:jt(t,t.stateNode.containerInfo),Tn(t,Lt,e.memoizedState.cache),Zt();break;case 27:case 5:ta(t);break;case 4:jt(t,t.stateNode.containerInfo);break;case 10:Tn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Vo(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Cl(t),t.flags|=128,null):(a&t.child.childLanes)!==0?hm(e,t,a):(Cl(t),e=Zn(e,t,a),e!==null?e.sibling:null);Cl(t);break;case 19:var i=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(Qa(e,t,a,!1),n=(a&t.childLanes)!==0),i){if(n)return gm(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),me(_t,_t.current),n)break;return null;case 22:return t.lanes=0,im(e,t,a,t.pendingProps);case 24:Tn(t,Lt,e.memoizedState.cache)}return Zn(e,t,a)}function ym(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Vt=!0;else{if(!gd(e,a)&&(t.flags&128)===0)return Vt=!1,Ux(e,t,a);Vt=(e.flags&131072)!==0}else Vt=!1,H&&(t.flags&1048576)!==0&&h(t,cn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Ns(t.elementType),t.type=e,typeof e=="function")rr(e)?(n=Ms(e,n),t.tag=1,t=dm(null,t,e,n,a)):(t.tag=0,t=ud(null,t,e,n,a));else{if(e!=null){var i=e.$$typeof;if(i===J){t.tag=11,t=lm(null,t,e,n,a);break e}else if(i===P){t.tag=14,t=sm(null,t,e,n,a);break e}}throw t=ge(e)||e,Error(o(306,t,""))}}return t;case 0:return ud(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,i=Ms(n,t.pendingProps),dm(e,t,n,i,a);case 3:e:{if(jt(t,t.stateNode.containerInfo),e===null)throw Error(o(387));n=t.pendingProps;var c=t.memoizedState;i=c.element,zo(e,t),xi(t,n,null,a);var p=t.memoizedState;if(n=p.cache,Tn(t,Lt,n),n!==c.cache&&$n(t,[Lt],a,!0),yi(),n=p.element,c.isDehydrated)if(c={element:n,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=fm(e,t,n,a);break e}else if(n!==i){i=va(Error(o(424)),t),on(i),t=fm(e,t,n,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(z=Wa(e.firstChild),_=t,H=!0,de=null,ve=!0,a=ih(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Zt(),n===i){t=Zn(e,t,a);break e}Kt(e,t,n,a)}t=t.child}return t;case 26:return lc(e,t),e===null?(a=M0(t.type,null,t.pendingProps,null))?t.memoizedState=a:H||(a=t.type,e=t.pendingProps,n=Sc(Me.current).createElement(a),n[Dt]=t,n[Yt]=e,ea(n,a,e),Ht(n),t.stateNode=n):t.memoizedState=M0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ta(t),e===null&&H&&(n=t.stateNode=j0(t.type,t.pendingProps,Me.current),_=t,ve=!0,i=z,Hl(t.type)?(Pd=i,z=Wa(n.firstChild)):z=i),Kt(e,t,t.pendingProps.children,a),lc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&H&&((i=n=z)&&(n=fp(n,t.type,t.pendingProps,ve),n!==null?(t.stateNode=n,_=t,z=Wa(n.firstChild),ve=!1,i=!0):i=!1),i||Pe(t)),ta(t),i=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,n=c.children,$d(i,c)?n=null:p!==null&&$d(i,p)&&(t.flags|=32),t.memoizedState!==null&&(i=Yo(e,t,Mx,null,null,a),Hi._currentValue=i),lc(e,t),Kt(e,t,n,a),t.child;case 6:return e===null&&H&&((e=a=z)&&(a=hp(a,t.pendingProps,ve),a!==null?(t.stateNode=a,_=t,z=null,e=!0):e=!1),e||Pe(t)),null;case 13:return hm(e,t,a);case 4:return jt(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Es(t,null,n,a):Kt(e,t,n,a),t.child;case 11:return lm(e,t,t.type,t.pendingProps,a);case 7:return Kt(e,t,t.pendingProps,a),t.child;case 8:return Kt(e,t,t.pendingProps.children,a),t.child;case 12:return Kt(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Tn(t,t.type,n.value),Kt(e,t,n.children,a),t.child;case 9:return i=t.type._context,n=t.pendingProps.children,Ss(t),i=Jt(i),n=n(i),t.flags|=1,Kt(e,t,n,a),t.child;case 14:return sm(e,t,t.type,t.pendingProps,a);case 15:return rm(e,t,t.type,t.pendingProps,a);case 19:return gm(e,t,a);case 31:return zx(e,t,a);case 22:return im(e,t,a,t.pendingProps);case 24:return Ss(t),n=Jt(Lt),e===null?(i=Ao(),i===null&&(i=yt,c=Do(),i.pooledCache=c,c.refCount++,c!==null&&(i.pooledCacheLanes|=a),i=c),t.memoizedState={parent:n,cache:i},ko(t),Tn(t,Lt,i)):((e.lanes&a)!==0&&(zo(e,t),xi(t,null,null,a),yi()),i=e.memoizedState,c=t.memoizedState,i.parent!==n?(i={parent:n,cache:n},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Tn(t,Lt,n)):(n=c.cache,Tn(t,Lt,n),n!==i.cache&&$n(t,[Lt],a,!0))),Kt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Qn(e){e.flags|=4}function yd(e,t,a,n,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if($m())e.flags|=8192;else throw js=$u,_o}else e.flags&=-16777217}function xm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!A0(t))if($m())e.flags|=8192;else throw js=$u,_o}function rc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Vr():536870912,e.lanes|=t,Sr|=t)}function Ni(e,t){if(!H)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function wt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags&65011712,n|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function Hx(e,t,a){var n=t.pendingProps;switch(j(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wt(t),null;case 1:return wt(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),dn(Lt),et(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Gt(t)?Qn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,En())),wt(t),null;case 26:var i=t.type,c=t.memoizedState;return e===null?(Qn(t),c!==null?(wt(t),xm(t,c)):(wt(t),yd(t,i,null,n,a))):c?c!==e.memoizedState?(Qn(t),wt(t),xm(t,c)):(wt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Qn(t),wt(t),yd(t,i,e,n,a)),null;case 27:if(Ca(t),a=Me.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Qn(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return wt(t),null}e=xe.current,Gt(t)?Ae(t):(e=j0(i,n,a),t.stateNode=e,Qn(t))}return wt(t),null;case 5:if(Ca(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Qn(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return wt(t),null}if(c=xe.current,Gt(t))Ae(t);else{var p=Sc(Me.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof n.is=="string"?p.createElement("select",{is:n.is}):p.createElement("select"),n.multiple?c.multiple=!0:n.size&&(c.size=n.size);break;default:c=typeof n.is=="string"?p.createElement(i,{is:n.is}):p.createElement(i)}}c[Dt]=t,c[Yt]=n;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=c;e:switch(ea(c,i,n),i){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Qn(t)}}return wt(t),yd(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Qn(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(o(166));if(e=Me.current,Gt(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,i=_,i!==null)switch(i.tag){case 27:case 5:n=i.memoizedProps}e[Dt]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||h0(e.nodeValue,a)),e||Pe(t,!0)}else e=Sc(e).createTextNode(n),e[Dt]=t,t.stateNode=e}return wt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Gt(t),a!==null){if(e===null){if(!n)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Dt]=t}else Zt(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;wt(t),e=!1}else a=En(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Aa(t),t):(Aa(t),null);if((t.flags&128)!==0)throw Error(o(558))}return wt(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Gt(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[Dt]=t}else Zt(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;wt(t),i=!1}else i=En(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Aa(t),t):(Aa(t),null)}return Aa(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,i=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(i=n.alternate.memoizedState.cachePool.pool),c=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(c=n.memoizedState.cachePool.pool),c!==i&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),rc(t,t.updateQueue),wt(t),null);case 4:return et(),e===null&&Ld(t.stateNode.containerInfo),wt(t),null;case 10:return dn(t.type),wt(t),null;case 19:if(le(_t),n=t.memoizedState,n===null)return wt(t),null;if(i=(t.flags&128)!==0,c=n.rendering,c===null)if(i)Ni(n,!1);else{if(Ot!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Qu(e),c!==null){for(t.flags|=128,Ni(n,!1),e=c.updateQueue,t.updateQueue=e,rc(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Lu(a,e),a=a.sibling;return me(_t,_t.current&1|2),H&&r(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&ot()>dc&&(t.flags|=128,i=!0,Ni(n,!1),t.lanes=4194304)}else{if(!i)if(e=Qu(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,rc(t,e),Ni(n,!0),n.tail===null&&n.tailMode==="hidden"&&!c.alternate&&!H)return wt(t),null}else 2*ot()-n.renderingStartTime>dc&&a!==536870912&&(t.flags|=128,i=!0,Ni(n,!1),t.lanes=4194304);n.isBackwards?(c.sibling=t.child,t.child=c):(e=n.last,e!==null?e.sibling=c:t.child=c,n.last=c)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=ot(),e.sibling=null,a=_t.current,me(_t,i?a&1|2:a&1),H&&r(t,n.treeForkCount),e):(wt(t),null);case 22:case 23:return Aa(t),qo(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(wt(t),t.subtreeFlags&6&&(t.flags|=8192)):wt(t),a=t.updateQueue,a!==null&&rc(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&le(ws),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),dn(Lt),wt(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Lx(e,t){switch(j(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dn(Lt),et(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ca(t),null;case 31:if(t.memoizedState!==null){if(Aa(t),t.alternate===null)throw Error(o(340));Zt()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Aa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Zt()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(_t),null;case 4:return et(),null;case 10:return dn(t.type),null;case 22:case 23:return Aa(t),qo(),e!==null&&le(ws),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return dn(Lt),null;case 25:return null;default:return null}}function pm(e,t){switch(j(t),t.tag){case 3:dn(Lt),et();break;case 26:case 27:case 5:Ca(t);break;case 4:et();break;case 31:t.memoizedState!==null&&Aa(t);break;case 13:Aa(t);break;case 19:le(_t);break;case 10:dn(t.type);break;case 22:case 23:Aa(t),qo(),e!==null&&le(ws);break;case 24:dn(Lt)}}function ji(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){n=void 0;var c=a.create,p=a.inst;n=c(),p.destroy=n}a=a.next}while(a!==i)}}catch(E){ut(t,t.return,E)}}function Dl(e,t,a){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var c=i.next;n=c;do{if((n.tag&e)===e){var p=n.inst,E=p.destroy;if(E!==void 0){p.destroy=void 0,i=t;var R=a,Z=E;try{Z()}catch(se){ut(i,R,se)}}}n=n.next}while(n!==c)}}catch(se){ut(t,t.return,se)}}function vm(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{ch(t,a)}catch(n){ut(e,e.return,n)}}}function bm(e,t,a){a.props=Ms(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){ut(e,t,n)}}function Ei(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(i){ut(e,t,i)}}function Mn(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(i){ut(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){ut(e,t,i)}else a.current=null}function Sm(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(i){ut(e,e.return,i)}}function xd(e,t,a){try{var n=e.stateNode;rp(n,e.type,a,t),n[Yt]=t}catch(i){ut(e,e.return,i)}}function wm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Hl(e.type)||e.tag===4}function pd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wm(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.tag===27&&Hl(e.type)||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 vd(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=qa));else if(n!==4&&(n===27&&Hl(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(vd(e,t,a),e=e.sibling;e!==null;)vd(e,t,a),e=e.sibling}function ic(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&Hl(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(ic(e,t,a),e=e.sibling;e!==null;)ic(e,t,a),e=e.sibling}function Nm(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ea(t,n,a),t[Dt]=e,t[Yt]=a}catch(c){ut(e,e.return,c)}}var Pn=!1,Bt=!1,bd=!1,jm=typeof WeakSet=="function"?WeakSet:Set,Qt=null;function qx(e,t){if(e=e.containerInfo,Bd=Cc,e=Mo(e),er(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var i=n.anchorOffset,c=n.focusNode;n=n.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var p=0,E=-1,R=-1,Z=0,se=0,ce=e,I=null;t:for(;;){for(var te;ce!==a||i!==0&&ce.nodeType!==3||(E=p+i),ce!==c||n!==0&&ce.nodeType!==3||(R=p+n),ce.nodeType===3&&(p+=ce.nodeValue.length),(te=ce.firstChild)!==null;)I=ce,ce=te;for(;;){if(ce===e)break t;if(I===a&&++Z===i&&(E=p),I===c&&++se===n&&(R=p),(te=ce.nextSibling)!==null)break;ce=I,I=ce.parentNode}ce=te}a=E===-1||R===-1?null:{start:E,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(Yd={focusedElem:e,selectionRange:a},Cc=!1,Qt=t;Qt!==null;)if(t=Qt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Qt=e;else for(;Qt!==null;){switch(t=Qt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)i=e[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,i=c.memoizedProps,c=c.memoizedState,n=a.stateNode;try{var be=Ms(a.type,i);e=n.getSnapshotBeforeUpdate(be,c),n.__reactInternalSnapshotBeforeUpdate=e}catch(_e){ut(a,a.return,_e)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Gd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Gd(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Qt=e;break}Qt=t.return}}function Em(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:In(e,a),n&4&&ji(5,a);break;case 1:if(In(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(p){ut(a,a.return,p)}else{var i=Ms(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){ut(a,a.return,p)}}n&64&&vm(a),n&512&&Ei(a,a.return);break;case 3:if(In(e,a),n&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{ch(e,t)}catch(p){ut(a,a.return,p)}}break;case 27:t===null&&n&4&&Nm(a);case 26:case 5:In(e,a),t===null&&n&4&&Sm(a),n&512&&Ei(a,a.return);break;case 12:In(e,a);break;case 31:In(e,a),n&4&&Cm(e,a);break;case 13:In(e,a),n&4&&Om(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Px.bind(null,a),mp(e,a))));break;case 22:if(n=a.memoizedState!==null||Pn,!n){t=t!==null&&t.memoizedState!==null||Bt,i=Pn;var c=Bt;Pn=n,(Bt=t)&&!c?Xn(e,a,(a.subtreeFlags&8772)!==0):In(e,a),Pn=i,Bt=c}break;case 30:break;default:In(e,a)}}function Tm(e){var t=e.alternate;t!==null&&(e.alternate=null,Tm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&$s(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Et=null,Sa=!1;function Wn(e,t,a){for(a=a.child;a!==null;)Mm(e,t,a),a=a.sibling}function Mm(e,t,a){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(nt,a)}catch{}switch(a.tag){case 26:Bt||Mn(a,t),Wn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Bt||Mn(a,t);var n=Et,i=Sa;Hl(a.type)&&(Et=a.stateNode,Sa=!1),Wn(e,t,a),ki(a.stateNode),Et=n,Sa=i;break;case 5:Bt||Mn(a,t);case 6:if(n=Et,i=Sa,Et=null,Wn(e,t,a),Et=n,Sa=i,Et!==null)if(Sa)try{(Et.nodeType===9?Et.body:Et.nodeName==="HTML"?Et.ownerDocument.body:Et).removeChild(a.stateNode)}catch(c){ut(a,t,c)}else try{Et.removeChild(a.stateNode)}catch(c){ut(a,t,c)}break;case 18:Et!==null&&(Sa?(e=Et,v0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Or(e)):v0(Et,a.stateNode));break;case 4:n=Et,i=Sa,Et=a.stateNode.containerInfo,Sa=!0,Wn(e,t,a),Et=n,Sa=i;break;case 0:case 11:case 14:case 15:Dl(2,a,t),Bt||Dl(4,a,t),Wn(e,t,a);break;case 1:Bt||(Mn(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&bm(a,t,n)),Wn(e,t,a);break;case 21:Wn(e,t,a);break;case 22:Bt=(n=Bt)||a.memoizedState!==null,Wn(e,t,a),Bt=n;break;default:Wn(e,t,a)}}function Cm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Or(e)}catch(a){ut(t,t.return,a)}}}function Om(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Or(e)}catch(a){ut(t,t.return,a)}}function Vx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new jm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new jm),t;default:throw Error(o(435,e.tag))}}function uc(e,t){var a=Vx(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var i=Wx.bind(null,e,n);n.then(i,i)}})}function wa(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var i=a[n],c=e,p=t,E=p;e:for(;E!==null;){switch(E.tag){case 27:if(Hl(E.type)){Et=E.stateNode,Sa=!1;break e}break;case 5:Et=E.stateNode,Sa=!1;break e;case 3:case 4:Et=E.stateNode.containerInfo,Sa=!0;break e}E=E.return}if(Et===null)throw Error(o(160));Mm(c,p,i),Et=null,Sa=!1,c=i.alternate,c!==null&&(c.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Dm(t,e),t=t.sibling}var fn=null;function Dm(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:wa(t,e),Na(e),n&4&&(Dl(3,e,e.return),ji(3,e),Dl(5,e,e.return));break;case 1:wa(t,e),Na(e),n&512&&(Bt||a===null||Mn(a,a.return)),n&64&&Pn&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var i=fn;if(wa(t,e),Na(e),n&512&&(Bt||a===null||Mn(a,a.return)),n&4){var c=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(n){case"title":c=i.getElementsByTagName("title")[0],(!c||c[Il]||c[Dt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=i.createElement(n),i.head.insertBefore(c,i.querySelector("head > title"))),ea(c,n,a),c[Dt]=e,Ht(c),n=c;break e;case"link":var p=D0("link","href",i).get(n+(a.href||""));if(p){for(var E=0;E<p.length;E++)if(c=p[E],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){p.splice(E,1);break t}}c=i.createElement(n),ea(c,n,a),i.head.appendChild(c);break;case"meta":if(p=D0("meta","content",i).get(n+(a.content||""))){for(E=0;E<p.length;E++)if(c=p[E],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){p.splice(E,1);break t}}c=i.createElement(n),ea(c,n,a),i.head.appendChild(c);break;default:throw Error(o(468,n))}c[Dt]=e,Ht(c),n=c}e.stateNode=n}else R0(i,e.type,e.stateNode);else e.stateNode=O0(i,n,e.memoizedProps);else c!==n?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,n===null?R0(i,e.type,e.stateNode):O0(i,n,e.memoizedProps)):n===null&&e.stateNode!==null&&xd(e,e.memoizedProps,a.memoizedProps)}break;case 27:wa(t,e),Na(e),n&512&&(Bt||a===null||Mn(a,a.return)),a!==null&&n&4&&xd(e,e.memoizedProps,a.memoizedProps);break;case 5:if(wa(t,e),Na(e),n&512&&(Bt||a===null||Mn(a,a.return)),e.flags&32){i=e.stateNode;try{ln(i,"")}catch(be){ut(e,e.return,be)}}n&4&&e.stateNode!=null&&(i=e.memoizedProps,xd(e,i,a!==null?a.memoizedProps:i)),n&1024&&(bd=!0);break;case 6:if(wa(t,e),Na(e),n&4){if(e.stateNode===null)throw Error(o(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(be){ut(e,e.return,be)}}break;case 3:if(jc=null,i=fn,fn=wc(t.containerInfo),wa(t,e),fn=i,Na(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{Or(t.containerInfo)}catch(be){ut(e,e.return,be)}bd&&(bd=!1,Rm(e));break;case 4:n=fn,fn=wc(e.stateNode.containerInfo),wa(t,e),Na(e),fn=n;break;case 12:wa(t,e),Na(e);break;case 31:wa(t,e),Na(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,uc(e,n)));break;case 13:wa(t,e),Na(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(oc=ot()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,uc(e,n)));break;case 22:i=e.memoizedState!==null;var R=a!==null&&a.memoizedState!==null,Z=Pn,se=Bt;if(Pn=Z||i,Bt=se||R,wa(t,e),Bt=se,Pn=Z,Na(e),n&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||R||Pn||Bt||Cs(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){R=a=t;try{if(c=R.stateNode,i)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{E=R.stateNode;var ce=R.memoizedProps.style,I=ce!=null&&ce.hasOwnProperty("display")?ce.display:null;E.style.display=I==null||typeof I=="boolean"?"":(""+I).trim()}}catch(be){ut(R,R.return,be)}}}else if(t.tag===6){if(a===null){R=t;try{R.stateNode.nodeValue=i?"":R.memoizedProps}catch(be){ut(R,R.return,be)}}}else if(t.tag===18){if(a===null){R=t;try{var te=R.stateNode;i?b0(te,!0):b0(R.stateNode,!1)}catch(be){ut(R,R.return,be)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,uc(e,a))));break;case 19:wa(t,e),Na(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,uc(e,n)));break;case 30:break;case 21:break;default:wa(t,e),Na(e)}}function Na(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(wm(n)){a=n;break}n=n.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var i=a.stateNode,c=pd(e);ic(e,c,i);break;case 5:var p=a.stateNode;a.flags&32&&(ln(p,""),a.flags&=-33);var E=pd(e);ic(e,E,p);break;case 3:case 4:var R=a.stateNode.containerInfo,Z=pd(e);vd(e,Z,R);break;default:throw Error(o(161))}}catch(se){ut(e,e.return,se)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Rm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Rm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function In(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Em(e,t.alternate,t),t=t.sibling}function Cs(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Dl(4,t,t.return),Cs(t);break;case 1:Mn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&bm(t,t.return,a),Cs(t);break;case 27:ki(t.stateNode);case 26:case 5:Mn(t,t.return),Cs(t);break;case 22:t.memoizedState===null&&Cs(t);break;case 30:Cs(t);break;default:Cs(t)}e=e.sibling}}function Xn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,i=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:Xn(i,c,a),ji(4,c);break;case 1:if(Xn(i,c,a),n=c,i=n.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(Z){ut(n,n.return,Z)}if(n=c,i=n.updateQueue,i!==null){var E=n.stateNode;try{var R=i.shared.hiddenCallbacks;if(R!==null)for(i.shared.hiddenCallbacks=null,i=0;i<R.length;i++)uh(R[i],E)}catch(Z){ut(n,n.return,Z)}}a&&p&64&&vm(c),Ei(c,c.return);break;case 27:Nm(c);case 26:case 5:Xn(i,c,a),a&&n===null&&p&4&&Sm(c),Ei(c,c.return);break;case 12:Xn(i,c,a);break;case 31:Xn(i,c,a),a&&p&4&&Cm(i,c);break;case 13:Xn(i,c,a),a&&p&4&&Om(i,c);break;case 22:c.memoizedState===null&&Xn(i,c,a),Ei(c,c.return);break;case 30:break;default:Xn(i,c,a)}t=t.sibling}}function Sd(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&di(a))}function wd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&di(e))}function hn(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Am(e,t,a,n),t=t.sibling}function Am(e,t,a,n){var i=t.flags;switch(t.tag){case 0:case 11:case 15:hn(e,t,a,n),i&2048&&ji(9,t);break;case 1:hn(e,t,a,n);break;case 3:hn(e,t,a,n),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&di(e)));break;case 12:if(i&2048){hn(e,t,a,n),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,E=c.onPostCommit;typeof E=="function"&&E(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){ut(t,t.return,R)}}else hn(e,t,a,n);break;case 31:hn(e,t,a,n);break;case 13:hn(e,t,a,n);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?hn(e,t,a,n):Ti(e,t):c._visibility&2?hn(e,t,a,n):(c._visibility|=2,pr(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Sd(p,t);break;case 24:hn(e,t,a,n),i&2048&&wd(t.alternate,t);break;default:hn(e,t,a,n)}}function pr(e,t,a,n,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,p=t,E=a,R=n,Z=p.flags;switch(p.tag){case 0:case 11:case 15:pr(c,p,E,R,i),ji(8,p);break;case 23:break;case 22:var se=p.stateNode;p.memoizedState!==null?se._visibility&2?pr(c,p,E,R,i):Ti(c,p):(se._visibility|=2,pr(c,p,E,R,i)),i&&Z&2048&&Sd(p.alternate,p);break;case 24:pr(c,p,E,R,i),i&&Z&2048&&wd(p.alternate,p);break;default:pr(c,p,E,R,i)}t=t.sibling}}function Ti(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,i=n.flags;switch(n.tag){case 22:Ti(a,n),i&2048&&Sd(n.alternate,n);break;case 24:Ti(a,n),i&2048&&wd(n.alternate,n);break;default:Ti(a,n)}t=t.sibling}}var Mi=8192;function vr(e,t,a){if(e.subtreeFlags&Mi)for(e=e.child;e!==null;)_m(e,t,a),e=e.sibling}function _m(e,t,a){switch(e.tag){case 26:vr(e,t,a),e.flags&Mi&&e.memoizedState!==null&&Tp(a,fn,e.memoizedState,e.memoizedProps);break;case 5:vr(e,t,a);break;case 3:case 4:var n=fn;fn=wc(e.stateNode.containerInfo),vr(e,t,a),fn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Mi,Mi=16777216,vr(e,t,a),Mi=n):vr(e,t,a));break;default:vr(e,t,a)}}function km(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ci(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];Qt=n,Um(n,e)}km(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zm(e),e=e.sibling}function zm(e){switch(e.tag){case 0:case 11:case 15:Ci(e),e.flags&2048&&Dl(9,e,e.return);break;case 3:Ci(e);break;case 12:Ci(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,cc(e)):Ci(e);break;default:Ci(e)}}function cc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];Qt=n,Um(n,e)}km(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Dl(8,t,t.return),cc(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,cc(t));break;default:cc(t)}e=e.sibling}}function Um(e,t){for(;Qt!==null;){var a=Qt;switch(a.tag){case 0:case 11:case 15:Dl(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:di(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,Qt=n;else e:for(a=e;Qt!==null;){n=Qt;var i=n.sibling,c=n.return;if(Tm(n),n===a){Qt=null;break e}if(i!==null){i.return=c,Qt=i;break e}Qt=c}}}var Bx={getCacheForType:function(e){var t=Jt(Lt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Jt(Lt).controller.signal}},Yx=typeof WeakMap=="function"?WeakMap:Map,lt=0,yt=null,Fe=null,We=0,it=0,_a=null,Rl=!1,br=!1,Nd=!1,Jn=0,Ot=0,Al=0,Os=0,jd=0,ka=0,Sr=0,Oi=null,ja=null,Ed=!1,oc=0,Hm=0,dc=1/0,fc=null,_l=null,Ft=0,kl=null,wr=null,Kn=0,Td=0,Md=null,Lm=null,Di=0,Cd=null;function za(){return(lt&2)!==0&&We!==0?We&-We:V.T!==null?kd():Ys()}function qm(){if(ka===0)if((We&536870912)===0||H){var e=qs;qs<<=1,(qs&3932160)===0&&(qs=262144),ka=e}else ka=536870912;return e=Ra.current,e!==null&&(e.flags|=32),ka}function Ea(e,t,a){(e===yt&&(it===2||it===9)||e.cancelPendingCommit!==null)&&(Nr(e,0),zl(e,We,ka,!1)),cl(e,a),((lt&2)===0||e!==yt)&&(e===yt&&((lt&2)===0&&(Os|=a),Ot===4&&zl(e,We,ka,!1)),Cn(e))}function Vm(e,t,a){if((lt&6)!==0)throw Error(o(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||ul(e,t),i=n?Gx(e,t):Dd(e,t,!0),c=n;do{if(i===0){br&&!n&&zl(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!$x(a)){i=Dd(e,t,!1),c=!1;continue}if(i===2){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var E=e;i=Oi;var R=E.current.memoizedState.isDehydrated;if(R&&(Nr(E,p).flags|=256),p=Dd(E,p,!1),p!==2){if(Nd&&!R){E.errorRecoveryDisabledLanes|=c,Os|=c,i=4;break e}c=ja,ja=i,c!==null&&(ja===null?ja=c:ja.push.apply(ja,c))}i=p}if(c=!1,i!==2)continue}}if(i===1){Nr(e,0),zl(e,t,0,!0);break}e:{switch(n=e,c=i,c){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:zl(n,t,ka,!Rl);break e;case 2:ja=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=oc+300-ot(),10<i)){if(zl(n,t,ka,!Rl),Pl(n,0,!0)!==0)break e;Kn=t,n.timeoutHandle=x0(Bm.bind(null,n,a,ja,fc,Ed,t,ka,Os,Sr,Rl,c,"Throttled",-0,0),i);break e}Bm(n,a,ja,fc,Ed,t,ka,Os,Sr,Rl,c,null,-0,0)}}break}while(!0);Cn(e)}function Bm(e,t,a,n,i,c,p,E,R,Z,se,ce,I,te){if(e.timeoutHandle=-1,ce=t.subtreeFlags,ce&8192||(ce&16785408)===16785408){ce={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qa},_m(t,c,ce);var be=(c&62914560)===c?oc-ot():(c&4194048)===c?Hm-ot():0;if(be=Mp(ce,be),be!==null){Kn=c,e.cancelPendingCommit=be(Wm.bind(null,e,t,c,a,n,i,p,E,R,se,ce,null,I,te)),zl(e,c,p,!Z);return}}Wm(e,t,c,a,n,i,p,E,R)}function $x(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var i=a[n],c=i.getSnapshot;i=i.value;try{if(!sa(c(),i))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function zl(e,t,a,n){t&=~jd,t&=~Os,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var i=t;0<i;){var c=31-Ut(i),p=1<<c;n[c]=-1,i&=~p}a!==0&&pt(e,a,t)}function hc(){return(lt&6)===0?(Ri(0),!1):!0}function Od(){if(Fe!==null){if(it===0)var e=Fe.return;else e=Fe,Za=Yn=null,Go(e),hr=null,hi=0,e=Fe;for(;e!==null;)pm(e.alternate,e),e=e.return;Fe=null}}function Nr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,cp(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Kn=0,Od(),yt=e,Fe=a=$a(e.current,null),We=t,it=0,_a=null,Rl=!1,br=ul(e,t),Nd=!1,Sr=ka=jd=Os=Al=Ot=0,ja=Oi=null,Ed=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-Ut(n),c=1<<i;t|=e[i],n&=~c}return Jn=t,Nl(),a}function Ym(e,t){Be=null,V.H=Si,t===fr||t===Yu?(t=lh(),it=3):t===_o?(t=lh(),it=4):it=t===id?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,_a=t,Fe===null&&(Ot=1,ac(e,va(t,e.current)))}function $m(){var e=Ra.current;return e===null?!0:(We&4194048)===We?Pa===null:(We&62914560)===We||(We&536870912)!==0?e===Pa:!1}function Fm(){var e=V.H;return V.H=Si,e===null?Si:e}function Gm(){var e=V.A;return V.A=Bx,e}function mc(){Ot=4,Rl||(We&4194048)!==We&&Ra.current!==null||(br=!0),(Al&134217727)===0&&(Os&134217727)===0||yt===null||zl(yt,We,ka,!1)}function Dd(e,t,a){var n=lt;lt|=2;var i=Fm(),c=Gm();(yt!==e||We!==t)&&(fc=null,Nr(e,t)),t=!1;var p=Ot;e:do try{if(it!==0&&Fe!==null){var E=Fe,R=_a;switch(it){case 8:Od(),p=6;break e;case 3:case 2:case 9:case 6:Ra.current===null&&(t=!0);var Z=it;if(it=0,_a=null,jr(e,E,R,Z),a&&br){p=0;break e}break;default:Z=it,it=0,_a=null,jr(e,E,R,Z)}}Fx(),p=Ot;break}catch(se){Ym(e,se)}while(!0);return t&&e.shellSuspendCounter++,Za=Yn=null,lt=n,V.H=i,V.A=c,Fe===null&&(yt=null,We=0,Nl()),p}function Fx(){for(;Fe!==null;)Zm(Fe)}function Gx(e,t){var a=lt;lt|=2;var n=Fm(),i=Gm();yt!==e||We!==t?(fc=null,dc=ot()+500,Nr(e,t)):br=ul(e,t);e:do try{if(it!==0&&Fe!==null){t=Fe;var c=_a;t:switch(it){case 1:it=0,_a=null,jr(e,t,c,1);break;case 2:case 9:if(ah(c)){it=0,_a=null,Qm(t);break}t=function(){it!==2&&it!==9||yt!==e||(it=7),Cn(e)},c.then(t,t);break e;case 3:it=7;break e;case 4:it=5;break e;case 7:ah(c)?(it=0,_a=null,Qm(t)):(it=0,_a=null,jr(e,t,c,7));break;case 5:var p=null;switch(Fe.tag){case 26:p=Fe.memoizedState;case 5:case 27:var E=Fe;if(p?A0(p):E.stateNode.complete){it=0,_a=null;var R=E.sibling;if(R!==null)Fe=R;else{var Z=E.return;Z!==null?(Fe=Z,gc(Z)):Fe=null}break t}}it=0,_a=null,jr(e,t,c,5);break;case 6:it=0,_a=null,jr(e,t,c,6);break;case 8:Od(),Ot=6;break e;default:throw Error(o(462))}}Zx();break}catch(se){Ym(e,se)}while(!0);return Za=Yn=null,V.H=n,V.A=i,lt=a,Fe!==null?0:(yt=null,We=0,Nl(),Ot)}function Zx(){for(;Fe!==null&&!Ka();)Zm(Fe)}function Zm(e){var t=ym(e.alternate,e,Jn);e.memoizedProps=e.pendingProps,t===null?gc(e):Fe=t}function Qm(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=om(a,t,t.pendingProps,t.type,void 0,We);break;case 11:t=om(a,t,t.pendingProps,t.type.render,t.ref,We);break;case 5:Go(t);default:pm(a,t),t=Fe=Lu(t,Jn),t=ym(a,t,Jn)}e.memoizedProps=e.pendingProps,t===null?gc(e):Fe=t}function jr(e,t,a,n){Za=Yn=null,Go(t),hr=null,hi=0;var i=t.return;try{if(kx(e,i,t,a,We)){Ot=1,ac(e,va(a,e.current)),Fe=null;return}}catch(c){if(i!==null)throw Fe=i,c;Ot=1,ac(e,va(a,e.current)),Fe=null;return}t.flags&32768?(H||n===1?e=!0:br||(We&536870912)!==0?e=!1:(Rl=e=!0,(n===2||n===9||n===3||n===6)&&(n=Ra.current,n!==null&&n.tag===13&&(n.flags|=16384))),Pm(t,e)):gc(t)}function gc(e){var t=e;do{if((t.flags&32768)!==0){Pm(t,Rl);return}e=t.return;var a=Hx(t.alternate,t,Jn);if(a!==null){Fe=a;return}if(t=t.sibling,t!==null){Fe=t;return}Fe=t=e}while(t!==null);Ot===0&&(Ot=5)}function Pm(e,t){do{var a=Lx(e.alternate,e);if(a!==null){a.flags&=32767,Fe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Fe=e;return}Fe=e=a}while(e!==null);Ot=6,Fe=null}function Wm(e,t,a,n,i,c,p,E,R){e.cancelPendingCommit=null;do yc();while(Ft!==0);if((lt&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(c=t.lanes|t.childLanes,c|=xs,ou(e,a,c,p,E,R),e===yt&&(Fe=yt=null,We=0),wr=t,kl=e,Kn=a,Td=c,Md=i,Lm=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Ix(oe,function(){return e0(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=V.T,V.T=null,i=re.p,re.p=2,p=lt,lt|=4;try{qx(e,t,a)}finally{lt=p,re.p=i,V.T=n}}Ft=1,Im(),Xm(),Jm()}}function Im(){if(Ft===1){Ft=0;var e=kl,t=wr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=V.T,V.T=null;var n=re.p;re.p=2;var i=lt;lt|=4;try{Dm(t,e);var c=Yd,p=Mo(e.containerInfo),E=c.focusedElem,R=c.selectionRange;if(p!==E&&E&&E.ownerDocument&&Je(E.ownerDocument.documentElement,E)){if(R!==null&&er(E)){var Z=R.start,se=R.end;if(se===void 0&&(se=Z),"selectionStart"in E)E.selectionStart=Z,E.selectionEnd=Math.min(se,E.value.length);else{var ce=E.ownerDocument||document,I=ce&&ce.defaultView||window;if(I.getSelection){var te=I.getSelection(),be=E.textContent.length,_e=Math.min(R.start,be),ht=R.end===void 0?_e:Math.min(R.end,be);!te.extend&&_e>ht&&(p=ht,ht=_e,_e=p);var B=Au(E,_e),U=Au(E,ht);if(B&&U&&(te.rangeCount!==1||te.anchorNode!==B.node||te.anchorOffset!==B.offset||te.focusNode!==U.node||te.focusOffset!==U.offset)){var G=ce.createRange();G.setStart(B.node,B.offset),te.removeAllRanges(),_e>ht?(te.addRange(G),te.extend(U.node,U.offset)):(G.setEnd(U.node,U.offset),te.addRange(G))}}}}for(ce=[],te=E;te=te.parentNode;)te.nodeType===1&&ce.push({element:te,left:te.scrollLeft,top:te.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<ce.length;E++){var ue=ce[E];ue.element.scrollLeft=ue.left,ue.element.scrollTop=ue.top}}Cc=!!Bd,Yd=Bd=null}finally{lt=i,re.p=n,V.T=a}}e.current=t,Ft=2}}function Xm(){if(Ft===2){Ft=0;var e=kl,t=wr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=V.T,V.T=null;var n=re.p;re.p=2;var i=lt;lt|=4;try{Em(e,t.alternate,t)}finally{lt=i,re.p=n,V.T=a}}Ft=3}}function Jm(){if(Ft===4||Ft===3){Ft=0,Rn();var e=kl,t=wr,a=Kn,n=Lm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ft=5:(Ft=0,wr=kl=null,Km(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(_l=null),la(a),t=t.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(nt,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=V.T,i=re.p,re.p=2,V.T=null;try{for(var c=e.onRecoverableError,p=0;p<n.length;p++){var E=n[p];c(E.value,{componentStack:E.stack})}}finally{V.T=t,re.p=i}}(Kn&3)!==0&&yc(),Cn(e),i=e.pendingLanes,(a&261930)!==0&&(i&42)!==0?e===Cd?Di++:(Di=0,Cd=e):Di=0,Ri(0)}}function Km(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,di(t)))}function yc(){return Im(),Xm(),Jm(),e0()}function e0(){if(Ft!==5)return!1;var e=kl,t=Td;Td=0;var a=la(Kn),n=V.T,i=re.p;try{re.p=32>a?32:a,V.T=null,a=Md,Md=null;var c=kl,p=Kn;if(Ft=0,wr=kl=null,Kn=0,(lt&6)!==0)throw Error(o(331));var E=lt;if(lt|=4,zm(c.current),Am(c,c.current,p,a),lt=E,Ri(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(nt,c)}catch{}return!0}finally{re.p=i,V.T=n,Km(e,t)}}function t0(e,t,a){t=va(a,t),t=rd(e.stateNode,t,2),e=Ml(e,t,2),e!==null&&(cl(e,2),Cn(e))}function ut(e,t,a){if(e.tag===3)t0(e,e,a);else for(;t!==null;){if(t.tag===3){t0(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(_l===null||!_l.has(n))){e=va(a,e),a=am(2),n=Ml(t,a,2),n!==null&&(nm(a,n,t,e),cl(n,2),Cn(n));break}}t=t.return}}function Rd(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new Yx;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(a)||(Nd=!0,i.add(a),e=Qx.bind(null,e,t,a),t.then(e,e))}function Qx(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,yt===e&&(We&a)===a&&(Ot===4||Ot===3&&(We&62914560)===We&&300>ot()-oc?(lt&2)===0&&Nr(e,0):jd|=a,Sr===We&&(Sr=0)),Cn(e)}function a0(e,t){t===0&&(t=Vr()),e=Ya(e,t),e!==null&&(cl(e,t),Cn(e))}function Px(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),a0(e,a)}function Wx(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(o(314))}n!==null&&n.delete(t),a0(e,a)}function Ix(e,t){return Ze(e,t)}var xc=null,Er=null,Ad=!1,pc=!1,_d=!1,Ul=0;function Cn(e){e!==Er&&e.next===null&&(Er===null?xc=Er=e:Er=Er.next=e),pc=!0,Ad||(Ad=!0,Jx())}function Ri(e,t){if(!_d&&pc){_d=!0;do for(var a=!1,n=xc;n!==null;){if(e!==0){var i=n.pendingLanes;if(i===0)var c=0;else{var p=n.suspendedLanes,E=n.pingedLanes;c=(1<<31-Ut(42|e)+1)-1,c&=i&~(p&~E),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,r0(n,c))}else c=We,c=Pl(n,n===yt?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(c&3)===0||ul(n,c)||(a=!0,r0(n,c));n=n.next}while(a);_d=!1}}function Xx(){n0()}function n0(){pc=Ad=!1;var e=0;Ul!==0&&up()&&(e=Ul);for(var t=ot(),a=null,n=xc;n!==null;){var i=n.next,c=l0(n,t);c===0?(n.next=null,a===null?xc=i:a.next=i,i===null&&(Er=a)):(a=n,(e!==0||(c&3)!==0)&&(pc=!0)),n=i}Ft!==0&&Ft!==5||Ri(e),Ul!==0&&(Ul=0)}function l0(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-Ut(c),E=1<<p,R=i[p];R===-1?((E&a)===0||(E&n)!==0)&&(i[p]=cu(E,t)):R<=t&&(e.expiredLanes|=E),c&=~E}if(t=yt,a=We,a=Pl(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(it===2||it===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&xt(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ul(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&xt(n),la(a)){case 2:case 8:a=pn;break;case 32:a=oe;break;case 268435456:a=Xe;break;default:a=oe}return n=s0.bind(null,e),a=Ze(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&xt(n),e.callbackPriority=2,e.callbackNode=null,2}function s0(e,t){if(Ft!==0&&Ft!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(yc()&&e.callbackNode!==a)return null;var n=We;return n=Pl(e,e===yt?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(Vm(e,n,t),l0(e,ot()),e.callbackNode!=null&&e.callbackNode===a?s0.bind(null,e):null)}function r0(e,t){if(yc())return null;Vm(e,t,!0)}function Jx(){op(function(){(lt&6)!==0?Ze(en,Xx):n0()})}function kd(){if(Ul===0){var e=or;e===0&&(e=il,il<<=1,(il&261888)===0&&(il=256)),Ul=e}return Ul}function i0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:as(""+e)}function u0(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Kx(e,t,a,n,i){if(t==="submit"&&a&&a.stateNode===i){var c=i0((i[Yt]||null).action),p=n.submitter;p&&(t=(t=p[Yt]||null)?i0(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var E=new rs("action","action",null,n,i);e.push({event:E,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Ul!==0){var R=p?u0(i,p):new FormData(i);ed(a,{pending:!0,data:R,method:i.method,action:c},null,R)}}else typeof c=="function"&&(E.preventDefault(),R=p?u0(i,p):new FormData(i),ed(a,{pending:!0,data:R,method:i.method,action:c},c,R))},currentTarget:i}]})}}for(var zd=0;zd<ii.length;zd++){var Ud=ii[zd],ep=Ud.toLowerCase(),tp=Ud[0].toUpperCase()+Ud.slice(1);pa(ep,"on"+tp)}pa(zu,"onAnimationEnd"),pa(Uu,"onAnimationIteration"),pa(nr,"onAnimationStart"),pa("dblclick","onDoubleClick"),pa("focusin","onFocus"),pa("focusout","onBlur"),pa(Co,"onTransitionRun"),pa(Oo,"onTransitionStart"),pa(Hu,"onTransitionCancel"),pa(si,"onTransitionEnd"),ol("onMouseEnter",["mouseout","mouseover"]),ol("onMouseLeave",["mouseout","mouseover"]),ol("onPointerEnter",["pointerout","pointerover"]),ol("onPointerLeave",["pointerout","pointerover"]),bn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),bn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),bn("onBeforeInput",["compositionend","keypress","textInput","paste"]),bn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),bn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),bn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ai="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ap=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ai));function c0(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],i=n.event;n=n.listeners;e:{var c=void 0;if(t)for(var p=n.length-1;0<=p;p--){var E=n[p],R=E.instance,Z=E.currentTarget;if(E=E.listener,R!==c&&i.isPropagationStopped())break e;c=E,i.currentTarget=Z;try{c(i)}catch(se){wl(se)}i.currentTarget=null,c=R}else for(p=0;p<n.length;p++){if(E=n[p],R=E.instance,Z=E.currentTarget,E=E.listener,R!==c&&i.isPropagationStopped())break e;c=E,i.currentTarget=Z;try{c(i)}catch(se){wl(se)}i.currentTarget=null,c=R}}}}function Ge(e,t){var a=t[Wl];a===void 0&&(a=t[Wl]=new Set);var n=e+"__bubble";a.has(n)||(o0(t,e,2,!1),a.add(n))}function Hd(e,t,a){var n=0;t&&(n|=4),o0(a,e,n,t)}var vc="_reactListening"+Math.random().toString(36).slice(2);function Ld(e){if(!e[vc]){e[vc]=!0,mu.forEach(function(a){a!=="selectionchange"&&(ap.has(a)||Hd(a,!1,e),Hd(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vc]||(t[vc]=!0,Hd("selectionchange",!1,t))}}function o0(e,t,a,n){switch(q0(t)){case 2:var i=Dp;break;case 8:i=Rp;break;default:i=Kd}a=i.bind(null,t,a,e),i=void 0,!Ir||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function qd(e,t,a,n,i){var c=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var p=n.tag;if(p===3||p===4){var E=n.stateNode.containerInfo;if(E===i)break;if(p===4)for(p=n.return;p!==null;){var R=p.tag;if((R===3||R===4)&&p.stateNode.containerInfo===i)return;p=p.return}for(;E!==null;){if(p=_n(E),p===null)return;if(R=p.tag,R===5||R===6||R===26||R===27){n=c=p;continue e}E=E.parentNode}}n=n.return}Wr(function(){var Z=c,se=Ps(a),ce=[];e:{var I=ri.get(e);if(I!==void 0){var te=rs,be=e;switch(e){case"keypress":if(ss(a)===0)break e;case"keydown":case"keyup":te=ho;break;case"focusin":be="focus",te=Ks;break;case"focusout":be="blur",te=Ks;break;case"beforeblur":case"afterblur":te=Ks;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":te=bu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":te=no;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":te=yo;break;case zu:case Uu:case nr:te=ml;break;case si:te=xo;break;case"scroll":case"scrollend":te=Xr;break;case"wheel":te=vo;break;case"copy":case"cut":case"paste":te=gl;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":te=Su;break;case"toggle":case"beforetoggle":te=So}var _e=(t&4)!==0,ht=!_e&&(e==="scroll"||e==="scrollend"),B=_e?I!==null?I+"Capture":null:I;_e=[];for(var U=Z,G;U!==null;){var ue=U;if(G=ue.stateNode,ue=ue.tag,ue!==5&&ue!==26&&ue!==27||G===null||B===null||(ue=ns(U,B),ue!=null&&_e.push(_i(U,ue,G))),ht)break;U=U.return}0<_e.length&&(I=new te(I,be,null,a,se),ce.push({event:I,listeners:_e}))}}if((t&7)===0){e:{if(I=e==="mouseover"||e==="pointerover",te=e==="mouseout"||e==="pointerout",I&&a!==Qr&&(be=a.relatedTarget||a.fromElement)&&(_n(be)||be[An]))break e;if((te||I)&&(I=se.window===se?se:(I=se.ownerDocument)?I.defaultView||I.parentWindow:window,te?(be=a.relatedTarget||a.toElement,te=Z,be=be?_n(be):null,be!==null&&(ht=f(be),_e=be.tag,be!==ht||_e!==5&&_e!==27&&_e!==6)&&(be=null)):(te=null,be=Z),te!==be)){if(_e=bu,ue="onMouseLeave",B="onMouseEnter",U="mouse",(e==="pointerout"||e==="pointerover")&&(_e=Su,ue="onPointerLeave",B="onPointerEnter",U="pointer"),ht=te==null?I:ya(te),G=be==null?I:ya(be),I=new _e(ue,U+"leave",te,a,se),I.target=ht,I.relatedTarget=G,ue=null,_n(se)===Z&&(_e=new _e(B,U+"enter",be,a,se),_e.target=G,_e.relatedTarget=ht,ue=_e),ht=ue,te&&be)t:{for(_e=np,B=te,U=be,G=0,ue=B;ue;ue=_e(ue))G++;ue=0;for(var Ce=U;Ce;Ce=_e(Ce))ue++;for(;0<G-ue;)B=_e(B),G--;for(;0<ue-G;)U=_e(U),ue--;for(;G--;){if(B===U||U!==null&&B===U.alternate){_e=B;break t}B=_e(B),U=_e(U)}_e=null}else _e=null;te!==null&&d0(ce,I,te,_e,!1),be!==null&&ht!==null&&d0(ce,ht,be,_e,!0)}}e:{if(I=Z?ya(Z):window,te=I.nodeName&&I.nodeName.toLowerCase(),te==="select"||te==="input"&&I.type==="file")var tt=Du;else if(Ou(I))if(jn)tt=St;else{tt=vl;var we=Qe}else te=I.nodeName,!te||te.toLowerCase()!=="input"||I.type!=="checkbox"&&I.type!=="radio"?Z&&Qs(Z.elementType)&&(tt=Du):tt=To;if(tt&&(tt=tt(e,Z))){Kr(ce,tt,a,se);break e}we&&we(e,I,Z),e==="focusout"&&Z&&I.type==="number"&&Z.memoizedProps.value!=null&&Jl(I,"number",I.value)}switch(we=Z?ya(Z):window,e){case"focusin":(Ou(we)||we.contentEditable==="true")&&(bl=we,tr=Z,It=null);break;case"focusout":It=tr=bl=null;break;case"mousedown":ar=!0;break;case"contextmenu":case"mouseup":case"dragend":ar=!1,ys(ce,a,se);break;case"selectionchange":if(_u)break;case"keydown":case"keyup":ys(ce,a,se)}var Ye;if(Jr)e:{switch(e){case"compositionstart":var Ie="onCompositionStart";break e;case"compositionend":Ie="onCompositionEnd";break e;case"compositionupdate":Ie="onCompositionUpdate";break e}Ie=void 0}else xl?Mu(e,a)&&(Ie="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ie="onCompositionStart");Ie&&(ju&&a.locale!=="ko"&&(xl||Ie!=="onCompositionStart"?Ie==="onCompositionEnd"&&xl&&(Ye=$t()):(wn=se,Ws="value"in wn?wn.value:wn.textContent,xl=!0)),we=bc(Z,Ie),0<we.length&&(Ie=new yl(Ie,e,null,a,se),ce.push({event:Ie,listeners:we}),Ye?Ie.data=Ye:(Ye=Cu(a),Ye!==null&&(Ie.data=Ye)))),(Ye=wo?No(e,a):jo(e,a))&&(Ie=bc(Z,"onBeforeInput"),0<Ie.length&&(we=new yl("onBeforeInput","beforeinput",null,a,se),ce.push({event:we,listeners:Ie}),we.data=Ye)),Kx(ce,e,Z,a,se)}c0(ce,t)})}function _i(e,t,a){return{instance:e,listener:t,currentTarget:a}}function bc(e,t){for(var a=t+"Capture",n=[];e!==null;){var i=e,c=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||c===null||(i=ns(e,a),i!=null&&n.unshift(_i(e,i,c)),i=ns(e,t),i!=null&&n.push(_i(e,i,c))),e.tag===3)return n;e=e.return}return[]}function np(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function d0(e,t,a,n,i){for(var c=t._reactName,p=[];a!==null&&a!==n;){var E=a,R=E.alternate,Z=E.stateNode;if(E=E.tag,R!==null&&R===n)break;E!==5&&E!==26&&E!==27||Z===null||(R=Z,i?(Z=ns(a,c),Z!=null&&p.unshift(_i(a,Z,R))):i||(Z=ns(a,c),Z!=null&&p.push(_i(a,Z,R)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}var lp=/\r\n?/g,sp=/\u0000|\uFFFD/g;function f0(e){return(typeof e=="string"?e:""+e).replace(lp,`
49
+ `).replace(sp,"")}function h0(e,t){return t=f0(t),f0(e)===t}function ft(e,t,a,n,i,c){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||ln(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&ln(e,""+n);break;case"className":Fs(e,"class",n);break;case"tabIndex":Fs(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Fs(e,a,n);break;case"style":xu(e,n,c);break;case"data":if(t!=="object"){Fs(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=as(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&ft(e,t,"name",i.name,i,null),ft(e,t,"formEncType",i.formEncType,i,null),ft(e,t,"formMethod",i.formMethod,i,null),ft(e,t,"formTarget",i.formTarget,i,null)):(ft(e,t,"encType",i.encType,i,null),ft(e,t,"method",i.method,i,null),ft(e,t,"target",i.target,i,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=as(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=qa);break;case"onScroll":n!=null&&Ge("scroll",e);break;case"onScrollEnd":n!=null&&Ge("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(a=n.__html,a!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=as(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":Ge("beforetoggle",e),Ge("toggle",e),Pt(e,"popover",n);break;case"xlinkActuate":rt(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":rt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":rt(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":rt(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":rt(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":rt(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":rt(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":rt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":rt(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Pt(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=to.get(a)||a,Pt(e,a,n))}}function Vd(e,t,a,n,i,c){switch(a){case"style":xu(e,n,c);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(a=n.__html,a!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof n=="string"?ln(e,n):(typeof n=="number"||typeof n=="bigint")&&ln(e,""+n);break;case"onScroll":n!=null&&Ge("scroll",e);break;case"onScrollEnd":n!=null&&Ge("scrollend",e);break;case"onClick":n!=null&&(e.onclick=qa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$r.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),c=e[Yt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,i),typeof n=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,i);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):Pt(e,a,n)}}}function ea(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ge("error",e),Ge("load",e);var n=!1,i=!1,c;for(c in a)if(a.hasOwnProperty(c)){var p=a[c];if(p!=null)switch(c){case"src":n=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:ft(e,t,c,p,a,null)}}i&&ft(e,t,"srcSet",a.srcSet,a,null),n&&ft(e,t,"src",a.src,a,null);return;case"input":Ge("invalid",e);var E=c=p=i=null,R=null,Z=null;for(n in a)if(a.hasOwnProperty(n)){var se=a[n];if(se!=null)switch(n){case"name":i=se;break;case"type":p=se;break;case"checked":R=se;break;case"defaultChecked":Z=se;break;case"value":c=se;break;case"defaultValue":E=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(o(137,t));break;default:ft(e,t,n,se,a,null)}}fl(e,c,E,R,Z,p,i,!1);return;case"select":Ge("invalid",e),n=p=c=null;for(i in a)if(a.hasOwnProperty(i)&&(E=a[i],E!=null))switch(i){case"value":c=E;break;case"defaultValue":p=E;break;case"multiple":n=E;default:ft(e,t,i,E,a,null)}t=c,a=p,e.multiple=!!n,t!=null?zn(e,!!n,t,!1):a!=null&&zn(e,!!n,a,!0);return;case"textarea":Ge("invalid",e),c=i=n=null;for(p in a)if(a.hasOwnProperty(p)&&(E=a[p],E!=null))switch(p){case"value":n=E;break;case"defaultValue":i=E;break;case"children":c=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(o(91));break;default:ft(e,t,p,E,a,null)}Zr(e,n,i,c);return;case"option":for(R in a)if(a.hasOwnProperty(R)&&(n=a[R],n!=null))switch(R){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:ft(e,t,R,n,a,null)}return;case"dialog":Ge("beforetoggle",e),Ge("toggle",e),Ge("cancel",e),Ge("close",e);break;case"iframe":case"object":Ge("load",e);break;case"video":case"audio":for(n=0;n<Ai.length;n++)Ge(Ai[n],e);break;case"image":Ge("error",e),Ge("load",e);break;case"details":Ge("toggle",e);break;case"embed":case"source":case"link":Ge("error",e),Ge("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Z in a)if(a.hasOwnProperty(Z)&&(n=a[Z],n!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:ft(e,t,Z,n,a,null)}return;default:if(Qs(t)){for(se in a)a.hasOwnProperty(se)&&(n=a[se],n!==void 0&&Vd(e,t,se,n,a,void 0));return}}for(E in a)a.hasOwnProperty(E)&&(n=a[E],n!=null&&ft(e,t,E,n,a,null))}function rp(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,c=null,p=null,E=null,R=null,Z=null,se=null;for(te in a){var ce=a[te];if(a.hasOwnProperty(te)&&ce!=null)switch(te){case"checked":break;case"value":break;case"defaultValue":R=ce;default:n.hasOwnProperty(te)||ft(e,t,te,null,n,ce)}}for(var I in n){var te=n[I];if(ce=a[I],n.hasOwnProperty(I)&&(te!=null||ce!=null))switch(I){case"type":c=te;break;case"name":i=te;break;case"checked":Z=te;break;case"defaultChecked":se=te;break;case"value":p=te;break;case"defaultValue":E=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(o(137,t));break;default:te!==ce&&ft(e,t,I,te,n,ce)}}Zs(e,p,E,R,Z,se,c,i);return;case"select":te=p=E=I=null;for(c in a)if(R=a[c],a.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":te=R;default:n.hasOwnProperty(c)||ft(e,t,c,null,n,R)}for(i in n)if(c=n[i],R=a[i],n.hasOwnProperty(i)&&(c!=null||R!=null))switch(i){case"value":I=c;break;case"defaultValue":E=c;break;case"multiple":p=c;default:c!==R&&ft(e,t,i,c,n,R)}t=E,a=p,n=te,I!=null?zn(e,!!a,I,!1):!!n!=!!a&&(t!=null?zn(e,!!a,t,!0):zn(e,!!a,a?[]:"",!1));return;case"textarea":te=I=null;for(E in a)if(i=a[E],a.hasOwnProperty(E)&&i!=null&&!n.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:ft(e,t,E,null,n,i)}for(p in n)if(i=n[p],c=a[p],n.hasOwnProperty(p)&&(i!=null||c!=null))switch(p){case"value":I=i;break;case"defaultValue":te=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==c&&ft(e,t,p,i,n,c)}Kl(e,I,te);return;case"option":for(var be in a)if(I=a[be],a.hasOwnProperty(be)&&I!=null&&!n.hasOwnProperty(be))switch(be){case"selected":e.selected=!1;break;default:ft(e,t,be,null,n,I)}for(R in n)if(I=n[R],te=a[R],n.hasOwnProperty(R)&&I!==te&&(I!=null||te!=null))switch(R){case"selected":e.selected=I&&typeof I!="function"&&typeof I!="symbol";break;default:ft(e,t,R,I,n,te)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var _e in a)I=a[_e],a.hasOwnProperty(_e)&&I!=null&&!n.hasOwnProperty(_e)&&ft(e,t,_e,null,n,I);for(Z in n)if(I=n[Z],te=a[Z],n.hasOwnProperty(Z)&&I!==te&&(I!=null||te!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(o(137,t));break;default:ft(e,t,Z,I,n,te)}return;default:if(Qs(t)){for(var ht in a)I=a[ht],a.hasOwnProperty(ht)&&I!==void 0&&!n.hasOwnProperty(ht)&&Vd(e,t,ht,void 0,n,I);for(se in n)I=n[se],te=a[se],!n.hasOwnProperty(se)||I===te||I===void 0&&te===void 0||Vd(e,t,se,I,n,te);return}}for(var B in a)I=a[B],a.hasOwnProperty(B)&&I!=null&&!n.hasOwnProperty(B)&&ft(e,t,B,null,n,I);for(ce in n)I=n[ce],te=a[ce],!n.hasOwnProperty(ce)||I===te||I==null&&te==null||ft(e,t,ce,I,n,te)}function m0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ip(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var i=a[n],c=i.transferSize,p=i.initiatorType,E=i.duration;if(c&&E&&m0(p)){for(p=0,E=i.responseEnd,n+=1;n<a.length;n++){var R=a[n],Z=R.startTime;if(Z>E)break;var se=R.transferSize,ce=R.initiatorType;se&&m0(ce)&&(R=R.responseEnd,p+=se*(R<E?1:(E-Z)/(R-Z)))}if(--n,t+=8*(c+p)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Bd=null,Yd=null;function Sc(e){return e.nodeType===9?e:e.ownerDocument}function g0(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function y0(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function $d(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Fd=null;function up(){var e=window.event;return e&&e.type==="popstate"?e===Fd?!1:(Fd=e,!0):(Fd=null,!1)}var x0=typeof setTimeout=="function"?setTimeout:void 0,cp=typeof clearTimeout=="function"?clearTimeout:void 0,p0=typeof Promise=="function"?Promise:void 0,op=typeof queueMicrotask=="function"?queueMicrotask:typeof p0<"u"?function(e){return p0.resolve(null).then(e).catch(dp)}:x0;function dp(e){setTimeout(function(){throw e})}function Hl(e){return e==="head"}function v0(e,t){var a=t,n=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(i),Or(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")ki(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ki(a);for(var c=a.firstChild;c;){var p=c.nextSibling,E=c.nodeName;c[Il]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=p}}else a==="body"&&ki(e.ownerDocument.body);a=i}while(a);Or(t)}function b0(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function Gd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Gd(a),$s(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function fp(e,t,a,n){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Il])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Wa(e.nextSibling),e===null)break}return null}function hp(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Wa(e.nextSibling),e===null))return null;return e}function S0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Wa(e.nextSibling),e===null))return null;return e}function Zd(e){return e.data==="$?"||e.data==="$~"}function Qd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function mp(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Wa(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Pd=null;function w0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Wa(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function N0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function j0(e,t,a){switch(t=Sc(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function ki(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);$s(e)}var Ia=new Map,E0=new Set;function wc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var el=re.d;re.d={f:gp,r:yp,D:xp,C:pp,L:vp,m:bp,X:wp,S:Sp,M:Np};function gp(){var e=el.f(),t=hc();return e||t}function yp(e){var t=De(e);t!==null&&t.tag===5&&t.type==="form"?Yh(t):el.r(e)}var Tr=typeof document>"u"?null:document;function T0(e,t,a){var n=Tr;if(n&&typeof t=="string"&&t){var i=Wt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),E0.has(i)||(E0.add(i),e={rel:e,crossOrigin:a,href:t},n.querySelector(i)===null&&(t=n.createElement("link"),ea(t,"link",e),Ht(t),n.head.appendChild(t)))}}function xp(e){el.D(e),T0("dns-prefetch",e,null)}function pp(e,t){el.C(e,t),T0("preconnect",e,t)}function vp(e,t,a){el.L(e,t,a);var n=Tr;if(n&&e&&t){var i='link[rel="preload"][as="'+Wt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+Wt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+Wt(a.imageSizes)+'"]')):i+='[href="'+Wt(e)+'"]';var c=i;switch(t){case"style":c=Mr(e);break;case"script":c=Cr(e)}Ia.has(c)||(e=S({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Ia.set(c,e),n.querySelector(i)!==null||t==="style"&&n.querySelector(zi(c))||t==="script"&&n.querySelector(Ui(c))||(t=n.createElement("link"),ea(t,"link",e),Ht(t),n.head.appendChild(t)))}}function bp(e,t){el.m(e,t);var a=Tr;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Wt(n)+'"][href="'+Wt(e)+'"]',c=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Cr(e)}if(!Ia.has(c)&&(e=S({rel:"modulepreload",href:e},t),Ia.set(c,e),a.querySelector(i)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ui(c)))return}n=a.createElement("link"),ea(n,"link",e),Ht(n),a.head.appendChild(n)}}}function Sp(e,t,a){el.S(e,t,a);var n=Tr;if(n&&e){var i=an(n).hoistableStyles,c=Mr(e);t=t||"default";var p=i.get(c);if(!p){var E={loading:0,preload:null};if(p=n.querySelector(zi(c)))E.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Ia.get(c))&&Wd(e,a);var R=p=n.createElement("link");Ht(R),ea(R,"link",e),R._p=new Promise(function(Z,se){R.onload=Z,R.onerror=se}),R.addEventListener("load",function(){E.loading|=1}),R.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Nc(p,t,n)}p={type:"stylesheet",instance:p,count:1,state:E},i.set(c,p)}}}function wp(e,t){el.X(e,t);var a=Tr;if(a&&e){var n=an(a).hoistableScripts,i=Cr(e),c=n.get(i);c||(c=a.querySelector(Ui(i)),c||(e=S({src:e,async:!0},t),(t=Ia.get(i))&&Id(e,t),c=a.createElement("script"),Ht(c),ea(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},n.set(i,c))}}function Np(e,t){el.M(e,t);var a=Tr;if(a&&e){var n=an(a).hoistableScripts,i=Cr(e),c=n.get(i);c||(c=a.querySelector(Ui(i)),c||(e=S({src:e,async:!0,type:"module"},t),(t=Ia.get(i))&&Id(e,t),c=a.createElement("script"),Ht(c),ea(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},n.set(i,c))}}function M0(e,t,a,n){var i=(i=Me.current)?wc(i):null;if(!i)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Mr(a.href),a=an(i).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Mr(a.href);var c=an(i).hoistableStyles,p=c.get(e);if(p||(i=i.ownerDocument||i,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=i.querySelector(zi(e)))&&!c._p&&(p.instance=c,p.state.loading=5),Ia.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Ia.set(e,a),c||jp(i,e,a,p.state))),t&&n===null)throw Error(o(528,""));return p}if(t&&n!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Cr(a),a=an(i).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Mr(e){return'href="'+Wt(e)+'"'}function zi(e){return'link[rel="stylesheet"]['+e+"]"}function C0(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function jp(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),ea(t,"link",a),Ht(t),e.head.appendChild(t))}function Cr(e){return'[src="'+Wt(e)+'"]'}function Ui(e){return"script[async]"+e}function O0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Wt(a.href)+'"]');if(n)return t.instance=n,Ht(n),n;var i=S({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Ht(n),ea(n,"style",i),Nc(n,a.precedence,e),t.instance=n;case"stylesheet":i=Mr(a.href);var c=e.querySelector(zi(i));if(c)return t.state.loading|=4,t.instance=c,Ht(c),c;n=C0(a),(i=Ia.get(i))&&Wd(n,i),c=(e.ownerDocument||e).createElement("link"),Ht(c);var p=c;return p._p=new Promise(function(E,R){p.onload=E,p.onerror=R}),ea(c,"link",n),t.state.loading|=4,Nc(c,a.precedence,e),t.instance=c;case"script":return c=Cr(a.src),(i=e.querySelector(Ui(c)))?(t.instance=i,Ht(i),i):(n=a,(i=Ia.get(c))&&(n=S({},a),Id(n,i)),e=e.ownerDocument||e,i=e.createElement("script"),Ht(i),ea(i,"link",n),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Nc(n,a.precedence,e));return t.instance}function Nc(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,c=i,p=0;p<n.length;p++){var E=n[p];if(E.dataset.precedence===t)c=E;else if(c!==i)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Wd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Id(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var jc=null;function D0(e,t,a){if(jc===null){var n=new Map,i=jc=new Map;i.set(a,n)}else i=jc,n=i.get(a),n||(n=new Map,i.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var c=a[i];if(!(c[Il]||c[Dt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var E=n.get(p);E?E.push(c):n.set(p,[c])}}return n}function R0(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Ep(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function A0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Tp(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=Mr(n.href),c=t.querySelector(zi(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ec.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,Ht(c);return}c=t.ownerDocument||t,n=C0(n),(i=Ia.get(i))&&Wd(n,i),c=c.createElement("link"),Ht(c);var p=c;p._p=new Promise(function(E,R){p.onload=E,p.onerror=R}),ea(c,"link",n),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Ec.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Xd=0;function Mp(e,t){return e.stylesheets&&e.count===0&&Mc(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&Mc(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Xd===0&&(Xd=62500*ip());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Mc(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Xd?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(i)}}:null}function Ec(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Mc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Tc=null;function Mc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Tc=new Map,t.forEach(Cp,e),Tc=null,Ec.call(e))}function Cp(e,t){if(!(t.state.loading&4)){var a=Tc.get(e);if(a)var n=a.get(null);else{a=new Map,Tc.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<i.length;c++){var p=i[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(a.set(p.dataset.precedence,p),n=p)}n&&a.set(null,n)}i=t.instance,p=i.getAttribute("data-precedence"),c=a.get(p)||n,c===n&&a.set(null,i),a.set(p,i),this.count++,n=Ec.bind(this),i.addEventListener("load",n),i.addEventListener("error",n),c?c.parentNode.insertBefore(i,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Hi={$$typeof:F,Provider:null,Consumer:null,_currentValue:ye,_currentValue2:ye,_threadCount:0};function Op(e,t,a,n,i,c,p,E,R){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Vs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vs(0),this.hiddenUpdates=Vs(null),this.identifierPrefix=n,this.onUncaughtError=i,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function _0(e,t,a,n,i,c,p,E,R,Z,se,ce){return e=new Op(e,t,a,p,R,Z,se,ce,E),t=1,c===!0&&(t|=24),c=Xt(3,null,null,t),e.current=c,c.stateNode=e,t=Do(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:n,isDehydrated:a,cache:t},ko(c),e}function k0(e){return e?(e=Da,e):Da}function z0(e,t,a,n,i,c){i=k0(i),n.context===null?n.context=i:n.pendingContext=i,n=Tl(t),n.payload={element:a},c=c===void 0?null:c,c!==null&&(n.callback=c),a=Ml(e,n,t),a!==null&&(Ea(a,e,t),gi(a,e,t))}function U0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Jd(e,t){U0(e,t),(e=e.alternate)&&U0(e,t)}function H0(e){if(e.tag===13||e.tag===31){var t=Ya(e,67108864);t!==null&&Ea(t,e,67108864),Jd(e,67108864)}}function L0(e){if(e.tag===13||e.tag===31){var t=za();t=Bs(t);var a=Ya(e,t);a!==null&&Ea(a,e,t),Jd(e,t)}}var Cc=!0;function Dp(e,t,a,n){var i=V.T;V.T=null;var c=re.p;try{re.p=2,Kd(e,t,a,n)}finally{re.p=c,V.T=i}}function Rp(e,t,a,n){var i=V.T;V.T=null;var c=re.p;try{re.p=8,Kd(e,t,a,n)}finally{re.p=c,V.T=i}}function Kd(e,t,a,n){if(Cc){var i=ef(n);if(i===null)qd(e,t,n,Oc,a),V0(e,n);else if(_p(i,e,t,a,n))n.stopPropagation();else if(V0(e,n),t&4&&-1<Ap.indexOf(e)){for(;i!==null;){var c=De(i);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=vn(c.pendingLanes);if(p!==0){var E=c;for(E.pendingLanes|=2,E.entangledLanes|=2;p;){var R=1<<31-Ut(p);E.entanglements[1]|=R,p&=~R}Cn(c),(lt&6)===0&&(dc=ot()+500,Ri(0))}}break;case 31:case 13:E=Ya(c,2),E!==null&&Ea(E,c,2),hc(),Jd(c,2)}if(c=ef(n),c===null&&qd(e,t,n,Oc,a),c===i)break;i=c}i!==null&&n.stopPropagation()}else qd(e,t,n,null,a)}}function ef(e){return e=Ps(e),tf(e)}var Oc=null;function tf(e){if(Oc=null,e=_n(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=y(t),e!==null)return e;e=null}else if(a===31){if(e=w(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Oc=e,null}function q0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(aa()){case en:return 2;case pn:return 8;case oe:case Oe:return 32;case Xe:return 268435456;default:return 32}default:return 32}}var af=!1,Ll=null,ql=null,Vl=null,Li=new Map,qi=new Map,Bl=[],Ap="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function V0(e,t){switch(e){case"focusin":case"focusout":Ll=null;break;case"dragenter":case"dragleave":ql=null;break;case"mouseover":case"mouseout":Vl=null;break;case"pointerover":case"pointerout":Li.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qi.delete(t.pointerId)}}function Vi(e,t,a,n,i,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:c,targetContainers:[i]},t!==null&&(t=De(t),t!==null&&H0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function _p(e,t,a,n,i){switch(t){case"focusin":return Ll=Vi(Ll,e,t,a,n,i),!0;case"dragenter":return ql=Vi(ql,e,t,a,n,i),!0;case"mouseover":return Vl=Vi(Vl,e,t,a,n,i),!0;case"pointerover":var c=i.pointerId;return Li.set(c,Vi(Li.get(c)||null,e,t,a,n,i)),!0;case"gotpointercapture":return c=i.pointerId,qi.set(c,Vi(qi.get(c)||null,e,t,a,n,i)),!0}return!1}function B0(e){var t=_n(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=y(a),t!==null){e.blockedOn=t,Yr(e.priority,function(){L0(a)});return}}else if(t===31){if(t=w(a),t!==null){e.blockedOn=t,Yr(e.priority,function(){L0(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=ef(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);Qr=n,a.target.dispatchEvent(n),Qr=null}else return t=De(a),t!==null&&H0(t),e.blockedOn=a,!1;t.shift()}return!0}function Y0(e,t,a){Dc(e)&&a.delete(t)}function kp(){af=!1,Ll!==null&&Dc(Ll)&&(Ll=null),ql!==null&&Dc(ql)&&(ql=null),Vl!==null&&Dc(Vl)&&(Vl=null),Li.forEach(Y0),qi.forEach(Y0)}function Rc(e,t){e.blockedOn===t&&(e.blockedOn=null,af||(af=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,kp)))}var Ac=null;function $0(e){Ac!==e&&(Ac=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Ac===e&&(Ac=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],i=e[t+2];if(typeof n!="function"){if(tf(n||a)===null)continue;break}var c=De(a);c!==null&&(e.splice(t,3),t-=3,ed(c,{pending:!0,data:i,method:a.method,action:n},n,i))}}))}function Or(e){function t(R){return Rc(R,e)}Ll!==null&&Rc(Ll,e),ql!==null&&Rc(ql,e),Vl!==null&&Rc(Vl,e),Li.forEach(t),qi.forEach(t);for(var a=0;a<Bl.length;a++){var n=Bl[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Bl.length&&(a=Bl[0],a.blockedOn===null);)B0(a),a.blockedOn===null&&Bl.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var i=a[n],c=a[n+1],p=i[Yt]||null;if(typeof c=="function")p||$0(a);else if(p){var E=null;if(c&&c.hasAttribute("formAction")){if(i=c,p=c[Yt]||null)E=p.formAction;else if(tf(i)!==null)continue}else E=p.action;typeof E=="function"?a[n+1]=E:(a.splice(n,3),n-=3),$0(a)}}}function F0(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return i=p})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function nf(e){this._internalRoot=e}_c.prototype.render=nf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,n=za();z0(a,n,e,t,null,null)},_c.prototype.unmount=nf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;z0(e.current,2,null,e,null,null),hc(),t[An]=null}};function _c(e){this._internalRoot=e}_c.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ys();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Bl.length&&t!==0&&t<Bl[a].priority;a++);Bl.splice(a,0,e),a===0&&B0(e)}};var G0=u.version;if(G0!=="19.2.4")throw Error(o(527,G0,"19.2.4"));re.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=x(t),e=e!==null?N(e):null,e=e===null?null:e.stateNode,e};var zp={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kc.isDisabled&&kc.supportsFiber)try{nt=kc.inject(zp),vt=kc}catch{}}return Yi.createRoot=function(e,t){if(!g(e))throw Error(o(299));var a=!1,n="",i=Jh,c=Kh,p=em;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=_0(e,1,!1,null,null,a,n,null,i,c,p,F0),e[An]=t.current,Ld(e),new nf(t)},Yi.hydrateRoot=function(e,t,a){if(!g(e))throw Error(o(299));var n=!1,i="",c=Jh,p=Kh,E=em,R=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(E=a.onRecoverableError),a.formState!==void 0&&(R=a.formState)),t=_0(e,1,!0,t,a??null,n,i,R,c,p,E,F0),t.context=k0(null),a=t.current,n=za(),n=Bs(n),i=Tl(n),i.callback=null,Ml(a,i,n),a=n,t.current.lanes=a,cl(t,a),Cn(t),e[An]=t.current,Ld(e),new _c(t)},Yi.version="19.2.4",Yi}var ng;function Qp(){if(ng)return uf.exports;ng=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),uf.exports=Zp(),uf.exports}var Pp=Qp();const Wp=Rf(Pp);/**
50
+ * react-router v7.13.0
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */var lg="popstate";function Ip(l={}){function u(g,f){let{pathname:y="/",search:w="",hash:b=""}=Us(g.location.hash.substring(1));return!y.startsWith("/")&&!y.startsWith(".")&&(y="/"+y),wf("",{pathname:y,search:w,hash:b},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function d(g,f){let y=g.document.querySelector("base"),w="";if(y&&y.getAttribute("href")){let b=g.location.href,x=b.indexOf("#");w=x===-1?b:b.slice(0,x)}return w+"#"+(typeof f=="string"?f:lu(f))}function o(g,f){Xa(g.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return Jp(u,d,o,l)}function Tt(l,u){if(l===!1||l===null||typeof l>"u")throw new Error(u)}function Xa(l,u){if(!l){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function Xp(){return Math.random().toString(36).substring(2,10)}function sg(l,u){return{usr:l.state,key:l.key,idx:u}}function wf(l,u,d=null,o){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof u=="string"?Us(u):u,state:d,key:u&&u.key||o||Xp()}}function lu({pathname:l="/",search:u="",hash:d=""}){return u&&u!=="?"&&(l+=u.charAt(0)==="?"?u:"?"+u),d&&d!=="#"&&(l+=d.charAt(0)==="#"?d:"#"+d),l}function Us(l){let u={};if(l){let d=l.indexOf("#");d>=0&&(u.hash=l.substring(d),l=l.substring(0,d));let o=l.indexOf("?");o>=0&&(u.search=l.substring(o),l=l.substring(0,o)),l&&(u.pathname=l)}return u}function Jp(l,u,d,o={}){let{window:g=document.defaultView,v5Compat:f=!1}=o,y=g.history,w="POP",b=null,x=N();x==null&&(x=0,y.replaceState({...y.state,idx:x},""));function N(){return(y.state||{idx:null}).idx}function S(){w="POP";let $=N(),X=$==null?null:$-x;x=$,b&&b({action:w,location:M.location,delta:X})}function T($,X){w="PUSH";let Q=wf(M.location,$,X);d&&d(Q,$),x=N()+1;let F=sg(Q,x),J=M.createHref(Q);try{y.pushState(F,"",J)}catch(ne){if(ne instanceof DOMException&&ne.name==="DataCloneError")throw ne;g.location.assign(J)}f&&b&&b({action:w,location:M.location,delta:1})}function D($,X){w="REPLACE";let Q=wf(M.location,$,X);d&&d(Q,$),x=N();let F=sg(Q,x),J=M.createHref(Q);y.replaceState(F,"",J),f&&b&&b({action:w,location:M.location,delta:0})}function q($){return Kp($)}let M={get action(){return w},get location(){return l(g,y)},listen($){if(b)throw new Error("A history only accepts one active listener");return g.addEventListener(lg,S),b=$,()=>{g.removeEventListener(lg,S),b=null}},createHref($){return u(g,$)},createURL:q,encodeLocation($){let X=q($);return{pathname:X.pathname,search:X.search,hash:X.hash}},push:T,replace:D,go($){return y.go($)}};return M}function Kp(l,u=!1){let d="http://localhost";typeof window<"u"&&(d=window.location.origin!=="null"?window.location.origin:window.location.href),Tt(d,"No window.location.(origin|href) available to create URL");let o=typeof l=="string"?l:lu(l);return o=o.replace(/ $/,"%20"),!u&&o.startsWith("//")&&(o=d+o),new URL(o,d)}function ty(l,u,d="/"){return ev(l,u,d,!1)}function ev(l,u,d,o){let g=typeof u=="string"?Us(u):u,f=sl(g.pathname||"/",d);if(f==null)return null;let y=ay(l);tv(y);let w=null;for(let b=0;w==null&&b<y.length;++b){let x=fv(f);w=ov(y[b],x,o)}return w}function ay(l,u=[],d=[],o="",g=!1){let f=(y,w,b=g,x)=>{let N={relativePath:x===void 0?y.path||"":x,caseSensitive:y.caseSensitive===!0,childrenIndex:w,route:y};if(N.relativePath.startsWith("/")){if(!N.relativePath.startsWith(o)&&b)return;Tt(N.relativePath.startsWith(o),`Absolute route path "${N.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),N.relativePath=N.relativePath.slice(o.length)}let S=ll([o,N.relativePath]),T=d.concat(N);y.children&&y.children.length>0&&(Tt(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),ay(y.children,u,T,S,b)),!(y.path==null&&!y.index)&&u.push({path:S,score:uv(S,y.index),routesMeta:T})};return l.forEach((y,w)=>{var b;if(y.path===""||!((b=y.path)!=null&&b.includes("?")))f(y,w);else for(let x of ny(y.path))f(y,w,!0,x)}),u}function ny(l){let u=l.split("/");if(u.length===0)return[];let[d,...o]=u,g=d.endsWith("?"),f=d.replace(/\?$/,"");if(o.length===0)return g?[f,""]:[f];let y=ny(o.join("/")),w=[];return w.push(...y.map(b=>b===""?f:[f,b].join("/"))),g&&w.push(...y),w.map(b=>l.startsWith("/")&&b===""?"/":b)}function tv(l){l.sort((u,d)=>u.score!==d.score?d.score-u.score:cv(u.routesMeta.map(o=>o.childrenIndex),d.routesMeta.map(o=>o.childrenIndex)))}var av=/^:[\w-]+$/,nv=3,lv=2,sv=1,rv=10,iv=-2,rg=l=>l==="*";function uv(l,u){let d=l.split("/"),o=d.length;return d.some(rg)&&(o+=iv),u&&(o+=lv),d.filter(g=>!rg(g)).reduce((g,f)=>g+(av.test(f)?nv:f===""?sv:rv),o)}function cv(l,u){return l.length===u.length&&l.slice(0,-1).every((o,g)=>o===u[g])?l[l.length-1]-u[u.length-1]:0}function ov(l,u,d=!1){let{routesMeta:o}=l,g={},f="/",y=[];for(let w=0;w<o.length;++w){let b=o[w],x=w===o.length-1,N=f==="/"?u:u.slice(f.length)||"/",S=$c({path:b.relativePath,caseSensitive:b.caseSensitive,end:x},N),T=b.route;if(!S&&x&&d&&!o[o.length-1].route.index&&(S=$c({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},N)),!S)return null;Object.assign(g,S.params),y.push({params:g,pathname:ll([f,S.pathname]),pathnameBase:yv(ll([f,S.pathnameBase])),route:T}),S.pathnameBase!=="/"&&(f=ll([f,S.pathnameBase]))}return y}function $c(l,u){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[d,o]=dv(l.path,l.caseSensitive,l.end),g=u.match(d);if(!g)return null;let f=g[0],y=f.replace(/(.)\/+$/,"$1"),w=g.slice(1);return{params:o.reduce((x,{paramName:N,isOptional:S},T)=>{if(N==="*"){let q=w[T]||"";y=f.slice(0,f.length-q.length).replace(/(.)\/+$/,"$1")}const D=w[T];return S&&!D?x[N]=void 0:x[N]=(D||"").replace(/%2F/g,"/"),x},{}),pathname:f,pathnameBase:y,pattern:l}}function dv(l,u=!1,d=!0){Xa(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let o=[],g="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,w,b)=>(o.push({paramName:w,isOptional:b!=null}),b?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(o.push({paramName:"*"}),g+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):d?g+="\\/*$":l!==""&&l!=="/"&&(g+="(?:(?=\\/|$))"),[new RegExp(g,u?void 0:"i"),o]}function fv(l){try{return l.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return Xa(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),l}}function sl(l,u){if(u==="/")return l;if(!l.toLowerCase().startsWith(u.toLowerCase()))return null;let d=u.endsWith("/")?u.length-1:u.length,o=l.charAt(d);return o&&o!=="/"?null:l.slice(d)||"/"}var hv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function mv(l,u="/"){let{pathname:d,search:o="",hash:g=""}=typeof l=="string"?Us(l):l,f;return d?(d=d.replace(/\/\/+/g,"/"),d.startsWith("/")?f=ig(d.substring(1),"/"):f=ig(d,u)):f=u,{pathname:f,search:xv(o),hash:pv(g)}}function ig(l,u){let d=u.replace(/\/+$/,"").split("/");return l.split("/").forEach(g=>{g===".."?d.length>1&&d.pop():g!=="."&&d.push(g)}),d.length>1?d.join("/"):"/"}function ff(l,u,d,o){return`Cannot include a '${l}' character in a manually specified \`to.${u}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${d}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function gv(l){return l.filter((u,d)=>d===0||u.route.path&&u.route.path.length>0)}function _f(l){let u=gv(l);return u.map((d,o)=>o===u.length-1?d.pathname:d.pathnameBase)}function kf(l,u,d,o=!1){let g;typeof l=="string"?g=Us(l):(g={...l},Tt(!g.pathname||!g.pathname.includes("?"),ff("?","pathname","search",g)),Tt(!g.pathname||!g.pathname.includes("#"),ff("#","pathname","hash",g)),Tt(!g.search||!g.search.includes("#"),ff("#","search","hash",g)));let f=l===""||g.pathname==="",y=f?"/":g.pathname,w;if(y==null)w=d;else{let S=u.length-1;if(!o&&y.startsWith("..")){let T=y.split("/");for(;T[0]==="..";)T.shift(),S-=1;g.pathname=T.join("/")}w=S>=0?u[S]:"/"}let b=mv(g,w),x=y&&y!=="/"&&y.endsWith("/"),N=(f||y===".")&&d.endsWith("/");return!b.pathname.endsWith("/")&&(x||N)&&(b.pathname+="/"),b}var ll=l=>l.join("/").replace(/\/\/+/g,"/"),yv=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),xv=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,pv=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,vv=class{constructor(l,u,d,o=!1){this.status=l,this.statusText=u||"",this.internal=o,d instanceof Error?(this.data=d.toString(),this.error=d):this.data=d}};function bv(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function Sv(l){return l.map(u=>u.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var ly=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function sy(l,u){let d=l;if(typeof d!="string"||!hv.test(d))return{absoluteURL:void 0,isExternal:!1,to:d};let o=d,g=!1;if(ly)try{let f=new URL(window.location.href),y=d.startsWith("//")?new URL(f.protocol+d):new URL(d),w=sl(y.pathname,u);y.origin===f.origin&&w!=null?d=w+y.search+y.hash:g=!0}catch{Xa(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:g,to:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ry=["POST","PUT","PATCH","DELETE"];new Set(ry);var wv=["GET",...ry];new Set(wv);var Ur=L.createContext(null);Ur.displayName="DataRouter";var Pc=L.createContext(null);Pc.displayName="DataRouterState";var Nv=L.createContext(!1),iy=L.createContext({isTransitioning:!1});iy.displayName="ViewTransition";var jv=L.createContext(new Map);jv.displayName="Fetchers";var Ev=L.createContext(null);Ev.displayName="Await";var La=L.createContext(null);La.displayName="Navigation";var ru=L.createContext(null);ru.displayName="Location";var Dn=L.createContext({outlet:null,matches:[],isDataRoute:!1});Dn.displayName="Route";var zf=L.createContext(null);zf.displayName="RouteError";var uy="REACT_ROUTER_ERROR",Tv="REDIRECT",Mv="ROUTE_ERROR_RESPONSE";function Cv(l){if(l.startsWith(`${uy}:${Tv}:{`))try{let u=JSON.parse(l.slice(28));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.location=="string"&&typeof u.reloadDocument=="boolean"&&typeof u.replace=="boolean")return u}catch{}}function Ov(l){if(l.startsWith(`${uy}:${Mv}:{`))try{let u=JSON.parse(l.slice(40));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string")return new vv(u.status,u.statusText,u.data)}catch{}}function Dv(l,{relative:u}={}){Tt(Hr(),"useHref() may be used only in the context of a <Router> component.");let{basename:d,navigator:o}=L.useContext(La),{hash:g,pathname:f,search:y}=iu(l,{relative:u}),w=f;return d!=="/"&&(w=f==="/"?d:ll([d,f])),o.createHref({pathname:w,search:y,hash:g})}function Hr(){return L.useContext(ru)!=null}function Ql(){return Tt(Hr(),"useLocation() may be used only in the context of a <Router> component."),L.useContext(ru).location}var cy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function oy(l){L.useContext(La).static||L.useLayoutEffect(l)}function Uf(){let{isDataRoute:l}=L.useContext(Dn);return l?$v():Rv()}function Rv(){Tt(Hr(),"useNavigate() may be used only in the context of a <Router> component.");let l=L.useContext(Ur),{basename:u,navigator:d}=L.useContext(La),{matches:o}=L.useContext(Dn),{pathname:g}=Ql(),f=JSON.stringify(_f(o)),y=L.useRef(!1);return oy(()=>{y.current=!0}),L.useCallback((b,x={})=>{if(Xa(y.current,cy),!y.current)return;if(typeof b=="number"){d.go(b);return}let N=kf(b,JSON.parse(f),g,x.relative==="path");l==null&&u!=="/"&&(N.pathname=N.pathname==="/"?u:ll([u,N.pathname])),(x.replace?d.replace:d.push)(N,x.state,x)},[u,d,f,g,l])}L.createContext(null);function iu(l,{relative:u}={}){let{matches:d}=L.useContext(Dn),{pathname:o}=Ql(),g=JSON.stringify(_f(d));return L.useMemo(()=>kf(l,JSON.parse(g),o,u==="path"),[l,g,o,u])}function Av(l,u){return dy(l,u)}function dy(l,u,d,o,g){var Q;Tt(Hr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=L.useContext(La),{matches:y}=L.useContext(Dn),w=y[y.length-1],b=w?w.params:{},x=w?w.pathname:"/",N=w?w.pathnameBase:"/",S=w&&w.route;{let F=S&&S.path||"";hy(x,!S||F.endsWith("*")||F.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${F}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
+
60
+ Please change the parent <Route path="${F}"> to <Route path="${F==="/"?"*":`${F}/*`}">.`)}let T=Ql(),D;if(u){let F=typeof u=="string"?Us(u):u;Tt(N==="/"||((Q=F.pathname)==null?void 0:Q.startsWith(N)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${N}" but pathname "${F.pathname}" was given in the \`location\` prop.`),D=F}else D=T;let q=D.pathname||"/",M=q;if(N!=="/"){let F=N.replace(/^\//,"").split("/");M="/"+q.replace(/^\//,"").split("/").slice(F.length).join("/")}let $=ty(l,{pathname:M});Xa(S||$!=null,`No routes matched location "${D.pathname}${D.search}${D.hash}" `),Xa($==null||$[$.length-1].route.element!==void 0||$[$.length-1].route.Component!==void 0||$[$.length-1].route.lazy!==void 0,`Matched leaf route at location "${D.pathname}${D.search}${D.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let X=Hv($&&$.map(F=>Object.assign({},F,{params:Object.assign({},b,F.params),pathname:ll([N,f.encodeLocation?f.encodeLocation(F.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:F.pathname]),pathnameBase:F.pathnameBase==="/"?N:ll([N,f.encodeLocation?f.encodeLocation(F.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:F.pathnameBase])})),y,d,o,g);return u&&X?L.createElement(ru.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...D},navigationType:"POP"}},X):X}function _v(){let l=Yv(),u=bv(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),d=l instanceof Error?l.stack:null,o="rgba(200,200,200, 0.5)",g={padding:"0.5rem",backgroundColor:o},f={padding:"2px 4px",backgroundColor:o},y=null;return console.error("Error handled by React Router default ErrorBoundary:",l),y=L.createElement(L.Fragment,null,L.createElement("p",null,"💿 Hey developer 👋"),L.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",L.createElement("code",{style:f},"ErrorBoundary")," or"," ",L.createElement("code",{style:f},"errorElement")," prop on your route.")),L.createElement(L.Fragment,null,L.createElement("h2",null,"Unexpected Application Error!"),L.createElement("h3",{style:{fontStyle:"italic"}},u),d?L.createElement("pre",{style:g},d):null,y)}var kv=L.createElement(_v,null),fy=class extends L.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,u){return u.location!==l.location||u.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:u.error,location:u.location,revalidation:l.revalidation||u.revalidation}}componentDidCatch(l,u){this.props.onError?this.props.onError(l,u):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const d=Ov(l.digest);d&&(l=d)}let u=l!==void 0?L.createElement(Dn.Provider,{value:this.props.routeContext},L.createElement(zf.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?L.createElement(zv,{error:l},u):u}};fy.contextType=Nv;var hf=new WeakMap;function zv({children:l,error:u}){let{basename:d}=L.useContext(La);if(typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){let o=Cv(u.digest);if(o){let g=hf.get(u);if(g)throw g;let f=sy(o.location,d);if(ly&&!hf.get(u))if(f.isExternal||o.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:o.replace}));throw hf.set(u,y),y}return L.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return l}function Uv({routeContext:l,match:u,children:d}){let o=L.useContext(Ur);return o&&o.static&&o.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=u.route.id),L.createElement(Dn.Provider,{value:l},d)}function Hv(l,u=[],d=null,o=null,g=null){if(l==null){if(!d)return null;if(d.errors)l=d.matches;else if(u.length===0&&!d.initialized&&d.matches.length>0)l=d.matches;else return null}let f=l,y=d==null?void 0:d.errors;if(y!=null){let N=f.findIndex(S=>S.route.id&&(y==null?void 0:y[S.route.id])!==void 0);Tt(N>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(y).join(",")}`),f=f.slice(0,Math.min(f.length,N+1))}let w=!1,b=-1;if(d)for(let N=0;N<f.length;N++){let S=f[N];if((S.route.HydrateFallback||S.route.hydrateFallbackElement)&&(b=N),S.route.id){let{loaderData:T,errors:D}=d,q=S.route.loader&&!T.hasOwnProperty(S.route.id)&&(!D||D[S.route.id]===void 0);if(S.route.lazy||q){w=!0,b>=0?f=f.slice(0,b+1):f=[f[0]];break}}}let x=d&&o?(N,S)=>{var T,D;o(N,{location:d.location,params:((D=(T=d.matches)==null?void 0:T[0])==null?void 0:D.params)??{},unstable_pattern:Sv(d.matches),errorInfo:S})}:void 0;return f.reduceRight((N,S,T)=>{let D,q=!1,M=null,$=null;d&&(D=y&&S.route.id?y[S.route.id]:void 0,M=S.route.errorElement||kv,w&&(b<0&&T===0?(hy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),q=!0,$=null):b===T&&(q=!0,$=S.route.hydrateFallbackElement||null)));let X=u.concat(f.slice(0,T+1)),Q=()=>{let F;return D?F=M:q?F=$:S.route.Component?F=L.createElement(S.route.Component,null):S.route.element?F=S.route.element:F=N,L.createElement(Uv,{match:S,routeContext:{outlet:N,matches:X,isDataRoute:d!=null},children:F})};return d&&(S.route.ErrorBoundary||S.route.errorElement||T===0)?L.createElement(fy,{location:d.location,revalidation:d.revalidation,component:M,error:D,children:Q(),routeContext:{outlet:null,matches:X,isDataRoute:!0},onError:x}):Q()},null)}function Hf(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Lv(l){let u=L.useContext(Ur);return Tt(u,Hf(l)),u}function qv(l){let u=L.useContext(Pc);return Tt(u,Hf(l)),u}function Vv(l){let u=L.useContext(Dn);return Tt(u,Hf(l)),u}function Lf(l){let u=Vv(l),d=u.matches[u.matches.length-1];return Tt(d.route.id,`${l} can only be used on routes that contain a unique "id"`),d.route.id}function Bv(){return Lf("useRouteId")}function Yv(){var o;let l=L.useContext(zf),u=qv("useRouteError"),d=Lf("useRouteError");return l!==void 0?l:(o=u.errors)==null?void 0:o[d]}function $v(){let{router:l}=Lv("useNavigate"),u=Lf("useNavigate"),d=L.useRef(!1);return oy(()=>{d.current=!0}),L.useCallback(async(g,f={})=>{Xa(d.current,cy),d.current&&(typeof g=="number"?await l.navigate(g):await l.navigate(g,{fromRouteId:u,...f}))},[l,u])}var ug={};function hy(l,u,d){!u&&!ug[l]&&(ug[l]=!0,Xa(!1,d))}L.memo(Fv);function Fv({routes:l,future:u,state:d,onError:o}){return dy(l,void 0,d,o,u)}function Gv({to:l,replace:u,state:d,relative:o}){Tt(Hr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:g}=L.useContext(La);Xa(!g,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=L.useContext(Dn),{pathname:y}=Ql(),w=Uf(),b=kf(l,_f(f),y,o==="path"),x=JSON.stringify(b);return L.useEffect(()=>{w(JSON.parse(x),{replace:u,state:d,relative:o})},[w,x,o,u,d]),null}function al(l){Tt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Zv({basename:l="/",children:u=null,location:d,navigationType:o="POP",navigator:g,static:f=!1,unstable_useTransitions:y}){Tt(!Hr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let w=l.replace(/^\/*/,"/"),b=L.useMemo(()=>({basename:w,navigator:g,static:f,unstable_useTransitions:y,future:{}}),[w,g,f,y]);typeof d=="string"&&(d=Us(d));let{pathname:x="/",search:N="",hash:S="",state:T=null,key:D="default"}=d,q=L.useMemo(()=>{let M=sl(x,w);return M==null?null:{location:{pathname:M,search:N,hash:S,state:T,key:D},navigationType:o}},[w,x,N,S,T,D,o]);return Xa(q!=null,`<Router basename="${w}"> is not able to match the URL "${x}${N}${S}" because it does not start with the basename, so the <Router> won't render anything.`),q==null?null:L.createElement(La.Provider,{value:b},L.createElement(ru.Provider,{children:u,value:q}))}function Qv({children:l,location:u}){return Av(Nf(l),u)}function Nf(l,u=[]){let d=[];return L.Children.forEach(l,(o,g)=>{if(!L.isValidElement(o))return;let f=[...u,g];if(o.type===L.Fragment){d.push.apply(d,Nf(o.props.children,f));return}Tt(o.type===al,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Tt(!o.props.index||!o.props.children,"An index route cannot have child routes.");let y={id:o.props.id||f.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(y.children=Nf(o.props.children,f)),d.push(y)}),d}var Bc="get",Yc="application/x-www-form-urlencoded";function Wc(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function Pv(l){return Wc(l)&&l.tagName.toLowerCase()==="button"}function Wv(l){return Wc(l)&&l.tagName.toLowerCase()==="form"}function Iv(l){return Wc(l)&&l.tagName.toLowerCase()==="input"}function Xv(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function Jv(l,u){return l.button===0&&(!u||u==="_self")&&!Xv(l)}var zc=null;function Kv(){if(zc===null)try{new FormData(document.createElement("form"),0),zc=!1}catch{zc=!0}return zc}var eb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function mf(l){return l!=null&&!eb.has(l)?(Xa(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Yc}"`),null):l}function tb(l,u){let d,o,g,f,y;if(Wv(l)){let w=l.getAttribute("action");o=w?sl(w,u):null,d=l.getAttribute("method")||Bc,g=mf(l.getAttribute("enctype"))||Yc,f=new FormData(l)}else if(Pv(l)||Iv(l)&&(l.type==="submit"||l.type==="image")){let w=l.form;if(w==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let b=l.getAttribute("formaction")||w.getAttribute("action");if(o=b?sl(b,u):null,d=l.getAttribute("formmethod")||w.getAttribute("method")||Bc,g=mf(l.getAttribute("formenctype"))||mf(w.getAttribute("enctype"))||Yc,f=new FormData(w,l),!Kv()){let{name:x,type:N,value:S}=l;if(N==="image"){let T=x?`${x}.`:"";f.append(`${T}x`,"0"),f.append(`${T}y`,"0")}else x&&f.append(x,S)}}else{if(Wc(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');d=Bc,o=null,g=Yc,y=l}return f&&g==="text/plain"&&(y=f,f=void 0),{action:o,method:d.toLowerCase(),encType:g,formData:f,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function qf(l,u){if(l===!1||l===null||typeof l>"u")throw new Error(u)}function ab(l,u,d,o){let g=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return d?g.pathname.endsWith("/")?g.pathname=`${g.pathname}_.${o}`:g.pathname=`${g.pathname}.${o}`:g.pathname==="/"?g.pathname=`_root.${o}`:u&&sl(g.pathname,u)==="/"?g.pathname=`${u.replace(/\/$/,"")}/_root.${o}`:g.pathname=`${g.pathname.replace(/\/$/,"")}.${o}`,g}async function nb(l,u){if(l.id in u)return u[l.id];try{let d=await import(l.module);return u[l.id]=d,d}catch(d){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(d),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function lb(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function sb(l,u,d){let o=await Promise.all(l.map(async g=>{let f=u.routes[g.route.id];if(f){let y=await nb(f,d);return y.links?y.links():[]}return[]}));return cb(o.flat(1).filter(lb).filter(g=>g.rel==="stylesheet"||g.rel==="preload").map(g=>g.rel==="stylesheet"?{...g,rel:"prefetch",as:"style"}:{...g,rel:"prefetch"}))}function cg(l,u,d,o,g,f){let y=(b,x)=>d[x]?b.route.id!==d[x].route.id:!0,w=(b,x)=>{var N;return d[x].pathname!==b.pathname||((N=d[x].route.path)==null?void 0:N.endsWith("*"))&&d[x].params["*"]!==b.params["*"]};return f==="assets"?u.filter((b,x)=>y(b,x)||w(b,x)):f==="data"?u.filter((b,x)=>{var S;let N=o.routes[b.route.id];if(!N||!N.hasLoader)return!1;if(y(b,x)||w(b,x))return!0;if(b.route.shouldRevalidate){let T=b.route.shouldRevalidate({currentUrl:new URL(g.pathname+g.search+g.hash,window.origin),currentParams:((S=d[0])==null?void 0:S.params)||{},nextUrl:new URL(l,window.origin),nextParams:b.params,defaultShouldRevalidate:!0});if(typeof T=="boolean")return T}return!0}):[]}function rb(l,u,{includeHydrateFallback:d}={}){return ib(l.map(o=>{let g=u.routes[o.route.id];if(!g)return[];let f=[g.module];return g.clientActionModule&&(f=f.concat(g.clientActionModule)),g.clientLoaderModule&&(f=f.concat(g.clientLoaderModule)),d&&g.hydrateFallbackModule&&(f=f.concat(g.hydrateFallbackModule)),g.imports&&(f=f.concat(g.imports)),f}).flat(1))}function ib(l){return[...new Set(l)]}function ub(l){let u={},d=Object.keys(l).sort();for(let o of d)u[o]=l[o];return u}function cb(l,u){let d=new Set;return new Set(u),l.reduce((o,g)=>{let f=JSON.stringify(ub(g));return d.has(f)||(d.add(f),o.push({key:f,link:g})),o},[])}function my(){let l=L.useContext(Ur);return qf(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function ob(){let l=L.useContext(Pc);return qf(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var Vf=L.createContext(void 0);Vf.displayName="FrameworkContext";function gy(){let l=L.useContext(Vf);return qf(l,"You must render this element inside a <HydratedRouter> element"),l}function db(l,u){let d=L.useContext(Vf),[o,g]=L.useState(!1),[f,y]=L.useState(!1),{onFocus:w,onBlur:b,onMouseEnter:x,onMouseLeave:N,onTouchStart:S}=u,T=L.useRef(null);L.useEffect(()=>{if(l==="render"&&y(!0),l==="viewport"){let M=X=>{X.forEach(Q=>{y(Q.isIntersecting)})},$=new IntersectionObserver(M,{threshold:.5});return T.current&&$.observe(T.current),()=>{$.disconnect()}}},[l]),L.useEffect(()=>{if(o){let M=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(M)}}},[o]);let D=()=>{g(!0)},q=()=>{g(!1),y(!1)};return d?l!=="intent"?[f,T,{}]:[f,T,{onFocus:$i(w,D),onBlur:$i(b,q),onMouseEnter:$i(x,D),onMouseLeave:$i(N,q),onTouchStart:$i(S,D)}]:[!1,T,{}]}function $i(l,u){return d=>{l&&l(d),d.defaultPrevented||u(d)}}function fb({page:l,...u}){let{router:d}=my(),o=L.useMemo(()=>ty(d.routes,l,d.basename),[d.routes,l,d.basename]);return o?L.createElement(mb,{page:l,matches:o,...u}):null}function hb(l){let{manifest:u,routeModules:d}=gy(),[o,g]=L.useState([]);return L.useEffect(()=>{let f=!1;return sb(l,u,d).then(y=>{f||g(y)}),()=>{f=!0}},[l,u,d]),o}function mb({page:l,matches:u,...d}){let o=Ql(),{future:g,manifest:f,routeModules:y}=gy(),{basename:w}=my(),{loaderData:b,matches:x}=ob(),N=L.useMemo(()=>cg(l,u,x,f,o,"data"),[l,u,x,f,o]),S=L.useMemo(()=>cg(l,u,x,f,o,"assets"),[l,u,x,f,o]),T=L.useMemo(()=>{if(l===o.pathname+o.search+o.hash)return[];let M=new Set,$=!1;if(u.forEach(Q=>{var J;let F=f.routes[Q.route.id];!F||!F.hasLoader||(!N.some(ne=>ne.route.id===Q.route.id)&&Q.route.id in b&&((J=y[Q.route.id])!=null&&J.shouldRevalidate)||F.hasClientLoader?$=!0:M.add(Q.route.id))}),M.size===0)return[];let X=ab(l,w,g.unstable_trailingSlashAwareDataRequests,"data");return $&&M.size>0&&X.searchParams.set("_routes",u.filter(Q=>M.has(Q.route.id)).map(Q=>Q.route.id).join(",")),[X.pathname+X.search]},[w,g.unstable_trailingSlashAwareDataRequests,b,o,f,N,u,l,y]),D=L.useMemo(()=>rb(S,f),[S,f]),q=hb(S);return L.createElement(L.Fragment,null,T.map(M=>L.createElement("link",{key:M,rel:"prefetch",as:"fetch",href:M,...d})),D.map(M=>L.createElement("link",{key:M,rel:"modulepreload",href:M,...d})),q.map(({key:M,link:$})=>L.createElement("link",{key:M,nonce:d.nonce,...$,crossOrigin:$.crossOrigin??d.crossOrigin})))}function gb(...l){return u=>{l.forEach(d=>{typeof d=="function"?d(u):d!=null&&(d.current=u)})}}var yb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{yb&&(window.__reactRouterVersion="7.13.0")}catch{}function xb({basename:l,children:u,unstable_useTransitions:d,window:o}){let g=L.useRef();g.current==null&&(g.current=Ip({window:o,v5Compat:!0}));let f=g.current,[y,w]=L.useState({action:f.action,location:f.location}),b=L.useCallback(x=>{d===!1?w(x):L.startTransition(()=>w(x))},[d]);return L.useLayoutEffect(()=>f.listen(b),[f,b]),L.createElement(Zv,{basename:l,children:u,location:y.location,navigationType:y.action,navigator:f,unstable_useTransitions:d})}var yy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xy=L.forwardRef(function({onClick:u,discover:d="render",prefetch:o="none",relative:g,reloadDocument:f,replace:y,state:w,target:b,to:x,preventScrollReset:N,viewTransition:S,unstable_defaultShouldRevalidate:T,...D},q){let{basename:M,unstable_useTransitions:$}=L.useContext(La),X=typeof x=="string"&&yy.test(x),Q=sy(x,M);x=Q.to;let F=Dv(x,{relative:g}),[J,ne,ee]=db(o,D),P=bb(x,{replace:y,state:w,target:b,preventScrollReset:N,relative:g,viewTransition:S,unstable_defaultShouldRevalidate:T,unstable_useTransitions:$});function W(C){u&&u(C),C.defaultPrevented||P(C)}let A=L.createElement("a",{...D,...ee,href:Q.absoluteURL||F,onClick:Q.isExternal||f?u:W,ref:gb(q,ne),target:b,"data-discover":!X&&d==="render"?"true":void 0});return J&&!X?L.createElement(L.Fragment,null,A,L.createElement(fb,{page:F})):A});xy.displayName="Link";var py=L.forwardRef(function({"aria-current":u="page",caseSensitive:d=!1,className:o="",end:g=!1,style:f,to:y,viewTransition:w,children:b,...x},N){let S=iu(y,{relative:x.relative}),T=Ql(),D=L.useContext(Pc),{navigator:q,basename:M}=L.useContext(La),$=D!=null&&Eb(S)&&w===!0,X=q.encodeLocation?q.encodeLocation(S).pathname:S.pathname,Q=T.pathname,F=D&&D.navigation&&D.navigation.location?D.navigation.location.pathname:null;d||(Q=Q.toLowerCase(),F=F?F.toLowerCase():null,X=X.toLowerCase()),F&&M&&(F=sl(F,M)||F);const J=X!=="/"&&X.endsWith("/")?X.length-1:X.length;let ne=Q===X||!g&&Q.startsWith(X)&&Q.charAt(J)==="/",ee=F!=null&&(F===X||!g&&F.startsWith(X)&&F.charAt(X.length)==="/"),P={isActive:ne,isPending:ee,isTransitioning:$},W=ne?u:void 0,A;typeof o=="function"?A=o(P):A=[o,ne?"active":null,ee?"pending":null,$?"transitioning":null].filter(Boolean).join(" ");let C=typeof f=="function"?f(P):f;return L.createElement(xy,{...x,"aria-current":W,className:A,ref:N,style:C,to:y,viewTransition:w},typeof b=="function"?b(P):b)});py.displayName="NavLink";var pb=L.forwardRef(({discover:l="render",fetcherKey:u,navigate:d,reloadDocument:o,replace:g,state:f,method:y=Bc,action:w,onSubmit:b,relative:x,preventScrollReset:N,viewTransition:S,unstable_defaultShouldRevalidate:T,...D},q)=>{let{unstable_useTransitions:M}=L.useContext(La),$=Nb(),X=jb(w,{relative:x}),Q=y.toLowerCase()==="get"?"get":"post",F=typeof w=="string"&&yy.test(w),J=ne=>{if(b&&b(ne),ne.defaultPrevented)return;ne.preventDefault();let ee=ne.nativeEvent.submitter,P=(ee==null?void 0:ee.getAttribute("formmethod"))||y,W=()=>$(ee||ne.currentTarget,{fetcherKey:u,method:P,navigate:d,replace:g,state:f,relative:x,preventScrollReset:N,viewTransition:S,unstable_defaultShouldRevalidate:T});M&&d!==!1?L.startTransition(()=>W()):W()};return L.createElement("form",{ref:q,method:Q,action:X,onSubmit:o?b:J,...D,"data-discover":!F&&l==="render"?"true":void 0})});pb.displayName="Form";function vb(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function vy(l){let u=L.useContext(Ur);return Tt(u,vb(l)),u}function bb(l,{target:u,replace:d,state:o,preventScrollReset:g,relative:f,viewTransition:y,unstable_defaultShouldRevalidate:w,unstable_useTransitions:b}={}){let x=Uf(),N=Ql(),S=iu(l,{relative:f});return L.useCallback(T=>{if(Jv(T,u)){T.preventDefault();let D=d!==void 0?d:lu(N)===lu(S),q=()=>x(l,{replace:D,state:o,preventScrollReset:g,relative:f,viewTransition:y,unstable_defaultShouldRevalidate:w});b?L.startTransition(()=>q()):q()}},[N,x,S,d,o,u,l,g,f,y,w,b])}var Sb=0,wb=()=>`__${String(++Sb)}__`;function Nb(){let{router:l}=vy("useSubmit"),{basename:u}=L.useContext(La),d=Bv(),o=l.fetch,g=l.navigate;return L.useCallback(async(f,y={})=>{let{action:w,method:b,encType:x,formData:N,body:S}=tb(f,u);if(y.navigate===!1){let T=y.fetcherKey||wb();await o(T,d,y.action||w,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:N,body:S,formMethod:y.method||b,formEncType:y.encType||x,flushSync:y.flushSync})}else await g(y.action||w,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:N,body:S,formMethod:y.method||b,formEncType:y.encType||x,replace:y.replace,state:y.state,fromRouteId:d,flushSync:y.flushSync,viewTransition:y.viewTransition})},[o,g,u,d])}function jb(l,{relative:u}={}){let{basename:d}=L.useContext(La),o=L.useContext(Dn);Tt(o,"useFormAction must be used inside a RouteContext");let[g]=o.matches.slice(-1),f={...iu(l||".",{relative:u})},y=Ql();if(l==null){f.search=y.search;let w=new URLSearchParams(f.search),b=w.getAll("index");if(b.some(N=>N==="")){w.delete("index"),b.filter(S=>S).forEach(S=>w.append("index",S));let N=w.toString();f.search=N?`?${N}`:""}}return(!l||l===".")&&g.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),d!=="/"&&(f.pathname=f.pathname==="/"?d:ll([d,f.pathname])),lu(f)}function Eb(l,{relative:u}={}){let d=L.useContext(iy);Tt(d!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=vy("useViewTransitionState"),g=iu(l,{relative:u});if(!d.isTransitioning)return!1;let f=sl(d.currentLocation.pathname,o)||d.currentLocation.pathname,y=sl(d.nextLocation.pathname,o)||d.nextLocation.pathname;return $c(g.pathname,y)!=null||$c(g.pathname,f)!=null}var Tb=ey();const Mb=Rf(Tb);/**
61
+ * @license lucide-react v0.564.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const by=(...l)=>l.filter((u,d,o)=>!!u&&u.trim()!==""&&o.indexOf(u)===d).join(" ").trim();/**
66
+ * @license lucide-react v0.564.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const Cb=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
71
+ * @license lucide-react v0.564.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const Ob=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(u,d,o)=>o?o.toUpperCase():d.toLowerCase());/**
76
+ * @license lucide-react v0.564.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const og=l=>{const u=Ob(l);return u.charAt(0).toUpperCase()+u.slice(1)};/**
81
+ * @license lucide-react v0.564.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */var Db={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"};/**
86
+ * @license lucide-react v0.564.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const Rb=l=>{for(const u in l)if(u.startsWith("aria-")||u==="role"||u==="title")return!0;return!1};/**
91
+ * @license lucide-react v0.564.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const Ab=L.forwardRef(({color:l="currentColor",size:u=24,strokeWidth:d=2,absoluteStrokeWidth:o,className:g="",children:f,iconNode:y,...w},b)=>L.createElement("svg",{ref:b,...Db,width:u,height:u,stroke:l,strokeWidth:o?Number(d)*24/Number(u):d,className:by("lucide",g),...!f&&!Rb(w)&&{"aria-hidden":"true"},...w},[...y.map(([x,N])=>L.createElement(x,N)),...Array.isArray(f)?f:[f]]));/**
96
+ * @license lucide-react v0.564.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const Ue=(l,u)=>{const d=L.forwardRef(({className:o,...g},f)=>L.createElement(Ab,{ref:f,iconNode:u,className:by(`lucide-${Cb(og(l))}`,`lucide-${l}`,o),...g}));return d.displayName=og(l),d};/**
101
+ * @license lucide-react v0.564.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const _b=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Sy=Ue("activity",_b);/**
106
+ * @license lucide-react v0.564.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const kb=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],zb=Ue("arrow-down",kb);/**
111
+ * @license lucide-react v0.564.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const Ub=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],dg=Ue("arrow-right",Ub);/**
116
+ * @license lucide-react v0.564.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const Hb=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],Lb=Ue("arrow-up-down",Hb);/**
121
+ * @license lucide-react v0.564.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const qb=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Vb=Ue("arrow-up",qb);/**
126
+ * @license lucide-react v0.564.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */const Bb=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Yb=Ue("bell",Bb);/**
131
+ * @license lucide-react v0.564.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const $b=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],fg=Ue("briefcase",$b);/**
136
+ * @license lucide-react v0.564.0 - ISC
137
+ *
138
+ * This source code is licensed under the ISC license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */const Fb=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Bf=Ue("calendar",Fb);/**
141
+ * @license lucide-react v0.564.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const Gb=[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]],Zb=Ue("chart-no-axes-column",Gb);/**
146
+ * @license lucide-react v0.564.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const Qb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],jf=Ue("check",Qb);/**
151
+ * @license lucide-react v0.564.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const Pb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],wy=Ue("chevron-down",Pb);/**
156
+ * @license lucide-react v0.564.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const Wb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Ib=Ue("chevron-left",Wb);/**
161
+ * @license lucide-react v0.564.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */const Xb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Jb=Ue("chevron-right",Xb);/**
166
+ * @license lucide-react v0.564.0 - ISC
167
+ *
168
+ * This source code is licensed under the ISC license.
169
+ * See the LICENSE file in the root directory of this source tree.
170
+ */const Kb=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],e1=Ue("chevron-up",Kb);/**
171
+ * @license lucide-react v0.564.0 - ISC
172
+ *
173
+ * This source code is licensed under the ISC license.
174
+ * See the LICENSE file in the root directory of this source tree.
175
+ */const t1=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],a1=Ue("chevrons-up-down",t1);/**
176
+ * @license lucide-react v0.564.0 - ISC
177
+ *
178
+ * This source code is licensed under the ISC license.
179
+ * See the LICENSE file in the root directory of this source tree.
180
+ */const n1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],rl=Ue("circle-alert",n1);/**
181
+ * @license lucide-react v0.564.0 - ISC
182
+ *
183
+ * This source code is licensed under the ISC license.
184
+ * See the LICENSE file in the root directory of this source tree.
185
+ */const l1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8 12 4 4 4-4",key:"k98ssh"}]],hg=Ue("circle-arrow-down",l1);/**
186
+ * @license lucide-react v0.564.0 - ISC
187
+ *
188
+ * This source code is licensed under the ISC license.
189
+ * See the LICENSE file in the root directory of this source tree.
190
+ */const s1=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],uu=Ue("circle-check-big",s1);/**
191
+ * @license lucide-react v0.564.0 - ISC
192
+ *
193
+ * This source code is licensed under the ISC license.
194
+ * See the LICENSE file in the root directory of this source tree.
195
+ */const r1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],i1=Ue("circle-x",r1);/**
196
+ * @license lucide-react v0.564.0 - ISC
197
+ *
198
+ * This source code is licensed under the ISC license.
199
+ * See the LICENSE file in the root directory of this source tree.
200
+ */const u1=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],mg=Ue("clipboard-list",u1);/**
201
+ * @license lucide-react v0.564.0 - ISC
202
+ *
203
+ * This source code is licensed under the ISC license.
204
+ * See the LICENSE file in the root directory of this source tree.
205
+ */const c1=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Fc=Ue("clock",c1);/**
206
+ * @license lucide-react v0.564.0 - ISC
207
+ *
208
+ * This source code is licensed under the ISC license.
209
+ * See the LICENSE file in the root directory of this source tree.
210
+ */const o1=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ny=Ue("external-link",o1);/**
211
+ * @license lucide-react v0.564.0 - ISC
212
+ *
213
+ * This source code is licensed under the ISC license.
214
+ * See the LICENSE file in the root directory of this source tree.
215
+ */const d1=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],f1=Ue("eye-off",d1);/**
216
+ * @license lucide-react v0.564.0 - ISC
217
+ *
218
+ * This source code is licensed under the ISC license.
219
+ * See the LICENSE file in the root directory of this source tree.
220
+ */const h1=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],m1=Ue("eye",h1);/**
221
+ * @license lucide-react v0.564.0 - ISC
222
+ *
223
+ * This source code is licensed under the ISC license.
224
+ * See the LICENSE file in the root directory of this source tree.
225
+ */const g1=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Ef=Ue("file-text",g1);/**
226
+ * @license lucide-react v0.564.0 - ISC
227
+ *
228
+ * This source code is licensed under the ISC license.
229
+ * See the LICENSE file in the root directory of this source tree.
230
+ */const y1=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],x1=Ue("git-pull-request",y1);/**
231
+ * @license lucide-react v0.564.0 - ISC
232
+ *
233
+ * This source code is licensed under the ISC license.
234
+ * See the LICENSE file in the root directory of this source tree.
235
+ */const p1=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],v1=Ue("house",p1);/**
236
+ * @license lucide-react v0.564.0 - ISC
237
+ *
238
+ * This source code is licensed under the ISC license.
239
+ * See the LICENSE file in the root directory of this source tree.
240
+ */const b1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],S1=Ue("info",b1);/**
241
+ * @license lucide-react v0.564.0 - ISC
242
+ *
243
+ * This source code is licensed under the ISC license.
244
+ * See the LICENSE file in the root directory of this source tree.
245
+ */const w1=[["path",{d:"M5 3v14",key:"9nsxs2"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"M19 3v18",key:"1sk56x"}]],N1=Ue("kanban",w1);/**
246
+ * @license lucide-react v0.564.0 - ISC
247
+ *
248
+ * This source code is licensed under the ISC license.
249
+ * See the LICENSE file in the root directory of this source tree.
250
+ */const j1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],jy=Ue("loader-circle",j1);/**
251
+ * @license lucide-react v0.564.0 - ISC
252
+ *
253
+ * This source code is licensed under the ISC license.
254
+ * See the LICENSE file in the root directory of this source tree.
255
+ */const E1=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],Ey=Ue("map",E1);/**
256
+ * @license lucide-react v0.564.0 - ISC
257
+ *
258
+ * This source code is licensed under the ISC license.
259
+ * See the LICENSE file in the root directory of this source tree.
260
+ */const T1=[["path",{d:"M5 12h14",key:"1ays0h"}]],M1=Ue("minus",T1);/**
261
+ * @license lucide-react v0.564.0 - ISC
262
+ *
263
+ * This source code is licensed under the ISC license.
264
+ * See the LICENSE file in the root directory of this source tree.
265
+ */const C1=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],Ty=Ue("pause",C1);/**
266
+ * @license lucide-react v0.564.0 - ISC
267
+ *
268
+ * This source code is licensed under the ISC license.
269
+ * See the LICENSE file in the root directory of this source tree.
270
+ */const O1=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Yf=Ue("pen",O1);/**
271
+ * @license lucide-react v0.564.0 - ISC
272
+ *
273
+ * This source code is licensed under the ISC license.
274
+ * See the LICENSE file in the root directory of this source tree.
275
+ */const D1=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],kr=Ue("play",D1);/**
276
+ * @license lucide-react v0.564.0 - ISC
277
+ *
278
+ * This source code is licensed under the ISC license.
279
+ * See the LICENSE file in the root directory of this source tree.
280
+ */const R1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Lr=Ue("plus",R1);/**
281
+ * @license lucide-react v0.564.0 - ISC
282
+ *
283
+ * This source code is licensed under the ISC license.
284
+ * See the LICENSE file in the root directory of this source tree.
285
+ */const A1=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],My=Ue("rotate-ccw",A1);/**
286
+ * @license lucide-react v0.564.0 - ISC
287
+ *
288
+ * This source code is licensed under the ISC license.
289
+ * See the LICENSE file in the root directory of this source tree.
290
+ */const _1=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],k1=Ue("save",_1);/**
291
+ * @license lucide-react v0.564.0 - ISC
292
+ *
293
+ * This source code is licensed under the ISC license.
294
+ * See the LICENSE file in the root directory of this source tree.
295
+ */const z1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ic=Ue("search",z1);/**
296
+ * @license lucide-react v0.564.0 - ISC
297
+ *
298
+ * This source code is licensed under the ISC license.
299
+ * See the LICENSE file in the root directory of this source tree.
300
+ */const U1=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],H1=Ue("settings",U1);/**
301
+ * @license lucide-react v0.564.0 - ISC
302
+ *
303
+ * This source code is licensed under the ISC license.
304
+ * See the LICENSE file in the root directory of this source tree.
305
+ */const L1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],gg=Ue("square",L1);/**
306
+ * @license lucide-react v0.564.0 - ISC
307
+ *
308
+ * This source code is licensed under the ISC license.
309
+ * See the LICENSE file in the root directory of this source tree.
310
+ */const q1=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],V1=Ue("terminal",q1);/**
311
+ * @license lucide-react v0.564.0 - ISC
312
+ *
313
+ * This source code is licensed under the ISC license.
314
+ * See the LICENSE file in the root directory of this source tree.
315
+ */const B1=[["path",{d:"M21 7 6.82 21.18a2.83 2.83 0 0 1-3.99-.01a2.83 2.83 0 0 1 0-4L17 3",key:"1ub6xw"}],["path",{d:"m16 2 6 6",key:"1gw87d"}],["path",{d:"M12 16H4",key:"1cjfip"}]],Y1=Ue("test-tube-diagonal",B1);/**
316
+ * @license lucide-react v0.564.0 - ISC
317
+ *
318
+ * This source code is licensed under the ISC license.
319
+ * See the LICENSE file in the root directory of this source tree.
320
+ */const $1=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],$f=Ue("trash-2",$1);/**
321
+ * @license lucide-react v0.564.0 - ISC
322
+ *
323
+ * This source code is licensed under the ISC license.
324
+ * See the LICENSE file in the root directory of this source tree.
325
+ */const F1=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Xc=Ue("triangle-alert",F1);/**
326
+ * @license lucide-react v0.564.0 - ISC
327
+ *
328
+ * This source code is licensed under the ISC license.
329
+ * See the LICENSE file in the root directory of this source tree.
330
+ */const G1=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],Z1=Ue("wifi",G1);/**
331
+ * @license lucide-react v0.564.0 - ISC
332
+ *
333
+ * This source code is licensed under the ISC license.
334
+ * See the LICENSE file in the root directory of this source tree.
335
+ */const Q1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],qr=Ue("x",Q1),Ff="";let Gf=!1,Gc=null;function P1(l){Gf=l}function W1(l){Gc=l}function I1(){return Gf}function Cy(l){return encodeURIComponent(l.replace(/\//g,"~"))}function Nt(l){return Gf&&Gc?l.replace("/api/",`/api/projects/${Cy(Gc)}/`):l}function X1(){return gt("/api/mode")}function Oy(){return gt("/api/projects")}async function gt(l,u){const d=`${Ff}${l}`,o=await fetch(d,{headers:{"Content-Type":"application/json",...u==null?void 0:u.headers},...u});if(!o.ok){const g=await o.json().catch(()=>({error:"Unknown error"}));throw new Error(g.error||`HTTP ${o.status}: ${o.statusText}`)}return o.json()}function gf(){return gt(Nt("/api/status"))}function Dy(){return gt(Nt("/api/prs"))}function J1(l,u){const d=`?lines=${encodeURIComponent(u)}`;return gt(Nt(`/api/logs/${encodeURIComponent(l)}${d}`))}function Zf(){return gt(Nt("/api/config"))}async function Ry(){if(I1()){const u=(await Oy()).filter(o=>o.valid);return(await Promise.all(u.map(async o=>{try{const g=await gt(`/api/projects/${Cy(o.name)}/config`);return{projectId:o.name,config:g}}catch(g){return console.error(`Failed to fetch config for project ${o.name}`,g),null}}))).filter(o=>o!==null)}else{const l=await Zf();return[{projectId:Gc||"current",config:l}]}}function nl(l){return gt(Nt("/api/config"),{method:"PUT",body:JSON.stringify(l)})}function K1(){return gt(Nt("/api/doctor"))}function Ay(){return gt(Nt("/api/schedule-info"))}function _y(){return gt(Nt("/api/actions/run"),{method:"POST"})}function Qf(){return gt(Nt("/api/actions/review"),{method:"POST"})}function ky(){return gt(Nt("/api/actions/qa"),{method:"POST"})}function zy(){return gt(Nt("/api/actions/audit"),{method:"POST"})}function Uy(){return gt(Nt("/api/actions/analytics"),{method:"POST"})}function Hy(){return gt(Nt("/api/actions/planner"),{method:"POST"})}function nu(){return gt(Nt("/api/actions/install-cron"),{method:"POST"})}function eS(){return gt(Nt("/api/actions/uninstall-cron"),{method:"POST"})}function tS(l="all"){return gt(Nt("/api/actions/cancel"),{method:"POST",body:JSON.stringify({type:l})})}const Zl=["Draft","Ready","In Progress","Review","Done"];function Ly(){return gt(Nt("/api/board/status"))}function aS(l){return gt(Nt("/api/board/issues"),{method:"POST",body:JSON.stringify(l)})}function qy(l,u){return gt(Nt(`/api/board/issues/${l}/move`),{method:"PATCH",body:JSON.stringify({column:u})})}async function nS(l){const u=`${Ff}${Nt(`/api/board/issues/${l}`)}`,d=await fetch(u,{headers:{"Content-Type":"application/json"},method:"DELETE"});if(!d.ok){const o=await d.json().catch(()=>({error:"Unknown error"}));throw new Error(o.error||`HTTP ${d.status}: ${d.statusText}`)}}function lS(){return gt(Nt("/api/actions/clear-lock"),{method:"POST"})}function sS(l,u=[],d){const o=(d==null?void 0:d.enabled)??!0,g=L.useRef(l);g.current=l,L.useEffect(()=>{if(!o)return;const f=`${Ff}${Nt("/api/status/events")}`,y=new EventSource(f);return y.addEventListener("status_changed",w=>{try{const b=JSON.parse(w.data);g.current(b)}catch{}}),()=>{y.close()}},[o,...u])}function rS(){return gt("/api/queue/status")}function iS(l){const u=`?window=${encodeURIComponent(l)}`;return gt(`/api/queue/analytics${u}`)}function uS(){return gt(Nt("/api/roadmap"))}function cS(){return gt(Nt("/api/roadmap/scan"),{method:"POST"})}function Vy(l){return gt(Nt("/api/roadmap/toggle"),{method:"PUT",body:JSON.stringify({enabled:l})})}function gn(l,u=[],d){const o=(d==null?void 0:d.enabled)??!0,[g,f]=L.useState(null),[y,w]=L.useState(!0),[b,x]=L.useState(null),N=L.useRef(l);N.current=l;const S=L.useRef(()=>{(async()=>{x(null);try{const D=await N.current();f(D)}catch(D){x(D instanceof Error?D:new Error("Unknown error"))}})()});return S.current=S.current.bind(S),L.useEffect(()=>{if(!o)return;let T=!1;return w(!0),x(null),(async()=>{try{const q=await N.current();T||f(q)}catch(q){T||x(q instanceof Error?q:new Error("Unknown error"))}finally{T||w(!1)}})(),()=>{T=!0}},[...u,o]),{data:g,loading:y,error:b,refetch:S.current}}const yg=l=>{let u;const d=new Set,o=(x,N)=>{const S=typeof x=="function"?x(u):x;if(!Object.is(S,u)){const T=u;u=N??(typeof S!="object"||S===null)?S:Object.assign({},u,S),d.forEach(D=>D(u,T))}},g=()=>u,w={setState:o,getState:g,getInitialState:()=>b,subscribe:x=>(d.add(x),()=>d.delete(x))},b=u=l(o,g,w);return w},oS=l=>l?yg(l):yg,dS=l=>l;function fS(l,u=dS){const d=Ve.useSyncExternalStore(l.subscribe,()=>u(l.getState()),()=>u(l.getInitialState()));return Ve.useDebugValue(d),d}const xg=l=>{const u=oS(l),d=o=>fS(u,o);return Object.assign(d,u),d},hS=l=>l?xg(l):xg,mS=typeof localStorage<"u"?localStorage.getItem("nw-selected-project"):null,ua=hS(l=>({projectName:"Night Watch",setProjectName:u=>l({projectName:u}),toasts:[],addToast:u=>{const d=Math.random().toString(36).substring(7);l(o=>({toasts:[...o.toasts,{...u,id:d}]})),setTimeout(()=>{l(o=>({toasts:o.toasts.filter(g=>g.id!==d)}))},5e3)},removeToast:u=>l(d=>({toasts:d.toasts.filter(o=>o.id!==u)})),status:null,setStatus:u=>l(d=>!d.status||new Date(u.timestamp)>new Date(d.status.timestamp)?{status:u}:d),globalModeLoading:!0,setGlobalModeLoading:u=>l({globalModeLoading:u}),isGlobalMode:!1,setGlobalMode:u=>{P1(u),l({isGlobalMode:u})},projects:[],setProjects:u=>l({projects:u}),selectedProjectId:mS,selectProject:u=>{W1(u),u?localStorage.setItem("nw-selected-project",u):localStorage.removeItem("nw-selected-project"),l(d=>{const o=d.projects.find(g=>g.name===u);return{selectedProjectId:u,...o?{projectName:o.name}:{}}})}})),gS=()=>{const[l,u]=L.useState(!1),{projectName:d,isGlobalMode:o,projects:g,selectedProjectId:f,selectProject:y,globalModeLoading:w}=ua(),{data:b}=gn(Dy,[f],{enabled:!w}),x=(b==null?void 0:b.length)??0,N=L.useMemo(()=>[{icon:v1,label:"Dashboard",path:"/",section:"Overview"},{icon:V1,label:"Logs",path:"/logs"},{icon:N1,label:"Board",path:"/board",section:"Work"},{icon:x1,label:"Pull Requests",path:"/prs",badge:x},{icon:Ey,label:"Roadmap",path:"/roadmap"},{icon:Bf,label:"Schedules",path:"/scheduling",section:"Automation"},{icon:H1,label:"Settings",path:"/settings",section:"Config"}],[x]);return s.jsxs("aside",{className:`
336
+ relative flex flex-col transition-all duration-300 ease-[cubic-bezier(0.25,0.1,0.25,1)]
337
+ ${l?"w-20":"w-72"} h-screen flex-shrink-0 z-50
338
+ bg-[#030712]/80 backdrop-blur-xl border-r border-white/5
339
+ `,children:[s.jsx("div",{className:`p-6 border-b border-white/5 ${l?"items-center justify-center flex":""}`,children:l?s.jsx("div",{className:"relative group",children:s.jsx("div",{className:"h-10 w-10 bg-indigo-600 rounded-xl flex items-center justify-center text-white font-bold cursor-pointer shadow-lg shadow-indigo-500/20 group-hover:bg-indigo-500 transition-colors bg-gradient-to-br from-indigo-500 to-indigo-700",title:"Switch Project",children:"NW"})}):s.jsxs("div",{className:"relative w-full",children:[s.jsx("label",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-widest mb-3 block pl-1",children:o?"Projects":"Workspace"}),o?s.jsxs("div",{className:"relative",children:[s.jsx(fg,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 h-4 w-4 text-indigo-400 pointer-events-none"}),s.jsx("select",{value:f||"",onChange:S=>y(S.target.value),className:"w-full bg-[#111827] border border-white/10 text-slate-200 rounded-lg py-3 pl-10 pr-8 text-sm font-medium shadow-sm appearance-none cursor-pointer hover:border-white/20 transition-colors focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/20",children:g.filter(S=>S.valid).map(S=>s.jsx("option",{value:S.name,children:S.name},S.name))}),s.jsx(a1,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-slate-500 pointer-events-none"})]}):s.jsxs("div",{className:"w-full bg-[#111827] border border-white/10 text-slate-200 rounded-lg py-3 px-3.5 text-sm font-medium shadow-sm flex items-center",children:[s.jsx(fg,{className:"h-4 w-4 text-indigo-400 mr-3"}),s.jsx("span",{className:"truncate",children:d})]})]})}),s.jsx("nav",{className:"flex-1 py-6 overflow-y-auto overflow-x-hidden scrollbar-hide",children:s.jsx("ul",{className:"space-y-1.5 px-4",children:N.map(S=>s.jsxs(Ve.Fragment,{children:[S.section&&!l&&s.jsx("li",{className:"text-[10px] font-bold text-slate-600 uppercase tracking-widest px-3.5 pt-4 pb-1",children:S.section}),s.jsx("li",{children:s.jsx(py,{to:S.path,className:({isActive:T})=>`
340
+ flex items-center px-3.5 py-3 rounded-xl transition-all duration-200 group relative
341
+ ${T?"bg-indigo-500/10 text-indigo-300 shadow-[inset_0_1px_0_0_rgba(255,255,255,0.05)]":"text-slate-400 hover:bg-white/5 hover:text-slate-200"}
342
+ ${l?"justify-center":""}
343
+ `,children:({isActive:T})=>s.jsxs(s.Fragment,{children:[s.jsx(S.icon,{className:`h-5 w-5 transition-colors ${T?"text-indigo-400 drop-shadow-[0_0_8px_rgba(99,102,241,0.5)]":"text-slate-500 group-hover:text-slate-300"} ${l?"":"mr-3.5"}`}),!l&&s.jsx("span",{className:"flex-1 text-sm font-medium tracking-wide",children:S.label}),S.badge&&(l?s.jsx("span",{className:"absolute top-2 right-2 h-2 w-2 bg-indigo-500 rounded-full border border-[#030712] shadow-sm"}):s.jsx("span",{className:`text-[10px] font-bold px-2 py-0.5 rounded-md ${T?"bg-indigo-500/20 text-indigo-300":"bg-white/5 text-slate-400 border border-white/5"}`,children:S.badge})),T&&!l&&s.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-1 h-6 bg-indigo-500 rounded-r-full shadow-[0_0_10px_rgba(99,102,241,0.4)]"}),l&&s.jsx("div",{className:"absolute left-full ml-4 px-3 py-1.5 bg-[#111827] text-white text-xs font-medium rounded-md border border-white/10 shadow-xl opacity-0 group-hover:opacity-100 pointer-events-none whitespace-nowrap z-50 transition-opacity translate-x-2 group-hover:translate-x-0",children:S.label})]})})})]},S.path))})}),s.jsx("div",{className:"p-4 border-t border-white/5 flex justify-end",children:s.jsx("button",{onClick:()=>u(!l),className:"p-2 rounded-lg hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors",children:l?s.jsx(Jb,{className:"h-5 w-5"}):s.jsx(Ib,{className:"h-5 w-5"})})})]})},yS=()=>{const{projectName:l}=ua();return s.jsxs("header",{className:"h-20 flex items-center justify-between px-8 z-40 sticky top-0 bg-[#030712]/80 backdrop-blur-md border-b border-white/5",children:[s.jsxs("div",{className:"flex items-center space-x-6",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-xs font-mono text-indigo-400 mb-0.5 tracking-tight",children:"Active Project"}),s.jsx("h1",{className:"text-xl font-semibold text-white tracking-tight leading-none",children:l})]}),s.jsx("div",{className:"h-8 w-px bg-white/10 mx-2"}),s.jsxs("div",{className:"flex items-center space-x-2 text-xs font-medium px-3 py-1.5 rounded-full border transition-colors bg-emerald-500/5 text-emerald-400 border-emerald-500/20 shadow-[0_0_10px_-4px_rgba(16,185,129,0.3)]",children:[s.jsx(Z1,{className:"h-3.5 w-3.5"}),s.jsx("span",{className:"uppercase tracking-wider text-[10px]",children:"Online"})]})]}),s.jsxs("div",{className:"flex items-center space-x-5",children:[s.jsxs("div",{className:"relative hidden md:block group",children:[s.jsx("input",{type:"text",placeholder:"Search ( / )",className:"w-72 pl-10 pr-4 py-2 rounded-lg border border-white/5 bg-white/5 text-sm text-slate-200 focus:outline-none focus:ring-1 focus:ring-indigo-500/50 focus:border-indigo-500/50 transition-all placeholder:text-slate-600 focus:bg-[#0b101b]"}),s.jsx(Ic,{className:"absolute left-3.5 top-2.5 h-4 w-4 text-slate-500 group-focus-within:text-indigo-400 transition-colors"})]}),s.jsx("div",{className:"flex items-center space-x-3",children:s.jsxs("button",{className:"p-2.5 text-slate-400 hover:text-white hover:bg-white/5 rounded-full relative transition-all",children:[s.jsx(Yb,{className:"h-5 w-5"}),s.jsx("span",{className:"absolute top-2.5 right-2.5 h-2 w-2 bg-red-500 rounded-full ring-2 ring-[#030712]"})]})}),s.jsx("div",{className:"h-9 w-9 rounded-full bg-gradient-to-tr from-indigo-600 to-purple-600 ring-2 ring-white/10 flex items-center justify-center text-white font-bold text-xs shadow-lg",children:"AD"})]})]})},xS=({toast:l,onDismiss:u})=>{const d={success:s.jsx(uu,{className:"h-5 w-5 text-green-400"}),error:s.jsx(rl,{className:"h-5 w-5 text-red-400"}),info:s.jsx(S1,{className:"h-5 w-5 text-blue-400"}),warning:s.jsx(Xc,{className:"h-5 w-5 text-amber-400"})},o={success:"border-l-green-500",error:"border-l-red-500",info:"border-l-blue-500",warning:"border-l-amber-500"};return s.jsx("div",{className:`
344
+ pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg
345
+ bg-slate-900 border border-slate-800 border-l-4 ${o[l.type]}
346
+ shadow-lg ring-1 ring-black ring-opacity-5 transition-all
347
+ animate-in slide-in-from-right-full fade-in duration-300
348
+ `,children:s.jsx("div",{className:"p-4",children:s.jsxs("div",{className:"flex items-start",children:[s.jsx("div",{className:"flex-shrink-0",children:d[l.type]}),s.jsxs("div",{className:"ml-3 w-0 flex-1 pt-0.5",children:[s.jsx("p",{className:"text-sm font-medium text-slate-200",children:l.title}),l.message&&s.jsx("p",{className:"mt-1 text-sm text-slate-400",children:l.message})]}),s.jsx("div",{className:"ml-4 flex flex-shrink-0",children:s.jsxs("button",{type:"button",className:"inline-flex rounded-md text-slate-400 hover:text-slate-200 focus:outline-none focus:ring-2 focus:ring-indigo-500",onClick:()=>u(l.id),children:[s.jsx("span",{className:"sr-only",children:"Close"}),s.jsx(qr,{className:"h-5 w-5"})]})})]})})})},pS=()=>{const{toasts:l,removeToast:u}=ua();return s.jsx("div",{"aria-live":"assertive",className:"pointer-events-none fixed inset-0 flex flex-col items-end px-4 py-6 sm:items-end sm:p-6 z-[100] gap-4",children:l.map(d=>s.jsx(xS,{toast:d,onDismiss:u},d.id))})};function vS(){const{setGlobalMode:l,setGlobalModeLoading:u,setProjects:d,selectProject:o,selectedProjectId:g}=ua();L.useEffect(()=>{u(!0),X1().then(async({globalMode:f})=>{if(l(f),!f)return;const y=await Oy();d(y);const w=y.filter(b=>b.valid);g&&w.some(b=>b.name===g)?o(g):w.length>0&&o(w[0].name)}).catch(()=>{l(!1)}).finally(()=>{u(!1)})},[])}function pg(l){if(!(l!=null&&l.timestamp))return Number.NEGATIVE_INFINITY;const u=new Date(l.timestamp).getTime();return Number.isNaN(u)?Number.NEGATIVE_INFINITY:u}function Uc(l,u){return l?u?pg(l)>=pg(u)?l:u:l:u}function bS(){const{setStatus:l,setProjectName:u,selectedProjectId:d,globalModeLoading:o,status:g}=ua(),f=L.useRef(null);f.current=ua.getState().status,sS(y=>{Uc(y,f.current)===y&&l(y)},[d,o],{enabled:!o}),L.useEffect(()=>{if(o)return;gf().then(w=>{Uc(w,f.current)===w&&l(w)}).catch(()=>{});const y=setInterval(()=>{gf().then(w=>{Uc(w,f.current)===w&&l(w)}).catch(()=>{})},3e4);return()=>clearInterval(y)},[d,o,l]),L.useEffect(()=>{const y=()=>{gf().then(w=>{Uc(w,f.current)===w&&l(w)}).catch(()=>{})};return window.addEventListener("focus",y),()=>window.removeEventListener("focus",y)},[d,l]),L.useEffect(()=>{g!=null&&g.projectName&&u(g.projectName)},[g==null?void 0:g.projectName,u])}const Ke=({children:l,className:u="",onClick:d})=>s.jsxs("div",{className:`
349
+ relative bg-[#0b101b] rounded-xl border border-white/5
350
+ shadow-[0_4px_20px_-4px_rgba(0,0,0,0.5)]
351
+ transition-all duration-300
352
+ ${d?"cursor-pointer hover:border-indigo-500/30 hover:shadow-indigo-500/5 group":""}
353
+ ${u}
354
+ `,onClick:d,children:[d&&s.jsx("div",{className:"absolute inset-0 bg-indigo-500/0 group-hover:bg-indigo-500/[0.02] transition-colors rounded-xl pointer-events-none"}),s.jsx("div",{className:"relative z-10",children:l})]}),mt=({children:l,variant:u="primary",size:d="md",loading:o=!1,className:g="",disabled:f,...y})=>{const w="inline-flex items-center justify-center rounded-lg font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-offset-[#030712] disabled:opacity-50 disabled:pointer-events-none active:scale-[0.98]",b={primary:"bg-indigo-600 text-white hover:bg-indigo-500 focus:ring-indigo-500 shadow-[0_0_15px_-3px_rgba(79,70,229,0.4)] border border-indigo-500/50 hover:shadow-[0_0_20px_-3px_rgba(79,70,229,0.5)]",secondary:"bg-[#1f2937] text-slate-200 hover:bg-[#374151] focus:ring-slate-500 border border-white/5",danger:"bg-red-600/10 text-red-400 hover:bg-red-600/20 focus:ring-red-500 border border-red-900/50 hover:border-red-500/50",ghost:"bg-transparent text-slate-400 hover:bg-white/5 hover:text-slate-200 focus:ring-slate-400",outline:"border border-slate-700/50 bg-transparent text-slate-300 hover:bg-white/5 hover:border-slate-500 focus:ring-slate-400"},x={sm:"h-8 px-3 text-xs tracking-wide",md:"h-10 px-4 py-2 text-sm",lg:"h-12 px-6 text-base",icon:"h-9 w-9"};return s.jsxs("button",{className:`${w} ${b[u]} ${x[d]} ${g}`,disabled:f||o,...y,children:[o&&s.jsx(jy,{className:"mr-2 h-4 w-4 animate-spin"}),l]})},_r=({children:l,variant:u="default",className:d=""})=>{const o={default:"bg-indigo-500/10 text-indigo-400 ring-1 ring-inset ring-indigo-500/20",success:"bg-emerald-500/10 text-emerald-400 ring-1 ring-inset ring-emerald-500/20",warning:"bg-amber-500/10 text-amber-400 ring-1 ring-inset ring-amber-500/20",error:"bg-red-500/10 text-red-400 ring-1 ring-inset ring-red-500/20",neutral:"bg-slate-500/10 text-slate-400 ring-1 ring-inset ring-slate-500/20",info:"bg-blue-500/10 text-blue-400 ring-1 ring-inset ring-blue-500/20"};return s.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-[11px] font-medium tracking-wide ${o[u]} ${d}`,children:l})},By={Draft:{dot:"bg-slate-500",badge:"neutral"},Ready:{dot:"bg-green-500",badge:"success"},"In Progress":{dot:"bg-blue-500",badge:"info"},Review:{dot:"bg-amber-500",badge:"warning"},Done:{dot:"bg-slate-600",badge:"neutral"}},SS=({defaultColumn:l,onClose:u,onCreated:d})=>{const[o,g]=L.useState(""),[f,y]=L.useState(""),[w,b]=L.useState(l),[x,N]=L.useState(!1),[S,T]=L.useState(null),{addToast:D}=ua(),q=async M=>{if(M.preventDefault(),!!o.trim()){N(!0),T(null);try{await aS({title:o.trim(),body:f,column:w}),D({title:"Issue created",message:`"${o.trim()}" added to ${w}`,type:"success"}),d(),u()}catch($){T($ instanceof Error?$.message:"Failed to create issue")}finally{N(!1)}}};return s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[s.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:u}),s.jsxs("div",{className:"relative bg-[#0f172a] border border-white/10 rounded-2xl shadow-2xl w-full max-w-lg",children:[s.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-white/5",children:[s.jsx("h2",{className:"text-lg font-semibold text-slate-100",children:"New Board Issue"}),s.jsx("button",{onClick:u,className:"p-1.5 rounded-lg hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors",children:s.jsx(qr,{className:"h-5 w-5"})})]}),s.jsxs("form",{onSubmit:q,className:"p-6 space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs font-medium text-slate-400 uppercase tracking-wide block mb-1.5",children:"Title"}),s.jsx("input",{type:"text",value:o,onChange:M=>g(M.target.value),placeholder:"Issue title...",required:!0,className:"w-full bg-slate-950/50 border border-white/10 text-slate-200 rounded-lg px-3 py-2.5 text-sm placeholder-slate-600 focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/20"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs font-medium text-slate-400 uppercase tracking-wide block mb-1.5",children:"Column"}),s.jsx("select",{value:w,onChange:M=>b(M.target.value),className:"w-full bg-slate-950/50 border border-white/10 text-slate-200 rounded-lg px-3 py-2.5 text-sm focus:outline-none focus:border-indigo-500/50 appearance-none cursor-pointer",children:Zl.map(M=>s.jsx("option",{value:M,children:M},M))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs font-medium text-slate-400 uppercase tracking-wide block mb-1.5",children:"Body (optional)"}),s.jsx("textarea",{value:f,onChange:M=>y(M.target.value),placeholder:"Issue description...",rows:5,className:"w-full bg-slate-950/50 border border-white/10 text-slate-200 rounded-lg px-3 py-2.5 text-sm placeholder-slate-600 focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/20 resize-none font-mono"})]}),S&&s.jsx("p",{className:"text-sm text-red-400",children:S}),s.jsxs("div",{className:"flex justify-end space-x-3 pt-2",children:[s.jsx(mt,{variant:"ghost",type:"button",onClick:u,children:"Cancel"}),s.jsx(mt,{type:"submit",disabled:x||!o.trim(),children:x?"Creating...":"Create Issue"})]})]})]})]})},wS=({issue:l,onClose:u,onMoved:d,onClosed:o})=>{const[g,f]=L.useState(!1),[y,w]=L.useState(!1),{addToast:b}=ua(),x=async T=>{if(T!==l.column){f(!0);try{await qy(l.number,T),b({title:"Issue moved",message:`#${l.number} moved to ${T}`,type:"success"}),d(),u()}catch(D){b({title:"Move failed",message:D instanceof Error?D.message:"Failed to move issue",type:"error"})}finally{f(!1)}}},N=async()=>{if(confirm(`Close issue #${l.number}: "${l.title}"?`)){w(!0);try{await nS(l.number),b({title:"Issue closed",message:`#${l.number} closed on GitHub`,type:"success"}),o(),u()}catch(T){b({title:"Close failed",message:T instanceof Error?T.message:"Failed to close issue",type:"error"})}finally{w(!1)}}},S=l.column??"Draft";return s.jsxs("div",{className:"fixed inset-0 z-50 flex justify-end",children:[s.jsx("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm",onClick:u}),s.jsxs("div",{className:"relative bg-[#0a0f1e] border-l border-white/10 w-full max-w-xl flex flex-col shadow-2xl overflow-hidden",children:[s.jsxs("div",{className:"flex items-start justify-between p-6 border-b border-white/5 flex-shrink-0",children:[s.jsxs("div",{className:"flex-1 min-w-0 pr-4",children:[s.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[s.jsxs("span",{className:"text-slate-500 text-sm font-mono",children:["#",l.number]}),s.jsx(_r,{variant:By[S].badge,children:S})]}),s.jsx("h2",{className:"text-lg font-semibold text-slate-100 leading-snug",children:l.title}),l.assignees.length>0&&s.jsxs("p",{className:"text-xs text-slate-500 mt-1",children:["Assigned to: ",l.assignees.join(", ")]})]}),s.jsx("button",{onClick:u,className:"p-1.5 rounded-lg hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors flex-shrink-0",children:s.jsx(qr,{className:"h-5 w-5"})})]}),s.jsxs("div",{className:"flex items-center space-x-3 px-6 py-3 border-b border-white/5 flex-shrink-0 flex-wrap gap-y-2",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{className:"text-xs text-slate-500",children:"Move to:"}),Zl.filter(T=>T!==l.column).map(T=>s.jsx("button",{onClick:()=>x(T),disabled:g,className:"text-xs px-2.5 py-1 rounded-md bg-slate-800 text-slate-300 hover:bg-slate-700 hover:text-slate-100 border border-slate-700 transition-colors disabled:opacity-50",children:T},T))]}),s.jsxs("div",{className:"flex items-center space-x-2 ml-auto",children:[l.url&&!l.url.startsWith("local://")&&s.jsxs("a",{href:l.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center space-x-1 text-xs text-indigo-400 hover:text-indigo-300 transition-colors",children:[s.jsx(Ny,{className:"h-3.5 w-3.5"}),s.jsx("span",{children:"GitHub"})]}),s.jsx("button",{onClick:N,disabled:y,className:"text-xs px-2.5 py-1 rounded-md bg-red-500/10 text-red-400 hover:bg-red-500/20 border border-red-500/20 transition-colors disabled:opacity-50",children:y?"Closing...":"Close Issue"})]})]}),s.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:l.body?s.jsx("pre",{className:"text-sm text-slate-300 whitespace-pre-wrap font-mono leading-relaxed break-words",children:l.body}):s.jsx("p",{className:"text-slate-500 text-sm italic",children:"No description provided."})})]})]})},NS=({issue:l,onClick:u,onDragStart:d})=>{const[o,g]=L.useState(!1);return s.jsx("div",{className:"relative",draggable:!0,onDragStart:f=>{f.dataTransfer.setData("issueNumber",String(l.number)),f.dataTransfer.effectAllowed="move",g(!0),d(l)},onDragEnd:()=>g(!1),children:s.jsxs(Ke,{className:`p-3 cursor-grab hover:border-indigo-500/30 transition-all select-none ${o?"opacity-30":""}`,onClick:u,children:[s.jsxs("span",{className:"text-[10px] font-mono text-slate-600",children:["#",l.number]}),s.jsx("p",{className:"text-xs font-medium text-slate-200 line-clamp-2 mt-0.5 leading-snug",children:l.title}),l.assignees.length>0&&s.jsx("p",{className:"text-[10px] text-slate-500 mt-1.5 truncate",children:l.assignees.join(", ")})]})})},jS=({name:l,issues:u,draggingIssue:d,onIssueClick:o,onNewIssue:g,onMoveIssue:f,onDragStart:y})=>{const w=By[l],[b,x]=L.useState(!1),N=d!==null&&d.column!==l;return s.jsxs("div",{className:`flex flex-col min-w-[220px] max-w-[220px] h-full rounded-xl transition-colors ${b&&N?"bg-indigo-500/5 ring-1 ring-indigo-500/30":""}`,onDragOver:S=>{N&&(S.preventDefault(),S.dataTransfer.dropEffect="move",x(!0))},onDragLeave:()=>x(!1),onDrop:S=>{S.preventDefault(),x(!1),d&&d.column!==l&&f(d,l)},children:[s.jsxs("div",{className:"flex items-center justify-between mb-3 flex-shrink-0",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{className:`w-2.5 h-2.5 rounded-full ${w.dot}`}),s.jsx("span",{className:"text-xs font-semibold text-slate-400 uppercase tracking-wider",children:l}),s.jsx("span",{className:"text-[10px] font-bold text-slate-600 bg-slate-800 rounded-full px-1.5 py-0.5",children:u.length})]}),s.jsx("button",{onClick:()=>g(l),className:"p-1 rounded-md hover:bg-white/5 text-slate-600 hover:text-slate-400 transition-colors",title:`Add issue to ${l}`,children:s.jsx(Lr,{className:"h-3.5 w-3.5"})})]}),s.jsx("div",{className:"flex-1 overflow-y-auto space-y-2 pr-1 scrollbar-hide min-h-0",children:u.length===0?s.jsx("div",{className:`border-2 border-dashed rounded-xl h-24 flex items-center justify-center transition-colors ${b&&N?"border-indigo-500/40":"border-slate-800"}`,children:s.jsx("span",{className:"text-xs text-slate-700",children:b&&N?"Drop here":"No issues"})}):u.map(S=>s.jsx(NS,{issue:S,onClick:()=>o(S),onDragStart:y},S.id))})]})},ES=()=>{const[l,u]=L.useState(null),[d,o]=L.useState(null),[g,f]=L.useState(null),[y,w]=L.useState(null),b=L.useRef(!1),{addToast:x,selectedProjectId:N,globalModeLoading:S}=ua(),{data:T,loading:D,error:q,refetch:M}=gn(Ly,[N],{enabled:!S});L.useEffect(()=>{const Q=setInterval(()=>{b.current||M()},3e4);return()=>clearInterval(Q)},[M]);const $=L.useCallback(async(Q,F)=>{f(null);const J=y??(T==null?void 0:T.columns);if(!J)return;const ne=J,ee={};for(const W of Zl)ee[W]=(J[W]??[]).filter(A=>A.number!==Q.number);const P={...Q,column:F};ee[F]=[...ee[F]??[],P],w(ee),u(W=>(W==null?void 0:W.number)===Q.number?P:W),b.current=!0;try{await qy(Q.number,F),M(),setTimeout(()=>{w(null),b.current=!1},800)}catch(W){w(ne),u(A=>(A==null?void 0:A.number)===Q.number?Q:A),b.current=!1,x({title:"Move failed",message:W instanceof Error?W.message:"Failed to move issue",type:"error"})}},[x,M,y,T]);if(S||D)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading board..."})});if(q&&q.message.includes("Board not configured"))return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx("div",{className:"text-4xl",children:"📋"}),s.jsx("h2",{className:"text-xl font-semibold text-slate-200",children:"Board not configured"}),s.jsxs("p",{className:"text-slate-500 text-sm max-w-sm text-center",children:["Run ",s.jsx("code",{className:"font-mono bg-slate-800 px-2 py-0.5 rounded text-indigo-300",children:"night-watch board setup"})," in your project to create a GitHub Projects board."]})]});if(q)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx("div",{className:"text-slate-300",children:"Failed to load board"}),s.jsx("div",{className:"text-sm text-slate-500",children:q.message}),s.jsx(mt,{onClick:()=>M(),children:"Retry"})]});if(!T)return null;const X=y??T.columns;return s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsxs("div",{className:"flex items-center justify-between mb-6 flex-shrink-0",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-slate-100",children:"Board"}),s.jsxs("p",{className:"text-sm text-slate-500 mt-1",children:[Zl.reduce((Q,F)=>{var J;return Q+(((J=X[F])==null?void 0:J.length)??0)},0)," issues across ",Zl.length," columns"]})]}),s.jsxs(mt,{onClick:()=>o("Ready"),children:[s.jsx(Lr,{className:"h-4 w-4 mr-2"}),"New Issue"]})]}),s.jsx("div",{className:"flex-1 overflow-x-auto overflow-y-hidden",onDragEnd:()=>f(null),children:s.jsx("div",{className:"flex space-x-4 h-full pb-4",style:{minWidth:`${Zl.length*236}px`},children:Zl.map(Q=>s.jsx(jS,{name:Q,issues:X[Q]??[],draggingIssue:g,onIssueClick:u,onNewIssue:o,onMoveIssue:$,onDragStart:f},Q))})}),l&&s.jsx(wS,{issue:l,onClose:()=>u(null),onMoved:()=>M(),onClosed:()=>M()}),d&&s.jsx(SS,{defaultColumn:d,onClose:()=>o(null),onCreated:()=>M()})]})},TS=[{name:"executor",displayName:"Executor",processName:"executor",triggerId:"executor",cancelType:"run",runningLabel:"Running",idleLabel:"Idle"},{name:"reviewer",displayName:"Reviewer",processName:"reviewer",triggerId:"reviewer",cancelType:"review",runningLabel:"Running",idleLabel:"Idle"},{name:"qa",displayName:"QA",processName:"qa",triggerId:"qa",runningLabel:"Running",idleLabel:"Idle"},{name:"auditor",displayName:"Auditor",processName:"audit",triggerId:"audit",runningLabel:"Running",idleLabel:"Idle"},{name:"planner",displayName:"Planner",processName:"planner",triggerId:"planner",runningLabel:"Writing PRDs",idleLabel:"Idle"},{name:"analytics",displayName:"Analytics",processName:"analytics",triggerId:"analytics",runningLabel:"Running",idleLabel:"Idle"}],MS=({processes:l,activePrd:u,onCancelProcess:d,onForceClear:o,onViewLog:g,cancellingProcess:f,clearingLock:y,onTriggerJob:w,triggeringJob:b})=>{const x=S=>l.find(T=>T.name===S),N=(S,T)=>S.length<=T?S:S.slice(0,T-1)+"...";return s.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-3",children:TS.map(S=>{const T=x(S.processName),D=(T==null?void 0:T.running)??!1,q=T==null?void 0:T.pid,M=f===S.cancelType,$=D&&S.cancelType,X=!D&&S.name==="executor"&&u,Q=D?q?`PID: ${q}`:S.runningLabel:S.idleLabel,F=D&&S.name==="executor"&&u?N(u,20):null;return s.jsxs("div",{className:`flex items-center gap-2 p-2.5 rounded-lg border transition-colors ${D?"bg-green-950/30 border-green-800/50":"bg-slate-950/50 border-slate-800"}`,children:[s.jsx("div",{className:`h-2.5 w-2.5 rounded-full flex-shrink-0 ${D?"bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.5)]":"bg-slate-700"}`}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:`text-sm font-medium ${D?"text-slate-200":"text-slate-400"}`,children:S.displayName}),s.jsx("div",{className:"text-xs text-slate-500 truncate",children:F?s.jsxs("span",{className:"flex items-center gap-1",children:[s.jsx(Ef,{className:"h-3 w-3 flex-shrink-0"}),F]}):Q})]}),s.jsxs("div",{className:"flex-shrink-0",children:[$&&s.jsx("button",{onClick:()=>S.cancelType&&d(S.cancelType),disabled:M,className:"p-1 text-red-400 hover:text-red-300 hover:bg-red-500/10 rounded transition-colors disabled:opacity-50",title:"Stop process",children:s.jsx(gg,{className:"h-3.5 w-3.5"})}),X&&s.jsx("button",{onClick:o,disabled:y,className:"p-1 text-amber-400 hover:text-amber-300 hover:bg-amber-500/10 rounded transition-colors disabled:opacity-50",title:"Force clear stale state",children:s.jsx(gg,{className:"h-3.5 w-3.5"})}),!$&&!X&&D&&s.jsx("button",{onClick:g,className:"p-1 text-slate-400 hover:text-slate-300 hover:bg-white/5 rounded transition-colors",title:"View log",children:s.jsx(Ef,{className:"h-3.5 w-3.5"})}),!D&&!X&&s.jsx("button",{onClick:()=>w(S.triggerId),disabled:b!==null,className:"p-1 text-slate-500 hover:text-green-400 hover:bg-green-500/10 rounded transition-colors disabled:opacity-50",title:`Run ${S.displayName}`,children:b===S.triggerId?s.jsx("div",{className:"h-3.5 w-3.5 border-2 border-current border-t-transparent rounded-full animate-spin"}):s.jsx(kr,{className:"h-3.5 w-3.5"})})]})]},S.name)})})},CS={Draft:"text-slate-400 bg-slate-500/10 ring-slate-500/20",Ready:"text-green-400 bg-green-500/10 ring-green-500/20","In Progress":"text-blue-400 bg-blue-500/10 ring-blue-500/20",Review:"text-amber-400 bg-amber-500/10 ring-amber-500/20",Done:"text-slate-500 bg-slate-600/10 ring-slate-600/20"},OS=()=>{var C,ae;const l=Uf(),[u,d]=L.useState(null),[o,g]=L.useState(!1),[f,y]=L.useState(null),{setProjectName:w,addToast:b,selectedProjectId:x,globalModeLoading:N,status:S}=ua(),{data:T}=gn(Ay,[x],{enabled:!N}),{data:D,loading:q}=gn(()=>Ly().catch(()=>null),[x],{enabled:!N}),M=S;if(Ve.useEffect(()=>{M!=null&&M.projectName&&w(M.projectName)},[M,w]),N)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading..."})});if(!M)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading..."})});const $=M.prs.length,X=M.prs.filter(Y=>Y.reviewScore!==null&&Y.reviewScore<70).length,Q=((C=D==null?void 0:D.columns.Ready)==null?void 0:C.length)??0,F=((ae=D==null?void 0:D.columns["In Progress"])==null?void 0:ae.length)??0;M.processes.find(Y=>Y.name==="executor"),M.processes.find(Y=>Y.name==="reviewer"),M.processes.find(Y=>Y.name==="qa"),M.processes.find(Y=>Y.name==="audit"),M.processes.find(Y=>Y.name==="planner"),M.processes.find(Y=>Y.name==="analytics");const J=async Y=>{d(Y);try{const ie=await tS(Y),ge=ie.results.every(he=>he.success);b({title:ge?"Process Cancelled":"Cancel Failed",message:ie.results.map(he=>he.message).join("; "),type:ge?"success":"error"})}catch(ie){b({title:"Cancel Failed",message:ie instanceof Error?ie.message:"Failed to cancel process",type:"error"})}finally{d(null)}},ne=async()=>{g(!0);try{await lS(),b({title:"Lock Cleared",message:"Stale executor state removed",type:"success"})}catch(Y){b({title:"Clear Failed",message:Y instanceof Error?Y.message:"Failed to clear lock",type:"error"})}finally{g(!1)}},ee=async Y=>{y(Y);try{await{executor:_y,reviewer:Qf,qa:ky,audit:zy,planner:Hy,analytics:Uy}[Y](),b({title:"Job Triggered",message:`${Y[0].toUpperCase()+Y.slice(1)} job has been queued.`,type:"success"})}catch(ie){b({title:"Trigger Failed",message:ie instanceof Error?ie.message:`Failed to trigger ${Y}`,type:"error"})}finally{y(null)}},P=Y=>{if(!Y)return"Not scheduled";try{const ie=new Date(Y),ge=new Date,he=ie.getTime()-ge.getTime(),V=Math.floor(he/6e4);return V<0?"Running now...":V<60?`in ${V} min`:V<1440?`in ${Math.floor(V/60)} hr${V>=120?"s":""}`:`in ${Math.floor(V/1440)} day${V>=2880?"s":""}`}catch{return"Unknown"}},A=(()=>{var ge,he,V;if(T!=null&&T.paused)return null;const Y=[{agent:"Executor",nextRun:(T==null?void 0:T.executor.nextRun)??null},{agent:"Reviewer",nextRun:(T==null?void 0:T.reviewer.nextRun)??null},{agent:"QA",nextRun:((ge=T==null?void 0:T.qa)==null?void 0:ge.nextRun)??null},{agent:"Auditor",nextRun:((he=T==null?void 0:T.audit)==null?void 0:he.nextRun)??null},{agent:"Planner",nextRun:((V=T==null?void 0:T.planner)==null?void 0:V.nextRun)??null}];let ie=null;for(const re of Y)re.nextRun&&(!ie||new Date(re.nextRun)<new Date(ie.nextRun))&&(ie=re);return ie?{agent:ie.agent,time:P(ie.nextRun)}:null})();return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[s.jsxs(Ke,{className:"p-5",onClick:()=>l("/board"),children:[s.jsxs("div",{className:"flex justify-between items-start",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-slate-500",children:"Board Ready"}),s.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:Q})]}),s.jsx("div",{className:"p-2 bg-green-500/10 rounded-lg text-green-400",children:s.jsx(uu,{className:"h-5 w-5"})})]}),s.jsx("p",{className:"text-xs text-slate-500 mt-4",children:"issues ready to start"})]}),s.jsxs(Ke,{className:"p-5",onClick:()=>l("/board"),children:[s.jsxs("div",{className:"flex justify-between items-start",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-slate-500",children:"In Progress"}),s.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:F})]}),s.jsx("div",{className:"p-2 bg-blue-500/10 rounded-lg text-blue-400",children:s.jsx(Sy,{className:"h-5 w-5"})})]}),s.jsx("p",{className:"text-xs text-slate-500 mt-4",children:"issues in progress"})]}),s.jsxs(Ke,{className:"p-5",onClick:()=>l("/prs"),children:[s.jsxs("div",{className:"flex justify-between items-start",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-slate-500",children:"Open PRs"}),s.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:$})]}),s.jsx("div",{className:"p-2 bg-purple-500/10 rounded-lg text-purple-400",children:s.jsx(Fc,{className:"h-5 w-5"})})]}),s.jsx("p",{className:`text-xs mt-4 ${X>0?"text-red-400 font-medium":"text-slate-500"}`,children:X>0?`${X} need work`:"All passing"})]}),s.jsxs(Ke,{className:"p-5",children:[s.jsxs("div",{className:"flex justify-between items-start",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-slate-500",children:"Automation"}),s.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:T!=null&&T.paused?"Paused":M.crontab.installed?"Active":"Inactive"})]}),s.jsx("div",{className:`p-2 rounded-lg ${T!=null&&T.paused?"bg-amber-500/10 text-amber-400":M.crontab.installed?"bg-indigo-500/10 text-indigo-400":"bg-slate-700/50 text-slate-500"}`,children:s.jsx(Bf,{className:"h-5 w-5"})})]}),s.jsx("p",{className:"text-xs text-slate-500 mt-4",children:T!=null&&T.paused?"All schedules paused":M.crontab.installed?`${M.crontab.entries.length} entr${M.crontab.entries.length===1?"y":"ies"} installed`:"No crontab entries"})]})]}),s.jsxs(Ke,{className:"p-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("h2",{className:"text-base font-semibold text-slate-200",children:"Agents"}),s.jsx("button",{onClick:()=>l("/logs"),className:"text-xs text-slate-400 hover:text-slate-300 transition-colors",children:"View logs"})]}),s.jsx(MS,{processes:M.processes,activePrd:M.activePrd,onCancelProcess:J,onForceClear:ne,onViewLog:()=>l("/logs"),cancellingProcess:u,clearingLock:o,onTriggerJob:ee,triggeringJob:f})]}),A&&s.jsxs("div",{className:"flex items-center justify-between px-4 py-3 bg-slate-900/50 rounded-lg border border-slate-800",children:[s.jsxs("div",{className:"flex items-center gap-2 text-sm text-slate-400",children:[s.jsx("span",{children:"Next automation:"}),s.jsx("span",{className:"text-slate-200 font-medium",children:A.agent}),s.jsx("span",{children:A.time})]}),s.jsxs("button",{onClick:()=>l("/scheduling"),className:"text-sm text-indigo-400 hover:text-indigo-300 flex items-center transition-colors",children:["Manage Schedules ",s.jsx(dg,{className:"ml-1 h-3 w-3"})]})]}),s.jsxs("div",{className:"mt-6",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("h2",{className:"text-lg font-semibold text-slate-200",children:"GitHub Board"}),s.jsxs("button",{onClick:()=>l("/board"),className:"text-sm text-indigo-400 hover:text-indigo-300 flex items-center transition-colors",children:["View board ",s.jsx(dg,{className:"ml-1 h-3 w-3"})]})]}),s.jsx(Ke,{className:"p-4",children:q?s.jsx("div",{className:"flex items-center justify-center py-8",children:s.jsx("div",{className:"text-slate-400 text-sm",children:"Loading board..."})}):D?s.jsx("div",{className:"flex flex-wrap gap-3",children:Zl.map(Y=>{var ge;const ie=((ge=D.columns[Y])==null?void 0:ge.length)??0;return s.jsxs("button",{onClick:()=>l("/board"),className:`inline-flex items-center space-x-2 px-3 py-2 rounded-lg ring-1 ring-inset transition-colors hover:opacity-80 ${CS[Y]}`,children:[s.jsx("span",{className:"text-xs font-medium",children:Y}),s.jsx("span",{className:"text-xs font-bold",children:ie})]},Y)})}):s.jsxs("p",{className:"text-sm text-slate-500 italic",children:["Board not configured — run ",s.jsx("code",{className:"font-mono bg-slate-800 px-1.5 py-0.5 rounded text-indigo-300 text-xs",children:"night-watch board setup"})," to enable."]})})]})]})},Yy=[{id:"executor",label:"Executor",processName:"executor",color:{bg:"bg-blue-500",border:"border-blue-500/60"}},{id:"reviewer",label:"Reviewer",processName:"reviewer",color:{bg:"bg-green-500",border:"border-green-500/60"}},{id:"qa",label:"QA",processName:"qa",color:{bg:"bg-purple-500",border:"border-purple-500/60"}},{id:"audit",label:"Audit",processName:"audit",color:{bg:"bg-orange-500",border:"border-orange-500/60"}},{id:"slicer",label:"Planner",processName:"planner",color:{bg:"bg-yellow-500",border:"border-yellow-500/60"}},{id:"analytics",label:"Analytics",processName:"analytics",color:{bg:"bg-pink-500",border:"border-pink-500/60"}}],DS=()=>{const[l,u]=L.useState(!0),[d,o]=L.useState(""),[g,f]=L.useState("executor"),y=L.useRef(null),{selectedProjectId:w,globalModeLoading:b}=ua(),x=ua(Q=>Q.status),{data:N,loading:S,error:T,refetch:D}=gn(()=>J1(g,500),[g,w],{enabled:!b}),q=(N==null?void 0:N.lines)||[];L.useEffect(()=>{l&&y.current&&(y.current.scrollTop=y.current.scrollHeight)},[q,l]),L.useEffect(()=>{if(!l)return;const Q=window.setInterval(()=>{D()},3e3);return()=>window.clearInterval(Q)},[l,g,D]);const M=q.filter(Q=>Q.toLowerCase().includes(d.toLowerCase())),$=Q=>{f(Q),o("")},X=Q=>{if(!(x!=null&&x.processes))return!1;const F=x.processes.find(J=>J.name===Q);return(F==null?void 0:F.running)??!1};return T?s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(rl,{className:"h-12 w-12 text-red-400"}),s.jsx("div",{className:"text-slate-300",children:"Failed to load logs"}),s.jsx("div",{className:"text-sm text-slate-500",children:T.message}),s.jsx(mt,{onClick:()=>D(),children:"Retry"})]}):s.jsxs("div",{className:"flex flex-col h-[calc(100vh-8rem)]",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4 bg-slate-900 p-2 rounded-lg border border-slate-800 shadow-sm",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsxs("div",{className:"relative group",children:[s.jsx("input",{type:"text",placeholder:"Filter logs...",className:"pl-9 pr-4 py-1.5 rounded-md border border-slate-700 bg-slate-950 text-slate-200 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent w-64 placeholder:text-slate-600",value:d,onChange:Q=>o(Q.target.value)}),s.jsx(Ic,{className:"absolute left-2.5 top-2 h-4 w-4 text-slate-500 group-focus-within:text-indigo-400"})]}),s.jsx("div",{className:"h-6 w-px bg-slate-700 mx-2"}),s.jsx("div",{className:"flex space-x-1",children:Yy.map(({processName:Q,label:F})=>s.jsx("button",{onClick:()=>$(Q),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${g===Q?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{children:F}),X(Q)&&s.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})},Q))})]}),s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsxs(mt,{size:"sm",variant:"ghost",onClick:()=>D(),children:[s.jsx(hg,{className:"h-4 w-4 mr-2"}),"Refresh"]}),s.jsxs(mt,{size:"sm",variant:"ghost",onClick:()=>u(!l),children:[l?s.jsx(Ty,{className:"h-4 w-4 mr-2"}):s.jsx(kr,{className:"h-4 w-4 mr-2"}),l?"Pause":"Resume"]})]})]}),s.jsxs("div",{className:"flex-1 bg-slate-900 rounded-xl overflow-hidden shadow-inner border border-slate-800 flex flex-col relative",children:[s.jsxs("div",{className:"bg-slate-950/50 backdrop-blur text-xs text-slate-500 px-4 py-1.5 flex justify-between border-b border-slate-800",children:[s.jsxs("span",{children:["File: ",g,".log"]}),s.jsxs("span",{children:[M.length," lines"]})]}),s.jsxs("div",{ref:y,className:"flex-1 overflow-y-auto p-4 font-mono text-sm terminal-scroll bg-slate-900",children:[S?s.jsx("div",{className:"flex items-center justify-center h-full text-slate-500",children:"Loading logs..."}):M.length===0?s.jsx("div",{className:"flex items-center justify-center h-full text-slate-500",children:d?"No logs match your filter":"No logs yet — logs will appear after the first run"}):M.map((Q,F)=>{const J=Q.includes("[ERROR]"),ne=Q.includes("[WARN]");return s.jsxs("div",{className:`leading-6 hover:bg-slate-800/50 px-2 rounded -mx-2 ${J?"text-red-400":ne?"text-amber-400":"text-slate-300"}`,children:[s.jsx("span",{className:"text-slate-600 select-none w-10 inline-block text-right mr-4 text-xs opacity-50",children:F+1}),Q]},F)}),l&&s.jsx("div",{className:"h-4"})," "]}),!l&&s.jsxs("div",{className:"absolute bottom-4 right-4 bg-indigo-600 text-white px-3 py-1.5 rounded-full shadow-lg shadow-indigo-900/40 text-xs font-medium flex items-center cursor-pointer hover:bg-indigo-500 transition-colors",onClick:()=>u(!0),children:[s.jsx(hg,{className:"h-4 w-4 mr-2"}),"Scroll to bottom"]})]})]})},RS=()=>{const[l,u]=L.useState(null),[d,o]=L.useState(!1),[g,f]=L.useState("all"),[y,w]=L.useState("number"),[b,x]=L.useState("desc"),{addToast:N,selectedProjectId:S,globalModeLoading:T}=ua(),{data:D,loading:q,error:M,refetch:$}=gn(Dy,[S],{enabled:!T}),X=D??[],Q=C=>{switch(C){case"pass":return s.jsx(uu,{className:"h-4 w-4 text-green-500"});case"fail":return s.jsx(i1,{className:"h-4 w-4 text-red-500"});case"pending":return s.jsx(jy,{className:"h-4 w-4 text-amber-500 animate-spin"});default:return s.jsx(rl,{className:"h-4 w-4 text-slate-500"})}},F=C=>{switch(C){case"pass":return"All CI checks passed";case"fail":return"One or more CI checks failed";case"pending":return"CI checks are still running";default:return"No CI data available"}},J=C=>C===null?"No review decision yet":C===100?"PR has been approved":C===0?"Changes have been requested":`Review score: ${C}`,ne=L.useMemo(()=>X.filter(C=>{switch(g){case"needs-work":return C.ciStatus==="fail"||C.reviewScore===0;case"pending":return C.ciStatus==="pending"||C.ciStatus==="unknown"||C.reviewScore===null;case"passed":return C.ciStatus==="pass"&&C.reviewScore===100;case"all":default:return!0}}),[X,g]),ee=L.useMemo(()=>[...ne].sort((ae,Y)=>{let ie=0;switch(y){case"number":ie=ae.number-Y.number;break;case"title":ie=ae.title.localeCompare(Y.title);break;case"branch":ie=ae.branch.localeCompare(Y.branch);break;case"ciStatus":{const ge={fail:0,pending:1,unknown:2,pass:3};ie=(ge[ae.ciStatus]??2)-(ge[Y.ciStatus]??2);break}case"reviewScore":{const ge=ae.reviewScore??-1,he=Y.reviewScore??-1;ie=ge-he;break}}return b==="asc"?ie:-ie}),[ne,y,b]),P=C=>{y===C?x(b==="asc"?"desc":"asc"):(w(C),x("desc"))},W=C=>y!==C?s.jsx(Lb,{className:"h-3 w-3 text-slate-600"}):b==="asc"?s.jsx(Vb,{className:"h-3 w-3 text-indigo-400"}):s.jsx(zb,{className:"h-3 w-3 text-indigo-400"});if(q)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading PRs..."})});if(M)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(rl,{className:"h-12 w-12 text-red-400"}),s.jsx("div",{className:"text-slate-300",children:"Failed to load PRs"}),s.jsx("div",{className:"text-sm text-slate-500",children:M.message}),s.jsx(mt,{onClick:()=>$(),children:"Retry"})]});const A=async()=>{o(!0);try{const C=await Qf();N({title:"Reviewer Started",message:C.pid?`Started with PID ${C.pid}`:"Reviewer started",type:"success"})}catch(C){N({title:"Reviewer Failed",message:C instanceof Error?C.message:"Failed to start reviewer",type:"error"})}finally{o(!1)}};return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex space-x-1",children:[s.jsx("button",{onClick:()=>f("all"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${g==="all"?"bg-slate-800 text-slate-200 border-slate-700":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"All"}),s.jsx("button",{onClick:()=>f("needs-work"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${g==="needs-work"?"bg-red-900/50 text-red-300 border-red-800":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"Needs Work"}),s.jsx("button",{onClick:()=>f("pending"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${g==="pending"?"bg-amber-900/50 text-amber-300 border-amber-800":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"Pending"}),s.jsx("button",{onClick:()=>f("passed"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${g==="passed"?"bg-green-900/50 text-green-300 border-green-800":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"Passed"})]}),s.jsxs(mt,{size:"sm",onClick:A,disabled:d,children:[s.jsx(Ic,{className:"h-4 w-4 mr-2"}),d?"Starting...":"Run Reviewer Now"]})]}),s.jsx("div",{className:"bg-slate-900 rounded-lg shadow-sm border border-slate-800 overflow-hidden",children:s.jsxs("table",{className:"min-w-full divide-y divide-slate-800",children:[s.jsx("thead",{className:"bg-slate-950/50",children:s.jsxs("tr",{children:[s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider cursor-pointer hover:text-slate-300",onClick:()=>P("number"),children:s.jsxs("div",{className:"flex items-center space-x-1",children:[s.jsx("span",{children:"Title"}),W("number")]})}),s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider cursor-pointer hover:text-slate-300",onClick:()=>P("branch"),children:s.jsxs("div",{className:"flex items-center space-x-1",children:[s.jsx("span",{children:"Branch"}),W("branch")]})}),s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider cursor-pointer hover:text-slate-300",onClick:()=>P("ciStatus"),children:s.jsxs("div",{className:"flex items-center space-x-1",children:[s.jsx("span",{children:"CI Status"}),W("ciStatus")]})}),s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider cursor-pointer hover:text-slate-300",onClick:()=>P("reviewScore"),children:s.jsxs("div",{className:"flex items-center space-x-1",children:[s.jsx("span",{children:"Review Score"}),W("reviewScore")]})}),s.jsx("th",{className:"px-6 py-3 text-right text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Actions"})]})}),s.jsxs("tbody",{className:"divide-y divide-slate-800",children:[ee.map(C=>s.jsxs("tr",{className:"hover:bg-slate-800/50 cursor-pointer transition-colors",onClick:()=>u(l===C.number?null:C.number),children:[s.jsx("td",{className:"px-6 py-4",children:s.jsxs("div",{className:"flex items-center",children:[s.jsxs("span",{className:"text-slate-500 font-mono mr-2",children:["#",C.number]}),s.jsx("span",{className:"font-medium text-slate-200",children:C.title})]})}),s.jsx("td",{className:"px-6 py-4",children:s.jsx("span",{className:"px-2 py-1 bg-slate-800 text-slate-400 border border-slate-700 rounded text-xs font-mono",children:C.branch})}),s.jsx("td",{className:"px-6 py-4",children:s.jsxs("div",{className:"flex items-center space-x-2",title:F(C.ciStatus),children:[Q(C.ciStatus),s.jsx("span",{className:"text-sm capitalize text-slate-400",children:C.ciStatus})]})}),s.jsx("td",{className:"px-6 py-4",children:C.reviewScore!==null?s.jsxs("div",{className:"flex items-center space-x-2",title:J(C.reviewScore),children:[s.jsx("div",{className:"w-24 h-2 bg-slate-800 rounded-full overflow-hidden",children:s.jsx("div",{className:`h-full ${C.reviewScore>=70?"bg-green-500":"bg-red-500"}`,style:{width:`${C.reviewScore}%`}})}),s.jsx("span",{className:`text-sm font-bold ${C.reviewScore>=70?"text-green-500":"text-red-500"}`,children:C.reviewScore})]}):s.jsx("span",{className:"text-slate-600 text-sm",title:"No review decision yet",children:"—"})}),s.jsx("td",{className:"px-6 py-4 text-right",children:s.jsx("a",{href:C.url,target:"_blank",rel:"noopener noreferrer",className:"text-slate-500 hover:text-indigo-400",onClick:ae=>ae.stopPropagation(),children:s.jsx(Ny,{className:"h-4 w-4"})})})]},C.number)),ee.length===0&&s.jsx("tr",{children:s.jsx("td",{colSpan:5,className:"px-6 py-12 text-center text-slate-500",children:X.length===0?"No open PRs found.":`No PRs match the "${g}" filter.`})})]})]})}),l&&s.jsx(Ke,{className:"p-6 bg-slate-900 border-indigo-900/50 animate-in fade-in slide-in-from-top-4 duration-300",children:(()=>{const C=X.find(ae=>ae.number===l);return C?s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"font-bold text-slate-200",children:C.title}),s.jsxs("p",{className:"text-sm text-slate-400 mt-1",children:["Branch: ",s.jsx("span",{className:"font-mono",children:C.branch})]})]}),s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsxs("div",{className:"text-center",title:F(C.ciStatus),children:[s.jsx("div",{className:"text-xs text-slate-500",children:"CI Status"}),s.jsxs("div",{className:"flex items-center space-x-1 mt-1",children:[Q(C.ciStatus),s.jsx("span",{className:"text-sm capitalize text-slate-300",children:C.ciStatus})]})]}),C.reviewScore!==null&&s.jsxs("div",{className:"text-center",title:J(C.reviewScore),children:[s.jsx("div",{className:"text-xs text-slate-500",children:"Review Score"}),s.jsx("div",{className:`text-xl font-bold mt-1 ${C.reviewScore>=70?"text-green-500":"text-red-500"}`,children:C.reviewScore})]})]})]}):null})()})]})},Ma=Ve.forwardRef(({className:l="",label:u,checked:d,onChange:o,...g},f)=>{const y=w=>{o&&o(w.target.checked)};return s.jsxs("label",{className:`inline-flex items-center cursor-pointer ${l}`,children:[s.jsxs("div",{className:"relative",children:[s.jsx("input",{type:"checkbox",className:"sr-only peer",ref:f,checked:d,onChange:y,...g}),s.jsx("div",{className:"w-11 h-6 bg-slate-800 peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-indigo-500/50 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-slate-400 after:border-slate-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-indigo-600 peer-checked:after:bg-white peer-disabled:opacity-50 peer-disabled:cursor-not-allowed"})]}),u&&s.jsx("span",{className:"ml-3 text-sm font-medium text-slate-300 select-none",children:u})]})});Ma.displayName="Switch";const AS=()=>{const{addToast:l,selectedProjectId:u,globalModeLoading:d}=ua(),[o,g]=L.useState(!1),[f,y]=L.useState(!1),{data:w,loading:b,error:x,refetch:N}=gn(uS,[u],{enabled:!d});L.useEffect(()=>{if(!(w!=null&&w.enabled))return;const Q=setInterval(()=>{N()},1e4);return()=>clearInterval(Q)},[w==null?void 0:w.enabled,N]);const S=async Q=>{y(!0);try{await Vy(Q),l({title:Q?"Scanner Enabled":"Scanner Disabled",message:Q?"Roadmap scanner is now active.":"Roadmap scanner has been paused.",type:Q?"success":"info"}),N()}catch(F){l({title:"Toggle Failed",message:F instanceof Error?F.message:"Failed to toggle scanner",type:"error"})}finally{y(!1)}},T=async()=>{g(!0);try{const Q=await cS();Q.created.length>0?l({title:"Scan Complete",message:`Created ${Q.created.length} PRD(s): ${Q.created.join(", ")}`,type:"success"}):l({title:"Scan Complete",message:"No new PRDs to create.",type:"info"}),Q.errors.length>0&&l({title:"Scan Errors",message:Q.errors.join("; "),type:"warning"}),N()}catch(Q){l({title:"Scan Failed",message:Q instanceof Error?Q.message:"Failed to scan roadmap",type:"error"})}finally{g(!1)}};if(b)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading roadmap scanner..."})});if(x)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(rl,{className:"h-12 w-12 text-red-400"}),s.jsx("div",{className:"text-slate-300",children:"Failed to load roadmap data"}),s.jsx("div",{className:"text-sm text-slate-500",children:x.message}),s.jsx(mt,{onClick:()=>N(),children:"Retry"})]});if(!w)return null;if(w.status==="no-roadmap")return s.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[s.jsx("div",{className:"flex items-center justify-between",children:s.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Roadmap Scanner"})}),s.jsx(Ke,{className:"p-12",children:s.jsxs("div",{className:"flex flex-col items-center text-center space-y-4",children:[s.jsx("div",{className:"p-4 bg-slate-800 rounded-full",children:s.jsx(Ey,{className:"h-10 w-10 text-slate-500"})}),s.jsx("h2",{className:"text-xl font-semibold text-slate-200",children:"No ROADMAP.md Found"}),s.jsxs("p",{className:"text-slate-400 max-w-md",children:["Create a ",s.jsx("code",{className:"text-indigo-400 bg-indigo-500/10 px-1.5 py-0.5 rounded text-sm",children:"ROADMAP.md"})," in your project root with checklist items (",s.jsx("code",{className:"text-slate-300 text-sm",children:"- [ ] Feature"}),") or heading-based items (",s.jsx("code",{className:"text-slate-300 text-sm",children:"### Feature"}),") to get started."]})]})})]});const D=w.totalItems>0?Math.round(w.processedItems/w.totalItems*100):0,q=kS(w.status),M=zS(w.items),$=w.lastScan?US(w.lastScan):"Never",X=w.autoScanInterval?Math.round(w.autoScanInterval/60):5;return s.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Roadmap Scanner"}),s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsx(Ma,{label:w.enabled?"Enabled":"Disabled",checked:w.enabled,onChange:S,disabled:f}),s.jsxs(mt,{onClick:T,loading:o,disabled:!w.enabled||w.status==="complete",children:[s.jsx(kr,{className:"h-4 w-4 mr-2"}),"Scan Now"]})]})]}),s.jsx(Ke,{className:`p-6 border-2 ${q.borderColor}`,children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsx(q.icon,{className:`h-8 w-8 ${q.textColor}`}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400",children:"Scanner Status"}),s.jsx("div",{className:`text-2xl font-bold ${q.textColor}`,children:q.label})]})]}),s.jsxs("div",{className:"text-right text-sm text-slate-400 space-y-1",children:[s.jsxs("div",{children:["Last scan: ",s.jsx("span",{className:"text-slate-300",children:$})]}),w.enabled&&w.status!=="complete"&&s.jsxs("div",{children:["Auto-scan: ",s.jsxs("span",{className:"text-slate-300",children:["every ",X," min"]})]}),w.enabled&&w.status==="complete"&&s.jsx("div",{className:"text-emerald-400",children:"Auto-scan paused - all items sliced"})]})]})}),s.jsxs(Ke,{className:"p-6",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("h3",{className:"text-sm font-medium text-slate-300",children:"Progress"}),s.jsxs("span",{className:"text-sm text-slate-400",children:[w.processedItems," / ",w.totalItems," items (",D,"%)"]})]}),s.jsx("div",{className:"w-full h-3 bg-slate-800 rounded-full overflow-hidden",children:s.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${D===100?"bg-gradient-to-r from-emerald-500 to-emerald-400":"bg-gradient-to-r from-indigo-600 to-indigo-400"}`,style:{width:`${D}%`}})})]}),Object.entries(M).map(([Q,F])=>s.jsxs(Ke,{className:"p-6",children:[s.jsx("h3",{className:"text-lg font-semibold text-slate-200 mb-4",children:Q}),s.jsx("div",{className:"space-y-2",children:F.map(J=>s.jsx(_S,{item:J},J.hash))})]},Q))]})};function _S({item:l}){const u=l.checked,d=l.processed;return s.jsxs("div",{className:`flex items-center justify-between p-3 rounded-lg border ${u?"bg-slate-950/30 border-slate-800/50":d?"bg-emerald-500/5 border-emerald-500/10":"bg-slate-950/50 border-slate-800"}`,children:[s.jsxs("div",{className:"flex items-center space-x-3 min-w-0 flex-1",children:[u?s.jsx(M1,{className:"h-4 w-4 text-slate-600 flex-shrink-0"}):d?s.jsx(uu,{className:"h-4 w-4 text-emerald-400 flex-shrink-0"}):s.jsx(Ef,{className:"h-4 w-4 text-slate-500 flex-shrink-0"}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("div",{className:`text-sm font-medium truncate ${u?"line-through text-slate-600":"text-slate-200"}`,children:l.title}),l.description&&s.jsx("div",{className:"text-xs text-slate-500 truncate mt-0.5",children:l.description})]})]}),s.jsx("div",{className:"flex-shrink-0 ml-3",children:u?s.jsx(_r,{variant:"neutral",children:"Skipped"}):d?s.jsx(_r,{variant:"success",children:l.prdFile||"Processed"}):s.jsx(_r,{variant:"warning",children:"Pending"})})]})}function kS(l){switch(l){case"complete":return{label:"Complete",icon:uu,textColor:"text-emerald-400",borderColor:"border-emerald-500/20 bg-emerald-500/5"};case"idle":return{label:"Idle",icon:Fc,textColor:"text-blue-400",borderColor:"border-blue-500/20 bg-blue-500/5"};case"scanning":return{label:"Scanning",icon:kr,textColor:"text-indigo-400",borderColor:"border-indigo-500/20 bg-indigo-500/5"};case"disabled":return{label:"Disabled",icon:rl,textColor:"text-slate-400",borderColor:"border-slate-500/20 bg-slate-500/5"};default:return{label:"No Roadmap",icon:rl,textColor:"text-slate-500",borderColor:"border-slate-500/20"}}}function zS(l){const u={};for(const d of l){const o=d.section||"General";u[o]||(u[o]=[]),u[o].push(d)}return u}function US(l){try{const u=new Date(l),o=new Date().getTime()-u.getTime(),g=Math.floor(o/6e4);if(g<1)return"Just now";if(g<60)return`${g} min ago`;const f=Math.floor(g/60);return f<24?`${f} hr ago`:`${Math.floor(f/24)} day(s) ago`}catch{return"Unknown"}}const $y=({tabs:l,activeTab:u,onChange:d,className:o=""})=>{var b,x;const[g,f]=Ve.useState((b=l[0])==null?void 0:b.id),y=u||g,w=N=>{d?d(N):f(N)};return s.jsxs("div",{className:`flex flex-col ${o}`,children:[s.jsx("div",{className:"border-b border-slate-800 mb-6",children:s.jsx("nav",{className:"-mb-px flex space-x-8 overflow-x-auto scrollbar-hide",children:l.map(N=>s.jsx("button",{onClick:()=>w(N.id),className:`
355
+ whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm transition-all duration-200
356
+ ${y===N.id?"border-indigo-500 text-indigo-400":"border-transparent text-slate-500 hover:text-slate-300 hover:border-slate-700"}
357
+ `,children:N.label},N.id))})}),s.jsx("div",{className:"flex-1 animate-in fade-in slide-in-from-bottom-2 duration-300",children:(x=l.find(N=>N.id===y))==null?void 0:x.content})]})},Zc=[{label:"Balanced (recommended)",value:"5 */2 * * *",description:"Every 2 hours at minute 5"},{label:"Every 6 hours (very safe)",value:"10 */6 * * *",description:"Every 6 hours at minute 10"},{label:"Every 4 hours",value:"10 */4 * * *",description:"Every 4 hours at minute 10"},{label:"Twice daily",value:"20 2,14 * * *",description:"At 02:20 and 14:20 UTC"},{label:"Daily",value:"30 3 * * *",description:"Once per day at 03:30 UTC"},{label:"Weekdays only",value:"30 9 * * 1-5",description:"At 09:30 UTC, Monday to Friday"},{label:"Weekly (Monday)",value:"40 3 * * 1",description:"At 03:40 UTC every Monday"},{label:"Custom",value:"__custom__",description:"Enter your own cron expression"}],Pf=[{id:"night-surge",label:"Night Surge",description:"Dense overnight execution every 2h with daytime reviews.",schedules:{executor:"5 20,22,0,2,4,6 * * *",reviewer:"25 8,14,20 * * *",qa:"45 22,10 * * *",audit:"50 4 * * 1",slicer:"35 19,7 * * *"},hints:{executor:"8pm–6am every 2h (6 runs)",reviewer:"8:25am, 2:25pm, 8:25pm",qa:"10:45pm & 10:45am",audit:"Mon 4:50am",slicer:"7:35pm & 7:35am"}},{id:"always-on",label:"Always On (Recommended)",description:"24/7 with maximum cadence — executor every hour, reviewer every 3h.",schedules:{executor:"5 * * * *",reviewer:"25 */3 * * *",qa:"45 2,10,18 * * *",audit:"50 3 * * 1",slicer:"35 */6 * * *"},hints:{executor:"Every hour at :05",reviewer:"Every 3h at :25",qa:"2:45am, 10:45am & 6:45pm",audit:"Mon 3:50am",slicer:"Every 6h at :35"}},{id:"day-shift",label:"Day Shift",description:"Weekday daytime — hourly executor 8am–8pm, reviews 4x/day.",schedules:{executor:"5 8-20 * * 1-5",reviewer:"25 9,13,17,19 * * 1-5",qa:"45 10,14,18 * * 1-5",audit:"50 9 * * 1",slicer:"35 7 * * 1"},hints:{executor:"Hourly at :05, 8am–8pm weekdays",reviewer:"9:25am, 1:25pm, 5:25pm, 7:25pm",qa:"10:45am, 2:45pm & 6:45pm weekdays",audit:"Mon 9:50am",slicer:"Mon 7:35am"}},{id:"minimal",label:"Minimal",description:"Twice-daily executor and reviewer with weekly heavy jobs.",schedules:{executor:"5 2,14 * * *",reviewer:"25 8,20 * * *",qa:"45 3 * * 0",audit:"50 4 * * 0",slicer:"35 1 * * 1"},hints:{executor:"2:05am & 2:05pm",reviewer:"8:25am & 8:25pm",qa:"Sun 3:45am",audit:"Sun 4:50am",slicer:"Mon 1:35am"}}];function zr(l){return l?l.trim().replace(/\s+/g," "):""}function Rr(l,u){return zr(l)===zr(u)}function HS(l){if(l)return Pf.find(u=>u.id===l)}function Fy(l,u,d,o,g,f){return Rr(l.schedules.executor,u)&&Rr(l.schedules.reviewer,d)&&Rr(l.schedules.qa,o)&&Rr(l.schedules.audit,g)&&Rr(l.schedules.slicer,f)}function LS(l,u,d,o,g){return Pf.find(f=>Fy(f,l,u,d,o,g))}function au(l,u,d,o,g,f){const y=HS(l);return y&&Fy(y,u,d,o,g,f)?y:LS(u,d,o,g,f)}function vg(l){const u=zr(l),d=u.split(/\s+/);if(d.length!==5)return u;const[o,g,f,y,w]=d,b=/^\d+$/.test(o),x=Zc.find(N=>zr(N.value)===u);if(x)return x.label;if(o==="*/30"&&g==="*")return"Every 30 minutes";if(o==="0"&&g==="*")return"Every hour";if(o.startsWith("*/"))return`Every ${parseInt(o.replace("*/",""),10)} minutes`;if(b&&g.startsWith("*/")&&f==="*"&&y==="*"&&w==="*"){const N=parseInt(g.replace("*/",""),10);return o==="0"?`Every ${N} hours`:`Every ${N} hours at :${o.padStart(2,"0")}`}if(o==="0"&&g.startsWith("*/"))return`Every ${parseInt(g.replace("*/",""),10)} hours`;if(o==="0"&&g.includes("-")){const[N,S]=g.split("-");return`Every hour from ${Fi(N)} to ${Fi(S)}`}if(b&&g.includes("-")&&f==="*"&&y==="*"&&w==="*"){const[N,S]=g.split("-");return`Every hour from ${Gi(N,o)} to ${Gi(S,o)}`}if(o==="0"&&g.includes(",")){const N=g.split(",").map(Fi);return N.length<=3?`At ${N.join(" and ")}`:`At ${N.slice(0,-1).join(", ")}, and ${N[N.length-1]}`}if(b&&g.includes(",")&&f==="*"&&y==="*"&&(w==="*"||w==="1-5")){const N=g.split(",").map(T=>Gi(T,o)),S=w==="1-5"?"Weekdays at ":"At ";return N.length<=3?`${S}${N.join(" and ")}`:`${S}${N.slice(0,-1).join(", ")}, and ${N[N.length-1]}`}return o==="0"&&g!=="*"&&f==="*"&&y==="*"&&w==="*"?`Daily at ${Fi(g)}`:b&&g!=="*"&&f==="*"&&y==="*"&&w==="*"?`Daily at ${Gi(g,o)}`:o==="0"&&g!=="*"&&f==="*"&&y==="*"&&w==="1-5"?`Weekdays at ${Fi(g)}`:b&&g!=="*"&&f==="*"&&y==="*"&&w==="1-5"?`Weekdays at ${Gi(g,o)}`:u}function Fi(l){const u=parseInt(l,10);return u===0?"12 AM":u<12?`${u} AM`:u===12?"12 PM":`${u-12} PM`}function Gi(l,u){const d=u.padStart(2,"0"),o=parseInt(l,10);return Number.isNaN(o)?`${l}:${d}`:o===0?`12:${d} AM`:o<12?`${o}:${d} AM`:o===12?`12:${d} PM`:`${o-12}:${d} PM`}function qS(l){const u=zr(l),d=Zc.find(o=>zr(o.value)===u);return(d==null?void 0:d.value)??"__custom__"}function VS(l){const u=new Date,d=l.getTime()-u.getTime(),o=Math.floor(d/6e4),g=Math.floor(o/60),f=Math.floor(g/24);return o<1?"less than a minute":o<60?`in ${o} minute${o>1?"s":""}`:g<24?`in ${g} hour${g>1?"s":""}`:`in ${f} day${f>1?"s":""}`}function BS(l){const u={weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0};return l.toLocaleDateString("en-US",u)}function YS(l){const u=new Date,d=l.getTime()-u.getTime(),o=Math.floor(d/6e4);return o>=0&&o<30}const $e=Ve.forwardRef(({className:l="",label:u,error:d,helperText:o,rightIcon:g,...f},y)=>{const w=Ve.useId(),b=f.id??w,x=d?`${b}-error`:void 0,N=!d&&o?`${b}-help`:void 0,S=[x,N].filter(Boolean).join(" ")||void 0;return s.jsxs("div",{className:"w-full",children:[u&&s.jsx("label",{htmlFor:b,className:"block text-sm font-medium text-slate-400 mb-1.5",children:u}),s.jsxs("div",{className:"relative",children:[s.jsx("input",{ref:y,id:b,"aria-describedby":S,"aria-invalid":d?!0:f["aria-invalid"],className:`
358
+ w-full rounded-lg bg-slate-950 border border-slate-800
359
+ px-3 py-2 text-sm text-slate-200
360
+ placeholder:text-slate-600
361
+ focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500
362
+ disabled:opacity-50 disabled:cursor-not-allowed
363
+ transition-all duration-200
364
+ ${d?"border-red-500/50 focus:ring-red-500/50 focus:border-red-500":""}
365
+ ${g?"pr-10":""}
366
+ ${l}
367
+ `,...f}),g&&s.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none text-slate-500",children:g})]}),d?s.jsx("p",{id:x,className:"mt-1.5 text-xs text-red-400",children:d}):o?s.jsx("p",{id:N,className:"mt-1.5 text-xs text-slate-500",children:o}):null]})});$e.displayName="Input";const da=Ve.forwardRef(({className:l="",label:u,error:d,helperText:o,options:g,value:f,onChange:y,children:w,...b},x)=>{const N=Ve.useId(),S=b.id??N,T=d?`${S}-error`:void 0,D=!d&&o?`${S}-help`:void 0,q=[T,D].filter(Boolean).join(" ")||void 0,M=$=>{y&&y($.target.value)};return s.jsxs("div",{className:"w-full",children:[u&&s.jsx("label",{htmlFor:S,className:"block text-sm font-medium text-slate-400 mb-1.5",children:u}),s.jsxs("div",{className:"relative",children:[s.jsx("select",{ref:x,id:S,"aria-describedby":q,"aria-invalid":d?!0:b["aria-invalid"],className:`
368
+ w-full appearance-none rounded-lg bg-slate-950 border border-slate-800
369
+ px-3 py-2 pr-10 text-sm text-slate-200
370
+ focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500
371
+ disabled:opacity-50 disabled:cursor-not-allowed
372
+ transition-all duration-200
373
+ ${d?"border-red-500/50 focus:ring-red-500/50 focus:border-red-500":""}
374
+ ${l}
375
+ `,value:f,onChange:M,...b,children:g?g.map($=>s.jsx("option",{value:$.value,children:$.label},$.value)):w}),s.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-slate-500",children:s.jsx(wy,{className:"h-4 w-4"})})]}),d?s.jsx("p",{id:T,className:"mt-1.5 text-xs text-red-400",children:d}):o?s.jsx("p",{id:D,className:"mt-1.5 text-xs text-slate-500",children:o}):null]})});da.displayName="Select";const On=({label:l,value:u,onChange:d,helperText:o,placeholder:g="5 */3 * * *"})=>{const f=qS(u),y=f==="__custom__",w=N=>{N!=="__custom__"&&d(N)},b=N=>{d(N.target.value)},x=Zc.find(N=>N.value===f);return s.jsxs("div",{className:"space-y-3",children:[s.jsx(da,{label:l,value:f,onChange:w,options:Zc.map(N=>({label:N.label,value:N.value})),helperText:y?void 0:(x==null?void 0:x.description)||o}),y&&s.jsxs("div",{className:"space-y-2 mt-2",children:[s.jsx($e,{label:"Cron Expression",value:u,onChange:b,placeholder:g}),s.jsxs("div",{className:"text-xs text-slate-500 bg-slate-900/40 p-3 rounded-md border border-slate-800/60",children:[s.jsx("strong",{className:"text-slate-400",children:"Format:"})," minute hour day month weekday",s.jsx("br",{}),s.jsx("strong",{className:"text-slate-400",children:"Examples:"})," ",s.jsx("code",{className:"bg-slate-950 px-1 py-0.5 rounded text-indigo-300",children:"0 * * * *"})," (hourly),"," ",s.jsx("code",{className:"bg-slate-950 px-1 py-0.5 rounded text-indigo-300",children:"0 0 * * *"})," (daily at midnight)"]})]})]})};var Ds={},Ua={},Zi={},Rs={},yf={},bg;function $S(){return bg||(bg=1,Object.defineProperty(yf,"__esModule",{value:!0})),yf}var Qi={},Pi={},Sg;function Hs(){var u,d,o,g,f,Gy,w;if(Sg)return Pi;Sg=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.CronField=void 0;let l=(w=class{constructor(x,N={rawValue:""}){st(this,f);st(this,u,!1);st(this,d,!1);st(this,o,!1);st(this,g,[]);Q0(this,"options",{rawValue:""});if(!Array.isArray(x))throw new Error(`${this.constructor.name} Validation error, values is not an array`);if(!(x.length>0))throw new Error(`${this.constructor.name} Validation error, values contains no values`);this.options={...N,rawValue:N.rawValue??""},Ee(this,g,x.sort(w.sorter)),Ee(this,o,this.options.wildcard!==void 0?this.options.wildcard:Ne(this,f,Gy).call(this)),Ee(this,u,this.options.rawValue.includes("L")||x.includes("L")),Ee(this,d,this.options.rawValue.includes("?")||x.includes("?"))}static get min(){throw new Error("min must be overridden")}static get max(){throw new Error("max must be overridden")}static get chars(){return Object.freeze([])}static get validChars(){return/^[?,*\dH/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}static get constraints(){return{min:this.min,max:this.max,chars:this.chars,validChars:this.validChars}}get min(){return this.constructor.min}get max(){return this.constructor.max}get chars(){return this.constructor.chars}get hasLastChar(){return K(this,u)}get hasQuestionMarkChar(){return K(this,d)}get isWildcard(){return K(this,o)}get values(){return K(this,g)}static sorter(x,N){const S=typeof x=="number",T=typeof N=="number";return S&&T?x-N:!S&&!T?x.localeCompare(N):S?-1:1}static findNearestValueInList(x,N,S=!1){if(S){for(let T=x.length-1;T>=0;T--)if(x[T]<N)return x[T];return null}for(let T=0;T<x.length;T++)if(x[T]>N)return x[T];return null}findNearestValue(x,N=!1){return this.constructor.findNearestValueInList(this.values,x,N)}serialize(){return{wildcard:K(this,o),values:K(this,g)}}validate(){let x;const N=this.chars.length>0?` or chars ${this.chars.join("")}`:"",S=M=>$=>new RegExp(`^\\d{0,2}${$}$`).test(M),T=M=>(x=M,typeof M=="number"?M>=this.min&&M<=this.max:this.chars.some(S(M)));if(!K(this,g).every(T))throw new Error(`${this.constructor.name} Validation error, got value ${x} expected range ${this.min}-${this.max}${N}`);const q=K(this,g).find((M,$)=>K(this,g).indexOf(M)!==$);if(q)throw new Error(`${this.constructor.name} Validation error, duplicate values found: ${q}`)}},u=new WeakMap,d=new WeakMap,o=new WeakMap,g=new WeakMap,f=new WeakSet,Gy=function(){return this.options.rawValue.length>0?["*","?"].includes(this.options.rawValue):Array.from({length:this.max-this.min+1},(x,N)=>N+this.min).every(x=>K(this,g).includes(x))},w);return Pi.CronField=l,Pi}var wg;function FS(){if(wg)return Qi;wg=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.CronDayOfMonth=void 0;const l=Hs(),u=1,d=31,o=Object.freeze(["L"]);let g=class extends l.CronField{static get min(){return u}static get max(){return d}static get chars(){return o}static get validChars(){return/^[?,*\dLH/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}constructor(y,w){super(y,w),this.validate()}get values(){return super.values}};return Qi.CronDayOfMonth=g,Qi}var Wi={},Ng;function GS(){if(Ng)return Wi;Ng=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.CronDayOfWeek=void 0;const l=Hs(),u=0,d=7,o=Object.freeze(["L"]);let g=class extends l.CronField{static get min(){return u}static get max(){return d}static get chars(){return o}static get validChars(){return/^[?,*\dLH#/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}constructor(y,w){super(y,w),this.validate()}get values(){return super.values}get nthDay(){return this.options.nthDayOfWeek??0}};return Wi.CronDayOfWeek=g,Wi}var Ii={},jg;function ZS(){if(jg)return Ii;jg=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.CronHour=void 0;const l=Hs(),u=0,d=23,o=Object.freeze([]);let g=class extends l.CronField{static get min(){return u}static get max(){return d}static get chars(){return o}constructor(y,w){super(y,w),this.validate()}get values(){return super.values}};return Ii.CronHour=g,Ii}var Xi={},Eg;function QS(){if(Eg)return Xi;Eg=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.CronMinute=void 0;const l=Hs(),u=0,d=59,o=Object.freeze([]);let g=class extends l.CronField{static get min(){return u}static get max(){return d}static get chars(){return o}constructor(y,w){super(y,w),this.validate()}get values(){return super.values}};return Xi.CronMinute=g,Xi}var Ji={},xf={},Ta={},Tg;function PS(){if(Tg)return Ta;Tg=1,Object.defineProperty(Ta,"__esModule",{value:!0});class l extends Error{}class u extends l{constructor(r){super(`Invalid DateTime: ${r.toMessage()}`)}}class d extends l{constructor(r){super(`Invalid Interval: ${r.toMessage()}`)}}class o extends l{constructor(r){super(`Invalid Duration: ${r.toMessage()}`)}}class g extends l{}class f extends l{constructor(r){super(`Invalid unit ${r}`)}}class y extends l{}class w extends l{constructor(){super("Zone is an abstract class")}}const b="numeric",x="short",N="long",S={year:b,month:b,day:b},T={year:b,month:x,day:b},D={year:b,month:x,day:b,weekday:x},q={year:b,month:N,day:b},M={year:b,month:N,day:b,weekday:N},$={hour:b,minute:b},X={hour:b,minute:b,second:b},Q={hour:b,minute:b,second:b,timeZoneName:x},F={hour:b,minute:b,second:b,timeZoneName:N},J={hour:b,minute:b,hourCycle:"h23"},ne={hour:b,minute:b,second:b,hourCycle:"h23"},ee={hour:b,minute:b,second:b,hourCycle:"h23",timeZoneName:x},P={hour:b,minute:b,second:b,hourCycle:"h23",timeZoneName:N},W={year:b,month:b,day:b,hour:b,minute:b},A={year:b,month:b,day:b,hour:b,minute:b,second:b},C={year:b,month:x,day:b,hour:b,minute:b},ae={year:b,month:x,day:b,hour:b,minute:b,second:b},Y={year:b,month:x,day:b,weekday:x,hour:b,minute:b},ie={year:b,month:N,day:b,hour:b,minute:b,timeZoneName:x},ge={year:b,month:N,day:b,hour:b,minute:b,second:b,timeZoneName:x},he={year:b,month:N,day:b,weekday:N,hour:b,minute:b,timeZoneName:N},V={year:b,month:N,day:b,weekday:N,hour:b,minute:b,second:b,timeZoneName:N};class re{get type(){throw new w}get name(){throw new w}get ianaName(){return this.name}get isUniversal(){throw new w}offsetName(r,h){throw new w}formatOffset(r,h){throw new w}offset(r){throw new w}equals(r){throw new w}get isValid(){throw new w}}let ye=null;class Te extends re{static get instance(){return ye===null&&(ye=new Te),ye}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(r,{format:h,locale:v}){return zn(r,h,v)}formatOffset(r,h){return es(this.offset(r),h)}offset(r){return-new Date(r).getTimezoneOffset()}equals(r){return r.type==="system"}get isValid(){return!0}}const pe=new Map;function k(m){let r=pe.get(m);return r===void 0&&(r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:m,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),pe.set(m,r)),r}const le={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function me(m,r){const h=m.format(r).replace(/\u200E/g,""),v=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(h),[,j,O,_,z,H,de,ve]=v;return[_,j,O,z,H,de,ve]}function xe(m,r){const h=m.formatToParts(r),v=[];for(let j=0;j<h.length;j++){const{type:O,value:_}=h[j],z=le[O];O==="era"?v[z]=_:De(z)||(v[z]=parseInt(_,10))}return v}const Re=new Map;class Me extends re{static create(r){let h=Re.get(r);return h===void 0&&Re.set(r,h=new Me(r)),h}static resetCache(){Re.clear(),pe.clear()}static isValidSpecifier(r){return this.isValidZone(r)}static isValidZone(r){if(!r)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:r}).format(),!0}catch{return!1}}constructor(r){super(),this.zoneName=r,this.valid=Me.isValidZone(r)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(r,{format:h,locale:v}){return zn(r,h,v,this.name)}formatOffset(r,h){return es(this.offset(r),h)}offset(r){if(!this.valid)return NaN;const h=new Date(r);if(isNaN(h))return NaN;const v=k(this.name);let[j,O,_,z,H,de,ve]=v.formatToParts?xe(v,h):me(v,h);z==="BC"&&(j=-Math.abs(j)+1);const Pe=Wt({year:j,month:O,day:_,hour:H===24?0:H,minute:de,second:ve,millisecond:0});let Ae=+h;const Mt=Ae%1e3;return Ae-=Mt>=0?Mt:1e3+Mt,(Pe-Ae)/(60*1e3)}equals(r){return r.type==="iana"&&r.name===this.name}get isValid(){return this.valid}}let ke={};function jt(m,r={}){const h=JSON.stringify([m,r]);let v=ke[h];return v||(v=new Intl.ListFormat(m,r),ke[h]=v),v}const et=new Map;function ta(m,r={}){const h=JSON.stringify([m,r]);let v=et.get(h);return v===void 0&&(v=new Intl.DateTimeFormat(m,r),et.set(h,v)),v}const Ca=new Map;function yn(m,r={}){const h=JSON.stringify([m,r]);let v=Ca.get(h);return v===void 0&&(v=new Intl.NumberFormat(m,r),Ca.set(h,v)),v}const Ja=new Map;function fa(m,r={}){const{base:h,...v}=r,j=JSON.stringify([m,v]);let O=Ja.get(j);return O===void 0&&(O=new Intl.RelativeTimeFormat(m,r),Ja.set(j,O)),O}let ha=null;function xn(){return ha||(ha=new Intl.DateTimeFormat().resolvedOptions().locale,ha)}const fe=new Map;function Se(m){let r=fe.get(m);return r===void 0&&(r=new Intl.DateTimeFormat(m).resolvedOptions(),fe.set(m,r)),r}const He=new Map;function Ze(m){let r=He.get(m);if(!r){const h=new Intl.Locale(m);r="getWeekInfo"in h?h.getWeekInfo():h.weekInfo,"minimalDays"in r||(r={...Xe,...r}),He.set(m,r)}return r}function xt(m){const r=m.indexOf("-x-");r!==-1&&(m=m.substring(0,r));const h=m.indexOf("-u-");if(h===-1)return[m];{let v,j;try{v=ta(m).resolvedOptions(),j=m}catch{const H=m.substring(0,h);v=ta(H).resolvedOptions(),j=H}const{numberingSystem:O,calendar:_}=v;return[j,O,_]}}function Ka(m,r,h){return(h||r)&&(m.includes("-u-")||(m+="-u"),h&&(m+=`-ca-${h}`),r&&(m+=`-nu-${r}`)),m}function Rn(m){const r=[];for(let h=1;h<=12;h++){const v=je.utc(2009,h,1);r.push(m(v))}return r}function ot(m){const r=[];for(let h=1;h<=7;h++){const v=je.utc(2016,11,13+h);r.push(m(v))}return r}function aa(m,r,h,v){const j=m.listingMode();return j==="error"?null:j==="en"?h(r):v(r)}function en(m){return m.numberingSystem&&m.numberingSystem!=="latn"?!1:m.numberingSystem==="latn"||!m.locale||m.locale.startsWith("en")||Se(m.locale).numberingSystem==="latn"}class pn{constructor(r,h,v){this.padTo=v.padTo||0,this.floor=v.floor||!1;const{padTo:j,floor:O,..._}=v;if(!h||Object.keys(_).length>0){const z={useGrouping:!1,...v};v.padTo>0&&(z.minimumIntegerDigits=v.padTo),this.inf=yn(r,z)}}format(r){if(this.inf){const h=this.floor?Math.floor(r):r;return this.inf.format(h)}else{const h=this.floor?Math.floor(r):Xl(r,3);return rt(h,this.padTo)}}}class oe{constructor(r,h,v){this.opts=v,this.originalZone=void 0;let j;if(this.opts.timeZone)this.dt=r;else if(r.zone.type==="fixed"){const _=-1*(r.offset/60),z=_>=0?`Etc/GMT+${_}`:`Etc/GMT${_}`;r.offset!==0&&Me.create(z).valid?(j=z,this.dt=r):(j="UTC",this.dt=r.offset===0?r:r.setZone("UTC").plus({minutes:r.offset}),this.originalZone=r.zone)}else r.zone.type==="system"?this.dt=r:r.zone.type==="iana"?(this.dt=r,j=r.zone.name):(j="UTC",this.dt=r.setZone("UTC").plus({minutes:r.offset}),this.originalZone=r.zone);const O={...this.opts};O.timeZone=O.timeZone||j,this.dtf=ta(h,O)}format(){return this.originalZone?this.formatToParts().map(({value:r})=>r).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const r=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?r.map(h=>{if(h.type==="timeZoneName"){const v=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...h,value:v}}else return h}):r}resolvedOptions(){return this.dtf.resolvedOptions()}}class Oe{constructor(r,h,v){this.opts={style:"long",...v},!h&&$r()&&(this.rtf=fa(r,v))}format(r,h){return this.rtf?this.rtf.format(r,h):wn(h,r,this.opts.numeric,this.opts.style!=="long")}formatToParts(r,h){return this.rtf?this.rtf.formatToParts(r,h):[]}}const Xe={firstDay:1,minimalDays:4,weekend:[6,7]};class ze{static fromOpts(r){return ze.create(r.locale,r.numberingSystem,r.outputCalendar,r.weekSettings,r.defaultToEN)}static create(r,h,v,j,O=!1){const _=r||pt.defaultLocale,z=_||(O?"en-US":xn()),H=h||pt.defaultNumberingSystem,de=v||pt.defaultOutputCalendar,ve=Fr(j)||pt.defaultWeekSettings;return new ze(z,H,de,ve,_)}static resetCache(){ha=null,et.clear(),Ca.clear(),Ja.clear(),fe.clear(),He.clear()}static fromObject({locale:r,numberingSystem:h,outputCalendar:v,weekSettings:j}={}){return ze.create(r,h,v,j)}constructor(r,h,v,j,O){const[_,z,H]=xt(r);this.locale=_,this.numberingSystem=h||z||null,this.outputCalendar=v||H||null,this.weekSettings=j,this.intl=Ka(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=O,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=en(this)),this.fastNumbersCached}listingMode(){const r=this.isEnglish(),h=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return r&&h?"en":"intl"}clone(r){return!r||Object.getOwnPropertyNames(r).length===0?this:ze.create(r.locale||this.specifiedLocale,r.numberingSystem||this.numberingSystem,r.outputCalendar||this.outputCalendar,Fr(r.weekSettings)||this.weekSettings,r.defaultToEN||!1)}redefaultToEN(r={}){return this.clone({...r,defaultToEN:!0})}redefaultToSystem(r={}){return this.clone({...r,defaultToEN:!1})}months(r,h=!1){return aa(this,r,pu,()=>{const v=this.intl==="ja"||this.intl.startsWith("ja-");h&=!v;const j=h?{month:r,day:"numeric"}:{month:r},O=h?"format":"standalone";if(!this.monthsCache[O][r]){const _=v?z=>this.dtFormatter(z,j).format():z=>this.extract(z,j,"month");this.monthsCache[O][r]=Rn(_)}return this.monthsCache[O][r]})}weekdays(r,h=!1){return aa(this,r,Ps,()=>{const v=h?{weekday:r,year:"numeric",month:"long",day:"numeric"}:{weekday:r},j=h?"format":"standalone";return this.weekdaysCache[j][r]||(this.weekdaysCache[j][r]=ot(O=>this.extract(O,v,"weekday"))),this.weekdaysCache[j][r]})}meridiems(){return aa(this,void 0,()=>Un,()=>{if(!this.meridiemCache){const r={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[je.utc(2016,11,13,9),je.utc(2016,11,13,19)].map(h=>this.extract(h,r,"dayperiod"))}return this.meridiemCache})}eras(r){return aa(this,r,Wr,()=>{const h={era:r};return this.eraCache[r]||(this.eraCache[r]=[je.utc(-40,1,1),je.utc(2017,1,1)].map(v=>this.extract(v,h,"era"))),this.eraCache[r]})}extract(r,h,v){const j=this.dtFormatter(r,h),O=j.formatToParts(),_=O.find(z=>z.type.toLowerCase()===v);return _?_.value:null}numberFormatter(r={}){return new pn(this.intl,r.forceSimple||this.fastNumbers,r)}dtFormatter(r,h={}){return new oe(r,this.intl,h)}relFormatter(r={}){return new Oe(this.intl,this.isEnglish(),r)}listFormatter(r={}){return jt(this.intl,r)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||Se(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:bn()?Ze(this.locale):Xe}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(r){return this.locale===r.locale&&this.numberingSystem===r.numberingSystem&&this.outputCalendar===r.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let ma=null;class nt extends re{static get utcInstance(){return ma===null&&(ma=new nt(0)),ma}static instance(r){return r===0?nt.utcInstance:new nt(r)}static parseSpecifier(r){if(r){const h=r.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(h)return new nt(Kl(h[1],h[2]))}return null}constructor(r){super(),this.fixed=r}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${es(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${es(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(r,h){return es(this.fixed,h)}get isUniversal(){return!0}offset(){return this.fixed}equals(r){return r.type==="fixed"&&r.fixed===this.fixed}get isValid(){return!0}}class vt extends re{constructor(r){super(),this.zoneName=r}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function bt(m,r){if(De(m)||m===null)return r;if(m instanceof re)return m;if(Ht(m)){const h=m.toLowerCase();return h==="default"?r:h==="local"||h==="system"?Te.instance:h==="utc"||h==="gmt"?nt.utcInstance:nt.parseSpecifier(h)||Me.create(m)}else return ya(m)?nt.instance(m):typeof m=="object"&&"offset"in m&&typeof m.offset=="function"?m:new vt(m)}const Ut={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Ls={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Kc=Ut.hanidec.replace(/[\[|\]]/g,"").split("");function eo(m){let r=parseInt(m,10);if(isNaN(r)){r="";for(let h=0;h<m.length;h++){const v=m.charCodeAt(h);if(m[h].search(Ut.hanidec)!==-1)r+=Kc.indexOf(m[h]);else for(const j in Ls){const[O,_]=Ls[j];v>=O&&v<=_&&(r+=v-O)}}return parseInt(r,10)}else return r}const il=new Map;function qs(){il.clear()}function na({numberingSystem:m},r=""){const h=m||"latn";let v=il.get(h);v===void 0&&(v=new Map,il.set(h,v));let j=v.get(r);return j===void 0&&(j=new RegExp(`${Ut[h]}${r}`),v.set(r,j)),j}let vn=()=>Date.now(),Pl="system",ul=null,cu=null,Vr=null,Vs=60,cl,ou=null;class pt{static get now(){return vn}static set now(r){vn=r}static set defaultZone(r){Pl=r}static get defaultZone(){return bt(Pl,Te.instance)}static get defaultLocale(){return ul}static set defaultLocale(r){ul=r}static get defaultNumberingSystem(){return cu}static set defaultNumberingSystem(r){cu=r}static get defaultOutputCalendar(){return Vr}static set defaultOutputCalendar(r){Vr=r}static get defaultWeekSettings(){return ou}static set defaultWeekSettings(r){ou=Fr(r)}static get twoDigitCutoffYear(){return Vs}static set twoDigitCutoffYear(r){Vs=r%100}static get throwOnInvalid(){return cl}static set throwOnInvalid(r){cl=r}static resetCaches(){ze.resetCache(),Me.resetCache(),je.resetCache(),qs()}}class ga{constructor(r,h){this.reason=r,this.explanation=h}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Br=[0,31,59,90,120,151,181,212,243,273,304,334],Bs=[0,31,60,91,121,152,182,213,244,274,305,335];function la(m,r){return new ga("unit out of range",`you specified ${r} (of type ${typeof r}) as a ${m}, which is invalid`)}function Ys(m,r,h){const v=new Date(Date.UTC(m,r-1,h));m<100&&m>=0&&v.setUTCFullYear(v.getUTCFullYear()-1900);const j=v.getUTCDay();return j===0?7:j}function Yr(m,r,h){return h+(dl(m)?Bs:Br)[r-1]}function tn(m,r){const h=dl(m)?Bs:Br,v=h.findIndex(O=>O<r),j=r-h[v];return{month:v+1,day:j}}function Dt(m,r){return(m-r+7)%7+1}function Yt(m,r=4,h=1){const{year:v,month:j,day:O}=m,_=Yr(v,j,O),z=Dt(Ys(v,j,O),h);let H=Math.floor((_-z+14-r)/7),de;return H<1?(de=v-1,H=fl(de,r,h)):H>fl(v,r,h)?(de=v+1,H=1):de=v,{weekYear:de,weekNumber:H,weekday:z,...ts(m)}}function An(m,r=4,h=1){const{weekYear:v,weekNumber:j,weekday:O}=m,_=Dt(Ys(v,1,r),h),z=nn(v);let H=j*7+O-_-7+r,de;H<1?(de=v-1,H+=nn(de)):H>z?(de=v+1,H-=nn(v)):de=v;const{month:ve,day:Le}=tn(de,H);return{year:de,month:ve,day:Le,...ts(m)}}function Wl(m){const{year:r,month:h,day:v}=m,j=Yr(r,h,v);return{year:r,ordinal:j,...ts(m)}}function du(m){const{year:r,ordinal:h}=m,{month:v,day:j}=tn(r,h);return{year:r,month:v,day:j,...ts(m)}}function fu(m,r){if(!De(m.localWeekday)||!De(m.localWeekNumber)||!De(m.localWeekYear)){if(!De(m.weekday)||!De(m.weekNumber)||!De(m.weekYear))throw new g("Cannot mix locale-based week fields with ISO-based week fields");return De(m.localWeekday)||(m.weekday=m.localWeekday),De(m.localWeekNumber)||(m.weekNumber=m.localWeekNumber),De(m.localWeekYear)||(m.weekYear=m.localWeekYear),delete m.localWeekday,delete m.localWeekNumber,delete m.localWeekYear,{minDaysInFirstWeek:r.getMinDaysInFirstWeek(),startOfWeek:r.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function hu(m,r=4,h=1){const v=an(m.weekYear),j=Pt(m.weekNumber,1,fl(m.weekYear,r,h)),O=Pt(m.weekday,1,7);return v?j?O?!1:la("weekday",m.weekday):la("week",m.weekNumber):la("weekYear",m.weekYear)}function Il(m){const r=an(m.year),h=Pt(m.ordinal,1,nn(m.year));return r?h?!1:la("ordinal",m.ordinal):la("year",m.year)}function $s(m){const r=an(m.year),h=Pt(m.month,1,12),v=Pt(m.day,1,Gs(m.year,m.month));return r?h?v?!1:la("day",m.day):la("month",m.month):la("year",m.year)}function _n(m){const{hour:r,minute:h,second:v,millisecond:j}=m,O=Pt(r,0,23)||r===24&&h===0&&v===0&&j===0,_=Pt(h,0,59),z=Pt(v,0,59),H=Pt(j,0,999);return O?_?z?H?!1:la("millisecond",j):la("second",v):la("minute",h):la("hour",r)}function De(m){return typeof m>"u"}function ya(m){return typeof m=="number"}function an(m){return typeof m=="number"&&m%1===0}function Ht(m){return typeof m=="string"}function mu(m){return Object.prototype.toString.call(m)==="[object Date]"}function $r(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function bn(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function ol(m){return Array.isArray(m)?m:[m]}function gu(m,r,h){if(m.length!==0)return m.reduce((v,j)=>{const O=[r(j),j];return v&&h(v[0],O[0])===v[0]?v:O},null)[1]}function yu(m,r){return r.reduce((h,v)=>(h[v]=m[v],h),{})}function kn(m,r){return Object.prototype.hasOwnProperty.call(m,r)}function Fr(m){if(m==null)return null;if(typeof m!="object")throw new y("Week settings must be an object");if(!Pt(m.firstDay,1,7)||!Pt(m.minimalDays,1,7)||!Array.isArray(m.weekend)||m.weekend.some(r=>!Pt(r,1,7)))throw new y("Invalid week settings");return{firstDay:m.firstDay,minimalDays:m.minimalDays,weekend:Array.from(m.weekend)}}function Pt(m,r,h){return an(m)&&m>=r&&m<=h}function Fs(m,r){return m-r*Math.floor(m/r)}function rt(m,r=2){const h=m<0;let v;return h?v="-"+(""+-m).padStart(r,"0"):v=(""+m).padStart(r,"0"),v}function Rt(m){if(!(De(m)||m===null||m===""))return parseInt(m,10)}function Sn(m){if(!(De(m)||m===null||m===""))return parseFloat(m)}function Gr(m){if(!(De(m)||m===null||m==="")){const r=parseFloat("0."+m)*1e3;return Math.floor(r)}}function Xl(m,r,h="round"){const v=10**r;switch(h){case"expand":return m>0?Math.ceil(m*v)/v:Math.floor(m*v)/v;case"trunc":return Math.trunc(m*v)/v;case"round":return Math.round(m*v)/v;case"floor":return Math.floor(m*v)/v;case"ceil":return Math.ceil(m*v)/v;default:throw new RangeError(`Value rounding ${h} is out of range`)}}function dl(m){return m%4===0&&(m%100!==0||m%400===0)}function nn(m){return dl(m)?366:365}function Gs(m,r){const h=Fs(r-1,12)+1,v=m+(r-h)/12;return h===2?dl(v)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][h-1]}function Wt(m){let r=Date.UTC(m.year,m.month-1,m.day,m.hour,m.minute,m.second,m.millisecond);return m.year<100&&m.year>=0&&(r=new Date(r),r.setUTCFullYear(m.year,m.month-1,m.day)),+r}function Zs(m,r,h){return-Dt(Ys(m,1,r),h)+r-1}function fl(m,r=4,h=1){const v=Zs(m,r,h),j=Zs(m+1,r,h);return(nn(m)-v+j)/7}function Jl(m){return m>99?m:m>pt.twoDigitCutoffYear?1900+m:2e3+m}function zn(m,r,h,v=null){const j=new Date(m),O={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};v&&(O.timeZone=v);const _={timeZoneName:r,...O},z=new Intl.DateTimeFormat(h,_).formatToParts(j).find(H=>H.type.toLowerCase()==="timezonename");return z?z.value:null}function Kl(m,r){let h=parseInt(m,10);Number.isNaN(h)&&(h=0);const v=parseInt(r,10)||0,j=h<0||Object.is(h,-0)?-v:v;return h*60+j}function Zr(m){const r=Number(m);if(typeof m=="boolean"||m===""||!Number.isFinite(r))throw new y(`Invalid unit value ${m}`);return r}function ln(m,r){const h={};for(const v in m)if(kn(m,v)){const j=m[v];if(j==null)continue;h[r(v)]=Zr(j)}return h}function es(m,r){const h=Math.trunc(Math.abs(m/60)),v=Math.trunc(Math.abs(m%60)),j=m>=0?"+":"-";switch(r){case"short":return`${j}${rt(h,2)}:${rt(v,2)}`;case"narrow":return`${j}${h}${v>0?`:${v}`:""}`;case"techie":return`${j}${rt(h,2)}${rt(v,2)}`;default:throw new RangeError(`Value format ${r} is out of range for property format`)}}function ts(m){return yu(m,["hour","minute","second","millisecond"])}const xu=["January","February","March","April","May","June","July","August","September","October","November","December"],Qs=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],to=["J","F","M","A","M","J","J","A","S","O","N","D"];function pu(m){switch(m){case"narrow":return[...to];case"short":return[...Qs];case"long":return[...xu];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const as=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],qa=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Qr=["M","T","W","T","F","S","S"];function Ps(m){switch(m){case"narrow":return[...Qr];case"short":return[...qa];case"long":return[...as];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Un=["AM","PM"],hl=["Before Christ","Anno Domini"],vu=["BC","AD"],Pr=["B","A"];function Wr(m){switch(m){case"narrow":return[...Pr];case"short":return[...vu];case"long":return[...hl];default:return null}}function ns(m){return Un[m.hour<12?0:1]}function sn(m,r){return Ps(r)[m.weekday-1]}function Ir(m,r){return pu(r)[m.month-1]}function ls(m,r){return Wr(r)[m.year<0?0:1]}function wn(m,r,h="always",v=!1){const j={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},O=["hours","minutes","seconds"].indexOf(m)===-1;if(h==="auto"&&O){const Le=m==="days";switch(r){case 1:return Le?"tomorrow":`next ${j[m][0]}`;case-1:return Le?"yesterday":`last ${j[m][0]}`;case 0:return Le?"today":`this ${j[m][0]}`}}const _=Object.is(r,-0)||r<0,z=Math.abs(r),H=z===1,de=j[m],ve=v?H?de[1]:de[2]||de[1]:H?j[m][0]:m;return _?`${z} ${ve} ago`:`in ${z} ${ve}`}function Ws(m,r){let h="";for(const v of m)v.literal?h+=v.val:h+=r(v.val);return h}const Is={D:S,DD:T,DDD:q,DDDD:M,t:$,tt:X,ttt:Q,tttt:F,T:J,TT:ne,TTT:ee,TTTT:P,f:W,ff:C,fff:ie,ffff:he,F:A,FF:ae,FFF:ge,FFFF:V};class $t{static create(r,h={}){return new $t(r,h)}static parseFormat(r){let h=null,v="",j=!1;const O=[];for(let _=0;_<r.length;_++){const z=r.charAt(_);z==="'"?((v.length>0||j)&&O.push({literal:j||/^\s+$/.test(v),val:v===""?"'":v}),h=null,v="",j=!j):j||z===h?v+=z:(v.length>0&&O.push({literal:/^\s+$/.test(v),val:v}),v=z,h=z)}return v.length>0&&O.push({literal:j||/^\s+$/.test(v),val:v}),O}static macroTokenToFormatOpts(r){return Is[r]}constructor(r,h){this.opts=h,this.loc=r,this.systemLoc=null}formatWithSystemDefault(r,h){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(r,{...this.opts,...h}).format()}dtFormatter(r,h={}){return this.loc.dtFormatter(r,{...this.opts,...h})}formatDateTime(r,h){return this.dtFormatter(r,h).format()}formatDateTimeParts(r,h){return this.dtFormatter(r,h).formatToParts()}formatInterval(r,h){return this.dtFormatter(r.start,h).dtf.formatRange(r.start.toJSDate(),r.end.toJSDate())}resolvedOptions(r,h){return this.dtFormatter(r,h).resolvedOptions()}num(r,h=0,v=void 0){if(this.opts.forceSimple)return rt(r,h);const j={...this.opts};return h>0&&(j.padTo=h),v&&(j.signDisplay=v),this.loc.numberFormatter(j).format(r)}formatDateTimeFromString(r,h){const v=this.loc.listingMode()==="en",j=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",O=(Ae,Mt)=>this.loc.extract(r,Ae,Mt),_=Ae=>r.isOffsetFixed&&r.offset===0&&Ae.allowZ?"Z":r.isValid?r.zone.formatOffset(r.ts,Ae.format):"",z=()=>v?ns(r):O({hour:"numeric",hourCycle:"h12"},"dayperiod"),H=(Ae,Mt)=>v?Ir(r,Ae):O(Mt?{month:Ae}:{month:Ae,day:"numeric"},"month"),de=(Ae,Mt)=>v?sn(r,Ae):O(Mt?{weekday:Ae}:{weekday:Ae,month:"long",day:"numeric"},"weekday"),ve=Ae=>{const Mt=$t.macroTokenToFormatOpts(Ae);return Mt?this.formatWithSystemDefault(r,Mt):Ae},Le=Ae=>v?ls(r,Ae):O({era:Ae},"era"),Pe=Ae=>{switch(Ae){case"S":return this.num(r.millisecond);case"u":case"SSS":return this.num(r.millisecond,3);case"s":return this.num(r.second);case"ss":return this.num(r.second,2);case"uu":return this.num(Math.floor(r.millisecond/10),2);case"uuu":return this.num(Math.floor(r.millisecond/100));case"m":return this.num(r.minute);case"mm":return this.num(r.minute,2);case"h":return this.num(r.hour%12===0?12:r.hour%12);case"hh":return this.num(r.hour%12===0?12:r.hour%12,2);case"H":return this.num(r.hour);case"HH":return this.num(r.hour,2);case"Z":return _({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return _({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return _({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return r.zone.offsetName(r.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return r.zone.offsetName(r.ts,{format:"long",locale:this.loc.locale});case"z":return r.zoneName;case"a":return z();case"d":return j?O({day:"numeric"},"day"):this.num(r.day);case"dd":return j?O({day:"2-digit"},"day"):this.num(r.day,2);case"c":return this.num(r.weekday);case"ccc":return de("short",!0);case"cccc":return de("long",!0);case"ccccc":return de("narrow",!0);case"E":return this.num(r.weekday);case"EEE":return de("short",!1);case"EEEE":return de("long",!1);case"EEEEE":return de("narrow",!1);case"L":return j?O({month:"numeric",day:"numeric"},"month"):this.num(r.month);case"LL":return j?O({month:"2-digit",day:"numeric"},"month"):this.num(r.month,2);case"LLL":return H("short",!0);case"LLLL":return H("long",!0);case"LLLLL":return H("narrow",!0);case"M":return j?O({month:"numeric"},"month"):this.num(r.month);case"MM":return j?O({month:"2-digit"},"month"):this.num(r.month,2);case"MMM":return H("short",!1);case"MMMM":return H("long",!1);case"MMMMM":return H("narrow",!1);case"y":return j?O({year:"numeric"},"year"):this.num(r.year);case"yy":return j?O({year:"2-digit"},"year"):this.num(r.year.toString().slice(-2),2);case"yyyy":return j?O({year:"numeric"},"year"):this.num(r.year,4);case"yyyyyy":return j?O({year:"numeric"},"year"):this.num(r.year,6);case"G":return Le("short");case"GG":return Le("long");case"GGGGG":return Le("narrow");case"kk":return this.num(r.weekYear.toString().slice(-2),2);case"kkkk":return this.num(r.weekYear,4);case"W":return this.num(r.weekNumber);case"WW":return this.num(r.weekNumber,2);case"n":return this.num(r.localWeekNumber);case"nn":return this.num(r.localWeekNumber,2);case"ii":return this.num(r.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(r.localWeekYear,4);case"o":return this.num(r.ordinal);case"ooo":return this.num(r.ordinal,3);case"q":return this.num(r.quarter);case"qq":return this.num(r.quarter,2);case"X":return this.num(Math.floor(r.ts/1e3));case"x":return this.num(r.ts);default:return ve(Ae)}};return Ws($t.parseFormat(h),Pe)}formatDurationFromString(r,h){const v=this.opts.signMode==="negativeLargestOnly"?-1:1,j=ve=>{switch(ve[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},O=(ve,Le)=>Pe=>{const Ae=j(Pe);if(Ae){const Mt=Le.isNegativeDuration&&Ae!==Le.largestUnit?v:1;let Gt;return this.opts.signMode==="negativeLargestOnly"&&Ae!==Le.largestUnit?Gt="never":this.opts.signMode==="all"?Gt="always":Gt="auto",this.num(ve.get(Ae)*Mt,Pe.length,Gt)}else return Pe},_=$t.parseFormat(h),z=_.reduce((ve,{literal:Le,val:Pe})=>Le?ve:ve.concat(Pe),[]),H=r.shiftTo(...z.map(j).filter(ve=>ve)),de={isNegativeDuration:H<0,largestUnit:Object.keys(H.values)[0]};return Ws(_,O(H,de))}}const ss=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function rn(...m){const r=m.reduce((h,v)=>h+v.source,"");return RegExp(`^${r}$`)}function Hn(...m){return r=>m.reduce(([h,v,j],O)=>{const[_,z,H]=O(r,j);return[{...h,..._},z||v,H]},[{},null,1]).slice(0,2)}function At(m,...r){if(m==null)return[null,null];for(const[h,v]of r){const j=h.exec(m);if(j)return v(j)}return[null,null]}function Nn(...m){return(r,h)=>{const v={};let j;for(j=0;j<m.length;j++)v[m[j]]=Rt(r[h+j]);return[v,null,h+j]}}const rs=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,is=`(?:${rs.source}?(?:\\[(${ss.source})\\])?)?`,Xr=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Xs=RegExp(`${Xr.source}${is}`),us=RegExp(`(?:[Tt]${Xs.source})?`),cs=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Js=/(\d{4})-?W(\d\d)(?:-?(\d))?/,bu=/(\d{4})-?(\d{3})/,ao=Nn("weekYear","weekNumber","weekDay"),no=Nn("year","ordinal"),lo=/(\d{4})-(\d\d)-(\d\d)/,Ks=RegExp(`${Xr.source} ?(?:${rs.source}|(${ss.source}))?`),so=RegExp(`(?: ${Ks.source})?`);function ml(m,r,h){const v=m[r];return De(v)?h:Rt(v)}function ro(m,r){return[{year:ml(m,r),month:ml(m,r+1,1),day:ml(m,r+2,1)},null,r+3]}function gl(m,r){return[{hours:ml(m,r,0),minutes:ml(m,r+1,0),seconds:ml(m,r+2,0),milliseconds:Gr(m[r+3])},null,r+4]}function os(m,r){const h=!m[r]&&!m[r+1],v=Kl(m[r+1],m[r+2]),j=h?null:nt.instance(v);return[{},j,r+3]}function yl(m,r){const h=m[r]?Me.create(m[r]):null;return[{},h,r+1]}const io=RegExp(`^T?${Xr.source}$`),uo=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function co(m){const[r,h,v,j,O,_,z,H,de]=m,ve=r[0]==="-",Le=H&&H[0]==="-",Pe=(Ae,Mt=!1)=>Ae!==void 0&&(Mt||Ae&&ve)?-Ae:Ae;return[{years:Pe(Sn(h)),months:Pe(Sn(v)),weeks:Pe(Sn(j)),days:Pe(Sn(O)),hours:Pe(Sn(_)),minutes:Pe(Sn(z)),seconds:Pe(Sn(H),H==="-0"),milliseconds:Pe(Gr(de),Le)}]}const oo={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ds(m,r,h,v,j,O,_){const z={year:r.length===2?Jl(Rt(r)):Rt(r),month:Qs.indexOf(h)+1,day:Rt(v),hour:Rt(j),minute:Rt(O)};return _&&(z.second=Rt(_)),m&&(z.weekday=m.length>3?as.indexOf(m)+1:qa.indexOf(m)+1),z}const fo=/^(?:(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\d)(\d\d)))$/;function ho(m){const[,r,h,v,j,O,_,z,H,de,ve,Le]=m,Pe=ds(r,j,v,h,O,_,z);let Ae;return H?Ae=oo[H]:de?Ae=0:Ae=Kl(ve,Le),[Pe,new nt(Ae)]}function mo(m){return m.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Su=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,go=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,yo=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function wu(m){const[,r,h,v,j,O,_,z]=m;return[ds(r,j,v,h,O,_,z),nt.utcInstance]}function xo(m){const[,r,h,v,j,O,_,z]=m;return[ds(r,z,h,v,j,O,_),nt.utcInstance]}const po=rn(cs,us),vo=rn(Js,us),bo=rn(bu,us),So=rn(Xs),Nu=Hn(ro,gl,os,yl),Jr=Hn(ao,gl,os,yl),fs=Hn(no,gl,os,yl),wo=Hn(gl,os,yl);function ju(m){return At(m,[po,Nu],[vo,Jr],[bo,fs],[So,wo])}function Eu(m){return At(mo(m),[fo,ho])}function Tu(m){return At(m,[Su,wu],[go,wu],[yo,xo])}function Mu(m){return At(m,[uo,co])}const Cu=Hn(gl);function xl(m){return At(m,[io,Cu])}const No=rn(lo,so),jo=rn(Ks),Eo=Hn(gl,os,yl);function Ou(m){return At(m,[No,Nu],[jo,Eo])}const Kr="Invalid Duration",pl={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},hs={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...pl},xa=146097/400,un=146097/4800,Du={years:{quarters:4,months:12,weeks:xa/7,days:xa,hours:xa*24,minutes:xa*24*60,seconds:xa*24*60*60,milliseconds:xa*24*60*60*1e3},quarters:{months:3,weeks:xa/28,days:xa/4,hours:xa*24/4,minutes:xa*24*60/4,seconds:xa*24*60*60/4,milliseconds:xa*24*60*60*1e3/4},months:{weeks:un/7,days:un,hours:un*24,minutes:un*24*60,seconds:un*24*60*60,milliseconds:un*24*60*60*1e3},...pl},jn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ei=jn.slice(0).reverse();function Oa(m,r,h=!1){const v={values:h?r.values:{...m.values,...r.values||{}},loc:m.loc.clone(r.loc),conversionAccuracy:r.conversionAccuracy||m.conversionAccuracy,matrix:r.matrix||m.matrix};return new Qe(v)}function ti(m,r){var h;let v=(h=r.milliseconds)!=null?h:0;for(const j of ei.slice(1))r[j]&&(v+=r[j]*m[j].milliseconds);return v}function ai(m,r){const h=ti(m,r)<0?-1:1;jn.reduceRight((v,j)=>{if(De(r[j]))return v;if(v){const O=r[v]*h,_=m[j][v],z=Math.floor(O/_);r[j]+=z*h,r[v]-=z*_*h}return j},null),jn.reduce((v,j)=>{if(De(r[j]))return v;if(v){const O=r[v]%1;r[v]-=O,r[j]+=O*m[v][j]}return j},null)}function ni(m){const r={};for(const[h,v]of Object.entries(m))v!==0&&(r[h]=v);return r}class Qe{constructor(r){const h=r.conversionAccuracy==="longterm"||!1;let v=h?Du:hs;r.matrix&&(v=r.matrix),this.values=r.values,this.loc=r.loc||ze.create(),this.conversionAccuracy=h?"longterm":"casual",this.invalid=r.invalid||null,this.matrix=v,this.isLuxonDuration=!0}static fromMillis(r,h){return Qe.fromObject({milliseconds:r},h)}static fromObject(r,h={}){if(r==null||typeof r!="object")throw new y(`Duration.fromObject: argument expected to be an object, got ${r===null?"null":typeof r}`);return new Qe({values:ln(r,Qe.normalizeUnit),loc:ze.fromObject(h),conversionAccuracy:h.conversionAccuracy,matrix:h.matrix})}static fromDurationLike(r){if(ya(r))return Qe.fromMillis(r);if(Qe.isDuration(r))return r;if(typeof r=="object")return Qe.fromObject(r);throw new y(`Unknown duration argument ${r} of type ${typeof r}`)}static fromISO(r,h){const[v]=Mu(r);return v?Qe.fromObject(v,h):Qe.invalid("unparsable",`the input "${r}" can't be parsed as ISO 8601`)}static fromISOTime(r,h){const[v]=xl(r);return v?Qe.fromObject(v,h):Qe.invalid("unparsable",`the input "${r}" can't be parsed as ISO 8601`)}static invalid(r,h=null){if(!r)throw new y("need to specify a reason the Duration is invalid");const v=r instanceof ga?r:new ga(r,h);if(pt.throwOnInvalid)throw new o(v);return new Qe({invalid:v})}static normalizeUnit(r){const h={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[r&&r.toLowerCase()];if(!h)throw new f(r);return h}static isDuration(r){return r&&r.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(r,h={}){const v={...h,floor:h.round!==!1&&h.floor!==!1};return this.isValid?$t.create(this.loc,v).formatDurationFromString(this,r):Kr}toHuman(r={}){if(!this.isValid)return Kr;const h=r.showZeros!==!1,v=jn.map(j=>{const O=this.values[j];return De(O)||O===0&&!h?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...r,unit:j.slice(0,-1)}).format(O)}).filter(j=>j);return this.loc.listFormatter({type:"conjunction",style:r.listStyle||"narrow",...r}).format(v)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let r="P";return this.years!==0&&(r+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(r+=this.months+this.quarters*3+"M"),this.weeks!==0&&(r+=this.weeks+"W"),this.days!==0&&(r+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(r+="T"),this.hours!==0&&(r+=this.hours+"H"),this.minutes!==0&&(r+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(r+=Xl(this.seconds+this.milliseconds/1e3,3)+"S"),r==="P"&&(r+="T0S"),r}toISOTime(r={}){if(!this.isValid)return null;const h=this.toMillis();return h<0||h>=864e5?null:(r={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...r,includeOffset:!1},je.fromMillis(h,{zone:"UTC"}).toISOTime(r))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?ti(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(r){if(!this.isValid)return this;const h=Qe.fromDurationLike(r),v={};for(const j of jn)(kn(h.values,j)||kn(this.values,j))&&(v[j]=h.get(j)+this.get(j));return Oa(this,{values:v},!0)}minus(r){if(!this.isValid)return this;const h=Qe.fromDurationLike(r);return this.plus(h.negate())}mapUnits(r){if(!this.isValid)return this;const h={};for(const v of Object.keys(this.values))h[v]=Zr(r(this.values[v],v));return Oa(this,{values:h},!0)}get(r){return this[Qe.normalizeUnit(r)]}set(r){if(!this.isValid)return this;const h={...this.values,...ln(r,Qe.normalizeUnit)};return Oa(this,{values:h})}reconfigure({locale:r,numberingSystem:h,conversionAccuracy:v,matrix:j}={}){const _={loc:this.loc.clone({locale:r,numberingSystem:h}),matrix:j,conversionAccuracy:v};return Oa(this,_)}as(r){return this.isValid?this.shiftTo(r).get(r):NaN}normalize(){if(!this.isValid)return this;const r=this.toObject();return ai(this.matrix,r),Oa(this,{values:r},!0)}rescale(){if(!this.isValid)return this;const r=ni(this.normalize().shiftToAll().toObject());return Oa(this,{values:r},!0)}shiftTo(...r){if(!this.isValid)return this;if(r.length===0)return this;r=r.map(_=>Qe.normalizeUnit(_));const h={},v={},j=this.toObject();let O;for(const _ of jn)if(r.indexOf(_)>=0){O=_;let z=0;for(const de in v)z+=this.matrix[de][_]*v[de],v[de]=0;ya(j[_])&&(z+=j[_]);const H=Math.trunc(z);h[_]=H,v[_]=(z*1e3-H*1e3)/1e3}else ya(j[_])&&(v[_]=j[_]);for(const _ in v)v[_]!==0&&(h[O]+=_===O?v[_]:v[_]/this.matrix[O][_]);return ai(this.matrix,h),Oa(this,{values:h},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const r={};for(const h of Object.keys(this.values))r[h]=this.values[h]===0?0:-this.values[h];return Oa(this,{values:r},!0)}removeZeros(){if(!this.isValid)return this;const r=ni(this.values);return Oa(this,{values:r},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(r){if(!this.isValid||!r.isValid||!this.loc.equals(r.loc))return!1;function h(v,j){return v===void 0||v===0?j===void 0||j===0:v===j}for(const v of jn)if(!h(this.values[v],r.values[v]))return!1;return!0}}const vl="Invalid Interval";function To(m,r){return!m||!m.isValid?St.invalid("missing or invalid start"):!r||!r.isValid?St.invalid("missing or invalid end"):r<m?St.invalid("end before start",`The end of an interval must be after its start, but you had start=${m.toISO()} and end=${r.toISO()}`):null}class St{constructor(r){this.s=r.start,this.e=r.end,this.invalid=r.invalid||null,this.isLuxonInterval=!0}static invalid(r,h=null){if(!r)throw new y("need to specify a reason the Interval is invalid");const v=r instanceof ga?r:new ga(r,h);if(pt.throwOnInvalid)throw new d(v);return new St({invalid:v})}static fromDateTimes(r,h){const v=ba(r),j=ba(h),O=To(v,j);return O??new St({start:v,end:j})}static after(r,h){const v=Qe.fromDurationLike(h),j=ba(r);return St.fromDateTimes(j,j.plus(v))}static before(r,h){const v=Qe.fromDurationLike(h),j=ba(r);return St.fromDateTimes(j.minus(v),j)}static fromISO(r,h){const[v,j]=(r||"").split("/",2);if(v&&j){let O,_;try{O=je.fromISO(v,h),_=O.isValid}catch{_=!1}let z,H;try{z=je.fromISO(j,h),H=z.isValid}catch{H=!1}if(_&&H)return St.fromDateTimes(O,z);if(_){const de=Qe.fromISO(j,h);if(de.isValid)return St.after(O,de)}else if(H){const de=Qe.fromISO(v,h);if(de.isValid)return St.before(z,de)}}return St.invalid("unparsable",`the input "${r}" can't be parsed as ISO 8601`)}static isInterval(r){return r&&r.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(r="milliseconds"){return this.isValid?this.toDuration(r).get(r):NaN}count(r="milliseconds",h){if(!this.isValid)return NaN;const v=this.start.startOf(r,h);let j;return h!=null&&h.useLocaleWeeks?j=this.end.reconfigure({locale:v.locale}):j=this.end,j=j.startOf(r,h),Math.floor(j.diff(v,r).get(r))+(j.valueOf()!==this.end.valueOf())}hasSame(r){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,r):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(r){return this.isValid?this.s>r:!1}isBefore(r){return this.isValid?this.e<=r:!1}contains(r){return this.isValid?this.s<=r&&this.e>r:!1}set({start:r,end:h}={}){return this.isValid?St.fromDateTimes(r||this.s,h||this.e):this}splitAt(...r){if(!this.isValid)return[];const h=r.map(ba).filter(_=>this.contains(_)).sort((_,z)=>_.toMillis()-z.toMillis()),v=[];let{s:j}=this,O=0;for(;j<this.e;){const _=h[O]||this.e,z=+_>+this.e?this.e:_;v.push(St.fromDateTimes(j,z)),j=z,O+=1}return v}splitBy(r){const h=Qe.fromDurationLike(r);if(!this.isValid||!h.isValid||h.as("milliseconds")===0)return[];let{s:v}=this,j=1,O;const _=[];for(;v<this.e;){const z=this.start.plus(h.mapUnits(H=>H*j));O=+z>+this.e?this.e:z,_.push(St.fromDateTimes(v,O)),v=O,j+=1}return _}divideEqually(r){return this.isValid?this.splitBy(this.length()/r).slice(0,r):[]}overlaps(r){return this.e>r.s&&this.s<r.e}abutsStart(r){return this.isValid?+this.e==+r.s:!1}abutsEnd(r){return this.isValid?+r.e==+this.s:!1}engulfs(r){return this.isValid?this.s<=r.s&&this.e>=r.e:!1}equals(r){return!this.isValid||!r.isValid?!1:this.s.equals(r.s)&&this.e.equals(r.e)}intersection(r){if(!this.isValid)return this;const h=this.s>r.s?this.s:r.s,v=this.e<r.e?this.e:r.e;return h>=v?null:St.fromDateTimes(h,v)}union(r){if(!this.isValid)return this;const h=this.s<r.s?this.s:r.s,v=this.e>r.e?this.e:r.e;return St.fromDateTimes(h,v)}static merge(r){const[h,v]=r.sort((j,O)=>j.s-O.s).reduce(([j,O],_)=>O?O.overlaps(_)||O.abutsStart(_)?[j,O.union(_)]:[j.concat([O]),_]:[j,_],[[],null]);return v&&h.push(v),h}static xor(r){let h=null,v=0;const j=[],O=r.map(H=>[{time:H.s,type:"s"},{time:H.e,type:"e"}]),_=Array.prototype.concat(...O),z=_.sort((H,de)=>H.time-de.time);for(const H of z)v+=H.type==="s"?1:-1,v===1?h=H.time:(h&&+h!=+H.time&&j.push(St.fromDateTimes(h,H.time)),h=null);return St.merge(j)}difference(...r){return St.xor([this].concat(r)).map(h=>this.intersection(h)).filter(h=>h&&!h.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:vl}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(r=S,h={}){return this.isValid?$t.create(this.s.loc.clone(h),r).formatInterval(this):vl}toISO(r){return this.isValid?`${this.s.toISO(r)}/${this.e.toISO(r)}`:vl}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:vl}toISOTime(r){return this.isValid?`${this.s.toISOTime(r)}/${this.e.toISOTime(r)}`:vl}toFormat(r,{separator:h=" – "}={}){return this.isValid?`${this.s.toFormat(r)}${h}${this.e.toFormat(r)}`:vl}toDuration(r,h){return this.isValid?this.e.diff(this.s,r,h):Qe.invalid(this.invalidReason)}mapEndpoints(r){return St.fromDateTimes(r(this.s),r(this.e))}}class ms{static hasDST(r=pt.defaultZone){const h=je.now().setZone(r).set({month:12});return!r.isUniversal&&h.offset!==h.set({month:6}).offset}static isValidIANAZone(r){return Me.isValidZone(r)}static normalizeZone(r){return bt(r,pt.defaultZone)}static getStartOfWeek({locale:r=null,locObj:h=null}={}){return(h||ze.create(r)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:r=null,locObj:h=null}={}){return(h||ze.create(r)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:r=null,locObj:h=null}={}){return(h||ze.create(r)).getWeekendDays().slice()}static months(r="long",{locale:h=null,numberingSystem:v=null,locObj:j=null,outputCalendar:O="gregory"}={}){return(j||ze.create(h,v,O)).months(r)}static monthsFormat(r="long",{locale:h=null,numberingSystem:v=null,locObj:j=null,outputCalendar:O="gregory"}={}){return(j||ze.create(h,v,O)).months(r,!0)}static weekdays(r="long",{locale:h=null,numberingSystem:v=null,locObj:j=null}={}){return(j||ze.create(h,v,null)).weekdays(r)}static weekdaysFormat(r="long",{locale:h=null,numberingSystem:v=null,locObj:j=null}={}){return(j||ze.create(h,v,null)).weekdays(r,!0)}static meridiems({locale:r=null}={}){return ze.create(r).meridiems()}static eras(r="short",{locale:h=null}={}){return ze.create(h,null,"gregory").eras(r)}static features(){return{relative:$r(),localeWeek:bn()}}}function sa(m,r){const h=j=>j.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),v=h(r)-h(m);return Math.floor(Qe.fromMillis(v).as("days"))}function gs(m,r,h){const v=[["years",(H,de)=>de.year-H.year],["quarters",(H,de)=>de.quarter-H.quarter+(de.year-H.year)*4],["months",(H,de)=>de.month-H.month+(de.year-H.year)*12],["weeks",(H,de)=>{const ve=sa(H,de);return(ve-ve%7)/7}],["days",sa]],j={},O=m;let _,z;for(const[H,de]of v)h.indexOf(H)>=0&&(_=H,j[H]=de(m,r),z=O.plus(j),z>r?(j[H]--,m=O.plus(j),m>r&&(z=m,j[H]--,m=O.plus(j))):m=z);return[m,j,z,_]}function Ru(m,r,h,v){let[j,O,_,z]=gs(m,r,h);const H=r-j,de=h.filter(Le=>["hours","minutes","seconds","milliseconds"].indexOf(Le)>=0);de.length===0&&(_<r&&(_=j.plus({[z]:1})),_!==j&&(O[z]=(O[z]||0)+H/(_-j)));const ve=Qe.fromObject(O,v);return de.length>0?Qe.fromMillis(H,v).shiftTo(...de).plus(ve):ve}const Au="missing Intl.DateTimeFormat.formatToParts support";function Je(m,r=h=>h){return{regex:m,deser:([h])=>r(eo(h))}}const er="[  ]",_u=new RegExp(er,"g");function bl(m){return m.replace(/\./g,"\\.?").replace(_u,er)}function tr(m){return m.replace(/\./g,"").replace(_u," ").toLowerCase()}function It(m,r){return m===null?null:{regex:RegExp(m.map(bl).join("|")),deser:([h])=>m.findIndex(v=>tr(h)===tr(v))+r}}function ar(m,r){return{regex:m,deser:([,h,v])=>Kl(h,v),groups:r}}function ys(m){return{regex:m,deser:([r])=>r}}function Ln(m){return m.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Sl(m,r){const h=na(r),v=na(r,"{2}"),j=na(r,"{3}"),O=na(r,"{4}"),_=na(r,"{6}"),z=na(r,"{1,2}"),H=na(r,"{1,3}"),de=na(r,"{1,6}"),ve=na(r,"{1,9}"),Le=na(r,"{2,4}"),Pe=na(r,"{4,6}"),Ae=Zt=>({regex:RegExp(Ln(Zt.val)),deser:([En])=>En,literal:!0}),Gt=(Zt=>{if(m.literal)return Ae(Zt);switch(Zt.val){case"G":return It(r.eras("short"),0);case"GG":return It(r.eras("long"),0);case"y":return Je(de);case"yy":return Je(Le,Jl);case"yyyy":return Je(O);case"yyyyy":return Je(Pe);case"yyyyyy":return Je(_);case"M":return Je(z);case"MM":return Je(v);case"MMM":return It(r.months("short",!0),1);case"MMMM":return It(r.months("long",!0),1);case"L":return Je(z);case"LL":return Je(v);case"LLL":return It(r.months("short",!1),1);case"LLLL":return It(r.months("long",!1),1);case"d":return Je(z);case"dd":return Je(v);case"o":return Je(H);case"ooo":return Je(j);case"HH":return Je(v);case"H":return Je(z);case"hh":return Je(v);case"h":return Je(z);case"mm":return Je(v);case"m":return Je(z);case"q":return Je(z);case"qq":return Je(v);case"s":return Je(z);case"ss":return Je(v);case"S":return Je(H);case"SSS":return Je(j);case"u":return ys(ve);case"uu":return ys(z);case"uuu":return Je(h);case"a":return It(r.meridiems(),0);case"kkkk":return Je(O);case"kk":return Je(Le,Jl);case"W":return Je(z);case"WW":return Je(v);case"E":case"c":return Je(h);case"EEE":return It(r.weekdays("short",!1),1);case"EEEE":return It(r.weekdays("long",!1),1);case"ccc":return It(r.weekdays("short",!0),1);case"cccc":return It(r.weekdays("long",!0),1);case"Z":case"ZZ":return ar(new RegExp(`([+-]${z.source})(?::(${v.source}))?`),2);case"ZZZ":return ar(new RegExp(`([+-]${z.source})(${v.source})?`),2);case"z":return ys(/[a-z_+-/]{1,256}?/i);case" ":return ys(/[^\S\n\r]/);default:return Ae(Zt)}})(m)||{invalidReason:Au};return Gt.token=m,Gt}const li={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function ku(m,r,h){const{type:v,value:j}=m;if(v==="literal"){const H=/^\s+$/.test(j);return{literal:!H,val:H?" ":j}}const O=r[v];let _=v;v==="hour"&&(r.hour12!=null?_=r.hour12?"hour12":"hour24":r.hourCycle!=null?r.hourCycle==="h11"||r.hourCycle==="h12"?_="hour12":_="hour24":_=h.hour12?"hour12":"hour24");let z=li[_];if(typeof z=="object"&&(z=z[O]),z)return{literal:!1,val:z}}function qn(m){return[`^${m.map(h=>h.regex).reduce((h,v)=>`${h}(${v.source})`,"")}$`,m]}function zu(m,r,h){const v=m.match(r);if(v){const j={};let O=1;for(const _ in h)if(kn(h,_)){const z=h[_],H=z.groups?z.groups+1:1;!z.literal&&z.token&&(j[z.token.val[0]]=z.deser(v.slice(O,O+H))),O+=H}return[v,j]}else return[v,{}]}function Uu(m){const r=O=>{switch(O){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let h=null,v;return De(m.z)||(h=Me.create(m.z)),De(m.Z)||(h||(h=new nt(m.Z)),v=m.Z),De(m.q)||(m.M=(m.q-1)*3+1),De(m.h)||(m.h<12&&m.a===1?m.h+=12:m.h===12&&m.a===0&&(m.h=0)),m.G===0&&m.y&&(m.y=-m.y),De(m.u)||(m.S=Gr(m.u)),[Object.keys(m).reduce((O,_)=>{const z=r(_);return z&&(O[z]=m[_]),O},{}),h,v]}let nr=null;function Co(){return nr||(nr=je.fromMillis(1555555555555)),nr}function Oo(m,r){if(m.literal)return m;const h=$t.macroTokenToFormatOpts(m.val),v=pa(h,r);return v==null||v.includes(void 0)?m:v}function Hu(m,r){return Array.prototype.concat(...m.map(h=>Oo(h,r)))}class si{constructor(r,h){if(this.locale=r,this.format=h,this.tokens=Hu($t.parseFormat(h),r),this.units=this.tokens.map(v=>Sl(v,r)),this.disqualifyingUnit=this.units.find(v=>v.invalidReason),!this.disqualifyingUnit){const[v,j]=qn(this.units);this.regex=RegExp(v,"i"),this.handlers=j}}explainFromTokens(r){if(this.isValid){const[h,v]=zu(r,this.regex,this.handlers),[j,O,_]=v?Uu(v):[null,null,void 0];if(kn(v,"a")&&kn(v,"H"))throw new g("Can't include meridiem when specifying 24-hour format");return{input:r,tokens:this.tokens,regex:this.regex,rawMatches:h,matches:v,result:j,zone:O,specificOffset:_}}else return{input:r,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function ri(m,r,h){return new si(m,h).explainFromTokens(r)}function ii(m,r,h){const{result:v,zone:j,specificOffset:O,invalidReason:_}=ri(m,r,h);return[v,j,O,_]}function pa(m,r){if(!m)return null;const v=$t.create(r,m).dtFormatter(Co()),j=v.formatToParts(),O=v.resolvedOptions();return j.map(_=>ku(_,m,O))}const wl="Invalid DateTime",ca=864e13;function Va(m){return new ga("unsupported zone",`the zone "${m.name}" is not supported`)}function xs(m){return m.weekData===null&&(m.weekData=Yt(m.c)),m.weekData}function Nl(m){return m.localWeekData===null&&(m.localWeekData=Yt(m.c,m.loc.getMinDaysInFirstWeek(),m.loc.getStartOfWeek())),m.localWeekData}function Ba(m,r){const h={ts:m.ts,zone:m.zone,c:m.c,o:m.o,loc:m.loc,invalid:m.invalid};return new je({...h,...r,old:h})}function lr(m,r,h){let v=m-r*60*1e3;const j=h.offset(v);if(r===j)return[v,r];v-=(j-r)*60*1e3;const O=h.offset(v);return j===O?[v,j]:[m-Math.min(j,O)*60*1e3,Math.max(j,O)]}function Ya(m,r){m+=r*60*1e3;const h=new Date(m);return{year:h.getUTCFullYear(),month:h.getUTCMonth()+1,day:h.getUTCDate(),hour:h.getUTCHours(),minute:h.getUTCMinutes(),second:h.getUTCSeconds(),millisecond:h.getUTCMilliseconds()}}function ps(m,r,h){return lr(Wt(m),r,h)}function vs(m,r){const h=m.o,v=m.c.year+Math.trunc(r.years),j=m.c.month+Math.trunc(r.months)+Math.trunc(r.quarters)*3,O={...m.c,year:v,month:j,day:Math.min(m.c.day,Gs(v,j))+Math.trunc(r.days)+Math.trunc(r.weeks)*7},_=Qe.fromObject({years:r.years-Math.trunc(r.years),quarters:r.quarters-Math.trunc(r.quarters),months:r.months-Math.trunc(r.months),weeks:r.weeks-Math.trunc(r.weeks),days:r.days-Math.trunc(r.days),hours:r.hours,minutes:r.minutes,seconds:r.seconds,milliseconds:r.milliseconds}).as("milliseconds"),z=Wt(O);let[H,de]=lr(z,h,m.zone);return _!==0&&(H+=_,de=m.zone.offset(H)),{ts:H,o:de}}function Da(m,r,h,v,j,O){const{setZone:_,zone:z}=h;if(m&&Object.keys(m).length!==0||r){const H=r||z,de=je.fromObject(m,{...h,zone:H,specificOffset:O});return _?de:de.setZone(z)}else return je.invalid(new ga("unparsable",`the input "${j}" can't be parsed as ${v}`))}function sr(m,r,h=!0){return m.isValid?$t.create(ze.create("en-US"),{allowZ:h,forceSimple:!0}).formatDateTimeFromString(m,r):null}function Xt(m,r,h){const v=m.c.year>9999||m.c.year<0;let j="";if(v&&m.c.year>=0&&(j+="+"),j+=rt(m.c.year,v?6:4),h==="year")return j;if(r){if(j+="-",j+=rt(m.c.month),h==="month")return j;j+="-"}else if(j+=rt(m.c.month),h==="month")return j;return j+=rt(m.c.day),j}function rr(m,r,h,v,j,O,_){let z=!h||m.c.millisecond!==0||m.c.second!==0,H="";switch(_){case"day":case"month":case"year":break;default:if(H+=rt(m.c.hour),_==="hour")break;if(r){if(H+=":",H+=rt(m.c.minute),_==="minute")break;z&&(H+=":",H+=rt(m.c.second))}else{if(H+=rt(m.c.minute),_==="minute")break;z&&(H+=rt(m.c.second))}if(_==="second")break;z&&(!v||m.c.millisecond!==0)&&(H+=".",H+=rt(m.c.millisecond,3))}return j&&(m.isOffsetFixed&&m.offset===0&&!O?H+="Z":m.o<0?(H+="-",H+=rt(Math.trunc(-m.o/60)),H+=":",H+=rt(Math.trunc(-m.o%60))):(H+="+",H+=rt(Math.trunc(m.o/60)),H+=":",H+=rt(Math.trunc(m.o%60)))),O&&(H+="["+m.zone.ianaName+"]"),H}const $a={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Lu={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ir={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Fa=["year","month","day","hour","minute","second","millisecond"],ui=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],qu=["year","ordinal","hour","minute","second","millisecond"];function jl(m){const r={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[m.toLowerCase()];if(!r)throw new f(m);return r}function ci(m){switch(m.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return jl(m)}}function va(m){if(cn===void 0&&(cn=pt.now()),m.type!=="iana")return m.offset(cn);const r=m.name;let h=ra.get(r);return h===void 0&&(h=m.offset(cn),ra.set(r,h)),h}function Vn(m,r){const h=bt(r.zone,pt.defaultZone);if(!h.isValid)return je.invalid(Va(h));const v=ze.fromObject(r);let j,O;if(De(m.year))j=pt.now();else{for(const H of Fa)De(m[H])&&(m[H]=$a[H]);const _=$s(m)||_n(m);if(_)return je.invalid(_);const z=va(h);[j,O]=ps(m,z,h)}return new je({ts:j,zone:h,loc:v,o:O})}function Bn(m,r,h){const v=De(h.round)?!0:h.round,j=De(h.rounding)?"trunc":h.rounding,O=(z,H)=>(z=Xl(z,v||h.calendary?0:2,h.calendary?"round":j),r.loc.clone(h).relFormatter(h).format(z,H)),_=z=>h.calendary?r.hasSame(m,z)?0:r.startOf(z).diff(m.startOf(z),z).get(z):r.diff(m,z).get(z);if(h.unit)return O(_(h.unit),h.unit);for(const z of h.units){const H=_(z);if(Math.abs(H)>=1)return O(H,z)}return O(m>r?-0:0,h.units[h.units.length-1])}function bs(m){let r={},h;return m.length>0&&typeof m[m.length-1]=="object"?(r=m[m.length-1],h=Array.from(m).slice(0,m.length-1)):h=Array.from(m),[r,h]}let cn;const ra=new Map;class je{constructor(r){const h=r.zone||pt.defaultZone;let v=r.invalid||(Number.isNaN(r.ts)?new ga("invalid input"):null)||(h.isValid?null:Va(h));this.ts=De(r.ts)?pt.now():r.ts;let j=null,O=null;if(!v)if(r.old&&r.old.ts===this.ts&&r.old.zone.equals(h))[j,O]=[r.old.c,r.old.o];else{const z=ya(r.o)&&!r.old?r.o:h.offset(this.ts);j=Ya(this.ts,z),v=Number.isNaN(j.year)?new ga("invalid input"):null,j=v?null:j,O=v?null:z}this._zone=h,this.loc=r.loc||ze.create(),this.invalid=v,this.weekData=null,this.localWeekData=null,this.c=j,this.o=O,this.isLuxonDateTime=!0}static now(){return new je({})}static local(){const[r,h]=bs(arguments),[v,j,O,_,z,H,de]=h;return Vn({year:v,month:j,day:O,hour:_,minute:z,second:H,millisecond:de},r)}static utc(){const[r,h]=bs(arguments),[v,j,O,_,z,H,de]=h;return r.zone=nt.utcInstance,Vn({year:v,month:j,day:O,hour:_,minute:z,second:H,millisecond:de},r)}static fromJSDate(r,h={}){const v=mu(r)?r.valueOf():NaN;if(Number.isNaN(v))return je.invalid("invalid input");const j=bt(h.zone,pt.defaultZone);return j.isValid?new je({ts:v,zone:j,loc:ze.fromObject(h)}):je.invalid(Va(j))}static fromMillis(r,h={}){if(ya(r))return r<-ca||r>ca?je.invalid("Timestamp out of range"):new je({ts:r,zone:bt(h.zone,pt.defaultZone),loc:ze.fromObject(h)});throw new y(`fromMillis requires a numerical input, but received a ${typeof r} with value ${r}`)}static fromSeconds(r,h={}){if(ya(r))return new je({ts:r*1e3,zone:bt(h.zone,pt.defaultZone),loc:ze.fromObject(h)});throw new y("fromSeconds requires a numerical input")}static fromObject(r,h={}){r=r||{};const v=bt(h.zone,pt.defaultZone);if(!v.isValid)return je.invalid(Va(v));const j=ze.fromObject(h),O=ln(r,ci),{minDaysInFirstWeek:_,startOfWeek:z}=fu(O,j),H=pt.now(),de=De(h.specificOffset)?v.offset(H):h.specificOffset,ve=!De(O.ordinal),Le=!De(O.year),Pe=!De(O.month)||!De(O.day),Ae=Le||Pe,Mt=O.weekYear||O.weekNumber;if((Ae||ve)&&Mt)throw new g("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Pe&&ve)throw new g("Can't mix ordinal dates with month/day");const Gt=Mt||O.weekday&&!Ae;let Zt,En,on=Ya(H,de);Gt?(Zt=ui,En=Lu,on=Yt(on,_,z)):ve?(Zt=qu,En=ir,on=Wl(on)):(Zt=Fa,En=$a);let ur=!1;for(const Qa of Zt){const cr=O[Qa];De(cr)?ur?O[Qa]=En[Qa]:O[Qa]=on[Qa]:ur=!0}const Yn=Gt?hu(O,_,z):ve?Il(O):$s(O),Za=Yn||_n(O);if(Za)return je.invalid(Za);const Tn=Gt?An(O,_,z):ve?du(O):O,[dn,oi]=ps(Tn,de,v),$n=new je({ts:dn,zone:v,o:oi,loc:j});return O.weekday&&Ae&&r.weekday!==$n.weekday?je.invalid("mismatched weekday",`you can't specify both a weekday of ${O.weekday} and a date of ${$n.toISO()}`):$n.isValid?$n:je.invalid($n.invalid)}static fromISO(r,h={}){const[v,j]=ju(r);return Da(v,j,h,"ISO 8601",r)}static fromRFC2822(r,h={}){const[v,j]=Eu(r);return Da(v,j,h,"RFC 2822",r)}static fromHTTP(r,h={}){const[v,j]=Tu(r);return Da(v,j,h,"HTTP",h)}static fromFormat(r,h,v={}){if(De(r)||De(h))throw new y("fromFormat requires an input string and a format");const{locale:j=null,numberingSystem:O=null}=v,_=ze.fromOpts({locale:j,numberingSystem:O,defaultToEN:!0}),[z,H,de,ve]=ii(_,r,h);return ve?je.invalid(ve):Da(z,H,v,`format ${h}`,r,de)}static fromString(r,h,v={}){return je.fromFormat(r,h,v)}static fromSQL(r,h={}){const[v,j]=Ou(r);return Da(v,j,h,"SQL",r)}static invalid(r,h=null){if(!r)throw new y("need to specify a reason the DateTime is invalid");const v=r instanceof ga?r:new ga(r,h);if(pt.throwOnInvalid)throw new u(v);return new je({invalid:v})}static isDateTime(r){return r&&r.isLuxonDateTime||!1}static parseFormatForOpts(r,h={}){const v=pa(r,ze.fromObject(h));return v?v.map(j=>j?j.val:null).join(""):null}static expandFormat(r,h={}){return Hu($t.parseFormat(r),ze.fromObject(h)).map(j=>j.val).join("")}static resetCache(){cn=void 0,ra.clear()}get(r){return this[r]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?xs(this).weekYear:NaN}get weekNumber(){return this.isValid?xs(this).weekNumber:NaN}get weekday(){return this.isValid?xs(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Nl(this).weekday:NaN}get localWeekNumber(){return this.isValid?Nl(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Nl(this).weekYear:NaN}get ordinal(){return this.isValid?Wl(this.c).ordinal:NaN}get monthShort(){return this.isValid?ms.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ms.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ms.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ms.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const r=864e5,h=6e4,v=Wt(this.c),j=this.zone.offset(v-r),O=this.zone.offset(v+r),_=this.zone.offset(v-j*h),z=this.zone.offset(v-O*h);if(_===z)return[this];const H=v-_*h,de=v-z*h,ve=Ya(H,_),Le=Ya(de,z);return ve.hour===Le.hour&&ve.minute===Le.minute&&ve.second===Le.second&&ve.millisecond===Le.millisecond?[Ba(this,{ts:H}),Ba(this,{ts:de})]:[this]}get isInLeapYear(){return dl(this.year)}get daysInMonth(){return Gs(this.year,this.month)}get daysInYear(){return this.isValid?nn(this.year):NaN}get weeksInWeekYear(){return this.isValid?fl(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?fl(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(r={}){const{locale:h,numberingSystem:v,calendar:j}=$t.create(this.loc.clone(r),r).resolvedOptions(this);return{locale:h,numberingSystem:v,outputCalendar:j}}toUTC(r=0,h={}){return this.setZone(nt.instance(r),h)}toLocal(){return this.setZone(pt.defaultZone)}setZone(r,{keepLocalTime:h=!1,keepCalendarTime:v=!1}={}){if(r=bt(r,pt.defaultZone),r.equals(this.zone))return this;if(r.isValid){let j=this.ts;if(h||v){const O=r.offset(this.ts),_=this.toObject();[j]=ps(_,O,r)}return Ba(this,{ts:j,zone:r})}else return je.invalid(Va(r))}reconfigure({locale:r,numberingSystem:h,outputCalendar:v}={}){const j=this.loc.clone({locale:r,numberingSystem:h,outputCalendar:v});return Ba(this,{loc:j})}setLocale(r){return this.reconfigure({locale:r})}set(r){if(!this.isValid)return this;const h=ln(r,ci),{minDaysInFirstWeek:v,startOfWeek:j}=fu(h,this.loc),O=!De(h.weekYear)||!De(h.weekNumber)||!De(h.weekday),_=!De(h.ordinal),z=!De(h.year),H=!De(h.month)||!De(h.day),de=z||H,ve=h.weekYear||h.weekNumber;if((de||_)&&ve)throw new g("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(H&&_)throw new g("Can't mix ordinal dates with month/day");let Le;O?Le=An({...Yt(this.c,v,j),...h},v,j):De(h.ordinal)?(Le={...this.toObject(),...h},De(h.day)&&(Le.day=Math.min(Gs(Le.year,Le.month),Le.day))):Le=du({...Wl(this.c),...h});const[Pe,Ae]=ps(Le,this.o,this.zone);return Ba(this,{ts:Pe,o:Ae})}plus(r){if(!this.isValid)return this;const h=Qe.fromDurationLike(r);return Ba(this,vs(this,h))}minus(r){if(!this.isValid)return this;const h=Qe.fromDurationLike(r).negate();return Ba(this,vs(this,h))}startOf(r,{useLocaleWeeks:h=!1}={}){if(!this.isValid)return this;const v={},j=Qe.normalizeUnit(r);switch(j){case"years":v.month=1;case"quarters":case"months":v.day=1;case"weeks":case"days":v.hour=0;case"hours":v.minute=0;case"minutes":v.second=0;case"seconds":v.millisecond=0;break}if(j==="weeks")if(h){const O=this.loc.getStartOfWeek(),{weekday:_}=this;_<O&&(v.weekNumber=this.weekNumber-1),v.weekday=O}else v.weekday=1;if(j==="quarters"){const O=Math.ceil(this.month/3);v.month=(O-1)*3+1}return this.set(v)}endOf(r,h){return this.isValid?this.plus({[r]:1}).startOf(r,h).minus(1):this}toFormat(r,h={}){return this.isValid?$t.create(this.loc.redefaultToEN(h)).formatDateTimeFromString(this,r):wl}toLocaleString(r=S,h={}){return this.isValid?$t.create(this.loc.clone(h),r).formatDateTime(this):wl}toLocaleParts(r={}){return this.isValid?$t.create(this.loc.clone(r),r).formatDateTimeParts(this):[]}toISO({format:r="extended",suppressSeconds:h=!1,suppressMilliseconds:v=!1,includeOffset:j=!0,extendedZone:O=!1,precision:_="milliseconds"}={}){if(!this.isValid)return null;_=jl(_);const z=r==="extended";let H=Xt(this,z,_);return Fa.indexOf(_)>=3&&(H+="T"),H+=rr(this,z,h,v,j,O,_),H}toISODate({format:r="extended",precision:h="day"}={}){return this.isValid?Xt(this,r==="extended",jl(h)):null}toISOWeekDate(){return sr(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:r=!1,suppressSeconds:h=!1,includeOffset:v=!0,includePrefix:j=!1,extendedZone:O=!1,format:_="extended",precision:z="milliseconds"}={}){return this.isValid?(z=jl(z),(j&&Fa.indexOf(z)>=3?"T":"")+rr(this,_==="extended",h,r,v,O,z)):null}toRFC2822(){return sr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return sr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Xt(this,!0):null}toSQLTime({includeOffset:r=!0,includeZone:h=!1,includeOffsetSpace:v=!0}={}){let j="HH:mm:ss.SSS";return(h||r)&&(v&&(j+=" "),h?j+="z":r&&(j+="ZZ")),sr(this,j,!0)}toSQL(r={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(r)}`:null}toString(){return this.isValid?this.toISO():wl}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(r={}){if(!this.isValid)return{};const h={...this.c};return r.includeConfig&&(h.outputCalendar=this.outputCalendar,h.numberingSystem=this.loc.numberingSystem,h.locale=this.loc.locale),h}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(r,h="milliseconds",v={}){if(!this.isValid||!r.isValid)return Qe.invalid("created by diffing an invalid DateTime");const j={locale:this.locale,numberingSystem:this.numberingSystem,...v},O=ol(h).map(Qe.normalizeUnit),_=r.valueOf()>this.valueOf(),z=_?this:r,H=_?r:this,de=Ru(z,H,O,j);return _?de.negate():de}diffNow(r="milliseconds",h={}){return this.diff(je.now(),r,h)}until(r){return this.isValid?St.fromDateTimes(this,r):this}hasSame(r,h,v){if(!this.isValid)return!1;const j=r.valueOf(),O=this.setZone(r.zone,{keepLocalTime:!0});return O.startOf(h,v)<=j&&j<=O.endOf(h,v)}equals(r){return this.isValid&&r.isValid&&this.valueOf()===r.valueOf()&&this.zone.equals(r.zone)&&this.loc.equals(r.loc)}toRelative(r={}){if(!this.isValid)return null;const h=r.base||je.fromObject({},{zone:this.zone}),v=r.padding?this<h?-r.padding:r.padding:0;let j=["years","months","days","hours","minutes","seconds"],O=r.unit;return Array.isArray(r.unit)&&(j=r.unit,O=void 0),Bn(h,this.plus(v),{...r,numeric:"always",units:j,unit:O})}toRelativeCalendar(r={}){return this.isValid?Bn(r.base||je.fromObject({},{zone:this.zone}),this,{...r,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...r){if(!r.every(je.isDateTime))throw new y("min requires all arguments be DateTimes");return gu(r,h=>h.valueOf(),Math.min)}static max(...r){if(!r.every(je.isDateTime))throw new y("max requires all arguments be DateTimes");return gu(r,h=>h.valueOf(),Math.max)}static fromFormatExplain(r,h,v={}){const{locale:j=null,numberingSystem:O=null}=v,_=ze.fromOpts({locale:j,numberingSystem:O,defaultToEN:!0});return ri(_,r,h)}static fromStringExplain(r,h,v={}){return je.fromFormatExplain(r,h,v)}static buildFormatParser(r,h={}){const{locale:v=null,numberingSystem:j=null}=h,O=ze.fromOpts({locale:v,numberingSystem:j,defaultToEN:!0});return new si(O,r)}static fromFormatParser(r,h,v={}){if(De(r)||De(h))throw new y("fromFormatParser requires an input string and a format parser");const{locale:j=null,numberingSystem:O=null}=v,_=ze.fromOpts({locale:j,numberingSystem:O,defaultToEN:!0});if(!_.equals(h.locale))throw new y(`fromFormatParser called with a locale of ${_}, but the format parser was created for ${h.locale}`);const{result:z,zone:H,specificOffset:de,invalidReason:ve}=h.explainFromTokens(r);return ve?je.invalid(ve):Da(z,H,v,`format ${h.format}`,r,de)}static get DATE_SHORT(){return S}static get DATE_MED(){return T}static get DATE_MED_WITH_WEEKDAY(){return D}static get DATE_FULL(){return q}static get DATE_HUGE(){return M}static get TIME_SIMPLE(){return $}static get TIME_WITH_SECONDS(){return X}static get TIME_WITH_SHORT_OFFSET(){return Q}static get TIME_WITH_LONG_OFFSET(){return F}static get TIME_24_SIMPLE(){return J}static get TIME_24_WITH_SECONDS(){return ne}static get TIME_24_WITH_SHORT_OFFSET(){return ee}static get TIME_24_WITH_LONG_OFFSET(){return P}static get DATETIME_SHORT(){return W}static get DATETIME_SHORT_WITH_SECONDS(){return A}static get DATETIME_MED(){return C}static get DATETIME_MED_WITH_SECONDS(){return ae}static get DATETIME_MED_WITH_WEEKDAY(){return Y}static get DATETIME_FULL(){return ie}static get DATETIME_FULL_WITH_SECONDS(){return ge}static get DATETIME_HUGE(){return he}static get DATETIME_HUGE_WITH_SECONDS(){return V}}function ba(m){if(je.isDateTime(m))return m;if(m&&m.valueOf&&ya(m.valueOf()))return je.fromJSDate(m);if(m&&typeof m=="object")return je.fromObject(m);throw new y(`Unknown datetime argument: ${m}, of type ${typeof m}`)}const Ga="3.7.2";return Ta.DateTime=je,Ta.Duration=Qe,Ta.FixedOffsetZone=nt,Ta.IANAZone=Me,Ta.Info=ms,Ta.Interval=St,Ta.InvalidZone=vt,Ta.Settings=pt,Ta.SystemZone=Te,Ta.VERSION=Ga,Ta.Zone=re,Ta}var Mg;function Wf(){return Mg||(Mg=1,(function(l){var f,y,w,b,x,Tf,S,Fl;Object.defineProperty(l,"__esModule",{value:!0}),l.CronDate=l.DAYS_IN_MONTH=l.DateMathOp=l.TimeUnit=void 0;const u=PS();var d;(function(q){q.Second="Second",q.Minute="Minute",q.Hour="Hour",q.Day="Day",q.Month="Month",q.Year="Year"})(d||(l.TimeUnit=d={}));var o;(function(q){q.Add="Add",q.Subtract="Subtract"})(o||(l.DateMathOp=o={})),l.DAYS_IN_MONTH=Object.freeze([31,29,31,30,31,30,31,31,30,31,30,31]);const D=class D{constructor(M,$){st(this,S);st(this,f);st(this,y,null);st(this,w,null);st(this,b,{add:{[d.Year]:this.addYear.bind(this),[d.Month]:this.addMonth.bind(this),[d.Day]:this.addDay.bind(this),[d.Hour]:this.addHour.bind(this),[d.Minute]:this.addMinute.bind(this),[d.Second]:this.addSecond.bind(this)},subtract:{[d.Year]:this.subtractYear.bind(this),[d.Month]:this.subtractMonth.bind(this),[d.Day]:this.subtractDay.bind(this),[d.Hour]:this.subtractHour.bind(this),[d.Minute]:this.subtractMinute.bind(this),[d.Second]:this.subtractSecond.bind(this)}});const X={zone:$};if(M?M instanceof D?(Ee(this,f,K(M,f)),Ee(this,y,K(M,y)),Ee(this,w,K(M,w))):M instanceof Date?Ee(this,f,u.DateTime.fromJSDate(M,X)):typeof M=="number"?Ee(this,f,u.DateTime.fromMillis(M,X)):(Ee(this,f,u.DateTime.fromISO(M,X)),K(this,f).isValid||Ee(this,f,u.DateTime.fromRFC2822(M,X)),K(this,f).isValid||Ee(this,f,u.DateTime.fromSQL(M,X)),K(this,f).isValid||Ee(this,f,u.DateTime.fromFormat(M,"EEE, d MMM yyyy HH:mm:ss",X))):Ee(this,f,u.DateTime.local()),!K(this,f).isValid)throw new Error(`CronDate: unhandled timestamp: ${M}`);$&&$!==K(this,f).zoneName&&Ee(this,f,K(this,f).setZone($))}get dstStart(){return K(this,y)}set dstStart(M){Ee(this,y,M)}get dstEnd(){return K(this,w)}set dstEnd(M){Ee(this,w,M)}addYear(){Ee(this,f,K(this,f).plus({years:1}))}addMonth(){Ee(this,f,K(this,f).plus({months:1}).startOf("month"))}addDay(){Ee(this,f,K(this,f).plus({days:1}).startOf("day"))}addHour(){Ee(this,f,K(this,f).plus({hours:1}).startOf("hour"))}addMinute(){Ee(this,f,K(this,f).plus({minutes:1}).startOf("minute"))}addSecond(){Ee(this,f,K(this,f).plus({seconds:1}))}subtractYear(){Ee(this,f,K(this,f).minus({years:1}))}subtractMonth(){Ee(this,f,K(this,f).minus({months:1}).endOf("month").startOf("second"))}subtractDay(){Ee(this,f,K(this,f).minus({days:1}).endOf("day").startOf("second"))}subtractHour(){Ee(this,f,K(this,f).minus({hours:1}).endOf("hour").startOf("second"))}subtractMinute(){Ee(this,f,K(this,f).minus({minutes:1}).endOf("minute").startOf("second"))}subtractSecond(){Ee(this,f,K(this,f).minus({seconds:1}))}addUnit(M){K(this,b).add[M]()}subtractUnit(M){K(this,b).subtract[M]()}invokeDateOperation(M,$){if(M===o.Add){this.addUnit($);return}if(M===o.Subtract){this.subtractUnit($);return}throw new Error(`Invalid verb: ${M}`)}getDate(){return K(this,f).day}getFullYear(){return K(this,f).year}getDay(){const M=K(this,f).weekday;return M===7?0:M}getMonth(){return K(this,f).month-1}getHours(){return K(this,f).hour}getMinutes(){return K(this,f).minute}getSeconds(){return K(this,f).second}getMilliseconds(){return K(this,f).millisecond}getUTCOffset(){return K(this,f).offset}setStartOfDay(){Ee(this,f,K(this,f).startOf("day"))}setEndOfDay(){Ee(this,f,K(this,f).endOf("day"))}getTime(){return K(this,f).valueOf()}getUTCDate(){return Ne(this,S,Fl).call(this).day}getUTCFullYear(){return Ne(this,S,Fl).call(this).year}getUTCDay(){const M=Ne(this,S,Fl).call(this).weekday;return M===7?0:M}getUTCMonth(){return Ne(this,S,Fl).call(this).month-1}getUTCHours(){return Ne(this,S,Fl).call(this).hour}getUTCMinutes(){return Ne(this,S,Fl).call(this).minute}getUTCSeconds(){return Ne(this,S,Fl).call(this).second}toISOString(){return K(this,f).toUTC().toISO()}toJSON(){return K(this,f).toJSON()}setDate(M){Ee(this,f,K(this,f).set({day:M}))}setFullYear(M){Ee(this,f,K(this,f).set({year:M}))}setDay(M){Ee(this,f,K(this,f).set({weekday:M}))}setMonth(M){Ee(this,f,K(this,f).set({month:M+1}))}setHours(M){Ee(this,f,K(this,f).set({hour:M}))}setMinutes(M){Ee(this,f,K(this,f).set({minute:M}))}setSeconds(M){Ee(this,f,K(this,f).set({second:M}))}setMilliseconds(M){Ee(this,f,K(this,f).set({millisecond:M}))}toString(){return this.toDate().toString()}toDate(){return K(this,f).toJSDate()}isLastDayOfMonth(){var X;const{day:M,month:$}=K(this,f);if($===2){const Q=Ne(X=D,x,Tf).call(X,K(this,f).year);return M===l.DAYS_IN_MONTH[$-1]-(Q?0:1)}return M===l.DAYS_IN_MONTH[$-1]}isLastWeekdayOfMonth(){var Q;const{day:M,month:$}=K(this,f);let X;return $===2?X=l.DAYS_IN_MONTH[$-1]-(Ne(Q=D,x,Tf).call(Q,K(this,f).year)?0:1):X=l.DAYS_IN_MONTH[$-1],M>X-7}applyDateOperation(M,$,X){if($===d.Month||$===d.Day){this.invokeDateOperation(M,$);return}const Q=this.getHours();this.invokeDateOperation(M,$);const F=this.getHours(),J=F-Q;J===2?X!==24&&(this.dstStart=F):J===0&&this.getMinutes()===0&&this.getSeconds()===0&&X!==24&&(this.dstEnd=F)}};f=new WeakMap,y=new WeakMap,w=new WeakMap,b=new WeakMap,x=new WeakSet,Tf=function(M){return M%4===0&&M%100!==0||M%400===0},S=new WeakSet,Fl=function(){return K(this,f).toUTC()},st(D,x);let g=D;l.CronDate=g,l.default=g})(xf)),xf}var Cg;function WS(){if(Cg)return Ji;Cg=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.CronMonth=void 0;const l=Wf(),u=Hs(),d=1,o=12,g=Object.freeze([]);let f=class extends u.CronField{static get min(){return d}static get max(){return o}static get chars(){return g}static get daysInMonth(){return l.DAYS_IN_MONTH}constructor(w,b){super(w,b),this.validate()}get values(){return super.values}};return Ji.CronMonth=f,Ji}var Ki={},Og;function IS(){if(Og)return Ki;Og=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.CronSecond=void 0;const l=Hs(),u=0,d=59,o=Object.freeze([]);let g=class extends l.CronField{static get min(){return u}static get max(){return d}static get chars(){return o}constructor(y,w){super(y,w),this.validate()}get values(){return super.values}};return Ki.CronSecond=g,Ki}var Dg;function If(){return Dg||(Dg=1,(function(l){var u=Rs&&Rs.__createBinding||(Object.create?(function(o,g,f,y){y===void 0&&(y=f);var w=Object.getOwnPropertyDescriptor(g,f);(!w||("get"in w?!g.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return g[f]}}),Object.defineProperty(o,y,w)}):(function(o,g,f,y){y===void 0&&(y=f),o[y]=g[f]})),d=Rs&&Rs.__exportStar||function(o,g){for(var f in o)f!=="default"&&!Object.prototype.hasOwnProperty.call(g,f)&&u(g,o,f)};Object.defineProperty(l,"__esModule",{value:!0}),d($S(),l),d(FS(),l),d(GS(),l),d(Hs(),l),d(ZS(),l),d(QS(),l),d(WS(),l),d(IS(),l)})(Rs)),Rs}var Rg;function Py(){var d,o,g,f,y,w,b,x,Zy,Qy;if(Rg)return Zi;Rg=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.CronFieldCollection=void 0;const l=If();let u=(x=class{constructor({second:D,minute:q,hour:M,dayOfMonth:$,month:X,dayOfWeek:Q}){st(this,d);st(this,o);st(this,g);st(this,f);st(this,y);st(this,w);if(!D)throw new Error("Validation error, Field second is missing");if(!q)throw new Error("Validation error, Field minute is missing");if(!M)throw new Error("Validation error, Field hour is missing");if(!$)throw new Error("Validation error, Field dayOfMonth is missing");if(!X)throw new Error("Validation error, Field month is missing");if(!Q)throw new Error("Validation error, Field dayOfWeek is missing");if(X.values.length===1&&!$.hasLastChar&&!(parseInt($.values[0],10)<=l.CronMonth.daysInMonth[X.values[0]-1]))throw new Error("Invalid explicit day of month definition");Ee(this,d,D),Ee(this,o,q),Ee(this,g,M),Ee(this,y,X),Ee(this,w,Q),Ee(this,f,$)}static from(D,q){return new x({second:this.resolveField(l.CronSecond,D.second,q.second),minute:this.resolveField(l.CronMinute,D.minute,q.minute),hour:this.resolveField(l.CronHour,D.hour,q.hour),dayOfMonth:this.resolveField(l.CronDayOfMonth,D.dayOfMonth,q.dayOfMonth),month:this.resolveField(l.CronMonth,D.month,q.month),dayOfWeek:this.resolveField(l.CronDayOfWeek,D.dayOfWeek,q.dayOfWeek)})}static resolveField(D,q,M){return M?M instanceof l.CronField?M:new D(M):q}get second(){return K(this,d)}get minute(){return K(this,o)}get hour(){return K(this,g)}get dayOfMonth(){return K(this,f)}get month(){return K(this,y)}get dayOfWeek(){return K(this,w)}static compactField(D){if(D.length===0)return[];const q=[];let M;return D.forEach(($,X,Q)=>{if(M===void 0){M={start:$,count:1};return}const F=Q[X-1]||M.start,J=Q[X+1];if($==="L"||$==="W"){q.push(M),q.push({start:$,count:1}),M=void 0;return}if(M.step===void 0&&J!==void 0){const ne=$-F,ee=J-$;if(ne<=ee){M={...M,count:2,end:$,step:ne};return}M.step=1}$-(M.end??0)===M.step?(M.count++,M.end=$):(M.count===1?q.push({start:M.start,count:1}):M.count===2?(q.push({start:M.start,count:1}),q.push({start:M.end??F,count:1})):q.push(M),M={start:$,count:1})}),M&&q.push(M),q}stringifyField(D){var X;let q=D.max,M=D.values;if(D instanceof l.CronDayOfWeek){q=6;const Q=K(this,w).values;M=Q[Q.length-1]===7?Q.slice(0,-1):Q}D instanceof l.CronDayOfMonth&&(q=K(this,y).values.length===1?l.CronMonth.daysInMonth[K(this,y).values[0]-1]:D.max);const $=x.compactField(M);if($.length===1){const Q=Ne(X=x,b,Zy).call(X,D,$[0],q);if(Q)return Q}return $.map(Q=>{var J;const F=Q.count===1?Q.start.toString():Ne(J=x,b,Qy).call(J,Q,q);return D instanceof l.CronDayOfWeek&&D.nthDay>0?`${F}#${D.nthDay}`:F}).join(",")}stringify(D=!1){const q=[];return D&&q.push(this.stringifyField(K(this,d))),q.push(this.stringifyField(K(this,o)),this.stringifyField(K(this,g)),this.stringifyField(K(this,f)),this.stringifyField(K(this,y)),this.stringifyField(K(this,w))),q.join(" ")}serialize(){return{second:K(this,d).serialize(),minute:K(this,o).serialize(),hour:K(this,g).serialize(),dayOfMonth:K(this,f).serialize(),month:K(this,y).serialize(),dayOfWeek:K(this,w).serialize()}}},d=new WeakMap,o=new WeakMap,g=new WeakMap,f=new WeakMap,y=new WeakMap,w=new WeakMap,b=new WeakSet,Zy=function(D,q,M){const $=q.step;return $?$===1&&q.start===D.min&&q.end&&q.end>=M?D.hasQuestionMarkChar?"?":"*":$!==1&&q.start===D.min&&q.end&&q.end>=M-$+1?`*/${$}`:null:null},Qy=function(D,q){const M=D.step;if(M===1)return`${D.start}-${D.end}`;const $=D.start===0?D.count-1:D.count;if(!M)throw new Error("Unexpected range step");if(!D.end)throw new Error("Unexpected range end");if(M*$>D.end){const X=(F,J)=>{if(typeof D.start!="number")throw new Error("Unexpected range start");return J%M===0?D.start+J:null};if(typeof D.start!="number")throw new Error("Unexpected range start");const Q={length:D.end-D.start+1};return Array.from(Q,X).filter(F=>F!==null).join(",")}return D.end===q-M+1?`${D.start}/${M}`:`${D.start}-${D.end}/${M}`},st(x,b),x);return Zi.CronFieldCollection=u,Zi}var pf={},Ag;function tx(){return Ag||(Ag=1,(function(l){var g,f,y,w,b,x,N,S,T,Gl,q,_s,Wy,Iy,Xy,Jy,Mf,Ky,ex,Ar;Object.defineProperty(l,"__esModule",{value:!0}),l.CronExpression=l.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE=l.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE=void 0;const u=Wf();l.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE="Out of the time span range",l.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE="Invalid expression, loop limit exceeded";const d=1e4,W=class W{constructor(C,ae){st(this,q);st(this,g);st(this,f);st(this,y);st(this,w);st(this,b);st(this,x);st(this,N,null);st(this,S,!1);Ee(this,g,ae),Ee(this,f,ae.tz),Ee(this,w,ae.startDate?new u.CronDate(ae.startDate,K(this,f)):null),Ee(this,b,ae.endDate?new u.CronDate(ae.endDate,K(this,f)):null);let Y=ae.currentDate??ae.startDate;if(Y){const ie=new u.CronDate(Y,K(this,f));K(this,w)&&ie.getTime()<K(this,w).getTime()?Y=K(this,w):K(this,b)&&ie.getTime()>K(this,b).getTime()&&(Y=K(this,b))}Ee(this,y,new u.CronDate(Y,K(this,f))),Ee(this,x,C)}get fields(){return K(this,x)}static fieldsToExpression(C,ae){return new W(C,ae||{})}next(){return Ne(this,q,Ar).call(this)}prev(){return Ne(this,q,Ar).call(this,!0)}hasNext(){const C=K(this,y);try{return Ne(this,q,Ar).call(this),!0}catch{return!1}finally{Ee(this,y,C)}}hasPrev(){const C=K(this,y);try{return Ne(this,q,Ar).call(this,!0),!0}catch{return!1}finally{Ee(this,y,C)}}take(C){const ae=[];if(C>=0)for(let Y=0;Y<C;Y++)try{ae.push(this.next())}catch{return ae}else for(let Y=0;Y>C;Y--)try{ae.push(this.prev())}catch{return ae}return ae}reset(C){Ee(this,y,new u.CronDate(C||K(this,g).currentDate))}stringify(C=!1){return K(this,x).stringify(C)}includesDate(C){const{second:ae,minute:Y,hour:ie,month:ge}=K(this,x),he=new u.CronDate(C,K(this,f));return!(!ae.values.includes(he.getSeconds())||!Y.values.includes(he.getMinutes())||!ie.values.includes(he.getHours())||!ge.values.includes(he.getMonth()+1)||!Ne(this,q,Mf).call(this,he)||K(this,x).dayOfWeek.nthDay>0&&Math.ceil(he.getDate()/7)!==K(this,x).dayOfWeek.nthDay)}toString(){return K(this,g).expression||this.stringify(!0)}[Symbol.iterator](){return{next:()=>({value:Ne(this,q,Ar).call(this),done:!this.hasNext()})}}};g=new WeakMap,f=new WeakMap,y=new WeakMap,w=new WeakMap,b=new WeakMap,x=new WeakMap,N=new WeakMap,S=new WeakMap,T=new WeakSet,Gl=function(C,ae){return ae.some(Y=>Y===C)},q=new WeakSet,_s=function(C,ae){return C[ae?C.length-1:0]},Wy=function(C){const ae=`${C.getFullYear()}-${C.getMonth()+1}-${C.getDate()}`;if(K(this,N)===ae)return K(this,S);const Y=new u.CronDate(C);Y.setStartOfDay();const ie=new u.CronDate(C);return ie.setEndOfDay(),Ee(this,N,ae),Ee(this,S,Y.getUTCOffset()!==ie.getUTCOffset()),K(this,S)},Iy=function(C,ae,Y){const ie=K(this,x).second.values,ge=C.getSeconds(),he=K(this,x).second.findNearestValue(ge,Y);if(he!==null){C.setSeconds(he);return}C.applyDateOperation(ae,u.TimeUnit.Minute,K(this,x).hour.values.length),C.setSeconds(Ne(this,q,_s).call(this,ie,Y))},Xy=function(C,ae,Y){const ie=K(this,x).minute.values,ge=K(this,x).second.values,he=C.getMinutes(),V=K(this,x).minute.findNearestValue(he,Y);if(V!==null){C.setMinutes(V),C.setSeconds(Ne(this,q,_s).call(this,ge,Y));return}C.applyDateOperation(ae,u.TimeUnit.Hour,K(this,x).hour.values.length),C.setMinutes(Ne(this,q,_s).call(this,ie,Y)),C.setSeconds(Ne(this,q,_s).call(this,ge,Y))},Jy=function(C,ae){const Y=ae.isLastWeekdayOfMonth();return C.some(ie=>{const ge=parseInt(ie.toString().charAt(0),10)%7;if(Number.isNaN(ge))throw new Error(`Invalid last weekday of the month expression: ${ie}`);return ae.getDay()===ge&&Y})},Mf=function(C){var re,ye,Te;const ae=K(this,x).dayOfMonth.isWildcard,Y=!ae,ie=K(this,x).dayOfWeek.isWildcard,ge=!ie,he=Ne(re=W,T,Gl).call(re,C.getDate(),K(this,x).dayOfMonth.values)||K(this,x).dayOfMonth.hasLastChar&&C.isLastDayOfMonth(),V=Ne(ye=W,T,Gl).call(ye,C.getDay(),K(this,x).dayOfWeek.values)||K(this,x).dayOfWeek.hasLastChar&&Ne(Te=W,T,Jy).call(Te,K(this,x).dayOfWeek.values,C);return!!(Y&&ge&&(he||V)||he&&!ge||ae&&!ie&&V)},Ky=function(C,ae,Y){var pe,k;const ie=K(this,x).hour.values,ge=ie,he=C.getHours(),V=Ne(pe=W,T,Gl).call(pe,he,ie),re=C.dstStart===he,ye=C.dstEnd===he;if(re)return Ne(k=W,T,Gl).call(k,he-1,ie)?!0:(C.invokeDateOperation(ae,u.TimeUnit.Hour),!1);if(ye&&!Y)return C.dstEnd=null,C.applyDateOperation(u.DateMathOp.Add,u.TimeUnit.Hour,ge.length),!1;if(V)return!0;C.dstStart=null;const Te=K(this,x).hour.findNearestValue(he,Y);if(Te===null)return C.applyDateOperation(ae,u.TimeUnit.Day,ge.length),!1;if(Ne(this,q,Wy).call(this,C)){const le=Y?he-Te:Te-he;for(let me=0;me<le;me++)C.applyDateOperation(ae,u.TimeUnit.Hour,ge.length)}else C.setHours(Te);return C.setMinutes(Ne(this,q,_s).call(this,K(this,x).minute.values,Y)),C.setSeconds(Ne(this,q,_s).call(this,K(this,x).second.values,Y)),!1},ex=function(C){if(!K(this,w)&&!K(this,b))return;const ae=C.getTime();if(K(this,w)&&ae<K(this,w).getTime())throw new Error(l.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE);if(K(this,b)&&ae>K(this,b).getTime())throw new Error(l.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE)},Ar=function(C=!1){var he,V,re;const ae=C?u.DateMathOp.Subtract:u.DateMathOp.Add,Y=new u.CronDate(K(this,y)),ie=Y.getTime();let ge=0;for(;++ge<d;){if(Ne(this,q,ex).call(this,Y),!Ne(this,q,Mf).call(this,Y)){Y.applyDateOperation(ae,u.TimeUnit.Day,K(this,x).hour.values.length);continue}if(!(K(this,x).dayOfWeek.nthDay<=0||Math.ceil(Y.getDate()/7)===K(this,x).dayOfWeek.nthDay)){Y.applyDateOperation(ae,u.TimeUnit.Day,K(this,x).hour.values.length);continue}if(!Ne(he=W,T,Gl).call(he,Y.getMonth()+1,K(this,x).month.values)){Y.applyDateOperation(ae,u.TimeUnit.Month,K(this,x).hour.values.length);continue}if(Ne(this,q,Ky).call(this,Y,ae,C)){if(!Ne(V=W,T,Gl).call(V,Y.getMinutes(),K(this,x).minute.values)){Ne(this,q,Xy).call(this,Y,ae,C);continue}if(!Ne(re=W,T,Gl).call(re,Y.getSeconds(),K(this,x).second.values)){Ne(this,q,Iy).call(this,Y,ae,C);continue}if(ie===Y.getTime()){(ae==="Add"||Y.getMilliseconds()===0)&&Y.applyDateOperation(ae,u.TimeUnit.Second,K(this,x).hour.values.length);continue}break}}if(ge>d)throw new Error(l.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE);return Y.getMilliseconds()!==0&&Y.setMilliseconds(0),Ee(this,y,Y),Y},st(W,T);let o=W;l.CronExpression=o,l.default=o})(pf)),pf}var Hc={},_g;function XS(){if(_g)return Hc;_g=1,Object.defineProperty(Hc,"__esModule",{value:!0}),Hc.seededRandom=d;function l(o){let g=2166136261;for(let f=0;f<o.length;f++)g^=o.charCodeAt(f),g=Math.imul(g,16777619);return()=>g>>>0}function u(o){return()=>{let g=o+=1831565813;return g=Math.imul(g^g>>>15,g|1),g^=g+Math.imul(g^g>>>7,g|61),((g^g>>>14)>>>0)/4294967296}}function d(o){const g=o?l(o)():Math.floor(Math.random()*1e10);return u(g)}return Hc}var kg;function Of(){var x,N,ax,ks,nx,lx,sx,rx,ix,ux,cx,Cf,ox,dx;if(kg)return Ua;kg=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.CronExpressionParser=Ua.DayOfWeek=Ua.Months=Ua.CronUnit=Ua.PredefinedExpressions=void 0;const l=Py(),u=tx(),d=XS(),o=If();var g;(function(P){P["@yearly"]="0 0 0 1 1 *",P["@annually"]="0 0 0 1 1 *",P["@monthly"]="0 0 0 1 * *",P["@weekly"]="0 0 0 * * 0",P["@daily"]="0 0 0 * * *",P["@hourly"]="0 0 * * * *",P["@minutely"]="0 * * * * *",P["@secondly"]="* * * * * *",P["@weekdays"]="0 0 0 * * 1-5",P["@weekends"]="0 0 0 * * 0,6"})(g||(Ua.PredefinedExpressions=g={}));var f;(function(P){P.Second="Second",P.Minute="Minute",P.Hour="Hour",P.DayOfMonth="DayOfMonth",P.Month="Month",P.DayOfWeek="DayOfWeek"})(f||(Ua.CronUnit=f={}));var y;(function(P){P[P.jan=1]="jan",P[P.feb=2]="feb",P[P.mar=3]="mar",P[P.apr=4]="apr",P[P.may=5]="may",P[P.jun=6]="jun",P[P.jul=7]="jul",P[P.aug=8]="aug",P[P.sep=9]="sep",P[P.oct=10]="oct",P[P.nov=11]="nov",P[P.dec=12]="dec"})(y||(Ua.Months=y={}));var w;(function(P){P[P.sun=0]="sun",P[P.mon=1]="mon",P[P.tue=2]="tue",P[P.wed=3]="wed",P[P.thu=4]="thu",P[P.fri=5]="fri",P[P.sat=6]="sat"})(w||(Ua.DayOfWeek=w={}));let b=(N=class{static parse(W,A={}){var me,xe,Re,Me,ke,jt,et,ta;const{strict:C=!1,hashSeed:ae}=A,Y=(0,d.seededRandom)(ae);W=g[W]||W;const ie=Ne(me=N,x,ax).call(me,W,C);if(!(ie.dayOfMonth==="*"||ie.dayOfWeek==="*"||!C))throw new Error("Cannot use both dayOfMonth and dayOfWeek together in strict mode!");const ge=Ne(xe=N,x,ks).call(xe,f.Second,ie.second,o.CronSecond.constraints,Y),he=Ne(Re=N,x,ks).call(Re,f.Minute,ie.minute,o.CronMinute.constraints,Y),V=Ne(Me=N,x,ks).call(Me,f.Hour,ie.hour,o.CronHour.constraints,Y),re=Ne(ke=N,x,ks).call(ke,f.Month,ie.month,o.CronMonth.constraints,Y),ye=Ne(jt=N,x,ks).call(jt,f.DayOfMonth,ie.dayOfMonth,o.CronDayOfMonth.constraints,Y),{dayOfWeek:Te,nthDayOfWeek:pe}=Ne(et=N,x,ox).call(et,ie.dayOfWeek),k=Ne(ta=N,x,ks).call(ta,f.DayOfWeek,Te,o.CronDayOfWeek.constraints,Y),le=new l.CronFieldCollection({second:new o.CronSecond(ge,{rawValue:ie.second}),minute:new o.CronMinute(he,{rawValue:ie.minute}),hour:new o.CronHour(V,{rawValue:ie.hour}),dayOfMonth:new o.CronDayOfMonth(ye,{rawValue:ie.dayOfMonth}),month:new o.CronMonth(re,{rawValue:ie.month}),dayOfWeek:new o.CronDayOfWeek(k,{rawValue:ie.dayOfWeek,nthDayOfWeek:pe})});return new u.CronExpression(le,{...A,expression:W})}},x=new WeakSet,ax=function(W,A){if(A&&!W.length)throw new Error("Invalid cron expression");W=W||"0 * * * * *";const C=W.trim().split(/\s+/);if(A&&C.length<6)throw new Error("Invalid cron expression, expected 6 fields");if(C.length>6)throw new Error("Invalid cron expression, too many fields");const ae=["*","*","*","*","*","0"];C.length<ae.length&&C.unshift(...ae.slice(C.length));const[Y,ie,ge,he,V,re]=C;return{second:Y,minute:ie,hour:ge,dayOfMonth:he,month:V,dayOfWeek:re}},ks=function(W,A,C,ae){if((W===f.Month||W===f.DayOfWeek)&&(A=A.replace(/[a-z]{3}/gi,Y=>{Y=Y.toLowerCase();const ie=y[Y]||w[Y];if(ie===void 0)throw new Error(`Validation error, cannot resolve alias "${Y}"`);return ie.toString()})),!C.validChars.test(A))throw new Error(`Invalid characters, got value: ${A}`);return A=Ne(this,x,nx).call(this,A,C),A=Ne(this,x,lx).call(this,A,C,ae),Ne(this,x,sx).call(this,W,A,C)},nx=function(W,A){return W.replace(/[*?]/g,A.min+"-"+A.max)},lx=function(W,A,C){const ae=C();return W.replace(/H(?:\((\d+)-(\d+)\))?(?:\/(\d+))?/g,(Y,ie,ge,he)=>{if(ie&&ge&&he){const V=parseInt(ie,10),re=parseInt(ge,10),ye=parseInt(he,10);if(V>re)throw new Error(`Invalid range: ${V}-${re}, min > max`);if(ye<=0)throw new Error(`Invalid step: ${ye}, must be positive`);const Te=Math.max(V,A.min),pe=Math.floor(ae*ye),k=[];for(let le=Math.floor(Te/ye)*ye+pe;le<=re;le+=ye)le>=Te&&k.push(le);return k.join(",")}else if(ie&&ge){const V=parseInt(ie,10),re=parseInt(ge,10);if(V>re)throw new Error(`Invalid range: ${V}-${re}, min > max`);return String(Math.floor(ae*(re-V+1))+V)}else if(he){const V=parseInt(he,10);if(V<=0)throw new Error(`Invalid step: ${V}, must be positive`);const re=Math.floor(ae*V),ye=[];for(let Te=Math.floor(A.min/V)*V+re;Te<=A.max;Te+=V)Te>=A.min&&ye.push(Te);return ye.join(",")}else return String(Math.floor(ae*(A.max-A.min+1)+A.min))})},sx=function(W,A,C){const ae=[];function Y(ge,he){var V;if(Array.isArray(ge))ae.push(...ge);else if(Ne(V=N,x,dx).call(V,he,ge))ae.push(ge);else{const re=parseInt(ge.toString(),10);if(!(re>=he.min&&re<=he.max))throw new Error(`Constraint error, got value ${ge} expected range ${he.min}-${he.max}`);ae.push(W===f.DayOfWeek?re%7:ge)}}return A.split(",").forEach(ge=>{var he;if(!(ge.length>0))throw new Error("Invalid list value format");Y(Ne(he=N,x,rx).call(he,W,ge,C),C)}),ae},rx=function(W,A,C){var Y,ie;const ae=A.split("/");if(ae.length>2)throw new Error(`Invalid repeat: ${A}`);return ae.length===2?(isNaN(parseInt(ae[0],10))||(ae[0]=`${ae[0]}-${C.max}`),Ne(Y=N,x,Cf).call(Y,W,ae[0],parseInt(ae[1],10),C)):Ne(ie=N,x,Cf).call(ie,W,A,1,C)},ix=function(W,A,C){if(!(!isNaN(W)&&!isNaN(A)&&W>=C.min&&A<=C.max))throw new Error(`Constraint error, got range ${W}-${A} expected range ${C.min}-${C.max}`);if(W>A)throw new Error(`Invalid range: ${W}-${A}, min(${W}) > max(${A})`)},ux=function(W){if(!(!isNaN(W)&&W>0))throw new Error(`Constraint error, cannot repeat at every ${W} time.`)},cx=function(W,A,C,ae){const Y=[];W===f.DayOfWeek&&C%7===0&&Y.push(0);for(let ie=A;ie<=C;ie+=ae)Y.indexOf(ie)===-1&&Y.push(ie);return Y},Cf=function(W,A,C,ae){const Y=A.split("-");if(Y.length<=1)return isNaN(+A)?A:+A;const[ie,ge]=Y.map(he=>parseInt(he,10));return Ne(this,x,ix).call(this,ie,ge,ae),Ne(this,x,ux).call(this,C),Ne(this,x,cx).call(this,W,ie,ge,C)},ox=function(W){const A=W.split("#");if(A.length<=1)return{dayOfWeek:A[0]};const C=+A[A.length-1],ae=W.match(/([,-/])/);if(ae!==null)throw new Error(`Constraint error, invalid dayOfWeek \`#\` and \`${ae==null?void 0:ae[0]}\` special characters are incompatible`);if(!(A.length<=2&&!isNaN(C)&&C>=1&&C<=5))throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)");return{dayOfWeek:A[0],nthDayOfWeek:C}},dx=function(W,A){return W.chars.some(C=>A.toString().includes(C))},st(N,x),N);return Ua.CronExpressionParser=b,Ua}var mn={};const JS={},KS=Object.freeze(Object.defineProperty({__proto__:null,default:JS},Symbol.toStringTag,{value:"Module"})),zg=qp(KS);var Ug;function e2(){var f,y,Df,fx;if(Ug)return mn;Ug=1;var l=mn&&mn.__createBinding||(Object.create?(function(x,N,S,T){T===void 0&&(T=S);var D=Object.getOwnPropertyDescriptor(N,S);(!D||("get"in D?!N.__esModule:D.writable||D.configurable))&&(D={enumerable:!0,get:function(){return N[S]}}),Object.defineProperty(x,T,D)}):(function(x,N,S,T){T===void 0&&(T=S),x[T]=N[S]})),u=mn&&mn.__setModuleDefault||(Object.create?(function(x,N){Object.defineProperty(x,"default",{enumerable:!0,value:N})}):function(x,N){x.default=N}),d=mn&&mn.__importStar||(function(){var x=function(N){return x=Object.getOwnPropertyNames||function(S){var T=[];for(var D in S)Object.prototype.hasOwnProperty.call(S,D)&&(T[T.length]=D);return T},x(N)};return function(N){if(N&&N.__esModule)return N;var S={};if(N!=null)for(var T=x(N),D=0;D<T.length;D++)T[D]!=="default"&&l(S,N,T[D]);return u(S,N),S}})();Object.defineProperty(mn,"__esModule",{value:!0}),mn.CronFileParser=void 0;const o=Of();let g=(y=class{static async parseFile(N){var D;const{readFile:S}=await Promise.resolve().then(()=>d(zg)),T=await S(N,"utf8");return Ne(D=y,f,Df).call(D,T)}static parseFileSync(N){var D;const{readFileSync:S}=zg,T=S(N,"utf8");return Ne(D=y,f,Df).call(D,T)}},f=new WeakSet,Df=function(N){var D;const S=N.split(`
376
+ `),T={variables:{},expressions:[],errors:{}};for(const q of S){const M=q.trim();if(M.length===0||M.startsWith("#"))continue;const $=M.match(/^(.*)=(.*)$/);if($){const[,X,Q]=$;T.variables[X]=Q.replace(/["']/g,"");continue}try{const X=Ne(D=y,f,fx).call(D,M);T.expressions.push(X.interval)}catch(X){T.errors[M]=X}}return T},fx=function(N){const S=N.split(" ");return{interval:o.CronExpressionParser.parse(S.slice(0,5).join(" ")),command:S.slice(5,S.length)}},st(y,f),y);return mn.CronFileParser=g,mn}var Hg;function t2(){return Hg||(Hg=1,(function(l){var u=Ds&&Ds.__createBinding||(Object.create?(function(x,N,S,T){T===void 0&&(T=S);var D=Object.getOwnPropertyDescriptor(N,S);(!D||("get"in D?!N.__esModule:D.writable||D.configurable))&&(D={enumerable:!0,get:function(){return N[S]}}),Object.defineProperty(x,T,D)}):(function(x,N,S,T){T===void 0&&(T=S),x[T]=N[S]})),d=Ds&&Ds.__exportStar||function(x,N){for(var S in x)S!=="default"&&!Object.prototype.hasOwnProperty.call(N,S)&&u(N,x,S)};Object.defineProperty(l,"__esModule",{value:!0}),l.CronFileParser=l.CronExpressionParser=l.CronExpression=l.CronFieldCollection=l.CronDate=void 0;const o=Of();var g=Wf();Object.defineProperty(l,"CronDate",{enumerable:!0,get:function(){return g.CronDate}});var f=Py();Object.defineProperty(l,"CronFieldCollection",{enumerable:!0,get:function(){return f.CronFieldCollection}});var y=tx();Object.defineProperty(l,"CronExpression",{enumerable:!0,get:function(){return y.CronExpression}});var w=Of();Object.defineProperty(l,"CronExpressionParser",{enumerable:!0,get:function(){return w.CronExpressionParser}});var b=e2();Object.defineProperty(l,"CronFileParser",{enumerable:!0,get:function(){return b.CronFileParser}}),d(If(),l),l.default=o.CronExpressionParser})(Ds)),Ds}var a2=t2();const hx=6048e5,n2=864e5,l2=6e4,s2=36e5,Lg=Symbol.for("constructDateFrom");function Ha(l,u){return typeof l=="function"?l(u):l&&typeof l=="object"&&Lg in l?l[Lg](u):l instanceof Date?new l.constructor(u):new Date(u)}function zt(l,u){return Ha(u||l,l)}function r2(l,u,d){return Ha(l,+zt(l)+u)}function Lc(l,u,d){return r2(l,u*s2)}let i2={};function Jc(){return i2}function su(l,u){var w,b,x,N;const d=Jc(),o=(u==null?void 0:u.weekStartsOn)??((b=(w=u==null?void 0:u.locale)==null?void 0:w.options)==null?void 0:b.weekStartsOn)??d.weekStartsOn??((N=(x=d.locale)==null?void 0:x.options)==null?void 0:N.weekStartsOn)??0,g=zt(l,u==null?void 0:u.in),f=g.getDay(),y=(f<o?7:0)+f-o;return g.setDate(g.getDate()-y),g.setHours(0,0,0,0),g}function Qc(l,u){return su(l,{...u,weekStartsOn:1})}function mx(l,u){const d=zt(l,u==null?void 0:u.in),o=d.getFullYear(),g=Ha(d,0);g.setFullYear(o+1,0,4),g.setHours(0,0,0,0);const f=Qc(g),y=Ha(d,0);y.setFullYear(o,0,4),y.setHours(0,0,0,0);const w=Qc(y);return d.getTime()>=f.getTime()?o+1:d.getTime()>=w.getTime()?o:o-1}function qg(l){const u=zt(l),d=new Date(Date.UTC(u.getFullYear(),u.getMonth(),u.getDate(),u.getHours(),u.getMinutes(),u.getSeconds(),u.getMilliseconds()));return d.setUTCFullYear(u.getFullYear()),+l-+d}function u2(l,...u){const d=Ha.bind(null,u.find(o=>typeof o=="object"));return u.map(d)}function Vg(l,u){const d=zt(l,u==null?void 0:u.in);return d.setHours(0,0,0,0),d}function c2(l,u,d){const[o,g]=u2(d==null?void 0:d.in,l,u),f=Vg(o),y=Vg(g),w=+f-qg(f),b=+y-qg(y);return Math.round((w-b)/n2)}function o2(l,u){const d=mx(l,u),o=Ha(l,0);return o.setFullYear(d,0,4),o.setHours(0,0,0,0),Qc(o)}function d2(l,u){let d,o=u==null?void 0:u.in;return l.forEach(g=>{!o&&typeof g=="object"&&(o=Ha.bind(null,g));const f=zt(g,o);(!d||d<f||isNaN(+f))&&(d=f)}),Ha(o,d||NaN)}function f2(l,u){let d,o=u==null?void 0:u.in;return l.forEach(g=>{!o&&typeof g=="object"&&(o=Ha.bind(null,g));const f=zt(g,o);(!d||d>f||isNaN(+f))&&(d=f)}),Ha(o,d||NaN)}function h2(l){return l instanceof Date||typeof l=="object"&&Object.prototype.toString.call(l)==="[object Date]"}function m2(l){return!(!h2(l)&&typeof l!="number"||isNaN(+zt(l)))}function g2(l){return u=>{const o=(l?Math[l]:Math.trunc)(u);return o===0?0:o}}function y2(l,u){return+zt(l)-+zt(u)}function Bg(l,u,d){const o=y2(l,u)/l2;return g2(d==null?void 0:d.roundingMethod)(o)}function x2(l,u){const d=zt(l,u==null?void 0:u.in);return d.setFullYear(d.getFullYear(),0,1),d.setHours(0,0,0,0),d}const p2={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},v2=(l,u,d)=>{let o;const g=p2[l];return typeof g=="string"?o=g:u===1?o=g.one:o=g.other.replace("{{count}}",u.toString()),d!=null&&d.addSuffix?d.comparison&&d.comparison>0?"in "+o:o+" ago":o};function vf(l){return(u={})=>{const d=u.width?String(u.width):l.defaultWidth;return l.formats[d]||l.formats[l.defaultWidth]}}const b2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},S2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},w2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},N2={date:vf({formats:b2,defaultWidth:"full"}),time:vf({formats:S2,defaultWidth:"full"}),dateTime:vf({formats:w2,defaultWidth:"full"})},j2={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},E2=(l,u,d,o)=>j2[l];function eu(l){return(u,d)=>{const o=d!=null&&d.context?String(d.context):"standalone";let g;if(o==="formatting"&&l.formattingValues){const y=l.defaultFormattingWidth||l.defaultWidth,w=d!=null&&d.width?String(d.width):y;g=l.formattingValues[w]||l.formattingValues[y]}else{const y=l.defaultWidth,w=d!=null&&d.width?String(d.width):l.defaultWidth;g=l.values[w]||l.values[y]}const f=l.argumentCallback?l.argumentCallback(u):u;return g[f]}}const T2={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},M2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},C2={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},O2={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},D2={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},R2={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},A2=(l,u)=>{const d=Number(l),o=d%100;if(o>20||o<10)switch(o%10){case 1:return d+"st";case 2:return d+"nd";case 3:return d+"rd"}return d+"th"},_2={ordinalNumber:A2,era:eu({values:T2,defaultWidth:"wide"}),quarter:eu({values:M2,defaultWidth:"wide",argumentCallback:l=>l-1}),month:eu({values:C2,defaultWidth:"wide"}),day:eu({values:O2,defaultWidth:"wide"}),dayPeriod:eu({values:D2,defaultWidth:"wide",formattingValues:R2,defaultFormattingWidth:"wide"})};function tu(l){return(u,d={})=>{const o=d.width,g=o&&l.matchPatterns[o]||l.matchPatterns[l.defaultMatchWidth],f=u.match(g);if(!f)return null;const y=f[0],w=o&&l.parsePatterns[o]||l.parsePatterns[l.defaultParseWidth],b=Array.isArray(w)?z2(w,S=>S.test(y)):k2(w,S=>S.test(y));let x;x=l.valueCallback?l.valueCallback(b):b,x=d.valueCallback?d.valueCallback(x):x;const N=u.slice(y.length);return{value:x,rest:N}}}function k2(l,u){for(const d in l)if(Object.prototype.hasOwnProperty.call(l,d)&&u(l[d]))return d}function z2(l,u){for(let d=0;d<l.length;d++)if(u(l[d]))return d}function U2(l){return(u,d={})=>{const o=u.match(l.matchPattern);if(!o)return null;const g=o[0],f=u.match(l.parsePattern);if(!f)return null;let y=l.valueCallback?l.valueCallback(f[0]):f[0];y=d.valueCallback?d.valueCallback(y):y;const w=u.slice(g.length);return{value:y,rest:w}}}const H2=/^(\d+)(th|st|nd|rd)?/i,L2=/\d+/i,q2={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},V2={any:[/^b/i,/^(a|c)/i]},B2={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Y2={any:[/1/i,/2/i,/3/i,/4/i]},$2={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},F2={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},G2={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Z2={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Q2={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},P2={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},W2={ordinalNumber:U2({matchPattern:H2,parsePattern:L2,valueCallback:l=>parseInt(l,10)}),era:tu({matchPatterns:q2,defaultMatchWidth:"wide",parsePatterns:V2,defaultParseWidth:"any"}),quarter:tu({matchPatterns:B2,defaultMatchWidth:"wide",parsePatterns:Y2,defaultParseWidth:"any",valueCallback:l=>l+1}),month:tu({matchPatterns:$2,defaultMatchWidth:"wide",parsePatterns:F2,defaultParseWidth:"any"}),day:tu({matchPatterns:G2,defaultMatchWidth:"wide",parsePatterns:Z2,defaultParseWidth:"any"}),dayPeriod:tu({matchPatterns:Q2,defaultMatchWidth:"any",parsePatterns:P2,defaultParseWidth:"any"})},I2={code:"en-US",formatDistance:v2,formatLong:N2,formatRelative:E2,localize:_2,match:W2,options:{weekStartsOn:0,firstWeekContainsDate:1}};function X2(l,u){const d=zt(l,u==null?void 0:u.in);return c2(d,x2(d))+1}function J2(l,u){const d=zt(l,u==null?void 0:u.in),o=+Qc(d)-+o2(d);return Math.round(o/hx)+1}function gx(l,u){var N,S,T,D;const d=zt(l,u==null?void 0:u.in),o=d.getFullYear(),g=Jc(),f=(u==null?void 0:u.firstWeekContainsDate)??((S=(N=u==null?void 0:u.locale)==null?void 0:N.options)==null?void 0:S.firstWeekContainsDate)??g.firstWeekContainsDate??((D=(T=g.locale)==null?void 0:T.options)==null?void 0:D.firstWeekContainsDate)??1,y=Ha((u==null?void 0:u.in)||l,0);y.setFullYear(o+1,0,f),y.setHours(0,0,0,0);const w=su(y,u),b=Ha((u==null?void 0:u.in)||l,0);b.setFullYear(o,0,f),b.setHours(0,0,0,0);const x=su(b,u);return+d>=+w?o+1:+d>=+x?o:o-1}function K2(l,u){var w,b,x,N;const d=Jc(),o=(u==null?void 0:u.firstWeekContainsDate)??((b=(w=u==null?void 0:u.locale)==null?void 0:w.options)==null?void 0:b.firstWeekContainsDate)??d.firstWeekContainsDate??((N=(x=d.locale)==null?void 0:x.options)==null?void 0:N.firstWeekContainsDate)??1,g=gx(l,u),f=Ha((u==null?void 0:u.in)||l,0);return f.setFullYear(g,0,o),f.setHours(0,0,0,0),su(f,u)}function ew(l,u){const d=zt(l,u==null?void 0:u.in),o=+su(d,u)-+K2(d,u);return Math.round(o/hx)+1}function ct(l,u){const d=l<0?"-":"",o=Math.abs(l).toString().padStart(u,"0");return d+o}const $l={y(l,u){const d=l.getFullYear(),o=d>0?d:1-d;return ct(u==="yy"?o%100:o,u.length)},M(l,u){const d=l.getMonth();return u==="M"?String(d+1):ct(d+1,2)},d(l,u){return ct(l.getDate(),u.length)},a(l,u){const d=l.getHours()/12>=1?"pm":"am";switch(u){case"a":case"aa":return d.toUpperCase();case"aaa":return d;case"aaaaa":return d[0];case"aaaa":default:return d==="am"?"a.m.":"p.m."}},h(l,u){return ct(l.getHours()%12||12,u.length)},H(l,u){return ct(l.getHours(),u.length)},m(l,u){return ct(l.getMinutes(),u.length)},s(l,u){return ct(l.getSeconds(),u.length)},S(l,u){const d=u.length,o=l.getMilliseconds(),g=Math.trunc(o*Math.pow(10,d-3));return ct(g,u.length)}},Dr={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Yg={G:function(l,u,d){const o=l.getFullYear()>0?1:0;switch(u){case"G":case"GG":case"GGG":return d.era(o,{width:"abbreviated"});case"GGGGG":return d.era(o,{width:"narrow"});case"GGGG":default:return d.era(o,{width:"wide"})}},y:function(l,u,d){if(u==="yo"){const o=l.getFullYear(),g=o>0?o:1-o;return d.ordinalNumber(g,{unit:"year"})}return $l.y(l,u)},Y:function(l,u,d,o){const g=gx(l,o),f=g>0?g:1-g;if(u==="YY"){const y=f%100;return ct(y,2)}return u==="Yo"?d.ordinalNumber(f,{unit:"year"}):ct(f,u.length)},R:function(l,u){const d=mx(l);return ct(d,u.length)},u:function(l,u){const d=l.getFullYear();return ct(d,u.length)},Q:function(l,u,d){const o=Math.ceil((l.getMonth()+1)/3);switch(u){case"Q":return String(o);case"QQ":return ct(o,2);case"Qo":return d.ordinalNumber(o,{unit:"quarter"});case"QQQ":return d.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return d.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return d.quarter(o,{width:"wide",context:"formatting"})}},q:function(l,u,d){const o=Math.ceil((l.getMonth()+1)/3);switch(u){case"q":return String(o);case"qq":return ct(o,2);case"qo":return d.ordinalNumber(o,{unit:"quarter"});case"qqq":return d.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return d.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return d.quarter(o,{width:"wide",context:"standalone"})}},M:function(l,u,d){const o=l.getMonth();switch(u){case"M":case"MM":return $l.M(l,u);case"Mo":return d.ordinalNumber(o+1,{unit:"month"});case"MMM":return d.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return d.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return d.month(o,{width:"wide",context:"formatting"})}},L:function(l,u,d){const o=l.getMonth();switch(u){case"L":return String(o+1);case"LL":return ct(o+1,2);case"Lo":return d.ordinalNumber(o+1,{unit:"month"});case"LLL":return d.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return d.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return d.month(o,{width:"wide",context:"standalone"})}},w:function(l,u,d,o){const g=ew(l,o);return u==="wo"?d.ordinalNumber(g,{unit:"week"}):ct(g,u.length)},I:function(l,u,d){const o=J2(l);return u==="Io"?d.ordinalNumber(o,{unit:"week"}):ct(o,u.length)},d:function(l,u,d){return u==="do"?d.ordinalNumber(l.getDate(),{unit:"date"}):$l.d(l,u)},D:function(l,u,d){const o=X2(l);return u==="Do"?d.ordinalNumber(o,{unit:"dayOfYear"}):ct(o,u.length)},E:function(l,u,d){const o=l.getDay();switch(u){case"E":case"EE":case"EEE":return d.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return d.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return d.day(o,{width:"short",context:"formatting"});case"EEEE":default:return d.day(o,{width:"wide",context:"formatting"})}},e:function(l,u,d,o){const g=l.getDay(),f=(g-o.weekStartsOn+8)%7||7;switch(u){case"e":return String(f);case"ee":return ct(f,2);case"eo":return d.ordinalNumber(f,{unit:"day"});case"eee":return d.day(g,{width:"abbreviated",context:"formatting"});case"eeeee":return d.day(g,{width:"narrow",context:"formatting"});case"eeeeee":return d.day(g,{width:"short",context:"formatting"});case"eeee":default:return d.day(g,{width:"wide",context:"formatting"})}},c:function(l,u,d,o){const g=l.getDay(),f=(g-o.weekStartsOn+8)%7||7;switch(u){case"c":return String(f);case"cc":return ct(f,u.length);case"co":return d.ordinalNumber(f,{unit:"day"});case"ccc":return d.day(g,{width:"abbreviated",context:"standalone"});case"ccccc":return d.day(g,{width:"narrow",context:"standalone"});case"cccccc":return d.day(g,{width:"short",context:"standalone"});case"cccc":default:return d.day(g,{width:"wide",context:"standalone"})}},i:function(l,u,d){const o=l.getDay(),g=o===0?7:o;switch(u){case"i":return String(g);case"ii":return ct(g,u.length);case"io":return d.ordinalNumber(g,{unit:"day"});case"iii":return d.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return d.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return d.day(o,{width:"short",context:"formatting"});case"iiii":default:return d.day(o,{width:"wide",context:"formatting"})}},a:function(l,u,d){const g=l.getHours()/12>=1?"pm":"am";switch(u){case"a":case"aa":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"});case"aaa":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return d.dayPeriod(g,{width:"narrow",context:"formatting"});case"aaaa":default:return d.dayPeriod(g,{width:"wide",context:"formatting"})}},b:function(l,u,d){const o=l.getHours();let g;switch(o===12?g=Dr.noon:o===0?g=Dr.midnight:g=o/12>=1?"pm":"am",u){case"b":case"bb":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"});case"bbb":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return d.dayPeriod(g,{width:"narrow",context:"formatting"});case"bbbb":default:return d.dayPeriod(g,{width:"wide",context:"formatting"})}},B:function(l,u,d){const o=l.getHours();let g;switch(o>=17?g=Dr.evening:o>=12?g=Dr.afternoon:o>=4?g=Dr.morning:g=Dr.night,u){case"B":case"BB":case"BBB":return d.dayPeriod(g,{width:"abbreviated",context:"formatting"});case"BBBBB":return d.dayPeriod(g,{width:"narrow",context:"formatting"});case"BBBB":default:return d.dayPeriod(g,{width:"wide",context:"formatting"})}},h:function(l,u,d){if(u==="ho"){let o=l.getHours()%12;return o===0&&(o=12),d.ordinalNumber(o,{unit:"hour"})}return $l.h(l,u)},H:function(l,u,d){return u==="Ho"?d.ordinalNumber(l.getHours(),{unit:"hour"}):$l.H(l,u)},K:function(l,u,d){const o=l.getHours()%12;return u==="Ko"?d.ordinalNumber(o,{unit:"hour"}):ct(o,u.length)},k:function(l,u,d){let o=l.getHours();return o===0&&(o=24),u==="ko"?d.ordinalNumber(o,{unit:"hour"}):ct(o,u.length)},m:function(l,u,d){return u==="mo"?d.ordinalNumber(l.getMinutes(),{unit:"minute"}):$l.m(l,u)},s:function(l,u,d){return u==="so"?d.ordinalNumber(l.getSeconds(),{unit:"second"}):$l.s(l,u)},S:function(l,u){return $l.S(l,u)},X:function(l,u,d){const o=l.getTimezoneOffset();if(o===0)return"Z";switch(u){case"X":return Fg(o);case"XXXX":case"XX":return zs(o);case"XXXXX":case"XXX":default:return zs(o,":")}},x:function(l,u,d){const o=l.getTimezoneOffset();switch(u){case"x":return Fg(o);case"xxxx":case"xx":return zs(o);case"xxxxx":case"xxx":default:return zs(o,":")}},O:function(l,u,d){const o=l.getTimezoneOffset();switch(u){case"O":case"OO":case"OOO":return"GMT"+$g(o,":");case"OOOO":default:return"GMT"+zs(o,":")}},z:function(l,u,d){const o=l.getTimezoneOffset();switch(u){case"z":case"zz":case"zzz":return"GMT"+$g(o,":");case"zzzz":default:return"GMT"+zs(o,":")}},t:function(l,u,d){const o=Math.trunc(+l/1e3);return ct(o,u.length)},T:function(l,u,d){return ct(+l,u.length)}};function $g(l,u=""){const d=l>0?"-":"+",o=Math.abs(l),g=Math.trunc(o/60),f=o%60;return f===0?d+String(g):d+String(g)+u+ct(f,2)}function Fg(l,u){return l%60===0?(l>0?"-":"+")+ct(Math.abs(l)/60,2):zs(l,u)}function zs(l,u=""){const d=l>0?"-":"+",o=Math.abs(l),g=ct(Math.trunc(o/60),2),f=ct(o%60,2);return d+g+u+f}const Gg=(l,u)=>{switch(l){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},yx=(l,u)=>{switch(l){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},tw=(l,u)=>{const d=l.match(/(P+)(p+)?/)||[],o=d[1],g=d[2];if(!g)return Gg(l,u);let f;switch(o){case"P":f=u.dateTime({width:"short"});break;case"PP":f=u.dateTime({width:"medium"});break;case"PPP":f=u.dateTime({width:"long"});break;case"PPPP":default:f=u.dateTime({width:"full"});break}return f.replace("{{date}}",Gg(o,u)).replace("{{time}}",yx(g,u))},aw={p:yx,P:tw},nw=/^D+$/,lw=/^Y+$/,sw=["D","DD","YY","YYYY"];function rw(l){return nw.test(l)}function iw(l){return lw.test(l)}function uw(l,u,d){const o=cw(l,u,d);if(console.warn(o),sw.includes(l))throw new RangeError(o)}function cw(l,u,d){const o=l[0]==="Y"?"years":"days of the month";return`Use \`${l.toLowerCase()}\` instead of \`${l}\` (in \`${u}\`) for formatting ${o} to the input \`${d}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ow=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dw=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fw=/^'([^]*?)'?$/,hw=/''/g,mw=/[a-zA-Z]/;function As(l,u,d){var N,S,T,D;const o=Jc(),g=o.locale??I2,f=o.firstWeekContainsDate??((S=(N=o.locale)==null?void 0:N.options)==null?void 0:S.firstWeekContainsDate)??1,y=o.weekStartsOn??((D=(T=o.locale)==null?void 0:T.options)==null?void 0:D.weekStartsOn)??0,w=zt(l,d==null?void 0:d.in);if(!m2(w))throw new RangeError("Invalid time value");let b=u.match(dw).map(q=>{const M=q[0];if(M==="p"||M==="P"){const $=aw[M];return $(q,g.formatLong)}return q}).join("").match(ow).map(q=>{if(q==="''")return{isToken:!1,value:"'"};const M=q[0];if(M==="'")return{isToken:!1,value:gw(q)};if(Yg[M])return{isToken:!0,value:q};if(M.match(mw))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return{isToken:!1,value:q}});g.localize.preprocessor&&(b=g.localize.preprocessor(w,b));const x={firstWeekContainsDate:f,weekStartsOn:y,locale:g};return b.map(q=>{if(!q.isToken)return q.value;const M=q.value;(iw(M)||rw(M))&&uw(M,u,String(l));const $=Yg[M[0]];return $(w,M,g.localize,x)}).join("")}function gw(l){const u=l.match(fw);return u?u[1].replace(hw,"'"):l}function yw(l,u){return+zt(l)>+zt(u)}function xw(l,u){return+zt(l)<+zt(u)}function pw(l,u){const d=zt(l,u==null?void 0:u.in);return d.setMinutes(0,0,0),d}const bf=Yy,qc=[{bg:"bg-indigo-400",border:"border-indigo-400/60"},{bg:"bg-cyan-400",border:"border-cyan-400/60"},{bg:"bg-rose-400",border:"border-rose-400/60"},{bg:"bg-violet-400",border:"border-violet-400/60"},{bg:"bg-amber-400",border:"border-amber-400/60"}],tl=160,Vc=14,vw=10,bw=7,Zg=4,xx=({configs:l,currentProjectId:u,onEditJob:d,queueStatus:o,queueAnalytics:g})=>{const f=L.useMemo(()=>pw(new Date),[]),y=L.useMemo(()=>Lc(f,24),[f]),w=L.useMemo(()=>Lc(f,-24),[f]),b=y,x=L.useMemo(()=>{const J=[];for(let ne=0;ne<=24;ne++)J.push(Lc(f,ne));return J},[f]),N=L.useMemo(()=>{const J=[];return l.forEach(({projectId:ne,config:ee})=>{var A,C;const P={executor:ee.executorEnabled!==!1?ee.cronSchedule:null,reviewer:ee.reviewerEnabled?ee.reviewerSchedule:null,qa:ee.qa.enabled?ee.qa.schedule:null,audit:ee.audit.enabled?ee.audit.schedule:null,slicer:ee.roadmapScanner.enabled?ee.roadmapScanner.slicerSchedule:null,analytics:(A=ee.analytics)!=null&&A.enabled?(C=ee.analytics)==null?void 0:C.schedule:null},W=ee.cronScheduleOffset||0;Object.entries(P).forEach(([ae,Y])=>{if(Y)try{const ie=a2.CronExpressionParser.parse(Y,{currentDate:f,endDate:y});for(;ie.hasNext();){const ge=ie.next(),he=new Date(ge.getTime());he.setMinutes(he.getMinutes()+W),yw(he,f)&&xw(he,y)&&J.push({projectId:ne,jobType:ae,time:he})}}catch(ie){console.error(`Failed to parse cron "${Y}" for ${ne}/${ae}`,ie)}})}),J},[l,f,y]),S=L.useMemo(()=>{const J=new Set;return l.length===0||(l.every(ne=>ne.config.executorEnabled===!1)&&J.add("executor"),l.every(ne=>!ne.config.reviewerEnabled)&&J.add("reviewer"),l.every(ne=>!ne.config.qa.enabled)&&J.add("qa"),l.every(ne=>!ne.config.audit.enabled)&&J.add("audit"),l.every(ne=>!ne.config.roadmapScanner.enabled)&&J.add("slicer"),l.every(ne=>{var ee;return!((ee=ne.config.analytics)!=null&&ee.enabled)})&&J.add("analytics")),J},[l]),T=L.useMemo(()=>{const J=new Map;let ne=0;return l.forEach(ee=>{ee.projectId===u||(J.set(ee.projectId,ne%qc.length),ne++)}),J},[l,u]),D=J=>Bg(J,f),q=L.useMemo(()=>{const J=[];for(let ne=0;ne<=24;ne++)J.push(Lc(w,ne));return J},[w]),M=J=>{const ne=f2([d2([J,w]),b]);return Bg(ne,w)},$=L.useMemo(()=>{const J=(g==null?void 0:g.recentRuns)??[],ne=new Map;for(const ee of J){const P=ee.providerKey||"default",W=new Date(ee.startedAt*1e3),A=ee.finishedAt?new Date(ee.finishedAt*1e3):new Date;A<w||W>b||(ne.has(P)||ne.set(P,[]),ne.get(P).push({id:ee.id,jobType:ee.jobType,status:ee.status,projectPath:ee.projectPath,startedAt:W,finishedAt:A,throttledCount:ee.throttledCount}))}if(o!=null&&o.running){const ee=o.running.providerKey??"default";ne.has(ee)||ne.set(ee,[]),ne.get(ee).push({id:o.running.id,jobType:o.running.jobType,status:"running",projectPath:o.running.projectPath,startedAt:new Date((o.running.dispatchedAt??o.running.enqueuedAt)*1e3),finishedAt:new Date,throttledCount:0})}return Array.from(ne.entries()).sort(([ee],[P])=>ee.localeCompare(P)).map(([ee,P])=>({providerKey:ee,runs:P.sort((W,A)=>W.startedAt.getTime()-A.startedAt.getTime())}))},[b,w,g,o]),X=J=>J.split(/[-_]/).map(ne=>ne.charAt(0).toUpperCase()+ne.slice(1)).join(" "),Q=l.length>1,F=s.jsx("div",{className:"absolute inset-0 flex pointer-events-none",children:x.map((J,ne)=>s.jsx("div",{className:"h-full border-l border-slate-800/20",style:{width:60}},ne))});return s.jsxs("div",{className:"w-full overflow-hidden rounded-xl border border-slate-800 bg-slate-950/50 flex flex-col",children:[s.jsxs("div",{className:"p-4 border-b border-slate-800 flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"text-sm font-medium text-slate-200",children:"Execution Timeline (Next 24h)"}),s.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:"Upcoming scheduled runs across projects. Aligned columns = overlap."})]}),Q&&s.jsxs("div",{className:"flex flex-wrap gap-2 justify-end max-w-sm",children:[s.jsxs("div",{className:"flex items-center gap-1 mr-1",children:[s.jsx("div",{className:"w-2 h-2 rounded-full bg-slate-400 shrink-0"}),s.jsx("span",{className:"text-[10px] text-slate-400 font-semibold",children:"current"})]}),l.filter(J=>J.projectId!==u).slice(0,5).map(J=>{const ne=T.get(J.projectId)??0,ee=qc[ne],P=(J.projectId.split("/").pop()??J.projectId).slice(0,14);return s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("div",{className:`w-2 h-2 rounded-full ${ee.bg} shrink-0`}),s.jsx("span",{className:"text-[10px] text-slate-500",title:J.projectId,children:P})]},J.projectId)})]})]}),s.jsx("div",{className:"overflow-x-auto custom-scrollbar",children:s.jsxs("div",{className:"relative min-w-[1600px]",style:{width:1440+tl},children:[s.jsxs("div",{className:"h-8 border-b border-slate-800 flex",children:[s.jsx("div",{style:{width:tl},className:"shrink-0 border-r border-slate-800"}),s.jsx("div",{className:"flex-1 relative",children:x.map((J,ne)=>s.jsx("div",{className:"absolute top-0 bottom-0 border-l border-slate-800/50 flex flex-col justify-end pb-1 px-1",style:{left:ne*60},children:s.jsx("span",{className:"text-[10px] font-mono text-slate-500",children:As(J,"HH:mm")})},ne))})]}),s.jsxs("div",{className:"relative",children:[l.length===0&&s.jsx("div",{className:"flex items-center justify-center p-8",children:s.jsx("p",{className:"text-sm text-slate-500 italic",children:"No project data available for timeline."})}),bf.map(J=>{const ne=S.has(J.id),ee=N.filter(W=>W.jobType===J.id);if(!Q)return s.jsxs("div",{className:`flex border-b border-slate-800/30 ${ne?"opacity-40":""}`,children:[s.jsxs("div",{style:{width:tl},className:"shrink-0 p-3 border-r border-slate-800/50 flex items-center gap-2",children:[s.jsx("div",{className:`w-2 h-2 rounded-full ${J.color.bg} shrink-0`}),s.jsx("span",{className:"text-xs font-semibold text-slate-300",children:J.label})]}),s.jsxs("div",{className:"flex-1 relative h-10",children:[F,ee.length===0?s.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:s.jsx("span",{className:"text-[10px] text-slate-600 italic",children:ne?"Disabled":"No runs in this window"})}):ee.map((W,A)=>s.jsx("button",{type:"button",onClick:()=>d==null?void 0:d(W.projectId,W.jobType),style:{left:D(W.time)-3},className:`absolute top-1/2 -translate-y-1/2 h-4 w-6 rounded border ${J.color.bg} ${J.color.border} opacity-90 hover:opacity-100 hover:scale-110 transition-all cursor-pointer shadow-lg group`,title:`${J.label} at ${As(W.time,"HH:mm")}`,children:s.jsx("div",{className:"absolute -top-5 left-1/2 -translate-x-1/2 px-1.5 py-0.5 rounded bg-slate-800 text-white text-[9px] whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none border border-slate-700 z-10",children:As(W.time,"HH:mm")})},A))]})]},J.id);const P=l.length*Vc+Zg*2;return s.jsxs("div",{className:`flex border-b border-slate-800/30 ${ne?"opacity-40":""}`,children:[s.jsxs("div",{style:{width:tl,height:P},className:"shrink-0 border-r border-slate-800/50 flex flex-col px-2 py-1",children:[s.jsxs("div",{className:"flex items-center gap-1 mb-0.5",children:[s.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${J.color.bg} shrink-0`}),s.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wide",children:J.label})]}),l.map(W=>{const A=W.projectId===u,C=(W.projectId.split("/").pop()??W.projectId).slice(0,14),ae=T.get(W.projectId)??0,Y=A?J.color.bg:qc[ae].bg;return s.jsxs("div",{style:{height:Vc},className:"flex items-center gap-1 overflow-hidden",children:[s.jsx("div",{className:`w-1 h-1 rounded-full shrink-0 ${Y}`}),s.jsx("span",{className:`text-[9px] truncate ${A?"text-slate-200 font-semibold":"text-slate-600"}`,title:W.projectId,children:A?`${C} ★`:C})]},W.projectId)})]}),s.jsxs("div",{className:"flex-1 relative",style:{height:P},children:[F,l.map((W,A)=>{const C=W.projectId===u,ae=ee.filter(re=>re.projectId===W.projectId),Y=Zg+A*Vc,ie=C?vw:bw,ge=Math.floor((Vc-ie)/2),he=T.get(W.projectId)??0,V=C?{bg:J.color.bg,border:J.color.border}:qc[he];return s.jsxs(Ve.Fragment,{children:[A>0&&s.jsx("div",{className:"absolute left-0 right-0 border-t border-slate-800/20 pointer-events-none",style:{top:Y}}),ae.map((re,ye)=>s.jsx("button",{type:"button",onClick:()=>d==null?void 0:d(W.projectId,re.jobType),style:{left:D(re.time)-3,top:Y+ge,height:ie},className:`absolute w-6 rounded border ${V.bg} ${V.border} ${C?"opacity-90":"opacity-50"} hover:opacity-100 hover:z-10 transition-all cursor-pointer group`,title:`${W.projectId} · ${J.label} @ ${As(re.time,"HH:mm")}`,children:s.jsx("div",{className:"absolute -top-5 left-1/2 -translate-x-1/2 px-1.5 py-0.5 rounded bg-slate-800 text-white text-[9px] whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none border border-slate-700 z-20",children:As(re.time,"HH:mm")})},ye))]},W.projectId)}),ee.length===0&&!ne&&s.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:s.jsx("span",{className:"text-[10px] text-slate-700 italic",children:"No runs in this window"})})]})]},J.id)})]}),s.jsx("div",{className:"absolute top-0 bottom-0 w-px bg-rose-500/50 z-10 pointer-events-none",style:{left:tl+D(new Date)},children:s.jsx("div",{className:"absolute top-0 h-2 w-2 rounded-full bg-rose-500 -translate-x-1/2"})})]})}),s.jsxs("div",{className:"p-3 bg-slate-900/40 flex items-center gap-4 text-[10px] text-slate-500",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("div",{className:"w-1.5 h-3 rounded bg-blue-500/50 border border-blue-500"}),s.jsx("span",{children:"Each block = one scheduled run"})]}),s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("div",{className:"w-[1px] h-4 bg-rose-500"}),s.jsx("span",{children:"Current Time"})]}),Q&&s.jsx("div",{className:"flex items-center gap-1.5",children:s.jsx("span",{children:"★ = current project  ·  blocks in same column = scheduling overlap"})})]}),$.length>0&&s.jsxs("div",{className:"border-t border-slate-800",children:[s.jsxs("div",{className:"p-4 border-b border-slate-800 flex items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"text-sm font-medium text-slate-200",children:"Recent Execution Runs"}),s.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:"Last 24h of real runs grouped by provider bucket."})]}),s.jsxs("div",{className:"text-[10px] uppercase tracking-[0.2em] text-slate-500",children:[(g==null?void 0:g.recentRuns.length)??0," recorded runs"]})]}),s.jsx("div",{className:"overflow-x-auto custom-scrollbar","data-testid":"provider-execution-timeline",children:s.jsxs("div",{className:"relative min-w-[1600px]",style:{width:1440+tl},children:[s.jsxs("div",{className:"h-8 border-b border-slate-800 flex",children:[s.jsx("div",{style:{width:tl},className:"shrink-0 border-r border-slate-800"}),s.jsx("div",{className:"flex-1 relative flex",children:q.map((J,ne)=>s.jsx("div",{className:"absolute top-0 bottom-0 border-l border-slate-800/50 flex flex-col justify-end pb-1 px-1",style:{left:ne*60},children:s.jsx("span",{className:"text-[10px] font-mono text-slate-500",children:As(J,"HH:mm")})},ne))})]}),s.jsx("div",{className:"relative",children:$.map(({providerKey:J,runs:ne})=>s.jsxs("div",{className:"flex border-b border-slate-800/30 min-h-14","data-testid":`provider-execution-lane-${J}`,children:[s.jsxs("div",{style:{width:tl},className:"shrink-0 p-3 border-r border-slate-800/50 flex flex-col justify-center",children:[s.jsx("span",{className:"text-xs font-semibold text-slate-300 truncate",title:J,children:X(J)}),s.jsx("span",{className:"text-[10px] text-slate-500 font-mono truncate",children:J})]}),s.jsxs("div",{className:"flex-1 relative h-14",children:[s.jsx("div",{className:"absolute inset-0 flex pointer-events-none",children:q.map((ee,P)=>s.jsx("div",{className:"h-full border-l border-slate-800/20",style:{width:60}},P))}),ne.map(ee=>{const P=bf.find(he=>he.id===ee.jobType)??bf[0],W=M(ee.startedAt),A=M(ee.finishedAt),C=Math.max(A-W,8),ae=ee.status==="running",Y=ee.status==="error"||ee.status==="failed"||ee.status==="errored",ie=ae?"bg-green-500":Y?"bg-red-500":P.color.bg,ge=ae?"border-green-400/60":Y?"border-red-400/60":P.color.border;return s.jsx("div",{className:`absolute top-1/2 -translate-y-1/2 h-8 rounded border ${ie} ${ge} opacity-85 shadow-lg ${ae?"animate-pulse":""}`,style:{left:W,width:C},title:`${J} • ${P.label} • ${As(ee.startedAt,"MMM d HH:mm")} • ${ee.status}`,"data-testid":"provider-execution-run",children:s.jsxs("div",{className:"h-full px-2 flex items-center justify-between gap-2 text-[10px] text-white/90 overflow-hidden whitespace-nowrap",children:[s.jsx("span",{className:"font-semibold uppercase tracking-wide",children:P.label}),s.jsx("span",{className:"text-white/70",children:ee.status}),ee.throttledCount>0&&s.jsxs("span",{className:"text-yellow-100",children:["throttle ",ee.throttledCount,"x"]})]})},`${J}-${ee.id}-${ee.startedAt.getTime()}`)})]})]},J))}),s.jsx("div",{className:"absolute top-0 bottom-0 w-px bg-rose-500/50 z-10 pointer-events-none",style:{left:tl+M(new Date)},children:s.jsx("div",{className:"absolute top-0 h-2 w-2 rounded-full bg-rose-500 -translate-x-1/2"})})]})})]})]})},px=({form:l,scheduleMode:u,selectedTemplateId:d,onFieldChange:o,onSwitchToTemplate:g,onSwitchToCustom:f,onApplyTemplate:y,allProjectConfigs:w,currentProjectId:b,onEditJob:x})=>{var N;return s.jsxs(Ke,{className:"p-6 space-y-6",children:[w&&w.length>0&&s.jsx(xx,{configs:w,currentProjectId:b,onEditJob:x}),s.jsxs("div",{className:"flex items-start justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200 mb-1",children:"Job Schedules"}),s.jsx("p",{className:"text-sm text-slate-400",children:"Configure when automated jobs run using a preset template or custom cron expressions"})]}),s.jsxs("div",{className:"flex rounded-lg border border-slate-700 overflow-hidden shrink-0",children:[s.jsx("button",{type:"button",className:`px-4 py-1.5 text-sm font-medium transition-colors ${u==="template"?"bg-indigo-600 text-white":"bg-slate-800 text-slate-400 hover:text-slate-200"}`,onClick:g,children:"Template"}),s.jsx("button",{type:"button",className:`px-4 py-1.5 text-sm font-medium transition-colors ${u==="custom"?"bg-indigo-600 text-white":"bg-slate-800 text-slate-400 hover:text-slate-200"}`,onClick:f,children:"Custom"})]})]}),u==="template"?s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:Pf.map(S=>{const T=d===S.id;return s.jsxs("button",{type:"button",onClick:()=>y(S),className:`text-left p-4 rounded-lg border transition-colors ${T?"border-indigo-500 bg-indigo-950/40":"border-slate-700 bg-slate-800/30 hover:border-slate-600"}`,children:[s.jsx("div",{className:"font-medium text-slate-200 mb-1",children:S.label}),s.jsx("p",{className:"text-xs text-slate-400 mb-3",children:S.description}),s.jsx("div",{className:"space-y-0.5",children:[["Executor",S.hints.executor],["Reviewer",S.hints.reviewer],["QA",S.hints.qa],["Audit",S.hints.audit],["Slicer",S.hints.slicer]].map(([D,q])=>s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-xs text-slate-500 w-16 shrink-0",children:D}),s.jsx("span",{className:"text-xs text-slate-400",children:q})]},D))})]},S.id)})}):s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsx(On,{label:"PRD Execution Schedule",value:l.cronSchedule,onChange:S=>o("cronSchedule",S)}),s.jsx(On,{label:"PR Review Schedule",value:l.reviewerSchedule,onChange:S=>o("reviewerSchedule",S)}),s.jsx(On,{label:"QA Schedule",value:l.qa.schedule,onChange:S=>o("qa",{...l.qa,schedule:S})}),s.jsx(On,{label:"Audit Schedule",value:l.audit.schedule,onChange:S=>o("audit",{...l.audit,schedule:S})}),((N=l.analytics)==null?void 0:N.enabled)&&s.jsx(On,{label:"Analytics Schedule",value:l.analytics.schedule,onChange:S=>o("analytics",{...l.analytics,schedule:S})}),l.roadmapScanner.enabled&&s.jsx(On,{label:"Planner Schedule",value:l.roadmapScanner.slicerSchedule||"35 */12 * * *",onChange:S=>o("roadmapScanner",{...l.roadmapScanner,slicerSchedule:S})})]}),s.jsxs("div",{className:"pt-4 border-t border-slate-800 grid grid-cols-1 md:grid-cols-3 gap-6",children:[s.jsx(da,{label:"Scheduling Priority",value:String(l.schedulingPriority),onChange:S=>o("schedulingPriority",Number(S)),options:[{label:"1 - Lowest",value:"1"},{label:"2 - Low",value:"2"},{label:"3 - Balanced",value:"3"},{label:"4 - High",value:"4"},{label:"5 - Highest",value:"5"}],helperText:"Higher-priority projects get earlier balanced start slots and win queue tie-breakers first."}),s.jsx("div",{className:"rounded-xl border border-slate-800 bg-slate-950/50 p-4",children:s.jsxs("div",{className:"flex items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-medium text-slate-200",children:"Global Queue"}),s.jsx("p",{className:"text-xs text-slate-400 mt-1",children:"Queue overlapping jobs across projects instead of letting them burst the provider API."})]}),s.jsx(Ma,{checked:l.globalQueueEnabled??!0,onChange:S=>o("globalQueueEnabled",S)})]})}),s.jsx($e,{label:"Extra Start Delay",type:"number",min:"0",max:"59",value:String(l.cronScheduleOffset),onChange:S=>{const T=Math.min(59,Math.max(0,Number(S.target.value||0)));o("cronScheduleOffset",T)},helperText:"Manual delay in minutes added before cron jobs start. This stacks on top of automatic balancing."})]})]})},Sw=()=>{var Ca,yn,Ja,fa,ha,xn,fe,Se,He,Ze,xt,Ka,Rn,ot,aa,en,pn;const{addToast:l,selectedProjectId:u,globalModeLoading:d}=ua(),[o,g]=L.useState("overview"),[f,y]=L.useState(!1),[w,b]=L.useState(!1),[x,N]=L.useState(null),[S,T]=L.useState(null),[D,q]=L.useState([]),[M,$]=L.useState(null),[X,Q]=L.useState(null),[F,J]=L.useState({form:{cronSchedule:"5 */3 * * *",reviewerSchedule:"25 */6 * * *",qa:{schedule:"45 2,14 * * *",enabled:!0},audit:{schedule:"50 3 * * 1",enabled:!0},analytics:{schedule:"0 6 * * 1",enabled:!1},roadmapScanner:{slicerSchedule:"35 */12 * * *",enabled:!0},scheduleBundleId:null,schedulingPriority:3,cronScheduleOffset:0,globalQueueEnabled:!0},scheduleMode:"template",selectedTemplateId:"always-on",isDirty:!1}),{data:ne,loading:ee,error:P,refetch:W}=gn(Ay,[u],{enabled:!d}),{data:A,loading:C,refetch:ae}=gn(Zf,[u],{enabled:!d});L.useEffect(()=>{const oe=setInterval(()=>{W()},3e4);return()=>clearInterval(oe)},[W]),L.useEffect(()=>{d||Ry().then(q).catch(console.error)},[u,d]),L.useEffect(()=>{if(d)return;const oe=()=>{rS().then($).catch(()=>{}),iS(24).then(Q).catch(()=>{})};oe();const Oe=setInterval(oe,3e4);return()=>clearInterval(Oe)},[d,u]),L.useEffect(()=>{var oe,Oe,Xe,ze,ma,nt;if(A&&!F.isDirty){const bt=au(A.scheduleBundleId,A.cronSchedule,A.reviewerSchedule,((oe=A.qa)==null?void 0:oe.schedule)||"45 2,14 * * *",((Oe=A.audit)==null?void 0:Oe.schedule)||"50 3 * * 1",((Xe=A.roadmapScanner)==null?void 0:Xe.slicerSchedule)||"35 */12 * * *");J({form:{cronSchedule:A.cronSchedule||"5 */3 * * *",reviewerSchedule:A.reviewerSchedule||"25 */6 * * *",qa:A.qa||{schedule:"45 2,14 * * *",enabled:!0},audit:A.audit||{schedule:"50 3 * * 1",enabled:!0},analytics:A.analytics||{schedule:"0 6 * * 1",enabled:!1},roadmapScanner:{enabled:((ze=A.roadmapScanner)==null?void 0:ze.enabled)??!0,slicerSchedule:((ma=A.roadmapScanner)==null?void 0:ma.slicerSchedule)||"35 */12 * * *"},scheduleBundleId:A.scheduleBundleId??null,schedulingPriority:A.schedulingPriority??3,cronScheduleOffset:A.cronScheduleOffset??0,globalQueueEnabled:((nt=A.queue)==null?void 0:nt.enabled)??!0},scheduleMode:bt?"template":"custom",selectedTemplateId:(bt==null?void 0:bt.id)??"",isDirty:!1})}},[A,F.isDirty]);const Y=()=>{ae(),W()},ie=(oe,Oe)=>oe instanceof Error?oe.message:Oe,ge=async()=>{if(ne){y(!0);try{ne.paused?(await nu(),l({title:"Schedule Resumed",message:"Cron schedules have been reactivated.",type:"success"})):(await eS(),l({title:"Schedule Paused",message:"Cron schedules have been deactivated.",type:"info"})),Y()}catch(oe){l({title:"Action Failed",message:ie(oe,"Failed to toggle schedule state"),type:"error"})}finally{y(!1)}}},he=async(oe,Oe)=>{if(A){N(oe);try{oe==="executor"?await nl({executorEnabled:Oe}):oe==="reviewer"?await nl({reviewerEnabled:Oe}):oe==="qa"?await nl({qa:{...A.qa,enabled:Oe}}):oe==="audit"?await nl({audit:{...A.audit,enabled:Oe}}):oe==="analytics"?await nl({analytics:{...A.analytics,enabled:Oe}}):await nl({roadmapScanner:{...A.roadmapScanner,enabled:Oe}});let Xe="";try{await nu()}catch(ze){Xe=ie(ze,"Failed to reinstall cron schedules")}Y(),l(Xe?{title:"Job Saved (Cron Reinstall Failed)",message:Xe,type:"warning"}:{title:"Job Updated",message:`${oe[0].toUpperCase()+oe.slice(1)} ${Oe?"enabled":"disabled"}.`,type:"success"})}catch(Xe){l({title:"Update Failed",message:ie(Xe,"Failed to update job configuration"),type:"error"})}finally{N(null)}}},V=async oe=>{T(oe);try{await{executor:_y,reviewer:Qf,qa:ky,audit:zy,planner:Hy,analytics:Uy}[oe](),l({title:"Job Triggered",message:`${oe[0].toUpperCase()+oe.slice(1)} job has been queued.`,type:"success"}),W()}catch(Oe){l({title:"Trigger Failed",message:ie(Oe,`Failed to trigger ${oe} job`),type:"error"})}finally{T(null)}},re=(oe,Oe)=>{J(Xe=>({...Xe,form:{...Xe.form,[oe]:Oe},isDirty:!0}))},ye=()=>{if(!F.form)return;const oe=au(F.form.scheduleBundleId,F.form.cronSchedule,F.form.reviewerSchedule,F.form.qa.schedule,F.form.audit.schedule,F.form.roadmapScanner.slicerSchedule||"35 */12 * * *");J(Oe=>({...Oe,scheduleMode:"template",selectedTemplateId:(oe==null?void 0:oe.id)??"always-on",form:{...Oe.form,scheduleBundleId:(oe==null?void 0:oe.id)??null},isDirty:!0}))},Te=()=>{J(oe=>({...oe,scheduleMode:"custom",selectedTemplateId:"",form:{...oe.form,scheduleBundleId:null},isDirty:!0}))},pe=oe=>{J(Oe=>({...Oe,selectedTemplateId:oe.id,scheduleMode:"template",form:{...Oe.form,cronSchedule:oe.schedules.executor,reviewerSchedule:oe.schedules.reviewer,scheduleBundleId:oe.id,qa:{...Oe.form.qa,schedule:oe.schedules.qa},audit:{...Oe.form.audit,schedule:oe.schedules.audit},roadmapScanner:{...Oe.form.roadmapScanner,slicerSchedule:oe.schedules.slicer}},isDirty:!0}))},k=async()=>{var oe,Oe;if(A){b(!0);try{await nl({cronSchedule:F.form.cronSchedule,reviewerSchedule:F.form.reviewerSchedule,scheduleBundleId:F.scheduleMode==="template"?F.form.scheduleBundleId:null,cronScheduleOffset:F.form.cronScheduleOffset,schedulingPriority:F.form.schedulingPriority,qa:{...A.qa,schedule:F.form.qa.schedule},audit:{...A.audit,schedule:F.form.audit.schedule},analytics:{...A.analytics,schedule:((oe=F.form.analytics)==null?void 0:oe.schedule)||((Oe=A.analytics)==null?void 0:Oe.schedule)||"0 6 * * 1"},roadmapScanner:{...A.roadmapScanner,slicerSchedule:F.form.roadmapScanner.slicerSchedule||"35 */12 * * *"},queue:{...A.queue,enabled:F.form.globalQueueEnabled??!0},executorEnabled:A.executorEnabled,reviewerEnabled:A.reviewerEnabled});let Xe="";try{await nu()}catch(ze){Xe=ie(ze,"Failed to reinstall cron schedules")}J(ze=>({...ze,isDirty:!1})),Y(),l(Xe?{title:"Schedules Saved (Cron Reinstall Failed)",message:Xe,type:"warning"}:{title:"Schedule Updated",message:"Cron schedules have been saved and installed.",type:"success"})}catch(Xe){l({title:"Save Failed",message:ie(Xe,"Failed to save schedules"),type:"error"})}finally{b(!1)}}},le=oe=>{if(!oe)return s.jsx("span",{className:"text-slate-500",children:"Not scheduled"});const Oe=new Date(oe),Xe=YS(Oe);return s.jsxs("div",{className:"flex items-center space-x-2",children:[Xe&&s.jsxs("span",{className:"relative flex h-3 w-3",children:[s.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"}),s.jsx("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-green-500"})]}),s.jsxs("div",{className:"text-sm",children:[s.jsx("span",{className:"text-slate-200 font-medium",children:VS(Oe)}),s.jsxs("span",{className:"text-slate-500 ml-2",children:["(",BS(Oe),")"]})]})]})},me=oe=>{if(!oe||oe.delayMinutes<=0)return s.jsx("div",{className:"text-xs text-slate-500 mt-2",children:"Starts directly at the scheduled time."});const Oe=[];return oe.balancedDelayMinutes>0&&Oe.push(`auto +${oe.balancedDelayMinutes}m`),oe.manualDelayMinutes>0&&Oe.push(`manual +${oe.manualDelayMinutes}m`),s.jsxs("div",{className:"text-xs text-slate-500 mt-2",children:["Delayed after cron fire:",s.jsxs("span",{className:"text-slate-300",children:[" ",Oe.join(" - ")]})]})};if(ee||C)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading scheduling information..."})});if(P||!ne||!A)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(rl,{className:"h-12 w-12 text-red-400"}),s.jsx("div",{className:"text-slate-300",children:"Failed to load schedule information"}),s.jsx("div",{className:"text-sm text-slate-500",children:(P==null?void 0:P.message)||"Unknown error"}),s.jsx(mt,{onClick:()=>{W(),ae()},children:"Retry"})]});const xe=ne.paused,Re=xe?"bg-amber-500/10 text-amber-400 border-amber-500/20":"bg-green-500/10 text-green-400 border-green-500/20",Me=xe?"Paused":"Active",ke=au(A.scheduleBundleId,A.cronSchedule,A.reviewerSchedule,((Ca=A.qa)==null?void 0:Ca.schedule)||"45 2,14 * * *",((yn=A.audit)==null?void 0:yn.schedule)||"50 3 * * 1",((Ja=A.roadmapScanner)==null?void 0:Ja.slicerSchedule)||"35 */12 * * *"),jt=(oe,Oe,Xe)=>!ke||oe==="analytics"||!Rr(ke.schedules[oe],Oe)?vg(Xe):`${ke.label} - ${ke.hints[oe]}`,et=[{id:"executor",name:"Executor",description:"Creates implementation PRs from PRDs",icon:s.jsx(Fc,{className:"h-4 w-4"}),enabled:(A==null?void 0:A.executorEnabled)!==!1,schedule:ne.executor.schedule,nextRun:ne.executor.nextRun,delayInfo:ne.executor},{id:"reviewer",name:"Reviewer",description:"Reviews PRs and manages merge readiness",icon:s.jsx(Ic,{className:"h-4 w-4"}),enabled:(A==null?void 0:A.reviewerEnabled)??!1,schedule:ne.reviewer.schedule,nextRun:ne.reviewer.nextRun,delayInfo:ne.reviewer},{id:"qa",name:"QA",description:"Generates and runs quality checks on PRs",icon:s.jsx(Y1,{className:"h-4 w-4"}),enabled:((fa=A==null?void 0:A.qa)==null?void 0:fa.enabled)??!1,schedule:(ha=ne.qa)==null?void 0:ha.schedule,nextRun:(xn=ne.qa)==null?void 0:xn.nextRun,delayInfo:ne.qa},{id:"audit",name:"Auditor",description:"Runs automated audit reports",icon:s.jsx(mg,{className:"h-4 w-4"}),enabled:((fe=A==null?void 0:A.audit)==null?void 0:fe.enabled)??!1,schedule:(Se=ne.audit)==null?void 0:Se.schedule,nextRun:(He=ne.audit)==null?void 0:He.nextRun,delayInfo:ne.audit},{id:"planner",name:"Planner",description:"Creates PRDs from audit findings and pending roadmap items",icon:s.jsx(mg,{className:"h-4 w-4"}),enabled:((Ze=A==null?void 0:A.roadmapScanner)==null?void 0:Ze.enabled)??!1,schedule:((xt=ne.planner)==null?void 0:xt.schedule)||((Ka=A.roadmapScanner)==null?void 0:Ka.slicerSchedule)||"35 */12 * * *",nextRun:(Rn=ne.planner)==null?void 0:Rn.nextRun,delayInfo:ne.planner},{id:"analytics",name:"Analytics",description:"Fetches Amplitude data, analyzes with AI, and creates board issues",icon:s.jsx(Zb,{className:"h-4 w-4"}),enabled:((ot=A==null?void 0:A.analytics)==null?void 0:ot.enabled)??!1,schedule:((aa=ne.analytics)==null?void 0:aa.schedule)||((en=A.analytics)==null?void 0:en.schedule)||"0 6 * * 1",nextRun:(pn=ne.analytics)==null?void 0:pn.nextRun,delayInfo:ne.analytics}],ta=[{id:"overview",label:"Overview",content:s.jsxs("div",{className:"space-y-6",children:[s.jsx(Ke,{className:`p-6 border-2 ${Re}`,children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsx(Fc,{className:"h-8 w-8"}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400",children:"Automation Status"}),s.jsx("div",{className:"text-2xl font-bold",children:Me}),s.jsx("div",{className:"text-sm text-slate-500 mt-1",children:"Automatic balancing spreads registered projects before queueing overlaps."})]})]}),s.jsx(mt,{variant:xe?"primary":"outline",size:"lg",onClick:ge,loading:f,children:xe?s.jsxs(s.Fragment,{children:[s.jsx(kr,{className:"h-5 w-5 mr-2"}),"Resume"]}):s.jsxs(s.Fragment,{children:[s.jsx(Ty,{className:"h-5 w-5 mr-2"}),"Pause"]})})]})}),s.jsxs(Ke,{className:"p-6",children:[s.jsx("h3",{className:"text-lg font-semibold text-slate-200 mb-4",children:"Agents"}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:et.map(oe=>{var Oe,Xe,ze,ma,nt,vt,bt,Ut;return s.jsxs("div",{className:`p-4 rounded-lg border ${oe.enabled?"border-slate-800":"border-slate-800 opacity-50"}`,children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[oe.icon,s.jsx("h4",{className:"text-base font-semibold text-slate-200",children:oe.name})]}),s.jsx(Ma,{checked:oe.enabled,disabled:x!==null,"aria-label":`Toggle ${oe.name.toLowerCase()} automation`,onChange:Ls=>he(oe.id,Ls)})]}),oe.enabled?s.jsxs("div",{className:"space-y-3 mt-3",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400",children:"Schedule"}),s.jsx("div",{className:"text-sm text-slate-200 font-medium",children:jt(oe.id==="planner"?"slicer":oe.id,oe.id==="qa"?((Oe=A==null?void 0:A.qa)==null?void 0:Oe.schedule)||"":oe.id==="audit"?((Xe=A==null?void 0:A.audit)==null?void 0:Xe.schedule)||"":oe.id==="planner"?((ze=A==null?void 0:A.roadmapScanner)==null?void 0:ze.slicerSchedule)||"35 */12 * * *":oe.id==="analytics"?((ma=A==null?void 0:A.analytics)==null?void 0:ma.schedule)||"0 6 * * 1":oe.schedule,oe.id==="qa"?((nt=A==null?void 0:A.qa)==null?void 0:nt.schedule)||"":oe.id==="audit"?((vt=A==null?void 0:A.audit)==null?void 0:vt.schedule)||"":oe.id==="planner"?((bt=A==null?void 0:A.roadmapScanner)==null?void 0:bt.slicerSchedule)||"35 */12 * * *":oe.id==="analytics"?((Ut=A==null?void 0:A.analytics)==null?void 0:Ut.schedule)||"0 6 * * 1":oe.schedule)})]}),me(oe.delayInfo),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400",children:"Next Run"}),le(oe.nextRun)]}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:`flex items-center space-x-2 text-sm ${oe.enabled?"text-green-400":"text-amber-400"}`,children:[s.jsx(jf,{className:"h-4 w-4"}),s.jsx("span",{children:oe.enabled?"Active":"Disabled"})]}),s.jsxs("button",{disabled:S!==null,onClick:()=>V(oe.id),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-medium text-green-400 bg-green-500/10 hover:bg-green-500/20 border border-green-500/30 hover:border-green-500/50 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:[S===oe.id?s.jsx("div",{className:"h-3 w-3 border-2 border-current border-t-transparent rounded-full animate-spin"}):s.jsx(kr,{className:"h-3 w-3 fill-current"}),"Run now"]})]})]}):s.jsxs("div",{className:"text-slate-500 text-sm",children:[oe.name," is disabled."]})]},oe.id)})})]})]})},{id:"schedules",label:"Schedules",content:s.jsxs("div",{className:"space-y-6",children:[s.jsx(xx,{configs:D,currentProjectId:u??void 0,onEditJob:(oe,Oe)=>{},queueStatus:M,queueAnalytics:X}),s.jsx(px,{form:F.form,scheduleMode:F.scheduleMode,selectedTemplateId:F.selectedTemplateId,onFieldChange:re,onSwitchToTemplate:ye,onSwitchToCustom:Te,onApplyTemplate:pe}),s.jsxs("div",{className:"flex justify-end pt-4",children:[s.jsx(mt,{variant:"ghost",onClick:()=>{var oe,Oe,Xe,ze,ma,nt;if(A){const vt=au(A.scheduleBundleId,A.cronSchedule,A.reviewerSchedule,((oe=A.qa)==null?void 0:oe.schedule)||"45 2,14 * * *",((Oe=A.audit)==null?void 0:Oe.schedule)||"50 3 * * 1",((Xe=A.roadmapScanner)==null?void 0:Xe.slicerSchedule)||"35 */12 * * *");J({form:{cronSchedule:A.cronSchedule||"5 */3 * * *",reviewerSchedule:A.reviewerSchedule||"25 */6 * * *",qa:A.qa||{schedule:"45 2,14 * * *",enabled:!0},audit:A.audit||{schedule:"50 3 * * 1",enabled:!0},analytics:A.analytics||{schedule:"0 6 * * 1",enabled:!1},roadmapScanner:{enabled:((ze=A.roadmapScanner)==null?void 0:ze.enabled)??!0,slicerSchedule:((ma=A.roadmapScanner)==null?void 0:ma.slicerSchedule)||"35 */12 * * *"},scheduleBundleId:A.scheduleBundleId??null,schedulingPriority:A.schedulingPriority??3,cronScheduleOffset:A.cronScheduleOffset??0,globalQueueEnabled:((nt=A.queue)==null?void 0:nt.enabled)??!0},scheduleMode:vt?"template":"custom",selectedTemplateId:(vt==null?void 0:vt.id)??"",isDirty:!1})}},disabled:!F.isDirty,children:"Reset"}),s.jsxs(mt,{onClick:k,loading:w,disabled:!F.isDirty,children:[s.jsx(jf,{className:"h-4 w-4 mr-2"}),"Save & Install"]})]})]})},{id:"crontab",label:"Crontab",content:s.jsxs(Ke,{className:"p-6",children:[s.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[s.jsx(Bf,{className:"h-5 w-5 text-slate-400"}),s.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Active Crontab Entries"})]}),ne.entries.length===0?s.jsx("div",{className:"text-slate-500 text-sm",children:"No crontab entries found."}):s.jsx("div",{className:"space-y-2",children:ne.entries.map((oe,Oe)=>s.jsx("div",{className:"bg-slate-950/50 rounded-lg p-3 font-mono text-sm text-slate-300 border border-slate-800",children:oe},Oe))})]})}];return s.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Scheduling"}),ke&&s.jsxs("div",{className:"text-right",children:[s.jsx("div",{className:"text-xs uppercase tracking-wide text-slate-500",children:"Schedule Bundle"}),s.jsx("div",{className:"text-sm font-medium text-indigo-300",children:ke.label}),s.jsxs("div",{className:"text-xs text-slate-500",children:["Priority ",ne.schedulingPriority,"/5 across registered projects"]})]})]}),s.jsx($y,{tabs:ta,activeTab:o,onChange:g})]})},ww=[{label:"Run Started",value:"run_started"},{label:"Run Succeeded",value:"run_succeeded"},{label:"Run Failed",value:"run_failed"},{label:"Run Timeout",value:"run_timeout"},{label:"Review Completed",value:"review_completed"},{label:"PR Auto-Merged",value:"pr_auto_merged"},{label:"Rate Limit Fallback",value:"rate_limit_fallback"},{label:"QA Completed",value:"qa_completed"}],Nw=(l,u)=>l.includes(u)?l.filter(d=>d!==u):[...l,u],Qg=({webhook:l,onChange:u,onSave:d,onCancel:o,isNew:g})=>s.jsxs("div",{className:"p-4 rounded-md border border-slate-700 bg-slate-900/50 space-y-4",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsx(da,{label:"Type",value:l.type,onChange:f=>{const y=f;u(y==="telegram"?{type:y,botToken:"",chatId:"",events:l.events}:{type:y,url:"",events:l.events})},options:[{label:"Slack",value:"slack"},{label:"Discord",value:"discord"},{label:"Telegram",value:"telegram"}]}),l.type==="telegram"?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"relative",children:s.jsx($e,{label:"Bot Token",type:"password",value:l.botToken||"",onChange:f=>u({...l,botToken:f.target.value}),placeholder:"123456789:ABCdefGHIjklMNOpqrsTUVwxyz"})}),s.jsx($e,{label:"Chat ID",value:l.chatId||"",onChange:f=>u({...l,chatId:f.target.value}),placeholder:"123456789"})]}):s.jsx("div",{className:"md:col-span-2",children:s.jsx($e,{label:"Webhook URL",type:"password",value:l.url||"",onChange:f=>u({...l,url:f.target.value}),placeholder:"https://hooks.slack.com/services/..."})})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-2",children:"Events"}),s.jsx("div",{className:"flex flex-wrap gap-2",children:ww.map(f=>s.jsx("button",{type:"button",onClick:()=>u({...l,events:Nw(l.events,f.value)}),className:`px-3 py-1.5 rounded-md text-sm transition-colors ${l.events.includes(f.value)?"bg-indigo-600 text-white":"bg-slate-800 text-slate-400 hover:bg-slate-700"}`,children:f.label},f.value))})]}),s.jsxs("div",{className:"flex justify-end gap-2",children:[s.jsx(mt,{variant:"ghost",onClick:o,children:"Cancel"}),s.jsx(mt,{onClick:d,disabled:l.events.length===0||(l.type==="telegram"?!l.botToken||!l.chatId:!l.url),children:g?"Add Webhook":"Save Changes"})]})]}),Pg=({notifications:l,onChange:u})=>{const[d,o]=Ve.useState(null),[g,f]=Ve.useState(!1),[y,w]=Ve.useState({type:"slack",url:"",events:[]}),b=()=>{u({webhooks:[...l.webhooks,y]}),w({type:"slack",url:"",events:[]}),f(!1)},x=(S,T)=>{const D=[...l.webhooks];D[S]=T,u({webhooks:D})},N=S=>{u({webhooks:l.webhooks.filter((T,D)=>D!==S)})};return s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"text-sm text-slate-400 mb-4",children:"Receive notifications when events occur via Slack, Discord, or Telegram"}),s.jsx("div",{className:"space-y-3",children:l.webhooks.length===0?s.jsx("p",{className:"text-slate-500 text-sm italic",children:"No webhooks configured."}):l.webhooks.map((S,T)=>s.jsx("div",{children:d===T?s.jsx(Qg,{webhook:S,onChange:D=>x(T,D),onSave:()=>o(null),onCancel:()=>o(null)}):s.jsxs("div",{className:"flex items-center justify-between p-4 rounded-md border border-slate-800 bg-slate-950/40",children:[s.jsxs("div",{className:"flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"text-sm font-medium text-slate-200 capitalize",children:S.type}),S.type==="telegram"&&s.jsxs("span",{className:"text-xs text-slate-500",children:["Chat ID: ",S.chatId]})]}),s.jsx("div",{className:"flex flex-wrap gap-1",children:S.events.map(D=>s.jsx("span",{className:"px-2 py-0.5 bg-slate-800 rounded text-xs text-slate-400",children:D.replace("_"," ")},D))})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("button",{type:"button",onClick:()=>o(T),className:"p-2 text-slate-400 hover:text-slate-200","aria-label":`Edit ${S.type} webhook`,title:`Edit ${S.type} webhook`,children:s.jsx(Yf,{className:"h-4 w-4"})}),s.jsx("button",{type:"button",onClick:()=>N(T),className:"p-2 text-red-400 hover:text-red-300","aria-label":`Delete ${S.type} webhook`,title:`Delete ${S.type} webhook`,children:s.jsx($f,{className:"h-4 w-4"})})]})]})},T))}),g?s.jsx(Qg,{webhook:y,onChange:w,onSave:b,onCancel:()=>f(!1),isNew:!0}):s.jsxs(mt,{variant:"ghost",onClick:()=>f(!0),children:[s.jsx(Lr,{className:"h-4 w-4 mr-2"}),"Add Webhook"]})]})},Xf=({label:l,value:u,onChange:d,placeholder:o,helpText:g})=>{const[f,y]=Ve.useState(""),w=()=>{f.trim()&&!u.includes(f.trim())&&(d([...u,f.trim()]),y(""))},b=N=>{d(u.filter(S=>S!==N))},x=N=>{N.key==="Enter"&&(N.preventDefault(),w())};return s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-2",children:l}),s.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:u.map(N=>s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-slate-800 rounded text-sm text-slate-300",children:[N,s.jsx("button",{type:"button",onClick:()=>b(N),className:"text-slate-500 hover:text-red-400","aria-label":`Remove ${N}`,title:`Remove ${N}`,children:s.jsx(qr,{className:"h-3 w-3"})})]},N))}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{type:"text",value:f,onChange:N=>y(N.target.value),onKeyDown:x,placeholder:o,className:"flex-1 bg-slate-800 border border-slate-700 rounded px-3 py-2 text-sm text-slate-200 placeholder-slate-500"}),s.jsx(mt,{onClick:w,disabled:!f.trim(),"aria-label":`Add ${l.toLowerCase()} value`,children:s.jsx(Lr,{className:"h-4 w-4"})})]}),g&&s.jsx("p",{className:"text-xs text-slate-500 mt-1",children:g})]})},jw=({isOpen:l,onClose:u,title:d,children:o})=>(L.useEffect(()=>{const g=f=>{f.key==="Escape"&&u()};return l&&(document.addEventListener("keydown",g),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",g),document.body.style.overflow="unset"}},[l,u]),l?Mb.createPortal(s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6",children:[s.jsx("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm transition-opacity",onClick:u,"aria-hidden":"true"}),s.jsxs("div",{className:"relative w-full max-w-2xl transform rounded-xl bg-slate-900 border border-slate-800 shadow-2xl transition-all flex flex-col max-h-[90vh]",children:[s.jsxs("div",{className:"flex items-center justify-between border-b border-slate-800 px-6 py-4",children:[s.jsx("h3",{className:"text-lg font-semibold text-slate-100",children:d}),s.jsx("button",{onClick:u,className:"rounded-full p-1 text-slate-400 hover:bg-slate-800 hover:text-slate-300 focus:outline-none focus:ring-2 focus:ring-indigo-500",children:s.jsx(qr,{className:"h-5 w-5"})})]}),s.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-6 text-slate-300",children:o})]})]}),document.body):null),Ew=l=>["TOKEN","SECRET","KEY","PASSWORD","AUTH","API_KEY"].some(d=>l.toUpperCase().includes(d)),Tw=({value:l,isSensitive:u})=>{const[d,o]=Ve.useState(!1);return u?s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-sm text-slate-300 font-mono",children:d?l:"***********"}),s.jsx("button",{type:"button",onClick:()=>o(!d),className:"text-slate-500 hover:text-slate-300","aria-label":d?"Hide sensitive value":"Show sensitive value",title:d?"Hide sensitive value":"Show sensitive value",children:d?s.jsx(f1,{className:"h-4 w-4"}):s.jsx(m1,{className:"h-4 w-4"})})]}):s.jsx("span",{className:"text-sm text-slate-300 font-mono truncate max-w-xs",children:l})},vx=({envVars:l,onChange:u,compact:d=!1})=>{const[o,g]=Ve.useState(""),[f,y]=Ve.useState(""),[w,b]=Ve.useState(null),[x,N]=Ve.useState(""),S=()=>{if(o.trim()){if(!/^[A-Z_][A-Z0-9_]*$/.test(o)){alert("Key must be uppercase with underscores (e.g., API_KEY)");return}u({...l,[o]:f}),g(""),y("")}},T=X=>{const Q={...l};delete Q[X],u(Q)},D=X=>{b(X),N(l[X]??"")},q=()=>{w&&(u({...l,[w]:x}),b(null),N(""))},M=()=>{b(null),N("")},$=Object.entries(l);return s.jsxs("div",{className:"space-y-4",children:[!d&&s.jsx("div",{className:"text-sm text-slate-400 mb-4",children:"Configure environment variables passed to the provider CLI (API keys, base URLs)"}),s.jsx("div",{className:"space-y-2",children:$.length===0?s.jsx("p",{className:"text-slate-500 text-sm italic",children:"No environment variables configured."}):$.map(([X,Q])=>s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[s.jsxs("div",{className:"flex items-center gap-4 flex-1 min-w-0",children:[s.jsx("span",{className:"text-sm font-mono text-indigo-400 w-48 truncate",children:X}),w===X?s.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[s.jsx("input",{type:"text",value:x,onChange:F=>N(F.target.value),className:"flex-1 bg-slate-800 border border-slate-700 rounded px-2 py-1 text-sm text-slate-200"}),s.jsx("button",{type:"button",onClick:q,className:"p-1 text-green-400 hover:text-green-300","aria-label":`Save ${X} value`,title:`Save ${X} value`,children:s.jsx(jf,{className:"h-4 w-4"})}),s.jsx("button",{type:"button",onClick:M,className:"p-1 text-slate-400 hover:text-slate-300","aria-label":`Cancel editing ${X}`,title:`Cancel editing ${X}`,children:s.jsx(qr,{className:"h-4 w-4"})})]}):s.jsx(Tw,{value:Q,isSensitive:Ew(X)})]}),w!==X&&s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("button",{type:"button",onClick:()=>D(X),className:"p-1 text-slate-400 hover:text-slate-200","aria-label":`Edit ${X}`,title:`Edit ${X}`,children:s.jsx(Yf,{className:"h-4 w-4"})}),s.jsx("button",{type:"button",onClick:()=>T(X),className:"p-1 text-red-400 hover:text-red-300","aria-label":`Delete ${X}`,title:`Delete ${X}`,children:s.jsx($f,{className:"h-4 w-4"})})]})]},X))}),s.jsxs("div",{className:`flex items-end gap-3 ${d?"":"pt-4 border-t border-slate-800"}`,children:[s.jsxs("div",{className:"flex-1",children:[!d&&s.jsx("label",{className:"block text-xs font-medium text-slate-500 mb-1",children:"Key"}),s.jsx("input",{type:"text",value:o,onChange:X=>g(X.target.value.toUpperCase()),placeholder:d?"ENV_VAR_NAME":"e.g., ANTHROPIC_BASE_URL",className:"w-full bg-slate-800 border border-slate-700 rounded px-3 py-2 text-sm text-slate-200 placeholder-slate-500"})]}),s.jsxs("div",{className:"flex-1",children:[!d&&s.jsx("label",{className:"block text-xs font-medium text-slate-500 mb-1",children:"Value"}),s.jsx("input",{type:"text",value:f,onChange:X=>y(X.target.value),placeholder:d?"value":"e.g., https://api.example.com",className:"w-full bg-slate-800 border border-slate-700 rounded px-3 py-2 text-sm text-slate-200 placeholder-slate-500"})]}),s.jsxs(mt,{onClick:S,disabled:!o.trim(),size:d?"sm":"md",children:[s.jsx(Lr,{className:"h-4 w-4 mr-1"}),"Add"]})]})]})};function Mw(l,u){var d;return!!(l!=null&&l.startsWith("glm-")||(d=u==null?void 0:u.model)!=null&&d.startsWith("glm-"))}function Cw(l,u){var d,o;return Mw(l,u)?!((o=(d=u==null?void 0:u.envVars)==null?void 0:d.ANTHROPIC_API_KEY)!=null&&o.trim()):!1}const Wg={claude:{name:"Claude",command:"claude",promptFlag:"-p",autoApproveFlag:"--dangerously-skip-permissions"},codex:{name:"Codex",command:"codex",subcommand:"exec",autoApproveFlag:"--yolo",workdirFlag:"-C"},custom:{name:"",command:""}},Ow=({isOpen:l,onClose:u,onSave:d,presetId:o,preset:g,isBuiltIn:f,existingIds:y})=>{const[w,b]=Ve.useState(""),[x,N]=Ve.useState({name:"",command:"",subcommand:"",promptFlag:"",autoApproveFlag:"",workdirFlag:"",modelFlag:"",model:"",envVars:{}}),[S,T]=Ve.useState(!1),[D,q]=Ve.useState("custom"),[M,$]=Ve.useState(null),X=Cw(o??w,x);Ve.useEffect(()=>{l&&(o&&g?(b(o),N({name:g.name,command:g.command,subcommand:g.subcommand??"",promptFlag:g.promptFlag??"",autoApproveFlag:g.autoApproveFlag??"",workdirFlag:g.workdirFlag??"",modelFlag:g.modelFlag??"",model:g.model??"",envVars:g.envVars??{}}),o==="claude"||g.command==="claude"?q("claude"):o==="codex"||g.command==="codex"?q("codex"):q("custom")):(b(""),N({name:"",command:"",subcommand:"",promptFlag:"",autoApproveFlag:"",workdirFlag:"",modelFlag:"",model:"",envVars:{}}),q("custom")),$(null),T(!!(g!=null&&g.envVars&&Object.keys(g.envVars).length>0)))},[l,o,g]);const Q=ee=>{if(q(ee),ee!=="custom"&&Wg[ee]){const P=Wg[ee];N(W=>({...W,...P,envVars:W.envVars})),!o&&!w&&b(ee)}},F=(ee,P)=>{N(W=>({...W,[ee]:P})),$(null)},J=()=>{if(!x.name.trim())return $("Name is required"),!1;if(!x.command.trim())return $("Command is required"),!1;if(!o){if(!w.trim())return $("Preset ID is required"),!1;if(!/^[a-z0-9_-]+$/.test(w))return $("Preset ID must be lowercase letters, numbers, hyphens, and underscores only"),!1;if(y.includes(w))return $("A preset with this ID already exists"),!1}return!0},ne=()=>{var P,W,A,C,ae,Y;if(!J())return;const ee={name:x.name.trim(),command:x.command.trim()};(P=x.subcommand)!=null&&P.trim()&&(ee.subcommand=x.subcommand.trim()),(W=x.promptFlag)!=null&&W.trim()&&(ee.promptFlag=x.promptFlag.trim()),(A=x.autoApproveFlag)!=null&&A.trim()&&(ee.autoApproveFlag=x.autoApproveFlag.trim()),(C=x.workdirFlag)!=null&&C.trim()&&(ee.workdirFlag=x.workdirFlag.trim()),(ae=x.modelFlag)!=null&&ae.trim()&&(ee.modelFlag=x.modelFlag.trim()),(Y=x.model)!=null&&Y.trim()&&(ee.model=x.model.trim()),x.envVars&&Object.keys(x.envVars).length>0&&(ee.envVars=x.envVars),d(o||w,ee),u()};return s.jsx(jw,{isOpen:l,onClose:u,title:o?`Edit Preset: ${g==null?void 0:g.name}`:"Add Provider Preset",children:s.jsxs("div",{className:"space-y-6",children:[M&&s.jsx("div",{className:"p-3 rounded-md bg-red-500/10 border border-red-500/20 text-red-400 text-sm",children:M}),X&&s.jsx("div",{className:"p-3 rounded-md bg-amber-500/10 border border-amber-500/20 text-amber-300 text-sm",children:s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(Xc,{className:"h-4 w-4 shrink-0 mt-0.5"}),s.jsxs("div",{children:[s.jsx("div",{className:"font-medium",children:"GLM presets require `ANTHROPIC_API_KEY`."}),s.jsx("div",{className:"text-amber-200/80",children:"Add `ANTHROPIC_API_KEY` in Environment Variables before using this preset."})]})]})}),!f&&s.jsx("div",{children:s.jsx(da,{label:"Template",value:D,onChange:Q,options:[{label:"Start from scratch",value:"custom"},{label:"Claude (Anthropic)",value:"claude"},{label:"Codex (OpenAI)",value:"codex"}],helperText:"Start with a pre-configured template or customize from scratch"})}),!o&&s.jsx($e,{label:"Preset ID",value:w,onChange:ee=>b(ee.target.value.toLowerCase().replace(/[^a-z0-9_-]/g,"")),placeholder:"e.g., my-custom-provider",helperText:"Unique identifier for this preset (lowercase, numbers, hyphens, underscores)"}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsx($e,{label:"Display Name",value:x.name,onChange:ee=>F("name",ee.target.value),placeholder:"e.g., My Custom Provider",required:!0}),s.jsx($e,{label:"Command",value:x.command,onChange:ee=>F("command",ee.target.value),placeholder:"e.g., claude, codex, npx",required:!0})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsx($e,{label:"Model",value:x.model??"",onChange:ee=>F("model",ee.target.value),placeholder:"e.g., claude-opus-4-6",helperText:"Default model to use"}),s.jsx($e,{label:"Model Flag",value:x.modelFlag??"",onChange:ee=>F("modelFlag",ee.target.value),placeholder:"e.g., --model",helperText:"Flag for specifying the model"})]}),s.jsxs("div",{className:"border-t border-slate-800 pt-4",children:[s.jsxs("button",{type:"button",onClick:()=>T(!S),className:"flex items-center gap-2 text-sm text-slate-400 hover:text-slate-200 transition-colors",children:[S?s.jsx(e1,{className:"h-4 w-4"}):s.jsx(wy,{className:"h-4 w-4"}),"Advanced Options"]}),S&&s.jsxs("div",{className:"mt-4 space-y-4",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsx($e,{label:"Subcommand",value:x.subcommand??"",onChange:ee=>F("subcommand",ee.target.value),placeholder:"e.g., exec",helperText:"Subcommand after base command"}),s.jsx($e,{label:"Prompt Flag",value:x.promptFlag??"",onChange:ee=>F("promptFlag",ee.target.value),placeholder:"e.g., -p",helperText:"Flag for passing the prompt"})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsx($e,{label:"Auto-Approve Flag",value:x.autoApproveFlag??"",onChange:ee=>F("autoApproveFlag",ee.target.value),placeholder:"e.g., --dangerously-skip-permissions",helperText:"Flag to enable auto-approve mode"}),s.jsx($e,{label:"Workdir Flag",value:x.workdirFlag??"",onChange:ee=>F("workdirFlag",ee.target.value),placeholder:"e.g., -C",helperText:"Flag for setting working directory"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-2",children:"Environment Variables"}),s.jsx(vx,{envVars:x.envVars??{},onChange:ee=>F("envVars",ee),compact:!0})]})]})]}),s.jsxs("div",{className:"flex justify-end gap-3 pt-4 border-t border-slate-800",children:[s.jsx(mt,{variant:"ghost",onClick:u,children:"Cancel"}),s.jsx(mt,{onClick:ne,children:o?"Save Changes":"Add Preset"})]})]})})},Dw=({form:l,updateField:u,projectName:d,doctorChecks:o,doctorLoading:g})=>s.jsxs("div",{className:"space-y-6",children:[s.jsx(Ke,{className:"p-6 space-y-6",children:s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Project Configuration"}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mt-4",children:[s.jsx($e,{label:"Project Name",value:d,disabled:!0}),s.jsx($e,{label:"Default Branch",value:l.defaultBranch,onChange:f=>u("defaultBranch",f.target.value)}),s.jsx($e,{label:"PRD Directory",value:l.prdDir,onChange:f=>u("prdDir",f.target.value),helperText:"Directory containing PRD files (relative to project root)"}),s.jsx($e,{label:"Branch Prefix",value:l.branchPrefix,onChange:f=>u("branchPrefix",f.target.value)}),s.jsx("div",{className:"md:col-span-2",children:s.jsx(Ma,{label:"Enable PRD Executor",checked:l.executorEnabled,onChange:f=>u("executorEnabled",f)})}),s.jsx("div",{className:"md:col-span-2",children:s.jsx(Ma,{label:"Enable Automated Reviews",checked:l.reviewerEnabled,onChange:f=>u("reviewerEnabled",f)})}),s.jsx("div",{className:"md:col-span-2",children:s.jsx(Ma,{label:"Auto-merge approved PRs",checked:l.autoMerge,onChange:f=>u("autoMerge",f)})}),l.autoMerge&&s.jsx(da,{label:"Merge Method",value:l.autoMergeMethod,onChange:f=>u("autoMergeMethod",f),options:[{label:"Squash",value:"squash"},{label:"Merge",value:"merge"},{label:"Rebase",value:"rebase"}]})]}),s.jsx("div",{className:"pt-4 mt-4 border-t border-slate-800",children:s.jsx(Xf,{label:"Branch Patterns",value:l.branchPatterns,onChange:f=>u("branchPatterns",f),placeholder:"e.g., feat/",helpText:"Branch patterns matched by reviewer and related automation jobs"})})]})}),s.jsxs(Ke,{className:"divide-y divide-slate-800",children:[s.jsxs("div",{className:"p-4 flex items-center gap-2",children:[s.jsx(Sy,{className:"h-4 w-4 text-indigo-500"}),s.jsx("h3",{className:"text-base font-medium text-slate-200",children:"System Health"})]}),g?s.jsx("div",{className:"p-4 text-sm text-slate-500",children:"Loading health checks..."}):o.map((f,y)=>{const w=f.status==="pass",b=f.status==="warn",x=w?"bg-green-500/10 text-green-400 border-green-500/20":b?"bg-amber-500/10 text-amber-400 border-amber-500/20":"bg-red-500/10 text-red-400 border-red-500/20";return s.jsxs("div",{className:"p-4 flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-slate-200",children:f.name}),s.jsx("p",{className:"text-xs text-slate-500",children:f.detail})]}),s.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium border ${x}`,children:f.status.toUpperCase()})]},`${f.name}-${y}`)})]})]}),Ig=({presetId:l,preset:u,isBuiltIn:d,onEdit:o,onDelete:g,onReset:f})=>{var x,N,S;const y=u.envVars?Object.keys(u.envVars).length:0,b=(l.startsWith("glm-")||((x=u.model)==null?void 0:x.startsWith("glm-")))&&!((S=(N=u.envVars)==null?void 0:N.ANTHROPIC_API_KEY)!=null&&S.trim());return s.jsxs("div",{className:"flex flex-col p-4 rounded-lg border border-slate-800 bg-slate-950/40 hover:border-slate-700 transition-colors",children:[s.jsxs("div",{className:"flex items-start justify-between gap-2 mb-3",children:[s.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[s.jsx("h4",{className:"text-sm font-medium text-slate-200",children:u.name}),d&&s.jsx(_r,{variant:"info",className:"text-[10px]",children:"Built-in"}),b&&s.jsxs("span",{className:"flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] bg-amber-900/40 text-amber-400 border border-amber-800/50",title:"GLM presets require ANTHROPIC_API_KEY in env vars",children:[s.jsx(Xc,{className:"h-3 w-3"}),"Missing ANTHROPIC_API_KEY"]})]}),s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("button",{type:"button",onClick:o,className:"p-1.5 text-slate-400 hover:text-slate-200 hover:bg-slate-800 rounded transition-colors","aria-label":`Edit ${u.name} preset`,title:"Edit preset",children:s.jsx(Yf,{className:"h-4 w-4"})}),d?f&&s.jsx("button",{type:"button",onClick:f,className:"p-1.5 text-slate-400 hover:text-indigo-400 hover:bg-slate-800 rounded transition-colors","aria-label":`Reset ${u.name} to defaults`,title:"Reset to defaults",children:s.jsx(My,{className:"h-4 w-4"})}):g&&s.jsx("button",{type:"button",onClick:g,className:"p-1.5 text-slate-400 hover:text-red-400 hover:bg-slate-800 rounded transition-colors","aria-label":`Delete ${u.name} preset`,title:"Delete preset",children:s.jsx($f,{className:"h-4 w-4"})})]})]}),s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx("span",{className:"text-xs text-slate-500",children:"Command:"}),s.jsxs("code",{className:"px-2 py-0.5 bg-slate-800 rounded text-xs text-indigo-400 font-mono",children:[u.command,u.subcommand&&` ${u.subcommand}`]})]}),u.model&&s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx("span",{className:"text-xs text-slate-500",children:"Model:"}),s.jsx(_r,{variant:"neutral",className:"text-[10px] font-mono",children:u.model})]}),s.jsxs("div",{className:"flex items-center gap-3 mt-auto pt-2 border-t border-slate-800/50",children:[s.jsxs("span",{className:"text-xs text-slate-600 font-mono",children:["id: ",l]}),y>0&&s.jsxs("span",{className:"text-xs text-slate-500",children:[y," env var",y!==1?"s":""]})]})]})},Xg=["claude","claude-sonnet-4-6","claude-opus-4-6","codex","glm-47","glm-5"],Rw=({form:l,updateField:u,jobProvidersChangedRef:d,getAllPresets:o,getPresetOptions:g,handleEditPreset:f,handleDeletePreset:y,handleResetPreset:w,handleAddPreset:b})=>s.jsxs("div",{className:"space-y-6",children:[s.jsxs(Ke,{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Provider Presets"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"Configure AI provider presets with custom commands, models, and environment variables"})]}),s.jsxs(mt,{onClick:b,children:[s.jsx(Lr,{className:"h-4 w-4 mr-2"}),"Add Provider"]})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[Xg.map(x=>{const S=o()[x];return S?s.jsx(Ig,{presetId:x,preset:S,isBuiltIn:!0,onEdit:()=>f(x),onReset:()=>w(x)},x):null}),Object.entries(l.providerPresets).filter(([x])=>!Xg.includes(x)).map(([x,N])=>s.jsx(Ig,{presetId:x,preset:N,isBuiltIn:!1,onEdit:()=>f(x),onDelete:()=>y(x)},x))]})]}),s.jsxs(Ke,{className:"p-6 space-y-6",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Job Assignments"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"Assign provider presets to specific job types. Jobs without an assignment use the global provider."})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between p-4 rounded-md border border-indigo-500/30 bg-indigo-500/5 gap-4",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-sm font-medium text-slate-200",children:"Global Provider"}),s.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Default preset for all jobs without a specific assignment"})]}),s.jsx("div",{className:"w-64",children:s.jsx(da,{value:l.provider,onChange:x=>u("provider",x),options:g(l.providerPresets)})})]}),[{key:"executor",label:"Executor"},{key:"reviewer",label:"Reviewer"},{key:"qa",label:"QA"},{key:"audit",label:"Audit"},{key:"slicer",label:"Planner"},{key:"analytics",label:"Analytics"}].map(({key:x,label:N})=>s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40 gap-4",children:[s.jsx("span",{className:"text-sm font-medium text-slate-200 whitespace-nowrap",children:N}),s.jsx("div",{className:"w-64",children:s.jsx(da,{value:l.jobProviders[x]??"",onChange:S=>{const T={...l.jobProviders};S===""?delete T[x]:T[x]=S,d.current=!0,u("jobProviders",T)},options:[{label:"Use Global (default)",value:""},...g(l.providerPresets)]})})]},x))]})]}),s.jsxs(Ke,{className:"p-6 space-y-6",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Rate Limit Fallback"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"Preset to use when the active provider is rate-limited"})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsx(da,{label:"Primary Fallback Preset",value:l.primaryFallbackPreset,onChange:x=>u("primaryFallbackPreset",x),options:[{label:"— None —",value:""},...Object.entries(o()).map(([x,N])=>({label:N.name,value:x}))],helperText:"Preset to use as the primary rate-limit fallback"}),s.jsx(da,{label:"Secondary Fallback Preset",value:l.secondaryFallbackPreset,onChange:x=>u("secondaryFallbackPreset",x),options:[{label:"— None —",value:""},...Object.entries(o()).map(([x,N])=>({label:N.name,value:x}))],helperText:"Used only if the primary fallback preset is also rate-limited"})]})]}),s.jsxs(Ke,{className:"p-6",children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200 mb-2",children:"Global Provider Environment Variables"}),s.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"Environment variables passed to all provider CLIs. Preset-level env vars take precedence."}),s.jsx(vx,{envVars:l.providerEnv,onChange:x=>u("providerEnv",x)})]}),s.jsxs(Ke,{className:"p-6 space-y-6",children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Performance"}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-2",children:"Min Review Score (0-100)"}),s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsx("input",{type:"range",min:"0",max:"100",value:l.minReviewScore,onChange:x=>u("minReviewScore",Number(x.target.value)),className:"w-full h-2 bg-slate-800 rounded-lg appearance-none cursor-pointer accent-indigo-500"}),s.jsx("span",{className:"text-sm font-bold text-slate-200 w-10",children:l.minReviewScore})]}),s.jsx("p",{className:"text-xs text-slate-500 mt-1",children:'PRs below this score will be marked as "Needs Work".'})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsx($e,{label:"Max Runtime (Executor)",type:"number",value:String(l.maxRuntime),onChange:x=>u("maxRuntime",Number(x.target.value||0)),rightIcon:s.jsx("span",{className:"text-xs",children:"sec"})}),s.jsx($e,{label:"Max Runtime (Reviewer)",type:"number",value:String(l.reviewerMaxRuntime),onChange:x=>u("reviewerMaxRuntime",Number(x.target.value||0)),rightIcon:s.jsx("span",{className:"text-xs",children:"sec"})}),s.jsx($e,{label:"Max Log Size",type:"number",value:String(l.maxLogSize),onChange:x=>u("maxLogSize",Number(x.target.value||0)),rightIcon:s.jsx("span",{className:"text-xs",children:"bytes"})})]})]}),s.jsxs(Ke,{className:"p-6 space-y-6",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Retry Settings"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"Configure automatic retry behavior for the PR reviewer when fixes do not fully resolve issues."})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsx($e,{label:"Max Retry Attempts",type:"number",min:"0",max:"10",value:String(l.reviewerMaxRetries),onChange:x=>{const N=Math.min(10,Math.max(0,Number(x.target.value||0)));u("reviewerMaxRetries",N)},helperText:"Additional fix attempts after initial review. 0 = no retries."}),s.jsx($e,{label:"Retry Delay (seconds)",type:"number",min:"0",max:"300",value:String(l.reviewerRetryDelay),onChange:x=>{const N=Math.min(300,Math.max(0,Number(x.target.value||0)));u("reviewerRetryDelay",N)},helperText:"Wait time between retry attempts to let CI settle."}),s.jsx($e,{label:"Max PRs Per Run",type:"number",min:"0",max:"100",value:String(l.reviewerMaxPrsPerRun),onChange:x=>{const N=Math.min(100,Math.max(0,Number(x.target.value||0)));u("reviewerMaxPrsPerRun",N)},helperText:"Hard cap on how many PRs the reviewer processes per run. 0 = unlimited."})]})]})]}),Aw=({form:l,updateField:u,handleRoadmapToggle:d})=>{var o,g;return s.jsxs("div",{className:"space-y-6",children:[s.jsx("div",{id:"job-section-qa",children:s.jsxs(Ke,{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Quality Assurance"}),s.jsx("p",{className:"text-sm text-slate-400",children:"Automated UI testing using Playwright"})]}),s.jsx(Ma,{checked:l.qa.enabled,onChange:f=>u("qa",{...l.qa,enabled:f})})]}),l.qa.enabled&&s.jsxs("div",{className:"space-y-6 pt-4 border-t border-slate-800",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsx(On,{label:"QA Schedule",value:l.qa.schedule,onChange:f=>u("qa",{...l.qa,schedule:f})}),s.jsx($e,{label:"Max Runtime",type:"number",value:String(l.qa.maxRuntime),onChange:f=>u("qa",{...l.qa,maxRuntime:Number(f.target.value||0)}),rightIcon:s.jsx("span",{className:"text-xs",children:"sec"}),helperText:"Maximum runtime for QA tasks (default: 3600 seconds)"}),s.jsx(da,{label:"Artifacts",value:l.qa.artifacts,onChange:f=>u("qa",{...l.qa,artifacts:f}),options:[{label:"Screenshots",value:"screenshot"},{label:"Videos",value:"video"},{label:"Both",value:"both"}],helperText:"What artifacts to capture for UI tests"}),s.jsx($e,{label:"Skip Label",value:l.qa.skipLabel,onChange:f=>u("qa",{...l.qa,skipLabel:f.target.value}),helperText:"GitHub label to skip QA (PRs with this label are excluded)"})]}),s.jsx(Xf,{label:"QA Branch Patterns",value:l.qa.branchPatterns,onChange:f=>u("qa",{...l.qa,branchPatterns:f}),placeholder:"e.g., qa/, test/",helpText:"Branch patterns to match for QA (defaults to top-level branchPatterns if empty)"}),s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-sm font-medium text-slate-200",children:"Auto-install Playwright"}),s.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Automatically install Playwright browsers if missing during QA run"})]}),s.jsx(Ma,{checked:l.qa.autoInstallPlaywright,onChange:f=>u("qa",{...l.qa,autoInstallPlaywright:f})})]})]})]})}),s.jsx("div",{id:"job-section-audit",children:s.jsxs(Ke,{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Code Audit"}),s.jsx("p",{className:"text-sm text-slate-400",children:"Automated code quality and security audits"})]}),s.jsx(Ma,{checked:l.audit.enabled,onChange:f=>u("audit",{...l.audit,enabled:f})})]}),l.audit.enabled&&s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 pt-4 border-t border-slate-800",children:[s.jsx(On,{label:"Audit Schedule",value:l.audit.schedule,onChange:f=>u("audit",{...l.audit,schedule:f})}),s.jsx($e,{label:"Max Runtime",type:"number",value:String(l.audit.maxRuntime),onChange:f=>u("audit",{...l.audit,maxRuntime:Number(f.target.value||0)}),rightIcon:s.jsx("span",{className:"text-xs",children:"sec"}),helperText:"Maximum runtime for audit tasks (default: 1800 seconds)"})]})]})}),s.jsx("div",{id:"job-section-analytics",children:s.jsxs(Ke,{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Analytics (Amplitude)"}),s.jsx("p",{className:"text-sm text-slate-400",children:"Fetch Amplitude data, analyze with AI, and create board issues"})]}),s.jsx(Ma,{checked:l.analytics.enabled,onChange:f=>u("analytics",{...l.analytics,enabled:f})})]}),l.analytics.enabled&&s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 pt-4 border-t border-slate-800",children:[s.jsx($e,{label:"Amplitude API Key",value:((o=l.providerEnv)==null?void 0:o.AMPLITUDE_API_KEY)??"",onChange:f=>u("providerEnv",{...l.providerEnv,AMPLITUDE_API_KEY:f.target.value}),placeholder:"Required",helperText:"Your Amplitude project API key"}),s.jsx($e,{label:"Amplitude Secret Key",type:"password",value:((g=l.providerEnv)==null?void 0:g.AMPLITUDE_SECRET_KEY)??"",onChange:f=>u("providerEnv",{...l.providerEnv,AMPLITUDE_SECRET_KEY:f.target.value}),placeholder:"Required",helperText:"Your Amplitude secret key"}),s.jsx(On,{label:"Analytics Schedule",value:l.analytics.schedule,onChange:f=>u("analytics",{...l.analytics,schedule:f})}),s.jsx($e,{label:"Max Runtime",type:"number",value:String(l.analytics.maxRuntime),onChange:f=>u("analytics",{...l.analytics,maxRuntime:Number(f.target.value||0)}),rightIcon:s.jsx("span",{className:"text-xs",children:"sec"}),helperText:"Maximum runtime for analytics job (default: 900 seconds)"}),s.jsx($e,{label:"Lookback Days",type:"number",min:"1",max:"90",value:String(l.analytics.lookbackDays),onChange:f=>u("analytics",{...l.analytics,lookbackDays:Math.max(1,Math.min(90,Number(f.target.value||7)))}),helperText:"Number of days to look back in Amplitude (1-90)"}),s.jsx(da,{label:"Target Column",value:l.analytics.targetColumn,onChange:f=>u("analytics",{...l.analytics,targetColumn:f}),options:[{value:"Draft",label:"Draft"},{value:"Ready",label:"Ready"},{value:"In Progress",label:"In Progress"},{value:"Review",label:"Review"},{value:"Done",label:"Done"}],helperText:"Board column for created issues"}),s.jsxs("div",{className:"md:col-span-2",children:[s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1.5",children:"Analysis Prompt (optional)"}),s.jsx("textarea",{rows:4,value:l.analytics.analysisPrompt??"",onChange:f=>u("analytics",{...l.analytics,analysisPrompt:f.target.value}),placeholder:"Custom prompt for AI analysis. Leave empty to use default.",className:"w-full bg-slate-950/50 border border-white/10 text-slate-200 rounded-lg px-3 py-2.5 text-sm placeholder-slate-600 focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/20 resize-y"}),s.jsx("p",{className:"mt-1.5 text-xs text-slate-500",children:"Custom prompt for AI analysis. Leave empty to use default."})]})]})]})}),s.jsx("div",{id:"job-section-slicer",children:s.jsxs(Ke,{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Planner"}),s.jsx("p",{className:"text-sm text-slate-400",children:"Generate one PRD per run using ROADMAP.md first, then audit findings when roadmap work is exhausted"})]}),s.jsx(Ma,{checked:l.roadmapScanner.enabled,"aria-label":"Enable planner",onChange:d})]}),l.roadmapScanner.enabled&&s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 pt-4 border-t border-slate-800",children:[s.jsx($e,{label:"Roadmap File Path",value:l.roadmapScanner.roadmapPath,onChange:f=>u("roadmapScanner",{...l.roadmapScanner,roadmapPath:f.target.value}),helperText:"Primary planning source (relative to project root)."}),s.jsx(On,{label:"Planner Schedule",value:l.roadmapScanner.slicerSchedule||"35 */12 * * *",onChange:f=>u("roadmapScanner",{...l.roadmapScanner,slicerSchedule:f})}),s.jsx($e,{label:"Planner Max Runtime",type:"number",value:String(l.roadmapScanner.slicerMaxRuntime||""),onChange:f=>u("roadmapScanner",{...l.roadmapScanner,slicerMaxRuntime:Number(f.target.value||0)}),rightIcon:s.jsx("span",{className:"text-xs",children:"sec"}),helperText:"Maximum runtime for planner tasks"}),s.jsx(da,{label:"Planner Priority Mode",value:l.roadmapScanner.priorityMode||"roadmap-first",onChange:f=>u("roadmapScanner",{...l.roadmapScanner,priorityMode:f==="audit-first"?"audit-first":"roadmap-first"}),options:[{label:"Roadmap first (recommended)",value:"roadmap-first"},{label:"Audit first",value:"audit-first"}],helperText:"Choose whether planner consumes roadmap items or audit findings first."}),s.jsx(da,{label:"Planner Issue Column",value:l.roadmapScanner.issueColumn||"Draft",onChange:f=>u("roadmapScanner",{...l.roadmapScanner,issueColumn:f==="Ready"?"Ready":"Draft"}),options:[{label:"Draft (default)",value:"Draft"},{label:"Ready",value:"Ready"}],helperText:"Column where planner-created issues are added after PRD generation."})]})]})})]})},Jg=["claude","claude-sonnet-4-6","claude-opus-4-6","codex","glm-47","glm-5"],_w=["executor","reviewer","qa","audit","slicer","analytics"],Sf=l=>{var u,d,o,g,f,y,w;return{provider:l.provider,providerLabel:l.providerLabel??"",providerPresets:l.providerPresets??{},defaultBranch:l.defaultBranch,prdDir:l.prdDir||"docs/prds",branchPrefix:l.branchPrefix,branchPatterns:l.branchPatterns||[],executorEnabled:l.executorEnabled??!0,reviewerEnabled:l.reviewerEnabled,minReviewScore:l.minReviewScore,maxRuntime:l.maxRuntime,reviewerMaxRuntime:l.reviewerMaxRuntime,maxLogSize:l.maxLogSize,cronSchedule:l.cronSchedule||"5 */3 * * *",reviewerSchedule:l.reviewerSchedule||"25 */6 * * *",scheduleBundleId:l.scheduleBundleId??null,cronScheduleOffset:l.cronScheduleOffset??0,schedulingPriority:l.schedulingPriority??3,maxRetries:l.maxRetries??3,reviewerMaxRetries:l.reviewerMaxRetries??2,reviewerRetryDelay:l.reviewerRetryDelay??30,reviewerMaxPrsPerRun:l.reviewerMaxPrsPerRun??0,providerEnv:l.providerEnv||{},notifications:l.notifications||{webhooks:[]},prdPriority:l.prdPriority||[],roadmapScanner:{enabled:((u=l.roadmapScanner)==null?void 0:u.enabled)??!0,roadmapPath:((d=l.roadmapScanner)==null?void 0:d.roadmapPath)??"ROADMAP.md",autoScanInterval:((o=l.roadmapScanner)==null?void 0:o.autoScanInterval)??300,slicerSchedule:((g=l.roadmapScanner)==null?void 0:g.slicerSchedule)??"35 */12 * * *",slicerMaxRuntime:((f=l.roadmapScanner)==null?void 0:f.slicerMaxRuntime)??600,priorityMode:((y=l.roadmapScanner)==null?void 0:y.priorityMode)??"roadmap-first",issueColumn:((w=l.roadmapScanner)==null?void 0:w.issueColumn)??"Draft"},templatesDir:l.templatesDir||".night-watch/templates",boardProvider:l.boardProvider||{enabled:!0,provider:"github"},jobProviders:l.jobProviders||{},autoMerge:l.autoMerge??!1,autoMergeMethod:l.autoMergeMethod??"squash",fallbackOnRateLimit:l.fallbackOnRateLimit??!0,primaryFallbackModel:l.primaryFallbackModel??l.claudeModel??"sonnet",secondaryFallbackModel:l.secondaryFallbackModel??l.primaryFallbackModel??l.claudeModel??"sonnet",primaryFallbackPreset:l.primaryFallbackPreset??"",secondaryFallbackPreset:l.secondaryFallbackPreset??"",claudeModel:l.primaryFallbackModel??l.claudeModel??"sonnet",qa:l.qa||{enabled:!0,schedule:"45 2,14 * * *",maxRuntime:3600,branchPatterns:[],artifacts:"both",skipLabel:"skip-qa",autoInstallPlaywright:!0},audit:l.audit||{enabled:!0,schedule:"50 3 * * 1",maxRuntime:1800},analytics:l.analytics||{enabled:!1,schedule:"0 6 * * 1",maxRuntime:900,lookbackDays:7,targetColumn:"Draft",analysisPrompt:""},queue:l.queue||{enabled:!0,maxConcurrency:1,maxWaitTime:7200,priority:{executor:50,reviewer:40,slicer:30,qa:20,audit:10}}}},Kg=l=>{const u=au(l.scheduleBundleId,l.cronSchedule,l.reviewerSchedule,l.qa.schedule,l.audit.schedule,l.roadmapScanner.slicerSchedule??"35 */12 * * *");return u?{mode:"template",selectedTemplateId:u.id}:{mode:"custom",selectedTemplateId:""}},kw=()=>{const{addToast:l,projectName:u,selectedProjectId:d,globalModeLoading:o}=ua(),[g,f]=Ve.useState(!1),[y,w]=Ve.useState(null),[b,x]=Ve.useState([]),N=Ve.useRef(!1),S=Ve.useRef(!1),[T,D]=Ve.useState("template"),[q,M]=Ve.useState("always-on"),[$,X]=Ve.useState("general"),[Q,F]=Ve.useState(!1),[J,ne]=Ve.useState(null),[ee,P]=Ve.useState(null),[W,A]=Ve.useState(null),{data:C,loading:ae,error:Y,refetch:ie}=gn(Zf,[d],{enabled:!o}),{data:ge,loading:he,refetch:V}=gn(K1,[d],{enabled:!o}),re=ge??[];Ve.useEffect(()=>{Ry().then(x).catch(console.error)},[d]),Ve.useEffect(()=>{const fe=new URLSearchParams(location.search),Se=fe.get("tab"),He=fe.get("mode");Se&&X({providers:"ai-runtime",runtime:"ai-runtime",roadmap:"jobs",qa:"jobs",audit:"jobs",analytics:"jobs",board:"integrations",notifications:"integrations"}[Se]??Se),He==="custom"?D("custom"):He==="template"&&D("template");const Ze=fe.get("jobType");Ze&&setTimeout(()=>{Te("current",Ze)},300)},[location.search,C]);const ye=Ve.useCallback(fe=>{const Se=Kg(fe);D(Se.mode),M(Se.selectedTemplateId)},[]);Ve.useEffect(()=>{if(C)if(N.current)N.current=!1;else{const fe=Sf(C);w(fe),ye(fe)}},[C,ye]),Ve.useEffect(()=>{y&&S.current&&(S.current=!1,xe())},[y==null?void 0:y.jobProviders]);const Te=(fe,Se)=>{if(fe===u||fe==="current"){if(["qa","audit","slicer","analytics"].includes(Se)){X("jobs"),setTimeout(()=>{const Ze=document.getElementById(`job-section-${Se}`);Ze&&(Ze.scrollIntoView({behavior:"smooth",block:"center"}),Ze.classList.add("ring-2","ring-indigo-500","ring-offset-2","ring-offset-slate-900","rounded-lg"),setTimeout(()=>Ze.classList.remove("ring-2","ring-indigo-500","ring-offset-2","ring-offset-slate-900"),2e3))},50);return}T!=="custom"&&le(),X("schedules"),setTimeout(()=>{const Ze={executor:"job-schedule-executor",reviewer:"job-schedule-reviewer"},xt=document.getElementById(Ze[Se]||"");xt&&(xt.scrollIntoView({behavior:"smooth",block:"center"}),xt.classList.add("ring-2","ring-indigo-500","ring-offset-2","ring-offset-slate-900","rounded-lg"),setTimeout(()=>xt.classList.remove("ring-2","ring-indigo-500","ring-offset-2","ring-offset-slate-900"),2e3))},50)}else l({title:"Project Switch Required",message:`To edit ${fe}, please switch to that project in the sidebar.`,type:"info"})},pe=(fe,Se)=>{w(He=>He&&{...He,[fe]:Se})},k=()=>{if(D("template"),!y)return;const fe=Kg(y);fe.mode==="template"&&(M(fe.selectedTemplateId),pe("scheduleBundleId",fe.selectedTemplateId))},le=()=>{D("custom"),pe("scheduleBundleId",null),M("")},me=fe=>{M(fe.id),w(Se=>Se&&{...Se,cronSchedule:fe.schedules.executor,reviewerSchedule:fe.schedules.reviewer,scheduleBundleId:fe.id,qa:{...Se.qa,schedule:fe.schedules.qa},audit:{...Se.audit,schedule:fe.schedules.audit},roadmapScanner:{...Se.roadmapScanner,slicerSchedule:fe.schedules.slicer},fallbackOnRateLimit:!0})},xe=async()=>{var He,Ze,xt,Ka,Rn;if(!y)return;const fe=y.cronSchedule!==(C==null?void 0:C.cronSchedule)||y.reviewerSchedule!==(C==null?void 0:C.reviewerSchedule)||y.cronScheduleOffset!==((C==null?void 0:C.cronScheduleOffset)??0)||y.schedulingPriority!==((C==null?void 0:C.schedulingPriority)??3)||y.executorEnabled!==((C==null?void 0:C.executorEnabled)??!0)||y.reviewerEnabled!==((C==null?void 0:C.reviewerEnabled)??!0)||y.queue.enabled!==(((He=C==null?void 0:C.queue)==null?void 0:He.enabled)??!0)||y.qa.enabled!==((C==null?void 0:C.qa.enabled)??!0)||y.qa.schedule!==(C==null?void 0:C.qa.schedule)||y.audit.enabled!==((C==null?void 0:C.audit.enabled)??!0)||y.audit.schedule!==(C==null?void 0:C.audit.schedule)||y.analytics.enabled!==(((Ze=C==null?void 0:C.analytics)==null?void 0:Ze.enabled)??!1)||y.analytics.schedule!==(((xt=C==null?void 0:C.analytics)==null?void 0:xt.schedule)??"0 6 * * 1")||y.roadmapScanner.enabled!==(((Ka=C==null?void 0:C.roadmapScanner)==null?void 0:Ka.enabled)??!0)||(y.roadmapScanner.slicerSchedule||"35 */12 * * *")!==(((Rn=C==null?void 0:C.roadmapScanner)==null?void 0:Rn.slicerSchedule)||"35 */12 * * *"),Se={};for(const ot of _w){const aa=y.jobProviders[ot];typeof aa=="string"&&aa.trim().length>0?Se[ot]=aa:C!=null&&C.jobProviders[ot]&&(Se[ot]=null)}f(!0);try{const ot=await nl({provider:y.provider,providerLabel:y.providerLabel.trim(),providerPresets:Object.keys(y.providerPresets).length>0?y.providerPresets:void 0,defaultBranch:y.defaultBranch,prdDir:y.prdDir,branchPrefix:y.branchPrefix,branchPatterns:y.branchPatterns,executorEnabled:y.executorEnabled,reviewerEnabled:y.reviewerEnabled,minReviewScore:y.minReviewScore,maxRuntime:y.maxRuntime,reviewerMaxRuntime:y.reviewerMaxRuntime,maxLogSize:y.maxLogSize,cronSchedule:y.cronSchedule,reviewerSchedule:y.reviewerSchedule,scheduleBundleId:T==="template"?y.scheduleBundleId:null,cronScheduleOffset:y.cronScheduleOffset,schedulingPriority:y.schedulingPriority,maxRetries:y.maxRetries,reviewerMaxRetries:y.reviewerMaxRetries,reviewerRetryDelay:y.reviewerRetryDelay,reviewerMaxPrsPerRun:y.reviewerMaxPrsPerRun,providerEnv:y.providerEnv,notifications:y.notifications,prdPriority:y.prdPriority,roadmapScanner:y.roadmapScanner,templatesDir:y.templatesDir,boardProvider:y.boardProvider,jobProviders:Se,autoMerge:y.autoMerge,autoMergeMethod:y.autoMergeMethod,fallbackOnRateLimit:y.fallbackOnRateLimit,primaryFallbackModel:y.primaryFallbackModel,secondaryFallbackModel:y.secondaryFallbackModel,primaryFallbackPreset:y.primaryFallbackPreset||void 0,secondaryFallbackPreset:y.secondaryFallbackPreset||void 0,claudeModel:y.primaryFallbackModel,qa:y.qa,audit:y.audit,analytics:y.analytics,queue:y.queue}),aa=Sf(ot);w(aa),ye(aa);let en="";if(fe)try{await nu()}catch(pn){en=pn instanceof Error?pn.message:"failed to reinstall cron schedules"}l(en?{title:"Settings Saved (Cron Reinstall Failed)",message:en,type:"warning"}:{title:"Settings Saved",message:fe?"Configuration updated and cron schedules reinstalled.":"Configuration updated successfully.",type:"success"}),N.current=!0,ie(),V()}catch(ot){l({title:"Save Failed",message:ot instanceof Error?ot.message:"Failed to save configuration",type:"error"})}finally{f(!1)}},Re=()=>{if(C){const fe=Sf(C);w(fe),ye(fe),l({title:"Reset Complete",message:"Unsaved changes were discarded.",type:"info"})}},Me=async fe=>{try{const Se=await Vy(fe);pe("roadmapScanner",Se.roadmapScanner);let He="";try{await nu()}catch(Ze){He=Ze instanceof Error?Ze.message:"Failed to reinstall cron schedules"}l(He?{title:"Planner Saved (Cron Reinstall Failed)",message:He,type:"warning"}:{title:fe?"Roadmap Scanner Enabled":"Roadmap Scanner Disabled",message:`Roadmap scanner has been ${fe?"enabled":"disabled"}.`,type:"success"})}catch(Se){l({title:"Toggle Failed",message:Se instanceof Error?Se.message:"Failed to toggle roadmap scanner",type:"error"})}},ke=()=>({...{claude:{name:"Claude",command:"claude",promptFlag:"-p",autoApproveFlag:"--dangerously-skip-permissions"},"claude-sonnet-4-6":{name:"Claude Sonnet 4.6",command:"claude",promptFlag:"-p",autoApproveFlag:"--dangerously-skip-permissions",modelFlag:"--model",model:"claude-sonnet-4-6"},"claude-opus-4-6":{name:"Claude Opus 4.6",command:"claude",promptFlag:"-p",autoApproveFlag:"--dangerously-skip-permissions",modelFlag:"--model",model:"claude-opus-4-6"},codex:{name:"Codex",command:"codex",subcommand:"exec",autoApproveFlag:"--yolo",workdirFlag:"-C"},"glm-47":{name:"GLM-4.7",command:"claude",promptFlag:"-p",autoApproveFlag:"--dangerously-skip-permissions",modelFlag:"--model",model:"glm-4.7",envVars:{ANTHROPIC_BASE_URL:"https://api.z.ai/api/anthropic",API_TIMEOUT_MS:"3000000",ANTHROPIC_DEFAULT_OPUS_MODEL:"glm-4.7",ANTHROPIC_DEFAULT_SONNET_MODEL:"glm-4.7"}},"glm-5":{name:"GLM-5",command:"claude",promptFlag:"-p",autoApproveFlag:"--dangerously-skip-permissions",modelFlag:"--model",model:"glm-5",envVars:{ANTHROPIC_BASE_URL:"https://api.z.ai/api/anthropic",API_TIMEOUT_MS:"3000000",ANTHROPIC_DEFAULT_OPUS_MODEL:"glm-5",ANTHROPIC_DEFAULT_SONNET_MODEL:"glm-5"}}},...y==null?void 0:y.providerPresets}),jt=fe=>{const Se=ke();return Object.entries(Se).map(([He,Ze])=>({label:Ze.name,value:He}))},et=(fe,Se)=>{const He=[];Se.provider===fe&&He.push("Global Provider");const Ze={executor:"Executor",reviewer:"Reviewer",qa:"QA",audit:"Audit",slicer:"Planner",analytics:"Analytics"};for(const[xt,Ka]of Object.entries(Se.jobProviders))Ka===fe&&He.push(Ze[xt]??xt);return He},ta=()=>{ne(null),P(null),F(!0)},Ca=fe=>{const He=ke()[fe];He&&(ne(fe),P(He),F(!0))},yn=async(fe,Se)=>{if(!y)return;const He=!J,Ze={...y.providerPresets,[fe]:Se};pe("providerPresets",Ze);try{await nl({providerPresets:{[fe]:Se}}),l({title:He?"Preset Added":"Preset Updated",message:He?`${Se.name} has been added. You can now assign it to jobs.`:`${Se.name} has been saved.`,type:"success"})}catch(xt){l({title:"Save Failed",message:xt instanceof Error?xt.message:"Failed to save preset",type:"error"}),pe("providerPresets",y.providerPresets)}},Ja=fe=>{var Ze,xt;if(!y)return;if(Jg.includes(fe)){l({title:"Cannot Delete",message:"Built-in presets cannot be deleted.",type:"error"});return}const Se=et(fe,y);if(Se.length>0){A({presetId:fe,presetName:((Ze=ke()[fe])==null?void 0:Ze.name)??fe,references:Se});return}const He={...y.providerPresets};delete He[fe],pe("providerPresets",He),l({title:"Preset Deleted",message:`${((xt=ke()[fe])==null?void 0:xt.name)??fe} has been removed.`,type:"success"})},fa=fe=>{if(!y)return;const Se={...y.providerPresets};delete Se[fe],pe("providerPresets",Se),l({title:"Preset Reset",message:`${fe} has been reset to built-in defaults.`,type:"success"})},ha=()=>{if(!W||!y)return;const{presetId:fe}=W,Se={...y.providerPresets};delete Se[fe],pe("providerPresets",Se);const He={...y.jobProviders};for(const Ze of Object.keys(He))He[Ze]===fe&&delete He[Ze];pe("jobProviders",He),y.provider===fe&&pe("provider","claude"),A(null),l({title:"Preset Deleted",message:`${W.presetName} has been removed and all references cleared.`,type:"success"})};if(ae||!y)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading settings..."})});if(Y)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(rl,{className:"h-12 w-12 text-red-400"}),s.jsx("div",{className:"text-slate-300",children:"Failed to load settings"}),s.jsx("div",{className:"text-sm text-slate-500",children:Y.message}),s.jsx(mt,{onClick:()=>ie(),children:"Retry"})]});const xn=[{id:"general",label:"General",content:s.jsx(Dw,{form:y,updateField:pe,projectName:u,doctorChecks:re,doctorLoading:he})},{id:"ai-runtime",label:"AI & Runtime",content:s.jsx(Rw,{form:y,updateField:pe,jobProvidersChangedRef:S,getAllPresets:ke,getPresetOptions:jt,handleEditPreset:Ca,handleDeletePreset:Ja,handleResetPreset:fa,handleAddPreset:ta})},{id:"jobs",label:"Jobs",content:s.jsx(Aw,{form:y,updateField:pe,handleRoadmapToggle:Me})},{id:"schedules",label:"Schedules",content:s.jsx(px,{form:{cronSchedule:y.cronSchedule,reviewerSchedule:y.reviewerSchedule,qa:y.qa,audit:y.audit,analytics:y.analytics,roadmapScanner:{enabled:y.roadmapScanner.enabled,slicerSchedule:y.roadmapScanner.slicerSchedule||"35 */12 * * *"},scheduleBundleId:y.scheduleBundleId,schedulingPriority:y.schedulingPriority,cronScheduleOffset:y.cronScheduleOffset,globalQueueEnabled:y.queue.enabled},scheduleMode:T,selectedTemplateId:q,onFieldChange:(fe,Se)=>{fe==="globalQueueEnabled"?pe("queue",{...y.queue,enabled:Se}):pe(fe,Se)},onSwitchToTemplate:k,onSwitchToCustom:le,onApplyTemplate:me,allProjectConfigs:b,currentProjectId:d,onEditJob:Te})},{id:"notifications",label:"Notifications",content:s.jsxs(Ke,{className:"p-6",children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200 mb-2",children:"Notification Webhooks"}),s.jsx(Pg,{notifications:y.notifications,onChange:fe=>pe("notifications",fe)})]})},{id:"roadmap",label:"Planner",content:s.jsx(Ke,{className:"p-6 space-y-6",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Planner"}),s.jsx("p",{className:"text-sm text-slate-400",children:"Generate one PRD per run using ROADMAP.md first, then audit findings when roadmap work is exhausted"})]}),s.jsx(Ma,{checked:y.roadmapScanner.enabled,"aria-label":"Enable planner",onChange:Me})]})})},{id:"integrations",label:"Integrations",content:s.jsxs("div",{className:"space-y-6",children:[s.jsxs(Ke,{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Board Provider"}),s.jsx("p",{className:"text-sm text-slate-400",children:"Track PRDs and their status using GitHub Projects or local SQLite"})]}),s.jsx(Ma,{checked:y.boardProvider.enabled,onChange:fe=>pe("boardProvider",{...y.boardProvider,enabled:fe})})]}),y.boardProvider.enabled&&s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 pt-4 border-t border-slate-800",children:[s.jsx(da,{label:"Board Provider",value:y.boardProvider.provider,onChange:fe=>pe("boardProvider",{...y.boardProvider,provider:fe}),options:[{label:"GitHub Projects",value:"github"},{label:"Local (SQLite)",value:"local"}]}),y.boardProvider.provider==="github"&&s.jsxs(s.Fragment,{children:[s.jsx($e,{label:"Project Number",type:"number",value:String(y.boardProvider.projectNumber||""),onChange:fe=>pe("boardProvider",{...y.boardProvider,projectNumber:fe.target.value?Number(fe.target.value):void 0}),helperText:"GitHub Projects V2 project number"}),s.jsx($e,{label:"Repository",value:y.boardProvider.repo||"",onChange:fe=>pe("boardProvider",{...y.boardProvider,repo:fe.target.value||void 0}),helperText:"owner/repo (auto-detected if empty)"})]}),y.boardProvider.provider==="local"&&s.jsx("div",{className:"md:col-span-2",children:s.jsx("p",{className:"text-sm text-slate-400",children:"Local board uses SQLite for storage — no additional configuration needed."})})]})]}),s.jsxs(Ke,{className:"p-6",children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200 mb-2",children:"Notification Webhooks"}),s.jsx(Pg,{notifications:y.notifications,onChange:fe=>pe("notifications",fe)})]})]})},{id:"advanced",label:"Advanced",content:s.jsxs(Ke,{className:"p-6 space-y-6",children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Advanced Settings"}),s.jsx("p",{className:"text-sm text-slate-400",children:"Templates, retry policy, and PRD execution priority"}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsx($e,{label:"Templates Directory",value:y.templatesDir,onChange:fe=>pe("templatesDir",fe.target.value),helperText:"Directory for custom template overrides"}),s.jsx($e,{label:"Max Retries",type:"number",min:"1",value:String(y.maxRetries),onChange:fe=>{const Se=Math.max(1,Number(fe.target.value||1));pe("maxRetries",Se)},helperText:"Retry attempts for rate-limited API calls"})]}),s.jsx("div",{className:"pt-4 border-t border-slate-800 space-y-4",children:s.jsx(Xf,{label:"PRD Priority",value:y.prdPriority,onChange:fe=>pe("prdPriority",fe),placeholder:"e.g., feature-x",helpText:"PRDs matching these names are executed first"})})]})}];return s.jsxs("div",{className:"max-w-4xl mx-auto pb-10",children:[s.jsx("h2",{className:"text-2xl font-bold text-slate-100 mb-6",children:"Settings"}),s.jsx($y,{tabs:xn,activeTab:$,onChange:X}),s.jsxs("div",{className:"flex items-center justify-end space-x-4 pt-6 mt-6 border-t border-slate-800",children:[s.jsxs(mt,{variant:"ghost",className:"text-slate-400 hover:text-slate-300",onClick:Re,children:[s.jsx(My,{className:"h-4 w-4 mr-2"}),"Reset"]}),s.jsxs(mt,{onClick:xe,loading:g,children:[s.jsx(k1,{className:"h-4 w-4 mr-2"}),"Save Changes"]})]}),s.jsx(Ow,{isOpen:Q,onClose:()=>{F(!1),ne(null),P(null)},onSave:yn,presetId:J,preset:ee,isBuiltIn:J?Jg.includes(J):!1,existingIds:Object.keys(ke())}),W&&s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[s.jsx("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm",onClick:()=>A(null),"aria-hidden":"true"}),s.jsxs("div",{className:"relative w-full max-w-md transform rounded-xl bg-slate-900 border border-slate-800 shadow-2xl p-6",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsx(Xc,{className:"h-6 w-6 text-amber-400"}),s.jsx("h3",{className:"text-lg font-semibold text-slate-100",children:"Cannot Delete Preset"})]}),s.jsxs("p",{className:"text-sm text-slate-300 mb-4",children:[s.jsx("strong",{children:W.presetName})," is currently assigned to the following jobs:"]}),s.jsx("ul",{className:"list-disc list-inside text-sm text-slate-400 mb-4",children:W.references.map(fe=>s.jsx("li",{children:fe},fe))}),s.jsx("p",{className:"text-sm text-slate-400 mb-6",children:'Please remove these assignments before deleting the preset, or use "Force Delete" to remove the preset and clear all references.'}),s.jsxs("div",{className:"flex justify-end gap-3",children:[s.jsx(mt,{variant:"ghost",onClick:()=>A(null),children:"Cancel"}),s.jsx(mt,{variant:"secondary",onClick:ha,className:"bg-red-600 hover:bg-red-700",children:"Force Delete"})]})]})]})]})},zw=()=>(vS(),bS(),s.jsx(xb,{children:s.jsxs("div",{className:"flex h-screen bg-[#030712] text-slate-300 overflow-hidden relative",children:[s.jsx("div",{className:"absolute top-0 left-0 w-full h-96 bg-indigo-900/10 rounded-full blur-[120px] -translate-y-1/2 pointer-events-none z-0"}),s.jsx(gS,{}),s.jsxs("div",{className:"flex-1 flex flex-col min-w-0 z-10",children:[s.jsx(yS,{}),s.jsx("main",{className:"flex-1 overflow-auto p-6 scroll-smooth relative",children:s.jsx("div",{className:"max-w-7xl mx-auto w-full",children:s.jsxs(Qv,{children:[s.jsx(al,{path:"/",element:s.jsx(OS,{})}),s.jsx(al,{path:"/prs",element:s.jsx(RS,{})}),s.jsx(al,{path:"/board",element:s.jsx(ES,{})}),s.jsx(al,{path:"/scheduling",element:s.jsx(Sw,{})}),s.jsx(al,{path:"/logs",element:s.jsx(DS,{})}),s.jsx(al,{path:"/roadmap",element:s.jsx(AS,{})}),s.jsx(al,{path:"/settings",element:s.jsx(kw,{})}),s.jsx(al,{path:"*",element:s.jsx(Gv,{to:"/",replace:!0})})]})})})]}),s.jsx(pS,{})]})})),bx=document.getElementById("root");if(!bx)throw new Error("Could not find root element to mount to");const Uw=Wp.createRoot(bx);Uw.render(s.jsx(Ve.StrictMode,{children:s.jsx(zw,{})}));