slothquery 1.0.0__py3-none-any.whl
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.
- app/__init__.py +1 -0
- app/cli.py +26 -0
- app/database.py +24 -0
- app/dist/assets/index-BDTPNUTQ.css +1 -0
- app/dist/assets/index-DKvMVJoY.js +269 -0
- app/dist/assets/logo-RBZv3XvP.png +0 -0
- app/dist/index.html +14 -0
- app/main.py +79 -0
- app/models.py +90 -0
- app/schemas.py +119 -0
- slothquery-1.0.0.dist-info/METADATA +11 -0
- slothquery-1.0.0.dist-info/RECORD +15 -0
- slothquery-1.0.0.dist-info/WHEEL +5 -0
- slothquery-1.0.0.dist-info/entry_points.txt +2 -0
- slothquery-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();var ss=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ip={exports:{}},Bs={},Lp={exports:{}},ue={};/**
|
|
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 ti=Symbol.for("react.element"),Mx=Symbol.for("react.portal"),Bx=Symbol.for("react.fragment"),Ux=Symbol.for("react.strict_mode"),$x=Symbol.for("react.profiler"),Hx=Symbol.for("react.provider"),Vx=Symbol.for("react.context"),qx=Symbol.for("react.forward_ref"),Wx=Symbol.for("react.suspense"),Qx=Symbol.for("react.memo"),Kx=Symbol.for("react.lazy"),lf=Symbol.iterator;function Xx(e){return e===null||typeof e!="object"?null:(e=lf&&e[lf]||e["@@iterator"],typeof e=="function"?e:null)}var zp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Op=Object.assign,Dp={};function Gr(e,t,n){this.props=e,this.context=t,this.refs=Dp,this.updater=n||zp}Gr.prototype.isReactComponent={};Gr.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")};Gr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Fp(){}Fp.prototype=Gr.prototype;function Su(e,t,n){this.props=e,this.context=t,this.refs=Dp,this.updater=n||zp}var Cu=Su.prototype=new Fp;Cu.constructor=Su;Op(Cu,Gr.prototype);Cu.isPureReactComponent=!0;var sf=Array.isArray,Mp=Object.prototype.hasOwnProperty,Nu={current:null},Bp={key:!0,ref:!0,__self:!0,__source:!0};function Up(e,t,n){var r,l={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Mp.call(t,r)&&!Bp.hasOwnProperty(r)&&(l[r]=t[r]);var o=arguments.length-2;if(o===1)l.children=n;else if(1<o){for(var a=Array(o),u=0;u<o;u++)a[u]=arguments[u+2];l.children=a}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)l[r]===void 0&&(l[r]=o[r]);return{$$typeof:ti,type:e,key:i,ref:s,props:l,_owner:Nu.current}}function Yx(e,t){return{$$typeof:ti,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Eu(e){return typeof e=="object"&&e!==null&&e.$$typeof===ti}function Gx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var of=/\/+/g;function vo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Gx(""+e.key):t.toString(36)}function Hi(e,t,n,r,l){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ti:case Mx:s=!0}}if(s)return s=e,l=l(s),e=r===""?"."+vo(s,0):r,sf(l)?(n="",e!=null&&(n=e.replace(of,"$&/")+"/"),Hi(l,t,n,"",function(u){return u})):l!=null&&(Eu(l)&&(l=Yx(l,n+(!l.key||s&&s.key===l.key?"":(""+l.key).replace(of,"$&/")+"/")+e)),t.push(l)),1;if(s=0,r=r===""?".":r+":",sf(e))for(var o=0;o<e.length;o++){i=e[o];var a=r+vo(i,o);s+=Hi(i,t,n,a,l)}else if(a=Xx(e),typeof a=="function")for(e=a.call(e),o=0;!(i=e.next()).done;)i=i.value,a=r+vo(i,o++),s+=Hi(i,t,n,a,l);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function vi(e,t,n){if(e==null)return e;var r=[],l=0;return Hi(e,r,"","",function(i){return t.call(n,i,l++)}),r}function Jx(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 ot={current:null},Vi={transition:null},Zx={ReactCurrentDispatcher:ot,ReactCurrentBatchConfig:Vi,ReactCurrentOwner:Nu};function $p(){throw Error("act(...) is not supported in production builds of React.")}ue.Children={map:vi,forEach:function(e,t,n){vi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return vi(e,function(){t++}),t},toArray:function(e){return vi(e,function(t){return t})||[]},only:function(e){if(!Eu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ue.Component=Gr;ue.Fragment=Bx;ue.Profiler=$x;ue.PureComponent=Su;ue.StrictMode=Ux;ue.Suspense=Wx;ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zx;ue.act=$p;ue.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=Op({},e.props),l=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=Nu.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(a in t)Mp.call(t,a)&&!Bp.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&o!==void 0?o[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){o=Array(a);for(var u=0;u<a;u++)o[u]=arguments[u+2];r.children=o}return{$$typeof:ti,type:e.type,key:l,ref:i,props:r,_owner:s}};ue.createContext=function(e){return e={$$typeof:Vx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Hx,_context:e},e.Consumer=e};ue.createElement=Up;ue.createFactory=function(e){var t=Up.bind(null,e);return t.type=e,t};ue.createRef=function(){return{current:null}};ue.forwardRef=function(e){return{$$typeof:qx,render:e}};ue.isValidElement=Eu;ue.lazy=function(e){return{$$typeof:Kx,_payload:{_status:-1,_result:e},_init:Jx}};ue.memo=function(e,t){return{$$typeof:Qx,type:e,compare:t===void 0?null:t}};ue.startTransition=function(e){var t=Vi.transition;Vi.transition={};try{e()}finally{Vi.transition=t}};ue.unstable_act=$p;ue.useCallback=function(e,t){return ot.current.useCallback(e,t)};ue.useContext=function(e){return ot.current.useContext(e)};ue.useDebugValue=function(){};ue.useDeferredValue=function(e){return ot.current.useDeferredValue(e)};ue.useEffect=function(e,t){return ot.current.useEffect(e,t)};ue.useId=function(){return ot.current.useId()};ue.useImperativeHandle=function(e,t,n){return ot.current.useImperativeHandle(e,t,n)};ue.useInsertionEffect=function(e,t){return ot.current.useInsertionEffect(e,t)};ue.useLayoutEffect=function(e,t){return ot.current.useLayoutEffect(e,t)};ue.useMemo=function(e,t){return ot.current.useMemo(e,t)};ue.useReducer=function(e,t,n){return ot.current.useReducer(e,t,n)};ue.useRef=function(e){return ot.current.useRef(e)};ue.useState=function(e){return ot.current.useState(e)};ue.useSyncExternalStore=function(e,t,n){return ot.current.useSyncExternalStore(e,t,n)};ue.useTransition=function(){return ot.current.useTransition()};ue.version="18.3.1";Lp.exports=ue;var L=Lp.exports;const Hp=bu(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 e0=L,t0=Symbol.for("react.element"),n0=Symbol.for("react.fragment"),r0=Object.prototype.hasOwnProperty,l0=e0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i0={key:!0,ref:!0,__self:!0,__source:!0};function Vp(e,t,n){var r,l={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)r0.call(t,r)&&!i0.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:t0,type:e,key:i,ref:s,props:l,_owner:l0.current}}Bs.Fragment=n0;Bs.jsx=Vp;Bs.jsxs=Vp;Ip.exports=Bs;var c=Ip.exports,da={},qp={exports:{}},Et={},Wp={exports:{}},Qp={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t(P,B){var w=P.length;P.push(B);e:for(;0<w;){var Q=w-1>>>1,re=P[Q];if(0<l(re,B))P[Q]=B,P[w]=re,w=Q;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var B=P[0],w=P.pop();if(w!==B){P[0]=w;e:for(var Q=0,re=P.length,k=re>>>1;Q<k;){var fe=2*(Q+1)-1,Te=P[fe],X=fe+1,V=P[X];if(0>l(Te,w))X<re&&0>l(V,Te)?(P[Q]=V,P[X]=w,Q=X):(P[Q]=Te,P[fe]=w,Q=fe);else if(X<re&&0>l(V,w))P[Q]=V,P[X]=w,Q=X;else break e}}return B}function l(P,B){var w=P.sortIndex-B.sortIndex;return w!==0?w:P.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var a=[],u=[],d=1,f=null,p=3,h=!1,x=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(P){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=P)r(u),B.sortIndex=B.expirationTime,t(a,B);else break;B=n(u)}}function E(P){if(v=!1,y(P),!x)if(n(a)!==null)x=!0,J(T);else{var B=n(u);B!==null&&M(E,B.startTime-P)}}function T(P,B){x=!1,v&&(v=!1,m(I),I=-1),h=!0;var w=p;try{for(y(B),f=n(a);f!==null&&(!(f.expirationTime>B)||P&&!z());){var Q=f.callback;if(typeof Q=="function"){f.callback=null,p=f.priorityLevel;var re=Q(f.expirationTime<=B);B=e.unstable_now(),typeof re=="function"?f.callback=re:f===n(a)&&r(a),y(B)}else r(a);f=n(a)}if(f!==null)var k=!0;else{var fe=n(u);fe!==null&&M(E,fe.startTime-B),k=!1}return k}finally{f=null,p=w,h=!1}}var b=!1,_=null,I=-1,$=5,N=-1;function z(){return!(e.unstable_now()-N<$)}function U(){if(_!==null){var P=e.unstable_now();N=P;var B=!0;try{B=_(!0,P)}finally{B?ne():(b=!1,_=null)}}else b=!1}var ne;if(typeof g=="function")ne=function(){g(U)};else if(typeof MessageChannel<"u"){var R=new MessageChannel,H=R.port2;R.port1.onmessage=U,ne=function(){H.postMessage(null)}}else ne=function(){S(U,0)};function J(P){_=P,b||(b=!0,ne())}function M(P,B){I=S(function(){P(e.unstable_now())},B)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){x||h||(x=!0,J(T))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(P){switch(p){case 1:case 2:case 3:var B=3;break;default:B=p}var w=p;p=B;try{return P()}finally{p=w}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,B){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var w=p;p=P;try{return B()}finally{p=w}},e.unstable_scheduleCallback=function(P,B,w){var Q=e.unstable_now();switch(typeof w=="object"&&w!==null?(w=w.delay,w=typeof w=="number"&&0<w?Q+w:Q):w=Q,P){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=w+re,P={id:d++,callback:B,priorityLevel:P,startTime:w,expirationTime:re,sortIndex:-1},w>Q?(P.sortIndex=w,t(u,P),n(a)===null&&P===n(u)&&(v?(m(I),I=-1):v=!0,M(E,w-Q))):(P.sortIndex=re,t(a,P),x||h||(x=!0,J(T))),P},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(P){var B=p;return function(){var w=p;p=B;try{return P.apply(this,arguments)}finally{p=w}}}})(Qp);Wp.exports=Qp;var s0=Wp.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 o0=L,Nt=s0;function O(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 Kp=new Set,zl={};function cr(e,t){Br(e,t),Br(e+"Capture",t)}function Br(e,t){for(zl[e]=t,e=0;e<t.length;e++)Kp.add(t[e])}var on=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pa=Object.prototype.hasOwnProperty,a0=/^[: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]*$/,af={},uf={};function u0(e){return pa.call(uf,e)?!0:pa.call(af,e)?!1:a0.test(e)?uf[e]=!0:(af[e]=!0,!1)}function c0(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 f0(e,t,n,r){if(t===null||typeof t>"u"||c0(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 at(e,t,n,r,l,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qe[e]=new at(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qe[t]=new at(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qe[e]=new at(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qe[e]=new at(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){qe[e]=new at(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qe[e]=new at(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qe[e]=new at(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qe[e]=new at(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qe[e]=new at(e,5,!1,e.toLowerCase(),null,!1,!1)});var ju=/[\-:]([a-z])/g;function _u(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(ju,_u);qe[t]=new at(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(ju,_u);qe[t]=new at(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(ju,_u);qe[t]=new at(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qe[e]=new at(e,1,!1,e.toLowerCase(),null,!1,!1)});qe.xlinkHref=new at("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qe[e]=new at(e,1,!1,e.toLowerCase(),null,!0,!0)});function Tu(e,t,n,r){var l=qe.hasOwnProperty(t)?qe[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(f0(t,n,l,r)&&(n=null),r||l===null?u0(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var fn=o0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ki=Symbol.for("react.element"),kr=Symbol.for("react.portal"),br=Symbol.for("react.fragment"),Pu=Symbol.for("react.strict_mode"),ha=Symbol.for("react.profiler"),Xp=Symbol.for("react.provider"),Yp=Symbol.for("react.context"),Ru=Symbol.for("react.forward_ref"),ma=Symbol.for("react.suspense"),ga=Symbol.for("react.suspense_list"),Au=Symbol.for("react.memo"),bn=Symbol.for("react.lazy"),Gp=Symbol.for("react.offscreen"),cf=Symbol.iterator;function ol(e){return e===null||typeof e!="object"?null:(e=cf&&e[cf]||e["@@iterator"],typeof e=="function"?e:null)}var _e=Object.assign,ko;function yl(e){if(ko===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ko=t&&t[1]||""}return`
|
|
34
|
+
`+ko+e}var bo=!1;function So(e,t){if(!e||bo)return"";bo=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var l=u.stack.split(`
|
|
35
|
+
`),i=r.stack.split(`
|
|
36
|
+
`),s=l.length-1,o=i.length-1;1<=s&&0<=o&&l[s]!==i[o];)o--;for(;1<=s&&0<=o;s--,o--)if(l[s]!==i[o]){if(s!==1||o!==1)do if(s--,o--,0>o||l[s]!==i[o]){var a=`
|
|
37
|
+
`+l[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=o);break}}}finally{bo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?yl(e):""}function d0(e){switch(e.tag){case 5:return yl(e.type);case 16:return yl("Lazy");case 13:return yl("Suspense");case 19:return yl("SuspenseList");case 0:case 2:case 15:return e=So(e.type,!1),e;case 11:return e=So(e.type.render,!1),e;case 1:return e=So(e.type,!0),e;default:return""}}function xa(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 br:return"Fragment";case kr:return"Portal";case ha:return"Profiler";case Pu:return"StrictMode";case ma:return"Suspense";case ga:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Yp:return(e.displayName||"Context")+".Consumer";case Xp:return(e._context.displayName||"Context")+".Provider";case Ru:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Au:return t=e.displayName||null,t!==null?t:xa(e.type)||"Memo";case bn:t=e._payload,e=e._init;try{return xa(e(t))}catch{}}return null}function p0(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 xa(t);case 8:return t===Pu?"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 On(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function h0(e){var t=Jp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bi(e){e._valueTracker||(e._valueTracker=h0(e))}function Zp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function os(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 ya(e,t){var n=t.checked;return _e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ff(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=On(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 eh(e,t){t=t.checked,t!=null&&Tu(e,"checked",t,!1)}function wa(e,t){eh(e,t);var n=On(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")?va(e,t.type,n):t.hasOwnProperty("defaultValue")&&va(e,t.type,On(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function df(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 va(e,t,n){(t!=="number"||os(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wl=Array.isArray;function Ir(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+On(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function ka(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return _e({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function pf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(wl(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:On(n)}}function th(e,t){var n=On(t.value),r=On(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 hf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function nh(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 ba(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?nh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Si,rh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Si=Si||document.createElement("div"),Si.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Si.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ol(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bl={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},m0=["Webkit","ms","Moz","O"];Object.keys(bl).forEach(function(e){m0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bl[t]=bl[e]})});function lh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||bl.hasOwnProperty(e)&&bl[e]?(""+t).trim():t+"px"}function ih(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=lh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var g0=_e({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 Sa(e,t){if(t){if(g0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Ca(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 Na=null;function Iu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ea=null,Lr=null,zr=null;function mf(e){if(e=li(e)){if(typeof Ea!="function")throw Error(O(280));var t=e.stateNode;t&&(t=qs(t),Ea(e.stateNode,e.type,t))}}function sh(e){Lr?zr?zr.push(e):zr=[e]:Lr=e}function oh(){if(Lr){var e=Lr,t=zr;if(zr=Lr=null,mf(e),t)for(e=0;e<t.length;e++)mf(t[e])}}function ah(e,t){return e(t)}function uh(){}var Co=!1;function ch(e,t,n){if(Co)return e(t,n);Co=!0;try{return ah(e,t,n)}finally{Co=!1,(Lr!==null||zr!==null)&&(uh(),oh())}}function Dl(e,t){var n=e.stateNode;if(n===null)return null;var r=qs(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(O(231,t,typeof n));return n}var ja=!1;if(on)try{var al={};Object.defineProperty(al,"passive",{get:function(){ja=!0}}),window.addEventListener("test",al,al),window.removeEventListener("test",al,al)}catch{ja=!1}function x0(e,t,n,r,l,i,s,o,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Sl=!1,as=null,us=!1,_a=null,y0={onError:function(e){Sl=!0,as=e}};function w0(e,t,n,r,l,i,s,o,a){Sl=!1,as=null,x0.apply(y0,arguments)}function v0(e,t,n,r,l,i,s,o,a){if(w0.apply(this,arguments),Sl){if(Sl){var u=as;Sl=!1,as=null}else throw Error(O(198));us||(us=!0,_a=u)}}function fr(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 fh(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 gf(e){if(fr(e)!==e)throw Error(O(188))}function k0(e){var t=e.alternate;if(!t){if(t=fr(e),t===null)throw Error(O(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return gf(l),e;if(i===r)return gf(l),t;i=i.sibling}throw Error(O(188))}if(n.return!==r.return)n=l,r=i;else{for(var s=!1,o=l.child;o;){if(o===n){s=!0,n=l,r=i;break}if(o===r){s=!0,r=l,n=i;break}o=o.sibling}if(!s){for(o=i.child;o;){if(o===n){s=!0,n=i,r=l;break}if(o===r){s=!0,r=i,n=l;break}o=o.sibling}if(!s)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function dh(e){return e=k0(e),e!==null?ph(e):null}function ph(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ph(e);if(t!==null)return t;e=e.sibling}return null}var hh=Nt.unstable_scheduleCallback,xf=Nt.unstable_cancelCallback,b0=Nt.unstable_shouldYield,S0=Nt.unstable_requestPaint,Ae=Nt.unstable_now,C0=Nt.unstable_getCurrentPriorityLevel,Lu=Nt.unstable_ImmediatePriority,mh=Nt.unstable_UserBlockingPriority,cs=Nt.unstable_NormalPriority,N0=Nt.unstable_LowPriority,gh=Nt.unstable_IdlePriority,Us=null,Gt=null;function E0(e){if(Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(Us,e,void 0,(e.current.flags&128)===128)}catch{}}var Ut=Math.clz32?Math.clz32:T0,j0=Math.log,_0=Math.LN2;function T0(e){return e>>>=0,e===0?32:31-(j0(e)/_0|0)|0}var Ci=64,Ni=4194304;function vl(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 fs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var o=s&~l;o!==0?r=vl(o):(i&=s,i!==0&&(r=vl(i)))}else s=n&~l,s!==0?r=vl(s):i!==0&&(r=vl(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&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-Ut(t),l=1<<n,r|=e[n],t&=~l;return r}function P0(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 R0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Ut(i),o=1<<s,a=l[s];a===-1?(!(o&n)||o&r)&&(l[s]=P0(o,t)):a<=t&&(e.expiredLanes|=o),i&=~o}}function Ta(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function xh(){var e=Ci;return Ci<<=1,!(Ci&4194240)&&(Ci=64),e}function No(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ni(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ut(t),e[t]=n}function A0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-Ut(n),i=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~i}}function zu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ut(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var xe=0;function yh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var wh,Ou,vh,kh,bh,Pa=!1,Ei=[],_n=null,Tn=null,Pn=null,Fl=new Map,Ml=new Map,Cn=[],I0="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 yf(e,t){switch(e){case"focusin":case"focusout":_n=null;break;case"dragenter":case"dragleave":Tn=null;break;case"mouseover":case"mouseout":Pn=null;break;case"pointerover":case"pointerout":Fl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ml.delete(t.pointerId)}}function ul(e,t,n,r,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[l]},t!==null&&(t=li(t),t!==null&&Ou(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function L0(e,t,n,r,l){switch(t){case"focusin":return _n=ul(_n,e,t,n,r,l),!0;case"dragenter":return Tn=ul(Tn,e,t,n,r,l),!0;case"mouseover":return Pn=ul(Pn,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return Fl.set(i,ul(Fl.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,Ml.set(i,ul(Ml.get(i)||null,e,t,n,r,l)),!0}return!1}function Sh(e){var t=Kn(e.target);if(t!==null){var n=fr(t);if(n!==null){if(t=n.tag,t===13){if(t=fh(n),t!==null){e.blockedOn=t,bh(e.priority,function(){vh(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 qi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ra(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Na=r,n.target.dispatchEvent(r),Na=null}else return t=li(n),t!==null&&Ou(t),e.blockedOn=n,!1;t.shift()}return!0}function wf(e,t,n){qi(e)&&n.delete(t)}function z0(){Pa=!1,_n!==null&&qi(_n)&&(_n=null),Tn!==null&&qi(Tn)&&(Tn=null),Pn!==null&&qi(Pn)&&(Pn=null),Fl.forEach(wf),Ml.forEach(wf)}function cl(e,t){e.blockedOn===t&&(e.blockedOn=null,Pa||(Pa=!0,Nt.unstable_scheduleCallback(Nt.unstable_NormalPriority,z0)))}function Bl(e){function t(l){return cl(l,e)}if(0<Ei.length){cl(Ei[0],e);for(var n=1;n<Ei.length;n++){var r=Ei[n];r.blockedOn===e&&(r.blockedOn=null)}}for(_n!==null&&cl(_n,e),Tn!==null&&cl(Tn,e),Pn!==null&&cl(Pn,e),Fl.forEach(t),Ml.forEach(t),n=0;n<Cn.length;n++)r=Cn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Cn.length&&(n=Cn[0],n.blockedOn===null);)Sh(n),n.blockedOn===null&&Cn.shift()}var Or=fn.ReactCurrentBatchConfig,ds=!0;function O0(e,t,n,r){var l=xe,i=Or.transition;Or.transition=null;try{xe=1,Du(e,t,n,r)}finally{xe=l,Or.transition=i}}function D0(e,t,n,r){var l=xe,i=Or.transition;Or.transition=null;try{xe=4,Du(e,t,n,r)}finally{xe=l,Or.transition=i}}function Du(e,t,n,r){if(ds){var l=Ra(e,t,n,r);if(l===null)zo(e,t,r,ps,n),yf(e,r);else if(L0(l,e,t,n,r))r.stopPropagation();else if(yf(e,r),t&4&&-1<I0.indexOf(e)){for(;l!==null;){var i=li(l);if(i!==null&&wh(i),i=Ra(e,t,n,r),i===null&&zo(e,t,r,ps,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else zo(e,t,r,null,n)}}var ps=null;function Ra(e,t,n,r){if(ps=null,e=Iu(r),e=Kn(e),e!==null)if(t=fr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=fh(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 ps=e,null}function Ch(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(C0()){case Lu:return 1;case mh:return 4;case cs:case N0:return 16;case gh:return 536870912;default:return 16}default:return 16}}var En=null,Fu=null,Wi=null;function Nh(){if(Wi)return Wi;var e,t=Fu,n=t.length,r,l="value"in En?En.value:En.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===l[i-r];r++);return Wi=l.slice(e,1<r?1-r:void 0)}function Qi(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 ji(){return!0}function vf(){return!1}function jt(e){function t(n,r,l,i,s){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ji:vf,this.isPropagationStopped=vf,this}return _e(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=ji)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ji)},persist:function(){},isPersistent:ji}),t}var Jr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mu=jt(Jr),ri=_e({},Jr,{view:0,detail:0}),F0=jt(ri),Eo,jo,fl,$s=_e({},ri,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bu,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!==fl&&(fl&&e.type==="mousemove"?(Eo=e.screenX-fl.screenX,jo=e.screenY-fl.screenY):jo=Eo=0,fl=e),Eo)},movementY:function(e){return"movementY"in e?e.movementY:jo}}),kf=jt($s),M0=_e({},$s,{dataTransfer:0}),B0=jt(M0),U0=_e({},ri,{relatedTarget:0}),_o=jt(U0),$0=_e({},Jr,{animationName:0,elapsedTime:0,pseudoElement:0}),H0=jt($0),V0=_e({},Jr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),q0=jt(V0),W0=_e({},Jr,{data:0}),bf=jt(W0),Q0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},K0={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"},X0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Y0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=X0[e])?!!t[e]:!1}function Bu(){return Y0}var G0=_e({},ri,{key:function(e){if(e.key){var t=Q0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?K0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bu,charCode:function(e){return e.type==="keypress"?Qi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),J0=jt(G0),Z0=_e({},$s,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sf=jt(Z0),ey=_e({},ri,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bu}),ty=jt(ey),ny=_e({},Jr,{propertyName:0,elapsedTime:0,pseudoElement:0}),ry=jt(ny),ly=_e({},$s,{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}),iy=jt(ly),sy=[9,13,27,32],Uu=on&&"CompositionEvent"in window,Cl=null;on&&"documentMode"in document&&(Cl=document.documentMode);var oy=on&&"TextEvent"in window&&!Cl,Eh=on&&(!Uu||Cl&&8<Cl&&11>=Cl),Cf=" ",Nf=!1;function jh(e,t){switch(e){case"keyup":return sy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _h(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sr=!1;function ay(e,t){switch(e){case"compositionend":return _h(t);case"keypress":return t.which!==32?null:(Nf=!0,Cf);case"textInput":return e=t.data,e===Cf&&Nf?null:e;default:return null}}function uy(e,t){if(Sr)return e==="compositionend"||!Uu&&jh(e,t)?(e=Nh(),Wi=Fu=En=null,Sr=!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 Eh&&t.locale!=="ko"?null:t.data;default:return null}}var cy={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 Ef(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cy[e.type]:t==="textarea"}function Th(e,t,n,r){sh(r),t=hs(t,"onChange"),0<t.length&&(n=new Mu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Nl=null,Ul=null;function fy(e){Bh(e,0)}function Hs(e){var t=Er(e);if(Zp(t))return e}function dy(e,t){if(e==="change")return t}var Ph=!1;if(on){var To;if(on){var Po="oninput"in document;if(!Po){var jf=document.createElement("div");jf.setAttribute("oninput","return;"),Po=typeof jf.oninput=="function"}To=Po}else To=!1;Ph=To&&(!document.documentMode||9<document.documentMode)}function _f(){Nl&&(Nl.detachEvent("onpropertychange",Rh),Ul=Nl=null)}function Rh(e){if(e.propertyName==="value"&&Hs(Ul)){var t=[];Th(t,Ul,e,Iu(e)),ch(fy,t)}}function py(e,t,n){e==="focusin"?(_f(),Nl=t,Ul=n,Nl.attachEvent("onpropertychange",Rh)):e==="focusout"&&_f()}function hy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hs(Ul)}function my(e,t){if(e==="click")return Hs(t)}function gy(e,t){if(e==="input"||e==="change")return Hs(t)}function xy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Vt=typeof Object.is=="function"?Object.is:xy;function $l(e,t){if(Vt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!pa.call(t,l)||!Vt(e[l],t[l]))return!1}return!0}function Tf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pf(e,t){var n=Tf(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=Tf(n)}}function Ah(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ah(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ih(){for(var e=window,t=os();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=os(e.document)}return t}function $u(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 yy(e){var t=Ih(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ah(n.ownerDocument.documentElement,n)){if(r!==null&&$u(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Pf(n,i);var s=Pf(n,r);l&&s&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var wy=on&&"documentMode"in document&&11>=document.documentMode,Cr=null,Aa=null,El=null,Ia=!1;function Rf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ia||Cr==null||Cr!==os(r)||(r=Cr,"selectionStart"in r&&$u(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}),El&&$l(El,r)||(El=r,r=hs(Aa,"onSelect"),0<r.length&&(t=new Mu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Cr)))}function _i(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Nr={animationend:_i("Animation","AnimationEnd"),animationiteration:_i("Animation","AnimationIteration"),animationstart:_i("Animation","AnimationStart"),transitionend:_i("Transition","TransitionEnd")},Ro={},Lh={};on&&(Lh=document.createElement("div").style,"AnimationEvent"in window||(delete Nr.animationend.animation,delete Nr.animationiteration.animation,delete Nr.animationstart.animation),"TransitionEvent"in window||delete Nr.transitionend.transition);function Vs(e){if(Ro[e])return Ro[e];if(!Nr[e])return e;var t=Nr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Lh)return Ro[e]=t[n];return e}var zh=Vs("animationend"),Oh=Vs("animationiteration"),Dh=Vs("animationstart"),Fh=Vs("transitionend"),Mh=new Map,Af="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 Fn(e,t){Mh.set(e,t),cr(t,[e])}for(var Ao=0;Ao<Af.length;Ao++){var Io=Af[Ao],vy=Io.toLowerCase(),ky=Io[0].toUpperCase()+Io.slice(1);Fn(vy,"on"+ky)}Fn(zh,"onAnimationEnd");Fn(Oh,"onAnimationIteration");Fn(Dh,"onAnimationStart");Fn("dblclick","onDoubleClick");Fn("focusin","onFocus");Fn("focusout","onBlur");Fn(Fh,"onTransitionEnd");Br("onMouseEnter",["mouseout","mouseover"]);Br("onMouseLeave",["mouseout","mouseover"]);Br("onPointerEnter",["pointerout","pointerover"]);Br("onPointerLeave",["pointerout","pointerover"]);cr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));cr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));cr("onBeforeInput",["compositionend","keypress","textInput","paste"]);cr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));cr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));cr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kl="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(" "),by=new Set("cancel close invalid load scroll toggle".split(" ").concat(kl));function If(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,v0(r,t,void 0,e),e.currentTarget=null}function Bh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var o=r[s],a=o.instance,u=o.currentTarget;if(o=o.listener,a!==i&&l.isPropagationStopped())break e;If(l,o,u),i=a}else for(s=0;s<r.length;s++){if(o=r[s],a=o.instance,u=o.currentTarget,o=o.listener,a!==i&&l.isPropagationStopped())break e;If(l,o,u),i=a}}}if(us)throw e=_a,us=!1,_a=null,e}function be(e,t){var n=t[Fa];n===void 0&&(n=t[Fa]=new Set);var r=e+"__bubble";n.has(r)||(Uh(t,e,2,!1),n.add(r))}function Lo(e,t,n){var r=0;t&&(r|=4),Uh(n,e,r,t)}var Ti="_reactListening"+Math.random().toString(36).slice(2);function Hl(e){if(!e[Ti]){e[Ti]=!0,Kp.forEach(function(n){n!=="selectionchange"&&(by.has(n)||Lo(n,!1,e),Lo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ti]||(t[Ti]=!0,Lo("selectionchange",!1,t))}}function Uh(e,t,n,r){switch(Ch(t)){case 1:var l=O0;break;case 4:l=D0;break;default:l=Du}n=l.bind(null,t,n,e),l=void 0,!ja||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function zo(e,t,n,r,l){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var o=r.stateNode.containerInfo;if(o===l||o.nodeType===8&&o.parentNode===l)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===l||a.nodeType===8&&a.parentNode===l))return;s=s.return}for(;o!==null;){if(s=Kn(o),s===null)return;if(a=s.tag,a===5||a===6){r=i=s;continue e}o=o.parentNode}}r=r.return}ch(function(){var u=i,d=Iu(n),f=[];e:{var p=Mh.get(e);if(p!==void 0){var h=Mu,x=e;switch(e){case"keypress":if(Qi(n)===0)break e;case"keydown":case"keyup":h=J0;break;case"focusin":x="focus",h=_o;break;case"focusout":x="blur",h=_o;break;case"beforeblur":case"afterblur":h=_o;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":h=kf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=B0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=ty;break;case zh:case Oh:case Dh:h=H0;break;case Fh:h=ry;break;case"scroll":h=F0;break;case"wheel":h=iy;break;case"copy":case"cut":case"paste":h=q0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Sf}var v=(t&4)!==0,S=!v&&e==="scroll",m=v?p!==null?p+"Capture":null:p;v=[];for(var g=u,y;g!==null;){y=g;var E=y.stateNode;if(y.tag===5&&E!==null&&(y=E,m!==null&&(E=Dl(g,m),E!=null&&v.push(Vl(g,E,y)))),S)break;g=g.return}0<v.length&&(p=new h(p,x,null,n,d),f.push({event:p,listeners:v}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&n!==Na&&(x=n.relatedTarget||n.fromElement)&&(Kn(x)||x[an]))break e;if((h||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,h?(x=n.relatedTarget||n.toElement,h=u,x=x?Kn(x):null,x!==null&&(S=fr(x),x!==S||x.tag!==5&&x.tag!==6)&&(x=null)):(h=null,x=u),h!==x)){if(v=kf,E="onMouseLeave",m="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(v=Sf,E="onPointerLeave",m="onPointerEnter",g="pointer"),S=h==null?p:Er(h),y=x==null?p:Er(x),p=new v(E,g+"leave",h,n,d),p.target=S,p.relatedTarget=y,E=null,Kn(d)===u&&(v=new v(m,g+"enter",x,n,d),v.target=y,v.relatedTarget=S,E=v),S=E,h&&x)t:{for(v=h,m=x,g=0,y=v;y;y=xr(y))g++;for(y=0,E=m;E;E=xr(E))y++;for(;0<g-y;)v=xr(v),g--;for(;0<y-g;)m=xr(m),y--;for(;g--;){if(v===m||m!==null&&v===m.alternate)break t;v=xr(v),m=xr(m)}v=null}else v=null;h!==null&&Lf(f,p,h,v,!1),x!==null&&S!==null&&Lf(f,S,x,v,!0)}}e:{if(p=u?Er(u):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var T=dy;else if(Ef(p))if(Ph)T=gy;else{T=hy;var b=py}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(T=my);if(T&&(T=T(e,u))){Th(f,T,n,d);break e}b&&b(e,p,u),e==="focusout"&&(b=p._wrapperState)&&b.controlled&&p.type==="number"&&va(p,"number",p.value)}switch(b=u?Er(u):window,e){case"focusin":(Ef(b)||b.contentEditable==="true")&&(Cr=b,Aa=u,El=null);break;case"focusout":El=Aa=Cr=null;break;case"mousedown":Ia=!0;break;case"contextmenu":case"mouseup":case"dragend":Ia=!1,Rf(f,n,d);break;case"selectionchange":if(wy)break;case"keydown":case"keyup":Rf(f,n,d)}var _;if(Uu)e:{switch(e){case"compositionstart":var I="onCompositionStart";break e;case"compositionend":I="onCompositionEnd";break e;case"compositionupdate":I="onCompositionUpdate";break e}I=void 0}else Sr?jh(e,n)&&(I="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(I="onCompositionStart");I&&(Eh&&n.locale!=="ko"&&(Sr||I!=="onCompositionStart"?I==="onCompositionEnd"&&Sr&&(_=Nh()):(En=d,Fu="value"in En?En.value:En.textContent,Sr=!0)),b=hs(u,I),0<b.length&&(I=new bf(I,e,null,n,d),f.push({event:I,listeners:b}),_?I.data=_:(_=_h(n),_!==null&&(I.data=_)))),(_=oy?ay(e,n):uy(e,n))&&(u=hs(u,"onBeforeInput"),0<u.length&&(d=new bf("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=_))}Bh(f,t)})}function Vl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function hs(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=Dl(e,n),i!=null&&r.unshift(Vl(e,i,l)),i=Dl(e,t),i!=null&&r.push(Vl(e,i,l))),e=e.return}return r}function xr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Lf(e,t,n,r,l){for(var i=t._reactName,s=[];n!==null&&n!==r;){var o=n,a=o.alternate,u=o.stateNode;if(a!==null&&a===r)break;o.tag===5&&u!==null&&(o=u,l?(a=Dl(n,i),a!=null&&s.unshift(Vl(n,a,o))):l||(a=Dl(n,i),a!=null&&s.push(Vl(n,a,o)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Sy=/\r\n?/g,Cy=/\u0000|\uFFFD/g;function zf(e){return(typeof e=="string"?e:""+e).replace(Sy,`
|
|
38
|
+
`).replace(Cy,"")}function Pi(e,t,n){if(t=zf(t),zf(e)!==t&&n)throw Error(O(425))}function ms(){}var La=null,za=null;function Oa(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 Da=typeof setTimeout=="function"?setTimeout:void 0,Ny=typeof clearTimeout=="function"?clearTimeout:void 0,Of=typeof Promise=="function"?Promise:void 0,Ey=typeof queueMicrotask=="function"?queueMicrotask:typeof Of<"u"?function(e){return Of.resolve(null).then(e).catch(jy)}:Da;function jy(e){setTimeout(function(){throw e})}function Oo(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),Bl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Bl(t)}function Rn(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 Df(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 Zr=Math.random().toString(36).slice(2),Yt="__reactFiber$"+Zr,ql="__reactProps$"+Zr,an="__reactContainer$"+Zr,Fa="__reactEvents$"+Zr,_y="__reactListeners$"+Zr,Ty="__reactHandles$"+Zr;function Kn(e){var t=e[Yt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[an]||n[Yt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Df(e);e!==null;){if(n=e[Yt])return n;e=Df(e)}return t}e=n,n=e.parentNode}return null}function li(e){return e=e[Yt]||e[an],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Er(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function qs(e){return e[ql]||null}var Ma=[],jr=-1;function Mn(e){return{current:e}}function Se(e){0>jr||(e.current=Ma[jr],Ma[jr]=null,jr--)}function ve(e,t){jr++,Ma[jr]=e.current,e.current=t}var Dn={},Ze=Mn(Dn),pt=Mn(!1),nr=Dn;function Ur(e,t){var n=e.type.contextTypes;if(!n)return Dn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ht(e){return e=e.childContextTypes,e!=null}function gs(){Se(pt),Se(Ze)}function Ff(e,t,n){if(Ze.current!==Dn)throw Error(O(168));ve(Ze,t),ve(pt,n)}function $h(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(O(108,p0(e)||"Unknown",l));return _e({},n,r)}function xs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dn,nr=Ze.current,ve(Ze,e),ve(pt,pt.current),!0}function Mf(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=$h(e,t,nr),r.__reactInternalMemoizedMergedChildContext=e,Se(pt),Se(Ze),ve(Ze,e)):Se(pt),ve(pt,n)}var nn=null,Ws=!1,Do=!1;function Hh(e){nn===null?nn=[e]:nn.push(e)}function Py(e){Ws=!0,Hh(e)}function Bn(){if(!Do&&nn!==null){Do=!0;var e=0,t=xe;try{var n=nn;for(xe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}nn=null,Ws=!1}catch(l){throw nn!==null&&(nn=nn.slice(e+1)),hh(Lu,Bn),l}finally{xe=t,Do=!1}}return null}var _r=[],Tr=0,ys=null,ws=0,Tt=[],Pt=0,rr=null,rn=1,ln="";function qn(e,t){_r[Tr++]=ws,_r[Tr++]=ys,ys=e,ws=t}function Vh(e,t,n){Tt[Pt++]=rn,Tt[Pt++]=ln,Tt[Pt++]=rr,rr=e;var r=rn;e=ln;var l=32-Ut(r)-1;r&=~(1<<l),n+=1;var i=32-Ut(t)+l;if(30<i){var s=l-l%5;i=(r&(1<<s)-1).toString(32),r>>=s,l-=s,rn=1<<32-Ut(t)+l|n<<l|r,ln=i+e}else rn=1<<i|n<<l|r,ln=e}function Hu(e){e.return!==null&&(qn(e,1),Vh(e,1,0))}function Vu(e){for(;e===ys;)ys=_r[--Tr],_r[Tr]=null,ws=_r[--Tr],_r[Tr]=null;for(;e===rr;)rr=Tt[--Pt],Tt[Pt]=null,ln=Tt[--Pt],Tt[Pt]=null,rn=Tt[--Pt],Tt[Pt]=null}var St=null,bt=null,Ce=!1,Bt=null;function qh(e,t){var n=At(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 Bf(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,St=e,bt=Rn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,St=e,bt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=rr!==null?{id:rn,overflow:ln}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=At(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,St=e,bt=null,!0):!1;default:return!1}}function Ba(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ua(e){if(Ce){var t=bt;if(t){var n=t;if(!Bf(e,t)){if(Ba(e))throw Error(O(418));t=Rn(n.nextSibling);var r=St;t&&Bf(e,t)?qh(r,n):(e.flags=e.flags&-4097|2,Ce=!1,St=e)}}else{if(Ba(e))throw Error(O(418));e.flags=e.flags&-4097|2,Ce=!1,St=e}}}function Uf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;St=e}function Ri(e){if(e!==St)return!1;if(!Ce)return Uf(e),Ce=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Oa(e.type,e.memoizedProps)),t&&(t=bt)){if(Ba(e))throw Wh(),Error(O(418));for(;t;)qh(e,t),t=Rn(t.nextSibling)}if(Uf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){bt=Rn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}bt=null}}else bt=St?Rn(e.stateNode.nextSibling):null;return!0}function Wh(){for(var e=bt;e;)e=Rn(e.nextSibling)}function $r(){bt=St=null,Ce=!1}function qu(e){Bt===null?Bt=[e]:Bt.push(e)}var Ry=fn.ReactCurrentBatchConfig;function dl(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(O(309));var r=n.stateNode}if(!r)throw Error(O(147,e));var l=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var o=l.refs;s===null?delete o[i]:o[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function Ai(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function $f(e){var t=e._init;return t(e._payload)}function Qh(e){function t(m,g){if(e){var y=m.deletions;y===null?(m.deletions=[g],m.flags|=16):y.push(g)}}function n(m,g){if(!e)return null;for(;g!==null;)t(m,g),g=g.sibling;return null}function r(m,g){for(m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function l(m,g){return m=zn(m,g),m.index=0,m.sibling=null,m}function i(m,g,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<g?(m.flags|=2,g):y):(m.flags|=2,g)):(m.flags|=1048576,g)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function o(m,g,y,E){return g===null||g.tag!==6?(g=Vo(y,m.mode,E),g.return=m,g):(g=l(g,y),g.return=m,g)}function a(m,g,y,E){var T=y.type;return T===br?d(m,g,y.props.children,E,y.key):g!==null&&(g.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===bn&&$f(T)===g.type)?(E=l(g,y.props),E.ref=dl(m,g,y),E.return=m,E):(E=es(y.type,y.key,y.props,null,m.mode,E),E.ref=dl(m,g,y),E.return=m,E)}function u(m,g,y,E){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=qo(y,m.mode,E),g.return=m,g):(g=l(g,y.children||[]),g.return=m,g)}function d(m,g,y,E,T){return g===null||g.tag!==7?(g=Zn(y,m.mode,E,T),g.return=m,g):(g=l(g,y),g.return=m,g)}function f(m,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Vo(""+g,m.mode,y),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case ki:return y=es(g.type,g.key,g.props,null,m.mode,y),y.ref=dl(m,null,g),y.return=m,y;case kr:return g=qo(g,m.mode,y),g.return=m,g;case bn:var E=g._init;return f(m,E(g._payload),y)}if(wl(g)||ol(g))return g=Zn(g,m.mode,y,null),g.return=m,g;Ai(m,g)}return null}function p(m,g,y,E){var T=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return T!==null?null:o(m,g,""+y,E);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ki:return y.key===T?a(m,g,y,E):null;case kr:return y.key===T?u(m,g,y,E):null;case bn:return T=y._init,p(m,g,T(y._payload),E)}if(wl(y)||ol(y))return T!==null?null:d(m,g,y,E,null);Ai(m,y)}return null}function h(m,g,y,E,T){if(typeof E=="string"&&E!==""||typeof E=="number")return m=m.get(y)||null,o(g,m,""+E,T);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case ki:return m=m.get(E.key===null?y:E.key)||null,a(g,m,E,T);case kr:return m=m.get(E.key===null?y:E.key)||null,u(g,m,E,T);case bn:var b=E._init;return h(m,g,y,b(E._payload),T)}if(wl(E)||ol(E))return m=m.get(y)||null,d(g,m,E,T,null);Ai(g,E)}return null}function x(m,g,y,E){for(var T=null,b=null,_=g,I=g=0,$=null;_!==null&&I<y.length;I++){_.index>I?($=_,_=null):$=_.sibling;var N=p(m,_,y[I],E);if(N===null){_===null&&(_=$);break}e&&_&&N.alternate===null&&t(m,_),g=i(N,g,I),b===null?T=N:b.sibling=N,b=N,_=$}if(I===y.length)return n(m,_),Ce&&qn(m,I),T;if(_===null){for(;I<y.length;I++)_=f(m,y[I],E),_!==null&&(g=i(_,g,I),b===null?T=_:b.sibling=_,b=_);return Ce&&qn(m,I),T}for(_=r(m,_);I<y.length;I++)$=h(_,m,I,y[I],E),$!==null&&(e&&$.alternate!==null&&_.delete($.key===null?I:$.key),g=i($,g,I),b===null?T=$:b.sibling=$,b=$);return e&&_.forEach(function(z){return t(m,z)}),Ce&&qn(m,I),T}function v(m,g,y,E){var T=ol(y);if(typeof T!="function")throw Error(O(150));if(y=T.call(y),y==null)throw Error(O(151));for(var b=T=null,_=g,I=g=0,$=null,N=y.next();_!==null&&!N.done;I++,N=y.next()){_.index>I?($=_,_=null):$=_.sibling;var z=p(m,_,N.value,E);if(z===null){_===null&&(_=$);break}e&&_&&z.alternate===null&&t(m,_),g=i(z,g,I),b===null?T=z:b.sibling=z,b=z,_=$}if(N.done)return n(m,_),Ce&&qn(m,I),T;if(_===null){for(;!N.done;I++,N=y.next())N=f(m,N.value,E),N!==null&&(g=i(N,g,I),b===null?T=N:b.sibling=N,b=N);return Ce&&qn(m,I),T}for(_=r(m,_);!N.done;I++,N=y.next())N=h(_,m,I,N.value,E),N!==null&&(e&&N.alternate!==null&&_.delete(N.key===null?I:N.key),g=i(N,g,I),b===null?T=N:b.sibling=N,b=N);return e&&_.forEach(function(U){return t(m,U)}),Ce&&qn(m,I),T}function S(m,g,y,E){if(typeof y=="object"&&y!==null&&y.type===br&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ki:e:{for(var T=y.key,b=g;b!==null;){if(b.key===T){if(T=y.type,T===br){if(b.tag===7){n(m,b.sibling),g=l(b,y.props.children),g.return=m,m=g;break e}}else if(b.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===bn&&$f(T)===b.type){n(m,b.sibling),g=l(b,y.props),g.ref=dl(m,b,y),g.return=m,m=g;break e}n(m,b);break}else t(m,b);b=b.sibling}y.type===br?(g=Zn(y.props.children,m.mode,E,y.key),g.return=m,m=g):(E=es(y.type,y.key,y.props,null,m.mode,E),E.ref=dl(m,g,y),E.return=m,m=E)}return s(m);case kr:e:{for(b=y.key;g!==null;){if(g.key===b)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){n(m,g.sibling),g=l(g,y.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=qo(y,m.mode,E),g.return=m,m=g}return s(m);case bn:return b=y._init,S(m,g,b(y._payload),E)}if(wl(y))return x(m,g,y,E);if(ol(y))return v(m,g,y,E);Ai(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(n(m,g.sibling),g=l(g,y),g.return=m,m=g):(n(m,g),g=Vo(y,m.mode,E),g.return=m,m=g),s(m)):n(m,g)}return S}var Hr=Qh(!0),Kh=Qh(!1),vs=Mn(null),ks=null,Pr=null,Wu=null;function Qu(){Wu=Pr=ks=null}function Ku(e){var t=vs.current;Se(vs),e._currentValue=t}function $a(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 Dr(e,t){ks=e,Wu=Pr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(dt=!0),e.firstContext=null)}function Lt(e){var t=e._currentValue;if(Wu!==e)if(e={context:e,memoizedValue:t,next:null},Pr===null){if(ks===null)throw Error(O(308));Pr=e,ks.dependencies={lanes:0,firstContext:e}}else Pr=Pr.next=e;return t}var Xn=null;function Xu(e){Xn===null?Xn=[e]:Xn.push(e)}function Xh(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Xu(t)):(n.next=l.next,l.next=n),t.interleaved=n,un(e,r)}function un(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 Sn=!1;function Yu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yh(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 sn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function An(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,pe&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,un(e,n)}return l=r.interleaved,l===null?(t.next=t,Xu(r)):(t.next=l.next,l.next=t),r.interleaved=t,un(e,n)}function Ki(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,zu(e,n)}}function Hf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,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 bs(e,t,n,r){var l=e.updateQueue;Sn=!1;var i=l.firstBaseUpdate,s=l.lastBaseUpdate,o=l.shared.pending;if(o!==null){l.shared.pending=null;var a=o,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var d=e.alternate;d!==null&&(d=d.updateQueue,o=d.lastBaseUpdate,o!==s&&(o===null?d.firstBaseUpdate=u:o.next=u,d.lastBaseUpdate=a))}if(i!==null){var f=l.baseState;s=0,d=u=a=null,o=i;do{var p=o.lane,h=o.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var x=e,v=o;switch(p=t,h=n,v.tag){case 1:if(x=v.payload,typeof x=="function"){f=x.call(h,f,p);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=v.payload,p=typeof x=="function"?x.call(h,f,p):x,p==null)break e;f=_e({},f,p);break e;case 2:Sn=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[o]:p.push(o))}else h={eventTime:h,lane:p,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(u=d=h,a=f):d=d.next=h,s|=p;if(o=o.next,o===null){if(o=l.shared.pending,o===null)break;p=o,o=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(d===null&&(a=f),l.baseState=a,l.firstBaseUpdate=u,l.lastBaseUpdate=d,t=l.shared.interleaved,t!==null){l=t;do s|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);ir|=s,e.lanes=s,e.memoizedState=f}}function Vf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(O(191,l));l.call(r)}}}var ii={},Jt=Mn(ii),Wl=Mn(ii),Ql=Mn(ii);function Yn(e){if(e===ii)throw Error(O(174));return e}function Gu(e,t){switch(ve(Ql,t),ve(Wl,e),ve(Jt,ii),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ba(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ba(t,e)}Se(Jt),ve(Jt,t)}function Vr(){Se(Jt),Se(Wl),Se(Ql)}function Gh(e){Yn(Ql.current);var t=Yn(Jt.current),n=ba(t,e.type);t!==n&&(ve(Wl,e),ve(Jt,n))}function Ju(e){Wl.current===e&&(Se(Jt),Se(Wl))}var Ee=Mn(0);function Ss(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 Fo=[];function Zu(){for(var e=0;e<Fo.length;e++)Fo[e]._workInProgressVersionPrimary=null;Fo.length=0}var Xi=fn.ReactCurrentDispatcher,Mo=fn.ReactCurrentBatchConfig,lr=0,je=null,Oe=null,Me=null,Cs=!1,jl=!1,Kl=0,Ay=0;function Qe(){throw Error(O(321))}function ec(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Vt(e[n],t[n]))return!1;return!0}function tc(e,t,n,r,l,i){if(lr=i,je=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xi.current=e===null||e.memoizedState===null?Oy:Dy,e=n(r,l),jl){i=0;do{if(jl=!1,Kl=0,25<=i)throw Error(O(301));i+=1,Me=Oe=null,t.updateQueue=null,Xi.current=Fy,e=n(r,l)}while(jl)}if(Xi.current=Ns,t=Oe!==null&&Oe.next!==null,lr=0,Me=Oe=je=null,Cs=!1,t)throw Error(O(300));return e}function nc(){var e=Kl!==0;return Kl=0,e}function Kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Me===null?je.memoizedState=Me=e:Me=Me.next=e,Me}function zt(){if(Oe===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=Me===null?je.memoizedState:Me.next;if(t!==null)Me=t,Oe=e;else{if(e===null)throw Error(O(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Me===null?je.memoizedState=Me=e:Me=Me.next=e}return Me}function Xl(e,t){return typeof t=="function"?t(e):t}function Bo(e){var t=zt(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=Oe,l=r.baseQueue,i=n.pending;if(i!==null){if(l!==null){var s=l.next;l.next=i.next,i.next=s}r.baseQueue=l=i,n.pending=null}if(l!==null){i=l.next,r=r.baseState;var o=s=null,a=null,u=i;do{var d=u.lane;if((lr&d)===d)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(o=a=f,s=r):a=a.next=f,je.lanes|=d,ir|=d}u=u.next}while(u!==null&&u!==i);a===null?s=r:a.next=o,Vt(r,t.memoizedState)||(dt=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do i=l.lane,je.lanes|=i,ir|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Uo(e){var t=zt(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var s=l=l.next;do i=e(i,s.action),s=s.next;while(s!==l);Vt(i,t.memoizedState)||(dt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Jh(){}function Zh(e,t){var n=je,r=zt(),l=t(),i=!Vt(r.memoizedState,l);if(i&&(r.memoizedState=l,dt=!0),r=r.queue,rc(nm.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Me!==null&&Me.memoizedState.tag&1){if(n.flags|=2048,Yl(9,tm.bind(null,n,r,l,t),void 0,null),Be===null)throw Error(O(349));lr&30||em(n,t,l)}return l}function em(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=je.updateQueue,t===null?(t={lastEffect:null,stores:null},je.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function tm(e,t,n,r){t.value=n,t.getSnapshot=r,rm(t)&&lm(e)}function nm(e,t,n){return n(function(){rm(t)&&lm(e)})}function rm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Vt(e,n)}catch{return!0}}function lm(e){var t=un(e,1);t!==null&&$t(t,e,1,-1)}function qf(e){var t=Kt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xl,lastRenderedState:e},t.queue=e,e=e.dispatch=zy.bind(null,je,e),[t.memoizedState,e]}function Yl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=je.updateQueue,t===null?(t={lastEffect:null,stores:null},je.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 im(){return zt().memoizedState}function Yi(e,t,n,r){var l=Kt();je.flags|=e,l.memoizedState=Yl(1|t,n,void 0,r===void 0?null:r)}function Qs(e,t,n,r){var l=zt();r=r===void 0?null:r;var i=void 0;if(Oe!==null){var s=Oe.memoizedState;if(i=s.destroy,r!==null&&ec(r,s.deps)){l.memoizedState=Yl(t,n,i,r);return}}je.flags|=e,l.memoizedState=Yl(1|t,n,i,r)}function Wf(e,t){return Yi(8390656,8,e,t)}function rc(e,t){return Qs(2048,8,e,t)}function sm(e,t){return Qs(4,2,e,t)}function om(e,t){return Qs(4,4,e,t)}function am(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 um(e,t,n){return n=n!=null?n.concat([e]):null,Qs(4,4,am.bind(null,t,e),n)}function lc(){}function cm(e,t){var n=zt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ec(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function fm(e,t){var n=zt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ec(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function dm(e,t,n){return lr&21?(Vt(n,t)||(n=xh(),je.lanes|=n,ir|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,dt=!0),e.memoizedState=n)}function Iy(e,t){var n=xe;xe=n!==0&&4>n?n:4,e(!0);var r=Mo.transition;Mo.transition={};try{e(!1),t()}finally{xe=n,Mo.transition=r}}function pm(){return zt().memoizedState}function Ly(e,t,n){var r=Ln(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hm(e))mm(t,n);else if(n=Xh(e,t,n,r),n!==null){var l=st();$t(n,e,r,l),gm(n,t,r)}}function zy(e,t,n){var r=Ln(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hm(e))mm(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,o=i(s,n);if(l.hasEagerState=!0,l.eagerState=o,Vt(o,s)){var a=t.interleaved;a===null?(l.next=l,Xu(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=Xh(e,t,l,r),n!==null&&(l=st(),$t(n,e,r,l),gm(n,t,r))}}function hm(e){var t=e.alternate;return e===je||t!==null&&t===je}function mm(e,t){jl=Cs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zu(e,n)}}var Ns={readContext:Lt,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useInsertionEffect:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useSyncExternalStore:Qe,useId:Qe,unstable_isNewReconciler:!1},Oy={readContext:Lt,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:Wf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yi(4194308,4,am.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yi(4,2,e,t)},useMemo:function(e,t){var n=Kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Kt();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=Ly.bind(null,je,e),[r.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:qf,useDebugValue:lc,useDeferredValue:function(e){return Kt().memoizedState=e},useTransition:function(){var e=qf(!1),t=e[0];return e=Iy.bind(null,e[1]),Kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=je,l=Kt();if(Ce){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Be===null)throw Error(O(349));lr&30||em(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Wf(nm.bind(null,r,i,e),[e]),r.flags|=2048,Yl(9,tm.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Kt(),t=Be.identifierPrefix;if(Ce){var n=ln,r=rn;n=(r&~(1<<32-Ut(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Kl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Ay++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Dy={readContext:Lt,useCallback:cm,useContext:Lt,useEffect:rc,useImperativeHandle:um,useInsertionEffect:sm,useLayoutEffect:om,useMemo:fm,useReducer:Bo,useRef:im,useState:function(){return Bo(Xl)},useDebugValue:lc,useDeferredValue:function(e){var t=zt();return dm(t,Oe.memoizedState,e)},useTransition:function(){var e=Bo(Xl)[0],t=zt().memoizedState;return[e,t]},useMutableSource:Jh,useSyncExternalStore:Zh,useId:pm,unstable_isNewReconciler:!1},Fy={readContext:Lt,useCallback:cm,useContext:Lt,useEffect:rc,useImperativeHandle:um,useInsertionEffect:sm,useLayoutEffect:om,useMemo:fm,useReducer:Uo,useRef:im,useState:function(){return Uo(Xl)},useDebugValue:lc,useDeferredValue:function(e){var t=zt();return Oe===null?t.memoizedState=e:dm(t,Oe.memoizedState,e)},useTransition:function(){var e=Uo(Xl)[0],t=zt().memoizedState;return[e,t]},useMutableSource:Jh,useSyncExternalStore:Zh,useId:pm,unstable_isNewReconciler:!1};function Ft(e,t){if(e&&e.defaultProps){t=_e({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ha(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:_e({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ks={isMounted:function(e){return(e=e._reactInternals)?fr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=st(),l=Ln(e),i=sn(r,l);i.payload=t,n!=null&&(i.callback=n),t=An(e,i,l),t!==null&&($t(t,e,l,r),Ki(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=st(),l=Ln(e),i=sn(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=An(e,i,l),t!==null&&($t(t,e,l,r),Ki(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=st(),r=Ln(e),l=sn(n,r);l.tag=2,t!=null&&(l.callback=t),t=An(e,l,r),t!==null&&($t(t,e,r,n),Ki(t,e,r))}};function Qf(e,t,n,r,l,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!$l(n,r)||!$l(l,i):!0}function xm(e,t,n){var r=!1,l=Dn,i=t.contextType;return typeof i=="object"&&i!==null?i=Lt(i):(l=ht(t)?nr:Ze.current,r=t.contextTypes,i=(r=r!=null)?Ur(e,l):Dn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ks,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function Kf(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&&Ks.enqueueReplaceState(t,t.state,null)}function Va(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Yu(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=Lt(i):(i=ht(t)?nr:Ze.current,l.context=Ur(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Ha(e,t,i,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&Ks.enqueueReplaceState(l,l.state,null),bs(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function qr(e,t){try{var n="",r=t;do n+=d0(r),r=r.return;while(r);var l=n}catch(i){l=`
|
|
39
|
+
Error generating stack: `+i.message+`
|
|
40
|
+
`+i.stack}return{value:e,source:t,stack:l,digest:null}}function $o(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function qa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var My=typeof WeakMap=="function"?WeakMap:Map;function ym(e,t,n){n=sn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){js||(js=!0,tu=r),qa(e,t)},n}function wm(e,t,n){n=sn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){qa(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){qa(e,t),typeof r!="function"&&(In===null?In=new Set([this]):In.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Xf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new My;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Zy.bind(null,e,t,n),t.then(e,e))}function Yf(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 Gf(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=sn(-1,1),t.tag=2,An(n,t,1))),n.lanes|=1),e)}var By=fn.ReactCurrentOwner,dt=!1;function lt(e,t,n,r){t.child=e===null?Kh(t,null,n,r):Hr(t,e.child,n,r)}function Jf(e,t,n,r,l){n=n.render;var i=t.ref;return Dr(t,l),r=tc(e,t,n,r,i,l),n=nc(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,cn(e,t,l)):(Ce&&n&&Hu(t),t.flags|=1,lt(e,t,r,l),t.child)}function Zf(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!dc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,vm(e,t,i,r,l)):(e=es(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&l)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:$l,n(s,r)&&e.ref===t.ref)return cn(e,t,l)}return t.flags|=1,e=zn(i,r),e.ref=t.ref,e.return=t,t.child=e}function vm(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if($l(i,r)&&e.ref===t.ref)if(dt=!1,t.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(dt=!0);else return t.lanes=e.lanes,cn(e,t,l)}return Wa(e,t,n,r,l)}function km(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ve(Ar,kt),kt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ve(Ar,kt),kt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ve(Ar,kt),kt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ve(Ar,kt),kt|=r;return lt(e,t,l,n),t.child}function bm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Wa(e,t,n,r,l){var i=ht(n)?nr:Ze.current;return i=Ur(t,i),Dr(t,l),n=tc(e,t,n,r,i,l),r=nc(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,cn(e,t,l)):(Ce&&r&&Hu(t),t.flags|=1,lt(e,t,n,l),t.child)}function ed(e,t,n,r,l){if(ht(n)){var i=!0;xs(t)}else i=!1;if(Dr(t,l),t.stateNode===null)Gi(e,t),xm(t,n,r),Va(t,n,r,l),r=!0;else if(e===null){var s=t.stateNode,o=t.memoizedProps;s.props=o;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Lt(u):(u=ht(n)?nr:Ze.current,u=Ur(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==r||a!==u)&&Kf(t,s,r,u),Sn=!1;var p=t.memoizedState;s.state=p,bs(t,r,s,l),a=t.memoizedState,o!==r||p!==a||pt.current||Sn?(typeof d=="function"&&(Ha(t,n,d,r),a=t.memoizedState),(o=Sn||Qf(t,n,o,r,p,a,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=o):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Yh(e,t),o=t.memoizedProps,u=t.type===t.elementType?o:Ft(t.type,o),s.props=u,f=t.pendingProps,p=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Lt(a):(a=ht(n)?nr:Ze.current,a=Ur(t,a));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==f||p!==a)&&Kf(t,s,r,a),Sn=!1,p=t.memoizedState,s.state=p,bs(t,r,s,l);var x=t.memoizedState;o!==f||p!==x||pt.current||Sn?(typeof h=="function"&&(Ha(t,n,h,r),x=t.memoizedState),(u=Sn||Qf(t,n,u,r,p,x,a)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,x,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,x,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),s.props=r,s.state=x,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Qa(e,t,n,r,i,l)}function Qa(e,t,n,r,l,i){bm(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return l&&Mf(t,n,!1),cn(e,t,i);r=t.stateNode,By.current=t;var o=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Hr(t,e.child,null,i),t.child=Hr(t,null,o,i)):lt(e,t,o,i),t.memoizedState=r.state,l&&Mf(t,n,!0),t.child}function Sm(e){var t=e.stateNode;t.pendingContext?Ff(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ff(e,t.context,!1),Gu(e,t.containerInfo)}function td(e,t,n,r,l){return $r(),qu(l),t.flags|=256,lt(e,t,n,r),t.child}var Ka={dehydrated:null,treeContext:null,retryLane:0};function Xa(e){return{baseLanes:e,cachePool:null,transitions:null}}function Cm(e,t,n){var r=t.pendingProps,l=Ee.current,i=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(l&2)!==0),o?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),ve(Ee,l&1),e===null)return Ua(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Gs(s,r,0,null),e=Zn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Xa(n),t.memoizedState=Ka,e):ic(t,s));if(l=e.memoizedState,l!==null&&(o=l.dehydrated,o!==null))return Uy(e,t,s,r,o,l,n);if(i){i=r.fallback,s=t.mode,l=e.child,o=l.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=zn(l,a),r.subtreeFlags=l.subtreeFlags&14680064),o!==null?i=zn(o,i):(i=Zn(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?Xa(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Ka,r}return i=e.child,e=i.sibling,r=zn(i,{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 ic(e,t){return t=Gs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ii(e,t,n,r){return r!==null&&qu(r),Hr(t,e.child,null,n),e=ic(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Uy(e,t,n,r,l,i,s){if(n)return t.flags&256?(t.flags&=-257,r=$o(Error(O(422))),Ii(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=Gs({mode:"visible",children:r.children},l,0,null),i=Zn(i,l,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Hr(t,e.child,null,s),t.child.memoizedState=Xa(s),t.memoizedState=Ka,i);if(!(t.mode&1))return Ii(e,t,s,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var o=r.dgst;return r=o,i=Error(O(419)),r=$o(i,r,void 0),Ii(e,t,s,r)}if(o=(s&e.childLanes)!==0,dt||o){if(r=Be,r!==null){switch(s&-s){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|s)?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,un(e,l),$t(r,e,l,-1))}return fc(),r=$o(Error(O(421))),Ii(e,t,s,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=e1.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,bt=Rn(l.nextSibling),St=t,Ce=!0,Bt=null,e!==null&&(Tt[Pt++]=rn,Tt[Pt++]=ln,Tt[Pt++]=rr,rn=e.id,ln=e.overflow,rr=t),t=ic(t,r.children),t.flags|=4096,t)}function nd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),$a(e.return,t,n)}function Ho(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function Nm(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(lt(e,t,r.children,n),r=Ee.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&&nd(e,n,t);else if(e.tag===19)nd(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(ve(Ee,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Ss(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Ho(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Ss(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Ho(t,!0,n,null,i);break;case"together":Ho(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function cn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ir|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,n=zn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=zn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function $y(e,t,n){switch(t.tag){case 3:Sm(t),$r();break;case 5:Gh(t);break;case 1:ht(t.type)&&xs(t);break;case 4:Gu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;ve(vs,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ve(Ee,Ee.current&1),t.flags|=128,null):n&t.child.childLanes?Cm(e,t,n):(ve(Ee,Ee.current&1),e=cn(e,t,n),e!==null?e.sibling:null);ve(Ee,Ee.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Nm(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),ve(Ee,Ee.current),r)break;return null;case 22:case 23:return t.lanes=0,km(e,t,n)}return cn(e,t,n)}var Em,Ya,jm,_m;Em=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}};Ya=function(){};jm=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Yn(Jt.current);var i=null;switch(n){case"input":l=ya(e,l),r=ya(e,r),i=[];break;case"select":l=_e({},l,{value:void 0}),r=_e({},r,{value:void 0}),i=[];break;case"textarea":l=ka(e,l),r=ka(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ms)}Sa(n,r);var s;n=null;for(u in l)if(!r.hasOwnProperty(u)&&l.hasOwnProperty(u)&&l[u]!=null)if(u==="style"){var o=l[u];for(s in o)o.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(zl.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(o=l!=null?l[u]:void 0,r.hasOwnProperty(u)&&a!==o&&(a!=null||o!=null))if(u==="style")if(o){for(s in o)!o.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&o[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,o=o?o.__html:void 0,a!=null&&o!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(zl.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&be("scroll",e),i||o===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};_m=function(e,t,n,r){n!==r&&(t.flags|=4)};function pl(e,t){if(!Ce)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 Ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Hy(e,t,n){var r=t.pendingProps;switch(Vu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return ht(t.type)&&gs(),Ke(t),null;case 3:return r=t.stateNode,Vr(),Se(pt),Se(Ze),Zu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ri(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Bt!==null&&(lu(Bt),Bt=null))),Ya(e,t),Ke(t),null;case 5:Ju(t);var l=Yn(Ql.current);if(n=t.type,e!==null&&t.stateNode!=null)jm(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return Ke(t),null}if(e=Yn(Jt.current),Ri(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Yt]=t,r[ql]=i,e=(t.mode&1)!==0,n){case"dialog":be("cancel",r),be("close",r);break;case"iframe":case"object":case"embed":be("load",r);break;case"video":case"audio":for(l=0;l<kl.length;l++)be(kl[l],r);break;case"source":be("error",r);break;case"img":case"image":case"link":be("error",r),be("load",r);break;case"details":be("toggle",r);break;case"input":ff(r,i),be("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},be("invalid",r);break;case"textarea":pf(r,i),be("invalid",r)}Sa(n,i),l=null;for(var s in i)if(i.hasOwnProperty(s)){var o=i[s];s==="children"?typeof o=="string"?r.textContent!==o&&(i.suppressHydrationWarning!==!0&&Pi(r.textContent,o,e),l=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(i.suppressHydrationWarning!==!0&&Pi(r.textContent,o,e),l=["children",""+o]):zl.hasOwnProperty(s)&&o!=null&&s==="onScroll"&&be("scroll",r)}switch(n){case"input":bi(r),df(r,i,!0);break;case"textarea":bi(r),hf(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=ms)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=nh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Yt]=t,e[ql]=r,Em(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ca(n,r),n){case"dialog":be("cancel",e),be("close",e),l=r;break;case"iframe":case"object":case"embed":be("load",e),l=r;break;case"video":case"audio":for(l=0;l<kl.length;l++)be(kl[l],e);l=r;break;case"source":be("error",e),l=r;break;case"img":case"image":case"link":be("error",e),be("load",e),l=r;break;case"details":be("toggle",e),l=r;break;case"input":ff(e,r),l=ya(e,r),be("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=_e({},r,{value:void 0}),be("invalid",e);break;case"textarea":pf(e,r),l=ka(e,r),be("invalid",e);break;default:l=r}Sa(n,l),o=l;for(i in o)if(o.hasOwnProperty(i)){var a=o[i];i==="style"?ih(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&rh(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Ol(e,a):typeof a=="number"&&Ol(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(zl.hasOwnProperty(i)?a!=null&&i==="onScroll"&&be("scroll",e):a!=null&&Tu(e,i,a,s))}switch(n){case"input":bi(e),df(e,r,!1);break;case"textarea":bi(e),hf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+On(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Ir(e,!!r.multiple,i,!1):r.defaultValue!=null&&Ir(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=ms)}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 Ke(t),null;case 6:if(e&&t.stateNode!=null)_m(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=Yn(Ql.current),Yn(Jt.current),Ri(t)){if(r=t.stateNode,n=t.memoizedProps,r[Yt]=t,(i=r.nodeValue!==n)&&(e=St,e!==null))switch(e.tag){case 3:Pi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Pi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Yt]=t,t.stateNode=r}return Ke(t),null;case 13:if(Se(Ee),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ce&&bt!==null&&t.mode&1&&!(t.flags&128))Wh(),$r(),t.flags|=98560,i=!1;else if(i=Ri(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(O(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(O(317));i[Yt]=t}else $r(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ke(t),i=!1}else Bt!==null&&(lu(Bt),Bt=null),i=!0;if(!i)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||Ee.current&1?De===0&&(De=3):fc())),t.updateQueue!==null&&(t.flags|=4),Ke(t),null);case 4:return Vr(),Ya(e,t),e===null&&Hl(t.stateNode.containerInfo),Ke(t),null;case 10:return Ku(t.type._context),Ke(t),null;case 17:return ht(t.type)&&gs(),Ke(t),null;case 19:if(Se(Ee),i=t.memoizedState,i===null)return Ke(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)pl(i,!1);else{if(De!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Ss(e),s!==null){for(t.flags|=128,pl(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ve(Ee,Ee.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ae()>Wr&&(t.flags|=128,r=!0,pl(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ss(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),pl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ce)return Ke(t),null}else 2*Ae()-i.renderingStartTime>Wr&&n!==1073741824&&(t.flags|=128,r=!0,pl(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ae(),t.sibling=null,n=Ee.current,ve(Ee,r?n&1|2:n&1),t):(Ke(t),null);case 22:case 23:return cc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?kt&1073741824&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function Vy(e,t){switch(Vu(t),t.tag){case 1:return ht(t.type)&&gs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vr(),Se(pt),Se(Ze),Zu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ju(t),null;case 13:if(Se(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));$r()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(Ee),null;case 4:return Vr(),null;case 10:return Ku(t.type._context),null;case 22:case 23:return cc(),null;case 24:return null;default:return null}}var Li=!1,Ye=!1,qy=typeof WeakSet=="function"?WeakSet:Set,K=null;function Rr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function Ga(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var rd=!1;function Wy(e,t){if(La=ds,e=Ih(),$u(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,o=-1,a=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||l!==0&&f.nodeType!==3||(o=s+l),f!==i||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===l&&(o=s),p===i&&++d===r&&(a=s),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=o===-1||a===-1?null:{start:o,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(za={focusedElem:e,selectionRange:n},ds=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var v=x.memoizedProps,S=x.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ft(t.type,v),S);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(E){Pe(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return x=rd,rd=!1,x}function _l(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Ga(t,n,i)}l=l.next}while(l!==r)}}function Xs(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 Ja(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 Tm(e){var t=e.alternate;t!==null&&(e.alternate=null,Tm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yt],delete t[ql],delete t[Fa],delete t[_y],delete t[Ty])),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 Pm(e){return e.tag===5||e.tag===3||e.tag===4}function ld(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pm(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 Za(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=ms));else if(r!==4&&(e=e.child,e!==null))for(Za(e,t,n),e=e.sibling;e!==null;)Za(e,t,n),e=e.sibling}function eu(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(eu(e,t,n),e=e.sibling;e!==null;)eu(e,t,n),e=e.sibling}var $e=null,Mt=!1;function vn(e,t,n){for(n=n.child;n!==null;)Rm(e,t,n),n=n.sibling}function Rm(e,t,n){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(Us,n)}catch{}switch(n.tag){case 5:Ye||Rr(n,t);case 6:var r=$e,l=Mt;$e=null,vn(e,t,n),$e=r,Mt=l,$e!==null&&(Mt?(e=$e,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):$e.removeChild(n.stateNode));break;case 18:$e!==null&&(Mt?(e=$e,n=n.stateNode,e.nodeType===8?Oo(e.parentNode,n):e.nodeType===1&&Oo(e,n),Bl(e)):Oo($e,n.stateNode));break;case 4:r=$e,l=Mt,$e=n.stateNode.containerInfo,Mt=!0,vn(e,t,n),$e=r,Mt=l;break;case 0:case 11:case 14:case 15:if(!Ye&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Ga(n,t,s),l=l.next}while(l!==r)}vn(e,t,n);break;case 1:if(!Ye&&(Rr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){Pe(n,t,o)}vn(e,t,n);break;case 21:vn(e,t,n);break;case 22:n.mode&1?(Ye=(r=Ye)||n.memoizedState!==null,vn(e,t,n),Ye=r):vn(e,t,n);break;default:vn(e,t,n)}}function id(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new qy),t.forEach(function(r){var l=t1.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var i=e,s=t,o=s;e:for(;o!==null;){switch(o.tag){case 5:$e=o.stateNode,Mt=!1;break e;case 3:$e=o.stateNode.containerInfo,Mt=!0;break e;case 4:$e=o.stateNode.containerInfo,Mt=!0;break e}o=o.return}if($e===null)throw Error(O(160));Rm(i,s,l),$e=null,Mt=!1;var a=l.alternate;a!==null&&(a.return=null),l.return=null}catch(u){Pe(l,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Am(t,e),t=t.sibling}function Am(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Dt(t,e),Qt(e),r&4){try{_l(3,e,e.return),Xs(3,e)}catch(v){Pe(e,e.return,v)}try{_l(5,e,e.return)}catch(v){Pe(e,e.return,v)}}break;case 1:Dt(t,e),Qt(e),r&512&&n!==null&&Rr(n,n.return);break;case 5:if(Dt(t,e),Qt(e),r&512&&n!==null&&Rr(n,n.return),e.flags&32){var l=e.stateNode;try{Ol(l,"")}catch(v){Pe(e,e.return,v)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,o=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{o==="input"&&i.type==="radio"&&i.name!=null&&eh(l,i),Ca(o,s);var u=Ca(o,i);for(s=0;s<a.length;s+=2){var d=a[s],f=a[s+1];d==="style"?ih(l,f):d==="dangerouslySetInnerHTML"?rh(l,f):d==="children"?Ol(l,f):Tu(l,d,f,u)}switch(o){case"input":wa(l,i);break;case"textarea":th(l,i);break;case"select":var p=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?Ir(l,!!i.multiple,h,!1):p!==!!i.multiple&&(i.defaultValue!=null?Ir(l,!!i.multiple,i.defaultValue,!0):Ir(l,!!i.multiple,i.multiple?[]:"",!1))}l[ql]=i}catch(v){Pe(e,e.return,v)}}break;case 6:if(Dt(t,e),Qt(e),r&4){if(e.stateNode===null)throw Error(O(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(v){Pe(e,e.return,v)}}break;case 3:if(Dt(t,e),Qt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Bl(t.containerInfo)}catch(v){Pe(e,e.return,v)}break;case 4:Dt(t,e),Qt(e);break;case 13:Dt(t,e),Qt(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(ac=Ae())),r&4&&id(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Ye=(u=Ye)||d,Dt(t,e),Ye=u):Dt(t,e),Qt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(K=e,d=e.child;d!==null;){for(f=K=d;K!==null;){switch(p=K,h=p.child,p.tag){case 0:case 11:case 14:case 15:_l(4,p,p.return);break;case 1:Rr(p,p.return);var x=p.stateNode;if(typeof x.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(v){Pe(r,n,v)}}break;case 5:Rr(p,p.return);break;case 22:if(p.memoizedState!==null){od(f);continue}}h!==null?(h.return=p,K=h):od(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{l=f.stateNode,u?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(o=f.stateNode,a=f.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,o.style.display=lh("display",s))}catch(v){Pe(e,e.return,v)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){Pe(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Dt(t,e),Qt(e),r&4&&id(e);break;case 21:break;default:Dt(t,e),Qt(e)}}function Qt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Pm(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Ol(l,""),r.flags&=-33);var i=ld(e);eu(e,i,l);break;case 3:case 4:var s=r.stateNode.containerInfo,o=ld(e);Za(e,o,s);break;default:throw Error(O(161))}}catch(a){Pe(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Qy(e,t,n){K=e,Im(e)}function Im(e,t,n){for(var r=(e.mode&1)!==0;K!==null;){var l=K,i=l.child;if(l.tag===22&&r){var s=l.memoizedState!==null||Li;if(!s){var o=l.alternate,a=o!==null&&o.memoizedState!==null||Ye;o=Li;var u=Ye;if(Li=s,(Ye=a)&&!u)for(K=l;K!==null;)s=K,a=s.child,s.tag===22&&s.memoizedState!==null?ad(l):a!==null?(a.return=s,K=a):ad(l);for(;i!==null;)K=i,Im(i),i=i.sibling;K=l,Li=o,Ye=u}sd(e)}else l.subtreeFlags&8772&&i!==null?(i.return=l,K=i):sd(e)}}function sd(e){for(;K!==null;){var t=K;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ye||Xs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ye)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Ft(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Vf(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Vf(t,s,n)}break;case 5:var o=t.stateNode;if(n===null&&t.flags&4){n=o;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Bl(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}Ye||t.flags&512&&Ja(t)}catch(p){Pe(t,t.return,p)}}if(t===e){K=null;break}if(n=t.sibling,n!==null){n.return=t.return,K=n;break}K=t.return}}function od(e){for(;K!==null;){var t=K;if(t===e){K=null;break}var n=t.sibling;if(n!==null){n.return=t.return,K=n;break}K=t.return}}function ad(e){for(;K!==null;){var t=K;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Xs(4,t)}catch(a){Pe(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(a){Pe(t,l,a)}}var i=t.return;try{Ja(t)}catch(a){Pe(t,i,a)}break;case 5:var s=t.return;try{Ja(t)}catch(a){Pe(t,s,a)}}}catch(a){Pe(t,t.return,a)}if(t===e){K=null;break}var o=t.sibling;if(o!==null){o.return=t.return,K=o;break}K=t.return}}var Ky=Math.ceil,Es=fn.ReactCurrentDispatcher,sc=fn.ReactCurrentOwner,It=fn.ReactCurrentBatchConfig,pe=0,Be=null,Le=null,Ve=0,kt=0,Ar=Mn(0),De=0,Gl=null,ir=0,Ys=0,oc=0,Tl=null,ft=null,ac=0,Wr=1/0,tn=null,js=!1,tu=null,In=null,zi=!1,jn=null,_s=0,Pl=0,nu=null,Ji=-1,Zi=0;function st(){return pe&6?Ae():Ji!==-1?Ji:Ji=Ae()}function Ln(e){return e.mode&1?pe&2&&Ve!==0?Ve&-Ve:Ry.transition!==null?(Zi===0&&(Zi=xh()),Zi):(e=xe,e!==0||(e=window.event,e=e===void 0?16:Ch(e.type)),e):1}function $t(e,t,n,r){if(50<Pl)throw Pl=0,nu=null,Error(O(185));ni(e,n,r),(!(pe&2)||e!==Be)&&(e===Be&&(!(pe&2)&&(Ys|=n),De===4&&Nn(e,Ve)),mt(e,r),n===1&&pe===0&&!(t.mode&1)&&(Wr=Ae()+500,Ws&&Bn()))}function mt(e,t){var n=e.callbackNode;R0(e,t);var r=fs(e,e===Be?Ve:0);if(r===0)n!==null&&xf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&xf(n),t===1)e.tag===0?Py(ud.bind(null,e)):Hh(ud.bind(null,e)),Ey(function(){!(pe&6)&&Bn()}),n=null;else{switch(yh(r)){case 1:n=Lu;break;case 4:n=mh;break;case 16:n=cs;break;case 536870912:n=gh;break;default:n=cs}n=Um(n,Lm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Lm(e,t){if(Ji=-1,Zi=0,pe&6)throw Error(O(327));var n=e.callbackNode;if(Fr()&&e.callbackNode!==n)return null;var r=fs(e,e===Be?Ve:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ts(e,r);else{t=r;var l=pe;pe|=2;var i=Om();(Be!==e||Ve!==t)&&(tn=null,Wr=Ae()+500,Jn(e,t));do try{Gy();break}catch(o){zm(e,o)}while(!0);Qu(),Es.current=i,pe=l,Le!==null?t=0:(Be=null,Ve=0,t=De)}if(t!==0){if(t===2&&(l=Ta(e),l!==0&&(r=l,t=ru(e,l))),t===1)throw n=Gl,Jn(e,0),Nn(e,r),mt(e,Ae()),n;if(t===6)Nn(e,r);else{if(l=e.current.alternate,!(r&30)&&!Xy(l)&&(t=Ts(e,r),t===2&&(i=Ta(e),i!==0&&(r=i,t=ru(e,i))),t===1))throw n=Gl,Jn(e,0),Nn(e,r),mt(e,Ae()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:Wn(e,ft,tn);break;case 3:if(Nn(e,r),(r&130023424)===r&&(t=ac+500-Ae(),10<t)){if(fs(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){st(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Da(Wn.bind(null,e,ft,tn),t);break}Wn(e,ft,tn);break;case 4:if(Nn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var s=31-Ut(r);i=1<<s,s=t[s],s>l&&(l=s),r&=~i}if(r=l,r=Ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ky(r/1960))-r,10<r){e.timeoutHandle=Da(Wn.bind(null,e,ft,tn),r);break}Wn(e,ft,tn);break;case 5:Wn(e,ft,tn);break;default:throw Error(O(329))}}}return mt(e,Ae()),e.callbackNode===n?Lm.bind(null,e):null}function ru(e,t){var n=Tl;return e.current.memoizedState.isDehydrated&&(Jn(e,t).flags|=256),e=Ts(e,t),e!==2&&(t=ft,ft=n,t!==null&&lu(t)),e}function lu(e){ft===null?ft=e:ft.push.apply(ft,e)}function Xy(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],i=l.getSnapshot;l=l.value;try{if(!Vt(i(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Nn(e,t){for(t&=~oc,t&=~Ys,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ut(t),r=1<<n;e[n]=-1,t&=~r}}function ud(e){if(pe&6)throw Error(O(327));Fr();var t=fs(e,0);if(!(t&1))return mt(e,Ae()),null;var n=Ts(e,t);if(e.tag!==0&&n===2){var r=Ta(e);r!==0&&(t=r,n=ru(e,r))}if(n===1)throw n=Gl,Jn(e,0),Nn(e,t),mt(e,Ae()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Wn(e,ft,tn),mt(e,Ae()),null}function uc(e,t){var n=pe;pe|=1;try{return e(t)}finally{pe=n,pe===0&&(Wr=Ae()+500,Ws&&Bn())}}function sr(e){jn!==null&&jn.tag===0&&!(pe&6)&&Fr();var t=pe;pe|=1;var n=It.transition,r=xe;try{if(It.transition=null,xe=1,e)return e()}finally{xe=r,It.transition=n,pe=t,!(pe&6)&&Bn()}}function cc(){kt=Ar.current,Se(Ar)}function Jn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ny(n)),Le!==null)for(n=Le.return;n!==null;){var r=n;switch(Vu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&gs();break;case 3:Vr(),Se(pt),Se(Ze),Zu();break;case 5:Ju(r);break;case 4:Vr();break;case 13:Se(Ee);break;case 19:Se(Ee);break;case 10:Ku(r.type._context);break;case 22:case 23:cc()}n=n.return}if(Be=e,Le=e=zn(e.current,null),Ve=kt=t,De=0,Gl=null,oc=Ys=ir=0,ft=Tl=null,Xn!==null){for(t=0;t<Xn.length;t++)if(n=Xn[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=l,r.next=s}n.pending=r}Xn=null}return e}function zm(e,t){do{var n=Le;try{if(Qu(),Xi.current=Ns,Cs){for(var r=je.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Cs=!1}if(lr=0,Me=Oe=je=null,jl=!1,Kl=0,sc.current=null,n===null||n.return===null){De=1,Gl=t,Le=null;break}e:{var i=e,s=n.return,o=n,a=t;if(t=Ve,o.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,d=o,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=Yf(s);if(h!==null){h.flags&=-257,Gf(h,s,o,i,t),h.mode&1&&Xf(i,u,t),t=h,a=u;var x=t.updateQueue;if(x===null){var v=new Set;v.add(a),t.updateQueue=v}else x.add(a);break e}else{if(!(t&1)){Xf(i,u,t),fc();break e}a=Error(O(426))}}else if(Ce&&o.mode&1){var S=Yf(s);if(S!==null){!(S.flags&65536)&&(S.flags|=256),Gf(S,s,o,i,t),qu(qr(a,o));break e}}i=a=qr(a,o),De!==4&&(De=2),Tl===null?Tl=[i]:Tl.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=ym(i,a,t);Hf(i,m);break e;case 1:o=a;var g=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(In===null||!In.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var E=wm(i,o,t);Hf(i,E);break e}}i=i.return}while(i!==null)}Fm(n)}catch(T){t=T,Le===n&&n!==null&&(Le=n=n.return);continue}break}while(!0)}function Om(){var e=Es.current;return Es.current=Ns,e===null?Ns:e}function fc(){(De===0||De===3||De===2)&&(De=4),Be===null||!(ir&268435455)&&!(Ys&268435455)||Nn(Be,Ve)}function Ts(e,t){var n=pe;pe|=2;var r=Om();(Be!==e||Ve!==t)&&(tn=null,Jn(e,t));do try{Yy();break}catch(l){zm(e,l)}while(!0);if(Qu(),pe=n,Es.current=r,Le!==null)throw Error(O(261));return Be=null,Ve=0,De}function Yy(){for(;Le!==null;)Dm(Le)}function Gy(){for(;Le!==null&&!b0();)Dm(Le)}function Dm(e){var t=Bm(e.alternate,e,kt);e.memoizedProps=e.pendingProps,t===null?Fm(e):Le=t,sc.current=null}function Fm(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Vy(n,t),n!==null){n.flags&=32767,Le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{De=6,Le=null;return}}else if(n=Hy(n,t,kt),n!==null){Le=n;return}if(t=t.sibling,t!==null){Le=t;return}Le=t=e}while(t!==null);De===0&&(De=5)}function Wn(e,t,n){var r=xe,l=It.transition;try{It.transition=null,xe=1,Jy(e,t,n,r)}finally{It.transition=l,xe=r}return null}function Jy(e,t,n,r){do Fr();while(jn!==null);if(pe&6)throw Error(O(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(O(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(A0(e,i),e===Be&&(Le=Be=null,Ve=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||zi||(zi=!0,Um(cs,function(){return Fr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=It.transition,It.transition=null;var s=xe;xe=1;var o=pe;pe|=4,sc.current=null,Wy(e,n),Am(n,e),yy(za),ds=!!La,za=La=null,e.current=n,Qy(n),S0(),pe=o,xe=s,It.transition=i}else e.current=n;if(zi&&(zi=!1,jn=e,_s=l),i=e.pendingLanes,i===0&&(In=null),E0(n.stateNode),mt(e,Ae()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(js)throw js=!1,e=tu,tu=null,e;return _s&1&&e.tag!==0&&Fr(),i=e.pendingLanes,i&1?e===nu?Pl++:(Pl=0,nu=e):Pl=0,Bn(),null}function Fr(){if(jn!==null){var e=yh(_s),t=It.transition,n=xe;try{if(It.transition=null,xe=16>e?16:e,jn===null)var r=!1;else{if(e=jn,jn=null,_s=0,pe&6)throw Error(O(331));var l=pe;for(pe|=4,K=e.current;K!==null;){var i=K,s=i.child;if(K.flags&16){var o=i.deletions;if(o!==null){for(var a=0;a<o.length;a++){var u=o[a];for(K=u;K!==null;){var d=K;switch(d.tag){case 0:case 11:case 15:_l(8,d,i)}var f=d.child;if(f!==null)f.return=d,K=f;else for(;K!==null;){d=K;var p=d.sibling,h=d.return;if(Tm(d),d===u){K=null;break}if(p!==null){p.return=h,K=p;break}K=h}}}var x=i.alternate;if(x!==null){var v=x.child;if(v!==null){x.child=null;do{var S=v.sibling;v.sibling=null,v=S}while(v!==null)}}K=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,K=s;else e:for(;K!==null;){if(i=K,i.flags&2048)switch(i.tag){case 0:case 11:case 15:_l(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,K=m;break e}K=i.return}}var g=e.current;for(K=g;K!==null;){s=K;var y=s.child;if(s.subtreeFlags&2064&&y!==null)y.return=s,K=y;else e:for(s=g;K!==null;){if(o=K,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:Xs(9,o)}}catch(T){Pe(o,o.return,T)}if(o===s){K=null;break e}var E=o.sibling;if(E!==null){E.return=o.return,K=E;break e}K=o.return}}if(pe=l,Bn(),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(Us,e)}catch{}r=!0}return r}finally{xe=n,It.transition=t}}return!1}function cd(e,t,n){t=qr(n,t),t=ym(e,t,1),e=An(e,t,1),t=st(),e!==null&&(ni(e,1,t),mt(e,t))}function Pe(e,t,n){if(e.tag===3)cd(e,e,n);else for(;t!==null;){if(t.tag===3){cd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(In===null||!In.has(r))){e=qr(n,e),e=wm(t,e,1),t=An(t,e,1),e=st(),t!==null&&(ni(t,1,e),mt(t,e));break}}t=t.return}}function Zy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=st(),e.pingedLanes|=e.suspendedLanes&n,Be===e&&(Ve&n)===n&&(De===4||De===3&&(Ve&130023424)===Ve&&500>Ae()-ac?Jn(e,0):oc|=n),mt(e,t)}function Mm(e,t){t===0&&(e.mode&1?(t=Ni,Ni<<=1,!(Ni&130023424)&&(Ni=4194304)):t=1);var n=st();e=un(e,t),e!==null&&(ni(e,t,n),mt(e,n))}function e1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Mm(e,n)}function t1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),Mm(e,n)}var Bm;Bm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pt.current)dt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return dt=!1,$y(e,t,n);dt=!!(e.flags&131072)}else dt=!1,Ce&&t.flags&1048576&&Vh(t,ws,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gi(e,t),e=t.pendingProps;var l=Ur(t,Ze.current);Dr(t,n),l=tc(null,t,r,e,l,n);var i=nc();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ht(r)?(i=!0,xs(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Yu(t),l.updater=Ks,t.stateNode=l,l._reactInternals=t,Va(t,r,e,n),t=Qa(null,t,r,!0,i,n)):(t.tag=0,Ce&&i&&Hu(t),lt(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gi(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=r1(r),e=Ft(r,e),l){case 0:t=Wa(null,t,r,e,n);break e;case 1:t=ed(null,t,r,e,n);break e;case 11:t=Jf(null,t,r,e,n);break e;case 14:t=Zf(null,t,r,Ft(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),Wa(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),ed(e,t,r,l,n);case 3:e:{if(Sm(t),e===null)throw Error(O(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Yh(e,t),bs(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=qr(Error(O(423)),t),t=td(e,t,r,n,l);break e}else if(r!==l){l=qr(Error(O(424)),t),t=td(e,t,r,n,l);break e}else for(bt=Rn(t.stateNode.containerInfo.firstChild),St=t,Ce=!0,Bt=null,n=Kh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($r(),r===l){t=cn(e,t,n);break e}lt(e,t,r,n)}t=t.child}return t;case 5:return Gh(t),e===null&&Ua(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,s=l.children,Oa(r,l)?s=null:i!==null&&Oa(r,i)&&(t.flags|=32),bm(e,t),lt(e,t,s,n),t.child;case 6:return e===null&&Ua(t),null;case 13:return Cm(e,t,n);case 4:return Gu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hr(t,null,r,n):lt(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),Jf(e,t,r,l,n);case 7:return lt(e,t,t.pendingProps,n),t.child;case 8:return lt(e,t,t.pendingProps.children,n),t.child;case 12:return lt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,s=l.value,ve(vs,r._currentValue),r._currentValue=s,i!==null)if(Vt(i.value,s)){if(i.children===l.children&&!pt.current){t=cn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var o=i.dependencies;if(o!==null){s=i.child;for(var a=o.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=sn(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),$a(i.return,n,t),o.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(O(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),$a(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}lt(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Dr(t,n),l=Lt(l),r=r(l),t.flags|=1,lt(e,t,r,n),t.child;case 14:return r=t.type,l=Ft(r,t.pendingProps),l=Ft(r.type,l),Zf(e,t,r,l,n);case 15:return vm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ft(r,l),Gi(e,t),t.tag=1,ht(r)?(e=!0,xs(t)):e=!1,Dr(t,n),xm(t,r,l),Va(t,r,l,n),Qa(null,t,r,!0,e,n);case 19:return Nm(e,t,n);case 22:return km(e,t,n)}throw Error(O(156,t.tag))};function Um(e,t){return hh(e,t)}function n1(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 At(e,t,n,r){return new n1(e,t,n,r)}function dc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function r1(e){if(typeof e=="function")return dc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ru)return 11;if(e===Au)return 14}return 2}function zn(e,t){var n=e.alternate;return n===null?(n=At(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 es(e,t,n,r,l,i){var s=2;if(r=e,typeof e=="function")dc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case br:return Zn(n.children,l,i,t);case Pu:s=8,l|=8;break;case ha:return e=At(12,n,t,l|2),e.elementType=ha,e.lanes=i,e;case ma:return e=At(13,n,t,l),e.elementType=ma,e.lanes=i,e;case ga:return e=At(19,n,t,l),e.elementType=ga,e.lanes=i,e;case Gp:return Gs(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xp:s=10;break e;case Yp:s=9;break e;case Ru:s=11;break e;case Au:s=14;break e;case bn:s=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=At(s,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Zn(e,t,n,r){return e=At(7,e,r,t),e.lanes=n,e}function Gs(e,t,n,r){return e=At(22,e,r,t),e.elementType=Gp,e.lanes=n,e.stateNode={isHidden:!1},e}function Vo(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function qo(e,t,n){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function l1(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=No(0),this.expirationTimes=No(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=No(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function pc(e,t,n,r,l,i,s,o,a){return e=new l1(e,t,n,o,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=At(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yu(i),e}function i1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:kr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function $m(e){if(!e)return Dn;e=e._reactInternals;e:{if(fr(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ht(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(ht(n))return $h(e,n,t)}return t}function Hm(e,t,n,r,l,i,s,o,a){return e=pc(n,r,!0,e,l,i,s,o,a),e.context=$m(null),n=e.current,r=st(),l=Ln(n),i=sn(r,l),i.callback=t??null,An(n,i,l),e.current.lanes=l,ni(e,l,r),mt(e,r),e}function Js(e,t,n,r){var l=t.current,i=st(),s=Ln(l);return n=$m(n),t.context===null?t.context=n:t.pendingContext=n,t=sn(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=An(l,t,s),e!==null&&($t(e,l,s,i),Ki(e,l,s)),s}function Ps(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function fd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function hc(e,t){fd(e,t),(e=e.alternate)&&fd(e,t)}function s1(){return null}var Vm=typeof reportError=="function"?reportError:function(e){console.error(e)};function mc(e){this._internalRoot=e}Zs.prototype.render=mc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));Js(e,t,null,null)};Zs.prototype.unmount=mc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;sr(function(){Js(null,e,null,null)}),t[an]=null}};function Zs(e){this._internalRoot=e}Zs.prototype.unstable_scheduleHydration=function(e){if(e){var t=kh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Cn.length&&t!==0&&t<Cn[n].priority;n++);Cn.splice(n,0,e),n===0&&Sh(e)}};function gc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function eo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function dd(){}function o1(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var u=Ps(s);i.call(u)}}var s=Hm(t,r,e,0,null,!1,!1,"",dd);return e._reactRootContainer=s,e[an]=s.current,Hl(e.nodeType===8?e.parentNode:e),sr(),s}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var o=r;r=function(){var u=Ps(a);o.call(u)}}var a=pc(e,0,!1,null,null,!1,!1,"",dd);return e._reactRootContainer=a,e[an]=a.current,Hl(e.nodeType===8?e.parentNode:e),sr(function(){Js(t,a,n,r)}),a}function to(e,t,n,r,l){var i=n._reactRootContainer;if(i){var s=i;if(typeof l=="function"){var o=l;l=function(){var a=Ps(s);o.call(a)}}Js(t,s,e,l)}else s=o1(n,t,e,l,r);return Ps(s)}wh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=vl(t.pendingLanes);n!==0&&(zu(t,n|1),mt(t,Ae()),!(pe&6)&&(Wr=Ae()+500,Bn()))}break;case 13:sr(function(){var r=un(e,1);if(r!==null){var l=st();$t(r,e,1,l)}}),hc(e,1)}};Ou=function(e){if(e.tag===13){var t=un(e,134217728);if(t!==null){var n=st();$t(t,e,134217728,n)}hc(e,134217728)}};vh=function(e){if(e.tag===13){var t=Ln(e),n=un(e,t);if(n!==null){var r=st();$t(n,e,t,r)}hc(e,t)}};kh=function(){return xe};bh=function(e,t){var n=xe;try{return xe=e,t()}finally{xe=n}};Ea=function(e,t,n){switch(t){case"input":if(wa(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=qs(r);if(!l)throw Error(O(90));Zp(r),wa(r,l)}}}break;case"textarea":th(e,n);break;case"select":t=n.value,t!=null&&Ir(e,!!n.multiple,t,!1)}};ah=uc;uh=sr;var a1={usingClientEntryPoint:!1,Events:[li,Er,qs,sh,oh,uc]},hl={findFiberByHostInstance:Kn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},u1={bundleType:hl.bundleType,version:hl.version,rendererPackageName:hl.rendererPackageName,rendererConfig:hl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:fn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=dh(e),e===null?null:e.stateNode},findFiberByHostInstance:hl.findFiberByHostInstance||s1,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 Oi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Oi.isDisabled&&Oi.supportsFiber)try{Us=Oi.inject(u1),Gt=Oi}catch{}}Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=a1;Et.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gc(t))throw Error(O(200));return i1(e,t,null,n)};Et.createRoot=function(e,t){if(!gc(e))throw Error(O(299));var n=!1,r="",l=Vm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=pc(e,1,!1,null,null,n,!1,r,l),e[an]=t.current,Hl(e.nodeType===8?e.parentNode:e),new mc(t)};Et.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(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=dh(t),e=e===null?null:e.stateNode,e};Et.flushSync=function(e){return sr(e)};Et.hydrate=function(e,t,n){if(!eo(t))throw Error(O(200));return to(null,e,t,!0,n)};Et.hydrateRoot=function(e,t,n){if(!gc(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",s=Vm;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Hm(t,null,e,1,n??null,l,!1,i,s),e[an]=t.current,Hl(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Zs(t)};Et.render=function(e,t,n){if(!eo(t))throw Error(O(200));return to(null,e,t,!1,n)};Et.unmountComponentAtNode=function(e){if(!eo(e))throw Error(O(40));return e._reactRootContainer?(sr(function(){to(null,null,e,!1,function(){e._reactRootContainer=null,e[an]=null})}),!0):!1};Et.unstable_batchedUpdates=uc;Et.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!eo(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return to(e,t,n,!1,r)};Et.version="18.3.1-next-f1338f8080-20240426";function qm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qm)}catch(e){console.error(e)}}qm(),qp.exports=Et;var c1=qp.exports,pd=c1;da.createRoot=pd.createRoot,da.hydrateRoot=pd.hydrateRoot;function Wm(e,t){return function(){return e.apply(t,arguments)}}const{toString:f1}=Object.prototype,{getPrototypeOf:Qr}=Object,{iterator:si,toStringTag:Qm}=Symbol,Rs=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Jl=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),Rs(n,t))return!0;n=Qr(n)}return!1},d1=(e,t)=>e!=null&&Jl(e,t)?e[t]:void 0,xc=(e=>t=>{const n=f1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),qt=e=>(e=e.toLowerCase(),t=>xc(t)===e),no=e=>t=>typeof t===e,{isArray:or}=Array,Kr=no("undefined");function el(e){return e!==null&&!Kr(e)&&e.constructor!==null&&!Kr(e.constructor)&>(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Km=qt("ArrayBuffer");function p1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Km(e.buffer),t}const h1=no("string"),gt=no("function"),Xm=no("number"),tl=e=>e!==null&&typeof e=="object",m1=e=>e===!0||e===!1,ts=e=>{if(!tl(e))return!1;const t=Qr(e);return(t===null||t===Object.prototype||Qr(t)===null)&&!Jl(e,Qm)&&!Jl(e,si)},g1=e=>{if(!tl(e)||el(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},x1=qt("Date"),y1=qt("File"),w1=e=>!!(e&&typeof e.uri<"u"),v1=e=>e&&typeof e.getParts<"u",k1=qt("Blob"),b1=qt("FileList"),S1=e=>tl(e)&>(e.pipe);function C1(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const hd=C1(),md=typeof hd.FormData<"u"?hd.FormData:void 0,N1=e=>{if(!e)return!1;if(md&&e instanceof md)return!0;const t=Qr(e);if(!t||t===Object.prototype||!gt(e.append))return!1;const n=xc(e);return n==="formdata"||n==="object"&>(e.toString)&&e.toString()==="[object FormData]"},E1=qt("URLSearchParams"),[j1,_1,T1,P1]=["ReadableStream","Request","Response","Headers"].map(qt),R1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),or(e))for(r=0,l=e.length;r<l;r++)t.call(null,e[r],r,e);else{if(el(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let o;for(r=0;r<s;r++)o=i[r],t.call(null,e[o],o,e)}}function Ym(e,t){if(el(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,l;for(;r-- >0;)if(l=n[r],t===l.toLowerCase())return l;return null}const Gn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gm=e=>!Kr(e)&&e!==Gn;function iu(...e){const{caseless:t,skipUndefined:n}=Gm(this)&&this||{},r={},l=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const o=t&&typeof s=="string"&&Ym(r,s)||s,a=Rs(r,o)?r[o]:void 0;ts(a)&&ts(i)?r[o]=iu(a,i):ts(i)?r[o]=iu({},i):or(i)?r[o]=i.slice():(!n||!Kr(i))&&(r[o]=i)};for(let i=0,s=e.length;i<s;i++){const o=e[i];if(!o||el(o)||(oi(o,l),typeof o!="object"||or(o)))continue;const a=Object.getOwnPropertySymbols(o);for(let u=0;u<a.length;u++){const d=a[u];H1.call(o,d)&&l(o[d],d)}}return r}const A1=(e,t,n,{allOwnKeys:r}={})=>(oi(t,(l,i)=>{n&>(l)?Object.defineProperty(e,i,{__proto__:null,value:Wm(l,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:l,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),I1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),L1=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},z1=(e,t,n,r)=>{let l,i,s;const o={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),i=l.length;i-- >0;)s=l[i],(!r||r(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=n!==!1&&Qr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},O1=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},D1=e=>{if(!e)return null;if(or(e))return e;let t=e.length;if(!Xm(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},F1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Qr(Uint8Array)),M1=(e,t)=>{const r=(e&&e[si]).call(e);let l;for(;(l=r.next())&&!l.done;){const i=l.value;t.call(e,i[0],i[1])}},B1=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},U1=qt("HTMLFormElement"),$1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),{propertyIsEnumerable:H1}=Object.prototype,V1=qt("RegExp"),Jm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};oi(n,(l,i)=>{let s;(s=t(l,i,e))!==!1&&(r[i]=s||l)}),Object.defineProperties(e,r)},q1=e=>{Jm(e,(t,n)=>{if(gt(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(gt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},W1=(e,t)=>{const n={},r=l=>{l.forEach(i=>{n[i]=!0})};return or(e)?r(e):r(String(e).split(t)),n},Q1=()=>{},K1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function X1(e){return!!(e&>(e.append)&&e[Qm]==="FormData"&&e[si])}const Y1=e=>{const t=new WeakSet,n=r=>{if(tl(r)){if(t.has(r))return;if(el(r))return r;if(!("toJSON"in r)){t.add(r);const l=or(r)?[]:{};return oi(r,(i,s)=>{const o=n(i);!Kr(o)&&(l[s]=o)}),t.delete(r),l}}return r};return n(e)},G1=qt("AsyncFunction"),J1=e=>e&&(tl(e)||gt(e))&>(e.then)&>(e.catch),Zm=((e,t)=>e?setImmediate:t?((n,r)=>(Gn.addEventListener("message",({source:l,data:i})=>{l===Gn&&i===n&&r.length&&r.shift()()},!1),l=>{r.push(l),Gn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",gt(Gn.postMessage)),Z1=typeof queueMicrotask<"u"?queueMicrotask.bind(Gn):typeof process<"u"&&process.nextTick||Zm,eg=e=>e!=null&>(e[si]),ew=e=>e!=null&&Jl(e,si)&&eg(e),C={isArray:or,isArrayBuffer:Km,isBuffer:el,isFormData:N1,isArrayBufferView:p1,isString:h1,isNumber:Xm,isBoolean:m1,isObject:tl,isPlainObject:ts,isEmptyObject:g1,isReadableStream:j1,isRequest:_1,isResponse:T1,isHeaders:P1,isUndefined:Kr,isDate:x1,isFile:y1,isReactNativeBlob:w1,isReactNative:v1,isBlob:k1,isRegExp:V1,isFunction:gt,isStream:S1,isURLSearchParams:E1,isTypedArray:F1,isFileList:b1,forEach:oi,merge:iu,extend:A1,trim:R1,stripBOM:I1,inherits:L1,toFlatObject:z1,kindOf:xc,kindOfTest:qt,endsWith:O1,toArray:D1,forEachEntry:M1,matchAll:B1,isHTMLForm:U1,hasOwnProperty:Rs,hasOwnProp:Rs,hasOwnInPrototypeChain:Jl,getSafeProp:d1,reduceDescriptors:Jm,freezeMethods:q1,toObjectSet:W1,toCamelCase:$1,noop:Q1,toFiniteNumber:K1,findKey:Ym,global:Gn,isContextDefined:Gm,isSpecCompliantForm:X1,toJSONObject:Y1,isAsyncFn:G1,isThenable:J1,setImmediate:Zm,asap:Z1,isIterable:eg,isSafeIterable:ew},tw=C.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),nw=e=>{const t={};let n,r,l;return e&&e.split(`
|
|
41
|
+
`).forEach(function(s){l=s.indexOf(":"),n=s.substring(0,l).trim().toLowerCase(),r=s.substring(l+1).trim(),!(!n||t[n]&&tw[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function rw(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const lw=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),iw=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function yc(e,t){return C.isArray(e)?e.map(n=>yc(n,t)):rw(String(e).replace(t,""))}const sw=e=>yc(e,lw),ow=e=>yc(e,iw);function tg(e){const t=Object.create(null);return C.forEach(e.toJSON(),(n,r)=>{t[r]=ow(n)}),t}const gd=Symbol("internals");function ml(e){return e&&String(e).trim().toLowerCase()}function ns(e){return e===!1||e==null?e:C.isArray(e)?e.map(ns):sw(String(e))}function aw(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const uw=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Wo(e,t,n,r,l){if(C.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!C.isString(t)){if(C.isString(r))return t.indexOf(r)!==-1;if(C.isRegExp(r))return r.test(t)}}function cw(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function fw(e,t){const n=C.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(l,i,s){return this[r].call(this,t,l,i,s)},configurable:!0})})}let Je=class{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function i(o,a,u){const d=ml(a);if(!d)return;const f=C.findKey(l,d);(!f||l[f]===void 0||u===!0||u===void 0&&l[f]!==!1)&&(l[f||a]=ns(o))}const s=(o,a)=>C.forEach(o,(u,d)=>i(u,d,a));if(C.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(C.isString(t)&&(t=t.trim())&&!uw(t))s(nw(t),n);else if(C.isObject(t)&&C.isSafeIterable(t)){let o=Object.create(null),a,u;for(const d of t){if(!C.isArray(d))throw new TypeError("Object iterator must return a key-value pair");u=d[0],C.hasOwnProp(o,u)?(a=o[u],o[u]=C.isArray(a)?[...a,d[1]]:[a,d[1]]):o[u]=d[1]}s(o,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=ml(t),t){const r=C.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return aw(l);if(C.isFunction(n))return n.call(this,l,r);if(C.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ml(t),t){const r=C.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Wo(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function i(s){if(s=ml(s),s){const o=C.findKey(r,s);o&&(!n||Wo(r,r[o],o,n))&&(delete r[o],l=!0)}}return C.isArray(t)?t.forEach(i):i(t),l}clear(t){const n=Object.keys(this);let r=n.length,l=!1;for(;r--;){const i=n[r];(!t||Wo(this,this[i],i,t,!0))&&(delete this[i],l=!0)}return l}normalize(t){const n=this,r={};return C.forEach(this,(l,i)=>{const s=C.findKey(r,i);if(s){n[s]=ns(l),delete n[i];return}const o=t?cw(i):String(i).trim();o!==i&&delete n[i],n[o]=ns(l),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return C.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&C.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
42
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(l=>r.set(l)),r}static accessor(t){const r=(this[gd]=this[gd]={accessors:{}}).accessors,l=this.prototype;function i(s){const o=ml(s);r[o]||(fw(l,s),r[o]=!0)}return C.isArray(t)?t.forEach(i):i(t),this}};Je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);C.reduceDescriptors(Je.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});C.freezeMethods(Je);const dw="[REDACTED ****]";function pw(e){if(C.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(C.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function hw(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),r=[],l=i=>{if(i===null||typeof i!="object"||C.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof Je&&(i=i.toJSON()),r.push(i);let s;if(C.isArray(i))s=[],i.forEach((o,a)=>{const u=l(o);C.isUndefined(u)||(s[a]=u)});else{if(!C.isPlainObject(i)&&pw(i))return r.pop(),i;s=Object.create(null);for(const[o,a]of Object.entries(i)){const u=n.has(o.toLowerCase())?dw:l(a);C.isUndefined(u)||(s[o]=u)}}return r.pop(),s};return l(e)}let W=class ng extends Error{static from(t,n,r,l,i,s){const o=new ng(t.message,n||t.code,r,l,i);return o.cause=t,o.name=t.name,t.status!=null&&o.status==null&&(o.status=t.status),s&&Object.assign(o,s),o}constructor(t,n,r,l,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),l&&(this.request=l),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&C.hasOwnProp(t,"redact")?t.redact:void 0,r=C.isArray(n)&&n.length>0?hw(t,n):C.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};W.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";W.ERR_BAD_OPTION="ERR_BAD_OPTION";W.ECONNABORTED="ECONNABORTED";W.ETIMEDOUT="ETIMEDOUT";W.ECONNREFUSED="ECONNREFUSED";W.ERR_NETWORK="ERR_NETWORK";W.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";W.ERR_DEPRECATED="ERR_DEPRECATED";W.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";W.ERR_BAD_REQUEST="ERR_BAD_REQUEST";W.ERR_CANCELED="ERR_CANCELED";W.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";W.ERR_INVALID_URL="ERR_INVALID_URL";W.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const mw=null,rg=100;function su(e){return C.isPlainObject(e)||C.isArray(e)}function lg(e){return C.endsWith(e,"[]")?e.slice(0,-2):e}function Qo(e,t,n){return e?e.concat(t).map(function(l,i){return l=lg(l),!n&&i?"["+l+"]":l}).join(n?".":""):t}function gw(e){return C.isArray(e)&&!e.some(su)}const xw=C.toFlatObject(C,{},null,function(t){return/^is[A-Z]/.test(t)});function ro(e,t,n){if(!C.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=C.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!C.isUndefined(y[g])});const r=n.metaTokens,l=n.visitor||x,i=n.dots,s=n.indexes,o=n.Blob||typeof Blob<"u"&&Blob,a=n.maxDepth===void 0?rg:n.maxDepth,u=o&&C.isSpecCompliantForm(t),d=[];if(!C.isFunction(l))throw new TypeError("visitor must be a function");function f(m){if(m===null)return"";if(C.isDate(m))return m.toISOString();if(C.isBoolean(m))return m.toString();if(!u&&C.isBlob(m))throw new W("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(m)||C.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function p(m){if(m>a)throw new W("Object is too deeply nested ("+m+" levels). Max depth: "+a,W.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(m,g){if(a===1/0)return JSON.stringify(m);const y=[];return JSON.stringify(m,function(T,b){if(!C.isObject(b))return b;for(;y.length&&y[y.length-1]!==this;)y.pop();return y.push(b),p(g+y.length-1),b})}function x(m,g,y){let E=m;if(C.isReactNative(t)&&C.isReactNativeBlob(m))return t.append(Qo(y,g,i),f(m)),!1;if(m&&!y&&typeof m=="object"){if(C.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=h(m,1);else if(C.isArray(m)&&gw(m)||(C.isFileList(m)||C.endsWith(g,"[]"))&&(E=C.toArray(m)))return g=lg(g),E.forEach(function(b,_){!(C.isUndefined(b)||b===null)&&t.append(s===!0?Qo([g],_,i):s===null?g:g+"[]",f(b))}),!1}return su(m)?!0:(t.append(Qo(y,g,i),f(m)),!1)}const v=Object.assign(xw,{defaultVisitor:x,convertValue:f,isVisitable:su});function S(m,g,y=0){if(!C.isUndefined(m)){if(p(y),d.indexOf(m)!==-1)throw new Error("Circular reference detected in "+g.join("."));d.push(m),C.forEach(m,function(T,b){(!(C.isUndefined(T)||T===null)&&l.call(t,T,C.isString(b)?b.trim():b,g,v))===!0&&S(T,g?g.concat(b):[b],y+1)}),d.pop()}}if(!C.isObject(e))throw new TypeError("data must be an object");return S(e),t}function xd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function wc(e,t){this._pairs=[],e&&ro(e,this,t)}const ig=wc.prototype;ig.append=function(t,n){this._pairs.push([t,n])};ig.toString=function(t){const n=t?function(r){return t.call(this,r,xd)}:xd;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function yw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function sg(e,t,n){if(!t)return e;const r=C.isFunction(n)?{serialize:n}:n,l=C.getSafeProp(r,"encode")||yw,i=C.getSafeProp(r,"serialize");let s;if(i?s=i(t,r):s=C.isURLSearchParams(t)?t.toString():new wc(t,r).toString(l),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class yd{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){C.forEach(this.handlers,function(r){r!==null&&t(r)})}}const vc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},ww=typeof URLSearchParams<"u"?URLSearchParams:wc,vw=typeof FormData<"u"?FormData:null,kw=typeof Blob<"u"?Blob:null,bw={isBrowser:!0,classes:{URLSearchParams:ww,FormData:vw,Blob:kw},protocols:["http","https","file","blob","url","data"]},kc=typeof window<"u"&&typeof document<"u",ou=typeof navigator=="object"&&navigator||void 0,Sw=kc&&(!ou||["ReactNative","NativeScript","NS"].indexOf(ou.product)<0),Cw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Nw=kc&&window.location.href||"http://localhost",Ew=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:kc,hasStandardBrowserEnv:Sw,hasStandardBrowserWebWorkerEnv:Cw,navigator:ou,origin:Nw},Symbol.toStringTag,{value:"Module"})),He={...Ew,...bw};function jw(e,t){return ro(e,new He.classes.URLSearchParams,{visitor:function(n,r,l,i){return He.isNode&&C.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}const wd=rg;function og(e){if(e>wd)throw new W("FormData field is too deeply nested ("+e+" levels). Max depth: "+wd,W.ERR_FORM_DATA_DEPTH_EXCEEDED)}function _w(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)og(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function Tw(e){const t={},n=Object.keys(e);let r;const l=n.length;let i;for(r=0;r<l;r++)i=n[r],t[i]=e[i];return t}function ag(e){function t(n,r,l,i){og(i);let s=n[i++];if(s==="__proto__")return!0;const o=Number.isFinite(+s),a=i>=n.length;return s=!s&&C.isArray(l)?l.length:s,a?(C.hasOwnProp(l,s)?l[s]=C.isArray(l[s])?l[s].concat(r):[l[s],r]:l[s]=r,!o):((!C.hasOwnProp(l,s)||!C.isObject(l[s]))&&(l[s]=[]),t(n,r,l[s],i)&&C.isArray(l[s])&&(l[s]=Tw(l[s])),!o)}if(C.isFormData(e)&&C.isFunction(e.entries)){const n={};return C.forEachEntry(e,(r,l)=>{t(_w(r),l,n,0)}),n}return null}const yr=(e,t)=>e!=null&&C.hasOwnProp(e,t)?e[t]:void 0;function Pw(e,t,n){if(C.isString(e))try{return(t||JSON.parse)(e),C.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ai={transitional:vc,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,i=C.isObject(t);if(i&&C.isHTMLForm(t)&&(t=new FormData(t)),C.isFormData(t))return l?JSON.stringify(ag(t)):t;if(C.isArrayBuffer(t)||C.isBuffer(t)||C.isStream(t)||C.isFile(t)||C.isBlob(t)||C.isReadableStream(t))return t;if(C.isArrayBufferView(t))return t.buffer;if(C.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){const a=yr(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return jw(t,a).toString();if((o=C.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=yr(this,"env"),d=u&&u.FormData;return ro(o?{"files[]":t}:t,d&&new d,a)}}return i||l?(n.setContentType("application/json",!1),Pw(t)):t}],transformResponse:[function(t){const n=yr(this,"transitional")||ai.transitional,r=n&&n.forcedJSONParsing,l=yr(this,"responseType"),i=l==="json";if(C.isResponse(t)||C.isReadableStream(t))return t;if(t&&C.isString(t)&&(r&&!l||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,yr(this,"parseReviver"))}catch(a){if(o)throw a.name==="SyntaxError"?W.from(a,W.ERR_BAD_RESPONSE,this,null,yr(this,"response")):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:He.classes.FormData,Blob:He.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch","query"],e=>{ai.headers[e]={}});function Ko(e,t){const n=this||ai,r=t||n,l=Je.from(r.headers);let i=r.data;return C.forEach(e,function(o){i=o.call(n,i,l.normalize(),t?t.status:void 0)}),l.normalize(),i}function ug(e){return!!(e&&e.__CANCEL__)}let ui=class extends W{constructor(t,n,r){super(t??"canceled",W.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function cg(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new W("Request failed with status code "+n.status,n.status>=400&&n.status<500?W.ERR_BAD_REQUEST:W.ERR_BAD_RESPONSE,n.config,n.request,n))}function Rw(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function Aw(e,t){e=e||10;const n=new Array(e),r=new Array(e);let l=0,i=0,s;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),d=r[i];s||(s=u),n[l]=a,r[l]=u;let f=i,p=0;for(;f!==l;)p+=n[f++],f=f%e;if(l=(l+1)%e,l===i&&(i=(i+1)%e),u-s<t)return;const h=d&&u-d;return h?Math.round(p*1e3/h):void 0}}function Iw(e,t){let n=0,r=1e3/t,l,i;const s=(u,d=Date.now())=>{n=d,l=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?s(u,d):(l=u,i||(i=setTimeout(()=>{i=null,s(l)},r-f)))},()=>l&&s(l)]}const As=(e,t,n=3)=>{let r=0;const l=Aw(50,250);return Iw(i=>{if(!i||typeof i.loaded!="number")return;const s=i.loaded,o=i.lengthComputable?i.total:void 0,a=o!=null?Math.min(s,o):s,u=Math.max(0,a-r),d=l(u);r=Math.max(r,a);const f={loaded:a,total:o,progress:o?a/o:void 0,bytes:u,rate:d||void 0,estimated:d&&o?(o-a)/d:void 0,event:i,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(f)},n)},vd=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},kd=e=>(...t)=>C.asap(()=>e(...t)),Lw=He.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,He.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(He.origin),He.navigator&&/(msie|trident)/i.test(He.navigator.userAgent)):()=>!0,zw=He.hasStandardBrowserEnv?{write(e,t,n,r,l,i,s){if(typeof document>"u")return;const o=[`${e}=${encodeURIComponent(t)}`];C.isNumber(n)&&o.push(`expires=${new Date(n).toUTCString()}`),C.isString(r)&&o.push(`path=${r}`),C.isString(l)&&o.push(`domain=${l}`),i===!0&&o.push("secure"),C.isString(s)&&o.push(`SameSite=${s}`),document.cookie=o.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),l=r.indexOf("=");if(l!==-1&&r.slice(0,l)===e)return decodeURIComponent(r.slice(l+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Ow(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Dw(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const Fw=/^https?:(?!\/\/)/i,Mw=/[\t\n\r]/g;function Bw(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function Uw(e){return Bw(e).replace(Mw,"")}function bd(e,t){if(typeof e=="string"&&Fw.test(Uw(e)))throw new W('Invalid URL: missing "//" after protocol',W.ERR_INVALID_URL,t)}function fg(e,t,n,r){bd(t,r);let l=!Ow(t);return e&&(l||n===!1)?(bd(e,r),Dw(e,t)):t}const Sd=e=>e instanceof Je?{...e}:e;function ar(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(d,f,p,h){return C.isPlainObject(d)&&C.isPlainObject(f)?C.merge.call({caseless:h},d,f):C.isPlainObject(f)?C.merge({},f):C.isArray(f)?f.slice():f}function l(d,f,p,h){if(C.isUndefined(f)){if(!C.isUndefined(d))return r(void 0,d,p,h)}else return r(d,f,p,h)}function i(d,f){if(!C.isUndefined(f))return r(void 0,f)}function s(d,f){if(C.isUndefined(f)){if(!C.isUndefined(d))return r(void 0,d)}else return r(void 0,f)}function o(d){const f=C.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!C.isUndefined(f))if(C.isPlainObject(f)){if(C.hasOwnProp(f,d))return f[d]}else return;const p=C.hasOwnProp(e,"transitional")?e.transitional:void 0;if(C.isPlainObject(p)&&C.hasOwnProp(p,d))return p[d]}function a(d,f,p){if(C.hasOwnProp(t,p))return r(d,f);if(C.hasOwnProp(e,p))return r(void 0,d)}const u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:a,headers:(d,f,p)=>l(Sd(d),Sd(f),p,!0)};return C.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const p=C.hasOwnProp(u,f)?u[f]:l,h=C.hasOwnProp(e,f)?e[f]:void 0,x=C.hasOwnProp(t,f)?t[f]:void 0,v=p(h,x,f);C.isUndefined(v)&&p!==a||(n[f]=v)}),C.hasOwnProp(t,"validateStatus")&&C.isUndefined(t.validateStatus)&&o("validateStatusUndefinedResolves")===!1&&(C.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const $w=["content-type","content-length"];function Hw(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,l])=>{$w.includes(r.toLowerCase())&&e.set(r,l)})}const Vw=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function dg(e){const t=ar({},e),n=p=>C.hasOwnProp(t,p)?t[p]:void 0,r=n("data");let l=n("withXSRFToken");const i=n("xsrfHeaderName"),s=n("xsrfCookieName");let o=n("headers");const a=n("auth"),u=n("baseURL"),d=n("allowAbsoluteUrls"),f=n("url");if(t.headers=o=Je.from(o),t.url=sg(fg(u,f,d,t),n("params"),n("paramsSerializer")),a){const p=C.getSafeProp(a,"username")||"",h=C.getSafeProp(a,"password")||"";o.set("Authorization","Basic "+btoa(p+":"+(h?Vw(h):"")))}if(C.isFormData(r)&&(He.hasStandardBrowserEnv||He.hasStandardBrowserWebWorkerEnv||C.isReactNative(r)?o.setContentType(void 0):C.isFunction(r.getHeaders)&&Hw(o,r.getHeaders(),n("formDataHeaderPolicy"))),He.hasStandardBrowserEnv&&(C.isFunction(l)&&(l=l(t)),l===!0||l==null&&Lw(t.url))){const h=i&&s&&zw.read(s);h&&o.set(i,h)}return t}const qw=typeof XMLHttpRequest<"u",Ww=qw&&function(e){return new Promise(function(n,r){const l=dg(e);let i=l.data;const s=Je.from(l.headers).normalize();let{responseType:o,onUploadProgress:a,onDownloadProgress:u}=l,d,f,p,h,x;function v(){h&&h(),x&&x(),l.cancelToken&&l.cancelToken.unsubscribe(d),l.signal&&l.signal.removeEventListener("abort",d)}let S=new XMLHttpRequest;S.open(l.method.toUpperCase(),l.url,!0),S.timeout=l.timeout;function m(){if(!S)return;const y=Je.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),T={data:!o||o==="text"||o==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:y,config:e,request:S};cg(function(_){n(_),v()},function(_){r(_),v()},T),S=null}"onloadend"in S?S.onloadend=m:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.startsWith("file:"))||setTimeout(m)},S.onabort=function(){S&&(r(new W("Request aborted",W.ECONNABORTED,e,S)),v(),S=null)},S.onerror=function(E){const T=E&&E.message?E.message:"Network Error",b=new W(T,W.ERR_NETWORK,e,S);b.event=E||null,r(b),v(),S=null},S.ontimeout=function(){let E=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const T=l.transitional||vc;l.timeoutErrorMessage&&(E=l.timeoutErrorMessage),r(new W(E,T.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,S)),v(),S=null},i===void 0&&s.setContentType(null),"setRequestHeader"in S&&C.forEach(tg(s),function(E,T){S.setRequestHeader(T,E)}),C.isUndefined(l.withCredentials)||(S.withCredentials=!!l.withCredentials),o&&o!=="json"&&(S.responseType=l.responseType),u&&([p,x]=As(u,!0),S.addEventListener("progress",p)),a&&S.upload&&([f,h]=As(a),S.upload.addEventListener("progress",f),S.upload.addEventListener("loadend",h)),(l.cancelToken||l.signal)&&(d=y=>{S&&(r(!y||y.type?new ui(null,e,S):y),S.abort(),v(),S=null)},l.cancelToken&&l.cancelToken.subscribe(d),l.signal&&(l.signal.aborted?d():l.signal.addEventListener("abort",d)));const g=Rw(l.url);if(g&&!He.protocols.includes(g)){r(new W("Unsupported protocol "+g+":",W.ERR_BAD_REQUEST,e));return}S.send(i||null)})},Qw=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const l=function(a){if(!r){r=!0,s();const u=a instanceof Error?a:this.reason;n.abort(u instanceof W?u:new ui(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,l(new W(`timeout of ${t}ms exceeded`,W.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(l):a.removeEventListener("abort",l)}),e=null)};e.forEach(a=>a.addEventListener("abort",l));const{signal:o}=n;return o.unsubscribe=()=>C.asap(s),o},Kw=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,l;for(;r<n;)l=r+t,yield e.slice(r,l),r=l},Xw=async function*(e,t){for await(const n of Yw(e))yield*Kw(n,t)},Yw=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Cd=(e,t,n,r)=>{const l=Xw(e,t);let i=0,s,o=a=>{s||(s=!0,r&&r(a))};return new ReadableStream({async pull(a){try{const{done:u,value:d}=await l.next();if(u){o(),a.close();return}let f=d.byteLength;if(n){let p=i+=f;n(p)}a.enqueue(new Uint8Array(d))}catch(u){throw o(u),u}},cancel(a){return o(a),l.return()}},{highWaterMark:2})},Is=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Gw=(e,t,n)=>t+2<n&&Is(e.charCodeAt(t+1))&&Is(e.charCodeAt(t+2));function Jw(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let s=r.length;const o=r.length;for(let h=0;h<o;h++)if(r.charCodeAt(h)===37&&h+2<o){const x=r.charCodeAt(h+1),v=r.charCodeAt(h+2);Is(x)&&Is(v)&&(s-=2,h+=2)}let a=0,u=o-1;const d=h=>h>=2&&r.charCodeAt(h-2)===37&&r.charCodeAt(h-1)===51&&(r.charCodeAt(h)===68||r.charCodeAt(h)===100);u>=0&&(r.charCodeAt(u)===61?(a++,u--):d(u)&&(a++,u-=3)),a===1&&u>=0&&(r.charCodeAt(u)===61||d(u))&&a++;const p=Math.floor(s/4)*3-(a||0);return p>0?p:0}let i=0;for(let s=0,o=r.length;s<o;s++){const a=r.charCodeAt(s);if(a===37&&Gw(r,s,o))i+=1,s+=2;else if(a<128)i+=1;else if(a<2048)i+=2;else if(a>=55296&&a<=56319&&s+1<o){const u=r.charCodeAt(s+1);u>=56320&&u<=57343?(i+=4,s++):i+=3}else i+=3}return i}const bc="1.18.0",Nd=64*1024,{isFunction:Di}=C,Zw=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Ed=e=>{if(!C.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},jd=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ev=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},tv=e=>{const t=C.global!==void 0&&C.global!==null?C.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=C.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:l,Request:i,Response:s}=e,o=l?Di(l):typeof fetch=="function",a=Di(i),u=Di(s);if(!o)return!1;const d=o&&Di(n),f=o&&(typeof r=="function"?(m=>g=>m.encode(g))(new r):async m=>new Uint8Array(await new i(m).arrayBuffer())),p=a&&d&&jd(()=>{let m=!1;const g=new i(He.origin,{body:new n,method:"POST",get duplex(){return m=!0,"half"}}),y=g.headers.has("Content-Type");return g.body!=null&&g.body.cancel(),m&&!y}),h=u&&d&&jd(()=>C.isReadableStream(new s("").body)),x={stream:h&&(m=>m.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!x[m]&&(x[m]=(g,y)=>{let E=g&&g[m];if(E)return E.call(g);throw new W(`Response type '${m}' is not supported`,W.ERR_NOT_SUPPORT,y)})});const v=async m=>{if(m==null)return 0;if(C.isBlob(m))return m.size;if(C.isSpecCompliantForm(m))return(await new i(He.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(C.isArrayBufferView(m)||C.isArrayBuffer(m))return m.byteLength;if(C.isURLSearchParams(m)&&(m=m+""),C.isString(m))return(await f(m)).byteLength},S=async(m,g)=>{const y=C.toFiniteNumber(m.getContentLength());return y??v(g)};return async m=>{let{url:g,method:y,data:E,signal:T,cancelToken:b,timeout:_,onDownloadProgress:I,onUploadProgress:$,responseType:N,headers:z,withCredentials:U="same-origin",fetchOptions:ne,maxContentLength:R,maxBodyLength:H}=dg(m);const J=C.isNumber(R)&&R>-1,M=C.isNumber(H)&&H>-1,P=X=>C.hasOwnProp(m,X)?m[X]:void 0;let B=l||fetch;N=N?(N+"").toLowerCase():"text";let w=Qw([T,b&&b.toAbortSignal()],_),Q=null;const re=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let k,fe=null;const Te=()=>new W("Request body larger than maxBodyLength limit",W.ERR_BAD_REQUEST,m,Q);try{let X;const V=P("auth");if(V){const te=C.getSafeProp(V,"username")||"",Fe=C.getSafeProp(V,"password")||"";X={username:te,password:Fe}}if(ev(g)){const te=new URL(g,He.origin);if(!X&&(te.username||te.password)){const Fe=Ed(te.username),Ue=Ed(te.password);X={username:Fe,password:Ue}}(te.username||te.password)&&(te.username="",te.password="",g=te.href)}if(X&&(z.delete("authorization"),z.set("Authorization","Basic "+btoa(Zw((X.username||"")+":"+(X.password||""))))),J&&typeof g=="string"&&g.startsWith("data:")&&Jw(g)>R)throw new W("maxContentLength size of "+R+" exceeded",W.ERR_BAD_RESPONSE,m,Q);if(M&&y!=="get"&&y!=="head"){const te=await v(E);if(typeof te=="number"&&isFinite(te)&&(k=te,te>H))throw Te()}const Y=M&&(C.isReadableStream(E)||C.isStream(E)),se=(te,Fe,Ue)=>Cd(te,Nd,nt=>{if(M&&nt>H)throw fe=Te();Fe&&Fe(nt)},Ue);if(p&&y!=="get"&&y!=="head"&&($||Y)){if(k=k??await S(z,E),k!==0||Y){let te=new i(g,{method:"POST",body:E,duplex:"half"}),Fe;if(C.isFormData(E)&&(Fe=te.headers.get("content-type"))&&z.setContentType(Fe),te.body){const[Ue,nt]=$&&vd(k,As(kd($)))||[];E=se(te.body,Ue,nt)}}}else if(Y&&!a&&d&&y!=="get"&&y!=="head")E=se(E);else if(Y&&a&&!p&&y!=="get"&&y!=="head")throw new W("Stream request bodies are not supported by the current fetch implementation",W.ERR_NOT_SUPPORT,m,Q);C.isString(U)||(U=U?"include":"omit");const ge=a&&"credentials"in i.prototype;if(C.isFormData(E)){const te=z.getContentType();te&&/^multipart\/form-data/i.test(te)&&!/boundary=/i.test(te)&&z.delete("content-type")}z.set("User-Agent","axios/"+bc,!1);const ke={...ne,signal:w,method:y.toUpperCase(),headers:tg(z.normalize()),body:E,duplex:"half",credentials:ge?U:void 0};Q=a&&new i(g,ke);let he=await(a?B(Q,ne):B(g,ke));const Wt=Je.from(he.headers);if(J){const te=C.toFiniteNumber(Wt.getContentLength());if(te!=null&&te>R)throw new W("maxContentLength size of "+R+" exceeded",W.ERR_BAD_RESPONSE,m,Q)}const _t=h&&(N==="stream"||N==="response");if(h&&he.body&&(I||J||_t&&re)){const te={};["status","statusText","headers"].forEach(en=>{te[en]=he[en]});const Fe=C.toFiniteNumber(Wt.getContentLength()),[Ue,nt]=I&&vd(Fe,As(kd(I),!0))||[];let pn=0;const pr=en=>{if(J&&(pn=en,pn>R))throw new W("maxContentLength size of "+R+" exceeded",W.ERR_BAD_RESPONSE,m,Q);Ue&&Ue(en)};he=new s(Cd(he.body,Nd,pr,()=>{nt&&nt(),re&&re()}),te)}N=N||"text";let tt=await x[C.findKey(x,N)||"text"](he,m);if(J&&!h&&!_t){let te;if(tt!=null&&(typeof tt.byteLength=="number"?te=tt.byteLength:typeof tt.size=="number"?te=tt.size:typeof tt=="string"&&(te=typeof r=="function"?new r().encode(tt).byteLength:tt.length)),typeof te=="number"&&te>R)throw new W("maxContentLength size of "+R+" exceeded",W.ERR_BAD_RESPONSE,m,Q)}return!_t&&re&&re(),await new Promise((te,Fe)=>{cg(te,Fe,{data:tt,headers:Je.from(he.headers),status:he.status,statusText:he.statusText,config:m,request:Q})})}catch(X){if(re&&re(),w&&w.aborted&&w.reason instanceof W){const V=w.reason;throw V.config=m,Q&&(V.request=Q),X!==V&&(V.cause=X),V}throw fe?(Q&&!fe.request&&(fe.request=Q),fe):X instanceof W?(Q&&!X.request&&(X.request=Q),X):X&&X.name==="TypeError"&&/Load failed|fetch/i.test(X.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,m,Q,X&&X.response),{cause:X.cause||X}):W.from(X,X&&X.code,m,Q,X&&X.response)}}},nv=new Map,pg=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:l}=t,i=[r,l,n];let s=i.length,o=s,a,u,d=nv;for(;o--;)a=i[o],u=d.get(a),u===void 0&&d.set(a,u=o?new Map:tv(t)),d=u;return u};pg();const Sc={http:mw,xhr:Ww,fetch:{get:pg}};C.forEach(Sc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const _d=e=>`- ${e}`,rv=e=>C.isFunction(e)||e===null||e===!1;function lv(e,t){e=C.isArray(e)?e:[e];const{length:n}=e;let r,l;const i={};for(let s=0;s<n;s++){r=e[s];let o;if(l=r,!rv(r)&&(l=Sc[(o=String(r)).toLowerCase()],l===void 0))throw new W(`Unknown adapter '${o}'`);if(l&&(C.isFunction(l)||(l=l.get(t))))break;i[o||"#"+s]=l}if(!l){const s=Object.entries(i).map(([a,u])=>`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=n?s.length>1?`since :
|
|
43
|
+
`+s.map(_d).join(`
|
|
44
|
+
`):" "+_d(s[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return l}const hg={getAdapter:lv,adapters:Sc};function Xo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ui(null,e)}function Td(e){return Xo(e),e.headers=Je.from(e.headers),e.data=Ko.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),hg.getAdapter(e.adapter||ai.adapter,e)(e).then(function(r){Xo(e),e.response=r;try{r.data=Ko.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Je.from(r.headers),r},function(r){if(!ug(r)&&(Xo(e),r&&r.response)){e.response=r.response;try{r.response.data=Ko.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Je.from(r.response.headers)}return Promise.reject(r)})}const lo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lo[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Pd={};lo.transitional=function(t,n,r){function l(i,s){return"[Axios v"+bc+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(t===!1)throw new W(l(s," has been removed"+(n?" in "+n:"")),W.ERR_DEPRECATED);return n&&!Pd[s]&&(Pd[s]=!0,console.warn(l(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,o):!0}};lo.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function iv(e,t,n){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const i=r[l],s=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(s){const o=e[i],a=o===void 0||s(o,i,e);if(a!==!0)throw new W("option "+i+" must be "+a,W.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new W("Unknown option "+i,W.ERR_BAD_OPTION)}}const rs={assertOptions:iv,validators:lo},Xe=rs.validators;let er=class{constructor(t){this.defaults=t||{},this.interceptors={request:new yd,response:new yd}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const i=(()=>{if(!l.stack)return"";const s=l.stack.indexOf(`
|
|
45
|
+
`);return s===-1?"":l.stack.slice(s+1)})();try{if(!r.stack)r.stack=i;else if(i){const s=i.indexOf(`
|
|
46
|
+
`),o=s===-1?-1:i.indexOf(`
|
|
47
|
+
`,s+1),a=o===-1?"":i.slice(o+1);String(r.stack).endsWith(a)||(r.stack+=`
|
|
48
|
+
`+i)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ar(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:i}=n;r!==void 0&&rs.assertOptions(r,{silentJSONParsing:Xe.transitional(Xe.boolean),forcedJSONParsing:Xe.transitional(Xe.boolean),clarifyTimeoutError:Xe.transitional(Xe.boolean),legacyInterceptorReqResOrdering:Xe.transitional(Xe.boolean),advertiseZstdAcceptEncoding:Xe.transitional(Xe.boolean),validateStatusUndefinedResolves:Xe.transitional(Xe.boolean)},!1),l!=null&&(C.isFunction(l)?n.paramsSerializer={serialize:l}:rs.assertOptions(l,{encode:Xe.function,serialize:Xe.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),rs.assertOptions(n,{baseUrl:Xe.spelling("baseURL"),withXsrfToken:Xe.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&C.merge(i.common,i[n.method]);i&&C.forEach(["delete","get","head","post","put","patch","query","common"],x=>{delete i[x]}),n.headers=Je.concat(s,i);const o=[];let a=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(n)===!1)return;a=a&&v.synchronous;const S=n.transitional||vc;S&&S.legacyInterceptorReqResOrdering?o.unshift(v.fulfilled,v.rejected):o.push(v.fulfilled,v.rejected)});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let d,f=0,p;if(!a){const x=[Td.bind(this),void 0];for(x.unshift(...o),x.push(...u),p=x.length,d=Promise.resolve(n);f<p;)d=d.then(x[f++],x[f++]);return d}p=o.length;let h=n;for(;f<p;){const x=o[f++],v=o[f++];try{h=x(h)}catch(S){v.call(this,S);break}}try{d=Td.call(this,h)}catch(x){return Promise.reject(x)}for(f=0,p=u.length;f<p;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=ar(this.defaults,t);const n=fg(t.baseURL,t.url,t.allowAbsoluteUrls,t);return sg(n,t.params,t.paramsSerializer)}};C.forEach(["delete","get","head","options"],function(t){er.prototype[t]=function(n,r){return this.request(ar(r||{},{method:t,url:n,data:r&&C.hasOwnProp(r,"data")?r.data:void 0}))}});C.forEach(["post","put","patch","query"],function(t){function n(r){return function(i,s,o){return this.request(ar(o||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}er.prototype[t]=n(),t!=="query"&&(er.prototype[t+"Form"]=n(!0))});let sv=class mg{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(l=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](l);r._listeners=null}),this.promise.then=l=>{let i;const s=new Promise(o=>{r.subscribe(o),i=o}).then(l);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,o){r.reason||(r.reason=new ui(i,s,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new mg(function(l){t=l}),cancel:t}}};function ov(e){return function(n){return e.apply(null,n)}}function av(e){return C.isObject(e)&&e.isAxiosError===!0}const au={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(au).forEach(([e,t])=>{au[t]=e});function gg(e){const t=new er(e),n=Wm(er.prototype.request,t);return C.extend(n,er.prototype,t,{allOwnKeys:!0}),C.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return gg(ar(e,l))},n}const G=gg(ai);G.Axios=er;G.CanceledError=ui;G.CancelToken=sv;G.isCancel=ug;G.VERSION=bc;G.toFormData=ro;G.AxiosError=W;G.Cancel=G.CanceledError;G.all=function(t){return Promise.all(t)};G.spread=ov;G.isAxiosError=av;G.mergeConfig=ar;G.AxiosHeaders=Je;G.formToJSON=e=>ag(C.isHTMLForm(e)?new FormData(e):e);G.getAdapter=hg.getAdapter;G.HttpStatusCode=au;G.default=G;const{Axios:RE,AxiosError:AE,CanceledError:IE,isCancel:LE,CancelToken:zE,VERSION:OE,all:DE,Cancel:FE,isAxiosError:ME,spread:BE,toFormData:UE,AxiosHeaders:$E,HttpStatusCode:HE,formToJSON:VE,getAdapter:qE,mergeConfig:WE,create:QE}=G;/**
|
|
49
|
+
* @license lucide-react v0.368.0 - ISC
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the ISC license.
|
|
52
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/var uv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
54
|
+
* @license lucide-react v0.368.0 - ISC
|
|
55
|
+
*
|
|
56
|
+
* This source code is licensed under the ISC license.
|
|
57
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
58
|
+
*/const cv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
59
|
+
* @license lucide-react v0.368.0 - ISC
|
|
60
|
+
*
|
|
61
|
+
* This source code is licensed under the ISC license.
|
|
62
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
+
*/const me=(e,t)=>{const n=L.forwardRef(({color:r="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:o="",children:a,...u},d)=>L.createElement("svg",{ref:d,...uv,width:l,height:l,stroke:r,strokeWidth:s?Number(i)*24/Number(l):i,className:["lucide",`lucide-${cv(e)}`,o].join(" "),...u},[...t.map(([f,p])=>L.createElement(f,p)),...Array.isArray(a)?a:[a]]));return n.displayName=`${e}`,n};/**
|
|
64
|
+
* @license lucide-react v0.368.0 - ISC
|
|
65
|
+
*
|
|
66
|
+
* This source code is licensed under the ISC license.
|
|
67
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
68
|
+
*/const Ls=me("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]]);/**
|
|
69
|
+
* @license lucide-react v0.368.0 - ISC
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the ISC license.
|
|
72
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
+
*/const zs=me("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
74
|
+
* @license lucide-react v0.368.0 - ISC
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the ISC license.
|
|
77
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
+
*/const fv=me("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
79
|
+
* @license lucide-react v0.368.0 - ISC
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the ISC license.
|
|
82
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
+
*/const dv=me("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
84
|
+
* @license lucide-react v0.368.0 - ISC
|
|
85
|
+
*
|
|
86
|
+
* This source code is licensed under the ISC license.
|
|
87
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
+
*/const Rd=me("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
89
|
+
* @license lucide-react v0.368.0 - ISC
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the ISC license.
|
|
92
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/const Ad=me("CircleCheckBig",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
94
|
+
* @license lucide-react v0.368.0 - ISC
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the ISC license.
|
|
97
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/const pv=me("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
99
|
+
* @license lucide-react v0.368.0 - ISC
|
|
100
|
+
*
|
|
101
|
+
* This source code is licensed under the ISC license.
|
|
102
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
+
*/const hv=me("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/**
|
|
104
|
+
* @license lucide-react v0.368.0 - ISC
|
|
105
|
+
*
|
|
106
|
+
* This source code is licensed under the ISC license.
|
|
107
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
+
*/const mv=me("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
109
|
+
* @license lucide-react v0.368.0 - ISC
|
|
110
|
+
*
|
|
111
|
+
* This source code is licensed under the ISC license.
|
|
112
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
+
*/const gv=me("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
|
|
114
|
+
* @license lucide-react v0.368.0 - ISC
|
|
115
|
+
*
|
|
116
|
+
* This source code is licensed under the ISC license.
|
|
117
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
+
*/const Rl=me("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
119
|
+
* @license lucide-react v0.368.0 - ISC
|
|
120
|
+
*
|
|
121
|
+
* This source code is licensed under the ISC license.
|
|
122
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
+
*/const Id=me("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
124
|
+
* @license lucide-react v0.368.0 - ISC
|
|
125
|
+
*
|
|
126
|
+
* This source code is licensed under the ISC license.
|
|
127
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
+
*/const xv=me("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
129
|
+
* @license lucide-react v0.368.0 - ISC
|
|
130
|
+
*
|
|
131
|
+
* This source code is licensed under the ISC license.
|
|
132
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
+
*/const Ld=me("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
|
134
|
+
* @license lucide-react v0.368.0 - ISC
|
|
135
|
+
*
|
|
136
|
+
* This source code is licensed under the ISC license.
|
|
137
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
+
*/const Yo=me("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
|
139
|
+
* @license lucide-react v0.368.0 - ISC
|
|
140
|
+
*
|
|
141
|
+
* This source code is licensed under the ISC license.
|
|
142
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
+
*/const yv=me("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);/**
|
|
144
|
+
* @license lucide-react v0.368.0 - ISC
|
|
145
|
+
*
|
|
146
|
+
* This source code is licensed under the ISC license.
|
|
147
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
+
*/const wv=me("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
|
|
149
|
+
* @license lucide-react v0.368.0 - ISC
|
|
150
|
+
*
|
|
151
|
+
* This source code is licensed under the ISC license.
|
|
152
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
+
*/const Hn=me("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
154
|
+
* @license lucide-react v0.368.0 - ISC
|
|
155
|
+
*
|
|
156
|
+
* This source code is licensed under the ISC license.
|
|
157
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
158
|
+
*/const zd=me("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
159
|
+
* @license lucide-react v0.368.0 - ISC
|
|
160
|
+
*
|
|
161
|
+
* This source code is licensed under the ISC license.
|
|
162
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
163
|
+
*/const Xr=me("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
164
|
+
* @license lucide-react v0.368.0 - ISC
|
|
165
|
+
*
|
|
166
|
+
* This source code is licensed under the ISC license.
|
|
167
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
168
|
+
*/const vv=me("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
169
|
+
* @license lucide-react v0.368.0 - ISC
|
|
170
|
+
*
|
|
171
|
+
* This source code is licensed under the ISC license.
|
|
172
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
173
|
+
*/const xg=me("Save",[["path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z",key:"1owoqh"}],["polyline",{points:"17 21 17 13 7 13 7 21",key:"1md35c"}],["polyline",{points:"7 3 7 8 15 8",key:"8nz8an"}]]);/**
|
|
174
|
+
* @license lucide-react v0.368.0 - ISC
|
|
175
|
+
*
|
|
176
|
+
* This source code is licensed under the ISC license.
|
|
177
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
178
|
+
*/const kv=me("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
179
|
+
* @license lucide-react v0.368.0 - ISC
|
|
180
|
+
*
|
|
181
|
+
* This source code is licensed under the ISC license.
|
|
182
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
183
|
+
*/const Od=me("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
|
|
184
|
+
* @license lucide-react v0.368.0 - ISC
|
|
185
|
+
*
|
|
186
|
+
* This source code is licensed under the ISC license.
|
|
187
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
188
|
+
*/const uu=me("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
189
|
+
* @license lucide-react v0.368.0 - ISC
|
|
190
|
+
*
|
|
191
|
+
* This source code is licensed under the ISC license.
|
|
192
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
193
|
+
*/const bv=me("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
|
194
|
+
* @license lucide-react v0.368.0 - ISC
|
|
195
|
+
*
|
|
196
|
+
* This source code is licensed under the ISC license.
|
|
197
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
+
*/const Fi=me("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
|
|
199
|
+
* @license lucide-react v0.368.0 - ISC
|
|
200
|
+
*
|
|
201
|
+
* This source code is licensed under the ISC license.
|
|
202
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
203
|
+
*/const Sv=me("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
204
|
+
* @license lucide-react v0.368.0 - ISC
|
|
205
|
+
*
|
|
206
|
+
* This source code is licensed under the ISC license.
|
|
207
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
+
*/const Mr=me("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
209
|
+
* @license lucide-react v0.368.0 - ISC
|
|
210
|
+
*
|
|
211
|
+
* This source code is licensed under the ISC license.
|
|
212
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
213
|
+
*/const Cv=me("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
214
|
+
* @license lucide-react v0.368.0 - ISC
|
|
215
|
+
*
|
|
216
|
+
* This source code is licensed under the ISC license.
|
|
217
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
+
*/const Nv=me("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
|
|
219
|
+
* @license lucide-react v0.368.0 - ISC
|
|
220
|
+
*
|
|
221
|
+
* This source code is licensed under the ISC license.
|
|
222
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
223
|
+
*/const Ev=me("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function jv({activeView:e,setActiveView:t,chats:n,activeChatId:r,setActiveChatId:l,onCreateChat:i,onDeleteChat:s,toggleRightSidebar:o,isCollapsed:a,setIsCollapsed:u}){return a?c.jsxs("div",{className:"flex flex-col items-center justify-between border-r bg-slate-50 py-4 w-12 h-screen select-none transition-all duration-300 shrink-0",children:[c.jsxs("div",{className:"flex flex-col items-center gap-6 w-full",children:[c.jsx("button",{onClick:()=>u(!1),className:"p-1.5 rounded hover:bg-slate-200 text-slate-500",title:"Expand Sidebar",children:c.jsx(dv,{size:18})}),c.jsx("div",{className:"h-px bg-slate-200 w-8"}),c.jsx("button",{onClick:()=>{t("chat")},className:`p-2 rounded transition-colors ${e==="chat"?"bg-slate-200 text-slate-900 font-medium":"text-slate-600 hover:bg-slate-100"}`,title:"Chats",children:c.jsx(zd,{size:20})}),c.jsx("button",{onClick:()=>{t("studio")},className:`p-2 rounded transition-colors ${e==="studio"?"bg-slate-200 text-slate-900 font-medium":"text-slate-600 hover:bg-slate-100"}`,title:"Knowledge Studio",children:c.jsx(Rl,{size:20})}),c.jsx("button",{onClick:()=>{t("schema")},className:`p-2 rounded transition-colors ${e==="schema"?"bg-slate-200 text-slate-900 font-medium":"text-slate-600 hover:bg-slate-100"}`,title:"Schema & Playbooks",children:c.jsx(Ls,{size:20})})]}),c.jsx("button",{onClick:o,className:"p-2 rounded hover:bg-slate-200 text-slate-600",title:"Settings",children:c.jsx(uu,{size:20})})]}):c.jsxs("div",{className:"flex flex-col justify-between border-r bg-slate-50 w-64 h-screen select-none transition-all duration-300 relative shrink-0",children:[c.jsxs("div",{className:"flex flex-col overflow-y-auto flex-1 p-4 gap-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-xl font-bold tracking-tight text-slate-900",children:"SlothQuery"}),c.jsx("button",{onClick:()=>u(!0),className:"p-1 rounded hover:bg-slate-200 text-slate-500",title:"Collapse Sidebar",children:c.jsx(fv,{size:16})})]}),c.jsx("div",{className:"h-px bg-slate-200 my-1"}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsxs("button",{onClick:()=>t("chat"),className:`flex items-center gap-2.5 px-3 py-2 text-sm rounded transition-colors ${e==="chat"?"bg-slate-200 text-slate-900 font-semibold":"text-slate-600 hover:bg-slate-100 hover:text-slate-900"}`,children:[c.jsx(zd,{size:16}),"Chats"]}),c.jsxs("button",{onClick:()=>t("studio"),className:`flex items-center gap-2.5 px-3 py-2 text-sm rounded transition-colors ${e==="studio"?"bg-slate-200 text-slate-900 font-semibold":"text-slate-600 hover:bg-slate-100 hover:text-slate-900"}`,children:[c.jsx(Rl,{size:16}),"Knowledge Studio"]}),c.jsxs("button",{onClick:()=>t("schema"),className:`flex items-center gap-2.5 px-3 py-2 text-sm rounded transition-colors ${e==="schema"?"bg-slate-200 text-slate-900 font-semibold":"text-slate-600 hover:bg-slate-100 hover:text-slate-900"}`,children:[c.jsx(Ls,{size:16}),"Schema Explorer"]})]}),c.jsx("div",{className:"h-px bg-slate-200 my-1"}),e==="chat"&&c.jsxs("div",{className:"flex flex-col gap-2 overflow-y-auto max-h-[40vh]",children:[c.jsxs("div",{className:"flex items-center justify-between px-1",children:[c.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider text-slate-500",children:"Recent Chats"}),c.jsxs("button",{onClick:i,className:"flex items-center gap-1 text-xs text-slate-600 hover:text-slate-900 px-1 py-0.5 rounded hover:bg-slate-200 font-semibold",children:[c.jsx(Xr,{size:12})," New"]})]}),n.length===0?c.jsx("div",{className:"text-xs text-slate-400 italic px-2 py-4 text-center",children:"No chats created yet."}):c.jsx("div",{className:"flex flex-col gap-0.5",children:n.map(d=>c.jsxs("div",{className:`group flex items-center justify-between px-2.5 py-2 text-sm rounded cursor-pointer transition-colors ${r===d.id?"bg-slate-200 text-slate-900 font-semibold shadow-subtle":"text-slate-600 hover:bg-slate-100"}`,onClick:()=>l(d.id),children:[c.jsx("span",{className:"truncate flex-1 pr-2",children:d.title||"New Chat"}),c.jsx("button",{onClick:f=>{f.stopPropagation(),s(d.id)},className:"opacity-0 group-hover:opacity-100 p-0.5 hover:bg-slate-300 rounded text-slate-500 hover:text-slate-800 transition-opacity",children:c.jsx(Mr,{size:12})})]},d.id))})]})]}),c.jsx("div",{className:"p-4 border-t bg-slate-100/50",children:c.jsxs("button",{onClick:o,className:"flex items-center gap-2.5 w-full px-3 py-2 text-sm text-slate-600 hover:bg-slate-200 hover:text-slate-900 rounded transition-colors font-medium",children:[c.jsx(uu,{size:16}),"Settings & Configurations"]})})]})}const Dd=e=>{switch(e){case"openai":return"OpenAI API Key";case"anthropic":return"Anthropic API Key";case"google":return"Google Gemini API Key";case"groq":return"Groq API Key";case"openrouter":return"OpenRouter API Key";case"deepseek":return"DeepSeek API Key";default:return"API Key"}},_v=e=>{switch(e){case"openai":return"e.g. gpt-4o, gpt-4o-mini";case"anthropic":return"e.g. claude-3-5-sonnet-20241022";case"google":return"e.g. gemini-1.5-flash, gemini-1.5-pro";case"groq":return"e.g. llama-3.3-70b-versatile, mixtral-8x7b-32768";case"openrouter":return"e.g. google/gemma-2-9b-it:free";case"deepseek":return"e.g. deepseek-chat";default:return"e.g. model-name"}};function Tv({isOpen:e,onClose:t,providers:n,activeProviderId:r,onAddProvider:l,onSetActiveProvider:i,onDeleteProvider:s,onReindex:o,isReindexing:a}){const[u,d]=L.useState(!1),[f,p]=L.useState("openai"),[h,x]=L.useState(""),[v,S]=L.useState(""),[m,g]=L.useState(""),[y,E]=L.useState(!1),[T,b]=L.useState(!1),[_,I]=L.useState(null),[$,N]=L.useState(""),[z,U]=L.useState("");if(!e)return null;const ne=async()=>{var M,P;if(!v.trim()||!m.trim()){I({success:!1,message:"Model Name and API Key are required to test connection."});return}b(!0),I(null);try{await G.post("http://127.0.0.1:8000/api/providers/test",{provider_type:f,model_name:v,api_key:m}),I({success:!0,message:"Connection successful!"})}catch(B){I({success:!1,message:((P=(M=B.response)==null?void 0:M.data)==null?void 0:P.detail)||"Connection failed. Check your API key and model name."})}finally{b(!1)}},R=async M=>{var P,B;if(M.preventDefault(),!(!h.trim()||!v.trim()||!m.trim())){E(!0),I(null);try{await l({provider_type:f,profile_name:h,model_name:v,api_key:m}),x(""),S(""),g(""),d(!1)}catch(w){I({success:!1,message:((B=(P=w.response)==null?void 0:P.data)==null?void 0:B.detail)||"Failed to save provider config."})}finally{E(!1)}}},H=async()=>{try{window.open("http://127.0.0.1:8000/api/export","_blank")}catch(M){console.error("Export failed",M)}},J=async M=>{var w,Q,re;const P=(w=M.target.files)==null?void 0:w[0];if(!P)return;N("Importing..."),U("");const B=new FormData;B.append("file",P);try{await G.post("http://127.0.0.1:8000/api/import",B,{headers:{"Content-Type":"multipart/form-data"}}),N("Imported successfully! Rebuilding vector store..."),o()}catch(k){U(((re=(Q=k.response)==null?void 0:Q.data)==null?void 0:re.detail)||"Import failed"),N("")}};return c.jsxs("div",{className:"fixed right-0 top-0 z-40 bg-white border-l shadow-xl w-80 h-screen select-none flex flex-col justify-between transition-all duration-300",children:[c.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[c.jsxs("h2",{className:"font-bold text-slate-850 text-sm flex items-center gap-1.5 text-slate-800",children:[c.jsx(gv,{size:16,className:"text-slate-700"})," Settings & Configs"]}),c.jsx("button",{onClick:t,className:"p-1 rounded hover:bg-slate-100 text-slate-500 hover:text-slate-800",children:c.jsx(Ev,{size:18})})]}),c.jsxs("div",{className:"flex-1 overflow-y-auto p-4 flex flex-col gap-6",children:[c.jsxs("div",{className:"flex flex-col gap-3",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h3",{className:"text-[11px] font-bold uppercase tracking-wider text-slate-500 flex items-center gap-1.5",children:"LLM Profiles"}),c.jsxs("button",{onClick:()=>{d(!u),I(null)},className:"text-xs font-semibold text-blue-600 hover:text-blue-700 hover:underline flex items-center gap-1 px-1.5 py-0.5 rounded",children:[c.jsx(Xr,{size:12})," Add New"]})]}),u&&c.jsxs("form",{onSubmit:R,className:"p-3 border rounded-lg bg-slate-50 flex flex-col gap-2.5 shadow-subtle border-slate-200",children:[c.jsxs("div",{className:"flex flex-col gap-0.5",children:[c.jsx("label",{className:"text-[10px] font-bold text-slate-500",children:"Provider Type"}),c.jsxs("select",{value:f,onChange:M=>p(M.target.value),className:"text-xs border rounded p-1.5 bg-white text-slate-800 focus:outline-none focus:ring-1 focus:ring-slate-400",children:[c.jsx("option",{value:"openai",children:"OpenAI"}),c.jsx("option",{value:"anthropic",children:"Anthropic"}),c.jsx("option",{value:"google",children:"Google Gemini"}),c.jsx("option",{value:"groq",children:"Groq"}),c.jsx("option",{value:"openrouter",children:"OpenRouter"}),c.jsx("option",{value:"deepseek",children:"DeepSeek"})]})]}),c.jsxs("div",{className:"flex flex-col gap-0.5",children:[c.jsx("label",{className:"text-[10px] font-bold text-slate-500",children:"Profile Label / Name"}),c.jsx("input",{type:"text",value:h,onChange:M=>x(M.target.value),placeholder:"e.g. Work OpenRouter",className:"text-xs border rounded p-1.5 focus:outline-none focus:ring-1 focus:ring-slate-400 bg-white",required:!0})]}),c.jsxs("div",{className:"flex flex-col gap-0.5",children:[c.jsx("label",{className:"text-[10px] font-bold text-slate-500",children:"Model Name"}),c.jsx("input",{type:"text",value:v,onChange:M=>S(M.target.value),placeholder:_v(f),className:"text-xs border rounded p-1.5 focus:outline-none focus:ring-1 focus:ring-slate-400 bg-white font-mono",required:!0})]}),c.jsxs("div",{className:"flex flex-col gap-0.5",children:[c.jsx("label",{className:"text-[10px] font-bold text-slate-500",children:Dd(f)}),c.jsxs("div",{className:"relative",children:[c.jsx("input",{type:"password",value:m,onChange:M=>g(M.target.value),placeholder:`Enter ${Dd(f)}`,className:"text-xs border rounded p-1.5 w-full pr-7 focus:outline-none focus:ring-1 focus:ring-slate-400 bg-white",required:!0}),c.jsx(yv,{size:11,className:"absolute right-2 top-2.5 text-slate-400"})]})]}),_&&c.jsxs("div",{className:`p-2 rounded text-[10px] flex items-start gap-1.5 leading-normal max-w-full overflow-hidden ${_.success?"bg-emerald-50 text-emerald-800 border border-emerald-200":"bg-rose-50 text-rose-800 border border-rose-200"}`,children:[_.success?c.jsx(zs,{size:12,className:"shrink-0 mt-0.5 text-emerald-600"}):c.jsx(Cv,{size:12,className:"shrink-0 mt-0.5 text-rose-600"}),c.jsx("span",{className:"break-words break-all font-medium flex-1 min-w-0",children:_.message})]}),c.jsxs("div",{className:"flex justify-end gap-1.5 mt-1 border-t pt-2 border-slate-200",children:[c.jsx("button",{type:"button",onClick:()=>{d(!1),I(null)},className:"text-[10px] font-bold px-2.5 py-1.5 border rounded hover:bg-white text-slate-600",children:"Cancel"}),c.jsx("button",{type:"button",onClick:ne,disabled:T||y,className:"text-[10px] font-bold bg-white border border-slate-350 hover:bg-slate-100 text-slate-700 px-2.5 py-1.5 rounded disabled:opacity-50",children:T?"Testing...":"Test Connection"}),c.jsx("button",{type:"submit",disabled:y||T,className:"text-[10px] font-bold bg-blue-600 hover:bg-blue-700 text-white px-2.5 py-1.5 rounded disabled:opacity-50",children:y?"Saving...":"Save & Activate"})]})]}),c.jsx("div",{className:"max-h-56 overflow-y-auto flex flex-col gap-1.5 border border-slate-100 p-1 rounded-lg bg-slate-50/50",children:n.length===0?c.jsx("div",{className:"text-xs text-slate-400 italic py-6 text-center",children:"No profiles configured yet."}):n.map(M=>c.jsxs("div",{className:`flex items-center justify-between p-2.5 rounded-lg border text-xs cursor-pointer transition-colors ${M.is_active?"bg-white border-blue-500 font-medium shadow-subtle":"bg-white hover:bg-slate-50 border-slate-200"}`,onClick:()=>i(M.id),children:[c.jsxs("div",{className:"flex flex-col gap-0.5 truncate flex-1 pr-2",children:[c.jsx("span",{className:"truncate text-slate-800 font-semibold",children:M.profile_name}),c.jsxs("span",{className:"text-[9px] text-slate-500 uppercase tracking-tight font-mono",children:[M.provider_type," • ",M.model_name]})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[M.is_active&&c.jsx("span",{className:"text-[9px] bg-blue-50 text-blue-700 border border-blue-200 px-1.5 py-0.5 rounded font-bold uppercase tracking-wider",children:"Active"}),c.jsx("button",{onClick:P=>{P.stopPropagation(),s(M.id)},className:"p-1 hover:bg-slate-100 rounded text-slate-400 hover:text-rose-600 transition-colors",children:c.jsx(Mr,{size:12})})]})]},M.id))})]}),c.jsx("div",{className:"h-px bg-slate-100"}),c.jsxs("div",{className:"flex flex-col gap-2.5",children:[c.jsxs("h3",{className:"text-xs font-semibold uppercase tracking-wider text-slate-500 flex items-center gap-1.5",children:[c.jsx(bv,{size:14})," Vector Store"]}),c.jsx("p",{className:"text-[10px] text-slate-500 leading-normal",children:"BGE embeddings (`BAAI/bge-small-en-v1.5`) are generated locally on SQLite modifications. If indices drift, trigger a full rebuild below."}),c.jsxs("button",{onClick:o,disabled:a,className:"flex items-center justify-center gap-2 w-full text-xs border p-2 rounded hover:bg-slate-50 text-slate-700 hover:text-slate-900 font-semibold shadow-subtle disabled:opacity-50",children:[c.jsx(vv,{size:12,className:a?"animate-spin":""}),a?"Reindexing...":"Re-index Knowledge Base"]})]}),c.jsx("div",{className:"h-px bg-slate-100"}),c.jsxs("div",{className:"flex flex-col gap-2.5",children:[c.jsxs("h3",{className:"text-xs font-semibold uppercase tracking-wider text-slate-500 flex items-center gap-1.5",children:[c.jsx(Id,{size:14})," Data Management"]}),c.jsx("p",{className:"text-[10px] text-slate-500 leading-normal",children:"Port your intelligence vaults, queries, and playbooks via `.slothkb` exports. Vector store will automatically rebuild on import."}),c.jsxs("div",{className:"grid grid-cols-2 gap-2 mt-1",children:[c.jsxs("button",{onClick:H,className:"flex items-center justify-center gap-1.5 border p-2 rounded hover:bg-slate-50 text-xs text-slate-700 hover:text-slate-900 font-semibold shadow-subtle",children:[c.jsx(Id,{size:12})," Export KB"]}),c.jsxs("label",{className:"flex items-center justify-center gap-1.5 border p-2 rounded hover:bg-slate-50 text-xs text-slate-700 hover:text-slate-900 font-semibold shadow-subtle cursor-pointer",children:[c.jsx(Nv,{size:12})," Import KB",c.jsx("input",{type:"file",accept:".slothkb",onChange:J,className:"hidden"})]})]}),$&&c.jsx("span",{className:"text-[10px] text-emerald-600 font-medium mt-1",children:$}),z&&c.jsx("span",{className:"text-[10px] text-rose-600 font-medium mt-1",children:z})]})]}),c.jsx("div",{className:"p-4 border-t bg-slate-50 flex items-center justify-center",children:c.jsx("span",{className:"text-[10px] text-slate-400 tracking-wider font-semibold",children:"SLOTHQUERY v1.0 — LOCAL ONLY"})})]})}function Pv(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Rv=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Av=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Iv={};function Fd(e,t){return(Iv.jsx?Av:Rv).test(e)}const Lv=/[ \t\n\f\r]/g;function zv(e){return typeof e=="object"?e.type==="text"?Md(e.value):!1:Md(e)}function Md(e){return e.replace(Lv,"")===""}class ci{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ci.prototype.normal={};ci.prototype.property={};ci.prototype.space=void 0;function yg(e,t){const n={},r={};for(const l of e)Object.assign(n,l.property),Object.assign(r,l.normal);return new ci(n,r,t)}function cu(e){return e.toLowerCase()}class xt{constructor(t,n){this.attribute=n,this.property=t}}xt.prototype.attribute="";xt.prototype.booleanish=!1;xt.prototype.boolean=!1;xt.prototype.commaOrSpaceSeparated=!1;xt.prototype.commaSeparated=!1;xt.prototype.defined=!1;xt.prototype.mustUseProperty=!1;xt.prototype.number=!1;xt.prototype.overloadedBoolean=!1;xt.prototype.property="";xt.prototype.spaceSeparated=!1;xt.prototype.space=void 0;let Ov=0;const le=dr(),Ie=dr(),fu=dr(),D=dr(),ye=dr(),tr=dr(),vt=dr();function dr(){return 2**++Ov}const du=Object.freeze(Object.defineProperty({__proto__:null,boolean:le,booleanish:Ie,commaOrSpaceSeparated:vt,commaSeparated:tr,number:D,overloadedBoolean:fu,spaceSeparated:ye},Symbol.toStringTag,{value:"Module"})),Go=Object.keys(du);class Cc extends xt{constructor(t,n,r,l){let i=-1;if(super(t,n),Bd(this,"space",l),typeof r=="number")for(;++i<Go.length;){const s=Go[i];Bd(this,Go[i],(r&du[s])===du[s])}}}Cc.prototype.defined=!0;function Bd(e,t,n){n&&(e[t]=n)}function nl(e){const t={},n={};for(const[r,l]of Object.entries(e.properties)){const i=new Cc(r,e.transform(e.attributes||{},r),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[cu(r)]=r,n[cu(i.attribute)]=r}return new ci(t,n,e.space)}const wg=nl({properties:{ariaActiveDescendant:null,ariaAtomic:Ie,ariaAutoComplete:null,ariaBusy:Ie,ariaChecked:Ie,ariaColCount:D,ariaColIndex:D,ariaColSpan:D,ariaControls:ye,ariaCurrent:null,ariaDescribedBy:ye,ariaDetails:null,ariaDisabled:Ie,ariaDropEffect:ye,ariaErrorMessage:null,ariaExpanded:Ie,ariaFlowTo:ye,ariaGrabbed:Ie,ariaHasPopup:null,ariaHidden:Ie,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ye,ariaLevel:D,ariaLive:null,ariaModal:Ie,ariaMultiLine:Ie,ariaMultiSelectable:Ie,ariaOrientation:null,ariaOwns:ye,ariaPlaceholder:null,ariaPosInSet:D,ariaPressed:Ie,ariaReadOnly:Ie,ariaRelevant:null,ariaRequired:Ie,ariaRoleDescription:ye,ariaRowCount:D,ariaRowIndex:D,ariaRowSpan:D,ariaSelected:Ie,ariaSetSize:D,ariaSort:null,ariaValueMax:D,ariaValueMin:D,ariaValueNow:D,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function vg(e,t){return t in e?e[t]:t}function kg(e,t){return vg(e,t.toLowerCase())}const Dv=nl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:tr,acceptCharset:ye,accessKey:ye,action:null,allow:null,allowFullScreen:le,allowPaymentRequest:le,allowUserMedia:le,alpha:le,alt:null,as:null,async:le,autoCapitalize:null,autoComplete:ye,autoFocus:le,autoPlay:le,blocking:ye,capture:null,charSet:null,checked:le,cite:null,className:ye,closedBy:null,colorSpace:null,cols:D,colSpan:D,command:null,commandFor:null,content:null,contentEditable:Ie,controls:le,controlsList:ye,coords:D|tr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:le,defer:le,dir:null,dirName:null,disabled:le,download:fu,draggable:Ie,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:le,formTarget:null,headers:ye,height:D,hidden:fu,high:D,href:null,hrefLang:null,htmlFor:ye,httpEquiv:ye,id:null,imageSizes:null,imageSrcSet:null,inert:le,inputMode:null,integrity:null,is:null,isMap:le,itemId:null,itemProp:ye,itemRef:ye,itemScope:le,itemType:ye,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:le,low:D,manifest:null,max:null,maxLength:D,media:null,method:null,min:null,minLength:D,multiple:le,muted:le,name:null,nonce:null,noModule:le,noValidate:le,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:le,optimum:D,pattern:null,ping:ye,placeholder:null,playsInline:le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:le,referrerPolicy:null,rel:ye,required:le,reversed:le,rows:D,rowSpan:D,sandbox:ye,scope:null,scoped:le,seamless:le,selected:le,shadowRootClonable:le,shadowRootCustomElementRegistry:le,shadowRootDelegatesFocus:le,shadowRootMode:null,shadowRootSerializable:le,shape:null,size:D,sizes:null,slot:null,span:D,spellCheck:Ie,src:null,srcDoc:null,srcLang:null,srcSet:null,start:D,step:null,style:null,tabIndex:D,target:null,title:null,translate:null,type:null,typeMustMatch:le,useMap:null,value:Ie,width:D,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ye,axis:null,background:null,bgColor:null,border:D,borderColor:null,bottomMargin:D,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:le,declare:le,event:null,face:null,frame:null,frameBorder:null,hSpace:D,leftMargin:D,link:null,longDesc:null,lowSrc:null,marginHeight:D,marginWidth:D,noResize:le,noHref:le,noShade:le,noWrap:le,object:null,profile:null,prompt:null,rev:null,rightMargin:D,rules:null,scheme:null,scrolling:Ie,standby:null,summary:null,text:null,topMargin:D,valueType:null,version:null,vAlign:null,vLink:null,vSpace:D,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:le,disablePictureInPicture:le,disableRemotePlayback:le,exportParts:tr,part:ye,prefix:null,property:null,results:D,security:null,unselectable:null},space:"html",transform:kg}),Fv=nl({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:vt,accentHeight:D,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:D,amplitude:D,arabicForm:null,ascent:D,attributeName:null,attributeType:null,azimuth:D,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:D,by:null,calcMode:null,capHeight:D,className:ye,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:D,diffuseConstant:D,direction:null,display:null,dur:null,divisor:D,dominantBaseline:null,download:le,dx:null,dy:null,edgeMode:null,editable:null,elevation:D,enableBackground:null,end:null,event:null,exponent:D,externalResourcesRequired:null,fill:null,fillOpacity:D,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:tr,g2:tr,glyphName:tr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:D,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:D,horizOriginX:D,horizOriginY:D,id:null,ideographic:D,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:D,k:D,k1:D,k2:D,k3:D,k4:D,kernelMatrix:vt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:D,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:D,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:D,overlineThickness:D,paintOrder:null,panose1:null,path:null,pathLength:D,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ye,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:D,pointsAtY:D,pointsAtZ:D,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:vt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:vt,rev:vt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:vt,requiredFeatures:vt,requiredFonts:vt,requiredFormats:vt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:D,specularExponent:D,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:D,strikethroughThickness:D,string:null,stroke:null,strokeDashArray:vt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:D,strokeOpacity:D,strokeWidth:null,style:null,surfaceScale:D,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:vt,tabIndex:D,tableValues:null,target:null,targetX:D,targetY:D,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:vt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:D,underlineThickness:D,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:D,values:null,vAlphabetic:D,vMathematical:D,vectorEffect:null,vHanging:D,vIdeographic:D,version:null,vertAdvY:D,vertOriginX:D,vertOriginY:D,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:D,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:vg}),bg=nl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Sg=nl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:kg}),Cg=nl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Mv={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Bv=/[A-Z]/g,Ud=/-[a-z]/g,Uv=/^data[-\w.:]+$/i;function $v(e,t){const n=cu(t);let r=t,l=xt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Uv.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Ud,Vv);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Ud.test(i)){let s=i.replace(Bv,Hv);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}l=Cc}return new l(r,t)}function Hv(e){return"-"+e.toLowerCase()}function Vv(e){return e.charAt(1).toUpperCase()}const qv=yg([wg,Dv,bg,Sg,Cg],"html"),Nc=yg([wg,Fv,bg,Sg,Cg],"svg");function Wv(e){return e.join(" ").trim()}var Ec={},$d=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Qv=/\n/g,Kv=/^\s*/,Xv=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Yv=/^:\s*/,Gv=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Jv=/^[;\s]*/,Zv=/^\s+|\s+$/g,ek=`
|
|
224
|
+
`,Hd="/",Vd="*",Qn="",tk="comment",nk="declaration";function rk(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function l(x){var v=x.match(Qv);v&&(n+=v.length);var S=x.lastIndexOf(ek);r=~S?x.length-S:r+x.length}function i(){var x={line:n,column:r};return function(v){return v.position=new s(x),u(),v}}function s(x){this.start=x,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(x){var v=new Error(t.source+":"+n+":"+r+": "+x);if(v.reason=x,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function a(x){var v=x.exec(e);if(v){var S=v[0];return l(S),e=e.slice(S.length),v}}function u(){a(Kv)}function d(x){var v;for(x=x||[];v=f();)v!==!1&&x.push(v);return x}function f(){var x=i();if(!(Hd!=e.charAt(0)||Vd!=e.charAt(1))){for(var v=2;Qn!=e.charAt(v)&&(Vd!=e.charAt(v)||Hd!=e.charAt(v+1));)++v;if(v+=2,Qn===e.charAt(v-1))return o("End of comment missing");var S=e.slice(2,v-2);return r+=2,l(S),e=e.slice(v),r+=2,x({type:tk,comment:S})}}function p(){var x=i(),v=a(Xv);if(v){if(f(),!a(Yv))return o("property missing ':'");var S=a(Gv),m=x({type:nk,property:qd(v[0].replace($d,Qn)),value:S?qd(S[0].replace($d,Qn)):Qn});return a(Jv),m}}function h(){var x=[];d(x);for(var v;v=p();)v!==!1&&(x.push(v),d(x));return x}return u(),h()}function qd(e){return e?e.replace(Zv,Qn):Qn}var lk=rk,ik=ss&&ss.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ec,"__esModule",{value:!0});Ec.default=ok;const sk=ik(lk);function ok(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,sk.default)(e),l=typeof t=="function";return r.forEach(i=>{if(i.type!=="declaration")return;const{property:s,value:o}=i;l?t(s,o,i):o&&(n=n||{},n[s]=o)}),n}var io={};Object.defineProperty(io,"__esModule",{value:!0});io.camelCase=void 0;var ak=/^--[a-zA-Z0-9_-]+$/,uk=/-([a-z])/g,ck=/^[^-]+$/,fk=/^-(webkit|moz|ms|o|khtml)-/,dk=/^-(ms)-/,pk=function(e){return!e||ck.test(e)||ak.test(e)},hk=function(e,t){return t.toUpperCase()},Wd=function(e,t){return"".concat(t,"-")},mk=function(e,t){return t===void 0&&(t={}),pk(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(dk,Wd):e=e.replace(fk,Wd),e.replace(uk,hk))};io.camelCase=mk;var gk=ss&&ss.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},xk=gk(Ec),yk=io;function pu(e,t){var n={};return!e||typeof e!="string"||(0,xk.default)(e,function(r,l){r&&l&&(n[(0,yk.camelCase)(r,t)]=l)}),n}pu.default=pu;var wk=pu;const vk=bu(wk),Ng=Eg("end"),jc=Eg("start");function Eg(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function kk(e){const t=jc(e),n=Ng(e);if(t&&n)return{start:t,end:n}}function Al(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Qd(e.position):"start"in e||"end"in e?Qd(e):"line"in e||"column"in e?hu(e):""}function hu(e){return Kd(e&&e.line)+":"+Kd(e&&e.column)}function Qd(e){return hu(e&&e.start)+"-"+hu(e&&e.end)}function Kd(e){return e&&typeof e=="number"?e:1}class et extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let l="",i={},s=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?l=t:!i.cause&&t&&(s=!0,l=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?i.ruleId=r:(i.source=r.slice(0,a),i.ruleId=r.slice(a+1))}if(!i.place&&i.ancestors&&i.ancestors){const a=i.ancestors[i.ancestors.length-1];a&&(i.place=a.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=o?o.line:void 0,this.name=Al(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}et.prototype.file="";et.prototype.name="";et.prototype.reason="";et.prototype.message="";et.prototype.stack="";et.prototype.column=void 0;et.prototype.line=void 0;et.prototype.ancestors=void 0;et.prototype.cause=void 0;et.prototype.fatal=void 0;et.prototype.place=void 0;et.prototype.ruleId=void 0;et.prototype.source=void 0;const _c={}.hasOwnProperty,bk=new Map,Sk=/[A-Z]/g,Ck=new Set(["table","tbody","thead","tfoot","tr"]),Nk=new Set(["td","th"]),jg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ek(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Lk(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Ik(n,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Nc:qv,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=_g(l,e,void 0);return i&&typeof i!="string"?i:l.create(e,l.Fragment,{children:i||void 0},void 0)}function _g(e,t,n){if(t.type==="element")return jk(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return _k(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Pk(e,t,n);if(t.type==="mdxjsEsm")return Tk(e,t);if(t.type==="root")return Rk(e,t,n);if(t.type==="text")return Ak(e,t)}function jk(e,t,n){const r=e.schema;let l=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(l=Nc,e.schema=l),e.ancestors.push(t);const i=Pg(e,t.tagName,!1),s=zk(e,t);let o=Pc(e,t);return Ck.has(t.tagName)&&(o=o.filter(function(a){return typeof a=="string"?!zv(a):!0})),Tg(e,s,i,t),Tc(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function _k(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Zl(e,t.position)}function Tk(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Zl(e,t.position)}function Pk(e,t,n){const r=e.schema;let l=r;t.name==="svg"&&r.space==="html"&&(l=Nc,e.schema=l),e.ancestors.push(t);const i=t.name===null?e.Fragment:Pg(e,t.name,!0),s=Ok(e,t),o=Pc(e,t);return Tg(e,s,i,t),Tc(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function Rk(e,t,n){const r={};return Tc(r,Pc(e,t)),e.create(t,e.Fragment,r,n)}function Ak(e,t){return t.value}function Tg(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Tc(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Ik(e,t,n){return r;function r(l,i,s,o){const u=Array.isArray(s.children)?n:t;return o?u(i,s,o):u(i,s)}}function Lk(e,t){return n;function n(r,l,i,s){const o=Array.isArray(i.children),a=jc(r);return t(l,i,s,o,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function zk(e,t){const n={};let r,l;for(l in t.properties)if(l!=="children"&&_c.call(t.properties,l)){const i=Dk(e,l,t.properties[l]);if(i){const[s,o]=i;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&Nk.has(t.tagName)?r=o:n[s]=o}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Ok(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const s=i.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Zl(e,t.position);else{const l=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,i=e.evaluater.evaluateExpression(o.expression)}else Zl(e,t.position);else i=r.value===null?!0:r.value;n[l]=i}return n}function Pc(e,t){const n=[];let r=-1;const l=e.passKeys?new Map:bk;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const a=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(a){const u=l.get(a)||0;s=a+"-"+u,l.set(a,u+1)}}const o=_g(e,i,s);o!==void 0&&n.push(o)}return n}function Dk(e,t,n){const r=$v(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Pv(n):Wv(n)),r.property==="style"){let l=typeof n=="object"?n:Fk(e,String(n));return e.stylePropertyNameCase==="css"&&(l=Mk(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&r.space?Mv[r.property]||r.property:r.attribute,n]}}function Fk(e,t){try{return vk(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,l=new et("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=jg+"#cannot-parse-style-attribute",l}}function Pg(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let i=-1,s;for(;++i<l.length;){const o=Fd(l[i])?{type:"Identifier",name:l[i]}:{type:"Literal",value:l[i]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(i&&o.type==="Literal"),optional:!1}:o}r=s}else r=Fd(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const l=r.value;return _c.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(r);Zl(e)}function Zl(e,t){const n=new et("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=jg+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Mk(e){const t={};let n;for(n in e)_c.call(e,n)&&(t[Bk(n)]=e[n]);return t}function Bk(e){let t=e.replace(Sk,Uk);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Uk(e){return"-"+e.toLowerCase()}const Jo={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},$k={};function Rc(e,t){const n=$k,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Rg(e,r,l)}function Rg(e,t,n){if(Hk(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Xd(e.children,t,n)}return Array.isArray(e)?Xd(e,t,n):""}function Xd(e,t,n){const r=[];let l=-1;for(;++l<e.length;)r[l]=Rg(e[l],t,n);return r.join("")}function Hk(e){return!!(e&&typeof e=="object")}const Yd=document.createElement("i");function Ac(e){const t="&"+e+";";Yd.innerHTML=t;const n=Yd.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ct(e,t,n,r){const l=e.length;let i=0,s;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);i<r.length;)s=r.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function Rt(e,t){return e.length>0?(Ct(e,e.length,0,t),e):t}const Gd={}.hasOwnProperty;function Ag(e){const t={};let n=-1;for(;++n<e.length;)Vk(t,e[n]);return t}function Vk(e,t){let n;for(n in t){const l=(Gd.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let s;if(i)for(s in i){Gd.call(l,s)||(l[s]=[]);const o=i[s];qk(l[s],Array.isArray(o)?o:o?[o]:[])}}}function qk(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ct(e,0,0,r)}function Ig(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ht(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const it=Un(/[A-Za-z]/),Ge=Un(/[\dA-Za-z]/),Wk=Un(/[#-'*+\--9=?A-Z^-~]/);function Os(e){return e!==null&&(e<32||e===127)}const mu=Un(/\d/),Qk=Un(/[\dA-Fa-f]/),Kk=Un(/[!-/:-@[-`{-~]/);function Z(e){return e!==null&&e<-2}function we(e){return e!==null&&(e<0||e===32)}function ae(e){return e===-2||e===-1||e===32}const so=Un(new RegExp("\\p{P}|\\p{S}","u")),ur=Un(/\s/);function Un(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function rl(e){const t=[];let n=-1,r=0,l=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===37&&Ge(e.charCodeAt(n+1))&&Ge(e.charCodeAt(n+2)))l=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const o=e.charCodeAt(n+1);i<56320&&o>56319&&o<57344?(s=String.fromCharCode(i,o),l=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+l+1,s=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}function ce(e,t,n,r){const l=r?r-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(a){return ae(a)?(e.enter(n),o(a)):t(a)}function o(a){return ae(a)&&i++<l?(e.consume(a),o):(e.exit(n),t(a))}}const Xk={tokenize:Yk};function Yk(e){const t=e.attempt(this.parser.constructs.contentInitial,r,l);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ce(e,t,"linePrefix")}function l(o){return e.enter("paragraph"),i(o)}function i(o){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return Z(o)?(e.consume(o),e.exit("chunkText"),i):(e.consume(o),s)}}const Gk={tokenize:Jk},Jd={tokenize:Zk};function Jk(e){const t=this,n=[];let r=0,l,i,s;return o;function o(y){if(r<n.length){const E=n[r];return t.containerState=E[1],e.attempt(E[0].continuation,a,u)(y)}return u(y)}function a(y){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&g();const E=t.events.length;let T=E,b;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){b=t.events[T][1].end;break}m(r);let _=E;for(;_<t.events.length;)t.events[_][1].end={...b},_++;return Ct(t.events,T+1,0,t.events.slice(E)),t.events.length=_,u(y)}return o(y)}function u(y){if(r===n.length){if(!l)return p(y);if(l.currentConstruct&&l.currentConstruct.concrete)return x(y);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Jd,d,f)(y)}function d(y){return l&&g(),m(r),p(y)}function f(y){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,x(y)}function p(y){return t.containerState={},e.attempt(Jd,h,x)(y)}function h(y){return r++,n.push([t.currentConstruct,t.containerState]),p(y)}function x(y){if(y===null){l&&g(),m(0),e.consume(y);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:i}),v(y)}function v(y){if(y===null){S(e.exit("chunkFlow"),!0),m(0),e.consume(y);return}return Z(y)?(e.consume(y),S(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(y),v)}function S(y,E){const T=t.sliceStream(y);if(E&&T.push(null),y.previous=i,i&&(i.next=y),i=y,l.defineSkip(y.start),l.write(T),t.parser.lazy[y.start.line]){let b=l.events.length;for(;b--;)if(l.events[b][1].start.offset<s&&(!l.events[b][1].end||l.events[b][1].end.offset>s))return;const _=t.events.length;let I=_,$,N;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if($){N=t.events[I][1].end;break}$=!0}for(m(r),b=_;b<t.events.length;)t.events[b][1].end={...N},b++;Ct(t.events,I+1,0,t.events.slice(_)),t.events.length=b}}function m(y){let E=n.length;for(;E-- >y;){const T=n[E];t.containerState=T[1],T[0].exit.call(t,e)}n.length=y}function g(){l.write([null]),i=void 0,l=void 0,t.containerState._closeFlow=void 0}}function Zk(e,t,n){return ce(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Yr(e){if(e===null||we(e)||ur(e))return 1;if(so(e))return 2}function oo(e,t,n){const r=[];let l=-1;for(;++l<e.length;){const i=e[l].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const gu={name:"attention",resolveAll:eb,tokenize:tb};function eb(e,t){let n=-1,r,l,i,s,o,a,u,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},p={...e[n][1].start};Zd(f,-a),Zd(p,a),s={type:a>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},o={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},i={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},l={type:a>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Rt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Rt(u,[["enter",l,t],["enter",s,t],["exit",s,t],["enter",i,t]]),u=Rt(u,oo(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Rt(u,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=Rt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Ct(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function tb(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,l=Yr(r);let i;return s;function s(a){return i=a,e.enter("attentionSequence"),o(a)}function o(a){if(a===i)return e.consume(a),o;const u=e.exit("attentionSequence"),d=Yr(a),f=!d||d===2&&l||n.includes(a),p=!l||l===2&&d||n.includes(r);return u._open=!!(i===42?f:f&&(l||!p)),u._close=!!(i===42?p:p&&(d||!f)),t(a)}}function Zd(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const nb={name:"autolink",tokenize:rb};function rb(e,t,n){let r=0;return l;function l(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(h){return it(h)?(e.consume(h),s):h===64?n(h):u(h)}function s(h){return h===43||h===45||h===46||Ge(h)?(r=1,o(h)):u(h)}function o(h){return h===58?(e.consume(h),r=0,a):(h===43||h===45||h===46||Ge(h))&&r++<32?(e.consume(h),o):(r=0,u(h))}function a(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Os(h)?n(h):(e.consume(h),a)}function u(h){return h===64?(e.consume(h),d):Wk(h)?(e.consume(h),u):n(h)}function d(h){return Ge(h)?f(h):n(h)}function f(h){return h===46?(e.consume(h),r=0,d):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||Ge(h))&&r++<63){const x=h===45?p:f;return e.consume(h),x}return n(h)}}const fi={partial:!0,tokenize:lb};function lb(e,t,n){return r;function r(i){return ae(i)?ce(e,l,"linePrefix")(i):l(i)}function l(i){return i===null||Z(i)?t(i):n(i)}}const Lg={continuation:{tokenize:sb},exit:ob,name:"blockQuote",tokenize:ib};function ib(e,t,n){const r=this;return l;function l(s){if(s===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return n(s)}function i(s){return ae(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function sb(e,t,n){const r=this;return l;function l(s){return ae(s)?ce(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(Lg,t,n)(s)}}function ob(e){e.exit("blockQuote")}const zg={name:"characterEscape",tokenize:ab};function ab(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),l}function l(i){return Kk(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const Og={name:"characterReference",tokenize:ub};function ub(e,t,n){const r=this;let l=0,i,s;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),a}function a(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,s=Ge,d(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=Qk,d):(e.enter("characterReferenceValue"),i=7,s=mu,d(f))}function d(f){if(f===59&&l){const p=e.exit("characterReferenceValue");return s===Ge&&!Ac(r.sliceSerialize(p))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&l++<i?(e.consume(f),d):n(f)}}const ep={partial:!0,tokenize:fb},tp={concrete:!0,name:"codeFenced",tokenize:cb};function cb(e,t,n){const r=this,l={partial:!0,tokenize:T};let i=0,s=0,o;return a;function a(b){return u(b)}function u(b){const _=r.events[r.events.length-1];return i=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,o=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(b)}function d(b){return b===o?(s++,e.consume(b),d):s<3?n(b):(e.exit("codeFencedFenceSequence"),ae(b)?ce(e,f,"whitespace")(b):f(b))}function f(b){return b===null||Z(b)?(e.exit("codeFencedFence"),r.interrupt?t(b):e.check(ep,v,E)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||Z(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(b)):ae(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ce(e,h,"whitespace")(b)):b===96&&b===o?n(b):(e.consume(b),p)}function h(b){return b===null||Z(b)?f(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(b))}function x(b){return b===null||Z(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(b)):b===96&&b===o?n(b):(e.consume(b),x)}function v(b){return e.attempt(l,E,S)(b)}function S(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),m}function m(b){return i>0&&ae(b)?ce(e,g,"linePrefix",i+1)(b):g(b)}function g(b){return b===null||Z(b)?e.check(ep,v,E)(b):(e.enter("codeFlowValue"),y(b))}function y(b){return b===null||Z(b)?(e.exit("codeFlowValue"),g(b)):(e.consume(b),y)}function E(b){return e.exit("codeFenced"),t(b)}function T(b,_,I){let $=0;return N;function N(H){return b.enter("lineEnding"),b.consume(H),b.exit("lineEnding"),z}function z(H){return b.enter("codeFencedFence"),ae(H)?ce(b,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):U(H)}function U(H){return H===o?(b.enter("codeFencedFenceSequence"),ne(H)):I(H)}function ne(H){return H===o?($++,b.consume(H),ne):$>=s?(b.exit("codeFencedFenceSequence"),ae(H)?ce(b,R,"whitespace")(H):R(H)):I(H)}function R(H){return H===null||Z(H)?(b.exit("codeFencedFence"),_(H)):I(H)}}}function fb(e,t,n){const r=this;return l;function l(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Zo={name:"codeIndented",tokenize:pb},db={partial:!0,tokenize:hb};function pb(e,t,n){const r=this;return l;function l(u){return e.enter("codeIndented"),ce(e,i,"linePrefix",5)(u)}function i(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?a(u):Z(u)?e.attempt(db,s,a)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||Z(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function a(u){return e.exit("codeIndented"),t(u)}}function hb(e,t,n){const r=this;return l;function l(s){return r.parser.lazy[r.now().line]?n(s):Z(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),l):ce(e,i,"linePrefix",5)(s)}function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):Z(s)?l(s):n(s)}}const mb={name:"codeText",previous:xb,resolve:gb,tokenize:yb};function gb(e){let t=e.length-4,n=3,r,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)l===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(l=r):(r===t||e[r][1].type==="lineEnding")&&(e[l][1].type="codeTextData",r!==l+2&&(e[l][1].end=e[r-1][1].end,e.splice(l+2,r-l-2),t-=r-l-2,r=l+2),l=void 0);return e}function xb(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function yb(e,t,n){let r=0,l,i;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),r++,o):(e.exit("codeTextSequence"),a(f))}function a(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),a):f===96?(i=e.enter("codeTextSequence"),l=0,d(f)):Z(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),a):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||Z(f)?(e.exit("codeTextData"),a(f)):(e.consume(f),u)}function d(f){return f===96?(e.consume(f),l++,d):l===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(i.type="codeTextData",u(f))}}class wb{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const l=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return r&&gl(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),gl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),gl(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);gl(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);gl(this.left,n.reverse())}}}function gl(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Dg(e){const t={};let n=-1,r,l,i,s,o,a,u;const d=new wb(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,i=0,i<a.length&&a[i][1].type==="lineEndingBlank"&&(i+=2),i<a.length&&a[i][1].type==="content"))for(;++i<a.length&&a[i][1].type!=="content";)a[i][1].type==="chunkText"&&(a[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,vb(d,n)),n=t[n],u=!0);else if(r[1]._container){for(i=n,l=void 0;i--;)if(s=d.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(l&&(d.get(l)[1].type="lineEndingBlank"),s[1].type="lineEnding",l=i);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;l&&(r[1].end={...d.get(l)[1].start},o=d.slice(l,n),o.unshift(r),d.splice(l,n-l+1,o))}}return Ct(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function vb(e,t){const n=e.get(t)[1],r=e.get(t)[2];let l=t-1;const i=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,a=[],u={};let d,f,p=-1,h=n,x=0,v=0;const S=[v];for(;h;){for(;e.get(++l)[1]!==h;);i.push(l),h._tokenizer||(d=r.sliceStream(h),h.next||d.push(null),f&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(d),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(v=p+1,S.push(v),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):S.pop(),p=S.length;p--;){const m=o.slice(S[p],S[p+1]),g=i.pop();a.push([g,g+m.length-1]),e.splice(g,2,m)}for(a.reverse(),p=-1;++p<a.length;)u[x+a[p][0]]=x+a[p][1],x+=a[p][1]-a[p][0]-1;return u}const kb={resolve:Sb,tokenize:Cb},bb={partial:!0,tokenize:Nb};function Sb(e){return Dg(e),e}function Cb(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),l(o)}function l(o){return o===null?i(o):Z(o)?e.check(bb,s,i)(o):(e.consume(o),l)}function i(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,l}}function Nb(e,t,n){const r=this;return l;function l(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ce(e,i,"linePrefix")}function i(s){if(s===null||Z(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Fg(e,t,n,r,l,i,s,o,a){const u=a||Number.POSITIVE_INFINITY;let d=0;return f;function f(m){return m===60?(e.enter(r),e.enter(l),e.enter(i),e.consume(m),e.exit(i),p):m===null||m===32||m===41||Os(m)?n(m):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),v(m))}function p(m){return m===62?(e.enter(i),e.consume(m),e.exit(i),e.exit(l),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(o),p(m)):m===null||m===60||Z(m)?n(m):(e.consume(m),m===92?x:h)}function x(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function v(m){return!d&&(m===null||m===41||we(m))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(m)):d<u&&m===40?(e.consume(m),d++,v):m===41?(e.consume(m),d--,v):m===null||m===32||m===40||Os(m)?n(m):(e.consume(m),m===92?S:v)}function S(m){return m===40||m===41||m===92?(e.consume(m),v):v(m)}}function Mg(e,t,n,r,l,i){const s=this;let o=0,a;return u;function u(h){return e.enter(r),e.enter(l),e.consume(h),e.exit(l),e.enter(i),d}function d(h){return o>999||h===null||h===91||h===93&&!a||h===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):h===93?(e.exit(i),e.enter(l),e.consume(h),e.exit(l),e.exit(r),t):Z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||Z(h)||o++>999?(e.exit("chunkString"),d(h)):(e.consume(h),a||(a=!ae(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),o++,f):f(h)}}function Bg(e,t,n,r,l,i){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(l),e.consume(p),e.exit(l),s=p===40?41:p,a):n(p)}function a(p){return p===s?(e.enter(l),e.consume(p),e.exit(l),e.exit(r),t):(e.enter(i),u(p))}function u(p){return p===s?(e.exit(i),a(s)):p===null?n(p):Z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),ce(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===s||p===null||Z(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:d)}function f(p){return p===s||p===92?(e.consume(p),d):d(p)}}function Il(e,t){let n;return r;function r(l){return Z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):ae(l)?ce(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}const Eb={name:"definition",tokenize:_b},jb={partial:!0,tokenize:Tb};function _b(e,t,n){const r=this;let l;return i;function i(h){return e.enter("definition"),s(h)}function s(h){return Mg.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return l=Ht(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),a):n(h)}function a(h){return we(h)?Il(e,u)(h):u(h)}function u(h){return Fg(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function d(h){return e.attempt(jb,f,f)(h)}function f(h){return ae(h)?ce(e,p,"whitespace")(h):p(h)}function p(h){return h===null||Z(h)?(e.exit("definition"),r.parser.defined.push(l),t(h)):n(h)}}function Tb(e,t,n){return r;function r(o){return we(o)?Il(e,l)(o):n(o)}function l(o){return Bg(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function i(o){return ae(o)?ce(e,s,"whitespace")(o):s(o)}function s(o){return o===null||Z(o)?t(o):n(o)}}const Pb={name:"hardBreakEscape",tokenize:Rb};function Rb(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),l}function l(i){return Z(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const Ab={name:"headingAtx",resolve:Ib,tokenize:Lb};function Ib(e,t){let n=e.length-2,r=3,l,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(l={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ct(e,r,n-r+1,[["enter",l,t],["enter",i,t],["exit",i,t],["exit",l,t]])),e}function Lb(e,t,n){let r=0;return l;function l(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&r++<6?(e.consume(d),s):d===null||we(d)?(e.exit("atxHeadingSequence"),o(d)):n(d)}function o(d){return d===35?(e.enter("atxHeadingSequence"),a(d)):d===null||Z(d)?(e.exit("atxHeading"),t(d)):ae(d)?ce(e,o,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function a(d){return d===35?(e.consume(d),a):(e.exit("atxHeadingSequence"),o(d))}function u(d){return d===null||d===35||we(d)?(e.exit("atxHeadingText"),o(d)):(e.consume(d),u)}}const zb=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],np=["pre","script","style","textarea"],Ob={concrete:!0,name:"htmlFlow",resolveTo:Mb,tokenize:Bb},Db={partial:!0,tokenize:$b},Fb={partial:!0,tokenize:Ub};function Mb(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Bb(e,t,n){const r=this;let l,i,s,o,a;return u;function u(k){return d(k)}function d(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),f}function f(k){return k===33?(e.consume(k),p):k===47?(e.consume(k),i=!0,v):k===63?(e.consume(k),l=3,r.interrupt?t:w):it(k)?(e.consume(k),s=String.fromCharCode(k),S):n(k)}function p(k){return k===45?(e.consume(k),l=2,h):k===91?(e.consume(k),l=5,o=0,x):it(k)?(e.consume(k),l=4,r.interrupt?t:w):n(k)}function h(k){return k===45?(e.consume(k),r.interrupt?t:w):n(k)}function x(k){const fe="CDATA[";return k===fe.charCodeAt(o++)?(e.consume(k),o===fe.length?r.interrupt?t:U:x):n(k)}function v(k){return it(k)?(e.consume(k),s=String.fromCharCode(k),S):n(k)}function S(k){if(k===null||k===47||k===62||we(k)){const fe=k===47,Te=s.toLowerCase();return!fe&&!i&&np.includes(Te)?(l=1,r.interrupt?t(k):U(k)):zb.includes(s.toLowerCase())?(l=6,fe?(e.consume(k),m):r.interrupt?t(k):U(k)):(l=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(k):i?g(k):y(k))}return k===45||Ge(k)?(e.consume(k),s+=String.fromCharCode(k),S):n(k)}function m(k){return k===62?(e.consume(k),r.interrupt?t:U):n(k)}function g(k){return ae(k)?(e.consume(k),g):N(k)}function y(k){return k===47?(e.consume(k),N):k===58||k===95||it(k)?(e.consume(k),E):ae(k)?(e.consume(k),y):N(k)}function E(k){return k===45||k===46||k===58||k===95||Ge(k)?(e.consume(k),E):T(k)}function T(k){return k===61?(e.consume(k),b):ae(k)?(e.consume(k),T):y(k)}function b(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),a=k,_):ae(k)?(e.consume(k),b):I(k)}function _(k){return k===a?(e.consume(k),a=null,$):k===null||Z(k)?n(k):(e.consume(k),_)}function I(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||we(k)?T(k):(e.consume(k),I)}function $(k){return k===47||k===62||ae(k)?y(k):n(k)}function N(k){return k===62?(e.consume(k),z):n(k)}function z(k){return k===null||Z(k)?U(k):ae(k)?(e.consume(k),z):n(k)}function U(k){return k===45&&l===2?(e.consume(k),J):k===60&&l===1?(e.consume(k),M):k===62&&l===4?(e.consume(k),Q):k===63&&l===3?(e.consume(k),w):k===93&&l===5?(e.consume(k),B):Z(k)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(Db,re,ne)(k)):k===null||Z(k)?(e.exit("htmlFlowData"),ne(k)):(e.consume(k),U)}function ne(k){return e.check(Fb,R,re)(k)}function R(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),H}function H(k){return k===null||Z(k)?ne(k):(e.enter("htmlFlowData"),U(k))}function J(k){return k===45?(e.consume(k),w):U(k)}function M(k){return k===47?(e.consume(k),s="",P):U(k)}function P(k){if(k===62){const fe=s.toLowerCase();return np.includes(fe)?(e.consume(k),Q):U(k)}return it(k)&&s.length<8?(e.consume(k),s+=String.fromCharCode(k),P):U(k)}function B(k){return k===93?(e.consume(k),w):U(k)}function w(k){return k===62?(e.consume(k),Q):k===45&&l===2?(e.consume(k),w):U(k)}function Q(k){return k===null||Z(k)?(e.exit("htmlFlowData"),re(k)):(e.consume(k),Q)}function re(k){return e.exit("htmlFlow"),t(k)}}function Ub(e,t,n){const r=this;return l;function l(s){return Z(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):n(s)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function $b(e,t,n){return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(fi,t,n)}}const Hb={name:"htmlText",tokenize:Vb};function Vb(e,t,n){const r=this;let l,i,s;return o;function o(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),a}function a(w){return w===33?(e.consume(w),u):w===47?(e.consume(w),T):w===63?(e.consume(w),y):it(w)?(e.consume(w),I):n(w)}function u(w){return w===45?(e.consume(w),d):w===91?(e.consume(w),i=0,x):it(w)?(e.consume(w),g):n(w)}function d(w){return w===45?(e.consume(w),h):n(w)}function f(w){return w===null?n(w):w===45?(e.consume(w),p):Z(w)?(s=f,M(w)):(e.consume(w),f)}function p(w){return w===45?(e.consume(w),h):f(w)}function h(w){return w===62?J(w):w===45?p(w):f(w)}function x(w){const Q="CDATA[";return w===Q.charCodeAt(i++)?(e.consume(w),i===Q.length?v:x):n(w)}function v(w){return w===null?n(w):w===93?(e.consume(w),S):Z(w)?(s=v,M(w)):(e.consume(w),v)}function S(w){return w===93?(e.consume(w),m):v(w)}function m(w){return w===62?J(w):w===93?(e.consume(w),m):v(w)}function g(w){return w===null||w===62?J(w):Z(w)?(s=g,M(w)):(e.consume(w),g)}function y(w){return w===null?n(w):w===63?(e.consume(w),E):Z(w)?(s=y,M(w)):(e.consume(w),y)}function E(w){return w===62?J(w):y(w)}function T(w){return it(w)?(e.consume(w),b):n(w)}function b(w){return w===45||Ge(w)?(e.consume(w),b):_(w)}function _(w){return Z(w)?(s=_,M(w)):ae(w)?(e.consume(w),_):J(w)}function I(w){return w===45||Ge(w)?(e.consume(w),I):w===47||w===62||we(w)?$(w):n(w)}function $(w){return w===47?(e.consume(w),J):w===58||w===95||it(w)?(e.consume(w),N):Z(w)?(s=$,M(w)):ae(w)?(e.consume(w),$):J(w)}function N(w){return w===45||w===46||w===58||w===95||Ge(w)?(e.consume(w),N):z(w)}function z(w){return w===61?(e.consume(w),U):Z(w)?(s=z,M(w)):ae(w)?(e.consume(w),z):$(w)}function U(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),l=w,ne):Z(w)?(s=U,M(w)):ae(w)?(e.consume(w),U):(e.consume(w),R)}function ne(w){return w===l?(e.consume(w),l=void 0,H):w===null?n(w):Z(w)?(s=ne,M(w)):(e.consume(w),ne)}function R(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||we(w)?$(w):(e.consume(w),R)}function H(w){return w===47||w===62||we(w)?$(w):n(w)}function J(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function M(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),P}function P(w){return ae(w)?ce(e,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):B(w)}function B(w){return e.enter("htmlTextData"),s(w)}}const Ic={name:"labelEnd",resolveAll:Kb,resolveTo:Xb,tokenize:Yb},qb={tokenize:Gb},Wb={tokenize:Jb},Qb={tokenize:Zb};function Kb(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const l=r.type==="labelImage"?4:2;r.type="data",t+=l}}return e.length!==n.length&&Ct(e,0,e.length,n),e}function Xb(e,t){let n=e.length,r=0,l,i,s,o;for(;n--;)if(l=e[n][1],i){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[n][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(i=n,l.type!=="labelLink")){r=2;break}}else l.type==="labelEnd"&&(s=n);const a={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},d={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",a,t],["enter",u,t]],o=Rt(o,e.slice(i+1,i+r+3)),o=Rt(o,[["enter",d,t]]),o=Rt(o,oo(t.parser.constructs.insideSpan.null,e.slice(i+r+4,s-3),t)),o=Rt(o,[["exit",d,t],e[s-2],e[s-1],["exit",u,t]]),o=Rt(o,e.slice(s+1)),o=Rt(o,[["exit",a,t]]),Ct(e,i,e.length,o),e}function Yb(e,t,n){const r=this;let l=r.events.length,i,s;for(;l--;)if((r.events[l][1].type==="labelImage"||r.events[l][1].type==="labelLink")&&!r.events[l][1]._balanced){i=r.events[l][1];break}return o;function o(p){return i?i._inactive?f(p):(s=r.parser.defined.includes(Ht(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),a):n(p)}function a(p){return p===40?e.attempt(qb,d,s?d:f)(p):p===91?e.attempt(Wb,d,s?u:f)(p):s?d(p):f(p)}function u(p){return e.attempt(Qb,d,f)(p)}function d(p){return t(p)}function f(p){return i._balanced=!0,n(p)}}function Gb(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),l}function l(f){return we(f)?Il(e,i)(f):i(f)}function i(f){return f===41?d(f):Fg(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return we(f)?Il(e,a)(f):d(f)}function o(f){return n(f)}function a(f){return f===34||f===39||f===40?Bg(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):d(f)}function u(f){return we(f)?Il(e,d)(f):d(f)}function d(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function Jb(e,t,n){const r=this;return l;function l(o){return Mg.call(r,e,i,s,"reference","referenceMarker","referenceString")(o)}function i(o){return r.parser.defined.includes(Ht(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function Zb(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),l}function l(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const eS={name:"labelStartImage",resolveAll:Ic.resolveAll,tokenize:tS};function tS(e,t,n){const r=this;return l;function l(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),i}function i(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const nS={name:"labelStartLink",resolveAll:Ic.resolveAll,tokenize:rS};function rS(e,t,n){const r=this;return l;function l(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const ea={name:"lineEnding",tokenize:lS};function lS(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ce(e,t,"linePrefix")}}const ls={name:"thematicBreak",tokenize:iS};function iS(e,t,n){let r=0,l;return i;function i(u){return e.enter("thematicBreak"),s(u)}function s(u){return l=u,o(u)}function o(u){return u===l?(e.enter("thematicBreakSequence"),a(u)):r>=3&&(u===null||Z(u))?(e.exit("thematicBreak"),t(u)):n(u)}function a(u){return u===l?(e.consume(u),r++,a):(e.exit("thematicBreakSequence"),ae(u)?ce(e,o,"whitespace")(u):o(u))}}const ct={continuation:{tokenize:uS},exit:fS,name:"list",tokenize:aS},sS={partial:!0,tokenize:dS},oS={partial:!0,tokenize:cS};function aS(e,t,n){const r=this,l=r.events[r.events.length-1];let i=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,s=0;return o;function o(h){const x=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:mu(h)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(ls,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(h)}return n(h)}function a(h){return mu(h)&&++s<10?(e.consume(h),a):(!r.interrupt||s<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(fi,r.interrupt?n:d,e.attempt(sS,p,f))}function d(h){return r.containerState.initialBlankLine=!0,i++,p(h)}function f(h){return ae(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function uS(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(fi,l,i);function l(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ce(e,t,"listItemIndent",r.containerState.size+1)(o)}function i(o){return r.containerState.furtherBlankLines||!ae(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(oS,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ce(e,e.attempt(ct,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function cS(e,t,n){const r=this;return ce(e,l,"listItemIndent",r.containerState.size+1);function l(i){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(i):n(i)}}function fS(e){e.exit(this.containerState.type)}function dS(e,t,n){const r=this;return ce(e,l,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(i){const s=r.events[r.events.length-1];return!ae(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const rp={name:"setextUnderline",resolveTo:pS,tokenize:hS};function pS(e,t){let n=e.length,r,l,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(l=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",i?(e.splice(l,0,["enter",s,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function hS(e,t,n){const r=this;let l;return i;function i(u){let d=r.events.length,f;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){f=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),l=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===l?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),ae(u)?ce(e,a,"lineSuffix")(u):a(u))}function a(u){return u===null||Z(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const mS={tokenize:gS};function gS(e){const t=this,n=e.attempt(fi,r,e.attempt(this.parser.constructs.flowInitial,l,ce(e,e.attempt(this.parser.constructs.flow,l,e.attempt(kb,l)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const xS={resolveAll:$g()},yS=Ug("string"),wS=Ug("text");function Ug(e){return{resolveAll:$g(e==="text"?vS:void 0),tokenize:t};function t(n){const r=this,l=this.parser.constructs[e],i=n.attempt(l,s,o);return s;function s(d){return u(d)?i(d):o(d)}function o(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),a}function a(d){return u(d)?(n.exit("data"),i(d)):(n.consume(d),a)}function u(d){if(d===null)return!0;const f=l[d];let p=-1;if(f)for(;++p<f.length;){const h=f[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function $g(e){return t;function t(n,r){let l=-1,i;for(;++l<=n.length;)i===void 0?n[l]&&n[l][1].type==="data"&&(i=l,l++):(!n[l]||n[l][1].type!=="data")&&(l!==i+2&&(n[i][1].end=n[l-1][1].end,n.splice(i+2,l-i-2),l=i+2),i=void 0);return e?e(n,r):n}}function vS(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],l=t.sliceStream(r);let i=l.length,s=-1,o=0,a;for(;i--;){const u=l[i];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(u===-2)a=!0,o++;else if(u!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const u={type:n===e.length||a||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const kS={42:ct,43:ct,45:ct,48:ct,49:ct,50:ct,51:ct,52:ct,53:ct,54:ct,55:ct,56:ct,57:ct,62:Lg},bS={91:Eb},SS={[-2]:Zo,[-1]:Zo,32:Zo},CS={35:Ab,42:ls,45:[rp,ls],60:Ob,61:rp,95:ls,96:tp,126:tp},NS={38:Og,92:zg},ES={[-5]:ea,[-4]:ea,[-3]:ea,33:eS,38:Og,42:gu,60:[nb,Hb],91:nS,92:[Pb,zg],93:Ic,95:gu,96:mb},jS={null:[gu,xS]},_S={null:[42,95]},TS={null:[]},PS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:_S,contentInitial:bS,disable:TS,document:kS,flow:CS,flowInitial:SS,insideSpan:jS,string:NS,text:ES},Symbol.toStringTag,{value:"Module"}));function RS(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const l={},i=[];let s=[],o=[];const a={attempt:_(T),check:_(b),consume:g,enter:y,exit:E,interrupt:_(b,{interrupt:!0})},u={code:null,containerState:{},defineSkip:v,events:[],now:x,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:f};let d=t.tokenize.call(u,a);return t.resolveAll&&i.push(t),u;function f(z){return s=Rt(s,z),S(),s[s.length-1]!==null?[]:(I(t,0),u.events=oo(i,u.events,u),u.events)}function p(z,U){return IS(h(z),U)}function h(z){return AS(s,z)}function x(){const{_bufferIndex:z,_index:U,line:ne,column:R,offset:H}=r;return{_bufferIndex:z,_index:U,line:ne,column:R,offset:H}}function v(z){l[z.line]=z.column,N()}function S(){let z;for(;r._index<s.length;){const U=s[r._index];if(typeof U=="string")for(z=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===z&&r._bufferIndex<U.length;)m(U.charCodeAt(r._bufferIndex));else m(U)}}function m(z){d=d(z)}function g(z){Z(z)?(r.line++,r.column=1,r.offset+=z===-3?2:1,N()):z!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=z}function y(z,U){const ne=U||{};return ne.type=z,ne.start=x(),u.events.push(["enter",ne,u]),o.push(ne),ne}function E(z){const U=o.pop();return U.end=x(),u.events.push(["exit",U,u]),U}function T(z,U){I(z,U.from)}function b(z,U){U.restore()}function _(z,U){return ne;function ne(R,H,J){let M,P,B,w;return Array.isArray(R)?re(R):"tokenize"in R?re([R]):Q(R);function Q(X){return V;function V(Y){const se=Y!==null&&X[Y],ge=Y!==null&&X.null,ke=[...Array.isArray(se)?se:se?[se]:[],...Array.isArray(ge)?ge:ge?[ge]:[]];return re(ke)(Y)}}function re(X){return M=X,P=0,X.length===0?J:k(X[P])}function k(X){return V;function V(Y){return w=$(),B=X,X.partial||(u.currentConstruct=X),X.name&&u.parser.constructs.disable.null.includes(X.name)?Te():X.tokenize.call(U?Object.assign(Object.create(u),U):u,a,fe,Te)(Y)}}function fe(X){return z(B,w),H}function Te(X){return w.restore(),++P<M.length?k(M[P]):J}}}function I(z,U){z.resolveAll&&!i.includes(z)&&i.push(z),z.resolve&&Ct(u.events,U,u.events.length-U,z.resolve(u.events.slice(U),u)),z.resolveTo&&(u.events=z.resolveTo(u.events,u))}function $(){const z=x(),U=u.previous,ne=u.currentConstruct,R=u.events.length,H=Array.from(o);return{from:R,restore:J};function J(){r=z,u.previous=U,u.currentConstruct=ne,u.events.length=R,o=H,N()}}function N(){r.line in l&&r.column<2&&(r.column=l[r.line],r.offset+=l[r.line]-1)}}function AS(e,t){const n=t.start._index,r=t.start._bufferIndex,l=t.end._index,i=t.end._bufferIndex;let s;if(n===l)s=[e[n].slice(r,i)];else{if(s=e.slice(n,l),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}i>0&&s.push(e[l].slice(0,i))}return s}function IS(e,t){let n=-1;const r=[];let l;for(;++n<e.length;){const i=e[n];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
|
|
225
|
+
`;break}case-3:{s=`\r
|
|
226
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&l)continue;s=" ";break}default:s=String.fromCharCode(i)}l=i===-2,r.push(s)}return r.join("")}function LS(e){const r={constructs:Ag([PS,...(e||{}).extensions||[]]),content:l(Xk),defined:[],document:l(Gk),flow:l(mS),lazy:{},string:l(yS),text:l(wS)};return r;function l(i){return s;function s(o){return RS(r,i,o)}}}function zS(e){for(;!Dg(e););return e}const lp=/[\0\t\n\r]/g;function OS(){let e=1,t="",n=!0,r;return l;function l(i,s,o){const a=[];let u,d,f,p,h;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),f=0,t="",n&&(i.charCodeAt(0)===65279&&f++,n=void 0);f<i.length;){if(lp.lastIndex=f,u=lp.exec(i),p=u&&u.index!==void 0?u.index:i.length,h=i.charCodeAt(p),!u){t=i.slice(f);break}if(h===10&&f===p&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),f<p&&(a.push(i.slice(f,p)),e+=p-f),h){case 0:{a.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,a.push(-2);e++<d;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}f=p+1}return o&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}const DS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function FS(e){return e.replace(DS,MS)}function MS(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const l=n.charCodeAt(1),i=l===120||l===88;return Ig(n.slice(i?2:1),i?16:10)}return Ac(n)||e}const Hg={}.hasOwnProperty;function BS(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),US(n)(zS(LS(n).document().write(OS()(e,t,!0))))}function US(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(nt),autolinkProtocol:$,autolinkEmail:$,atxHeading:i(tt),blockQuote:i(ge),characterEscape:$,characterReference:$,codeFenced:i(ke),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(ke,s),codeText:i(he,s),codeTextData:$,data:$,codeFlowValue:$,definition:i(Wt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(_t),hardBreakEscape:i(te),hardBreakTrailing:i(te),htmlFlow:i(Fe,s),htmlFlowData:$,htmlText:i(Fe,s),htmlTextData:$,image:i(Ue),label:s,link:i(nt),listItem:i(pr),listItemValue:p,listOrdered:i(pn,f),listUnordered:i(pn),paragraph:i(en),reference:k,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(tt),strong:i(ll),thematicBreak:i(hi)},exit:{atxHeading:a(),atxHeadingSequence:T,autolink:a(),autolinkEmail:se,autolinkProtocol:Y,blockQuote:a(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:Te,characterReferenceMarkerNumeric:Te,characterReferenceValue:X,characterReference:V,codeFenced:a(S),codeFencedFence:v,codeFencedFenceInfo:h,codeFencedFenceMeta:x,codeFlowValue:N,codeIndented:a(m),codeText:a(H),codeTextData:N,data:N,definition:a(),definitionDestinationString:E,definitionLabelString:g,definitionTitleString:y,emphasis:a(),hardBreakEscape:a(U),hardBreakTrailing:a(U),htmlFlow:a(ne),htmlFlowData:N,htmlText:a(R),htmlTextData:N,image:a(M),label:B,labelText:P,lineEnding:z,link:a(J),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:fe,resourceDestinationString:w,resourceTitleString:Q,resource:re,setextHeading:a(I),setextHeadingLineSequence:_,setextHeadingText:b,strong:a(),thematicBreak:a()}};Vg(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(A){let F={type:"root",children:[]};const ee={stack:[F],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:d,data:n},ie=[];let de=-1;for(;++de<A.length;)if(A[de][1].type==="listOrdered"||A[de][1].type==="listUnordered")if(A[de][0]==="enter")ie.push(de);else{const We=ie.pop();de=l(A,We,de)}for(de=-1;++de<A.length;){const We=t[A[de][0]];Hg.call(We,A[de][1].type)&&We[A[de][1].type].call(Object.assign({sliceSerialize:A[de][2].sliceSerialize},ee),A[de][1])}if(ee.tokenStack.length>0){const We=ee.tokenStack[ee.tokenStack.length-1];(We[1]||ip).call(ee,void 0,We[0])}for(F.position={start:kn(A.length>0?A[0][1].start:{line:1,column:1,offset:0}),end:kn(A.length>0?A[A.length-2][1].end:{line:1,column:1,offset:0})},de=-1;++de<t.transforms.length;)F=t.transforms[de](F)||F;return F}function l(A,F,ee){let ie=F-1,de=-1,We=!1,yt,ut,hn,mn;for(;++ie<=ee;){const rt=A[ie];switch(rt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{rt[0]==="enter"?de++:de--,mn=void 0;break}case"lineEndingBlank":{rt[0]==="enter"&&(yt&&!mn&&!de&&!hn&&(hn=ie),mn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:mn=void 0}if(!de&&rt[0]==="enter"&&rt[1].type==="listItemPrefix"||de===-1&&rt[0]==="exit"&&(rt[1].type==="listUnordered"||rt[1].type==="listOrdered")){if(yt){let Ot=ie;for(ut=void 0;Ot--;){const wt=A[Ot];if(wt[1].type==="lineEnding"||wt[1].type==="lineEndingBlank"){if(wt[0]==="exit")continue;ut&&(A[ut][1].type="lineEndingBlank",We=!0),wt[1].type="lineEnding",ut=Ot}else if(!(wt[1].type==="linePrefix"||wt[1].type==="blockQuotePrefix"||wt[1].type==="blockQuotePrefixWhitespace"||wt[1].type==="blockQuoteMarker"||wt[1].type==="listItemIndent"))break}hn&&(!ut||hn<ut)&&(yt._spread=!0),yt.end=Object.assign({},ut?A[ut][1].start:rt[1].end),A.splice(ut||ie,0,["exit",yt,rt[2]]),ie++,ee++}if(rt[1].type==="listItemPrefix"){const Ot={type:"listItem",_spread:!1,start:Object.assign({},rt[1].start),end:void 0};yt=Ot,A.splice(ie,0,["enter",Ot,rt[2]]),ie++,ee++,hn=void 0,mn=!0}}}return A[F][1]._spread=We,ee}function i(A,F){return ee;function ee(ie){o.call(this,A(ie),ie),F&&F.call(this,ie)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(A,F,ee){this.stack[this.stack.length-1].children.push(A),this.stack.push(A),this.tokenStack.push([F,ee||void 0]),A.position={start:kn(F.start),end:void 0}}function a(A){return F;function F(ee){A&&A.call(this,ee),u.call(this,ee)}}function u(A,F){const ee=this.stack.pop(),ie=this.tokenStack.pop();if(ie)ie[0].type!==A.type&&(F?F.call(this,A,ie[0]):(ie[1]||ip).call(this,A,ie[0]));else throw new Error("Cannot close `"+A.type+"` ("+Al({start:A.start,end:A.end})+"): it’s not open");ee.position.end=kn(A.end)}function d(){return Rc(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(A){if(this.data.expectingFirstListItemValue){const F=this.stack[this.stack.length-2];F.start=Number.parseInt(this.sliceSerialize(A),10),this.data.expectingFirstListItemValue=void 0}}function h(){const A=this.resume(),F=this.stack[this.stack.length-1];F.lang=A}function x(){const A=this.resume(),F=this.stack[this.stack.length-1];F.meta=A}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const A=this.resume(),F=this.stack[this.stack.length-1];F.value=A.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const A=this.resume(),F=this.stack[this.stack.length-1];F.value=A.replace(/(\r?\n|\r)$/g,"")}function g(A){const F=this.resume(),ee=this.stack[this.stack.length-1];ee.label=F,ee.identifier=Ht(this.sliceSerialize(A)).toLowerCase()}function y(){const A=this.resume(),F=this.stack[this.stack.length-1];F.title=A}function E(){const A=this.resume(),F=this.stack[this.stack.length-1];F.url=A}function T(A){const F=this.stack[this.stack.length-1];if(!F.depth){const ee=this.sliceSerialize(A).length;F.depth=ee}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function _(A){const F=this.stack[this.stack.length-1];F.depth=this.sliceSerialize(A).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function $(A){const ee=this.stack[this.stack.length-1].children;let ie=ee[ee.length-1];(!ie||ie.type!=="text")&&(ie=pi(),ie.position={start:kn(A.start),end:void 0},ee.push(ie)),this.stack.push(ie)}function N(A){const F=this.stack.pop();F.value+=this.sliceSerialize(A),F.position.end=kn(A.end)}function z(A){const F=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ee=F.children[F.children.length-1];ee.position.end=kn(A.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(F.type)&&($.call(this,A),N.call(this,A))}function U(){this.data.atHardBreak=!0}function ne(){const A=this.resume(),F=this.stack[this.stack.length-1];F.value=A}function R(){const A=this.resume(),F=this.stack[this.stack.length-1];F.value=A}function H(){const A=this.resume(),F=this.stack[this.stack.length-1];F.value=A}function J(){const A=this.stack[this.stack.length-1];if(this.data.inReference){const F=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=F,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function M(){const A=this.stack[this.stack.length-1];if(this.data.inReference){const F=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=F,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function P(A){const F=this.sliceSerialize(A),ee=this.stack[this.stack.length-2];ee.label=FS(F),ee.identifier=Ht(F).toLowerCase()}function B(){const A=this.stack[this.stack.length-1],F=this.resume(),ee=this.stack[this.stack.length-1];if(this.data.inReference=!0,ee.type==="link"){const ie=A.children;ee.children=ie}else ee.alt=F}function w(){const A=this.resume(),F=this.stack[this.stack.length-1];F.url=A}function Q(){const A=this.resume(),F=this.stack[this.stack.length-1];F.title=A}function re(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function fe(A){const F=this.resume(),ee=this.stack[this.stack.length-1];ee.label=F,ee.identifier=Ht(this.sliceSerialize(A)).toLowerCase(),this.data.referenceType="full"}function Te(A){this.data.characterReferenceType=A.type}function X(A){const F=this.sliceSerialize(A),ee=this.data.characterReferenceType;let ie;ee?(ie=Ig(F,ee==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ie=Ac(F);const de=this.stack[this.stack.length-1];de.value+=ie}function V(A){const F=this.stack.pop();F.position.end=kn(A.end)}function Y(A){N.call(this,A);const F=this.stack[this.stack.length-1];F.url=this.sliceSerialize(A)}function se(A){N.call(this,A);const F=this.stack[this.stack.length-1];F.url="mailto:"+this.sliceSerialize(A)}function ge(){return{type:"blockquote",children:[]}}function ke(){return{type:"code",lang:null,meta:null,value:""}}function he(){return{type:"inlineCode",value:""}}function Wt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function _t(){return{type:"emphasis",children:[]}}function tt(){return{type:"heading",depth:0,children:[]}}function te(){return{type:"break"}}function Fe(){return{type:"html",value:""}}function Ue(){return{type:"image",title:null,url:"",alt:null}}function nt(){return{type:"link",title:null,url:"",children:[]}}function pn(A){return{type:"list",ordered:A.type==="listOrdered",start:null,spread:A._spread,children:[]}}function pr(A){return{type:"listItem",spread:A._spread,checked:null,children:[]}}function en(){return{type:"paragraph",children:[]}}function ll(){return{type:"strong",children:[]}}function pi(){return{type:"text",value:""}}function hi(){return{type:"thematicBreak"}}}function kn(e){return{line:e.line,column:e.column,offset:e.offset}}function Vg(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Vg(e,r):$S(e,r)}}function $S(e,t){let n;for(n in t)if(Hg.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function ip(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Al({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Al({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Al({start:t.start,end:t.end})+") is still open")}function HS(e){const t=this;t.parser=n;function n(r){return BS(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function VS(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function qS(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
227
|
+
`}]}function WS(e,t){const n=t.value?t.value+`
|
|
228
|
+
`:"",r={},l=t.lang?t.lang.split(/\s+/):[];l.length>0&&(r.className=["language-"+l[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function QS(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function KS(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function XS(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),l=rl(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let s,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=i+1,o+=1,e.footnoteCounts.set(r,o);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+l,id:n+"fnref-"+l+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,a);const u={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,u),e.applyData(t,u)}function YS(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function GS(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function qg(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const l=e.all(t),i=l[0];i&&i.type==="text"?i.value="["+i.value:l.unshift({type:"text",value:"["});const s=l[l.length-1];return s&&s.type==="text"?s.value+=r:l.push({type:"text",value:r}),l}function JS(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return qg(e,t);const l={src:rl(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,i),e.applyData(t,i)}function ZS(e,t){const n={src:rl(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function e2(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function t2(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return qg(e,t);const l={href:rl(r.url||"")};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function n2(e,t){const n={href:rl(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function r2(e,t,n){const r=e.all(t),l=n?l2(n):Wg(t),i={},s=[];if(typeof t.checked=="boolean"){const d=r[0];let f;d&&d.type==="element"&&d.tagName==="p"?f=d:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const d=r[o];(l||o!==0||d.type!=="element"||d.tagName!=="p")&&s.push({type:"text",value:`
|
|
229
|
+
`}),d.type==="element"&&d.tagName==="p"&&!l?s.push(...d.children):s.push(d)}const a=r[r.length-1];a&&(l||a.type!=="element"||a.tagName!=="p")&&s.push({type:"text",value:`
|
|
230
|
+
`});const u={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,u),e.applyData(t,u)}function l2(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Wg(n[r])}return t}function Wg(e){const t=e.spread;return t??e.children.length>1}function i2(e,t){const n={},r=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l<r.length;){const s=r[l];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function s2(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function o2(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function a2(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function u2(e,t){const n=e.all(t),r=n.shift(),l=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),l.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=jc(t.children[1]),a=Ng(t.children[t.children.length-1]);o&&a&&(s.position={start:o,end:a}),l.push(s)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,i),e.applyData(t,i)}function c2(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let a=-1;const u=[];for(;++a<o;){const f=t.children[a],p={},h=s?s[a]:void 0;h&&(p.align=h);let x={type:"element",tagName:i,properties:p,children:[]};f&&(x.children=e.all(f),e.patch(f,x),x=e.applyData(f,x)),u.push(x)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function f2(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const sp=9,op=32;function d2(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),l=0;const i=[];for(;r;)i.push(ap(t.slice(l,r.index),l>0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(ap(t.slice(l),l>0,!1)),i.join("")}function ap(e,t,n){let r=0,l=e.length;if(t){let i=e.codePointAt(r);for(;i===sp||i===op;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(l-1);for(;i===sp||i===op;)l--,i=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}function p2(e,t){const n={type:"text",value:d2(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function h2(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const m2={blockquote:VS,break:qS,code:WS,delete:QS,emphasis:KS,footnoteReference:XS,heading:YS,html:GS,imageReference:JS,image:ZS,inlineCode:e2,linkReference:t2,link:n2,listItem:r2,list:i2,paragraph:s2,root:o2,strong:a2,table:u2,tableCell:f2,tableRow:c2,text:p2,thematicBreak:h2,toml:Mi,yaml:Mi,definition:Mi,footnoteDefinition:Mi};function Mi(){}const Qg=-1,ao=0,Ll=1,Ds=2,Lc=3,zc=4,Oc=5,Dc=6,Kg=7,Xg=8,g2=typeof self=="object"?self:globalThis,up=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new g2[e](t)},x2=(e,t)=>{const n=(l,i)=>(e.set(i,l),l),r=l=>{if(e.has(l))return e.get(l);const[i,s]=t[l];switch(i){case ao:case Qg:return n(s,l);case Ll:{const o=n([],l);for(const a of s)o.push(r(a));return o}case Ds:{const o=n({},l);for(const[a,u]of s)o[r(a)]=r(u);return o}case Lc:return n(new Date(s),l);case zc:{const{source:o,flags:a}=s;return n(new RegExp(o,a),l)}case Oc:{const o=n(new Map,l);for(const[a,u]of s)o.set(r(a),r(u));return o}case Dc:{const o=n(new Set,l);for(const a of s)o.add(r(a));return o}case Kg:{const{name:o,message:a}=s;return n(up(o,a),l)}case Xg:return n(BigInt(s),l);case"BigInt":return n(Object(BigInt(s)),l);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(up(i,s),l)};return r},cp=e=>x2(new Map,e)(0),wr="",{toString:y2}={},{keys:w2}=Object,xl=e=>{const t=typeof e;if(t!=="object"||!e)return[ao,t];const n=y2.call(e).slice(8,-1);switch(n){case"Array":return[Ll,wr];case"Object":return[Ds,wr];case"Date":return[Lc,wr];case"RegExp":return[zc,wr];case"Map":return[Oc,wr];case"Set":return[Dc,wr];case"DataView":return[Ll,n]}return n.includes("Array")?[Ll,n]:n.includes("Error")?[Kg,n]:[Ds,n]},Bi=([e,t])=>e===ao&&(t==="function"||t==="symbol"),v2=(e,t,n,r)=>{const l=(s,o)=>{const a=r.push(s)-1;return n.set(o,a),a},i=s=>{if(n.has(s))return n.get(s);let[o,a]=xl(s);switch(o){case ao:{let d=s;switch(a){case"bigint":o=Xg,d=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);d=null;break;case"undefined":return l([Qg],s)}return l([o,d],s)}case Ll:{if(a){let p=s;return a==="DataView"?p=new Uint8Array(s.buffer):a==="ArrayBuffer"&&(p=new Uint8Array(s)),l([a,[...p]],s)}const d=[],f=l([o,d],s);for(const p of s)d.push(i(p));return f}case Ds:{if(a)switch(a){case"BigInt":return l([a,s.toString()],s);case"Boolean":case"Number":case"String":return l([a,s.valueOf()],s)}if(t&&"toJSON"in s)return i(s.toJSON());const d=[],f=l([o,d],s);for(const p of w2(s))(e||!Bi(xl(s[p])))&&d.push([i(p),i(s[p])]);return f}case Lc:return l([o,s.toISOString()],s);case zc:{const{source:d,flags:f}=s;return l([o,{source:d,flags:f}],s)}case Oc:{const d=[],f=l([o,d],s);for(const[p,h]of s)(e||!(Bi(xl(p))||Bi(xl(h))))&&d.push([i(p),i(h)]);return f}case Dc:{const d=[],f=l([o,d],s);for(const p of s)(e||!Bi(xl(p)))&&d.push(i(p));return f}}const{message:u}=s;return l([o,{name:a,message:u}],s)};return i},fp=(e,{json:t,lossy:n}={})=>{const r=[];return v2(!(t||n),!!t,new Map,r)(e),r},Fs=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?cp(fp(e,t)):structuredClone(e):(e,t)=>cp(fp(e,t));function k2(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function b2(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function S2(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||k2,r=e.options.footnoteBackLabel||b2,l=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let a=-1;for(;++a<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[a]);if(!u)continue;const d=e.all(u),f=String(u.identifier).toUpperCase(),p=rl(f.toLowerCase());let h=0;const x=[],v=e.footnoteCounts.get(f);for(;v!==void 0&&++h<=v;){x.length>0&&x.push({type:"text",value:" "});let g=typeof n=="string"?n:n(a,h);typeof g=="string"&&(g={type:"text",value:g}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,h),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const S=d[d.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const g=S.children[S.children.length-1];g&&g.type==="text"?g.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...x)}else d.push(...x);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(d,!0)};e.patch(u,m),o.push(m)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Fs(s),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
|
|
231
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
|
|
232
|
+
`}]}}const uo=function(e){if(e==null)return j2;if(typeof e=="function")return co(e);if(typeof e=="object")return Array.isArray(e)?C2(e):N2(e);if(typeof e=="string")return E2(e);throw new Error("Expected function, string, or object as test")};function C2(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=uo(e[n]);return co(r);function r(...l){let i=-1;for(;++i<t.length;)if(t[i].apply(this,l))return!0;return!1}}function N2(e){const t=e;return co(n);function n(r){const l=r;let i;for(i in e)if(l[i]!==t[i])return!1;return!0}}function E2(e){return co(t);function t(n){return n&&n.type===e}}function co(e){return t;function t(n,r,l){return!!(_2(n)&&e.call(this,n,typeof r=="number"?r:void 0,l||void 0))}}function j2(){return!0}function _2(e){return e!==null&&typeof e=="object"&&"type"in e}const Yg=[],T2=!0,xu=!1,P2="skip";function Gg(e,t,n,r){let l;typeof t=="function"&&typeof n!="function"?(r=n,n=t):l=t;const i=uo(l),s=r?-1:1;o(e,void 0,[])();function o(a,u,d){const f=a&&typeof a=="object"?a:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(a.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=Yg,x,v,S;if((!t||i(a,u,d[d.length-1]||void 0))&&(h=R2(n(a,d)),h[0]===xu))return h;if("children"in a&&a.children){const m=a;if(m.children&&h[0]!==P2)for(v=(r?m.children.length:-1)+s,S=d.concat(m);v>-1&&v<m.children.length;){const g=m.children[v];if(x=o(g,v,S)(),x[0]===xu)return x;v=typeof x[1]=="number"?x[1]:v+s}}return h}}}function R2(e){return Array.isArray(e)?e:typeof e=="number"?[T2,e]:e==null?Yg:[e]}function Fc(e,t,n,r){let l,i,s;typeof t=="function"&&typeof n!="function"?(i=void 0,s=t,l=n):(i=t,s=n,l=r),Gg(e,i,o,l);function o(a,u){const d=u[u.length-1],f=d?d.children.indexOf(a):void 0;return s(a,f,d)}}const yu={}.hasOwnProperty,A2={};function I2(e,t){const n=t||A2,r=new Map,l=new Map,i=new Map,s={...m2,...n.handlers},o={all:u,applyData:z2,definitionById:r,footnoteById:l,footnoteCounts:i,footnoteOrder:[],handlers:s,one:a,options:n,patch:L2,wrap:D2};return Fc(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const f=d.type==="definition"?r:l,p=String(d.identifier).toUpperCase();f.has(p)||f.set(p,d)}}),o;function a(d,f){const p=d.type,h=o.handlers[p];if(yu.call(o.handlers,p)&&h)return h(o,d,f);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in d){const{children:v,...S}=d,m=Fs(S);return m.children=o.all(d),m}return Fs(d)}return(o.options.unknownHandler||O2)(o,d,f)}function u(d){const f=[];if("children"in d){const p=d.children;let h=-1;for(;++h<p.length;){const x=o.one(p[h],d);if(x){if(h&&p[h-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=dp(x.value)),!Array.isArray(x)&&x.type==="element")){const v=x.children[0];v&&v.type==="text"&&(v.value=dp(v.value))}Array.isArray(x)?f.push(...x):f.push(x)}}}return f}}function L2(e,t){e.position&&(t.position=kk(e))}function z2(e,t){let n=t;if(e&&e.data){const r=e.data.hName,l=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&i&&Object.assign(n.properties,Fs(i)),"children"in n&&n.children&&l!==null&&l!==void 0&&(n.children=l)}return n}function O2(e,t){const n=t.data||{},r="value"in t&&!(yu.call(n,"hProperties")||yu.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function D2(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
233
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
234
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
235
|
+
`}),n}function dp(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function pp(e,t){const n=I2(e,t),r=n.one(e,void 0),l=S2(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return l&&i.children.push({type:"text",value:`
|
|
236
|
+
`},l),i}function F2(e,t){return e&&"run"in e?async function(n,r){const l=pp(n,{file:r,...t});await e.run(l,r)}:function(n,r){return pp(n,{file:r,...e||t})}}function hp(e){if(e)throw e}var is=Object.prototype.hasOwnProperty,Jg=Object.prototype.toString,mp=Object.defineProperty,gp=Object.getOwnPropertyDescriptor,xp=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Jg.call(t)==="[object Array]"},yp=function(t){if(!t||Jg.call(t)!=="[object Object]")return!1;var n=is.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&is.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var l;for(l in t);return typeof l>"u"||is.call(t,l)},wp=function(t,n){mp&&n.name==="__proto__"?mp(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},vp=function(t,n){if(n==="__proto__")if(is.call(t,n)){if(gp)return gp(t,n).value}else return;return t[n]},M2=function e(){var t,n,r,l,i,s,o=arguments[0],a=1,u=arguments.length,d=!1;for(typeof o=="boolean"&&(d=o,o=arguments[1]||{},a=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});a<u;++a)if(t=arguments[a],t!=null)for(n in t)r=vp(o,n),l=vp(t,n),o!==l&&(d&&l&&(yp(l)||(i=xp(l)))?(i?(i=!1,s=r&&xp(r)?r:[]):s=r&&yp(r)?r:{},wp(o,{name:n,newValue:e(d,s,l)})):typeof l<"u"&&wp(o,{name:n,newValue:l}));return o};const ta=bu(M2);function wu(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function B2(){const e=[],t={run:n,use:r};return t;function n(...l){let i=-1;const s=l.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...l);function o(a,...u){const d=e[++i];let f=-1;if(a){s(a);return}for(;++f<l.length;)(u[f]===null||u[f]===void 0)&&(u[f]=l[f]);l=u,d?U2(d,o)(...u):s(null,...u)}}function r(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function U2(e,t){let n;return r;function r(...s){const o=e.length>s.length;let a;o&&s.push(l);try{a=e.apply(this,s)}catch(u){const d=u;if(o&&n)throw d;return l(d)}o||(a&&a.then&&typeof a.then=="function"?a.then(i,l):a instanceof Error?l(a):i(a))}function l(s,...o){n||(n=!0,t(s,...o))}function i(s){l(null,s)}}const Xt={basename:$2,dirname:H2,extname:V2,join:q2,sep:"/"};function $2(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');di(e);let n=0,r=-1,l=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else r<0&&(i=!0,r=l+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else s<0&&(i=!0,s=l+1),o>-1&&(e.codePointAt(l)===t.codePointAt(o--)?o<0&&(r=l):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function H2(e){if(di(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function V2(e){di(e);let t=e.length,n=-1,r=0,l=-1,i=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?l<0?l=t:i!==1&&(i=1):l>-1&&(i=-1)}return l<0||n<0||i===0||i===1&&l===n-1&&l===r+1?"":e.slice(l,n)}function q2(...e){let t=-1,n;for(;++t<e.length;)di(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":W2(n)}function W2(e){di(e);const t=e.codePointAt(0)===47;let n=Q2(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Q2(e,t){let n="",r=0,l=-1,i=0,s=-1,o,a;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(l===s-1||i===1))if(l!==s-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),l=s,i=0;continue}}else if(n.length>0){n="",r=0,l=s,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(l+1,s):n=e.slice(l+1,s),r=s-l-1;l=s,i=0}else o===46&&i>-1?i++:i=-1}return n}function di(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const K2={cwd:X2};function X2(){return"/"}function vu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Y2(e){if(typeof e=="string")e=new URL(e);else if(!vu(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return G2(e)}function G2(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const na=["history","path","basename","stem","extname","dirname"];class Zg{constructor(t){let n;t?vu(t)?n={path:t}:typeof t=="string"||J2(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":K2.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<na.length;){const i=na[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let l;for(l in n)na.includes(l)||(this[l]=n[l])}get basename(){return typeof this.path=="string"?Xt.basename(this.path):void 0}set basename(t){la(t,"basename"),ra(t,"basename"),this.path=Xt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Xt.dirname(this.path):void 0}set dirname(t){kp(this.basename,"dirname"),this.path=Xt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Xt.extname(this.path):void 0}set extname(t){if(ra(t,"extname"),kp(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Xt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){vu(t)&&(t=Y2(t)),la(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Xt.basename(this.path,this.extname):void 0}set stem(t){la(t,"stem"),ra(t,"stem"),this.path=Xt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const l=this.message(t,n,r);throw l.fatal=!0,l}info(t,n,r){const l=this.message(t,n,r);return l.fatal=void 0,l}message(t,n,r){const l=new et(t,n,r);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ra(e,t){if(e&&e.includes(Xt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Xt.sep+"`")}function la(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function kp(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function J2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Z2=function(e){const r=this.constructor.prototype,l=r[e],i=function(){return l.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},eC={}.hasOwnProperty;class Mc extends Z2{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=B2()}copy(){const t=new Mc;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(ta(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(oa("data",this.frozen),this.namespace[t]=n,this):eC.call(this.namespace,t)&&this.namespace[t]||void 0:t?(oa("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const l=n.call(t,...r);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Ui(t),r=this.parser||this.Parser;return ia("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),ia("process",this.parser||this.Parser),sa("process",this.compiler||this.Compiler),n?l(void 0,n):new Promise(l);function l(i,s){const o=Ui(t),a=r.parse(o);r.run(a,o,function(d,f,p){if(d||!f||!p)return u(d);const h=f,x=r.stringify(h,p);rC(x)?p.value=x:p.result=x,u(d,p)});function u(d,f){d||!f?s(d):i?i(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),ia("processSync",this.parser||this.Parser),sa("processSync",this.compiler||this.Compiler),this.process(t,l),Sp("processSync","process",n),r;function l(i,s){n=!0,hp(i),r=s}}run(t,n,r){bp(t),this.freeze();const l=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(s,o){const a=Ui(n);l.run(t,a,u);function u(d,f,p){const h=f||t;d?o(d):s?s(h):r(void 0,h,p)}}}runSync(t,n){let r=!1,l;return this.run(t,n,i),Sp("runSync","run",r),l;function i(s,o){hp(s),l=o,r=!0}}stringify(t,n){this.freeze();const r=Ui(n),l=this.compiler||this.Compiler;return sa("stringify",l),bp(t),l(t,r)}use(t,...n){const r=this.attachers,l=this.namespace;if(oa("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(u){if(typeof u=="function")a(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...f]=u;a(d,f)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(u.plugins),u.settings&&(l.settings=ta(!0,l.settings,u.settings))}function o(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const f=u[d];i(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function a(u,d){let f=-1,p=-1;for(;++f<r.length;)if(r[f][0]===u){p=f;break}if(p===-1)r.push([u,...d]);else if(d.length>0){let[h,...x]=d;const v=r[p][1];wu(v)&&wu(h)&&(h=ta(!0,v,h)),r[p]=[u,h,...x]}}}}const tC=new Mc().freeze();function ia(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function sa(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function oa(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function bp(e){if(!wu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Sp(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ui(e){return nC(e)?e:new Zg(e)}function nC(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function rC(e){return typeof e=="string"||lC(e)}function lC(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const iC="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Cp=[],Np={allowDangerousHtml:!0},sC=/^(https?|ircs?|mailto|xmpp)$/i,oC=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function aC(e){const t=uC(e),n=cC(e);return fC(t.runSync(t.parse(n),n),e)}function uC(e){const t=e.rehypePlugins||Cp,n=e.remarkPlugins||Cp,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Np}:Np;return tC().use(HS).use(n).use(F2,r).use(t)}function cC(e){const t=e.children||"",n=new Zg;return typeof t=="string"&&(n.value=t),n}function fC(e,t){const n=t.allowedElements,r=t.allowElement,l=t.components,i=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,a=t.urlTransform||dC;for(const d of oC)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+iC+d.id,void 0);return Fc(e,u),Ek(e,{Fragment:c.Fragment,components:l,ignoreInvalidStyle:!0,jsx:c.jsx,jsxs:c.jsxs,passKeys:!0,passNode:!0});function u(d,f,p){if(d.type==="raw"&&p&&typeof f=="number")return s?p.children.splice(f,1):p.children[f]={type:"text",value:d.value},f;if(d.type==="element"){let h;for(h in Jo)if(Object.hasOwn(Jo,h)&&Object.hasOwn(d.properties,h)){const x=d.properties[h],v=Jo[h];(v===null||v.includes(d.tagName))&&(d.properties[h]=a(String(x||""),h,d))}}if(d.type==="element"){let h=n?!n.includes(d.tagName):i?i.includes(d.tagName):!1;if(!h&&r&&typeof f=="number"&&(h=!r(d,f,p)),h&&p&&typeof f=="number")return o&&d.children?p.children.splice(f,1,...d.children):p.children.splice(f,1),f}}}function dC(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||n!==-1&&t>n||r!==-1&&t>r||sC.test(e.slice(0,t))?e:""}function Ep(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,l=n.indexOf(t);for(;l!==-1;)r++,l=n.indexOf(t,l+t.length);return r}function pC(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function hC(e,t,n){const l=uo((n||{}).ignore||[]),i=mC(t);let s=-1;for(;++s<i.length;)Gg(e,"text",o);function o(u,d){let f=-1,p;for(;++f<d.length;){const h=d[f],x=p?p.children:void 0;if(l(h,x?x.indexOf(h):void 0,p))return;p=h}if(p)return a(u,d)}function a(u,d){const f=d[d.length-1],p=i[s][0],h=i[s][1];let x=0;const S=f.children.indexOf(u);let m=!1,g=[];p.lastIndex=0;let y=p.exec(u.value);for(;y;){const E=y.index,T={index:y.index,input:y.input,stack:[...d,u]};let b=h(...y,T);if(typeof b=="string"&&(b=b.length>0?{type:"text",value:b}:void 0),b===!1?p.lastIndex=E+1:(x!==E&&g.push({type:"text",value:u.value.slice(x,E)}),Array.isArray(b)?g.push(...b):b&&g.push(b),x=E+y[0].length,m=!0),!p.global)break;y=p.exec(u.value)}return m?(x<u.value.length&&g.push({type:"text",value:u.value.slice(x)}),f.children.splice(S,1,...g)):g=[u],S+g.length}}function mC(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const l=n[r];t.push([gC(l[0]),xC(l[1])])}return t}function gC(e){return typeof e=="string"?new RegExp(pC(e),"g"):e}function xC(e){return typeof e=="function"?e:function(){return e}}const aa="phrasing",ua=["autolink","link","image","label"];function yC(){return{transforms:[NC],enter:{literalAutolink:vC,literalAutolinkEmail:ca,literalAutolinkHttp:ca,literalAutolinkWww:ca},exit:{literalAutolink:CC,literalAutolinkEmail:SC,literalAutolinkHttp:kC,literalAutolinkWww:bC}}}function wC(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:aa,notInConstruct:ua},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:aa,notInConstruct:ua},{character:":",before:"[ps]",after:"\\/",inConstruct:aa,notInConstruct:ua}]}}function vC(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ca(e){this.config.enter.autolinkProtocol.call(this,e)}function kC(e){this.config.exit.autolinkProtocol.call(this,e)}function bC(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function SC(e){this.config.exit.autolinkEmail.call(this,e)}function CC(e){this.exit(e)}function NC(e){hC(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,EC],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),jC]],{ignore:["link","linkReference"]})}function EC(e,t,n,r,l){let i="";if(!ex(l)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!_C(n)))return!1;const s=TC(n+r);if(!s[0])return!1;const o={type:"link",title:null,url:i+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function jC(e,t,n,r){return!ex(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function _C(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function TC(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const l=Ep(e,"(");let i=Ep(e,")");for(;r!==-1&&l>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}function ex(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ur(n)||so(n))&&(!t||n!==47)}tx.peek=FC;function PC(){this.buffer()}function RC(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function AC(){this.buffer()}function IC(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function LC(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ht(this.sliceSerialize(e)).toLowerCase(),n.label=t}function zC(e){this.exit(e)}function OC(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ht(this.sliceSerialize(e)).toLowerCase(),n.label=t}function DC(e){this.exit(e)}function FC(){return"["}function tx(e,t,n,r){const l=n.createTracker(r);let i=l.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return i+=l.move(n.safe(n.associationId(e),{after:"]",before:i})),o(),s(),i+=l.move("]"),i}function MC(){return{enter:{gfmFootnoteCallString:PC,gfmFootnoteCall:RC,gfmFootnoteDefinitionLabelString:AC,gfmFootnoteDefinition:IC},exit:{gfmFootnoteCallString:LC,gfmFootnoteCall:zC,gfmFootnoteDefinitionLabelString:OC,gfmFootnoteDefinition:DC}}}function BC(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:tx},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,l,i,s){const o=i.createTracker(s);let a=o.move("[^");const u=i.enter("footnoteDefinition"),d=i.enter("label");return a+=o.move(i.safe(i.associationId(r),{before:a,after:"]"})),d(),a+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),a+=o.move((t?`
|
|
237
|
+
`:" ")+i.indentLines(i.containerFlow(r,o.current()),t?nx:UC))),u(),a}}function UC(e,t,n){return t===0?e:nx(e,t,n)}function nx(e,t,n){return(n?"":" ")+e}const $C=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];rx.peek=QC;function HC(){return{canContainEols:["delete"],enter:{strikethrough:qC},exit:{strikethrough:WC}}}function VC(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:$C}],handlers:{delete:rx}}}function qC(e){this.enter({type:"delete",children:[]},e)}function WC(e){this.exit(e)}function rx(e,t,n,r){const l=n.createTracker(r),i=n.enter("strikethrough");let s=l.move("~~");return s+=n.containerPhrasing(e,{...l.current(),before:s,after:"~"}),s+=l.move("~~"),i(),s}function QC(){return"~"}function KC(e){return e.length}function XC(e,t){const n=t||{},r=(n.align||[]).concat(),l=n.stringLength||KC,i=[],s=[],o=[],a=[];let u=0,d=-1;for(;++d<e.length;){const v=[],S=[];let m=-1;for(e[d].length>u&&(u=e[d].length);++m<e[d].length;){const g=YC(e[d][m]);if(n.alignDelimiters!==!1){const y=l(g);S[m]=y,(a[m]===void 0||y>a[m])&&(a[m]=y)}v.push(g)}s[d]=v,o[d]=S}let f=-1;if(typeof r=="object"&&"length"in r)for(;++f<u;)i[f]=jp(r[f]);else{const v=jp(r);for(;++f<u;)i[f]=v}f=-1;const p=[],h=[];for(;++f<u;){const v=i[f];let S="",m="";v===99?(S=":",m=":"):v===108?S=":":v===114&&(m=":");let g=n.alignDelimiters===!1?1:Math.max(1,a[f]-S.length-m.length);const y=S+"-".repeat(g)+m;n.alignDelimiters!==!1&&(g=S.length+g+m.length,g>a[f]&&(a[f]=g),h[f]=g),p[f]=y}s.splice(1,0,p),o.splice(1,0,h),d=-1;const x=[];for(;++d<s.length;){const v=s[d],S=o[d];f=-1;const m=[];for(;++f<u;){const g=v[f]||"";let y="",E="";if(n.alignDelimiters!==!1){const T=a[f]-(S[f]||0),b=i[f];b===114?y=" ".repeat(T):b===99?T%2?(y=" ".repeat(T/2+.5),E=" ".repeat(T/2-.5)):(y=" ".repeat(T/2),E=y):E=" ".repeat(T)}n.delimiterStart!==!1&&!f&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&g==="")&&(n.delimiterStart!==!1||f)&&m.push(" "),n.alignDelimiters!==!1&&m.push(y),m.push(g),n.alignDelimiters!==!1&&m.push(E),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||f!==u-1)&&m.push("|")}x.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return x.join(`
|
|
238
|
+
`)}function YC(e){return e==null?"":String(e)}function jp(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function GC(e,t,n,r){const l=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const s=n.indentLines(n.containerFlow(e,i.current()),JC);return l(),s}function JC(e,t,n){return">"+(n?"":" ")+e}function ZC(e,t){return _p(e,t.inConstruct,!0)&&!_p(e,t.notInConstruct,!1)}function _p(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Tp(e,t,n,r){let l=-1;for(;++l<n.unsafe.length;)if(n.unsafe[l].character===`
|
|
239
|
+
`&&ZC(n.stack,n.unsafe[l]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
240
|
+
`}function eN(e,t){const n=String(e);let r=n.indexOf(t),l=r,i=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===l?++i>s&&(s=i):i=1,l=r+t.length,r=n.indexOf(t,l);return s}function tN(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function nN(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function rN(e,t,n,r){const l=nN(n),i=e.value||"",s=l==="`"?"GraveAccent":"Tilde";if(tN(e,n)){const f=n.enter("codeIndented"),p=n.indentLines(i,lN);return f(),p}const o=n.createTracker(r),a=l.repeat(Math.max(eN(i,l)+1,3)),u=n.enter("codeFenced");let d=o.move(a);if(e.lang){const f=n.enter(`codeFencedLang${s}`);d+=o.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${s}`);d+=o.move(" "),d+=o.move(n.safe(e.meta,{before:d,after:`
|
|
241
|
+
`,encode:["`"],...o.current()})),f()}return d+=o.move(`
|
|
242
|
+
`),i&&(d+=o.move(i+`
|
|
243
|
+
`)),d+=o.move(a),u(),d}function lN(e,t,n){return(n?"":" ")+e}function Bc(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function iN(e,t,n,r){const l=Bc(n),i=l==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const a=n.createTracker(r);let u=a.move("[");return u+=a.move(n.safe(n.associationId(e),{before:u,after:"]",...a.current()})),u+=a.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(o=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":`
|
|
244
|
+
`,...a.current()}))),o(),e.title&&(o=n.enter(`title${i}`),u+=a.move(" "+l),u+=a.move(n.safe(e.title,{before:u,after:l,...a.current()})),u+=a.move(l),o()),s(),u}function sN(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function ei(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ms(e,t,n){const r=Yr(e),l=Yr(t);return r===void 0?l===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}lx.peek=oN;function lx(e,t,n,r){const l=sN(n),i=n.enter("emphasis"),s=n.createTracker(r),o=s.move(l);let a=s.move(n.containerPhrasing(e,{after:l,before:o,...s.current()}));const u=a.charCodeAt(0),d=Ms(r.before.charCodeAt(r.before.length-1),u,l);d.inside&&(a=ei(u)+a.slice(1));const f=a.charCodeAt(a.length-1),p=Ms(r.after.charCodeAt(0),f,l);p.inside&&(a=a.slice(0,-1)+ei(f));const h=s.move(l);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:d.outside},o+a+h}function oN(e,t,n){return n.options.emphasis||"*"}function aN(e,t){let n=!1;return Fc(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,xu}),!!((!e.depth||e.depth<3)&&Rc(e)&&(t.options.setext||n))}function uN(e,t,n,r){const l=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(aN(e,n)){const d=n.enter("headingSetext"),f=n.enter("phrasing"),p=n.containerPhrasing(e,{...i.current(),before:`
|
|
245
|
+
`,after:`
|
|
246
|
+
`});return f(),d(),p+`
|
|
247
|
+
`+(l===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
248
|
+
`))+1))}const s="#".repeat(l),o=n.enter("headingAtx"),a=n.enter("phrasing");i.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
|
|
249
|
+
`,...i.current()});return/^[\t ]/.test(u)&&(u=ei(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),a(),o(),u}ix.peek=cN;function ix(e){return e.value||""}function cN(){return"<"}sx.peek=fN;function sx(e,t,n,r){const l=Bc(n),i=l==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const a=n.createTracker(r);let u=a.move("![");return u+=a.move(n.safe(e.alt,{before:u,after:"]",...a.current()})),u+=a.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(o=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),o(),e.title&&(o=n.enter(`title${i}`),u+=a.move(" "+l),u+=a.move(n.safe(e.title,{before:u,after:l,...a.current()})),u+=a.move(l),o()),u+=a.move(")"),s(),u}function fN(){return"!"}ox.peek=dN;function ox(e,t,n,r){const l=e.referenceType,i=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let a=o.move("![");const u=n.safe(e.alt,{before:a,after:"]",...o.current()});a+=o.move(u+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:a,after:"]",...o.current()});return s(),n.stack=d,i(),l==="full"||!u||u!==f?a+=o.move(f+"]"):l==="shortcut"?a=a.slice(0,-1):a+=o.move("]"),a}function dN(){return"!"}ax.peek=pN;function ax(e,t,n){let r=e.value||"",l="`",i=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(r);)l+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const s=n.unsafe[i],o=n.compilePattern(s);let a;if(s.atBreak)for(;a=o.exec(r);){let u=a.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(a.index+1)}}return l+r+l}function pN(){return"`"}function ux(e,t){const n=Rc(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}cx.peek=hN;function cx(e,t,n,r){const l=Bc(n),i=l==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,a;if(ux(e,n)){const d=n.stack;n.stack=[],o=n.enter("autolink");let f=s.move("<");return f+=s.move(n.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),o(),n.stack=d,f}o=n.enter("link"),a=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${i}`),u+=s.move(" "+l),u+=s.move(n.safe(e.title,{before:u,after:l,...s.current()})),u+=s.move(l),a()),u+=s.move(")"),o(),u}function hN(e,t,n){return ux(e,n)?"<":"["}fx.peek=mN;function fx(e,t,n,r){const l=e.referenceType,i=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let a=o.move("[");const u=n.containerPhrasing(e,{before:a,after:"]",...o.current()});a+=o.move(u+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:a,after:"]",...o.current()});return s(),n.stack=d,i(),l==="full"||!u||u!==f?a+=o.move(f+"]"):l==="shortcut"?a=a.slice(0,-1):a+=o.move("]"),a}function mN(){return"["}function Uc(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function gN(e){const t=Uc(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function xN(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function dx(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function yN(e,t,n,r){const l=n.enter("list"),i=n.bulletCurrent;let s=e.ordered?xN(n):Uc(n);const o=e.ordered?s==="."?")":".":gN(n);let a=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(a=!0),dx(n)===s&&d){let f=-1;for(;++f<e.children.length;){const p=e.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){a=!0;break}}}}a&&(s=o),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=i,l(),u}function wN(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function vN(e,t,n,r){const l=wN(n);let i=n.bulletCurrent||Uc(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let s=i.length+1;(l==="tab"||l==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(i+" ".repeat(s-i.length)),o.shift(s);const a=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),d);return a(),u;function d(f,p,h){return p?(h?"":" ".repeat(s))+f:(h?i:i+" ".repeat(s-i.length))+f}}function kN(e,t,n,r){const l=n.enter("paragraph"),i=n.enter("phrasing"),s=n.containerPhrasing(e,r);return i(),l(),s}const bN=uo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function SN(e,t,n,r){return(e.children.some(function(s){return bN(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function CN(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}px.peek=NN;function px(e,t,n,r){const l=CN(n),i=n.enter("strong"),s=n.createTracker(r),o=s.move(l+l);let a=s.move(n.containerPhrasing(e,{after:l,before:o,...s.current()}));const u=a.charCodeAt(0),d=Ms(r.before.charCodeAt(r.before.length-1),u,l);d.inside&&(a=ei(u)+a.slice(1));const f=a.charCodeAt(a.length-1),p=Ms(r.after.charCodeAt(0),f,l);p.inside&&(a=a.slice(0,-1)+ei(f));const h=s.move(l+l);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:d.outside},o+a+h}function NN(e,t,n){return n.options.strong||"*"}function EN(e,t,n,r){return n.safe(e.value,r)}function jN(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function _N(e,t,n){const r=(dx(n)+(n.options.ruleSpaces?" ":"")).repeat(jN(n));return n.options.ruleSpaces?r.slice(0,-1):r}const hx={blockquote:GC,break:Tp,code:rN,definition:iN,emphasis:lx,hardBreak:Tp,heading:uN,html:ix,image:sx,imageReference:ox,inlineCode:ax,link:cx,linkReference:fx,list:yN,listItem:vN,paragraph:kN,root:SN,strong:px,text:EN,thematicBreak:_N};function TN(){return{enter:{table:PN,tableData:Pp,tableHeader:Pp,tableRow:AN},exit:{codeText:IN,table:RN,tableData:fa,tableHeader:fa,tableRow:fa}}}function PN(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function RN(e){this.exit(e),this.data.inTable=void 0}function AN(e){this.enter({type:"tableRow",children:[]},e)}function fa(e){this.exit(e)}function Pp(e){this.enter({type:"tableCell",children:[]},e)}function IN(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,LN));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function LN(e,t){return t==="|"?t:e}function zN(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,l=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
250
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:a,tableRow:o}};function s(h,x,v,S){return u(d(h,v,S),h.align)}function o(h,x,v,S){const m=f(h,v,S),g=u([m]);return g.slice(0,g.indexOf(`
|
|
251
|
+
`))}function a(h,x,v,S){const m=v.enter("tableCell"),g=v.enter("phrasing"),y=v.containerPhrasing(h,{...S,before:i,after:i});return g(),m(),y}function u(h,x){return XC(h,{align:x,alignDelimiters:r,padding:n,stringLength:l})}function d(h,x,v){const S=h.children;let m=-1;const g=[],y=x.enter("table");for(;++m<S.length;)g[m]=f(S[m],x,v);return y(),g}function f(h,x,v){const S=h.children;let m=-1;const g=[],y=x.enter("tableRow");for(;++m<S.length;)g[m]=a(S[m],h,x,v);return y(),g}function p(h,x,v){let S=hx.inlineCode(h,x,v);return v.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function ON(){return{exit:{taskListCheckValueChecked:Rp,taskListCheckValueUnchecked:Rp,paragraph:FN}}}function DN(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:MN}}}function Rp(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function FN(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const l=t.children;let i=-1,s;for(;++i<l.length;){const o=l[i];if(o.type==="paragraph"){s=o;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function MN(e,t,n,r){const l=e.children[0],i=typeof e.checked=="boolean"&&l&&l.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);i&&o.move(s);let a=hx.listItem(e,t,n,{...r,...o.current()});return i&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),a;function u(d){return d+s}}function BN(){return[yC(),MC(),HC(),TN(),ON()]}function UN(e){return{extensions:[wC(),BC(e),VC(),zN(e),DN()]}}const $N={tokenize:KN,partial:!0},mx={tokenize:XN,partial:!0},gx={tokenize:YN,partial:!0},xx={tokenize:GN,partial:!0},HN={tokenize:JN,partial:!0},yx={name:"wwwAutolink",tokenize:WN,previous:vx},wx={name:"protocolAutolink",tokenize:QN,previous:kx},dn={name:"emailAutolink",tokenize:qN,previous:bx},Zt={};function VN(){return{text:Zt}}let Vn=48;for(;Vn<123;)Zt[Vn]=dn,Vn++,Vn===58?Vn=65:Vn===91&&(Vn=97);Zt[43]=dn;Zt[45]=dn;Zt[46]=dn;Zt[95]=dn;Zt[72]=[dn,wx];Zt[104]=[dn,wx];Zt[87]=[dn,yx];Zt[119]=[dn,yx];function qN(e,t,n){const r=this;let l,i;return s;function s(f){return!ku(f)||!bx.call(r,r.previous)||$c(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(f))}function o(f){return ku(f)?(e.consume(f),o):f===64?(e.consume(f),a):n(f)}function a(f){return f===46?e.check(HN,d,u)(f):f===45||f===95||Ge(f)?(i=!0,e.consume(f),a):d(f)}function u(f){return e.consume(f),l=!0,a}function d(f){return i&&l&&it(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function WN(e,t,n){const r=this;return l;function l(s){return s!==87&&s!==119||!vx.call(r,r.previous)||$c(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check($N,e.attempt(mx,e.attempt(gx,i),n),n)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function QN(e,t,n){const r=this;let l="",i=!1;return s;function s(f){return(f===72||f===104)&&kx.call(r,r.previous)&&!$c(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(f),e.consume(f),o):n(f)}function o(f){if(it(f)&&l.length<5)return l+=String.fromCodePoint(f),e.consume(f),o;if(f===58){const p=l.toLowerCase();if(p==="http"||p==="https")return e.consume(f),a}return n(f)}function a(f){return f===47?(e.consume(f),i?u:(i=!0,a)):n(f)}function u(f){return f===null||Os(f)||we(f)||ur(f)||so(f)?n(f):e.attempt(mx,e.attempt(gx,d),n)(f)}function d(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function KN(e,t,n){let r=0;return l;function l(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),l):s===46&&r===3?(e.consume(s),i):n(s)}function i(s){return s===null?n(s):t(s)}}function XN(e,t,n){let r,l,i;return s;function s(u){return u===46||u===95?e.check(xx,a,o)(u):u===null||we(u)||ur(u)||u!==45&&so(u)?a(u):(i=!0,e.consume(u),s)}function o(u){return u===95?r=!0:(l=r,r=void 0),e.consume(u),s}function a(u){return l||r||!i?n(u):t(u)}}function YN(e,t){let n=0,r=0;return l;function l(s){return s===40?(n++,e.consume(s),l):s===41&&r<n?i(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(xx,t,i)(s):s===null||we(s)||ur(s)?t(s):(e.consume(s),l)}function i(s){return s===41&&r++,e.consume(s),l}}function GN(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),i):o===93?(e.consume(o),l):o===60||o===null||we(o)||ur(o)?t(o):n(o)}function l(o){return o===null||o===40||o===91||we(o)||ur(o)?t(o):r(o)}function i(o){return it(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),r):it(o)?(e.consume(o),s):n(o)}}function JN(e,t,n){return r;function r(i){return e.consume(i),l}function l(i){return Ge(i)?n(i):t(i)}}function vx(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||we(e)}function kx(e){return!it(e)}function bx(e){return!(e===47||ku(e))}function ku(e){return e===43||e===45||e===46||e===95||Ge(e)}function $c(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const ZN={tokenize:oE,partial:!0};function eE(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:lE,continuation:{tokenize:iE},exit:sE}},text:{91:{name:"gfmFootnoteCall",tokenize:rE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:tE,resolveTo:nE}}}}function tE(e,t,n){const r=this;let l=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;l--;){const a=r.events[l][1];if(a.type==="labelImage"){s=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return o;function o(a){if(!s||!s._balanced)return n(a);const u=Ht(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?n(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a))}}function nE(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",l,t],["exit",l,t],["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function rE(e,t,n){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,s;return o;function o(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),a}function a(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(i>999||f===93&&!s||f===null||f===91||we(f))return n(f);if(f===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return l.includes(Ht(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return we(f)||(s=!0),i++,e.consume(f),f===92?d:u}function d(f){return f===91||f===92||f===93?(e.consume(f),i++,u):u(f)}}function lE(e,t,n){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,s=0,o;return a;function a(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(x)}function d(x){if(s>999||x===93&&!o||x===null||x===91||we(x))return n(x);if(x===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return i=Ht(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return we(x)||(o=!0),s++,e.consume(x),x===92?f:d}function f(x){return x===91||x===92||x===93?(e.consume(x),s++,d):d(x)}function p(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),l.includes(i)||l.push(i),ce(e,h,"gfmFootnoteDefinitionWhitespace")):n(x)}function h(x){return t(x)}}function iE(e,t,n){return e.check(fi,t,e.attempt(ZN,t,n))}function sE(e){e.exit("gfmFootnoteDefinition")}function oE(e,t,n){const r=this;return ce(e,l,"gfmFootnoteDefinitionIndent",5);function l(i){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(i):n(i)}}function aE(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:l};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function l(s,o){let a=-1;for(;++a<s.length;)if(s[a][0]==="enter"&&s[a][1].type==="strikethroughSequenceTemporary"&&s[a][1]._close){let u=a;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[a][1].end.offset-s[a][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[a][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[a][1].end)},f={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[a][1].start)},p=[["enter",d,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",f,o]],h=o.parser.constructs.insideSpan.null;h&&Ct(p,p.length,0,oo(h,s.slice(u+1,a),o)),Ct(p,p.length,0,[["exit",f,o],["enter",s[a][1],o],["exit",s[a][1],o],["exit",d,o]]),Ct(s,u-1,a-u+3,p),a=u+p.length-2;break}}for(a=-1;++a<s.length;)s[a][1].type==="strikethroughSequenceTemporary"&&(s[a][1].type="data");return s}function i(s,o,a){const u=this.previous,d=this.events;let f=0;return p;function p(x){return u===126&&d[d.length-1][1].type!=="characterEscape"?a(x):(s.enter("strikethroughSequenceTemporary"),h(x))}function h(x){const v=Yr(u);if(x===126)return f>1?a(x):(s.consume(x),f++,h);if(f<2&&!n)return a(x);const S=s.exit("strikethroughSequenceTemporary"),m=Yr(x);return S._open=!m||m===2&&!!v,S._close=!v||v===2&&!!m,o(x)}}}class uE{constructor(){this.map=[]}add(t,n,r){cE(this,t,n,r)}consume(t){if(this.map.sort(function(i,s){return i[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let l=r.pop();for(;l;){for(const i of l)t.push(i);l=r.pop()}this.map.length=0}}function cE(e,t,n,r){let l=0;if(!(n===0&&r.length===0)){for(;l<e.map.length;){if(e.map[l][0]===t){e.map[l][1]+=n,e.map[l][2].push(...r);return}l+=1}e.map.push([t,n,r])}}function fE(e,t){let n=!1;const r=[];for(;t<e.length;){const l=e[t];if(n){if(l[0]==="enter")l[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function dE(){return{flow:{null:{name:"table",tokenize:pE,resolveAll:hE}}}}function pE(e,t,n){const r=this;let l=0,i=0,s;return o;function o(N){let z=r.events.length-1;for(;z>-1;){const R=r.events[z][1].type;if(R==="lineEnding"||R==="linePrefix")z--;else break}const U=z>-1?r.events[z][1].type:null,ne=U==="tableHead"||U==="tableRow"?b:a;return ne===b&&r.parser.lazy[r.now().line]?n(N):ne(N)}function a(N){return e.enter("tableHead"),e.enter("tableRow"),u(N)}function u(N){return N===124||(s=!0,i+=1),d(N)}function d(N){return N===null?n(N):Z(N)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),h):n(N):ae(N)?ce(e,d,"whitespace")(N):(i+=1,s&&(s=!1,l+=1),N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),s=!0,d):(e.enter("data"),f(N)))}function f(N){return N===null||N===124||we(N)?(e.exit("data"),d(N)):(e.consume(N),N===92?p:f)}function p(N){return N===92||N===124?(e.consume(N),f):f(N)}function h(N){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(N):(e.enter("tableDelimiterRow"),s=!1,ae(N)?ce(e,x,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):x(N))}function x(N){return N===45||N===58?S(N):N===124?(s=!0,e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),v):T(N)}function v(N){return ae(N)?ce(e,S,"whitespace")(N):S(N)}function S(N){return N===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),m):N===45?(i+=1,m(N)):N===null||Z(N)?E(N):T(N)}function m(N){return N===45?(e.enter("tableDelimiterFiller"),g(N)):T(N)}function g(N){return N===45?(e.consume(N),g):N===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(N))}function y(N){return ae(N)?ce(e,E,"whitespace")(N):E(N)}function E(N){return N===124?x(N):N===null||Z(N)?!s||l!==i?T(N):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(N)):T(N)}function T(N){return n(N)}function b(N){return e.enter("tableRow"),_(N)}function _(N){return N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),_):N===null||Z(N)?(e.exit("tableRow"),t(N)):ae(N)?ce(e,_,"whitespace")(N):(e.enter("data"),I(N))}function I(N){return N===null||N===124||we(N)?(e.exit("data"),_(N)):(e.consume(N),N===92?$:I)}function $(N){return N===92||N===124?(e.consume(N),I):I(N)}}function hE(e,t){let n=-1,r=!0,l=0,i=[0,0,0,0],s=[0,0,0,0],o=!1,a=0,u,d,f;const p=new uE;for(;++n<e.length;){const h=e[n],x=h[1];h[0]==="enter"?x.type==="tableHead"?(o=!1,a!==0&&(Ap(p,t,a,u,d),d=void 0,a=0),u={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},p.add(n,0,[["enter",u,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(r=!0,f=void 0,i=[0,0,0,0],s=[0,n+1,0,0],o&&(o=!1,d={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},p.add(n,0,[["enter",d,t]])),l=x.type==="tableDelimiterRow"?2:d?3:1):l&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],f=$i(p,t,i,l,void 0,f),i=[0,0,0,0]),s[2]=n)):x.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(s[0]=s[1],f=$i(p,t,i,l,void 0,f)),i=s,s=[i[1],n,0,0])):x.type==="tableHead"?(o=!0,a=n):x.type==="tableRow"||x.type==="tableDelimiterRow"?(a=n,i[1]!==0?(s[0]=s[1],f=$i(p,t,i,l,n,f)):s[1]!==0&&(f=$i(p,t,s,l,n,f)),l=0):l&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(s[3]=n)}for(a!==0&&Ap(p,t,a,u,d),p.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=fE(t.events,n))}return e}function $i(e,t,n,r,l,i){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(i.end=Object.assign({},vr(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const a=vr(t.events,n[1]);if(i={type:s,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const u=vr(t.events,n[2]),d=vr(t.events,n[3]),f={type:o,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const p=t.events[n[2]],h=t.events[n[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const x=n[2]+1,v=n[3]-n[2]-1;e.add(x,v,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return l!==void 0&&(i.end=Object.assign({},vr(t.events,l)),e.add(l,0,[["exit",i,t]]),i=void 0),i}function Ap(e,t,n,r,l){const i=[],s=vr(t.events,n);l&&(l.end=Object.assign({},s),i.push(["exit",l,t])),r.end=Object.assign({},s),i.push(["exit",r,t]),e.add(n+1,0,i)}function vr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const mE={name:"tasklistCheck",tokenize:xE};function gE(){return{text:{91:mE}}}function xE(e,t,n){const r=this;return l;function l(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),i)}function i(a){return we(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),s):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),s):n(a)}function s(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(a)}function o(a){return Z(a)?t(a):ae(a)?e.check({tokenize:yE},t,n)(a):n(a)}}function yE(e,t,n){return ce(e,r,"whitespace");function r(l){return l===null?n(l):t(l)}}function wE(e){return Ag([VN(),eE(),aE(e),dE(),gE()])}const vE={};function kE(e){const t=this,n=e||vE,r=t.data(),l=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);l.push(wE(n)),i.push(BN()),s.push(UN(n))}const bE="/assets/logo-RBZv3XvP.png";class SE extends Hp.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("ErrorBoundary caught an error",t,n)}render(){var t,n;return this.state.hasError?c.jsxs("div",{className:"p-4 border border-red-200 bg-red-50 text-red-800 rounded-lg text-xs font-mono max-w-full overflow-auto",children:[c.jsx("p",{className:"font-bold mb-1",children:"Markdown Render Error:"}),c.jsx("pre",{className:"whitespace-pre-wrap",children:((t=this.state.error)==null?void 0:t.stack)||((n=this.state.error)==null?void 0:n.message)})]}):this.props.children}}function CE({chat:e,messages:t,onSendMessage:n,isLoading:r,activeDialect:l,setActiveDialect:i,vaults:s,onUpdateChatVaults:o}){const[a,u]=L.useState(""),[d,f]=L.useState(null),[p,h]=L.useState(!1),[x,v]=L.useState([]),[S,m]=L.useState([]),[g,y]=L.useState(0);L.useEffect(()=>{let R;return r?(y(0),R=setInterval(()=>{y(H=>H<4?H+1:H)},1500)):y(0),()=>clearInterval(R)},[r]);const E=L.useRef(null),T=L.useRef(null),b=L.useRef(null),_=L.useRef(null);L.useEffect(()=>{const R=b.current;R&&(R.style.height="auto",R.style.height=`${a.trim()?Math.max(28,Math.min(150,R.scrollHeight)):28}px`)},[a,e]),L.useEffect(()=>{const R=_.current;R&&(R.style.height="auto",R.style.height=`${a.trim()?Math.max(28,Math.min(150,R.scrollHeight)):28}px`)},[a,e]),L.useEffect(()=>{(async()=>{const H=(e==null?void 0:e.vault_ids)||[];if(H.length===0){v([]);return}try{const J=new Set;await Promise.all(H.map(async M=>{(await G.get(`http://127.0.0.1:8000/api/queries?vault_id=${M}`)).data.forEach(B=>{B.tags&&B.tags.split(",").forEach(w=>{const Q=w.trim();Q&&J.add(Q)})})})),v(Array.from(J))}catch(J){console.error("Failed to load tags:",J)}})()},[e==null?void 0:e.vault_ids,s]),L.useEffect(()=>{function R(H){T.current&&!T.current.contains(H.target)&&h(!1)}return document.addEventListener("mousedown",R),()=>document.removeEventListener("mousedown",R)},[]),L.useEffect(()=>{var R;(R=E.current)==null||R.scrollIntoView({behavior:"smooth"})},[t,r]);const I=R=>{if(R.preventDefault(),!a.trim()||r)return;let H=a;S.length>0&&(H+=`
|
|
252
|
+
[Context Tags: ${S.join(", ")}]`),n(H),u(""),m([])},$=R=>{R.key==="Enter"&&!R.shiftKey&&(R.preventDefault(),I(R))},N=(R,H)=>{navigator.clipboard.writeText(R),f(H),setTimeout(()=>f(null),2e3)},z=R=>{S.includes(R)?m(S.filter(H=>H!==R)):m([...S,R])},U=(R,H)=>{if(!R)return null;let J=R;return J.includes("[Context Tags:")&&(J=J.split("[Context Tags:")[0].trim()),c.jsx("div",{className:"text-sm text-slate-800 leading-relaxed break-words",children:c.jsx(SE,{children:c.jsx(aC,{remarkPlugins:[kE],components:{h1:({node:M,...P})=>c.jsx("h1",{className:"text-xl font-bold mt-5 mb-3 text-slate-900",...P}),h2:({node:M,...P})=>c.jsx("h2",{className:"text-lg font-bold mt-4 mb-2 text-slate-900",...P}),h3:({node:M,...P})=>c.jsx("h3",{className:"text-md font-bold mt-3 mb-2 text-slate-900",...P}),p:({node:M,...P})=>c.jsx("p",{className:"mb-3 last:mb-0",...P}),ul:({node:M,...P})=>c.jsx("ul",{className:"list-disc list-outside ml-5 mb-3 space-y-1",...P}),ol:({node:M,...P})=>c.jsx("ol",{className:"list-decimal list-outside ml-5 mb-3 space-y-1",...P}),li:({node:M,...P})=>c.jsx("li",{className:"pl-1",...P}),strong:({node:M,...P})=>c.jsx("strong",{className:"font-semibold text-slate-900",...P}),em:({node:M,...P})=>c.jsx("em",{className:"italic text-slate-700",...P}),a:({node:M,...P})=>c.jsx("a",{className:"text-blue-600 hover:underline",target:"_blank",rel:"noopener noreferrer",...P}),table:({node:M,...P})=>c.jsx("div",{className:"overflow-x-auto my-4 border border-slate-200 rounded-lg shadow-sm",children:c.jsx("table",{className:"w-full text-left border-collapse text-sm",...P})}),thead:({node:M,...P})=>c.jsx("thead",{className:"bg-slate-50 border-b border-slate-200",...P}),th:({node:M,...P})=>c.jsx("th",{className:"px-4 py-2 font-semibold text-slate-700",...P}),td:({node:M,...P})=>c.jsx("td",{className:"px-4 py-2 border-t border-slate-100 text-slate-600",...P}),code:({node:M,className:P,children:B,...w})=>{const Q=/language-(\w+)/.exec(P||"");if(!(!Q&&!String(B).includes(`
|
|
253
|
+
`))){const k=Q?Q[1]:"",fe=String(B).replace(/\n$/,""),Te=`${H}-${fe.length}`;return c.jsxs("div",{className:"my-4 rounded-lg overflow-hidden shadow-subtle bg-slate-900 border border-slate-800",children:[c.jsxs("div",{className:"flex items-center justify-between px-3 py-2 bg-slate-800/80 border-b border-slate-700/60 text-[10px] uppercase tracking-wider text-slate-400 font-sans font-bold select-none",children:[c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(Sv,{size:12,className:"text-blue-400"}),k||(l?l.toUpperCase():"SQL")]}),c.jsx("button",{onClick:()=>N(fe,Te),className:"flex items-center gap-1 hover:text-white transition-colors",children:d===Te?c.jsxs(c.Fragment,{children:[c.jsx(zs,{size:12,className:"text-emerald-400"}),"Copied"]}):c.jsxs(c.Fragment,{children:[c.jsx(mv,{size:12}),"Copy"]})})]}),c.jsx("div",{className:"p-4 overflow-x-auto leading-relaxed text-slate-100 font-mono text-[13px]",children:c.jsx("code",{className:P,...w,children:B})})]})}return c.jsx("code",{className:"bg-slate-100 text-slate-800 px-1.5 py-0.5 rounded text-[12px] font-mono border border-slate-200",...w,children:B})}},children:J})})})};if(!e)return c.jsx("div",{className:"flex flex-col items-center justify-center flex-1 bg-white p-6 select-none",children:c.jsxs("div",{className:"text-center max-w-md flex flex-col items-center gap-4",children:[c.jsx("div",{className:"p-4 bg-slate-100 rounded-full text-slate-600",children:c.jsx(wv,{size:32})}),c.jsx("h2",{className:"text-lg font-bold text-slate-800 tracking-tight",children:"Select or Start a Chat"}),c.jsx("p",{className:"text-xs text-slate-500 leading-normal",children:"Choose a thread from the left sidebar or start a new thread to interact with the analytics intelligence."})]})});const ne=t.length===0;return c.jsxs("div",{className:"flex flex-col flex-1 bg-white h-full overflow-hidden",children:[c.jsxs("div",{className:"flex items-center justify-between border-b px-6 py-3 bg-white select-none",children:[c.jsxs("div",{className:"flex flex-col",children:[c.jsx("span",{className:"text-sm font-bold text-slate-800 truncate max-w-xs",children:e.title||"New Chat"}),c.jsx("span",{className:"text-[9px] text-slate-400 font-bold uppercase tracking-wider mt-0.5",children:"Analyst Playground"})]}),c.jsxs("div",{className:"flex items-center gap-2 border px-2 py-1 rounded bg-slate-50 border-slate-200",children:[c.jsxs("span",{className:"text-[10px] text-slate-500 font-bold uppercase tracking-wider flex items-center gap-1",children:[c.jsx(Yo,{size:11,className:"text-blue-500"})," Dialect:"]}),c.jsx("span",{className:"text-[10px] text-slate-800 font-bold uppercase tracking-wider",children:l})]})]}),c.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-4 flex flex-col bg-white",children:ne?c.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-center max-w-2xl mx-auto w-full select-none py-10",children:[c.jsx("div",{className:"w-16 h-16 flex items-center justify-center bg-white border border-slate-200/80 rounded-2xl mb-4 shadow-subtle overflow-hidden select-none p-2",children:c.jsx("img",{src:bE,alt:"SlothQuery Logo",className:"w-full h-full object-contain"})}),c.jsx("h2",{className:"text-3xl font-semibold text-slate-900 tracking-tight",children:"SlothQuery"}),c.jsx("p",{className:"text-sm text-slate-500 max-w-md mt-3 leading-relaxed",children:"Not every sloth is slow... This sloth is faster when it comes to doing your slow SQL writing and business logic understanding job."}),c.jsxs("div",{className:"w-full max-w-2xl mt-8",children:[c.jsx("form",{onSubmit:I,className:"flex flex-col gap-2 relative border border-slate-200 shadow-md rounded-full bg-white py-1 pl-3 pr-1 focus-within:ring-1 focus-within:ring-slate-400 focus-within:border-slate-400 transition-shadow",children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("div",{className:"relative",children:[c.jsx("button",{type:"button",onClick:()=>h(!p),className:"p-1.5 hover:bg-slate-100 rounded-full text-slate-400 hover:text-slate-700 transition-colors",title:"Vaults, Tags & Dialect Filters",children:c.jsx(Xr,{size:16})}),p&&c.jsxs("div",{ref:T,className:"absolute left-0 bottom-full mb-2 z-50 bg-white border border-slate-200 rounded-xl shadow-lg p-3 w-56 flex flex-col gap-3",children:[c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsxs("label",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider flex items-center gap-1",children:[c.jsx(Ld,{size:10})," Active Vaults"]}),c.jsx("div",{className:"max-h-24 overflow-y-auto border rounded p-1.5 flex flex-col gap-1 bg-slate-50",children:s.length===0?c.jsx("span",{className:"text-[9px] text-slate-400 italic p-1",children:"No vaults available"}):s.map(R=>{const H=((e==null?void 0:e.vault_ids)||[]).includes(R.id);return c.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-slate-600 hover:text-slate-900 cursor-pointer p-0.5",children:[c.jsx("input",{type:"checkbox",checked:H,onChange:()=>{const J=(e==null?void 0:e.vault_ids)||[];let M;H?M=J.filter(P=>P!==R.id):M=[...J,R.id],o(e.id,M)},className:"rounded border-slate-300"}),c.jsx("span",{className:"truncate",children:R.name})]},R.id)})})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsxs("label",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider flex items-center gap-1",children:[c.jsx(Yo,{size:10})," Dialect"]}),c.jsxs("select",{value:l,onChange:R=>i(R.target.value),className:"text-xs border rounded p-1 bg-white focus:outline-none",children:[c.jsx("option",{value:"snowflake",children:"Snowflake"}),c.jsx("option",{value:"bigquery",children:"BigQuery"}),c.jsx("option",{value:"postgresql",children:"PostgreSQL"}),c.jsx("option",{value:"trino",children:"Trino"}),c.jsx("option",{value:"redshift",children:"Redshift"})]})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsxs("label",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider flex items-center gap-1",children:[c.jsx(Fi,{size:10})," Filter Tags"]}),c.jsx("div",{className:"max-h-24 overflow-y-auto border rounded p-1 flex flex-col gap-1",children:x.length===0?c.jsx("span",{className:"text-[9px] text-slate-400 italic p-1",children:"No tags in vault"}):x.map(R=>c.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-slate-600 hover:text-slate-900 cursor-pointer p-0.5",children:[c.jsx("input",{type:"checkbox",checked:S.includes(R),onChange:()=>z(R),className:"rounded border-slate-300"}),c.jsx("span",{className:"truncate",children:R})]},R))})]})]})]}),c.jsx("textarea",{ref:b,value:a,onChange:R=>u(R.target.value),onKeyDown:$,disabled:r,"data-gramm":"false","data-gramm_editor":"false","data-enable-grammarly":"false",placeholder:"Does client or you need that data again? let's begin querying it...",className:"flex-1 text-sm border-none bg-transparent py-1 px-2 placeholder:italic focus:outline-none resize-none disabled:bg-transparent min-h-[28px] max-h-[150px] leading-5 text-slate-800 overflow-y-auto",style:{height:"28px"}}),c.jsx("button",{type:"submit",disabled:!a.trim()||r,className:"bg-blue-600 hover:bg-blue-700 text-white w-10 h-10 rounded-full shadow-subtle transition-colors disabled:opacity-30 shrink-0 flex items-center justify-center",children:c.jsx(Od,{size:18})})]})}),S.length>0&&c.jsx("div",{className:"flex flex-wrap gap-1.5 justify-center mt-2.5",children:S.map(R=>c.jsxs("span",{className:"text-[10px] bg-blue-50 text-blue-700 border border-blue-100 px-2 py-0.5 rounded-full font-medium flex items-center gap-1",children:[c.jsx(Fi,{size:8})," ",R]},R))})]})]}):c.jsxs("div",{className:"max-w-3xl mx-auto w-full flex flex-col gap-5 py-4 pb-6",children:[t.map(R=>c.jsxs("div",{className:`flex flex-col min-w-0 rounded-2xl p-4 shadow-subtle border leading-normal ${R.role==="user"?"self-end w-fit max-w-[75%] bg-slate-50 border-slate-200/80 rounded-tr-none":"self-start w-full max-w-[88%] bg-white border-slate-100 rounded-tl-none"}`,children:[c.jsx("span",{className:"text-[9px] font-bold text-slate-400 uppercase tracking-wider mb-1.5 select-none",children:R.role==="user"?"You":"SlothQuery"}),c.jsx("div",{className:"flex flex-col gap-1",children:U(R.content,R.id)})]},R.id)),r&&c.jsxs("div",{className:"self-start flex flex-col max-w-[85%] bg-white border border-slate-100 rounded-2xl rounded-tl-none p-4 shadow-subtle min-w-[240px]",children:[c.jsx("span",{className:"text-[9px] font-bold text-slate-400 uppercase tracking-wider mb-2 select-none",children:"SlothQuery Agent"}),c.jsxs("div",{className:"flex flex-col gap-2.5",children:[c.jsxs("div",{className:"flex items-center gap-2 text-xs text-slate-600 font-medium select-none",children:[c.jsx("div",{className:"w-2 h-2 bg-blue-600 rounded-full animate-pulse"}),c.jsxs("span",{children:[g===0&&"thinking...",g===1&&"gathering relevant queries...",g===2&&"gathering rules and notes...",g===3&&"looking into logic in knowledge base...",g===4&&"building query..."]})]}),c.jsx("div",{className:"w-full h-1 bg-slate-100 rounded-full overflow-hidden",children:c.jsx("div",{className:"h-full bg-blue-600 transition-all duration-1000 ease-out rounded-full",style:{width:`${(g+1)*20}%`}})})]})]}),c.jsx("div",{ref:E})]})}),!ne&&c.jsx("div",{className:"px-6 pb-6 pt-2 w-full bg-transparent",children:c.jsxs("div",{className:"max-w-3xl mx-auto w-full relative",children:[c.jsx("form",{onSubmit:I,className:"flex flex-col gap-2 relative border border-slate-200 shadow-md rounded-full bg-white py-1 pl-3 pr-1 focus-within:ring-1 focus-within:ring-slate-400 focus-within:border-slate-400 transition-shadow",children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("div",{className:"relative",children:[c.jsx("button",{type:"button",onClick:()=>h(!p),className:"p-1.5 hover:bg-slate-100 rounded-full text-slate-400 hover:text-slate-700 transition-colors",children:c.jsx(Xr,{size:16})}),p&&c.jsxs("div",{ref:T,className:"absolute left-0 bottom-full mb-2 z-50 bg-white border border-slate-200 rounded-xl shadow-lg p-3 w-56 flex flex-col gap-3",children:[c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsxs("label",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider flex items-center gap-1",children:[c.jsx(Ld,{size:10})," Active Vaults"]}),c.jsx("div",{className:"max-h-24 overflow-y-auto border rounded p-1.5 flex flex-col gap-1 bg-slate-50",children:s.length===0?c.jsx("span",{className:"text-[9px] text-slate-400 italic p-1",children:"No vaults available"}):s.map(R=>{const H=((e==null?void 0:e.vault_ids)||[]).includes(R.id);return c.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-slate-600 hover:text-slate-900 cursor-pointer p-0.5",children:[c.jsx("input",{type:"checkbox",checked:H,onChange:()=>{const J=(e==null?void 0:e.vault_ids)||[];let M;H?M=J.filter(P=>P!==R.id):M=[...J,R.id],o(e.id,M)},className:"rounded border-slate-300"}),c.jsx("span",{className:"truncate",children:R.name})]},R.id)})})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsxs("label",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider flex items-center gap-1",children:[c.jsx(Yo,{size:10})," Dialect"]}),c.jsxs("select",{value:l,onChange:R=>i(R.target.value),className:"text-xs border rounded p-1 bg-white focus:outline-none",children:[c.jsx("option",{value:"snowflake",children:"Snowflake"}),c.jsx("option",{value:"bigquery",children:"BigQuery"}),c.jsx("option",{value:"postgresql",children:"PostgreSQL"}),c.jsx("option",{value:"trino",children:"Trino"}),c.jsx("option",{value:"redshift",children:"Redshift"})]})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsxs("label",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider flex items-center gap-1",children:[c.jsx(Fi,{size:10})," Filter Tags"]}),c.jsx("div",{className:"max-h-24 overflow-y-auto border rounded p-1 flex flex-col gap-1",children:x.length===0?c.jsx("span",{className:"text-[9px] text-slate-400 italic p-1",children:"No tags in vault"}):x.map(R=>c.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-slate-600 hover:text-slate-900 cursor-pointer p-0.5",children:[c.jsx("input",{type:"checkbox",checked:S.includes(R),onChange:()=>z(R),className:"rounded border-slate-300"}),c.jsx("span",{className:"truncate",children:R})]},R))})]})]})]}),c.jsx("textarea",{ref:_,value:a,onChange:R=>u(R.target.value),onKeyDown:$,disabled:r,"data-gramm":"false","data-gramm_editor":"false","data-enable-grammarly":"false",placeholder:"Does client or you need that data again? let's begin querying it...",className:"flex-1 text-sm border-none bg-transparent py-1 px-2 placeholder:italic focus:outline-none resize-none disabled:bg-transparent min-h-[28px] max-h-[150px] leading-5 text-slate-800 overflow-y-auto",style:{height:"28px"}}),c.jsx("button",{type:"submit",disabled:!a.trim()||r,className:"bg-blue-600 hover:bg-blue-700 text-white w-10 h-10 rounded-full shadow-subtle transition-colors disabled:opacity-30 shrink-0 flex items-center justify-center",children:c.jsx(Od,{size:18})})]})}),S.length>0&&c.jsx("div",{className:"flex flex-wrap gap-1.5 mt-2",children:S.map(R=>c.jsxs("span",{className:"text-[10px] bg-blue-50 text-blue-700 border border-blue-100 px-2 py-0.5 rounded-full font-medium flex items-center gap-1",children:[c.jsx(Fi,{size:8})," ",R]},R))})]})})]})}function NE({vaultId:e,vaults:t,onCreateVault:n,onDeleteVault:r}){const[l,i]=L.useState("queries"),[s,o]=L.useState([]),[a,u]=L.useState([]),[d,f]=L.useState(null),[p,h]=L.useState(null),[x,v]=L.useState(""),[S,m]=L.useState(e||""),[g,y]=L.useState("all"),[E,T]=L.useState(!1),[b,_]=L.useState(!1),[I,$]=L.useState(!1),[N,z]=L.useState(!1),[U,ne]=L.useState(""),[R,H]=L.useState([]),[J,M]=L.useState([]),[P,B]=L.useState([]),[w,Q]=L.useState([]),[re,k]=L.useState("draft"),[fe,Te]=L.useState(!1),[X,V]=L.useState(""),[Y,se]=L.useState(""),[ge,ke]=L.useState(""),[he,Wt]=L.useState(""),[_t,tt]=L.useState(""),[te,Fe]=L.useState("snowflake"),[Ue,nt]=L.useState(e||""),[pn,pr]=L.useState(!1),[en,ll]=L.useState(!1),[pi,hi]=L.useState(""),[A,F]=L.useState([]),[ee,ie]=L.useState([]),[de,We]=L.useState([]),[yt,ut]=L.useState([]),[hn,mn]=L.useState(!1),[rt,Ot]=L.useState(!1),[wt,mi]=L.useState([]),[Hc,Vc]=L.useState(!1),[qc,Wc]=L.useState(!1),[Sx,Cx]=L.useState(""),[Nx,Ex]=L.useState(null),[gi,il]=L.useState("business_rules"),[fo,hr]=L.useState(""),[po,mr]=L.useState(""),[xi,sl]=L.useState(""),[ho,gn]=L.useState(e||""),[Qc,Kc]=L.useState(!1),[Xc,gr]=L.useState(!1),[Yc,mo]=L.useState(!1),[yi,Gc]=L.useState(""),[go,Jc]=L.useState(""),[Zc,ef]=L.useState(!1),xo=L.useRef(null);L.useEffect(()=>{function j(q){xo.current&&!xo.current.contains(q.target)&&_(!1)}return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[]),L.useEffect(()=>{e&&(m(e),nt(e),gn(e))},[e]);const wi=async()=>{if(S){T(!0);try{const j=await G.get(`http://localhost:8000/api/queries?vault_id=${S}`);o(j.data),j.data.length>0?tf(j.data[0]):f(null)}catch(j){console.error(j)}finally{T(!1)}}},yo=async()=>{if(S)try{const j=await G.get(`http://localhost:8000/api/playbooks?vault_id=${S}`);u(j.data),jx(j.data,l)}catch(j){console.error(j)}},jx=(j,q)=>{const ze={playbooks:"business_rules",schemas:"table_schemas",notes:"analyst_notes"}[q];if(ze){const Ne=j.filter($n=>$n.playbook_type===ze);Ne.length>0?wo(Ne[0]):h(null)}};L.useEffect(()=>{l==="queries"?wi():yo()},[S,l]);const tf=j=>{f(j),h(null),$(!1),z(!1);const q=j.context||{};ne(q.intent||""),H(q.business_rules||[]),M(q.schema_entities||[]),B(q.transformations||[]),Q(q.ambiguities||[]),k(j.approval_status||"draft")},wo=j=>{h(j),f(null),$(!1),z(!1),sl(j.id),hr(j.name),mr(j.content),il(j.playbook_type),gn(j.vault_id),gr(j.always_include||!1)},_x=async()=>{if(d){Te(!0);try{const j={intent:U,business_rules:R,schema_entities:J,transformations:P,ambiguities:w};await G.put(`http://localhost:8000/api/queries/${d.id}/context`,{context_json:j,approval_status:re}),o(s.map(q=>q.id===d.id?{...q,context:j,approval_status:re}:q)),alert("Knowledge context updated successfully!")}catch(j){console.error(j),alert("Failed to save context.")}finally{Te(!1)}}},Tx=async()=>{if(yi.trim()){ef(!0);try{const j=await G.post("http://localhost:8000/api/vaults",{name:yi,description:go});await n(yi,go),nt(j.data.id),gn(j.data.id),m(j.data.id),Gc(""),Jc(""),mo(!1),alert("Vault created successfully inline!")}catch(j){console.error(j),alert("Failed to create vault inline.")}finally{ef(!1)}}},Px=async j=>{var q,oe;if(j.preventDefault(),!X.trim()||!ge.trim()||!Ue){alert("Title, SQL query and target vault are required.");return}pr(!0);try{const Ne=(await G.post("http://localhost:8000/api/queries/extract",{vault_id:Ue,title:X,description:Y,sql_query:ge,sql_comments:he,tags:_t,dialect:te})).data.draft_context||{};hi(Ne.intent||""),F(Ne.business_rules||[]),ie(Ne.schema_entities||[]),We(Ne.transformations||[]),ut(Ne.ambiguities||[]),ll(!0)}catch(ze){console.error(ze),alert(`Failed to extract draft context: ${((oe=(q=ze.response)==null?void 0:q.data)==null?void 0:oe.detail)||ze.message}`)}finally{pr(!1)}},Rx=async()=>{var j,q,oe,ze;mn(!0);try{const Ne={intent:pi,business_rules:A,schema_entities:ee,transformations:de,ambiguities:yt};await G.post("http://localhost:8000/api/queries/with-context",{vault_id:Ue,title:X,description:Y,sql_query:ge,sql_comments:he,tags:_t,dialect:te,context_json:Ne}),ll(!1),Cx(Ue),Ex(Ne),wi(),Vc(!0),Ot(!0);try{const $n=await G.post("http://127.0.0.1:8000/api/queries/preview-playbook-push",{vault_id:Ue,context_json:Ne});mi($n.data.preview||[])}catch($n){console.error("Preview failed:",$n),mi([]),Ot(!1),alert(`Failed to analyze knowledge base updates: ${((q=(j=$n.response)==null?void 0:j.data)==null?void 0:q.detail)||$n.message}`)}finally{Vc(!1)}V(""),se(""),ke(""),Wt(""),tt(""),$(!1)}catch(Ne){console.error(Ne),alert(`Failed to save query context: ${((ze=(oe=Ne.response)==null?void 0:oe.data)==null?void 0:ze.detail)||Ne.message}`)}finally{mn(!1)}},Ax=async()=>{Wc(!0);try{await G.post("http://127.0.0.1:8000/api/queries/confirm-playbook-push",{vault_id:Sx,context_json:Nx}),Ot(!1),mi([]),wi()}catch(j){console.error("Playbook push failed:",j),alert("Could not push to playbooks. You can do it manually from the Rules/Schemas/Notes tabs.")}finally{Wc(!1)}},Ix=()=>{Ot(!1),mi([])},Lx=async j=>{if(j.preventDefault(),!fo.trim()||!po.trim()||!ho){alert("Name, Content, and Vault selection are required.");return}Kc(!0);try{const q={vault_id:ho,playbook_type:gi,name:fo,content:po,always_include:Xc};xi&&(q.id=xi);const oe=await G.post("http://127.0.0.1:8000/api/playbooks",q);alert("Asset saved successfully!"),z(!1),yo(),wo(oe.data)}catch(q){console.error(q),alert("Failed to save asset.")}finally{Kc(!1)}},zx=async()=>{if(p&&window.confirm(`Are you sure you want to delete "${p.name}"?`))try{await G.delete(`http://localhost:8000/api/playbooks/${p.id}`),alert("Asset deleted."),h(null),yo()}catch(j){console.error(j),alert("Failed to delete asset.")}},Ox=async()=>{if(!(!d||!window.confirm(`Delete "${d.title}"?
|
|
254
|
+
|
|
255
|
+
⚠️ Important: Business logic or content derived from this query may still exist in your vault Playbooks (Business Rules, Schemas, Notes).
|
|
256
|
+
|
|
257
|
+
Please review and edit those Playbooks manually after deletion to ensure accurate AI responses.
|
|
258
|
+
|
|
259
|
+
This action cannot be undone.`)))try{await G.delete(`http://localhost:8000/api/queries/${d.id}`),f(null),wi()}catch(q){console.error(q),alert("Failed to delete query.")}},Dx=async()=>{if(!S)return;const j=t.find(ze=>ze.id===S),q=(j==null?void 0:j.name)||"this vault";if(window.confirm(`Delete vault "${q}"?
|
|
260
|
+
|
|
261
|
+
⚠️ This will permanently delete:
|
|
262
|
+
• All queries in this vault
|
|
263
|
+
• All query contexts
|
|
264
|
+
• All playbooks (Business Rules, Schemas, Notes)
|
|
265
|
+
• The vault's AI search index
|
|
266
|
+
|
|
267
|
+
Any business logic that was merged from this vault's queries into other areas will NOT be automatically removed.
|
|
268
|
+
|
|
269
|
+
This action cannot be undone.`))try{await r(S)}catch(ze){console.error(ze),alert("Failed to delete vault.")}},xn=(j,q,oe,ze)=>{const Ne=[...oe];Ne[j]=q,ze(Ne)},yn=(j,q)=>{q([...j,""])},wn=(j,q,oe)=>{oe(q.filter((ze,Ne)=>Ne!==j))},nf=s.filter(j=>{const q=j.title.toLowerCase().includes(x.toLowerCase())||j.sql_query.toLowerCase().includes(x.toLowerCase()),oe=g==="all"||j.dialect.toLowerCase()===g.toLowerCase();return q&&oe}),Fx=()=>({playbooks:"business_rules",schemas:"table_schemas",notes:"analyst_notes"})[l],rf=a.filter(j=>{const q=j.playbook_type===Fx(),oe=j.name.toLowerCase().includes(x.toLowerCase())||j.content.toLowerCase().includes(x.toLowerCase());return q&&oe});return c.jsxs("div",{className:"flex flex-1 bg-white h-screen overflow-hidden",children:[c.jsxs("div",{className:"w-80 border-r flex flex-col h-full bg-slate-50/50",children:[c.jsxs("div",{className:"flex border-b border-slate-200 text-[10px] select-none bg-slate-100/40",children:[c.jsx("button",{onClick:()=>i("queries"),className:`flex-1 py-2 text-center border-b-2 font-bold uppercase tracking-wider transition-colors ${l==="queries"?"border-slate-800 text-slate-800 bg-white":"border-transparent text-slate-400 hover:text-slate-700"}`,children:"Queries"}),c.jsx("button",{onClick:()=>i("playbooks"),className:`flex-1 py-2 text-center border-b-2 font-bold uppercase tracking-wider transition-colors ${l==="playbooks"?"border-slate-800 text-slate-800 bg-white":"border-transparent text-slate-400 hover:text-slate-700"}`,title:"Business Rules & Logic Playbooks",children:"Rules"}),c.jsx("button",{onClick:()=>i("schemas"),className:`flex-1 py-2 text-center border-b-2 font-bold uppercase tracking-wider transition-colors ${l==="schemas"?"border-slate-800 text-slate-800 bg-white":"border-transparent text-slate-400 hover:text-slate-700"}`,title:"Table Schemas & Joins Connections",children:"Schemas"}),c.jsx("button",{onClick:()=>i("notes"),className:`flex-1 py-2 text-center border-b-2 font-bold uppercase tracking-wider transition-colors ${l==="notes"?"border-slate-800 text-slate-800 bg-white":"border-transparent text-slate-400 hover:text-slate-700"}`,title:"Analyst Knowledge Notes",children:"Notes"})]}),c.jsxs("div",{className:"p-4 border-b flex flex-col gap-2.5",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("h2",{className:"font-bold text-slate-850 text-slate-800 text-sm flex items-center gap-1.5",children:[c.jsx(Rl,{size:16,className:"text-slate-600"})," Studio Assets"]}),c.jsxs("div",{className:"relative",ref:xo,children:[c.jsxs("button",{onClick:()=>_(!b),className:"text-xs bg-slate-900 text-white font-semibold px-2.5 py-1.5 rounded-lg hover:bg-slate-800 flex items-center gap-1 shadow-subtle transition-colors",children:[c.jsx(Xr,{size:14})," Add Asset"]}),b&&c.jsxs("div",{className:"absolute right-0 mt-1.5 w-44 bg-white border border-slate-200 rounded-lg shadow-lg py-1 z-30 text-xs text-slate-700 font-medium",children:[c.jsxs("button",{onClick:()=>{_(!1),$(!0),z(!1),nt(S)},className:"w-full text-left px-3 py-2 hover:bg-slate-50 flex items-center gap-1.5 border-b border-slate-100",children:[c.jsx(xv,{size:12,className:"text-blue-500"})," Add Query"]}),c.jsxs("button",{onClick:()=>{_(!1),$(!1),z(!0),il("business_rules"),hr(""),mr(""),sl(""),gn(S),gr(!1)},className:"w-full text-left px-3 py-2 hover:bg-slate-50 flex items-center gap-1.5",children:[c.jsx(Ls,{size:12,className:"text-emerald-500"})," Add Business Rule"]}),c.jsxs("button",{onClick:()=>{_(!1),$(!1),z(!0),il("table_schemas"),hr(""),mr(""),sl(""),gn(S),gr(!1)},className:"w-full text-left px-3 py-2 hover:bg-slate-50 flex items-center gap-1.5",children:[c.jsx(Rl,{size:12,className:"text-amber-500"})," Add Table Schema"]}),c.jsxs("button",{onClick:()=>{_(!1),$(!1),z(!0),il("analyst_notes"),hr(""),mr(""),sl(""),gn(S),gr(!1)},className:"w-full text-left px-3 py-2 hover:bg-slate-50 flex items-center gap-1.5",children:[c.jsx(pv,{size:12,className:"text-purple-500"})," Add Analyst Note"]})]})]})]}),c.jsxs("div",{className:"flex flex-col gap-0.5",children:[c.jsx("span",{className:"text-[9px] font-bold uppercase tracking-wider text-slate-400",children:"Vault:"}),c.jsxs("div",{className:"flex gap-1.5 items-center",children:[c.jsx("select",{value:S,onChange:j=>m(j.target.value),className:"flex-1 text-xs border rounded bg-white px-2 py-1 text-slate-700 font-semibold focus:outline-none focus:ring-1 focus:ring-slate-400",children:t.map(j=>c.jsx("option",{value:j.id,children:j.name},j.id))}),c.jsx("button",{onClick:Dx,title:"Delete this vault and all its contents",className:"shrink-0 p-1 text-slate-400 hover:text-rose-600 hover:bg-rose-50 rounded border border-transparent hover:border-rose-200 transition-colors",children:c.jsx(Mr,{size:13})})]})]}),l==="queries"&&c.jsxs("div",{className:"flex flex-col gap-0.5",children:[c.jsx("span",{className:"text-[9px] font-bold uppercase tracking-wider text-slate-400",children:"Dialect:"}),c.jsxs("select",{value:g,onChange:j=>y(j.target.value),className:"w-full text-xs border rounded bg-white px-2 py-1 text-slate-700 font-semibold focus:outline-none focus:ring-1 focus:ring-slate-400",children:[c.jsx("option",{value:"all",children:"All Dialects"}),c.jsx("option",{value:"snowflake",children:"Snowflake"}),c.jsx("option",{value:"bigquery",children:"BigQuery"}),c.jsx("option",{value:"postgresql",children:"PostgreSQL"}),c.jsx("option",{value:"trino",children:"Trino"}),c.jsx("option",{value:"redshift",children:"Redshift"})]})]}),c.jsxs("div",{className:"relative mt-1",children:[c.jsx("input",{type:"text",value:x,onChange:j=>v(j.target.value),placeholder:`Search ${l}...`,className:"w-full text-xs border rounded-lg pl-8 pr-3 py-1.5 bg-white focus:outline-none focus:ring-1 focus:ring-slate-400 shadow-subtle"}),c.jsx(kv,{size:13,className:"absolute left-2.5 top-2 text-slate-400"})]})]}),c.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:E?c.jsx("div",{className:"flex items-center justify-center py-10",children:c.jsx(Hn,{className:"animate-spin text-slate-400",size:20})}):l==="queries"?nf.length===0?c.jsx("div",{className:"text-xs text-slate-400 italic text-center py-10",children:"No matching queries."}):c.jsx("div",{className:"flex flex-col gap-1",children:nf.map(j=>c.jsxs("div",{onClick:()=>tf(j),className:`p-3 rounded-lg border cursor-pointer transition-colors text-xs ${(d==null?void 0:d.id)===j.id?"bg-white border-slate-400 font-medium shadow-subtle":"bg-transparent border-transparent hover:bg-slate-100"}`,children:[c.jsxs("div",{className:"flex items-center justify-between gap-2",children:[c.jsx("span",{className:"font-bold text-slate-800 truncate",children:j.title}),c.jsx("span",{className:"text-[9px] uppercase font-bold text-slate-500 bg-slate-200/50 px-1.5 py-0.5 rounded tracking-wide",children:j.dialect})]}),c.jsx("p",{className:"text-[10px] text-slate-500 truncate mt-1",children:j.description||"No description"}),c.jsxs("div",{className:"flex items-center gap-1.5 mt-2",children:[c.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${j.approval_status==="approved"?"bg-emerald-500":j.approval_status==="archived"?"bg-slate-400":"bg-amber-500"}`}),c.jsx("span",{className:"text-[9px] text-slate-400 uppercase font-semibold",children:j.approval_status||"draft"})]})]},j.id))}):rf.length===0?c.jsx("div",{className:"text-xs text-slate-400 italic text-center py-10",children:"No matching assets."}):c.jsx("div",{className:"flex flex-col gap-1",children:rf.map(j=>c.jsxs("div",{onClick:()=>wo(j),className:`p-3 rounded-lg border cursor-pointer transition-colors text-xs ${(p==null?void 0:p.id)===j.id?"bg-white border-slate-400 font-medium shadow-subtle":"bg-transparent border-transparent hover:bg-slate-100"}`,children:[c.jsx("span",{className:"font-bold text-slate-800 truncate block",children:j.name}),c.jsx("p",{className:"text-[10px] text-slate-500 truncate mt-1",children:j.content})]},j.id))})})]}),c.jsxs("div",{className:"flex-1 overflow-y-auto p-6 bg-white",children:[I&&c.jsxs("div",{className:"max-w-2xl flex flex-col gap-5",children:[c.jsxs("div",{className:"border-b pb-3",children:[c.jsx("h3",{className:"text-base font-bold text-slate-800",children:"Add Query Asset"}),c.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Submit an SQL query. The context pipeline will prompt you to review the extracted intelligence before finalizing."})]}),c.jsxs("form",{onSubmit:Px,className:"flex flex-col gap-4",children:[c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Query Title"}),c.jsx("input",{type:"text",value:X,onChange:j=>V(j.target.value),placeholder:"e.g. Daily active users counts",className:"text-xs border rounded p-2 focus:outline-none focus:ring-1 focus:ring-slate-400 bg-white",required:!0})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Target Vault"}),c.jsxs("div",{className:"flex gap-2",children:[c.jsxs("select",{value:Ue,onChange:j=>nt(j.target.value),className:"text-xs border rounded p-2 focus:outline-none focus:ring-1 focus:ring-slate-400 bg-white flex-1",required:!0,children:[c.jsx("option",{value:"",disabled:!0,children:"Select Vault..."}),t.map(j=>c.jsx("option",{value:j.id,children:j.name},j.id))]}),c.jsxs("button",{type:"button",onClick:()=>mo(!Yc),className:"text-xs border border-slate-350 hover:bg-slate-50 text-slate-700 px-2.5 py-1.5 rounded font-semibold flex items-center gap-1 shadow-subtle shrink-0",children:[c.jsx(hv,{size:14})," Inline Vault"]})]})]})]}),Yc&&c.jsxs("div",{className:"p-3 border border-blue-100 rounded-lg bg-blue-50/50 flex flex-col gap-3 shadow-subtle",children:[c.jsx("span",{className:"text-[10px] font-bold text-blue-700 uppercase tracking-wider",children:"Create Vault Inline"}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsxs("div",{className:"flex flex-col gap-0.5",children:[c.jsx("label",{className:"text-[9px] font-bold text-slate-500",children:"Vault Name"}),c.jsx("input",{type:"text",value:yi,onChange:j=>Gc(j.target.value),placeholder:"Finance Heuristics",className:"text-xs border rounded p-1.5 bg-white focus:outline-none"})]}),c.jsxs("div",{className:"flex flex-col gap-0.5",children:[c.jsx("label",{className:"text-[9px] font-bold text-slate-500",children:"Description"}),c.jsx("input",{type:"text",value:go,onChange:j=>Jc(j.target.value),placeholder:"Context...",className:"text-xs border rounded p-1.5 bg-white focus:outline-none"})]})]}),c.jsxs("div",{className:"flex justify-end gap-1.5 border-t pt-2 border-slate-200/50",children:[c.jsx("button",{type:"button",onClick:()=>mo(!1),className:"text-[10px] font-bold px-2 py-1 border rounded hover:bg-white text-slate-600 bg-white",children:"Cancel"}),c.jsx("button",{type:"button",onClick:Tx,disabled:Zc,className:"text-[10px] font-bold bg-blue-600 hover:bg-blue-700 text-white px-2.5 py-1 rounded disabled:opacity-50",children:Zc?"Creating...":"Create Vault"})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Dialect"}),c.jsxs("select",{value:te,onChange:j=>Fe(j.target.value),className:"text-xs border rounded p-2 focus:outline-none focus:ring-1 focus:ring-slate-400 bg-white",children:[c.jsx("option",{value:"snowflake",children:"Snowflake"}),c.jsx("option",{value:"bigquery",children:"BigQuery"}),c.jsx("option",{value:"postgresql",children:"PostgreSQL"}),c.jsx("option",{value:"trino",children:"Trino"}),c.jsx("option",{value:"redshift",children:"Redshift"})]})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Tags (comma-separated)"}),c.jsx("input",{type:"text",value:_t,onChange:j=>tt(j.target.value),placeholder:"e.g. metrics, active_users, reporting",className:"text-xs border rounded p-2 focus:outline-none focus:ring-1 focus:ring-slate-400 bg-white"})]})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Description"}),c.jsx("input",{type:"text",value:Y,onChange:j=>se(j.target.value),placeholder:"What is this query primarily used for?",className:"text-xs border rounded p-2 focus:outline-none focus:ring-1 focus:ring-slate-400 bg-white"})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Raw SQL Query"}),c.jsx("textarea",{value:ge,onChange:j=>ke(j.target.value),placeholder:"SELECT ...",className:"text-xs border rounded p-2 h-36 font-mono resize-none focus:outline-none focus:ring-1 focus:ring-slate-400 bg-white",required:!0})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Comments & Analyst Notes"}),c.jsx("textarea",{value:he,onChange:j=>Wt(j.target.value),placeholder:"Include any heuristics, join caveats, or specific column filtering...",className:"text-xs border rounded p-2 h-20 resize-none focus:outline-none focus:ring-1 focus:ring-slate-400 bg-white"})]}),c.jsxs("div",{className:"flex justify-end gap-2 mt-2",children:[c.jsx("button",{type:"button",onClick:()=>$(!1),className:"text-xs font-semibold px-4 py-2 border rounded hover:bg-slate-50",children:"Cancel"}),c.jsx("button",{type:"submit",disabled:pn,className:"text-xs font-semibold bg-slate-900 text-white px-4 py-2 rounded hover:bg-slate-800 disabled:opacity-50 flex items-center gap-1.5 shadow-subtle",children:pn?c.jsxs(c.Fragment,{children:[c.jsx(Hn,{size:12,className:"animate-spin"}),"Extracting Context..."]}):"Generate & Review Intelligence"})]})]})]}),N&&c.jsxs("div",{className:"max-w-2xl flex flex-col gap-5",children:[c.jsx("div",{className:"border-b pb-3",children:c.jsxs("h3",{className:"text-base font-bold text-slate-800",children:[xi?"Edit":"Create"," ",gi==="business_rules"?"Business Rule":gi==="table_schemas"?"Table Schema":"Analyst Note"]})}),c.jsxs("form",{onSubmit:Lx,className:"flex flex-col gap-4",children:[c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Asset Name / Title"}),c.jsx("input",{type:"text",value:fo,onChange:j=>hr(j.target.value),placeholder:gi==="table_schemas"?"schema.table_name":"e.g. ARR Calculation Rule",className:"text-xs border rounded p-2 focus:outline-none focus:ring-1 focus:ring-slate-400 bg-white",required:!0})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Target Vault"}),c.jsxs("select",{value:ho,onChange:j=>gn(j.target.value),className:"text-xs border rounded p-2 focus:outline-none focus:ring-1 focus:ring-slate-400 bg-white",required:!0,children:[c.jsx("option",{value:"",disabled:!0,children:"Select Vault..."}),t.map(j=>c.jsx("option",{value:j.id,children:j.name},j.id))]})]})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Content / Documentation"}),c.jsx("textarea",{value:po,onChange:j=>mr(j.target.value),placeholder:"Provide definitions, column listings, joins conditions, or analytical insights...",className:"text-xs border rounded p-2 h-72 resize-none focus:outline-none focus:ring-1 focus:ring-slate-400 bg-white leading-relaxed text-slate-800",required:!0})]}),c.jsxs("div",{className:"flex items-center gap-2 py-1 select-none",children:[c.jsx("input",{type:"checkbox",id:"always_include",checked:Xc,onChange:j=>gr(j.target.checked),className:"rounded border-slate-350 text-blue-600 focus:ring-blue-500 w-3.5 h-3.5 cursor-pointer bg-white"}),c.jsx("label",{htmlFor:"always_include",className:"text-xs text-slate-650 font-medium cursor-pointer",children:"Always include this asset in the chat retrieval context (disables dynamic requirement filtering)"})]}),c.jsxs("div",{className:"flex justify-between items-center mt-2",children:[c.jsx("div",{children:xi&&c.jsxs("button",{type:"button",onClick:zx,className:"text-xs font-semibold px-3 py-2 text-rose-600 border border-rose-200 hover:bg-rose-50 rounded flex items-center gap-1",children:[c.jsx(Mr,{size:12}),"Delete Asset"]})}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{type:"button",onClick:()=>z(!1),className:"text-xs font-semibold px-4 py-2 border rounded hover:bg-slate-50",children:"Cancel"}),c.jsxs("button",{type:"submit",disabled:Qc,className:"text-xs font-semibold bg-slate-900 text-white px-4 py-2 rounded hover:bg-slate-800 disabled:opacity-50 flex items-center gap-1 shadow-subtle",children:[Qc&&c.jsx(Hn,{size:12,className:"animate-spin"}),"Save Asset"]})]})]})]})]}),d&&!I&&!N&&c.jsxs("div",{className:"max-w-4xl flex flex-col gap-6",children:[c.jsxs("div",{className:"flex flex-col gap-3 border-b pb-4",children:[c.jsxs("div",{className:"grid grid-cols-10 gap-4 items-start",children:[c.jsx("div",{className:"col-span-4 flex flex-col gap-1",children:c.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[c.jsx("h3",{className:"text-lg font-bold text-slate-800 leading-snug",children:d.title}),c.jsx("span",{className:"text-[10px] uppercase font-bold text-slate-500 bg-slate-200/50 px-2 py-0.5 rounded tracking-wide whitespace-nowrap",children:d.dialect})]})}),c.jsxs("div",{className:"col-span-6 flex items-center justify-end gap-2 mt-0.5",children:[c.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-wider select-none whitespace-nowrap",children:"Status:"}),c.jsxs("select",{value:re,onChange:j=>k(j.target.value),className:"text-xs border rounded bg-white px-2 py-1.5 font-semibold text-slate-700 focus:outline-none shadow-subtle max-w-[200px]",children:[c.jsx("option",{value:"draft",children:"Draft (Extracting/Reviewing)"}),c.jsx("option",{value:"approved",children:"Approved (High Rank)"}),c.jsx("option",{value:"archived",children:"Archived"})]}),c.jsxs("button",{onClick:_x,disabled:fe,className:"text-xs bg-slate-900 text-white font-semibold px-3 py-1.5 rounded hover:bg-slate-800 flex items-center gap-1.5 shadow-subtle disabled:opacity-50 transition-colors whitespace-nowrap",children:[fe?c.jsx(Hn,{size:12,className:"animate-spin"}):c.jsx(xg,{size:12}),"Save Context"]}),c.jsxs("button",{onClick:Ox,title:"Delete this query",className:"text-xs text-rose-600 border border-rose-200 hover:bg-rose-50 font-semibold px-2.5 py-1.5 rounded flex items-center gap-1 transition-colors whitespace-nowrap",children:[c.jsx(Mr,{size:12}),"Delete"]})]})]}),d.description&&c.jsx("p",{className:"text-xs text-slate-500 leading-relaxed mt-1",children:d.description})]}),c.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.jsx("span",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"SQL Query"}),c.jsx("pre",{className:"p-3 bg-slate-900 text-slate-100 font-mono text-xs rounded-xl border overflow-x-auto max-h-48 border-slate-800",children:c.jsx("code",{children:d.sql_query})})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[c.jsxs("div",{className:"flex flex-col gap-2",children:[c.jsx("span",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Business Intent"}),c.jsx("textarea",{value:U,onChange:j=>ne(j.target.value),placeholder:"Explain why this query is written...",className:"text-xs border rounded p-2.5 h-24 resize-none focus:outline-none focus:ring-1 focus:ring-slate-400 bg-white text-slate-800 leading-normal"})]}),c.jsxs("div",{className:"flex flex-col gap-2",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("span",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Schema Entities"}),c.jsx("button",{onClick:()=>yn(J,M),className:"text-[10px] text-blue-600 hover:text-blue-700 hover:underline font-semibold",children:"+ Add Entity"})]}),c.jsxs("div",{className:"flex flex-col gap-1.5 max-h-32 overflow-y-auto border p-2 rounded-lg bg-slate-50",children:[J.map((j,q)=>c.jsxs("div",{className:"flex gap-1",children:[c.jsx("input",{type:"text",value:j,onChange:oe=>xn(q,oe.target.value,J,M),placeholder:"schema.table_name",className:"text-xs border rounded px-2 py-1 flex-1 bg-white focus:outline-none"}),c.jsx("button",{onClick:()=>wn(q,J,M),className:"text-slate-400 hover:text-rose-600 text-xs px-1",children:"×"})]},q)),J.length===0&&c.jsx("span",{className:"text-[10px] text-slate-400 italic p-1",children:"No schema entities."})]})]}),c.jsxs("div",{className:"flex flex-col gap-2",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("span",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Business Rules"}),c.jsx("button",{onClick:()=>yn(R,H),className:"text-[10px] text-blue-600 hover:text-blue-700 hover:underline font-semibold",children:"+ Add Rule"})]}),c.jsxs("div",{className:"flex flex-col gap-1.5 max-h-40 overflow-y-auto border p-2 rounded-lg bg-slate-50",children:[R.map((j,q)=>c.jsxs("div",{className:"flex gap-1",children:[c.jsx("input",{type:"text",value:j,onChange:oe=>xn(q,oe.target.value,R,H),placeholder:"e.g. Filter excludes internal accounts",className:"text-xs border rounded px-2 py-1 flex-1 bg-white focus:outline-none"}),c.jsx("button",{onClick:()=>wn(q,R,H),className:"text-slate-400 hover:text-rose-600 text-xs px-1",children:"×"})]},q)),R.length===0&&c.jsx("span",{className:"text-[10px] text-slate-400 italic p-1",children:"No rules."})]})]}),c.jsxs("div",{className:"flex flex-col gap-2",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("span",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Metrics / Logic"}),c.jsx("button",{onClick:()=>yn(P,B),className:"text-[10px] text-blue-600 hover:text-blue-700 hover:underline font-semibold",children:"+ Add Metric"})]}),c.jsxs("div",{className:"flex flex-col gap-1.5 max-h-40 overflow-y-auto border p-2 rounded-lg bg-slate-50",children:[P.map((j,q)=>c.jsxs("div",{className:"flex gap-1",children:[c.jsx("input",{type:"text",value:j,onChange:oe=>xn(q,oe.target.value,P,B),placeholder:"e.g. ARR = MRR * 12",className:"text-xs border rounded px-2 py-1 flex-1 bg-white focus:outline-none"}),c.jsx("button",{onClick:()=>wn(q,P,B),className:"text-slate-400 hover:text-rose-600 text-xs px-1",children:"×"})]},q)),P.length===0&&c.jsx("span",{className:"text-[10px] text-slate-400 italic p-1",children:"No metrics."})]})]}),c.jsxs("div",{className:"flex flex-col gap-2 col-span-2",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("span",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Ambiguities"}),c.jsx("button",{onClick:()=>yn(w,Q),className:"text-[10px] text-blue-600 hover:text-blue-700 hover:underline font-semibold",children:"+ Add Ambiguity"})]}),c.jsxs("div",{className:"flex flex-col gap-1.5 max-h-32 overflow-y-auto border p-2 rounded-lg bg-slate-50",children:[w.map((j,q)=>c.jsxs("div",{className:"flex gap-1",children:[c.jsx("input",{type:"text",value:j,onChange:oe=>xn(q,oe.target.value,w,Q),placeholder:"e.g. Which region code is primary?",className:"text-xs border rounded px-2 py-1 flex-1 bg-white focus:outline-none"}),c.jsx("button",{onClick:()=>wn(q,w,Q),className:"text-slate-400 hover:text-rose-600 text-xs px-1",children:"×"})]},q)),w.length===0&&c.jsx("span",{className:"text-[10px] text-slate-400 italic p-1",children:"No ambiguities."})]})]})]})]}),p&&!I&&!N&&c.jsxs("div",{className:"max-w-4xl flex flex-col gap-6",children:[c.jsxs("div",{className:"flex items-start justify-between border-b pb-4",children:[c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("h3",{className:"text-lg font-bold text-slate-800",children:p.name}),c.jsxs("div",{className:"flex gap-1.5 items-center",children:[c.jsx("span",{className:"text-[9px] uppercase font-bold text-slate-500 bg-slate-200/50 px-2 py-0.5 rounded tracking-wide w-fit",children:p.playbook_type==="business_rules"?"Business Rule":p.playbook_type==="table_schemas"?"Schema Definition":"Analyst Note"}),c.jsx("span",{className:`text-[9px] uppercase font-bold px-2 py-0.5 rounded tracking-wide w-fit border ${p.always_include?"text-blue-700 bg-blue-50 border-blue-200/50":"text-slate-600 bg-slate-100 border-slate-200/50"}`,children:p.always_include?"Always Included":"Requirement Based"})]})]}),c.jsxs("button",{onClick:()=>{z(!0),sl(p.id),hr(p.name),mr(p.content),il(p.playbook_type),gn(p.vault_id),gr(p.always_include||!1)},className:"text-xs border hover:bg-slate-50 text-slate-700 px-3 py-1.5 rounded font-semibold flex items-center gap-1.5 shadow-subtle transition-colors",children:[c.jsx(uu,{size:12}),"Edit Asset"]})]}),c.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.jsx("span",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Documentation Content"}),c.jsx("div",{className:"p-4 bg-slate-50 border rounded-xl leading-relaxed text-sm text-slate-800 whitespace-pre-wrap",children:p.content})]})]}),!d&&!p&&!I&&!N&&c.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-center select-none h-full max-w-md mx-auto",children:[c.jsx(Rl,{size:32,className:"text-slate-350 mb-3"}),c.jsx("span",{className:"text-xs text-slate-450 font-medium text-slate-500 leading-normal",children:"Select an asset from the studio list on the left to review/edit, or use the Add Asset menu to add new organizational intelligence."})]})]}),en&&c.jsx("div",{className:"fixed inset-0 z-50 bg-slate-900/40 backdrop-blur-[2px] flex items-center justify-center p-4",children:c.jsxs("div",{className:"bg-white rounded-xl border shadow-xl max-w-3xl w-full flex flex-col max-h-[85vh]",children:[c.jsx("div",{className:"flex justify-between items-center px-6 py-4 border-b",children:c.jsxs("div",{className:"flex flex-col",children:[c.jsxs("span",{className:"text-sm font-extrabold text-slate-900 tracking-tight flex items-center gap-1.5",children:[c.jsx(Ad,{size:16,className:"text-emerald-500"}),"Review Draft Intelligence"]}),c.jsx("span",{className:"text-[10px] text-slate-400 font-semibold uppercase tracking-wider mt-0.5",children:"Step 1 of 2: Confirm AI-Extracted Context"})]})}),c.jsxs("div",{className:"flex-1 overflow-y-auto p-6 flex flex-col gap-5",children:[c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-wider",children:"Business Intent"}),c.jsx("textarea",{value:pi,onChange:j=>hi(j.target.value),placeholder:"What business metric or definition does this query serve?",className:"text-xs border rounded p-2.5 h-20 resize-none focus:outline-none focus:ring-1 focus:ring-slate-400 bg-white text-slate-800 leading-normal"})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("label",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-wider",children:"Table Entities"}),c.jsx("button",{type:"button",onClick:()=>yn(ee,ie),className:"text-[9px] text-blue-600 hover:text-blue-700 font-bold",children:"+ Add"})]}),c.jsx("div",{className:"flex flex-col gap-1.5 max-h-32 overflow-y-auto border p-2 rounded bg-slate-50/70",children:ee.map((j,q)=>c.jsxs("div",{className:"flex gap-1",children:[c.jsx("input",{type:"text",value:j,onChange:oe=>xn(q,oe.target.value,ee,ie),placeholder:"schema.table",className:"text-[11px] border rounded px-2 py-1.5 flex-1 bg-white focus:outline-none"}),c.jsx("button",{type:"button",onClick:()=>wn(q,ee,ie),className:"text-slate-400 hover:text-rose-600 text-sm px-1.5",children:"×"})]},q))})]}),c.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("label",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-wider",children:"Business Rules Applied"}),c.jsx("button",{type:"button",onClick:()=>yn(A,F),className:"text-[9px] text-blue-600 hover:text-blue-700 font-bold",children:"+ Add"})]}),c.jsx("div",{className:"flex flex-col gap-1.5 max-h-32 overflow-y-auto border p-2 rounded bg-slate-50/70",children:A.map((j,q)=>c.jsxs("div",{className:"flex gap-1",children:[c.jsx("input",{type:"text",value:j,onChange:oe=>xn(q,oe.target.value,A,F),placeholder:"Excludes deactivated accounts",className:"text-[11px] border rounded px-2 py-1.5 flex-1 bg-white focus:outline-none"}),c.jsx("button",{type:"button",onClick:()=>wn(q,A,F),className:"text-slate-400 hover:text-rose-600 text-sm px-1.5",children:"×"})]},q))})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("label",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-wider",children:"Calculations & Formulas"}),c.jsx("button",{type:"button",onClick:()=>yn(de,We),className:"text-[9px] text-blue-600 hover:text-blue-700 font-bold",children:"+ Add"})]}),c.jsx("div",{className:"flex flex-col gap-1.5 max-h-32 overflow-y-auto border p-2 rounded bg-slate-50/70",children:de.map((j,q)=>c.jsxs("div",{className:"flex gap-1",children:[c.jsx("input",{type:"text",value:j,onChange:oe=>xn(q,oe.target.value,de,We),placeholder:"ARR = Monthly spend * 12",className:"text-[11px] border rounded px-2 py-1.5 flex-1 bg-white focus:outline-none"}),c.jsx("button",{type:"button",onClick:()=>wn(q,de,We),className:"text-slate-400 hover:text-rose-600 text-sm px-1.5",children:"×"})]},q))})]}),c.jsxs("div",{className:"flex flex-col gap-1.5",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("label",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-wider",children:"Ambiguities / Open Questions"}),c.jsx("button",{type:"button",onClick:()=>yn(yt,ut),className:"text-[9px] text-blue-600 hover:text-blue-700 font-bold",children:"+ Add"})]}),c.jsx("div",{className:"flex flex-col gap-1.5 max-h-32 overflow-y-auto border p-2 rounded bg-slate-50/70",children:yt.map((j,q)=>c.jsxs("div",{className:"flex gap-1",children:[c.jsx("input",{type:"text",value:j,onChange:oe=>xn(q,oe.target.value,yt,ut),placeholder:"Caveats or logic holes",className:"text-[11px] border rounded px-2 py-1.5 flex-1 bg-white focus:outline-none"}),c.jsx("button",{type:"button",onClick:()=>wn(q,yt,ut),className:"text-slate-400 hover:text-rose-600 text-sm px-1.5",children:"×"})]},q))})]})]})]}),c.jsxs("div",{className:"flex justify-end gap-2.5 px-6 py-4 border-t bg-slate-50 rounded-b-xl select-none",children:[c.jsx("button",{type:"button",onClick:()=>ll(!1),className:"text-xs font-semibold px-4 py-2 border rounded hover:bg-slate-100 bg-white",children:"Cancel"}),c.jsx("button",{type:"button",onClick:Rx,disabled:hn,className:"text-xs font-semibold bg-emerald-600 hover:bg-emerald-700 text-white px-4 py-2 rounded disabled:opacity-50 flex items-center gap-1.5 shadow-subtle transition-colors",children:hn?c.jsxs(c.Fragment,{children:[c.jsx(Hn,{size:12,className:"animate-spin"}),"Saving..."]}):c.jsxs(c.Fragment,{children:[c.jsx(zs,{size:12}),"Approve & Save Asset"]})})]})]})}),rt&&c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40 backdrop-blur-sm",children:c.jsxs("div",{className:"bg-white rounded-xl shadow-xl border border-slate-200 w-full max-w-2xl max-h-[80vh] flex flex-col",children:[c.jsx("div",{className:"px-6 py-4 border-b border-slate-100 flex items-start justify-between",children:c.jsxs("div",{children:[c.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest mb-0.5",children:"STEP 2 OF 2 · OPTIONAL"}),c.jsx("h2",{className:"text-base font-bold text-slate-900",children:"Push to Knowledge Base?"}),c.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:"The AI has prepared updates to your Rules, Schemas, and Notes. Review below and confirm only if accurate. You can always manage these manually from the respective tabs."})]})}),c.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-4 space-y-3",children:Hc?c.jsxs("div",{className:"flex flex-col items-center justify-center py-12 gap-3 text-slate-400",children:[c.jsx(Hn,{size:24,className:"animate-spin text-blue-400"}),c.jsx("span",{className:"text-xs",children:"Analyzing what to push to your knowledge base…"})]}):wt.length===0?c.jsxs("div",{className:"flex flex-col items-center justify-center py-10 gap-2 text-slate-400",children:[c.jsx(Ad,{size:22,className:"text-emerald-400"}),c.jsx("span",{className:"text-xs font-medium",children:"Nothing new to push — your knowledge base is already up to date."})]}):wt.map((j,q)=>{const oe=j.action==="create",ze=(j.type||"playbook").replace("_"," "),Ne=oe?j.content:j.new_content;return c.jsxs("div",{className:"border border-slate-200 rounded-lg overflow-hidden",children:[c.jsxs("div",{className:"flex items-center gap-2.5 px-3 py-2 bg-slate-50 border-b border-slate-100",children:[c.jsx("span",{className:`text-[9px] font-bold uppercase tracking-wider px-2 py-0.5 rounded-full ${oe?"bg-emerald-100 text-emerald-700":"bg-blue-100 text-blue-700"}`,children:oe?"+ CREATE":"↑ UPDATE"}),c.jsx("span",{className:"text-[9px] font-semibold text-slate-400 uppercase tracking-wider",children:ze}),c.jsx("span",{className:"text-xs font-semibold text-slate-800 truncate",children:j.name})]}),c.jsx("pre",{className:"px-3 py-2.5 text-[11px] text-slate-700 whitespace-pre-wrap leading-relaxed max-h-40 overflow-y-auto font-mono bg-white",children:Ne||"(no content)"})]},q)})}),c.jsxs("div",{className:"px-6 py-4 border-t border-slate-100 flex justify-between items-center",children:[c.jsx("p",{className:"text-[10px] text-slate-400",children:"⚠ Only new, non-duplicate information will be merged. Existing content is preserved."}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{type:"button",onClick:Ix,className:"text-xs font-semibold px-4 py-2 border border-slate-200 rounded hover:bg-slate-50 bg-white text-slate-600",children:"Skip for now"}),c.jsx("button",{type:"button",onClick:Ax,disabled:qc||Hc||wt.length===0,className:"text-xs font-semibold bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded disabled:opacity-50 flex items-center gap-1.5 shadow-subtle transition-colors",children:qc?c.jsxs(c.Fragment,{children:[c.jsx(Hn,{size:12,className:"animate-spin"}),"Pushing…"]}):c.jsxs(c.Fragment,{children:[c.jsx(zs,{size:12}),"Confirm & Push to Knowledge Base"]})})]})]})]})})]})}function EE({vaultId:e}){const[t,n]=L.useState([]),[r,l]=L.useState(null),[i,s]=L.useState(!1),[o,a]=L.useState(!1),[u,d]=L.useState(""),[f,p]=L.useState("business_rules"),[h,x]=L.useState(""),[v,S]=L.useState(!1),m=async()=>{if(e){a(!0);try{const _=await G.get(`http://localhost:8000/api/playbooks?vault_id=${e}`);n(_.data),_.data.length>0&&!r?g(_.data[0]):_.data.length===0&&l(null)}catch(_){console.error(_)}finally{a(!1)}}};L.useEffect(()=>{m()},[e]);const g=_=>{l(_),s(!1),d(_.name),p(_.playbook_type),x(_.content)},y=async _=>{if(_.preventDefault(),!(!u.trim()||!h.trim())){S(!0);try{const I={vault_id:e,playbook_type:f,name:u,content:h};r&&!i&&(I.id=r.id);const $=await G.post("http://localhost:8000/api/playbooks",I);alert("Playbook saved successfully!"),s(!1),m(),(!r||i)&&l($.data)}catch(I){console.error(I),alert("Failed to save playbook.")}finally{S(!1)}}},E=async _=>{if(window.confirm("Are you sure you want to delete this playbook?"))try{await G.delete(`http://localhost:8000/api/playbooks/${_}`),l(null),m()}catch(I){console.error(I)}},T=_=>{switch(_){case"business_rules":return"bg-indigo-100 text-indigo-700";case"table_schemas":return"bg-teal-100 text-teal-700";case"analyst_notes":return"bg-amber-100 text-amber-700";default:return"bg-slate-100 text-slate-700"}},b=_=>{switch(_){case"business_rules":return"Business Rules";case"table_schemas":return"Table Schema / Metadata";case"analyst_notes":return"Analyst Notes";default:return _}};return c.jsxs("div",{className:"flex flex-1 bg-white h-screen overflow-hidden",children:[c.jsxs("div",{className:"w-80 border-r flex flex-col h-full bg-slate-50/50",children:[c.jsxs("div",{className:"p-4 border-b flex items-center justify-between",children:[c.jsxs("h2",{className:"font-bold text-slate-800 text-sm flex items-center gap-1.5",children:[c.jsx(Ls,{size:16})," Schema & Playbooks"]}),c.jsxs("button",{onClick:()=>{s(!0),d(""),p("business_rules"),x("")},className:"text-xs bg-slate-900 text-white font-semibold px-2 py-1.5 rounded hover:bg-slate-800 flex items-center gap-1 shadow-subtle",children:[c.jsx(Xr,{size:14})," New Rules"]})]}),c.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:o?c.jsx("div",{className:"text-center py-10 text-xs text-slate-400",children:"Loading..."}):t.length===0?c.jsx("div",{className:"text-xs text-slate-400 italic text-center py-10",children:"No playbooks configured."}):c.jsx("div",{className:"flex flex-col gap-1",children:t.map(_=>c.jsxs("div",{onClick:()=>g(_),className:`p-3 rounded border cursor-pointer transition-colors text-xs flex flex-col gap-1.5 ${(r==null?void 0:r.id)===_.id?"bg-white border-slate-400 font-medium shadow-subtle":"bg-transparent border-transparent hover:bg-slate-100"}`,children:[c.jsxs("div",{className:"flex items-center justify-between gap-2",children:[c.jsx("span",{className:"font-bold text-slate-800 truncate",children:_.name}),c.jsx("button",{onClick:I=>{I.stopPropagation(),E(_.id)},className:"text-slate-400 hover:text-rose-600 transition-colors p-0.5 rounded",children:c.jsx(Mr,{size:12})})]}),c.jsx("span",{className:`text-[9px] uppercase font-bold px-1.5 py-0.5 rounded self-start tracking-wide ${T(_.playbook_type)}`,children:b(_.playbook_type)})]},_.id))})})]}),c.jsx("div",{className:"flex-1 overflow-y-auto p-6 bg-white",children:i||r?c.jsxs("form",{onSubmit:y,className:"max-w-3xl flex flex-col gap-4",children:[c.jsxs("div",{className:"border-b pb-3 flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"text-base font-bold text-slate-800",children:i?"Create Rule / Schema doc":"Edit Rule / Schema doc"}),c.jsx("p",{className:"text-xs text-slate-500",children:"Provide consolidated business heuristics, analyst notes, or schema metadata."})]}),c.jsxs("button",{type:"submit",disabled:v,className:"text-xs bg-slate-900 text-white font-semibold px-4 py-2 rounded hover:bg-slate-800 shadow-subtle disabled:opacity-50 flex items-center gap-1.5",children:[c.jsx(xg,{size:12}),"Save Playbook"]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs font-semibold text-slate-600",children:"Document Name"}),c.jsx("input",{type:"text",value:u,onChange:_=>d(_.target.value),placeholder:"e.g. Finance Table Schemas, MAU Calculation Rule",className:"text-xs border rounded p-2 focus:outline-none focus:ring-1 focus:ring-slate-400",required:!0})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs font-semibold text-slate-600",children:"Playbook Type"}),c.jsxs("select",{value:f,onChange:_=>p(_.target.value),className:"text-xs border rounded p-2 focus:outline-none focus:ring-1 focus:ring-slate-400 bg-white",children:[c.jsx("option",{value:"business_rules",children:"Business Rules & playbooks"}),c.jsx("option",{value:"table_schemas",children:"Table Schemas & Metadata"}),c.jsx("option",{value:"analyst_notes",children:"Analyst Notes"})]})]})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs font-semibold text-slate-600",children:"Document Content (Markdown / Text)"}),c.jsx("p",{className:"text-[10px] text-slate-400 mb-1",children:"Clearly define instructions or rules. This content will be injected into the context window for target queries."}),c.jsx("textarea",{value:h,onChange:_=>x(_.target.value),placeholder:"# Business Rules...",className:"text-xs border rounded p-3 h-96 font-mono resize-none focus:outline-none focus:ring-1 focus:ring-slate-400",required:!0})]})]}):c.jsx("div",{className:"flex flex-col items-center justify-center py-20 text-center select-none",children:c.jsx("span",{className:"text-xs text-slate-400",children:"Select a document from the left list or create a new rules document."})})})]})}const Re="http://127.0.0.1:8000/api";function jE(){const[e,t]=L.useState("chat"),[n,r]=L.useState([]),[l,i]=L.useState(""),[s,o]=L.useState([]),[a,u]=L.useState(""),[d,f]=L.useState([]),[p,h]=L.useState(!1),[x,v]=L.useState([]),[S,m]=L.useState(""),[g,y]=L.useState(!1),[E,T]=L.useState(!1),[b,_]=L.useState(!1),[I,$]=L.useState("snowflake"),[N,z]=L.useState(!0);L.useEffect(()=>{let V=0;const Y=20,se=2e3,ge=async()=>{try{await ne(),z(!1)}catch{V++,V<Y?setTimeout(ge,se):(z(!1),console.error("Backend did not respond after max retries."))}};ge()},[]);const U=async()=>{z(!0);try{await ne()}catch(V){console.error("Manual retry failed:",V)}finally{z(!1)}},ne=async()=>{const V=await G.get(`${Re}/vaults`);if(r(V.data),V.data.length>0)i(V.data[0].id);else{const he=await G.post(`${Re}/vaults`,{name:"Primary Vault",description:"Default SlothQuery intelligence vault"});r([he.data]),i(he.data.id)}const Y=await G.get(`${Re}/providers`);v(Y.data);const se=Y.data.find(he=>he.is_active);se&&m(se.id);const ge=await G.get(`${Re}/chats`),ke=ge.data.find(he=>!he.messages||he.messages.length===0);if(ke)o(ge.data),u(ke.id);else{const he=await G.post(`${Re}/chats`);o([he.data,...ge.data]),u(he.data.id)}};L.useEffect(()=>{a?R(a):f([])},[a]);const R=async V=>{try{const Y=await G.get(`${Re}/chats/${V}`);f(Y.data.messages||[])}catch(Y){console.error("Failed to fetch chat messages:",Y)}},H=async()=>{try{const V=await G.post(`${Re}/chats`);o([V.data,...s]),u(V.data.id),t("chat"),T(!1)}catch(V){console.error(V)}},J=async V=>{try{await G.delete(`${Re}/chats/${V}`);const Y=s.filter(se=>se.id!==V);o(Y),a===V&&(Y.length>0?u(Y[0].id):u(""))}catch(Y){console.error(Y)}},M=async V=>{if(!a)return;const Y=s.find(ke=>ke.id===a),se=Y&&Y.vault_ids?Y.vault_ids:n.map(ke=>ke.id),ge={id:Math.random().toString(),role:"user",content:V,created_at:new Date().toISOString()};f(ke=>[...ke,ge]),h(!0);try{await G.post(`${Re}/chats/${a}/messages`,{message:`${V} (Use dialect: ${I})`,vault_ids:se});const ke=await G.get(`${Re}/chats`);o(ke.data),await R(a)}catch(ke){console.error(ke);try{const he=await G.get(`${Re}/chats`);o(he.data)}catch(he){console.error("Failed to refresh chats after error:",he)}f(he=>{var Wt,_t;return[...he,{id:Math.random().toString(),role:"assistant",content:`Error: ${((_t=(Wt=ke.response)==null?void 0:Wt.data)==null?void 0:_t.detail)||"Failed to get response from LLM provider."}`}]})}finally{h(!1)}},P=async(V,Y)=>{try{const se=await G.put(`${Re}/chats/${V}`,{vault_ids:Y});o(s.map(ge=>ge.id===V?se.data:ge))}catch(se){console.error("Failed to update chat vaults:",se)}},B=async(V,Y)=>{try{const se=await G.post(`${Re}/vaults`,{name:V,description:Y}),ge=[...n,se.data];return r(ge),i(se.data.id),se.data}catch(se){throw console.error(se),se}},w=async V=>{try{await G.delete(`${Re}/vaults/${V}`);const Y=n.filter(se=>se.id!==V);if(Y.length>0)r(Y),l===V&&i(Y[0].id);else{const se=await G.post(`${Re}/vaults`,{name:"Primary Vault",description:"Default SlothQuery intelligence vault"});r([se.data]),i(se.data.id)}}catch(Y){throw console.error(Y),Y}},Q=V=>{t(V),T(!1)},re=async V=>{try{const Y=await G.post(`${Re}/providers`,V),se=[...x,Y.data];v(se),m(Y.data.id);const ge=await G.get(`${Re}/providers`);v(ge.data)}catch(Y){throw console.error(Y),Y}},k=async V=>{try{await G.put(`${Re}/providers/${V}/active`),m(V);const Y=await G.get(`${Re}/providers`);v(Y.data)}catch(Y){console.error(Y)}},fe=async V=>{try{await G.delete(`${Re}/providers/${V}`),v(x.filter(Y=>Y.id!==V)),S===V&&m("")}catch(Y){console.error(Y)}},Te=async()=>{_(!0);try{await G.post(`${Re}/reindex`),alert("Local semantic search vector store rebuilt successfully!")}catch(V){console.error(V),alert("Reindexing failed.")}finally{_(!1)}},X=x.some(V=>V.is_active);return c.jsxs("div",{className:"flex h-screen w-screen bg-background overflow-hidden relative font-sans antialiased text-slate-900",children:[E&&c.jsx("div",{className:"fixed inset-0 z-30 bg-slate-900/10 backdrop-blur-[2px] transition-all duration-300",onClick:()=>T(!1)}),c.jsx(jv,{activeView:e,setActiveView:Q,chats:s,activeChatId:a,setActiveChatId:u,onCreateChat:H,onDeleteChat:J,toggleRightSidebar:()=>T(!E),isCollapsed:g,setIsCollapsed:y}),c.jsxs("div",{className:"flex-1 flex flex-col h-full overflow-hidden relative",children:[N?c.jsxs("div",{className:"bg-blue-50 border-b border-blue-200/80 px-6 py-2.5 flex items-center gap-2.5 text-blue-800 text-xs shadow-subtle select-none",children:[c.jsx(Rd,{size:14,className:"text-blue-500 shrink-0 animate-pulse"}),c.jsxs("div",{className:"flex-1",children:[c.jsx("span",{className:"font-bold",children:"Connecting to backend..."})," Loading your saved configuration — this may take up to 30 seconds on first start."]})]}):X?null:c.jsxs("div",{className:"bg-amber-50 border-b border-amber-200/80 px-6 py-2.5 flex items-center gap-2.5 text-amber-800 text-xs shadow-subtle select-none",children:[c.jsx(Rd,{size:14,className:"text-amber-600 shrink-0"}),c.jsxs("div",{className:"flex-1",children:[c.jsx("span",{className:"font-bold",children:"No active LLM provider configured."})," SlothQuery requires a provider to generate SQL logic. Click Settings to add one."]}),c.jsx("button",{onClick:U,className:"px-2.5 py-1 bg-white text-amber-700 border border-amber-300 rounded text-[10px] font-semibold hover:bg-amber-50 transition-colors",children:"Retry"}),c.jsx("button",{onClick:()=>T(!0),className:"px-2.5 py-1 bg-amber-600 text-white rounded text-[10px] font-semibold hover:bg-amber-700 shadow-subtle transition-colors",children:"Configure"})]}),e==="chat"&&c.jsx(CE,{chat:s.find(V=>V.id===a),messages:d,onSendMessage:M,isLoading:p,activeDialect:I,setActiveDialect:$,vaults:n,onUpdateChatVaults:P}),e==="studio"&&c.jsx(NE,{vaultId:l,vaults:n,onCreateVault:B,onDeleteVault:w}),e==="schema"&&c.jsx(EE,{vaultId:l})]}),c.jsx(Tv,{isOpen:E,onClose:()=>T(!1),providers:x,activeProviderId:S,onAddProvider:re,onSetActiveProvider:k,onDeleteProvider:fe,onReindex:Te,isReindexing:b})]})}da.createRoot(document.getElementById("root")).render(c.jsx(Hp.StrictMode,{children:c.jsx(jE,{})}));
|