notifkit 0.1.15 → 0.1.16

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 (85) hide show
  1. package/dashboard/dist/assets/index-C-DJYu0_.css +1 -0
  2. package/dashboard/dist/assets/index-CzFZcEon.js +318 -0
  3. package/dashboard/dist/index.html +2 -2
  4. package/dist/{bootstrap-BOmT69OH.mjs → bootstrap-BMDRPjgp.mjs} +1 -1
  5. package/dist/{bulk-ZPiOJRx-.mjs → bulk-CJ5QXiPa.mjs} +1 -1
  6. package/dist/index.d.mts +71 -27
  7. package/dist/index.mjs +2 -2
  8. package/dist/{main-CCqcFDDe.mjs → main-6_bXQBDH.mjs} +21 -41
  9. package/dist/{main-BdZvBgV7.mjs → main-8nP3qmCT.mjs} +22 -48
  10. package/dist/{main-C0m9-Eos.mjs → main-B82bsFoy.mjs} +183 -334
  11. package/dist/{main-CTjaZ7ZD.mjs → main-CpaHF1Zw.mjs} +13 -15
  12. package/dist/{main-JEXBLP2A.mjs → main-DULD8-th.mjs} +8 -6
  13. package/dist/{main-C6S3EsJ3.mjs → main-ZW5RaiOK.mjs} +77 -64
  14. package/dist/{main-g33jpia4.mjs → main-g1KEcXXp.mjs} +676 -582
  15. package/dist/{main-24J4U8yP.mjs → main-mGIT8jv4.mjs} +4 -4
  16. package/dist/schedule-or-dispatch-Cd7GLfc3.mjs +52 -0
  17. package/dist/{src-9LXITcNi.mjs → src-BE_EUpZ6.mjs} +93 -93
  18. package/package.json +1 -1
  19. package/scripts/create-project.mjs +6 -2
  20. package/src/client.ts +3 -3
  21. package/src/config/index.ts +1 -0
  22. package/src/contracts/common.ts +2 -0
  23. package/src/contracts/envelope.ts +1 -1
  24. package/src/contracts/events/notification-created.ts +2 -0
  25. package/src/contracts/events/notification-delivered.ts +1 -1
  26. package/src/contracts/events/notification-failed.ts +1 -1
  27. package/src/contracts/events/notification-requested.ts +3 -2
  28. package/src/contracts/helpers.ts +1 -2
  29. package/src/contracts/index.ts +1 -0
  30. package/src/contracts/registry.ts +1 -0
  31. package/src/contracts/sdk.ts +8 -37
  32. package/src/db/schema.ts +8 -13
  33. package/src/idempotency/index.ts +6 -8
  34. package/src/metrics/index.ts +2 -0
  35. package/src/rate-limiter/api-rate-limiter.ts +208 -0
  36. package/src/rate-limiter/index.ts +3 -411
  37. package/src/rate-limiter/project-settings-cache.ts +99 -0
  38. package/src/rate-limiter/user-throttle.ts +100 -0
  39. package/src/redis/index.ts +10 -3
  40. package/src/repositories/admin-user.ts +83 -0
  41. package/src/repositories/contact.ts +359 -0
  42. package/src/repositories/index.ts +9 -1416
  43. package/src/repositories/preference.ts +35 -0
  44. package/src/repositories/project.ts +110 -0
  45. package/src/repositories/segment.ts +16 -0
  46. package/src/repositories/template.ts +72 -0
  47. package/src/repositories/types.ts +49 -0
  48. package/src/repositories/user.ts +644 -0
  49. package/src/repositories/workflow.ts +64 -0
  50. package/src/services/ai/main.ts +29 -71
  51. package/src/services/api/admin-static.ts +4 -1
  52. package/src/services/api/handlers/auth.ts +109 -0
  53. package/src/services/api/handlers/campaigns.ts +191 -0
  54. package/src/services/api/handlers/events.ts +99 -0
  55. package/src/services/api/handlers/notifications.ts +356 -0
  56. package/src/services/api/handlers/projects.ts +116 -0
  57. package/src/services/api/handlers/shared.ts +262 -0
  58. package/src/services/api/handlers/suppressions.ts +95 -0
  59. package/src/services/api/handlers/system.ts +314 -0
  60. package/src/services/api/handlers/templates.ts +97 -0
  61. package/src/services/api/handlers/unsubscribe.ts +215 -0
  62. package/src/services/api/handlers/users.ts +262 -0
  63. package/src/services/api/handlers/workflows.ts +150 -0
  64. package/src/services/api/handlers.ts +25 -2190
  65. package/src/services/api/health.ts +133 -0
  66. package/src/services/api/http.ts +12 -0
  67. package/src/services/api/main.ts +32 -322
  68. package/src/services/api/router.ts +1 -1
  69. package/src/services/api/webhooks.ts +172 -0
  70. package/src/services/delivery/main.ts +256 -498
  71. package/src/services/engine/main.ts +31 -247
  72. package/src/services/engine/quiet-hours.ts +151 -0
  73. package/src/services/engine/schedule-or-dispatch.ts +104 -0
  74. package/src/services/enricher/main.ts +9 -21
  75. package/src/services/events/main.ts +2 -2
  76. package/src/services/scheduler/main.ts +16 -25
  77. package/src/services/workflow/duration.ts +24 -0
  78. package/src/services/workflow/main.ts +6 -164
  79. package/src/services/workflow/timers.ts +157 -0
  80. package/src/shared/events.ts +3 -2
  81. package/src/templates/render.ts +1 -0
  82. package/src/workers/index.ts +7 -4
  83. package/src/workflows/sdk.ts +1 -0
  84. package/dashboard/dist/assets/index-ggpJKZqZ.js +0 -315
  85. package/dashboard/dist/assets/index-s-SXGIwv.css +0 -1
