@ohmaseclaro/fleetwatch 0.1.3 → 0.1.6
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.
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
function $d(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const l in r)if(l!=="default"&&!(l in e)){const o=Object.getOwnPropertyDescriptor(r,l);o&&Object.defineProperty(e,l,o.get?o:{enumerable:!0,get:()=>r[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function Fd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tu={exports:{}},Tl={},nu={exports:{}},M={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var vr=Symbol.for("react.element"),Ud=Symbol.for("react.portal"),Dd=Symbol.for("react.fragment"),Ad=Symbol.for("react.strict_mode"),Bd=Symbol.for("react.profiler"),Wd=Symbol.for("react.provider"),Vd=Symbol.for("react.context"),Hd=Symbol.for("react.forward_ref"),Qd=Symbol.for("react.suspense"),bd=Symbol.for("react.memo"),Kd=Symbol.for("react.lazy"),Ei=Symbol.iterator;function Gd(e){return e===null||typeof e!="object"?null:(e=Ei&&e[Ei]||e["@@iterator"],typeof e=="function"?e:null)}var ru={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},lu=Object.assign,ou={};function Cn(e,t,n){this.props=e,this.context=t,this.refs=ou,this.updater=n||ru}Cn.prototype.isReactComponent={};Cn.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")};Cn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function su(){}su.prototype=Cn.prototype;function Cs(e,t,n){this.props=e,this.context=t,this.refs=ou,this.updater=n||ru}var Ns=Cs.prototype=new su;Ns.constructor=Cs;lu(Ns,Cn.prototype);Ns.isPureReactComponent=!0;var _i=Array.isArray,iu=Object.prototype.hasOwnProperty,Es={current:null},au={key:!0,ref:!0,__self:!0,__source:!0};function uu(e,t,n){var r,l={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)iu.call(t,r)&&!au.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1<a){for(var u=Array(a),d=0;d<a;d++)u[d]=arguments[d+2];l.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)l[r]===void 0&&(l[r]=a[r]);return{$$typeof:vr,type:e,key:o,ref:s,props:l,_owner:Es.current}}function Yd(e,t){return{$$typeof:vr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function _s(e){return typeof e=="object"&&e!==null&&e.$$typeof===vr}function Xd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Pi=/\/+/g;function Gl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Xd(""+e.key):t.toString(36)}function Qr(e,t,n,r,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case vr:case Ud:s=!0}}if(s)return s=e,l=l(s),e=r===""?"."+Gl(s,0):r,_i(l)?(n="",e!=null&&(n=e.replace(Pi,"$&/")+"/"),Qr(l,t,n,"",function(d){return d})):l!=null&&(_s(l)&&(l=Yd(l,n+(!l.key||s&&s.key===l.key?"":(""+l.key).replace(Pi,"$&/")+"/")+e)),t.push(l)),1;if(s=0,r=r===""?".":r+":",_i(e))for(var a=0;a<e.length;a++){o=e[a];var u=r+Gl(o,a);s+=Qr(o,t,n,u,l)}else if(u=Gd(e),typeof u=="function")for(e=u.call(e),a=0;!(o=e.next()).done;)o=o.value,u=r+Gl(o,a++),s+=Qr(o,t,n,u,l);else if(o==="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 s}function Cr(e,t,n){if(e==null)return e;var r=[],l=0;return Qr(e,r,"","",function(o){return t.call(n,o,l++)}),r}function qd(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 pe={current:null},br={transition:null},Zd={ReactCurrentDispatcher:pe,ReactCurrentBatchConfig:br,ReactCurrentOwner:Es};function cu(){throw Error("act(...) is not supported in production builds of React.")}M.Children={map:Cr,forEach:function(e,t,n){Cr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Cr(e,function(){t++}),t},toArray:function(e){return Cr(e,function(t){return t})||[]},only:function(e){if(!_s(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};M.Component=Cn;M.Fragment=Dd;M.Profiler=Bd;M.PureComponent=Cs;M.StrictMode=Ad;M.Suspense=Qd;M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zd;M.act=cu;M.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=lu({},e.props),l=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Es.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)iu.call(t,u)&&!au.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){a=Array(u);for(var d=0;d<u;d++)a[d]=arguments[d+2];r.children=a}return{$$typeof:vr,type:e.type,key:l,ref:o,props:r,_owner:s}};M.createContext=function(e){return e={$$typeof:Vd,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Wd,_context:e},e.Consumer=e};M.createElement=uu;M.createFactory=function(e){var t=uu.bind(null,e);return t.type=e,t};M.createRef=function(){return{current:null}};M.forwardRef=function(e){return{$$typeof:Hd,render:e}};M.isValidElement=_s;M.lazy=function(e){return{$$typeof:Kd,_payload:{_status:-1,_result:e},_init:qd}};M.memo=function(e,t){return{$$typeof:bd,type:e,compare:t===void 0?null:t}};M.startTransition=function(e){var t=br.transition;br.transition={};try{e()}finally{br.transition=t}};M.unstable_act=cu;M.useCallback=function(e,t){return pe.current.useCallback(e,t)};M.useContext=function(e){return pe.current.useContext(e)};M.useDebugValue=function(){};M.useDeferredValue=function(e){return pe.current.useDeferredValue(e)};M.useEffect=function(e,t){return pe.current.useEffect(e,t)};M.useId=function(){return pe.current.useId()};M.useImperativeHandle=function(e,t,n){return pe.current.useImperativeHandle(e,t,n)};M.useInsertionEffect=function(e,t){return pe.current.useInsertionEffect(e,t)};M.useLayoutEffect=function(e,t){return pe.current.useLayoutEffect(e,t)};M.useMemo=function(e,t){return pe.current.useMemo(e,t)};M.useReducer=function(e,t,n){return pe.current.useReducer(e,t,n)};M.useRef=function(e){return pe.current.useRef(e)};M.useState=function(e){return pe.current.useState(e)};M.useSyncExternalStore=function(e,t,n){return pe.current.useSyncExternalStore(e,t,n)};M.useTransition=function(){return pe.current.useTransition()};M.version="18.3.1";nu.exports=M;var g=nu.exports;const qt=Fd(g),Jd=$d({__proto__:null,default:qt},[g]);/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var ef=g,tf=Symbol.for("react.element"),nf=Symbol.for("react.fragment"),rf=Object.prototype.hasOwnProperty,lf=ef.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,of={key:!0,ref:!0,__self:!0,__source:!0};function du(e,t,n){var r,l={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)rf.call(t,r)&&!of.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:tf,type:e,key:o,ref:s,props:l,_owner:lf.current}}Tl.Fragment=nf;Tl.jsx=du;Tl.jsxs=du;tu.exports=Tl;var i=tu.exports,No={},fu={exports:{}},Ne={},pu={exports:{}},hu={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(P,R){var I=P.length;P.push(R);e:for(;0<I;){var K=I-1>>>1,ee=P[K];if(0<l(ee,R))P[K]=R,P[I]=ee,I=K;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var R=P[0],I=P.pop();if(I!==R){P[0]=I;e:for(var K=0,ee=P.length,Sr=ee>>>1;K<Sr;){var Tt=2*(K+1)-1,Kl=P[Tt],Rt=Tt+1,jr=P[Rt];if(0>l(Kl,I))Rt<ee&&0>l(jr,Kl)?(P[K]=jr,P[Rt]=I,K=Rt):(P[K]=Kl,P[Tt]=I,K=Tt);else if(Rt<ee&&0>l(jr,I))P[K]=jr,P[Rt]=I,K=Rt;else break e}}return R}function l(P,R){var I=P.sortIndex-R.sortIndex;return I!==0?I:P.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var u=[],d=[],h=1,p=null,v=3,x=!1,w=!1,y=!1,j=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(P){for(var R=n(d);R!==null;){if(R.callback===null)r(d);else if(R.startTime<=P)r(d),R.sortIndex=R.expirationTime,t(u,R);else break;R=n(d)}}function k(P){if(y=!1,m(P),!w)if(n(u)!==null)w=!0,re(S);else{var R=n(d);R!==null&&be(k,R.startTime-P)}}function S(P,R){w=!1,y&&(y=!1,f(L),L=-1),x=!0;var I=v;try{for(m(R),p=n(u);p!==null&&(!(p.expirationTime>R)||P&&!we());){var K=p.callback;if(typeof K=="function"){p.callback=null,v=p.priorityLevel;var ee=K(p.expirationTime<=R);R=e.unstable_now(),typeof ee=="function"?p.callback=ee:p===n(u)&&r(u),m(R)}else r(u);p=n(u)}if(p!==null)var Sr=!0;else{var Tt=n(d);Tt!==null&&be(k,Tt.startTime-R),Sr=!1}return Sr}finally{p=null,v=I,x=!1}}var E=!1,N=null,L=-1,D=5,z=-1;function we(){return!(e.unstable_now()-z<D)}function lt(){if(N!==null){var P=e.unstable_now();z=P;var R=!0;try{R=N(!0,P)}finally{R?Pt():(E=!1,N=null)}}else E=!1}var Pt;if(typeof c=="function")Pt=function(){c(lt)};else if(typeof MessageChannel<"u"){var T=new MessageChannel,Lt=T.port2;T.port1.onmessage=lt,Pt=function(){Lt.postMessage(null)}}else Pt=function(){j(lt,0)};function re(P){N=P,E||(E=!0,Pt())}function be(P,R){L=j(function(){P(e.unstable_now())},R)}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(P){P.callback=null},e.unstable_continueExecution=function(){w||x||(w=!0,re(S))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(P){switch(v){case 1:case 2:case 3:var R=3;break;default:R=v}var I=v;v=R;try{return P()}finally{v=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,R){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var I=v;v=P;try{return R()}finally{v=I}},e.unstable_scheduleCallback=function(P,R,I){var K=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?K+I:K):I=K,P){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=I+ee,P={id:h++,callback:R,priorityLevel:P,startTime:I,expirationTime:ee,sortIndex:-1},I>K?(P.sortIndex=I,t(d,P),n(u)===null&&P===n(d)&&(y?(f(L),L=-1):y=!0,be(k,I-K))):(P.sortIndex=ee,t(u,P),w||x||(w=!0,re(S))),P},e.unstable_shouldYield=we,e.unstable_wrapCallback=function(P){var R=v;return function(){var I=v;v=R;try{return P.apply(this,arguments)}finally{v=I}}}})(hu);pu.exports=hu;var sf=pu.exports;/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var af=g,Ce=sf;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 mu=new Set,Xn={};function Ht(e,t){yn(e,t),yn(e+"Capture",t)}function yn(e,t){for(Xn[e]=t,e=0;e<t.length;e++)mu.add(t[e])}var Ze=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Eo=Object.prototype.hasOwnProperty,uf=/^[: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]*$/,Li={},Ti={};function cf(e){return Eo.call(Ti,e)?!0:Eo.call(Li,e)?!1:uf.test(e)?Ti[e]=!0:(Li[e]=!0,!1)}function df(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ff(e,t,n,r){if(t===null||typeof t>"u"||df(e,t,n,r))return!0;if(r)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 he(e,t,n,r,l,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){se[e]=new he(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];se[t]=new he(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){se[e]=new he(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){se[e]=new he(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){se[e]=new he(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){se[e]=new he(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){se[e]=new he(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){se[e]=new he(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){se[e]=new he(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ps=/[\-:]([a-z])/g;function Ls(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(Ps,Ls);se[t]=new he(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(Ps,Ls);se[t]=new he(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(Ps,Ls);se[t]=new he(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){se[e]=new he(e,1,!1,e.toLowerCase(),null,!1,!1)});se.xlinkHref=new he("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){se[e]=new he(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ts(e,t,n,r){var l=se.hasOwnProperty(t)?se[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ff(t,n,l,r)&&(n=null),r||l===null?cf(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var nt=af.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Nr=Symbol.for("react.element"),Zt=Symbol.for("react.portal"),Jt=Symbol.for("react.fragment"),Rs=Symbol.for("react.strict_mode"),_o=Symbol.for("react.profiler"),vu=Symbol.for("react.provider"),yu=Symbol.for("react.context"),zs=Symbol.for("react.forward_ref"),Po=Symbol.for("react.suspense"),Lo=Symbol.for("react.suspense_list"),Is=Symbol.for("react.memo"),st=Symbol.for("react.lazy"),gu=Symbol.for("react.offscreen"),Ri=Symbol.iterator;function Ln(e){return e===null||typeof e!="object"?null:(e=Ri&&e[Ri]||e["@@iterator"],typeof e=="function"?e:null)}var Q=Object.assign,Yl;function Fn(e){if(Yl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Yl=t&&t[1]||""}return`
|
|
34
|
-
`+Yl+e}var Xl=!1;function ql(e,t){if(!e||Xl)return"";Xl=!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(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var l=d.stack.split(`
|
|
35
|
-
`),o=r.stack.split(`
|
|
36
|
-
`),s=l.length-1,a=o.length-1;1<=s&&0<=a&&l[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(l[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||l[s]!==o[a]){var u=`
|
|
37
|
-
`+l[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=a);break}}}finally{Xl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fn(e):""}function pf(e){switch(e.tag){case 5:return Fn(e.type);case 16:return Fn("Lazy");case 13:return Fn("Suspense");case 19:return Fn("SuspenseList");case 0:case 2:case 15:return e=ql(e.type,!1),e;case 11:return e=ql(e.type.render,!1),e;case 1:return e=ql(e.type,!0),e;default:return""}}function To(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 Jt:return"Fragment";case Zt:return"Portal";case _o:return"Profiler";case Rs:return"StrictMode";case Po:return"Suspense";case Lo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case yu:return(e.displayName||"Context")+".Consumer";case vu:return(e._context.displayName||"Context")+".Provider";case zs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Is:return t=e.displayName||null,t!==null?t:To(e.type)||"Memo";case st:t=e._payload,e=e._init;try{return To(e(t))}catch{}}return null}function hf(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 To(t);case 8:return t===Rs?"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 St(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mf(e){var t=xu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Er(e){e._valueTracker||(e._valueTracker=mf(e))}function wu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=xu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ol(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 Ro(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function zi(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=St(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ku(e,t){t=t.checked,t!=null&&Ts(e,"checked",t,!1)}function zo(e,t){ku(e,t);var n=St(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Io(e,t.type,n):t.hasOwnProperty("defaultValue")&&Io(e,t.type,St(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ii(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="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 Io(e,t,n){(t!=="number"||ol(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Un=Array.isArray;function dn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+St(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Mo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(C(91));return Q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Mi(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(Un(n)){if(1<n.length)throw Error(C(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:St(n)}}function Su(e,t){var n=St(t.value),r=St(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Oi(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ju(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 Oo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ju(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var _r,Cu=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(_r=_r||document.createElement("div"),_r.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=_r.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bn={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},vf=["Webkit","ms","Moz","O"];Object.keys(Bn).forEach(function(e){vf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bn[t]=Bn[e]})});function Nu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Bn.hasOwnProperty(e)&&Bn[e]?(""+t).trim():t+"px"}function Eu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Nu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var yf=Q({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 $o(e,t){if(t){if(yf[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 Fo(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 Uo=null;function Ms(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Do=null,fn=null,pn=null;function $i(e){if(e=xr(e)){if(typeof Do!="function")throw Error(C(280));var t=e.stateNode;t&&(t=Ol(t),Do(e.stateNode,e.type,t))}}function _u(e){fn?pn?pn.push(e):pn=[e]:fn=e}function Pu(){if(fn){var e=fn,t=pn;if(pn=fn=null,$i(e),t)for(e=0;e<t.length;e++)$i(t[e])}}function Lu(e,t){return e(t)}function Tu(){}var Zl=!1;function Ru(e,t,n){if(Zl)return e(t,n);Zl=!0;try{return Lu(e,t,n)}finally{Zl=!1,(fn!==null||pn!==null)&&(Tu(),Pu())}}function Zn(e,t){var n=e.stateNode;if(n===null)return null;var r=Ol(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(C(231,t,typeof n));return n}var Ao=!1;if(Ze)try{var Tn={};Object.defineProperty(Tn,"passive",{get:function(){Ao=!0}}),window.addEventListener("test",Tn,Tn),window.removeEventListener("test",Tn,Tn)}catch{Ao=!1}function gf(e,t,n,r,l,o,s,a,u){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(h){this.onError(h)}}var Wn=!1,sl=null,il=!1,Bo=null,xf={onError:function(e){Wn=!0,sl=e}};function wf(e,t,n,r,l,o,s,a,u){Wn=!1,sl=null,gf.apply(xf,arguments)}function kf(e,t,n,r,l,o,s,a,u){if(wf.apply(this,arguments),Wn){if(Wn){var d=sl;Wn=!1,sl=null}else throw Error(C(198));il||(il=!0,Bo=d)}}function Qt(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 zu(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 Fi(e){if(Qt(e)!==e)throw Error(C(188))}function Sf(e){var t=e.alternate;if(!t){if(t=Qt(e),t===null)throw Error(C(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var o=l.alternate;if(o===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===n)return Fi(l),e;if(o===r)return Fi(l),t;o=o.sibling}throw Error(C(188))}if(n.return!==r.return)n=l,r=o;else{for(var s=!1,a=l.child;a;){if(a===n){s=!0,n=l,r=o;break}if(a===r){s=!0,r=l,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=l;break}if(a===r){s=!0,r=o,n=l;break}a=a.sibling}if(!s)throw Error(C(189))}}if(n.alternate!==r)throw Error(C(190))}if(n.tag!==3)throw Error(C(188));return n.stateNode.current===n?e:t}function Iu(e){return e=Sf(e),e!==null?Mu(e):null}function Mu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Mu(e);if(t!==null)return t;e=e.sibling}return null}var Ou=Ce.unstable_scheduleCallback,Ui=Ce.unstable_cancelCallback,jf=Ce.unstable_shouldYield,Cf=Ce.unstable_requestPaint,G=Ce.unstable_now,Nf=Ce.unstable_getCurrentPriorityLevel,Os=Ce.unstable_ImmediatePriority,$u=Ce.unstable_UserBlockingPriority,al=Ce.unstable_NormalPriority,Ef=Ce.unstable_LowPriority,Fu=Ce.unstable_IdlePriority,Rl=null,He=null;function _f(e){if(He&&typeof He.onCommitFiberRoot=="function")try{He.onCommitFiberRoot(Rl,e,void 0,(e.current.flags&128)===128)}catch{}}var Ue=Math.clz32?Math.clz32:Tf,Pf=Math.log,Lf=Math.LN2;function Tf(e){return e>>>=0,e===0?32:31-(Pf(e)/Lf|0)|0}var Pr=64,Lr=4194304;function Dn(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 ul(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~l;a!==0?r=Dn(a):(o&=s,o!==0&&(r=Dn(o)))}else s=n&~l,s!==0?r=Dn(s):o!==0&&(r=Dn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ue(t),l=1<<n,r|=e[n],t&=~l;return r}function Rf(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 zf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Ue(o),a=1<<s,u=l[s];u===-1?(!(a&n)||a&r)&&(l[s]=Rf(a,t)):u<=t&&(e.expiredLanes|=a),o&=~a}}function Wo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Uu(){var e=Pr;return Pr<<=1,!(Pr&4194240)&&(Pr=64),e}function Jl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ue(t),e[t]=n}function If(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 r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-Ue(n),o=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~o}}function $s(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ue(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var $=0;function Du(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Au,Fs,Bu,Wu,Vu,Vo=!1,Tr=[],pt=null,ht=null,mt=null,Jn=new Map,er=new Map,at=[],Mf="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 Di(e,t){switch(e){case"focusin":case"focusout":pt=null;break;case"dragenter":case"dragleave":ht=null;break;case"mouseover":case"mouseout":mt=null;break;case"pointerover":case"pointerout":Jn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":er.delete(t.pointerId)}}function Rn(e,t,n,r,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[l]},t!==null&&(t=xr(t),t!==null&&Fs(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Of(e,t,n,r,l){switch(t){case"focusin":return pt=Rn(pt,e,t,n,r,l),!0;case"dragenter":return ht=Rn(ht,e,t,n,r,l),!0;case"mouseover":return mt=Rn(mt,e,t,n,r,l),!0;case"pointerover":var o=l.pointerId;return Jn.set(o,Rn(Jn.get(o)||null,e,t,n,r,l)),!0;case"gotpointercapture":return o=l.pointerId,er.set(o,Rn(er.get(o)||null,e,t,n,r,l)),!0}return!1}function Hu(e){var t=Mt(e.target);if(t!==null){var n=Qt(t);if(n!==null){if(t=n.tag,t===13){if(t=zu(n),t!==null){e.blockedOn=t,Vu(e.priority,function(){Bu(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 Kr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ho(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Uo=r,n.target.dispatchEvent(r),Uo=null}else return t=xr(n),t!==null&&Fs(t),e.blockedOn=n,!1;t.shift()}return!0}function Ai(e,t,n){Kr(e)&&n.delete(t)}function $f(){Vo=!1,pt!==null&&Kr(pt)&&(pt=null),ht!==null&&Kr(ht)&&(ht=null),mt!==null&&Kr(mt)&&(mt=null),Jn.forEach(Ai),er.forEach(Ai)}function zn(e,t){e.blockedOn===t&&(e.blockedOn=null,Vo||(Vo=!0,Ce.unstable_scheduleCallback(Ce.unstable_NormalPriority,$f)))}function tr(e){function t(l){return zn(l,e)}if(0<Tr.length){zn(Tr[0],e);for(var n=1;n<Tr.length;n++){var r=Tr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(pt!==null&&zn(pt,e),ht!==null&&zn(ht,e),mt!==null&&zn(mt,e),Jn.forEach(t),er.forEach(t),n=0;n<at.length;n++)r=at[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<at.length&&(n=at[0],n.blockedOn===null);)Hu(n),n.blockedOn===null&&at.shift()}var hn=nt.ReactCurrentBatchConfig,cl=!0;function Ff(e,t,n,r){var l=$,o=hn.transition;hn.transition=null;try{$=1,Us(e,t,n,r)}finally{$=l,hn.transition=o}}function Uf(e,t,n,r){var l=$,o=hn.transition;hn.transition=null;try{$=4,Us(e,t,n,r)}finally{$=l,hn.transition=o}}function Us(e,t,n,r){if(cl){var l=Ho(e,t,n,r);if(l===null)uo(e,t,r,dl,n),Di(e,r);else if(Of(l,e,t,n,r))r.stopPropagation();else if(Di(e,r),t&4&&-1<Mf.indexOf(e)){for(;l!==null;){var o=xr(l);if(o!==null&&Au(o),o=Ho(e,t,n,r),o===null&&uo(e,t,r,dl,n),o===l)break;l=o}l!==null&&r.stopPropagation()}else uo(e,t,r,null,n)}}var dl=null;function Ho(e,t,n,r){if(dl=null,e=Ms(r),e=Mt(e),e!==null)if(t=Qt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=zu(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 dl=e,null}function Qu(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(Nf()){case Os:return 1;case $u:return 4;case al:case Ef:return 16;case Fu:return 536870912;default:return 16}default:return 16}}var ct=null,Ds=null,Gr=null;function bu(){if(Gr)return Gr;var e,t=Ds,n=t.length,r,l="value"in ct?ct.value:ct.textContent,o=l.length;for(e=0;e<n&&t[e]===l[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===l[o-r];r++);return Gr=l.slice(e,1<r?1-r:void 0)}function Yr(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 Rr(){return!0}function Bi(){return!1}function Ee(e){function t(n,r,l,o,s){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Rr:Bi,this.isPropagationStopped=Bi,this}return Q(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=Rr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Rr)},persist:function(){},isPersistent:Rr}),t}var Nn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},As=Ee(Nn),gr=Q({},Nn,{view:0,detail:0}),Df=Ee(gr),eo,to,In,zl=Q({},gr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bs,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!==In&&(In&&e.type==="mousemove"?(eo=e.screenX-In.screenX,to=e.screenY-In.screenY):to=eo=0,In=e),eo)},movementY:function(e){return"movementY"in e?e.movementY:to}}),Wi=Ee(zl),Af=Q({},zl,{dataTransfer:0}),Bf=Ee(Af),Wf=Q({},gr,{relatedTarget:0}),no=Ee(Wf),Vf=Q({},Nn,{animationName:0,elapsedTime:0,pseudoElement:0}),Hf=Ee(Vf),Qf=Q({},Nn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bf=Ee(Qf),Kf=Q({},Nn,{data:0}),Vi=Ee(Kf),Gf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Yf={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"},Xf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xf[e])?!!t[e]:!1}function Bs(){return qf}var Zf=Q({},gr,{key:function(e){if(e.key){var t=Gf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Yr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Yf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bs,charCode:function(e){return e.type==="keypress"?Yr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Yr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Jf=Ee(Zf),ep=Q({},zl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hi=Ee(ep),tp=Q({},gr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bs}),np=Ee(tp),rp=Q({},Nn,{propertyName:0,elapsedTime:0,pseudoElement:0}),lp=Ee(rp),op=Q({},zl,{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}),sp=Ee(op),ip=[9,13,27,32],Ws=Ze&&"CompositionEvent"in window,Vn=null;Ze&&"documentMode"in document&&(Vn=document.documentMode);var ap=Ze&&"TextEvent"in window&&!Vn,Ku=Ze&&(!Ws||Vn&&8<Vn&&11>=Vn),Qi=" ",bi=!1;function Gu(e,t){switch(e){case"keyup":return ip.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var en=!1;function up(e,t){switch(e){case"compositionend":return Yu(t);case"keypress":return t.which!==32?null:(bi=!0,Qi);case"textInput":return e=t.data,e===Qi&&bi?null:e;default:return null}}function cp(e,t){if(en)return e==="compositionend"||!Ws&&Gu(e,t)?(e=bu(),Gr=Ds=ct=null,en=!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 Ku&&t.locale!=="ko"?null:t.data;default:return null}}var dp={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 Ki(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!dp[e.type]:t==="textarea"}function Xu(e,t,n,r){_u(r),t=fl(t,"onChange"),0<t.length&&(n=new As("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hn=null,nr=null;function fp(e){ic(e,0)}function Il(e){var t=rn(e);if(wu(t))return e}function pp(e,t){if(e==="change")return t}var qu=!1;if(Ze){var ro;if(Ze){var lo="oninput"in document;if(!lo){var Gi=document.createElement("div");Gi.setAttribute("oninput","return;"),lo=typeof Gi.oninput=="function"}ro=lo}else ro=!1;qu=ro&&(!document.documentMode||9<document.documentMode)}function Yi(){Hn&&(Hn.detachEvent("onpropertychange",Zu),nr=Hn=null)}function Zu(e){if(e.propertyName==="value"&&Il(nr)){var t=[];Xu(t,nr,e,Ms(e)),Ru(fp,t)}}function hp(e,t,n){e==="focusin"?(Yi(),Hn=t,nr=n,Hn.attachEvent("onpropertychange",Zu)):e==="focusout"&&Yi()}function mp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Il(nr)}function vp(e,t){if(e==="click")return Il(t)}function yp(e,t){if(e==="input"||e==="change")return Il(t)}function gp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ae=typeof Object.is=="function"?Object.is:gp;function rr(e,t){if(Ae(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!Eo.call(t,l)||!Ae(e[l],t[l]))return!1}return!0}function Xi(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qi(e,t){var n=Xi(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xi(n)}}function Ju(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ju(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ec(){for(var e=window,t=ol();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ol(e.document)}return t}function Vs(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 xp(e){var t=ec(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ju(n.ownerDocument.documentElement,n)){if(r!==null&&Vs(n)){if(t=r.start,e=r.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 l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=qi(n,o);var s=qi(n,r);l&&s&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 wp=Ze&&"documentMode"in document&&11>=document.documentMode,tn=null,Qo=null,Qn=null,bo=!1;function Zi(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bo||tn==null||tn!==ol(r)||(r=tn,"selectionStart"in r&&Vs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Qn&&rr(Qn,r)||(Qn=r,r=fl(Qo,"onSelect"),0<r.length&&(t=new As("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=tn)))}function zr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var nn={animationend:zr("Animation","AnimationEnd"),animationiteration:zr("Animation","AnimationIteration"),animationstart:zr("Animation","AnimationStart"),transitionend:zr("Transition","TransitionEnd")},oo={},tc={};Ze&&(tc=document.createElement("div").style,"AnimationEvent"in window||(delete nn.animationend.animation,delete nn.animationiteration.animation,delete nn.animationstart.animation),"TransitionEvent"in window||delete nn.transitionend.transition);function Ml(e){if(oo[e])return oo[e];if(!nn[e])return e;var t=nn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in tc)return oo[e]=t[n];return e}var nc=Ml("animationend"),rc=Ml("animationiteration"),lc=Ml("animationstart"),oc=Ml("transitionend"),sc=new Map,Ji="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 Ct(e,t){sc.set(e,t),Ht(t,[e])}for(var so=0;so<Ji.length;so++){var io=Ji[so],kp=io.toLowerCase(),Sp=io[0].toUpperCase()+io.slice(1);Ct(kp,"on"+Sp)}Ct(nc,"onAnimationEnd");Ct(rc,"onAnimationIteration");Ct(lc,"onAnimationStart");Ct("dblclick","onDoubleClick");Ct("focusin","onFocus");Ct("focusout","onBlur");Ct(oc,"onTransitionEnd");yn("onMouseEnter",["mouseout","mouseover"]);yn("onMouseLeave",["mouseout","mouseover"]);yn("onPointerEnter",["pointerout","pointerover"]);yn("onPointerLeave",["pointerout","pointerover"]);Ht("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ht("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ht("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ht("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ht("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ht("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var An="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(" "),jp=new Set("cancel close invalid load scroll toggle".split(" ").concat(An));function ea(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,kf(r,t,void 0,e),e.currentTarget=null}function ic(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],u=a.instance,d=a.currentTarget;if(a=a.listener,u!==o&&l.isPropagationStopped())break e;ea(l,a,d),o=u}else for(s=0;s<r.length;s++){if(a=r[s],u=a.instance,d=a.currentTarget,a=a.listener,u!==o&&l.isPropagationStopped())break e;ea(l,a,d),o=u}}}if(il)throw e=Bo,il=!1,Bo=null,e}function A(e,t){var n=t[qo];n===void 0&&(n=t[qo]=new Set);var r=e+"__bubble";n.has(r)||(ac(t,e,2,!1),n.add(r))}function ao(e,t,n){var r=0;t&&(r|=4),ac(n,e,r,t)}var Ir="_reactListening"+Math.random().toString(36).slice(2);function lr(e){if(!e[Ir]){e[Ir]=!0,mu.forEach(function(n){n!=="selectionchange"&&(jp.has(n)||ao(n,!1,e),ao(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ir]||(t[Ir]=!0,ao("selectionchange",!1,t))}}function ac(e,t,n,r){switch(Qu(t)){case 1:var l=Ff;break;case 4:l=Uf;break;default:l=Us}n=l.bind(null,t,n,e),l=void 0,!Ao||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function uo(e,t,n,r,l){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===l||a.nodeType===8&&a.parentNode===l)break;if(s===4)for(s=r.return;s!==null;){var u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===l||u.nodeType===8&&u.parentNode===l))return;s=s.return}for(;a!==null;){if(s=Mt(a),s===null)return;if(u=s.tag,u===5||u===6){r=o=s;continue e}a=a.parentNode}}r=r.return}Ru(function(){var d=o,h=Ms(n),p=[];e:{var v=sc.get(e);if(v!==void 0){var x=As,w=e;switch(e){case"keypress":if(Yr(n)===0)break e;case"keydown":case"keyup":x=Jf;break;case"focusin":w="focus",x=no;break;case"focusout":w="blur",x=no;break;case"beforeblur":case"afterblur":x=no;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=Wi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=Bf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=np;break;case nc:case rc:case lc:x=Hf;break;case oc:x=lp;break;case"scroll":x=Df;break;case"wheel":x=sp;break;case"copy":case"cut":case"paste":x=bf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=Hi}var y=(t&4)!==0,j=!y&&e==="scroll",f=y?v!==null?v+"Capture":null:v;y=[];for(var c=d,m;c!==null;){m=c;var k=m.stateNode;if(m.tag===5&&k!==null&&(m=k,f!==null&&(k=Zn(c,f),k!=null&&y.push(or(c,k,m)))),j)break;c=c.return}0<y.length&&(v=new x(v,w,null,n,h),p.push({event:v,listeners:y}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",v&&n!==Uo&&(w=n.relatedTarget||n.fromElement)&&(Mt(w)||w[Je]))break e;if((x||v)&&(v=h.window===h?h:(v=h.ownerDocument)?v.defaultView||v.parentWindow:window,x?(w=n.relatedTarget||n.toElement,x=d,w=w?Mt(w):null,w!==null&&(j=Qt(w),w!==j||w.tag!==5&&w.tag!==6)&&(w=null)):(x=null,w=d),x!==w)){if(y=Wi,k="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(y=Hi,k="onPointerLeave",f="onPointerEnter",c="pointer"),j=x==null?v:rn(x),m=w==null?v:rn(w),v=new y(k,c+"leave",x,n,h),v.target=j,v.relatedTarget=m,k=null,Mt(h)===d&&(y=new y(f,c+"enter",w,n,h),y.target=m,y.relatedTarget=j,k=y),j=k,x&&w)t:{for(y=x,f=w,c=0,m=y;m;m=bt(m))c++;for(m=0,k=f;k;k=bt(k))m++;for(;0<c-m;)y=bt(y),c--;for(;0<m-c;)f=bt(f),m--;for(;c--;){if(y===f||f!==null&&y===f.alternate)break t;y=bt(y),f=bt(f)}y=null}else y=null;x!==null&&ta(p,v,x,y,!1),w!==null&&j!==null&&ta(p,j,w,y,!0)}}e:{if(v=d?rn(d):window,x=v.nodeName&&v.nodeName.toLowerCase(),x==="select"||x==="input"&&v.type==="file")var S=pp;else if(Ki(v))if(qu)S=yp;else{S=mp;var E=hp}else(x=v.nodeName)&&x.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(S=vp);if(S&&(S=S(e,d))){Xu(p,S,n,h);break e}E&&E(e,v,d),e==="focusout"&&(E=v._wrapperState)&&E.controlled&&v.type==="number"&&Io(v,"number",v.value)}switch(E=d?rn(d):window,e){case"focusin":(Ki(E)||E.contentEditable==="true")&&(tn=E,Qo=d,Qn=null);break;case"focusout":Qn=Qo=tn=null;break;case"mousedown":bo=!0;break;case"contextmenu":case"mouseup":case"dragend":bo=!1,Zi(p,n,h);break;case"selectionchange":if(wp)break;case"keydown":case"keyup":Zi(p,n,h)}var N;if(Ws)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else en?Gu(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(Ku&&n.locale!=="ko"&&(en||L!=="onCompositionStart"?L==="onCompositionEnd"&&en&&(N=bu()):(ct=h,Ds="value"in ct?ct.value:ct.textContent,en=!0)),E=fl(d,L),0<E.length&&(L=new Vi(L,e,null,n,h),p.push({event:L,listeners:E}),N?L.data=N:(N=Yu(n),N!==null&&(L.data=N)))),(N=ap?up(e,n):cp(e,n))&&(d=fl(d,"onBeforeInput"),0<d.length&&(h=new Vi("onBeforeInput","beforeinput",null,n,h),p.push({event:h,listeners:d}),h.data=N))}ic(p,t)})}function or(e,t,n){return{instance:e,listener:t,currentTarget:n}}function fl(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;l.tag===5&&o!==null&&(l=o,o=Zn(e,n),o!=null&&r.unshift(or(e,o,l)),o=Zn(e,t),o!=null&&r.push(or(e,o,l))),e=e.return}return r}function bt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ta(e,t,n,r,l){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,u=a.alternate,d=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&d!==null&&(a=d,l?(u=Zn(n,o),u!=null&&s.unshift(or(n,u,a))):l||(u=Zn(n,o),u!=null&&s.push(or(n,u,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Cp=/\r\n?/g,Np=/\u0000|\uFFFD/g;function na(e){return(typeof e=="string"?e:""+e).replace(Cp,`
|
|
38
|
-
`).replace(Np,"")}function Mr(e,t,n){if(t=na(t),na(e)!==t&&n)throw Error(C(425))}function pl(){}var Ko=null,Go=null;function Yo(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 Xo=typeof setTimeout=="function"?setTimeout:void 0,Ep=typeof clearTimeout=="function"?clearTimeout:void 0,ra=typeof Promise=="function"?Promise:void 0,_p=typeof queueMicrotask=="function"?queueMicrotask:typeof ra<"u"?function(e){return ra.resolve(null).then(e).catch(Pp)}:Xo;function Pp(e){setTimeout(function(){throw e})}function co(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),tr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);tr(t)}function vt(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 la(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 En=Math.random().toString(36).slice(2),Ve="__reactFiber$"+En,sr="__reactProps$"+En,Je="__reactContainer$"+En,qo="__reactEvents$"+En,Lp="__reactListeners$"+En,Tp="__reactHandles$"+En;function Mt(e){var t=e[Ve];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Je]||n[Ve]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=la(e);e!==null;){if(n=e[Ve])return n;e=la(e)}return t}e=n,n=e.parentNode}return null}function xr(e){return e=e[Ve]||e[Je],!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 Ol(e){return e[sr]||null}var Zo=[],ln=-1;function Nt(e){return{current:e}}function B(e){0>ln||(e.current=Zo[ln],Zo[ln]=null,ln--)}function U(e,t){ln++,Zo[ln]=e.current,e.current=t}var jt={},ce=Nt(jt),ye=Nt(!1),Dt=jt;function gn(e,t){var n=e.type.contextTypes;if(!n)return jt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ge(e){return e=e.childContextTypes,e!=null}function hl(){B(ye),B(ce)}function oa(e,t,n){if(ce.current!==jt)throw Error(C(168));U(ce,t),U(ye,n)}function uc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(C(108,hf(e)||"Unknown",l));return Q({},n,r)}function ml(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jt,Dt=ce.current,U(ce,e),U(ye,ye.current),!0}function sa(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=uc(e,t,Dt),r.__reactInternalMemoizedMergedChildContext=e,B(ye),B(ce),U(ce,e)):B(ye),U(ye,n)}var Ge=null,$l=!1,fo=!1;function cc(e){Ge===null?Ge=[e]:Ge.push(e)}function Rp(e){$l=!0,cc(e)}function Et(){if(!fo&&Ge!==null){fo=!0;var e=0,t=$;try{var n=Ge;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ge=null,$l=!1}catch(l){throw Ge!==null&&(Ge=Ge.slice(e+1)),Ou(Os,Et),l}finally{$=t,fo=!1}}return null}var on=[],sn=0,vl=null,yl=0,Pe=[],Le=0,At=null,Ye=1,Xe="";function zt(e,t){on[sn++]=yl,on[sn++]=vl,vl=e,yl=t}function dc(e,t,n){Pe[Le++]=Ye,Pe[Le++]=Xe,Pe[Le++]=At,At=e;var r=Ye;e=Xe;var l=32-Ue(r)-1;r&=~(1<<l),n+=1;var o=32-Ue(t)+l;if(30<o){var s=l-l%5;o=(r&(1<<s)-1).toString(32),r>>=s,l-=s,Ye=1<<32-Ue(t)+l|n<<l|r,Xe=o+e}else Ye=1<<o|n<<l|r,Xe=e}function Hs(e){e.return!==null&&(zt(e,1),dc(e,1,0))}function Qs(e){for(;e===vl;)vl=on[--sn],on[sn]=null,yl=on[--sn],on[sn]=null;for(;e===At;)At=Pe[--Le],Pe[Le]=null,Xe=Pe[--Le],Pe[Le]=null,Ye=Pe[--Le],Pe[Le]=null}var je=null,Se=null,W=!1,Fe=null;function fc(e,t){var n=Te(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 ia(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,je=e,Se=vt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,je=e,Se=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=At!==null?{id:Ye,overflow:Xe}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Te(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,je=e,Se=null,!0):!1;default:return!1}}function Jo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function es(e){if(W){var t=Se;if(t){var n=t;if(!ia(e,t)){if(Jo(e))throw Error(C(418));t=vt(n.nextSibling);var r=je;t&&ia(e,t)?fc(r,n):(e.flags=e.flags&-4097|2,W=!1,je=e)}}else{if(Jo(e))throw Error(C(418));e.flags=e.flags&-4097|2,W=!1,je=e}}}function aa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;je=e}function Or(e){if(e!==je)return!1;if(!W)return aa(e),W=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Yo(e.type,e.memoizedProps)),t&&(t=Se)){if(Jo(e))throw pc(),Error(C(418));for(;t;)fc(e,t),t=vt(t.nextSibling)}if(aa(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){Se=vt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Se=null}}else Se=je?vt(e.stateNode.nextSibling):null;return!0}function pc(){for(var e=Se;e;)e=vt(e.nextSibling)}function xn(){Se=je=null,W=!1}function bs(e){Fe===null?Fe=[e]:Fe.push(e)}var zp=nt.ReactCurrentBatchConfig;function Mn(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 r=n.stateNode}if(!r)throw Error(C(147,e));var l=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=l.refs;s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(C(284));if(!n._owner)throw Error(C(290,e))}return e}function $r(e,t){throw e=Object.prototype.toString.call(t),Error(C(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ua(e){var t=e._init;return t(e._payload)}function hc(e){function t(f,c){if(e){var m=f.deletions;m===null?(f.deletions=[c],f.flags|=16):m.push(c)}}function n(f,c){if(!e)return null;for(;c!==null;)t(f,c),c=c.sibling;return null}function r(f,c){for(f=new Map;c!==null;)c.key!==null?f.set(c.key,c):f.set(c.index,c),c=c.sibling;return f}function l(f,c){return f=wt(f,c),f.index=0,f.sibling=null,f}function o(f,c,m){return f.index=m,e?(m=f.alternate,m!==null?(m=m.index,m<c?(f.flags|=2,c):m):(f.flags|=2,c)):(f.flags|=1048576,c)}function s(f){return e&&f.alternate===null&&(f.flags|=2),f}function a(f,c,m,k){return c===null||c.tag!==6?(c=xo(m,f.mode,k),c.return=f,c):(c=l(c,m),c.return=f,c)}function u(f,c,m,k){var S=m.type;return S===Jt?h(f,c,m.props.children,k,m.key):c!==null&&(c.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===st&&ua(S)===c.type)?(k=l(c,m.props),k.ref=Mn(f,c,m),k.return=f,k):(k=nl(m.type,m.key,m.props,null,f.mode,k),k.ref=Mn(f,c,m),k.return=f,k)}function d(f,c,m,k){return c===null||c.tag!==4||c.stateNode.containerInfo!==m.containerInfo||c.stateNode.implementation!==m.implementation?(c=wo(m,f.mode,k),c.return=f,c):(c=l(c,m.children||[]),c.return=f,c)}function h(f,c,m,k,S){return c===null||c.tag!==7?(c=Ut(m,f.mode,k,S),c.return=f,c):(c=l(c,m),c.return=f,c)}function p(f,c,m){if(typeof c=="string"&&c!==""||typeof c=="number")return c=xo(""+c,f.mode,m),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case Nr:return m=nl(c.type,c.key,c.props,null,f.mode,m),m.ref=Mn(f,null,c),m.return=f,m;case Zt:return c=wo(c,f.mode,m),c.return=f,c;case st:var k=c._init;return p(f,k(c._payload),m)}if(Un(c)||Ln(c))return c=Ut(c,f.mode,m,null),c.return=f,c;$r(f,c)}return null}function v(f,c,m,k){var S=c!==null?c.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return S!==null?null:a(f,c,""+m,k);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Nr:return m.key===S?u(f,c,m,k):null;case Zt:return m.key===S?d(f,c,m,k):null;case st:return S=m._init,v(f,c,S(m._payload),k)}if(Un(m)||Ln(m))return S!==null?null:h(f,c,m,k,null);$r(f,m)}return null}function x(f,c,m,k,S){if(typeof k=="string"&&k!==""||typeof k=="number")return f=f.get(m)||null,a(c,f,""+k,S);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Nr:return f=f.get(k.key===null?m:k.key)||null,u(c,f,k,S);case Zt:return f=f.get(k.key===null?m:k.key)||null,d(c,f,k,S);case st:var E=k._init;return x(f,c,m,E(k._payload),S)}if(Un(k)||Ln(k))return f=f.get(m)||null,h(c,f,k,S,null);$r(c,k)}return null}function w(f,c,m,k){for(var S=null,E=null,N=c,L=c=0,D=null;N!==null&&L<m.length;L++){N.index>L?(D=N,N=null):D=N.sibling;var z=v(f,N,m[L],k);if(z===null){N===null&&(N=D);break}e&&N&&z.alternate===null&&t(f,N),c=o(z,c,L),E===null?S=z:E.sibling=z,E=z,N=D}if(L===m.length)return n(f,N),W&&zt(f,L),S;if(N===null){for(;L<m.length;L++)N=p(f,m[L],k),N!==null&&(c=o(N,c,L),E===null?S=N:E.sibling=N,E=N);return W&&zt(f,L),S}for(N=r(f,N);L<m.length;L++)D=x(N,f,L,m[L],k),D!==null&&(e&&D.alternate!==null&&N.delete(D.key===null?L:D.key),c=o(D,c,L),E===null?S=D:E.sibling=D,E=D);return e&&N.forEach(function(we){return t(f,we)}),W&&zt(f,L),S}function y(f,c,m,k){var S=Ln(m);if(typeof S!="function")throw Error(C(150));if(m=S.call(m),m==null)throw Error(C(151));for(var E=S=null,N=c,L=c=0,D=null,z=m.next();N!==null&&!z.done;L++,z=m.next()){N.index>L?(D=N,N=null):D=N.sibling;var we=v(f,N,z.value,k);if(we===null){N===null&&(N=D);break}e&&N&&we.alternate===null&&t(f,N),c=o(we,c,L),E===null?S=we:E.sibling=we,E=we,N=D}if(z.done)return n(f,N),W&&zt(f,L),S;if(N===null){for(;!z.done;L++,z=m.next())z=p(f,z.value,k),z!==null&&(c=o(z,c,L),E===null?S=z:E.sibling=z,E=z);return W&&zt(f,L),S}for(N=r(f,N);!z.done;L++,z=m.next())z=x(N,f,L,z.value,k),z!==null&&(e&&z.alternate!==null&&N.delete(z.key===null?L:z.key),c=o(z,c,L),E===null?S=z:E.sibling=z,E=z);return e&&N.forEach(function(lt){return t(f,lt)}),W&&zt(f,L),S}function j(f,c,m,k){if(typeof m=="object"&&m!==null&&m.type===Jt&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Nr:e:{for(var S=m.key,E=c;E!==null;){if(E.key===S){if(S=m.type,S===Jt){if(E.tag===7){n(f,E.sibling),c=l(E,m.props.children),c.return=f,f=c;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===st&&ua(S)===E.type){n(f,E.sibling),c=l(E,m.props),c.ref=Mn(f,E,m),c.return=f,f=c;break e}n(f,E);break}else t(f,E);E=E.sibling}m.type===Jt?(c=Ut(m.props.children,f.mode,k,m.key),c.return=f,f=c):(k=nl(m.type,m.key,m.props,null,f.mode,k),k.ref=Mn(f,c,m),k.return=f,f=k)}return s(f);case Zt:e:{for(E=m.key;c!==null;){if(c.key===E)if(c.tag===4&&c.stateNode.containerInfo===m.containerInfo&&c.stateNode.implementation===m.implementation){n(f,c.sibling),c=l(c,m.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=wo(m,f.mode,k),c.return=f,f=c}return s(f);case st:return E=m._init,j(f,c,E(m._payload),k)}if(Un(m))return w(f,c,m,k);if(Ln(m))return y(f,c,m,k);$r(f,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,m),c.return=f,f=c):(n(f,c),c=xo(m,f.mode,k),c.return=f,f=c),s(f)):n(f,c)}return j}var wn=hc(!0),mc=hc(!1),gl=Nt(null),xl=null,an=null,Ks=null;function Gs(){Ks=an=xl=null}function Ys(e){var t=gl.current;B(gl),e._currentValue=t}function ts(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function mn(e,t){xl=e,Ks=an=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ve=!0),e.firstContext=null)}function ze(e){var t=e._currentValue;if(Ks!==e)if(e={context:e,memoizedValue:t,next:null},an===null){if(xl===null)throw Error(C(308));an=e,xl.dependencies={lanes:0,firstContext:e}}else an=an.next=e;return t}var Ot=null;function Xs(e){Ot===null?Ot=[e]:Ot.push(e)}function vc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Xs(t)):(n.next=l.next,l.next=n),t.interleaved=n,et(e,r)}function et(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 it=!1;function qs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function yc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function qe(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,O&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,et(e,n)}return l=r.interleaved,l===null?(t.next=t,Xs(r)):(t.next=l.next,l.next=t),r.interleaved=t,et(e,n)}function Xr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$s(e,n)}}function ca(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function wl(e,t,n,r){var l=e.updateQueue;it=!1;var o=l.firstBaseUpdate,s=l.lastBaseUpdate,a=l.shared.pending;if(a!==null){l.shared.pending=null;var u=a,d=u.next;u.next=null,s===null?o=d:s.next=d,s=u;var h=e.alternate;h!==null&&(h=h.updateQueue,a=h.lastBaseUpdate,a!==s&&(a===null?h.firstBaseUpdate=d:a.next=d,h.lastBaseUpdate=u))}if(o!==null){var p=l.baseState;s=0,h=d=u=null,a=o;do{var v=a.lane,x=a.eventTime;if((r&v)===v){h!==null&&(h=h.next={eventTime:x,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,y=a;switch(v=t,x=n,y.tag){case 1:if(w=y.payload,typeof w=="function"){p=w.call(x,p,v);break e}p=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=y.payload,v=typeof w=="function"?w.call(x,p,v):w,v==null)break e;p=Q({},p,v);break e;case 2:it=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,v=l.effects,v===null?l.effects=[a]:v.push(a))}else x={eventTime:x,lane:v,tag:a.tag,payload:a.payload,callback:a.callback,next:null},h===null?(d=h=x,u=p):h=h.next=x,s|=v;if(a=a.next,a===null){if(a=l.shared.pending,a===null)break;v=a,a=v.next,v.next=null,l.lastBaseUpdate=v,l.shared.pending=null}}while(!0);if(h===null&&(u=p),l.baseState=u,l.firstBaseUpdate=d,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do s|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Wt|=s,e.lanes=s,e.memoizedState=p}}function da(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(C(191,l));l.call(r)}}}var wr={},Qe=Nt(wr),ir=Nt(wr),ar=Nt(wr);function $t(e){if(e===wr)throw Error(C(174));return e}function Zs(e,t){switch(U(ar,t),U(ir,e),U(Qe,wr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Oo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Oo(t,e)}B(Qe),U(Qe,t)}function kn(){B(Qe),B(ir),B(ar)}function gc(e){$t(ar.current);var t=$t(Qe.current),n=Oo(t,e.type);t!==n&&(U(ir,e),U(Qe,n))}function Js(e){ir.current===e&&(B(Qe),B(ir))}var V=Nt(0);function kl(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 po=[];function ei(){for(var e=0;e<po.length;e++)po[e]._workInProgressVersionPrimary=null;po.length=0}var qr=nt.ReactCurrentDispatcher,ho=nt.ReactCurrentBatchConfig,Bt=0,H=null,Z=null,te=null,Sl=!1,bn=!1,ur=0,Ip=0;function ie(){throw Error(C(321))}function ti(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ae(e[n],t[n]))return!1;return!0}function ni(e,t,n,r,l,o){if(Bt=o,H=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qr.current=e===null||e.memoizedState===null?Fp:Up,e=n(r,l),bn){o=0;do{if(bn=!1,ur=0,25<=o)throw Error(C(301));o+=1,te=Z=null,t.updateQueue=null,qr.current=Dp,e=n(r,l)}while(bn)}if(qr.current=jl,t=Z!==null&&Z.next!==null,Bt=0,te=Z=H=null,Sl=!1,t)throw Error(C(300));return e}function ri(){var e=ur!==0;return ur=0,e}function We(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return te===null?H.memoizedState=te=e:te=te.next=e,te}function Ie(){if(Z===null){var e=H.alternate;e=e!==null?e.memoizedState:null}else e=Z.next;var t=te===null?H.memoizedState:te.next;if(t!==null)te=t,Z=e;else{if(e===null)throw Error(C(310));Z=e,e={memoizedState:Z.memoizedState,baseState:Z.baseState,baseQueue:Z.baseQueue,queue:Z.queue,next:null},te===null?H.memoizedState=te=e:te=te.next=e}return te}function cr(e,t){return typeof t=="function"?t(e):t}function mo(e){var t=Ie(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=Z,l=r.baseQueue,o=n.pending;if(o!==null){if(l!==null){var s=l.next;l.next=o.next,o.next=s}r.baseQueue=l=o,n.pending=null}if(l!==null){o=l.next,r=r.baseState;var a=s=null,u=null,d=o;do{var h=d.lane;if((Bt&h)===h)u!==null&&(u=u.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var p={lane:h,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};u===null?(a=u=p,s=r):u=u.next=p,H.lanes|=h,Wt|=h}d=d.next}while(d!==null&&d!==o);u===null?s=r:u.next=a,Ae(r,t.memoizedState)||(ve=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do o=l.lane,H.lanes|=o,Wt|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function vo(e){var t=Ie(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var s=l=l.next;do o=e(o,s.action),s=s.next;while(s!==l);Ae(o,t.memoizedState)||(ve=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function xc(){}function wc(e,t){var n=H,r=Ie(),l=t(),o=!Ae(r.memoizedState,l);if(o&&(r.memoizedState=l,ve=!0),r=r.queue,li(jc.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||te!==null&&te.memoizedState.tag&1){if(n.flags|=2048,dr(9,Sc.bind(null,n,r,l,t),void 0,null),ne===null)throw Error(C(349));Bt&30||kc(n,t,l)}return l}function kc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=H.updateQueue,t===null?(t={lastEffect:null,stores:null},H.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Sc(e,t,n,r){t.value=n,t.getSnapshot=r,Cc(t)&&Nc(e)}function jc(e,t,n){return n(function(){Cc(t)&&Nc(e)})}function Cc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ae(e,n)}catch{return!0}}function Nc(e){var t=et(e,1);t!==null&&De(t,e,1,-1)}function fa(e){var t=We();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:cr,lastRenderedState:e},t.queue=e,e=e.dispatch=$p.bind(null,H,e),[t.memoizedState,e]}function dr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=H.updateQueue,t===null?(t={lastEffect:null,stores:null},H.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ec(){return Ie().memoizedState}function Zr(e,t,n,r){var l=We();H.flags|=e,l.memoizedState=dr(1|t,n,void 0,r===void 0?null:r)}function Fl(e,t,n,r){var l=Ie();r=r===void 0?null:r;var o=void 0;if(Z!==null){var s=Z.memoizedState;if(o=s.destroy,r!==null&&ti(r,s.deps)){l.memoizedState=dr(t,n,o,r);return}}H.flags|=e,l.memoizedState=dr(1|t,n,o,r)}function pa(e,t){return Zr(8390656,8,e,t)}function li(e,t){return Fl(2048,8,e,t)}function _c(e,t){return Fl(4,2,e,t)}function Pc(e,t){return Fl(4,4,e,t)}function Lc(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 Tc(e,t,n){return n=n!=null?n.concat([e]):null,Fl(4,4,Lc.bind(null,t,e),n)}function oi(){}function Rc(e,t){var n=Ie();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ti(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function zc(e,t){var n=Ie();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ti(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ic(e,t,n){return Bt&21?(Ae(n,t)||(n=Uu(),H.lanes|=n,Wt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ve=!0),e.memoizedState=n)}function Mp(e,t){var n=$;$=n!==0&&4>n?n:4,e(!0);var r=ho.transition;ho.transition={};try{e(!1),t()}finally{$=n,ho.transition=r}}function Mc(){return Ie().memoizedState}function Op(e,t,n){var r=xt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Oc(e))$c(t,n);else if(n=vc(e,t,n,r),n!==null){var l=fe();De(n,e,r,l),Fc(n,t,r)}}function $p(e,t,n){var r=xt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Oc(e))$c(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(l.hasEagerState=!0,l.eagerState=a,Ae(a,s)){var u=t.interleaved;u===null?(l.next=l,Xs(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=vc(e,t,l,r),n!==null&&(l=fe(),De(n,e,r,l),Fc(n,t,r))}}function Oc(e){var t=e.alternate;return e===H||t!==null&&t===H}function $c(e,t){bn=Sl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$s(e,n)}}var jl={readContext:ze,useCallback:ie,useContext:ie,useEffect:ie,useImperativeHandle:ie,useInsertionEffect:ie,useLayoutEffect:ie,useMemo:ie,useReducer:ie,useRef:ie,useState:ie,useDebugValue:ie,useDeferredValue:ie,useTransition:ie,useMutableSource:ie,useSyncExternalStore:ie,useId:ie,unstable_isNewReconciler:!1},Fp={readContext:ze,useCallback:function(e,t){return We().memoizedState=[e,t===void 0?null:t],e},useContext:ze,useEffect:pa,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zr(4194308,4,Lc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zr(4,2,e,t)},useMemo:function(e,t){var n=We();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=We();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Op.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=We();return e={current:e},t.memoizedState=e},useState:fa,useDebugValue:oi,useDeferredValue:function(e){return We().memoizedState=e},useTransition:function(){var e=fa(!1),t=e[0];return e=Mp.bind(null,e[1]),We().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=H,l=We();if(W){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),ne===null)throw Error(C(349));Bt&30||kc(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,pa(jc.bind(null,r,o,e),[e]),r.flags|=2048,dr(9,Sc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=We(),t=ne.identifierPrefix;if(W){var n=Xe,r=Ye;n=(r&~(1<<32-Ue(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ur++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Ip++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Up={readContext:ze,useCallback:Rc,useContext:ze,useEffect:li,useImperativeHandle:Tc,useInsertionEffect:_c,useLayoutEffect:Pc,useMemo:zc,useReducer:mo,useRef:Ec,useState:function(){return mo(cr)},useDebugValue:oi,useDeferredValue:function(e){var t=Ie();return Ic(t,Z.memoizedState,e)},useTransition:function(){var e=mo(cr)[0],t=Ie().memoizedState;return[e,t]},useMutableSource:xc,useSyncExternalStore:wc,useId:Mc,unstable_isNewReconciler:!1},Dp={readContext:ze,useCallback:Rc,useContext:ze,useEffect:li,useImperativeHandle:Tc,useInsertionEffect:_c,useLayoutEffect:Pc,useMemo:zc,useReducer:vo,useRef:Ec,useState:function(){return vo(cr)},useDebugValue:oi,useDeferredValue:function(e){var t=Ie();return Z===null?t.memoizedState=e:Ic(t,Z.memoizedState,e)},useTransition:function(){var e=vo(cr)[0],t=Ie().memoizedState;return[e,t]},useMutableSource:xc,useSyncExternalStore:wc,useId:Mc,unstable_isNewReconciler:!1};function Oe(e,t){if(e&&e.defaultProps){t=Q({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ns(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Q({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ul={isMounted:function(e){return(e=e._reactInternals)?Qt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fe(),l=xt(e),o=qe(r,l);o.payload=t,n!=null&&(o.callback=n),t=yt(e,o,l),t!==null&&(De(t,e,l,r),Xr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fe(),l=xt(e),o=qe(r,l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=yt(e,o,l),t!==null&&(De(t,e,l,r),Xr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fe(),r=xt(e),l=qe(n,r);l.tag=2,t!=null&&(l.callback=t),t=yt(e,l,r),t!==null&&(De(t,e,r,n),Xr(t,e,r))}};function ha(e,t,n,r,l,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!rr(n,r)||!rr(l,o):!0}function Uc(e,t,n){var r=!1,l=jt,o=t.contextType;return typeof o=="object"&&o!==null?o=ze(o):(l=ge(t)?Dt:ce.current,r=t.contextTypes,o=(r=r!=null)?gn(e,l):jt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ul,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function ma(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ul.enqueueReplaceState(t,t.state,null)}function rs(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},qs(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=ze(o):(o=ge(t)?Dt:ce.current,l.context=gn(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(ns(e,t,o,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&Ul.enqueueReplaceState(l,l.state,null),wl(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Sn(e,t){try{var n="",r=t;do n+=pf(r),r=r.return;while(r);var l=n}catch(o){l=`
|
|
39
|
-
Error generating stack: `+o.message+`
|
|
40
|
-
`+o.stack}return{value:e,source:t,stack:l,digest:null}}function yo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ls(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ap=typeof WeakMap=="function"?WeakMap:Map;function Dc(e,t,n){n=qe(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Nl||(Nl=!0,hs=r),ls(e,t)},n}function Ac(e,t,n){n=qe(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){ls(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){ls(e,t),typeof r!="function"&&(gt===null?gt=new Set([this]):gt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function va(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ap;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=eh.bind(null,e,t,n),t.then(e,e))}function ya(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 ga(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,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=qe(-1,1),t.tag=2,yt(n,t,1))),n.lanes|=1),e)}var Bp=nt.ReactCurrentOwner,ve=!1;function de(e,t,n,r){t.child=e===null?mc(t,null,n,r):wn(t,e.child,n,r)}function xa(e,t,n,r,l){n=n.render;var o=t.ref;return mn(t,l),r=ni(e,t,n,r,o,l),n=ri(),e!==null&&!ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,tt(e,t,l)):(W&&n&&Hs(t),t.flags|=1,de(e,t,r,l),t.child)}function wa(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!pi(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Bc(e,t,o,r,l)):(e=nl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:rr,n(s,r)&&e.ref===t.ref)return tt(e,t,l)}return t.flags|=1,e=wt(o,r),e.ref=t.ref,e.return=t,t.child=e}function Bc(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(rr(o,r)&&e.ref===t.ref)if(ve=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(ve=!0);else return t.lanes=e.lanes,tt(e,t,l)}return os(e,t,n,r,l)}function Wc(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},U(cn,ke),ke|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,U(cn,ke),ke|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,U(cn,ke),ke|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,U(cn,ke),ke|=r;return de(e,t,l,n),t.child}function Vc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function os(e,t,n,r,l){var o=ge(n)?Dt:ce.current;return o=gn(t,o),mn(t,l),n=ni(e,t,n,r,o,l),r=ri(),e!==null&&!ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,tt(e,t,l)):(W&&r&&Hs(t),t.flags|=1,de(e,t,n,l),t.child)}function ka(e,t,n,r,l){if(ge(n)){var o=!0;ml(t)}else o=!1;if(mn(t,l),t.stateNode===null)Jr(e,t),Uc(t,n,r),rs(t,n,r,l),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var u=s.context,d=n.contextType;typeof d=="object"&&d!==null?d=ze(d):(d=ge(n)?Dt:ce.current,d=gn(t,d));var h=n.getDerivedStateFromProps,p=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||u!==d)&&ma(t,s,r,d),it=!1;var v=t.memoizedState;s.state=v,wl(t,r,s,l),u=t.memoizedState,a!==r||v!==u||ye.current||it?(typeof h=="function"&&(ns(t,n,h,r),u=t.memoizedState),(a=it||ha(t,n,a,r,v,u,d))?(p||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),s.props=r,s.state=u,s.context=d,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,yc(e,t),a=t.memoizedProps,d=t.type===t.elementType?a:Oe(t.type,a),s.props=d,p=t.pendingProps,v=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=ze(u):(u=ge(n)?Dt:ce.current,u=gn(t,u));var x=n.getDerivedStateFromProps;(h=typeof x=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==p||v!==u)&&ma(t,s,r,u),it=!1,v=t.memoizedState,s.state=v,wl(t,r,s,l);var w=t.memoizedState;a!==p||v!==w||ye.current||it?(typeof x=="function"&&(ns(t,n,x,r),w=t.memoizedState),(d=it||ha(t,n,d,r,v,w,u)||!1)?(h||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,w,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,w,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),s.props=r,s.state=w,s.context=u,r=d):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),r=!1)}return ss(e,t,n,r,o,l)}function ss(e,t,n,r,l,o){Vc(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return l&&sa(t,n,!1),tt(e,t,o);r=t.stateNode,Bp.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=wn(t,e.child,null,o),t.child=wn(t,null,a,o)):de(e,t,a,o),t.memoizedState=r.state,l&&sa(t,n,!0),t.child}function Hc(e){var t=e.stateNode;t.pendingContext?oa(e,t.pendingContext,t.pendingContext!==t.context):t.context&&oa(e,t.context,!1),Zs(e,t.containerInfo)}function Sa(e,t,n,r,l){return xn(),bs(l),t.flags|=256,de(e,t,n,r),t.child}var is={dehydrated:null,treeContext:null,retryLane:0};function as(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qc(e,t,n){var r=t.pendingProps,l=V.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(l&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),U(V,l&1),e===null)return es(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):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Bl(s,r,0,null),e=Ut(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=as(n),t.memoizedState=is,e):si(t,s));if(l=e.memoizedState,l!==null&&(a=l.dehydrated,a!==null))return Wp(e,t,s,r,a,l,n);if(o){o=r.fallback,s=t.mode,l=e.child,a=l.sibling;var u={mode:"hidden",children:r.children};return!(s&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=wt(l,u),r.subtreeFlags=l.subtreeFlags&14680064),a!==null?o=wt(a,o):(o=Ut(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?as(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=is,r}return o=e.child,e=o.sibling,r=wt(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function si(e,t){return t=Bl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Fr(e,t,n,r){return r!==null&&bs(r),wn(t,e.child,null,n),e=si(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Wp(e,t,n,r,l,o,s){if(n)return t.flags&256?(t.flags&=-257,r=yo(Error(C(422))),Fr(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=Bl({mode:"visible",children:r.children},l,0,null),o=Ut(o,l,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&wn(t,e.child,null,s),t.child.memoizedState=as(s),t.memoizedState=is,o);if(!(t.mode&1))return Fr(e,t,s,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(C(419)),r=yo(o,r,void 0),Fr(e,t,s,r)}if(a=(s&e.childLanes)!==0,ve||a){if(r=ne,r!==null){switch(s&-s){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|s)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,et(e,l),De(r,e,l,-1))}return fi(),r=yo(Error(C(421))),Fr(e,t,s,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=th.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,Se=vt(l.nextSibling),je=t,W=!0,Fe=null,e!==null&&(Pe[Le++]=Ye,Pe[Le++]=Xe,Pe[Le++]=At,Ye=e.id,Xe=e.overflow,At=t),t=si(t,r.children),t.flags|=4096,t)}function ja(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ts(e.return,t,n)}function go(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function bc(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(de(e,t,r.children,n),r=V.current,r&2)r=r&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&&ja(e,n,t);else if(e.tag===19)ja(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}r&=1}if(U(V,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&kl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),go(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&kl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}go(t,!0,n,null,o);break;case"together":go(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Jr(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wt|=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=wt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=wt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Vp(e,t,n){switch(t.tag){case 3:Hc(t),xn();break;case 5:gc(t);break;case 1:ge(t.type)&&ml(t);break;case 4:Zs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;U(gl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(U(V,V.current&1),t.flags|=128,null):n&t.child.childLanes?Qc(e,t,n):(U(V,V.current&1),e=tt(e,t,n),e!==null?e.sibling:null);U(V,V.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return bc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),U(V,V.current),r)break;return null;case 22:case 23:return t.lanes=0,Wc(e,t,n)}return tt(e,t,n)}var Kc,us,Gc,Yc;Kc=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}};us=function(){};Gc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,$t(Qe.current);var o=null;switch(n){case"input":l=Ro(e,l),r=Ro(e,r),o=[];break;case"select":l=Q({},l,{value:void 0}),r=Q({},r,{value:void 0}),o=[];break;case"textarea":l=Mo(e,l),r=Mo(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=pl)}$o(n,r);var s;n=null;for(d in l)if(!r.hasOwnProperty(d)&&l.hasOwnProperty(d)&&l[d]!=null)if(d==="style"){var a=l[d];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Xn.hasOwnProperty(d)?o||(o=[]):(o=o||[]).push(d,null));for(d in r){var u=r[d];if(a=l?.[d],r.hasOwnProperty(d)&&u!==a&&(u!=null||a!=null))if(d==="style")if(a){for(s in a)!a.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&a[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(o||(o=[]),o.push(d,n)),n=u;else d==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(o=o||[]).push(d,u)):d==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(d,""+u):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Xn.hasOwnProperty(d)?(u!=null&&d==="onScroll"&&A("scroll",e),o||a===u||(o=[])):(o=o||[]).push(d,u))}n&&(o=o||[]).push("style",n);var d=o;(t.updateQueue=d)&&(t.flags|=4)}};Yc=function(e,t,n,r){n!==r&&(t.flags|=4)};function On(e,t){if(!W)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 r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ae(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Hp(e,t,n){var r=t.pendingProps;switch(Qs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ae(t),null;case 1:return ge(t.type)&&hl(),ae(t),null;case 3:return r=t.stateNode,kn(),B(ye),B(ce),ei(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Or(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Fe!==null&&(ys(Fe),Fe=null))),us(e,t),ae(t),null;case 5:Js(t);var l=$t(ar.current);if(n=t.type,e!==null&&t.stateNode!=null)Gc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(C(166));return ae(t),null}if(e=$t(Qe.current),Or(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ve]=t,r[sr]=o,e=(t.mode&1)!==0,n){case"dialog":A("cancel",r),A("close",r);break;case"iframe":case"object":case"embed":A("load",r);break;case"video":case"audio":for(l=0;l<An.length;l++)A(An[l],r);break;case"source":A("error",r);break;case"img":case"image":case"link":A("error",r),A("load",r);break;case"details":A("toggle",r);break;case"input":zi(r,o),A("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},A("invalid",r);break;case"textarea":Mi(r,o),A("invalid",r)}$o(n,o),l=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&Mr(r.textContent,a,e),l=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Mr(r.textContent,a,e),l=["children",""+a]):Xn.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&A("scroll",r)}switch(n){case"input":Er(r),Ii(r,o,!0);break;case"textarea":Er(r),Oi(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=pl)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ju(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ve]=t,e[sr]=r,Kc(e,t,!1,!1),t.stateNode=e;e:{switch(s=Fo(n,r),n){case"dialog":A("cancel",e),A("close",e),l=r;break;case"iframe":case"object":case"embed":A("load",e),l=r;break;case"video":case"audio":for(l=0;l<An.length;l++)A(An[l],e);l=r;break;case"source":A("error",e),l=r;break;case"img":case"image":case"link":A("error",e),A("load",e),l=r;break;case"details":A("toggle",e),l=r;break;case"input":zi(e,r),l=Ro(e,r),A("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=Q({},r,{value:void 0}),A("invalid",e);break;case"textarea":Mi(e,r),l=Mo(e,r),A("invalid",e);break;default:l=r}$o(n,l),a=l;for(o in a)if(a.hasOwnProperty(o)){var u=a[o];o==="style"?Eu(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Cu(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&qn(e,u):typeof u=="number"&&qn(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Xn.hasOwnProperty(o)?u!=null&&o==="onScroll"&&A("scroll",e):u!=null&&Ts(e,o,u,s))}switch(n){case"input":Er(e),Ii(e,r,!1);break;case"textarea":Er(e),Oi(e);break;case"option":r.value!=null&&e.setAttribute("value",""+St(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?dn(e,!!r.multiple,o,!1):r.defaultValue!=null&&dn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=pl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ae(t),null;case 6:if(e&&t.stateNode!=null)Yc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(C(166));if(n=$t(ar.current),$t(Qe.current),Or(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ve]=t,(o=r.nodeValue!==n)&&(e=je,e!==null))switch(e.tag){case 3:Mr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Mr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ve]=t,t.stateNode=r}return ae(t),null;case 13:if(B(V),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(W&&Se!==null&&t.mode&1&&!(t.flags&128))pc(),xn(),t.flags|=98560,o=!1;else if(o=Or(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(C(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(C(317));o[Ve]=t}else xn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ae(t),o=!1}else Fe!==null&&(ys(Fe),Fe=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||V.current&1?J===0&&(J=3):fi())),t.updateQueue!==null&&(t.flags|=4),ae(t),null);case 4:return kn(),us(e,t),e===null&&lr(t.stateNode.containerInfo),ae(t),null;case 10:return Ys(t.type._context),ae(t),null;case 17:return ge(t.type)&&hl(),ae(t),null;case 19:if(B(V),o=t.memoizedState,o===null)return ae(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)On(o,!1);else{if(J!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=kl(e),s!==null){for(t.flags|=128,On(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return U(V,V.current&1|2),t.child}e=e.sibling}o.tail!==null&&G()>jn&&(t.flags|=128,r=!0,On(o,!1),t.lanes=4194304)}else{if(!r)if(e=kl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),On(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!W)return ae(t),null}else 2*G()-o.renderingStartTime>jn&&n!==1073741824&&(t.flags|=128,r=!0,On(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=G(),t.sibling=null,n=V.current,U(V,r?n&1|2:n&1),t):(ae(t),null);case 22:case 23:return di(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ke&1073741824&&(ae(t),t.subtreeFlags&6&&(t.flags|=8192)):ae(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function Qp(e,t){switch(Qs(t),t.tag){case 1:return ge(t.type)&&hl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kn(),B(ye),B(ce),ei(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Js(t),null;case 13:if(B(V),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));xn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(V),null;case 4:return kn(),null;case 10:return Ys(t.type._context),null;case 22:case 23:return di(),null;case 24:return null;default:return null}}var Ur=!1,ue=!1,bp=typeof WeakSet=="function"?WeakSet:Set,_=null;function un(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){b(e,t,r)}else n.current=null}function cs(e,t,n){try{n()}catch(r){b(e,t,r)}}var Ca=!1;function Kp(e,t){if(Ko=cl,e=ec(),Vs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,u=-1,d=0,h=0,p=e,v=null;t:for(;;){for(var x;p!==n||l!==0&&p.nodeType!==3||(a=s+l),p!==o||r!==0&&p.nodeType!==3||(u=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(x=p.firstChild)!==null;)v=p,p=x;for(;;){if(p===e)break t;if(v===n&&++d===l&&(a=s),v===o&&++h===r&&(u=s),(x=p.nextSibling)!==null)break;p=v,v=p.parentNode}p=x}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Go={focusedElem:e,selectionRange:n},cl=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var y=w.memoizedProps,j=w.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?y:Oe(t.type,y),j);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(k){b(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return w=Ca,Ca=!1,w}function Kn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&cs(t,n,o)}l=l.next}while(l!==r)}}function Dl(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 r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ds(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 Xc(e){var t=e.alternate;t!==null&&(e.alternate=null,Xc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ve],delete t[sr],delete t[qo],delete t[Lp],delete t[Tp])),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 qc(e){return e.tag===5||e.tag===3||e.tag===4}function Na(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qc(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 fs(e,t,n){var r=e.tag;if(r===5||r===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=pl));else if(r!==4&&(e=e.child,e!==null))for(fs(e,t,n),e=e.sibling;e!==null;)fs(e,t,n),e=e.sibling}function ps(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ps(e,t,n),e=e.sibling;e!==null;)ps(e,t,n),e=e.sibling}var le=null,$e=!1;function ot(e,t,n){for(n=n.child;n!==null;)Zc(e,t,n),n=n.sibling}function Zc(e,t,n){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(Rl,n)}catch{}switch(n.tag){case 5:ue||un(n,t);case 6:var r=le,l=$e;le=null,ot(e,t,n),le=r,$e=l,le!==null&&($e?(e=le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):le.removeChild(n.stateNode));break;case 18:le!==null&&($e?(e=le,n=n.stateNode,e.nodeType===8?co(e.parentNode,n):e.nodeType===1&&co(e,n),tr(e)):co(le,n.stateNode));break;case 4:r=le,l=$e,le=n.stateNode.containerInfo,$e=!0,ot(e,t,n),le=r,$e=l;break;case 0:case 11:case 14:case 15:if(!ue&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&cs(n,t,s),l=l.next}while(l!==r)}ot(e,t,n);break;case 1:if(!ue&&(un(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){b(n,t,a)}ot(e,t,n);break;case 21:ot(e,t,n);break;case 22:n.mode&1?(ue=(r=ue)||n.memoizedState!==null,ot(e,t,n),ue=r):ot(e,t,n);break;default:ot(e,t,n)}}function Ea(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new bp),t.forEach(function(r){var l=nh.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Me(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:le=a.stateNode,$e=!1;break e;case 3:le=a.stateNode.containerInfo,$e=!0;break e;case 4:le=a.stateNode.containerInfo,$e=!0;break e}a=a.return}if(le===null)throw Error(C(160));Zc(o,s,l),le=null,$e=!1;var u=l.alternate;u!==null&&(u.return=null),l.return=null}catch(d){b(l,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Jc(t,e),t=t.sibling}function Jc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Me(t,e),Be(e),r&4){try{Kn(3,e,e.return),Dl(3,e)}catch(y){b(e,e.return,y)}try{Kn(5,e,e.return)}catch(y){b(e,e.return,y)}}break;case 1:Me(t,e),Be(e),r&512&&n!==null&&un(n,n.return);break;case 5:if(Me(t,e),Be(e),r&512&&n!==null&&un(n,n.return),e.flags&32){var l=e.stateNode;try{qn(l,"")}catch(y){b(e,e.return,y)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&ku(l,o),Fo(a,s);var d=Fo(a,o);for(s=0;s<u.length;s+=2){var h=u[s],p=u[s+1];h==="style"?Eu(l,p):h==="dangerouslySetInnerHTML"?Cu(l,p):h==="children"?qn(l,p):Ts(l,h,p,d)}switch(a){case"input":zo(l,o);break;case"textarea":Su(l,o);break;case"select":var v=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var x=o.value;x!=null?dn(l,!!o.multiple,x,!1):v!==!!o.multiple&&(o.defaultValue!=null?dn(l,!!o.multiple,o.defaultValue,!0):dn(l,!!o.multiple,o.multiple?[]:"",!1))}l[sr]=o}catch(y){b(e,e.return,y)}}break;case 6:if(Me(t,e),Be(e),r&4){if(e.stateNode===null)throw Error(C(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(y){b(e,e.return,y)}}break;case 3:if(Me(t,e),Be(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{tr(t.containerInfo)}catch(y){b(e,e.return,y)}break;case 4:Me(t,e),Be(e);break;case 13:Me(t,e),Be(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(ui=G())),r&4&&Ea(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(ue=(d=ue)||h,Me(t,e),ue=d):Me(t,e),Be(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!h&&e.mode&1)for(_=e,h=e.child;h!==null;){for(p=_=h;_!==null;){switch(v=_,x=v.child,v.tag){case 0:case 11:case 14:case 15:Kn(4,v,v.return);break;case 1:un(v,v.return);var w=v.stateNode;if(typeof w.componentWillUnmount=="function"){r=v,n=v.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(y){b(r,n,y)}}break;case 5:un(v,v.return);break;case 22:if(v.memoizedState!==null){Pa(p);continue}}x!==null?(x.return=v,_=x):Pa(p)}h=h.sibling}e:for(h=null,p=e;;){if(p.tag===5){if(h===null){h=p;try{l=p.stateNode,d?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=p.stateNode,u=p.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=Nu("display",s))}catch(y){b(e,e.return,y)}}}else if(p.tag===6){if(h===null)try{p.stateNode.nodeValue=d?"":p.memoizedProps}catch(y){b(e,e.return,y)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;h===p&&(h=null),p=p.return}h===p&&(h=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Me(t,e),Be(e),r&4&&Ea(e);break;case 21:break;default:Me(t,e),Be(e)}}function Be(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(qc(n)){var r=n;break e}n=n.return}throw Error(C(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(qn(l,""),r.flags&=-33);var o=Na(e);ps(e,o,l);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Na(e);fs(e,a,s);break;default:throw Error(C(161))}}catch(u){b(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gp(e,t,n){_=e,ed(e)}function ed(e,t,n){for(var r=(e.mode&1)!==0;_!==null;){var l=_,o=l.child;if(l.tag===22&&r){var s=l.memoizedState!==null||Ur;if(!s){var a=l.alternate,u=a!==null&&a.memoizedState!==null||ue;a=Ur;var d=ue;if(Ur=s,(ue=u)&&!d)for(_=l;_!==null;)s=_,u=s.child,s.tag===22&&s.memoizedState!==null?La(l):u!==null?(u.return=s,_=u):La(l);for(;o!==null;)_=o,ed(o),o=o.sibling;_=l,Ur=a,ue=d}_a(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,_=o):_a(e)}}function _a(e){for(;_!==null;){var t=_;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ue||Dl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ue)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Oe(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&da(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}da(t,s,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 d=t.alternate;if(d!==null){var h=d.memoizedState;if(h!==null){var p=h.dehydrated;p!==null&&tr(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(C(163))}ue||t.flags&512&&ds(t)}catch(v){b(t,t.return,v)}}if(t===e){_=null;break}if(n=t.sibling,n!==null){n.return=t.return,_=n;break}_=t.return}}function Pa(e){for(;_!==null;){var t=_;if(t===e){_=null;break}var n=t.sibling;if(n!==null){n.return=t.return,_=n;break}_=t.return}}function La(e){for(;_!==null;){var t=_;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Dl(4,t)}catch(u){b(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(u){b(t,l,u)}}var o=t.return;try{ds(t)}catch(u){b(t,o,u)}break;case 5:var s=t.return;try{ds(t)}catch(u){b(t,s,u)}}}catch(u){b(t,t.return,u)}if(t===e){_=null;break}var a=t.sibling;if(a!==null){a.return=t.return,_=a;break}_=t.return}}var Yp=Math.ceil,Cl=nt.ReactCurrentDispatcher,ii=nt.ReactCurrentOwner,Re=nt.ReactCurrentBatchConfig,O=0,ne=null,q=null,oe=0,ke=0,cn=Nt(0),J=0,fr=null,Wt=0,Al=0,ai=0,Gn=null,me=null,ui=0,jn=1/0,Ke=null,Nl=!1,hs=null,gt=null,Dr=!1,dt=null,El=0,Yn=0,ms=null,el=-1,tl=0;function fe(){return O&6?G():el!==-1?el:el=G()}function xt(e){return e.mode&1?O&2&&oe!==0?oe&-oe:zp.transition!==null?(tl===0&&(tl=Uu()),tl):(e=$,e!==0||(e=window.event,e=e===void 0?16:Qu(e.type)),e):1}function De(e,t,n,r){if(50<Yn)throw Yn=0,ms=null,Error(C(185));yr(e,n,r),(!(O&2)||e!==ne)&&(e===ne&&(!(O&2)&&(Al|=n),J===4&&ut(e,oe)),xe(e,r),n===1&&O===0&&!(t.mode&1)&&(jn=G()+500,$l&&Et()))}function xe(e,t){var n=e.callbackNode;zf(e,t);var r=ul(e,e===ne?oe:0);if(r===0)n!==null&&Ui(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ui(n),t===1)e.tag===0?Rp(Ta.bind(null,e)):cc(Ta.bind(null,e)),_p(function(){!(O&6)&&Et()}),n=null;else{switch(Du(r)){case 1:n=Os;break;case 4:n=$u;break;case 16:n=al;break;case 536870912:n=Fu;break;default:n=al}n=ad(n,td.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function td(e,t){if(el=-1,tl=0,O&6)throw Error(C(327));var n=e.callbackNode;if(vn()&&e.callbackNode!==n)return null;var r=ul(e,e===ne?oe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=_l(e,r);else{t=r;var l=O;O|=2;var o=rd();(ne!==e||oe!==t)&&(Ke=null,jn=G()+500,Ft(e,t));do try{Zp();break}catch(a){nd(e,a)}while(!0);Gs(),Cl.current=o,O=l,q!==null?t=0:(ne=null,oe=0,t=J)}if(t!==0){if(t===2&&(l=Wo(e),l!==0&&(r=l,t=vs(e,l))),t===1)throw n=fr,Ft(e,0),ut(e,r),xe(e,G()),n;if(t===6)ut(e,r);else{if(l=e.current.alternate,!(r&30)&&!Xp(l)&&(t=_l(e,r),t===2&&(o=Wo(e),o!==0&&(r=o,t=vs(e,o))),t===1))throw n=fr,Ft(e,0),ut(e,r),xe(e,G()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(C(345));case 2:It(e,me,Ke);break;case 3:if(ut(e,r),(r&130023424)===r&&(t=ui+500-G(),10<t)){if(ul(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){fe(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Xo(It.bind(null,e,me,Ke),t);break}It(e,me,Ke);break;case 4:if(ut(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var s=31-Ue(r);o=1<<s,s=t[s],s>l&&(l=s),r&=~o}if(r=l,r=G()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Yp(r/1960))-r,10<r){e.timeoutHandle=Xo(It.bind(null,e,me,Ke),r);break}It(e,me,Ke);break;case 5:It(e,me,Ke);break;default:throw Error(C(329))}}}return xe(e,G()),e.callbackNode===n?td.bind(null,e):null}function vs(e,t){var n=Gn;return e.current.memoizedState.isDehydrated&&(Ft(e,t).flags|=256),e=_l(e,t),e!==2&&(t=me,me=n,t!==null&&ys(t)),e}function ys(e){me===null?me=e:me.push.apply(me,e)}function Xp(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],o=l.getSnapshot;l=l.value;try{if(!Ae(o(),l))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 ut(e,t){for(t&=~ai,t&=~Al,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ue(t),r=1<<n;e[n]=-1,t&=~r}}function Ta(e){if(O&6)throw Error(C(327));vn();var t=ul(e,0);if(!(t&1))return xe(e,G()),null;var n=_l(e,t);if(e.tag!==0&&n===2){var r=Wo(e);r!==0&&(t=r,n=vs(e,r))}if(n===1)throw n=fr,Ft(e,0),ut(e,t),xe(e,G()),n;if(n===6)throw Error(C(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,It(e,me,Ke),xe(e,G()),null}function ci(e,t){var n=O;O|=1;try{return e(t)}finally{O=n,O===0&&(jn=G()+500,$l&&Et())}}function Vt(e){dt!==null&&dt.tag===0&&!(O&6)&&vn();var t=O;O|=1;var n=Re.transition,r=$;try{if(Re.transition=null,$=1,e)return e()}finally{$=r,Re.transition=n,O=t,!(O&6)&&Et()}}function di(){ke=cn.current,B(cn)}function Ft(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ep(n)),q!==null)for(n=q.return;n!==null;){var r=n;switch(Qs(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&hl();break;case 3:kn(),B(ye),B(ce),ei();break;case 5:Js(r);break;case 4:kn();break;case 13:B(V);break;case 19:B(V);break;case 10:Ys(r.type._context);break;case 22:case 23:di()}n=n.return}if(ne=e,q=e=wt(e.current,null),oe=ke=t,J=0,fr=null,ai=Al=Wt=0,me=Gn=null,Ot!==null){for(t=0;t<Ot.length;t++)if(n=Ot[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=l,r.next=s}n.pending=r}Ot=null}return e}function nd(e,t){do{var n=q;try{if(Gs(),qr.current=jl,Sl){for(var r=H.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Sl=!1}if(Bt=0,te=Z=H=null,bn=!1,ur=0,ii.current=null,n===null||n.return===null){J=1,fr=t,q=null;break}e:{var o=e,s=n.return,a=n,u=t;if(t=oe,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var d=u,h=a,p=h.tag;if(!(h.mode&1)&&(p===0||p===11||p===15)){var v=h.alternate;v?(h.updateQueue=v.updateQueue,h.memoizedState=v.memoizedState,h.lanes=v.lanes):(h.updateQueue=null,h.memoizedState=null)}var x=ya(s);if(x!==null){x.flags&=-257,ga(x,s,a,o,t),x.mode&1&&va(o,d,t),t=x,u=d;var w=t.updateQueue;if(w===null){var y=new Set;y.add(u),t.updateQueue=y}else w.add(u);break e}else{if(!(t&1)){va(o,d,t),fi();break e}u=Error(C(426))}}else if(W&&a.mode&1){var j=ya(s);if(j!==null){!(j.flags&65536)&&(j.flags|=256),ga(j,s,a,o,t),bs(Sn(u,a));break e}}o=u=Sn(u,a),J!==4&&(J=2),Gn===null?Gn=[o]:Gn.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var f=Dc(o,u,t);ca(o,f);break e;case 1:a=u;var c=o.type,m=o.stateNode;if(!(o.flags&128)&&(typeof c.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(gt===null||!gt.has(m)))){o.flags|=65536,t&=-t,o.lanes|=t;var k=Ac(o,a,t);ca(o,k);break e}}o=o.return}while(o!==null)}od(n)}catch(S){t=S,q===n&&n!==null&&(q=n=n.return);continue}break}while(!0)}function rd(){var e=Cl.current;return Cl.current=jl,e===null?jl:e}function fi(){(J===0||J===3||J===2)&&(J=4),ne===null||!(Wt&268435455)&&!(Al&268435455)||ut(ne,oe)}function _l(e,t){var n=O;O|=2;var r=rd();(ne!==e||oe!==t)&&(Ke=null,Ft(e,t));do try{qp();break}catch(l){nd(e,l)}while(!0);if(Gs(),O=n,Cl.current=r,q!==null)throw Error(C(261));return ne=null,oe=0,J}function qp(){for(;q!==null;)ld(q)}function Zp(){for(;q!==null&&!jf();)ld(q)}function ld(e){var t=id(e.alternate,e,ke);e.memoizedProps=e.pendingProps,t===null?od(e):q=t,ii.current=null}function od(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Qp(n,t),n!==null){n.flags&=32767,q=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{J=6,q=null;return}}else if(n=Hp(n,t,ke),n!==null){q=n;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);J===0&&(J=5)}function It(e,t,n){var r=$,l=Re.transition;try{Re.transition=null,$=1,Jp(e,t,n,r)}finally{Re.transition=l,$=r}return null}function Jp(e,t,n,r){do vn();while(dt!==null);if(O&6)throw Error(C(327));n=e.finishedWork;var l=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 o=n.lanes|n.childLanes;if(If(e,o),e===ne&&(q=ne=null,oe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Dr||(Dr=!0,ad(al,function(){return vn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Re.transition,Re.transition=null;var s=$;$=1;var a=O;O|=4,ii.current=null,Kp(e,n),Jc(n,e),xp(Go),cl=!!Ko,Go=Ko=null,e.current=n,Gp(n),Cf(),O=a,$=s,Re.transition=o}else e.current=n;if(Dr&&(Dr=!1,dt=e,El=l),o=e.pendingLanes,o===0&&(gt=null),_f(n.stateNode),xe(e,G()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(Nl)throw Nl=!1,e=hs,hs=null,e;return El&1&&e.tag!==0&&vn(),o=e.pendingLanes,o&1?e===ms?Yn++:(Yn=0,ms=e):Yn=0,Et(),null}function vn(){if(dt!==null){var e=Du(El),t=Re.transition,n=$;try{if(Re.transition=null,$=16>e?16:e,dt===null)var r=!1;else{if(e=dt,dt=null,El=0,O&6)throw Error(C(331));var l=O;for(O|=4,_=e.current;_!==null;){var o=_,s=o.child;if(_.flags&16){var a=o.deletions;if(a!==null){for(var u=0;u<a.length;u++){var d=a[u];for(_=d;_!==null;){var h=_;switch(h.tag){case 0:case 11:case 15:Kn(8,h,o)}var p=h.child;if(p!==null)p.return=h,_=p;else for(;_!==null;){h=_;var v=h.sibling,x=h.return;if(Xc(h),h===d){_=null;break}if(v!==null){v.return=x,_=v;break}_=x}}}var w=o.alternate;if(w!==null){var y=w.child;if(y!==null){w.child=null;do{var j=y.sibling;y.sibling=null,y=j}while(y!==null)}}_=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,_=s;else e:for(;_!==null;){if(o=_,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Kn(9,o,o.return)}var f=o.sibling;if(f!==null){f.return=o.return,_=f;break e}_=o.return}}var c=e.current;for(_=c;_!==null;){s=_;var m=s.child;if(s.subtreeFlags&2064&&m!==null)m.return=s,_=m;else e:for(s=c;_!==null;){if(a=_,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Dl(9,a)}}catch(S){b(a,a.return,S)}if(a===s){_=null;break e}var k=a.sibling;if(k!==null){k.return=a.return,_=k;break e}_=a.return}}if(O=l,Et(),He&&typeof He.onPostCommitFiberRoot=="function")try{He.onPostCommitFiberRoot(Rl,e)}catch{}r=!0}return r}finally{$=n,Re.transition=t}}return!1}function Ra(e,t,n){t=Sn(n,t),t=Dc(e,t,1),e=yt(e,t,1),t=fe(),e!==null&&(yr(e,1,t),xe(e,t))}function b(e,t,n){if(e.tag===3)Ra(e,e,n);else for(;t!==null;){if(t.tag===3){Ra(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gt===null||!gt.has(r))){e=Sn(n,e),e=Ac(t,e,1),t=yt(t,e,1),e=fe(),t!==null&&(yr(t,1,e),xe(t,e));break}}t=t.return}}function eh(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=fe(),e.pingedLanes|=e.suspendedLanes&n,ne===e&&(oe&n)===n&&(J===4||J===3&&(oe&130023424)===oe&&500>G()-ui?Ft(e,0):ai|=n),xe(e,t)}function sd(e,t){t===0&&(e.mode&1?(t=Lr,Lr<<=1,!(Lr&130023424)&&(Lr=4194304)):t=1);var n=fe();e=et(e,t),e!==null&&(yr(e,t,n),xe(e,n))}function th(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sd(e,n)}function nh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),sd(e,n)}var id;id=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ye.current)ve=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ve=!1,Vp(e,t,n);ve=!!(e.flags&131072)}else ve=!1,W&&t.flags&1048576&&dc(t,yl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Jr(e,t),e=t.pendingProps;var l=gn(t,ce.current);mn(t,n),l=ni(null,t,r,e,l,n);var o=ri();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ge(r)?(o=!0,ml(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,qs(t),l.updater=Ul,t.stateNode=l,l._reactInternals=t,rs(t,r,e,n),t=ss(null,t,r,!0,o,n)):(t.tag=0,W&&o&&Hs(t),de(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Jr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=lh(r),e=Oe(r,e),l){case 0:t=os(null,t,r,e,n);break e;case 1:t=ka(null,t,r,e,n);break e;case 11:t=xa(null,t,r,e,n);break e;case 14:t=wa(null,t,r,Oe(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Oe(r,l),os(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Oe(r,l),ka(e,t,r,l,n);case 3:e:{if(Hc(t),e===null)throw Error(C(387));r=t.pendingProps,o=t.memoizedState,l=o.element,yc(e,t),wl(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Sn(Error(C(423)),t),t=Sa(e,t,r,n,l);break e}else if(r!==l){l=Sn(Error(C(424)),t),t=Sa(e,t,r,n,l);break e}else for(Se=vt(t.stateNode.containerInfo.firstChild),je=t,W=!0,Fe=null,n=mc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xn(),r===l){t=tt(e,t,n);break e}de(e,t,r,n)}t=t.child}return t;case 5:return gc(t),e===null&&es(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,s=l.children,Yo(r,l)?s=null:o!==null&&Yo(r,o)&&(t.flags|=32),Vc(e,t),de(e,t,s,n),t.child;case 6:return e===null&&es(t),null;case 13:return Qc(e,t,n);case 4:return Zs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=wn(t,null,r,n):de(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Oe(r,l),xa(e,t,r,l,n);case 7:return de(e,t,t.pendingProps,n),t.child;case 8:return de(e,t,t.pendingProps.children,n),t.child;case 12:return de(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,s=l.value,U(gl,r._currentValue),r._currentValue=s,o!==null)if(Ae(o.value,s)){if(o.children===l.children&&!ye.current){t=tt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=qe(-1,n&-n),u.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var h=d.pending;h===null?u.next=u:(u.next=h.next,h.next=u),d.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),ts(o.return,n,t),a.lanes|=n;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(C(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ts(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}de(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,mn(t,n),l=ze(l),r=r(l),t.flags|=1,de(e,t,r,n),t.child;case 14:return r=t.type,l=Oe(r,t.pendingProps),l=Oe(r.type,l),wa(e,t,r,l,n);case 15:return Bc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Oe(r,l),Jr(e,t),t.tag=1,ge(r)?(e=!0,ml(t)):e=!1,mn(t,n),Uc(t,r,l),rs(t,r,l,n),ss(null,t,r,!0,e,n);case 19:return bc(e,t,n);case 22:return Wc(e,t,n)}throw Error(C(156,t.tag))};function ad(e,t){return Ou(e,t)}function rh(e,t,n,r){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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Te(e,t,n,r){return new rh(e,t,n,r)}function pi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lh(e){if(typeof e=="function")return pi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===zs)return 11;if(e===Is)return 14}return 2}function wt(e,t){var n=e.alternate;return n===null?(n=Te(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 nl(e,t,n,r,l,o){var s=2;if(r=e,typeof e=="function")pi(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Jt:return Ut(n.children,l,o,t);case Rs:s=8,l|=8;break;case _o:return e=Te(12,n,t,l|2),e.elementType=_o,e.lanes=o,e;case Po:return e=Te(13,n,t,l),e.elementType=Po,e.lanes=o,e;case Lo:return e=Te(19,n,t,l),e.elementType=Lo,e.lanes=o,e;case gu:return Bl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case vu:s=10;break e;case yu:s=9;break e;case zs:s=11;break e;case Is:s=14;break e;case st:s=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=Te(s,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Ut(e,t,n,r){return e=Te(7,e,r,t),e.lanes=n,e}function Bl(e,t,n,r){return e=Te(22,e,r,t),e.elementType=gu,e.lanes=n,e.stateNode={isHidden:!1},e}function xo(e,t,n){return e=Te(6,e,null,t),e.lanes=n,e}function wo(e,t,n){return t=Te(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oh(e,t,n,r,l){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=Jl(0),this.expirationTimes=Jl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function hi(e,t,n,r,l,o,s,a,u){return e=new oh(e,t,n,a,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Te(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qs(o),e}function sh(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Zt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ud(e){if(!e)return jt;e=e._reactInternals;e:{if(Qt(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(ge(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(ge(n))return uc(e,n,t)}return t}function cd(e,t,n,r,l,o,s,a,u){return e=hi(n,r,!0,e,l,o,s,a,u),e.context=ud(null),n=e.current,r=fe(),l=xt(n),o=qe(r,l),o.callback=t??null,yt(n,o,l),e.current.lanes=l,yr(e,l,r),xe(e,r),e}function Wl(e,t,n,r){var l=t.current,o=fe(),s=xt(l);return n=ud(n),t.context===null?t.context=n:t.pendingContext=n,t=qe(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=yt(l,t,s),e!==null&&(De(e,l,s,o),Xr(e,l,s)),s}function Pl(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 za(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mi(e,t){za(e,t),(e=e.alternate)&&za(e,t)}function ih(){return null}var dd=typeof reportError=="function"?reportError:function(e){console.error(e)};function vi(e){this._internalRoot=e}Vl.prototype.render=vi.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(C(409));Wl(e,t,null,null)};Vl.prototype.unmount=vi.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vt(function(){Wl(null,e,null,null)}),t[Je]=null}};function Vl(e){this._internalRoot=e}Vl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Wu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<at.length&&t!==0&&t<at[n].priority;n++);at.splice(n,0,e),n===0&&Hu(e)}};function yi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Hl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ia(){}function ah(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var d=Pl(s);o.call(d)}}var s=cd(t,r,e,0,null,!1,!1,"",Ia);return e._reactRootContainer=s,e[Je]=s.current,lr(e.nodeType===8?e.parentNode:e),Vt(),s}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var a=r;r=function(){var d=Pl(u);a.call(d)}}var u=hi(e,0,!1,null,null,!1,!1,"",Ia);return e._reactRootContainer=u,e[Je]=u.current,lr(e.nodeType===8?e.parentNode:e),Vt(function(){Wl(t,u,n,r)}),u}function Ql(e,t,n,r,l){var o=n._reactRootContainer;if(o){var s=o;if(typeof l=="function"){var a=l;l=function(){var u=Pl(s);a.call(u)}}Wl(t,s,e,l)}else s=ah(n,t,e,l,r);return Pl(s)}Au=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Dn(t.pendingLanes);n!==0&&($s(t,n|1),xe(t,G()),!(O&6)&&(jn=G()+500,Et()))}break;case 13:Vt(function(){var r=et(e,1);if(r!==null){var l=fe();De(r,e,1,l)}}),mi(e,1)}};Fs=function(e){if(e.tag===13){var t=et(e,134217728);if(t!==null){var n=fe();De(t,e,134217728,n)}mi(e,134217728)}};Bu=function(e){if(e.tag===13){var t=xt(e),n=et(e,t);if(n!==null){var r=fe();De(n,e,t,r)}mi(e,t)}};Wu=function(){return $};Vu=function(e,t){var n=$;try{return $=e,t()}finally{$=n}};Do=function(e,t,n){switch(t){case"input":if(zo(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 r=n[t];if(r!==e&&r.form===e.form){var l=Ol(r);if(!l)throw Error(C(90));wu(r),zo(r,l)}}}break;case"textarea":Su(e,n);break;case"select":t=n.value,t!=null&&dn(e,!!n.multiple,t,!1)}};Lu=ci;Tu=Vt;var uh={usingClientEntryPoint:!1,Events:[xr,rn,Ol,_u,Pu,ci]},$n={findFiberByHostInstance:Mt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ch={bundleType:$n.bundleType,version:$n.version,rendererPackageName:$n.rendererPackageName,rendererConfig:$n.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Iu(e),e===null?null:e.stateNode},findFiberByHostInstance:$n.findFiberByHostInstance||ih,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 Ar=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ar.isDisabled&&Ar.supportsFiber)try{Rl=Ar.inject(ch),He=Ar}catch{}}Ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uh;Ne.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yi(t))throw Error(C(200));return sh(e,t,null,n)};Ne.createRoot=function(e,t){if(!yi(e))throw Error(C(299));var n=!1,r="",l=dd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=hi(e,1,!1,null,null,n,!1,r,l),e[Je]=t.current,lr(e.nodeType===8?e.parentNode:e),new vi(t)};Ne.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=Iu(t),e=e===null?null:e.stateNode,e};Ne.flushSync=function(e){return Vt(e)};Ne.hydrate=function(e,t,n){if(!Hl(t))throw Error(C(200));return Ql(null,e,t,!0,n)};Ne.hydrateRoot=function(e,t,n){if(!yi(e))throw Error(C(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",s=dd;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=cd(t,null,e,1,n??null,l,!1,o,s),e[Je]=t.current,lr(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Vl(t)};Ne.render=function(e,t,n){if(!Hl(t))throw Error(C(200));return Ql(null,e,t,!1,n)};Ne.unmountComponentAtNode=function(e){if(!Hl(e))throw Error(C(40));return e._reactRootContainer?(Vt(function(){Ql(null,null,e,!1,function(){e._reactRootContainer=null,e[Je]=null})}),!0):!1};Ne.unstable_batchedUpdates=ci;Ne.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Hl(n))throw Error(C(200));if(e==null||e._reactInternals===void 0)throw Error(C(38));return Ql(e,t,n,!1,r)};Ne.version="18.3.1-next-f1338f8080-20240426";function fd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fd)}catch(e){console.error(e)}}fd(),fu.exports=Ne;var dh=fu.exports,Ma=dh;No.createRoot=Ma.createRoot,No.hydrateRoot=Ma.hydrateRoot;/**
|
|
41
|
-
* @remix-run/router v1.23.2
|
|
42
|
-
*
|
|
43
|
-
* Copyright (c) Remix Software Inc.
|
|
44
|
-
*
|
|
45
|
-
* This source code is licensed under the MIT license found in the
|
|
46
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
-
*
|
|
48
|
-
* @license MIT
|
|
49
|
-
*/function pr(){return pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pr.apply(this,arguments)}var ft;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ft||(ft={}));const Oa="popstate";function fh(e){e===void 0&&(e={});function t(r,l){let{pathname:o,search:s,hash:a}=r.location;return gs("",{pathname:o,search:s,hash:a},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function n(r,l){return typeof l=="string"?l:Ll(l)}return hh(t,n,null,e)}function X(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function gi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ph(){return Math.random().toString(36).substr(2,8)}function $a(e,t){return{usr:e.state,key:e.key,idx:t}}function gs(e,t,n,r){return n===void 0&&(n=null),pr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?_n(t):t,{state:n,key:t&&t.key||r||ph()})}function Ll(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function _n(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function hh(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,s=l.history,a=ft.Pop,u=null,d=h();d==null&&(d=0,s.replaceState(pr({},s.state,{idx:d}),""));function h(){return(s.state||{idx:null}).idx}function p(){a=ft.Pop;let j=h(),f=j==null?null:j-d;d=j,u&&u({action:a,location:y.location,delta:f})}function v(j,f){a=ft.Push;let c=gs(y.location,j,f);d=h()+1;let m=$a(c,d),k=y.createHref(c);try{s.pushState(m,"",k)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;l.location.assign(k)}o&&u&&u({action:a,location:y.location,delta:1})}function x(j,f){a=ft.Replace;let c=gs(y.location,j,f);d=h();let m=$a(c,d),k=y.createHref(c);s.replaceState(m,"",k),o&&u&&u({action:a,location:y.location,delta:0})}function w(j){let f=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof j=="string"?j:Ll(j);return c=c.replace(/ $/,"%20"),X(f,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,f)}let y={get action(){return a},get location(){return e(l,s)},listen(j){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(Oa,p),u=j,()=>{l.removeEventListener(Oa,p),u=null}},createHref(j){return t(l,j)},createURL:w,encodeLocation(j){let f=w(j);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:v,replace:x,go(j){return s.go(j)}};return y}var Fa;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Fa||(Fa={}));function mh(e,t,n){return n===void 0&&(n="/"),vh(e,t,n)}function vh(e,t,n,r){let l=typeof t=="string"?_n(t):t,o=xi(l.pathname||"/",n);if(o==null)return null;let s=pd(e);yh(s);let a=null;for(let u=0;a==null&&u<s.length;++u){let d=Lh(o);a=Eh(s[u],d)}return a}function pd(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let l=(o,s,a)=>{let u={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};u.relativePath.startsWith("/")&&(X(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let d=kt([r,u.relativePath]),h=n.concat(u);o.children&&o.children.length>0&&(X(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),pd(o.children,t,h,d)),!(o.path==null&&!o.index)&&t.push({path:d,score:Ch(d,o.index),routesMeta:h})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))l(o,s);else for(let u of hd(o.path))l(o,s,u)}),t}function hd(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let s=hd(r.join("/")),a=[];return a.push(...s.map(u=>u===""?o:[o,u].join("/"))),l&&a.push(...s),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function yh(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Nh(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const gh=/^:[\w-]+$/,xh=3,wh=2,kh=1,Sh=10,jh=-2,Ua=e=>e==="*";function Ch(e,t){let n=e.split("/"),r=n.length;return n.some(Ua)&&(r+=jh),t&&(r+=wh),n.filter(l=>!Ua(l)).reduce((l,o)=>l+(gh.test(o)?xh:o===""?kh:Sh),r)}function Nh(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Eh(e,t,n){let{routesMeta:r}=e,l={},o="/",s=[];for(let a=0;a<r.length;++a){let u=r[a],d=a===r.length-1,h=o==="/"?t:t.slice(o.length)||"/",p=_h({path:u.relativePath,caseSensitive:u.caseSensitive,end:d},h),v=u.route;if(!p)return null;Object.assign(l,p.params),s.push({params:l,pathname:kt([o,p.pathname]),pathnameBase:Mh(kt([o,p.pathnameBase])),route:v}),p.pathnameBase!=="/"&&(o=kt([o,p.pathnameBase]))}return s}function _h(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ph(e.path,e.caseSensitive,e.end),l=t.match(n);if(!l)return null;let o=l[0],s=o.replace(/(.)\/+$/,"$1"),a=l.slice(1);return{params:r.reduce((d,h,p)=>{let{paramName:v,isOptional:x}=h;if(v==="*"){let y=a[p]||"";s=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const w=a[p];return x&&!w?d[v]=void 0:d[v]=(w||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:s,pattern:e}}function Ph(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),gi(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Lh(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return gi(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function xi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Th=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Rh=e=>Th.test(e);function zh(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?_n(e):e,o;if(n)if(Rh(n))o=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),gi(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+n))}n.startsWith("/")?o=Da(n.substring(1),"/"):o=Da(n,t)}else o=t;return{pathname:o,search:Oh(r),hash:$h(l)}}function Da(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function ko(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Ih(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function wi(e,t){let n=Ih(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ki(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=_n(e):(l=pr({},e),X(!l.pathname||!l.pathname.includes("?"),ko("?","pathname","search",l)),X(!l.pathname||!l.pathname.includes("#"),ko("#","pathname","hash",l)),X(!l.search||!l.search.includes("#"),ko("#","search","hash",l)));let o=e===""||l.pathname==="",s=o?"/":l.pathname,a;if(s==null)a=n;else{let p=t.length-1;if(!r&&s.startsWith("..")){let v=s.split("/");for(;v[0]==="..";)v.shift(),p-=1;l.pathname=v.join("/")}a=p>=0?t[p]:"/"}let u=zh(l,a),d=s&&s!=="/"&&s.endsWith("/"),h=(o||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(d||h)&&(u.pathname+="/"),u}const kt=e=>e.join("/").replace(/\/\/+/g,"/"),Mh=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Oh=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$h=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Fh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const md=["post","put","patch","delete"];new Set(md);const Uh=["get",...md];new Set(Uh);/**
|
|
50
|
-
* React Router v6.30.3
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Remix Software Inc.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
-
*
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hr.apply(this,arguments)}const Si=g.createContext(null),Dh=g.createContext(null),_t=g.createContext(null),bl=g.createContext(null),rt=g.createContext({outlet:null,matches:[],isDataRoute:!1}),vd=g.createContext(null);function Ah(e,t){let{relative:n}=t===void 0?{}:t;Pn()||X(!1);let{basename:r,navigator:l}=g.useContext(_t),{hash:o,pathname:s,search:a}=xd(e,{relative:n}),u=s;return r!=="/"&&(u=s==="/"?r:kt([r,s])),l.createHref({pathname:u,search:a,hash:o})}function Pn(){return g.useContext(bl)!=null}function kr(){return Pn()||X(!1),g.useContext(bl).location}function yd(e){g.useContext(_t).static||g.useLayoutEffect(e)}function gd(){let{isDataRoute:e}=g.useContext(rt);return e?em():Bh()}function Bh(){Pn()||X(!1);let e=g.useContext(Si),{basename:t,future:n,navigator:r}=g.useContext(_t),{matches:l}=g.useContext(rt),{pathname:o}=kr(),s=JSON.stringify(wi(l,n.v7_relativeSplatPath)),a=g.useRef(!1);return yd(()=>{a.current=!0}),g.useCallback(function(d,h){if(h===void 0&&(h={}),!a.current)return;if(typeof d=="number"){r.go(d);return}let p=ki(d,JSON.parse(s),o,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:kt([t,p.pathname])),(h.replace?r.replace:r.push)(p,h.state,h)},[t,r,s,o,e])}function Wh(){let{matches:e}=g.useContext(rt),t=e[e.length-1];return t?t.params:{}}function xd(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=g.useContext(_t),{matches:l}=g.useContext(rt),{pathname:o}=kr(),s=JSON.stringify(wi(l,r.v7_relativeSplatPath));return g.useMemo(()=>ki(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function Vh(e,t){return Hh(e,t)}function Hh(e,t,n,r){Pn()||X(!1);let{navigator:l}=g.useContext(_t),{matches:o}=g.useContext(rt),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let u=s?s.pathnameBase:"/";s&&s.route;let d=kr(),h;if(t){var p;let j=typeof t=="string"?_n(t):t;u==="/"||(p=j.pathname)!=null&&p.startsWith(u)||X(!1),h=j}else h=d;let v=h.pathname||"/",x=v;if(u!=="/"){let j=u.replace(/^\//,"").split("/");x="/"+v.replace(/^\//,"").split("/").slice(j.length).join("/")}let w=mh(e,{pathname:x}),y=Yh(w&&w.map(j=>Object.assign({},j,{params:Object.assign({},a,j.params),pathname:kt([u,l.encodeLocation?l.encodeLocation(j.pathname).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?u:kt([u,l.encodeLocation?l.encodeLocation(j.pathnameBase).pathname:j.pathnameBase])})),o,n,r);return t&&y?g.createElement(bl.Provider,{value:{location:hr({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:ft.Pop}},y):y}function Qh(){let e=Jh(),t=Fh(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:l},n):null,null)}const bh=g.createElement(Qh,null);class Kh extends g.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?g.createElement(rt.Provider,{value:this.props.routeContext},g.createElement(vd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Gh(e){let{routeContext:t,match:n,children:r}=e,l=g.useContext(Si);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),g.createElement(rt.Provider,{value:t},r)}function Yh(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(l=n)==null?void 0:l.errors;if(a!=null){let h=s.findIndex(p=>p.route.id&&a?.[p.route.id]!==void 0);h>=0||X(!1),s=s.slice(0,Math.min(s.length,h+1))}let u=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h<s.length;h++){let p=s[h];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=h),p.route.id){let{loaderData:v,errors:x}=n,w=p.route.loader&&v[p.route.id]===void 0&&(!x||x[p.route.id]===void 0);if(p.route.lazy||w){u=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}return s.reduceRight((h,p,v)=>{let x,w=!1,y=null,j=null;n&&(x=a&&p.route.id?a[p.route.id]:void 0,y=p.route.errorElement||bh,u&&(d<0&&v===0?(tm("route-fallback"),w=!0,j=null):d===v&&(w=!0,j=p.route.hydrateFallbackElement||null)));let f=t.concat(s.slice(0,v+1)),c=()=>{let m;return x?m=y:w?m=j:p.route.Component?m=g.createElement(p.route.Component,null):p.route.element?m=p.route.element:m=h,g.createElement(Gh,{match:p,routeContext:{outlet:h,matches:f,isDataRoute:n!=null},children:m})};return n&&(p.route.ErrorBoundary||p.route.errorElement||v===0)?g.createElement(Kh,{location:n.location,revalidation:n.revalidation,component:y,error:x,children:c(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):c()},null)}var wd=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(wd||{}),kd=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(kd||{});function Xh(e){let t=g.useContext(Si);return t||X(!1),t}function qh(e){let t=g.useContext(Dh);return t||X(!1),t}function Zh(e){let t=g.useContext(rt);return t||X(!1),t}function Sd(e){let t=Zh(),n=t.matches[t.matches.length-1];return n.route.id||X(!1),n.route.id}function Jh(){var e;let t=g.useContext(vd),n=qh(),r=Sd();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function em(){let{router:e}=Xh(wd.UseNavigateStable),t=Sd(kd.UseNavigateStable),n=g.useRef(!1);return yd(()=>{n.current=!0}),g.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,hr({fromRouteId:t},o)))},[e,t])}const Aa={};function tm(e,t,n){Aa[e]||(Aa[e]=!0)}function nm(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function rm(e){let{to:t,replace:n,state:r,relative:l}=e;Pn()||X(!1);let{future:o,static:s}=g.useContext(_t),{matches:a}=g.useContext(rt),{pathname:u}=kr(),d=gd(),h=ki(t,wi(a,o.v7_relativeSplatPath),u,l==="path"),p=JSON.stringify(h);return g.useEffect(()=>d(JSON.parse(p),{replace:n,state:r,relative:l}),[d,p,l,n,r]),null}function Xt(e){X(!1)}function lm(e){let{basename:t="/",children:n=null,location:r,navigationType:l=ft.Pop,navigator:o,static:s=!1,future:a}=e;Pn()&&X(!1);let u=t.replace(/^\/*/,"/"),d=g.useMemo(()=>({basename:u,navigator:o,static:s,future:hr({v7_relativeSplatPath:!1},a)}),[u,a,o,s]);typeof r=="string"&&(r=_n(r));let{pathname:h="/",search:p="",hash:v="",state:x=null,key:w="default"}=r,y=g.useMemo(()=>{let j=xi(h,u);return j==null?null:{location:{pathname:j,search:p,hash:v,state:x,key:w},navigationType:l}},[u,h,p,v,x,w,l]);return y==null?null:g.createElement(_t.Provider,{value:d},g.createElement(bl.Provider,{children:n,value:y}))}function Ba(e){let{children:t,location:n}=e;return Vh(xs(t),n)}new Promise(()=>{});function xs(e,t){t===void 0&&(t=[]);let n=[];return g.Children.forEach(e,(r,l)=>{if(!g.isValidElement(r))return;let o=[...t,l];if(r.type===g.Fragment){n.push.apply(n,xs(r.props.children,o));return}r.type!==Xt&&X(!1),!r.props.index||!r.props.children||X(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=xs(r.props.children,o)),n.push(s)}),n}/**
|
|
59
|
-
* React Router DOM v6.30.3
|
|
60
|
-
*
|
|
61
|
-
* Copyright (c) Remix Software Inc.
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the MIT license found in the
|
|
64
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
65
|
-
*
|
|
66
|
-
* @license MIT
|
|
67
|
-
*/function ws(){return ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ws.apply(this,arguments)}function om(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,o;for(o=0;o<r.length;o++)l=r[o],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function sm(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function im(e,t){return e.button===0&&(!t||t==="_self")&&!sm(e)}const am=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],um="6";try{window.__reactRouterVersion=um}catch{}const cm="startTransition",Wa=Jd[cm];function dm(e){let{basename:t,children:n,future:r,window:l}=e,o=g.useRef();o.current==null&&(o.current=fh({window:l,v5Compat:!0}));let s=o.current,[a,u]=g.useState({action:s.action,location:s.location}),{v7_startTransition:d}=r||{},h=g.useCallback(p=>{d&&Wa?Wa(()=>u(p)):u(p)},[u,d]);return g.useLayoutEffect(()=>s.listen(h),[s,h]),g.useEffect(()=>nm(r),[r]),g.createElement(lm,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const fm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mr=g.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:s,state:a,target:u,to:d,preventScrollReset:h,viewTransition:p}=t,v=om(t,am),{basename:x}=g.useContext(_t),w,y=!1;if(typeof d=="string"&&pm.test(d)&&(w=d,fm))try{let m=new URL(window.location.href),k=d.startsWith("//")?new URL(m.protocol+d):new URL(d),S=xi(k.pathname,x);k.origin===m.origin&&S!=null?d=S+k.search+k.hash:y=!0}catch{}let j=Ah(d,{relative:l}),f=hm(d,{replace:s,state:a,target:u,preventScrollReset:h,relative:l,viewTransition:p});function c(m){r&&r(m),m.defaultPrevented||f(m)}return g.createElement("a",ws({},v,{href:w||j,onClick:y||o?r:c,ref:n,target:u}))});var Va;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Va||(Va={}));var Ha;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ha||(Ha={}));function hm(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:s,viewTransition:a}=t===void 0?{}:t,u=gd(),d=kr(),h=xd(e,{relative:s});return g.useCallback(p=>{if(im(p,n)){p.preventDefault();let v=r!==void 0?r:Ll(d)===Ll(h);u(e,{replace:v,state:l,preventScrollReset:o,relative:s,viewTransition:a})}},[d,u,h,r,l,n,e,o,s,a])}const Qa=e=>{let t;const n=new Set,r=(d,h)=>{const p=typeof d=="function"?d(t):d;if(!Object.is(p,t)){const v=t;t=h??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(x=>x(t,v))}},l=()=>t,a={setState:r,getState:l,getInitialState:()=>u,subscribe:d=>(n.add(d),()=>n.delete(d))},u=t=e(r,l,a);return a},mm=e=>e?Qa(e):Qa,vm=e=>e;function ym(e,t=vm){const n=qt.useSyncExternalStore(e.subscribe,qt.useCallback(()=>t(e.getState()),[e,t]),qt.useCallback(()=>t(e.getInitialState()),[e,t]));return qt.useDebugValue(n),n}const ba=e=>{const t=mm(e),n=r=>ym(t,r);return Object.assign(n,t),n},gm=e=>e?ba(e):ba,ks="cw.token.v1";function xm(e){try{return localStorage.getItem(e)}catch{return null}}function wm(e,t){try{localStorage.setItem(e,t)}catch{}}function km(e){try{localStorage.removeItem(e)}catch{}}function Sm(){return xm(ks)}const Y=gm(e=>({token:Sm(),setToken:t=>{t?wm(ks,t):km(ks),e({token:t})},connection:{status:"disconnected"},setConnection:t=>e({connection:t}),sessions:{},upsertSession:t=>e(n=>({sessions:{...n.sessions,[t.id]:t}})),removeSession:t=>e(n=>{const r={...n.sessions};delete r[t];const l={...n.events};return delete l[t],{sessions:r,events:l}}),setSessions:t=>e(()=>{const n={};for(const r of t)n[r.id]=r;return{sessions:n}}),events:{},appendEvent:t=>e(n=>{const r=n.events[t.sessionId]??[],l=t.uuid&&r.some(s=>s.uuid===t.uuid)?r:[...r,t],o=l.length>800?l.slice(l.length-800):l;return{events:{...n.events,[t.sessionId]:o}}}),setEvents:(t,n)=>e(r=>({events:{...r.events,[t]:n.slice()}})),reset:()=>e({sessions:{},events:{},connection:{status:"disconnected"}})}));function jm(e){const t=Date.now();return Object.values(e).sort((n,r)=>{const l=n.status==="errored"&&t-n.lastEventAt<3e5,o=r.status==="errored"&&t-r.lastEventAt<5*6e4;return l&&!o?-1:o&&!l?1:(r.lastUserMessageAt||r.lastEventAt)-(n.lastUserMessageAt||n.lastEventAt)})}let _e=null,rl=500,Ss=!1;function jd(e){if(Ss=!1,_e&&_e.readyState!==WebSocket.CLOSED&&_e.readyState!==WebSocket.CLOSING)return;const n=`${location.protocol==="https:"?"wss":"ws"}://${location.host}/ws?token=${encodeURIComponent(e)}`;Y.getState().setConnection({status:"connecting"});try{_e=new WebSocket(n)}catch(r){Y.getState().setConnection({status:"error",lastError:r.message}),Ka(e);return}_e.onopen=()=>{rl=500},_e.onmessage=r=>{let l;try{l=JSON.parse(r.data)}catch{return}Nm(l)},_e.onclose=r=>{if(r.code===4001){Y.getState().setConnection({status:"unauthorized",lastError:"Token rejected."}),Y.getState().setToken(null);return}if(Ss){Y.getState().setConnection({status:"disconnected"});return}Ka(e)},_e.onerror=()=>{}}function Cd(){Ss=!0;try{_e?.close()}catch{}_e=null}function Cm(e){_e?.readyState===WebSocket.OPEN&&_e.send(JSON.stringify(e))}function Ka(e){Y.getState().setConnection({status:"connecting",lastError:"Reconnecting…"});const t=Math.min(rl,3e4);rl=Math.min(rl*2,3e4),setTimeout(()=>jd(e),t)}function Nm(e){const t=Y.getState();e.kind==="hello"?t.setConnection({status:"connected",hostname:e.hostname,platform:e.platform,agentVersion:e.agentVersion}):e.kind==="session_list"?t.setSessions(e.sessions):e.kind==="session_upsert"?t.upsertSession(e.session):e.kind==="session_remove"?t.removeSession(e.sessionId):e.kind==="session_event"?t.appendEvent(e.event):e.kind==="session_events"?t.setEvents(e.sessionId,e.events):e.kind==="error"&&(t.setConnection({status:"error",lastError:e.message}),e.message==="unauthorized"&&t.setToken(null))}function Em(){const e=Y(S=>S.setToken),[t,n]=g.useState(null),[r,l]=g.useState(null),[o,s]=g.useState(null),[a,u]=g.useState(""),[d,h]=g.useState(""),[p,v]=g.useState(!1),[x,w]=g.useState(null);g.useEffect(()=>{const E=new URLSearchParams(window.location.search).get("token");E&&(w(E),window.history.replaceState({},"","/")),fetch("/api/auth-info").then(N=>N.ok?N.json():null).then(N=>{N&&l(N)}).catch(()=>{}),fetch("/api/pairing").then(N=>N.ok?N.json():null).then(N=>{N&&n(N)}).catch(()=>{})},[]),g.useEffect(()=>{!r||!x||r.passwordRequired||p||y({token:x})},[r,x]);async function y(S){v(!0),s(null);try{const E=await fetch("/api/login",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(S)}),N=await E.json().catch(()=>({}));if(!E.ok){N.error==="invalid_password"?s("Incorrect password."):N.error==="password_required"?s("Password required."):N.error==="invalid_token"?s("Invalid or missing pairing token."):s("Login failed.");return}e(N.jwt),window.location.reload()}catch{s("Network error.")}finally{v(!1)}}function j(S){if(S.preventDefault(),!d){s("Enter a password.");return}y({token:x??void 0,password:d})}function f(S){if(S.preventDefault(),a.trim().length<8){s("Token looks too short.");return}w(a.trim()),r?.passwordRequired?s(null):y({token:a.trim()})}const c=!!r?.passwordRequired,m=!!t,k=t?.ngrokUrl;return i.jsxs("div",{className:"flex flex-col flex-1 min-h-full safe-top safe-x safe-bottom",children:[i.jsxs("header",{className:"px-5 py-4 flex items-center gap-3",children:[i.jsx(Pm,{}),i.jsxs("div",{children:[i.jsx("h1",{className:"text-lg font-semibold",style:{color:"var(--text)"},children:"fleetwatch"}),i.jsx("p",{className:"text-xs",style:{color:"var(--text-faint)"},children:r?c?"Enter your password":"Pair this device to start watching":"Connecting…"})]})]}),i.jsxs("main",{className:"flex-1 px-5 pt-2 pb-10 flex flex-col items-center justify-start",children:[c&&!m&&i.jsxs("form",{onSubmit:j,className:"w-full max-w-sm mt-4",children:[i.jsx("p",{className:"text-sm text-center mb-5",style:{color:"var(--text-muted)"},children:"This fleetwatch requires a password."}),i.jsx("input",{type:"password",autoFocus:!0,value:d,onChange:S=>h(S.target.value),placeholder:"Password",className:"w-full px-3 py-3 rounded-lg text-sm",style:{background:"var(--bg-elevated)",color:"var(--text)",border:"1px solid var(--border)"}}),o&&i.jsx("div",{className:"mt-2 text-sm",style:{color:"var(--status-error)"},children:o}),i.jsx("button",{type:"submit",disabled:p,className:"mt-3 w-full py-3 rounded-lg font-medium text-sm",style:{background:"var(--accent)",color:"white",opacity:p?.6:1},children:p?"Connecting…":"Connect"})]}),m&&t&&i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"text-sm text-center max-w-sm mb-5",style:{color:"var(--text-muted)"},children:k?i.jsxs(i.Fragment,{children:["Scan to open from ",i.jsx("b",{children:"anywhere"})," (via ngrok) on ",i.jsx("b",{children:t.hostLabel}),"."]}):i.jsxs(i.Fragment,{children:["Scan from your phone — must be on the same Wi-Fi as ",i.jsx("b",{children:t.hostLabel}),"."]})}),i.jsx("div",{className:"p-5 rounded-lg",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)"},dangerouslySetInnerHTML:{__html:t.qrSvg}}),i.jsxs("div",{className:"mt-5 text-center",children:[i.jsx("div",{className:"text-xs uppercase tracking-wider mb-1",style:{color:"var(--text-faint)"},children:k?"public URL":"LAN URL"}),i.jsx("div",{className:"font-mono text-sm break-all max-w-md",style:{color:"var(--accent)"},children:t.url}),c&&i.jsx("div",{className:"mt-2 text-xs",style:{color:"var(--text-muted)"},children:"· Password required ·"})]}),i.jsx("button",{className:"mt-8 text-xs underline",style:{color:"var(--text-muted)"},onClick:()=>{const S=_m(t.url);S&&(w(S),c||y({token:S}))},disabled:p,children:c?"Or enter the password here":"Or just use this device to watch"}),c&&x&&i.jsxs("form",{onSubmit:j,className:"w-full max-w-sm mt-4",children:[i.jsx("input",{type:"password",value:d,onChange:S=>h(S.target.value),placeholder:"Password",className:"w-full px-3 py-3 rounded-lg text-sm",style:{background:"var(--bg-elevated)",color:"var(--text)",border:"1px solid var(--border)"}}),o&&i.jsx("div",{className:"mt-2 text-sm",style:{color:"var(--status-error)"},children:o}),i.jsx("button",{type:"submit",disabled:p,className:"mt-3 w-full py-3 rounded-lg font-medium text-sm",style:{background:"var(--accent)",color:"white",opacity:p?.6:1},children:p?"Connecting…":"Connect"})]})]}),!m&&!c&&i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:"text-sm text-center max-w-sm mb-5",style:{color:"var(--text-muted)"},children:["Open the ",i.jsx("span",{style:{color:"var(--accent)"},children:"fleetwatch"})," URL printed in your desktop terminal — that's the URL with the ",i.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:"?token="})," on it."]}),i.jsxs("form",{onSubmit:f,className:"w-full max-w-sm",children:[i.jsx("label",{className:"block text-xs uppercase tracking-wider mb-1",style:{color:"var(--text-faint)"},children:"Or paste the token manually"}),i.jsx("input",{type:"text",value:a,onChange:S=>u(S.target.value),placeholder:"paste token from terminal",className:"w-full px-3 py-3 rounded-lg text-sm",style:{background:"var(--bg-elevated)",color:"var(--text)",border:"1px solid var(--border)",fontFamily:"var(--font-mono)"}}),o&&i.jsx("div",{className:"mt-2 text-sm",style:{color:"var(--status-error)"},children:o}),i.jsx("button",{type:"submit",disabled:p,className:"mt-3 w-full py-3 rounded-lg font-medium text-sm",style:{background:"var(--accent)",color:"white",opacity:p?.6:1},children:p?"Connecting…":"Connect"})]})]})]}),i.jsxs("footer",{className:"px-5 pb-4 text-xs text-center",style:{color:"var(--text-faint)"},children:["Read-only. ",r?.passwordRequired?"Password-protected.":"Token-protected."," v0.1.0"]})]})}function _m(e){try{return new URL(e).searchParams.get("token")}catch{return null}}function Pm(){return i.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 192 192",children:[i.jsx("rect",{width:"192",height:"192",rx:"42",fill:"var(--bg-elevated)"}),i.jsx("circle",{cx:"96",cy:"96",r:"48",fill:"none",stroke:"var(--accent)",strokeWidth:"10"}),i.jsx("circle",{cx:"96",cy:"96",r:"14",fill:"var(--accent)"}),i.jsx("path",{d:"M96 32 v18 M96 142 v18 M32 96 h18 M142 96 h18",stroke:"var(--accent)",strokeWidth:"8",strokeLinecap:"round"})]})}/**
|
|
68
|
-
* @license lucide-react v1.16.0 - ISC
|
|
69
|
-
*
|
|
70
|
-
* This source code is licensed under the ISC license.
|
|
71
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/const Nd=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
73
|
-
* @license lucide-react v1.16.0 - ISC
|
|
74
|
-
*
|
|
75
|
-
* This source code is licensed under the ISC license.
|
|
76
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
-
*/const Lm=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
78
|
-
* @license lucide-react v1.16.0 - ISC
|
|
79
|
-
*
|
|
80
|
-
* This source code is licensed under the ISC license.
|
|
81
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
-
*/const Tm=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/**
|
|
83
|
-
* @license lucide-react v1.16.0 - ISC
|
|
84
|
-
*
|
|
85
|
-
* This source code is licensed under the ISC license.
|
|
86
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
-
*/const Ga=e=>{const t=Tm(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
|
88
|
-
* @license lucide-react v1.16.0 - ISC
|
|
89
|
-
*
|
|
90
|
-
* This source code is licensed under the ISC license.
|
|
91
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
-
*/var So={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
93
|
-
* @license lucide-react v1.16.0 - ISC
|
|
94
|
-
*
|
|
95
|
-
* This source code is licensed under the ISC license.
|
|
96
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
-
*/const Rm=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},zm=g.createContext({}),Im=()=>g.useContext(zm),Mm=g.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:l="",children:o,iconNode:s,...a},u)=>{const{size:d=24,strokeWidth:h=2,absoluteStrokeWidth:p=!1,color:v="currentColor",className:x=""}=Im()??{},w=r??p?Number(n??h)*24/Number(t??d):n??h;return g.createElement("svg",{ref:u,...So,width:t??d??So.width,height:t??d??So.height,stroke:e??v,strokeWidth:w,className:Nd("lucide",x,l),...!o&&!Rm(a)&&{"aria-hidden":"true"},...a},[...s.map(([y,j])=>g.createElement(y,j)),...Array.isArray(o)?o:[o]])});/**
|
|
98
|
-
* @license lucide-react v1.16.0 - ISC
|
|
99
|
-
*
|
|
100
|
-
* This source code is licensed under the ISC license.
|
|
101
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
102
|
-
*/const F=(e,t)=>{const n=g.forwardRef(({className:r,...l},o)=>g.createElement(Mm,{ref:o,iconNode:t,className:Nd(`lucide-${Lm(Ga(e))}`,`lucide-${e}`,r),...l}));return n.displayName=Ga(e),n};/**
|
|
103
|
-
* @license lucide-react v1.16.0 - ISC
|
|
104
|
-
*
|
|
105
|
-
* This source code is licensed under the ISC license.
|
|
106
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
107
|
-
*/const Om=[["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"}]],$m=F("activity",Om);/**
|
|
108
|
-
* @license lucide-react v1.16.0 - ISC
|
|
109
|
-
*
|
|
110
|
-
* This source code is licensed under the ISC license.
|
|
111
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
112
|
-
*/const Fm=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Um=F("check",Fm);/**
|
|
113
|
-
* @license lucide-react v1.16.0 - ISC
|
|
114
|
-
*
|
|
115
|
-
* This source code is licensed under the ISC license.
|
|
116
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
-
*/const Dm=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ji=F("chevron-down",Dm);/**
|
|
118
|
-
* @license lucide-react v1.16.0 - ISC
|
|
119
|
-
*
|
|
120
|
-
* This source code is licensed under the ISC license.
|
|
121
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
-
*/const Am=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Ed=F("chevron-left",Am);/**
|
|
123
|
-
* @license lucide-react v1.16.0 - ISC
|
|
124
|
-
*
|
|
125
|
-
* This source code is licensed under the ISC license.
|
|
126
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
127
|
-
*/const Bm=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],_d=F("chevron-right",Bm);/**
|
|
128
|
-
* @license lucide-react v1.16.0 - ISC
|
|
129
|
-
*
|
|
130
|
-
* This source code is licensed under the ISC license.
|
|
131
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
-
*/const Wm=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Vm=F("circle-alert",Wm);/**
|
|
133
|
-
* @license lucide-react v1.16.0 - ISC
|
|
134
|
-
*
|
|
135
|
-
* This source code is licensed under the ISC license.
|
|
136
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
-
*/const Hm=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Qm=F("circle",Hm);/**
|
|
138
|
-
* @license lucide-react v1.16.0 - ISC
|
|
139
|
-
*
|
|
140
|
-
* This source code is licensed under the ISC license.
|
|
141
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
142
|
-
*/const bm=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Km=F("copy",bm);/**
|
|
143
|
-
* @license lucide-react v1.16.0 - ISC
|
|
144
|
-
*
|
|
145
|
-
* This source code is licensed under the ISC license.
|
|
146
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
147
|
-
*/const Gm=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],jo=F("external-link",Gm);/**
|
|
148
|
-
* @license lucide-react v1.16.0 - ISC
|
|
149
|
-
*
|
|
150
|
-
* This source code is licensed under the ISC license.
|
|
151
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
152
|
-
*/const Ym=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],Ya=F("file-pen",Ym);/**
|
|
153
|
-
* @license lucide-react v1.16.0 - ISC
|
|
154
|
-
*
|
|
155
|
-
* This source code is licensed under the ISC license.
|
|
156
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
157
|
-
*/const Xm=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],js=F("file-text",Xm);/**
|
|
158
|
-
* @license lucide-react v1.16.0 - ISC
|
|
159
|
-
*
|
|
160
|
-
* This source code is licensed under the ISC license.
|
|
161
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
162
|
-
*/const qm=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],Zm=F("folder-open",qm);/**
|
|
163
|
-
* @license lucide-react v1.16.0 - ISC
|
|
164
|
-
*
|
|
165
|
-
* This source code is licensed under the ISC license.
|
|
166
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
167
|
-
*/const Jm=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],ev=F("git-branch",Jm);/**
|
|
168
|
-
* @license lucide-react v1.16.0 - ISC
|
|
169
|
-
*
|
|
170
|
-
* This source code is licensed under the ISC license.
|
|
171
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
172
|
-
*/const tv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],nv=F("globe",tv);/**
|
|
173
|
-
* @license lucide-react v1.16.0 - ISC
|
|
174
|
-
*
|
|
175
|
-
* This source code is licensed under the ISC license.
|
|
176
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
177
|
-
*/const rv=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],Xa=F("hash",rv);/**
|
|
178
|
-
* @license lucide-react v1.16.0 - ISC
|
|
179
|
-
*
|
|
180
|
-
* This source code is licensed under the ISC license.
|
|
181
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
182
|
-
*/const lv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],ov=F("image",lv);/**
|
|
183
|
-
* @license lucide-react v1.16.0 - ISC
|
|
184
|
-
*
|
|
185
|
-
* This source code is licensed under the ISC license.
|
|
186
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
187
|
-
*/const sv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],iv=F("info",sv);/**
|
|
188
|
-
* @license lucide-react v1.16.0 - ISC
|
|
189
|
-
*
|
|
190
|
-
* This source code is licensed under the ISC license.
|
|
191
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
192
|
-
*/const av=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],uv=F("message-square",av);/**
|
|
193
|
-
* @license lucide-react v1.16.0 - ISC
|
|
194
|
-
*
|
|
195
|
-
* This source code is licensed under the ISC license.
|
|
196
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
197
|
-
*/const cv=[["path",{d:"M5 12h14",key:"1ays0h"}]],dv=F("minus",cv);/**
|
|
198
|
-
* @license lucide-react v1.16.0 - ISC
|
|
199
|
-
*
|
|
200
|
-
* This source code is licensed under the ISC license.
|
|
201
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
202
|
-
*/const fv=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],pv=F("paperclip",fv);/**
|
|
203
|
-
* @license lucide-react v1.16.0 - ISC
|
|
204
|
-
*
|
|
205
|
-
* This source code is licensed under the ISC license.
|
|
206
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
207
|
-
*/const hv=[["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"}]],mv=F("rotate-ccw",hv);/**
|
|
208
|
-
* @license lucide-react v1.16.0 - ISC
|
|
209
|
-
*
|
|
210
|
-
* This source code is licensed under the ISC license.
|
|
211
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
212
|
-
*/const vv=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],yv=F("search",vv);/**
|
|
213
|
-
* @license lucide-react v1.16.0 - ISC
|
|
214
|
-
*
|
|
215
|
-
* This source code is licensed under the ISC license.
|
|
216
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
217
|
-
*/const gv=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],xv=F("settings",gv);/**
|
|
218
|
-
* @license lucide-react v1.16.0 - ISC
|
|
219
|
-
*
|
|
220
|
-
* This source code is licensed under the ISC license.
|
|
221
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
222
|
-
*/const wv=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],kv=F("terminal",wv);/**
|
|
223
|
-
* @license lucide-react v1.16.0 - ISC
|
|
224
|
-
*
|
|
225
|
-
* This source code is licensed under the ISC license.
|
|
226
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
227
|
-
*/const Sv=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Pd=F("wrench",Sv);/**
|
|
228
|
-
* @license lucide-react v1.16.0 - ISC
|
|
229
|
-
*
|
|
230
|
-
* This source code is licensed under the ISC license.
|
|
231
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
232
|
-
*/const jv=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ld=F("x",jv);/**
|
|
233
|
-
* @license lucide-react v1.16.0 - ISC
|
|
234
|
-
*
|
|
235
|
-
* This source code is licensed under the ISC license.
|
|
236
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
237
|
-
*/const Cv=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Nv=F("zap",Cv),Td={running:{color:"var(--status-running)",label:"Running",pulse:!0,quiet:!1,Icon:Qm},"running-tool":{color:"var(--status-tool)",label:"Tool running",pulse:!0,quiet:!1,Icon:Pd},"awaiting-user":{color:"var(--status-waiting)",label:"Awaiting your reply",pulse:!1,quiet:!1,Icon:uv},idle:{color:"var(--status-idle)",label:"Idle",pulse:!1,quiet:!0,Icon:dv},errored:{color:"var(--status-error)",label:"Error",pulse:!1,quiet:!1,Icon:Vm},compacted:{color:"var(--text-faint)",label:"Compacted",pulse:!1,quiet:!0,Icon:mv}};function Rd({status:e,size:t=22}){const n=Td[e];if(n.quiet)return i.jsx("span",{title:n.label,"aria-label":n.label,style:{display:"inline-block",width:8,height:8,borderRadius:"50%",background:n.color,flexShrink:0,margin:`${(t-8)/2}px`,opacity:.55}});const{Icon:r}=n,l=Math.round(t*.58);return i.jsx("span",{title:n.label,"aria-label":n.label,className:n.pulse?"pulse-dot":"",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:t,height:t,borderRadius:"50%",background:n.color,color:"#fff",flexShrink:0,boxShadow:n.pulse?`0 0 0 4px ${n.color}22`:void 0},children:i.jsx(r,{size:l,strokeWidth:2.5})})}function Ev(e){return Td[e].label}function zd({source:e,size:t=14,className:n}){const r={width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,className:n};return e==="cursor"?i.jsx("svg",{...r,children:i.jsx("path",{d:"M5 3.5 L19.5 11.5 L13 12.5 L17 19.5 L14 21 L10.5 14 L5 19 Z"})}):e==="cowork"?i.jsxs("svg",{...r,children:[i.jsx("path",{d:"M12 3 L13 9 L19 8 L14.5 12 L19 16 L13 15 L12 21 L11 15 L5 16 L9.5 12 L5 8 L11 9 Z",opacity:"0.85"}),i.jsx("path",{d:"M16 16 a3 3 0 1 0 0 -4",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}):i.jsx("svg",{...r,children:i.jsx("path",{d:"M12 2.5 L13.2 9.2 L19.8 8.3 L14.7 12 L19.8 15.7 L13.2 14.8 L12 21.5 L10.8 14.8 L4.2 15.7 L9.3 12 L4.2 8.3 L10.8 9.2 Z"})})}function Id(e,t=Date.now()){if(!e)return"—";const n=Math.max(0,t-e);return n<5e3?"just now":n<6e4?`${Math.floor(n/1e3)}s ago`:n<36e5?`${Math.floor(n/6e4)}m ago`:n<864e5?`${Math.floor(n/36e5)}h ago`:new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Ci(e){return new Date(e).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}const qa={"claude-code":{sub:null,color:"var(--accent)",bg:"rgba(217, 119, 87, 0.14)"},cowork:{sub:"cowork",color:"#a89df7",bg:"rgba(155, 135, 245, 0.14)"},cursor:{sub:null,color:"#5fb9ff",bg:"rgba(77, 171, 247, 0.14)"}};function _v(e){switch(e){case"running":case"running-tool":return"var(--status-running)";case"awaiting-user":return"var(--status-waiting)";case"errored":return"var(--status-error)";case"idle":case"compacted":return"transparent"}}function Pv({session:e,now:t}){const n=e.customTitle??e.aiTitle,r=e.lastUserMessagePreview||e.gitBranch||"",l=e.currentActivity||"",o=qa[e.source]??qa["claude-code"],s=_v(e.status);return i.jsx(mr,{to:`/s/${e.id}`,className:"block pl-3 pr-4 py-3 border-b active:bg-bg-subtle transition-colors",style:{borderBottomColor:"var(--border)",boxShadow:`inset 3px 0 0 ${s}`},children:i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx("div",{className:"pt-1",children:i.jsx(Rd,{status:e.status,size:18})}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[i.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[i.jsx("span",{className:"flex-shrink-0 inline-flex items-center justify-center rounded",style:{color:o.color,background:o.bg,width:"20px",height:"20px"},"aria-label":e.source,title:e.source,children:i.jsx(zd,{source:e.source,size:12})}),i.jsxs("div",{className:"text-xs truncate min-w-0",style:{color:"var(--text-faint)"},children:[e.projectLabel.replace(/\s*\/\s*/g," · "),o.sub&&i.jsxs("span",{className:"ml-1.5 text-[10px] uppercase tracking-wider",style:{color:o.color},children:["· ",o.sub]}),e.isSubagent&&i.jsx("span",{className:"ml-1.5",style:{color:"var(--accent)"},children:"· subagent"})]})]}),i.jsx("div",{className:"text-[11px] flex-shrink-0 tabular-nums",style:{color:"var(--text-faint)",fontFamily:"var(--font-mono)"},children:Id(e.lastUserMessageAt||e.lastEventAt,t)})]}),i.jsx("div",{className:"text-sm font-medium mt-1 truncate leading-tight",style:{color:"var(--text)"},children:n||r||i.jsx("span",{style:{color:"var(--text-faint)",fontStyle:"italic"},children:"no title yet"})}),n&&r&&i.jsx("div",{className:"text-xs mt-0.5 truncate",style:{color:"var(--text-muted)"},children:r}),l&&i.jsxs("div",{className:"text-[11px] mt-1 truncate inline-flex items-center gap-1",style:{color:"var(--text-muted)",fontFamily:"var(--font-mono)"},children:[i.jsx("span",{className:"inline-block w-1 h-1 rounded-full",style:{background:s!=="transparent"?s:"var(--text-faint)"}}),l]})]})]})})}const Lv={connected:{color:"var(--status-running)",label:"live"},connecting:{color:"var(--status-tool)",label:"…"},disconnected:{color:"var(--text-faint)",label:"offline"},unauthorized:{color:"var(--status-error)",label:"auth"},error:{color:"var(--status-error)",label:"error"}};function Tv({status:e}){const t=Lv[e],n=e==="connecting"||e==="connected";return i.jsxs("div",{className:"text-[10px] px-2 py-1 rounded-full flex items-center gap-1.5 uppercase tracking-wider",style:{background:"var(--bg-subtle)",border:"1px solid var(--border)",color:"var(--text-faint)"},title:`Connection: ${t.label}`,children:[i.jsx("span",{className:n?"pulse-dot":"",style:{width:6,height:6,borderRadius:"50%",background:t.color,display:"inline-block"}}),i.jsx("span",{children:t.label})]})}const ll=[{id:"all",label:"All",matches:()=>!0},{id:"claude-code",label:"Claude",iconSource:"claude-code",matches:e=>e.source==="claude-code"},{id:"cowork",label:"Cowork",iconSource:"cowork",matches:e=>e.source==="cowork"},{id:"cursor",label:"Cursor",iconSource:"cursor",matches:e=>e.source==="cursor"},{id:"chat",label:"Chat",disabled:!0,matches:()=>!1}];function Rv(){const e=Y(y=>y.sessions),t=Y(y=>y.connection),[n,r]=g.useState(Date.now()),[l,o]=g.useState("all"),[s,a]=g.useState(""),u=g.useRef(null),[d,h]=g.useState({left:!1,right:!1}),p=g.useCallback(()=>{const y=u.current;if(!y)return;const j=y.scrollLeft>4,f=y.scrollLeft+y.clientWidth<y.scrollWidth-4;h(c=>c.left===j&&c.right===f?c:{left:j,right:f})},[]);g.useLayoutEffect(()=>(p(),window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)),[p]),g.useEffect(()=>{const y=setInterval(()=>r(Date.now()),5e3);return()=>clearInterval(y)},[]);const v=g.useMemo(()=>jm(e),[e,n]),x=g.useMemo(()=>{const y={all:0,"claude-code":0,cowork:0,cursor:0};for(const j of v){if(j.status==="compacted")continue;y.all+=1;const f=j.source;f in y&&(y[f]+=1)}return y},[v]),w=g.useMemo(()=>{const y=ll.find(f=>f.id===l)??ll[0];let j=v.filter(f=>f.status!=="compacted"&&y.matches(f));if(s.trim()){const f=s.toLowerCase();j=j.filter(c=>c.projectLabel.toLowerCase().includes(f)||(c.aiTitle??"").toLowerCase().includes(f)||(c.customTitle??"").toLowerCase().includes(f)||(c.lastUserMessagePreview??"").toLowerCase().includes(f))}return j},[v,l,s]);return i.jsxs("div",{className:"flex flex-col flex-1 min-h-full",children:[i.jsxs("header",{className:"sticky top-0 z-20 safe-top safe-x px-4 pt-3 pb-2.5",style:{background:"var(--bg)",borderBottom:"1px solid var(--border)"},children:[i.jsxs("div",{className:"flex items-center justify-between mb-2.5",children:[i.jsxs("div",{className:"flex items-baseline gap-2 min-w-0",children:[i.jsx("h1",{className:"text-base font-semibold tracking-tight",style:{color:"var(--text)"},children:"Sessions"}),i.jsxs("span",{className:"text-[11px] tabular-nums",style:{color:"var(--text-faint)",fontFamily:"var(--font-mono)"},children:[w.length,w.length!==x.all&&i.jsxs("span",{style:{opacity:.6},children:[" · ",x.all]})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(Tv,{status:t.status}),i.jsx(mr,{to:"/settings",className:"flex items-center justify-center w-8 h-8 rounded-md transition-colors hover:opacity-80",style:{background:"var(--bg-subtle)",color:"var(--text-muted)"},"aria-label":"Settings",children:i.jsx(xv,{size:15})})]})]}),i.jsx("input",{value:s,onChange:y=>a(y.target.value),placeholder:"Filter sessions…",className:"w-full px-3 py-1.5 rounded-md text-sm mb-2 focus:outline-none focus:border-accent",style:{background:"var(--bg-elevated)",color:"var(--text)",border:"1px solid var(--border)"}}),i.jsxs("div",{className:"relative -mx-1",children:[i.jsx("div",{ref:u,onScroll:p,className:"flex items-center gap-1.5 overflow-x-auto no-scrollbar px-1 pb-0.5",children:ll.map(y=>{const j=l===y.id,f=y.id==="chat"?null:x[y.id]??0;return i.jsxs("button",{onClick:()=>!y.disabled&&o(y.id),disabled:y.disabled,title:y.disabled?"Claude.ai chats live in the cloud — coming soon":void 0,className:"text-xs px-2.5 py-1 rounded-full flex items-center gap-1.5 flex-shrink-0 font-medium transition-colors",style:{background:j?"var(--accent)":"var(--bg-subtle)",color:j?"white":y.disabled?"var(--text-faint)":"var(--text-muted)",border:`1px solid ${j?"var(--accent)":"var(--border)"}`,opacity:y.disabled?.45:1,cursor:y.disabled?"not-allowed":"pointer"},children:[y.iconSource&&i.jsx(zd,{source:y.iconSource,size:11}),i.jsx("span",{children:y.label}),f!==null&&f>0&&i.jsx("span",{className:"text-[10px] px-1.5 rounded-full tabular-nums leading-none py-px",style:{background:j?"rgba(255,255,255,0.22)":"var(--bg)",color:j?"white":"var(--text-faint)",minWidth:"18px",textAlign:"center"},children:f}),y.disabled&&i.jsx("span",{className:"text-[8px] uppercase tracking-wider font-semibold px-1 rounded",style:{background:"var(--bg)",color:"var(--text-faint)"},children:"soon"})]},y.id)})}),i.jsx("div",{"aria-hidden":"true",className:"absolute left-0 top-0 bottom-0 w-5 pointer-events-none transition-opacity",style:{background:"linear-gradient(to left, transparent, var(--bg) 70%)",opacity:d.left?1:0}}),i.jsx("div",{"aria-hidden":"true",className:"absolute right-0 top-0 bottom-0 w-5 pointer-events-none transition-opacity",style:{background:"linear-gradient(to right, transparent, var(--bg) 70%)",opacity:d.right?1:0}})]})]}),i.jsx("main",{className:"flex-1 overflow-y-auto safe-bottom",style:{background:"var(--bg)"},children:w.length===0?i.jsx(zv,{filter:l,totalCount:x.all,onShowAll:()=>o("all")}):i.jsx("ul",{children:w.map(y=>i.jsx("li",{children:i.jsx(Pv,{session:y,now:n})},y.id))})})]})}function zv({filter:e,totalCount:t,onShowAll:n}){if(t===0)return i.jsxs("div",{className:"px-6 pt-16 text-center",children:[i.jsx("div",{className:"text-4xl mb-2",children:"·"}),i.jsx("h2",{className:"text-base font-medium mb-1",style:{color:"var(--text)"},children:"Nothing yet"}),i.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"Start a Claude Code (or Cursor) session on your desktop — it'll appear here in real time."})]});const r=ll.find(l=>l.id===e)?.label??"this view";return i.jsxs("div",{className:"px-6 pt-16 text-center",children:[i.jsxs("h2",{className:"text-base font-medium mb-1",style:{color:"var(--text)"},children:["Nothing in ",r]}),i.jsx("p",{className:"text-sm mb-4",style:{color:"var(--text-muted)"},children:e==="cursor"?"No Cursor sessions found — open Cursor and chat there to see sessions here.":`Try the All tab — ${t} session${t===1?"":"s"} across other sources.`}),e!=="all"&&i.jsx("button",{onClick:n,className:"text-sm px-3 py-2 rounded-md",style:{background:"var(--accent)",color:"white"},children:"Show all"})]})}function Md({src:e,mediaType:t,sizeBytes:n,onClose:r}){return g.useEffect(()=>{const l=o=>{o.key==="Escape"&&r()};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[r]),g.useEffect(()=>{const l=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=l}},[]),i.jsxs("div",{role:"dialog","aria-modal":"true",onClick:r,className:"fixed inset-0 z-50 flex items-center justify-center safe-top safe-bottom safe-x",style:{background:"rgba(0,0,0,0.85)"},children:[i.jsx("button",{type:"button",onClick:l=>{l.stopPropagation(),r()},className:"absolute top-3 right-3 flex items-center justify-center w-9 h-9 rounded-full",style:{background:"rgba(255,255,255,0.12)",color:"white"},"aria-label":"Close",children:i.jsx(Ld,{size:18})}),i.jsx("img",{src:e,alt:"",onClick:l=>l.stopPropagation(),style:{maxWidth:"100%",maxHeight:"100%",objectFit:"contain",padding:"2.5rem 1rem"}}),i.jsxs("div",{className:"absolute bottom-2 left-0 right-0 text-center text-[11px]",style:{color:"rgba(255,255,255,0.55)"},children:[t.replace("image/","").toUpperCase()," · ",Iv(n)]})]})}function Iv(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}const Co=800;function Mv({event:e}){return e.type==="user"?i.jsx(Ov,{event:e}):e.type==="assistant"?i.jsx(Fv,{event:e}):e.type==="thinking"?i.jsx(Uv,{event:e}):e.type==="summary"?i.jsx(Za,{event:e,label:"Session compacted"}):e.type==="attachment"?i.jsx(Dv,{event:e}):i.jsx(Za,{event:e,label:e.text??"system"})}function Ov({event:e}){const t=e.text??"",n=(e.images?.length??0)>0;if(!n&&(t.startsWith("<command-name>")||t.startsWith("<local-command-stdout>"))||!t&&!n)return null;const r=t.startsWith("<command-name>")||t.startsWith("<local-command-stdout>")?"":t;return i.jsxs("div",{className:"flex flex-col items-end my-3 slide-in",children:[i.jsx(Ni,{ts:e.ts}),i.jsxs("div",{className:"max-w-[88%] rounded-lg px-3.5 py-2.5 mt-1",style:{background:"var(--accent-bg)",border:"1px solid var(--accent-soft)",color:"var(--text)"},children:[i.jsx("div",{className:"text-[10px] uppercase tracking-wider mb-1",style:{color:"var(--accent)"},children:"You"}),e.images&&e.images.length>0&&i.jsx($v,{images:e.images}),r&&i.jsx("div",{className:"whitespace-pre-wrap break-words text-sm",style:{lineHeight:1.5},children:r})]})]})}function $v({images:e}){const t=Y(l=>l.token),[n,r]=g.useState(null);return t?i.jsxs(i.Fragment,{children:[i.jsx("div",{className:`flex flex-wrap gap-1.5 ${e.length>0?"mb-2":""}`,children:e.map(l=>{const o=`/api/attachment/${l.hash}?token=${encodeURIComponent(t)}`;return i.jsx("button",{type:"button",onClick:()=>r(l),className:"block rounded overflow-hidden flex-shrink-0",style:{background:"var(--bg-subtle)",border:"1px solid var(--border)",padding:0},"aria-label":"View image",children:i.jsx("img",{src:o,alt:"",loading:"lazy",style:{maxWidth:"200px",maxHeight:"160px",display:"block",objectFit:"cover"}})},l.hash)})}),n&&i.jsx(Md,{src:`/api/attachment/${n.hash}?token=${encodeURIComponent(t)}`,mediaType:n.mediaType,sizeBytes:n.sizeBytes,onClose:()=>r(null)})]}):null}function Fv({event:e}){const[t,n]=g.useState(!1);if(!e.text&&!e.thinking)return null;const r=e.text??"",l=!t&&r.length>Co?r.slice(0,Co)+"…":r,o=(e.inputTokens??0)+(e.outputTokens??0);return i.jsxs("div",{className:"flex flex-col items-start my-3 slide-in",children:[i.jsx(Ni,{ts:e.ts}),i.jsxs("div",{className:"max-w-[92%] rounded-lg px-3.5 py-2.5 mt-1",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)",color:"var(--text)"},children:[i.jsxs("div",{className:"text-[10px] uppercase tracking-wider mb-1 flex items-center gap-2",style:{color:"var(--text-faint)"},children:[i.jsx("span",{children:"Claude"}),e.model&&i.jsxs("span",{children:["· ",e.model.replace("claude-","").replace("-20"," ").split(" ")[0]]}),o>0&&i.jsxs("span",{children:["· ",o.toLocaleString()," tok"]})]}),e.thinking&&i.jsxs("details",{className:"mb-2",style:{color:"var(--text-faint)"},children:[i.jsx("summary",{className:"cursor-pointer text-xs",children:"Thinking"}),i.jsx("div",{className:"mt-1 text-xs whitespace-pre-wrap",style:{fontFamily:"var(--font-serif)"},children:e.thinking})]}),e.text&&i.jsxs("div",{className:"prose-claude",children:[l,!t&&r.length>Co&&i.jsx("button",{onClick:()=>n(!0),className:"ml-2 underline text-xs",style:{color:"var(--accent)",fontFamily:"var(--font-sans)"},children:"Show full"})]})]})]})}function Uv({event:e}){return e.thinking?i.jsxs("div",{className:"flex flex-col items-start my-2 slide-in",children:[i.jsx(Ni,{ts:e.ts}),i.jsxs("div",{className:"max-w-[92%] rounded-lg px-3.5 py-2 mt-1",style:{background:"var(--bg-subtle)",border:"1px dashed var(--border)",color:"var(--text-muted)"},children:[i.jsx("div",{className:"text-[10px] uppercase tracking-wider mb-1",style:{color:"var(--text-faint)"},children:"Thinking"}),i.jsx("div",{className:"text-sm whitespace-pre-wrap",style:{fontFamily:"var(--font-serif)"},children:e.thinking})]})]}):null}function Za({event:e,label:t}){return i.jsxs("div",{className:"my-2 flex items-center gap-2 text-xs italic",style:{color:"var(--text-faint)"},children:[i.jsx("span",{children:"—"}),i.jsx("span",{className:"truncate",children:t}),i.jsx("span",{className:"ml-auto",style:{fontFamily:"var(--font-mono)"},children:Ci(e.ts)})]})}function Dv({event:e}){const t=e.attachmentKind??"attachment";return i.jsxs("div",{className:"my-2 flex items-center gap-2 text-xs italic",style:{color:"var(--text-faint)"},children:[i.jsx(pv,{size:11}),i.jsxs("span",{className:"truncate",children:[t,e.text?` · ${e.text.slice(0,60)}`:""]}),i.jsx("span",{className:"ml-auto",style:{fontFamily:"var(--font-mono)"},children:Ci(e.ts)})]})}function Ni({ts:e}){return i.jsx("div",{className:"text-[10px] mx-1",style:{color:"var(--text-faint)",fontFamily:"var(--font-mono)"},children:Ci(e)})}function Av(e){const t=[];let n=[];const r=()=>{n.length&&(t.push({kind:"tools",pairs:n}),n=[])};for(const l of e)if(l.type==="user")r(),t.push({kind:"user",event:l});else if(l.type==="assistant")l.toolName?n.push({use:l}):(r(),(l.text||l.thinking)&&t.push({kind:"assistant",event:l}));else if(l.type==="tool_use")n.push({use:l});else if(l.type==="tool_result"){const o=l.toolUseRef,s=o?n.slice().reverse().find(a=>a.use.toolUseId===o):n.slice().reverse().find(a=>!a.result);s?s.result=l:n.push({use:Vv(l),result:l})}else if(l.type!=="thinking")if(l.type==="summary")r(),t.push({kind:"system",event:l});else if(l.type==="attachment"){const o=l.attachmentKind;o&&o!=="hook_success"&&o!=="goal_status"&&o!=="deferred_tools_delta"&&(r(),t.push({kind:"system",event:l}))}else l.type==="system"&&l.text&&!l.text.startsWith('{"operation"')&&!l.text.startsWith("{")&&(r(),t.push({kind:"system",event:l}));return r(),t}function Bv(e){if(e.length===0)return"Tool call";const n=e.map(o=>o.use).map(o=>o.toolName??"tool"),r=Ja(n[0]),l=n.every(o=>Ja(o)===r);if(e.length===1)return Od(e[0]);if(!l)return`Used ${e.length} tools`;switch(r){case"bash":return`Ran ${e.length} command${e.length>1?"s":""}`;case"read":return`Read ${e.length} file${e.length>1?"s":""}`;case"write":return`Wrote ${e.length} file${e.length>1?"s":""}`;case"edit":return`Edited ${e.length} file${e.length>1?"s":""}`;case"search":return`Searched ${e.length} time${e.length>1?"s":""}`;default:return`Used ${e.length} tools`}}function Od(e){const{use:t}=e,n=t.toolName??"tool",r=t.toolInput??{};switch(n){case"Bash":case"Bash_SIDECHAIN":return`Ran ${String(r.command??"").trim().split(`
|
|
238
|
-
`)[0].slice(0,80)}`;case"Read":return`Read ${Br(String(r.file_path??""))}`;case"Write":return`Wrote ${Br(String(r.file_path??""))}`;case"Edit":case"NotebookEdit":{const l=Br(String(r.file_path??"")),o=eu(String(r.new_string??"")),s=eu(String(r.old_string??"")),a=o||s?` +${o} -${s}`:"";return`Edited ${l}${a}`}case"Grep":return`Grepped "${String(r.pattern??"").slice(0,40)}"${r.path?` in ${Br(String(r.path))}`:""}`;case"Glob":return`Glob ${String(r.pattern??"").slice(0,40)}`;case"WebFetch":return`Fetched ${Wv(String(r.url??""))}`;case"WebSearch":return`Searched "${String(r.query??"").slice(0,50)}"`;case"Task":case"Agent":return`Started ${String(r.description??r.subagent_type??"task").slice(0,60)}`;default:return n}}function Ja(e){const t=e.toLowerCase();return t==="bash"||t.startsWith("bash_")?"bash":t==="read"?"read":t==="write"?"write":t==="edit"||t==="notebookedit"?"edit":t==="grep"||t==="glob"?"search":"other"}function Br(e){const t=e.replace(/\\/g,"/").split("/");return t.length>2?"…/"+t.slice(-2).join("/"):e}function Wv(e){try{const t=new URL(e);return t.hostname+(t.pathname.length>1?t.pathname.slice(0,30):"")}catch{return e.slice(0,40)}}function eu(e){return e?e.split(`
|
|
239
|
-
`).length:0}function Vv(e){return{sessionId:e.sessionId,ts:e.ts,type:"tool_use",toolName:"tool",toolUseId:e.toolUseRef}}function Hv(e){const t=e.toolResultText??"";if(!((e.images?.length??0)>0))return!0;const r=t.trim();return r?!/^[\[{]\s*\{?\s*"type"\s*:\s*"image"/.test(r):!1}function Qv({pairs:e,isLast:t}){const[n,r]=g.useState(!1),l=Bv(e),o=e.some(a=>a.result?.toolResultIsError),s=t&&e.some(a=>!a.result);return i.jsxs("div",{className:"my-1",children:[i.jsxs("button",{onClick:()=>r(a=>!a),className:"w-full text-left flex items-center gap-2 px-2 py-1.5 rounded-md group transition-colors",style:{color:o?"var(--status-error)":"var(--text-muted)"},children:[n?i.jsx(ji,{size:14,style:{flexShrink:0,color:"var(--text-faint)"}}):i.jsx(_d,{size:14,style:{flexShrink:0,color:"var(--text-faint)"}}),i.jsx("span",{className:"text-sm truncate",style:{color:o?"var(--status-error)":"var(--text-muted)"},children:l}),s&&i.jsx("span",{className:"ml-1 pulse-dot",style:{color:"var(--status-running)",fontSize:10},children:"●"})]}),n&&i.jsx("div",{className:"ml-5 border-l pl-3 py-1 space-y-2",style:{borderColor:"var(--border)"},children:e.map((a,u)=>i.jsx(bv,{pair:a},`${a.use.toolUseId??u}`))})]})}function bv({pair:e}){const[t,n]=g.useState(!1),r=Od(e),l=e.result?.toolResultIsError,o=!e.result;return i.jsxs("div",{children:[i.jsxs("button",{onClick:()=>n(s=>!s),className:"w-full text-left flex items-center gap-2 py-0.5 group",children:[i.jsx(Gv,{name:e.use.toolName,size:13}),i.jsx("span",{className:"text-xs truncate flex-1",style:{color:l?"var(--status-error)":"var(--text-muted)",fontFamily:"var(--font-mono)"},children:r}),o&&i.jsx("span",{className:"pulse-dot text-[10px]",style:{color:"var(--status-running)"},children:"●"}),!o&&(t?i.jsx(ji,{size:11,style:{color:"var(--text-faint)",flexShrink:0}}):i.jsx(_d,{size:11,style:{color:"var(--text-faint)",flexShrink:0}}))]}),t&&i.jsxs("div",{className:"mt-1 space-y-1",children:[i.jsx("pre",{className:"overflow-auto rounded text-xs",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)",padding:"6px 8px",maxHeight:280,fontFamily:"var(--font-mono)",color:"var(--text-muted)"},children:JSON.stringify(e.use.toolInput,null,2)}),e.result?.images&&e.result.images.length>0&&i.jsx(Kv,{images:e.result.images}),e.result&&Hv(e.result)&&i.jsx("pre",{className:"overflow-auto rounded text-xs",style:{background:l?"rgba(248,113,113,0.06)":"var(--bg-subtle)",border:`1px solid ${l?"var(--status-error)":"var(--border)"}`,padding:"6px 8px",maxHeight:280,fontFamily:"var(--font-mono)",color:l?"var(--status-error)":"var(--text-muted)"},children:(e.result.toolResultText??"").slice(0,4e3)||"(empty)"})]})]})}function Kv({images:e}){const t=Y(l=>l.token),[n,r]=g.useState(null);return t?i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"flex flex-wrap gap-1.5 mb-2",children:e.map(l=>{const o=`/api/attachment/${l.hash}?token=${encodeURIComponent(t)}`;return i.jsxs("button",{type:"button",onClick:()=>r(l),className:"block rounded overflow-hidden flex-shrink-0 group relative",style:{background:"var(--bg-subtle)",border:"1px solid var(--border)",padding:0},"aria-label":"View image",children:[i.jsx("img",{src:o,alt:"",loading:"lazy",style:{maxWidth:"240px",maxHeight:"180px",display:"block",objectFit:"contain"}}),i.jsxs("span",{className:"absolute top-1 left-1 inline-flex items-center gap-0.5 text-[9px] uppercase tracking-wider px-1 py-px rounded font-semibold",style:{background:"rgba(0,0,0,0.55)",color:"white"},children:[i.jsx(ov,{size:9})," ",l.mediaType.replace("image/","")]})]},l.hash)})}),n&&i.jsx(Md,{src:`/api/attachment/${n.hash}?token=${encodeURIComponent(t)}`,mediaType:n.mediaType,sizeBytes:n.sizeBytes,onClose:()=>r(null)})]}):null}function Gv({name:e,size:t=14}){const n=(e??"").toLowerCase(),r={flexShrink:0,color:"var(--text-faint)"};return n==="bash"||n.startsWith("bash_")?i.jsx(kv,{size:t,style:r}):n==="read"?i.jsx(js,{size:t,style:r}):n==="write"?i.jsx(Ya,{size:t,style:r}):n==="edit"||n==="notebookedit"?i.jsx(Ya,{size:t,style:r}):n==="grep"||n==="glob"?i.jsx(yv,{size:t,style:r}):n==="webfetch"||n==="websearch"?i.jsx(nv,{size:t,style:r}):n==="task"||n==="agent"?i.jsx(Nv,{size:t,style:r}):i.jsx(Pd,{size:t,style:r})}function Yv({sessionId:e,onClose:t}){const n=Y(h=>h.token),[r,l]=g.useState(null),[o,s]=g.useState(null),[a,u]=g.useState(null);g.useEffect(()=>{n&&fetch(`/api/session/${e}/info?token=${encodeURIComponent(n)}`).then(h=>h.ok?h.json():Promise.reject(h.statusText)).then(l).catch(h=>s(String(h)))},[e,n]),g.useEffect(()=>{const h=p=>{p.key==="Escape"&&t()};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[t]),g.useEffect(()=>{const h=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=h}},[]);async function d(h,p){try{await navigator.clipboard.writeText(h),u(p),setTimeout(()=>u(v=>v===p?null:v),1500)}catch{const v=document.createElement("textarea");v.value=h,v.style.position="fixed",v.style.opacity="0",document.body.appendChild(v),v.select();try{document.execCommand("copy"),u(p),setTimeout(()=>u(x=>x===p?null:x),1500)}catch{}document.body.removeChild(v)}}return i.jsx("div",{role:"dialog","aria-modal":"true",onClick:t,className:"fixed inset-0 z-50 flex items-end sm:items-center justify-center safe-top safe-x",style:{background:"rgba(0,0,0,0.55)"},children:i.jsxs("div",{onClick:h=>h.stopPropagation(),className:"w-full sm:max-w-md max-h-[85vh] overflow-y-auto rounded-t-2xl sm:rounded-2xl flex flex-col",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)",boxShadow:"var(--shadow)"},children:[i.jsxs("div",{className:"flex items-center justify-between px-4 py-3 sticky top-0",style:{background:"var(--bg-elevated)",borderBottom:"1px solid var(--border)"},children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(js,{size:16,style:{color:"var(--accent)"}}),i.jsx("h2",{className:"text-sm font-semibold",style:{color:"var(--text)"},children:"Session details"})]}),i.jsx("button",{onClick:t,className:"flex items-center justify-center w-8 h-8 rounded-md",style:{background:"var(--bg-subtle)",color:"var(--text-muted)"},"aria-label":"Close",children:i.jsx(Ld,{size:16})})]}),i.jsxs("div",{className:"px-4 py-3 space-y-3 safe-bottom",children:[o&&i.jsxs("div",{className:"text-sm",style:{color:"var(--status-error)"},children:["Failed to load: ",o]}),!r&&!o&&i.jsx("div",{className:"text-sm",style:{color:"var(--text-muted)"},children:"Loading…"}),r&&i.jsxs(i.Fragment,{children:[i.jsx(Kt,{icon:i.jsx(js,{size:13}),label:r.filePath?.startsWith("cursor:")?"Cursor DB entry":"Transcript file",children:r.filePath?i.jsx(Wr,{value:r.filePath.startsWith("cursor:")?`cursor://composer/${r.sessionId}`:r.filePath,copyKey:"filePath",copied:a,onCopy:d,secondary:r.filePath.startsWith("cursor:")?"Stored in Cursor's SQLite (~/Library/Application Support/Cursor/User/globalStorage/state.vscdb)":r.fileExists?Xv(r.fileSize??0):"file no longer exists"}):i.jsx("span",{style:{color:"var(--text-muted)"},children:"(unknown)"})}),i.jsx(Kt,{icon:i.jsx(Zm,{size:13}),label:"Project",children:i.jsx(Wr,{value:r.projectPath,copyKey:"projectPath",copied:a,onCopy:d,secondary:r.projectLabel})}),r.gitBranch&&i.jsx(Kt,{icon:i.jsx(ev,{size:13}),label:"Git branch",children:i.jsx("span",{className:"text-sm font-mono",style:{color:"var(--text)"},children:r.gitBranch})}),i.jsx(Kt,{icon:i.jsx(Xa,{size:13}),label:"Session ID",children:i.jsx(Wr,{value:r.sessionId,copyKey:"sessionId",copied:a,onCopy:d,secondary:`source: ${r.source}`})}),r.parentSessionId&&i.jsx(Kt,{icon:i.jsx(Xa,{size:13}),label:"Parent session (subagent)",children:i.jsx(Wr,{value:r.parentSessionId,copyKey:"parentSessionId",copied:a,onCopy:d})}),i.jsx(Kt,{icon:i.jsx($m,{size:13}),label:"Activity",children:i.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",style:{color:"var(--text-muted)"},children:[i.jsx(Vr,{label:"Status",value:r.status}),i.jsx(Vr,{label:"Events",value:r.eventCount.toLocaleString()}),i.jsx(Vr,{label:"Last event",value:r.lastEventAt?new Date(r.lastEventAt).toLocaleString():"—"}),i.jsx(Vr,{label:"Last user msg",value:r.lastUserMessageAt?new Date(r.lastUserMessageAt).toLocaleString():"—"})]})})]})]})]})})}function Kt({icon:e,label:t,children:n}){return i.jsxs("div",{children:[i.jsxs("div",{className:"text-[10px] uppercase tracking-wider mb-1 flex items-center gap-1.5",style:{color:"var(--text-faint)"},children:[i.jsx("span",{style:{color:"var(--text-faint)"},children:e}),t]}),n]})}function Wr({value:e,copyKey:t,copied:n,onCopy:r,secondary:l}){const o=n===t;return i.jsxs("div",{className:"flex items-start gap-2 px-2 py-1.5 rounded",style:{background:"var(--bg-subtle)",border:"1px solid var(--border)"},children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:"text-xs break-all",style:{color:"var(--text)",fontFamily:"var(--font-mono)"},children:e}),l&&i.jsx("div",{className:"text-[10px] mt-1",style:{color:"var(--text-faint)"},children:l})]}),i.jsx("button",{onClick:()=>r(e,t),className:"flex-shrink-0 flex items-center justify-center w-7 h-7 rounded transition-colors",style:{background:o?"var(--status-running)":"transparent",color:o?"white":"var(--text-muted)",border:"1px solid var(--border)"},"aria-label":"Copy",title:"Copy to clipboard",children:o?i.jsx(Um,{size:13}):i.jsx(Km,{size:13})})]})}function Vr({label:e,value:t}){return i.jsxs("div",{children:[i.jsx("div",{className:"text-[10px] uppercase tracking-wider",style:{color:"var(--text-faint)"},children:e}),i.jsx("div",{className:"text-xs",style:{color:"var(--text)"},children:t})]})}function Xv(e){return e===0?"0 B":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/1024/1024).toFixed(1)} MB`:`${(e/1024/1024/1024).toFixed(2)} GB`}const qv=[],Hr=80;function Zv(){const{id:e}=Wh(),t=Y(c=>e?c.sessions[e]:void 0),r=Y(c=>e?c.events[e]:void 0)??qv,l=Y(c=>c.token),[o,s]=g.useState(!1),[a,u]=g.useState(!0),[d,h]=g.useState(!1),[p,v]=g.useState(Hr),x=g.useRef(null),w=g.useRef(0),y=g.useRef(0),j=g.useRef(!1);g.useEffect(()=>{v(Hr),s(!1)},[e]),g.useEffect(()=>{e&&l&&!o&&(Cm({kind:"request_history",sessionId:e,limit:150}),s(!0))},[e,l,o]),g.useLayoutEffect(()=>{if(j.current&&x.current){const c=x.current;c.scrollTop=c.scrollTop+(c.scrollHeight-y.current),j.current=!1}}),g.useEffect(()=>{if(r.length>w.current&&a&&x.current){const c=x.current;c.scrollTop=c.scrollHeight}w.current=r.length},[r.length,a]),g.useEffect(()=>{const c=x.current;if(!c)return;const m=()=>{const k=c.scrollHeight-c.scrollTop-c.clientHeight<80;u(k)};return c.addEventListener("scroll",m,{passive:!0}),()=>c.removeEventListener("scroll",m)},[]);const f=g.useMemo(()=>r.filter(c=>!(c.type==="system"&&(c.text?.startsWith('{"operation"')||!c.text)||c.type==="attachment"&&(c.attachmentKind==="goal_status"||c.attachmentKind==="hook_success"))),[r]);return e?t?i.jsxs("div",{className:"flex flex-col flex-1 min-h-full",style:{background:"var(--bg)"},children:[i.jsxs("header",{className:"sticky top-0 z-20 safe-top safe-x px-4 pt-3 pb-2",style:{background:"var(--bg)",borderBottom:"1px solid var(--border)"},children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(mr,{to:"/",className:"flex items-center justify-center w-8 h-8 rounded-md",style:{background:"var(--bg-subtle)",color:"var(--accent)"},children:i.jsx(Ed,{size:18})}),i.jsx(Rd,{status:t.status,size:18}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("div",{className:"text-[10px] truncate",style:{color:"var(--text-faint)"},children:t.projectLabel}),i.jsx("div",{className:"text-sm font-medium truncate leading-tight",style:{color:"var(--text)"},children:t.customTitle??t.aiTitle??t.projectLabel}),i.jsxs("div",{className:"text-xs truncate flex items-center gap-1.5 mt-0.5",style:{color:"var(--text-faint)",fontFamily:"var(--font-mono)"},children:[i.jsx("span",{children:Ev(t.status)}),t.currentActivity&&i.jsxs("span",{children:["· ",t.currentActivity]})]})]}),i.jsxs("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[i.jsx("button",{onClick:()=>h(!0),className:"flex items-center justify-center w-7 h-7 rounded-md transition-colors",style:{background:"var(--bg-subtle)",color:"var(--text-muted)"},"aria-label":"Session details",title:"Where is this transcript stored?",children:i.jsx(iv,{size:14})}),i.jsx("div",{className:"text-xs",style:{color:"var(--text-faint)"},children:Id(t.lastEventAt)})]})]}),t.gitBranch&&i.jsxs("div",{className:"text-[10px] mt-1",style:{color:"var(--text-faint)",fontFamily:"var(--font-mono)"},children:[t.gitBranch," · ",t.id.slice(0,8)," · ",t.eventCount," events"]})]}),d&&i.jsx(Yv,{sessionId:t.id,onClose:()=>h(!1)}),i.jsx("div",{ref:x,className:"flex-1 overflow-y-auto px-3 py-2 safe-bottom",children:f.length===0?i.jsx("div",{className:"px-6 pt-16 text-center text-sm",style:{color:"var(--text-muted)"},children:"Loading session history…"}):(()=>{const c=Math.max(0,f.length-p),m=c>0?f.slice(c):f,k=Av(m);return i.jsxs(i.Fragment,{children:[c>0&&i.jsx("div",{className:"flex justify-center py-3",children:i.jsxs("button",{onClick:()=>{x.current&&(y.current=x.current.scrollHeight,j.current=!0),v(S=>S+Hr)},className:"text-xs px-4 py-1.5 rounded-full",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)",color:"var(--text-muted)"},children:["↑ Load ",Math.min(Hr,c)," older messages (",c," hidden)"]})}),k.map((S,E)=>{if(S.kind==="tools"){const L=S.pairs[0]?.use.toolUseId??`tools-${E}`;return i.jsx(Qv,{pairs:S.pairs,isLast:E===k.length-1},L)}const N=S.event;return i.jsx(Mv,{event:N},`${N.uuid??N.ts}-${E}`)})]})})()}),!a&&i.jsxs("button",{onClick:()=>{const c=x.current;c&&(c.scrollTop=c.scrollHeight,u(!0))},className:"fixed bottom-6 right-6 flex items-center gap-1.5 px-3 py-2 rounded-full text-xs font-medium shadow",style:{background:"var(--accent)",color:"white",boxShadow:"var(--shadow)"},children:[i.jsx(ji,{size:14})," jump to live"]})]}):i.jsxs("div",{className:"flex flex-col flex-1 min-h-full",children:[i.jsx("header",{className:"safe-top safe-x px-4 py-3 flex items-center gap-2 border-b",style:{borderColor:"var(--border)"},children:i.jsx(mr,{to:"/",className:"text-sm",style:{color:"var(--accent)"},children:"← Sessions"})}),i.jsx("div",{className:"flex-1 flex items-center justify-center px-6 text-center text-sm",style:{color:"var(--text-muted)"},children:"This session isn't loaded — it may have been removed."})]}):null}function Jv(){const e=Y(T=>T.setToken),t=Y(T=>T.token),n=Y(T=>T.connection),r=Y(T=>Object.keys(T.sessions).length),[l,o]=g.useState(null),[s,a]=g.useState(""),[u,d]=g.useState(!1),[h,p]=g.useState(""),[v,x]=g.useState(!1),[w,y]=g.useState(null),[j,f]=g.useState(!1),[c,m]=g.useState(null),[k,S]=g.useState(""),[E,N]=g.useState(!1),[L,D]=g.useState(!1);g.useEffect(()=>{fetch("/api/health").then(T=>T.ok?T.json():null).then(T=>T&&o(T)),fetch("/api/pairing").then(T=>T.ok?T.json():null).then(T=>{T&&(d(!0),a(T.hostLabel),m(T),x(!!T.ngrokDisabled),D(!!T.passwordRequired))}),fetch("/api/auth-info").then(T=>T.ok?T.json():null).then(T=>T&&D(!!T.passwordRequired)),t&&fetch(`/api/tunnel?token=${encodeURIComponent(t)}`).then(T=>T.ok?T.json():null).then(T=>T&&y(T))},[t]);async function z(T){const Lt=await fetch("/api/settings",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(T)});if(Lt.ok){const re=await Lt.json();re.ngrokUrl!==void 0&&(y({active:re.ngrokActive,url:re.ngrokUrl}),m(be=>be&&{...be,ngrokUrl:re.ngrokUrl,ngrokActive:re.ngrokActive,ngrokDisabled:re.ngrokDisabled,passwordRequired:re.passwordRequired})),typeof re.passwordRequired=="boolean"&&D(re.passwordRequired)}}async function we(){f(!0);try{await z({ngrokAuthtoken:h}),p("");for(let T=0;T<8&&(await new Promise(be=>setTimeout(be,750)),!!t);T++){const Lt=await fetch(`/api/tunnel?token=${encodeURIComponent(t)}`);if(!Lt.ok)continue;const re=await Lt.json();if(y(re),re.active||re.error)break}}finally{f(!1)}}async function lt(T){N(!0);try{await z({password:T?"":k}),S(""),alert(T?"Password cleared. Anyone with the pairing URL can now connect.":"Password set. Existing devices may need to re-authenticate.")}finally{N(!1)}}function Pt(){confirm("Forget this pairing? You'll need to scan again.")&&(Cd(),e(null),window.location.reload())}return i.jsxs("div",{className:"flex flex-col flex-1 min-h-full",style:{background:"var(--bg)"},children:[i.jsxs("header",{className:"safe-top safe-x px-4 py-3 flex items-center gap-2 border-b",style:{borderColor:"var(--border)"},children:[i.jsx(mr,{to:"/",className:"flex items-center justify-center w-8 h-8 rounded-md",style:{background:"var(--bg-subtle)",color:"var(--accent)"},children:i.jsx(Ed,{size:18})}),i.jsx("h1",{className:"text-base font-semibold",style:{color:"var(--text)"},children:"Settings"})]}),i.jsxs("main",{className:"flex-1 overflow-y-auto safe-bottom px-4 py-4 space-y-6",children:[i.jsxs(Gt,{title:"Connection",children:[i.jsx(Yt,{label:"Status",children:i.jsx("span",{style:{color:n.status==="connected"?"var(--status-running)":"var(--text-muted)"},children:n.status})}),i.jsx(Yt,{label:"Host",children:i.jsx("span",{children:n.hostname??l?.host??"—"})}),i.jsx(Yt,{label:"Platform",children:i.jsx("span",{children:n.platform??l?.platform??"—"})}),i.jsx(Yt,{label:"Daemon version",children:i.jsx("span",{style:{fontFamily:"var(--font-mono)"},children:n.agentVersion??l?.version??"—"})}),i.jsx(Yt,{label:"Sessions cached",children:i.jsx("span",{children:r})})]}),i.jsxs(Gt,{title:"ngrok tunnel",subtitle:"Public HTTPS URL — reach your sessions from anywhere (cellular, coffee shops, anywhere).",children:[w?.active&&w.url?i.jsxs("div",{className:"flex items-center gap-2 py-1.5",children:[i.jsx("span",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{background:"var(--status-running)"}}),i.jsx("span",{className:"text-xs flex-1 truncate",style:{color:"var(--text)",fontFamily:"var(--font-mono)"},children:w.url}),i.jsx("a",{href:w.url,target:"_blank",rel:"noreferrer",style:{color:"var(--accent)"},children:i.jsx(jo,{size:14})})]}):w?.error?i.jsxs("div",{className:"py-1.5",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{background:"var(--status-error)"}}),i.jsxs("span",{className:"text-xs font-medium",style:{color:"var(--status-error)"},children:["Tunnel failed: ",w.error.code.replace("_"," ")]})]}),i.jsx("p",{className:"text-xs mt-1 ml-4",style:{color:"var(--text-muted)"},children:w.error.hint})]}):i.jsxs("div",{className:"flex items-center gap-2 py-1.5",children:[i.jsx("span",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{background:"var(--text-faint)"}}),i.jsx("span",{className:"text-xs",style:{color:"var(--text-muted)"},children:c?.ngrokDisabled?"Disabled (LAN only)":c?.ngrokConfigured?"Connecting…":"Not configured — paste an authtoken below to enable"})]}),u&&i.jsxs("div",{className:"mt-2 pt-2",style:{borderTop:"1px solid var(--border)"},children:[!w?.active&&!v&&i.jsxs("ol",{className:"text-xs space-y-2 mb-3",style:{color:"var(--text-muted)"},children:[i.jsxs("li",{className:"flex gap-2",children:[i.jsx("span",{style:{color:"var(--accent)"},children:"1."}),i.jsxs("span",{children:["Sign up free (no credit card):"," ",i.jsxs("a",{href:"https://dashboard.ngrok.com/signup",target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5",style:{color:"var(--accent)"},children:["dashboard.ngrok.com/signup ",i.jsx(jo,{size:10})]})]})]}),i.jsxs("li",{className:"flex gap-2",children:[i.jsx("span",{style:{color:"var(--accent)"},children:"2."}),i.jsxs("span",{children:["Copy your authtoken:"," ",i.jsxs("a",{href:"https://dashboard.ngrok.com/get-started/your-authtoken",target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5",style:{color:"var(--accent)"},children:["get-started/your-authtoken ",i.jsx(jo,{size:10})]})]})]}),i.jsxs("li",{className:"flex gap-2",children:[i.jsx("span",{style:{color:"var(--accent)"},children:"3."}),i.jsx("span",{children:"Paste it below and click Save."})]})]}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx("input",{type:"password",value:h,onChange:T=>p(T.target.value),placeholder:w?.active?"Token saved — paste to replace":"Paste authtoken (e.g. 2abc...)",className:"flex-1 text-xs px-2 py-1.5 rounded",style:{background:"var(--bg)",border:"1px solid var(--border)",color:"var(--text)",fontFamily:"var(--font-mono)"}}),i.jsx("button",{onClick:we,disabled:!h.trim()||j,className:"text-xs px-3 py-1.5 rounded font-medium",style:{background:h.trim()?"var(--accent)":"var(--bg-subtle)",color:h.trim()?"white":"var(--text-muted)",opacity:j?.6:1},children:j?"Starting…":"Save"})]}),i.jsxs("label",{className:"flex items-center justify-between py-2 mt-3",children:[i.jsx("span",{className:"text-xs",style:{color:"var(--text-muted)"},children:"Disable ngrok (use LAN only)"}),i.jsx("input",{type:"checkbox",checked:v,onChange:async T=>{x(T.target.checked),await z({ngrokDisabled:T.target.checked})}})]})]})]}),u&&i.jsxs(Gt,{title:"Password protection",subtitle:"Optional. When set, every device must enter the password before connecting (recommended if ngrok is on).",children:[i.jsxs("div",{className:"flex items-center gap-2 py-1.5",children:[i.jsx("span",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{background:L?"var(--status-running)":"var(--text-faint)"}}),i.jsx("span",{className:"text-xs",style:{color:"var(--text-muted)"},children:L?"Password is set":"No password — anyone with the URL can connect"})]}),i.jsxs("div",{className:"mt-2 pt-2 flex gap-2",style:{borderTop:"1px solid var(--border)"},children:[i.jsx("input",{type:"password",value:k,onChange:T=>S(T.target.value),placeholder:L?"Enter new password to replace":"Enter a password…",className:"flex-1 text-xs px-2 py-1.5 rounded",style:{background:"var(--bg)",border:"1px solid var(--border)",color:"var(--text)"}}),i.jsx("button",{onClick:()=>lt(!1),disabled:!k||E,className:"text-xs px-3 py-1.5 rounded font-medium",style:{background:k?"var(--accent)":"var(--bg-subtle)",color:k?"white":"var(--text-muted)",opacity:E?.6:1},children:"Set"}),L&&i.jsx("button",{onClick:()=>lt(!0),disabled:E,className:"text-xs px-3 py-1.5 rounded font-medium",style:{background:"transparent",color:"var(--status-error)",border:"1px solid var(--status-error)",opacity:E?.6:1},children:"Clear"})]}),i.jsxs("p",{className:"text-[11px] mt-2",style:{color:"var(--text-faint)"},children:["Or set ",i.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:"PASSWORD=…"})," in your ",i.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:".env"})," file (env-set passwords survive restart; UI-set ones do not)."]})]}),u&&i.jsxs(Gt,{title:"Desktop preferences",subtitle:"Only visible & editable from the desktop running the daemon.",children:[i.jsx(Yt,{label:"Host label",children:i.jsx("input",{value:s,onChange:T=>a(T.target.value),onBlur:()=>z({hostLabel:s}),className:"text-sm px-2 py-1 rounded",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)",color:"var(--text)"}})}),i.jsxs("p",{className:"text-[11px] mt-2 pt-2",style:{color:"var(--text-faint)",borderTop:"1px solid var(--border)"},children:["Cowork sessions are auto-discovered when"," ",i.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:"~/Library/Application Support/Claude/local-agent-mode-sessions/"})," ","exists. Filter visibility with the source tabs on the home screen."]}),i.jsxs("p",{className:"text-[11px] mt-2",style:{color:"var(--text-faint)"},children:["Cursor sessions are auto-discovered from the Cursor IDE's SQLite store. Disable with"," ",i.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:"--no-cursor"})," or"," ",i.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:"CURSOR_DISABLED=1"}),"."]})]}),i.jsx(Gt,{title:"Pairing",children:i.jsx("button",{onClick:Pt,className:"w-full py-3 rounded-md text-sm font-medium",style:{background:"transparent",color:"var(--status-error)",border:"1px solid var(--status-error)"},children:"Unpair this device"})}),i.jsxs(Gt,{title:"About",children:[i.jsx("p",{className:"text-xs",style:{color:"var(--text-faint)"},children:"fleetwatch · read-only mobile companion for Claude Code, Cowork, and Cursor · v0.1.0"}),i.jsxs("p",{className:"text-xs mt-2",style:{color:"var(--text-faint)"},children:["Watches ",i.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:"~/.claude/projects/"})," and"," ",i.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:"~/.claude/history.jsonl"}),". Never writes to either."]})]})]})]})}function Gt({title:e,subtitle:t,children:n}){return i.jsxs("section",{className:"rounded-lg overflow-hidden",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)"},children:[i.jsxs("div",{className:"px-3 py-2",style:{borderBottom:"1px solid var(--border)"},children:[i.jsx("h2",{className:"text-xs uppercase tracking-wider",style:{color:"var(--text-faint)"},children:e}),t&&i.jsx("p",{className:"text-[11px] mt-0.5",style:{color:"var(--text-faint)"},children:t})]}),i.jsx("div",{className:"px-3 py-2",children:n})]})}function Yt({label:e,children:t}){return i.jsxs("div",{className:"flex items-center justify-between py-1.5 text-sm",children:[i.jsx("span",{style:{color:"var(--text-muted)"},children:e}),i.jsx("span",{style:{color:"var(--text)"},children:t})]})}function ey(){const e=Y(t=>t.token);return g.useEffect(()=>{if(e)return jd(e),()=>Cd()},[e]),e?i.jsxs(Ba,{children:[i.jsx(Xt,{path:"/",element:i.jsx(Rv,{})}),i.jsx(Xt,{path:"/s/:id",element:i.jsx(Zv,{})}),i.jsx(Xt,{path:"/settings",element:i.jsx(Jv,{})}),i.jsx(Xt,{path:"*",element:i.jsx(rm,{to:"/",replace:!0})})]}):i.jsx(Ba,{children:i.jsx(Xt,{path:"*",element:i.jsx(Em,{})})})}No.createRoot(document.getElementById("root")).render(i.jsx(qt.StrictMode,{children:i.jsx(dm,{children:i.jsx(ey,{})})}));
|