@doquflow/cli 1.5.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,44 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();function rh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uc={exports:{}},kl={},cc={exports:{}},V={};/**
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 br=Symbol.for("react.element"),ih=Symbol.for("react.portal"),lh=Symbol.for("react.fragment"),oh=Symbol.for("react.strict_mode"),sh=Symbol.for("react.profiler"),ah=Symbol.for("react.provider"),uh=Symbol.for("react.context"),ch=Symbol.for("react.forward_ref"),fh=Symbol.for("react.suspense"),dh=Symbol.for("react.memo"),hh=Symbol.for("react.lazy"),Pa=Symbol.iterator;function ph(e){return e===null||typeof e!="object"?null:(e=Pa&&e[Pa]||e["@@iterator"],typeof e=="function"?e:null)}var fc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},dc=Object.assign,hc={};function tr(e,t,n){this.props=e,this.context=t,this.refs=hc,this.updater=n||fc}tr.prototype.isReactComponent={};tr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};tr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pc(){}pc.prototype=tr.prototype;function js(e,t,n){this.props=e,this.context=t,this.refs=hc,this.updater=n||fc}var Ss=js.prototype=new pc;Ss.constructor=js;dc(Ss,tr.prototype);Ss.isPureReactComponent=!0;var Ma=Array.isArray,mc=Object.prototype.hasOwnProperty,Ns={current:null},gc={key:!0,ref:!0,__self:!0,__source:!0};function vc(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)mc.call(t,r)&&!gc.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:br,type:e,key:l,ref:o,props:i,_owner:Ns.current}}function mh(e,t){return{$$typeof:br,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Es(e){return typeof e=="object"&&e!==null&&e.$$typeof===br}function gh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ta=/\/+/g;function Wl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?gh(""+e.key):t.toString(36)}function Mi(e,t,n,r,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case br:case ih:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Wl(o,0):r,Ma(i)?(n="",e!=null&&(n=e.replace(Ta,"$&/")+"/"),Mi(i,t,n,"",function(c){return c})):i!=null&&(Es(i)&&(i=mh(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Ta,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Ma(e))for(var a=0;a<e.length;a++){l=e[a];var u=r+Wl(l,a);o+=Mi(l,t,n,u,i)}else if(u=ph(e),typeof u=="function")for(e=u.call(e),a=0;!(l=e.next()).done;)l=l.value,u=r+Wl(l,a++),o+=Mi(l,t,n,u,i);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function ai(e,t,n){if(e==null)return e;var r=[],i=0;return Mi(e,r,"","",function(l){return t.call(n,l,i++)}),r}function vh(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Le={current:null},Ti={transition:null},yh={ReactCurrentDispatcher:Le,ReactCurrentBatchConfig:Ti,ReactCurrentOwner:Ns};function yc(){throw Error("act(...) is not supported in production builds of React.")}V.Children={map:ai,forEach:function(e,t,n){ai(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ai(e,function(){t++}),t},toArray:function(e){return ai(e,function(t){return t})||[]},only:function(e){if(!Es(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};V.Component=tr;V.Fragment=lh;V.Profiler=sh;V.PureComponent=js;V.StrictMode=oh;V.Suspense=fh;V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yh;V.act=yc;V.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=dc({},e.props),i=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=Ns.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)mc.call(t,u)&&!gc.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){a=Array(u);for(var c=0;c<u;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:br,type:e.type,key:i,ref:l,props:r,_owner:o}};V.createContext=function(e){return e={$$typeof:uh,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ah,_context:e},e.Consumer=e};V.createElement=vc;V.createFactory=function(e){var t=vc.bind(null,e);return t.type=e,t};V.createRef=function(){return{current:null}};V.forwardRef=function(e){return{$$typeof:ch,render:e}};V.isValidElement=Es;V.lazy=function(e){return{$$typeof:hh,_payload:{_status:-1,_result:e},_init:vh}};V.memo=function(e,t){return{$$typeof:dh,type:e,compare:t===void 0?null:t}};V.startTransition=function(e){var t=Ti.transition;Ti.transition={};try{e()}finally{Ti.transition=t}};V.unstable_act=yc;V.useCallback=function(e,t){return Le.current.useCallback(e,t)};V.useContext=function(e){return Le.current.useContext(e)};V.useDebugValue=function(){};V.useDeferredValue=function(e){return Le.current.useDeferredValue(e)};V.useEffect=function(e,t){return Le.current.useEffect(e,t)};V.useId=function(){return Le.current.useId()};V.useImperativeHandle=function(e,t,n){return Le.current.useImperativeHandle(e,t,n)};V.useInsertionEffect=function(e,t){return Le.current.useInsertionEffect(e,t)};V.useLayoutEffect=function(e,t){return Le.current.useLayoutEffect(e,t)};V.useMemo=function(e,t){return Le.current.useMemo(e,t)};V.useReducer=function(e,t,n){return Le.current.useReducer(e,t,n)};V.useRef=function(e){return Le.current.useRef(e)};V.useState=function(e){return Le.current.useState(e)};V.useSyncExternalStore=function(e,t,n){return Le.current.useSyncExternalStore(e,t,n)};V.useTransition=function(){return Le.current.useTransition()};V.version="18.3.1";cc.exports=V;var L=cc.exports;const xh=rh(L);/**
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 wh=L,_h=Symbol.for("react.element"),kh=Symbol.for("react.fragment"),jh=Object.prototype.hasOwnProperty,Sh=wh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Nh={key:!0,ref:!0,__self:!0,__source:!0};function xc(e,t,n){var r,i={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)jh.call(t,r)&&!Nh.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:_h,type:e,key:l,ref:o,props:i,_owner:Sh.current}}kl.Fragment=kh;kl.jsx=xc;kl.jsxs=xc;uc.exports=kl;var s=uc.exports,ko={},wc={exports:{}},Xe={},_c={exports:{}},kc={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */(function(e){function t(E,T){var R=E.length;E.push(T);e:for(;0<R;){var B=R-1>>>1,U=E[B];if(0<i(U,T))E[B]=T,E[R]=U,R=B;else break e}}function n(E){return E.length===0?null:E[0]}function r(E){if(E.length===0)return null;var T=E[0],R=E.pop();if(R!==T){E[0]=R;e:for(var B=0,U=E.length,ye=U>>>1;B<ye;){var K=2*(B+1)-1,xe=E[K],he=K+1,ae=E[he];if(0>i(xe,R))he<U&&0>i(ae,xe)?(E[B]=ae,E[he]=R,B=he):(E[B]=xe,E[K]=R,B=K);else if(he<U&&0>i(ae,R))E[B]=ae,E[he]=R,B=he;else break e}}return T}function i(E,T){var R=E.sortIndex-T.sortIndex;return R!==0?R:E.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],c=[],h=1,p=null,m=3,y=!1,_=!1,x=!1,w=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(E){for(var T=n(c);T!==null;){if(T.callback===null)r(c);else if(T.startTime<=E)r(c),T.sortIndex=T.expirationTime,t(u,T);else break;T=n(c)}}function g(E){if(x=!1,v(E),!_)if(n(u)!==null)_=!0,P(k);else{var T=n(c);T!==null&&$(g,T.startTime-E)}}function k(E,T){_=!1,x&&(x=!1,f(z),z=-1),y=!0;var R=m;try{for(v(T),p=n(u);p!==null&&(!(p.expirationTime>T)||E&&!H());){var B=p.callback;if(typeof B=="function"){p.callback=null,m=p.priorityLevel;var U=B(p.expirationTime<=T);T=e.unstable_now(),typeof U=="function"?p.callback=U:p===n(u)&&r(u),v(T)}else r(u);p=n(u)}if(p!==null)var ye=!0;else{var K=n(c);K!==null&&$(g,K.startTime-T),ye=!1}return ye}finally{p=null,m=R,y=!1}}var S=!1,N=null,z=-1,I=5,A=-1;function H(){return!(e.unstable_now()-A<I)}function ee(){if(N!==null){var E=e.unstable_now();A=E;var T=!0;try{T=N(!0,E)}finally{T?Y():(S=!1,N=null)}}else S=!1}var Y;if(typeof d=="function")Y=function(){d(ee)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,D=j.port2;j.port1.onmessage=ee,Y=function(){D.postMessage(null)}}else Y=function(){w(ee,0)};function P(E){N=E,S||(S=!0,Y())}function $(E,T){z=w(function(){E(e.unstable_now())},T)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(E){E.callback=null},e.unstable_continueExecution=function(){_||y||(_=!0,P(k))},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<E?Math.floor(1e3/E):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(E){switch(m){case 1:case 2:case 3:var T=3;break;default:T=m}var R=m;m=T;try{return E()}finally{m=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(E,T){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var R=m;m=E;try{return T()}finally{m=R}},e.unstable_scheduleCallback=function(E,T,R){var B=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?B+R:B):R=B,E){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=R+U,E={id:h++,callback:T,priorityLevel:E,startTime:R,expirationTime:U,sortIndex:-1},R>B?(E.sortIndex=R,t(c,E),n(u)===null&&E===n(c)&&(x?(f(z),z=-1):x=!0,$(g,R-B))):(E.sortIndex=U,t(u,E),_||y||(_=!0,P(k))),E},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(E){var T=m;return function(){var R=m;m=T;try{return E.apply(this,arguments)}finally{m=R}}}})(kc);_c.exports=kc;var Eh=_c.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 Ch=L,Qe=Eh;function M(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 jc=new Set,Tr={};function _n(e,t){Yn(e,t),Yn(e+"Capture",t)}function Yn(e,t){for(Tr[e]=t,e=0;e<t.length;e++)jc.add(t[e])}var zt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jo=Object.prototype.hasOwnProperty,zh=/^[: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]*$/,La={},Ra={};function Ph(e){return jo.call(Ra,e)?!0:jo.call(La,e)?!1:zh.test(e)?Ra[e]=!0:(La[e]=!0,!1)}function Mh(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 Th(e,t,n,r){if(t===null||typeof t>"u"||Mh(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 Re(e,t,n,r,i,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ke[e]=new Re(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ke[t]=new Re(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ke[e]=new Re(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ke[e]=new Re(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){ke[e]=new Re(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ke[e]=new Re(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ke[e]=new Re(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ke[e]=new Re(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ke[e]=new Re(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cs=/[\-:]([a-z])/g;function zs(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(Cs,zs);ke[t]=new Re(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(Cs,zs);ke[t]=new Re(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(Cs,zs);ke[t]=new Re(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ke[e]=new Re(e,1,!1,e.toLowerCase(),null,!1,!1)});ke.xlinkHref=new Re("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ke[e]=new Re(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ps(e,t,n,r){var i=ke.hasOwnProperty(t)?ke[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Th(t,n,i,r)&&(n=null),r||i===null?Ph(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Rt=Ch.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ui=Symbol.for("react.element"),En=Symbol.for("react.portal"),Cn=Symbol.for("react.fragment"),Ms=Symbol.for("react.strict_mode"),So=Symbol.for("react.profiler"),Sc=Symbol.for("react.provider"),Nc=Symbol.for("react.context"),Ts=Symbol.for("react.forward_ref"),No=Symbol.for("react.suspense"),Eo=Symbol.for("react.suspense_list"),Ls=Symbol.for("react.memo"),$t=Symbol.for("react.lazy"),Ec=Symbol.for("react.offscreen"),Ia=Symbol.iterator;function lr(e){return e===null||typeof e!="object"?null:(e=Ia&&e[Ia]||e["@@iterator"],typeof e=="function"?e:null)}var re=Object.assign,Vl;function gr(e){if(Vl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Vl=t&&t[1]||""}return`
34
+ `+Vl+e}var Hl=!1;function Ql(e,t){if(!e||Hl)return"";Hl=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
35
+ `),l=r.stack.split(`
36
+ `),o=i.length-1,a=l.length-1;1<=o&&0<=a&&i[o]!==l[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==l[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==l[a]){var u=`
37
+ `+i[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{Hl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gr(e):""}function Lh(e){switch(e.tag){case 5:return gr(e.type);case 16:return gr("Lazy");case 13:return gr("Suspense");case 19:return gr("SuspenseList");case 0:case 2:case 15:return e=Ql(e.type,!1),e;case 11:return e=Ql(e.type.render,!1),e;case 1:return e=Ql(e.type,!0),e;default:return""}}function Co(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 Cn:return"Fragment";case En:return"Portal";case So:return"Profiler";case Ms:return"StrictMode";case No:return"Suspense";case Eo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Nc:return(e.displayName||"Context")+".Consumer";case Sc:return(e._context.displayName||"Context")+".Provider";case Ts:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ls:return t=e.displayName||null,t!==null?t:Co(e.type)||"Memo";case $t:t=e._payload,e=e._init;try{return Co(e(t))}catch{}}return null}function Rh(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 Co(t);case 8:return t===Ms?"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 Jt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Cc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ih(e){var t=Cc(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 i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ci(e){e._valueTracker||(e._valueTracker=Ih(e))}function zc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Cc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Yi(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 zo(e,t){var n=t.checked;return re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Aa(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jt(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 Pc(e,t){t=t.checked,t!=null&&Ps(e,"checked",t,!1)}function Po(e,t){Pc(e,t);var n=Jt(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")?Mo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Mo(e,t.type,Jt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $a(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 Mo(e,t,n){(t!=="number"||Yi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vr=Array.isArray;function On(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Jt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function To(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(M(91));return re({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Da(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(M(92));if(vr(n)){if(1<n.length)throw Error(M(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Jt(n)}}function Mc(e,t){var n=Jt(t.value),r=Jt(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 Oa(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Tc(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 Lo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Tc(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var fi,Lc=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(fi=fi||document.createElement("div"),fi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Lr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var kr={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},Ah=["Webkit","ms","Moz","O"];Object.keys(kr).forEach(function(e){Ah.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kr[t]=kr[e]})});function Rc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||kr.hasOwnProperty(e)&&kr[e]?(""+t).trim():t+"px"}function Ic(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Rc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var $h=re({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 Ro(e,t){if(t){if($h[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function Io(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 Ao=null;function Rs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $o=null,Fn=null,Bn=null;function Fa(e){if(e=ni(e)){if(typeof $o!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Cl(t),$o(e.stateNode,e.type,t))}}function Ac(e){Fn?Bn?Bn.push(e):Bn=[e]:Fn=e}function $c(){if(Fn){var e=Fn,t=Bn;if(Bn=Fn=null,Fa(e),t)for(e=0;e<t.length;e++)Fa(t[e])}}function Dc(e,t){return e(t)}function Oc(){}var Yl=!1;function Fc(e,t,n){if(Yl)return e(t,n);Yl=!0;try{return Dc(e,t,n)}finally{Yl=!1,(Fn!==null||Bn!==null)&&(Oc(),$c())}}function Rr(e,t){var n=e.stateNode;if(n===null)return null;var r=Cl(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(M(231,t,typeof n));return n}var Do=!1;if(zt)try{var or={};Object.defineProperty(or,"passive",{get:function(){Do=!0}}),window.addEventListener("test",or,or),window.removeEventListener("test",or,or)}catch{Do=!1}function Dh(e,t,n,r,i,l,o,a,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(h){this.onError(h)}}var jr=!1,Xi=null,Ki=!1,Oo=null,Oh={onError:function(e){jr=!0,Xi=e}};function Fh(e,t,n,r,i,l,o,a,u){jr=!1,Xi=null,Dh.apply(Oh,arguments)}function Bh(e,t,n,r,i,l,o,a,u){if(Fh.apply(this,arguments),jr){if(jr){var c=Xi;jr=!1,Xi=null}else throw Error(M(198));Ki||(Ki=!0,Oo=c)}}function kn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Bc(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 Ba(e){if(kn(e)!==e)throw Error(M(188))}function Uh(e){var t=e.alternate;if(!t){if(t=kn(e),t===null)throw Error(M(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return Ba(i),e;if(l===r)return Ba(i),t;l=l.sibling}throw Error(M(188))}if(n.return!==r.return)n=i,r=l;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=l;break}if(a===r){o=!0,r=i,n=l;break}a=a.sibling}if(!o){for(a=l.child;a;){if(a===n){o=!0,n=l,r=i;break}if(a===r){o=!0,r=l,n=i;break}a=a.sibling}if(!o)throw Error(M(189))}}if(n.alternate!==r)throw Error(M(190))}if(n.tag!==3)throw Error(M(188));return n.stateNode.current===n?e:t}function Uc(e){return e=Uh(e),e!==null?Wc(e):null}function Wc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Wc(e);if(t!==null)return t;e=e.sibling}return null}var Vc=Qe.unstable_scheduleCallback,Ua=Qe.unstable_cancelCallback,Wh=Qe.unstable_shouldYield,Vh=Qe.unstable_requestPaint,se=Qe.unstable_now,Hh=Qe.unstable_getCurrentPriorityLevel,Is=Qe.unstable_ImmediatePriority,Hc=Qe.unstable_UserBlockingPriority,Gi=Qe.unstable_NormalPriority,Qh=Qe.unstable_LowPriority,Qc=Qe.unstable_IdlePriority,jl=null,mt=null;function Yh(e){if(mt&&typeof mt.onCommitFiberRoot=="function")try{mt.onCommitFiberRoot(jl,e,void 0,(e.current.flags&128)===128)}catch{}}var st=Math.clz32?Math.clz32:Gh,Xh=Math.log,Kh=Math.LN2;function Gh(e){return e>>>=0,e===0?32:31-(Xh(e)/Kh|0)|0}var di=64,hi=4194304;function yr(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 Zi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=yr(a):(l&=o,l!==0&&(r=yr(l)))}else o=n&~i,o!==0?r=yr(o):l!==0&&(r=yr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-st(t),i=1<<n,r|=e[n],t&=~i;return r}function Zh(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 qh(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-st(l),a=1<<o,u=i[o];u===-1?(!(a&n)||a&r)&&(i[o]=Zh(a,t)):u<=t&&(e.expiredLanes|=a),l&=~a}}function Fo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Yc(){var e=di;return di<<=1,!(di&4194240)&&(di=64),e}function Xl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ei(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-st(t),e[t]=n}function Jh(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 i=31-st(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function As(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var X=0;function Xc(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Kc,$s,Gc,Zc,qc,Bo=!1,pi=[],Ht=null,Qt=null,Yt=null,Ir=new Map,Ar=new Map,Ft=[],bh="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 Wa(e,t){switch(e){case"focusin":case"focusout":Ht=null;break;case"dragenter":case"dragleave":Qt=null;break;case"mouseover":case"mouseout":Yt=null;break;case"pointerover":case"pointerout":Ir.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ar.delete(t.pointerId)}}function sr(e,t,n,r,i,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[i]},t!==null&&(t=ni(t),t!==null&&$s(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ep(e,t,n,r,i){switch(t){case"focusin":return Ht=sr(Ht,e,t,n,r,i),!0;case"dragenter":return Qt=sr(Qt,e,t,n,r,i),!0;case"mouseover":return Yt=sr(Yt,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return Ir.set(l,sr(Ir.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,Ar.set(l,sr(Ar.get(l)||null,e,t,n,r,i)),!0}return!1}function Jc(e){var t=sn(e.target);if(t!==null){var n=kn(t);if(n!==null){if(t=n.tag,t===13){if(t=Bc(n),t!==null){e.blockedOn=t,qc(e.priority,function(){Gc(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 Li(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Uo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ao=r,n.target.dispatchEvent(r),Ao=null}else return t=ni(n),t!==null&&$s(t),e.blockedOn=n,!1;t.shift()}return!0}function Va(e,t,n){Li(e)&&n.delete(t)}function tp(){Bo=!1,Ht!==null&&Li(Ht)&&(Ht=null),Qt!==null&&Li(Qt)&&(Qt=null),Yt!==null&&Li(Yt)&&(Yt=null),Ir.forEach(Va),Ar.forEach(Va)}function ar(e,t){e.blockedOn===t&&(e.blockedOn=null,Bo||(Bo=!0,Qe.unstable_scheduleCallback(Qe.unstable_NormalPriority,tp)))}function $r(e){function t(i){return ar(i,e)}if(0<pi.length){ar(pi[0],e);for(var n=1;n<pi.length;n++){var r=pi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ht!==null&&ar(Ht,e),Qt!==null&&ar(Qt,e),Yt!==null&&ar(Yt,e),Ir.forEach(t),Ar.forEach(t),n=0;n<Ft.length;n++)r=Ft[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ft.length&&(n=Ft[0],n.blockedOn===null);)Jc(n),n.blockedOn===null&&Ft.shift()}var Un=Rt.ReactCurrentBatchConfig,qi=!0;function np(e,t,n,r){var i=X,l=Un.transition;Un.transition=null;try{X=1,Ds(e,t,n,r)}finally{X=i,Un.transition=l}}function rp(e,t,n,r){var i=X,l=Un.transition;Un.transition=null;try{X=4,Ds(e,t,n,r)}finally{X=i,Un.transition=l}}function Ds(e,t,n,r){if(qi){var i=Uo(e,t,n,r);if(i===null)ro(e,t,r,Ji,n),Wa(e,r);else if(ep(i,e,t,n,r))r.stopPropagation();else if(Wa(e,r),t&4&&-1<bh.indexOf(e)){for(;i!==null;){var l=ni(i);if(l!==null&&Kc(l),l=Uo(e,t,n,r),l===null&&ro(e,t,r,Ji,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else ro(e,t,r,null,n)}}var Ji=null;function Uo(e,t,n,r){if(Ji=null,e=Rs(r),e=sn(e),e!==null)if(t=kn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Bc(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 Ji=e,null}function bc(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(Hh()){case Is:return 1;case Hc:return 4;case Gi:case Qh:return 16;case Qc:return 536870912;default:return 16}default:return 16}}var Ut=null,Os=null,Ri=null;function ef(){if(Ri)return Ri;var e,t=Os,n=t.length,r,i="value"in Ut?Ut.value:Ut.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[l-r];r++);return Ri=i.slice(e,1<r?1-r:void 0)}function Ii(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 mi(){return!0}function Ha(){return!1}function Ke(e){function t(n,r,i,l,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(l):l[a]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?mi:Ha,this.isPropagationStopped=Ha,this}return re(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=mi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=mi)},persist:function(){},isPersistent:mi}),t}var nr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fs=Ke(nr),ti=re({},nr,{view:0,detail:0}),ip=Ke(ti),Kl,Gl,ur,Sl=re({},ti,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bs,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ur&&(ur&&e.type==="mousemove"?(Kl=e.screenX-ur.screenX,Gl=e.screenY-ur.screenY):Gl=Kl=0,ur=e),Kl)},movementY:function(e){return"movementY"in e?e.movementY:Gl}}),Qa=Ke(Sl),lp=re({},Sl,{dataTransfer:0}),op=Ke(lp),sp=re({},ti,{relatedTarget:0}),Zl=Ke(sp),ap=re({},nr,{animationName:0,elapsedTime:0,pseudoElement:0}),up=Ke(ap),cp=re({},nr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),fp=Ke(cp),dp=re({},nr,{data:0}),Ya=Ke(dp),hp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pp={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"},mp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=mp[e])?!!t[e]:!1}function Bs(){return gp}var vp=re({},ti,{key:function(e){if(e.key){var t=hp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ii(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?pp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bs,charCode:function(e){return e.type==="keypress"?Ii(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ii(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yp=Ke(vp),xp=re({},Sl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xa=Ke(xp),wp=re({},ti,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bs}),_p=Ke(wp),kp=re({},nr,{propertyName:0,elapsedTime:0,pseudoElement:0}),jp=Ke(kp),Sp=re({},Sl,{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}),Np=Ke(Sp),Ep=[9,13,27,32],Us=zt&&"CompositionEvent"in window,Sr=null;zt&&"documentMode"in document&&(Sr=document.documentMode);var Cp=zt&&"TextEvent"in window&&!Sr,tf=zt&&(!Us||Sr&&8<Sr&&11>=Sr),Ka=" ",Ga=!1;function nf(e,t){switch(e){case"keyup":return Ep.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zn=!1;function zp(e,t){switch(e){case"compositionend":return rf(t);case"keypress":return t.which!==32?null:(Ga=!0,Ka);case"textInput":return e=t.data,e===Ka&&Ga?null:e;default:return null}}function Pp(e,t){if(zn)return e==="compositionend"||!Us&&nf(e,t)?(e=ef(),Ri=Os=Ut=null,zn=!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 tf&&t.locale!=="ko"?null:t.data;default:return null}}var Mp={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 Za(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Mp[e.type]:t==="textarea"}function lf(e,t,n,r){Ac(r),t=bi(t,"onChange"),0<t.length&&(n=new Fs("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Nr=null,Dr=null;function Tp(e){gf(e,0)}function Nl(e){var t=Tn(e);if(zc(t))return e}function Lp(e,t){if(e==="change")return t}var of=!1;if(zt){var ql;if(zt){var Jl="oninput"in document;if(!Jl){var qa=document.createElement("div");qa.setAttribute("oninput","return;"),Jl=typeof qa.oninput=="function"}ql=Jl}else ql=!1;of=ql&&(!document.documentMode||9<document.documentMode)}function Ja(){Nr&&(Nr.detachEvent("onpropertychange",sf),Dr=Nr=null)}function sf(e){if(e.propertyName==="value"&&Nl(Dr)){var t=[];lf(t,Dr,e,Rs(e)),Fc(Tp,t)}}function Rp(e,t,n){e==="focusin"?(Ja(),Nr=t,Dr=n,Nr.attachEvent("onpropertychange",sf)):e==="focusout"&&Ja()}function Ip(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Nl(Dr)}function Ap(e,t){if(e==="click")return Nl(t)}function $p(e,t){if(e==="input"||e==="change")return Nl(t)}function Dp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ut=typeof Object.is=="function"?Object.is:Dp;function Or(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 i=n[r];if(!jo.call(t,i)||!ut(e[i],t[i]))return!1}return!0}function ba(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function eu(e,t){var n=ba(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=ba(n)}}function af(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?af(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uf(){for(var e=window,t=Yi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yi(e.document)}return t}function Ws(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 Op(e){var t=uf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&af(n.ownerDocument.documentElement,n)){if(r!==null&&Ws(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 i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=eu(n,l);var o=eu(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Fp=zt&&"documentMode"in document&&11>=document.documentMode,Pn=null,Wo=null,Er=null,Vo=!1;function tu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vo||Pn==null||Pn!==Yi(r)||(r=Pn,"selectionStart"in r&&Ws(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&&Or(Er,r)||(Er=r,r=bi(Wo,"onSelect"),0<r.length&&(t=new Fs("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Pn)))}function gi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Mn={animationend:gi("Animation","AnimationEnd"),animationiteration:gi("Animation","AnimationIteration"),animationstart:gi("Animation","AnimationStart"),transitionend:gi("Transition","TransitionEnd")},bl={},cf={};zt&&(cf=document.createElement("div").style,"AnimationEvent"in window||(delete Mn.animationend.animation,delete Mn.animationiteration.animation,delete Mn.animationstart.animation),"TransitionEvent"in window||delete Mn.transitionend.transition);function El(e){if(bl[e])return bl[e];if(!Mn[e])return e;var t=Mn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in cf)return bl[e]=t[n];return e}var ff=El("animationend"),df=El("animationiteration"),hf=El("animationstart"),pf=El("transitionend"),mf=new Map,nu="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 tn(e,t){mf.set(e,t),_n(t,[e])}for(var eo=0;eo<nu.length;eo++){var to=nu[eo],Bp=to.toLowerCase(),Up=to[0].toUpperCase()+to.slice(1);tn(Bp,"on"+Up)}tn(ff,"onAnimationEnd");tn(df,"onAnimationIteration");tn(hf,"onAnimationStart");tn("dblclick","onDoubleClick");tn("focusin","onFocus");tn("focusout","onBlur");tn(pf,"onTransitionEnd");Yn("onMouseEnter",["mouseout","mouseover"]);Yn("onMouseLeave",["mouseout","mouseover"]);Yn("onPointerEnter",["pointerout","pointerover"]);Yn("onPointerLeave",["pointerout","pointerover"]);_n("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));_n("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));_n("onBeforeInput",["compositionend","keypress","textInput","paste"]);_n("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));_n("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));_n("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xr="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(" "),Wp=new Set("cancel close invalid load scroll toggle".split(" ").concat(xr));function ru(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Bh(r,t,void 0,e),e.currentTarget=null}function gf(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],u=a.instance,c=a.currentTarget;if(a=a.listener,u!==l&&i.isPropagationStopped())break e;ru(i,a,c),l=u}else for(o=0;o<r.length;o++){if(a=r[o],u=a.instance,c=a.currentTarget,a=a.listener,u!==l&&i.isPropagationStopped())break e;ru(i,a,c),l=u}}}if(Ki)throw e=Oo,Ki=!1,Oo=null,e}function q(e,t){var n=t[Ko];n===void 0&&(n=t[Ko]=new Set);var r=e+"__bubble";n.has(r)||(vf(t,e,2,!1),n.add(r))}function no(e,t,n){var r=0;t&&(r|=4),vf(n,e,r,t)}var vi="_reactListening"+Math.random().toString(36).slice(2);function Fr(e){if(!e[vi]){e[vi]=!0,jc.forEach(function(n){n!=="selectionchange"&&(Wp.has(n)||no(n,!1,e),no(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vi]||(t[vi]=!0,no("selectionchange",!1,t))}}function vf(e,t,n,r){switch(bc(t)){case 1:var i=np;break;case 4:i=rp;break;default:i=Ds}n=i.bind(null,t,n,e),i=void 0,!Do||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ro(e,t,n,r,i){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;o=o.return}for(;a!==null;){if(o=sn(a),o===null)return;if(u=o.tag,u===5||u===6){r=l=o;continue e}a=a.parentNode}}r=r.return}Fc(function(){var c=l,h=Rs(n),p=[];e:{var m=mf.get(e);if(m!==void 0){var y=Fs,_=e;switch(e){case"keypress":if(Ii(n)===0)break e;case"keydown":case"keyup":y=yp;break;case"focusin":_="focus",y=Zl;break;case"focusout":_="blur",y=Zl;break;case"beforeblur":case"afterblur":y=Zl;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":y=Qa;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=op;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=_p;break;case ff:case df:case hf:y=up;break;case pf:y=jp;break;case"scroll":y=ip;break;case"wheel":y=Np;break;case"copy":case"cut":case"paste":y=fp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Xa}var x=(t&4)!==0,w=!x&&e==="scroll",f=x?m!==null?m+"Capture":null:m;x=[];for(var d=c,v;d!==null;){v=d;var g=v.stateNode;if(v.tag===5&&g!==null&&(v=g,f!==null&&(g=Rr(d,f),g!=null&&x.push(Br(d,g,v)))),w)break;d=d.return}0<x.length&&(m=new y(m,_,null,n,h),p.push({event:m,listeners:x}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",m&&n!==Ao&&(_=n.relatedTarget||n.fromElement)&&(sn(_)||_[Pt]))break e;if((y||m)&&(m=h.window===h?h:(m=h.ownerDocument)?m.defaultView||m.parentWindow:window,y?(_=n.relatedTarget||n.toElement,y=c,_=_?sn(_):null,_!==null&&(w=kn(_),_!==w||_.tag!==5&&_.tag!==6)&&(_=null)):(y=null,_=c),y!==_)){if(x=Qa,g="onMouseLeave",f="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(x=Xa,g="onPointerLeave",f="onPointerEnter",d="pointer"),w=y==null?m:Tn(y),v=_==null?m:Tn(_),m=new x(g,d+"leave",y,n,h),m.target=w,m.relatedTarget=v,g=null,sn(h)===c&&(x=new x(f,d+"enter",_,n,h),x.target=v,x.relatedTarget=w,g=x),w=g,y&&_)t:{for(x=y,f=_,d=0,v=x;v;v=Nn(v))d++;for(v=0,g=f;g;g=Nn(g))v++;for(;0<d-v;)x=Nn(x),d--;for(;0<v-d;)f=Nn(f),v--;for(;d--;){if(x===f||f!==null&&x===f.alternate)break t;x=Nn(x),f=Nn(f)}x=null}else x=null;y!==null&&iu(p,m,y,x,!1),_!==null&&w!==null&&iu(p,w,_,x,!0)}}e:{if(m=c?Tn(c):window,y=m.nodeName&&m.nodeName.toLowerCase(),y==="select"||y==="input"&&m.type==="file")var k=Lp;else if(Za(m))if(of)k=$p;else{k=Ip;var S=Rp}else(y=m.nodeName)&&y.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(k=Ap);if(k&&(k=k(e,c))){lf(p,k,n,h);break e}S&&S(e,m,c),e==="focusout"&&(S=m._wrapperState)&&S.controlled&&m.type==="number"&&Mo(m,"number",m.value)}switch(S=c?Tn(c):window,e){case"focusin":(Za(S)||S.contentEditable==="true")&&(Pn=S,Wo=c,Er=null);break;case"focusout":Er=Wo=Pn=null;break;case"mousedown":Vo=!0;break;case"contextmenu":case"mouseup":case"dragend":Vo=!1,tu(p,n,h);break;case"selectionchange":if(Fp)break;case"keydown":case"keyup":tu(p,n,h)}var N;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 zn?nf(e,n)&&(z="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(z="onCompositionStart");z&&(tf&&n.locale!=="ko"&&(zn||z!=="onCompositionStart"?z==="onCompositionEnd"&&zn&&(N=ef()):(Ut=h,Os="value"in Ut?Ut.value:Ut.textContent,zn=!0)),S=bi(c,z),0<S.length&&(z=new Ya(z,e,null,n,h),p.push({event:z,listeners:S}),N?z.data=N:(N=rf(n),N!==null&&(z.data=N)))),(N=Cp?zp(e,n):Pp(e,n))&&(c=bi(c,"onBeforeInput"),0<c.length&&(h=new Ya("onBeforeInput","beforeinput",null,n,h),p.push({event:h,listeners:c}),h.data=N))}gf(p,t)})}function Br(e,t,n){return{instance:e,listener:t,currentTarget:n}}function bi(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=Rr(e,n),l!=null&&r.unshift(Br(e,l,i)),l=Rr(e,t),l!=null&&r.push(Br(e,l,i))),e=e.return}return r}function Nn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function iu(e,t,n,r,i){for(var l=t._reactName,o=[];n!==null&&n!==r;){var a=n,u=a.alternate,c=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&c!==null&&(a=c,i?(u=Rr(n,l),u!=null&&o.unshift(Br(n,u,a))):i||(u=Rr(n,l),u!=null&&o.push(Br(n,u,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Vp=/\r\n?/g,Hp=/\u0000|\uFFFD/g;function lu(e){return(typeof e=="string"?e:""+e).replace(Vp,`
38
+ `).replace(Hp,"")}function yi(e,t,n){if(t=lu(t),lu(e)!==t&&n)throw Error(M(425))}function el(){}var Ho=null,Qo=null;function Yo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Xo=typeof setTimeout=="function"?setTimeout:void 0,Qp=typeof clearTimeout=="function"?clearTimeout:void 0,ou=typeof Promise=="function"?Promise:void 0,Yp=typeof queueMicrotask=="function"?queueMicrotask:typeof ou<"u"?function(e){return ou.resolve(null).then(e).catch(Xp)}:Xo;function Xp(e){setTimeout(function(){throw e})}function io(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),$r(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);$r(t)}function Xt(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 su(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 rr=Math.random().toString(36).slice(2),pt="__reactFiber$"+rr,Ur="__reactProps$"+rr,Pt="__reactContainer$"+rr,Ko="__reactEvents$"+rr,Kp="__reactListeners$"+rr,Gp="__reactHandles$"+rr;function sn(e){var t=e[pt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Pt]||n[pt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=su(e);e!==null;){if(n=e[pt])return n;e=su(e)}return t}e=n,n=e.parentNode}return null}function ni(e){return e=e[pt]||e[Pt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Tn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(M(33))}function Cl(e){return e[Ur]||null}var Go=[],Ln=-1;function nn(e){return{current:e}}function J(e){0>Ln||(e.current=Go[Ln],Go[Ln]=null,Ln--)}function Z(e,t){Ln++,Go[Ln]=e.current,e.current=t}var bt={},Ee=nn(bt),Oe=nn(!1),mn=bt;function Xn(e,t){var n=e.type.contextTypes;if(!n)return bt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Fe(e){return e=e.childContextTypes,e!=null}function tl(){J(Oe),J(Ee)}function au(e,t,n){if(Ee.current!==bt)throw Error(M(168));Z(Ee,t),Z(Oe,n)}function yf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(M(108,Rh(e)||"Unknown",i));return re({},n,r)}function nl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bt,mn=Ee.current,Z(Ee,e),Z(Oe,Oe.current),!0}function uu(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=yf(e,t,mn),r.__reactInternalMemoizedMergedChildContext=e,J(Oe),J(Ee),Z(Ee,e)):J(Oe),Z(Oe,n)}var jt=null,zl=!1,lo=!1;function xf(e){jt===null?jt=[e]:jt.push(e)}function Zp(e){zl=!0,xf(e)}function rn(){if(!lo&&jt!==null){lo=!0;var e=0,t=X;try{var n=jt;for(X=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}jt=null,zl=!1}catch(i){throw jt!==null&&(jt=jt.slice(e+1)),Vc(Is,rn),i}finally{X=t,lo=!1}}return null}var Rn=[],In=0,rl=null,il=0,Ge=[],Ze=0,gn=null,St=1,Nt="";function ln(e,t){Rn[In++]=il,Rn[In++]=rl,rl=e,il=t}function wf(e,t,n){Ge[Ze++]=St,Ge[Ze++]=Nt,Ge[Ze++]=gn,gn=e;var r=St;e=Nt;var i=32-st(r)-1;r&=~(1<<i),n+=1;var l=32-st(t)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,St=1<<32-st(t)+i|n<<i|r,Nt=l+e}else St=1<<l|n<<i|r,Nt=e}function Vs(e){e.return!==null&&(ln(e,1),wf(e,1,0))}function Hs(e){for(;e===rl;)rl=Rn[--In],Rn[In]=null,il=Rn[--In],Rn[In]=null;for(;e===gn;)gn=Ge[--Ze],Ge[Ze]=null,Nt=Ge[--Ze],Ge[Ze]=null,St=Ge[--Ze],Ge[Ze]=null}var He=null,Ve=null,b=!1,lt=null;function _f(e,t){var n=qe(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 cu(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,He=e,Ve=Xt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,He=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=gn!==null?{id:St,overflow:Nt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=qe(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,He=e,Ve=null,!0):!1;default:return!1}}function Zo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function qo(e){if(b){var t=Ve;if(t){var n=t;if(!cu(e,t)){if(Zo(e))throw Error(M(418));t=Xt(n.nextSibling);var r=He;t&&cu(e,t)?_f(r,n):(e.flags=e.flags&-4097|2,b=!1,He=e)}}else{if(Zo(e))throw Error(M(418));e.flags=e.flags&-4097|2,b=!1,He=e}}}function fu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;He=e}function xi(e){if(e!==He)return!1;if(!b)return fu(e),b=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Yo(e.type,e.memoizedProps)),t&&(t=Ve)){if(Zo(e))throw kf(),Error(M(418));for(;t;)_f(e,t),t=Xt(t.nextSibling)}if(fu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ve=Xt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ve=null}}else Ve=He?Xt(e.stateNode.nextSibling):null;return!0}function kf(){for(var e=Ve;e;)e=Xt(e.nextSibling)}function Kn(){Ve=He=null,b=!1}function Qs(e){lt===null?lt=[e]:lt.push(e)}var qp=Rt.ReactCurrentBatchConfig;function cr(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(M(309));var r=n.stateNode}if(!r)throw Error(M(147,e));var i=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(o){var a=i.refs;o===null?delete a[l]:a[l]=o},t._stringRef=l,t)}if(typeof e!="string")throw Error(M(284));if(!n._owner)throw Error(M(290,e))}return e}function wi(e,t){throw e=Object.prototype.toString.call(t),Error(M(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function du(e){var t=e._init;return t(e._payload)}function jf(e){function t(f,d){if(e){var v=f.deletions;v===null?(f.deletions=[d],f.flags|=16):v.push(d)}}function n(f,d){if(!e)return null;for(;d!==null;)t(f,d),d=d.sibling;return null}function r(f,d){for(f=new Map;d!==null;)d.key!==null?f.set(d.key,d):f.set(d.index,d),d=d.sibling;return f}function i(f,d){return f=qt(f,d),f.index=0,f.sibling=null,f}function l(f,d,v){return f.index=v,e?(v=f.alternate,v!==null?(v=v.index,v<d?(f.flags|=2,d):v):(f.flags|=2,d)):(f.flags|=1048576,d)}function o(f){return e&&f.alternate===null&&(f.flags|=2),f}function a(f,d,v,g){return d===null||d.tag!==6?(d=ho(v,f.mode,g),d.return=f,d):(d=i(d,v),d.return=f,d)}function u(f,d,v,g){var k=v.type;return k===Cn?h(f,d,v.props.children,g,v.key):d!==null&&(d.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===$t&&du(k)===d.type)?(g=i(d,v.props),g.ref=cr(f,d,v),g.return=f,g):(g=Ui(v.type,v.key,v.props,null,f.mode,g),g.ref=cr(f,d,v),g.return=f,g)}function c(f,d,v,g){return d===null||d.tag!==4||d.stateNode.containerInfo!==v.containerInfo||d.stateNode.implementation!==v.implementation?(d=po(v,f.mode,g),d.return=f,d):(d=i(d,v.children||[]),d.return=f,d)}function h(f,d,v,g,k){return d===null||d.tag!==7?(d=dn(v,f.mode,g,k),d.return=f,d):(d=i(d,v),d.return=f,d)}function p(f,d,v){if(typeof d=="string"&&d!==""||typeof d=="number")return d=ho(""+d,f.mode,v),d.return=f,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case ui:return v=Ui(d.type,d.key,d.props,null,f.mode,v),v.ref=cr(f,null,d),v.return=f,v;case En:return d=po(d,f.mode,v),d.return=f,d;case $t:var g=d._init;return p(f,g(d._payload),v)}if(vr(d)||lr(d))return d=dn(d,f.mode,v,null),d.return=f,d;wi(f,d)}return null}function m(f,d,v,g){var k=d!==null?d.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return k!==null?null:a(f,d,""+v,g);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ui:return v.key===k?u(f,d,v,g):null;case En:return v.key===k?c(f,d,v,g):null;case $t:return k=v._init,m(f,d,k(v._payload),g)}if(vr(v)||lr(v))return k!==null?null:h(f,d,v,g,null);wi(f,v)}return null}function y(f,d,v,g,k){if(typeof g=="string"&&g!==""||typeof g=="number")return f=f.get(v)||null,a(d,f,""+g,k);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case ui:return f=f.get(g.key===null?v:g.key)||null,u(d,f,g,k);case En:return f=f.get(g.key===null?v:g.key)||null,c(d,f,g,k);case $t:var S=g._init;return y(f,d,v,S(g._payload),k)}if(vr(g)||lr(g))return f=f.get(v)||null,h(d,f,g,k,null);wi(d,g)}return null}function _(f,d,v,g){for(var k=null,S=null,N=d,z=d=0,I=null;N!==null&&z<v.length;z++){N.index>z?(I=N,N=null):I=N.sibling;var A=m(f,N,v[z],g);if(A===null){N===null&&(N=I);break}e&&N&&A.alternate===null&&t(f,N),d=l(A,d,z),S===null?k=A:S.sibling=A,S=A,N=I}if(z===v.length)return n(f,N),b&&ln(f,z),k;if(N===null){for(;z<v.length;z++)N=p(f,v[z],g),N!==null&&(d=l(N,d,z),S===null?k=N:S.sibling=N,S=N);return b&&ln(f,z),k}for(N=r(f,N);z<v.length;z++)I=y(N,f,z,v[z],g),I!==null&&(e&&I.alternate!==null&&N.delete(I.key===null?z:I.key),d=l(I,d,z),S===null?k=I:S.sibling=I,S=I);return e&&N.forEach(function(H){return t(f,H)}),b&&ln(f,z),k}function x(f,d,v,g){var k=lr(v);if(typeof k!="function")throw Error(M(150));if(v=k.call(v),v==null)throw Error(M(151));for(var S=k=null,N=d,z=d=0,I=null,A=v.next();N!==null&&!A.done;z++,A=v.next()){N.index>z?(I=N,N=null):I=N.sibling;var H=m(f,N,A.value,g);if(H===null){N===null&&(N=I);break}e&&N&&H.alternate===null&&t(f,N),d=l(H,d,z),S===null?k=H:S.sibling=H,S=H,N=I}if(A.done)return n(f,N),b&&ln(f,z),k;if(N===null){for(;!A.done;z++,A=v.next())A=p(f,A.value,g),A!==null&&(d=l(A,d,z),S===null?k=A:S.sibling=A,S=A);return b&&ln(f,z),k}for(N=r(f,N);!A.done;z++,A=v.next())A=y(N,f,z,A.value,g),A!==null&&(e&&A.alternate!==null&&N.delete(A.key===null?z:A.key),d=l(A,d,z),S===null?k=A:S.sibling=A,S=A);return e&&N.forEach(function(ee){return t(f,ee)}),b&&ln(f,z),k}function w(f,d,v,g){if(typeof v=="object"&&v!==null&&v.type===Cn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ui:e:{for(var k=v.key,S=d;S!==null;){if(S.key===k){if(k=v.type,k===Cn){if(S.tag===7){n(f,S.sibling),d=i(S,v.props.children),d.return=f,f=d;break e}}else if(S.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===$t&&du(k)===S.type){n(f,S.sibling),d=i(S,v.props),d.ref=cr(f,S,v),d.return=f,f=d;break e}n(f,S);break}else t(f,S);S=S.sibling}v.type===Cn?(d=dn(v.props.children,f.mode,g,v.key),d.return=f,f=d):(g=Ui(v.type,v.key,v.props,null,f.mode,g),g.ref=cr(f,d,v),g.return=f,f=g)}return o(f);case En:e:{for(S=v.key;d!==null;){if(d.key===S)if(d.tag===4&&d.stateNode.containerInfo===v.containerInfo&&d.stateNode.implementation===v.implementation){n(f,d.sibling),d=i(d,v.children||[]),d.return=f,f=d;break e}else{n(f,d);break}else t(f,d);d=d.sibling}d=po(v,f.mode,g),d.return=f,f=d}return o(f);case $t:return S=v._init,w(f,d,S(v._payload),g)}if(vr(v))return _(f,d,v,g);if(lr(v))return x(f,d,v,g);wi(f,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,d!==null&&d.tag===6?(n(f,d.sibling),d=i(d,v),d.return=f,f=d):(n(f,d),d=ho(v,f.mode,g),d.return=f,f=d),o(f)):n(f,d)}return w}var Gn=jf(!0),Sf=jf(!1),ll=nn(null),ol=null,An=null,Ys=null;function Xs(){Ys=An=ol=null}function Ks(e){var t=ll.current;J(ll),e._currentValue=t}function Jo(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 Wn(e,t){ol=e,Ys=An=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($e=!0),e.firstContext=null)}function be(e){var t=e._currentValue;if(Ys!==e)if(e={context:e,memoizedValue:t,next:null},An===null){if(ol===null)throw Error(M(308));An=e,ol.dependencies={lanes:0,firstContext:e}}else An=An.next=e;return t}var an=null;function Gs(e){an===null?an=[e]:an.push(e)}function Nf(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Gs(t)):(n.next=i.next,i.next=n),t.interleaved=n,Mt(e,r)}function Mt(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 Dt=!1;function Zs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ef(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 Ct(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Kt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Mt(e,n)}return i=r.interleaved,i===null?(t.next=t,Gs(r)):(t.next=i.next,i.next=t),r.interleaved=t,Mt(e,n)}function Ai(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,As(e,n)}}function hu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,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 sl(e,t,n,r){var i=e.updateQueue;Dt=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var u=a,c=u.next;u.next=null,o===null?l=c:o.next=c,o=u;var h=e.alternate;h!==null&&(h=h.updateQueue,a=h.lastBaseUpdate,a!==o&&(a===null?h.firstBaseUpdate=c:a.next=c,h.lastBaseUpdate=u))}if(l!==null){var p=i.baseState;o=0,h=c=u=null,a=l;do{var m=a.lane,y=a.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var _=e,x=a;switch(m=t,y=n,x.tag){case 1:if(_=x.payload,typeof _=="function"){p=_.call(y,p,m);break e}p=_;break e;case 3:_.flags=_.flags&-65537|128;case 0:if(_=x.payload,m=typeof _=="function"?_.call(y,p,m):_,m==null)break e;p=re({},p,m);break e;case 2:Dt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[a]:m.push(a))}else y={eventTime:y,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},h===null?(c=h=y,u=p):h=h.next=y,o|=m;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;m=a,a=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(h===null&&(u=p),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=h,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);yn|=o,e.lanes=o,e.memoizedState=p}}function pu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(M(191,i));i.call(r)}}}var ri={},gt=nn(ri),Wr=nn(ri),Vr=nn(ri);function un(e){if(e===ri)throw Error(M(174));return e}function qs(e,t){switch(Z(Vr,t),Z(Wr,e),Z(gt,ri),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Lo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Lo(t,e)}J(gt),Z(gt,t)}function Zn(){J(gt),J(Wr),J(Vr)}function Cf(e){un(Vr.current);var t=un(gt.current),n=Lo(t,e.type);t!==n&&(Z(Wr,e),Z(gt,n))}function Js(e){Wr.current===e&&(J(gt),J(Wr))}var te=nn(0);function al(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var oo=[];function bs(){for(var e=0;e<oo.length;e++)oo[e]._workInProgressVersionPrimary=null;oo.length=0}var $i=Rt.ReactCurrentDispatcher,so=Rt.ReactCurrentBatchConfig,vn=0,ne=null,pe=null,ge=null,ul=!1,Cr=!1,Hr=0,Jp=0;function je(){throw Error(M(321))}function ea(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 ta(e,t,n,r,i,l){if(vn=l,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$i.current=e===null||e.memoizedState===null?nm:rm,e=n(r,i),Cr){l=0;do{if(Cr=!1,Hr=0,25<=l)throw Error(M(301));l+=1,ge=pe=null,t.updateQueue=null,$i.current=im,e=n(r,i)}while(Cr)}if($i.current=cl,t=pe!==null&&pe.next!==null,vn=0,ge=pe=ne=null,ul=!1,t)throw Error(M(300));return e}function na(){var e=Hr!==0;return Hr=0,e}function dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ge===null?ne.memoizedState=ge=e:ge=ge.next=e,ge}function et(){if(pe===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=pe.next;var t=ge===null?ne.memoizedState:ge.next;if(t!==null)ge=t,pe=e;else{if(e===null)throw Error(M(310));pe=e,e={memoizedState:pe.memoizedState,baseState:pe.baseState,baseQueue:pe.baseQueue,queue:pe.queue,next:null},ge===null?ne.memoizedState=ge=e:ge=ge.next=e}return ge}function Qr(e,t){return typeof t=="function"?t(e):t}function ao(e){var t=et(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var r=pe,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var o=i.next;i.next=l.next,l.next=o}r.baseQueue=i=l,n.pending=null}if(i!==null){l=i.next,r=r.baseState;var a=o=null,u=null,c=l;do{var h=c.lane;if((vn&h)===h)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var p={lane:h,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(a=u=p,o=r):u=u.next=p,ne.lanes|=h,yn|=h}c=c.next}while(c!==null&&c!==l);u===null?o=r:u.next=a,ut(r,t.memoizedState)||($e=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do l=i.lane,ne.lanes|=l,yn|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function uo(e){var t=et(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do l=e(l,o.action),o=o.next;while(o!==i);ut(l,t.memoizedState)||($e=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function zf(){}function Pf(e,t){var n=ne,r=et(),i=t(),l=!ut(r.memoizedState,i);if(l&&(r.memoizedState=i,$e=!0),r=r.queue,ra(Lf.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||ge!==null&&ge.memoizedState.tag&1){if(n.flags|=2048,Yr(9,Tf.bind(null,n,r,i,t),void 0,null),ve===null)throw Error(M(349));vn&30||Mf(n,t,i)}return i}function Mf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ne.updateQueue,t===null?(t={lastEffect:null,stores:null},ne.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Tf(e,t,n,r){t.value=n,t.getSnapshot=r,Rf(t)&&If(e)}function Lf(e,t,n){return n(function(){Rf(t)&&If(e)})}function Rf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ut(e,n)}catch{return!0}}function If(e){var t=Mt(e,1);t!==null&&at(t,e,1,-1)}function mu(e){var t=dt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qr,lastRenderedState:e},t.queue=e,e=e.dispatch=tm.bind(null,ne,e),[t.memoizedState,e]}function Yr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ne.updateQueue,t===null?(t={lastEffect:null,stores:null},ne.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 Af(){return et().memoizedState}function Di(e,t,n,r){var i=dt();ne.flags|=e,i.memoizedState=Yr(1|t,n,void 0,r===void 0?null:r)}function Pl(e,t,n,r){var i=et();r=r===void 0?null:r;var l=void 0;if(pe!==null){var o=pe.memoizedState;if(l=o.destroy,r!==null&&ea(r,o.deps)){i.memoizedState=Yr(t,n,l,r);return}}ne.flags|=e,i.memoizedState=Yr(1|t,n,l,r)}function gu(e,t){return Di(8390656,8,e,t)}function ra(e,t){return Pl(2048,8,e,t)}function $f(e,t){return Pl(4,2,e,t)}function Df(e,t){return Pl(4,4,e,t)}function Of(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 Ff(e,t,n){return n=n!=null?n.concat([e]):null,Pl(4,4,Of.bind(null,t,e),n)}function ia(){}function Bf(e,t){var n=et();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ea(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Uf(e,t){var n=et();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ea(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wf(e,t,n){return vn&21?(ut(n,t)||(n=Yc(),ne.lanes|=n,yn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,$e=!0),e.memoizedState=n)}function bp(e,t){var n=X;X=n!==0&&4>n?n:4,e(!0);var r=so.transition;so.transition={};try{e(!1),t()}finally{X=n,so.transition=r}}function Vf(){return et().memoizedState}function em(e,t,n){var r=Zt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Hf(e))Qf(t,n);else if(n=Nf(e,t,n,r),n!==null){var i=Te();at(n,e,r,i),Yf(n,t,r)}}function tm(e,t,n){var r=Zt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hf(e))Qf(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,a=l(o,n);if(i.hasEagerState=!0,i.eagerState=a,ut(a,o)){var u=t.interleaved;u===null?(i.next=i,Gs(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=Nf(e,t,i,r),n!==null&&(i=Te(),at(n,e,r,i),Yf(n,t,r))}}function Hf(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function Qf(e,t){Cr=ul=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,As(e,n)}}var cl={readContext:be,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useInsertionEffect:je,useLayoutEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useMutableSource:je,useSyncExternalStore:je,useId:je,unstable_isNewReconciler:!1},nm={readContext:be,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:be,useEffect:gu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Di(4194308,4,Of.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Di(4194308,4,e,t)},useInsertionEffect:function(e,t){return Di(4,2,e,t)},useMemo:function(e,t){var n=dt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=dt();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=em.bind(null,ne,e),[r.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:mu,useDebugValue:ia,useDeferredValue:function(e){return dt().memoizedState=e},useTransition:function(){var e=mu(!1),t=e[0];return e=bp.bind(null,e[1]),dt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ne,i=dt();if(b){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),ve===null)throw Error(M(349));vn&30||Mf(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,gu(Lf.bind(null,r,l,e),[e]),r.flags|=2048,Yr(9,Tf.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=dt(),t=ve.identifierPrefix;if(b){var n=Nt,r=St;n=(r&~(1<<32-st(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Hr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Jp++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},rm={readContext:be,useCallback:Bf,useContext:be,useEffect:ra,useImperativeHandle:Ff,useInsertionEffect:$f,useLayoutEffect:Df,useMemo:Uf,useReducer:ao,useRef:Af,useState:function(){return ao(Qr)},useDebugValue:ia,useDeferredValue:function(e){var t=et();return Wf(t,pe.memoizedState,e)},useTransition:function(){var e=ao(Qr)[0],t=et().memoizedState;return[e,t]},useMutableSource:zf,useSyncExternalStore:Pf,useId:Vf,unstable_isNewReconciler:!1},im={readContext:be,useCallback:Bf,useContext:be,useEffect:ra,useImperativeHandle:Ff,useInsertionEffect:$f,useLayoutEffect:Df,useMemo:Uf,useReducer:uo,useRef:Af,useState:function(){return uo(Qr)},useDebugValue:ia,useDeferredValue:function(e){var t=et();return pe===null?t.memoizedState=e:Wf(t,pe.memoizedState,e)},useTransition:function(){var e=uo(Qr)[0],t=et().memoizedState;return[e,t]},useMutableSource:zf,useSyncExternalStore:Pf,useId:Vf,unstable_isNewReconciler:!1};function rt(e,t){if(e&&e.defaultProps){t=re({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function bo(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:re({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ml={isMounted:function(e){return(e=e._reactInternals)?kn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Te(),i=Zt(e),l=Ct(r,i);l.payload=t,n!=null&&(l.callback=n),t=Kt(e,l,i),t!==null&&(at(t,e,i,r),Ai(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Te(),i=Zt(e),l=Ct(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Kt(e,l,i),t!==null&&(at(t,e,i,r),Ai(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Te(),r=Zt(e),i=Ct(n,r);i.tag=2,t!=null&&(i.callback=t),t=Kt(e,i,r),t!==null&&(at(t,e,r,n),Ai(t,e,r))}};function vu(e,t,n,r,i,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):t.prototype&&t.prototype.isPureReactComponent?!Or(n,r)||!Or(i,l):!0}function Xf(e,t,n){var r=!1,i=bt,l=t.contextType;return typeof l=="object"&&l!==null?l=be(l):(i=Fe(t)?mn:Ee.current,r=t.contextTypes,l=(r=r!=null)?Xn(e,i):bt),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ml,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function yu(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&&Ml.enqueueReplaceState(t,t.state,null)}function es(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Zs(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=be(l):(l=Fe(t)?mn:Ee.current,i.context=Xn(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(bo(e,t,l,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Ml.enqueueReplaceState(i,i.state,null),sl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function qn(e,t){try{var n="",r=t;do n+=Lh(r),r=r.return;while(r);var i=n}catch(l){i=`
39
+ Error generating stack: `+l.message+`
40
+ `+l.stack}return{value:e,source:t,stack:i,digest:null}}function co(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ts(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var lm=typeof WeakMap=="function"?WeakMap:Map;function Kf(e,t,n){n=Ct(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){dl||(dl=!0,fs=r),ts(e,t)},n}function Gf(e,t,n){n=Ct(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ts(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){ts(e,t),typeof r!="function"&&(Gt===null?Gt=new Set([this]):Gt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function xu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new lm;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=xm.bind(null,e,t,n),t.then(e,e))}function wu(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 _u(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ct(-1,1),t.tag=2,Kt(n,t,1))),n.lanes|=1),e)}var om=Rt.ReactCurrentOwner,$e=!1;function Ce(e,t,n,r){t.child=e===null?Sf(t,null,n,r):Gn(t,e.child,n,r)}function ku(e,t,n,r,i){n=n.render;var l=t.ref;return Wn(t,i),r=ta(e,t,n,r,l,i),n=na(),e!==null&&!$e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Tt(e,t,i)):(b&&n&&Vs(t),t.flags|=1,Ce(e,t,r,i),t.child)}function ju(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!da(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Zf(e,t,l,r,i)):(e=Ui(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&i)){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:Or,n(o,r)&&e.ref===t.ref)return Tt(e,t,i)}return t.flags|=1,e=qt(l,r),e.ref=t.ref,e.return=t,t.child=e}function Zf(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(Or(l,r)&&e.ref===t.ref)if($e=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&($e=!0);else return t.lanes=e.lanes,Tt(e,t,i)}return ns(e,t,n,r,i)}function qf(e,t,n){var r=t.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Z(Dn,We),We|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Z(Dn,We),We|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,Z(Dn,We),We|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,Z(Dn,We),We|=r;return Ce(e,t,i,n),t.child}function Jf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ns(e,t,n,r,i){var l=Fe(n)?mn:Ee.current;return l=Xn(t,l),Wn(t,i),n=ta(e,t,n,r,l,i),r=na(),e!==null&&!$e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Tt(e,t,i)):(b&&r&&Vs(t),t.flags|=1,Ce(e,t,n,i),t.child)}function Su(e,t,n,r,i){if(Fe(n)){var l=!0;nl(t)}else l=!1;if(Wn(t,i),t.stateNode===null)Oi(e,t),Xf(t,n,r),es(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var u=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=be(c):(c=Fe(n)?mn:Ee.current,c=Xn(t,c));var h=n.getDerivedStateFromProps,p=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function";p||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||u!==c)&&yu(t,o,r,c),Dt=!1;var m=t.memoizedState;o.state=m,sl(t,r,o,i),u=t.memoizedState,a!==r||m!==u||Oe.current||Dt?(typeof h=="function"&&(bo(t,n,h,r),u=t.memoizedState),(a=Dt||vu(t,n,a,r,m,u,c))?(p||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Ef(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:rt(t.type,a),o.props=c,p=t.pendingProps,m=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=be(u):(u=Fe(n)?mn:Ee.current,u=Xn(t,u));var y=n.getDerivedStateFromProps;(h=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==p||m!==u)&&yu(t,o,r,u),Dt=!1,m=t.memoizedState,o.state=m,sl(t,r,o,i);var _=t.memoizedState;a!==p||m!==_||Oe.current||Dt?(typeof y=="function"&&(bo(t,n,y,r),_=t.memoizedState),(c=Dt||vu(t,n,c,r,m,_,u)||!1)?(h||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,_,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,_,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=_),o.props=r,o.state=_,o.context=u,r=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return rs(e,t,n,r,l,i)}function rs(e,t,n,r,i,l){Jf(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&uu(t,n,!1),Tt(e,t,l);r=t.stateNode,om.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Gn(t,e.child,null,l),t.child=Gn(t,null,a,l)):Ce(e,t,a,l),t.memoizedState=r.state,i&&uu(t,n,!0),t.child}function bf(e){var t=e.stateNode;t.pendingContext?au(e,t.pendingContext,t.pendingContext!==t.context):t.context&&au(e,t.context,!1),qs(e,t.containerInfo)}function Nu(e,t,n,r,i){return Kn(),Qs(i),t.flags|=256,Ce(e,t,n,r),t.child}var is={dehydrated:null,treeContext:null,retryLane:0};function ls(e){return{baseLanes:e,cachePool:null,transitions:null}}function ed(e,t,n){var r=t.pendingProps,i=te.current,l=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Z(te,i&1),e===null)return qo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,l?(r=t.mode,l=t.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=Rl(o,r,0,null),e=dn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=ls(n),t.memoizedState=is,e):la(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return sm(e,t,o,r,a,i,n);if(l){l=r.fallback,o=t.mode,i=e.child,a=i.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=qt(i,u),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?l=qt(a,l):(l=dn(l,o,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,o=e.child.memoizedState,o=o===null?ls(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=is,r}return l=e.child,e=l.sibling,r=qt(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function la(e,t){return t=Rl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function _i(e,t,n,r){return r!==null&&Qs(r),Gn(t,e.child,null,n),e=la(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sm(e,t,n,r,i,l,o){if(n)return t.flags&256?(t.flags&=-257,r=co(Error(M(422))),_i(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=Rl({mode:"visible",children:r.children},i,0,null),l=dn(l,i,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&Gn(t,e.child,null,o),t.child.memoizedState=ls(o),t.memoizedState=is,l);if(!(t.mode&1))return _i(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,l=Error(M(419)),r=co(l,r,void 0),_i(e,t,o,r)}if(a=(o&e.childLanes)!==0,$e||a){if(r=ve,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,Mt(e,i),at(r,e,i,-1))}return fa(),r=co(Error(M(421))),_i(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=wm.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,Ve=Xt(i.nextSibling),He=t,b=!0,lt=null,e!==null&&(Ge[Ze++]=St,Ge[Ze++]=Nt,Ge[Ze++]=gn,St=e.id,Nt=e.overflow,gn=t),t=la(t,r.children),t.flags|=4096,t)}function Eu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Jo(e.return,t,n)}function fo(e,t,n,r,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=i)}function td(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(Ce(e,t,r.children,n),r=te.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Eu(e,n,t);else if(e.tag===19)Eu(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(Z(te,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&al(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),fo(t,!1,i,n,l);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&al(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}fo(t,!0,n,null,l);break;case"together":fo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Oi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Tt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),yn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){for(e=t.child,n=qt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=qt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function am(e,t,n){switch(t.tag){case 3:bf(t),Kn();break;case 5:Cf(t);break;case 1:Fe(t.type)&&nl(t);break;case 4:qs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Z(ll,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Z(te,te.current&1),t.flags|=128,null):n&t.child.childLanes?ed(e,t,n):(Z(te,te.current&1),e=Tt(e,t,n),e!==null?e.sibling:null);Z(te,te.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return td(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Z(te,te.current),r)break;return null;case 22:case 23:return t.lanes=0,qf(e,t,n)}return Tt(e,t,n)}var nd,os,rd,id;nd=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}};os=function(){};rd=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,un(gt.current);var l=null;switch(n){case"input":i=zo(e,i),r=zo(e,r),l=[];break;case"select":i=re({},i,{value:void 0}),r=re({},r,{value:void 0}),l=[];break;case"textarea":i=To(e,i),r=To(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=el)}Ro(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Tr.hasOwnProperty(c)?l||(l=[]):(l=l||[]).push(c,null));for(c in r){var u=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&u!==a&&(u!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&a[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(l||(l=[]),l.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(l=l||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(l=l||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Tr.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&q("scroll",e),l||a===u||(l=[])):(l=l||[]).push(c,u))}n&&(l=l||[]).push("style",n);var c=l;(t.updateQueue=c)&&(t.flags|=4)}};id=function(e,t,n,r){n!==r&&(t.flags|=4)};function fr(e,t){if(!b)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 Se(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function um(e,t,n){var r=t.pendingProps;switch(Hs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Se(t),null;case 1:return Fe(t.type)&&tl(),Se(t),null;case 3:return r=t.stateNode,Zn(),J(Oe),J(Ee),bs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(xi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,lt!==null&&(ps(lt),lt=null))),os(e,t),Se(t),null;case 5:Js(t);var i=un(Vr.current);if(n=t.type,e!==null&&t.stateNode!=null)rd(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(M(166));return Se(t),null}if(e=un(gt.current),xi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[pt]=t,r[Ur]=l,e=(t.mode&1)!==0,n){case"dialog":q("cancel",r),q("close",r);break;case"iframe":case"object":case"embed":q("load",r);break;case"video":case"audio":for(i=0;i<xr.length;i++)q(xr[i],r);break;case"source":q("error",r);break;case"img":case"image":case"link":q("error",r),q("load",r);break;case"details":q("toggle",r);break;case"input":Aa(r,l),q("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},q("invalid",r);break;case"textarea":Da(r,l),q("invalid",r)}Ro(n,l),i=null;for(var o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="children"?typeof a=="string"?r.textContent!==a&&(l.suppressHydrationWarning!==!0&&yi(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(l.suppressHydrationWarning!==!0&&yi(r.textContent,a,e),i=["children",""+a]):Tr.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&q("scroll",r)}switch(n){case"input":ci(r),$a(r,l,!0);break;case"textarea":ci(r),Oa(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=el)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Tc(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[pt]=t,e[Ur]=r,nd(e,t,!1,!1),t.stateNode=e;e:{switch(o=Io(n,r),n){case"dialog":q("cancel",e),q("close",e),i=r;break;case"iframe":case"object":case"embed":q("load",e),i=r;break;case"video":case"audio":for(i=0;i<xr.length;i++)q(xr[i],e);i=r;break;case"source":q("error",e),i=r;break;case"img":case"image":case"link":q("error",e),q("load",e),i=r;break;case"details":q("toggle",e),i=r;break;case"input":Aa(e,r),i=zo(e,r),q("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=re({},r,{value:void 0}),q("invalid",e);break;case"textarea":Da(e,r),i=To(e,r),q("invalid",e);break;default:i=r}Ro(n,i),a=i;for(l in a)if(a.hasOwnProperty(l)){var u=a[l];l==="style"?Ic(e,u):l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Lc(e,u)):l==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Lr(e,u):typeof u=="number"&&Lr(e,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Tr.hasOwnProperty(l)?u!=null&&l==="onScroll"&&q("scroll",e):u!=null&&Ps(e,l,u,o))}switch(n){case"input":ci(e),$a(e,r,!1);break;case"textarea":ci(e),Oa(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Jt(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?On(e,!!r.multiple,l,!1):r.defaultValue!=null&&On(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=el)}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 Se(t),null;case 6:if(e&&t.stateNode!=null)id(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(M(166));if(n=un(Vr.current),un(gt.current),xi(t)){if(r=t.stateNode,n=t.memoizedProps,r[pt]=t,(l=r.nodeValue!==n)&&(e=He,e!==null))switch(e.tag){case 3:yi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&yi(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[pt]=t,t.stateNode=r}return Se(t),null;case 13:if(J(te),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(b&&Ve!==null&&t.mode&1&&!(t.flags&128))kf(),Kn(),t.flags|=98560,l=!1;else if(l=xi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(M(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(M(317));l[pt]=t}else Kn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Se(t),l=!1}else lt!==null&&(ps(lt),lt=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||te.current&1?me===0&&(me=3):fa())),t.updateQueue!==null&&(t.flags|=4),Se(t),null);case 4:return Zn(),os(e,t),e===null&&Fr(t.stateNode.containerInfo),Se(t),null;case 10:return Ks(t.type._context),Se(t),null;case 17:return Fe(t.type)&&tl(),Se(t),null;case 19:if(J(te),l=t.memoizedState,l===null)return Se(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)fr(l,!1);else{if(me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=al(e),o!==null){for(t.flags|=128,fr(l,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,o=l.alternate,o===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,e=o.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Z(te,te.current&1|2),t.child}e=e.sibling}l.tail!==null&&se()>Jn&&(t.flags|=128,r=!0,fr(l,!1),t.lanes=4194304)}else{if(!r)if(e=al(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!b)return Se(t),null}else 2*se()-l.renderingStartTime>Jn&&n!==1073741824&&(t.flags|=128,r=!0,fr(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=se(),t.sibling=null,n=te.current,Z(te,r?n&1|2:n&1),t):(Se(t),null);case 22:case 23:return ca(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?We&1073741824&&(Se(t),t.subtreeFlags&6&&(t.flags|=8192)):Se(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function cm(e,t){switch(Hs(t),t.tag){case 1:return Fe(t.type)&&tl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zn(),J(Oe),J(Ee),bs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Js(t),null;case 13:if(J(te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));Kn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(te),null;case 4:return Zn(),null;case 10:return Ks(t.type._context),null;case 22:case 23:return ca(),null;case 24:return null;default:return null}}var ki=!1,Ne=!1,fm=typeof WeakSet=="function"?WeakSet:Set,O=null;function $n(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){le(e,t,r)}else n.current=null}function ss(e,t,n){try{n()}catch(r){le(e,t,r)}}var Cu=!1;function dm(e,t){if(Ho=qi,e=uf(),Ws(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 i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,c=0,h=0,p=e,m=null;t:for(;;){for(var y;p!==n||i!==0&&p.nodeType!==3||(a=o+i),p!==l||r!==0&&p.nodeType!==3||(u=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(y=p.firstChild)!==null;)m=p,p=y;for(;;){if(p===e)break t;if(m===n&&++c===i&&(a=o),m===l&&++h===r&&(u=o),(y=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=y}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qo={focusedElem:e,selectionRange:n},qi=!1,O=t;O!==null;)if(t=O,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,O=e;else for(;O!==null;){t=O;try{var _=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var x=_.memoizedProps,w=_.memoizedState,f=t.stateNode,d=f.getSnapshotBeforeUpdate(t.elementType===t.type?x:rt(t.type,x),w);f.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(g){le(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,O=e;break}O=t.return}return _=Cu,Cu=!1,_}function zr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&ss(t,n,l)}i=i.next}while(i!==r)}}function Tl(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 as(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 ld(e){var t=e.alternate;t!==null&&(e.alternate=null,ld(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pt],delete t[Ur],delete t[Ko],delete t[Kp],delete t[Gp])),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 od(e){return e.tag===5||e.tag===3||e.tag===4}function zu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||od(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 us(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=el));else if(r!==4&&(e=e.child,e!==null))for(us(e,t,n),e=e.sibling;e!==null;)us(e,t,n),e=e.sibling}function cs(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(cs(e,t,n),e=e.sibling;e!==null;)cs(e,t,n),e=e.sibling}var we=null,it=!1;function At(e,t,n){for(n=n.child;n!==null;)sd(e,t,n),n=n.sibling}function sd(e,t,n){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(jl,n)}catch{}switch(n.tag){case 5:Ne||$n(n,t);case 6:var r=we,i=it;we=null,At(e,t,n),we=r,it=i,we!==null&&(it?(e=we,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):we.removeChild(n.stateNode));break;case 18:we!==null&&(it?(e=we,n=n.stateNode,e.nodeType===8?io(e.parentNode,n):e.nodeType===1&&io(e,n),$r(e)):io(we,n.stateNode));break;case 4:r=we,i=it,we=n.stateNode.containerInfo,it=!0,At(e,t,n),we=r,it=i;break;case 0:case 11:case 14:case 15:if(!Ne&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&ss(n,t,o),i=i.next}while(i!==r)}At(e,t,n);break;case 1:if(!Ne&&($n(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){le(n,t,a)}At(e,t,n);break;case 21:At(e,t,n);break;case 22:n.mode&1?(Ne=(r=Ne)||n.memoizedState!==null,At(e,t,n),Ne=r):At(e,t,n);break;default:At(e,t,n)}}function Pu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new fm),t.forEach(function(r){var i=_m.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var l=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:we=a.stateNode,it=!1;break e;case 3:we=a.stateNode.containerInfo,it=!0;break e;case 4:we=a.stateNode.containerInfo,it=!0;break e}a=a.return}if(we===null)throw Error(M(160));sd(l,o,i),we=null,it=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(c){le(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ad(t,e),t=t.sibling}function ad(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(nt(t,e),ft(e),r&4){try{zr(3,e,e.return),Tl(3,e)}catch(x){le(e,e.return,x)}try{zr(5,e,e.return)}catch(x){le(e,e.return,x)}}break;case 1:nt(t,e),ft(e),r&512&&n!==null&&$n(n,n.return);break;case 5:if(nt(t,e),ft(e),r&512&&n!==null&&$n(n,n.return),e.flags&32){var i=e.stateNode;try{Lr(i,"")}catch(x){le(e,e.return,x)}}if(r&4&&(i=e.stateNode,i!=null)){var l=e.memoizedProps,o=n!==null?n.memoizedProps:l,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&l.type==="radio"&&l.name!=null&&Pc(i,l),Io(a,o);var c=Io(a,l);for(o=0;o<u.length;o+=2){var h=u[o],p=u[o+1];h==="style"?Ic(i,p):h==="dangerouslySetInnerHTML"?Lc(i,p):h==="children"?Lr(i,p):Ps(i,h,p,c)}switch(a){case"input":Po(i,l);break;case"textarea":Mc(i,l);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var y=l.value;y!=null?On(i,!!l.multiple,y,!1):m!==!!l.multiple&&(l.defaultValue!=null?On(i,!!l.multiple,l.defaultValue,!0):On(i,!!l.multiple,l.multiple?[]:"",!1))}i[Ur]=l}catch(x){le(e,e.return,x)}}break;case 6:if(nt(t,e),ft(e),r&4){if(e.stateNode===null)throw Error(M(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(x){le(e,e.return,x)}}break;case 3:if(nt(t,e),ft(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{$r(t.containerInfo)}catch(x){le(e,e.return,x)}break;case 4:nt(t,e),ft(e);break;case 13:nt(t,e),ft(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(aa=se())),r&4&&Pu(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(Ne=(c=Ne)||h,nt(t,e),Ne=c):nt(t,e),ft(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!h&&e.mode&1)for(O=e,h=e.child;h!==null;){for(p=O=h;O!==null;){switch(m=O,y=m.child,m.tag){case 0:case 11:case 14:case 15:zr(4,m,m.return);break;case 1:$n(m,m.return);var _=m.stateNode;if(typeof _.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,_.props=t.memoizedProps,_.state=t.memoizedState,_.componentWillUnmount()}catch(x){le(r,n,x)}}break;case 5:$n(m,m.return);break;case 22:if(m.memoizedState!==null){Tu(p);continue}}y!==null?(y.return=m,O=y):Tu(p)}h=h.sibling}e:for(h=null,p=e;;){if(p.tag===5){if(h===null){h=p;try{i=p.stateNode,c?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(a=p.stateNode,u=p.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=Rc("display",o))}catch(x){le(e,e.return,x)}}}else if(p.tag===6){if(h===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(x){le(e,e.return,x)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;h===p&&(h=null),p=p.return}h===p&&(h=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:nt(t,e),ft(e),r&4&&Pu(e);break;case 21:break;default:nt(t,e),ft(e)}}function ft(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(od(n)){var r=n;break e}n=n.return}throw Error(M(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Lr(i,""),r.flags&=-33);var l=zu(e);cs(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=zu(e);us(e,a,o);break;default:throw Error(M(161))}}catch(u){le(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hm(e,t,n){O=e,ud(e)}function ud(e,t,n){for(var r=(e.mode&1)!==0;O!==null;){var i=O,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||ki;if(!o){var a=i.alternate,u=a!==null&&a.memoizedState!==null||Ne;a=ki;var c=Ne;if(ki=o,(Ne=u)&&!c)for(O=i;O!==null;)o=O,u=o.child,o.tag===22&&o.memoizedState!==null?Lu(i):u!==null?(u.return=o,O=u):Lu(i);for(;l!==null;)O=l,ud(l),l=l.sibling;O=i,ki=a,Ne=c}Mu(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,O=l):Mu(e)}}function Mu(e){for(;O!==null;){var t=O;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ne||Tl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ne)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:rt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&pu(t,l,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}pu(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var h=c.memoizedState;if(h!==null){var p=h.dehydrated;p!==null&&$r(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(M(163))}Ne||t.flags&512&&as(t)}catch(m){le(t,t.return,m)}}if(t===e){O=null;break}if(n=t.sibling,n!==null){n.return=t.return,O=n;break}O=t.return}}function Tu(e){for(;O!==null;){var t=O;if(t===e){O=null;break}var n=t.sibling;if(n!==null){n.return=t.return,O=n;break}O=t.return}}function Lu(e){for(;O!==null;){var t=O;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Tl(4,t)}catch(u){le(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){le(t,i,u)}}var l=t.return;try{as(t)}catch(u){le(t,l,u)}break;case 5:var o=t.return;try{as(t)}catch(u){le(t,o,u)}}}catch(u){le(t,t.return,u)}if(t===e){O=null;break}var a=t.sibling;if(a!==null){a.return=t.return,O=a;break}O=t.return}}var pm=Math.ceil,fl=Rt.ReactCurrentDispatcher,oa=Rt.ReactCurrentOwner,Je=Rt.ReactCurrentBatchConfig,Q=0,ve=null,fe=null,_e=0,We=0,Dn=nn(0),me=0,Xr=null,yn=0,Ll=0,sa=0,Pr=null,Ae=null,aa=0,Jn=1/0,_t=null,dl=!1,fs=null,Gt=null,ji=!1,Wt=null,hl=0,Mr=0,ds=null,Fi=-1,Bi=0;function Te(){return Q&6?se():Fi!==-1?Fi:Fi=se()}function Zt(e){return e.mode&1?Q&2&&_e!==0?_e&-_e:qp.transition!==null?(Bi===0&&(Bi=Yc()),Bi):(e=X,e!==0||(e=window.event,e=e===void 0?16:bc(e.type)),e):1}function at(e,t,n,r){if(50<Mr)throw Mr=0,ds=null,Error(M(185));ei(e,n,r),(!(Q&2)||e!==ve)&&(e===ve&&(!(Q&2)&&(Ll|=n),me===4&&Bt(e,_e)),Be(e,r),n===1&&Q===0&&!(t.mode&1)&&(Jn=se()+500,zl&&rn()))}function Be(e,t){var n=e.callbackNode;qh(e,t);var r=Zi(e,e===ve?_e:0);if(r===0)n!==null&&Ua(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ua(n),t===1)e.tag===0?Zp(Ru.bind(null,e)):xf(Ru.bind(null,e)),Yp(function(){!(Q&6)&&rn()}),n=null;else{switch(Xc(r)){case 1:n=Is;break;case 4:n=Hc;break;case 16:n=Gi;break;case 536870912:n=Qc;break;default:n=Gi}n=vd(n,cd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function cd(e,t){if(Fi=-1,Bi=0,Q&6)throw Error(M(327));var n=e.callbackNode;if(Vn()&&e.callbackNode!==n)return null;var r=Zi(e,e===ve?_e:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=pl(e,r);else{t=r;var i=Q;Q|=2;var l=dd();(ve!==e||_e!==t)&&(_t=null,Jn=se()+500,fn(e,t));do try{vm();break}catch(a){fd(e,a)}while(!0);Xs(),fl.current=l,Q=i,fe!==null?t=0:(ve=null,_e=0,t=me)}if(t!==0){if(t===2&&(i=Fo(e),i!==0&&(r=i,t=hs(e,i))),t===1)throw n=Xr,fn(e,0),Bt(e,r),Be(e,se()),n;if(t===6)Bt(e,r);else{if(i=e.current.alternate,!(r&30)&&!mm(i)&&(t=pl(e,r),t===2&&(l=Fo(e),l!==0&&(r=l,t=hs(e,l))),t===1))throw n=Xr,fn(e,0),Bt(e,r),Be(e,se()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(M(345));case 2:on(e,Ae,_t);break;case 3:if(Bt(e,r),(r&130023424)===r&&(t=aa+500-se(),10<t)){if(Zi(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Te(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Xo(on.bind(null,e,Ae,_t),t);break}on(e,Ae,_t);break;case 4:if(Bt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-st(r);l=1<<o,o=t[o],o>i&&(i=o),r&=~l}if(r=i,r=se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*pm(r/1960))-r,10<r){e.timeoutHandle=Xo(on.bind(null,e,Ae,_t),r);break}on(e,Ae,_t);break;case 5:on(e,Ae,_t);break;default:throw Error(M(329))}}}return Be(e,se()),e.callbackNode===n?cd.bind(null,e):null}function hs(e,t){var n=Pr;return e.current.memoizedState.isDehydrated&&(fn(e,t).flags|=256),e=pl(e,t),e!==2&&(t=Ae,Ae=n,t!==null&&ps(t)),e}function ps(e){Ae===null?Ae=e:Ae.push.apply(Ae,e)}function mm(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 i=n[r],l=i.getSnapshot;i=i.value;try{if(!ut(l(),i))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 Bt(e,t){for(t&=~sa,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function Ru(e){if(Q&6)throw Error(M(327));Vn();var t=Zi(e,0);if(!(t&1))return Be(e,se()),null;var n=pl(e,t);if(e.tag!==0&&n===2){var r=Fo(e);r!==0&&(t=r,n=hs(e,r))}if(n===1)throw n=Xr,fn(e,0),Bt(e,t),Be(e,se()),n;if(n===6)throw Error(M(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,on(e,Ae,_t),Be(e,se()),null}function ua(e,t){var n=Q;Q|=1;try{return e(t)}finally{Q=n,Q===0&&(Jn=se()+500,zl&&rn())}}function xn(e){Wt!==null&&Wt.tag===0&&!(Q&6)&&Vn();var t=Q;Q|=1;var n=Je.transition,r=X;try{if(Je.transition=null,X=1,e)return e()}finally{X=r,Je.transition=n,Q=t,!(Q&6)&&rn()}}function ca(){We=Dn.current,J(Dn)}function fn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Qp(n)),fe!==null)for(n=fe.return;n!==null;){var r=n;switch(Hs(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&tl();break;case 3:Zn(),J(Oe),J(Ee),bs();break;case 5:Js(r);break;case 4:Zn();break;case 13:J(te);break;case 19:J(te);break;case 10:Ks(r.type._context);break;case 22:case 23:ca()}n=n.return}if(ve=e,fe=e=qt(e.current,null),_e=We=t,me=0,Xr=null,sa=Ll=yn=0,Ae=Pr=null,an!==null){for(t=0;t<an.length;t++)if(n=an[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,l=n.pending;if(l!==null){var o=l.next;l.next=i,r.next=o}n.pending=r}an=null}return e}function fd(e,t){do{var n=fe;try{if(Xs(),$i.current=cl,ul){for(var r=ne.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ul=!1}if(vn=0,ge=pe=ne=null,Cr=!1,Hr=0,oa.current=null,n===null||n.return===null){me=1,Xr=t,fe=null;break}e:{var l=e,o=n.return,a=n,u=t;if(t=_e,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,h=a,p=h.tag;if(!(h.mode&1)&&(p===0||p===11||p===15)){var m=h.alternate;m?(h.updateQueue=m.updateQueue,h.memoizedState=m.memoizedState,h.lanes=m.lanes):(h.updateQueue=null,h.memoizedState=null)}var y=wu(o);if(y!==null){y.flags&=-257,_u(y,o,a,l,t),y.mode&1&&xu(l,c,t),t=y,u=c;var _=t.updateQueue;if(_===null){var x=new Set;x.add(u),t.updateQueue=x}else _.add(u);break e}else{if(!(t&1)){xu(l,c,t),fa();break e}u=Error(M(426))}}else if(b&&a.mode&1){var w=wu(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),_u(w,o,a,l,t),Qs(qn(u,a));break e}}l=u=qn(u,a),me!==4&&(me=2),Pr===null?Pr=[l]:Pr.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var f=Kf(l,u,t);hu(l,f);break e;case 1:a=u;var d=l.type,v=l.stateNode;if(!(l.flags&128)&&(typeof d.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Gt===null||!Gt.has(v)))){l.flags|=65536,t&=-t,l.lanes|=t;var g=Gf(l,a,t);hu(l,g);break e}}l=l.return}while(l!==null)}pd(n)}catch(k){t=k,fe===n&&n!==null&&(fe=n=n.return);continue}break}while(!0)}function dd(){var e=fl.current;return fl.current=cl,e===null?cl:e}function fa(){(me===0||me===3||me===2)&&(me=4),ve===null||!(yn&268435455)&&!(Ll&268435455)||Bt(ve,_e)}function pl(e,t){var n=Q;Q|=2;var r=dd();(ve!==e||_e!==t)&&(_t=null,fn(e,t));do try{gm();break}catch(i){fd(e,i)}while(!0);if(Xs(),Q=n,fl.current=r,fe!==null)throw Error(M(261));return ve=null,_e=0,me}function gm(){for(;fe!==null;)hd(fe)}function vm(){for(;fe!==null&&!Wh();)hd(fe)}function hd(e){var t=gd(e.alternate,e,We);e.memoizedProps=e.pendingProps,t===null?pd(e):fe=t,oa.current=null}function pd(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=cm(n,t),n!==null){n.flags&=32767,fe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{me=6,fe=null;return}}else if(n=um(n,t,We),n!==null){fe=n;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);me===0&&(me=5)}function on(e,t,n){var r=X,i=Je.transition;try{Je.transition=null,X=1,ym(e,t,n,r)}finally{Je.transition=i,X=r}return null}function ym(e,t,n,r){do Vn();while(Wt!==null);if(Q&6)throw Error(M(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(M(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(Jh(e,l),e===ve&&(fe=ve=null,_e=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ji||(ji=!0,vd(Gi,function(){return Vn(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=Je.transition,Je.transition=null;var o=X;X=1;var a=Q;Q|=4,oa.current=null,dm(e,n),ad(n,e),Op(Qo),qi=!!Ho,Qo=Ho=null,e.current=n,hm(n),Vh(),Q=a,X=o,Je.transition=l}else e.current=n;if(ji&&(ji=!1,Wt=e,hl=i),l=e.pendingLanes,l===0&&(Gt=null),Yh(n.stateNode),Be(e,se()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(dl)throw dl=!1,e=fs,fs=null,e;return hl&1&&e.tag!==0&&Vn(),l=e.pendingLanes,l&1?e===ds?Mr++:(Mr=0,ds=e):Mr=0,rn(),null}function Vn(){if(Wt!==null){var e=Xc(hl),t=Je.transition,n=X;try{if(Je.transition=null,X=16>e?16:e,Wt===null)var r=!1;else{if(e=Wt,Wt=null,hl=0,Q&6)throw Error(M(331));var i=Q;for(Q|=4,O=e.current;O!==null;){var l=O,o=l.child;if(O.flags&16){var a=l.deletions;if(a!==null){for(var u=0;u<a.length;u++){var c=a[u];for(O=c;O!==null;){var h=O;switch(h.tag){case 0:case 11:case 15:zr(8,h,l)}var p=h.child;if(p!==null)p.return=h,O=p;else for(;O!==null;){h=O;var m=h.sibling,y=h.return;if(ld(h),h===c){O=null;break}if(m!==null){m.return=y,O=m;break}O=y}}}var _=l.alternate;if(_!==null){var x=_.child;if(x!==null){_.child=null;do{var w=x.sibling;x.sibling=null,x=w}while(x!==null)}}O=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,O=o;else e:for(;O!==null;){if(l=O,l.flags&2048)switch(l.tag){case 0:case 11:case 15:zr(9,l,l.return)}var f=l.sibling;if(f!==null){f.return=l.return,O=f;break e}O=l.return}}var d=e.current;for(O=d;O!==null;){o=O;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,O=v;else e:for(o=d;O!==null;){if(a=O,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Tl(9,a)}}catch(k){le(a,a.return,k)}if(a===o){O=null;break e}var g=a.sibling;if(g!==null){g.return=a.return,O=g;break e}O=a.return}}if(Q=i,rn(),mt&&typeof mt.onPostCommitFiberRoot=="function")try{mt.onPostCommitFiberRoot(jl,e)}catch{}r=!0}return r}finally{X=n,Je.transition=t}}return!1}function Iu(e,t,n){t=qn(n,t),t=Kf(e,t,1),e=Kt(e,t,1),t=Te(),e!==null&&(ei(e,1,t),Be(e,t))}function le(e,t,n){if(e.tag===3)Iu(e,e,n);else for(;t!==null;){if(t.tag===3){Iu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Gt===null||!Gt.has(r))){e=qn(n,e),e=Gf(t,e,1),t=Kt(t,e,1),e=Te(),t!==null&&(ei(t,1,e),Be(t,e));break}}t=t.return}}function xm(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Te(),e.pingedLanes|=e.suspendedLanes&n,ve===e&&(_e&n)===n&&(me===4||me===3&&(_e&130023424)===_e&&500>se()-aa?fn(e,0):sa|=n),Be(e,t)}function md(e,t){t===0&&(e.mode&1?(t=hi,hi<<=1,!(hi&130023424)&&(hi=4194304)):t=1);var n=Te();e=Mt(e,t),e!==null&&(ei(e,t,n),Be(e,n))}function wm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),md(e,n)}function _m(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),md(e,n)}var gd;gd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Oe.current)$e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $e=!1,am(e,t,n);$e=!!(e.flags&131072)}else $e=!1,b&&t.flags&1048576&&wf(t,il,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Oi(e,t),e=t.pendingProps;var i=Xn(t,Ee.current);Wn(t,n),i=ta(null,t,r,e,i,n);var l=na();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fe(r)?(l=!0,nl(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Zs(t),i.updater=Ml,t.stateNode=i,i._reactInternals=t,es(t,r,e,n),t=rs(null,t,r,!0,l,n)):(t.tag=0,b&&l&&Vs(t),Ce(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Oi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=jm(r),e=rt(r,e),i){case 0:t=ns(null,t,r,e,n);break e;case 1:t=Su(null,t,r,e,n);break e;case 11:t=ku(null,t,r,e,n);break e;case 14:t=ju(null,t,r,rt(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),ns(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),Su(e,t,r,i,n);case 3:e:{if(bf(t),e===null)throw Error(M(387));r=t.pendingProps,l=t.memoizedState,i=l.element,Ef(e,t),sl(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=qn(Error(M(423)),t),t=Nu(e,t,r,n,i);break e}else if(r!==i){i=qn(Error(M(424)),t),t=Nu(e,t,r,n,i);break e}else for(Ve=Xt(t.stateNode.containerInfo.firstChild),He=t,b=!0,lt=null,n=Sf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Kn(),r===i){t=Tt(e,t,n);break e}Ce(e,t,r,n)}t=t.child}return t;case 5:return Cf(t),e===null&&qo(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,Yo(r,i)?o=null:l!==null&&Yo(r,l)&&(t.flags|=32),Jf(e,t),Ce(e,t,o,n),t.child;case 6:return e===null&&qo(t),null;case 13:return ed(e,t,n);case 4:return qs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Gn(t,null,r,n):Ce(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),ku(e,t,r,i,n);case 7:return Ce(e,t,t.pendingProps,n),t.child;case 8:return Ce(e,t,t.pendingProps.children,n),t.child;case 12:return Ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value,Z(ll,r._currentValue),r._currentValue=o,l!==null)if(ut(l.value,o)){if(l.children===i.children&&!Oe.current){t=Tt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){o=l.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(l.tag===1){u=Ct(-1,n&-n),u.tag=2;var c=l.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?u.next=u:(u.next=h.next,h.next=u),c.pending=u}}l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),Jo(l.return,n,t),a.lanes|=n;break}u=u.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(M(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Jo(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}Ce(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Wn(t,n),i=be(i),r=r(i),t.flags|=1,Ce(e,t,r,n),t.child;case 14:return r=t.type,i=rt(r,t.pendingProps),i=rt(r.type,i),ju(e,t,r,i,n);case 15:return Zf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),Oi(e,t),t.tag=1,Fe(r)?(e=!0,nl(t)):e=!1,Wn(t,n),Xf(t,r,i),es(t,r,i,n),rs(null,t,r,!0,e,n);case 19:return td(e,t,n);case 22:return qf(e,t,n)}throw Error(M(156,t.tag))};function vd(e,t){return Vc(e,t)}function km(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 qe(e,t,n,r){return new km(e,t,n,r)}function da(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jm(e){if(typeof e=="function")return da(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ts)return 11;if(e===Ls)return 14}return 2}function qt(e,t){var n=e.alternate;return n===null?(n=qe(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 Ui(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")da(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Cn:return dn(n.children,i,l,t);case Ms:o=8,i|=8;break;case So:return e=qe(12,n,t,i|2),e.elementType=So,e.lanes=l,e;case No:return e=qe(13,n,t,i),e.elementType=No,e.lanes=l,e;case Eo:return e=qe(19,n,t,i),e.elementType=Eo,e.lanes=l,e;case Ec:return Rl(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Sc:o=10;break e;case Nc:o=9;break e;case Ts:o=11;break e;case Ls:o=14;break e;case $t:o=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=qe(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function dn(e,t,n,r){return e=qe(7,e,r,t),e.lanes=n,e}function Rl(e,t,n,r){return e=qe(22,e,r,t),e.elementType=Ec,e.lanes=n,e.stateNode={isHidden:!1},e}function ho(e,t,n){return e=qe(6,e,null,t),e.lanes=n,e}function po(e,t,n){return t=qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Sm(e,t,n,r,i){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=Xl(0),this.expirationTimes=Xl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ha(e,t,n,r,i,l,o,a,u){return e=new Sm(e,t,n,a,u),t===1?(t=1,l===!0&&(t|=8)):t=0,l=qe(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zs(l),e}function Nm(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:En,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function yd(e){if(!e)return bt;e=e._reactInternals;e:{if(kn(e)!==e||e.tag!==1)throw Error(M(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Fe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(M(171))}if(e.tag===1){var n=e.type;if(Fe(n))return yf(e,n,t)}return t}function xd(e,t,n,r,i,l,o,a,u){return e=ha(n,r,!0,e,i,l,o,a,u),e.context=yd(null),n=e.current,r=Te(),i=Zt(n),l=Ct(r,i),l.callback=t??null,Kt(n,l,i),e.current.lanes=i,ei(e,i,r),Be(e,r),e}function Il(e,t,n,r){var i=t.current,l=Te(),o=Zt(i);return n=yd(n),t.context===null?t.context=n:t.pendingContext=n,t=Ct(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Kt(i,t,o),e!==null&&(at(e,i,o,l),Ai(e,i,o)),o}function ml(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 Au(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function pa(e,t){Au(e,t),(e=e.alternate)&&Au(e,t)}function Em(){return null}var wd=typeof reportError=="function"?reportError:function(e){console.error(e)};function ma(e){this._internalRoot=e}Al.prototype.render=ma.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(M(409));Il(e,t,null,null)};Al.prototype.unmount=ma.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;xn(function(){Il(null,e,null,null)}),t[Pt]=null}};function Al(e){this._internalRoot=e}Al.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ft.length&&t!==0&&t<Ft[n].priority;n++);Ft.splice(n,0,e),n===0&&Jc(e)}};function ga(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function $l(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function $u(){}function Cm(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var c=ml(o);l.call(c)}}var o=xd(t,r,e,0,null,!1,!1,"",$u);return e._reactRootContainer=o,e[Pt]=o.current,Fr(e.nodeType===8?e.parentNode:e),xn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=ml(u);a.call(c)}}var u=ha(e,0,!1,null,null,!1,!1,"",$u);return e._reactRootContainer=u,e[Pt]=u.current,Fr(e.nodeType===8?e.parentNode:e),xn(function(){Il(t,u,n,r)}),u}function Dl(e,t,n,r,i){var l=n._reactRootContainer;if(l){var o=l;if(typeof i=="function"){var a=i;i=function(){var u=ml(o);a.call(u)}}Il(t,o,e,i)}else o=Cm(n,t,e,i,r);return ml(o)}Kc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=yr(t.pendingLanes);n!==0&&(As(t,n|1),Be(t,se()),!(Q&6)&&(Jn=se()+500,rn()))}break;case 13:xn(function(){var r=Mt(e,1);if(r!==null){var i=Te();at(r,e,1,i)}}),pa(e,1)}};$s=function(e){if(e.tag===13){var t=Mt(e,134217728);if(t!==null){var n=Te();at(t,e,134217728,n)}pa(e,134217728)}};Gc=function(e){if(e.tag===13){var t=Zt(e),n=Mt(e,t);if(n!==null){var r=Te();at(n,e,t,r)}pa(e,t)}};Zc=function(){return X};qc=function(e,t){var n=X;try{return X=e,t()}finally{X=n}};$o=function(e,t,n){switch(t){case"input":if(Po(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 i=Cl(r);if(!i)throw Error(M(90));zc(r),Po(r,i)}}}break;case"textarea":Mc(e,n);break;case"select":t=n.value,t!=null&&On(e,!!n.multiple,t,!1)}};Dc=ua;Oc=xn;var zm={usingClientEntryPoint:!1,Events:[ni,Tn,Cl,Ac,$c,ua]},dr={findFiberByHostInstance:sn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Pm={bundleType:dr.bundleType,version:dr.version,rendererPackageName:dr.rendererPackageName,rendererConfig:dr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Rt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Uc(e),e===null?null:e.stateNode},findFiberByHostInstance:dr.findFiberByHostInstance||Em,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 Si=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Si.isDisabled&&Si.supportsFiber)try{jl=Si.inject(Pm),mt=Si}catch{}}Xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zm;Xe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ga(t))throw Error(M(200));return Nm(e,t,null,n)};Xe.createRoot=function(e,t){if(!ga(e))throw Error(M(299));var n=!1,r="",i=wd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=ha(e,1,!1,null,null,n,!1,r,i),e[Pt]=t.current,Fr(e.nodeType===8?e.parentNode:e),new ma(t)};Xe.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(M(188)):(e=Object.keys(e).join(","),Error(M(268,e)));return e=Uc(t),e=e===null?null:e.stateNode,e};Xe.flushSync=function(e){return xn(e)};Xe.hydrate=function(e,t,n){if(!$l(t))throw Error(M(200));return Dl(null,e,t,!0,n)};Xe.hydrateRoot=function(e,t,n){if(!ga(e))throw Error(M(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=wd;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=xd(t,null,e,1,n??null,i,!1,l,o),e[Pt]=t.current,Fr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Al(t)};Xe.render=function(e,t,n){if(!$l(t))throw Error(M(200));return Dl(null,e,t,!1,n)};Xe.unmountComponentAtNode=function(e){if(!$l(e))throw Error(M(40));return e._reactRootContainer?(xn(function(){Dl(null,null,e,!1,function(){e._reactRootContainer=null,e[Pt]=null})}),!0):!1};Xe.unstable_batchedUpdates=ua;Xe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!$l(n))throw Error(M(200));if(e==null||e._reactInternals===void 0)throw Error(M(38));return Dl(e,t,n,!1,r)};Xe.version="18.3.1-next-f1338f8080-20240426";function _d(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_d)}catch(e){console.error(e)}}_d(),wc.exports=Xe;var Mm=wc.exports,Du=Mm;ko.createRoot=Du.createRoot,ko.hydrateRoot=Du.hydrateRoot;const mo={},kd=(mo==null?void 0:mo.VITE_API_URL)??"http://localhost:48821";async function ht(e,t){const n=await fetch(`${kd}${e}`,t);if(!n.ok)throw new Error(`API error ${n.status}`);return n.json()}function en(e,t){const[n,r]=L.useState(t),[i,l]=L.useState(!!e),[o,a]=L.useState(null);return L.useEffect(()=>{if(!e){l(!1);return}const u=new AbortController;return l(!0),fetch(`${kd}${e}`,{signal:u.signal}).then(c=>c.ok?c.json():Promise.reject(new Error(`${c.status}`))).then(c=>{r(c),a(null)}).catch(c=>{c.name!=="AbortError"&&a(c.message)}).finally(()=>l(!1)),()=>u.abort()},[e]),{data:n,loading:i,error:o}}const ce={project:{name:"acme-platform",health:94,pages:188,sources:12,entities:412,lastIngest:"2 hours ago",syncStatus:"live"},activity:[{t:"2m",tool:"wiki_search",target:"payment retry stripe",kind:"query",delta:"4 pages cited"},{t:"14m",tool:"ingest_source",target:"docs/billing-spec-v3.md",kind:"ingest",delta:"+7 pages, +12 entities"},{t:"1h",tool:"lint_wiki",target:"full scan",kind:"lint",delta:"2 stale, 0 orphan"},{t:"2h",tool:"read_module",target:"src/billing/retry-queue.ts",kind:"read",delta:"cached"},{t:"3h",tool:"update_index",target:"—",kind:"index",delta:"188 entries"}],wikiTree:[{id:"arch",label:"Architecture",kind:"cat",children:[{id:"arch-overview",label:"System Overview",kind:"page"},{id:"arch-services",label:"Service Topology",kind:"page"},{id:"arch-data",label:"Data Boundaries",kind:"page"}]},{id:"modules",label:"Modules",kind:"cat",children:[{id:"mod-billing",label:"billing/",kind:"cat",children:[{id:"mod-retry",label:"PaymentRetryQueue",kind:"page",highlight:!0},{id:"mod-charge",label:"ChargeProcessor",kind:"page"},{id:"mod-ledger",label:"LedgerWriter",kind:"page",stale:!0},{id:"mod-dunning",label:"DunningScheduler",kind:"page"}]},{id:"mod-orders",label:"orders/",kind:"cat",children:[{id:"mod-cart",label:"Cart",kind:"page"},{id:"mod-checkout",label:"CheckoutFlow",kind:"page"},{id:"mod-fulfill",label:"Fulfillment",kind:"page"}]},{id:"mod-auth",label:"auth/",kind:"cat",children:[{id:"mod-session",label:"SessionStore",kind:"page"},{id:"mod-token",label:"TokenIssuer",kind:"page"}]}]},{id:"concepts",label:"Concepts",kind:"cat",children:[{id:"c-retry",label:"RETRYABLE_DECLINE_CODES",kind:"page"},{id:"c-idem",label:"Idempotency Keys",kind:"page"},{id:"c-soft",label:"Soft vs Hard Decline",kind:"page"}]},{id:"workflows",label:"Workflows",kind:"cat",children:[{id:"w-dunning",label:"Dunning Workflow",kind:"page"},{id:"w-checkout",label:"Checkout",kind:"page"}]}],lintIssues:[{kind:"stale",sev:"warn",page:"LedgerWriter",age:"47d",msg:"Source updated 47 days ago, wiki page not refreshed"},{kind:"stale",sev:"warn",page:"TokenIssuer",age:"38d",msg:"Source updated 38 days ago, wiki page not refreshed"},{kind:"orphan",sev:"info",page:"LegacyAuthFlow",age:"—",msg:"No inbound links from any wiki page"},{kind:"meta",sev:"info",page:"Cart",age:"—",msg:"Missing frontmatter: `category`, `last_verified`"}],syncEvents:[{t:"00:00",kind:"commit",msg:"feat(billing): add exponential backoff to retry queue",files:3},{t:"00:01",kind:"sync",msg:"post-commit hook → docuflow sync --ai",files:0},{t:"00:01",kind:"tool",msg:"read_module billing/retry-queue.ts",files:1},{t:"00:02",kind:"tool",msg:"ingest_source updated PaymentRetryQueue",files:1},{t:"00:02",kind:"tool",msg:"update_index → 188 entries",files:1},{t:"00:02",kind:"done",msg:"Wiki up to date · 1.8s",files:0}],domains:[{id:"code",label:"Code & Architecture",desc:"Codebases, services, modules, dependencies",icon:"code"},{id:"research",label:"Research & Analysis",desc:"Papers, notes, hypotheses, citations",icon:"flask"},{id:"business",label:"Business & Markets",desc:"Companies, deals, signals, briefings",icon:"briefcase"},{id:"personal",label:"Personal Knowledge",desc:"Anything else — meeting notes, journals",icon:"book"}]},jd={name:ce.project.name,path:"",health:ce.project.health,pages:ce.project.pages,sources:ce.project.sources,entities:ce.project.entities,specs:0,lastIngest:ce.project.lastIngest,syncStatus:ce.project.syncStatus},Sd="df-custom-paths";function Ou(){try{const e=localStorage.getItem(Sd);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(n=>typeof n=="string"):[]}catch{return[]}}function Fu(e){try{localStorage.setItem(Sd,JSON.stringify(e))}catch{}}const Nd=L.createContext({projectPath:"",setProjectPath:()=>{},projectInfo:jd,projects:[],apiOnline:!1,isLoading:!1,addProjectByPath:async()=>({ok:!1,error:"not ready"}),removeProject:()=>{},rescanProjects:async()=>{}});function Tm({children:e}){const[t,n]=L.useState(""),[r,i]=L.useState(jd),[l,o]=L.useState([]),[a,u]=L.useState(!1),[c,h]=L.useState(!1),p=L.useRef(new Set);L.useEffect(()=>{ht("/api/ping").then(()=>(u(!0),ht("/api/projects"))).then(async x=>{var k,S;x.forEach(N=>p.current.add(N.path));const w=Ou(),f=[];for(const N of w)if(!p.current.has(N))try{const z=await ht(`/api/projects?path=${encodeURIComponent(N)}`);z.length>0&&(p.current.add(N),f.push(...z))}catch{}const d=[...x,...f];o(d);const v=localStorage.getItem("df-selected-path")??"",g=((k=d.find(N=>N.path===v))==null?void 0:k.path)??((S=d[0])==null?void 0:S.path)??"";n(g)}).catch(()=>u(!1))},[]),L.useEffect(()=>{t&&localStorage.setItem("df-selected-path",t)},[t]),L.useEffect(()=>{!t||!a||ht(`/api/project?path=${encodeURIComponent(t)}`).then(i).catch(()=>{})},[t,a]);const m=async x=>{const w=x.trim();if(!w)return{ok:!1,error:"Path is empty"};if(l.some(f=>f.path===w))return n(w),{ok:!0};try{const f=await ht(`/api/projects?path=${encodeURIComponent(w)}`);return f.length===0?{ok:!1,error:"No .docuflow/ found at that path"}:(o(d=>{const v=new Set(d.map(N=>N.path)),g=f.filter(N=>!v.has(N.path)),k=[...d,...g],S=k.map(N=>N.path).filter(N=>!p.current.has(N));return Fu(S),k}),n(f[0].path),{ok:!0})}catch(f){return{ok:!1,error:f.message??"Request failed"}}};function y(x){o(w=>{const f=w.filter(v=>v.path!==x),d=f.filter(v=>!p.current.has(v.path)).map(v=>v.path);return Fu(d),f})}async function _(){if(a){h(!0);try{const x=await ht("/api/projects"),w=Ou(),f=[];for(const v of w)x.some(g=>g.path===v)||f.push({...x[0],path:v});const d=[...x,...f];o(d)}catch{}finally{h(!1)}}}return s.jsx(Nd.Provider,{value:{projectPath:t,setProjectPath:n,projectInfo:r,projects:l,apiOnline:a,isLoading:c,addProjectByPath:m,removeProject:y,rescanProjects:_},children:e})}const It=()=>L.useContext(Nd);function oe({name:e,size:t=16,className:n="",style:r={}}){const i={width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round",className:n,style:r};switch(e){case"search":return s.jsxs("svg",{...i,children:[s.jsx("circle",{cx:"11",cy:"11",r:"7"}),s.jsx("path",{d:"m20 20-3.5-3.5"})]});case"sparkle":return s.jsx("svg",{...i,children:s.jsx("path",{d:"M12 3v4M12 17v4M3 12h4M17 12h4M5.6 5.6l2.8 2.8M15.6 15.6l2.8 2.8M5.6 18.4l2.8-2.8M15.6 8.4l2.8-2.8"})});case"book":return s.jsxs("svg",{...i,children:[s.jsx("path",{d:"M4 4.5A1.5 1.5 0 0 1 5.5 3H19v15H5.5A1.5 1.5 0 0 0 4 19.5v-15Z"}),s.jsx("path",{d:"M4 19.5A1.5 1.5 0 0 0 5.5 21H19"})]});case"graph":return s.jsxs("svg",{...i,children:[s.jsx("circle",{cx:"6",cy:"6",r:"2.5"}),s.jsx("circle",{cx:"18",cy:"7",r:"2.5"}),s.jsx("circle",{cx:"12",cy:"14",r:"2.5"}),s.jsx("circle",{cx:"7",cy:"19",r:"2.5"}),s.jsx("circle",{cx:"18",cy:"18",r:"2.5"}),s.jsx("path",{d:"m8 7 2 6M16 8l-3 5M11 16l-3 2M14 15l3 2"})]});case"health":return s.jsx("svg",{...i,children:s.jsx("path",{d:"M3 12h4l2-5 4 10 2-5h6"})});case"sync":return s.jsxs("svg",{...i,children:[s.jsx("path",{d:"M3 12a9 9 0 0 1 15-6.7L21 8M21 12a9 9 0 0 1-15 6.7L3 16"}),s.jsx("path",{d:"M21 3v5h-5M3 21v-5h5"})]});case"plus":return s.jsx("svg",{...i,children:s.jsx("path",{d:"M12 5v14M5 12h14"})});case"settings":return s.jsxs("svg",{...i,children:[s.jsx("circle",{cx:"12",cy:"12",r:"3"}),s.jsx("path",{d:"M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1 1.7 1.7 0 0 0-.3-1.8l-.1-.1A2 2 0 1 1 7 4l.1.1a1.7 1.7 0 0 0 1.8.3h.1a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8v.1a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1Z"})]});case"arrow-right":return s.jsx("svg",{...i,children:s.jsx("path",{d:"M5 12h14M13 5l7 7-7 7"})});case"check":return s.jsx("svg",{...i,children:s.jsx("path",{d:"M5 12.5 10 17l9-10"})});case"check-circle":return s.jsxs("svg",{...i,children:[s.jsx("circle",{cx:"12",cy:"12",r:"9"}),s.jsx("path",{d:"m8 12 3 3 5-6"})]});case"alert":return s.jsxs("svg",{...i,children:[s.jsx("circle",{cx:"12",cy:"12",r:"9"}),s.jsx("path",{d:"M12 8v5M12 16.5h.01"})]});case"dot":return s.jsx("svg",{...i,children:s.jsx("circle",{cx:"12",cy:"12",r:"3",fill:"currentColor"})});case"chevron-right":return s.jsx("svg",{...i,children:s.jsx("path",{d:"m9 6 6 6-6 6"})});case"chevron-down":return s.jsx("svg",{...i,children:s.jsx("path",{d:"m6 9 6 6 6-6"})});case"file":return s.jsxs("svg",{...i,children:[s.jsx("path",{d:"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z"}),s.jsx("path",{d:"M14 3v5h5"})]});case"folder":return s.jsx("svg",{...i,children:s.jsx("path",{d:"M3 6.5A1.5 1.5 0 0 1 4.5 5h4.2c.4 0 .8.2 1.1.5L11.5 7h8a1.5 1.5 0 0 1 1.5 1.5v9.5a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 18V6.5Z"})});case"code":return s.jsx("svg",{...i,children:s.jsx("path",{d:"m9 17-5-5 5-5M15 7l5 5-5 5"})});case"flask":return s.jsxs("svg",{...i,children:[s.jsx("path",{d:"M9 3h6M10 3v6L4 19a2 2 0 0 0 1.7 3h12.6A2 2 0 0 0 20 19l-6-10V3"}),s.jsx("path",{d:"M7 14h10"})]});case"briefcase":return s.jsxs("svg",{...i,children:[s.jsx("rect",{x:"3",y:"7",width:"18",height:"13",rx:"2"}),s.jsx("path",{d:"M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2M3 13h18"})]});case"cite":return s.jsxs("svg",{...i,children:[s.jsx("path",{d:"M7 7h4v6H7zM13 7h4v6h-4z"}),s.jsx("path",{d:"M7 13c0 2-1 3-3 3M13 13c0 2-1 3-3 3"})]});case"tool":return s.jsx("svg",{...i,children:s.jsx("path",{d:"M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-3 3-2.4-2.4 3-3Z"})});case"commit":return s.jsxs("svg",{...i,children:[s.jsx("circle",{cx:"12",cy:"12",r:"3.5"}),s.jsx("path",{d:"M3 12h5.5M15.5 12H21"})]});case"play":return s.jsx("svg",{...i,children:s.jsx("path",{d:"M6 4v16l14-8L6 4Z"})});case"pause":return s.jsx("svg",{...i,children:s.jsx("path",{d:"M7 4v16M17 4v16"})});case"logo":return s.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor",style:r,className:n,children:[s.jsx("path",{d:"M4 5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V5Z",opacity:".25"}),s.jsx("path",{d:"M8 11h8M8 14h8M8 17h5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",fill:"none"}),s.jsx("path",{d:"M13 3v5h5",stroke:"currentColor",strokeWidth:"1.6",strokeLinejoin:"round",fill:"none"})]});case"help":return s.jsxs("svg",{...i,children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3M12 17h.01"})]});case"rescan":return s.jsxs("svg",{...i,children:[s.jsx("path",{d:"M3 12a9 9 0 0 1 15-6.7L21 8M21 12a9 9 0 0 1-15 6.7L3 16"}),s.jsx("path",{d:"M21 3v5h-5"}),s.jsx("path",{d:"M3 21v-5h5"})]});default:return null}}const go={query:s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"11",cy:"11",r:"7"}),s.jsx("path",{d:"m20 20-3.5-3.5"})]}),wiki:s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M4 4.5A1.5 1.5 0 0 1 5.5 3H19v15H5.5A1.5 1.5 0 0 0 4 19.5v-15Z"}),s.jsx("path",{d:"M4 19.5A1.5 1.5 0 0 0 5.5 21H19"})]}),graph:s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"6",cy:"6",r:"2.5"}),s.jsx("circle",{cx:"18",cy:"7",r:"2.5"}),s.jsx("circle",{cx:"12",cy:"14",r:"2.5"}),s.jsx("circle",{cx:"7",cy:"19",r:"2.5"}),s.jsx("circle",{cx:"18",cy:"18",r:"2.5"}),s.jsx("path",{d:"m8 7 2 6M16 8l-3 5M11 16l-3 2M14 15l3 2"})]}),health:s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("path",{d:"M3 12h4l2-5 4 10 2-5h6"})}),sync:s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M3 12a9 9 0 0 1 15-6.7L21 8M21 12a9 9 0 0 1-15 6.7L3 16"}),s.jsx("path",{d:"M21 3v5h-5M3 21v-5h5"})]}),settings:s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"3"}),s.jsx("path",{d:"M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1 1.7 1.7 0 0 0-.3-1.8l-.1-.1A2 2 0 1 1 7 4l.1.1a1.7 1.7 0 0 0 1.8.3h.1a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8v.1a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1Z"})]}),folder:s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("path",{d:"M3 6.5A1.5 1.5 0 0 1 4.5 5h4.2c.4 0 .8.2 1.1.5L11.5 7h8a1.5 1.5 0 0 1 1.5 1.5v9.5a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 18V6.5Z"})}),rescan:s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M3 12a9 9 0 0 1 15-6.7L21 8M21 12a9 9 0 0 1-15 6.7L3 16"}),s.jsx("path",{d:"M21 3v5h-5"}),s.jsx("path",{d:"M3 21v-5h5"})]}),help:s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3M12 17h.01"})]}),onboarding:s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3M12 17h.01"})]}),onboard:s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3M12 17h.01"})]})},Lm=[{label:"EXPLORE",items:["query","wiki","graph"]},{label:"MANAGE",items:["health","sync","onboard","settings"]}];function Rm({view:e,onChange:t}){const[n,r]=L.useState(!1),[i,l]=L.useState(""),[o,a]=L.useState(""),{projectInfo:u,projects:c,setProjectPath:h,removeProject:p,rescanProjects:m}=It(),y=L.useRef(null),_=u.syncStatus||"live",x=u.lastIngest||"2h ago",w=c.filter(f=>f.name.toLowerCase().includes(i.toLowerCase())||f.path.toLowerCase().includes(i.toLowerCase()));return L.useEffect(()=>{u.path&&u.path!==o&&a(u.path)},[u.path,o]),L.useEffect(()=>{n&&y.current&&y.current.focus()},[n]),L.useEffect(()=>{function f(d){const v=d.target;n&&!v.closest(".df-rail__project-picker")&&(r(!1),l(""))}return document.addEventListener("mousedown",f),()=>document.removeEventListener("mousedown",f)},[n]),s.jsxs("div",{className:"df-rail",children:[s.jsx("div",{className:"df-rail__groups",style:{overflowY:"auto",minHeight:0},children:Lm.map((f,d)=>s.jsxs("div",{className:"df-rail__group",children:[s.jsx("div",{className:"df-rail__group-label",children:f.label}),f.items.map(v=>{const g=e===v;return s.jsx("button",{className:`df-action ${g?"df-action--active":""}`,onClick:()=>t(v),title:v.charAt(0).toUpperCase()+v.slice(1),children:go[v]||"●"},v)})]},d))}),s.jsx("div",{className:"df-rail__spacer"}),s.jsx("div",{className:"df-rail__divider"}),s.jsx("div",{className:"df-rail__footer",children:s.jsxs("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[s.jsxs("div",{style:{position:"relative"},children:[s.jsx("button",{className:"df-action df-action--compact",onClick:()=>r(f=>!f),title:"Projects",style:{display:"flex",alignItems:"center",gap:4},children:go.folder}),n&&s.jsxs("div",{className:"df-rail__project-picker",style:{position:"absolute",bottom:"calc(100% + 4px)",left:0,background:"var(--df-surface)",border:"1px solid var(--df-border-2)",borderRadius:"var(--df-r-md)",minWidth:"240px",padding:"8px 0",zIndex:100,boxShadow:"0 4px 16px rgba(0,0,0,0.3)"},children:[s.jsx("div",{style:{padding:"0 12px 8px"},children:s.jsx("input",{ref:y,type:"text",placeholder:"Search projects...",value:i,onChange:f=>l(f.target.value),style:{width:"100%",padding:"6px 10px",fontSize:"12px",background:"var(--df-bg)",border:"1px solid var(--df-border-2)",borderRadius:"var(--df-r-sm)",color:"var(--df-text)",fontFamily:"inherit",outline:"none",boxSizing:"border-box"}})}),s.jsxs("div",{style:{maxHeight:"240px",overflow:"auto"},children:[w.map(f=>s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 12px",cursor:"pointer",background:f.path===o?"var(--df-bg-hover)":"transparent",borderLeft:f.path===o?"2px solid var(--df-accent)":"2px solid transparent",transition:"background 0.15s"},onMouseEnter:d=>{f.path!==o&&(d.currentTarget.style.background="var(--df-bg-hover)")},onMouseLeave:d=>{f.path!==o&&(d.currentTarget.style.background="transparent")},onClick:()=>{h(f.path),a(f.path),r(!1),l("")},children:[s.jsxs("div",{children:[s.jsx("div",{style:{color:"var(--df-text)",fontSize:"12px",fontWeight:500},children:f.name}),s.jsxs("div",{style:{color:"var(--df-text-3)",fontSize:"10px",marginTop:"2px"},children:[f.pages," pages · ",f.sources," sources"]})]}),s.jsx("button",{style:{background:"none",border:"none",color:"var(--df-text-3)",cursor:"pointer",fontSize:"14px",padding:"2px 4px",borderRadius:"var(--df-r-sm)",opacity:.5,lineHeight:1},title:"Remove this project",onClick:d=>{d.stopPropagation(),p(f.path),o===f.path&&w.length>0&&a(w[0].path)},onMouseEnter:d=>d.currentTarget.style.opacity="1",onMouseLeave:d=>d.currentTarget.style.opacity="0.5",children:"✕"})]},f.path)),w.length===0&&s.jsx("div",{style:{padding:"16px",textAlign:"center",color:"var(--df-text-3)",fontSize:"12px"},children:"No projects found"})]})]})]}),s.jsx("button",{className:"df-action df-action--compact",onClick:()=>m&&m(),title:"Rescan projects",style:{opacity:.6},children:go.rescan}),s.jsx("div",{className:`df-status-dot df-status-dot--${_==="live"?"live":"paused"}`,title:`Status: ${_}`}),s.jsx("div",{style:{fontSize:"10px",color:"var(--df-text-3)",textAlign:"center",maxWidth:"60px",whiteSpace:"nowrap"},children:x})]})})]})}function de({tone:e="default",children:t}){return s.jsx("span",{className:`df-pill${e!=="default"?` df-pill--${e}`:""}`,children:t})}function Me({variant:e="default",icon:t,kbd:n,children:r,onClick:i,active:l,type:o="button",disabled:a,...u}){const c=["df-btn",e!=="default"&&`df-btn--${e}`,l&&"df-btn--active"].filter(Boolean).join(" ");return s.jsxs("button",{type:o,className:c,onClick:i,disabled:a,...u,children:[t&&s.jsx(oe,{name:t,size:13}),r,n&&s.jsx("span",{className:"df-kbd",children:n})]})}function Im(){const{projectInfo:e,projects:t,setProjectPath:n,apiOnline:r,addProjectByPath:i,rescanProjects:l,removeProject:o}=It(),[a,u]=L.useState(!1),[c,h]=L.useState(""),[p,m]=L.useState("idle"),[y,_]=L.useState(""),x=L.useRef(null),[w,f]=L.useState(null),d=e.name||ce.project.name,v=e.syncStatus||ce.project.syncStatus,g=e.lastIngest||ce.project.lastIngest;function k(){u(I=>!I),f(null),h(""),m("idle"),_("")}async function S(){const I=c.trim();if(!I)return;m("loading"),_("");const A=await i(I);A.ok?(m("ok"),h(""),setTimeout(()=>{u(!1),f(null),m("idle")},800)):(m("err"),_(A.error??"Unknown error"))}function N(I){o(I),f(null)}function z(I,A){I.preventDefault(),f({x:I.clientX,y:I.clientY,path:A})}return L.useEffect(()=>{function I(){f(null)}return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[]),s.jsxs("div",{className:"df-topbar",children:[s.jsxs("div",{className:"df-topbar__crumb",style:{position:"relative"},children:[s.jsx(oe,{name:"folder",size:13,style:{color:"var(--df-text-4)"}}),s.jsxs("button",{style:{background:"none",border:"none",color:"inherit",cursor:"pointer",fontFamily:"inherit",fontSize:"inherit",padding:0,display:"flex",alignItems:"center",gap:4},onClick:k,title:"Switch project or add by path",children:[s.jsx("span",{style:{color:"var(--df-text-3)"},children:d}),s.jsx(oe,{name:"chevron-down",size:11,style:{color:"var(--df-text-4)"}})]}),a&&s.jsxs("div",{style:{position:"absolute",top:"100%",left:0,marginTop:4,background:"var(--df-surface)",border:"1px solid var(--df-border-2)",borderRadius:"var(--df-r-lg)",padding:"4px 0",minWidth:260,zIndex:100,boxShadow:"0 4px 16px rgba(0,0,0,.4)"},children:[t.map(I=>s.jsxs("button",{style:{display:"block",width:"100%",textAlign:"left",padding:"6px 12px",background:"none",border:"none",color:I.path===e.path?"var(--df-accent-text)":"var(--df-text)",fontFamily:"inherit",fontSize:12,cursor:"pointer"},onClick:()=>{n(I.path),u(!1),f(null)},onContextMenu:A=>z(A,I.path),children:[I.name,s.jsxs("span",{style:{marginLeft:8,color:"var(--df-text-4)",fontSize:10},children:[I.pages,"p"]})]},I.path)),s.jsx("div",{style:{borderTop:"1px solid var(--df-border-2)",margin:"4px 0"}}),s.jsxs("div",{style:{padding:"6px 12px"},children:[s.jsx("div",{style:{fontSize:10,color:"var(--df-text-4)",marginBottom:4},children:"Add project by path"}),s.jsxs("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[s.jsx("input",{ref:x,value:c,onChange:I=>{h(I.target.value),m("idle")},onKeyDown:I=>{I.key==="Enter"&&S()},placeholder:"/absolute/path/to/project",disabled:p==="loading",style:{flex:1,fontSize:11,padding:"3px 6px",background:"var(--df-input-bg, var(--df-bg))",border:"1px solid var(--df-border-2)",borderRadius:"var(--df-r-sm)",color:"var(--df-text)",fontFamily:"inherit",outline:"none",opacity:p==="loading"?.6:1}}),s.jsx("button",{onClick:S,disabled:p==="loading"||!c.trim(),style:{padding:"3px 8px",fontSize:11,cursor:"pointer",background:"var(--df-accent)",color:"var(--df-accent-text)",border:"none",borderRadius:"var(--df-r-sm)",fontFamily:"inherit",opacity:p==="loading"||!c.trim()?.5:1},children:p==="loading"?"…":"Add"})]}),p==="ok"&&s.jsx("div",{style:{fontSize:10,color:"var(--df-green, #4caf50)",marginTop:4},children:"✓ Project added"}),p==="err"&&s.jsxs("div",{style:{fontSize:10,color:"var(--df-red, #f44336)",marginTop:4},children:["✗ ",y]})]})]}),w&&s.jsx("div",{style:{position:"fixed",top:w.y+4,left:w.x+4,background:"var(--df-surface)",border:"1px solid var(--df-border-2)",borderRadius:"var(--df-r-sm)",padding:"2px 0",minWidth:140,zIndex:200,boxShadow:"0 4px 12px rgba(0,0,0,.5)"},children:s.jsx("button",{style:{display:"block",width:"100%",textAlign:"left",padding:"6px 12px",background:"none",border:"none",color:"var(--df-red, #f44336)",fontFamily:"inherit",fontSize:12},onClick:()=>N(w.path),children:"• Remove"})})]}),s.jsx("div",{className:"df-topbar__divider"}),s.jsxs("div",{className:"df-topbar__meta",children:[s.jsx("span",{className:`df-status-dot df-status-dot--${r?"live":"paused"}`}),s.jsx("span",{children:r?`${v} · last ingest ${g}`:"API offline — showing demo data"})]}),s.jsx("div",{style:{flex:1}}),s.jsx(Me,{icon:"search",kbd:"⌘K",children:"Search"}),s.jsx(Me,{icon:"tool",children:"Tools"}),s.jsx(Me,{icon:"sync",onClick:()=>l==null?void 0:l(),children:"Rescan"}),s.jsx("div",{className:"df-topbar__avatar"})]})}function Am(e){const t=e.split(`
41
+ `),n=[];let r=0,i=0;const l=o=>o.replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>").replace(/`([^`]+)`/g,'<code class="df-code">$1</code>');for(;i<t.length;){const o=t[i];if(o.startsWith("## ")){n.push(s.jsx("h2",{className:"df-answer__h2",children:o.slice(3)},r++)),i++;continue}if(o.startsWith("### ")){n.push(s.jsx("h3",{className:"df-answer__h3",children:o.slice(4)},r++)),i++;continue}if(o.startsWith("- ")||o.startsWith("* ")){const a=[];for(;i<t.length&&(t[i].startsWith("- ")||t[i].startsWith("* "));)a.push(t[i].slice(2)),i++;n.push(s.jsx("ul",{className:"df-answer__ul",children:a.map((u,c)=>s.jsx("li",{dangerouslySetInnerHTML:{__html:l(u)}},c))},r++));continue}if(/^\d+\.\s/.test(o)){const a=[];for(;i<t.length&&/^\d+\.\s/.test(t[i]);)a.push(t[i].replace(/^\d+\.\s/,"")),i++;n.push(s.jsx("ol",{className:"df-answer__list",children:a.map((u,c)=>s.jsxs("li",{className:"df-answer__li",children:[s.jsx("span",{className:"df-answer__num",children:c+1}),s.jsx("span",{dangerouslySetInnerHTML:{__html:l(u)}})]},c))},r++));continue}if(o.startsWith("*")&&o.endsWith("*")&&!o.startsWith("**")){n.push(s.jsx("p",{className:"df-answer__meta-line",children:o.slice(1,-1)},r++)),i++;continue}if(o.trim()===""){i++;continue}n.push(s.jsx("p",{dangerouslySetInnerHTML:{__html:l(o)}},r++)),i++}return n}function $m(e,t){const n=e.filter(l=>l.category==="entity"||l.category==="entities"||l.category==="entitie").slice(0,2),r=e.filter(l=>l.category==="concept"||l.category==="concepts").slice(0,1),i=[];for(const l of n)i.push(`What is ${l.title} and how is it used?`);for(const l of r)i.push(`Explain the ${l.title} concept.`);for(;i.length<3;){const o=[`What are the key components of ${t}?`,`How does ${t} handle errors?`,"What are the main concepts in this project?"][i.length];if(o&&!i.includes(o))i.push(o);else break}return i.slice(0,3)}function Dm(){const{projectPath:e,projectInfo:t,apiOnline:n}=It(),[r,i]=L.useState("idle"),[l,o]=L.useState(""),[a,u]=L.useState(null),[c,h]=L.useState(""),p=L.useRef(null),m=t.name||ce.project.name,y=t.pages||0,{data:_}=en(n&&e?`/api/activity?path=${encodeURIComponent(e)}`:null,null),{data:x}=en(n&&e?`/api/wiki?path=${encodeURIComponent(e)}`:null,null),w=(x==null?void 0:x.pages)??[],f=$m(w,m),d=L.useCallback(()=>{i("idle"),o(""),u(null),h(""),setTimeout(()=>{var g;return(g=p.current)==null?void 0:g.focus()},50)},[]),v=L.useCallback(async g=>{const k=g.trim();if(!(!k||!e||!n)){o(k),i("loading"),u(null),h("");try{const S=await ht("/api/ask",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,question:k})});u(S),i("answering")}catch(S){h(S.message??"Request failed"),i("error")}}},[e,n]);return L.useEffect(()=>{var g;(g=p.current)==null||g.focus()},[]),s.jsxs("div",{className:"df-ask",children:[s.jsxs("header",{className:"df-ask__header",children:[s.jsxs("div",{className:"df-ask__eyebrow",children:[s.jsxs(de,{tone:"accent",children:[s.jsx(oe,{name:"sparkle",size:11}),"Ask"]}),s.jsx("span",{className:"df-subtle",children:"Cited answers from your project's wiki, in seconds."})]}),s.jsxs("h1",{className:"df-h1 df-h1--display",children:["What do you want to know about"," ",s.jsx("span",{className:"df-ask__title-accent",children:m}),"?"]}),s.jsxs("div",{className:"df-ask__box-wrap",children:[s.jsxs("div",{className:`df-ask__box${r!=="idle"?" df-ask__box--active":""}`,children:[s.jsx(oe,{name:"search",size:16,style:{color:"var(--df-text-4)"}}),r==="idle"?s.jsx("input",{ref:p,className:"df-ask__real-input",value:l,onChange:g=>o(g.target.value),onKeyDown:g=>{g.key==="Enter"&&v(l)},placeholder:`Ask anything about ${m}…`,disabled:!n,style:{flex:1,background:"none",border:"none",outline:"none",color:"var(--df-text)",fontFamily:"inherit",fontSize:"inherit"}}):s.jsx("div",{className:"df-ask__box-input",children:s.jsx("span",{children:l})}),r==="idle"&&s.jsxs("button",{className:"df-ask__run",onClick:()=>v(l),disabled:!l.trim()||!n,style:{opacity:!l.trim()||!n?.4:1},children:[s.jsx(oe,{name:"sparkle",size:11}),"Ask",s.jsx("span",{className:"df-kbd",children:"↩"})]}),(r==="loading"||r==="answering"||r==="error")&&s.jsx("button",{className:"df-ask__reset",onClick:d,children:"New question"})]}),r==="idle"&&f.length>0&&s.jsx("div",{className:"df-ask__chips",children:f.map((g,k)=>s.jsx("button",{className:"df-chip",disabled:!n,onClick:()=>{o(g),v(g)},children:g},k))})]})]}),s.jsxs("div",{className:"df-ask__body",children:[s.jsxs("div",{className:"df-ask__main",children:[r==="idle"&&s.jsx(Om,{liveActivity:_}),r==="loading"&&s.jsx(Fm,{pageCount:y}),r==="answering"&&a&&s.jsx(Bm,{result:a,onAsk:v}),r==="error"&&s.jsx(Um,{msg:c,onRetry:()=>v(l)})]}),r==="answering"&&a&&s.jsx(Wm,{pages:a.source_pages})]})]})}function Om({liveActivity:e}){const t=e&&e.length>0?e:ce.activity,n=r=>r==="ingest"?"pink":r==="query"?"accent":r==="lint"?"amber":"default";return s.jsxs("div",{className:"df-anim-fade",children:[s.jsx("div",{className:"df-eyebrow",style:{marginBottom:14},children:"Recent activity"}),s.jsx("div",{className:"df-card df-card--rows",children:t.map((r,i)=>s.jsxs("div",{className:"df-activity__row",children:[s.jsxs("span",{className:"df-activity__time",children:[r.t," ago"]}),s.jsx(de,{tone:n(r.kind),children:r.tool}),s.jsx("span",{className:"df-activity__target",children:r.target}),s.jsx("span",{className:"df-activity__delta",children:r.delta})]},i))})]})}function Fm({pageCount:e}){const[t,n]=L.useState(0),r=[`BM25 search across ${e>0?e:"…"} wiki pages`,"Re-ranking by recency × relevance","Selecting top sources for synthesis","Composing answer with inline citations"];return L.useEffect(()=>{const i=setInterval(()=>n(l=>Math.min(l+1,r.length-1)),600);return()=>clearInterval(i)},[]),s.jsxs("div",{className:"df-anim-fade",children:[s.jsxs("div",{className:"df-search__head",children:[s.jsx("div",{className:"df-search__spinner"}),s.jsx("span",{children:"Querying wiki…"})]}),s.jsx("div",{children:r.map((i,l)=>{const o=t>l,a=t===l;return s.jsxs("div",{className:`df-search__stage${o?" df-search__stage--done":""}`,style:{color:a?"var(--df-accent-text)":void 0},children:[s.jsx(oe,{name:o?"check":"dot",size:11}),s.jsx("span",{children:i})]},l)})}),s.jsx("div",{className:"df-search__skel",children:[100,92,78,64].map((i,l)=>s.jsx("div",{className:"df-search__skel-bar",style:{width:`${i}%`}},l))})]})}function Bm({result:e,onAsk:t}){const n=e.source_pages.length,r=e.confidence;return s.jsxs("div",{className:"df-anim-fade df-answer",children:[s.jsxs("div",{className:"df-answer__meta",children:[s.jsxs(de,{tone:"green",children:[s.jsx(oe,{name:"check",size:11}),"Answered"]}),n>0&&s.jsxs(de,{tone:"accent",children:[n," cited source",n!==1?"s":""]}),r!=null&&s.jsxs(de,{children:["confidence ",(r*100).toFixed(0),"%"]})]}),s.jsxs("article",{className:"df-answer__doc",children:[s.jsx("h2",{className:"df-answer__h",children:e.question}),s.jsx("div",{className:"df-answer__prose",children:Am(e.answer)})]}),n>0&&s.jsxs("div",{className:"df-cites",children:[s.jsx("div",{className:"df-eyebrow",style:{marginBottom:10,fontFamily:"var(--df-font-sans)"},children:"Sources"}),e.source_pages.map((i,l)=>s.jsxs("div",{className:"df-cites__row",style:{animation:`df-fade-in .35s ${.05+l*.05}s both`},children:[s.jsxs("span",{className:"df-cites__num",children:["[",l+1,"]"]}),s.jsxs("div",{style:{flex:1},children:[s.jsx("div",{className:"df-cites__title",children:i.title}),i.path&&s.jsx("div",{className:"df-cites__path",children:i.path})]}),s.jsx(de,{children:Ed(i.category)}),i.relevance_score!=null&&s.jsxs("span",{className:"df-cites__path",children:[i.relevance_score.toFixed(0),"%"]})]},i.page_id))]}),s.jsxs("div",{className:"df-actions",style:{marginTop:24,flexWrap:"wrap",gap:8},children:[s.jsx(Me,{icon:"plus",variant:"primary",children:"Save as wiki page"}),s.jsx(Me,{icon:"cite",children:"Copy with citations"}),s.jsx("button",{style:{padding:"6px 14px",borderRadius:"var(--df-r-md)",border:"1px solid var(--df-border-2)",background:"none",color:"var(--df-text-3)",fontFamily:"inherit",fontSize:12,cursor:"pointer"},onClick:()=>t(`Follow-up on: ${e.question}`),children:"↺ Follow-up"})]})]})}function Um({msg:e,onRetry:t}){return s.jsxs("div",{className:"df-anim-fade",style:{padding:"24px 0"},children:[s.jsx("div",{style:{color:"var(--df-red, #f44336)",marginBottom:12},children:"✗ Could not get an answer"}),s.jsx("div",{style:{fontSize:12,color:"var(--df-text-4)",marginBottom:16},children:e}),s.jsx("button",{onClick:t,style:{padding:"6px 14px",borderRadius:"var(--df-r-md)",background:"var(--df-accent)",color:"var(--df-accent-text)",border:"none",fontFamily:"inherit",fontSize:12,cursor:"pointer"},children:"Retry"})]})}function Wm({pages:e}){return e.length===0?null:s.jsxs("aside",{className:"df-cites-rail df-anim-fade",children:[s.jsx("div",{className:"df-eyebrow",style:{marginBottom:14},children:"Sources"}),s.jsx("div",{className:"df-cites-rail__list",children:e.map((t,n)=>s.jsxs("div",{className:"df-cites-card",style:{animation:`df-fade-in .4s ${.1+n*.08}s both`},children:[s.jsxs("div",{className:"df-cites-card__head",children:[s.jsx("span",{className:"df-cites-card__num",children:n+1}),s.jsx("span",{className:"df-cites-card__title",children:t.title})]}),t.path&&s.jsx("div",{className:"df-cites-card__path",children:t.path}),s.jsxs("div",{className:"df-cites-card__foot",children:[s.jsx(de,{children:Ed(t.category)}),s.jsx("span",{style:{flex:1}}),t.relevance_score!=null&&s.jsxs("span",{style:{color:"var(--df-accent-text)"},children:[t.relevance_score.toFixed(0),"%"]})]})]},t.page_id))})]})}function Ed(e){return e?{entitie:"Entity",entities:"Entity",entity:"Entity",concept:"Concept",concepts:"Concept",timeline:"Timeline",timelines:"Timeline",synthese:"Synthesis",syntheses:"Synthesis",synthesis:"Synthesis"}[e.toLowerCase()]??e.charAt(0).toUpperCase()+e.slice(1):"Page"}const hr=e=>e.replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>").replace(/`([^`]+)`/g,'<code class="df-code">$1</code>');function Vm(){var h;const[e,t]=L.useState("mod-retry"),{projectPath:n,apiOnline:r}=It(),{data:i}=en(r&&n?`/api/wiki?path=${encodeURIComponent(n)}`:null,null);L.useEffect(()=>{i!=null&&i.pages&&i.pages.length>0&&(i.pages.some(m=>m.id===e)||t(i.pages[0].id))},[i]);const l=i!=null&&i.pages&&i.pages.length>0?Km(i.pages):ce.wikiTree,o=!!(i!=null&&i.pages&&i.pages.length>0),{data:a,loading:u}=en(o&&e&&!e.startsWith("cat-")?`/api/wiki/${encodeURIComponent(e)}?path=${encodeURIComponent(n)}`:null,null),c=(h=i==null?void 0:i.pages)==null?void 0:h.find(p=>p.id===e);return s.jsxs("div",{className:"df-wiki",children:[s.jsx(Gm,{data:l,active:e,onSelect:t}),s.jsx("div",{className:"df-page df-anim-page",children:o&&c?s.jsx(Hm,{page:c,detail:a,loading:u}):s.jsx(Qm,{})},e)]})}function Hm({page:e,detail:t,loading:n}){return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"df-page__crumb",children:[s.jsx("span",{children:"Wiki"}),s.jsx(oe,{name:"chevron-right",size:11}),s.jsx("span",{children:e.category}),s.jsx(oe,{name:"chevron-right",size:11}),s.jsx("span",{className:"df-page__crumb-active",children:e.title})]}),s.jsx("h1",{className:"df-h1--serif",children:e.title}),s.jsxs("div",{className:"df-page__meta",children:[s.jsx(de,{tone:"accent",children:e.category}),e.stale?s.jsxs(de,{tone:"amber",children:[s.jsx(oe,{name:"dot",size:10}),"stale"]}):s.jsxs(de,{tone:"green",children:[s.jsx(oe,{name:"check",size:10}),"fresh"]})]}),n&&s.jsx("div",{className:"df-page__prose",style:{color:"var(--df-text-4)"},children:"Loading page…"}),!n&&(t==null?void 0:t.content)&&s.jsx("div",{className:"df-page__prose",dangerouslySetInnerHTML:{__html:Xm(t.content)}}),!n&&!t&&s.jsx("div",{className:"df-page__prose",style:{color:"var(--df-text-4)"},children:"Page content not available."})]})}function Qm(){return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"df-page__crumb",children:[s.jsx("span",{children:"Modules"}),s.jsx(oe,{name:"chevron-right",size:11}),s.jsx("span",{children:"billing"}),s.jsx(oe,{name:"chevron-right",size:11}),s.jsx("span",{className:"df-page__crumb-active",children:"PaymentRetryQueue"})]}),s.jsx("h1",{className:"df-h1--serif",children:"PaymentRetryQueue"}),s.jsxs("div",{className:"df-page__meta",children:[s.jsx(de,{tone:"accent",children:"module"}),s.jsxs(de,{tone:"green",children:[s.jsx(oe,{name:"check",size:10}),"fresh"]}),s.jsx("span",{className:"df-page__path",children:"src/billing/retry-queue.ts · 7 inbound · 4 outbound"})]}),s.jsxs("div",{className:"df-page__prose",children:[s.jsxs("p",{children:["Manages retry attempts for soft-declined Stripe payments. Implements exponential backoff with a 4-attempt ceiling, then transitions the order to"," ",s.jsx("code",{className:"df-code",children:"PAYMENT_FAILED"})," and triggers"," ",s.jsx("a",{href:"#",children:"Dunning Workflow"}),"."]}),s.jsx("h3",{className:"df-page__h3",children:"Backoff schedule"}),s.jsx("div",{className:"df-card",style:{marginTop:8},children:[["Attempt 1","5 minutes after initial failure"],["Attempt 2","30 minutes after attempt 1"],["Attempt 3","4 hours after attempt 2"],["Attempt 4","24 hours after attempt 3 (final)"]].map(([e,t])=>s.jsxs("div",{className:"df-page__kv-row",children:[s.jsx("span",{className:"df-page__kv-key",children:e}),s.jsx("span",{className:"df-page__kv-val",children:t})]},e))}),s.jsx("h3",{className:"df-page__h3",children:"Cross-references"}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("a",{href:"#",children:"Stripe Webhook Handler"})," — entry point for decline events"]}),s.jsxs("li",{children:[s.jsx("a",{href:"#",children:"RETRYABLE_DECLINE_CODES"})," — set of codes that route here"]}),s.jsxs("li",{children:[s.jsx("a",{href:"#",children:"LedgerWriter"})," — writes retry attempts to ledger"]}),s.jsxs("li",{children:[s.jsx("a",{href:"#",children:"DunningScheduler"})," — receives final-failure events"]})]})]})]})}function Ym(e){const t=e.trimStart();if(!t.startsWith("---"))return e;const n=t.indexOf(`
42
+ ---`,3);return n===-1?e:t.slice(n+4).trimStart()}function Xm(e){const n=Ym(e).split(`
43
+ `),r=[];let i=!1;for(const o of n){const a=o.trimEnd();if(a.startsWith("### ")){l(),r.push(`<h3 class="df-page__h3">${hr(a.slice(4))}</h3>`);continue}if(a.startsWith("## ")){l(),r.push(`<h2 class="df-page__h3">${hr(a.slice(3))}</h2>`);continue}if(a.startsWith("# ")){l(),r.push(`<h1 class="df-h1--serif">${hr(a.slice(2))}</h1>`);continue}if(a.startsWith("- ")||a.startsWith("* ")){i||(r.push("<ul>"),i=!0),r.push(`<li>${hr(a.slice(2))}</li>`);continue}if(a===""){l(),r.push("");continue}l(),r.push(`<p>${hr(a)}</p>`)}return l(),r.join(`
44
+ `);function l(){i&&(r.push("</ul>"),i=!1)}}function Km(e){const t={entity:"Entities",concept:"Concepts",timeline:"Timelines",synthesis:"Syntheses"},n=new Map;for(const i of e){const l=i.category??"entity";n.has(l)||n.set(l,[]),n.get(l).push(i)}const r=[];for(const[i,l]of n)r.push({id:`cat-${i}`,label:t[i]??i,kind:"cat",children:l.map(o=>({id:o.id,label:o.title,kind:"page",stale:o.stale}))});return r}function Gm({data:e,active:t,onSelect:n,level:r=0}){const[i,l]=L.useState(()=>Object.fromEntries(e.filter(o=>o.children).map(o=>[o.id,!0])));return r===0?s.jsxs("aside",{className:"df-tree","aria-label":"Wiki navigation",children:[s.jsxs("div",{className:"df-tree__filter",children:[s.jsx(oe,{name:"search",size:11}),s.jsx("span",{children:"Filter pages…"})]}),e.map(o=>s.jsx(Cd,{node:o,level:0,active:t,onSelect:n,open:i,setOpen:l},o.id))]}):null}function Cd({node:e,level:t,active:n,onSelect:r,open:i,setOpen:l}){var h;const o=e.kind==="cat",a=!!i[e.id],u=n===e.id;if(o)return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"df-tree__row",style:{paddingLeft:8+t*12,color:t===0?"var(--df-text-3)":"var(--df-text-4)",fontWeight:t===0?600:400,textTransform:t===0?"uppercase":"none",fontSize:t===0?10:12,letterSpacing:t===0?".08em":0,marginTop:t===0?8:0},onClick:()=>l(p=>({...p,[e.id]:!p[e.id]})),children:[s.jsx("span",{className:"df-tree__caret",children:s.jsx(oe,{name:a?"chevron-down":"chevron-right",size:10})}),s.jsx("span",{children:e.label})]}),a&&((h=e.children)==null?void 0:h.map(p=>s.jsx(Cd,{node:p,level:t+1,active:n,onSelect:r,open:i,setOpen:l},p.id)))]});const c=["df-tree__row",u&&"df-tree__row--active",e.stale&&!u&&"df-tree__row--stale"].filter(Boolean).join(" ");return s.jsxs("div",{className:c,style:{paddingLeft:8+t*12},onClick:()=>r(e.id),children:[s.jsx("span",{className:"df-tree__caret",children:s.jsx(oe,{name:"file",size:11})}),s.jsx("span",{style:{flex:1},children:e.label}),e.stale&&s.jsx("span",{className:"df-tree__indicator df-tree__indicator--stale",title:"Stale"}),e.highlight&&s.jsx("span",{className:"df-tree__indicator df-tree__indicator--highlight",title:"Recent"})]})}function Zm(e,t){var n,r=1;e==null&&(e=0),t==null&&(t=0);function i(){var l,o=n.length,a,u=0,c=0;for(l=0;l<o;++l)a=n[l],u+=a.x,c+=a.y;for(u=(u/o-e)*r,c=(c/o-t)*r,l=0;l<o;++l)a=n[l],a.x-=u,a.y-=c}return i.initialize=function(l){n=l},i.x=function(l){return arguments.length?(e=+l,i):e},i.y=function(l){return arguments.length?(t=+l,i):t},i.strength=function(l){return arguments.length?(r=+l,i):r},i}function qm(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return zd(this.cover(t,n),t,n,e)}function zd(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,l=e._root,o={data:r},a=e._x0,u=e._y0,c=e._x1,h=e._y1,p,m,y,_,x,w,f,d;if(!l)return e._root=o,e;for(;l.length;)if((x=t>=(p=(a+c)/2))?a=p:c=p,(w=n>=(m=(u+h)/2))?u=m:h=m,i=l,!(l=l[f=w<<1|x]))return i[f]=o,e;if(y=+e._x.call(null,l.data),_=+e._y.call(null,l.data),t===y&&n===_)return o.next=l,i?i[f]=o:e._root=o,e;do i=i?i[f]=new Array(4):e._root=new Array(4),(x=t>=(p=(a+c)/2))?a=p:c=p,(w=n>=(m=(u+h)/2))?u=m:h=m;while((f=w<<1|x)===(d=(_>=m)<<1|y>=p));return i[d]=l,i[f]=o,e}function Jm(e){var t,n,r=e.length,i,l,o=new Array(r),a=new Array(r),u=1/0,c=1/0,h=-1/0,p=-1/0;for(n=0;n<r;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(l=+this._y.call(null,t))||(o[n]=i,a[n]=l,i<u&&(u=i),i>h&&(h=i),l<c&&(c=l),l>p&&(p=l));if(u>h||c>p)return this;for(this.cover(u,c).cover(h,p),n=0;n<r;++n)zd(this,o[n],a[n],e[n]);return this}function bm(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,l=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,l=(r=Math.floor(t))+1;else{for(var o=i-n||1,a=this._root,u,c;n>e||e>=i||r>t||t>=l;)switch(c=(t<r)<<1|e<n,u=new Array(4),u[c]=a,a=u,o*=2,c){case 0:i=n+o,l=r+o;break;case 1:n=i-o,l=r+o;break;case 2:i=n+o,r=l-o;break;case 3:n=i-o,r=l-o;break}this._root&&this._root.length&&(this._root=a)}return this._x0=n,this._y0=r,this._x1=i,this._y1=l,this}function eg(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function tg(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Pe(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function ng(e,t,n){var r,i=this._x0,l=this._y0,o,a,u,c,h=this._x1,p=this._y1,m=[],y=this._root,_,x;for(y&&m.push(new Pe(y,i,l,h,p)),n==null?n=1/0:(i=e-n,l=t-n,h=e+n,p=t+n,n*=n);_=m.pop();)if(!(!(y=_.node)||(o=_.x0)>h||(a=_.y0)>p||(u=_.x1)<i||(c=_.y1)<l))if(y.length){var w=(o+u)/2,f=(a+c)/2;m.push(new Pe(y[3],w,f,u,c),new Pe(y[2],o,f,w,c),new Pe(y[1],w,a,u,f),new Pe(y[0],o,a,w,f)),(x=(t>=f)<<1|e>=w)&&(_=m[m.length-1],m[m.length-1]=m[m.length-1-x],m[m.length-1-x]=_)}else{var d=e-+this._x.call(null,y.data),v=t-+this._y.call(null,y.data),g=d*d+v*v;if(g<n){var k=Math.sqrt(n=g);i=e-k,l=t-k,h=e+k,p=t+k,r=y.data}}return r}function rg(e){if(isNaN(h=+this._x.call(null,e))||isNaN(p=+this._y.call(null,e)))return this;var t,n=this._root,r,i,l,o=this._x0,a=this._y0,u=this._x1,c=this._y1,h,p,m,y,_,x,w,f;if(!n)return this;if(n.length)for(;;){if((_=h>=(m=(o+u)/2))?o=m:u=m,(x=p>=(y=(a+c)/2))?a=y:c=y,t=n,!(n=n[w=x<<1|_]))return this;if(!n.length)break;(t[w+1&3]||t[w+2&3]||t[w+3&3])&&(r=t,f=w)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(l=n.next)&&delete n.next,i?(l?i.next=l:delete i.next,this):t?(l?t[w]=l:delete t[w],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[f]=n:this._root=n),this):(this._root=l,this)}function ig(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function lg(){return this._root}function og(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function sg(e){var t=[],n,r=this._root,i,l,o,a,u;for(r&&t.push(new Pe(r,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(r=n.node,l=n.x0,o=n.y0,a=n.x1,u=n.y1)&&r.length){var c=(l+a)/2,h=(o+u)/2;(i=r[3])&&t.push(new Pe(i,c,h,a,u)),(i=r[2])&&t.push(new Pe(i,l,h,c,u)),(i=r[1])&&t.push(new Pe(i,c,o,a,h)),(i=r[0])&&t.push(new Pe(i,l,o,c,h))}return this}function ag(e){var t=[],n=[],r;for(this._root&&t.push(new Pe(this._root,this._x0,this._y0,this._x1,this._y1));r=t.pop();){var i=r.node;if(i.length){var l,o=r.x0,a=r.y0,u=r.x1,c=r.y1,h=(o+u)/2,p=(a+c)/2;(l=i[0])&&t.push(new Pe(l,o,a,h,p)),(l=i[1])&&t.push(new Pe(l,h,a,u,p)),(l=i[2])&&t.push(new Pe(l,o,p,h,c)),(l=i[3])&&t.push(new Pe(l,h,p,u,c))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.x1,r.y1);return this}function ug(e){return e[0]}function cg(e){return arguments.length?(this._x=e,this):this._x}function fg(e){return e[1]}function dg(e){return arguments.length?(this._y=e,this):this._y}function va(e,t,n){var r=new ya(t??ug,n??fg,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function ya(e,t,n,r,i,l){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=l,this._root=void 0}function Bu(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Ie=va.prototype=ya.prototype;Ie.copy=function(){var e=new ya(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=Bu(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var i=0;i<4;++i)(r=t.source[i])&&(r.length?n.push({source:r,target:t.target[i]=new Array(4)}):t.target[i]=Bu(r));return e};Ie.add=qm;Ie.addAll=Jm;Ie.cover=bm;Ie.data=eg;Ie.extent=tg;Ie.find=ng;Ie.remove=rg;Ie.removeAll=ig;Ie.root=lg;Ie.size=og;Ie.visit=sg;Ie.visitAfter=ag;Ie.x=cg;Ie.y=dg;function hn(e){return function(){return e}}function Vt(e){return(e()-.5)*1e-6}function hg(e){return e.x+e.vx}function pg(e){return e.y+e.vy}function mg(e){var t,n,r,i=1,l=1;typeof e!="function"&&(e=hn(e==null?1:+e));function o(){for(var c,h=t.length,p,m,y,_,x,w,f=0;f<l;++f)for(p=va(t,hg,pg).visitAfter(a),c=0;c<h;++c)m=t[c],x=n[m.index],w=x*x,y=m.x+m.vx,_=m.y+m.vy,p.visit(d);function d(v,g,k,S,N){var z=v.data,I=v.r,A=x+I;if(z){if(z.index>m.index){var H=y-z.x-z.vx,ee=_-z.y-z.vy,Y=H*H+ee*ee;Y<A*A&&(H===0&&(H=Vt(r),Y+=H*H),ee===0&&(ee=Vt(r),Y+=ee*ee),Y=(A-(Y=Math.sqrt(Y)))/Y*i,m.vx+=(H*=Y)*(A=(I*=I)/(w+I)),m.vy+=(ee*=Y)*A,z.vx-=H*(A=1-A),z.vy-=ee*A)}return}return g>y+A||S<y-A||k>_+A||N<_-A}}function a(c){if(c.data)return c.r=n[c.data.index];for(var h=c.r=0;h<4;++h)c[h]&&c[h].r>c.r&&(c.r=c[h].r)}function u(){if(t){var c,h=t.length,p;for(n=new Array(h),c=0;c<h;++c)p=t[c],n[p.index]=+e(p,c,t)}}return o.initialize=function(c,h){t=c,r=h,u()},o.iterations=function(c){return arguments.length?(l=+c,o):l},o.strength=function(c){return arguments.length?(i=+c,o):i},o.radius=function(c){return arguments.length?(e=typeof c=="function"?c:hn(+c),u(),o):e},o}function gg(e){return e.index}function Uu(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function vg(e){var t=gg,n=p,r,i=hn(30),l,o,a,u,c,h=1;e==null&&(e=[]);function p(w){return 1/Math.min(a[w.source.index],a[w.target.index])}function m(w){for(var f=0,d=e.length;f<h;++f)for(var v=0,g,k,S,N,z,I,A;v<d;++v)g=e[v],k=g.source,S=g.target,N=S.x+S.vx-k.x-k.vx||Vt(c),z=S.y+S.vy-k.y-k.vy||Vt(c),I=Math.sqrt(N*N+z*z),I=(I-l[v])/I*w*r[v],N*=I,z*=I,S.vx-=N*(A=u[v]),S.vy-=z*A,k.vx+=N*(A=1-A),k.vy+=z*A}function y(){if(o){var w,f=o.length,d=e.length,v=new Map(o.map((k,S)=>[t(k,S,o),k])),g;for(w=0,a=new Array(f);w<d;++w)g=e[w],g.index=w,typeof g.source!="object"&&(g.source=Uu(v,g.source)),typeof g.target!="object"&&(g.target=Uu(v,g.target)),a[g.source.index]=(a[g.source.index]||0)+1,a[g.target.index]=(a[g.target.index]||0)+1;for(w=0,u=new Array(d);w<d;++w)g=e[w],u[w]=a[g.source.index]/(a[g.source.index]+a[g.target.index]);r=new Array(d),_(),l=new Array(d),x()}}function _(){if(o)for(var w=0,f=e.length;w<f;++w)r[w]=+n(e[w],w,e)}function x(){if(o)for(var w=0,f=e.length;w<f;++w)l[w]=+i(e[w],w,e)}return m.initialize=function(w,f){o=w,c=f,y()},m.links=function(w){return arguments.length?(e=w,y(),m):e},m.id=function(w){return arguments.length?(t=w,m):t},m.iterations=function(w){return arguments.length?(h=+w,m):h},m.strength=function(w){return arguments.length?(n=typeof w=="function"?w:hn(+w),_(),m):n},m.distance=function(w){return arguments.length?(i=typeof w=="function"?w:hn(+w),x(),m):i},m}var yg={value:()=>{}};function ii(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Wi(n)}function Wi(e){this._=e}function xg(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Wi.prototype=ii.prototype={constructor:Wi,on:function(e,t){var n=this._,r=xg(e+"",n),i,l=-1,o=r.length;if(arguments.length<2){for(;++l<o;)if((i=(e=r[l]).type)&&(i=wg(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++l<o;)if(i=(e=r[l]).type)n[i]=Wu(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Wu(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Wi(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,l;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(l=this._[e],r=0,i=l.length;r<i;++r)l[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,l=r.length;i<l;++i)r[i].value.apply(t,n)}};function wg(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Wu(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=yg,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var bn=0,wr=0,pr=0,Pd=1e3,gl,_r,vl=0,wn=0,Ol=0,Kr=typeof performance=="object"&&performance.now?performance:Date,Md=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function xa(){return wn||(Md(_g),wn=Kr.now()+Ol)}function _g(){wn=0}function yl(){this._call=this._time=this._next=null}yl.prototype=wa.prototype={constructor:yl,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?xa():+n)+(t==null?0:+t),!this._next&&_r!==this&&(_r?_r._next=this:gl=this,_r=this),this._call=e,this._time=n,ms()},stop:function(){this._call&&(this._call=null,this._time=1/0,ms())}};function wa(e,t,n){var r=new yl;return r.restart(e,t,n),r}function kg(){xa(),++bn;for(var e=gl,t;e;)(t=wn-e._time)>=0&&e._call.call(void 0,t),e=e._next;--bn}function Vu(){wn=(vl=Kr.now())+Ol,bn=wr=0;try{kg()}finally{bn=0,Sg(),wn=0}}function jg(){var e=Kr.now(),t=e-vl;t>Pd&&(Ol-=t,vl=e)}function Sg(){for(var e,t=gl,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:gl=n);_r=e,ms(r)}function ms(e){if(!bn){wr&&(wr=clearTimeout(wr));var t=e-wn;t>24?(e<1/0&&(wr=setTimeout(Vu,e-Kr.now()-Ol)),pr&&(pr=clearInterval(pr))):(pr||(vl=Kr.now(),pr=setInterval(jg,Pd)),bn=1,Md(Vu))}}function Hu(e,t,n){var r=new yl;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}const Ng=1664525,Eg=1013904223,Qu=4294967296;function Cg(){let e=1;return()=>(e=(Ng*e+Eg)%Qu)/Qu}function zg(e){return e.x}function Pg(e){return e.y}var Mg=10,Tg=Math.PI*(3-Math.sqrt(5));function Lg(e){var t,n=1,r=.001,i=1-Math.pow(r,1/300),l=0,o=.6,a=new Map,u=wa(p),c=ii("tick","end"),h=Cg();e==null&&(e=[]);function p(){m(),c.call("tick",t),n<r&&(u.stop(),c.call("end",t))}function m(x){var w,f=e.length,d;x===void 0&&(x=1);for(var v=0;v<x;++v)for(n+=(l-n)*i,a.forEach(function(g){g(n)}),w=0;w<f;++w)d=e[w],d.fx==null?d.x+=d.vx*=o:(d.x=d.fx,d.vx=0),d.fy==null?d.y+=d.vy*=o:(d.y=d.fy,d.vy=0);return t}function y(){for(var x=0,w=e.length,f;x<w;++x){if(f=e[x],f.index=x,f.fx!=null&&(f.x=f.fx),f.fy!=null&&(f.y=f.fy),isNaN(f.x)||isNaN(f.y)){var d=Mg*Math.sqrt(.5+x),v=x*Tg;f.x=d*Math.cos(v),f.y=d*Math.sin(v)}(isNaN(f.vx)||isNaN(f.vy))&&(f.vx=f.vy=0)}}function _(x){return x.initialize&&x.initialize(e,h),x}return y(),t={tick:m,restart:function(){return u.restart(p),t},stop:function(){return u.stop(),t},nodes:function(x){return arguments.length?(e=x,y(),a.forEach(_),t):e},alpha:function(x){return arguments.length?(n=+x,t):n},alphaMin:function(x){return arguments.length?(r=+x,t):r},alphaDecay:function(x){return arguments.length?(i=+x,t):+i},alphaTarget:function(x){return arguments.length?(l=+x,t):l},velocityDecay:function(x){return arguments.length?(o=1-x,t):1-o},randomSource:function(x){return arguments.length?(h=x,a.forEach(_),t):h},force:function(x,w){return arguments.length>1?(w==null?a.delete(x):a.set(x,_(w)),t):a.get(x)},find:function(x,w,f){var d=0,v=e.length,g,k,S,N,z;for(f==null?f=1/0:f*=f,d=0;d<v;++d)N=e[d],g=x-N.x,k=w-N.y,S=g*g+k*k,S<f&&(z=N,f=S);return z},on:function(x,w){return arguments.length>1?(c.on(x,w),t):c.on(x)}}}function Rg(){var e,t,n,r,i=hn(-30),l,o=1,a=1/0,u=.81;function c(y){var _,x=e.length,w=va(e,zg,Pg).visitAfter(p);for(r=y,_=0;_<x;++_)t=e[_],w.visit(m)}function h(){if(e){var y,_=e.length,x;for(l=new Array(_),y=0;y<_;++y)x=e[y],l[x.index]=+i(x,y,e)}}function p(y){var _=0,x,w,f=0,d,v,g;if(y.length){for(d=v=g=0;g<4;++g)(x=y[g])&&(w=Math.abs(x.value))&&(_+=x.value,f+=w,d+=w*x.x,v+=w*x.y);y.x=d/f,y.y=v/f}else{x=y,x.x=x.data.x,x.y=x.data.y;do _+=l[x.data.index];while(x=x.next)}y.value=_}function m(y,_,x,w){if(!y.value)return!0;var f=y.x-t.x,d=y.y-t.y,v=w-_,g=f*f+d*d;if(v*v/u<g)return g<a&&(f===0&&(f=Vt(n),g+=f*f),d===0&&(d=Vt(n),g+=d*d),g<o&&(g=Math.sqrt(o*g)),t.vx+=f*y.value*r/g,t.vy+=d*y.value*r/g),!0;if(y.length||g>=a)return;(y.data!==t||y.next)&&(f===0&&(f=Vt(n),g+=f*f),d===0&&(d=Vt(n),g+=d*d),g<o&&(g=Math.sqrt(o*g)));do y.data!==t&&(v=l[y.data.index]*r/g,t.vx+=f*v,t.vy+=d*v);while(y=y.next)}return c.initialize=function(y,_){e=y,n=_,h()},c.strength=function(y){return arguments.length?(i=typeof y=="function"?y:hn(+y),h(),c):i},c.distanceMin=function(y){return arguments.length?(o=y*y,c):Math.sqrt(o)},c.distanceMax=function(y){return arguments.length?(a=y*y,c):Math.sqrt(a)},c.theta=function(y){return arguments.length?(u=y*y,c):Math.sqrt(u)},c}var gs="http://www.w3.org/1999/xhtml";const Yu={svg:"http://www.w3.org/2000/svg",xhtml:gs,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Fl(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Yu.hasOwnProperty(t)?{space:Yu[t],local:e}:e}function Ig(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===gs&&t.documentElement.namespaceURI===gs?t.createElement(e):t.createElementNS(n,e)}}function Ag(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Td(e){var t=Fl(e);return(t.local?Ag:Ig)(t)}function $g(){}function _a(e){return e==null?$g:function(){return this.querySelector(e)}}function Dg(e){typeof e!="function"&&(e=_a(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var l=t[i],o=l.length,a=r[i]=new Array(o),u,c,h=0;h<o;++h)(u=l[h])&&(c=e.call(u,u.__data__,h,l))&&("__data__"in u&&(c.__data__=u.__data__),a[h]=c);return new Ye(r,this._parents)}function Og(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Fg(){return[]}function Ld(e){return e==null?Fg:function(){return this.querySelectorAll(e)}}function Bg(e){return function(){return Og(e.apply(this,arguments))}}function Ug(e){typeof e=="function"?e=Bg(e):e=Ld(e);for(var t=this._groups,n=t.length,r=[],i=[],l=0;l<n;++l)for(var o=t[l],a=o.length,u,c=0;c<a;++c)(u=o[c])&&(r.push(e.call(u,u.__data__,c,o)),i.push(u));return new Ye(r,i)}function Rd(e){return function(){return this.matches(e)}}function Id(e){return function(t){return t.matches(e)}}var Wg=Array.prototype.find;function Vg(e){return function(){return Wg.call(this.children,e)}}function Hg(){return this.firstElementChild}function Qg(e){return this.select(e==null?Hg:Vg(typeof e=="function"?e:Id(e)))}var Yg=Array.prototype.filter;function Xg(){return Array.from(this.children)}function Kg(e){return function(){return Yg.call(this.children,e)}}function Gg(e){return this.selectAll(e==null?Xg:Kg(typeof e=="function"?e:Id(e)))}function Zg(e){typeof e!="function"&&(e=Rd(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var l=t[i],o=l.length,a=r[i]=[],u,c=0;c<o;++c)(u=l[c])&&e.call(u,u.__data__,c,l)&&a.push(u);return new Ye(r,this._parents)}function Ad(e){return new Array(e.length)}function qg(){return new Ye(this._enter||this._groups.map(Ad),this._parents)}function xl(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}xl.prototype={constructor:xl,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Jg(e){return function(){return e}}function bg(e,t,n,r,i,l){for(var o=0,a,u=t.length,c=l.length;o<c;++o)(a=t[o])?(a.__data__=l[o],r[o]=a):n[o]=new xl(e,l[o]);for(;o<u;++o)(a=t[o])&&(i[o]=a)}function e0(e,t,n,r,i,l,o){var a,u,c=new Map,h=t.length,p=l.length,m=new Array(h),y;for(a=0;a<h;++a)(u=t[a])&&(m[a]=y=o.call(u,u.__data__,a,t)+"",c.has(y)?i[a]=u:c.set(y,u));for(a=0;a<p;++a)y=o.call(e,l[a],a,l)+"",(u=c.get(y))?(r[a]=u,u.__data__=l[a],c.delete(y)):n[a]=new xl(e,l[a]);for(a=0;a<h;++a)(u=t[a])&&c.get(m[a])===u&&(i[a]=u)}function t0(e){return e.__data__}function n0(e,t){if(!arguments.length)return Array.from(this,t0);var n=t?e0:bg,r=this._parents,i=this._groups;typeof e!="function"&&(e=Jg(e));for(var l=i.length,o=new Array(l),a=new Array(l),u=new Array(l),c=0;c<l;++c){var h=r[c],p=i[c],m=p.length,y=r0(e.call(h,h&&h.__data__,c,r)),_=y.length,x=a[c]=new Array(_),w=o[c]=new Array(_),f=u[c]=new Array(m);n(h,p,x,w,f,y,t);for(var d=0,v=0,g,k;d<_;++d)if(g=x[d]){for(d>=v&&(v=d+1);!(k=w[v])&&++v<_;);g._next=k||null}}return o=new Ye(o,r),o._enter=a,o._exit=u,o}function r0(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function i0(){return new Ye(this._exit||this._groups.map(Ad),this._parents)}function l0(e,t,n){var r=this.enter(),i=this,l=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?l.remove():n(l),r&&i?r.merge(i).order():i}function o0(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,l=r.length,o=Math.min(i,l),a=new Array(i),u=0;u<o;++u)for(var c=n[u],h=r[u],p=c.length,m=a[u]=new Array(p),y,_=0;_<p;++_)(y=c[_]||h[_])&&(m[_]=y);for(;u<i;++u)a[u]=n[u];return new Ye(a,this._parents)}function s0(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,l=r[i],o;--i>=0;)(o=r[i])&&(l&&o.compareDocumentPosition(l)^4&&l.parentNode.insertBefore(o,l),l=o);return this}function a0(e){e||(e=u0);function t(p,m){return p&&m?e(p.__data__,m.__data__):!p-!m}for(var n=this._groups,r=n.length,i=new Array(r),l=0;l<r;++l){for(var o=n[l],a=o.length,u=i[l]=new Array(a),c,h=0;h<a;++h)(c=o[h])&&(u[h]=c);u.sort(t)}return new Ye(i,this._parents).order()}function u0(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function c0(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function f0(){return Array.from(this)}function d0(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,l=r.length;i<l;++i){var o=r[i];if(o)return o}return null}function h0(){let e=0;for(const t of this)++e;return e}function p0(){return!this.node()}function m0(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],l=0,o=i.length,a;l<o;++l)(a=i[l])&&e.call(a,a.__data__,l,i);return this}function g0(e){return function(){this.removeAttribute(e)}}function v0(e){return function(){this.removeAttributeNS(e.space,e.local)}}function y0(e,t){return function(){this.setAttribute(e,t)}}function x0(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function w0(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function _0(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function k0(e,t){var n=Fl(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?v0:g0:typeof t=="function"?n.local?_0:w0:n.local?x0:y0)(n,t))}function $d(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function j0(e){return function(){this.style.removeProperty(e)}}function S0(e,t,n){return function(){this.style.setProperty(e,t,n)}}function N0(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function E0(e,t,n){return arguments.length>1?this.each((t==null?j0:typeof t=="function"?N0:S0)(e,t,n??"")):er(this.node(),e)}function er(e,t){return e.style.getPropertyValue(t)||$d(e).getComputedStyle(e,null).getPropertyValue(t)}function C0(e){return function(){delete this[e]}}function z0(e,t){return function(){this[e]=t}}function P0(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function M0(e,t){return arguments.length>1?this.each((t==null?C0:typeof t=="function"?P0:z0)(e,t)):this.node()[e]}function Dd(e){return e.trim().split(/^|\s+/)}function ka(e){return e.classList||new Od(e)}function Od(e){this._node=e,this._names=Dd(e.getAttribute("class")||"")}Od.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Fd(e,t){for(var n=ka(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Bd(e,t){for(var n=ka(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function T0(e){return function(){Fd(this,e)}}function L0(e){return function(){Bd(this,e)}}function R0(e,t){return function(){(t.apply(this,arguments)?Fd:Bd)(this,e)}}function I0(e,t){var n=Dd(e+"");if(arguments.length<2){for(var r=ka(this.node()),i=-1,l=n.length;++i<l;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?R0:t?T0:L0)(n,t))}function A0(){this.textContent=""}function $0(e){return function(){this.textContent=e}}function D0(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function O0(e){return arguments.length?this.each(e==null?A0:(typeof e=="function"?D0:$0)(e)):this.node().textContent}function F0(){this.innerHTML=""}function B0(e){return function(){this.innerHTML=e}}function U0(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function W0(e){return arguments.length?this.each(e==null?F0:(typeof e=="function"?U0:B0)(e)):this.node().innerHTML}function V0(){this.nextSibling&&this.parentNode.appendChild(this)}function H0(){return this.each(V0)}function Q0(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Y0(){return this.each(Q0)}function X0(e){var t=typeof e=="function"?e:Td(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function K0(){return null}function G0(e,t){var n=typeof e=="function"?e:Td(e),r=t==null?K0:typeof t=="function"?t:_a(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Z0(){var e=this.parentNode;e&&e.removeChild(this)}function q0(){return this.each(Z0)}function J0(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function b0(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ev(e){return this.select(e?b0:J0)}function tv(e){return arguments.length?this.property("__data__",e):this.node().__data__}function nv(e){return function(t){e.call(this,t,this.__data__)}}function rv(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function iv(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,l;n<i;++n)l=t[n],(!e.type||l.type===e.type)&&l.name===e.name?this.removeEventListener(l.type,l.listener,l.options):t[++r]=l;++r?t.length=r:delete this.__on}}}function lv(e,t,n){return function(){var r=this.__on,i,l=nv(t);if(r){for(var o=0,a=r.length;o<a;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=l,i.options=n),i.value=t;return}}this.addEventListener(e.type,l,n),i={type:e.type,name:e.name,value:t,listener:l,options:n},r?r.push(i):this.__on=[i]}}function ov(e,t,n){var r=rv(e+""),i,l=r.length,o;if(arguments.length<2){var a=this.node().__on;if(a){for(var u=0,c=a.length,h;u<c;++u)for(i=0,h=a[u];i<l;++i)if((o=r[i]).type===h.type&&o.name===h.name)return h.value}return}for(a=t?lv:iv,i=0;i<l;++i)this.each(a(r[i],t,n));return this}function Ud(e,t,n){var r=$d(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function sv(e,t){return function(){return Ud(this,e,t)}}function av(e,t){return function(){return Ud(this,e,t.apply(this,arguments))}}function uv(e,t){return this.each((typeof t=="function"?av:sv)(e,t))}function*cv(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,l=r.length,o;i<l;++i)(o=r[i])&&(yield o)}var Wd=[null];function Ye(e,t){this._groups=e,this._parents=t}function li(){return new Ye([[document.documentElement]],Wd)}function fv(){return this}Ye.prototype=li.prototype={constructor:Ye,select:Dg,selectAll:Ug,selectChild:Qg,selectChildren:Gg,filter:Zg,data:n0,enter:qg,exit:i0,join:l0,merge:o0,selection:fv,order:s0,sort:a0,call:c0,nodes:f0,node:d0,size:h0,empty:p0,each:m0,attr:k0,style:E0,property:M0,classed:I0,text:O0,html:W0,raise:H0,lower:Y0,append:X0,insert:G0,remove:q0,clone:ev,datum:tv,on:ov,dispatch:uv,[Symbol.iterator]:cv};function ze(e){return typeof e=="string"?new Ye([[document.querySelector(e)]],[document.documentElement]):new Ye([[e]],Wd)}function dv(e){let t;for(;t=e.sourceEvent;)e=t;return e}function kt(e,t){if(e=dv(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const hv={passive:!1},Gr={capture:!0,passive:!1};function vo(e){e.stopImmediatePropagation()}function Hn(e){e.preventDefault(),e.stopImmediatePropagation()}function Vd(e){var t=e.document.documentElement,n=ze(e).on("dragstart.drag",Hn,Gr);"onselectstart"in t?n.on("selectstart.drag",Hn,Gr):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Hd(e,t){var n=e.document.documentElement,r=ze(e).on("dragstart.drag",null);t&&(r.on("click.drag",Hn,Gr),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Ni=e=>()=>e;function vs(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:l,x:o,y:a,dx:u,dy:c,dispatch:h}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:l,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:h}})}vs.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function pv(e){return!e.ctrlKey&&!e.button}function mv(){return this.parentNode}function gv(e,t){return t??{x:e.x,y:e.y}}function vv(){return navigator.maxTouchPoints||"ontouchstart"in this}function yv(){var e=pv,t=mv,n=gv,r=vv,i={},l=ii("start","drag","end"),o=0,a,u,c,h,p=0;function m(g){g.on("mousedown.drag",y).filter(r).on("touchstart.drag",w).on("touchmove.drag",f,hv).on("touchend.drag touchcancel.drag",d).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(g,k){if(!(h||!e.call(this,g,k))){var S=v(this,t.call(this,g,k),g,k,"mouse");S&&(ze(g.view).on("mousemove.drag",_,Gr).on("mouseup.drag",x,Gr),Vd(g.view),vo(g),c=!1,a=g.clientX,u=g.clientY,S("start",g))}}function _(g){if(Hn(g),!c){var k=g.clientX-a,S=g.clientY-u;c=k*k+S*S>p}i.mouse("drag",g)}function x(g){ze(g.view).on("mousemove.drag mouseup.drag",null),Hd(g.view,c),Hn(g),i.mouse("end",g)}function w(g,k){if(e.call(this,g,k)){var S=g.changedTouches,N=t.call(this,g,k),z=S.length,I,A;for(I=0;I<z;++I)(A=v(this,N,g,k,S[I].identifier,S[I]))&&(vo(g),A("start",g,S[I]))}}function f(g){var k=g.changedTouches,S=k.length,N,z;for(N=0;N<S;++N)(z=i[k[N].identifier])&&(Hn(g),z("drag",g,k[N]))}function d(g){var k=g.changedTouches,S=k.length,N,z;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),N=0;N<S;++N)(z=i[k[N].identifier])&&(vo(g),z("end",g,k[N]))}function v(g,k,S,N,z,I){var A=l.copy(),H=kt(I||S,k),ee,Y,j;if((j=n.call(g,new vs("beforestart",{sourceEvent:S,target:m,identifier:z,active:o,x:H[0],y:H[1],dx:0,dy:0,dispatch:A}),N))!=null)return ee=j.x-H[0]||0,Y=j.y-H[1]||0,function D(P,$,E){var T=H,R;switch(P){case"start":i[z]=D,R=o++;break;case"end":delete i[z],--o;case"drag":H=kt(E||$,k),R=o;break}A.call(P,g,new vs(P,{sourceEvent:$,subject:j,target:m,identifier:z,active:R,x:H[0]+ee,y:H[1]+Y,dx:H[0]-T[0],dy:H[1]-T[1],dispatch:A}),N)}}return m.filter=function(g){return arguments.length?(e=typeof g=="function"?g:Ni(!!g),m):e},m.container=function(g){return arguments.length?(t=typeof g=="function"?g:Ni(g),m):t},m.subject=function(g){return arguments.length?(n=typeof g=="function"?g:Ni(g),m):n},m.touchable=function(g){return arguments.length?(r=typeof g=="function"?g:Ni(!!g),m):r},m.on=function(){var g=l.on.apply(l,arguments);return g===l?m:g},m.clickDistance=function(g){return arguments.length?(p=(g=+g)*g,m):Math.sqrt(p)},m}function ja(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Qd(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function oi(){}var Zr=.7,wl=1/Zr,Qn="\\s*([+-]?\\d+)\\s*",qr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xv=/^#([0-9a-f]{3,8})$/,wv=new RegExp(`^rgb\\(${Qn},${Qn},${Qn}\\)$`),_v=new RegExp(`^rgb\\(${vt},${vt},${vt}\\)$`),kv=new RegExp(`^rgba\\(${Qn},${Qn},${Qn},${qr}\\)$`),jv=new RegExp(`^rgba\\(${vt},${vt},${vt},${qr}\\)$`),Sv=new RegExp(`^hsl\\(${qr},${vt},${vt}\\)$`),Nv=new RegExp(`^hsla\\(${qr},${vt},${vt},${qr}\\)$`),Xu={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ja(oi,Jr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ku,formatHex:Ku,formatHex8:Ev,formatHsl:Cv,formatRgb:Gu,toString:Gu});function Ku(){return this.rgb().formatHex()}function Ev(){return this.rgb().formatHex8()}function Cv(){return Yd(this).formatHsl()}function Gu(){return this.rgb().formatRgb()}function Jr(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=xv.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Zu(t):n===3?new De(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ei(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ei(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=wv.exec(e))?new De(t[1],t[2],t[3],1):(t=_v.exec(e))?new De(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=kv.exec(e))?Ei(t[1],t[2],t[3],t[4]):(t=jv.exec(e))?Ei(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Sv.exec(e))?bu(t[1],t[2]/100,t[3]/100,1):(t=Nv.exec(e))?bu(t[1],t[2]/100,t[3]/100,t[4]):Xu.hasOwnProperty(e)?Zu(Xu[e]):e==="transparent"?new De(NaN,NaN,NaN,0):null}function Zu(e){return new De(e>>16&255,e>>8&255,e&255,1)}function Ei(e,t,n,r){return r<=0&&(e=t=n=NaN),new De(e,t,n,r)}function zv(e){return e instanceof oi||(e=Jr(e)),e?(e=e.rgb(),new De(e.r,e.g,e.b,e.opacity)):new De}function ys(e,t,n,r){return arguments.length===1?zv(e):new De(e,t,n,r??1)}function De(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}ja(De,ys,Qd(oi,{brighter(e){return e=e==null?wl:Math.pow(wl,e),new De(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Zr:Math.pow(Zr,e),new De(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new De(pn(this.r),pn(this.g),pn(this.b),_l(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:qu,formatHex:qu,formatHex8:Pv,formatRgb:Ju,toString:Ju}));function qu(){return`#${cn(this.r)}${cn(this.g)}${cn(this.b)}`}function Pv(){return`#${cn(this.r)}${cn(this.g)}${cn(this.b)}${cn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ju(){const e=_l(this.opacity);return`${e===1?"rgb(":"rgba("}${pn(this.r)}, ${pn(this.g)}, ${pn(this.b)}${e===1?")":`, ${e})`}`}function _l(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function pn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function cn(e){return e=pn(e),(e<16?"0":"")+e.toString(16)}function bu(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ot(e,t,n,r)}function Yd(e){if(e instanceof ot)return new ot(e.h,e.s,e.l,e.opacity);if(e instanceof oi||(e=Jr(e)),!e)return new ot;if(e instanceof ot)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),l=Math.max(t,n,r),o=NaN,a=l-i,u=(l+i)/2;return a?(t===l?o=(n-r)/a+(n<r)*6:n===l?o=(r-t)/a+2:o=(t-n)/a+4,a/=u<.5?l+i:2-l-i,o*=60):a=u>0&&u<1?0:o,new ot(o,a,u,e.opacity)}function Mv(e,t,n,r){return arguments.length===1?Yd(e):new ot(e,t,n,r??1)}function ot(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}ja(ot,Mv,Qd(oi,{brighter(e){return e=e==null?wl:Math.pow(wl,e),new ot(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Zr:Math.pow(Zr,e),new ot(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new De(yo(e>=240?e-240:e+120,i,r),yo(e,i,r),yo(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ot(ec(this.h),Ci(this.s),Ci(this.l),_l(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=_l(this.opacity);return`${e===1?"hsl(":"hsla("}${ec(this.h)}, ${Ci(this.s)*100}%, ${Ci(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ec(e){return e=(e||0)%360,e<0?e+360:e}function Ci(e){return Math.max(0,Math.min(1,e||0))}function yo(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Xd=e=>()=>e;function Tv(e,t){return function(n){return e+n*t}}function Lv(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Rv(e){return(e=+e)==1?Kd:function(t,n){return n-t?Lv(t,n,e):Xd(isNaN(t)?n:t)}}function Kd(e,t){var n=t-e;return n?Tv(e,n):Xd(isNaN(e)?t:e)}const tc=function e(t){var n=Rv(t);function r(i,l){var o=n((i=ys(i)).r,(l=ys(l)).r),a=n(i.g,l.g),u=n(i.b,l.b),c=Kd(i.opacity,l.opacity);return function(h){return i.r=o(h),i.g=a(h),i.b=u(h),i.opacity=c(h),i+""}}return r.gamma=e,r}(1);function Ot(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var xs=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xo=new RegExp(xs.source,"g");function Iv(e){return function(){return e}}function Av(e){return function(t){return e(t)+""}}function $v(e,t){var n=xs.lastIndex=xo.lastIndex=0,r,i,l,o=-1,a=[],u=[];for(e=e+"",t=t+"";(r=xs.exec(e))&&(i=xo.exec(t));)(l=i.index)>n&&(l=t.slice(n,l),a[o]?a[o]+=l:a[++o]=l),(r=r[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,u.push({i:o,x:Ot(r,i)})),n=xo.lastIndex;return n<t.length&&(l=t.slice(n),a[o]?a[o]+=l:a[++o]=l),a.length<2?u[0]?Av(u[0].x):Iv(t):(t=u.length,function(c){for(var h=0,p;h<t;++h)a[(p=u[h]).i]=p.x(c);return a.join("")})}var nc=180/Math.PI,ws={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Gd(e,t,n,r,i,l){var o,a,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,u/=a),e*r<t*n&&(e=-e,t=-t,u=-u,o=-o),{translateX:i,translateY:l,rotate:Math.atan2(t,e)*nc,skewX:Math.atan(u)*nc,scaleX:o,scaleY:a}}var zi;function Dv(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?ws:Gd(t.a,t.b,t.c,t.d,t.e,t.f)}function Ov(e){return e==null||(zi||(zi=document.createElementNS("http://www.w3.org/2000/svg","g")),zi.setAttribute("transform",e),!(e=zi.transform.baseVal.consolidate()))?ws:(e=e.matrix,Gd(e.a,e.b,e.c,e.d,e.e,e.f))}function Zd(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function l(c,h,p,m,y,_){if(c!==p||h!==m){var x=y.push("translate(",null,t,null,n);_.push({i:x-4,x:Ot(c,p)},{i:x-2,x:Ot(h,m)})}else(p||m)&&y.push("translate("+p+t+m+n)}function o(c,h,p,m){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),m.push({i:p.push(i(p)+"rotate(",null,r)-2,x:Ot(c,h)})):h&&p.push(i(p)+"rotate("+h+r)}function a(c,h,p,m){c!==h?m.push({i:p.push(i(p)+"skewX(",null,r)-2,x:Ot(c,h)}):h&&p.push(i(p)+"skewX("+h+r)}function u(c,h,p,m,y,_){if(c!==p||h!==m){var x=y.push(i(y)+"scale(",null,",",null,")");_.push({i:x-4,x:Ot(c,p)},{i:x-2,x:Ot(h,m)})}else(p!==1||m!==1)&&y.push(i(y)+"scale("+p+","+m+")")}return function(c,h){var p=[],m=[];return c=e(c),h=e(h),l(c.translateX,c.translateY,h.translateX,h.translateY,p,m),o(c.rotate,h.rotate,p,m),a(c.skewX,h.skewX,p,m),u(c.scaleX,c.scaleY,h.scaleX,h.scaleY,p,m),c=h=null,function(y){for(var _=-1,x=m.length,w;++_<x;)p[(w=m[_]).i]=w.x(y);return p.join("")}}}var Fv=Zd(Dv,"px, ","px)","deg)"),Bv=Zd(Ov,", ",")",")"),Uv=1e-12;function rc(e){return((e=Math.exp(e))+1/e)/2}function Wv(e){return((e=Math.exp(e))-1/e)/2}function Vv(e){return((e=Math.exp(2*e))-1)/(e+1)}const Hv=function e(t,n,r){function i(l,o){var a=l[0],u=l[1],c=l[2],h=o[0],p=o[1],m=o[2],y=h-a,_=p-u,x=y*y+_*_,w,f;if(x<Uv)f=Math.log(m/c)/t,w=function(N){return[a+N*y,u+N*_,c*Math.exp(t*N*f)]};else{var d=Math.sqrt(x),v=(m*m-c*c+r*x)/(2*c*n*d),g=(m*m-c*c-r*x)/(2*m*n*d),k=Math.log(Math.sqrt(v*v+1)-v),S=Math.log(Math.sqrt(g*g+1)-g);f=(S-k)/t,w=function(N){var z=N*f,I=rc(k),A=c/(n*d)*(I*Vv(t*z+k)-Wv(k));return[a+A*y,u+A*_,c*I/rc(t*z+k)]}}return w.duration=f*1e3*t/Math.SQRT2,w}return i.rho=function(l){var o=Math.max(.001,+l),a=o*o,u=a*a;return e(o,a,u)},i}(Math.SQRT2,2,4);var Qv=ii("start","end","cancel","interrupt"),Yv=[],qd=0,ic=1,_s=2,Vi=3,lc=4,ks=5,Hi=6;function Bl(e,t,n,r,i,l){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Xv(e,n,{name:t,index:r,group:i,on:Qv,tween:Yv,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:qd})}function Sa(e,t){var n=ct(e,t);if(n.state>qd)throw new Error("too late; already scheduled");return n}function yt(e,t){var n=ct(e,t);if(n.state>Vi)throw new Error("too late; already running");return n}function ct(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Xv(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=wa(l,0,n.time);function l(c){n.state=ic,n.timer.restart(o,n.delay,n.time),n.delay<=c&&o(c-n.delay)}function o(c){var h,p,m,y;if(n.state!==ic)return u();for(h in r)if(y=r[h],y.name===n.name){if(y.state===Vi)return Hu(o);y.state===lc?(y.state=Hi,y.timer.stop(),y.on.call("interrupt",e,e.__data__,y.index,y.group),delete r[h]):+h<t&&(y.state=Hi,y.timer.stop(),y.on.call("cancel",e,e.__data__,y.index,y.group),delete r[h])}if(Hu(function(){n.state===Vi&&(n.state=lc,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=_s,n.on.call("start",e,e.__data__,n.index,n.group),n.state===_s){for(n.state=Vi,i=new Array(m=n.tween.length),h=0,p=-1;h<m;++h)(y=n.tween[h].value.call(e,e.__data__,n.index,n.group))&&(i[++p]=y);i.length=p+1}}function a(c){for(var h=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(u),n.state=ks,1),p=-1,m=i.length;++p<m;)i[p].call(e,h);n.state===ks&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=Hi,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function Qi(e,t){var n=e.__transition,r,i,l=!0,o;if(n){t=t==null?null:t+"";for(o in n){if((r=n[o]).name!==t){l=!1;continue}i=r.state>_s&&r.state<ks,r.state=Hi,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[o]}l&&delete e.__transition}}function Kv(e){return this.each(function(){Qi(this,e)})}function Gv(e,t){var n,r;return function(){var i=yt(this,e),l=i.tween;if(l!==n){r=n=l;for(var o=0,a=r.length;o<a;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Zv(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var l=yt(this,e),o=l.tween;if(o!==r){i=(r=o).slice();for(var a={name:t,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===t){i[u]=a;break}u===c&&i.push(a)}l.tween=i}}function qv(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=ct(this.node(),n).tween,i=0,l=r.length,o;i<l;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Gv:Zv)(n,e,t))}function Na(e,t,n){var r=e._id;return e.each(function(){var i=yt(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return ct(i,r).value[t]}}function Jd(e,t){var n;return(typeof t=="number"?Ot:t instanceof Jr?tc:(n=Jr(t))?(t=n,tc):$v)(e,t)}function Jv(e){return function(){this.removeAttribute(e)}}function bv(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ey(e,t,n){var r,i=n+"",l;return function(){var o=this.getAttribute(e);return o===i?null:o===r?l:l=t(r=o,n)}}function ty(e,t,n){var r,i=n+"",l;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?l:l=t(r=o,n)}}function ny(e,t,n){var r,i,l;return function(){var o,a=n(this),u;return a==null?void this.removeAttribute(e):(o=this.getAttribute(e),u=a+"",o===u?null:o===r&&u===i?l:(i=u,l=t(r=o,a)))}}function ry(e,t,n){var r,i,l;return function(){var o,a=n(this),u;return a==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),u=a+"",o===u?null:o===r&&u===i?l:(i=u,l=t(r=o,a)))}}function iy(e,t){var n=Fl(e),r=n==="transform"?Bv:Jd;return this.attrTween(e,typeof t=="function"?(n.local?ry:ny)(n,r,Na(this,"attr."+e,t)):t==null?(n.local?bv:Jv)(n):(n.local?ty:ey)(n,r,t))}function ly(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function oy(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function sy(e,t){var n,r;function i(){var l=t.apply(this,arguments);return l!==r&&(n=(r=l)&&oy(e,l)),n}return i._value=t,i}function ay(e,t){var n,r;function i(){var l=t.apply(this,arguments);return l!==r&&(n=(r=l)&&ly(e,l)),n}return i._value=t,i}function uy(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=Fl(e);return this.tween(n,(r.local?sy:ay)(r,t))}function cy(e,t){return function(){Sa(this,e).delay=+t.apply(this,arguments)}}function fy(e,t){return t=+t,function(){Sa(this,e).delay=t}}function dy(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?cy:fy)(t,e)):ct(this.node(),t).delay}function hy(e,t){return function(){yt(this,e).duration=+t.apply(this,arguments)}}function py(e,t){return t=+t,function(){yt(this,e).duration=t}}function my(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?hy:py)(t,e)):ct(this.node(),t).duration}function gy(e,t){if(typeof t!="function")throw new Error;return function(){yt(this,e).ease=t}}function vy(e){var t=this._id;return arguments.length?this.each(gy(t,e)):ct(this.node(),t).ease}function yy(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;yt(this,e).ease=n}}function xy(e){if(typeof e!="function")throw new Error;return this.each(yy(this._id,e))}function wy(e){typeof e!="function"&&(e=Rd(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var l=t[i],o=l.length,a=r[i]=[],u,c=0;c<o;++c)(u=l[c])&&e.call(u,u.__data__,c,l)&&a.push(u);return new Lt(r,this._parents,this._name,this._id)}function _y(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,l=Math.min(r,i),o=new Array(r),a=0;a<l;++a)for(var u=t[a],c=n[a],h=u.length,p=o[a]=new Array(h),m,y=0;y<h;++y)(m=u[y]||c[y])&&(p[y]=m);for(;a<r;++a)o[a]=t[a];return new Lt(o,this._parents,this._name,this._id)}function ky(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function jy(e,t,n){var r,i,l=ky(t)?Sa:yt;return function(){var o=l(this,e),a=o.on;a!==r&&(i=(r=a).copy()).on(t,n),o.on=i}}function Sy(e,t){var n=this._id;return arguments.length<2?ct(this.node(),n).on.on(e):this.each(jy(n,e,t))}function Ny(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Ey(){return this.on("end.remove",Ny(this._id))}function Cy(e){var t=this._name,n=this._id;typeof e!="function"&&(e=_a(e));for(var r=this._groups,i=r.length,l=new Array(i),o=0;o<i;++o)for(var a=r[o],u=a.length,c=l[o]=new Array(u),h,p,m=0;m<u;++m)(h=a[m])&&(p=e.call(h,h.__data__,m,a))&&("__data__"in h&&(p.__data__=h.__data__),c[m]=p,Bl(c[m],t,n,m,c,ct(h,n)));return new Lt(l,this._parents,t,n)}function zy(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ld(e));for(var r=this._groups,i=r.length,l=[],o=[],a=0;a<i;++a)for(var u=r[a],c=u.length,h,p=0;p<c;++p)if(h=u[p]){for(var m=e.call(h,h.__data__,p,u),y,_=ct(h,n),x=0,w=m.length;x<w;++x)(y=m[x])&&Bl(y,t,n,x,m,_);l.push(m),o.push(h)}return new Lt(l,o,t,n)}var Py=li.prototype.constructor;function My(){return new Py(this._groups,this._parents)}function Ty(e,t){var n,r,i;return function(){var l=er(this,e),o=(this.style.removeProperty(e),er(this,e));return l===o?null:l===n&&o===r?i:i=t(n=l,r=o)}}function bd(e){return function(){this.style.removeProperty(e)}}function Ly(e,t,n){var r,i=n+"",l;return function(){var o=er(this,e);return o===i?null:o===r?l:l=t(r=o,n)}}function Ry(e,t,n){var r,i,l;return function(){var o=er(this,e),a=n(this),u=a+"";return a==null&&(u=a=(this.style.removeProperty(e),er(this,e))),o===u?null:o===r&&u===i?l:(i=u,l=t(r=o,a))}}function Iy(e,t){var n,r,i,l="style."+t,o="end."+l,a;return function(){var u=yt(this,e),c=u.on,h=u.value[l]==null?a||(a=bd(t)):void 0;(c!==n||i!==h)&&(r=(n=c).copy()).on(o,i=h),u.on=r}}function Ay(e,t,n){var r=(e+="")=="transform"?Fv:Jd;return t==null?this.styleTween(e,Ty(e,r)).on("end.style."+e,bd(e)):typeof t=="function"?this.styleTween(e,Ry(e,r,Na(this,"style."+e,t))).each(Iy(this._id,e)):this.styleTween(e,Ly(e,r,t),n).on("end.style."+e,null)}function $y(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Dy(e,t,n){var r,i;function l(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&$y(e,o,n)),r}return l._value=t,l}function Oy(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,Dy(e,t,n??""))}function Fy(e){return function(){this.textContent=e}}function By(e){return function(){var t=e(this);this.textContent=t??""}}function Uy(e){return this.tween("text",typeof e=="function"?By(Na(this,"text",e)):Fy(e==null?"":e+""))}function Wy(e){return function(t){this.textContent=e.call(this,t)}}function Vy(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&Wy(i)),t}return r._value=e,r}function Hy(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Vy(e))}function Qy(){for(var e=this._name,t=this._id,n=eh(),r=this._groups,i=r.length,l=0;l<i;++l)for(var o=r[l],a=o.length,u,c=0;c<a;++c)if(u=o[c]){var h=ct(u,t);Bl(u,e,n,c,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Lt(r,this._parents,e,n)}function Yy(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(l,o){var a={value:o},u={value:function(){--i===0&&l()}};n.each(function(){var c=yt(this,r),h=c.on;h!==e&&(t=(e=h).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(u)),c.on=t}),i===0&&l()})}var Xy=0;function Lt(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function eh(){return++Xy}var xt=li.prototype;Lt.prototype={constructor:Lt,select:Cy,selectAll:zy,selectChild:xt.selectChild,selectChildren:xt.selectChildren,filter:wy,merge:_y,selection:My,transition:Qy,call:xt.call,nodes:xt.nodes,node:xt.node,size:xt.size,empty:xt.empty,each:xt.each,on:Sy,attr:iy,attrTween:uy,style:Ay,styleTween:Oy,text:Uy,textTween:Hy,remove:Ey,tween:qv,delay:dy,duration:my,ease:vy,easeVarying:xy,end:Yy,[Symbol.iterator]:xt[Symbol.iterator]};function Ky(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Gy={time:null,delay:0,duration:250,ease:Ky};function Zy(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function qy(e){var t,n;e instanceof Lt?(t=e._id,e=e._name):(t=eh(),(n=Gy).time=xa(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,l=0;l<i;++l)for(var o=r[l],a=o.length,u,c=0;c<a;++c)(u=o[c])&&Bl(u,e,t,c,o,n||Zy(u,t));return new Lt(r,this._parents,e,t)}li.prototype.interrupt=Kv;li.prototype.transition=qy;const Pi=e=>()=>e;function Jy(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Et(e,t,n){this.k=e,this.x=t,this.y=n}Et.prototype={constructor:Et,scale:function(e){return e===1?this:new Et(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Et(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Ea=new Et(1,0,0);Et.prototype;function wo(e){e.stopImmediatePropagation()}function mr(e){e.preventDefault(),e.stopImmediatePropagation()}function by(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function e1(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function oc(){return this.__zoom||Ea}function t1(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function n1(){return navigator.maxTouchPoints||"ontouchstart"in this}function r1(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],l=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>l?(l+o)/2:Math.min(0,l)||Math.max(0,o))}function i1(){var e=by,t=e1,n=r1,r=t1,i=n1,l=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],a=250,u=Hv,c=ii("start","zoom","end"),h,p,m,y=500,_=150,x=0,w=10;function f(j){j.property("__zoom",oc).on("wheel.zoom",z,{passive:!1}).on("mousedown.zoom",I).on("dblclick.zoom",A).filter(i).on("touchstart.zoom",H).on("touchmove.zoom",ee).on("touchend.zoom touchcancel.zoom",Y).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}f.transform=function(j,D,P,$){var E=j.selection?j.selection():j;E.property("__zoom",oc),j!==E?k(j,D,P,$):E.interrupt().each(function(){S(this,arguments).event($).start().zoom(null,typeof D=="function"?D.apply(this,arguments):D).end()})},f.scaleBy=function(j,D,P,$){f.scaleTo(j,function(){var E=this.__zoom.k,T=typeof D=="function"?D.apply(this,arguments):D;return E*T},P,$)},f.scaleTo=function(j,D,P,$){f.transform(j,function(){var E=t.apply(this,arguments),T=this.__zoom,R=P==null?g(E):typeof P=="function"?P.apply(this,arguments):P,B=T.invert(R),U=typeof D=="function"?D.apply(this,arguments):D;return n(v(d(T,U),R,B),E,o)},P,$)},f.translateBy=function(j,D,P,$){f.transform(j,function(){return n(this.__zoom.translate(typeof D=="function"?D.apply(this,arguments):D,typeof P=="function"?P.apply(this,arguments):P),t.apply(this,arguments),o)},null,$)},f.translateTo=function(j,D,P,$,E){f.transform(j,function(){var T=t.apply(this,arguments),R=this.__zoom,B=$==null?g(T):typeof $=="function"?$.apply(this,arguments):$;return n(Ea.translate(B[0],B[1]).scale(R.k).translate(typeof D=="function"?-D.apply(this,arguments):-D,typeof P=="function"?-P.apply(this,arguments):-P),T,o)},$,E)};function d(j,D){return D=Math.max(l[0],Math.min(l[1],D)),D===j.k?j:new Et(D,j.x,j.y)}function v(j,D,P){var $=D[0]-P[0]*j.k,E=D[1]-P[1]*j.k;return $===j.x&&E===j.y?j:new Et(j.k,$,E)}function g(j){return[(+j[0][0]+ +j[1][0])/2,(+j[0][1]+ +j[1][1])/2]}function k(j,D,P,$){j.on("start.zoom",function(){S(this,arguments).event($).start()}).on("interrupt.zoom end.zoom",function(){S(this,arguments).event($).end()}).tween("zoom",function(){var E=this,T=arguments,R=S(E,T).event($),B=t.apply(E,T),U=P==null?g(B):typeof P=="function"?P.apply(E,T):P,ye=Math.max(B[1][0]-B[0][0],B[1][1]-B[0][1]),K=E.__zoom,xe=typeof D=="function"?D.apply(E,T):D,he=u(K.invert(U).concat(ye/K.k),xe.invert(U).concat(ye/xe.k));return function(ae){if(ae===1)ae=xe;else{var C=he(ae),F=ye/C[2];ae=new Et(F,U[0]-C[0]*F,U[1]-C[1]*F)}R.zoom(null,ae)}})}function S(j,D,P){return!P&&j.__zooming||new N(j,D)}function N(j,D){this.that=j,this.args=D,this.active=0,this.sourceEvent=null,this.extent=t.apply(j,D),this.taps=0}N.prototype={event:function(j){return j&&(this.sourceEvent=j),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(j,D){return this.mouse&&j!=="mouse"&&(this.mouse[1]=D.invert(this.mouse[0])),this.touch0&&j!=="touch"&&(this.touch0[1]=D.invert(this.touch0[0])),this.touch1&&j!=="touch"&&(this.touch1[1]=D.invert(this.touch1[0])),this.that.__zoom=D,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(j){var D=ze(this.that).datum();c.call(j,this.that,new Jy(j,{sourceEvent:this.sourceEvent,target:f,transform:this.that.__zoom,dispatch:c}),D)}};function z(j,...D){if(!e.apply(this,arguments))return;var P=S(this,D).event(j),$=this.__zoom,E=Math.max(l[0],Math.min(l[1],$.k*Math.pow(2,r.apply(this,arguments)))),T=kt(j);if(P.wheel)(P.mouse[0][0]!==T[0]||P.mouse[0][1]!==T[1])&&(P.mouse[1]=$.invert(P.mouse[0]=T)),clearTimeout(P.wheel);else{if($.k===E)return;P.mouse=[T,$.invert(T)],Qi(this),P.start()}mr(j),P.wheel=setTimeout(R,_),P.zoom("mouse",n(v(d($,E),P.mouse[0],P.mouse[1]),P.extent,o));function R(){P.wheel=null,P.end()}}function I(j,...D){if(m||!e.apply(this,arguments))return;var P=j.currentTarget,$=S(this,D,!0).event(j),E=ze(j.view).on("mousemove.zoom",U,!0).on("mouseup.zoom",ye,!0),T=kt(j,P),R=j.clientX,B=j.clientY;Vd(j.view),wo(j),$.mouse=[T,this.__zoom.invert(T)],Qi(this),$.start();function U(K){if(mr(K),!$.moved){var xe=K.clientX-R,he=K.clientY-B;$.moved=xe*xe+he*he>x}$.event(K).zoom("mouse",n(v($.that.__zoom,$.mouse[0]=kt(K,P),$.mouse[1]),$.extent,o))}function ye(K){E.on("mousemove.zoom mouseup.zoom",null),Hd(K.view,$.moved),mr(K),$.event(K).end()}}function A(j,...D){if(e.apply(this,arguments)){var P=this.__zoom,$=kt(j.changedTouches?j.changedTouches[0]:j,this),E=P.invert($),T=P.k*(j.shiftKey?.5:2),R=n(v(d(P,T),$,E),t.apply(this,D),o);mr(j),a>0?ze(this).transition().duration(a).call(k,R,$,j):ze(this).call(f.transform,R,$,j)}}function H(j,...D){if(e.apply(this,arguments)){var P=j.touches,$=P.length,E=S(this,D,j.changedTouches.length===$).event(j),T,R,B,U;for(wo(j),R=0;R<$;++R)B=P[R],U=kt(B,this),U=[U,this.__zoom.invert(U),B.identifier],E.touch0?!E.touch1&&E.touch0[2]!==U[2]&&(E.touch1=U,E.taps=0):(E.touch0=U,T=!0,E.taps=1+!!h);h&&(h=clearTimeout(h)),T&&(E.taps<2&&(p=U[0],h=setTimeout(function(){h=null},y)),Qi(this),E.start())}}function ee(j,...D){if(this.__zooming){var P=S(this,D).event(j),$=j.changedTouches,E=$.length,T,R,B,U;for(mr(j),T=0;T<E;++T)R=$[T],B=kt(R,this),P.touch0&&P.touch0[2]===R.identifier?P.touch0[0]=B:P.touch1&&P.touch1[2]===R.identifier&&(P.touch1[0]=B);if(R=P.that.__zoom,P.touch1){var ye=P.touch0[0],K=P.touch0[1],xe=P.touch1[0],he=P.touch1[1],ae=(ae=xe[0]-ye[0])*ae+(ae=xe[1]-ye[1])*ae,C=(C=he[0]-K[0])*C+(C=he[1]-K[1])*C;R=d(R,Math.sqrt(ae/C)),B=[(ye[0]+xe[0])/2,(ye[1]+xe[1])/2],U=[(K[0]+he[0])/2,(K[1]+he[1])/2]}else if(P.touch0)B=P.touch0[0],U=P.touch0[1];else return;P.zoom("touch",n(v(R,B,U),P.extent,o))}}function Y(j,...D){if(this.__zooming){var P=S(this,D).event(j),$=j.changedTouches,E=$.length,T,R;for(wo(j),m&&clearTimeout(m),m=setTimeout(function(){m=null},y),T=0;T<E;++T)R=$[T],P.touch0&&P.touch0[2]===R.identifier?delete P.touch0:P.touch1&&P.touch1[2]===R.identifier&&delete P.touch1;if(P.touch1&&!P.touch0&&(P.touch0=P.touch1,delete P.touch1),P.touch0)P.touch0[1]=this.__zoom.invert(P.touch0[0]);else if(P.end(),P.taps===2&&(R=kt(R,this),Math.hypot(p[0]-R[0],p[1]-R[1])<w)){var B=ze(this).on("dblclick.zoom");B&&B.apply(this,arguments)}}}return f.wheelDelta=function(j){return arguments.length?(r=typeof j=="function"?j:Pi(+j),f):r},f.filter=function(j){return arguments.length?(e=typeof j=="function"?j:Pi(!!j),f):e},f.touchable=function(j){return arguments.length?(i=typeof j=="function"?j:Pi(!!j),f):i},f.extent=function(j){return arguments.length?(t=typeof j=="function"?j:Pi([[+j[0][0],+j[0][1]],[+j[1][0],+j[1][1]]]),f):t},f.scaleExtent=function(j){return arguments.length?(l[0]=+j[0],l[1]=+j[1],f):[l[0],l[1]]},f.translateExtent=function(j){return arguments.length?(o[0][0]=+j[0][0],o[1][0]=+j[1][0],o[0][1]=+j[0][1],o[1][1]=+j[1][1],f):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},f.constrain=function(j){return arguments.length?(n=j,f):n},f.duration=function(j){return arguments.length?(a=+j,f):a},f.interpolate=function(j){return arguments.length?(u=j,f):u},f.on=function(){var j=c.on.apply(c,arguments);return j===c?f:j},f.clickDistance=function(j){return arguments.length?(x=(j=+j)*j,f):Math.sqrt(x)},f.tapDistance=function(j){return arguments.length?(w=+j,f):w},f}const sc={module:"#a5b4fc",api:"#34d399",concept:"#fbbf24",entity:"#f472b6",timeline:"#60a5fa",synthesis:"#c4b5fd",source:"#94a3b8"};function wt(e){return sc[e]??sc.module}const _o=["entity","concept","timeline","synthesis","source"];function l1(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=t+((t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24))>>>0;return t>>>0}function ac(e,t){let n=1,r=0,i=e;for(;i>0;)n/=t,r+=n*(i%t),i=Math.floor(i/t);return r}function o1(){const{projectPath:e,apiOnline:t}=It(),{data:n,loading:r,error:i}=en(t&&e?`/api/graph?path=${encodeURIComponent(e)}`:null,null),[l,o]=L.useState(null),[a,u]=L.useState(null),[c,h]=L.useState(""),[p,m]=L.useState(!1),[y,_]=L.useState(!1),[x,w]=L.useState(new Set(_o)),f=L.useRef(null),d=L.useRef(null),v=L.useRef(null),g=L.useRef(null),k=L.useRef(null),S=L.useRef([]),N=L.useRef([]),z=L.useRef(null),[I,A]=L.useState({w:800,h:600}),[H,ee]=L.useState(0);L.useEffect(()=>{const C=f.current;if(!C)return;const F=new ResizeObserver(()=>{const W=C.getBoundingClientRect();A({w:Math.max(100,W.width),h:Math.max(100,W.height)})});return F.observe(C),()=>F.disconnect()},[]);const Y=L.useMemo(()=>n?n.nodes.filter(C=>!(!x.has(C.category)||p&&C.degree===0||y&&C.in_degree===0)):[],[n,x,p,y]),j=L.useMemo(()=>new Set(Y.map(C=>C.id)),[Y]),D=L.useMemo(()=>n?n.edges.filter(C=>j.has(C.source)&&j.has(C.target)):[],[n,j]),P=L.useMemo(()=>{const C=c.trim().toLowerCase();if(!C)return null;const F=new Set;for(const W of Y)(W.id.toLowerCase().startsWith(C)||W.title.toLowerCase().startsWith(C))&&F.add(W.id);return F},[c,Y]);L.useEffect(()=>{var za;if(Y.length===0){(za=k.current)==null||za.stop(),k.current=null,S.current=[],N.current=[],ee(ue=>ue+1);return}const C=[...Y.map(ue=>ue.id)].sort(),W=l1(C.join("|"))%997,G=I.w,ie=I.h,Ue=Y.map((ue,si)=>{const th=ac(si+W+1,2),nh=ac(si+W+1,3);return{id:ue.id,data:ue,x:th*G,y:nh*ie}}),ir=new Map(Ue.map(ue=>[ue.id,ue])),jn=D.filter(ue=>ir.has(ue.source)&&ir.has(ue.target)).map(ue=>({source:ue.source,target:ue.target,kind:ue.kind}));S.current=Ue,N.current=jn;const tt=Lg(Ue).force("link",vg(jn).id(ue=>ue.id).distance(60).strength(.5)).force("charge",Rg().strength(-120)).force("center",Zm(G/2,ie/2)).force("collide",mg(14)).alphaMin(.01).stop();k.current=tt;const Sn=600;let Ul=0;const Ca=()=>{const ue=performance.now();for(;Ul<Sn&&tt.alpha()>tt.alphaMin()&&(tt.tick(),Ul++,!(performance.now()-ue>16)););ee(si=>si+1),Ul<Sn&&tt.alpha()>tt.alphaMin()?z.current=requestAnimationFrame(Ca):z.current=null};return Ca(),()=>{z.current!=null&&cancelAnimationFrame(z.current),z.current=null,tt.stop()}},[Y.length,D.length,e,I.w,I.h]),L.useEffect(()=>{const C=d.current,F=v.current;if(!C||!F)return;const W=i1().scaleExtent([.25,4]).on("zoom",G=>{ze(F).attr("transform",G.transform.toString())});return g.current=W,ze(C).call(W),()=>{ze(C).on(".zoom",null)}},[]),L.useEffect(()=>{const C=v.current;if(!C)return;const F=new Map(S.current.map(G=>[G.id,G])),W=yv().on("start",(G,ie)=>{var Ue;G.active||(Ue=k.current)==null||Ue.alphaTarget(.3).restart(),ie.fx=ie.x,ie.fy=ie.y}).on("drag",(G,ie)=>{ie.fx=G.x,ie.fy=G.y}).on("end",(G,ie)=>{var Ue;G.active||(Ue=k.current)==null||Ue.alphaTarget(0),ie.fx=null,ie.fy=null});ze(C).selectAll("g.df-graph__node").each(function(){const G=this.dataset.nid,ie=G?F.get(G):void 0;ie&&ze(this).datum(ie).call(W)})},[Y.length,D.length]);const $=a??l,E=L.useMemo(()=>{const C=new Set;if(!$)return C;C.add($);for(const F of D)F.source===$&&C.add(F.target),F.target===$&&C.add(F.source);return C},[$,D]),T=L.useMemo(()=>!l||!n?null:n.nodes.find(C=>C.id===l)??null,[l,n]),R=L.useMemo(()=>!l||!n?[]:n.edges.filter(F=>F.source===l).map(F=>F.target).map(F=>n.nodes.find(W=>W.id===F)).filter(Boolean),[l,n]),B=L.useMemo(()=>!l||!n?[]:n.edges.filter(F=>F.target===l).map(F=>F.source).map(F=>n.nodes.find(W=>W.id===F)).filter(Boolean),[l,n]),U=L.useCallback(()=>{const C=d.current;!C||!g.current||ze(C).call(g.current.transform,Ea)},[]),ye=L.useCallback(()=>{var C;if((C=k.current)==null||C.alpha(1).restart(),z.current==null){const F=()=>{const W=k.current;if(!W)return;const G=performance.now();for(;W.alpha()>W.alphaMin()&&(W.tick(),!(performance.now()-G>16)););ee(ie=>ie+1),W.alpha()>W.alphaMin()?z.current=requestAnimationFrame(F):z.current=null};z.current=requestAnimationFrame(F)}},[]),K=C=>{w(F=>{const W=new Set(F);return W.has(C)?W.delete(C):W.add(C),W})},xe=()=>{l&&(window.location.hash=`#wiki/${l}`,window.dispatchEvent(new CustomEvent("docuflow:openPage",{detail:{id:l}})))},he=!r&&!i&&(!n||n.nodes.length===0||Y.length===0),ae=(n==null?void 0:n.meta.dangling_refs.length)??0;return s.jsxs("div",{className:"df-graph",children:[s.jsxs("div",{className:"df-graph__canvas",ref:f,children:[s.jsx("div",{className:"df-graph__grid"}),s.jsx("div",{className:"df-graph__legend",children:_o.map(C=>s.jsxs("div",{className:"df-graph__legend-row",children:[s.jsx("span",{className:"df-graph__legend-swatch",style:{background:wt(C)}}),s.jsx("span",{children:C})]},C))}),s.jsxs("div",{className:"df-graph__controls",style:{display:"flex",flexDirection:"column",gap:6,alignItems:"flex-end",maxWidth:360},children:[s.jsx("input",{type:"text",placeholder:"Search nodes…",value:c,onChange:C=>h(C.target.value),style:{padding:"6px 10px",fontSize:12,background:"var(--df-surface-2)",color:"var(--df-text-1)",border:"1px solid var(--df-border)",borderRadius:6,width:220}}),s.jsxs("div",{style:{display:"flex",gap:6,flexWrap:"wrap",justifyContent:"flex-end"},children:[s.jsxs("label",{style:{fontSize:11,color:"var(--df-text-3)",display:"flex",alignItems:"center",gap:4},children:[s.jsx("input",{type:"checkbox",checked:p,onChange:C=>m(C.target.checked)}),"Hide isolated"]}),s.jsxs("label",{style:{fontSize:11,color:"var(--df-text-3)",display:"flex",alignItems:"center",gap:4},children:[s.jsx("input",{type:"checkbox",checked:y,onChange:C=>_(C.target.checked)}),"Hide orphans"]})]}),s.jsx("div",{style:{display:"flex",gap:4,flexWrap:"wrap",justifyContent:"flex-end"},children:_o.map(C=>s.jsx("button",{onClick:()=>K(C),style:{fontSize:10,padding:"3px 8px",borderRadius:12,border:`1px solid ${wt(C)}`,background:x.has(C)?wt(C):"transparent",color:x.has(C)?"#0a0a0c":wt(C),cursor:"pointer",textTransform:"capitalize"},children:C},C))}),s.jsxs("div",{style:{display:"flex",gap:6},children:[s.jsx(Me,{onClick:U,children:"Fit"}),s.jsx(Me,{onClick:ye,children:"Restart"})]})]}),he&&s.jsx("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",zIndex:1},children:s.jsx("div",{style:{background:"var(--df-surface-1)",border:"1px solid var(--df-border)",borderRadius:8,padding:"20px 28px",textAlign:"center",color:"var(--df-text-3)",fontSize:13},children:i?s.jsxs(s.Fragment,{children:[s.jsx("div",{style:{marginBottom:6,color:"var(--df-danger, #f87171)"},children:"Failed to load graph"}),s.jsx("div",{style:{fontSize:11},children:i})]}):s.jsxs(s.Fragment,{children:[s.jsx("div",{style:{marginBottom:6,color:"var(--df-text-2)"},children:"No links found in frontmatter"}),s.jsxs("div",{style:{fontSize:11},children:["Run ",s.jsx("code",{children:"docuflow sync"})," to ingest sources, then refresh."]})]})})}),s.jsx("svg",{ref:d,className:"df-graph__svg",width:I.w,height:I.h,"data-tick":H,children:s.jsxs("g",{ref:v,children:[N.current.map((C,F)=>{const W=C.source.id??C.source,G=C.target.id??C.target,ie=C.source.x??0,Ue=C.source.y??0,ir=C.target.x??0,jn=C.target.y??0,tt=$!==null&&!(E.has(W)&&E.has(G)),Sn=C.kind==="both";return s.jsx("line",{x1:ie,y1:Ue,x2:ir,y2:jn,stroke:Sn?"#52525b":"#3f3f46",strokeWidth:$&&E.has(W)&&E.has(G)?2:Sn?1.5:1,opacity:tt?.15:Sn?.7:.5},`${W}->${G}-${F}`)}),S.current.map(C=>{const F=C.data,W=4+Math.min(8,F.degree*.6),G=l===C.id,ie=$!==null&&!E.has(C.id),Ue=P!==null&&!P.has(C.id),jn=F.degree===0?"transparent":wt(F.category),tt=ie?.2:Ue?.3:1;return s.jsxs("g",{className:"df-graph__node","data-nid":C.id,transform:`translate(${C.x??0}, ${C.y??0})`,style:{cursor:"pointer",opacity:tt,transition:"opacity .15s"},onMouseEnter:()=>u(C.id),onMouseLeave:()=>u(null),onClick:()=>o(C.id),children:[s.jsx("title",{children:`${F.title} (${F.category}) · in:${F.in_degree} out:${F.out_degree}`}),s.jsx("circle",{r:W,fill:jn,stroke:wt(F.category),strokeWidth:G?2.5:1.5,strokeDasharray:F.stale?"2,2":void 0}),(G||$===C.id||F.degree>=5)&&s.jsx("text",{y:W+11,textAnchor:"middle",fontSize:"10",fill:G?"#ededee":"#a1a1aa",fontFamily:"var(--df-font-sans)",style:{pointerEvents:"none"},children:F.title.length>24?F.title.slice(0,22)+"…":F.title})]},C.id)})]})}),ae>0&&s.jsxs("div",{style:{position:"absolute",left:16,bottom:16,fontSize:11,color:"var(--df-text-3)",background:"var(--df-surface-2)",border:"1px solid var(--df-border)",borderRadius:12,padding:"4px 10px",zIndex:2},children:[ae," dangling reference",ae===1?"":"s"," — run"," ",s.jsx("code",{children:"docuflow lint"})]})]}),s.jsxs("aside",{className:"df-graph__detail",children:[s.jsx("div",{className:"df-eyebrow",style:{marginBottom:12},children:T?"Selected node":"Graph"}),T?s.jsxs(s.Fragment,{children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:6},children:[s.jsx("span",{style:{width:10,height:10,borderRadius:"50%",background:wt(T.category)}}),s.jsx("span",{style:{fontSize:18,fontWeight:600},children:T.title})]}),s.jsxs("div",{style:{display:"flex",gap:6,marginBottom:6,flexWrap:"wrap"},children:[s.jsx(de,{tone:"accent",children:T.category}),s.jsxs(de,{children:[T.in_degree," in"]}),s.jsxs(de,{children:[T.out_degree," out"]}),T.stale&&s.jsx(de,{tone:"amber",children:"stale"})]}),s.jsxs("div",{style:{fontSize:11,color:"var(--df-text-4)",marginBottom:18},children:["Updated ",new Date(T.updated_at).toLocaleString()]}),s.jsxs("div",{className:"df-eyebrow",style:{marginBottom:8},children:["Outbound (",R.length,")"]}),s.jsxs("div",{style:{marginBottom:18,maxHeight:200,overflowY:"auto"},children:[R.map(C=>s.jsxs("div",{className:"df-graph__connection",onClick:()=>o(C.id),children:[s.jsx("span",{className:"df-graph__connection-dot",style:{background:wt(C.category)}}),s.jsx("span",{children:C.title})]},C.id)),R.length===0&&s.jsx("span",{style:{color:"var(--df-text-4)",fontSize:12},children:"None"})]}),s.jsxs("div",{className:"df-eyebrow",style:{marginBottom:8},children:["Inbound (",B.length,")"]}),s.jsxs("div",{style:{maxHeight:200,overflowY:"auto"},children:[B.map(C=>s.jsxs("div",{className:"df-graph__connection",onClick:()=>o(C.id),children:[s.jsx("span",{className:"df-graph__connection-dot",style:{background:wt(C.category)}}),s.jsx("span",{children:C.title})]},C.id)),B.length===0&&s.jsx("span",{style:{color:"var(--df-text-4)",fontSize:12},children:"None"})]}),s.jsx("div",{style:{marginTop:24,display:"flex",gap:6},children:s.jsx(Me,{icon:"book",variant:"primary",onClick:xe,children:"Open page"})})]}):s.jsx("div",{style:{fontSize:12,color:"var(--df-text-3)",lineHeight:1.6},children:n?s.jsxs(s.Fragment,{children:[s.jsxs("div",{style:{marginBottom:8},children:[s.jsx("strong",{style:{color:"var(--df-text-1)"},children:n.meta.total_pages})," pages,"," ",s.jsx("strong",{style:{color:"var(--df-text-1)"},children:n.meta.total_edges})," edges"]}),s.jsxs("div",{children:[n.meta.orphans," orphans · ",n.meta.isolated," isolated"]}),s.jsx("div",{style:{marginTop:16,color:"var(--df-text-4)"},children:"Click a node to inspect its connections."})]}):s.jsx("div",{style:{color:"var(--df-text-4)"},children:r?"Loading graph…":t?e?i?`Failed to load graph: ${i}`:"No wiki pages yet.":"No project selected.":"API offline."})})]})]})}function s1(){const{projectPath:e,projectInfo:t,apiOnline:n}=It(),{data:r}=en(n&&e?`/api/health?path=${encodeURIComponent(e)}`:null,null),i=(r==null?void 0:r.health_score)??t.health??ce.project.health,l=(r==null?void 0:r.total_pages)??t.pages??ce.project.pages,o=(r==null?void 0:r.issues_found)??[],a=r==null?void 0:r.metrics,u=[{label:"Health score",value:i,suffix:"/100",tone:"green",caption:i>=80?"Good shape":i>=50?"Needs attention":"Needs work"},{label:"Wiki pages",value:l,caption:`${t.entities??0} entities`},{label:"Stale pages",value:(a==null?void 0:a.stale_pages)??ce.lintIssues.filter(p=>p.kind==="stale").length,tone:"amber",caption:"Source updated, page out of date"},{label:"Orphan pages",value:(a==null?void 0:a.orphan_pages)??ce.lintIssues.filter(p=>p.kind==="orphan").length,tone:"red",caption:"No inbound links from any page"}],c=[82,85,84,87,88,86,89,91,90,92,93,91,92,i],h=o.length>0?o.slice(0,10).map(p=>({kind:p.type,sev:p.severity==="high"?"warn":"info",page:p.page_title||p.page_id,age:"—",msg:p.detail})):ce.lintIssues;return s.jsxs("div",{className:"df-health",children:[s.jsx("div",{className:"df-eyebrow",children:"Health"}),s.jsx("h1",{className:"df-h1",style:{marginTop:6},children:"Wiki quality at a glance"}),s.jsx("div",{className:"df-health__grid",children:u.map(p=>s.jsxs("div",{className:"df-stat",children:[s.jsx("div",{className:"df-eyebrow",children:p.label}),s.jsxs("div",{className:`df-stat__num${p.tone?` df-stat__num--${p.tone}`:""}`,children:[p.value,p.suffix&&s.jsx("span",{style:{fontSize:14,color:"var(--df-text-4)",marginLeft:4},children:p.suffix})]}),p.label==="Health score"&&s.jsx("div",{className:"df-stat__bar",children:s.jsx("div",{className:"df-stat__bar-fill",style:{width:`${i}%`}})}),s.jsx("div",{className:"df-stat__caption",children:p.caption})]},p.label))}),s.jsxs("div",{className:"df-trend",children:[s.jsxs("div",{className:"df-trend__head",children:[s.jsx("div",{className:"df-trend__title",children:"Health trend · 14 days"}),s.jsxs(de,{tone:"green",children:["Score: ",i]})]}),s.jsx("div",{className:"df-trend__bars",children:c.map((p,m)=>s.jsx("div",{className:"df-trend__bar",style:{height:`${p}%`,background:m===c.length-1?"var(--df-green)":"var(--df-accent-soft)",animationDelay:`${m*40}ms`}},m))})]}),s.jsx("div",{className:"df-eyebrow",style:{marginBottom:10},children:"Open issues"}),s.jsx("div",{className:"df-card df-card--rows",children:h.length===0?s.jsx("div",{style:{padding:"16px",color:"var(--df-text-4)",textAlign:"center"},children:"No issues found ✓"}):h.map((p,m)=>s.jsxs("div",{className:"df-issues__row",children:[s.jsx(oe,{name:p.sev==="warn"?"alert":"dot",size:14,style:{color:p.sev==="warn"?"var(--df-amber)":"var(--df-text-4)"}}),s.jsx(de,{tone:p.kind==="stale"?"amber":"default",children:p.kind}),s.jsx("span",{className:"df-issues__page",children:p.page}),s.jsx("span",{className:"df-issues__msg",children:p.msg}),s.jsx("span",{className:"df-issues__age",children:p.age}),s.jsx(Me,{variant:"primary",children:"Fix"})]},m))})]})}function a1(e,t,n){const r=t===n-1,i={ingest:"tool",query:"tool",lint:"tool",index:"tool",read:"tool"};return{t:e.t,kind:r?"done":i[e.kind]??"tool",msg:`${e.tool} ${e.target}${e.delta?" → "+e.delta:""}`,files:0}}function u1(){const{projectPath:e,apiOnline:t}=It(),{data:n}=en(t&&e?`/api/activity?path=${encodeURIComponent(e)}`:null,null),{data:r,loading:i}=en(t&&e?`/api/watch/status?path=${encodeURIComponent(e)}`:null,null),[l,o]=L.useState("idle"),[a,u]=L.useState(null),[c,h]=L.useState(""),[p,m]=L.useState(!1);async function y(){if(!(!e||l==="running")){o("running"),u(null),h("");try{const f=await ht("/api/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})});u(f),o("done")}catch(f){h(f.message),o("error")}}}async function _(){if(!(!e||p)){m(!0);try{const f=r!=null&&r.running?"/api/watch/stop":"/api/watch/start";await ht(f,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})}),await new Promise(d=>setTimeout(d,1200))}catch{}finally{m(!1)}}}const x=n&&n.length>0?n.map((f,d)=>a1(f,d,n.length)):ce.syncEvents,w=(r==null?void 0:r.running)??!1;return s.jsxs("div",{className:"df-sync",children:[s.jsxs("div",{className:"df-sync__head",children:[s.jsxs("div",{children:[s.jsx("div",{className:"df-eyebrow",children:"Sync"}),s.jsx("h1",{className:"df-h1",style:{marginTop:6},children:"docuflow watch"}),s.jsx("div",{className:"df-subtle",style:{marginTop:6},children:"Auto-refresh wiki on every commit. Bridged via your AI agent."})]}),s.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[s.jsx(Me,{icon:l==="running"?"sync":"tool",variant:"ghost",onClick:y,disabled:!t||!e||l==="running",children:l==="running"?"Syncing…":"Run Sync"}),t&&s.jsx(Me,{icon:w?"pause":"play",variant:"primary",onClick:_,disabled:i||p,children:p?w?"Stopping…":"Starting…":w?"Stop daemon":"Start daemon"})]})]}),l==="done"&&a&&s.jsxs("div",{className:"df-card",style:{marginBottom:16,display:"flex",gap:16,alignItems:"center",background:"var(--df-surface)"},children:[s.jsx("span",{style:{color:"var(--df-green, #4caf50)",fontSize:18},children:"✓"}),s.jsxs("span",{style:{flex:1},children:["Sync complete — ",s.jsx("strong",{children:a.sources_processed})," source(s),"," ",s.jsx("strong",{children:a.pages_created})," page(s) created,"," ","health score ",s.jsxs("strong",{children:[a.health_score,"/100"]})]}),a.errors.length>0&&s.jsxs(de,{tone:"amber",children:[a.errors.length," error(s)"]}),s.jsx("button",{onClick:()=>o("idle"),style:{background:"none",border:"none",cursor:"pointer",color:"var(--df-text-4)",fontSize:16},children:"✕"})]}),l==="error"&&s.jsxs("div",{className:"df-card",style:{marginBottom:16,display:"flex",gap:12,alignItems:"center",color:"var(--df-red, #f44336)"},children:[s.jsxs("span",{children:["✗ Sync failed: ",c]}),s.jsx("button",{onClick:()=>o("idle"),style:{background:"none",border:"none",cursor:"pointer",color:"var(--df-text-4)",fontSize:16},children:"✕"})]}),s.jsxs("div",{className:"df-sync__cards",children:[s.jsxs("div",{className:"df-sync-card",children:[s.jsx("div",{className:"df-eyebrow",children:"Status"}),s.jsxs("div",{className:"df-sync-card__body",children:[s.jsx("span",{className:`df-status-dot${w?" df-status-dot--live":" df-status-dot--paused"}`}),s.jsx("span",{children:w?"Running":"Stopped"})]}),s.jsx("div",{className:"df-sync-card__sub",children:w?"Watching post-commit & post-merge hooks":"Start daemon to enable auto-sync on commit"})]}),s.jsxs("div",{className:"df-sync-card",children:[s.jsx("div",{className:"df-eyebrow",children:"AI bridge"}),s.jsx("div",{className:"df-sync-card__body",children:(r==null?void 0:r.bridge)??"Claude Code · auto"}),s.jsx("div",{className:"df-sync-card__sub",children:r!=null&&r.bridge?`Active bridge: ${r.bridge}`:"Detected from .claude/"})]}),s.jsxs("div",{className:"df-sync-card",children:[s.jsx("div",{className:"df-eyebrow",children:w?"Uptime":"Last run"}),s.jsx("div",{className:"df-sync-card__body",children:w?(r==null?void 0:r.uptime)??"—":n&&n.length>0?`${n[0].t} ago`:"—"}),s.jsx("div",{className:`df-sync-card__sub${w?" df-sync-card__sub--green":""}`,children:w?`PID ${(r==null?void 0:r.pid)??"—"}`:n&&n.length>0?`${n.length} operations recorded`:"No recent activity"})]})]}),s.jsx("div",{className:"df-eyebrow",style:{marginBottom:12},children:"Recent activity · timeline"}),s.jsx("div",{className:"df-timeline",children:x.map((f,d)=>s.jsxs("div",{className:"df-timeline__row",children:[s.jsx("span",{className:"df-timeline__time",children:f.t}),d<x.length-1&&s.jsx("div",{className:"df-timeline__line"}),s.jsx("span",{className:`df-timeline__dot df-timeline__dot--${f.kind}`}),s.jsx("span",{className:`df-timeline__msg${f.kind==="done"?" df-timeline__msg--done":""}`,children:f.msg}),f.files>0&&s.jsxs(de,{children:[f.files," ",f.files===1?"file":"files"]})]},d))})]})}function c1(){const{setProjectPath:e,apiOnline:t}=It(),[n,r]=L.useState(1),[i,l]=L.useState("code"),[o,a]=L.useState(""),[u,c]=L.useState("idle"),[h,p]=L.useState([]),m=["Domain","Project","Source","Init"];async function y(){if(!(!o.trim()||u==="running")){c("running"),p([]);try{const x=await ht("/api/init",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:o.trim()})});x.ok?(p(x.details??["DocuFlow initialized successfully"]),c("done")):(p([x.error??"Unknown error"]),c("error"))}catch(x){p([x.message]),c("error")}}}function _(){e(o.trim())}return s.jsx("div",{className:"df-onboard",children:s.jsx("div",{className:"df-onboard__center",children:s.jsxs("div",{className:"df-onboard__inner",children:[s.jsx("div",{className:"df-onboard__steps",children:m.map((x,w)=>{const f=w+1,d=f<n?"done":f===n?"active":"idle";return s.jsxs("span",{style:{display:"contents"},children:[s.jsxs("div",{className:`df-onboard__step df-onboard__step--${d}`,children:[s.jsx("span",{className:"df-onboard__step-num",children:d==="done"?s.jsx(oe,{name:"check",size:11}):f}),s.jsx("span",{children:x})]}),w<m.length-1&&s.jsx("div",{className:`df-onboard__step-line${f<n?" df-onboard__step-line--done":""}`})]},x)})}),n===1&&s.jsxs("div",{className:"df-anim-fade",children:[s.jsx("h1",{className:"df-h1",children:"What kind of knowledge will live here?"}),s.jsx("div",{className:"df-onboard__intro",children:"DocuFlow specializes the wiki schema by domain. You can change this later."}),s.jsx("div",{className:"df-domains",children:ce.domains.map(x=>s.jsxs("button",{className:`df-domain${i===x.id?" df-domain--selected":""}`,onClick:()=>l(x.id),children:[s.jsx("div",{className:"df-domain__icon",children:s.jsx(oe,{name:x.icon,size:16})}),s.jsx("div",{className:"df-domain__label",children:x.label}),s.jsx("div",{className:"df-domain__desc",children:x.desc})]},x.id))})]}),n===2&&s.jsxs("div",{className:"df-anim-fade",children:[s.jsx("h1",{className:"df-h1",children:"Project location"}),s.jsxs("div",{className:"df-onboard__intro",children:["Enter the absolute path to your project root. DocuFlow will create"," ",s.jsx("code",{className:"df-code",children:".docuflow/"})," there."]}),s.jsx("div",{className:"df-onboard__fields",children:s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[s.jsx("label",{style:{fontSize:11,color:"var(--df-text-3)",fontWeight:600,letterSpacing:".06em",textTransform:"uppercase"},children:"Project root (absolute path)"}),s.jsx("input",{type:"text",value:o,onChange:x=>a(x.target.value),placeholder:"/absolute/path/to/your/project",style:{fontFamily:"var(--df-font-mono, monospace)",fontSize:13,padding:"8px 12px",background:"var(--df-input-bg, var(--df-bg))",border:"1px solid var(--df-border-2)",borderRadius:"var(--df-r-sm)",color:"var(--df-text)",outline:"none",width:"100%",boxSizing:"border-box"}}),o&&s.jsxs("div",{style:{fontSize:11,color:"var(--df-text-4)",marginTop:2},children:["Wiki output: ",s.jsxs("code",{className:"df-code",children:[o.trim(),"/.docuflow/wiki/"]})]})]})})]}),n===3&&s.jsxs("div",{className:"df-anim-fade",children:[s.jsx("h1",{className:"df-h1",children:"Add your first source"}),s.jsx("div",{className:"df-onboard__intro",children:"Drop a folder, paste a path, or import a repo. We'll ingest non-destructively."}),s.jsxs("div",{className:"df-dropzone",children:[s.jsx(oe,{name:"folder",size:28,style:{color:"var(--df-text-4)"}}),s.jsx("div",{className:"df-dropzone__title",children:"Drop a folder here"}),s.jsx("div",{className:"df-dropzone__sub",children:"…or paste a path · Git repo · zip archive"})]}),s.jsxs("div",{style:{marginTop:14,display:"flex",alignItems:"center",gap:8},children:[s.jsx("span",{className:"df-pill df-pill--accent",children:".docuflow/sources/"}),o?s.jsxs("span",{className:"df-subtle",children:[o.trim(),"/"]}):s.jsx("span",{className:"df-subtle",children:"~/code/your-project/src"})]})]}),n===4&&s.jsxs("div",{className:"df-anim-fade",children:[s.jsxs("h1",{className:"df-h1",children:[u==="idle"?"Ready to initialize":"",u==="running"?"Initializing…":"",u==="done"?"✅ Done!":"",u==="error"?"❌ Initialization failed":""]}),u==="idle"&&s.jsxs("div",{className:"df-onboard__intro",children:["Will create ",s.jsx("code",{className:"df-code",children:".docuflow/"})," at:"," ",s.jsx("code",{className:"df-code",children:o.trim()||"(no path set — go back to step 2)"})]}),(u==="running"||u==="done"||u==="error")&&s.jsxs("div",{className:"df-init-log",children:[h.map((x,w)=>s.jsxs("div",{className:"df-init-log__line",children:[s.jsx("span",{className:`df-init-log__mark--${u==="error"?"run":"ok"}`,children:u==="error"?"✗":"✓"}),s.jsx("span",{children:x})]},w)),u==="running"&&s.jsxs("div",{className:"df-init-log__line",children:[s.jsx("span",{className:"df-init-log__mark--run",children:"→"}),s.jsx("span",{style:{color:"var(--df-text-4)"},children:"Working…"})]})]}),u==="done"&&s.jsxs("div",{style:{marginTop:12,fontSize:13,color:"var(--df-text-3)"},children:["DocuFlow is ready. Click ",s.jsx("strong",{children:"Open project"})," to start exploring your wiki."]})]}),s.jsxs("div",{className:"df-onboard__nav",children:[s.jsx(Me,{variant:"ghost",onClick:()=>{r(x=>Math.max(1,x-1)),c("idle"),p([])},disabled:n===1||u==="running",children:"Back"}),n<4?s.jsx(Me,{variant:"primary",icon:"arrow-right",onClick:()=>r(x=>x+1),disabled:n===2&&!o.trim(),children:"Continue"}):u==="done"?s.jsx(Me,{variant:"primary",icon:"check",onClick:_,children:"Open project"}):s.jsx(Me,{variant:"primary",icon:u==="running"?void 0:"arrow-right",onClick:y,disabled:!o.trim()||!t||u==="running"||u==="error",children:u==="running"?"Initializing…":"Initialize here"})]}),n===4&&!t&&s.jsxs("div",{style:{marginTop:8,fontSize:11,color:"var(--df-text-4)",textAlign:"center"},children:["API is offline — start the DocuFlow server first (",s.jsx("code",{className:"df-code",children:"docuflow start"}),")"]}),n===4&&u==="error"&&s.jsx("div",{style:{marginTop:8,textAlign:"center"},children:s.jsx("button",{onClick:()=>{c("idle"),p([])},style:{background:"none",border:"none",cursor:"pointer",fontSize:12,color:"var(--df-text-4)",textDecoration:"underline"},children:"Try again"})})]})})})}const f1="1.5.1";function d1(){const{projectPath:e}=It();return s.jsxs("div",{className:"df-settings",style:{padding:"24px 24px 24px 0"},children:[s.jsx("div",{className:"df-h1",style:{marginBottom:4,fontSize:24},children:"Settings"}),s.jsxs("p",{className:"df-subtle",children:["DocuFlow Web UI · v",f1]}),s.jsxs("div",{style:{marginTop:24,display:"grid",gridTemplateColumns:"1fr 1fr",gap:12},children:[s.jsxs("div",{className:"df-card",children:[s.jsx("div",{className:"df-eyebrow",children:"API Port"}),s.jsx("div",{style:{fontSize:24,fontWeight:600,marginTop:6},children:window.location.port||"80"})]}),s.jsxs("div",{className:"df-card",children:[s.jsx("div",{className:"df-eyebrow",children:"Wiki Output"}),s.jsxs("div",{className:"df-code",style:{marginTop:4,fontSize:11},children:[e||"","/.docuflow/wiki/"]})]}),s.jsxs("div",{className:"df-card",children:[s.jsx("div",{className:"df-eyebrow",children:"Discovery Root"}),s.jsxs("div",{style:{fontSize:14,marginTop:6,color:"var(--df-text-3)"},children:["Scans: ",s.jsx("span",{style:{color:"var(--df-text-4)"},children:".docuflow/"})," dirs in ~/code ~/dev ~/projects ~/work ~/src ~/Desktop"]})]}),s.jsxs("div",{className:"df-card",children:[s.jsx("div",{className:"df-eyebrow",children:"Schema Domains"}),s.jsx("div",{style:{fontSize:14,marginTop:6,color:"var(--df-text-3)"},children:"Entities · Concepts · Timelines · Syntheses · Specs · Sources"})]})]})]})}function h1(){const[e,t]=L.useState("query");return s.jsx(Tm,{children:s.jsx("div",{className:"df-app",children:s.jsxs("div",{className:"df-app__main",children:[s.jsx(Rm,{view:e,onChange:t}),s.jsxs("div",{className:"df-view",children:[s.jsx(Im,{}),e==="query"&&s.jsx(Dm,{}),e==="wiki"&&s.jsx(Vm,{}),e==="graph"&&s.jsx(o1,{}),e==="health"&&s.jsx(s1,{}),e==="sync"&&s.jsx(u1,{}),e==="onboard"&&s.jsx(c1,{}),e==="settings"&&s.jsx(d1,{})," "]})]})})})}ko.createRoot(document.getElementById("root")).render(s.jsx(xh.StrictMode,{children:s.jsx(h1,{})}));