@@ -0,0 +1,318 @@
1
+ function Nv(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 g of m.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&c(g)}).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 Q0(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Gu={exports:{}},ui={};/**
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 d0;function Ev(){if(d0)return ui;d0=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(c,d,m){var g=null;if(m!==void 0&&(g=""+m),d.key!==void 0&&(g=""+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:g,ref:d!==void 0?d:null,props:m}}return ui.Fragment=i,ui.jsx=u,ui.jsxs=u,ui}var f0;function Av(){return f0||(f0=1,Gu.exports=Ev()),Gu.exports}var o=Av(),Vu={exports:{}},je={};/**
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 m0;function Cv(){if(m0)return je;m0=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"),g=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),h=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,z={};function R(A,q,G){this.props=A,this.context=q,this.refs=z,this.updater=G||j}R.prototype.isReactComponent={},R.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")},R.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function H(){}H.prototype=R.prototype;function Q(A,q,G){this.props=A,this.context=q,this.refs=z,this.updater=G||j}var ee=Q.prototype=new H;ee.constructor=Q,C(ee,R.prototype),ee.isPureReactComponent=!0;var K=Array.isArray;function I(){}var Z={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function ue(A,q,G){var P=G.ref;return{$$typeof:l,type:A,key:q,ref:P!==void 0?P:null,props:G}}function xe(A,q){return ue(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(G){return q[G]})}var Xe=/\/+/g;function ne(A,q){return typeof A=="object"&&A!==null&&A.key!=null?Re(""+A.key):q.toString(36)}function de(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 k(A,q,G,P,te){var le=typeof A;(le==="undefined"||le==="boolean")&&(A=null);var we=!1;if(A===null)we=!0;else switch(le){case"bigint":case"string":case"number":we=!0;break;case"object":switch(A.$$typeof){case l:case i:we=!0;break;case S:return we=A._init,k(we(A._payload),q,G,P,te)}}if(we)return te=te(A),we=P===""?"."+ne(A,0):P,K(te)?(G="",we!=null&&(G=we.replace(Xe,"$&/")+"/"),k(te,q,G,"",function(ea){return ea})):te!=null&&(Ee(te)&&(te=xe(te,G+(te.key==null||A&&A.key===te.key?"":(""+te.key).replace(Xe,"$&/")+"/")+we)),q.push(te)),1;we=0;var Se=P===""?".":P+":";if(K(A))for(var ve=0;ve<A.length;ve++)P=A[ve],le=Se+ne(P,ve),we+=k(P,q,G,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=Se+ne(P,ve++),we+=k(P,q,G,le,te);else if(le==="object"){if(typeof A.then=="function")return k(de(A),q,G,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 we}function X(A,q,G){if(A==null)return A;var P=[],te=0;return k(A,P,"","",function(le){return q.call(G,le,te++)}),P}function ie(A){if(A._status===-1){var q=A._result;q=q(),q.then(function(G){(A._status===0||A._status===-1)&&(A._status=1,A._result=G)},function(G){(A._status===0||A._status===-1)&&(A._status=2,A._result=G)}),A._status===-1&&(A._status=0,A._result=q)}if(A._status===1)return A._result.default;throw A._result}var Ae=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:X,forEach:function(A,q,G){X(A,function(){q.apply(this,arguments)},G)},count:function(A){var q=0;return X(A,function(){q++}),q},toArray:function(A){return X(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 je.Activity=h,je.Children=W,je.Component=R,je.Fragment=u,je.Profiler=d,je.PureComponent=Q,je.StrictMode=c,je.Suspense=v,je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,je.__COMPILER_RUNTIME={__proto__:null,c:function(A){return Z.H.useMemoCache(A)}},je.cache=function(A){return function(){return A.apply(null,arguments)}},je.cacheSignal=function(){return null},je.cloneElement=function(A,q,G){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)!J.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=G;else if(1<le){for(var we=Array(le),Se=0;Se<le;Se++)we[Se]=arguments[Se+2];P.children=we}return ue(A.type,te,P)},je.createContext=function(A){return A={$$typeof:g,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:m,_context:A},A},je.createElement=function(A,q,G){var P,te={},le=null;if(q!=null)for(P in q.key!==void 0&&(le=""+q.key),q)J.call(q,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(te[P]=q[P]);var we=arguments.length-2;if(we===1)te.children=G;else if(1<we){for(var Se=Array(we),ve=0;ve<we;ve++)Se[ve]=arguments[ve+2];te.children=Se}if(A&&A.defaultProps)for(P in we=A.defaultProps,we)te[P]===void 0&&(te[P]=we[P]);return ue(A,le,te)},je.createRef=function(){return{current:null}},je.forwardRef=function(A){return{$$typeof:y,render:A}},je.isValidElement=Ee,je.lazy=function(A){return{$$typeof:S,_payload:{_status:-1,_result:A},_init:ie}},je.memo=function(A,q){return{$$typeof:p,type:A,compare:q===void 0?null:q}},je.startTransition=function(A){var q=Z.T,G={};Z.T=G;try{var P=A(),te=Z.S;te!==null&&te(G,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(I,Ae)}catch(le){Ae(le)}finally{q!==null&&G.types!==null&&(q.types=G.types),Z.T=q}},je.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},je.use=function(A){return Z.H.use(A)},je.useActionState=function(A,q,G){return Z.H.useActionState(A,q,G)},je.useCallback=function(A,q){return Z.H.useCallback(A,q)},je.useContext=function(A){return Z.H.useContext(A)},je.useDebugValue=function(){},je.useDeferredValue=function(A,q){return Z.H.useDeferredValue(A,q)},je.useEffect=function(A,q){return Z.H.useEffect(A,q)},je.useEffectEvent=function(A){return Z.H.useEffectEvent(A)},je.useId=function(){return Z.H.useId()},je.useImperativeHandle=function(A,q,G){return Z.H.useImperativeHandle(A,q,G)},je.useInsertionEffect=function(A,q){return Z.H.useInsertionEffect(A,q)},je.useLayoutEffect=function(A,q){return Z.H.useLayoutEffect(A,q)},je.useMemo=function(A,q){return Z.H.useMemo(A,q)},je.useOptimistic=function(A,q){return Z.H.useOptimistic(A,q)},je.useReducer=function(A,q,G){return Z.H.useReducer(A,q,G)},je.useRef=function(A){return Z.H.useRef(A)},je.useState=function(A){return Z.H.useState(A)},je.useSyncExternalStore=function(A,q,G){return Z.H.useSyncExternalStore(A,q,G)},je.useTransition=function(){return Z.H.useTransition()},je.version="19.2.8",je}var h0;function pd(){return h0||(h0=1,Vu.exports=Cv()),Vu.exports}var b=pd();const ae=Q0(b),Tv=Nv({__proto__:null,default:ae},[b]);var Xu={exports:{}},di={},Qu={exports:{}},Zu={};/**
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 p0;function zv(){return p0||(p0=1,(function(l){function i(k,X){var ie=k.length;k.push(X);e:for(;0<ie;){var Ae=ie-1>>>1,W=k[Ae];if(0<d(W,X))k[Ae]=X,k[ie]=W,ie=Ae;else break e}}function u(k){return k.length===0?null:k[0]}function c(k){if(k.length===0)return null;var X=k[0],ie=k.pop();if(ie!==X){k[0]=ie;e:for(var Ae=0,W=k.length,A=W>>>1;Ae<A;){var q=2*(Ae+1)-1,G=k[q],P=q+1,te=k[P];if(0>d(G,ie))P<W&&0>d(te,G)?(k[Ae]=te,k[P]=ie,Ae=P):(k[Ae]=G,k[q]=ie,Ae=q);else if(P<W&&0>d(te,ie))k[Ae]=te,k[P]=ie,Ae=P;else break e}}return X}function d(k,X){var ie=k.sortIndex-X.sortIndex;return ie!==0?ie:k.id-X.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 g=Date,y=g.now();l.unstable_now=function(){return g.now()-y}}var v=[],p=[],S=1,h=null,w=3,E=!1,j=!1,C=!1,z=!1,R=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;function ee(k){for(var X=u(p);X!==null;){if(X.callback===null)c(p);else if(X.startTime<=k)c(p),X.sortIndex=X.expirationTime,i(v,X);else break;X=u(p)}}function K(k){if(C=!1,ee(k),!j)if(u(v)!==null)j=!0,I||(I=!0,Re());else{var X=u(p);X!==null&&de(K,X.startTime-k)}}var I=!1,Z=-1,J=5,ue=-1;function xe(){return z?!0:!(l.unstable_now()-ue<J)}function Ee(){if(z=!1,I){var k=l.unstable_now();ue=k;var X=!0;try{e:{j=!1,C&&(C=!1,H(Z),Z=-1),E=!0;var ie=w;try{t:{for(ee(k),h=u(v);h!==null&&!(h.expirationTime>k&&xe());){var Ae=h.callback;if(typeof Ae=="function"){h.callback=null,w=h.priorityLevel;var W=Ae(h.expirationTime<=k);if(k=l.unstable_now(),typeof W=="function"){h.callback=W,ee(k),X=!0;break t}h===u(v)&&c(v),ee(k)}else c(v);h=u(v)}if(h!==null)X=!0;else{var A=u(p);A!==null&&de(K,A.startTime-k),X=!1}}break e}finally{h=null,w=ie,E=!1}X=void 0}}finally{X?Re():I=!1}}}var Re;if(typeof Q=="function")Re=function(){Q(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(){R(Ee,0)};function de(k,X){Z=R(function(){k(l.unstable_now())},X)}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(k){k.callback=null},l.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<k?Math.floor(1e3/k):5},l.unstable_getCurrentPriorityLevel=function(){return w},l.unstable_next=function(k){switch(w){case 1:case 2:case 3:var X=3;break;default:X=w}var ie=w;w=X;try{return k()}finally{w=ie}},l.unstable_requestPaint=function(){z=!0},l.unstable_runWithPriority=function(k,X){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var ie=w;w=k;try{return X()}finally{w=ie}},l.unstable_scheduleCallback=function(k,X,ie){var Ae=l.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?Ae+ie:Ae):ie=Ae,k){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=ie+W,k={id:S++,callback:X,priorityLevel:k,startTime:ie,expirationTime:W,sortIndex:-1},ie>Ae?(k.sortIndex=ie,i(p,k),u(v)===null&&k===u(p)&&(C?(H(Z),Z=-1):C=!0,de(K,ie-Ae))):(k.sortIndex=W,i(v,k),j||E||(j=!0,I||(I=!0,Re()))),k},l.unstable_shouldYield=xe,l.unstable_wrapCallback=function(k){var X=w;return function(){var ie=w;w=X;try{return k.apply(this,arguments)}finally{w=ie}}}})(Zu)),Zu}var g0;function _v(){return g0||(g0=1,Qu.exports=zv()),Qu.exports}var Ku={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 v0;function Rv(){if(v0)return Ft;v0=1;var l=pd();function i(v){var p="https://react.dev/errors/"+v;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)p+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+v+"; visit "+p+" 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,p,S){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:h==null?null:""+h,children:v,containerInfo:p,implementation:S}}var g=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ft.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,Ft.createPortal=function(v,p){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return m(v,p,null,S)},Ft.flushSync=function(v){var p=g.T,S=c.p;try{if(g.T=null,c.p=2,v)return v()}finally{g.T=p,c.p=S,c.d.f()}},Ft.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,c.d.C(v,p))},Ft.prefetchDNS=function(v){typeof v=="string"&&c.d.D(v)},Ft.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var S=p.as,h=y(S,p.crossOrigin),w=typeof p.integrity=="string"?p.integrity:void 0,E=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;S==="style"?c.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:h,integrity:w,fetchPriority:E}):S==="script"&&c.d.X(v,{crossOrigin:h,integrity:w,fetchPriority:E,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ft.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var S=y(p.as,p.crossOrigin);c.d.M(v,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&c.d.M(v)},Ft.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var S=p.as,h=y(S,p.crossOrigin);c.d.L(v,S,{crossOrigin:h,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ft.preloadModule=function(v,p){if(typeof v=="string")if(p){var S=y(p.as,p.crossOrigin);c.d.m(v,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else c.d.m(v)},Ft.requestFormReset=function(v){c.d.r(v)},Ft.unstable_batchedUpdates=function(v,p){return v(p)},Ft.useFormState=function(v,p,S){return g.H.useFormState(v,p,S)},Ft.useFormStatus=function(){return g.H.useHostTransitionStatus()},Ft.version="19.2.8",Ft}var y0;function Z0(){if(y0)return Ku.exports;y0=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(),Ku.exports=Rv(),Ku.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 x0;function kv(){if(x0)return di;x0=1;var l=_v(),i=pd(),u=Z0();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 g(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 p(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 h=Object.assign,w=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),ue=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 R:return"Profiler";case z:return"StrictMode";case K:return"Suspense";case I:return"SuspenseList";case ue:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case Q:return e.displayName||"Context";case H: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 J:t=e._payload,e=e._init;try{return ne(e(t))}catch{}}return null}var de=Array.isArray,k=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},Ae=[],W=-1;function A(e){return{current:e}}function q(e){0>W||(e.current=Ae[W],Ae[W]=null,W--)}function G(e,t){W++,Ae[W]=e.current,e.current=t}var P=A(null),te=A(null),le=A(null),we=A(null);function Se(e,t){switch(G(le,t),G(te,e),G(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Dh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Dh(t),e=Oh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(P),G(P,e)}function ve(){q(P),q(te),q(le)}function ea(e){e.memoizedState!==null&&G(we,e);var t=P.current,a=Oh(t,e.type);t!==a&&(G(te,e),G(P,a))}function Wt(e){te.current===e&&(q(P),q(te)),we.current===e&&(q(we),si._currentValue=ie)}var dt,xa;function kt(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 V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(L){var U=L}Reflect.construct(e,[],V)}else{try{V.call()}catch(L){U=L}e.call(V.prototype)}}else{try{throw Error()}catch(L){U=L}(V=e())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(L){if(L&&U&&typeof L.stack=="string")return[L.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:"")?kt(a):""}function bn(e,t){switch(e.tag){case 26:case 27:case 5:return kt(e.type);case 16:return kt("Lazy");case 13:return e.child!==t&&t!==null?kt("Suspense Fallback"):kt("Suspense");case 19:return kt("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 kt("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,ar=l.unstable_cancelCallback,Vt=l.unstable_shouldYield,Ba=l.unstable_requestPaint,Xt=l.unstable_now,js=l.unstable_getCurrentPriorityLevel,Yn=l.unstable_ImmediatePriority,_r=l.unstable_UserBlockingPriority,Gn=l.unstable_NormalPriority,nr=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 Mt=Math.clz32?Math.clz32:Va,xl=Math.log,lr=Math.LN2;function Va(e){return e>>>=0,e===0?32:31-(xl(e)/lr|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-Mt(a),V=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 L=U[B];L!==null&&(L.lane&=-536870913)}a&=~V}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-Mt(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-Mt(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=X.p;return e!==0?e:(e=window.event,e===void 0?32:l0(e.type))}function Qn(e,t){var a=X.p;try{return X.p=e,t()}finally{X.p=a}}var wn=Math.random().toString(36).slice(2),ct="__reactFiber$"+wn,jt="__reactProps$"+wn,Za="__reactContainer$"+wn,rr="__reactEvents$"+wn,jn="__reactListeners$"+wn,ji="__reactHandles$"+wn,Rr="__reactResources$"+wn,Nn="__reactMarker$"+wn;function Ka(e){delete e[ct],delete e[jt],delete e[rr],delete e[jn],delete e[ji]}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=Gh(e);e!==null;){if(a=e[ct])return a;e=Gh(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[Rr];return t||(t=e[Rr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Fe(e){e[Nn]=!0}var sr=new Set,ca={};function wa(e,t){Zn(e,t),Zn(e+"Capture",t)}function Zn(e,t){for(ca[e]=t,e=0;e<t.length;e++)sr.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]*$"),Ns={},ir={};function kr(e){return ta.call(ir,e)?!0:ta.call(Ns,e)?!1:bl.test(e)?ir[e]=!0:(Ns[e]=!0,!1)}function Cn(e,t,a){if(kr(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 ua(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Dr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ud(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=Dr(e)?"checked":"value";e._valueTracker=Ud(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=Dr(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 fe=/[\n"\\]/g;function he(e){return e.replace(fe,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=""+ua(t)):e.value!==""+ua(t)&&(e.value=""+ua(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?st(e,f,ua(t)):a!=null?st(e,f,ua(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=""+ua(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?""+ua(a):"",t=t!=null?""+ua(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=""+ua(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 pe(e,t,a){if(t!=null&&(t=""+ua(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+ua(a):""}function Ce(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(c(92));if(de(n)){if(1<n.length)throw Error(c(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=ua(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),O(e)}function ke(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 or(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="'+he(""+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":pe(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&qe(e,!!a.multiple,t,!1)}}}var Jn=!1;function Es(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)&&(ro(),$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"),da=!1;if(Ea)try{var fa={};Object.defineProperty(fa,"passive",{get:function(){da=!0}}),window.addEventListener("test",fa,fa),window.removeEventListener("test",fa,fa)}catch{da=!1}var la=null,Or=null,ra=null;function Ur(){if(ra)return ra;var e,t=Or,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 h(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=h({},mn,{view:0,detail:0}),Aa=Lt(Ve),Ca,Ta,Tn,Al=h({},Ve,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ko,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),As=h({},Al,{dataTransfer:0}),Ng=Lt(As),Eg=h({},Ve,{relatedTarget:0}),Zo=Lt(Eg),Ag=h({},mn,{animationName:0,elapsedTime:0,pseudoElement:0}),Cg=Lt(Ag),Tg=h({},mn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zg=Lt(Tg),_g=h({},mn,{data:0}),Ld=Lt(_g),Rg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kg={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 Dg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Mg[e])?!!t[e]:!1}function Ko(){return Dg}var Og=h({},Ve,{key:function(e){if(e.key){var t=Rg[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"?kg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ko,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}}),Ug=Lt(Og),Lg=h({},Al,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hd=Lt(Lg),Hg=h({},Ve,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ko}),Bg=Lt(Hg),qg=h({},mn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yg=Lt(qg),Gg=h({},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}),Vg=Lt(Gg),Xg=h({},mn,{newState:0,oldState:0}),Qg=Lt(Xg),Zg=[9,13,27,32],$o=Ea&&"CompositionEvent"in window,Cs=null;Ea&&"documentMode"in document&&(Cs=document.documentMode);var Kg=Ea&&"TextEvent"in window&&!Cs,Bd=Ea&&(!$o||Cs&&8<Cs&&11>=Cs),qd=" ",Yd=!1;function Gd(e,t){switch(e){case"keyup":return Zg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Lr=!1;function $g(e,t){switch(e){case"compositionend":return Vd(t);case"keypress":return t.which!==32?null:(Yd=!0,qd);case"textInput":return e=t.data,e===qd&&Yd?null:e;default:return null}}function Jg(e,t){if(Lr)return e==="compositionend"||!$o&&Gd(e,t)?(e=Ur(),ra=Or=la=null,Lr=!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 Bd&&t.locale!=="ko"?null:t.data;default:return null}}var Wg={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 Xd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Wg[e.type]:t==="textarea"}function Qd(e,t,a,n){$n?Ut?Ut.push(n):Ut=[n]:$n=n,t=mo(t,"onChange"),0<t.length&&(a=new El("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var Ts=null,zs=null;function Ig(e){Th(e,0)}function Ni(e){var t=An(e);if($(t))return e}function Zd(e,t){if(e==="change")return t}var Kd=!1;if(Ea){var Jo;if(Ea){var Wo="oninput"in document;if(!Wo){var $d=document.createElement("div");$d.setAttribute("oninput","return;"),Wo=typeof $d.oninput=="function"}Jo=Wo}else Jo=!1;Kd=Jo&&(!document.documentMode||9<document.documentMode)}function Jd(){Ts&&(Ts.detachEvent("onpropertychange",Wd),zs=Ts=null)}function Wd(e){if(e.propertyName==="value"&&Ni(zs)){var t=[];Qd(t,zs,e,or(e)),Es(Ig,t)}}function Fg(e,t,a){e==="focusin"?(Jd(),Ts=t,zs=a,Ts.attachEvent("onpropertychange",Wd)):e==="focusout"&&Jd()}function Pg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ni(zs)}function e2(e,t){if(e==="click")return Ni(t)}function t2(e,t){if(e==="input"||e==="change")return Ni(t)}function a2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var za=typeof Object.is=="function"?Object.is:a2;function _s(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 Id(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fd(e,t){var a=Id(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=Id(a)}}function Pd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ef(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 Io(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 n2=Ea&&"documentMode"in document&&11>=document.documentMode,Hr=null,Fo=null,Rs=null,Po=!1;function tf(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Po||Hr==null||Hr!==F(n)||(n=Hr,"selectionStart"in n&&Io(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}),Rs&&_s(Rs,n)||(Rs=n,n=mo(Fo,"onSelect"),0<n.length&&(t=new El("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=Hr)))}function cr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Br={animationend:cr("Animation","AnimationEnd"),animationiteration:cr("Animation","AnimationIteration"),animationstart:cr("Animation","AnimationStart"),transitionrun:cr("Transition","TransitionRun"),transitionstart:cr("Transition","TransitionStart"),transitioncancel:cr("Transition","TransitionCancel"),transitionend:cr("Transition","TransitionEnd")},ec={},af={};Ea&&(af=document.createElement("div").style,"AnimationEvent"in window||(delete Br.animationend.animation,delete Br.animationiteration.animation,delete Br.animationstart.animation),"TransitionEvent"in window||delete Br.transitionend.transition);function ur(e){if(ec[e])return ec[e];if(!Br[e])return e;var t=Br[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in af)return ec[e]=t[a];return e}var nf=ur("animationend"),lf=ur("animationiteration"),rf=ur("animationstart"),l2=ur("transitionrun"),r2=ur("transitionstart"),s2=ur("transitioncancel"),sf=ur("transitionend"),of=new Map,tc="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(" ");tc.push("scrollEnd");function hn(e,t){of.set(e,t),wa(t,[e])}var Ei=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=[],qr=0,ac=0;function Ai(){for(var e=qr,t=ac=qr=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&&cf(a,r,s)}}function Ci(e,t,a,n){Wa[qr++]=e,Wa[qr++]=t,Wa[qr++]=a,Wa[qr++]=n,ac|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function nc(e,t,a,n){return Ci(e,t,a,n),Ti(e)}function dr(e,t){return Ci(e,null,null,t),Ti(e)}function cf(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-Mt(a),e=s.hiddenUpdates,n=e[r],n===null?e[r]=[t]:n.push(t),t.lane=a|536870912),s):null}function Ti(e){if(50<Ps)throw Ps=0,fu=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Yr={};function i2(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 i2(e,t,a,n)}function lc(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 uf(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 zi(e,t,a,n,r,s){var f=0;if(n=e,typeof e=="function")lc(e)&&(f=1);else if(typeof e=="string")f=fv(e,a,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ue:return e=_a(31,a,t,r),e.elementType=ue,e.lanes=s,e;case C:return fr(a.children,r,s,t);case z:f=8,r|=24;break;case R:return e=_a(12,a,t,r|2),e.elementType=R,e.lanes=s,e;case K:return e=_a(13,a,t,r),e.elementType=K,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 Q:f=10;break e;case H:f=9;break e;case ee:f=11;break e;case Z:f=14;break e;case J: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 fr(e,t,a,n){return e=_a(7,e,n,t),e.lanes=a,e}function rc(e,t,a){return e=_a(6,e,null,t),e.lanes=a,e}function df(e){var t=_a(18,null,null,0);return t.stateNode=e,t}function sc(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 ff=new WeakMap;function Ia(e,t){if(typeof e=="object"&&e!==null){var a=ff.get(e);return a!==void 0?a:(t={value:e,source:t,stack:vl(t)},ff.set(e,t),t)}return{value:e,source:t,stack:vl(t)}}var Gr=[],Vr=0,_i=null,ks=0,Fa=[],Pa=0,Cl=null,_n=1,Rn="";function In(e,t){Gr[Vr++]=ks,Gr[Vr++]=_i,_i=e,ks=t}function mf(e,t,a){Fa[Pa++]=_n,Fa[Pa++]=Rn,Fa[Pa++]=Cl,Cl=e;var n=_n;e=Rn;var r=32-Mt(n)-1;n&=~(1<<r),a+=1;var s=32-Mt(t)+r;if(30<s){var f=r-r%5;s=(n&(1<<f)-1).toString(32),n>>=f,r-=f,_n=1<<32-Mt(t)+r|a<<r|n,Rn=s+e}else _n=1<<s|a<<r|n,Rn=e}function ic(e){e.return!==null&&(In(e,1),mf(e,1,0))}function oc(e){for(;e===_i;)_i=Gr[--Vr],Gr[Vr]=null,ks=Gr[--Vr],Gr[Vr]=null;for(;e===Cl;)Cl=Fa[--Pa],Fa[Pa]=null,Rn=Fa[--Pa],Fa[Pa]=null,_n=Fa[--Pa],Fa[Pa]=null}function hf(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,cc=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)),cc}function pf(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[ct]=e,t[jt]=n,a){case"dialog":De("cancel",t),De("close",t);break;case"iframe":case"object":case"embed":De("load",t);break;case"video":case"audio":for(a=0;a<ti.length;a++)De(ti[a],t);break;case"source":De("error",t);break;case"img":case"image":case"link":De("error",t),De("load",t);break;case"details":De("toggle",t);break;case"input":De("invalid",t),Be(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":De("invalid",t);break;case"textarea":De("invalid",t),Ce(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||kh(t.textContent,a)?(n.popover!=null&&(De("beforetoggle",t),De("toggle",t)),n.onScroll!=null&&De("scroll",t),n.onScrollEnd!=null&&De("scrollend",t),n.onClick!=null&&(t.onclick=ja),t=!0):t=!1,t||zl(e,!0)}function gf(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 Xr(e){if(e!==Qt)return!1;if(!Ye)return gf(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")||Cu(e.type,e.memoizedProps)),a=!a),a&&it&&zl(e),gf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));it=Yh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));it=Yh(e)}else t===27?(t=it,Vl(e.type)?(e=ku,ku=null,it=e):it=t):it=Qt?an(e.stateNode.nextSibling):null;return!0}function mr(){it=Qt=null,Ye=!1}function uc(){var e=Tl;return e!==null&&(ga===null?ga=e:ga.push.apply(ga,e),Tl=null),e}function Ms(e){Tl===null?Tl=[e]:Tl.push(e)}var dc=A(null),hr=null,Fn=null;function _l(e,t,a){G(dc,t._currentValue),t._currentValue=a}function Pn(e){e._currentValue=dc.current,q(dc)}function fc(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 mc(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),fc(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),fc(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 Qr(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===we.current){if(f=r.alternate,f===null)throw Error(c(387));f.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(si):e=[si])}r=r.return}e!==null&&mc(t,e,a,n),t.flags|=262144}function Ri(e){for(e=e.firstContext;e!==null;){if(!za(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function pr(e){hr=e,Fn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Zt(e){return vf(hr,e)}function ki(e,t){return hr===null&&pr(e),vf(e,t)}function vf(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 o2=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()})}},c2=l.unstable_scheduleCallback,u2=l.unstable_NormalPriority,Nt={$$typeof:Q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hc(){return{controller:new o2,data:new Map,refCount:0}}function Ds(e){e.refCount--,e.refCount===0&&c2(u2,function(){e.controller.abort()})}var Os=null,pc=0,Zr=0,Kr=null;function d2(e,t){if(Os===null){var a=Os=[];pc=0,Zr=yu(),Kr={status:"pending",value:void 0,then:function(n){a.push(n)}}}return pc++,t.then(yf,yf),t}function yf(){if(--pc===0&&Os!==null){Kr!==null&&(Kr.status="fulfilled");var e=Os;Os=null,Zr=0,Kr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function f2(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 xf=k.S;k.S=function(e,t){ah=Xt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&d2(e,t),xf!==null&&xf(e,t)};var gr=A(null);function gc(){var e=gr.current;return e!==null?e:nt.pooledCache}function Mi(e,t){t===null?G(gr,gr.current):G(gr,t.pool)}function bf(){var e=gc();return e===null?null:{parent:Nt._currentValue,pool:e}}var $r=Error(c(460)),vc=Error(c(474)),Di=Error(c(542)),Oi={then:function(){}};function Sf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function wf(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,Nf(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,Nf(e),e}throw yr=t,$r}}function vr(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(yr=a,$r):a}}var yr=null;function jf(){if(yr===null)throw Error(c(459));var e=yr;return yr=null,e}function Nf(e){if(e===$r||e===Di)throw Error(c(483))}var Jr=null,Us=0;function Ui(e){var t=Us;return Us+=1,Jr===null&&(Jr=[]),wf(Jr,e,t)}function Ls(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Li(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 Ef(e){function t(_,T){if(e){var M=_.deletions;M===null?(_.deletions=[T],_.flags|=16):M.push(T)}}function a(_,T){if(!e)return null;for(;T!==null;)t(_,T),T=T.sibling;return null}function n(_){for(var T=new Map;_!==null;)_.key!==null?T.set(_.key,_):T.set(_.index,_),_=_.sibling;return T}function r(_,T){return _=Wn(_,T),_.index=0,_.sibling=null,_}function s(_,T,M){return _.index=M,e?(M=_.alternate,M!==null?(M=M.index,M<T?(_.flags|=67108866,T):M):(_.flags|=67108866,T)):(_.flags|=1048576,T)}function f(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function x(_,T,M,Y){return T===null||T.tag!==6?(T=rc(M,_.mode,Y),T.return=_,T):(T=r(T,M),T.return=_,T)}function N(_,T,M,Y){var me=M.type;return me===C?B(_,T,M.props.children,Y,M.key):T!==null&&(T.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===J&&vr(me)===T.type)?(T=r(T,M.props),Ls(T,M),T.return=_,T):(T=zi(M.type,M.key,M.props,null,_.mode,Y),Ls(T,M),T.return=_,T)}function D(_,T,M,Y){return T===null||T.tag!==4||T.stateNode.containerInfo!==M.containerInfo||T.stateNode.implementation!==M.implementation?(T=sc(M,_.mode,Y),T.return=_,T):(T=r(T,M.children||[]),T.return=_,T)}function B(_,T,M,Y,me){return T===null||T.tag!==7?(T=fr(M,_.mode,Y,me),T.return=_,T):(T=r(T,M),T.return=_,T)}function V(_,T,M){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=rc(""+T,_.mode,M),T.return=_,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case E:return M=zi(T.type,T.key,T.props,null,_.mode,M),Ls(M,T),M.return=_,M;case j:return T=sc(T,_.mode,M),T.return=_,T;case J:return T=vr(T),V(_,T,M)}if(de(T)||Re(T))return T=fr(T,_.mode,M,null),T.return=_,T;if(typeof T.then=="function")return V(_,Ui(T),M);if(T.$$typeof===Q)return V(_,ki(_,T),M);Li(_,T)}return null}function U(_,T,M,Y){var me=T!==null?T.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return me!==null?null:x(_,T,""+M,Y);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case E:return M.key===me?N(_,T,M,Y):null;case j:return M.key===me?D(_,T,M,Y):null;case J:return M=vr(M),U(_,T,M,Y)}if(de(M)||Re(M))return me!==null?null:B(_,T,M,Y,null);if(typeof M.then=="function")return U(_,T,Ui(M),Y);if(M.$$typeof===Q)return U(_,T,ki(_,M),Y);Li(_,M)}return null}function L(_,T,M,Y,me){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return _=_.get(M)||null,x(T,_,""+Y,me);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case E:return _=_.get(Y.key===null?M:Y.key)||null,N(T,_,Y,me);case j:return _=_.get(Y.key===null?M:Y.key)||null,D(T,_,Y,me);case J:return Y=vr(Y),L(_,T,M,Y,me)}if(de(Y)||Re(Y))return _=_.get(M)||null,B(T,_,Y,me,null);if(typeof Y.then=="function")return L(_,T,M,Ui(Y),me);if(Y.$$typeof===Q)return L(_,T,M,ki(T,Y),me);Li(T,Y)}return null}function oe(_,T,M,Y){for(var me=null,Qe=null,ce=T,ze=T=0,He=null;ce!==null&&ze<M.length;ze++){ce.index>ze?(He=ce,ce=null):He=ce.sibling;var Ze=U(_,ce,M[ze],Y);if(Ze===null){ce===null&&(ce=He);break}e&&ce&&Ze.alternate===null&&t(_,ce),T=s(Ze,T,ze),Qe===null?me=Ze:Qe.sibling=Ze,Qe=Ze,ce=He}if(ze===M.length)return a(_,ce),Ye&&In(_,ze),me;if(ce===null){for(;ze<M.length;ze++)ce=V(_,M[ze],Y),ce!==null&&(T=s(ce,T,ze),Qe===null?me=ce:Qe.sibling=ce,Qe=ce);return Ye&&In(_,ze),me}for(ce=n(ce);ze<M.length;ze++)He=L(ce,_,ze,M[ze],Y),He!==null&&(e&&He.alternate!==null&&ce.delete(He.key===null?ze:He.key),T=s(He,T,ze),Qe===null?me=He:Qe.sibling=He,Qe=He);return e&&ce.forEach(function($l){return t(_,$l)}),Ye&&In(_,ze),me}function ge(_,T,M,Y){if(M==null)throw Error(c(151));for(var me=null,Qe=null,ce=T,ze=T=0,He=null,Ze=M.next();ce!==null&&!Ze.done;ze++,Ze=M.next()){ce.index>ze?(He=ce,ce=null):He=ce.sibling;var $l=U(_,ce,Ze.value,Y);if($l===null){ce===null&&(ce=He);break}e&&ce&&$l.alternate===null&&t(_,ce),T=s($l,T,ze),Qe===null?me=$l:Qe.sibling=$l,Qe=$l,ce=He}if(Ze.done)return a(_,ce),Ye&&In(_,ze),me;if(ce===null){for(;!Ze.done;ze++,Ze=M.next())Ze=V(_,Ze.value,Y),Ze!==null&&(T=s(Ze,T,ze),Qe===null?me=Ze:Qe.sibling=Ze,Qe=Ze);return Ye&&In(_,ze),me}for(ce=n(ce);!Ze.done;ze++,Ze=M.next())Ze=L(ce,_,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?me=Ze:Qe.sibling=Ze,Qe=Ze);return e&&ce.forEach(function(jv){return t(_,jv)}),Ye&&In(_,ze),me}function tt(_,T,M,Y){if(typeof M=="object"&&M!==null&&M.type===C&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case E:e:{for(var me=M.key;T!==null;){if(T.key===me){if(me=M.type,me===C){if(T.tag===7){a(_,T.sibling),Y=r(T,M.props.children),Y.return=_,_=Y;break e}}else if(T.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===J&&vr(me)===T.type){a(_,T.sibling),Y=r(T,M.props),Ls(Y,M),Y.return=_,_=Y;break e}a(_,T);break}else t(_,T);T=T.sibling}M.type===C?(Y=fr(M.props.children,_.mode,Y,M.key),Y.return=_,_=Y):(Y=zi(M.type,M.key,M.props,null,_.mode,Y),Ls(Y,M),Y.return=_,_=Y)}return f(_);case j:e:{for(me=M.key;T!==null;){if(T.key===me)if(T.tag===4&&T.stateNode.containerInfo===M.containerInfo&&T.stateNode.implementation===M.implementation){a(_,T.sibling),Y=r(T,M.children||[]),Y.return=_,_=Y;break e}else{a(_,T);break}else t(_,T);T=T.sibling}Y=sc(M,_.mode,Y),Y.return=_,_=Y}return f(_);case J:return M=vr(M),tt(_,T,M,Y)}if(de(M))return oe(_,T,M,Y);if(Re(M)){if(me=Re(M),typeof me!="function")throw Error(c(150));return M=me.call(M),ge(_,T,M,Y)}if(typeof M.then=="function")return tt(_,T,Ui(M),Y);if(M.$$typeof===Q)return tt(_,T,ki(_,M),Y);Li(_,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,T!==null&&T.tag===6?(a(_,T.sibling),Y=r(T,M),Y.return=_,_=Y):(a(_,T),Y=rc(M,_.mode,Y),Y.return=_,_=Y),f(_)):a(_,T)}return function(_,T,M,Y){try{Us=0;var me=tt(_,T,M,Y);return Jr=null,me}catch(ce){if(ce===$r||ce===Di)throw ce;var Qe=_a(29,ce,null,_.mode);return Qe.lanes=Y,Qe.return=_,Qe}finally{}}}var xr=Ef(!0),Af=Ef(!1),Rl=!1;function yc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xc(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 kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ml(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,($e&2)!==0){var r=n.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),n.pending=t,t=Ti(e),cf(e,null,a),t}return Ci(e,n,t,a),Ti(e)}function Hs(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 bc(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 Sc=!1;function Bs(){if(Sc){var e=Kr;if(e!==null)throw e}}function qs(e,t,a,n){Sc=!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 V=r.baseState;f=0,B=D=N=null,x=s;do{var U=x.lane&-536870913,L=U!==x.lane;if(L?(Le&U)===U:(n&U)===U){U!==0&&U===Zr&&(Sc=!0),B!==null&&(B=B.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var oe=e,ge=x;U=t;var tt=a;switch(ge.tag){case 1:if(oe=ge.payload,typeof oe=="function"){V=oe.call(tt,V,U);break e}V=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=ge.payload,U=typeof oe=="function"?oe.call(tt,V,U):oe,U==null)break e;V=h({},V,U);break e;case 2:Rl=!0}}U=x.callback,U!==null&&(e.flags|=64,L&&(e.flags|=8192),L=r.callbacks,L===null?r.callbacks=[U]:L.push(U))}else L={lane:U,tag:x.tag,payload:x.payload,callback:x.callback,next:null},B===null?(D=B=L,N=V):B=B.next=L,f|=U;if(x=x.next,x===null){if(x=r.shared.pending,x===null)break;L=x,x=L.next,L.next=null,r.lastBaseUpdate=L,r.shared.pending=null}}while(!0);B===null&&(N=V),r.baseState=N,r.firstBaseUpdate=D,r.lastBaseUpdate=B,s===null&&(r.shared.lanes=0),Hl|=f,e.lanes=f,e.memoizedState=V}}function Cf(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function Tf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Cf(a[e],t)}var Wr=A(null),Hi=A(0);function zf(e,t){e=ol,G(Hi,e),G(Wr,t),ol=e|t.baseLanes}function wc(){G(Hi,ol),G(Wr,Wr.current)}function jc(){ol=Hi.current,q(Wr),q(Hi)}var Ra=A(null),tn=null;function Dl(e){var t=e.alternate;G(bt,bt.current&1),G(Ra,e),tn===null&&(t===null||Wr.current!==null||t.memoizedState!==null)&&(tn=e)}function Nc(e){G(bt,bt.current),G(Ra,e),tn===null&&(tn=e)}function _f(e){e.tag===22?(G(bt,bt.current),G(Ra,e),tn===null&&(tn=e)):Ol()}function Ol(){G(bt,bt.current),G(Ra,Ra.current)}function ka(e){q(Ra),tn===e&&(tn=null),q(bt)}var bt=A(0);function Bi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||_u(a)||Ru(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,qi=!1,Ir=!1,br=!1,Yi=0,Ys=0,Fr=null,m2=0;function mt(){throw Error(c(321))}function Ec(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 Ac(e,t,a,n,r,s){return el=s,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?mm:Yc,br=!1,s=a(n,r),br=!1,Ir&&(s=kf(t,a,n,r)),Rf(e),s}function Rf(e){k.H=Xs;var t=Pe!==null&&Pe.next!==null;if(el=0,Et=Pe=Te=null,qi=!1,Ys=0,Fr=null,t)throw Error(c(300));e===null||At||(e=e.dependencies,e!==null&&Ri(e)&&(At=!0))}function kf(e,t,a,n){Te=e;var r=0;do{if(Ir&&(Fr=null),Ys=0,Ir=!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)}k.H=hm,s=t(a,n)}while(Ir);return s}function h2(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?Gs(t):t,e=e.useState()[0],(Pe!==null?Pe.memoizedState:null)!==e&&(Te.flags|=1024),t}function Cc(){var e=Yi!==0;return Yi=0,e}function Tc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function zc(e){if(qi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}qi=!1}el=0,Et=Pe=Te=null,Ir=!1,Ys=Yi=0,Fr=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 Gi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Gs(e){var t=Ys;return Ys+=1,Fr===null&&(Fr=[]),e=wf(Fr,e,t),t=Te,(Et===null?t.memoizedState:Et.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?mm:Yc),e}function Vi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Gs(e);if(e.$$typeof===Q)return Zt(e)}throw Error(c(438,String(e)))}function _c(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=Gi(),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 Xi(e){var t=St();return Rc(t,Pe,e)}function Rc(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 V=D.lane&-536870913;if(V!==D.lane?(Le&V)===V:(el&V)===V){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}),V===Zr&&(B=!0);else if((el&U)===U){D=D.next,U===Zr&&(B=!0);continue}else V={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},N===null?(x=N=V,f=s):N=N.next=V,Te.lanes|=U,Hl|=U;V=D.action,br&&a(s,V),s=D.hasEagerState?D.eagerState:a(s,V)}else U={lane:V,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|=V,Hl|=V;D=D.next}while(D!==null&&D!==t);if(N===null?f=s:N.next=x,!za(s,e.memoizedState)&&(At=!0,B&&(a=Kr,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 kc(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,Oc(Uf.bind(null,n,r,e),[e]),r.getSnapshot!==t||f||Et!==null&&Et.memoizedState.tag&1){if(n.flags|=2048,Pr(9,{destroy:void 0},Of.bind(null,n,r,a,t),null),nt===null)throw Error(c(349));s||(el&127)!==0||Df(n,t,a)}return a}function Df(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Te.updateQueue,t===null?(t=Gi(),Te.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Of(e,t,a,n){t.value=a,t.getSnapshot=n,Lf(t)&&Hf(e)}function Uf(e,t,a){return a(function(){Lf(t)&&Hf(e)})}function Lf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!za(e,a)}catch{return!0}}function Hf(e){var t=dr(e,2);t!==null&&va(t,e,2)}function Mc(e){var t=ia();if(typeof e=="function"){var a=e;if(e=a(),br){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 Bf(e,t,a,n){return e.baseState=a,Rc(e,Pe,typeof n=="function"?n:tl)}function p2(e,t,a,n,r){if(Ki(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)}};k.T!==null?a(!0):s.isTransition=!1,n(s),a=t.pending,a===null?(s.next=t.pending=s,qf(t,s)):(s.next=a.next,t.pending=a.next=s)}}function qf(e,t){var a=t.action,n=t.payload,r=e.state;if(t.isTransition){var s=k.T,f={};k.T=f;try{var x=a(r,n),N=k.S;N!==null&&N(f,x),Yf(e,t,x)}catch(D){Dc(e,t,D)}finally{s!==null&&f.types!==null&&(s.types=f.types),k.T=s}}else try{s=a(r,n),Yf(e,t,s)}catch(D){Dc(e,t,D)}}function Yf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){Gf(e,t,n)},function(n){return Dc(e,t,n)}):Gf(e,t,a)}function Gf(e,t,a){t.status="fulfilled",t.value=a,Vf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,qf(e,a)))}function Dc(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,Vf(t),t=t.next;while(t!==n)}e.action=null}function Vf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Xf(e,t){return t}function Qf(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:Xf,lastRenderedState:t},a.queue=n,a=um.bind(null,Te,n),n.dispatch=a,n=Mc(!1),s=qc.bind(null,Te,!1,n.queue),n=ia(),r={state:t,dispatch:null,action:e,pending:null},n.queue=r,a=p2.bind(null,Te,r,s,a),r.dispatch=a,n.memoizedState=e,[t,a,!1]}function Zf(e){var t=St();return Kf(t,Pe,e)}function Kf(e,t,a){if(t=Rc(e,t,Xf)[0],e=Xi(tl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Gs(t)}catch(f){throw f===$r?Di:f}else n=t;t=St();var r=t.queue,s=r.dispatch;return a!==t.memoizedState&&(Te.flags|=2048,Pr(9,{destroy:void 0},g2.bind(null,r,a),null)),[n,s,e]}function g2(e,t){e.action=t}function $f(e){var t=St(),a=Pe;if(a!==null)return Kf(t,a,e);St(),t=t.memoizedState,a=St();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function Pr(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=Te.updateQueue,t===null&&(t=Gi(),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 Jf(){return St().memoizedState}function Qi(e,t,a,n){var r=ia();Te.flags|=e,r.memoizedState=Pr(1|t,{destroy:void 0},a,n===void 0?null:n)}function Zi(e,t,a,n){var r=St();n=n===void 0?null:n;var s=r.memoizedState.inst;Pe!==null&&n!==null&&Ec(n,Pe.memoizedState.deps)?r.memoizedState=Pr(t,s,a,n):(Te.flags|=e,r.memoizedState=Pr(1|t,s,a,n))}function Wf(e,t){Qi(8390656,8,e,t)}function Oc(e,t){Zi(2048,8,e,t)}function v2(e){Te.flags|=4;var t=Te.updateQueue;if(t===null)t=Gi(),Te.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function If(e){var t=St().memoizedState;return v2({ref:t,nextImpl:e}),function(){if(($e&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Ff(e,t){return Zi(4,2,e,t)}function Pf(e,t){return Zi(4,4,e,t)}function em(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 tm(e,t,a){a=a!=null?a.concat([e]):null,Zi(4,4,em.bind(null,t,e),a)}function Uc(){}function am(e,t){var a=St();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&Ec(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function nm(e,t){var a=St();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&Ec(t,n[1]))return n[0];if(n=e(),br){ba(!0);try{e()}finally{ba(!1)}}return a.memoizedState=[n,t],n}function Lc(e,t,a){return a===void 0||(el&1073741824)!==0&&(Le&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=lh(),Te.lanes|=e,Hl|=e,a)}function lm(e,t,a,n){return za(a,t)?a:Wr.current!==null?(e=Lc(e,a,n),za(e,t)||(At=!0),e):(el&42)===0||(el&1073741824)!==0&&(Le&261930)===0?(At=!0,e.memoizedState=a):(e=lh(),Te.lanes|=e,Hl|=e,t)}function rm(e,t,a,n,r){var s=X.p;X.p=s!==0&&8>s?s:8;var f=k.T,x={};k.T=x,qc(e,!1,t,a);try{var N=r(),D=k.S;if(D!==null&&D(x,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var B=f2(N,n);Vs(e,t,B,Oa(e))}else Vs(e,t,n,Oa(e))}catch(V){Vs(e,t,{then:function(){},status:"rejected",reason:V},Oa())}finally{X.p=s,f!==null&&x.types!==null&&(f.types=x.types),k.T=f}}function y2(){}function Hc(e,t,a,n){if(e.tag!==5)throw Error(c(476));var r=sm(e).queue;rm(e,r,t,ie,a===null?y2:function(){return im(e),a(n)})}function sm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:ie},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 im(e){var t=sm(e);t.next===null&&(t=e.alternate.memoizedState),Vs(e,t.next.queue,{},Oa())}function Bc(){return Zt(si)}function om(){return St().memoizedState}function cm(){return St().memoizedState}function x2(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Oa();e=kl(a);var n=Ml(t,e,a);n!==null&&(va(n,t,a),Hs(n,t,a)),t={cache:hc()},e.payload=t;return}t=t.return}}function b2(e,t,a){var n=Oa();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ki(e)?dm(t,a):(a=nc(e,t,a,n),a!==null&&(va(a,e,n),fm(a,t,n)))}function um(e,t,a){var n=Oa();Vs(e,t,a,n)}function Vs(e,t,a,n){var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ki(e))dm(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 Ci(e,t,r,0),nt===null&&Ai(),!1}catch{}finally{}if(a=nc(e,t,r,n),a!==null)return va(a,e,n),fm(a,t,n),!0}return!1}function qc(e,t,a,n){if(n={lane:2,revertLane:yu(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ki(e)){if(t)throw Error(c(479))}else t=nc(e,a,n,2),t!==null&&va(t,e,2)}function Ki(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function dm(e,t){Ir=qi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function fm(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,gt(e,a)}}var Xs={readContext:Zt,use:Vi,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};Xs.useEffectEvent=mt;var mm={readContext:Zt,use:Vi,useCallback:function(e,t){return ia().memoizedState=[e,t===void 0?null:t],e},useContext:Zt,useEffect:Wf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Qi(4194308,4,em.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Qi(4194308,4,e,t)},useInsertionEffect:function(e,t){Qi(4,2,e,t)},useMemo:function(e,t){var a=ia();t=t===void 0?null:t;var n=e();if(br){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(br){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=b2.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=um.bind(null,Te,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Uc,useDeferredValue:function(e,t){var a=ia();return Lc(a,e,t)},useTransition:function(){var e=Mc(!1);return e=rm.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||Df(n,t,a)}r.memoizedState=a;var s={value:a,getSnapshot:t};return r.queue=s,Wf(Uf.bind(null,n,s,e),[e]),n.flags|=2048,Pr(9,{destroy:void 0},Of.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-Mt(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Yi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=m2++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Bc,useFormState:Qf,useActionState:Qf,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=qc.bind(null,Te,!0,a),a.dispatch=t,[e,t]},useMemoCache:_c,useCacheRefresh:function(){return ia().memoizedState=x2.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)}}},Yc={readContext:Zt,use:Vi,useCallback:am,useContext:Zt,useEffect:Oc,useImperativeHandle:tm,useInsertionEffect:Ff,useLayoutEffect:Pf,useMemo:nm,useReducer:Xi,useRef:Jf,useState:function(){return Xi(tl)},useDebugValue:Uc,useDeferredValue:function(e,t){var a=St();return lm(a,Pe.memoizedState,e,t)},useTransition:function(){var e=Xi(tl)[0],t=St().memoizedState;return[typeof e=="boolean"?e:Gs(e),t]},useSyncExternalStore:Mf,useId:om,useHostTransitionStatus:Bc,useFormState:Zf,useActionState:Zf,useOptimistic:function(e,t){var a=St();return Bf(a,Pe,e,t)},useMemoCache:_c,useCacheRefresh:cm};Yc.useEffectEvent=If;var hm={readContext:Zt,use:Vi,useCallback:am,useContext:Zt,useEffect:Oc,useImperativeHandle:tm,useInsertionEffect:Ff,useLayoutEffect:Pf,useMemo:nm,useReducer:kc,useRef:Jf,useState:function(){return kc(tl)},useDebugValue:Uc,useDeferredValue:function(e,t){var a=St();return Pe===null?Lc(a,e,t):lm(a,Pe.memoizedState,e,t)},useTransition:function(){var e=kc(tl)[0],t=St().memoizedState;return[typeof e=="boolean"?e:Gs(e),t]},useSyncExternalStore:Mf,useId:om,useHostTransitionStatus:Bc,useFormState:$f,useActionState:$f,useOptimistic:function(e,t){var a=St();return Pe!==null?Bf(a,Pe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:_c,useCacheRefresh:cm};hm.useEffectEvent=If;function Gc(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:h({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Vc={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Oa(),r=kl(n);r.payload=t,a!=null&&(r.callback=a),t=Ml(e,r,n),t!==null&&(va(t,e,n),Hs(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Oa(),r=kl(n);r.tag=1,r.payload=t,a!=null&&(r.callback=a),t=Ml(e,r,n),t!==null&&(va(t,e,n),Hs(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Oa(),n=kl(a);n.tag=2,t!=null&&(n.callback=t),t=Ml(e,n,a),t!==null&&(va(t,e,a),Hs(t,e,a))}};function pm(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?!_s(a,n)||!_s(r,s):!0}function gm(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&&Vc.enqueueReplaceState(t,t.state,null)}function Sr(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=h({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function vm(e){Ei(e)}function ym(e){console.error(e)}function xm(e){Ei(e)}function $i(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function bm(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 Xc(e,t,a){return a=kl(a),a.tag=3,a.payload={element:null},a.callback=function(){$i(e,t)},a}function Sm(e){return e=kl(e),e.tag=3,e}function wm(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(){bm(t,a,n)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){bm(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 S2(e,t,a,n,r){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&Qr(t,a,r,!0),a=Ra.current,a!==null){switch(a.tag){case 31:case 13:return tn===null?so():a.alternate===null&&ht===0&&(ht=3),a.flags&=-257,a.flags|=65536,a.lanes=r,n===Oi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),pu(e,n,r)),!1;case 22:return a.flags|=65536,n===Oi?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)),pu(e,n,r)),!1}throw Error(c(435,a.tag))}return pu(e,n,r),so(),!1}if(Ye)return t=Ra.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,n!==cc&&(e=Error(c(422),{cause:n}),Ms(Ia(e,a)))):(n!==cc&&(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=Xc(e.stateNode,n,r),bc(e,r),ht!==4&&(ht=2)),!1;var s=Error(c(520),{cause:n});if(s=Ia(s,a),Fs===null?Fs=[s]:Fs.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=Xc(a.stateNode,n,e),bc(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=Sm(r),wm(r,e,a,n),bc(a,r),!1}a=a.return}while(a!==null);return!1}var Qc=Error(c(461)),At=!1;function Kt(e,t,a,n){t.child=e===null?Af(t,null,a,n):xr(t,e.child,a,n)}function jm(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 pr(t),n=Ac(e,t,a,f,s,r),x=Cc(),e!==null&&!At?(Tc(e,t,r),al(e,t,r)):(Ye&&x&&ic(t),t.flags|=1,Kt(e,t,n,r),t.child)}function Nm(e,t,a,n,r){if(e===null){var s=a.type;return typeof s=="function"&&!lc(s)&&s.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=s,Em(e,t,s,n,r)):(e=zi(a.type,null,n,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Pc(e,r)){var f=s.memoizedProps;if(a=a.compare,a=a!==null?a:_s,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 Em(e,t,a,n,r){if(e!==null){var s=e.memoizedProps;if(_s(s,n)&&e.ref===t.ref)if(At=!1,t.pendingProps=n=s,Pc(e,r))(e.flags&131072)!==0&&(At=!0);else return t.lanes=e.lanes,al(e,t,r)}return Zc(e,t,a,n,r)}function Am(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 Cm(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?zf(t,s):wc(),_f(t);else return n=t.lanes=536870912,Cm(e,t,s!==null?s.baseLanes|a:a,a,n)}else s!==null?(Mi(t,s.cachePool),zf(t,s),Ol(),t.memoizedState=null):(e!==null&&Mi(t,null),wc(),Ol());return Kt(e,t,r,a),t.child}function Qs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Cm(e,t,a,n,r){var s=gc();return s=s===null?null:{parent:Nt._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&Mi(t,null),wc(),_f(t),e!==null&&Qr(e,t,n,!0),t.childLanes=r,null}function Ji(e,t){return t=Ii({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Tm(e,t,a){return xr(t,e.child,null,a),e=Ji(t,t.pendingProps),e.flags|=2,ka(t),t.memoizedState=null,e}function w2(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=Ji(t,n),t.lanes=536870912,Qs(null,e);if(Nc(t),(e=it)?(e=qh(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=df(e),a.return=t,t.child=a,Qt=t,it=null)):e=null,e===null)throw zl(t);return t.lanes=536870912,null}return Ji(t,n)}var s=e.memoizedState;if(s!==null){var f=s.dehydrated;if(Nc(t),r)if(t.flags&256)t.flags&=-257,t=Tm(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||Qr(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,dr(e,f),va(n,e,f),Qc;so(),t=Tm(e,t,a)}else e=s.treeContext,it=an(f.nextSibling),Qt=t,Ye=!0,Tl=null,en=!1,e!==null&&hf(t,e),t=Ji(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 Wi(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 Zc(e,t,a,n,r){return pr(t),a=Ac(e,t,a,n,void 0,r),n=Cc(),e!==null&&!At?(Tc(e,t,r),al(e,t,r)):(Ye&&n&&ic(t),t.flags|=1,Kt(e,t,a,r),t.child)}function zm(e,t,a,n,r,s){return pr(t),t.updateQueue=null,a=kf(t,n,a,r),Rf(e),n=Cc(),e!==null&&!At?(Tc(e,t,s),al(e,t,s)):(Ye&&n&&ic(t),t.flags|=1,Kt(e,t,a,s),t.child)}function _m(e,t,a,n,r){if(pr(t),t.stateNode===null){var s=Yr,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=Vc,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=n,s.state=t.memoizedState,s.refs={},yc(t),f=a.contextType,s.context=typeof f=="object"&&f!==null?Zt(f):Yr,s.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(Gc(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&&Vc.enqueueReplaceState(s,s.state,null),qs(t,n,s,r),Bs(),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=Sr(a,x);s.props=N;var D=s.context,B=a.contextType;f=Yr,typeof B=="object"&&B!==null&&(f=Zt(B));var V=a.getDerivedStateFromProps;B=typeof V=="function"||typeof s.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,B||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(x||D!==f)&&gm(t,s,n,f),Rl=!1;var U=t.memoizedState;s.state=U,qs(t,n,s,r),Bs(),D=t.memoizedState,x||U!==D||Rl?(typeof V=="function"&&(Gc(t,a,V,n),D=t.memoizedState),(N=Rl||pm(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,xc(e,t),f=t.memoizedProps,B=Sr(a,f),s.props=B,V=t.pendingProps,U=s.context,D=a.contextType,N=Yr,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!==V||U!==N)&&gm(t,s,n,N),Rl=!1,U=t.memoizedState,s.state=U,qs(t,n,s,r),Bs();var L=t.memoizedState;f!==V||U!==L||Rl||e!==null&&e.dependencies!==null&&Ri(e.dependencies)?(typeof x=="function"&&(Gc(t,a,x,n),L=t.memoizedState),(B=Rl||pm(t,a,B,n,U,L,N)||e!==null&&e.dependencies!==null&&Ri(e.dependencies))?(D||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,L,N),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,L,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=L),s.props=n,s.state=L,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,Wi(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=xr(t,e.child,null,r),t.child=xr(t,null,a,r)):Kt(e,t,a,r),t.memoizedState=s.state,e=t.child):e=al(e,t,r),e}function Rm(e,t,a,n){return mr(),t.flags|=256,Kt(e,t,a,n),t.child}var Kc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $c(e){return{baseLanes:e,cachePool:bf()}}function Jc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Da),e}function km(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=qh(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=df(e),a.return=t,t.child=a,Qt=t,it=null)):e=null,e===null)throw zl(t);return Ru(e)?t.lanes=32:t.lanes=536870912,null}var x=n.children;return n=n.fallback,r?(Ol(),r=t.mode,x=Ii({mode:"hidden",children:x},r),n=fr(n,r,a,null),x.return=t,n.return=t,x.sibling=n,t.child=x,n=t.child,n.memoizedState=$c(a),n.childLanes=Jc(e,f,a),t.memoizedState=Kc,Qs(null,n)):(Dl(t),Wc(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=Ic(e,t,a)):t.memoizedState!==null?(Ol(),t.child=e.child,t.flags|=128,t=null):(Ol(),x=n.fallback,r=t.mode,n=Ii({mode:"visible",children:n.children},r),x=fr(x,r,a,null),x.flags|=2,n.return=t,x.return=t,n.sibling=x,t.child=n,xr(t,e.child,null,a),n=t.child,n.memoizedState=$c(a),n.childLanes=Jc(e,f,a),t.memoizedState=Kc,t=Qs(null,n));else if(Dl(t),Ru(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=Ic(e,t,a)}else if(At||Qr(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,dr(e,n),va(f,e,n),Qc;_u(x)||so(),t=Ic(e,t,a)}else _u(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&&hf(t,e),t=Wc(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=fr(x,r,a,null),x.flags|=2),x.return=t,n.return=t,n.sibling=x,t.child=n,Qs(null,n),n=t.child,x=e.child.memoizedState,x===null?x=$c(a):(r=x.cachePool,r!==null?(N=Nt._currentValue,r=r.parent!==N?{parent:N,pool:N}:r):r=bf(),x={baseLanes:x.baseLanes|a,cachePool:r}),n.memoizedState=x,n.childLanes=Jc(e,f,a),t.memoizedState=Kc,Qs(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 Wc(e,t){return t=Ii({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ii(e,t){return e=_a(22,e,null,t),e.lanes=0,e}function Ic(e,t,a){return xr(t,e.child,null,a),e=Wc(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),fc(e.return,t,a)}function Fc(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 Dm(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,G(bt,f),Kt(e,t,n,a),n=Ye?ks: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&&Bi(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),Fc(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&&Bi(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}Fc(t,!0,a,null,s,n);break;case"together":Fc(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(Qr(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 Pc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ri(e)))}function j2(e,t,a){switch(t.tag){case 3:Se(t,t.stateNode.containerInfo),_l(t,Nt,e.memoizedState.cache),mr();break;case 27:case 5:ea(t);break;case 4:Se(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,Nc(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?km(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||(Qr(e,t,a,!1),n=(a&t.childLanes)!==0),r){if(n)return Dm(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),G(bt,bt.current),n)break;return null;case 22:return t.lanes=0,Am(e,t,a,t.pendingProps);case 24:_l(t,Nt,e.memoizedState.cache)}return al(e,t,a)}function Om(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)At=!0;else{if(!Pc(e,a)&&(t.flags&128)===0)return At=!1,j2(e,t,a);At=(e.flags&131072)!==0}else At=!1,Ye&&(t.flags&1048576)!==0&&mf(t,ks,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=vr(t.elementType),t.type=e,typeof e=="function")lc(e)?(n=Sr(e,n),t.tag=1,t=_m(null,t,e,n,a)):(t.tag=0,t=Zc(null,t,e,n,a));else{if(e!=null){var r=e.$$typeof;if(r===ee){t.tag=11,t=jm(null,t,e,n,a);break e}else if(r===Z){t.tag=14,t=Nm(null,t,e,n,a);break e}}throw t=ne(e)||e,Error(c(306,t,""))}}return t;case 0:return Zc(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,r=Sr(n,t.pendingProps),_m(e,t,n,r,a);case 3:e:{if(Se(t,t.stateNode.containerInfo),e===null)throw Error(c(387));n=t.pendingProps;var s=t.memoizedState;r=s.element,xc(e,t),qs(t,n,null,a);var f=t.memoizedState;if(n=f.cache,_l(t,Nt,n),n!==s.cache&&mc(t,[Nt],a,!0),Bs(),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=Rm(e,t,n,a);break e}else if(n!==r){r=Ia(Error(c(424)),t),Ms(r),t=Rm(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=Af(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(mr(),n===r){t=al(e,t,a);break e}Kt(e,t,n,a)}t=t.child}return t;case 26:return Wi(e,t),e===null?(a=Zh(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ye||(a=t.type,e=t.pendingProps,n=ho(le.current).createElement(a),n[ct]=t,n[jt]=e,$t(n,a,e),Fe(n),t.stateNode=n):t.memoizedState=Zh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ea(t),e===null&&Ye&&(n=t.stateNode=Vh(t.type,t.pendingProps,le.current),Qt=t,en=!0,r=it,Vl(t.type)?(ku=r,it=an(n.firstChild)):it=r),Kt(e,t,t.pendingProps.children,a),Wi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ye&&((r=n=it)&&(n=P2(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,Cu(r,s)?n=null:f!==null&&Cu(r,f)&&(t.flags|=32),t.memoizedState!==null&&(r=Ac(e,t,h2,null,null,a),si._currentValue=r),Wi(e,t),Kt(e,t,n,a),t.child;case 6:return e===null&&Ye&&((e=a=it)&&(a=ev(a,t.pendingProps,en),a!==null?(t.stateNode=a,Qt=t,it=null,e=!0):e=!1),e||zl(t)),null;case 13:return km(e,t,a);case 4:return Se(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=xr(t,null,n,a):Kt(e,t,n,a),t.child;case 11:return jm(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,pr(t),r=Zt(r),n=n(r),t.flags|=1,Kt(e,t,n,a),t.child;case 14:return Nm(e,t,t.type,t.pendingProps,a);case 15:return Em(e,t,t.type,t.pendingProps,a);case 19:return Dm(e,t,a);case 31:return w2(e,t,a);case 22:return Am(e,t,a,t.pendingProps);case 24:return pr(t),n=Zt(Nt),e===null?(r=gc(),r===null&&(r=nt,s=hc(),r.pooledCache=s,s.refCount++,s!==null&&(r.pooledCacheLanes|=a),r=s),t.memoizedState={parent:n,cache:r},yc(t),_l(t,Nt,r)):((e.lanes&a)!==0&&(xc(e,t),qs(t,null,null,a),Bs()),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&&mc(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 eu(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(oh())e.flags|=8192;else throw yr=Oi,vc}else e.flags&=-16777217}function Um(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ih(t))if(oh())e.flags|=8192;else throw yr=Oi,vc}function Fi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Dt():536870912,e.lanes|=t,ns|=t)}function Zs(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 N2(e,t,a){var n=t.pendingProps;switch(oc(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)&&(Xr(t)?nl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,uc())),ot(t),null;case 26:var r=t.type,s=t.memoizedState;return e===null?(nl(t),s!==null?(ot(t),Um(t,s)):(ot(t),eu(t,r,null,n,a))):s?s!==e.memoizedState?(nl(t),ot(t),Um(t,s)):(ot(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&nl(t),ot(t),eu(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,Xr(t)?pf(t):(e=Vh(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,Xr(t))pf(t);else{var f=ho(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),eu(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,Xr(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||kh(e.nodeValue,a)),e||zl(t,!0)}else e=ho(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=Xr(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 mr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ot(t),e=!1}else a=uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(ka(t),t):(ka(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=Xr(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 mr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ot(t),r=!1}else r=uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(ka(t),t):(ka(t),null)}return ka(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),Fi(t,t.updateQueue),ot(t),null);case 4:return ve(),e===null&&wu(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)Zs(n,!1);else{if(ht!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Bi(e),s!==null){for(t.flags|=128,Zs(n,!1),e=s.updateQueue,t.updateQueue=e,Fi(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)uf(a,e),a=a.sibling;return G(bt,bt.current&1|2),Ye&&In(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Xt()>no&&(t.flags|=128,r=!0,Zs(n,!1),t.lanes=4194304)}else{if(!r)if(e=Bi(s),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Fi(t,e),Zs(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!Ye)return ot(t),null}else 2*Xt()-n.renderingStartTime>no&&a!==536870912&&(t.flags|=128,r=!0,Zs(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,G(bt,r?a&1|2:a&1),Ye&&In(t,n.treeForkCount),e):(ot(t),null);case 22:case 23:return ka(t),jc(),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&&Fi(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(gr),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 E2(e,t){switch(oc(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(ka(t),t.alternate===null)throw Error(c(340));mr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ka(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));mr()}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 ka(t),jc(),e!==null&&q(gr),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 Lm(e,t){switch(oc(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&&ka(t);break;case 13:ka(t);break;case 19:q(bt);break;case 10:Pn(t.type);break;case 22:case 23:ka(t),jc(),e!==null&&q(gr);break;case 24:Pn(Nt)}}function Ks(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 Hm(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Tf(t,a)}catch(n){Ie(e,e.return,n)}}}function Bm(e,t,a){a.props=Sr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Ie(e,t,n)}}function $s(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 kn(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 qm(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 tu(e,t,a){try{var n=e.stateNode;K2(n,e.type,a,t),n[jt]=t}catch(r){Ie(e,e.return,r)}}function Ym(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Vl(e.type)||e.tag===4}function au(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ym(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 nu(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(nu(e,t,a),e=e.sibling;e!==null;)nu(e,t,a),e=e.sibling}function Pi(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(Pi(e,t,a),e=e.sibling;e!==null;)Pi(e,t,a),e=e.sibling}function Gm(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,lu=!1,Vm=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function A2(e,t){if(e=e.containerInfo,Eu=So,e=ef(e),Io(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,V=e,U=null;t:for(;;){for(var L;V!==a||r!==0&&V.nodeType!==3||(x=f+r),V!==s||n!==0&&V.nodeType!==3||(N=f+n),V.nodeType===3&&(f+=V.nodeValue.length),(L=V.firstChild)!==null;)U=V,V=L;for(;;){if(V===e)break t;if(U===a&&++D===r&&(x=f),U===s&&++B===n&&(N=f),(L=V.nextSibling)!==null)break;V=U,U=V.parentNode}V=L}a=x===-1||N===-1?null:{start:x,end:N}}else a=null}a=a||{start:0,end:0}}else a=null;for(Au={focusedElem:e,selectionRange:a},So=!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=Sr(a.type,r);e=n.getSnapshotBeforeUpdate(oe,s),n.__reactInternalSnapshotBeforeUpdate=e}catch(ge){Ie(a,a.return,ge)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)zu(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":zu(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 Xm(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:sl(e,a),n&4&&Ks(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=Sr(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Ie(a,a.return,f)}}n&64&&Hm(a),n&512&&$s(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{Tf(e,t)}catch(f){Ie(a,a.return,f)}}break;case 27:t===null&&n&4&&Gm(a);case 26:case 5:sl(e,a),t===null&&n&4&&qm(a),n&512&&$s(a,a.return);break;case 12:sl(e,a);break;case 31:sl(e,a),n&4&&Km(e,a);break;case 13:sl(e,a),n&4&&$m(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=O2.bind(null,a),tv(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 Qm(e){var t=e.alternate;t!==null&&(e.alternate=null,Qm(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,ma=!1;function rl(e,t,a){for(a=a.child;a!==null;)Zm(e,t,a),a=a.sibling}function Zm(e,t,a){if(Yt&&typeof Yt.onCommitFiberUnmount=="function")try{Yt.onCommitFiberUnmount(Ga,a)}catch{}switch(a.tag){case 26:Ct||kn(a,t),rl(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ct||kn(a,t);var n=ut,r=ma;Vl(a.type)&&(ut=a.stateNode,ma=!1),rl(e,t,a),ni(a.stateNode),ut=n,ma=r;break;case 5:Ct||kn(a,t);case 6:if(n=ut,r=ma,ut=null,rl(e,t,a),ut=n,ma=r,ut!==null)if(ma)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&&(ma?(e=ut,Hh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),ds(e)):Hh(ut,a.stateNode));break;case 4:n=ut,r=ma,ut=a.stateNode.containerInfo,ma=!0,rl(e,t,a),ut=n,ma=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||(kn(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&Bm(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 Km(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ds(e)}catch(a){Ie(t,t.return,a)}}}function $m(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ds(e)}catch(a){Ie(t,t.return,a)}}function C2(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Vm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Vm),t;default:throw Error(c(435,e.tag))}}function eo(e,t){var a=C2(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var r=U2.bind(null,e,n);n.then(r,r)}})}function ha(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,ma=!1;break e}break;case 5:ut=x.stateNode,ma=!1;break e;case 3:case 4:ut=x.stateNode.containerInfo,ma=!0;break e}x=x.return}if(ut===null)throw Error(c(160));Zm(s,f,r),ut=null,ma=!1,s=r.alternate,s!==null&&(s.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Jm(t,e),t=t.sibling}var pn=null;function Jm(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ha(t,e),pa(e),n&4&&(Ul(3,e,e.return),Ks(3,e),Ul(5,e,e.return));break;case 1:ha(t,e),pa(e),n&512&&(Ct||a===null||kn(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(ha(t,e),pa(e),n&512&&(Ct||a===null||kn(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=Jh("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=Jh("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 Wh(r,e.type,e.stateNode);else e.stateNode=$h(r,n,e.memoizedProps);else s!==n?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,n===null?Wh(r,e.type,e.stateNode):$h(r,n,e.memoizedProps)):n===null&&e.stateNode!==null&&tu(e,e.memoizedProps,a.memoizedProps)}break;case 27:ha(t,e),pa(e),n&512&&(Ct||a===null||kn(a,a.return)),a!==null&&n&4&&tu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ha(t,e),pa(e),n&512&&(Ct||a===null||kn(a,a.return)),e.flags&32){r=e.stateNode;try{ke(r,"")}catch(oe){Ie(e,e.return,oe)}}n&4&&e.stateNode!=null&&(r=e.memoizedProps,tu(e,r,a!==null?a.memoizedProps:r)),n&1024&&(lu=!0);break;case 6:if(ha(t,e),pa(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(vo=null,r=pn,pn=po(t.containerInfo),ha(t,e),pn=r,pa(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{ds(t.containerInfo)}catch(oe){Ie(e,e.return,oe)}lu&&(lu=!1,Wm(e));break;case 4:n=pn,pn=po(e.stateNode.containerInfo),ha(t,e),pa(e),pn=n;break;case 12:ha(t,e),pa(e);break;case 31:ha(t,e),pa(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,eo(e,n)));break;case 13:ha(t,e),pa(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ao=Xt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,eo(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,ha(t,e),Ct=B,ll=D,pa(e),n&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(a===null||N||ll||Ct||wr(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 V=N.memoizedProps.style,U=V!=null&&V.hasOwnProperty("display")?V.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 L=N.stateNode;r?Bh(L,!0):Bh(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,eo(e,a))));break;case 19:ha(t,e),pa(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,eo(e,n)));break;case 30:break;case 21:break;default:ha(t,e),pa(e)}}function pa(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(Ym(n)){a=n;break}n=n.return}if(a==null)throw Error(c(160));switch(a.tag){case 27:var r=a.stateNode,s=au(e);Pi(e,s,r);break;case 5:var f=a.stateNode;a.flags&32&&(ke(f,""),a.flags&=-33);var x=au(e);Pi(e,x,f);break;case 3:case 4:var N=a.stateNode.containerInfo,D=au(e);nu(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 Wm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Wm(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;)Xm(e,t.alternate,t),t=t.sibling}function wr(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),wr(t);break;case 1:kn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Bm(t,t.return,a),wr(t);break;case 27:ni(t.stateNode);case 26:case 5:kn(t,t.return),wr(t);break;case 22:t.memoizedState===null&&wr(t);break;case 30:wr(t);break;default:wr(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),Ks(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++)Cf(N[r],x)}catch(D){Ie(n,n.return,D)}}a&&f&64&&Hm(s),$s(s,s.return);break;case 27:Gm(s);case 26:case 5:il(r,s,a),a&&n===null&&f&4&&qm(s),$s(s,s.return);break;case 12:il(r,s,a);break;case 31:il(r,s,a),a&&f&4&&Km(r,s);break;case 13:il(r,s,a),a&&f&4&&$m(r,s);break;case 22:s.memoizedState===null&&il(r,s,a),$s(s,s.return);break;case 30:break;default:il(r,s,a)}t=t.sibling}}function ru(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&&Ds(a))}function su(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ds(e))}function gn(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Im(e,t,a,n),t=t.sibling}function Im(e,t,a,n){var r=t.flags;switch(t.tag){case 0:case 11:case 15:gn(e,t,a,n),r&2048&&Ks(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&&Ds(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):Js(e,t):s._visibility&2?gn(e,t,a,n):(s._visibility|=2,es(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),r&2048&&ru(f,t);break;case 24:gn(e,t,a,n),r&2048&&su(t.alternate,t);break;default:gn(e,t,a,n)}}function es(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:es(s,f,x,N,r),Ks(8,f);break;case 23:break;case 22:var B=f.stateNode;f.memoizedState!==null?B._visibility&2?es(s,f,x,N,r):Js(s,f):(B._visibility|=2,es(s,f,x,N,r)),r&&D&2048&&ru(f.alternate,f);break;case 24:es(s,f,x,N,r),r&&D&2048&&su(f.alternate,f);break;default:es(s,f,x,N,r)}t=t.sibling}}function Js(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:Js(a,n),r&2048&&ru(n.alternate,n);break;case 24:Js(a,n),r&2048&&su(n.alternate,n);break;default:Js(a,n)}t=t.sibling}}var Ws=8192;function ts(e,t,a){if(e.subtreeFlags&Ws)for(e=e.child;e!==null;)Fm(e,t,a),e=e.sibling}function Fm(e,t,a){switch(e.tag){case 26:ts(e,t,a),e.flags&Ws&&e.memoizedState!==null&&mv(a,pn,e.memoizedState,e.memoizedProps);break;case 5:ts(e,t,a);break;case 3:case 4:var n=pn;pn=po(e.stateNode.containerInfo),ts(e,t,a),pn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Ws,Ws=16777216,ts(e,t,a),Ws=n):ts(e,t,a));break;default:ts(e,t,a)}}function Pm(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 Is(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,th(n,e)}Pm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)eh(e),e=e.sibling}function eh(e){switch(e.tag){case 0:case 11:case 15:Is(e),e.flags&2048&&Ul(9,e,e.return);break;case 3:Is(e);break;case 12:Is(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,to(e)):Is(e);break;default:Is(e)}}function to(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,th(n,e)}Pm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ul(8,t,t.return),to(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,to(t));break;default:to(t)}e=e.sibling}}function th(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:Ds(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(Qm(n),n===a){Gt=null;break e}if(r!==null){r.return=s,Gt=r;break e}Gt=s}}}var T2={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}},z2=typeof WeakMap=="function"?WeakMap:Map,$e=0,nt=null,Me=null,Le=0,We=0,Ma=null,Ll=!1,as=!1,iu=!1,ol=0,ht=0,Hl=0,jr=0,ou=0,Da=0,ns=0,Fs=null,ga=null,cu=!1,ao=0,ah=0,no=1/0,lo=null,Bl=null,Ht=0,ql=null,ls=null,cl=0,uu=0,du=null,nh=null,Ps=0,fu=null;function Oa(){return($e&2)!==0&&Le!==0?Le&-Le:k.T!==null?yu():Xn()}function lh(){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 va(e,t,a){(e===nt&&(We===2||We===9)||e.cancelPendingCommit!==null)&&(rs(e,0),Yl(e,Le,Da,!1)),lt(e,a),(($e&2)===0||e!==nt)&&(e===nt&&(($e&2)===0&&(jr|=a),ht===4&&Yl(e,Le,Da,!1)),Mn(e))}function rh(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?k2(e,t):hu(e,t,!0),s=n;do{if(r===0){as&&!n&&Yl(e,t,0,!1);break}else{if(a=e.current.alternate,s&&!_2(a)){r=hu(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=Fs;var N=x.current.memoizedState.isDehydrated;if(N&&(rs(x,f).flags|=256),f=hu(x,f,!1),f!==2){if(iu&&!N){x.errorRecoveryDisabledLanes|=s,jr|=s,r=4;break e}s=ga,ga=r,s!==null&&(ga===null?ga=s:ga.push.apply(ga,s))}r=f}if(s=!1,r!==2)continue}}if(r===1){rs(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:ga=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(r=ao+300-Xt(),10<r)){if(Yl(n,t,Da,!Ll),ye(n,0,!0)!==0)break e;cl=t,n.timeoutHandle=Uh(sh.bind(null,n,a,ga,lo,cu,t,Da,jr,ns,Ll,s,"Throttled",-0,0),r);break e}sh(n,a,ga,lo,cu,t,Da,jr,ns,Ll,s,null,-0,0)}}break}while(!0);Mn(e)}function sh(e,t,a,n,r,s,f,x,N,D,B,V,U,L){if(e.timeoutHandle=-1,V=t.subtreeFlags,V&8192||(V&16785408)===16785408){V={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ja},Fm(t,s,V);var oe=(s&62914560)===s?ao-Xt():(s&4194048)===s?ah-Xt():0;if(oe=hv(V,oe),oe!==null){cl=s,e.cancelPendingCommit=oe(hh.bind(null,e,t,s,a,n,r,f,x,N,B,V,null,U,L)),Yl(e,s,f,!D);return}}hh(e,t,s,a,n,r,f,x,N)}function _2(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&=~ou,t&=~jr,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var r=t;0<r;){var s=31-Mt(r),f=1<<s;n[s]=-1,r&=~f}a!==0&&Qa(e,a,t)}function ro(){return($e&6)===0?(ei(0),!1):!0}function mu(){if(Me!==null){if(We===0)var e=Me.return;else e=Me,Fn=hr=null,zc(e),Jr=null,Us=0,e=Me;for(;e!==null;)Lm(e.alternate,e),e=e.return;Me=null}}function rs(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,W2(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),cl=0,mu(),nt=e,Me=a=Wn(e.current,null),Le=t,We=0,Ma=null,Ll=!1,as=at(e,t),iu=!1,ns=Da=ou=jr=Hl=ht=0,ga=Fs=null,cu=!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-Mt(n),s=1<<r;t|=e[r],n&=~s}return ol=t,Ai(),a}function ih(e,t){Te=null,k.H=Xs,t===$r||t===Di?(t=jf(),We=3):t===vc?(t=jf(),We=4):We=t===Qc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ma=t,Me===null&&(ht=1,$i(e,Ia(t,e.current)))}function oh(){var e=Ra.current;return e===null?!0:(Le&4194048)===Le?tn===null:(Le&62914560)===Le||(Le&536870912)!==0?e===tn:!1}function ch(){var e=k.H;return k.H=Xs,e===null?Xs:e}function uh(){var e=k.A;return k.A=T2,e}function so(){ht=4,Ll||(Le&4194048)!==Le&&Ra.current!==null||(as=!0),(Hl&134217727)===0&&(jr&134217727)===0||nt===null||Yl(nt,Le,Da,!1)}function hu(e,t,a){var n=$e;$e|=2;var r=ch(),s=uh();(nt!==e||Le!==t)&&(lo=null,rs(e,t)),t=!1;var f=ht;e:do try{if(We!==0&&Me!==null){var x=Me,N=Ma;switch(We){case 8:mu(),f=6;break e;case 3:case 2:case 9:case 6:Ra.current===null&&(t=!0);var D=We;if(We=0,Ma=null,ss(e,x,N,D),a&&as){f=0;break e}break;default:D=We,We=0,Ma=null,ss(e,x,N,D)}}R2(),f=ht;break}catch(B){ih(e,B)}while(!0);return t&&e.shellSuspendCounter++,Fn=hr=null,$e=n,k.H=r,k.A=s,Me===null&&(nt=null,Le=0,Ai()),f}function R2(){for(;Me!==null;)dh(Me)}function k2(e,t){var a=$e;$e|=2;var n=ch(),r=uh();nt!==e||Le!==t?(lo=null,no=Xt()+500,rs(e,t)):as=at(e,t);e:do try{if(We!==0&&Me!==null){t=Me;var s=Ma;t:switch(We){case 1:We=0,Ma=null,ss(e,t,s,1);break;case 2:case 9:if(Sf(s)){We=0,Ma=null,fh(t);break}t=function(){We!==2&&We!==9||nt!==e||(We=7),Mn(e)},s.then(t,t);break e;case 3:We=7;break e;case 4:We=5;break e;case 7:Sf(s)?(We=0,Ma=null,fh(t)):(We=0,Ma=null,ss(e,t,s,7));break;case 5:var f=null;switch(Me.tag){case 26:f=Me.memoizedState;case 5:case 27:var x=Me;if(f?Ih(f):x.stateNode.complete){We=0,Ma=null;var N=x.sibling;if(N!==null)Me=N;else{var D=x.return;D!==null?(Me=D,io(D)):Me=null}break t}}We=0,Ma=null,ss(e,t,s,5);break;case 6:We=0,Ma=null,ss(e,t,s,6);break;case 8:mu(),ht=6;break e;default:throw Error(c(462))}}M2();break}catch(B){ih(e,B)}while(!0);return Fn=hr=null,k.H=n,k.A=r,$e=a,Me!==null?0:(nt=null,Le=0,Ai(),ht)}function M2(){for(;Me!==null&&!Vt();)dh(Me)}function dh(e){var t=Om(e.alternate,e,ol);e.memoizedProps=e.pendingProps,t===null?io(e):Me=t}function fh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=zm(a,t,t.pendingProps,t.type,void 0,Le);break;case 11:t=zm(a,t,t.pendingProps,t.type.render,t.ref,Le);break;case 5:zc(t);default:Lm(a,t),t=Me=uf(t,ol),t=Om(a,t,ol)}e.memoizedProps=e.pendingProps,t===null?io(e):Me=t}function ss(e,t,a,n){Fn=hr=null,zc(t),Jr=null,Us=0;var r=t.return;try{if(S2(e,r,t,a,Le)){ht=1,$i(e,Ia(a,e.current)),Me=null;return}}catch(s){if(r!==null)throw Me=r,s;ht=1,$i(e,Ia(a,e.current)),Me=null;return}t.flags&32768?(Ye||n===1?e=!0:as||(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))),mh(t,e)):io(t)}function io(e){var t=e;do{if((t.flags&32768)!==0){mh(t,Ll);return}e=t.return;var a=N2(t.alternate,t,ol);if(a!==null){Me=a;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);ht===0&&(ht=5)}function mh(e,t){do{var a=E2(e.alternate,e);if(a!==null){a.flags&=32767,Me=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Me=e;return}Me=e=a}while(e!==null);ht=6,Me=null}function hh(e,t,a,n,r,s,f,x,N){e.cancelPendingCommit=null;do oo();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|=ac,rt(e,a,s,f,x,N),e===nt&&(Me=nt=null,Le=0),ls=t,ql=e,cl=a,uu=s,du=r,nh=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,L2(Gn,function(){return xh(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=k.T,k.T=null,r=X.p,X.p=2,f=$e,$e|=4;try{A2(e,t,a)}finally{$e=f,X.p=r,k.T=n}}Ht=1,ph(),gh(),vh()}}function ph(){if(Ht===1){Ht=0;var e=ql,t=ls,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=k.T,k.T=null;var n=X.p;X.p=2;var r=$e;$e|=4;try{Jm(t,e);var s=Au,f=ef(e.containerInfo),x=s.focusedElem,N=s.selectionRange;if(f!==x&&x&&x.ownerDocument&&Pd(x.ownerDocument.documentElement,x)){if(N!==null&&Io(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 V=x.ownerDocument||document,U=V&&V.defaultView||window;if(U.getSelection){var L=U.getSelection(),oe=x.textContent.length,ge=Math.min(N.start,oe),tt=N.end===void 0?ge:Math.min(N.end,oe);!L.extend&&ge>tt&&(f=tt,tt=ge,ge=f);var _=Fd(x,ge),T=Fd(x,tt);if(_&&T&&(L.rangeCount!==1||L.anchorNode!==_.node||L.anchorOffset!==_.offset||L.focusNode!==T.node||L.focusOffset!==T.offset)){var M=V.createRange();M.setStart(_.node,_.offset),L.removeAllRanges(),ge>tt?(L.addRange(M),L.extend(T.node,T.offset)):(M.setEnd(T.node,T.offset),L.addRange(M))}}}}for(V=[],L=x;L=L.parentNode;)L.nodeType===1&&V.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<V.length;x++){var Y=V[x];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}So=!!Eu,Au=Eu=null}finally{$e=r,X.p=n,k.T=a}}e.current=t,Ht=2}}function gh(){if(Ht===2){Ht=0;var e=ql,t=ls,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=k.T,k.T=null;var n=X.p;X.p=2;var r=$e;$e|=4;try{Xm(e,t.alternate,t)}finally{$e=r,X.p=n,k.T=a}}Ht=3}}function vh(){if(Ht===4||Ht===3){Ht=0,Ba();var e=ql,t=ls,a=cl,n=nh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ht=5:(Ht=0,ls=ql=null,yh(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=k.T,r=X.p,X.p=2,k.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{k.T=t,X.p=r}}(cl&3)!==0&&oo(),Mn(e),r=e.pendingLanes,(a&261930)!==0&&(r&42)!==0?e===fu?Ps++:(Ps=0,fu=e):Ps=0,ei(0)}}function yh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ds(t)))}function oo(){return ph(),gh(),vh(),xh()}function xh(){if(Ht!==5)return!1;var e=ql,t=uu;uu=0;var a=It(cl),n=k.T,r=X.p;try{X.p=32>a?32:a,k.T=null,a=du,du=null;var s=ql,f=cl;if(Ht=0,ls=ql=null,cl=0,($e&6)!==0)throw Error(c(331));var x=$e;if($e|=4,eh(s.current),Im(s,s.current,f,a),$e=x,ei(0,!1),Yt&&typeof Yt.onPostCommitFiberRoot=="function")try{Yt.onPostCommitFiberRoot(Ga,s)}catch{}return!0}finally{X.p=r,k.T=n,yh(e,t)}}function bh(e,t,a){t=Ia(a,t),t=Xc(e.stateNode,t,2),e=Ml(e,t,2),e!==null&&(lt(e,2),Mn(e))}function Ie(e,t,a){if(e.tag===3)bh(e,e,a);else for(;t!==null;){if(t.tag===3){bh(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=Sm(2),n=Ml(t,a,2),n!==null&&(wm(a,n,t,e),lt(n,2),Mn(n));break}}t=t.return}}function pu(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new z2;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)||(iu=!0,r.add(a),e=D2.bind(null,e,t,a),t.then(e,e))}function D2(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()-ao?($e&2)===0&&rs(e,0):ou|=a,ns===Le&&(ns=0)),Mn(e)}function Sh(e,t){t===0&&(t=Dt()),e=dr(e,t),e!==null&&(lt(e,t),Mn(e))}function O2(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Sh(e,a)}function U2(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),Sh(e,a)}function L2(e,t){return Sn(e,t)}var co=null,is=null,gu=!1,uo=!1,vu=!1,Gl=0;function Mn(e){e!==is&&e.next===null&&(is===null?co=is=e:is=is.next=e),uo=!0,gu||(gu=!0,B2())}function ei(e,t){if(!vu&&uo){vu=!0;do for(var a=!1,n=co;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-Mt(42|e)+1)-1,s&=r&~(f&~x),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,Eh(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,Eh(n,s));n=n.next}while(a);vu=!1}}function H2(){wh()}function wh(){uo=gu=!1;var e=0;Gl!==0&&J2()&&(e=Gl);for(var t=Xt(),a=null,n=co;n!==null;){var r=n.next,s=jh(n,t);s===0?(n.next=null,a===null?co=r:a.next=r,r===null&&(is=a)):(a=n,(e!==0||(s&3)!==0)&&(uo=!0)),n=r}Ht!==0&&Ht!==5||ei(e),Gl!==0&&(Gl=0)}function jh(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,r=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var f=31-Mt(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&&ar(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&&ar(n),It(a)){case 2:case 8:a=_r;break;case 32:a=Gn;break;case 268435456:a=qa;break;default:a=Gn}return n=Nh.bind(null,e),a=Sn(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&ar(n),e.callbackPriority=2,e.callbackNode=null,2}function Nh(e,t){if(Ht!==0&&Ht!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(oo()&&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:(rh(e,n,t),jh(e,Xt()),e.callbackNode!=null&&e.callbackNode===a?Nh.bind(null,e):null)}function Eh(e,t){if(oo())return null;rh(e,t,!0)}function B2(){I2(function(){($e&6)!==0?Sn(Yn,H2):wh()})}function yu(){if(Gl===0){var e=Zr;e===0&&(e=Vn,Vn<<=1,(Vn&261888)===0&&(Vn=256)),Gl=e}return Gl}function Ah(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:wl(""+e)}function Ch(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 q2(e,t,a,n,r){if(t==="submit"&&a&&a.stateNode===r){var s=Ah((r[jt]||null).action),f=n.submitter;f&&(t=(t=f[jt]||null)?Ah(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?Ch(r,f):new FormData(r);Hc(a,{pending:!0,data:N,method:r.method,action:s},null,N)}}else typeof s=="function"&&(x.preventDefault(),N=f?Ch(r,f):new FormData(r),Hc(a,{pending:!0,data:N,method:r.method,action:s},s,N))},currentTarget:r}]})}}for(var xu=0;xu<tc.length;xu++){var bu=tc[xu],Y2=bu.toLowerCase(),G2=bu[0].toUpperCase()+bu.slice(1);hn(Y2,"on"+G2)}hn(nf,"onAnimationEnd"),hn(lf,"onAnimationIteration"),hn(rf,"onAnimationStart"),hn("dblclick","onDoubleClick"),hn("focusin","onFocus"),hn("focusout","onBlur"),hn(l2,"onTransitionRun"),hn(r2,"onTransitionStart"),hn(s2,"onTransitionCancel"),hn(sf,"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 ti="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(" "),V2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ti));function Th(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){Ei(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){Ei(B)}r.currentTarget=null,s=N}}}}function De(e,t){var a=t[rr];a===void 0&&(a=t[rr]=new Set);var n=e+"__bubble";a.has(n)||(zh(t,e,2,!1),a.add(n))}function Su(e,t,a){var n=0;t&&(n|=4),zh(a,e,n,t)}var fo="_reactListening"+Math.random().toString(36).slice(2);function wu(e){if(!e[fo]){e[fo]=!0,sr.forEach(function(a){a!=="selectionchange"&&(V2.has(a)||Su(a,!1,e),Su(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fo]||(t[fo]=!0,Su("selectionchange",!1,t))}}function zh(e,t,a,n){switch(l0(t)){case 2:var r=vv;break;case 8:r=yv;break;default:r=Lu}a=r.bind(null,t,a,e),r=void 0,!da||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 ju(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}Es(function(){var D=s,B=or(a),V=[];e:{var U=of.get(e);if(U!==void 0){var L=El,oe=e;switch(e){case"keypress":if(jl(a)===0)break e;case"keydown":case"keyup":L=Ug;break;case"focusin":oe="focus",L=Zo;break;case"focusout":oe="blur",L=Zo;break;case"beforeblur":case"afterblur":L=Zo;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":L=zn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=Ng;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=Bg;break;case nf:case lf:case rf:L=Cg;break;case sf:L=Yg;break;case"scroll":case"scrollend":L=Aa;break;case"wheel":L=Vg;break;case"copy":case"cut":case"paste":L=zg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=Hd;break;case"toggle":case"beforetoggle":L=Qg}var ge=(t&4)!==0,tt=!ge&&(e==="scroll"||e==="scrollend"),_=ge?U!==null?U+"Capture":null:U;ge=[];for(var T=D,M;T!==null;){var Y=T;if(M=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||M===null||_===null||(Y=Na(T,_),Y!=null&&ge.push(ai(T,Y,M))),tt)break;T=T.return}0<ge.length&&(U=new L(U,oe,null,a,B),V.push({event:U,listeners:ge}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",U&&a!==Kn&&(oe=a.relatedTarget||a.fromElement)&&(En(oe)||oe[Za]))break e;if((L||U)&&(U=B.window===B?B:(U=B.ownerDocument)?U.defaultView||U.parentWindow:window,L?(oe=a.relatedTarget||a.toElement,L=D,oe=oe?En(oe):null,oe!==null&&(tt=m(oe),ge=oe.tag,oe!==tt||ge!==5&&ge!==27&&ge!==6)&&(oe=null)):(L=null,oe=D),L!==oe)){if(ge=zn,Y="onMouseLeave",_="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(ge=Hd,Y="onPointerLeave",_="onPointerEnter",T="pointer"),tt=L==null?U:An(L),M=oe==null?U:An(oe),U=new ge(Y,T+"leave",L,a,B),U.target=tt,U.relatedTarget=M,Y=null,En(B)===D&&(ge=new ge(_,T+"enter",oe,a,B),ge.target=M,ge.relatedTarget=tt,Y=ge),tt=Y,L&&oe)t:{for(ge=X2,_=L,T=oe,M=0,Y=_;Y;Y=ge(Y))M++;Y=0;for(var me=T;me;me=ge(me))Y++;for(;0<M-Y;)_=ge(_),M--;for(;0<Y-M;)T=ge(T),Y--;for(;M--;){if(_===T||T!==null&&_===T.alternate){ge=_;break t}_=ge(_),T=ge(T)}ge=null}else ge=null;L!==null&&_h(V,U,L,ge,!1),oe!==null&&tt!==null&&_h(V,tt,oe,ge,!0)}}e:{if(U=D?An(D):window,L=U.nodeName&&U.nodeName.toLowerCase(),L==="select"||L==="input"&&U.type==="file")var Qe=Zd;else if(Xd(U))if(Kd)Qe=t2;else{Qe=Pg;var ce=Fg}else L=U.nodeName,!L||L.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?D&&$a(D.elementType)&&(Qe=Zd):Qe=e2;if(Qe&&(Qe=Qe(e,D))){Qd(V,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":(Xd(ce)||ce.contentEditable==="true")&&(Hr=ce,Fo=D,Rs=null);break;case"focusout":Rs=Fo=Hr=null;break;case"mousedown":Po=!0;break;case"contextmenu":case"mouseup":case"dragend":Po=!1,tf(V,a,B);break;case"selectionchange":if(n2)break;case"keydown":case"keyup":tf(V,a,B)}var ze;if($o)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 Lr?Gd(e,a)&&(He="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(He="onCompositionStart");He&&(Bd&&a.locale!=="ko"&&(Lr||He!=="onCompositionStart"?He==="onCompositionEnd"&&Lr&&(ze=Ur()):(la=B,Or="value"in la?la.value:la.textContent,Lr=!0)),ce=mo(D,He),0<ce.length&&(He=new Ld(He,e,null,a,B),V.push({event:He,listeners:ce}),ze?He.data=ze:(ze=Vd(a),ze!==null&&(He.data=ze)))),(ze=Kg?$g(e,a):Jg(e,a))&&(He=mo(D,"onBeforeInput"),0<He.length&&(ce=new Ld("onBeforeInput","beforeinput",null,a,B),V.push({event:ce,listeners:He}),ce.data=ze)),q2(V,e,D,a,B)}Th(V,t)})}function ai(e,t,a){return{instance:e,listener:t,currentTarget:a}}function mo(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(ai(e,r,s)),r=Na(e,t),r!=null&&n.push(ai(e,r,s))),e.tag===3)return n;e=e.return}return[]}function X2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function _h(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(ai(a,D,N))):r||(D=Na(a,s),D!=null&&f.push(ai(a,D,N)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}var Q2=/\r\n?/g,Z2=/\u0000|\uFFFD/g;function Rh(e){return(typeof e=="string"?e:""+e).replace(Q2,`
49
+ `).replace(Z2,"")}function kh(e,t){return t=Rh(t),Rh(e)===t}function et(e,t,a,n,r,s){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||ke(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&ke(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&&De("scroll",e);break;case"onScrollEnd":n!=null&&De("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":De("beforetoggle",e),De("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 Nu(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"?ke(e,n):(typeof n=="number"||typeof n=="bigint")&&ke(e,""+n);break;case"onScroll":n!=null&&De("scroll",e);break;case"onScrollEnd":n!=null&&De("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(!ca.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":De("error",e),De("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":De("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":De("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":De("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)}Ce(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":De("beforetoggle",e),De("toggle",e),De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(n=0;n<ti.length;n++)De(ti[n],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("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&&Nu(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 K2(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(L in a){var V=a[L];if(a.hasOwnProperty(L)&&V!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":N=V;default:n.hasOwnProperty(L)||et(e,t,L,null,n,V)}}for(var U in n){var L=n[U];if(V=a[U],n.hasOwnProperty(U)&&(L!=null||V!=null))switch(U){case"type":s=L;break;case"name":r=L;break;case"checked":D=L;break;case"defaultChecked":B=L;break;case"value":f=L;break;case"defaultValue":x=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(c(137,t));break;default:L!==V&&et(e,t,U,L,n,V)}}be(e,f,x,N,D,B,s,r);return;case"select":L=f=x=U=null;for(s in a)if(N=a[s],a.hasOwnProperty(s)&&N!=null)switch(s){case"value":break;case"multiple":L=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=L,U!=null?qe(e,!!a,U,!1):!!n!=!!a&&(t!=null?qe(e,!!a,t,!0):qe(e,!!a,a?[]:"",!1));return;case"textarea":L=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":L=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)}pe(e,U,L);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],L=a[N],n.hasOwnProperty(N)&&U!==L&&(U!=null||L!=null))switch(N){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:et(e,t,N,U,n,L)}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 ge in a)U=a[ge],a.hasOwnProperty(ge)&&U!=null&&!n.hasOwnProperty(ge)&&et(e,t,ge,null,n,U);for(D in n)if(U=n[D],L=a[D],n.hasOwnProperty(D)&&U!==L&&(U!=null||L!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(c(137,t));break;default:et(e,t,D,U,n,L)}return;default:if($a(t)){for(var tt in a)U=a[tt],a.hasOwnProperty(tt)&&U!==void 0&&!n.hasOwnProperty(tt)&&Nu(e,t,tt,void 0,n,U);for(B in n)U=n[B],L=a[B],!n.hasOwnProperty(B)||U===L||U===void 0&&L===void 0||Nu(e,t,B,U,n,L);return}}for(var _ in a)U=a[_],a.hasOwnProperty(_)&&U!=null&&!n.hasOwnProperty(_)&&et(e,t,_,null,n,U);for(V in n)U=n[V],L=a[V],!n.hasOwnProperty(V)||U===L||U==null&&L==null||et(e,t,V,U,n,L)}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 $2(){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,V=N.initiatorType;B&&Mh(V)&&(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 Eu=null,Au=null;function ho(e){return e.nodeType===9?e:e.ownerDocument}function Dh(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 Oh(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 Cu(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 Tu=null;function J2(){var e=window.event;return e&&e.type==="popstate"?e===Tu?!1:(Tu=e,!0):(Tu=null,!1)}var Uh=typeof setTimeout=="function"?setTimeout:void 0,W2=typeof clearTimeout=="function"?clearTimeout:void 0,Lh=typeof Promise=="function"?Promise:void 0,I2=typeof queueMicrotask=="function"?queueMicrotask:typeof Lh<"u"?function(e){return Lh.resolve(null).then(e).catch(F2)}:Uh;function F2(e){setTimeout(function(){throw e})}function Vl(e){return e==="head"}function Hh(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),ds(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")ni(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ni(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"&&ni(e.ownerDocument.body);a=r}while(a);ds(t)}function Bh(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 zu(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":zu(a),Ka(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function P2(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 ev(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 qh(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 _u(e){return e.data==="$?"||e.data==="$~"}function Ru(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function tv(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 ku=null;function Yh(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 Gh(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 Vh(e,t,a){switch(t=ho(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 ni(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ka(e)}var nn=new Map,Xh=new Set;function po(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ul=X.d;X.d={f:av,r:nv,D:lv,C:rv,L:sv,m:iv,X:cv,S:ov,M:uv};function av(){var e=ul.f(),t=ro();return e||t}function nv(e){var t=dn(e);t!==null&&t.tag===5&&t.type==="form"?im(t):ul.r(e)}var os=typeof document>"u"?null:document;function Qh(e,t,a){var n=os;if(n&&typeof t=="string"&&t){var r=he(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),Xh.has(r)||(Xh.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 lv(e){ul.D(e),Qh("dns-prefetch",e,null)}function rv(e,t){ul.C(e,t),Qh("preconnect",e,t)}function sv(e,t,a){ul.L(e,t,a);var n=os;if(n&&e&&t){var r='link[rel="preload"][as="'+he(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+he(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+he(a.imageSizes)+'"]')):r+='[href="'+he(e)+'"]';var s=r;switch(t){case"style":s=cs(e);break;case"script":s=us(e)}nn.has(s)||(e=h({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(li(s))||t==="script"&&n.querySelector(ri(s))||(t=n.createElement("link"),$t(t,"link",e),Fe(t),n.head.appendChild(t)))}}function iv(e,t){ul.m(e,t);var a=os;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+he(n)+'"][href="'+he(e)+'"]',s=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=us(e)}if(!nn.has(s)&&(e=h({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(ri(s)))return}n=a.createElement("link"),$t(n,"link",e),Fe(n),a.head.appendChild(n)}}}function ov(e,t,a){ul.S(e,t,a);var n=os;if(n&&e){var r=aa(n).hoistableStyles,s=cs(e);t=t||"default";var f=r.get(s);if(!f){var x={loading:0,preload:null};if(f=n.querySelector(li(s)))x.loading=5;else{e=h({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,go(f,t,n)}f={type:"stylesheet",instance:f,count:1,state:x},r.set(s,f)}}}function cv(e,t){ul.X(e,t);var a=os;if(a&&e){var n=aa(a).hoistableScripts,r=us(e),s=n.get(r);s||(s=a.querySelector(ri(r)),s||(e=h({src:e,async:!0},t),(t=nn.get(r))&&Du(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 uv(e,t){ul.M(e,t);var a=os;if(a&&e){var n=aa(a).hoistableScripts,r=us(e),s=n.get(r);s||(s=a.querySelector(ri(r)),s||(e=h({src:e,async:!0,type:"module"},t),(t=nn.get(r))&&Du(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 Zh(e,t,a,n){var r=(r=le.current)?po(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=cs(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=cs(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(li(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||dv(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=us(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 cs(e){return'href="'+he(e)+'"'}function li(e){return'link[rel="stylesheet"]['+e+"]"}function Kh(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function dv(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 us(e){return'[src="'+he(e)+'"]'}function ri(e){return"script[async]"+e}function $h(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+he(a.href)+'"]');if(n)return t.instance=n,Fe(n),n;var r=h({},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),go(n,a.precedence,e),t.instance=n;case"stylesheet":r=cs(a.href);var s=e.querySelector(li(r));if(s)return t.state.loading|=4,t.instance=s,Fe(s),s;n=Kh(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,go(s,a.precedence,e),t.instance=s;case"script":return s=us(a.src),(r=e.querySelector(ri(s)))?(t.instance=r,Fe(r),r):(n=a,(r=nn.get(s))&&(n=h({},a),Du(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,go(n,a.precedence,e));return t.instance}function go(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 Du(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var vo=null;function Jh(e,t,a){if(vo===null){var n=new Map,r=vo=new Map;r.set(a,n)}else r=vo,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 Wh(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function fv(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 Ih(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function mv(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=cs(n.href),s=t.querySelector(li(r));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=yo.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=s,Fe(s);return}s=t.ownerDocument||t,n=Kh(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=yo.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Ou=0;function hv(e,t){return e.stylesheets&&e.count===0&&bo(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&bo(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Ou===0&&(Ou=62500*$2());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&bo(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Ou?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(r)}}:null}function yo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var xo=null;function bo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,xo=new Map,t.forEach(pv,e),xo=null,yo.call(e))}function pv(e,t){if(!(t.state.loading&4)){var a=xo.get(e);if(a)var n=a.get(null);else{a=new Map,xo.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=yo.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 si={$$typeof:Q,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function gv(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 Fh(e,t,a,n,r,s,f,x,N,D,B,V){return e=new gv(e,t,a,f,N,D,B,V,x),t=1,s===!0&&(t|=24),s=_a(3,null,null,t),e.current=s,s.stateNode=e,t=hc(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:n,isDehydrated:a,cache:t},yc(s),e}function Ph(e){return e?(e=Yr,e):Yr}function e0(e,t,a,n,r,s){r=Ph(r),n.context===null?n.context=r:n.pendingContext=r,n=kl(t),n.payload={element:a},s=s===void 0?null:s,s!==null&&(n.callback=s),a=Ml(e,n,t),a!==null&&(va(a,e,t),Hs(a,e,t))}function t0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Uu(e,t){t0(e,t),(e=e.alternate)&&t0(e,t)}function a0(e){if(e.tag===13||e.tag===31){var t=dr(e,67108864);t!==null&&va(t,e,67108864),Uu(e,67108864)}}function n0(e){if(e.tag===13||e.tag===31){var t=Oa();t=Sa(t);var a=dr(e,t);a!==null&&va(a,e,t),Uu(e,t)}}var So=!0;function vv(e,t,a,n){var r=k.T;k.T=null;var s=X.p;try{X.p=2,Lu(e,t,a,n)}finally{X.p=s,k.T=r}}function yv(e,t,a,n){var r=k.T;k.T=null;var s=X.p;try{X.p=8,Lu(e,t,a,n)}finally{X.p=s,k.T=r}}function Lu(e,t,a,n){if(So){var r=Hu(n);if(r===null)ju(e,t,n,wo,a),r0(e,n);else if(bv(r,e,t,a,n))n.stopPropagation();else if(r0(e,n),t&4&&-1<xv.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-Mt(f);x.entanglements[1]|=N,f&=~N}Mn(s),($e&6)===0&&(no=Xt()+500,ei(0))}}break;case 31:case 13:x=dr(s,2),x!==null&&va(x,s,2),ro(),Uu(s,2)}if(s=Hu(n),s===null&&ju(e,t,n,wo,a),s===r)break;r=s}r!==null&&n.stopPropagation()}else ju(e,t,n,null,a)}}function Hu(e){return e=or(e),Bu(e)}var wo=null;function Bu(e){if(wo=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=g(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 wo=e,null}function l0(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(js()){case Yn:return 2;case _r:return 8;case Gn:case nr:return 32;case qa:return 268435456;default:return 32}default:return 32}}var qu=!1,Xl=null,Ql=null,Zl=null,ii=new Map,oi=new Map,Kl=[],xv="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 r0(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":ii.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":oi.delete(t.pointerId)}}function ci(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&&a0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function bv(e,t,a,n,r){switch(t){case"focusin":return Xl=ci(Xl,e,t,a,n,r),!0;case"dragenter":return Ql=ci(Ql,e,t,a,n,r),!0;case"mouseover":return Zl=ci(Zl,e,t,a,n,r),!0;case"pointerover":var s=r.pointerId;return ii.set(s,ci(ii.get(s)||null,e,t,a,n,r)),!0;case"gotpointercapture":return s=r.pointerId,oi.set(s,ci(oi.get(s)||null,e,t,a,n,r)),!0}return!1}function s0(e){var t=En(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=g(a),t!==null){e.blockedOn=t,Qn(e.priority,function(){n0(a)});return}}else if(t===31){if(t=y(a),t!==null){e.blockedOn=t,Qn(e.priority,function(){n0(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 jo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Hu(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&&a0(t),e.blockedOn=a,!1;t.shift()}return!0}function i0(e,t,a){jo(e)&&a.delete(t)}function Sv(){qu=!1,Xl!==null&&jo(Xl)&&(Xl=null),Ql!==null&&jo(Ql)&&(Ql=null),Zl!==null&&jo(Zl)&&(Zl=null),ii.forEach(i0),oi.forEach(i0)}function No(e,t){e.blockedOn===t&&(e.blockedOn=null,qu||(qu=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Sv)))}var Eo=null;function o0(e){Eo!==e&&(Eo=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Eo===e&&(Eo=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(Bu(n||a)===null)continue;break}var s=dn(a);s!==null&&(e.splice(t,3),t-=3,Hc(s,{pending:!0,data:r,method:a.method,action:n},n,r))}}))}function ds(e){function t(N){return No(N,e)}Xl!==null&&No(Xl,e),Ql!==null&&No(Ql,e),Zl!==null&&No(Zl,e),ii.forEach(t),oi.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);)s0(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||o0(a);else if(f){var x=null;if(s&&s.hasAttribute("formAction")){if(r=s,f=s[jt]||null)x=f.formAction;else if(Bu(r)!==null)continue}else x=f.action;typeof x=="function"?a[n+1]=x:(a.splice(n,3),n-=3),o0(a)}}}function c0(){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 Yu(e){this._internalRoot=e}Ao.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var a=t.current,n=Oa();e0(a,n,e,t,null,null)},Ao.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;e0(e.current,2,null,e,null,null),ro(),t[Za]=null}};function Ao(e){this._internalRoot=e}Ao.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&&s0(e)}};var u0=i.version;if(u0!=="19.2.8")throw Error(c(527,u0,"19.2.8"));X.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=p(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var wv={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Co=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Co.isDisabled&&Co.supportsFiber)try{Ga=Co.inject(wv),Yt=Co}catch{}}return di.createRoot=function(e,t){if(!d(e))throw Error(c(299));var a=!1,n="",r=vm,s=ym,f=xm;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=Fh(e,1,!1,null,null,a,n,null,r,s,f,c0),e[Za]=t.current,wu(e),new Yu(t)},di.hydrateRoot=function(e,t,a){if(!d(e))throw Error(c(299));var n=!1,r="",s=vm,f=ym,x=xm,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=Fh(e,1,!0,t,a??null,n,r,N,s,f,x,c0),t.context=Ph(null),a=t.current,n=Oa(),n=Sa(n),r=kl(n),r.callback=null,Ml(a,r,n),a=n,t.current.lanes=a,lt(t,a),Mn(t),e[Za]=t.current,wu(e),new Ao(t)},di.version="19.2.8",di}var b0;function Mv(){if(b0)return Xu.exports;b0=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(),Xu.exports=kv(),Xu.exports}var Dv=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 gd=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,K0=/^[\\/]{2}/;function Ov(l,i){return i+l.replace(/\\/g,"/")}var S0="popstate";function w0(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function Uv(l={}){function i(c,d){var p;let m=(p=d.state)==null?void 0:p.masked,{pathname:g,search:y,hash:v}=m||c.location;return ad("",{pathname:g,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:ms(d)}return Hv(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 Lv(){return Math.random().toString(36).substring(2,10)}function j0(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 ad(l,i,u=null,c,d){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof i=="string"?gs(i):i,state:u,key:i&&i.key||c||Lv(),mask:d}}function ms({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 gs(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 Hv(l,i,u,c={}){let{window:d=document.defaultView,v5Compat:m=!1}=c,g=d.history,y="POP",v=null,p=S();p==null&&(p=0,g.replaceState({...g.state,idx:p},""));function S(){return(g.state||{idx:null}).idx}function h(){y="POP";let z=S(),R=z==null?null:z-p;p=z,v&&v({action:y,location:C.location,delta:R})}function w(z,R){y="PUSH";let H=w0(z)?z:ad(C.location,z,R);p=S()+1;let Q=j0(H,p),ee=C.createHref(H.mask||H);try{g.pushState(Q,"",ee)}catch(K){if(K instanceof DOMException&&K.name==="DataCloneError")throw K;d.location.assign(ee)}m&&v&&v({action:y,location:C.location,delta:1})}function E(z,R){y="REPLACE";let H=w0(z)?z:ad(C.location,z,R);p=S();let Q=j0(H,p),ee=C.createHref(H.mask||H);g.replaceState(Q,"",ee),m&&v&&v({action:y,location:C.location,delta:0})}function j(z){return Bv(d,z)}let C={get action(){return y},get location(){return l(d,g)},listen(z){if(v)throw new Error("A history only accepts one active listener");return d.addEventListener(S0,h),v=z,()=>{d.removeEventListener(S0,h),v=null}},createHref(z){return i(d,z)},createURL:j,encodeLocation(z){let R=j(z);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:w,replace:E,go(z){return g.go(z)}};return C}function Bv(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:ms(i);return d=d.replace(/ $/,"%20"),!u&&K0.test(d)&&(d=c+d),new URL(d,c)}function $0(l,i,u="/"){return qv(l,i,u,!1)}function qv(l,i,u,c,d){let m=typeof i=="string"?gs(i):i,g=ml(m.pathname||"/",u);if(g==null)return null;let y=Yv(l),v=null,p=Fv(g);for(let S=0;v==null&&S<y.length;++S)v=Iv(y[S],p,c);return v}function Yv(l){let i=J0(l);return Gv(i),i}function J0(l,i=[],u=[],c="",d=!1){let m=(g,y,v=d,p)=>{let S={relativePath:p===void 0?g.path||"":p,caseSensitive:g.caseSensitive===!0,childrenIndex:y,route:g};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 h=vn([c,S.relativePath]),w=u.concat(S);g.children&&g.children.length>0&&(ft(g.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),J0(g.children,i,w,h,v)),!(g.path==null&&!g.index)&&i.push({path:h,score:Jv(h,g.index),routesMeta:w.map((E,j)=>{let[C,z]=F0(E.relativePath,E.caseSensitive,j===w.length-1);return{...E,matcher:C,compiledParams:z}})})};return l.forEach((g,y)=>{var v;if(g.path===""||!((v=g.path)!=null&&v.includes("?")))m(g,y);else for(let p of W0(g.path))m(g,y,!0,p)}),i}function W0(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 g=W0(c.join("/")),y=[];return y.push(...g.map(v=>v===""?m:[m,v].join("/"))),d&&y.push(...g),y.map(v=>l.startsWith("/")&&v===""?"/":v)}function Gv(l){l.sort((i,u)=>i.score!==u.score?u.score-i.score:Wv(i.routesMeta.map(c=>c.childrenIndex),u.routesMeta.map(c=>c.childrenIndex)))}var Vv=/^:[\w-]+$/,Xv=3,Qv=2,Zv=1,Kv=10,$v=-2,N0=l=>l==="*";function Jv(l,i){let u=l.split("/"),c=u.length;return u.some(N0)&&(c+=$v),i&&(c+=Qv),u.filter(d=>!N0(d)).reduce((d,m)=>d+(Vv.test(m)?Xv:m===""?Zv:Kv),c)}function Wv(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 Iv(l,i,u=!1){let{routesMeta:c}=l,d={},m="/",g=[];for(let y=0;y<c.length;++y){let v=c[y],p=y===c.length-1,S=m==="/"?i:i.slice(m.length)||"/",h={path:v.relativePath,caseSensitive:v.caseSensitive,end:p},w=v.matcher&&v.compiledParams?I0(h,S,v.matcher,v.compiledParams):Oo(h,S),E=v.route;if(!w&&p&&u&&!c[c.length-1].route.index&&(w=Oo({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},S)),!w)return null;Object.assign(d,w.params),g.push({params:d,pathname:vn([m,w.pathname]),pathnameBase:ty(vn([m,w.pathnameBase])),route:E}),w.pathnameBase!=="/"&&(m=vn([m,w.pathnameBase]))}return g}function Oo(l,i){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[u,c]=F0(l.path,l.caseSensitive,l.end);return I0(l,i,u,c)}function I0(l,i,u,c){let d=i.match(u);if(!d)return null;let m=d[0],g=hs(m,1),y=d.slice(1);return{params:c.reduce((p,{paramName:S,isOptional:h},w)=>{if(S==="*"){let j=y[w]||"";g=hs(m.slice(0,m.length-j.length),1)}const E=y[w];return h&&!E?p[S]=void 0:p[S]=(E||"").replace(/%2F/g,"/"),p},{}),pathname:m,pathnameBase:g,pattern:l}}function F0(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,(g,y,v,p,S)=>{if(c.push({paramName:y,isOptional:v!=null}),v){let h=S.charAt(p+g.length);return h&&h!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}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 Fv(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 Pv(l,i="/"){let{pathname:u,search:c="",hash:d=""}=typeof l=="string"?gs(l):l,m;return u?(u=ep(u),u.startsWith("/")||u.startsWith("\\")?m=E0(u.substring(1),"/"):m=E0(u,i)):m=i,{pathname:m,search:ay(c),hash:ny(d)}}function E0(l,i){let u=hs(i).split("/");return l.split("/").forEach(d=>{d===".."?u.length>1&&u.pop():d!=="."&&u.push(d)}),u.length>1?u.join("/"):"/"}function $u(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 ey(l){return l.filter((i,u)=>u===0||i.route.path&&i.route.path.length>0)}function P0(l){let i=ey(l);return i.map((u,c)=>c===i.length-1?u.pathname:u.pathnameBase)}function vd(l,i,u,c=!1){let d;typeof l=="string"?d=gs(l):(d={...l},ft(!d.pathname||!d.pathname.includes("?"),$u("?","pathname","search",d)),ft(!d.pathname||!d.pathname.includes("#"),$u("#","pathname","hash",d)),ft(!d.search||!d.search.includes("#"),$u("#","search","hash",d)));let m=l===""||d.pathname==="",g=m?"/":d.pathname,y;if(g==null)y=u;else{let h=i.length-1;if(!c&&g.startsWith("..")){let w=g.split("/");for(;w[0]==="..";)w.shift(),h-=1;d.pathname=w.join("/")}y=h>=0?i[h]:"/"}let v=Pv(d,y),p=g&&g!=="/"&&g.endsWith("/"),S=(m||g===".")&&u.endsWith("/");return!v.pathname.endsWith("/")&&(p||S)&&(v.pathname+="/"),v}var ep=l=>l.replace(/[\\/]{2,}/g,"/"),vn=l=>ep(l.join("/"));function hs(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 ty=l=>hs(l).replace(/^\/*/,"/"),ay=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,ny=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,ly=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 ry(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function sy(l){let i=l.map(u=>u.route.path).filter(Boolean);return vn(i)||"/"}var tp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ap(l,i){let u=l;if(typeof u!="string"||!gd.test(u))return{absoluteURL:void 0,isExternal:!1,to:u};let c=u,d=!1;if(tp)try{let m=new URL(window.location.href),g=K0.test(u)?new URL(Ov(u,m.protocol)):new URL(u),y=ml(g.pathname,i);g.origin===m.origin&&y!=null?u=y+g.search+g.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 A0=new URL("http://localhost");function np(l){if(l.createURL)return l.createURL("/");try{return new URL(l.createHref("/"),A0)}catch{return A0}}function Ju(l,i){return l.origin===i.origin&&(l.origin!=="null"||l.protocol===i.protocol&&l.host===i.host)}function iy(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 lp(l,i,u,c){let d=null;try{d=l==null?null:new URL(l,u)}catch{}let m=new URL(i,u),g=d!=null&&!Ju(d,u),y=!Ju(m,u);if(c==="reject"){if(g||y)throw new Error("External navigation is not allowed")}else if(y&&(d==null||!iy(l,d)||!Ju(d,m)))throw new Error("External navigation is not allowed")}var rp=["POST","PUT","PATCH","DELETE"];new Set(rp);var oy=["GET",...rp];new Set(oy);var cy=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function uy(l){try{return cy.includes(new URL(l).protocol)}catch{return!1}}var vs=b.createContext(null);vs.displayName="DataRouter";var Ho=b.createContext(null);Ho.displayName="DataRouterState";var sp=b.createContext(!1);function dy(){return b.useContext(sp)}var ip=b.createContext({isTransitioning:!1});ip.displayName="ViewTransition";var fy=b.createContext(new Map);fy.displayName="Fetchers";var my=b.createContext(null);my.displayName="Await";var sn=b.createContext(null);sn.displayName="Navigation";var vi=b.createContext(null);vi.displayName="Location";var pl=b.createContext({outlet:null,matches:[],isDataRoute:!1});pl.displayName="Route";var yd=b.createContext(null);yd.displayName="RouteError";var op="REACT_ROUTER_ERROR",hy="REDIRECT",py="ROUTE_ERROR_RESPONSE";function gy(l){if(l.startsWith(`${op}:${hy}:{`))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 vy(l){if(l.startsWith(`${op}:${py}:{`))try{let i=JSON.parse(l.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new ly(i.status,i.statusText,i.data)}catch{}}function yy(l,{relative:i}={}){ft(yi(),"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:g}=xi(l,{relative:i}),y=m;return u!=="/"&&(y=m==="/"?u:vn([u,m])),c.createHref({pathname:y,search:g,hash:d})}function yi(){return b.useContext(vi)!=null}function yn(){return ft(yi(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(vi).location}var cp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function up(l){b.useContext(sn).static||b.useLayoutEffect(l)}function dp(){let{isDataRoute:l}=b.useContext(pl);return l?Ry():xy()}function xy(){ft(yi(),"useNavigate() may be used only in the context of a <Router> component.");let l=b.useContext(vs),{basename:i,navigator:u}=b.useContext(sn),{matches:c}=b.useContext(pl),{pathname:d}=yn(),m=JSON.stringify(P0(c)),g=b.useRef(!1);return up(()=>{g.current=!0}),b.useCallback((v,p={})=>{if(Ln(g.current,cp),!g.current)return;if(typeof v=="number"){u.go(v);return}let S=vd(v,JSON.parse(m),d,p.relative==="path");l==null&&i!=="/"&&(S.pathname=S.pathname==="/"?i:vn([i,S.pathname])),lp(typeof v=="string"?v:ms(v),u.createHref(S),np(u),"reject"),(p.replace?u.replace:u.push)(S,p.state,p)},[i,u,m,d,l])}b.createContext(null);function xi(l,{relative:i}={}){let{matches:u}=b.useContext(pl),{pathname:c}=yn(),d=JSON.stringify(P0(u));return b.useMemo(()=>vd(l,JSON.parse(d),c,i==="path"),[l,d,c,i])}function by(l,i){return fp(l,i)}function fp(l,i,u){var z;ft(yi(),"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],g=m?m.params:{},y=m?m.pathname:"/",v=m?m.pathnameBase:"/",p=m&&m.route;{let R=p&&p.path||"";hp(y,!p||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${R}">) 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="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let S=yn(),h;if(i){let R=typeof i=="string"?gs(i):i;ft(v==="/"||((z=R.pathname)==null?void 0:z.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 "${R.pathname}" was given in the \`location\` prop.`),h=R}else h=S;let w=h.pathname||"/",E=w;if(v!=="/"){let R=v.replace(/^\//,"").split("/");E="/"+w.replace(/^\//,"").split("/").slice(R.length).join("/")}let j=u&&u.state.matches.length?u.state.matches.map(R=>Object.assign(R,{route:u.manifest[R.route.id]||R.route})):$0(l,{pathname:E});Ln(p||j!=null,`No routes matched location "${h.pathname}${h.search}${h.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 "${h.pathname}${h.search}${h.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=Ey(j&&j.map(R=>Object.assign({},R,{params:Object.assign({},g,R.params),pathname:vn([v,c.encodeLocation?c.encodeLocation(R.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?v:vn([v,c.encodeLocation?c.encodeLocation(R.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),d,u);return i&&C?b.createElement(vi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...h},navigationType:"POP"}},C):C}function Sy(){let l=_y(),i=ry(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},g=null;return console.error("Error handled by React Router default ErrorBoundary:",l),g=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,g)}var wy=b.createElement(Sy,null),mp=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=vy(l.digest);u&&(l=u)}let i=l!==void 0?b.createElement(pl.Provider,{value:this.props.routeContext},b.createElement(yd.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?b.createElement(jy,{error:l},i):i}};mp.contextType=sp;var Wu=new WeakMap;function jy({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=gy(i.digest);if(d){let m=Wu.get(i);if(m)throw m;let g=ap(d.location,u),y=g.absoluteURL||g.to;if(lp(d.location,y,np(c),"allow-explicit"),uy(y))throw new Error("Invalid redirect location");if(tp&&!Wu.get(i))if(g.isExternal||d.reloadDocument)window.location.href=y;else{const v=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(g.to,{replace:d.replace}));throw Wu.set(i,v),v}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${y}`})}}return l}function Ny({routeContext:l,match:i,children:u}){let c=b.useContext(vs);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 Ey(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(h=>h.route.id&&(m==null?void 0:m[h.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 g=!1,y=-1;if(u&&c){g=c.renderFallback;for(let S=0;S<d.length;S++){let h=d[S];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(y=S),h.route.id){let{loaderData:w,errors:E}=c,j=h.route.loader&&!w.hasOwnProperty(h.route.id)&&(!E||E[h.route.id]===void 0);if(h.route.lazy||j){u.isStatic&&(g=!0),y>=0?d=d.slice(0,y+1):d=[d[0]];break}}}}let v=u==null?void 0:u.onError,p=c&&v?(S,h)=>{var w,E;v(S,{location:c.location,params:((E=(w=c.matches)==null?void 0:w[0])==null?void 0:E.params)??{},pattern:sy(c.matches),errorInfo:h})}:void 0;return d.reduceRight((S,h,w)=>{let E,j=!1,C=null,z=null;c&&(E=m&&h.route.id?m[h.route.id]:void 0,C=h.route.errorElement||wy,g&&(y<0&&w===0?(hp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,z=null):y===w&&(j=!0,z=h.route.hydrateFallbackElement||null)));let R=i.concat(d.slice(0,w+1)),H=()=>{let Q;return E?Q=C:j?Q=z:h.route.Component?Q=b.createElement(h.route.Component,null):h.route.element?Q=h.route.element:Q=S,b.createElement(Ny,{match:h,routeContext:{outlet:S,matches:R,isDataRoute:c!=null},children:Q})};return c&&(h.route.ErrorBoundary||h.route.errorElement||w===0)?b.createElement(mp,{location:c.location,revalidation:c.revalidation,component:C,error:E,children:H(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:p}):H()},null)}function xd(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ay(l){let i=b.useContext(vs);return ft(i,xd(l)),i}function Cy(l){let i=b.useContext(Ho);return ft(i,xd(l)),i}function Ty(l){let i=b.useContext(pl);return ft(i,xd(l)),i}function bd(l){let i=Ty(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 zy(){return bd("useRouteId")}function _y(){var c;let l=b.useContext(yd),i=Cy("useRouteError"),u=bd("useRouteError");return l!==void 0?l:(c=i.errors)==null?void 0:c[u]}function Ry(){let{router:l}=Ay("useNavigate"),i=bd("useNavigate"),u=b.useRef(!1);return up(()=>{u.current=!0}),b.useCallback(async(d,m={})=>{Ln(u.current,cp),u.current&&(typeof d=="number"?await l.navigate(d):await l.navigate(d,{fromRouteId:i,...m}))},[l,i])}var C0={};function hp(l,i,u){!i&&!C0[l]&&(C0[l]=!0,Ln(!1,u))}b.memo(ky);function ky({routes:l,manifest:i,future:u,state:c,isStatic:d,onError:m}){return fp(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:g}){ft(!yi(),"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:g,future:{}}),[y,d,m,g]);typeof u=="string"&&(u=gs(u));let{pathname:p="/",search:S="",hash:h="",state:w=null,key:E="default",mask:j}=u,C=b.useMemo(()=>{let z=ml(p,y);return z==null?null:{location:{pathname:z,search:S,hash:h,state:w,key:E,mask:j},navigationType:c}},[y,p,S,h,w,E,c,j]);return Ln(C!=null,`<Router basename="${y}"> is not able to match the URL "${p}${S}${h}" 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(vi.Provider,{children:i,value:C}))}function Dy({children:l,location:i}){return by(nd(l),i)}function nd(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,nd(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 g={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&&(g.children=nd(c.props.children,m)),u.push(g)}),u}var Mo="get",Do="application/x-www-form-urlencoded";function Bo(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function Oy(l){return Bo(l)&&l.tagName.toLowerCase()==="button"}function Uy(l){return Bo(l)&&l.tagName.toLowerCase()==="form"}function Ly(l){return Bo(l)&&l.tagName.toLowerCase()==="input"}function Hy(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function By(l,i){return l.button===0&&(!i||i==="_self")&&!Hy(l)}var To=null;function qy(){if(To===null)try{new FormData(document.createElement("form"),0),To=!1}catch{To=!0}return To}var Yy=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Iu(l){return l!=null&&!Yy.has(l)?(Ln(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Do}"`),null):l}function Gy(l,i){let u,c,d,m,g;if(Uy(l)){let y=l.getAttribute("action");c=y?ml(y,i):null,u=l.getAttribute("method")||Mo,d=Iu(l.getAttribute("enctype"))||Do,m=new FormData(l)}else if(Oy(l)||Ly(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=Iu(l.getAttribute("formenctype"))||Iu(y.getAttribute("enctype"))||Do,m=new FormData(y,l),!qy()){let{name:p,type:S,value:h}=l;if(S==="image"){let w=p?`${p}.`:"";m.append(`${w}x`,"0"),m.append(`${w}y`,"0")}else p&&m.append(p,h)}}else{if(Bo(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');u=Mo,c=null,d=Do,g=l}return m&&d==="text/plain"&&(g=m,m=void 0),{action:c,method:u.toLowerCase(),encType:d,formData:m,body:g}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Sd(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function pp(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=`${hs(i)}/_root.${c}`:d.pathname=`${hs(d.pathname)}.${c}`,d}async function Vy(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 Xy(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 Qy(l,i,u){let c=await Promise.all(l.map(async d=>{let m=i.routes[d.route.id];if(m){let g=await Vy(m,u);return g.links?g.links():[]}return[]}));return Jy(c.flat(1).filter(Xy).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function T0(l,i,u,c,d,m){let g=(v,p)=>u[p]?v.route.id!==u[p].route.id:!0,y=(v,p)=>{var S;return u[p].pathname!==v.pathname||((S=u[p].route.path)==null?void 0:S.endsWith("*"))&&u[p].params["*"]!==v.params["*"]};return m==="assets"?i.filter((v,p)=>g(v,p)||y(v,p)):m==="data"?i.filter((v,p)=>{var h;let S=c.routes[v.route.id];if(!S||!S.hasLoader)return!1;if(g(v,p)||y(v,p))return!0;if(v.route.shouldRevalidate){let w=v.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((h=u[0])==null?void 0:h.params)||{},nextUrl:new URL(l,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function Zy(l,i,{includeHydrateFallback:u}={}){return Ky(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 Ky(l){return[...new Set(l)]}function $y(l){let i={},u=Object.keys(l).sort();for(let c of u)i[c]=l[c];return i}function Jy(l,i){let u=new Set;return new Set(i),l.reduce((c,d)=>{let m=JSON.stringify($y(d));return u.has(m)||(u.add(m),c.push({key:m,link:d})),c},[])}function wd(){let l=b.useContext(vs);return Sd(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function Wy(){let l=b.useContext(Ho);return Sd(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var jd=b.createContext(void 0);jd.displayName="FrameworkContext";function qo(){let l=b.useContext(jd);return Sd(l,"You must render this element inside a <HydratedRouter> element"),l}function Iy(l,i){let u=b.useContext(jd),[c,d]=b.useState(!1),[m,g]=b.useState(!1),{onFocus:y,onBlur:v,onMouseEnter:p,onMouseLeave:S,onTouchStart:h}=i,w=b.useRef(null);b.useEffect(()=>{if(l==="render"&&g(!0),l==="viewport"){let C=R=>{R.forEach(H=>{g(H.isIntersecting)})},z=new IntersectionObserver(C,{threshold:.5});return w.current&&z.observe(w.current),()=>{z.disconnect()}}},[l]),b.useEffect(()=>{if(c){let C=setTimeout(()=>{g(!0)},100);return()=>{clearTimeout(C)}}},[c]);let E=()=>{d(!0)},j=()=>{d(!1),g(!1)};return u?l!=="intent"?[m,w,{}]:[m,w,{onFocus:fi(y,E),onBlur:fi(v,j),onMouseEnter:fi(p,E),onMouseLeave:fi(S,j),onTouchStart:fi(h,E)}]:[!1,w,{}]}function fi(l,i){return u=>{l&&l(u),u.defaultPrevented||i(u)}}function Fy({page:l,...i}){let u=dy(),{nonce:c}=qo(),{router:d}=wd(),m=b.useMemo(()=>$0(d.routes,l,d.basename),[d.routes,l,d.basename]);return m?(i.nonce==null&&c&&(i={...i,nonce:c}),u?b.createElement(ex,{page:l,matches:m,...i}):b.createElement(tx,{page:l,matches:m,...i})):null}function Py(l){let{manifest:i,routeModules:u}=qo(),[c,d]=b.useState([]);return b.useEffect(()=>{let m=!1;return Qy(l,i,u).then(g=>{m||d(g)}),()=>{m=!0}},[l,i,u]),c}function ex({page:l,matches:i,...u}){let c=yn(),{future:d}=qo(),{basename:m}=wd(),g=b.useMemo(()=>{if(l===c.pathname+c.search+c.hash)return[];let y=pp(l,m,d.v8_trailingSlashAwareDataRequests,"rsc"),v=!1,p=[];for(let S of i)typeof S.route.shouldRevalidate=="function"?v=!0:p.push(S.route.id);return v&&p.length>0&&y.searchParams.set("_routes",p.join(",")),[y.pathname+y.search]},[m,d.v8_trailingSlashAwareDataRequests,l,c,i]);return b.createElement(b.Fragment,null,g.map(y=>b.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...u})))}function tx({page:l,matches:i,...u}){let c=yn(),{future:d,manifest:m,routeModules:g}=qo(),{basename:y}=wd(),{loaderData:v,matches:p}=Wy(),S=b.useMemo(()=>T0(l,i,p,m,c,"data"),[l,i,p,m,c]),h=b.useMemo(()=>T0(l,i,p,m,c,"assets"),[l,i,p,m,c]),w=b.useMemo(()=>{if(l===c.pathname+c.search+c.hash)return[];let C=new Set,z=!1;if(i.forEach(H=>{var ee;let Q=m.routes[H.route.id];!Q||!Q.hasLoader||(!S.some(K=>K.route.id===H.route.id)&&H.route.id in v&&((ee=g[H.route.id])!=null&&ee.shouldRevalidate)||Q.hasClientLoader?z=!0:C.add(H.route.id))}),C.size===0)return[];let R=pp(l,y,d.v8_trailingSlashAwareDataRequests,"data");return z&&C.size>0&&R.searchParams.set("_routes",i.filter(H=>C.has(H.route.id)).map(H=>H.route.id).join(",")),[R.pathname+R.search]},[y,d.v8_trailingSlashAwareDataRequests,v,c,m,S,i,l,g]),E=b.useMemo(()=>Zy(h,m),[h,m]),j=Py(h);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:z})=>b.createElement("link",{key:C,nonce:u.nonce,...z,crossOrigin:z.crossOrigin??u.crossOrigin})))}function ax(...l){return i=>{l.forEach(u=>{typeof u=="function"?u(i):u!=null&&(u.current=i)})}}var nx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{nx&&(window.__reactRouterVersion="7.18.4")}catch{}function lx({basename:l,children:i,useTransitions:u,window:c}){let d=b.useRef();d.current==null&&(d.current=Uv({window:c,v5Compat:!0}));let m=d.current,[g,y]=b.useState({action:m.action,location:m.location}),v=b.useCallback(p=>{u===!1?y(p):b.startTransition(()=>y(p))},[u]);return b.useLayoutEffect(()=>m.listen(v),[m,v]),b.createElement(My,{basename:l,children:i,location:g.location,navigationType:g.action,navigator:m,useTransitions:u})}var Nd=b.forwardRef(function({onClick:i,discover:u="render",prefetch:c="none",relative:d,reloadDocument:m,replace:g,mask:y,state:v,target:p,to:S,preventScrollReset:h,viewTransition:w,defaultShouldRevalidate:E,...j},C){let{basename:z,navigator:R,useTransitions:H}=b.useContext(sn),Q=typeof S=="string"&&gd.test(S),ee=ap(S,z);S=ee.to;let K=yy(S,{relative:d}),I=yn(),Z=null;if(y){let de=vd(y,[],I.mask?I.mask.pathname:"/",!0);z!=="/"&&(de.pathname=de.pathname==="/"?z:vn([z,de.pathname])),Z=R.createHref(de)}let[J,ue,xe]=Iy(c,j),Ee=ox(S,{replace:g,mask:y,state:v,target:p,preventScrollReset:h,relative:d,viewTransition:w,defaultShouldRevalidate:E,useTransitions:H});function Re(de){i&&i(de),de.defaultPrevented||Ee(de)}let Xe=!(ee.isExternal||m),ne=b.createElement("a",{...j,...xe,href:(Xe?Z:void 0)||ee.absoluteURL||K,onClick:Xe?Re:i,ref:ax(C,ue),target:p,"data-discover":!Q&&u==="render"?"true":void 0});return J&&!Q?b.createElement(b.Fragment,null,ne,b.createElement(Fy,{page:K})):ne});Nd.displayName="Link";var rx=b.forwardRef(function({"aria-current":i="page",caseSensitive:u=!1,className:c="",end:d=!1,style:m,to:g,viewTransition:y,children:v,...p},S){let h=xi(g,{relative:p.relative}),w=yn(),E=b.useContext(Ho),{navigator:j,basename:C}=b.useContext(sn),z=E!=null&&mx(h)&&y===!0,R=j.encodeLocation?j.encodeLocation(h).pathname:h.pathname,H=w.pathname,Q=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;u||(H=H.toLowerCase(),Q=Q?Q.toLowerCase():null,R=R.toLowerCase()),Q&&C&&(Q=ml(Q,C)||Q);const ee=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let K=H===R||!d&&H.startsWith(R)&&H.charAt(ee)==="/",I=Q!=null&&(Q===R||!d&&Q.startsWith(R)&&Q.charAt(R.length)==="/"),Z={isActive:K,isPending:I,isTransitioning:z},J=K?i:void 0,ue;typeof c=="function"?ue=c(Z):ue=[c,K?"active":null,I?"pending":null,z?"transitioning":null].filter(Boolean).join(" ");let xe=typeof m=="function"?m(Z):m;return b.createElement(Nd,{...p,"aria-current":J,className:ue,ref:S,style:xe,to:g,viewTransition:y},typeof v=="function"?v(Z):v)});rx.displayName="NavLink";var sx=b.forwardRef(({discover:l="render",fetcherKey:i,navigate:u,reloadDocument:c,replace:d,state:m,method:g=Mo,action:y,onSubmit:v,relative:p,preventScrollReset:S,viewTransition:h,defaultShouldRevalidate:w,...E},j)=>{let{useTransitions:C}=b.useContext(sn),z=dx(),R=fx(y,{relative:p}),H=g.toLowerCase()==="get"?"get":"post",Q=typeof y=="string"&&gd.test(y),ee=K=>{if(v&&v(K),K.defaultPrevented)return;K.preventDefault();let I=K.nativeEvent.submitter,Z=(I==null?void 0:I.getAttribute("formmethod"))||g,J=()=>z(I||K.currentTarget,{fetcherKey:i,method:Z,navigate:u,replace:d,state:m,relative:p,preventScrollReset:S,viewTransition:h,defaultShouldRevalidate:w});C&&u!==!1?b.startTransition(()=>J()):J()};return b.createElement("form",{ref:j,method:H,action:R,onSubmit:c?v:ee,...E,"data-discover":!Q&&l==="render"?"true":void 0})});sx.displayName="Form";function ix(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function gp(l){let i=b.useContext(vs);return ft(i,ix(l)),i}function ox(l,{target:i,replace:u,mask:c,state:d,preventScrollReset:m,relative:g,viewTransition:y,defaultShouldRevalidate:v,useTransitions:p}={}){let S=dp(),h=yn(),w=xi(l,{relative:g});return b.useCallback(E=>{if(By(E,i)){E.preventDefault();let j=u!==void 0?u:ms(h)===ms(w),C=()=>S(l,{replace:j,mask:c,state:d,preventScrollReset:m,relative:g,viewTransition:y,defaultShouldRevalidate:v});p?b.startTransition(()=>C()):C()}},[h,S,w,u,c,d,i,l,m,g,y,v,p])}var cx=0,ux=()=>`__${String(++cx)}__`;function dx(){let{router:l}=gp("useSubmit"),{basename:i}=b.useContext(sn),u=zy(),c=l.fetch,d=l.navigate;return b.useCallback(async(m,g={})=>{let{action:y,method:v,encType:p,formData:S,body:h}=Gy(m,i);if(g.navigate===!1){let w=g.fetcherKey||ux();await c(w,u,g.action||y,{defaultShouldRevalidate:g.defaultShouldRevalidate,preventScrollReset:g.preventScrollReset,formData:S,body:h,formMethod:g.method||v,formEncType:g.encType||p,flushSync:g.flushSync})}else await d(g.action||y,{defaultShouldRevalidate:g.defaultShouldRevalidate,preventScrollReset:g.preventScrollReset,formData:S,body:h,formMethod:g.method||v,formEncType:g.encType||p,replace:g.replace,state:g.state,fromRouteId:u,flushSync:g.flushSync,viewTransition:g.viewTransition})},[c,d,i,u])}function fx(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={...xi(l||".",{relative:i})},g=yn();if(l==null){m.search=g.search;let y=new URLSearchParams(m.search),v=y.getAll("index");if(v.some(S=>S==="")){y.delete("index"),v.filter(h=>h).forEach(h=>y.append("index",h));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])),ms(m)}function mx(l,{relative:i}={}){let u=b.useContext(ip);ft(u!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=gp("useViewTransitionState"),d=xi(l,{relative:i});if(!u.isTransitioning)return!1;let m=ml(u.currentLocation.pathname,c)||u.currentLocation.pathname,g=ml(u.nextLocation.pathname,c)||u.nextLocation.pathname;return Oo(d.pathname,g)!=null||Oo(d.pathname,m)!=null}var vp=Z0();const hx=Q0(vp),yp=b.createContext(void 0);function px({children:l}){const[i,u]=b.useState(null),[c,d]=b.useState(null),[m,g]=b.useState(!0),y=dp(),v=yn(),p="",S=b.useCallback(async()=>{const j=c||(typeof window<"u"?localStorage.getItem("notifkit_admin_token"):null);if(j)try{await fetch(`${p}/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")},[p,c,y]),h=b.useCallback(async j=>{try{const C=await fetch(`${p}/v1/auth/me`,{headers:{Authorization:`Bearer ${j}`}});if(C.ok){const z=await C.json();return u(z.user),d(j),typeof window<"u"&&localStorage.setItem("notifkit_admin_user",JSON.stringify(z.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}},[p]);b.useEffect(()=>{(async()=>{const C=typeof window<"u"?localStorage.getItem("notifkit_admin_token"):null;C&&await h(C),g(!1)})()},[h]);const w=async(j,C)=>{try{const z=await fetch(`${p}/v1/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identifier:j,password:C})}),R=await z.json();return z.ok?(d(R.token),u(R.user),typeof window<"u"&&(localStorage.setItem("notifkit_admin_token",R.token),localStorage.setItem("notifkit_admin_user",JSON.stringify(R.user))),y("/"),{success:!0}):{success:!1,error:R.message||"Invalid credentials"}}catch(z){return{success:!1,error:z instanceof Error?z.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(yp.Provider,{value:{user:i,token:c,isLoading:m,isAuthenticated:!!c,login:w,logout:S,apiUrl:p},children:l})}function oa(){const l=b.useContext(yp);if(l===void 0)throw new Error("useAuth must be used within an AuthProvider");return l}const xp=b.createContext(void 0);function gx({children:l}){const{token:i,apiUrl:u,isAuthenticated:c}=oa(),[d,m]=b.useState([]),[g,y]=b.useState(""),[v,p]=b.useState(!0),S=b.useCallback(async()=>{if(!i){m([]),y(""),p(!1);return}try{p(!0);const h=await fetch(`${u}/v1/projects`,{headers:{Authorization:`Bearer ${i}`}});if(h.ok){const E=(await h.json()).projects||[];m(E),E.length>0?y(j=>E.some(C=>C.id===j)?j:E[0].id):y("")}}catch(h){console.error("Failed to load projects:",h)}finally{p(!1)}},[u,i]);return b.useEffect(()=>{c&&i?S():(m([]),y(""),p(!1))},[c,i,S]),o.jsx(xp.Provider,{value:{projects:d,selectedProjectId:g,setSelectedProjectId:y,isLoadingProjects:v,refreshProjects:S},children:l})}function Pl(){const l=b.useContext(xp);if(l===void 0)throw new Error("useProject must be used within a ProjectProvider");return l}function Hn(){const{apiUrl:l,token:i}=oa(),{selectedProjectId:u}=Pl();return b.useCallback((c,d={})=>{const m={...d.headers,Authorization:`Bearer ${i}`};return u&&(m["x-project-id"]=u),fetch(`${l}${c}`,{...d,headers:m})},[l,i,u])}/**
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 bp=(...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 vx=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 yx=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 z0=l=>{const i=yx(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 Fu={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 xx=l=>{for(const i in l)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},bx=b.createContext({}),Sx=()=>b.useContext(bx),wx=b.forwardRef(({color:l,size:i,strokeWidth:u,absoluteStrokeWidth:c,className:d="",children:m,iconNode:g,...y},v)=>{const{size:p=24,strokeWidth:S=2,absoluteStrokeWidth:h=!1,color:w="currentColor",className:E=""}=Sx()??{},j=c??h?Number(u??S)*24/Number(i??p):u??S;return b.createElement("svg",{ref:v,...Fu,width:i??p??Fu.width,height:i??p??Fu.height,stroke:l??w,strokeWidth:j,className:bp("lucide",E,d),...!m&&!xx(y)&&{"aria-hidden":"true"},...y},[...g.map(([C,z])=>b.createElement(C,z)),...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 Ne=(l,i)=>{const u=b.forwardRef(({className:c,...d},m)=>b.createElement(wx,{ref:m,iconNode:i,className:bp(`lucide-${vx(z0(l))}`,`lucide-${l}`,c),...d}));return u.displayName=z0(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 jx=[["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"}]],Ed=Ne("activity",jx);/**
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 Nx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ex=Ne("arrow-right",Nx);/**
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 Ax=[["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"}]],Sp=Ne("bell",Ax);/**
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 Cx=[["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"}]],wp=Ne("chart-column",Cx);/**
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 Tx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],zx=Ne("chevron-left",Tx);/**
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 _x=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Rx=Ne("chevron-right",_x);/**
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 kx=[["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"}]],Yo=Ne("circle-alert",kx);/**
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"}]],ps=Ne("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 Dx=[["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"}]],Go=Ne("circle-x",Dx);/**
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 Ox=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],fl=Ne("clock",Ox);/**
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 Ux=[["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"}]],Lx=Ne("copy",Ux);/**
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 Hx=[["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"}]],Bx=Ne("cpu",Hx);/**
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 qx=[["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"}]],jp=Ne("database",qx);/**
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 Yx=[["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"}]],Gx=Ne("eye-off",Yx);/**
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 Vx=[["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"}]],ys=Ne("eye",Vx);/**
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 Xx=[["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"}]],Np=Ne("file-code-corner",Xx);/**
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 Qx=[["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"}]],Ad=Ne("folder-key",Qx);/**
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 Zx=[["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"}]],Kx=Ne("git-commit-horizontal",Zx);/**
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 $x=[["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"}]],Ep=Ne("git-fork",$x);/**
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 Jx=[["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"}]],Ap=Ne("heart-pulse",Jx);/**
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 Wx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Ix=Ne("info",Wx);/**
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 Fx=[["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"}]],Cp=Ne("layers",Fx);/**
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 Px=[["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"}]],eb=Ne("layout-dashboard",Px);/**
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 tb=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],hi=Ne("loader-circle",tb);/**
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 ab=[["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"}]],nb=Ne("lock",ab);/**
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 lb=[["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"}]],rb=Ne("log-out",lb);/**
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 sb=[["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"}]],ib=Ne("mail",sb);/**
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 ob=[["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"}]],cb=Ne("octagon-x",ob);/**
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 ub=[["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"}]],db=Ne("play",ub);/**
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 fb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],mb=Ne("plus",fb);/**
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 hb=[["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"}]],Tr=Ne("refresh-ccw",hb);/**
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 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"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Tp=Ne("rotate-ccw-clock",pb);/**
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 gb=[["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"}]],vb=Ne("rotate-ccw",gb);/**
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 yb=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],zp=Ne("search",yb);/**
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 xb=[["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"}]],bb=Ne("send",xb);/**
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 Sb=[["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"}]],wb=Ne("server",Sb);/**
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 jb=[["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"}]],Nb=Ne("settings-2",jb);/**
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 Eb=[["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"}]],Ab=Ne("shield-check",Eb);/**
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 Cb=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Tb=Ne("star",Cb);/**
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 zb=[["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"}]],Cd=Ne("trash-2",zb);/**
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 _b=[["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"}]],Vo=Ne("triangle-alert",_b);/**
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 Rb=[["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"}]],kb=Ne("user-check",Rb);/**
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:"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"}]],Db=Ne("user",Mb);/**
311
+ * @license lucide-react v1.28.0 - ISC
312
+ *
313
+ * This source code is licensed under the ISC license.
314
+ * See the LICENSE file in the root directory of this source tree.
315
+ */const Ob=[["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"}]],_p=Ne("users",Ob);function Rp(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=Rp(l[i]))&&(c&&(c+=" "),c+=u)}else for(u in l)l[u]&&(c&&(c+=" "),c+=u);return c}function kp(){for(var l,i,u=0,c="",d=arguments.length;u<d;u++)(l=arguments[u])&&(i=Rp(l))&&(c&&(c+=" "),c+=i);return c}const Ub=(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},Lb=(l,i)=>({classGroupId:l,validator:i}),Mp=(l=new Map,i=null,u)=>({nextPart:l,validators:i,classGroupId:u}),Uo="-",_0=[],Hb="arbitrary..",Bb=l=>{const i=Yb(l),{conflictingClassGroups:u,conflictingClassGroupModifiers:c}=l;return{getClassGroupId:g=>{if(g.startsWith("[")&&g.endsWith("]"))return qb(g);const y=g.split(Uo),v=y[0]===""&&y.length>1?1:0;return Dp(y,v,i)},getConflictingClassGroupIds:(g,y)=>{if(y){const v=c[g],p=u[g];return v?p?Ub(p,v):v:p||_0}return u[g]||_0}}},Dp=(l,i,u)=>{if(l.length-i===0)return u.classGroupId;const d=l[i],m=u.nextPart.get(d);if(m){const p=Dp(l,i+1,m);if(p)return p}const g=u.validators;if(g===null)return;const y=i===0?l.join(Uo):l.slice(i).join(Uo),v=g.length;for(let p=0;p<v;p++){const S=g[p];if(S.validator(y))return S.classGroupId}},qb=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?Hb+c:void 0})(),Yb=l=>{const{theme:i,classGroups:u}=l;return Gb(u,i)},Gb=(l,i)=>{const u=Mp();for(const c in l){const d=l[c];Td(d,u,c,i)}return u},Td=(l,i,u,c)=>{const d=l.length;for(let m=0;m<d;m++){const g=l[m];Vb(g,i,u,c)}},Vb=(l,i,u,c)=>{if(typeof l=="string"){Xb(l,i,u);return}if(typeof l=="function"){Qb(l,i,u,c);return}Zb(l,i,u,c)},Xb=(l,i,u)=>{const c=l===""?i:Op(i,l);c.classGroupId=u},Qb=(l,i,u,c)=>{if(Kb(l)){Td(l(c),i,u,c);return}i.validators===null&&(i.validators=[]),i.validators.push(Lb(u,l))},Zb=(l,i,u,c)=>{const d=Object.entries(l),m=d.length;for(let g=0;g<m;g++){const[y,v]=d[g];Td(v,Op(i,y),u,c)}},Op=(l,i)=>{let u=l;const c=i.split(Uo),d=c.length;for(let m=0;m<d;m++){const g=c[m];let y=u.nextPart.get(g);y||(y=Mp(),u.nextPart.set(g,y)),u=y}return u},Kb=l=>"isThemeGetter"in l&&l.isThemeGetter===!0,$b=l=>{if(l<1)return{get:()=>{},set:()=>{}};let i=0,u=Object.create(null),c=Object.create(null);const d=(m,g)=>{u[m]=g,i++,i>l&&(i=0,c=u,u=Object.create(null))};return{get(m){let g=u[m];if(g!==void 0)return g;if((g=c[m])!==void 0)return d(m,g),g},set(m,g){m in u?u[m]=g:d(m,g)}}},ld="!",R0=":",Jb=[],k0=(l,i,u,c,d)=>({modifiers:l,hasImportantModifier:i,baseClassName:u,maybePostfixModifierPosition:c,isExternal:d}),Wb=l=>{const{prefix:i,experimentalParseClassName:u}=l;let c=d=>{const m=[];let g=0,y=0,v=0,p;const S=d.length;for(let C=0;C<S;C++){const z=d[C];if(g===0&&y===0){if(z===R0){m.push(d.slice(v,C)),v=C+1;continue}if(z==="/"){p=C;continue}}z==="["?g++:z==="]"?g--:z==="("?y++:z===")"&&y--}const h=m.length===0?d:d.slice(v);let w=h,E=!1;h.endsWith(ld)?(w=h.slice(0,-1),E=!0):h.startsWith(ld)&&(w=h.slice(1),E=!0);const j=p&&p>v?p-v:void 0;return k0(m,E,w,j)};if(i){const d=i+R0,m=c;c=g=>g.startsWith(d)?m(g.slice(d.length)):k0(Jb,!1,g,void 0,!0)}if(u){const d=c;c=m=>u({className:m,parseClassName:d})}return c},Ib=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 g=u[m],y=g[0]==="[",v=i.has(g);y||v?(d.length>0&&(d.sort(),c.push(...d),d=[]),c.push(g)):d.push(g)}return d.length>0&&(d.sort(),c.push(...d)),c}},Fb=l=>({cache:$b(l.cacheSize),parseClassName:Wb(l),sortModifiers:Ib(l),postfixLookupClassGroupIds:Pb(l),...Bb(l)}),Pb=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},e1=/\s+/,t1=(l,i)=>{const{parseClassName:u,getClassGroupId:c,getConflictingClassGroupIds:d,sortModifiers:m,postfixLookupClassGroupIds:g}=i,y=[],v=l.trim().split(e1);let p="";for(let S=v.length-1;S>=0;S-=1){const h=v[S],{isExternal:w,modifiers:E,hasImportantModifier:j,baseClassName:C,maybePostfixModifierPosition:z}=u(h);if(w){p=h+(p.length>0?" "+p:p);continue}let R=!!z,H;if(R){const Z=C.substring(0,z);H=c(Z);const J=H&&g[H]?c(C):void 0;J&&J!==H&&(H=J,R=!1)}else H=c(C);if(!H){if(!R){p=h+(p.length>0?" "+p:p);continue}if(H=c(C),!H){p=h+(p.length>0?" "+p:p);continue}R=!1}const Q=E.length===0?"":E.length===1?E[0]:m(E).join(":"),ee=j?Q+ld:Q,K=ee+H;if(y.indexOf(K)>-1)continue;y.push(K);const I=d(H,R);for(let Z=0;Z<I.length;++Z){const J=I[Z];y.push(ee+J)}p=h+(p.length>0?" "+p:p)}return p},a1=(...l)=>{let i=0,u,c,d="";for(;i<l.length;)(u=l[i++])&&(c=Up(u))&&(d&&(d+=" "),d+=c);return d},Up=l=>{if(typeof l=="string")return l;let i,u="";for(let c=0;c<l.length;c++)l[c]&&(i=Up(l[c]))&&(u&&(u+=" "),u+=i);return u},n1=(l,...i)=>{let u,c,d,m;const g=v=>{const p=i.reduce((S,h)=>h(S),l());return u=Fb(p),c=u.cache.get,d=u.cache.set,m=y,y(v)},y=v=>{const p=c(v);if(p)return p;const S=t1(v,u);return d(v,S),S};return m=g,(...v)=>m(a1(...v))},l1=[],Bt=l=>{const i=u=>u[l]||l1;return i.isThemeGetter=!0,i},Lp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Hp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,r1=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,s1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,i1=/\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$/,o1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,c1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,u1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jl=l=>r1.test(l),_e=l=>!!l&&!Number.isNaN(Number(l)),Dn=l=>!!l&&Number.isInteger(Number(l)),Pu=l=>l.endsWith("%")&&_e(l.slice(0,-1)),dl=l=>s1.test(l),Bp=()=>!0,d1=l=>i1.test(l)&&!o1.test(l),zd=()=>!1,f1=l=>c1.test(l),m1=l=>u1.test(l),h1=l=>!re(l)&&!se(l),p1=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)),g1=l=>er(l,Gp,zd),re=l=>Lp.test(l),Nr=l=>er(l,Vp,d1),M0=l=>er(l,N1,_e),v1=l=>er(l,Qp,Bp),y1=l=>er(l,Xp,zd),D0=l=>er(l,qp,zd),x1=l=>er(l,Yp,m1),zo=l=>er(l,Zp,f1),se=l=>Hp.test(l),mi=l=>zr(l,Vp),b1=l=>zr(l,Xp),O0=l=>zr(l,qp),S1=l=>zr(l,Gp),w1=l=>zr(l,Yp),_o=l=>zr(l,Zp,!0),j1=l=>zr(l,Qp,!0),er=(l,i,u)=>{const c=Lp.exec(l);return c?c[1]?i(c[1]):u(c[2]):!1},zr=(l,i,u=!1)=>{const c=Hp.exec(l);return c?c[1]?i(c[1]):u:!1},qp=l=>l==="position"||l==="percentage",Yp=l=>l==="image"||l==="url",Gp=l=>l==="length"||l==="size"||l==="bg-size",Vp=l=>l==="length",N1=l=>l==="number",Xp=l=>l==="family-name",Qp=l=>l==="number"||l==="weight",Zp=l=>l==="shadow",E1=()=>{const l=Bt("color"),i=Bt("font"),u=Bt("text"),c=Bt("font-weight"),d=Bt("tracking"),m=Bt("leading"),g=Bt("breakpoint"),y=Bt("container"),v=Bt("spacing"),p=Bt("radius"),S=Bt("shadow"),h=Bt("inset-shadow"),w=Bt("text-shadow"),E=Bt("drop-shadow"),j=Bt("blur"),C=Bt("perspective"),z=Bt("aspect"),R=Bt("ease"),H=Bt("animate"),Q=()=>["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"],K=()=>[...ee(),se,re],I=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],J=()=>[se,re,v],ue=()=>[Jl,"full","auto",...J()],xe=()=>[Dn,"none","subgrid",se,re],Ee=()=>["auto",{span:["full",Dn,se,re]},Dn,se,re],Re=()=>[Dn,"auto",se,re],Xe=()=>["auto","min","max","fr",se,re],ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],de=()=>["start","end","center","stretch","center-safe","end-safe"],k=()=>["auto",...J()],X=()=>[Jl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...J()],ie=()=>[Jl,"screen","full","dvw","lvw","svw","min","max","fit",...J()],Ae=()=>[Jl,"screen","full","lh","dvh","lvh","svh","min","max","fit",...J()],W=()=>[l,se,re],A=()=>[...ee(),O0,D0,{position:[se,re]}],q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],G=()=>["auto","cover","contain",S1,g1,{size:[se,re]}],P=()=>[Pu,mi,Nr],te=()=>["","none","full",p,se,re],le=()=>["",_e,mi,Nr],we=()=>["solid","dashed","dotted","double"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[_e,Pu,O0,D0],ea=()=>["","none",j,se,re],Wt=()=>["none",_e,se,re],dt=()=>["none",_e,se,re],xa=()=>[_e,se,re],kt=()=>[Jl,"full",...J()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[dl],breakpoint:[dl],color:[Bp],container:[dl],"drop-shadow":[dl],ease:["in","out","in-out"],font:[h1],"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,re,se,z]}],container:["container"],"container-type":[{"@container":["","normal","size",se,re]}],"container-named":[p1],columns:[{columns:[_e,re,se,y]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"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:K()}],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:ue()}],"inset-x":[{"inset-x":ue()}],"inset-y":[{"inset-y":ue()}],start:[{"inset-s":ue(),start:ue()}],end:[{"inset-e":ue(),end:ue()}],"inset-bs":[{"inset-bs":ue()}],"inset-be":[{"inset-be":ue()}],top:[{top:ue()}],right:[{right:ue()}],bottom:[{bottom:ue()}],left:[{left:ue()}],visibility:["visible","invisible","collapse"],z:[{z:[Dn,"auto",se,re]}],basis:[{basis:[Jl,"full","auto",y,...J()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,Jl,"auto","initial","none",re]}],grow:[{grow:["",_e,se,re]}],shrink:[{shrink:["",_e,se,re]}],order:[{order:[Dn,"first","last","none",se,re]}],"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:J()}],"gap-x":[{"gap-x":J()}],"gap-y":[{"gap-y":J()}],"justify-content":[{justify:[...ne(),"normal"]}],"justify-items":[{"justify-items":[...de(),"normal"]}],"justify-self":[{"justify-self":["auto",...de()]}],"align-content":[{content:["normal",...ne()]}],"align-items":[{items:[...de(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...de(),{baseline:["","last"]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...de(),"baseline"]}],"place-self":[{"place-self":["auto",...de()]}],p:[{p:J()}],px:[{px:J()}],py:[{py:J()}],ps:[{ps:J()}],pe:[{pe:J()}],pbs:[{pbs:J()}],pbe:[{pbe:J()}],pt:[{pt:J()}],pr:[{pr:J()}],pb:[{pb:J()}],pl:[{pl:J()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":J()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":J()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...ie()]}],"min-inline-size":[{"min-inline":["auto",...ie()]}],"max-inline-size":[{"max-inline":["none",...ie()]}],"block-size":[{block:["auto",...Ae()]}],"min-block-size":[{"min-block":["auto",...Ae()]}],"max-block-size":[{"max-block":["none",...Ae()]}],w:[{w:[y,"screen",...X()]}],"min-w":[{"min-w":[y,"screen","none",...X()]}],"max-w":[{"max-w":[y,"screen","none","prose",{screen:[g]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",u,mi,Nr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[c,j1,v1]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Pu,re]}],"font-family":[{font:[b1,y1,i]}],"font-features":[{"font-features":[re]}],"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,se,re]}],"line-clamp":[{"line-clamp":[_e,"none",se,M0]}],leading:[{leading:[m,...J()]}],"list-image":[{"list-image":["none",se,re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",se,re]}],"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:[...we(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",se,Nr]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[_e,"auto",se,re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:J()}],"tab-size":[{tab:[Dn,se,re]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se,re]}],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",se,re]}],"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:G()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Dn,se,re],radial:["",se,re],conic:[Dn,se,re]},w1,x1]}],"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:[...we(),"hidden","none"]}],"divide-style":[{divide:[...we(),"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:[...we(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,se,re]}],"outline-w":[{outline:["",_e,mi,Nr]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",S,_o,zo]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",h,_o,zo]}],"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,Nr]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",w,_o,zo]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[_e,se,re]}],"mix-blend":[{"mix-blend":[...Se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Se()}],"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":[se,re]}],"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:G()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",se,re]}],filter:[{filter:["","none",se,re]}],blur:[{blur:ea()}],brightness:[{brightness:[_e,se,re]}],contrast:[{contrast:[_e,se,re]}],"drop-shadow":[{"drop-shadow":["","none",E,_o,zo]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",_e,se,re]}],"hue-rotate":[{"hue-rotate":[_e,se,re]}],invert:[{invert:["",_e,se,re]}],saturate:[{saturate:[_e,se,re]}],sepia:[{sepia:["",_e,se,re]}],"backdrop-filter":[{"backdrop-filter":["","none",se,re]}],"backdrop-blur":[{"backdrop-blur":ea()}],"backdrop-brightness":[{"backdrop-brightness":[_e,se,re]}],"backdrop-contrast":[{"backdrop-contrast":[_e,se,re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,se,re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,se,re]}],"backdrop-invert":[{"backdrop-invert":["",_e,se,re]}],"backdrop-opacity":[{"backdrop-opacity":[_e,se,re]}],"backdrop-saturate":[{"backdrop-saturate":[_e,se,re]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,se,re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":J()}],"border-spacing-x":[{"border-spacing-x":J()}],"border-spacing-y":[{"border-spacing-y":J()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",se,re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",se,re]}],ease:[{ease:["linear","initial",R,se,re]}],delay:[{delay:[_e,se,re]}],animate:[{animate:["none",H,se,re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,se,re]}],"perspective-origin":[{"perspective-origin":K()}],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:[se,re,"","none","gpu","cpu"]}],"transform-origin":[{origin:K()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:kt()}],"translate-x":[{"translate-x":kt()}],"translate-y":[{"translate-y":kt()}],"translate-z":[{"translate-z":kt()}],"translate-none":["translate-none"],zoom:[{zoom:[Dn,se,re]}],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",se,re]}],"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":J()}],"scroll-mx":[{"scroll-mx":J()}],"scroll-my":[{"scroll-my":J()}],"scroll-ms":[{"scroll-ms":J()}],"scroll-me":[{"scroll-me":J()}],"scroll-mbs":[{"scroll-mbs":J()}],"scroll-mbe":[{"scroll-mbe":J()}],"scroll-mt":[{"scroll-mt":J()}],"scroll-mr":[{"scroll-mr":J()}],"scroll-mb":[{"scroll-mb":J()}],"scroll-ml":[{"scroll-ml":J()}],"scroll-p":[{"scroll-p":J()}],"scroll-px":[{"scroll-px":J()}],"scroll-py":[{"scroll-py":J()}],"scroll-ps":[{"scroll-ps":J()}],"scroll-pe":[{"scroll-pe":J()}],"scroll-pbs":[{"scroll-pbs":J()}],"scroll-pbe":[{"scroll-pbe":J()}],"scroll-pt":[{"scroll-pt":J()}],"scroll-pr":[{"scroll-pr":J()}],"scroll-pb":[{"scroll-pb":J()}],"scroll-pl":[{"scroll-pl":J()}],"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",se,re]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[_e,mi,Nr,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"]}},A1=n1(E1);function U0(...l){return A1(kp(l))}const C1=[{name:"Live Feed",href:"/",icon:Ed},{name:"History Logs",href:"/logs",icon:Tp},{name:"System Health",href:"/system",icon:Ap},{name:"Analytics & Queue",href:"/analytics",icon:wp},{name:"Dead Letter (DLQ)",href:"/dlq",icon:Vo},{name:"Scheduled",href:"/scheduled",icon:fl},{name:"Workflows",href:"/workflows",icon:Ep},{name:"Templates",href:"/templates",icon:Np},{name:"Users",href:"/users",icon:_p},{name:"Projects & Keys",href:"/projects",icon:Ad}];function T1(){const l=yn(),{user:i,logout:u,isAuthenticated:c}=oa();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(eb,{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:C1.map(m=>{const g=m.href==="/"?l.pathname==="/":l.pathname.startsWith(m.href);return o.jsxs(Nd,{to:m.href,className:U0("flex items-center gap-3 px-3 py-2 rounded-md text-sm font-medium transition-colors group relative",g?"text-primary-foreground bg-primary shadow-xs":"text-muted-foreground hover:text-foreground hover:bg-muted"),children:[o.jsx(m.icon,{className:U0("w-4 h-4 transition-colors",g?"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(kb,{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(rb,{className:"h-3.5 w-3.5"}),o.jsx("span",{children:"Sign Out"})]}),o.jsxs("a",{href:"https://github.com/devkitshq/notifkit",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-1.5 text-[11px] text-muted-foreground hover:text-foreground transition-colors",children:[o.jsx(Tb,{className:"h-3 w-3"}),o.jsx("span",{children:"Star on GitHub"})]})]})]})}var z1=(l,i,u,c,d,m,g,y)=>{let v=document.documentElement,p=["light","dark"];function S(E){(Array.isArray(l)?l:[l]).forEach(j=>{let C=j==="class",z=C&&m?d.map(R=>m[R]||R):d;C?(v.classList.remove(...z),v.classList.add(m&&m[E]?m[E]:E)):v.setAttribute(j,E)}),h(E)}function h(E){y&&p.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=g&&E==="system"?w():E;S(j)}catch{}},_1=b.createContext(void 0),R1={setTheme:l=>{},themes:[]},k1=()=>{var l;return(l=b.useContext(_1))!=null?l:R1};b.memo(({forcedTheme:l,storageKey:i,attribute:u,enableSystem:c,enableColorScheme:d,defaultTheme:m,value:g,themes:y,nonce:v,scriptProps:p})=>{let S=JSON.stringify([u,i,m,l,y,g,c,d]).slice(1,-1);return b.createElement("script",{...p,suppressHydrationWarning:!0,nonce:typeof window>"u"?v:"",dangerouslySetInnerHTML:{__html:`(${z1.toString()})(${S})`}})});function M1(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 D1=l=>{switch(l){case"success":return L1;case"info":return B1;case"warning":return H1;case"error":return q1;default:return null}},O1=Array(12).fill(0),U1=({visible:l,className:i})=>ae.createElement("div",{className:["sonner-loading-wrapper",i].filter(Boolean).join(" "),"data-visible":l},ae.createElement("div",{className:"sonner-spinner"},O1.map((u,c)=>ae.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${c}`})))),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:"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"})),H1=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"})),B1=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"})),q1=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"})),Y1=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"})),G1=()=>{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 rd=1;class V1{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:rd++,g=this.toasts.find(v=>v.id===m),y=i.dismissible===void 0?!0:i.dismissible;return this.dismissedToasts.has(m)&&this.dismissedToasts.delete(m),g?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,g;const y=d.then(async p=>{if(g=["resolve",p],ae.isValidElement(p))m=!1,this.create({id:c,type:"default",message:p});else if(Q1(p)&&!p.ok){m=!1;const h=typeof u.error=="function"?await u.error(`HTTP error! status: ${p.status}`):u.error,w=typeof u.description=="function"?await u.description(`HTTP error! status: ${p.status}`):u.description,j=typeof h=="object"&&!ae.isValidElement(h)?h:{message:h};this.create({id:c,type:"error",description:w,...j})}else if(p instanceof Error){m=!1;const h=typeof u.error=="function"?await u.error(p):u.error,w=typeof u.description=="function"?await u.description(p):u.description,j=typeof h=="object"&&!ae.isValidElement(h)?h:{message:h};this.create({id:c,type:"error",description:w,...j})}else if(u.success!==void 0){m=!1;const h=typeof u.success=="function"?await u.success(p):u.success,w=typeof u.description=="function"?await u.description(p):u.description,j=typeof h=="object"&&!ae.isValidElement(h)?h:{message:h};this.create({id:c,type:"success",description:w,...j})}}).catch(async p=>{if(g=["reject",p],u.error!==void 0){m=!1;const S=typeof u.error=="function"?await u.error(p):u.error,h=typeof u.description=="function"?await u.description(p):u.description,E=typeof S=="object"&&!ae.isValidElement(S)?S:{message:S};this.create({id:c,type:"error",description:h,...E})}}).finally(()=>{m&&(this.dismiss(c),c=void 0),u.finally==null||u.finally.call(u)}),v=()=>new Promise((p,S)=>y.then(()=>g[0]==="reject"?S(g[1]):p(g[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)||rd++;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 ya=new V1,X1=(l,i)=>{const u=(i==null?void 0:i.id)||rd++;return ya.addToast({title:l,...i,id:u}),u},Q1=l=>l&&typeof l=="object"&&"ok"in l&&typeof l.ok=="boolean"&&"status"in l&&typeof l.status=="number",Z1=X1,K1=()=>ya.toasts,$1=()=>ya.getActiveToasts(),Ge=Object.assign(Z1,{success:ya.success,info:ya.info,warning:ya.warning,error:ya.error,custom:ya.custom,message:ya.message,promise:ya.promise,dismiss:ya.dismiss,loading:ya.loading},{getHistory:K1,getToasts:$1});M1("[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 Ro(l){return l.label!==void 0}const J1=3,W1="24px",I1="16px",L0=4e3,F1=356,P1=14,eS=45,tS=200;function On(...l){return l.filter(Boolean).join(" ")}function aS(l){const[i,u]=l.split("-"),c=[];return i&&c.push(i),u&&c.push(u),c}const nS=l=>{var i,u,c,d,m,g,y,v,p;const{invert:S,toast:h,unstyled:w,interacting:E,setHeights:j,visibleToasts:C,heights:z,index:R,toasts:H,expanded:Q,removeToast:ee,defaultRichColors:K,closeButton:I,style:Z,cancelButtonStyle:J,actionButtonStyle:ue,className:xe="",descriptionClassName:Ee="",duration:Re,position:Xe,gap:ne,expandByDefault:de,classNames:k,icons:X,closeButtonAriaLabel:ie="Close toast"}=l,[Ae,W]=ae.useState(null),[A,q]=ae.useState(null),[G,P]=ae.useState(!1),[te,le]=ae.useState(!1),[we,Se]=ae.useState(!1),[ve,ea]=ae.useState(!1),[Wt,dt]=ae.useState(!1),[xa,kt]=ae.useState(0),[La,Ha]=ae.useState(0),bn=ae.useRef(h.duration||Re||L0),vl=ae.useRef(null),ta=ae.useRef(null),Sn=R===0,ar=R+1<=C,Vt=h.type,Ba=h.dismissible!==!1,Xt=h.className||"",js=h.descriptionClassName||"",Yn=ae.useMemo(()=>z.findIndex(ye=>ye.toastId===h.id)||0,[z,h.id]),_r=ae.useMemo(()=>{var ye;return(ye=h.closeButton)!=null?ye:I},[h.closeButton,I]),Gn=ae.useMemo(()=>h.duration||Re||L0,[h.duration,Re]),nr=ae.useRef(0),qa=ae.useRef(0),yl=ae.useRef(0),Ya=ae.useRef(null),[Ga,Yt]=Xe.split("-"),ba=ae.useMemo(()=>z.reduce((ye,at,pt)=>pt>=Yn?ye:ye+at.height,0),[z,Yn]),Mt=G1(),xl=h.invert||S,lr=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:h.id,height:at,position:h.position},...pt]),()=>j(pt=>pt.filter(Dt=>Dt.toastId!==h.id))}},[j,h.id]),ae.useLayoutEffect(()=>{if(!G)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===h.id)?Dt.map(lt=>lt.toastId===h.id?{...lt,height:pt}:lt):[{toastId:h.id,height:pt,position:h.position},...Dt])},[G,h.title,h.description,j,h.id,h.jsx,h.action,h.cancel]);const Va=ae.useCallback(()=>{le(!0),kt(qa.current),j(ye=>ye.filter(at=>at.toastId!==h.id)),setTimeout(()=>{ee(h)},tS)},[h,ee,j,qa]);ae.useEffect(()=>{if(h.promise&&Vt==="loading"||h.duration===1/0||h.type==="loading")return;let ye;return Q||E||Mt?(()=>{if(yl.current<nr.current){const Dt=new Date().getTime()-nr.current;bn.current=bn.current-Dt}yl.current=new Date().getTime()})():(()=>{bn.current!==1/0&&(nr.current=new Date().getTime(),ye=setTimeout(()=>{h.onAutoClose==null||h.onAutoClose.call(h,h),Va()},bn.current))})(),()=>clearTimeout(ye)},[Q,E,h,Vt,Mt,Va]),ae.useEffect(()=>{h.delete&&(Va(),h.onDismiss==null||h.onDismiss.call(h,h))},[Va,h.delete]);function Vn(){var ye;if(X!=null&&X.loading){var at;return ae.createElement("div",{className:On(k==null?void 0:k.loader,h==null||(at=h.classNames)==null?void 0:at.loader,"sonner-loader"),"data-visible":Vt==="loading"},X.loading)}return ae.createElement(U1,{className:On(k==null?void 0:k.loader,h==null||(ye=h.classNames)==null?void 0:ye.loader),visible:Vt==="loading"})}const Xa=h.icon||(X==null?void 0:X[Vt])||D1(Vt);var cn,wt;return ae.createElement("li",{tabIndex:0,ref:ta,className:On(xe,Xt,k==null?void 0:k.toast,h==null||(i=h.classNames)==null?void 0:i.toast,k==null?void 0:k.default,k==null?void 0:k[Vt],h==null||(u=h.classNames)==null?void 0:u[Vt]),"data-sonner-toast":"","data-rich-colors":(cn=h.richColors)!=null?cn:K,"data-styled":!(h.jsx||h.unstyled||w),"data-mounted":G,"data-promise":!!h.promise,"data-swiped":Wt,"data-removed":te,"data-visible":ar,"data-y-position":Ga,"data-x-position":Yt,"data-index":R,"data-front":Sn,"data-swiping":we,"data-dismissible":Ba,"data-type":Vt,"data-invert":xl,"data-swipe-out":ve,"data-swipe-direction":A,"data-expanded":!!(Q||de&&G),"data-testid":h.testId,style:{"--index":R,"--toasts-before":R,"--z-index":H.length-R,"--offset":`${te?xa:qa.current}px`,"--initial-height":de?"auto":`${La}px`,...Z,...h.style},onDragEnd:()=>{Se(!1),W(null),Ya.current=null},onPointerDown:ye=>{ye.button!==2&&(lr||!Ba||(vl.current=new Date,kt(qa.current),ye.target.setPointerCapture(ye.pointerId),ye.target.tagName!=="BUTTON"&&(Se(!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=Ae==="x"?Dt:un,Qa=Math.abs(rt)/lt;if(Math.abs(rt)>=eS||Qa>.11){kt(qa.current),h.onDismiss==null||h.onDismiss.call(h,h),q(Ae==="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),Se(!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:aS(Xe);!Ae&&(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(Ae==="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(Ae==="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`)}},_r&&!h.jsx&&Vt!=="loading"?ae.createElement("button",{"aria-label":ie,"data-disabled":lr,"data-close-button":!0,onClick:lr||!Ba?()=>{}:()=>{Va(),h.onDismiss==null||h.onDismiss.call(h,h)},className:On(k==null?void 0:k.closeButton,h==null||(c=h.classNames)==null?void 0:c.closeButton)},(wt=X==null?void 0:X.close)!=null?wt:Y1):null,(Vt||h.icon||h.promise)&&h.icon!==null&&((X==null?void 0:X[Vt])!==null||h.icon)?ae.createElement("div",{"data-icon":"",className:On(k==null?void 0:k.icon,h==null||(d=h.classNames)==null?void 0:d.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||Vn():null,h.type!=="loading"?Xa:null):null,ae.createElement("div",{"data-content":"",className:On(k==null?void 0:k.content,h==null||(m=h.classNames)==null?void 0:m.content)},ae.createElement("div",{"data-title":"",className:On(k==null?void 0:k.title,h==null||(g=h.classNames)==null?void 0:g.title)},h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title),h.description?ae.createElement("div",{"data-description":"",className:On(Ee,js,k==null?void 0:k.description,h==null||(y=h.classNames)==null?void 0:y.description)},typeof h.description=="function"?h.description():h.description):null),ae.isValidElement(h.cancel)?h.cancel:h.cancel&&Ro(h.cancel)?ae.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||J,onClick:ye=>{Ro(h.cancel)&&Ba&&(h.cancel.onClick==null||h.cancel.onClick.call(h.cancel,ye),Va())},className:On(k==null?void 0:k.cancelButton,h==null||(v=h.classNames)==null?void 0:v.cancelButton)},h.cancel.label):null,ae.isValidElement(h.action)?h.action:h.action&&Ro(h.action)?ae.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||ue,onClick:ye=>{Ro(h.action)&&(h.action.onClick==null||h.action.onClick.call(h.action,ye),!ye.defaultPrevented&&Va())},className:On(k==null?void 0:k.actionButton,h==null||(p=h.classNames)==null?void 0:p.actionButton)},h.action.label):null)};function H0(){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 lS(l,i){const u={};return[l,i].forEach((c,d)=>{const m=d===1,g=m?"--mobile-offset":"--offset",y=m?I1:W1;function v(p){["top","right","bottom","left"].forEach(S=>{u[`${g}-${S}`]=typeof p=="number"?`${p}px`:p})}typeof c=="number"||typeof c=="string"?v(c):typeof c=="object"?["top","right","bottom","left"].forEach(p=>{c[p]===void 0?u[`${g}-${p}`]=y:u[`${g}-${p}`]=typeof c[p]=="number"?`${c[p]}px`:c[p]}):v(y)}),u}const rS=ae.forwardRef(function(i,u){const{id:c,invert:d,position:m="bottom-right",hotkey:g=["altKey","KeyT"],expand:y,closeButton:v,className:p,offset:S,mobileOffset:h,theme:w="light",richColors:E,duration:j,style:C,visibleToasts:z=J1,toastOptions:R,dir:H=H0(),gap:Q=P1,icons:ee,containerAriaLabel:K="Notifications"}=i,[I,Z]=ae.useState([]),J=ae.useMemo(()=>c?I.filter(G=>G.toasterId===c):I.filter(G=>!G.toasterId),[I,c]),ue=ae.useMemo(()=>Array.from(new Set([m].concat(J.filter(G=>G.position).map(G=>G.position)))),[J,m]),[xe,Ee]=ae.useState([]),[Re,Xe]=ae.useState(!1),[ne,de]=ae.useState(!1),[k,X]=ae.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ie=ae.useRef(null),Ae=g.join("+").replace(/Key/g,"").replace(/Digit/g,""),W=ae.useRef(null),A=ae.useRef(!1),q=ae.useCallback(G=>{Z(P=>{var te;return(te=P.find(le=>le.id===G.id))!=null&&te.delete||ya.dismiss(G.id),P.filter(({id:le})=>le!==G.id)})},[]);return ae.useEffect(()=>ya.subscribe(G=>{if(G.dismiss){requestAnimationFrame(()=>{Z(P=>P.map(te=>te.id===G.id?{...te,delete:!0}:te))});return}setTimeout(()=>{hx.flushSync(()=>{Z(P=>{const te=P.findIndex(le=>le.id===G.id);return te!==-1?[...P.slice(0,te),{...P[te],...G},...P.slice(te+1)]:[G,...P]})})})}),[I]),ae.useEffect(()=>{if(w!=="system"){X(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?X("dark"):X("light")),typeof window>"u")return;const G=window.matchMedia("(prefers-color-scheme: dark)");try{G.addEventListener("change",({matches:P})=>{X(P?"dark":"light")})}catch{G.addListener(({matches:te})=>{try{X(te?"dark":"light")}catch(le){console.error(le)}})}},[w]),ae.useEffect(()=>{I.length<=1&&Xe(!1)},[I]),ae.useEffect(()=>{const G=P=>{var te;if(g.every(Se=>P[Se]||P.code===Se)){var we;Xe(!0),(we=ie.current)==null||we.focus()}P.code==="Escape"&&(document.activeElement===ie.current||(te=ie.current)!=null&&te.contains(document.activeElement))&&Xe(!1)};return document.addEventListener("keydown",G),()=>document.removeEventListener("keydown",G)},[g]),ae.useEffect(()=>{if(ie.current)return()=>{W.current&&(W.current.focus({preventScroll:!0}),W.current=null,A.current=!1)}},[ie.current]),ae.createElement("section",{ref:u,"aria-label":`${K} ${Ae}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ue.map((G,P)=>{var te;const[le,we]=G.split("-");return J.length?ae.createElement("ol",{key:G,dir:H==="auto"?H0():H,tabIndex:-1,ref:ie,className:p,"data-sonner-toaster":!0,"data-sonner-theme":k,"data-y-position":le,"data-x-position":we,style:{"--front-toast-height":`${((te=xe[0])==null?void 0:te.height)||0}px`,"--width":`${F1}px`,"--gap":`${Q}px`,...C,...lS(S,h)},onBlur:Se=>{A.current&&!Se.currentTarget.contains(Se.relatedTarget)&&(A.current=!1,W.current&&(W.current.focus({preventScroll:!0}),W.current=null))},onFocus:Se=>{Se.target instanceof HTMLElement&&Se.target.dataset.dismissible==="false"||A.current||(A.current=!0,W.current=Se.relatedTarget)},onMouseEnter:()=>Xe(!0),onMouseMove:()=>Xe(!0),onMouseLeave:()=>{ne||Xe(!1)},onDragEnd:()=>Xe(!1),onPointerDown:Se=>{Se.target instanceof HTMLElement&&Se.target.dataset.dismissible==="false"||de(!0)},onPointerUp:()=>de(!1)},J.filter(Se=>!Se.position&&P===0||Se.position===G).map((Se,ve)=>{var ea,Wt;return ae.createElement(nS,{key:Se.id,icons:ee,index:ve,toast:Se,defaultRichColors:E,duration:(ea=R==null?void 0:R.duration)!=null?ea:j,className:R==null?void 0:R.className,descriptionClassName:R==null?void 0:R.descriptionClassName,invert:d,visibleToasts:z,closeButton:(Wt=R==null?void 0:R.closeButton)!=null?Wt:v,interacting:ne,position:G,style:R==null?void 0:R.style,unstyled:R==null?void 0:R.unstyled,classNames:R==null?void 0:R.classNames,cancelButtonStyle:R==null?void 0:R.cancelButtonStyle,actionButtonStyle:R==null?void 0:R.actionButtonStyle,closeButtonAriaLabel:R==null?void 0:R.closeButtonAriaLabel,removeToast:q,toasts:J.filter(dt=>dt.position==Se.position),heights:xe.filter(dt=>dt.position==Se.position),setHeights:Ee,expandByDefault:y,gap:Q,expanded:Re,swipeDirections:i.swipeDirections})})):null}))}),sS=({...l})=>{const{theme:i="system"}=k1();return o.jsx(rS,{theme:i,className:"toaster group",icons:{success:o.jsx(ps,{className:"size-4"}),info:o.jsx(Ix,{className:"size-4"}),warning:o.jsx(Vo,{className:"size-4"}),error:o.jsx(cb,{className:"size-4"}),loading:o.jsx(hi,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...l})},B0=l=>typeof l=="boolean"?`${l}`:l===0?"0":l,q0=kp,Kp=(l,i)=>u=>{var c;if((i==null?void 0:i.variants)==null)return q0(l,u==null?void 0:u.class,u==null?void 0:u.className);const{variants:d,defaultVariants:m}=i,g=Object.keys(d).map(p=>{const S=u==null?void 0:u[p],h=m==null?void 0:m[p];if(S===null)return null;const w=B0(S)||B0(h);return d[p][w]}),y=u&&Object.entries(u).reduce((p,S)=>{let[h,w]=S;return w===void 0||(p[h]=w),p},{}),v=i==null||(c=i.compoundVariants)===null||c===void 0?void 0:c.reduce((p,S)=>{let{class:h,className:w,...E}=S;return Object.entries(E).every(j=>{let[C,z]=j;return Array.isArray(z)?z.includes({...m,...y}[C]):{...m,...y}[C]===z})?[...p,h,w]:p},[]);return q0(l,g,v,u==null?void 0:u.class,u==null?void 0:u.className)},$p=48,Bn=(l,i=0)=>{const u=new Int32Array(l.length);for(let c=0;c<l.length;c++)u[c]=l.charCodeAt(c)-$p-i;return u},Xo=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)-$p;u+=d>>>1^-(d&1),i[c]=u}return i},iS=384,oS=[],Ar=Xo(Bn("E0500002005282000000002000150000020021820000011200000003022202000300004200120000200420001200021200301200010400162000010000220021010:2192001200220012000220012000200200200400010200040000000000400200108200110100000022010313000162002000020020012020080213000228200000000082000000000120002000120020020040101020300130001001010")),cS=Xo(Bn(":11111111211111119311546544411119731869:671397415686432441111111111161114151214313433415:78311132233313187211117221449443411141111151152226611131111112212518142224214215421421542142424242516171151615616347111111111197911327451111111111111111111113134714133513411111311111111111111111111112444411111342312715245411117:3")),uS="@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",dS=(()=>{const l=Ar.length-1,i=new Int32Array(l);for(let d=l-1;d>=0;d--){let m=1,g=d+1;for(let y=Ar[d];y<Ar[d+1];y++)m+=i[g],g+=i[g];i[d]=m}const u=new Int32Array(Ar[l]);let c=0;for(let d=0;d<l;d++){let m=d+1;for(let g=Ar[d];g<Ar[d+1];g++)u[c++]=m,m+=i[m]}return u})(),fS=Bn("02000000000000900<=0?000B000F00F00ŏI0J0LNPRTVX0000]_a00000000000000000000000rst0000000zŏ00000000000…ŏ000ˆ0000ŏ0000000000—0000000000000000000000000000000000000000000000000000Ë000000000000000000000Þ000000000000000000ð0000000ø0ùúûüýþÿĀāĂ㥹Ć000000000000000000000000000000000000000000ħ0ĨĪ00000000000000000000ļĽ00000Ŭ000000",1),mS=Xo(Bn("1233333593464636351265367151576")),hS=Bn("93203242332583253248325D>E?F@03263243255B:032523853:0325B:8GA032542H<C=12727B:0324325853;D>E?3257D>03258432585:0325B:;0328B:032"),pS=Bn("012123445661666666789111:5;;;;;;;;444;;;:62999<1161=62>>?61:21@ABCD4446996:64E:::;:?::64:F114GHHIHHHHIHH1HH1HH1HHHHHH::EJK4444::EJ4444441691;644444114244444:;L6666555555555555555999666664444444444444444444444226?6:66644M9N?D:111::::6DJ199"),gS=Fl("0202002020020020020020020020020200200200200200200200002020202001003040106000200200200200200200200200200200200200200200200200200200200200200200200200200200200020020020020020020002020200202002002002002002002002002002020002002020020200220200200200200200200200200200200020020020000200020002000200200200020020020002000200200200020020202002020202000200200020022000200200020020002002000200220002002000200W0Z00020020002002020002002000200g0j0002002000200200020020002002000200200020020002000200002000002002002002002000200020000200002002002002002002002020020020200200200200200200200200202020020020020020020020020002002002020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020002002002002002002000200200200200200200200200200020202020002000200020002002002002000020200200"),vS=(()=>{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})(),yS="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}),Y0=Fl("0000000000000000000000000000000000000000000000000000000000000262242:6@200000006:240B428:4422400002046044222426220026642642462026224222824220022400000000\\00N222422242222222224062242222222422226264222422222222222222442804222422222222222222222222220<4<0204260002444020204224422"),xS=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"),bS=Fl("02222222222222222222222222222222222222222222222222222222222222222203062222222222IL2200IL021042222]`222IL0gj2e50n2222U00X202[^2y0000560|{~ƒ†22‰Œ‹>22|22222222222G000q†OVI00000}š2›>40000ŒB00000I¨­000°00000000000000021Q²±00´“000000000000000000000–222›HGHa5¾222Ã6À2222ÍÐ000­°2±"),Jp=new Int32Array(991),Wp=new Int32Array(991),Ip=new Int32Array(991);let sd="";const id=new Int32Array(1030);{const l=new Map;let i=0,u=0;for(let c=0;c<Y0.length;c++)for(const d of yS[bS[c]]){let m=l.get(d);m===void 0&&(m=i++,l.set(d,m),id[m*2]=sd.length,id[m*2+1]=d.length,sd+=d),Jp[u]=Y0[c],Wp[u]=xS[c],Ip[u]=m,u++}}const SS=Fl("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"),wS=Xo(Bn("1::22222432:222:22:22>222222:22:2221322511111311111114")),jS=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"),NS=Bn("ij"),ES=Bn("—"),AS=Bn("1"),CS="* ** after backdrop before details-content file first-letter first-line marker placeholder selection";var TS={GROUP_COUNT:iS,customValidatorNames:oS,edgeStart:Ar,labelStart:cS,labelText:uS,edgeTarget:dS,nodeGroup:fS,nodeVlist:vS,vlistPat:mS,vlistOps:hS,vlistRef:pS,vlistGroup:gS,litAnchor:Jp,litGroup:Wp,litPool:Ip,poolOffsets:id,poolText:sd,adjGid:SS,adjStart:wS,adjTgt:jS,patGid:NS,patTgt:ES,postfixLookupGroups:AS,orderSensitiveModifiers:CS};const zS="line"in new Error,Un=-1,Er=-1,ed=(l,i,u)=>{let c=2166136261;for(let d=i;d<u;d++)c=Math.imul(c^l.charCodeAt(d),16777619);return c},td=(l,i,u)=>{const c=u-i;let d=Math.imul(c,2654435761)^l.charCodeAt(i);if(c>3){const m=c>>2,g=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+g)<<8^l.charCodeAt(i+g+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},_S=(l,i,u={})=>{const{GROUP_COUNT:c,edgeStart:d,labelStart:m,labelText:g,edgeTarget:y,nodeGroup:v,nodeVlist:p,vlistPat:S,vlistOps:h,vlistRef:w,vlistGroup:E,litAnchor:j,litGroup:C,litPool:z,poolOffsets:R,poolText:H,adjGid:Q,adjStart:ee,adjTgt:K,patGid:I,patTgt:Z,postfixLookupGroups:J,customValidatorNames:ue,orderSensitiveModifiers:xe}=l,Ee=new Int32Array(c).fill(-1);for(let O=0;O<Q.length;O++)Ee[Q[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 de=new Uint8Array(c);for(let O=0;O<J.length;O++)de[J[O]]=1;const k=d.length-1,X=new Uint8Array(k);let ie=0,Ae=!0;for(let O=0;O<j.length;O++){X[j[O]]=1;const $=R[z[O]*2+1];$>ie&&(ie=$);const F=H.charCodeAt(R[z[O]*2]);(F===91||F===40)&&(Ae=!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 $=R[z[O]*2];let F=(ed(H,$,$+R[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,fe)=>{let he=(ed($,F,fe)^Math.imul(O,2654435761)|0)&W-1;const be=fe-F;for(;;){const Be=A[he];if(Be===-1)return-1;if(j[Be]===O&&R[z[Be]*2+1]===be){const st=R[z[Be]*2];let qe=!0;for(let pe=0;pe<be;pe++)if(H.charCodeAt(st+pe)!==$.charCodeAt(F+pe)){qe=!1;break}if(qe)return C[Be]}he=he+1&W-1}},G=u.cacheSize??8192,P=u.prefix??l.prefix??"",te=P===""?"":P+":",le=te.length,we=(ue??[]).map(O=>{throw new Error("cn: missing validator "+O)}),Se=/\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,kt=-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 fe=O.charCodeAt($),he=O.charCodeAt(F-1);if(fe===91&&he===93)dt=1;else if(fe===40&&he===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,kt=be,La=be+1)}},Sn=(O,$,F,fe)=>{if(F-$!==fe.length)return!1;for(let he=0;he<fe.length;he++)if(O.charCodeAt($+he)!==fe.charCodeAt(he))return!1;return!0},ar=/^\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 fe=O.charCodeAt($+11);return fe===115&&F-$>=17&&Sn(O,$+10,$+16,"-size/")||fe===110&&F-$>=19&&Sn(O,$+10,$+18,"-normal/")},js=[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(" ")),_r=[2,3,1,0,0,0,4,5,0,0,0,0,0,1,1],Gn=(O,$,F,fe)=>{if(O>=10){if(O>=25)return we[O-25]($.slice(F,fe));const he=O-10;if(dt!==js[he])return!1;if(xa>=0){for(const be of Yn[he])if(Sn($,xa,kt,be))return!0;return!1}switch(_r[he]){case 0:return!1;case 1:return!0;case 2:{const be=$.slice(La,Ha);return Se.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 ar.test($.slice(F,fe));case 5:return Ba($.slice(F,fe));case 6:{const he=$.slice(F,fe);return!!he&&Number.isInteger(Number(he))}case 7:return fe>F&&$.charCodeAt(fe-1)===37&&Ba($.slice(F,fe-1));case 8:return Vt.test($.slice(F,fe));default:return Xt($,F,fe)}},nr=new Set(typeof xe=="string"?xe.split(" "):xe),qa=(O,$,F,fe,he,be)=>{const Be=ed($,F,fe)^(he?2654435769:0)|0;let st=O.get(Be);if(st!==void 0)e:for(let Ce=0;Ce<st.length;Ce++){const ke=st[Ce];if(!(ke.imp!==he||ke.k.length!==fe-F)){for(let yt=0;yt<ke.k.length;yt++)if(ke.k.charCodeAt(yt)!==$.charCodeAt(F+yt))continue e;return ke.id}}else O.set(Be,st=[]);const qe=$.slice(F,fe),pe=be(qe);return st.push({k:qe,imp:he,id:pe}),pe};let yl=new Map,Ya=new Map,Ga=2;const Yt=4096,ba=(O,$)=>{const F=[];let fe=0,he=0,be=0;for(let pe=0;pe<O.length;pe++){const Ce=O.charCodeAt(pe);fe===0&&he===0&&Ce===58?(F.push(O.slice(be,pe)),be=pe+1):Ce===91?fe++:Ce===93?fe--:Ce===40?he++:Ce===41&&he--}F.push(O.slice(be));let Be=F[0];if(F.length>1){const pe=[];let Ce=[];for(const ke of F)ke.charCodeAt(0)===91||nr.has(ke)?(Ce.length&&(pe.push(...Ce.sort()),Ce=[]),pe.push(ke)):Ce.push(ke);Ce.length&&pe.push(...Ce.sort()),Be=pe.join(":")}const st=$?Be+" !":Be;let qe=Ya.get(st);return qe===void 0&&Ya.set(st,qe=Ga++),qe};let Mt=new Map,xl=c;const lr=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,fe,he,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,fe),cn[qe]=he,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 rr=new Int32Array(c);let jn=2048,ji=21,Rr=new Float64Array(jn),Nn=new Int32Array(jn),Ka=0;const En=(O,$)=>{if(O===0&&$<c)return rr[$]===Ka?1:(rr[$]=Ka,0);const F=O*2097152+$+1;let fe=Math.imul(F,2654435761)>>>ji;for(;Nn[fe]===Ka;){if(Rr[fe]===F)return 1;fe=fe+1&jn-1}return Rr[fe]=F,Nn[fe]=Ka,0},dn=(O,$,F,fe,he)=>{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(Mt,O,$+1,be,0,Va)}if(fe>=0&&v[fe]>=0)return v[fe];for(let be=he-1;be>=0;be--){const Be=Za[be];if(Be>F)continue;const st=jt[be],qe=F-Be;if(X[st]===1&&qe>0&&qe<=ie){const xt=O.charCodeAt(Be);if(Ae===!1||xt!==91&&xt!==40){const $a=q(st,O,Be,F);if($a>=0)return $a}}const pe=p[st];if(pe<0)continue;const Ce=w[pe],ke=S[Ce],yt=S[Ce+1];if(ke===yt)continue;ta(O,Be,F);const Ot=ne[pe]-ke;for(let xt=ke;xt<yt;xt++)if(Gn(h[xt],O,Be,F))return E[Ot+xt]}return Un},An=O=>{const $=O.length;let F=0,fe=0,he=!1;(Ga>Yt||yl.size>Yt)&&(yl=new Map,Ya=new Map,Ga=2,lt()),xl>lr&&(Mt=new Map,xl=c,lt());let be=0;for(;be<$;){let pe=O.charCodeAt(be);if(pe===32||pe>=9&&pe<=13||pe>=160&&vl(pe)){pe!==32&&(he=!0),be++;continue}const Ce=be;let ke=0;for(;be<$;){if(pe=O.charCodeAt(be),pe<=32){if(pe===32)break;if(pe>=9&&pe<=13){he=!0;break}}else if(pe>=160&&vl(pe)){he=!0;break}ke=Math.imul(ke^pe,16777619),be++}const yt=be,Ot=yt-Ce;F===rt&&wn();const xt=F++;gt[xt]=Ce,vt[xt]=yt,fe+=Ot,ke^=Math.imul(Ot,2654435761);const $a=ke^ke>>>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(Ce+Ta)){Ca=!1;break}if(Ca){Sa[xt]=ye[Ve],It[xt]=at[Ve],Xn[xt]=pt[Ve];continue}}}let Sl=Ce;if(le!==0){if(yt-Ce<=le||!O.startsWith(te,Ce)){Sa[xt]=Un,un(Ja,O,Ce,yt,$a,Un,0,0);continue}Sl=Ce+le}let wl=0,ja=0,Kn=-1,or=-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){or=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,Es=0;na>Ut&&O.charCodeAt(na-1)===33?(Jn=!0,na--):na>Ut&&O.charCodeAt(Ut)===33&&(Jn=!0,Ut++,Es=1);let Na=-1;or>$n&&(Na=or+Es,Na>=na&&(Na=-1));let Ea=Ut;na-Ut>1&&O.charCodeAt(Ut)===45&&(Ea=Ut+1);let da=0,fa=0,la=0,Or=-1,ra=0;(p[0]>=0||X[0]===1)&&(jt[0]=0,Za[0]=Ea,ra=1);let Ur=Er,jl=0;for(let Ve=Ea;Ve<na;Ve++)if(Ve===Na&&(Ur=fa<la?Er:da,jl=ra),da!==Er){const Aa=O.charCodeAt(Ve);let Ca=-1;if(fa<la)g.charCodeAt(fa)===Aa?(fa++,fa===la&&(Ca=da=Or)):da=Er;else{const Ta=d[da],Tn=d[da+1];let Al=Er;for(let zn=Ta;zn<Tn;zn++){const As=m[zn];if(g.charCodeAt(As)===Aa){m[zn+1]-As===1?Ca=Al=y[zn]:(fa=As+1,la=m[zn+1],Or=y[zn],Al=da);break}}da=Al}if(Ca>=0&&(p[Ca]>=0||X[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&&(Ur=fa<la?Er:da,jl=ra);const Nl=fa<la?Er:da;let sa,Lt=!1;if(Na>=0)if(Lt=!0,sa=dn(O,Ut,Na,Ur,jl),sa!==Un&&sa<c&&de[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,Ce,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,ji--;Rr=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&&(rr.fill(0),Nn.fill(0),Ka=1);let Be=!1;for(let pe=F-1;pe>=0;pe--){const Ce=Sa[pe];if(Ce===Un){Qn[pe]=1;continue}const ke=It[pe];if(En(ke,Ce)===1){Qn[pe]=0,Be=!0;continue}if(Qn[pe]=1,Ce<c){const yt=Ee[Ce];if(yt>=0)for(let Ot=ee[yt];Ot<ee[yt+1];Ot++)En(ke,K[Ot]);if(Xn[pe]&1)for(let Ot=0;Ot<I.length;Ot++)I[Ot]===Ce&&En(ke,Z[Ot])}}if(!Be&&!he&&$===fe+F-1)return O;let st="",qe=0;for(;qe<F;){if(!Qn[qe]){qe++;continue}const pe=gt[qe];let Ce=vt[qe],ke=qe+1;for(;ke<F&&Qn[ke]&&gt[ke]===Ce+1&&O.charCodeAt(Ce)===32;)Ce=vt[ke],ke++;st.length>0&&(st+=" "),st+=O.slice(pe,Ce),qe=ke}return st},aa=16384,Fe=new Int32Array(aa*2);let sr=0,ca=1,wa=Object.create(null),Zn=Object.create(null),bl=new Map,Ns=new Map,ir=0,kr=0;const Cn=()=>{sr^=aa,ca=ca+1|0,kr=0},Mr=O=>{let $=wa[O];if($!==void 0)return $;const F=td(O,0,O.length),fe=(F&16383)+sr,he=Fe[fe]===(F^ca)||Fe[fe^aa]===(F^ca-1);return he&&($=Zn[O],$!==void 0)?(wa[O]=$,$):($=An(O),he?(wa[O]=$,++ir>G&&(ir=0,Zn=wa,wa=Object.create(null),Cn())):(Fe[fe]=F^ca,++kr>aa&&Cn()),$)},fn=O=>{let $=bl.get(O);if($!==void 0)return $;const F=td(O,0,O.length),fe=(F&16383)+sr,he=Fe[fe]===(F^ca)||Fe[fe^aa]===(F^ca-1);return he&&($=Ns.get(O),$!==void 0)?(bl.set(O,$),$):($=An(O),he?(bl.set(O,$),++ir>G&&(ir=0,Ns=bl,bl=new Map,Cn())):(Fe[fe]=F^ca,++kr>aa&&Cn()),$)},ua=O=>{const $=td(O,0,O.length),F=($&16383)+sr;return Fe[F]===($^ca)||Fe[F^aa]===($^ca-1)?!0:(Fe[F]=$^ca,++kr>aa&&Cn(),!1)},Dr=G===0?An:zS?O=>{const $=bl.get(O);return $!==void 0?$:fn(O)}:Mr;return{merge:function(){return arguments.length===1&&typeof arguments[0]=="string"?Dr(arguments[0]):Dr(kS.apply(null,arguments))},mergeString:Dr,seenBefore:G===0?()=>!1:ua,mergeUncached:An}},Lo=(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 g=typeof m=="string"?m:Lo(m,i);g&&(u&&(u+=" "),u+=g)}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},RS=(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:Lo(d,i);m&&(u&&(u+=" "),u+=m)}return u},kS=function(){return RS(arguments,!1)},MS=(l,i)=>{const u=i===void 0?()=>!0:i.seenBefore,c=i===void 0?l:i.mergeUncached;let d=new Map,m=new Map,g=0,y=null;const v=(w,E,j,C)=>{let z=0;if(E){if(E!==w.a0)return!1;z=1}if(j){if(j!==(z===0?w.a0:w.a1))return!1;z++}if(C){if(C!==(z===0?w.a0:z===1?w.a1:w.a2))return!1;z++}return z===w.t},p=(w,E)=>{const j=w.a;let C=0;for(let z=0;z<E.length;z++){const R=E[z];if(R){if(R!==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&&p(C,w))return y=C,C.r;if(y!==null&&y!==C&&p(y,w))return y.r}let z="",R=-1,H=0,Q=!1;for(let I=0;I<j;I++){let Z=w[I];if(Z){if(typeof Z!="string"){if(Z=w[I]=Lo(Z,!0),!Z)continue;Q=!0}R<0&&(z=Z,R=I),H++}}if(H===0)return"";if(H===1)return l(z);if(Q){if(C!==null&&p(C,w))return y=C,C.r;if(y!==null&&y!==C&&p(y,w))return y.r}let ee=d.get(z);ee===void 0&&(ee=m.get(z),ee!==void 0&&d.set(z,ee));let K=null;if(ee!==void 0)e:for(let I=0;I<ee.length;I++){const Z=ee[I];if(Z.t!==H)continue;const J=Z.a;let ue=1;for(let xe=R+1;xe<j;xe++){const Ee=w[xe];if(Ee&&Ee!==J[ue++])continue e}K=Z;break}if(K===null){let I=z;const Z=[z];for(let J=R+1;J<j;J++){const ue=w[J];ue&&(I+=" "+ue,Z.push(ue))}if(!u(I))return c(I);K={r:l(I),t:Z.length,a0:Z[0],a1:Z[1],a2:Z[2]??"",a:Z,n:null},ee===void 0&&d.set(z,ee=[]),ee.length>=256&&ee.shift(),ee.push(K),++g>1e3&&(g=0,m=d,d=new Map)}return y!==null&&y!==K&&(y.n=K),y=K,K.r},h=w=>Array.isArray(w)?S(w.slice(),!1):l(Lo(w,!0));return function(w,E,j){const C=arguments.length;if((C|1)===3){const H=y;if(H!==null){const Q=H.n;if(Q!==null&&v(Q,w,E,j))return y=Q,Q.r;if(H!==Q&&v(H,w,E,j))return H.r}return S([w,E,j],!0)}if(C===1)return typeof w=="string"?l(w):h(w);const z=y;if(z!==null){const H=z.n;if(H!==null){const Q=H.a;let ee=0,K=!0;for(let I=0;I<C;I++){const Z=arguments[I];if(Z){if(Z!==Q[ee]){K=!1;break}ee++}}if(K&&ee===H.t)return y=H,H.r}if(z!==H){const Q=z.a;let ee=0,K=!0;for(let I=0;I<C;I++){const Z=arguments[I];if(Z){if(Z!==Q[ee]){K=!1;break}ee++}}if(K&&ee===z.t)return z.r}}const R=[];for(let H=0;H<C;H++)R.push(arguments[H]);return S(R,!0)}},G0=_S(TS),Pt=MS(G0.mergeString,G0);var DS=Object.defineProperty,_d=(l,i)=>DS(l,"name",{value:i,configurable:!0});function od(l,i){if(typeof l=="function")return l(i);l!=null&&(l.current=i)}_d(od,"setRef");function Fp(...l){return i=>{let u=!1;const c=l.map(d=>{const m=od(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():od(l[d],null)}}}}_d(Fp,"composeRefs");function tr(...l){return b.useCallback(Fp(...l),l)}_d(tr,"useComposedRefs");var OS=Object.defineProperty,xn=(l,i)=>OS(l,"name",{value:i,configurable:!0});function Rd(l){const i=b.forwardRef((u,c)=>{let{children:d,...m}=u,g=null,y=!1;const v=[];cd(d)&&typeof ko=="function"&&(d=ko(d._payload)),b.Children.forEach(d,w=>{var E;if(ng(w)){y=!0;const j=w;let C="child"in j.props?j.props.child:j.props.children;cd(C)&&typeof ko=="function"&&(C=ko(C._payload)),g=LS(j,C),v.push((E=g==null?void 0:g.props)==null?void 0:E.children)}else v.push(w)}),g?g=b.cloneElement(g,void 0,v):!y&&b.Children.count(d)===1&&b.isValidElement(d)&&(g=d);const p=g?ag(g):void 0,S=tr(c,p);if(!g){if(d||d===0)throw new Error(y?qS(l):BS(l));return d}const h=tg(m,g.props??{});return g.type!==b.Fragment&&(h.ref=c?S:p),b.cloneElement(g,h)});return i.displayName=`${l}.Slot`,i}xn(Rd,"createSlot");var Pp=Rd("Slot"),eg=Symbol.for("radix.slottable");function US(l){const i=xn(u=>"child"in u?u.children(u.child):u.children,"Slottable");return i.displayName=`${l}.Slottable`,i.__radixId=eg,i}xn(US,"createSlottable");var LS=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 tg(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(tg,"mergeProps");function ag(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(ag,"getElementRef");function ng(l){return b.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===eg}xn(ng,"isSlottable");var HS=Symbol.for("react.lazy");function cd(l){return l!=null&&typeof l=="object"&&"$$typeof"in l&&l.$$typeof===HS&&"_payload"in l&&lg(l._payload)}xn(cd,"isLazyComponent");function lg(l){return typeof l=="object"&&l!==null&&"then"in l}xn(lg,"isPromiseLike");var BS=xn(l=>`${l} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),qS=xn(l=>`${l} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),ko=Tv[" use ".trim().toString()],YS=Object.defineProperty,GS=(l,i)=>YS(l,"name",{value:i,configurable:!0}),VS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],bi=VS.reduce((l,i)=>{const u=Rd(`Primitive.${i}`),c=b.forwardRef((d,m)=>{const{asChild:g,...y}=d,v=g?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 XS(l,i){l&&vp.flushSync(()=>l.dispatchEvent(i))}GS(XS,"dispatchDiscreteCustomEvent");var QS=Object.defineProperty,ln=(l,i)=>QS(l,"name",{value:i,configurable:!0});function ZS(l,i){const u=b.createContext(i);u.displayName=l+"Context";const c=ln(m=>{const{children:g,...y}=m,v=b.useMemo(()=>y,Object.values(y));return o.jsx(u.Provider,{value:v,children:g})},"Provider");c.displayName=l+"Provider";function d(m,g={}){const{optional:y=!1}=g,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(ZS,"createContext");function rg(l,i=[]){let u=[];function c(m,g){const y=b.createContext(g);y.displayName=m+"Context";const v=u.length;u=[...u,g];const p=ln(h=>{var R;const{scope:w,children:E,...j}=h,C=((R=w==null?void 0:w[l])==null?void 0:R[v])||y,z=b.useMemo(()=>j,Object.values(j));return o.jsx(C.Provider,{value:z,children:E})},"Provider");p.displayName=m+"Provider";function S(h,w,E={}){var R;const{optional:j=!1}=E,C=((R=w==null?void 0:w[l])==null?void 0:R[v])||y,z=b.useContext(C);if(z)return z;if(g!==void 0)return g;if(!j)throw new Error(`\`${h}\` must be used within \`${m}\``)}return ln(S,"useContext"),[p,S]}ln(c,"createContext");const d=ln(()=>{const m=u.map(g=>b.createContext(g));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,sg(d,...i)]}ln(rg,"createContextScope");function sg(...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 g=c.reduce((y,{useScope:v,scopeName:p})=>{const h=v(m)[`__scope${p}`];return{...y,...h}},{});return b.useMemo(()=>({[`__scope${i.scopeName}`]:g}),[g])},"useComposedScopes")},"createScope");return u.scopeName=i.scopeName,u}ln(sg,"composeContextScopes");var KS=Object.defineProperty,xs=(l,i)=>KS(l,"name",{value:i,configurable:!0}),ig=!!(typeof window<"u"&&window.document&&window.document.createElement);function Il(l,i,{checkForDefaultPrevented:u=!0}={}){return xs(function(d){if(l==null||l(d),u===!1||!d||!d.defaultPrevented)return i==null?void 0:i(d)},"handleEvent")}xs(Il,"composeEventHandlers");function $S(l){var i;if(!ig)throw new Error("Cannot access window outside of the DOM");return((i=l==null?void 0:l.ownerDocument)==null?void 0:i.defaultView)??window}xs($S,"getOwnerWindow");function ud(l){if(!ig)throw new Error("Cannot access document outside of the DOM");return(l==null?void 0:l.ownerDocument)??document}xs(ud,"getOwnerDocument");function og(l,i=!1){const{activeElement:u}=ud(l);if(!(u!=null&&u.nodeName))return null;if(cg(u)&&u.contentDocument)return og(u.contentDocument.body,i);if(i){const c=u.getAttribute("aria-activedescendant");if(c){const d=ud(u).getElementById(c);if(d)return d}}return u}xs(og,"getActiveElement");function cg(l){return l.tagName==="IFRAME"}xs(cg,"isFrame");var dd=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},JS=Object.defineProperty,hl=(l,i)=>JS(l,"name",{value:i,configurable:!0});function ug(l,i){return b.useReducer((u,c)=>i[u][c]??u,l)}hl(ug,"useStateMachine");var Qo=hl(l=>{const{present:i,children:u}=l,c=dg(i),d=typeof u=="function"?u({present:c.isPresent}):b.Children.only(u),m=fg(c.ref,mg(d));return typeof u=="function"||c.isPresent?b.cloneElement(d,{ref:m}):null},"Presence");function dg(l){const[i,u]=b.useState(),c=b.useRef(null),d=b.useRef(l),m=b.useRef("none"),g=b.useRef(void 0),y=l?"mounted":"unmounted",[v,p]=ug(y,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{v==="mounted"?(m.current=g.current??fs(c.current),g.current=void 0):m.current="none"},[v]),dd(()=>{const S=c.current,h=d.current;if(h!==l){const E=m.current,j=fs(S);l?(g.current=j,p("MOUNT")):j==="none"||(S==null?void 0:S.display)==="none"?p("UNMOUNT"):p(h&&E!==j?"ANIMATION_OUT":"UNMOUNT"),d.current=l}},[l,p]),dd(()=>{if(i){let S;const h=i.ownerDocument.defaultView??window,w=hl(j=>{const z=fs(c.current).includes(CSS.escape(j.animationName));if(j.target===i&&z&&(p("ANIMATION_END"),!d.current)){const R=i.style.animationFillMode;i.style.animationFillMode="forwards",S=h.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=R)})}},"handleAnimationEnd"),E=hl(j=>{j.target===i&&(m.current=fs(c.current))},"handleAnimationStart");return i.addEventListener("animationstart",E),i.addEventListener("animationcancel",w),i.addEventListener("animationend",w),()=>{h.clearTimeout(S),i.removeEventListener("animationstart",E),i.removeEventListener("animationcancel",w),i.removeEventListener("animationend",w)}}else p("ANIMATION_END")},[i,p]),{isPresent:["mounted","unmountSuspended"].includes(v),ref:b.useCallback(S=>{if(S){const h=getComputedStyle(S);c.current=h,g.current=fs(h)}else c.current=null;u(S)},[])}}hl(dg,"usePresence");function fd(l,i){if(typeof l=="function")return l(i);l!=null&&(l.current=i)}hl(fd,"setRef");function fg(...l){const i=b.useRef(l);return i.current=l,b.useCallback(u=>{const c=i.current;let d=!1;const m=c.map(g=>{const y=fd(g,u);return!d&&typeof y=="function"&&(d=!0),y});if(d)return()=>{for(let g=0;g<m.length;g++){const y=m[g];typeof y=="function"?y():fd(c[g],null)}}},[])}hl(fg,"useStableComposedRefs");function fs(l){return(l==null?void 0:l.animationName)||"none"}hl(fs,"getAnimationName");function mg(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(mg,"getElementRef");var WS=Object.defineProperty,IS=(l,i)=>WS(l,"name",{value:i,configurable:!0}),FS=b.createContext(void 0);function hg(l){const i=b.useContext(FS);return l||i||"ltr"}IS(hg,"useDirection");var PS=Object.defineProperty,ew=(l,i)=>PS(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)}),[])}ew(Wl,"useCallbackRef");var tw=Object.defineProperty,aw=(l,i)=>tw(l,"name",{value:i,configurable:!0});function pg(l,[i,u]){return Math.min(u,Math.max(i,l))}aw(pg,"clamp");var nw=Object.defineProperty,Ue=(l,i)=>nw(l,"name",{value:i,configurable:!0});function gg(l,i){return b.useReducer((u,c)=>i[u][c]??u,l)}Ue(gg,"useStateMachine");var vg="ScrollArea",[yg,Vw]=rg(vg),[lw,on]=yg(vg),rw=b.forwardRef(Ue(function(i,u){const{__scopeScrollArea:c,type:d="hover",dir:m,scrollHideDelay:g=600,...y}=i,[v,p]=b.useState(null),[S,h]=b.useState(null),[w,E]=b.useState(null),[j,C]=b.useState(null),[z,R]=b.useState(null),[H,Q]=b.useState(0),[ee,K]=b.useState(0),[I,Z]=b.useState(!1),[J,ue]=b.useState(!1),xe=tr(u,p),Ee=hg(m);return o.jsx(lw,{scope:c,type:d,dir:Ee,scrollHideDelay:g,scrollArea:v,viewport:S,onViewportChange:h,content:w,onContentChange:E,scrollbarX:j,onScrollbarXChange:C,scrollbarXEnabled:I,onScrollbarXEnabledChange:Z,scrollbarY:z,onScrollbarYChange:R,scrollbarYEnabled:J,onScrollbarYEnabledChange:ue,onCornerWidthChange:Q,onCornerHeightChange:K,children:o.jsx(bi.div,{dir:Ee,...y,ref:xe,style:{position:"relative","--radix-scroll-area-corner-width":H+"px","--radix-scroll-area-corner-height":ee+"px",...i.style}})})},"ScrollArea")),sw="ScrollAreaViewport",iw=b.forwardRef(Ue(function(i,u){const{__scopeScrollArea:c,children:d,nonce:m,...g}=i,y=on(sw,c),v=b.useRef(null),p=tr(u,v,y.onViewportChange);return o.jsxs(o.Fragment,{children:[o.jsx(ow,{nonce:m}),o.jsx(bi.div,{"data-radix-scroll-area-viewport":"",...g,ref:p,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")),ow=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",cw=b.forwardRef(Ue(function(i,u){const{forceMount:c,...d}=i,m=on(gl,i.__scopeScrollArea),{onScrollbarXEnabledChange:g,onScrollbarYEnabledChange:y}=m,v=i.orientation==="horizontal";return b.useEffect(()=>(v?g(!0):y(!0),()=>{v?g(!1):y(!1)}),[v,g,y]),m.type==="hover"?o.jsx(uw,{...d,ref:u,forceMount:c}):m.type==="scroll"?o.jsx(dw,{...d,ref:u,forceMount:c}):m.type==="auto"?o.jsx(xg,{...d,ref:u,forceMount:c}):m.type==="always"?o.jsx(kd,{...d,ref:u,"data-state":"visible"}):null},"ScrollAreaScrollbar")),uw=b.forwardRef(Ue(function(i,u){const{forceMount:c,...d}=i,m=on(gl,i.__scopeScrollArea),[g,y]=b.useState(!1);return b.useEffect(()=>{const v=m.scrollArea;let p=0;if(v){const S=Ue(()=>{window.clearTimeout(p),y(!0)},"handlePointerEnter"),h=Ue(()=>{p=window.setTimeout(()=>y(!1),m.scrollHideDelay)},"handlePointerLeave");return v.addEventListener("pointerenter",S),v.addEventListener("pointerleave",h),()=>{window.clearTimeout(p),v.removeEventListener("pointerenter",S),v.removeEventListener("pointerleave",h)}}},[m.scrollArea,m.scrollHideDelay]),o.jsx(Qo,{present:c||g,children:o.jsx(xg,{"data-state":g?"visible":"hidden",...d,ref:u})})},"ScrollAreaScrollbarHover")),dw=b.forwardRef(Ue(function(i,u){const{forceMount:c,...d}=i,m=on(gl,i.__scopeScrollArea),g=i.orientation==="horizontal",y=wi(()=>p("SCROLL_END"),100),[v,p]=gg("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(()=>p("HIDE"),m.scrollHideDelay);return()=>window.clearTimeout(S)}},[v,m.scrollHideDelay,p]),b.useEffect(()=>{const S=m.viewport,h=g?"scrollLeft":"scrollTop";if(S){let w=S[h];const E=Ue(()=>{const j=S[h];w!==j&&(p("SCROLL"),y()),w=j},"handleScroll");return S.addEventListener("scroll",E),()=>S.removeEventListener("scroll",E)}},[m.viewport,g,p,y]),o.jsx(Qo,{present:c||v!=="hidden",children:o.jsx(kd,{"data-state":v==="hidden"?"hidden":"visible",...d,ref:u,onPointerEnter:Il(i.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:Il(i.onPointerLeave,()=>p("POINTER_LEAVE"))})})},"ScrollAreaScrollbarScroll")),xg=b.forwardRef(Ue(function(i,u){const c=on(gl,i.__scopeScrollArea),{forceMount:d,...m}=i,[g,y]=b.useState(!1),v=i.orientation==="horizontal",p=wi(()=>{if(c.viewport){const S=c.viewport.offsetWidth<c.viewport.scrollWidth,h=c.viewport.offsetHeight<c.viewport.scrollHeight;y(v?S:h)}},10);return Cr(c.viewport,p),Cr(c.content,p),o.jsx(Qo,{present:d||g,children:o.jsx(kd,{"data-state":g?"visible":"hidden",...m,ref:u})})},"ScrollAreaScrollbarAuto")),kd=b.forwardRef(Ue(function(i,u){const{orientation:c="vertical",...d}=i,m=on(gl,i.__scopeScrollArea),g=b.useRef(null),y=b.useRef(0),[v,p]=b.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),S=Md(v.viewport,v.content),h={...d,sizes:v,onSizesChange:p,hasThumb:S>0&&S<1,onThumbChange:Ue(E=>g.current=E,"onThumbChange"),onThumbPointerUp:Ue(()=>y.current=0,"onThumbPointerUp"),onThumbPointerDown:Ue(E=>y.current=E,"onThumbPointerDown")};function w(E,j){return jg(E,y.current,v,j)}return Ue(w,"getScrollPosition"),c==="horizontal"?o.jsx(fw,{...h,ref:u,onThumbPositionChange:()=>{if(m.viewport&&g.current){const E=m.viewport.scrollLeft,j=hd(E,v,m.dir);g.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(mw,{...h,ref:u,onThumbPositionChange:()=>{if(m.viewport&&g.current){const E=m.viewport.scrollTop,j=hd(E,v);g.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")),fw=b.forwardRef(Ue(function(i,u){const{sizes:c,onSizesChange:d,...m}=i,g=on(gl,i.__scopeScrollArea),[y,v]=b.useState(),p=b.useRef(null),S=tr(u,p,g.onScrollbarXChange);return b.useEffect(()=>{p.current&&v(getComputedStyle(p.current))},[p]),o.jsx(Sg,{"data-orientation":"horizontal",...m,ref:S,sizes:c,style:{bottom:0,left:g.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:g.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Si(c)+"px",...i.style},onThumbPointerDown:h=>i.onThumbPointerDown(h.x),onDragScroll:h=>i.onDragScroll(h.x),onWheelScroll:(h,w)=>{if(g.viewport){const E=g.viewport.scrollLeft+h.deltaX;i.onWheelScroll(E),Od(E,w)&&h.preventDefault()}},onResize:()=>{p.current&&g.viewport&&y&&d({content:g.viewport.scrollWidth,viewport:g.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:pi(y.paddingLeft),paddingEnd:pi(y.paddingRight)}})}})},"ScrollAreaScrollbarX")),mw=b.forwardRef(Ue(function(i,u){const{sizes:c,onSizesChange:d,...m}=i,g=on(gl,i.__scopeScrollArea),[y,v]=b.useState(),p=b.useRef(null),S=tr(u,p,g.onScrollbarYChange);return b.useEffect(()=>{p.current&&v(getComputedStyle(p.current))},[p]),o.jsx(Sg,{"data-orientation":"vertical",...m,ref:S,sizes:c,style:{top:0,right:g.dir==="ltr"?0:void 0,left:g.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Si(c)+"px",...i.style},onThumbPointerDown:h=>i.onThumbPointerDown(h.y),onDragScroll:h=>i.onDragScroll(h.y),onWheelScroll:(h,w)=>{if(g.viewport){const E=g.viewport.scrollTop+h.deltaY;i.onWheelScroll(E),Od(E,w)&&h.preventDefault()}},onResize:()=>{p.current&&g.viewport&&y&&d({content:g.viewport.scrollHeight,viewport:g.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:pi(y.paddingTop),paddingEnd:pi(y.paddingBottom)}})}})},"ScrollAreaScrollbarY")),[hw,bg]=yg(gl),Sg=b.forwardRef(Ue(function(i,u){const{__scopeScrollArea:c,sizes:d,hasThumb:m,onThumbChange:g,onThumbPointerUp:y,onThumbPointerDown:v,onThumbPositionChange:p,onDragScroll:S,onWheelScroll:h,onResize:w,...E}=i,j=on(gl,c),[C,z]=b.useState(null),R=tr(u,z),H=b.useRef(null),Q=b.useRef(""),ee=j.viewport,K=d.content-d.viewport,I=Wl(h),Z=Wl(p),J=wi(w,10);function ue(xe){if(H.current){const Ee=xe.clientX-H.current.left,Re=xe.clientY-H.current.top;S({x:Ee,y:Re})}}return Ue(ue,"handleDragScroll"),b.useEffect(()=>{const xe=Ue(Ee=>{const Re=Ee.target;(C==null?void 0:C.contains(Re))&&I(Ee,K)},"handleWheel");return document.addEventListener("wheel",xe,{passive:!1}),()=>document.removeEventListener("wheel",xe,{passive:!1})},[ee,C,K,I]),b.useEffect(Z,[d,Z]),Cr(C,J),Cr(j.content,J),o.jsx(hw,{scope:c,scrollbar:C,hasThumb:m,onThumbChange:Wl(g),onThumbPointerUp:Wl(y),onThumbPositionChange:Z,onThumbPointerDown:Wl(v),children:o.jsx(bi.div,{...E,ref:R,style:{position:"absolute",...E.style},onPointerDown:Il(i.onPointerDown,xe=>{xe.button===0&&(xe.target.setPointerCapture(xe.pointerId),H.current=C.getBoundingClientRect(),Q.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",j.viewport&&(j.viewport.style.scrollBehavior="auto"),ue(xe))}),onPointerMove:Il(i.onPointerMove,ue),onPointerUp:Il(i.onPointerUp,xe=>{const Ee=xe.target;Ee.hasPointerCapture(xe.pointerId)&&Ee.releasePointerCapture(xe.pointerId),document.body.style.webkitUserSelect=Q.current,j.viewport&&(j.viewport.style.scrollBehavior=""),H.current=null})})})},"ScrollAreaScrollbarImpl")),md="ScrollAreaThumb",pw=b.forwardRef(Ue(function(i,u){const{forceMount:c,...d}=i,m=bg(md,i.__scopeScrollArea);return o.jsx(Qo,{present:c||m.hasThumb,children:o.jsx(gw,{ref:u,...d})})},"ScrollAreaThumb")),gw=b.forwardRef(Ue(function(i,u){const{__scopeScrollArea:c,style:d,...m}=i,g=on(md,c),y=bg(md,c),{onThumbPositionChange:v}=y,p=tr(u,y.onThumbChange),S=b.useRef(void 0),h=wi(()=>{S.current&&(S.current(),S.current=void 0)},100);return b.useEffect(()=>{const w=g.viewport;if(w){const E=Ue(()=>{if(h(),!S.current){const j=xw(w,v);S.current=j,v()}},"handleScroll");return v(),w.addEventListener("scroll",E),()=>w.removeEventListener("scroll",E)}},[g.viewport,h,v]),o.jsx(bi.div,{"data-state":y.hasThumb?"visible":"hidden",...m,ref:p,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,z=w.clientY-j.top;y.onThumbPointerDown({x:C,y:z})}),onPointerUp:Il(i.onPointerUp,y.onThumbPointerUp)})},"ScrollAreaThumbImpl")),wg="ScrollAreaCorner",vw=b.forwardRef(Ue(function(i,u){const c=on(wg,i.__scopeScrollArea),d=!!(c.scrollbarX&&c.scrollbarY);return c.type!=="scroll"&&d?o.jsx(yw,{...i,ref:u}):null},"ScrollAreaCorner")),yw=b.forwardRef(Ue(function(i,u){const{__scopeScrollArea:c,...d}=i,m=on(wg,c),[g,y]=b.useState(0),[v,p]=b.useState(0),S=!!(g&&v),{onCornerWidthChange:h,onCornerHeightChange:w}=m;return Cr(m.scrollbarX,()=>{var j;const E=((j=m.scrollbarX)==null?void 0:j.offsetHeight)||0;m.onCornerHeightChange(E),p(E)}),Cr(m.scrollbarY,()=>{var j;const E=((j=m.scrollbarY)==null?void 0:j.offsetWidth)||0;m.onCornerWidthChange(E),y(E)}),b.useEffect(()=>()=>{h(0),w(0)},[h,w]),S?o.jsx(bi.div,{...d,ref:u,style:{width:g,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 pi(l){return l?parseInt(l,10):0}Ue(pi,"toInt");function Md(l,i){const u=l/i;return isNaN(u)?0:u}Ue(Md,"getThumbRatio");function Si(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(Si,"getThumbSize");function jg(l,i,u,c="ltr"){const d=Si(u),m=d/2,g=i||m,y=d-g,v=u.scrollbar.paddingStart+g,p=u.scrollbar.size-u.scrollbar.paddingEnd-y,S=u.content-u.viewport,h=c==="ltr"?[0,S]:[S*-1,0];return Dd([v,p],h)(l)}Ue(jg,"getScrollPositionFromPointer");function hd(l,i,u="ltr"){const c=Si(i),d=i.scrollbar.paddingStart+i.scrollbar.paddingEnd,m=i.scrollbar.size-d,g=i.content-i.viewport,y=m-c,v=u==="ltr"?[0,g]:[g*-1,0],p=pg(l,v);return Dd([0,g],[0,y])(p)}Ue(hd,"getThumbOffsetFromScroll");function Dd(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(Dd,"linearScale");function Od(l,i){return l>0&&l<i}Ue(Od,"isScrollingWithinScrollbarBounds");var xw=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},g=u.left!==m.left,y=u.top!==m.top;(g||y)&&i(),u=m,c=window.requestAnimationFrame(d)}),"loop")(),()=>window.cancelAnimationFrame(c)},"addUnlinkedScrollListener");function wi(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(wi,"useDebounceCallback");function Cr(l,i){const u=Wl(i);dd(()=>{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(Cr,"useResizeObserver");var bw=rw,Sw=iw,ww=vw;const jw=Kp("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?Pp:"span";return o.jsx(d,{"data-slot":"badge","data-variant":i,className:Pt(jw({variant:i}),l),...c})}function qn({isConnected:l}){const{projects:i,selectedProjectId:u,setSelectedProjectId:c}=Pl(),{token:d}=oa(),m=Hn(),[g,y]=b.useState(!1);return b.useEffect(()=>{if(!d)return;const v=async()=>{try{const S=await m("/v1/system/metrics");if(S.ok){const w=(await S.json()).streams||{},E=Math.max(...Object.values(w),0);y(E>8e4)}}catch{}};v();const p=setInterval(()=>void v(),1e4);return()=>clearInterval(p)},[m,d]),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(Sp,{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:[g&&o.jsxs(Jt,{variant:"destructive",className:"flex items-center gap-1.5 px-2.5 py-1 text-xs",children:[o.jsx(Vo,{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(Ad,{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:v=>c(v.target.value),children:i.map(v=>o.jsx("option",{value:v.id,children:v.name},v.id))})]}),o.jsxs(Jt,{variant:l?"default":"destructive",className:"flex items-center gap-1.5 px-3 py-1",children:[o.jsx(Ed,{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 Nw({className:l,children:i,...u}){return o.jsxs(bw,{"data-slot":"scroll-area",className:Pt("relative",l),...u,children:[o.jsx(Sw,{"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(Ew,{}),o.jsx(ww,{})]})}function Ew({className:l,orientation:i="vertical",...u}){return o.jsx(cw,{"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(pw,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}function Aw({setIsConnected:l}){const[i,u]=b.useState([]),{projects:c,selectedProjectId:d,isLoadingProjects:m}=Pl(),{token:g}=oa(),y=Hn();return b.useEffect(()=>{if(!g||!d)return;l(!1);const v=new AbortController,p=w=>{try{const E=JSON.parse(w),j={id:crypto.randomUUID(),type:"delivered",taskId:E.taskId,channel:E.channel,providerMessageId:E.providerMessageId,timestamp:new Date};u(C=>[j,...C].slice(0,100))}catch(E){console.error("Failed to parse delivered event",E)}},S=w=>{try{const E=JSON.parse(w),j={id:crypto.randomUUID(),type:"failed",taskId:E.taskId,channel:E.channel,error:E.error,timestamp:new Date};u(C=>[j,...C].slice(0,100))}catch(E){console.error("Failed to parse failed event",E)}};return(async()=>{for(;!v.signal.aborted;){try{const w=await y("/v1/events/stream",{signal:v.signal});if(!w.ok||!w.body)throw new Error(`HTTP ${w.status}`);l(!0),Ge.success("Connected to real-time feed");const E=w.body.pipeThrough(new TextDecoderStream).getReader();let j="";for(;;){const{value:C,done:z}=await E.read();if(z)break;j+=C;let R;for(;(R=j.indexOf(`
316
+
317
+ `))>=0;){const H=j.slice(0,R);j=j.slice(R+2);let Q="",ee="";for(const K of H.split(`
318
+ `))K.startsWith("event: ")?Q=K.slice(7):K.startsWith("data: ")&&(ee+=K.slice(6));Q==="delivery:delivered"?p(ee):Q==="delivery:failed"&&S(ee)}}}catch{}if(v.signal.aborted)return;l(!1),await new Promise(w=>setTimeout(w,1e4))}})(),()=>v.abort()},[y,g,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(Cw,{}),"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(Nb,{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(Nw,{className:"h-full min-h-[500px] w-full px-6 py-4",children:m?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."})]}):g?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(ps,{className:"h-4 w-4 text-foreground"}):o.jsx(Go,{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 Cw(){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 V0(){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(Aw,{setIsConnected:i})})})})]})}const Tw=Kp("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?Pp:"button";return o.jsx(m,{"data-slot":"button","data-variant":i,"data-size":u,className:Pt(Tw({variant:i,size:u,className:l})),...d})}function gi({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 zw(){const{login:l}=oa(),[i,u]=b.useState(""),[c,d]=b.useState(""),[m,g]=b.useState(!1),[y,v]=b.useState(null),p=async S=>{if(S.preventDefault(),!i.trim()||!c){v("Please enter both your email/user ID and password.");return}g(!0),v(null);const h=await l(i.trim(),c);g(!1),h.success?Ge.success("Welcome back!",{description:"Logged in successfully."}):(v(h.error||"Invalid email/user ID or password."),Ge.error("Authentication failed",{description:h.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(Sp,{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(Yo,{className:"h-4 w-4 shrink-0"}),o.jsx("span",{children:y})]}),o.jsxs("form",{onSubmit:S=>{S.preventDefault(),p(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(Db,{className:"h-3.5 w-3.5 text-muted-foreground"}),"Email or Username"]}),o.jsx(gi,{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(nb,{className:"h-3.5 w-3.5 text-muted-foreground"}),"Password"]}),o.jsx(gi,{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(hi,{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(Ex,{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(Ab,{className:"h-3.5 w-3.5 text-foreground"}),o.jsx("span",{children:"Protected by salted Scrypt & Redis session auth"})]})]})]})]})})}function bs({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 Ss({className:l,...i}){return o.jsx("thead",{"data-slot":"table-header",className:Pt("[&_tr]:border-b",l),...i})}function ws({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 Oe({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 _w(){const[l,i]=b.useState([]),[u,c]=b.useState(null),[d,m]=b.useState([null]),[g,y]=b.useState(0),[v,p]=b.useState(!1),[S,h]=b.useState(""),[w,E]=b.useState(""),[j,C]=b.useState(""),[z,R]=b.useState(null),[H,Q]=b.useState([]),[ee,K]=b.useState(!1),{projects:I,selectedProjectId:Z,isLoadingProjects:J}=Pl(),{token:ue}=oa(),xe=Hn(),Ee=b.useCallback(async ne=>{p(!0);try{const de=new URLSearchParams({limit:"25"});ne&&de.set("cursor",ne),S&&de.set("search",S),w&&de.set("channel",w),j&&de.set("status",j);const k=await xe(`/v1/notifications/logs?${de.toString()}`);if(!k.ok)throw new Error(`Failed to fetch: ${k.statusText}`);const X=await k.json();i(X.logs||[]),c(X.nextCursor||null)}catch(de){console.error(de),Ge.error("Failed to fetch logs")}finally{p(!1)}},[xe,S,w,j]);b.useEffect(()=>{ue&&Z?(m([null]),y(0),Ee(null)):i([])},[ue,Z,S,w,j,Ee]),b.useEffect(()=>{z&&ue&&Z?(K(!0),xe(`/v1/notifications/${encodeURIComponent(z.taskId)}`).then(ne=>ne.ok?ne.json():null).then(ne=>{if(ne&&ne.logs){const de=[...ne.logs].sort((k,X)=>new Date(k.timestamp).getTime()-new Date(X.timestamp).getTime());Q(de)}else Q([z])}).catch(()=>Q([z])).finally(()=>K(!1))):Q([])},[xe,z,ue,Z]);const Re=()=>{if(u&&ue&&Z){const ne=[...d.slice(0,g+1),u];m(ne),y(g+1),Ee(u)}},Xe=()=>{if(g>0&&ue&&Z){const ne=d[g-1]??null;y(g-1),Ee(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(jp,{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:()=>{ue&&Z&&Ee(d[g])},disabled:v||!ue||!Z,className:"h-8 w-8 rounded-md border-border",children:o.jsx(Tr,{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(zp,{className:"absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground"}),o.jsx(gi,{type:"text",placeholder:"Search Task ID or Template...",value:S,onChange:ne=>h(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(bs,{children:[o.jsx(Ss,{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(ws,{children:J?o.jsx(qt,{children:o.jsx(Oe,{colSpan:6,className:"h-24 text-center text-muted-foreground",children:"Loading projects..."})}):I.length===0?o.jsx(qt,{children:o.jsx(Oe,{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(Oe,{colSpan:6,className:"h-24 text-center text-muted-foreground",children:"No log entries match your filter."})}):Array.from(l.reduce((ne,de)=>(ne.has(de.taskId)?ne.get(de.taskId).status==="dispatched"&&de.status!=="dispatched"&&ne.set(de.taskId,de):ne.set(de.taskId,de),ne),new Map).values()).map(ne=>o.jsxs(qt,{className:"hover:bg-muted/50 transition-colors cursor-pointer",onClick:()=>R(ne),children:[o.jsx(Oe,{className:"text-muted-foreground whitespace-nowrap text-xs",children:new Date(ne.timestamp).toLocaleString()}),o.jsx(Oe,{className:"font-mono text-xs font-semibold text-foreground",children:ne.taskId}),o.jsx(Oe,{className:"font-medium text-xs",children:ne.templateId}),o.jsx(Oe,{children:o.jsx(Jt,{variant:"secondary",className:"capitalize font-normal text-xs",children:ne.channel})}),o.jsx(Oe,{children:o.jsx(X0,{status:ne.status})}),o.jsx(Oe,{className:"text-right",children:o.jsx(Ke,{variant:"ghost",size:"icon",className:"h-7 w-7 text-muted-foreground",children:o.jsx(ys,{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 ",g+1]}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsxs(Ke,{variant:"outline",size:"sm",onClick:Xe,disabled:g===0||v,className:"h-7 text-xs border-border",children:[o.jsx(zx,{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(Rx,{className:"h-3.5 w-3.5 ml-1"})]})]})]}),z&&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: ",z.taskId]})]}),o.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>R(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(Kx,{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..."}):H.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:H.map(ne=>{const de=new Date(H[0].timestamp).getTime(),X=new Date(ne.timestamp).getTime()-de;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(ps,{className:"h-3 w-3 text-foreground"}):ne.status==="failed"?o.jsx(Yo,{className:"h-3 w-3 text-destructive"}):o.jsx(bb,{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(X0,{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:X>0?`+${X}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:z.id})]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-muted-foreground",children:"Template ID:"}),o.jsx("div",{className:"font-semibold text-foreground",children:z.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:z.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:z.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(z,null,2)})]})]})})]})}function X0({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 Rw(){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(_w,{})})})})]})}function kw(){var v,p,S,h,w,E;const[l,i]=b.useState(null),[u,c]=b.useState(!0),{token:d}=oa(),m=Hn(),g=b.useCallback(async()=>{if(!d){c(!1);return}try{const j=await m("/v1/system/health");if(!j.ok)throw new Error(`HTTP ${j.status}`);const C=await j.json();i(C)}catch(j){console.error(j),Ge.error("Failed to fetch system health")}finally{c(!1)}},[m,d]);b.useEffect(()=>{if(d){g();const j=setInterval(()=>void g(),5e3);return()=>clearInterval(j)}},[d,g]);const y=["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(Ap,{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),g()},disabled:u,children:[o.jsx(Tr,{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(wb,{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(hi,{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:[((v=l==null?void 0:l.redis)==null?void 0:v.latencyMs)??0," ms"]}),o.jsx(Jt,{variant:(p=l==null?void 0:l.redis)!=null&&p.ok?"default":"destructive",children:(S=l==null?void 0:l.redis)!=null&&S.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(jp,{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(hi,{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:[((h=l==null?void 0:l.db)==null?void 0:h.latencyMs)??0," ms"]}),o.jsx(Jt,{variant:(w=l==null?void 0:l.db)!=null&&w.ok?"default":"destructive",children:(E=l==null?void 0:l.db)!=null&&E.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(Bx,{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(hi,{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(Mw,{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:y.map(j=>{var H;const C=(H=l==null?void 0:l.workers)==null?void 0:H[j],z=!!(C&&C.status!=="error"&&C.status!=="unknown"&&(C.redis!==!1||C.status==="active"||C.status==="healthy"||C.state)),R=(C==null?void 0:C.state)||(C!=null&&C.status&&C.status!=="unknown"?C.status:null)||(C!=null&&C.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:[j," Worker"]}),o.jsx("span",{className:`h-2.5 w-2.5 rounded-full ${z?"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:R})]}),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:[(C==null?void 0:C.activeTasks)??0," tasks"]})]})]})]},j)})})})]})]})]})}function Mw({status:l}){return l==="healthy"?o.jsx(ps,{className:"h-5 w-5 text-foreground"}):l==="degraded"?o.jsx(Yo,{className:"h-5 w-5 text-muted-foreground"}):o.jsx(Go,{className:"h-5 w-5 text-destructive"})}function Dw(){var v,p,S,h;const[l,i]=b.useState(null),[u,c]=b.useState(!0),{token:d}=oa(),m=Hn(),g=b.useCallback(async()=>{if(!d){c(!1);return}c(!0);try{const w=await m("/v1/system/metrics");if(!w.ok)throw new Error(`HTTP ${w.status}`);const E=await w.json();i(E)}catch(w){console.error(w),Ge.error("Failed to fetch analytics & queue metrics")}finally{c(!1)}},[m,d]);b.useEffect(()=>{if(d){g();const w=setInterval(()=>void g(),5e3);return()=>clearInterval(w)}},[d,g]);const y=[{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(wp,{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 g(),disabled:u,children:[o.jsx(Tr,{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(ps,{className:"h-4 w-4 text-foreground"})]}),o.jsxs(Rt,{children:[o.jsxs("div",{className:"text-3xl font-bold text-foreground",children:[((v=l==null?void 0:l.deliveryStats)==null?void 0:v.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(Ed,{className:"h-4 w-4 text-muted-foreground"})]}),o.jsxs(Rt,{children:[o.jsx("div",{className:"text-3xl font-bold",children:((p=l==null?void 0:l.deliveryStats)==null?void 0:p.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(ps,{className:"h-4 w-4 text-muted-foreground"})]}),o.jsxs(Rt,{children:[o.jsx("div",{className:"text-3xl font-bold text-foreground",children:((S=l==null?void 0:l.deliveryStats)==null?void 0:S.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(Go,{className:"h-4 w-4 text-destructive"})]}),o.jsxs(Rt,{children:[o.jsx("div",{className:"text-3xl font-bold text-destructive",children:((h=l==null?void 0:l.deliveryStats)==null?void 0:h.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(Cp,{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:y.map(w=>{var z;const E=((z=l==null?void 0:l.streams)==null?void 0:z[w.key])??0,C=Math.min(100,Math.round(E/1e5*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:w.label}),o.jsxs("span",{className:"font-mono text-xs font-bold text-muted-foreground",children:[E," 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:`${E===0?0:Math.max(4,C)}%`}})}),o.jsxs("div",{className:"flex justify-between text-[10px] text-muted-foreground",children:[o.jsx("span",{children:"0"}),o.jsx("span",{children:"Cap: 100,000"})]})]},w.key)})})})]})]})]})}function Ow(){const[l,i]=b.useState([]),[u,c]=b.useState(!0),[d,m]=b.useState(null),{token:g}=oa(),y=Hn(),v=b.useCallback(async()=>{if(!g){c(!1);return}c(!0);try{const h=await y("/v1/dlq");if(!h.ok)throw new Error(`HTTP ${h.status}`);const w=await h.json();i(w.messages||[])}catch(h){console.error(h),Ge.error("Failed to fetch Dead Letter Queue messages")}finally{c(!1)}},[y,g]);b.useEffect(()=>{g&&v()},[g,v]);const p=async h=>{if(g)try{if(!(await y("/v1/dlq/replay",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:h})})).ok)throw new Error("Replay request failed");Ge.success(`Message ${h} replayed into queue`),v()}catch{Ge.error("Failed to replay message")}},S=async h=>{if(g)try{if(!(await y(`/v1/dlq/${encodeURIComponent(h)}`,{method:"DELETE"})).ok)throw new Error("Delete failed");Ge.success(`Message ${h} purged from DLQ`),v()}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(Vo,{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 v(),disabled:u,children:[o.jsx(Tr,{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(bs,{children:[o.jsx(Ss,{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(ws,{children:l.length===0?o.jsx(qt,{children:o.jsx(Oe,{colSpan:5,className:"h-32 text-center text-muted-foreground",children:"No dead-letter messages found. Pipeline is operating smoothly!"})}):l.map(h=>o.jsxs(qt,{className:"hover:bg-muted/50",children:[o.jsx(Oe,{className:"text-muted-foreground text-xs whitespace-nowrap",children:new Date(h.timestamp).toLocaleString()}),o.jsx(Oe,{className:"font-mono text-xs text-foreground font-medium",children:h.id}),o.jsx(Oe,{children:o.jsx(Jt,{variant:"secondary",className:"font-mono text-[11px]",children:h.eventType})}),o.jsx(Oe,{className:"text-destructive text-xs truncate max-w-[250px] font-mono",children:h.error}),o.jsxs(Oe,{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(h),children:o.jsx(ys,{className:"h-4 w-4"})}),o.jsx(Ke,{variant:"ghost",size:"icon",className:"h-8 w-8 text-foreground",onClick:()=>void p(h.id),title:"Replay Message",children:o.jsx(vb,{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(h.id),title:"Purge Message",children:o.jsx(Cd,{className:"h-4 w-4"})})]})]},h.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:()=>{p(d.id),m(null)},children:"Replay Message"})})]})})]})}function Uw(){const[l,i]=b.useState([]),[u,c]=b.useState(!0),{selectedProjectId:d}=Pl(),{token:m}=oa(),g=Hn(),y=b.useCallback(async()=>{c(!0);try{const p=await g("/v1/notifications/scheduled");if(!p.ok)throw new Error(`HTTP ${p.status}`);const S=await p.json();i(S.scheduled||[])}catch(p){console.error(p),Ge.error("Failed to fetch scheduled notifications")}finally{c(!1)}},[g]);b.useEffect(()=>{m&&d&&y()},[m,d,y]);const v=async p=>{try{if(!(await g(`/v1/notifications/${encodeURIComponent(p)}`,{method:"DELETE"})).ok)throw new Error("Cancel failed");Ge.success(`Task ${p} 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(Tr,{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(bs,{children:[o.jsx(Ss,{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(ws,{children:l.length===0?o.jsx(qt,{children:o.jsx(Oe,{colSpan:6,className:"h-32 text-center text-muted-foreground",children:"No pending scheduled or deferred messages found."})}):l.map(p=>{var w,E,j,C,z,R,H,Q,ee;const S=(w=p.payload)==null?void 0:w.scheduledAt,h=((E=p.payload)==null?void 0:E.recipientId)||((C=(j=p.payload)==null?void 0:j.recipient)==null?void 0:C.id)||(typeof((z=p.payload)==null?void 0:z.target)=="object"?JSON.stringify((R=p.payload)==null?void 0:R.target):String(((H=p.payload)==null?void 0:H.target)||"N/A"));return o.jsxs(qt,{className:"hover:bg-muted/50",children:[o.jsx(Oe,{className:"text-muted-foreground text-xs whitespace-nowrap",children:new Date(p.createdAt).toLocaleString()}),o.jsx(Oe,{className:"font-mono text-xs font-semibold text-foreground max-w-[180px] truncate",title:p.taskId,children:p.taskId}),o.jsx(Oe,{className:"font-medium text-xs",children:((Q=p.payload)==null?void 0:Q.templateId)||((ee=p.payload)==null?void 0:ee.template)||"N/A"}),o.jsx(Oe,{className:"font-mono text-xs text-muted-foreground truncate max-w-[150px]",children:h}),o.jsx(Oe,{children:o.jsx(Jt,{variant:"outline",className:"font-mono text-[11px]",children:S?new Date(S).toLocaleString():"Pending Dispatch"})}),o.jsx(Oe,{className:"text-right",children:o.jsxs(Ke,{variant:"ghost",size:"sm",className:"h-8 text-destructive hover:bg-destructive/10",onClick:()=>void v(p.taskId),children:[o.jsx(Go,{className:"h-4 w-4 mr-1"}),"Cancel Task"]})})]},p.taskId)})})]})})]})]})]})}function Lw(){const[l,i]=b.useState([]),[u,c]=b.useState(!0),[d,m]=b.useState(null),[g,y]=b.useState(""),[v,p]=b.useState(null),[S,h]=b.useState(!1),{selectedProjectId:w}=Pl(),{token:E}=oa(),j=Hn(),C=b.useCallback(async()=>{c(!0);try{const H=await j("/v1/workflows");if(!H.ok)throw new Error(`HTTP ${H.status}`);const Q=await H.json();i(Q.workflows||[])}catch(H){console.error(H),Ge.error("Failed to fetch workflows")}finally{c(!1)}},[j]);b.useEffect(()=>{E&&w&&C()},[E,w,C]);const z=async H=>{try{const Q=await j("/v1/workflows/trigger",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:H,input:{}})});if(!Q.ok)throw new Error("Trigger failed");const ee=await Q.json();Ge.success(`Workflow "${H}" triggered! Instance ID: ${ee.instanceId}`),ee.instanceId&&(y(ee.instanceId),R(ee.instanceId))}catch{Ge.error("Failed to trigger workflow")}},R=async H=>{const Q=H||g.trim();if(Q){h(!0);try{const ee=await j(`/v1/workflows/instances/${encodeURIComponent(Q)}`);if(!ee.ok)throw new Error("Instance not found");const K=await ee.json();p(K)}catch{Ge.error("Workflow instance not found"),p(null)}finally{h(!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(Ep,{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(Tr,{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(zp,{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(gi,{type:"text",placeholder:"Enter Workflow Instance ID...",value:g,onChange:H=>y(H.target.value),className:"text-xs font-mono"}),o.jsx(Ke,{variant:"secondary",size:"sm",className:"text-xs",onClick:()=>void R(),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(bs,{children:[o.jsx(Ss,{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(ws,{children:l.length===0?o.jsx(qt,{children:o.jsx(Oe,{colSpan:5,className:"h-32 text-center text-muted-foreground",children:"No registered workflows found. Register workflows using POST /v1/workflows"})}):l.map(H=>o.jsxs(qt,{className:"hover:bg-muted/50",children:[o.jsx(Oe,{className:"text-muted-foreground text-xs whitespace-nowrap",children:new Date(H.createdAt).toLocaleString()}),o.jsx(Oe,{className:"font-bold text-sm font-mono text-foreground",children:H.name}),o.jsx(Oe,{children:o.jsxs(Jt,{variant:"secondary",className:"font-mono text-[11px]",children:[Array.isArray(H.steps)?H.steps.length:0," steps"]})}),o.jsx(Oe,{className:"font-mono text-xs text-muted-foreground truncate max-w-[300px]",children:JSON.stringify(H.steps)}),o.jsxs(Oe,{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(H),children:[o.jsx(ys,{className:"h-4 w-4 mr-1"}),"View Diagram"]}),o.jsxs(Ke,{variant:"outline",size:"sm",className:"h-8",onClick:()=>void z(H.name),children:[o.jsx(db,{className:"h-3.5 w-3.5 mr-1"}),"Trigger Now"]})]})]},H.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(Cp,{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((H,Q)=>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 ",Q+1,": ",H.type||H.name||"Action"]}),o.jsx(Jt,{variant:"outline",className:"text-[10px] font-mono",children:H.channel||H.action||"Step Node"})]}),o.jsx("pre",{className:"text-[11px] text-muted-foreground overflow-x-auto font-mono",children:JSON.stringify(H,null,2)})]},Q))})]})]})})]})}function Hw(){const[l,i]=b.useState([]),[u,c]=b.useState(!0),[d,m]=b.useState(null),{selectedProjectId:g}=Pl(),{token:y}=oa(),v=Hn(),p=b.useCallback(async()=>{c(!0);try{const h=await v("/v1/templates");if(!h.ok)throw new Error(`HTTP ${h.status}`);const w=await h.json();i(w.templates||[])}catch(h){console.error(h),Ge.error("Failed to fetch templates")}finally{c(!1)}},[v]);b.useEffect(()=>{y&&g&&p()},[y,g,p]);const S=async h=>{try{if(!(await v(`/v1/templates/${encodeURIComponent(h)}`,{method:"DELETE"})).ok)throw new Error("Delete failed");Ge.success(`Template ${h} deleted`),p()}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(Np,{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 p(),disabled:u,children:[o.jsx(Tr,{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(bs,{children:[o.jsx(Ss,{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,{className:"text-right",children:"Actions"})]})}),o.jsx(ws,{children:l.length===0?o.jsx(qt,{children:o.jsx(Oe,{colSpan:4,className:"h-32 text-center text-muted-foreground",children:"No templates synced for this project. Sync using initializeApp() or PUT /v1/templates"})}):l.map(h=>o.jsxs(qt,{className:"hover:bg-muted/50",children:[o.jsx(Oe,{className:"font-mono text-sm font-bold text-foreground",children:h.id}),o.jsx(Oe,{children:o.jsx(Jt,{variant:"secondary",className:"capitalize font-normal text-xs",children:h.channel})}),o.jsx(Oe,{children:o.jsx("div",{className:"flex gap-1 flex-wrap",children:(h.topics||[]).map(w=>o.jsx(Jt,{variant:"outline",className:"text-[10px]",children:w},w))})}),o.jsxs(Oe,{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(h),children:o.jsx(ys,{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(h.id),children:o.jsx(Cd,{className:"h-4 w-4"})})]})]},h.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 Bw(){var E;const[l,i]=b.useState([]),[u,c]=b.useState(!1),[d,m]=b.useState(null),{projects:g,selectedProjectId:y,isLoadingProjects:v}=Pl(),{token:p}=oa(),S=Hn(),h=b.useCallback(async()=>{c(!0);try{const j=await S("/v1/users");if(j.ok){const C=await j.json();i(C.users||[])}else Ge.error("Failed to load users")}catch(j){console.error(j),Ge.error("Failed to load users")}finally{c(!1)}},[S]);b.useEffect(()=>{p&&y?h():i([])},[p,y,h]);const w=async j=>{const C=j.externalId||j.userId||j.id;if(C)try{const z=await S(`/v1/users/${encodeURIComponent(C)}/details`);if(z.ok){const R=await z.json();m(R)}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(_p,{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:v?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..."})]}):g.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."})]}):p?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(bs,{children:[o.jsx(Ss,{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(ws,{children:l.map((j,C)=>{const z=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(Oe,{className:"font-mono font-bold text-foreground",children:z}),o.jsx(Oe,{className:"text-muted-foreground",children:j.email?j.email:o.jsx("span",{className:"italic opacity-50",children:"Not provided"})}),o.jsx(Oe,{className:"text-muted-foreground text-xs",children:new Date(j.createdAt).toLocaleDateString()}),o.jsx(Oe,{className:"text-right",children:o.jsxs(Ke,{variant:"outline",size:"sm",className:"h-7",onClick:R=>{R.stopPropagation(),w(j)},children:[o.jsx(ys,{className:"h-3.5 w-3.5 mr-1"})," View Profile"]})})]},z)})})]}):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(ib,{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(Tp,{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 qw(){const{apiUrl:l,token:i}=oa(),[u,c]=b.useState([]),[d,m]=b.useState(!0),[g,y]=b.useState(""),[v,p]=b.useState(null),[S,h]=b.useState([]),[w,E]=b.useState(null),[j,C]=b.useState(!1),z=async()=>{try{const K=await fetch(`${l}/v1/projects`,{headers:{Authorization:`Bearer ${i}`}});if(K.ok){const I=await K.json();c(I.projects||[])}}catch(K){console.error(K),Ge.error("Failed to load projects")}finally{m(!1)}},R=async K=>{try{const I=await fetch(`${l}/v1/projects/${K}/keys`,{headers:{Authorization:`Bearer ${i}`}});if(I.ok){const Z=await I.json();h(Z.keys||[])}}catch(I){console.error(I),Ge.error("Failed to load API keys")}};b.useEffect(()=>{z()},[]),b.useEffect(()=>{v?(R(v),E(null),C(!1)):h([])},[v]);const H=async K=>{if(K.preventDefault(),!!g.trim())try{const I=await fetch(`${l}/v1/projects`,{method:"POST",headers:{Authorization:`Bearer ${i}`,"Content-Type":"application/json"},body:JSON.stringify({name:g})});if(I.ok){const Z=await I.json();Ge.success("Project created!"),y(""),z(),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")}},Q=async()=>{if(v)try{const K=await fetch(`${l}/v1/projects/${v}/keys`,{method:"POST",headers:{Authorization:`Bearer ${i}`,"Content-Type":"application/json"},body:JSON.stringify({role:"admin"})});if(K.ok){const I=await K.json();E(I.apiKey),C(!1),Ge.success("New API Key generated successfully"),R(v)}else Ge.error("Failed to generate key")}catch{Ge.error("Failed to generate key")}},ee=async K=>{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/${K}`,{method:"DELETE",headers:{Authorization:`Bearer ${i}`}})).ok?(Ge.success("API Key revoked"),R(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(Ad,{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:K=>{H(K)},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(gi,{id:"name",type:"text",value:g,onChange:K=>y(K.target.value),placeholder:"My Project"})]}),o.jsxs(Ke,{type:"submit",className:"w-full gap-2",children:[o.jsx(mb,{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(K=>o.jsxs("div",{className:`grid grid-cols-3 text-sm py-2 px-3 rounded-md cursor-pointer transition-colors ${v===K.id?"bg-muted text-foreground border border-border":"hover:bg-muted/50"}`,onClick:()=>p(K.id),children:[o.jsxs("div",{className:"font-medium text-foreground flex items-center gap-2",children:[K.name,v===K.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:K.rateLimitRpm?`${K.rateLimitRpm} RPM`:"600 RPM"})}),o.jsx("div",{className:"text-muted-foreground text-xs",children:new Date(K.createdAt).toLocaleDateString()})]},K.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:()=>{Q()},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(Yo,{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(Gx,{className:"w-4 h-4"}):o.jsx(ys,{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(Lx,{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(K=>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:K.id}),o.jsx("div",{className:"capitalize text-muted-foreground text-xs",children:K.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(K.id)},children:[o.jsx(Cd,{className:"w-4 h-4 mr-1.5"}),"Revoke"]})})]},K.id))]})]})]})]})]})]})]})}function Yw(){return o.jsxs("div",{className:"h-screen flex bg-background text-foreground overflow-hidden",children:[o.jsx(T1,{}),o.jsx("main",{className:"flex-1 overflow-y-auto",children:o.jsxs(Dy,{children:[o.jsx(Ua,{path:"/",element:o.jsx(V0,{})}),o.jsx(Ua,{path:"/login",element:o.jsx(zw,{})}),o.jsx(Ua,{path:"/logs",element:o.jsx(Rw,{})}),o.jsx(Ua,{path:"/system",element:o.jsx(kw,{})}),o.jsx(Ua,{path:"/analytics",element:o.jsx(Dw,{})}),o.jsx(Ua,{path:"/dlq",element:o.jsx(Ow,{})}),o.jsx(Ua,{path:"/scheduled",element:o.jsx(Uw,{})}),o.jsx(Ua,{path:"/workflows",element:o.jsx(Lw,{})}),o.jsx(Ua,{path:"/templates",element:o.jsx(Hw,{})}),o.jsx(Ua,{path:"/users",element:o.jsx(Bw,{})}),o.jsx(Ua,{path:"/projects",element:o.jsx(qw,{})}),o.jsx(Ua,{path:"*",element:o.jsx(V0,{})})]})}),o.jsx(sS,{theme:"dark"})]})}const Gw=window.location.pathname.startsWith("/admin")?"/admin":"/";Dv.createRoot(document.getElementById("root")).render(o.jsx(b.StrictMode,{children:o.jsx(lx,{basename:Gw,children:o.jsx(px,{children:o.jsx(gx,{children:o.jsx(Yw,{})})})})}));