@polderlabs/bizar 7.0.1 → 7.0.2
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/bizar-dash/dist/assets/EnvVarsSection-BfhAz3ax.js +114 -0
- package/bizar-dash/dist/assets/EnvVarsSection-BfhAz3ax.js.map +1 -0
- package/bizar-dash/dist/assets/MobileChat-DLWdv6tQ.js +1 -0
- package/bizar-dash/dist/assets/{MobileChat-BRFjer8p.js.map → MobileChat-DLWdv6tQ.js.map} +1 -1
- package/bizar-dash/dist/assets/MobileSettings-Bxv62uPY.js +1 -0
- package/bizar-dash/dist/assets/{MobileSettings-Dw5jyJWi.js.map → MobileSettings-Bxv62uPY.js.map} +1 -1
- package/bizar-dash/dist/assets/Toast-ATSAmbdi.js +26 -0
- package/bizar-dash/dist/assets/Toast-ATSAmbdi.js.map +1 -0
- package/bizar-dash/dist/assets/main-306CZfn6.js +430 -0
- package/bizar-dash/dist/assets/main-306CZfn6.js.map +1 -0
- package/bizar-dash/dist/assets/main-G3bNDpY3.css +1 -0
- package/bizar-dash/dist/assets/mobile-C_naUN91.js +1 -0
- package/bizar-dash/dist/assets/{mobile-DRZsK3ic.js.map → mobile-C_naUN91.js.map} +1 -1
- package/bizar-dash/dist/assets/mobile-layout-GZ3bE8L6.js +211 -0
- package/bizar-dash/dist/assets/mobile-layout-GZ3bE8L6.js.map +1 -0
- package/bizar-dash/dist/assets/useSlashCommands-BOwD7lNb.js +65 -0
- package/bizar-dash/dist/assets/useSlashCommands-BOwD7lNb.js.map +1 -0
- package/bizar-dash/dist/index.html +6 -12
- package/bizar-dash/dist/mobile.html +2 -7
- package/package.json +1 -1
- package/bizar-dash/dist/assets/EnvVarsSection-weVnLz3Z.js +0 -4
- package/bizar-dash/dist/assets/EnvVarsSection-weVnLz3Z.js.map +0 -1
- package/bizar-dash/dist/assets/MobileChat-BRFjer8p.js +0 -1
- package/bizar-dash/dist/assets/MobileSettings-Dw5jyJWi.js +0 -1
- package/bizar-dash/dist/assets/Toast-WTxc3m2g.js +0 -1
- package/bizar-dash/dist/assets/Toast-WTxc3m2g.js.map +0 -1
- package/bizar-dash/dist/assets/flow-BpU0-gK2.js +0 -1
- package/bizar-dash/dist/assets/flow-BpU0-gK2.js.map +0 -1
- package/bizar-dash/dist/assets/fuzzy-l0sNRNKZ.js +0 -1
- package/bizar-dash/dist/assets/fuzzy-l0sNRNKZ.js.map +0 -1
- package/bizar-dash/dist/assets/icons-B0AKnYI3.js +0 -731
- package/bizar-dash/dist/assets/icons-B0AKnYI3.js.map +0 -1
- package/bizar-dash/dist/assets/main-BE4Uh9im.css +0 -1
- package/bizar-dash/dist/assets/main-DqC58FEZ.js +0 -18
- package/bizar-dash/dist/assets/main-DqC58FEZ.js.map +0 -1
- package/bizar-dash/dist/assets/markdown-w2bDDkAH.js +0 -1
- package/bizar-dash/dist/assets/markdown-w2bDDkAH.js.map +0 -1
- package/bizar-dash/dist/assets/mobile-DRZsK3ic.js +0 -1
- package/bizar-dash/dist/assets/mobile-layout-Ckru3HKJ.js +0 -2
- package/bizar-dash/dist/assets/mobile-layout-Ckru3HKJ.js.map +0 -1
- package/bizar-dash/dist/assets/react-vendor-BnuhLJ6X.css +0 -1
- package/bizar-dash/dist/assets/react-vendor-D3pra6w-.js +0 -46
- package/bizar-dash/dist/assets/react-vendor-D3pra6w-.js.map +0 -1
- package/bizar-dash/dist/assets/useSlashCommands-BAxVOU_a.js +0 -2
- package/bizar-dash/dist/assets/useSlashCommands-BAxVOU_a.js.map +0 -1
- package/bizar-dash/dist/assets/vendor-Di7Cp-rw.js +0 -45
- package/bizar-dash/dist/assets/vendor-Di7Cp-rw.js.map +0 -1
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MobileSettings-Bxv62uPY.js","assets/EnvVarsSection-BfhAz3ax.js","assets/Toast-ATSAmbdi.js","assets/MobileChat-DLWdv6tQ.js","assets/useSlashCommands-BOwD7lNb.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var dd=Object.defineProperty;var fd=(e,t,n)=>t in e?dd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var je=(e,t,n)=>fd(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))l(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&l(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function l(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();var Kp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function md(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ba={exports:{}},Er={},Va={exports:{}},O={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react.production.min.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var xl=Symbol.for("react.element"),pd=Symbol.for("react.portal"),hd=Symbol.for("react.fragment"),vd=Symbol.for("react.strict_mode"),yd=Symbol.for("react.profiler"),gd=Symbol.for("react.provider"),xd=Symbol.for("react.context"),kd=Symbol.for("react.forward_ref"),wd=Symbol.for("react.suspense"),jd=Symbol.for("react.memo"),Sd=Symbol.for("react.lazy"),po=Symbol.iterator;function Nd(e){return e===null||typeof e!="object"?null:(e=po&&e[po]||e["@@iterator"],typeof e=="function"?e:null)}var Ha={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Wa=Object.assign,Qa={};function Tn(e,t,n){this.props=e,this.context=t,this.refs=Qa,this.updater=n||Ha}Tn.prototype.isReactComponent={};Tn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Tn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ka(){}Ka.prototype=Tn.prototype;function gi(e,t,n){this.props=e,this.context=t,this.refs=Qa,this.updater=n||Ha}var xi=gi.prototype=new Ka;xi.constructor=gi;Wa(xi,Tn.prototype);xi.isPureReactComponent=!0;var ho=Array.isArray,Ya=Object.prototype.hasOwnProperty,ki={current:null},qa={key:!0,ref:!0,__self:!0,__source:!0};function Xa(e,t,n){var l,r={},s=null,o=null;if(t!=null)for(l in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Ya.call(t,l)&&!qa.hasOwnProperty(l)&&(r[l]=t[l]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var u=Array(a),m=0;m<a;m++)u[m]=arguments[m+2];r.children=u}if(e&&e.defaultProps)for(l in a=e.defaultProps,a)r[l]===void 0&&(r[l]=a[l]);return{$$typeof:xl,type:e,key:s,ref:o,props:r,_owner:ki.current}}function Cd(e,t){return{$$typeof:xl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function wi(e){return typeof e=="object"&&e!==null&&e.$$typeof===xl}function bd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var vo=/\/+/g;function Kr(e,t){return typeof e=="object"&&e!==null&&e.key!=null?bd(""+e.key):t.toString(36)}function Bl(e,t,n,l,r){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case xl:case pd:o=!0}}if(o)return o=e,r=r(o),e=l===""?"."+Kr(o,0):l,ho(r)?(n="",e!=null&&(n=e.replace(vo,"$&/")+"/"),Bl(r,t,n,"",function(m){return m})):r!=null&&(wi(r)&&(r=Cd(r,n+(!r.key||o&&o.key===r.key?"":(""+r.key).replace(vo,"$&/")+"/")+e)),t.push(r)),1;if(o=0,l=l===""?".":l+":",ho(e))for(var a=0;a<e.length;a++){s=e[a];var u=l+Kr(s,a);o+=Bl(s,t,n,u,r)}else if(u=Nd(e),typeof u=="function")for(e=u.call(e),a=0;!(s=e.next()).done;)s=s.value,u=l+Kr(s,a++),o+=Bl(s,t,n,u,r);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Nl(e,t,n){if(e==null)return e;var l=[],r=0;return Bl(e,l,"","",function(s){return t.call(n,s,r++)}),l}function Ed(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var xe={current:null},Vl={transition:null},Td={ReactCurrentDispatcher:xe,ReactCurrentBatchConfig:Vl,ReactCurrentOwner:ki};function Ga(){throw Error("act(...) is not supported in production builds of React.")}O.Children={map:Nl,forEach:function(e,t,n){Nl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Nl(e,function(){t++}),t},toArray:function(e){return Nl(e,function(t){return t})||[]},only:function(e){if(!wi(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};O.Component=Tn;O.Fragment=hd;O.Profiler=yd;O.PureComponent=gi;O.StrictMode=vd;O.Suspense=wd;O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Td;O.act=Ga;O.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var l=Wa({},e.props),r=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=ki.current),t.key!==void 0&&(r=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)Ya.call(t,u)&&!qa.hasOwnProperty(u)&&(l[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)l.children=n;else if(1<u){a=Array(u);for(var m=0;m<u;m++)a[m]=arguments[m+2];l.children=a}return{$$typeof:xl,type:e.type,key:r,ref:s,props:l,_owner:o}};O.createContext=function(e){return e={$$typeof:xd,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:gd,_context:e},e.Consumer=e};O.createElement=Xa;O.createFactory=function(e){var t=Xa.bind(null,e);return t.type=e,t};O.createRef=function(){return{current:null}};O.forwardRef=function(e){return{$$typeof:kd,render:e}};O.isValidElement=wi;O.lazy=function(e){return{$$typeof:Sd,_payload:{_status:-1,_result:e},_init:Ed}};O.memo=function(e,t){return{$$typeof:jd,type:e,compare:t===void 0?null:t}};O.startTransition=function(e){var t=Vl.transition;Vl.transition={};try{e()}finally{Vl.transition=t}};O.unstable_act=Ga;O.useCallback=function(e,t){return xe.current.useCallback(e,t)};O.useContext=function(e){return xe.current.useContext(e)};O.useDebugValue=function(){};O.useDeferredValue=function(e){return xe.current.useDeferredValue(e)};O.useEffect=function(e,t){return xe.current.useEffect(e,t)};O.useId=function(){return xe.current.useId()};O.useImperativeHandle=function(e,t,n){return xe.current.useImperativeHandle(e,t,n)};O.useInsertionEffect=function(e,t){return xe.current.useInsertionEffect(e,t)};O.useLayoutEffect=function(e,t){return xe.current.useLayoutEffect(e,t)};O.useMemo=function(e,t){return xe.current.useMemo(e,t)};O.useReducer=function(e,t,n){return xe.current.useReducer(e,t,n)};O.useRef=function(e){return xe.current.useRef(e)};O.useState=function(e){return xe.current.useState(e)};O.useSyncExternalStore=function(e,t,n){return xe.current.useSyncExternalStore(e,t,n)};O.useTransition=function(){return xe.current.useTransition()};O.version="18.3.1";Va.exports=O;var k=Va.exports;const Za=md(k);/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react-jsx-runtime.production.min.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var zd=k,_d=Symbol.for("react.element"),Ld=Symbol.for("react.fragment"),Pd=Object.prototype.hasOwnProperty,Md=zd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Rd={key:!0,ref:!0,__self:!0,__source:!0};function Ja(e,t,n){var l,r={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(l in t)Pd.call(t,l)&&!Rd.hasOwnProperty(l)&&(r[l]=t[l]);if(e&&e.defaultProps)for(l in t=e.defaultProps,t)r[l]===void 0&&(r[l]=t[l]);return{$$typeof:_d,type:e,key:s,ref:o,props:r,_owner:Md.current}}Er.Fragment=Ld;Er.jsx=Ja;Er.jsxs=Ja;Ba.exports=Er;var i=Ba.exports,eu={exports:{}},Pe={},tu={exports:{}},nu={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.min.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/(function(e){function t(z,I){var $=z.length;z.push(I);e:for(;0<$;){var q=$-1>>>1,ne=z[q];if(0<r(ne,I))z[q]=I,z[$]=ne,$=q;else break e}}function n(z){return z.length===0?null:z[0]}function l(z){if(z.length===0)return null;var I=z[0],$=z.pop();if($!==I){z[0]=$;e:for(var q=0,ne=z.length,Dt=ne>>>1;q<Dt;){var et=2*(q+1)-1,Pn=z[et],Ye=et+1,It=z[Ye];if(0>r(Pn,$))Ye<ne&&0>r(It,Pn)?(z[q]=It,z[Ye]=$,q=Ye):(z[q]=Pn,z[et]=$,q=et);else if(Ye<ne&&0>r(It,$))z[q]=It,z[Ye]=$,q=Ye;else break e}}return I}function r(z,I){var $=z.sortIndex-I.sortIndex;return $!==0?$:z.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],m=[],c=1,h=null,v=3,x=!1,y=!1,p=!1,N=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(z){for(var I=n(m);I!==null;){if(I.callback===null)l(m);else if(I.startTime<=z)l(m),I.sortIndex=I.expirationTime,t(u,I);else break;I=n(m)}}function w(z){if(p=!1,g(z),!y)if(n(u)!==null)y=!0,we(b);else{var I=n(m);I!==null&&Rt(w,I.startTime-z)}}function b(z,I){y=!1,p&&(p=!1,f(_),_=-1),x=!0;var $=v;try{for(g(I),h=n(u);h!==null&&(!(h.expirationTime>I)||z&&!S());){var q=h.callback;if(typeof q=="function"){h.callback=null,v=h.priorityLevel;var ne=q(h.expirationTime<=I);I=e.unstable_now(),typeof ne=="function"?h.callback=ne:h===n(u)&&l(u),g(I)}else l(u);h=n(u)}if(h!==null)var Dt=!0;else{var et=n(m);et!==null&&Rt(w,et.startTime-I),Dt=!1}return Dt}finally{h=null,v=$,x=!1}}var T=!1,E=null,_=-1,j=5,R=-1;function S(){return!(e.unstable_now()-R<j)}function L(){if(E!==null){var z=e.unstable_now();R=z;var I=!0;try{I=E(!0,z)}finally{I?D():(T=!1,E=null)}}else T=!1}var D;if(typeof d=="function")D=function(){d(L)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,ee=F.port2;F.port1.onmessage=L,D=function(){ee.postMessage(null)}}else D=function(){N(L,0)};function we(z){E=z,T||(T=!0,D())}function Rt(z,I){_=N(function(){z(e.unstable_now())},I)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_continueExecution=function(){y||x||(y=!0,we(b))},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(z){switch(v){case 1:case 2:case 3:var I=3;break;default:I=v}var $=v;v=I;try{return z()}finally{v=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(z,I){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var $=v;v=z;try{return I()}finally{v=$}},e.unstable_scheduleCallback=function(z,I,$){var q=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?q+$:q):$=q,z){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=$+ne,z={id:c++,callback:I,priorityLevel:z,startTime:$,expirationTime:ne,sortIndex:-1},$>q?(z.sortIndex=$,t(m,z),n(u)===null&&z===n(m)&&(p?(f(_),_=-1):p=!0,Rt(w,$-q))):(z.sortIndex=ne,t(u,z),y||x||(y=!0,we(b))),z},e.unstable_shouldYield=S,e.unstable_wrapCallback=function(z){var I=v;return function(){var $=v;v=I;try{return z.apply(this,arguments)}finally{v=$}}}})(nu);tu.exports=nu;var Dd=tu.exports;/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.min.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var Id=k,Le=Dd;function C(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 lu=new Set,tl={};function Xt(e,t){kn(e,t),kn(e+"Capture",t)}function kn(e,t){for(tl[e]=t,e=0;e<t.length;e++)lu.add(t[e])}var it=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),js=Object.prototype.hasOwnProperty,Ad=/^[: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]*$/,yo={},go={};function $d(e){return js.call(go,e)?!0:js.call(yo,e)?!1:Ad.test(e)?go[e]=!0:(yo[e]=!0,!1)}function Od(e,t,n,l){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return l?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Fd(e,t,n,l){if(t===null||typeof t>"u"||Od(e,t,n,l))return!0;if(l)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ke(e,t,n,l,r,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=l,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var de={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){de[e]=new ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];de[t]=new ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){de[e]=new ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){de[e]=new ke(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){de[e]=new ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){de[e]=new ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){de[e]=new ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){de[e]=new ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){de[e]=new ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var ji=/[\-:]([a-z])/g;function Si(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(ji,Si);de[t]=new ke(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(ji,Si);de[t]=new ke(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(ji,Si);de[t]=new ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){de[e]=new ke(e,1,!1,e.toLowerCase(),null,!1,!1)});de.xlinkHref=new ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){de[e]=new ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ni(e,t,n,l){var r=de.hasOwnProperty(t)?de[t]:null;(r!==null?r.type!==0:l||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Fd(t,n,r,l)&&(n=null),l||r===null?$d(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=n===null?r.type===3?!1:"":n:(t=r.attributeName,l=r.attributeNamespace,n===null?e.removeAttribute(t):(r=r.type,n=r===3||r===4&&n===!0?"":""+n,l?e.setAttributeNS(l,t,n):e.setAttribute(t,n))))}var dt=Id.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Cl=Symbol.for("react.element"),Jt=Symbol.for("react.portal"),en=Symbol.for("react.fragment"),Ci=Symbol.for("react.strict_mode"),Ss=Symbol.for("react.profiler"),ru=Symbol.for("react.provider"),su=Symbol.for("react.context"),bi=Symbol.for("react.forward_ref"),Ns=Symbol.for("react.suspense"),Cs=Symbol.for("react.suspense_list"),Ei=Symbol.for("react.memo"),pt=Symbol.for("react.lazy"),iu=Symbol.for("react.offscreen"),xo=Symbol.iterator;function Mn(e){return e===null||typeof e!="object"?null:(e=xo&&e[xo]||e["@@iterator"],typeof e=="function"?e:null)}var J=Object.assign,Yr;function Bn(e){if(Yr===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Yr=t&&t[1]||""}return`
|
|
35
|
+
`+Yr+e}var qr=!1;function Xr(e,t){if(!e||qr)return"";qr=!0;var n=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(m){var l=m}Reflect.construct(e,[],t)}else{try{t.call()}catch(m){l=m}e.call(t.prototype)}else{try{throw Error()}catch(m){l=m}e()}}catch(m){if(m&&l&&typeof m.stack=="string"){for(var r=m.stack.split(`
|
|
36
|
+
`),s=l.stack.split(`
|
|
37
|
+
`),o=r.length-1,a=s.length-1;1<=o&&0<=a&&r[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(r[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||r[o]!==s[a]){var u=`
|
|
38
|
+
`+r[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{qr=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Bn(e):""}function Ud(e){switch(e.tag){case 5:return Bn(e.type);case 16:return Bn("Lazy");case 13:return Bn("Suspense");case 19:return Bn("SuspenseList");case 0:case 2:case 15:return e=Xr(e.type,!1),e;case 11:return e=Xr(e.type.render,!1),e;case 1:return e=Xr(e.type,!0),e;default:return""}}function bs(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 en:return"Fragment";case Jt:return"Portal";case Ss:return"Profiler";case Ci:return"StrictMode";case Ns:return"Suspense";case Cs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case su:return(e.displayName||"Context")+".Consumer";case ru:return(e._context.displayName||"Context")+".Provider";case bi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ei:return t=e.displayName||null,t!==null?t:bs(e.type)||"Memo";case pt:t=e._payload,e=e._init;try{return bs(e(t))}catch{}}return null}function Bd(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 bs(t);case 8:return t===Ci?"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 Tt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ou(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vd(e){var t=ou(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(o){l=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(o){l=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bl(e){e._valueTracker||(e._valueTracker=Vd(e))}function au(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=ou(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function tr(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 Es(e,t){var n=t.checked;return J({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ko(e,t){var n=t.defaultValue==null?"":t.defaultValue,l=t.checked!=null?t.checked:t.defaultChecked;n=Tt(t.value!=null?t.value:n),e._wrapperState={initialChecked:l,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function uu(e,t){t=t.checked,t!=null&&Ni(e,"checked",t,!1)}function Ts(e,t){uu(e,t);var n=Tt(t.value),l=t.type;if(n!=null)l==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(l==="submit"||l==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?zs(e,t.type,n):t.hasOwnProperty("defaultValue")&&zs(e,t.type,Tt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wo(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var l=t.type;if(!(l!=="submit"&&l!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function zs(e,t,n){(t!=="number"||tr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vn=Array.isArray;function mn(e,t,n,l){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Tt(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,l&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function _s(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(C(91));return J({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function jo(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(C(92));if(Vn(n)){if(1<n.length)throw Error(C(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Tt(n)}}function cu(e,t){var n=Tt(t.value),l=Tt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),l!=null&&(e.defaultValue=""+l)}function So(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function du(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 Ls(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?du(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var El,fu=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,l,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,l,r)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(El=El||document.createElement("div"),El.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=El.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qn={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},Hd=["Webkit","ms","Moz","O"];Object.keys(Qn).forEach(function(e){Hd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qn[t]=Qn[e]})});function mu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qn.hasOwnProperty(e)&&Qn[e]?(""+t).trim():t+"px"}function pu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var l=n.indexOf("--")===0,r=mu(n,t[n],l);n==="float"&&(n="cssFloat"),l?e.setProperty(n,r):e[n]=r}}var Wd=J({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 Ps(e,t){if(t){if(Wd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function Ms(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 Rs=null;function Ti(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ds=null,pn=null,hn=null;function No(e){if(e=jl(e)){if(typeof Ds!="function")throw Error(C(280));var t=e.stateNode;t&&(t=Pr(t),Ds(e.stateNode,e.type,t))}}function hu(e){pn?hn?hn.push(e):hn=[e]:pn=e}function vu(){if(pn){var e=pn,t=hn;if(hn=pn=null,No(e),t)for(e=0;e<t.length;e++)No(t[e])}}function yu(e,t){return e(t)}function gu(){}var Gr=!1;function xu(e,t,n){if(Gr)return e(t,n);Gr=!0;try{return yu(e,t,n)}finally{Gr=!1,(pn!==null||hn!==null)&&(gu(),vu())}}function ll(e,t){var n=e.stateNode;if(n===null)return null;var l=Pr(n);if(l===null)return null;n=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(C(231,t,typeof n));return n}var Is=!1;if(it)try{var Rn={};Object.defineProperty(Rn,"passive",{get:function(){Is=!0}}),window.addEventListener("test",Rn,Rn),window.removeEventListener("test",Rn,Rn)}catch{Is=!1}function Qd(e,t,n,l,r,s,o,a,u){var m=Array.prototype.slice.call(arguments,3);try{t.apply(n,m)}catch(c){this.onError(c)}}var Kn=!1,nr=null,lr=!1,As=null,Kd={onError:function(e){Kn=!0,nr=e}};function Yd(e,t,n,l,r,s,o,a,u){Kn=!1,nr=null,Qd.apply(Kd,arguments)}function qd(e,t,n,l,r,s,o,a,u){if(Yd.apply(this,arguments),Kn){if(Kn){var m=nr;Kn=!1,nr=null}else throw Error(C(198));lr||(lr=!0,As=m)}}function Gt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ku(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 Co(e){if(Gt(e)!==e)throw Error(C(188))}function Xd(e){var t=e.alternate;if(!t){if(t=Gt(e),t===null)throw Error(C(188));return t!==e?null:e}for(var n=e,l=t;;){var r=n.return;if(r===null)break;var s=r.alternate;if(s===null){if(l=r.return,l!==null){n=l;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===n)return Co(r),e;if(s===l)return Co(r),t;s=s.sibling}throw Error(C(188))}if(n.return!==l.return)n=r,l=s;else{for(var o=!1,a=r.child;a;){if(a===n){o=!0,n=r,l=s;break}if(a===l){o=!0,l=r,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,l=r;break}if(a===l){o=!0,l=s,n=r;break}a=a.sibling}if(!o)throw Error(C(189))}}if(n.alternate!==l)throw Error(C(190))}if(n.tag!==3)throw Error(C(188));return n.stateNode.current===n?e:t}function wu(e){return e=Xd(e),e!==null?ju(e):null}function ju(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ju(e);if(t!==null)return t;e=e.sibling}return null}var Su=Le.unstable_scheduleCallback,bo=Le.unstable_cancelCallback,Gd=Le.unstable_shouldYield,Zd=Le.unstable_requestPaint,le=Le.unstable_now,Jd=Le.unstable_getCurrentPriorityLevel,zi=Le.unstable_ImmediatePriority,Nu=Le.unstable_UserBlockingPriority,rr=Le.unstable_NormalPriority,ef=Le.unstable_LowPriority,Cu=Le.unstable_IdlePriority,Tr=null,Ze=null;function tf(e){if(Ze&&typeof Ze.onCommitFiberRoot=="function")try{Ze.onCommitFiberRoot(Tr,e,void 0,(e.current.flags&128)===128)}catch{}}var He=Math.clz32?Math.clz32:rf,nf=Math.log,lf=Math.LN2;function rf(e){return e>>>=0,e===0?32:31-(nf(e)/lf|0)|0}var Tl=64,zl=4194304;function Hn(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 sr(e,t){var n=e.pendingLanes;if(n===0)return 0;var l=0,r=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~r;a!==0?l=Hn(a):(s&=o,s!==0&&(l=Hn(s)))}else o=n&~r,o!==0?l=Hn(o):s!==0&&(l=Hn(s));if(l===0)return 0;if(t!==0&&t!==l&&!(t&r)&&(r=l&-l,s=t&-t,r>=s||r===16&&(s&4194240)!==0))return t;if(l&4&&(l|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=l;0<t;)n=31-He(t),r=1<<n,l|=e[n],t&=~r;return l}function sf(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 of(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,r=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-He(s),a=1<<o,u=r[o];u===-1?(!(a&n)||a&l)&&(r[o]=sf(a,t)):u<=t&&(e.expiredLanes|=a),s&=~a}}function $s(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function bu(){var e=Tl;return Tl<<=1,!(Tl&4194240)&&(Tl=64),e}function Zr(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function kl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-He(t),e[t]=n}function af(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var l=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-He(n),s=1<<r;t[r]=0,l[r]=-1,e[r]=-1,n&=~s}}function _i(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-He(n),r=1<<l;r&t|e[l]&t&&(e[l]|=t),n&=~r}}var W=0;function Eu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Tu,Li,zu,_u,Lu,Os=!1,_l=[],kt=null,wt=null,jt=null,rl=new Map,sl=new Map,vt=[],uf="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 Eo(e,t){switch(e){case"focusin":case"focusout":kt=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":jt=null;break;case"pointerover":case"pointerout":rl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":sl.delete(t.pointerId)}}function Dn(e,t,n,l,r,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:s,targetContainers:[r]},t!==null&&(t=jl(t),t!==null&&Li(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function cf(e,t,n,l,r){switch(t){case"focusin":return kt=Dn(kt,e,t,n,l,r),!0;case"dragenter":return wt=Dn(wt,e,t,n,l,r),!0;case"mouseover":return jt=Dn(jt,e,t,n,l,r),!0;case"pointerover":var s=r.pointerId;return rl.set(s,Dn(rl.get(s)||null,e,t,n,l,r)),!0;case"gotpointercapture":return s=r.pointerId,sl.set(s,Dn(sl.get(s)||null,e,t,n,l,r)),!0}return!1}function Pu(e){var t=Ot(e.target);if(t!==null){var n=Gt(t);if(n!==null){if(t=n.tag,t===13){if(t=ku(n),t!==null){e.blockedOn=t,Lu(e.priority,function(){zu(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Hl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Fs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Rs=l,n.target.dispatchEvent(l),Rs=null}else return t=jl(n),t!==null&&Li(t),e.blockedOn=n,!1;t.shift()}return!0}function To(e,t,n){Hl(e)&&n.delete(t)}function df(){Os=!1,kt!==null&&Hl(kt)&&(kt=null),wt!==null&&Hl(wt)&&(wt=null),jt!==null&&Hl(jt)&&(jt=null),rl.forEach(To),sl.forEach(To)}function In(e,t){e.blockedOn===t&&(e.blockedOn=null,Os||(Os=!0,Le.unstable_scheduleCallback(Le.unstable_NormalPriority,df)))}function il(e){function t(r){return In(r,e)}if(0<_l.length){In(_l[0],e);for(var n=1;n<_l.length;n++){var l=_l[n];l.blockedOn===e&&(l.blockedOn=null)}}for(kt!==null&&In(kt,e),wt!==null&&In(wt,e),jt!==null&&In(jt,e),rl.forEach(t),sl.forEach(t),n=0;n<vt.length;n++)l=vt[n],l.blockedOn===e&&(l.blockedOn=null);for(;0<vt.length&&(n=vt[0],n.blockedOn===null);)Pu(n),n.blockedOn===null&&vt.shift()}var vn=dt.ReactCurrentBatchConfig,ir=!0;function ff(e,t,n,l){var r=W,s=vn.transition;vn.transition=null;try{W=1,Pi(e,t,n,l)}finally{W=r,vn.transition=s}}function mf(e,t,n,l){var r=W,s=vn.transition;vn.transition=null;try{W=4,Pi(e,t,n,l)}finally{W=r,vn.transition=s}}function Pi(e,t,n,l){if(ir){var r=Fs(e,t,n,l);if(r===null)as(e,t,l,or,n),Eo(e,l);else if(cf(r,e,t,n,l))l.stopPropagation();else if(Eo(e,l),t&4&&-1<uf.indexOf(e)){for(;r!==null;){var s=jl(r);if(s!==null&&Tu(s),s=Fs(e,t,n,l),s===null&&as(e,t,l,or,n),s===r)break;r=s}r!==null&&l.stopPropagation()}else as(e,t,l,null,n)}}var or=null;function Fs(e,t,n,l){if(or=null,e=Ti(l),e=Ot(e),e!==null)if(t=Gt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ku(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return or=e,null}function Mu(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(Jd()){case zi:return 1;case Nu:return 4;case rr:case ef:return 16;case Cu:return 536870912;default:return 16}default:return 16}}var gt=null,Mi=null,Wl=null;function Ru(){if(Wl)return Wl;var e,t=Mi,n=t.length,l,r="value"in gt?gt.value:gt.textContent,s=r.length;for(e=0;e<n&&t[e]===r[e];e++);var o=n-e;for(l=1;l<=o&&t[n-l]===r[s-l];l++);return Wl=r.slice(e,1<l?1-l:void 0)}function Ql(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 Ll(){return!0}function zo(){return!1}function Me(e){function t(n,l,r,s,o){this._reactName=n,this._targetInst=r,this.type=l,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ll:zo,this.isPropagationStopped=zo,this}return J(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ll)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ll)},persist:function(){},isPersistent:Ll}),t}var zn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ri=Me(zn),wl=J({},zn,{view:0,detail:0}),pf=Me(wl),Jr,es,An,zr=J({},wl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Di,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!==An&&(An&&e.type==="mousemove"?(Jr=e.screenX-An.screenX,es=e.screenY-An.screenY):es=Jr=0,An=e),Jr)},movementY:function(e){return"movementY"in e?e.movementY:es}}),_o=Me(zr),hf=J({},zr,{dataTransfer:0}),vf=Me(hf),yf=J({},wl,{relatedTarget:0}),ts=Me(yf),gf=J({},zn,{animationName:0,elapsedTime:0,pseudoElement:0}),xf=Me(gf),kf=J({},zn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wf=Me(kf),jf=J({},zn,{data:0}),Lo=Me(jf),Sf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nf={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"},Cf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Cf[e])?!!t[e]:!1}function Di(){return bf}var Ef=J({},wl,{key:function(e){if(e.key){var t=Sf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ql(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Nf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Di,charCode:function(e){return e.type==="keypress"?Ql(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ql(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Tf=Me(Ef),zf=J({},zr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Po=Me(zf),_f=J({},wl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Di}),Lf=Me(_f),Pf=J({},zn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Mf=Me(Pf),Rf=J({},zr,{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}),Df=Me(Rf),If=[9,13,27,32],Ii=it&&"CompositionEvent"in window,Yn=null;it&&"documentMode"in document&&(Yn=document.documentMode);var Af=it&&"TextEvent"in window&&!Yn,Du=it&&(!Ii||Yn&&8<Yn&&11>=Yn),Mo=" ",Ro=!1;function Iu(e,t){switch(e){case"keyup":return If.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Au(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tn=!1;function $f(e,t){switch(e){case"compositionend":return Au(t);case"keypress":return t.which!==32?null:(Ro=!0,Mo);case"textInput":return e=t.data,e===Mo&&Ro?null:e;default:return null}}function Of(e,t){if(tn)return e==="compositionend"||!Ii&&Iu(e,t)?(e=Ru(),Wl=Mi=gt=null,tn=!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 Du&&t.locale!=="ko"?null:t.data;default:return null}}var Ff={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 Do(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ff[e.type]:t==="textarea"}function $u(e,t,n,l){hu(l),t=ar(t,"onChange"),0<t.length&&(n=new Ri("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var qn=null,ol=null;function Uf(e){qu(e,0)}function _r(e){var t=rn(e);if(au(t))return e}function Bf(e,t){if(e==="change")return t}var Ou=!1;if(it){var ns;if(it){var ls="oninput"in document;if(!ls){var Io=document.createElement("div");Io.setAttribute("oninput","return;"),ls=typeof Io.oninput=="function"}ns=ls}else ns=!1;Ou=ns&&(!document.documentMode||9<document.documentMode)}function Ao(){qn&&(qn.detachEvent("onpropertychange",Fu),ol=qn=null)}function Fu(e){if(e.propertyName==="value"&&_r(ol)){var t=[];$u(t,ol,e,Ti(e)),xu(Uf,t)}}function Vf(e,t,n){e==="focusin"?(Ao(),qn=t,ol=n,qn.attachEvent("onpropertychange",Fu)):e==="focusout"&&Ao()}function Hf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return _r(ol)}function Wf(e,t){if(e==="click")return _r(t)}function Qf(e,t){if(e==="input"||e==="change")return _r(t)}function Kf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qe=typeof Object.is=="function"?Object.is:Kf;function al(e,t){if(Qe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var r=n[l];if(!js.call(t,r)||!Qe(e[r],t[r]))return!1}return!0}function $o(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Oo(e,t){var n=$o(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$o(n)}}function Uu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bu(){for(var e=window,t=tr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=tr(e.document)}return t}function Ai(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 Yf(e){var t=Bu(),n=e.focusedElem,l=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Uu(n.ownerDocument.documentElement,n)){if(l!==null&&Ai(n)){if(t=l.start,e=l.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,s=Math.min(l.start,r);l=l.end===void 0?s:Math.min(l.end,r),!e.extend&&s>l&&(r=l,l=s,s=r),r=Oo(n,s);var o=Oo(n,l);r&&o&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),s>l?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var qf=it&&"documentMode"in document&&11>=document.documentMode,nn=null,Us=null,Xn=null,Bs=!1;function Fo(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bs||nn==null||nn!==tr(l)||(l=nn,"selectionStart"in l&&Ai(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Xn&&al(Xn,l)||(Xn=l,l=ar(Us,"onSelect"),0<l.length&&(t=new Ri("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=nn)))}function Pl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ln={animationend:Pl("Animation","AnimationEnd"),animationiteration:Pl("Animation","AnimationIteration"),animationstart:Pl("Animation","AnimationStart"),transitionend:Pl("Transition","TransitionEnd")},rs={},Vu={};it&&(Vu=document.createElement("div").style,"AnimationEvent"in window||(delete ln.animationend.animation,delete ln.animationiteration.animation,delete ln.animationstart.animation),"TransitionEvent"in window||delete ln.transitionend.transition);function Lr(e){if(rs[e])return rs[e];if(!ln[e])return e;var t=ln[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Vu)return rs[e]=t[n];return e}var Hu=Lr("animationend"),Wu=Lr("animationiteration"),Qu=Lr("animationstart"),Ku=Lr("transitionend"),Yu=new Map,Uo="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 _t(e,t){Yu.set(e,t),Xt(t,[e])}for(var ss=0;ss<Uo.length;ss++){var is=Uo[ss],Xf=is.toLowerCase(),Gf=is[0].toUpperCase()+is.slice(1);_t(Xf,"on"+Gf)}_t(Hu,"onAnimationEnd");_t(Wu,"onAnimationIteration");_t(Qu,"onAnimationStart");_t("dblclick","onDoubleClick");_t("focusin","onFocus");_t("focusout","onBlur");_t(Ku,"onTransitionEnd");kn("onMouseEnter",["mouseout","mouseover"]);kn("onMouseLeave",["mouseout","mouseover"]);kn("onPointerEnter",["pointerout","pointerover"]);kn("onPointerLeave",["pointerout","pointerover"]);Xt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Xt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Xt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Xt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Xt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Xt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wn="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(" "),Zf=new Set("cancel close invalid load scroll toggle".split(" ").concat(Wn));function Bo(e,t,n){var l=e.type||"unknown-event";e.currentTarget=n,qd(l,t,void 0,e),e.currentTarget=null}function qu(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],r=l.event;l=l.listeners;e:{var s=void 0;if(t)for(var o=l.length-1;0<=o;o--){var a=l[o],u=a.instance,m=a.currentTarget;if(a=a.listener,u!==s&&r.isPropagationStopped())break e;Bo(r,a,m),s=u}else for(o=0;o<l.length;o++){if(a=l[o],u=a.instance,m=a.currentTarget,a=a.listener,u!==s&&r.isPropagationStopped())break e;Bo(r,a,m),s=u}}}if(lr)throw e=As,lr=!1,As=null,e}function K(e,t){var n=t[Ks];n===void 0&&(n=t[Ks]=new Set);var l=e+"__bubble";n.has(l)||(Xu(t,e,2,!1),n.add(l))}function os(e,t,n){var l=0;t&&(l|=4),Xu(n,e,l,t)}var Ml="_reactListening"+Math.random().toString(36).slice(2);function ul(e){if(!e[Ml]){e[Ml]=!0,lu.forEach(function(n){n!=="selectionchange"&&(Zf.has(n)||os(n,!1,e),os(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ml]||(t[Ml]=!0,os("selectionchange",!1,t))}}function Xu(e,t,n,l){switch(Mu(t)){case 1:var r=ff;break;case 4:r=mf;break;default:r=Pi}n=r.bind(null,t,n,e),r=void 0,!Is||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),l?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function as(e,t,n,l,r){var s=l;if(!(t&1)&&!(t&2)&&l!==null)e:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var a=l.stateNode.containerInfo;if(a===r||a.nodeType===8&&a.parentNode===r)break;if(o===4)for(o=l.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===r||u.nodeType===8&&u.parentNode===r))return;o=o.return}for(;a!==null;){if(o=Ot(a),o===null)return;if(u=o.tag,u===5||u===6){l=s=o;continue e}a=a.parentNode}}l=l.return}xu(function(){var m=s,c=Ti(n),h=[];e:{var v=Yu.get(e);if(v!==void 0){var x=Ri,y=e;switch(e){case"keypress":if(Ql(n)===0)break e;case"keydown":case"keyup":x=Tf;break;case"focusin":y="focus",x=ts;break;case"focusout":y="blur",x=ts;break;case"beforeblur":case"afterblur":x=ts;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=_o;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=vf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=Lf;break;case Hu:case Wu:case Qu:x=xf;break;case Ku:x=Mf;break;case"scroll":x=pf;break;case"wheel":x=Df;break;case"copy":case"cut":case"paste":x=wf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=Po}var p=(t&4)!==0,N=!p&&e==="scroll",f=p?v!==null?v+"Capture":null:v;p=[];for(var d=m,g;d!==null;){g=d;var w=g.stateNode;if(g.tag===5&&w!==null&&(g=w,f!==null&&(w=ll(d,f),w!=null&&p.push(cl(d,w,g)))),N)break;d=d.return}0<p.length&&(v=new x(v,y,null,n,c),h.push({event:v,listeners:p}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",v&&n!==Rs&&(y=n.relatedTarget||n.fromElement)&&(Ot(y)||y[ot]))break e;if((x||v)&&(v=c.window===c?c:(v=c.ownerDocument)?v.defaultView||v.parentWindow:window,x?(y=n.relatedTarget||n.toElement,x=m,y=y?Ot(y):null,y!==null&&(N=Gt(y),y!==N||y.tag!==5&&y.tag!==6)&&(y=null)):(x=null,y=m),x!==y)){if(p=_o,w="onMouseLeave",f="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(p=Po,w="onPointerLeave",f="onPointerEnter",d="pointer"),N=x==null?v:rn(x),g=y==null?v:rn(y),v=new p(w,d+"leave",x,n,c),v.target=N,v.relatedTarget=g,w=null,Ot(c)===m&&(p=new p(f,d+"enter",y,n,c),p.target=g,p.relatedTarget=N,w=p),N=w,x&&y)t:{for(p=x,f=y,d=0,g=p;g;g=Zt(g))d++;for(g=0,w=f;w;w=Zt(w))g++;for(;0<d-g;)p=Zt(p),d--;for(;0<g-d;)f=Zt(f),g--;for(;d--;){if(p===f||f!==null&&p===f.alternate)break t;p=Zt(p),f=Zt(f)}p=null}else p=null;x!==null&&Vo(h,v,x,p,!1),y!==null&&N!==null&&Vo(h,N,y,p,!0)}}e:{if(v=m?rn(m):window,x=v.nodeName&&v.nodeName.toLowerCase(),x==="select"||x==="input"&&v.type==="file")var b=Bf;else if(Do(v))if(Ou)b=Qf;else{b=Hf;var T=Vf}else(x=v.nodeName)&&x.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(b=Wf);if(b&&(b=b(e,m))){$u(h,b,n,c);break e}T&&T(e,v,m),e==="focusout"&&(T=v._wrapperState)&&T.controlled&&v.type==="number"&&zs(v,"number",v.value)}switch(T=m?rn(m):window,e){case"focusin":(Do(T)||T.contentEditable==="true")&&(nn=T,Us=m,Xn=null);break;case"focusout":Xn=Us=nn=null;break;case"mousedown":Bs=!0;break;case"contextmenu":case"mouseup":case"dragend":Bs=!1,Fo(h,n,c);break;case"selectionchange":if(qf)break;case"keydown":case"keyup":Fo(h,n,c)}var E;if(Ii)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else tn?Iu(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(Du&&n.locale!=="ko"&&(tn||_!=="onCompositionStart"?_==="onCompositionEnd"&&tn&&(E=Ru()):(gt=c,Mi="value"in gt?gt.value:gt.textContent,tn=!0)),T=ar(m,_),0<T.length&&(_=new Lo(_,e,null,n,c),h.push({event:_,listeners:T}),E?_.data=E:(E=Au(n),E!==null&&(_.data=E)))),(E=Af?$f(e,n):Of(e,n))&&(m=ar(m,"onBeforeInput"),0<m.length&&(c=new Lo("onBeforeInput","beforeinput",null,n,c),h.push({event:c,listeners:m}),c.data=E))}qu(h,t)})}function cl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ar(e,t){for(var n=t+"Capture",l=[];e!==null;){var r=e,s=r.stateNode;r.tag===5&&s!==null&&(r=s,s=ll(e,n),s!=null&&l.unshift(cl(e,s,r)),s=ll(e,t),s!=null&&l.push(cl(e,s,r))),e=e.return}return l}function Zt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Vo(e,t,n,l,r){for(var s=t._reactName,o=[];n!==null&&n!==l;){var a=n,u=a.alternate,m=a.stateNode;if(u!==null&&u===l)break;a.tag===5&&m!==null&&(a=m,r?(u=ll(n,s),u!=null&&o.unshift(cl(n,u,a))):r||(u=ll(n,s),u!=null&&o.push(cl(n,u,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Jf=/\r\n?/g,em=/\u0000|\uFFFD/g;function Ho(e){return(typeof e=="string"?e:""+e).replace(Jf,`
|
|
39
|
+
`).replace(em,"")}function Rl(e,t,n){if(t=Ho(t),Ho(e)!==t&&n)throw Error(C(425))}function ur(){}var Vs=null,Hs=null;function Ws(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 Qs=typeof setTimeout=="function"?setTimeout:void 0,tm=typeof clearTimeout=="function"?clearTimeout:void 0,Wo=typeof Promise=="function"?Promise:void 0,nm=typeof queueMicrotask=="function"?queueMicrotask:typeof Wo<"u"?function(e){return Wo.resolve(null).then(e).catch(lm)}:Qs;function lm(e){setTimeout(function(){throw e})}function us(e,t){var n=t,l=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(l===0){e.removeChild(r),il(t);return}l--}else n!=="$"&&n!=="$?"&&n!=="$!"||l++;n=r}while(n);il(t)}function St(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 Qo(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var _n=Math.random().toString(36).slice(2),Ge="__reactFiber$"+_n,dl="__reactProps$"+_n,ot="__reactContainer$"+_n,Ks="__reactEvents$"+_n,rm="__reactListeners$"+_n,sm="__reactHandles$"+_n;function Ot(e){var t=e[Ge];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ot]||n[Ge]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Qo(e);e!==null;){if(n=e[Ge])return n;e=Qo(e)}return t}e=n,n=e.parentNode}return null}function jl(e){return e=e[Ge]||e[ot],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function rn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(C(33))}function Pr(e){return e[dl]||null}var Ys=[],sn=-1;function Lt(e){return{current:e}}function Y(e){0>sn||(e.current=Ys[sn],Ys[sn]=null,sn--)}function Q(e,t){sn++,Ys[sn]=e.current,e.current=t}var zt={},ve=Lt(zt),Ce=Lt(!1),Ht=zt;function wn(e,t){var n=e.type.contextTypes;if(!n)return zt;var l=e.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===t)return l.__reactInternalMemoizedMaskedChildContext;var r={},s;for(s in n)r[s]=t[s];return l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function be(e){return e=e.childContextTypes,e!=null}function cr(){Y(Ce),Y(ve)}function Ko(e,t,n){if(ve.current!==zt)throw Error(C(168));Q(ve,t),Q(Ce,n)}function Gu(e,t,n){var l=e.stateNode;if(t=t.childContextTypes,typeof l.getChildContext!="function")return n;l=l.getChildContext();for(var r in l)if(!(r in t))throw Error(C(108,Bd(e)||"Unknown",r));return J({},n,l)}function dr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zt,Ht=ve.current,Q(ve,e),Q(Ce,Ce.current),!0}function Yo(e,t,n){var l=e.stateNode;if(!l)throw Error(C(169));n?(e=Gu(e,t,Ht),l.__reactInternalMemoizedMergedChildContext=e,Y(Ce),Y(ve),Q(ve,e)):Y(Ce),Q(Ce,n)}var nt=null,Mr=!1,cs=!1;function Zu(e){nt===null?nt=[e]:nt.push(e)}function im(e){Mr=!0,Zu(e)}function Pt(){if(!cs&&nt!==null){cs=!0;var e=0,t=W;try{var n=nt;for(W=1;e<n.length;e++){var l=n[e];do l=l(!0);while(l!==null)}nt=null,Mr=!1}catch(r){throw nt!==null&&(nt=nt.slice(e+1)),Su(zi,Pt),r}finally{W=t,cs=!1}}return null}var on=[],an=0,fr=null,mr=0,Re=[],De=0,Wt=null,lt=1,rt="";function At(e,t){on[an++]=mr,on[an++]=fr,fr=e,mr=t}function Ju(e,t,n){Re[De++]=lt,Re[De++]=rt,Re[De++]=Wt,Wt=e;var l=lt;e=rt;var r=32-He(l)-1;l&=~(1<<r),n+=1;var s=32-He(t)+r;if(30<s){var o=r-r%5;s=(l&(1<<o)-1).toString(32),l>>=o,r-=o,lt=1<<32-He(t)+r|n<<r|l,rt=s+e}else lt=1<<s|n<<r|l,rt=e}function $i(e){e.return!==null&&(At(e,1),Ju(e,1,0))}function Oi(e){for(;e===fr;)fr=on[--an],on[an]=null,mr=on[--an],on[an]=null;for(;e===Wt;)Wt=Re[--De],Re[De]=null,rt=Re[--De],Re[De]=null,lt=Re[--De],Re[De]=null}var _e=null,ze=null,X=!1,Ve=null;function ec(e,t){var n=Ie(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function qo(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,_e=e,ze=St(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,_e=e,ze=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Wt!==null?{id:lt,overflow:rt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ie(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,_e=e,ze=null,!0):!1;default:return!1}}function qs(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Xs(e){if(X){var t=ze;if(t){var n=t;if(!qo(e,t)){if(qs(e))throw Error(C(418));t=St(n.nextSibling);var l=_e;t&&qo(e,t)?ec(l,n):(e.flags=e.flags&-4097|2,X=!1,_e=e)}}else{if(qs(e))throw Error(C(418));e.flags=e.flags&-4097|2,X=!1,_e=e}}}function Xo(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;_e=e}function Dl(e){if(e!==_e)return!1;if(!X)return Xo(e),X=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ws(e.type,e.memoizedProps)),t&&(t=ze)){if(qs(e))throw tc(),Error(C(418));for(;t;)ec(e,t),t=St(t.nextSibling)}if(Xo(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(C(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ze=St(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ze=null}}else ze=_e?St(e.stateNode.nextSibling):null;return!0}function tc(){for(var e=ze;e;)e=St(e.nextSibling)}function jn(){ze=_e=null,X=!1}function Fi(e){Ve===null?Ve=[e]:Ve.push(e)}var om=dt.ReactCurrentBatchConfig;function $n(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(C(309));var l=n.stateNode}if(!l)throw Error(C(147,e));var r=l,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=r.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(C(284));if(!n._owner)throw Error(C(290,e))}return e}function Il(e,t){throw e=Object.prototype.toString.call(t),Error(C(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Go(e){var t=e._init;return t(e._payload)}function nc(e){function t(f,d){if(e){var g=f.deletions;g===null?(f.deletions=[d],f.flags|=16):g.push(d)}}function n(f,d){if(!e)return null;for(;d!==null;)t(f,d),d=d.sibling;return null}function l(f,d){for(f=new Map;d!==null;)d.key!==null?f.set(d.key,d):f.set(d.index,d),d=d.sibling;return f}function r(f,d){return f=Et(f,d),f.index=0,f.sibling=null,f}function s(f,d,g){return f.index=g,e?(g=f.alternate,g!==null?(g=g.index,g<d?(f.flags|=2,d):g):(f.flags|=2,d)):(f.flags|=1048576,d)}function o(f){return e&&f.alternate===null&&(f.flags|=2),f}function a(f,d,g,w){return d===null||d.tag!==6?(d=ys(g,f.mode,w),d.return=f,d):(d=r(d,g),d.return=f,d)}function u(f,d,g,w){var b=g.type;return b===en?c(f,d,g.props.children,w,g.key):d!==null&&(d.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===pt&&Go(b)===d.type)?(w=r(d,g.props),w.ref=$n(f,d,g),w.return=f,w):(w=Jl(g.type,g.key,g.props,null,f.mode,w),w.ref=$n(f,d,g),w.return=f,w)}function m(f,d,g,w){return d===null||d.tag!==4||d.stateNode.containerInfo!==g.containerInfo||d.stateNode.implementation!==g.implementation?(d=gs(g,f.mode,w),d.return=f,d):(d=r(d,g.children||[]),d.return=f,d)}function c(f,d,g,w,b){return d===null||d.tag!==7?(d=Vt(g,f.mode,w,b),d.return=f,d):(d=r(d,g),d.return=f,d)}function h(f,d,g){if(typeof d=="string"&&d!==""||typeof d=="number")return d=ys(""+d,f.mode,g),d.return=f,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Cl:return g=Jl(d.type,d.key,d.props,null,f.mode,g),g.ref=$n(f,null,d),g.return=f,g;case Jt:return d=gs(d,f.mode,g),d.return=f,d;case pt:var w=d._init;return h(f,w(d._payload),g)}if(Vn(d)||Mn(d))return d=Vt(d,f.mode,g,null),d.return=f,d;Il(f,d)}return null}function v(f,d,g,w){var b=d!==null?d.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return b!==null?null:a(f,d,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Cl:return g.key===b?u(f,d,g,w):null;case Jt:return g.key===b?m(f,d,g,w):null;case pt:return b=g._init,v(f,d,b(g._payload),w)}if(Vn(g)||Mn(g))return b!==null?null:c(f,d,g,w,null);Il(f,g)}return null}function x(f,d,g,w,b){if(typeof w=="string"&&w!==""||typeof w=="number")return f=f.get(g)||null,a(d,f,""+w,b);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Cl:return f=f.get(w.key===null?g:w.key)||null,u(d,f,w,b);case Jt:return f=f.get(w.key===null?g:w.key)||null,m(d,f,w,b);case pt:var T=w._init;return x(f,d,g,T(w._payload),b)}if(Vn(w)||Mn(w))return f=f.get(g)||null,c(d,f,w,b,null);Il(d,w)}return null}function y(f,d,g,w){for(var b=null,T=null,E=d,_=d=0,j=null;E!==null&&_<g.length;_++){E.index>_?(j=E,E=null):j=E.sibling;var R=v(f,E,g[_],w);if(R===null){E===null&&(E=j);break}e&&E&&R.alternate===null&&t(f,E),d=s(R,d,_),T===null?b=R:T.sibling=R,T=R,E=j}if(_===g.length)return n(f,E),X&&At(f,_),b;if(E===null){for(;_<g.length;_++)E=h(f,g[_],w),E!==null&&(d=s(E,d,_),T===null?b=E:T.sibling=E,T=E);return X&&At(f,_),b}for(E=l(f,E);_<g.length;_++)j=x(E,f,_,g[_],w),j!==null&&(e&&j.alternate!==null&&E.delete(j.key===null?_:j.key),d=s(j,d,_),T===null?b=j:T.sibling=j,T=j);return e&&E.forEach(function(S){return t(f,S)}),X&&At(f,_),b}function p(f,d,g,w){var b=Mn(g);if(typeof b!="function")throw Error(C(150));if(g=b.call(g),g==null)throw Error(C(151));for(var T=b=null,E=d,_=d=0,j=null,R=g.next();E!==null&&!R.done;_++,R=g.next()){E.index>_?(j=E,E=null):j=E.sibling;var S=v(f,E,R.value,w);if(S===null){E===null&&(E=j);break}e&&E&&S.alternate===null&&t(f,E),d=s(S,d,_),T===null?b=S:T.sibling=S,T=S,E=j}if(R.done)return n(f,E),X&&At(f,_),b;if(E===null){for(;!R.done;_++,R=g.next())R=h(f,R.value,w),R!==null&&(d=s(R,d,_),T===null?b=R:T.sibling=R,T=R);return X&&At(f,_),b}for(E=l(f,E);!R.done;_++,R=g.next())R=x(E,f,_,R.value,w),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?_:R.key),d=s(R,d,_),T===null?b=R:T.sibling=R,T=R);return e&&E.forEach(function(L){return t(f,L)}),X&&At(f,_),b}function N(f,d,g,w){if(typeof g=="object"&&g!==null&&g.type===en&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Cl:e:{for(var b=g.key,T=d;T!==null;){if(T.key===b){if(b=g.type,b===en){if(T.tag===7){n(f,T.sibling),d=r(T,g.props.children),d.return=f,f=d;break e}}else if(T.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===pt&&Go(b)===T.type){n(f,T.sibling),d=r(T,g.props),d.ref=$n(f,T,g),d.return=f,f=d;break e}n(f,T);break}else t(f,T);T=T.sibling}g.type===en?(d=Vt(g.props.children,f.mode,w,g.key),d.return=f,f=d):(w=Jl(g.type,g.key,g.props,null,f.mode,w),w.ref=$n(f,d,g),w.return=f,f=w)}return o(f);case Jt:e:{for(T=g.key;d!==null;){if(d.key===T)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(f,d.sibling),d=r(d,g.children||[]),d.return=f,f=d;break e}else{n(f,d);break}else t(f,d);d=d.sibling}d=gs(g,f.mode,w),d.return=f,f=d}return o(f);case pt:return T=g._init,N(f,d,T(g._payload),w)}if(Vn(g))return y(f,d,g,w);if(Mn(g))return p(f,d,g,w);Il(f,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,d!==null&&d.tag===6?(n(f,d.sibling),d=r(d,g),d.return=f,f=d):(n(f,d),d=ys(g,f.mode,w),d.return=f,f=d),o(f)):n(f,d)}return N}var Sn=nc(!0),lc=nc(!1),pr=Lt(null),hr=null,un=null,Ui=null;function Bi(){Ui=un=hr=null}function Vi(e){var t=pr.current;Y(pr),e._currentValue=t}function Gs(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function yn(e,t){hr=e,Ui=un=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ne=!0),e.firstContext=null)}function $e(e){var t=e._currentValue;if(Ui!==e)if(e={context:e,memoizedValue:t,next:null},un===null){if(hr===null)throw Error(C(308));un=e,hr.dependencies={lanes:0,firstContext:e}}else un=un.next=e;return t}var Ft=null;function Hi(e){Ft===null?Ft=[e]:Ft.push(e)}function rc(e,t,n,l){var r=t.interleaved;return r===null?(n.next=n,Hi(t)):(n.next=r.next,r.next=n),t.interleaved=n,at(e,l)}function at(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ht=!1;function Wi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function sc(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 st(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Nt(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,U&2){var r=l.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),l.pending=t,at(e,n)}return r=l.interleaved,r===null?(t.next=t,Hi(l)):(t.next=r.next,r.next=t),l.interleaved=t,at(e,n)}function Kl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,_i(e,n)}}function Zo(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var r=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?r=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?r=s=t:s=s.next=t}else r=s=t;n={baseState:l.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:l.shared,effects:l.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function vr(e,t,n,l){var r=e.updateQueue;ht=!1;var s=r.firstBaseUpdate,o=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var u=a,m=u.next;u.next=null,o===null?s=m:o.next=m,o=u;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=m:a.next=m,c.lastBaseUpdate=u))}if(s!==null){var h=r.baseState;o=0,c=m=u=null,a=s;do{var v=a.lane,x=a.eventTime;if((l&v)===v){c!==null&&(c=c.next={eventTime:x,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,p=a;switch(v=t,x=n,p.tag){case 1:if(y=p.payload,typeof y=="function"){h=y.call(x,h,v);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=p.payload,v=typeof y=="function"?y.call(x,h,v):y,v==null)break e;h=J({},h,v);break e;case 2:ht=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,v=r.effects,v===null?r.effects=[a]:v.push(a))}else x={eventTime:x,lane:v,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(m=c=x,u=h):c=c.next=x,o|=v;if(a=a.next,a===null){if(a=r.shared.pending,a===null)break;v=a,a=v.next,v.next=null,r.lastBaseUpdate=v,r.shared.pending=null}}while(!0);if(c===null&&(u=h),r.baseState=u,r.firstBaseUpdate=m,r.lastBaseUpdate=c,t=r.shared.interleaved,t!==null){r=t;do o|=r.lane,r=r.next;while(r!==t)}else s===null&&(r.shared.lanes=0);Kt|=o,e.lanes=o,e.memoizedState=h}}function Jo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var l=e[t],r=l.callback;if(r!==null){if(l.callback=null,l=n,typeof r!="function")throw Error(C(191,r));r.call(l)}}}var Sl={},Je=Lt(Sl),fl=Lt(Sl),ml=Lt(Sl);function Ut(e){if(e===Sl)throw Error(C(174));return e}function Qi(e,t){switch(Q(ml,t),Q(fl,e),Q(Je,Sl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ls(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ls(t,e)}Y(Je),Q(Je,t)}function Nn(){Y(Je),Y(fl),Y(ml)}function ic(e){Ut(ml.current);var t=Ut(Je.current),n=Ls(t,e.type);t!==n&&(Q(fl,e),Q(Je,n))}function Ki(e){fl.current===e&&(Y(Je),Y(fl))}var G=Lt(0);function yr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 ds=[];function Yi(){for(var e=0;e<ds.length;e++)ds[e]._workInProgressVersionPrimary=null;ds.length=0}var Yl=dt.ReactCurrentDispatcher,fs=dt.ReactCurrentBatchConfig,Qt=0,Z=null,se=null,oe=null,gr=!1,Gn=!1,pl=0,am=0;function me(){throw Error(C(321))}function qi(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qe(e[n],t[n]))return!1;return!0}function Xi(e,t,n,l,r,s){if(Qt=s,Z=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yl.current=e===null||e.memoizedState===null?fm:mm,e=n(l,r),Gn){s=0;do{if(Gn=!1,pl=0,25<=s)throw Error(C(301));s+=1,oe=se=null,t.updateQueue=null,Yl.current=pm,e=n(l,r)}while(Gn)}if(Yl.current=xr,t=se!==null&&se.next!==null,Qt=0,oe=se=Z=null,gr=!1,t)throw Error(C(300));return e}function Gi(){var e=pl!==0;return pl=0,e}function Xe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return oe===null?Z.memoizedState=oe=e:oe=oe.next=e,oe}function Oe(){if(se===null){var e=Z.alternate;e=e!==null?e.memoizedState:null}else e=se.next;var t=oe===null?Z.memoizedState:oe.next;if(t!==null)oe=t,se=e;else{if(e===null)throw Error(C(310));se=e,e={memoizedState:se.memoizedState,baseState:se.baseState,baseQueue:se.baseQueue,queue:se.queue,next:null},oe===null?Z.memoizedState=oe=e:oe=oe.next=e}return oe}function hl(e,t){return typeof t=="function"?t(e):t}function ms(e){var t=Oe(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var l=se,r=l.baseQueue,s=n.pending;if(s!==null){if(r!==null){var o=r.next;r.next=s.next,s.next=o}l.baseQueue=r=s,n.pending=null}if(r!==null){s=r.next,l=l.baseState;var a=o=null,u=null,m=s;do{var c=m.lane;if((Qt&c)===c)u!==null&&(u=u.next={lane:0,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null}),l=m.hasEagerState?m.eagerState:e(l,m.action);else{var h={lane:c,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null};u===null?(a=u=h,o=l):u=u.next=h,Z.lanes|=c,Kt|=c}m=m.next}while(m!==null&&m!==s);u===null?o=l:u.next=a,Qe(l,t.memoizedState)||(Ne=!0),t.memoizedState=l,t.baseState=o,t.baseQueue=u,n.lastRenderedState=l}if(e=n.interleaved,e!==null){r=e;do s=r.lane,Z.lanes|=s,Kt|=s,r=r.next;while(r!==e)}else r===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ps(e){var t=Oe(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var l=n.dispatch,r=n.pending,s=t.memoizedState;if(r!==null){n.pending=null;var o=r=r.next;do s=e(s,o.action),o=o.next;while(o!==r);Qe(s,t.memoizedState)||(Ne=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,l]}function oc(){}function ac(e,t){var n=Z,l=Oe(),r=t(),s=!Qe(l.memoizedState,r);if(s&&(l.memoizedState=r,Ne=!0),l=l.queue,Zi(dc.bind(null,n,l,e),[e]),l.getSnapshot!==t||s||oe!==null&&oe.memoizedState.tag&1){if(n.flags|=2048,vl(9,cc.bind(null,n,l,r,t),void 0,null),ae===null)throw Error(C(349));Qt&30||uc(n,t,r)}return r}function uc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Z.updateQueue,t===null?(t={lastEffect:null,stores:null},Z.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function cc(e,t,n,l){t.value=n,t.getSnapshot=l,fc(t)&&mc(e)}function dc(e,t,n){return n(function(){fc(t)&&mc(e)})}function fc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qe(e,n)}catch{return!0}}function mc(e){var t=at(e,1);t!==null&&We(t,e,1,-1)}function ea(e){var t=Xe();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:hl,lastRenderedState:e},t.queue=e,e=e.dispatch=dm.bind(null,Z,e),[t.memoizedState,e]}function vl(e,t,n,l){return e={tag:e,create:t,destroy:n,deps:l,next:null},t=Z.updateQueue,t===null?(t={lastEffect:null,stores:null},Z.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e)),e}function pc(){return Oe().memoizedState}function ql(e,t,n,l){var r=Xe();Z.flags|=e,r.memoizedState=vl(1|t,n,void 0,l===void 0?null:l)}function Rr(e,t,n,l){var r=Oe();l=l===void 0?null:l;var s=void 0;if(se!==null){var o=se.memoizedState;if(s=o.destroy,l!==null&&qi(l,o.deps)){r.memoizedState=vl(t,n,s,l);return}}Z.flags|=e,r.memoizedState=vl(1|t,n,s,l)}function ta(e,t){return ql(8390656,8,e,t)}function Zi(e,t){return Rr(2048,8,e,t)}function hc(e,t){return Rr(4,2,e,t)}function vc(e,t){return Rr(4,4,e,t)}function yc(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 gc(e,t,n){return n=n!=null?n.concat([e]):null,Rr(4,4,yc.bind(null,t,e),n)}function Ji(){}function xc(e,t){var n=Oe();t=t===void 0?null:t;var l=n.memoizedState;return l!==null&&t!==null&&qi(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function kc(e,t){var n=Oe();t=t===void 0?null:t;var l=n.memoizedState;return l!==null&&t!==null&&qi(t,l[1])?l[0]:(e=e(),n.memoizedState=[e,t],e)}function wc(e,t,n){return Qt&21?(Qe(n,t)||(n=bu(),Z.lanes|=n,Kt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ne=!0),e.memoizedState=n)}function um(e,t){var n=W;W=n!==0&&4>n?n:4,e(!0);var l=fs.transition;fs.transition={};try{e(!1),t()}finally{W=n,fs.transition=l}}function jc(){return Oe().memoizedState}function cm(e,t,n){var l=bt(e);if(n={lane:l,action:n,hasEagerState:!1,eagerState:null,next:null},Sc(e))Nc(t,n);else if(n=rc(e,t,n,l),n!==null){var r=ge();We(n,e,l,r),Cc(n,t,l)}}function dm(e,t,n){var l=bt(e),r={lane:l,action:n,hasEagerState:!1,eagerState:null,next:null};if(Sc(e))Nc(t,r);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(r.hasEagerState=!0,r.eagerState=a,Qe(a,o)){var u=t.interleaved;u===null?(r.next=r,Hi(t)):(r.next=u.next,u.next=r),t.interleaved=r;return}}catch{}finally{}n=rc(e,t,r,l),n!==null&&(r=ge(),We(n,e,l,r),Cc(n,t,l))}}function Sc(e){var t=e.alternate;return e===Z||t!==null&&t===Z}function Nc(e,t){Gn=gr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Cc(e,t,n){if(n&4194240){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,_i(e,n)}}var xr={readContext:$e,useCallback:me,useContext:me,useEffect:me,useImperativeHandle:me,useInsertionEffect:me,useLayoutEffect:me,useMemo:me,useReducer:me,useRef:me,useState:me,useDebugValue:me,useDeferredValue:me,useTransition:me,useMutableSource:me,useSyncExternalStore:me,useId:me,unstable_isNewReconciler:!1},fm={readContext:$e,useCallback:function(e,t){return Xe().memoizedState=[e,t===void 0?null:t],e},useContext:$e,useEffect:ta,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ql(4194308,4,yc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ql(4194308,4,e,t)},useInsertionEffect:function(e,t){return ql(4,2,e,t)},useMemo:function(e,t){var n=Xe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var l=Xe();return t=n!==void 0?n(t):t,l.memoizedState=l.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},l.queue=e,e=e.dispatch=cm.bind(null,Z,e),[l.memoizedState,e]},useRef:function(e){var t=Xe();return e={current:e},t.memoizedState=e},useState:ea,useDebugValue:Ji,useDeferredValue:function(e){return Xe().memoizedState=e},useTransition:function(){var e=ea(!1),t=e[0];return e=um.bind(null,e[1]),Xe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var l=Z,r=Xe();if(X){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),ae===null)throw Error(C(349));Qt&30||uc(l,t,n)}r.memoizedState=n;var s={value:n,getSnapshot:t};return r.queue=s,ta(dc.bind(null,l,s,e),[e]),l.flags|=2048,vl(9,cc.bind(null,l,s,n,t),void 0,null),n},useId:function(){var e=Xe(),t=ae.identifierPrefix;if(X){var n=rt,l=lt;n=(l&~(1<<32-He(l)-1)).toString(32)+n,t=":"+t+"R"+n,n=pl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=am++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},mm={readContext:$e,useCallback:xc,useContext:$e,useEffect:Zi,useImperativeHandle:gc,useInsertionEffect:hc,useLayoutEffect:vc,useMemo:kc,useReducer:ms,useRef:pc,useState:function(){return ms(hl)},useDebugValue:Ji,useDeferredValue:function(e){var t=Oe();return wc(t,se.memoizedState,e)},useTransition:function(){var e=ms(hl)[0],t=Oe().memoizedState;return[e,t]},useMutableSource:oc,useSyncExternalStore:ac,useId:jc,unstable_isNewReconciler:!1},pm={readContext:$e,useCallback:xc,useContext:$e,useEffect:Zi,useImperativeHandle:gc,useInsertionEffect:hc,useLayoutEffect:vc,useMemo:kc,useReducer:ps,useRef:pc,useState:function(){return ps(hl)},useDebugValue:Ji,useDeferredValue:function(e){var t=Oe();return se===null?t.memoizedState=e:wc(t,se.memoizedState,e)},useTransition:function(){var e=ps(hl)[0],t=Oe().memoizedState;return[e,t]},useMutableSource:oc,useSyncExternalStore:ac,useId:jc,unstable_isNewReconciler:!1};function Ue(e,t){if(e&&e.defaultProps){t=J({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Zs(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:J({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Dr={isMounted:function(e){return(e=e._reactInternals)?Gt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var l=ge(),r=bt(e),s=st(l,r);s.payload=t,n!=null&&(s.callback=n),t=Nt(e,s,r),t!==null&&(We(t,e,r,l),Kl(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=ge(),r=bt(e),s=st(l,r);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Nt(e,s,r),t!==null&&(We(t,e,r,l),Kl(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ge(),l=bt(e),r=st(n,l);r.tag=2,t!=null&&(r.callback=t),t=Nt(e,r,l),t!==null&&(We(t,e,l,n),Kl(t,e,l))}};function na(e,t,n,l,r,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,o):t.prototype&&t.prototype.isPureReactComponent?!al(n,l)||!al(r,s):!0}function bc(e,t,n){var l=!1,r=zt,s=t.contextType;return typeof s=="object"&&s!==null?s=$e(s):(r=be(t)?Ht:ve.current,l=t.contextTypes,s=(l=l!=null)?wn(e,r):zt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Dr,e.stateNode=t,t._reactInternals=e,l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=s),t}function la(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Dr.enqueueReplaceState(t,t.state,null)}function Js(e,t,n,l){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},Wi(e);var s=t.contextType;typeof s=="object"&&s!==null?r.context=$e(s):(s=be(t)?Ht:ve.current,r.context=wn(e,s)),r.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Zs(e,t,s,n),r.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(t=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),t!==r.state&&Dr.enqueueReplaceState(r,r.state,null),vr(e,n,r,l),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308)}function Cn(e,t){try{var n="",l=t;do n+=Ud(l),l=l.return;while(l);var r=n}catch(s){r=`
|
|
40
|
+
Error generating stack: `+s.message+`
|
|
41
|
+
`+s.stack}return{value:e,source:t,stack:r,digest:null}}function hs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ei(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var hm=typeof WeakMap=="function"?WeakMap:Map;function Ec(e,t,n){n=st(-1,n),n.tag=3,n.payload={element:null};var l=t.value;return n.callback=function(){wr||(wr=!0,ci=l),ei(e,t)},n}function Tc(e,t,n){n=st(-1,n),n.tag=3;var l=e.type.getDerivedStateFromError;if(typeof l=="function"){var r=t.value;n.payload=function(){return l(r)},n.callback=function(){ei(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){ei(e,t),typeof l!="function"&&(Ct===null?Ct=new Set([this]):Ct.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function ra(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new hm;var r=new Set;l.set(t,r)}else r=l.get(t),r===void 0&&(r=new Set,l.set(t,r));r.has(n)||(r.add(n),e=zm.bind(null,e,t,n),t.then(e,e))}function sa(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 ia(e,t,n,l,r){return e.mode&1?(e.flags|=65536,e.lanes=r,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=st(-1,1),t.tag=2,Nt(n,t,1))),n.lanes|=1),e)}var vm=dt.ReactCurrentOwner,Ne=!1;function ye(e,t,n,l){t.child=e===null?lc(t,null,n,l):Sn(t,e.child,n,l)}function oa(e,t,n,l,r){n=n.render;var s=t.ref;return yn(t,r),l=Xi(e,t,n,l,s,r),n=Gi(),e!==null&&!Ne?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,ut(e,t,r)):(X&&n&&$i(t),t.flags|=1,ye(e,t,l,r),t.child)}function aa(e,t,n,l,r){if(e===null){var s=n.type;return typeof s=="function"&&!oo(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,zc(e,t,s,l,r)):(e=Jl(n.type,null,l,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&r)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:al,n(o,l)&&e.ref===t.ref)return ut(e,t,r)}return t.flags|=1,e=Et(s,l),e.ref=t.ref,e.return=t,t.child=e}function zc(e,t,n,l,r){if(e!==null){var s=e.memoizedProps;if(al(s,l)&&e.ref===t.ref)if(Ne=!1,t.pendingProps=l=s,(e.lanes&r)!==0)e.flags&131072&&(Ne=!0);else return t.lanes=e.lanes,ut(e,t,r)}return ti(e,t,n,l,r)}function _c(e,t,n){var l=t.pendingProps,r=l.children,s=e!==null?e.memoizedState:null;if(l.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Q(dn,Te),Te|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Q(dn,Te),Te|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=s!==null?s.baseLanes:n,Q(dn,Te),Te|=l}else s!==null?(l=s.baseLanes|n,t.memoizedState=null):l=n,Q(dn,Te),Te|=l;return ye(e,t,r,n),t.child}function Lc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ti(e,t,n,l,r){var s=be(n)?Ht:ve.current;return s=wn(t,s),yn(t,r),n=Xi(e,t,n,l,s,r),l=Gi(),e!==null&&!Ne?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,ut(e,t,r)):(X&&l&&$i(t),t.flags|=1,ye(e,t,n,r),t.child)}function ua(e,t,n,l,r){if(be(n)){var s=!0;dr(t)}else s=!1;if(yn(t,r),t.stateNode===null)Xl(e,t),bc(t,n,l),Js(t,n,l,r),l=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var u=o.context,m=n.contextType;typeof m=="object"&&m!==null?m=$e(m):(m=be(n)?Ht:ve.current,m=wn(t,m));var c=n.getDerivedStateFromProps,h=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==l||u!==m)&&la(t,o,l,m),ht=!1;var v=t.memoizedState;o.state=v,vr(t,l,o,r),u=t.memoizedState,a!==l||v!==u||Ce.current||ht?(typeof c=="function"&&(Zs(t,n,c,l),u=t.memoizedState),(a=ht||na(t,n,a,l,v,u,m))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=u),o.props=l,o.state=u,o.context=m,l=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{o=t.stateNode,sc(e,t),a=t.memoizedProps,m=t.type===t.elementType?a:Ue(t.type,a),o.props=m,h=t.pendingProps,v=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=$e(u):(u=be(n)?Ht:ve.current,u=wn(t,u));var x=n.getDerivedStateFromProps;(c=typeof x=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==h||v!==u)&&la(t,o,l,u),ht=!1,v=t.memoizedState,o.state=v,vr(t,l,o,r);var y=t.memoizedState;a!==h||v!==y||Ce.current||ht?(typeof x=="function"&&(Zs(t,n,x,l),y=t.memoizedState),(m=ht||na(t,n,m,l,v,y,u)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(l,y,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(l,y,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=y),o.props=l,o.state=y,o.context=u,l=m):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),l=!1)}return ni(e,t,n,l,s,r)}function ni(e,t,n,l,r,s){Lc(e,t);var o=(t.flags&128)!==0;if(!l&&!o)return r&&Yo(t,n,!1),ut(e,t,s);l=t.stateNode,vm.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:l.render();return t.flags|=1,e!==null&&o?(t.child=Sn(t,e.child,null,s),t.child=Sn(t,null,a,s)):ye(e,t,a,s),t.memoizedState=l.state,r&&Yo(t,n,!0),t.child}function Pc(e){var t=e.stateNode;t.pendingContext?Ko(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ko(e,t.context,!1),Qi(e,t.containerInfo)}function ca(e,t,n,l,r){return jn(),Fi(r),t.flags|=256,ye(e,t,n,l),t.child}var li={dehydrated:null,treeContext:null,retryLane:0};function ri(e){return{baseLanes:e,cachePool:null,transitions:null}}function Mc(e,t,n){var l=t.pendingProps,r=G.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(r&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r|=1),Q(G,r&1),e===null)return Xs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=l.children,e=l.fallback,s?(l=t.mode,s=t.child,o={mode:"hidden",children:o},!(l&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=$r(o,l,0,null),e=Vt(e,l,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=ri(n),t.memoizedState=li,e):eo(t,o));if(r=e.memoizedState,r!==null&&(a=r.dehydrated,a!==null))return ym(e,t,o,l,a,r,n);if(s){s=l.fallback,o=t.mode,r=e.child,a=r.sibling;var u={mode:"hidden",children:l.children};return!(o&1)&&t.child!==r?(l=t.child,l.childLanes=0,l.pendingProps=u,t.deletions=null):(l=Et(r,u),l.subtreeFlags=r.subtreeFlags&14680064),a!==null?s=Et(a,s):(s=Vt(s,o,n,null),s.flags|=2),s.return=t,l.return=t,l.sibling=s,t.child=l,l=s,s=t.child,o=e.child.memoizedState,o=o===null?ri(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=li,l}return s=e.child,e=s.sibling,l=Et(s,{mode:"visible",children:l.children}),!(t.mode&1)&&(l.lanes=n),l.return=t,l.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=l,t.memoizedState=null,l}function eo(e,t){return t=$r({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Al(e,t,n,l){return l!==null&&Fi(l),Sn(t,e.child,null,n),e=eo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ym(e,t,n,l,r,s,o){if(n)return t.flags&256?(t.flags&=-257,l=hs(Error(C(422))),Al(e,t,o,l)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=l.fallback,r=t.mode,l=$r({mode:"visible",children:l.children},r,0,null),s=Vt(s,r,o,null),s.flags|=2,l.return=t,s.return=t,l.sibling=s,t.child=l,t.mode&1&&Sn(t,e.child,null,o),t.child.memoizedState=ri(o),t.memoizedState=li,s);if(!(t.mode&1))return Al(e,t,o,null);if(r.data==="$!"){if(l=r.nextSibling&&r.nextSibling.dataset,l)var a=l.dgst;return l=a,s=Error(C(419)),l=hs(s,l,void 0),Al(e,t,o,l)}if(a=(o&e.childLanes)!==0,Ne||a){if(l=ae,l!==null){switch(o&-o){case 4:r=2;break;case 16:r=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:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&(l.suspendedLanes|o)?0:r,r!==0&&r!==s.retryLane&&(s.retryLane=r,at(e,r),We(l,e,r,-1))}return io(),l=hs(Error(C(421))),Al(e,t,o,l)}return r.data==="$?"?(t.flags|=128,t.child=e.child,t=_m.bind(null,e),r._reactRetry=t,null):(e=s.treeContext,ze=St(r.nextSibling),_e=t,X=!0,Ve=null,e!==null&&(Re[De++]=lt,Re[De++]=rt,Re[De++]=Wt,lt=e.id,rt=e.overflow,Wt=t),t=eo(t,l.children),t.flags|=4096,t)}function da(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Gs(e.return,t,n)}function vs(e,t,n,l,r){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:r}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=l,s.tail=n,s.tailMode=r)}function Rc(e,t,n){var l=t.pendingProps,r=l.revealOrder,s=l.tail;if(ye(e,t,l.children,n),l=G.current,l&2)l=l&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&da(e,n,t);else if(e.tag===19)da(e,n,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}l&=1}if(Q(G,l),!(t.mode&1))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&yr(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),vs(t,!1,r,n,s);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&yr(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}vs(t,!0,n,null,s);break;case"together":vs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ut(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(C(153));if(t.child!==null){for(e=t.child,n=Et(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Et(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function gm(e,t,n){switch(t.tag){case 3:Pc(t),jn();break;case 5:ic(t);break;case 1:be(t.type)&&dr(t);break;case 4:Qi(t,t.stateNode.containerInfo);break;case 10:var l=t.type._context,r=t.memoizedProps.value;Q(pr,l._currentValue),l._currentValue=r;break;case 13:if(l=t.memoizedState,l!==null)return l.dehydrated!==null?(Q(G,G.current&1),t.flags|=128,null):n&t.child.childLanes?Mc(e,t,n):(Q(G,G.current&1),e=ut(e,t,n),e!==null?e.sibling:null);Q(G,G.current&1);break;case 19:if(l=(n&t.childLanes)!==0,e.flags&128){if(l)return Rc(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Q(G,G.current),l)break;return null;case 22:case 23:return t.lanes=0,_c(e,t,n)}return ut(e,t,n)}var Dc,si,Ic,Ac;Dc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};si=function(){};Ic=function(e,t,n,l){var r=e.memoizedProps;if(r!==l){e=t.stateNode,Ut(Je.current);var s=null;switch(n){case"input":r=Es(e,r),l=Es(e,l),s=[];break;case"select":r=J({},r,{value:void 0}),l=J({},l,{value:void 0}),s=[];break;case"textarea":r=_s(e,r),l=_s(e,l),s=[];break;default:typeof r.onClick!="function"&&typeof l.onClick=="function"&&(e.onclick=ur)}Ps(n,l);var o;n=null;for(m in r)if(!l.hasOwnProperty(m)&&r.hasOwnProperty(m)&&r[m]!=null)if(m==="style"){var a=r[m];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else m!=="dangerouslySetInnerHTML"&&m!=="children"&&m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(tl.hasOwnProperty(m)?s||(s=[]):(s=s||[]).push(m,null));for(m in l){var u=l[m];if(a=r!=null?r[m]:void 0,l.hasOwnProperty(m)&&u!==a&&(u!=null||a!=null))if(m==="style")if(a){for(o in a)!a.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&a[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(s||(s=[]),s.push(m,n)),n=u;else m==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(s=s||[]).push(m,u)):m==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(m,""+u):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&(tl.hasOwnProperty(m)?(u!=null&&m==="onScroll"&&K("scroll",e),s||a===u||(s=[])):(s=s||[]).push(m,u))}n&&(s=s||[]).push("style",n);var m=s;(t.updateQueue=m)&&(t.flags|=4)}};Ac=function(e,t,n,l){n!==l&&(t.flags|=4)};function On(e,t){if(!X)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags&14680064,l|=r.flags&14680064,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags,l|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function xm(e,t,n){var l=t.pendingProps;switch(Oi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pe(t),null;case 1:return be(t.type)&&cr(),pe(t),null;case 3:return l=t.stateNode,Nn(),Y(Ce),Y(ve),Yi(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Dl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ve!==null&&(mi(Ve),Ve=null))),si(e,t),pe(t),null;case 5:Ki(t);var r=Ut(ml.current);if(n=t.type,e!==null&&t.stateNode!=null)Ic(e,t,n,l,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(t.stateNode===null)throw Error(C(166));return pe(t),null}if(e=Ut(Je.current),Dl(t)){l=t.stateNode,n=t.type;var s=t.memoizedProps;switch(l[Ge]=t,l[dl]=s,e=(t.mode&1)!==0,n){case"dialog":K("cancel",l),K("close",l);break;case"iframe":case"object":case"embed":K("load",l);break;case"video":case"audio":for(r=0;r<Wn.length;r++)K(Wn[r],l);break;case"source":K("error",l);break;case"img":case"image":case"link":K("error",l),K("load",l);break;case"details":K("toggle",l);break;case"input":ko(l,s),K("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!s.multiple},K("invalid",l);break;case"textarea":jo(l,s),K("invalid",l)}Ps(n,s),r=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?l.textContent!==a&&(s.suppressHydrationWarning!==!0&&Rl(l.textContent,a,e),r=["children",a]):typeof a=="number"&&l.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Rl(l.textContent,a,e),r=["children",""+a]):tl.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&K("scroll",l)}switch(n){case"input":bl(l),wo(l,s,!0);break;case"textarea":bl(l),So(l);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(l.onclick=ur)}l=r,t.updateQueue=l,l!==null&&(t.flags|=4)}else{o=r.nodeType===9?r:r.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=du(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof l.is=="string"?e=o.createElement(n,{is:l.is}):(e=o.createElement(n),n==="select"&&(o=e,l.multiple?o.multiple=!0:l.size&&(o.size=l.size))):e=o.createElementNS(e,n),e[Ge]=t,e[dl]=l,Dc(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ms(n,l),n){case"dialog":K("cancel",e),K("close",e),r=l;break;case"iframe":case"object":case"embed":K("load",e),r=l;break;case"video":case"audio":for(r=0;r<Wn.length;r++)K(Wn[r],e);r=l;break;case"source":K("error",e),r=l;break;case"img":case"image":case"link":K("error",e),K("load",e),r=l;break;case"details":K("toggle",e),r=l;break;case"input":ko(e,l),r=Es(e,l),K("invalid",e);break;case"option":r=l;break;case"select":e._wrapperState={wasMultiple:!!l.multiple},r=J({},l,{value:void 0}),K("invalid",e);break;case"textarea":jo(e,l),r=_s(e,l),K("invalid",e);break;default:r=l}Ps(n,r),a=r;for(s in a)if(a.hasOwnProperty(s)){var u=a[s];s==="style"?pu(e,u):s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&fu(e,u)):s==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&nl(e,u):typeof u=="number"&&nl(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(tl.hasOwnProperty(s)?u!=null&&s==="onScroll"&&K("scroll",e):u!=null&&Ni(e,s,u,o))}switch(n){case"input":bl(e),wo(e,l,!1);break;case"textarea":bl(e),So(e);break;case"option":l.value!=null&&e.setAttribute("value",""+Tt(l.value));break;case"select":e.multiple=!!l.multiple,s=l.value,s!=null?mn(e,!!l.multiple,s,!1):l.defaultValue!=null&&mn(e,!!l.multiple,l.defaultValue,!0);break;default:typeof r.onClick=="function"&&(e.onclick=ur)}switch(n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return pe(t),null;case 6:if(e&&t.stateNode!=null)Ac(e,t,e.memoizedProps,l);else{if(typeof l!="string"&&t.stateNode===null)throw Error(C(166));if(n=Ut(ml.current),Ut(Je.current),Dl(t)){if(l=t.stateNode,n=t.memoizedProps,l[Ge]=t,(s=l.nodeValue!==n)&&(e=_e,e!==null))switch(e.tag){case 3:Rl(l.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Rl(l.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else l=(n.nodeType===9?n:n.ownerDocument).createTextNode(l),l[Ge]=t,t.stateNode=l}return pe(t),null;case 13:if(Y(G),l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(X&&ze!==null&&t.mode&1&&!(t.flags&128))tc(),jn(),t.flags|=98560,s=!1;else if(s=Dl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!s)throw Error(C(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(C(317));s[Ge]=t}else jn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;pe(t),s=!1}else Ve!==null&&(mi(Ve),Ve=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(l=l!==null,l!==(e!==null&&e.memoizedState!==null)&&l&&(t.child.flags|=8192,t.mode&1&&(e===null||G.current&1?ie===0&&(ie=3):io())),t.updateQueue!==null&&(t.flags|=4),pe(t),null);case 4:return Nn(),si(e,t),e===null&&ul(t.stateNode.containerInfo),pe(t),null;case 10:return Vi(t.type._context),pe(t),null;case 17:return be(t.type)&&cr(),pe(t),null;case 19:if(Y(G),s=t.memoizedState,s===null)return pe(t),null;if(l=(t.flags&128)!==0,o=s.rendering,o===null)if(l)On(s,!1);else{if(ie!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=yr(e),o!==null){for(t.flags|=128,On(s,!1),l=o.updateQueue,l!==null&&(t.updateQueue=l,t.flags|=4),t.subtreeFlags=0,l=n,n=t.child;n!==null;)s=n,e=l,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Q(G,G.current&1|2),t.child}e=e.sibling}s.tail!==null&&le()>bn&&(t.flags|=128,l=!0,On(s,!1),t.lanes=4194304)}else{if(!l)if(e=yr(o),e!==null){if(t.flags|=128,l=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),On(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!X)return pe(t),null}else 2*le()-s.renderingStartTime>bn&&n!==1073741824&&(t.flags|=128,l=!0,On(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=le(),t.sibling=null,n=G.current,Q(G,l?n&1|2:n&1),t):(pe(t),null);case 22:case 23:return so(),l=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==l&&(t.flags|=8192),l&&t.mode&1?Te&1073741824&&(pe(t),t.subtreeFlags&6&&(t.flags|=8192)):pe(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function km(e,t){switch(Oi(t),t.tag){case 1:return be(t.type)&&cr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Nn(),Y(Ce),Y(ve),Yi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ki(t),null;case 13:if(Y(G),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));jn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(G),null;case 4:return Nn(),null;case 10:return Vi(t.type._context),null;case 22:case 23:return so(),null;case 24:return null;default:return null}}var $l=!1,he=!1,wm=typeof WeakSet=="function"?WeakSet:Set,M=null;function cn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(l){te(e,t,l)}else n.current=null}function ii(e,t,n){try{n()}catch(l){te(e,t,l)}}var fa=!1;function jm(e,t){if(Vs=ir,e=Bu(),Ai(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var r=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,m=0,c=0,h=e,v=null;t:for(;;){for(var x;h!==n||r!==0&&h.nodeType!==3||(a=o+r),h!==s||l!==0&&h.nodeType!==3||(u=o+l),h.nodeType===3&&(o+=h.nodeValue.length),(x=h.firstChild)!==null;)v=h,h=x;for(;;){if(h===e)break t;if(v===n&&++m===r&&(a=o),v===s&&++c===l&&(u=o),(x=h.nextSibling)!==null)break;h=v,v=h.parentNode}h=x}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Hs={focusedElem:e,selectionRange:n},ir=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var p=y.memoizedProps,N=y.memoizedState,f=t.stateNode,d=f.getSnapshotBeforeUpdate(t.elementType===t.type?p:Ue(t.type,p),N);f.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(w){te(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return y=fa,fa=!1,y}function Zn(e,t,n){var l=t.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var r=l=l.next;do{if((r.tag&e)===e){var s=r.destroy;r.destroy=void 0,s!==void 0&&ii(t,n,s)}r=r.next}while(r!==l)}}function Ir(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var l=n.create;n.destroy=l()}n=n.next}while(n!==t)}}function oi(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $c(e){var t=e.alternate;t!==null&&(e.alternate=null,$c(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ge],delete t[dl],delete t[Ks],delete t[rm],delete t[sm])),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 Oc(e){return e.tag===5||e.tag===3||e.tag===4}function ma(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oc(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 ai(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ur));else if(l!==4&&(e=e.child,e!==null))for(ai(e,t,n),e=e.sibling;e!==null;)ai(e,t,n),e=e.sibling}function ui(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(e=e.child,e!==null))for(ui(e,t,n),e=e.sibling;e!==null;)ui(e,t,n),e=e.sibling}var ue=null,Be=!1;function mt(e,t,n){for(n=n.child;n!==null;)Fc(e,t,n),n=n.sibling}function Fc(e,t,n){if(Ze&&typeof Ze.onCommitFiberUnmount=="function")try{Ze.onCommitFiberUnmount(Tr,n)}catch{}switch(n.tag){case 5:he||cn(n,t);case 6:var l=ue,r=Be;ue=null,mt(e,t,n),ue=l,Be=r,ue!==null&&(Be?(e=ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ue.removeChild(n.stateNode));break;case 18:ue!==null&&(Be?(e=ue,n=n.stateNode,e.nodeType===8?us(e.parentNode,n):e.nodeType===1&&us(e,n),il(e)):us(ue,n.stateNode));break;case 4:l=ue,r=Be,ue=n.stateNode.containerInfo,Be=!0,mt(e,t,n),ue=l,Be=r;break;case 0:case 11:case 14:case 15:if(!he&&(l=n.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){r=l=l.next;do{var s=r,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&ii(n,t,o),r=r.next}while(r!==l)}mt(e,t,n);break;case 1:if(!he&&(cn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=n.memoizedProps,l.state=n.memoizedState,l.componentWillUnmount()}catch(a){te(n,t,a)}mt(e,t,n);break;case 21:mt(e,t,n);break;case 22:n.mode&1?(he=(l=he)||n.memoizedState!==null,mt(e,t,n),he=l):mt(e,t,n);break;default:mt(e,t,n)}}function pa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wm),t.forEach(function(l){var r=Lm.bind(null,e,l);n.has(l)||(n.add(l),l.then(r,r))})}}function Fe(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var r=n[l];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:ue=a.stateNode,Be=!1;break e;case 3:ue=a.stateNode.containerInfo,Be=!0;break e;case 4:ue=a.stateNode.containerInfo,Be=!0;break e}a=a.return}if(ue===null)throw Error(C(160));Fc(s,o,r),ue=null,Be=!1;var u=r.alternate;u!==null&&(u.return=null),r.return=null}catch(m){te(r,t,m)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Uc(t,e),t=t.sibling}function Uc(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Fe(t,e),qe(e),l&4){try{Zn(3,e,e.return),Ir(3,e)}catch(p){te(e,e.return,p)}try{Zn(5,e,e.return)}catch(p){te(e,e.return,p)}}break;case 1:Fe(t,e),qe(e),l&512&&n!==null&&cn(n,n.return);break;case 5:if(Fe(t,e),qe(e),l&512&&n!==null&&cn(n,n.return),e.flags&32){var r=e.stateNode;try{nl(r,"")}catch(p){te(e,e.return,p)}}if(l&4&&(r=e.stateNode,r!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&uu(r,s),Ms(a,o);var m=Ms(a,s);for(o=0;o<u.length;o+=2){var c=u[o],h=u[o+1];c==="style"?pu(r,h):c==="dangerouslySetInnerHTML"?fu(r,h):c==="children"?nl(r,h):Ni(r,c,h,m)}switch(a){case"input":Ts(r,s);break;case"textarea":cu(r,s);break;case"select":var v=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!s.multiple;var x=s.value;x!=null?mn(r,!!s.multiple,x,!1):v!==!!s.multiple&&(s.defaultValue!=null?mn(r,!!s.multiple,s.defaultValue,!0):mn(r,!!s.multiple,s.multiple?[]:"",!1))}r[dl]=s}catch(p){te(e,e.return,p)}}break;case 6:if(Fe(t,e),qe(e),l&4){if(e.stateNode===null)throw Error(C(162));r=e.stateNode,s=e.memoizedProps;try{r.nodeValue=s}catch(p){te(e,e.return,p)}}break;case 3:if(Fe(t,e),qe(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{il(t.containerInfo)}catch(p){te(e,e.return,p)}break;case 4:Fe(t,e),qe(e);break;case 13:Fe(t,e),qe(e),r=e.child,r.flags&8192&&(s=r.memoizedState!==null,r.stateNode.isHidden=s,!s||r.alternate!==null&&r.alternate.memoizedState!==null||(lo=le())),l&4&&pa(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(he=(m=he)||c,Fe(t,e),he=m):Fe(t,e),qe(e),l&8192){if(m=e.memoizedState!==null,(e.stateNode.isHidden=m)&&!c&&e.mode&1)for(M=e,c=e.child;c!==null;){for(h=M=c;M!==null;){switch(v=M,x=v.child,v.tag){case 0:case 11:case 14:case 15:Zn(4,v,v.return);break;case 1:cn(v,v.return);var y=v.stateNode;if(typeof y.componentWillUnmount=="function"){l=v,n=v.return;try{t=l,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(p){te(l,n,p)}}break;case 5:cn(v,v.return);break;case 22:if(v.memoizedState!==null){va(h);continue}}x!==null?(x.return=v,M=x):va(h)}c=c.sibling}e:for(c=null,h=e;;){if(h.tag===5){if(c===null){c=h;try{r=h.stateNode,m?(s=r.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=h.stateNode,u=h.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=mu("display",o))}catch(p){te(e,e.return,p)}}}else if(h.tag===6){if(c===null)try{h.stateNode.nodeValue=m?"":h.memoizedProps}catch(p){te(e,e.return,p)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;c===h&&(c=null),h=h.return}c===h&&(c=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Fe(t,e),qe(e),l&4&&pa(e);break;case 21:break;default:Fe(t,e),qe(e)}}function qe(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Oc(n)){var l=n;break e}n=n.return}throw Error(C(160))}switch(l.tag){case 5:var r=l.stateNode;l.flags&32&&(nl(r,""),l.flags&=-33);var s=ma(e);ui(e,s,r);break;case 3:case 4:var o=l.stateNode.containerInfo,a=ma(e);ai(e,a,o);break;default:throw Error(C(161))}}catch(u){te(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sm(e,t,n){M=e,Bc(e)}function Bc(e,t,n){for(var l=(e.mode&1)!==0;M!==null;){var r=M,s=r.child;if(r.tag===22&&l){var o=r.memoizedState!==null||$l;if(!o){var a=r.alternate,u=a!==null&&a.memoizedState!==null||he;a=$l;var m=he;if($l=o,(he=u)&&!m)for(M=r;M!==null;)o=M,u=o.child,o.tag===22&&o.memoizedState!==null?ya(r):u!==null?(u.return=o,M=u):ya(r);for(;s!==null;)M=s,Bc(s),s=s.sibling;M=r,$l=a,he=m}ha(e)}else r.subtreeFlags&8772&&s!==null?(s.return=r,M=s):ha(e)}}function ha(e){for(;M!==null;){var t=M;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:he||Ir(5,t);break;case 1:var l=t.stateNode;if(t.flags&4&&!he)if(n===null)l.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:Ue(t.type,n.memoizedProps);l.componentDidUpdate(r,n.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Jo(t,s,l);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Jo(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var m=t.alternate;if(m!==null){var c=m.memoizedState;if(c!==null){var h=c.dehydrated;h!==null&&il(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(C(163))}he||t.flags&512&&oi(t)}catch(v){te(t,t.return,v)}}if(t===e){M=null;break}if(n=t.sibling,n!==null){n.return=t.return,M=n;break}M=t.return}}function va(e){for(;M!==null;){var t=M;if(t===e){M=null;break}var n=t.sibling;if(n!==null){n.return=t.return,M=n;break}M=t.return}}function ya(e){for(;M!==null;){var t=M;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ir(4,t)}catch(u){te(t,n,u)}break;case 1:var l=t.stateNode;if(typeof l.componentDidMount=="function"){var r=t.return;try{l.componentDidMount()}catch(u){te(t,r,u)}}var s=t.return;try{oi(t)}catch(u){te(t,s,u)}break;case 5:var o=t.return;try{oi(t)}catch(u){te(t,o,u)}}}catch(u){te(t,t.return,u)}if(t===e){M=null;break}var a=t.sibling;if(a!==null){a.return=t.return,M=a;break}M=t.return}}var Nm=Math.ceil,kr=dt.ReactCurrentDispatcher,to=dt.ReactCurrentOwner,Ae=dt.ReactCurrentBatchConfig,U=0,ae=null,re=null,ce=0,Te=0,dn=Lt(0),ie=0,yl=null,Kt=0,Ar=0,no=0,Jn=null,Se=null,lo=0,bn=1/0,tt=null,wr=!1,ci=null,Ct=null,Ol=!1,xt=null,jr=0,el=0,di=null,Gl=-1,Zl=0;function ge(){return U&6?le():Gl!==-1?Gl:Gl=le()}function bt(e){return e.mode&1?U&2&&ce!==0?ce&-ce:om.transition!==null?(Zl===0&&(Zl=bu()),Zl):(e=W,e!==0||(e=window.event,e=e===void 0?16:Mu(e.type)),e):1}function We(e,t,n,l){if(50<el)throw el=0,di=null,Error(C(185));kl(e,n,l),(!(U&2)||e!==ae)&&(e===ae&&(!(U&2)&&(Ar|=n),ie===4&&yt(e,ce)),Ee(e,l),n===1&&U===0&&!(t.mode&1)&&(bn=le()+500,Mr&&Pt()))}function Ee(e,t){var n=e.callbackNode;of(e,t);var l=sr(e,e===ae?ce:0);if(l===0)n!==null&&bo(n),e.callbackNode=null,e.callbackPriority=0;else if(t=l&-l,e.callbackPriority!==t){if(n!=null&&bo(n),t===1)e.tag===0?im(ga.bind(null,e)):Zu(ga.bind(null,e)),nm(function(){!(U&6)&&Pt()}),n=null;else{switch(Eu(l)){case 1:n=zi;break;case 4:n=Nu;break;case 16:n=rr;break;case 536870912:n=Cu;break;default:n=rr}n=Xc(n,Vc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Vc(e,t){if(Gl=-1,Zl=0,U&6)throw Error(C(327));var n=e.callbackNode;if(gn()&&e.callbackNode!==n)return null;var l=sr(e,e===ae?ce:0);if(l===0)return null;if(l&30||l&e.expiredLanes||t)t=Sr(e,l);else{t=l;var r=U;U|=2;var s=Wc();(ae!==e||ce!==t)&&(tt=null,bn=le()+500,Bt(e,t));do try{Em();break}catch(a){Hc(e,a)}while(!0);Bi(),kr.current=s,U=r,re!==null?t=0:(ae=null,ce=0,t=ie)}if(t!==0){if(t===2&&(r=$s(e),r!==0&&(l=r,t=fi(e,r))),t===1)throw n=yl,Bt(e,0),yt(e,l),Ee(e,le()),n;if(t===6)yt(e,l);else{if(r=e.current.alternate,!(l&30)&&!Cm(r)&&(t=Sr(e,l),t===2&&(s=$s(e),s!==0&&(l=s,t=fi(e,s))),t===1))throw n=yl,Bt(e,0),yt(e,l),Ee(e,le()),n;switch(e.finishedWork=r,e.finishedLanes=l,t){case 0:case 1:throw Error(C(345));case 2:$t(e,Se,tt);break;case 3:if(yt(e,l),(l&130023424)===l&&(t=lo+500-le(),10<t)){if(sr(e,0)!==0)break;if(r=e.suspendedLanes,(r&l)!==l){ge(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=Qs($t.bind(null,e,Se,tt),t);break}$t(e,Se,tt);break;case 4:if(yt(e,l),(l&4194240)===l)break;for(t=e.eventTimes,r=-1;0<l;){var o=31-He(l);s=1<<o,o=t[o],o>r&&(r=o),l&=~s}if(l=r,l=le()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*Nm(l/1960))-l,10<l){e.timeoutHandle=Qs($t.bind(null,e,Se,tt),l);break}$t(e,Se,tt);break;case 5:$t(e,Se,tt);break;default:throw Error(C(329))}}}return Ee(e,le()),e.callbackNode===n?Vc.bind(null,e):null}function fi(e,t){var n=Jn;return e.current.memoizedState.isDehydrated&&(Bt(e,t).flags|=256),e=Sr(e,t),e!==2&&(t=Se,Se=n,t!==null&&mi(t)),e}function mi(e){Se===null?Se=e:Se.push.apply(Se,e)}function Cm(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var l=0;l<n.length;l++){var r=n[l],s=r.getSnapshot;r=r.value;try{if(!Qe(s(),r))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 yt(e,t){for(t&=~no,t&=~Ar,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-He(t),l=1<<n;e[n]=-1,t&=~l}}function ga(e){if(U&6)throw Error(C(327));gn();var t=sr(e,0);if(!(t&1))return Ee(e,le()),null;var n=Sr(e,t);if(e.tag!==0&&n===2){var l=$s(e);l!==0&&(t=l,n=fi(e,l))}if(n===1)throw n=yl,Bt(e,0),yt(e,t),Ee(e,le()),n;if(n===6)throw Error(C(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,$t(e,Se,tt),Ee(e,le()),null}function ro(e,t){var n=U;U|=1;try{return e(t)}finally{U=n,U===0&&(bn=le()+500,Mr&&Pt())}}function Yt(e){xt!==null&&xt.tag===0&&!(U&6)&&gn();var t=U;U|=1;var n=Ae.transition,l=W;try{if(Ae.transition=null,W=1,e)return e()}finally{W=l,Ae.transition=n,U=t,!(U&6)&&Pt()}}function so(){Te=dn.current,Y(dn)}function Bt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,tm(n)),re!==null)for(n=re.return;n!==null;){var l=n;switch(Oi(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&cr();break;case 3:Nn(),Y(Ce),Y(ve),Yi();break;case 5:Ki(l);break;case 4:Nn();break;case 13:Y(G);break;case 19:Y(G);break;case 10:Vi(l.type._context);break;case 22:case 23:so()}n=n.return}if(ae=e,re=e=Et(e.current,null),ce=Te=t,ie=0,yl=null,no=Ar=Kt=0,Se=Jn=null,Ft!==null){for(t=0;t<Ft.length;t++)if(n=Ft[t],l=n.interleaved,l!==null){n.interleaved=null;var r=l.next,s=n.pending;if(s!==null){var o=s.next;s.next=r,l.next=o}n.pending=l}Ft=null}return e}function Hc(e,t){do{var n=re;try{if(Bi(),Yl.current=xr,gr){for(var l=Z.memoizedState;l!==null;){var r=l.queue;r!==null&&(r.pending=null),l=l.next}gr=!1}if(Qt=0,oe=se=Z=null,Gn=!1,pl=0,to.current=null,n===null||n.return===null){ie=1,yl=t,re=null;break}e:{var s=e,o=n.return,a=n,u=t;if(t=ce,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var m=u,c=a,h=c.tag;if(!(c.mode&1)&&(h===0||h===11||h===15)){var v=c.alternate;v?(c.updateQueue=v.updateQueue,c.memoizedState=v.memoizedState,c.lanes=v.lanes):(c.updateQueue=null,c.memoizedState=null)}var x=sa(o);if(x!==null){x.flags&=-257,ia(x,o,a,s,t),x.mode&1&&ra(s,m,t),t=x,u=m;var y=t.updateQueue;if(y===null){var p=new Set;p.add(u),t.updateQueue=p}else y.add(u);break e}else{if(!(t&1)){ra(s,m,t),io();break e}u=Error(C(426))}}else if(X&&a.mode&1){var N=sa(o);if(N!==null){!(N.flags&65536)&&(N.flags|=256),ia(N,o,a,s,t),Fi(Cn(u,a));break e}}s=u=Cn(u,a),ie!==4&&(ie=2),Jn===null?Jn=[s]:Jn.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var f=Ec(s,u,t);Zo(s,f);break e;case 1:a=u;var d=s.type,g=s.stateNode;if(!(s.flags&128)&&(typeof d.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Ct===null||!Ct.has(g)))){s.flags|=65536,t&=-t,s.lanes|=t;var w=Tc(s,a,t);Zo(s,w);break e}}s=s.return}while(s!==null)}Kc(n)}catch(b){t=b,re===n&&n!==null&&(re=n=n.return);continue}break}while(!0)}function Wc(){var e=kr.current;return kr.current=xr,e===null?xr:e}function io(){(ie===0||ie===3||ie===2)&&(ie=4),ae===null||!(Kt&268435455)&&!(Ar&268435455)||yt(ae,ce)}function Sr(e,t){var n=U;U|=2;var l=Wc();(ae!==e||ce!==t)&&(tt=null,Bt(e,t));do try{bm();break}catch(r){Hc(e,r)}while(!0);if(Bi(),U=n,kr.current=l,re!==null)throw Error(C(261));return ae=null,ce=0,ie}function bm(){for(;re!==null;)Qc(re)}function Em(){for(;re!==null&&!Gd();)Qc(re)}function Qc(e){var t=qc(e.alternate,e,Te);e.memoizedProps=e.pendingProps,t===null?Kc(e):re=t,to.current=null}function Kc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=km(n,t),n!==null){n.flags&=32767,re=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ie=6,re=null;return}}else if(n=xm(n,t,Te),n!==null){re=n;return}if(t=t.sibling,t!==null){re=t;return}re=t=e}while(t!==null);ie===0&&(ie=5)}function $t(e,t,n){var l=W,r=Ae.transition;try{Ae.transition=null,W=1,Tm(e,t,n,l)}finally{Ae.transition=r,W=l}return null}function Tm(e,t,n,l){do gn();while(xt!==null);if(U&6)throw Error(C(327));n=e.finishedWork;var r=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(C(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(af(e,s),e===ae&&(re=ae=null,ce=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ol||(Ol=!0,Xc(rr,function(){return gn(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Ae.transition,Ae.transition=null;var o=W;W=1;var a=U;U|=4,to.current=null,jm(e,n),Uc(n,e),Yf(Hs),ir=!!Vs,Hs=Vs=null,e.current=n,Sm(n),Zd(),U=a,W=o,Ae.transition=s}else e.current=n;if(Ol&&(Ol=!1,xt=e,jr=r),s=e.pendingLanes,s===0&&(Ct=null),tf(n.stateNode),Ee(e,le()),t!==null)for(l=e.onRecoverableError,n=0;n<t.length;n++)r=t[n],l(r.value,{componentStack:r.stack,digest:r.digest});if(wr)throw wr=!1,e=ci,ci=null,e;return jr&1&&e.tag!==0&&gn(),s=e.pendingLanes,s&1?e===di?el++:(el=0,di=e):el=0,Pt(),null}function gn(){if(xt!==null){var e=Eu(jr),t=Ae.transition,n=W;try{if(Ae.transition=null,W=16>e?16:e,xt===null)var l=!1;else{if(e=xt,xt=null,jr=0,U&6)throw Error(C(331));var r=U;for(U|=4,M=e.current;M!==null;){var s=M,o=s.child;if(M.flags&16){var a=s.deletions;if(a!==null){for(var u=0;u<a.length;u++){var m=a[u];for(M=m;M!==null;){var c=M;switch(c.tag){case 0:case 11:case 15:Zn(8,c,s)}var h=c.child;if(h!==null)h.return=c,M=h;else for(;M!==null;){c=M;var v=c.sibling,x=c.return;if($c(c),c===m){M=null;break}if(v!==null){v.return=x,M=v;break}M=x}}}var y=s.alternate;if(y!==null){var p=y.child;if(p!==null){y.child=null;do{var N=p.sibling;p.sibling=null,p=N}while(p!==null)}}M=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,M=o;else e:for(;M!==null;){if(s=M,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Zn(9,s,s.return)}var f=s.sibling;if(f!==null){f.return=s.return,M=f;break e}M=s.return}}var d=e.current;for(M=d;M!==null;){o=M;var g=o.child;if(o.subtreeFlags&2064&&g!==null)g.return=o,M=g;else e:for(o=d;M!==null;){if(a=M,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Ir(9,a)}}catch(b){te(a,a.return,b)}if(a===o){M=null;break e}var w=a.sibling;if(w!==null){w.return=a.return,M=w;break e}M=a.return}}if(U=r,Pt(),Ze&&typeof Ze.onPostCommitFiberRoot=="function")try{Ze.onPostCommitFiberRoot(Tr,e)}catch{}l=!0}return l}finally{W=n,Ae.transition=t}}return!1}function xa(e,t,n){t=Cn(n,t),t=Ec(e,t,1),e=Nt(e,t,1),t=ge(),e!==null&&(kl(e,1,t),Ee(e,t))}function te(e,t,n){if(e.tag===3)xa(e,e,n);else for(;t!==null;){if(t.tag===3){xa(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ct===null||!Ct.has(l))){e=Cn(n,e),e=Tc(t,e,1),t=Nt(t,e,1),e=ge(),t!==null&&(kl(t,1,e),Ee(t,e));break}}t=t.return}}function zm(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),t=ge(),e.pingedLanes|=e.suspendedLanes&n,ae===e&&(ce&n)===n&&(ie===4||ie===3&&(ce&130023424)===ce&&500>le()-lo?Bt(e,0):no|=n),Ee(e,t)}function Yc(e,t){t===0&&(e.mode&1?(t=zl,zl<<=1,!(zl&130023424)&&(zl=4194304)):t=1);var n=ge();e=at(e,t),e!==null&&(kl(e,t,n),Ee(e,n))}function _m(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yc(e,n)}function Lm(e,t){var n=0;switch(e.tag){case 13:var l=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(C(314))}l!==null&&l.delete(t),Yc(e,n)}var qc;qc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ce.current)Ne=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ne=!1,gm(e,t,n);Ne=!!(e.flags&131072)}else Ne=!1,X&&t.flags&1048576&&Ju(t,mr,t.index);switch(t.lanes=0,t.tag){case 2:var l=t.type;Xl(e,t),e=t.pendingProps;var r=wn(t,ve.current);yn(t,n),r=Xi(null,t,l,e,r,n);var s=Gi();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,be(l)?(s=!0,dr(t)):s=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Wi(t),r.updater=Dr,t.stateNode=r,r._reactInternals=t,Js(t,l,e,n),t=ni(null,t,l,!0,s,n)):(t.tag=0,X&&s&&$i(t),ye(null,t,r,n),t=t.child),t;case 16:l=t.elementType;e:{switch(Xl(e,t),e=t.pendingProps,r=l._init,l=r(l._payload),t.type=l,r=t.tag=Mm(l),e=Ue(l,e),r){case 0:t=ti(null,t,l,e,n);break e;case 1:t=ua(null,t,l,e,n);break e;case 11:t=oa(null,t,l,e,n);break e;case 14:t=aa(null,t,l,Ue(l.type,e),n);break e}throw Error(C(306,l,""))}return t;case 0:return l=t.type,r=t.pendingProps,r=t.elementType===l?r:Ue(l,r),ti(e,t,l,r,n);case 1:return l=t.type,r=t.pendingProps,r=t.elementType===l?r:Ue(l,r),ua(e,t,l,r,n);case 3:e:{if(Pc(t),e===null)throw Error(C(387));l=t.pendingProps,s=t.memoizedState,r=s.element,sc(e,t),vr(t,l,null,n);var o=t.memoizedState;if(l=o.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){r=Cn(Error(C(423)),t),t=ca(e,t,l,n,r);break e}else if(l!==r){r=Cn(Error(C(424)),t),t=ca(e,t,l,n,r);break e}else for(ze=St(t.stateNode.containerInfo.firstChild),_e=t,X=!0,Ve=null,n=lc(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(jn(),l===r){t=ut(e,t,n);break e}ye(e,t,l,n)}t=t.child}return t;case 5:return ic(t),e===null&&Xs(t),l=t.type,r=t.pendingProps,s=e!==null?e.memoizedProps:null,o=r.children,Ws(l,r)?o=null:s!==null&&Ws(l,s)&&(t.flags|=32),Lc(e,t),ye(e,t,o,n),t.child;case 6:return e===null&&Xs(t),null;case 13:return Mc(e,t,n);case 4:return Qi(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Sn(t,null,l,n):ye(e,t,l,n),t.child;case 11:return l=t.type,r=t.pendingProps,r=t.elementType===l?r:Ue(l,r),oa(e,t,l,r,n);case 7:return ye(e,t,t.pendingProps,n),t.child;case 8:return ye(e,t,t.pendingProps.children,n),t.child;case 12:return ye(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(l=t.type._context,r=t.pendingProps,s=t.memoizedProps,o=r.value,Q(pr,l._currentValue),l._currentValue=o,s!==null)if(Qe(s.value,o)){if(s.children===r.children&&!Ce.current){t=ut(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var u=a.firstContext;u!==null;){if(u.context===l){if(s.tag===1){u=st(-1,n&-n),u.tag=2;var m=s.updateQueue;if(m!==null){m=m.shared;var c=m.pending;c===null?u.next=u:(u.next=c.next,c.next=u),m.pending=u}}s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),Gs(s.return,n,t),a.lanes|=n;break}u=u.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(C(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Gs(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ye(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,l=t.pendingProps.children,yn(t,n),r=$e(r),l=l(r),t.flags|=1,ye(e,t,l,n),t.child;case 14:return l=t.type,r=Ue(l,t.pendingProps),r=Ue(l.type,r),aa(e,t,l,r,n);case 15:return zc(e,t,t.type,t.pendingProps,n);case 17:return l=t.type,r=t.pendingProps,r=t.elementType===l?r:Ue(l,r),Xl(e,t),t.tag=1,be(l)?(e=!0,dr(t)):e=!1,yn(t,n),bc(t,l,r),Js(t,l,r,n),ni(null,t,l,!0,e,n);case 19:return Rc(e,t,n);case 22:return _c(e,t,n)}throw Error(C(156,t.tag))};function Xc(e,t){return Su(e,t)}function Pm(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ie(e,t,n,l){return new Pm(e,t,n,l)}function oo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mm(e){if(typeof e=="function")return oo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===bi)return 11;if(e===Ei)return 14}return 2}function Et(e,t){var n=e.alternate;return n===null?(n=Ie(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Jl(e,t,n,l,r,s){var o=2;if(l=e,typeof e=="function")oo(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case en:return Vt(n.children,r,s,t);case Ci:o=8,r|=8;break;case Ss:return e=Ie(12,n,t,r|2),e.elementType=Ss,e.lanes=s,e;case Ns:return e=Ie(13,n,t,r),e.elementType=Ns,e.lanes=s,e;case Cs:return e=Ie(19,n,t,r),e.elementType=Cs,e.lanes=s,e;case iu:return $r(n,r,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ru:o=10;break e;case su:o=9;break e;case bi:o=11;break e;case Ei:o=14;break e;case pt:o=16,l=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=Ie(o,n,t,r),t.elementType=e,t.type=l,t.lanes=s,t}function Vt(e,t,n,l){return e=Ie(7,e,l,t),e.lanes=n,e}function $r(e,t,n,l){return e=Ie(22,e,l,t),e.elementType=iu,e.lanes=n,e.stateNode={isHidden:!1},e}function ys(e,t,n){return e=Ie(6,e,null,t),e.lanes=n,e}function gs(e,t,n){return t=Ie(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rm(e,t,n,l,r){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=Zr(0),this.expirationTimes=Zr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zr(0),this.identifierPrefix=l,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function ao(e,t,n,l,r,s,o,a,u){return e=new Rm(e,t,n,a,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ie(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:l,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wi(s),e}function Dm(e,t,n){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Jt,key:l==null?null:""+l,children:e,containerInfo:t,implementation:n}}function Gc(e){if(!e)return zt;e=e._reactInternals;e:{if(Gt(e)!==e||e.tag!==1)throw Error(C(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(be(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(C(171))}if(e.tag===1){var n=e.type;if(be(n))return Gu(e,n,t)}return t}function Zc(e,t,n,l,r,s,o,a,u){return e=ao(n,l,!0,e,r,s,o,a,u),e.context=Gc(null),n=e.current,l=ge(),r=bt(n),s=st(l,r),s.callback=t??null,Nt(n,s,r),e.current.lanes=r,kl(e,r,l),Ee(e,l),e}function Or(e,t,n,l){var r=t.current,s=ge(),o=bt(r);return n=Gc(n),t.context===null?t.context=n:t.pendingContext=n,t=st(s,o),t.payload={element:e},l=l===void 0?null:l,l!==null&&(t.callback=l),e=Nt(r,t,o),e!==null&&(We(e,r,o,s),Kl(e,r,o)),o}function Nr(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 ka(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function uo(e,t){ka(e,t),(e=e.alternate)&&ka(e,t)}function Im(){return null}var Jc=typeof reportError=="function"?reportError:function(e){console.error(e)};function co(e){this._internalRoot=e}Fr.prototype.render=co.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(C(409));Or(e,t,null,null)};Fr.prototype.unmount=co.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Yt(function(){Or(null,e,null,null)}),t[ot]=null}};function Fr(e){this._internalRoot=e}Fr.prototype.unstable_scheduleHydration=function(e){if(e){var t=_u();e={blockedOn:null,target:e,priority:t};for(var n=0;n<vt.length&&t!==0&&t<vt[n].priority;n++);vt.splice(n,0,e),n===0&&Pu(e)}};function fo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ur(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function wa(){}function Am(e,t,n,l,r){if(r){if(typeof l=="function"){var s=l;l=function(){var m=Nr(o);s.call(m)}}var o=Zc(t,l,e,0,null,!1,!1,"",wa);return e._reactRootContainer=o,e[ot]=o.current,ul(e.nodeType===8?e.parentNode:e),Yt(),o}for(;r=e.lastChild;)e.removeChild(r);if(typeof l=="function"){var a=l;l=function(){var m=Nr(u);a.call(m)}}var u=ao(e,0,!1,null,null,!1,!1,"",wa);return e._reactRootContainer=u,e[ot]=u.current,ul(e.nodeType===8?e.parentNode:e),Yt(function(){Or(t,u,n,l)}),u}function Br(e,t,n,l,r){var s=n._reactRootContainer;if(s){var o=s;if(typeof r=="function"){var a=r;r=function(){var u=Nr(o);a.call(u)}}Or(t,o,e,r)}else o=Am(n,t,e,r,l);return Nr(o)}Tu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Hn(t.pendingLanes);n!==0&&(_i(t,n|1),Ee(t,le()),!(U&6)&&(bn=le()+500,Pt()))}break;case 13:Yt(function(){var l=at(e,1);if(l!==null){var r=ge();We(l,e,1,r)}}),uo(e,1)}};Li=function(e){if(e.tag===13){var t=at(e,134217728);if(t!==null){var n=ge();We(t,e,134217728,n)}uo(e,134217728)}};zu=function(e){if(e.tag===13){var t=bt(e),n=at(e,t);if(n!==null){var l=ge();We(n,e,t,l)}uo(e,t)}};_u=function(){return W};Lu=function(e,t){var n=W;try{return W=e,t()}finally{W=n}};Ds=function(e,t,n){switch(t){case"input":if(Ts(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var r=Pr(l);if(!r)throw Error(C(90));au(l),Ts(l,r)}}}break;case"textarea":cu(e,n);break;case"select":t=n.value,t!=null&&mn(e,!!n.multiple,t,!1)}};yu=ro;gu=Yt;var $m={usingClientEntryPoint:!1,Events:[jl,rn,Pr,hu,vu,ro]},Fn={findFiberByHostInstance:Ot,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Om={bundleType:Fn.bundleType,version:Fn.version,rendererPackageName:Fn.rendererPackageName,rendererConfig:Fn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:dt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=wu(e),e===null?null:e.stateNode},findFiberByHostInstance:Fn.findFiberByHostInstance||Im,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 Fl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fl.isDisabled&&Fl.supportsFiber)try{Tr=Fl.inject(Om),Ze=Fl}catch{}}Pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$m;Pe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!fo(t))throw Error(C(200));return Dm(e,t,null,n)};Pe.createRoot=function(e,t){if(!fo(e))throw Error(C(299));var n=!1,l="",r=Jc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=ao(e,1,!1,null,null,n,!1,l,r),e[ot]=t.current,ul(e.nodeType===8?e.parentNode:e),new co(t)};Pe.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(C(188)):(e=Object.keys(e).join(","),Error(C(268,e)));return e=wu(t),e=e===null?null:e.stateNode,e};Pe.flushSync=function(e){return Yt(e)};Pe.hydrate=function(e,t,n){if(!Ur(t))throw Error(C(200));return Br(null,e,t,!0,n)};Pe.hydrateRoot=function(e,t,n){if(!fo(e))throw Error(C(405));var l=n!=null&&n.hydratedSources||null,r=!1,s="",o=Jc;if(n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Zc(t,null,e,1,n??null,r,!1,s,o),e[ot]=t.current,ul(e),l)for(e=0;e<l.length;e++)n=l[e],r=n._getVersion,r=r(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new Fr(t)};Pe.render=function(e,t,n){if(!Ur(t))throw Error(C(200));return Br(null,e,t,!1,n)};Pe.unmountComponentAtNode=function(e){if(!Ur(e))throw Error(C(40));return e._reactRootContainer?(Yt(function(){Br(null,null,e,!1,function(){e._reactRootContainer=null,e[ot]=null})}),!0):!1};Pe.unstable_batchedUpdates=ro;Pe.unstable_renderSubtreeIntoContainer=function(e,t,n,l){if(!Ur(n))throw Error(C(200));if(e==null||e._reactInternals===void 0)throw Error(C(38));return Br(e,t,n,!1,l)};Pe.version="18.3.1-next-f1338f8080-20240426";function ed(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ed)}catch(e){console.error(e)}}ed(),eu.exports=Pe;var Fm=eu.exports,Um,ja=Fm;Um=ja.createRoot,ja.hydrateRoot;/**
|
|
42
|
+
* @license lucide-react v0.460.0 - ISC
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the ISC license.
|
|
45
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/const Bm=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),td=(...e)=>e.filter((t,n,l)=>!!t&&t.trim()!==""&&l.indexOf(t)===n).join(" ").trim();/**
|
|
47
|
+
* @license lucide-react v0.460.0 - ISC
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the ISC license.
|
|
50
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/var Vm={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"};/**
|
|
52
|
+
* @license lucide-react v0.460.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/const Hm=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:l,className:r="",children:s,iconNode:o,...a},u)=>k.createElement("svg",{ref:u,...Vm,width:t,height:t,stroke:e,strokeWidth:l?Number(n)*24/Number(t):n,className:td("lucide",r),...a},[...o.map(([m,c])=>k.createElement(m,c)),...Array.isArray(s)?s:[s]]));/**
|
|
57
|
+
* @license lucide-react v0.460.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/const V=(e,t)=>{const n=k.forwardRef(({className:l,...r},s)=>k.createElement(Hm,{ref:s,iconNode:t,className:td(`lucide-${Bm(e)}`,l),...r}));return n.displayName=`${e}`,n};/**
|
|
62
|
+
* @license lucide-react v0.460.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const pi=V("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
67
|
+
* @license lucide-react v0.460.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const Wm=V("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
|
|
72
|
+
* @license lucide-react v0.460.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const Vr=V("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
|
77
|
+
* @license lucide-react v0.460.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const Sa=V("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
82
|
+
* @license lucide-react v0.460.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const Qm=V("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
87
|
+
* @license lucide-react v0.460.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const hi=V("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
92
|
+
* @license lucide-react v0.460.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const qt=V("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
97
|
+
* @license lucide-react v0.460.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const Km=V("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
|
102
|
+
* @license lucide-react v0.460.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const Ym=V("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
|
|
107
|
+
* @license lucide-react v0.460.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const vi=V("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
|
|
112
|
+
* @license lucide-react v0.460.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const qm=V("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
|
|
117
|
+
* @license lucide-react v0.460.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const fn=V("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
122
|
+
* @license lucide-react v0.460.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const Xm=V("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
|
|
127
|
+
* @license lucide-react v0.460.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const nd=V("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
|
|
132
|
+
* @license lucide-react v0.460.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const Cr=V("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
137
|
+
* @license lucide-react v0.460.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the ISC license.
|
|
140
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/const Ke=V("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
142
|
+
* @license lucide-react v0.460.0 - ISC
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the ISC license.
|
|
145
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/const ld=V("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
|
|
147
|
+
* @license lucide-react v0.460.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const ft=V("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
152
|
+
* @license lucide-react v0.460.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const Gm=V("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|
157
|
+
* @license lucide-react v0.460.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const Zm=V("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);/**
|
|
162
|
+
* @license lucide-react v0.460.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const Jm=V("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
|
|
167
|
+
* @license lucide-react v0.460.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const yi=V("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
172
|
+
* @license lucide-react v0.460.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const ep=V("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
|
177
|
+
* @license lucide-react v0.460.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const rd=V("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
182
|
+
* @license lucide-react v0.460.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const En=V("SlidersVertical",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]]);/**
|
|
187
|
+
* @license lucide-react v0.460.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/const Na=V("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
|
|
192
|
+
* @license lucide-react v0.460.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const br=V("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
197
|
+
* @license lucide-react v0.460.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const Ca=V("StickyNote",[["path",{d:"M16 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8Z",key:"qazsjp"}],["path",{d:"M15 3v4a2 2 0 0 0 2 2h4",key:"40519r"}]]);/**
|
|
202
|
+
* @license lucide-react v0.460.0 - ISC
|
|
203
|
+
*
|
|
204
|
+
* This source code is licensed under the ISC license.
|
|
205
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
+
*/const Hr=V("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
207
|
+
* @license lucide-react v0.460.0 - ISC
|
|
208
|
+
*
|
|
209
|
+
* This source code is licensed under the ISC license.
|
|
210
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
+
*/const Ln=V("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function gl(...e){return e.filter(Boolean).join(" ")}function xn(e){if(!e&&e!==0)return"";const t=typeof e=="number"?e:new Date(e).getTime();if(Number.isNaN(t))return"";const n=Date.now()-t;return n<0||n<6e4?"just now":n<36e5?`${Math.floor(n/6e4)}m ago`:n<864e5?`${Math.floor(n/36e5)}h ago`:n<7*864e5?`${Math.floor(n/864e5)}d ago`:new Date(t).toLocaleDateString()}function Yp(e){if(!e)return"";const t=typeof e=="number"?new Date(e):new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleString()}function qp(e,t=160){return e?e.length>t?e.slice(0,t)+"…":e:""}const tp={low:"var(--text-dim)",normal:"var(--info)",high:"var(--error)"},er="bizar-auth-token",ba="bizar-loopback-trusted";class Ea extends Error{constructor(n,l,r){super(n);je(this,"status");je(this,"data");this.name="ApiError",this.status=l,this.data=r}}class np{constructor(){je(this,"base","/api")}getToken(){try{return localStorage.getItem(er)||""}catch{return""}}setToken(t){try{t?localStorage.setItem(er,t):localStorage.removeItem(er)}catch{}}pickupTokenFromUrl(){try{const t=new URLSearchParams(window.location.search),n=t.get("token");if(!n)return!1;this.setToken(n),t.delete("token");const l=t.toString(),r=l?`${window.location.pathname}?${l}`:window.location.pathname;return history.replaceState(null,"",r),!0}catch{return!1}}urlWithToken(t){const n=this.base+t,l=this.getToken();if(!l)return n;const r=n.includes("?")?"&":"?";return`${n}${r}token=${encodeURIComponent(l)}`}async probeAuthStatus(){try{const t=await this.get("/auth/status");try{localStorage.setItem(ba,t.loopback?"1":"0")}catch{}return t}catch{return{required:!1,loopback:!0,peer:""}}}isLoopbackTrusted(){try{return localStorage.getItem(ba)!=="0"}catch{return!0}}async get(t,n){return this.req("GET",t,void 0,n)}async post(t,n,l){return this.req("POST",t,n,l)}async put(t,n,l){return this.req("PUT",t,n,l)}async patch(t,n,l){return this.req("PATCH",t,n,l)}async del(t,n){return this.req("DELETE",t,void 0,n)}async req(t,n,l,r){const s={"Content-Type":"application/json"},o=this.getToken();o&&(s.Authorization=`Bearer ${o}`);const a={method:t,headers:s};l!=null&&(a.body=typeof l=="string"?l:JSON.stringify(l)),r&&(a.signal=r);const u=await fetch(this.base+n,a);if((u.headers.get("content-type")||"").includes("application/json")){const h=await u.json();if(!u.ok){const v=(h&&typeof h=="object"&&"message"in h?h.message:void 0)||`${t} ${n}: ${u.status}`;throw new Ea(v,u.status,h)}return h}const c=await u.text();if(!u.ok)throw new Ea(`${t} ${n}: ${u.status} — ${c.slice(0,200)}`,u.status,c);try{return JSON.parse(c)}catch{return c}}}const A=new np;A.pickupTokenFromUrl();async function Xp(e){return e}const Ta=typeof window<"u"&&!window.location.hostname.includes("production"),Un={debug(...e){Ta&&console.debug("[bizar]",...e)},info(...e){Ta&&console.info("[bizar]",...e)},warn(...e){console.warn("[bizar]",...e)},error(...e){console.error("[bizar]",...e)}};function lp(){if(typeof location>"u")return"ws://localhost/ws";const e=`${location.protocol==="https:"?"wss":"ws"}://${location.host}/ws`;let t="";try{t=localStorage.getItem(er)||""}catch{}return t?`${e}?token=${encodeURIComponent(t)}`:e}class sd{constructor(t){je(this,"urlOverride");je(this,"handlers",new Set);je(this,"statusHandlers",new Set);je(this,"ws",null);je(this,"reconnectDelay",1e3);je(this,"maxReconnectDelay",15e3);je(this,"reconnectTimer",null);je(this,"_status","connecting");je(this,"pingTimer",null);je(this,"closed",!1);this.urlOverride=t,this.connect()}on(t){return this.handlers.add(t),()=>{this.handlers.delete(t)}}onStatus(t){return this.statusHandlers.add(t),t(this._status),()=>{this.statusHandlers.delete(t)}}get status(){return this._status}send(t){return this.ws&&this.ws.readyState===WebSocket.OPEN?(this.ws.send(JSON.stringify(t)),!0):!1}close(){var t;this.closed=!0,this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.reconnectTimer=null,this.pingTimer&&clearInterval(this.pingTimer),this.pingTimer=null;try{(t=this.ws)==null||t.close()}catch{}this.ws=null,this.setStatus("disconnected")}connect(){if(this.closed)return;this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.setStatus("connecting");const t=this.urlOverride??lp();let n;try{n=new WebSocket(t),this.ws=n}catch(l){Un.warn("[ws] construct failed:",l),this.scheduleReconnect();return}n.addEventListener("open",()=>{this.ws!==n||this.closed||(this.reconnectDelay=1e3,this.setStatus("connected"),this.pingTimer&&clearInterval(this.pingTimer),this.pingTimer=setInterval(()=>{this._status==="connected"&&this.send({type:"ping"})},3e4))}),n.addEventListener("close",()=>{this.ws===n&&(this.ws=null,this.setStatus("disconnected"),this.pingTimer&&(clearInterval(this.pingTimer),this.pingTimer=null),this.closed||this.scheduleReconnect())}),n.addEventListener("error",()=>{this.ws===n&&Un.warn("[ws] error")}),n.addEventListener("message",l=>{let r;try{r=JSON.parse(l.data)}catch{Un.warn("[ws] bad message");return}for(const s of this.handlers)try{s(r)}catch(o){Un.error("[ws] handler error:",o)}})}scheduleReconnect(){this.closed||this.reconnectTimer||(this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},this.reconnectDelay),this.reconnectDelay=Math.min(this.reconnectDelay*1.6,this.maxReconnectDelay))}setStatus(t){this._status=t;for(const n of this.statusHandlers)try{n(t)}catch(l){Un.error("[ws] status handler error:",l)}}}const Gp=Object.freeze(Object.defineProperty({__proto__:null,Ws:sd},Symbol.toStringTag,{value:"Module"}));function za(e){const t=typeof e=="string"?e:e.mode,n=t==="system"?typeof window<"u"&&window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark":t==="light"?"light":"dark";return typeof document<"u"&&(n==="light"?document.documentElement.setAttribute("data-theme","light"):document.documentElement.removeAttribute("data-theme")),n}function _a(e){if(typeof document>"u")return;const t=document.documentElement;t.style.setProperty("--accent",e.accent),t.style.setProperty("--success",e.success),t.style.setProperty("--warning",e.warning),t.style.setProperty("--error",e.error),t.style.setProperty("--info",e.info),t.style.setProperty("--accent-bg",La(e.accent,.12)),t.style.setProperty("--accent-border",La(e.accent,.4)),e.fontFamily&&t.style.setProperty("--font-sans",`'${e.fontFamily}', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif`),e.fontSize&&t.style.setProperty("--base-font-size",`${e.fontSize}px`),t.dataset.compactMode=e.compactMode?"true":"false",t.dataset.animations=e.animations?"true":"false"}function La(e,t){const n=/^#?([0-9a-f]{6})$/i.exec(e||"");if(!n)return`rgba(139, 92, 246, ${t})`;const l=parseInt(n[1],16),r=l>>16&255,s=l>>8&255,o=l&255;return`rgba(${r}, ${s}, ${o}, ${t})`}const rp="modulepreload",sp=function(e){return"/"+e},Pa={},id=function(t,n,l){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.allSettled(n.map(u=>{if(u=sp(u),u in Pa)return;Pa[u]=!0;const m=u.endsWith(".css"),c=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${c}`))return;const h=document.createElement("link");if(h.rel=m?"stylesheet":rp,m||(h.as="script"),h.crossOrigin="",h.href=u,a&&h.setAttribute("nonce",a),document.head.appendChild(h),m)return new Promise((v,x)=>{h.addEventListener("load",v),h.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${u}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return r.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})};function xs({size:e="md",className:t,label:n}){return i.jsx("span",{className:gl("spinner",`spinner-${e}`,t),role:"status","aria-label":n||"Loading"})}function ip({onMenuClick:e,scrolled:t,activeTab:n,onSettings:l,onSearch:r}){return i.jsxs("header",{className:gl("mobile-header",t&&"is-scrolled"),children:[i.jsx("button",{onClick:e,className:"mobile-menu-btn","aria-label":"Open menu",type:"button",children:i.jsx(qm,{size:20})}),i.jsx("h1",{className:"mobile-header-title",children:n==="settings"?"Settings":"Bizar"}),l?i.jsx("button",{onClick:l,className:"mobile-settings-exit","aria-label":"Exit settings",type:"button",children:i.jsx(Ln,{size:20})}):i.jsx("button",{onClick:r,className:"mobile-search-btn","aria-label":"Search",type:"button",children:i.jsx(yi,{size:20})})]})}function op({open:e,onClose:t,tabs:n,activeTab:l,onTabChange:r}){return i.jsxs(i.Fragment,{children:[e&&i.jsx("div",{className:"mobile-drawer-overlay",onClick:t,"aria-hidden":"true"}),i.jsxs("aside",{className:gl("mobile-drawer",e&&"is-open"),role:"dialog","aria-modal":"true","aria-label":"All views",children:[i.jsxs("div",{className:"mobile-drawer-head",children:[i.jsx("h2",{children:"All Views"}),i.jsx("button",{onClick:t,"aria-label":"Close menu",type:"button",className:"mobile-drawer-close",children:i.jsx(Ln,{size:20})})]}),i.jsx("div",{className:"mobile-drawer-grid",children:n.map(s=>{const o=s.icon;return i.jsxs("button",{role:"tab","aria-selected":l===s.id,className:gl("mobile-drawer-item",l===s.id&&"is-active"),onClick:()=>r(s.id),type:"button",children:[i.jsx(o,{size:22}),i.jsx("span",{children:s.label})]},s.id)})})]})]})}function ap({tabs:e,activeTab:t,onTabChange:n}){return i.jsx("nav",{className:"mobile-bottom-nav",role:"tablist","aria-label":"Primary navigation",children:e.map(l=>{const r=l.icon;return i.jsxs("button",{role:"tab","aria-selected":t===l.id,className:gl("mobile-nav-item",t===l.id&&"is-active"),onClick:()=>n(l.id),type:"button",children:[i.jsx(r,{size:20}),i.jsx("span",{className:"mobile-nav-label",children:l.label})]},l.id)})})}function up({children:e,activeTab:t,onTabChange:n,tabs:l,fullTabs:r,onExitSettings:s,onSearch:o}){const[a,u]=k.useState(!1),[m,c]=k.useState(!1);return i.jsxs("div",{className:"mobile-layout",children:[i.jsx(ip,{onMenuClick:()=>u(!0),scrolled:m,activeTab:t,onSettings:t==="settings"?s:null,onSearch:o}),i.jsx(op,{open:a,onClose:()=>u(!1),tabs:r,activeTab:t,onTabChange:h=>{n(h),u(!1)}}),i.jsx("main",{className:"mobile-content",onScroll:h=>c(h.currentTarget.scrollTop>10),children:e}),i.jsx(ap,{tabs:l,activeTab:t,onTabChange:n})]})}function ct({open:e,onClose:t,title:n,children:l,actions:r,maxHeight:s="85vh"}){const o=k.useRef(null),a=k.useRef(null),u=k.useId(),m=k.useRef(null),c=k.useRef(null),h=k.useRef(0),v=k.useRef(0),x=()=>{var f;return((f=o.current)==null?void 0:f.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'))??[]};if(k.useEffect(()=>{if(!e)return;m.current=document.activeElement instanceof HTMLElement?document.activeElement:null;const f=d=>{var E;if(d.key==="Escape"&&t(),d.key!=="Tab")return;const g=Array.from(x());if(g.length===0){d.preventDefault(),(E=o.current)==null||E.focus();return}const w=g[0],b=g[g.length-1],T=document.activeElement;if(d.shiftKey){(!T||T===w||T===o.current)&&(d.preventDefault(),b==null||b.focus());return}T===b&&(d.preventDefault(),w==null||w.focus())};return window.addEventListener("keydown",f),requestAnimationFrame(()=>{var d,g;((d=a.current)==null?void 0:d.focus())??((g=o.current)==null||g.focus())}),()=>{var d;window.removeEventListener("keydown",f),(d=m.current)==null||d.focus()}},[e,t]),k.useEffect(()=>(e?(v.current=window.scrollY,document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top=`-${v.current}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.width="100%"):(document.documentElement.style.overflow="",document.body.style.overflow="",document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.width=""),()=>{document.documentElement.style.overflow="",document.body.style.overflow="",document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.width="",window.scrollTo(0,v.current)}),[e]),!e)return null;const y=f=>{var d;f.isPrimary&&(c.current=f.clientY,h.current=0,(d=o.current)==null||d.setPointerCapture(f.pointerId))},p=f=>{if(c.current==null||!o.current)return;const d=Math.max(0,f.clientY-c.current);h.current=d,o.current.style.transform=`translateY(${d}px)`},N=f=>{if(!o.current)return;f&&o.current.hasPointerCapture(f.pointerId)&&o.current.releasePointerCapture(f.pointerId);const d=h.current;o.current.style.transform="",c.current=null,h.current=0,d>72&&t()};return i.jsx("div",{className:"mobile-sheet-overlay",onClick:t,children:i.jsxs("div",{ref:o,className:"mobile-sheet",style:{maxHeight:s},onClick:f=>f.stopPropagation(),role:"dialog","aria-modal":!0,"aria-label":n?void 0:"Sheet","aria-labelledby":n?u:void 0,tabIndex:-1,children:[i.jsx("div",{className:"mobile-sheet-handle",onPointerDown:y,onPointerMove:p,onPointerUp:N,onPointerCancel:N,"aria-hidden":"true"}),i.jsxs("div",{className:"mobile-sheet-header",children:[n?i.jsx("h3",{id:u,className:"mobile-sheet-title",children:n}):i.jsx("div",{}),i.jsx("button",{ref:a,type:"button",className:"mobile-icon-btn",onClick:t,"aria-label":"Close",children:i.jsx(Ln,{size:18})})]}),i.jsx("div",{className:"mobile-sheet-content",children:l}),r&&i.jsx("div",{className:"mobile-sheet-actions",children:r})]})})}const cp=["all","tasks","agents","bg","artifacts","mods"],ks={all:"All",tasks:"Tasks",agents:"Agents",bg:"Background",artifacts:"Plans",mods:"Mods"};function dp({snapshot:e,onRefresh:t}){var _;const[n,l]=k.useState(((_=e.overview)==null?void 0:_.recentActivity)||[]),[r,s]=k.useState(!0),[o,a]=k.useState("all"),[u,m]=k.useState(!1),[c,h]=k.useState(null),[v,x]=k.useState(""),[y,p]=k.useState(!1);k.useEffect(()=>{var j;(j=e.overview)!=null&&j.recentActivity?(l(e.overview.recentActivity),s(!1)):N()},[e.overview]);const N=async()=>{var j;try{const R=await A.get("/snapshot");l(((j=R.overview)==null?void 0:j.recentActivity)||[])}catch{}finally{s(!1)}},f=o==="all"?n:n.filter(j=>{var R,S,L,D,F,ee;return o==="tasks"?(R=j.kind)==null?void 0:R.startsWith("task"):o==="agents"?(S=j.kind)==null?void 0:S.startsWith("agent"):o==="bg"?((L=j.kind)==null?void 0:L.includes("bg"))||((D=j.kind)==null?void 0:D.includes("schedule")):o==="artifacts"?(F=j.kind)==null?void 0:F.includes("artifacts"):o==="mods"?(ee=j.kind)==null?void 0:ee.includes("mod"):!0}),d=e.agents||[],g=e.tasks||[],w=g.filter(j=>j.status==="doing"||j.status==="queued"),b=g.filter(j=>j.status==="done"),T=async()=>{if(!(!v.trim()||y)){p(!0);try{await A.post("/chat",{message:v.trim(),agent:"odin"}),x(""),await t().catch(()=>{}),await N()}catch{}finally{p(!1)}}},E=async()=>{await t().catch(()=>{}),await N()};return i.jsxs("div",{className:"mobile-view",children:[i.jsxs("div",{className:"mobile-submit-hero",children:[i.jsx("textarea",{className:"mobile-submit-input",placeholder:"What needs to be done? Describe a task, bug, or refactor for Odin to artifacts…",value:v,onChange:j=>x(j.target.value),rows:2}),i.jsxs("div",{className:"mobile-submit-actions",children:[i.jsx("div",{className:"mobile-submit-chips",children:["Implement feature","Fix bug","Refactor","Investigate","Write tests"].map(j=>i.jsx("button",{type:"button",className:"mobile-submit-chip",onClick:()=>x(R=>R?`${R} ${j}`:j),children:j},j))}),i.jsxs("button",{type:"button",className:"mobile-btn",disabled:!v.trim()||y,onClick:T,children:[i.jsx(ep,{size:14})," Submit to Odin"]})]})]}),i.jsxs("div",{className:"mobile-stats",children:[i.jsxs("div",{className:"mobile-stat",children:[i.jsx("div",{className:"mobile-stat-value",children:d.length}),i.jsx("div",{className:"mobile-stat-label",children:"Agents"})]}),i.jsxs("div",{className:"mobile-stat",children:[i.jsx("div",{className:"mobile-stat-value",children:w.length}),i.jsx("div",{className:"mobile-stat-label",children:"Active"})]}),i.jsxs("div",{className:"mobile-stat",children:[i.jsx("div",{className:"mobile-stat-value",children:b.length}),i.jsx("div",{className:"mobile-stat-label",children:"Done"})]}),i.jsxs("div",{className:"mobile-stat",children:[i.jsx("div",{className:"mobile-stat-value",children:e.artifacts.length||0}),i.jsx("div",{className:"mobile-stat-label",children:"Plans"})]})]}),r&&n.length===0&&i.jsx("div",{className:"mobile-loading mobile-loading-inline",children:i.jsx("p",{children:"Loading activity…"})}),i.jsxs("div",{className:"mobile-activity-header",children:[i.jsx("h3",{className:"mobile-section-title",style:{margin:0},children:"Recent Activity"}),i.jsxs("div",{style:{display:"flex",gap:4},children:[i.jsx("button",{type:"button",className:"mobile-icon-btn",onClick:()=>m(j=>!j),"aria-label":u?"Resume":"Pause",children:u?i.jsx(Cr,{size:14}):i.jsx(Xm,{size:14})}),i.jsx("button",{type:"button",className:"mobile-icon-btn",onClick:E,"aria-label":"Refresh",children:i.jsx(ft,{size:14})})]})]}),i.jsx("div",{className:"mobile-search-scopes",children:cp.map(j=>i.jsx("button",{type:"button",className:`mobile-scope-chip ${o===j?"active":""}`,onClick:()=>a(j),children:ks[j]},j))}),d.length>0&&i.jsxs("section",{className:"mobile-section",children:[i.jsxs("h3",{className:"mobile-section-title",children:[i.jsx(Vr,{size:14})," Agents"]}),i.jsx("div",{className:"mobile-card-list",children:d.slice(0,6).map(j=>i.jsxs("div",{className:"mobile-agent-card",children:[i.jsx("div",{className:"mobile-agent-dot","data-status":j.status||"idle"}),i.jsxs("div",{className:"mobile-agent-info",children:[i.jsx("span",{className:"mobile-agent-name",children:j.name}),i.jsx("span",{className:"mobile-agent-meta",children:j.status||"idle"})]})]},j.name))})]}),!u&&f.length>0&&i.jsx("section",{className:"mobile-section",children:i.jsx("div",{className:"mobile-card-list",children:f.slice(0,30).map((j,R)=>i.jsxs("button",{type:"button",className:"mobile-event-item",onClick:()=>h(j),children:[i.jsx("span",{className:"mobile-event-kind","data-kind":j.kind,children:ks[j.kind]||j.kind}),i.jsx("span",{className:"mobile-event-msg",children:fp(j)}),i.jsx("span",{className:"mobile-event-time",children:xn(j.ts)})]},`${j.ts}-${j.kind}-${R}`))})}),!u&&f.length===0&&n.length>0&&i.jsxs("div",{className:"mobile-empty",children:[i.jsx(pi,{size:40}),i.jsx("p",{children:"No matching activity."}),i.jsx("p",{className:"muted",children:"Try a different filter."})]}),c&&i.jsx(ct,{open:!0,onClose:()=>h(null),title:ks[c.kind]||c.kind,children:i.jsxs("div",{className:"mobile-agent-detail-meta",children:[i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Kind"}),i.jsx("span",{children:c.kind})]}),i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Time"}),i.jsx("span",{children:new Date(c.ts).toLocaleString()})]}),Object.entries(c).filter(([j])=>!["ts","kind"].includes(j)).map(([j,R])=>i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:j}),i.jsx("span",{style:{fontSize:12,maxWidth:200,wordBreak:"break-all"},children:typeof R=="object"?JSON.stringify(R):String(R)})]},j))]})}),d.length===0&&w.length===0&&i.jsxs("div",{className:"mobile-empty",children:[i.jsx(pi,{size:40}),i.jsx("p",{children:"No activity yet."}),i.jsx("p",{className:"muted",children:"Start a task or chat to see things here."})]})]})}function fp(e){const t=e.kind||"";return t.includes("task")?`Task: ${e.title||e.id||"updated"}`:t.includes("agent")?`Agent: ${e.name||"status changed"}`:t.includes("artifacts")?`Plan: ${e.slug||"changed"}`:t.includes("mod")?`Mod: ${e.name||"changed"}`:t.includes("schedule")?`Schedule: ${e.name||"triggered"}`:JSON.stringify(e).slice(0,80)}function Mt({open:e,onClose:t,title:n,children:l,actions:r}){const s=k.useRef(null),o=k.useRef(null),a=k.useRef(null),u=k.useId(),m=k.useRef(0);return k.useEffect(()=>{if(!e)return;a.current=document.activeElement instanceof HTMLElement?document.activeElement:null;const c='button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',h=v=>{var f,d;if(v.key==="Escape"&&t(),v.key!=="Tab")return;const x=Array.from(((f=s.current)==null?void 0:f.querySelectorAll(c))??[]);if(x.length===0){v.preventDefault(),(d=s.current)==null||d.focus();return}const y=x[0],p=x[x.length-1],N=document.activeElement;if(v.shiftKey){(!N||N===y||N===s.current)&&(v.preventDefault(),p==null||p.focus());return}N===p&&(v.preventDefault(),y==null||y.focus())};return window.addEventListener("keydown",h),m.current=window.scrollY,document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top=`-${m.current}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.width="100%",requestAnimationFrame(()=>{var v,x;((v=o.current)==null?void 0:v.focus())??((x=s.current)==null||x.focus())}),()=>{var v;window.removeEventListener("keydown",h),document.documentElement.style.overflow="",document.body.style.overflow="",document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.width="",window.scrollTo(0,m.current),(v=a.current)==null||v.focus()}},[e,t]),e?i.jsx("div",{className:"mobile-modal-overlay",onClick:c=>{c.target===c.currentTarget&&t()},children:i.jsxs("div",{ref:s,className:"mobile-modal",onClick:c=>c.stopPropagation(),role:"dialog","aria-modal":!0,"aria-label":n?void 0:"Modal","aria-labelledby":n?u:void 0,tabIndex:-1,children:[i.jsxs("div",{className:"mobile-modal-header",children:[n?i.jsx("h2",{id:u,className:"mobile-modal-title",children:n}):i.jsx("div",{}),i.jsx("button",{ref:o,type:"button",className:"mobile-icon-btn",onClick:t,"aria-label":"Close",children:i.jsx(Ln,{size:20})})]}),i.jsx("div",{className:"mobile-modal-content",children:l}),r&&i.jsx("div",{className:"mobile-modal-actions",children:r})]})}):null}const od=["reasoning","code","design","planning","gitops","analysis"],Ma={reasoning:"var(--accent)",code:"var(--info)",design:"var(--success)",planning:"var(--warning)",gitops:"var(--error)",analysis:"var(--text-dim)"};function Ra({snapshot:e,onBack:t,onOpenAgent:n,selectedAgent:l,onRefresh:r}){const[s,o]=k.useState(e.agents||[]),[a,u]=k.useState(!e.agents),[m,c]=k.useState(""),[h,v]=k.useState(""),[x,y]=k.useState(null),[p,N]=k.useState(!1),[f,d]=k.useState(""),[g,w]=k.useState(!1);k.useEffect(()=>{if(l){const S=s.find(L=>L.name===l);S&&y(S)}},[l,s]);const b=async()=>{try{const S=await A.get("/agents");o(S.agents||[])}catch{}finally{u(!1)}},T=s.filter(S=>{if(m&&S.category!==m)return!1;if(h){const L=h.toLowerCase();if(!S.name.toLowerCase().includes(L)&&!(S.description||"").toLowerCase().includes(L))return!1}return!0}),E=async(S,L)=>{try{await A.post(`/agents/${encodeURIComponent(S)}/invoke`,{prompt:L}),w(!1),d("")}catch{}},_=async S=>{try{await A.post(`/agents/${encodeURIComponent(S)}/restart`),await b()}catch{}},j=async S=>{if(confirm(`Delete agent "${S}"?`))try{await A.del(`/agents/${encodeURIComponent(S)}`),o(L=>L.filter(D=>D.name!==S)),y(null),r==null||r()}catch{}},R=async S=>{try{const L=await A.post("/agents",S);o(D=>[...D,L]),N(!1),r==null||r()}catch{}};return i.jsxs("div",{className:"mobile-view",children:[i.jsxs("div",{className:"mobile-tasks-toolbar",children:[i.jsx("input",{className:"mobile-search-input",type:"text",placeholder:"Search agents…",value:h,onChange:S=>v(S.target.value),style:{flex:1}}),i.jsx("button",{type:"button",className:"mobile-icon-btn",onClick:()=>b(),"aria-label":"Refresh",children:i.jsx(ft,{size:16})}),i.jsx("button",{type:"button",className:"mobile-icon-btn",onClick:()=>N(!0),"aria-label":"New agent",children:i.jsx(Ke,{size:16})})]}),i.jsxs("div",{className:"mobile-search-scopes",children:[i.jsx("button",{type:"button",className:`mobile-scope-chip ${m?"":"active"}`,onClick:()=>c(""),children:"All"}),od.map(S=>i.jsx("button",{type:"button",className:`mobile-scope-chip ${m===S?"active":""}`,onClick:()=>c(S),children:S},S))]}),a?i.jsx("div",{className:"mobile-loading",children:i.jsx("p",{children:"Loading…"})}):T.length===0?i.jsxs("div",{className:"mobile-empty",children:[i.jsx(Vr,{size:40}),i.jsx("p",{children:"No agents found."})]}):i.jsx("div",{className:"mobile-card-list",children:T.map(S=>i.jsxs("button",{type:"button",className:"mobile-list-item mobile-list-item-interactive",onClick:()=>{y(S),n(S.name)},children:[i.jsx("div",{className:"mobile-agent-dot","data-status":S.status||"idle"}),i.jsxs("div",{className:"mobile-list-content",children:[i.jsx("span",{className:"mobile-list-title",children:S.name}),i.jsx("span",{className:"mobile-list-meta",children:S.model||S.mode||"—"})]}),S.category&&i.jsx("span",{className:"mobile-list-badge",style:{color:Ma[S.category]||"var(--text-dim)"},children:S.category}),i.jsx("span",{className:"mobile-list-badge","data-status":S.status||"idle",children:S.status||"idle"})]},S.name))}),x&&i.jsx(ct,{open:!0,onClose:()=>y(null),title:x.name,actions:i.jsxs("div",{className:"mobile-task-detail-actions",children:[i.jsxs("button",{type:"button",className:"mobile-btn",onClick:()=>{d(""),w(!0)},children:[i.jsx(Cr,{size:14})," Invoke"]}),(x.isStuck||x.status==="error"||x.status==="working")&&i.jsxs("button",{type:"button",className:"mobile-btn mobile-btn-secondary",onClick:()=>_(x.name),children:[i.jsx(Zm,{size:14})," Restart"]}),i.jsx("button",{type:"button",className:"mobile-btn mobile-btn-danger",onClick:()=>j(x.name),children:i.jsx(Hr,{size:14})})]}),children:i.jsxs("div",{className:"mobile-agent-detail",children:[i.jsxs("div",{className:"mobile-agent-detail-status",children:[i.jsx("span",{className:"mobile-agent-dot","data-status":x.status||"idle"}),i.jsx("span",{className:"mobile-agent-detail-status-text",children:x.status||"idle"}),x.category&&i.jsx("span",{className:"mobile-list-badge",style:{color:Ma[x.category]},children:x.category})]}),i.jsx("p",{className:"mobile-agent-detail-desc",children:x.description||"No description."}),i.jsxs("div",{className:"mobile-agent-detail-meta",children:[i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Model"}),i.jsx("span",{className:"mono",children:x.model||"—"})]}),i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Mode"}),i.jsx("span",{children:x.mode||"subagent"})]}),i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Path"}),i.jsx("span",{className:"mono",style:{fontSize:11},children:x.path})]}),x.lastError&&i.jsxs("div",{className:"mobile-task-detail-row",style:{color:"var(--error)"},children:[i.jsx("span",{children:"Last error"}),i.jsx("span",{children:x.lastError.message})]}),x.tasksTotal!=null&&x.tasksTotal>0&&i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Success rate"}),i.jsxs("span",{children:[Math.round((x.successRate||0)*100),"%"]})]}),i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Last modified"}),i.jsx("span",{children:xn(x.mtime)})]})]})]})}),i.jsxs(Mt,{open:g,onClose:()=>w(!1),title:`Invoke ${x==null?void 0:x.name}`,actions:i.jsxs("button",{type:"button",className:"mobile-btn",style:{width:"100%"},disabled:!f.trim(),onClick:()=>{x&&E(x.name,f.trim())},children:[i.jsx(Cr,{size:14})," Invoke"]}),children:[i.jsxs("p",{className:"muted",style:{marginBottom:12},children:["Model: ",i.jsx("span",{className:"mono",children:(x==null?void 0:x.model)||"—"})]}),i.jsx("textarea",{className:"mobile-input",rows:5,placeholder:"What should this agent do?",value:f,onChange:S=>d(S.target.value),autoFocus:!0})]}),i.jsx(mp,{open:p,onClose:()=>N(!1),onCreate:R})]})}function mp({open:e,onClose:t,onCreate:n}){const[l,r]=k.useState(""),[s,o]=k.useState(""),[a,u]=k.useState(""),[m,c]=k.useState("subagent"),[h,v]=k.useState("#8b5cf6"),[x,y]=k.useState(""),[p,N]=k.useState(""),[f,d]=k.useState(""),g=w=>{w.preventDefault(),l.trim()&&(n({name:l.trim(),description:s.trim(),model:a,mode:m,color:h,tools:[],tags:p.split(",").map(b=>b.trim()).filter(Boolean),category:x,prompt:f}),r(""),o(""),u(""),c("subagent"),v("#8b5cf6"),y(""),N(""),d(""))};return i.jsx(Mt,{open:e,onClose:t,title:"New Agent",actions:i.jsxs("button",{type:"submit",form:"new-agent-form",className:"mobile-btn",style:{width:"100%"},children:[i.jsx(Ke,{size:14})," Create"]}),children:i.jsxs("form",{id:"new-agent-form",onSubmit:g,className:"mobile-task-form",children:[i.jsx("label",{className:"mobile-field-label",children:"Name *"}),i.jsx("input",{className:"mobile-input",type:"text",placeholder:"my-agent",pattern:"[a-z0-9][a-z0-9-]{0,63}",value:l,onChange:w=>r(w.target.value),autoFocus:!0,required:!0}),i.jsx("label",{className:"mobile-field-label",children:"Description"}),i.jsx("input",{className:"mobile-input",type:"text",placeholder:"What does this agent do?",value:s,onChange:w=>o(w.target.value)}),i.jsx("label",{className:"mobile-field-label",children:"Model"}),i.jsx("input",{className:"mobile-input",type:"text",placeholder:"(provider default)",value:a,onChange:w=>u(w.target.value)}),i.jsx("label",{className:"mobile-field-label",children:"Category"}),i.jsxs("select",{className:"mobile-input",value:x,onChange:w=>y(w.target.value),children:[i.jsx("option",{value:"",children:"None"}),od.map(w=>i.jsx("option",{value:w,children:w},w))]}),i.jsx("label",{className:"mobile-field-label",children:"Tags (comma-separated)"}),i.jsx("input",{className:"mobile-input",type:"text",placeholder:"tag1, tag2",value:p,onChange:w=>N(w.target.value)})]})})}function pp({onBack:e}){const[t,n]=k.useState([]),[l,r]=k.useState(!0),[s,o]=k.useState({}),[a,u]=k.useState(!1),m=async()=>{try{const p=await A.get("/config"),N=Object.entries(p).map(([f,d])=>({key:f,value:d,type:c(d)}));n(N),o(Object.fromEntries(Object.entries(p).map(([f,d])=>[f,d])))}catch{}finally{r(!1)}};k.useEffect(()=>{m()},[]);const c=p=>typeof p=="boolean"?"boolean":typeof p=="number"?"number":typeof p=="string"?"string":Array.isArray(p)?"array":p&&typeof p=="object"?"object":"unknown",h=(p,N)=>{o(f=>({...f,[p]:N}))},v=async()=>{u(!0);try{await A.patch("/config",s),await m()}catch{}finally{u(!1)}},x=(p,N)=>{o(f=>({...f,[p]:N}))},y=p=>{const N=s[p.key];switch(p.type){case"boolean":return i.jsxs("label",{className:"mobile-toggle",children:[i.jsx("input",{type:"checkbox",checked:!!N,onChange:f=>h(p.key,f.target.checked)}),i.jsx("span",{className:"mobile-toggle-slider"})]});case"number":return i.jsx("input",{className:"mobile-input mobile-input-sm",type:"number",inputMode:"numeric",value:String(N??""),onChange:f=>h(p.key,Number(f.target.value))});case"string":return i.jsx("input",{className:"mobile-input mobile-input-sm",type:"text",value:String(N??""),onChange:f=>h(p.key,f.target.value)});case"object":case"array":return i.jsx("textarea",{className:"mobile-input mobile-input-sm",rows:2,value:JSON.stringify(N??null,null,2),onChange:f=>{try{h(p.key,JSON.parse(f.target.value))}catch{}}});default:return i.jsx("span",{className:"mobile-setting-value mono",children:String(N??"null")})}};return i.jsxs("div",{className:"mobile-view",children:[i.jsxs("div",{className:"mobile-tasks-toolbar",children:[i.jsxs("span",{style:{fontSize:14,color:"var(--text-muted)",flex:1},children:[t.length," config entries"]}),i.jsx("button",{type:"button",className:"mobile-icon-btn",onClick:()=>m(),"aria-label":"Refresh",children:i.jsx(ft,{size:16})}),i.jsxs("button",{type:"button",className:"mobile-btn",disabled:a,onClick:()=>v(),children:[i.jsx(Jm,{size:14})," ",a?"Saving…":"Save all"]})]}),l?i.jsx("div",{className:"mobile-loading",children:i.jsx("p",{children:"Loading…"})}):t.length===0?i.jsxs("div",{className:"mobile-empty",children:[i.jsx(En,{size:40}),i.jsx("p",{children:"No config entries."})]}):i.jsx("div",{className:"mobile-config-list",children:t.map(p=>i.jsxs("div",{className:"mobile-config-row",children:[i.jsxs("div",{className:"mobile-config-key",children:[i.jsx("span",{className:"mono",children:p.key}),i.jsx("span",{className:"mobile-config-type",children:p.type})]}),i.jsx("div",{className:"mobile-config-value",children:y(p)}),i.jsx("button",{type:"button",className:"mobile-icon-btn",onClick:()=>x(p.key,p.defaultValue),"aria-label":"Reset to default",title:"Reset",children:i.jsx(Gm,{size:14})})]},p.key))})]})}function hp({onBack:e}){const[t,n]=k.useState([]),[l,r]=k.useState(!0),[s,o]=k.useState(null),[a,u]=k.useState(""),m=async()=>{try{const x=await A.get("/history");if(Array.isArray(x.history)){n(x.history);return}if(Array.isArray(x.projects)){const y=new Map;for(const p of x.events||[]){const N=p.projectId;if(!N)continue;const f=y.get(N);(!f||new Date(p.ts).getTime()>new Date(f.ts).getTime())&&y.set(N,p)}n(x.projects.map(p=>{const N=y.get(p.id);return{id:p.id,ts:p.lastAccessed||(N==null?void 0:N.ts)||new Date(0).toISOString(),agent:p.name,taskCount:p.tasks.total,summary:`${p.path} · ${p.tasks.done}/${p.tasks.total} done · ${p.plans} plan${p.plans===1?"":"s"}`,output:N?`${N.kind}${N.text?` — ${N.text}`:""}`:"No recent events."}}));return}n([])}catch{}finally{r(!1)}};k.useEffect(()=>{m()},[]);const c=x=>{if(!x)return"—";const y=Math.floor(x/1e3);if(y<60)return`${y}s`;const p=Math.floor(y/60),N=y%60;return`${p}m ${N}s`},h=x=>new Date(x).toLocaleString(),v=a.trim()?t.filter(x=>{const y=a.toLowerCase();return(x.agent||"session").toLowerCase().includes(y)||(x.summary||"").toLowerCase().includes(y)||(x.output||"").toLowerCase().includes(y)}):t;return i.jsxs("div",{className:"mobile-view",children:[i.jsxs("div",{className:"mobile-tasks-toolbar",children:[i.jsx("input",{className:"mobile-search-input",type:"text",placeholder:"Search history…",value:a,onChange:x=>u(x.target.value),style:{flex:1}}),i.jsx("button",{type:"button",className:"mobile-icon-btn",onClick:()=>m(),"aria-label":"Refresh",children:i.jsx(ft,{size:16})})]}),l?i.jsx("div",{className:"mobile-loading",children:i.jsx("p",{children:"Loading…"})}):v.length===0?i.jsxs("div",{className:"mobile-empty",children:[i.jsx(vi,{size:40}),i.jsx("p",{children:t.length===0?"No history yet.":"No matching sessions."})]}):i.jsx("div",{className:"mobile-card-list",children:v.map(x=>i.jsxs("button",{type:"button",className:"mobile-list-item mobile-list-item-interactive",onClick:()=>o(x),children:[i.jsx("div",{className:"mobile-list-icon",children:i.jsx(vi,{size:16})}),i.jsxs("div",{className:"mobile-list-content",children:[i.jsx("span",{className:"mobile-list-title",children:x.agent||"Session"}),i.jsxs("span",{className:"mobile-list-meta",children:[h(x.ts),x.duration?` · ${c(x.duration)}`:"",x.taskCount?` · ${x.taskCount} tasks`:""]})]})]},x.id))}),s&&i.jsxs(ct,{open:!0,onClose:()=>o(null),title:"Session Detail",children:[i.jsxs("div",{className:"mobile-agent-detail-meta",children:[i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Agent"}),i.jsx("span",{children:s.agent||"—"})]}),i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Started"}),i.jsx("span",{children:h(s.ts)})]}),i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Duration"}),i.jsx("span",{children:c(s.duration)})]}),i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Tasks"}),i.jsx("span",{children:s.taskCount||0})]})]}),s.summary&&i.jsxs("div",{style:{marginTop:12},children:[i.jsx("h4",{style:{fontSize:12,color:"var(--text-muted)",marginBottom:4},children:"Summary"}),i.jsx("p",{style:{fontSize:13},children:s.summary})]}),s.output&&i.jsxs("div",{style:{marginTop:12},children:[i.jsx("h4",{style:{fontSize:12,color:"var(--text-muted)",marginBottom:4},children:"Output"}),i.jsxs("pre",{className:"mono",style:{fontSize:11,whiteSpace:"pre-wrap",wordBreak:"break-all",background:"var(--bg-elev-2)",padding:8,borderRadius:6},children:[s.output.slice(0,1e3),s.output.length>1e3?"…":""]})]})]})]})}function vp({snapshot:e,onBack:t}){const[n,l]=k.useState(e.mods||[]),[r,s]=k.useState(!e.mods),[o,a]=k.useState(""),[u,m]=k.useState("all"),[c,h]=k.useState(null),v=async()=>{try{const p=await A.get("/mods");l(p.mods||[])}catch{}finally{s(!1)}};k.useEffect(()=>{e.mods?(l(e.mods),s(!1)):v()},[e.mods]);const x=async(p,N)=>{try{await A.patch(`/mods/${encodeURIComponent(p)}`,{enabled:N}),l(f=>f.map(d=>d.id===p?{...d,enabled:N}:d)),(c==null?void 0:c.id)===p&&h(f=>f&&{...f,enabled:N})}catch{}},y=n.filter(p=>{if(u==="enabled"&&!p.enabled||u==="disabled"&&p.enabled)return!1;if(o){const N=o.toLowerCase();return p.name.toLowerCase().includes(N)||p.description.toLowerCase().includes(N)}return!0});return i.jsxs("div",{className:"mobile-view",children:[i.jsxs("div",{className:"mobile-tasks-toolbar",children:[i.jsx("input",{className:"mobile-search-input",type:"text",placeholder:"Search mods…",value:o,onChange:p=>a(p.target.value),style:{flex:1}}),i.jsx("button",{type:"button",className:"mobile-icon-btn",onClick:()=>v(),"aria-label":"Refresh",children:i.jsx(ft,{size:16})})]}),i.jsx("div",{className:"mobile-search-scopes",children:["all","enabled","disabled"].map(p=>i.jsx("button",{type:"button",className:`mobile-scope-chip ${u===p?"active":""}`,onClick:()=>m(p),children:p.charAt(0).toUpperCase()+p.slice(1)},p))}),r?i.jsx("div",{className:"mobile-loading",children:i.jsx("p",{children:"Loading…"})}):y.length===0?i.jsxs("div",{className:"mobile-empty",children:[i.jsx(En,{size:40}),i.jsx("p",{children:"No mods found."})]}):i.jsx("div",{className:"mobile-card-list",children:y.map(p=>i.jsxs("button",{type:"button",className:"mobile-list-item mobile-list-item-interactive",onClick:()=>h(p),children:[i.jsx("div",{className:"mobile-list-icon",children:i.jsx(En,{size:16})}),i.jsxs("div",{className:"mobile-list-content",children:[i.jsx("span",{className:"mobile-list-title",children:p.name}),i.jsxs("span",{className:"mobile-list-meta",children:["v",p.version," · ",p.author]})]}),i.jsx("span",{className:`mobile-list-badge ${p.enabled?"badge-on":"badge-off"}`,children:p.enabled?"on":"off"})]},p.id))}),c&&i.jsx(ct,{open:!0,onClose:()=>h(null),title:c.name,actions:i.jsx("div",{className:"mobile-task-detail-actions",children:i.jsxs("button",{type:"button",className:"mobile-btn",style:{flex:1},onClick:()=>{c&&x(c.id,!c.enabled)},children:[i.jsx(ld,{size:14})," ",c.enabled?"Disable":"Enable"]})}),children:i.jsxs("div",{className:"mobile-agent-detail",children:[i.jsx("p",{className:"mobile-agent-detail-desc",children:c.description||"No description."}),i.jsxs("div",{className:"mobile-agent-detail-meta",children:[i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Version"}),i.jsx("span",{className:"mono",children:c.version})]}),i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Author"}),i.jsx("span",{children:c.author})]}),i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Bizar"}),i.jsx("span",{className:"mono",children:c.bizar})]}),i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Type"}),i.jsx("span",{children:c.type})]}),i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Permissions"}),i.jsx("span",{children:c.permissions.length})]}),c.installedAt&&i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Installed"}),i.jsx("span",{children:new Date(c.installedAt).toLocaleDateString()})]})]})]})})]})}function yp({snapshot:e,onNavigate:t}){var o,a,u;const[n,l]=k.useState(""),r=[{id:"artifacts",icon:qt,label:"Plans",count:e.artifacts.length||0,desc:"Visual artifacts with elements & comments"},{id:"agents",icon:Vr,label:"Agents",count:((o=e.agents)==null?void 0:o.length)||0,desc:"The Norse pantheon"},{id:"skills",icon:En,label:"Skills",count:null,desc:"Agent capabilities & tools"},{id:"mods",icon:En,label:"Mods",count:((a=e.mods)==null?void 0:a.length)||0,desc:"Installed modifications"},{id:"schedules",icon:hi,label:"Schedules",count:((u=e.schedules)==null?void 0:u.length)||0,desc:"Cron jobs & automated tasks"},{id:"history",icon:vi,label:"History",count:null,desc:"Past sessions & outputs"},{id:"config",icon:rd,label:"Config",count:null,desc:"Key-value configuration editor"}],s=n.trim()?r.filter(m=>m.label.toLowerCase().includes(n.toLowerCase())||m.desc.toLowerCase().includes(n.toLowerCase())):r;return i.jsxs("div",{className:"mobile-view",children:[i.jsx("div",{className:"mobile-tasks-toolbar",children:i.jsx("input",{className:"mobile-search-input",type:"text",placeholder:"Search…",value:n,onChange:m=>l(m.target.value),style:{flex:1}})}),i.jsx("div",{className:"mobile-card-list",children:s.map(m=>{const c=m.icon;return i.jsxs("button",{type:"button",className:"mobile-more-nav-item",onClick:()=>t(m.id),children:[i.jsx("div",{className:"mobile-more-nav-icon",children:i.jsx(c,{size:20})}),i.jsxs("div",{className:"mobile-more-nav-content",children:[i.jsxs("span",{className:"mobile-more-nav-label",children:[m.label,m.count!=null&&i.jsx("span",{className:"mobile-more-nav-count",children:m.count})]}),i.jsx("span",{className:"mobile-more-nav-desc",children:m.desc})]}),i.jsx(Sa,{size:16,className:"mobile-more-nav-arrow"})]},m.id)})}),i.jsx("div",{className:"mobile-more-footer",children:i.jsxs("a",{href:"/?desktop=1",className:"mobile-more-link",children:["Switch to Desktop ",i.jsx(Sa,{size:14})]})})]})}const mo=[{id:"task",label:"Task",color:"var(--info)"},{id:"note",label:"Note",color:"var(--text-dim)"},{id:"decision",label:"Decision",color:"var(--accent)"},{id:"question",label:"Question",color:"var(--warning)"}];function ws(e){var t;return((t=mo.find(n=>n.id===e))==null?void 0:t.color)||"var(--text-dim)"}function gp({type:e,size:t=12}){switch(e){case"task":return i.jsx(br,{size:t,style:{color:"var(--info)"}});case"note":return i.jsx(Ca,{size:t,style:{color:"var(--text-dim)"}});case"decision":return i.jsx(br,{size:t,style:{color:"var(--accent)"}});case"question":return i.jsx(Qm,{size:t,style:{color:"var(--warning)"}});default:return i.jsx(Ca,{size:t})}}function xp({slug:e,onBack:t}){const[n,l]=k.useState(null),[r,s]=k.useState(null),[o,a]=k.useState(!0),[u,m]=k.useState(!1),[c,h]=k.useState(null),[v,x]=k.useState(!1),[y,p]=k.useState(!1),[N,f]=k.useState(!1),[d,g]=k.useState(""),w=async()=>{a(!0);try{const j=await A.get(`/plans/${encodeURIComponent(e)}`);l(j.canvas),s(j.meta)}catch{}finally{a(!1)}};k.useEffect(()=>{w()},[e]);const b=async(j,R,S)=>{try{const L=((n==null?void 0:n.elements)||[]).reduce((F,ee)=>Math.max(F,ee.x||0),40),D=((n==null?void 0:n.elements)||[]).reduce((F,ee)=>Math.max(F,ee.y||0),40);await A.post(`/plans/${encodeURIComponent(e)}/elements`,{type:j,title:R,content:S,x:20+L,y:20+D,width:240,height:120}),await w(),p(!1)}catch{}},T=async(j,R)=>{try{await A.put(`/plans/${encodeURIComponent(e)}/elements/${encodeURIComponent(j)}`,R),await w(),h(null)}catch{}},E=async j=>{if(confirm("Delete this element?"))try{await A.del(`/plans/${encodeURIComponent(e)}/elements/${encodeURIComponent(j)}`),h(null),await w()}catch{}},_=async(j,R)=>{try{const S=R?`/plans/${encodeURIComponent(e)}/elements/${encodeURIComponent(R)}/comments`:`/plans/${encodeURIComponent(e)}/comments`;await A.post(S,{text:j,elementId:R}),await w(),g(""),f(!1)}catch{}};return o||!n||!r?i.jsx("div",{className:"mobile-view",children:i.jsx("div",{className:"mobile-loading",children:i.jsx("p",{children:"Loading canvas…"})})}):i.jsxs("div",{className:"mobile-view mobile-view-canvas",children:[i.jsxs("div",{className:"mobile-canvas-bar",children:[i.jsxs("div",{className:"mobile-canvas-meta",children:[i.jsx("span",{className:"mobile-canvas-title",children:r.title||e}),i.jsx("span",{className:"mobile-canvas-status","data-status":r.status,children:r.status})]}),i.jsxs("div",{className:"mobile-canvas-actions",children:[i.jsx("button",{type:"button",className:`mobile-icon-btn ${u?"active":""}`,onClick:()=>m(j=>!j),"aria-label":u?"Done editing":"Edit",children:i.jsx(nd,{size:16})}),i.jsxs("button",{type:"button",className:"mobile-icon-btn",onClick:()=>x(j=>!j),"aria-label":"Comments",children:[i.jsx(fn,{size:16}),n.comments.length>0&&i.jsx("span",{className:"mobile-canvas-comment-count",children:n.comments.length})]}),u&&i.jsx("button",{type:"button",className:"mobile-icon-btn",onClick:()=>p(!0),"aria-label":"Add element",children:i.jsx(Ke,{size:16})})]})]}),i.jsxs("div",{className:"mobile-canvas-elements",children:[n.elements.length===0&&i.jsxs("div",{className:"mobile-empty",children:[i.jsx("p",{children:"No elements yet."}),u&&i.jsxs("button",{type:"button",className:"mobile-btn",onClick:()=>p(!0),children:[i.jsx(Ke,{size:14})," Add Element"]})]}),n.elements.map(j=>i.jsxs("button",{type:"button",className:`mobile-canvas-element ${(c==null?void 0:c.id)===j.id?"selected":""}`,style:{borderColor:ws(j.type)},onClick:()=>{u&&h(j)},"aria-pressed":(c==null?void 0:c.id)===j.id,children:[i.jsxs("div",{className:"mobile-canvas-el-header",style:{background:`${ws(j.type)}18`},children:[i.jsx(gp,{type:j.type,size:12}),i.jsx("span",{className:"mobile-canvas-el-type",style:{color:ws(j.type)},children:j.type}),j.status&&j.status!=="open"&&i.jsx("span",{className:"mobile-canvas-el-status",children:j.status})]}),i.jsx("div",{className:"mobile-canvas-el-title",children:j.title||"Untitled"}),j.content&&i.jsxs("div",{className:"mobile-canvas-el-content",children:[j.content.slice(0,120),j.content.length>120?"…":""]}),i.jsxs("div",{className:"mobile-canvas-el-comments",children:[i.jsx(fn,{size:10}),n.comments.filter(R=>R.elementId===j.id).length]})]},j.id))]}),v&&i.jsxs("div",{className:"mobile-canvas-comments",children:[i.jsxs("div",{className:"mobile-canvas-comments-header",children:[i.jsxs("h4",{children:["Comments (",n.comments.length,")"]}),i.jsx("button",{type:"button",className:"mobile-icon-btn",onClick:()=>x(!1),children:i.jsx(Ln,{size:16})})]}),i.jsxs("div",{className:"mobile-canvas-comment-list",children:[n.comments.length===0&&i.jsx("p",{className:"mobile-empty-inline",children:"No comments yet."}),n.comments.map(j=>i.jsxs("div",{className:"mobile-canvas-comment",children:[i.jsxs("div",{className:"mobile-canvas-comment-head",children:[i.jsx("span",{className:"mono",children:j.author}),i.jsx("span",{className:"muted",children:xn(j.created)})]}),i.jsx("div",{className:"mobile-canvas-comment-text",children:j.text})]},j.id))]}),i.jsxs("div",{className:"mobile-canvas-comment-input",children:[i.jsx("textarea",{className:"mobile-input",rows:2,placeholder:"Add a comment…",value:d,onChange:j=>g(j.target.value)}),i.jsx("button",{type:"button",className:"mobile-btn",disabled:!d.trim(),onClick:()=>{_(d.trim(),null)},children:"Post"})]})]}),c&&i.jsx(ct,{open:!0,onClose:()=>h(null),title:`Edit ${c.title||c.type}`,actions:i.jsxs("div",{className:"mobile-task-detail-actions",children:[i.jsxs("button",{type:"button",className:"mobile-btn mobile-btn-danger",onClick:()=>E(c.id),children:[i.jsx(Hr,{size:14})," Delete"]}),i.jsxs("button",{type:"button",className:"mobile-btn",onClick:()=>f(!0),children:[i.jsx(fn,{size:14})," Comment"]})]}),children:i.jsx(kp,{element:c,onSave:j=>T(c.id,j),onClose:()=>h(null)})}),i.jsx(wp,{open:y,onClose:()=>p(!1),onAdd:b}),i.jsx(Mt,{open:N,onClose:()=>f(!1),title:"Add Comment",actions:i.jsxs("button",{type:"button",className:"mobile-btn",style:{width:"100%"},disabled:!d.trim(),onClick:()=>{_(d.trim(),(c==null?void 0:c.id)||null),f(!1)},children:[i.jsx(fn,{size:14})," Post"]}),children:i.jsx("textarea",{className:"mobile-input",rows:3,placeholder:"Your comment…",value:d,onChange:j=>g(j.target.value),autoFocus:!0})})]})}function kp({element:e,onSave:t,onClose:n}){const[l,r]=k.useState(e.type),[s,o]=k.useState(e.title||""),[a,u]=k.useState(e.content||""),[m,c]=k.useState(e.status||"open");return i.jsxs("form",{className:"mobile-task-form",onSubmit:h=>{h.preventDefault(),t({type:l,title:s,content:a,status:m}),n()},children:[i.jsx("label",{className:"mobile-field-label",children:"Type"}),i.jsx("select",{className:"mobile-input",value:l,onChange:h=>r(h.target.value),children:mo.map(h=>i.jsx("option",{value:h.id,children:h.label},h.id))}),i.jsx("label",{className:"mobile-field-label",children:"Title"}),i.jsx("input",{className:"mobile-input",type:"text",value:s,onChange:h=>o(h.target.value)}),i.jsx("label",{className:"mobile-field-label",children:"Status"}),i.jsx("input",{className:"mobile-input",type:"text",value:m,onChange:h=>c(h.target.value),placeholder:"open / done / blocked"}),i.jsx("label",{className:"mobile-field-label",children:"Content (markdown)"}),i.jsx("textarea",{className:"mobile-input",rows:4,value:a,onChange:h=>u(h.target.value)}),i.jsx("button",{type:"submit",className:"mobile-btn",style:{width:"100%",marginTop:8},children:"Save"})]})}function wp({open:e,onClose:t,onAdd:n}){const[l,r]=k.useState("task"),[s,o]=k.useState(""),[a,u]=k.useState(""),m=c=>{c.preventDefault(),s.trim()&&(n(l,s.trim(),a.trim()),o(""),u(""))};return i.jsx(Mt,{open:e,onClose:t,title:"Add Element",actions:i.jsxs("button",{type:"submit",form:"add-el-form",className:"mobile-btn",style:{width:"100%"},children:[i.jsx(Ke,{size:14})," Add"]}),children:i.jsxs("form",{id:"add-el-form",onSubmit:m,className:"mobile-task-form",children:[i.jsx("label",{className:"mobile-field-label",children:"Type"}),i.jsx("select",{className:"mobile-input",value:l,onChange:c=>r(c.target.value),children:mo.map(c=>i.jsx("option",{value:c.id,children:c.label},c.id))}),i.jsx("label",{className:"mobile-field-label",children:"Title *"}),i.jsx("input",{className:"mobile-input",type:"text",placeholder:"Element title",value:s,onChange:c=>o(c.target.value),autoFocus:!0,required:!0}),i.jsx("label",{className:"mobile-field-label",children:"Content (markdown)"}),i.jsx("textarea",{className:"mobile-input",rows:3,placeholder:"Description…",value:a,onChange:c=>u(c.target.value)})]})})}function jp({snapshot:e,onBack:t,onOpenArtifact:n}){const[l,r]=k.useState(e.artifacts||[]),[s,o]=k.useState(!e.artifacts),[a,u]=k.useState(""),[m,c]=k.useState(!1),[h,v]=k.useState(""),[x,y]=k.useState(""),p=async()=>{try{const d=await A.get("/artifacts");r(d.artifacts||[])}catch{}finally{o(!1)}},N=async()=>{if(h.trim())try{const d=await A.post("/artifacts",{slug:h.trim(),title:x.trim()||void 0});c(!1),v(""),y(""),n(d.slug)}catch{}},f=a.trim()?l.filter(d=>(d.title||d.slug||"").toLowerCase().includes(a.toLowerCase())):l;return i.jsxs("div",{className:"mobile-view",children:[i.jsxs("div",{className:"mobile-tasks-toolbar",children:[i.jsx("input",{className:"mobile-search-input",type:"text",placeholder:"Search artifacts…",value:a,onChange:d=>u(d.target.value),style:{flex:1}}),i.jsx("button",{type:"button",className:"mobile-icon-btn",onClick:()=>p(),"aria-label":"Refresh",children:i.jsx(ft,{size:16})})]}),i.jsx("div",{style:{marginBottom:12},children:i.jsxs("button",{type:"button",className:"mobile-btn",style:{width:"100%"},onClick:()=>c(!0),children:[i.jsx(Ke,{size:14})," New Artifact"]})}),s?i.jsx("div",{className:"mobile-loading",children:i.jsx("p",{children:"Loading…"})}):f.length===0?i.jsxs("div",{className:"mobile-empty",children:[i.jsx(qt,{size:40}),i.jsx("p",{children:"No artifacts yet."})]}):i.jsx("div",{className:"mobile-card-list",children:f.map(d=>i.jsxs("button",{type:"button",className:"mobile-list-item mobile-list-item-interactive",onClick:()=>n(d.slug),children:[i.jsx("div",{className:"mobile-list-icon",children:i.jsx(qt,{size:16})}),i.jsxs("div",{className:"mobile-list-content",children:[i.jsx("span",{className:"mobile-list-title",children:d.title||d.slug}),i.jsxs("span",{className:"mobile-list-meta",children:[d.status," · ",d.source,d.elementCount!=null?` · ${d.elementCount} elements`:"",d.commentCount!=null?` · ${d.commentCount} comments`:""]})]}),i.jsx("span",{className:"mobile-list-badge","data-status":d.status,children:d.status})]},d.slug))}),i.jsx(Mt,{open:m,onClose:()=>c(!1),title:"New Artifact",actions:i.jsxs("button",{type:"submit",form:"new-plan-form",className:"mobile-btn",style:{width:"100%"},children:[i.jsx(Ke,{size:14})," Create"]}),children:i.jsxs("form",{id:"new-plan-form",onSubmit:d=>{d.preventDefault(),N()},className:"mobile-task-form",children:[i.jsx("label",{className:"mobile-field-label",children:"Slug *"}),i.jsx("input",{className:"mobile-input",type:"text",placeholder:"my-plan",pattern:"[a-z0-9][a-z0-9-]{0,63}",value:h,onChange:d=>v(d.target.value),autoFocus:!0,required:!0}),i.jsx("label",{className:"mobile-field-label",children:"Title (optional)"}),i.jsx("input",{className:"mobile-input",type:"text",placeholder:"My Artifact",value:x,onChange:d=>y(d.target.value)})]})})]})}const Sp=["cron","interval","once"],Np=["command","agent","webhook"],Da=["UTC","America/New_York","America/Los_Angeles","Europe/London","Europe/Berlin","Asia/Tokyo"],ad=Array.from({length:24},(e,t)=>({value:t,label:t===0?"12 AM":t<12?`${t} AM`:t===12?"12 PM":`${t-12} PM`})),Cp=Array.from({length:12},(e,t)=>t*5),ud=[{value:"*",label:"Every day"},{value:"0",label:"Sun"},{value:"1",label:"Mon"},{value:"2",label:"Tue"},{value:"3",label:"Wed"},{value:"4",label:"Thu"},{value:"5",label:"Fri"},{value:"6",label:"Sat"}],bp=[{value:"s",label:"sec"},{value:"m",label:"min"},{value:"h",label:"hr"},{value:"d",label:"day"}];function Ep({snapshot:e}){var N;const[t,n]=k.useState(e.schedules||[]),[l,r]=k.useState(!e.schedules),[s,o]=k.useState(""),[a,u]=k.useState(null),[m,c]=k.useState({open:!1}),h=async()=>{try{const f=await A.get("/schedules");n(f.schedules||[])}catch{}finally{r(!1)}};k.useEffect(()=>{e.schedules?(n(e.schedules),r(!1)):h()},[e.schedules]);const v=async(f,d)=>{try{await A.patch(`/schedules/${encodeURIComponent(f)}`,{enabled:d}),n(g=>g.map(w=>w.id===f?{...w,enabled:d}:w)),(a==null?void 0:a.id)===f&&u(g=>g&&{...g,enabled:d})}catch{}},x=async f=>{if(confirm("Delete this schedule?"))try{await A.del(`/schedules/${encodeURIComponent(f)}`),n(d=>d.filter(g=>g.id!==f)),(a==null?void 0:a.id)===f&&u(null)}catch{}},y=async f=>{try{await A.post(`/schedules/${encodeURIComponent(f)}/trigger`)}catch{}},p=s.trim()?t.filter(f=>f.name.toLowerCase().includes(s.toLowerCase())):t;return i.jsxs("div",{className:"mobile-view",children:[i.jsxs("div",{className:"mobile-tasks-toolbar",children:[i.jsx("input",{className:"mobile-search-input",type:"text",placeholder:"Search schedules…",value:s,onChange:f=>o(f.target.value),style:{flex:1}}),i.jsx("button",{type:"button",className:"mobile-icon-btn",onClick:()=>h(),"aria-label":"Refresh",children:i.jsx(ft,{size:16})}),i.jsx("button",{type:"button",className:"mobile-icon-btn",onClick:()=>c({open:!0}),"aria-label":"New schedule",children:i.jsx(Ke,{size:16})})]}),l?i.jsx("div",{className:"mobile-loading",children:i.jsx("p",{children:"Loading…"})}):p.length===0?i.jsxs("div",{className:"mobile-empty",children:[i.jsx(hi,{size:40}),i.jsx("p",{children:"No schedules found."})]}):i.jsx("div",{className:"mobile-card-list",children:p.map(f=>i.jsxs("button",{type:"button",className:"mobile-list-item mobile-list-item-interactive",onClick:()=>u(f),children:[i.jsx("div",{className:"mobile-list-icon",children:i.jsx(hi,{size:16})}),i.jsxs("div",{className:"mobile-list-content",children:[i.jsx("span",{className:"mobile-list-title",children:f.name}),i.jsxs("span",{className:"mobile-list-meta",children:[$a(f)," ·"," ",f.nextRun?`next ${Aa(f.nextRun,f.timezone)}`:"no next run"]})]}),i.jsx("span",{className:`mobile-list-badge ${f.enabled?"badge-on":"badge-off"}`,children:f.enabled?"on":"off"})]},f.id))}),a&&i.jsx(ct,{open:!0,onClose:()=>u(null),title:a.name,actions:i.jsxs("div",{className:"mobile-task-detail-actions",children:[i.jsxs("button",{type:"button",className:"mobile-btn",onClick:()=>{a&&y(a.id)},children:[i.jsx(Cr,{size:14})," Trigger now"]}),i.jsx("button",{type:"button",className:`mobile-btn ${a.enabled?"mobile-btn-secondary":""}`,onClick:()=>{a&&v(a.id,!a.enabled)},children:a.enabled?"Disable":"Enable"}),i.jsxs("button",{type:"button",className:"mobile-btn",onClick:()=>{a&&(c({open:!0,initial:a}),u(null))},children:[i.jsx(nd,{size:14})," Edit"]}),i.jsx("button",{type:"button",className:"mobile-btn mobile-btn-danger",onClick:()=>{a&&x(a.id)},children:i.jsx(Hr,{size:14})})]}),children:i.jsx("div",{className:"mobile-agent-detail",children:i.jsxs("div",{className:"mobile-agent-detail-meta",children:[i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Type"}),i.jsx("span",{children:a.type})]}),i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Schedule"}),i.jsx("span",{className:"mono",children:$a(a)||a.schedule})]}),a.timezone&&i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Timezone"}),i.jsx("span",{className:"mono",children:a.timezone})]}),i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Action"}),i.jsxs("span",{children:[a.action.type,": ",a.action.target]})]}),a.action.type==="agent"&&a.action.prompt&&i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Prompt"}),i.jsx("span",{style:{fontSize:12},children:a.action.prompt})]}),((N=a.budgetCheck)==null?void 0:N.skipIfBudgetLow)&&i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Budget gate"}),i.jsxs("span",{children:["skip if ≥ ",a.budgetCheck.maxConcurrent??6," concurrent"]})]}),i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Next run"}),i.jsx("span",{children:a.nextRun?Aa(a.nextRun,a.timezone):"—"})]}),i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Last run"}),i.jsx("span",{children:a.lastRun?_p(a.lastRun):"—"})]}),a.lastResult&&i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Last result"}),i.jsx("span",{style:{fontSize:12},children:a.lastResult})]}),a.lastError&&i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Last error"}),i.jsx("span",{style:{fontSize:12},children:a.lastError})]})]})})}),i.jsx(zp,{open:m.open,initial:m.initial,onClose:()=>c({open:!1}),onSaved:()=>{c({open:!1}),h()}})]})}function Ia(e){var l,r;if(!e)return{name:"",type:"cron",cronMinute:0,cronHour:13,cronDow:"0",intervalN:30,intervalUnit:"m",onceAt:"",timezone:"UTC",actionType:"agent",actionTarget:"",actionPrompt:"",skipIfBudgetLow:!1,maxConcurrent:6,enabled:!0};const t=e.type==="cron"?cd(e.schedule):null,n=e.type==="interval"?Lp(e.schedule):null;return{name:e.name||"",type:e.type,cronMinute:(t==null?void 0:t.minute)??0,cronHour:(t==null?void 0:t.hour)??9,cronDow:(t==null?void 0:t.dow)??"*",intervalN:(n==null?void 0:n.n)??30,intervalUnit:(n==null?void 0:n.unit)??"m",onceAt:e.type==="once"?Pp(e.schedule):"",timezone:e.timezone||"UTC",actionType:e.action.type,actionTarget:e.action.target||"",actionPrompt:e.action.prompt||"",skipIfBudgetLow:!!((l=e.budgetCheck)!=null&&l.skipIfBudgetLow),maxConcurrent:Number.isFinite((r=e.budgetCheck)==null?void 0:r.maxConcurrent)?e.budgetCheck.maxConcurrent:6,enabled:e.enabled!==!1}}function Tp(e){if(e.type==="cron")return`${e.cronMinute} ${e.cronHour} * * ${e.cronDow}`;if(e.type==="interval")return`${e.intervalN}${e.intervalUnit}`;if(!e.onceAt)return"";try{return new Date(e.onceAt).toISOString()}catch{return e.onceAt}}function zp({open:e,initial:t,onClose:n,onSaved:l}){const[r,s]=k.useState(()=>Ia(t)),[o,a]=k.useState(!1);k.useEffect(()=>{e&&s(Ia(t))},[e,t]);const u=(c,h)=>{s(v=>({...v,[c]:h}))},m=async c=>{if(c.preventDefault(),!r.name.trim())return;const h=Tp(r);if(h){a(!0);try{const v={name:r.name.trim(),type:r.type,schedule:h,timezone:r.timezone,action:{type:r.actionType,target:r.actionTarget.trim(),...r.actionType==="agent"&&r.actionPrompt.trim()?{prompt:r.actionPrompt.trim()}:{}},budgetCheck:{maxConcurrent:r.maxConcurrent,skipIfBudgetLow:r.skipIfBudgetLow},enabled:r.enabled};t?await A.put(`/schedules/${encodeURIComponent(t.id)}`,v):await A.post("/schedules",v),l()}catch{}finally{a(!1)}}};return i.jsx(Mt,{open:e,onClose:n,title:t?`Edit ${t.name}`:"New schedule",actions:i.jsxs("button",{type:"submit",form:"mobile-schedule-form",className:"mobile-btn",style:{width:"100%"},disabled:o,children:[i.jsx(Ke,{size:14})," ",t?"Save":"Create"]}),children:i.jsxs("form",{id:"mobile-schedule-form",onSubmit:m,className:"mobile-task-form",children:[i.jsx("label",{className:"mobile-field-label",children:"Name *"}),i.jsx("input",{className:"mobile-input",type:"text",placeholder:"Weekly review",value:r.name,onChange:c=>u("name",c.target.value),autoFocus:!0,required:!0}),i.jsx("label",{className:"mobile-field-label",children:"Type"}),i.jsx("select",{className:"mobile-input",value:r.type,onChange:c=>u("type",c.target.value),children:Sp.map(c=>i.jsx("option",{value:c,children:c},c))}),r.type==="cron"&&i.jsxs(i.Fragment,{children:[i.jsx("label",{className:"mobile-field-label",children:"Day of week"}),i.jsx("select",{className:"mobile-input",value:r.cronDow,onChange:c=>u("cronDow",c.target.value),children:ud.map(c=>i.jsx("option",{value:c.value,children:c.label},c.value))}),i.jsxs("div",{className:"mobile-form-row",children:[i.jsxs("div",{style:{flex:1},children:[i.jsx("label",{className:"mobile-field-label",children:"Hour"}),i.jsx("select",{className:"mobile-input",value:String(r.cronHour),onChange:c=>u("cronHour",parseInt(c.target.value,10)),children:ad.map(c=>i.jsx("option",{value:String(c.value),children:c.label},c.value))})]}),i.jsxs("div",{style:{flex:1},children:[i.jsx("label",{className:"mobile-field-label",children:"Minute"}),i.jsx("select",{className:"mobile-input",value:String(r.cronMinute),onChange:c=>u("cronMinute",parseInt(c.target.value,10)),children:Cp.map(c=>i.jsx("option",{value:String(c),children:String(c).padStart(2,"0")},c))})]})]})]}),r.type==="interval"&&i.jsxs("div",{className:"mobile-form-row",children:[i.jsxs("div",{style:{flex:1},children:[i.jsx("label",{className:"mobile-field-label",children:"Every"}),i.jsx("input",{className:"mobile-input",type:"number",min:1,value:r.intervalN,onChange:c=>u("intervalN",parseInt(c.target.value,10)||1)})]}),i.jsxs("div",{style:{flex:1},children:[i.jsx("label",{className:"mobile-field-label",children:"Unit"}),i.jsx("select",{className:"mobile-input",value:r.intervalUnit,onChange:c=>u("intervalUnit",c.target.value),children:bp.map(c=>i.jsx("option",{value:c.value,children:c.label},c.value))})]})]}),r.type==="once"&&i.jsxs(i.Fragment,{children:[i.jsx("label",{className:"mobile-field-label",children:"Run at"}),i.jsx("input",{className:"mobile-input",type:"datetime-local",value:r.onceAt,onChange:c=>u("onceAt",c.target.value)})]}),i.jsx("label",{className:"mobile-field-label",children:"Timezone"}),i.jsx("select",{className:"mobile-input",value:Da.includes(r.timezone)?r.timezone:"UTC",onChange:c=>u("timezone",c.target.value),children:Da.map(c=>i.jsx("option",{value:c,children:c},c))}),i.jsx("label",{className:"mobile-field-label",children:"Action type"}),i.jsx("select",{className:"mobile-input",value:r.actionType,onChange:c=>u("actionType",c.target.value),children:Np.map(c=>i.jsx("option",{value:c,children:c},c))}),i.jsx("label",{className:"mobile-field-label",children:"Target"}),i.jsx("input",{className:"mobile-input",type:"text",placeholder:r.actionType==="webhook"?"https://...":r.actionType==="agent"?"agent or task ref":"echo hello",value:r.actionTarget,onChange:c=>u("actionTarget",c.target.value)}),r.actionType==="agent"&&i.jsxs(i.Fragment,{children:[i.jsx("label",{className:"mobile-field-label",children:"Prompt"}),i.jsx("textarea",{className:"mobile-input",rows:3,placeholder:"What should the agent do?",value:r.actionPrompt,onChange:c=>u("actionPrompt",c.target.value)})]}),i.jsxs("fieldset",{className:"mobile-budget-card",children:[i.jsx("legend",{children:"Budget pre-flight"}),i.jsxs("label",{className:"mobile-checkbox-row",children:[i.jsx("input",{type:"checkbox",checked:r.skipIfBudgetLow,onChange:c=>u("skipIfBudgetLow",c.target.checked)}),i.jsx("span",{children:"Skip if too many bg tasks are running"})]}),i.jsx("label",{className:"mobile-field-label",children:"Cap"}),i.jsx("input",{className:"mobile-input",type:"number",min:1,max:64,value:r.maxConcurrent,onChange:c=>u("maxConcurrent",parseInt(c.target.value,10)||6),disabled:!r.skipIfBudgetLow})]}),i.jsxs("label",{className:"mobile-checkbox-row",children:[i.jsx("input",{type:"checkbox",checked:r.enabled,onChange:c=>u("enabled",c.target.checked)}),i.jsx("span",{children:"Enabled"})]})]})})}function _p(e){const t=Date.now()-new Date(e).getTime();return t<6e4?"just now":t<36e5?`${Math.floor(t/6e4)}m ago`:t<864e5?`${Math.floor(t/36e5)}h ago`:new Date(e).toLocaleDateString()}function Aa(e,t){try{return new Date(e).toLocaleString(void 0,{timeZone:t||void 0,weekday:"short",hour:"numeric",minute:"2-digit",month:"short",day:"numeric"})}catch{return new Date(e).toLocaleString()}}function cd(e){if(typeof e!="string")return null;const t=e.trim().split(/\s+/);if(t.length!==5)return null;const[n,l,,,r]=t,s=parseInt(n,10),o=parseInt(l,10);return!Number.isFinite(s)||!Number.isFinite(o)||n!==String(s)||l!==String(o)?null:{minute:s,hour:o,dow:r==="*"?"*":Number.isFinite(parseInt(r,10))?r:"*"}}function Lp(e){if(typeof e!="string")return null;const t=/^(\d+)([smhd])$/i.exec(e.trim());return t?{n:parseInt(t[1],10),unit:t[2].toLowerCase()}:null}function Pp(e){if(!e)return"";try{const t=new Date(e);if(Number.isNaN(t.getTime()))return"";const n=l=>String(l).padStart(2,"0");return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}T${n(t.getHours())}:${n(t.getMinutes())}`}catch{return""}}function $a(e){var s,o;if(e.type!=="cron")return e.schedule;const t=cd(e.schedule);if(!t)return e.schedule;const n=((s=ud.find(a=>a.value===t.dow))==null?void 0:s.label)||t.dow,l=((o=ad.find(a=>a.value===t.hour))==null?void 0:o.label)||`${t.hour}`,r=String(t.minute).padStart(2,"0");return n==="Every day"?`Every day ${l} :${r}`:`Every ${n} ${l} :${r}`}const Mp=["all","tasks","agents","artifacts","projects","settings"],Rp={tasks:br,agents:Vr,plans:qt,projects:Km,settings:En};function Dp({open:e,onClose:t,onNavigate:n}){const[l,r]=k.useState(""),[s,o]=k.useState("all"),[a,u]=k.useState([]),[m,c]=k.useState(!1),h=k.useRef(null);k.useEffect(()=>{e&&(r(""),u([]),requestAnimationFrame(()=>{var y;return(y=h.current)==null?void 0:y.focus()}))},[e]),k.useEffect(()=>{if(!l.trim()){u([]);return}const y=setTimeout(async()=>{c(!0);try{const p=await A.get(`/search?q=${encodeURIComponent(l)}&scope=${s}`);u(p.results||[])}catch{u([])}finally{c(!1)}},250);return()=>clearTimeout(y)},[l,s]);const v=y=>{const p=y.item,N=p.id||p.slug||p.name||"";n(y.type,N),t()},x=a.reduce((y,p)=>(y[p.type]||(y[p.type]=[]),y[p.type].push(p),y),{});return i.jsx(Mt,{open:e,onClose:t,title:"Search",children:i.jsxs("div",{className:"mobile-search-container",children:[i.jsxs("div",{className:"mobile-search-input-row",children:[i.jsx(yi,{size:16,style:{color:"var(--text-muted)",flexShrink:0}}),i.jsx("input",{ref:h,className:"mobile-search-field",type:"text",placeholder:"Search…",value:l,onChange:y=>r(y.target.value),enterKeyHint:"search",onKeyDown:y=>{y.key==="Escape"&&t(),y.key==="Enter"&&a.length>0&&v(a[0])}}),l&&i.jsx("button",{type:"button",className:"mobile-icon-btn",onClick:()=>r(""),"aria-label":"Clear",children:i.jsx(Ln,{size:16})})]}),i.jsx("div",{className:"mobile-search-scopes",children:Mp.map(y=>i.jsx("button",{type:"button",className:`mobile-scope-chip ${s===y?"active":""}`,onClick:()=>o(y),children:y==="all"?"All":y.charAt(0).toUpperCase()+y.slice(1)},y))}),i.jsxs("div",{className:"mobile-search-results",children:[m&&i.jsx("div",{className:"mobile-search-loading",children:"Searching…"}),!m&&l&&a.length===0&&i.jsxs("div",{className:"mobile-empty",children:[i.jsx(yi,{size:32}),i.jsx("p",{children:"No results found"})]}),!m&&!l&&i.jsx("div",{className:"mobile-empty",children:i.jsx("p",{children:"Type to search across tasks, agents, plans, and more."})}),Object.entries(x).map(([y,p])=>{const N=Rp[y]||qt;return i.jsxs("div",{className:"mobile-search-group",children:[i.jsxs("h4",{className:"mobile-search-group-title",children:[i.jsx(N,{size:12})," ",y.charAt(0).toUpperCase()+y.slice(1)," (",p.length,")"]}),p.map((f,d)=>{const g=f.item;return i.jsxs("button",{type:"button",className:"mobile-search-result-item",onClick:()=>v(f),children:[i.jsx("span",{className:"mobile-search-result-title",children:g.title||g.name||g.slug||"(unnamed)"}),g.description&&i.jsx("span",{className:"mobile-search-result-meta",children:g.description.slice(0,80)})]},d)})]},y)})]})]})})}const Ip=["languages","framework","design","testing","devops","data","security","integration"];function Ap({snapshot:e,onBack:t}){const[n,l]=k.useState([]),[r,s]=k.useState(!0),[o,a]=k.useState(""),[u,m]=k.useState(""),[c,h]=k.useState(null),v=async()=>{try{const p=await A.get("/skills");l(p.skills||[])}catch{}finally{s(!1)}};k.useEffect(()=>{v()},[]);const x=async(p,N)=>{try{await A.patch(`/skills/${encodeURIComponent(p)}`,{enabled:N}),l(f=>f.map(d=>d.id===p?{...d,enabled:N}:d)),(c==null?void 0:c.id)===p&&h(f=>f&&{...f,enabled:N})}catch{}},y=n.filter(p=>{if(u&&p.category!==u)return!1;if(o){const N=o.toLowerCase();return p.name.toLowerCase().includes(N)||p.description.toLowerCase().includes(N)}return!0});return i.jsxs("div",{className:"mobile-view",children:[i.jsxs("div",{className:"mobile-tasks-toolbar",children:[i.jsx("input",{className:"mobile-search-input",type:"text",placeholder:"Search skills…",value:o,onChange:p=>a(p.target.value),style:{flex:1}}),i.jsx("button",{type:"button",className:"mobile-icon-btn",onClick:()=>v(),"aria-label":"Refresh",children:i.jsx(ft,{size:16})})]}),i.jsxs("div",{className:"mobile-search-scopes",children:[i.jsx("button",{type:"button",className:`mobile-scope-chip ${u?"":"active"}`,onClick:()=>m(""),children:"All"}),Ip.map(p=>i.jsx("button",{type:"button",className:`mobile-scope-chip ${u===p?"active":""}`,onClick:()=>m(p),children:p},p))]}),r?i.jsx("div",{className:"mobile-loading",children:i.jsx("p",{children:"Loading…"})}):y.length===0?i.jsxs("div",{className:"mobile-empty",children:[i.jsx(Na,{size:40}),i.jsx("p",{children:"No skills found."})]}):i.jsx("div",{className:"mobile-card-list",children:y.map(p=>i.jsxs("button",{type:"button",className:"mobile-list-item mobile-list-item-interactive",onClick:()=>h(p),children:[i.jsx("div",{className:"mobile-list-icon",children:i.jsx(Na,{size:16})}),i.jsxs("div",{className:"mobile-list-content",children:[i.jsx("span",{className:"mobile-list-title",children:p.name}),i.jsxs("span",{className:"mobile-list-meta",children:[p.category," · v",p.version]})]}),i.jsx("span",{className:`mobile-list-badge ${p.enabled?"badge-on":"badge-off"}`,children:p.enabled?"on":"off"})]},p.id))}),c&&i.jsx(ct,{open:!0,onClose:()=>h(null),title:c.name,actions:i.jsxs("button",{type:"button",className:`mobile-btn ${c.enabled?"mobile-btn-secondary":""}`,style:{width:"100%"},onClick:()=>{c&&x(c.id,!c.enabled)},children:[i.jsx(ld,{size:14})," ",c.enabled?"Disable":"Enable"]}),children:i.jsxs("div",{className:"mobile-agent-detail",children:[i.jsx("p",{className:"mobile-agent-detail-desc",children:c.description||"No description."}),i.jsxs("div",{className:"mobile-agent-detail-meta",children:[i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Category"}),i.jsx("span",{children:c.category})]}),i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Version"}),i.jsx("span",{className:"mono",children:c.version})]}),i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Source"}),i.jsx("span",{children:c.source})]}),c.tags.length>0&&i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Tags"}),i.jsx("span",{children:c.tags.join(", ")})]})]})]})})]})}const $p=["queued","doing","blocked","done"],Ul={queued:"Queued",doing:"Doing",blocked:"Blocked",done:"Done"},Oa={queued:"doing",doing:"done",blocked:"queued",done:"queued"};function Op(e){const t=e.metadata??{};return!!(t.sessionId||t.bgInstanceId)}function Fp(e){var n;const t=e.metadata??{};return!!((n=t.artifactIds)!=null&&n.length||t.artifactId)}function Fa({snapshot:e,onRefresh:t,selectedTaskId:n,onCloseDetail:l,onOpenChat:r,onOpenArtifact:s}){var Ye,It;const[o,a]=k.useState(e.tasks||[]),[u,m]=k.useState(!e.tasks),[c,h]=k.useState(""),[v,x]=k.useState("queued"),[y,p]=k.useState(null),[N,f]=k.useState(!1),[d,g]=k.useState(null),[w,b]=k.useState([]),[T,E]=k.useState(""),[_,j]=k.useState(null),[R,S]=k.useState(!1),[L,D]=k.useState(""),[F,ee]=k.useState("updated");k.useEffect(()=>{var P;if(e.tasks&&(a(e.tasks),m(!1)),n){const H=(P=e.tasks)==null?void 0:P.find(B=>B.id===n);H&&p(H)}},[e.tasks,n]),k.useEffect(()=>{if(n){const P=o.find(H=>H.id===n);P&&p(P)}},[n,o]);const we=async()=>{try{const P=await A.get("/tasks");a(Array.isArray(P)?P:[])}catch{}finally{m(!1)}},Rt=async(P,H)=>{a(B=>B.map(fe=>fe.id===P?{...fe,status:H}:fe)),(y==null?void 0:y.id)===P&&p(B=>B&&{...B,status:H});try{await A.patch(`/tasks/${encodeURIComponent(P)}/status`,{status:H})}catch{await we()}},z=async P=>{if(confirm("Delete this task?"))try{await A.del(`/tasks/${encodeURIComponent(P)}`),a(H=>H.filter(B=>B.id!==P)),(y==null?void 0:y.id)===P&&p(null)}catch{await we()}},I=async P=>{try{await A.post(`/tasks/${encodeURIComponent(P)}/archive`),a(H=>H.filter(B=>B.id!==P)),(y==null?void 0:y.id)===P&&p(null)}catch{}},q=[...o.filter(P=>{var H,B;if(c.trim()){const fe=c.toLowerCase();if(!(P.title||"").toLowerCase().includes(fe)&&!(P.description||"").toLowerCase().includes(fe))return!1}if(L.trim()){const fe=L==="mine"?((B=(H=e.settings)==null?void 0:H.data)==null?void 0:B.defaultAgent)||Up(e):L.replace(/^@/,"");if((P.assignee||"").toLowerCase()!==fe.toLowerCase())return!1}return!0})].sort((P,H)=>{switch(F){case"priority":{const B={high:0,normal:1,low:2};return(B[P.priority]??1)-(B[H.priority]??1)}case"created":return new Date(H.createdAt).getTime()-new Date(P.createdAt).getTime();case"updated":default:return new Date(H.updatedAt).getTime()-new Date(P.updatedAt).getTime()}}),ne=q.filter(P=>P.status===v),Dt=e.agents||[],et=async(P,H,B,fe)=>{try{const Wr=await A.post("/tasks",{title:P,description:H,assignee:B||null,priority:fe});a(Qr=>[Wr,...Qr]),f(!1)}catch{}},Pn=async P=>{S(!0),E(""),j(null),g(P);try{const B=((await A.get(`/tasks/${encodeURIComponent(P)}/artifacts`)).artifacts||[]).map(fe=>fe.id);if(b(B),B.length>0){const[fe,Wr]=await Promise.all([A.get(`/artifacts/${encodeURIComponent(B[0])}`),fetch(A.urlWithToken(`/artifacts/${encodeURIComponent(B[0])}/content`)).then(Qr=>Qr.text())]);j(fe),E(Wr)}}catch{}finally{S(!1)}};return u?i.jsx("div",{className:"mobile-loading",children:i.jsx("p",{children:"Loading…"})}):i.jsxs("div",{className:"mobile-view mobile-view-tasks",children:[i.jsxs("div",{className:"mobile-tasks-toolbar",children:[i.jsx("input",{className:"mobile-search-input",type:"text",placeholder:"Search tasks…",value:c,onChange:P=>h(P.target.value),style:{flex:1}}),i.jsx("button",{type:"button",className:"mobile-icon-btn",onClick:()=>we(),"aria-label":"Refresh",children:i.jsx(ft,{size:16})})]}),i.jsxs("div",{className:"mobile-tasks-filters",children:[i.jsxs("select",{className:"mobile-filter-select",value:L,onChange:P=>D(P.target.value),children:[i.jsx("option",{value:"",children:"All"}),i.jsx("option",{value:"mine",children:"Mine"}),Dt.map(P=>i.jsxs("option",{value:`@${P.name}`,children:["@",P.name]},P.name))]}),i.jsxs("select",{className:"mobile-filter-select",value:F,onChange:P=>ee(P.target.value),children:[i.jsx("option",{value:"updated",children:"Updated"}),i.jsx("option",{value:"created",children:"Created"}),i.jsx("option",{value:"priority",children:"Priority"})]})]}),i.jsx("div",{className:"mobile-kanban-tabs",children:$p.map(P=>{const H=q.filter(B=>B.status===P).length;return i.jsxs("button",{type:"button",className:`mobile-kanban-tab ${v===P?"active":""}`,onClick:()=>x(P),children:[Ul[P]," (",H,")"]},P)})}),i.jsxs("div",{className:"mobile-card-list",children:[ne.length===0&&i.jsxs("div",{className:"mobile-empty mobile-empty-compact",children:[i.jsxs("p",{children:["No ",Ul[v].toLowerCase()," tasks."]}),i.jsx("p",{className:"muted",children:"Create one or switch columns."})]}),ne.map(P=>{var H;return i.jsxs("button",{type:"button",className:"mobile-task-card",onClick:()=>p(P),children:[i.jsx("div",{className:"priority-dot",style:{background:tp[P.priority]||"var(--info)"}}),i.jsxs("div",{className:"task-content",children:[i.jsx("div",{className:"task-title",children:P.title}),i.jsxs("div",{className:"task-meta",children:[P.assignee?`@${P.assignee}`:"unassigned"," · ",xn(P.updatedAt||P.createdAt),(H=P.dependencies)!=null&&H.length?` · ${P.dependencies.length} deps`:""]})]})]},P.id)})]}),i.jsx("button",{type:"button",className:"mobile-fab",onClick:()=>f(!0),"aria-label":"Add task",children:i.jsx(Ke,{size:24})}),i.jsx(ct,{open:!!y,onClose:()=>{p(null),l==null||l()},title:"Task Detail",actions:y&&i.jsxs("div",{className:"mobile-task-detail-actions",children:[y.status!=="done"&&i.jsxs("button",{type:"button",className:"mobile-btn",style:{flex:1},onClick:()=>{y&&Rt(y.id,Oa[y.status])},children:["Move to ",Ul[Oa[y.status]||"queued"]]}),i.jsxs("button",{type:"button",className:"mobile-btn mobile-btn-secondary",onClick:()=>{y&&I(y.id)},children:[i.jsx(Wm,{size:14})," Archive"]}),Op(y)&&i.jsxs("button",{type:"button",className:"mobile-btn mobile-btn-secondary",onClick:()=>{r==null||r(y.id)},children:[i.jsx(fn,{size:14})," Chat"]}),Fp(y)&&i.jsxs("button",{type:"button",className:"mobile-btn mobile-btn-secondary",onClick:()=>{Pn(y.id)},children:[i.jsx(qt,{size:14})," Artifact"]}),i.jsx("button",{type:"button",className:"mobile-btn mobile-btn-danger",onClick:()=>{y&&z(y.id)},children:i.jsx(Hr,{size:14})})]}),children:y&&i.jsxs("div",{className:"mobile-task-detail",children:[i.jsxs("div",{className:"mobile-task-detail-header",children:[i.jsx("span",{className:`mobile-task-status-badge status-${y.status}`,children:Ul[y.status]||y.status}),i.jsx("span",{className:`mobile-task-priority priority-${y.priority}`,children:y.priority})]}),i.jsx("h3",{className:"mobile-task-detail-title",children:y.title}),y.description&&i.jsx("p",{className:"mobile-task-detail-desc",children:y.description}),i.jsxs("div",{className:"mobile-task-detail-meta",children:[y.assignee&&i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Assignee"}),i.jsxs("span",{children:["@",y.assignee]})]}),y.dueDate&&i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Due"}),i.jsx("span",{children:new Date(y.dueDate).toLocaleDateString()})]}),y.timeSpent!=null&&i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Time spent"}),i.jsxs("span",{children:[Math.round(y.timeSpent/6e4),"min"]})]}),(Ye=y.dependencies)!=null&&Ye.length?i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Dependencies"}),i.jsx("span",{children:y.dependencies.length})]}):null,(It=y.comments)!=null&&It.length?i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Comments"}),i.jsx("span",{children:y.comments.length})]}):null,i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Created"}),i.jsx("span",{children:xn(y.createdAt)})]}),i.jsxs("div",{className:"mobile-task-detail-row",children:[i.jsx("span",{children:"Updated"}),i.jsx("span",{children:xn(y.updatedAt)})]})]})]})}),i.jsx(Bp,{open:N,onClose:()=>f(!1),onCreate:et,agents:Dt}),i.jsx(ct,{open:!!d,onClose:()=>{g(null),E(""),j(null)},title:(_==null?void 0:_.name)||"Artifact",actions:w.length>1?i.jsx("div",{className:"mobile-task-detail-actions",children:w.map((P,H)=>i.jsxs("button",{type:"button",className:"mobile-btn mobile-btn-secondary",style:{flex:1},onClick:()=>{S(!0),Promise.all([A.get(`/artifacts/${encodeURIComponent(P)}`),fetch(A.urlWithToken(`/artifacts/${encodeURIComponent(P)}/content`)).then(B=>B.text())]).then(([B,fe])=>{j(B),E(fe),S(!1)}).catch(()=>S(!1))},children:["Artifact ",H+1]},P))}):null,children:i.jsx("div",{className:"mobile-artifact-viewer",children:R?i.jsx("div",{className:"mobile-loading",children:i.jsx("p",{children:"Loading artifact…"})}):T?i.jsx("iframe",{srcDoc:T,className:"mobile-artifact-iframe",sandbox:"allow-scripts allow-forms allow-popups allow-same-origin",title:(_==null?void 0:_.name)||"Artifact",loading:"lazy"}):i.jsxs("div",{className:"mobile-empty",children:[i.jsx(qt,{size:32}),i.jsx("p",{className:"muted",children:"No artifact content available."})]})})})]})}function Up(e){var t,n;return((n=(t=e.settings)==null?void 0:t.data)==null?void 0:n.defaultAgent)||"odin"}function Bp({open:e,onClose:t,onCreate:n,agents:l}){const[r,s]=k.useState(""),[o,a]=k.useState(""),[u,m]=k.useState(""),[c,h]=k.useState("normal"),v=x=>{x.preventDefault(),r.trim()&&(n(r.trim(),o.trim(),u,c),s(""),a(""),m(""),h("normal"))};return i.jsx(Mt,{open:e,onClose:t,title:"New Task",actions:i.jsxs("button",{type:"submit",form:"new-task-form",className:"mobile-btn",style:{width:"100%"},children:[i.jsx(Ke,{size:14})," Create Task"]}),children:i.jsxs("form",{id:"new-task-form",onSubmit:v,className:"mobile-task-form",children:[i.jsx("label",{className:"mobile-field-label",children:"Title *"}),i.jsx("input",{className:"mobile-input",type:"text",placeholder:"Task title",value:r,onChange:x=>s(x.target.value),autoFocus:!0,required:!0}),i.jsx("label",{className:"mobile-field-label",children:"Description"}),i.jsx("textarea",{className:"mobile-input",rows:3,placeholder:"Optional description",value:o,onChange:x=>a(x.target.value)}),i.jsx("label",{className:"mobile-field-label",children:"Assignee"}),i.jsxs("select",{className:"mobile-input",value:u,onChange:x=>m(x.target.value),children:[i.jsx("option",{value:"",children:"Unassigned"}),l.map(x=>i.jsxs("option",{value:x.name,children:["@",x.name]},x.name))]}),i.jsx("label",{className:"mobile-field-label",children:"Priority"}),i.jsxs("select",{className:"mobile-input",value:c,onChange:x=>h(x.target.value),children:[i.jsx("option",{value:"low",children:"Low"}),i.jsx("option",{value:"normal",children:"Normal"}),i.jsx("option",{value:"high",children:"High"})]})]})})}const Vp=Za.lazy(()=>id(()=>import("./MobileSettings-Bxv62uPY.js"),__vite__mapDeps([0,1,2])).then(e=>({default:e.MobileSettings}))),Hp=Za.lazy(()=>id(()=>import("./MobileChat-DLWdv6tQ.js"),__vite__mapDeps([3,4,2])).then(e=>({default:e.MobileChat}))),Ua=[{id:"activity",label:"Activity",icon:pi},{id:"chat",label:"Chat",icon:fn},{id:"tasks",label:"Tasks",icon:br},{id:"settings",label:"Settings",icon:rd},{id:"more",label:"More",icon:Ym}];function Wp(e){const t=e.meta??{},n=typeof t.taskId=="string"?t.taskId:null,l=typeof t.slug=="string"?t.slug:null,r=typeof t.agent=="string"?t.agent:null;if(n)return{id:"task-detail",taskId:n};if(l)return{id:"artifacts?-detail",slug:l};if(r)return{id:"agent-detail",name:r};const s=e.link??"";return s.startsWith("/artifacts?/")?{id:"artifacts?-detail",slug:decodeURIComponent(s.slice(12))}:s.startsWith("/tasks/")?{id:"task-detail",taskId:decodeURIComponent(s.slice(7))}:s.startsWith("/agents/")?{id:"agent-detail",name:decodeURIComponent(s.slice(8))}:null}function Zp(){const[e,t]=k.useState("activity"),[n,l]=k.useState([]),[r,s]=k.useState(!1),[o,a]=k.useState(!1),[u,m]=k.useState(null),[c,h]=k.useState(null),[v,x]=k.useState(null),[y,p]=k.useState(null),[N,f]=k.useState(!0),[d,g]=k.useState(0);k.useMemo(()=>n[n.length-1]??{id:e},[e,n]);const w=k.useCallback(S=>{l(L=>[...L,S])},[]),b=k.useCallback(()=>{l(S=>S.slice(0,-1))},[]),T=k.useCallback(S=>{l([]),t(S)},[]),E=k.useCallback(async()=>{var S;try{const L=await A.get("/snapshot");h(L),(S=L.settings)!=null&&S.data&&x(L.settings.data),p(null)}catch(L){throw p(L.message||"Dashboard server unreachable."),L}},[]);k.useEffect(()=>{let S=!1;return Promise.all([A.get("/snapshot").catch(()=>null),A.get("/settings").catch(()=>null),A.probeAuthStatus().catch(()=>null)]).then(([L,D])=>{var ee;if(S)return;const F=(D==null?void 0:D.data)??((ee=L==null?void 0:L.settings)==null?void 0:ee.data)??null;L&&h(L),F&&x(F),p(!L&&!F?"Dashboard server unreachable.":null)}).catch(L=>{S||p(L.message||"Dashboard server unreachable.")}).finally(()=>{S||f(!1)}),()=>{S=!0}},[]),k.useEffect(()=>{v!=null&&v.theme&&(za(v.theme),_a(v.theme))},[v==null?void 0:v.theme]),k.useEffect(()=>{var D;if(((D=v==null?void 0:v.theme)==null?void 0:D.mode)!=="system")return;const S=window.matchMedia("(prefers-color-scheme: light)"),L=()=>{v!=null&&v.theme&&(za(v.theme),_a(v.theme))};return S.addEventListener("change",L),()=>S.removeEventListener("change",L)},[v==null?void 0:v.theme]),k.useEffect(()=>{const S=()=>{g(D=>D+1),E().catch(()=>{})},L=()=>{document.visibilityState==="visible"&&S()};return window.addEventListener("online",S),window.addEventListener("pageshow",S),document.addEventListener("visibilitychange",L),()=>{window.removeEventListener("online",S),window.removeEventListener("pageshow",S),document.removeEventListener("visibilitychange",L)}},[E]),k.useEffect(()=>{const S=new sd,L=S.on(D=>{if(D.type==="snapshot"&&"data"in D&&D.data)h(F=>({...F??{},...D.data}));else if(D.type==="change")E().catch(()=>{});else if(D.type==="tasks:change"){const F=D.task;h(ee=>{if(!ee)return ee;const we=(ee.tasks||[]).map(z=>z.id===F.id?F:z),Rt=we.some(z=>z.id===F.id);return{...ee,tasks:Rt?we:[F,...we]}})}else D.type==="tasks:delete"?h(F=>F&&{...F,tasks:(F.tasks||[]).filter(ee=>ee.id!==D.id)}):D.type==="settings:change"?D.settings&&x(D.settings):D.type==="project:change"||D.type==="agents:change"||D.type==="schedules:change"||D.type==="artifact:change"?E().catch(()=>{}):(D.type==="agent:status"||D.type==="agent:restarted")&&h(F=>{if(!F)return F;const ee=(F.agents||[]).map(we=>we.name===D.agent.name?D.agent:we);return{...F,agents:ee}})});return()=>{L(),S.close()}},[E,d]);const _=k.useCallback(S=>{(S==="activity"||S==="chat"||S==="tasks"||S==="settings"||S==="more")&&T(S)},[T]),j=k.useCallback((S,L,D)=>{if(S==="notification"){const F=Wp({link:L||null,meta:D??null});F&&w(F);return}if(S==="task"&&L){w({id:"task-detail",taskId:L});return}if(S==="artifacts?"&&L){w({id:"artifacts?-detail",slug:L});return}if(S==="agent"&&L){w({id:"agent-detail",name:L});return}if(S==="project"){T("activity");return}S==="setting"&&T("settings")},[T,w]),R=()=>{if(!c||!v)return null;if(n.length>0){const S=n[n.length-1];switch(S.id){case"artifacts?":return i.jsx(jp,{snapshot:c,onBack:b,onOpenArtifact:L=>w({id:"artifacts?-detail",slug:L})});case"agents":return i.jsx(Ra,{snapshot:c,onBack:b,onOpenAgent:L=>w({id:"agent-detail",name:L}),onRefresh:E});case"skills":return i.jsx(Ap,{snapshot:c,onBack:b});case"mods":return i.jsx(vp,{snapshot:c,onBack:b});case"schedules":return i.jsx(Ep,{snapshot:c,onBack:b});case"history":return i.jsx(hp,{onBack:b});case"config":return i.jsx(pp,{onBack:b});case"artifacts?-detail":return i.jsx(xp,{slug:S.slug,onBack:b});case"agent-detail":return i.jsx(Ra,{snapshot:c,onBack:b,onOpenAgent:()=>{},onRefresh:E,selectedAgent:S.name});case"task-detail":return i.jsx(Fa,{snapshot:c,onRefresh:E,selectedTaskId:S.taskId,onCloseDetail:b,onOpenChat:L=>{m(L),T("chat")}});default:return null}}switch(e){case"activity":return i.jsx(dp,{snapshot:c,onRefresh:E});case"chat":return i.jsx(k.Suspense,{fallback:i.jsx("div",{className:"mobile-loading",children:i.jsx(xs,{size:"lg"})}),children:i.jsx(Hp,{snapshot:c,settings:v,initialTaskId:u,onClearTaskId:()=>m(null)})});case"tasks":return i.jsx(Fa,{snapshot:c,onRefresh:E,onOpenChat:S=>{m(S),T("chat")}});case"settings":return i.jsx(k.Suspense,{fallback:i.jsx("div",{className:"mobile-loading",children:i.jsx(xs,{size:"lg"})}),children:i.jsx(Vp,{settings:v,snapshot:c,onRefresh:E})});case"more":return i.jsx(yp,{snapshot:c,onNavigate:S=>{(S==="artifacts?"||S==="agents"||S==="skills"||S==="mods"||S==="schedules"||S==="history"||S==="config")&&w({id:S})}});default:return null}};return N?i.jsxs("div",{className:"mobile-loading",children:[i.jsx(xs,{size:"lg"}),i.jsx("p",{children:"Loading Bizar…"})]}):y||!c||!v?i.jsxs("div",{className:"mobile-loading",children:[i.jsx("h2",{children:"Dashboard unavailable"}),i.jsx("p",{children:y||"Dashboard server unreachable."}),i.jsx("p",{className:"muted",children:"Make sure the Bizar dashboard server is running."})]}):i.jsxs(i.Fragment,{children:[i.jsxs(up,{activeTab:e,onTabChange:_,tabs:Ua,fullTabs:Ua,onExitSettings:()=>T("activity"),onSearch:()=>s(!0),children:[n.length>0&&i.jsx("button",{type:"button",className:"mobile-back-btn",onClick:b,"aria-label":"Go back",children:"← Back"}),R()]}),i.jsx(Dp,{open:r,onClose:()=>s(!1),onNavigate:j})]})}export{pi as A,Vr as B,Sa as C,Gm as D,_a as E,Km as F,za as G,vi as H,ld as I,rd as J,md as K,Ea as L,fn as M,Um as N,Zp as O,Ke as P,Kp as Q,ft as R,br as S,Hr as T,Gp as U,sd as W,Ln as X,id as _,Fm as a,A as b,V as c,Na as d,hi as e,En as f,yi as g,gl as h,xn as i,i as j,qt as k,Un as l,Yp as m,Za as n,ep as o,Zm as p,nd as q,k as r,Jm as s,qp as t,Cr as u,Ca as v,Wm as w,xs as x,Xp as y,Xm as z};
|