notifkit 0.1.6 → 0.1.8

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.
Files changed (42) hide show
  1. package/README.md +5 -17
  2. package/dashboard/README.md +29 -0
  3. package/dashboard/dist/assets/index-7mvXb4bS.js +310 -0
  4. package/dashboard/dist/assets/index-o7L-f3-c.css +1 -0
  5. package/dashboard/dist/favicon.svg +4 -0
  6. package/dashboard/dist/index.html +14 -0
  7. package/dist/index.d.mts +3435 -548
  8. package/dist/index.d.mts.map +1 -1
  9. package/dist/index.mjs +2 -2
  10. package/dist/{main-DDbquL89.mjs → main-0FHNtN5g.mjs} +2 -2
  11. package/dist/{main-DDbquL89.mjs.map → main-0FHNtN5g.mjs.map} +1 -1
  12. package/dist/{main-DdLzptZE.mjs → main-7KMlWnDx.mjs} +2 -2
  13. package/dist/{main-DdLzptZE.mjs.map → main-7KMlWnDx.mjs.map} +1 -1
  14. package/dist/{main-DsDkyBZi.mjs → main-B0BcY_JJ.mjs} +2 -2
  15. package/dist/{main-DsDkyBZi.mjs.map → main-B0BcY_JJ.mjs.map} +1 -1
  16. package/dist/{main-Db2f2-sW.mjs → main-BAO4kKce.mjs} +437 -63
  17. package/dist/main-BAO4kKce.mjs.map +1 -0
  18. package/dist/{main-DfrrNKp9.mjs → main-BjXgGJBd.mjs} +2 -2
  19. package/dist/{main-DfrrNKp9.mjs.map → main-BjXgGJBd.mjs.map} +1 -1
  20. package/dist/{main-BnIX5nfp.mjs → main-BtXITy0k.mjs} +2 -2
  21. package/dist/{main-BnIX5nfp.mjs.map → main-BtXITy0k.mjs.map} +1 -1
  22. package/dist/{main-CWGEKpLU.mjs → main-BxqAXTr6.mjs} +2 -2
  23. package/dist/{main-CWGEKpLU.mjs.map → main-BxqAXTr6.mjs.map} +1 -1
  24. package/dist/{main-Cwu4iQXc.mjs → main-zCpvA9Rx.mjs} +2 -2
  25. package/dist/{main-Cwu4iQXc.mjs.map → main-zCpvA9Rx.mjs.map} +1 -1
  26. package/dist/{src-CpUnBl_M.mjs → src-DkvHYM3y.mjs} +127 -41
  27. package/dist/src-DkvHYM3y.mjs.map +1 -0
  28. package/drizzle/0005_admin_users.sql +11 -0
  29. package/drizzle/meta/_journal.json +7 -0
  30. package/package.json +8 -3
  31. package/scripts/create-admin.mjs +67 -0
  32. package/src/client.ts +111 -40
  33. package/src/config/index.ts +3 -0
  34. package/src/contracts/sdk.ts +143 -3
  35. package/src/db/schema.ts +13 -0
  36. package/src/repositories/index.ts +82 -1
  37. package/src/services/api/admin-static.ts +224 -0
  38. package/src/services/api/handlers.ts +223 -42
  39. package/src/services/api/main.ts +72 -19
  40. package/src/services/auth/index.ts +103 -0
  41. package/dist/main-Db2f2-sW.mjs.map +0 -1
  42. package/dist/src-CpUnBl_M.mjs.map +0 -1
@@ -0,0 +1,310 @@
1
+ function jv(l,i){for(var u=0;u<i.length;u++){const c=i[u];if(typeof c!="string"&&!Array.isArray(c)){for(const d in c)if(d!=="default"&&!(d in l)){const m=Object.getOwnPropertyDescriptor(c,d);m&&Object.defineProperty(l,d,m.get?m:{enumerable:!0,get:()=>c[d]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const m of d)if(m.type==="childList")for(const p of m.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&c(p)}).observe(document,{childList:!0,subtree:!0});function u(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function c(d){if(d.ep)return;d.ep=!0;const m=u(d);fetch(d.href,m)}})();function X0(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Yu={exports:{}},ci={};/**
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 u0;function Nv(){if(u0)return ci;u0=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(c,d,m){var p=null;if(m!==void 0&&(p=""+m),d.key!==void 0&&(p=""+d.key),"key"in d){m={};for(var y in d)y!=="key"&&(m[y]=d[y])}else m=d;return d=m.ref,{$$typeof:l,type:c,key:p,ref:d!==void 0?d:null,props:m}}return ci.Fragment=i,ci.jsx=u,ci.jsxs=u,ci}var d0;function Ev(){return d0||(d0=1,Yu.exports=Nv()),Yu.exports}var o=Ev(),Gu={exports:{}},Ne={};/**
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 f0;function Av(){if(f0)return Ne;f0=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),p=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),w=Symbol.iterator;function E(A){return A===null||typeof A!="object"?null:(A=w&&A[w]||A["@@iterator"],typeof A=="function"?A:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,_={};function z(A,q,V){this.props=A,this.context=q,this.refs=_,this.updater=V||j}z.prototype.isReactComponent={},z.prototype.setState=function(A,q){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,q,"setState")},z.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function L(){}L.prototype=z.prototype;function K(A,q,V){this.props=A,this.context=q,this.refs=_,this.updater=V||j}var ee=K.prototype=new L;ee.constructor=K,C(ee,z.prototype),ee.isPureReactComponent=!0;var J=Array.isArray;function I(){}var Z={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function pe(A,q,V){var P=V.ref;return{$$typeof:l,type:A,key:q,ref:P!==void 0?P:null,props:V}}function xe(A,q){return pe(A.type,q,A.props)}function Ee(A){return typeof A=="object"&&A!==null&&A.$$typeof===l}function Re(A){var q={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(V){return q[V]})}var Xe=/\/+/g;function ne(A,q){return typeof A=="object"&&A!==null&&A.key!=null?Re(""+A.key):q.toString(36)}function ge(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(I,I):(A.status="pending",A.then(function(q){A.status==="pending"&&(A.status="fulfilled",A.value=q)},function(q){A.status==="pending"&&(A.status="rejected",A.reason=q)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function M(A,q,V,P,te){var le=typeof A;(le==="undefined"||le==="boolean")&&(A=null);var je=!1;if(A===null)je=!0;else switch(le){case"bigint":case"string":case"number":je=!0;break;case"object":switch(A.$$typeof){case l:case i:je=!0;break;case S:return je=A._init,M(je(A._payload),q,V,P,te)}}if(je)return te=te(A),je=P===""?"."+ne(A,0):P,J(te)?(V="",je!=null&&(V=je.replace(Xe,"$&/")+"/"),M(te,q,V,"",function(ea){return ea})):te!=null&&(Ee(te)&&(te=xe(te,V+(te.key==null||A&&A.key===te.key?"":(""+te.key).replace(Xe,"$&/")+"/")+je)),q.push(te)),1;je=0;var we=P===""?".":P+":";if(J(A))for(var ve=0;ve<A.length;ve++)P=A[ve],le=we+ne(P,ve),je+=M(P,q,V,le,te);else if(ve=E(A),typeof ve=="function")for(A=ve.call(A),ve=0;!(P=A.next()).done;)P=P.value,le=we+ne(P,ve++),je+=M(P,q,V,le,te);else if(le==="object"){if(typeof A.then=="function")return M(ge(A),q,V,P,te);throw q=String(A),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return je}function G(A,q,V){if(A==null)return A;var P=[],te=0;return M(A,P,"","",function(le){return q.call(V,le,te++)}),P}function re(A){if(A._status===-1){var q=A._result;q=q(),q.then(function(V){(A._status===0||A._status===-1)&&(A._status=1,A._result=V)},function(V){(A._status===0||A._status===-1)&&(A._status=2,A._result=V)}),A._status===-1&&(A._status=0,A._result=q)}if(A._status===1)return A._result.default;throw A._result}var Se=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},W={map:G,forEach:function(A,q,V){G(A,function(){q.apply(this,arguments)},V)},count:function(A){var q=0;return G(A,function(){q++}),q},toArray:function(A){return G(A,function(q){return q})||[]},only:function(A){if(!Ee(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Ne.Activity=g,Ne.Children=W,Ne.Component=z,Ne.Fragment=u,Ne.Profiler=d,Ne.PureComponent=K,Ne.StrictMode=c,Ne.Suspense=v,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(A){return Z.H.useMemoCache(A)}},Ne.cache=function(A){return function(){return A.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(A,q,V){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var P=C({},A.props),te=A.key;if(q!=null)for(le in q.key!==void 0&&(te=""+q.key),q)!Q.call(q,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&q.ref===void 0||(P[le]=q[le]);var le=arguments.length-2;if(le===1)P.children=V;else if(1<le){for(var je=Array(le),we=0;we<le;we++)je[we]=arguments[we+2];P.children=je}return pe(A.type,te,P)},Ne.createContext=function(A){return A={$$typeof:p,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:m,_context:A},A},Ne.createElement=function(A,q,V){var P,te={},le=null;if(q!=null)for(P in q.key!==void 0&&(le=""+q.key),q)Q.call(q,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(te[P]=q[P]);var je=arguments.length-2;if(je===1)te.children=V;else if(1<je){for(var we=Array(je),ve=0;ve<je;ve++)we[ve]=arguments[ve+2];te.children=we}if(A&&A.defaultProps)for(P in je=A.defaultProps,je)te[P]===void 0&&(te[P]=je[P]);return pe(A,le,te)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(A){return{$$typeof:y,render:A}},Ne.isValidElement=Ee,Ne.lazy=function(A){return{$$typeof:S,_payload:{_status:-1,_result:A},_init:re}},Ne.memo=function(A,q){return{$$typeof:h,type:A,compare:q===void 0?null:q}},Ne.startTransition=function(A){var q=Z.T,V={};Z.T=V;try{var P=A(),te=Z.S;te!==null&&te(V,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(I,Se)}catch(le){Se(le)}finally{q!==null&&V.types!==null&&(q.types=V.types),Z.T=q}},Ne.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},Ne.use=function(A){return Z.H.use(A)},Ne.useActionState=function(A,q,V){return Z.H.useActionState(A,q,V)},Ne.useCallback=function(A,q){return Z.H.useCallback(A,q)},Ne.useContext=function(A){return Z.H.useContext(A)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(A,q){return Z.H.useDeferredValue(A,q)},Ne.useEffect=function(A,q){return Z.H.useEffect(A,q)},Ne.useEffectEvent=function(A){return Z.H.useEffectEvent(A)},Ne.useId=function(){return Z.H.useId()},Ne.useImperativeHandle=function(A,q,V){return Z.H.useImperativeHandle(A,q,V)},Ne.useInsertionEffect=function(A,q){return Z.H.useInsertionEffect(A,q)},Ne.useLayoutEffect=function(A,q){return Z.H.useLayoutEffect(A,q)},Ne.useMemo=function(A,q){return Z.H.useMemo(A,q)},Ne.useOptimistic=function(A,q){return Z.H.useOptimistic(A,q)},Ne.useReducer=function(A,q,V){return Z.H.useReducer(A,q,V)},Ne.useRef=function(A){return Z.H.useRef(A)},Ne.useState=function(A){return Z.H.useState(A)},Ne.useSyncExternalStore=function(A,q,V){return Z.H.useSyncExternalStore(A,q,V)},Ne.useTransition=function(){return Z.H.useTransition()},Ne.version="19.2.8",Ne}var m0;function hd(){return m0||(m0=1,Gu.exports=Av()),Gu.exports}var b=hd();const ae=X0(b),Cv=jv({__proto__:null,default:ae},[b]);var Vu={exports:{}},ui={},Xu={exports:{}},Qu={};/**
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 h0;function Tv(){return h0||(h0=1,(function(l){function i(M,G){var re=M.length;M.push(G);e:for(;0<re;){var Se=re-1>>>1,W=M[Se];if(0<d(W,G))M[Se]=G,M[re]=W,re=Se;else break e}}function u(M){return M.length===0?null:M[0]}function c(M){if(M.length===0)return null;var G=M[0],re=M.pop();if(re!==G){M[0]=re;e:for(var Se=0,W=M.length,A=W>>>1;Se<A;){var q=2*(Se+1)-1,V=M[q],P=q+1,te=M[P];if(0>d(V,re))P<W&&0>d(te,V)?(M[Se]=te,M[P]=re,Se=P):(M[Se]=V,M[q]=re,Se=q);else if(P<W&&0>d(te,re))M[Se]=te,M[P]=re,Se=P;else break e}}return G}function d(M,G){var re=M.sortIndex-G.sortIndex;return re!==0?re:M.id-G.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;l.unstable_now=function(){return m.now()}}else{var p=Date,y=p.now();l.unstable_now=function(){return p.now()-y}}var v=[],h=[],S=1,g=null,w=3,E=!1,j=!1,C=!1,_=!1,z=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function ee(M){for(var G=u(h);G!==null;){if(G.callback===null)c(h);else if(G.startTime<=M)c(h),G.sortIndex=G.expirationTime,i(v,G);else break;G=u(h)}}function J(M){if(C=!1,ee(M),!j)if(u(v)!==null)j=!0,I||(I=!0,Re());else{var G=u(h);G!==null&&ge(J,G.startTime-M)}}var I=!1,Z=-1,Q=5,pe=-1;function xe(){return _?!0:!(l.unstable_now()-pe<Q)}function Ee(){if(_=!1,I){var M=l.unstable_now();pe=M;var G=!0;try{e:{j=!1,C&&(C=!1,L(Z),Z=-1),E=!0;var re=w;try{t:{for(ee(M),g=u(v);g!==null&&!(g.expirationTime>M&&xe());){var Se=g.callback;if(typeof Se=="function"){g.callback=null,w=g.priorityLevel;var W=Se(g.expirationTime<=M);if(M=l.unstable_now(),typeof W=="function"){g.callback=W,ee(M),G=!0;break t}g===u(v)&&c(v),ee(M)}else c(v);g=u(v)}if(g!==null)G=!0;else{var A=u(h);A!==null&&ge(J,A.startTime-M),G=!1}}break e}finally{g=null,w=re,E=!1}G=void 0}}finally{G?Re():I=!1}}}var Re;if(typeof K=="function")Re=function(){K(Ee)};else if(typeof MessageChannel<"u"){var Xe=new MessageChannel,ne=Xe.port2;Xe.port1.onmessage=Ee,Re=function(){ne.postMessage(null)}}else Re=function(){z(Ee,0)};function ge(M,G){Z=z(function(){M(l.unstable_now())},G)}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(M){M.callback=null},l.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<M?Math.floor(1e3/M):5},l.unstable_getCurrentPriorityLevel=function(){return w},l.unstable_next=function(M){switch(w){case 1:case 2:case 3:var G=3;break;default:G=w}var re=w;w=G;try{return M()}finally{w=re}},l.unstable_requestPaint=function(){_=!0},l.unstable_runWithPriority=function(M,G){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var re=w;w=M;try{return G()}finally{w=re}},l.unstable_scheduleCallback=function(M,G,re){var Se=l.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?Se+re:Se):re=Se,M){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=re+W,M={id:S++,callback:G,priorityLevel:M,startTime:re,expirationTime:W,sortIndex:-1},re>Se?(M.sortIndex=re,i(h,M),u(v)===null&&M===u(h)&&(C?(L(Z),Z=-1):C=!0,ge(J,re-Se))):(M.sortIndex=W,i(v,M),j||E||(j=!0,I||(I=!0,Re()))),M},l.unstable_shouldYield=xe,l.unstable_wrapCallback=function(M){var G=w;return function(){var re=w;w=G;try{return M.apply(this,arguments)}finally{w=re}}}})(Qu)),Qu}var p0;function zv(){return p0||(p0=1,Xu.exports=Tv()),Xu.exports}var Zu={exports:{}},Ft={};/**
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 g0;function _v(){if(g0)return Ft;g0=1;var l=hd();function i(v){var h="https://react.dev/errors/"+v;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)h+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+v+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var c={d:{f:u,r:function(){throw Error(i(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(v,h,S){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:g==null?null:""+g,children:v,containerInfo:h,implementation:S}}var p=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(v,h){if(v==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Ft.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,Ft.createPortal=function(v,h){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(i(299));return m(v,h,null,S)},Ft.flushSync=function(v){var h=p.T,S=c.p;try{if(p.T=null,c.p=2,v)return v()}finally{p.T=h,c.p=S,c.d.f()}},Ft.preconnect=function(v,h){typeof v=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,c.d.C(v,h))},Ft.prefetchDNS=function(v){typeof v=="string"&&c.d.D(v)},Ft.preinit=function(v,h){if(typeof v=="string"&&h&&typeof h.as=="string"){var S=h.as,g=y(S,h.crossOrigin),w=typeof h.integrity=="string"?h.integrity:void 0,E=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;S==="style"?c.d.S(v,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:w,fetchPriority:E}):S==="script"&&c.d.X(v,{crossOrigin:g,integrity:w,fetchPriority:E,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Ft.preinitModule=function(v,h){if(typeof v=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var S=y(h.as,h.crossOrigin);c.d.M(v,{crossOrigin:S,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&c.d.M(v)},Ft.preload=function(v,h){if(typeof v=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var S=h.as,g=y(S,h.crossOrigin);c.d.L(v,S,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Ft.preloadModule=function(v,h){if(typeof v=="string")if(h){var S=y(h.as,h.crossOrigin);c.d.m(v,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:S,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else c.d.m(v)},Ft.requestFormReset=function(v){c.d.r(v)},Ft.unstable_batchedUpdates=function(v,h){return v(h)},Ft.useFormState=function(v,h,S){return p.H.useFormState(v,h,S)},Ft.useFormStatus=function(){return p.H.useHostTransitionStatus()},Ft.version="19.2.8",Ft}var v0;function Q0(){if(v0)return Zu.exports;v0=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(i){console.error(i)}}return l(),Zu.exports=_v(),Zu.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 y0;function Rv(){if(y0)return ui;y0=1;var l=zv(),i=hd(),u=Q0();function c(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 d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(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 p(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 y(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 v(e){if(m(e)!==e)throw Error(c(188))}function h(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(c(188));return t!==e?null:e}for(var a=e,n=t;;){var r=a.return;if(r===null)break;var s=r.alternate;if(s===null){if(n=r.return,n!==null){a=n;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===a)return v(r),e;if(s===n)return v(r),t;s=s.sibling}throw Error(c(188))}if(a.return!==n.return)a=r,n=s;else{for(var f=!1,x=r.child;x;){if(x===a){f=!0,a=r,n=s;break}if(x===n){f=!0,n=r,a=s;break}x=x.sibling}if(!f){for(x=s.child;x;){if(x===a){f=!0,a=s,n=r;break}if(x===n){f=!0,n=s,a=r;break}x=x.sibling}if(!f)throw Error(c(189))}}if(a.alternate!==n)throw Error(c(190))}if(a.tag!==3)throw Error(c(188));return a.stateNode.current===a?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,w=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),K=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),xe=Symbol.for("react.memo_cache_sentinel"),Ee=Symbol.iterator;function Re(e){return e===null||typeof e!="object"?null:(e=Ee&&e[Ee]||e["@@iterator"],typeof e=="function"?e:null)}var Xe=Symbol.for("react.client.reference");function ne(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Xe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case z:return"Profiler";case _:return"StrictMode";case J:return"Suspense";case I:return"SuspenseList";case pe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case K:return e.displayName||"Context";case L:return(e._context.displayName||"Context")+".Consumer";case ee:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:ne(e.type)||"Memo";case Q:t=e._payload,e=e._init;try{return ne(e(t))}catch{}}return null}var ge=Array.isArray,M=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},Se=[],W=-1;function A(e){return{current:e}}function q(e){0>W||(e.current=Se[W],Se[W]=null,W--)}function V(e,t){W++,Se[W]=e.current,e.current=t}var P=A(null),te=A(null),le=A(null),je=A(null);function we(e,t){switch(V(le,t),V(te,e),V(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?kh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=kh(t),e=Dh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(P),V(P,e)}function ve(){q(P),q(te),q(le)}function ea(e){e.memoizedState!==null&&V(je,e);var t=P.current,a=Dh(t,e.type);t!==a&&(V(te,e),V(P,a))}function Wt(e){te.current===e&&(q(P),q(te)),je.current===e&&(q(je),ri._currentValue=re)}var dt,xa;function Mt(e){if(dt===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);dt=t&&t[1]||"",xa=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+dt+e+xa}var La=!1;function Ha(e,t){if(!e||La)return"";La=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(H){var U=H}Reflect.construct(e,[],X)}else{try{X.call()}catch(H){U=H}e.call(X.prototype)}}else{try{throw Error()}catch(H){U=H}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(H){if(H&&U&&typeof H.stack=="string")return[H.stack,U.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=n.DetermineComponentFrameRoot(),f=s[0],x=s[1];if(f&&x){var N=f.split(`
44
+ `),D=x.split(`
45
+ `);for(r=n=0;n<N.length&&!N[n].includes("DetermineComponentFrameRoot");)n++;for(;r<D.length&&!D[r].includes("DetermineComponentFrameRoot");)r++;if(n===N.length||r===D.length)for(n=N.length-1,r=D.length-1;1<=n&&0<=r&&N[n]!==D[r];)r--;for(;1<=n&&0<=r;n--,r--)if(N[n]!==D[r]){if(n!==1||r!==1)do if(n--,r--,0>r||N[n]!==D[r]){var B=`
46
+ `+N[n].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),B}while(1<=n&&0<=r);break}}}finally{La=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Mt(a):""}function bn(e,t){switch(e.tag){case 26:case 27:case 5:return Mt(e.type);case 16:return Mt("Lazy");case 13:return e.child!==t&&t!==null?Mt("Suspense Fallback"):Mt("Suspense");case 19:return Mt("SuspenseList");case 0:case 15:return Ha(e.type,!1);case 11:return Ha(e.type.render,!1);case 1:return Ha(e.type,!0);case 31:return Mt("Activity");default:return""}}function vl(e){try{var t="",a=null;do t+=bn(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
47
+ Error generating stack: `+n.message+`
48
+ `+n.stack}}var ta=Object.prototype.hasOwnProperty,Sn=l.unstable_scheduleCallback,tr=l.unstable_cancelCallback,Vt=l.unstable_shouldYield,Ba=l.unstable_requestPaint,Xt=l.unstable_now,ws=l.unstable_getCurrentPriorityLevel,Yn=l.unstable_ImmediatePriority,zr=l.unstable_UserBlockingPriority,Gn=l.unstable_NormalPriority,ar=l.unstable_LowPriority,qa=l.unstable_IdlePriority,yl=l.log,Ya=l.unstable_setDisableYieldValue,Ga=null,Yt=null;function ba(e){if(typeof yl=="function"&&Ya(e),Yt&&typeof Yt.setStrictMode=="function")try{Yt.setStrictMode(Ga,e)}catch{}}var kt=Math.clz32?Math.clz32:Va,xl=Math.log,nr=Math.LN2;function Va(e){return e>>>=0,e===0?32:31-(xl(e)/nr|0)|0}var Vn=256,Xa=262144,cn=4194304;function wt(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 ye(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var x=n&134217727;return x!==0?(n=x&~s,n!==0?r=wt(n):(f&=x,f!==0?r=wt(f):a||(a=x&~e,a!==0&&(r=wt(a))))):(x=n&~s,x!==0?r=wt(x):f!==0?r=wt(f):a||(a=n&~e,a!==0&&(r=wt(a)))),r===0?0:t!==0&&t!==r&&(t&s)===0&&(s=r&-r,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:r}function at(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function pt(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 Dt(){var e=cn;return cn<<=1,(cn&62914560)===0&&(cn=4194304),e}function un(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function lt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rt(e,t,a,n,r,s){var f=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 x=e.entanglements,N=e.expirationTimes,D=e.hiddenUpdates;for(a=f&~a;0<a;){var B=31-kt(a),X=1<<B;x[B]=0,N[B]=-1;var U=D[B];if(U!==null)for(D[B]=null,B=0;B<U.length;B++){var H=U[B];H!==null&&(H.lane&=-536870913)}a&=~X}n!==0&&Qa(e,n,0),s!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=s&~(f&~t))}function Qa(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-kt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function gt(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-kt(a),r=1<<n;r&t|e[n]&t&&(e[n]|=t),a&=~r}}function vt(e,t){var a=t&-t;return a=(a&42)!==0?1:Sa(a),(a&(e.suspendedLanes|t))!==0?0:a}function Sa(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 It(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Xn(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:n0(e.type))}function Qn(e,t){var a=G.p;try{return G.p=e,t()}finally{G.p=a}}var wn=Math.random().toString(36).slice(2),ct="__reactFiber$"+wn,jt="__reactProps$"+wn,Za="__reactContainer$"+wn,lr="__reactEvents$"+wn,jn="__reactListeners$"+wn,wi="__reactHandles$"+wn,_r="__reactResources$"+wn,Nn="__reactMarker$"+wn;function Ka(e){delete e[ct],delete e[jt],delete e[lr],delete e[jn],delete e[wi]}function En(e){var t=e[ct];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Za]||a[ct]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Yh(e);e!==null;){if(a=e[ct])return a;e=Yh(e)}return t}e=a,a=e.parentNode}return null}function dn(e){if(e=e[ct]||e[Za]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function An(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function aa(e){var t=e[_r];return t||(t=e[_r]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Fe(e){e[Nn]=!0}var rr=new Set,oa={};function wa(e,t){Zn(e,t),Zn(e+"Capture",t)}function Zn(e,t){for(oa[e]=t,e=0;e<t.length;e++)rr.add(t[e])}var bl=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]*$"),js={},sr={};function Rr(e){return ta.call(sr,e)?!0:ta.call(js,e)?!1:bl.test(e)?sr[e]=!0:(js[e]=!0,!1)}function Cn(e,t,a){if(Rr(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 Mr(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 fn(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 ca(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Od(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 r=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(f){a=""+f,s.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function O(e){if(!e._valueTracker){var t=kr(e)?"checked":"value";e._valueTracker=Od(e,t,""+e[t])}}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=kr(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function F(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 ue=/[\n"\\]/g;function fe(e){return e.replace(ue,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function be(e,t,a,n,r,s,f,x){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ca(t)):e.value!==""+ca(t)&&(e.value=""+ca(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?st(e,f,ca(t)):a!=null?st(e,f,ca(a)):n!=null&&e.removeAttribute("value"),r==null&&s!=null&&(e.defaultChecked=!!s),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+ca(x):e.removeAttribute("name")}function Be(e,t,a,n,r,s,f,x){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){O(e);return}a=a!=null?""+ca(a):"",t=t!=null?""+ca(t):a,x||t===e.value||(e.value=t),e.defaultValue=t}n=n??r,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=x?e.checked:!!n,e.defaultChecked=!!n,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),O(e)}function st(e,t,a){t==="number"&&F(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function qe(e,t,a,n){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&n&&(e[a].defaultSelected=!0)}else{for(a=""+ca(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,n&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function me(e,t,a){if(t!=null&&(t=""+ca(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+ca(a):""}function Ae(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(c(92));if(ge(n)){if(1<n.length)throw Error(c(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=ca(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),O(e)}function Me(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var yt=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 Ot(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||yt.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function xt(e,t,a){if(t!=null&&typeof t!="object")throw Error(c(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 r in t)n=t[r],t.hasOwnProperty(r)&&a[r]!==n&&Ot(e,r,n)}else for(var s in t)t.hasOwnProperty(s)&&Ot(e,s,t[s])}function $a(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 Ja=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"]]),Sl=/^[\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 wl(e){return Sl.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ja(){}var Kn=null;function ir(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $n=null,Ut=null;function na(e){var t=dn(e);if(t&&(e=t.stateNode)){var a=e[jt]||null;e:switch(e=t.stateNode,t.type){case"input":if(be(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="'+fe(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var r=n[jt]||null;if(!r)throw Error(c(90));be(n,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&$(n)}break e;case"textarea":me(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&qe(e,!!a.multiple,t,!1)}}}var Jn=!1;function Ns(e,t,a){if(Jn)return e(t,a);Jn=!0;try{var n=e(t);return n}finally{if(Jn=!1,($n!==null||Ut!==null)&&(lo(),$n&&(t=$n,e=Ut,Ut=$n=null,na(t),e)))for(t=0;t<e.length;t++)na(e[t])}}function Na(e,t){var a=e.stateNode;if(a===null)return null;var n=a[jt]||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(c(231,t,typeof a));return a}var Ea=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ua=!1;if(Ea)try{var da={};Object.defineProperty(da,"passive",{get:function(){ua=!0}}),window.addEventListener("test",da,da),window.removeEventListener("test",da,da)}catch{ua=!1}var la=null,Dr=null,ra=null;function Or(){if(ra)return ra;var e,t=Dr,a=t.length,n,r="value"in la?la.value:la.textContent,s=r.length;for(e=0;e<a&&t[e]===r[e];e++);var f=a-e;for(n=1;n<=f&&t[a-n]===r[s-n];n++);return ra=r.slice(e,1<n?1-n:void 0)}function jl(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 Nl(){return!0}function sa(){return!1}function Lt(e){function t(a,n,r,s,f){this._reactName=a,this._targetInst=r,this.type=n,this.nativeEvent=s,this.target=f,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(a=e[x],this[x]=a?a(s):s[x]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Nl:sa,this.isPropagationStopped=sa,this}return g(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=Nl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Nl)},persist:function(){},isPersistent:Nl}),t}var mn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},El=Lt(mn),Ve=g({},mn,{view:0,detail:0}),Aa=Lt(Ve),Ca,Ta,Tn,Al=g({},Ve,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zo,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!==Tn&&(Tn&&e.type==="mousemove"?(Ca=e.screenX-Tn.screenX,Ta=e.screenY-Tn.screenY):Ta=Ca=0,Tn=e),Ca)},movementY:function(e){return"movementY"in e?e.movementY:Ta}}),zn=Lt(Al),Es=g({},Al,{dataTransfer:0}),jg=Lt(Es),Ng=g({},Ve,{relatedTarget:0}),Qo=Lt(Ng),Eg=g({},mn,{animationName:0,elapsedTime:0,pseudoElement:0}),Ag=Lt(Eg),Cg=g({},mn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Tg=Lt(Cg),zg=g({},mn,{data:0}),Ud=Lt(zg),_g={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rg={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"},Mg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Mg[e])?!!t[e]:!1}function Zo(){return kg}var Dg=g({},Ve,{key:function(e){if(e.key){var t=_g[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=jl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Rg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zo,charCode:function(e){return e.type==="keypress"?jl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?jl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Og=Lt(Dg),Ug=g({},Al,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ld=Lt(Ug),Lg=g({},Ve,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zo}),Hg=Lt(Lg),Bg=g({},mn,{propertyName:0,elapsedTime:0,pseudoElement:0}),qg=Lt(Bg),Yg=g({},Al,{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}),Gg=Lt(Yg),Vg=g({},mn,{newState:0,oldState:0}),Xg=Lt(Vg),Qg=[9,13,27,32],Ko=Ea&&"CompositionEvent"in window,As=null;Ea&&"documentMode"in document&&(As=document.documentMode);var Zg=Ea&&"TextEvent"in window&&!As,Hd=Ea&&(!Ko||As&&8<As&&11>=As),Bd=" ",qd=!1;function Yd(e,t){switch(e){case"keyup":return Qg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ur=!1;function Kg(e,t){switch(e){case"compositionend":return Gd(t);case"keypress":return t.which!==32?null:(qd=!0,Bd);case"textInput":return e=t.data,e===Bd&&qd?null:e;default:return null}}function $g(e,t){if(Ur)return e==="compositionend"||!Ko&&Yd(e,t)?(e=Or(),ra=Dr=la=null,Ur=!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 Hd&&t.locale!=="ko"?null:t.data;default:return null}}var Jg={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 Vd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Jg[e.type]:t==="textarea"}function Xd(e,t,a,n){$n?Ut?Ut.push(n):Ut=[n]:$n=n,t=fo(t,"onChange"),0<t.length&&(a=new El("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var Cs=null,Ts=null;function Wg(e){Ch(e,0)}function ji(e){var t=An(e);if($(t))return e}function Qd(e,t){if(e==="change")return t}var Zd=!1;if(Ea){var $o;if(Ea){var Jo="oninput"in document;if(!Jo){var Kd=document.createElement("div");Kd.setAttribute("oninput","return;"),Jo=typeof Kd.oninput=="function"}$o=Jo}else $o=!1;Zd=$o&&(!document.documentMode||9<document.documentMode)}function $d(){Cs&&(Cs.detachEvent("onpropertychange",Jd),Ts=Cs=null)}function Jd(e){if(e.propertyName==="value"&&ji(Ts)){var t=[];Xd(t,Ts,e,ir(e)),Ns(Wg,t)}}function Ig(e,t,a){e==="focusin"?($d(),Cs=t,Ts=a,Cs.attachEvent("onpropertychange",Jd)):e==="focusout"&&$d()}function Fg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ji(Ts)}function Pg(e,t){if(e==="click")return ji(t)}function e2(e,t){if(e==="input"||e==="change")return ji(t)}function t2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var za=typeof Object.is=="function"?Object.is:t2;function zs(e,t){if(za(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 r=a[n];if(!ta.call(t,r)||!za(e[r],t[r]))return!1}return!0}function Wd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Id(e,t){var a=Wd(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=Wd(a)}}function Fd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=F(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=F(e.document)}return t}function Wo(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 a2=Ea&&"documentMode"in document&&11>=document.documentMode,Lr=null,Io=null,_s=null,Fo=!1;function ef(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Fo||Lr==null||Lr!==F(n)||(n=Lr,"selectionStart"in n&&Wo(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}),_s&&zs(_s,n)||(_s=n,n=fo(Io,"onSelect"),0<n.length&&(t=new El("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=Lr)))}function or(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Hr={animationend:or("Animation","AnimationEnd"),animationiteration:or("Animation","AnimationIteration"),animationstart:or("Animation","AnimationStart"),transitionrun:or("Transition","TransitionRun"),transitionstart:or("Transition","TransitionStart"),transitioncancel:or("Transition","TransitionCancel"),transitionend:or("Transition","TransitionEnd")},Po={},tf={};Ea&&(tf=document.createElement("div").style,"AnimationEvent"in window||(delete Hr.animationend.animation,delete Hr.animationiteration.animation,delete Hr.animationstart.animation),"TransitionEvent"in window||delete Hr.transitionend.transition);function cr(e){if(Po[e])return Po[e];if(!Hr[e])return e;var t=Hr[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in tf)return Po[e]=t[a];return e}var af=cr("animationend"),nf=cr("animationiteration"),lf=cr("animationstart"),n2=cr("transitionrun"),l2=cr("transitionstart"),r2=cr("transitioncancel"),rf=cr("transitionend"),sf=new Map,ec="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(" ");ec.push("scrollEnd");function hn(e,t){sf.set(e,t),wa(t,[e])}var Ni=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)},Wa=[],Br=0,tc=0;function Ei(){for(var e=Br,t=tc=Br=0;t<e;){var a=Wa[t];Wa[t++]=null;var n=Wa[t];Wa[t++]=null;var r=Wa[t];Wa[t++]=null;var s=Wa[t];if(Wa[t++]=null,n!==null&&r!==null){var f=n.pending;f===null?r.next=r:(r.next=f.next,f.next=r),n.pending=r}s!==0&&of(a,r,s)}}function Ai(e,t,a,n){Wa[Br++]=e,Wa[Br++]=t,Wa[Br++]=a,Wa[Br++]=n,tc|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function ac(e,t,a,n){return Ai(e,t,a,n),Ci(e)}function ur(e,t){return Ai(e,null,null,t),Ci(e)}function of(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var r=!1,s=e.return;s!==null;)s.childLanes|=a,n=s.alternate,n!==null&&(n.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(r=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,r&&t!==null&&(r=31-kt(a),e=s.hiddenUpdates,n=e[r],n===null?e[r]=[t]:n.push(t),t.lane=a|536870912),s):null}function Ci(e){if(50<Fs)throw Fs=0,du=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var qr={};function s2(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 _a(e,t,a,n){return new s2(e,t,a,n)}function nc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wn(e,t){var a=e.alternate;return a===null?(a=_a(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 cf(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 Ti(e,t,a,n,r,s){var f=0;if(n=e,typeof e=="function")nc(e)&&(f=1);else if(typeof e=="string")f=dv(e,a,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case pe:return e=_a(31,a,t,r),e.elementType=pe,e.lanes=s,e;case C:return dr(a.children,r,s,t);case _:f=8,r|=24;break;case z:return e=_a(12,a,t,r|2),e.elementType=z,e.lanes=s,e;case J:return e=_a(13,a,t,r),e.elementType=J,e.lanes=s,e;case I:return e=_a(19,a,t,r),e.elementType=I,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case K:f=10;break e;case L:f=9;break e;case ee:f=11;break e;case Z:f=14;break e;case Q:f=16,n=null;break e}f=29,a=Error(c(130,e===null?"null":typeof e,"")),n=null}return t=_a(f,a,t,r),t.elementType=e,t.type=n,t.lanes=s,t}function dr(e,t,a,n){return e=_a(7,e,n,t),e.lanes=a,e}function lc(e,t,a){return e=_a(6,e,null,t),e.lanes=a,e}function uf(e){var t=_a(18,null,null,0);return t.stateNode=e,t}function rc(e,t,a){return t=_a(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var df=new WeakMap;function Ia(e,t){if(typeof e=="object"&&e!==null){var a=df.get(e);return a!==void 0?a:(t={value:e,source:t,stack:vl(t)},df.set(e,t),t)}return{value:e,source:t,stack:vl(t)}}var Yr=[],Gr=0,zi=null,Rs=0,Fa=[],Pa=0,Cl=null,_n=1,Rn="";function In(e,t){Yr[Gr++]=Rs,Yr[Gr++]=zi,zi=e,Rs=t}function ff(e,t,a){Fa[Pa++]=_n,Fa[Pa++]=Rn,Fa[Pa++]=Cl,Cl=e;var n=_n;e=Rn;var r=32-kt(n)-1;n&=~(1<<r),a+=1;var s=32-kt(t)+r;if(30<s){var f=r-r%5;s=(n&(1<<f)-1).toString(32),n>>=f,r-=f,_n=1<<32-kt(t)+r|a<<r|n,Rn=s+e}else _n=1<<s|a<<r|n,Rn=e}function sc(e){e.return!==null&&(In(e,1),ff(e,1,0))}function ic(e){for(;e===zi;)zi=Yr[--Gr],Yr[Gr]=null,Rs=Yr[--Gr],Yr[Gr]=null;for(;e===Cl;)Cl=Fa[--Pa],Fa[Pa]=null,Rn=Fa[--Pa],Fa[Pa]=null,_n=Fa[--Pa],Fa[Pa]=null}function mf(e,t){Fa[Pa++]=_n,Fa[Pa++]=Rn,Fa[Pa++]=Cl,_n=t.id,Rn=t.overflow,Cl=e}var Qt=null,it=null,Ye=!1,Tl=null,en=!1,oc=Error(c(519));function zl(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ms(Ia(t,e)),oc}function hf(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[ct]=e,t[jt]=n,a){case"dialog":Oe("cancel",t),Oe("close",t);break;case"iframe":case"object":case"embed":Oe("load",t);break;case"video":case"audio":for(a=0;a<ei.length;a++)Oe(ei[a],t);break;case"source":Oe("error",t);break;case"img":case"image":case"link":Oe("error",t),Oe("load",t);break;case"details":Oe("toggle",t);break;case"input":Oe("invalid",t),Be(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Oe("invalid",t);break;case"textarea":Oe("invalid",t),Ae(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||Rh(t.textContent,a)?(n.popover!=null&&(Oe("beforetoggle",t),Oe("toggle",t)),n.onScroll!=null&&Oe("scroll",t),n.onScrollEnd!=null&&Oe("scrollend",t),n.onClick!=null&&(t.onclick=ja),t=!0):t=!1,t||zl(e,!0)}function pf(e){for(Qt=e.return;Qt;)switch(Qt.tag){case 5:case 31:case 13:en=!1;return;case 27:case 3:en=!0;return;default:Qt=Qt.return}}function Vr(e){if(e!==Qt)return!1;if(!Ye)return pf(e),Ye=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Au(e.type,e.memoizedProps)),a=!a),a&&it&&zl(e),pf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));it=qh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));it=qh(e)}else t===27?(t=it,Vl(e.type)?(e=Ru,Ru=null,it=e):it=t):it=Qt?an(e.stateNode.nextSibling):null;return!0}function fr(){it=Qt=null,Ye=!1}function cc(){var e=Tl;return e!==null&&(pa===null?pa=e:pa.push.apply(pa,e),Tl=null),e}function Ms(e){Tl===null?Tl=[e]:Tl.push(e)}var uc=A(null),mr=null,Fn=null;function _l(e,t,a){V(uc,t._currentValue),t._currentValue=a}function Pn(e){e._currentValue=uc.current,q(uc)}function dc(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 fc(e,t,a,n){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var s=r.dependencies;if(s!==null){var f=r.child;s=s.firstContext;e:for(;s!==null;){var x=s;s=r;for(var N=0;N<t.length;N++)if(x.context===t[N]){s.lanes|=a,x=s.alternate,x!==null&&(x.lanes|=a),dc(s.return,a,e),n||(f=null);break e}s=x.next}}else if(r.tag===18){if(f=r.return,f===null)throw Error(c(341));f.lanes|=a,s=f.alternate,s!==null&&(s.lanes|=a),dc(f,a,e),f=null}else f=r.child;if(f!==null)f.return=r;else for(f=r;f!==null;){if(f===e){f=null;break}if(r=f.sibling,r!==null){r.return=f.return,f=r;break}f=f.return}r=f}}function Xr(e,t,a,n){e=null;for(var r=t,s=!1;r!==null;){if(!s){if((r.flags&524288)!==0)s=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var f=r.alternate;if(f===null)throw Error(c(387));if(f=f.memoizedProps,f!==null){var x=r.type;za(r.pendingProps.value,f.value)||(e!==null?e.push(x):e=[x])}}else if(r===je.current){if(f=r.alternate,f===null)throw Error(c(387));f.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(ri):e=[ri])}r=r.return}e!==null&&fc(t,e,a,n),t.flags|=262144}function _i(e){for(e=e.firstContext;e!==null;){if(!za(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function hr(e){mr=e,Fn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Zt(e){return gf(mr,e)}function Ri(e,t){return mr===null&&hr(e),gf(e,t)}function gf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Fn===null){if(e===null)throw Error(c(308));Fn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Fn=Fn.next=t;return a}var i2=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()})}},o2=l.unstable_scheduleCallback,c2=l.unstable_NormalPriority,Nt={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mc(){return{controller:new i2,data:new Map,refCount:0}}function ks(e){e.refCount--,e.refCount===0&&o2(c2,function(){e.controller.abort()})}var Ds=null,hc=0,Qr=0,Zr=null;function u2(e,t){if(Ds===null){var a=Ds=[];hc=0,Qr=vu(),Zr={status:"pending",value:void 0,then:function(n){a.push(n)}}}return hc++,t.then(vf,vf),t}function vf(){if(--hc===0&&Ds!==null){Zr!==null&&(Zr.status="fulfilled");var e=Ds;Ds=null,Qr=0,Zr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function d2(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(n.status="rejected",n.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),n}var yf=M.S;M.S=function(e,t){th=Xt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&u2(e,t),yf!==null&&yf(e,t)};var pr=A(null);function pc(){var e=pr.current;return e!==null?e:nt.pooledCache}function Mi(e,t){t===null?V(pr,pr.current):V(pr,t.pool)}function xf(){var e=pc();return e===null?null:{parent:Nt._currentValue,pool:e}}var Kr=Error(c(460)),gc=Error(c(474)),ki=Error(c(542)),Di={then:function(){}};function bf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Sf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ja,ja),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,jf(e),e;default:if(typeof t.status=="string")t.then(ja,ja);else{if(e=nt,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=n}},function(n){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,jf(e),e}throw vr=t,Kr}}function gr(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(vr=a,Kr):a}}var vr=null;function wf(){if(vr===null)throw Error(c(459));var e=vr;return vr=null,e}function jf(e){if(e===Kr||e===ki)throw Error(c(483))}var $r=null,Os=0;function Oi(e){var t=Os;return Os+=1,$r===null&&($r=[]),Sf($r,e,t)}function Us(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ui(e,t){throw t.$$typeof===w?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Nf(e){function t(R,T){if(e){var k=R.deletions;k===null?(R.deletions=[T],R.flags|=16):k.push(T)}}function a(R,T){if(!e)return null;for(;T!==null;)t(R,T),T=T.sibling;return null}function n(R){for(var T=new Map;R!==null;)R.key!==null?T.set(R.key,R):T.set(R.index,R),R=R.sibling;return T}function r(R,T){return R=Wn(R,T),R.index=0,R.sibling=null,R}function s(R,T,k){return R.index=k,e?(k=R.alternate,k!==null?(k=k.index,k<T?(R.flags|=67108866,T):k):(R.flags|=67108866,T)):(R.flags|=1048576,T)}function f(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function x(R,T,k,Y){return T===null||T.tag!==6?(T=lc(k,R.mode,Y),T.return=R,T):(T=r(T,k),T.return=R,T)}function N(R,T,k,Y){var de=k.type;return de===C?B(R,T,k.props.children,Y,k.key):T!==null&&(T.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===Q&&gr(de)===T.type)?(T=r(T,k.props),Us(T,k),T.return=R,T):(T=Ti(k.type,k.key,k.props,null,R.mode,Y),Us(T,k),T.return=R,T)}function D(R,T,k,Y){return T===null||T.tag!==4||T.stateNode.containerInfo!==k.containerInfo||T.stateNode.implementation!==k.implementation?(T=rc(k,R.mode,Y),T.return=R,T):(T=r(T,k.children||[]),T.return=R,T)}function B(R,T,k,Y,de){return T===null||T.tag!==7?(T=dr(k,R.mode,Y,de),T.return=R,T):(T=r(T,k),T.return=R,T)}function X(R,T,k){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=lc(""+T,R.mode,k),T.return=R,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case E:return k=Ti(T.type,T.key,T.props,null,R.mode,k),Us(k,T),k.return=R,k;case j:return T=rc(T,R.mode,k),T.return=R,T;case Q:return T=gr(T),X(R,T,k)}if(ge(T)||Re(T))return T=dr(T,R.mode,k,null),T.return=R,T;if(typeof T.then=="function")return X(R,Oi(T),k);if(T.$$typeof===K)return X(R,Ri(R,T),k);Ui(R,T)}return null}function U(R,T,k,Y){var de=T!==null?T.key:null;if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return de!==null?null:x(R,T,""+k,Y);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case E:return k.key===de?N(R,T,k,Y):null;case j:return k.key===de?D(R,T,k,Y):null;case Q:return k=gr(k),U(R,T,k,Y)}if(ge(k)||Re(k))return de!==null?null:B(R,T,k,Y,null);if(typeof k.then=="function")return U(R,T,Oi(k),Y);if(k.$$typeof===K)return U(R,T,Ri(R,k),Y);Ui(R,k)}return null}function H(R,T,k,Y,de){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return R=R.get(k)||null,x(T,R,""+Y,de);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case E:return R=R.get(Y.key===null?k:Y.key)||null,N(T,R,Y,de);case j:return R=R.get(Y.key===null?k:Y.key)||null,D(T,R,Y,de);case Q:return Y=gr(Y),H(R,T,k,Y,de)}if(ge(Y)||Re(Y))return R=R.get(k)||null,B(T,R,Y,de,null);if(typeof Y.then=="function")return H(R,T,k,Oi(Y),de);if(Y.$$typeof===K)return H(R,T,k,Ri(T,Y),de);Ui(T,Y)}return null}function oe(R,T,k,Y){for(var de=null,Qe=null,ce=T,ze=T=0,He=null;ce!==null&&ze<k.length;ze++){ce.index>ze?(He=ce,ce=null):He=ce.sibling;var Ze=U(R,ce,k[ze],Y);if(Ze===null){ce===null&&(ce=He);break}e&&ce&&Ze.alternate===null&&t(R,ce),T=s(Ze,T,ze),Qe===null?de=Ze:Qe.sibling=Ze,Qe=Ze,ce=He}if(ze===k.length)return a(R,ce),Ye&&In(R,ze),de;if(ce===null){for(;ze<k.length;ze++)ce=X(R,k[ze],Y),ce!==null&&(T=s(ce,T,ze),Qe===null?de=ce:Qe.sibling=ce,Qe=ce);return Ye&&In(R,ze),de}for(ce=n(ce);ze<k.length;ze++)He=H(ce,R,ze,k[ze],Y),He!==null&&(e&&He.alternate!==null&&ce.delete(He.key===null?ze:He.key),T=s(He,T,ze),Qe===null?de=He:Qe.sibling=He,Qe=He);return e&&ce.forEach(function($l){return t(R,$l)}),Ye&&In(R,ze),de}function he(R,T,k,Y){if(k==null)throw Error(c(151));for(var de=null,Qe=null,ce=T,ze=T=0,He=null,Ze=k.next();ce!==null&&!Ze.done;ze++,Ze=k.next()){ce.index>ze?(He=ce,ce=null):He=ce.sibling;var $l=U(R,ce,Ze.value,Y);if($l===null){ce===null&&(ce=He);break}e&&ce&&$l.alternate===null&&t(R,ce),T=s($l,T,ze),Qe===null?de=$l:Qe.sibling=$l,Qe=$l,ce=He}if(Ze.done)return a(R,ce),Ye&&In(R,ze),de;if(ce===null){for(;!Ze.done;ze++,Ze=k.next())Ze=X(R,Ze.value,Y),Ze!==null&&(T=s(Ze,T,ze),Qe===null?de=Ze:Qe.sibling=Ze,Qe=Ze);return Ye&&In(R,ze),de}for(ce=n(ce);!Ze.done;ze++,Ze=k.next())Ze=H(ce,R,ze,Ze.value,Y),Ze!==null&&(e&&Ze.alternate!==null&&ce.delete(Ze.key===null?ze:Ze.key),T=s(Ze,T,ze),Qe===null?de=Ze:Qe.sibling=Ze,Qe=Ze);return e&&ce.forEach(function(wv){return t(R,wv)}),Ye&&In(R,ze),de}function tt(R,T,k,Y){if(typeof k=="object"&&k!==null&&k.type===C&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case E:e:{for(var de=k.key;T!==null;){if(T.key===de){if(de=k.type,de===C){if(T.tag===7){a(R,T.sibling),Y=r(T,k.props.children),Y.return=R,R=Y;break e}}else if(T.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===Q&&gr(de)===T.type){a(R,T.sibling),Y=r(T,k.props),Us(Y,k),Y.return=R,R=Y;break e}a(R,T);break}else t(R,T);T=T.sibling}k.type===C?(Y=dr(k.props.children,R.mode,Y,k.key),Y.return=R,R=Y):(Y=Ti(k.type,k.key,k.props,null,R.mode,Y),Us(Y,k),Y.return=R,R=Y)}return f(R);case j:e:{for(de=k.key;T!==null;){if(T.key===de)if(T.tag===4&&T.stateNode.containerInfo===k.containerInfo&&T.stateNode.implementation===k.implementation){a(R,T.sibling),Y=r(T,k.children||[]),Y.return=R,R=Y;break e}else{a(R,T);break}else t(R,T);T=T.sibling}Y=rc(k,R.mode,Y),Y.return=R,R=Y}return f(R);case Q:return k=gr(k),tt(R,T,k,Y)}if(ge(k))return oe(R,T,k,Y);if(Re(k)){if(de=Re(k),typeof de!="function")throw Error(c(150));return k=de.call(k),he(R,T,k,Y)}if(typeof k.then=="function")return tt(R,T,Oi(k),Y);if(k.$$typeof===K)return tt(R,T,Ri(R,k),Y);Ui(R,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,T!==null&&T.tag===6?(a(R,T.sibling),Y=r(T,k),Y.return=R,R=Y):(a(R,T),Y=lc(k,R.mode,Y),Y.return=R,R=Y),f(R)):a(R,T)}return function(R,T,k,Y){try{Os=0;var de=tt(R,T,k,Y);return $r=null,de}catch(ce){if(ce===Kr||ce===ki)throw ce;var Qe=_a(29,ce,null,R.mode);return Qe.lanes=Y,Qe.return=R,Qe}finally{}}}var yr=Nf(!0),Ef=Nf(!1),Rl=!1;function vc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yc(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 Ml(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function kl(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,($e&2)!==0){var r=n.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),n.pending=t,t=Ci(e),of(e,null,a),t}return Ai(e,n,t,a),Ci(e)}function Ls(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,gt(e,a)}}function xc(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var r=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?r=s=f:s=s.next=f,a=a.next}while(a!==null);s===null?r=s=t:s=s.next=t}else r=s=t;a={baseState:n.baseState,firstBaseUpdate:r,lastBaseUpdate:s,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 bc=!1;function Hs(){if(bc){var e=Zr;if(e!==null)throw e}}function Bs(e,t,a,n){bc=!1;var r=e.updateQueue;Rl=!1;var s=r.firstBaseUpdate,f=r.lastBaseUpdate,x=r.shared.pending;if(x!==null){r.shared.pending=null;var N=x,D=N.next;N.next=null,f===null?s=D:f.next=D,f=N;var B=e.alternate;B!==null&&(B=B.updateQueue,x=B.lastBaseUpdate,x!==f&&(x===null?B.firstBaseUpdate=D:x.next=D,B.lastBaseUpdate=N))}if(s!==null){var X=r.baseState;f=0,B=D=N=null,x=s;do{var U=x.lane&-536870913,H=U!==x.lane;if(H?(Le&U)===U:(n&U)===U){U!==0&&U===Qr&&(bc=!0),B!==null&&(B=B.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var oe=e,he=x;U=t;var tt=a;switch(he.tag){case 1:if(oe=he.payload,typeof oe=="function"){X=oe.call(tt,X,U);break e}X=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=he.payload,U=typeof oe=="function"?oe.call(tt,X,U):oe,U==null)break e;X=g({},X,U);break e;case 2:Rl=!0}}U=x.callback,U!==null&&(e.flags|=64,H&&(e.flags|=8192),H=r.callbacks,H===null?r.callbacks=[U]:H.push(U))}else H={lane:U,tag:x.tag,payload:x.payload,callback:x.callback,next:null},B===null?(D=B=H,N=X):B=B.next=H,f|=U;if(x=x.next,x===null){if(x=r.shared.pending,x===null)break;H=x,x=H.next,H.next=null,r.lastBaseUpdate=H,r.shared.pending=null}}while(!0);B===null&&(N=X),r.baseState=N,r.firstBaseUpdate=D,r.lastBaseUpdate=B,s===null&&(r.shared.lanes=0),Hl|=f,e.lanes=f,e.memoizedState=X}}function Af(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function Cf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Af(a[e],t)}var Jr=A(null),Li=A(0);function Tf(e,t){e=ol,V(Li,e),V(Jr,t),ol=e|t.baseLanes}function Sc(){V(Li,ol),V(Jr,Jr.current)}function wc(){ol=Li.current,q(Jr),q(Li)}var Ra=A(null),tn=null;function Dl(e){var t=e.alternate;V(bt,bt.current&1),V(Ra,e),tn===null&&(t===null||Jr.current!==null||t.memoizedState!==null)&&(tn=e)}function jc(e){V(bt,bt.current),V(Ra,e),tn===null&&(tn=e)}function zf(e){e.tag===22?(V(bt,bt.current),V(Ra,e),tn===null&&(tn=e)):Ol()}function Ol(){V(bt,bt.current),V(Ra,Ra.current)}function Ma(e){q(Ra),tn===e&&(tn=null),q(bt)}var bt=A(0);function Hi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||zu(a)||_u(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 el=0,Te=null,Pe=null,Et=null,Bi=!1,Wr=!1,xr=!1,qi=0,qs=0,Ir=null,f2=0;function mt(){throw Error(c(321))}function Nc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!za(e[a],t[a]))return!1;return!0}function Ec(e,t,a,n,r,s){return el=s,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?fm:qc,xr=!1,s=a(n,r),xr=!1,Wr&&(s=Rf(t,a,n,r)),_f(e),s}function _f(e){M.H=Vs;var t=Pe!==null&&Pe.next!==null;if(el=0,Et=Pe=Te=null,Bi=!1,qs=0,Ir=null,t)throw Error(c(300));e===null||At||(e=e.dependencies,e!==null&&_i(e)&&(At=!0))}function Rf(e,t,a,n){Te=e;var r=0;do{if(Wr&&(Ir=null),qs=0,Wr=!1,25<=r)throw Error(c(301));if(r+=1,Et=Pe=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}M.H=mm,s=t(a,n)}while(Wr);return s}function m2(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?Ys(t):t,e=e.useState()[0],(Pe!==null?Pe.memoizedState:null)!==e&&(Te.flags|=1024),t}function Ac(){var e=qi!==0;return qi=0,e}function Cc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Tc(e){if(Bi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Bi=!1}el=0,Et=Pe=Te=null,Wr=!1,qs=qi=0,Ir=null}function ia(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?Te.memoizedState=Et=e:Et=Et.next=e,Et}function St(){if(Pe===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=Et===null?Te.memoizedState:Et.next;if(t!==null)Et=t,Pe=e;else{if(e===null)throw Te.alternate===null?Error(c(467)):Error(c(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},Et===null?Te.memoizedState=Et=e:Et=Et.next=e}return Et}function Yi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ys(e){var t=qs;return qs+=1,Ir===null&&(Ir=[]),e=Sf(Ir,e,t),t=Te,(Et===null?t.memoizedState:Et.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?fm:qc),e}function Gi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ys(e);if(e.$$typeof===K)return Zt(e)}throw Error(c(438,String(e)))}function zc(e){var t=null,a=Te.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=Te.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Yi(),Te.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]=xe;return t.index++,a}function tl(e,t){return typeof t=="function"?t(e):t}function Vi(e){var t=St();return _c(t,Pe,e)}function _c(e,t,a){var n=e.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=a;var r=e.baseQueue,s=n.pending;if(s!==null){if(r!==null){var f=r.next;r.next=s.next,s.next=f}t.baseQueue=r=s,n.pending=null}if(s=e.baseState,r===null)e.memoizedState=s;else{t=r.next;var x=f=null,N=null,D=t,B=!1;do{var X=D.lane&-536870913;if(X!==D.lane?(Le&X)===X:(el&X)===X){var U=D.revertLane;if(U===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),X===Qr&&(B=!0);else if((el&U)===U){D=D.next,U===Qr&&(B=!0);continue}else X={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},N===null?(x=N=X,f=s):N=N.next=X,Te.lanes|=U,Hl|=U;X=D.action,xr&&a(s,X),s=D.hasEagerState?D.eagerState:a(s,X)}else U={lane:X,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},N===null?(x=N=U,f=s):N=N.next=U,Te.lanes|=X,Hl|=X;D=D.next}while(D!==null&&D!==t);if(N===null?f=s:N.next=x,!za(s,e.memoizedState)&&(At=!0,B&&(a=Zr,a!==null)))throw a;e.memoizedState=s,e.baseState=f,e.baseQueue=N,n.lastRenderedState=s}return r===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Rc(e){var t=St(),a=t.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=e;var n=a.dispatch,r=a.pending,s=t.memoizedState;if(r!==null){a.pending=null;var f=r=r.next;do s=e(s,f.action),f=f.next;while(f!==r);za(s,t.memoizedState)||(At=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,n]}function Mf(e,t,a){var n=Te,r=St(),s=Ye;if(s){if(a===void 0)throw Error(c(407));a=a()}else a=t();var f=!za((Pe||r).memoizedState,a);if(f&&(r.memoizedState=a,At=!0),r=r.queue,Dc(Of.bind(null,n,r,e),[e]),r.getSnapshot!==t||f||Et!==null&&Et.memoizedState.tag&1){if(n.flags|=2048,Fr(9,{destroy:void 0},Df.bind(null,n,r,a,t),null),nt===null)throw Error(c(349));s||(el&127)!==0||kf(n,t,a)}return a}function kf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Te.updateQueue,t===null?(t=Yi(),Te.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Df(e,t,a,n){t.value=a,t.getSnapshot=n,Uf(t)&&Lf(e)}function Of(e,t,a){return a(function(){Uf(t)&&Lf(e)})}function Uf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!za(e,a)}catch{return!0}}function Lf(e){var t=ur(e,2);t!==null&&ga(t,e,2)}function Mc(e){var t=ia();if(typeof e=="function"){var a=e;if(e=a(),xr){ba(!0);try{a()}finally{ba(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:e},t}function Hf(e,t,a,n){return e.baseState=a,_c(e,Pe,typeof n=="function"?n:tl)}function h2(e,t,a,n,r){if(Zi(e))throw Error(c(485));if(e=t.action,e!==null){var s={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){s.listeners.push(f)}};M.T!==null?a(!0):s.isTransition=!1,n(s),a=t.pending,a===null?(s.next=t.pending=s,Bf(t,s)):(s.next=a.next,t.pending=a.next=s)}}function Bf(e,t){var a=t.action,n=t.payload,r=e.state;if(t.isTransition){var s=M.T,f={};M.T=f;try{var x=a(r,n),N=M.S;N!==null&&N(f,x),qf(e,t,x)}catch(D){kc(e,t,D)}finally{s!==null&&f.types!==null&&(s.types=f.types),M.T=s}}else try{s=a(r,n),qf(e,t,s)}catch(D){kc(e,t,D)}}function qf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){Yf(e,t,n)},function(n){return kc(e,t,n)}):Yf(e,t,a)}function Yf(e,t,a){t.status="fulfilled",t.value=a,Gf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Bf(e,a)))}function kc(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,Gf(t),t=t.next;while(t!==n)}e.action=null}function Gf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Vf(e,t){return t}function Xf(e,t){if(Ye){var a=nt.formState;if(a!==null){e:{var n=Te;if(Ye){if(it){t:{for(var r=it,s=en;r.nodeType!==8;){if(!s){r=null;break t}if(r=an(r.nextSibling),r===null){r=null;break t}}s=r.data,r=s==="F!"||s==="F"?r:null}if(r){it=an(r.nextSibling),n=r.data==="F!";break e}}zl(n)}n=!1}n&&(t=a[0])}}return a=ia(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vf,lastRenderedState:t},a.queue=n,a=cm.bind(null,Te,n),n.dispatch=a,n=Mc(!1),s=Bc.bind(null,Te,!1,n.queue),n=ia(),r={state:t,dispatch:null,action:e,pending:null},n.queue=r,a=h2.bind(null,Te,r,s,a),r.dispatch=a,n.memoizedState=e,[t,a,!1]}function Qf(e){var t=St();return Zf(t,Pe,e)}function Zf(e,t,a){if(t=_c(e,t,Vf)[0],e=Vi(tl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Ys(t)}catch(f){throw f===Kr?ki:f}else n=t;t=St();var r=t.queue,s=r.dispatch;return a!==t.memoizedState&&(Te.flags|=2048,Fr(9,{destroy:void 0},p2.bind(null,r,a),null)),[n,s,e]}function p2(e,t){e.action=t}function Kf(e){var t=St(),a=Pe;if(a!==null)return Zf(t,a,e);St(),t=t.memoizedState,a=St();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function Fr(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=Te.updateQueue,t===null&&(t=Yi(),Te.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 $f(){return St().memoizedState}function Xi(e,t,a,n){var r=ia();Te.flags|=e,r.memoizedState=Fr(1|t,{destroy:void 0},a,n===void 0?null:n)}function Qi(e,t,a,n){var r=St();n=n===void 0?null:n;var s=r.memoizedState.inst;Pe!==null&&n!==null&&Nc(n,Pe.memoizedState.deps)?r.memoizedState=Fr(t,s,a,n):(Te.flags|=e,r.memoizedState=Fr(1|t,s,a,n))}function Jf(e,t){Xi(8390656,8,e,t)}function Dc(e,t){Qi(2048,8,e,t)}function g2(e){Te.flags|=4;var t=Te.updateQueue;if(t===null)t=Yi(),Te.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Wf(e){var t=St().memoizedState;return g2({ref:t,nextImpl:e}),function(){if(($e&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function If(e,t){return Qi(4,2,e,t)}function Ff(e,t){return Qi(4,4,e,t)}function Pf(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 em(e,t,a){a=a!=null?a.concat([e]):null,Qi(4,4,Pf.bind(null,t,e),a)}function Oc(){}function tm(e,t){var a=St();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&Nc(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function am(e,t){var a=St();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&Nc(t,n[1]))return n[0];if(n=e(),xr){ba(!0);try{e()}finally{ba(!1)}}return a.memoizedState=[n,t],n}function Uc(e,t,a){return a===void 0||(el&1073741824)!==0&&(Le&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=nh(),Te.lanes|=e,Hl|=e,a)}function nm(e,t,a,n){return za(a,t)?a:Jr.current!==null?(e=Uc(e,a,n),za(e,t)||(At=!0),e):(el&42)===0||(el&1073741824)!==0&&(Le&261930)===0?(At=!0,e.memoizedState=a):(e=nh(),Te.lanes|=e,Hl|=e,t)}function lm(e,t,a,n,r){var s=G.p;G.p=s!==0&&8>s?s:8;var f=M.T,x={};M.T=x,Bc(e,!1,t,a);try{var N=r(),D=M.S;if(D!==null&&D(x,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var B=d2(N,n);Gs(e,t,B,Oa(e))}else Gs(e,t,n,Oa(e))}catch(X){Gs(e,t,{then:function(){},status:"rejected",reason:X},Oa())}finally{G.p=s,f!==null&&x.types!==null&&(f.types=x.types),M.T=f}}function v2(){}function Lc(e,t,a,n){if(e.tag!==5)throw Error(c(476));var r=rm(e).queue;lm(e,r,t,re,a===null?v2:function(){return sm(e),a(n)})}function rm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:re},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function sm(e){var t=rm(e);t.next===null&&(t=e.alternate.memoizedState),Gs(e,t.next.queue,{},Oa())}function Hc(){return Zt(ri)}function im(){return St().memoizedState}function om(){return St().memoizedState}function y2(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Oa();e=Ml(a);var n=kl(t,e,a);n!==null&&(ga(n,t,a),Ls(n,t,a)),t={cache:mc()},e.payload=t;return}t=t.return}}function x2(e,t,a){var n=Oa();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Zi(e)?um(t,a):(a=ac(e,t,a,n),a!==null&&(ga(a,e,n),dm(a,t,n)))}function cm(e,t,a){var n=Oa();Gs(e,t,a,n)}function Gs(e,t,a,n){var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Zi(e))um(t,r);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var f=t.lastRenderedState,x=s(f,a);if(r.hasEagerState=!0,r.eagerState=x,za(x,f))return Ai(e,t,r,0),nt===null&&Ei(),!1}catch{}finally{}if(a=ac(e,t,r,n),a!==null)return ga(a,e,n),dm(a,t,n),!0}return!1}function Bc(e,t,a,n){if(n={lane:2,revertLane:vu(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Zi(e)){if(t)throw Error(c(479))}else t=ac(e,a,n,2),t!==null&&ga(t,e,2)}function Zi(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function um(e,t){Wr=Bi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function dm(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,gt(e,a)}}var Vs={readContext:Zt,use:Gi,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useLayoutEffect:mt,useInsertionEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useSyncExternalStore:mt,useId:mt,useHostTransitionStatus:mt,useFormState:mt,useActionState:mt,useOptimistic:mt,useMemoCache:mt,useCacheRefresh:mt};Vs.useEffectEvent=mt;var fm={readContext:Zt,use:Gi,useCallback:function(e,t){return ia().memoizedState=[e,t===void 0?null:t],e},useContext:Zt,useEffect:Jf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Xi(4194308,4,Pf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Xi(4194308,4,e,t)},useInsertionEffect:function(e,t){Xi(4,2,e,t)},useMemo:function(e,t){var a=ia();t=t===void 0?null:t;var n=e();if(xr){ba(!0);try{e()}finally{ba(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=ia();if(a!==void 0){var r=a(t);if(xr){ba(!0);try{a(t)}finally{ba(!1)}}}else r=t;return n.memoizedState=n.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},n.queue=e,e=e.dispatch=x2.bind(null,Te,e),[n.memoizedState,e]},useRef:function(e){var t=ia();return e={current:e},t.memoizedState=e},useState:function(e){e=Mc(e);var t=e.queue,a=cm.bind(null,Te,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Oc,useDeferredValue:function(e,t){var a=ia();return Uc(a,e,t)},useTransition:function(){var e=Mc(!1);return e=lm.bind(null,Te,e.queue,!0,!1),ia().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=Te,r=ia();if(Ye){if(a===void 0)throw Error(c(407));a=a()}else{if(a=t(),nt===null)throw Error(c(349));(Le&127)!==0||kf(n,t,a)}r.memoizedState=a;var s={value:a,getSnapshot:t};return r.queue=s,Jf(Of.bind(null,n,s,e),[e]),n.flags|=2048,Fr(9,{destroy:void 0},Df.bind(null,n,s,a,t),null),a},useId:function(){var e=ia(),t=nt.identifierPrefix;if(Ye){var a=Rn,n=_n;a=(n&~(1<<32-kt(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=qi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=f2++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Hc,useFormState:Xf,useActionState:Xf,useOptimistic:function(e){var t=ia();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Bc.bind(null,Te,!0,a),a.dispatch=t,[e,t]},useMemoCache:zc,useCacheRefresh:function(){return ia().memoizedState=y2.bind(null,Te)},useEffectEvent:function(e){var t=ia(),a={impl:e};return t.memoizedState=a,function(){if(($e&2)!==0)throw Error(c(440));return a.impl.apply(void 0,arguments)}}},qc={readContext:Zt,use:Gi,useCallback:tm,useContext:Zt,useEffect:Dc,useImperativeHandle:em,useInsertionEffect:If,useLayoutEffect:Ff,useMemo:am,useReducer:Vi,useRef:$f,useState:function(){return Vi(tl)},useDebugValue:Oc,useDeferredValue:function(e,t){var a=St();return nm(a,Pe.memoizedState,e,t)},useTransition:function(){var e=Vi(tl)[0],t=St().memoizedState;return[typeof e=="boolean"?e:Ys(e),t]},useSyncExternalStore:Mf,useId:im,useHostTransitionStatus:Hc,useFormState:Qf,useActionState:Qf,useOptimistic:function(e,t){var a=St();return Hf(a,Pe,e,t)},useMemoCache:zc,useCacheRefresh:om};qc.useEffectEvent=Wf;var mm={readContext:Zt,use:Gi,useCallback:tm,useContext:Zt,useEffect:Dc,useImperativeHandle:em,useInsertionEffect:If,useLayoutEffect:Ff,useMemo:am,useReducer:Rc,useRef:$f,useState:function(){return Rc(tl)},useDebugValue:Oc,useDeferredValue:function(e,t){var a=St();return Pe===null?Uc(a,e,t):nm(a,Pe.memoizedState,e,t)},useTransition:function(){var e=Rc(tl)[0],t=St().memoizedState;return[typeof e=="boolean"?e:Ys(e),t]},useSyncExternalStore:Mf,useId:im,useHostTransitionStatus:Hc,useFormState:Kf,useActionState:Kf,useOptimistic:function(e,t){var a=St();return Pe!==null?Hf(a,Pe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:zc,useCacheRefresh:om};mm.useEffectEvent=Wf;function Yc(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:g({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Gc={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Oa(),r=Ml(n);r.payload=t,a!=null&&(r.callback=a),t=kl(e,r,n),t!==null&&(ga(t,e,n),Ls(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Oa(),r=Ml(n);r.tag=1,r.payload=t,a!=null&&(r.callback=a),t=kl(e,r,n),t!==null&&(ga(t,e,n),Ls(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Oa(),n=Ml(a);n.tag=2,t!=null&&(n.callback=t),t=kl(e,n,a),t!==null&&(ga(t,e,a),Ls(t,e,a))}};function hm(e,t,a,n,r,s,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,f):t.prototype&&t.prototype.isPureReactComponent?!zs(a,n)||!zs(r,s):!0}function pm(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&&Gc.enqueueReplaceState(t,t.state,null)}function br(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=g({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function gm(e){Ni(e)}function vm(e){console.error(e)}function ym(e){Ni(e)}function Ki(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function xm(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Vc(e,t,a){return a=Ml(a),a.tag=3,a.payload={element:null},a.callback=function(){Ki(e,t)},a}function bm(e){return e=Ml(e),e.tag=3,e}function Sm(e,t,a,n){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var s=n.value;e.payload=function(){return r(s)},e.callback=function(){xm(t,a,n)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){xm(t,a,n),typeof r!="function"&&(Bl===null?Bl=new Set([this]):Bl.add(this));var x=n.stack;this.componentDidCatch(n.value,{componentStack:x!==null?x:""})})}function b2(e,t,a,n,r){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&Xr(t,a,r,!0),a=Ra.current,a!==null){switch(a.tag){case 31:case 13:return tn===null?ro():a.alternate===null&&ht===0&&(ht=3),a.flags&=-257,a.flags|=65536,a.lanes=r,n===Di?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),hu(e,n,r)),!1;case 22:return a.flags|=65536,n===Di?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)),hu(e,n,r)),!1}throw Error(c(435,a.tag))}return hu(e,n,r),ro(),!1}if(Ye)return t=Ra.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,n!==oc&&(e=Error(c(422),{cause:n}),Ms(Ia(e,a)))):(n!==oc&&(t=Error(c(423),{cause:n}),Ms(Ia(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,n=Ia(n,a),r=Vc(e.stateNode,n,r),xc(e,r),ht!==4&&(ht=2)),!1;var s=Error(c(520),{cause:n});if(s=Ia(s,a),Is===null?Is=[s]:Is.push(s),ht!==4&&(ht=2),t===null)return!0;n=Ia(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=Vc(a.stateNode,n,e),xc(a,e),!1;case 1:if(t=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Bl===null||!Bl.has(s))))return a.flags|=65536,r&=-r,a.lanes|=r,r=bm(r),Sm(r,e,a,n),xc(a,r),!1}a=a.return}while(a!==null);return!1}var Xc=Error(c(461)),At=!1;function Kt(e,t,a,n){t.child=e===null?Ef(t,null,a,n):yr(t,e.child,a,n)}function wm(e,t,a,n,r){a=a.render;var s=t.ref;if("ref"in n){var f={};for(var x in n)x!=="ref"&&(f[x]=n[x])}else f=n;return hr(t),n=Ec(e,t,a,f,s,r),x=Ac(),e!==null&&!At?(Cc(e,t,r),al(e,t,r)):(Ye&&x&&sc(t),t.flags|=1,Kt(e,t,n,r),t.child)}function jm(e,t,a,n,r){if(e===null){var s=a.type;return typeof s=="function"&&!nc(s)&&s.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=s,Nm(e,t,s,n,r)):(e=Ti(a.type,null,n,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Fc(e,r)){var f=s.memoizedProps;if(a=a.compare,a=a!==null?a:zs,a(f,n)&&e.ref===t.ref)return al(e,t,r)}return t.flags|=1,e=Wn(s,n),e.ref=t.ref,e.return=t,t.child=e}function Nm(e,t,a,n,r){if(e!==null){var s=e.memoizedProps;if(zs(s,n)&&e.ref===t.ref)if(At=!1,t.pendingProps=n=s,Fc(e,r))(e.flags&131072)!==0&&(At=!0);else return t.lanes=e.lanes,al(e,t,r)}return Qc(e,t,a,n,r)}function Em(e,t,a,n){var r=n.children,s=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(s=s!==null?s.baseLanes|a:a,e!==null){for(n=t.child=e.child,r=0;n!==null;)r=r|n.lanes|n.childLanes,n=n.sibling;n=r&~s}else n=0,t.child=null;return Am(e,t,s,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Mi(t,s!==null?s.cachePool:null),s!==null?Tf(t,s):Sc(),zf(t);else return n=t.lanes=536870912,Am(e,t,s!==null?s.baseLanes|a:a,a,n)}else s!==null?(Mi(t,s.cachePool),Tf(t,s),Ol(),t.memoizedState=null):(e!==null&&Mi(t,null),Sc(),Ol());return Kt(e,t,r,a),t.child}function Xs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Am(e,t,a,n,r){var s=pc();return s=s===null?null:{parent:Nt._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&Mi(t,null),Sc(),zf(t),e!==null&&Xr(e,t,n,!0),t.childLanes=r,null}function $i(e,t){return t=Wi({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 yr(t,e.child,null,a),e=$i(t,t.pendingProps),e.flags|=2,Ma(t),t.memoizedState=null,e}function S2(e,t,a){var n=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ye){if(n.mode==="hidden")return e=$i(t,n),t.lanes=536870912,Xs(null,e);if(jc(t),(e=it)?(e=Bh(e,en),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Cl!==null?{id:_n,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},a=uf(e),a.return=t,t.child=a,Qt=t,it=null)):e=null,e===null)throw zl(t);return t.lanes=536870912,null}return $i(t,n)}var s=e.memoizedState;if(s!==null){var f=s.dehydrated;if(jc(t),r)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(c(558));else if(At||Xr(e,t,a,!1),r=(a&e.childLanes)!==0,At||r){if(n=nt,n!==null&&(f=vt(n,a),f!==0&&f!==s.retryLane))throw s.retryLane=f,ur(e,f),ga(n,e,f),Xc;ro(),t=Cm(e,t,a)}else e=s.treeContext,it=an(f.nextSibling),Qt=t,Ye=!0,Tl=null,en=!1,e!==null&&mf(t,e),t=$i(t,n),t.flags|=4096;return t}return e=Wn(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ji(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(c(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Qc(e,t,a,n,r){return hr(t),a=Ec(e,t,a,n,void 0,r),n=Ac(),e!==null&&!At?(Cc(e,t,r),al(e,t,r)):(Ye&&n&&sc(t),t.flags|=1,Kt(e,t,a,r),t.child)}function Tm(e,t,a,n,r,s){return hr(t),t.updateQueue=null,a=Rf(t,n,a,r),_f(e),n=Ac(),e!==null&&!At?(Cc(e,t,s),al(e,t,s)):(Ye&&n&&sc(t),t.flags|=1,Kt(e,t,a,s),t.child)}function zm(e,t,a,n,r){if(hr(t),t.stateNode===null){var s=qr,f=a.contextType;typeof f=="object"&&f!==null&&(s=Zt(f)),s=new a(n,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Gc,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=n,s.state=t.memoizedState,s.refs={},vc(t),f=a.contextType,s.context=typeof f=="object"&&f!==null?Zt(f):qr,s.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(Yc(t,a,f,n),s.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(f=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),f!==s.state&&Gc.enqueueReplaceState(s,s.state,null),Bs(t,n,s,r),Hs(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){s=t.stateNode;var x=t.memoizedProps,N=br(a,x);s.props=N;var D=s.context,B=a.contextType;f=qr,typeof B=="object"&&B!==null&&(f=Zt(B));var X=a.getDerivedStateFromProps;B=typeof X=="function"||typeof s.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,B||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(x||D!==f)&&pm(t,s,n,f),Rl=!1;var U=t.memoizedState;s.state=U,Bs(t,n,s,r),Hs(),D=t.memoizedState,x||U!==D||Rl?(typeof X=="function"&&(Yc(t,a,X,n),D=t.memoizedState),(N=Rl||hm(t,a,N,n,U,D,f))?(B||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=D),s.props=n,s.state=D,s.context=f,n=N):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,yc(e,t),f=t.memoizedProps,B=br(a,f),s.props=B,X=t.pendingProps,U=s.context,D=a.contextType,N=qr,typeof D=="object"&&D!==null&&(N=Zt(D)),x=a.getDerivedStateFromProps,(D=typeof x=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(f!==X||U!==N)&&pm(t,s,n,N),Rl=!1,U=t.memoizedState,s.state=U,Bs(t,n,s,r),Hs();var H=t.memoizedState;f!==X||U!==H||Rl||e!==null&&e.dependencies!==null&&_i(e.dependencies)?(typeof x=="function"&&(Yc(t,a,x,n),H=t.memoizedState),(B=Rl||hm(t,a,B,n,U,H,N)||e!==null&&e.dependencies!==null&&_i(e.dependencies))?(D||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,H,N),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,H,N)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=H),s.props=n,s.state=H,s.context=N,n=B):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),n=!1)}return s=n,Ji(e,t),n=(t.flags&128)!==0,s||n?(s=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&n?(t.child=yr(t,e.child,null,r),t.child=yr(t,null,a,r)):Kt(e,t,a,r),t.memoizedState=s.state,e=t.child):e=al(e,t,r),e}function _m(e,t,a,n){return fr(),t.flags|=256,Kt(e,t,a,n),t.child}var Zc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Kc(e){return{baseLanes:e,cachePool:xf()}}function $c(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Da),e}function Rm(e,t,a){var n=t.pendingProps,r=!1,s=(t.flags&128)!==0,f;if((f=s)||(f=e!==null&&e.memoizedState===null?!1:(bt.current&2)!==0),f&&(r=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ye){if(r?Dl(t):Ol(),(e=it)?(e=Bh(e,en),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Cl!==null?{id:_n,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},a=uf(e),a.return=t,t.child=a,Qt=t,it=null)):e=null,e===null)throw zl(t);return _u(e)?t.lanes=32:t.lanes=536870912,null}var x=n.children;return n=n.fallback,r?(Ol(),r=t.mode,x=Wi({mode:"hidden",children:x},r),n=dr(n,r,a,null),x.return=t,n.return=t,x.sibling=n,t.child=x,n=t.child,n.memoizedState=Kc(a),n.childLanes=$c(e,f,a),t.memoizedState=Zc,Xs(null,n)):(Dl(t),Jc(t,x))}var N=e.memoizedState;if(N!==null&&(x=N.dehydrated,x!==null)){if(s)t.flags&256?(Dl(t),t.flags&=-257,t=Wc(e,t,a)):t.memoizedState!==null?(Ol(),t.child=e.child,t.flags|=128,t=null):(Ol(),x=n.fallback,r=t.mode,n=Wi({mode:"visible",children:n.children},r),x=dr(x,r,a,null),x.flags|=2,n.return=t,x.return=t,n.sibling=x,t.child=n,yr(t,e.child,null,a),n=t.child,n.memoizedState=Kc(a),n.childLanes=$c(e,f,a),t.memoizedState=Zc,t=Xs(null,n));else if(Dl(t),_u(x)){if(f=x.nextSibling&&x.nextSibling.dataset,f)var D=f.dgst;f=D,n=Error(c(419)),n.stack="",n.digest=f,Ms({value:n,source:null,stack:null}),t=Wc(e,t,a)}else if(At||Xr(e,t,a,!1),f=(a&e.childLanes)!==0,At||f){if(f=nt,f!==null&&(n=vt(f,a),n!==0&&n!==N.retryLane))throw N.retryLane=n,ur(e,n),ga(f,e,n),Xc;zu(x)||ro(),t=Wc(e,t,a)}else zu(x)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,it=an(x.nextSibling),Qt=t,Ye=!0,Tl=null,en=!1,e!==null&&mf(t,e),t=Jc(t,n.children),t.flags|=4096);return t}return r?(Ol(),x=n.fallback,r=t.mode,N=e.child,D=N.sibling,n=Wn(N,{mode:"hidden",children:n.children}),n.subtreeFlags=N.subtreeFlags&65011712,D!==null?x=Wn(D,x):(x=dr(x,r,a,null),x.flags|=2),x.return=t,n.return=t,n.sibling=x,t.child=n,Xs(null,n),n=t.child,x=e.child.memoizedState,x===null?x=Kc(a):(r=x.cachePool,r!==null?(N=Nt._currentValue,r=r.parent!==N?{parent:N,pool:N}:r):r=xf(),x={baseLanes:x.baseLanes|a,cachePool:r}),n.memoizedState=x,n.childLanes=$c(e,f,a),t.memoizedState=Zc,Xs(e.child,n)):(Dl(t),a=e.child,e=a.sibling,a=Wn(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=a,t.memoizedState=null,a)}function Jc(e,t){return t=Wi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Wi(e,t){return e=_a(22,e,null,t),e.lanes=0,e}function Wc(e,t,a){return yr(t,e.child,null,a),e=Jc(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),dc(e.return,t,a)}function Ic(e,t,a,n,r,s){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:r,treeForkCount:s}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=n,f.tail=a,f.tailMode=r,f.treeForkCount=s)}function km(e,t,a){var n=t.pendingProps,r=n.revealOrder,s=n.tail;n=n.children;var f=bt.current,x=(f&2)!==0;if(x?(f=f&1|2,t.flags|=128):f&=1,V(bt,f),Kt(e,t,n,a),n=Ye?Rs:0,!x&&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(r){case"forwards":for(a=t.child,r=null;a!==null;)e=a.alternate,e!==null&&Hi(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),Ic(t,!1,r,a,s,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Hi(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}Ic(t,!0,a,null,s,n);break;case"together":Ic(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function al(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Hl|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Xr(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,a=Wn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Wn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Fc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&_i(e)))}function w2(e,t,a){switch(t.tag){case 3:we(t,t.stateNode.containerInfo),_l(t,Nt,e.memoizedState.cache),fr();break;case 27:case 5:ea(t);break;case 4:we(t,t.stateNode.containerInfo);break;case 10:_l(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,jc(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Dl(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Rm(e,t,a):(Dl(t),e=al(e,t,a),e!==null?e.sibling:null);Dl(t);break;case 19:var r=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(Xr(e,t,a,!1),n=(a&t.childLanes)!==0),r){if(n)return km(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),V(bt,bt.current),n)break;return null;case 22:return t.lanes=0,Em(e,t,a,t.pendingProps);case 24:_l(t,Nt,e.memoizedState.cache)}return al(e,t,a)}function Dm(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)At=!0;else{if(!Fc(e,a)&&(t.flags&128)===0)return At=!1,w2(e,t,a);At=(e.flags&131072)!==0}else At=!1,Ye&&(t.flags&1048576)!==0&&ff(t,Rs,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=gr(t.elementType),t.type=e,typeof e=="function")nc(e)?(n=br(e,n),t.tag=1,t=zm(null,t,e,n,a)):(t.tag=0,t=Qc(null,t,e,n,a));else{if(e!=null){var r=e.$$typeof;if(r===ee){t.tag=11,t=wm(null,t,e,n,a);break e}else if(r===Z){t.tag=14,t=jm(null,t,e,n,a);break e}}throw t=ne(e)||e,Error(c(306,t,""))}}return t;case 0:return Qc(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,r=br(n,t.pendingProps),zm(e,t,n,r,a);case 3:e:{if(we(t,t.stateNode.containerInfo),e===null)throw Error(c(387));n=t.pendingProps;var s=t.memoizedState;r=s.element,yc(e,t),Bs(t,n,null,a);var f=t.memoizedState;if(n=f.cache,_l(t,Nt,n),n!==s.cache&&fc(t,[Nt],a,!0),Hs(),n=f.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=_m(e,t,n,a);break e}else if(n!==r){r=Ia(Error(c(424)),t),Ms(r),t=_m(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(it=an(e.firstChild),Qt=t,Ye=!0,Tl=null,en=!0,a=Ef(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(fr(),n===r){t=al(e,t,a);break e}Kt(e,t,n,a)}t=t.child}return t;case 26:return Ji(e,t),e===null?(a=Qh(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ye||(a=t.type,e=t.pendingProps,n=mo(le.current).createElement(a),n[ct]=t,n[jt]=e,$t(n,a,e),Fe(n),t.stateNode=n):t.memoizedState=Qh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ea(t),e===null&&Ye&&(n=t.stateNode=Gh(t.type,t.pendingProps,le.current),Qt=t,en=!0,r=it,Vl(t.type)?(Ru=r,it=an(n.firstChild)):it=r),Kt(e,t,t.pendingProps.children,a),Ji(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ye&&((r=n=it)&&(n=F2(n,t.type,t.pendingProps,en),n!==null?(t.stateNode=n,Qt=t,it=an(n.firstChild),en=!1,r=!0):r=!1),r||zl(t)),ea(t),r=t.type,s=t.pendingProps,f=e!==null?e.memoizedProps:null,n=s.children,Au(r,s)?n=null:f!==null&&Au(r,f)&&(t.flags|=32),t.memoizedState!==null&&(r=Ec(e,t,m2,null,null,a),ri._currentValue=r),Ji(e,t),Kt(e,t,n,a),t.child;case 6:return e===null&&Ye&&((e=a=it)&&(a=P2(a,t.pendingProps,en),a!==null?(t.stateNode=a,Qt=t,it=null,e=!0):e=!1),e||zl(t)),null;case 13:return Rm(e,t,a);case 4:return we(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=yr(t,null,n,a):Kt(e,t,n,a),t.child;case 11:return wm(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,_l(t,t.type,n.value),Kt(e,t,n.children,a),t.child;case 9:return r=t.type._context,n=t.pendingProps.children,hr(t),r=Zt(r),n=n(r),t.flags|=1,Kt(e,t,n,a),t.child;case 14:return jm(e,t,t.type,t.pendingProps,a);case 15:return Nm(e,t,t.type,t.pendingProps,a);case 19:return km(e,t,a);case 31:return S2(e,t,a);case 22:return Em(e,t,a,t.pendingProps);case 24:return hr(t),n=Zt(Nt),e===null?(r=pc(),r===null&&(r=nt,s=mc(),r.pooledCache=s,s.refCount++,s!==null&&(r.pooledCacheLanes|=a),r=s),t.memoizedState={parent:n,cache:r},vc(t),_l(t,Nt,r)):((e.lanes&a)!==0&&(yc(e,t),Bs(t,null,null,a),Hs()),r=e.memoizedState,s=t.memoizedState,r.parent!==n?(r={parent:n,cache:n},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),_l(t,Nt,n)):(n=s.cache,_l(t,Nt,n),n!==r.cache&&fc(t,[Nt],a,!0))),Kt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function nl(e){e.flags|=4}function Pc(e,t,a,n,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(ih())e.flags|=8192;else throw vr=Di,gc}else e.flags&=-16777217}function Om(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Wh(t))if(ih())e.flags|=8192;else throw vr=Di,gc}function Ii(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Dt():536870912,e.lanes|=t,as|=t)}function Qs(e,t){if(!Ye)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 ot(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags&65011712,n|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags,n|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function j2(e,t,a){var n=t.pendingProps;switch(ic(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(t),null;case 1:return ot(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Pn(Nt),ve(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Vr(t)?nl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,cc())),ot(t),null;case 26:var r=t.type,s=t.memoizedState;return e===null?(nl(t),s!==null?(ot(t),Om(t,s)):(ot(t),Pc(t,r,null,n,a))):s?s!==e.memoizedState?(nl(t),ot(t),Om(t,s)):(ot(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&nl(t),ot(t),Pc(t,r,e,n,a)),null;case 27:if(Wt(t),a=le.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&nl(t);else{if(!n){if(t.stateNode===null)throw Error(c(166));return ot(t),null}e=P.current,Vr(t)?hf(t):(e=Gh(r,n,a),t.stateNode=e,nl(t))}return ot(t),null;case 5:if(Wt(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&nl(t);else{if(!n){if(t.stateNode===null)throw Error(c(166));return ot(t),null}if(s=P.current,Vr(t))hf(t);else{var f=mo(le.current);switch(s){case 1:s=f.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:s=f.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":s=f.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":s=f.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":s=f.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof n.is=="string"?f.createElement("select",{is:n.is}):f.createElement("select"),n.multiple?s.multiple=!0:n.size&&(s.size=n.size);break;default:s=typeof n.is=="string"?f.createElement(r,{is:n.is}):f.createElement(r)}}s[ct]=t,s[jt]=n;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)s.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=s;e:switch($t(s,r,n),r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&nl(t)}}return ot(t),Pc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&nl(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(c(166));if(e=le.current,Vr(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,r=Qt,r!==null)switch(r.tag){case 27:case 5:n=r.memoizedProps}e[ct]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||Rh(e.nodeValue,a)),e||zl(t,!0)}else e=mo(e).createTextNode(n),e[ct]=t,t.stateNode=e}return ot(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Vr(t),a!==null){if(e===null){if(!n)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[ct]=t}else fr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ot(t),e=!1}else a=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Ma(t),t):(Ma(t),null);if((t.flags&128)!==0)throw Error(c(558))}return ot(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Vr(t),n!==null&&n.dehydrated!==null){if(e===null){if(!r)throw Error(c(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(c(317));r[ct]=t}else fr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ot(t),r=!1}else r=cc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Ma(t),t):(Ma(t),null)}return Ma(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,r=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(r=n.alternate.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==r&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ii(t,t.updateQueue),ot(t),null);case 4:return ve(),e===null&&Su(t.stateNode.containerInfo),ot(t),null;case 10:return Pn(t.type),ot(t),null;case 19:if(q(bt),n=t.memoizedState,n===null)return ot(t),null;if(r=(t.flags&128)!==0,s=n.rendering,s===null)if(r)Qs(n,!1);else{if(ht!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Hi(e),s!==null){for(t.flags|=128,Qs(n,!1),e=s.updateQueue,t.updateQueue=e,Ii(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)cf(a,e),a=a.sibling;return V(bt,bt.current&1|2),Ye&&In(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Xt()>ao&&(t.flags|=128,r=!0,Qs(n,!1),t.lanes=4194304)}else{if(!r)if(e=Hi(s),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Ii(t,e),Qs(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!Ye)return ot(t),null}else 2*Xt()-n.renderingStartTime>ao&&a!==536870912&&(t.flags|=128,r=!0,Qs(n,!1),t.lanes=4194304);n.isBackwards?(s.sibling=t.child,t.child=s):(e=n.last,e!==null?e.sibling=s:t.child=s,n.last=s)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=Xt(),e.sibling=null,a=bt.current,V(bt,r?a&1|2:a&1),Ye&&In(t,n.treeForkCount),e):(ot(t),null);case 22:case 23:return Ma(t),wc(),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&&(ot(t),t.subtreeFlags&6&&(t.flags|=8192)):ot(t),a=t.updateQueue,a!==null&&Ii(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&&q(pr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Pn(Nt),ot(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function N2(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pn(Nt),ve(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Wt(t),null;case 31:if(t.memoizedState!==null){if(Ma(t),t.alternate===null)throw Error(c(340));fr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ma(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));fr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(bt),null;case 4:return ve(),null;case 10:return Pn(t.type),null;case 22:case 23:return Ma(t),wc(),e!==null&&q(pr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Pn(Nt),null;case 25:return null;default:return null}}function Um(e,t){switch(ic(t),t.tag){case 3:Pn(Nt),ve();break;case 26:case 27:case 5:Wt(t);break;case 4:ve();break;case 31:t.memoizedState!==null&&Ma(t);break;case 13:Ma(t);break;case 19:q(bt);break;case 10:Pn(t.type);break;case 22:case 23:Ma(t),wc(),e!==null&&q(pr);break;case 24:Pn(Nt)}}function Zs(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var r=n.next;a=r;do{if((a.tag&e)===e){n=void 0;var s=a.create,f=a.inst;n=s(),f.destroy=n}a=a.next}while(a!==r)}}catch(x){Ie(t,t.return,x)}}function Ul(e,t,a){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var s=r.next;n=s;do{if((n.tag&e)===e){var f=n.inst,x=f.destroy;if(x!==void 0){f.destroy=void 0,r=t;var N=a,D=x;try{D()}catch(B){Ie(r,N,B)}}}n=n.next}while(n!==s)}}catch(B){Ie(t,t.return,B)}}function Lm(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Cf(t,a)}catch(n){Ie(e,e.return,n)}}}function Hm(e,t,a){a.props=br(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Ie(e,t,n)}}function Ks(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(r){Ie(e,t,r)}}function Mn(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(r){Ie(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){Ie(e,t,r)}else a.current=null}function Bm(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(r){Ie(e,e.return,r)}}function eu(e,t,a){try{var n=e.stateNode;Z2(n,e.type,a,t),n[jt]=t}catch(r){Ie(e,e.return,r)}}function qm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Vl(e.type)||e.tag===4}function tu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qm(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&&Vl(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 au(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=ja));else if(n!==4&&(n===27&&Vl(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(au(e,t,a),e=e.sibling;e!==null;)au(e,t,a),e=e.sibling}function Fi(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&&Vl(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Fi(e,t,a),e=e.sibling;e!==null;)Fi(e,t,a),e=e.sibling}function Ym(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);$t(t,n,a),t[ct]=e,t[jt]=a}catch(s){Ie(e,e.return,s)}}var ll=!1,Ct=!1,nu=!1,Gm=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function E2(e,t){if(e=e.containerInfo,Nu=bo,e=Pd(e),Wo(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 r=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break e}var f=0,x=-1,N=-1,D=0,B=0,X=e,U=null;t:for(;;){for(var H;X!==a||r!==0&&X.nodeType!==3||(x=f+r),X!==s||n!==0&&X.nodeType!==3||(N=f+n),X.nodeType===3&&(f+=X.nodeValue.length),(H=X.firstChild)!==null;)U=X,X=H;for(;;){if(X===e)break t;if(U===a&&++D===r&&(x=f),U===s&&++B===n&&(N=f),(H=X.nextSibling)!==null)break;X=U,U=X.parentNode}X=H}a=x===-1||N===-1?null:{start:x,end:N}}else a=null}a=a||{start:0,end:0}}else a=null;for(Eu={focusedElem:e,selectionRange:a},bo=!1,Gt=t;Gt!==null;)if(t=Gt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Gt=e;else for(;Gt!==null;){switch(t=Gt,s=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++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,a=t,r=s.memoizedProps,s=s.memoizedState,n=a.stateNode;try{var oe=br(a.type,r);e=n.getSnapshotBeforeUpdate(oe,s),n.__reactInternalSnapshotBeforeUpdate=e}catch(he){Ie(a,a.return,he)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Tu(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Tu(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(c(163))}if(e=t.sibling,e!==null){e.return=t.return,Gt=e;break}Gt=t.return}}function Vm(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:sl(e,a),n&4&&Zs(5,a);break;case 1:if(sl(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(f){Ie(a,a.return,f)}else{var r=br(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Ie(a,a.return,f)}}n&64&&Lm(a),n&512&&Ks(a,a.return);break;case 3:if(sl(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{Cf(e,t)}catch(f){Ie(a,a.return,f)}}break;case 27:t===null&&n&4&&Ym(a);case 26:case 5:sl(e,a),t===null&&n&4&&Bm(a),n&512&&Ks(a,a.return);break;case 12:sl(e,a);break;case 31:sl(e,a),n&4&&Zm(e,a);break;case 13:sl(e,a),n&4&&Km(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=D2.bind(null,a),ev(e,a))));break;case 22:if(n=a.memoizedState!==null||ll,!n){t=t!==null&&t.memoizedState!==null||Ct,r=ll;var s=Ct;ll=n,(Ct=t)&&!s?il(e,a,(a.subtreeFlags&8772)!==0):sl(e,a),ll=r,Ct=s}break;case 30:break;default:sl(e,a)}}function Xm(e){var t=e.alternate;t!==null&&(e.alternate=null,Xm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ka(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 ut=null,fa=!1;function rl(e,t,a){for(a=a.child;a!==null;)Qm(e,t,a),a=a.sibling}function Qm(e,t,a){if(Yt&&typeof Yt.onCommitFiberUnmount=="function")try{Yt.onCommitFiberUnmount(Ga,a)}catch{}switch(a.tag){case 26:Ct||Mn(a,t),rl(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ct||Mn(a,t);var n=ut,r=fa;Vl(a.type)&&(ut=a.stateNode,fa=!1),rl(e,t,a),ai(a.stateNode),ut=n,fa=r;break;case 5:Ct||Mn(a,t);case 6:if(n=ut,r=fa,ut=null,rl(e,t,a),ut=n,fa=r,ut!==null)if(fa)try{(ut.nodeType===9?ut.body:ut.nodeName==="HTML"?ut.ownerDocument.body:ut).removeChild(a.stateNode)}catch(s){Ie(a,t,s)}else try{ut.removeChild(a.stateNode)}catch(s){Ie(a,t,s)}break;case 18:ut!==null&&(fa?(e=ut,Lh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),us(e)):Lh(ut,a.stateNode));break;case 4:n=ut,r=fa,ut=a.stateNode.containerInfo,fa=!0,rl(e,t,a),ut=n,fa=r;break;case 0:case 11:case 14:case 15:Ul(2,a,t),Ct||Ul(4,a,t),rl(e,t,a);break;case 1:Ct||(Mn(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&Hm(a,t,n)),rl(e,t,a);break;case 21:rl(e,t,a);break;case 22:Ct=(n=Ct)||a.memoizedState!==null,rl(e,t,a),Ct=n;break;default:rl(e,t,a)}}function Zm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{us(e)}catch(a){Ie(t,t.return,a)}}}function Km(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{us(e)}catch(a){Ie(t,t.return,a)}}function A2(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Gm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Gm),t;default:throw Error(c(435,e.tag))}}function Pi(e,t){var a=A2(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var r=O2.bind(null,e,n);n.then(r,r)}})}function ma(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var r=a[n],s=e,f=t,x=f;e:for(;x!==null;){switch(x.tag){case 27:if(Vl(x.type)){ut=x.stateNode,fa=!1;break e}break;case 5:ut=x.stateNode,fa=!1;break e;case 3:case 4:ut=x.stateNode.containerInfo,fa=!0;break e}x=x.return}if(ut===null)throw Error(c(160));Qm(s,f,r),ut=null,fa=!1,s=r.alternate,s!==null&&(s.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)$m(t,e),t=t.sibling}var pn=null;function $m(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ma(t,e),ha(e),n&4&&(Ul(3,e,e.return),Zs(3,e),Ul(5,e,e.return));break;case 1:ma(t,e),ha(e),n&512&&(Ct||a===null||Mn(a,a.return)),n&64&&ll&&(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 r=pn;if(ma(t,e),ha(e),n&512&&(Ct||a===null||Mn(a,a.return)),n&4){var s=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,r=r.ownerDocument||r;t:switch(n){case"title":s=r.getElementsByTagName("title")[0],(!s||s[Nn]||s[ct]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=r.createElement(n),r.head.insertBefore(s,r.querySelector("head > title"))),$t(s,n,a),s[ct]=e,Fe(s),n=s;break e;case"link":var f=$h("link","href",r).get(n+(a.href||""));if(f){for(var x=0;x<f.length;x++)if(s=f[x],s.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&s.getAttribute("rel")===(a.rel==null?null:a.rel)&&s.getAttribute("title")===(a.title==null?null:a.title)&&s.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){f.splice(x,1);break t}}s=r.createElement(n),$t(s,n,a),r.head.appendChild(s);break;case"meta":if(f=$h("meta","content",r).get(n+(a.content||""))){for(x=0;x<f.length;x++)if(s=f[x],s.getAttribute("content")===(a.content==null?null:""+a.content)&&s.getAttribute("name")===(a.name==null?null:a.name)&&s.getAttribute("property")===(a.property==null?null:a.property)&&s.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&s.getAttribute("charset")===(a.charSet==null?null:a.charSet)){f.splice(x,1);break t}}s=r.createElement(n),$t(s,n,a),r.head.appendChild(s);break;default:throw Error(c(468,n))}s[ct]=e,Fe(s),n=s}e.stateNode=n}else Jh(r,e.type,e.stateNode);else e.stateNode=Kh(r,n,e.memoizedProps);else s!==n?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,n===null?Jh(r,e.type,e.stateNode):Kh(r,n,e.memoizedProps)):n===null&&e.stateNode!==null&&eu(e,e.memoizedProps,a.memoizedProps)}break;case 27:ma(t,e),ha(e),n&512&&(Ct||a===null||Mn(a,a.return)),a!==null&&n&4&&eu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ma(t,e),ha(e),n&512&&(Ct||a===null||Mn(a,a.return)),e.flags&32){r=e.stateNode;try{Me(r,"")}catch(oe){Ie(e,e.return,oe)}}n&4&&e.stateNode!=null&&(r=e.memoizedProps,eu(e,r,a!==null?a.memoizedProps:r)),n&1024&&(nu=!0);break;case 6:if(ma(t,e),ha(e),n&4){if(e.stateNode===null)throw Error(c(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(oe){Ie(e,e.return,oe)}}break;case 3:if(go=null,r=pn,pn=ho(t.containerInfo),ma(t,e),pn=r,ha(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{us(t.containerInfo)}catch(oe){Ie(e,e.return,oe)}nu&&(nu=!1,Jm(e));break;case 4:n=pn,pn=ho(e.stateNode.containerInfo),ma(t,e),ha(e),pn=n;break;case 12:ma(t,e),ha(e);break;case 31:ma(t,e),ha(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Pi(e,n)));break;case 13:ma(t,e),ha(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(to=Xt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Pi(e,n)));break;case 22:r=e.memoizedState!==null;var N=a!==null&&a.memoizedState!==null,D=ll,B=Ct;if(ll=D||r,Ct=B||N,ma(t,e),Ct=B,ll=D,ha(e),n&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(a===null||N||ll||Ct||Sr(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){N=a=t;try{if(s=N.stateNode,r)f=s.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{x=N.stateNode;var X=N.memoizedProps.style,U=X!=null&&X.hasOwnProperty("display")?X.display:null;x.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(oe){Ie(N,N.return,oe)}}}else if(t.tag===6){if(a===null){N=t;try{N.stateNode.nodeValue=r?"":N.memoizedProps}catch(oe){Ie(N,N.return,oe)}}}else if(t.tag===18){if(a===null){N=t;try{var H=N.stateNode;r?Hh(H,!0):Hh(N.stateNode,!1)}catch(oe){Ie(N,N.return,oe)}}}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,Pi(e,a))));break;case 19:ma(t,e),ha(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Pi(e,n)));break;case 30:break;case 21:break;default:ma(t,e),ha(e)}}function ha(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(qm(n)){a=n;break}n=n.return}if(a==null)throw Error(c(160));switch(a.tag){case 27:var r=a.stateNode,s=tu(e);Fi(e,s,r);break;case 5:var f=a.stateNode;a.flags&32&&(Me(f,""),a.flags&=-33);var x=tu(e);Fi(e,x,f);break;case 3:case 4:var N=a.stateNode.containerInfo,D=tu(e);au(e,D,N);break;default:throw Error(c(161))}}catch(B){Ie(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Jm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function sl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Vm(e,t.alternate,t),t=t.sibling}function Sr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ul(4,t,t.return),Sr(t);break;case 1:Mn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Hm(t,t.return,a),Sr(t);break;case 27:ai(t.stateNode);case 26:case 5:Mn(t,t.return),Sr(t);break;case 22:t.memoizedState===null&&Sr(t);break;case 30:Sr(t);break;default:Sr(t)}e=e.sibling}}function il(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,r=e,s=t,f=s.flags;switch(s.tag){case 0:case 11:case 15:il(r,s,a),Zs(4,s);break;case 1:if(il(r,s,a),n=s,r=n.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(D){Ie(n,n.return,D)}if(n=s,r=n.updateQueue,r!==null){var x=n.stateNode;try{var N=r.shared.hiddenCallbacks;if(N!==null)for(r.shared.hiddenCallbacks=null,r=0;r<N.length;r++)Af(N[r],x)}catch(D){Ie(n,n.return,D)}}a&&f&64&&Lm(s),Ks(s,s.return);break;case 27:Ym(s);case 26:case 5:il(r,s,a),a&&n===null&&f&4&&Bm(s),Ks(s,s.return);break;case 12:il(r,s,a);break;case 31:il(r,s,a),a&&f&4&&Zm(r,s);break;case 13:il(r,s,a),a&&f&4&&Km(r,s);break;case 22:s.memoizedState===null&&il(r,s,a),Ks(s,s.return);break;case 30:break;default:il(r,s,a)}t=t.sibling}}function lu(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&&ks(a))}function ru(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ks(e))}function gn(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Wm(e,t,a,n),t=t.sibling}function Wm(e,t,a,n){var r=t.flags;switch(t.tag){case 0:case 11:case 15:gn(e,t,a,n),r&2048&&Zs(9,t);break;case 1:gn(e,t,a,n);break;case 3:gn(e,t,a,n),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ks(e)));break;case 12:if(r&2048){gn(e,t,a,n),e=t.stateNode;try{var s=t.memoizedProps,f=s.id,x=s.onPostCommit;typeof x=="function"&&x(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){Ie(t,t.return,N)}}else gn(e,t,a,n);break;case 31:gn(e,t,a,n);break;case 13:gn(e,t,a,n);break;case 23:break;case 22:s=t.stateNode,f=t.alternate,t.memoizedState!==null?s._visibility&2?gn(e,t,a,n):$s(e,t):s._visibility&2?gn(e,t,a,n):(s._visibility|=2,Pr(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),r&2048&&lu(f,t);break;case 24:gn(e,t,a,n),r&2048&&ru(t.alternate,t);break;default:gn(e,t,a,n)}}function Pr(e,t,a,n,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,f=t,x=a,N=n,D=f.flags;switch(f.tag){case 0:case 11:case 15:Pr(s,f,x,N,r),Zs(8,f);break;case 23:break;case 22:var B=f.stateNode;f.memoizedState!==null?B._visibility&2?Pr(s,f,x,N,r):$s(s,f):(B._visibility|=2,Pr(s,f,x,N,r)),r&&D&2048&&lu(f.alternate,f);break;case 24:Pr(s,f,x,N,r),r&&D&2048&&ru(f.alternate,f);break;default:Pr(s,f,x,N,r)}t=t.sibling}}function $s(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,r=n.flags;switch(n.tag){case 22:$s(a,n),r&2048&&lu(n.alternate,n);break;case 24:$s(a,n),r&2048&&ru(n.alternate,n);break;default:$s(a,n)}t=t.sibling}}var Js=8192;function es(e,t,a){if(e.subtreeFlags&Js)for(e=e.child;e!==null;)Im(e,t,a),e=e.sibling}function Im(e,t,a){switch(e.tag){case 26:es(e,t,a),e.flags&Js&&e.memoizedState!==null&&fv(a,pn,e.memoizedState,e.memoizedProps);break;case 5:es(e,t,a);break;case 3:case 4:var n=pn;pn=ho(e.stateNode.containerInfo),es(e,t,a),pn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Js,Js=16777216,es(e,t,a),Js=n):es(e,t,a));break;default:es(e,t,a)}}function Fm(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 Ws(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];Gt=n,eh(n,e)}Fm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pm(e),e=e.sibling}function Pm(e){switch(e.tag){case 0:case 11:case 15:Ws(e),e.flags&2048&&Ul(9,e,e.return);break;case 3:Ws(e);break;case 12:Ws(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,eo(e)):Ws(e);break;default:Ws(e)}}function eo(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];Gt=n,eh(n,e)}Fm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ul(8,t,t.return),eo(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,eo(t));break;default:eo(t)}e=e.sibling}}function eh(e,t){for(;Gt!==null;){var a=Gt;switch(a.tag){case 0:case 11:case 15:Ul(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:ks(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,Gt=n;else e:for(a=e;Gt!==null;){n=Gt;var r=n.sibling,s=n.return;if(Xm(n),n===a){Gt=null;break e}if(r!==null){r.return=s,Gt=r;break e}Gt=s}}}var C2={getCacheForType:function(e){var t=Zt(Nt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Zt(Nt).controller.signal}},T2=typeof WeakMap=="function"?WeakMap:Map,$e=0,nt=null,De=null,Le=0,We=0,ka=null,Ll=!1,ts=!1,su=!1,ol=0,ht=0,Hl=0,wr=0,iu=0,Da=0,as=0,Is=null,pa=null,ou=!1,to=0,th=0,ao=1/0,no=null,Bl=null,Ht=0,ql=null,ns=null,cl=0,cu=0,uu=null,ah=null,Fs=0,du=null;function Oa(){return($e&2)!==0&&Le!==0?Le&-Le:M.T!==null?vu():Xn()}function nh(){if(Da===0)if((Le&536870912)===0||Ye){var e=Xa;Xa<<=1,(Xa&3932160)===0&&(Xa=262144),Da=e}else Da=536870912;return e=Ra.current,e!==null&&(e.flags|=32),Da}function ga(e,t,a){(e===nt&&(We===2||We===9)||e.cancelPendingCommit!==null)&&(ls(e,0),Yl(e,Le,Da,!1)),lt(e,a),(($e&2)===0||e!==nt)&&(e===nt&&(($e&2)===0&&(wr|=a),ht===4&&Yl(e,Le,Da,!1)),kn(e))}function lh(e,t,a){if(($e&6)!==0)throw Error(c(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||at(e,t),r=n?R2(e,t):mu(e,t,!0),s=n;do{if(r===0){ts&&!n&&Yl(e,t,0,!1);break}else{if(a=e.current.alternate,s&&!z2(a)){r=mu(e,t,!1),s=!1;continue}if(r===2){if(s=t,e.errorRecoveryDisabledLanes&s)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var x=e;r=Is;var N=x.current.memoizedState.isDehydrated;if(N&&(ls(x,f).flags|=256),f=mu(x,f,!1),f!==2){if(su&&!N){x.errorRecoveryDisabledLanes|=s,wr|=s,r=4;break e}s=pa,pa=r,s!==null&&(pa===null?pa=s:pa.push.apply(pa,s))}r=f}if(s=!1,r!==2)continue}}if(r===1){ls(e,0),Yl(e,t,0,!0);break}e:{switch(n=e,s=r,s){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:Yl(n,t,Da,!Ll);break e;case 2:pa=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(r=to+300-Xt(),10<r)){if(Yl(n,t,Da,!Ll),ye(n,0,!0)!==0)break e;cl=t,n.timeoutHandle=Oh(rh.bind(null,n,a,pa,no,ou,t,Da,wr,as,Ll,s,"Throttled",-0,0),r);break e}rh(n,a,pa,no,ou,t,Da,wr,as,Ll,s,null,-0,0)}}break}while(!0);kn(e)}function rh(e,t,a,n,r,s,f,x,N,D,B,X,U,H){if(e.timeoutHandle=-1,X=t.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ja},Im(t,s,X);var oe=(s&62914560)===s?to-Xt():(s&4194048)===s?th-Xt():0;if(oe=mv(X,oe),oe!==null){cl=s,e.cancelPendingCommit=oe(mh.bind(null,e,t,s,a,n,r,f,x,N,B,X,null,U,H)),Yl(e,s,f,!D);return}}mh(e,t,s,a,n,r,f,x,N)}function z2(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 r=a[n],s=r.getSnapshot;r=r.value;try{if(!za(s(),r))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 Yl(e,t,a,n){t&=~iu,t&=~wr,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var r=t;0<r;){var s=31-kt(r),f=1<<s;n[s]=-1,r&=~f}a!==0&&Qa(e,a,t)}function lo(){return($e&6)===0?(Ps(0),!1):!0}function fu(){if(De!==null){if(We===0)var e=De.return;else e=De,Fn=mr=null,Tc(e),$r=null,Os=0,e=De;for(;e!==null;)Um(e.alternate,e),e=e.return;De=null}}function ls(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,J2(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),cl=0,fu(),nt=e,De=a=Wn(e.current,null),Le=t,We=0,ka=null,Ll=!1,ts=at(e,t),su=!1,as=Da=iu=wr=Hl=ht=0,pa=Is=null,ou=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-kt(n),s=1<<r;t|=e[r],n&=~s}return ol=t,Ei(),a}function sh(e,t){Te=null,M.H=Vs,t===Kr||t===ki?(t=wf(),We=3):t===gc?(t=wf(),We=4):We=t===Xc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ka=t,De===null&&(ht=1,Ki(e,Ia(t,e.current)))}function ih(){var e=Ra.current;return e===null?!0:(Le&4194048)===Le?tn===null:(Le&62914560)===Le||(Le&536870912)!==0?e===tn:!1}function oh(){var e=M.H;return M.H=Vs,e===null?Vs:e}function ch(){var e=M.A;return M.A=C2,e}function ro(){ht=4,Ll||(Le&4194048)!==Le&&Ra.current!==null||(ts=!0),(Hl&134217727)===0&&(wr&134217727)===0||nt===null||Yl(nt,Le,Da,!1)}function mu(e,t,a){var n=$e;$e|=2;var r=oh(),s=ch();(nt!==e||Le!==t)&&(no=null,ls(e,t)),t=!1;var f=ht;e:do try{if(We!==0&&De!==null){var x=De,N=ka;switch(We){case 8:fu(),f=6;break e;case 3:case 2:case 9:case 6:Ra.current===null&&(t=!0);var D=We;if(We=0,ka=null,rs(e,x,N,D),a&&ts){f=0;break e}break;default:D=We,We=0,ka=null,rs(e,x,N,D)}}_2(),f=ht;break}catch(B){sh(e,B)}while(!0);return t&&e.shellSuspendCounter++,Fn=mr=null,$e=n,M.H=r,M.A=s,De===null&&(nt=null,Le=0,Ei()),f}function _2(){for(;De!==null;)uh(De)}function R2(e,t){var a=$e;$e|=2;var n=oh(),r=ch();nt!==e||Le!==t?(no=null,ao=Xt()+500,ls(e,t)):ts=at(e,t);e:do try{if(We!==0&&De!==null){t=De;var s=ka;t:switch(We){case 1:We=0,ka=null,rs(e,t,s,1);break;case 2:case 9:if(bf(s)){We=0,ka=null,dh(t);break}t=function(){We!==2&&We!==9||nt!==e||(We=7),kn(e)},s.then(t,t);break e;case 3:We=7;break e;case 4:We=5;break e;case 7:bf(s)?(We=0,ka=null,dh(t)):(We=0,ka=null,rs(e,t,s,7));break;case 5:var f=null;switch(De.tag){case 26:f=De.memoizedState;case 5:case 27:var x=De;if(f?Wh(f):x.stateNode.complete){We=0,ka=null;var N=x.sibling;if(N!==null)De=N;else{var D=x.return;D!==null?(De=D,so(D)):De=null}break t}}We=0,ka=null,rs(e,t,s,5);break;case 6:We=0,ka=null,rs(e,t,s,6);break;case 8:fu(),ht=6;break e;default:throw Error(c(462))}}M2();break}catch(B){sh(e,B)}while(!0);return Fn=mr=null,M.H=n,M.A=r,$e=a,De!==null?0:(nt=null,Le=0,Ei(),ht)}function M2(){for(;De!==null&&!Vt();)uh(De)}function uh(e){var t=Dm(e.alternate,e,ol);e.memoizedProps=e.pendingProps,t===null?so(e):De=t}function dh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Tm(a,t,t.pendingProps,t.type,void 0,Le);break;case 11:t=Tm(a,t,t.pendingProps,t.type.render,t.ref,Le);break;case 5:Tc(t);default:Um(a,t),t=De=cf(t,ol),t=Dm(a,t,ol)}e.memoizedProps=e.pendingProps,t===null?so(e):De=t}function rs(e,t,a,n){Fn=mr=null,Tc(t),$r=null,Os=0;var r=t.return;try{if(b2(e,r,t,a,Le)){ht=1,Ki(e,Ia(a,e.current)),De=null;return}}catch(s){if(r!==null)throw De=r,s;ht=1,Ki(e,Ia(a,e.current)),De=null;return}t.flags&32768?(Ye||n===1?e=!0:ts||(Le&536870912)!==0?e=!1:(Ll=e=!0,(n===2||n===9||n===3||n===6)&&(n=Ra.current,n!==null&&n.tag===13&&(n.flags|=16384))),fh(t,e)):so(t)}function so(e){var t=e;do{if((t.flags&32768)!==0){fh(t,Ll);return}e=t.return;var a=j2(t.alternate,t,ol);if(a!==null){De=a;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);ht===0&&(ht=5)}function fh(e,t){do{var a=N2(e.alternate,e);if(a!==null){a.flags&=32767,De=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){De=e;return}De=e=a}while(e!==null);ht=6,De=null}function mh(e,t,a,n,r,s,f,x,N){e.cancelPendingCommit=null;do io();while(Ht!==0);if(($e&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(s=t.lanes|t.childLanes,s|=tc,rt(e,a,s,f,x,N),e===nt&&(De=nt=null,Le=0),ns=t,ql=e,cl=a,cu=s,uu=r,ah=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,U2(Gn,function(){return yh(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=M.T,M.T=null,r=G.p,G.p=2,f=$e,$e|=4;try{E2(e,t,a)}finally{$e=f,G.p=r,M.T=n}}Ht=1,hh(),ph(),gh()}}function hh(){if(Ht===1){Ht=0;var e=ql,t=ns,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null;var n=G.p;G.p=2;var r=$e;$e|=4;try{$m(t,e);var s=Eu,f=Pd(e.containerInfo),x=s.focusedElem,N=s.selectionRange;if(f!==x&&x&&x.ownerDocument&&Fd(x.ownerDocument.documentElement,x)){if(N!==null&&Wo(x)){var D=N.start,B=N.end;if(B===void 0&&(B=D),"selectionStart"in x)x.selectionStart=D,x.selectionEnd=Math.min(B,x.value.length);else{var X=x.ownerDocument||document,U=X&&X.defaultView||window;if(U.getSelection){var H=U.getSelection(),oe=x.textContent.length,he=Math.min(N.start,oe),tt=N.end===void 0?he:Math.min(N.end,oe);!H.extend&&he>tt&&(f=tt,tt=he,he=f);var R=Id(x,he),T=Id(x,tt);if(R&&T&&(H.rangeCount!==1||H.anchorNode!==R.node||H.anchorOffset!==R.offset||H.focusNode!==T.node||H.focusOffset!==T.offset)){var k=X.createRange();k.setStart(R.node,R.offset),H.removeAllRanges(),he>tt?(H.addRange(k),H.extend(T.node,T.offset)):(k.setEnd(T.node,T.offset),H.addRange(k))}}}}for(X=[],H=x;H=H.parentNode;)H.nodeType===1&&X.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<X.length;x++){var Y=X[x];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}bo=!!Nu,Eu=Nu=null}finally{$e=r,G.p=n,M.T=a}}e.current=t,Ht=2}}function ph(){if(Ht===2){Ht=0;var e=ql,t=ns,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=M.T,M.T=null;var n=G.p;G.p=2;var r=$e;$e|=4;try{Vm(e,t.alternate,t)}finally{$e=r,G.p=n,M.T=a}}Ht=3}}function gh(){if(Ht===4||Ht===3){Ht=0,Ba();var e=ql,t=ns,a=cl,n=ah;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ht=5:(Ht=0,ns=ql=null,vh(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Bl=null),It(a),t=t.stateNode,Yt&&typeof Yt.onCommitFiberRoot=="function")try{Yt.onCommitFiberRoot(Ga,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=M.T,r=G.p,G.p=2,M.T=null;try{for(var s=e.onRecoverableError,f=0;f<n.length;f++){var x=n[f];s(x.value,{componentStack:x.stack})}}finally{M.T=t,G.p=r}}(cl&3)!==0&&io(),kn(e),r=e.pendingLanes,(a&261930)!==0&&(r&42)!==0?e===du?Fs++:(Fs=0,du=e):Fs=0,Ps(0)}}function vh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ks(t)))}function io(){return hh(),ph(),gh(),yh()}function yh(){if(Ht!==5)return!1;var e=ql,t=cu;cu=0;var a=It(cl),n=M.T,r=G.p;try{G.p=32>a?32:a,M.T=null,a=uu,uu=null;var s=ql,f=cl;if(Ht=0,ns=ql=null,cl=0,($e&6)!==0)throw Error(c(331));var x=$e;if($e|=4,Pm(s.current),Wm(s,s.current,f,a),$e=x,Ps(0,!1),Yt&&typeof Yt.onPostCommitFiberRoot=="function")try{Yt.onPostCommitFiberRoot(Ga,s)}catch{}return!0}finally{G.p=r,M.T=n,vh(e,t)}}function xh(e,t,a){t=Ia(a,t),t=Vc(e.stateNode,t,2),e=kl(e,t,2),e!==null&&(lt(e,2),kn(e))}function Ie(e,t,a){if(e.tag===3)xh(e,e,a);else for(;t!==null;){if(t.tag===3){xh(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Bl===null||!Bl.has(n))){e=Ia(a,e),a=bm(2),n=kl(t,a,2),n!==null&&(Sm(a,n,t,e),lt(n,2),kn(n));break}}t=t.return}}function hu(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new T2;var r=new Set;n.set(t,r)}else r=n.get(t),r===void 0&&(r=new Set,n.set(t,r));r.has(a)||(su=!0,r.add(a),e=k2.bind(null,e,t,a),t.then(e,e))}function k2(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,nt===e&&(Le&a)===a&&(ht===4||ht===3&&(Le&62914560)===Le&&300>Xt()-to?($e&2)===0&&ls(e,0):iu|=a,as===Le&&(as=0)),kn(e)}function bh(e,t){t===0&&(t=Dt()),e=ur(e,t),e!==null&&(lt(e,t),kn(e))}function D2(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),bh(e,a)}function O2(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(c(314))}n!==null&&n.delete(t),bh(e,a)}function U2(e,t){return Sn(e,t)}var oo=null,ss=null,pu=!1,co=!1,gu=!1,Gl=0;function kn(e){e!==ss&&e.next===null&&(ss===null?oo=ss=e:ss=ss.next=e),co=!0,pu||(pu=!0,H2())}function Ps(e,t){if(!gu&&co){gu=!0;do for(var a=!1,n=oo;n!==null;){if(e!==0){var r=n.pendingLanes;if(r===0)var s=0;else{var f=n.suspendedLanes,x=n.pingedLanes;s=(1<<31-kt(42|e)+1)-1,s&=r&~(f&~x),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,Nh(n,s))}else s=Le,s=ye(n,n===nt?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(s&3)===0||at(n,s)||(a=!0,Nh(n,s));n=n.next}while(a);gu=!1}}function L2(){Sh()}function Sh(){co=pu=!1;var e=0;Gl!==0&&$2()&&(e=Gl);for(var t=Xt(),a=null,n=oo;n!==null;){var r=n.next,s=wh(n,t);s===0?(n.next=null,a===null?oo=r:a.next=r,r===null&&(ss=a)):(a=n,(e!==0||(s&3)!==0)&&(co=!0)),n=r}Ht!==0&&Ht!==5||Ps(e),Gl!==0&&(Gl=0)}function wh(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,r=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var f=31-kt(s),x=1<<f,N=r[f];N===-1?((x&a)===0||(x&n)!==0)&&(r[f]=pt(x,t)):N<=t&&(e.expiredLanes|=x),s&=~x}if(t=nt,a=Le,a=ye(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(We===2||We===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&tr(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||at(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&tr(n),It(a)){case 2:case 8:a=zr;break;case 32:a=Gn;break;case 268435456:a=qa;break;default:a=Gn}return n=jh.bind(null,e),a=Sn(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&tr(n),e.callbackPriority=2,e.callbackNode=null,2}function jh(e,t){if(Ht!==0&&Ht!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(io()&&e.callbackNode!==a)return null;var n=Le;return n=ye(e,e===nt?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(lh(e,n,t),wh(e,Xt()),e.callbackNode!=null&&e.callbackNode===a?jh.bind(null,e):null)}function Nh(e,t){if(io())return null;lh(e,t,!0)}function H2(){W2(function(){($e&6)!==0?Sn(Yn,L2):Sh()})}function vu(){if(Gl===0){var e=Qr;e===0&&(e=Vn,Vn<<=1,(Vn&261888)===0&&(Vn=256)),Gl=e}return Gl}function Eh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:wl(""+e)}function Ah(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 B2(e,t,a,n,r){if(t==="submit"&&a&&a.stateNode===r){var s=Eh((r[jt]||null).action),f=n.submitter;f&&(t=(t=f[jt]||null)?Eh(t.formAction):f.getAttribute("formAction"),t!==null&&(s=t,f=null));var x=new El("action","action",null,n,r);e.push({event:x,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Gl!==0){var N=f?Ah(r,f):new FormData(r);Lc(a,{pending:!0,data:N,method:r.method,action:s},null,N)}}else typeof s=="function"&&(x.preventDefault(),N=f?Ah(r,f):new FormData(r),Lc(a,{pending:!0,data:N,method:r.method,action:s},s,N))},currentTarget:r}]})}}for(var yu=0;yu<ec.length;yu++){var xu=ec[yu],q2=xu.toLowerCase(),Y2=xu[0].toUpperCase()+xu.slice(1);hn(q2,"on"+Y2)}hn(af,"onAnimationEnd"),hn(nf,"onAnimationIteration"),hn(lf,"onAnimationStart"),hn("dblclick","onDoubleClick"),hn("focusin","onFocus"),hn("focusout","onBlur"),hn(n2,"onTransitionRun"),hn(l2,"onTransitionStart"),hn(r2,"onTransitionCancel"),hn(rf,"onTransitionEnd"),Zn("onMouseEnter",["mouseout","mouseover"]),Zn("onMouseLeave",["mouseout","mouseover"]),Zn("onPointerEnter",["pointerout","pointerover"]),Zn("onPointerLeave",["pointerout","pointerover"]),wa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wa("onBeforeInput",["compositionend","keypress","textInput","paste"]),wa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ei="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(" "),G2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ei));function Ch(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],r=n.event;n=n.listeners;e:{var s=void 0;if(t)for(var f=n.length-1;0<=f;f--){var x=n[f],N=x.instance,D=x.currentTarget;if(x=x.listener,N!==s&&r.isPropagationStopped())break e;s=x,r.currentTarget=D;try{s(r)}catch(B){Ni(B)}r.currentTarget=null,s=N}else for(f=0;f<n.length;f++){if(x=n[f],N=x.instance,D=x.currentTarget,x=x.listener,N!==s&&r.isPropagationStopped())break e;s=x,r.currentTarget=D;try{s(r)}catch(B){Ni(B)}r.currentTarget=null,s=N}}}}function Oe(e,t){var a=t[lr];a===void 0&&(a=t[lr]=new Set);var n=e+"__bubble";a.has(n)||(Th(t,e,2,!1),a.add(n))}function bu(e,t,a){var n=0;t&&(n|=4),Th(a,e,n,t)}var uo="_reactListening"+Math.random().toString(36).slice(2);function Su(e){if(!e[uo]){e[uo]=!0,rr.forEach(function(a){a!=="selectionchange"&&(G2.has(a)||bu(a,!1,e),bu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[uo]||(t[uo]=!0,bu("selectionchange",!1,t))}}function Th(e,t,a,n){switch(n0(t)){case 2:var r=gv;break;case 8:r=vv;break;default:r=Uu}a=r.bind(null,t,a,e),r=void 0,!ua||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),n?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function wu(e,t,a,n,r){var s=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var f=n.tag;if(f===3||f===4){var x=n.stateNode.containerInfo;if(x===r)break;if(f===4)for(f=n.return;f!==null;){var N=f.tag;if((N===3||N===4)&&f.stateNode.containerInfo===r)return;f=f.return}for(;x!==null;){if(f=En(x),f===null)return;if(N=f.tag,N===5||N===6||N===26||N===27){n=s=f;continue e}x=x.parentNode}}n=n.return}Ns(function(){var D=s,B=ir(a),X=[];e:{var U=sf.get(e);if(U!==void 0){var H=El,oe=e;switch(e){case"keypress":if(jl(a)===0)break e;case"keydown":case"keyup":H=Og;break;case"focusin":oe="focus",H=Qo;break;case"focusout":oe="blur",H=Qo;break;case"beforeblur":case"afterblur":H=Qo;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":H=zn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=jg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Hg;break;case af:case nf:case lf:H=Ag;break;case rf:H=qg;break;case"scroll":case"scrollend":H=Aa;break;case"wheel":H=Gg;break;case"copy":case"cut":case"paste":H=Tg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Ld;break;case"toggle":case"beforetoggle":H=Xg}var he=(t&4)!==0,tt=!he&&(e==="scroll"||e==="scrollend"),R=he?U!==null?U+"Capture":null:U;he=[];for(var T=D,k;T!==null;){var Y=T;if(k=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||k===null||R===null||(Y=Na(T,R),Y!=null&&he.push(ti(T,Y,k))),tt)break;T=T.return}0<he.length&&(U=new H(U,oe,null,a,B),X.push({event:U,listeners:he}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",U&&a!==Kn&&(oe=a.relatedTarget||a.fromElement)&&(En(oe)||oe[Za]))break e;if((H||U)&&(U=B.window===B?B:(U=B.ownerDocument)?U.defaultView||U.parentWindow:window,H?(oe=a.relatedTarget||a.toElement,H=D,oe=oe?En(oe):null,oe!==null&&(tt=m(oe),he=oe.tag,oe!==tt||he!==5&&he!==27&&he!==6)&&(oe=null)):(H=null,oe=D),H!==oe)){if(he=zn,Y="onMouseLeave",R="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(he=Ld,Y="onPointerLeave",R="onPointerEnter",T="pointer"),tt=H==null?U:An(H),k=oe==null?U:An(oe),U=new he(Y,T+"leave",H,a,B),U.target=tt,U.relatedTarget=k,Y=null,En(B)===D&&(he=new he(R,T+"enter",oe,a,B),he.target=k,he.relatedTarget=tt,Y=he),tt=Y,H&&oe)t:{for(he=V2,R=H,T=oe,k=0,Y=R;Y;Y=he(Y))k++;Y=0;for(var de=T;de;de=he(de))Y++;for(;0<k-Y;)R=he(R),k--;for(;0<Y-k;)T=he(T),Y--;for(;k--;){if(R===T||T!==null&&R===T.alternate){he=R;break t}R=he(R),T=he(T)}he=null}else he=null;H!==null&&zh(X,U,H,he,!1),oe!==null&&tt!==null&&zh(X,tt,oe,he,!0)}}e:{if(U=D?An(D):window,H=U.nodeName&&U.nodeName.toLowerCase(),H==="select"||H==="input"&&U.type==="file")var Qe=Qd;else if(Vd(U))if(Zd)Qe=e2;else{Qe=Fg;var ce=Ig}else H=U.nodeName,!H||H.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?D&&$a(D.elementType)&&(Qe=Qd):Qe=Pg;if(Qe&&(Qe=Qe(e,D))){Xd(X,Qe,a,B);break e}ce&&ce(e,U,D),e==="focusout"&&D&&U.type==="number"&&D.memoizedProps.value!=null&&st(U,"number",U.value)}switch(ce=D?An(D):window,e){case"focusin":(Vd(ce)||ce.contentEditable==="true")&&(Lr=ce,Io=D,_s=null);break;case"focusout":_s=Io=Lr=null;break;case"mousedown":Fo=!0;break;case"contextmenu":case"mouseup":case"dragend":Fo=!1,ef(X,a,B);break;case"selectionchange":if(a2)break;case"keydown":case"keyup":ef(X,a,B)}var ze;if(Ko)e:{switch(e){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else Ur?Yd(e,a)&&(He="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(He="onCompositionStart");He&&(Hd&&a.locale!=="ko"&&(Ur||He!=="onCompositionStart"?He==="onCompositionEnd"&&Ur&&(ze=Or()):(la=B,Dr="value"in la?la.value:la.textContent,Ur=!0)),ce=fo(D,He),0<ce.length&&(He=new Ud(He,e,null,a,B),X.push({event:He,listeners:ce}),ze?He.data=ze:(ze=Gd(a),ze!==null&&(He.data=ze)))),(ze=Zg?Kg(e,a):$g(e,a))&&(He=fo(D,"onBeforeInput"),0<He.length&&(ce=new Ud("onBeforeInput","beforeinput",null,a,B),X.push({event:ce,listeners:He}),ce.data=ze)),B2(X,e,D,a,B)}Ch(X,t)})}function ti(e,t,a){return{instance:e,listener:t,currentTarget:a}}function fo(e,t){for(var a=t+"Capture",n=[];e!==null;){var r=e,s=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||s===null||(r=Na(e,a),r!=null&&n.unshift(ti(e,r,s)),r=Na(e,t),r!=null&&n.push(ti(e,r,s))),e.tag===3)return n;e=e.return}return[]}function V2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function zh(e,t,a,n,r){for(var s=t._reactName,f=[];a!==null&&a!==n;){var x=a,N=x.alternate,D=x.stateNode;if(x=x.tag,N!==null&&N===n)break;x!==5&&x!==26&&x!==27||D===null||(N=D,r?(D=Na(a,s),D!=null&&f.unshift(ti(a,D,N))):r||(D=Na(a,s),D!=null&&f.push(ti(a,D,N)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}var X2=/\r\n?/g,Q2=/\u0000|\uFFFD/g;function _h(e){return(typeof e=="string"?e:""+e).replace(X2,`
49
+ `).replace(Q2,"")}function Rh(e,t){return t=_h(t),_h(e)===t}function et(e,t,a,n,r,s){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||Me(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&Me(e,""+n);break;case"className":Mr(e,"class",n);break;case"tabIndex":Mr(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Mr(e,a,n);break;case"style":xt(e,n,s);break;case"data":if(t!=="object"){Mr(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=wl(""+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 s=="function"&&(a==="formAction"?(t!=="input"&&et(e,t,"name",r.name,r,null),et(e,t,"formEncType",r.formEncType,r,null),et(e,t,"formMethod",r.formMethod,r,null),et(e,t,"formTarget",r.formTarget,r,null)):(et(e,t,"encType",r.encType,r,null),et(e,t,"method",r.method,r,null),et(e,t,"target",r.target,r,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=wl(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=ja);break;case"onScroll":n!=null&&Oe("scroll",e);break;case"onScrollEnd":n!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(a=n.__html,a!=null){if(r.children!=null)throw Error(c(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=wl(""+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":Oe("beforetoggle",e),Oe("toggle",e),Cn(e,"popover",n);break;case"xlinkActuate":fn(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":fn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":fn(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":fn(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":fn(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":fn(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":fn(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":fn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":fn(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Cn(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=Ja.get(a)||a,Cn(e,a,n))}}function ju(e,t,a,n,r,s){switch(a){case"style":xt(e,n,s);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(a=n.__html,a!=null){if(r.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"children":typeof n=="string"?Me(e,n):(typeof n=="number"||typeof n=="bigint")&&Me(e,""+n);break;case"onScroll":n!=null&&Oe("scroll",e);break;case"onScrollEnd":n!=null&&Oe("scrollend",e);break;case"onClick":n!=null&&(e.onclick=ja);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!oa.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),s=e[jt]||null,s=s!=null?s[a]:null,typeof s=="function"&&e.removeEventListener(t,s,r),typeof n=="function")){typeof s!="function"&&s!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,r);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):Cn(e,a,n)}}}function $t(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",e),Oe("load",e);var n=!1,r=!1,s;for(s in a)if(a.hasOwnProperty(s)){var f=a[s];if(f!=null)switch(s){case"src":n=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:et(e,t,s,f,a,null)}}r&&et(e,t,"srcSet",a.srcSet,a,null),n&&et(e,t,"src",a.src,a,null);return;case"input":Oe("invalid",e);var x=s=f=r=null,N=null,D=null;for(n in a)if(a.hasOwnProperty(n)){var B=a[n];if(B!=null)switch(n){case"name":r=B;break;case"type":f=B;break;case"checked":N=B;break;case"defaultChecked":D=B;break;case"value":s=B;break;case"defaultValue":x=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(c(137,t));break;default:et(e,t,n,B,a,null)}}Be(e,s,x,N,D,f,r,!1);return;case"select":Oe("invalid",e),n=f=s=null;for(r in a)if(a.hasOwnProperty(r)&&(x=a[r],x!=null))switch(r){case"value":s=x;break;case"defaultValue":f=x;break;case"multiple":n=x;default:et(e,t,r,x,a,null)}t=s,a=f,e.multiple=!!n,t!=null?qe(e,!!n,t,!1):a!=null&&qe(e,!!n,a,!0);return;case"textarea":Oe("invalid",e),s=r=n=null;for(f in a)if(a.hasOwnProperty(f)&&(x=a[f],x!=null))switch(f){case"value":n=x;break;case"defaultValue":r=x;break;case"children":s=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(c(91));break;default:et(e,t,f,x,a,null)}Ae(e,n,r,s);return;case"option":for(N in a)if(a.hasOwnProperty(N)&&(n=a[N],n!=null))switch(N){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:et(e,t,N,n,a,null)}return;case"dialog":Oe("beforetoggle",e),Oe("toggle",e),Oe("cancel",e),Oe("close",e);break;case"iframe":case"object":Oe("load",e);break;case"video":case"audio":for(n=0;n<ei.length;n++)Oe(ei[n],e);break;case"image":Oe("error",e),Oe("load",e);break;case"details":Oe("toggle",e);break;case"embed":case"source":case"link":Oe("error",e),Oe("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(D in a)if(a.hasOwnProperty(D)&&(n=a[D],n!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:et(e,t,D,n,a,null)}return;default:if($a(t)){for(B in a)a.hasOwnProperty(B)&&(n=a[B],n!==void 0&&ju(e,t,B,n,a,void 0));return}}for(x in a)a.hasOwnProperty(x)&&(n=a[x],n!=null&&et(e,t,x,n,a,null))}function Z2(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 r=null,s=null,f=null,x=null,N=null,D=null,B=null;for(H in a){var X=a[H];if(a.hasOwnProperty(H)&&X!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":N=X;default:n.hasOwnProperty(H)||et(e,t,H,null,n,X)}}for(var U in n){var H=n[U];if(X=a[U],n.hasOwnProperty(U)&&(H!=null||X!=null))switch(U){case"type":s=H;break;case"name":r=H;break;case"checked":D=H;break;case"defaultChecked":B=H;break;case"value":f=H;break;case"defaultValue":x=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(c(137,t));break;default:H!==X&&et(e,t,U,H,n,X)}}be(e,f,x,N,D,B,s,r);return;case"select":H=f=x=U=null;for(s in a)if(N=a[s],a.hasOwnProperty(s)&&N!=null)switch(s){case"value":break;case"multiple":H=N;default:n.hasOwnProperty(s)||et(e,t,s,null,n,N)}for(r in n)if(s=n[r],N=a[r],n.hasOwnProperty(r)&&(s!=null||N!=null))switch(r){case"value":U=s;break;case"defaultValue":x=s;break;case"multiple":f=s;default:s!==N&&et(e,t,r,s,n,N)}t=x,a=f,n=H,U!=null?qe(e,!!a,U,!1):!!n!=!!a&&(t!=null?qe(e,!!a,t,!0):qe(e,!!a,a?[]:"",!1));return;case"textarea":H=U=null;for(x in a)if(r=a[x],a.hasOwnProperty(x)&&r!=null&&!n.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:et(e,t,x,null,n,r)}for(f in n)if(r=n[f],s=a[f],n.hasOwnProperty(f)&&(r!=null||s!=null))switch(f){case"value":U=r;break;case"defaultValue":H=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(c(91));break;default:r!==s&&et(e,t,f,r,n,s)}me(e,U,H);return;case"option":for(var oe in a)if(U=a[oe],a.hasOwnProperty(oe)&&U!=null&&!n.hasOwnProperty(oe))switch(oe){case"selected":e.selected=!1;break;default:et(e,t,oe,null,n,U)}for(N in n)if(U=n[N],H=a[N],n.hasOwnProperty(N)&&U!==H&&(U!=null||H!=null))switch(N){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:et(e,t,N,U,n,H)}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 he in a)U=a[he],a.hasOwnProperty(he)&&U!=null&&!n.hasOwnProperty(he)&&et(e,t,he,null,n,U);for(D in n)if(U=n[D],H=a[D],n.hasOwnProperty(D)&&U!==H&&(U!=null||H!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(c(137,t));break;default:et(e,t,D,U,n,H)}return;default:if($a(t)){for(var tt in a)U=a[tt],a.hasOwnProperty(tt)&&U!==void 0&&!n.hasOwnProperty(tt)&&ju(e,t,tt,void 0,n,U);for(B in n)U=n[B],H=a[B],!n.hasOwnProperty(B)||U===H||U===void 0&&H===void 0||ju(e,t,B,U,n,H);return}}for(var R in a)U=a[R],a.hasOwnProperty(R)&&U!=null&&!n.hasOwnProperty(R)&&et(e,t,R,null,n,U);for(X in n)U=n[X],H=a[X],!n.hasOwnProperty(X)||U===H||U==null&&H==null||et(e,t,X,U,n,H)}function Mh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function K2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var r=a[n],s=r.transferSize,f=r.initiatorType,x=r.duration;if(s&&x&&Mh(f)){for(f=0,x=r.responseEnd,n+=1;n<a.length;n++){var N=a[n],D=N.startTime;if(D>x)break;var B=N.transferSize,X=N.initiatorType;B&&Mh(X)&&(N=N.responseEnd,f+=B*(N<x?1:(x-D)/(N-D)))}if(--n,t+=8*(s+f)/(r.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 Nu=null,Eu=null;function mo(e){return e.nodeType===9?e:e.ownerDocument}function kh(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 Dh(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 Au(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 Cu=null;function $2(){var e=window.event;return e&&e.type==="popstate"?e===Cu?!1:(Cu=e,!0):(Cu=null,!1)}var Oh=typeof setTimeout=="function"?setTimeout:void 0,J2=typeof clearTimeout=="function"?clearTimeout:void 0,Uh=typeof Promise=="function"?Promise:void 0,W2=typeof queueMicrotask=="function"?queueMicrotask:typeof Uh<"u"?function(e){return Uh.resolve(null).then(e).catch(I2)}:Oh;function I2(e){setTimeout(function(){throw e})}function Vl(e){return e==="head"}function Lh(e,t){var a=t,n=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(r),us(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")ai(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ai(a);for(var s=a.firstChild;s;){var f=s.nextSibling,x=s.nodeName;s[Nn]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=f}}else a==="body"&&ai(e.ownerDocument.body);a=r}while(a);us(t)}function Hh(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 Tu(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":Tu(a),Ka(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function F2(e,t,a,n){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Nn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=an(e.nextSibling),e===null)break}return null}function P2(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=an(e.nextSibling),e===null))return null;return e}function Bh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=an(e.nextSibling),e===null))return null;return e}function zu(e){return e.data==="$?"||e.data==="$~"}function _u(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ev(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 an(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 Ru=null;function qh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return an(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Yh(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 Gh(e,t,a){switch(t=mo(a),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function ai(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ka(e)}var nn=new Map,Vh=new Set;function ho(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ul=G.d;G.d={f:tv,r:av,D:nv,C:lv,L:rv,m:sv,X:ov,S:iv,M:cv};function tv(){var e=ul.f(),t=lo();return e||t}function av(e){var t=dn(e);t!==null&&t.tag===5&&t.type==="form"?sm(t):ul.r(e)}var is=typeof document>"u"?null:document;function Xh(e,t,a){var n=is;if(n&&typeof t=="string"&&t){var r=fe(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),Vh.has(r)||(Vh.add(r),e={rel:e,crossOrigin:a,href:t},n.querySelector(r)===null&&(t=n.createElement("link"),$t(t,"link",e),Fe(t),n.head.appendChild(t)))}}function nv(e){ul.D(e),Xh("dns-prefetch",e,null)}function lv(e,t){ul.C(e,t),Xh("preconnect",e,t)}function rv(e,t,a){ul.L(e,t,a);var n=is;if(n&&e&&t){var r='link[rel="preload"][as="'+fe(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+fe(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+fe(a.imageSizes)+'"]')):r+='[href="'+fe(e)+'"]';var s=r;switch(t){case"style":s=os(e);break;case"script":s=cs(e)}nn.has(s)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),nn.set(s,e),n.querySelector(r)!==null||t==="style"&&n.querySelector(ni(s))||t==="script"&&n.querySelector(li(s))||(t=n.createElement("link"),$t(t,"link",e),Fe(t),n.head.appendChild(t)))}}function sv(e,t){ul.m(e,t);var a=is;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+fe(n)+'"][href="'+fe(e)+'"]',s=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=cs(e)}if(!nn.has(s)&&(e=g({rel:"modulepreload",href:e},t),nn.set(s,e),a.querySelector(r)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(li(s)))return}n=a.createElement("link"),$t(n,"link",e),Fe(n),a.head.appendChild(n)}}}function iv(e,t,a){ul.S(e,t,a);var n=is;if(n&&e){var r=aa(n).hoistableStyles,s=os(e);t=t||"default";var f=r.get(s);if(!f){var x={loading:0,preload:null};if(f=n.querySelector(ni(s)))x.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=nn.get(s))&&Mu(e,a);var N=f=n.createElement("link");Fe(N),$t(N,"link",e),N._p=new Promise(function(D,B){N.onload=D,N.onerror=B}),N.addEventListener("load",function(){x.loading|=1}),N.addEventListener("error",function(){x.loading|=2}),x.loading|=4,po(f,t,n)}f={type:"stylesheet",instance:f,count:1,state:x},r.set(s,f)}}}function ov(e,t){ul.X(e,t);var a=is;if(a&&e){var n=aa(a).hoistableScripts,r=cs(e),s=n.get(r);s||(s=a.querySelector(li(r)),s||(e=g({src:e,async:!0},t),(t=nn.get(r))&&ku(e,t),s=a.createElement("script"),Fe(s),$t(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(r,s))}}function cv(e,t){ul.M(e,t);var a=is;if(a&&e){var n=aa(a).hoistableScripts,r=cs(e),s=n.get(r);s||(s=a.querySelector(li(r)),s||(e=g({src:e,async:!0,type:"module"},t),(t=nn.get(r))&&ku(e,t),s=a.createElement("script"),Fe(s),$t(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(r,s))}}function Qh(e,t,a,n){var r=(r=le.current)?ho(r):null;if(!r)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=os(a.href),a=aa(r).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=os(a.href);var s=aa(r).hoistableStyles,f=s.get(e);if(f||(r=r.ownerDocument||r,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,f),(s=r.querySelector(ni(e)))&&!s._p&&(f.instance=s,f.state.loading=5),nn.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},nn.set(e,a),s||uv(r,e,a,f.state))),t&&n===null)throw Error(c(528,""));return f}if(t&&n!==null)throw Error(c(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=cs(a),a=aa(r).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(c(444,e))}}function os(e){return'href="'+fe(e)+'"'}function ni(e){return'link[rel="stylesheet"]['+e+"]"}function Zh(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function uv(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}),$t(t,"link",a),Fe(t),e.head.appendChild(t))}function cs(e){return'[src="'+fe(e)+'"]'}function li(e){return"script[async]"+e}function Kh(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+fe(a.href)+'"]');if(n)return t.instance=n,Fe(n),n;var r=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Fe(n),$t(n,"style",r),po(n,a.precedence,e),t.instance=n;case"stylesheet":r=os(a.href);var s=e.querySelector(ni(r));if(s)return t.state.loading|=4,t.instance=s,Fe(s),s;n=Zh(a),(r=nn.get(r))&&Mu(n,r),s=(e.ownerDocument||e).createElement("link"),Fe(s);var f=s;return f._p=new Promise(function(x,N){f.onload=x,f.onerror=N}),$t(s,"link",n),t.state.loading|=4,po(s,a.precedence,e),t.instance=s;case"script":return s=cs(a.src),(r=e.querySelector(li(s)))?(t.instance=r,Fe(r),r):(n=a,(r=nn.get(s))&&(n=g({},a),ku(n,r)),e=e.ownerDocument||e,r=e.createElement("script"),Fe(r),$t(r,"link",n),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,po(n,a.precedence,e));return t.instance}function po(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=n.length?n[n.length-1]:null,s=r,f=0;f<n.length;f++){var x=n[f];if(x.dataset.precedence===t)s=x;else if(s!==r)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Mu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ku(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var go=null;function $h(e,t,a){if(go===null){var n=new Map,r=go=new Map;r.set(a,n)}else r=go,n=r.get(a),n||(n=new Map,r.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var s=a[r];if(!(s[Nn]||s[ct]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var f=s.getAttribute(t)||"";f=e+f;var x=n.get(f);x?x.push(s):n.set(f,[s])}}return n}function Jh(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function dv(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 Wh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function fv(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 r=os(n.href),s=t.querySelector(ni(r));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=vo.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=s,Fe(s);return}s=t.ownerDocument||t,n=Zh(n),(r=nn.get(r))&&Mu(n,r),s=s.createElement("link"),Fe(s);var f=s;f._p=new Promise(function(x,N){f.onload=x,f.onerror=N}),$t(s,"link",n),a.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=vo.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Du=0;function mv(e,t){return e.stylesheets&&e.count===0&&xo(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&xo(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Du===0&&(Du=62500*K2());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&xo(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Du?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(r)}}:null}function vo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var yo=null;function xo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,yo=new Map,t.forEach(hv,e),yo=null,vo.call(e))}function hv(e,t){if(!(t.state.loading&4)){var a=yo.get(e);if(a)var n=a.get(null);else{a=new Map,yo.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<r.length;s++){var f=r[s];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),n=f)}n&&a.set(null,n)}r=t.instance,f=r.getAttribute("data-precedence"),s=a.get(f)||n,s===n&&a.set(null,r),a.set(f,r),this.count++,n=vo.bind(this),r.addEventListener("load",n),r.addEventListener("error",n),s?s.parentNode.insertBefore(r,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var ri={$$typeof:K,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function pv(e,t,a,n,r,s,f,x,N){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=un(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=un(0),this.hiddenUpdates=un(null),this.identifierPrefix=n,this.onUncaughtError=r,this.onCaughtError=s,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function Ih(e,t,a,n,r,s,f,x,N,D,B,X){return e=new pv(e,t,a,f,N,D,B,X,x),t=1,s===!0&&(t|=24),s=_a(3,null,null,t),e.current=s,s.stateNode=e,t=mc(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:n,isDehydrated:a,cache:t},vc(s),e}function Fh(e){return e?(e=qr,e):qr}function Ph(e,t,a,n,r,s){r=Fh(r),n.context===null?n.context=r:n.pendingContext=r,n=Ml(t),n.payload={element:a},s=s===void 0?null:s,s!==null&&(n.callback=s),a=kl(e,n,t),a!==null&&(ga(a,e,t),Ls(a,e,t))}function e0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Ou(e,t){e0(e,t),(e=e.alternate)&&e0(e,t)}function t0(e){if(e.tag===13||e.tag===31){var t=ur(e,67108864);t!==null&&ga(t,e,67108864),Ou(e,67108864)}}function a0(e){if(e.tag===13||e.tag===31){var t=Oa();t=Sa(t);var a=ur(e,t);a!==null&&ga(a,e,t),Ou(e,t)}}var bo=!0;function gv(e,t,a,n){var r=M.T;M.T=null;var s=G.p;try{G.p=2,Uu(e,t,a,n)}finally{G.p=s,M.T=r}}function vv(e,t,a,n){var r=M.T;M.T=null;var s=G.p;try{G.p=8,Uu(e,t,a,n)}finally{G.p=s,M.T=r}}function Uu(e,t,a,n){if(bo){var r=Lu(n);if(r===null)wu(e,t,n,So,a),l0(e,n);else if(xv(r,e,t,a,n))n.stopPropagation();else if(l0(e,n),t&4&&-1<yv.indexOf(e)){for(;r!==null;){var s=dn(r);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var f=wt(s.pendingLanes);if(f!==0){var x=s;for(x.pendingLanes|=2,x.entangledLanes|=2;f;){var N=1<<31-kt(f);x.entanglements[1]|=N,f&=~N}kn(s),($e&6)===0&&(ao=Xt()+500,Ps(0))}}break;case 31:case 13:x=ur(s,2),x!==null&&ga(x,s,2),lo(),Ou(s,2)}if(s=Lu(n),s===null&&wu(e,t,n,So,a),s===r)break;r=s}r!==null&&n.stopPropagation()}else wu(e,t,n,null,a)}}function Lu(e){return e=ir(e),Hu(e)}var So=null;function Hu(e){if(So=null,e=En(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=p(t),e!==null)return e;e=null}else if(a===31){if(e=y(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 So=e,null}function n0(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(ws()){case Yn:return 2;case zr:return 8;case Gn:case ar:return 32;case qa:return 268435456;default:return 32}default:return 32}}var Bu=!1,Xl=null,Ql=null,Zl=null,si=new Map,ii=new Map,Kl=[],yv="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 l0(e,t){switch(e){case"focusin":case"focusout":Xl=null;break;case"dragenter":case"dragleave":Ql=null;break;case"mouseover":case"mouseout":Zl=null;break;case"pointerover":case"pointerout":si.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ii.delete(t.pointerId)}}function oi(e,t,a,n,r,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:s,targetContainers:[r]},t!==null&&(t=dn(t),t!==null&&t0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function xv(e,t,a,n,r){switch(t){case"focusin":return Xl=oi(Xl,e,t,a,n,r),!0;case"dragenter":return Ql=oi(Ql,e,t,a,n,r),!0;case"mouseover":return Zl=oi(Zl,e,t,a,n,r),!0;case"pointerover":var s=r.pointerId;return si.set(s,oi(si.get(s)||null,e,t,a,n,r)),!0;case"gotpointercapture":return s=r.pointerId,ii.set(s,oi(ii.get(s)||null,e,t,a,n,r)),!0}return!1}function r0(e){var t=En(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=p(a),t!==null){e.blockedOn=t,Qn(e.priority,function(){a0(a)});return}}else if(t===31){if(t=y(a),t!==null){e.blockedOn=t,Qn(e.priority,function(){a0(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 wo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Lu(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);Kn=n,a.target.dispatchEvent(n),Kn=null}else return t=dn(a),t!==null&&t0(t),e.blockedOn=a,!1;t.shift()}return!0}function s0(e,t,a){wo(e)&&a.delete(t)}function bv(){Bu=!1,Xl!==null&&wo(Xl)&&(Xl=null),Ql!==null&&wo(Ql)&&(Ql=null),Zl!==null&&wo(Zl)&&(Zl=null),si.forEach(s0),ii.forEach(s0)}function jo(e,t){e.blockedOn===t&&(e.blockedOn=null,Bu||(Bu=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,bv)))}var No=null;function i0(e){No!==e&&(No=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){No===e&&(No=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],r=e[t+2];if(typeof n!="function"){if(Hu(n||a)===null)continue;break}var s=dn(a);s!==null&&(e.splice(t,3),t-=3,Lc(s,{pending:!0,data:r,method:a.method,action:n},n,r))}}))}function us(e){function t(N){return jo(N,e)}Xl!==null&&jo(Xl,e),Ql!==null&&jo(Ql,e),Zl!==null&&jo(Zl,e),si.forEach(t),ii.forEach(t);for(var a=0;a<Kl.length;a++){var n=Kl[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Kl.length&&(a=Kl[0],a.blockedOn===null);)r0(a),a.blockedOn===null&&Kl.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var r=a[n],s=a[n+1],f=r[jt]||null;if(typeof s=="function")f||i0(a);else if(f){var x=null;if(s&&s.hasAttribute("formAction")){if(r=s,f=s[jt]||null)x=f.formAction;else if(Hu(r)!==null)continue}else x=f.action;typeof x=="function"?a[n+1]=x:(a.splice(n,3),n-=3),i0(a)}}}function o0(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(f){return r=f})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,r=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),r!==null&&(r(),r=null)}}}function qu(e){this._internalRoot=e}Eo.prototype.render=qu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var a=t.current,n=Oa();Ph(a,n,e,t,null,null)},Eo.prototype.unmount=qu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ph(e.current,2,null,e,null,null),lo(),t[Za]=null}};function Eo(e){this._internalRoot=e}Eo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xn();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Kl.length&&t!==0&&t<Kl[a].priority;a++);Kl.splice(a,0,e),a===0&&r0(e)}};var c0=i.version;if(c0!=="19.2.8")throw Error(c(527,c0,"19.2.8"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=h(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var Sv={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ao=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ao.isDisabled&&Ao.supportsFiber)try{Ga=Ao.inject(Sv),Yt=Ao}catch{}}return ui.createRoot=function(e,t){if(!d(e))throw Error(c(299));var a=!1,n="",r=gm,s=vm,f=ym;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=Ih(e,1,!1,null,null,a,n,null,r,s,f,o0),e[Za]=t.current,Su(e),new qu(t)},ui.hydrateRoot=function(e,t,a){if(!d(e))throw Error(c(299));var n=!1,r="",s=gm,f=vm,x=ym,N=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.formState!==void 0&&(N=a.formState)),t=Ih(e,1,!0,t,a??null,n,r,N,s,f,x,o0),t.context=Fh(null),a=t.current,n=Oa(),n=Sa(n),r=Ml(n),r.callback=null,kl(a,r,n),a=n,t.current.lanes=a,lt(t,a),kn(t),e[Za]=t.current,Su(e),new Eo(t)},ui.version="19.2.8",ui}var x0;function Mv(){if(x0)return Vu.exports;x0=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(i){console.error(i)}}return l(),Vu.exports=Rv(),Vu.exports}var kv=Mv();/**
50
+ * react-router v7.18.4
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 pd=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Z0=/^[\\/]{2}/;function Dv(l,i){return i+l.replace(/\\/g,"/")}var b0="popstate";function S0(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function Ov(l={}){function i(c,d){var h;let m=(h=d.state)==null?void 0:h.masked,{pathname:p,search:y,hash:v}=m||c.location;return td("",{pathname:p,search:y,hash:v},d.state&&d.state.usr||null,d.state&&d.state.key||"default",m?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function u(c,d){return typeof d=="string"?d:fs(d)}return Lv(i,u,null,l)}function ft(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function Ln(l,i){if(!l){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function Uv(){return Math.random().toString(36).substring(2,10)}function w0(l,i){return{usr:l.state,key:l.key,idx:i,masked:l.mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function td(l,i,u=null,c,d){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof i=="string"?ps(i):i,state:u,key:i&&i.key||c||Uv(),mask:d}}function fs({pathname:l="/",search:i="",hash:u=""}){return i&&i!=="?"&&(l+=i.charAt(0)==="?"?i:"?"+i),u&&u!=="#"&&(l+=u.charAt(0)==="#"?u:"#"+u),l}function ps(l){let i={};if(l){let u=l.indexOf("#");u>=0&&(i.hash=l.substring(u),l=l.substring(0,u));let c=l.indexOf("?");c>=0&&(i.search=l.substring(c),l=l.substring(0,c)),l&&(i.pathname=l)}return i}function Lv(l,i,u,c={}){let{window:d=document.defaultView,v5Compat:m=!1}=c,p=d.history,y="POP",v=null,h=S();h==null&&(h=0,p.replaceState({...p.state,idx:h},""));function S(){return(p.state||{idx:null}).idx}function g(){y="POP";let _=S(),z=_==null?null:_-h;h=_,v&&v({action:y,location:C.location,delta:z})}function w(_,z){y="PUSH";let L=S0(_)?_:td(C.location,_,z);h=S()+1;let K=w0(L,h),ee=C.createHref(L.mask||L);try{p.pushState(K,"",ee)}catch(J){if(J instanceof DOMException&&J.name==="DataCloneError")throw J;d.location.assign(ee)}m&&v&&v({action:y,location:C.location,delta:1})}function E(_,z){y="REPLACE";let L=S0(_)?_:td(C.location,_,z);h=S();let K=w0(L,h),ee=C.createHref(L.mask||L);p.replaceState(K,"",ee),m&&v&&v({action:y,location:C.location,delta:0})}function j(_){return Hv(d,_)}let C={get action(){return y},get location(){return l(d,p)},listen(_){if(v)throw new Error("A history only accepts one active listener");return d.addEventListener(b0,g),v=_,()=>{d.removeEventListener(b0,g),v=null}},createHref(_){return i(d,_)},createURL:j,encodeLocation(_){let z=j(_);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:w,replace:E,go(_){return p.go(_)}};return C}function Hv(l,i,u=!1){let c="http://localhost";l&&(c=l.location.origin!=="null"?l.location.origin:l.location.href),ft(c,"No window.location.(origin|href) available to create URL");let d=typeof i=="string"?i:fs(i);return d=d.replace(/ $/,"%20"),!u&&Z0.test(d)&&(d=c+d),new URL(d,c)}function K0(l,i,u="/"){return Bv(l,i,u,!1)}function Bv(l,i,u,c,d){let m=typeof i=="string"?ps(i):i,p=ml(m.pathname||"/",u);if(p==null)return null;let y=qv(l),v=null,h=Iv(p);for(let S=0;v==null&&S<y.length;++S)v=Wv(y[S],h,c);return v}function qv(l){let i=$0(l);return Yv(i),i}function $0(l,i=[],u=[],c="",d=!1){let m=(p,y,v=d,h)=>{let S={relativePath:h===void 0?p.path||"":h,caseSensitive:p.caseSensitive===!0,childrenIndex:y,route:p};if(S.relativePath.startsWith("/")){if(!S.relativePath.startsWith(c)&&v)return;ft(S.relativePath.startsWith(c),`Absolute route path "${S.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(c.length)}let g=vn([c,S.relativePath]),w=u.concat(S);p.children&&p.children.length>0&&(ft(p.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),$0(p.children,i,w,g,v)),!(p.path==null&&!p.index)&&i.push({path:g,score:$v(g,p.index),routesMeta:w.map((E,j)=>{let[C,_]=I0(E.relativePath,E.caseSensitive,j===w.length-1);return{...E,matcher:C,compiledParams:_}})})};return l.forEach((p,y)=>{var v;if(p.path===""||!((v=p.path)!=null&&v.includes("?")))m(p,y);else for(let h of J0(p.path))m(p,y,!0,h)}),i}function J0(l){let i=l.split("/");if(i.length===0)return[];let[u,...c]=i,d=u.endsWith("?"),m=u.replace(/\?$/,"");if(c.length===0)return d?[m,""]:[m];let p=J0(c.join("/")),y=[];return y.push(...p.map(v=>v===""?m:[m,v].join("/"))),d&&y.push(...p),y.map(v=>l.startsWith("/")&&v===""?"/":v)}function Yv(l){l.sort((i,u)=>i.score!==u.score?u.score-i.score:Jv(i.routesMeta.map(c=>c.childrenIndex),u.routesMeta.map(c=>c.childrenIndex)))}var Gv=/^:[\w-]+$/,Vv=3,Xv=2,Qv=1,Zv=10,Kv=-2,j0=l=>l==="*";function $v(l,i){let u=l.split("/"),c=u.length;return u.some(j0)&&(c+=Kv),i&&(c+=Xv),u.filter(d=>!j0(d)).reduce((d,m)=>d+(Gv.test(m)?Vv:m===""?Qv:Zv),c)}function Jv(l,i){return l.length===i.length&&l.slice(0,-1).every((c,d)=>c===i[d])?l[l.length-1]-i[i.length-1]:0}function Wv(l,i,u=!1){let{routesMeta:c}=l,d={},m="/",p=[];for(let y=0;y<c.length;++y){let v=c[y],h=y===c.length-1,S=m==="/"?i:i.slice(m.length)||"/",g={path:v.relativePath,caseSensitive:v.caseSensitive,end:h},w=v.matcher&&v.compiledParams?W0(g,S,v.matcher,v.compiledParams):Do(g,S),E=v.route;if(!w&&h&&u&&!c[c.length-1].route.index&&(w=Do({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},S)),!w)return null;Object.assign(d,w.params),p.push({params:d,pathname:vn([m,w.pathname]),pathnameBase:ey(vn([m,w.pathnameBase])),route:E}),w.pathnameBase!=="/"&&(m=vn([m,w.pathnameBase]))}return p}function Do(l,i){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[u,c]=I0(l.path,l.caseSensitive,l.end);return W0(l,i,u,c)}function W0(l,i,u,c){let d=i.match(u);if(!d)return null;let m=d[0],p=ms(m,1),y=d.slice(1);return{params:c.reduce((h,{paramName:S,isOptional:g},w)=>{if(S==="*"){let j=y[w]||"";p=ms(m.slice(0,m.length-j.length),1)}const E=y[w];return g&&!E?h[S]=void 0:h[S]=(E||"").replace(/%2F/g,"/"),h},{}),pathname:m,pathnameBase:p,pattern:l}}function I0(l,i=!1,u=!0){Ln(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 c=[],d="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,y,v,h,S)=>{if(c.push({paramName:y,isOptional:v!=null}),v){let g=S.charAt(h+p.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(c.push({paramName:"*"}),d+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):u?d+="\\/*$":l!==""&&l!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,i?void 0:"i"),c]}function Iv(l){try{return l.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Ln(!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 (${i}).`),l}}function ml(l,i){if(i==="/")return l;if(!l.toLowerCase().startsWith(i.toLowerCase()))return null;let u=i.endsWith("/")?i.length-1:i.length,c=l.charAt(u);return c&&c!=="/"?null:l.slice(u)||"/"}function Fv(l,i="/"){let{pathname:u,search:c="",hash:d=""}=typeof l=="string"?ps(l):l,m;return u?(u=P0(u),u.startsWith("/")||u.startsWith("\\")?m=N0(u.substring(1),"/"):m=N0(u,i)):m=i,{pathname:m,search:ty(c),hash:ay(d)}}function N0(l,i){let u=ms(i).split("/");return l.split("/").forEach(d=>{d===".."?u.length>1&&u.pop():d!=="."&&u.push(d)}),u.length>1?u.join("/"):"/"}function Ku(l,i,u,c){return`Cannot include a '${l}' character in a manually specified \`to.${i}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${u}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Pv(l){return l.filter((i,u)=>u===0||i.route.path&&i.route.path.length>0)}function F0(l){let i=Pv(l);return i.map((u,c)=>c===i.length-1?u.pathname:u.pathnameBase)}function gd(l,i,u,c=!1){let d;typeof l=="string"?d=ps(l):(d={...l},ft(!d.pathname||!d.pathname.includes("?"),Ku("?","pathname","search",d)),ft(!d.pathname||!d.pathname.includes("#"),Ku("#","pathname","hash",d)),ft(!d.search||!d.search.includes("#"),Ku("#","search","hash",d)));let m=l===""||d.pathname==="",p=m?"/":d.pathname,y;if(p==null)y=u;else{let g=i.length-1;if(!c&&p.startsWith("..")){let w=p.split("/");for(;w[0]==="..";)w.shift(),g-=1;d.pathname=w.join("/")}y=g>=0?i[g]:"/"}let v=Fv(d,y),h=p&&p!=="/"&&p.endsWith("/"),S=(m||p===".")&&u.endsWith("/");return!v.pathname.endsWith("/")&&(h||S)&&(v.pathname+="/"),v}var P0=l=>l.replace(/[\\/]{2,}/g,"/"),vn=l=>P0(l.join("/"));function ms(l,i=0){let u=l.length;for(;u>i&&l.charCodeAt(u-1)===47;)u--;return u===l.length?l:l.slice(0,u)}var ey=l=>ms(l).replace(/^\/*/,"/"),ty=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,ay=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,ny=class{constructor(l,i,u,c=!1){this.status=l,this.statusText=i||"",this.internal=c,u instanceof Error?(this.data=u.toString(),this.error=u):this.data=u}};function ly(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function ry(l){let i=l.map(u=>u.route.path).filter(Boolean);return vn(i)||"/"}var ep=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function tp(l,i){let u=l;if(typeof u!="string"||!pd.test(u))return{absoluteURL:void 0,isExternal:!1,to:u};let c=u,d=!1;if(ep)try{let m=new URL(window.location.href),p=Z0.test(u)?new URL(Dv(u,m.protocol)):new URL(u),y=ml(p.pathname,i);p.origin===m.origin&&y!=null?u=y+p.search+p.hash:d=!0}catch{Ln(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:d,to:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var E0=new URL("http://localhost");function ap(l){if(l.createURL)return l.createURL("/");try{return new URL(l.createHref("/"),E0)}catch{return E0}}function $u(l,i){return l.origin===i.origin&&(l.origin!=="null"||l.protocol===i.protocol&&l.host===i.host)}function sy(l,i){if(l.startsWith("//"))return!0;let u=i.protocol.toLowerCase();return l.toLowerCase().startsWith(u)?i.host===""||l.slice(u.length).startsWith("//"):!1}function np(l,i,u,c){let d=null;try{d=l==null?null:new URL(l,u)}catch{}let m=new URL(i,u),p=d!=null&&!$u(d,u),y=!$u(m,u);if(c==="reject"){if(p||y)throw new Error("External navigation is not allowed")}else if(y&&(d==null||!sy(l,d)||!$u(d,m)))throw new Error("External navigation is not allowed")}var lp=["POST","PUT","PATCH","DELETE"];new Set(lp);var iy=["GET",...lp];new Set(iy);var oy=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function cy(l){try{return oy.includes(new URL(l).protocol)}catch{return!1}}var gs=b.createContext(null);gs.displayName="DataRouter";var Lo=b.createContext(null);Lo.displayName="DataRouterState";var rp=b.createContext(!1);function uy(){return b.useContext(rp)}var sp=b.createContext({isTransitioning:!1});sp.displayName="ViewTransition";var dy=b.createContext(new Map);dy.displayName="Fetchers";var fy=b.createContext(null);fy.displayName="Await";var sn=b.createContext(null);sn.displayName="Navigation";var gi=b.createContext(null);gi.displayName="Location";var pl=b.createContext({outlet:null,matches:[],isDataRoute:!1});pl.displayName="Route";var vd=b.createContext(null);vd.displayName="RouteError";var ip="REACT_ROUTER_ERROR",my="REDIRECT",hy="ROUTE_ERROR_RESPONSE";function py(l){if(l.startsWith(`${ip}:${my}:{`))try{let i=JSON.parse(l.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function gy(l){if(l.startsWith(`${ip}:${hy}:{`))try{let i=JSON.parse(l.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new ny(i.status,i.statusText,i.data)}catch{}}function vy(l,{relative:i}={}){ft(vi(),"useHref() may be used only in the context of a <Router> component.");let{basename:u,navigator:c}=b.useContext(sn),{hash:d,pathname:m,search:p}=yi(l,{relative:i}),y=m;return u!=="/"&&(y=m==="/"?u:vn([u,m])),c.createHref({pathname:y,search:p,hash:d})}function vi(){return b.useContext(gi)!=null}function yn(){return ft(vi(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(gi).location}var op="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function cp(l){b.useContext(sn).static||b.useLayoutEffect(l)}function up(){let{isDataRoute:l}=b.useContext(pl);return l?_y():yy()}function yy(){ft(vi(),"useNavigate() may be used only in the context of a <Router> component.");let l=b.useContext(gs),{basename:i,navigator:u}=b.useContext(sn),{matches:c}=b.useContext(pl),{pathname:d}=yn(),m=JSON.stringify(F0(c)),p=b.useRef(!1);return cp(()=>{p.current=!0}),b.useCallback((v,h={})=>{if(Ln(p.current,op),!p.current)return;if(typeof v=="number"){u.go(v);return}let S=gd(v,JSON.parse(m),d,h.relative==="path");l==null&&i!=="/"&&(S.pathname=S.pathname==="/"?i:vn([i,S.pathname])),np(typeof v=="string"?v:fs(v),u.createHref(S),ap(u),"reject"),(h.replace?u.replace:u.push)(S,h.state,h)},[i,u,m,d,l])}b.createContext(null);function yi(l,{relative:i}={}){let{matches:u}=b.useContext(pl),{pathname:c}=yn(),d=JSON.stringify(F0(u));return b.useMemo(()=>gd(l,JSON.parse(d),c,i==="path"),[l,d,c,i])}function xy(l,i){return dp(l,i)}function dp(l,i,u){var _;ft(vi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=b.useContext(sn),{matches:d}=b.useContext(pl),m=d[d.length-1],p=m?m.params:{},y=m?m.pathname:"/",v=m?m.pathnameBase:"/",h=m&&m.route;{let z=h&&h.path||"";mp(y,!h||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${z}">) 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="${z}"> to <Route path="${z==="/"?"*":`${z}/*`}">.`)}let S=yn(),g;if(i){let z=typeof i=="string"?ps(i):i;ft(v==="/"||((_=z.pathname)==null?void 0:_.startsWith(v)),`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 "${v}" but pathname "${z.pathname}" was given in the \`location\` prop.`),g=z}else g=S;let w=g.pathname||"/",E=w;if(v!=="/"){let z=v.replace(/^\//,"").split("/");E="/"+w.replace(/^\//,"").split("/").slice(z.length).join("/")}let j=u&&u.state.matches.length?u.state.matches.map(z=>Object.assign(z,{route:u.manifest[z.route.id]||z.route})):K0(l,{pathname:E});Ln(h||j!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),Ln(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.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 C=Ny(j&&j.map(z=>Object.assign({},z,{params:Object.assign({},p,z.params),pathname:vn([v,c.encodeLocation?c.encodeLocation(z.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?v:vn([v,c.encodeLocation?c.encodeLocation(z.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathnameBase])})),d,u);return i&&C?b.createElement(gi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...g},navigationType:"POP"}},C):C}function by(){let l=zy(),i=ly(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),u=l instanceof Error?l.stack:null,c="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:c},m={padding:"2px 4px",backgroundColor:c},p=null;return console.error("Error handled by React Router default ErrorBoundary:",l),p=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:m},"ErrorBoundary")," or"," ",b.createElement("code",{style:m},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},i),u?b.createElement("pre",{style:d},u):null,p)}var Sy=b.createElement(by,null),fp=class extends b.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,i){return i.location!==l.location||i.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:i.error,location:i.location,revalidation:l.revalidation||i.revalidation}}componentDidCatch(l,i){this.props.onError?this.props.onError(l,i):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 u=gy(l.digest);u&&(l=u)}let i=l!==void 0?b.createElement(pl.Provider,{value:this.props.routeContext},b.createElement(vd.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?b.createElement(wy,{error:l},i):i}};fp.contextType=rp;var Ju=new WeakMap;function wy({children:l,error:i}){let{basename:u,navigator:c}=b.useContext(sn);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let d=py(i.digest);if(d){let m=Ju.get(i);if(m)throw m;let p=tp(d.location,u),y=p.absoluteURL||p.to;if(np(d.location,y,ap(c),"allow-explicit"),cy(y))throw new Error("Invalid redirect location");if(ep&&!Ju.get(i))if(p.isExternal||d.reloadDocument)window.location.href=y;else{const v=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(p.to,{replace:d.replace}));throw Ju.set(i,v),v}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${y}`})}}return l}function jy({routeContext:l,match:i,children:u}){let c=b.useContext(gs);return c&&c.static&&c.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=i.route.id),b.createElement(pl.Provider,{value:l},u)}function Ny(l,i=[],u){let c=u==null?void 0:u.state;if(l==null){if(!c)return null;if(c.errors)l=c.matches;else if(i.length===0&&!c.initialized&&c.matches.length>0)l=c.matches;else return null}let d=l,m=c==null?void 0:c.errors;if(m!=null){let S=d.findIndex(g=>g.route.id&&(m==null?void 0:m[g.route.id])!==void 0);ft(S>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),d=d.slice(0,Math.min(d.length,S+1))}let p=!1,y=-1;if(u&&c){p=c.renderFallback;for(let S=0;S<d.length;S++){let g=d[S];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(y=S),g.route.id){let{loaderData:w,errors:E}=c,j=g.route.loader&&!w.hasOwnProperty(g.route.id)&&(!E||E[g.route.id]===void 0);if(g.route.lazy||j){u.isStatic&&(p=!0),y>=0?d=d.slice(0,y+1):d=[d[0]];break}}}}let v=u==null?void 0:u.onError,h=c&&v?(S,g)=>{var w,E;v(S,{location:c.location,params:((E=(w=c.matches)==null?void 0:w[0])==null?void 0:E.params)??{},pattern:ry(c.matches),errorInfo:g})}:void 0;return d.reduceRight((S,g,w)=>{let E,j=!1,C=null,_=null;c&&(E=m&&g.route.id?m[g.route.id]:void 0,C=g.route.errorElement||Sy,p&&(y<0&&w===0?(mp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,_=null):y===w&&(j=!0,_=g.route.hydrateFallbackElement||null)));let z=i.concat(d.slice(0,w+1)),L=()=>{let K;return E?K=C:j?K=_:g.route.Component?K=b.createElement(g.route.Component,null):g.route.element?K=g.route.element:K=S,b.createElement(jy,{match:g,routeContext:{outlet:S,matches:z,isDataRoute:c!=null},children:K})};return c&&(g.route.ErrorBoundary||g.route.errorElement||w===0)?b.createElement(fp,{location:c.location,revalidation:c.revalidation,component:C,error:E,children:L(),routeContext:{outlet:null,matches:z,isDataRoute:!0},onError:h}):L()},null)}function yd(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ey(l){let i=b.useContext(gs);return ft(i,yd(l)),i}function Ay(l){let i=b.useContext(Lo);return ft(i,yd(l)),i}function Cy(l){let i=b.useContext(pl);return ft(i,yd(l)),i}function xd(l){let i=Cy(l),u=i.matches[i.matches.length-1];return ft(u.route.id,`${l} can only be used on routes that contain a unique "id"`),u.route.id}function Ty(){return xd("useRouteId")}function zy(){var c;let l=b.useContext(vd),i=Ay("useRouteError"),u=xd("useRouteError");return l!==void 0?l:(c=i.errors)==null?void 0:c[u]}function _y(){let{router:l}=Ey("useNavigate"),i=xd("useNavigate"),u=b.useRef(!1);return cp(()=>{u.current=!0}),b.useCallback(async(d,m={})=>{Ln(u.current,op),u.current&&(typeof d=="number"?await l.navigate(d):await l.navigate(d,{fromRouteId:i,...m}))},[l,i])}var A0={};function mp(l,i,u){!i&&!A0[l]&&(A0[l]=!0,Ln(!1,u))}b.memo(Ry);function Ry({routes:l,manifest:i,future:u,state:c,isStatic:d,onError:m}){return dp(l,void 0,{manifest:i,state:c,isStatic:d,onError:m})}function Ua(l){ft(!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 My({basename:l="/",children:i=null,location:u,navigationType:c="POP",navigator:d,static:m=!1,useTransitions:p}){ft(!vi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let y=l.replace(/^\/*/,"/"),v=b.useMemo(()=>({basename:y,navigator:d,static:m,useTransitions:p,future:{}}),[y,d,m,p]);typeof u=="string"&&(u=ps(u));let{pathname:h="/",search:S="",hash:g="",state:w=null,key:E="default",mask:j}=u,C=b.useMemo(()=>{let _=ml(h,y);return _==null?null:{location:{pathname:_,search:S,hash:g,state:w,key:E,mask:j},navigationType:c}},[y,h,S,g,w,E,c,j]);return Ln(C!=null,`<Router basename="${y}"> is not able to match the URL "${h}${S}${g}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:b.createElement(sn.Provider,{value:v},b.createElement(gi.Provider,{children:i,value:C}))}function ky({children:l,location:i}){return xy(ad(l),i)}function ad(l,i=[]){let u=[];return b.Children.forEach(l,(c,d)=>{if(!b.isValidElement(c))return;let m=[...i,d];if(c.type===b.Fragment){u.push.apply(u,ad(c.props.children,m));return}ft(c.type===Ua,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ft(!c.props.index||!c.props.children,"An index route cannot have child routes.");let p={id:c.props.id||m.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(p.children=ad(c.props.children,m)),u.push(p)}),u}var Mo="get",ko="application/x-www-form-urlencoded";function Ho(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function Dy(l){return Ho(l)&&l.tagName.toLowerCase()==="button"}function Oy(l){return Ho(l)&&l.tagName.toLowerCase()==="form"}function Uy(l){return Ho(l)&&l.tagName.toLowerCase()==="input"}function Ly(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function Hy(l,i){return l.button===0&&(!i||i==="_self")&&!Ly(l)}var Co=null;function By(){if(Co===null)try{new FormData(document.createElement("form"),0),Co=!1}catch{Co=!0}return Co}var qy=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Wu(l){return l!=null&&!qy.has(l)?(Ln(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ko}"`),null):l}function Yy(l,i){let u,c,d,m,p;if(Oy(l)){let y=l.getAttribute("action");c=y?ml(y,i):null,u=l.getAttribute("method")||Mo,d=Wu(l.getAttribute("enctype"))||ko,m=new FormData(l)}else if(Dy(l)||Uy(l)&&(l.type==="submit"||l.type==="image")){let y=l.form;if(y==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=l.getAttribute("formaction")||y.getAttribute("action");if(c=v?ml(v,i):null,u=l.getAttribute("formmethod")||y.getAttribute("method")||Mo,d=Wu(l.getAttribute("formenctype"))||Wu(y.getAttribute("enctype"))||ko,m=new FormData(y,l),!By()){let{name:h,type:S,value:g}=l;if(S==="image"){let w=h?`${h}.`:"";m.append(`${w}x`,"0"),m.append(`${w}y`,"0")}else h&&m.append(h,g)}}else{if(Ho(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');u=Mo,c=null,d=ko,p=l}return m&&d==="text/plain"&&(p=m,m=void 0),{action:c,method:u.toLowerCase(),encType:d,formData:m,body:p}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function bd(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function hp(l,i,u,c){let d=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return u?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${c}`:d.pathname=`${d.pathname}.${c}`:d.pathname==="/"?d.pathname=`_root.${c}`:i&&ml(d.pathname,i)==="/"?d.pathname=`${ms(i)}/_root.${c}`:d.pathname=`${ms(d.pathname)}.${c}`,d}async function Gy(l,i){if(l.id in i)return i[l.id];try{let u=await import(l.module);return i[l.id]=u,u}catch(u){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(u),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Vy(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 Xy(l,i,u){let c=await Promise.all(l.map(async d=>{let m=i.routes[d.route.id];if(m){let p=await Gy(m,u);return p.links?p.links():[]}return[]}));return $y(c.flat(1).filter(Vy).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function C0(l,i,u,c,d,m){let p=(v,h)=>u[h]?v.route.id!==u[h].route.id:!0,y=(v,h)=>{var S;return u[h].pathname!==v.pathname||((S=u[h].route.path)==null?void 0:S.endsWith("*"))&&u[h].params["*"]!==v.params["*"]};return m==="assets"?i.filter((v,h)=>p(v,h)||y(v,h)):m==="data"?i.filter((v,h)=>{var g;let S=c.routes[v.route.id];if(!S||!S.hasLoader)return!1;if(p(v,h)||y(v,h))return!0;if(v.route.shouldRevalidate){let w=v.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((g=u[0])==null?void 0:g.params)||{},nextUrl:new URL(l,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function Qy(l,i,{includeHydrateFallback:u}={}){return Zy(l.map(c=>{let d=i.routes[c.route.id];if(!d)return[];let m=[d.module];return d.clientActionModule&&(m=m.concat(d.clientActionModule)),d.clientLoaderModule&&(m=m.concat(d.clientLoaderModule)),u&&d.hydrateFallbackModule&&(m=m.concat(d.hydrateFallbackModule)),d.imports&&(m=m.concat(d.imports)),m}).flat(1))}function Zy(l){return[...new Set(l)]}function Ky(l){let i={},u=Object.keys(l).sort();for(let c of u)i[c]=l[c];return i}function $y(l,i){let u=new Set;return new Set(i),l.reduce((c,d)=>{let m=JSON.stringify(Ky(d));return u.has(m)||(u.add(m),c.push({key:m,link:d})),c},[])}function Sd(){let l=b.useContext(gs);return bd(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function Jy(){let l=b.useContext(Lo);return bd(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var wd=b.createContext(void 0);wd.displayName="FrameworkContext";function Bo(){let l=b.useContext(wd);return bd(l,"You must render this element inside a <HydratedRouter> element"),l}function Wy(l,i){let u=b.useContext(wd),[c,d]=b.useState(!1),[m,p]=b.useState(!1),{onFocus:y,onBlur:v,onMouseEnter:h,onMouseLeave:S,onTouchStart:g}=i,w=b.useRef(null);b.useEffect(()=>{if(l==="render"&&p(!0),l==="viewport"){let C=z=>{z.forEach(L=>{p(L.isIntersecting)})},_=new IntersectionObserver(C,{threshold:.5});return w.current&&_.observe(w.current),()=>{_.disconnect()}}},[l]),b.useEffect(()=>{if(c){let C=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(C)}}},[c]);let E=()=>{d(!0)},j=()=>{d(!1),p(!1)};return u?l!=="intent"?[m,w,{}]:[m,w,{onFocus:di(y,E),onBlur:di(v,j),onMouseEnter:di(h,E),onMouseLeave:di(S,j),onTouchStart:di(g,E)}]:[!1,w,{}]}function di(l,i){return u=>{l&&l(u),u.defaultPrevented||i(u)}}function Iy({page:l,...i}){let u=uy(),{nonce:c}=Bo(),{router:d}=Sd(),m=b.useMemo(()=>K0(d.routes,l,d.basename),[d.routes,l,d.basename]);return m?(i.nonce==null&&c&&(i={...i,nonce:c}),u?b.createElement(Py,{page:l,matches:m,...i}):b.createElement(ex,{page:l,matches:m,...i})):null}function Fy(l){let{manifest:i,routeModules:u}=Bo(),[c,d]=b.useState([]);return b.useEffect(()=>{let m=!1;return Xy(l,i,u).then(p=>{m||d(p)}),()=>{m=!0}},[l,i,u]),c}function Py({page:l,matches:i,...u}){let c=yn(),{future:d}=Bo(),{basename:m}=Sd(),p=b.useMemo(()=>{if(l===c.pathname+c.search+c.hash)return[];let y=hp(l,m,d.v8_trailingSlashAwareDataRequests,"rsc"),v=!1,h=[];for(let S of i)typeof S.route.shouldRevalidate=="function"?v=!0:h.push(S.route.id);return v&&h.length>0&&y.searchParams.set("_routes",h.join(",")),[y.pathname+y.search]},[m,d.v8_trailingSlashAwareDataRequests,l,c,i]);return b.createElement(b.Fragment,null,p.map(y=>b.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...u})))}function ex({page:l,matches:i,...u}){let c=yn(),{future:d,manifest:m,routeModules:p}=Bo(),{basename:y}=Sd(),{loaderData:v,matches:h}=Jy(),S=b.useMemo(()=>C0(l,i,h,m,c,"data"),[l,i,h,m,c]),g=b.useMemo(()=>C0(l,i,h,m,c,"assets"),[l,i,h,m,c]),w=b.useMemo(()=>{if(l===c.pathname+c.search+c.hash)return[];let C=new Set,_=!1;if(i.forEach(L=>{var ee;let K=m.routes[L.route.id];!K||!K.hasLoader||(!S.some(J=>J.route.id===L.route.id)&&L.route.id in v&&((ee=p[L.route.id])!=null&&ee.shouldRevalidate)||K.hasClientLoader?_=!0:C.add(L.route.id))}),C.size===0)return[];let z=hp(l,y,d.v8_trailingSlashAwareDataRequests,"data");return _&&C.size>0&&z.searchParams.set("_routes",i.filter(L=>C.has(L.route.id)).map(L=>L.route.id).join(",")),[z.pathname+z.search]},[y,d.v8_trailingSlashAwareDataRequests,v,c,m,S,i,l,p]),E=b.useMemo(()=>Qy(g,m),[g,m]),j=Fy(g);return b.createElement(b.Fragment,null,w.map(C=>b.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...u})),E.map(C=>b.createElement("link",{key:C,rel:"modulepreload",href:C,...u})),j.map(({key:C,link:_})=>b.createElement("link",{key:C,nonce:u.nonce,..._,crossOrigin:_.crossOrigin??u.crossOrigin})))}function tx(...l){return i=>{l.forEach(u=>{typeof u=="function"?u(i):u!=null&&(u.current=i)})}}var ax=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ax&&(window.__reactRouterVersion="7.18.4")}catch{}function nx({basename:l,children:i,useTransitions:u,window:c}){let d=b.useRef();d.current==null&&(d.current=Ov({window:c,v5Compat:!0}));let m=d.current,[p,y]=b.useState({action:m.action,location:m.location}),v=b.useCallback(h=>{u===!1?y(h):b.startTransition(()=>y(h))},[u]);return b.useLayoutEffect(()=>m.listen(v),[m,v]),b.createElement(My,{basename:l,children:i,location:p.location,navigationType:p.action,navigator:m,useTransitions:u})}var jd=b.forwardRef(function({onClick:i,discover:u="render",prefetch:c="none",relative:d,reloadDocument:m,replace:p,mask:y,state:v,target:h,to:S,preventScrollReset:g,viewTransition:w,defaultShouldRevalidate:E,...j},C){let{basename:_,navigator:z,useTransitions:L}=b.useContext(sn),K=typeof S=="string"&&pd.test(S),ee=tp(S,_);S=ee.to;let J=vy(S,{relative:d}),I=yn(),Z=null;if(y){let ge=gd(y,[],I.mask?I.mask.pathname:"/",!0);_!=="/"&&(ge.pathname=ge.pathname==="/"?_:vn([_,ge.pathname])),Z=z.createHref(ge)}let[Q,pe,xe]=Wy(c,j),Ee=ix(S,{replace:p,mask:y,state:v,target:h,preventScrollReset:g,relative:d,viewTransition:w,defaultShouldRevalidate:E,useTransitions:L});function Re(ge){i&&i(ge),ge.defaultPrevented||Ee(ge)}let Xe=!(ee.isExternal||m),ne=b.createElement("a",{...j,...xe,href:(Xe?Z:void 0)||ee.absoluteURL||J,onClick:Xe?Re:i,ref:tx(C,pe),target:h,"data-discover":!K&&u==="render"?"true":void 0});return Q&&!K?b.createElement(b.Fragment,null,ne,b.createElement(Iy,{page:J})):ne});jd.displayName="Link";var lx=b.forwardRef(function({"aria-current":i="page",caseSensitive:u=!1,className:c="",end:d=!1,style:m,to:p,viewTransition:y,children:v,...h},S){let g=yi(p,{relative:h.relative}),w=yn(),E=b.useContext(Lo),{navigator:j,basename:C}=b.useContext(sn),_=E!=null&&fx(g)&&y===!0,z=j.encodeLocation?j.encodeLocation(g).pathname:g.pathname,L=w.pathname,K=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;u||(L=L.toLowerCase(),K=K?K.toLowerCase():null,z=z.toLowerCase()),K&&C&&(K=ml(K,C)||K);const ee=z!=="/"&&z.endsWith("/")?z.length-1:z.length;let J=L===z||!d&&L.startsWith(z)&&L.charAt(ee)==="/",I=K!=null&&(K===z||!d&&K.startsWith(z)&&K.charAt(z.length)==="/"),Z={isActive:J,isPending:I,isTransitioning:_},Q=J?i:void 0,pe;typeof c=="function"?pe=c(Z):pe=[c,J?"active":null,I?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let xe=typeof m=="function"?m(Z):m;return b.createElement(jd,{...h,"aria-current":Q,className:pe,ref:S,style:xe,to:p,viewTransition:y},typeof v=="function"?v(Z):v)});lx.displayName="NavLink";var rx=b.forwardRef(({discover:l="render",fetcherKey:i,navigate:u,reloadDocument:c,replace:d,state:m,method:p=Mo,action:y,onSubmit:v,relative:h,preventScrollReset:S,viewTransition:g,defaultShouldRevalidate:w,...E},j)=>{let{useTransitions:C}=b.useContext(sn),_=ux(),z=dx(y,{relative:h}),L=p.toLowerCase()==="get"?"get":"post",K=typeof y=="string"&&pd.test(y),ee=J=>{if(v&&v(J),J.defaultPrevented)return;J.preventDefault();let I=J.nativeEvent.submitter,Z=(I==null?void 0:I.getAttribute("formmethod"))||p,Q=()=>_(I||J.currentTarget,{fetcherKey:i,method:Z,navigate:u,replace:d,state:m,relative:h,preventScrollReset:S,viewTransition:g,defaultShouldRevalidate:w});C&&u!==!1?b.startTransition(()=>Q()):Q()};return b.createElement("form",{ref:j,method:L,action:z,onSubmit:c?v:ee,...E,"data-discover":!K&&l==="render"?"true":void 0})});rx.displayName="Form";function sx(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function pp(l){let i=b.useContext(gs);return ft(i,sx(l)),i}function ix(l,{target:i,replace:u,mask:c,state:d,preventScrollReset:m,relative:p,viewTransition:y,defaultShouldRevalidate:v,useTransitions:h}={}){let S=up(),g=yn(),w=yi(l,{relative:p});return b.useCallback(E=>{if(Hy(E,i)){E.preventDefault();let j=u!==void 0?u:fs(g)===fs(w),C=()=>S(l,{replace:j,mask:c,state:d,preventScrollReset:m,relative:p,viewTransition:y,defaultShouldRevalidate:v});h?b.startTransition(()=>C()):C()}},[g,S,w,u,c,d,i,l,m,p,y,v,h])}var ox=0,cx=()=>`__${String(++ox)}__`;function ux(){let{router:l}=pp("useSubmit"),{basename:i}=b.useContext(sn),u=Ty(),c=l.fetch,d=l.navigate;return b.useCallback(async(m,p={})=>{let{action:y,method:v,encType:h,formData:S,body:g}=Yy(m,i);if(p.navigate===!1){let w=p.fetcherKey||cx();await c(w,u,p.action||y,{defaultShouldRevalidate:p.defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:S,body:g,formMethod:p.method||v,formEncType:p.encType||h,flushSync:p.flushSync})}else await d(p.action||y,{defaultShouldRevalidate:p.defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:S,body:g,formMethod:p.method||v,formEncType:p.encType||h,replace:p.replace,state:p.state,fromRouteId:u,flushSync:p.flushSync,viewTransition:p.viewTransition})},[c,d,i,u])}function dx(l,{relative:i}={}){let{basename:u}=b.useContext(sn),c=b.useContext(pl);ft(c,"useFormAction must be used inside a RouteContext");let[d]=c.matches.slice(-1),m={...yi(l||".",{relative:i})},p=yn();if(l==null){m.search=p.search;let y=new URLSearchParams(m.search),v=y.getAll("index");if(v.some(S=>S==="")){y.delete("index"),v.filter(g=>g).forEach(g=>y.append("index",g));let S=y.toString();m.search=S?`?${S}`:""}}return(!l||l===".")&&d.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),u!=="/"&&(m.pathname=m.pathname==="/"?u:vn([u,m.pathname])),fs(m)}function fx(l,{relative:i}={}){let u=b.useContext(sp);ft(u!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=pp("useViewTransitionState"),d=yi(l,{relative:i});if(!u.isTransitioning)return!1;let m=ml(u.currentLocation.pathname,c)||u.currentLocation.pathname,p=ml(u.nextLocation.pathname,c)||u.nextLocation.pathname;return Do(d.pathname,p)!=null||Do(d.pathname,m)!=null}var gp=Q0();const mx=X0(gp),vp=b.createContext(void 0);function hx({children:l}){const[i,u]=b.useState(null),[c,d]=b.useState(null),[m,p]=b.useState(!0),y=up(),v=yn(),h="",S=b.useCallback(async()=>{const j=c||(typeof window<"u"?localStorage.getItem("notifkit_admin_token"):null);if(j)try{await fetch(`${h}/v1/auth/logout`,{method:"POST",headers:{Authorization:`Bearer ${j}`}})}catch{}typeof window<"u"&&(localStorage.removeItem("notifkit_admin_token"),localStorage.removeItem("notifkit_admin_user")),u(null),d(null),y("/login")},[h,c,y]),g=b.useCallback(async j=>{try{const C=await fetch(`${h}/v1/auth/me`,{headers:{Authorization:`Bearer ${j}`}});if(C.ok){const _=await C.json();return u(_.user),d(j),typeof window<"u"&&localStorage.setItem("notifkit_admin_user",JSON.stringify(_.user)),!0}else return typeof window<"u"&&(localStorage.removeItem("notifkit_admin_token"),localStorage.removeItem("notifkit_admin_user")),u(null),d(null),!1}catch{const C=typeof window<"u"?localStorage.getItem("notifkit_admin_user"):null;if(C)try{return u(JSON.parse(C)),d(j),!0}catch{}return!1}},[h]);b.useEffect(()=>{(async()=>{const C=typeof window<"u"?localStorage.getItem("notifkit_admin_token"):null;C&&await g(C),p(!1)})()},[g]);const w=async(j,C)=>{try{const _=await fetch(`${h}/v1/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identifier:j,password:C})}),z=await _.json();return _.ok?(d(z.token),u(z.user),typeof window<"u"&&(localStorage.setItem("notifkit_admin_token",z.token),localStorage.setItem("notifkit_admin_user",JSON.stringify(z.user))),y("/"),{success:!0}):{success:!1,error:z.message||"Invalid credentials"}}catch(_){return{success:!1,error:_ instanceof Error?_.message:"Failed to connect to server"}}},E=v.pathname==="/login"||v.pathname==="/login/";return b.useEffect(()=>{m||(!c&&!E?y("/login"):c&&E&&y("/"))},[m,c,E,y]),o.jsx(vp.Provider,{value:{user:i,token:c,isLoading:m,isAuthenticated:!!c,login:w,logout:S,apiUrl:h},children:l})}function ya(){const l=b.useContext(vp);if(l===void 0)throw new Error("useAuth must be used within an AuthProvider");return l}const yp=b.createContext(void 0);function px({children:l}){const{token:i,apiUrl:u,isAuthenticated:c}=ya(),[d,m]=b.useState([]),[p,y]=b.useState(""),[v,h]=b.useState(!0),S=b.useCallback(async()=>{if(!i){m([]),y(""),h(!1);return}try{h(!0);const g=await fetch(`${u}/v1/projects`,{headers:{Authorization:`Bearer ${i}`}});if(g.ok){const E=(await g.json()).projects||[];m(E),E.length>0?y(j=>E.some(C=>C.id===j)?j:E[0].id):y("")}}catch(g){console.error("Failed to load projects:",g)}finally{h(!1)}},[u,i]);return b.useEffect(()=>{c&&i?S():(m([]),y(""),h(!1))},[c,i,S]),o.jsx(yp.Provider,{value:{projects:d,selectedProjectId:p,setSelectedProjectId:y,projectApiKey:i,isLoadingProjects:v,refreshProjects:S},children:l})}function Hn(){const l=b.useContext(yp);if(l===void 0)throw new Error("useProject must be used within a ProjectProvider");return l}/**
61
+ * @license lucide-react v1.28.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 xp=(...l)=>l.filter((i,u,c)=>!!i&&i.trim()!==""&&c.indexOf(i)===u).join(" ").trim();/**
66
+ * @license lucide-react v1.28.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 gx=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
71
+ * @license lucide-react v1.28.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 vx=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,u,c)=>c?c.toUpperCase():u.toLowerCase());/**
76
+ * @license lucide-react v1.28.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 T0=l=>{const i=vx(l);return i.charAt(0).toUpperCase()+i.slice(1)};/**
81
+ * @license lucide-react v1.28.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 Iu={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 v1.28.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 yx=l=>{for(const i in l)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},xx=b.createContext({}),bx=()=>b.useContext(xx),Sx=b.forwardRef(({color:l,size:i,strokeWidth:u,absoluteStrokeWidth:c,className:d="",children:m,iconNode:p,...y},v)=>{const{size:h=24,strokeWidth:S=2,absoluteStrokeWidth:g=!1,color:w="currentColor",className:E=""}=bx()??{},j=c??g?Number(u??S)*24/Number(i??h):u??S;return b.createElement("svg",{ref:v,...Iu,width:i??h??Iu.width,height:i??h??Iu.height,stroke:l??w,strokeWidth:j,className:xp("lucide",E,d),...!m&&!yx(y)&&{"aria-hidden":"true"},...y},[...p.map(([C,_])=>b.createElement(C,_)),...Array.isArray(m)?m:[m]])});/**
91
+ * @license lucide-react v1.28.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 Ce=(l,i)=>{const u=b.forwardRef(({className:c,...d},m)=>b.createElement(Sx,{ref:m,iconNode:i,className:xp(`lucide-${gx(T0(l))}`,`lucide-${l}`,c),...d}));return u.displayName=T0(l),u};/**
96
+ * @license lucide-react v1.28.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 wx=[["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"}]],Nd=Ce("activity",wx);/**
101
+ * @license lucide-react v1.28.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 jx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Nx=Ce("arrow-right",jx);/**
106
+ * @license lucide-react v1.28.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 Ex=[["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"}]],bp=Ce("bell",Ex);/**
111
+ * @license lucide-react v1.28.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 Ax=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Sp=Ce("chart-column",Ax);/**
116
+ * @license lucide-react v1.28.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 Cx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Tx=Ce("chevron-left",Cx);/**
121
+ * @license lucide-react v1.28.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 zx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],_x=Ce("chevron-right",zx);/**
126
+ * @license lucide-react v1.28.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 Rx=[["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"}]],qo=Ce("circle-alert",Rx);/**
131
+ * @license lucide-react v1.28.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 Mx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],hs=Ce("circle-check",Mx);/**
136
+ * @license lucide-react v1.28.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 kx=[["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"}]],Yo=Ce("circle-x",kx);/**
141
+ * @license lucide-react v1.28.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 Dx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],fl=Ce("clock",Dx);/**
146
+ * @license lucide-react v1.28.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 Ox=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ux=Ce("copy",Ox);/**
151
+ * @license lucide-react v1.28.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 Lx=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Hx=Ce("cpu",Lx);/**
156
+ * @license lucide-react v1.28.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 Bx=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],wp=Ce("database",Bx);/**
161
+ * @license lucide-react v1.28.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 qx=[["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"}]],Yx=Ce("eye-off",qx);/**
166
+ * @license lucide-react v1.28.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 Gx=[["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"}]],vs=Ce("eye",Gx);/**
171
+ * @license lucide-react v1.28.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 Vx=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],jp=Ce("file-code-corner",Vx);/**
176
+ * @license lucide-react v1.28.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 Xx=[["path",{d:"M13 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v1.36",key:"1shsnm"}],["path",{d:"M19 12v6",key:"kflna4"}],["path",{d:"M19 14h2",key:"wp2qbk"}],["circle",{cx:"19",cy:"20",r:"2",key:"1jfyz6"}]],Ed=Ce("folder-key",Xx);/**
181
+ * @license lucide-react v1.28.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 Qx=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],Zx=Ce("git-commit-horizontal",Qx);/**
186
+ * @license lucide-react v1.28.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 Kx=[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]],Np=Ce("git-fork",Kx);/**
191
+ * @license lucide-react v1.28.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 $x=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}],["path",{d:"M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"auskq0"}]],Ep=Ce("heart-pulse",$x);/**
196
+ * @license lucide-react v1.28.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 Jx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Wx=Ce("info",Jx);/**
201
+ * @license lucide-react v1.28.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 Ix=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Ap=Ce("layers",Ix);/**
206
+ * @license lucide-react v1.28.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 Fx=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Px=Ce("layout-dashboard",Fx);/**
211
+ * @license lucide-react v1.28.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 eb=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],mi=Ce("loader-circle",eb);/**
216
+ * @license lucide-react v1.28.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 tb=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],ab=Ce("lock",tb);/**
221
+ * @license lucide-react v1.28.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 nb=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],lb=Ce("log-out",nb);/**
226
+ * @license lucide-react v1.28.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 rb=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],sb=Ce("mail",rb);/**
231
+ * @license lucide-react v1.28.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 ib=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],ob=Ce("octagon-x",ib);/**
236
+ * @license lucide-react v1.28.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 cb=[["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"}]],ub=Ce("play",cb);/**
241
+ * @license lucide-react v1.28.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 db=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],fb=Ce("plus",db);/**
246
+ * @license lucide-react v1.28.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 mb=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],Cr=Ce("refresh-ccw",mb);/**
251
+ * @license lucide-react v1.28.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 hb=[["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"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Cp=Ce("rotate-ccw-clock",hb);/**
256
+ * @license lucide-react v1.28.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 pb=[["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"}]],gb=Ce("rotate-ccw",pb);/**
261
+ * @license lucide-react v1.28.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 vb=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Tp=Ce("search",vb);/**
266
+ * @license lucide-react v1.28.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 yb=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],xb=Ce("send",yb);/**
271
+ * @license lucide-react v1.28.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 bb=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],Sb=Ce("server",bb);/**
276
+ * @license lucide-react v1.28.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 wb=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],jb=Ce("settings-2",wb);/**
281
+ * @license lucide-react v1.28.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 Nb=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Eb=Ce("shield-check",Nb);/**
286
+ * @license lucide-react v1.28.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 Ab=[["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"}]],Ad=Ce("trash-2",Ab);/**
291
+ * @license lucide-react v1.28.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 Cb=[["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"}]],Go=Ce("triangle-alert",Cb);/**
296
+ * @license lucide-react v1.28.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 Tb=[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],zb=Ce("user-check",Tb);/**
301
+ * @license lucide-react v1.28.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 _b=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Rb=Ce("user",_b);/**
306
+ * @license lucide-react v1.28.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 Mb=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],zp=Ce("users",Mb);function _p(l){var i,u,c="";if(typeof l=="string"||typeof l=="number")c+=l;else if(typeof l=="object")if(Array.isArray(l)){var d=l.length;for(i=0;i<d;i++)l[i]&&(u=_p(l[i]))&&(c&&(c+=" "),c+=u)}else for(u in l)l[u]&&(c&&(c+=" "),c+=u);return c}function Rp(){for(var l,i,u=0,c="",d=arguments.length;u<d;u++)(l=arguments[u])&&(i=_p(l))&&(c&&(c+=" "),c+=i);return c}const kb=(l,i)=>{const u=new Array(l.length+i.length);for(let c=0;c<l.length;c++)u[c]=l[c];for(let c=0;c<i.length;c++)u[l.length+c]=i[c];return u},Db=(l,i)=>({classGroupId:l,validator:i}),Mp=(l=new Map,i=null,u)=>({nextPart:l,validators:i,classGroupId:u}),Oo="-",z0=[],Ob="arbitrary..",Ub=l=>{const i=Hb(l),{conflictingClassGroups:u,conflictingClassGroupModifiers:c}=l;return{getClassGroupId:p=>{if(p.startsWith("[")&&p.endsWith("]"))return Lb(p);const y=p.split(Oo),v=y[0]===""&&y.length>1?1:0;return kp(y,v,i)},getConflictingClassGroupIds:(p,y)=>{if(y){const v=c[p],h=u[p];return v?h?kb(h,v):v:h||z0}return u[p]||z0}}},kp=(l,i,u)=>{if(l.length-i===0)return u.classGroupId;const d=l[i],m=u.nextPart.get(d);if(m){const h=kp(l,i+1,m);if(h)return h}const p=u.validators;if(p===null)return;const y=i===0?l.join(Oo):l.slice(i).join(Oo),v=p.length;for(let h=0;h<v;h++){const S=p[h];if(S.validator(y))return S.classGroupId}},Lb=l=>l.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=l.slice(1,-1),u=i.indexOf(":"),c=i.slice(0,u);return c?Ob+c:void 0})(),Hb=l=>{const{theme:i,classGroups:u}=l;return Bb(u,i)},Bb=(l,i)=>{const u=Mp();for(const c in l){const d=l[c];Cd(d,u,c,i)}return u},Cd=(l,i,u,c)=>{const d=l.length;for(let m=0;m<d;m++){const p=l[m];qb(p,i,u,c)}},qb=(l,i,u,c)=>{if(typeof l=="string"){Yb(l,i,u);return}if(typeof l=="function"){Gb(l,i,u,c);return}Vb(l,i,u,c)},Yb=(l,i,u)=>{const c=l===""?i:Dp(i,l);c.classGroupId=u},Gb=(l,i,u,c)=>{if(Xb(l)){Cd(l(c),i,u,c);return}i.validators===null&&(i.validators=[]),i.validators.push(Db(u,l))},Vb=(l,i,u,c)=>{const d=Object.entries(l),m=d.length;for(let p=0;p<m;p++){const[y,v]=d[p];Cd(v,Dp(i,y),u,c)}},Dp=(l,i)=>{let u=l;const c=i.split(Oo),d=c.length;for(let m=0;m<d;m++){const p=c[m];let y=u.nextPart.get(p);y||(y=Mp(),u.nextPart.set(p,y)),u=y}return u},Xb=l=>"isThemeGetter"in l&&l.isThemeGetter===!0,Qb=l=>{if(l<1)return{get:()=>{},set:()=>{}};let i=0,u=Object.create(null),c=Object.create(null);const d=(m,p)=>{u[m]=p,i++,i>l&&(i=0,c=u,u=Object.create(null))};return{get(m){let p=u[m];if(p!==void 0)return p;if((p=c[m])!==void 0)return d(m,p),p},set(m,p){m in u?u[m]=p:d(m,p)}}},nd="!",_0=":",Zb=[],R0=(l,i,u,c,d)=>({modifiers:l,hasImportantModifier:i,baseClassName:u,maybePostfixModifierPosition:c,isExternal:d}),Kb=l=>{const{prefix:i,experimentalParseClassName:u}=l;let c=d=>{const m=[];let p=0,y=0,v=0,h;const S=d.length;for(let C=0;C<S;C++){const _=d[C];if(p===0&&y===0){if(_===_0){m.push(d.slice(v,C)),v=C+1;continue}if(_==="/"){h=C;continue}}_==="["?p++:_==="]"?p--:_==="("?y++:_===")"&&y--}const g=m.length===0?d:d.slice(v);let w=g,E=!1;g.endsWith(nd)?(w=g.slice(0,-1),E=!0):g.startsWith(nd)&&(w=g.slice(1),E=!0);const j=h&&h>v?h-v:void 0;return R0(m,E,w,j)};if(i){const d=i+_0,m=c;c=p=>p.startsWith(d)?m(p.slice(d.length)):R0(Zb,!1,p,void 0,!0)}if(u){const d=c;c=m=>u({className:m,parseClassName:d})}return c},$b=l=>{const i=new Map;return l.orderSensitiveModifiers.forEach((u,c)=>{i.set(u,1e6+c)}),u=>{const c=[];let d=[];for(let m=0;m<u.length;m++){const p=u[m],y=p[0]==="[",v=i.has(p);y||v?(d.length>0&&(d.sort(),c.push(...d),d=[]),c.push(p)):d.push(p)}return d.length>0&&(d.sort(),c.push(...d)),c}},Jb=l=>({cache:Qb(l.cacheSize),parseClassName:Kb(l),sortModifiers:$b(l),postfixLookupClassGroupIds:Wb(l),...Ub(l)}),Wb=l=>{const i=Object.create(null),u=l.postfixLookupClassGroups;if(u)for(let c=0;c<u.length;c++)i[u[c]]=!0;return i},Ib=/\s+/,Fb=(l,i)=>{const{parseClassName:u,getClassGroupId:c,getConflictingClassGroupIds:d,sortModifiers:m,postfixLookupClassGroupIds:p}=i,y=[],v=l.trim().split(Ib);let h="";for(let S=v.length-1;S>=0;S-=1){const g=v[S],{isExternal:w,modifiers:E,hasImportantModifier:j,baseClassName:C,maybePostfixModifierPosition:_}=u(g);if(w){h=g+(h.length>0?" "+h:h);continue}let z=!!_,L;if(z){const Z=C.substring(0,_);L=c(Z);const Q=L&&p[L]?c(C):void 0;Q&&Q!==L&&(L=Q,z=!1)}else L=c(C);if(!L){if(!z){h=g+(h.length>0?" "+h:h);continue}if(L=c(C),!L){h=g+(h.length>0?" "+h:h);continue}z=!1}const K=E.length===0?"":E.length===1?E[0]:m(E).join(":"),ee=j?K+nd:K,J=ee+L;if(y.indexOf(J)>-1)continue;y.push(J);const I=d(L,z);for(let Z=0;Z<I.length;++Z){const Q=I[Z];y.push(ee+Q)}h=g+(h.length>0?" "+h:h)}return h},Pb=(...l)=>{let i=0,u,c,d="";for(;i<l.length;)(u=l[i++])&&(c=Op(u))&&(d&&(d+=" "),d+=c);return d},Op=l=>{if(typeof l=="string")return l;let i,u="";for(let c=0;c<l.length;c++)l[c]&&(i=Op(l[c]))&&(u&&(u+=" "),u+=i);return u},e1=(l,...i)=>{let u,c,d,m;const p=v=>{const h=i.reduce((S,g)=>g(S),l());return u=Jb(h),c=u.cache.get,d=u.cache.set,m=y,y(v)},y=v=>{const h=c(v);if(h)return h;const S=Fb(v,u);return d(v,S),S};return m=p,(...v)=>m(Pb(...v))},t1=[],Bt=l=>{const i=u=>u[l]||t1;return i.isThemeGetter=!0,i},Up=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Lp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,a1=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,n1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,l1=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,r1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,s1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,i1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jl=l=>a1.test(l),_e=l=>!!l&&!Number.isNaN(Number(l)),Dn=l=>!!l&&Number.isInteger(Number(l)),Fu=l=>l.endsWith("%")&&_e(l.slice(0,-1)),dl=l=>n1.test(l),Hp=()=>!0,o1=l=>l1.test(l)&&!r1.test(l),Td=()=>!1,c1=l=>s1.test(l),u1=l=>i1.test(l),d1=l=>!se(l)&&!ie(l),f1=l=>l.startsWith("@container")&&(l[10]==="/"&&l[11]!==void 0||l[11]==="s"&&l[16]!==void 0&&l.startsWith("-size/",10)||l[11]==="n"&&l[18]!==void 0&&l.startsWith("-normal/",10)),m1=l=>Pl(l,Yp,Td),se=l=>Up.test(l),jr=l=>Pl(l,Gp,o1),M0=l=>Pl(l,S1,_e),h1=l=>Pl(l,Xp,Hp),p1=l=>Pl(l,Vp,Td),k0=l=>Pl(l,Bp,Td),g1=l=>Pl(l,qp,u1),To=l=>Pl(l,Qp,c1),ie=l=>Lp.test(l),fi=l=>Tr(l,Gp),v1=l=>Tr(l,Vp),D0=l=>Tr(l,Bp),y1=l=>Tr(l,Yp),x1=l=>Tr(l,qp),zo=l=>Tr(l,Qp,!0),b1=l=>Tr(l,Xp,!0),Pl=(l,i,u)=>{const c=Up.exec(l);return c?c[1]?i(c[1]):u(c[2]):!1},Tr=(l,i,u=!1)=>{const c=Lp.exec(l);return c?c[1]?i(c[1]):u:!1},Bp=l=>l==="position"||l==="percentage",qp=l=>l==="image"||l==="url",Yp=l=>l==="length"||l==="size"||l==="bg-size",Gp=l=>l==="length",S1=l=>l==="number",Vp=l=>l==="family-name",Xp=l=>l==="number"||l==="weight",Qp=l=>l==="shadow",w1=()=>{const l=Bt("color"),i=Bt("font"),u=Bt("text"),c=Bt("font-weight"),d=Bt("tracking"),m=Bt("leading"),p=Bt("breakpoint"),y=Bt("container"),v=Bt("spacing"),h=Bt("radius"),S=Bt("shadow"),g=Bt("inset-shadow"),w=Bt("text-shadow"),E=Bt("drop-shadow"),j=Bt("blur"),C=Bt("perspective"),_=Bt("aspect"),z=Bt("ease"),L=Bt("animate"),K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],J=()=>[...ee(),ie,se],I=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],Q=()=>[ie,se,v],pe=()=>[Jl,"full","auto",...Q()],xe=()=>[Dn,"none","subgrid",ie,se],Ee=()=>["auto",{span:["full",Dn,ie,se]},Dn,ie,se],Re=()=>[Dn,"auto",ie,se],Xe=()=>["auto","min","max","fr",ie,se],ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ge=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...Q()],G=()=>[Jl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Q()],re=()=>[Jl,"screen","full","dvw","lvw","svw","min","max","fit",...Q()],Se=()=>[Jl,"screen","full","lh","dvh","lvh","svh","min","max","fit",...Q()],W=()=>[l,ie,se],A=()=>[...ee(),D0,k0,{position:[ie,se]}],q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",y1,m1,{size:[ie,se]}],P=()=>[Fu,fi,jr],te=()=>["","none","full",h,ie,se],le=()=>["",_e,fi,jr],je=()=>["solid","dashed","dotted","double"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[_e,Fu,D0,k0],ea=()=>["","none",j,ie,se],Wt=()=>["none",_e,ie,se],dt=()=>["none",_e,ie,se],xa=()=>[_e,ie,se],Mt=()=>[Jl,"full",...Q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[dl],breakpoint:[dl],color:[Hp],container:[dl],"drop-shadow":[dl],ease:["in","out","in-out"],font:[d1],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[dl],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[dl],shadow:[dl],spacing:["px",_e],text:[dl],"text-shadow":[dl],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Jl,se,ie,_]}],container:["container"],"container-type":[{"@container":["","normal","size",ie,se]}],"container-named":[f1],columns:[{columns:[_e,se,ie,y]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:J()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:pe()}],"inset-x":[{"inset-x":pe()}],"inset-y":[{"inset-y":pe()}],start:[{"inset-s":pe(),start:pe()}],end:[{"inset-e":pe(),end:pe()}],"inset-bs":[{"inset-bs":pe()}],"inset-be":[{"inset-be":pe()}],top:[{top:pe()}],right:[{right:pe()}],bottom:[{bottom:pe()}],left:[{left:pe()}],visibility:["visible","invisible","collapse"],z:[{z:[Dn,"auto",ie,se]}],basis:[{basis:[Jl,"full","auto",y,...Q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,Jl,"auto","initial","none",se]}],grow:[{grow:["",_e,ie,se]}],shrink:[{shrink:["",_e,ie,se]}],order:[{order:[Dn,"first","last","none",ie,se]}],"grid-cols":[{"grid-cols":xe()}],"col-start-end":[{col:Ee()}],"col-start":[{"col-start":Re()}],"col-end":[{"col-end":Re()}],"grid-rows":[{"grid-rows":xe()}],"row-start-end":[{row:Ee()}],"row-start":[{"row-start":Re()}],"row-end":[{"row-end":Re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Xe()}],"auto-rows":[{"auto-rows":Xe()}],gap:[{gap:Q()}],"gap-x":[{"gap-x":Q()}],"gap-y":[{"gap-y":Q()}],"justify-content":[{justify:[...ne(),"normal"]}],"justify-items":[{"justify-items":[...ge(),"normal"]}],"justify-self":[{"justify-self":["auto",...ge()]}],"align-content":[{content:["normal",...ne()]}],"align-items":[{items:[...ge(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ge(),{baseline:["","last"]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...ge(),"baseline"]}],"place-self":[{"place-self":["auto",...ge()]}],p:[{p:Q()}],px:[{px:Q()}],py:[{py:Q()}],ps:[{ps:Q()}],pe:[{pe:Q()}],pbs:[{pbs:Q()}],pbe:[{pbe:Q()}],pt:[{pt:Q()}],pr:[{pr:Q()}],pb:[{pb:Q()}],pl:[{pl:Q()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":Q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Q()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],"inline-size":[{inline:["auto",...re()]}],"min-inline-size":[{"min-inline":["auto",...re()]}],"max-inline-size":[{"max-inline":["none",...re()]}],"block-size":[{block:["auto",...Se()]}],"min-block-size":[{"min-block":["auto",...Se()]}],"max-block-size":[{"max-block":["none",...Se()]}],w:[{w:[y,"screen",...G()]}],"min-w":[{"min-w":[y,"screen","none",...G()]}],"max-w":[{"max-w":[y,"screen","none","prose",{screen:[p]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",u,fi,jr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[c,b1,h1]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Fu,se]}],"font-family":[{font:[v1,p1,i]}],"font-features":[{"font-features":[se]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[d,ie,se]}],"line-clamp":[{"line-clamp":[_e,"none",ie,M0]}],leading:[{leading:[m,...Q()]}],"list-image":[{"list-image":["none",ie,se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...je(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",ie,jr]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[_e,"auto",ie,se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Q()}],"tab-size":[{tab:[Dn,ie,se]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie,se]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie,se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:q()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Dn,ie,se],radial:["",ie,se],conic:[Dn,ie,se]},x1,g1]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...je(),"hidden","none"]}],"divide-style":[{divide:[...je(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-bs":[{"border-bs":W()}],"border-color-be":[{"border-be":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...je(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,ie,se]}],"outline-w":[{outline:["",_e,fi,jr]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",S,zo,To]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",g,zo,To]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[_e,jr]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",w,zo,To]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[_e,ie,se]}],"mix-blend":[{"mix-blend":[...we(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":we()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[_e]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[ie,se]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":ee()}],"mask-image-conic-pos":[{"mask-conic":[_e]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:q()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,se]}],filter:[{filter:["","none",ie,se]}],blur:[{blur:ea()}],brightness:[{brightness:[_e,ie,se]}],contrast:[{contrast:[_e,ie,se]}],"drop-shadow":[{"drop-shadow":["","none",E,zo,To]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",_e,ie,se]}],"hue-rotate":[{"hue-rotate":[_e,ie,se]}],invert:[{invert:["",_e,ie,se]}],saturate:[{saturate:[_e,ie,se]}],sepia:[{sepia:["",_e,ie,se]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,se]}],"backdrop-blur":[{"backdrop-blur":ea()}],"backdrop-brightness":[{"backdrop-brightness":[_e,ie,se]}],"backdrop-contrast":[{"backdrop-contrast":[_e,ie,se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,ie,se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,ie,se]}],"backdrop-invert":[{"backdrop-invert":["",_e,ie,se]}],"backdrop-opacity":[{"backdrop-opacity":[_e,ie,se]}],"backdrop-saturate":[{"backdrop-saturate":[_e,ie,se]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,ie,se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Q()}],"border-spacing-x":[{"border-spacing-x":Q()}],"border-spacing-y":[{"border-spacing-y":Q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ie,se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",ie,se]}],ease:[{ease:["linear","initial",z,ie,se]}],delay:[{delay:[_e,ie,se]}],animate:[{animate:["none",L,ie,se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,ie,se]}],"perspective-origin":[{"perspective-origin":J()}],rotate:[{rotate:Wt()}],"rotate-x":[{"rotate-x":Wt()}],"rotate-y":[{"rotate-y":Wt()}],"rotate-z":[{"rotate-z":Wt()}],scale:[{scale:dt()}],"scale-x":[{"scale-x":dt()}],"scale-y":[{"scale-y":dt()}],"scale-z":[{"scale-z":dt()}],"scale-3d":["scale-3d"],skew:[{skew:xa()}],"skew-x":[{"skew-x":xa()}],"skew-y":[{"skew-y":xa()}],transform:[{transform:[ie,se,"","none","gpu","cpu"]}],"transform-origin":[{origin:J()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Mt()}],"translate-x":[{"translate-x":Mt()}],"translate-y":[{"translate-y":Mt()}],"translate-z":[{"translate-z":Mt()}],"translate-none":["translate-none"],zoom:[{zoom:[Dn,ie,se]}],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie,se]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":W()}],"scrollbar-track-color":[{"scrollbar-track":W()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":Q()}],"scroll-mx":[{"scroll-mx":Q()}],"scroll-my":[{"scroll-my":Q()}],"scroll-ms":[{"scroll-ms":Q()}],"scroll-me":[{"scroll-me":Q()}],"scroll-mbs":[{"scroll-mbs":Q()}],"scroll-mbe":[{"scroll-mbe":Q()}],"scroll-mt":[{"scroll-mt":Q()}],"scroll-mr":[{"scroll-mr":Q()}],"scroll-mb":[{"scroll-mb":Q()}],"scroll-ml":[{"scroll-ml":Q()}],"scroll-p":[{"scroll-p":Q()}],"scroll-px":[{"scroll-px":Q()}],"scroll-py":[{"scroll-py":Q()}],"scroll-ps":[{"scroll-ps":Q()}],"scroll-pe":[{"scroll-pe":Q()}],"scroll-pbs":[{"scroll-pbs":Q()}],"scroll-pbe":[{"scroll-pbe":Q()}],"scroll-pt":[{"scroll-pt":Q()}],"scroll-pr":[{"scroll-pr":Q()}],"scroll-pb":[{"scroll-pb":Q()}],"scroll-pl":[{"scroll-pl":Q()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ie,se]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[_e,fi,jr,M0]}],stroke:[{stroke:["none",...W()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},j1=e1(w1);function O0(...l){return j1(Rp(l))}const N1=[{name:"Live Feed",href:"/",icon:Nd},{name:"History Logs",href:"/logs",icon:Cp},{name:"System Health",href:"/system",icon:Ep},{name:"Analytics & Queue",href:"/analytics",icon:Sp},{name:"Dead Letter (DLQ)",href:"/dlq",icon:Go},{name:"Scheduled",href:"/scheduled",icon:fl},{name:"Workflows",href:"/workflows",icon:Np},{name:"Templates",href:"/templates",icon:jp},{name:"Users",href:"/users",icon:zp},{name:"Projects & Keys",href:"/projects",icon:Ed}];function E1(){const l=yn(),{user:i,logout:u,isAuthenticated:c}=ya();return l.pathname==="/login"||l.pathname==="/login/"||!c?null:o.jsxs("div",{className:"flex flex-col w-64 border-r border-border bg-card h-full shrink-0",children:[o.jsxs("div",{className:"p-6 border-b border-border flex items-center gap-3",children:[o.jsx("div",{className:"bg-primary text-primary-foreground p-2 rounded-lg",children:o.jsx(Px,{className:"w-5 h-5"})}),o.jsxs("div",{children:[o.jsx("h1",{className:"font-bold text-lg tracking-tight text-foreground",children:"Notifkit"}),o.jsx("span",{className:"text-[10px] uppercase font-semibold tracking-wider text-muted-foreground",children:"Admin Console"})]})]}),o.jsx("nav",{className:"flex-1 overflow-y-auto p-4 space-y-1",children:N1.map(m=>{const p=m.href==="/"?l.pathname==="/":l.pathname.startsWith(m.href);return o.jsxs(jd,{to:m.href,className:O0("flex items-center gap-3 px-3 py-2 rounded-md text-sm font-medium transition-colors group relative",p?"text-primary-foreground bg-primary shadow-xs":"text-muted-foreground hover:text-foreground hover:bg-muted"),children:[o.jsx(m.icon,{className:O0("w-4 h-4 transition-colors",p?"text-primary-foreground":"text-muted-foreground group-hover:text-foreground")}),m.name]},m.name)})}),o.jsxs("div",{className:"p-4 border-t border-border bg-muted/40 space-y-3",children:[i&&o.jsxs("div",{className:"flex items-center gap-2.5 px-2 py-1.5",children:[o.jsx("div",{className:"h-7 w-7 rounded-full bg-muted flex items-center justify-center shrink-0 border border-border",children:o.jsx(zb,{className:"h-3.5 w-3.5 text-foreground"})}),o.jsxs("div",{className:"min-w-0 flex-1",children:[o.jsx("p",{className:"text-xs font-semibold text-foreground truncate",children:i.username||i.email}),o.jsx("p",{className:"text-[10px] text-muted-foreground capitalize",children:i.role})]})]}),o.jsxs("button",{onClick:()=>void u(),className:"w-full flex items-center justify-center gap-2 px-3 py-2 rounded-md text-xs font-medium text-muted-foreground hover:text-destructive hover:bg-destructive/10 border border-transparent transition-colors cursor-pointer",children:[o.jsx(lb,{className:"h-3.5 w-3.5"}),o.jsx("span",{children:"Sign Out"})]})]})]})}var A1=(l,i,u,c,d,m,p,y)=>{let v=document.documentElement,h=["light","dark"];function S(E){(Array.isArray(l)?l:[l]).forEach(j=>{let C=j==="class",_=C&&m?d.map(z=>m[z]||z):d;C?(v.classList.remove(..._),v.classList.add(m&&m[E]?m[E]:E)):v.setAttribute(j,E)}),g(E)}function g(E){y&&h.includes(E)&&(v.style.colorScheme=E)}function w(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(c)S(c);else try{let E=localStorage.getItem(i)||u,j=p&&E==="system"?w():E;S(j)}catch{}},C1=b.createContext(void 0),T1={setTheme:l=>{},themes:[]},z1=()=>{var l;return(l=b.useContext(C1))!=null?l:T1};b.memo(({forcedTheme:l,storageKey:i,attribute:u,enableSystem:c,enableColorScheme:d,defaultTheme:m,value:p,themes:y,nonce:v,scriptProps:h})=>{let S=JSON.stringify([u,i,m,l,y,p,c,d]).slice(1,-1);return b.createElement("script",{...h,suppressHydrationWarning:!0,nonce:typeof window>"u"?v:"",dangerouslySetInnerHTML:{__html:`(${A1.toString()})(${S})`}})});function _1(l){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.type="text/css",i.appendChild(u),u.styleSheet?u.styleSheet.cssText=l:u.appendChild(document.createTextNode(l))}const R1=l=>{switch(l){case"success":return D1;case"info":return U1;case"warning":return O1;case"error":return L1;default:return null}},M1=Array(12).fill(0),k1=({visible:l,className:i})=>ae.createElement("div",{className:["sonner-loading-wrapper",i].filter(Boolean).join(" "),"data-visible":l},ae.createElement("div",{className:"sonner-spinner"},M1.map((u,c)=>ae.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${c}`})))),D1=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),O1=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ae.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),U1=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),L1=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),H1=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},ae.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ae.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),B1=()=>{const[l,i]=ae.useState(document.hidden);return ae.useEffect(()=>{const u=()=>{i(document.hidden)};return document.addEventListener("visibilitychange",u),()=>window.removeEventListener("visibilitychange",u)},[]),l};let ld=1;class q1{constructor(){this.subscribe=i=>(this.subscribers.push(i),()=>{const u=this.subscribers.indexOf(i);this.subscribers.splice(u,1)}),this.publish=i=>{this.subscribers.forEach(u=>u(i))},this.addToast=i=>{this.publish(i),this.toasts=[...this.toasts,i]},this.create=i=>{var u;const{message:c,...d}=i,m=typeof(i==null?void 0:i.id)=="number"||((u=i.id)==null?void 0:u.length)>0?i.id:ld++,p=this.toasts.find(v=>v.id===m),y=i.dismissible===void 0?!0:i.dismissible;return this.dismissedToasts.has(m)&&this.dismissedToasts.delete(m),p?this.toasts=this.toasts.map(v=>v.id===m?(this.publish({...v,...i,id:m,title:c}),{...v,...i,id:m,dismissible:y,title:c}):v):this.addToast({title:c,...d,dismissible:y,id:m}),m},this.dismiss=i=>(i?(this.dismissedToasts.add(i),requestAnimationFrame(()=>this.subscribers.forEach(u=>u({id:i,dismiss:!0})))):this.toasts.forEach(u=>{this.subscribers.forEach(c=>c({id:u.id,dismiss:!0}))}),i),this.message=(i,u)=>this.create({...u,message:i}),this.error=(i,u)=>this.create({...u,message:i,type:"error"}),this.success=(i,u)=>this.create({...u,type:"success",message:i}),this.info=(i,u)=>this.create({...u,type:"info",message:i}),this.warning=(i,u)=>this.create({...u,type:"warning",message:i}),this.loading=(i,u)=>this.create({...u,type:"loading",message:i}),this.promise=(i,u)=>{if(!u)return;let c;u.loading!==void 0&&(c=this.create({...u,promise:i,type:"loading",message:u.loading,description:typeof u.description!="function"?u.description:void 0}));const d=Promise.resolve(i instanceof Function?i():i);let m=c!==void 0,p;const y=d.then(async h=>{if(p=["resolve",h],ae.isValidElement(h))m=!1,this.create({id:c,type:"default",message:h});else if(G1(h)&&!h.ok){m=!1;const g=typeof u.error=="function"?await u.error(`HTTP error! status: ${h.status}`):u.error,w=typeof u.description=="function"?await u.description(`HTTP error! status: ${h.status}`):u.description,j=typeof g=="object"&&!ae.isValidElement(g)?g:{message:g};this.create({id:c,type:"error",description:w,...j})}else if(h instanceof Error){m=!1;const g=typeof u.error=="function"?await u.error(h):u.error,w=typeof u.description=="function"?await u.description(h):u.description,j=typeof g=="object"&&!ae.isValidElement(g)?g:{message:g};this.create({id:c,type:"error",description:w,...j})}else if(u.success!==void 0){m=!1;const g=typeof u.success=="function"?await u.success(h):u.success,w=typeof u.description=="function"?await u.description(h):u.description,j=typeof g=="object"&&!ae.isValidElement(g)?g:{message:g};this.create({id:c,type:"success",description:w,...j})}}).catch(async h=>{if(p=["reject",h],u.error!==void 0){m=!1;const S=typeof u.error=="function"?await u.error(h):u.error,g=typeof u.description=="function"?await u.description(h):u.description,E=typeof S=="object"&&!ae.isValidElement(S)?S:{message:S};this.create({id:c,type:"error",description:g,...E})}}).finally(()=>{m&&(this.dismiss(c),c=void 0),u.finally==null||u.finally.call(u)}),v=()=>new Promise((h,S)=>y.then(()=>p[0]==="reject"?S(p[1]):h(p[1])).catch(S));return typeof c!="string"&&typeof c!="number"?{unwrap:v}:Object.assign(c,{unwrap:v})},this.custom=(i,u)=>{const c=(u==null?void 0:u.id)||ld++;return this.create({jsx:i(c),id:c,...u}),c},this.getActiveToasts=()=>this.toasts.filter(i=>!this.dismissedToasts.has(i.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const va=new q1,Y1=(l,i)=>{const u=(i==null?void 0:i.id)||ld++;return va.addToast({title:l,...i,id:u}),u},G1=l=>l&&typeof l=="object"&&"ok"in l&&typeof l.ok=="boolean"&&"status"in l&&typeof l.status=="number",V1=Y1,X1=()=>va.toasts,Q1=()=>va.getActiveToasts(),Ge=Object.assign(V1,{success:va.success,info:va.info,warning:va.warning,error:va.error,custom:va.custom,message:va.message,promise:va.promise,dismiss:va.dismiss,loading:va.loading},{getHistory:X1,getToasts:Q1});_1("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function _o(l){return l.label!==void 0}const Z1=3,K1="24px",$1="16px",U0=4e3,J1=356,W1=14,I1=45,F1=200;function On(...l){return l.filter(Boolean).join(" ")}function P1(l){const[i,u]=l.split("-"),c=[];return i&&c.push(i),u&&c.push(u),c}const eS=l=>{var i,u,c,d,m,p,y,v,h;const{invert:S,toast:g,unstyled:w,interacting:E,setHeights:j,visibleToasts:C,heights:_,index:z,toasts:L,expanded:K,removeToast:ee,defaultRichColors:J,closeButton:I,style:Z,cancelButtonStyle:Q,actionButtonStyle:pe,className:xe="",descriptionClassName:Ee="",duration:Re,position:Xe,gap:ne,expandByDefault:ge,classNames:M,icons:G,closeButtonAriaLabel:re="Close toast"}=l,[Se,W]=ae.useState(null),[A,q]=ae.useState(null),[V,P]=ae.useState(!1),[te,le]=ae.useState(!1),[je,we]=ae.useState(!1),[ve,ea]=ae.useState(!1),[Wt,dt]=ae.useState(!1),[xa,Mt]=ae.useState(0),[La,Ha]=ae.useState(0),bn=ae.useRef(g.duration||Re||U0),vl=ae.useRef(null),ta=ae.useRef(null),Sn=z===0,tr=z+1<=C,Vt=g.type,Ba=g.dismissible!==!1,Xt=g.className||"",ws=g.descriptionClassName||"",Yn=ae.useMemo(()=>_.findIndex(ye=>ye.toastId===g.id)||0,[_,g.id]),zr=ae.useMemo(()=>{var ye;return(ye=g.closeButton)!=null?ye:I},[g.closeButton,I]),Gn=ae.useMemo(()=>g.duration||Re||U0,[g.duration,Re]),ar=ae.useRef(0),qa=ae.useRef(0),yl=ae.useRef(0),Ya=ae.useRef(null),[Ga,Yt]=Xe.split("-"),ba=ae.useMemo(()=>_.reduce((ye,at,pt)=>pt>=Yn?ye:ye+at.height,0),[_,Yn]),kt=B1(),xl=g.invert||S,nr=Vt==="loading";qa.current=ae.useMemo(()=>Yn*ne+ba,[Yn,ba]),ae.useEffect(()=>{bn.current=Gn},[Gn]),ae.useEffect(()=>{P(!0)},[]),ae.useEffect(()=>{const ye=ta.current;if(ye){const at=ye.getBoundingClientRect().height;return Ha(at),j(pt=>[{toastId:g.id,height:at,position:g.position},...pt]),()=>j(pt=>pt.filter(Dt=>Dt.toastId!==g.id))}},[j,g.id]),ae.useLayoutEffect(()=>{if(!V)return;const ye=ta.current,at=ye.style.height;ye.style.height="auto";const pt=ye.getBoundingClientRect().height;ye.style.height=at,Ha(pt),j(Dt=>Dt.find(lt=>lt.toastId===g.id)?Dt.map(lt=>lt.toastId===g.id?{...lt,height:pt}:lt):[{toastId:g.id,height:pt,position:g.position},...Dt])},[V,g.title,g.description,j,g.id,g.jsx,g.action,g.cancel]);const Va=ae.useCallback(()=>{le(!0),Mt(qa.current),j(ye=>ye.filter(at=>at.toastId!==g.id)),setTimeout(()=>{ee(g)},F1)},[g,ee,j,qa]);ae.useEffect(()=>{if(g.promise&&Vt==="loading"||g.duration===1/0||g.type==="loading")return;let ye;return K||E||kt?(()=>{if(yl.current<ar.current){const Dt=new Date().getTime()-ar.current;bn.current=bn.current-Dt}yl.current=new Date().getTime()})():(()=>{bn.current!==1/0&&(ar.current=new Date().getTime(),ye=setTimeout(()=>{g.onAutoClose==null||g.onAutoClose.call(g,g),Va()},bn.current))})(),()=>clearTimeout(ye)},[K,E,g,Vt,kt,Va]),ae.useEffect(()=>{g.delete&&(Va(),g.onDismiss==null||g.onDismiss.call(g,g))},[Va,g.delete]);function Vn(){var ye;if(G!=null&&G.loading){var at;return ae.createElement("div",{className:On(M==null?void 0:M.loader,g==null||(at=g.classNames)==null?void 0:at.loader,"sonner-loader"),"data-visible":Vt==="loading"},G.loading)}return ae.createElement(k1,{className:On(M==null?void 0:M.loader,g==null||(ye=g.classNames)==null?void 0:ye.loader),visible:Vt==="loading"})}const Xa=g.icon||(G==null?void 0:G[Vt])||R1(Vt);var cn,wt;return ae.createElement("li",{tabIndex:0,ref:ta,className:On(xe,Xt,M==null?void 0:M.toast,g==null||(i=g.classNames)==null?void 0:i.toast,M==null?void 0:M.default,M==null?void 0:M[Vt],g==null||(u=g.classNames)==null?void 0:u[Vt]),"data-sonner-toast":"","data-rich-colors":(cn=g.richColors)!=null?cn:J,"data-styled":!(g.jsx||g.unstyled||w),"data-mounted":V,"data-promise":!!g.promise,"data-swiped":Wt,"data-removed":te,"data-visible":tr,"data-y-position":Ga,"data-x-position":Yt,"data-index":z,"data-front":Sn,"data-swiping":je,"data-dismissible":Ba,"data-type":Vt,"data-invert":xl,"data-swipe-out":ve,"data-swipe-direction":A,"data-expanded":!!(K||ge&&V),"data-testid":g.testId,style:{"--index":z,"--toasts-before":z,"--z-index":L.length-z,"--offset":`${te?xa:qa.current}px`,"--initial-height":ge?"auto":`${La}px`,...Z,...g.style},onDragEnd:()=>{we(!1),W(null),Ya.current=null},onPointerDown:ye=>{ye.button!==2&&(nr||!Ba||(vl.current=new Date,Mt(qa.current),ye.target.setPointerCapture(ye.pointerId),ye.target.tagName!=="BUTTON"&&(we(!0),Ya.current={x:ye.clientX,y:ye.clientY})))},onPointerUp:()=>{var ye,at,pt;if(ve||!Ba)return;Ya.current=null;const Dt=Number(((ye=ta.current)==null?void 0:ye.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),un=Number(((at=ta.current)==null?void 0:at.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),lt=new Date().getTime()-((pt=vl.current)==null?void 0:pt.getTime()),rt=Se==="x"?Dt:un,Qa=Math.abs(rt)/lt;if(Math.abs(rt)>=I1||Qa>.11){Mt(qa.current),g.onDismiss==null||g.onDismiss.call(g,g),q(Se==="x"?Dt>0?"right":"left":un>0?"down":"up"),Va(),ea(!0);return}else{var gt,vt;(gt=ta.current)==null||gt.style.setProperty("--swipe-amount-x","0px"),(vt=ta.current)==null||vt.style.setProperty("--swipe-amount-y","0px")}dt(!1),we(!1),W(null)},onPointerMove:ye=>{var at,pt,Dt;if(!Ya.current||!Ba||((at=window.getSelection())==null?void 0:at.toString().length)>0)return;const lt=ye.clientY-Ya.current.y,rt=ye.clientX-Ya.current.x;var Qa;const gt=(Qa=l.swipeDirections)!=null?Qa:P1(Xe);!Se&&(Math.abs(rt)>1||Math.abs(lt)>1)&&W(Math.abs(rt)>Math.abs(lt)?"x":"y");let vt={x:0,y:0};const Sa=It=>1/(1.5+Math.abs(It)/20);if(Se==="y"){if(gt.includes("top")||gt.includes("bottom"))if(gt.includes("top")&&lt<0||gt.includes("bottom")&&lt>0)vt.y=lt;else{const It=lt*Sa(lt);vt.y=Math.abs(It)<Math.abs(lt)?It:lt}}else if(Se==="x"&&(gt.includes("left")||gt.includes("right")))if(gt.includes("left")&&rt<0||gt.includes("right")&&rt>0)vt.x=rt;else{const It=rt*Sa(rt);vt.x=Math.abs(It)<Math.abs(rt)?It:rt}(Math.abs(vt.x)>0||Math.abs(vt.y)>0)&&dt(!0),(pt=ta.current)==null||pt.style.setProperty("--swipe-amount-x",`${vt.x}px`),(Dt=ta.current)==null||Dt.style.setProperty("--swipe-amount-y",`${vt.y}px`)}},zr&&!g.jsx&&Vt!=="loading"?ae.createElement("button",{"aria-label":re,"data-disabled":nr,"data-close-button":!0,onClick:nr||!Ba?()=>{}:()=>{Va(),g.onDismiss==null||g.onDismiss.call(g,g)},className:On(M==null?void 0:M.closeButton,g==null||(c=g.classNames)==null?void 0:c.closeButton)},(wt=G==null?void 0:G.close)!=null?wt:H1):null,(Vt||g.icon||g.promise)&&g.icon!==null&&((G==null?void 0:G[Vt])!==null||g.icon)?ae.createElement("div",{"data-icon":"",className:On(M==null?void 0:M.icon,g==null||(d=g.classNames)==null?void 0:d.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||Vn():null,g.type!=="loading"?Xa:null):null,ae.createElement("div",{"data-content":"",className:On(M==null?void 0:M.content,g==null||(m=g.classNames)==null?void 0:m.content)},ae.createElement("div",{"data-title":"",className:On(M==null?void 0:M.title,g==null||(p=g.classNames)==null?void 0:p.title)},g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title),g.description?ae.createElement("div",{"data-description":"",className:On(Ee,ws,M==null?void 0:M.description,g==null||(y=g.classNames)==null?void 0:y.description)},typeof g.description=="function"?g.description():g.description):null),ae.isValidElement(g.cancel)?g.cancel:g.cancel&&_o(g.cancel)?ae.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||Q,onClick:ye=>{_o(g.cancel)&&Ba&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,ye),Va())},className:On(M==null?void 0:M.cancelButton,g==null||(v=g.classNames)==null?void 0:v.cancelButton)},g.cancel.label):null,ae.isValidElement(g.action)?g.action:g.action&&_o(g.action)?ae.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||pe,onClick:ye=>{_o(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,ye),!ye.defaultPrevented&&Va())},className:On(M==null?void 0:M.actionButton,g==null||(h=g.classNames)==null?void 0:h.actionButton)},g.action.label):null)};function L0(){if(typeof window>"u"||typeof document>"u")return"ltr";const l=document.documentElement.getAttribute("dir");return l==="auto"||!l?window.getComputedStyle(document.documentElement).direction:l}function tS(l,i){const u={};return[l,i].forEach((c,d)=>{const m=d===1,p=m?"--mobile-offset":"--offset",y=m?$1:K1;function v(h){["top","right","bottom","left"].forEach(S=>{u[`${p}-${S}`]=typeof h=="number"?`${h}px`:h})}typeof c=="number"||typeof c=="string"?v(c):typeof c=="object"?["top","right","bottom","left"].forEach(h=>{c[h]===void 0?u[`${p}-${h}`]=y:u[`${p}-${h}`]=typeof c[h]=="number"?`${c[h]}px`:c[h]}):v(y)}),u}const aS=ae.forwardRef(function(i,u){const{id:c,invert:d,position:m="bottom-right",hotkey:p=["altKey","KeyT"],expand:y,closeButton:v,className:h,offset:S,mobileOffset:g,theme:w="light",richColors:E,duration:j,style:C,visibleToasts:_=Z1,toastOptions:z,dir:L=L0(),gap:K=W1,icons:ee,containerAriaLabel:J="Notifications"}=i,[I,Z]=ae.useState([]),Q=ae.useMemo(()=>c?I.filter(V=>V.toasterId===c):I.filter(V=>!V.toasterId),[I,c]),pe=ae.useMemo(()=>Array.from(new Set([m].concat(Q.filter(V=>V.position).map(V=>V.position)))),[Q,m]),[xe,Ee]=ae.useState([]),[Re,Xe]=ae.useState(!1),[ne,ge]=ae.useState(!1),[M,G]=ae.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),re=ae.useRef(null),Se=p.join("+").replace(/Key/g,"").replace(/Digit/g,""),W=ae.useRef(null),A=ae.useRef(!1),q=ae.useCallback(V=>{Z(P=>{var te;return(te=P.find(le=>le.id===V.id))!=null&&te.delete||va.dismiss(V.id),P.filter(({id:le})=>le!==V.id)})},[]);return ae.useEffect(()=>va.subscribe(V=>{if(V.dismiss){requestAnimationFrame(()=>{Z(P=>P.map(te=>te.id===V.id?{...te,delete:!0}:te))});return}setTimeout(()=>{mx.flushSync(()=>{Z(P=>{const te=P.findIndex(le=>le.id===V.id);return te!==-1?[...P.slice(0,te),{...P[te],...V},...P.slice(te+1)]:[V,...P]})})})}),[I]),ae.useEffect(()=>{if(w!=="system"){G(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?G("dark"):G("light")),typeof window>"u")return;const V=window.matchMedia("(prefers-color-scheme: dark)");try{V.addEventListener("change",({matches:P})=>{G(P?"dark":"light")})}catch{V.addListener(({matches:te})=>{try{G(te?"dark":"light")}catch(le){console.error(le)}})}},[w]),ae.useEffect(()=>{I.length<=1&&Xe(!1)},[I]),ae.useEffect(()=>{const V=P=>{var te;if(p.every(we=>P[we]||P.code===we)){var je;Xe(!0),(je=re.current)==null||je.focus()}P.code==="Escape"&&(document.activeElement===re.current||(te=re.current)!=null&&te.contains(document.activeElement))&&Xe(!1)};return document.addEventListener("keydown",V),()=>document.removeEventListener("keydown",V)},[p]),ae.useEffect(()=>{if(re.current)return()=>{W.current&&(W.current.focus({preventScroll:!0}),W.current=null,A.current=!1)}},[re.current]),ae.createElement("section",{ref:u,"aria-label":`${J} ${Se}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},pe.map((V,P)=>{var te;const[le,je]=V.split("-");return Q.length?ae.createElement("ol",{key:V,dir:L==="auto"?L0():L,tabIndex:-1,ref:re,className:h,"data-sonner-toaster":!0,"data-sonner-theme":M,"data-y-position":le,"data-x-position":je,style:{"--front-toast-height":`${((te=xe[0])==null?void 0:te.height)||0}px`,"--width":`${J1}px`,"--gap":`${K}px`,...C,...tS(S,g)},onBlur:we=>{A.current&&!we.currentTarget.contains(we.relatedTarget)&&(A.current=!1,W.current&&(W.current.focus({preventScroll:!0}),W.current=null))},onFocus:we=>{we.target instanceof HTMLElement&&we.target.dataset.dismissible==="false"||A.current||(A.current=!0,W.current=we.relatedTarget)},onMouseEnter:()=>Xe(!0),onMouseMove:()=>Xe(!0),onMouseLeave:()=>{ne||Xe(!1)},onDragEnd:()=>Xe(!1),onPointerDown:we=>{we.target instanceof HTMLElement&&we.target.dataset.dismissible==="false"||ge(!0)},onPointerUp:()=>ge(!1)},Q.filter(we=>!we.position&&P===0||we.position===V).map((we,ve)=>{var ea,Wt;return ae.createElement(eS,{key:we.id,icons:ee,index:ve,toast:we,defaultRichColors:E,duration:(ea=z==null?void 0:z.duration)!=null?ea:j,className:z==null?void 0:z.className,descriptionClassName:z==null?void 0:z.descriptionClassName,invert:d,visibleToasts:_,closeButton:(Wt=z==null?void 0:z.closeButton)!=null?Wt:v,interacting:ne,position:V,style:z==null?void 0:z.style,unstyled:z==null?void 0:z.unstyled,classNames:z==null?void 0:z.classNames,cancelButtonStyle:z==null?void 0:z.cancelButtonStyle,actionButtonStyle:z==null?void 0:z.actionButtonStyle,closeButtonAriaLabel:z==null?void 0:z.closeButtonAriaLabel,removeToast:q,toasts:Q.filter(dt=>dt.position==we.position),heights:xe.filter(dt=>dt.position==we.position),setHeights:Ee,expandByDefault:y,gap:K,expanded:Re,swipeDirections:i.swipeDirections})})):null}))}),nS=({...l})=>{const{theme:i="system"}=z1();return o.jsx(aS,{theme:i,className:"toaster group",icons:{success:o.jsx(hs,{className:"size-4"}),info:o.jsx(Wx,{className:"size-4"}),warning:o.jsx(Go,{className:"size-4"}),error:o.jsx(ob,{className:"size-4"}),loading:o.jsx(mi,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...l})},H0=l=>typeof l=="boolean"?`${l}`:l===0?"0":l,B0=Rp,Zp=(l,i)=>u=>{var c;if((i==null?void 0:i.variants)==null)return B0(l,u==null?void 0:u.class,u==null?void 0:u.className);const{variants:d,defaultVariants:m}=i,p=Object.keys(d).map(h=>{const S=u==null?void 0:u[h],g=m==null?void 0:m[h];if(S===null)return null;const w=H0(S)||H0(g);return d[h][w]}),y=u&&Object.entries(u).reduce((h,S)=>{let[g,w]=S;return w===void 0||(h[g]=w),h},{}),v=i==null||(c=i.compoundVariants)===null||c===void 0?void 0:c.reduce((h,S)=>{let{class:g,className:w,...E}=S;return Object.entries(E).every(j=>{let[C,_]=j;return Array.isArray(_)?_.includes({...m,...y}[C]):{...m,...y}[C]===_})?[...h,g,w]:h},[]);return B0(l,p,v,u==null?void 0:u.class,u==null?void 0:u.className)},Kp=48,Bn=(l,i=0)=>{const u=new Int32Array(l.length);for(let c=0;c<l.length;c++)u[c]=l.charCodeAt(c)-Kp-i;return u},Vo=l=>{const i=new Int32Array(l.length+1);for(let u=0;u<l.length;u++)i[u+1]=i[u]+l[u];return i},Fl=l=>{const i=new Int32Array(l.length);let u=0;for(let c=0;c<l.length;c++){const d=l.charCodeAt(c)-Kp;u+=d>>>1^-(d&1),i[c]=u}return i},lS=384,rS=[],Er=Vo(Bn("E0500002005282000000002000150000020021820000011200000003022202000300004200120000200420001200021200301200010400162000010000220021010:2192001200220012000220012000200200200400010200040000000000400200108200110100000022010313000162002000020020012020080213000228200000000082000000000120002000120020020040101020300130001001010")),sS=Vo(Bn(":11111111211111119311546544411119731869:671397415686432441111111111161114151214313433415:78311132233313187211117221449443411141111151152226611131111112212518142224214215421421542142424242516171151615616347111111111197911327451111111111111111111113134714133513411111311111111111111111111112444411111342312715245411117:3")),iS="@containerabcdefghinlmoprstunderlineviawzccentlignnimatespectuto-colsrowsaglorightnessckdrop-sisbcontrastfiltergrayscalehue-rotateinvertopacityslurrightnessaturateepia-coniclinearpositionradialsizeockurrderttom-belrstxyespacing-xyaretoursorlnt-umnsendspantartainentrasteividerop-shadowurationcorationlay-xyasendillexontromlter-featuresstretchapr-xyayscaleidow-colsrowsue-rotatedentlinesetvert-beringsxyeshadoweiadingftnest-clamp-imageabein-lrstxyskx--b-coniclpositionrsizet-x-y-fromto-fromto-inearfromto-fromto-adialfromto-fromtofromtofromtofromtoblockhinlinew-screenesblockhinlinewbjectpacityrutlinederigin-offsetbelrstxyesrspective-originaceholderioghtng-offsettateundedw-xyz-belrstlreseslr-endspantartaturatecepiahizekewpace-taleroll-xyz-barmpbelrstxyesbelrstxyes-thumbrackadowrink-xyxyartrokeabextora-shadowpckingnsformitionlate-xyz-offsetill-changeoom",oS=(()=>{const l=Er.length-1,i=new Int32Array(l);for(let d=l-1;d>=0;d--){let m=1,p=d+1;for(let y=Er[d];y<Er[d+1];y++)m+=i[p],p+=i[p];i[d]=m}const u=new Int32Array(Er[l]);let c=0;for(let d=0;d<l;d++){let m=d+1;for(let p=Er[d];p<Er[d+1];p++)u[c++]=m,m+=i[m]}return u})(),cS=Bn("02000000000000900<=0?000B000F00F00ŏI0J0LNPRTVX0000]_a00000000000000000000000rst0000000zŏ00000000000…ŏ000ˆ0000ŏ0000000000—0000000000000000000000000000000000000000000000000000Ë000000000000000000000Þ000000000000000000ð0000000ø0ùúûüýþÿĀāĂ㥹Ć000000000000000000000000000000000000000000ħ0ĨĪ00000000000000000000ļĽ00000Ŭ000000",1),uS=Vo(Bn("1233333593464636351265367151576")),dS=Bn("93203242332583253248325D>E?F@03263243255B:032523853:0325B:8GA032542H<C=12727B:0324325853;D>E?3257D>03258432585:0325B:;0328B:032"),fS=Bn("012123445661666666789111:5;;;;;;;;444;;;:62999<1161=62>>?61:21@ABCD4446996:64E:::;:?::64:F114GHHIHHHHIHH1HH1HH1HHHHHH::EJK4444::EJ4444441691;644444114244444:;L6666555555555555555999666664444444444444444444444226?6:66644M9N?D:111::::6DJ199"),mS=Fl("0202002020020020020020020020020200200200200200200200002020202001003040106000200200200200200200200200200200200200200200200200200200200200200200200200200200200020020020020020020002020200202002002002002002002002002002020002002020020200220200200200200200200200200200200020020020000200020002000200200200020020020002000200200200020020202002020202000200200020022000200200020020002002000200220002002000200W0Z00020020002002020002002000200g0j0002002000200200020020002002000200200020020002000200002000002002002002002000200020000200002002002002002002002020020020200200200200200200200200202020020020020020020020020002002002020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020002002002002002002000200200200200200200200200200020202020002000200020002002002002000020200200"),hS=(()=>{const l=new Int32Array(319).fill(-1),i=Fl("02422242:222222242224222242442222222422222244442242226224222426222422442462222422622222222626222462242622422622422424242422222222422222222242422222222222222222622442224222222222222224424442262222222222222222222226224222424242422224422422422222"),u=Fl("02222222222222222222202222222222222222222222221422222222222222222222222222222222222Y\\222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222221422222222222222222222222222222222222222Ŀł222222222222222222");for(let c=0;c<i.length;c++)l[i[c]]=u[c];return l})(),pS="container |break-after- all auto avoid avoid-page column left page right|break-before- all auto avoid avoid-page column left page right|break-inside-a uto void void-column void-page|box-decoration- clone slice|box- border content| contents flow-root hidden table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group| not-sr-only sr-only|float- end left none right start|clear- both end left none right start|isolat e ion-auto|overflow- auto clip hidden scroll visible|overflow-x- auto clip hidden scroll visible|overflow-y- auto clip hidden scroll visible|overscroll- auto contain none|overscroll-x- auto contain none|overscroll-y- auto contain none| absolute fixed relative static sticky| collapse invisible visible|justify- around baseline between center center-safe end end-safe evenly normal start stretch|justify-items- center center-safe end end-safe normal start stretch|justify-self- auto center center-safe end end-safe start stretch|items- baseline baseline-last center center-safe end end-safe start stretch|self- auto baseline baseline-last center center-safe end end-safe start stretch|place-content- around baseline between center center-safe end end-safe evenly start stretch|place-items- baseline center center-safe end end-safe start stretch|place-self- auto center center-safe end end-safe start stretch| antialiased subpixel-antialiased| italic not-italic|normal-nums |ordinal |slashed-zero | lining-nums oldstyle-nums| proportional-nums tabular-nums| diagonal-fractions stacked-fractions| no-underline overline| capitalize lowercase normal-case uppercase|truncate |whitespace- break-spaces normal nowrap pre pre-line pre-wrap|break- all keep normal words|wrap- anywhere break-word normal|hyphens- auto manual none|mix-blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay plus-darker plus-lighter saturation screen soft-light|table- auto fixed|caption- bottom top|backface- hidden visible|appearance- auto none|scheme- dark light light-dark normal only-dark only-light|field-sizing- content fixed|pointer-events- auto none|resize -none -x -y|snap- align-none center end start|snap- always normal|snap- both none x y|snap- mandatory proximity|touch- auto manipulation none|touch-pan- left right x|touch-pan- down up y|touch-pinch-zoom |select- all auto none text|forced-color-adjust- auto none| normal size| baseline bottom middle sub super text-bottom text-top top|none | auto square video| auto fr max min px| auto full px| fixed local scroll|clip- border content padding text|origin- border content padding| bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| no-repeat repeat repeat-round repeat-space repeat-x repeat-y| auto contain cover| gradient-to-b gradient-to-bl gradient-to-br gradient-to-l gradient-to-r gradient-to-t gradient-to-tl gradient-to-tr none|blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay saturation screen soft-light|to- b bl br l r t tl tr| auto dvh fit full lh lvh max min px screen svh| dashed dotted double hidden none solid| collapse separate|px |auto |full | content none strict| inline-size size|layout |paint |style | around baseline between center center-safe end end-safe evenly normal start stretch| alias all-scroll auto cell col-resize context-menu copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize no-drop none not-allowed ns-resize nw-resize nwse-resize pointer progress row-resize s-resize se-resize sw-resize text vertical-text w-resize wait zoom-in zoom-out| dashed dotted double solid wavy| auto from-font|reverse |initial | in in-out initial linear out| col col-reverse row row-reverse| nowrap wrap wrap-reverse| auto initial none| black bold extrabold extralight light medium normal semibold thin| condensed expanded extra-condensed extra-expanded normal semi-condensed semi-expanded ultra-condensed ultra-expanded|flow- col col-dense dense row row-dense| none subgrid| auto dvh dvw fit full lh lvh lvw max min px screen svh svw| block flex grid table| auto dvw fit full lvw max min px screen svw| loose none normal px relaxed snug tight|through |item | inside outside| decimal disc none| auto px| clip-border clip-content clip-fill clip-padding clip-stroke clip-view no-clip| add exclude intersect subtract| alpha luminance match|origin- border content fill padding stroke view|type- alpha luminance| circle ellipse| closest-corner closest-side farthest-corner farthest-side|at- bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| dvh fit full lh lvh max min none px screen svh| auto dvh dvw fit full lh lvh lvw max min none px screen svh svw| dvw fit full lvw max min none px screen svw| auto dvh dvw fit full lvh lvw max min none prose px svh svw| auto dvh dvw fit full lvh lvw max min none px screen svh svw| contain cover fill none scale-down| first last none| distant dramatic midrange near none normal|inset | full none|3d | auto smooth|gutter- auto both stable| auto none thin| inner none| auto dvh dvw fit full lvh lvw max min px svh svw|base | center end justify left right start| clip ellipsis| balance nowrap pretty wrap| normal tight tighter wide wider widest| cpu gpu none| 3d flat| all colors none opacity shadow transform| discrete normal| full px| auto dvh dvw fit full lvh lvw max min px screen svh svw| auto contents scroll transform".split("|").map(l=>{const i=l.split(" "),u=i.shift();for(let c=0;c<i.length;c++)i[c]=u+i[c];return i}),q0=Fl("0000000000000000000000000000000000000000000000000000000000000262242:6@200000006:240B428:4422400002046044222426220026642642462026224222824220022400000000\\00N222422242222222224062242222222422226264222422222222222222442804222422222222222222222222220<4<0204260002444020204224422"),gS=Fl("ɠ222222222222222222222222222222222222222222222222222222222222˕4222226>ʶ22ʷʺʷ2ʸʷ42ʴ2ʓ22>621422ɶ222ɹɼɷɺɷɺ22ɱ42222ɨ2ɧ26622ɘɓ244ƸƵ222]d24242ǖǓƚÄȫ2263ȨȥȨ2222222ǣ222222222222222222ǂƽ2ƾƵ2222222422222ƜƑ22222222222222222222144Ŧţ22Ţş222222222222222222222ĸ2ı68ĦģĦɡŰ4Ġ«®ĝ822ĔđĔ2ē2222622"),vS=Fl("02222222222222222222222222222222222222222222222222222222222222222203062222222222IL2200IL021042222]`222IL0gj2e50n2222U00X202[^2y0000560|{~ƒ†22‰Œ‹>22|22222222222G000q†OVI00000}š2›>40000ŒB00000I¨­000°00000000000000021Q²±00´“000000000000000000000–222›HGHa5¾222Ã6À2222ÍÐ000­°2±"),$p=new Int32Array(991),Jp=new Int32Array(991),Wp=new Int32Array(991);let rd="";const sd=new Int32Array(1030);{const l=new Map;let i=0,u=0;for(let c=0;c<q0.length;c++)for(const d of pS[vS[c]]){let m=l.get(d);m===void 0&&(m=i++,l.set(d,m),sd[m*2]=rd.length,sd[m*2+1]=d.length,rd+=d),$p[u]=q0[c],Jp[u]=gS[c],Wp[u]=m,u++}}const yS=Fl("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"),xS=Vo(Bn("1::22222432:222:22:22>222222:22:2221322511111311111114")),bS=Fl("2Š4A;33N=C@H4A;33N=C@<2;363@QTQʰ222ˉºŴŽ2R2=18cƴÅҜÜÛŲǝȈ:ħ25=11D3A@216Er25;11B3?<438Cn9@7=<8192>2E121@9@EHE@9>2T25511<398216=V25511<398216=„ƧNž2Đå242L222290000f22500ɛ000ǘ222"),SS=Bn("ij"),wS=Bn("—"),jS=Bn("1"),NS="* ** after backdrop before details-content file first-letter first-line marker placeholder selection";var ES={GROUP_COUNT:lS,customValidatorNames:rS,edgeStart:Er,labelStart:sS,labelText:iS,edgeTarget:oS,nodeGroup:cS,nodeVlist:hS,vlistPat:uS,vlistOps:dS,vlistRef:fS,vlistGroup:mS,litAnchor:$p,litGroup:Jp,litPool:Wp,poolOffsets:sd,poolText:rd,adjGid:yS,adjStart:xS,adjTgt:bS,patGid:SS,patTgt:wS,postfixLookupGroups:jS,orderSensitiveModifiers:NS};const AS="line"in new Error,Un=-1,Nr=-1,Pu=(l,i,u)=>{let c=2166136261;for(let d=i;d<u;d++)c=Math.imul(c^l.charCodeAt(d),16777619);return c},ed=(l,i,u)=>{const c=u-i;let d=Math.imul(c,2654435761)^l.charCodeAt(i);if(c>3){const m=c>>2,p=c>>1;d=Math.imul(d^l.charCodeAt(i+1)<<8^l.charCodeAt(i+2)<<16^l.charCodeAt(i+m),2246822507),d=Math.imul(d^l.charCodeAt(i+p)<<8^l.charCodeAt(i+p+m)<<16^l.charCodeAt(u-3),3266489909),d^=l.charCodeAt(u-2)<<8^l.charCodeAt(u-1)<<16;for(let y=i+3,v=u-4;y<i+8&&y<v;y++,v--)d=Math.imul(d^l.charCodeAt(y)^l.charCodeAt(v)<<8,16777619)}return d^d>>>15|0},CS=(l,i,u={})=>{const{GROUP_COUNT:c,edgeStart:d,labelStart:m,labelText:p,edgeTarget:y,nodeGroup:v,nodeVlist:h,vlistPat:S,vlistOps:g,vlistRef:w,vlistGroup:E,litAnchor:j,litGroup:C,litPool:_,poolOffsets:z,poolText:L,adjGid:K,adjStart:ee,adjTgt:J,patGid:I,patTgt:Z,postfixLookupGroups:Q,customValidatorNames:pe,orderSensitiveModifiers:xe}=l,Ee=new Int32Array(c).fill(-1);for(let O=0;O<K.length;O++)Ee[K[O]]=O;let Re=0;for(let O=0;O+1<ee.length;O++){const $=ee[O+1]-ee[O];$>Re&&(Re=$)}let Xe=32;for(;Xe<2*(1+Re+I.length);)Xe<<=1;const ne=new Int32Array(w.length+1);for(let O=0;O<w.length;O++)ne[O+1]=ne[O]+S[w[O]+1]-S[w[O]];const ge=new Uint8Array(c);for(let O=0;O<Q.length;O++)ge[Q[O]]=1;const M=d.length-1,G=new Uint8Array(M);let re=0,Se=!0;for(let O=0;O<j.length;O++){G[j[O]]=1;const $=z[_[O]*2+1];$>re&&(re=$);const F=L.charCodeAt(z[_[O]*2]);(F===91||F===40)&&(Se=!1)}let W=1;for(;W<j.length*2;)W<<=1;const A=new Int32Array(W).fill(-1);for(let O=0;O<j.length;O++){const $=z[_[O]*2];let F=(Pu(L,$,$+z[_[O]*2+1])^Math.imul(j[O],2654435761)|0)&W-1;for(;A[F]!==-1;)F=F+1&W-1;A[F]=O}const q=(O,$,F,ue)=>{let fe=(Pu($,F,ue)^Math.imul(O,2654435761)|0)&W-1;const be=ue-F;for(;;){const Be=A[fe];if(Be===-1)return-1;if(j[Be]===O&&z[_[Be]*2+1]===be){const st=z[_[Be]*2];let qe=!0;for(let me=0;me<be;me++)if(L.charCodeAt(st+me)!==$.charCodeAt(F+me)){qe=!1;break}if(qe)return C[Be]}fe=fe+1&W-1}},V=u.cacheSize??8192,P=u.prefix??l.prefix??"",te=P===""?"":P+":",le=te.length,je=(pe??[]).map(O=>{throw new Error("cn: missing validator "+O)}),we=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ve=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ea=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Wt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;let dt=0,xa=-1,Mt=-1,La=-1,Ha=-1;const bn=O=>O>=97&&O<=122||O>=65&&O<=90||O>=48&&O<=57||O===95,vl=O=>/\s/.test(String.fromCharCode(O)),ta=(O,$,F)=>{if(dt=0,xa=-1,F-$<3)return;const ue=O.charCodeAt($),fe=O.charCodeAt(F-1);if(ue===91&&fe===93)dt=1;else if(ue===40&&fe===41)dt=2;else return;La=$+1,Ha=F-1;let be=$+1;if(bn(O.charCodeAt(be))){for(be++;be<F-1;){const Be=O.charCodeAt(be);if(!bn(Be)&&Be!==45)break;be++}be<F-2&&O.charCodeAt(be)===58&&(xa=$+1,Mt=be,La=be+1)}},Sn=(O,$,F,ue)=>{if(F-$!==ue.length)return!1;for(let fe=0;fe<ue.length;fe++)if(O.charCodeAt($+fe)!==ue.charCodeAt(fe))return!1;return!0},tr=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Vt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ba=O=>!!O&&!Number.isNaN(Number(O)),Xt=(O,$,F)=>{if(F-$<11||!Sn(O,$,$+10,"@container"))return!1;if(O.charCodeAt($+10)===47)return F-$>=12;const ue=O.charCodeAt($+11);return ue===115&&F-$>=17&&Sn(O,$+10,$+16,"-size/")||ue===110&&F-$>=19&&Sn(O,$+10,$+18,"-normal/")},ws=[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2],Yn="length|number|number weight|family-name|position percentage|length size bg-size|image url|shadow|length|family-name|position percentage|length size bg-size|image url|shadow|number weight".split("|").map(O=>O.split(" ")),zr=[2,3,1,0,0,0,4,5,0,0,0,0,0,1,1],Gn=(O,$,F,ue)=>{if(O>=10){if(O>=25)return je[O-25]($.slice(F,ue));const fe=O-10;if(dt!==ws[fe])return!1;if(xa>=0){for(const be of Yn[fe])if(Sn($,xa,Mt,be))return!0;return!1}switch(zr[fe]){case 0:return!1;case 1:return!0;case 2:{const be=$.slice(La,Ha);return we.test(be)&&!ve.test(be)}case 3:return Ba($.slice(La,Ha));case 4:return Wt.test($.slice(La,Ha));default:return ea.test($.slice(La,Ha))}}switch(O){case 0:return!0;case 1:return dt===0;case 2:return dt===1;case 3:return dt===2;case 4:return tr.test($.slice(F,ue));case 5:return Ba($.slice(F,ue));case 6:{const fe=$.slice(F,ue);return!!fe&&Number.isInteger(Number(fe))}case 7:return ue>F&&$.charCodeAt(ue-1)===37&&Ba($.slice(F,ue-1));case 8:return Vt.test($.slice(F,ue));default:return Xt($,F,ue)}},ar=new Set(typeof xe=="string"?xe.split(" "):xe),qa=(O,$,F,ue,fe,be)=>{const Be=Pu($,F,ue)^(fe?2654435769:0)|0;let st=O.get(Be);if(st!==void 0)e:for(let Ae=0;Ae<st.length;Ae++){const Me=st[Ae];if(!(Me.imp!==fe||Me.k.length!==ue-F)){for(let yt=0;yt<Me.k.length;yt++)if(Me.k.charCodeAt(yt)!==$.charCodeAt(F+yt))continue e;return Me.id}}else O.set(Be,st=[]);const qe=$.slice(F,ue),me=be(qe);return st.push({k:qe,imp:fe,id:me}),me};let yl=new Map,Ya=new Map,Ga=2;const Yt=4096,ba=(O,$)=>{const F=[];let ue=0,fe=0,be=0;for(let me=0;me<O.length;me++){const Ae=O.charCodeAt(me);ue===0&&fe===0&&Ae===58?(F.push(O.slice(be,me)),be=me+1):Ae===91?ue++:Ae===93?ue--:Ae===40?fe++:Ae===41&&fe--}F.push(O.slice(be));let Be=F[0];if(F.length>1){const me=[];let Ae=[];for(const Me of F)Me.charCodeAt(0)===91||ar.has(Me)?(Ae.length&&(me.push(...Ae.sort()),Ae=[]),me.push(Me)):Ae.push(Me);Ae.length&&me.push(...Ae.sort()),Be=me.join(":")}const st=$?Be+" !":Be;let qe=Ya.get(st);return qe===void 0&&Ya.set(st,qe=Ga++),qe};let kt=new Map,xl=c;const nr=c+4096,Va=()=>xl++,Vn=2097152,Xa=8192,cn=new Int32Array(Xa),wt=new Array(Xa).fill(null),ye=new Int32Array(Xa),at=new Int32Array(Xa),pt=new Uint8Array(Xa);let Dt=0;const un=(O,$,F,ue,fe,be,Be,st)=>{let qe=O;if(wt[O]!==null)if(wt[O|1]===null)qe=O|1;else if((Dt++&3)===0)qe=O|Dt>>2&1;else return;wt[qe]=$.slice(F,ue),cn[qe]=fe,ye[qe]=be,at[qe]=Be,pt[qe]=st},lt=()=>wt.fill(null);let rt=256,Qa=[new Int32Array(rt),new Int32Array(rt),new Int32Array(rt),new Int32Array(rt)],[gt,vt,Sa,It]=Qa,Xn=new Uint8Array(rt),Qn=new Uint8Array(rt);const wn=()=>{rt*=2,Qa=Qa.map($=>{const F=new Int32Array(rt);return F.set($),F}),[gt,vt,Sa,It]=Qa;const O=new Uint8Array(rt);O.set(Xn),Xn=O,Qn=new Uint8Array(rt)};let ct=64,jt=new Int32Array(ct),Za=new Int32Array(ct);const lr=new Int32Array(c);let jn=2048,wi=21,_r=new Float64Array(jn),Nn=new Int32Array(jn),Ka=0;const En=(O,$)=>{if(O===0&&$<c)return lr[$]===Ka?1:(lr[$]=Ka,0);const F=O*2097152+$+1;let ue=Math.imul(F,2654435761)>>>wi;for(;Nn[ue]===Ka;){if(_r[ue]===F)return 1;ue=ue+1&jn-1}return _r[ue]=F,Nn[ue]=Ka,0},dn=(O,$,F,ue,fe)=>{if(F-$>=2&&O.charCodeAt($)===91&&O.charCodeAt(F-1)===93){let be=-1;for(let Be=$+1;Be<F-1;Be++)if(O.charCodeAt(Be)===58){be=Be;break}return be===-1||be===$+1?Un:qa(kt,O,$+1,be,0,Va)}if(ue>=0&&v[ue]>=0)return v[ue];for(let be=fe-1;be>=0;be--){const Be=Za[be];if(Be>F)continue;const st=jt[be],qe=F-Be;if(G[st]===1&&qe>0&&qe<=re){const xt=O.charCodeAt(Be);if(Se===!1||xt!==91&&xt!==40){const $a=q(st,O,Be,F);if($a>=0)return $a}}const me=h[st];if(me<0)continue;const Ae=w[me],Me=S[Ae],yt=S[Ae+1];if(Me===yt)continue;ta(O,Be,F);const Ot=ne[me]-Me;for(let xt=Me;xt<yt;xt++)if(Gn(g[xt],O,Be,F))return E[Ot+xt]}return Un},An=O=>{const $=O.length;let F=0,ue=0,fe=!1;(Ga>Yt||yl.size>Yt)&&(yl=new Map,Ya=new Map,Ga=2,lt()),xl>nr&&(kt=new Map,xl=c,lt());let be=0;for(;be<$;){let me=O.charCodeAt(be);if(me===32||me>=9&&me<=13||me>=160&&vl(me)){me!==32&&(fe=!0),be++;continue}const Ae=be;let Me=0;for(;be<$;){if(me=O.charCodeAt(be),me<=32){if(me===32)break;if(me>=9&&me<=13){fe=!0;break}}else if(me>=160&&vl(me)){fe=!0;break}Me=Math.imul(Me^me,16777619),be++}const yt=be,Ot=yt-Ae;F===rt&&wn();const xt=F++;gt[xt]=Ae,vt[xt]=yt,ue+=Ot,Me^=Math.imul(Ot,2654435761);const $a=Me^Me>>>15|0,Ja=$a&8190;{let Ve=-1;if(cn[Ja]===$a&&wt[Ja]!==null&&wt[Ja].length===Ot?Ve=Ja:cn[Ja|1]===$a&&wt[Ja|1]!==null&&wt[Ja|1].length===Ot&&(Ve=Ja|1),Ve>=0){const Aa=wt[Ve];let Ca=!0;for(let Ta=0;Ta<Ot;Ta++)if(Aa.charCodeAt(Ta)!==O.charCodeAt(Ae+Ta)){Ca=!1;break}if(Ca){Sa[xt]=ye[Ve],It[xt]=at[Ve],Xn[xt]=pt[Ve];continue}}}let Sl=Ae;if(le!==0){if(yt-Ae<=le||!O.startsWith(te,Ae)){Sa[xt]=Un,un(Ja,O,Ae,yt,$a,Un,0,0);continue}Sl=Ae+le}let wl=0,ja=0,Kn=-1,ir=-1;for(let Ve=Sl;Ve<yt;Ve++){const Aa=O.charCodeAt(Ve);if(wl===0&&ja===0){if(Aa===58){Kn=Ve;continue}if(Aa===47){ir=Ve;continue}}Aa===91?wl++:Aa===93?wl--:Aa===40?ja++:Aa===41&&ja--}const $n=Kn>=Sl?Kn+1:Sl;let Ut=$n,na=yt,Jn=!1,Ns=0;na>Ut&&O.charCodeAt(na-1)===33?(Jn=!0,na--):na>Ut&&O.charCodeAt(Ut)===33&&(Jn=!0,Ut++,Ns=1);let Na=-1;ir>$n&&(Na=ir+Ns,Na>=na&&(Na=-1));let Ea=Ut;na-Ut>1&&O.charCodeAt(Ut)===45&&(Ea=Ut+1);let ua=0,da=0,la=0,Dr=-1,ra=0;(h[0]>=0||G[0]===1)&&(jt[0]=0,Za[0]=Ea,ra=1);let Or=Nr,jl=0;for(let Ve=Ea;Ve<na;Ve++)if(Ve===Na&&(Or=da<la?Nr:ua,jl=ra),ua!==Nr){const Aa=O.charCodeAt(Ve);let Ca=-1;if(da<la)p.charCodeAt(da)===Aa?(da++,da===la&&(Ca=ua=Dr)):ua=Nr;else{const Ta=d[ua],Tn=d[ua+1];let Al=Nr;for(let zn=Ta;zn<Tn;zn++){const Es=m[zn];if(p.charCodeAt(Es)===Aa){m[zn+1]-Es===1?Ca=Al=y[zn]:(da=Es+1,la=m[zn+1],Dr=y[zn],Al=ua);break}}ua=Al}if(Ca>=0&&(h[Ca]>=0||G[Ca]===1)&&Ve+1<na&&O.charCodeAt(Ve+1)===45){if(ra===ct){ct*=2;const Ta=new Int32Array(ct);Ta.set(jt),jt=Ta;const Tn=new Int32Array(ct);Tn.set(Za),Za=Tn}jt[ra]=Ca,Za[ra]=Ve+2,ra++}}Na===na&&(Or=da<la?Nr:ua,jl=ra);const Nl=da<la?Nr:ua;let sa,Lt=!1;if(Na>=0)if(Lt=!0,sa=dn(O,Ut,Na,Or,jl),sa!==Un&&sa<c&&ge[sa]){const Ve=dn(O,Ut,na,Nl,ra);Ve!==Un&&Ve!==sa&&(sa=Ve,Lt=!1)}else sa===Un&&(sa=dn(O,Ut,na,Nl,ra),Lt=!1);else sa=dn(O,Ut,na,Nl,ra);let mn=0,El=0;sa===Un?Sa[xt]=Un:(El=Lt?1:0,mn=Sl>=Kn?Jn?1:0:qa(yl,O,Sl,Kn,Jn?1:0,Ve=>ba(Ve,Jn)),Sa[xt]=sa,Xn[xt]=El,It[xt]=mn),un(Ja,O,Ae,yt,$a,sa,mn,El)}if(F===0)return"";if(F===1)return gt[0]===0&&vt[0]===$?O:O.slice(gt[0],vt[0]);if(F*Xe>jn){for(;F*Xe>jn;)jn<<=1,wi--;_r=new Float64Array(jn),Nn=new Int32Array(jn)}if(Ga>=Vn||xl>=Vn)throw new Error("cn: too many distinct classes in one merge");Ka=Ka+1|0,Ka===0&&(lr.fill(0),Nn.fill(0),Ka=1);let Be=!1;for(let me=F-1;me>=0;me--){const Ae=Sa[me];if(Ae===Un){Qn[me]=1;continue}const Me=It[me];if(En(Me,Ae)===1){Qn[me]=0,Be=!0;continue}if(Qn[me]=1,Ae<c){const yt=Ee[Ae];if(yt>=0)for(let Ot=ee[yt];Ot<ee[yt+1];Ot++)En(Me,J[Ot]);if(Xn[me]&1)for(let Ot=0;Ot<I.length;Ot++)I[Ot]===Ae&&En(Me,Z[Ot])}}if(!Be&&!fe&&$===ue+F-1)return O;let st="",qe=0;for(;qe<F;){if(!Qn[qe]){qe++;continue}const me=gt[qe];let Ae=vt[qe],Me=qe+1;for(;Me<F&&Qn[Me]&&gt[Me]===Ae+1&&O.charCodeAt(Ae)===32;)Ae=vt[Me],Me++;st.length>0&&(st+=" "),st+=O.slice(me,Ae),qe=Me}return st},aa=16384,Fe=new Int32Array(aa*2);let rr=0,oa=1,wa=Object.create(null),Zn=Object.create(null),bl=new Map,js=new Map,sr=0,Rr=0;const Cn=()=>{rr^=aa,oa=oa+1|0,Rr=0},Mr=O=>{let $=wa[O];if($!==void 0)return $;const F=ed(O,0,O.length),ue=(F&16383)+rr,fe=Fe[ue]===(F^oa)||Fe[ue^aa]===(F^oa-1);return fe&&($=Zn[O],$!==void 0)?(wa[O]=$,$):($=An(O),fe?(wa[O]=$,++sr>V&&(sr=0,Zn=wa,wa=Object.create(null),Cn())):(Fe[ue]=F^oa,++Rr>aa&&Cn()),$)},fn=O=>{let $=bl.get(O);if($!==void 0)return $;const F=ed(O,0,O.length),ue=(F&16383)+rr,fe=Fe[ue]===(F^oa)||Fe[ue^aa]===(F^oa-1);return fe&&($=js.get(O),$!==void 0)?(bl.set(O,$),$):($=An(O),fe?(bl.set(O,$),++sr>V&&(sr=0,js=bl,bl=new Map,Cn())):(Fe[ue]=F^oa,++Rr>aa&&Cn()),$)},ca=O=>{const $=ed(O,0,O.length),F=($&16383)+rr;return Fe[F]===($^oa)||Fe[F^aa]===($^oa-1)?!0:(Fe[F]=$^oa,++Rr>aa&&Cn(),!1)},kr=V===0?An:AS?O=>{const $=bl.get(O);return $!==void 0?$:fn(O)}:Mr;return{merge:function(){return arguments.length===1&&typeof arguments[0]=="string"?kr(arguments[0]):kr(zS.apply(null,arguments))},mergeString:kr,seenBefore:V===0?()=>!1:ca,mergeUncached:An}},Uo=(l,i)=>{if(!l)return"";if(typeof l=="string")return l;let u="";if(typeof l.length=="number"&&(!i||Array.isArray(l))){const c=l;for(let d=0;d<c.length;d++){const m=c[d];if(!m)continue;const p=typeof m=="string"?m:Uo(m,i);p&&(u&&(u+=" "),u+=p)}return u}if(i){if(typeof l=="number")return""+l;if(typeof l=="object")for(const c in l)l[c]&&(u&&(u+=" "),u+=c)}return u},TS=(l,i)=>{let u="";for(let c=0;c<l.length;c++){const d=l[c];if(!d)continue;const m=typeof d=="string"?d:Uo(d,i);m&&(u&&(u+=" "),u+=m)}return u},zS=function(){return TS(arguments,!1)},_S=(l,i)=>{const u=i===void 0?()=>!0:i.seenBefore,c=i===void 0?l:i.mergeUncached;let d=new Map,m=new Map,p=0,y=null;const v=(w,E,j,C)=>{let _=0;if(E){if(E!==w.a0)return!1;_=1}if(j){if(j!==(_===0?w.a0:w.a1))return!1;_++}if(C){if(C!==(_===0?w.a0:_===1?w.a1:w.a2))return!1;_++}return _===w.t},h=(w,E)=>{const j=w.a;let C=0;for(let _=0;_<E.length;_++){const z=E[_];if(z){if(z!==j[C])return!1;C++}}return C===w.t},S=(w,E)=>{const j=w.length,C=y===null?null:y.n;if(!E){if(C!==null&&h(C,w))return y=C,C.r;if(y!==null&&y!==C&&h(y,w))return y.r}let _="",z=-1,L=0,K=!1;for(let I=0;I<j;I++){let Z=w[I];if(Z){if(typeof Z!="string"){if(Z=w[I]=Uo(Z,!0),!Z)continue;K=!0}z<0&&(_=Z,z=I),L++}}if(L===0)return"";if(L===1)return l(_);if(K){if(C!==null&&h(C,w))return y=C,C.r;if(y!==null&&y!==C&&h(y,w))return y.r}let ee=d.get(_);ee===void 0&&(ee=m.get(_),ee!==void 0&&d.set(_,ee));let J=null;if(ee!==void 0)e:for(let I=0;I<ee.length;I++){const Z=ee[I];if(Z.t!==L)continue;const Q=Z.a;let pe=1;for(let xe=z+1;xe<j;xe++){const Ee=w[xe];if(Ee&&Ee!==Q[pe++])continue e}J=Z;break}if(J===null){let I=_;const Z=[_];for(let Q=z+1;Q<j;Q++){const pe=w[Q];pe&&(I+=" "+pe,Z.push(pe))}if(!u(I))return c(I);J={r:l(I),t:Z.length,a0:Z[0],a1:Z[1],a2:Z[2]??"",a:Z,n:null},ee===void 0&&d.set(_,ee=[]),ee.length>=256&&ee.shift(),ee.push(J),++p>1e3&&(p=0,m=d,d=new Map)}return y!==null&&y!==J&&(y.n=J),y=J,J.r},g=w=>Array.isArray(w)?S(w.slice(),!1):l(Uo(w,!0));return function(w,E,j){const C=arguments.length;if((C|1)===3){const L=y;if(L!==null){const K=L.n;if(K!==null&&v(K,w,E,j))return y=K,K.r;if(L!==K&&v(L,w,E,j))return L.r}return S([w,E,j],!0)}if(C===1)return typeof w=="string"?l(w):g(w);const _=y;if(_!==null){const L=_.n;if(L!==null){const K=L.a;let ee=0,J=!0;for(let I=0;I<C;I++){const Z=arguments[I];if(Z){if(Z!==K[ee]){J=!1;break}ee++}}if(J&&ee===L.t)return y=L,L.r}if(_!==L){const K=_.a;let ee=0,J=!0;for(let I=0;I<C;I++){const Z=arguments[I];if(Z){if(Z!==K[ee]){J=!1;break}ee++}}if(J&&ee===_.t)return _.r}}const z=[];for(let L=0;L<C;L++)z.push(arguments[L]);return S(z,!0)}},Y0=CS(ES),Pt=_S(Y0.mergeString,Y0);var RS=Object.defineProperty,zd=(l,i)=>RS(l,"name",{value:i,configurable:!0});function id(l,i){if(typeof l=="function")return l(i);l!=null&&(l.current=i)}zd(id,"setRef");function Ip(...l){return i=>{let u=!1;const c=l.map(d=>{const m=id(d,i);return!u&&typeof m=="function"&&(u=!0),m});if(u)return()=>{for(let d=0;d<c.length;d++){const m=c[d];typeof m=="function"?m():id(l[d],null)}}}}zd(Ip,"composeRefs");function er(...l){return b.useCallback(Ip(...l),l)}zd(er,"useComposedRefs");var MS=Object.defineProperty,xn=(l,i)=>MS(l,"name",{value:i,configurable:!0});function _d(l){const i=b.forwardRef((u,c)=>{let{children:d,...m}=u,p=null,y=!1;const v=[];od(d)&&typeof Ro=="function"&&(d=Ro(d._payload)),b.Children.forEach(d,w=>{var E;if(ag(w)){y=!0;const j=w;let C="child"in j.props?j.props.child:j.props.children;od(C)&&typeof Ro=="function"&&(C=Ro(C._payload)),p=DS(j,C),v.push((E=p==null?void 0:p.props)==null?void 0:E.children)}else v.push(w)}),p?p=b.cloneElement(p,void 0,v):!y&&b.Children.count(d)===1&&b.isValidElement(d)&&(p=d);const h=p?tg(p):void 0,S=er(c,h);if(!p){if(d||d===0)throw new Error(y?LS(l):US(l));return d}const g=eg(m,p.props??{});return p.type!==b.Fragment&&(g.ref=c?S:h),b.cloneElement(p,g)});return i.displayName=`${l}.Slot`,i}xn(_d,"createSlot");var Fp=_d("Slot"),Pp=Symbol.for("radix.slottable");function kS(l){const i=xn(u=>"child"in u?u.children(u.child):u.children,"Slottable");return i.displayName=`${l}.Slottable`,i.__radixId=Pp,i}xn(kS,"createSlottable");var DS=xn((l,i)=>{if("child"in l.props){const u=l.props.child;return b.isValidElement(u)?b.cloneElement(u,void 0,l.props.children(u.props.children)):null}return b.isValidElement(i)?i:null},"getSlottableElementFromSlottable");function eg(l,i){const u={...i};for(const c in i){const d=l[c],m=i[c];/^on[A-Z]/.test(c)?d&&m?u[c]=(...y)=>{const v=m(...y);return d(...y),v}:d&&(u[c]=d):c==="style"?u[c]={...d,...m}:c==="className"&&(u[c]=[d,m].filter(Boolean).join(" "))}return{...l,...u}}xn(eg,"mergeProps");function tg(l){var c,d;let i=(c=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:c.get,u=i&&"isReactWarning"in i&&i.isReactWarning;return u?l.ref:(i=(d=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:d.get,u=i&&"isReactWarning"in i&&i.isReactWarning,u?l.props.ref:l.props.ref||l.ref)}xn(tg,"getElementRef");function ag(l){return b.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===Pp}xn(ag,"isSlottable");var OS=Symbol.for("react.lazy");function od(l){return l!=null&&typeof l=="object"&&"$$typeof"in l&&l.$$typeof===OS&&"_payload"in l&&ng(l._payload)}xn(od,"isLazyComponent");function ng(l){return typeof l=="object"&&l!==null&&"then"in l}xn(ng,"isPromiseLike");var US=xn(l=>`${l} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),LS=xn(l=>`${l} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Ro=Cv[" use ".trim().toString()],HS=Object.defineProperty,BS=(l,i)=>HS(l,"name",{value:i,configurable:!0}),qS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xi=qS.reduce((l,i)=>{const u=_d(`Primitive.${i}`),c=b.forwardRef((d,m)=>{const{asChild:p,...y}=d,v=p?u:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),o.jsx(v,{...y,ref:m})});return c.displayName=`Primitive.${i}`,{...l,[i]:c}},{});function YS(l,i){l&&gp.flushSync(()=>l.dispatchEvent(i))}BS(YS,"dispatchDiscreteCustomEvent");var GS=Object.defineProperty,ln=(l,i)=>GS(l,"name",{value:i,configurable:!0});function VS(l,i){const u=b.createContext(i);u.displayName=l+"Context";const c=ln(m=>{const{children:p,...y}=m,v=b.useMemo(()=>y,Object.values(y));return o.jsx(u.Provider,{value:v,children:p})},"Provider");c.displayName=l+"Provider";function d(m,p={}){const{optional:y=!1}=p,v=b.useContext(u);if(v)return v;if(i!==void 0)return i;if(!y)throw new Error(`\`${m}\` must be used within \`${l}\``)}return ln(d,"useContext"),[c,d]}ln(VS,"createContext");function lg(l,i=[]){let u=[];function c(m,p){const y=b.createContext(p);y.displayName=m+"Context";const v=u.length;u=[...u,p];const h=ln(g=>{var z;const{scope:w,children:E,...j}=g,C=((z=w==null?void 0:w[l])==null?void 0:z[v])||y,_=b.useMemo(()=>j,Object.values(j));return o.jsx(C.Provider,{value:_,children:E})},"Provider");h.displayName=m+"Provider";function S(g,w,E={}){var z;const{optional:j=!1}=E,C=((z=w==null?void 0:w[l])==null?void 0:z[v])||y,_=b.useContext(C);if(_)return _;if(p!==void 0)return p;if(!j)throw new Error(`\`${g}\` must be used within \`${m}\``)}return ln(S,"useContext"),[h,S]}ln(c,"createContext");const d=ln(()=>{const m=u.map(p=>b.createContext(p));return ln(function(y){const v=(y==null?void 0:y[l])||m;return b.useMemo(()=>({[`__scope${l}`]:{...y,[l]:v}}),[y,v])},"useScope")},"createScope");return d.scopeName=l,[c,rg(d,...i)]}ln(lg,"createContextScope");function rg(...l){const i=l[0];if(l.length===1)return i;const u=ln(()=>{const c=l.map(d=>({useScope:d(),scopeName:d.scopeName}));return ln(function(m){const p=c.reduce((y,{useScope:v,scopeName:h})=>{const g=v(m)[`__scope${h}`];return{...y,...g}},{});return b.useMemo(()=>({[`__scope${i.scopeName}`]:p}),[p])},"useComposedScopes")},"createScope");return u.scopeName=i.scopeName,u}ln(rg,"composeContextScopes");var XS=Object.defineProperty,ys=(l,i)=>XS(l,"name",{value:i,configurable:!0}),sg=!!(typeof window<"u"&&window.document&&window.document.createElement);function Il(l,i,{checkForDefaultPrevented:u=!0}={}){return ys(function(d){if(l==null||l(d),u===!1||!d||!d.defaultPrevented)return i==null?void 0:i(d)},"handleEvent")}ys(Il,"composeEventHandlers");function QS(l){var i;if(!sg)throw new Error("Cannot access window outside of the DOM");return((i=l==null?void 0:l.ownerDocument)==null?void 0:i.defaultView)??window}ys(QS,"getOwnerWindow");function cd(l){if(!sg)throw new Error("Cannot access document outside of the DOM");return(l==null?void 0:l.ownerDocument)??document}ys(cd,"getOwnerDocument");function ig(l,i=!1){const{activeElement:u}=cd(l);if(!(u!=null&&u.nodeName))return null;if(og(u)&&u.contentDocument)return ig(u.contentDocument.body,i);if(i){const c=u.getAttribute("aria-activedescendant");if(c){const d=cd(u).getElementById(c);if(d)return d}}return u}ys(ig,"getActiveElement");function og(l){return l.tagName==="IFRAME"}ys(og,"isFrame");var ud=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},ZS=Object.defineProperty,hl=(l,i)=>ZS(l,"name",{value:i,configurable:!0});function cg(l,i){return b.useReducer((u,c)=>i[u][c]??u,l)}hl(cg,"useStateMachine");var Xo=hl(l=>{const{present:i,children:u}=l,c=ug(i),d=typeof u=="function"?u({present:c.isPresent}):b.Children.only(u),m=dg(c.ref,fg(d));return typeof u=="function"||c.isPresent?b.cloneElement(d,{ref:m}):null},"Presence");function ug(l){const[i,u]=b.useState(),c=b.useRef(null),d=b.useRef(l),m=b.useRef("none"),p=b.useRef(void 0),y=l?"mounted":"unmounted",[v,h]=cg(y,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{v==="mounted"?(m.current=p.current??ds(c.current),p.current=void 0):m.current="none"},[v]),ud(()=>{const S=c.current,g=d.current;if(g!==l){const E=m.current,j=ds(S);l?(p.current=j,h("MOUNT")):j==="none"||(S==null?void 0:S.display)==="none"?h("UNMOUNT"):h(g&&E!==j?"ANIMATION_OUT":"UNMOUNT"),d.current=l}},[l,h]),ud(()=>{if(i){let S;const g=i.ownerDocument.defaultView??window,w=hl(j=>{const _=ds(c.current).includes(CSS.escape(j.animationName));if(j.target===i&&_&&(h("ANIMATION_END"),!d.current)){const z=i.style.animationFillMode;i.style.animationFillMode="forwards",S=g.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=z)})}},"handleAnimationEnd"),E=hl(j=>{j.target===i&&(m.current=ds(c.current))},"handleAnimationStart");return i.addEventListener("animationstart",E),i.addEventListener("animationcancel",w),i.addEventListener("animationend",w),()=>{g.clearTimeout(S),i.removeEventListener("animationstart",E),i.removeEventListener("animationcancel",w),i.removeEventListener("animationend",w)}}else h("ANIMATION_END")},[i,h]),{isPresent:["mounted","unmountSuspended"].includes(v),ref:b.useCallback(S=>{if(S){const g=getComputedStyle(S);c.current=g,p.current=ds(g)}else c.current=null;u(S)},[])}}hl(ug,"usePresence");function dd(l,i){if(typeof l=="function")return l(i);l!=null&&(l.current=i)}hl(dd,"setRef");function dg(...l){const i=b.useRef(l);return i.current=l,b.useCallback(u=>{const c=i.current;let d=!1;const m=c.map(p=>{const y=dd(p,u);return!d&&typeof y=="function"&&(d=!0),y});if(d)return()=>{for(let p=0;p<m.length;p++){const y=m[p];typeof y=="function"?y():dd(c[p],null)}}},[])}hl(dg,"useStableComposedRefs");function ds(l){return(l==null?void 0:l.animationName)||"none"}hl(ds,"getAnimationName");function fg(l){var c,d;let i=(c=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:c.get,u=i&&"isReactWarning"in i&&i.isReactWarning;return u?l.ref:(i=(d=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:d.get,u=i&&"isReactWarning"in i&&i.isReactWarning,u?l.props.ref:l.props.ref||l.ref)}hl(fg,"getElementRef");var KS=Object.defineProperty,$S=(l,i)=>KS(l,"name",{value:i,configurable:!0}),JS=b.createContext(void 0);function mg(l){const i=b.useContext(JS);return l||i||"ltr"}$S(mg,"useDirection");var WS=Object.defineProperty,IS=(l,i)=>WS(l,"name",{value:i,configurable:!0});function Wl(l){const i=b.useRef(l);return b.useEffect(()=>{i.current=l}),b.useMemo(()=>((...u)=>{var c;return(c=i.current)==null?void 0:c.call(i,...u)}),[])}IS(Wl,"useCallbackRef");var FS=Object.defineProperty,PS=(l,i)=>FS(l,"name",{value:i,configurable:!0});function hg(l,[i,u]){return Math.min(u,Math.max(i,l))}PS(hg,"clamp");var ew=Object.defineProperty,Ue=(l,i)=>ew(l,"name",{value:i,configurable:!0});function pg(l,i){return b.useReducer((u,c)=>i[u][c]??u,l)}Ue(pg,"useStateMachine");var gg="ScrollArea",[vg,qw]=lg(gg),[tw,on]=vg(gg),aw=b.forwardRef(Ue(function(i,u){const{__scopeScrollArea:c,type:d="hover",dir:m,scrollHideDelay:p=600,...y}=i,[v,h]=b.useState(null),[S,g]=b.useState(null),[w,E]=b.useState(null),[j,C]=b.useState(null),[_,z]=b.useState(null),[L,K]=b.useState(0),[ee,J]=b.useState(0),[I,Z]=b.useState(!1),[Q,pe]=b.useState(!1),xe=er(u,h),Ee=mg(m);return o.jsx(tw,{scope:c,type:d,dir:Ee,scrollHideDelay:p,scrollArea:v,viewport:S,onViewportChange:g,content:w,onContentChange:E,scrollbarX:j,onScrollbarXChange:C,scrollbarXEnabled:I,onScrollbarXEnabledChange:Z,scrollbarY:_,onScrollbarYChange:z,scrollbarYEnabled:Q,onScrollbarYEnabledChange:pe,onCornerWidthChange:K,onCornerHeightChange:J,children:o.jsx(xi.div,{dir:Ee,...y,ref:xe,style:{position:"relative","--radix-scroll-area-corner-width":L+"px","--radix-scroll-area-corner-height":ee+"px",...i.style}})})},"ScrollArea")),nw="ScrollAreaViewport",lw=b.forwardRef(Ue(function(i,u){const{__scopeScrollArea:c,children:d,nonce:m,...p}=i,y=on(nw,c),v=b.useRef(null),h=er(u,v,y.onViewportChange);return o.jsxs(o.Fragment,{children:[o.jsx(rw,{nonce:m}),o.jsx(xi.div,{"data-radix-scroll-area-viewport":"",...p,ref:h,style:{overflowX:y.scrollbarXEnabled?"scroll":"hidden",overflowY:y.scrollbarYEnabled?"scroll":"hidden",...i.style},children:o.jsx("div",{ref:y.onContentChange,style:{minWidth:"100%",display:"table"},children:d})})]})},"ScrollAreaViewport")),rw=b.memo(Ue(function({nonce:i}){return o.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i})},"ScrollAreaViewportStyle"),(l,i)=>l.nonce===i.nonce),gl="ScrollAreaScrollbar",sw=b.forwardRef(Ue(function(i,u){const{forceMount:c,...d}=i,m=on(gl,i.__scopeScrollArea),{onScrollbarXEnabledChange:p,onScrollbarYEnabledChange:y}=m,v=i.orientation==="horizontal";return b.useEffect(()=>(v?p(!0):y(!0),()=>{v?p(!1):y(!1)}),[v,p,y]),m.type==="hover"?o.jsx(iw,{...d,ref:u,forceMount:c}):m.type==="scroll"?o.jsx(ow,{...d,ref:u,forceMount:c}):m.type==="auto"?o.jsx(yg,{...d,ref:u,forceMount:c}):m.type==="always"?o.jsx(Rd,{...d,ref:u,"data-state":"visible"}):null},"ScrollAreaScrollbar")),iw=b.forwardRef(Ue(function(i,u){const{forceMount:c,...d}=i,m=on(gl,i.__scopeScrollArea),[p,y]=b.useState(!1);return b.useEffect(()=>{const v=m.scrollArea;let h=0;if(v){const S=Ue(()=>{window.clearTimeout(h),y(!0)},"handlePointerEnter"),g=Ue(()=>{h=window.setTimeout(()=>y(!1),m.scrollHideDelay)},"handlePointerLeave");return v.addEventListener("pointerenter",S),v.addEventListener("pointerleave",g),()=>{window.clearTimeout(h),v.removeEventListener("pointerenter",S),v.removeEventListener("pointerleave",g)}}},[m.scrollArea,m.scrollHideDelay]),o.jsx(Xo,{present:c||p,children:o.jsx(yg,{"data-state":p?"visible":"hidden",...d,ref:u})})},"ScrollAreaScrollbarHover")),ow=b.forwardRef(Ue(function(i,u){const{forceMount:c,...d}=i,m=on(gl,i.__scopeScrollArea),p=i.orientation==="horizontal",y=Si(()=>h("SCROLL_END"),100),[v,h]=pg("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return b.useEffect(()=>{if(v==="idle"){const S=window.setTimeout(()=>h("HIDE"),m.scrollHideDelay);return()=>window.clearTimeout(S)}},[v,m.scrollHideDelay,h]),b.useEffect(()=>{const S=m.viewport,g=p?"scrollLeft":"scrollTop";if(S){let w=S[g];const E=Ue(()=>{const j=S[g];w!==j&&(h("SCROLL"),y()),w=j},"handleScroll");return S.addEventListener("scroll",E),()=>S.removeEventListener("scroll",E)}},[m.viewport,p,h,y]),o.jsx(Xo,{present:c||v!=="hidden",children:o.jsx(Rd,{"data-state":v==="hidden"?"hidden":"visible",...d,ref:u,onPointerEnter:Il(i.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:Il(i.onPointerLeave,()=>h("POINTER_LEAVE"))})})},"ScrollAreaScrollbarScroll")),yg=b.forwardRef(Ue(function(i,u){const c=on(gl,i.__scopeScrollArea),{forceMount:d,...m}=i,[p,y]=b.useState(!1),v=i.orientation==="horizontal",h=Si(()=>{if(c.viewport){const S=c.viewport.offsetWidth<c.viewport.scrollWidth,g=c.viewport.offsetHeight<c.viewport.scrollHeight;y(v?S:g)}},10);return Ar(c.viewport,h),Ar(c.content,h),o.jsx(Xo,{present:d||p,children:o.jsx(Rd,{"data-state":p?"visible":"hidden",...m,ref:u})})},"ScrollAreaScrollbarAuto")),Rd=b.forwardRef(Ue(function(i,u){const{orientation:c="vertical",...d}=i,m=on(gl,i.__scopeScrollArea),p=b.useRef(null),y=b.useRef(0),[v,h]=b.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),S=Md(v.viewport,v.content),g={...d,sizes:v,onSizesChange:h,hasThumb:S>0&&S<1,onThumbChange:Ue(E=>p.current=E,"onThumbChange"),onThumbPointerUp:Ue(()=>y.current=0,"onThumbPointerUp"),onThumbPointerDown:Ue(E=>y.current=E,"onThumbPointerDown")};function w(E,j){return wg(E,y.current,v,j)}return Ue(w,"getScrollPosition"),c==="horizontal"?o.jsx(cw,{...g,ref:u,onThumbPositionChange:()=>{if(m.viewport&&p.current){const E=m.viewport.scrollLeft,j=md(E,v,m.dir);p.current.style.transform=`translate3d(${j}px, 0, 0)`}},onWheelScroll:E=>{m.viewport&&(m.viewport.scrollLeft=E)},onDragScroll:E=>{m.viewport&&(m.viewport.scrollLeft=w(E,m.dir))}}):c==="vertical"?o.jsx(uw,{...g,ref:u,onThumbPositionChange:()=>{if(m.viewport&&p.current){const E=m.viewport.scrollTop,j=md(E,v);p.current.style.transform=`translate3d(0, ${j}px, 0)`}},onWheelScroll:E=>{m.viewport&&(m.viewport.scrollTop=E)},onDragScroll:E=>{m.viewport&&(m.viewport.scrollTop=w(E))}}):null},"ScrollAreaScrollbarVisible")),cw=b.forwardRef(Ue(function(i,u){const{sizes:c,onSizesChange:d,...m}=i,p=on(gl,i.__scopeScrollArea),[y,v]=b.useState(),h=b.useRef(null),S=er(u,h,p.onScrollbarXChange);return b.useEffect(()=>{h.current&&v(getComputedStyle(h.current))},[h]),o.jsx(bg,{"data-orientation":"horizontal",...m,ref:S,sizes:c,style:{bottom:0,left:p.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:p.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":bi(c)+"px",...i.style},onThumbPointerDown:g=>i.onThumbPointerDown(g.x),onDragScroll:g=>i.onDragScroll(g.x),onWheelScroll:(g,w)=>{if(p.viewport){const E=p.viewport.scrollLeft+g.deltaX;i.onWheelScroll(E),Dd(E,w)&&g.preventDefault()}},onResize:()=>{h.current&&p.viewport&&y&&d({content:p.viewport.scrollWidth,viewport:p.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:hi(y.paddingLeft),paddingEnd:hi(y.paddingRight)}})}})},"ScrollAreaScrollbarX")),uw=b.forwardRef(Ue(function(i,u){const{sizes:c,onSizesChange:d,...m}=i,p=on(gl,i.__scopeScrollArea),[y,v]=b.useState(),h=b.useRef(null),S=er(u,h,p.onScrollbarYChange);return b.useEffect(()=>{h.current&&v(getComputedStyle(h.current))},[h]),o.jsx(bg,{"data-orientation":"vertical",...m,ref:S,sizes:c,style:{top:0,right:p.dir==="ltr"?0:void 0,left:p.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":bi(c)+"px",...i.style},onThumbPointerDown:g=>i.onThumbPointerDown(g.y),onDragScroll:g=>i.onDragScroll(g.y),onWheelScroll:(g,w)=>{if(p.viewport){const E=p.viewport.scrollTop+g.deltaY;i.onWheelScroll(E),Dd(E,w)&&g.preventDefault()}},onResize:()=>{h.current&&p.viewport&&y&&d({content:p.viewport.scrollHeight,viewport:p.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:hi(y.paddingTop),paddingEnd:hi(y.paddingBottom)}})}})},"ScrollAreaScrollbarY")),[dw,xg]=vg(gl),bg=b.forwardRef(Ue(function(i,u){const{__scopeScrollArea:c,sizes:d,hasThumb:m,onThumbChange:p,onThumbPointerUp:y,onThumbPointerDown:v,onThumbPositionChange:h,onDragScroll:S,onWheelScroll:g,onResize:w,...E}=i,j=on(gl,c),[C,_]=b.useState(null),z=er(u,_),L=b.useRef(null),K=b.useRef(""),ee=j.viewport,J=d.content-d.viewport,I=Wl(g),Z=Wl(h),Q=Si(w,10);function pe(xe){if(L.current){const Ee=xe.clientX-L.current.left,Re=xe.clientY-L.current.top;S({x:Ee,y:Re})}}return Ue(pe,"handleDragScroll"),b.useEffect(()=>{const xe=Ue(Ee=>{const Re=Ee.target;(C==null?void 0:C.contains(Re))&&I(Ee,J)},"handleWheel");return document.addEventListener("wheel",xe,{passive:!1}),()=>document.removeEventListener("wheel",xe,{passive:!1})},[ee,C,J,I]),b.useEffect(Z,[d,Z]),Ar(C,Q),Ar(j.content,Q),o.jsx(dw,{scope:c,scrollbar:C,hasThumb:m,onThumbChange:Wl(p),onThumbPointerUp:Wl(y),onThumbPositionChange:Z,onThumbPointerDown:Wl(v),children:o.jsx(xi.div,{...E,ref:z,style:{position:"absolute",...E.style},onPointerDown:Il(i.onPointerDown,xe=>{xe.button===0&&(xe.target.setPointerCapture(xe.pointerId),L.current=C.getBoundingClientRect(),K.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",j.viewport&&(j.viewport.style.scrollBehavior="auto"),pe(xe))}),onPointerMove:Il(i.onPointerMove,pe),onPointerUp:Il(i.onPointerUp,xe=>{const Ee=xe.target;Ee.hasPointerCapture(xe.pointerId)&&Ee.releasePointerCapture(xe.pointerId),document.body.style.webkitUserSelect=K.current,j.viewport&&(j.viewport.style.scrollBehavior=""),L.current=null})})})},"ScrollAreaScrollbarImpl")),fd="ScrollAreaThumb",fw=b.forwardRef(Ue(function(i,u){const{forceMount:c,...d}=i,m=xg(fd,i.__scopeScrollArea);return o.jsx(Xo,{present:c||m.hasThumb,children:o.jsx(mw,{ref:u,...d})})},"ScrollAreaThumb")),mw=b.forwardRef(Ue(function(i,u){const{__scopeScrollArea:c,style:d,...m}=i,p=on(fd,c),y=xg(fd,c),{onThumbPositionChange:v}=y,h=er(u,y.onThumbChange),S=b.useRef(void 0),g=Si(()=>{S.current&&(S.current(),S.current=void 0)},100);return b.useEffect(()=>{const w=p.viewport;if(w){const E=Ue(()=>{if(g(),!S.current){const j=gw(w,v);S.current=j,v()}},"handleScroll");return v(),w.addEventListener("scroll",E),()=>w.removeEventListener("scroll",E)}},[p.viewport,g,v]),o.jsx(xi.div,{"data-state":y.hasThumb?"visible":"hidden",...m,ref:h,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...d},onPointerDownCapture:Il(i.onPointerDownCapture,w=>{const j=w.target.getBoundingClientRect(),C=w.clientX-j.left,_=w.clientY-j.top;y.onThumbPointerDown({x:C,y:_})}),onPointerUp:Il(i.onPointerUp,y.onThumbPointerUp)})},"ScrollAreaThumbImpl")),Sg="ScrollAreaCorner",hw=b.forwardRef(Ue(function(i,u){const c=on(Sg,i.__scopeScrollArea),d=!!(c.scrollbarX&&c.scrollbarY);return c.type!=="scroll"&&d?o.jsx(pw,{...i,ref:u}):null},"ScrollAreaCorner")),pw=b.forwardRef(Ue(function(i,u){const{__scopeScrollArea:c,...d}=i,m=on(Sg,c),[p,y]=b.useState(0),[v,h]=b.useState(0),S=!!(p&&v),{onCornerWidthChange:g,onCornerHeightChange:w}=m;return Ar(m.scrollbarX,()=>{var j;const E=((j=m.scrollbarX)==null?void 0:j.offsetHeight)||0;m.onCornerHeightChange(E),h(E)}),Ar(m.scrollbarY,()=>{var j;const E=((j=m.scrollbarY)==null?void 0:j.offsetWidth)||0;m.onCornerWidthChange(E),y(E)}),b.useEffect(()=>()=>{g(0),w(0)},[g,w]),S?o.jsx(xi.div,{...d,ref:u,style:{width:p,height:v,position:"absolute",right:m.dir==="ltr"?0:void 0,left:m.dir==="rtl"?0:void 0,bottom:0,...i.style}}):null},"ScrollAreaCornerImpl"));function hi(l){return l?parseInt(l,10):0}Ue(hi,"toInt");function Md(l,i){const u=l/i;return isNaN(u)?0:u}Ue(Md,"getThumbRatio");function bi(l){const i=Md(l.viewport,l.content),u=l.scrollbar.paddingStart+l.scrollbar.paddingEnd,c=(l.scrollbar.size-u)*i;return Math.max(c,18)}Ue(bi,"getThumbSize");function wg(l,i,u,c="ltr"){const d=bi(u),m=d/2,p=i||m,y=d-p,v=u.scrollbar.paddingStart+p,h=u.scrollbar.size-u.scrollbar.paddingEnd-y,S=u.content-u.viewport,g=c==="ltr"?[0,S]:[S*-1,0];return kd([v,h],g)(l)}Ue(wg,"getScrollPositionFromPointer");function md(l,i,u="ltr"){const c=bi(i),d=i.scrollbar.paddingStart+i.scrollbar.paddingEnd,m=i.scrollbar.size-d,p=i.content-i.viewport,y=m-c,v=u==="ltr"?[0,p]:[p*-1,0],h=hg(l,v);return kd([0,p],[0,y])(h)}Ue(md,"getThumbOffsetFromScroll");function kd(l,i){return u=>{if(l[0]===l[1]||i[0]===i[1])return i[0];const c=(i[1]-i[0])/(l[1]-l[0]);return i[0]+c*(u-l[0])}}Ue(kd,"linearScale");function Dd(l,i){return l>0&&l<i}Ue(Dd,"isScrollingWithinScrollbarBounds");var gw=Ue((l,i=()=>{})=>{let u={left:l.scrollLeft,top:l.scrollTop},c=0;return Ue((function d(){const m={left:l.scrollLeft,top:l.scrollTop},p=u.left!==m.left,y=u.top!==m.top;(p||y)&&i(),u=m,c=window.requestAnimationFrame(d)}),"loop")(),()=>window.cancelAnimationFrame(c)},"addUnlinkedScrollListener");function Si(l,i){const u=Wl(l),c=b.useRef(0);return b.useEffect(()=>()=>window.clearTimeout(c.current),[]),b.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(u,i)},[u,i])}Ue(Si,"useDebounceCallback");function Ar(l,i){const u=Wl(i);ud(()=>{let c=0;if(l){const d=new ResizeObserver(()=>{cancelAnimationFrame(c),c=window.requestAnimationFrame(u)});return d.observe(l),()=>{window.cancelAnimationFrame(c),d.unobserve(l)}}},[l,u])}Ue(Ar,"useResizeObserver");var vw=aw,yw=lw,xw=hw;const bw=Zp("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function Jt({className:l,variant:i="default",asChild:u=!1,...c}){const d=u?Fp:"span";return o.jsx(d,{"data-slot":"badge","data-variant":i,className:Pt(bw({variant:i}),l),...c})}function qn({isConnected:l}){const{projects:i,selectedProjectId:u,setSelectedProjectId:c,projectApiKey:d}=Hn(),{apiUrl:m,token:p}=ya(),[y,v]=b.useState(!1);return b.useEffect(()=>{const h=d||p;if(!h)return;const S=async()=>{try{const w={Authorization:`Bearer ${h}`};u&&(w["x-project-id"]=u);const E=await fetch(`${m}/v1/system/metrics`,{headers:w});if(E.ok){const C=(await E.json()).streams||{},_=Math.max(...Object.values(C),0);v(_>8e3)}}catch{}};S();const g=setInterval(()=>void S(),1e4);return()=>clearInterval(g)},[m,d,u,p]),o.jsx("header",{className:"sticky top-0 z-40 w-full border-b border-border bg-background",children:o.jsxs("div",{className:"container mx-auto flex h-14 items-center justify-between px-4",children:[o.jsxs("div",{className:"flex items-center gap-2 font-bold text-lg tracking-tight",children:[o.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-md bg-muted text-foreground border border-border",children:o.jsx(bp,{className:"h-4 w-4 text-foreground"})}),"Notifkit ",o.jsx("span",{className:"text-muted-foreground font-normal",children:"Observability"})]}),o.jsxs("div",{className:"flex items-center gap-4",children:[y&&o.jsxs(Jt,{variant:"destructive",className:"flex items-center gap-1.5 px-2.5 py-1 text-xs",children:[o.jsx(Go,{className:"h-3.5 w-3.5"}),"Queue Backpressure Warning (>80% Cap)"]}),i.length>0&&o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(Ed,{className:"h-4 w-4 text-muted-foreground"}),o.jsx("select",{className:"bg-muted border border-border text-sm rounded-md px-2.5 py-1.5 outline-none cursor-pointer text-foreground max-w-[200px] truncate",value:u,onChange:h=>c(h.target.value),children:i.map(h=>o.jsx("option",{value:h.id,children:h.name},h.id))})]}),o.jsxs(Jt,{variant:l?"default":"destructive",className:"flex items-center gap-1.5 px-3 py-1",children:[o.jsx(Nd,{className:"h-3.5 w-3.5"}),l?"Live Stream Active":"Disconnected"]})]})]})})}function Tt({className:l,...i}){return o.jsx("div",{"data-slot":"card",className:Pt("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",l),...i})}function zt({className:l,...i}){return o.jsx("div",{"data-slot":"card-header",className:Pt("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",l),...i})}function _t({className:l,...i}){return o.jsx("div",{"data-slot":"card-title",className:Pt("leading-none font-semibold",l),...i})}function rn({className:l,...i}){return o.jsx("div",{"data-slot":"card-description",className:Pt("text-sm text-muted-foreground",l),...i})}function Rt({className:l,...i}){return o.jsx("div",{"data-slot":"card-content",className:Pt("px-6",l),...i})}function Sw({className:l,children:i,...u}){return o.jsxs(vw,{"data-slot":"scroll-area",className:Pt("relative",l),...u,children:[o.jsx(yw,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:i}),o.jsx(ww,{}),o.jsx(xw,{})]})}function ww({className:l,orientation:i="vertical",...u}){return o.jsx(sw,{"data-slot":"scroll-area-scrollbar",orientation:i,className:Pt("flex touch-none p-px transition-colors select-none",i==="vertical"&&"h-full w-2.5 border-l border-l-transparent",i==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",l),...u,children:o.jsx(fw,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}function jw({setIsConnected:l}){const[i,u]=b.useState([]),{projects:c,selectedProjectId:d,projectApiKey:m,isLoadingProjects:p}=Hn(),{apiUrl:y}=ya();return b.useEffect(()=>{if(!m||!d)return;l(!1);const v=new EventSource(`${y}/v1/events/stream?token=${encodeURIComponent(m)}&projectId=${encodeURIComponent(d)}`);v.onopen=()=>{l(!0),Ge.success("Connected to real-time feed")},v.onerror=()=>{l(!1)};const h=g=>{try{const w=JSON.parse(g.data),E={id:crypto.randomUUID(),type:"delivered",taskId:w.taskId,channel:w.channel,providerMessageId:w.providerMessageId,timestamp:new Date};u(j=>[E,...j].slice(0,100))}catch(w){console.error("Failed to parse delivered event",w)}},S=g=>{try{const w=JSON.parse(g.data),E={id:crypto.randomUUID(),type:"failed",taskId:w.taskId,channel:w.channel,error:w.error,timestamp:new Date};u(j=>[E,...j].slice(0,100))}catch(w){console.error("Failed to parse failed event",w)}};return v.addEventListener("delivery:delivered",h),v.addEventListener("delivery:failed",S),()=>{v.removeEventListener("delivery:delivered",h),v.removeEventListener("delivery:failed",S),v.close()}},[y,m,d,l]),o.jsxs(Tt,{className:"h-full flex flex-col border-border bg-card",children:[o.jsxs(zt,{className:"pb-3 border-b border-border flex flex-row items-center justify-between",children:[o.jsxs("div",{children:[o.jsxs(_t,{className:"text-xl flex items-center gap-2",children:[o.jsx(Nw,{}),"Live Activity Feed"]}),o.jsx(rn,{children:"Real-time delivery events from the notification pipeline"})]}),o.jsxs("div",{className:"flex items-center gap-2 text-sm bg-muted p-1.5 rounded-md border border-border px-3",children:[o.jsx(jb,{className:"w-4 h-4 text-muted-foreground"}),o.jsx("span",{className:"text-xs font-medium text-foreground",children:"Instant Stream"})]})]}),o.jsx(Rt,{className:"flex-1 p-0 overflow-hidden",children:o.jsx(Sw,{className:"h-full min-h-[500px] w-full px-6 py-4",children:p?o.jsxs("div",{className:"flex flex-col items-center justify-center h-40 text-muted-foreground gap-3",children:[o.jsx(fl,{className:"h-8 w-8 opacity-50"}),o.jsx("p",{className:"text-sm",children:"Loading projects..."})]}):c.length===0?o.jsxs("div",{className:"flex flex-col items-center justify-center h-40 text-muted-foreground gap-3",children:[o.jsx(fl,{className:"h-8 w-8 opacity-50"}),o.jsx("p",{className:"text-sm",children:"No projects exist. Create one in the Projects & Keys tab."})]}):m?i.length===0?o.jsxs("div",{className:"flex flex-col items-center justify-center h-40 text-muted-foreground gap-3",children:[o.jsx(fl,{className:"h-8 w-8 opacity-50"}),o.jsx("p",{className:"text-sm",children:"Waiting for events..."})]}):o.jsx("div",{className:"flex flex-col gap-3",children:i.map(v=>o.jsxs("div",{className:"rounded-lg border border-border p-4 bg-card hover:bg-muted/50 transition-colors shadow-xs",children:[o.jsxs("div",{className:"flex justify-between items-start mb-2",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[v.type==="delivered"?o.jsx(hs,{className:"h-4 w-4 text-foreground"}):o.jsx(Yo,{className:"h-4 w-4 text-destructive"}),o.jsx("span",{className:"font-semibold text-sm capitalize",children:v.type})]}),o.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:v.timestamp.toLocaleTimeString()})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-2 text-sm mt-3",children:[o.jsxs("div",{className:"flex flex-col",children:[o.jsx("span",{className:"text-[10px] text-muted-foreground uppercase tracking-wider",children:"Channel"}),o.jsx(Jt,{variant:"secondary",className:"w-fit mt-1 text-xs capitalize font-normal",children:v.channel})]}),o.jsxs("div",{className:"flex flex-col",children:[o.jsx("span",{className:"text-[10px] text-muted-foreground uppercase tracking-wider",children:"Task ID"}),o.jsx("span",{className:"font-mono text-xs truncate mt-1 text-foreground",children:v.taskId})]})]}),v.error&&o.jsx("div",{className:"mt-3 text-xs bg-destructive/10 text-destructive p-2.5 rounded-md border border-destructive/20 font-mono",children:v.error})]},v.id))}):o.jsxs("div",{className:"flex flex-col items-center justify-center h-40 text-muted-foreground gap-3",children:[o.jsx(fl,{className:"h-8 w-8 opacity-50"}),o.jsx("p",{className:"text-sm",children:"No API key found for this project."})]})})})]})}function Nw(){return o.jsxs("div",{className:"relative flex h-2.5 w-2.5",children:[o.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-primary opacity-75"}),o.jsx("span",{className:"relative inline-flex rounded-full h-2.5 w-2.5 bg-primary"})]})}function G0(){const[l,i]=b.useState(!1);return o.jsxs("div",{className:"min-h-full flex flex-col w-full",children:[o.jsx(qn,{isConnected:l}),o.jsx("main",{className:"flex-1 container mx-auto p-4 md:p-6",children:o.jsx("div",{className:"pb-4",children:o.jsx("div",{className:"min-h-[500px]",children:o.jsx(jw,{setIsConnected:i})})})})]})}const Ew=Zp("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Ke({className:l,variant:i="default",size:u="default",asChild:c=!1,...d}){const m=c?Fp:"button";return o.jsx(m,{"data-slot":"button","data-variant":i,"data-size":u,className:Pt(Ew({variant:i,size:u,className:l})),...d})}function pi({className:l,type:i,...u}){return o.jsx("input",{type:i,"data-slot":"input",className:Pt("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",l),...u})}function Aw(){const{login:l}=ya(),[i,u]=b.useState(""),[c,d]=b.useState(""),[m,p]=b.useState(!1),[y,v]=b.useState(null),h=async S=>{if(S.preventDefault(),!i.trim()||!c){v("Please enter both your email/user ID and password.");return}p(!0),v(null);const g=await l(i.trim(),c);p(!1),g.success?Ge.success("Welcome back!",{description:"Logged in successfully."}):(v(g.error||"Invalid email/user ID or password."),Ge.error("Authentication failed",{description:g.error}))};return o.jsx("div",{className:"min-h-screen w-full flex items-center justify-center p-4 bg-background",children:o.jsxs("div",{className:"w-full max-w-md",children:[o.jsxs("div",{className:"flex flex-col items-center mb-8 text-center",children:[o.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-lg bg-primary text-primary-foreground mb-4",children:o.jsx(bp,{className:"h-6 w-6"})}),o.jsx("h1",{className:"text-2xl font-bold tracking-tight text-foreground",children:"Notifkit Admin"}),o.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Sign in to access your notification engine and observability suite."})]}),o.jsxs(Tt,{className:"border-border bg-card shadow-sm",children:[o.jsxs(zt,{className:"space-y-1 pb-4",children:[o.jsx(_t,{className:"text-lg font-semibold",children:"Admin Login"}),o.jsx(rn,{className:"text-xs",children:"Enter your admin credentials below"})]}),o.jsxs(Rt,{children:[y&&o.jsxs("div",{className:"mb-4 flex items-center gap-2 p-3 text-xs rounded-md bg-destructive/10 text-destructive border border-destructive/20",children:[o.jsx(qo,{className:"h-4 w-4 shrink-0"}),o.jsx("span",{children:y})]}),o.jsxs("form",{onSubmit:S=>{S.preventDefault(),h(S)},className:"space-y-4",children:[o.jsxs("div",{className:"space-y-1.5",children:[o.jsxs("label",{className:"text-xs font-medium text-foreground flex items-center gap-1.5",children:[o.jsx(Rb,{className:"h-3.5 w-3.5 text-muted-foreground"}),"Email or Username"]}),o.jsx(pi,{type:"text",required:!0,autoFocus:!0,placeholder:"admin@example.com",value:i,onChange:S=>u(S.target.value)})]}),o.jsxs("div",{className:"space-y-1.5",children:[o.jsxs("label",{className:"text-xs font-medium text-foreground flex items-center gap-1.5",children:[o.jsx(ab,{className:"h-3.5 w-3.5 text-muted-foreground"}),"Password"]}),o.jsx(pi,{type:"password",required:!0,placeholder:"••••••••••••",value:c,onChange:S=>d(S.target.value)})]}),o.jsx(Ke,{type:"submit",disabled:m,className:"w-full mt-2",children:m?o.jsxs(o.Fragment,{children:[o.jsx(mi,{className:"h-4 w-4 animate-spin mr-2"}),o.jsx("span",{children:"Signing in..."})]}):o.jsxs(o.Fragment,{children:[o.jsx("span",{children:"Sign In"}),o.jsx(Nx,{className:"h-4 w-4 ml-2"})]})})]}),o.jsxs("div",{className:"mt-6 pt-4 border-t border-border flex items-center justify-center gap-1.5 text-xs text-muted-foreground",children:[o.jsx(Eb,{className:"h-3.5 w-3.5 text-foreground"}),o.jsx("span",{children:"Protected by salted Scrypt & Redis session auth"})]})]})]})]})})}function xs({className:l,...i}){return o.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:o.jsx("table",{"data-slot":"table",className:Pt("w-full caption-bottom text-sm",l),...i})})}function bs({className:l,...i}){return o.jsx("thead",{"data-slot":"table-header",className:Pt("[&_tr]:border-b",l),...i})}function Ss({className:l,...i}){return o.jsx("tbody",{"data-slot":"table-body",className:Pt("[&_tr:last-child]:border-0",l),...i})}function qt({className:l,...i}){return o.jsx("tr",{"data-slot":"table-row",className:Pt("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",l),...i})}function Je({className:l,...i}){return o.jsx("th",{"data-slot":"table-head",className:Pt("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",l),...i})}function ke({className:l,...i}){return o.jsx("td",{"data-slot":"table-cell",className:Pt("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",l),...i})}function Cw(){const[l,i]=b.useState([]),[u,c]=b.useState(null),[d,m]=b.useState([null]),[p,y]=b.useState(0),[v,h]=b.useState(!1),[S,g]=b.useState(""),[w,E]=b.useState(""),[j,C]=b.useState(""),[_,z]=b.useState(null),[L,K]=b.useState([]),[ee,J]=b.useState(!1),{projects:I,selectedProjectId:Z,projectApiKey:Q,isLoadingProjects:pe}=Hn(),{apiUrl:xe}=ya(),Ee=b.useCallback(async(ne,ge,M)=>{h(!0);try{const G=new URLSearchParams({limit:"25"});M&&G.set("cursor",M),S&&G.set("search",S),w&&G.set("channel",w),j&&G.set("status",j);const re=await fetch(`${xe}/v1/notifications/logs?${G.toString()}`,{headers:{Authorization:`Bearer ${ne}`,"x-project-id":ge}});if(!re.ok)throw new Error(`Failed to fetch: ${re.statusText}`);const Se=await re.json();i(Se.logs||[]),c(Se.nextCursor||null)}catch(G){console.error(G),Ge.error("Failed to fetch logs")}finally{h(!1)}},[xe,S,w,j]);b.useEffect(()=>{Q&&Z?(m([null]),y(0),Ee(Q,Z,null)):i([])},[Q,Z,S,w,j,Ee]),b.useEffect(()=>{_&&Q&&Z?(J(!0),fetch(`${xe}/v1/notifications/${_.taskId}`,{headers:{Authorization:`Bearer ${Q}`,"x-project-id":Z}}).then(ne=>ne.ok?ne.json():null).then(ne=>{if(ne&&ne.logs){const ge=[...ne.logs].sort((M,G)=>new Date(M.timestamp).getTime()-new Date(G.timestamp).getTime());K(ge)}else K([_])}).catch(()=>K([_])).finally(()=>J(!1))):K([])},[xe,_,Q,Z]);const Re=()=>{if(u&&Q&&Z){const ne=[...d.slice(0,p+1),u];m(ne),y(p+1),Ee(Q,Z,u)}},Xe=()=>{if(p>0&&Q&&Z){const ne=d[p-1]??null;y(p-1),Ee(Q,Z,ne)}};return o.jsxs(Tt,{className:"h-full flex flex-col border-border bg-card",children:[o.jsxs(zt,{className:"pb-3 border-b border-border space-y-3",children:[o.jsxs("div",{className:"flex flex-row items-center justify-between",children:[o.jsxs("div",{children:[o.jsxs(_t,{className:"text-xl flex items-center gap-2",children:[o.jsx(wp,{className:"h-5 w-5 text-foreground"}),"Historical Dispatches & Audit Logs"]}),o.jsx(rn,{children:"Comprehensive notification audit trail with payload context"})]}),o.jsx(Ke,{variant:"outline",size:"icon",onClick:()=>{Q&&Z&&Ee(Q,Z,d[p])},disabled:v||!Q||!Z,className:"h-8 w-8 rounded-md border-border",children:o.jsx(Cr,{className:`h-4 w-4 ${v?"animate-spin":""}`})})]}),o.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-2 pt-2",children:[o.jsxs("div",{className:"relative",children:[o.jsx(Tp,{className:"absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground"}),o.jsx(pi,{type:"text",placeholder:"Search Task ID or Template...",value:S,onChange:ne=>g(ne.target.value),className:"pl-9 text-xs font-mono"})]}),o.jsxs("select",{value:w,onChange:ne=>E(ne.target.value),className:"px-3 py-1.5 bg-background border border-input rounded-md text-xs focus:outline-none focus:ring-1 focus:ring-ring text-foreground",children:[o.jsx("option",{value:"",children:"All Channels"}),o.jsx("option",{value:"email",children:"Email"}),o.jsx("option",{value:"sms",children:"SMS"}),o.jsx("option",{value:"push",children:"Push"})]}),o.jsxs("select",{value:j,onChange:ne=>C(ne.target.value),className:"px-3 py-1.5 bg-background border border-input rounded-md text-xs focus:outline-none focus:ring-1 focus:ring-ring text-foreground",children:[o.jsx("option",{value:"",children:"All Statuses"}),o.jsx("option",{value:"delivered",children:"Delivered"}),o.jsx("option",{value:"failed",children:"Failed"}),o.jsx("option",{value:"dispatched",children:"Dispatched"}),o.jsx("option",{value:"pending",children:"Pending"})]})]})]}),o.jsx(Rt,{className:"flex-1 p-0 overflow-auto",children:o.jsxs(xs,{children:[o.jsx(bs,{className:"bg-muted/50 sticky top-0",children:o.jsxs(qt,{children:[o.jsx(Je,{className:"font-medium",children:"Timestamp"}),o.jsx(Je,{className:"font-medium",children:"Task ID"}),o.jsx(Je,{className:"font-medium",children:"Template"}),o.jsx(Je,{className:"font-medium",children:"Channel"}),o.jsx(Je,{className:"font-medium",children:"Status"}),o.jsx(Je,{className:"font-medium text-right",children:"Details"})]})}),o.jsx(Ss,{children:pe?o.jsx(qt,{children:o.jsx(ke,{colSpan:6,className:"h-24 text-center text-muted-foreground",children:"Loading projects..."})}):I.length===0?o.jsx(qt,{children:o.jsx(ke,{colSpan:6,className:"h-24 text-center text-muted-foreground",children:"No projects exist. Create one in Projects & Keys tab."})}):l.length===0&&!v?o.jsx(qt,{children:o.jsx(ke,{colSpan:6,className:"h-24 text-center text-muted-foreground",children:"No log entries match your filter."})}):Array.from(l.reduce((ne,ge)=>(ne.has(ge.taskId)?ne.get(ge.taskId).status==="dispatched"&&ge.status!=="dispatched"&&ne.set(ge.taskId,ge):ne.set(ge.taskId,ge),ne),new Map).values()).map(ne=>o.jsxs(qt,{className:"hover:bg-muted/50 transition-colors cursor-pointer",onClick:()=>z(ne),children:[o.jsx(ke,{className:"text-muted-foreground whitespace-nowrap text-xs",children:new Date(ne.timestamp).toLocaleString()}),o.jsx(ke,{className:"font-mono text-xs font-semibold text-foreground",children:ne.taskId}),o.jsx(ke,{className:"font-medium text-xs",children:ne.templateId}),o.jsx(ke,{children:o.jsx(Jt,{variant:"secondary",className:"capitalize font-normal text-xs",children:ne.channel})}),o.jsx(ke,{children:o.jsx(V0,{status:ne.status})}),o.jsx(ke,{className:"text-right",children:o.jsx(Ke,{variant:"ghost",size:"icon",className:"h-7 w-7 text-muted-foreground",children:o.jsx(vs,{className:"h-4 w-4"})})})]},ne.id))})]})}),o.jsxs("div",{className:"p-3 border-t border-border flex items-center justify-between text-xs text-muted-foreground bg-muted/20",children:[o.jsxs("span",{children:["Page ",p+1]}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsxs(Ke,{variant:"outline",size:"sm",onClick:Xe,disabled:p===0||v,className:"h-7 text-xs border-border",children:[o.jsx(Tx,{className:"h-3.5 w-3.5 mr-1"})," Previous"]}),o.jsxs(Ke,{variant:"outline",size:"sm",onClick:Re,disabled:!u||v,className:"h-7 text-xs border-border",children:["Next ",o.jsx(_x,{className:"h-3.5 w-3.5 ml-1"})]})]})]}),_&&o.jsx("div",{className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-xs flex justify-end",children:o.jsxs("div",{className:"w-full max-w-xl bg-card border-l border-border p-6 overflow-y-auto space-y-6",children:[o.jsxs("div",{className:"flex items-center justify-between border-b border-border pb-3",children:[o.jsxs("div",{children:[o.jsx("h2",{className:"text-lg font-bold text-foreground",children:"Event Lifecycle & Detail"}),o.jsxs("p",{className:"text-xs text-muted-foreground font-mono",children:["Task ID: ",_.taskId]})]}),o.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>z(null),children:"Close"})]}),o.jsxs("div",{className:"space-y-3",children:[o.jsxs("h3",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider flex items-center gap-1.5",children:[o.jsx(Zx,{className:"h-4 w-4 text-foreground"}),"Notification Event Lifecycle"]}),ee?o.jsx("div",{className:"p-4 rounded-lg bg-muted text-xs text-muted-foreground animate-pulse",children:"Loading complete event lifecycle logs..."}):L.length===0?o.jsx("div",{className:"p-4 rounded-lg bg-muted text-xs text-muted-foreground",children:"No lifecycle history recorded."}):o.jsx("div",{className:"relative pl-6 space-y-4 before:absolute before:left-2.5 before:top-2 before:bottom-2 before:w-px before:bg-border",children:L.map(ne=>{const ge=new Date(L[0].timestamp).getTime(),G=new Date(ne.timestamp).getTime()-ge;return o.jsxs("div",{className:"relative group",children:[o.jsx("div",{className:"absolute -left-6 top-0.5 h-5 w-5 rounded-full bg-background border border-border flex items-center justify-center",children:ne.status==="delivered"?o.jsx(hs,{className:"h-3 w-3 text-foreground"}):ne.status==="failed"?o.jsx(qo,{className:"h-3 w-3 text-destructive"}):o.jsx(xb,{className:"h-2.5 w-2.5 text-muted-foreground"})}),o.jsxs("div",{className:"p-3 rounded-lg bg-muted/40 border border-border text-xs space-y-1.5",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(V0,{status:ne.status}),o.jsx("span",{className:"font-semibold capitalize text-foreground",children:ne.kind==="attempt"?`Attempt #${ne.attempt||1}`:ne.kind})]}),o.jsx("span",{className:"font-mono text-[11px] text-muted-foreground",children:G>0?`+${G}ms`:"Start"})]}),o.jsxs("div",{className:"flex items-center justify-between text-muted-foreground text-[11px]",children:[o.jsxs("span",{children:["Channel:"," ",o.jsx("strong",{className:"text-foreground capitalize",children:ne.channel})]}),o.jsx("span",{children:new Date(ne.timestamp).toLocaleTimeString()})]}),ne.providerMessageId&&o.jsxs("div",{className:"text-[11px] text-muted-foreground font-mono",children:["Provider Msg ID:"," ",o.jsx("span",{className:"text-foreground",children:ne.providerMessageId})]})]})]},ne.id)})})]}),o.jsxs("div",{className:"space-y-2 text-xs border-t border-border pt-4",children:[o.jsx("h3",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:"Selected Log Record Metadata"}),o.jsxs("div",{className:"grid grid-cols-2 gap-2 p-3 rounded-lg bg-muted/40 border border-border",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Log UUID:"}),o.jsx("div",{className:"font-mono text-foreground truncate",children:_.id})]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Template ID:"}),o.jsx("div",{className:"font-semibold text-foreground",children:_.templateId})]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Provider Message ID:"}),o.jsx("div",{className:"font-mono text-foreground truncate",children:_.providerMessageId||"N/A"})]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Workflow Instance:"}),o.jsx("div",{className:"font-mono text-foreground truncate",children:_.workflowInstanceId||"Direct Send"})]})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs font-semibold text-muted-foreground",children:"Full JSON Context"}),o.jsx("pre",{className:"mt-1 p-4 rounded-lg bg-muted border border-border text-xs font-mono overflow-x-auto text-foreground",children:JSON.stringify(_,null,2)})]})]})})]})}function V0({status:l}){let i="outline";switch(l){case"delivered":i="default";break;case"failed":i="destructive";break;case"pending":case"dispatched":i="secondary";break;case"canceled":case"skipped":i="outline";break}return o.jsx(Jt,{variant:i,className:"capitalize text-[10px] font-medium",children:l})}function Tw(){return o.jsxs("div",{className:"min-h-full flex flex-col w-full",children:[o.jsx(qn,{isConnected:!0}),o.jsx("main",{className:"flex-1 container mx-auto p-4 md:p-6",children:o.jsx("div",{className:"pb-4",children:o.jsx("div",{className:"min-h-[500px]",children:o.jsx(Cw,{})})})})]})}function zw(){var S,g,w,E,j,C;const[l,i]=b.useState(null),[u,c]=b.useState(!0),{projectApiKey:d,selectedProjectId:m}=Hn(),{apiUrl:p,token:y}=ya(),v=b.useCallback(async()=>{const _=d||y;if(!_){c(!1);return}try{const z={Authorization:`Bearer ${_}`};m&&(z["x-project-id"]=m);const L=await fetch(`${p}/v1/system/health`,{headers:z});if(!L.ok)throw new Error(`HTTP ${L.status}`);const K=await L.json();i(K)}catch(z){console.error(z),Ge.error("Failed to fetch system health")}finally{c(!1)}},[p,d,m,y]);b.useEffect(()=>{if(d||y){v();const z=setInterval(()=>void v(),5e3);return()=>clearInterval(z)}},[d,y,v]);const h=["enricher","engine","scheduler","delivery","ai","workflow","events"];return o.jsxs("div",{className:"min-h-full flex flex-col w-full",children:[o.jsx(qn,{isConnected:(l==null?void 0:l.status)==="healthy"}),o.jsxs("main",{className:"flex-1 container mx-auto p-4 md:p-6 space-y-6",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsxs("h1",{className:"text-2xl font-bold tracking-tight flex items-center gap-2",children:[o.jsx(Ep,{className:"h-6 w-6 text-foreground"}),"System Infrastructure & Worker Health"]}),o.jsx("p",{className:"text-muted-foreground text-sm",children:"Real-time heartbeats, database/Redis latencies, and microservice status"})]}),o.jsxs(Ke,{variant:"outline",size:"sm",onClick:()=>{c(!0),v()},disabled:u,children:[o.jsx(Cr,{className:`h-4 w-4 mr-2 ${u?"animate-spin":""}`}),"Refresh"]})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[o.jsxs(Tt,{className:"border-border bg-card",children:[o.jsxs(zt,{className:"pb-2 flex flex-row items-center justify-between",children:[o.jsx(_t,{className:"text-sm font-medium text-muted-foreground",children:"Redis Connection"}),o.jsx(Sb,{className:"h-4 w-4 text-muted-foreground"})]}),o.jsx(Rt,{children:u&&!l?o.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[o.jsx(mi,{className:"h-4 w-4 animate-spin"})," Checking..."]}):o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("span",{className:"text-2xl font-bold",children:[((S=l==null?void 0:l.redis)==null?void 0:S.latencyMs)??0," ms"]}),o.jsx(Jt,{variant:(g=l==null?void 0:l.redis)!=null&&g.ok?"default":"destructive",children:(w=l==null?void 0:l.redis)!=null&&w.ok?"Connected":"Disconnected"})]})})]}),o.jsxs(Tt,{className:"border-border bg-card",children:[o.jsxs(zt,{className:"pb-2 flex flex-row items-center justify-between",children:[o.jsx(_t,{className:"text-sm font-medium text-muted-foreground",children:"PostgreSQL Database"}),o.jsx(wp,{className:"h-4 w-4 text-muted-foreground"})]}),o.jsx(Rt,{children:u&&!l?o.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[o.jsx(mi,{className:"h-4 w-4 animate-spin"})," Checking..."]}):o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("span",{className:"text-2xl font-bold",children:[((E=l==null?void 0:l.db)==null?void 0:E.latencyMs)??0," ms"]}),o.jsx(Jt,{variant:(j=l==null?void 0:l.db)!=null&&j.ok?"default":"destructive",children:(C=l==null?void 0:l.db)!=null&&C.ok?"Healthy":"Unreachable"})]})})]}),o.jsxs(Tt,{className:"border-border bg-card",children:[o.jsxs(zt,{className:"pb-2 flex flex-row items-center justify-between",children:[o.jsx(_t,{className:"text-sm font-medium text-muted-foreground",children:"Overall Cluster State"}),o.jsx(Hx,{className:"h-4 w-4 text-muted-foreground"})]}),o.jsx(Rt,{children:u&&!l?o.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[o.jsx(mi,{className:"h-4 w-4 animate-spin"})," Checking..."]}):o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"text-2xl font-bold capitalize",children:(l==null?void 0:l.status)??"Checking"}),o.jsx(_w,{status:l==null?void 0:l.status})]})})]})]}),o.jsxs(Tt,{className:"border-border bg-card",children:[o.jsxs(zt,{children:[o.jsx(_t,{className:"text-lg",children:"Worker Heartbeats & Concurrency"}),o.jsx(rn,{children:"Monitored active workers in the event pipeline"})]}),o.jsx(Rt,{children:o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:h.map(_=>{var ee;const z=(ee=l==null?void 0:l.workers)==null?void 0:ee[_],L=!!(z&&z.status!=="error"&&z.status!=="unknown"&&(z.redis!==!1||z.status==="active"||z.status==="healthy"||z.state)),K=(z==null?void 0:z.state)||(z!=null&&z.status&&z.status!=="unknown"?z.status:null)||(z!=null&&z.redis?"Active":"Idle / Standby");return o.jsxs("div",{className:"p-4 rounded-lg border border-border bg-muted/40 flex flex-col justify-between space-y-3 hover:border-border transition-colors",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("span",{className:"font-semibold text-sm capitalize",children:[_," Worker"]}),o.jsx("span",{className:`h-2.5 w-2.5 rounded-full ${L?"bg-foreground":"bg-muted-foreground/40"}`})]}),o.jsxs("div",{className:"space-y-1 text-xs text-muted-foreground",children:[o.jsxs("div",{className:"flex justify-between",children:[o.jsx("span",{children:"Status:"}),o.jsx("span",{className:"font-medium text-foreground capitalize",children:K})]}),o.jsxs("div",{className:"flex justify-between",children:[o.jsx("span",{children:"Active Concurrency:"}),o.jsxs("span",{className:"font-mono text-foreground font-semibold",children:[(z==null?void 0:z.activeTasks)??0," tasks"]})]})]})]},_)})})})]})]})]})}function _w({status:l}){return l==="healthy"?o.jsx(hs,{className:"h-5 w-5 text-foreground"}):l==="degraded"?o.jsx(qo,{className:"h-5 w-5 text-muted-foreground"}):o.jsx(Yo,{className:"h-5 w-5 text-destructive"})}function Rw(){var S,g,w,E;const[l,i]=b.useState(null),[u,c]=b.useState(!0),{projectApiKey:d,selectedProjectId:m}=Hn(),{apiUrl:p,token:y}=ya(),v=b.useCallback(async()=>{const j=d||y;if(!j){c(!1);return}c(!0);try{const C={Authorization:`Bearer ${j}`};m&&(C["x-project-id"]=m);const _=await fetch(`${p}/v1/system/metrics`,{headers:C});if(!_.ok)throw new Error(`HTTP ${_.status}`);const z=await _.json();i(z)}catch(C){console.error(C),Ge.error("Failed to fetch analytics & queue metrics")}finally{c(!1)}},[p,d,m,y]);b.useEffect(()=>{if(d||y){v();const C=setInterval(()=>void v(),5e3);return()=>clearInterval(C)}},[d,y,v]);const h=[{key:"INBOUND_CRITICAL",label:"Inbound Critical Stream"},{key:"INBOUND_NORMAL",label:"Inbound Normal Stream"},{key:"INBOUND_LOW",label:"Inbound Low Stream"},{key:"OUTBOUND_CRITICAL",label:"Outbound Critical Stream"},{key:"OUTBOUND_NORMAL",label:"Outbound Normal Stream"},{key:"OUTBOUND_LOW",label:"Outbound Low Stream"},{key:"WORKFLOW_INBOUND",label:"Workflow Inbound Stream"},{key:"EVENTS_INBOUND",label:"Events Inbound Stream"}];return o.jsxs("div",{className:"min-h-full flex flex-col w-full",children:[o.jsx(qn,{isConnected:!0}),o.jsxs("main",{className:"flex-1 container mx-auto p-4 md:p-6 space-y-6",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsxs("h1",{className:"text-2xl font-bold tracking-tight flex items-center gap-2",children:[o.jsx(Sp,{className:"h-6 w-6 text-foreground"}),"Pipeline Analytics & Queue Depths"]}),o.jsx("p",{className:"text-muted-foreground text-sm",children:"Delivery success rate SLA, dispatch throughput, and Redis stream queue depths"})]}),o.jsxs(Ke,{variant:"outline",size:"sm",onClick:()=>void v(),disabled:u,children:[o.jsx(Cr,{className:`h-4 w-4 mr-2 ${u?"animate-spin":""}`}),"Refresh"]})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[o.jsxs(Tt,{className:"border-border bg-card",children:[o.jsxs(zt,{className:"pb-2 flex flex-row items-center justify-between",children:[o.jsx(_t,{className:"text-sm font-medium text-muted-foreground",children:"Delivery Success Rate"}),o.jsx(hs,{className:"h-4 w-4 text-foreground"})]}),o.jsxs(Rt,{children:[o.jsxs("div",{className:"text-3xl font-bold text-foreground",children:[((S=l==null?void 0:l.deliveryStats)==null?void 0:S.successRate)??100,"%"]}),o.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"SLA Target > 99.0%"})]})]}),o.jsxs(Tt,{className:"border-border bg-card",children:[o.jsxs(zt,{className:"pb-2 flex flex-row items-center justify-between",children:[o.jsx(_t,{className:"text-sm font-medium text-muted-foreground",children:"Total Dispatches"}),o.jsx(Nd,{className:"h-4 w-4 text-muted-foreground"})]}),o.jsxs(Rt,{children:[o.jsx("div",{className:"text-3xl font-bold",children:((g=l==null?void 0:l.deliveryStats)==null?void 0:g.total)??0}),o.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Processed across channels"})]})]}),o.jsxs(Tt,{className:"border-border bg-card",children:[o.jsxs(zt,{className:"pb-2 flex flex-row items-center justify-between",children:[o.jsx(_t,{className:"text-sm font-medium text-muted-foreground",children:"Delivered Messages"}),o.jsx(hs,{className:"h-4 w-4 text-muted-foreground"})]}),o.jsxs(Rt,{children:[o.jsx("div",{className:"text-3xl font-bold text-foreground",children:((w=l==null?void 0:l.deliveryStats)==null?void 0:w.delivered)??0}),o.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Confirmed provider handoffs"})]})]}),o.jsxs(Tt,{className:"border-border bg-card",children:[o.jsxs(zt,{className:"pb-2 flex flex-row items-center justify-between",children:[o.jsx(_t,{className:"text-sm font-medium text-muted-foreground",children:"Permanent Failures"}),o.jsx(Yo,{className:"h-4 w-4 text-destructive"})]}),o.jsxs(Rt,{children:[o.jsx("div",{className:"text-3xl font-bold text-destructive",children:((E=l==null?void 0:l.deliveryStats)==null?void 0:E.failed)??0}),o.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Routed to DLQ"})]})]})]}),o.jsxs(Tt,{className:"border-border bg-card",children:[o.jsxs(zt,{children:[o.jsxs(_t,{className:"text-lg flex items-center gap-2",children:[o.jsx(Ap,{className:"h-5 w-5 text-foreground"}),"Stream Queue Depths & Backlog Meters"]}),o.jsx(rn,{children:"Real-time item count inside Redis Streams"})]}),o.jsx(Rt,{children:o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:h.map(j=>{var L;const C=((L=l==null?void 0:l.streams)==null?void 0:L[j.key])??0,z=Math.min(100,Math.round(C/1e4*100));return o.jsxs("div",{className:"space-y-2 p-4 rounded-lg bg-muted/40 border border-border",children:[o.jsxs("div",{className:"flex justify-between items-center text-sm",children:[o.jsx("span",{className:"font-semibold text-foreground",children:j.label}),o.jsxs("span",{className:"font-mono text-xs font-bold text-muted-foreground",children:[C," items"]})]}),o.jsx("div",{className:"w-full h-2.5 rounded-full bg-muted overflow-hidden relative",children:o.jsx("div",{className:"h-full bg-primary transition-all duration-300 rounded-full",style:{width:`${Math.max(4,z)}%`}})}),o.jsxs("div",{className:"flex justify-between text-[10px] text-muted-foreground",children:[o.jsx("span",{children:"0"}),o.jsx("span",{children:"Cap: 10,000"})]})]},j.key)})})})]})]})]})}function Mw(){const[l,i]=b.useState([]),[u,c]=b.useState(!0),[d,m]=b.useState(null),{projectApiKey:p,selectedProjectId:y}=Hn(),{apiUrl:v,token:h}=ya(),S=b.useCallback(async()=>{const E=p||h;if(!E){c(!1);return}c(!0);try{const j={Authorization:`Bearer ${E}`};y&&(j["x-project-id"]=y);const C=await fetch(`${v}/v1/dlq`,{headers:j});if(!C.ok)throw new Error(`HTTP ${C.status}`);const _=await C.json();i(_.messages||[])}catch(j){console.error(j),Ge.error("Failed to fetch Dead Letter Queue messages")}finally{c(!1)}},[v,p,y,h]);b.useEffect(()=>{(p||h)&&S()},[p,h,S]);const g=async E=>{const j=p||h;if(j)try{const C={"Content-Type":"application/json",Authorization:`Bearer ${j}`};if(y&&(C["x-project-id"]=y),!(await fetch(`${v}/v1/dlq/replay`,{method:"POST",headers:C,body:JSON.stringify({id:E})})).ok)throw new Error("Replay request failed");Ge.success(`Message ${E} replayed into queue`),S()}catch{Ge.error("Failed to replay message")}},w=async E=>{const j=p||h;if(j)try{const C={Authorization:`Bearer ${j}`};if(y&&(C["x-project-id"]=y),!(await fetch(`${v}/v1/dlq/${E}`,{method:"DELETE",headers:C})).ok)throw new Error("Delete failed");Ge.success(`Message ${E} purged from DLQ`),S()}catch{Ge.error("Failed to delete message")}};return o.jsxs("div",{className:"min-h-full flex flex-col w-full",children:[o.jsx(qn,{isConnected:!0}),o.jsxs("main",{className:"flex-1 container mx-auto p-4 md:p-6 space-y-6",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsxs("h1",{className:"text-2xl font-bold tracking-tight flex items-center gap-2",children:[o.jsx(Go,{className:"h-6 w-6 text-destructive"}),"Dead Letter Queue (DLQ) & Failure Diagnostics"]}),o.jsx("p",{className:"text-muted-foreground text-sm",children:"Inspect undeliverable messages, review failure context, and execute stream replays"})]}),o.jsxs(Ke,{variant:"outline",size:"sm",onClick:()=>void S(),disabled:u,children:[o.jsx(Cr,{className:`h-4 w-4 mr-2 ${u?"animate-spin":""}`}),"Refresh"]})]}),o.jsxs(Tt,{className:"border-border bg-card",children:[o.jsxs(zt,{children:[o.jsxs(_t,{className:"text-lg",children:["Poison & Failed Stream Messages (",l.length,")"]}),o.jsx(rn,{children:"Messages routed to STREAMS.DEAD_LETTER after exhausting retry limits"})]}),o.jsx(Rt,{className:"p-0 overflow-auto",children:o.jsxs(xs,{children:[o.jsx(bs,{className:"bg-muted/50",children:o.jsxs(qt,{children:[o.jsx(Je,{children:"Timestamp"}),o.jsx(Je,{children:"Stream Message ID"}),o.jsx(Je,{children:"Event Type"}),o.jsx(Je,{children:"Failure Reason"}),o.jsx(Je,{className:"text-right",children:"Actions"})]})}),o.jsx(Ss,{children:l.length===0?o.jsx(qt,{children:o.jsx(ke,{colSpan:5,className:"h-32 text-center text-muted-foreground",children:"No dead-letter messages found. Pipeline is operating smoothly!"})}):l.map(E=>o.jsxs(qt,{className:"hover:bg-muted/50",children:[o.jsx(ke,{className:"text-muted-foreground text-xs whitespace-nowrap",children:new Date(E.timestamp).toLocaleString()}),o.jsx(ke,{className:"font-mono text-xs text-foreground font-medium",children:E.id}),o.jsx(ke,{children:o.jsx(Jt,{variant:"secondary",className:"font-mono text-[11px]",children:E.eventType})}),o.jsx(ke,{className:"text-destructive text-xs truncate max-w-[250px] font-mono",children:E.error}),o.jsxs(ke,{className:"text-right space-x-1",children:[o.jsx(Ke,{variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-foreground",onClick:()=>m(E),children:o.jsx(vs,{className:"h-4 w-4"})}),o.jsx(Ke,{variant:"ghost",size:"icon",className:"h-8 w-8 text-foreground",onClick:()=>void g(E.id),title:"Replay Message",children:o.jsx(gb,{className:"h-4 w-4"})}),o.jsx(Ke,{variant:"ghost",size:"icon",className:"h-8 w-8 text-destructive hover:bg-destructive/10",onClick:()=>void w(E.id),title:"Purge Message",children:o.jsx(Ad,{className:"h-4 w-4"})})]})]},E.id))})]})})]})]}),d&&o.jsx("div",{className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-xs flex justify-end",children:o.jsxs("div",{className:"w-full max-w-xl bg-card border-l border-border p-6 overflow-y-auto space-y-4 flex flex-col justify-between",children:[o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"flex items-center justify-between border-b border-border pb-3",children:[o.jsx("h2",{className:"text-lg font-bold text-foreground",children:"DLQ Message Payload"}),o.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>m(null),children:"Close"})]}),o.jsxs("div",{className:"space-y-2 text-xs",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"ID:"})," ",o.jsx("span",{className:"font-mono text-foreground font-medium",children:d.id})]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Error:"})," ",o.jsx("span",{className:"font-mono text-destructive",children:d.error})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs font-semibold text-muted-foreground",children:"Raw Data Payload"}),o.jsx("pre",{className:"mt-1 p-4 rounded-md bg-muted border border-border text-xs font-mono overflow-x-auto text-foreground",children:JSON.stringify(d.payload,null,2)})]})]}),o.jsx("div",{className:"flex gap-2 justify-end pt-4 border-t border-border",children:o.jsx(Ke,{variant:"outline",size:"sm",onClick:()=>{g(d.id),m(null)},children:"Replay Message"})})]})})]})}function kw(){const[l,i]=b.useState([]),[u,c]=b.useState(!0),{projectApiKey:d,selectedProjectId:m}=Hn(),{apiUrl:p}=ya(),y=b.useCallback(async()=>{c(!0);try{const h=await fetch(`${p}/v1/notifications/scheduled`,{headers:{Authorization:`Bearer ${d}`,"x-project-id":m}});if(!h.ok)throw new Error(`HTTP ${h.status}`);const S=await h.json();i(S.scheduled||[])}catch(h){console.error(h),Ge.error("Failed to fetch scheduled notifications")}finally{c(!1)}},[p,d,m]);b.useEffect(()=>{d&&m&&y()},[d,m,y]);const v=async h=>{try{if(!(await fetch(`${p}/v1/notifications/${h}`,{method:"DELETE",headers:{Authorization:`Bearer ${d}`,"x-project-id":m}})).ok)throw new Error("Cancel failed");Ge.success(`Task ${h} canceled`),y()}catch{Ge.error("Failed to cancel scheduled task")}};return o.jsxs("div",{className:"min-h-full flex flex-col w-full",children:[o.jsx(qn,{isConnected:!0}),o.jsxs("main",{className:"flex-1 container mx-auto p-4 md:p-6 space-y-6",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsxs("h1",{className:"text-2xl font-bold tracking-tight flex items-center gap-2",children:[o.jsx(fl,{className:"h-6 w-6 text-foreground"}),"Scheduled & Deferred Notification Pipeline"]}),o.jsx("p",{className:"text-muted-foreground text-sm",children:"Notifications queued for future timestamps or deferred due to recipient quiet hours"})]}),o.jsxs(Ke,{variant:"outline",size:"sm",onClick:()=>void y(),disabled:u,children:[o.jsx(Cr,{className:`h-4 w-4 mr-2 ${u?"animate-spin":""}`}),"Refresh"]})]}),o.jsxs(Tt,{className:"border-border bg-card",children:[o.jsxs(zt,{children:[o.jsxs(_t,{className:"text-lg",children:["Pending Scheduled Messages (",l.length,")"]}),o.jsx(rn,{children:"Managed via Redis Sorted Sets (ZSET) and persistent storage"})]}),o.jsx(Rt,{className:"p-0 overflow-auto",children:o.jsxs(xs,{children:[o.jsx(bs,{className:"bg-muted/50",children:o.jsxs(qt,{children:[o.jsx(Je,{children:"Created At"}),o.jsx(Je,{children:"Task ID"}),o.jsx(Je,{children:"Template"}),o.jsx(Je,{children:"Target"}),o.jsx(Je,{children:"Scheduled Send At"}),o.jsx(Je,{className:"text-right",children:"Actions"})]})}),o.jsx(Ss,{children:l.length===0?o.jsx(qt,{children:o.jsx(ke,{colSpan:6,className:"h-32 text-center text-muted-foreground",children:"No pending scheduled or deferred messages found."})}):l.map(h=>{var w,E,j,C,_,z,L,K,ee;const S=(w=h.payload)==null?void 0:w.scheduledAt,g=((E=h.payload)==null?void 0:E.recipientId)||((C=(j=h.payload)==null?void 0:j.recipient)==null?void 0:C.id)||(typeof((_=h.payload)==null?void 0:_.target)=="object"?JSON.stringify((z=h.payload)==null?void 0:z.target):String(((L=h.payload)==null?void 0:L.target)||"N/A"));return o.jsxs(qt,{className:"hover:bg-muted/50",children:[o.jsx(ke,{className:"text-muted-foreground text-xs whitespace-nowrap",children:new Date(h.createdAt).toLocaleString()}),o.jsx(ke,{className:"font-mono text-xs font-semibold text-foreground max-w-[180px] truncate",title:h.taskId,children:h.taskId}),o.jsx(ke,{className:"font-medium text-xs",children:((K=h.payload)==null?void 0:K.templateId)||((ee=h.payload)==null?void 0:ee.template)||"N/A"}),o.jsx(ke,{className:"font-mono text-xs text-muted-foreground truncate max-w-[150px]",children:g}),o.jsx(ke,{children:o.jsx(Jt,{variant:"outline",className:"font-mono text-[11px]",children:S?new Date(S).toLocaleString():"Pending Dispatch"})}),o.jsx(ke,{className:"text-right",children:o.jsxs(Ke,{variant:"ghost",size:"sm",className:"h-8 text-destructive hover:bg-destructive/10",onClick:()=>void v(h.taskId),children:[o.jsx(Yo,{className:"h-4 w-4 mr-1"}),"Cancel Task"]})})]},h.taskId)})})]})})]})]})]})}function Dw(){const[l,i]=b.useState([]),[u,c]=b.useState(!0),[d,m]=b.useState(null),[p,y]=b.useState(""),[v,h]=b.useState(null),[S,g]=b.useState(!1),{projectApiKey:w,selectedProjectId:E}=Hn(),{apiUrl:j}=ya(),C=b.useCallback(async()=>{c(!0);try{const L=await fetch(`${j}/v1/workflows`,{headers:{Authorization:`Bearer ${w}`,"x-project-id":E}});if(!L.ok)throw new Error(`HTTP ${L.status}`);const K=await L.json();i(K.workflows||[])}catch(L){console.error(L),Ge.error("Failed to fetch workflows")}finally{c(!1)}},[j,w,E]);b.useEffect(()=>{w&&E&&C()},[w,E,C]);const _=async L=>{try{const K=await fetch(`${j}/v1/workflows/trigger`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${w}`,"x-project-id":E},body:JSON.stringify({name:L,input:{}})});if(!K.ok)throw new Error("Trigger failed");const ee=await K.json();Ge.success(`Workflow "${L}" triggered! Instance ID: ${ee.instanceId}`),ee.instanceId&&(y(ee.instanceId),z(ee.instanceId))}catch{Ge.error("Failed to trigger workflow")}},z=async L=>{const K=L||p.trim();if(K){g(!0);try{const ee=await fetch(`${j}/v1/workflows/instances/${encodeURIComponent(K)}`,{headers:{Authorization:`Bearer ${w}`,"x-project-id":E}});if(!ee.ok)throw new Error("Instance not found");const J=await ee.json();h(J)}catch{Ge.error("Workflow instance not found"),h(null)}finally{g(!1)}}};return o.jsxs("div",{className:"min-h-full flex flex-col w-full",children:[o.jsx(qn,{isConnected:!0}),o.jsxs("main",{className:"flex-1 container mx-auto p-4 md:p-6 space-y-6",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsxs("h1",{className:"text-2xl font-bold tracking-tight flex items-center gap-2",children:[o.jsx(Np,{className:"h-6 w-6 text-foreground"}),"Workflows & Event Orchestration"]}),o.jsx("p",{className:"text-muted-foreground text-sm",children:"Multi-step notification orchestration definitions, step execution history, and instance tracing"})]}),o.jsxs(Ke,{variant:"outline",size:"sm",onClick:()=>void C(),disabled:u,children:[o.jsx(Cr,{className:`h-4 w-4 mr-2 ${u?"animate-spin":""}`}),"Refresh"]})]}),o.jsxs(Tt,{className:"border-border bg-card",children:[o.jsxs(zt,{className:"pb-3",children:[o.jsxs(_t,{className:"text-sm font-semibold flex items-center gap-2",children:[o.jsx(Tp,{className:"h-4 w-4 text-muted-foreground"}),"Workflow Instance Lookup & Step Execution Visualizer"]}),o.jsx(rn,{className:"text-xs",children:"Search by instance UUID to view step-by-step execution state and payload progress"})]}),o.jsxs(Rt,{className:"space-y-4",children:[o.jsxs("div",{className:"flex gap-2 max-w-lg",children:[o.jsx(pi,{type:"text",placeholder:"Enter Workflow Instance ID...",value:p,onChange:L=>y(L.target.value),className:"text-xs font-mono"}),o.jsx(Ke,{variant:"secondary",size:"sm",className:"text-xs",onClick:()=>void z(),disabled:S,children:S?"Searching...":"Trace Instance"})]}),v&&o.jsxs("div",{className:"p-4 rounded-lg bg-muted/40 border border-border space-y-3",children:[o.jsxs("div",{className:"flex items-center justify-between text-xs",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Instance ID:"})," ",o.jsx("span",{className:"font-mono text-foreground font-bold",children:v.id})]}),o.jsx(Jt,{variant:v.status==="completed"?"default":"secondary",className:"capitalize",children:v.status})]}),o.jsxs("div",{className:"text-xs text-muted-foreground",children:["Workflow Name:"," ",o.jsx("strong",{className:"text-foreground",children:v.workflowName})," | Step Pointer:"," ",o.jsx("strong",{className:"text-foreground",children:v.currentStepIndex??0})]})]})]})]}),o.jsxs(Tt,{className:"border-border bg-card",children:[o.jsxs(zt,{children:[o.jsxs(_t,{className:"text-lg",children:["Registered Workflows (",l.length,")"]}),o.jsx(rn,{children:"Definitions registered for background execution"})]}),o.jsx(Rt,{className:"p-0 overflow-auto",children:o.jsxs(xs,{children:[o.jsx(bs,{className:"bg-muted/50",children:o.jsxs(qt,{children:[o.jsx(Je,{children:"Created At"}),o.jsx(Je,{children:"Workflow Name"}),o.jsx(Je,{children:"Steps Count"}),o.jsx(Je,{children:"Definition Structure"}),o.jsx(Je,{className:"text-right",children:"Actions"})]})}),o.jsx(Ss,{children:l.length===0?o.jsx(qt,{children:o.jsx(ke,{colSpan:5,className:"h-32 text-center text-muted-foreground",children:"No registered workflows found. Register workflows using POST /v1/workflows"})}):l.map(L=>o.jsxs(qt,{className:"hover:bg-muted/50",children:[o.jsx(ke,{className:"text-muted-foreground text-xs whitespace-nowrap",children:new Date(L.createdAt).toLocaleString()}),o.jsx(ke,{className:"font-bold text-sm font-mono text-foreground",children:L.name}),o.jsx(ke,{children:o.jsxs(Jt,{variant:"secondary",className:"font-mono text-[11px]",children:[Array.isArray(L.steps)?L.steps.length:0," steps"]})}),o.jsx(ke,{className:"font-mono text-xs text-muted-foreground truncate max-w-[300px]",children:JSON.stringify(L.steps)}),o.jsxs(ke,{className:"text-right space-x-2",children:[o.jsxs(Ke,{variant:"ghost",size:"sm",className:"h-8 text-muted-foreground hover:text-foreground",onClick:()=>m(L),children:[o.jsx(vs,{className:"h-4 w-4 mr-1"}),"View Diagram"]}),o.jsxs(Ke,{variant:"outline",size:"sm",className:"h-8",onClick:()=>void _(L.name),children:[o.jsx(ub,{className:"h-3.5 w-3.5 mr-1"}),"Trigger Now"]})]})]},L.id))})]})})]})]}),d&&o.jsx("div",{className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-xs flex justify-end",children:o.jsxs("div",{className:"w-full max-w-xl bg-card border-l border-border p-6 overflow-y-auto space-y-6",children:[o.jsxs("div",{className:"flex items-center justify-between border-b border-border pb-3",children:[o.jsxs("div",{children:[o.jsxs("h2",{className:"text-lg font-bold text-foreground",children:["Workflow Diagram: ",d.name]}),o.jsxs("p",{className:"text-xs text-muted-foreground font-mono",children:["ID: ",d.id]})]}),o.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>m(null),children:"Close"})]}),o.jsxs("div",{className:"space-y-4",children:[o.jsxs("h3",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider flex items-center gap-1.5",children:[o.jsx(Ap,{className:"h-4 w-4 text-foreground"}),"Execution Step Graph Flow"]}),o.jsx("div",{className:"space-y-3 relative pl-4 before:absolute before:left-2 before:top-2 before:bottom-2 before:w-px before:bg-border",children:(d.steps||[]).map((L,K)=>o.jsxs("div",{className:"p-3 rounded-lg bg-muted/40 border border-border text-xs space-y-1",children:[o.jsxs("div",{className:"flex items-center justify-between font-semibold",children:[o.jsxs("span",{className:"text-foreground",children:["Step ",K+1,": ",L.type||L.name||"Action"]}),o.jsx(Jt,{variant:"outline",className:"text-[10px] font-mono",children:L.channel||L.action||"Step Node"})]}),o.jsx("pre",{className:"text-[11px] text-muted-foreground overflow-x-auto font-mono",children:JSON.stringify(L,null,2)})]},K))})]})]})})]})}function Ow(){const[l,i]=b.useState([]),[u,c]=b.useState(!0),[d,m]=b.useState(null),{projectApiKey:p,selectedProjectId:y}=Hn(),{apiUrl:v}=ya(),h=b.useCallback(async()=>{c(!0);try{const g=await fetch(`${v}/v1/templates`,{headers:{Authorization:`Bearer ${p}`,"x-project-id":y}});if(!g.ok)throw new Error(`HTTP ${g.status}`);const w=await g.json();i(w.templates||[])}catch(g){console.error(g),Ge.error("Failed to fetch templates")}finally{c(!1)}},[v,p,y]);b.useEffect(()=>{p&&y&&h()},[p,y,h]);const S=async g=>{try{if(!(await fetch(`${v}/v1/templates/${g}`,{method:"DELETE",headers:{Authorization:`Bearer ${p}`,"x-project-id":y}})).ok)throw new Error("Delete failed");Ge.success(`Template ${g} deleted`),h()}catch{Ge.error("Failed to delete template")}};return o.jsxs("div",{className:"min-h-full flex flex-col w-full",children:[o.jsx(qn,{isConnected:!0}),o.jsxs("main",{className:"flex-1 container mx-auto p-4 md:p-6 space-y-6",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsxs("h1",{className:"text-2xl font-bold tracking-tight flex items-center gap-2",children:[o.jsx(jp,{className:"h-6 w-6 text-foreground"}),"Template Directory & Channel Bindings"]}),o.jsx("p",{className:"text-muted-foreground text-sm",children:"Registered notification templates, topic bindings, and AI prompts"})]}),o.jsxs(Ke,{variant:"outline",size:"sm",onClick:()=>void h(),disabled:u,children:[o.jsx(Cr,{className:`h-4 w-4 mr-2 ${u?"animate-spin":""}`}),"Refresh"]})]}),o.jsxs(Tt,{className:"border-border bg-card",children:[o.jsxs(zt,{children:[o.jsxs(_t,{className:"text-lg",children:["Notification Templates (",l.length,")"]}),o.jsx(rn,{children:"Managed via PUT /v1/templates API endpoint"})]}),o.jsx(Rt,{className:"p-0 overflow-auto",children:o.jsxs(xs,{children:[o.jsx(bs,{className:"bg-muted/50",children:o.jsxs(qt,{children:[o.jsx(Je,{children:"Template ID"}),o.jsx(Je,{children:"Channel"}),o.jsx(Je,{children:"Topics"}),o.jsx(Je,{children:"Last Updated"}),o.jsx(Je,{className:"text-right",children:"Actions"})]})}),o.jsx(Ss,{children:l.length===0?o.jsx(qt,{children:o.jsx(ke,{colSpan:5,className:"h-32 text-center text-muted-foreground",children:"No templates synced for this project. Sync using initializeApp() or PUT /v1/templates"})}):l.map(g=>o.jsxs(qt,{className:"hover:bg-muted/50",children:[o.jsx(ke,{className:"font-mono text-sm font-bold text-foreground",children:g.id}),o.jsx(ke,{children:o.jsx(Jt,{variant:"secondary",className:"capitalize font-normal text-xs",children:g.channel})}),o.jsx(ke,{children:o.jsx("div",{className:"flex gap-1 flex-wrap",children:(g.topics||[]).map(w=>o.jsx(Jt,{variant:"outline",className:"text-[10px]",children:w},w))})}),o.jsx(ke,{className:"text-muted-foreground text-xs whitespace-nowrap",children:new Date(g.updatedAt).toLocaleString()}),o.jsxs(ke,{className:"text-right space-x-1",children:[o.jsx(Ke,{variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-foreground",onClick:()=>m(g),children:o.jsx(vs,{className:"h-4 w-4"})}),o.jsx(Ke,{variant:"ghost",size:"icon",className:"h-8 w-8 text-destructive hover:bg-destructive/10",onClick:()=>void S(g.id),children:o.jsx(Ad,{className:"h-4 w-4"})})]})]},g.id))})]})})]})]}),d&&o.jsx("div",{className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-xs flex justify-end",children:o.jsxs("div",{className:"w-full max-w-xl bg-card border-l border-border p-6 overflow-y-auto space-y-4",children:[o.jsxs("div",{className:"flex items-center justify-between border-b border-border pb-3",children:[o.jsxs("h2",{className:"text-lg font-bold text-foreground",children:["Template: ",d.id]}),o.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>m(null),children:"Close"})]}),o.jsxs("div",{className:"space-y-2 text-xs",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Channel:"})," ",o.jsx("span",{className:"font-semibold capitalize text-foreground",children:d.channel})]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Topics:"})," ",o.jsx("span",{className:"font-mono text-foreground",children:(d.topics||[]).join(", ")})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs font-semibold text-muted-foreground",children:"Template Content"}),o.jsx("pre",{className:"mt-1 p-4 rounded-md bg-muted border border-border text-xs font-mono overflow-x-auto text-foreground",children:JSON.stringify(d.content,null,2)})]})]})})]})}function Uw(){var E;const[l,i]=b.useState([]),[u,c]=b.useState(!1),[d,m]=b.useState(null),{projects:p,selectedProjectId:y,projectApiKey:v,isLoadingProjects:h}=Hn(),{apiUrl:S}=ya(),g=b.useCallback(async(j,C)=>{c(!0);try{const _=await fetch(`${S}/v1/users`,{headers:{Authorization:`Bearer ${j}`,"x-project-id":C}});if(_.ok){const z=await _.json();i(z.users||[])}else Ge.error("Failed to load users")}catch(_){console.error(_),Ge.error("Failed to load users")}finally{c(!1)}},[S]);b.useEffect(()=>{v&&y?g(v,y):i([])},[v,y,g]);const w=async j=>{const C=j.externalId||j.userId||j.id;if(C)try{const _=await fetch(`${S}/v1/users/${encodeURIComponent(C)}/details`,{headers:{Authorization:`Bearer ${v}`,"x-project-id":y}});if(_.ok){const z=await _.json();m(z)}else m({...j,contacts:[],logs:[]})}catch{m({...j,contacts:[],logs:[]})}};return o.jsxs("div",{className:"min-h-full flex flex-col w-full",children:[o.jsx(qn,{isConnected:!0}),o.jsxs("main",{className:"flex-1 container mx-auto p-4 md:p-6 space-y-6",children:[o.jsx("div",{className:"flex justify-between items-center",children:o.jsxs("h1",{className:"text-2xl font-bold flex items-center gap-2",children:[o.jsx(zp,{className:"w-6 h-6 text-foreground"}),"User Directory & Contact Preferences"]})}),o.jsxs(Tt,{className:"bg-card border-border",children:[o.jsxs(zt,{children:[o.jsx(_t,{children:"Registered End-Users"}),o.jsx(rn,{children:"Recipient profiles, channel addresses, and preference overrides"})]}),o.jsx(Rt,{className:"p-0 overflow-auto",children:h?o.jsxs("div",{className:"flex flex-col items-center justify-center h-40 text-muted-foreground gap-3",children:[o.jsx(fl,{className:"h-8 w-8 opacity-50"}),o.jsx("p",{className:"text-sm",children:"Loading projects..."})]}):p.length===0?o.jsxs("div",{className:"flex flex-col items-center justify-center h-40 text-muted-foreground gap-3",children:[o.jsx(fl,{className:"h-8 w-8 opacity-50"}),o.jsx("p",{className:"text-sm",children:"No projects exist. Create one in the Projects & Keys tab."})]}):v?u?o.jsx("div",{className:"text-muted-foreground text-sm p-6 text-center",children:"Loading users..."}):l.length===0?o.jsx("div",{className:"text-muted-foreground text-sm text-center p-8",children:"No users found."}):o.jsxs(xs,{children:[o.jsx(bs,{className:"bg-muted/50",children:o.jsxs(qt,{children:[o.jsx(Je,{children:"External User ID"}),o.jsx(Je,{children:"Primary Contact"}),o.jsx(Je,{children:"Created At"}),o.jsx(Je,{className:"text-right",children:"Actions"})]})}),o.jsx(Ss,{children:l.map((j,C)=>{const _=j.externalId||j.userId||j.id||`user-${C}`;return o.jsxs(qt,{className:"hover:bg-muted/50 transition-colors cursor-pointer",onClick:()=>void w(j),children:[o.jsx(ke,{className:"font-mono font-bold text-foreground",children:_}),o.jsx(ke,{className:"text-muted-foreground",children:j.email?j.email:o.jsx("span",{className:"italic opacity-50",children:"Not provided"})}),o.jsx(ke,{className:"text-muted-foreground text-xs",children:new Date(j.createdAt).toLocaleDateString()}),o.jsx(ke,{className:"text-right",children:o.jsxs(Ke,{variant:"outline",size:"sm",className:"h-7",onClick:z=>{z.stopPropagation(),w(j)},children:[o.jsx(vs,{className:"h-3.5 w-3.5 mr-1"})," View Profile"]})})]},_)})})]}):o.jsxs("div",{className:"flex flex-col items-center justify-center h-40 text-muted-foreground gap-3",children:[o.jsx(fl,{className:"h-8 w-8 opacity-50"}),o.jsx("p",{className:"text-sm",children:"No API key found for this project."})]})})]})]}),d&&o.jsx("div",{className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-xs flex justify-end",children:o.jsxs("div",{className:"w-full max-w-xl bg-card border-l border-border p-6 overflow-y-auto space-y-6",children:[o.jsxs("div",{className:"flex items-center justify-between border-b border-border pb-3",children:[o.jsxs("div",{children:[o.jsxs("h2",{className:"text-xl font-bold font-mono text-foreground",children:["User: ",d.externalId||d.userId||d.id]}),o.jsx("p",{className:"text-xs text-muted-foreground",children:"Registered contact endpoints and preferences"})]}),o.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>m(null),children:"Close"})]}),o.jsxs("div",{className:"space-y-3",children:[o.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2 text-foreground",children:[o.jsx(sb,{className:"h-4 w-4 text-muted-foreground"}),"Contact Channels (",((E=d.contacts)==null?void 0:E.length)??0,")"]}),!d.contacts||d.contacts.length===0?o.jsx("p",{className:"text-xs text-muted-foreground italic",children:"No contact endpoints registered for this user."}):o.jsx("div",{className:"space-y-2",children:d.contacts.map(j=>o.jsxs("div",{className:"p-3 rounded-md bg-muted/40 border border-border flex items-center justify-between text-xs",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(Jt,{variant:"outline",className:"capitalize font-mono text-[10px]",children:j.channel}),o.jsx("span",{className:"font-mono text-foreground",children:j.target})]}),o.jsx(Jt,{variant:j.enabled!==!1?"default":"destructive",children:j.enabled!==!1?"Active":"Opted-out"})]},j.id))})]}),o.jsxs("div",{className:"space-y-3",children:[o.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2 text-foreground",children:[o.jsx(Cp,{className:"h-4 w-4 text-muted-foreground"}),"Per-User Delivery Audit Trail"]}),!d.logs||d.logs.length===0?o.jsx("p",{className:"text-xs text-muted-foreground italic",children:"No recent notifications logged for this user."}):o.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto",children:d.logs.map(j=>o.jsxs("div",{className:"p-2.5 rounded-md bg-muted/40 border border-border flex items-center justify-between text-xs",children:[o.jsxs("div",{children:[o.jsx("span",{className:"font-mono text-foreground font-semibold",children:j.taskId}),o.jsxs("span",{className:"text-muted-foreground ml-2",children:["(",j.templateId,")"]})]}),o.jsx(Jt,{variant:"secondary",className:"capitalize text-[10px]",children:j.status})]},j.id))})]})]})})]})}function Lw(){const{apiUrl:l,token:i}=ya(),[u,c]=b.useState([]),[d,m]=b.useState(!0),[p,y]=b.useState(""),[v,h]=b.useState(null),[S,g]=b.useState([]),[w,E]=b.useState(null),[j,C]=b.useState(!1),_=async()=>{try{const J=await fetch(`${l}/v1/projects`,{headers:{Authorization:`Bearer ${i}`}});if(J.ok){const I=await J.json();c(I.projects||[])}}catch(J){console.error(J),Ge.error("Failed to load projects")}finally{m(!1)}},z=async J=>{try{const I=await fetch(`${l}/v1/projects/${J}/keys`,{headers:{Authorization:`Bearer ${i}`}});if(I.ok){const Z=await I.json();g(Z.keys||[])}}catch(I){console.error(I),Ge.error("Failed to load API keys")}};b.useEffect(()=>{_()},[]),b.useEffect(()=>{v?(z(v),E(null),C(!1)):g([])},[v]);const L=async J=>{if(J.preventDefault(),!!p.trim())try{const I=await fetch(`${l}/v1/projects`,{method:"POST",headers:{Authorization:`Bearer ${i}`,"Content-Type":"application/json"},body:JSON.stringify({name:p})});if(I.ok){const Z=await I.json();Ge.success("Project created!"),y(""),_(),Z.apiKey&&(E(Z.apiKey),C(!1))}else{const Z=await I.json();Ge.error(`Error: ${Z.message||"Failed to create project"}`)}}catch{Ge.error("Failed to create project")}},K=async()=>{if(v)try{const J=await fetch(`${l}/v1/projects/${v}/keys`,{method:"POST",headers:{Authorization:`Bearer ${i}`,"Content-Type":"application/json"},body:JSON.stringify({role:"admin"})});if(J.ok){const I=await J.json();E(I.apiKey),C(!1),Ge.success("New API Key generated successfully"),z(v)}else Ge.error("Failed to generate key")}catch{Ge.error("Failed to generate key")}},ee=async J=>{if(v&&confirm("Are you sure you want to revoke this API key? Systems using it will immediately stop working."))try{(await fetch(`${l}/v1/projects/${v}/keys/${J}`,{method:"DELETE",headers:{Authorization:`Bearer ${i}`}})).ok?(Ge.success("API Key revoked"),z(v)):Ge.error("Failed to revoke key")}catch{Ge.error("Failed to revoke key")}};return o.jsxs("div",{className:"min-h-full flex flex-col w-full",children:[o.jsx(qn,{isConnected:!0}),o.jsxs("main",{className:"flex-1 container mx-auto p-4 md:p-6",children:[o.jsx("div",{className:"flex justify-between items-center mb-6",children:o.jsxs("h1",{className:"text-2xl font-bold flex items-center gap-2",children:[o.jsx(Ed,{className:"w-6 h-6 text-foreground"}),"Projects & API Keys"]})}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[o.jsxs(Tt,{className:"lg:col-span-1 bg-card border-border h-fit",children:[o.jsxs(zt,{children:[o.jsx(_t,{children:"Create Project"}),o.jsx(rn,{children:"Add a new tenant to Notifkit"})]}),o.jsx(Rt,{children:o.jsxs("form",{onSubmit:J=>{L(J)},className:"space-y-4",children:[o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsx("label",{htmlFor:"name",className:"text-sm font-medium",children:"Project Name"}),o.jsx(pi,{id:"name",type:"text",value:p,onChange:J=>y(J.target.value),placeholder:"My Project"})]}),o.jsxs(Ke,{type:"submit",className:"w-full gap-2",children:[o.jsx(fb,{className:"w-4 h-4"}),"Create"]})]})})]}),o.jsxs(Tt,{className:"lg:col-span-2 bg-card border-border",children:[o.jsx(zt,{children:o.jsx(_t,{children:"Existing Projects"})}),o.jsxs(Rt,{children:[d?o.jsx("div",{className:"text-muted-foreground text-sm",children:"Loading projects..."}):u.length===0?o.jsx("div",{className:"text-muted-foreground text-sm text-center py-8",children:"No projects found. Create one to get started."}):o.jsxs("div",{className:"space-y-3",children:[o.jsxs("div",{className:"grid grid-cols-3 text-xs font-semibold text-muted-foreground uppercase pb-2 border-b border-border",children:[o.jsx("div",{children:"Name"}),o.jsx("div",{children:"Rate Limit"}),o.jsx("div",{children:"Created"})]}),u.map(J=>o.jsxs("div",{className:`grid grid-cols-3 text-sm py-2 px-3 rounded-md cursor-pointer transition-colors ${v===J.id?"bg-muted text-foreground border border-border":"hover:bg-muted/50"}`,onClick:()=>h(J.id),children:[o.jsxs("div",{className:"font-medium text-foreground flex items-center gap-2",children:[J.name,v===J.id&&o.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-foreground"})]}),o.jsx("div",{className:"text-muted-foreground font-mono text-xs flex flex-col gap-1 justify-center",children:o.jsx("span",{children:J.rateLimitRpm?`${J.rateLimitRpm} RPM`:"600 RPM"})}),o.jsx("div",{className:"text-muted-foreground text-xs",children:new Date(J.createdAt).toLocaleDateString()})]},J.id))]}),v&&o.jsxs("div",{className:"mt-8 pt-6 border-t border-border",children:[o.jsxs("div",{className:"flex justify-between items-center mb-4",children:[o.jsx("h3",{className:"font-semibold text-base",children:"API Keys"}),o.jsx(Ke,{variant:"outline",size:"sm",onClick:()=>{K()},children:"Generate New Key"})]}),w&&o.jsxs("div",{className:"mb-6 p-4 rounded-lg bg-muted border border-border space-y-3",children:[o.jsxs("div",{className:"flex items-start gap-2",children:[o.jsx(qo,{className:"w-4 h-4 mt-0.5 text-foreground"}),o.jsxs("div",{children:[o.jsx("p",{className:"font-medium text-sm text-foreground",children:"Please copy your new API key"}),o.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"For security reasons, this key will not be shown again. Make sure to copy it now."})]})]}),o.jsxs("div",{className:"flex items-center gap-2 bg-background rounded-md p-2 border border-border",children:[o.jsx("code",{className:"flex-1 text-xs font-mono break-all text-foreground",children:j?w:w.replace(new RegExp("(?<=^nk_live_).*"),"********************************")}),o.jsx(Ke,{variant:"ghost",size:"icon",className:"h-8 w-8 shrink-0",onClick:()=>C(!j),children:j?o.jsx(Yx,{className:"w-4 h-4"}):o.jsx(vs,{className:"w-4 h-4"})}),o.jsx(Ke,{variant:"ghost",size:"icon",className:"h-8 w-8 shrink-0",onClick:()=>{navigator.clipboard.writeText(w),Ge.success("Copied to clipboard!")},children:o.jsx(Ux,{className:"w-4 h-4"})})]})]}),S.length===0?o.jsx("div",{className:"text-sm text-muted-foreground",children:"No API keys found for this project."}):o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"grid grid-cols-4 text-xs font-semibold text-muted-foreground uppercase pb-2",children:[o.jsx("div",{className:"col-span-2",children:"Key ID"}),o.jsx("div",{children:"Role"}),o.jsx("div",{className:"text-right",children:"Actions"})]}),S.map(J=>o.jsxs("div",{className:"grid grid-cols-4 text-sm py-2 items-center group",children:[o.jsx("div",{className:"col-span-2 font-mono text-muted-foreground truncate pr-4 text-xs",children:J.id}),o.jsx("div",{className:"capitalize text-muted-foreground text-xs",children:J.role}),o.jsx("div",{className:"text-right",children:o.jsxs(Ke,{variant:"ghost",size:"sm",className:"h-8 text-destructive opacity-0 group-hover:opacity-100 transition-opacity",onClick:()=>{ee(J.id)},children:[o.jsx(Ad,{className:"w-4 h-4 mr-1.5"}),"Revoke"]})})]},J.id))]})]})]})]})]})]})]})}function Hw(){return o.jsxs("div",{className:"h-screen flex bg-background text-foreground overflow-hidden",children:[o.jsx(E1,{}),o.jsx("main",{className:"flex-1 overflow-y-auto",children:o.jsxs(ky,{children:[o.jsx(Ua,{path:"/",element:o.jsx(G0,{})}),o.jsx(Ua,{path:"/login",element:o.jsx(Aw,{})}),o.jsx(Ua,{path:"/logs",element:o.jsx(Tw,{})}),o.jsx(Ua,{path:"/system",element:o.jsx(zw,{})}),o.jsx(Ua,{path:"/analytics",element:o.jsx(Rw,{})}),o.jsx(Ua,{path:"/dlq",element:o.jsx(Mw,{})}),o.jsx(Ua,{path:"/scheduled",element:o.jsx(kw,{})}),o.jsx(Ua,{path:"/workflows",element:o.jsx(Dw,{})}),o.jsx(Ua,{path:"/templates",element:o.jsx(Ow,{})}),o.jsx(Ua,{path:"/users",element:o.jsx(Uw,{})}),o.jsx(Ua,{path:"/projects",element:o.jsx(Lw,{})}),o.jsx(Ua,{path:"*",element:o.jsx(G0,{})})]})}),o.jsx(nS,{theme:"dark"})]})}const Bw=window.location.pathname.startsWith("/admin")?"/admin":"/";kv.createRoot(document.getElementById("root")).render(o.jsx(b.StrictMode,{children:o.jsx(nx,{basename:Bw,children:o.jsx(hx,{children:o.jsx(px,{children:o.jsx(Hw,{})})})})}));