@a-company/paradigm 3.13.0 → 3.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,62 @@
1
+ (function(){const v=document.createElement("link").relList;if(v&&v.supports&&v.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))c(p);new MutationObserver(p=>{for(const f of p)if(f.type==="childList")for(const S of f.addedNodes)S.tagName==="LINK"&&S.rel==="modulepreload"&&c(S)}).observe(document,{childList:!0,subtree:!0});function i(p){const f={};return p.integrity&&(f.integrity=p.integrity),p.referrerPolicy&&(f.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?f.credentials="include":p.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function c(p){if(p.ep)return;p.ep=!0;const f=i(p);fetch(p.href,f)}})();function Wo(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Po={exports:{}},wr={},zo={exports:{}},ee={};/**
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 Ou;function pf(){if(Ou)return ee;Ou=1;var u=Symbol.for("react.element"),v=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),S=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),D=Symbol.iterator;function P(g){return g===null||typeof g!="object"?null:(g=D&&g[D]||g["@@iterator"],typeof g=="function"?g:null)}var F={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$=Object.assign,k={};function N(g,T,b){this.props=g,this.context=T,this.refs=k,this.updater=b||F}N.prototype.isReactComponent={},N.prototype.setState=function(g,T){if(typeof g!="object"&&typeof g!="function"&&g!=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,g,T,"setState")},N.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function M(){}M.prototype=N.prototype;function J(g,T,b){this.props=g,this.context=T,this.refs=k,this.updater=b||F}var q=J.prototype=new M;q.constructor=J,$(q,N.prototype),q.isPureReactComponent=!0;var ne=Array.isArray,we=Object.prototype.hasOwnProperty,K={current:null},ue={key:!0,ref:!0,__self:!0,__source:!0};function Ce(g,T,b){var te,le={},se=null,ce=null;if(T!=null)for(te in T.ref!==void 0&&(ce=T.ref),T.key!==void 0&&(se=""+T.key),T)we.call(T,te)&&!ue.hasOwnProperty(te)&&(le[te]=T[te]);var ie=arguments.length-2;if(ie===1)le.children=b;else if(1<ie){for(var me=Array(ie),Ye=0;Ye<ie;Ye++)me[Ye]=arguments[Ye+2];le.children=me}if(g&&g.defaultProps)for(te in ie=g.defaultProps,ie)le[te]===void 0&&(le[te]=ie[te]);return{$$typeof:u,type:g,key:se,ref:ce,props:le,_owner:K.current}}function ot(g,T){return{$$typeof:u,type:g.type,key:T,ref:g.ref,props:g.props,_owner:g._owner}}function be(g){return typeof g=="object"&&g!==null&&g.$$typeof===u}function _e(g){var T={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(b){return T[b]})}var ht=/\/+/g;function Ke(g,T){return typeof g=="object"&&g!==null&&g.key!=null?_e(""+g.key):T.toString(36)}function it(g,T,b,te,le){var se=typeof g;(se==="undefined"||se==="boolean")&&(g=null);var ce=!1;if(g===null)ce=!0;else switch(se){case"string":case"number":ce=!0;break;case"object":switch(g.$$typeof){case u:case v:ce=!0}}if(ce)return ce=g,le=le(ce),g=te===""?"."+Ke(ce,0):te,ne(le)?(b="",g!=null&&(b=g.replace(ht,"$&/")+"/"),it(le,T,b,"",function(Ye){return Ye})):le!=null&&(be(le)&&(le=ot(le,b+(!le.key||ce&&ce.key===le.key?"":(""+le.key).replace(ht,"$&/")+"/")+g)),T.push(le)),1;if(ce=0,te=te===""?".":te+":",ne(g))for(var ie=0;ie<g.length;ie++){se=g[ie];var me=te+Ke(se,ie);ce+=it(se,T,b,me,le)}else if(me=P(g),typeof me=="function")for(g=me.call(g),ie=0;!(se=g.next()).done;)se=se.value,me=te+Ke(se,ie++),ce+=it(se,T,b,me,le);else if(se==="object")throw T=String(g),Error("Objects are not valid as a React child (found: "+(T==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":T)+"). If you meant to render a collection of children, use an array instead.");return ce}function vt(g,T,b){if(g==null)return g;var te=[],le=0;return it(g,te,"","",function(se){return T.call(b,se,le++)}),te}function $e(g){if(g._status===-1){var T=g._result;T=T(),T.then(function(b){(g._status===0||g._status===-1)&&(g._status=1,g._result=b)},function(b){(g._status===0||g._status===-1)&&(g._status=2,g._result=b)}),g._status===-1&&(g._status=0,g._result=T)}if(g._status===1)return g._result.default;throw g._result}var ye={current:null},O={transition:null},X={ReactCurrentDispatcher:ye,ReactCurrentBatchConfig:O,ReactCurrentOwner:K};function V(){throw Error("act(...) is not supported in production builds of React.")}return ee.Children={map:vt,forEach:function(g,T,b){vt(g,function(){T.apply(this,arguments)},b)},count:function(g){var T=0;return vt(g,function(){T++}),T},toArray:function(g){return vt(g,function(T){return T})||[]},only:function(g){if(!be(g))throw Error("React.Children.only expected to receive a single React element child.");return g}},ee.Component=N,ee.Fragment=i,ee.Profiler=p,ee.PureComponent=J,ee.StrictMode=c,ee.Suspense=E,ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,ee.act=V,ee.cloneElement=function(g,T,b){if(g==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+g+".");var te=$({},g.props),le=g.key,se=g.ref,ce=g._owner;if(T!=null){if(T.ref!==void 0&&(se=T.ref,ce=K.current),T.key!==void 0&&(le=""+T.key),g.type&&g.type.defaultProps)var ie=g.type.defaultProps;for(me in T)we.call(T,me)&&!ue.hasOwnProperty(me)&&(te[me]=T[me]===void 0&&ie!==void 0?ie[me]:T[me])}var me=arguments.length-2;if(me===1)te.children=b;else if(1<me){ie=Array(me);for(var Ye=0;Ye<me;Ye++)ie[Ye]=arguments[Ye+2];te.children=ie}return{$$typeof:u,type:g.type,key:le,ref:se,props:te,_owner:ce}},ee.createContext=function(g){return g={$$typeof:S,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},g.Provider={$$typeof:f,_context:g},g.Consumer=g},ee.createElement=Ce,ee.createFactory=function(g){var T=Ce.bind(null,g);return T.type=g,T},ee.createRef=function(){return{current:null}},ee.forwardRef=function(g){return{$$typeof:j,render:g}},ee.isValidElement=be,ee.lazy=function(g){return{$$typeof:I,_payload:{_status:-1,_result:g},_init:$e}},ee.memo=function(g,T){return{$$typeof:C,type:g,compare:T===void 0?null:T}},ee.startTransition=function(g){var T=O.transition;O.transition={};try{g()}finally{O.transition=T}},ee.unstable_act=V,ee.useCallback=function(g,T){return ye.current.useCallback(g,T)},ee.useContext=function(g){return ye.current.useContext(g)},ee.useDebugValue=function(){},ee.useDeferredValue=function(g){return ye.current.useDeferredValue(g)},ee.useEffect=function(g,T){return ye.current.useEffect(g,T)},ee.useId=function(){return ye.current.useId()},ee.useImperativeHandle=function(g,T,b){return ye.current.useImperativeHandle(g,T,b)},ee.useInsertionEffect=function(g,T){return ye.current.useInsertionEffect(g,T)},ee.useLayoutEffect=function(g,T){return ye.current.useLayoutEffect(g,T)},ee.useMemo=function(g,T){return ye.current.useMemo(g,T)},ee.useReducer=function(g,T,b){return ye.current.useReducer(g,T,b)},ee.useRef=function(g){return ye.current.useRef(g)},ee.useState=function(g){return ye.current.useState(g)},ee.useSyncExternalStore=function(g,T,b){return ye.current.useSyncExternalStore(g,T,b)},ee.useTransition=function(){return ye.current.useTransition()},ee.version="18.3.1",ee}var Au;function Sr(){return Au||(Au=1,zo.exports=pf()),zo.exports}/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var $u;function mf(){if($u)return wr;$u=1;var u=Sr(),v=Symbol.for("react.element"),i=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,p=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function S(j,E,C){var I,D={},P=null,F=null;C!==void 0&&(P=""+C),E.key!==void 0&&(P=""+E.key),E.ref!==void 0&&(F=E.ref);for(I in E)c.call(E,I)&&!f.hasOwnProperty(I)&&(D[I]=E[I]);if(j&&j.defaultProps)for(I in E=j.defaultProps,E)D[I]===void 0&&(D[I]=E[I]);return{$$typeof:v,type:j,key:P,ref:F,props:D,_owner:p.current}}return wr.Fragment=i,wr.jsx=S,wr.jsxs=S,wr}var Uu;function hf(){return Uu||(Uu=1,Po.exports=mf()),Po.exports}var o=hf(),B=Sr();const oc=Wo(B);var Fl={},Fo={exports:{}},Qe={},Ro={exports:{}},Io={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Vu;function vf(){return Vu||(Vu=1,(function(u){function v(O,X){var V=O.length;O.push(X);e:for(;0<V;){var g=V-1>>>1,T=O[g];if(0<p(T,X))O[g]=X,O[V]=T,V=g;else break e}}function i(O){return O.length===0?null:O[0]}function c(O){if(O.length===0)return null;var X=O[0],V=O.pop();if(V!==X){O[0]=V;e:for(var g=0,T=O.length,b=T>>>1;g<b;){var te=2*(g+1)-1,le=O[te],se=te+1,ce=O[se];if(0>p(le,V))se<T&&0>p(ce,le)?(O[g]=ce,O[se]=V,g=se):(O[g]=le,O[te]=V,g=te);else if(se<T&&0>p(ce,V))O[g]=ce,O[se]=V,g=se;else break e}}return X}function p(O,X){var V=O.sortIndex-X.sortIndex;return V!==0?V:O.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;u.unstable_now=function(){return f.now()}}else{var S=Date,j=S.now();u.unstable_now=function(){return S.now()-j}}var E=[],C=[],I=1,D=null,P=3,F=!1,$=!1,k=!1,N=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function q(O){for(var X=i(C);X!==null;){if(X.callback===null)c(C);else if(X.startTime<=O)c(C),X.sortIndex=X.expirationTime,v(E,X);else break;X=i(C)}}function ne(O){if(k=!1,q(O),!$)if(i(E)!==null)$=!0,$e(we);else{var X=i(C);X!==null&&ye(ne,X.startTime-O)}}function we(O,X){$=!1,k&&(k=!1,M(Ce),Ce=-1),F=!0;var V=P;try{for(q(X),D=i(E);D!==null&&(!(D.expirationTime>X)||O&&!_e());){var g=D.callback;if(typeof g=="function"){D.callback=null,P=D.priorityLevel;var T=g(D.expirationTime<=X);X=u.unstable_now(),typeof T=="function"?D.callback=T:D===i(E)&&c(E),q(X)}else c(E);D=i(E)}if(D!==null)var b=!0;else{var te=i(C);te!==null&&ye(ne,te.startTime-X),b=!1}return b}finally{D=null,P=V,F=!1}}var K=!1,ue=null,Ce=-1,ot=5,be=-1;function _e(){return!(u.unstable_now()-be<ot)}function ht(){if(ue!==null){var O=u.unstable_now();be=O;var X=!0;try{X=ue(!0,O)}finally{X?Ke():(K=!1,ue=null)}}else K=!1}var Ke;if(typeof J=="function")Ke=function(){J(ht)};else if(typeof MessageChannel<"u"){var it=new MessageChannel,vt=it.port2;it.port1.onmessage=ht,Ke=function(){vt.postMessage(null)}}else Ke=function(){N(ht,0)};function $e(O){ue=O,K||(K=!0,Ke())}function ye(O,X){Ce=N(function(){O(u.unstable_now())},X)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(O){O.callback=null},u.unstable_continueExecution=function(){$||F||($=!0,$e(we))},u.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ot=0<O?Math.floor(1e3/O):5},u.unstable_getCurrentPriorityLevel=function(){return P},u.unstable_getFirstCallbackNode=function(){return i(E)},u.unstable_next=function(O){switch(P){case 1:case 2:case 3:var X=3;break;default:X=P}var V=P;P=X;try{return O()}finally{P=V}},u.unstable_pauseExecution=function(){},u.unstable_requestPaint=function(){},u.unstable_runWithPriority=function(O,X){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var V=P;P=O;try{return X()}finally{P=V}},u.unstable_scheduleCallback=function(O,X,V){var g=u.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?g+V:g):V=g,O){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=V+T,O={id:I++,callback:X,priorityLevel:O,startTime:V,expirationTime:T,sortIndex:-1},V>g?(O.sortIndex=V,v(C,O),i(E)===null&&O===i(C)&&(k?(M(Ce),Ce=-1):k=!0,ye(ne,V-g))):(O.sortIndex=T,v(E,O),$||F||($=!0,$e(we))),O},u.unstable_shouldYield=_e,u.unstable_wrapCallback=function(O){var X=P;return function(){var V=P;P=X;try{return O.apply(this,arguments)}finally{P=V}}}})(Io)),Io}var Wu;function gf(){return Wu||(Wu=1,Ro.exports=vf()),Ro.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 Bu;function yf(){if(Bu)return Qe;Bu=1;var u=Sr(),v=gf();function i(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 c=new Set,p={};function f(e,t){S(e,t),S(e+"Capture",t)}function S(e,t){for(p[e]=t,e=0;e<t.length;e++)c.add(t[e])}var j=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),E=Object.prototype.hasOwnProperty,C=/^[: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]*$/,I={},D={};function P(e){return E.call(D,e)?!0:E.call(I,e)?!1:C.test(e)?D[e]=!0:(I[e]=!0,!1)}function F(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 $(e,t,n,r){if(t===null||typeof t>"u"||F(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 k(e,t,n,r,l,s,a){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=s,this.removeEmptyString=a}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){N[e]=new k(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];N[t]=new k(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){N[e]=new k(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){N[e]=new k(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){N[e]=new k(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){N[e]=new k(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){N[e]=new k(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){N[e]=new k(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){N[e]=new k(e,5,!1,e.toLowerCase(),null,!1,!1)});var M=/[\-:]([a-z])/g;function J(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(M,J);N[t]=new k(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(M,J);N[t]=new k(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(M,J);N[t]=new k(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){N[e]=new k(e,1,!1,e.toLowerCase(),null,!1,!1)}),N.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){N[e]=new k(e,1,!1,e.toLowerCase(),null,!0,!0)});function q(e,t,n,r){var l=N.hasOwnProperty(t)?N[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&($(t,n,l,r)&&(n=null),r||l===null?P(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 ne=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,we=Symbol.for("react.element"),K=Symbol.for("react.portal"),ue=Symbol.for("react.fragment"),Ce=Symbol.for("react.strict_mode"),ot=Symbol.for("react.profiler"),be=Symbol.for("react.provider"),_e=Symbol.for("react.context"),ht=Symbol.for("react.forward_ref"),Ke=Symbol.for("react.suspense"),it=Symbol.for("react.suspense_list"),vt=Symbol.for("react.memo"),$e=Symbol.for("react.lazy"),ye=Symbol.for("react.offscreen"),O=Symbol.iterator;function X(e){return e===null||typeof e!="object"?null:(e=O&&e[O]||e["@@iterator"],typeof e=="function"?e:null)}var V=Object.assign,g;function T(e){if(g===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);g=t&&t[1]||""}return`
34
+ `+g+e}var b=!1;function te(e,t){if(!e||b)return"";b=!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(w){var r=w}Reflect.construct(e,[],t)}else{try{t.call()}catch(w){r=w}e.call(t.prototype)}else{try{throw Error()}catch(w){r=w}e()}}catch(w){if(w&&r&&typeof w.stack=="string"){for(var l=w.stack.split(`
35
+ `),s=r.stack.split(`
36
+ `),a=l.length-1,d=s.length-1;1<=a&&0<=d&&l[a]!==s[d];)d--;for(;1<=a&&0<=d;a--,d--)if(l[a]!==s[d]){if(a!==1||d!==1)do if(a--,d--,0>d||l[a]!==s[d]){var m=`
37
+ `+l[a].replace(" at new "," at ");return e.displayName&&m.includes("<anonymous>")&&(m=m.replace("<anonymous>",e.displayName)),m}while(1<=a&&0<=d);break}}}finally{b=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?T(e):""}function le(e){switch(e.tag){case 5:return T(e.type);case 16:return T("Lazy");case 13:return T("Suspense");case 19:return T("SuspenseList");case 0:case 2:case 15:return e=te(e.type,!1),e;case 11:return e=te(e.type.render,!1),e;case 1:return e=te(e.type,!0),e;default:return""}}function se(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 ue:return"Fragment";case K:return"Portal";case ot:return"Profiler";case Ce:return"StrictMode";case Ke:return"Suspense";case it:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _e:return(e.displayName||"Context")+".Consumer";case be:return(e._context.displayName||"Context")+".Provider";case ht:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vt:return t=e.displayName||null,t!==null?t:se(e.type)||"Memo";case $e:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}function ce(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 se(t);case 8:return t===Ce?"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 ie(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function me(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ye(e){var t=me(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,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(a){r=""+a,s.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jr(e){e._valueTracker||(e._valueTracker=Ye(e))}function Bo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=me(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Nr(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 Ml(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ho(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ie(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 Qo(e,t){t=t.checked,t!=null&&q(e,"checked",t,!1)}function Ol(e,t){Qo(e,t);var n=ie(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")?Al(e,t.type,n):t.hasOwnProperty("defaultValue")&&Al(e,t.type,ie(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ko(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 Al(e,t,n){(t!=="number"||Nr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Dn=Array.isArray;function cn(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=""+ie(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 $l(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return V({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Yo(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(i(92));if(Dn(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ie(n)}}function Go(e,t){var n=ie(t.value),r=ie(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 Xo(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Zo(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 Ul(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Zo(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var kr,Jo=(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(kr=kr||document.createElement("div"),kr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=kr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var On={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},vc=["Webkit","ms","Moz","O"];Object.keys(On).forEach(function(e){vc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),On[t]=On[e]})});function qo(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||On.hasOwnProperty(e)&&On[e]?(""+t).trim():t+"px"}function bo(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=qo(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var gc=V({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 Vl(e,t){if(t){if(gc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!="object")throw Error(i(62))}}function Wl(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 Bl=null;function Hl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ql=null,dn=null,fn=null;function ei(e){if(e=sr(e)){if(typeof Ql!="function")throw Error(i(280));var t=e.stateNode;t&&(t=Yr(t),Ql(e.stateNode,e.type,t))}}function ti(e){dn?fn?fn.push(e):fn=[e]:dn=e}function ni(){if(dn){var e=dn,t=fn;if(fn=dn=null,ei(e),t)for(e=0;e<t.length;e++)ei(t[e])}}function ri(e,t){return e(t)}function li(){}var Kl=!1;function si(e,t,n){if(Kl)return e(t,n);Kl=!0;try{return ri(e,t,n)}finally{Kl=!1,(dn!==null||fn!==null)&&(li(),ni())}}function An(e,t){var n=e.stateNode;if(n===null)return null;var r=Yr(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(i(231,t,typeof n));return n}var Yl=!1;if(j)try{var $n={};Object.defineProperty($n,"passive",{get:function(){Yl=!0}}),window.addEventListener("test",$n,$n),window.removeEventListener("test",$n,$n)}catch{Yl=!1}function yc(e,t,n,r,l,s,a,d,m){var w=Array.prototype.slice.call(arguments,3);try{t.apply(n,w)}catch(L){this.onError(L)}}var Un=!1,Er=null,Cr=!1,Gl=null,xc={onError:function(e){Un=!0,Er=e}};function wc(e,t,n,r,l,s,a,d,m){Un=!1,Er=null,yc.apply(xc,arguments)}function Sc(e,t,n,r,l,s,a,d,m){if(wc.apply(this,arguments),Un){if(Un){var w=Er;Un=!1,Er=null}else throw Error(i(198));Cr||(Cr=!0,Gl=w)}}function Zt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function oi(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 ii(e){if(Zt(e)!==e)throw Error(i(188))}function jc(e){var t=e.alternate;if(!t){if(t=Zt(e),t===null)throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var s=l.alternate;if(s===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===s.child){for(s=l.child;s;){if(s===n)return ii(l),e;if(s===r)return ii(l),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=l,r=s;else{for(var a=!1,d=l.child;d;){if(d===n){a=!0,n=l,r=s;break}if(d===r){a=!0,r=l,n=s;break}d=d.sibling}if(!a){for(d=s.child;d;){if(d===n){a=!0,n=s,r=l;break}if(d===r){a=!0,r=s,n=l;break}d=d.sibling}if(!a)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function ai(e){return e=jc(e),e!==null?ui(e):null}function ui(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ui(e);if(t!==null)return t;e=e.sibling}return null}var ci=v.unstable_scheduleCallback,di=v.unstable_cancelCallback,Nc=v.unstable_shouldYield,kc=v.unstable_requestPaint,Se=v.unstable_now,Ec=v.unstable_getCurrentPriorityLevel,Xl=v.unstable_ImmediatePriority,fi=v.unstable_UserBlockingPriority,_r=v.unstable_NormalPriority,Cc=v.unstable_LowPriority,pi=v.unstable_IdlePriority,Tr=null,gt=null;function _c(e){if(gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(Tr,e,void 0,(e.current.flags&128)===128)}catch{}}var at=Math.clz32?Math.clz32:Pc,Tc=Math.log,Lc=Math.LN2;function Pc(e){return e>>>=0,e===0?32:31-(Tc(e)/Lc|0)|0}var Lr=64,Pr=4194304;function Vn(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 zr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,s=e.pingedLanes,a=n&268435455;if(a!==0){var d=a&~l;d!==0?r=Vn(d):(s&=a,s!==0&&(r=Vn(s)))}else a=n&~l,a!==0?r=Vn(a):s!==0&&(r=Vn(s));if(r===0)return 0;if(t!==0&&t!==r&&(t&l)===0&&(l=r&-r,s=t&-t,l>=s||l===16&&(s&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-at(t),l=1<<n,r|=e[n],t&=~l;return r}function zc(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 Fc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,s=e.pendingLanes;0<s;){var a=31-at(s),d=1<<a,m=l[a];m===-1?((d&n)===0||(d&r)!==0)&&(l[a]=zc(d,t)):m<=t&&(e.expiredLanes|=d),s&=~d}}function Zl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function mi(){var e=Lr;return Lr<<=1,(Lr&4194240)===0&&(Lr=64),e}function Jl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-at(t),e[t]=n}function Rc(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-at(n),s=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~s}}function ql(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var ae=0;function hi(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var vi,bl,gi,yi,xi,es=!1,Fr=[],Pt=null,zt=null,Ft=null,Bn=new Map,Hn=new Map,Rt=[],Ic="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 wi(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":zt=null;break;case"mouseover":case"mouseout":Ft=null;break;case"pointerover":case"pointerout":Bn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hn.delete(t.pointerId)}}function Qn(e,t,n,r,l,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[l]},t!==null&&(t=sr(t),t!==null&&bl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Dc(e,t,n,r,l){switch(t){case"focusin":return Pt=Qn(Pt,e,t,n,r,l),!0;case"dragenter":return zt=Qn(zt,e,t,n,r,l),!0;case"mouseover":return Ft=Qn(Ft,e,t,n,r,l),!0;case"pointerover":var s=l.pointerId;return Bn.set(s,Qn(Bn.get(s)||null,e,t,n,r,l)),!0;case"gotpointercapture":return s=l.pointerId,Hn.set(s,Qn(Hn.get(s)||null,e,t,n,r,l)),!0}return!1}function Si(e){var t=Jt(e.target);if(t!==null){var n=Zt(t);if(n!==null){if(t=n.tag,t===13){if(t=oi(n),t!==null){e.blockedOn=t,xi(e.priority,function(){gi(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 Rr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ns(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Bl=r,n.target.dispatchEvent(r),Bl=null}else return t=sr(n),t!==null&&bl(t),e.blockedOn=n,!1;t.shift()}return!0}function ji(e,t,n){Rr(e)&&n.delete(t)}function Mc(){es=!1,Pt!==null&&Rr(Pt)&&(Pt=null),zt!==null&&Rr(zt)&&(zt=null),Ft!==null&&Rr(Ft)&&(Ft=null),Bn.forEach(ji),Hn.forEach(ji)}function Kn(e,t){e.blockedOn===t&&(e.blockedOn=null,es||(es=!0,v.unstable_scheduleCallback(v.unstable_NormalPriority,Mc)))}function Yn(e){function t(l){return Kn(l,e)}if(0<Fr.length){Kn(Fr[0],e);for(var n=1;n<Fr.length;n++){var r=Fr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Pt!==null&&Kn(Pt,e),zt!==null&&Kn(zt,e),Ft!==null&&Kn(Ft,e),Bn.forEach(t),Hn.forEach(t),n=0;n<Rt.length;n++)r=Rt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&(n=Rt[0],n.blockedOn===null);)Si(n),n.blockedOn===null&&Rt.shift()}var pn=ne.ReactCurrentBatchConfig,Ir=!0;function Oc(e,t,n,r){var l=ae,s=pn.transition;pn.transition=null;try{ae=1,ts(e,t,n,r)}finally{ae=l,pn.transition=s}}function Ac(e,t,n,r){var l=ae,s=pn.transition;pn.transition=null;try{ae=4,ts(e,t,n,r)}finally{ae=l,pn.transition=s}}function ts(e,t,n,r){if(Ir){var l=ns(e,t,n,r);if(l===null)xs(e,t,r,Dr,n),wi(e,r);else if(Dc(l,e,t,n,r))r.stopPropagation();else if(wi(e,r),t&4&&-1<Ic.indexOf(e)){for(;l!==null;){var s=sr(l);if(s!==null&&vi(s),s=ns(e,t,n,r),s===null&&xs(e,t,r,Dr,n),s===l)break;l=s}l!==null&&r.stopPropagation()}else xs(e,t,r,null,n)}}var Dr=null;function ns(e,t,n,r){if(Dr=null,e=Hl(r),e=Jt(e),e!==null)if(t=Zt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=oi(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 Dr=e,null}function Ni(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(Ec()){case Xl:return 1;case fi:return 4;case _r:case Cc:return 16;case pi:return 536870912;default:return 16}default:return 16}}var It=null,rs=null,Mr=null;function ki(){if(Mr)return Mr;var e,t=rs,n=t.length,r,l="value"in It?It.value:It.textContent,s=l.length;for(e=0;e<n&&t[e]===l[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===l[s-r];r++);return Mr=l.slice(e,1<r?1-r:void 0)}function Or(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 Ar(){return!0}function Ei(){return!1}function Ge(e){function t(n,r,l,s,a){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=s,this.target=a,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(n=e[d],this[d]=n?n(s):s[d]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ar:Ei,this.isPropagationStopped=Ei,this}return V(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=Ar)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ar)},persist:function(){},isPersistent:Ar}),t}var mn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ls=Ge(mn),Gn=V({},mn,{view:0,detail:0}),$c=Ge(Gn),ss,os,Xn,$r=V({},Gn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:as,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!==Xn&&(Xn&&e.type==="mousemove"?(ss=e.screenX-Xn.screenX,os=e.screenY-Xn.screenY):os=ss=0,Xn=e),ss)},movementY:function(e){return"movementY"in e?e.movementY:os}}),Ci=Ge($r),Uc=V({},$r,{dataTransfer:0}),Vc=Ge(Uc),Wc=V({},Gn,{relatedTarget:0}),is=Ge(Wc),Bc=V({},mn,{animationName:0,elapsedTime:0,pseudoElement:0}),Hc=Ge(Bc),Qc=V({},mn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Kc=Ge(Qc),Yc=V({},mn,{data:0}),_i=Ge(Yc),Gc={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xc={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"},Zc={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Jc(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Zc[e])?!!t[e]:!1}function as(){return Jc}var qc=V({},Gn,{key:function(e){if(e.key){var t=Gc[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Or(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xc[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:as,charCode:function(e){return e.type==="keypress"?Or(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Or(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),bc=Ge(qc),ed=V({},$r,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ti=Ge(ed),td=V({},Gn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:as}),nd=Ge(td),rd=V({},mn,{propertyName:0,elapsedTime:0,pseudoElement:0}),ld=Ge(rd),sd=V({},$r,{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}),od=Ge(sd),id=[9,13,27,32],us=j&&"CompositionEvent"in window,Zn=null;j&&"documentMode"in document&&(Zn=document.documentMode);var ad=j&&"TextEvent"in window&&!Zn,Li=j&&(!us||Zn&&8<Zn&&11>=Zn),Pi=" ",zi=!1;function Fi(e,t){switch(e){case"keyup":return id.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ri(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hn=!1;function ud(e,t){switch(e){case"compositionend":return Ri(t);case"keypress":return t.which!==32?null:(zi=!0,Pi);case"textInput":return e=t.data,e===Pi&&zi?null:e;default:return null}}function cd(e,t){if(hn)return e==="compositionend"||!us&&Fi(e,t)?(e=ki(),Mr=rs=It=null,hn=!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 Li&&t.locale!=="ko"?null:t.data;default:return null}}var dd={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 Ii(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!dd[e.type]:t==="textarea"}function Di(e,t,n,r){ti(r),t=Hr(t,"onChange"),0<t.length&&(n=new ls("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Jn=null,qn=null;function fd(e){bi(e,0)}function Ur(e){var t=wn(e);if(Bo(t))return e}function pd(e,t){if(e==="change")return t}var Mi=!1;if(j){var cs;if(j){var ds="oninput"in document;if(!ds){var Oi=document.createElement("div");Oi.setAttribute("oninput","return;"),ds=typeof Oi.oninput=="function"}cs=ds}else cs=!1;Mi=cs&&(!document.documentMode||9<document.documentMode)}function Ai(){Jn&&(Jn.detachEvent("onpropertychange",$i),qn=Jn=null)}function $i(e){if(e.propertyName==="value"&&Ur(qn)){var t=[];Di(t,qn,e,Hl(e)),si(fd,t)}}function md(e,t,n){e==="focusin"?(Ai(),Jn=t,qn=n,Jn.attachEvent("onpropertychange",$i)):e==="focusout"&&Ai()}function hd(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ur(qn)}function vd(e,t){if(e==="click")return Ur(t)}function gd(e,t){if(e==="input"||e==="change")return Ur(t)}function yd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ut=typeof Object.is=="function"?Object.is:yd;function bn(e,t){if(ut(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(!E.call(t,l)||!ut(e[l],t[l]))return!1}return!0}function Ui(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vi(e,t){var n=Ui(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=Ui(n)}}function Wi(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wi(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bi(){for(var e=window,t=Nr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Nr(e.document)}return t}function fs(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 xd(e){var t=Bi(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Wi(n.ownerDocument.documentElement,n)){if(r!==null&&fs(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,s=Math.min(r.start,l);r=r.end===void 0?s:Math.min(r.end,l),!e.extend&&s>r&&(l=r,r=s,s=l),l=Vi(n,s);var a=Vi(n,r);l&&a&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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 wd=j&&"documentMode"in document&&11>=document.documentMode,vn=null,ps=null,er=null,ms=!1;function Hi(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ms||vn==null||vn!==Nr(r)||(r=vn,"selectionStart"in r&&fs(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}),er&&bn(er,r)||(er=r,r=Hr(ps,"onSelect"),0<r.length&&(t=new ls("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vn)))}function Vr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var gn={animationend:Vr("Animation","AnimationEnd"),animationiteration:Vr("Animation","AnimationIteration"),animationstart:Vr("Animation","AnimationStart"),transitionend:Vr("Transition","TransitionEnd")},hs={},Qi={};j&&(Qi=document.createElement("div").style,"AnimationEvent"in window||(delete gn.animationend.animation,delete gn.animationiteration.animation,delete gn.animationstart.animation),"TransitionEvent"in window||delete gn.transitionend.transition);function Wr(e){if(hs[e])return hs[e];if(!gn[e])return e;var t=gn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Qi)return hs[e]=t[n];return e}var Ki=Wr("animationend"),Yi=Wr("animationiteration"),Gi=Wr("animationstart"),Xi=Wr("transitionend"),Zi=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 Dt(e,t){Zi.set(e,t),f(t,[e])}for(var vs=0;vs<Ji.length;vs++){var gs=Ji[vs],Sd=gs.toLowerCase(),jd=gs[0].toUpperCase()+gs.slice(1);Dt(Sd,"on"+jd)}Dt(Ki,"onAnimationEnd"),Dt(Yi,"onAnimationIteration"),Dt(Gi,"onAnimationStart"),Dt("dblclick","onDoubleClick"),Dt("focusin","onFocus"),Dt("focusout","onBlur"),Dt(Xi,"onTransitionEnd"),S("onMouseEnter",["mouseout","mouseover"]),S("onMouseLeave",["mouseout","mouseover"]),S("onPointerEnter",["pointerout","pointerover"]),S("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var tr="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(" "),Nd=new Set("cancel close invalid load scroll toggle".split(" ").concat(tr));function qi(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Sc(r,t,void 0,e),e.currentTarget=null}function bi(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 s=void 0;if(t)for(var a=r.length-1;0<=a;a--){var d=r[a],m=d.instance,w=d.currentTarget;if(d=d.listener,m!==s&&l.isPropagationStopped())break e;qi(l,d,w),s=m}else for(a=0;a<r.length;a++){if(d=r[a],m=d.instance,w=d.currentTarget,d=d.listener,m!==s&&l.isPropagationStopped())break e;qi(l,d,w),s=m}}}if(Cr)throw e=Gl,Cr=!1,Gl=null,e}function fe(e,t){var n=t[Es];n===void 0&&(n=t[Es]=new Set);var r=e+"__bubble";n.has(r)||(ea(t,e,2,!1),n.add(r))}function ys(e,t,n){var r=0;t&&(r|=4),ea(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function nr(e){if(!e[Br]){e[Br]=!0,c.forEach(function(n){n!=="selectionchange"&&(Nd.has(n)||ys(n,!1,e),ys(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Br]||(t[Br]=!0,ys("selectionchange",!1,t))}}function ea(e,t,n,r){switch(Ni(t)){case 1:var l=Oc;break;case 4:l=Ac;break;default:l=ts}n=l.bind(null,t,n,e),l=void 0,!Yl||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 xs(e,t,n,r,l){var s=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var d=r.stateNode.containerInfo;if(d===l||d.nodeType===8&&d.parentNode===l)break;if(a===4)for(a=r.return;a!==null;){var m=a.tag;if((m===3||m===4)&&(m=a.stateNode.containerInfo,m===l||m.nodeType===8&&m.parentNode===l))return;a=a.return}for(;d!==null;){if(a=Jt(d),a===null)return;if(m=a.tag,m===5||m===6){r=s=a;continue e}d=d.parentNode}}r=r.return}si(function(){var w=s,L=Hl(n),z=[];e:{var _=Zi.get(e);if(_!==void 0){var A=ls,W=e;switch(e){case"keypress":if(Or(n)===0)break e;case"keydown":case"keyup":A=bc;break;case"focusin":W="focus",A=is;break;case"focusout":W="blur",A=is;break;case"beforeblur":case"afterblur":A=is;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":A=Ci;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Vc;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=nd;break;case Ki:case Yi:case Gi:A=Hc;break;case Xi:A=ld;break;case"scroll":A=$c;break;case"wheel":A=od;break;case"copy":case"cut":case"paste":A=Kc;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Ti}var H=(t&4)!==0,je=!H&&e==="scroll",y=H?_!==null?_+"Capture":null:_;H=[];for(var h=w,x;h!==null;){x=h;var R=x.stateNode;if(x.tag===5&&R!==null&&(x=R,y!==null&&(R=An(h,y),R!=null&&H.push(rr(h,R,x)))),je)break;h=h.return}0<H.length&&(_=new A(_,W,null,n,L),z.push({event:_,listeners:H}))}}if((t&7)===0){e:{if(_=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",_&&n!==Bl&&(W=n.relatedTarget||n.fromElement)&&(Jt(W)||W[jt]))break e;if((A||_)&&(_=L.window===L?L:(_=L.ownerDocument)?_.defaultView||_.parentWindow:window,A?(W=n.relatedTarget||n.toElement,A=w,W=W?Jt(W):null,W!==null&&(je=Zt(W),W!==je||W.tag!==5&&W.tag!==6)&&(W=null)):(A=null,W=w),A!==W)){if(H=Ci,R="onMouseLeave",y="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(H=Ti,R="onPointerLeave",y="onPointerEnter",h="pointer"),je=A==null?_:wn(A),x=W==null?_:wn(W),_=new H(R,h+"leave",A,n,L),_.target=je,_.relatedTarget=x,R=null,Jt(L)===w&&(H=new H(y,h+"enter",W,n,L),H.target=x,H.relatedTarget=je,R=H),je=R,A&&W)t:{for(H=A,y=W,h=0,x=H;x;x=yn(x))h++;for(x=0,R=y;R;R=yn(R))x++;for(;0<h-x;)H=yn(H),h--;for(;0<x-h;)y=yn(y),x--;for(;h--;){if(H===y||y!==null&&H===y.alternate)break t;H=yn(H),y=yn(y)}H=null}else H=null;A!==null&&ta(z,_,A,H,!1),W!==null&&je!==null&&ta(z,je,W,H,!0)}}e:{if(_=w?wn(w):window,A=_.nodeName&&_.nodeName.toLowerCase(),A==="select"||A==="input"&&_.type==="file")var Q=pd;else if(Ii(_))if(Mi)Q=gd;else{Q=hd;var Y=md}else(A=_.nodeName)&&A.toLowerCase()==="input"&&(_.type==="checkbox"||_.type==="radio")&&(Q=vd);if(Q&&(Q=Q(e,w))){Di(z,Q,n,L);break e}Y&&Y(e,_,w),e==="focusout"&&(Y=_._wrapperState)&&Y.controlled&&_.type==="number"&&Al(_,"number",_.value)}switch(Y=w?wn(w):window,e){case"focusin":(Ii(Y)||Y.contentEditable==="true")&&(vn=Y,ps=w,er=null);break;case"focusout":er=ps=vn=null;break;case"mousedown":ms=!0;break;case"contextmenu":case"mouseup":case"dragend":ms=!1,Hi(z,n,L);break;case"selectionchange":if(wd)break;case"keydown":case"keyup":Hi(z,n,L)}var G;if(us)e:{switch(e){case"compositionstart":var Z="onCompositionStart";break e;case"compositionend":Z="onCompositionEnd";break e;case"compositionupdate":Z="onCompositionUpdate";break e}Z=void 0}else hn?Fi(e,n)&&(Z="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Z="onCompositionStart");Z&&(Li&&n.locale!=="ko"&&(hn||Z!=="onCompositionStart"?Z==="onCompositionEnd"&&hn&&(G=ki()):(It=L,rs="value"in It?It.value:It.textContent,hn=!0)),Y=Hr(w,Z),0<Y.length&&(Z=new _i(Z,e,null,n,L),z.push({event:Z,listeners:Y}),G?Z.data=G:(G=Ri(n),G!==null&&(Z.data=G)))),(G=ad?ud(e,n):cd(e,n))&&(w=Hr(w,"onBeforeInput"),0<w.length&&(L=new _i("onBeforeInput","beforeinput",null,n,L),z.push({event:L,listeners:w}),L.data=G))}bi(z,t)})}function rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hr(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,s=l.stateNode;l.tag===5&&s!==null&&(l=s,s=An(e,n),s!=null&&r.unshift(rr(e,s,l)),s=An(e,t),s!=null&&r.push(rr(e,s,l))),e=e.return}return r}function yn(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 s=t._reactName,a=[];n!==null&&n!==r;){var d=n,m=d.alternate,w=d.stateNode;if(m!==null&&m===r)break;d.tag===5&&w!==null&&(d=w,l?(m=An(n,s),m!=null&&a.unshift(rr(n,m,d))):l||(m=An(n,s),m!=null&&a.push(rr(n,m,d)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var kd=/\r\n?/g,Ed=/\u0000|\uFFFD/g;function na(e){return(typeof e=="string"?e:""+e).replace(kd,`
38
+ `).replace(Ed,"")}function Qr(e,t,n){if(t=na(t),na(e)!==t&&n)throw Error(i(425))}function Kr(){}var ws=null,Ss=null;function js(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 Ns=typeof setTimeout=="function"?setTimeout:void 0,Cd=typeof clearTimeout=="function"?clearTimeout:void 0,ra=typeof Promise=="function"?Promise:void 0,_d=typeof queueMicrotask=="function"?queueMicrotask:typeof ra<"u"?function(e){return ra.resolve(null).then(e).catch(Td)}:Ns;function Td(e){setTimeout(function(){throw e})}function ks(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),Yn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Yn(t)}function Mt(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 xn=Math.random().toString(36).slice(2),yt="__reactFiber$"+xn,lr="__reactProps$"+xn,jt="__reactContainer$"+xn,Es="__reactEvents$"+xn,Ld="__reactListeners$"+xn,Pd="__reactHandles$"+xn;function Jt(e){var t=e[yt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[jt]||n[yt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=la(e);e!==null;){if(n=e[yt])return n;e=la(e)}return t}e=n,n=e.parentNode}return null}function sr(e){return e=e[yt]||e[jt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function wn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function Yr(e){return e[lr]||null}var Cs=[],Sn=-1;function Ot(e){return{current:e}}function pe(e){0>Sn||(e.current=Cs[Sn],Cs[Sn]=null,Sn--)}function de(e,t){Sn++,Cs[Sn]=e.current,e.current=t}var At={},Re=Ot(At),Ue=Ot(!1),qt=At;function jn(e,t){var n=e.type.contextTypes;if(!n)return At;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},s;for(s in n)l[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ve(e){return e=e.childContextTypes,e!=null}function Gr(){pe(Ue),pe(Re)}function sa(e,t,n){if(Re.current!==At)throw Error(i(168));de(Re,t),de(Ue,n)}function oa(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(i(108,ce(e)||"Unknown",l));return V({},n,r)}function Xr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||At,qt=Re.current,de(Re,e),de(Ue,Ue.current),!0}function ia(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=oa(e,t,qt),r.__reactInternalMemoizedMergedChildContext=e,pe(Ue),pe(Re),de(Re,e)):pe(Ue),de(Ue,n)}var Nt=null,Zr=!1,_s=!1;function aa(e){Nt===null?Nt=[e]:Nt.push(e)}function zd(e){Zr=!0,aa(e)}function $t(){if(!_s&&Nt!==null){_s=!0;var e=0,t=ae;try{var n=Nt;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Nt=null,Zr=!1}catch(l){throw Nt!==null&&(Nt=Nt.slice(e+1)),ci(Xl,$t),l}finally{ae=t,_s=!1}}return null}var Nn=[],kn=0,Jr=null,qr=0,et=[],tt=0,bt=null,kt=1,Et="";function en(e,t){Nn[kn++]=qr,Nn[kn++]=Jr,Jr=e,qr=t}function ua(e,t,n){et[tt++]=kt,et[tt++]=Et,et[tt++]=bt,bt=e;var r=kt;e=Et;var l=32-at(r)-1;r&=~(1<<l),n+=1;var s=32-at(t)+l;if(30<s){var a=l-l%5;s=(r&(1<<a)-1).toString(32),r>>=a,l-=a,kt=1<<32-at(t)+l|n<<l|r,Et=s+e}else kt=1<<s|n<<l|r,Et=e}function Ts(e){e.return!==null&&(en(e,1),ua(e,1,0))}function Ls(e){for(;e===Jr;)Jr=Nn[--kn],Nn[kn]=null,qr=Nn[--kn],Nn[kn]=null;for(;e===bt;)bt=et[--tt],et[tt]=null,Et=et[--tt],et[tt]=null,kt=et[--tt],et[tt]=null}var Xe=null,Ze=null,he=!1,ct=null;function ca(e,t){var n=st(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 da(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,Xe=e,Ze=Mt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Xe=e,Ze=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=bt!==null?{id:kt,overflow:Et}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=st(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Xe=e,Ze=null,!0):!1;default:return!1}}function Ps(e){return(e.mode&1)!==0&&(e.flags&128)===0}function zs(e){if(he){var t=Ze;if(t){var n=t;if(!da(e,t)){if(Ps(e))throw Error(i(418));t=Mt(n.nextSibling);var r=Xe;t&&da(e,t)?ca(r,n):(e.flags=e.flags&-4097|2,he=!1,Xe=e)}}else{if(Ps(e))throw Error(i(418));e.flags=e.flags&-4097|2,he=!1,Xe=e}}}function fa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Xe=e}function br(e){if(e!==Xe)return!1;if(!he)return fa(e),he=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!js(e.type,e.memoizedProps)),t&&(t=Ze)){if(Ps(e))throw pa(),Error(i(418));for(;t;)ca(e,t),t=Mt(t.nextSibling)}if(fa(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ze=Mt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ze=null}}else Ze=Xe?Mt(e.stateNode.nextSibling):null;return!0}function pa(){for(var e=Ze;e;)e=Mt(e.nextSibling)}function En(){Ze=Xe=null,he=!1}function Fs(e){ct===null?ct=[e]:ct.push(e)}var Fd=ne.ReactCurrentBatchConfig;function or(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(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var l=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(a){var d=l.refs;a===null?delete d[s]:d[s]=a},t._stringRef=s,t)}if(typeof e!="string")throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function el(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ma(e){var t=e._init;return t(e._payload)}function ha(e){function t(y,h){if(e){var x=y.deletions;x===null?(y.deletions=[h],y.flags|=16):x.push(h)}}function n(y,h){if(!e)return null;for(;h!==null;)t(y,h),h=h.sibling;return null}function r(y,h){for(y=new Map;h!==null;)h.key!==null?y.set(h.key,h):y.set(h.index,h),h=h.sibling;return y}function l(y,h){return y=Yt(y,h),y.index=0,y.sibling=null,y}function s(y,h,x){return y.index=x,e?(x=y.alternate,x!==null?(x=x.index,x<h?(y.flags|=2,h):x):(y.flags|=2,h)):(y.flags|=1048576,h)}function a(y){return e&&y.alternate===null&&(y.flags|=2),y}function d(y,h,x,R){return h===null||h.tag!==6?(h=ko(x,y.mode,R),h.return=y,h):(h=l(h,x),h.return=y,h)}function m(y,h,x,R){var Q=x.type;return Q===ue?L(y,h,x.props.children,R,x.key):h!==null&&(h.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===$e&&ma(Q)===h.type)?(R=l(h,x.props),R.ref=or(y,h,x),R.return=y,R):(R=kl(x.type,x.key,x.props,null,y.mode,R),R.ref=or(y,h,x),R.return=y,R)}function w(y,h,x,R){return h===null||h.tag!==4||h.stateNode.containerInfo!==x.containerInfo||h.stateNode.implementation!==x.implementation?(h=Eo(x,y.mode,R),h.return=y,h):(h=l(h,x.children||[]),h.return=y,h)}function L(y,h,x,R,Q){return h===null||h.tag!==7?(h=un(x,y.mode,R,Q),h.return=y,h):(h=l(h,x),h.return=y,h)}function z(y,h,x){if(typeof h=="string"&&h!==""||typeof h=="number")return h=ko(""+h,y.mode,x),h.return=y,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case we:return x=kl(h.type,h.key,h.props,null,y.mode,x),x.ref=or(y,null,h),x.return=y,x;case K:return h=Eo(h,y.mode,x),h.return=y,h;case $e:var R=h._init;return z(y,R(h._payload),x)}if(Dn(h)||X(h))return h=un(h,y.mode,x,null),h.return=y,h;el(y,h)}return null}function _(y,h,x,R){var Q=h!==null?h.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return Q!==null?null:d(y,h,""+x,R);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case we:return x.key===Q?m(y,h,x,R):null;case K:return x.key===Q?w(y,h,x,R):null;case $e:return Q=x._init,_(y,h,Q(x._payload),R)}if(Dn(x)||X(x))return Q!==null?null:L(y,h,x,R,null);el(y,x)}return null}function A(y,h,x,R,Q){if(typeof R=="string"&&R!==""||typeof R=="number")return y=y.get(x)||null,d(h,y,""+R,Q);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case we:return y=y.get(R.key===null?x:R.key)||null,m(h,y,R,Q);case K:return y=y.get(R.key===null?x:R.key)||null,w(h,y,R,Q);case $e:var Y=R._init;return A(y,h,x,Y(R._payload),Q)}if(Dn(R)||X(R))return y=y.get(x)||null,L(h,y,R,Q,null);el(h,R)}return null}function W(y,h,x,R){for(var Q=null,Y=null,G=h,Z=h=0,Pe=null;G!==null&&Z<x.length;Z++){G.index>Z?(Pe=G,G=null):Pe=G.sibling;var oe=_(y,G,x[Z],R);if(oe===null){G===null&&(G=Pe);break}e&&G&&oe.alternate===null&&t(y,G),h=s(oe,h,Z),Y===null?Q=oe:Y.sibling=oe,Y=oe,G=Pe}if(Z===x.length)return n(y,G),he&&en(y,Z),Q;if(G===null){for(;Z<x.length;Z++)G=z(y,x[Z],R),G!==null&&(h=s(G,h,Z),Y===null?Q=G:Y.sibling=G,Y=G);return he&&en(y,Z),Q}for(G=r(y,G);Z<x.length;Z++)Pe=A(G,y,Z,x[Z],R),Pe!==null&&(e&&Pe.alternate!==null&&G.delete(Pe.key===null?Z:Pe.key),h=s(Pe,h,Z),Y===null?Q=Pe:Y.sibling=Pe,Y=Pe);return e&&G.forEach(function(Gt){return t(y,Gt)}),he&&en(y,Z),Q}function H(y,h,x,R){var Q=X(x);if(typeof Q!="function")throw Error(i(150));if(x=Q.call(x),x==null)throw Error(i(151));for(var Y=Q=null,G=h,Z=h=0,Pe=null,oe=x.next();G!==null&&!oe.done;Z++,oe=x.next()){G.index>Z?(Pe=G,G=null):Pe=G.sibling;var Gt=_(y,G,oe.value,R);if(Gt===null){G===null&&(G=Pe);break}e&&G&&Gt.alternate===null&&t(y,G),h=s(Gt,h,Z),Y===null?Q=Gt:Y.sibling=Gt,Y=Gt,G=Pe}if(oe.done)return n(y,G),he&&en(y,Z),Q;if(G===null){for(;!oe.done;Z++,oe=x.next())oe=z(y,oe.value,R),oe!==null&&(h=s(oe,h,Z),Y===null?Q=oe:Y.sibling=oe,Y=oe);return he&&en(y,Z),Q}for(G=r(y,G);!oe.done;Z++,oe=x.next())oe=A(G,y,Z,oe.value,R),oe!==null&&(e&&oe.alternate!==null&&G.delete(oe.key===null?Z:oe.key),h=s(oe,h,Z),Y===null?Q=oe:Y.sibling=oe,Y=oe);return e&&G.forEach(function(ff){return t(y,ff)}),he&&en(y,Z),Q}function je(y,h,x,R){if(typeof x=="object"&&x!==null&&x.type===ue&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case we:e:{for(var Q=x.key,Y=h;Y!==null;){if(Y.key===Q){if(Q=x.type,Q===ue){if(Y.tag===7){n(y,Y.sibling),h=l(Y,x.props.children),h.return=y,y=h;break e}}else if(Y.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===$e&&ma(Q)===Y.type){n(y,Y.sibling),h=l(Y,x.props),h.ref=or(y,Y,x),h.return=y,y=h;break e}n(y,Y);break}else t(y,Y);Y=Y.sibling}x.type===ue?(h=un(x.props.children,y.mode,R,x.key),h.return=y,y=h):(R=kl(x.type,x.key,x.props,null,y.mode,R),R.ref=or(y,h,x),R.return=y,y=R)}return a(y);case K:e:{for(Y=x.key;h!==null;){if(h.key===Y)if(h.tag===4&&h.stateNode.containerInfo===x.containerInfo&&h.stateNode.implementation===x.implementation){n(y,h.sibling),h=l(h,x.children||[]),h.return=y,y=h;break e}else{n(y,h);break}else t(y,h);h=h.sibling}h=Eo(x,y.mode,R),h.return=y,y=h}return a(y);case $e:return Y=x._init,je(y,h,Y(x._payload),R)}if(Dn(x))return W(y,h,x,R);if(X(x))return H(y,h,x,R);el(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,h!==null&&h.tag===6?(n(y,h.sibling),h=l(h,x),h.return=y,y=h):(n(y,h),h=ko(x,y.mode,R),h.return=y,y=h),a(y)):n(y,h)}return je}var Cn=ha(!0),va=ha(!1),tl=Ot(null),nl=null,_n=null,Rs=null;function Is(){Rs=_n=nl=null}function Ds(e){var t=tl.current;pe(tl),e._currentValue=t}function Ms(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 Tn(e,t){nl=e,Rs=_n=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(We=!0),e.firstContext=null)}function nt(e){var t=e._currentValue;if(Rs!==e)if(e={context:e,memoizedValue:t,next:null},_n===null){if(nl===null)throw Error(i(308));_n=e,nl.dependencies={lanes:0,firstContext:e}}else _n=_n.next=e;return t}var tn=null;function Os(e){tn===null?tn=[e]:tn.push(e)}function ga(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Os(t)):(n.next=l.next,l.next=n),t.interleaved=n,Ct(e,r)}function Ct(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 Ut=!1;function As(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ya(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 _t(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(re&2)!==0){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Ct(e,n)}return l=r.interleaved,l===null?(t.next=t,Os(r)):(t.next=l.next,l.next=t),r.interleaved=t,Ct(e,n)}function rl(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,ql(e,n)}}function xa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?l=s=a:s=s.next=a,n=n.next}while(n!==null);s===null?l=s=t:s=s.next=t}else l=s=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:s,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 ll(e,t,n,r){var l=e.updateQueue;Ut=!1;var s=l.firstBaseUpdate,a=l.lastBaseUpdate,d=l.shared.pending;if(d!==null){l.shared.pending=null;var m=d,w=m.next;m.next=null,a===null?s=w:a.next=w,a=m;var L=e.alternate;L!==null&&(L=L.updateQueue,d=L.lastBaseUpdate,d!==a&&(d===null?L.firstBaseUpdate=w:d.next=w,L.lastBaseUpdate=m))}if(s!==null){var z=l.baseState;a=0,L=w=m=null,d=s;do{var _=d.lane,A=d.eventTime;if((r&_)===_){L!==null&&(L=L.next={eventTime:A,lane:0,tag:d.tag,payload:d.payload,callback:d.callback,next:null});e:{var W=e,H=d;switch(_=t,A=n,H.tag){case 1:if(W=H.payload,typeof W=="function"){z=W.call(A,z,_);break e}z=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=H.payload,_=typeof W=="function"?W.call(A,z,_):W,_==null)break e;z=V({},z,_);break e;case 2:Ut=!0}}d.callback!==null&&d.lane!==0&&(e.flags|=64,_=l.effects,_===null?l.effects=[d]:_.push(d))}else A={eventTime:A,lane:_,tag:d.tag,payload:d.payload,callback:d.callback,next:null},L===null?(w=L=A,m=z):L=L.next=A,a|=_;if(d=d.next,d===null){if(d=l.shared.pending,d===null)break;_=d,d=_.next,_.next=null,l.lastBaseUpdate=_,l.shared.pending=null}}while(!0);if(L===null&&(m=z),l.baseState=m,l.firstBaseUpdate=w,l.lastBaseUpdate=L,t=l.shared.interleaved,t!==null){l=t;do a|=l.lane,l=l.next;while(l!==t)}else s===null&&(l.shared.lanes=0);ln|=a,e.lanes=a,e.memoizedState=z}}function wa(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(i(191,l));l.call(r)}}}var ir={},xt=Ot(ir),ar=Ot(ir),ur=Ot(ir);function nn(e){if(e===ir)throw Error(i(174));return e}function $s(e,t){switch(de(ur,t),de(ar,e),de(xt,ir),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ul(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ul(t,e)}pe(xt),de(xt,t)}function Ln(){pe(xt),pe(ar),pe(ur)}function Sa(e){nn(ur.current);var t=nn(xt.current),n=Ul(t,e.type);t!==n&&(de(ar,e),de(xt,n))}function Us(e){ar.current===e&&(pe(xt),pe(ar))}var ve=Ot(0);function sl(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)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Vs=[];function Ws(){for(var e=0;e<Vs.length;e++)Vs[e]._workInProgressVersionPrimary=null;Vs.length=0}var ol=ne.ReactCurrentDispatcher,Bs=ne.ReactCurrentBatchConfig,rn=0,ge=null,ke=null,Te=null,il=!1,cr=!1,dr=0,Rd=0;function Ie(){throw Error(i(321))}function Hs(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ut(e[n],t[n]))return!1;return!0}function Qs(e,t,n,r,l,s){if(rn=s,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ol.current=e===null||e.memoizedState===null?Od:Ad,e=n(r,l),cr){s=0;do{if(cr=!1,dr=0,25<=s)throw Error(i(301));s+=1,Te=ke=null,t.updateQueue=null,ol.current=$d,e=n(r,l)}while(cr)}if(ol.current=cl,t=ke!==null&&ke.next!==null,rn=0,Te=ke=ge=null,il=!1,t)throw Error(i(300));return e}function Ks(){var e=dr!==0;return dr=0,e}function wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Te===null?ge.memoizedState=Te=e:Te=Te.next=e,Te}function rt(){if(ke===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=ke.next;var t=Te===null?ge.memoizedState:Te.next;if(t!==null)Te=t,ke=e;else{if(e===null)throw Error(i(310));ke=e,e={memoizedState:ke.memoizedState,baseState:ke.baseState,baseQueue:ke.baseQueue,queue:ke.queue,next:null},Te===null?ge.memoizedState=Te=e:Te=Te.next=e}return Te}function fr(e,t){return typeof t=="function"?t(e):t}function Ys(e){var t=rt(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=ke,l=r.baseQueue,s=n.pending;if(s!==null){if(l!==null){var a=l.next;l.next=s.next,s.next=a}r.baseQueue=l=s,n.pending=null}if(l!==null){s=l.next,r=r.baseState;var d=a=null,m=null,w=s;do{var L=w.lane;if((rn&L)===L)m!==null&&(m=m.next={lane:0,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null}),r=w.hasEagerState?w.eagerState:e(r,w.action);else{var z={lane:L,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null};m===null?(d=m=z,a=r):m=m.next=z,ge.lanes|=L,ln|=L}w=w.next}while(w!==null&&w!==s);m===null?a=r:m.next=d,ut(r,t.memoizedState)||(We=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=m,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do s=l.lane,ge.lanes|=s,ln|=s,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Gs(e){var t=rt(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,s=t.memoizedState;if(l!==null){n.pending=null;var a=l=l.next;do s=e(s,a.action),a=a.next;while(a!==l);ut(s,t.memoizedState)||(We=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function ja(){}function Na(e,t){var n=ge,r=rt(),l=t(),s=!ut(r.memoizedState,l);if(s&&(r.memoizedState=l,We=!0),r=r.queue,Xs(Ca.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Te!==null&&Te.memoizedState.tag&1){if(n.flags|=2048,pr(9,Ea.bind(null,n,r,l,t),void 0,null),Le===null)throw Error(i(349));(rn&30)!==0||ka(n,t,l)}return l}function ka(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ge.updateQueue,t===null?(t={lastEffect:null,stores:null},ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ea(e,t,n,r){t.value=n,t.getSnapshot=r,_a(t)&&Ta(e)}function Ca(e,t,n){return n(function(){_a(t)&&Ta(e)})}function _a(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ut(e,n)}catch{return!0}}function Ta(e){var t=Ct(e,1);t!==null&&mt(t,e,1,-1)}function La(e){var t=wt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fr,lastRenderedState:e},t.queue=e,e=e.dispatch=Md.bind(null,ge,e),[t.memoizedState,e]}function pr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ge.updateQueue,t===null?(t={lastEffect:null,stores:null},ge.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 Pa(){return rt().memoizedState}function al(e,t,n,r){var l=wt();ge.flags|=e,l.memoizedState=pr(1|t,n,void 0,r===void 0?null:r)}function ul(e,t,n,r){var l=rt();r=r===void 0?null:r;var s=void 0;if(ke!==null){var a=ke.memoizedState;if(s=a.destroy,r!==null&&Hs(r,a.deps)){l.memoizedState=pr(t,n,s,r);return}}ge.flags|=e,l.memoizedState=pr(1|t,n,s,r)}function za(e,t){return al(8390656,8,e,t)}function Xs(e,t){return ul(2048,8,e,t)}function Fa(e,t){return ul(4,2,e,t)}function Ra(e,t){return ul(4,4,e,t)}function Ia(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 Da(e,t,n){return n=n!=null?n.concat([e]):null,ul(4,4,Ia.bind(null,t,e),n)}function Zs(){}function Ma(e,t){var n=rt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Hs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Oa(e,t){var n=rt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Hs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Aa(e,t,n){return(rn&21)===0?(e.baseState&&(e.baseState=!1,We=!0),e.memoizedState=n):(ut(n,t)||(n=mi(),ge.lanes|=n,ln|=n,e.baseState=!0),t)}function Id(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=Bs.transition;Bs.transition={};try{e(!1),t()}finally{ae=n,Bs.transition=r}}function $a(){return rt().memoizedState}function Dd(e,t,n){var r=Qt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ua(e))Va(t,n);else if(n=ga(e,t,n,r),n!==null){var l=Ae();mt(n,e,r,l),Wa(n,t,r)}}function Md(e,t,n){var r=Qt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ua(e))Va(t,l);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var a=t.lastRenderedState,d=s(a,n);if(l.hasEagerState=!0,l.eagerState=d,ut(d,a)){var m=t.interleaved;m===null?(l.next=l,Os(t)):(l.next=m.next,m.next=l),t.interleaved=l;return}}catch{}finally{}n=ga(e,t,l,r),n!==null&&(l=Ae(),mt(n,e,r,l),Wa(n,t,r))}}function Ua(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Va(e,t){cr=il=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Wa(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ql(e,n)}}var cl={readContext:nt,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},Od={readContext:nt,useCallback:function(e,t){return wt().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:za,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,al(4194308,4,Ia.bind(null,t,e),n)},useLayoutEffect:function(e,t){return al(4194308,4,e,t)},useInsertionEffect:function(e,t){return al(4,2,e,t)},useMemo:function(e,t){var n=wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=wt();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=Dd.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=wt();return e={current:e},t.memoizedState=e},useState:La,useDebugValue:Zs,useDeferredValue:function(e){return wt().memoizedState=e},useTransition:function(){var e=La(!1),t=e[0];return e=Id.bind(null,e[1]),wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ge,l=wt();if(he){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Le===null)throw Error(i(349));(rn&30)!==0||ka(r,t,n)}l.memoizedState=n;var s={value:n,getSnapshot:t};return l.queue=s,za(Ca.bind(null,r,s,e),[e]),r.flags|=2048,pr(9,Ea.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=wt(),t=Le.identifierPrefix;if(he){var n=Et,r=kt;n=(r&~(1<<32-at(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=dr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Rd++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ad={readContext:nt,useCallback:Ma,useContext:nt,useEffect:Xs,useImperativeHandle:Da,useInsertionEffect:Fa,useLayoutEffect:Ra,useMemo:Oa,useReducer:Ys,useRef:Pa,useState:function(){return Ys(fr)},useDebugValue:Zs,useDeferredValue:function(e){var t=rt();return Aa(t,ke.memoizedState,e)},useTransition:function(){var e=Ys(fr)[0],t=rt().memoizedState;return[e,t]},useMutableSource:ja,useSyncExternalStore:Na,useId:$a,unstable_isNewReconciler:!1},$d={readContext:nt,useCallback:Ma,useContext:nt,useEffect:Xs,useImperativeHandle:Da,useInsertionEffect:Fa,useLayoutEffect:Ra,useMemo:Oa,useReducer:Gs,useRef:Pa,useState:function(){return Gs(fr)},useDebugValue:Zs,useDeferredValue:function(e){var t=rt();return ke===null?t.memoizedState=e:Aa(t,ke.memoizedState,e)},useTransition:function(){var e=Gs(fr)[0],t=rt().memoizedState;return[e,t]},useMutableSource:ja,useSyncExternalStore:Na,useId:$a,unstable_isNewReconciler:!1};function dt(e,t){if(e&&e.defaultProps){t=V({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Js(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:V({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var dl={isMounted:function(e){return(e=e._reactInternals)?Zt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ae(),l=Qt(e),s=_t(r,l);s.payload=t,n!=null&&(s.callback=n),t=Vt(e,s,l),t!==null&&(mt(t,e,l,r),rl(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ae(),l=Qt(e),s=_t(r,l);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Vt(e,s,l),t!==null&&(mt(t,e,l,r),rl(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ae(),r=Qt(e),l=_t(n,r);l.tag=2,t!=null&&(l.callback=t),t=Vt(e,l,r),t!==null&&(mt(t,e,r,n),rl(t,e,r))}};function Ba(e,t,n,r,l,s,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,a):t.prototype&&t.prototype.isPureReactComponent?!bn(n,r)||!bn(l,s):!0}function Ha(e,t,n){var r=!1,l=At,s=t.contextType;return typeof s=="object"&&s!==null?s=nt(s):(l=Ve(t)?qt:Re.current,r=t.contextTypes,s=(r=r!=null)?jn(e,l):At),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=dl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=s),t}function Qa(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&&dl.enqueueReplaceState(t,t.state,null)}function qs(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},As(e);var s=t.contextType;typeof s=="object"&&s!==null?l.context=nt(s):(s=Ve(t)?qt:Re.current,l.context=jn(e,s)),l.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Js(e,t,s,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&&dl.enqueueReplaceState(l,l.state,null),ll(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Pn(e,t){try{var n="",r=t;do n+=le(r),r=r.return;while(r);var l=n}catch(s){l=`
39
+ Error generating stack: `+s.message+`
40
+ `+s.stack}return{value:e,source:t,stack:l,digest:null}}function bs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function eo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ud=typeof WeakMap=="function"?WeakMap:Map;function Ka(e,t,n){n=_t(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){yl||(yl=!0,vo=r),eo(e,t)},n}function Ya(e,t,n){n=_t(-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(){eo(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){eo(e,t),typeof r!="function"&&(Bt===null?Bt=new Set([this]):Bt.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Ga(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ud;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=ef.bind(null,e,t,n),t.then(e,e))}function Xa(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 Za(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=_t(-1,1),t.tag=2,Vt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var Vd=ne.ReactCurrentOwner,We=!1;function Oe(e,t,n,r){t.child=e===null?va(t,null,n,r):Cn(t,e.child,n,r)}function Ja(e,t,n,r,l){n=n.render;var s=t.ref;return Tn(t,l),r=Qs(e,t,n,r,s,l),n=Ks(),e!==null&&!We?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Tt(e,t,l)):(he&&n&&Ts(t),t.flags|=1,Oe(e,t,r,l),t.child)}function qa(e,t,n,r,l){if(e===null){var s=n.type;return typeof s=="function"&&!No(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,ba(e,t,s,r,l)):(e=kl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,(e.lanes&l)===0){var a=s.memoizedProps;if(n=n.compare,n=n!==null?n:bn,n(a,r)&&e.ref===t.ref)return Tt(e,t,l)}return t.flags|=1,e=Yt(s,r),e.ref=t.ref,e.return=t,t.child=e}function ba(e,t,n,r,l){if(e!==null){var s=e.memoizedProps;if(bn(s,r)&&e.ref===t.ref)if(We=!1,t.pendingProps=r=s,(e.lanes&l)!==0)(e.flags&131072)!==0&&(We=!0);else return t.lanes=e.lanes,Tt(e,t,l)}return to(e,t,n,r,l)}function eu(e,t,n){var r=t.pendingProps,l=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},de(Fn,Je),Je|=n;else{if((n&1073741824)===0)return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,de(Fn,Je),Je|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,de(Fn,Je),Je|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,de(Fn,Je),Je|=r;return Oe(e,t,l,n),t.child}function tu(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function to(e,t,n,r,l){var s=Ve(n)?qt:Re.current;return s=jn(t,s),Tn(t,l),n=Qs(e,t,n,r,s,l),r=Ks(),e!==null&&!We?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Tt(e,t,l)):(he&&r&&Ts(t),t.flags|=1,Oe(e,t,n,l),t.child)}function nu(e,t,n,r,l){if(Ve(n)){var s=!0;Xr(t)}else s=!1;if(Tn(t,l),t.stateNode===null)pl(e,t),Ha(t,n,r),qs(t,n,r,l),r=!0;else if(e===null){var a=t.stateNode,d=t.memoizedProps;a.props=d;var m=a.context,w=n.contextType;typeof w=="object"&&w!==null?w=nt(w):(w=Ve(n)?qt:Re.current,w=jn(t,w));var L=n.getDerivedStateFromProps,z=typeof L=="function"||typeof a.getSnapshotBeforeUpdate=="function";z||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(d!==r||m!==w)&&Qa(t,a,r,w),Ut=!1;var _=t.memoizedState;a.state=_,ll(t,r,a,l),m=t.memoizedState,d!==r||_!==m||Ue.current||Ut?(typeof L=="function"&&(Js(t,n,L,r),m=t.memoizedState),(d=Ut||Ba(t,n,d,r,_,m,w))?(z||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=w,r=d):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ya(e,t),d=t.memoizedProps,w=t.type===t.elementType?d:dt(t.type,d),a.props=w,z=t.pendingProps,_=a.context,m=n.contextType,typeof m=="object"&&m!==null?m=nt(m):(m=Ve(n)?qt:Re.current,m=jn(t,m));var A=n.getDerivedStateFromProps;(L=typeof A=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(d!==z||_!==m)&&Qa(t,a,r,m),Ut=!1,_=t.memoizedState,a.state=_,ll(t,r,a,l);var W=t.memoizedState;d!==z||_!==W||Ue.current||Ut?(typeof A=="function"&&(Js(t,n,A,r),W=t.memoizedState),(w=Ut||Ba(t,n,w,r,_,W,m)||!1)?(L||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,W,m),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,W,m)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||d===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=W),a.props=r,a.state=W,a.context=m,r=w):(typeof a.componentDidUpdate!="function"||d===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),r=!1)}return no(e,t,n,r,s,l)}function no(e,t,n,r,l,s){tu(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return l&&ia(t,n,!1),Tt(e,t,s);r=t.stateNode,Vd.current=t;var d=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Cn(t,e.child,null,s),t.child=Cn(t,null,d,s)):Oe(e,t,d,s),t.memoizedState=r.state,l&&ia(t,n,!0),t.child}function ru(e){var t=e.stateNode;t.pendingContext?sa(e,t.pendingContext,t.pendingContext!==t.context):t.context&&sa(e,t.context,!1),$s(e,t.containerInfo)}function lu(e,t,n,r,l){return En(),Fs(l),t.flags|=256,Oe(e,t,n,r),t.child}var ro={dehydrated:null,treeContext:null,retryLane:0};function lo(e){return{baseLanes:e,cachePool:null,transitions:null}}function su(e,t,n){var r=t.pendingProps,l=ve.current,s=!1,a=(t.flags&128)!==0,d;if((d=a)||(d=e!==null&&e.memoizedState===null?!1:(l&2)!==0),d?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),de(ve,l&1),e===null)return zs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(a=r.children,e=r.fallback,s?(r=t.mode,s=t.child,a={mode:"hidden",children:a},(r&1)===0&&s!==null?(s.childLanes=0,s.pendingProps=a):s=El(a,r,0,null),e=un(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=lo(n),t.memoizedState=ro,e):so(t,a));if(l=e.memoizedState,l!==null&&(d=l.dehydrated,d!==null))return Wd(e,t,a,r,d,l,n);if(s){s=r.fallback,a=t.mode,l=e.child,d=l.sibling;var m={mode:"hidden",children:r.children};return(a&1)===0&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=m,t.deletions=null):(r=Yt(l,m),r.subtreeFlags=l.subtreeFlags&14680064),d!==null?s=Yt(d,s):(s=un(s,a,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,a=e.child.memoizedState,a=a===null?lo(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},s.memoizedState=a,s.childLanes=e.childLanes&~n,t.memoizedState=ro,r}return s=e.child,e=s.sibling,r=Yt(s,{mode:"visible",children:r.children}),(t.mode&1)===0&&(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 so(e,t){return t=El({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fl(e,t,n,r){return r!==null&&Fs(r),Cn(t,e.child,null,n),e=so(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Wd(e,t,n,r,l,s,a){if(n)return t.flags&256?(t.flags&=-257,r=bs(Error(i(422))),fl(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,l=t.mode,r=El({mode:"visible",children:r.children},l,0,null),s=un(s,l,a,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,(t.mode&1)!==0&&Cn(t,e.child,null,a),t.child.memoizedState=lo(a),t.memoizedState=ro,s);if((t.mode&1)===0)return fl(e,t,a,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var d=r.dgst;return r=d,s=Error(i(419)),r=bs(s,r,void 0),fl(e,t,a,r)}if(d=(a&e.childLanes)!==0,We||d){if(r=Le,r!==null){switch(a&-a){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|a))!==0?0:l,l!==0&&l!==s.retryLane&&(s.retryLane=l,Ct(e,l),mt(r,e,l,-1))}return jo(),r=bs(Error(i(421))),fl(e,t,a,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=tf.bind(null,e),l._reactRetry=t,null):(e=s.treeContext,Ze=Mt(l.nextSibling),Xe=t,he=!0,ct=null,e!==null&&(et[tt++]=kt,et[tt++]=Et,et[tt++]=bt,kt=e.id,Et=e.overflow,bt=t),t=so(t,r.children),t.flags|=4096,t)}function ou(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ms(e.return,t,n)}function oo(e,t,n,r,l){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=l)}function iu(e,t,n){var r=t.pendingProps,l=r.revealOrder,s=r.tail;if(Oe(e,t,r.children,n),r=ve.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ou(e,n,t);else if(e.tag===19)ou(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(de(ve,r),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&sl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),oo(t,!1,l,n,s);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&sl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}oo(t,!0,n,null,s);break;case"together":oo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function pl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Tt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ln|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Yt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Yt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Bd(e,t,n){switch(t.tag){case 3:ru(t),En();break;case 5:Sa(t);break;case 1:Ve(t.type)&&Xr(t);break;case 4:$s(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;de(tl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(de(ve,ve.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?su(e,t,n):(de(ve,ve.current&1),e=Tt(e,t,n),e!==null?e.sibling:null);de(ve,ve.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return iu(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),de(ve,ve.current),r)break;return null;case 22:case 23:return t.lanes=0,eu(e,t,n)}return Tt(e,t,n)}var au,io,uu,cu;au=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}},io=function(){},uu=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,nn(xt.current);var s=null;switch(n){case"input":l=Ml(e,l),r=Ml(e,r),s=[];break;case"select":l=V({},l,{value:void 0}),r=V({},r,{value:void 0}),s=[];break;case"textarea":l=$l(e,l),r=$l(e,r),s=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Kr)}Vl(n,r);var a;n=null;for(w in l)if(!r.hasOwnProperty(w)&&l.hasOwnProperty(w)&&l[w]!=null)if(w==="style"){var d=l[w];for(a in d)d.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else w!=="dangerouslySetInnerHTML"&&w!=="children"&&w!=="suppressContentEditableWarning"&&w!=="suppressHydrationWarning"&&w!=="autoFocus"&&(p.hasOwnProperty(w)?s||(s=[]):(s=s||[]).push(w,null));for(w in r){var m=r[w];if(d=l!=null?l[w]:void 0,r.hasOwnProperty(w)&&m!==d&&(m!=null||d!=null))if(w==="style")if(d){for(a in d)!d.hasOwnProperty(a)||m&&m.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in m)m.hasOwnProperty(a)&&d[a]!==m[a]&&(n||(n={}),n[a]=m[a])}else n||(s||(s=[]),s.push(w,n)),n=m;else w==="dangerouslySetInnerHTML"?(m=m?m.__html:void 0,d=d?d.__html:void 0,m!=null&&d!==m&&(s=s||[]).push(w,m)):w==="children"?typeof m!="string"&&typeof m!="number"||(s=s||[]).push(w,""+m):w!=="suppressContentEditableWarning"&&w!=="suppressHydrationWarning"&&(p.hasOwnProperty(w)?(m!=null&&w==="onScroll"&&fe("scroll",e),s||d===m||(s=[])):(s=s||[]).push(w,m))}n&&(s=s||[]).push("style",n);var w=s;(t.updateQueue=w)&&(t.flags|=4)}},cu=function(e,t,n,r){n!==r&&(t.flags|=4)};function mr(e,t){if(!he)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 De(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 Hd(e,t,n){var r=t.pendingProps;switch(Ls(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(t),null;case 1:return Ve(t.type)&&Gr(),De(t),null;case 3:return r=t.stateNode,Ln(),pe(Ue),pe(Re),Ws(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(br(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ct!==null&&(xo(ct),ct=null))),io(e,t),De(t),null;case 5:Us(t);var l=nn(ur.current);if(n=t.type,e!==null&&t.stateNode!=null)uu(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(i(166));return De(t),null}if(e=nn(xt.current),br(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[yt]=t,r[lr]=s,e=(t.mode&1)!==0,n){case"dialog":fe("cancel",r),fe("close",r);break;case"iframe":case"object":case"embed":fe("load",r);break;case"video":case"audio":for(l=0;l<tr.length;l++)fe(tr[l],r);break;case"source":fe("error",r);break;case"img":case"image":case"link":fe("error",r),fe("load",r);break;case"details":fe("toggle",r);break;case"input":Ho(r,s),fe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},fe("invalid",r);break;case"textarea":Yo(r,s),fe("invalid",r)}Vl(n,s),l=null;for(var a in s)if(s.hasOwnProperty(a)){var d=s[a];a==="children"?typeof d=="string"?r.textContent!==d&&(s.suppressHydrationWarning!==!0&&Qr(r.textContent,d,e),l=["children",d]):typeof d=="number"&&r.textContent!==""+d&&(s.suppressHydrationWarning!==!0&&Qr(r.textContent,d,e),l=["children",""+d]):p.hasOwnProperty(a)&&d!=null&&a==="onScroll"&&fe("scroll",r)}switch(n){case"input":jr(r),Ko(r,s,!0);break;case"textarea":jr(r),Xo(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Kr)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Zo(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[yt]=t,e[lr]=r,au(e,t,!1,!1),t.stateNode=e;e:{switch(a=Wl(n,r),n){case"dialog":fe("cancel",e),fe("close",e),l=r;break;case"iframe":case"object":case"embed":fe("load",e),l=r;break;case"video":case"audio":for(l=0;l<tr.length;l++)fe(tr[l],e);l=r;break;case"source":fe("error",e),l=r;break;case"img":case"image":case"link":fe("error",e),fe("load",e),l=r;break;case"details":fe("toggle",e),l=r;break;case"input":Ho(e,r),l=Ml(e,r),fe("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=V({},r,{value:void 0}),fe("invalid",e);break;case"textarea":Yo(e,r),l=$l(e,r),fe("invalid",e);break;default:l=r}Vl(n,l),d=l;for(s in d)if(d.hasOwnProperty(s)){var m=d[s];s==="style"?bo(e,m):s==="dangerouslySetInnerHTML"?(m=m?m.__html:void 0,m!=null&&Jo(e,m)):s==="children"?typeof m=="string"?(n!=="textarea"||m!=="")&&Mn(e,m):typeof m=="number"&&Mn(e,""+m):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(p.hasOwnProperty(s)?m!=null&&s==="onScroll"&&fe("scroll",e):m!=null&&q(e,s,m,a))}switch(n){case"input":jr(e),Ko(e,r,!1);break;case"textarea":jr(e),Xo(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ie(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?cn(e,!!r.multiple,s,!1):r.defaultValue!=null&&cn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Kr)}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 De(t),null;case 6:if(e&&t.stateNode!=null)cu(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(i(166));if(n=nn(ur.current),nn(xt.current),br(t)){if(r=t.stateNode,n=t.memoizedProps,r[yt]=t,(s=r.nodeValue!==n)&&(e=Xe,e!==null))switch(e.tag){case 3:Qr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Qr(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[yt]=t,t.stateNode=r}return De(t),null;case 13:if(pe(ve),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(he&&Ze!==null&&(t.mode&1)!==0&&(t.flags&128)===0)pa(),En(),t.flags|=98560,s=!1;else if(s=br(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(i(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(i(317));s[yt]=t}else En(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),s=!1}else ct!==null&&(xo(ct),ct=null),s=!0;if(!s)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(ve.current&1)!==0?Ee===0&&(Ee=3):jo())),t.updateQueue!==null&&(t.flags|=4),De(t),null);case 4:return Ln(),io(e,t),e===null&&nr(t.stateNode.containerInfo),De(t),null;case 10:return Ds(t.type._context),De(t),null;case 17:return Ve(t.type)&&Gr(),De(t),null;case 19:if(pe(ve),s=t.memoizedState,s===null)return De(t),null;if(r=(t.flags&128)!==0,a=s.rendering,a===null)if(r)mr(s,!1);else{if(Ee!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=sl(e),a!==null){for(t.flags|=128,mr(s,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,a=s.alternate,a===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=a.childLanes,s.lanes=a.lanes,s.child=a.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=a.memoizedProps,s.memoizedState=a.memoizedState,s.updateQueue=a.updateQueue,s.type=a.type,e=a.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return de(ve,ve.current&1|2),t.child}e=e.sibling}s.tail!==null&&Se()>Rn&&(t.flags|=128,r=!0,mr(s,!1),t.lanes=4194304)}else{if(!r)if(e=sl(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!he)return De(t),null}else 2*Se()-s.renderingStartTime>Rn&&n!==1073741824&&(t.flags|=128,r=!0,mr(s,!1),t.lanes=4194304);s.isBackwards?(a.sibling=t.child,t.child=a):(n=s.last,n!==null?n.sibling=a:t.child=a,s.last=a)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Se(),t.sibling=null,n=ve.current,de(ve,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return So(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Je&1073741824)!==0&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function Qd(e,t){switch(Ls(t),t.tag){case 1:return Ve(t.type)&&Gr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ln(),pe(Ue),pe(Re),Ws(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Us(t),null;case 13:if(pe(ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));En()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(ve),null;case 4:return Ln(),null;case 10:return Ds(t.type._context),null;case 22:case 23:return So(),null;case 24:return null;default:return null}}var ml=!1,Me=!1,Kd=typeof WeakSet=="function"?WeakSet:Set,U=null;function zn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xe(e,t,r)}else n.current=null}function ao(e,t,n){try{n()}catch(r){xe(e,t,r)}}var du=!1;function Yd(e,t){if(ws=Ir,e=Bi(),fs(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,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var a=0,d=-1,m=-1,w=0,L=0,z=e,_=null;t:for(;;){for(var A;z!==n||l!==0&&z.nodeType!==3||(d=a+l),z!==s||r!==0&&z.nodeType!==3||(m=a+r),z.nodeType===3&&(a+=z.nodeValue.length),(A=z.firstChild)!==null;)_=z,z=A;for(;;){if(z===e)break t;if(_===n&&++w===l&&(d=a),_===s&&++L===r&&(m=a),(A=z.nextSibling)!==null)break;z=_,_=z.parentNode}z=A}n=d===-1||m===-1?null:{start:d,end:m}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ss={focusedElem:e,selectionRange:n},Ir=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var W=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(W!==null){var H=W.memoizedProps,je=W.memoizedState,y=t.stateNode,h=y.getSnapshotBeforeUpdate(t.elementType===t.type?H:dt(t.type,H),je);y.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(R){xe(t,t.return,R)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return W=du,du=!1,W}function hr(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 s=l.destroy;l.destroy=void 0,s!==void 0&&ao(t,n,s)}l=l.next}while(l!==r)}}function hl(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 uo(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 fu(e){var t=e.alternate;t!==null&&(e.alternate=null,fu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yt],delete t[lr],delete t[Es],delete t[Ld],delete t[Pd])),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 pu(e){return e.tag===5||e.tag===3||e.tag===4}function mu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pu(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 co(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=Kr));else if(r!==4&&(e=e.child,e!==null))for(co(e,t,n),e=e.sibling;e!==null;)co(e,t,n),e=e.sibling}function fo(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(fo(e,t,n),e=e.sibling;e!==null;)fo(e,t,n),e=e.sibling}var ze=null,ft=!1;function Wt(e,t,n){for(n=n.child;n!==null;)hu(e,t,n),n=n.sibling}function hu(e,t,n){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(Tr,n)}catch{}switch(n.tag){case 5:Me||zn(n,t);case 6:var r=ze,l=ft;ze=null,Wt(e,t,n),ze=r,ft=l,ze!==null&&(ft?(e=ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ze.removeChild(n.stateNode));break;case 18:ze!==null&&(ft?(e=ze,n=n.stateNode,e.nodeType===8?ks(e.parentNode,n):e.nodeType===1&&ks(e,n),Yn(e)):ks(ze,n.stateNode));break;case 4:r=ze,l=ft,ze=n.stateNode.containerInfo,ft=!0,Wt(e,t,n),ze=r,ft=l;break;case 0:case 11:case 14:case 15:if(!Me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var s=l,a=s.destroy;s=s.tag,a!==void 0&&((s&2)!==0||(s&4)!==0)&&ao(n,t,a),l=l.next}while(l!==r)}Wt(e,t,n);break;case 1:if(!Me&&(zn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(d){xe(n,t,d)}Wt(e,t,n);break;case 21:Wt(e,t,n);break;case 22:n.mode&1?(Me=(r=Me)||n.memoizedState!==null,Wt(e,t,n),Me=r):Wt(e,t,n);break;default:Wt(e,t,n)}}function vu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Kd),t.forEach(function(r){var l=nf.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var s=e,a=t,d=a;e:for(;d!==null;){switch(d.tag){case 5:ze=d.stateNode,ft=!1;break e;case 3:ze=d.stateNode.containerInfo,ft=!0;break e;case 4:ze=d.stateNode.containerInfo,ft=!0;break e}d=d.return}if(ze===null)throw Error(i(160));hu(s,a,l),ze=null,ft=!1;var m=l.alternate;m!==null&&(m.return=null),l.return=null}catch(w){xe(l,t,w)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)gu(t,e),t=t.sibling}function gu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pt(t,e),St(e),r&4){try{hr(3,e,e.return),hl(3,e)}catch(H){xe(e,e.return,H)}try{hr(5,e,e.return)}catch(H){xe(e,e.return,H)}}break;case 1:pt(t,e),St(e),r&512&&n!==null&&zn(n,n.return);break;case 5:if(pt(t,e),St(e),r&512&&n!==null&&zn(n,n.return),e.flags&32){var l=e.stateNode;try{Mn(l,"")}catch(H){xe(e,e.return,H)}}if(r&4&&(l=e.stateNode,l!=null)){var s=e.memoizedProps,a=n!==null?n.memoizedProps:s,d=e.type,m=e.updateQueue;if(e.updateQueue=null,m!==null)try{d==="input"&&s.type==="radio"&&s.name!=null&&Qo(l,s),Wl(d,a);var w=Wl(d,s);for(a=0;a<m.length;a+=2){var L=m[a],z=m[a+1];L==="style"?bo(l,z):L==="dangerouslySetInnerHTML"?Jo(l,z):L==="children"?Mn(l,z):q(l,L,z,w)}switch(d){case"input":Ol(l,s);break;case"textarea":Go(l,s);break;case"select":var _=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!s.multiple;var A=s.value;A!=null?cn(l,!!s.multiple,A,!1):_!==!!s.multiple&&(s.defaultValue!=null?cn(l,!!s.multiple,s.defaultValue,!0):cn(l,!!s.multiple,s.multiple?[]:"",!1))}l[lr]=s}catch(H){xe(e,e.return,H)}}break;case 6:if(pt(t,e),St(e),r&4){if(e.stateNode===null)throw Error(i(162));l=e.stateNode,s=e.memoizedProps;try{l.nodeValue=s}catch(H){xe(e,e.return,H)}}break;case 3:if(pt(t,e),St(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Yn(t.containerInfo)}catch(H){xe(e,e.return,H)}break;case 4:pt(t,e),St(e);break;case 13:pt(t,e),St(e),l=e.child,l.flags&8192&&(s=l.memoizedState!==null,l.stateNode.isHidden=s,!s||l.alternate!==null&&l.alternate.memoizedState!==null||(ho=Se())),r&4&&vu(e);break;case 22:if(L=n!==null&&n.memoizedState!==null,e.mode&1?(Me=(w=Me)||L,pt(t,e),Me=w):pt(t,e),St(e),r&8192){if(w=e.memoizedState!==null,(e.stateNode.isHidden=w)&&!L&&(e.mode&1)!==0)for(U=e,L=e.child;L!==null;){for(z=U=L;U!==null;){switch(_=U,A=_.child,_.tag){case 0:case 11:case 14:case 15:hr(4,_,_.return);break;case 1:zn(_,_.return);var W=_.stateNode;if(typeof W.componentWillUnmount=="function"){r=_,n=_.return;try{t=r,W.props=t.memoizedProps,W.state=t.memoizedState,W.componentWillUnmount()}catch(H){xe(r,n,H)}}break;case 5:zn(_,_.return);break;case 22:if(_.memoizedState!==null){wu(z);continue}}A!==null?(A.return=_,U=A):wu(z)}L=L.sibling}e:for(L=null,z=e;;){if(z.tag===5){if(L===null){L=z;try{l=z.stateNode,w?(s=l.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(d=z.stateNode,m=z.memoizedProps.style,a=m!=null&&m.hasOwnProperty("display")?m.display:null,d.style.display=qo("display",a))}catch(H){xe(e,e.return,H)}}}else if(z.tag===6){if(L===null)try{z.stateNode.nodeValue=w?"":z.memoizedProps}catch(H){xe(e,e.return,H)}}else if((z.tag!==22&&z.tag!==23||z.memoizedState===null||z===e)&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===e)break e;for(;z.sibling===null;){if(z.return===null||z.return===e)break e;L===z&&(L=null),z=z.return}L===z&&(L=null),z.sibling.return=z.return,z=z.sibling}}break;case 19:pt(t,e),St(e),r&4&&vu(e);break;case 21:break;default:pt(t,e),St(e)}}function St(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(pu(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Mn(l,""),r.flags&=-33);var s=mu(e);fo(e,s,l);break;case 3:case 4:var a=r.stateNode.containerInfo,d=mu(e);co(e,d,a);break;default:throw Error(i(161))}}catch(m){xe(e,e.return,m)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gd(e,t,n){U=e,yu(e)}function yu(e,t,n){for(var r=(e.mode&1)!==0;U!==null;){var l=U,s=l.child;if(l.tag===22&&r){var a=l.memoizedState!==null||ml;if(!a){var d=l.alternate,m=d!==null&&d.memoizedState!==null||Me;d=ml;var w=Me;if(ml=a,(Me=m)&&!w)for(U=l;U!==null;)a=U,m=a.child,a.tag===22&&a.memoizedState!==null?Su(l):m!==null?(m.return=a,U=m):Su(l);for(;s!==null;)U=s,yu(s),s=s.sibling;U=l,ml=d,Me=w}xu(e)}else(l.subtreeFlags&8772)!==0&&s!==null?(s.return=l,U=s):xu(e)}}function xu(e){for(;U!==null;){var t=U;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Me||hl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Me)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:dt(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&wa(t,s,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}wa(t,a,n)}break;case 5:var d=t.stateNode;if(n===null&&t.flags&4){n=d;var m=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":m.autoFocus&&n.focus();break;case"img":m.src&&(n.src=m.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var w=t.alternate;if(w!==null){var L=w.memoizedState;if(L!==null){var z=L.dehydrated;z!==null&&Yn(z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}Me||t.flags&512&&uo(t)}catch(_){xe(t,t.return,_)}}if(t===e){U=null;break}if(n=t.sibling,n!==null){n.return=t.return,U=n;break}U=t.return}}function wu(e){for(;U!==null;){var t=U;if(t===e){U=null;break}var n=t.sibling;if(n!==null){n.return=t.return,U=n;break}U=t.return}}function Su(e){for(;U!==null;){var t=U;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{hl(4,t)}catch(m){xe(t,n,m)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(m){xe(t,l,m)}}var s=t.return;try{uo(t)}catch(m){xe(t,s,m)}break;case 5:var a=t.return;try{uo(t)}catch(m){xe(t,a,m)}}}catch(m){xe(t,t.return,m)}if(t===e){U=null;break}var d=t.sibling;if(d!==null){d.return=t.return,U=d;break}U=t.return}}var Xd=Math.ceil,vl=ne.ReactCurrentDispatcher,po=ne.ReactCurrentOwner,lt=ne.ReactCurrentBatchConfig,re=0,Le=null,Ne=null,Fe=0,Je=0,Fn=Ot(0),Ee=0,vr=null,ln=0,gl=0,mo=0,gr=null,Be=null,ho=0,Rn=1/0,Lt=null,yl=!1,vo=null,Bt=null,xl=!1,Ht=null,wl=0,yr=0,go=null,Sl=-1,jl=0;function Ae(){return(re&6)!==0?Se():Sl!==-1?Sl:Sl=Se()}function Qt(e){return(e.mode&1)===0?1:(re&2)!==0&&Fe!==0?Fe&-Fe:Fd.transition!==null?(jl===0&&(jl=mi()),jl):(e=ae,e!==0||(e=window.event,e=e===void 0?16:Ni(e.type)),e)}function mt(e,t,n,r){if(50<yr)throw yr=0,go=null,Error(i(185));Wn(e,n,r),((re&2)===0||e!==Le)&&(e===Le&&((re&2)===0&&(gl|=n),Ee===4&&Kt(e,Fe)),He(e,r),n===1&&re===0&&(t.mode&1)===0&&(Rn=Se()+500,Zr&&$t()))}function He(e,t){var n=e.callbackNode;Fc(e,t);var r=zr(e,e===Le?Fe:0);if(r===0)n!==null&&di(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&di(n),t===1)e.tag===0?zd(Nu.bind(null,e)):aa(Nu.bind(null,e)),_d(function(){(re&6)===0&&$t()}),n=null;else{switch(hi(r)){case 1:n=Xl;break;case 4:n=fi;break;case 16:n=_r;break;case 536870912:n=pi;break;default:n=_r}n=zu(n,ju.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ju(e,t){if(Sl=-1,jl=0,(re&6)!==0)throw Error(i(327));var n=e.callbackNode;if(In()&&e.callbackNode!==n)return null;var r=zr(e,e===Le?Fe:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Nl(e,r);else{t=r;var l=re;re|=2;var s=Eu();(Le!==e||Fe!==t)&&(Lt=null,Rn=Se()+500,on(e,t));do try{qd();break}catch(d){ku(e,d)}while(!0);Is(),vl.current=s,re=l,Ne!==null?t=0:(Le=null,Fe=0,t=Ee)}if(t!==0){if(t===2&&(l=Zl(e),l!==0&&(r=l,t=yo(e,l))),t===1)throw n=vr,on(e,0),Kt(e,r),He(e,Se()),n;if(t===6)Kt(e,r);else{if(l=e.current.alternate,(r&30)===0&&!Zd(l)&&(t=Nl(e,r),t===2&&(s=Zl(e),s!==0&&(r=s,t=yo(e,s))),t===1))throw n=vr,on(e,0),Kt(e,r),He(e,Se()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:an(e,Be,Lt);break;case 3:if(Kt(e,r),(r&130023424)===r&&(t=ho+500-Se(),10<t)){if(zr(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){Ae(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Ns(an.bind(null,e,Be,Lt),t);break}an(e,Be,Lt);break;case 4:if(Kt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var a=31-at(r);s=1<<a,a=t[a],a>l&&(l=a),r&=~s}if(r=l,r=Se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xd(r/1960))-r,10<r){e.timeoutHandle=Ns(an.bind(null,e,Be,Lt),r);break}an(e,Be,Lt);break;case 5:an(e,Be,Lt);break;default:throw Error(i(329))}}}return He(e,Se()),e.callbackNode===n?ju.bind(null,e):null}function yo(e,t){var n=gr;return e.current.memoizedState.isDehydrated&&(on(e,t).flags|=256),e=Nl(e,t),e!==2&&(t=Be,Be=n,t!==null&&xo(t)),e}function xo(e){Be===null?Be=e:Be.push.apply(Be,e)}function Zd(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],s=l.getSnapshot;l=l.value;try{if(!ut(s(),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 Kt(e,t){for(t&=~mo,t&=~gl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function Nu(e){if((re&6)!==0)throw Error(i(327));In();var t=zr(e,0);if((t&1)===0)return He(e,Se()),null;var n=Nl(e,t);if(e.tag!==0&&n===2){var r=Zl(e);r!==0&&(t=r,n=yo(e,r))}if(n===1)throw n=vr,on(e,0),Kt(e,t),He(e,Se()),n;if(n===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,an(e,Be,Lt),He(e,Se()),null}function wo(e,t){var n=re;re|=1;try{return e(t)}finally{re=n,re===0&&(Rn=Se()+500,Zr&&$t())}}function sn(e){Ht!==null&&Ht.tag===0&&(re&6)===0&&In();var t=re;re|=1;var n=lt.transition,r=ae;try{if(lt.transition=null,ae=1,e)return e()}finally{ae=r,lt.transition=n,re=t,(re&6)===0&&$t()}}function So(){Je=Fn.current,pe(Fn)}function on(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Cd(n)),Ne!==null)for(n=Ne.return;n!==null;){var r=n;switch(Ls(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Gr();break;case 3:Ln(),pe(Ue),pe(Re),Ws();break;case 5:Us(r);break;case 4:Ln();break;case 13:pe(ve);break;case 19:pe(ve);break;case 10:Ds(r.type._context);break;case 22:case 23:So()}n=n.return}if(Le=e,Ne=e=Yt(e.current,null),Fe=Je=t,Ee=0,vr=null,mo=gl=ln=0,Be=gr=null,tn!==null){for(t=0;t<tn.length;t++)if(n=tn[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,s=n.pending;if(s!==null){var a=s.next;s.next=l,r.next=a}n.pending=r}tn=null}return e}function ku(e,t){do{var n=Ne;try{if(Is(),ol.current=cl,il){for(var r=ge.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}il=!1}if(rn=0,Te=ke=ge=null,cr=!1,dr=0,po.current=null,n===null||n.return===null){Ee=1,vr=t,Ne=null;break}e:{var s=e,a=n.return,d=n,m=t;if(t=Fe,d.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){var w=m,L=d,z=L.tag;if((L.mode&1)===0&&(z===0||z===11||z===15)){var _=L.alternate;_?(L.updateQueue=_.updateQueue,L.memoizedState=_.memoizedState,L.lanes=_.lanes):(L.updateQueue=null,L.memoizedState=null)}var A=Xa(a);if(A!==null){A.flags&=-257,Za(A,a,d,s,t),A.mode&1&&Ga(s,w,t),t=A,m=w;var W=t.updateQueue;if(W===null){var H=new Set;H.add(m),t.updateQueue=H}else W.add(m);break e}else{if((t&1)===0){Ga(s,w,t),jo();break e}m=Error(i(426))}}else if(he&&d.mode&1){var je=Xa(a);if(je!==null){(je.flags&65536)===0&&(je.flags|=256),Za(je,a,d,s,t),Fs(Pn(m,d));break e}}s=m=Pn(m,d),Ee!==4&&(Ee=2),gr===null?gr=[s]:gr.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var y=Ka(s,m,t);xa(s,y);break e;case 1:d=m;var h=s.type,x=s.stateNode;if((s.flags&128)===0&&(typeof h.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Bt===null||!Bt.has(x)))){s.flags|=65536,t&=-t,s.lanes|=t;var R=Ya(s,d,t);xa(s,R);break e}}s=s.return}while(s!==null)}_u(n)}catch(Q){t=Q,Ne===n&&n!==null&&(Ne=n=n.return);continue}break}while(!0)}function Eu(){var e=vl.current;return vl.current=cl,e===null?cl:e}function jo(){(Ee===0||Ee===3||Ee===2)&&(Ee=4),Le===null||(ln&268435455)===0&&(gl&268435455)===0||Kt(Le,Fe)}function Nl(e,t){var n=re;re|=2;var r=Eu();(Le!==e||Fe!==t)&&(Lt=null,on(e,t));do try{Jd();break}catch(l){ku(e,l)}while(!0);if(Is(),re=n,vl.current=r,Ne!==null)throw Error(i(261));return Le=null,Fe=0,Ee}function Jd(){for(;Ne!==null;)Cu(Ne)}function qd(){for(;Ne!==null&&!Nc();)Cu(Ne)}function Cu(e){var t=Pu(e.alternate,e,Je);e.memoizedProps=e.pendingProps,t===null?_u(e):Ne=t,po.current=null}function _u(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Hd(n,t,Je),n!==null){Ne=n;return}}else{if(n=Qd(n,t),n!==null){n.flags&=32767,Ne=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ee=6,Ne=null;return}}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);Ee===0&&(Ee=5)}function an(e,t,n){var r=ae,l=lt.transition;try{lt.transition=null,ae=1,bd(e,t,n,r)}finally{lt.transition=l,ae=r}return null}function bd(e,t,n,r){do In();while(Ht!==null);if((re&6)!==0)throw Error(i(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(i(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Rc(e,s),e===Le&&(Ne=Le=null,Fe=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||xl||(xl=!0,zu(_r,function(){return In(),null})),s=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||s){s=lt.transition,lt.transition=null;var a=ae;ae=1;var d=re;re|=4,po.current=null,Yd(e,n),gu(n,e),xd(Ss),Ir=!!ws,Ss=ws=null,e.current=n,Gd(n),kc(),re=d,ae=a,lt.transition=s}else e.current=n;if(xl&&(xl=!1,Ht=e,wl=l),s=e.pendingLanes,s===0&&(Bt=null),_c(n.stateNode),He(e,Se()),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(yl)throw yl=!1,e=vo,vo=null,e;return(wl&1)!==0&&e.tag!==0&&In(),s=e.pendingLanes,(s&1)!==0?e===go?yr++:(yr=0,go=e):yr=0,$t(),null}function In(){if(Ht!==null){var e=hi(wl),t=lt.transition,n=ae;try{if(lt.transition=null,ae=16>e?16:e,Ht===null)var r=!1;else{if(e=Ht,Ht=null,wl=0,(re&6)!==0)throw Error(i(331));var l=re;for(re|=4,U=e.current;U!==null;){var s=U,a=s.child;if((U.flags&16)!==0){var d=s.deletions;if(d!==null){for(var m=0;m<d.length;m++){var w=d[m];for(U=w;U!==null;){var L=U;switch(L.tag){case 0:case 11:case 15:hr(8,L,s)}var z=L.child;if(z!==null)z.return=L,U=z;else for(;U!==null;){L=U;var _=L.sibling,A=L.return;if(fu(L),L===w){U=null;break}if(_!==null){_.return=A,U=_;break}U=A}}}var W=s.alternate;if(W!==null){var H=W.child;if(H!==null){W.child=null;do{var je=H.sibling;H.sibling=null,H=je}while(H!==null)}}U=s}}if((s.subtreeFlags&2064)!==0&&a!==null)a.return=s,U=a;else e:for(;U!==null;){if(s=U,(s.flags&2048)!==0)switch(s.tag){case 0:case 11:case 15:hr(9,s,s.return)}var y=s.sibling;if(y!==null){y.return=s.return,U=y;break e}U=s.return}}var h=e.current;for(U=h;U!==null;){a=U;var x=a.child;if((a.subtreeFlags&2064)!==0&&x!==null)x.return=a,U=x;else e:for(a=h;U!==null;){if(d=U,(d.flags&2048)!==0)try{switch(d.tag){case 0:case 11:case 15:hl(9,d)}}catch(Q){xe(d,d.return,Q)}if(d===a){U=null;break e}var R=d.sibling;if(R!==null){R.return=d.return,U=R;break e}U=d.return}}if(re=l,$t(),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(Tr,e)}catch{}r=!0}return r}finally{ae=n,lt.transition=t}}return!1}function Tu(e,t,n){t=Pn(n,t),t=Ka(e,t,1),e=Vt(e,t,1),t=Ae(),e!==null&&(Wn(e,1,t),He(e,t))}function xe(e,t,n){if(e.tag===3)Tu(e,e,n);else for(;t!==null;){if(t.tag===3){Tu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Bt===null||!Bt.has(r))){e=Pn(n,e),e=Ya(t,e,1),t=Vt(t,e,1),e=Ae(),t!==null&&(Wn(t,1,e),He(t,e));break}}t=t.return}}function ef(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ae(),e.pingedLanes|=e.suspendedLanes&n,Le===e&&(Fe&n)===n&&(Ee===4||Ee===3&&(Fe&130023424)===Fe&&500>Se()-ho?on(e,0):mo|=n),He(e,t)}function Lu(e,t){t===0&&((e.mode&1)===0?t=1:(t=Pr,Pr<<=1,(Pr&130023424)===0&&(Pr=4194304)));var n=Ae();e=Ct(e,t),e!==null&&(Wn(e,t,n),He(e,n))}function tf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lu(e,n)}function nf(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(i(314))}r!==null&&r.delete(t),Lu(e,n)}var Pu;Pu=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ue.current)We=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return We=!1,Bd(e,t,n);We=(e.flags&131072)!==0}else We=!1,he&&(t.flags&1048576)!==0&&ua(t,qr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;pl(e,t),e=t.pendingProps;var l=jn(t,Re.current);Tn(t,n),l=Qs(null,t,r,e,l,n);var s=Ks();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,Ve(r)?(s=!0,Xr(t)):s=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,As(t),l.updater=dl,t.stateNode=l,l._reactInternals=t,qs(t,r,e,n),t=no(null,t,r,!0,s,n)):(t.tag=0,he&&s&&Ts(t),Oe(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(pl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=lf(r),e=dt(r,e),l){case 0:t=to(null,t,r,e,n);break e;case 1:t=nu(null,t,r,e,n);break e;case 11:t=Ja(null,t,r,e,n);break e;case 14:t=qa(null,t,r,dt(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:dt(r,l),to(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:dt(r,l),nu(e,t,r,l,n);case 3:e:{if(ru(t),e===null)throw Error(i(387));r=t.pendingProps,s=t.memoizedState,l=s.element,ya(e,t),ll(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){l=Pn(Error(i(423)),t),t=lu(e,t,r,n,l);break e}else if(r!==l){l=Pn(Error(i(424)),t),t=lu(e,t,r,n,l);break e}else for(Ze=Mt(t.stateNode.containerInfo.firstChild),Xe=t,he=!0,ct=null,n=va(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(En(),r===l){t=Tt(e,t,n);break e}Oe(e,t,r,n)}t=t.child}return t;case 5:return Sa(t),e===null&&zs(t),r=t.type,l=t.pendingProps,s=e!==null?e.memoizedProps:null,a=l.children,js(r,l)?a=null:s!==null&&js(r,s)&&(t.flags|=32),tu(e,t),Oe(e,t,a,n),t.child;case 6:return e===null&&zs(t),null;case 13:return su(e,t,n);case 4:return $s(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Cn(t,null,r,n):Oe(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:dt(r,l),Ja(e,t,r,l,n);case 7:return Oe(e,t,t.pendingProps,n),t.child;case 8:return Oe(e,t,t.pendingProps.children,n),t.child;case 12:return Oe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,s=t.memoizedProps,a=l.value,de(tl,r._currentValue),r._currentValue=a,s!==null)if(ut(s.value,a)){if(s.children===l.children&&!Ue.current){t=Tt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var d=s.dependencies;if(d!==null){a=s.child;for(var m=d.firstContext;m!==null;){if(m.context===r){if(s.tag===1){m=_t(-1,n&-n),m.tag=2;var w=s.updateQueue;if(w!==null){w=w.shared;var L=w.pending;L===null?m.next=m:(m.next=L.next,L.next=m),w.pending=m}}s.lanes|=n,m=s.alternate,m!==null&&(m.lanes|=n),Ms(s.return,n,t),d.lanes|=n;break}m=m.next}}else if(s.tag===10)a=s.type===t.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(i(341));a.lanes|=n,d=a.alternate,d!==null&&(d.lanes|=n),Ms(a,n,t),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}Oe(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Tn(t,n),l=nt(l),r=r(l),t.flags|=1,Oe(e,t,r,n),t.child;case 14:return r=t.type,l=dt(r,t.pendingProps),l=dt(r.type,l),qa(e,t,r,l,n);case 15:return ba(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:dt(r,l),pl(e,t),t.tag=1,Ve(r)?(e=!0,Xr(t)):e=!1,Tn(t,n),Ha(t,r,l),qs(t,r,l,n),no(null,t,r,!0,e,n);case 19:return iu(e,t,n);case 22:return eu(e,t,n)}throw Error(i(156,t.tag))};function zu(e,t){return ci(e,t)}function rf(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 st(e,t,n,r){return new rf(e,t,n,r)}function No(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lf(e){if(typeof e=="function")return No(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ht)return 11;if(e===vt)return 14}return 2}function Yt(e,t){var n=e.alternate;return n===null?(n=st(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 kl(e,t,n,r,l,s){var a=2;if(r=e,typeof e=="function")No(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ue:return un(n.children,l,s,t);case Ce:a=8,l|=8;break;case ot:return e=st(12,n,t,l|2),e.elementType=ot,e.lanes=s,e;case Ke:return e=st(13,n,t,l),e.elementType=Ke,e.lanes=s,e;case it:return e=st(19,n,t,l),e.elementType=it,e.lanes=s,e;case ye:return El(n,l,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case be:a=10;break e;case _e:a=9;break e;case ht:a=11;break e;case vt:a=14;break e;case $e:a=16,r=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=st(a,n,t,l),t.elementType=e,t.type=r,t.lanes=s,t}function un(e,t,n,r){return e=st(7,e,r,t),e.lanes=n,e}function El(e,t,n,r){return e=st(22,e,r,t),e.elementType=ye,e.lanes=n,e.stateNode={isHidden:!1},e}function ko(e,t,n){return e=st(6,e,null,t),e.lanes=n,e}function Eo(e,t,n){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function sf(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 Co(e,t,n,r,l,s,a,d,m){return e=new sf(e,t,n,d,m),t===1?(t=1,s===!0&&(t|=8)):t=0,s=st(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},As(s),e}function of(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:K,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Fu(e){if(!e)return At;e=e._reactInternals;e:{if(Zt(e)!==e||e.tag!==1)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ve(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(i(171))}if(e.tag===1){var n=e.type;if(Ve(n))return oa(e,n,t)}return t}function Ru(e,t,n,r,l,s,a,d,m){return e=Co(n,r,!0,e,l,s,a,d,m),e.context=Fu(null),n=e.current,r=Ae(),l=Qt(n),s=_t(r,l),s.callback=t??null,Vt(n,s,l),e.current.lanes=l,Wn(e,l,r),He(e,r),e}function Cl(e,t,n,r){var l=t.current,s=Ae(),a=Qt(l);return n=Fu(n),t.context===null?t.context=n:t.pendingContext=n,t=_t(s,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Vt(l,t,a),e!==null&&(mt(e,l,a,s),rl(e,l,a)),a}function _l(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 Iu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _o(e,t){Iu(e,t),(e=e.alternate)&&Iu(e,t)}function af(){return null}var Du=typeof reportError=="function"?reportError:function(e){console.error(e)};function To(e){this._internalRoot=e}Tl.prototype.render=To.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));Cl(e,t,null,null)},Tl.prototype.unmount=To.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;sn(function(){Cl(null,e,null,null)}),t[jt]=null}};function Tl(e){this._internalRoot=e}Tl.prototype.unstable_scheduleHydration=function(e){if(e){var t=yi();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&t!==0&&t<Rt[n].priority;n++);Rt.splice(n,0,e),n===0&&Si(e)}};function Lo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ll(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Mu(){}function uf(e,t,n,r,l){if(l){if(typeof r=="function"){var s=r;r=function(){var w=_l(a);s.call(w)}}var a=Ru(t,r,e,0,null,!1,!1,"",Mu);return e._reactRootContainer=a,e[jt]=a.current,nr(e.nodeType===8?e.parentNode:e),sn(),a}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var d=r;r=function(){var w=_l(m);d.call(w)}}var m=Co(e,0,!1,null,null,!1,!1,"",Mu);return e._reactRootContainer=m,e[jt]=m.current,nr(e.nodeType===8?e.parentNode:e),sn(function(){Cl(t,m,n,r)}),m}function Pl(e,t,n,r,l){var s=n._reactRootContainer;if(s){var a=s;if(typeof l=="function"){var d=l;l=function(){var m=_l(a);d.call(m)}}Cl(t,a,e,l)}else a=uf(n,t,e,l,r);return _l(a)}vi=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Vn(t.pendingLanes);n!==0&&(ql(t,n|1),He(t,Se()),(re&6)===0&&(Rn=Se()+500,$t()))}break;case 13:sn(function(){var r=Ct(e,1);if(r!==null){var l=Ae();mt(r,e,1,l)}}),_o(e,1)}},bl=function(e){if(e.tag===13){var t=Ct(e,134217728);if(t!==null){var n=Ae();mt(t,e,134217728,n)}_o(e,134217728)}},gi=function(e){if(e.tag===13){var t=Qt(e),n=Ct(e,t);if(n!==null){var r=Ae();mt(n,e,t,r)}_o(e,t)}},yi=function(){return ae},xi=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}},Ql=function(e,t,n){switch(t){case"input":if(Ol(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=Yr(r);if(!l)throw Error(i(90));Bo(r),Ol(r,l)}}}break;case"textarea":Go(e,n);break;case"select":t=n.value,t!=null&&cn(e,!!n.multiple,t,!1)}},ri=wo,li=sn;var cf={usingClientEntryPoint:!1,Events:[sr,wn,Yr,ti,ni,wo]},xr={findFiberByHostInstance:Jt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},df={bundleType:xr.bundleType,version:xr.version,rendererPackageName:xr.rendererPackageName,rendererConfig:xr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ne.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ai(e),e===null?null:e.stateNode},findFiberByHostInstance:xr.findFiberByHostInstance||af,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 zl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zl.isDisabled&&zl.supportsFiber)try{Tr=zl.inject(df),gt=zl}catch{}}return Qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cf,Qe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Lo(t))throw Error(i(200));return of(e,t,null,n)},Qe.createRoot=function(e,t){if(!Lo(e))throw Error(i(299));var n=!1,r="",l=Du;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Co(e,1,!1,null,null,n,!1,r,l),e[jt]=t.current,nr(e.nodeType===8?e.parentNode:e),new To(t)},Qe.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(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=ai(t),e=e===null?null:e.stateNode,e},Qe.flushSync=function(e){return sn(e)},Qe.hydrate=function(e,t,n){if(!Ll(t))throw Error(i(200));return Pl(null,e,t,!0,n)},Qe.hydrateRoot=function(e,t,n){if(!Lo(e))throw Error(i(405));var r=n!=null&&n.hydratedSources||null,l=!1,s="",a=Du;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Ru(t,null,e,1,n??null,l,!1,s,a),e[jt]=t.current,nr(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 Tl(t)},Qe.render=function(e,t,n){if(!Ll(t))throw Error(i(200));return Pl(null,e,t,!1,n)},Qe.unmountComponentAtNode=function(e){if(!Ll(e))throw Error(i(40));return e._reactRootContainer?(sn(function(){Pl(null,null,e,!1,function(){e._reactRootContainer=null,e[jt]=null})}),!0):!1},Qe.unstable_batchedUpdates=wo,Qe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ll(n))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return Pl(e,t,n,!1,r)},Qe.version="18.3.1-next-f1338f8080-20240426",Qe}var Hu;function xf(){if(Hu)return Fo.exports;Hu=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(v){console.error(v)}}return u(),Fo.exports=yf(),Fo.exports}var Qu;function wf(){if(Qu)return Fl;Qu=1;var u=xf();return Fl.createRoot=u.createRoot,Fl.hydrateRoot=u.hydrateRoot,Fl}var Sf=wf();const jf=Wo(Sf),Nf={},Ku=u=>{let v;const i=new Set,c=(I,D)=>{const P=typeof I=="function"?I(v):I;if(!Object.is(P,v)){const F=v;v=D??(typeof P!="object"||P===null)?P:Object.assign({},v,P),i.forEach($=>$(v,F))}},p=()=>v,E={setState:c,getState:p,getInitialState:()=>C,subscribe:I=>(i.add(I),()=>i.delete(I)),destroy:()=>{(Nf?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),i.clear()}},C=v=u(c,p,E);return E},kf=u=>u?Ku(u):Ku;var Do={exports:{}},Mo={},Oo={exports:{}},Ao={};/**
41
+ * @license React
42
+ * use-sync-external-store-shim.production.js
43
+ *
44
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
45
+ *
46
+ * This source code is licensed under the MIT license found in the
47
+ * LICENSE file in the root directory of this source tree.
48
+ */var Yu;function Ef(){if(Yu)return Ao;Yu=1;var u=Sr();function v(D,P){return D===P&&(D!==0||1/D===1/P)||D!==D&&P!==P}var i=typeof Object.is=="function"?Object.is:v,c=u.useState,p=u.useEffect,f=u.useLayoutEffect,S=u.useDebugValue;function j(D,P){var F=P(),$=c({inst:{value:F,getSnapshot:P}}),k=$[0].inst,N=$[1];return f(function(){k.value=F,k.getSnapshot=P,E(k)&&N({inst:k})},[D,F,P]),p(function(){return E(k)&&N({inst:k}),D(function(){E(k)&&N({inst:k})})},[D]),S(F),F}function E(D){var P=D.getSnapshot;D=D.value;try{var F=P();return!i(D,F)}catch{return!0}}function C(D,P){return P()}var I=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?C:j;return Ao.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:I,Ao}var Gu;function Cf(){return Gu||(Gu=1,Oo.exports=Ef()),Oo.exports}/**
49
+ * @license React
50
+ * use-sync-external-store-shim/with-selector.production.js
51
+ *
52
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE file in the root directory of this source tree.
56
+ */var Xu;function _f(){if(Xu)return Mo;Xu=1;var u=Sr(),v=Cf();function i(C,I){return C===I&&(C!==0||1/C===1/I)||C!==C&&I!==I}var c=typeof Object.is=="function"?Object.is:i,p=v.useSyncExternalStore,f=u.useRef,S=u.useEffect,j=u.useMemo,E=u.useDebugValue;return Mo.useSyncExternalStoreWithSelector=function(C,I,D,P,F){var $=f(null);if($.current===null){var k={hasValue:!1,value:null};$.current=k}else k=$.current;$=j(function(){function M(K){if(!J){if(J=!0,q=K,K=P(K),F!==void 0&&k.hasValue){var ue=k.value;if(F(ue,K))return ne=ue}return ne=K}if(ue=ne,c(q,K))return ue;var Ce=P(K);return F!==void 0&&F(ue,Ce)?(q=K,ue):(q=K,ne=Ce)}var J=!1,q,ne,we=D===void 0?null:D;return[function(){return M(I())},we===null?void 0:function(){return M(we())}]},[I,D,P,F]);var N=p(C,$[0],$[1]);return S(function(){k.hasValue=!0,k.value=N},[N]),E(N),N},Mo}var Zu;function Tf(){return Zu||(Zu=1,Do.exports=_f()),Do.exports}var Lf=Tf();const Pf=Wo(Lf),ic={},{useDebugValue:zf}=oc,{useSyncExternalStoreWithSelector:Ff}=Pf;let Ju=!1;const Rf=u=>u;function If(u,v=Rf,i){(ic?"production":void 0)!=="production"&&i&&!Ju&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Ju=!0);const c=Ff(u.subscribe,u.getState,u.getServerState||u.getInitialState,v,i);return zf(c),c}const qu=u=>{(ic?"production":void 0)!=="production"&&typeof u!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const v=typeof u=="function"?kf(u):u,i=(c,p)=>If(v,c,p);return Object.assign(i,v),i},Xt=u=>u?qu(u):qu,bu={x:0,y:0,zoom:1},ec=.1,tc=5,ac=Xt(u=>({viewport:bu,isDragging:!1,dragStart:null,setViewport:v=>u({viewport:v}),pan:(v,i)=>u(c=>({viewport:{...c.viewport,x:c.viewport.x+v,y:c.viewport.y+i}})),zoom:(v,i=0,c=0)=>u(p=>{const f=Math.max(ec,Math.min(tc,p.viewport.zoom*v)),S=f/p.viewport.zoom,j=i-(i-p.viewport.x)*S,E=c-(c-p.viewport.y)*S;return{viewport:{x:j,y:E,zoom:f}}}),setZoom:v=>u(i=>({viewport:{...i.viewport,zoom:Math.max(ec,Math.min(tc,v))}})),resetViewport:()=>u({viewport:bu}),startDrag:(v,i)=>u({isDragging:!0,dragStart:{x:v,y:i}}),endDrag:()=>u({isDragging:!1,dragStart:null})})),Df={"#":"component",$:"flow","^":"gate","!":"signal","~":"aspect"};function Il(u){if(u.length<2)return null;const v=u[0],i=u.slice(1),c=Df[v];return c?{type:c,name:i}:null}function Mf(){return{entries:new Map,byType:new Map,bySource:new Map,timestamp:0}}function Of(u,v){return`${{component:"#",flow:"$",gate:"^",signal:"!",aspect:"~"}[u]}${v}`}const Af=["component","flow","gate","signal","aspect"];function $f(u){const S=Math.ceil(Math.sqrt(u.length*1.5));return u.map((j,E)=>({id:j.id,symbol:j.symbol,type:j.type,source:j.source||"purpose",filePath:j.filePath,data:j.data||{},description:j.description,references:j.references||[],referencedBy:j.referencedBy||[],tags:j.tags||[],position:{x:100+E%S*240,y:100+Math.floor(E/S)*160}}))}const nc={component:1,flow:2,gate:3,signal:4,aspect:5},qe=Xt((u,v)=>({nodes:[],selectedId:null,hoveredId:null,isLoading:!0,loadError:null,projectName:null,visibleTypes:Af,filterTags:[],searchQuery:"",layoutMode:"grid",sortOption:"type",setNodes:i=>u({nodes:i}),loadFromApi:async()=>{u({isLoading:!0,loadError:null});try{const i=await fetch("/api/symbols");if(!i.ok)throw new Error(`API error: ${i.status}`);const c=await i.json(),p=$f(c.symbols||[]),f=await fetch("/api/info"),S=f.ok?await f.json():{};u({nodes:p,isLoading:!1,projectName:S.projectName||null})}catch(i){console.error("Failed to load symbols from API:",i),u({isLoading:!1,loadError:i instanceof Error?i.message:"Failed to load",nodes:[]})}},selectNode:i=>u({selectedId:i}),hoverNode:i=>u({hoveredId:i}),updateNodePosition:(i,c)=>u(p=>({nodes:p.nodes.map(f=>f.id===i?{...f,position:c}:f)})),updateNode:(i,c)=>u(p=>{const f=p.nodes.find(j=>j.id===i);if(!f)return p;let S={...c};if(c.type&&c.type!==f.type){const j=Il(f.symbol);if(j){const E=j.name,C=Of(c.type,E);S.symbol=C}}if(c.symbol&&c.symbol!==f.symbol){const j=Il(c.symbol);j&&(S.type=j.type)}return S.modified=new Date().toISOString(),{nodes:p.nodes.map(j=>j.id===i?{...j,...S}:j)}}),addNode:i=>u(c=>({nodes:[...c.nodes,i]})),removeNode:i=>u(c=>({nodes:c.nodes.filter(p=>p.id!==i),selectedId:c.selectedId===i?null:c.selectedId})),addTag:(i,c)=>u(p=>({nodes:p.nodes.map(f=>f.id===i?{...f,tags:[...f.tags||[],c]}:f)})),removeTag:(i,c)=>u(p=>({nodes:p.nodes.map(f=>f.id===i?{...f,tags:(f.tags||[]).filter(S=>S!==c)}:f)})),setVisibleTypes:i=>{u({visibleTypes:i}),setTimeout(()=>{v().reorganizeVisibleNodes()},50)},toggleType:i=>{u(c=>({visibleTypes:c.visibleTypes.includes(i)?c.visibleTypes.filter(p=>p!==i):[...c.visibleTypes,i]})),setTimeout(()=>{v().reorganizeVisibleNodes()},50)},setFilterTags:i=>u({filterTags:i}),setSearchQuery:i=>u({searchQuery:i}),setLayoutMode:i=>{u({layoutMode:i}),i==="canvas"&&setTimeout(()=>v().reorganizeVisibleNodes(),50)},setSortOption:i=>{u({sortOption:i}),v().layoutMode==="canvas"&&setTimeout(()=>v().reorganizeVisibleNodes(),50)},reorganizeVisibleNodes:()=>{const i=v(),c=i.getFilteredNodes();if(c.length===0)return;const p=200,f=120,S=40,j=100,E=100,C=Math.ceil(Math.sqrt(c.length*1.5)),I=i.nodes.map(D=>{const P=c.findIndex(N=>N.id===D.id);if(P===-1)return D;const F=P%C,$=Math.floor(P/C),k={x:j+F*(p+S),y:E+$*(f+S)};return{...D,position:k}});u({nodes:I})},getFilteredNodes:()=>{const i=v();let c=i.nodes;if(c=c.filter(p=>i.visibleTypes.includes(p.type)),i.filterTags.length>0&&(c=c.filter(p=>i.filterTags.some(f=>{var S;return(S=p.tags)==null?void 0:S.includes(f)}))),i.searchQuery){const p=i.searchQuery.toLowerCase();c=c.filter(f=>{var S;return f.symbol.toLowerCase().includes(p)||((S=f.description)==null?void 0:S.toLowerCase().includes(p))})}return c},getSortedNodes:()=>{const i=v();return[...i.getFilteredNodes()].sort((f,S)=>{switch(i.sortOption){case"alpha":return f.symbol.localeCompare(S.symbol);case"type":const j=nc[f.type]-nc[S.type];return j!==0?j:f.symbol.localeCompare(S.symbol);case"updated":const E=f.modified?new Date(f.modified).getTime():0;return(S.modified?new Date(S.modified).getTime():0)-E;case"stale":const I=f.modified?new Date(f.modified).getTime():0,D=S.modified?new Date(S.modified).getTime():0;return I-D;default:return 0}})},getSelectedNode:()=>{const i=v();return i.nodes.find(c=>c.id===i.selectedId)}}));function Uf({viewport:u}){const v={backgroundPosition:`${u.x}px ${u.y}px`,backgroundSize:`
57
+ ${20*u.zoom}px ${20*u.zoom}px,
58
+ ${20*u.zoom}px ${20*u.zoom}px,
59
+ ${100*u.zoom}px ${100*u.zoom}px,
60
+ ${100*u.zoom}px ${100*u.zoom}px
61
+ `};return o.jsx("div",{className:"canvas-grid",style:v})}const Vf={component:"#",flow:"$",gate:"^",signal:"!",aspect:"~"};function Wf(u){return u.slice(1)}function Bf(u){return Vf[u]}function Hf({node:u}){const{selectedId:v,selectNode:i,hoverNode:c}=qe(),p=v===u.id,f=Bf(u.type),S=Wf(u.symbol),j=u.position||{x:Math.random()*400,y:Math.random()*400},E=B.useCallback(I=>{I.stopPropagation(),i(u.id)},[u.id,i]),C=["node",`node--${u.type}`,p?"selected":""].filter(Boolean).join(" ");return o.jsxs("div",{className:C,style:{left:j.x,top:j.y},onClick:E,onMouseEnter:()=>c(u.id),onMouseLeave:()=>c(null),children:[o.jsxs("div",{className:"node-header",children:[o.jsx("span",{className:"node-symbol",children:f}),o.jsx("span",{className:"node-name",children:S})]}),u.description&&o.jsx("div",{className:"node-description",children:u.description}),u.tags&&u.tags.length>0&&o.jsxs("div",{className:"node-tags",children:[u.tags.slice(0,3).map(I=>o.jsx("span",{className:"node-tag",children:I},I)),u.tags.length>3&&o.jsxs("span",{className:"node-tag",children:["+",u.tags.length-3]})]})]})}function Qf({nodes:u}){const v=new Map;for(const c of u)c.position&&v.set(c.symbol,c.position);const i=[];for(const c of u)if(c.position)for(const p of c.references){const f=v.get(p);f&&i.push({from:{x:c.position.x+60,y:c.position.y+20},to:{x:f.x+60,y:f.y+20},key:`${c.symbol}-${p}`})}return i.length===0?null:o.jsxs("svg",{className:"connections-layer",children:[o.jsx("defs",{children:o.jsx("marker",{id:"arrowhead",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto",children:o.jsx("polygon",{points:"0 0, 10 3.5, 0 7",fill:"currentColor"})})}),i.map(({from:c,to:p,key:f})=>{const S=p.x-c.x,j=c.x+S*.5,E=c.y,C=c.x+S*.5,I=p.y;return o.jsx("path",{className:"connection-line",d:`M ${c.x} ${c.y} C ${j} ${E}, ${C} ${I}, ${p.x} ${p.y}`,markerEnd:"url(#arrowhead)"},f)})]})}function Kf(){const u=B.useRef(null),{viewport:v,isDragging:i,dragStart:c,pan:p,zoom:f,startDrag:S,endDrag:j}=ac(),{getFilteredNodes:E,selectNode:C}=qe(),I=E(),D=B.useCallback(N=>{N.preventDefault();const M=N.deltaY>0?.9:1.1;f(M,N.clientX,N.clientY)},[f]),P=B.useCallback(N=>{const M=N.target,J=M.closest(".node"),q=N.button===1,ne=N.button===0&&N.altKey,we=N.button===0&&!J&&(M===u.current||M.classList.contains("canvas-content")||M.classList.contains("canvas-grid")||M.classList.contains("connections-layer")||M.tagName==="svg"||M.tagName==="path");q||ne||we?(N.preventDefault(),S(N.clientX,N.clientY),we&&C(null)):N.button===0&&!J&&M===u.current&&C(null)},[S,C]),F=B.useCallback(N=>{if(i&&c){const M=N.clientX-c.x,J=N.clientY-c.y;p(M,J),S(N.clientX,N.clientY)}},[i,c,p,S]),$=B.useCallback(()=>{i&&j()},[i,j]);B.useEffect(()=>{const N=u.current;if(N)return N.addEventListener("wheel",D,{passive:!1}),()=>{N.removeEventListener("wheel",D)}},[D]),B.useEffect(()=>{if(i)return window.addEventListener("mousemove",F),window.addEventListener("mouseup",$),()=>{window.removeEventListener("mousemove",F),window.removeEventListener("mouseup",$)}},[i,F,$]);const k=`translate(${v.x}px, ${v.y}px) scale(${v.zoom})`;return o.jsxs("div",{ref:u,className:`canvas-container ${i?"dragging":""}`,onMouseDown:P,children:[o.jsx(Uf,{viewport:v}),o.jsxs("div",{className:"canvas-content",style:{transform:k},children:[o.jsx(Qf,{nodes:I}),I.map(N=>o.jsx(Hf,{node:N},N.id))]})]})}const uc={component:{prefix:"#",label:"Components",color:"var(--color-component)"},flow:{prefix:"$",label:"Flows",color:"var(--color-flow)"},gate:{prefix:"^",label:"Gates",color:"var(--color-gate)"},signal:{prefix:"!",label:"Signals",color:"var(--color-signal)"},aspect:{prefix:"~",label:"Aspects",color:"var(--color-aspect)"}},Yf=["component","flow","gate","signal","aspect"];function Gf({node:u,isSelected:v,onClick:i}){const c=uc[u.type],p=u.symbol.slice(1);return o.jsxs("div",{className:`grid-card grid-card--${u.type} ${v?"selected":""}`,onClick:i,children:[o.jsxs("div",{className:"grid-card-header",children:[o.jsx("span",{className:"grid-card-symbol",style:{color:c.color},children:c.prefix}),o.jsx("span",{className:"grid-card-name",children:p})]}),u.description&&o.jsx("div",{className:"grid-card-description",children:u.description}),u.tags&&u.tags.length>0&&o.jsxs("div",{className:"grid-card-tags",children:[u.tags.slice(0,2).map(f=>o.jsx("span",{className:"grid-card-tag",children:f},f)),u.tags.length>2&&o.jsxs("span",{className:"grid-card-tag",children:["+",u.tags.length-2]})]})]})}function Xf(){const{getSortedNodes:u,selectedId:v,selectNode:i,visibleTypes:c}=qe(),p=u(),f=B.useMemo(()=>{const j={component:[],flow:[],gate:[],signal:[],aspect:[]};return p.forEach(E=>{j[E.type]&&j[E.type].push(E)}),j},[p]),S=Yf.filter(j=>c.includes(j)&&f[j].length>0);return p.length===0?o.jsx("div",{className:"grid-view grid-view--empty",children:o.jsx("p",{children:"No symbols match the current filters"})}):o.jsx("div",{className:"grid-view",children:o.jsx("div",{className:"grid-columns",style:{gridTemplateColumns:`repeat(${S.length}, 1fr)`},children:S.map(j=>{const E=uc[j],C=f[j];return o.jsxs("div",{className:"grid-column",children:[o.jsxs("div",{className:"grid-column-header",style:{borderColor:E.color},children:[o.jsx("span",{className:"grid-column-prefix",style:{color:E.color},children:E.prefix}),o.jsx("span",{className:"grid-column-label",children:E.label}),o.jsx("span",{className:"grid-column-count",children:C.length})]}),o.jsx("div",{className:"grid-column-content",children:C.map(I=>o.jsx(Gf,{node:I,isSelected:v===I.id,onClick:()=>i(I.id)},I.id))})]},j)})})})}const Zf={component:{prefix:"#",label:"Component",color:"var(--color-component)"},flow:{prefix:"$",label:"Flow",color:"var(--color-flow)"},gate:{prefix:"^",label:"Gate",color:"var(--color-gate)"},signal:{prefix:"!",label:"Signal",color:"var(--color-signal)"},aspect:{prefix:"~",label:"Aspect",color:"var(--color-aspect)"}};function Jf({node:u,isSelected:v,onClick:i}){const c=Zf[u.type],p=u.symbol.slice(1),f=u.modified?new Date(u.modified).toLocaleDateString():"-";return o.jsxs("tr",{className:`list-row ${v?"selected":""}`,onClick:i,children:[o.jsxs("td",{className:"list-cell list-cell--symbol",children:[o.jsx("span",{className:"list-symbol",style:{color:c.color},children:c.prefix}),o.jsx("span",{className:"list-name",children:p})]}),o.jsx("td",{className:"list-cell list-cell--type",children:o.jsx("span",{className:"list-type-badge",style:{backgroundColor:c.color},children:c.label})}),o.jsx("td",{className:"list-cell list-cell--description",children:u.description||o.jsx("span",{className:"list-empty",children:"-"})}),o.jsx("td",{className:"list-cell list-cell--tags",children:u.tags&&u.tags.length>0?o.jsxs("div",{className:"list-tags",children:[u.tags.slice(0,3).map(S=>o.jsx("span",{className:"list-tag",children:S},S)),u.tags.length>3&&o.jsxs("span",{className:"list-tag-more",children:["+",u.tags.length-3]})]}):o.jsx("span",{className:"list-empty",children:"-"})}),o.jsx("td",{className:"list-cell list-cell--modified",children:f})]})}function $o({label:u,sortKey:v,currentSort:i,onSort:c}){const p=i===v;return o.jsxs("th",{className:`list-header ${p?"list-header--active":""}`,onClick:()=>c(v),children:[u,p&&o.jsx("span",{className:"list-sort-indicator",children:"↓"})]})}function qf(){const{getSortedNodes:u,selectedId:v,selectNode:i,sortOption:c,setSortOption:p}=qe(),f=u();return f.length===0?o.jsx("div",{className:"list-view list-view--empty",children:o.jsx("p",{children:"No symbols match the current filters"})}):o.jsx("div",{className:"list-view",children:o.jsx("div",{className:"list-table-container",children:o.jsxs("table",{className:"list-table",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx($o,{label:"Symbol",sortKey:"alpha",currentSort:c,onSort:p}),o.jsx($o,{label:"Type",sortKey:"type",currentSort:c,onSort:p}),o.jsx("th",{className:"list-header",children:"Description"}),o.jsx("th",{className:"list-header",children:"Tags"}),o.jsx($o,{label:"Modified",sortKey:"updated",currentSort:c,onSort:p})]})}),o.jsx("tbody",{children:f.map(S=>o.jsx(Jf,{node:S,isSelected:v===S.id,onClick:()=>i(S.id)},S.id))})]})})})}const bf=Xt((u,v)=>({index:Mf(),isLoading:!1,error:null,lastUpdated:null,setIndex:i=>u({index:i,lastUpdated:Date.now(),error:null}),setLoading:i=>u({isLoading:i}),setError:i=>u({error:i,isLoading:!1}),search:i=>{var S;const{index:c}=v(),p=i.toLowerCase(),f=[];for(const j of c.entries.values())(j.symbol.toLowerCase().includes(p)||(S=j.description)!=null&&S.toLowerCase().includes(p))&&f.push(j);return f.slice(0,20)},getAutocomplete:i=>{const{index:c}=v();if(!i)return[];const p=i.toLowerCase(),f=[];for(const S of c.entries.values())S.symbol.toLowerCase().startsWith(p)&&f.push(S);return f.sort((S,j)=>{const E=S.symbol.toLowerCase()===p,C=j.symbol.toLowerCase()===p;return E&&!C?-1:!E&&C?1:S.symbol.localeCompare(j.symbol)}),f.slice(0,10)}})),ep={component:"var(--color-component)",flow:"var(--color-flow)",gate:"var(--color-gate)",signal:"var(--color-signal)",aspect:"var(--color-aspect)"};function tp({suggestions:u,selectedIndex:v,onSelect:i,onHover:c}){return o.jsx("div",{className:"autocomplete-dropdown",children:u.map((p,f)=>o.jsxs("div",{className:`autocomplete-item ${f===v?"selected":""}`,onClick:()=>i(p),onMouseEnter:()=>c(f),children:[o.jsx("span",{className:"autocomplete-item-symbol",style:{color:ep[p.type]},children:p.symbol}),p.description&&o.jsx("span",{className:"autocomplete-item-desc",children:p.description})]},p.id))})}function np(){const[u,v]=B.useState(""),[i,c]=B.useState(!1),[p,f]=B.useState(0),S=B.useRef(null),{getAutocomplete:j}=bf(),{addNode:E,selectNode:C}=qe(),I=u.length>0?j(u):[],D=B.useCallback(k=>{const N=k.target.value;v(N),c(N.length>0),f(0)},[]),P=B.useCallback(()=>{if(!u.trim())return;if(I.length>0&&p<I.length){const J=I[p];C(J.id),v(""),c(!1);return}const k=u.trim().split(/\s+/),N=k[0],M=Il(N);if(M){const J=N,q=k.slice(1).join(" "),ne={id:`premise-${Date.now()}`,symbol:J,type:M.type,source:"premise",filePath:".premise",data:{content:q},description:q||void 0,references:[],referencedBy:[],position:{x:200+Math.random()*200,y:200+Math.random()*200},tags:[],created:new Date().toISOString()};E(ne),C(ne.id),v(""),c(!1)}},[u,I,p,C,E]),F=B.useCallback(k=>{var N;if(k.key==="Enter")k.preventDefault(),P();else if(k.key==="ArrowDown")k.preventDefault(),f(M=>Math.min(M+1,I.length-1));else if(k.key==="ArrowUp")k.preventDefault(),f(M=>Math.max(M-1,0));else if(k.key==="Escape")c(!1),(N=S.current)==null||N.blur();else if(k.key==="Tab"&&I.length>0){k.preventDefault();const M=I[p];M&&(v(M.symbol+" "),f(0))}},[P,I,p]),$=B.useCallback(k=>{C(k.id),v(""),c(!1)},[C]);return B.useEffect(()=>{const k=N=>{var M;N.key==="/"&&document.activeElement!==S.current&&(N.preventDefault(),(M=S.current)==null||M.focus())};return window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)},[]),o.jsxs("div",{className:"command-input-container",children:[i&&I.length>0&&o.jsx(tp,{suggestions:I,selectedIndex:p,onSelect:$,onHover:f}),o.jsxs("div",{className:"command-input",children:[o.jsx("span",{className:"command-input-prefix",children:">"}),o.jsx("input",{ref:S,type:"text",value:u,onChange:D,onKeyDown:F,onFocus:()=>c(u.length>0),onBlur:()=>setTimeout(()=>c(!1),200),placeholder:"Type @ # ^ ! ? to create nodes, or search..."}),o.jsx("span",{className:"command-input-hint",children:"Press / to focus"})]})]})}const Uo={component:"Component",flow:"Flow",gate:"Gate",signal:"Signal",aspect:"Aspect"},rp={purpose:"Purpose",gate:"Gate",dream:"Dream"};function lp(){const{getSelectedNode:u,selectNode:v,addTag:i,removeTag:c,updateNode:p}=qe(),f=u(),[S,j]=B.useState(null),[E,C]=B.useState({});if(B.useEffect(()=>{j(null),C({})},[f==null?void 0:f.id]),!f)return null;const I=B.useCallback((k,N)=>{j(k),C({[k]:N})},[]),D=B.useCallback(async(k,N)=>{try{const M=await fetch(`/api/symbols/${k}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(N)});if(!M.ok){const J=await M.json();return console.error("Failed to save:",J.error),!1}return!0}catch(M){return console.error("Failed to save:",M),!1}},[]),P=B.useCallback(async k=>{if(!f)return;const N=E[k];if(N===void 0){j(null);return}if(k==="symbol"&&typeof N=="string"&&!Il(N)){alert("Invalid symbol format. Must start with #, $, ^, !, or ~ (v2 symbols)");return}p(f.id,{[k]:N}),k==="description"&&await D(f.id,{description:N}),j(null),C({})},[f,E,p,D]),F=B.useCallback(()=>{j(null),C({})},[]),$=B.useCallback((k,N)=>{k.key==="Enter"&&!k.shiftKey?(k.preventDefault(),P(N)):k.key==="Escape"&&(k.preventDefault(),F())},[P,F]);return o.jsxs("aside",{className:"properties-panel",children:[o.jsxs("header",{className:"properties-header",children:[S==="symbol"?o.jsx("input",{type:"text",className:"properties-title-input",value:E.symbol??f.symbol,onChange:k=>C({symbol:k.target.value}),onBlur:()=>P("symbol"),onKeyDown:k=>$(k,"symbol"),autoFocus:!0}):o.jsx("h2",{className:"properties-title properties-title-editable",onClick:()=>I("symbol",f.symbol),title:"Click to edit",children:f.symbol}),o.jsx("button",{className:"properties-close",onClick:()=>v(null),"aria-label":"Close panel",children:"×"})]}),o.jsxs("div",{className:"properties-content",children:[o.jsxs("section",{className:"properties-section",children:[o.jsx("h3",{className:"properties-section-title",children:"Details"}),o.jsxs("div",{className:"properties-field",children:[o.jsx("div",{className:"properties-field-label",children:"Type"}),S==="type"?o.jsx("select",{className:"properties-field-input",value:E.type??f.type,onChange:k=>{const N=k.target.value;C({type:N}),p(f.id,{type:N}),j(null)},onBlur:()=>j(null),autoFocus:!0,children:Object.keys(Uo).map(k=>o.jsx("option",{value:k,children:Uo[k]},k))}):o.jsx("div",{className:"properties-field-value properties-field-value-editable",onClick:()=>I("type",f.type),title:"Click to edit",children:Uo[f.type]})]}),o.jsxs("div",{className:"properties-field",children:[o.jsx("div",{className:"properties-field-label",children:"Source"}),o.jsx("div",{className:"properties-field-value",children:rp[f.source]})]}),o.jsxs("div",{className:"properties-field",children:[o.jsx("div",{className:"properties-field-label",children:"Description"}),S==="description"?o.jsx("textarea",{className:"properties-field-textarea",value:E.description??f.description??"",onChange:k=>C({description:k.target.value}),onBlur:()=>P("description"),onKeyDown:k=>$(k,"description"),placeholder:"Enter description...",rows:3,autoFocus:!0}):o.jsx("div",{className:"properties-field-value properties-field-value-editable",onClick:()=>I("description",f.description??""),title:"Click to edit",children:f.description||o.jsx("span",{style:{color:"var(--text-muted)",fontStyle:"italic"},children:"No description (click to add)"})})]}),o.jsxs("div",{className:"properties-field",children:[o.jsx("div",{className:"properties-field-label",children:"File"}),o.jsxs("a",{href:"#",className:"properties-source-link",children:[f.filePath,o.jsx("span",{children:"&nearr;"})]})]})]}),o.jsxs("section",{className:"properties-section",children:[o.jsx("h3",{className:"properties-section-title",children:"Tags"}),o.jsxs("div",{className:"properties-tags",children:[(f.tags||[]).map(k=>o.jsxs("span",{className:"properties-tag",onClick:async()=>{c(f.id,k);const N=(f.tags||[]).filter(M=>M!==k);await D(f.id,{tags:N})},title:"Click to remove",style:{cursor:"pointer"},children:[k," ×"]},k)),o.jsx("button",{className:"properties-tag",style:{background:"transparent",border:"1px dashed var(--input-border)"},onClick:async()=>{const k=prompt("Enter tag name:");if(k){i(f.id,k);const N=[...f.tags||[],k];await D(f.id,{tags:N})}},children:"+ Add"})]})]}),(f.references.length>0||f.referencedBy.length>0)&&o.jsxs("section",{className:"properties-section",children:[o.jsx("h3",{className:"properties-section-title",children:"References"}),f.references.length>0&&o.jsxs("div",{className:"properties-field",children:[o.jsxs("div",{className:"properties-field-label",children:["References (",f.references.length,")"]}),o.jsx("div",{className:"properties-field-value properties-field-value--mono",children:f.references.join(", ")})]}),f.referencedBy.length>0&&o.jsxs("div",{className:"properties-field",children:[o.jsxs("div",{className:"properties-field-label",children:["Referenced by (",f.referencedBy.length,")"]}),o.jsx("div",{className:"properties-field-value properties-field-value--mono",children:f.referencedBy.join(", ")})]})]}),f.position&&o.jsxs("section",{className:"properties-section",children:[o.jsx("h3",{className:"properties-section-title",children:"Position"}),o.jsx("div",{className:"properties-field",children:o.jsxs("div",{className:"properties-field-value properties-field-value--mono",children:["x: ",Math.round(f.position.x),", y: ",Math.round(f.position.y)]})})]}),(f.created||f.modified)&&o.jsxs("section",{className:"properties-section",children:[o.jsx("h3",{className:"properties-section-title",children:"Timeline"}),f.created&&o.jsxs("div",{className:"properties-field",children:[o.jsx("div",{className:"properties-field-label",children:"Created"}),o.jsx("div",{className:"properties-field-value",children:new Date(f.created).toLocaleString()})]}),f.modified&&o.jsxs("div",{className:"properties-field",children:[o.jsx("div",{className:"properties-field-label",children:"Modified"}),o.jsx("div",{className:"properties-field-value",children:new Date(f.modified).toLocaleString()})]})]}),o.jsxs("section",{className:"properties-section",children:[o.jsx("h3",{className:"properties-section-title",children:"Raw Data"}),o.jsx("pre",{style:{fontSize:"11px",fontFamily:"var(--font-mono)",background:"var(--input-bg)",padding:"12px",borderRadius:"8px",overflow:"auto",maxHeight:"200px"},children:JSON.stringify(f.data,null,2)})]})]})]})}const sp=()=>{if(typeof window>"u")return"focus";const u=localStorage.getItem("paradigm-theme");return u==="spectrum"||u==="focus"||u==="deep"?u:u==="morning"?"spectrum":u==="daytime"?"focus":u==="nighttime"?"deep":"focus"},cc=u=>{typeof document<"u"&&(document.documentElement.setAttribute("data-theme",u),localStorage.setItem("paradigm-theme",u))},dc=sp();cc(dc);const fc=Xt(u=>({theme:dc,setTheme:v=>{u({theme:v}),cc(v)}})),op=()=>o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[o.jsx("rect",{x:"3",y:"3",width:"7",height:"7",rx:"1"}),o.jsx("rect",{x:"14",y:"3",width:"7",height:"7",rx:"1"}),o.jsx("rect",{x:"3",y:"14",width:"7",height:"7",rx:"1"}),o.jsx("rect",{x:"14",y:"14",width:"7",height:"7",rx:"1"})]}),ip=()=>o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[o.jsx("rect",{x:"3",y:"3",width:"5",height:"18",rx:"1"}),o.jsx("rect",{x:"10",y:"3",width:"5",height:"18",rx:"1"}),o.jsx("rect",{x:"17",y:"3",width:"5",height:"18",rx:"1"})]}),ap=()=>o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[o.jsx("line",{x1:"8",y1:"6",x2:"21",y2:"6"}),o.jsx("line",{x1:"8",y1:"12",x2:"21",y2:"12"}),o.jsx("line",{x1:"8",y1:"18",x2:"21",y2:"18"}),o.jsx("circle",{cx:"4",cy:"6",r:"1",fill:"currentColor"}),o.jsx("circle",{cx:"4",cy:"12",r:"1",fill:"currentColor"}),o.jsx("circle",{cx:"4",cy:"18",r:"1",fill:"currentColor"})]}),up={component:"var(--color-component)",flow:"var(--color-flow)",gate:"var(--color-gate)",signal:"var(--color-signal)",aspect:"var(--color-aspect)"};function cp({projectName:u}){const{nodes:v,visibleTypes:i,toggleType:c,setVisibleTypes:p,layoutMode:f,setLayoutMode:S,sortOption:j,setSortOption:E}=qe(),{viewport:C,setZoom:I,resetViewport:D}=ac(),{theme:P,setTheme:F}=fc(),$=v.reduce((M,J)=>(M[J.type]=(M[J.type]||0)+1,M),{}),k=[{mode:"canvas",icon:o.jsx(op,{}),title:"Canvas view"},{mode:"grid",icon:o.jsx(ip,{}),title:"Grid view (by type)"},{mode:"list",icon:o.jsx(ap,{}),title:"List view"}],N=[{value:"type",label:"Sort by Type"},{value:"alpha",label:"Sort A-Z"},{value:"updated",label:"Recently Updated"},{value:"stale",label:"Stale First"}];return o.jsxs("header",{className:"toolbar",children:[o.jsx("div",{className:"toolbar-left",children:u&&o.jsx("span",{className:"toolbar-project-name",children:u})}),o.jsx("div",{className:"toolbar-center",children:o.jsxs("div",{className:"toolbar-stats",children:[o.jsx("button",{className:"toolbar-toggle-all",onClick:()=>{const M=Object.keys($).length;if(i.length===M)p([]);else{const q=Object.keys($);p(q)}},title:i.length===Object.keys($).length?"Hide all types":(i.length===0,"Show all types"),children:(()=>{const M=Object.keys($).length,J=i.length===M,q=i.length===0;return J?o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[o.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),o.jsx("circle",{cx:"12",cy:"12",r:"3"})]}):q?o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[o.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),o.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[o.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),o.jsx("path",{d:"M12 9v6"}),o.jsx("path",{d:"M9 12h6"})]})})()}),Object.entries($).map(([M,J])=>{const q=i.includes(M);return o.jsxs("button",{className:`toolbar-stat ${q?"toolbar-stat--active":"toolbar-stat--inactive"}`,onClick:()=>c(M),style:{cursor:"pointer",background:"none",border:"none",color:"inherit",font:"inherit"},title:`Toggle ${M} visibility`,children:[o.jsx("span",{className:`toolbar-stat-icon-wrapper ${q?"toolbar-stat-icon-wrapper--active":"toolbar-stat-icon-wrapper--inactive"}`,children:o.jsx("span",{className:`toolbar-stat-icon ${q?"toolbar-stat-icon--active":"toolbar-stat-icon--inactive"}`,style:{background:q?up[M]:"transparent"}})}),o.jsx("span",{className:q?"toolbar-stat-count--active":"toolbar-stat-count--inactive",children:J})]},M)})]})}),o.jsxs("div",{className:"toolbar-right",children:[o.jsxs("div",{className:"layout-controls",children:[o.jsx("div",{className:"layout-toggle",children:k.map(({mode:M,icon:J,title:q})=>o.jsx("button",{className:`layout-btn ${f===M?"active":""}`,onClick:()=>S(M),title:q,children:J},M))}),f!=="canvas"&&o.jsx("select",{className:"sort-select",value:j,onChange:M=>E(M.target.value),children:N.map(({value:M,label:J})=>o.jsx("option",{value:M,children:J},M))})]}),o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[o.jsxs("div",{className:"theme-toggle",children:[o.jsx("button",{onClick:()=>F("spectrum"),className:`theme-btn ${P==="spectrum"?"active":""}`,title:"Spectrum theme","aria-label":"Spectrum theme",children:"S"}),o.jsx("button",{onClick:()=>F("focus"),className:`theme-btn ${P==="focus"?"active":""}`,title:"Focus theme","aria-label":"Focus theme",children:"F"}),o.jsx("button",{onClick:()=>F("deep"),className:`theme-btn ${P==="deep"?"active":""}`,title:"Deep theme","aria-label":"Deep theme",children:"D"})]}),f==="canvas"&&o.jsxs(o.Fragment,{children:[o.jsx("button",{onClick:()=>I(C.zoom/1.2),style:{background:"var(--input-bg)",border:"1px solid var(--input-border)",borderRadius:"4px",padding:"4px 8px",color:"var(--text-secondary)",cursor:"pointer"},children:"-"}),o.jsxs("span",{style:{fontSize:"12px",color:"var(--text-muted)",minWidth:"50px",textAlign:"center"},children:[Math.round(C.zoom*100),"%"]}),o.jsx("button",{onClick:()=>I(C.zoom*1.2),style:{background:"var(--input-bg)",border:"1px solid var(--input-border)",borderRadius:"4px",padding:"4px 8px",color:"var(--text-secondary)",cursor:"pointer"},children:"+"}),o.jsx("button",{onClick:D,style:{background:"var(--input-bg)",border:"1px solid var(--input-border)",borderRadius:"4px",padding:"4px 8px",color:"var(--text-secondary)",cursor:"pointer",fontSize:"12px"},children:"Reset"})]})]})]})]})}const dp=[{key:"Click + Drag",description:"Pan the canvas",category:"navigation"},{key:"Wheel",description:"Zoom in/out",category:"navigation"},{key:"Click Node",description:"Select a node",category:"interaction"},{key:"Drag Node",description:"Move a node",category:"interaction"},{key:"/",description:"Focus command input",category:"general"},{key:"?",description:"Toggle this help panel",category:"general"},{key:"Esc",description:"Deselect / Close panels",category:"general"}],fp={navigation:"Navigation",interaction:"Interaction",general:"Keyboard Shortcuts"};function pp(){const[u,v]=B.useState(!1),i=B.useCallback(()=>{v(p=>!p)},[]);if(B.useEffect(()=>{const p=f=>{const S=document.activeElement,j=(S==null?void 0:S.tagName)==="INPUT"||(S==null?void 0:S.tagName)==="TEXTAREA";f.key==="?"&&!j&&!f.ctrlKey&&!f.metaKey&&!f.altKey&&(f.preventDefault(),i()),f.key==="Escape"&&u&&!j&&v(!1)};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[i,u]),!u)return o.jsx("button",{className:"help-toggle",onClick:i,title:"Show help (?)","aria-label":"Show help",children:"?"});const c=dp.reduce((p,f)=>(p[f.category]||(p[f.category]=[]),p[f.category].push(f),p),{});return o.jsxs("div",{className:"help-panel",children:[o.jsxs("div",{className:"help-panel-header",children:[o.jsx("h3",{children:"Help & Shortcuts"}),o.jsx("button",{className:"help-panel-close",onClick:i,"aria-label":"Close help",children:"×"})]}),o.jsx("div",{className:"help-panel-content",children:Object.entries(c).map(([p,f])=>o.jsxs("div",{className:"help-category",children:[o.jsx("h4",{children:fp[p]}),o.jsx("div",{className:"help-hotkeys",children:f.map((S,j)=>o.jsxs("div",{className:"help-hotkey",children:[o.jsx("kbd",{className:"help-key",children:S.key}),o.jsx("span",{className:"help-description",children:S.description})]},j))})]},p))}),o.jsx("div",{className:"help-panel-footer",children:o.jsxs("span",{className:"help-hint",children:["Press ",o.jsx("kbd",{children:"?"})," to toggle"]})})]})}function mp(){const u=qe(j=>j.selectedId),v=qe(j=>j.isLoading),i=qe(j=>j.loadError),c=qe(j=>j.projectName),p=qe(j=>j.loadFromApi),f=qe(j=>j.layoutMode);B.useEffect(()=>{p()},[p]);const S=()=>{switch(f){case"grid":return o.jsx(Xf,{});case"list":return o.jsx(qf,{});case"canvas":default:return o.jsx(Kf,{})}};return v?o.jsx("div",{className:"design-view loading-state",children:o.jsxs("div",{className:"loading-content",children:[o.jsx("div",{className:"loading-spinner"}),o.jsx("p",{children:"Loading symbols..."})]})}):i?o.jsx("div",{className:"design-view error-state",children:o.jsxs("div",{className:"error-content",children:[o.jsx("h2",{children:"Failed to load symbols"}),o.jsx("p",{children:i}),o.jsx("button",{onClick:()=>p(),children:"Retry"})]})}):o.jsxs("div",{className:"design-view",children:[o.jsx(cp,{projectName:c}),o.jsxs("div",{className:"design-content",children:[S(),u&&o.jsx(lp,{})]}),f==="canvas"&&o.jsx(np,{}),o.jsx(pp,{})]})}const hp=Xt((u,v)=>({incidents:[],patterns:[],selectedIncidentId:null,isLoading:!1,error:null,statusFilter:"all",environmentFilter:null,symbolFilter:null,loadIncidents:async()=>{u({isLoading:!0,error:null});try{const i=await fetch("/api/incidents");if(!i.ok)throw new Error(`API error: ${i.status}`);const c=await i.json();u({incidents:c.incidents||[],isLoading:!1})}catch(i){console.error("Failed to load incidents:",i),u({isLoading:!1,error:i instanceof Error?i.message:"Failed to load incidents",incidents:[]})}},loadPatterns:async()=>{try{const i=await fetch("/api/patterns");if(!i.ok)throw new Error(`API error: ${i.status}`);const c=await i.json();u({patterns:c.patterns||[]})}catch(i){console.error("Failed to load patterns:",i)}},selectIncident:i=>u({selectedIncidentId:i}),setStatusFilter:i=>u({statusFilter:i}),setEnvironmentFilter:i=>u({environmentFilter:i}),setSymbolFilter:i=>u({symbolFilter:i}),resolveIncident:async i=>{try{const c=await fetch(`/api/incidents/${i}/resolve`,{method:"POST",headers:{"Content-Type":"application/json"}});if(!c.ok)throw new Error(`API error: ${c.status}`);await v().loadIncidents()}catch(c){throw console.error("Failed to resolve incident:",c),c}},getFilteredIncidents:()=>{const i=v();let c=i.incidents;return i.statusFilter!=="all"&&(c=c.filter(p=>p.status===i.statusFilter)),i.environmentFilter&&(c=c.filter(p=>p.environment===i.environmentFilter)),i.symbolFilter&&(c=c.filter(p=>{const f=p.symbols;return f.feature===i.symbolFilter||f.component===i.symbolFilter||f.flow===i.symbolFilter||f.gate===i.symbolFilter||f.signal===i.symbolFilter})),c},getSelectedIncident:()=>{const i=v();return i.incidents.find(c=>c.id===i.selectedIncidentId)}})),rc={open:"#ef4444",investigating:"#f59e0b",resolved:"#22c55e","wont-fix":"#6b7280"},lc={open:"Open",investigating:"Investigating",resolved:"Resolved","wont-fix":"Won't Fix"};function vp(){const{isLoading:u,error:v,statusFilter:i,selectedIncidentId:c,loadIncidents:p,loadPatterns:f,selectIncident:S,setStatusFilter:j,getFilteredIncidents:E,getSelectedIncident:C,resolveIncident:I}=hp(),D=E(),P=C();return B.useEffect(()=>{p(),f()},[p,f]),u?o.jsx("div",{className:"incidents-view loading-state",children:o.jsxs("div",{className:"loading-content",children:[o.jsx("div",{className:"loading-spinner"}),o.jsx("p",{children:"Loading incidents..."})]})}):v?o.jsx("div",{className:"incidents-view error-state",children:o.jsxs("div",{className:"error-content",children:[o.jsx("h2",{children:"Failed to load incidents"}),o.jsx("p",{children:v}),o.jsx("button",{onClick:()=>p(),children:"Retry"})]})}):o.jsxs("div",{className:"incidents-view",children:[o.jsxs("div",{className:"incidents-filters",children:[o.jsxs("div",{className:"filter-group",children:[o.jsx("label",{children:"Status:"}),o.jsxs("select",{value:i,onChange:F=>j(F.target.value),children:[o.jsx("option",{value:"all",children:"All"}),o.jsx("option",{value:"open",children:"Open"}),o.jsx("option",{value:"investigating",children:"Investigating"}),o.jsx("option",{value:"resolved",children:"Resolved"}),o.jsx("option",{value:"wont-fix",children:"Won't Fix"})]})]}),o.jsxs("div",{className:"filter-stats",children:[D.length," incident",D.length!==1?"s":""]})]}),o.jsxs("div",{className:"incidents-content",children:[o.jsx("div",{className:"incidents-list",children:D.length===0?o.jsxs("div",{className:"incidents-empty",children:[o.jsx("p",{children:"No incidents found."}),o.jsx("p",{className:"hint",children:"Incidents are recorded when errors occur in your application."})]}):D.map(F=>o.jsxs("div",{className:`incident-card ${c===F.id?"selected":""}`,onClick:()=>S(F.id),children:[o.jsxs("div",{className:"incident-header",children:[o.jsx("span",{className:"incident-id",children:F.id}),o.jsx("span",{className:"incident-status",style:{color:rc[F.status]},children:lc[F.status]})]}),o.jsx("div",{className:"incident-error",children:F.error.message}),o.jsxs("div",{className:"incident-meta",children:[o.jsx("span",{className:"incident-env",children:F.environment}),o.jsx("span",{className:"incident-time",children:new Date(F.timestamp).toLocaleString()})]}),F.symbols&&Object.keys(F.symbols).length>0&&o.jsxs("div",{className:"incident-symbols",children:[F.symbols.feature&&o.jsxs("span",{className:"symbol-tag feature",children:["@",F.symbols.feature]}),F.symbols.component&&o.jsxs("span",{className:"symbol-tag component",children:["#",F.symbols.component]}),F.symbols.flow&&o.jsxs("span",{className:"symbol-tag flow",children:["$",F.symbols.flow]}),F.symbols.gate&&o.jsxs("span",{className:"symbol-tag gate",children:["^",F.symbols.gate]}),F.symbols.signal&&o.jsxs("span",{className:"symbol-tag signal",children:["!",F.symbols.signal]})]}),F.patternMatches&&F.patternMatches.length>0&&o.jsx("div",{className:"incident-patterns",children:o.jsxs("span",{className:"pattern-match",children:["Matched: ",F.patternMatches[0].patternName,"(",Math.round(F.patternMatches[0].confidence),"%)"]})})]},F.id))}),P&&o.jsxs("div",{className:"incident-detail",children:[o.jsxs("div",{className:"detail-header",children:[o.jsx("h2",{children:P.id}),o.jsx("button",{className:"detail-close",onClick:()=>S(null),children:"×"})]}),o.jsxs("div",{className:"detail-content",children:[o.jsxs("section",{className:"detail-section",children:[o.jsx("h3",{children:"Error"}),o.jsx("div",{className:"error-message",children:P.error.message}),P.error.type&&o.jsxs("div",{className:"error-type",children:["Type: ",P.error.type]})]}),o.jsxs("section",{className:"detail-section",children:[o.jsx("h3",{children:"Context"}),o.jsxs("div",{className:"detail-field",children:[o.jsx("label",{children:"Status"}),o.jsx("span",{className:"status-badge",style:{backgroundColor:rc[P.status]},children:lc[P.status]})]}),o.jsxs("div",{className:"detail-field",children:[o.jsx("label",{children:"Environment"}),o.jsx("span",{children:P.environment})]}),o.jsxs("div",{className:"detail-field",children:[o.jsx("label",{children:"Timestamp"}),o.jsx("span",{children:new Date(P.timestamp).toLocaleString()})]})]}),P.symbols&&Object.keys(P.symbols).length>0&&o.jsxs("section",{className:"detail-section",children:[o.jsx("h3",{children:"Symbols"}),o.jsx("div",{className:"symbols-list",children:Object.entries(P.symbols).map(([F,$])=>$&&o.jsxs("div",{className:"symbol-item",children:[o.jsx("label",{children:F}),o.jsx("span",{className:`symbol-value ${F}`,children:$})]},F))})]}),P.patternMatches&&P.patternMatches.length>0&&o.jsxs("section",{className:"detail-section",children:[o.jsx("h3",{children:"Pattern Matches"}),o.jsx("div",{className:"patterns-list",children:P.patternMatches.map(F=>o.jsxs("div",{className:"pattern-item",children:[o.jsx("div",{className:"pattern-name",children:F.patternName}),o.jsxs("div",{className:"pattern-confidence",children:[Math.round(F.confidence),"% confidence"]})]},F.patternId))})]}),P.status==="open"&&o.jsx("section",{className:"detail-actions",children:o.jsx("button",{className:"action-btn resolve",onClick:()=>I(P.id),children:"Mark Resolved"})})]})]})]})]})}const pc=Xt((u,v)=>({logs:[],services:[],flowEvents:[],isLoading:!1,error:null,isLive:!1,ws:null,levelFilter:"all",serviceFilter:null,symbolFilter:null,searchQuery:"",loadLogs:async()=>{u({isLoading:!0,error:null});try{const i=new URLSearchParams,c=v();c.levelFilter!=="all"&&i.set("level",c.levelFilter),c.serviceFilter&&i.set("service",c.serviceFilter),c.symbolFilter&&i.set("symbol",c.symbolFilter),c.searchQuery&&i.set("search",c.searchQuery),i.set("limit","200");const p=await fetch(`/api/logs?${i}`);if(!p.ok)throw new Error(`API error: ${p.status}`);const f=await p.json();u({logs:f.logs||[],isLoading:!1})}catch(i){u({isLoading:!1,error:i instanceof Error?i.message:"Failed to load logs",logs:[]})}},loadServices:async()=>{try{const i=await fetch("/api/services");if(!i.ok)return;const c=await i.json();u({services:c.services||[]})}catch{}},connectWebSocket:()=>{const i=v().ws;if(i&&i.readyState===WebSocket.OPEN)return;const c=window.location.protocol==="https:"?"wss:":"ws:",p=new WebSocket(`${c}//${window.location.host}`);p.onopen=()=>{p.send(JSON.stringify({method:"subscribe",id:1})),u({isLive:!0,ws:p})},p.onmessage=f=>{try{const S=JSON.parse(f.data);S.type==="log"&&S.entry&&u(j=>({logs:[S.entry,...j.logs].slice(0,500)})),S.type==="flow_event"&&u(j=>({flowEvents:[S,...j.flowEvents].slice(0,200)}))}catch{}},p.onclose=()=>{u({isLive:!1,ws:null})},p.onerror=()=>{u({isLive:!1,ws:null})}},disconnectWebSocket:()=>{const i=v().ws;i&&(i.close(),u({isLive:!1,ws:null}))},setLevelFilter:i=>u({levelFilter:i}),setServiceFilter:i=>u({serviceFilter:i}),setSymbolFilter:i=>u({symbolFilter:i}),setSearchQuery:i=>u({searchQuery:i}),clearLogs:()=>u({logs:[],flowEvents:[]}),getFilteredLogs:()=>{const i=v();let c=i.logs;if(i.levelFilter!=="all"&&(c=c.filter(p=>p.level===i.levelFilter)),i.serviceFilter&&(c=c.filter(p=>p.service===i.serviceFilter)),i.symbolFilter&&(c=c.filter(p=>p.symbol.includes(i.symbolFilter))),i.searchQuery){const p=i.searchQuery.toLowerCase();c=c.filter(f=>f.message.toLowerCase().includes(p)||f.symbol.toLowerCase().includes(p))}return c}})),gp={debug:"#94a3b8",info:"#3b82f6",warn:"#f59e0b",error:"#ef4444"},sc={component:"var(--color-component)",gate:"#f59e0b",signal:"var(--color-signal)",flow:"var(--color-flow)",aspect:"var(--color-aspect)",raw:"var(--text-muted)"};function yp(u){return new Date(u).toLocaleTimeString("en-US",{hour12:!1,fractionalSecondDigits:3})}function xp({entry:u,isExpanded:v,onToggle:i}){const c=sc[u.symbolType]||sc.raw;return o.jsxs("div",{className:`log-row log-row--${u.level}`,onClick:i,children:[o.jsx("span",{className:"log-time",children:yp(u.timestamp)}),o.jsx("span",{className:"log-level",style:{color:gp[u.level]},children:u.level.toUpperCase().padEnd(5)}),o.jsx("span",{className:"log-symbol",style:{color:c},children:u.symbol}),o.jsx("span",{className:"log-service",children:u.service}),o.jsx("span",{className:"log-message",children:u.message}),u.durationMs!==void 0&&o.jsxs("span",{className:"log-duration",children:[u.durationMs.toFixed(1),"ms"]}),v&&u.data&&o.jsx("div",{className:"log-data",onClick:p=>p.stopPropagation(),children:o.jsx("pre",{children:JSON.stringify(u.data,null,2)})})]})}function wp(){const{isLoading:u,error:v,isLive:i,services:c,levelFilter:p,serviceFilter:f,searchQuery:S,loadLogs:j,loadServices:E,connectWebSocket:C,disconnectWebSocket:I,setLevelFilter:D,setServiceFilter:P,setSearchQuery:F,getFilteredLogs:$,clearLogs:k}=pc(),N=$(),M=B.useRef(null),[J,q]=B.useState(null),[ne,we]=B.useState(!0);return B.useEffect(()=>(j(),E(),C(),()=>I()),[j,E,C,I]),B.useEffect(()=>{ne&&M.current&&M.current.scrollIntoView({behavior:"smooth"})},[N.length,ne]),u&&N.length===0?o.jsx("div",{className:"logs-view loading-state",children:o.jsxs("div",{className:"loading-content",children:[o.jsx("div",{className:"loading-spinner"}),o.jsx("p",{children:"Loading logs..."})]})}):v&&N.length===0?o.jsx("div",{className:"logs-view error-state",children:o.jsxs("div",{className:"error-content",children:[o.jsx("h2",{children:"Failed to load logs"}),o.jsx("p",{children:v}),o.jsx("button",{onClick:()=>j(),children:"Retry"})]})}):o.jsxs("div",{className:"logs-view",children:[o.jsxs("div",{className:"logs-toolbar",children:[o.jsxs("div",{className:"logs-filters",children:[o.jsxs("select",{value:p,onChange:K=>D(K.target.value),className:"logs-select",children:[o.jsx("option",{value:"all",children:"All Levels"}),o.jsx("option",{value:"debug",children:"Debug"}),o.jsx("option",{value:"info",children:"Info"}),o.jsx("option",{value:"warn",children:"Warn"}),o.jsx("option",{value:"error",children:"Error"})]}),o.jsxs("select",{value:f||"",onChange:K=>P(K.target.value||null),className:"logs-select",children:[o.jsx("option",{value:"",children:"All Services"}),c.map(K=>o.jsx("option",{value:K.name,children:K.name},K.name))]}),o.jsx("input",{type:"text",placeholder:"Search logs...",value:S,onChange:K=>F(K.target.value),className:"logs-search"})]}),o.jsxs("div",{className:"logs-actions",children:[o.jsxs("span",{className:"logs-count",children:[N.length," entries"]}),o.jsxs("button",{className:`logs-live-btn ${i?"active":""}`,onClick:()=>i?I():C(),title:i?"Streaming live":"Click to connect",children:[o.jsx("span",{className:`live-dot ${i?"live":""}`}),i?"Live":"Paused"]}),o.jsx("button",{className:`logs-scroll-btn ${ne?"active":""}`,onClick:()=>we(!ne),title:"Auto-scroll to new logs",children:ne?"Auto":"Manual"}),o.jsx("button",{className:"logs-clear-btn",onClick:k,title:"Clear log buffer",children:"Clear"})]})]}),o.jsxs("div",{className:"logs-table",children:[o.jsxs("div",{className:"logs-header",children:[o.jsx("span",{className:"log-time",children:"Time"}),o.jsx("span",{className:"log-level",children:"Level"}),o.jsx("span",{className:"log-symbol",children:"Symbol"}),o.jsx("span",{className:"log-service",children:"Service"}),o.jsx("span",{className:"log-message",children:"Message"})]}),o.jsxs("div",{className:"logs-body",children:[N.length===0?o.jsxs("div",{className:"logs-empty",children:[o.jsx("p",{children:"No logs yet."}),o.jsxs("p",{className:"hint",children:["POST structured logs to ",o.jsx("code",{children:"/api/logs"})," or connect an app with the Sentinel client SDK."]})]}):N.map(K=>o.jsx(xp,{entry:K,isExpanded:J===K.id,onToggle:()=>q(J===K.id?null:K.id)},K.id)),o.jsx("div",{ref:M})]})]})]})}const mc={gate:"#f59e0b",action:"var(--color-component)",signal:"var(--color-signal)"},Sp={gate:"^",action:"#",signal:"!"};function hc(u,v){const i=Date.now();return v.some(c=>c.nodeSymbol===u&&i-new Date(c.timestamp).getTime()<5e3)}function jp({flow:u,flowEvents:v,isSelected:i,onSelect:c}){return o.jsxs("div",{className:`flow-card ${i?"selected":""}`,onClick:c,children:[o.jsxs("div",{className:"flow-card-header",children:[o.jsx("span",{className:"flow-card-id",children:u.id}),u.trigger&&o.jsx("span",{className:"flow-card-trigger",children:u.trigger})]}),o.jsx("div",{className:"flow-card-name",children:u.name}),o.jsx("div",{className:"flow-card-steps",children:u.steps.map((p,f)=>{const S=hc(p.symbol,v);return o.jsxs("div",{className:"flow-step-mini",children:[f>0&&o.jsx("span",{className:"flow-arrow",children:"→"}),o.jsx("span",{className:`flow-step-dot ${S?"active pulse":""}`,style:{backgroundColor:S?mc[p.type]:"var(--text-muted)"},title:`${p.symbol} (${p.type})`})]},f)})})]})}function Np({flow:u,flowEvents:v}){return o.jsxs("div",{className:"flow-diagram",children:[o.jsx("h3",{children:u.name}),u.trigger&&o.jsxs("div",{className:"flow-trigger-label",children:["Trigger: ",o.jsx("code",{children:u.trigger})]}),o.jsx("div",{className:"flow-steps",children:u.steps.map((i,c)=>{const p=hc(i.symbol,v),f=v.find(S=>S.nodeSymbol===i.symbol);return o.jsxs("div",{className:"flow-step-container",children:[c>0&&o.jsx("div",{className:"flow-connector",children:o.jsx("div",{className:`flow-line ${p?"active":""}`})}),o.jsxs("div",{className:`flow-step-node ${p?"active":""}`,style:{borderColor:mc[i.type]},children:[o.jsx("span",{className:"flow-step-icon",children:Sp[i.type]}),o.jsx("span",{className:"flow-step-symbol",children:i.symbol}),o.jsx("span",{className:"flow-step-type",children:i.type}),p&&f&&o.jsxs("span",{className:"flow-step-live",children:[f.service," · ",new Date(f.timestamp).toLocaleTimeString()]})]})]},c)})})]})}function kp({symbols:u,onSave:v,onCancel:i}){const[c,p]=B.useState(""),[f,S]=B.useState(""),[j,E]=B.useState([]),C=B.useCallback($=>{E(k=>[...k,{type:$,symbol:""}])},[]),I=B.useCallback(($,k,N)=>{E(M=>M.map((J,q)=>q===$?{...J,[k]:N}:J))},[]),D=B.useCallback($=>{E(k=>k.filter((N,M)=>M!==$))},[]),P=()=>{if(!c||j.length===0)return;const $=`$${c.toLowerCase().replace(/\s+/g,"-")}`;v({id:$,name:c,trigger:f||void 0,steps:j})},F=$=>$==="gate"?u.filter(k=>k.type==="gate"):$==="signal"?u.filter(k=>k.type==="signal"):u.filter(k=>k.type==="component");return o.jsxs("div",{className:"flow-composer",children:[o.jsx("h3",{children:"New Flow"}),o.jsxs("div",{className:"composer-field",children:[o.jsx("label",{children:"Flow Name"}),o.jsx("input",{type:"text",placeholder:"e.g. Checkout Flow",value:c,onChange:$=>p($.target.value)})]}),o.jsxs("div",{className:"composer-field",children:[o.jsx("label",{children:"Trigger (optional)"}),o.jsx("input",{type:"text",placeholder:"e.g. POST /api/checkout",value:f,onChange:$=>S($.target.value)})]}),o.jsxs("div",{className:"composer-steps",children:[o.jsx("label",{children:"Steps"}),j.map(($,k)=>o.jsxs("div",{className:"composer-step",children:[o.jsxs("select",{value:$.type,onChange:N=>I(k,"type",N.target.value),children:[o.jsx("option",{value:"gate",children:"Gate (^)"}),o.jsx("option",{value:"action",children:"Action (#)"}),o.jsx("option",{value:"signal",children:"Signal (!)"})]}),o.jsxs("select",{value:$.symbol,onChange:N=>I(k,"symbol",N.target.value),children:[o.jsx("option",{value:"",children:"Select symbol..."}),F($.type).map(N=>o.jsx("option",{value:N.symbol,children:N.symbol},N.symbol))]}),o.jsx("button",{className:"composer-remove",onClick:()=>D(k),children:"×"})]},k)),o.jsxs("div",{className:"composer-add-buttons",children:[o.jsx("button",{onClick:()=>C("gate"),children:"+ Gate"}),o.jsx("button",{onClick:()=>C("action"),children:"+ Action"}),o.jsx("button",{onClick:()=>C("signal"),children:"+ Signal"})]})]}),o.jsxs("div",{className:"composer-actions",children:[o.jsx("button",{className:"action-btn",onClick:P,disabled:!c||j.length===0,children:"Save Flow"}),o.jsx("button",{className:"action-btn cancel",onClick:i,children:"Cancel"})]})]})}function Ep(){const{flowEvents:u,connectWebSocket:v,disconnectWebSocket:i,isLive:c}=pc(),[p,f]=B.useState([]),[S,j]=B.useState([]),[E,C]=B.useState(null),[I,D]=B.useState(!1),[P,F]=B.useState(!0),$=p.find(N=>N.id===E);B.useEffect(()=>{async function N(){try{const M=await fetch("/api/symbols");if(!M.ok){F(!1);return}const J=await M.json(),q=(J.symbols||[]).map(K=>({symbol:K.symbol,type:K.type}));j(q);const we=(J.symbols||[]).filter(K=>K.type==="flow").map(K=>{var Ce,ot,be;const ue=[];if((Ce=K.data)!=null&&Ce.steps&&Array.isArray(K.data.steps))for(const _e of K.data.steps)ue.push({type:_e.type||"action",symbol:_e.symbol||"",label:_e.label});if(ue.length===0&&K.references)for(const _e of K.references)_e.startsWith("^")?ue.push({type:"gate",symbol:_e}):_e.startsWith("!")?ue.push({type:"signal",symbol:_e}):_e.startsWith("#")&&ue.push({type:"action",symbol:_e});return{id:K.symbol,name:((ot=K.data)==null?void 0:ot.name)||K.symbol.replace("$",""),trigger:(be=K.data)==null?void 0:be.trigger,steps:ue}});f(we),F(!1)}catch{F(!1)}}N()},[]),B.useEffect(()=>(v(),()=>i()),[v,i]);const k=N=>{f(M=>[...M,N]),D(!1),C(N.id)};return P?o.jsx("div",{className:"flows-view loading-state",children:o.jsxs("div",{className:"loading-content",children:[o.jsx("div",{className:"loading-spinner"}),o.jsx("p",{children:"Loading flows..."})]})}):o.jsxs("div",{className:"flows-view",children:[o.jsxs("div",{className:"flows-toolbar",children:[o.jsxs("div",{className:"flows-toolbar-left",children:[o.jsxs("span",{className:"flows-count",children:[p.length," flow",p.length!==1?"s":""]}),o.jsxs("button",{className:`logs-live-btn ${c?"active":""}`,onClick:()=>c?i():v(),children:[o.jsx("span",{className:`live-dot ${c?"live":""}`}),c?"Live":"Paused"]})]}),o.jsx("div",{className:"flows-toolbar-right",children:o.jsx("button",{className:"action-btn",onClick:()=>{D(!0),C(null)},children:"+ New Flow"})})]}),o.jsxs("div",{className:"flows-content",children:[o.jsx("div",{className:"flows-list",children:p.length===0&&!I?o.jsxs("div",{className:"flows-empty",children:[o.jsx("p",{children:"No flows defined."}),o.jsxs("p",{className:"hint",children:["Define flows in ",o.jsx("code",{children:".purpose"})," files or use the composer to create one."]})]}):p.map(N=>o.jsx(jp,{flow:N,flowEvents:u,isSelected:E===N.id,onSelect:()=>{C(N.id),D(!1)}},N.id))}),o.jsx("div",{className:"flows-detail",children:I?o.jsx(kp,{symbols:S,onSave:k,onCancel:()=>D(!1)}):$?o.jsx(Np,{flow:$,flowEvents:u}):o.jsx("div",{className:"flows-empty-detail",children:o.jsx("p",{children:"Select a flow to visualize or create a new one."})})})]})]})}const Dl=Xt((u,v)=>({events:[],scopes:[],selectedScope:null,excludedTypes:new Set,categoryFilter:null,loading:!1,error:null,total:0,fetchEvents:async(i,c={})=>{u({loading:!0,error:null});try{const p=new URLSearchParams({schemaId:i,...c}),f=await fetch(`/api/events?${p}`);if(!f.ok)throw new Error(`Failed to fetch events: ${f.status}`);const S=await f.json();u({events:S.events||[],total:S.total||0,loading:!1})}catch(p){u({error:p instanceof Error?p.message:"Failed to fetch events",loading:!1})}},fetchScopes:async i=>{try{const c=await fetch(`/api/events/scopes?schemaId=${encodeURIComponent(i)}`);if(!c.ok)throw new Error(`Failed to fetch scopes: ${c.status}`);const p=await c.json();u({scopes:p.scopes||[]})}catch(c){u({error:c instanceof Error?c.message:"Failed to fetch scopes"})}},fetchScopeEvents:async(i,c)=>{u({loading:!0,error:null,selectedScope:c});try{const p=await fetch(`/api/events/scope/${encodeURIComponent(c)}?schemaId=${encodeURIComponent(i)}`);if(!p.ok)throw new Error(`Failed to fetch scope events: ${p.status}`);const f=await p.json();u({events:f.events||[],total:f.count||0,loading:!1})}catch(p){u({error:p instanceof Error?p.message:"Failed to fetch scope events",loading:!1})}},selectScope:i=>u({selectedScope:i}),toggleExcludedType:i=>{const c=new Set(v().excludedTypes);c.has(i)?c.delete(i):c.add(i),u({excludedTypes:c})},setCategoryFilter:i=>u({categoryFilter:i}),addRealtimeEvent:i=>{u(c=>({events:[i,...c.events].slice(0,500),total:c.total+1}))}})),Vo=Xt((u,v)=>({schemas:[],selectedSchemaId:null,loading:!1,error:null,fetchSchemas:async()=>{u({loading:!0,error:null});try{const i=await fetch("/api/schemas");if(!i.ok)throw new Error(`Failed to fetch schemas: ${i.status}`);const p=(await i.json()).schemas||[];u({schemas:p,loading:!1}),!v().selectedSchemaId&&p.length>0&&u({selectedSchemaId:p[0].id})}catch(i){u({error:i instanceof Error?i.message:"Failed to fetch schemas",loading:!1})}},selectSchema:i=>u({selectedSchemaId:i}),getSelectedSchema:()=>{const i=v();return i.schemas.find(c=>c.id===i.selectedSchemaId)}})),Cp={debug:"#94a3b8",info:"#3b82f6",warn:"#f59e0b",error:"#ef4444"},_p={logs:"#3b82f6",metrics:"#22c55e",traces:"#a855f7",incidents:"#ef4444",rules:"#f59e0b",state:"#06b6d4",cascade:"#ec4899",lifecycle:"#84cc16"};function Tp(u){return new Date(u).toLocaleTimeString("en-US",{hour12:!1,fractionalSecondDigits:3})}function Rl(u,v){var c;const i=(c=v==null?void 0:v.visualization)==null?void 0:c.categoryColors;return i&&i[u]?i[u]:_p[u]||"var(--text-muted)"}function Lp(){const{schemas:u,selectedSchemaId:v,selectSchema:i,fetchSchemas:c,loading:p}=Vo();return B.useEffect(()=>{c()},[]),p?o.jsx("div",{className:"events-loading",children:"Loading schemas..."}):u.length===0?o.jsxs("div",{className:"events-empty-state",children:[o.jsx("p",{children:"No event schemas registered."}),o.jsxs("p",{className:"hint",children:["Applications register schemas via ",o.jsx("code",{children:"POST /api/schemas"})," or"," ",o.jsx("code",{children:"SentinelWebClient.registerSchema()"}),"."]})]}):o.jsx("select",{className:"events-schema-select",value:v||"",onChange:f=>i(f.target.value||null),children:u.map(f=>o.jsxs("option",{value:f.id,children:[f.name," (v",f.version,")"]},f.id))})}function Pp({schema:u}){const{scopes:v,selectedScope:i,fetchScopes:c,fetchScopeEvents:p,selectScope:f,fetchEvents:S}=Dl();B.useEffect(()=>{c(u.id)},[u.id]);const j=E=>{i===E?(f(null),S(u.id)):p(u.id,E)};return v.length===0?null:o.jsxs("div",{className:"events-scope-nav",children:[o.jsxs("div",{className:"events-scope-label",children:[u.scope.label,"s"]}),o.jsx("div",{className:"events-scope-list",children:v.slice(0,50).map(E=>o.jsxs("button",{className:`events-scope-chip ${i===E.scopeValue?"active":""}`,onClick:()=>j(E.scopeValue),title:`${E.eventCount} events`,children:[o.jsx("span",{className:"scope-value",children:u.scope.type==="number"?`#${E.scopeValue}`:E.scopeValue}),o.jsx("span",{className:"scope-count",children:E.eventCount})]},E.scopeValue))})]})}function zp({schema:u}){var E;const{events:v,categoryFilter:i,setCategoryFilter:c,excludedTypes:p,toggleExcludedType:f}=Dl(),S=[...new Set(v.map(C=>C.category))],j=((E=u.visualization)==null?void 0:E.defaultExcluded)||[];return B.useEffect(()=>{for(const C of j)p.has(C)||f(C)},[u.id]),o.jsxs("div",{className:"events-category-filters",children:[o.jsx("button",{className:`events-category-chip ${i?"":"active"}`,onClick:()=>c(null),children:"All"}),S.map(C=>o.jsx("button",{className:`events-category-chip ${i===C?"active":""}`,onClick:()=>c(i===C?null:C),style:{borderColor:Rl(C,u),color:i===C?"#fff":Rl(C,u),backgroundColor:i===C?Rl(C,u):"transparent"},children:C},C))]})}function Fp({event:u,schema:v,isExpanded:i,onToggle:c}){const p=Rl(u.category,v);return o.jsxs("div",{className:`event-row event-row--${u.severity||"info"}`,onClick:c,children:[o.jsx("span",{className:"event-time",children:Tp(u.timestamp)}),o.jsx("span",{className:"event-severity",style:{color:Cp[u.severity||"info"]},children:(u.severity||"info").toUpperCase().padEnd(5)}),o.jsx("span",{className:"event-category",style:{color:p},children:u.category}),o.jsx("span",{className:"event-type",children:u.eventType}),o.jsx("span",{className:"event-service",children:u.service}),u.scopeValue&&o.jsx("span",{className:"event-scope",children:u.scopeValue}),u.depth!=null&&u.depth>0&&o.jsx("span",{className:"event-depth",style:{paddingLeft:`${u.depth*12}px`},children:" ".repeat(u.depth)}),i&&u.data&&o.jsx("div",{className:"event-data",onClick:f=>f.stopPropagation(),children:o.jsx("pre",{children:JSON.stringify(u.data,null,2)})})]})}function Rp({schema:u}){const{events:v,excludedTypes:i,categoryFilter:c,loading:p}=Dl(),[f,S]=B.useState(null),j=B.useRef(null),E=v.filter(C=>!(i.has(C.eventType)||c&&C.category!==c));return p?o.jsx("div",{className:"events-loading",children:"Loading events..."}):E.length===0?o.jsxs("div",{className:"events-empty-state",children:[o.jsx("p",{children:"No events to display."}),o.jsx("p",{className:"hint",children:"Events will appear here when applications send them to Sentinel."})]}):o.jsxs("div",{className:"events-table",ref:j,children:[o.jsxs("div",{className:"events-table-header",children:[o.jsx("span",{className:"event-time",children:"Time"}),o.jsx("span",{className:"event-severity",children:"Level"}),o.jsx("span",{className:"event-category",children:"Category"}),o.jsx("span",{className:"event-type",children:"Type"}),o.jsx("span",{className:"event-service",children:"Service"}),o.jsx("span",{className:"event-scope",children:"Scope"})]}),o.jsx("div",{className:"events-table-body",children:E.map(C=>o.jsx(Fp,{event:C,schema:u,isExpanded:f===C.id,onToggle:()=>S(f===C.id?null:C.id)},C.id))})]})}function Ip(){const{selectedSchemaId:u}=Vo(),v=Vo(p=>p.getSelectedSchema()),{fetchEvents:i,addRealtimeEvent:c}=Dl();return B.useEffect(()=>{u&&i(u)},[u]),B.useEffect(()=>{if(!u)return;const f=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}`;let S;try{S=new WebSocket(f)}catch{return}return S.onmessage=j=>{var E;try{const C=JSON.parse(j.data);C.type==="event"&&((E=C.event)==null?void 0:E.schemaId)===u&&c(C.event)}catch{}},()=>{S.close()}},[u]),o.jsxs("div",{className:"events-view",children:[o.jsxs("div",{className:"events-toolbar",children:[o.jsx(Lp,{}),v&&o.jsx(zp,{schema:v})]}),v&&o.jsx(Pp,{schema:v}),v?o.jsx(Rp,{schema:v}):o.jsx("div",{className:"events-empty-state",children:o.jsx("p",{children:"Select a schema to view events."})})]})}function Dp(){const[u,v]=B.useState("design"),[i,c]=B.useState(null),[p,f]=B.useState(null),[S,j]=B.useState(!0),[E,C]=B.useState(null),I=fc(D=>D.theme);return B.useEffect(()=>{document.documentElement.setAttribute("data-theme",I)},[I]),B.useEffect(()=>{async function D(){try{const P=await fetch("/api/info");if(P.ok){const F=await P.json();c(F.projectName||null),f(F.projectDir||null)}j(!1)}catch(P){console.error("Failed to load project info:",P),C(P instanceof Error?P.message:"Failed to connect to server"),j(!1)}}D()},[]),S?o.jsx("div",{className:"app loading-state",children:o.jsxs("div",{className:"loading-content",children:[o.jsx("div",{className:"loading-spinner"}),o.jsx("p",{children:"Connecting to Sentinel..."})]})}):E?o.jsx("div",{className:"app error-state",children:o.jsxs("div",{className:"error-content",children:[o.jsx("h2",{children:"Failed to connect"}),o.jsx("p",{children:E}),o.jsxs("p",{className:"hint",children:["Make sure you're running ",o.jsx("code",{children:"paradigm sentinel"})," from your project directory."]}),o.jsx("button",{onClick:()=>window.location.reload(),children:"Retry"})]})}):o.jsxs("div",{className:"app",children:[o.jsxs("header",{className:"view-tabs-header",children:[o.jsx("div",{className:"view-tabs-left",children:o.jsxs("div",{className:"toolbar-logo",children:[o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",children:[o.jsx("rect",{width:"32",height:"32",rx:"8",fill:"#0f172a"}),o.jsx("path",{d:"M16 6L6 26h20L16 6z",fill:"none",stroke:"url(#sentinel-grad)",strokeWidth:"2"}),o.jsx("path",{d:"M4 14L14 16",stroke:"#f8fafc",strokeWidth:"2",strokeLinecap:"round"}),o.jsx("path",{d:"M18 17L28 12",stroke:"#ef4444",strokeWidth:"1.5",strokeLinecap:"round"}),o.jsx("path",{d:"M18 18L28 16",stroke:"#f59e0b",strokeWidth:"1.5",strokeLinecap:"round"}),o.jsx("path",{d:"M18 19L28 20",stroke:"#22c55e",strokeWidth:"1.5",strokeLinecap:"round"}),o.jsx("path",{d:"M18 20L28 24",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round"}),o.jsx("defs",{children:o.jsxs("linearGradient",{id:"sentinel-grad",x1:"6",y1:"26",x2:"26",y2:"6",children:[o.jsx("stop",{offset:"0%",stopColor:"#818cf8"}),o.jsx("stop",{offset:"100%",stopColor:"#c084fc"})]})})]}),o.jsx("span",{children:"Sentinel"}),i&&o.jsx("span",{className:"toolbar-title",children:i})]})}),o.jsxs("div",{className:"view-tabs",children:[o.jsxs("button",{className:`view-tab ${u==="design"?"active":""}`,onClick:()=>v("design"),children:[o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[o.jsx("circle",{cx:"12",cy:"12",r:"3"}),o.jsx("path",{d:"M12 1v6m0 6v6M1 12h6m6 0h6"}),o.jsx("path",{d:"M4.93 4.93l4.24 4.24m5.66 5.66l4.24 4.24M4.93 19.07l4.24-4.24m5.66-5.66l4.24-4.24"})]}),"Design"]}),o.jsxs("button",{className:`view-tab ${u==="logs"?"active":""}`,onClick:()=>v("logs"),children:[o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[o.jsx("path",{d:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"}),o.jsx("polyline",{points:"14 2 14 8 20 8"}),o.jsx("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),o.jsx("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),o.jsx("polyline",{points:"10 9 9 9 8 9"})]}),"Logs"]}),o.jsxs("button",{className:`view-tab ${u==="incidents"?"active":""}`,onClick:()=>v("incidents"),children:[o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[o.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z"}),o.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),o.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),"Incidents"]}),o.jsxs("button",{className:`view-tab ${u==="flows"?"active":""}`,onClick:()=>v("flows"),children:[o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[o.jsx("circle",{cx:"5",cy:"12",r:"3"}),o.jsx("circle",{cx:"19",cy:"6",r:"3"}),o.jsx("circle",{cx:"19",cy:"18",r:"3"}),o.jsx("line",{x1:"8",y1:"12",x2:"16",y2:"6"}),o.jsx("line",{x1:"8",y1:"12",x2:"16",y2:"18"})]}),"Flows"]}),o.jsxs("button",{className:`view-tab ${u==="events"?"active":""}`,onClick:()=>v("events"),children:[o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[o.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),o.jsx("path",{d:"M3 9h18"}),o.jsx("path",{d:"M9 21V9"})]}),"Events"]})]}),o.jsxs("div",{className:"view-tabs-right",children:[p&&o.jsx("div",{className:"project-dir-badge",title:p,children:p}),o.jsxs("div",{className:"version-badge-inline",children:["v","0.1.1"]})]})]}),o.jsxs("main",{className:"main-content",children:[u==="design"&&o.jsx(mp,{}),u==="logs"&&o.jsx(wp,{}),u==="incidents"&&o.jsx(vp,{}),u==="flows"&&o.jsx(Ep,{}),u==="events"&&o.jsx(Ip,{})]})]})}jf.createRoot(document.getElementById("root")).render(o.jsx(oc.StrictMode,{children:o.jsx(Dp,{})}));
62
+ //# sourceMappingURL=index-BuK-X6af.js.map