@saga-ai/cli 0.7.2 → 2.12.0
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.
package/dist/cli.cjs
CHANGED
|
@@ -1278,6 +1278,7 @@ Searched in: ${(0, import_node_path5.join)(projectPath, ".saga", "worktrees")}`)
|
|
|
1278
1278
|
// src/server/index.ts
|
|
1279
1279
|
var import_express2 = __toESM(require("express"), 1);
|
|
1280
1280
|
var import_http = require("http");
|
|
1281
|
+
var import_path6 = require("path");
|
|
1281
1282
|
|
|
1282
1283
|
// src/server/routes.ts
|
|
1283
1284
|
var import_express = require("express");
|
|
@@ -1334,7 +1335,7 @@ function validateTaskStatus(status) {
|
|
|
1334
1335
|
return "pending";
|
|
1335
1336
|
}
|
|
1336
1337
|
async function parseStory(storyPath, epicSlug) {
|
|
1337
|
-
const { join:
|
|
1338
|
+
const { join: join13 } = await import("path");
|
|
1338
1339
|
const { stat: stat2 } = await import("fs/promises");
|
|
1339
1340
|
let content;
|
|
1340
1341
|
try {
|
|
@@ -1354,7 +1355,7 @@ async function parseStory(storyPath, epicSlug) {
|
|
|
1354
1355
|
const title = frontmatter.title || dirName;
|
|
1355
1356
|
const status = validateStatus(frontmatter.status);
|
|
1356
1357
|
const tasks = parseTasks(frontmatter.tasks);
|
|
1357
|
-
const journalPath =
|
|
1358
|
+
const journalPath = join13(storyDir, "journal.md");
|
|
1358
1359
|
let hasJournal = false;
|
|
1359
1360
|
try {
|
|
1360
1361
|
await stat2(journalPath);
|
|
@@ -1880,6 +1881,12 @@ function createApp(sagaRoot) {
|
|
|
1880
1881
|
res.json({ status: "ok" });
|
|
1881
1882
|
});
|
|
1882
1883
|
app.use("/api", createApiRouter(sagaRoot));
|
|
1884
|
+
const clientDistPath = (0, import_path6.join)(__dirname, "client");
|
|
1885
|
+
const indexHtmlPath = (0, import_path6.join)(clientDistPath, "index.html");
|
|
1886
|
+
app.use(import_express2.default.static(clientDistPath));
|
|
1887
|
+
app.get("/{*splat}", (_req, res) => {
|
|
1888
|
+
res.sendFile("index.html", { root: clientDistPath });
|
|
1889
|
+
});
|
|
1883
1890
|
return app;
|
|
1884
1891
|
}
|
|
1885
1892
|
async function startServer(config) {
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
function Tg(n,o){for(var s=0;s<o.length;s++){const l=o[s];if(typeof l!="string"&&!Array.isArray(l)){for(const a in l)if(a!=="default"&&!(a in n)){const d=Object.getOwnPropertyDescriptor(l,a);d&&Object.defineProperty(n,a,d.get?d:{enumerable:!0,get:()=>l[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))l(a);new MutationObserver(a=>{for(const d of a)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&l(f)}).observe(document,{childList:!0,subtree:!0});function s(a){const d={};return a.integrity&&(d.integrity=a.integrity),a.referrerPolicy&&(d.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?d.credentials="include":a.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function l(a){if(a.ep)return;a.ep=!0;const d=s(a);fetch(a.href,d)}})();function gp(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var la={exports:{}},po={},aa={exports:{}},de={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its 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 xf;function Ng(){if(xf)return de;xf=1;var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),y=Symbol.iterator;function S(P){return P===null||typeof P!="object"?null:(P=y&&P[y]||P["@@iterator"],typeof P=="function"?P:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,T={};function C(P,A,J){this.props=P,this.context=A,this.refs=T,this.updater=J||N}C.prototype.isReactComponent={},C.prototype.setState=function(P,A){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,A,"setState")},C.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function $(){}$.prototype=C.prototype;function F(P,A,J){this.props=P,this.context=A,this.refs=T,this.updater=J||N}var L=F.prototype=new $;L.constructor=F,R(L,C.prototype),L.isPureReactComponent=!0;var B=Array.isArray,ne=Object.prototype.hasOwnProperty,te={current:null},Z={key:!0,ref:!0,__self:!0,__source:!0};function V(P,A,J){var re,fe={},he=null,ae=null;if(A!=null)for(re in A.ref!==void 0&&(ae=A.ref),A.key!==void 0&&(he=""+A.key),A)ne.call(A,re)&&!Z.hasOwnProperty(re)&&(fe[re]=A[re]);var ge=arguments.length-2;if(ge===1)fe.children=J;else if(1<ge){for(var we=Array(ge),Be=0;Be<ge;Be++)we[Be]=arguments[Be+2];fe.children=we}if(P&&P.defaultProps)for(re in ge=P.defaultProps,ge)fe[re]===void 0&&(fe[re]=ge[re]);return{$$typeof:n,type:P,key:he,ref:ae,props:fe,_owner:te.current}}function xe(P,A){return{$$typeof:n,type:P.type,key:A,ref:P.ref,props:P.props,_owner:P._owner}}function Ne(P){return typeof P=="object"&&P!==null&&P.$$typeof===n}function Oe(P){var A={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(J){return A[J]})}var ke=/\/+/g;function Re(P,A){return typeof P=="object"&&P!==null&&P.key!=null?Oe(""+P.key):A.toString(36)}function oe(P,A,J,re,fe){var he=typeof P;(he==="undefined"||he==="boolean")&&(P=null);var ae=!1;if(P===null)ae=!0;else switch(he){case"string":case"number":ae=!0;break;case"object":switch(P.$$typeof){case n:case o:ae=!0}}if(ae)return ae=P,fe=fe(ae),P=re===""?"."+Re(ae,0):re,B(fe)?(J="",P!=null&&(J=P.replace(ke,"$&/")+"/"),oe(fe,A,J,"",function(Be){return Be})):fe!=null&&(Ne(fe)&&(fe=xe(fe,J+(!fe.key||ae&&ae.key===fe.key?"":(""+fe.key).replace(ke,"$&/")+"/")+P)),A.push(fe)),1;if(ae=0,re=re===""?".":re+":",B(P))for(var ge=0;ge<P.length;ge++){he=P[ge];var we=re+Re(he,ge);ae+=oe(he,A,J,we,fe)}else if(we=S(P),typeof we=="function")for(P=we.call(P),ge=0;!(he=P.next()).done;)he=he.value,we=re+Re(he,ge++),ae+=oe(he,A,J,we,fe);else if(he==="object")throw A=String(P),Error("Objects are not valid as a React child (found: "+(A==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":A)+"). If you meant to render a collection of children, use an array instead.");return ae}function ve(P,A,J){if(P==null)return P;var re=[],fe=0;return oe(P,re,"","",function(he){return A.call(J,he,fe++)}),re}function ue(P){if(P._status===-1){var A=P._result;A=A(),A.then(function(J){(P._status===0||P._status===-1)&&(P._status=1,P._result=J)},function(J){(P._status===0||P._status===-1)&&(P._status=2,P._result=J)}),P._status===-1&&(P._status=0,P._result=A)}if(P._status===1)return P._result.default;throw P._result}var pe={current:null},O={transition:null},ee={ReactCurrentDispatcher:pe,ReactCurrentBatchConfig:O,ReactCurrentOwner:te};function W(){throw Error("act(...) is not supported in production builds of React.")}return de.Children={map:ve,forEach:function(P,A,J){ve(P,function(){A.apply(this,arguments)},J)},count:function(P){var A=0;return ve(P,function(){A++}),A},toArray:function(P){return ve(P,function(A){return A})||[]},only:function(P){if(!Ne(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},de.Component=C,de.Fragment=s,de.Profiler=a,de.PureComponent=F,de.StrictMode=l,de.Suspense=m,de.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,de.act=W,de.cloneElement=function(P,A,J){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var re=R({},P.props),fe=P.key,he=P.ref,ae=P._owner;if(A!=null){if(A.ref!==void 0&&(he=A.ref,ae=te.current),A.key!==void 0&&(fe=""+A.key),P.type&&P.type.defaultProps)var ge=P.type.defaultProps;for(we in A)ne.call(A,we)&&!Z.hasOwnProperty(we)&&(re[we]=A[we]===void 0&&ge!==void 0?ge[we]:A[we])}var we=arguments.length-2;if(we===1)re.children=J;else if(1<we){ge=Array(we);for(var Be=0;Be<we;Be++)ge[Be]=arguments[Be+2];re.children=ge}return{$$typeof:n,type:P.type,key:fe,ref:he,props:re,_owner:ae}},de.createContext=function(P){return P={$$typeof:f,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:d,_context:P},P.Consumer=P},de.createElement=V,de.createFactory=function(P){var A=V.bind(null,P);return A.type=P,A},de.createRef=function(){return{current:null}},de.forwardRef=function(P){return{$$typeof:p,render:P}},de.isValidElement=Ne,de.lazy=function(P){return{$$typeof:w,_payload:{_status:-1,_result:P},_init:ue}},de.memo=function(P,A){return{$$typeof:v,type:P,compare:A===void 0?null:A}},de.startTransition=function(P){var A=O.transition;O.transition={};try{P()}finally{O.transition=A}},de.unstable_act=W,de.useCallback=function(P,A){return pe.current.useCallback(P,A)},de.useContext=function(P){return pe.current.useContext(P)},de.useDebugValue=function(){},de.useDeferredValue=function(P){return pe.current.useDeferredValue(P)},de.useEffect=function(P,A){return pe.current.useEffect(P,A)},de.useId=function(){return pe.current.useId()},de.useImperativeHandle=function(P,A,J){return pe.current.useImperativeHandle(P,A,J)},de.useInsertionEffect=function(P,A){return pe.current.useInsertionEffect(P,A)},de.useLayoutEffect=function(P,A){return pe.current.useLayoutEffect(P,A)},de.useMemo=function(P,A){return pe.current.useMemo(P,A)},de.useReducer=function(P,A,J){return pe.current.useReducer(P,A,J)},de.useRef=function(P){return pe.current.useRef(P)},de.useState=function(P){return pe.current.useState(P)},de.useSyncExternalStore=function(P,A,J){return pe.current.useSyncExternalStore(P,A,J)},de.useTransition=function(){return pe.current.useTransition()},de.version="18.3.1",de}var wf;function xo(){return wf||(wf=1,aa.exports=Ng()),aa.exports}/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its 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 Sf;function Rg(){if(Sf)return po;Sf=1;var n=xo(),o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function f(p,m,v){var w,y={},S=null,N=null;v!==void 0&&(S=""+v),m.key!==void 0&&(S=""+m.key),m.ref!==void 0&&(N=m.ref);for(w in m)l.call(m,w)&&!d.hasOwnProperty(w)&&(y[w]=m[w]);if(p&&p.defaultProps)for(w in m=p.defaultProps,m)y[w]===void 0&&(y[w]=m[w]);return{$$typeof:o,type:p,key:S,ref:N,props:y,_owner:a.current}}return po.Fragment=s,po.jsx=f,po.jsxs=f,po}var Ef;function Pg(){return Ef||(Ef=1,la.exports=Rg()),la.exports}var g=Pg(),x=xo();const Ut=gp(x),ti=Tg({__proto__:null,default:Ut},[x]);var As={},ua={exports:{}},lt={},ca={exports:{}},da={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its 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 kf;function jg(){return kf||(kf=1,(function(n){function o(O,ee){var W=O.length;O.push(ee);e:for(;0<W;){var P=W-1>>>1,A=O[P];if(0<a(A,ee))O[P]=ee,O[W]=A,W=P;else break e}}function s(O){return O.length===0?null:O[0]}function l(O){if(O.length===0)return null;var ee=O[0],W=O.pop();if(W!==ee){O[0]=W;e:for(var P=0,A=O.length,J=A>>>1;P<J;){var re=2*(P+1)-1,fe=O[re],he=re+1,ae=O[he];if(0>a(fe,W))he<A&&0>a(ae,fe)?(O[P]=ae,O[he]=W,P=he):(O[P]=fe,O[re]=W,P=re);else if(he<A&&0>a(ae,W))O[P]=ae,O[he]=W,P=he;else break e}}return ee}function a(O,ee){var W=O.sortIndex-ee.sortIndex;return W!==0?W:O.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var f=Date,p=f.now();n.unstable_now=function(){return f.now()-p}}var m=[],v=[],w=1,y=null,S=3,N=!1,R=!1,T=!1,C=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function L(O){for(var ee=s(v);ee!==null;){if(ee.callback===null)l(v);else if(ee.startTime<=O)l(v),ee.sortIndex=ee.expirationTime,o(m,ee);else break;ee=s(v)}}function B(O){if(T=!1,L(O),!R)if(s(m)!==null)R=!0,ue(ne);else{var ee=s(v);ee!==null&&pe(B,ee.startTime-O)}}function ne(O,ee){R=!1,T&&(T=!1,$(V),V=-1),N=!0;var W=S;try{for(L(ee),y=s(m);y!==null&&(!(y.expirationTime>ee)||O&&!Oe());){var P=y.callback;if(typeof P=="function"){y.callback=null,S=y.priorityLevel;var A=P(y.expirationTime<=ee);ee=n.unstable_now(),typeof A=="function"?y.callback=A:y===s(m)&&l(m),L(ee)}else l(m);y=s(m)}if(y!==null)var J=!0;else{var re=s(v);re!==null&&pe(B,re.startTime-ee),J=!1}return J}finally{y=null,S=W,N=!1}}var te=!1,Z=null,V=-1,xe=5,Ne=-1;function Oe(){return!(n.unstable_now()-Ne<xe)}function ke(){if(Z!==null){var O=n.unstable_now();Ne=O;var ee=!0;try{ee=Z(!0,O)}finally{ee?Re():(te=!1,Z=null)}}else te=!1}var Re;if(typeof F=="function")Re=function(){F(ke)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,ve=oe.port2;oe.port1.onmessage=ke,Re=function(){ve.postMessage(null)}}else Re=function(){C(ke,0)};function ue(O){Z=O,te||(te=!0,Re())}function pe(O,ee){V=C(function(){O(n.unstable_now())},ee)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(O){O.callback=null},n.unstable_continueExecution=function(){R||N||(R=!0,ue(ne))},n.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xe=0<O?Math.floor(1e3/O):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_getFirstCallbackNode=function(){return s(m)},n.unstable_next=function(O){switch(S){case 1:case 2:case 3:var ee=3;break;default:ee=S}var W=S;S=ee;try{return O()}finally{S=W}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(O,ee){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var W=S;S=O;try{return ee()}finally{S=W}},n.unstable_scheduleCallback=function(O,ee,W){var P=n.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?P+W:P):W=P,O){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=W+A,O={id:w++,callback:ee,priorityLevel:O,startTime:W,expirationTime:A,sortIndex:-1},W>P?(O.sortIndex=W,o(v,O),s(m)===null&&O===s(v)&&(T?($(V),V=-1):T=!0,pe(B,W-P))):(O.sortIndex=A,o(m,O),R||N||(R=!0,ue(ne))),O},n.unstable_shouldYield=Oe,n.unstable_wrapCallback=function(O){var ee=S;return function(){var W=S;S=ee;try{return O.apply(this,arguments)}finally{S=W}}}})(da)),da}var Cf;function bg(){return Cf||(Cf=1,ca.exports=jg()),ca.exports}/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its 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 _f;function Ig(){if(_f)return lt;_f=1;var n=xo(),o=bg();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,a={};function d(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(a[e]=t,e=0;e<t.length;e++)l.add(t[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,v=/^[: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]*$/,w={},y={};function S(e){return m.call(y,e)?!0:m.call(w,e)?!1:v.test(e)?y[e]=!0:(w[e]=!0,!1)}function N(e,t,r,i){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function R(e,t,r,i){if(t===null||typeof t>"u"||N(e,t,r,i))return!0;if(i)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function T(e,t,r,i,u,c,h){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=u,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=h}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){C[e]=new T(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];C[t]=new T(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){C[e]=new T(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){C[e]=new T(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){C[e]=new T(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){C[e]=new T(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){C[e]=new T(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){C[e]=new T(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){C[e]=new T(e,5,!1,e.toLowerCase(),null,!1,!1)});var $=/[\-:]([a-z])/g;function F(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace($,F);C[t]=new T(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace($,F);C[t]=new T(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace($,F);C[t]=new T(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){C[e]=new T(e,1,!1,e.toLowerCase(),null,!1,!1)}),C.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){C[e]=new T(e,1,!1,e.toLowerCase(),null,!0,!0)});function L(e,t,r,i){var u=C.hasOwnProperty(t)?C[t]:null;(u!==null?u.type!==0:i||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(R(t,r,u,i)&&(r=null),i||u===null?S(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):u.mustUseProperty?e[u.propertyName]=r===null?u.type===3?!1:"":r:(t=u.attributeName,i=u.attributeNamespace,r===null?e.removeAttribute(t):(u=u.type,r=u===3||u===4&&r===!0?"":""+r,i?e.setAttributeNS(i,t,r):e.setAttribute(t,r))))}var B=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ne=Symbol.for("react.element"),te=Symbol.for("react.portal"),Z=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),xe=Symbol.for("react.profiler"),Ne=Symbol.for("react.provider"),Oe=Symbol.for("react.context"),ke=Symbol.for("react.forward_ref"),Re=Symbol.for("react.suspense"),oe=Symbol.for("react.suspense_list"),ve=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),pe=Symbol.for("react.offscreen"),O=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=O&&e[O]||e["@@iterator"],typeof e=="function"?e:null)}var W=Object.assign,P;function A(e){if(P===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||""}return`
|
|
34
|
+
`+P+e}var J=!1;function re(e,t){if(!e||J)return"";J=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(I){var i=I}Reflect.construct(e,[],t)}else{try{t.call()}catch(I){i=I}e.call(t.prototype)}else{try{throw Error()}catch(I){i=I}e()}}catch(I){if(I&&i&&typeof I.stack=="string"){for(var u=I.stack.split(`
|
|
35
|
+
`),c=i.stack.split(`
|
|
36
|
+
`),h=u.length-1,E=c.length-1;1<=h&&0<=E&&u[h]!==c[E];)E--;for(;1<=h&&0<=E;h--,E--)if(u[h]!==c[E]){if(h!==1||E!==1)do if(h--,E--,0>E||u[h]!==c[E]){var k=`
|
|
37
|
+
`+u[h].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=h&&0<=E);break}}}finally{J=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?A(e):""}function fe(e){switch(e.tag){case 5:return A(e.type);case 16:return A("Lazy");case 13:return A("Suspense");case 19:return A("SuspenseList");case 0:case 2:case 15:return e=re(e.type,!1),e;case 11:return e=re(e.type.render,!1),e;case 1:return e=re(e.type,!0),e;default:return""}}function he(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Z:return"Fragment";case te:return"Portal";case xe:return"Profiler";case V:return"StrictMode";case Re:return"Suspense";case oe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Oe:return(e.displayName||"Context")+".Consumer";case Ne:return(e._context.displayName||"Context")+".Provider";case ke:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ve:return t=e.displayName||null,t!==null?t:he(e.type)||"Memo";case ue:t=e._payload,e=e._init;try{return he(e(t))}catch{}}return null}function ae(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return he(t);case 8:return t===V?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ge(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function we(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Be(e){var t=we(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var u=r.get,c=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(h){i=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(h){i=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Kt(e){e._valueTracker||(e._valueTracker=Be(e))}function En(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),i="";return e&&(i=we(e)?e.checked?"true":"false":e.value),e=i,e!==r?(t.setValue(e),!0):!1}function _o(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function hi(e,t){var r=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function _u(e,t){var r=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;r=ge(t.value!=null?t.value:r),e._wrapperState={initialChecked:i,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Tu(e,t){t=t.checked,t!=null&&L(e,"checked",t,!1)}function mi(e,t){Tu(e,t);var r=ge(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?vi(e,t.type,r):t.hasOwnProperty("defaultValue")&&vi(e,t.type,ge(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Nu(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function vi(e,t,r){(t!=="number"||_o(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Nr=Array.isArray;function Vn(e,t,r,i){if(e=e.options,t){t={};for(var u=0;u<r.length;u++)t["$"+r[u]]=!0;for(r=0;r<e.length;r++)u=t.hasOwnProperty("$"+e[r].value),e[r].selected!==u&&(e[r].selected=u),u&&i&&(e[r].defaultSelected=!0)}else{for(r=""+ge(r),t=null,u=0;u<e.length;u++){if(e[u].value===r){e[u].selected=!0,i&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function gi(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(s(91));return W({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ru(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(s(92));if(Nr(r)){if(1<r.length)throw Error(s(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ge(r)}}function Pu(e,t){var r=ge(t.value),i=ge(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),i!=null&&(e.defaultValue=""+i)}function ju(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function bu(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function yi(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?bu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var To,Iu=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,i,u){MSApp.execUnsafeLocalFunction(function(){return e(t,r,i,u)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(To=To||document.createElement("div"),To.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=To.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Rr(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Pr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},jm=["Webkit","ms","Moz","O"];Object.keys(Pr).forEach(function(e){jm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pr[t]=Pr[e]})});function Ou(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Pr.hasOwnProperty(e)&&Pr[e]?(""+t).trim():t+"px"}function Au(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=r.indexOf("--")===0,u=Ou(r,t[r],i);r==="float"&&(r="cssFloat"),i?e.setProperty(r,u):e[r]=u}}var bm=W({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xi(e,t){if(t){if(bm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function wi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Si=null;function Ei(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ki=null,Wn=null,Hn=null;function Lu(e){if(e=Jr(e)){if(typeof ki!="function")throw Error(s(280));var t=e.stateNode;t&&(t=Qo(t),ki(e.stateNode,e.type,t))}}function Du(e){Wn?Hn?Hn.push(e):Hn=[e]:Wn=e}function Mu(){if(Wn){var e=Wn,t=Hn;if(Hn=Wn=null,Lu(e),t)for(e=0;e<t.length;e++)Lu(t[e])}}function zu(e,t){return e(t)}function Fu(){}var Ci=!1;function $u(e,t,r){if(Ci)return e(t,r);Ci=!0;try{return zu(e,t,r)}finally{Ci=!1,(Wn!==null||Hn!==null)&&(Fu(),Mu())}}function jr(e,t){var r=e.stateNode;if(r===null)return null;var i=Qo(r);if(i===null)return null;r=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(s(231,t,typeof r));return r}var _i=!1;if(p)try{var br={};Object.defineProperty(br,"passive",{get:function(){_i=!0}}),window.addEventListener("test",br,br),window.removeEventListener("test",br,br)}catch{_i=!1}function Im(e,t,r,i,u,c,h,E,k){var I=Array.prototype.slice.call(arguments,3);try{t.apply(r,I)}catch(M){this.onError(M)}}var Ir=!1,No=null,Ro=!1,Ti=null,Om={onError:function(e){Ir=!0,No=e}};function Am(e,t,r,i,u,c,h,E,k){Ir=!1,No=null,Im.apply(Om,arguments)}function Lm(e,t,r,i,u,c,h,E,k){if(Am.apply(this,arguments),Ir){if(Ir){var I=No;Ir=!1,No=null}else throw Error(s(198));Ro||(Ro=!0,Ti=I)}}function kn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Uu(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 Bu(e){if(kn(e)!==e)throw Error(s(188))}function Dm(e){var t=e.alternate;if(!t){if(t=kn(e),t===null)throw Error(s(188));return t!==e?null:e}for(var r=e,i=t;;){var u=r.return;if(u===null)break;var c=u.alternate;if(c===null){if(i=u.return,i!==null){r=i;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===r)return Bu(u),e;if(c===i)return Bu(u),t;c=c.sibling}throw Error(s(188))}if(r.return!==i.return)r=u,i=c;else{for(var h=!1,E=u.child;E;){if(E===r){h=!0,r=u,i=c;break}if(E===i){h=!0,i=u,r=c;break}E=E.sibling}if(!h){for(E=c.child;E;){if(E===r){h=!0,r=c,i=u;break}if(E===i){h=!0,i=c,r=u;break}E=E.sibling}if(!h)throw Error(s(189))}}if(r.alternate!==i)throw Error(s(190))}if(r.tag!==3)throw Error(s(188));return r.stateNode.current===r?e:t}function Vu(e){return e=Dm(e),e!==null?Wu(e):null}function Wu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Wu(e);if(t!==null)return t;e=e.sibling}return null}var Hu=o.unstable_scheduleCallback,Gu=o.unstable_cancelCallback,Mm=o.unstable_shouldYield,zm=o.unstable_requestPaint,Ae=o.unstable_now,Fm=o.unstable_getCurrentPriorityLevel,Ni=o.unstable_ImmediatePriority,Ku=o.unstable_UserBlockingPriority,Po=o.unstable_NormalPriority,$m=o.unstable_LowPriority,Yu=o.unstable_IdlePriority,jo=null,Tt=null;function Um(e){if(Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(jo,e,void 0,(e.current.flags&128)===128)}catch{}}var xt=Math.clz32?Math.clz32:Wm,Bm=Math.log,Vm=Math.LN2;function Wm(e){return e>>>=0,e===0?32:31-(Bm(e)/Vm|0)|0}var bo=64,Io=4194304;function Or(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Oo(e,t){var r=e.pendingLanes;if(r===0)return 0;var i=0,u=e.suspendedLanes,c=e.pingedLanes,h=r&268435455;if(h!==0){var E=h&~u;E!==0?i=Or(E):(c&=h,c!==0&&(i=Or(c)))}else h=r&~u,h!==0?i=Or(h):c!==0&&(i=Or(c));if(i===0)return 0;if(t!==0&&t!==i&&(t&u)===0&&(u=i&-i,c=t&-t,u>=c||u===16&&(c&4194240)!==0))return t;if((i&4)!==0&&(i|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0<t;)r=31-xt(t),u=1<<r,i|=e[r],t&=~u;return i}function Hm(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Gm(e,t){for(var r=e.suspendedLanes,i=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes;0<c;){var h=31-xt(c),E=1<<h,k=u[h];k===-1?((E&r)===0||(E&i)!==0)&&(u[h]=Hm(E,t)):k<=t&&(e.expiredLanes|=E),c&=~E}}function Ri(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Qu(){var e=bo;return bo<<=1,(bo&4194240)===0&&(bo=64),e}function Pi(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ar(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=r}function Km(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<r;){var u=31-xt(r),c=1<<u;t[u]=0,i[u]=-1,e[u]=-1,r&=~c}}function ji(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var i=31-xt(r),u=1<<i;u&t|e[i]&t&&(e[i]|=t),r&=~u}}var Se=0;function Xu(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ju,bi,qu,Zu,ec,Ii=!1,Ao=[],Yt=null,Qt=null,Xt=null,Lr=new Map,Dr=new Map,Jt=[],Ym="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function tc(e,t){switch(e){case"focusin":case"focusout":Yt=null;break;case"dragenter":case"dragleave":Qt=null;break;case"mouseover":case"mouseout":Xt=null;break;case"pointerover":case"pointerout":Lr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dr.delete(t.pointerId)}}function Mr(e,t,r,i,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:r,eventSystemFlags:i,nativeEvent:c,targetContainers:[u]},t!==null&&(t=Jr(t),t!==null&&bi(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Qm(e,t,r,i,u){switch(t){case"focusin":return Yt=Mr(Yt,e,t,r,i,u),!0;case"dragenter":return Qt=Mr(Qt,e,t,r,i,u),!0;case"mouseover":return Xt=Mr(Xt,e,t,r,i,u),!0;case"pointerover":var c=u.pointerId;return Lr.set(c,Mr(Lr.get(c)||null,e,t,r,i,u)),!0;case"gotpointercapture":return c=u.pointerId,Dr.set(c,Mr(Dr.get(c)||null,e,t,r,i,u)),!0}return!1}function nc(e){var t=Cn(e.target);if(t!==null){var r=kn(t);if(r!==null){if(t=r.tag,t===13){if(t=Uu(r),t!==null){e.blockedOn=t,ec(e.priority,function(){qu(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Lo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Ai(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var i=new r.constructor(r.type,r);Si=i,r.target.dispatchEvent(i),Si=null}else return t=Jr(r),t!==null&&bi(t),e.blockedOn=r,!1;t.shift()}return!0}function rc(e,t,r){Lo(e)&&r.delete(t)}function Xm(){Ii=!1,Yt!==null&&Lo(Yt)&&(Yt=null),Qt!==null&&Lo(Qt)&&(Qt=null),Xt!==null&&Lo(Xt)&&(Xt=null),Lr.forEach(rc),Dr.forEach(rc)}function zr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ii||(Ii=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Xm)))}function Fr(e){function t(u){return zr(u,e)}if(0<Ao.length){zr(Ao[0],e);for(var r=1;r<Ao.length;r++){var i=Ao[r];i.blockedOn===e&&(i.blockedOn=null)}}for(Yt!==null&&zr(Yt,e),Qt!==null&&zr(Qt,e),Xt!==null&&zr(Xt,e),Lr.forEach(t),Dr.forEach(t),r=0;r<Jt.length;r++)i=Jt[r],i.blockedOn===e&&(i.blockedOn=null);for(;0<Jt.length&&(r=Jt[0],r.blockedOn===null);)nc(r),r.blockedOn===null&&Jt.shift()}var Gn=B.ReactCurrentBatchConfig,Do=!0;function Jm(e,t,r,i){var u=Se,c=Gn.transition;Gn.transition=null;try{Se=1,Oi(e,t,r,i)}finally{Se=u,Gn.transition=c}}function qm(e,t,r,i){var u=Se,c=Gn.transition;Gn.transition=null;try{Se=4,Oi(e,t,r,i)}finally{Se=u,Gn.transition=c}}function Oi(e,t,r,i){if(Do){var u=Ai(e,t,r,i);if(u===null)Ji(e,t,i,Mo,r),tc(e,i);else if(Qm(u,e,t,r,i))i.stopPropagation();else if(tc(e,i),t&4&&-1<Ym.indexOf(e)){for(;u!==null;){var c=Jr(u);if(c!==null&&Ju(c),c=Ai(e,t,r,i),c===null&&Ji(e,t,i,Mo,r),c===u)break;u=c}u!==null&&i.stopPropagation()}else Ji(e,t,i,null,r)}}var Mo=null;function Ai(e,t,r,i){if(Mo=null,e=Ei(i),e=Cn(e),e!==null)if(t=kn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Uu(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Mo=e,null}function oc(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Fm()){case Ni:return 1;case Ku:return 4;case Po:case $m:return 16;case Yu:return 536870912;default:return 16}default:return 16}}var qt=null,Li=null,zo=null;function sc(){if(zo)return zo;var e,t=Li,r=t.length,i,u="value"in qt?qt.value:qt.textContent,c=u.length;for(e=0;e<r&&t[e]===u[e];e++);var h=r-e;for(i=1;i<=h&&t[r-i]===u[c-i];i++);return zo=u.slice(e,1<i?1-i:void 0)}function Fo(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 $o(){return!0}function ic(){return!1}function ut(e){function t(r,i,u,c,h){this._reactName=r,this._targetInst=u,this.type=i,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(r=e[E],this[E]=r?r(c):c[E]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?$o:ic,this.isPropagationStopped=ic,this}return W(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=$o)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=$o)},persist:function(){},isPersistent:$o}),t}var Kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Di=ut(Kn),$r=W({},Kn,{view:0,detail:0}),Zm=ut($r),Mi,zi,Ur,Uo=W({},$r,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$i,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!==Ur&&(Ur&&e.type==="mousemove"?(Mi=e.screenX-Ur.screenX,zi=e.screenY-Ur.screenY):zi=Mi=0,Ur=e),Mi)},movementY:function(e){return"movementY"in e?e.movementY:zi}}),lc=ut(Uo),ev=W({},Uo,{dataTransfer:0}),tv=ut(ev),nv=W({},$r,{relatedTarget:0}),Fi=ut(nv),rv=W({},Kn,{animationName:0,elapsedTime:0,pseudoElement:0}),ov=ut(rv),sv=W({},Kn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),iv=ut(sv),lv=W({},Kn,{data:0}),ac=ut(lv),av={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uv={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"},cv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=cv[e])?!!t[e]:!1}function $i(){return dv}var fv=W({},$r,{key:function(e){if(e.key){var t=av[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?uv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$i,charCode:function(e){return e.type==="keypress"?Fo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),pv=ut(fv),hv=W({},Uo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uc=ut(hv),mv=W({},$r,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$i}),vv=ut(mv),gv=W({},Kn,{propertyName:0,elapsedTime:0,pseudoElement:0}),yv=ut(gv),xv=W({},Uo,{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}),wv=ut(xv),Sv=[9,13,27,32],Ui=p&&"CompositionEvent"in window,Br=null;p&&"documentMode"in document&&(Br=document.documentMode);var Ev=p&&"TextEvent"in window&&!Br,cc=p&&(!Ui||Br&&8<Br&&11>=Br),dc=" ",fc=!1;function pc(e,t){switch(e){case"keyup":return Sv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yn=!1;function kv(e,t){switch(e){case"compositionend":return hc(t);case"keypress":return t.which!==32?null:(fc=!0,dc);case"textInput":return e=t.data,e===dc&&fc?null:e;default:return null}}function Cv(e,t){if(Yn)return e==="compositionend"||!Ui&&pc(e,t)?(e=sc(),zo=Li=qt=null,Yn=!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 cc&&t.locale!=="ko"?null:t.data;default:return null}}var _v={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 mc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_v[e.type]:t==="textarea"}function vc(e,t,r,i){Du(i),t=Go(t,"onChange"),0<t.length&&(r=new Di("onChange","change",null,r,i),e.push({event:r,listeners:t}))}var Vr=null,Wr=null;function Tv(e){Ac(e,0)}function Bo(e){var t=Zn(e);if(En(t))return e}function Nv(e,t){if(e==="change")return t}var gc=!1;if(p){var Bi;if(p){var Vi="oninput"in document;if(!Vi){var yc=document.createElement("div");yc.setAttribute("oninput","return;"),Vi=typeof yc.oninput=="function"}Bi=Vi}else Bi=!1;gc=Bi&&(!document.documentMode||9<document.documentMode)}function xc(){Vr&&(Vr.detachEvent("onpropertychange",wc),Wr=Vr=null)}function wc(e){if(e.propertyName==="value"&&Bo(Wr)){var t=[];vc(t,Wr,e,Ei(e)),$u(Tv,t)}}function Rv(e,t,r){e==="focusin"?(xc(),Vr=t,Wr=r,Vr.attachEvent("onpropertychange",wc)):e==="focusout"&&xc()}function Pv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Bo(Wr)}function jv(e,t){if(e==="click")return Bo(t)}function bv(e,t){if(e==="input"||e==="change")return Bo(t)}function Iv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wt=typeof Object.is=="function"?Object.is:Iv;function Hr(e,t){if(wt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(i=0;i<r.length;i++){var u=r[i];if(!m.call(t,u)||!wt(e[u],t[u]))return!1}return!0}function Sc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ec(e,t){var r=Sc(e);e=0;for(var i;r;){if(r.nodeType===3){if(i=e+r.textContent.length,e<=t&&i>=t)return{node:r,offset:t-e};e=i}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Sc(r)}}function kc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cc(){for(var e=window,t=_o();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=_o(e.document)}return t}function Wi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ov(e){var t=Cc(),r=e.focusedElem,i=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&kc(r.ownerDocument.documentElement,r)){if(i!==null&&Wi(r)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var u=r.textContent.length,c=Math.min(i.start,u);i=i.end===void 0?c:Math.min(i.end,u),!e.extend&&c>i&&(u=i,i=c,c=u),u=Ec(r,c);var h=Ec(r,i);u&&h&&(e.rangeCount!==1||e.anchorNode!==u.node||e.anchorOffset!==u.offset||e.focusNode!==h.node||e.focusOffset!==h.offset)&&(t=t.createRange(),t.setStart(u.node,u.offset),e.removeAllRanges(),c>i?(e.addRange(t),e.extend(h.node,h.offset)):(t.setEnd(h.node,h.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Av=p&&"documentMode"in document&&11>=document.documentMode,Qn=null,Hi=null,Gr=null,Gi=!1;function _c(e,t,r){var i=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Gi||Qn==null||Qn!==_o(i)||(i=Qn,"selectionStart"in i&&Wi(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Gr&&Hr(Gr,i)||(Gr=i,i=Go(Hi,"onSelect"),0<i.length&&(t=new Di("onSelect","select",null,t,r),e.push({event:t,listeners:i}),t.target=Qn)))}function Vo(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Xn={animationend:Vo("Animation","AnimationEnd"),animationiteration:Vo("Animation","AnimationIteration"),animationstart:Vo("Animation","AnimationStart"),transitionend:Vo("Transition","TransitionEnd")},Ki={},Tc={};p&&(Tc=document.createElement("div").style,"AnimationEvent"in window||(delete Xn.animationend.animation,delete Xn.animationiteration.animation,delete Xn.animationstart.animation),"TransitionEvent"in window||delete Xn.transitionend.transition);function Wo(e){if(Ki[e])return Ki[e];if(!Xn[e])return e;var t=Xn[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Tc)return Ki[e]=t[r];return e}var Nc=Wo("animationend"),Rc=Wo("animationiteration"),Pc=Wo("animationstart"),jc=Wo("transitionend"),bc=new Map,Ic="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Zt(e,t){bc.set(e,t),d(t,[e])}for(var Yi=0;Yi<Ic.length;Yi++){var Qi=Ic[Yi],Lv=Qi.toLowerCase(),Dv=Qi[0].toUpperCase()+Qi.slice(1);Zt(Lv,"on"+Dv)}Zt(Nc,"onAnimationEnd"),Zt(Rc,"onAnimationIteration"),Zt(Pc,"onAnimationStart"),Zt("dblclick","onDoubleClick"),Zt("focusin","onFocus"),Zt("focusout","onBlur"),Zt(jc,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kr="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(" "),Mv=new Set("cancel close invalid load scroll toggle".split(" ").concat(Kr));function Oc(e,t,r){var i=e.type||"unknown-event";e.currentTarget=r,Lm(i,t,void 0,e),e.currentTarget=null}function Ac(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var i=e[r],u=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var h=i.length-1;0<=h;h--){var E=i[h],k=E.instance,I=E.currentTarget;if(E=E.listener,k!==c&&u.isPropagationStopped())break e;Oc(u,E,I),c=k}else for(h=0;h<i.length;h++){if(E=i[h],k=E.instance,I=E.currentTarget,E=E.listener,k!==c&&u.isPropagationStopped())break e;Oc(u,E,I),c=k}}}if(Ro)throw e=Ti,Ro=!1,Ti=null,e}function Ce(e,t){var r=t[rl];r===void 0&&(r=t[rl]=new Set);var i=e+"__bubble";r.has(i)||(Lc(t,e,2,!1),r.add(i))}function Xi(e,t,r){var i=0;t&&(i|=4),Lc(r,e,i,t)}var Ho="_reactListening"+Math.random().toString(36).slice(2);function Yr(e){if(!e[Ho]){e[Ho]=!0,l.forEach(function(r){r!=="selectionchange"&&(Mv.has(r)||Xi(r,!1,e),Xi(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ho]||(t[Ho]=!0,Xi("selectionchange",!1,t))}}function Lc(e,t,r,i){switch(oc(t)){case 1:var u=Jm;break;case 4:u=qm;break;default:u=Oi}r=u.bind(null,t,r,e),u=void 0,!_i||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),i?u!==void 0?e.addEventListener(t,r,{capture:!0,passive:u}):e.addEventListener(t,r,!0):u!==void 0?e.addEventListener(t,r,{passive:u}):e.addEventListener(t,r,!1)}function Ji(e,t,r,i,u){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var h=i.tag;if(h===3||h===4){var E=i.stateNode.containerInfo;if(E===u||E.nodeType===8&&E.parentNode===u)break;if(h===4)for(h=i.return;h!==null;){var k=h.tag;if((k===3||k===4)&&(k=h.stateNode.containerInfo,k===u||k.nodeType===8&&k.parentNode===u))return;h=h.return}for(;E!==null;){if(h=Cn(E),h===null)return;if(k=h.tag,k===5||k===6){i=c=h;continue e}E=E.parentNode}}i=i.return}$u(function(){var I=c,M=Ei(r),z=[];e:{var D=bc.get(e);if(D!==void 0){var H=Di,K=e;switch(e){case"keypress":if(Fo(r)===0)break e;case"keydown":case"keyup":H=pv;break;case"focusin":K="focus",H=Fi;break;case"focusout":K="blur",H=Fi;break;case"beforeblur":case"afterblur":H=Fi;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=lc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=tv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=vv;break;case Nc:case Rc:case Pc:H=ov;break;case jc:H=yv;break;case"scroll":H=Zm;break;case"wheel":H=wv;break;case"copy":case"cut":case"paste":H=iv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=uc}var X=(t&4)!==0,Le=!X&&e==="scroll",j=X?D!==null?D+"Capture":null:D;X=[];for(var _=I,b;_!==null;){b=_;var U=b.stateNode;if(b.tag===5&&U!==null&&(b=U,j!==null&&(U=jr(_,j),U!=null&&X.push(Qr(_,U,b)))),Le)break;_=_.return}0<X.length&&(D=new H(D,K,null,r,M),z.push({event:D,listeners:X}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",D&&r!==Si&&(K=r.relatedTarget||r.fromElement)&&(Cn(K)||K[It]))break e;if((H||D)&&(D=M.window===M?M:(D=M.ownerDocument)?D.defaultView||D.parentWindow:window,H?(K=r.relatedTarget||r.toElement,H=I,K=K?Cn(K):null,K!==null&&(Le=kn(K),K!==Le||K.tag!==5&&K.tag!==6)&&(K=null)):(H=null,K=I),H!==K)){if(X=lc,U="onMouseLeave",j="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(X=uc,U="onPointerLeave",j="onPointerEnter",_="pointer"),Le=H==null?D:Zn(H),b=K==null?D:Zn(K),D=new X(U,_+"leave",H,r,M),D.target=Le,D.relatedTarget=b,U=null,Cn(M)===I&&(X=new X(j,_+"enter",K,r,M),X.target=b,X.relatedTarget=Le,U=X),Le=U,H&&K)t:{for(X=H,j=K,_=0,b=X;b;b=Jn(b))_++;for(b=0,U=j;U;U=Jn(U))b++;for(;0<_-b;)X=Jn(X),_--;for(;0<b-_;)j=Jn(j),b--;for(;_--;){if(X===j||j!==null&&X===j.alternate)break t;X=Jn(X),j=Jn(j)}X=null}else X=null;H!==null&&Dc(z,D,H,X,!1),K!==null&&Le!==null&&Dc(z,Le,K,X,!0)}}e:{if(D=I?Zn(I):window,H=D.nodeName&&D.nodeName.toLowerCase(),H==="select"||H==="input"&&D.type==="file")var q=Nv;else if(mc(D))if(gc)q=bv;else{q=Pv;var se=Rv}else(H=D.nodeName)&&H.toLowerCase()==="input"&&(D.type==="checkbox"||D.type==="radio")&&(q=jv);if(q&&(q=q(e,I))){vc(z,q,r,M);break e}se&&se(e,D,I),e==="focusout"&&(se=D._wrapperState)&&se.controlled&&D.type==="number"&&vi(D,"number",D.value)}switch(se=I?Zn(I):window,e){case"focusin":(mc(se)||se.contentEditable==="true")&&(Qn=se,Hi=I,Gr=null);break;case"focusout":Gr=Hi=Qn=null;break;case"mousedown":Gi=!0;break;case"contextmenu":case"mouseup":case"dragend":Gi=!1,_c(z,r,M);break;case"selectionchange":if(Av)break;case"keydown":case"keyup":_c(z,r,M)}var ie;if(Ui)e:{switch(e){case"compositionstart":var le="onCompositionStart";break e;case"compositionend":le="onCompositionEnd";break e;case"compositionupdate":le="onCompositionUpdate";break e}le=void 0}else Yn?pc(e,r)&&(le="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(le="onCompositionStart");le&&(cc&&r.locale!=="ko"&&(Yn||le!=="onCompositionStart"?le==="onCompositionEnd"&&Yn&&(ie=sc()):(qt=M,Li="value"in qt?qt.value:qt.textContent,Yn=!0)),se=Go(I,le),0<se.length&&(le=new ac(le,e,null,r,M),z.push({event:le,listeners:se}),ie?le.data=ie:(ie=hc(r),ie!==null&&(le.data=ie)))),(ie=Ev?kv(e,r):Cv(e,r))&&(I=Go(I,"onBeforeInput"),0<I.length&&(M=new ac("onBeforeInput","beforeinput",null,r,M),z.push({event:M,listeners:I}),M.data=ie))}Ac(z,t)})}function Qr(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Go(e,t){for(var r=t+"Capture",i=[];e!==null;){var u=e,c=u.stateNode;u.tag===5&&c!==null&&(u=c,c=jr(e,r),c!=null&&i.unshift(Qr(e,c,u)),c=jr(e,t),c!=null&&i.push(Qr(e,c,u))),e=e.return}return i}function Jn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Dc(e,t,r,i,u){for(var c=t._reactName,h=[];r!==null&&r!==i;){var E=r,k=E.alternate,I=E.stateNode;if(k!==null&&k===i)break;E.tag===5&&I!==null&&(E=I,u?(k=jr(r,c),k!=null&&h.unshift(Qr(r,k,E))):u||(k=jr(r,c),k!=null&&h.push(Qr(r,k,E)))),r=r.return}h.length!==0&&e.push({event:t,listeners:h})}var zv=/\r\n?/g,Fv=/\u0000|\uFFFD/g;function Mc(e){return(typeof e=="string"?e:""+e).replace(zv,`
|
|
38
|
+
`).replace(Fv,"")}function Ko(e,t,r){if(t=Mc(t),Mc(e)!==t&&r)throw Error(s(425))}function Yo(){}var qi=null,Zi=null;function el(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var tl=typeof setTimeout=="function"?setTimeout:void 0,$v=typeof clearTimeout=="function"?clearTimeout:void 0,zc=typeof Promise=="function"?Promise:void 0,Uv=typeof queueMicrotask=="function"?queueMicrotask:typeof zc<"u"?function(e){return zc.resolve(null).then(e).catch(Bv)}:tl;function Bv(e){setTimeout(function(){throw e})}function nl(e,t){var r=t,i=0;do{var u=r.nextSibling;if(e.removeChild(r),u&&u.nodeType===8)if(r=u.data,r==="/$"){if(i===0){e.removeChild(u),Fr(t);return}i--}else r!=="$"&&r!=="$?"&&r!=="$!"||i++;r=u}while(r);Fr(t)}function en(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Fc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var qn=Math.random().toString(36).slice(2),Nt="__reactFiber$"+qn,Xr="__reactProps$"+qn,It="__reactContainer$"+qn,rl="__reactEvents$"+qn,Vv="__reactListeners$"+qn,Wv="__reactHandles$"+qn;function Cn(e){var t=e[Nt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[It]||r[Nt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Fc(e);e!==null;){if(r=e[Nt])return r;e=Fc(e)}return t}e=r,r=e.parentNode}return null}function Jr(e){return e=e[Nt]||e[It],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Zn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(s(33))}function Qo(e){return e[Xr]||null}var ol=[],er=-1;function tn(e){return{current:e}}function _e(e){0>er||(e.current=ol[er],ol[er]=null,er--)}function Ee(e,t){er++,ol[er]=e.current,e.current=t}var nn={},Qe=tn(nn),nt=tn(!1),_n=nn;function tr(e,t){var r=e.type.contextTypes;if(!r)return nn;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var u={},c;for(c in r)u[c]=t[c];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=u),u}function rt(e){return e=e.childContextTypes,e!=null}function Xo(){_e(nt),_e(Qe)}function $c(e,t,r){if(Qe.current!==nn)throw Error(s(168));Ee(Qe,t),Ee(nt,r)}function Uc(e,t,r){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return r;i=i.getChildContext();for(var u in i)if(!(u in t))throw Error(s(108,ae(e)||"Unknown",u));return W({},r,i)}function Jo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nn,_n=Qe.current,Ee(Qe,e),Ee(nt,nt.current),!0}function Bc(e,t,r){var i=e.stateNode;if(!i)throw Error(s(169));r?(e=Uc(e,t,_n),i.__reactInternalMemoizedMergedChildContext=e,_e(nt),_e(Qe),Ee(Qe,e)):_e(nt),Ee(nt,r)}var Ot=null,qo=!1,sl=!1;function Vc(e){Ot===null?Ot=[e]:Ot.push(e)}function Hv(e){qo=!0,Vc(e)}function rn(){if(!sl&&Ot!==null){sl=!0;var e=0,t=Se;try{var r=Ot;for(Se=1;e<r.length;e++){var i=r[e];do i=i(!0);while(i!==null)}Ot=null,qo=!1}catch(u){throw Ot!==null&&(Ot=Ot.slice(e+1)),Hu(Ni,rn),u}finally{Se=t,sl=!1}}return null}var nr=[],rr=0,Zo=null,es=0,pt=[],ht=0,Tn=null,At=1,Lt="";function Nn(e,t){nr[rr++]=es,nr[rr++]=Zo,Zo=e,es=t}function Wc(e,t,r){pt[ht++]=At,pt[ht++]=Lt,pt[ht++]=Tn,Tn=e;var i=At;e=Lt;var u=32-xt(i)-1;i&=~(1<<u),r+=1;var c=32-xt(t)+u;if(30<c){var h=u-u%5;c=(i&(1<<h)-1).toString(32),i>>=h,u-=h,At=1<<32-xt(t)+u|r<<u|i,Lt=c+e}else At=1<<c|r<<u|i,Lt=e}function il(e){e.return!==null&&(Nn(e,1),Wc(e,1,0))}function ll(e){for(;e===Zo;)Zo=nr[--rr],nr[rr]=null,es=nr[--rr],nr[rr]=null;for(;e===Tn;)Tn=pt[--ht],pt[ht]=null,Lt=pt[--ht],pt[ht]=null,At=pt[--ht],pt[ht]=null}var ct=null,dt=null,Te=!1,St=null;function Hc(e,t){var r=yt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Gc(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ct=e,dt=en(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ct=e,dt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Tn!==null?{id:At,overflow:Lt}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=yt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,ct=e,dt=null,!0):!1;default:return!1}}function al(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ul(e){if(Te){var t=dt;if(t){var r=t;if(!Gc(e,t)){if(al(e))throw Error(s(418));t=en(r.nextSibling);var i=ct;t&&Gc(e,t)?Hc(i,r):(e.flags=e.flags&-4097|2,Te=!1,ct=e)}}else{if(al(e))throw Error(s(418));e.flags=e.flags&-4097|2,Te=!1,ct=e}}}function Kc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ct=e}function ts(e){if(e!==ct)return!1;if(!Te)return Kc(e),Te=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!el(e.type,e.memoizedProps)),t&&(t=dt)){if(al(e))throw Yc(),Error(s(418));for(;t;)Hc(e,t),t=en(t.nextSibling)}if(Kc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){dt=en(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}dt=null}}else dt=ct?en(e.stateNode.nextSibling):null;return!0}function Yc(){for(var e=dt;e;)e=en(e.nextSibling)}function or(){dt=ct=null,Te=!1}function cl(e){St===null?St=[e]:St.push(e)}var Gv=B.ReactCurrentBatchConfig;function qr(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(s(309));var i=r.stateNode}if(!i)throw Error(s(147,e));var u=i,c=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===c?t.ref:(t=function(h){var E=u.refs;h===null?delete E[c]:E[c]=h},t._stringRef=c,t)}if(typeof e!="string")throw Error(s(284));if(!r._owner)throw Error(s(290,e))}return e}function ns(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qc(e){var t=e._init;return t(e._payload)}function Xc(e){function t(j,_){if(e){var b=j.deletions;b===null?(j.deletions=[_],j.flags|=16):b.push(_)}}function r(j,_){if(!e)return null;for(;_!==null;)t(j,_),_=_.sibling;return null}function i(j,_){for(j=new Map;_!==null;)_.key!==null?j.set(_.key,_):j.set(_.index,_),_=_.sibling;return j}function u(j,_){return j=fn(j,_),j.index=0,j.sibling=null,j}function c(j,_,b){return j.index=b,e?(b=j.alternate,b!==null?(b=b.index,b<_?(j.flags|=2,_):b):(j.flags|=2,_)):(j.flags|=1048576,_)}function h(j){return e&&j.alternate===null&&(j.flags|=2),j}function E(j,_,b,U){return _===null||_.tag!==6?(_=ta(b,j.mode,U),_.return=j,_):(_=u(_,b),_.return=j,_)}function k(j,_,b,U){var q=b.type;return q===Z?M(j,_,b.props.children,U,b.key):_!==null&&(_.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===ue&&Qc(q)===_.type)?(U=u(_,b.props),U.ref=qr(j,_,b),U.return=j,U):(U=Ts(b.type,b.key,b.props,null,j.mode,U),U.ref=qr(j,_,b),U.return=j,U)}function I(j,_,b,U){return _===null||_.tag!==4||_.stateNode.containerInfo!==b.containerInfo||_.stateNode.implementation!==b.implementation?(_=na(b,j.mode,U),_.return=j,_):(_=u(_,b.children||[]),_.return=j,_)}function M(j,_,b,U,q){return _===null||_.tag!==7?(_=Ln(b,j.mode,U,q),_.return=j,_):(_=u(_,b),_.return=j,_)}function z(j,_,b){if(typeof _=="string"&&_!==""||typeof _=="number")return _=ta(""+_,j.mode,b),_.return=j,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case ne:return b=Ts(_.type,_.key,_.props,null,j.mode,b),b.ref=qr(j,null,_),b.return=j,b;case te:return _=na(_,j.mode,b),_.return=j,_;case ue:var U=_._init;return z(j,U(_._payload),b)}if(Nr(_)||ee(_))return _=Ln(_,j.mode,b,null),_.return=j,_;ns(j,_)}return null}function D(j,_,b,U){var q=_!==null?_.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return q!==null?null:E(j,_,""+b,U);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case ne:return b.key===q?k(j,_,b,U):null;case te:return b.key===q?I(j,_,b,U):null;case ue:return q=b._init,D(j,_,q(b._payload),U)}if(Nr(b)||ee(b))return q!==null?null:M(j,_,b,U,null);ns(j,b)}return null}function H(j,_,b,U,q){if(typeof U=="string"&&U!==""||typeof U=="number")return j=j.get(b)||null,E(_,j,""+U,q);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case ne:return j=j.get(U.key===null?b:U.key)||null,k(_,j,U,q);case te:return j=j.get(U.key===null?b:U.key)||null,I(_,j,U,q);case ue:var se=U._init;return H(j,_,b,se(U._payload),q)}if(Nr(U)||ee(U))return j=j.get(b)||null,M(_,j,U,q,null);ns(_,U)}return null}function K(j,_,b,U){for(var q=null,se=null,ie=_,le=_=0,He=null;ie!==null&&le<b.length;le++){ie.index>le?(He=ie,ie=null):He=ie.sibling;var ye=D(j,ie,b[le],U);if(ye===null){ie===null&&(ie=He);break}e&&ie&&ye.alternate===null&&t(j,ie),_=c(ye,_,le),se===null?q=ye:se.sibling=ye,se=ye,ie=He}if(le===b.length)return r(j,ie),Te&&Nn(j,le),q;if(ie===null){for(;le<b.length;le++)ie=z(j,b[le],U),ie!==null&&(_=c(ie,_,le),se===null?q=ie:se.sibling=ie,se=ie);return Te&&Nn(j,le),q}for(ie=i(j,ie);le<b.length;le++)He=H(ie,j,le,b[le],U),He!==null&&(e&&He.alternate!==null&&ie.delete(He.key===null?le:He.key),_=c(He,_,le),se===null?q=He:se.sibling=He,se=He);return e&&ie.forEach(function(pn){return t(j,pn)}),Te&&Nn(j,le),q}function X(j,_,b,U){var q=ee(b);if(typeof q!="function")throw Error(s(150));if(b=q.call(b),b==null)throw Error(s(151));for(var se=q=null,ie=_,le=_=0,He=null,ye=b.next();ie!==null&&!ye.done;le++,ye=b.next()){ie.index>le?(He=ie,ie=null):He=ie.sibling;var pn=D(j,ie,ye.value,U);if(pn===null){ie===null&&(ie=He);break}e&&ie&&pn.alternate===null&&t(j,ie),_=c(pn,_,le),se===null?q=pn:se.sibling=pn,se=pn,ie=He}if(ye.done)return r(j,ie),Te&&Nn(j,le),q;if(ie===null){for(;!ye.done;le++,ye=b.next())ye=z(j,ye.value,U),ye!==null&&(_=c(ye,_,le),se===null?q=ye:se.sibling=ye,se=ye);return Te&&Nn(j,le),q}for(ie=i(j,ie);!ye.done;le++,ye=b.next())ye=H(ie,j,le,ye.value,U),ye!==null&&(e&&ye.alternate!==null&&ie.delete(ye.key===null?le:ye.key),_=c(ye,_,le),se===null?q=ye:se.sibling=ye,se=ye);return e&&ie.forEach(function(_g){return t(j,_g)}),Te&&Nn(j,le),q}function Le(j,_,b,U){if(typeof b=="object"&&b!==null&&b.type===Z&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case ne:e:{for(var q=b.key,se=_;se!==null;){if(se.key===q){if(q=b.type,q===Z){if(se.tag===7){r(j,se.sibling),_=u(se,b.props.children),_.return=j,j=_;break e}}else if(se.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===ue&&Qc(q)===se.type){r(j,se.sibling),_=u(se,b.props),_.ref=qr(j,se,b),_.return=j,j=_;break e}r(j,se);break}else t(j,se);se=se.sibling}b.type===Z?(_=Ln(b.props.children,j.mode,U,b.key),_.return=j,j=_):(U=Ts(b.type,b.key,b.props,null,j.mode,U),U.ref=qr(j,_,b),U.return=j,j=U)}return h(j);case te:e:{for(se=b.key;_!==null;){if(_.key===se)if(_.tag===4&&_.stateNode.containerInfo===b.containerInfo&&_.stateNode.implementation===b.implementation){r(j,_.sibling),_=u(_,b.children||[]),_.return=j,j=_;break e}else{r(j,_);break}else t(j,_);_=_.sibling}_=na(b,j.mode,U),_.return=j,j=_}return h(j);case ue:return se=b._init,Le(j,_,se(b._payload),U)}if(Nr(b))return K(j,_,b,U);if(ee(b))return X(j,_,b,U);ns(j,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,_!==null&&_.tag===6?(r(j,_.sibling),_=u(_,b),_.return=j,j=_):(r(j,_),_=ta(b,j.mode,U),_.return=j,j=_),h(j)):r(j,_)}return Le}var sr=Xc(!0),Jc=Xc(!1),rs=tn(null),os=null,ir=null,dl=null;function fl(){dl=ir=os=null}function pl(e){var t=rs.current;_e(rs),e._currentValue=t}function hl(e,t,r){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===r)break;e=e.return}}function lr(e,t){os=e,dl=ir=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ot=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(dl!==e)if(e={context:e,memoizedValue:t,next:null},ir===null){if(os===null)throw Error(s(308));ir=e,os.dependencies={lanes:0,firstContext:e}}else ir=ir.next=e;return t}var Rn=null;function ml(e){Rn===null?Rn=[e]:Rn.push(e)}function qc(e,t,r,i){var u=t.interleaved;return u===null?(r.next=r,ml(t)):(r.next=u.next,u.next=r),t.interleaved=r,Dt(e,i)}function Dt(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var on=!1;function vl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Mt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function sn(e,t,r){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(me&2)!==0){var u=i.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),i.pending=t,Dt(e,r)}return u=i.interleaved,u===null?(t.next=t,ml(i)):(t.next=u.next,u.next=t),i.interleaved=t,Dt(e,r)}function ss(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,ji(e,r)}}function ed(e,t){var r=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,r===i)){var u=null,c=null;if(r=r.firstBaseUpdate,r!==null){do{var h={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};c===null?u=c=h:c=c.next=h,r=r.next}while(r!==null);c===null?u=c=t:c=c.next=t}else u=c=t;r={baseState:i.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:i.shared,effects:i.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function is(e,t,r,i){var u=e.updateQueue;on=!1;var c=u.firstBaseUpdate,h=u.lastBaseUpdate,E=u.shared.pending;if(E!==null){u.shared.pending=null;var k=E,I=k.next;k.next=null,h===null?c=I:h.next=I,h=k;var M=e.alternate;M!==null&&(M=M.updateQueue,E=M.lastBaseUpdate,E!==h&&(E===null?M.firstBaseUpdate=I:E.next=I,M.lastBaseUpdate=k))}if(c!==null){var z=u.baseState;h=0,M=I=k=null,E=c;do{var D=E.lane,H=E.eventTime;if((i&D)===D){M!==null&&(M=M.next={eventTime:H,lane:0,tag:E.tag,payload:E.payload,callback:E.callback,next:null});e:{var K=e,X=E;switch(D=t,H=r,X.tag){case 1:if(K=X.payload,typeof K=="function"){z=K.call(H,z,D);break e}z=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=X.payload,D=typeof K=="function"?K.call(H,z,D):K,D==null)break e;z=W({},z,D);break e;case 2:on=!0}}E.callback!==null&&E.lane!==0&&(e.flags|=64,D=u.effects,D===null?u.effects=[E]:D.push(E))}else H={eventTime:H,lane:D,tag:E.tag,payload:E.payload,callback:E.callback,next:null},M===null?(I=M=H,k=z):M=M.next=H,h|=D;if(E=E.next,E===null){if(E=u.shared.pending,E===null)break;D=E,E=D.next,D.next=null,u.lastBaseUpdate=D,u.shared.pending=null}}while(!0);if(M===null&&(k=z),u.baseState=k,u.firstBaseUpdate=I,u.lastBaseUpdate=M,t=u.shared.interleaved,t!==null){u=t;do h|=u.lane,u=u.next;while(u!==t)}else c===null&&(u.shared.lanes=0);bn|=h,e.lanes=h,e.memoizedState=z}}function td(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],u=i.callback;if(u!==null){if(i.callback=null,i=r,typeof u!="function")throw Error(s(191,u));u.call(i)}}}var Zr={},Rt=tn(Zr),eo=tn(Zr),to=tn(Zr);function Pn(e){if(e===Zr)throw Error(s(174));return e}function gl(e,t){switch(Ee(to,t),Ee(eo,e),Ee(Rt,Zr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:yi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=yi(t,e)}_e(Rt),Ee(Rt,t)}function ar(){_e(Rt),_e(eo),_e(to)}function nd(e){Pn(to.current);var t=Pn(Rt.current),r=yi(t,e.type);t!==r&&(Ee(eo,e),Ee(Rt,r))}function yl(e){eo.current===e&&(_e(Rt),_e(eo))}var Pe=tn(0);function ls(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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 xl=[];function wl(){for(var e=0;e<xl.length;e++)xl[e]._workInProgressVersionPrimary=null;xl.length=0}var as=B.ReactCurrentDispatcher,Sl=B.ReactCurrentBatchConfig,jn=0,je=null,ze=null,Ve=null,us=!1,no=!1,ro=0,Kv=0;function Xe(){throw Error(s(321))}function El(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!wt(e[r],t[r]))return!1;return!0}function kl(e,t,r,i,u,c){if(jn=c,je=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,as.current=e===null||e.memoizedState===null?Jv:qv,e=r(i,u),no){c=0;do{if(no=!1,ro=0,25<=c)throw Error(s(301));c+=1,Ve=ze=null,t.updateQueue=null,as.current=Zv,e=r(i,u)}while(no)}if(as.current=fs,t=ze!==null&&ze.next!==null,jn=0,Ve=ze=je=null,us=!1,t)throw Error(s(300));return e}function Cl(){var e=ro!==0;return ro=0,e}function Pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?je.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function vt(){if(ze===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Ve===null?je.memoizedState:Ve.next;if(t!==null)Ve=t,ze=e;else{if(e===null)throw Error(s(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Ve===null?je.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function oo(e,t){return typeof t=="function"?t(e):t}function _l(e){var t=vt(),r=t.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=e;var i=ze,u=i.baseQueue,c=r.pending;if(c!==null){if(u!==null){var h=u.next;u.next=c.next,c.next=h}i.baseQueue=u=c,r.pending=null}if(u!==null){c=u.next,i=i.baseState;var E=h=null,k=null,I=c;do{var M=I.lane;if((jn&M)===M)k!==null&&(k=k.next={lane:0,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),i=I.hasEagerState?I.eagerState:e(i,I.action);else{var z={lane:M,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null};k===null?(E=k=z,h=i):k=k.next=z,je.lanes|=M,bn|=M}I=I.next}while(I!==null&&I!==c);k===null?h=i:k.next=E,wt(i,t.memoizedState)||(ot=!0),t.memoizedState=i,t.baseState=h,t.baseQueue=k,r.lastRenderedState=i}if(e=r.interleaved,e!==null){u=e;do c=u.lane,je.lanes|=c,bn|=c,u=u.next;while(u!==e)}else u===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Tl(e){var t=vt(),r=t.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=e;var i=r.dispatch,u=r.pending,c=t.memoizedState;if(u!==null){r.pending=null;var h=u=u.next;do c=e(c,h.action),h=h.next;while(h!==u);wt(c,t.memoizedState)||(ot=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),r.lastRenderedState=c}return[c,i]}function rd(){}function od(e,t){var r=je,i=vt(),u=t(),c=!wt(i.memoizedState,u);if(c&&(i.memoizedState=u,ot=!0),i=i.queue,Nl(ld.bind(null,r,i,e),[e]),i.getSnapshot!==t||c||Ve!==null&&Ve.memoizedState.tag&1){if(r.flags|=2048,so(9,id.bind(null,r,i,u,t),void 0,null),We===null)throw Error(s(349));(jn&30)!==0||sd(r,t,u)}return u}function sd(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=je.updateQueue,t===null?(t={lastEffect:null,stores:null},je.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function id(e,t,r,i){t.value=r,t.getSnapshot=i,ad(t)&&ud(e)}function ld(e,t,r){return r(function(){ad(t)&&ud(e)})}function ad(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!wt(e,r)}catch{return!0}}function ud(e){var t=Dt(e,1);t!==null&&_t(t,e,1,-1)}function cd(e){var t=Pt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:oo,lastRenderedState:e},t.queue=e,e=e.dispatch=Xv.bind(null,je,e),[t.memoizedState,e]}function so(e,t,r,i){return e={tag:e,create:t,destroy:r,deps:i,next:null},t=je.updateQueue,t===null?(t={lastEffect:null,stores:null},je.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(i=r.next,r.next=e,e.next=i,t.lastEffect=e)),e}function dd(){return vt().memoizedState}function cs(e,t,r,i){var u=Pt();je.flags|=e,u.memoizedState=so(1|t,r,void 0,i===void 0?null:i)}function ds(e,t,r,i){var u=vt();i=i===void 0?null:i;var c=void 0;if(ze!==null){var h=ze.memoizedState;if(c=h.destroy,i!==null&&El(i,h.deps)){u.memoizedState=so(t,r,c,i);return}}je.flags|=e,u.memoizedState=so(1|t,r,c,i)}function fd(e,t){return cs(8390656,8,e,t)}function Nl(e,t){return ds(2048,8,e,t)}function pd(e,t){return ds(4,2,e,t)}function hd(e,t){return ds(4,4,e,t)}function md(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function vd(e,t,r){return r=r!=null?r.concat([e]):null,ds(4,4,md.bind(null,t,e),r)}function Rl(){}function gd(e,t){var r=vt();t=t===void 0?null:t;var i=r.memoizedState;return i!==null&&t!==null&&El(t,i[1])?i[0]:(r.memoizedState=[e,t],e)}function yd(e,t){var r=vt();t=t===void 0?null:t;var i=r.memoizedState;return i!==null&&t!==null&&El(t,i[1])?i[0]:(e=e(),r.memoizedState=[e,t],e)}function xd(e,t,r){return(jn&21)===0?(e.baseState&&(e.baseState=!1,ot=!0),e.memoizedState=r):(wt(r,t)||(r=Qu(),je.lanes|=r,bn|=r,e.baseState=!0),t)}function Yv(e,t){var r=Se;Se=r!==0&&4>r?r:4,e(!0);var i=Sl.transition;Sl.transition={};try{e(!1),t()}finally{Se=r,Sl.transition=i}}function wd(){return vt().memoizedState}function Qv(e,t,r){var i=cn(e);if(r={lane:i,action:r,hasEagerState:!1,eagerState:null,next:null},Sd(e))Ed(t,r);else if(r=qc(e,t,r,i),r!==null){var u=tt();_t(r,e,i,u),kd(r,t,i)}}function Xv(e,t,r){var i=cn(e),u={lane:i,action:r,hasEagerState:!1,eagerState:null,next:null};if(Sd(e))Ed(t,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,E=c(h,r);if(u.hasEagerState=!0,u.eagerState=E,wt(E,h)){var k=t.interleaved;k===null?(u.next=u,ml(t)):(u.next=k.next,k.next=u),t.interleaved=u;return}}catch{}finally{}r=qc(e,t,u,i),r!==null&&(u=tt(),_t(r,e,i,u),kd(r,t,i))}}function Sd(e){var t=e.alternate;return e===je||t!==null&&t===je}function Ed(e,t){no=us=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function kd(e,t,r){if((r&4194240)!==0){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,ji(e,r)}}var fs={readContext:mt,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useInsertionEffect:Xe,useLayoutEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useMutableSource:Xe,useSyncExternalStore:Xe,useId:Xe,unstable_isNewReconciler:!1},Jv={readContext:mt,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:fd,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,cs(4194308,4,md.bind(null,t,e),r)},useLayoutEffect:function(e,t){return cs(4194308,4,e,t)},useInsertionEffect:function(e,t){return cs(4,2,e,t)},useMemo:function(e,t){var r=Pt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var i=Pt();return t=r!==void 0?r(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=Qv.bind(null,je,e),[i.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:cd,useDebugValue:Rl,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=cd(!1),t=e[0];return e=Yv.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var i=je,u=Pt();if(Te){if(r===void 0)throw Error(s(407));r=r()}else{if(r=t(),We===null)throw Error(s(349));(jn&30)!==0||sd(i,t,r)}u.memoizedState=r;var c={value:r,getSnapshot:t};return u.queue=c,fd(ld.bind(null,i,c,e),[e]),i.flags|=2048,so(9,id.bind(null,i,c,r,t),void 0,null),r},useId:function(){var e=Pt(),t=We.identifierPrefix;if(Te){var r=Lt,i=At;r=(i&~(1<<32-xt(i)-1)).toString(32)+r,t=":"+t+"R"+r,r=ro++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Kv++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},qv={readContext:mt,useCallback:gd,useContext:mt,useEffect:Nl,useImperativeHandle:vd,useInsertionEffect:pd,useLayoutEffect:hd,useMemo:yd,useReducer:_l,useRef:dd,useState:function(){return _l(oo)},useDebugValue:Rl,useDeferredValue:function(e){var t=vt();return xd(t,ze.memoizedState,e)},useTransition:function(){var e=_l(oo)[0],t=vt().memoizedState;return[e,t]},useMutableSource:rd,useSyncExternalStore:od,useId:wd,unstable_isNewReconciler:!1},Zv={readContext:mt,useCallback:gd,useContext:mt,useEffect:Nl,useImperativeHandle:vd,useInsertionEffect:pd,useLayoutEffect:hd,useMemo:yd,useReducer:Tl,useRef:dd,useState:function(){return Tl(oo)},useDebugValue:Rl,useDeferredValue:function(e){var t=vt();return ze===null?t.memoizedState=e:xd(t,ze.memoizedState,e)},useTransition:function(){var e=Tl(oo)[0],t=vt().memoizedState;return[e,t]},useMutableSource:rd,useSyncExternalStore:od,useId:wd,unstable_isNewReconciler:!1};function Et(e,t){if(e&&e.defaultProps){t=W({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Pl(e,t,r,i){t=e.memoizedState,r=r(i,t),r=r==null?t:W({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var ps={isMounted:function(e){return(e=e._reactInternals)?kn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var i=tt(),u=cn(e),c=Mt(i,u);c.payload=t,r!=null&&(c.callback=r),t=sn(e,c,u),t!==null&&(_t(t,e,u,i),ss(t,e,u))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var i=tt(),u=cn(e),c=Mt(i,u);c.tag=1,c.payload=t,r!=null&&(c.callback=r),t=sn(e,c,u),t!==null&&(_t(t,e,u,i),ss(t,e,u))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=tt(),i=cn(e),u=Mt(r,i);u.tag=2,t!=null&&(u.callback=t),t=sn(e,u,i),t!==null&&(_t(t,e,i,r),ss(t,e,i))}};function Cd(e,t,r,i,u,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,h):t.prototype&&t.prototype.isPureReactComponent?!Hr(r,i)||!Hr(u,c):!0}function _d(e,t,r){var i=!1,u=nn,c=t.contextType;return typeof c=="object"&&c!==null?c=mt(c):(u=rt(t)?_n:Qe.current,i=t.contextTypes,c=(i=i!=null)?tr(e,u):nn),t=new t(r,c),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ps,e.stateNode=t,t._reactInternals=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=u,e.__reactInternalMemoizedMaskedChildContext=c),t}function Td(e,t,r,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,i),t.state!==e&&ps.enqueueReplaceState(t,t.state,null)}function jl(e,t,r,i){var u=e.stateNode;u.props=r,u.state=e.memoizedState,u.refs={},vl(e);var c=t.contextType;typeof c=="object"&&c!==null?u.context=mt(c):(c=rt(t)?_n:Qe.current,u.context=tr(e,c)),u.state=e.memoizedState,c=t.getDerivedStateFromProps,typeof c=="function"&&(Pl(e,t,c,r),u.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(t=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),t!==u.state&&ps.enqueueReplaceState(u,u.state,null),is(e,r,u,i),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308)}function ur(e,t){try{var r="",i=t;do r+=fe(i),i=i.return;while(i);var u=r}catch(c){u=`
|
|
39
|
+
Error generating stack: `+c.message+`
|
|
40
|
+
`+c.stack}return{value:e,source:t,stack:u,digest:null}}function bl(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Il(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var eg=typeof WeakMap=="function"?WeakMap:Map;function Nd(e,t,r){r=Mt(-1,r),r.tag=3,r.payload={element:null};var i=t.value;return r.callback=function(){ws||(ws=!0,Kl=i),Il(e,t)},r}function Rd(e,t,r){r=Mt(-1,r),r.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i=="function"){var u=t.value;r.payload=function(){return i(u)},r.callback=function(){Il(e,t)}}var c=e.stateNode;return c!==null&&typeof c.componentDidCatch=="function"&&(r.callback=function(){Il(e,t),typeof i!="function"&&(an===null?an=new Set([this]):an.add(this));var h=t.stack;this.componentDidCatch(t.value,{componentStack:h!==null?h:""})}),r}function Pd(e,t,r){var i=e.pingCache;if(i===null){i=e.pingCache=new eg;var u=new Set;i.set(t,u)}else u=i.get(t),u===void 0&&(u=new Set,i.set(t,u));u.has(r)||(u.add(r),e=hg.bind(null,e,t,r),t.then(e,e))}function jd(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function bd(e,t,r,i,u){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Mt(-1,1),t.tag=2,sn(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=u,e)}var tg=B.ReactCurrentOwner,ot=!1;function et(e,t,r,i){t.child=e===null?Jc(t,null,r,i):sr(t,e.child,r,i)}function Id(e,t,r,i,u){r=r.render;var c=t.ref;return lr(t,u),i=kl(e,t,r,i,c,u),r=Cl(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,zt(e,t,u)):(Te&&r&&il(t),t.flags|=1,et(e,t,i,u),t.child)}function Od(e,t,r,i,u){if(e===null){var c=r.type;return typeof c=="function"&&!ea(c)&&c.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=c,Ad(e,t,c,i,u)):(e=Ts(r.type,null,i,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,(e.lanes&u)===0){var h=c.memoizedProps;if(r=r.compare,r=r!==null?r:Hr,r(h,i)&&e.ref===t.ref)return zt(e,t,u)}return t.flags|=1,e=fn(c,i),e.ref=t.ref,e.return=t,t.child=e}function Ad(e,t,r,i,u){if(e!==null){var c=e.memoizedProps;if(Hr(c,i)&&e.ref===t.ref)if(ot=!1,t.pendingProps=i=c,(e.lanes&u)!==0)(e.flags&131072)!==0&&(ot=!0);else return t.lanes=e.lanes,zt(e,t,u)}return Ol(e,t,r,i,u)}function Ld(e,t,r){var i=t.pendingProps,u=i.children,c=e!==null?e.memoizedState:null;if(i.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ee(dr,ft),ft|=r;else{if((r&1073741824)===0)return e=c!==null?c.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ee(dr,ft),ft|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=c!==null?c.baseLanes:r,Ee(dr,ft),ft|=i}else c!==null?(i=c.baseLanes|r,t.memoizedState=null):i=r,Ee(dr,ft),ft|=i;return et(e,t,u,r),t.child}function Dd(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Ol(e,t,r,i,u){var c=rt(r)?_n:Qe.current;return c=tr(t,c),lr(t,u),r=kl(e,t,r,i,c,u),i=Cl(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,zt(e,t,u)):(Te&&i&&il(t),t.flags|=1,et(e,t,r,u),t.child)}function Md(e,t,r,i,u){if(rt(r)){var c=!0;Jo(t)}else c=!1;if(lr(t,u),t.stateNode===null)ms(e,t),_d(t,r,i),jl(t,r,i,u),i=!0;else if(e===null){var h=t.stateNode,E=t.memoizedProps;h.props=E;var k=h.context,I=r.contextType;typeof I=="object"&&I!==null?I=mt(I):(I=rt(r)?_n:Qe.current,I=tr(t,I));var M=r.getDerivedStateFromProps,z=typeof M=="function"||typeof h.getSnapshotBeforeUpdate=="function";z||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(E!==i||k!==I)&&Td(t,h,i,I),on=!1;var D=t.memoizedState;h.state=D,is(t,i,h,u),k=t.memoizedState,E!==i||D!==k||nt.current||on?(typeof M=="function"&&(Pl(t,r,M,i),k=t.memoizedState),(E=on||Cd(t,r,E,i,D,k,I))?(z||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(t.flags|=4194308)):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=k),h.props=i,h.state=k,h.context=I,i=E):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{h=t.stateNode,Zc(e,t),E=t.memoizedProps,I=t.type===t.elementType?E:Et(t.type,E),h.props=I,z=t.pendingProps,D=h.context,k=r.contextType,typeof k=="object"&&k!==null?k=mt(k):(k=rt(r)?_n:Qe.current,k=tr(t,k));var H=r.getDerivedStateFromProps;(M=typeof H=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(E!==z||D!==k)&&Td(t,h,i,k),on=!1,D=t.memoizedState,h.state=D,is(t,i,h,u);var K=t.memoizedState;E!==z||D!==K||nt.current||on?(typeof H=="function"&&(Pl(t,r,H,i),K=t.memoizedState),(I=on||Cd(t,r,I,i,D,K,k)||!1)?(M||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(i,K,k),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(i,K,k)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||E===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||E===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=K),h.props=i,h.state=K,h.context=k,i=I):(typeof h.componentDidUpdate!="function"||E===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||E===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),i=!1)}return Al(e,t,r,i,c,u)}function Al(e,t,r,i,u,c){Dd(e,t);var h=(t.flags&128)!==0;if(!i&&!h)return u&&Bc(t,r,!1),zt(e,t,c);i=t.stateNode,tg.current=t;var E=h&&typeof r.getDerivedStateFromError!="function"?null:i.render();return t.flags|=1,e!==null&&h?(t.child=sr(t,e.child,null,c),t.child=sr(t,null,E,c)):et(e,t,E,c),t.memoizedState=i.state,u&&Bc(t,r,!0),t.child}function zd(e){var t=e.stateNode;t.pendingContext?$c(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$c(e,t.context,!1),gl(e,t.containerInfo)}function Fd(e,t,r,i,u){return or(),cl(u),t.flags|=256,et(e,t,r,i),t.child}var Ll={dehydrated:null,treeContext:null,retryLane:0};function Dl(e){return{baseLanes:e,cachePool:null,transitions:null}}function $d(e,t,r){var i=t.pendingProps,u=Pe.current,c=!1,h=(t.flags&128)!==0,E;if((E=h)||(E=e!==null&&e.memoizedState===null?!1:(u&2)!==0),E?(c=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(u|=1),Ee(Pe,u&1),e===null)return ul(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(h=i.children,e=i.fallback,c?(i=t.mode,c=t.child,h={mode:"hidden",children:h},(i&1)===0&&c!==null?(c.childLanes=0,c.pendingProps=h):c=Ns(h,i,0,null),e=Ln(e,i,r,null),c.return=t,e.return=t,c.sibling=e,t.child=c,t.child.memoizedState=Dl(r),t.memoizedState=Ll,e):Ml(t,h));if(u=e.memoizedState,u!==null&&(E=u.dehydrated,E!==null))return ng(e,t,h,i,E,u,r);if(c){c=i.fallback,h=t.mode,u=e.child,E=u.sibling;var k={mode:"hidden",children:i.children};return(h&1)===0&&t.child!==u?(i=t.child,i.childLanes=0,i.pendingProps=k,t.deletions=null):(i=fn(u,k),i.subtreeFlags=u.subtreeFlags&14680064),E!==null?c=fn(E,c):(c=Ln(c,h,r,null),c.flags|=2),c.return=t,i.return=t,i.sibling=c,t.child=i,i=c,c=t.child,h=e.child.memoizedState,h=h===null?Dl(r):{baseLanes:h.baseLanes|r,cachePool:null,transitions:h.transitions},c.memoizedState=h,c.childLanes=e.childLanes&~r,t.memoizedState=Ll,i}return c=e.child,e=c.sibling,i=fn(c,{mode:"visible",children:i.children}),(t.mode&1)===0&&(i.lanes=r),i.return=t,i.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function Ml(e,t){return t=Ns({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function hs(e,t,r,i){return i!==null&&cl(i),sr(t,e.child,null,r),e=Ml(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ng(e,t,r,i,u,c,h){if(r)return t.flags&256?(t.flags&=-257,i=bl(Error(s(422))),hs(e,t,h,i)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(c=i.fallback,u=t.mode,i=Ns({mode:"visible",children:i.children},u,0,null),c=Ln(c,u,h,null),c.flags|=2,i.return=t,c.return=t,i.sibling=c,t.child=i,(t.mode&1)!==0&&sr(t,e.child,null,h),t.child.memoizedState=Dl(h),t.memoizedState=Ll,c);if((t.mode&1)===0)return hs(e,t,h,null);if(u.data==="$!"){if(i=u.nextSibling&&u.nextSibling.dataset,i)var E=i.dgst;return i=E,c=Error(s(419)),i=bl(c,i,void 0),hs(e,t,h,i)}if(E=(h&e.childLanes)!==0,ot||E){if(i=We,i!==null){switch(h&-h){case 4:u=2;break;case 16:u=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:u=32;break;case 536870912:u=268435456;break;default:u=0}u=(u&(i.suspendedLanes|h))!==0?0:u,u!==0&&u!==c.retryLane&&(c.retryLane=u,Dt(e,u),_t(i,e,u,-1))}return Zl(),i=bl(Error(s(421))),hs(e,t,h,i)}return u.data==="$?"?(t.flags|=128,t.child=e.child,t=mg.bind(null,e),u._reactRetry=t,null):(e=c.treeContext,dt=en(u.nextSibling),ct=t,Te=!0,St=null,e!==null&&(pt[ht++]=At,pt[ht++]=Lt,pt[ht++]=Tn,At=e.id,Lt=e.overflow,Tn=t),t=Ml(t,i.children),t.flags|=4096,t)}function Ud(e,t,r){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),hl(e.return,t,r)}function zl(e,t,r,i,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:r,tailMode:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=i,c.tail=r,c.tailMode=u)}function Bd(e,t,r){var i=t.pendingProps,u=i.revealOrder,c=i.tail;if(et(e,t,i.children,r),i=Pe.current,(i&2)!==0)i=i&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ud(e,r,t);else if(e.tag===19)Ud(e,r,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}i&=1}if(Ee(Pe,i),(t.mode&1)===0)t.memoizedState=null;else switch(u){case"forwards":for(r=t.child,u=null;r!==null;)e=r.alternate,e!==null&&ls(e)===null&&(u=r),r=r.sibling;r=u,r===null?(u=t.child,t.child=null):(u=r.sibling,r.sibling=null),zl(t,!1,u,r,c);break;case"backwards":for(r=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&ls(e)===null){t.child=u;break}e=u.sibling,u.sibling=r,r=u,u=e}zl(t,!0,r,null,c);break;case"together":zl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ms(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function zt(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),bn|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,r=fn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=fn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function rg(e,t,r){switch(t.tag){case 3:zd(t),or();break;case 5:nd(t);break;case 1:rt(t.type)&&Jo(t);break;case 4:gl(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,u=t.memoizedProps.value;Ee(rs,i._currentValue),i._currentValue=u;break;case 13:if(i=t.memoizedState,i!==null)return i.dehydrated!==null?(Ee(Pe,Pe.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?$d(e,t,r):(Ee(Pe,Pe.current&1),e=zt(e,t,r),e!==null?e.sibling:null);Ee(Pe,Pe.current&1);break;case 19:if(i=(r&t.childLanes)!==0,(e.flags&128)!==0){if(i)return Bd(e,t,r);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Ee(Pe,Pe.current),i)break;return null;case 22:case 23:return t.lanes=0,Ld(e,t,r)}return zt(e,t,r)}var Vd,Fl,Wd,Hd;Vd=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Fl=function(){},Wd=function(e,t,r,i){var u=e.memoizedProps;if(u!==i){e=t.stateNode,Pn(Rt.current);var c=null;switch(r){case"input":u=hi(e,u),i=hi(e,i),c=[];break;case"select":u=W({},u,{value:void 0}),i=W({},i,{value:void 0}),c=[];break;case"textarea":u=gi(e,u),i=gi(e,i),c=[];break;default:typeof u.onClick!="function"&&typeof i.onClick=="function"&&(e.onclick=Yo)}xi(r,i);var h;r=null;for(I in u)if(!i.hasOwnProperty(I)&&u.hasOwnProperty(I)&&u[I]!=null)if(I==="style"){var E=u[I];for(h in E)E.hasOwnProperty(h)&&(r||(r={}),r[h]="")}else I!=="dangerouslySetInnerHTML"&&I!=="children"&&I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&I!=="autoFocus"&&(a.hasOwnProperty(I)?c||(c=[]):(c=c||[]).push(I,null));for(I in i){var k=i[I];if(E=u!=null?u[I]:void 0,i.hasOwnProperty(I)&&k!==E&&(k!=null||E!=null))if(I==="style")if(E){for(h in E)!E.hasOwnProperty(h)||k&&k.hasOwnProperty(h)||(r||(r={}),r[h]="");for(h in k)k.hasOwnProperty(h)&&E[h]!==k[h]&&(r||(r={}),r[h]=k[h])}else r||(c||(c=[]),c.push(I,r)),r=k;else I==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,E=E?E.__html:void 0,k!=null&&E!==k&&(c=c||[]).push(I,k)):I==="children"?typeof k!="string"&&typeof k!="number"||(c=c||[]).push(I,""+k):I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&(a.hasOwnProperty(I)?(k!=null&&I==="onScroll"&&Ce("scroll",e),c||E===k||(c=[])):(c=c||[]).push(I,k))}r&&(c=c||[]).push("style",r);var I=c;(t.updateQueue=I)&&(t.flags|=4)}},Hd=function(e,t,r,i){r!==i&&(t.flags|=4)};function io(e,t){if(!Te)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Je(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,i=0;if(t)for(var u=e.child;u!==null;)r|=u.lanes|u.childLanes,i|=u.subtreeFlags&14680064,i|=u.flags&14680064,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)r|=u.lanes|u.childLanes,i|=u.subtreeFlags,i|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=i,e.childLanes=r,t}function og(e,t,r){var i=t.pendingProps;switch(ll(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return rt(t.type)&&Xo(),Je(t),null;case 3:return i=t.stateNode,ar(),_e(nt),_e(Qe),wl(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(ts(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,St!==null&&(Xl(St),St=null))),Fl(e,t),Je(t),null;case 5:yl(t);var u=Pn(to.current);if(r=t.type,e!==null&&t.stateNode!=null)Wd(e,t,r,i,u),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(s(166));return Je(t),null}if(e=Pn(Rt.current),ts(t)){i=t.stateNode,r=t.type;var c=t.memoizedProps;switch(i[Nt]=t,i[Xr]=c,e=(t.mode&1)!==0,r){case"dialog":Ce("cancel",i),Ce("close",i);break;case"iframe":case"object":case"embed":Ce("load",i);break;case"video":case"audio":for(u=0;u<Kr.length;u++)Ce(Kr[u],i);break;case"source":Ce("error",i);break;case"img":case"image":case"link":Ce("error",i),Ce("load",i);break;case"details":Ce("toggle",i);break;case"input":_u(i,c),Ce("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!c.multiple},Ce("invalid",i);break;case"textarea":Ru(i,c),Ce("invalid",i)}xi(r,c),u=null;for(var h in c)if(c.hasOwnProperty(h)){var E=c[h];h==="children"?typeof E=="string"?i.textContent!==E&&(c.suppressHydrationWarning!==!0&&Ko(i.textContent,E,e),u=["children",E]):typeof E=="number"&&i.textContent!==""+E&&(c.suppressHydrationWarning!==!0&&Ko(i.textContent,E,e),u=["children",""+E]):a.hasOwnProperty(h)&&E!=null&&h==="onScroll"&&Ce("scroll",i)}switch(r){case"input":Kt(i),Nu(i,c,!0);break;case"textarea":Kt(i),ju(i);break;case"select":case"option":break;default:typeof c.onClick=="function"&&(i.onclick=Yo)}i=u,t.updateQueue=i,i!==null&&(t.flags|=4)}else{h=u.nodeType===9?u:u.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=bu(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=h.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=h.createElement(r,{is:i.is}):(e=h.createElement(r),r==="select"&&(h=e,i.multiple?h.multiple=!0:i.size&&(h.size=i.size))):e=h.createElementNS(e,r),e[Nt]=t,e[Xr]=i,Vd(e,t,!1,!1),t.stateNode=e;e:{switch(h=wi(r,i),r){case"dialog":Ce("cancel",e),Ce("close",e),u=i;break;case"iframe":case"object":case"embed":Ce("load",e),u=i;break;case"video":case"audio":for(u=0;u<Kr.length;u++)Ce(Kr[u],e);u=i;break;case"source":Ce("error",e),u=i;break;case"img":case"image":case"link":Ce("error",e),Ce("load",e),u=i;break;case"details":Ce("toggle",e),u=i;break;case"input":_u(e,i),u=hi(e,i),Ce("invalid",e);break;case"option":u=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},u=W({},i,{value:void 0}),Ce("invalid",e);break;case"textarea":Ru(e,i),u=gi(e,i),Ce("invalid",e);break;default:u=i}xi(r,u),E=u;for(c in E)if(E.hasOwnProperty(c)){var k=E[c];c==="style"?Au(e,k):c==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,k!=null&&Iu(e,k)):c==="children"?typeof k=="string"?(r!=="textarea"||k!=="")&&Rr(e,k):typeof k=="number"&&Rr(e,""+k):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(a.hasOwnProperty(c)?k!=null&&c==="onScroll"&&Ce("scroll",e):k!=null&&L(e,c,k,h))}switch(r){case"input":Kt(e),Nu(e,i,!1);break;case"textarea":Kt(e),ju(e);break;case"option":i.value!=null&&e.setAttribute("value",""+ge(i.value));break;case"select":e.multiple=!!i.multiple,c=i.value,c!=null?Vn(e,!!i.multiple,c,!1):i.defaultValue!=null&&Vn(e,!!i.multiple,i.defaultValue,!0);break;default:typeof u.onClick=="function"&&(e.onclick=Yo)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Je(t),null;case 6:if(e&&t.stateNode!=null)Hd(e,t,e.memoizedProps,i);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(r=Pn(to.current),Pn(Rt.current),ts(t)){if(i=t.stateNode,r=t.memoizedProps,i[Nt]=t,(c=i.nodeValue!==r)&&(e=ct,e!==null))switch(e.tag){case 3:Ko(i.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ko(i.nodeValue,r,(e.mode&1)!==0)}c&&(t.flags|=4)}else i=(r.nodeType===9?r:r.ownerDocument).createTextNode(i),i[Nt]=t,t.stateNode=i}return Je(t),null;case 13:if(_e(Pe),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Te&&dt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Yc(),or(),t.flags|=98560,c=!1;else if(c=ts(t),i!==null&&i.dehydrated!==null){if(e===null){if(!c)throw Error(s(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(s(317));c[Nt]=t}else or(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),c=!1}else St!==null&&(Xl(St),St=null),c=!0;if(!c)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Pe.current&1)!==0?Fe===0&&(Fe=3):Zl())),t.updateQueue!==null&&(t.flags|=4),Je(t),null);case 4:return ar(),Fl(e,t),e===null&&Yr(t.stateNode.containerInfo),Je(t),null;case 10:return pl(t.type._context),Je(t),null;case 17:return rt(t.type)&&Xo(),Je(t),null;case 19:if(_e(Pe),c=t.memoizedState,c===null)return Je(t),null;if(i=(t.flags&128)!==0,h=c.rendering,h===null)if(i)io(c,!1);else{if(Fe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=ls(e),h!==null){for(t.flags|=128,io(c,!1),i=h.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;r!==null;)c=r,e=i,c.flags&=14680066,h=c.alternate,h===null?(c.childLanes=0,c.lanes=e,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=h.childLanes,c.lanes=h.lanes,c.child=h.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=h.memoizedProps,c.memoizedState=h.memoizedState,c.updateQueue=h.updateQueue,c.type=h.type,e=h.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ee(Pe,Pe.current&1|2),t.child}e=e.sibling}c.tail!==null&&Ae()>fr&&(t.flags|=128,i=!0,io(c,!1),t.lanes=4194304)}else{if(!i)if(e=ls(h),e!==null){if(t.flags|=128,i=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),io(c,!0),c.tail===null&&c.tailMode==="hidden"&&!h.alternate&&!Te)return Je(t),null}else 2*Ae()-c.renderingStartTime>fr&&r!==1073741824&&(t.flags|=128,i=!0,io(c,!1),t.lanes=4194304);c.isBackwards?(h.sibling=t.child,t.child=h):(r=c.last,r!==null?r.sibling=h:t.child=h,c.last=h)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Ae(),t.sibling=null,r=Pe.current,Ee(Pe,i?r&1|2:r&1),t):(Je(t),null);case 22:case 23:return ql(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&(t.mode&1)!==0?(ft&1073741824)!==0&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function sg(e,t){switch(ll(t),t.tag){case 1:return rt(t.type)&&Xo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ar(),_e(nt),_e(Qe),wl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return yl(t),null;case 13:if(_e(Pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));or()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _e(Pe),null;case 4:return ar(),null;case 10:return pl(t.type._context),null;case 22:case 23:return ql(),null;case 24:return null;default:return null}}var vs=!1,qe=!1,ig=typeof WeakSet=="function"?WeakSet:Set,G=null;function cr(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(i){Ie(e,t,i)}else r.current=null}function $l(e,t,r){try{r()}catch(i){Ie(e,t,i)}}var Gd=!1;function lg(e,t){if(qi=Do,e=Cc(),Wi(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var u=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{r.nodeType,c.nodeType}catch{r=null;break e}var h=0,E=-1,k=-1,I=0,M=0,z=e,D=null;t:for(;;){for(var H;z!==r||u!==0&&z.nodeType!==3||(E=h+u),z!==c||i!==0&&z.nodeType!==3||(k=h+i),z.nodeType===3&&(h+=z.nodeValue.length),(H=z.firstChild)!==null;)D=z,z=H;for(;;){if(z===e)break t;if(D===r&&++I===u&&(E=h),D===c&&++M===i&&(k=h),(H=z.nextSibling)!==null)break;z=D,D=z.parentNode}z=H}r=E===-1||k===-1?null:{start:E,end:k}}else r=null}r=r||{start:0,end:0}}else r=null;for(Zi={focusedElem:e,selectionRange:r},Do=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var K=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(K!==null){var X=K.memoizedProps,Le=K.memoizedState,j=t.stateNode,_=j.getSnapshotBeforeUpdate(t.elementType===t.type?X:Et(t.type,X),Le);j.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(U){Ie(t,t.return,U)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return K=Gd,Gd=!1,K}function lo(e,t,r){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var u=i=i.next;do{if((u.tag&e)===e){var c=u.destroy;u.destroy=void 0,c!==void 0&&$l(t,r,c)}u=u.next}while(u!==i)}}function gs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var i=r.create;r.destroy=i()}r=r.next}while(r!==t)}}function Ul(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Kd(e){var t=e.alternate;t!==null&&(e.alternate=null,Kd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Nt],delete t[Xr],delete t[rl],delete t[Vv],delete t[Wv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Yd(e){return e.tag===5||e.tag===3||e.tag===4}function Qd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Bl(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Yo));else if(i!==4&&(e=e.child,e!==null))for(Bl(e,t,r),e=e.sibling;e!==null;)Bl(e,t,r),e=e.sibling}function Vl(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(Vl(e,t,r),e=e.sibling;e!==null;)Vl(e,t,r),e=e.sibling}var Ge=null,kt=!1;function ln(e,t,r){for(r=r.child;r!==null;)Xd(e,t,r),r=r.sibling}function Xd(e,t,r){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(jo,r)}catch{}switch(r.tag){case 5:qe||cr(r,t);case 6:var i=Ge,u=kt;Ge=null,ln(e,t,r),Ge=i,kt=u,Ge!==null&&(kt?(e=Ge,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ge.removeChild(r.stateNode));break;case 18:Ge!==null&&(kt?(e=Ge,r=r.stateNode,e.nodeType===8?nl(e.parentNode,r):e.nodeType===1&&nl(e,r),Fr(e)):nl(Ge,r.stateNode));break;case 4:i=Ge,u=kt,Ge=r.stateNode.containerInfo,kt=!0,ln(e,t,r),Ge=i,kt=u;break;case 0:case 11:case 14:case 15:if(!qe&&(i=r.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){u=i=i.next;do{var c=u,h=c.destroy;c=c.tag,h!==void 0&&((c&2)!==0||(c&4)!==0)&&$l(r,t,h),u=u.next}while(u!==i)}ln(e,t,r);break;case 1:if(!qe&&(cr(r,t),i=r.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=r.memoizedProps,i.state=r.memoizedState,i.componentWillUnmount()}catch(E){Ie(r,t,E)}ln(e,t,r);break;case 21:ln(e,t,r);break;case 22:r.mode&1?(qe=(i=qe)||r.memoizedState!==null,ln(e,t,r),qe=i):ln(e,t,r);break;default:ln(e,t,r)}}function Jd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new ig),t.forEach(function(i){var u=vg.bind(null,e,i);r.has(i)||(r.add(i),i.then(u,u))})}}function Ct(e,t){var r=t.deletions;if(r!==null)for(var i=0;i<r.length;i++){var u=r[i];try{var c=e,h=t,E=h;e:for(;E!==null;){switch(E.tag){case 5:Ge=E.stateNode,kt=!1;break e;case 3:Ge=E.stateNode.containerInfo,kt=!0;break e;case 4:Ge=E.stateNode.containerInfo,kt=!0;break e}E=E.return}if(Ge===null)throw Error(s(160));Xd(c,h,u),Ge=null,kt=!1;var k=u.alternate;k!==null&&(k.return=null),u.return=null}catch(I){Ie(u,t,I)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)qd(t,e),t=t.sibling}function qd(e,t){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ct(t,e),jt(e),i&4){try{lo(3,e,e.return),gs(3,e)}catch(X){Ie(e,e.return,X)}try{lo(5,e,e.return)}catch(X){Ie(e,e.return,X)}}break;case 1:Ct(t,e),jt(e),i&512&&r!==null&&cr(r,r.return);break;case 5:if(Ct(t,e),jt(e),i&512&&r!==null&&cr(r,r.return),e.flags&32){var u=e.stateNode;try{Rr(u,"")}catch(X){Ie(e,e.return,X)}}if(i&4&&(u=e.stateNode,u!=null)){var c=e.memoizedProps,h=r!==null?r.memoizedProps:c,E=e.type,k=e.updateQueue;if(e.updateQueue=null,k!==null)try{E==="input"&&c.type==="radio"&&c.name!=null&&Tu(u,c),wi(E,h);var I=wi(E,c);for(h=0;h<k.length;h+=2){var M=k[h],z=k[h+1];M==="style"?Au(u,z):M==="dangerouslySetInnerHTML"?Iu(u,z):M==="children"?Rr(u,z):L(u,M,z,I)}switch(E){case"input":mi(u,c);break;case"textarea":Pu(u,c);break;case"select":var D=u._wrapperState.wasMultiple;u._wrapperState.wasMultiple=!!c.multiple;var H=c.value;H!=null?Vn(u,!!c.multiple,H,!1):D!==!!c.multiple&&(c.defaultValue!=null?Vn(u,!!c.multiple,c.defaultValue,!0):Vn(u,!!c.multiple,c.multiple?[]:"",!1))}u[Xr]=c}catch(X){Ie(e,e.return,X)}}break;case 6:if(Ct(t,e),jt(e),i&4){if(e.stateNode===null)throw Error(s(162));u=e.stateNode,c=e.memoizedProps;try{u.nodeValue=c}catch(X){Ie(e,e.return,X)}}break;case 3:if(Ct(t,e),jt(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{Fr(t.containerInfo)}catch(X){Ie(e,e.return,X)}break;case 4:Ct(t,e),jt(e);break;case 13:Ct(t,e),jt(e),u=e.child,u.flags&8192&&(c=u.memoizedState!==null,u.stateNode.isHidden=c,!c||u.alternate!==null&&u.alternate.memoizedState!==null||(Gl=Ae())),i&4&&Jd(e);break;case 22:if(M=r!==null&&r.memoizedState!==null,e.mode&1?(qe=(I=qe)||M,Ct(t,e),qe=I):Ct(t,e),jt(e),i&8192){if(I=e.memoizedState!==null,(e.stateNode.isHidden=I)&&!M&&(e.mode&1)!==0)for(G=e,M=e.child;M!==null;){for(z=G=M;G!==null;){switch(D=G,H=D.child,D.tag){case 0:case 11:case 14:case 15:lo(4,D,D.return);break;case 1:cr(D,D.return);var K=D.stateNode;if(typeof K.componentWillUnmount=="function"){i=D,r=D.return;try{t=i,K.props=t.memoizedProps,K.state=t.memoizedState,K.componentWillUnmount()}catch(X){Ie(i,r,X)}}break;case 5:cr(D,D.return);break;case 22:if(D.memoizedState!==null){tf(z);continue}}H!==null?(H.return=D,G=H):tf(z)}M=M.sibling}e:for(M=null,z=e;;){if(z.tag===5){if(M===null){M=z;try{u=z.stateNode,I?(c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"):(E=z.stateNode,k=z.memoizedProps.style,h=k!=null&&k.hasOwnProperty("display")?k.display:null,E.style.display=Ou("display",h))}catch(X){Ie(e,e.return,X)}}}else if(z.tag===6){if(M===null)try{z.stateNode.nodeValue=I?"":z.memoizedProps}catch(X){Ie(e,e.return,X)}}else if((z.tag!==22&&z.tag!==23||z.memoizedState===null||z===e)&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===e)break e;for(;z.sibling===null;){if(z.return===null||z.return===e)break e;M===z&&(M=null),z=z.return}M===z&&(M=null),z.sibling.return=z.return,z=z.sibling}}break;case 19:Ct(t,e),jt(e),i&4&&Jd(e);break;case 21:break;default:Ct(t,e),jt(e)}}function jt(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Yd(r)){var i=r;break e}r=r.return}throw Error(s(160))}switch(i.tag){case 5:var u=i.stateNode;i.flags&32&&(Rr(u,""),i.flags&=-33);var c=Qd(e);Vl(e,c,u);break;case 3:case 4:var h=i.stateNode.containerInfo,E=Qd(e);Bl(e,E,h);break;default:throw Error(s(161))}}catch(k){Ie(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ag(e,t,r){G=e,Zd(e)}function Zd(e,t,r){for(var i=(e.mode&1)!==0;G!==null;){var u=G,c=u.child;if(u.tag===22&&i){var h=u.memoizedState!==null||vs;if(!h){var E=u.alternate,k=E!==null&&E.memoizedState!==null||qe;E=vs;var I=qe;if(vs=h,(qe=k)&&!I)for(G=u;G!==null;)h=G,k=h.child,h.tag===22&&h.memoizedState!==null?nf(u):k!==null?(k.return=h,G=k):nf(u);for(;c!==null;)G=c,Zd(c),c=c.sibling;G=u,vs=E,qe=I}ef(e)}else(u.subtreeFlags&8772)!==0&&c!==null?(c.return=u,G=c):ef(e)}}function ef(e){for(;G!==null;){var t=G;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:qe||gs(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!qe)if(r===null)i.componentDidMount();else{var u=t.elementType===t.type?r.memoizedProps:Et(t.type,r.memoizedProps);i.componentDidUpdate(u,r.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var c=t.updateQueue;c!==null&&td(t,c,i);break;case 3:var h=t.updateQueue;if(h!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}td(t,h,r)}break;case 5:var E=t.stateNode;if(r===null&&t.flags&4){r=E;var k=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":k.autoFocus&&r.focus();break;case"img":k.src&&(r.src=k.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var I=t.alternate;if(I!==null){var M=I.memoizedState;if(M!==null){var z=M.dehydrated;z!==null&&Fr(z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}qe||t.flags&512&&Ul(t)}catch(D){Ie(t,t.return,D)}}if(t===e){G=null;break}if(r=t.sibling,r!==null){r.return=t.return,G=r;break}G=t.return}}function tf(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var r=t.sibling;if(r!==null){r.return=t.return,G=r;break}G=t.return}}function nf(e){for(;G!==null;){var t=G;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{gs(4,t)}catch(k){Ie(t,r,k)}break;case 1:var i=t.stateNode;if(typeof i.componentDidMount=="function"){var u=t.return;try{i.componentDidMount()}catch(k){Ie(t,u,k)}}var c=t.return;try{Ul(t)}catch(k){Ie(t,c,k)}break;case 5:var h=t.return;try{Ul(t)}catch(k){Ie(t,h,k)}}}catch(k){Ie(t,t.return,k)}if(t===e){G=null;break}var E=t.sibling;if(E!==null){E.return=t.return,G=E;break}G=t.return}}var ug=Math.ceil,ys=B.ReactCurrentDispatcher,Wl=B.ReactCurrentOwner,gt=B.ReactCurrentBatchConfig,me=0,We=null,De=null,Ke=0,ft=0,dr=tn(0),Fe=0,ao=null,bn=0,xs=0,Hl=0,uo=null,st=null,Gl=0,fr=1/0,Ft=null,ws=!1,Kl=null,an=null,Ss=!1,un=null,Es=0,co=0,Yl=null,ks=-1,Cs=0;function tt(){return(me&6)!==0?Ae():ks!==-1?ks:ks=Ae()}function cn(e){return(e.mode&1)===0?1:(me&2)!==0&&Ke!==0?Ke&-Ke:Gv.transition!==null?(Cs===0&&(Cs=Qu()),Cs):(e=Se,e!==0||(e=window.event,e=e===void 0?16:oc(e.type)),e)}function _t(e,t,r,i){if(50<co)throw co=0,Yl=null,Error(s(185));Ar(e,r,i),((me&2)===0||e!==We)&&(e===We&&((me&2)===0&&(xs|=r),Fe===4&&dn(e,Ke)),it(e,i),r===1&&me===0&&(t.mode&1)===0&&(fr=Ae()+500,qo&&rn()))}function it(e,t){var r=e.callbackNode;Gm(e,t);var i=Oo(e,e===We?Ke:0);if(i===0)r!==null&&Gu(r),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(r!=null&&Gu(r),t===1)e.tag===0?Hv(of.bind(null,e)):Vc(of.bind(null,e)),Uv(function(){(me&6)===0&&rn()}),r=null;else{switch(Xu(i)){case 1:r=Ni;break;case 4:r=Ku;break;case 16:r=Po;break;case 536870912:r=Yu;break;default:r=Po}r=pf(r,rf.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function rf(e,t){if(ks=-1,Cs=0,(me&6)!==0)throw Error(s(327));var r=e.callbackNode;if(pr()&&e.callbackNode!==r)return null;var i=Oo(e,e===We?Ke:0);if(i===0)return null;if((i&30)!==0||(i&e.expiredLanes)!==0||t)t=_s(e,i);else{t=i;var u=me;me|=2;var c=lf();(We!==e||Ke!==t)&&(Ft=null,fr=Ae()+500,On(e,t));do try{fg();break}catch(E){sf(e,E)}while(!0);fl(),ys.current=c,me=u,De!==null?t=0:(We=null,Ke=0,t=Fe)}if(t!==0){if(t===2&&(u=Ri(e),u!==0&&(i=u,t=Ql(e,u))),t===1)throw r=ao,On(e,0),dn(e,i),it(e,Ae()),r;if(t===6)dn(e,i);else{if(u=e.current.alternate,(i&30)===0&&!cg(u)&&(t=_s(e,i),t===2&&(c=Ri(e),c!==0&&(i=c,t=Ql(e,c))),t===1))throw r=ao,On(e,0),dn(e,i),it(e,Ae()),r;switch(e.finishedWork=u,e.finishedLanes=i,t){case 0:case 1:throw Error(s(345));case 2:An(e,st,Ft);break;case 3:if(dn(e,i),(i&130023424)===i&&(t=Gl+500-Ae(),10<t)){if(Oo(e,0)!==0)break;if(u=e.suspendedLanes,(u&i)!==i){tt(),e.pingedLanes|=e.suspendedLanes&u;break}e.timeoutHandle=tl(An.bind(null,e,st,Ft),t);break}An(e,st,Ft);break;case 4:if(dn(e,i),(i&4194240)===i)break;for(t=e.eventTimes,u=-1;0<i;){var h=31-xt(i);c=1<<h,h=t[h],h>u&&(u=h),i&=~c}if(i=u,i=Ae()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*ug(i/1960))-i,10<i){e.timeoutHandle=tl(An.bind(null,e,st,Ft),i);break}An(e,st,Ft);break;case 5:An(e,st,Ft);break;default:throw Error(s(329))}}}return it(e,Ae()),e.callbackNode===r?rf.bind(null,e):null}function Ql(e,t){var r=uo;return e.current.memoizedState.isDehydrated&&(On(e,t).flags|=256),e=_s(e,t),e!==2&&(t=st,st=r,t!==null&&Xl(t)),e}function Xl(e){st===null?st=e:st.push.apply(st,e)}function cg(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var i=0;i<r.length;i++){var u=r[i],c=u.getSnapshot;u=u.value;try{if(!wt(c(),u))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 dn(e,t){for(t&=~Hl,t&=~xs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-xt(t),i=1<<r;e[r]=-1,t&=~i}}function of(e){if((me&6)!==0)throw Error(s(327));pr();var t=Oo(e,0);if((t&1)===0)return it(e,Ae()),null;var r=_s(e,t);if(e.tag!==0&&r===2){var i=Ri(e);i!==0&&(t=i,r=Ql(e,i))}if(r===1)throw r=ao,On(e,0),dn(e,t),it(e,Ae()),r;if(r===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,An(e,st,Ft),it(e,Ae()),null}function Jl(e,t){var r=me;me|=1;try{return e(t)}finally{me=r,me===0&&(fr=Ae()+500,qo&&rn())}}function In(e){un!==null&&un.tag===0&&(me&6)===0&&pr();var t=me;me|=1;var r=gt.transition,i=Se;try{if(gt.transition=null,Se=1,e)return e()}finally{Se=i,gt.transition=r,me=t,(me&6)===0&&rn()}}function ql(){ft=dr.current,_e(dr)}function On(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,$v(r)),De!==null)for(r=De.return;r!==null;){var i=r;switch(ll(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&Xo();break;case 3:ar(),_e(nt),_e(Qe),wl();break;case 5:yl(i);break;case 4:ar();break;case 13:_e(Pe);break;case 19:_e(Pe);break;case 10:pl(i.type._context);break;case 22:case 23:ql()}r=r.return}if(We=e,De=e=fn(e.current,null),Ke=ft=t,Fe=0,ao=null,Hl=xs=bn=0,st=uo=null,Rn!==null){for(t=0;t<Rn.length;t++)if(r=Rn[t],i=r.interleaved,i!==null){r.interleaved=null;var u=i.next,c=r.pending;if(c!==null){var h=c.next;c.next=u,i.next=h}r.pending=i}Rn=null}return e}function sf(e,t){do{var r=De;try{if(fl(),as.current=fs,us){for(var i=je.memoizedState;i!==null;){var u=i.queue;u!==null&&(u.pending=null),i=i.next}us=!1}if(jn=0,Ve=ze=je=null,no=!1,ro=0,Wl.current=null,r===null||r.return===null){Fe=1,ao=t,De=null;break}e:{var c=e,h=r.return,E=r,k=t;if(t=Ke,E.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){var I=k,M=E,z=M.tag;if((M.mode&1)===0&&(z===0||z===11||z===15)){var D=M.alternate;D?(M.updateQueue=D.updateQueue,M.memoizedState=D.memoizedState,M.lanes=D.lanes):(M.updateQueue=null,M.memoizedState=null)}var H=jd(h);if(H!==null){H.flags&=-257,bd(H,h,E,c,t),H.mode&1&&Pd(c,I,t),t=H,k=I;var K=t.updateQueue;if(K===null){var X=new Set;X.add(k),t.updateQueue=X}else K.add(k);break e}else{if((t&1)===0){Pd(c,I,t),Zl();break e}k=Error(s(426))}}else if(Te&&E.mode&1){var Le=jd(h);if(Le!==null){(Le.flags&65536)===0&&(Le.flags|=256),bd(Le,h,E,c,t),cl(ur(k,E));break e}}c=k=ur(k,E),Fe!==4&&(Fe=2),uo===null?uo=[c]:uo.push(c),c=h;do{switch(c.tag){case 3:c.flags|=65536,t&=-t,c.lanes|=t;var j=Nd(c,k,t);ed(c,j);break e;case 1:E=k;var _=c.type,b=c.stateNode;if((c.flags&128)===0&&(typeof _.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(an===null||!an.has(b)))){c.flags|=65536,t&=-t,c.lanes|=t;var U=Rd(c,E,t);ed(c,U);break e}}c=c.return}while(c!==null)}uf(r)}catch(q){t=q,De===r&&r!==null&&(De=r=r.return);continue}break}while(!0)}function lf(){var e=ys.current;return ys.current=fs,e===null?fs:e}function Zl(){(Fe===0||Fe===3||Fe===2)&&(Fe=4),We===null||(bn&268435455)===0&&(xs&268435455)===0||dn(We,Ke)}function _s(e,t){var r=me;me|=2;var i=lf();(We!==e||Ke!==t)&&(Ft=null,On(e,t));do try{dg();break}catch(u){sf(e,u)}while(!0);if(fl(),me=r,ys.current=i,De!==null)throw Error(s(261));return We=null,Ke=0,Fe}function dg(){for(;De!==null;)af(De)}function fg(){for(;De!==null&&!Mm();)af(De)}function af(e){var t=ff(e.alternate,e,ft);e.memoizedProps=e.pendingProps,t===null?uf(e):De=t,Wl.current=null}function uf(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=og(r,t,ft),r!==null){De=r;return}}else{if(r=sg(r,t),r!==null){r.flags&=32767,De=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Fe=6,De=null;return}}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);Fe===0&&(Fe=5)}function An(e,t,r){var i=Se,u=gt.transition;try{gt.transition=null,Se=1,pg(e,t,r,i)}finally{gt.transition=u,Se=i}return null}function pg(e,t,r,i){do pr();while(un!==null);if((me&6)!==0)throw Error(s(327));r=e.finishedWork;var u=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var c=r.lanes|r.childLanes;if(Km(e,c),e===We&&(De=We=null,Ke=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Ss||(Ss=!0,pf(Po,function(){return pr(),null})),c=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||c){c=gt.transition,gt.transition=null;var h=Se;Se=1;var E=me;me|=4,Wl.current=null,lg(e,r),qd(r,e),Ov(Zi),Do=!!qi,Zi=qi=null,e.current=r,ag(r),zm(),me=E,Se=h,gt.transition=c}else e.current=r;if(Ss&&(Ss=!1,un=e,Es=u),c=e.pendingLanes,c===0&&(an=null),Um(r.stateNode),it(e,Ae()),t!==null)for(i=e.onRecoverableError,r=0;r<t.length;r++)u=t[r],i(u.value,{componentStack:u.stack,digest:u.digest});if(ws)throw ws=!1,e=Kl,Kl=null,e;return(Es&1)!==0&&e.tag!==0&&pr(),c=e.pendingLanes,(c&1)!==0?e===Yl?co++:(co=0,Yl=e):co=0,rn(),null}function pr(){if(un!==null){var e=Xu(Es),t=gt.transition,r=Se;try{if(gt.transition=null,Se=16>e?16:e,un===null)var i=!1;else{if(e=un,un=null,Es=0,(me&6)!==0)throw Error(s(331));var u=me;for(me|=4,G=e.current;G!==null;){var c=G,h=c.child;if((G.flags&16)!==0){var E=c.deletions;if(E!==null){for(var k=0;k<E.length;k++){var I=E[k];for(G=I;G!==null;){var M=G;switch(M.tag){case 0:case 11:case 15:lo(8,M,c)}var z=M.child;if(z!==null)z.return=M,G=z;else for(;G!==null;){M=G;var D=M.sibling,H=M.return;if(Kd(M),M===I){G=null;break}if(D!==null){D.return=H,G=D;break}G=H}}}var K=c.alternate;if(K!==null){var X=K.child;if(X!==null){K.child=null;do{var Le=X.sibling;X.sibling=null,X=Le}while(X!==null)}}G=c}}if((c.subtreeFlags&2064)!==0&&h!==null)h.return=c,G=h;else e:for(;G!==null;){if(c=G,(c.flags&2048)!==0)switch(c.tag){case 0:case 11:case 15:lo(9,c,c.return)}var j=c.sibling;if(j!==null){j.return=c.return,G=j;break e}G=c.return}}var _=e.current;for(G=_;G!==null;){h=G;var b=h.child;if((h.subtreeFlags&2064)!==0&&b!==null)b.return=h,G=b;else e:for(h=_;G!==null;){if(E=G,(E.flags&2048)!==0)try{switch(E.tag){case 0:case 11:case 15:gs(9,E)}}catch(q){Ie(E,E.return,q)}if(E===h){G=null;break e}var U=E.sibling;if(U!==null){U.return=E.return,G=U;break e}G=E.return}}if(me=u,rn(),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(jo,e)}catch{}i=!0}return i}finally{Se=r,gt.transition=t}}return!1}function cf(e,t,r){t=ur(r,t),t=Nd(e,t,1),e=sn(e,t,1),t=tt(),e!==null&&(Ar(e,1,t),it(e,t))}function Ie(e,t,r){if(e.tag===3)cf(e,e,r);else for(;t!==null;){if(t.tag===3){cf(t,e,r);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(an===null||!an.has(i))){e=ur(r,e),e=Rd(t,e,1),t=sn(t,e,1),e=tt(),t!==null&&(Ar(t,1,e),it(t,e));break}}t=t.return}}function hg(e,t,r){var i=e.pingCache;i!==null&&i.delete(t),t=tt(),e.pingedLanes|=e.suspendedLanes&r,We===e&&(Ke&r)===r&&(Fe===4||Fe===3&&(Ke&130023424)===Ke&&500>Ae()-Gl?On(e,0):Hl|=r),it(e,t)}function df(e,t){t===0&&((e.mode&1)===0?t=1:(t=Io,Io<<=1,(Io&130023424)===0&&(Io=4194304)));var r=tt();e=Dt(e,t),e!==null&&(Ar(e,t,r),it(e,r))}function mg(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),df(e,r)}function vg(e,t){var r=0;switch(e.tag){case 13:var i=e.stateNode,u=e.memoizedState;u!==null&&(r=u.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(s(314))}i!==null&&i.delete(t),df(e,r)}var ff;ff=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||nt.current)ot=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return ot=!1,rg(e,t,r);ot=(e.flags&131072)!==0}else ot=!1,Te&&(t.flags&1048576)!==0&&Wc(t,es,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;ms(e,t),e=t.pendingProps;var u=tr(t,Qe.current);lr(t,r),u=kl(null,t,i,e,u,r);var c=Cl();return t.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(i)?(c=!0,Jo(t)):c=!1,t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,vl(t),u.updater=ps,t.stateNode=u,u._reactInternals=t,jl(t,i,e,r),t=Al(null,t,i,!0,c,r)):(t.tag=0,Te&&c&&il(t),et(null,t,u,r),t=t.child),t;case 16:i=t.elementType;e:{switch(ms(e,t),e=t.pendingProps,u=i._init,i=u(i._payload),t.type=i,u=t.tag=yg(i),e=Et(i,e),u){case 0:t=Ol(null,t,i,e,r);break e;case 1:t=Md(null,t,i,e,r);break e;case 11:t=Id(null,t,i,e,r);break e;case 14:t=Od(null,t,i,Et(i.type,e),r);break e}throw Error(s(306,i,""))}return t;case 0:return i=t.type,u=t.pendingProps,u=t.elementType===i?u:Et(i,u),Ol(e,t,i,u,r);case 1:return i=t.type,u=t.pendingProps,u=t.elementType===i?u:Et(i,u),Md(e,t,i,u,r);case 3:e:{if(zd(t),e===null)throw Error(s(387));i=t.pendingProps,c=t.memoizedState,u=c.element,Zc(e,t),is(t,i,null,r);var h=t.memoizedState;if(i=h.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){u=ur(Error(s(423)),t),t=Fd(e,t,i,r,u);break e}else if(i!==u){u=ur(Error(s(424)),t),t=Fd(e,t,i,r,u);break e}else for(dt=en(t.stateNode.containerInfo.firstChild),ct=t,Te=!0,St=null,r=Jc(t,null,i,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(or(),i===u){t=zt(e,t,r);break e}et(e,t,i,r)}t=t.child}return t;case 5:return nd(t),e===null&&ul(t),i=t.type,u=t.pendingProps,c=e!==null?e.memoizedProps:null,h=u.children,el(i,u)?h=null:c!==null&&el(i,c)&&(t.flags|=32),Dd(e,t),et(e,t,h,r),t.child;case 6:return e===null&&ul(t),null;case 13:return $d(e,t,r);case 4:return gl(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=sr(t,null,i,r):et(e,t,i,r),t.child;case 11:return i=t.type,u=t.pendingProps,u=t.elementType===i?u:Et(i,u),Id(e,t,i,u,r);case 7:return et(e,t,t.pendingProps,r),t.child;case 8:return et(e,t,t.pendingProps.children,r),t.child;case 12:return et(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(i=t.type._context,u=t.pendingProps,c=t.memoizedProps,h=u.value,Ee(rs,i._currentValue),i._currentValue=h,c!==null)if(wt(c.value,h)){if(c.children===u.children&&!nt.current){t=zt(e,t,r);break e}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var E=c.dependencies;if(E!==null){h=c.child;for(var k=E.firstContext;k!==null;){if(k.context===i){if(c.tag===1){k=Mt(-1,r&-r),k.tag=2;var I=c.updateQueue;if(I!==null){I=I.shared;var M=I.pending;M===null?k.next=k:(k.next=M.next,M.next=k),I.pending=k}}c.lanes|=r,k=c.alternate,k!==null&&(k.lanes|=r),hl(c.return,r,t),E.lanes|=r;break}k=k.next}}else if(c.tag===10)h=c.type===t.type?null:c.child;else if(c.tag===18){if(h=c.return,h===null)throw Error(s(341));h.lanes|=r,E=h.alternate,E!==null&&(E.lanes|=r),hl(h,r,t),h=c.sibling}else h=c.child;if(h!==null)h.return=c;else for(h=c;h!==null;){if(h===t){h=null;break}if(c=h.sibling,c!==null){c.return=h.return,h=c;break}h=h.return}c=h}et(e,t,u.children,r),t=t.child}return t;case 9:return u=t.type,i=t.pendingProps.children,lr(t,r),u=mt(u),i=i(u),t.flags|=1,et(e,t,i,r),t.child;case 14:return i=t.type,u=Et(i,t.pendingProps),u=Et(i.type,u),Od(e,t,i,u,r);case 15:return Ad(e,t,t.type,t.pendingProps,r);case 17:return i=t.type,u=t.pendingProps,u=t.elementType===i?u:Et(i,u),ms(e,t),t.tag=1,rt(i)?(e=!0,Jo(t)):e=!1,lr(t,r),_d(t,i,u),jl(t,i,u,r),Al(null,t,i,!0,e,r);case 19:return Bd(e,t,r);case 22:return Ld(e,t,r)}throw Error(s(156,t.tag))};function pf(e,t){return Hu(e,t)}function gg(e,t,r,i){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,t,r,i){return new gg(e,t,r,i)}function ea(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yg(e){if(typeof e=="function")return ea(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ke)return 11;if(e===ve)return 14}return 2}function fn(e,t){var r=e.alternate;return r===null?(r=yt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ts(e,t,r,i,u,c){var h=2;if(i=e,typeof e=="function")ea(e)&&(h=1);else if(typeof e=="string")h=5;else e:switch(e){case Z:return Ln(r.children,u,c,t);case V:h=8,u|=8;break;case xe:return e=yt(12,r,t,u|2),e.elementType=xe,e.lanes=c,e;case Re:return e=yt(13,r,t,u),e.elementType=Re,e.lanes=c,e;case oe:return e=yt(19,r,t,u),e.elementType=oe,e.lanes=c,e;case pe:return Ns(r,u,c,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ne:h=10;break e;case Oe:h=9;break e;case ke:h=11;break e;case ve:h=14;break e;case ue:h=16,i=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=yt(h,r,t,u),t.elementType=e,t.type=i,t.lanes=c,t}function Ln(e,t,r,i){return e=yt(7,e,i,t),e.lanes=r,e}function Ns(e,t,r,i){return e=yt(22,e,i,t),e.elementType=pe,e.lanes=r,e.stateNode={isHidden:!1},e}function ta(e,t,r){return e=yt(6,e,null,t),e.lanes=r,e}function na(e,t,r){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xg(e,t,r,i,u){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Pi(0),this.expirationTimes=Pi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pi(0),this.identifierPrefix=i,this.onRecoverableError=u,this.mutableSourceEagerHydrationData=null}function ra(e,t,r,i,u,c,h,E,k){return e=new xg(e,t,r,E,k),t===1?(t=1,c===!0&&(t|=8)):t=0,c=yt(3,null,null,t),e.current=c,c.stateNode=e,c.memoizedState={element:i,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},vl(c),e}function wg(e,t,r){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:te,key:i==null?null:""+i,children:e,containerInfo:t,implementation:r}}function hf(e){if(!e)return nn;e=e._reactInternals;e:{if(kn(e)!==e||e.tag!==1)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(rt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(s(171))}if(e.tag===1){var r=e.type;if(rt(r))return Uc(e,r,t)}return t}function mf(e,t,r,i,u,c,h,E,k){return e=ra(r,i,!0,e,u,c,h,E,k),e.context=hf(null),r=e.current,i=tt(),u=cn(r),c=Mt(i,u),c.callback=t??null,sn(r,c,u),e.current.lanes=u,Ar(e,u,i),it(e,i),e}function Rs(e,t,r,i){var u=t.current,c=tt(),h=cn(u);return r=hf(r),t.context===null?t.context=r:t.pendingContext=r,t=Mt(c,h),t.payload={element:e},i=i===void 0?null:i,i!==null&&(t.callback=i),e=sn(u,t,h),e!==null&&(_t(e,u,h,c),ss(e,u,h)),h}function Ps(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function vf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function oa(e,t){vf(e,t),(e=e.alternate)&&vf(e,t)}function Sg(){return null}var gf=typeof reportError=="function"?reportError:function(e){console.error(e)};function sa(e){this._internalRoot=e}js.prototype.render=sa.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));Rs(e,t,null,null)},js.prototype.unmount=sa.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;In(function(){Rs(null,e,null,null)}),t[It]=null}};function js(e){this._internalRoot=e}js.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zu();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Jt.length&&t!==0&&t<Jt[r].priority;r++);Jt.splice(r,0,e),r===0&&nc(e)}};function ia(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function bs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function yf(){}function Eg(e,t,r,i,u){if(u){if(typeof i=="function"){var c=i;i=function(){var I=Ps(h);c.call(I)}}var h=mf(t,i,e,0,null,!1,!1,"",yf);return e._reactRootContainer=h,e[It]=h.current,Yr(e.nodeType===8?e.parentNode:e),In(),h}for(;u=e.lastChild;)e.removeChild(u);if(typeof i=="function"){var E=i;i=function(){var I=Ps(k);E.call(I)}}var k=ra(e,0,!1,null,null,!1,!1,"",yf);return e._reactRootContainer=k,e[It]=k.current,Yr(e.nodeType===8?e.parentNode:e),In(function(){Rs(t,k,r,i)}),k}function Is(e,t,r,i,u){var c=r._reactRootContainer;if(c){var h=c;if(typeof u=="function"){var E=u;u=function(){var k=Ps(h);E.call(k)}}Rs(t,h,e,u)}else h=Eg(r,t,e,u,i);return Ps(h)}Ju=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Or(t.pendingLanes);r!==0&&(ji(t,r|1),it(t,Ae()),(me&6)===0&&(fr=Ae()+500,rn()))}break;case 13:In(function(){var i=Dt(e,1);if(i!==null){var u=tt();_t(i,e,1,u)}}),oa(e,1)}},bi=function(e){if(e.tag===13){var t=Dt(e,134217728);if(t!==null){var r=tt();_t(t,e,134217728,r)}oa(e,134217728)}},qu=function(e){if(e.tag===13){var t=cn(e),r=Dt(e,t);if(r!==null){var i=tt();_t(r,e,t,i)}oa(e,t)}},Zu=function(){return Se},ec=function(e,t){var r=Se;try{return Se=e,t()}finally{Se=r}},ki=function(e,t,r){switch(t){case"input":if(mi(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var i=r[t];if(i!==e&&i.form===e.form){var u=Qo(i);if(!u)throw Error(s(90));En(i),mi(i,u)}}}break;case"textarea":Pu(e,r);break;case"select":t=r.value,t!=null&&Vn(e,!!r.multiple,t,!1)}},zu=Jl,Fu=In;var kg={usingClientEntryPoint:!1,Events:[Jr,Zn,Qo,Du,Mu,Jl]},fo={findFiberByHostInstance:Cn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Cg={bundleType:fo.bundleType,version:fo.version,rendererPackageName:fo.rendererPackageName,rendererConfig:fo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:B.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Vu(e),e===null?null:e.stateNode},findFiberByHostInstance:fo.findFiberByHostInstance||Sg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Os=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Os.isDisabled&&Os.supportsFiber)try{jo=Os.inject(Cg),Tt=Os}catch{}}return lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kg,lt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ia(t))throw Error(s(200));return wg(e,t,null,r)},lt.createRoot=function(e,t){if(!ia(e))throw Error(s(299));var r=!1,i="",u=gf;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=ra(e,1,!1,null,null,r,!1,i,u),e[It]=t.current,Yr(e.nodeType===8?e.parentNode:e),new sa(t)},lt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=Vu(t),e=e===null?null:e.stateNode,e},lt.flushSync=function(e){return In(e)},lt.hydrate=function(e,t,r){if(!bs(t))throw Error(s(200));return Is(null,e,t,!0,r)},lt.hydrateRoot=function(e,t,r){if(!ia(e))throw Error(s(405));var i=r!=null&&r.hydratedSources||null,u=!1,c="",h=gf;if(r!=null&&(r.unstable_strictMode===!0&&(u=!0),r.identifierPrefix!==void 0&&(c=r.identifierPrefix),r.onRecoverableError!==void 0&&(h=r.onRecoverableError)),t=mf(t,null,e,1,r??null,u,!1,c,h),e[It]=t.current,Yr(e),i)for(e=0;e<i.length;e++)r=i[e],u=r._getVersion,u=u(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,u]:t.mutableSourceEagerHydrationData.push(r,u);return new js(t)},lt.render=function(e,t,r){if(!bs(t))throw Error(s(200));return Is(null,e,t,!1,r)},lt.unmountComponentAtNode=function(e){if(!bs(e))throw Error(s(40));return e._reactRootContainer?(In(function(){Is(null,null,e,!1,function(){e._reactRootContainer=null,e[It]=null})}),!0):!1},lt.unstable_batchedUpdates=Jl,lt.unstable_renderSubtreeIntoContainer=function(e,t,r,i){if(!bs(r))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return Is(e,t,r,!1,i)},lt.version="18.3.1-next-f1338f8080-20240426",lt}var Tf;function yp(){if(Tf)return ua.exports;Tf=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(o){console.error(o)}}return n(),ua.exports=Ig(),ua.exports}var Nf;function Og(){if(Nf)return As;Nf=1;var n=yp();return As.createRoot=n.createRoot,As.hydrateRoot=n.hydrateRoot,As}var Ag=Og(),Ga=yp();const Lg=gp(Ga);/**
|
|
41
|
+
* @remix-run/router v1.23.2
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Remix Software Inc.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
+
*
|
|
48
|
+
* @license MIT
|
|
49
|
+
*/function go(){return go=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var s=arguments[o];for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(n[l]=s[l])}return n},go.apply(this,arguments)}var mn;(function(n){n.Pop="POP",n.Push="PUSH",n.Replace="REPLACE"})(mn||(mn={}));const Rf="popstate";function Dg(n){n===void 0&&(n={});function o(l,a){let{pathname:d,search:f,hash:p}=l.location;return ja("",{pathname:d,search:f,hash:p},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function s(l,a){return typeof a=="string"?a:Hs(a)}return zg(o,s,null,n)}function Me(n,o){if(n===!1||n===null||typeof n>"u")throw new Error(o)}function Ka(n,o){if(!n){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function Mg(){return Math.random().toString(36).substr(2,8)}function Pf(n,o){return{usr:n.state,key:n.key,idx:o}}function ja(n,o,s,l){return s===void 0&&(s=null),go({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof o=="string"?kr(o):o,{state:s,key:o&&o.key||l||Mg()})}function Hs(n){let{pathname:o="/",search:s="",hash:l=""}=n;return s&&s!=="?"&&(o+=s.charAt(0)==="?"?s:"?"+s),l&&l!=="#"&&(o+=l.charAt(0)==="#"?l:"#"+l),o}function kr(n){let o={};if(n){let s=n.indexOf("#");s>=0&&(o.hash=n.substr(s),n=n.substr(0,s));let l=n.indexOf("?");l>=0&&(o.search=n.substr(l),n=n.substr(0,l)),n&&(o.pathname=n)}return o}function zg(n,o,s,l){l===void 0&&(l={});let{window:a=document.defaultView,v5Compat:d=!1}=l,f=a.history,p=mn.Pop,m=null,v=w();v==null&&(v=0,f.replaceState(go({},f.state,{idx:v}),""));function w(){return(f.state||{idx:null}).idx}function y(){p=mn.Pop;let C=w(),$=C==null?null:C-v;v=C,m&&m({action:p,location:T.location,delta:$})}function S(C,$){p=mn.Push;let F=ja(T.location,C,$);v=w()+1;let L=Pf(F,v),B=T.createHref(F);try{f.pushState(L,"",B)}catch(ne){if(ne instanceof DOMException&&ne.name==="DataCloneError")throw ne;a.location.assign(B)}d&&m&&m({action:p,location:T.location,delta:1})}function N(C,$){p=mn.Replace;let F=ja(T.location,C,$);v=w();let L=Pf(F,v),B=T.createHref(F);f.replaceState(L,"",B),d&&m&&m({action:p,location:T.location,delta:0})}function R(C){let $=a.location.origin!=="null"?a.location.origin:a.location.href,F=typeof C=="string"?C:Hs(C);return F=F.replace(/ $/,"%20"),Me($,"No window.location.(origin|href) available to create URL for href: "+F),new URL(F,$)}let T={get action(){return p},get location(){return n(a,f)},listen(C){if(m)throw new Error("A history only accepts one active listener");return a.addEventListener(Rf,y),m=C,()=>{a.removeEventListener(Rf,y),m=null}},createHref(C){return o(a,C)},createURL:R,encodeLocation(C){let $=R(C);return{pathname:$.pathname,search:$.search,hash:$.hash}},push:S,replace:N,go(C){return f.go(C)}};return T}var jf;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(jf||(jf={}));function Fg(n,o,s){return s===void 0&&(s="/"),$g(n,o,s)}function $g(n,o,s,l){let a=typeof o=="string"?kr(o):o,d=Ya(a.pathname||"/",s);if(d==null)return null;let f=xp(n);Ug(f);let p=null;for(let m=0;p==null&&m<f.length;++m){let v=Zg(d);p=Xg(f[m],v)}return p}function xp(n,o,s,l){o===void 0&&(o=[]),s===void 0&&(s=[]),l===void 0&&(l="");let a=(d,f,p)=>{let m={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:f,route:d};m.relativePath.startsWith("/")&&(Me(m.relativePath.startsWith(l),'Absolute route path "'+m.relativePath+'" nested under path '+('"'+l+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),m.relativePath=m.relativePath.slice(l.length));let v=gn([l,m.relativePath]),w=s.concat(m);d.children&&d.children.length>0&&(Me(d.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+v+'".')),xp(d.children,o,w,v)),!(d.path==null&&!d.index)&&o.push({path:v,score:Yg(v,d.index),routesMeta:w})};return n.forEach((d,f)=>{var p;if(d.path===""||!((p=d.path)!=null&&p.includes("?")))a(d,f);else for(let m of wp(d.path))a(d,f,m)}),o}function wp(n){let o=n.split("/");if(o.length===0)return[];let[s,...l]=o,a=s.endsWith("?"),d=s.replace(/\?$/,"");if(l.length===0)return a?[d,""]:[d];let f=wp(l.join("/")),p=[];return p.push(...f.map(m=>m===""?d:[d,m].join("/"))),a&&p.push(...f),p.map(m=>n.startsWith("/")&&m===""?"/":m)}function Ug(n){n.sort((o,s)=>o.score!==s.score?s.score-o.score:Qg(o.routesMeta.map(l=>l.childrenIndex),s.routesMeta.map(l=>l.childrenIndex)))}const Bg=/^:[\w-]+$/,Vg=3,Wg=2,Hg=1,Gg=10,Kg=-2,bf=n=>n==="*";function Yg(n,o){let s=n.split("/"),l=s.length;return s.some(bf)&&(l+=Kg),o&&(l+=Wg),s.filter(a=>!bf(a)).reduce((a,d)=>a+(Bg.test(d)?Vg:d===""?Hg:Gg),l)}function Qg(n,o){return n.length===o.length&&n.slice(0,-1).every((l,a)=>l===o[a])?n[n.length-1]-o[o.length-1]:0}function Xg(n,o,s){let{routesMeta:l}=n,a={},d="/",f=[];for(let p=0;p<l.length;++p){let m=l[p],v=p===l.length-1,w=d==="/"?o:o.slice(d.length)||"/",y=Jg({path:m.relativePath,caseSensitive:m.caseSensitive,end:v},w),S=m.route;if(!y)return null;Object.assign(a,y.params),f.push({params:a,pathname:gn([d,y.pathname]),pathnameBase:oy(gn([d,y.pathnameBase])),route:S}),y.pathnameBase!=="/"&&(d=gn([d,y.pathnameBase]))}return f}function Jg(n,o){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[s,l]=qg(n.path,n.caseSensitive,n.end),a=o.match(s);if(!a)return null;let d=a[0],f=d.replace(/(.)\/+$/,"$1"),p=a.slice(1);return{params:l.reduce((v,w,y)=>{let{paramName:S,isOptional:N}=w;if(S==="*"){let T=p[y]||"";f=d.slice(0,d.length-T.length).replace(/(.)\/+$/,"$1")}const R=p[y];return N&&!R?v[S]=void 0:v[S]=(R||"").replace(/%2F/g,"/"),v},{}),pathname:d,pathnameBase:f,pattern:n}}function qg(n,o,s){o===void 0&&(o=!1),s===void 0&&(s=!0),Ka(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let l=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,p,m)=>(l.push({paramName:p,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(l.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,o?void 0:"i"),l]}function Zg(n){try{return n.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Ka(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+o+").")),n}}function Ya(n,o){if(o==="/")return n;if(!n.toLowerCase().startsWith(o.toLowerCase()))return null;let s=o.endsWith("/")?o.length-1:o.length,l=n.charAt(s);return l&&l!=="/"?null:n.slice(s)||"/"}const ey=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ty=n=>ey.test(n);function ny(n,o){o===void 0&&(o="/");let{pathname:s,search:l="",hash:a=""}=typeof n=="string"?kr(n):n,d;if(s)if(ty(s))d=s;else{if(s.includes("//")){let f=s;s=s.replace(/\/\/+/g,"/"),Ka(!1,"Pathnames cannot have embedded double slashes - normalizing "+(f+" -> "+s))}s.startsWith("/")?d=If(s.substring(1),"/"):d=If(s,o)}else d=o;return{pathname:d,search:sy(l),hash:iy(a)}}function If(n,o){let s=o.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?s.length>1&&s.pop():a!=="."&&s.push(a)}),s.length>1?s.join("/"):"/"}function fa(n,o,s,l){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+o+"` field ["+JSON.stringify(l)+"]. Please separate it out to the ")+("`to."+s+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function ry(n){return n.filter((o,s)=>s===0||o.route.path&&o.route.path.length>0)}function Sp(n,o){let s=ry(n);return o?s.map((l,a)=>a===s.length-1?l.pathname:l.pathnameBase):s.map(l=>l.pathnameBase)}function Ep(n,o,s,l){l===void 0&&(l=!1);let a;typeof n=="string"?a=kr(n):(a=go({},n),Me(!a.pathname||!a.pathname.includes("?"),fa("?","pathname","search",a)),Me(!a.pathname||!a.pathname.includes("#"),fa("#","pathname","hash",a)),Me(!a.search||!a.search.includes("#"),fa("#","search","hash",a)));let d=n===""||a.pathname==="",f=d?"/":a.pathname,p;if(f==null)p=s;else{let y=o.length-1;if(!l&&f.startsWith("..")){let S=f.split("/");for(;S[0]==="..";)S.shift(),y-=1;a.pathname=S.join("/")}p=y>=0?o[y]:"/"}let m=ny(a,p),v=f&&f!=="/"&&f.endsWith("/"),w=(d||f===".")&&s.endsWith("/");return!m.pathname.endsWith("/")&&(v||w)&&(m.pathname+="/"),m}const gn=n=>n.join("/").replace(/\/\/+/g,"/"),oy=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),sy=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,iy=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function ly(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const kp=["post","put","patch","delete"];new Set(kp);const ay=["get",...kp];new Set(ay);/**
|
|
50
|
+
* React Router v6.30.3
|
|
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
|
+
*/function yo(){return yo=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var s=arguments[o];for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(n[l]=s[l])}return n},yo.apply(this,arguments)}const Qa=x.createContext(null),uy=x.createContext(null),Un=x.createContext(null),ni=x.createContext(null),Gt=x.createContext({outlet:null,matches:[],isDataRoute:!1}),Cp=x.createContext(null);function cy(n,o){let{relative:s}=o===void 0?{}:o;wo()||Me(!1);let{basename:l,navigator:a}=x.useContext(Un),{hash:d,pathname:f,search:p}=Tp(n,{relative:s}),m=f;return l!=="/"&&(m=f==="/"?l:gn([l,f])),a.createHref({pathname:m,search:p,hash:d})}function wo(){return x.useContext(ni)!=null}function ri(){return wo()||Me(!1),x.useContext(ni).location}function _p(n){x.useContext(Un).static||x.useLayoutEffect(n)}function dy(){let{isDataRoute:n}=x.useContext(Gt);return n?Ty():fy()}function fy(){wo()||Me(!1);let n=x.useContext(Qa),{basename:o,future:s,navigator:l}=x.useContext(Un),{matches:a}=x.useContext(Gt),{pathname:d}=ri(),f=JSON.stringify(Sp(a,s.v7_relativeSplatPath)),p=x.useRef(!1);return _p(()=>{p.current=!0}),x.useCallback(function(v,w){if(w===void 0&&(w={}),!p.current)return;if(typeof v=="number"){l.go(v);return}let y=Ep(v,JSON.parse(f),d,w.relative==="path");n==null&&o!=="/"&&(y.pathname=y.pathname==="/"?o:gn([o,y.pathname])),(w.replace?l.replace:l.push)(y,w.state,w)},[o,l,f,d,n])}const py=x.createContext(null);function hy(n){let o=x.useContext(Gt).outlet;return o&&x.createElement(py.Provider,{value:n},o)}function Xa(){let{matches:n}=x.useContext(Gt),o=n[n.length-1];return o?o.params:{}}function Tp(n,o){let{relative:s}=o===void 0?{}:o,{future:l}=x.useContext(Un),{matches:a}=x.useContext(Gt),{pathname:d}=ri(),f=JSON.stringify(Sp(a,l.v7_relativeSplatPath));return x.useMemo(()=>Ep(n,JSON.parse(f),d,s==="path"),[n,f,d,s])}function my(n,o){return vy(n,o)}function vy(n,o,s,l){wo()||Me(!1);let{navigator:a}=x.useContext(Un),{matches:d}=x.useContext(Gt),f=d[d.length-1],p=f?f.params:{};f&&f.pathname;let m=f?f.pathnameBase:"/";f&&f.route;let v=ri(),w;if(o){var y;let C=typeof o=="string"?kr(o):o;m==="/"||(y=C.pathname)!=null&&y.startsWith(m)||Me(!1),w=C}else w=v;let S=w.pathname||"/",N=S;if(m!=="/"){let C=m.replace(/^\//,"").split("/");N="/"+S.replace(/^\//,"").split("/").slice(C.length).join("/")}let R=Fg(n,{pathname:N}),T=Sy(R&&R.map(C=>Object.assign({},C,{params:Object.assign({},p,C.params),pathname:gn([m,a.encodeLocation?a.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?m:gn([m,a.encodeLocation?a.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),d,s,l);return o&&T?x.createElement(ni.Provider,{value:{location:yo({pathname:"/",search:"",hash:"",state:null,key:"default"},w),navigationType:mn.Pop}},T):T}function gy(){let n=_y(),o=ly(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},o),s?x.createElement("pre",{style:a},s):null,null)}const yy=x.createElement(gy,null);class xy extends x.Component{constructor(o){super(o),this.state={location:o.location,revalidation:o.revalidation,error:o.error}}static getDerivedStateFromError(o){return{error:o}}static getDerivedStateFromProps(o,s){return s.location!==o.location||s.revalidation!=="idle"&&o.revalidation==="idle"?{error:o.error,location:o.location,revalidation:o.revalidation}:{error:o.error!==void 0?o.error:s.error,location:s.location,revalidation:o.revalidation||s.revalidation}}componentDidCatch(o,s){console.error("React Router caught the following error during render",o,s)}render(){return this.state.error!==void 0?x.createElement(Gt.Provider,{value:this.props.routeContext},x.createElement(Cp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function wy(n){let{routeContext:o,match:s,children:l}=n,a=x.useContext(Qa);return a&&a.static&&a.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=s.route.id),x.createElement(Gt.Provider,{value:o},l)}function Sy(n,o,s,l){var a;if(o===void 0&&(o=[]),s===void 0&&(s=null),l===void 0&&(l=null),n==null){var d;if(!s)return null;if(s.errors)n=s.matches;else if((d=l)!=null&&d.v7_partialHydration&&o.length===0&&!s.initialized&&s.matches.length>0)n=s.matches;else return null}let f=n,p=(a=s)==null?void 0:a.errors;if(p!=null){let w=f.findIndex(y=>y.route.id&&(p==null?void 0:p[y.route.id])!==void 0);w>=0||Me(!1),f=f.slice(0,Math.min(f.length,w+1))}let m=!1,v=-1;if(s&&l&&l.v7_partialHydration)for(let w=0;w<f.length;w++){let y=f[w];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(v=w),y.route.id){let{loaderData:S,errors:N}=s,R=y.route.loader&&S[y.route.id]===void 0&&(!N||N[y.route.id]===void 0);if(y.route.lazy||R){m=!0,v>=0?f=f.slice(0,v+1):f=[f[0]];break}}}return f.reduceRight((w,y,S)=>{let N,R=!1,T=null,C=null;s&&(N=p&&y.route.id?p[y.route.id]:void 0,T=y.route.errorElement||yy,m&&(v<0&&S===0?(Ny("route-fallback"),R=!0,C=null):v===S&&(R=!0,C=y.route.hydrateFallbackElement||null)));let $=o.concat(f.slice(0,S+1)),F=()=>{let L;return N?L=T:R?L=C:y.route.Component?L=x.createElement(y.route.Component,null):y.route.element?L=y.route.element:L=w,x.createElement(wy,{match:y,routeContext:{outlet:w,matches:$,isDataRoute:s!=null},children:L})};return s&&(y.route.ErrorBoundary||y.route.errorElement||S===0)?x.createElement(xy,{location:s.location,revalidation:s.revalidation,component:T,error:N,children:F(),routeContext:{outlet:null,matches:$,isDataRoute:!0}}):F()},null)}var Np=(function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n})(Np||{}),Rp=(function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n})(Rp||{});function Ey(n){let o=x.useContext(Qa);return o||Me(!1),o}function ky(n){let o=x.useContext(uy);return o||Me(!1),o}function Cy(n){let o=x.useContext(Gt);return o||Me(!1),o}function Pp(n){let o=Cy(),s=o.matches[o.matches.length-1];return s.route.id||Me(!1),s.route.id}function _y(){var n;let o=x.useContext(Cp),s=ky(),l=Pp();return o!==void 0?o:(n=s.errors)==null?void 0:n[l]}function Ty(){let{router:n}=Ey(Np.UseNavigateStable),o=Pp(Rp.UseNavigateStable),s=x.useRef(!1);return _p(()=>{s.current=!0}),x.useCallback(function(a,d){d===void 0&&(d={}),s.current&&(typeof a=="number"?n.navigate(a):n.navigate(a,yo({fromRouteId:o},d)))},[n,o])}const Of={};function Ny(n,o,s){Of[n]||(Of[n]=!0)}function Ry(n,o){n==null||n.v7_startTransition,n==null||n.v7_relativeSplatPath}function Py(n){return hy(n.context)}function ba(n){Me(!1)}function jy(n){let{basename:o="/",children:s=null,location:l,navigationType:a=mn.Pop,navigator:d,static:f=!1,future:p}=n;wo()&&Me(!1);let m=o.replace(/^\/*/,"/"),v=x.useMemo(()=>({basename:m,navigator:d,static:f,future:yo({v7_relativeSplatPath:!1},p)}),[m,p,d,f]);typeof l=="string"&&(l=kr(l));let{pathname:w="/",search:y="",hash:S="",state:N=null,key:R="default"}=l,T=x.useMemo(()=>{let C=Ya(w,m);return C==null?null:{location:{pathname:C,search:y,hash:S,state:N,key:R},navigationType:a}},[m,w,y,S,N,R,a]);return T==null?null:x.createElement(Un.Provider,{value:v},x.createElement(ni.Provider,{children:s,value:T}))}function by(n){let{children:o,location:s}=n;return my(Ia(o),s)}new Promise(()=>{});function Ia(n,o){o===void 0&&(o=[]);let s=[];return x.Children.forEach(n,(l,a)=>{if(!x.isValidElement(l))return;let d=[...o,a];if(l.type===x.Fragment){s.push.apply(s,Ia(l.props.children,d));return}l.type!==ba&&Me(!1),!l.props.index||!l.props.children||Me(!1);let f={id:l.props.id||d.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,loader:l.props.loader,action:l.props.action,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(f.children=Ia(l.props.children,d)),s.push(f)}),s}/**
|
|
59
|
+
* React Router DOM v6.30.3
|
|
60
|
+
*
|
|
61
|
+
* Copyright (c) Remix Software Inc.
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the MIT license found in the
|
|
64
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
65
|
+
*
|
|
66
|
+
* @license MIT
|
|
67
|
+
*/function Oa(){return Oa=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var s=arguments[o];for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(n[l]=s[l])}return n},Oa.apply(this,arguments)}function Iy(n,o){if(n==null)return{};var s={},l=Object.keys(n),a,d;for(d=0;d<l.length;d++)a=l[d],!(o.indexOf(a)>=0)&&(s[a]=n[a]);return s}function Oy(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Ay(n,o){return n.button===0&&(!o||o==="_self")&&!Oy(n)}const Ly=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Dy="6";try{window.__reactRouterVersion=Dy}catch{}const My="startTransition",Af=ti[My];function zy(n){let{basename:o,children:s,future:l,window:a}=n,d=x.useRef();d.current==null&&(d.current=Dg({window:a,v5Compat:!0}));let f=d.current,[p,m]=x.useState({action:f.action,location:f.location}),{v7_startTransition:v}=l||{},w=x.useCallback(y=>{v&&Af?Af(()=>m(y)):m(y)},[m,v]);return x.useLayoutEffect(()=>f.listen(w),[f,w]),x.useEffect(()=>Ry(l),[l]),x.createElement(jy,{basename:o,children:s,location:p.location,navigationType:p.action,navigator:f,future:l})}const Fy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$y=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yn=x.forwardRef(function(o,s){let{onClick:l,relative:a,reloadDocument:d,replace:f,state:p,target:m,to:v,preventScrollReset:w,viewTransition:y}=o,S=Iy(o,Ly),{basename:N}=x.useContext(Un),R,T=!1;if(typeof v=="string"&&$y.test(v)&&(R=v,Fy))try{let L=new URL(window.location.href),B=v.startsWith("//")?new URL(L.protocol+v):new URL(v),ne=Ya(B.pathname,N);B.origin===L.origin&&ne!=null?v=ne+B.search+B.hash:T=!0}catch{}let C=cy(v,{relative:a}),$=Uy(v,{replace:f,state:p,target:m,preventScrollReset:w,relative:a,viewTransition:y});function F(L){l&&l(L),L.defaultPrevented||$(L)}return x.createElement("a",Oa({},S,{href:R||C,onClick:T||d?l:F,ref:s,target:m}))});var Lf;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(Lf||(Lf={}));var Df;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(Df||(Df={}));function Uy(n,o){let{target:s,replace:l,state:a,preventScrollReset:d,relative:f,viewTransition:p}=o===void 0?{}:o,m=dy(),v=ri(),w=Tp(n,{relative:f});return x.useCallback(y=>{if(Ay(y,s)){y.preventDefault();let S=l!==void 0?l:Hs(v)===Hs(w);m(n,{replace:S,state:a,preventScrollReset:d,relative:f,viewTransition:p})}},[v,m,w,l,a,s,n,d,f,p])}/**
|
|
68
|
+
* @license lucide-react v0.563.0 - ISC
|
|
69
|
+
*
|
|
70
|
+
* This source code is licensed under the ISC license.
|
|
71
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
+
*/const jp=(...n)=>n.filter((o,s,l)=>!!o&&o.trim()!==""&&l.indexOf(o)===s).join(" ").trim();/**
|
|
73
|
+
* @license lucide-react v0.563.0 - ISC
|
|
74
|
+
*
|
|
75
|
+
* This source code is licensed under the ISC license.
|
|
76
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
+
*/const By=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
78
|
+
* @license lucide-react v0.563.0 - ISC
|
|
79
|
+
*
|
|
80
|
+
* This source code is licensed under the ISC license.
|
|
81
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
+
*/const Vy=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,s,l)=>l?l.toUpperCase():s.toLowerCase());/**
|
|
83
|
+
* @license lucide-react v0.563.0 - ISC
|
|
84
|
+
*
|
|
85
|
+
* This source code is licensed under the ISC license.
|
|
86
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
+
*/const Mf=n=>{const o=Vy(n);return o.charAt(0).toUpperCase()+o.slice(1)};/**
|
|
88
|
+
* @license lucide-react v0.563.0 - ISC
|
|
89
|
+
*
|
|
90
|
+
* This source code is licensed under the ISC license.
|
|
91
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
+
*/var Wy={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"};/**
|
|
93
|
+
* @license lucide-react v0.563.0 - ISC
|
|
94
|
+
*
|
|
95
|
+
* This source code is licensed under the ISC license.
|
|
96
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
+
*/const Hy=n=>{for(const o in n)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};/**
|
|
98
|
+
* @license lucide-react v0.563.0 - ISC
|
|
99
|
+
*
|
|
100
|
+
* This source code is licensed under the ISC license.
|
|
101
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
102
|
+
*/const Gy=x.forwardRef(({color:n="currentColor",size:o=24,strokeWidth:s=2,absoluteStrokeWidth:l,className:a="",children:d,iconNode:f,...p},m)=>x.createElement("svg",{ref:m,...Wy,width:o,height:o,stroke:n,strokeWidth:l?Number(s)*24/Number(o):s,className:jp("lucide",a),...!d&&!Hy(p)&&{"aria-hidden":"true"},...p},[...f.map(([v,w])=>x.createElement(v,w)),...Array.isArray(d)?d:[d]]));/**
|
|
103
|
+
* @license lucide-react v0.563.0 - ISC
|
|
104
|
+
*
|
|
105
|
+
* This source code is licensed under the ISC license.
|
|
106
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
107
|
+
*/const Bn=(n,o)=>{const s=x.forwardRef(({className:l,...a},d)=>x.createElement(Gy,{ref:d,iconNode:o,className:jp(`lucide-${By(Mf(n))}`,`lucide-${n}`,l),...a}));return s.displayName=Mf(n),s};/**
|
|
108
|
+
* @license lucide-react v0.563.0 - ISC
|
|
109
|
+
*
|
|
110
|
+
* This source code is licensed under the ISC license.
|
|
111
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
112
|
+
*/const Ky=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Yy=Bn("chevron-down",Ky);/**
|
|
113
|
+
* @license lucide-react v0.563.0 - ISC
|
|
114
|
+
*
|
|
115
|
+
* This source code is licensed under the ISC license.
|
|
116
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
+
*/const Qy=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],bp=Bn("chevron-right",Qy);/**
|
|
118
|
+
* @license lucide-react v0.563.0 - ISC
|
|
119
|
+
*
|
|
120
|
+
* This source code is licensed under the ISC license.
|
|
121
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
+
*/const Xy=[["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"}]],Ip=Bn("circle-alert",Xy);/**
|
|
123
|
+
* @license lucide-react v0.563.0 - ISC
|
|
124
|
+
*
|
|
125
|
+
* This source code is licensed under the ISC license.
|
|
126
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
127
|
+
*/const Jy=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Op=Bn("circle-check-big",Jy);/**
|
|
128
|
+
* @license lucide-react v0.563.0 - ISC
|
|
129
|
+
*
|
|
130
|
+
* This source code is licensed under the ISC license.
|
|
131
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
+
*/const qy=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],zf=Bn("circle",qy);/**
|
|
133
|
+
* @license lucide-react v0.563.0 - ISC
|
|
134
|
+
*
|
|
135
|
+
* This source code is licensed under the ISC license.
|
|
136
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
+
*/const Zy=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Ff=Bn("house",Zy);/**
|
|
138
|
+
* @license lucide-react v0.563.0 - ISC
|
|
139
|
+
*
|
|
140
|
+
* This source code is licensed under the ISC license.
|
|
141
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
142
|
+
*/const ex=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],tx=Bn("x",ex);function nx(){const n=Xa(),o=[{label:"Epics",href:"/"}];return n.slug?o.push({label:n.slug}):n.epicSlug&&n.storySlug&&(o.push({label:n.epicSlug,href:`/epic/${n.epicSlug}`}),o.push({label:n.storySlug})),g.jsx("nav",{"aria-label":"Breadcrumb",className:"flex items-center gap-2 text-sm",children:o.map((s,l)=>{const a=l===o.length-1;return g.jsxs("span",{className:"flex items-center gap-2",children:[l>0&&g.jsx(bp,{className:"h-4 w-4 text-text-muted","aria-hidden":!0}),s.href&&!a?g.jsx(yn,{to:s.href,className:"text-text-muted hover:text-primary transition-colors",children:l===0?g.jsxs("span",{className:"flex items-center gap-1",children:[g.jsx(Ff,{className:"h-4 w-4"}),s.label]}):s.label}):g.jsx("span",{className:a?"text-text font-medium":"text-text-muted",children:l===0?g.jsxs("span",{className:"flex items-center gap-1",children:[g.jsx(Ff,{className:"h-4 w-4"}),s.label]}):s.label})]},s.label)})})}const rx=1,ox=1e6;let pa=0;function sx(){return pa=(pa+1)%Number.MAX_SAFE_INTEGER,pa.toString()}const ha=new Map,$f=n=>{if(ha.has(n))return;const o=setTimeout(()=>{ha.delete(n),vo({type:"REMOVE_TOAST",toastId:n})},ox);ha.set(n,o)},ix=(n,o)=>{switch(o.type){case"ADD_TOAST":return{...n,toasts:[o.toast,...n.toasts].slice(0,rx)};case"UPDATE_TOAST":return{...n,toasts:n.toasts.map(s=>s.id===o.toast.id?{...s,...o.toast}:s)};case"DISMISS_TOAST":{const{toastId:s}=o;return s?$f(s):n.toasts.forEach(l=>{$f(l.id)}),{...n,toasts:n.toasts.map(l=>l.id===s||s===void 0?{...l,open:!1}:l)}}case"REMOVE_TOAST":return o.toastId===void 0?{...n,toasts:[]}:{...n,toasts:n.toasts.filter(s=>s.id!==o.toastId)}}},$s=[];let Us={toasts:[]};function vo(n){Us=ix(Us,n),$s.forEach(o=>{o(Us)})}function oi({...n}){const o=sx(),s=a=>vo({type:"UPDATE_TOAST",toast:{...a,id:o}}),l=()=>vo({type:"DISMISS_TOAST",toastId:o});return vo({type:"ADD_TOAST",toast:{...n,id:o,open:!0,onOpenChange:a=>{a||l()}}}),{id:o,dismiss:l,update:s}}function lx(){const[n,o]=x.useState(Us);return x.useEffect(()=>($s.push(o),()=>{const s=$s.indexOf(o);s>-1&&$s.splice(s,1)}),[n]),{...n,toast:oi,dismiss:s=>vo({type:"DISMISS_TOAST",toastId:s})}}function be(n,o,{checkForDefaultPrevented:s=!0}={}){return function(a){if(n==null||n(a),s===!1||!a.defaultPrevented)return o==null?void 0:o(a)}}function Uf(n,o){if(typeof n=="function")return n(o);n!=null&&(n.current=o)}function Ja(...n){return o=>{let s=!1;const l=n.map(a=>{const d=Uf(a,o);return!s&&typeof d=="function"&&(s=!0),d});if(s)return()=>{for(let a=0;a<l.length;a++){const d=l[a];typeof d=="function"?d():Uf(n[a],null)}}}}function Ht(...n){return x.useCallback(Ja(...n),n)}function So(n,o=[]){let s=[];function l(d,f){const p=x.createContext(f),m=s.length;s=[...s,f];const v=y=>{var $;const{scope:S,children:N,...R}=y,T=(($=S==null?void 0:S[n])==null?void 0:$[m])||p,C=x.useMemo(()=>R,Object.values(R));return g.jsx(T.Provider,{value:C,children:N})};v.displayName=d+"Provider";function w(y,S){var T;const N=((T=S==null?void 0:S[n])==null?void 0:T[m])||p,R=x.useContext(N);if(R)return R;if(f!==void 0)return f;throw new Error(`\`${y}\` must be used within \`${d}\``)}return[v,w]}const a=()=>{const d=s.map(f=>x.createContext(f));return function(p){const m=(p==null?void 0:p[n])||d;return x.useMemo(()=>({[`__scope${n}`]:{...p,[n]:m}}),[p,m])}};return a.scopeName=n,[l,ax(a,...o)]}function ax(...n){const o=n[0];if(n.length===1)return o;const s=()=>{const l=n.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(d){const f=l.reduce((p,{useScope:m,scopeName:v})=>{const y=m(d)[`__scope${v}`];return{...p,...y}},{});return x.useMemo(()=>({[`__scope${o.scopeName}`]:f}),[f])}};return s.scopeName=o.scopeName,s}function Aa(n){const o=ux(n),s=x.forwardRef((l,a)=>{const{children:d,...f}=l,p=x.Children.toArray(d),m=p.find(dx);if(m){const v=m.props.children,w=p.map(y=>y===m?x.Children.count(v)>1?x.Children.only(null):x.isValidElement(v)?v.props.children:null:y);return g.jsx(o,{...f,ref:a,children:x.isValidElement(v)?x.cloneElement(v,void 0,w):null})}return g.jsx(o,{...f,ref:a,children:d})});return s.displayName=`${n}.Slot`,s}function ux(n){const o=x.forwardRef((s,l)=>{const{children:a,...d}=s;if(x.isValidElement(a)){const f=px(a),p=fx(d,a.props);return a.type!==x.Fragment&&(p.ref=l?Ja(l,f):f),x.cloneElement(a,p)}return x.Children.count(a)>1?x.Children.only(null):null});return o.displayName=`${n}.SlotClone`,o}var cx=Symbol("radix.slottable");function dx(n){return x.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===cx}function fx(n,o){const s={...o};for(const l in o){const a=n[l],d=o[l];/^on[A-Z]/.test(l)?a&&d?s[l]=(...p)=>{const m=d(...p);return a(...p),m}:a&&(s[l]=a):l==="style"?s[l]={...a,...d}:l==="className"&&(s[l]=[a,d].filter(Boolean).join(" "))}return{...n,...s}}function px(n){var l,a;let o=(l=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:l.get,s=o&&"isReactWarning"in o&&o.isReactWarning;return s?n.ref:(o=(a=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:a.get,s=o&&"isReactWarning"in o&&o.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function Ap(n){const o=n+"CollectionProvider",[s,l]=So(o),[a,d]=s(o,{collectionRef:{current:null},itemMap:new Map}),f=T=>{const{scope:C,children:$}=T,F=Ut.useRef(null),L=Ut.useRef(new Map).current;return g.jsx(a,{scope:C,itemMap:L,collectionRef:F,children:$})};f.displayName=o;const p=n+"CollectionSlot",m=Aa(p),v=Ut.forwardRef((T,C)=>{const{scope:$,children:F}=T,L=d(p,$),B=Ht(C,L.collectionRef);return g.jsx(m,{ref:B,children:F})});v.displayName=p;const w=n+"CollectionItemSlot",y="data-radix-collection-item",S=Aa(w),N=Ut.forwardRef((T,C)=>{const{scope:$,children:F,...L}=T,B=Ut.useRef(null),ne=Ht(C,B),te=d(w,$);return Ut.useEffect(()=>(te.itemMap.set(B,{ref:B,...L}),()=>void te.itemMap.delete(B))),g.jsx(S,{[y]:"",ref:ne,children:F})});N.displayName=w;function R(T){const C=d(n+"CollectionConsumer",T);return Ut.useCallback(()=>{const F=C.collectionRef.current;if(!F)return[];const L=Array.from(F.querySelectorAll(`[${y}]`));return Array.from(C.itemMap.values()).sort((te,Z)=>L.indexOf(te.ref.current)-L.indexOf(Z.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:f,Slot:v,ItemSlot:N},R,l]}var hx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ue=hx.reduce((n,o)=>{const s=Aa(`Primitive.${o}`),l=x.forwardRef((a,d)=>{const{asChild:f,...p}=a,m=f?s:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(m,{...p,ref:d})});return l.displayName=`Primitive.${o}`,{...n,[o]:l}},{});function Lp(n,o){n&&Ga.flushSync(()=>n.dispatchEvent(o))}function xn(n){const o=x.useRef(n);return x.useEffect(()=>{o.current=n}),x.useMemo(()=>(...s)=>{var l;return(l=o.current)==null?void 0:l.call(o,...s)},[])}function mx(n,o=globalThis==null?void 0:globalThis.document){const s=xn(n);x.useEffect(()=>{const l=a=>{a.key==="Escape"&&s(a)};return o.addEventListener("keydown",l,{capture:!0}),()=>o.removeEventListener("keydown",l,{capture:!0})},[s,o])}var vx="DismissableLayer",La="dismissableLayer.update",gx="dismissableLayer.pointerDownOutside",yx="dismissableLayer.focusOutside",Bf,Dp=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mp=x.forwardRef((n,o)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:d,onInteractOutside:f,onDismiss:p,...m}=n,v=x.useContext(Dp),[w,y]=x.useState(null),S=(w==null?void 0:w.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,N]=x.useState({}),R=Ht(o,Z=>y(Z)),T=Array.from(v.layers),[C]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),$=T.indexOf(C),F=w?T.indexOf(w):-1,L=v.layersWithOutsidePointerEventsDisabled.size>0,B=F>=$,ne=wx(Z=>{const V=Z.target,xe=[...v.branches].some(Ne=>Ne.contains(V));!B||xe||(a==null||a(Z),f==null||f(Z),Z.defaultPrevented||p==null||p())},S),te=Sx(Z=>{const V=Z.target;[...v.branches].some(Ne=>Ne.contains(V))||(d==null||d(Z),f==null||f(Z),Z.defaultPrevented||p==null||p())},S);return mx(Z=>{F===v.layers.size-1&&(l==null||l(Z),!Z.defaultPrevented&&p&&(Z.preventDefault(),p()))},S),x.useEffect(()=>{if(w)return s&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(Bf=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(w)),v.layers.add(w),Vf(),()=>{s&&v.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=Bf)}},[w,S,s,v]),x.useEffect(()=>()=>{w&&(v.layers.delete(w),v.layersWithOutsidePointerEventsDisabled.delete(w),Vf())},[w,v]),x.useEffect(()=>{const Z=()=>N({});return document.addEventListener(La,Z),()=>document.removeEventListener(La,Z)},[]),g.jsx(Ue.div,{...m,ref:R,style:{pointerEvents:L?B?"auto":"none":void 0,...n.style},onFocusCapture:be(n.onFocusCapture,te.onFocusCapture),onBlurCapture:be(n.onBlurCapture,te.onBlurCapture),onPointerDownCapture:be(n.onPointerDownCapture,ne.onPointerDownCapture)})});Mp.displayName=vx;var xx="DismissableLayerBranch",zp=x.forwardRef((n,o)=>{const s=x.useContext(Dp),l=x.useRef(null),a=Ht(o,l);return x.useEffect(()=>{const d=l.current;if(d)return s.branches.add(d),()=>{s.branches.delete(d)}},[s.branches]),g.jsx(Ue.div,{...n,ref:a})});zp.displayName=xx;function wx(n,o=globalThis==null?void 0:globalThis.document){const s=xn(n),l=x.useRef(!1),a=x.useRef(()=>{});return x.useEffect(()=>{const d=p=>{if(p.target&&!l.current){let m=function(){Fp(gx,s,v,{discrete:!0})};const v={originalEvent:p};p.pointerType==="touch"?(o.removeEventListener("click",a.current),a.current=m,o.addEventListener("click",a.current,{once:!0})):m()}else o.removeEventListener("click",a.current);l.current=!1},f=window.setTimeout(()=>{o.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(f),o.removeEventListener("pointerdown",d),o.removeEventListener("click",a.current)}},[o,s]),{onPointerDownCapture:()=>l.current=!0}}function Sx(n,o=globalThis==null?void 0:globalThis.document){const s=xn(n),l=x.useRef(!1);return x.useEffect(()=>{const a=d=>{d.target&&!l.current&&Fp(yx,s,{originalEvent:d},{discrete:!1})};return o.addEventListener("focusin",a),()=>o.removeEventListener("focusin",a)},[o,s]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function Vf(){const n=new CustomEvent(La);document.dispatchEvent(n)}function Fp(n,o,s,{discrete:l}){const a=s.originalEvent.target,d=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:s});o&&a.addEventListener(n,o,{once:!0}),l?Lp(a,d):a.dispatchEvent(d)}var Ex=Mp,kx=zp,Fn=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},Cx="Portal",$p=x.forwardRef((n,o)=>{var p;const{container:s,...l}=n,[a,d]=x.useState(!1);Fn(()=>d(!0),[]);const f=s||a&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return f?Lg.createPortal(g.jsx(Ue.div,{...l,ref:o}),f):null});$p.displayName=Cx;function _x(n,o){return x.useReducer((s,l)=>o[s][l]??s,n)}var si=n=>{const{present:o,children:s}=n,l=Tx(o),a=typeof s=="function"?s({present:l.isPresent}):x.Children.only(s),d=Ht(l.ref,Nx(a));return typeof s=="function"||l.isPresent?x.cloneElement(a,{ref:d}):null};si.displayName="Presence";function Tx(n){const[o,s]=x.useState(),l=x.useRef(null),a=x.useRef(n),d=x.useRef("none"),f=n?"mounted":"unmounted",[p,m]=_x(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const v=Ls(l.current);d.current=p==="mounted"?v:"none"},[p]),Fn(()=>{const v=l.current,w=a.current;if(w!==n){const S=d.current,N=Ls(v);n?m("MOUNT"):N==="none"||(v==null?void 0:v.display)==="none"?m("UNMOUNT"):m(w&&S!==N?"ANIMATION_OUT":"UNMOUNT"),a.current=n}},[n,m]),Fn(()=>{if(o){let v;const w=o.ownerDocument.defaultView??window,y=N=>{const T=Ls(l.current).includes(CSS.escape(N.animationName));if(N.target===o&&T&&(m("ANIMATION_END"),!a.current)){const C=o.style.animationFillMode;o.style.animationFillMode="forwards",v=w.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=C)})}},S=N=>{N.target===o&&(d.current=Ls(l.current))};return o.addEventListener("animationstart",S),o.addEventListener("animationcancel",y),o.addEventListener("animationend",y),()=>{w.clearTimeout(v),o.removeEventListener("animationstart",S),o.removeEventListener("animationcancel",y),o.removeEventListener("animationend",y)}}else m("ANIMATION_END")},[o,m]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:x.useCallback(v=>{l.current=v?getComputedStyle(v):null,s(v)},[])}}function Ls(n){return(n==null?void 0:n.animationName)||"none"}function Nx(n){var l,a;let o=(l=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:l.get,s=o&&"isReactWarning"in o&&o.isReactWarning;return s?n.ref:(o=(a=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:a.get,s=o&&"isReactWarning"in o&&o.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var Rx=ti[" useInsertionEffect ".trim().toString()]||Fn;function ii({prop:n,defaultProp:o,onChange:s=()=>{},caller:l}){const[a,d,f]=Px({defaultProp:o,onChange:s}),p=n!==void 0,m=p?n:a;{const w=x.useRef(n!==void 0);x.useEffect(()=>{const y=w.current;y!==p&&console.warn(`${l} is changing from ${y?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),w.current=p},[p,l])}const v=x.useCallback(w=>{var y;if(p){const S=jx(w)?w(n):w;S!==n&&((y=f.current)==null||y.call(f,S))}else d(w)},[p,n,d,f]);return[m,v]}function Px({defaultProp:n,onChange:o}){const[s,l]=x.useState(n),a=x.useRef(s),d=x.useRef(o);return Rx(()=>{d.current=o},[o]),x.useEffect(()=>{var f;a.current!==s&&((f=d.current)==null||f.call(d,s),a.current=s)},[s,a]),[s,l,d]}function jx(n){return typeof n=="function"}var bx=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Ix="VisuallyHidden",qa=x.forwardRef((n,o)=>g.jsx(Ue.span,{...n,ref:o,style:{...bx,...n.style}}));qa.displayName=Ix;var Za="ToastProvider",[eu,Ox,Ax]=Ap("Toast"),[Up]=So("Toast",[Ax]),[Lx,li]=Up(Za),Bp=n=>{const{__scopeToast:o,label:s="Notification",duration:l=5e3,swipeDirection:a="right",swipeThreshold:d=50,children:f}=n,[p,m]=x.useState(null),[v,w]=x.useState(0),y=x.useRef(!1),S=x.useRef(!1);return s.trim()||console.error(`Invalid prop \`label\` supplied to \`${Za}\`. Expected non-empty \`string\`.`),g.jsx(eu.Provider,{scope:o,children:g.jsx(Lx,{scope:o,label:s,duration:l,swipeDirection:a,swipeThreshold:d,toastCount:v,viewport:p,onViewportChange:m,onToastAdd:x.useCallback(()=>w(N=>N+1),[]),onToastRemove:x.useCallback(()=>w(N=>N-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:S,children:f})})};Bp.displayName=Za;var Vp="ToastViewport",Dx=["F8"],Da="toast.viewportPause",Ma="toast.viewportResume",Wp=x.forwardRef((n,o)=>{const{__scopeToast:s,hotkey:l=Dx,label:a="Notifications ({hotkey})",...d}=n,f=li(Vp,s),p=Ox(s),m=x.useRef(null),v=x.useRef(null),w=x.useRef(null),y=x.useRef(null),S=Ht(o,y,f.onViewportChange),N=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=f.toastCount>0;x.useEffect(()=>{const C=$=>{var L;l.length!==0&&l.every(B=>$[B]||$.code===B)&&((L=y.current)==null||L.focus())};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[l]),x.useEffect(()=>{const C=m.current,$=y.current;if(R&&C&&$){const F=()=>{if(!f.isClosePausedRef.current){const te=new CustomEvent(Da);$.dispatchEvent(te),f.isClosePausedRef.current=!0}},L=()=>{if(f.isClosePausedRef.current){const te=new CustomEvent(Ma);$.dispatchEvent(te),f.isClosePausedRef.current=!1}},B=te=>{!C.contains(te.relatedTarget)&&L()},ne=()=>{C.contains(document.activeElement)||L()};return C.addEventListener("focusin",F),C.addEventListener("focusout",B),C.addEventListener("pointermove",F),C.addEventListener("pointerleave",ne),window.addEventListener("blur",F),window.addEventListener("focus",L),()=>{C.removeEventListener("focusin",F),C.removeEventListener("focusout",B),C.removeEventListener("pointermove",F),C.removeEventListener("pointerleave",ne),window.removeEventListener("blur",F),window.removeEventListener("focus",L)}}},[R,f.isClosePausedRef]);const T=x.useCallback(({tabbingDirection:C})=>{const F=p().map(L=>{const B=L.ref.current,ne=[B,...Qx(B)];return C==="forwards"?ne:ne.reverse()});return(C==="forwards"?F.reverse():F).flat()},[p]);return x.useEffect(()=>{const C=y.current;if(C){const $=F=>{var ne,te,Z;const L=F.altKey||F.ctrlKey||F.metaKey;if(F.key==="Tab"&&!L){const V=document.activeElement,xe=F.shiftKey;if(F.target===C&&xe){(ne=v.current)==null||ne.focus();return}const ke=T({tabbingDirection:xe?"backwards":"forwards"}),Re=ke.findIndex(oe=>oe===V);ma(ke.slice(Re+1))?F.preventDefault():xe?(te=v.current)==null||te.focus():(Z=w.current)==null||Z.focus()}};return C.addEventListener("keydown",$),()=>C.removeEventListener("keydown",$)}},[p,T]),g.jsxs(kx,{ref:m,role:"region","aria-label":a.replace("{hotkey}",N),tabIndex:-1,style:{pointerEvents:R?void 0:"none"},children:[R&&g.jsx(za,{ref:v,onFocusFromOutsideViewport:()=>{const C=T({tabbingDirection:"forwards"});ma(C)}}),g.jsx(eu.Slot,{scope:s,children:g.jsx(Ue.ol,{tabIndex:-1,...d,ref:S})}),R&&g.jsx(za,{ref:w,onFocusFromOutsideViewport:()=>{const C=T({tabbingDirection:"backwards"});ma(C)}})]})});Wp.displayName=Vp;var Hp="ToastFocusProxy",za=x.forwardRef((n,o)=>{const{__scopeToast:s,onFocusFromOutsideViewport:l,...a}=n,d=li(Hp,s);return g.jsx(qa,{tabIndex:0,...a,ref:o,style:{position:"fixed"},onFocus:f=>{var v;const p=f.relatedTarget;!((v=d.viewport)!=null&&v.contains(p))&&l()}})});za.displayName=Hp;var Eo="Toast",Mx="toast.swipeStart",zx="toast.swipeMove",Fx="toast.swipeCancel",$x="toast.swipeEnd",Gp=x.forwardRef((n,o)=>{const{forceMount:s,open:l,defaultOpen:a,onOpenChange:d,...f}=n,[p,m]=ii({prop:l,defaultProp:a??!0,onChange:d,caller:Eo});return g.jsx(si,{present:s||p,children:g.jsx(Vx,{open:p,...f,ref:o,onClose:()=>m(!1),onPause:xn(n.onPause),onResume:xn(n.onResume),onSwipeStart:be(n.onSwipeStart,v=>{v.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:be(n.onSwipeMove,v=>{const{x:w,y}=v.detail.delta;v.currentTarget.setAttribute("data-swipe","move"),v.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${w}px`),v.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:be(n.onSwipeCancel,v=>{v.currentTarget.setAttribute("data-swipe","cancel"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),v.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:be(n.onSwipeEnd,v=>{const{x:w,y}=v.detail.delta;v.currentTarget.setAttribute("data-swipe","end"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),v.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${w}px`),v.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),m(!1)})})})});Gp.displayName=Eo;var[Ux,Bx]=Up(Eo,{onClose(){}}),Vx=x.forwardRef((n,o)=>{const{__scopeToast:s,type:l="foreground",duration:a,open:d,onClose:f,onEscapeKeyDown:p,onPause:m,onResume:v,onSwipeStart:w,onSwipeMove:y,onSwipeCancel:S,onSwipeEnd:N,...R}=n,T=li(Eo,s),[C,$]=x.useState(null),F=Ht(o,oe=>$(oe)),L=x.useRef(null),B=x.useRef(null),ne=a||T.duration,te=x.useRef(0),Z=x.useRef(ne),V=x.useRef(0),{onToastAdd:xe,onToastRemove:Ne}=T,Oe=xn(()=>{var ve;(C==null?void 0:C.contains(document.activeElement))&&((ve=T.viewport)==null||ve.focus()),f()}),ke=x.useCallback(oe=>{!oe||oe===1/0||(window.clearTimeout(V.current),te.current=new Date().getTime(),V.current=window.setTimeout(Oe,oe))},[Oe]);x.useEffect(()=>{const oe=T.viewport;if(oe){const ve=()=>{ke(Z.current),v==null||v()},ue=()=>{const pe=new Date().getTime()-te.current;Z.current=Z.current-pe,window.clearTimeout(V.current),m==null||m()};return oe.addEventListener(Da,ue),oe.addEventListener(Ma,ve),()=>{oe.removeEventListener(Da,ue),oe.removeEventListener(Ma,ve)}}},[T.viewport,ne,m,v,ke]),x.useEffect(()=>{d&&!T.isClosePausedRef.current&&ke(ne)},[d,ne,T.isClosePausedRef,ke]),x.useEffect(()=>(xe(),()=>Ne()),[xe,Ne]);const Re=x.useMemo(()=>C?Zp(C):null,[C]);return T.viewport?g.jsxs(g.Fragment,{children:[Re&&g.jsx(Wx,{__scopeToast:s,role:"status","aria-live":l==="foreground"?"assertive":"polite",children:Re}),g.jsx(Ux,{scope:s,onClose:Oe,children:Ga.createPortal(g.jsx(eu.ItemSlot,{scope:s,children:g.jsx(Ex,{asChild:!0,onEscapeKeyDown:be(p,()=>{T.isFocusedToastEscapeKeyDownRef.current||Oe(),T.isFocusedToastEscapeKeyDownRef.current=!1}),children:g.jsx(Ue.li,{tabIndex:0,"data-state":d?"open":"closed","data-swipe-direction":T.swipeDirection,...R,ref:F,style:{userSelect:"none",touchAction:"none",...n.style},onKeyDown:be(n.onKeyDown,oe=>{oe.key==="Escape"&&(p==null||p(oe.nativeEvent),oe.nativeEvent.defaultPrevented||(T.isFocusedToastEscapeKeyDownRef.current=!0,Oe()))}),onPointerDown:be(n.onPointerDown,oe=>{oe.button===0&&(L.current={x:oe.clientX,y:oe.clientY})}),onPointerMove:be(n.onPointerMove,oe=>{if(!L.current)return;const ve=oe.clientX-L.current.x,ue=oe.clientY-L.current.y,pe=!!B.current,O=["left","right"].includes(T.swipeDirection),ee=["left","up"].includes(T.swipeDirection)?Math.min:Math.max,W=O?ee(0,ve):0,P=O?0:ee(0,ue),A=oe.pointerType==="touch"?10:2,J={x:W,y:P},re={originalEvent:oe,delta:J};pe?(B.current=J,Ds(zx,y,re,{discrete:!1})):Wf(J,T.swipeDirection,A)?(B.current=J,Ds(Mx,w,re,{discrete:!1}),oe.target.setPointerCapture(oe.pointerId)):(Math.abs(ve)>A||Math.abs(ue)>A)&&(L.current=null)}),onPointerUp:be(n.onPointerUp,oe=>{const ve=B.current,ue=oe.target;if(ue.hasPointerCapture(oe.pointerId)&&ue.releasePointerCapture(oe.pointerId),B.current=null,L.current=null,ve){const pe=oe.currentTarget,O={originalEvent:oe,delta:ve};Wf(ve,T.swipeDirection,T.swipeThreshold)?Ds($x,N,O,{discrete:!0}):Ds(Fx,S,O,{discrete:!0}),pe.addEventListener("click",ee=>ee.preventDefault(),{once:!0})}})})})}),T.viewport)})]}):null}),Wx=n=>{const{__scopeToast:o,children:s,...l}=n,a=li(Eo,o),[d,f]=x.useState(!1),[p,m]=x.useState(!1);return Kx(()=>f(!0)),x.useEffect(()=>{const v=window.setTimeout(()=>m(!0),1e3);return()=>window.clearTimeout(v)},[]),p?null:g.jsx($p,{asChild:!0,children:g.jsx(qa,{...l,children:d&&g.jsxs(g.Fragment,{children:[a.label," ",s]})})})},Hx="ToastTitle",Kp=x.forwardRef((n,o)=>{const{__scopeToast:s,...l}=n;return g.jsx(Ue.div,{...l,ref:o})});Kp.displayName=Hx;var Gx="ToastDescription",Yp=x.forwardRef((n,o)=>{const{__scopeToast:s,...l}=n;return g.jsx(Ue.div,{...l,ref:o})});Yp.displayName=Gx;var Qp="ToastAction",Xp=x.forwardRef((n,o)=>{const{altText:s,...l}=n;return s.trim()?g.jsx(qp,{altText:s,asChild:!0,children:g.jsx(tu,{...l,ref:o})}):(console.error(`Invalid prop \`altText\` supplied to \`${Qp}\`. Expected non-empty \`string\`.`),null)});Xp.displayName=Qp;var Jp="ToastClose",tu=x.forwardRef((n,o)=>{const{__scopeToast:s,...l}=n,a=Bx(Jp,s);return g.jsx(qp,{asChild:!0,children:g.jsx(Ue.button,{type:"button",...l,ref:o,onClick:be(n.onClick,a.onClose)})})});tu.displayName=Jp;var qp=x.forwardRef((n,o)=>{const{__scopeToast:s,altText:l,...a}=n;return g.jsx(Ue.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":l||void 0,...a,ref:o})});function Zp(n){const o=[];return Array.from(n.childNodes).forEach(l=>{if(l.nodeType===l.TEXT_NODE&&l.textContent&&o.push(l.textContent),Yx(l)){const a=l.ariaHidden||l.hidden||l.style.display==="none",d=l.dataset.radixToastAnnounceExclude==="";if(!a)if(d){const f=l.dataset.radixToastAnnounceAlt;f&&o.push(f)}else o.push(...Zp(l))}}),o}function Ds(n,o,s,{discrete:l}){const a=s.originalEvent.currentTarget,d=new CustomEvent(n,{bubbles:!0,cancelable:!0,detail:s});o&&a.addEventListener(n,o,{once:!0}),l?Lp(a,d):a.dispatchEvent(d)}var Wf=(n,o,s=0)=>{const l=Math.abs(n.x),a=Math.abs(n.y),d=l>a;return o==="left"||o==="right"?d&&l>s:!d&&a>s};function Kx(n=()=>{}){const o=xn(n);Fn(()=>{let s=0,l=0;return s=window.requestAnimationFrame(()=>l=window.requestAnimationFrame(o)),()=>{window.cancelAnimationFrame(s),window.cancelAnimationFrame(l)}},[o])}function Yx(n){return n.nodeType===n.ELEMENT_NODE}function Qx(n){const o=[],s=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const a=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||a?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)o.push(s.currentNode);return o}function ma(n){const o=document.activeElement;return n.some(s=>s===o?!0:(s.focus(),document.activeElement!==o))}var Xx=Bp,eh=Wp,th=Gp,nh=Kp,rh=Yp,oh=Xp,sh=tu;function ih(n){var o,s,l="";if(typeof n=="string"||typeof n=="number")l+=n;else if(typeof n=="object")if(Array.isArray(n)){var a=n.length;for(o=0;o<a;o++)n[o]&&(s=ih(n[o]))&&(l&&(l+=" "),l+=s)}else for(s in n)n[s]&&(l&&(l+=" "),l+=s);return l}function lh(){for(var n,o,s=0,l="",a=arguments.length;s<a;s++)(n=arguments[s])&&(o=ih(n))&&(l&&(l+=" "),l+=o);return l}const Hf=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Gf=lh,ah=(n,o)=>s=>{var l;if((o==null?void 0:o.variants)==null)return Gf(n,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:a,defaultVariants:d}=o,f=Object.keys(a).map(v=>{const w=s==null?void 0:s[v],y=d==null?void 0:d[v];if(w===null)return null;const S=Hf(w)||Hf(y);return a[v][S]}),p=s&&Object.entries(s).reduce((v,w)=>{let[y,S]=w;return S===void 0||(v[y]=S),v},{}),m=o==null||(l=o.compoundVariants)===null||l===void 0?void 0:l.reduce((v,w)=>{let{class:y,className:S,...N}=w;return Object.entries(N).every(R=>{let[T,C]=R;return Array.isArray(C)?C.includes({...d,...p}[T]):{...d,...p}[T]===C})?[...v,y,S]:v},[]);return Gf(n,f,m,s==null?void 0:s.class,s==null?void 0:s.className)},Jx=(n,o)=>{const s=new Array(n.length+o.length);for(let l=0;l<n.length;l++)s[l]=n[l];for(let l=0;l<o.length;l++)s[n.length+l]=o[l];return s},qx=(n,o)=>({classGroupId:n,validator:o}),uh=(n=new Map,o=null,s)=>({nextPart:n,validators:o,classGroupId:s}),Gs="-",Kf=[],Zx="arbitrary..",e0=n=>{const o=n0(n),{conflictingClassGroups:s,conflictingClassGroupModifiers:l}=n;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return t0(f);const p=f.split(Gs),m=p[0]===""&&p.length>1?1:0;return ch(p,m,o)},getConflictingClassGroupIds:(f,p)=>{if(p){const m=l[f],v=s[f];return m?v?Jx(v,m):m:v||Kf}return s[f]||Kf}}},ch=(n,o,s)=>{if(n.length-o===0)return s.classGroupId;const a=n[o],d=s.nextPart.get(a);if(d){const v=ch(n,o+1,d);if(v)return v}const f=s.validators;if(f===null)return;const p=o===0?n.join(Gs):n.slice(o).join(Gs),m=f.length;for(let v=0;v<m;v++){const w=f[v];if(w.validator(p))return w.classGroupId}},t0=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const o=n.slice(1,-1),s=o.indexOf(":"),l=o.slice(0,s);return l?Zx+l:void 0})(),n0=n=>{const{theme:o,classGroups:s}=n;return r0(s,o)},r0=(n,o)=>{const s=uh();for(const l in n){const a=n[l];nu(a,s,l,o)}return s},nu=(n,o,s,l)=>{const a=n.length;for(let d=0;d<a;d++){const f=n[d];o0(f,o,s,l)}},o0=(n,o,s,l)=>{if(typeof n=="string"){s0(n,o,s);return}if(typeof n=="function"){i0(n,o,s,l);return}l0(n,o,s,l)},s0=(n,o,s)=>{const l=n===""?o:dh(o,n);l.classGroupId=s},i0=(n,o,s,l)=>{if(a0(n)){nu(n(l),o,s,l);return}o.validators===null&&(o.validators=[]),o.validators.push(qx(s,n))},l0=(n,o,s,l)=>{const a=Object.entries(n),d=a.length;for(let f=0;f<d;f++){const[p,m]=a[f];nu(m,dh(o,p),s,l)}},dh=(n,o)=>{let s=n;const l=o.split(Gs),a=l.length;for(let d=0;d<a;d++){const f=l[d];let p=s.nextPart.get(f);p||(p=uh(),s.nextPart.set(f,p)),s=p}return s},a0=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,u0=n=>{if(n<1)return{get:()=>{},set:()=>{}};let o=0,s=Object.create(null),l=Object.create(null);const a=(d,f)=>{s[d]=f,o++,o>n&&(o=0,l=s,s=Object.create(null))};return{get(d){let f=s[d];if(f!==void 0)return f;if((f=l[d])!==void 0)return a(d,f),f},set(d,f){d in s?s[d]=f:a(d,f)}}},Fa="!",Yf=":",c0=[],Qf=(n,o,s,l,a)=>({modifiers:n,hasImportantModifier:o,baseClassName:s,maybePostfixModifierPosition:l,isExternal:a}),d0=n=>{const{prefix:o,experimentalParseClassName:s}=n;let l=a=>{const d=[];let f=0,p=0,m=0,v;const w=a.length;for(let T=0;T<w;T++){const C=a[T];if(f===0&&p===0){if(C===Yf){d.push(a.slice(m,T)),m=T+1;continue}if(C==="/"){v=T;continue}}C==="["?f++:C==="]"?f--:C==="("?p++:C===")"&&p--}const y=d.length===0?a:a.slice(m);let S=y,N=!1;y.endsWith(Fa)?(S=y.slice(0,-1),N=!0):y.startsWith(Fa)&&(S=y.slice(1),N=!0);const R=v&&v>m?v-m:void 0;return Qf(d,N,S,R)};if(o){const a=o+Yf,d=l;l=f=>f.startsWith(a)?d(f.slice(a.length)):Qf(c0,!1,f,void 0,!0)}if(s){const a=l;l=d=>s({className:d,parseClassName:a})}return l},f0=n=>{const o=new Map;return n.orderSensitiveModifiers.forEach((s,l)=>{o.set(s,1e6+l)}),s=>{const l=[];let a=[];for(let d=0;d<s.length;d++){const f=s[d],p=f[0]==="[",m=o.has(f);p||m?(a.length>0&&(a.sort(),l.push(...a),a=[]),l.push(f)):a.push(f)}return a.length>0&&(a.sort(),l.push(...a)),l}},p0=n=>({cache:u0(n.cacheSize),parseClassName:d0(n),sortModifiers:f0(n),...e0(n)}),h0=/\s+/,m0=(n,o)=>{const{parseClassName:s,getClassGroupId:l,getConflictingClassGroupIds:a,sortModifiers:d}=o,f=[],p=n.trim().split(h0);let m="";for(let v=p.length-1;v>=0;v-=1){const w=p[v],{isExternal:y,modifiers:S,hasImportantModifier:N,baseClassName:R,maybePostfixModifierPosition:T}=s(w);if(y){m=w+(m.length>0?" "+m:m);continue}let C=!!T,$=l(C?R.substring(0,T):R);if(!$){if(!C){m=w+(m.length>0?" "+m:m);continue}if($=l(R),!$){m=w+(m.length>0?" "+m:m);continue}C=!1}const F=S.length===0?"":S.length===1?S[0]:d(S).join(":"),L=N?F+Fa:F,B=L+$;if(f.indexOf(B)>-1)continue;f.push(B);const ne=a($,C);for(let te=0;te<ne.length;++te){const Z=ne[te];f.push(L+Z)}m=w+(m.length>0?" "+m:m)}return m},v0=(...n)=>{let o=0,s,l,a="";for(;o<n.length;)(s=n[o++])&&(l=fh(s))&&(a&&(a+=" "),a+=l);return a},fh=n=>{if(typeof n=="string")return n;let o,s="";for(let l=0;l<n.length;l++)n[l]&&(o=fh(n[l]))&&(s&&(s+=" "),s+=o);return s},g0=(n,...o)=>{let s,l,a,d;const f=m=>{const v=o.reduce((w,y)=>y(w),n());return s=p0(v),l=s.cache.get,a=s.cache.set,d=p,p(m)},p=m=>{const v=l(m);if(v)return v;const w=m0(m,s);return a(m,w),w};return d=f,(...m)=>d(v0(...m))},y0=[],$e=n=>{const o=s=>s[n]||y0;return o.isThemeGetter=!0,o},ph=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,hh=/^\((?:(\w[\w-]*):)?(.+)\)$/i,x0=/^\d+\/\d+$/,w0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,S0=/\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$/,E0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,k0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,C0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,hr=n=>x0.test(n),ce=n=>!!n&&!Number.isNaN(Number(n)),hn=n=>!!n&&Number.isInteger(Number(n)),va=n=>n.endsWith("%")&&ce(n.slice(0,-1)),$t=n=>w0.test(n),_0=()=>!0,T0=n=>S0.test(n)&&!E0.test(n),mh=()=>!1,N0=n=>k0.test(n),R0=n=>C0.test(n),P0=n=>!Y(n)&&!Q(n),j0=n=>Cr(n,yh,mh),Y=n=>ph.test(n),Dn=n=>Cr(n,xh,T0),ga=n=>Cr(n,L0,ce),Xf=n=>Cr(n,vh,mh),b0=n=>Cr(n,gh,R0),Ms=n=>Cr(n,wh,N0),Q=n=>hh.test(n),ho=n=>_r(n,xh),I0=n=>_r(n,D0),Jf=n=>_r(n,vh),O0=n=>_r(n,yh),A0=n=>_r(n,gh),zs=n=>_r(n,wh,!0),Cr=(n,o,s)=>{const l=ph.exec(n);return l?l[1]?o(l[1]):s(l[2]):!1},_r=(n,o,s=!1)=>{const l=hh.exec(n);return l?l[1]?o(l[1]):s:!1},vh=n=>n==="position"||n==="percentage",gh=n=>n==="image"||n==="url",yh=n=>n==="length"||n==="size"||n==="bg-size",xh=n=>n==="length",L0=n=>n==="number",D0=n=>n==="family-name",wh=n=>n==="shadow",M0=()=>{const n=$e("color"),o=$e("font"),s=$e("text"),l=$e("font-weight"),a=$e("tracking"),d=$e("leading"),f=$e("breakpoint"),p=$e("container"),m=$e("spacing"),v=$e("radius"),w=$e("shadow"),y=$e("inset-shadow"),S=$e("text-shadow"),N=$e("drop-shadow"),R=$e("blur"),T=$e("perspective"),C=$e("aspect"),$=$e("ease"),F=$e("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ne=()=>[...B(),Q,Y],te=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],V=()=>[Q,Y,m],xe=()=>[hr,"full","auto",...V()],Ne=()=>[hn,"none","subgrid",Q,Y],Oe=()=>["auto",{span:["full",hn,Q,Y]},hn,Q,Y],ke=()=>[hn,"auto",Q,Y],Re=()=>["auto","min","max","fr",Q,Y],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ve=()=>["start","end","center","stretch","center-safe","end-safe"],ue=()=>["auto",...V()],pe=()=>[hr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],O=()=>[n,Q,Y],ee=()=>[...B(),Jf,Xf,{position:[Q,Y]}],W=()=>["no-repeat",{repeat:["","x","y","space","round"]}],P=()=>["auto","cover","contain",O0,j0,{size:[Q,Y]}],A=()=>[va,ho,Dn],J=()=>["","none","full",v,Q,Y],re=()=>["",ce,ho,Dn],fe=()=>["solid","dashed","dotted","double"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>[ce,va,Jf,Xf],ge=()=>["","none",R,Q,Y],we=()=>["none",ce,Q,Y],Be=()=>["none",ce,Q,Y],Kt=()=>[ce,Q,Y],En=()=>[hr,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$t],breakpoint:[$t],color:[_0],container:[$t],"drop-shadow":[$t],ease:["in","out","in-out"],font:[P0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$t],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$t],shadow:[$t],spacing:["px",ce],text:[$t],"text-shadow":[$t],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",hr,Y,Q,C]}],container:["container"],columns:[{columns:[ce,Y,Q,p]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"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:ne()}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:xe()}],"inset-x":[{"inset-x":xe()}],"inset-y":[{"inset-y":xe()}],start:[{start:xe()}],end:[{end:xe()}],top:[{top:xe()}],right:[{right:xe()}],bottom:[{bottom:xe()}],left:[{left:xe()}],visibility:["visible","invisible","collapse"],z:[{z:[hn,"auto",Q,Y]}],basis:[{basis:[hr,"full","auto",p,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ce,hr,"auto","initial","none",Y]}],grow:[{grow:["",ce,Q,Y]}],shrink:[{shrink:["",ce,Q,Y]}],order:[{order:[hn,"first","last","none",Q,Y]}],"grid-cols":[{"grid-cols":Ne()}],"col-start-end":[{col:Oe()}],"col-start":[{"col-start":ke()}],"col-end":[{"col-end":ke()}],"grid-rows":[{"grid-rows":Ne()}],"row-start-end":[{row:Oe()}],"row-start":[{"row-start":ke()}],"row-end":[{"row-end":ke()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Re()}],"auto-rows":[{"auto-rows":Re()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...ve(),"normal"]}],"justify-self":[{"justify-self":["auto",...ve()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...ve(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ve(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...ve(),"baseline"]}],"place-self":[{"place-self":["auto",...ve()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:ue()}],mx:[{mx:ue()}],my:[{my:ue()}],ms:[{ms:ue()}],me:[{me:ue()}],mt:[{mt:ue()}],mr:[{mr:ue()}],mb:[{mb:ue()}],ml:[{ml:ue()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:pe()}],w:[{w:[p,"screen",...pe()]}],"min-w":[{"min-w":[p,"screen","none",...pe()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[f]},...pe()]}],h:[{h:["screen","lh",...pe()]}],"min-h":[{"min-h":["screen","lh","none",...pe()]}],"max-h":[{"max-h":["screen","lh",...pe()]}],"font-size":[{text:["base",s,ho,Dn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,Q,ga]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",va,Y]}],"font-family":[{font:[I0,Y,o]}],"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:[a,Q,Y]}],"line-clamp":[{"line-clamp":[ce,"none",Q,ga]}],leading:[{leading:[d,...V()]}],"list-image":[{"list-image":["none",Q,Y]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Q,Y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[ce,"from-font","auto",Q,Dn]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[ce,"auto",Q,Y]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q,Y]}],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",Q,Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ee()}],"bg-repeat":[{bg:W()}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},hn,Q,Y],radial:["",Q,Y],conic:[hn,Q,Y]},A0,b0]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:A()}],"gradient-via-pos":[{via:A()}],"gradient-to-pos":[{to:A()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ce,Q,Y]}],"outline-w":[{outline:["",ce,ho,Dn]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",w,zs,Ms]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",y,zs,Ms]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[ce,Dn]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",S,zs,Ms]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[ce,Q,Y]}],"mix-blend":[{"mix-blend":[...he(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":he()}],"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":[ce]}],"mask-image-linear-from-pos":[{"mask-linear-from":ae()}],"mask-image-linear-to-pos":[{"mask-linear-to":ae()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":ae()}],"mask-image-t-to-pos":[{"mask-t-to":ae()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":ae()}],"mask-image-r-to-pos":[{"mask-r-to":ae()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":ae()}],"mask-image-b-to-pos":[{"mask-b-to":ae()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":ae()}],"mask-image-l-to-pos":[{"mask-l-to":ae()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":ae()}],"mask-image-x-to-pos":[{"mask-x-to":ae()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":ae()}],"mask-image-y-to-pos":[{"mask-y-to":ae()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[Q,Y]}],"mask-image-radial-from-pos":[{"mask-radial-from":ae()}],"mask-image-radial-to-pos":[{"mask-radial-to":ae()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"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":B()}],"mask-image-conic-pos":[{"mask-conic":[ce]}],"mask-image-conic-from-pos":[{"mask-conic-from":ae()}],"mask-image-conic-to-pos":[{"mask-conic-to":ae()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ee()}],"mask-repeat":[{mask:W()}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Q,Y]}],filter:[{filter:["","none",Q,Y]}],blur:[{blur:ge()}],brightness:[{brightness:[ce,Q,Y]}],contrast:[{contrast:[ce,Q,Y]}],"drop-shadow":[{"drop-shadow":["","none",N,zs,Ms]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",ce,Q,Y]}],"hue-rotate":[{"hue-rotate":[ce,Q,Y]}],invert:[{invert:["",ce,Q,Y]}],saturate:[{saturate:[ce,Q,Y]}],sepia:[{sepia:["",ce,Q,Y]}],"backdrop-filter":[{"backdrop-filter":["","none",Q,Y]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[ce,Q,Y]}],"backdrop-contrast":[{"backdrop-contrast":[ce,Q,Y]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ce,Q,Y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ce,Q,Y]}],"backdrop-invert":[{"backdrop-invert":["",ce,Q,Y]}],"backdrop-opacity":[{"backdrop-opacity":[ce,Q,Y]}],"backdrop-saturate":[{"backdrop-saturate":[ce,Q,Y]}],"backdrop-sepia":[{"backdrop-sepia":["",ce,Q,Y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Q,Y]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ce,"initial",Q,Y]}],ease:[{ease:["linear","initial",$,Q,Y]}],delay:[{delay:[ce,Q,Y]}],animate:[{animate:["none",F,Q,Y]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,Q,Y]}],"perspective-origin":[{"perspective-origin":ne()}],rotate:[{rotate:we()}],"rotate-x":[{"rotate-x":we()}],"rotate-y":[{"rotate-y":we()}],"rotate-z":[{"rotate-z":we()}],scale:[{scale:Be()}],"scale-x":[{"scale-x":Be()}],"scale-y":[{"scale-y":Be()}],"scale-z":[{"scale-z":Be()}],"scale-3d":["scale-3d"],skew:[{skew:Kt()}],"skew-x":[{"skew-x":Kt()}],"skew-y":[{"skew-y":Kt()}],transform:[{transform:[Q,Y,"","none","gpu","cpu"]}],"transform-origin":[{origin:ne()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:En()}],"translate-x":[{"translate-x":En()}],"translate-y":[{"translate-y":En()}],"translate-z":[{"translate-z":En()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"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",Q,Y]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"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",Q,Y]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[ce,ho,Dn,ga]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","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-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},z0=g0(M0);function Ye(...n){return z0(lh(n))}const F0=Xx,Sh=x.forwardRef(({className:n,...o},s)=>g.jsx(eh,{ref:s,className:Ye("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",n),...o}));Sh.displayName=eh.displayName;const $0=ah("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Eh=x.forwardRef(({className:n,variant:o,...s},l)=>g.jsx(th,{ref:l,className:Ye($0({variant:o}),n),...s}));Eh.displayName=th.displayName;const kh=x.forwardRef(({className:n,...o},s)=>g.jsx(oh,{ref:s,className:Ye("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",n),...o}));kh.displayName=oh.displayName;const Ch=x.forwardRef(({className:n,...o},s)=>g.jsx(sh,{ref:s,className:Ye("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",n),"toast-close":"",...o,children:g.jsx(tx,{className:"h-4 w-4"})}));Ch.displayName=sh.displayName;const _h=x.forwardRef(({className:n,...o},s)=>g.jsx(nh,{ref:s,className:Ye("text-sm font-semibold",n),...o}));_h.displayName=nh.displayName;const Th=x.forwardRef(({className:n,...o},s)=>g.jsx(rh,{ref:s,className:Ye("text-sm opacity-90",n),...o}));Th.displayName=rh.displayName;function U0(){const{toasts:n}=lx();return g.jsxs(F0,{children:[n.map(function({id:o,title:s,description:l,action:a,...d}){return g.jsxs(Eh,{...d,children:[g.jsxs("div",{className:"grid gap-1",children:[s&&g.jsx(_h,{children:s}),l&&g.jsx(Th,{children:l})]}),a,g.jsx(Ch,{})]},o)}),g.jsx(Sh,{})]})}var B0=x.useLayoutEffect;function V0(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function W0(){const n=V0();if(n.__xstate__)return n.__xstate__}const H0=n=>{if(typeof window>"u")return;const o=W0();o&&o.register(n)};class qf{constructor(o){this._process=o,this._active=!1,this._current=null,this._last=null}start(){this._active=!0,this.flush()}clear(){this._current&&(this._current.next=null,this._last=this._current)}enqueue(o){const s={value:o,next:null};if(this._current){this._last.next=s,this._last=s;return}this._current=s,this._last=s,this._active&&this.flush()}flush(){for(;this._current;){const o=this._current;this._process(o.value),this._current=o.next}this._last=null}}const Nh=".",G0="",Rh="",K0="#",Y0="*",Ph="xstate.init",Q0="xstate.error",Ks="xstate.stop";function X0(n,o){return{type:`xstate.after.${n}.${o}`}}function $a(n,o){return{type:`xstate.done.state.${n}`,output:o}}function J0(n,o){return{type:`xstate.done.actor.${n}`,output:o,actorId:n}}function jh(n,o){return{type:`xstate.error.actor.${n}`,error:o,actorId:n}}function bh(n){return{type:Ph,input:n}}function bt(n){setTimeout(()=>{throw n})}const q0=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ih(n,o){const s=Zf(n),l=Zf(o);return typeof l=="string"?typeof s=="string"?l===s:!1:typeof s=="string"?s in l:Object.keys(s).every(a=>a in l?Ih(s[a],l[a]):!1)}function ru(n){if(Ah(n))return n;const o=[];let s="";for(let l=0;l<n.length;l++){switch(n.charCodeAt(l)){case 92:s+=n[l+1],l++;continue;case 46:o.push(s),s="";continue}s+=n[l]}return o.push(s),o}function Zf(n){if(bw(n))return n.value;if(typeof n!="string")return n;const o=ru(n);return Z0(o)}function Z0(n){if(n.length===1)return n[0];const o={};let s=o;for(let l=0;l<n.length-1;l++)if(l===n.length-2)s[n[l]]=n[l+1];else{const a=s;s={},a[n[l]]=s}return o}function ep(n,o){const s={},l=Object.keys(n);for(let a=0;a<l.length;a++){const d=l[a];s[d]=o(n[d],d,n,a)}return s}function Oh(n){return Ah(n)?n:[n]}function vn(n){return n===void 0?[]:Oh(n)}function Ua(n,o,s,l){return typeof n=="function"?n({context:o,event:s,self:l}):n}function Ah(n){return Array.isArray(n)}function ew(n){return n.type.startsWith("xstate.error.actor")}function vr(n){return Oh(n).map(o=>typeof o>"u"||typeof o=="string"?{target:o}:o)}function Lh(n){if(!(n===void 0||n===G0))return vn(n)}function Ys(n,o,s){var d,f,p;const l=typeof n=="object",a=l?n:void 0;return{next:(d=l?n.next:n)==null?void 0:d.bind(a),error:(f=l?n.error:o)==null?void 0:f.bind(a),complete:(p=l?n.complete:s)==null?void 0:p.bind(a)}}function tp(n,o){return`${o}.${n}`}function ou(n,o){const s=o.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!s)return n.implementations.actors[o];const[,l,a]=s,f=n.getStateNodeById(a).config.invoke;return(Array.isArray(f)?f[l]:f).src}function tw(n,o){if(o===n||o===Y0)return!0;if(!o.endsWith(".*"))return!1;const s=o.split("."),l=n.split(".");for(let a=0;a<s.length;a++){const d=s[a],f=l[a];if(d==="*")return a===s.length-1;if(d!==f)return!1}return!0}function np(n,o){return`${n.sessionId}.${o}`}let nw=0;function rw(n,o){const s=new Map,l=new Map,a=new WeakMap,d=new Set,f={},{clock:p,logger:m}=o,v={schedule:(S,N,R,T,C=Math.random().toString(36).slice(2))=>{const $={source:S,target:N,event:R,delay:T,id:C,startedAt:Date.now()},F=np(S,C);y._snapshot._scheduledEvents[F]=$;const L=p.setTimeout(()=>{delete f[F],delete y._snapshot._scheduledEvents[F],y._relay(S,N,R)},T);f[F]=L},cancel:(S,N)=>{const R=np(S,N),T=f[R];delete f[R],delete y._snapshot._scheduledEvents[R],T!==void 0&&p.clearTimeout(T)},cancelAll:S=>{for(const N in y._snapshot._scheduledEvents){const R=y._snapshot._scheduledEvents[N];R.source===S&&v.cancel(S,R.id)}}},w=S=>{if(!d.size)return;const N={...S,rootId:n.sessionId};d.forEach(R=>{var T;return(T=R.next)==null?void 0:T.call(R,N)})},y={_snapshot:{_scheduledEvents:((o==null?void 0:o.snapshot)&&o.snapshot.scheduler)??{}},_bookId:()=>`x:${nw++}`,_register:(S,N)=>(s.set(S,N),S),_unregister:S=>{s.delete(S.sessionId);const N=a.get(S);N!==void 0&&(l.delete(N),a.delete(S))},get:S=>l.get(S),getAll:()=>Object.fromEntries(l.entries()),_set:(S,N)=>{const R=l.get(S);if(R&&R!==N)throw new Error(`Actor with system ID '${S}' already exists.`);l.set(S,N),a.set(N,S)},inspect:S=>{const N=Ys(S);return d.add(N),{unsubscribe(){d.delete(N)}}},_sendInspectionEvent:w,_relay:(S,N,R)=>{y._sendInspectionEvent({type:"@xstate.event",sourceRef:S,actorRef:N,event:R}),N._send(R)},scheduler:v,getSnapshot:()=>({_scheduledEvents:{...y._snapshot._scheduledEvents}}),start:()=>{const S=y._snapshot._scheduledEvents;y._snapshot._scheduledEvents={};for(const N in S){const{source:R,target:T,event:C,delay:$,id:F}=S[N];v.schedule(R,T,C,$,F)}},_clock:p,_logger:m};return y}let ya=!1;const su=1;let at=(function(n){return n[n.NotStarted=0]="NotStarted",n[n.Running=1]="Running",n[n.Stopped=2]="Stopped",n})({});const ow={clock:{setTimeout:(n,o)=>setTimeout(n,o),clearTimeout:n=>clearTimeout(n)},logger:console.log.bind(console),devTools:!1};class sw{constructor(o,s){this.logic=o,this._snapshot=void 0,this.clock=void 0,this.options=void 0,this.id=void 0,this.mailbox=new qf(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=at.NotStarted,this._parent=void 0,this._syncSnapshot=void 0,this.ref=void 0,this._actorScope=void 0,this.systemId=void 0,this.sessionId=void 0,this.system=void 0,this._doneEvent=void 0,this.src=void 0,this._deferred=[];const l={...ow,...s},{clock:a,logger:d,parent:f,syncSnapshot:p,id:m,systemId:v,inspect:w}=l;this.system=f?f.system:rw(this,{clock:a,logger:d}),w&&!f&&this.system.inspect(Ys(w)),this.sessionId=this.system._bookId(),this.id=m??this.sessionId,this.logger=(s==null?void 0:s.logger)??this.system._logger,this.clock=(s==null?void 0:s.clock)??this.system._clock,this._parent=f,this._syncSnapshot=p,this.options=l,this.src=l.src??o,this.ref=this,this._actorScope={self:this,id:this.id,sessionId:this.sessionId,logger:this.logger,defer:y=>{this._deferred.push(y)},system:this.system,stopChild:y=>{if(y._parent!==this)throw new Error(`Cannot stop child actor ${y.id} of ${this.id} because it is not a child`);y._stop()},emit:y=>{const S=this.eventListeners.get(y.type),N=this.eventListeners.get("*");if(!S&&!N)return;const R=[...S?S.values():[],...N?N.values():[]];for(const T of R)try{T(y)}catch(C){bt(C)}},actionExecutor:y=>{const S=()=>{if(this._actorScope.system._sendInspectionEvent({type:"@xstate.action",actorRef:this,action:{type:y.type,params:y.params}}),!y.exec)return;const N=ya;try{ya=!0,y.exec(y.info,y.params)}finally{ya=N}};this._processingStatus===at.Running?S():this._deferred.push(S)}},this.send=this.send.bind(this),this.system._sendInspectionEvent({type:"@xstate.actor",actorRef:this}),v&&(this.systemId=v,this.system._set(v,this)),this._initState((s==null?void 0:s.snapshot)??(s==null?void 0:s.state)),v&&this._snapshot.status!=="active"&&this.system._unregister(this)}_initState(o){var s;try{this._snapshot=o?this.logic.restoreSnapshot?this.logic.restoreSnapshot(o,this._actorScope):o:this.logic.getInitialSnapshot(this._actorScope,(s=this.options)==null?void 0:s.input)}catch(l){this._snapshot={status:"error",output:void 0,error:l}}}update(o,s){var a,d;this._snapshot=o;let l;for(;l=this._deferred.shift();)try{l()}catch(f){this._deferred.length=0,this._snapshot={...o,status:"error",error:f}}switch(this._snapshot.status){case"active":for(const f of this.observers)try{(a=f.next)==null||a.call(f,o)}catch(p){bt(p)}break;case"done":for(const f of this.observers)try{(d=f.next)==null||d.call(f,o)}catch(p){bt(p)}this._stopProcedure(),this._complete(),this._doneEvent=J0(this.id,this._snapshot.output),this._parent&&this.system._relay(this,this._parent,this._doneEvent);break;case"error":this._error(this._snapshot.error);break}this.system._sendInspectionEvent({type:"@xstate.snapshot",actorRef:this,event:s,snapshot:o})}subscribe(o,s,l){var d;const a=Ys(o,s,l);if(this._processingStatus!==at.Stopped)this.observers.add(a);else switch(this._snapshot.status){case"done":try{(d=a.complete)==null||d.call(a)}catch(f){bt(f)}break;case"error":{const f=this._snapshot.error;if(!a.error)bt(f);else try{a.error(f)}catch(p){bt(p)}break}}return{unsubscribe:()=>{this.observers.delete(a)}}}on(o,s){let l=this.eventListeners.get(o);l||(l=new Set,this.eventListeners.set(o,l));const a=s.bind(void 0);return l.add(a),{unsubscribe:()=>{l.delete(a)}}}start(){if(this._processingStatus===at.Running)return this;this._syncSnapshot&&this.subscribe({next:l=>{l.status==="active"&&this.system._relay(this,this._parent,{type:`xstate.snapshot.${this.id}`,snapshot:l})},error:()=>{}}),this.system._register(this.sessionId,this),this.systemId&&this.system._set(this.systemId,this),this._processingStatus=at.Running;const o=bh(this.options.input);switch(this.system._sendInspectionEvent({type:"@xstate.event",sourceRef:this._parent,actorRef:this,event:o}),this._snapshot.status){case"done":return this.update(this._snapshot,o),this;case"error":return this._error(this._snapshot.error),this}if(this._parent||this.system.start(),this.logic.start)try{this.logic.start(this._snapshot,this._actorScope)}catch(l){return this._snapshot={...this._snapshot,status:"error",error:l},this._error(l),this}return this.update(this._snapshot,o),this.options.devTools&&this.attachDevTools(),this.mailbox.start(),this}_process(o){let s,l;try{s=this.logic.transition(this._snapshot,o,this._actorScope)}catch(a){l={err:a}}if(l){const{err:a}=l;this._snapshot={...this._snapshot,status:"error",error:a},this._error(a);return}this.update(s,o),o.type===Ks&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===at.Stopped?this:(this.mailbox.clear(),this._processingStatus===at.NotStarted?(this._processingStatus=at.Stopped,this):(this.mailbox.enqueue({type:Ks}),this))}stop(){if(this._parent)throw new Error("A non-root actor cannot be stopped directly.");return this._stop()}_complete(){var o;for(const s of this.observers)try{(o=s.complete)==null||o.call(s)}catch(l){bt(l)}this.observers.clear(),this.eventListeners.clear()}_reportError(o){if(!this.observers.size){this._parent||bt(o),this.eventListeners.clear();return}let s=!1;for(const l of this.observers){const a=l.error;s||(s=!a);try{a==null||a(o)}catch(d){bt(d)}}this.observers.clear(),this.eventListeners.clear(),s&&bt(o)}_error(o){this._stopProcedure(),this._reportError(o),this._parent&&this.system._relay(this,this._parent,jh(this.id,o))}_stopProcedure(){return this._processingStatus!==at.Running?this:(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new qf(this._process.bind(this)),this._processingStatus=at.Stopped,this.system._unregister(this),this)}_send(o){this._processingStatus!==at.Stopped&&this.mailbox.enqueue(o)}send(o){this.system._relay(void 0,this,o)}attachDevTools(){const{devTools:o}=this.options;o&&(typeof o=="function"?o:H0)(this)}toJSON(){return{xstate$$type:su,id:this.id}}getPersistedSnapshot(o){return this.logic.getPersistedSnapshot(this._snapshot,o)}[q0](){return this}getSnapshot(){return this._snapshot}}function yr(n,...[o]){return new sw(n,o)}function iw(n,o,s,l,{sendId:a}){const d=typeof a=="function"?a(s,l):a;return[o,{sendId:d},void 0]}function lw(n,o){n.defer(()=>{n.system.scheduler.cancel(n.self,o.sendId)})}function iu(n){function o(s,l){}return o.type="xstate.cancel",o.sendId=n,o.resolve=iw,o.execute=lw,o}function aw(n,o,s,l,{id:a,systemId:d,src:f,input:p,syncSnapshot:m}){const v=typeof f=="string"?ou(o.machine,f):f,w=typeof a=="function"?a(s):a;let y,S;return v&&(S=typeof p=="function"?p({context:o.context,event:s.event,self:n.self}):p,y=yr(v,{id:w,src:f,parent:n.self,syncSnapshot:m,systemId:d,input:S})),[$n(o,{children:{...o.children,[w]:y}}),{id:a,systemId:d,actorRef:y,src:f,input:S},void 0]}function uw(n,{actorRef:o}){o&&n.defer(()=>{o._processingStatus!==at.Stopped&&o.start()})}function lu(...[n,{id:o,systemId:s,input:l,syncSnapshot:a=!1}={}]){function d(f,p){}return d.type="xstate.spawnChild",d.id=o,d.systemId=s,d.src=n,d.input=l,d.syncSnapshot=a,d.resolve=aw,d.execute=uw,d}function cw(n,o,s,l,{actorRef:a}){const d=typeof a=="function"?a(s,l):a,f=typeof d=="string"?o.children[d]:d;let p=o.children;return f&&(p={...p},delete p[f.id]),[$n(o,{children:p}),f,void 0]}function Dh(n,o){const s=o.getSnapshot();if(s&&"children"in s)for(const l of Object.values(s.children))Dh(n,l);n.system._unregister(o)}function dw(n,o){if(o){if(Dh(n,o),o._processingStatus!==at.Running){n.stopChild(o);return}n.defer(()=>{n.stopChild(o)})}}function ai(n){function o(s,l){}return o.type="xstate.stopChild",o.actorRef=n,o.resolve=cw,o.execute=dw,o}function ui(n,o,s,l){const{machine:a}=l,d=typeof n=="function",f=d?n:a.implementations.guards[typeof n=="string"?n:n.type];if(!d&&!f)throw new Error(`Guard '${typeof n=="string"?n:n.type}' is not implemented.'.`);if(typeof f!="function")return ui(f,o,s,l);const p={context:o,event:s},m=d||typeof n=="string"?void 0:"params"in n?typeof n.params=="function"?n.params({context:o,event:s}):n.params:void 0;return"check"in f?f.check(l,p,f):f(p,m)}function au(n){return n.type==="atomic"||n.type==="final"}function xr(n){return Object.values(n.states).filter(o=>o.type!=="history")}function ko(n,o){const s=[];if(o===n)return s;let l=n.parent;for(;l&&l!==o;)s.push(l),l=l.parent;return s}function Qs(n){const o=new Set(n),s=zh(o);for(const l of o)if(l.type==="compound"&&(!s.get(l)||!s.get(l).length))rp(l).forEach(a=>o.add(a));else if(l.type==="parallel"){for(const a of xr(l))if(a.type!=="history"&&!o.has(a)){const d=rp(a);for(const f of d)o.add(f)}}for(const l of o){let a=l.parent;for(;a;)o.add(a),a=a.parent}return o}function Mh(n,o){const s=o.get(n);if(!s)return{};if(n.type==="compound"){const a=s[0];if(a){if(au(a))return a.key}else return{}}const l={};for(const a of s)l[a.key]=Mh(a,o);return l}function zh(n){const o=new Map;for(const s of n)o.has(s)||o.set(s,[]),s.parent&&(o.has(s.parent)||o.set(s.parent,[]),o.get(s.parent).push(s));return o}function Fh(n,o){const s=Qs(o);return Mh(n,zh(s))}function uu(n,o){return o.type==="compound"?xr(o).some(s=>s.type==="final"&&n.has(s)):o.type==="parallel"?xr(o).every(s=>uu(n,s)):o.type==="final"}const ci=n=>n[0]===K0;function fw(n,o){return n.transitions.get(o)||[...n.transitions.keys()].filter(l=>tw(o,l)).sort((l,a)=>a.length-l.length).flatMap(l=>n.transitions.get(l))}function pw(n){const o=n.config.after;if(!o)return[];const s=a=>{const d=X0(a,n.id),f=d.type;return n.entry.push(fu(d,{id:f,delay:a})),n.exit.push(iu(f)),f};return Object.keys(o).flatMap(a=>{const d=o[a],f=typeof d=="string"?{target:d}:d,p=Number.isNaN(+a)?a:+a,m=s(p);return vn(f).map(v=>({...v,event:m,delay:p}))}).map(a=>{const{delay:d}=a;return{...Mn(n,a.event,a),delay:d}})}function Mn(n,o,s){const l=Lh(s.target),a=s.reenter??!1,d=vw(n,l),f={...s,actions:vn(s.actions),guard:s.guard,target:d,source:n,reenter:a,eventType:o,toJSON:()=>({...f,source:`#${n.id}`,target:d?d.map(p=>`#${p.id}`):void 0})};return f}function hw(n){const o=new Map;if(n.config.on)for(const s of Object.keys(n.config.on)){if(s===Rh)throw new Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');const l=n.config.on[s];o.set(s,vr(l).map(a=>Mn(n,s,a)))}if(n.config.onDone){const s=`xstate.done.state.${n.id}`;o.set(s,vr(n.config.onDone).map(l=>Mn(n,s,l)))}for(const s of n.invoke){if(s.onDone){const l=`xstate.done.actor.${s.id}`;o.set(l,vr(s.onDone).map(a=>Mn(n,l,a)))}if(s.onError){const l=`xstate.error.actor.${s.id}`;o.set(l,vr(s.onError).map(a=>Mn(n,l,a)))}if(s.onSnapshot){const l=`xstate.snapshot.${s.id}`;o.set(l,vr(s.onSnapshot).map(a=>Mn(n,l,a)))}}for(const s of n.after){let l=o.get(s.eventType);l||(l=[],o.set(s.eventType,l)),l.push(s)}return o}function mw(n,o){const s=typeof o=="string"?n.states[o]:o?n.states[o.target]:void 0;if(!s&&o)throw new Error(`Initial state node "${o}" not found on parent state node #${n.id}`);const l={source:n,actions:!o||typeof o=="string"?[]:vn(o.actions),eventType:null,reenter:!1,target:s?[s]:[],toJSON:()=>({...l,source:`#${n.id}`,target:s?[`#${s.id}`]:[]})};return l}function vw(n,o){if(o!==void 0)return o.map(s=>{if(typeof s!="string")return s;if(ci(s))return n.machine.getStateNodeById(s);const l=s[0]===Nh;if(l&&!n.parent)return Xs(n,s.slice(1));const a=l?n.key+s:s;if(n.parent)try{return Xs(n.parent,a)}catch(d){throw new Error(`Invalid transition definition for state node '${n.id}':
|
|
143
|
+
${d.message}`)}else throw new Error(`Invalid target: "${s}" is not a valid target from the root node. Did you mean ".${s}"?`)})}function $h(n){const o=Lh(n.config.target);return o?{target:o.map(s=>typeof s=="string"?Xs(n.parent,s):s)}:n.parent.initial}function zn(n){return n.type==="history"}function rp(n){const o=Uh(n);for(const s of o)for(const l of ko(s,n))o.add(l);return o}function Uh(n){const o=new Set;function s(l){if(!o.has(l)){if(o.add(l),l.type==="compound")s(l.initial.target[0]);else if(l.type==="parallel")for(const a of xr(l))s(a)}}return s(n),o}function wr(n,o){if(ci(o))return n.machine.getStateNodeById(o);if(!n.states)throw new Error(`Unable to retrieve child state '${o}' from '${n.id}'; no child states exist.`);const s=n.states[o];if(!s)throw new Error(`Child state '${o}' does not exist on '${n.id}'`);return s}function Xs(n,o){if(typeof o=="string"&&ci(o))try{return n.machine.getStateNodeById(o)}catch{}const s=ru(o).slice();let l=n;for(;s.length;){const a=s.shift();if(!a.length)break;l=wr(l,a)}return l}function Js(n,o){if(typeof o=="string"){const a=n.states[o];if(!a)throw new Error(`State '${o}' does not exist on '${n.id}'`);return[n,a]}const s=Object.keys(o),l=s.map(a=>wr(n,a)).filter(Boolean);return[n.machine.root,n].concat(l,s.reduce((a,d)=>{const f=wr(n,d);if(!f)return a;const p=Js(f,o[d]);return a.concat(p)},[]))}function gw(n,o,s,l){const d=wr(n,o).next(s,l);return!d||!d.length?n.next(s,l):d}function yw(n,o,s,l){const a=Object.keys(o),d=wr(n,a[0]),f=cu(d,o[a[0]],s,l);return!f||!f.length?n.next(s,l):f}function xw(n,o,s,l){const a=[];for(const d of Object.keys(o)){const f=o[d];if(!f)continue;const p=wr(n,d),m=cu(p,f,s,l);m&&a.push(...m)}return a.length?a:n.next(s,l)}function cu(n,o,s,l){return typeof o=="string"?gw(n,o,s,l):Object.keys(o).length===1?yw(n,o,s,l):xw(n,o,s,l)}function ww(n){return Object.keys(n.states).map(o=>n.states[o]).filter(o=>o.type==="history")}function wn(n,o){let s=n;for(;s.parent&&s.parent!==o;)s=s.parent;return s.parent===o}function Sw(n,o){const s=new Set(n),l=new Set(o);for(const a of s)if(l.has(a))return!0;for(const a of l)if(s.has(a))return!0;return!1}function Bh(n,o,s){const l=new Set;for(const a of n){let d=!1;const f=new Set;for(const p of l)if(Sw(Ba([a],o,s),Ba([p],o,s)))if(wn(a.source,p.source))f.add(p);else{d=!0;break}if(!d){for(const p of f)l.delete(p);l.add(a)}}return Array.from(l)}function Ew(n){const[o,...s]=n;for(const l of ko(o,void 0))if(s.every(a=>wn(a,l)))return l}function du(n,o){if(!n.target)return[];const s=new Set;for(const l of n.target)if(zn(l))if(o[l.id])for(const a of o[l.id])s.add(a);else for(const a of du($h(l),o))s.add(a);else s.add(l);return[...s]}function Vh(n,o){const s=du(n,o);if(!s)return;if(!n.reenter&&s.every(a=>a===n.source||wn(a,n.source)))return n.source;const l=Ew(s.concat(n.source));if(l)return l;if(!n.reenter)return n.source.machine.root}function Ba(n,o,s){var a;const l=new Set;for(const d of n)if((a=d.target)!=null&&a.length){const f=Vh(d,s);d.reenter&&d.source===f&&l.add(f);for(const p of o)wn(p,f)&&l.add(p)}return[...l]}function kw(n,o){if(n.length!==o.size)return!1;for(const s of n)if(!o.has(s))return!1;return!0}function Va(n,o,s,l,a,d){if(!n.length)return o;const f=new Set(o._nodes);let p=o.historyValue;const m=Bh(n,f,p);let v=o;a||([v,p]=Nw(v,l,s,m,f,p,d,s.actionExecutor)),v=Sr(v,l,s,m.flatMap(y=>y.actions),d,void 0),v=_w(v,l,s,m,f,d,p,a);const w=[...f];v.status==="done"&&(v=Sr(v,l,s,w.sort((y,S)=>S.order-y.order).flatMap(y=>y.exit),d,void 0));try{return p===o.historyValue&&kw(o._nodes,f)?v:$n(v,{_nodes:w,historyValue:p})}catch(y){throw y}}function Cw(n,o,s,l,a){if(l.output===void 0)return;const d=$a(a.id,a.output!==void 0&&a.parent?Ua(a.output,n.context,o,s.self):void 0);return Ua(l.output,n.context,d,s.self)}function _w(n,o,s,l,a,d,f,p){let m=n;const v=new Set,w=new Set;Tw(l,f,w,v),p&&w.add(n.machine.root);const y=new Set;for(const S of[...v].sort((N,R)=>N.order-R.order)){a.add(S);const N=[];N.push(...S.entry);for(const R of S.invoke)N.push(lu(R.src,{...R,syncSnapshot:!!R.onSnapshot}));if(w.has(S)){const R=S.initial.actions;N.push(...R)}if(m=Sr(m,o,s,N,d,S.invoke.map(R=>R.id)),S.type==="final"){const R=S.parent;let T=(R==null?void 0:R.type)==="parallel"?R:R==null?void 0:R.parent,C=T||S;for((R==null?void 0:R.type)==="compound"&&d.push($a(R.id,S.output!==void 0?Ua(S.output,m.context,o,s.self):void 0));(T==null?void 0:T.type)==="parallel"&&!y.has(T)&&uu(a,T);)y.add(T),d.push($a(T.id)),C=T,T=T.parent;if(T)continue;m=$n(m,{status:"done",output:Cw(m,o,s,m.machine.root,C)})}}return m}function Tw(n,o,s,l){for(const a of n){const d=Vh(a,o);for(const p of a.target||[])!zn(p)&&(a.source!==p||a.source!==d||a.reenter)&&(l.add(p),s.add(p)),gr(p,o,s,l);const f=du(a,o);for(const p of f){const m=ko(p,d);(d==null?void 0:d.type)==="parallel"&&m.push(d),Wh(l,o,s,m,!a.source.parent&&a.reenter?void 0:d)}}}function gr(n,o,s,l){var a;if(zn(n))if(o[n.id]){const d=o[n.id];for(const f of d)l.add(f),gr(f,o,s,l);for(const f of d)xa(f,n.parent,l,o,s)}else{const d=$h(n);for(const f of d.target)l.add(f),d===((a=n.parent)==null?void 0:a.initial)&&s.add(n.parent),gr(f,o,s,l);for(const f of d.target)xa(f,n.parent,l,o,s)}else if(n.type==="compound"){const[d]=n.initial.target;zn(d)||(l.add(d),s.add(d)),gr(d,o,s,l),xa(d,n,l,o,s)}else if(n.type==="parallel")for(const d of xr(n).filter(f=>!zn(f)))[...l].some(f=>wn(f,d))||(zn(d)||(l.add(d),s.add(d)),gr(d,o,s,l))}function Wh(n,o,s,l,a){for(const d of l)if((!a||wn(d,a))&&n.add(d),d.type==="parallel")for(const f of xr(d).filter(p=>!zn(p)))[...n].some(p=>wn(p,f))||(n.add(f),gr(f,o,s,n))}function xa(n,o,s,l,a){Wh(s,l,a,ko(n,o))}function Nw(n,o,s,l,a,d,f,p){let m=n;const v=Ba(l,a,d);v.sort((y,S)=>S.order-y.order);let w;for(const y of v)for(const S of ww(y)){let N;S.history==="deep"?N=R=>au(R)&&wn(R,y):N=R=>R.parent===y,w??(w={...d}),w[S.id]=Array.from(a).filter(N)}for(const y of v)m=Sr(m,o,s,[...y.exit,...y.invoke.map(S=>ai(S.id))],f,void 0),a.delete(y);return[m,w||d]}function Rw(n,o){return n.implementations.actions[o]}function Hh(n,o,s,l,a,d){const{machine:f}=n;let p=n;for(const m of l){const v=typeof m=="function",w=v?m:Rw(f,typeof m=="string"?m:m.type),y={context:p.context,event:o,self:s.self,system:s.system},S=v||typeof m=="string"?void 0:"params"in m?typeof m.params=="function"?m.params({context:p.context,event:o}):m.params:void 0;if(!w||!("resolve"in w)){s.actionExecutor({type:typeof m=="string"?m:typeof m=="object"?m.type:m.name||"(anonymous)",info:y,params:S,exec:w});continue}const N=w,[R,T,C]=N.resolve(s,p,y,S,w,a);p=R,"retryResolve"in N&&(d==null||d.push([N,T])),"execute"in N&&s.actionExecutor({type:N.type,info:y,params:T,exec:N.execute.bind(null,s,T)}),C&&(p=Hh(p,o,s,C,a,d))}return p}function Sr(n,o,s,l,a,d){const f=d?[]:void 0,p=Hh(n,o,s,l,{internalQueue:a,deferredActorIds:d},f);return f==null||f.forEach(([m,v])=>{m.retryResolve(s,p,v)}),p}function wa(n,o,s,l){let a=n;const d=[];function f(v,w,y){s.system._sendInspectionEvent({type:"@xstate.microstep",actorRef:s.self,event:w,snapshot:v,_transitions:y}),d.push(v)}if(o.type===Ks)return a=$n(op(a,o,s),{status:"stopped"}),f(a,o,[]),{snapshot:a,microstates:d};let p=o;if(p.type!==Ph){const v=p,w=ew(v),y=sp(v,a);if(w&&!y.length)return a=$n(n,{status:"error",error:v.error}),f(a,v,[]),{snapshot:a,microstates:d};a=Va(y,n,s,p,!1,l),f(a,v,y)}let m=!0;for(;a.status==="active";){let v=m?Pw(a,p):[];const w=v.length?a:void 0;if(!v.length){if(!l.length)break;p=l.shift(),v=sp(p,a)}a=Va(v,a,s,p,!1,l),m=a!==w,f(a,p,v)}return a.status!=="active"&&op(a,p,s),{snapshot:a,microstates:d}}function op(n,o,s){return Sr(n,o,s,Object.values(n.children).map(l=>ai(l)),[],void 0)}function sp(n,o){return o.machine.getTransitionData(o,n)}function Pw(n,o){const s=new Set,l=n._nodes.filter(au);for(const a of l)e:for(const d of[a].concat(ko(a,void 0)))if(d.always){for(const f of d.always)if(f.guard===void 0||ui(f.guard,n.context,o,n)){s.add(f);break e}}return Bh(Array.from(s),new Set(n._nodes),n.historyValue)}function jw(n,o){const s=Qs(Js(n,o));return Fh(n,[...s])}function bw(n){return!!n&&typeof n=="object"&&"machine"in n&&"value"in n}const Iw=function(o){return Ih(o,this.value)},Ow=function(o){return this.tags.has(o)},Aw=function(o){const s=this.machine.getTransitionData(this,o);return!!(s!=null&&s.length)&&s.some(l=>l.target!==void 0||l.actions.length)},Lw=function(){const{_nodes:o,tags:s,machine:l,getMeta:a,toJSON:d,can:f,hasTag:p,matches:m,...v}=this;return{...v,tags:Array.from(s)}},Dw=function(){return this._nodes.reduce((o,s)=>(s.meta!==void 0&&(o[s.id]=s.meta),o),{})};function Bs(n,o){return{status:n.status,output:n.output,error:n.error,machine:o,context:n.context,_nodes:n._nodes,value:Fh(o.root,n._nodes),tags:new Set(n._nodes.flatMap(s=>s.tags)),children:n.children,historyValue:n.historyValue||{},matches:Iw,hasTag:Ow,can:Aw,getMeta:Dw,toJSON:Lw}}function $n(n,o={}){return Bs({...n,...o},n.machine)}function Mw(n){if(typeof n!="object"||n===null)return{};const o={};for(const s in n){const l=n[s];Array.isArray(l)&&(o[s]=l.map(a=>({id:a.id})))}return o}function zw(n,o){const{_nodes:s,tags:l,machine:a,children:d,context:f,can:p,hasTag:m,matches:v,getMeta:w,toJSON:y,...S}=n,N={};for(const T in d){const C=d[T];N[T]={snapshot:C.getPersistedSnapshot(o),src:C.src,systemId:C.systemId,syncSnapshot:C._syncSnapshot}}return{...S,context:Gh(f),children:N,historyValue:Mw(S.historyValue)}}function Gh(n){let o;for(const s in n){const l=n[s];if(l&&typeof l=="object")if("sessionId"in l&&"send"in l&&"ref"in l)o??(o=Array.isArray(n)?n.slice():{...n}),o[s]={xstate$$type:su,id:l.id};else{const a=Gh(l);a!==l&&(o??(o=Array.isArray(n)?n.slice():{...n}),o[s]=a)}}return o??n}function Fw(n,o,s,l,{event:a,id:d,delay:f},{internalQueue:p}){const m=o.machine.implementations.delays;if(typeof a=="string")throw new Error(`Only event objects may be used with raise; use raise({ type: "${a}" }) instead`);const v=typeof a=="function"?a(s,l):a;let w;if(typeof f=="string"){const y=m&&m[f];w=typeof y=="function"?y(s,l):y}else w=typeof f=="function"?f(s,l):f;return typeof w!="number"&&p.push(v),[o,{event:v,id:d,delay:w},void 0]}function $w(n,o){const{event:s,delay:l,id:a}=o;if(typeof l=="number"){n.defer(()=>{const d=n.self;n.system.scheduler.schedule(d,d,s,l,a)});return}}function fu(n,o){function s(l,a){}return s.type="xstate.raise",s.event=n,s.id=o==null?void 0:o.id,s.delay=o==null?void 0:o.delay,s.resolve=Fw,s.execute=$w,s}const Sa=new WeakMap;function Uw(n){return{config:n,start:(s,l)=>{const{self:a,system:d,emit:f}=l,p={receivers:void 0,dispose:void 0};Sa.set(a,p),p.dispose=n({input:s.input,system:d,self:a,sendBack:m=>{a.getSnapshot().status!=="stopped"&&a._parent&&d._relay(a,a._parent,m)},receive:m=>{p.receivers??(p.receivers=new Set),p.receivers.add(m)},emit:f})},transition:(s,l,a)=>{var f,p,m;const d=Sa.get(a.self);return l.type===Ks?(s={...s,status:"stopped",error:void 0},Sa.delete(a.self),(f=d.receivers)==null||f.clear(),(p=d.dispose)==null||p.call(d),s):((m=d.receivers)==null||m.forEach(v=>v(l)),s)},getInitialSnapshot:(s,l)=>({status:"active",output:void 0,error:void 0,input:l}),getPersistedSnapshot:s=>s,restoreSnapshot:s=>s}}function Bw(n,{machine:o,context:s},l,a){const d=(f,p)=>{if(typeof f=="string"){const m=ou(o,f);if(!m)throw new Error(`Actor logic '${f}' not implemented in machine '${o.id}'`);const v=yr(m,{id:p==null?void 0:p.id,parent:n.self,syncSnapshot:p==null?void 0:p.syncSnapshot,input:typeof(p==null?void 0:p.input)=="function"?p.input({context:s,event:l,self:n.self}):p==null?void 0:p.input,src:f,systemId:p==null?void 0:p.systemId});return a[v.id]=v,v}else return yr(f,{id:p==null?void 0:p.id,parent:n.self,syncSnapshot:p==null?void 0:p.syncSnapshot,input:p==null?void 0:p.input,src:f,systemId:p==null?void 0:p.systemId})};return(f,p)=>{const m=d(f,p);return a[m.id]=m,n.defer(()=>{m._processingStatus!==at.Stopped&&m.start()}),m}}function Vw(n,o,s,l,{assignment:a}){if(!o.context)throw new Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");const d={},f={context:o.context,event:s.event,spawn:Bw(n,o,s.event,d),self:n.self,system:n.system};let p={};if(typeof a=="function")p=a(f,l);else for(const v of Object.keys(a)){const w=a[v];p[v]=typeof w=="function"?w(f,l):w}const m=Object.assign({},o.context,p);return[$n(o,{context:m,children:Object.keys(d).length?{...o.children,...d}:o.children}),void 0,void 0]}function Ze(n){function o(s,l){}return o.type="xstate.assign",o.assignment=n,o.resolve=Vw,o}const ip=new WeakMap;function mr(n,o,s){let l=ip.get(n);return l?o in l||(l[o]=s()):(l={[o]:s()},ip.set(n,l)),l[o]}const Ww={},mo=n=>typeof n=="string"?{type:n}:typeof n=="function"?"resolve"in n?{type:n.type}:{type:n.name}:n;class qs{constructor(o,s){if(this.config=o,this.key=void 0,this.id=void 0,this.type=void 0,this.path=void 0,this.states=void 0,this.history=void 0,this.entry=void 0,this.exit=void 0,this.parent=void 0,this.machine=void 0,this.meta=void 0,this.output=void 0,this.order=-1,this.description=void 0,this.tags=[],this.transitions=void 0,this.always=void 0,this.parent=s._parent,this.key=s._key,this.machine=s._machine,this.path=this.parent?this.parent.path.concat(this.key):[],this.id=this.config.id||[this.machine.id,...this.path].join(Nh),this.type=this.config.type||(this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.description=this.config.description,this.order=this.machine.idMap.size,this.machine.idMap.set(this.id,this),this.states=this.config.states?ep(this.config.states,(l,a)=>new qs(l,{_parent:this,_key:a,_machine:this.machine})):Ww,this.type==="compound"&&!this.config.initial)throw new Error(`No initial state specified for compound state node "#${this.id}". Try adding { initial: "${Object.keys(this.states)[0]}" } to the state config.`);this.history=this.config.history===!0?"shallow":this.config.history||!1,this.entry=vn(this.config.entry).slice(),this.exit=vn(this.config.exit).slice(),this.meta=this.config.meta,this.output=this.type==="final"||!this.parent?this.config.output:void 0,this.tags=vn(o.tags).slice()}_initialize(){this.transitions=hw(this),this.config.always&&(this.always=vr(this.config.always).map(o=>Mn(this,Rh,o))),Object.keys(this.states).forEach(o=>{this.states[o]._initialize()})}get definition(){return{id:this.id,key:this.key,version:this.machine.version,type:this.type,initial:this.initial?{target:this.initial.target,source:this,actions:this.initial.actions.map(mo),eventType:null,reenter:!1,toJSON:()=>({target:this.initial.target.map(o=>`#${o.id}`),source:`#${this.id}`,actions:this.initial.actions.map(mo),eventType:null})}:void 0,history:this.history,states:ep(this.states,o=>o.definition),on:this.on,transitions:[...this.transitions.values()].flat().map(o=>({...o,actions:o.actions.map(mo)})),entry:this.entry.map(mo),exit:this.exit.map(mo),meta:this.meta,order:this.order||-1,output:this.output,invoke:this.invoke,description:this.description,tags:this.tags}}toJSON(){return this.definition}get invoke(){return mr(this,"invoke",()=>vn(this.config.invoke).map((o,s)=>{const{src:l,systemId:a}=o,d=o.id??tp(this.id,s),f=typeof l=="string"?l:`xstate.invoke.${tp(this.id,s)}`;return{...o,src:f,id:d,systemId:a,toJSON(){const{onDone:p,onError:m,...v}=o;return{...v,type:"xstate.invoke",src:f,id:d}}}}))}get on(){return mr(this,"on",()=>[...this.transitions].flatMap(([s,l])=>l.map(a=>[s,a])).reduce((s,[l,a])=>(s[l]=s[l]||[],s[l].push(a),s),{}))}get after(){return mr(this,"delayedTransitions",()=>pw(this))}get initial(){return mr(this,"initial",()=>mw(this,this.config.initial))}next(o,s){const l=s.type,a=[];let d;const f=mr(this,`candidates-${l}`,()=>fw(this,l));for(const p of f){const{guard:m}=p,v=o.context;let w=!1;try{w=!m||ui(m,v,s,o)}catch(y){const S=typeof m=="string"?m:typeof m=="object"?m.type:void 0;throw new Error(`Unable to evaluate guard ${S?`'${S}' `:""}in transition for event '${l}' in state node '${this.id}':
|
|
144
|
+
${y.message}`)}if(w){a.push(...p.actions),d=p;break}}return d?[d]:void 0}get events(){return mr(this,"events",()=>{const{states:o}=this,s=new Set(this.ownEvents);if(o)for(const l of Object.keys(o)){const a=o[l];if(a.states)for(const d of a.events)s.add(`${d}`)}return Array.from(s)})}get ownEvents(){const o=Object.keys(Object.fromEntries(this.transitions)),s=new Set(o.filter(l=>this.transitions.get(l).some(a=>!(!a.target&&!a.actions.length&&!a.reenter))));return Array.from(s)}}const Hw="#";class pu{constructor(o,s){this.config=o,this.version=void 0,this.schemas=void 0,this.implementations=void 0,this.__xstatenode=!0,this.idMap=new Map,this.root=void 0,this.id=void 0,this.states=void 0,this.events=void 0,this.id=o.id||"(machine)",this.implementations={actors:(s==null?void 0:s.actors)??{},actions:(s==null?void 0:s.actions)??{},delays:(s==null?void 0:s.delays)??{},guards:(s==null?void 0:s.guards)??{}},this.version=this.config.version,this.schemas=this.config.schemas,this.transition=this.transition.bind(this),this.getInitialSnapshot=this.getInitialSnapshot.bind(this),this.getPersistedSnapshot=this.getPersistedSnapshot.bind(this),this.restoreSnapshot=this.restoreSnapshot.bind(this),this.start=this.start.bind(this),this.root=new qs(o,{_key:this.id,_machine:this}),this.root._initialize(),this.states=this.root.states,this.events=this.root.events}provide(o){const{actions:s,guards:l,actors:a,delays:d}=this.implementations;return new pu(this.config,{actions:{...s,...o.actions},guards:{...l,...o.guards},actors:{...a,...o.actors},delays:{...d,...o.delays}})}resolveState(o){const s=jw(this.root,o.value),l=Qs(Js(this.root,s));return Bs({_nodes:[...l],context:o.context||{},children:{},status:uu(l,this.root)?"done":o.status||"active",output:o.output,error:o.error,historyValue:o.historyValue},this)}transition(o,s,l){return wa(o,s,l,[]).snapshot}microstep(o,s,l){return wa(o,s,l,[]).microstates}getTransitionData(o,s){return cu(this.root,o.value,o,s)||[]}getPreInitialState(o,s,l){const{context:a}=this.config,d=Bs({context:typeof a!="function"&&a?a:{},_nodes:[this.root],children:{},status:"active"},this);return typeof a=="function"?Sr(d,s,o,[Ze(({spawn:p,event:m,self:v})=>a({spawn:p,input:m.input,self:v}))],l,void 0):d}getInitialSnapshot(o,s){const l=bh(s),a=[],d=this.getPreInitialState(o,l,a),f=Va([{target:[...Uh(this.root)],source:this.root,reenter:!0,actions:[],eventType:null,toJSON:null}],d,o,l,!0,a),{snapshot:p}=wa(f,l,o,a);return p}start(o){Object.values(o.children).forEach(s=>{s.getSnapshot().status==="active"&&s.start()})}getStateNodeById(o){const s=ru(o),l=s.slice(1),a=ci(s[0])?s[0].slice(Hw.length):s[0],d=this.idMap.get(a);if(!d)throw new Error(`Child state node '#${a}' does not exist on machine '${this.id}'`);return Xs(d,l)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(o,s){return zw(o,s)}restoreSnapshot(o,s){const l={},a=o.children;Object.keys(a).forEach(y=>{const S=a[y],N=S.snapshot,R=S.src,T=typeof R=="string"?ou(this,R):R;if(!T)return;const C=yr(T,{id:y,parent:s.self,syncSnapshot:S.syncSnapshot,snapshot:N,src:R,systemId:S.systemId});l[y]=C});function d(y,S){if(S instanceof qs)return S;try{return y.machine.getStateNodeById(S.id)}catch{}}function f(y,S){if(!S||typeof S!="object")return{};const N={};for(const R in S){const T=S[R];for(const C of T){const $=d(y,C);$&&(N[R]??(N[R]=[]),N[R].push($))}}return N}const p=f(this.root,o.historyValue),m=Bs({...o,children:l,_nodes:Array.from(Qs(Js(this.root,o.value))),historyValue:p},this),v=new Set;function w(y,S){if(!v.has(y)){v.add(y);for(const N in y){const R=y[N];if(R&&typeof R=="object"){if("xstate$$type"in R&&R.xstate$$type===su){y[N]=S[R.id];continue}w(R,S)}}}}return w(m.context,l),m}}function Gw(n,o,s,l,{event:a}){const d=typeof a=="function"?a(s,l):a;return[o,{event:d},void 0]}function Kw(n,{event:o}){n.defer(()=>n.emit(o))}function Kh(n){function o(s,l){}return o.type="xstate.emit",o.event=n,o.resolve=Gw,o.execute=Kw,o}let Wa=(function(n){return n.Parent="#_parent",n.Internal="#_internal",n})({});function Yw(n,o,s,l,{to:a,event:d,id:f,delay:p},m){var R;const v=o.machine.implementations.delays;if(typeof d=="string")throw new Error(`Only event objects may be used with sendTo; use sendTo({ type: "${d}" }) instead`);const w=typeof d=="function"?d(s,l):d;let y;if(typeof p=="string"){const T=v&&v[p];y=typeof T=="function"?T(s,l):T}else y=typeof p=="function"?p(s,l):p;const S=typeof a=="function"?a(s,l):a;let N;if(typeof S=="string"){if(S===Wa.Parent?N=n.self._parent:S===Wa.Internal?N=n.self:S.startsWith("#_")?N=o.children[S.slice(2)]:N=(R=m.deferredActorIds)!=null&&R.includes(S)?S:o.children[S],!N)throw new Error(`Unable to send event to actor '${S}' from machine '${o.machine.id}'.`)}else N=S||n.self;return[o,{to:N,targetId:typeof S=="string"?S:void 0,event:w,id:f,delay:y},void 0]}function Qw(n,o,s){typeof s.to=="string"&&(s.to=o.children[s.to])}function Xw(n,o){n.defer(()=>{const{to:s,event:l,delay:a,id:d}=o;if(typeof a=="number"){n.system.scheduler.schedule(n.self,s,l,a,d);return}n.system._relay(n.self,s,l.type===Q0?jh(n.self.id,l.data):l)})}function hu(n,o,s){function l(a,d){}return l.type="xstate.sendTo",l.to=n,l.event=o,l.id=s==null?void 0:s.id,l.delay=s==null?void 0:s.delay,l.resolve=Yw,l.retryResolve=Qw,l.execute=Xw,l}function Jw(n,o){return hu(Wa.Parent,n,o)}function qw(n,o,s,l,{collect:a}){const d=[],f=function(m){d.push(m)};return f.assign=(...p)=>{d.push(Ze(...p))},f.cancel=(...p)=>{d.push(iu(...p))},f.raise=(...p)=>{d.push(fu(...p))},f.sendTo=(...p)=>{d.push(hu(...p))},f.sendParent=(...p)=>{d.push(Jw(...p))},f.spawnChild=(...p)=>{d.push(lu(...p))},f.stopChild=(...p)=>{d.push(ai(...p))},f.emit=(...p)=>{d.push(Kh(...p))},a({context:s.context,event:s.event,enqueue:f,check:p=>ui(p,o.context,s.event,o),self:n.self,system:n.system},l),[o,void 0,d]}function Zw(n){function o(s,l){}return o.type="xstate.enqueueActions",o.collect=n,o.resolve=qw,o}function eS(n,o,s,l,{value:a,label:d}){return[o,{value:typeof a=="function"?a(s,l):a,label:d},void 0]}function tS({logger:n},{value:o,label:s}){s?n(s,o):n(o)}function nS(n=({context:s,event:l})=>({context:s,event:l}),o){function s(l,a){}return s.type="xstate.log",s.value=n,s.label=o,s.resolve=eS,s.execute=tS,s}function rS(n,o){return new pu(n,o)}function Yh({schemas:n,actors:o,actions:s,guards:l,delays:a}){return{assign:Ze,sendTo:hu,raise:fu,log:nS,cancel:iu,stopChild:ai,enqueueActions:Zw,emit:Kh,spawnChild:lu,createStateConfig:d=>d,createAction:d=>d,createMachine:d=>rS({...d,schemas:n},{actors:o,actions:s,guards:l,delays:a}),extend:d=>Yh({schemas:n,actors:o,actions:{...s,...d.actions},guards:{...l,...d.guards},delays:{...a,...d.delays}})}}var Ea={exports:{}},ka={},Ca={exports:{}},_a={};/**
|
|
145
|
+
* @license React
|
|
146
|
+
* use-sync-external-store-shim.production.js
|
|
147
|
+
*
|
|
148
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
149
|
+
*
|
|
150
|
+
* This source code is licensed under the MIT license found in the
|
|
151
|
+
* LICENSE file in the root directory of this source tree.
|
|
152
|
+
*/var lp;function oS(){if(lp)return _a;lp=1;var n=xo();function o(y,S){return y===S&&(y!==0||1/y===1/S)||y!==y&&S!==S}var s=typeof Object.is=="function"?Object.is:o,l=n.useState,a=n.useEffect,d=n.useLayoutEffect,f=n.useDebugValue;function p(y,S){var N=S(),R=l({inst:{value:N,getSnapshot:S}}),T=R[0].inst,C=R[1];return d(function(){T.value=N,T.getSnapshot=S,m(T)&&C({inst:T})},[y,N,S]),a(function(){return m(T)&&C({inst:T}),y(function(){m(T)&&C({inst:T})})},[y]),f(N),N}function m(y){var S=y.getSnapshot;y=y.value;try{var N=S();return!s(y,N)}catch{return!0}}function v(y,S){return S()}var w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?v:p;return _a.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:w,_a}var ap;function Qh(){return ap||(ap=1,Ca.exports=oS()),Ca.exports}/**
|
|
153
|
+
* @license React
|
|
154
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
155
|
+
*
|
|
156
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the MIT license found in the
|
|
159
|
+
* LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/var up;function sS(){if(up)return ka;up=1;var n=xo(),o=Qh();function s(v,w){return v===w&&(v!==0||1/v===1/w)||v!==v&&w!==w}var l=typeof Object.is=="function"?Object.is:s,a=o.useSyncExternalStore,d=n.useRef,f=n.useEffect,p=n.useMemo,m=n.useDebugValue;return ka.useSyncExternalStoreWithSelector=function(v,w,y,S,N){var R=d(null);if(R.current===null){var T={hasValue:!1,value:null};R.current=T}else T=R.current;R=p(function(){function $(te){if(!F){if(F=!0,L=te,te=S(te),N!==void 0&&T.hasValue){var Z=T.value;if(N(Z,te))return B=Z}return B=te}if(Z=B,l(L,te))return Z;var V=S(te);return N!==void 0&&N(Z,V)?(L=te,Z):(L=te,B=V)}var F=!1,L,B,ne=y===void 0?null:y;return[function(){return $(w())},ne===null?void 0:function(){return $(ne())}]},[w,y,S,N]);var C=a(v,R[0],R[1]);return f(function(){T.hasValue=!0,T.value=C},[C]),m(C),C},ka}var cp;function iS(){return cp||(cp=1,Ea.exports=sS()),Ea.exports}var lS=iS();Qh();const Xh=(n,o)=>{o(n);const s=n.getSnapshot().children;s&&Object.values(s).forEach(l=>{Xh(l,o)})};function aS(n){var l,a;const o=[];Xh(n,d=>{o.push([d,d.getSnapshot()]),d.observers=new Set});const s=(a=(l=n.system).getSnapshot)==null?void 0:a.call(l);n.stop(),n.system._snapshot=s,o.forEach(([d,f])=>{d._processingStatus=0,d._snapshot=f})}function uS(n,...[o]){let[[s,l],a]=x.useState(()=>{const d=yr(n,o);return[n.config,d]});if(n.config!==s){const d=yr(n,{...o,snapshot:l.getPersistedSnapshot({__unsafeAllowInlineActors:!0})});a([n.config,d]),l=d}return B0(()=>{l.logic.implementations=n.implementations}),l}function cS(n,...[o,s]){const l=uS(n,o);return x.useEffect(()=>{if(!s)return;const a=l.subscribe(Ys(s));return()=>{a.unsubscribe()}},[s]),x.useEffect(()=>(l.start(),()=>{aS(l)}),[l]),l}function dS(n,o){return n===o}function fS(n,o,s=dS){const l=x.useCallback(f=>{if(!n)return()=>{};const{unsubscribe:p}=n.subscribe(f);return p},[n]),a=x.useCallback(()=>n==null?void 0:n.getSnapshot(),[n]);return lS.useSyncExternalStoreWithSelector(l,a,a,o,s)}function pS(n,o){const s=x.createContext(null),l=s.Provider;function a({children:p,logic:m=n,machine:v,options:w}){if(v)throw new Error('The "machine" prop has been deprecated. Please use "logic" instead.');const y=cS(m,{...o,...w});return x.createElement(l,{value:y,children:p})}a.displayName="ActorProvider";function d(){const p=x.useContext(s);if(!p)throw new Error(`You used a hook from "${a.displayName}" but it's not inside a <${a.displayName}> component.`);return p}function f(p,m){const v=d();return fS(v,p,m)}return{Provider:a,useActorRef:d,useSelector:f}}const dp=5,hS=1e3,fp=3e4;function mS(n){return Math.min(hS*Math.pow(2,n),3e4)}const vS=Uw(({sendBack:n,input:o,receive:s})=>{let l=null,a=null,d=Date.now();const f=v=>{l&&l.readyState===WebSocket.OPEN&&l.send(JSON.stringify(v))},p=()=>{a&&clearInterval(a),a=setInterval(()=>{l&&l.readyState===WebSocket.OPEN&&(f({type:"ping"}),Date.now()-d>fp*2&&n({type:"WS_ERROR",error:"Heartbeat timeout"}))},fp)},m=()=>{try{l=new WebSocket(o.wsUrl),l.onopen=()=>{d=Date.now(),n({type:"WS_CONNECTED"}),p()},l.onclose=()=>{n({type:"WS_DISCONNECTED"})},l.onerror=()=>{n({type:"WS_ERROR",error:"WebSocket connection error"})},l.onmessage=v=>{try{const w=JSON.parse(v.data);if(w.type==="pong"){d=Date.now();return}w.type==="epics:updated"&&w.data?n({type:"EPICS_UPDATED",epics:w.data}):w.type==="story:updated"&&w.data&&n({type:"STORY_UPDATED",story:w.data})}catch{}}}catch{n({type:"WS_ERROR",error:"Failed to create WebSocket"})}};return s(v=>{v.type==="SUBSCRIBE_STORY"?f({type:"subscribe:story",epicSlug:v.epicSlug,storySlug:v.storySlug}):v.type==="UNSUBSCRIBE_STORY"&&f({type:"unsubscribe:story",epicSlug:v.epicSlug,storySlug:v.storySlug})}),m(),()=>{a&&clearInterval(a),l&&l.close()}}),gS=Yh({actors:{websocket:vS},actions:{setEpics:Ze({epics:(n,o)=>o.epics}),setCurrentEpic:Ze({currentEpic:(n,o)=>o.epic}),setCurrentStory:Ze({currentStory:(n,o)=>o.story}),clearCurrentEpic:Ze({currentEpic:()=>null}),clearCurrentStory:Ze({currentStory:()=>null}),setError:Ze({error:(n,o)=>o.error}),clearError:Ze({error:()=>null}),incrementRetryCount:Ze({retryCount:({context:n})=>n.retryCount+1}),resetRetryCount:Ze({retryCount:()=>0}),updateEpics:Ze({epics:(n,o)=>o.epics}),updateStory:Ze({currentStory:({context:n},o)=>n.currentStory&&n.currentStory.slug===o.story.slug&&n.currentStory.epicSlug===o.story.epicSlug?o.story:n.currentStory}),addSubscription:Ze({subscribedStories:({context:n},o)=>n.subscribedStories.some(l=>l.epicSlug===o.epicSlug&&l.storySlug===o.storySlug)?n.subscribedStories:[...n.subscribedStories,o]}),removeSubscription:Ze({subscribedStories:({context:n},o)=>n.subscribedStories.filter(s=>!(s.epicSlug===o.epicSlug&&s.storySlug===o.storySlug))})},guards:{canRetry:({context:n})=>n.retryCount<dp,hasMaxRetries:({context:n})=>n.retryCount>=dp},delays:{backoffDelay:({context:n})=>mS(n.retryCount)}}).createMachine({id:"dashboard",initial:"idle",context:{epics:[],currentEpic:null,currentStory:null,error:null,retryCount:0,wsUrl:"ws://localhost:3847",subscribedStories:[]},states:{idle:{on:{CONNECT:{target:"loading",actions:["clearError","resetRetryCount"]},EPICS_LOADED:{actions:[{type:"setEpics",params:({event:n})=>({epics:n.epics})}]},EPIC_LOADED:{actions:[{type:"setCurrentEpic",params:({event:n})=>({epic:n.epic})}]},STORY_LOADED:{actions:[{type:"setCurrentStory",params:({event:n})=>({story:n.story})}]},CLEAR_EPIC:{actions:["clearCurrentEpic"]},CLEAR_STORY:{actions:["clearCurrentStory"]}}},loading:{entry:["clearError"],invoke:{id:"websocket",src:"websocket",input:({context:n})=>({wsUrl:n.wsUrl})},on:{WS_CONNECTED:{target:"connected",actions:["resetRetryCount"]},WS_ERROR:{target:"error",actions:[{type:"setError",params:({event:n})=>({error:n.error})}]},WS_DISCONNECTED:{target:"reconnecting"}}},connected:{invoke:{id:"websocket",src:"websocket",input:({context:n})=>({wsUrl:n.wsUrl})},on:{DISCONNECT:{target:"idle"},EPICS_LOADED:{actions:[{type:"setEpics",params:({event:n})=>({epics:n.epics})}]},EPIC_LOADED:{actions:[{type:"setCurrentEpic",params:({event:n})=>({epic:n.epic})}]},STORY_LOADED:{actions:[{type:"setCurrentStory",params:({event:n})=>({story:n.story})}]},CLEAR_EPIC:{actions:["clearCurrentEpic"]},CLEAR_STORY:{actions:["clearCurrentStory"]},EPICS_UPDATED:{actions:[{type:"updateEpics",params:({event:n})=>({epics:n.epics})}]},STORY_UPDATED:{actions:[{type:"updateStory",params:({event:n})=>({story:n.story})}]},WS_DISCONNECTED:{target:"reconnecting"},WS_ERROR:{target:"reconnecting",actions:[{type:"setError",params:({event:n})=>({error:n.error})}]},ERROR:{actions:[{type:"setError",params:({event:n})=>({error:n.error})}]},SUBSCRIBE_STORY:{actions:[{type:"addSubscription",params:({event:n})=>({epicSlug:n.epicSlug,storySlug:n.storySlug})}]},UNSUBSCRIBE_STORY:{actions:[{type:"removeSubscription",params:({event:n})=>({epicSlug:n.epicSlug,storySlug:n.storySlug})}]}}},reconnecting:{entry:["incrementRetryCount"],after:{backoffDelay:[{target:"loading",guard:"canRetry"},{target:"error",guard:"hasMaxRetries",actions:[{type:"setError",params:()=>({error:"Maximum reconnection attempts reached"})}]}]},on:{RETRY:{target:"loading",actions:["resetRetryCount"]},DISCONNECT:{target:"idle"}}},error:{on:{RETRY:{target:"loading",actions:["clearError","resetRetryCount"]},DISCONNECT:{target:"idle"},CONNECT:{target:"loading",actions:["clearError","resetRetryCount"]}}}}}),mu=pS(gS),yS=mu.Provider,xS=mu.useActorRef,pp=mu.useSelector;function di(){const n=xS(),o=pp(N=>N.value),s=pp(N=>N.context),l=x.useCallback(()=>n.send({type:"CONNECT"}),[n]),a=x.useCallback(()=>n.send({type:"DISCONNECT"}),[n]),d=x.useCallback(()=>n.send({type:"RETRY"}),[n]),f=x.useCallback(N=>n.send({type:"EPICS_LOADED",epics:N}),[n]),p=x.useCallback(N=>n.send({type:"EPIC_LOADED",epic:N}),[n]),m=x.useCallback(N=>n.send({type:"STORY_LOADED",story:N}),[n]),v=x.useCallback(()=>n.send({type:"CLEAR_EPIC"}),[n]),w=x.useCallback(()=>n.send({type:"CLEAR_STORY"}),[n]),y=x.useCallback((N,R)=>n.send({type:"SUBSCRIBE_STORY",epicSlug:N,storySlug:R}),[n]),S=x.useCallback((N,R)=>n.send({type:"UNSUBSCRIBE_STORY",epicSlug:N,storySlug:R}),[n]);return x.useMemo(()=>({state:o,isIdle:o==="idle",isLoading:o==="loading",isConnected:o==="connected",isReconnecting:o==="reconnecting",isError:o==="error",epics:s.epics,currentEpic:s.currentEpic,currentStory:s.currentStory,error:s.error,retryCount:s.retryCount,subscribedStories:s.subscribedStories,connect:l,disconnect:a,retry:d,setEpics:f,setCurrentEpic:p,setCurrentStory:m,clearCurrentEpic:v,clearCurrentStory:w,subscribeToStory:y,unsubscribeFromStory:S,actorRef:n}),[o,s.epics,s.currentEpic,s.currentStory,s.error,s.retryCount,s.subscribedStories,l,a,d,f,p,m,v,w,y,S,n])}const Bt=new Set,Jh=1/0,wS=5e3;function SS(n,o){const s=`error-${n}`;if(Bt.has(s))return;Bt.add(s);const{dismiss:l}=oi({variant:"destructive",title:n,description:o,duration:Jh,onOpenChange:a=>{a||Bt.delete(s)}});return l}function ES(n){const o="reconnecting";if(Bt.has(o))return;Bt.add(o);const{dismiss:s}=oi({title:"Reconnecting...",description:`Attempting to reconnect (attempt ${n})`,duration:wS,onOpenChange:l=>{l||Bt.delete(o)}});return s}function kS(n,o){const s="connection-error";if(Bt.has(s))return;Bt.add(s);const{dismiss:l}=oi({variant:"destructive",title:"Connection Error",description:n,duration:Jh,action:o?Ut.createElement(kh,{altText:"Retry connection",onClick:()=>{l(),o()}},"Retry"):void 0,onOpenChange:a=>{a||Bt.delete(s)}});return l}function vu(n,o){const s=o||`Failed to fetch data from ${n}`;return SS("API Error",s)}function CS(){const{isError:n,isReconnecting:o,error:s,retryCount:l,retry:a}=di(),d=x.useRef(!1),f=x.useRef(!1);x.useEffect(()=>{n&&!d.current&&kS(s||"Connection to server failed",a),d.current=n},[n,s,a]),x.useEffect(()=>{o&&!f.current&&ES(l),f.current=o},[o,l])}function _S(){return CS(),g.jsxs("div",{className:"min-h-screen bg-bg",children:[g.jsx("header",{className:"border-b border-border-muted bg-bg-dark",children:g.jsxs("div",{className:"container mx-auto px-4 py-4",children:[g.jsx("div",{className:"flex items-center justify-between",children:g.jsxs("h1",{className:"text-xl font-bold text-text",children:[g.jsx("span",{className:"text-primary",children:"SAGA"})," Dashboard"]})}),g.jsx("div",{className:"mt-2",children:g.jsx(nx,{})})]})}),g.jsx("main",{className:"container mx-auto px-4 py-6",children:g.jsx(Py,{})}),g.jsx(U0,{})]})}const Vt=x.forwardRef(({className:n,...o},s)=>g.jsx("div",{ref:s,className:Ye("rounded-lg border bg-card text-card-foreground shadow-sm",n),...o}));Vt.displayName="Card";const Sn=x.forwardRef(({className:n,...o},s)=>g.jsx("div",{ref:s,className:Ye("flex flex-col space-y-1.5 p-6",n),...o}));Sn.displayName="CardHeader";const Er=x.forwardRef(({className:n,...o},s)=>g.jsx("div",{ref:s,className:Ye("text-2xl font-semibold leading-none tracking-tight",n),...o}));Er.displayName="CardTitle";const TS=x.forwardRef(({className:n,...o},s)=>g.jsx("div",{ref:s,className:Ye("text-sm text-muted-foreground",n),...o}));TS.displayName="CardDescription";const Wt=x.forwardRef(({className:n,...o},s)=>g.jsx("div",{ref:s,className:Ye("p-6 pt-0",n),...o}));Wt.displayName="CardContent";const NS=x.forwardRef(({className:n,...o},s)=>g.jsx("div",{ref:s,className:Ye("flex items-center p-6 pt-0",n),...o}));NS.displayName="CardFooter";const RS=ah("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Tr({className:n,variant:o,...s}){return g.jsx("div",{className:Ye(RS({variant:o}),n),...s})}function PS(n,o=[]){let s=[];function l(d,f){const p=x.createContext(f);p.displayName=d+"Context";const m=s.length;s=[...s,f];const v=y=>{var $;const{scope:S,children:N,...R}=y,T=(($=S==null?void 0:S[n])==null?void 0:$[m])||p,C=x.useMemo(()=>R,Object.values(R));return g.jsx(T.Provider,{value:C,children:N})};v.displayName=d+"Provider";function w(y,S){var T;const N=((T=S==null?void 0:S[n])==null?void 0:T[m])||p,R=x.useContext(N);if(R)return R;if(f!==void 0)return f;throw new Error(`\`${y}\` must be used within \`${d}\``)}return[v,w]}const a=()=>{const d=s.map(f=>x.createContext(f));return function(p){const m=(p==null?void 0:p[n])||d;return x.useMemo(()=>({[`__scope${n}`]:{...p,[n]:m}}),[p,m])}};return a.scopeName=n,[l,jS(a,...o)]}function jS(...n){const o=n[0];if(n.length===1)return o;const s=()=>{const l=n.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(d){const f=l.reduce((p,{useScope:m,scopeName:v})=>{const y=m(d)[`__scope${v}`];return{...p,...y}},{});return x.useMemo(()=>({[`__scope${o.scopeName}`]:f}),[f])}};return s.scopeName=o.scopeName,s}var bS=Symbol.for("react.lazy"),Zs=ti[" use ".trim().toString()];function IS(n){return typeof n=="object"&&n!==null&&"then"in n}function qh(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===bS&&"_payload"in n&&IS(n._payload)}function OS(n){const o=AS(n),s=x.forwardRef((l,a)=>{let{children:d,...f}=l;qh(d)&&typeof Zs=="function"&&(d=Zs(d._payload));const p=x.Children.toArray(d),m=p.find(DS);if(m){const v=m.props.children,w=p.map(y=>y===m?x.Children.count(v)>1?x.Children.only(null):x.isValidElement(v)?v.props.children:null:y);return g.jsx(o,{...f,ref:a,children:x.isValidElement(v)?x.cloneElement(v,void 0,w):null})}return g.jsx(o,{...f,ref:a,children:d})});return s.displayName=`${n}.Slot`,s}function AS(n){const o=x.forwardRef((s,l)=>{let{children:a,...d}=s;if(qh(a)&&typeof Zs=="function"&&(a=Zs(a._payload)),x.isValidElement(a)){const f=zS(a),p=MS(d,a.props);return a.type!==x.Fragment&&(p.ref=l?Ja(l,f):f),x.cloneElement(a,p)}return x.Children.count(a)>1?x.Children.only(null):null});return o.displayName=`${n}.SlotClone`,o}var LS=Symbol("radix.slottable");function DS(n){return x.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===LS}function MS(n,o){const s={...o};for(const l in o){const a=n[l],d=o[l];/^on[A-Z]/.test(l)?a&&d?s[l]=(...p)=>{const m=d(...p);return a(...p),m}:a&&(s[l]=a):l==="style"?s[l]={...a,...d}:l==="className"&&(s[l]=[a,d].filter(Boolean).join(" "))}return{...n,...s}}function zS(n){var l,a;let o=(l=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:l.get,s=o&&"isReactWarning"in o&&o.isReactWarning;return s?n.ref:(o=(a=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:a.get,s=o&&"isReactWarning"in o&&o.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var FS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Zh=FS.reduce((n,o)=>{const s=OS(`Primitive.${o}`),l=x.forwardRef((a,d)=>{const{asChild:f,...p}=a,m=f?s:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(m,{...p,ref:d})});return l.displayName=`Primitive.${o}`,{...n,[o]:l}},{}),gu="Progress",yu=100,[$S]=PS(gu),[US,BS]=$S(gu),em=x.forwardRef((n,o)=>{const{__scopeProgress:s,value:l=null,max:a,getValueLabel:d=VS,...f}=n;(a||a===0)&&!hp(a)&&console.error(WS(`${a}`,"Progress"));const p=hp(a)?a:yu;l!==null&&!mp(l,p)&&console.error(HS(`${l}`,"Progress"));const m=mp(l,p)?l:null,v=ei(m)?d(m,p):void 0;return g.jsx(US,{scope:s,value:m,max:p,children:g.jsx(Zh.div,{"aria-valuemax":p,"aria-valuemin":0,"aria-valuenow":ei(m)?m:void 0,"aria-valuetext":v,role:"progressbar","data-state":rm(m,p),"data-value":m??void 0,"data-max":p,...f,ref:o})})});em.displayName=gu;var tm="ProgressIndicator",nm=x.forwardRef((n,o)=>{const{__scopeProgress:s,...l}=n,a=BS(tm,s);return g.jsx(Zh.div,{"data-state":rm(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...l,ref:o})});nm.displayName=tm;function VS(n,o){return`${Math.round(n/o*100)}%`}function rm(n,o){return n==null?"indeterminate":n===o?"complete":"loading"}function ei(n){return typeof n=="number"}function hp(n){return ei(n)&&!isNaN(n)&&n>0}function mp(n,o){return ei(n)&&!isNaN(n)&&n<=o&&n>=0}function WS(n,o){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${o}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${yu}\`.`}function HS(n,o){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${o}\`. The \`value\` prop must be:
|
|
161
|
+
- a positive number
|
|
162
|
+
- less than the value passed to \`max\` (or ${yu} if no \`max\` prop is set)
|
|
163
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
164
|
+
|
|
165
|
+
Defaulting to \`null\`.`}var om=em,GS=nm;const xu=x.forwardRef(({className:n,value:o,...s},l)=>g.jsx(om,{ref:l,className:Ye("relative h-4 w-full overflow-hidden rounded-full bg-secondary",n),...s,children:g.jsx(GS,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(o||0)}%)`}})}));xu.displayName=om.displayName;function Ta(){return g.jsxs(Vt,{className:"animate-pulse","data-testid":"epic-card-skeleton",children:[g.jsx(Sn,{children:g.jsx("div",{className:"h-6 w-48 bg-bg-light rounded"})}),g.jsxs(Wt,{className:"space-y-4",children:[g.jsx("div",{className:"h-4 w-full bg-bg-light rounded"}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx("div",{className:"h-6 w-16 bg-bg-light rounded-full"}),g.jsx("div",{className:"h-6 w-16 bg-bg-light rounded-full"}),g.jsx("div",{className:"h-6 w-16 bg-bg-light rounded-full"})]})]})]})}function Fs({status:n,count:o}){const s={ready:"bg-text-muted/20 text-text-muted",in_progress:"bg-primary/20 text-primary",blocked:"bg-danger/20 text-danger",completed:"bg-success/20 text-success"},l={ready:"Ready",in_progress:"In Progress",blocked:"Blocked",completed:"Completed"};return g.jsxs(Tr,{className:s[n],children:[l[n],": ",o]})}function KS({epic:n}){const{storyCounts:o}=n,s=o.total>0?Math.round(o.completed/o.total*100):0;return g.jsx(yn,{to:`/epic/${n.slug}`,className:"block",children:g.jsxs(Vt,{className:"hover:border-primary/50 transition-colors cursor-pointer",children:[g.jsx(Sn,{children:g.jsx(Er,{className:"text-lg",children:n.title})}),g.jsxs(Wt,{className:"space-y-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsx("span",{className:"text-text-muted",children:"Progress"}),g.jsxs("span",{className:"text-text-muted",children:[o.completed,"/",o.total," stories"]})]}),g.jsx(xu,{value:s})]}),g.jsxs("div",{className:"flex flex-wrap gap-2",children:[o.ready>0&&g.jsx(Fs,{status:"ready",count:o.ready}),o.inProgress>0&&g.jsx(Fs,{status:"in_progress",count:o.inProgress}),o.blocked>0&&g.jsx(Fs,{status:"blocked",count:o.blocked}),o.completed>0&&g.jsx(Fs,{status:"completed",count:o.completed})]})]})]})})}function YS(){const{epics:n,setEpics:o,isLoading:s}=di(),[l,a]=x.useState(!1),[d,f]=x.useState(!0);x.useEffect(()=>{(async()=>{try{const y=await fetch("/api/epics");if(y.ok){const S=await y.json();o(S)}}catch(y){const S=y instanceof Error?y.message:"Unknown error";vu("/api/epics",S)}finally{f(!1)}})()},[o]);const p=s||d,m=n.filter(w=>l?!0:!w.isArchived),v=n.some(w=>w.isArchived);return g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("h1",{className:"text-2xl font-bold text-text",children:"Epics"}),v&&g.jsxs("label",{className:"flex items-center gap-2 text-sm text-text-muted cursor-pointer",children:[g.jsx("input",{type:"checkbox",checked:l,onChange:w=>a(w.target.checked),className:"rounded border-border"}),"Show archived"]})]}),p?g.jsxs("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:[g.jsx(Ta,{}),g.jsx(Ta,{}),g.jsx(Ta,{})]}):m.length===0?g.jsxs("div",{className:"text-center py-12",children:[g.jsx("p",{className:"text-text-muted text-lg",children:"No epics found."}),g.jsxs("p",{className:"text-text-muted",children:["Run ",g.jsx("code",{className:"text-primary",children:"/create-epic"})," to get started."]})]}):g.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:m.map(w=>g.jsx(KS,{epic:w},w.slug))})]})}const vp={blocked:0,in_progress:1,ready:2,completed:3};function QS(){return g.jsxs("div",{className:"animate-pulse space-y-4","data-testid":"epic-header-skeleton",children:[g.jsx("div",{className:"h-8 w-64 bg-bg-light rounded"}),g.jsxs("div",{className:"space-y-2",children:[g.jsxs("div",{className:"flex justify-between",children:[g.jsx("div",{className:"h-4 w-24 bg-bg-light rounded"}),g.jsx("div",{className:"h-4 w-32 bg-bg-light rounded"})]}),g.jsx("div",{className:"h-4 w-full bg-bg-light rounded"})]})]})}function Na(){return g.jsxs(Vt,{className:"animate-pulse","data-testid":"story-card-skeleton",children:[g.jsx(Sn,{children:g.jsx("div",{className:"h-5 w-48 bg-bg-light rounded"})}),g.jsxs(Wt,{className:"space-y-3",children:[g.jsx("div",{className:"h-6 w-24 bg-bg-light rounded-full"}),g.jsx("div",{className:"h-4 w-32 bg-bg-light rounded"})]})]})}function XS({status:n}){const o={ready:"bg-text-muted/20 text-text-muted",in_progress:"bg-primary/20 text-primary",blocked:"bg-danger/20 text-danger",completed:"bg-success/20 text-success"},s={ready:"Ready",in_progress:"In Progress",blocked:"Blocked",completed:"Completed"};return g.jsx(Tr,{className:o[n],children:s[n]})}function JS(n){return{completed:n.filter(s=>s.status==="completed").length,total:n.length}}function qS({story:n,epicSlug:o}){const s=JS(n.tasks);return g.jsx(yn,{to:`/epic/${o}/story/${n.slug}`,className:"block",children:g.jsxs(Vt,{className:"hover:border-primary/50 transition-colors cursor-pointer",children:[g.jsx(Sn,{className:"pb-2",children:g.jsx(Er,{className:"text-base",children:n.title})}),g.jsxs(Wt,{className:"space-y-3",children:[g.jsx(XS,{status:n.status}),g.jsxs("p",{className:"text-sm text-text-muted",children:[s.completed,"/",s.total," tasks completed"]})]})]})})}function ZS(){const{slug:n}=Xa(),{currentEpic:o,setCurrentEpic:s,clearCurrentEpic:l,isLoading:a}=di(),[d,f]=x.useState(!0),[p,m]=x.useState(!1),[v,w]=x.useState(null);x.useEffect(()=>((async()=>{if(n){f(!0),m(!1),w(null);try{const T=await fetch(`/api/epics/${n}`);if(T.status===404){m(!0);return}if(!T.ok){w("Failed to load epic");return}const C=await T.json();s(C)}catch(T){w("Failed to load epic");const C=T instanceof Error?T.message:"Unknown error";vu(`/api/epics/${n}`,C)}finally{f(!1)}}})(),()=>{l()}),[n,s,l]);const y=a||d,S=o&&o.storyCounts.total>0?Math.round(o.storyCounts.completed/o.storyCounts.total*100):0,N=o?[...o.stories].sort((R,T)=>vp[R.status]-vp[T.status]):[];return p?g.jsxs("div",{className:"text-center py-12",children:[g.jsx("h1",{className:"text-2xl font-bold text-text mb-2",children:"Epic not found"}),g.jsxs("p",{className:"text-text-muted mb-4",children:['The epic "',n,'" does not exist.']}),g.jsx(yn,{to:"/",className:"text-primary hover:underline",children:"← Back to epic list"})]}):v&&!y?g.jsxs("div",{className:"text-center py-12",children:[g.jsx("h1",{className:"text-2xl font-bold text-danger mb-2",children:"Error"}),g.jsx("p",{className:"text-text-muted mb-4",children:v}),g.jsx(yn,{to:"/",className:"text-primary hover:underline",children:"← Back to epic list"})]}):y||!o?g.jsxs("div",{className:"space-y-6",children:[g.jsx(QS,{}),g.jsxs("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:[g.jsx(Na,{}),g.jsx(Na,{}),g.jsx(Na,{})]})]}):g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{className:"space-y-4",children:[g.jsx("h1",{className:"text-2xl font-bold text-text",children:o.title}),g.jsxs("div",{className:"space-y-2",children:[g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsx("span",{className:"text-text-muted",children:"Progress"}),g.jsxs("span",{className:"text-text-muted",children:[o.storyCounts.completed,"/",o.storyCounts.total," stories completed"]})]}),g.jsx(xu,{value:S})]})]}),N.length===0?g.jsxs("div",{className:"text-center py-12",children:[g.jsx("p",{className:"text-text-muted text-lg",children:"No stories in this epic."}),g.jsxs("p",{className:"text-text-muted",children:["Run ",g.jsx("code",{className:"text-primary",children:"/generate-stories"})," to create stories."]})]}):g.jsxs("div",{className:"space-y-4",children:[g.jsx("h2",{className:"text-lg font-semibold text-text",children:"Stories"}),g.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:N.map(R=>g.jsx(qS,{story:R,epicSlug:n},R.slug))})]})]})}var eE=ti[" useId ".trim().toString()]||(()=>{}),tE=0;function wu(n){const[o,s]=x.useState(eE());return Fn(()=>{s(l=>l??String(tE++))},[n]),o?`radix-${o}`:""}var nE=x.createContext(void 0);function sm(n){const o=x.useContext(nE);return n||o||"ltr"}var Ra="rovingFocusGroup.onEntryFocus",rE={bubbles:!1,cancelable:!0},Co="RovingFocusGroup",[Ha,im,oE]=Ap(Co),[sE,lm]=So(Co,[oE]),[iE,lE]=sE(Co),am=x.forwardRef((n,o)=>g.jsx(Ha.Provider,{scope:n.__scopeRovingFocusGroup,children:g.jsx(Ha.Slot,{scope:n.__scopeRovingFocusGroup,children:g.jsx(aE,{...n,ref:o})})}));am.displayName=Co;var aE=x.forwardRef((n,o)=>{const{__scopeRovingFocusGroup:s,orientation:l,loop:a=!1,dir:d,currentTabStopId:f,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:m,onEntryFocus:v,preventScrollOnEntryFocus:w=!1,...y}=n,S=x.useRef(null),N=Ht(o,S),R=sm(d),[T,C]=ii({prop:f,defaultProp:p??null,onChange:m,caller:Co}),[$,F]=x.useState(!1),L=xn(v),B=im(s),ne=x.useRef(!1),[te,Z]=x.useState(0);return x.useEffect(()=>{const V=S.current;if(V)return V.addEventListener(Ra,L),()=>V.removeEventListener(Ra,L)},[L]),g.jsx(iE,{scope:s,orientation:l,dir:R,loop:a,currentTabStopId:T,onItemFocus:x.useCallback(V=>C(V),[C]),onItemShiftTab:x.useCallback(()=>F(!0),[]),onFocusableItemAdd:x.useCallback(()=>Z(V=>V+1),[]),onFocusableItemRemove:x.useCallback(()=>Z(V=>V-1),[]),children:g.jsx(Ue.div,{tabIndex:$||te===0?-1:0,"data-orientation":l,...y,ref:N,style:{outline:"none",...n.style},onMouseDown:be(n.onMouseDown,()=>{ne.current=!0}),onFocus:be(n.onFocus,V=>{const xe=!ne.current;if(V.target===V.currentTarget&&xe&&!$){const Ne=new CustomEvent(Ra,rE);if(V.currentTarget.dispatchEvent(Ne),!Ne.defaultPrevented){const Oe=B().filter(ue=>ue.focusable),ke=Oe.find(ue=>ue.active),Re=Oe.find(ue=>ue.id===T),ve=[ke,Re,...Oe].filter(Boolean).map(ue=>ue.ref.current);dm(ve,w)}}ne.current=!1}),onBlur:be(n.onBlur,()=>F(!1))})})}),um="RovingFocusGroupItem",cm=x.forwardRef((n,o)=>{const{__scopeRovingFocusGroup:s,focusable:l=!0,active:a=!1,tabStopId:d,children:f,...p}=n,m=wu(),v=d||m,w=lE(um,s),y=w.currentTabStopId===v,S=im(s),{onFocusableItemAdd:N,onFocusableItemRemove:R,currentTabStopId:T}=w;return x.useEffect(()=>{if(l)return N(),()=>R()},[l,N,R]),g.jsx(Ha.ItemSlot,{scope:s,id:v,focusable:l,active:a,children:g.jsx(Ue.span,{tabIndex:y?0:-1,"data-orientation":w.orientation,...p,ref:o,onMouseDown:be(n.onMouseDown,C=>{l?w.onItemFocus(v):C.preventDefault()}),onFocus:be(n.onFocus,()=>w.onItemFocus(v)),onKeyDown:be(n.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){w.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const $=dE(C,w.orientation,w.dir);if($!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let L=S().filter(B=>B.focusable).map(B=>B.ref.current);if($==="last")L.reverse();else if($==="prev"||$==="next"){$==="prev"&&L.reverse();const B=L.indexOf(C.currentTarget);L=w.loop?fE(L,B+1):L.slice(B+1)}setTimeout(()=>dm(L))}}),children:typeof f=="function"?f({isCurrentTabStop:y,hasTabStop:T!=null}):f})})});cm.displayName=um;var uE={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function cE(n,o){return o!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function dE(n,o,s){const l=cE(n.key,s);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(l))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(l)))return uE[l]}function dm(n,o=!1){const s=document.activeElement;for(const l of n)if(l===s||(l.focus({preventScroll:o}),document.activeElement!==s))return}function fE(n,o){return n.map((s,l)=>n[(o+l)%n.length])}var pE=am,hE=cm,fi="Tabs",[mE]=So(fi,[lm]),fm=lm(),[vE,Su]=mE(fi),pm=x.forwardRef((n,o)=>{const{__scopeTabs:s,value:l,onValueChange:a,defaultValue:d,orientation:f="horizontal",dir:p,activationMode:m="automatic",...v}=n,w=sm(p),[y,S]=ii({prop:l,onChange:a,defaultProp:d??"",caller:fi});return g.jsx(vE,{scope:s,baseId:wu(),value:y,onValueChange:S,orientation:f,dir:w,activationMode:m,children:g.jsx(Ue.div,{dir:w,"data-orientation":f,...v,ref:o})})});pm.displayName=fi;var hm="TabsList",mm=x.forwardRef((n,o)=>{const{__scopeTabs:s,loop:l=!0,...a}=n,d=Su(hm,s),f=fm(s);return g.jsx(pE,{asChild:!0,...f,orientation:d.orientation,dir:d.dir,loop:l,children:g.jsx(Ue.div,{role:"tablist","aria-orientation":d.orientation,...a,ref:o})})});mm.displayName=hm;var vm="TabsTrigger",gm=x.forwardRef((n,o)=>{const{__scopeTabs:s,value:l,disabled:a=!1,...d}=n,f=Su(vm,s),p=fm(s),m=wm(f.baseId,l),v=Sm(f.baseId,l),w=l===f.value;return g.jsx(hE,{asChild:!0,...p,focusable:!a,active:w,children:g.jsx(Ue.button,{type:"button",role:"tab","aria-selected":w,"aria-controls":v,"data-state":w?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:m,...d,ref:o,onMouseDown:be(n.onMouseDown,y=>{!a&&y.button===0&&y.ctrlKey===!1?f.onValueChange(l):y.preventDefault()}),onKeyDown:be(n.onKeyDown,y=>{[" ","Enter"].includes(y.key)&&f.onValueChange(l)}),onFocus:be(n.onFocus,()=>{const y=f.activationMode!=="manual";!w&&!a&&y&&f.onValueChange(l)})})})});gm.displayName=vm;var ym="TabsContent",xm=x.forwardRef((n,o)=>{const{__scopeTabs:s,value:l,forceMount:a,children:d,...f}=n,p=Su(ym,s),m=wm(p.baseId,l),v=Sm(p.baseId,l),w=l===p.value,y=x.useRef(w);return x.useEffect(()=>{const S=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(S)},[]),g.jsx(si,{present:a||w,children:({present:S})=>g.jsx(Ue.div,{"data-state":w?"active":"inactive","data-orientation":p.orientation,role:"tabpanel","aria-labelledby":m,hidden:!S,id:v,tabIndex:0,...f,ref:o,style:{...n.style,animationDuration:y.current?"0s":void 0},children:S&&d})})});xm.displayName=ym;function wm(n,o){return`${n}-trigger-${o}`}function Sm(n,o){return`${n}-content-${o}`}var gE=pm,Em=mm,km=gm,Cm=xm;const yE=gE,_m=x.forwardRef(({className:n,...o},s)=>g.jsx(Em,{ref:s,className:Ye("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",n),...o}));_m.displayName=Em.displayName;const Vs=x.forwardRef(({className:n,...o},s)=>g.jsx(km,{ref:s,className:Ye("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",n),...o}));Vs.displayName=km.displayName;const Ws=x.forwardRef(({className:n,...o},s)=>g.jsx(Cm,{ref:s,className:Ye("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n),...o}));Ws.displayName=Cm.displayName;var pi="Collapsible",[xE]=So(pi),[wE,Eu]=xE(pi),Tm=x.forwardRef((n,o)=>{const{__scopeCollapsible:s,open:l,defaultOpen:a,disabled:d,onOpenChange:f,...p}=n,[m,v]=ii({prop:l,defaultProp:a??!1,onChange:f,caller:pi});return g.jsx(wE,{scope:s,disabled:d,contentId:wu(),open:m,onOpenToggle:x.useCallback(()=>v(w=>!w),[v]),children:g.jsx(Ue.div,{"data-state":Cu(m),"data-disabled":d?"":void 0,...p,ref:o})})});Tm.displayName=pi;var Nm="CollapsibleTrigger",Rm=x.forwardRef((n,o)=>{const{__scopeCollapsible:s,...l}=n,a=Eu(Nm,s);return g.jsx(Ue.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":Cu(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...l,ref:o,onClick:be(n.onClick,a.onOpenToggle)})});Rm.displayName=Nm;var ku="CollapsibleContent",Pm=x.forwardRef((n,o)=>{const{forceMount:s,...l}=n,a=Eu(ku,n.__scopeCollapsible);return g.jsx(si,{present:s||a.open,children:({present:d})=>g.jsx(SE,{...l,ref:o,present:d})})});Pm.displayName=ku;var SE=x.forwardRef((n,o)=>{const{__scopeCollapsible:s,present:l,children:a,...d}=n,f=Eu(ku,s),[p,m]=x.useState(l),v=x.useRef(null),w=Ht(o,v),y=x.useRef(0),S=y.current,N=x.useRef(0),R=N.current,T=f.open||p,C=x.useRef(T),$=x.useRef(void 0);return x.useEffect(()=>{const F=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(F)},[]),Fn(()=>{const F=v.current;if(F){$.current=$.current||{transitionDuration:F.style.transitionDuration,animationName:F.style.animationName},F.style.transitionDuration="0s",F.style.animationName="none";const L=F.getBoundingClientRect();y.current=L.height,N.current=L.width,C.current||(F.style.transitionDuration=$.current.transitionDuration,F.style.animationName=$.current.animationName),m(l)}},[f.open,l]),g.jsx(Ue.div,{"data-state":Cu(f.open),"data-disabled":f.disabled?"":void 0,id:f.contentId,hidden:!T,...d,ref:w,style:{"--radix-collapsible-content-height":S?`${S}px`:void 0,"--radix-collapsible-content-width":R?`${R}px`:void 0,...n.style},children:T&&a})});function Cu(n){return n?"open":"closed"}var EE=Tm;const kE=EE,CE=Rm,_E=Pm;function TE(){return g.jsxs("div",{className:"animate-pulse space-y-4","data-testid":"story-header-skeleton",children:[g.jsx("div",{className:"h-8 w-64 bg-bg-light rounded"}),g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx("div",{className:"h-6 w-24 bg-bg-light rounded-full"}),g.jsx("div",{className:"h-4 w-32 bg-bg-light rounded"})]})]})}function NE(){return g.jsxs("div",{className:"animate-pulse space-y-4","data-testid":"story-content-skeleton",children:[g.jsx("div",{className:"h-6 w-48 bg-bg-light rounded"}),g.jsxs("div",{className:"space-y-2",children:[g.jsx("div",{className:"h-4 w-full bg-bg-light rounded"}),g.jsx("div",{className:"h-4 w-3/4 bg-bg-light rounded"}),g.jsx("div",{className:"h-4 w-5/6 bg-bg-light rounded"})]})]})}function RE({status:n}){const o={ready:"bg-text-muted/20 text-text-muted",in_progress:"bg-primary/20 text-primary",blocked:"bg-danger/20 text-danger",completed:"bg-success/20 text-success"},s={ready:"Ready",in_progress:"In Progress",blocked:"Blocked",completed:"Completed"};return g.jsx(Tr,{className:o[n],children:s[n]})}function PE({status:n}){const o={className:"w-5 h-5 pointer-events-none cursor-default"};switch(n){case"completed":return g.jsx(Op,{...o,className:`${o.className} text-success`});case"in_progress":return g.jsx(zf,{...o,className:`${o.className} text-primary fill-primary/20`});case"pending":default:return g.jsx(zf,{...o,className:`${o.className} text-text-muted`})}}function jE({task:n}){return g.jsxs("div",{className:"flex items-center gap-3 py-2 px-3 rounded-md hover:bg-bg-light/50",children:[g.jsx(PE,{status:n.status}),g.jsx("span",{className:n.status==="completed"?"text-text-muted line-through":"text-text",children:n.title}),g.jsx(Tr,{className:`ml-auto text-xs ${n.status==="completed"?"bg-success/20 text-success":n.status==="in_progress"?"bg-primary/20 text-primary":"bg-text-muted/20 text-text-muted"}`,children:n.status.replace("_"," ")})]})}function bE(n){switch(n){case"blocker":return{bg:"bg-danger/10",text:"text-danger",border:"border-danger/30"};case"resolution":return{bg:"bg-success/10",text:"text-success",border:"border-success/30"};case"session":default:return{bg:"bg-bg-light",text:"text-text",border:"border-border-muted"}}}function Pa({entry:n,defaultOpen:o=!1}){const[s,l]=x.useState(o),a=bE(n.type);return g.jsx(kE,{open:s,onOpenChange:l,children:g.jsxs(Vt,{className:`${a.bg} border ${a.border}`,children:[g.jsx(CE,{asChild:!0,children:g.jsx(Sn,{className:"cursor-pointer hover:bg-bg-light/50 transition-colors py-3",children:g.jsxs("div",{className:"flex items-center gap-3",children:[s?g.jsx(Yy,{className:"w-4 h-4 text-text-muted"}):g.jsx(bp,{className:"w-4 h-4 text-text-muted"}),g.jsx(Tr,{className:`${a.bg} ${a.text} border ${a.border}`,children:n.type}),g.jsx(Er,{className:`text-sm font-medium ${a.text}`,children:n.title}),n.type==="blocker"&&g.jsx(Ip,{className:"w-4 h-4 text-danger ml-auto"}),n.timestamp&&g.jsx("span",{className:"text-xs text-text-muted ml-auto",children:n.timestamp})]})})}),g.jsx(_E,{children:g.jsx(Wt,{className:"pt-0 pb-4",children:g.jsx("div",{className:"prose prose-sm prose-invert max-w-none",children:g.jsx("pre",{className:"whitespace-pre-wrap text-sm text-text-muted font-mono bg-bg-dark p-3 rounded-md overflow-x-auto",children:n.content})})})})]})})}function IE(){const{epicSlug:n,storySlug:o}=Xa(),{currentStory:s,setCurrentStory:l,clearCurrentStory:a,isLoading:d,subscribeToStory:f,unsubscribeFromStory:p}=di(),[m,v]=x.useState(!0),[w,y]=x.useState(!1),[S,N]=x.useState(null);x.useEffect(()=>((async()=>{if(!(!n||!o)){v(!0),y(!1),N(null);try{const B=await fetch(`/api/stories/${n}/${o}`);if(B.status===404){y(!0);return}if(!B.ok){N("Failed to load story");return}const ne=await B.json();l(ne)}catch(B){N("Failed to load story");const ne=B instanceof Error?B.message:"Unknown error";vu(`/api/stories/${n}/${o}`,ne)}finally{v(!1)}}})(),n&&o&&f(n,o),()=>{a(),n&&o&&p(n,o)}),[n,o,l,a,f,p]);const R=d||m,T=s?{completed:s.tasks.filter(L=>L.status==="completed").length,total:s.tasks.length}:{completed:0,total:0},C=(s==null?void 0:s.journal.filter(L=>L.type==="blocker"))||[],$=(s==null?void 0:s.journal.filter(L=>L.type==="session"))||[],F=(s==null?void 0:s.journal.filter(L=>L.type==="resolution"))||[];return w?g.jsxs("div",{className:"text-center py-12",children:[g.jsx("h1",{className:"text-2xl font-bold text-text mb-2",children:"Story not found"}),g.jsxs("p",{className:"text-text-muted mb-4",children:['The story "',o,'" does not exist in epic "',n,'".']}),g.jsx(yn,{to:`/epic/${n}`,className:"text-primary hover:underline",children:"← Back to epic"})]}):S&&!R?g.jsxs("div",{className:"text-center py-12",children:[g.jsx("h1",{className:"text-2xl font-bold text-danger mb-2",children:"Error"}),g.jsx("p",{className:"text-text-muted mb-4",children:S}),g.jsx(yn,{to:`/epic/${n}`,className:"text-primary hover:underline",children:"← Back to epic"})]}):R||!s?g.jsxs("div",{className:"space-y-6",children:[g.jsx(TE,{}),g.jsx(NE,{})]}):g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex items-center gap-2 text-sm text-text-muted",children:[g.jsx(yn,{to:`/epic/${n}`,className:"hover:text-primary",children:n}),g.jsx("span",{children:"/"}),g.jsx("span",{className:"text-text",children:o})]}),g.jsx("h1",{className:"text-2xl font-bold text-text",children:s.title}),g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx(RE,{status:s.status}),g.jsxs("span",{className:"text-sm text-text-muted",children:[T.completed,"/",T.total," tasks completed"]})]})]}),g.jsxs(yE,{defaultValue:"tasks",className:"w-full",children:[g.jsxs(_m,{className:"mb-4",children:[g.jsx(Vs,{value:"tasks",children:"Tasks"}),g.jsx(Vs,{value:"content",children:"Story Content"}),g.jsxs(Vs,{value:"journal",children:["Journal",C.length>0&&g.jsx(Tr,{className:"ml-2 bg-danger/20 text-danger text-xs",children:C.length})]})]}),g.jsx(Ws,{value:"tasks",className:"space-y-4",children:g.jsxs(Vt,{children:[g.jsx(Sn,{children:g.jsx(Er,{className:"text-lg",children:"Tasks"})}),g.jsx(Wt,{children:s.tasks.length===0?g.jsx("p",{className:"text-text-muted text-center py-4",children:"No tasks defined for this story."}):g.jsx("div",{className:"divide-y divide-border-muted",children:s.tasks.map(L=>g.jsx(jE,{task:L},L.id))})})]})}),g.jsx(Ws,{value:"content",className:"space-y-4",children:g.jsxs(Vt,{children:[g.jsx(Sn,{children:g.jsx(Er,{className:"text-lg",children:"Story Content"})}),g.jsx(Wt,{children:s.content?g.jsx("div",{className:"prose prose-sm prose-invert max-w-none",children:g.jsx("pre",{className:"whitespace-pre-wrap text-sm text-text font-mono bg-bg-dark p-4 rounded-md overflow-x-auto",children:s.content})}):g.jsx("p",{className:"text-text-muted text-center py-4",children:"No story content available."})})]})}),g.jsx(Ws,{value:"journal",className:"space-y-4",children:s.journal.length===0?g.jsx(Vt,{children:g.jsx(Wt,{className:"py-8",children:g.jsx("p",{className:"text-text-muted text-center",children:"No journal entries yet."})})}):g.jsxs("div",{className:"space-y-4",children:[C.length>0&&g.jsxs("div",{className:"space-y-3",children:[g.jsxs("h3",{className:"text-sm font-semibold text-danger flex items-center gap-2",children:[g.jsx(Ip,{className:"w-4 h-4"}),"Blockers (",C.length,")"]}),C.map((L,B)=>g.jsx(Pa,{entry:L,defaultOpen:!0},`blocker-${B}`))]}),F.length>0&&g.jsxs("div",{className:"space-y-3",children:[g.jsxs("h3",{className:"text-sm font-semibold text-success flex items-center gap-2",children:[g.jsx(Op,{className:"w-4 h-4"}),"Resolutions (",F.length,")"]}),F.map((L,B)=>g.jsx(Pa,{entry:L,defaultOpen:!1},`resolution-${B}`))]}),$.length>0&&g.jsxs("div",{className:"space-y-3",children:[g.jsxs("h3",{className:"text-sm font-semibold text-text flex items-center gap-2",children:["Sessions (",$.length,")"]}),$.map((L,B)=>g.jsx(Pa,{entry:L,defaultOpen:!1},`session-${B}`))]})]})})]})]})}const OE=[{path:"/",element:g.jsx(_S,{}),children:[{path:"/",element:g.jsx(YS,{})},{path:"epic/:slug",element:g.jsx(ZS,{})},{path:"epic/:epicSlug/story/:storySlug",element:g.jsx(IE,{})}]}];function AE(){return g.jsx(zy,{children:g.jsx(by,{children:OE.map(n=>{var o;return g.jsx(ba,{path:n.path,element:n.element,children:(o=n.children)==null?void 0:o.map(s=>g.jsx(ba,{path:s.path,element:s.element},s.path))},n.path)})})})}Ag.createRoot(document.getElementById("root")).render(g.jsx(x.StrictMode,{children:g.jsx(yS,{children:g.jsx(AE,{})})}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--bg-dark: oklch(.1 .025 264);--bg: oklch(.15 .025 264);--bg-light: oklch(.2 .025 264);--text: oklch(.96 .05 264);--text-muted: oklch(.76 .05 264);--highlight: oklch(.5 .05 264);--border: oklch(.4 .05 264);--border-muted: oklch(.3 .05 264);--primary: oklch(.76 .1 264);--secondary: oklch(.76 .1 84);--danger: oklch(.7 .05 30);--warning: oklch(.7 .05 100);--success: oklch(.7 .05 160);--info: oklch(.7 .05 260);--background: var(--bg);--foreground: var(--text);--card: var(--bg-dark);--card-foreground: var(--text);--popover: var(--bg-dark);--popover-foreground: var(--text);--primary-foreground: var(--bg-dark);--secondary-foreground: var(--bg-dark);--muted: var(--bg-light);--muted-foreground: var(--text-muted);--accent: var(--bg-light);--accent-foreground: var(--text);--destructive: var(--danger);--destructive-foreground: var(--text);--input: var(--border-muted);--ring: var(--primary);--radius: .5rem}*{border-color:var(--border)}body{background-color:var(--bg);color:var(--text);font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;min-height:100vh}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.right-2{right:.5rem}.top-0{top:0}.top-2{top:.5rem}.z-\[100\]{z-index:100}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-20{height:5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-full{height:100%}.max-h-screen{max-height:100vh}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-16{width:4rem}.w-20{width:5rem}.w-24{width:6rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-5\/6{width:83.333333%}.w-64{width:16rem}.w-full{width:100%}.max-w-none{max-width:none}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-dashed{border-style:dashed}.border-border{border-color:var(--border)}.border-destructive{border-color:var(--destructive)}.border-input{border-color:var(--input)}.border-transparent{border-color:transparent}.bg-background{background-color:var(--background)}.bg-bg{background-color:var(--bg)}.bg-bg-dark{background-color:var(--bg-dark)}.bg-bg-light{background-color:var(--bg-light)}.bg-card{background-color:var(--card)}.bg-danger{background-color:var(--danger)}.bg-destructive{background-color:var(--destructive)}.bg-muted{background-color:var(--muted)}.bg-primary{background-color:var(--primary)}.bg-secondary{background-color:var(--secondary)}.bg-success{background-color:var(--success)}.bg-transparent{background-color:transparent}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.text-card-foreground{color:var(--card-foreground)}.text-danger{color:var(--danger)}.text-destructive-foreground{color:var(--destructive-foreground)}.text-foreground{color:var(--foreground)}.text-muted{color:var(--muted)}.text-muted-foreground{color:var(--muted-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-success{color:var(--success)}.text-text{color:var(--text)}.text-text-muted{color:var(--text-muted)}.line-through{text-decoration-line:line-through}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-90{opacity:.9}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: var(--background)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-secondary:hover{background-color:var(--secondary)}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-primary:hover{color:var(--primary)}.hover\:underline:hover{text-decoration-line:underline}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: var(--ring)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{background-color:var(--destructive)}.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{color:var(--destructive-foreground)}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity, 1))}.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{--tw-ring-color: var(--destructive)}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity, 1))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color: #dc2626}.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x: var(--radix-toast-swipe-end-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x: var(--radix-toast-swipe-move-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:var(--background)}.data-\[state\=active\]\:text-foreground[data-state=active]{color:var(--foreground)}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity: .8}.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y: -100%}@media(min-width:640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:flex-col{flex-direction:column}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y: 100%}}@media(min-width:768px){.md\:max-w-\[420px\]{max-width:420px}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>SAGA Dashboard</title>
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-Ct5VoJmK.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DVpp5008.css">
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div id="root"></div>
|
|
13
|
+
</body>
|
|
14
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saga-ai/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"description": "CLI for SAGA - Structured Autonomous Goal Achievement",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -31,11 +31,18 @@
|
|
|
31
31
|
"ws": "^8.19.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
+
"@chromatic-com/storybook": "^5.0.0",
|
|
35
|
+
"@playwright/test": "^1.58.0",
|
|
34
36
|
"@radix-ui/react-collapsible": "^1.1.12",
|
|
35
37
|
"@radix-ui/react-progress": "^1.1.8",
|
|
36
38
|
"@radix-ui/react-slot": "^1.2.4",
|
|
37
39
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
38
40
|
"@radix-ui/react-toast": "^1.2.15",
|
|
41
|
+
"@storybook/addon-a11y": "^10.2.1",
|
|
42
|
+
"@storybook/addon-docs": "^10.2.1",
|
|
43
|
+
"@storybook/addon-onboarding": "^10.2.1",
|
|
44
|
+
"@storybook/addon-vitest": "^10.2.1",
|
|
45
|
+
"@storybook/react-vite": "^10.2.1",
|
|
39
46
|
"@types/express": "^5.0.6",
|
|
40
47
|
"@types/node": "^22.10.0",
|
|
41
48
|
"@types/react": "^18.3.17",
|
|
@@ -43,16 +50,20 @@
|
|
|
43
50
|
"@types/supertest": "^6.0.3",
|
|
44
51
|
"@types/ws": "^8.18.1",
|
|
45
52
|
"@vitejs/plugin-react": "^4.3.4",
|
|
53
|
+
"@vitest/browser": "^3.2.4",
|
|
46
54
|
"@xstate/react": "^6.0.0",
|
|
47
55
|
"autoprefixer": "^10.4.23",
|
|
48
56
|
"class-variance-authority": "^0.7.1",
|
|
49
57
|
"clsx": "^2.1.1",
|
|
58
|
+
"concurrently": "^9.2.1",
|
|
50
59
|
"esbuild": "^0.24.0",
|
|
51
60
|
"lucide-react": "^0.563.0",
|
|
61
|
+
"playwright": "^1.58.0",
|
|
52
62
|
"postcss": "^8.5.6",
|
|
53
63
|
"react": "^18.3.1",
|
|
54
64
|
"react-dom": "^18.3.1",
|
|
55
65
|
"react-router-dom": "^6.30.0",
|
|
66
|
+
"storybook": "^10.2.1",
|
|
56
67
|
"supertest": "^7.2.2",
|
|
57
68
|
"tailwind-merge": "^3.4.0",
|
|
58
69
|
"tailwindcss": "^3.4.19",
|
|
@@ -60,16 +71,7 @@
|
|
|
60
71
|
"typescript": "^5.7.0",
|
|
61
72
|
"vite": "^6.0.5",
|
|
62
73
|
"vitest": "^3.2.4",
|
|
63
|
-
"xstate": "^5.26.0"
|
|
64
|
-
"storybook": "^10.2.1",
|
|
65
|
-
"@storybook/react-vite": "^10.2.1",
|
|
66
|
-
"@chromatic-com/storybook": "^5.0.0",
|
|
67
|
-
"@storybook/addon-vitest": "^10.2.1",
|
|
68
|
-
"@storybook/addon-a11y": "^10.2.1",
|
|
69
|
-
"@storybook/addon-docs": "^10.2.1",
|
|
70
|
-
"@storybook/addon-onboarding": "^10.2.1",
|
|
71
|
-
"playwright": "^1.58.0",
|
|
72
|
-
"@vitest/browser": "^3.2.4"
|
|
74
|
+
"xstate": "^5.26.0"
|
|
73
75
|
},
|
|
74
76
|
"engines": {
|
|
75
77
|
"node": ">=18.0.0"
|
|
@@ -82,11 +84,17 @@
|
|
|
82
84
|
"build": "esbuild src/cli.ts --bundle --platform=node --outfile=dist/cli.cjs --format=cjs --banner:js='#!/usr/bin/env node' --external:express --external:ws --external:chokidar --external:gray-matter --external:fuse.js --external:commander",
|
|
83
85
|
"build:client": "vite build --config src/client/vite.config.ts",
|
|
84
86
|
"build:all": "pnpm build && pnpm build:client",
|
|
85
|
-
"dev": "npm run build && node dist/cli.
|
|
87
|
+
"dev": "npm run build && node dist/cli.cjs",
|
|
86
88
|
"dev:client": "vite --config src/client/vite.config.ts",
|
|
87
|
-
"test": "vitest run",
|
|
89
|
+
"test": "concurrently -g \"vitest run\" \"pnpm run test:integration\" \"pnpm run test:e2e\"",
|
|
88
90
|
"test:watch": "vitest",
|
|
89
|
-
"
|
|
91
|
+
"test:integration": "playwright test --config src/client/playwright.config.ts",
|
|
92
|
+
"test:integration:ui": "playwright test --config src/client/playwright.config.ts --ui",
|
|
93
|
+
"test:e2e": "playwright test --config src/client/playwright.e2e.config.ts",
|
|
94
|
+
"test:e2e:ui": "playwright test --config src/client/playwright.e2e.config.ts --ui",
|
|
95
|
+
"test-storybook": "vitest --project=storybook",
|
|
96
|
+
"test:storybook": "vitest run --project=storybook",
|
|
97
|
+
"publish:npm": "pnpm build:all && pnpm test && pnpm publish --access public",
|
|
90
98
|
"storybook": "storybook dev -p 6006 -c src/client/.storybook",
|
|
91
99
|
"build-storybook": "storybook build -c src/client/.storybook -o storybook-static"
|
|
92
100
|
}
|