@jean2/client 0.2.1 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +172 -5
- package/dist/assets/index-CP7Exzb0.css +1 -0
- package/dist/assets/index-kfI38a9V.js +467 -0
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/index-CBTw9Ux9.css +0 -1
- package/dist/assets/index-DW0N73wx.js +0 -444
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
function _A(e,n){for(var a=0;a<n.length;a++){const l=n[a];if(typeof l!="string"&&!Array.isArray(l)){for(const o in l)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(l,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>l[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&l(u)}).observe(document,{childList:!0,subtree:!0});function a(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function l(o){if(o.ep)return;o.ep=!0;const s=a(o);fetch(o.href,s)}})();function Pu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ip={exports:{}},Po={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and 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 lv;function RA(){if(lv)return Po;lv=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(l,o,s){var u=null;if(s!==void 0&&(u=""+s),o.key!==void 0&&(u=""+o.key),"key"in o){s={};for(var f in o)f!=="key"&&(s[f]=o[f])}else s=o;return o=s.ref,{$$typeof:e,type:l,key:u,ref:o!==void 0?o:null,props:s}}return Po.Fragment=n,Po.jsx=a,Po.jsxs=a,Po}var iv;function MA(){return iv||(iv=1,Ip.exports=RA()),Ip.exports}var d=MA(),Bp={exports:{}},Ie={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and 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 ov;function OA(){if(ov)return Ie;ov=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function w(D){return D===null||typeof D!="object"?null:(D=b&&D[b]||D["@@iterator"],typeof D=="function"?D:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,E={};function A(D,L,T){this.props=D,this.context=L,this.refs=E,this.updater=T||k}A.prototype.isReactComponent={},A.prototype.setState=function(D,L){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,L,"setState")},A.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function N(){}N.prototype=A.prototype;function j(D,L,T){this.props=D,this.context=L,this.refs=E,this.updater=T||k}var O=j.prototype=new N;O.constructor=j,S(O,A.prototype),O.isPureReactComponent=!0;var z=Array.isArray;function M(){}var F={H:null,A:null,T:null,S:null},U=Object.prototype.hasOwnProperty;function Y(D,L,T){var te=T.ref;return{$$typeof:e,type:D,key:L,ref:te!==void 0?te:null,props:T}}function B(D,L){return Y(D.type,L,D.props)}function G(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function q(D){var L={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(T){return L[T]})}var me=/\/+/g;function ne(D,L){return typeof D=="object"&&D!==null&&D.key!=null?q(""+D.key):L.toString(36)}function ee(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(M,M):(D.status="pending",D.then(function(L){D.status==="pending"&&(D.status="fulfilled",D.value=L)},function(L){D.status==="pending"&&(D.status="rejected",D.reason=L)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function I(D,L,T,te,ae){var le=typeof D;(le==="undefined"||le==="boolean")&&(D=null);var ie=!1;if(D===null)ie=!0;else switch(le){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(D.$$typeof){case e:case n:ie=!0;break;case y:return ie=D._init,I(ie(D._payload),L,T,te,ae)}}if(ie)return ae=ae(D),ie=te===""?"."+ne(D,0):te,z(ae)?(T="",ie!=null&&(T=ie.replace(me,"$&/")+"/"),I(ae,L,T,"",function(Te){return Te})):ae!=null&&(G(ae)&&(ae=B(ae,T+(ae.key==null||D&&D.key===ae.key?"":(""+ae.key).replace(me,"$&/")+"/")+ie)),L.push(ae)),1;ie=0;var be=te===""?".":te+":";if(z(D))for(var he=0;he<D.length;he++)te=D[he],le=be+ne(te,he),ie+=I(te,L,T,le,ae);else if(he=w(D),typeof he=="function")for(D=he.call(D),he=0;!(te=D.next()).done;)te=te.value,le=be+ne(te,he++),ie+=I(te,L,T,le,ae);else if(le==="object"){if(typeof D.then=="function")return I(ee(D),L,T,te,ae);throw L=String(D),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return ie}function X(D,L,T){if(D==null)return D;var te=[],ae=0;return I(D,te,"","",function(le){return L.call(T,le,ae++)}),te}function J(D){if(D._status===-1){var L=D._result;L=L(),L.then(function(T){(D._status===0||D._status===-1)&&(D._status=1,D._result=T)},function(T){(D._status===0||D._status===-1)&&(D._status=2,D._result=T)}),D._status===-1&&(D._status=0,D._result=L)}if(D._status===1)return D._result.default;throw D._result}var Z=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},R={map:X,forEach:function(D,L,T){X(D,function(){L.apply(this,arguments)},T)},count:function(D){var L=0;return X(D,function(){L++}),L},toArray:function(D){return X(D,function(L){return L})||[]},only:function(D){if(!G(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Ie.Activity=g,Ie.Children=R,Ie.Component=A,Ie.Fragment=a,Ie.Profiler=o,Ie.PureComponent=j,Ie.StrictMode=l,Ie.Suspense=p,Ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,Ie.__COMPILER_RUNTIME={__proto__:null,c:function(D){return F.H.useMemoCache(D)}},Ie.cache=function(D){return function(){return D.apply(null,arguments)}},Ie.cacheSignal=function(){return null},Ie.cloneElement=function(D,L,T){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var te=S({},D.props),ae=D.key;if(L!=null)for(le in L.key!==void 0&&(ae=""+L.key),L)!U.call(L,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&L.ref===void 0||(te[le]=L[le]);var le=arguments.length-2;if(le===1)te.children=T;else if(1<le){for(var ie=Array(le),be=0;be<le;be++)ie[be]=arguments[be+2];te.children=ie}return Y(D.type,ae,te)},Ie.createContext=function(D){return D={$$typeof:u,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:s,_context:D},D},Ie.createElement=function(D,L,T){var te,ae={},le=null;if(L!=null)for(te in L.key!==void 0&&(le=""+L.key),L)U.call(L,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(ae[te]=L[te]);var ie=arguments.length-2;if(ie===1)ae.children=T;else if(1<ie){for(var be=Array(ie),he=0;he<ie;he++)be[he]=arguments[he+2];ae.children=be}if(D&&D.defaultProps)for(te in ie=D.defaultProps,ie)ae[te]===void 0&&(ae[te]=ie[te]);return Y(D,le,ae)},Ie.createRef=function(){return{current:null}},Ie.forwardRef=function(D){return{$$typeof:f,render:D}},Ie.isValidElement=G,Ie.lazy=function(D){return{$$typeof:y,_payload:{_status:-1,_result:D},_init:J}},Ie.memo=function(D,L){return{$$typeof:m,type:D,compare:L===void 0?null:L}},Ie.startTransition=function(D){var L=F.T,T={};F.T=T;try{var te=D(),ae=F.S;ae!==null&&ae(T,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(M,Z)}catch(le){Z(le)}finally{L!==null&&T.types!==null&&(L.types=T.types),F.T=L}},Ie.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},Ie.use=function(D){return F.H.use(D)},Ie.useActionState=function(D,L,T){return F.H.useActionState(D,L,T)},Ie.useCallback=function(D,L){return F.H.useCallback(D,L)},Ie.useContext=function(D){return F.H.useContext(D)},Ie.useDebugValue=function(){},Ie.useDeferredValue=function(D,L){return F.H.useDeferredValue(D,L)},Ie.useEffect=function(D,L){return F.H.useEffect(D,L)},Ie.useEffectEvent=function(D){return F.H.useEffectEvent(D)},Ie.useId=function(){return F.H.useId()},Ie.useImperativeHandle=function(D,L,T){return F.H.useImperativeHandle(D,L,T)},Ie.useInsertionEffect=function(D,L){return F.H.useInsertionEffect(D,L)},Ie.useLayoutEffect=function(D,L){return F.H.useLayoutEffect(D,L)},Ie.useMemo=function(D,L){return F.H.useMemo(D,L)},Ie.useOptimistic=function(D,L){return F.H.useOptimistic(D,L)},Ie.useReducer=function(D,L,T){return F.H.useReducer(D,L,T)},Ie.useRef=function(D){return F.H.useRef(D)},Ie.useState=function(D){return F.H.useState(D)},Ie.useSyncExternalStore=function(D,L,T){return F.H.useSyncExternalStore(D,L,T)},Ie.useTransition=function(){return F.H.useTransition()},Ie.version="19.2.4",Ie}var sv;function lh(){return sv||(sv=1,Bp.exports=OA()),Bp.exports}var v=lh();const Jn=Pu(v),h1=_A({__proto__:null,default:Jn},[v]);var Pp={exports:{}},Fo={},Fp={exports:{}},Up={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var cv;function DA(){return cv||(cv=1,(function(e){function n(I,X){var J=I.length;I.push(X);e:for(;0<J;){var Z=J-1>>>1,R=I[Z];if(0<o(R,X))I[Z]=X,I[J]=R,J=Z;else break e}}function a(I){return I.length===0?null:I[0]}function l(I){if(I.length===0)return null;var X=I[0],J=I.pop();if(J!==X){I[0]=J;e:for(var Z=0,R=I.length,D=R>>>1;Z<D;){var L=2*(Z+1)-1,T=I[L],te=L+1,ae=I[te];if(0>o(T,J))te<R&&0>o(ae,T)?(I[Z]=ae,I[te]=J,Z=te):(I[Z]=T,I[L]=J,Z=L);else if(te<R&&0>o(ae,J))I[Z]=ae,I[te]=J,Z=te;else break e}}return X}function o(I,X){var J=I.sortIndex-X.sortIndex;return J!==0?J:I.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var p=[],m=[],y=1,g=null,b=3,w=!1,k=!1,S=!1,E=!1,A=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function O(I){for(var X=a(m);X!==null;){if(X.callback===null)l(m);else if(X.startTime<=I)l(m),X.sortIndex=X.expirationTime,n(p,X);else break;X=a(m)}}function z(I){if(S=!1,O(I),!k)if(a(p)!==null)k=!0,M||(M=!0,q());else{var X=a(m);X!==null&&ee(z,X.startTime-I)}}var M=!1,F=-1,U=5,Y=-1;function B(){return E?!0:!(e.unstable_now()-Y<U)}function G(){if(E=!1,M){var I=e.unstable_now();Y=I;var X=!0;try{e:{k=!1,S&&(S=!1,N(F),F=-1),w=!0;var J=b;try{t:{for(O(I),g=a(p);g!==null&&!(g.expirationTime>I&&B());){var Z=g.callback;if(typeof Z=="function"){g.callback=null,b=g.priorityLevel;var R=Z(g.expirationTime<=I);if(I=e.unstable_now(),typeof R=="function"){g.callback=R,O(I),X=!0;break t}g===a(p)&&l(p),O(I)}else l(p);g=a(p)}if(g!==null)X=!0;else{var D=a(m);D!==null&&ee(z,D.startTime-I),X=!1}}break e}finally{g=null,b=J,w=!1}X=void 0}}finally{X?q():M=!1}}}var q;if(typeof j=="function")q=function(){j(G)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,ne=me.port2;me.port1.onmessage=G,q=function(){ne.postMessage(null)}}else q=function(){A(G,0)};function ee(I,X){F=A(function(){I(e.unstable_now())},X)}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(I){I.callback=null},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(I){switch(b){case 1:case 2:case 3:var X=3;break;default:X=b}var J=b;b=X;try{return I()}finally{b=J}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(I,X){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var J=b;b=I;try{return X()}finally{b=J}},e.unstable_scheduleCallback=function(I,X,J){var Z=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?Z+J:Z):J=Z,I){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=J+R,I={id:y++,callback:X,priorityLevel:I,startTime:J,expirationTime:R,sortIndex:-1},J>Z?(I.sortIndex=J,n(m,I),a(p)===null&&I===a(m)&&(S?(N(F),F=-1):S=!0,ee(z,J-Z))):(I.sortIndex=R,n(p,I),k||w||(k=!0,M||(M=!0,q()))),I},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(I){var X=b;return function(){var J=b;b=X;try{return I.apply(this,arguments)}finally{b=J}}}})(Up)),Up}var uv;function zA(){return uv||(uv=1,Fp.exports=DA()),Fp.exports}var Hp={exports:{}},Qt={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and 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 dv;function LA(){if(dv)return Qt;dv=1;var e=lh();function n(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var l={d:{f:a,r:function(){throw Error(n(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(p,m,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:p,containerInfo:m,implementation:y}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Qt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Qt.createPortal=function(p,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(n(299));return s(p,m,null,y)},Qt.flushSync=function(p){var m=u.T,y=l.p;try{if(u.T=null,l.p=2,p)return p()}finally{u.T=m,l.p=y,l.d.f()}},Qt.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,l.d.C(p,m))},Qt.prefetchDNS=function(p){typeof p=="string"&&l.d.D(p)},Qt.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var y=m.as,g=f(y,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,w=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?l.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:w}):y==="script"&&l.d.X(p,{crossOrigin:g,integrity:b,fetchPriority:w,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Qt.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=f(m.as,m.crossOrigin);l.d.M(p,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&l.d.M(p)},Qt.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,g=f(y,m.crossOrigin);l.d.L(p,y,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Qt.preloadModule=function(p,m){if(typeof p=="string")if(m){var y=f(m.as,m.crossOrigin);l.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else l.d.m(p)},Qt.requestFormReset=function(p){l.d.r(p)},Qt.unstable_batchedUpdates=function(p,m){return p(m)},Qt.useFormState=function(p,m,y){return u.H.useFormState(p,m,y)},Qt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Qt.version="19.2.4",Qt}var fv;function g1(){if(fv)return Hp.exports;fv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Hp.exports=LA(),Hp.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var pv;function IA(){if(pv)return Fo;pv=1;var e=zA(),n=lh(),a=g1();function l(t){var r="https://react.dev/errors/"+t;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)r+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function s(t){var r=t,i=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(i=r.return),t=r.return;while(t)}return r.tag===3?i:null}function u(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function f(t){if(t.tag===31){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function p(t){if(s(t)!==t)throw Error(l(188))}function m(t){var r=t.alternate;if(!r){if(r=s(t),r===null)throw Error(l(188));return r!==t?null:t}for(var i=t,c=r;;){var h=i.return;if(h===null)break;var x=h.alternate;if(x===null){if(c=h.return,c!==null){i=c;continue}break}if(h.child===x.child){for(x=h.child;x;){if(x===i)return p(h),t;if(x===c)return p(h),r;x=x.sibling}throw Error(l(188))}if(i.return!==c.return)i=h,c=x;else{for(var C=!1,_=h.child;_;){if(_===i){C=!0,i=h,c=x;break}if(_===c){C=!0,c=h,i=x;break}_=_.sibling}if(!C){for(_=x.child;_;){if(_===i){C=!0,i=x,c=h;break}if(_===c){C=!0,c=x,i=h;break}_=_.sibling}if(!C)throw Error(l(189))}}if(i.alternate!==c)throw Error(l(190))}if(i.tag!==3)throw Error(l(188));return i.stateNode.current===i?t:r}function y(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=y(t),r!==null)return r;t=t.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),j=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),B=Symbol.for("react.memo_cache_sentinel"),G=Symbol.iterator;function q(t){return t===null||typeof t!="object"?null:(t=G&&t[G]||t["@@iterator"],typeof t=="function"?t:null)}var me=Symbol.for("react.client.reference");function ne(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===me?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case S:return"Fragment";case A:return"Profiler";case E:return"StrictMode";case z:return"Suspense";case M:return"SuspenseList";case Y:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case k:return"Portal";case j:return t.displayName||"Context";case N:return(t._context.displayName||"Context")+".Consumer";case O:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case F:return r=t.displayName||null,r!==null?r:ne(t.type)||"Memo";case U:r=t._payload,t=t._init;try{return ne(t(r))}catch{}}return null}var ee=Array.isArray,I=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},Z=[],R=-1;function D(t){return{current:t}}function L(t){0>R||(t.current=Z[R],Z[R]=null,R--)}function T(t,r){R++,Z[R]=t.current,t.current=r}var te=D(null),ae=D(null),le=D(null),ie=D(null);function be(t,r){switch(T(le,r),T(ae,t),T(te,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?jb(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=jb(r),t=Tb(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}L(te),T(te,t)}function he(){L(te),L(ae),L(le)}function Te(t){t.memoizedState!==null&&T(ie,t);var r=te.current,i=Tb(r,t.type);r!==i&&(T(ae,t),T(te,i))}function ze(t){ae.current===t&&(L(te),L(ae)),ie.current===t&&(L(ie),zo._currentValue=J)}var Le,ft;function et(t){if(Le===void 0)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);Le=r&&r[1]||"",ft=-1<i.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Le+t+ft}var Dt=!1;function Vt(t,r){if(!t||Dt)return"";Dt=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(r){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(re){var W=re}Reflect.construct(t,[],fe)}else{try{fe.call()}catch(re){W=re}t.call(fe.prototype)}}else{try{throw Error()}catch(re){W=re}(fe=t())&&typeof fe.catch=="function"&&fe.catch(function(){})}}catch(re){if(re&&W&&typeof re.stack=="string")return[re.stack,W.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=c.DetermineComponentFrameRoot(),C=x[0],_=x[1];if(C&&_){var P=C.split(`
|
|
44
|
+
`),Q=_.split(`
|
|
45
|
+
`);for(h=c=0;c<P.length&&!P[c].includes("DetermineComponentFrameRoot");)c++;for(;h<Q.length&&!Q[h].includes("DetermineComponentFrameRoot");)h++;if(c===P.length||h===Q.length)for(c=P.length-1,h=Q.length-1;1<=c&&0<=h&&P[c]!==Q[h];)h--;for(;1<=c&&0<=h;c--,h--)if(P[c]!==Q[h]){if(c!==1||h!==1)do if(c--,h--,0>h||P[c]!==Q[h]){var oe=`
|
|
46
|
+
`+P[c].replace(" at new "," at ");return t.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",t.displayName)),oe}while(1<=c&&0<=h);break}}}finally{Dt=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?et(i):""}function Mn(t,r){switch(t.tag){case 26:case 27:case 5:return et(t.type);case 16:return et("Lazy");case 13:return t.child!==r&&r!==null?et("Suspense Fallback"):et("Suspense");case 19:return et("SuspenseList");case 0:case 15:return Vt(t.type,!1);case 11:return Vt(t.type.render,!1);case 1:return Vt(t.type,!0);case 31:return et("Activity");default:return""}}function Gr(t){try{var r="",i=null;do r+=Mn(t,i),i=t,t=t.return;while(t);return r}catch(c){return`
|
|
47
|
+
Error generating stack: `+c.message+`
|
|
48
|
+
`+c.stack}}var an=Object.prototype.hasOwnProperty,ln=e.unstable_scheduleCallback,on=e.unstable_cancelCallback,xr=e.unstable_shouldYield,Bi=e.unstable_requestPaint,vt=e.unstable_now,Pi=e.unstable_getCurrentPriorityLevel,se=e.unstable_ImmediatePriority,xe=e.unstable_UserBlockingPriority,Oe=e.unstable_NormalPriority,He=e.unstable_LowPriority,tt=e.unstable_IdlePriority,zt=e.log,sn=e.unstable_setDisableYieldValue,qt=null,yt=null;function Ge(t){if(typeof zt=="function"&&sn(t),yt&&typeof yt.setStrictMode=="function")try{yt.setStrictMode(qt,t)}catch{}}var De=Math.clz32?Math.clz32:zs,yn=Math.log,Jt=Math.LN2;function zs(t){return t>>>=0,t===0?32:31-(yn(t)/Jt|0)|0}var On=256,Sl=262144,Yr=4194304;function Gt(t){var r=t&42;if(r!==0)return r;switch(t&-t){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function kl(t,r,i){var c=t.pendingLanes;if(c===0)return 0;var h=0,x=t.suspendedLanes,C=t.pingedLanes;t=t.warmLanes;var _=c&134217727;return _!==0?(c=_&~x,c!==0?h=Gt(c):(C&=_,C!==0?h=Gt(C):i||(i=_&~t,i!==0&&(h=Gt(i))))):(_=c&~x,_!==0?h=Gt(_):C!==0?h=Gt(C):i||(i=c&~t,i!==0&&(h=Gt(i)))),h===0?0:r!==0&&r!==h&&(r&x)===0&&(x=h&-h,i=r&-r,x>=i||x===32&&(i&4194048)!==0)?r:h}function Xr(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function Nd(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32: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 r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fi(){var t=Yr;return Yr<<=1,(Yr&62914560)===0&&(Yr=4194304),t}function Ui(t){for(var r=[],i=0;31>i;i++)r.push(t);return r}function Ua(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function jd(t,r,i,c,h,x){var C=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var _=t.entanglements,P=t.expirationTimes,Q=t.hiddenUpdates;for(i=C&~i;0<i;){var oe=31-De(i),fe=1<<oe;_[oe]=0,P[oe]=-1;var W=Q[oe];if(W!==null)for(Q[oe]=null,oe=0;oe<W.length;oe++){var re=W[oe];re!==null&&(re.lane&=-536870913)}i&=~fe}c!==0&&Hi(t,c,0),x!==0&&h===0&&t.tag!==0&&(t.suspendedLanes|=x&~(C&~r))}function Hi(t,r,i){t.pendingLanes|=r,t.suspendedLanes&=~r;var c=31-De(r);t.entangledLanes|=r,t.entanglements[c]=t.entanglements[c]|1073741824|i&261930}function $e(t,r){var i=t.entangledLanes|=r;for(t=t.entanglements;i;){var c=31-De(i),h=1<<c;h&r|t[c]&r&&(t[c]|=r),i&=~h}}function Ls(t,r){var i=r&-r;return i=(i&42)!==0?1:Kr(i),(i&(t.suspendedLanes|r))!==0?0:i}function Kr(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function $i(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Is(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:Wb(t.type))}function Bs(t,r){var i=X.p;try{return X.p=t,r()}finally{X.p=i}}var ar=Math.random().toString(36).slice(2),_t="__reactFiber$"+ar,Yt="__reactProps$"+ar,Qr="__reactContainer$"+ar,Vi="__reactEvents$"+ar,Td="__reactListeners$"+ar,_d="__reactHandles$"+ar,qi="__reactResources$"+ar,Ha="__reactMarker$"+ar;function Gi(t){delete t[_t],delete t[Yt],delete t[Vi],delete t[Td],delete t[_d]}function Zr(t){var r=t[_t];if(r)return r;for(var i=t.parentNode;i;){if(r=i[Qr]||i[_t]){if(i=r.alternate,r.child!==null||i!==null&&i.child!==null)for(t=Lb(t);t!==null;){if(i=t[_t])return i;t=Lb(t)}return r}t=i,i=t.parentNode}return null}function Wr(t){if(t=t[_t]||t[Qr]){var r=t.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return t}return null}function $a(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(l(33))}function Jr(t){var r=t[qi];return r||(r=t[qi]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function wt(t){t[Ha]=!0}var Yi=new Set,Ps={};function Xt(t,r){ea(t,r),ea(t+"Capture",r)}function ea(t,r){for(Ps[t]=r,t=0;t<r.length;t++)Yi.add(r[t])}var Fs=RegExp("^[: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]*$"),Xi={},Ki={};function Us(t){return an.call(Ki,t)?!0:an.call(Xi,t)?!1:Fs.test(t)?Ki[t]=!0:(Xi[t]=!0,!1)}function H(t,r,i){if(Us(r))if(i===null)t.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var c=r.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){t.removeAttribute(r);return}}t.setAttribute(r,""+i)}}function we(t,r,i){if(i===null)t.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttribute(r,""+i)}}function ce(t,r,i,c){if(c===null)t.removeAttribute(i);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(r,i,""+c)}}function de(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Be(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function St(t,r,i){var c=Object.getOwnPropertyDescriptor(t.constructor.prototype,r);if(!t.hasOwnProperty(r)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var h=c.get,x=c.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return h.call(this)},set:function(C){i=""+C,x.call(this,C)}}),Object.defineProperty(t,r,{enumerable:c.enumerable}),{getValue:function(){return i},setValue:function(C){i=""+C},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function en(t){if(!t._valueTracker){var r=Be(t)?"checked":"value";t._valueTracker=St(t,r,""+t[r])}}function Xn(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var i=r.getValue(),c="";return t&&(c=Be(t)?t.checked?"true":"false":t.value),t=c,t!==i?(r.setValue(t),!0):!1}function Dn(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Cl=/[\n"\\]/g;function Kt(t){return t.replace(Cl,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Qi(t,r,i,c,h,x,C,_){t.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?t.type=C:t.removeAttribute("type"),r!=null?C==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+de(r)):t.value!==""+de(r)&&(t.value=""+de(r)):C!=="submit"&&C!=="reset"||t.removeAttribute("value"),r!=null?Rd(t,C,de(r)):i!=null?Rd(t,C,de(i)):c!=null&&t.removeAttribute("value"),h==null&&x!=null&&(t.defaultChecked=!!x),h!=null&&(t.checked=h&&typeof h!="function"&&typeof h!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?t.name=""+de(_):t.removeAttribute("name")}function Sg(t,r,i,c,h,x,C,_){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(t.type=x),r!=null||i!=null){if(!(x!=="submit"&&x!=="reset"||r!=null)){en(t);return}i=i!=null?""+de(i):"",r=r!=null?""+de(r):i,_||r===t.value||(t.value=r),t.defaultValue=r}c=c!=null?c:h,c=typeof c!="function"&&typeof c!="symbol"&&!!c,t.checked=_?t.checked:!!c,t.defaultChecked=!!c,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(t.name=C),en(t)}function Rd(t,r,i){r==="number"&&Dn(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function El(t,r,i,c){if(t=t.options,r){r={};for(var h=0;h<i.length;h++)r["$"+i[h]]=!0;for(i=0;i<t.length;i++)h=r.hasOwnProperty("$"+t[i].value),t[i].selected!==h&&(t[i].selected=h),h&&c&&(t[i].defaultSelected=!0)}else{for(i=""+de(i),r=null,h=0;h<t.length;h++){if(t[h].value===i){t[h].selected=!0,c&&(t[h].defaultSelected=!0);return}r!==null||t[h].disabled||(r=t[h])}r!==null&&(r.selected=!0)}}function kg(t,r,i){if(r!=null&&(r=""+de(r),r!==t.value&&(t.value=r),i==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=i!=null?""+de(i):""}function Cg(t,r,i,c){if(r==null){if(c!=null){if(i!=null)throw Error(l(92));if(ee(c)){if(1<c.length)throw Error(l(93));c=c[0]}i=c}i==null&&(i=""),r=i}i=de(r),t.defaultValue=i,c=t.textContent,c===i&&c!==""&&c!==null&&(t.value=c),en(t)}function Al(t,r){if(r){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=r;return}}t.textContent=r}var EE=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Eg(t,r,i){var c=r.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?c?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":c?t.setProperty(r,i):typeof i!="number"||i===0||EE.has(r)?r==="float"?t.cssFloat=i:t[r]=(""+i).trim():t[r]=i+"px"}function Ag(t,r,i){if(r!=null&&typeof r!="object")throw Error(l(62));if(t=t.style,i!=null){for(var c in i)!i.hasOwnProperty(c)||r!=null&&r.hasOwnProperty(c)||(c.indexOf("--")===0?t.setProperty(c,""):c==="float"?t.cssFloat="":t[c]="");for(var h in r)c=r[h],r.hasOwnProperty(h)&&i[h]!==c&&Eg(t,h,c)}else for(var x in r)r.hasOwnProperty(x)&&Eg(t,x,r[x])}function Md(t){if(t.indexOf("-")===-1)return!1;switch(t){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 AE=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),NE=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Hs(t){return NE.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function br(){}var Od=null;function Dd(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Nl=null,jl=null;function Ng(t){var r=Wr(t);if(r&&(t=r.stateNode)){var i=t[Yt]||null;e:switch(t=r.stateNode,r.type){case"input":if(Qi(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),r=i.name,i.type==="radio"&&r!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Kt(""+r)+'"][type="radio"]'),r=0;r<i.length;r++){var c=i[r];if(c!==t&&c.form===t.form){var h=c[Yt]||null;if(!h)throw Error(l(90));Qi(c,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(r=0;r<i.length;r++)c=i[r],c.form===t.form&&Xn(c)}break e;case"textarea":kg(t,i.value,i.defaultValue);break e;case"select":r=i.value,r!=null&&El(t,!!i.multiple,r,!1)}}}var zd=!1;function jg(t,r,i){if(zd)return t(r,i);zd=!0;try{var c=t(r);return c}finally{if(zd=!1,(Nl!==null||jl!==null)&&(Tc(),Nl&&(r=Nl,t=jl,jl=Nl=null,Ng(r),t)))for(r=0;r<t.length;r++)Ng(t[r])}}function Zi(t,r){var i=t.stateNode;if(i===null)return null;var c=i[Yt]||null;if(c===null)return null;i=c[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(t=t.type,c=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!c;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(l(231,r,typeof i));return i}var vr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ld=!1;if(vr)try{var Wi={};Object.defineProperty(Wi,"passive",{get:function(){Ld=!0}}),window.addEventListener("test",Wi,Wi),window.removeEventListener("test",Wi,Wi)}catch{Ld=!1}var ta=null,Id=null,$s=null;function Tg(){if($s)return $s;var t,r=Id,i=r.length,c,h="value"in ta?ta.value:ta.textContent,x=h.length;for(t=0;t<i&&r[t]===h[t];t++);var C=i-t;for(c=1;c<=C&&r[i-c]===h[x-c];c++);return $s=h.slice(t,1<c?1-c:void 0)}function Vs(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function qs(){return!0}function _g(){return!1}function cn(t){function r(i,c,h,x,C){this._reactName=i,this._targetInst=h,this.type=c,this.nativeEvent=x,this.target=C,this.currentTarget=null;for(var _ in t)t.hasOwnProperty(_)&&(i=t[_],this[_]=i?i(x):x[_]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?qs:_g,this.isPropagationStopped=_g,this}return g(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=qs)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=qs)},persist:function(){},isPersistent:qs}),r}var Va={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gs=cn(Va),Ji=g({},Va,{view:0,detail:0}),jE=cn(Ji),Bd,Pd,eo,Ys=g({},Ji,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ud,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==eo&&(eo&&t.type==="mousemove"?(Bd=t.screenX-eo.screenX,Pd=t.screenY-eo.screenY):Pd=Bd=0,eo=t),Bd)},movementY:function(t){return"movementY"in t?t.movementY:Pd}}),Rg=cn(Ys),TE=g({},Ys,{dataTransfer:0}),_E=cn(TE),RE=g({},Ji,{relatedTarget:0}),Fd=cn(RE),ME=g({},Va,{animationName:0,elapsedTime:0,pseudoElement:0}),OE=cn(ME),DE=g({},Va,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),zE=cn(DE),LE=g({},Va,{data:0}),Mg=cn(LE),IE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},BE={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"},PE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function FE(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=PE[t])?!!r[t]:!1}function Ud(){return FE}var UE=g({},Ji,{key:function(t){if(t.key){var r=IE[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=Vs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?BE[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ud,charCode:function(t){return t.type==="keypress"?Vs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Vs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),HE=cn(UE),$E=g({},Ys,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Og=cn($E),VE=g({},Ji,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ud}),qE=cn(VE),GE=g({},Va,{propertyName:0,elapsedTime:0,pseudoElement:0}),YE=cn(GE),XE=g({},Ys,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),KE=cn(XE),QE=g({},Va,{newState:0,oldState:0}),ZE=cn(QE),WE=[9,13,27,32],Hd=vr&&"CompositionEvent"in window,to=null;vr&&"documentMode"in document&&(to=document.documentMode);var JE=vr&&"TextEvent"in window&&!to,Dg=vr&&(!Hd||to&&8<to&&11>=to),zg=" ",Lg=!1;function Ig(t,r){switch(t){case"keyup":return WE.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bg(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Tl=!1;function e2(t,r){switch(t){case"compositionend":return Bg(r);case"keypress":return r.which!==32?null:(Lg=!0,zg);case"textInput":return t=r.data,t===zg&&Lg?null:t;default:return null}}function t2(t,r){if(Tl)return t==="compositionend"||!Hd&&Ig(t,r)?(t=Tg(),$s=Id=ta=null,Tl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Dg&&r.locale!=="ko"?null:r.data;default:return null}}var n2={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 Pg(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!n2[t.type]:r==="textarea"}function Fg(t,r,i,c){Nl?jl?jl.push(c):jl=[c]:Nl=c,r=Lc(r,"onChange"),0<r.length&&(i=new Gs("onChange","change",null,i,c),t.push({event:i,listeners:r}))}var no=null,ro=null;function r2(t){Sb(t,0)}function Xs(t){var r=$a(t);if(Xn(r))return t}function Ug(t,r){if(t==="change")return r}var Hg=!1;if(vr){var $d;if(vr){var Vd="oninput"in document;if(!Vd){var $g=document.createElement("div");$g.setAttribute("oninput","return;"),Vd=typeof $g.oninput=="function"}$d=Vd}else $d=!1;Hg=$d&&(!document.documentMode||9<document.documentMode)}function Vg(){no&&(no.detachEvent("onpropertychange",qg),ro=no=null)}function qg(t){if(t.propertyName==="value"&&Xs(ro)){var r=[];Fg(r,ro,t,Dd(t)),jg(r2,r)}}function a2(t,r,i){t==="focusin"?(Vg(),no=r,ro=i,no.attachEvent("onpropertychange",qg)):t==="focusout"&&Vg()}function l2(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Xs(ro)}function i2(t,r){if(t==="click")return Xs(r)}function o2(t,r){if(t==="input"||t==="change")return Xs(r)}function s2(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var xn=typeof Object.is=="function"?Object.is:s2;function ao(t,r){if(xn(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var i=Object.keys(t),c=Object.keys(r);if(i.length!==c.length)return!1;for(c=0;c<i.length;c++){var h=i[c];if(!an.call(r,h)||!xn(t[h],r[h]))return!1}return!0}function Gg(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Yg(t,r){var i=Gg(t);t=0;for(var c;i;){if(i.nodeType===3){if(c=t+i.textContent.length,t<=r&&c>=r)return{node:i,offset:r-t};t=c}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Gg(i)}}function Xg(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Xg(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Kg(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=Dn(t.document);r instanceof t.HTMLIFrameElement;){try{var i=typeof r.contentWindow.location.href=="string"}catch{i=!1}if(i)t=r.contentWindow;else break;r=Dn(t.document)}return r}function qd(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var c2=vr&&"documentMode"in document&&11>=document.documentMode,_l=null,Gd=null,lo=null,Yd=!1;function Qg(t,r,i){var c=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Yd||_l==null||_l!==Dn(c)||(c=_l,"selectionStart"in c&&qd(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),lo&&ao(lo,c)||(lo=c,c=Lc(Gd,"onSelect"),0<c.length&&(r=new Gs("onSelect","select",null,r,i),t.push({event:r,listeners:c}),r.target=_l)))}function qa(t,r){var i={};return i[t.toLowerCase()]=r.toLowerCase(),i["Webkit"+t]="webkit"+r,i["Moz"+t]="moz"+r,i}var Rl={animationend:qa("Animation","AnimationEnd"),animationiteration:qa("Animation","AnimationIteration"),animationstart:qa("Animation","AnimationStart"),transitionrun:qa("Transition","TransitionRun"),transitionstart:qa("Transition","TransitionStart"),transitioncancel:qa("Transition","TransitionCancel"),transitionend:qa("Transition","TransitionEnd")},Xd={},Zg={};vr&&(Zg=document.createElement("div").style,"AnimationEvent"in window||(delete Rl.animationend.animation,delete Rl.animationiteration.animation,delete Rl.animationstart.animation),"TransitionEvent"in window||delete Rl.transitionend.transition);function Ga(t){if(Xd[t])return Xd[t];if(!Rl[t])return t;var r=Rl[t],i;for(i in r)if(r.hasOwnProperty(i)&&i in Zg)return Xd[t]=r[i];return t}var Wg=Ga("animationend"),Jg=Ga("animationiteration"),ey=Ga("animationstart"),u2=Ga("transitionrun"),d2=Ga("transitionstart"),f2=Ga("transitioncancel"),ty=Ga("transitionend"),ny=new Map,Kd="abort auxClick beforeToggle 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(" ");Kd.push("scrollEnd");function Kn(t,r){ny.set(t,r),Xt(r,[t])}var Ks=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},zn=[],Ml=0,Qd=0;function Qs(){for(var t=Ml,r=Qd=Ml=0;r<t;){var i=zn[r];zn[r++]=null;var c=zn[r];zn[r++]=null;var h=zn[r];zn[r++]=null;var x=zn[r];if(zn[r++]=null,c!==null&&h!==null){var C=c.pending;C===null?h.next=h:(h.next=C.next,C.next=h),c.pending=h}x!==0&&ry(i,h,x)}}function Zs(t,r,i,c){zn[Ml++]=t,zn[Ml++]=r,zn[Ml++]=i,zn[Ml++]=c,Qd|=c,t.lanes|=c,t=t.alternate,t!==null&&(t.lanes|=c)}function Zd(t,r,i,c){return Zs(t,r,i,c),Ws(t)}function Ya(t,r){return Zs(t,null,null,r),Ws(t)}function ry(t,r,i){t.lanes|=i;var c=t.alternate;c!==null&&(c.lanes|=i);for(var h=!1,x=t.return;x!==null;)x.childLanes|=i,c=x.alternate,c!==null&&(c.childLanes|=i),x.tag===22&&(t=x.stateNode,t===null||t._visibility&1||(h=!0)),t=x,x=x.return;return t.tag===3?(x=t.stateNode,h&&r!==null&&(h=31-De(i),t=x.hiddenUpdates,c=t[h],c===null?t[h]=[r]:c.push(r),r.lane=i|536870912),x):null}function Ws(t){if(50<jo)throw jo=0,op=null,Error(l(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var Ol={};function p2(t,r,i,c){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bn(t,r,i,c){return new p2(t,r,i,c)}function Wd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function wr(t,r){var i=t.alternate;return i===null?(i=bn(t.tag,r,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=r,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,r=t.dependencies,i.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function ay(t,r){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,r=i.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function Js(t,r,i,c,h,x){var C=0;if(c=t,typeof t=="function")Wd(t)&&(C=1);else if(typeof t=="string")C=xA(t,i,te.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case Y:return t=bn(31,i,r,h),t.elementType=Y,t.lanes=x,t;case S:return Xa(i.children,h,x,r);case E:C=8,h|=24;break;case A:return t=bn(12,i,r,h|2),t.elementType=A,t.lanes=x,t;case z:return t=bn(13,i,r,h),t.elementType=z,t.lanes=x,t;case M:return t=bn(19,i,r,h),t.elementType=M,t.lanes=x,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case j:C=10;break e;case N:C=9;break e;case O:C=11;break e;case F:C=14;break e;case U:C=16,c=null;break e}C=29,i=Error(l(130,t===null?"null":typeof t,"")),c=null}return r=bn(C,i,r,h),r.elementType=t,r.type=c,r.lanes=x,r}function Xa(t,r,i,c){return t=bn(7,t,c,r),t.lanes=i,t}function Jd(t,r,i){return t=bn(6,t,null,r),t.lanes=i,t}function ly(t){var r=bn(18,null,null,0);return r.stateNode=t,r}function ef(t,r,i){return r=bn(4,t.children!==null?t.children:[],t.key,r),r.lanes=i,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var iy=new WeakMap;function Ln(t,r){if(typeof t=="object"&&t!==null){var i=iy.get(t);return i!==void 0?i:(r={value:t,source:r,stack:Gr(r)},iy.set(t,r),r)}return{value:t,source:r,stack:Gr(r)}}var Dl=[],zl=0,ec=null,io=0,In=[],Bn=0,na=null,lr=1,ir="";function Sr(t,r){Dl[zl++]=io,Dl[zl++]=ec,ec=t,io=r}function oy(t,r,i){In[Bn++]=lr,In[Bn++]=ir,In[Bn++]=na,na=t;var c=lr;t=ir;var h=32-De(c)-1;c&=~(1<<h),i+=1;var x=32-De(r)+h;if(30<x){var C=h-h%5;x=(c&(1<<C)-1).toString(32),c>>=C,h-=C,lr=1<<32-De(r)+h|i<<h|c,ir=x+t}else lr=1<<x|i<<h|c,ir=t}function tf(t){t.return!==null&&(Sr(t,1),oy(t,1,0))}function nf(t){for(;t===ec;)ec=Dl[--zl],Dl[zl]=null,io=Dl[--zl],Dl[zl]=null;for(;t===na;)na=In[--Bn],In[Bn]=null,ir=In[--Bn],In[Bn]=null,lr=In[--Bn],In[Bn]=null}function sy(t,r){In[Bn++]=lr,In[Bn++]=ir,In[Bn++]=na,lr=r.id,ir=r.overflow,na=t}var Pt=null,mt=null,We=!1,ra=null,Pn=!1,rf=Error(l(519));function aa(t){var r=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw oo(Ln(r,t)),rf}function cy(t){var r=t.stateNode,i=t.type,c=t.memoizedProps;switch(r[_t]=t,r[Yt]=c,i){case"dialog":Xe("cancel",r),Xe("close",r);break;case"iframe":case"object":case"embed":Xe("load",r);break;case"video":case"audio":for(i=0;i<_o.length;i++)Xe(_o[i],r);break;case"source":Xe("error",r);break;case"img":case"image":case"link":Xe("error",r),Xe("load",r);break;case"details":Xe("toggle",r);break;case"input":Xe("invalid",r),Sg(r,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Xe("invalid",r);break;case"textarea":Xe("invalid",r),Cg(r,c.value,c.defaultValue,c.children)}i=c.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||r.textContent===""+i||c.suppressHydrationWarning===!0||Ab(r.textContent,i)?(c.popover!=null&&(Xe("beforetoggle",r),Xe("toggle",r)),c.onScroll!=null&&Xe("scroll",r),c.onScrollEnd!=null&&Xe("scrollend",r),c.onClick!=null&&(r.onclick=br),r=!0):r=!1,r||aa(t,!0)}function uy(t){for(Pt=t.return;Pt;)switch(Pt.tag){case 5:case 31:case 13:Pn=!1;return;case 27:case 3:Pn=!0;return;default:Pt=Pt.return}}function Ll(t){if(t!==Pt)return!1;if(!We)return uy(t),We=!0,!1;var r=t.tag,i;if((i=r!==3&&r!==27)&&((i=r===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||Sp(t.type,t.memoizedProps)),i=!i),i&&mt&&aa(t),uy(t),r===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(317));mt=zb(t)}else if(r===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(317));mt=zb(t)}else r===27?(r=mt,xa(t.type)?(t=Np,Np=null,mt=t):mt=r):mt=Pt?Un(t.stateNode.nextSibling):null;return!0}function Ka(){mt=Pt=null,We=!1}function af(){var t=ra;return t!==null&&(pn===null?pn=t:pn.push.apply(pn,t),ra=null),t}function oo(t){ra===null?ra=[t]:ra.push(t)}var lf=D(null),Qa=null,kr=null;function la(t,r,i){T(lf,r._currentValue),r._currentValue=i}function Cr(t){t._currentValue=lf.current,L(lf)}function of(t,r,i){for(;t!==null;){var c=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,c!==null&&(c.childLanes|=r)):c!==null&&(c.childLanes&r)!==r&&(c.childLanes|=r),t===i)break;t=t.return}}function sf(t,r,i,c){var h=t.child;for(h!==null&&(h.return=t);h!==null;){var x=h.dependencies;if(x!==null){var C=h.child;x=x.firstContext;e:for(;x!==null;){var _=x;x=h;for(var P=0;P<r.length;P++)if(_.context===r[P]){x.lanes|=i,_=x.alternate,_!==null&&(_.lanes|=i),of(x.return,i,t),c||(C=null);break e}x=_.next}}else if(h.tag===18){if(C=h.return,C===null)throw Error(l(341));C.lanes|=i,x=C.alternate,x!==null&&(x.lanes|=i),of(C,i,t),C=null}else C=h.child;if(C!==null)C.return=h;else for(C=h;C!==null;){if(C===t){C=null;break}if(h=C.sibling,h!==null){h.return=C.return,C=h;break}C=C.return}h=C}}function Il(t,r,i,c){t=null;for(var h=r,x=!1;h!==null;){if(!x){if((h.flags&524288)!==0)x=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var C=h.alternate;if(C===null)throw Error(l(387));if(C=C.memoizedProps,C!==null){var _=h.type;xn(h.pendingProps.value,C.value)||(t!==null?t.push(_):t=[_])}}else if(h===ie.current){if(C=h.alternate,C===null)throw Error(l(387));C.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(t!==null?t.push(zo):t=[zo])}h=h.return}t!==null&&sf(r,t,i,c),r.flags|=262144}function tc(t){for(t=t.firstContext;t!==null;){if(!xn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Za(t){Qa=t,kr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Ft(t){return dy(Qa,t)}function nc(t,r){return Qa===null&&Za(t),dy(t,r)}function dy(t,r){var i=r._currentValue;if(r={context:r,memoizedValue:i,next:null},kr===null){if(t===null)throw Error(l(308));kr=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else kr=kr.next=r;return i}var m2=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(i,c){t.push(c)}};this.abort=function(){r.aborted=!0,t.forEach(function(i){return i()})}},h2=e.unstable_scheduleCallback,g2=e.unstable_NormalPriority,Et={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cf(){return{controller:new m2,data:new Map,refCount:0}}function so(t){t.refCount--,t.refCount===0&&h2(g2,function(){t.controller.abort()})}var co=null,uf=0,Bl=0,Pl=null;function y2(t,r){if(co===null){var i=co=[];uf=0,Bl=pp(),Pl={status:"pending",value:void 0,then:function(c){i.push(c)}}}return uf++,r.then(fy,fy),r}function fy(){if(--uf===0&&co!==null){Pl!==null&&(Pl.status="fulfilled");var t=co;co=null,Bl=0,Pl=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function x2(t,r){var i=[],c={status:"pending",value:null,reason:null,then:function(h){i.push(h)}};return t.then(function(){c.status="fulfilled",c.value=r;for(var h=0;h<i.length;h++)(0,i[h])(r)},function(h){for(c.status="rejected",c.reason=h,h=0;h<i.length;h++)(0,i[h])(void 0)}),c}var py=I.S;I.S=function(t,r){Qx=vt(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&y2(t,r),py!==null&&py(t,r)};var Wa=D(null);function df(){var t=Wa.current;return t!==null?t:ut.pooledCache}function rc(t,r){r===null?T(Wa,Wa.current):T(Wa,r.pool)}function my(){var t=df();return t===null?null:{parent:Et._currentValue,pool:t}}var Fl=Error(l(460)),ff=Error(l(474)),ac=Error(l(542)),lc={then:function(){}};function hy(t){return t=t.status,t==="fulfilled"||t==="rejected"}function gy(t,r,i){switch(i=t[i],i===void 0?t.push(r):i!==r&&(r.then(br,br),r=i),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,xy(t),t;default:if(typeof r.status=="string")r.then(br,br);else{if(t=ut,t!==null&&100<t.shellSuspendCounter)throw Error(l(482));t=r,t.status="pending",t.then(function(c){if(r.status==="pending"){var h=r;h.status="fulfilled",h.value=c}},function(c){if(r.status==="pending"){var h=r;h.status="rejected",h.reason=c}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,xy(t),t}throw el=r,Fl}}function Ja(t){try{var r=t._init;return r(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(el=i,Fl):i}}var el=null;function yy(){if(el===null)throw Error(l(459));var t=el;return el=null,t}function xy(t){if(t===Fl||t===ac)throw Error(l(483))}var Ul=null,uo=0;function ic(t){var r=uo;return uo+=1,Ul===null&&(Ul=[]),gy(Ul,t,r)}function fo(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function oc(t,r){throw r.$$typeof===b?Error(l(525)):(t=Object.prototype.toString.call(r),Error(l(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function by(t){function r(V,$){if(t){var K=V.deletions;K===null?(V.deletions=[$],V.flags|=16):K.push($)}}function i(V,$){if(!t)return null;for(;$!==null;)r(V,$),$=$.sibling;return null}function c(V){for(var $=new Map;V!==null;)V.key!==null?$.set(V.key,V):$.set(V.index,V),V=V.sibling;return $}function h(V,$){return V=wr(V,$),V.index=0,V.sibling=null,V}function x(V,$,K){return V.index=K,t?(K=V.alternate,K!==null?(K=K.index,K<$?(V.flags|=67108866,$):K):(V.flags|=67108866,$)):(V.flags|=1048576,$)}function C(V){return t&&V.alternate===null&&(V.flags|=67108866),V}function _(V,$,K,ue){return $===null||$.tag!==6?($=Jd(K,V.mode,ue),$.return=V,$):($=h($,K),$.return=V,$)}function P(V,$,K,ue){var _e=K.type;return _e===S?oe(V,$,K.props.children,ue,K.key):$!==null&&($.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===U&&Ja(_e)===$.type)?($=h($,K.props),fo($,K),$.return=V,$):($=Js(K.type,K.key,K.props,null,V.mode,ue),fo($,K),$.return=V,$)}function Q(V,$,K,ue){return $===null||$.tag!==4||$.stateNode.containerInfo!==K.containerInfo||$.stateNode.implementation!==K.implementation?($=ef(K,V.mode,ue),$.return=V,$):($=h($,K.children||[]),$.return=V,$)}function oe(V,$,K,ue,_e){return $===null||$.tag!==7?($=Xa(K,V.mode,ue,_e),$.return=V,$):($=h($,K),$.return=V,$)}function fe(V,$,K){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return $=Jd(""+$,V.mode,K),$.return=V,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case w:return K=Js($.type,$.key,$.props,null,V.mode,K),fo(K,$),K.return=V,K;case k:return $=ef($,V.mode,K),$.return=V,$;case U:return $=Ja($),fe(V,$,K)}if(ee($)||q($))return $=Xa($,V.mode,K,null),$.return=V,$;if(typeof $.then=="function")return fe(V,ic($),K);if($.$$typeof===j)return fe(V,nc(V,$),K);oc(V,$)}return null}function W(V,$,K,ue){var _e=$!==null?$.key:null;if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return _e!==null?null:_(V,$,""+K,ue);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case w:return K.key===_e?P(V,$,K,ue):null;case k:return K.key===_e?Q(V,$,K,ue):null;case U:return K=Ja(K),W(V,$,K,ue)}if(ee(K)||q(K))return _e!==null?null:oe(V,$,K,ue,null);if(typeof K.then=="function")return W(V,$,ic(K),ue);if(K.$$typeof===j)return W(V,$,nc(V,K),ue);oc(V,K)}return null}function re(V,$,K,ue,_e){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return V=V.get(K)||null,_($,V,""+ue,_e);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case w:return V=V.get(ue.key===null?K:ue.key)||null,P($,V,ue,_e);case k:return V=V.get(ue.key===null?K:ue.key)||null,Q($,V,ue,_e);case U:return ue=Ja(ue),re(V,$,K,ue,_e)}if(ee(ue)||q(ue))return V=V.get(K)||null,oe($,V,ue,_e,null);if(typeof ue.then=="function")return re(V,$,K,ic(ue),_e);if(ue.$$typeof===j)return re(V,$,K,nc($,ue),_e);oc($,ue)}return null}function Se(V,$,K,ue){for(var _e=null,nt=null,Ee=$,Fe=$=0,Ze=null;Ee!==null&&Fe<K.length;Fe++){Ee.index>Fe?(Ze=Ee,Ee=null):Ze=Ee.sibling;var rt=W(V,Ee,K[Fe],ue);if(rt===null){Ee===null&&(Ee=Ze);break}t&&Ee&&rt.alternate===null&&r(V,Ee),$=x(rt,$,Fe),nt===null?_e=rt:nt.sibling=rt,nt=rt,Ee=Ze}if(Fe===K.length)return i(V,Ee),We&&Sr(V,Fe),_e;if(Ee===null){for(;Fe<K.length;Fe++)Ee=fe(V,K[Fe],ue),Ee!==null&&($=x(Ee,$,Fe),nt===null?_e=Ee:nt.sibling=Ee,nt=Ee);return We&&Sr(V,Fe),_e}for(Ee=c(Ee);Fe<K.length;Fe++)Ze=re(Ee,V,Fe,K[Fe],ue),Ze!==null&&(t&&Ze.alternate!==null&&Ee.delete(Ze.key===null?Fe:Ze.key),$=x(Ze,$,Fe),nt===null?_e=Ze:nt.sibling=Ze,nt=Ze);return t&&Ee.forEach(function(ka){return r(V,ka)}),We&&Sr(V,Fe),_e}function Me(V,$,K,ue){if(K==null)throw Error(l(151));for(var _e=null,nt=null,Ee=$,Fe=$=0,Ze=null,rt=K.next();Ee!==null&&!rt.done;Fe++,rt=K.next()){Ee.index>Fe?(Ze=Ee,Ee=null):Ze=Ee.sibling;var ka=W(V,Ee,rt.value,ue);if(ka===null){Ee===null&&(Ee=Ze);break}t&&Ee&&ka.alternate===null&&r(V,Ee),$=x(ka,$,Fe),nt===null?_e=ka:nt.sibling=ka,nt=ka,Ee=Ze}if(rt.done)return i(V,Ee),We&&Sr(V,Fe),_e;if(Ee===null){for(;!rt.done;Fe++,rt=K.next())rt=fe(V,rt.value,ue),rt!==null&&($=x(rt,$,Fe),nt===null?_e=rt:nt.sibling=rt,nt=rt);return We&&Sr(V,Fe),_e}for(Ee=c(Ee);!rt.done;Fe++,rt=K.next())rt=re(Ee,V,Fe,rt.value,ue),rt!==null&&(t&&rt.alternate!==null&&Ee.delete(rt.key===null?Fe:rt.key),$=x(rt,$,Fe),nt===null?_e=rt:nt.sibling=rt,nt=rt);return t&&Ee.forEach(function(TA){return r(V,TA)}),We&&Sr(V,Fe),_e}function ct(V,$,K,ue){if(typeof K=="object"&&K!==null&&K.type===S&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case w:e:{for(var _e=K.key;$!==null;){if($.key===_e){if(_e=K.type,_e===S){if($.tag===7){i(V,$.sibling),ue=h($,K.props.children),ue.return=V,V=ue;break e}}else if($.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===U&&Ja(_e)===$.type){i(V,$.sibling),ue=h($,K.props),fo(ue,K),ue.return=V,V=ue;break e}i(V,$);break}else r(V,$);$=$.sibling}K.type===S?(ue=Xa(K.props.children,V.mode,ue,K.key),ue.return=V,V=ue):(ue=Js(K.type,K.key,K.props,null,V.mode,ue),fo(ue,K),ue.return=V,V=ue)}return C(V);case k:e:{for(_e=K.key;$!==null;){if($.key===_e)if($.tag===4&&$.stateNode.containerInfo===K.containerInfo&&$.stateNode.implementation===K.implementation){i(V,$.sibling),ue=h($,K.children||[]),ue.return=V,V=ue;break e}else{i(V,$);break}else r(V,$);$=$.sibling}ue=ef(K,V.mode,ue),ue.return=V,V=ue}return C(V);case U:return K=Ja(K),ct(V,$,K,ue)}if(ee(K))return Se(V,$,K,ue);if(q(K)){if(_e=q(K),typeof _e!="function")throw Error(l(150));return K=_e.call(K),Me(V,$,K,ue)}if(typeof K.then=="function")return ct(V,$,ic(K),ue);if(K.$$typeof===j)return ct(V,$,nc(V,K),ue);oc(V,K)}return typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint"?(K=""+K,$!==null&&$.tag===6?(i(V,$.sibling),ue=h($,K),ue.return=V,V=ue):(i(V,$),ue=Jd(K,V.mode,ue),ue.return=V,V=ue),C(V)):i(V,$)}return function(V,$,K,ue){try{uo=0;var _e=ct(V,$,K,ue);return Ul=null,_e}catch(Ee){if(Ee===Fl||Ee===ac)throw Ee;var nt=bn(29,Ee,null,V.mode);return nt.lanes=ue,nt.return=V,nt}finally{}}}var tl=by(!0),vy=by(!1),ia=!1;function pf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mf(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function oa(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function sa(t,r,i){var c=t.updateQueue;if(c===null)return null;if(c=c.shared,(at&2)!==0){var h=c.pending;return h===null?r.next=r:(r.next=h.next,h.next=r),c.pending=r,r=Ws(t),ry(t,null,i),r}return Zs(t,c,r,i),Ws(t)}function po(t,r,i){if(r=r.updateQueue,r!==null&&(r=r.shared,(i&4194048)!==0)){var c=r.lanes;c&=t.pendingLanes,i|=c,r.lanes=i,$e(t,i)}}function hf(t,r){var i=t.updateQueue,c=t.alternate;if(c!==null&&(c=c.updateQueue,i===c)){var h=null,x=null;if(i=i.firstBaseUpdate,i!==null){do{var C={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};x===null?h=x=C:x=x.next=C,i=i.next}while(i!==null);x===null?h=x=r:x=x.next=r}else h=x=r;i={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:x,shared:c.shared,callbacks:c.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=r:t.next=r,i.lastBaseUpdate=r}var gf=!1;function mo(){if(gf){var t=Pl;if(t!==null)throw t}}function ho(t,r,i,c){gf=!1;var h=t.updateQueue;ia=!1;var x=h.firstBaseUpdate,C=h.lastBaseUpdate,_=h.shared.pending;if(_!==null){h.shared.pending=null;var P=_,Q=P.next;P.next=null,C===null?x=Q:C.next=Q,C=P;var oe=t.alternate;oe!==null&&(oe=oe.updateQueue,_=oe.lastBaseUpdate,_!==C&&(_===null?oe.firstBaseUpdate=Q:_.next=Q,oe.lastBaseUpdate=P))}if(x!==null){var fe=h.baseState;C=0,oe=Q=P=null,_=x;do{var W=_.lane&-536870913,re=W!==_.lane;if(re?(Qe&W)===W:(c&W)===W){W!==0&&W===Bl&&(gf=!0),oe!==null&&(oe=oe.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var Se=t,Me=_;W=r;var ct=i;switch(Me.tag){case 1:if(Se=Me.payload,typeof Se=="function"){fe=Se.call(ct,fe,W);break e}fe=Se;break e;case 3:Se.flags=Se.flags&-65537|128;case 0:if(Se=Me.payload,W=typeof Se=="function"?Se.call(ct,fe,W):Se,W==null)break e;fe=g({},fe,W);break e;case 2:ia=!0}}W=_.callback,W!==null&&(t.flags|=64,re&&(t.flags|=8192),re=h.callbacks,re===null?h.callbacks=[W]:re.push(W))}else re={lane:W,tag:_.tag,payload:_.payload,callback:_.callback,next:null},oe===null?(Q=oe=re,P=fe):oe=oe.next=re,C|=W;if(_=_.next,_===null){if(_=h.shared.pending,_===null)break;re=_,_=re.next,re.next=null,h.lastBaseUpdate=re,h.shared.pending=null}}while(!0);oe===null&&(P=fe),h.baseState=P,h.firstBaseUpdate=Q,h.lastBaseUpdate=oe,x===null&&(h.shared.lanes=0),pa|=C,t.lanes=C,t.memoizedState=fe}}function wy(t,r){if(typeof t!="function")throw Error(l(191,t));t.call(r)}function Sy(t,r){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)wy(i[t],r)}var Hl=D(null),sc=D(0);function ky(t,r){t=Or,T(sc,t),T(Hl,r),Or=t|r.baseLanes}function yf(){T(sc,Or),T(Hl,Hl.current)}function xf(){Or=sc.current,L(Hl),L(sc)}var vn=D(null),Fn=null;function ca(t){var r=t.alternate;T(kt,kt.current&1),T(vn,t),Fn===null&&(r===null||Hl.current!==null||r.memoizedState!==null)&&(Fn=t)}function bf(t){T(kt,kt.current),T(vn,t),Fn===null&&(Fn=t)}function Cy(t){t.tag===22?(T(kt,kt.current),T(vn,t),Fn===null&&(Fn=t)):ua()}function ua(){T(kt,kt.current),T(vn,vn.current)}function wn(t){L(vn),Fn===t&&(Fn=null),L(kt)}var kt=D(0);function cc(t){for(var r=t;r!==null;){if(r.tag===13){var i=r.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Ep(i)||Ap(i)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Er=0,Pe=null,ot=null,At=null,uc=!1,$l=!1,nl=!1,dc=0,go=0,Vl=null,b2=0;function xt(){throw Error(l(321))}function vf(t,r){if(r===null)return!1;for(var i=0;i<r.length&&i<t.length;i++)if(!xn(t[i],r[i]))return!1;return!0}function wf(t,r,i,c,h,x){return Er=x,Pe=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,I.H=t===null||t.memoizedState===null?ox:Lf,nl=!1,x=i(c,h),nl=!1,$l&&(x=Ay(r,i,c,h)),Ey(t),x}function Ey(t){I.H=bo;var r=ot!==null&&ot.next!==null;if(Er=0,At=ot=Pe=null,uc=!1,go=0,Vl=null,r)throw Error(l(300));t===null||Nt||(t=t.dependencies,t!==null&&tc(t)&&(Nt=!0))}function Ay(t,r,i,c){Pe=t;var h=0;do{if($l&&(Vl=null),go=0,$l=!1,25<=h)throw Error(l(301));if(h+=1,At=ot=null,t.updateQueue!=null){var x=t.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}I.H=sx,x=r(i,c)}while($l);return x}function v2(){var t=I.H,r=t.useState()[0];return r=typeof r.then=="function"?yo(r):r,t=t.useState()[0],(ot!==null?ot.memoizedState:null)!==t&&(Pe.flags|=1024),r}function Sf(){var t=dc!==0;return dc=0,t}function kf(t,r,i){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~i}function Cf(t){if(uc){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}uc=!1}Er=0,At=ot=Pe=null,$l=!1,go=dc=0,Vl=null}function tn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return At===null?Pe.memoizedState=At=t:At=At.next=t,At}function Ct(){if(ot===null){var t=Pe.alternate;t=t!==null?t.memoizedState:null}else t=ot.next;var r=At===null?Pe.memoizedState:At.next;if(r!==null)At=r,ot=t;else{if(t===null)throw Pe.alternate===null?Error(l(467)):Error(l(310));ot=t,t={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},At===null?Pe.memoizedState=At=t:At=At.next=t}return At}function fc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yo(t){var r=go;return go+=1,Vl===null&&(Vl=[]),t=gy(Vl,t,r),r=Pe,(At===null?r.memoizedState:At.next)===null&&(r=r.alternate,I.H=r===null||r.memoizedState===null?ox:Lf),t}function pc(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return yo(t);if(t.$$typeof===j)return Ft(t)}throw Error(l(438,String(t)))}function Ef(t){var r=null,i=Pe.updateQueue;if(i!==null&&(r=i.memoCache),r==null){var c=Pe.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(r={data:c.data.map(function(h){return h.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),i===null&&(i=fc(),Pe.updateQueue=i),i.memoCache=r,i=r.data[r.index],i===void 0)for(i=r.data[r.index]=Array(t),c=0;c<t;c++)i[c]=B;return r.index++,i}function Ar(t,r){return typeof r=="function"?r(t):r}function mc(t){var r=Ct();return Af(r,ot,t)}function Af(t,r,i){var c=t.queue;if(c===null)throw Error(l(311));c.lastRenderedReducer=i;var h=t.baseQueue,x=c.pending;if(x!==null){if(h!==null){var C=h.next;h.next=x.next,x.next=C}r.baseQueue=h=x,c.pending=null}if(x=t.baseState,h===null)t.memoizedState=x;else{r=h.next;var _=C=null,P=null,Q=r,oe=!1;do{var fe=Q.lane&-536870913;if(fe!==Q.lane?(Qe&fe)===fe:(Er&fe)===fe){var W=Q.revertLane;if(W===0)P!==null&&(P=P.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),fe===Bl&&(oe=!0);else if((Er&W)===W){Q=Q.next,W===Bl&&(oe=!0);continue}else fe={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},P===null?(_=P=fe,C=x):P=P.next=fe,Pe.lanes|=W,pa|=W;fe=Q.action,nl&&i(x,fe),x=Q.hasEagerState?Q.eagerState:i(x,fe)}else W={lane:fe,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},P===null?(_=P=W,C=x):P=P.next=W,Pe.lanes|=fe,pa|=fe;Q=Q.next}while(Q!==null&&Q!==r);if(P===null?C=x:P.next=_,!xn(x,t.memoizedState)&&(Nt=!0,oe&&(i=Pl,i!==null)))throw i;t.memoizedState=x,t.baseState=C,t.baseQueue=P,c.lastRenderedState=x}return h===null&&(c.lanes=0),[t.memoizedState,c.dispatch]}function Nf(t){var r=Ct(),i=r.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=t;var c=i.dispatch,h=i.pending,x=r.memoizedState;if(h!==null){i.pending=null;var C=h=h.next;do x=t(x,C.action),C=C.next;while(C!==h);xn(x,r.memoizedState)||(Nt=!0),r.memoizedState=x,r.baseQueue===null&&(r.baseState=x),i.lastRenderedState=x}return[x,c]}function Ny(t,r,i){var c=Pe,h=Ct(),x=We;if(x){if(i===void 0)throw Error(l(407));i=i()}else i=r();var C=!xn((ot||h).memoizedState,i);if(C&&(h.memoizedState=i,Nt=!0),h=h.queue,_f(_y.bind(null,c,h,t),[t]),h.getSnapshot!==r||C||At!==null&&At.memoizedState.tag&1){if(c.flags|=2048,ql(9,{destroy:void 0},Ty.bind(null,c,h,i,r),null),ut===null)throw Error(l(349));x||(Er&127)!==0||jy(c,r,i)}return i}function jy(t,r,i){t.flags|=16384,t={getSnapshot:r,value:i},r=Pe.updateQueue,r===null?(r=fc(),Pe.updateQueue=r,r.stores=[t]):(i=r.stores,i===null?r.stores=[t]:i.push(t))}function Ty(t,r,i,c){r.value=i,r.getSnapshot=c,Ry(r)&&My(t)}function _y(t,r,i){return i(function(){Ry(r)&&My(t)})}function Ry(t){var r=t.getSnapshot;t=t.value;try{var i=r();return!xn(t,i)}catch{return!0}}function My(t){var r=Ya(t,2);r!==null&&mn(r,t,2)}function jf(t){var r=tn();if(typeof t=="function"){var i=t;if(t=i(),nl){Ge(!0);try{i()}finally{Ge(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:t},r}function Oy(t,r,i,c){return t.baseState=i,Af(t,ot,typeof c=="function"?c:Ar)}function w2(t,r,i,c,h){if(yc(t))throw Error(l(485));if(t=r.action,t!==null){var x={payload:h,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){x.listeners.push(C)}};I.T!==null?i(!0):x.isTransition=!1,c(x),i=r.pending,i===null?(x.next=r.pending=x,Dy(r,x)):(x.next=i.next,r.pending=i.next=x)}}function Dy(t,r){var i=r.action,c=r.payload,h=t.state;if(r.isTransition){var x=I.T,C={};I.T=C;try{var _=i(h,c),P=I.S;P!==null&&P(C,_),zy(t,r,_)}catch(Q){Tf(t,r,Q)}finally{x!==null&&C.types!==null&&(x.types=C.types),I.T=x}}else try{x=i(h,c),zy(t,r,x)}catch(Q){Tf(t,r,Q)}}function zy(t,r,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(c){Ly(t,r,c)},function(c){return Tf(t,r,c)}):Ly(t,r,i)}function Ly(t,r,i){r.status="fulfilled",r.value=i,Iy(r),t.state=i,r=t.pending,r!==null&&(i=r.next,i===r?t.pending=null:(i=i.next,r.next=i,Dy(t,i)))}function Tf(t,r,i){var c=t.pending;if(t.pending=null,c!==null){c=c.next;do r.status="rejected",r.reason=i,Iy(r),r=r.next;while(r!==c)}t.action=null}function Iy(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function By(t,r){return r}function Py(t,r){if(We){var i=ut.formState;if(i!==null){e:{var c=Pe;if(We){if(mt){t:{for(var h=mt,x=Pn;h.nodeType!==8;){if(!x){h=null;break t}if(h=Un(h.nextSibling),h===null){h=null;break t}}x=h.data,h=x==="F!"||x==="F"?h:null}if(h){mt=Un(h.nextSibling),c=h.data==="F!";break e}}aa(c)}c=!1}c&&(r=i[0])}}return i=tn(),i.memoizedState=i.baseState=r,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:By,lastRenderedState:r},i.queue=c,i=ax.bind(null,Pe,c),c.dispatch=i,c=jf(!1),x=zf.bind(null,Pe,!1,c.queue),c=tn(),h={state:r,dispatch:null,action:t,pending:null},c.queue=h,i=w2.bind(null,Pe,h,x,i),h.dispatch=i,c.memoizedState=t,[r,i,!1]}function Fy(t){var r=Ct();return Uy(r,ot,t)}function Uy(t,r,i){if(r=Af(t,r,By)[0],t=mc(Ar)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var c=yo(r)}catch(C){throw C===Fl?ac:C}else c=r;r=Ct();var h=r.queue,x=h.dispatch;return i!==r.memoizedState&&(Pe.flags|=2048,ql(9,{destroy:void 0},S2.bind(null,h,i),null)),[c,x,t]}function S2(t,r){t.action=r}function Hy(t){var r=Ct(),i=ot;if(i!==null)return Uy(r,i,t);Ct(),r=r.memoizedState,i=Ct();var c=i.queue.dispatch;return i.memoizedState=t,[r,c,!1]}function ql(t,r,i,c){return t={tag:t,create:i,deps:c,inst:r,next:null},r=Pe.updateQueue,r===null&&(r=fc(),Pe.updateQueue=r),i=r.lastEffect,i===null?r.lastEffect=t.next=t:(c=i.next,i.next=t,t.next=c,r.lastEffect=t),t}function $y(){return Ct().memoizedState}function hc(t,r,i,c){var h=tn();Pe.flags|=t,h.memoizedState=ql(1|r,{destroy:void 0},i,c===void 0?null:c)}function gc(t,r,i,c){var h=Ct();c=c===void 0?null:c;var x=h.memoizedState.inst;ot!==null&&c!==null&&vf(c,ot.memoizedState.deps)?h.memoizedState=ql(r,x,i,c):(Pe.flags|=t,h.memoizedState=ql(1|r,x,i,c))}function Vy(t,r){hc(8390656,8,t,r)}function _f(t,r){gc(2048,8,t,r)}function k2(t){Pe.flags|=4;var r=Pe.updateQueue;if(r===null)r=fc(),Pe.updateQueue=r,r.events=[t];else{var i=r.events;i===null?r.events=[t]:i.push(t)}}function qy(t){var r=Ct().memoizedState;return k2({ref:r,nextImpl:t}),function(){if((at&2)!==0)throw Error(l(440));return r.impl.apply(void 0,arguments)}}function Gy(t,r){return gc(4,2,t,r)}function Yy(t,r){return gc(4,4,t,r)}function Xy(t,r){if(typeof r=="function"){t=t();var i=r(t);return function(){typeof i=="function"?i():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function Ky(t,r,i){i=i!=null?i.concat([t]):null,gc(4,4,Xy.bind(null,r,t),i)}function Rf(){}function Qy(t,r){var i=Ct();r=r===void 0?null:r;var c=i.memoizedState;return r!==null&&vf(r,c[1])?c[0]:(i.memoizedState=[t,r],t)}function Zy(t,r){var i=Ct();r=r===void 0?null:r;var c=i.memoizedState;if(r!==null&&vf(r,c[1]))return c[0];if(c=t(),nl){Ge(!0);try{t()}finally{Ge(!1)}}return i.memoizedState=[c,r],c}function Mf(t,r,i){return i===void 0||(Er&1073741824)!==0&&(Qe&261930)===0?t.memoizedState=r:(t.memoizedState=i,t=Wx(),Pe.lanes|=t,pa|=t,i)}function Wy(t,r,i,c){return xn(i,r)?i:Hl.current!==null?(t=Mf(t,i,c),xn(t,r)||(Nt=!0),t):(Er&42)===0||(Er&1073741824)!==0&&(Qe&261930)===0?(Nt=!0,t.memoizedState=i):(t=Wx(),Pe.lanes|=t,pa|=t,r)}function Jy(t,r,i,c,h){var x=X.p;X.p=x!==0&&8>x?x:8;var C=I.T,_={};I.T=_,zf(t,!1,r,i);try{var P=h(),Q=I.S;if(Q!==null&&Q(_,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var oe=x2(P,c);xo(t,r,oe,Cn(t))}else xo(t,r,c,Cn(t))}catch(fe){xo(t,r,{then:function(){},status:"rejected",reason:fe},Cn())}finally{X.p=x,C!==null&&_.types!==null&&(C.types=_.types),I.T=C}}function C2(){}function Of(t,r,i,c){if(t.tag!==5)throw Error(l(476));var h=ex(t).queue;Jy(t,h,r,J,i===null?C2:function(){return tx(t),i(c)})}function ex(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:J},next:null};var i={};return r.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:i},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function tx(t){var r=ex(t);r.next===null&&(r=t.alternate.memoizedState),xo(t,r.next.queue,{},Cn())}function Df(){return Ft(zo)}function nx(){return Ct().memoizedState}function rx(){return Ct().memoizedState}function E2(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var i=Cn();t=oa(i);var c=sa(r,t,i);c!==null&&(mn(c,r,i),po(c,r,i)),r={cache:cf()},t.payload=r;return}r=r.return}}function A2(t,r,i){var c=Cn();i={lane:c,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},yc(t)?lx(r,i):(i=Zd(t,r,i,c),i!==null&&(mn(i,t,c),ix(i,r,c)))}function ax(t,r,i){var c=Cn();xo(t,r,i,c)}function xo(t,r,i,c){var h={lane:c,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(yc(t))lx(r,h);else{var x=t.alternate;if(t.lanes===0&&(x===null||x.lanes===0)&&(x=r.lastRenderedReducer,x!==null))try{var C=r.lastRenderedState,_=x(C,i);if(h.hasEagerState=!0,h.eagerState=_,xn(_,C))return Zs(t,r,h,0),ut===null&&Qs(),!1}catch{}finally{}if(i=Zd(t,r,h,c),i!==null)return mn(i,t,c),ix(i,r,c),!0}return!1}function zf(t,r,i,c){if(c={lane:2,revertLane:pp(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},yc(t)){if(r)throw Error(l(479))}else r=Zd(t,i,c,2),r!==null&&mn(r,t,2)}function yc(t){var r=t.alternate;return t===Pe||r!==null&&r===Pe}function lx(t,r){$l=uc=!0;var i=t.pending;i===null?r.next=r:(r.next=i.next,i.next=r),t.pending=r}function ix(t,r,i){if((i&4194048)!==0){var c=r.lanes;c&=t.pendingLanes,i|=c,r.lanes=i,$e(t,i)}}var bo={readContext:Ft,use:pc,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useLayoutEffect:xt,useInsertionEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useSyncExternalStore:xt,useId:xt,useHostTransitionStatus:xt,useFormState:xt,useActionState:xt,useOptimistic:xt,useMemoCache:xt,useCacheRefresh:xt};bo.useEffectEvent=xt;var ox={readContext:Ft,use:pc,useCallback:function(t,r){return tn().memoizedState=[t,r===void 0?null:r],t},useContext:Ft,useEffect:Vy,useImperativeHandle:function(t,r,i){i=i!=null?i.concat([t]):null,hc(4194308,4,Xy.bind(null,r,t),i)},useLayoutEffect:function(t,r){return hc(4194308,4,t,r)},useInsertionEffect:function(t,r){hc(4,2,t,r)},useMemo:function(t,r){var i=tn();r=r===void 0?null:r;var c=t();if(nl){Ge(!0);try{t()}finally{Ge(!1)}}return i.memoizedState=[c,r],c},useReducer:function(t,r,i){var c=tn();if(i!==void 0){var h=i(r);if(nl){Ge(!0);try{i(r)}finally{Ge(!1)}}}else h=r;return c.memoizedState=c.baseState=h,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:h},c.queue=t,t=t.dispatch=A2.bind(null,Pe,t),[c.memoizedState,t]},useRef:function(t){var r=tn();return t={current:t},r.memoizedState=t},useState:function(t){t=jf(t);var r=t.queue,i=ax.bind(null,Pe,r);return r.dispatch=i,[t.memoizedState,i]},useDebugValue:Rf,useDeferredValue:function(t,r){var i=tn();return Mf(i,t,r)},useTransition:function(){var t=jf(!1);return t=Jy.bind(null,Pe,t.queue,!0,!1),tn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,i){var c=Pe,h=tn();if(We){if(i===void 0)throw Error(l(407));i=i()}else{if(i=r(),ut===null)throw Error(l(349));(Qe&127)!==0||jy(c,r,i)}h.memoizedState=i;var x={value:i,getSnapshot:r};return h.queue=x,Vy(_y.bind(null,c,x,t),[t]),c.flags|=2048,ql(9,{destroy:void 0},Ty.bind(null,c,x,i,r),null),i},useId:function(){var t=tn(),r=ut.identifierPrefix;if(We){var i=ir,c=lr;i=(c&~(1<<32-De(c)-1)).toString(32)+i,r="_"+r+"R_"+i,i=dc++,0<i&&(r+="H"+i.toString(32)),r+="_"}else i=b2++,r="_"+r+"r_"+i.toString(32)+"_";return t.memoizedState=r},useHostTransitionStatus:Df,useFormState:Py,useActionState:Py,useOptimistic:function(t){var r=tn();r.memoizedState=r.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=i,r=zf.bind(null,Pe,!0,i),i.dispatch=r,[t,r]},useMemoCache:Ef,useCacheRefresh:function(){return tn().memoizedState=E2.bind(null,Pe)},useEffectEvent:function(t){var r=tn(),i={impl:t};return r.memoizedState=i,function(){if((at&2)!==0)throw Error(l(440));return i.impl.apply(void 0,arguments)}}},Lf={readContext:Ft,use:pc,useCallback:Qy,useContext:Ft,useEffect:_f,useImperativeHandle:Ky,useInsertionEffect:Gy,useLayoutEffect:Yy,useMemo:Zy,useReducer:mc,useRef:$y,useState:function(){return mc(Ar)},useDebugValue:Rf,useDeferredValue:function(t,r){var i=Ct();return Wy(i,ot.memoizedState,t,r)},useTransition:function(){var t=mc(Ar)[0],r=Ct().memoizedState;return[typeof t=="boolean"?t:yo(t),r]},useSyncExternalStore:Ny,useId:nx,useHostTransitionStatus:Df,useFormState:Fy,useActionState:Fy,useOptimistic:function(t,r){var i=Ct();return Oy(i,ot,t,r)},useMemoCache:Ef,useCacheRefresh:rx};Lf.useEffectEvent=qy;var sx={readContext:Ft,use:pc,useCallback:Qy,useContext:Ft,useEffect:_f,useImperativeHandle:Ky,useInsertionEffect:Gy,useLayoutEffect:Yy,useMemo:Zy,useReducer:Nf,useRef:$y,useState:function(){return Nf(Ar)},useDebugValue:Rf,useDeferredValue:function(t,r){var i=Ct();return ot===null?Mf(i,t,r):Wy(i,ot.memoizedState,t,r)},useTransition:function(){var t=Nf(Ar)[0],r=Ct().memoizedState;return[typeof t=="boolean"?t:yo(t),r]},useSyncExternalStore:Ny,useId:nx,useHostTransitionStatus:Df,useFormState:Hy,useActionState:Hy,useOptimistic:function(t,r){var i=Ct();return ot!==null?Oy(i,ot,t,r):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:Ef,useCacheRefresh:rx};sx.useEffectEvent=qy;function If(t,r,i,c){r=t.memoizedState,i=i(c,r),i=i==null?r:g({},r,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Bf={enqueueSetState:function(t,r,i){t=t._reactInternals;var c=Cn(),h=oa(c);h.payload=r,i!=null&&(h.callback=i),r=sa(t,h,c),r!==null&&(mn(r,t,c),po(r,t,c))},enqueueReplaceState:function(t,r,i){t=t._reactInternals;var c=Cn(),h=oa(c);h.tag=1,h.payload=r,i!=null&&(h.callback=i),r=sa(t,h,c),r!==null&&(mn(r,t,c),po(r,t,c))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var i=Cn(),c=oa(i);c.tag=2,r!=null&&(c.callback=r),r=sa(t,c,i),r!==null&&(mn(r,t,i),po(r,t,i))}};function cx(t,r,i,c,h,x,C){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(c,x,C):r.prototype&&r.prototype.isPureReactComponent?!ao(i,c)||!ao(h,x):!0}function ux(t,r,i,c){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(i,c),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(i,c),r.state!==t&&Bf.enqueueReplaceState(r,r.state,null)}function rl(t,r){var i=r;if("ref"in r){i={};for(var c in r)c!=="ref"&&(i[c]=r[c])}if(t=t.defaultProps){i===r&&(i=g({},i));for(var h in t)i[h]===void 0&&(i[h]=t[h])}return i}function dx(t){Ks(t)}function fx(t){console.error(t)}function px(t){Ks(t)}function xc(t,r){try{var i=t.onUncaughtError;i(r.value,{componentStack:r.stack})}catch(c){setTimeout(function(){throw c})}}function mx(t,r,i){try{var c=t.onCaughtError;c(i.value,{componentStack:i.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Pf(t,r,i){return i=oa(i),i.tag=3,i.payload={element:null},i.callback=function(){xc(t,r)},i}function hx(t){return t=oa(t),t.tag=3,t}function gx(t,r,i,c){var h=i.type.getDerivedStateFromError;if(typeof h=="function"){var x=c.value;t.payload=function(){return h(x)},t.callback=function(){mx(r,i,c)}}var C=i.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(t.callback=function(){mx(r,i,c),typeof h!="function"&&(ma===null?ma=new Set([this]):ma.add(this));var _=c.stack;this.componentDidCatch(c.value,{componentStack:_!==null?_:""})})}function N2(t,r,i,c,h){if(i.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(r=i.alternate,r!==null&&Il(r,i,h,!0),i=vn.current,i!==null){switch(i.tag){case 31:case 13:return Fn===null?_c():i.alternate===null&&bt===0&&(bt=3),i.flags&=-257,i.flags|=65536,i.lanes=h,c===lc?i.flags|=16384:(r=i.updateQueue,r===null?i.updateQueue=new Set([c]):r.add(c),up(t,c,h)),!1;case 22:return i.flags|=65536,c===lc?i.flags|=16384:(r=i.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([c])},i.updateQueue=r):(i=r.retryQueue,i===null?r.retryQueue=new Set([c]):i.add(c)),up(t,c,h)),!1}throw Error(l(435,i.tag))}return up(t,c,h),_c(),!1}if(We)return r=vn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=h,c!==rf&&(t=Error(l(422),{cause:c}),oo(Ln(t,i)))):(c!==rf&&(r=Error(l(423),{cause:c}),oo(Ln(r,i))),t=t.current.alternate,t.flags|=65536,h&=-h,t.lanes|=h,c=Ln(c,i),h=Pf(t.stateNode,c,h),hf(t,h),bt!==4&&(bt=2)),!1;var x=Error(l(520),{cause:c});if(x=Ln(x,i),No===null?No=[x]:No.push(x),bt!==4&&(bt=2),r===null)return!0;c=Ln(c,i),i=r;do{switch(i.tag){case 3:return i.flags|=65536,t=h&-h,i.lanes|=t,t=Pf(i.stateNode,c,t),hf(i,t),!1;case 1:if(r=i.type,x=i.stateNode,(i.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(ma===null||!ma.has(x))))return i.flags|=65536,h&=-h,i.lanes|=h,h=hx(h),gx(h,t,i,c),hf(i,h),!1}i=i.return}while(i!==null);return!1}var Ff=Error(l(461)),Nt=!1;function Ut(t,r,i,c){r.child=t===null?vy(r,null,i,c):tl(r,t.child,i,c)}function yx(t,r,i,c,h){i=i.render;var x=r.ref;if("ref"in c){var C={};for(var _ in c)_!=="ref"&&(C[_]=c[_])}else C=c;return Za(r),c=wf(t,r,i,C,x,h),_=Sf(),t!==null&&!Nt?(kf(t,r,h),Nr(t,r,h)):(We&&_&&tf(r),r.flags|=1,Ut(t,r,c,h),r.child)}function xx(t,r,i,c,h){if(t===null){var x=i.type;return typeof x=="function"&&!Wd(x)&&x.defaultProps===void 0&&i.compare===null?(r.tag=15,r.type=x,bx(t,r,x,c,h)):(t=Js(i.type,null,c,r,r.mode,h),t.ref=r.ref,t.return=r,r.child=t)}if(x=t.child,!Xf(t,h)){var C=x.memoizedProps;if(i=i.compare,i=i!==null?i:ao,i(C,c)&&t.ref===r.ref)return Nr(t,r,h)}return r.flags|=1,t=wr(x,c),t.ref=r.ref,t.return=r,r.child=t}function bx(t,r,i,c,h){if(t!==null){var x=t.memoizedProps;if(ao(x,c)&&t.ref===r.ref)if(Nt=!1,r.pendingProps=c=x,Xf(t,h))(t.flags&131072)!==0&&(Nt=!0);else return r.lanes=t.lanes,Nr(t,r,h)}return Uf(t,r,i,c,h)}function vx(t,r,i,c){var h=c.children,x=t!==null?t.memoizedState:null;if(t===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((r.flags&128)!==0){if(x=x!==null?x.baseLanes|i:i,t!==null){for(c=r.child=t.child,h=0;c!==null;)h=h|c.lanes|c.childLanes,c=c.sibling;c=h&~x}else c=0,r.child=null;return wx(t,r,x,i,c)}if((i&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&rc(r,x!==null?x.cachePool:null),x!==null?ky(r,x):yf(),Cy(r);else return c=r.lanes=536870912,wx(t,r,x!==null?x.baseLanes|i:i,i,c)}else x!==null?(rc(r,x.cachePool),ky(r,x),ua(),r.memoizedState=null):(t!==null&&rc(r,null),yf(),ua());return Ut(t,r,h,i),r.child}function vo(t,r){return t!==null&&t.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function wx(t,r,i,c,h){var x=df();return x=x===null?null:{parent:Et._currentValue,pool:x},r.memoizedState={baseLanes:i,cachePool:x},t!==null&&rc(r,null),yf(),Cy(r),t!==null&&Il(t,r,c,!0),r.childLanes=h,null}function bc(t,r){return r=wc({mode:r.mode,children:r.children},t.mode),r.ref=t.ref,t.child=r,r.return=t,r}function Sx(t,r,i){return tl(r,t.child,null,i),t=bc(r,r.pendingProps),t.flags|=2,wn(r),r.memoizedState=null,t}function j2(t,r,i){var c=r.pendingProps,h=(r.flags&128)!==0;if(r.flags&=-129,t===null){if(We){if(c.mode==="hidden")return t=bc(r,c),r.lanes=536870912,vo(null,t);if(bf(r),(t=mt)?(t=Db(t,Pn),t=t!==null&&t.data==="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:na!==null?{id:lr,overflow:ir}:null,retryLane:536870912,hydrationErrors:null},i=ly(t),i.return=r,r.child=i,Pt=r,mt=null)):t=null,t===null)throw aa(r);return r.lanes=536870912,null}return bc(r,c)}var x=t.memoizedState;if(x!==null){var C=x.dehydrated;if(bf(r),h)if(r.flags&256)r.flags&=-257,r=Sx(t,r,i);else if(r.memoizedState!==null)r.child=t.child,r.flags|=128,r=null;else throw Error(l(558));else if(Nt||Il(t,r,i,!1),h=(i&t.childLanes)!==0,Nt||h){if(c=ut,c!==null&&(C=Ls(c,i),C!==0&&C!==x.retryLane))throw x.retryLane=C,Ya(t,C),mn(c,t,C),Ff;_c(),r=Sx(t,r,i)}else t=x.treeContext,mt=Un(C.nextSibling),Pt=r,We=!0,ra=null,Pn=!1,t!==null&&sy(r,t),r=bc(r,c),r.flags|=4096;return r}return t=wr(t.child,{mode:c.mode,children:c.children}),t.ref=r.ref,r.child=t,t.return=r,t}function vc(t,r){var i=r.ref;if(i===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(l(284));(t===null||t.ref!==i)&&(r.flags|=4194816)}}function Uf(t,r,i,c,h){return Za(r),i=wf(t,r,i,c,void 0,h),c=Sf(),t!==null&&!Nt?(kf(t,r,h),Nr(t,r,h)):(We&&c&&tf(r),r.flags|=1,Ut(t,r,i,h),r.child)}function kx(t,r,i,c,h,x){return Za(r),r.updateQueue=null,i=Ay(r,c,i,h),Ey(t),c=Sf(),t!==null&&!Nt?(kf(t,r,x),Nr(t,r,x)):(We&&c&&tf(r),r.flags|=1,Ut(t,r,i,x),r.child)}function Cx(t,r,i,c,h){if(Za(r),r.stateNode===null){var x=Ol,C=i.contextType;typeof C=="object"&&C!==null&&(x=Ft(C)),x=new i(c,x),r.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=Bf,r.stateNode=x,x._reactInternals=r,x=r.stateNode,x.props=c,x.state=r.memoizedState,x.refs={},pf(r),C=i.contextType,x.context=typeof C=="object"&&C!==null?Ft(C):Ol,x.state=r.memoizedState,C=i.getDerivedStateFromProps,typeof C=="function"&&(If(r,i,C,c),x.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(C=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),C!==x.state&&Bf.enqueueReplaceState(x,x.state,null),ho(r,c,x,h),mo(),x.state=r.memoizedState),typeof x.componentDidMount=="function"&&(r.flags|=4194308),c=!0}else if(t===null){x=r.stateNode;var _=r.memoizedProps,P=rl(i,_);x.props=P;var Q=x.context,oe=i.contextType;C=Ol,typeof oe=="object"&&oe!==null&&(C=Ft(oe));var fe=i.getDerivedStateFromProps;oe=typeof fe=="function"||typeof x.getSnapshotBeforeUpdate=="function",_=r.pendingProps!==_,oe||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(_||Q!==C)&&ux(r,x,c,C),ia=!1;var W=r.memoizedState;x.state=W,ho(r,c,x,h),mo(),Q=r.memoizedState,_||W!==Q||ia?(typeof fe=="function"&&(If(r,i,fe,c),Q=r.memoizedState),(P=ia||cx(r,i,P,c,W,Q,C))?(oe||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(r.flags|=4194308)):(typeof x.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=c,r.memoizedState=Q),x.props=c,x.state=Q,x.context=C,c=P):(typeof x.componentDidMount=="function"&&(r.flags|=4194308),c=!1)}else{x=r.stateNode,mf(t,r),C=r.memoizedProps,oe=rl(i,C),x.props=oe,fe=r.pendingProps,W=x.context,Q=i.contextType,P=Ol,typeof Q=="object"&&Q!==null&&(P=Ft(Q)),_=i.getDerivedStateFromProps,(Q=typeof _=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(C!==fe||W!==P)&&ux(r,x,c,P),ia=!1,W=r.memoizedState,x.state=W,ho(r,c,x,h),mo();var re=r.memoizedState;C!==fe||W!==re||ia||t!==null&&t.dependencies!==null&&tc(t.dependencies)?(typeof _=="function"&&(If(r,i,_,c),re=r.memoizedState),(oe=ia||cx(r,i,oe,c,W,re,P)||t!==null&&t.dependencies!==null&&tc(t.dependencies))?(Q||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(c,re,P),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(c,re,P)),typeof x.componentDidUpdate=="function"&&(r.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof x.componentDidUpdate!="function"||C===t.memoizedProps&&W===t.memoizedState||(r.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&W===t.memoizedState||(r.flags|=1024),r.memoizedProps=c,r.memoizedState=re),x.props=c,x.state=re,x.context=P,c=oe):(typeof x.componentDidUpdate!="function"||C===t.memoizedProps&&W===t.memoizedState||(r.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&W===t.memoizedState||(r.flags|=1024),c=!1)}return x=c,vc(t,r),c=(r.flags&128)!==0,x||c?(x=r.stateNode,i=c&&typeof i.getDerivedStateFromError!="function"?null:x.render(),r.flags|=1,t!==null&&c?(r.child=tl(r,t.child,null,h),r.child=tl(r,null,i,h)):Ut(t,r,i,h),r.memoizedState=x.state,t=r.child):t=Nr(t,r,h),t}function Ex(t,r,i,c){return Ka(),r.flags|=256,Ut(t,r,i,c),r.child}var Hf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $f(t){return{baseLanes:t,cachePool:my()}}function Vf(t,r,i){return t=t!==null?t.childLanes&~i:0,r&&(t|=kn),t}function Ax(t,r,i){var c=r.pendingProps,h=!1,x=(r.flags&128)!==0,C;if((C=x)||(C=t!==null&&t.memoizedState===null?!1:(kt.current&2)!==0),C&&(h=!0,r.flags&=-129),C=(r.flags&32)!==0,r.flags&=-33,t===null){if(We){if(h?ca(r):ua(),(t=mt)?(t=Db(t,Pn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:na!==null?{id:lr,overflow:ir}:null,retryLane:536870912,hydrationErrors:null},i=ly(t),i.return=r,r.child=i,Pt=r,mt=null)):t=null,t===null)throw aa(r);return Ap(t)?r.lanes=32:r.lanes=536870912,null}var _=c.children;return c=c.fallback,h?(ua(),h=r.mode,_=wc({mode:"hidden",children:_},h),c=Xa(c,h,i,null),_.return=r,c.return=r,_.sibling=c,r.child=_,c=r.child,c.memoizedState=$f(i),c.childLanes=Vf(t,C,i),r.memoizedState=Hf,vo(null,c)):(ca(r),qf(r,_))}var P=t.memoizedState;if(P!==null&&(_=P.dehydrated,_!==null)){if(x)r.flags&256?(ca(r),r.flags&=-257,r=Gf(t,r,i)):r.memoizedState!==null?(ua(),r.child=t.child,r.flags|=128,r=null):(ua(),_=c.fallback,h=r.mode,c=wc({mode:"visible",children:c.children},h),_=Xa(_,h,i,null),_.flags|=2,c.return=r,_.return=r,c.sibling=_,r.child=c,tl(r,t.child,null,i),c=r.child,c.memoizedState=$f(i),c.childLanes=Vf(t,C,i),r.memoizedState=Hf,r=vo(null,c));else if(ca(r),Ap(_)){if(C=_.nextSibling&&_.nextSibling.dataset,C)var Q=C.dgst;C=Q,c=Error(l(419)),c.stack="",c.digest=C,oo({value:c,source:null,stack:null}),r=Gf(t,r,i)}else if(Nt||Il(t,r,i,!1),C=(i&t.childLanes)!==0,Nt||C){if(C=ut,C!==null&&(c=Ls(C,i),c!==0&&c!==P.retryLane))throw P.retryLane=c,Ya(t,c),mn(C,t,c),Ff;Ep(_)||_c(),r=Gf(t,r,i)}else Ep(_)?(r.flags|=192,r.child=t.child,r=null):(t=P.treeContext,mt=Un(_.nextSibling),Pt=r,We=!0,ra=null,Pn=!1,t!==null&&sy(r,t),r=qf(r,c.children),r.flags|=4096);return r}return h?(ua(),_=c.fallback,h=r.mode,P=t.child,Q=P.sibling,c=wr(P,{mode:"hidden",children:c.children}),c.subtreeFlags=P.subtreeFlags&65011712,Q!==null?_=wr(Q,_):(_=Xa(_,h,i,null),_.flags|=2),_.return=r,c.return=r,c.sibling=_,r.child=c,vo(null,c),c=r.child,_=t.child.memoizedState,_===null?_=$f(i):(h=_.cachePool,h!==null?(P=Et._currentValue,h=h.parent!==P?{parent:P,pool:P}:h):h=my(),_={baseLanes:_.baseLanes|i,cachePool:h}),c.memoizedState=_,c.childLanes=Vf(t,C,i),r.memoizedState=Hf,vo(t.child,c)):(ca(r),i=t.child,t=i.sibling,i=wr(i,{mode:"visible",children:c.children}),i.return=r,i.sibling=null,t!==null&&(C=r.deletions,C===null?(r.deletions=[t],r.flags|=16):C.push(t)),r.child=i,r.memoizedState=null,i)}function qf(t,r){return r=wc({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function wc(t,r){return t=bn(22,t,null,r),t.lanes=0,t}function Gf(t,r,i){return tl(r,t.child,null,i),t=qf(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function Nx(t,r,i){t.lanes|=r;var c=t.alternate;c!==null&&(c.lanes|=r),of(t.return,r,i)}function Yf(t,r,i,c,h,x){var C=t.memoizedState;C===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:c,tail:i,tailMode:h,treeForkCount:x}:(C.isBackwards=r,C.rendering=null,C.renderingStartTime=0,C.last=c,C.tail=i,C.tailMode=h,C.treeForkCount=x)}function jx(t,r,i){var c=r.pendingProps,h=c.revealOrder,x=c.tail;c=c.children;var C=kt.current,_=(C&2)!==0;if(_?(C=C&1|2,r.flags|=128):C&=1,T(kt,C),Ut(t,r,c,i),c=We?io:0,!_&&t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Nx(t,i,r);else if(t.tag===19)Nx(t,i,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(h){case"forwards":for(i=r.child,h=null;i!==null;)t=i.alternate,t!==null&&cc(t)===null&&(h=i),i=i.sibling;i=h,i===null?(h=r.child,r.child=null):(h=i.sibling,i.sibling=null),Yf(r,!1,h,i,x,c);break;case"backwards":case"unstable_legacy-backwards":for(i=null,h=r.child,r.child=null;h!==null;){if(t=h.alternate,t!==null&&cc(t)===null){r.child=h;break}t=h.sibling,h.sibling=i,i=h,h=t}Yf(r,!0,i,null,x,c);break;case"together":Yf(r,!1,null,null,void 0,c);break;default:r.memoizedState=null}return r.child}function Nr(t,r,i){if(t!==null&&(r.dependencies=t.dependencies),pa|=r.lanes,(i&r.childLanes)===0)if(t!==null){if(Il(t,r,i,!1),(i&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(l(153));if(r.child!==null){for(t=r.child,i=wr(t,t.pendingProps),r.child=i,i.return=r;t.sibling!==null;)t=t.sibling,i=i.sibling=wr(t,t.pendingProps),i.return=r;i.sibling=null}return r.child}function Xf(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&tc(t)))}function T2(t,r,i){switch(r.tag){case 3:be(r,r.stateNode.containerInfo),la(r,Et,t.memoizedState.cache),Ka();break;case 27:case 5:Te(r);break;case 4:be(r,r.stateNode.containerInfo);break;case 10:la(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,bf(r),null;break;case 13:var c=r.memoizedState;if(c!==null)return c.dehydrated!==null?(ca(r),r.flags|=128,null):(i&r.child.childLanes)!==0?Ax(t,r,i):(ca(r),t=Nr(t,r,i),t!==null?t.sibling:null);ca(r);break;case 19:var h=(t.flags&128)!==0;if(c=(i&r.childLanes)!==0,c||(Il(t,r,i,!1),c=(i&r.childLanes)!==0),h){if(c)return jx(t,r,i);r.flags|=128}if(h=r.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),T(kt,kt.current),c)break;return null;case 22:return r.lanes=0,vx(t,r,i,r.pendingProps);case 24:la(r,Et,t.memoizedState.cache)}return Nr(t,r,i)}function Tx(t,r,i){if(t!==null)if(t.memoizedProps!==r.pendingProps)Nt=!0;else{if(!Xf(t,i)&&(r.flags&128)===0)return Nt=!1,T2(t,r,i);Nt=(t.flags&131072)!==0}else Nt=!1,We&&(r.flags&1048576)!==0&&oy(r,io,r.index);switch(r.lanes=0,r.tag){case 16:e:{var c=r.pendingProps;if(t=Ja(r.elementType),r.type=t,typeof t=="function")Wd(t)?(c=rl(t,c),r.tag=1,r=Cx(null,r,t,c,i)):(r.tag=0,r=Uf(null,r,t,c,i));else{if(t!=null){var h=t.$$typeof;if(h===O){r.tag=11,r=yx(null,r,t,c,i);break e}else if(h===F){r.tag=14,r=xx(null,r,t,c,i);break e}}throw r=ne(t)||t,Error(l(306,r,""))}}return r;case 0:return Uf(t,r,r.type,r.pendingProps,i);case 1:return c=r.type,h=rl(c,r.pendingProps),Cx(t,r,c,h,i);case 3:e:{if(be(r,r.stateNode.containerInfo),t===null)throw Error(l(387));c=r.pendingProps;var x=r.memoizedState;h=x.element,mf(t,r),ho(r,c,null,i);var C=r.memoizedState;if(c=C.cache,la(r,Et,c),c!==x.cache&&sf(r,[Et],i,!0),mo(),c=C.element,x.isDehydrated)if(x={element:c,isDehydrated:!1,cache:C.cache},r.updateQueue.baseState=x,r.memoizedState=x,r.flags&256){r=Ex(t,r,c,i);break e}else if(c!==h){h=Ln(Error(l(424)),r),oo(h),r=Ex(t,r,c,i);break e}else{switch(t=r.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(mt=Un(t.firstChild),Pt=r,We=!0,ra=null,Pn=!0,i=vy(r,null,c,i),r.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Ka(),c===h){r=Nr(t,r,i);break e}Ut(t,r,c,i)}r=r.child}return r;case 26:return vc(t,r),t===null?(i=Fb(r.type,null,r.pendingProps,null))?r.memoizedState=i:We||(i=r.type,t=r.pendingProps,c=Ic(le.current).createElement(i),c[_t]=r,c[Yt]=t,Ht(c,i,t),wt(c),r.stateNode=c):r.memoizedState=Fb(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return Te(r),t===null&&We&&(c=r.stateNode=Ib(r.type,r.pendingProps,le.current),Pt=r,Pn=!0,h=mt,xa(r.type)?(Np=h,mt=Un(c.firstChild)):mt=h),Ut(t,r,r.pendingProps.children,i),vc(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&We&&((h=c=mt)&&(c=lA(c,r.type,r.pendingProps,Pn),c!==null?(r.stateNode=c,Pt=r,mt=Un(c.firstChild),Pn=!1,h=!0):h=!1),h||aa(r)),Te(r),h=r.type,x=r.pendingProps,C=t!==null?t.memoizedProps:null,c=x.children,Sp(h,x)?c=null:C!==null&&Sp(h,C)&&(r.flags|=32),r.memoizedState!==null&&(h=wf(t,r,v2,null,null,i),zo._currentValue=h),vc(t,r),Ut(t,r,c,i),r.child;case 6:return t===null&&We&&((t=i=mt)&&(i=iA(i,r.pendingProps,Pn),i!==null?(r.stateNode=i,Pt=r,mt=null,t=!0):t=!1),t||aa(r)),null;case 13:return Ax(t,r,i);case 4:return be(r,r.stateNode.containerInfo),c=r.pendingProps,t===null?r.child=tl(r,null,c,i):Ut(t,r,c,i),r.child;case 11:return yx(t,r,r.type,r.pendingProps,i);case 7:return Ut(t,r,r.pendingProps,i),r.child;case 8:return Ut(t,r,r.pendingProps.children,i),r.child;case 12:return Ut(t,r,r.pendingProps.children,i),r.child;case 10:return c=r.pendingProps,la(r,r.type,c.value),Ut(t,r,c.children,i),r.child;case 9:return h=r.type._context,c=r.pendingProps.children,Za(r),h=Ft(h),c=c(h),r.flags|=1,Ut(t,r,c,i),r.child;case 14:return xx(t,r,r.type,r.pendingProps,i);case 15:return bx(t,r,r.type,r.pendingProps,i);case 19:return jx(t,r,i);case 31:return j2(t,r,i);case 22:return vx(t,r,i,r.pendingProps);case 24:return Za(r),c=Ft(Et),t===null?(h=df(),h===null&&(h=ut,x=cf(),h.pooledCache=x,x.refCount++,x!==null&&(h.pooledCacheLanes|=i),h=x),r.memoizedState={parent:c,cache:h},pf(r),la(r,Et,h)):((t.lanes&i)!==0&&(mf(t,r),ho(r,null,null,i),mo()),h=t.memoizedState,x=r.memoizedState,h.parent!==c?(h={parent:c,cache:c},r.memoizedState=h,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=h),la(r,Et,c)):(c=x.cache,la(r,Et,c),c!==h.cache&&sf(r,[Et],i,!0))),Ut(t,r,r.pendingProps.children,i),r.child;case 29:throw r.pendingProps}throw Error(l(156,r.tag))}function jr(t){t.flags|=4}function Kf(t,r,i,c,h){if((r=(t.mode&32)!==0)&&(r=!1),r){if(t.flags|=16777216,(h&335544128)===h)if(t.stateNode.complete)t.flags|=8192;else if(nb())t.flags|=8192;else throw el=lc,ff}else t.flags&=-16777217}function _x(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!qb(r))if(nb())t.flags|=8192;else throw el=lc,ff}function Sc(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?Fi():536870912,t.lanes|=r,Kl|=r)}function wo(t,r){if(!We)switch(t.tailMode){case"hidden":r=t.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var c=null;i!==null;)i.alternate!==null&&(c=i),i=i.sibling;c===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:c.sibling=null}}function ht(t){var r=t.alternate!==null&&t.alternate.child===t.child,i=0,c=0;if(r)for(var h=t.child;h!==null;)i|=h.lanes|h.childLanes,c|=h.subtreeFlags&65011712,c|=h.flags&65011712,h.return=t,h=h.sibling;else for(h=t.child;h!==null;)i|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=t,h=h.sibling;return t.subtreeFlags|=c,t.childLanes=i,r}function _2(t,r,i){var c=r.pendingProps;switch(nf(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(r),null;case 1:return ht(r),null;case 3:return i=r.stateNode,c=null,t!==null&&(c=t.memoizedState.cache),r.memoizedState.cache!==c&&(r.flags|=2048),Cr(Et),he(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(Ll(r)?jr(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,af())),ht(r),null;case 26:var h=r.type,x=r.memoizedState;return t===null?(jr(r),x!==null?(ht(r),_x(r,x)):(ht(r),Kf(r,h,null,c,i))):x?x!==t.memoizedState?(jr(r),ht(r),_x(r,x)):(ht(r),r.flags&=-16777217):(t=t.memoizedProps,t!==c&&jr(r),ht(r),Kf(r,h,t,c,i)),null;case 27:if(ze(r),i=le.current,h=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==c&&jr(r);else{if(!c){if(r.stateNode===null)throw Error(l(166));return ht(r),null}t=te.current,Ll(r)?cy(r):(t=Ib(h,c,i),r.stateNode=t,jr(r))}return ht(r),null;case 5:if(ze(r),h=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==c&&jr(r);else{if(!c){if(r.stateNode===null)throw Error(l(166));return ht(r),null}if(x=te.current,Ll(r))cy(r);else{var C=Ic(le.current);switch(x){case 1:x=C.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:x=C.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":x=C.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":x=C.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":x=C.createElement("div"),x.innerHTML="<script><\/script>",x=x.removeChild(x.firstChild);break;case"select":x=typeof c.is=="string"?C.createElement("select",{is:c.is}):C.createElement("select"),c.multiple?x.multiple=!0:c.size&&(x.size=c.size);break;default:x=typeof c.is=="string"?C.createElement(h,{is:c.is}):C.createElement(h)}}x[_t]=r,x[Yt]=c;e:for(C=r.child;C!==null;){if(C.tag===5||C.tag===6)x.appendChild(C.stateNode);else if(C.tag!==4&&C.tag!==27&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===r)break e;for(;C.sibling===null;){if(C.return===null||C.return===r)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}r.stateNode=x;e:switch(Ht(x,h,c),h){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&jr(r)}}return ht(r),Kf(r,r.type,t===null?null:t.memoizedProps,r.pendingProps,i),null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==c&&jr(r);else{if(typeof c!="string"&&r.stateNode===null)throw Error(l(166));if(t=le.current,Ll(r)){if(t=r.stateNode,i=r.memoizedProps,c=null,h=Pt,h!==null)switch(h.tag){case 27:case 5:c=h.memoizedProps}t[_t]=r,t=!!(t.nodeValue===i||c!==null&&c.suppressHydrationWarning===!0||Ab(t.nodeValue,i)),t||aa(r,!0)}else t=Ic(t).createTextNode(c),t[_t]=r,r.stateNode=t}return ht(r),null;case 31:if(i=r.memoizedState,t===null||t.memoizedState!==null){if(c=Ll(r),i!==null){if(t===null){if(!c)throw Error(l(318));if(t=r.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(l(557));t[_t]=r}else Ka(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ht(r),t=!1}else i=af(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return r.flags&256?(wn(r),r):(wn(r),null);if((r.flags&128)!==0)throw Error(l(558))}return ht(r),null;case 13:if(c=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(h=Ll(r),c!==null&&c.dehydrated!==null){if(t===null){if(!h)throw Error(l(318));if(h=r.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(l(317));h[_t]=r}else Ka(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ht(r),h=!1}else h=af(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=h),h=!0;if(!h)return r.flags&256?(wn(r),r):(wn(r),null)}return wn(r),(r.flags&128)!==0?(r.lanes=i,r):(i=c!==null,t=t!==null&&t.memoizedState!==null,i&&(c=r.child,h=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(h=c.alternate.memoizedState.cachePool.pool),x=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(x=c.memoizedState.cachePool.pool),x!==h&&(c.flags|=2048)),i!==t&&i&&(r.child.flags|=8192),Sc(r,r.updateQueue),ht(r),null);case 4:return he(),t===null&&yp(r.stateNode.containerInfo),ht(r),null;case 10:return Cr(r.type),ht(r),null;case 19:if(L(kt),c=r.memoizedState,c===null)return ht(r),null;if(h=(r.flags&128)!==0,x=c.rendering,x===null)if(h)wo(c,!1);else{if(bt!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(x=cc(t),x!==null){for(r.flags|=128,wo(c,!1),t=x.updateQueue,r.updateQueue=t,Sc(r,t),r.subtreeFlags=0,t=i,i=r.child;i!==null;)ay(i,t),i=i.sibling;return T(kt,kt.current&1|2),We&&Sr(r,c.treeForkCount),r.child}t=t.sibling}c.tail!==null&&vt()>Nc&&(r.flags|=128,h=!0,wo(c,!1),r.lanes=4194304)}else{if(!h)if(t=cc(x),t!==null){if(r.flags|=128,h=!0,t=t.updateQueue,r.updateQueue=t,Sc(r,t),wo(c,!0),c.tail===null&&c.tailMode==="hidden"&&!x.alternate&&!We)return ht(r),null}else 2*vt()-c.renderingStartTime>Nc&&i!==536870912&&(r.flags|=128,h=!0,wo(c,!1),r.lanes=4194304);c.isBackwards?(x.sibling=r.child,r.child=x):(t=c.last,t!==null?t.sibling=x:r.child=x,c.last=x)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=vt(),t.sibling=null,i=kt.current,T(kt,h?i&1|2:i&1),We&&Sr(r,c.treeForkCount),t):(ht(r),null);case 22:case 23:return wn(r),xf(),c=r.memoizedState!==null,t!==null?t.memoizedState!==null!==c&&(r.flags|=8192):c&&(r.flags|=8192),c?(i&536870912)!==0&&(r.flags&128)===0&&(ht(r),r.subtreeFlags&6&&(r.flags|=8192)):ht(r),i=r.updateQueue,i!==null&&Sc(r,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),c=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),c!==i&&(r.flags|=2048),t!==null&&L(Wa),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),r.memoizedState.cache!==i&&(r.flags|=2048),Cr(Et),ht(r),null;case 25:return null;case 30:return null}throw Error(l(156,r.tag))}function R2(t,r){switch(nf(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Cr(Et),he(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return ze(r),null;case 31:if(r.memoizedState!==null){if(wn(r),r.alternate===null)throw Error(l(340));Ka()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 13:if(wn(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(l(340));Ka()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return L(kt),null;case 4:return he(),null;case 10:return Cr(r.type),null;case 22:case 23:return wn(r),xf(),t!==null&&L(Wa),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return Cr(Et),null;case 25:return null;default:return null}}function Rx(t,r){switch(nf(r),r.tag){case 3:Cr(Et),he();break;case 26:case 27:case 5:ze(r);break;case 4:he();break;case 31:r.memoizedState!==null&&wn(r);break;case 13:wn(r);break;case 19:L(kt);break;case 10:Cr(r.type);break;case 22:case 23:wn(r),xf(),t!==null&&L(Wa);break;case 24:Cr(Et)}}function So(t,r){try{var i=r.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var h=c.next;i=h;do{if((i.tag&t)===t){c=void 0;var x=i.create,C=i.inst;c=x(),C.destroy=c}i=i.next}while(i!==h)}}catch(_){it(r,r.return,_)}}function da(t,r,i){try{var c=r.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var x=h.next;c=x;do{if((c.tag&t)===t){var C=c.inst,_=C.destroy;if(_!==void 0){C.destroy=void 0,h=r;var P=i,Q=_;try{Q()}catch(oe){it(h,P,oe)}}}c=c.next}while(c!==x)}}catch(oe){it(r,r.return,oe)}}function Mx(t){var r=t.updateQueue;if(r!==null){var i=t.stateNode;try{Sy(r,i)}catch(c){it(t,t.return,c)}}}function Ox(t,r,i){i.props=rl(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(c){it(t,r,c)}}function ko(t,r){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var c=t.stateNode;break;case 30:c=t.stateNode;break;default:c=t.stateNode}typeof i=="function"?t.refCleanup=i(c):i.current=c}}catch(h){it(t,r,h)}}function or(t,r){var i=t.ref,c=t.refCleanup;if(i!==null)if(typeof c=="function")try{c()}catch(h){it(t,r,h)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(h){it(t,r,h)}else i.current=null}function Dx(t){var r=t.type,i=t.memoizedProps,c=t.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":i.autoFocus&&c.focus();break e;case"img":i.src?c.src=i.src:i.srcSet&&(c.srcset=i.srcSet)}}catch(h){it(t,t.return,h)}}function Qf(t,r,i){try{var c=t.stateNode;J2(c,t.type,i,r),c[Yt]=r}catch(h){it(t,t.return,h)}}function zx(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&xa(t.type)||t.tag===4}function Zf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||zx(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&xa(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Wf(t,r,i){var c=t.tag;if(c===5||c===6)t=t.stateNode,r?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,r):(r=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,r.appendChild(t),i=i._reactRootContainer,i!=null||r.onclick!==null||(r.onclick=br));else if(c!==4&&(c===27&&xa(t.type)&&(i=t.stateNode,r=null),t=t.child,t!==null))for(Wf(t,r,i),t=t.sibling;t!==null;)Wf(t,r,i),t=t.sibling}function kc(t,r,i){var c=t.tag;if(c===5||c===6)t=t.stateNode,r?i.insertBefore(t,r):i.appendChild(t);else if(c!==4&&(c===27&&xa(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(kc(t,r,i),t=t.sibling;t!==null;)kc(t,r,i),t=t.sibling}function Lx(t){var r=t.stateNode,i=t.memoizedProps;try{for(var c=t.type,h=r.attributes;h.length;)r.removeAttributeNode(h[0]);Ht(r,c,i),r[_t]=t,r[Yt]=i}catch(x){it(t,t.return,x)}}var Tr=!1,jt=!1,Jf=!1,Ix=typeof WeakSet=="function"?WeakSet:Set,Lt=null;function M2(t,r){if(t=t.containerInfo,vp=Vc,t=Kg(t),qd(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var c=i.getSelection&&i.getSelection();if(c&&c.rangeCount!==0){i=c.anchorNode;var h=c.anchorOffset,x=c.focusNode;c=c.focusOffset;try{i.nodeType,x.nodeType}catch{i=null;break e}var C=0,_=-1,P=-1,Q=0,oe=0,fe=t,W=null;t:for(;;){for(var re;fe!==i||h!==0&&fe.nodeType!==3||(_=C+h),fe!==x||c!==0&&fe.nodeType!==3||(P=C+c),fe.nodeType===3&&(C+=fe.nodeValue.length),(re=fe.firstChild)!==null;)W=fe,fe=re;for(;;){if(fe===t)break t;if(W===i&&++Q===h&&(_=C),W===x&&++oe===c&&(P=C),(re=fe.nextSibling)!==null)break;fe=W,W=fe.parentNode}fe=re}i=_===-1||P===-1?null:{start:_,end:P}}else i=null}i=i||{start:0,end:0}}else i=null;for(wp={focusedElem:t,selectionRange:i},Vc=!1,Lt=r;Lt!==null;)if(r=Lt,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,Lt=t;else for(;Lt!==null;){switch(r=Lt,x=r.alternate,t=r.flags,r.tag){case 0:if((t&4)!==0&&(t=r.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)h=t[i],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&x!==null){t=void 0,i=r,h=x.memoizedProps,x=x.memoizedState,c=i.stateNode;try{var Se=rl(i.type,h);t=c.getSnapshotBeforeUpdate(Se,x),c.__reactInternalSnapshotBeforeUpdate=t}catch(Me){it(i,i.return,Me)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,i=t.nodeType,i===9)Cp(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Cp(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(l(163))}if(t=r.sibling,t!==null){t.return=r.return,Lt=t;break}Lt=r.return}}function Bx(t,r,i){var c=i.flags;switch(i.tag){case 0:case 11:case 15:Rr(t,i),c&4&&So(5,i);break;case 1:if(Rr(t,i),c&4)if(t=i.stateNode,r===null)try{t.componentDidMount()}catch(C){it(i,i.return,C)}else{var h=rl(i.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(h,r,t.__reactInternalSnapshotBeforeUpdate)}catch(C){it(i,i.return,C)}}c&64&&Mx(i),c&512&&ko(i,i.return);break;case 3:if(Rr(t,i),c&64&&(t=i.updateQueue,t!==null)){if(r=null,i.child!==null)switch(i.child.tag){case 27:case 5:r=i.child.stateNode;break;case 1:r=i.child.stateNode}try{Sy(t,r)}catch(C){it(i,i.return,C)}}break;case 27:r===null&&c&4&&Lx(i);case 26:case 5:Rr(t,i),r===null&&c&4&&Dx(i),c&512&&ko(i,i.return);break;case 12:Rr(t,i);break;case 31:Rr(t,i),c&4&&Ux(t,i);break;case 13:Rr(t,i),c&4&&Hx(t,i),c&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=U2.bind(null,i),oA(t,i))));break;case 22:if(c=i.memoizedState!==null||Tr,!c){r=r!==null&&r.memoizedState!==null||jt,h=Tr;var x=jt;Tr=c,(jt=r)&&!x?Mr(t,i,(i.subtreeFlags&8772)!==0):Rr(t,i),Tr=h,jt=x}break;case 30:break;default:Rr(t,i)}}function Px(t){var r=t.alternate;r!==null&&(t.alternate=null,Px(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&Gi(r)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var gt=null,un=!1;function _r(t,r,i){for(i=i.child;i!==null;)Fx(t,r,i),i=i.sibling}function Fx(t,r,i){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount(qt,i)}catch{}switch(i.tag){case 26:jt||or(i,r),_r(t,r,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:jt||or(i,r);var c=gt,h=un;xa(i.type)&&(gt=i.stateNode,un=!1),_r(t,r,i),Mo(i.stateNode),gt=c,un=h;break;case 5:jt||or(i,r);case 6:if(c=gt,h=un,gt=null,_r(t,r,i),gt=c,un=h,gt!==null)if(un)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(i.stateNode)}catch(x){it(i,r,x)}else try{gt.removeChild(i.stateNode)}catch(x){it(i,r,x)}break;case 18:gt!==null&&(un?(t=gt,Mb(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),ri(t)):Mb(gt,i.stateNode));break;case 4:c=gt,h=un,gt=i.stateNode.containerInfo,un=!0,_r(t,r,i),gt=c,un=h;break;case 0:case 11:case 14:case 15:da(2,i,r),jt||da(4,i,r),_r(t,r,i);break;case 1:jt||(or(i,r),c=i.stateNode,typeof c.componentWillUnmount=="function"&&Ox(i,r,c)),_r(t,r,i);break;case 21:_r(t,r,i);break;case 22:jt=(c=jt)||i.memoizedState!==null,_r(t,r,i),jt=c;break;default:_r(t,r,i)}}function Ux(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ri(t)}catch(i){it(r,r.return,i)}}}function Hx(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ri(t)}catch(i){it(r,r.return,i)}}function O2(t){switch(t.tag){case 31:case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new Ix),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new Ix),r;default:throw Error(l(435,t.tag))}}function Cc(t,r){var i=O2(t);r.forEach(function(c){if(!i.has(c)){i.add(c);var h=H2.bind(null,t,c);c.then(h,h)}})}function dn(t,r){var i=r.deletions;if(i!==null)for(var c=0;c<i.length;c++){var h=i[c],x=t,C=r,_=C;e:for(;_!==null;){switch(_.tag){case 27:if(xa(_.type)){gt=_.stateNode,un=!1;break e}break;case 5:gt=_.stateNode,un=!1;break e;case 3:case 4:gt=_.stateNode.containerInfo,un=!0;break e}_=_.return}if(gt===null)throw Error(l(160));Fx(x,C,h),gt=null,un=!1,x=h.alternate,x!==null&&(x.return=null),h.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)$x(r,t),r=r.sibling}var Qn=null;function $x(t,r){var i=t.alternate,c=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:dn(r,t),fn(t),c&4&&(da(3,t,t.return),So(3,t),da(5,t,t.return));break;case 1:dn(r,t),fn(t),c&512&&(jt||i===null||or(i,i.return)),c&64&&Tr&&(t=t.updateQueue,t!==null&&(c=t.callbacks,c!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?c:i.concat(c))));break;case 26:var h=Qn;if(dn(r,t),fn(t),c&512&&(jt||i===null||or(i,i.return)),c&4){var x=i!==null?i.memoizedState:null;if(c=t.memoizedState,i===null)if(c===null)if(t.stateNode===null){e:{c=t.type,i=t.memoizedProps,h=h.ownerDocument||h;t:switch(c){case"title":x=h.getElementsByTagName("title")[0],(!x||x[Ha]||x[_t]||x.namespaceURI==="http://www.w3.org/2000/svg"||x.hasAttribute("itemprop"))&&(x=h.createElement(c),h.head.insertBefore(x,h.querySelector("head > title"))),Ht(x,c,i),x[_t]=t,wt(x),c=x;break e;case"link":var C=$b("link","href",h).get(c+(i.href||""));if(C){for(var _=0;_<C.length;_++)if(x=C[_],x.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&x.getAttribute("rel")===(i.rel==null?null:i.rel)&&x.getAttribute("title")===(i.title==null?null:i.title)&&x.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){C.splice(_,1);break t}}x=h.createElement(c),Ht(x,c,i),h.head.appendChild(x);break;case"meta":if(C=$b("meta","content",h).get(c+(i.content||""))){for(_=0;_<C.length;_++)if(x=C[_],x.getAttribute("content")===(i.content==null?null:""+i.content)&&x.getAttribute("name")===(i.name==null?null:i.name)&&x.getAttribute("property")===(i.property==null?null:i.property)&&x.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&x.getAttribute("charset")===(i.charSet==null?null:i.charSet)){C.splice(_,1);break t}}x=h.createElement(c),Ht(x,c,i),h.head.appendChild(x);break;default:throw Error(l(468,c))}x[_t]=t,wt(x),c=x}t.stateNode=c}else Vb(h,t.type,t.stateNode);else t.stateNode=Hb(h,c,t.memoizedProps);else x!==c?(x===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):x.count--,c===null?Vb(h,t.type,t.stateNode):Hb(h,c,t.memoizedProps)):c===null&&t.stateNode!==null&&Qf(t,t.memoizedProps,i.memoizedProps)}break;case 27:dn(r,t),fn(t),c&512&&(jt||i===null||or(i,i.return)),i!==null&&c&4&&Qf(t,t.memoizedProps,i.memoizedProps);break;case 5:if(dn(r,t),fn(t),c&512&&(jt||i===null||or(i,i.return)),t.flags&32){h=t.stateNode;try{Al(h,"")}catch(Se){it(t,t.return,Se)}}c&4&&t.stateNode!=null&&(h=t.memoizedProps,Qf(t,h,i!==null?i.memoizedProps:h)),c&1024&&(Jf=!0);break;case 6:if(dn(r,t),fn(t),c&4){if(t.stateNode===null)throw Error(l(162));c=t.memoizedProps,i=t.stateNode;try{i.nodeValue=c}catch(Se){it(t,t.return,Se)}}break;case 3:if(Fc=null,h=Qn,Qn=Bc(r.containerInfo),dn(r,t),Qn=h,fn(t),c&4&&i!==null&&i.memoizedState.isDehydrated)try{ri(r.containerInfo)}catch(Se){it(t,t.return,Se)}Jf&&(Jf=!1,Vx(t));break;case 4:c=Qn,Qn=Bc(t.stateNode.containerInfo),dn(r,t),fn(t),Qn=c;break;case 12:dn(r,t),fn(t);break;case 31:dn(r,t),fn(t),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,Cc(t,c)));break;case 13:dn(r,t),fn(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Ac=vt()),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,Cc(t,c)));break;case 22:h=t.memoizedState!==null;var P=i!==null&&i.memoizedState!==null,Q=Tr,oe=jt;if(Tr=Q||h,jt=oe||P,dn(r,t),jt=oe,Tr=Q,fn(t),c&8192)e:for(r=t.stateNode,r._visibility=h?r._visibility&-2:r._visibility|1,h&&(i===null||P||Tr||jt||al(t)),i=null,r=t;;){if(r.tag===5||r.tag===26){if(i===null){P=i=r;try{if(x=P.stateNode,h)C=x.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{_=P.stateNode;var fe=P.memoizedProps.style,W=fe!=null&&fe.hasOwnProperty("display")?fe.display:null;_.style.display=W==null||typeof W=="boolean"?"":(""+W).trim()}}catch(Se){it(P,P.return,Se)}}}else if(r.tag===6){if(i===null){P=r;try{P.stateNode.nodeValue=h?"":P.memoizedProps}catch(Se){it(P,P.return,Se)}}}else if(r.tag===18){if(i===null){P=r;try{var re=P.stateNode;h?Ob(re,!0):Ob(P.stateNode,!1)}catch(Se){it(P,P.return,Se)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;i===r&&(i=null),r=r.return}i===r&&(i=null),r.sibling.return=r.return,r=r.sibling}c&4&&(c=t.updateQueue,c!==null&&(i=c.retryQueue,i!==null&&(c.retryQueue=null,Cc(t,i))));break;case 19:dn(r,t),fn(t),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,Cc(t,c)));break;case 30:break;case 21:break;default:dn(r,t),fn(t)}}function fn(t){var r=t.flags;if(r&2){try{for(var i,c=t.return;c!==null;){if(zx(c)){i=c;break}c=c.return}if(i==null)throw Error(l(160));switch(i.tag){case 27:var h=i.stateNode,x=Zf(t);kc(t,x,h);break;case 5:var C=i.stateNode;i.flags&32&&(Al(C,""),i.flags&=-33);var _=Zf(t);kc(t,_,C);break;case 3:case 4:var P=i.stateNode.containerInfo,Q=Zf(t);Wf(t,Q,P);break;default:throw Error(l(161))}}catch(oe){it(t,t.return,oe)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function Vx(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;Vx(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function Rr(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)Bx(t,r.alternate,r),r=r.sibling}function al(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:da(4,r,r.return),al(r);break;case 1:or(r,r.return);var i=r.stateNode;typeof i.componentWillUnmount=="function"&&Ox(r,r.return,i),al(r);break;case 27:Mo(r.stateNode);case 26:case 5:or(r,r.return),al(r);break;case 22:r.memoizedState===null&&al(r);break;case 30:al(r);break;default:al(r)}t=t.sibling}}function Mr(t,r,i){for(i=i&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var c=r.alternate,h=t,x=r,C=x.flags;switch(x.tag){case 0:case 11:case 15:Mr(h,x,i),So(4,x);break;case 1:if(Mr(h,x,i),c=x,h=c.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(Q){it(c,c.return,Q)}if(c=x,h=c.updateQueue,h!==null){var _=c.stateNode;try{var P=h.shared.hiddenCallbacks;if(P!==null)for(h.shared.hiddenCallbacks=null,h=0;h<P.length;h++)wy(P[h],_)}catch(Q){it(c,c.return,Q)}}i&&C&64&&Mx(x),ko(x,x.return);break;case 27:Lx(x);case 26:case 5:Mr(h,x,i),i&&c===null&&C&4&&Dx(x),ko(x,x.return);break;case 12:Mr(h,x,i);break;case 31:Mr(h,x,i),i&&C&4&&Ux(h,x);break;case 13:Mr(h,x,i),i&&C&4&&Hx(h,x);break;case 22:x.memoizedState===null&&Mr(h,x,i),ko(x,x.return);break;case 30:break;default:Mr(h,x,i)}r=r.sibling}}function ep(t,r){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&so(i))}function tp(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&so(t))}function Zn(t,r,i,c){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)qx(t,r,i,c),r=r.sibling}function qx(t,r,i,c){var h=r.flags;switch(r.tag){case 0:case 11:case 15:Zn(t,r,i,c),h&2048&&So(9,r);break;case 1:Zn(t,r,i,c);break;case 3:Zn(t,r,i,c),h&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&so(t)));break;case 12:if(h&2048){Zn(t,r,i,c),t=r.stateNode;try{var x=r.memoizedProps,C=x.id,_=x.onPostCommit;typeof _=="function"&&_(C,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(P){it(r,r.return,P)}}else Zn(t,r,i,c);break;case 31:Zn(t,r,i,c);break;case 13:Zn(t,r,i,c);break;case 23:break;case 22:x=r.stateNode,C=r.alternate,r.memoizedState!==null?x._visibility&2?Zn(t,r,i,c):Co(t,r):x._visibility&2?Zn(t,r,i,c):(x._visibility|=2,Gl(t,r,i,c,(r.subtreeFlags&10256)!==0||!1)),h&2048&&ep(C,r);break;case 24:Zn(t,r,i,c),h&2048&&tp(r.alternate,r);break;default:Zn(t,r,i,c)}}function Gl(t,r,i,c,h){for(h=h&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var x=t,C=r,_=i,P=c,Q=C.flags;switch(C.tag){case 0:case 11:case 15:Gl(x,C,_,P,h),So(8,C);break;case 23:break;case 22:var oe=C.stateNode;C.memoizedState!==null?oe._visibility&2?Gl(x,C,_,P,h):Co(x,C):(oe._visibility|=2,Gl(x,C,_,P,h)),h&&Q&2048&&ep(C.alternate,C);break;case 24:Gl(x,C,_,P,h),h&&Q&2048&&tp(C.alternate,C);break;default:Gl(x,C,_,P,h)}r=r.sibling}}function Co(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var i=t,c=r,h=c.flags;switch(c.tag){case 22:Co(i,c),h&2048&&ep(c.alternate,c);break;case 24:Co(i,c),h&2048&&tp(c.alternate,c);break;default:Co(i,c)}r=r.sibling}}var Eo=8192;function Yl(t,r,i){if(t.subtreeFlags&Eo)for(t=t.child;t!==null;)Gx(t,r,i),t=t.sibling}function Gx(t,r,i){switch(t.tag){case 26:Yl(t,r,i),t.flags&Eo&&t.memoizedState!==null&&bA(i,Qn,t.memoizedState,t.memoizedProps);break;case 5:Yl(t,r,i);break;case 3:case 4:var c=Qn;Qn=Bc(t.stateNode.containerInfo),Yl(t,r,i),Qn=c;break;case 22:t.memoizedState===null&&(c=t.alternate,c!==null&&c.memoizedState!==null?(c=Eo,Eo=16777216,Yl(t,r,i),Eo=c):Yl(t,r,i));break;default:Yl(t,r,i)}}function Yx(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function Ao(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var c=r[i];Lt=c,Kx(c,t)}Yx(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Xx(t),t=t.sibling}function Xx(t){switch(t.tag){case 0:case 11:case 15:Ao(t),t.flags&2048&&da(9,t,t.return);break;case 3:Ao(t);break;case 12:Ao(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,Ec(t)):Ao(t);break;default:Ao(t)}}function Ec(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var c=r[i];Lt=c,Kx(c,t)}Yx(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:da(8,r,r.return),Ec(r);break;case 22:i=r.stateNode,i._visibility&2&&(i._visibility&=-3,Ec(r));break;default:Ec(r)}t=t.sibling}}function Kx(t,r){for(;Lt!==null;){var i=Lt;switch(i.tag){case 0:case 11:case 15:da(8,i,r);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var c=i.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:so(i.memoizedState.cache)}if(c=i.child,c!==null)c.return=i,Lt=c;else e:for(i=t;Lt!==null;){c=Lt;var h=c.sibling,x=c.return;if(Px(c),c===i){Lt=null;break e}if(h!==null){h.return=x,Lt=h;break e}Lt=x}}}var D2={getCacheForType:function(t){var r=Ft(Et),i=r.data.get(t);return i===void 0&&(i=t(),r.data.set(t,i)),i},cacheSignal:function(){return Ft(Et).controller.signal}},z2=typeof WeakMap=="function"?WeakMap:Map,at=0,ut=null,Ye=null,Qe=0,lt=0,Sn=null,fa=!1,Xl=!1,np=!1,Or=0,bt=0,pa=0,ll=0,rp=0,kn=0,Kl=0,No=null,pn=null,ap=!1,Ac=0,Qx=0,Nc=1/0,jc=null,ma=null,Rt=0,ha=null,Ql=null,Dr=0,lp=0,ip=null,Zx=null,jo=0,op=null;function Cn(){return(at&2)!==0&&Qe!==0?Qe&-Qe:I.T!==null?pp():Is()}function Wx(){if(kn===0)if((Qe&536870912)===0||We){var t=Sl;Sl<<=1,(Sl&3932160)===0&&(Sl=262144),kn=t}else kn=536870912;return t=vn.current,t!==null&&(t.flags|=32),kn}function mn(t,r,i){(t===ut&&(lt===2||lt===9)||t.cancelPendingCommit!==null)&&(Zl(t,0),ga(t,Qe,kn,!1)),Ua(t,i),((at&2)===0||t!==ut)&&(t===ut&&((at&2)===0&&(ll|=i),bt===4&&ga(t,Qe,kn,!1)),sr(t))}function Jx(t,r,i){if((at&6)!==0)throw Error(l(327));var c=!i&&(r&127)===0&&(r&t.expiredLanes)===0||Xr(t,r),h=c?B2(t,r):cp(t,r,!0),x=c;do{if(h===0){Xl&&!c&&ga(t,r,0,!1);break}else{if(i=t.current.alternate,x&&!L2(i)){h=cp(t,r,!1),x=!1;continue}if(h===2){if(x=r,t.errorRecoveryDisabledLanes&x)var C=0;else C=t.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){r=C;e:{var _=t;h=No;var P=_.current.memoizedState.isDehydrated;if(P&&(Zl(_,C).flags|=256),C=cp(_,C,!1),C!==2){if(np&&!P){_.errorRecoveryDisabledLanes|=x,ll|=x,h=4;break e}x=pn,pn=h,x!==null&&(pn===null?pn=x:pn.push.apply(pn,x))}h=C}if(x=!1,h!==2)continue}}if(h===1){Zl(t,0),ga(t,r,0,!0);break}e:{switch(c=t,x=h,x){case 0:case 1:throw Error(l(345));case 4:if((r&4194048)!==r)break;case 6:ga(c,r,kn,!fa);break e;case 2:pn=null;break;case 3:case 5:break;default:throw Error(l(329))}if((r&62914560)===r&&(h=Ac+300-vt(),10<h)){if(ga(c,r,kn,!fa),kl(c,0,!0)!==0)break e;Dr=r,c.timeoutHandle=_b(eb.bind(null,c,i,pn,jc,ap,r,kn,ll,Kl,fa,x,"Throttled",-0,0),h);break e}eb(c,i,pn,jc,ap,r,kn,ll,Kl,fa,x,null,-0,0)}}break}while(!0);sr(t)}function eb(t,r,i,c,h,x,C,_,P,Q,oe,fe,W,re){if(t.timeoutHandle=-1,fe=r.subtreeFlags,fe&8192||(fe&16785408)===16785408){fe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:br},Gx(r,x,fe);var Se=(x&62914560)===x?Ac-vt():(x&4194048)===x?Qx-vt():0;if(Se=vA(fe,Se),Se!==null){Dr=x,t.cancelPendingCommit=Se(sb.bind(null,t,r,x,i,c,h,C,_,P,oe,fe,null,W,re)),ga(t,x,C,!Q);return}}sb(t,r,x,i,c,h,C,_,P)}function L2(t){for(var r=t;;){var i=r.tag;if((i===0||i===11||i===15)&&r.flags&16384&&(i=r.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var c=0;c<i.length;c++){var h=i[c],x=h.getSnapshot;h=h.value;try{if(!xn(x(),h))return!1}catch{return!1}}if(i=r.child,r.subtreeFlags&16384&&i!==null)i.return=r,r=i;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function ga(t,r,i,c){r&=~rp,r&=~ll,t.suspendedLanes|=r,t.pingedLanes&=~r,c&&(t.warmLanes|=r),c=t.expirationTimes;for(var h=r;0<h;){var x=31-De(h),C=1<<x;c[x]=-1,h&=~C}i!==0&&Hi(t,i,r)}function Tc(){return(at&6)===0?(To(0),!1):!0}function sp(){if(Ye!==null){if(lt===0)var t=Ye.return;else t=Ye,kr=Qa=null,Cf(t),Ul=null,uo=0,t=Ye;for(;t!==null;)Rx(t.alternate,t),t=t.return;Ye=null}}function Zl(t,r){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,nA(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Dr=0,sp(),ut=t,Ye=i=wr(t.current,null),Qe=r,lt=0,Sn=null,fa=!1,Xl=Xr(t,r),np=!1,Kl=kn=rp=ll=pa=bt=0,pn=No=null,ap=!1,(r&8)!==0&&(r|=r&32);var c=t.entangledLanes;if(c!==0)for(t=t.entanglements,c&=r;0<c;){var h=31-De(c),x=1<<h;r|=t[h],c&=~x}return Or=r,Qs(),i}function tb(t,r){Pe=null,I.H=bo,r===Fl||r===ac?(r=yy(),lt=3):r===ff?(r=yy(),lt=4):lt=r===Ff?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Sn=r,Ye===null&&(bt=1,xc(t,Ln(r,t.current)))}function nb(){var t=vn.current;return t===null?!0:(Qe&4194048)===Qe?Fn===null:(Qe&62914560)===Qe||(Qe&536870912)!==0?t===Fn:!1}function rb(){var t=I.H;return I.H=bo,t===null?bo:t}function ab(){var t=I.A;return I.A=D2,t}function _c(){bt=4,fa||(Qe&4194048)!==Qe&&vn.current!==null||(Xl=!0),(pa&134217727)===0&&(ll&134217727)===0||ut===null||ga(ut,Qe,kn,!1)}function cp(t,r,i){var c=at;at|=2;var h=rb(),x=ab();(ut!==t||Qe!==r)&&(jc=null,Zl(t,r)),r=!1;var C=bt;e:do try{if(lt!==0&&Ye!==null){var _=Ye,P=Sn;switch(lt){case 8:sp(),C=6;break e;case 3:case 2:case 9:case 6:vn.current===null&&(r=!0);var Q=lt;if(lt=0,Sn=null,Wl(t,_,P,Q),i&&Xl){C=0;break e}break;default:Q=lt,lt=0,Sn=null,Wl(t,_,P,Q)}}I2(),C=bt;break}catch(oe){tb(t,oe)}while(!0);return r&&t.shellSuspendCounter++,kr=Qa=null,at=c,I.H=h,I.A=x,Ye===null&&(ut=null,Qe=0,Qs()),C}function I2(){for(;Ye!==null;)lb(Ye)}function B2(t,r){var i=at;at|=2;var c=rb(),h=ab();ut!==t||Qe!==r?(jc=null,Nc=vt()+500,Zl(t,r)):Xl=Xr(t,r);e:do try{if(lt!==0&&Ye!==null){r=Ye;var x=Sn;t:switch(lt){case 1:lt=0,Sn=null,Wl(t,r,x,1);break;case 2:case 9:if(hy(x)){lt=0,Sn=null,ib(r);break}r=function(){lt!==2&<!==9||ut!==t||(lt=7),sr(t)},x.then(r,r);break e;case 3:lt=7;break e;case 4:lt=5;break e;case 7:hy(x)?(lt=0,Sn=null,ib(r)):(lt=0,Sn=null,Wl(t,r,x,7));break;case 5:var C=null;switch(Ye.tag){case 26:C=Ye.memoizedState;case 5:case 27:var _=Ye;if(C?qb(C):_.stateNode.complete){lt=0,Sn=null;var P=_.sibling;if(P!==null)Ye=P;else{var Q=_.return;Q!==null?(Ye=Q,Rc(Q)):Ye=null}break t}}lt=0,Sn=null,Wl(t,r,x,5);break;case 6:lt=0,Sn=null,Wl(t,r,x,6);break;case 8:sp(),bt=6;break e;default:throw Error(l(462))}}P2();break}catch(oe){tb(t,oe)}while(!0);return kr=Qa=null,I.H=c,I.A=h,at=i,Ye!==null?0:(ut=null,Qe=0,Qs(),bt)}function P2(){for(;Ye!==null&&!xr();)lb(Ye)}function lb(t){var r=Tx(t.alternate,t,Or);t.memoizedProps=t.pendingProps,r===null?Rc(t):Ye=r}function ib(t){var r=t,i=r.alternate;switch(r.tag){case 15:case 0:r=kx(i,r,r.pendingProps,r.type,void 0,Qe);break;case 11:r=kx(i,r,r.pendingProps,r.type.render,r.ref,Qe);break;case 5:Cf(r);default:Rx(i,r),r=Ye=ay(r,Or),r=Tx(i,r,Or)}t.memoizedProps=t.pendingProps,r===null?Rc(t):Ye=r}function Wl(t,r,i,c){kr=Qa=null,Cf(r),Ul=null,uo=0;var h=r.return;try{if(N2(t,h,r,i,Qe)){bt=1,xc(t,Ln(i,t.current)),Ye=null;return}}catch(x){if(h!==null)throw Ye=h,x;bt=1,xc(t,Ln(i,t.current)),Ye=null;return}r.flags&32768?(We||c===1?t=!0:Xl||(Qe&536870912)!==0?t=!1:(fa=t=!0,(c===2||c===9||c===3||c===6)&&(c=vn.current,c!==null&&c.tag===13&&(c.flags|=16384))),ob(r,t)):Rc(r)}function Rc(t){var r=t;do{if((r.flags&32768)!==0){ob(r,fa);return}t=r.return;var i=_2(r.alternate,r,Or);if(i!==null){Ye=i;return}if(r=r.sibling,r!==null){Ye=r;return}Ye=r=t}while(r!==null);bt===0&&(bt=5)}function ob(t,r){do{var i=R2(t.alternate,t);if(i!==null){i.flags&=32767,Ye=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!r&&(t=t.sibling,t!==null)){Ye=t;return}Ye=t=i}while(t!==null);bt=6,Ye=null}function sb(t,r,i,c,h,x,C,_,P){t.cancelPendingCommit=null;do Mc();while(Rt!==0);if((at&6)!==0)throw Error(l(327));if(r!==null){if(r===t.current)throw Error(l(177));if(x=r.lanes|r.childLanes,x|=Qd,jd(t,i,x,C,_,P),t===ut&&(Ye=ut=null,Qe=0),Ql=r,ha=t,Dr=i,lp=x,ip=h,Zx=c,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,$2(Oe,function(){return pb(),null})):(t.callbackNode=null,t.callbackPriority=0),c=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||c){c=I.T,I.T=null,h=X.p,X.p=2,C=at,at|=4;try{M2(t,r,i)}finally{at=C,X.p=h,I.T=c}}Rt=1,cb(),ub(),db()}}function cb(){if(Rt===1){Rt=0;var t=ha,r=Ql,i=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||i){i=I.T,I.T=null;var c=X.p;X.p=2;var h=at;at|=4;try{$x(r,t);var x=wp,C=Kg(t.containerInfo),_=x.focusedElem,P=x.selectionRange;if(C!==_&&_&&_.ownerDocument&&Xg(_.ownerDocument.documentElement,_)){if(P!==null&&qd(_)){var Q=P.start,oe=P.end;if(oe===void 0&&(oe=Q),"selectionStart"in _)_.selectionStart=Q,_.selectionEnd=Math.min(oe,_.value.length);else{var fe=_.ownerDocument||document,W=fe&&fe.defaultView||window;if(W.getSelection){var re=W.getSelection(),Se=_.textContent.length,Me=Math.min(P.start,Se),ct=P.end===void 0?Me:Math.min(P.end,Se);!re.extend&&Me>ct&&(C=ct,ct=Me,Me=C);var V=Yg(_,Me),$=Yg(_,ct);if(V&&$&&(re.rangeCount!==1||re.anchorNode!==V.node||re.anchorOffset!==V.offset||re.focusNode!==$.node||re.focusOffset!==$.offset)){var K=fe.createRange();K.setStart(V.node,V.offset),re.removeAllRanges(),Me>ct?(re.addRange(K),re.extend($.node,$.offset)):(K.setEnd($.node,$.offset),re.addRange(K))}}}}for(fe=[],re=_;re=re.parentNode;)re.nodeType===1&&fe.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<fe.length;_++){var ue=fe[_];ue.element.scrollLeft=ue.left,ue.element.scrollTop=ue.top}}Vc=!!vp,wp=vp=null}finally{at=h,X.p=c,I.T=i}}t.current=r,Rt=2}}function ub(){if(Rt===2){Rt=0;var t=ha,r=Ql,i=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||i){i=I.T,I.T=null;var c=X.p;X.p=2;var h=at;at|=4;try{Bx(t,r.alternate,r)}finally{at=h,X.p=c,I.T=i}}Rt=3}}function db(){if(Rt===4||Rt===3){Rt=0,Bi();var t=ha,r=Ql,i=Dr,c=Zx;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?Rt=5:(Rt=0,Ql=ha=null,fb(t,t.pendingLanes));var h=t.pendingLanes;if(h===0&&(ma=null),$i(i),r=r.stateNode,yt&&typeof yt.onCommitFiberRoot=="function")try{yt.onCommitFiberRoot(qt,r,void 0,(r.current.flags&128)===128)}catch{}if(c!==null){r=I.T,h=X.p,X.p=2,I.T=null;try{for(var x=t.onRecoverableError,C=0;C<c.length;C++){var _=c[C];x(_.value,{componentStack:_.stack})}}finally{I.T=r,X.p=h}}(Dr&3)!==0&&Mc(),sr(t),h=t.pendingLanes,(i&261930)!==0&&(h&42)!==0?t===op?jo++:(jo=0,op=t):jo=0,To(0)}}function fb(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,so(r)))}function Mc(){return cb(),ub(),db(),pb()}function pb(){if(Rt!==5)return!1;var t=ha,r=lp;lp=0;var i=$i(Dr),c=I.T,h=X.p;try{X.p=32>i?32:i,I.T=null,i=ip,ip=null;var x=ha,C=Dr;if(Rt=0,Ql=ha=null,Dr=0,(at&6)!==0)throw Error(l(331));var _=at;if(at|=4,Xx(x.current),qx(x,x.current,C,i),at=_,To(0,!1),yt&&typeof yt.onPostCommitFiberRoot=="function")try{yt.onPostCommitFiberRoot(qt,x)}catch{}return!0}finally{X.p=h,I.T=c,fb(t,r)}}function mb(t,r,i){r=Ln(i,r),r=Pf(t.stateNode,r,2),t=sa(t,r,2),t!==null&&(Ua(t,2),sr(t))}function it(t,r,i){if(t.tag===3)mb(t,t,i);else for(;r!==null;){if(r.tag===3){mb(r,t,i);break}else if(r.tag===1){var c=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(ma===null||!ma.has(c))){t=Ln(i,t),i=hx(2),c=sa(r,i,2),c!==null&&(gx(i,c,r,t),Ua(c,2),sr(c));break}}r=r.return}}function up(t,r,i){var c=t.pingCache;if(c===null){c=t.pingCache=new z2;var h=new Set;c.set(r,h)}else h=c.get(r),h===void 0&&(h=new Set,c.set(r,h));h.has(i)||(np=!0,h.add(i),t=F2.bind(null,t,r,i),r.then(t,t))}function F2(t,r,i){var c=t.pingCache;c!==null&&c.delete(r),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,ut===t&&(Qe&i)===i&&(bt===4||bt===3&&(Qe&62914560)===Qe&&300>vt()-Ac?(at&2)===0&&Zl(t,0):rp|=i,Kl===Qe&&(Kl=0)),sr(t)}function hb(t,r){r===0&&(r=Fi()),t=Ya(t,r),t!==null&&(Ua(t,r),sr(t))}function U2(t){var r=t.memoizedState,i=0;r!==null&&(i=r.retryLane),hb(t,i)}function H2(t,r){var i=0;switch(t.tag){case 31:case 13:var c=t.stateNode,h=t.memoizedState;h!==null&&(i=h.retryLane);break;case 19:c=t.stateNode;break;case 22:c=t.stateNode._retryCache;break;default:throw Error(l(314))}c!==null&&c.delete(r),hb(t,i)}function $2(t,r){return ln(t,r)}var Oc=null,Jl=null,dp=!1,Dc=!1,fp=!1,ya=0;function sr(t){t!==Jl&&t.next===null&&(Jl===null?Oc=Jl=t:Jl=Jl.next=t),Dc=!0,dp||(dp=!0,q2())}function To(t,r){if(!fp&&Dc){fp=!0;do for(var i=!1,c=Oc;c!==null;){if(t!==0){var h=c.pendingLanes;if(h===0)var x=0;else{var C=c.suspendedLanes,_=c.pingedLanes;x=(1<<31-De(42|t)+1)-1,x&=h&~(C&~_),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(i=!0,bb(c,x))}else x=Qe,x=kl(c,c===ut?x:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(x&3)===0||Xr(c,x)||(i=!0,bb(c,x));c=c.next}while(i);fp=!1}}function V2(){gb()}function gb(){Dc=dp=!1;var t=0;ya!==0&&tA()&&(t=ya);for(var r=vt(),i=null,c=Oc;c!==null;){var h=c.next,x=yb(c,r);x===0?(c.next=null,i===null?Oc=h:i.next=h,h===null&&(Jl=i)):(i=c,(t!==0||(x&3)!==0)&&(Dc=!0)),c=h}Rt!==0&&Rt!==5||To(t),ya!==0&&(ya=0)}function yb(t,r){for(var i=t.suspendedLanes,c=t.pingedLanes,h=t.expirationTimes,x=t.pendingLanes&-62914561;0<x;){var C=31-De(x),_=1<<C,P=h[C];P===-1?((_&i)===0||(_&c)!==0)&&(h[C]=Nd(_,r)):P<=r&&(t.expiredLanes|=_),x&=~_}if(r=ut,i=Qe,i=kl(t,t===r?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),c=t.callbackNode,i===0||t===r&&(lt===2||lt===9)||t.cancelPendingCommit!==null)return c!==null&&c!==null&&on(c),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||Xr(t,i)){if(r=i&-i,r===t.callbackPriority)return r;switch(c!==null&&on(c),$i(i)){case 2:case 8:i=xe;break;case 32:i=Oe;break;case 268435456:i=tt;break;default:i=Oe}return c=xb.bind(null,t),i=ln(i,c),t.callbackPriority=r,t.callbackNode=i,r}return c!==null&&c!==null&&on(c),t.callbackPriority=2,t.callbackNode=null,2}function xb(t,r){if(Rt!==0&&Rt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(Mc()&&t.callbackNode!==i)return null;var c=Qe;return c=kl(t,t===ut?c:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),c===0?null:(Jx(t,c,r),yb(t,vt()),t.callbackNode!=null&&t.callbackNode===i?xb.bind(null,t):null)}function bb(t,r){if(Mc())return null;Jx(t,r,!0)}function q2(){rA(function(){(at&6)!==0?ln(se,V2):gb()})}function pp(){if(ya===0){var t=Bl;t===0&&(t=On,On<<=1,(On&261888)===0&&(On=256)),ya=t}return ya}function vb(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Hs(""+t)}function wb(t,r){var i=r.ownerDocument.createElement("input");return i.name=r.name,i.value=r.value,t.id&&i.setAttribute("form",t.id),r.parentNode.insertBefore(i,r),t=new FormData(t),i.parentNode.removeChild(i),t}function G2(t,r,i,c,h){if(r==="submit"&&i&&i.stateNode===h){var x=vb((h[Yt]||null).action),C=c.submitter;C&&(r=(r=C[Yt]||null)?vb(r.formAction):C.getAttribute("formAction"),r!==null&&(x=r,C=null));var _=new Gs("action","action",null,c,h);t.push({event:_,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(ya!==0){var P=C?wb(h,C):new FormData(h);Of(i,{pending:!0,data:P,method:h.method,action:x},null,P)}}else typeof x=="function"&&(_.preventDefault(),P=C?wb(h,C):new FormData(h),Of(i,{pending:!0,data:P,method:h.method,action:x},x,P))},currentTarget:h}]})}}for(var mp=0;mp<Kd.length;mp++){var hp=Kd[mp],Y2=hp.toLowerCase(),X2=hp[0].toUpperCase()+hp.slice(1);Kn(Y2,"on"+X2)}Kn(Wg,"onAnimationEnd"),Kn(Jg,"onAnimationIteration"),Kn(ey,"onAnimationStart"),Kn("dblclick","onDoubleClick"),Kn("focusin","onFocus"),Kn("focusout","onBlur"),Kn(u2,"onTransitionRun"),Kn(d2,"onTransitionStart"),Kn(f2,"onTransitionCancel"),Kn(ty,"onTransitionEnd"),ea("onMouseEnter",["mouseout","mouseover"]),ea("onMouseLeave",["mouseout","mouseover"]),ea("onPointerEnter",["pointerout","pointerover"]),ea("onPointerLeave",["pointerout","pointerover"]),Xt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _o="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(" "),K2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_o));function Sb(t,r){r=(r&4)!==0;for(var i=0;i<t.length;i++){var c=t[i],h=c.event;c=c.listeners;e:{var x=void 0;if(r)for(var C=c.length-1;0<=C;C--){var _=c[C],P=_.instance,Q=_.currentTarget;if(_=_.listener,P!==x&&h.isPropagationStopped())break e;x=_,h.currentTarget=Q;try{x(h)}catch(oe){Ks(oe)}h.currentTarget=null,x=P}else for(C=0;C<c.length;C++){if(_=c[C],P=_.instance,Q=_.currentTarget,_=_.listener,P!==x&&h.isPropagationStopped())break e;x=_,h.currentTarget=Q;try{x(h)}catch(oe){Ks(oe)}h.currentTarget=null,x=P}}}}function Xe(t,r){var i=r[Vi];i===void 0&&(i=r[Vi]=new Set);var c=t+"__bubble";i.has(c)||(kb(r,t,2,!1),i.add(c))}function gp(t,r,i){var c=0;r&&(c|=4),kb(i,t,c,r)}var zc="_reactListening"+Math.random().toString(36).slice(2);function yp(t){if(!t[zc]){t[zc]=!0,Yi.forEach(function(i){i!=="selectionchange"&&(K2.has(i)||gp(i,!1,t),gp(i,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[zc]||(r[zc]=!0,gp("selectionchange",!1,r))}}function kb(t,r,i,c){switch(Wb(r)){case 2:var h=kA;break;case 8:h=CA;break;default:h=Mp}i=h.bind(null,r,i,t),h=void 0,!Ld||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(h=!0),c?h!==void 0?t.addEventListener(r,i,{capture:!0,passive:h}):t.addEventListener(r,i,!0):h!==void 0?t.addEventListener(r,i,{passive:h}):t.addEventListener(r,i,!1)}function xp(t,r,i,c,h){var x=c;if((r&1)===0&&(r&2)===0&&c!==null)e:for(;;){if(c===null)return;var C=c.tag;if(C===3||C===4){var _=c.stateNode.containerInfo;if(_===h)break;if(C===4)for(C=c.return;C!==null;){var P=C.tag;if((P===3||P===4)&&C.stateNode.containerInfo===h)return;C=C.return}for(;_!==null;){if(C=Zr(_),C===null)return;if(P=C.tag,P===5||P===6||P===26||P===27){c=x=C;continue e}_=_.parentNode}}c=c.return}jg(function(){var Q=x,oe=Dd(i),fe=[];e:{var W=ny.get(t);if(W!==void 0){var re=Gs,Se=t;switch(t){case"keypress":if(Vs(i)===0)break e;case"keydown":case"keyup":re=HE;break;case"focusin":Se="focus",re=Fd;break;case"focusout":Se="blur",re=Fd;break;case"beforeblur":case"afterblur":re=Fd;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":re=Rg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=_E;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=qE;break;case Wg:case Jg:case ey:re=OE;break;case ty:re=YE;break;case"scroll":case"scrollend":re=jE;break;case"wheel":re=KE;break;case"copy":case"cut":case"paste":re=zE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=Og;break;case"toggle":case"beforetoggle":re=ZE}var Me=(r&4)!==0,ct=!Me&&(t==="scroll"||t==="scrollend"),V=Me?W!==null?W+"Capture":null:W;Me=[];for(var $=Q,K;$!==null;){var ue=$;if(K=ue.stateNode,ue=ue.tag,ue!==5&&ue!==26&&ue!==27||K===null||V===null||(ue=Zi($,V),ue!=null&&Me.push(Ro($,ue,K))),ct)break;$=$.return}0<Me.length&&(W=new re(W,Se,null,i,oe),fe.push({event:W,listeners:Me}))}}if((r&7)===0){e:{if(W=t==="mouseover"||t==="pointerover",re=t==="mouseout"||t==="pointerout",W&&i!==Od&&(Se=i.relatedTarget||i.fromElement)&&(Zr(Se)||Se[Qr]))break e;if((re||W)&&(W=oe.window===oe?oe:(W=oe.ownerDocument)?W.defaultView||W.parentWindow:window,re?(Se=i.relatedTarget||i.toElement,re=Q,Se=Se?Zr(Se):null,Se!==null&&(ct=s(Se),Me=Se.tag,Se!==ct||Me!==5&&Me!==27&&Me!==6)&&(Se=null)):(re=null,Se=Q),re!==Se)){if(Me=Rg,ue="onMouseLeave",V="onMouseEnter",$="mouse",(t==="pointerout"||t==="pointerover")&&(Me=Og,ue="onPointerLeave",V="onPointerEnter",$="pointer"),ct=re==null?W:$a(re),K=Se==null?W:$a(Se),W=new Me(ue,$+"leave",re,i,oe),W.target=ct,W.relatedTarget=K,ue=null,Zr(oe)===Q&&(Me=new Me(V,$+"enter",Se,i,oe),Me.target=K,Me.relatedTarget=ct,ue=Me),ct=ue,re&&Se)t:{for(Me=Q2,V=re,$=Se,K=0,ue=V;ue;ue=Me(ue))K++;ue=0;for(var _e=$;_e;_e=Me(_e))ue++;for(;0<K-ue;)V=Me(V),K--;for(;0<ue-K;)$=Me($),ue--;for(;K--;){if(V===$||$!==null&&V===$.alternate){Me=V;break t}V=Me(V),$=Me($)}Me=null}else Me=null;re!==null&&Cb(fe,W,re,Me,!1),Se!==null&&ct!==null&&Cb(fe,ct,Se,Me,!0)}}e:{if(W=Q?$a(Q):window,re=W.nodeName&&W.nodeName.toLowerCase(),re==="select"||re==="input"&&W.type==="file")var nt=Ug;else if(Pg(W))if(Hg)nt=o2;else{nt=l2;var Ee=a2}else re=W.nodeName,!re||re.toLowerCase()!=="input"||W.type!=="checkbox"&&W.type!=="radio"?Q&&Md(Q.elementType)&&(nt=Ug):nt=i2;if(nt&&(nt=nt(t,Q))){Fg(fe,nt,i,oe);break e}Ee&&Ee(t,W,Q),t==="focusout"&&Q&&W.type==="number"&&Q.memoizedProps.value!=null&&Rd(W,"number",W.value)}switch(Ee=Q?$a(Q):window,t){case"focusin":(Pg(Ee)||Ee.contentEditable==="true")&&(_l=Ee,Gd=Q,lo=null);break;case"focusout":lo=Gd=_l=null;break;case"mousedown":Yd=!0;break;case"contextmenu":case"mouseup":case"dragend":Yd=!1,Qg(fe,i,oe);break;case"selectionchange":if(c2)break;case"keydown":case"keyup":Qg(fe,i,oe)}var Fe;if(Hd)e:{switch(t){case"compositionstart":var Ze="onCompositionStart";break e;case"compositionend":Ze="onCompositionEnd";break e;case"compositionupdate":Ze="onCompositionUpdate";break e}Ze=void 0}else Tl?Ig(t,i)&&(Ze="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Ze="onCompositionStart");Ze&&(Dg&&i.locale!=="ko"&&(Tl||Ze!=="onCompositionStart"?Ze==="onCompositionEnd"&&Tl&&(Fe=Tg()):(ta=oe,Id="value"in ta?ta.value:ta.textContent,Tl=!0)),Ee=Lc(Q,Ze),0<Ee.length&&(Ze=new Mg(Ze,t,null,i,oe),fe.push({event:Ze,listeners:Ee}),Fe?Ze.data=Fe:(Fe=Bg(i),Fe!==null&&(Ze.data=Fe)))),(Fe=JE?e2(t,i):t2(t,i))&&(Ze=Lc(Q,"onBeforeInput"),0<Ze.length&&(Ee=new Mg("onBeforeInput","beforeinput",null,i,oe),fe.push({event:Ee,listeners:Ze}),Ee.data=Fe)),G2(fe,t,Q,i,oe)}Sb(fe,r)})}function Ro(t,r,i){return{instance:t,listener:r,currentTarget:i}}function Lc(t,r){for(var i=r+"Capture",c=[];t!==null;){var h=t,x=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||x===null||(h=Zi(t,i),h!=null&&c.unshift(Ro(t,h,x)),h=Zi(t,r),h!=null&&c.push(Ro(t,h,x))),t.tag===3)return c;t=t.return}return[]}function Q2(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Cb(t,r,i,c,h){for(var x=r._reactName,C=[];i!==null&&i!==c;){var _=i,P=_.alternate,Q=_.stateNode;if(_=_.tag,P!==null&&P===c)break;_!==5&&_!==26&&_!==27||Q===null||(P=Q,h?(Q=Zi(i,x),Q!=null&&C.unshift(Ro(i,Q,P))):h||(Q=Zi(i,x),Q!=null&&C.push(Ro(i,Q,P)))),i=i.return}C.length!==0&&t.push({event:r,listeners:C})}var Z2=/\r\n?/g,W2=/\u0000|\uFFFD/g;function Eb(t){return(typeof t=="string"?t:""+t).replace(Z2,`
|
|
49
|
+
`).replace(W2,"")}function Ab(t,r){return r=Eb(r),Eb(t)===r}function st(t,r,i,c,h,x){switch(i){case"children":typeof c=="string"?r==="body"||r==="textarea"&&c===""||Al(t,c):(typeof c=="number"||typeof c=="bigint")&&r!=="body"&&Al(t,""+c);break;case"className":we(t,"class",c);break;case"tabIndex":we(t,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":we(t,i,c);break;case"style":Ag(t,c,x);break;case"data":if(r!=="object"){we(t,"data",c);break}case"src":case"href":if(c===""&&(r!=="a"||i!=="href")){t.removeAttribute(i);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(i);break}c=Hs(""+c),t.setAttribute(i,c);break;case"action":case"formAction":if(typeof c=="function"){t.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof x=="function"&&(i==="formAction"?(r!=="input"&&st(t,r,"name",h.name,h,null),st(t,r,"formEncType",h.formEncType,h,null),st(t,r,"formMethod",h.formMethod,h,null),st(t,r,"formTarget",h.formTarget,h,null)):(st(t,r,"encType",h.encType,h,null),st(t,r,"method",h.method,h,null),st(t,r,"target",h.target,h,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(i);break}c=Hs(""+c),t.setAttribute(i,c);break;case"onClick":c!=null&&(t.onclick=br);break;case"onScroll":c!=null&&Xe("scroll",t);break;case"onScrollEnd":c!=null&&Xe("scrollend",t);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(l(61));if(i=c.__html,i!=null){if(h.children!=null)throw Error(l(60));t.innerHTML=i}}break;case"multiple":t.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":t.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){t.removeAttribute("xlink:href");break}i=Hs(""+c),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(i,""+c):t.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":c===!0?t.setAttribute(i,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(i,c):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?t.setAttribute(i,c):t.removeAttribute(i);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?t.removeAttribute(i):t.setAttribute(i,c);break;case"popover":Xe("beforetoggle",t),Xe("toggle",t),H(t,"popover",c);break;case"xlinkActuate":ce(t,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":ce(t,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":ce(t,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":ce(t,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":ce(t,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":ce(t,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":ce(t,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":ce(t,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":ce(t,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":H(t,"is",c);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=AE.get(i)||i,H(t,i,c))}}function bp(t,r,i,c,h,x){switch(i){case"style":Ag(t,c,x);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(l(61));if(i=c.__html,i!=null){if(h.children!=null)throw Error(l(60));t.innerHTML=i}}break;case"children":typeof c=="string"?Al(t,c):(typeof c=="number"||typeof c=="bigint")&&Al(t,""+c);break;case"onScroll":c!=null&&Xe("scroll",t);break;case"onScrollEnd":c!=null&&Xe("scrollend",t);break;case"onClick":c!=null&&(t.onclick=br);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ps.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(h=i.endsWith("Capture"),r=i.slice(2,h?i.length-7:void 0),x=t[Yt]||null,x=x!=null?x[i]:null,typeof x=="function"&&t.removeEventListener(r,x,h),typeof c=="function")){typeof x!="function"&&x!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(r,c,h);break e}i in t?t[i]=c:c===!0?t.setAttribute(i,""):H(t,i,c)}}}function Ht(t,r,i){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xe("error",t),Xe("load",t);var c=!1,h=!1,x;for(x in i)if(i.hasOwnProperty(x)){var C=i[x];if(C!=null)switch(x){case"src":c=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,r));default:st(t,r,x,C,i,null)}}h&&st(t,r,"srcSet",i.srcSet,i,null),c&&st(t,r,"src",i.src,i,null);return;case"input":Xe("invalid",t);var _=x=C=h=null,P=null,Q=null;for(c in i)if(i.hasOwnProperty(c)){var oe=i[c];if(oe!=null)switch(c){case"name":h=oe;break;case"type":C=oe;break;case"checked":P=oe;break;case"defaultChecked":Q=oe;break;case"value":x=oe;break;case"defaultValue":_=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(l(137,r));break;default:st(t,r,c,oe,i,null)}}Sg(t,x,_,P,Q,C,h,!1);return;case"select":Xe("invalid",t),c=C=x=null;for(h in i)if(i.hasOwnProperty(h)&&(_=i[h],_!=null))switch(h){case"value":x=_;break;case"defaultValue":C=_;break;case"multiple":c=_;default:st(t,r,h,_,i,null)}r=x,i=C,t.multiple=!!c,r!=null?El(t,!!c,r,!1):i!=null&&El(t,!!c,i,!0);return;case"textarea":Xe("invalid",t),x=h=c=null;for(C in i)if(i.hasOwnProperty(C)&&(_=i[C],_!=null))switch(C){case"value":c=_;break;case"defaultValue":h=_;break;case"children":x=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(l(91));break;default:st(t,r,C,_,i,null)}Cg(t,c,h,x);return;case"option":for(P in i)if(i.hasOwnProperty(P)&&(c=i[P],c!=null))switch(P){case"selected":t.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:st(t,r,P,c,i,null)}return;case"dialog":Xe("beforetoggle",t),Xe("toggle",t),Xe("cancel",t),Xe("close",t);break;case"iframe":case"object":Xe("load",t);break;case"video":case"audio":for(c=0;c<_o.length;c++)Xe(_o[c],t);break;case"image":Xe("error",t),Xe("load",t);break;case"details":Xe("toggle",t);break;case"embed":case"source":case"link":Xe("error",t),Xe("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Q in i)if(i.hasOwnProperty(Q)&&(c=i[Q],c!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,r));default:st(t,r,Q,c,i,null)}return;default:if(Md(r)){for(oe in i)i.hasOwnProperty(oe)&&(c=i[oe],c!==void 0&&bp(t,r,oe,c,i,void 0));return}}for(_ in i)i.hasOwnProperty(_)&&(c=i[_],c!=null&&st(t,r,_,c,i,null))}function J2(t,r,i,c){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,x=null,C=null,_=null,P=null,Q=null,oe=null;for(re in i){var fe=i[re];if(i.hasOwnProperty(re)&&fe!=null)switch(re){case"checked":break;case"value":break;case"defaultValue":P=fe;default:c.hasOwnProperty(re)||st(t,r,re,null,c,fe)}}for(var W in c){var re=c[W];if(fe=i[W],c.hasOwnProperty(W)&&(re!=null||fe!=null))switch(W){case"type":x=re;break;case"name":h=re;break;case"checked":Q=re;break;case"defaultChecked":oe=re;break;case"value":C=re;break;case"defaultValue":_=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(l(137,r));break;default:re!==fe&&st(t,r,W,re,c,fe)}}Qi(t,C,_,P,Q,oe,x,h);return;case"select":re=C=_=W=null;for(x in i)if(P=i[x],i.hasOwnProperty(x)&&P!=null)switch(x){case"value":break;case"multiple":re=P;default:c.hasOwnProperty(x)||st(t,r,x,null,c,P)}for(h in c)if(x=c[h],P=i[h],c.hasOwnProperty(h)&&(x!=null||P!=null))switch(h){case"value":W=x;break;case"defaultValue":_=x;break;case"multiple":C=x;default:x!==P&&st(t,r,h,x,c,P)}r=_,i=C,c=re,W!=null?El(t,!!i,W,!1):!!c!=!!i&&(r!=null?El(t,!!i,r,!0):El(t,!!i,i?[]:"",!1));return;case"textarea":re=W=null;for(_ in i)if(h=i[_],i.hasOwnProperty(_)&&h!=null&&!c.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:st(t,r,_,null,c,h)}for(C in c)if(h=c[C],x=i[C],c.hasOwnProperty(C)&&(h!=null||x!=null))switch(C){case"value":W=h;break;case"defaultValue":re=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(l(91));break;default:h!==x&&st(t,r,C,h,c,x)}kg(t,W,re);return;case"option":for(var Se in i)if(W=i[Se],i.hasOwnProperty(Se)&&W!=null&&!c.hasOwnProperty(Se))switch(Se){case"selected":t.selected=!1;break;default:st(t,r,Se,null,c,W)}for(P in c)if(W=c[P],re=i[P],c.hasOwnProperty(P)&&W!==re&&(W!=null||re!=null))switch(P){case"selected":t.selected=W&&typeof W!="function"&&typeof W!="symbol";break;default:st(t,r,P,W,c,re)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Me in i)W=i[Me],i.hasOwnProperty(Me)&&W!=null&&!c.hasOwnProperty(Me)&&st(t,r,Me,null,c,W);for(Q in c)if(W=c[Q],re=i[Q],c.hasOwnProperty(Q)&&W!==re&&(W!=null||re!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(l(137,r));break;default:st(t,r,Q,W,c,re)}return;default:if(Md(r)){for(var ct in i)W=i[ct],i.hasOwnProperty(ct)&&W!==void 0&&!c.hasOwnProperty(ct)&&bp(t,r,ct,void 0,c,W);for(oe in c)W=c[oe],re=i[oe],!c.hasOwnProperty(oe)||W===re||W===void 0&&re===void 0||bp(t,r,oe,W,c,re);return}}for(var V in i)W=i[V],i.hasOwnProperty(V)&&W!=null&&!c.hasOwnProperty(V)&&st(t,r,V,null,c,W);for(fe in c)W=c[fe],re=i[fe],!c.hasOwnProperty(fe)||W===re||W==null&&re==null||st(t,r,fe,W,c,re)}function Nb(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function eA(){if(typeof performance.getEntriesByType=="function"){for(var t=0,r=0,i=performance.getEntriesByType("resource"),c=0;c<i.length;c++){var h=i[c],x=h.transferSize,C=h.initiatorType,_=h.duration;if(x&&_&&Nb(C)){for(C=0,_=h.responseEnd,c+=1;c<i.length;c++){var P=i[c],Q=P.startTime;if(Q>_)break;var oe=P.transferSize,fe=P.initiatorType;oe&&Nb(fe)&&(P=P.responseEnd,C+=oe*(P<_?1:(_-Q)/(P-Q)))}if(--c,r+=8*(x+C)/(h.duration/1e3),t++,10<t)break}}if(0<t)return r/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var vp=null,wp=null;function Ic(t){return t.nodeType===9?t:t.ownerDocument}function jb(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Tb(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function Sp(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var kp=null;function tA(){var t=window.event;return t&&t.type==="popstate"?t===kp?!1:(kp=t,!0):(kp=null,!1)}var _b=typeof setTimeout=="function"?setTimeout:void 0,nA=typeof clearTimeout=="function"?clearTimeout:void 0,Rb=typeof Promise=="function"?Promise:void 0,rA=typeof queueMicrotask=="function"?queueMicrotask:typeof Rb<"u"?function(t){return Rb.resolve(null).then(t).catch(aA)}:_b;function aA(t){setTimeout(function(){throw t})}function xa(t){return t==="head"}function Mb(t,r){var i=r,c=0;do{var h=i.nextSibling;if(t.removeChild(i),h&&h.nodeType===8)if(i=h.data,i==="/$"||i==="/&"){if(c===0){t.removeChild(h),ri(r);return}c--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")c++;else if(i==="html")Mo(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,Mo(i);for(var x=i.firstChild;x;){var C=x.nextSibling,_=x.nodeName;x[Ha]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&x.rel.toLowerCase()==="stylesheet"||i.removeChild(x),x=C}}else i==="body"&&Mo(t.ownerDocument.body);i=h}while(i);ri(r)}function Ob(t,r){var i=t;t=0;do{var c=i.nextSibling;if(i.nodeType===1?r?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(r?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),c&&c.nodeType===8)if(i=c.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=c}while(i)}function Cp(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var i=r;switch(r=r.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Cp(i),Gi(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function lA(t,r,i,c){for(;t.nodeType===1;){var h=i;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!c&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(c){if(!t[Ha])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(x=t.getAttribute("rel"),x==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(x!==h.rel||t.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||t.getAttribute("title")!==(h.title==null?null:h.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(x=t.getAttribute("src"),(x!==(h.src==null?null:h.src)||t.getAttribute("type")!==(h.type==null?null:h.type)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&x&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var x=h.name==null?null:""+h.name;if(h.type==="hidden"&&t.getAttribute("name")===x)return t}else return t;if(t=Un(t.nextSibling),t===null)break}return null}function iA(t,r,i){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Un(t.nextSibling),t===null))return null;return t}function Db(t,r){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!r||(t=Un(t.nextSibling),t===null))return null;return t}function Ep(t){return t.data==="$?"||t.data==="$~"}function Ap(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function oA(t,r){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=r;else if(t.data!=="$?"||i.readyState!=="loading")r();else{var c=function(){r(),i.removeEventListener("DOMContentLoaded",c)};i.addEventListener("DOMContentLoaded",c),t._reactRetry=c}}function Un(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return t}var Np=null;function zb(t){t=t.nextSibling;for(var r=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(r===0)return Un(t.nextSibling);r--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||r++}t=t.nextSibling}return null}function Lb(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(r===0)return t;r--}else i!=="/$"&&i!=="/&"||r++}t=t.previousSibling}return null}function Ib(t,r,i){switch(r=Ic(i),t){case"html":if(t=r.documentElement,!t)throw Error(l(452));return t;case"head":if(t=r.head,!t)throw Error(l(453));return t;case"body":if(t=r.body,!t)throw Error(l(454));return t;default:throw Error(l(451))}}function Mo(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Gi(t)}var Hn=new Map,Bb=new Set;function Bc(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var zr=X.d;X.d={f:sA,r:cA,D:uA,C:dA,L:fA,m:pA,X:hA,S:mA,M:gA};function sA(){var t=zr.f(),r=Tc();return t||r}function cA(t){var r=Wr(t);r!==null&&r.tag===5&&r.type==="form"?tx(r):zr.r(t)}var ei=typeof document>"u"?null:document;function Pb(t,r,i){var c=ei;if(c&&typeof r=="string"&&r){var h=Kt(r);h='link[rel="'+t+'"][href="'+h+'"]',typeof i=="string"&&(h+='[crossorigin="'+i+'"]'),Bb.has(h)||(Bb.add(h),t={rel:t,crossOrigin:i,href:r},c.querySelector(h)===null&&(r=c.createElement("link"),Ht(r,"link",t),wt(r),c.head.appendChild(r)))}}function uA(t){zr.D(t),Pb("dns-prefetch",t,null)}function dA(t,r){zr.C(t,r),Pb("preconnect",t,r)}function fA(t,r,i){zr.L(t,r,i);var c=ei;if(c&&t&&r){var h='link[rel="preload"][as="'+Kt(r)+'"]';r==="image"&&i&&i.imageSrcSet?(h+='[imagesrcset="'+Kt(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(h+='[imagesizes="'+Kt(i.imageSizes)+'"]')):h+='[href="'+Kt(t)+'"]';var x=h;switch(r){case"style":x=ti(t);break;case"script":x=ni(t)}Hn.has(x)||(t=g({rel:"preload",href:r==="image"&&i&&i.imageSrcSet?void 0:t,as:r},i),Hn.set(x,t),c.querySelector(h)!==null||r==="style"&&c.querySelector(Oo(x))||r==="script"&&c.querySelector(Do(x))||(r=c.createElement("link"),Ht(r,"link",t),wt(r),c.head.appendChild(r)))}}function pA(t,r){zr.m(t,r);var i=ei;if(i&&t){var c=r&&typeof r.as=="string"?r.as:"script",h='link[rel="modulepreload"][as="'+Kt(c)+'"][href="'+Kt(t)+'"]',x=h;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=ni(t)}if(!Hn.has(x)&&(t=g({rel:"modulepreload",href:t},r),Hn.set(x,t),i.querySelector(h)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Do(x)))return}c=i.createElement("link"),Ht(c,"link",t),wt(c),i.head.appendChild(c)}}}function mA(t,r,i){zr.S(t,r,i);var c=ei;if(c&&t){var h=Jr(c).hoistableStyles,x=ti(t);r=r||"default";var C=h.get(x);if(!C){var _={loading:0,preload:null};if(C=c.querySelector(Oo(x)))_.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":r},i),(i=Hn.get(x))&&jp(t,i);var P=C=c.createElement("link");wt(P),Ht(P,"link",t),P._p=new Promise(function(Q,oe){P.onload=Q,P.onerror=oe}),P.addEventListener("load",function(){_.loading|=1}),P.addEventListener("error",function(){_.loading|=2}),_.loading|=4,Pc(C,r,c)}C={type:"stylesheet",instance:C,count:1,state:_},h.set(x,C)}}}function hA(t,r){zr.X(t,r);var i=ei;if(i&&t){var c=Jr(i).hoistableScripts,h=ni(t),x=c.get(h);x||(x=i.querySelector(Do(h)),x||(t=g({src:t,async:!0},r),(r=Hn.get(h))&&Tp(t,r),x=i.createElement("script"),wt(x),Ht(x,"link",t),i.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},c.set(h,x))}}function gA(t,r){zr.M(t,r);var i=ei;if(i&&t){var c=Jr(i).hoistableScripts,h=ni(t),x=c.get(h);x||(x=i.querySelector(Do(h)),x||(t=g({src:t,async:!0,type:"module"},r),(r=Hn.get(h))&&Tp(t,r),x=i.createElement("script"),wt(x),Ht(x,"link",t),i.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},c.set(h,x))}}function Fb(t,r,i,c){var h=(h=le.current)?Bc(h):null;if(!h)throw Error(l(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(r=ti(i.href),i=Jr(h).hoistableStyles,c=i.get(r),c||(c={type:"style",instance:null,count:0,state:null},i.set(r,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=ti(i.href);var x=Jr(h).hoistableStyles,C=x.get(t);if(C||(h=h.ownerDocument||h,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(t,C),(x=h.querySelector(Oo(t)))&&!x._p&&(C.instance=x,C.state.loading=5),Hn.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Hn.set(t,i),x||yA(h,t,i,C.state))),r&&c===null)throw Error(l(528,""));return C}if(r&&c!==null)throw Error(l(529,""));return null;case"script":return r=i.async,i=i.src,typeof i=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=ni(i),i=Jr(h).hoistableScripts,c=i.get(r),c||(c={type:"script",instance:null,count:0,state:null},i.set(r,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,t))}}function ti(t){return'href="'+Kt(t)+'"'}function Oo(t){return'link[rel="stylesheet"]['+t+"]"}function Ub(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function yA(t,r,i,c){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?c.loading=1:(r=t.createElement("link"),c.preload=r,r.addEventListener("load",function(){return c.loading|=1}),r.addEventListener("error",function(){return c.loading|=2}),Ht(r,"link",i),wt(r),t.head.appendChild(r))}function ni(t){return'[src="'+Kt(t)+'"]'}function Do(t){return"script[async]"+t}function Hb(t,r,i){if(r.count++,r.instance===null)switch(r.type){case"style":var c=t.querySelector('style[data-href~="'+Kt(i.href)+'"]');if(c)return r.instance=c,wt(c),c;var h=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return c=(t.ownerDocument||t).createElement("style"),wt(c),Ht(c,"style",h),Pc(c,i.precedence,t),r.instance=c;case"stylesheet":h=ti(i.href);var x=t.querySelector(Oo(h));if(x)return r.state.loading|=4,r.instance=x,wt(x),x;c=Ub(i),(h=Hn.get(h))&&jp(c,h),x=(t.ownerDocument||t).createElement("link"),wt(x);var C=x;return C._p=new Promise(function(_,P){C.onload=_,C.onerror=P}),Ht(x,"link",c),r.state.loading|=4,Pc(x,i.precedence,t),r.instance=x;case"script":return x=ni(i.src),(h=t.querySelector(Do(x)))?(r.instance=h,wt(h),h):(c=i,(h=Hn.get(x))&&(c=g({},i),Tp(c,h)),t=t.ownerDocument||t,h=t.createElement("script"),wt(h),Ht(h,"link",c),t.head.appendChild(h),r.instance=h);case"void":return null;default:throw Error(l(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(c=r.instance,r.state.loading|=4,Pc(c,i.precedence,t));return r.instance}function Pc(t,r,i){for(var c=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=c.length?c[c.length-1]:null,x=h,C=0;C<c.length;C++){var _=c[C];if(_.dataset.precedence===r)x=_;else if(x!==h)break}x?x.parentNode.insertBefore(t,x.nextSibling):(r=i.nodeType===9?i.head:i,r.insertBefore(t,r.firstChild))}function jp(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function Tp(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var Fc=null;function $b(t,r,i){if(Fc===null){var c=new Map,h=Fc=new Map;h.set(i,c)}else h=Fc,c=h.get(i),c||(c=new Map,h.set(i,c));if(c.has(t))return c;for(c.set(t,null),i=i.getElementsByTagName(t),h=0;h<i.length;h++){var x=i[h];if(!(x[Ha]||x[_t]||t==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var C=x.getAttribute(r)||"";C=t+C;var _=c.get(C);_?_.push(x):c.set(C,[x])}}return c}function Vb(t,r,i){t=t.ownerDocument||t,t.head.insertBefore(i,r==="title"?t.querySelector("head > title"):null)}function xA(t,r,i){if(i===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return t=r.disabled,typeof r.precedence=="string"&&t==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function qb(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function bA(t,r,i,c){if(i.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var h=ti(c.href),x=r.querySelector(Oo(h));if(x){r=x._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(t.count++,t=Uc.bind(t),r.then(t,t)),i.state.loading|=4,i.instance=x,wt(x);return}x=r.ownerDocument||r,c=Ub(c),(h=Hn.get(h))&&jp(c,h),x=x.createElement("link"),wt(x);var C=x;C._p=new Promise(function(_,P){C.onload=_,C.onerror=P}),Ht(x,"link",c),i.instance=x}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,r),(r=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=Uc.bind(t),r.addEventListener("load",i),r.addEventListener("error",i))}}var _p=0;function vA(t,r){return t.stylesheets&&t.count===0&&$c(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var c=setTimeout(function(){if(t.stylesheets&&$c(t,t.stylesheets),t.unsuspend){var x=t.unsuspend;t.unsuspend=null,x()}},6e4+r);0<t.imgBytes&&_p===0&&(_p=62500*eA());var h=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&$c(t,t.stylesheets),t.unsuspend)){var x=t.unsuspend;t.unsuspend=null,x()}},(t.imgBytes>_p?50:800)+r);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(c),clearTimeout(h)}}:null}function Uc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$c(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Hc=null;function $c(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Hc=new Map,r.forEach(wA,t),Hc=null,Uc.call(t))}function wA(t,r){if(!(r.state.loading&4)){var i=Hc.get(t);if(i)var c=i.get(null);else{i=new Map,Hc.set(t,i);for(var h=t.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<h.length;x++){var C=h[x];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(i.set(C.dataset.precedence,C),c=C)}c&&i.set(null,c)}h=r.instance,C=h.getAttribute("data-precedence"),x=i.get(C)||c,x===c&&i.set(null,h),i.set(C,h),this.count++,c=Uc.bind(this),h.addEventListener("load",c),h.addEventListener("error",c),x?x.parentNode.insertBefore(h,x.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(h,t.firstChild)),r.state.loading|=4}}var zo={$$typeof:j,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function SA(t,r,i,c,h,x,C,_,P){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ui(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ui(0),this.hiddenUpdates=Ui(null),this.identifierPrefix=c,this.onUncaughtError=h,this.onCaughtError=x,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=P,this.incompleteTransitions=new Map}function Gb(t,r,i,c,h,x,C,_,P,Q,oe,fe){return t=new SA(t,r,i,C,P,Q,oe,fe,_),r=1,x===!0&&(r|=24),x=bn(3,null,null,r),t.current=x,x.stateNode=t,r=cf(),r.refCount++,t.pooledCache=r,r.refCount++,x.memoizedState={element:c,isDehydrated:i,cache:r},pf(x),t}function Yb(t){return t?(t=Ol,t):Ol}function Xb(t,r,i,c,h,x){h=Yb(h),c.context===null?c.context=h:c.pendingContext=h,c=oa(r),c.payload={element:i},x=x===void 0?null:x,x!==null&&(c.callback=x),i=sa(t,c,r),i!==null&&(mn(i,t,r),po(i,t,r))}function Kb(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<r?i:r}}function Rp(t,r){Kb(t,r),(t=t.alternate)&&Kb(t,r)}function Qb(t){if(t.tag===13||t.tag===31){var r=Ya(t,67108864);r!==null&&mn(r,t,67108864),Rp(t,67108864)}}function Zb(t){if(t.tag===13||t.tag===31){var r=Cn();r=Kr(r);var i=Ya(t,r);i!==null&&mn(i,t,r),Rp(t,r)}}var Vc=!0;function kA(t,r,i,c){var h=I.T;I.T=null;var x=X.p;try{X.p=2,Mp(t,r,i,c)}finally{X.p=x,I.T=h}}function CA(t,r,i,c){var h=I.T;I.T=null;var x=X.p;try{X.p=8,Mp(t,r,i,c)}finally{X.p=x,I.T=h}}function Mp(t,r,i,c){if(Vc){var h=Op(c);if(h===null)xp(t,r,c,qc,i),Jb(t,c);else if(AA(h,t,r,i,c))c.stopPropagation();else if(Jb(t,c),r&4&&-1<EA.indexOf(t)){for(;h!==null;){var x=Wr(h);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var C=Gt(x.pendingLanes);if(C!==0){var _=x;for(_.pendingLanes|=2,_.entangledLanes|=2;C;){var P=1<<31-De(C);_.entanglements[1]|=P,C&=~P}sr(x),(at&6)===0&&(Nc=vt()+500,To(0))}}break;case 31:case 13:_=Ya(x,2),_!==null&&mn(_,x,2),Tc(),Rp(x,2)}if(x=Op(c),x===null&&xp(t,r,c,qc,i),x===h)break;h=x}h!==null&&c.stopPropagation()}else xp(t,r,c,null,i)}}function Op(t){return t=Dd(t),Dp(t)}var qc=null;function Dp(t){if(qc=null,t=Zr(t),t!==null){var r=s(t);if(r===null)t=null;else{var i=r.tag;if(i===13){if(t=u(r),t!==null)return t;t=null}else if(i===31){if(t=f(r),t!==null)return t;t=null}else if(i===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return qc=t,null}function Wb(t){switch(t){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Pi()){case se:return 2;case xe:return 8;case Oe:case He:return 32;case tt:return 268435456;default:return 32}default:return 32}}var zp=!1,ba=null,va=null,wa=null,Lo=new Map,Io=new Map,Sa=[],EA="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".split(" ");function Jb(t,r){switch(t){case"focusin":case"focusout":ba=null;break;case"dragenter":case"dragleave":va=null;break;case"mouseover":case"mouseout":wa=null;break;case"pointerover":case"pointerout":Lo.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Io.delete(r.pointerId)}}function Bo(t,r,i,c,h,x){return t===null||t.nativeEvent!==x?(t={blockedOn:r,domEventName:i,eventSystemFlags:c,nativeEvent:x,targetContainers:[h]},r!==null&&(r=Wr(r),r!==null&&Qb(r)),t):(t.eventSystemFlags|=c,r=t.targetContainers,h!==null&&r.indexOf(h)===-1&&r.push(h),t)}function AA(t,r,i,c,h){switch(r){case"focusin":return ba=Bo(ba,t,r,i,c,h),!0;case"dragenter":return va=Bo(va,t,r,i,c,h),!0;case"mouseover":return wa=Bo(wa,t,r,i,c,h),!0;case"pointerover":var x=h.pointerId;return Lo.set(x,Bo(Lo.get(x)||null,t,r,i,c,h)),!0;case"gotpointercapture":return x=h.pointerId,Io.set(x,Bo(Io.get(x)||null,t,r,i,c,h)),!0}return!1}function ev(t){var r=Zr(t.target);if(r!==null){var i=s(r);if(i!==null){if(r=i.tag,r===13){if(r=u(i),r!==null){t.blockedOn=r,Bs(t.priority,function(){Zb(i)});return}}else if(r===31){if(r=f(i),r!==null){t.blockedOn=r,Bs(t.priority,function(){Zb(i)});return}}else if(r===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Gc(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var i=Op(t.nativeEvent);if(i===null){i=t.nativeEvent;var c=new i.constructor(i.type,i);Od=c,i.target.dispatchEvent(c),Od=null}else return r=Wr(i),r!==null&&Qb(r),t.blockedOn=i,!1;r.shift()}return!0}function tv(t,r,i){Gc(t)&&i.delete(r)}function NA(){zp=!1,ba!==null&&Gc(ba)&&(ba=null),va!==null&&Gc(va)&&(va=null),wa!==null&&Gc(wa)&&(wa=null),Lo.forEach(tv),Io.forEach(tv)}function Yc(t,r){t.blockedOn===r&&(t.blockedOn=null,zp||(zp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,NA)))}var Xc=null;function nv(t){Xc!==t&&(Xc=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Xc===t&&(Xc=null);for(var r=0;r<t.length;r+=3){var i=t[r],c=t[r+1],h=t[r+2];if(typeof c!="function"){if(Dp(c||i)===null)continue;break}var x=Wr(i);x!==null&&(t.splice(r,3),r-=3,Of(x,{pending:!0,data:h,method:i.method,action:c},c,h))}}))}function ri(t){function r(P){return Yc(P,t)}ba!==null&&Yc(ba,t),va!==null&&Yc(va,t),wa!==null&&Yc(wa,t),Lo.forEach(r),Io.forEach(r);for(var i=0;i<Sa.length;i++){var c=Sa[i];c.blockedOn===t&&(c.blockedOn=null)}for(;0<Sa.length&&(i=Sa[0],i.blockedOn===null);)ev(i),i.blockedOn===null&&Sa.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(c=0;c<i.length;c+=3){var h=i[c],x=i[c+1],C=h[Yt]||null;if(typeof x=="function")C||nv(i);else if(C){var _=null;if(x&&x.hasAttribute("formAction")){if(h=x,C=x[Yt]||null)_=C.formAction;else if(Dp(h)!==null)continue}else _=C.action;typeof _=="function"?i[c+1]=_:(i.splice(c,3),c-=3),nv(i)}}}function rv(){function t(x){x.canIntercept&&x.info==="react-transition"&&x.intercept({handler:function(){return new Promise(function(C){return h=C})},focusReset:"manual",scroll:"manual"})}function r(){h!==null&&(h(),h=null),c||setTimeout(i,20)}function i(){if(!c&&!navigation.transition){var x=navigation.currentEntry;x&&x.url!=null&&navigation.navigate(x.url,{state:x.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,h=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(i,100),function(){c=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),h!==null&&(h(),h=null)}}}function Lp(t){this._internalRoot=t}Kc.prototype.render=Lp.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(l(409));var i=r.current,c=Cn();Xb(i,c,t,r,null,null)},Kc.prototype.unmount=Lp.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;Xb(t.current,2,null,t,null,null),Tc(),r[Qr]=null}};function Kc(t){this._internalRoot=t}Kc.prototype.unstable_scheduleHydration=function(t){if(t){var r=Is();t={blockedOn:null,target:t,priority:r};for(var i=0;i<Sa.length&&r!==0&&r<Sa[i].priority;i++);Sa.splice(i,0,t),i===0&&ev(t)}};var av=n.version;if(av!=="19.2.4")throw Error(l(527,av,"19.2.4"));X.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(l(188)):(t=Object.keys(t).join(","),Error(l(268,t)));return t=m(r),t=t!==null?y(t):null,t=t===null?null:t.stateNode,t};var jA={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qc.isDisabled&&Qc.supportsFiber)try{qt=Qc.inject(jA),yt=Qc}catch{}}return Fo.createRoot=function(t,r){if(!o(t))throw Error(l(299));var i=!1,c="",h=dx,x=fx,C=px;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(c=r.identifierPrefix),r.onUncaughtError!==void 0&&(h=r.onUncaughtError),r.onCaughtError!==void 0&&(x=r.onCaughtError),r.onRecoverableError!==void 0&&(C=r.onRecoverableError)),r=Gb(t,1,!1,null,null,i,c,null,h,x,C,rv),t[Qr]=r.current,yp(t),new Lp(r)},Fo.hydrateRoot=function(t,r,i){if(!o(t))throw Error(l(299));var c=!1,h="",x=dx,C=fx,_=px,P=null;return i!=null&&(i.unstable_strictMode===!0&&(c=!0),i.identifierPrefix!==void 0&&(h=i.identifierPrefix),i.onUncaughtError!==void 0&&(x=i.onUncaughtError),i.onCaughtError!==void 0&&(C=i.onCaughtError),i.onRecoverableError!==void 0&&(_=i.onRecoverableError),i.formState!==void 0&&(P=i.formState)),r=Gb(t,1,!0,r,i!=null?i:null,c,h,P,x,C,_,rv),r.context=Yb(null),i=r.current,c=Cn(),c=Kr(c),h=oa(c),h.callback=null,sa(i,h,c),i=c,r.current.lanes=i,Ua(r,i),sr(r),t[Qr]=r.current,yp(t),new Kc(r)},Fo.version="19.2.4",Fo}var mv;function BA(){if(mv)return Pp.exports;mv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Pp.exports=IA(),Pp.exports}var PA=BA();const FA={theme:"system",setTheme:()=>null,resolvedTheme:"dark"},y1=v.createContext(FA);function UA({children:e,defaultTheme:n="system",storageKey:a="jean2-theme",...l}){const[o,s]=v.useState(()=>localStorage.getItem(a)||n),[u,f]=v.useState("dark");v.useEffect(()=>{const m=window.document.documentElement;if(m.classList.remove("light","dark"),o==="system"){const y=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";m.classList.add(y),f(y);return}m.classList.add(o),f(o)},[o]);const p={theme:o,setTheme:m=>{localStorage.setItem(a,m),s(m)},resolvedTheme:u};return d.jsx(y1.Provider,{...l,value:p,children:e})}const HA=()=>{const e=v.useContext(y1);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};async function $A(e,n={},a){return window.__TAURI_INTERNALS__.invoke(e,n,a)}/**
|
|
50
|
+
* @license lucide-react v0.577.0 - ISC
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the ISC license.
|
|
53
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/const x1=(...e)=>e.filter((n,a,l)=>!!n&&n.trim()!==""&&l.indexOf(n)===a).join(" ").trim();/**
|
|
55
|
+
* @license lucide-react v0.577.0 - ISC
|
|
56
|
+
*
|
|
57
|
+
* This source code is licensed under the ISC license.
|
|
58
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/const VA=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
60
|
+
* @license lucide-react v0.577.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/const qA=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,a,l)=>l?l.toUpperCase():a.toLowerCase());/**
|
|
65
|
+
* @license lucide-react v0.577.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const hv=e=>{const n=qA(e);return n.charAt(0).toUpperCase()+n.slice(1)};/**
|
|
70
|
+
* @license lucide-react v0.577.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/var GA={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"};/**
|
|
75
|
+
* @license lucide-react v0.577.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const YA=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1};/**
|
|
80
|
+
* @license lucide-react v0.577.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/const XA=v.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:o="",children:s,iconNode:u,...f},p)=>v.createElement("svg",{ref:p,...GA,width:n,height:n,stroke:e,strokeWidth:l?Number(a)*24/Number(n):a,className:x1("lucide",o),...!s&&!YA(f)&&{"aria-hidden":"true"},...f},[...u.map(([m,y])=>v.createElement(m,y)),...Array.isArray(s)?s:[s]]));/**
|
|
85
|
+
* @license lucide-react v0.577.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/const je=(e,n)=>{const a=v.forwardRef(({className:l,...o},s)=>v.createElement(XA,{ref:s,iconNode:n,className:x1(`lucide-${VA(hv(e))}`,`lucide-${e}`,l),...o}));return a.displayName=hv(e),a};/**
|
|
90
|
+
* @license lucide-react v0.577.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const KA=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],QA=je("archive",KA);/**
|
|
95
|
+
* @license lucide-react v0.577.0 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/const ZA=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],WA=je("arrow-left",ZA);/**
|
|
100
|
+
* @license lucide-react v0.577.0 - ISC
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the ISC license.
|
|
103
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/const JA=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],eN=je("bot",JA);/**
|
|
105
|
+
* @license lucide-react v0.577.0 - ISC
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the ISC license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/const tN=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],gv=je("box",tN);/**
|
|
110
|
+
* @license lucide-react v0.577.0 - ISC
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the ISC license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/const nN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Pr=je("check",nN);/**
|
|
115
|
+
* @license lucide-react v0.577.0 - ISC
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the ISC license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/const rN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ci=je("chevron-down",rN);/**
|
|
120
|
+
* @license lucide-react v0.577.0 - ISC
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the ISC license.
|
|
123
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/const aN=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],lN=je("chevron-left",aN);/**
|
|
125
|
+
* @license lucide-react v0.577.0 - ISC
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the ISC license.
|
|
128
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
+
*/const iN=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ta=je("chevron-right",iN);/**
|
|
130
|
+
* @license lucide-react v0.577.0 - ISC
|
|
131
|
+
*
|
|
132
|
+
* This source code is licensed under the ISC license.
|
|
133
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
+
*/const oN=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],sN=je("chevron-up",oN);/**
|
|
135
|
+
* @license lucide-react v0.577.0 - ISC
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the ISC license.
|
|
138
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/const cN=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],b1=je("chevrons-up-down",cN);/**
|
|
140
|
+
* @license lucide-react v0.577.0 - ISC
|
|
141
|
+
*
|
|
142
|
+
* This source code is licensed under the ISC license.
|
|
143
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
+
*/const uN=[["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"}]],Qo=je("circle-alert",uN);/**
|
|
145
|
+
* @license lucide-react v0.577.0 - ISC
|
|
146
|
+
*
|
|
147
|
+
* This source code is licensed under the ISC license.
|
|
148
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
+
*/const dN=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],hs=je("circle-check-big",dN);/**
|
|
150
|
+
* @license lucide-react v0.577.0 - ISC
|
|
151
|
+
*
|
|
152
|
+
* This source code is licensed under the ISC license.
|
|
153
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
+
*/const fN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Fu=je("circle-x",fN);/**
|
|
155
|
+
* @license lucide-react v0.577.0 - ISC
|
|
156
|
+
*
|
|
157
|
+
* This source code is licensed under the ISC license.
|
|
158
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
+
*/const pN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],mN=je("circle",pN);/**
|
|
160
|
+
* @license lucide-react v0.577.0 - ISC
|
|
161
|
+
*
|
|
162
|
+
* This source code is licensed under the ISC license.
|
|
163
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
+
*/const hN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],v1=je("clock",hN);/**
|
|
165
|
+
* @license lucide-react v0.577.0 - ISC
|
|
166
|
+
*
|
|
167
|
+
* This source code is licensed under the ISC license.
|
|
168
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
+
*/const gN=[["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"}]],xu=je("copy",gN);/**
|
|
170
|
+
* @license lucide-react v0.577.0 - ISC
|
|
171
|
+
*
|
|
172
|
+
* This source code is licensed under the ISC license.
|
|
173
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
+
*/const yN=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],xN=je("cpu",yN);/**
|
|
175
|
+
* @license lucide-react v0.577.0 - ISC
|
|
176
|
+
*
|
|
177
|
+
* This source code is licensed under the ISC license.
|
|
178
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
+
*/const bN=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],vN=je("ellipsis",bN);/**
|
|
180
|
+
* @license lucide-react v0.577.0 - ISC
|
|
181
|
+
*
|
|
182
|
+
* This source code is licensed under the ISC license.
|
|
183
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
+
*/const wN=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],jm=je("external-link",wN);/**
|
|
185
|
+
* @license lucide-react v0.577.0 - ISC
|
|
186
|
+
*
|
|
187
|
+
* This source code is licensed under the ISC license.
|
|
188
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
+
*/const SN=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],kN=je("eye-off",SN);/**
|
|
190
|
+
* @license lucide-react v0.577.0 - ISC
|
|
191
|
+
*
|
|
192
|
+
* This source code is licensed under the ISC license.
|
|
193
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
+
*/const CN=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],EN=je("eye",CN);/**
|
|
195
|
+
* @license lucide-react v0.577.0 - ISC
|
|
196
|
+
*
|
|
197
|
+
* This source code is licensed under the ISC license.
|
|
198
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
199
|
+
*/const AN=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],NN=je("file-pen",AN);/**
|
|
200
|
+
* @license lucide-react v0.577.0 - ISC
|
|
201
|
+
*
|
|
202
|
+
* This source code is licensed under the ISC license.
|
|
203
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
204
|
+
*/const jN=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],ih=je("file-text",jN);/**
|
|
205
|
+
* @license lucide-react v0.577.0 - ISC
|
|
206
|
+
*
|
|
207
|
+
* This source code is licensed under the ISC license.
|
|
208
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
209
|
+
*/const TN=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],cr=je("file",TN);/**
|
|
210
|
+
* @license lucide-react v0.577.0 - ISC
|
|
211
|
+
*
|
|
212
|
+
* This source code is licensed under the ISC license.
|
|
213
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
214
|
+
*/const _N=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],Tm=je("folder-open",_N);/**
|
|
215
|
+
* @license lucide-react v0.577.0 - ISC
|
|
216
|
+
*
|
|
217
|
+
* This source code is licensed under the ISC license.
|
|
218
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
219
|
+
*/const RN=[["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"}]],cl=je("folder",RN);/**
|
|
220
|
+
* @license lucide-react v0.577.0 - ISC
|
|
221
|
+
*
|
|
222
|
+
* This source code is licensed under the ISC license.
|
|
223
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
224
|
+
*/const MN=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],ON=je("git-branch",MN);/**
|
|
225
|
+
* @license lucide-react v0.577.0 - ISC
|
|
226
|
+
*
|
|
227
|
+
* This source code is licensed under the ISC license.
|
|
228
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
229
|
+
*/const DN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],yv=je("info",DN);/**
|
|
230
|
+
* @license lucide-react v0.577.0 - ISC
|
|
231
|
+
*
|
|
232
|
+
* This source code is licensed under the ISC license.
|
|
233
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
234
|
+
*/const zN=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Vn=je("loader-circle",zN);/**
|
|
235
|
+
* @license lucide-react v0.577.0 - ISC
|
|
236
|
+
*
|
|
237
|
+
* This source code is licensed under the ISC license.
|
|
238
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
239
|
+
*/const LN=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],IN=je("lock",LN);/**
|
|
240
|
+
* @license lucide-react v0.577.0 - ISC
|
|
241
|
+
*
|
|
242
|
+
* This source code is licensed under the ISC license.
|
|
243
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
244
|
+
*/const BN=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],PN=je("message-square",BN);/**
|
|
245
|
+
* @license lucide-react v0.577.0 - ISC
|
|
246
|
+
*
|
|
247
|
+
* This source code is licensed under the ISC license.
|
|
248
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
249
|
+
*/const FN=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],UN=je("minimize-2",FN);/**
|
|
250
|
+
* @license lucide-react v0.577.0 - ISC
|
|
251
|
+
*
|
|
252
|
+
* This source code is licensed under the ISC license.
|
|
253
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
254
|
+
*/const HN=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],$N=je("monitor",HN);/**
|
|
255
|
+
* @license lucide-react v0.577.0 - ISC
|
|
256
|
+
*
|
|
257
|
+
* This source code is licensed under the ISC license.
|
|
258
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
259
|
+
*/const VN=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],qN=je("moon",VN);/**
|
|
260
|
+
* @license lucide-react v0.577.0 - ISC
|
|
261
|
+
*
|
|
262
|
+
* This source code is licensed under the ISC license.
|
|
263
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
264
|
+
*/const GN=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],YN=je("panel-left",GN);/**
|
|
265
|
+
* @license lucide-react v0.577.0 - ISC
|
|
266
|
+
*
|
|
267
|
+
* This source code is licensed under the ISC license.
|
|
268
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
269
|
+
*/const XN=[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],KN=je("plug-zap",XN);/**
|
|
270
|
+
* @license lucide-react v0.577.0 - ISC
|
|
271
|
+
*
|
|
272
|
+
* This source code is licensed under the ISC license.
|
|
273
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
274
|
+
*/const QN=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],ZN=je("plug",QN);/**
|
|
275
|
+
* @license lucide-react v0.577.0 - ISC
|
|
276
|
+
*
|
|
277
|
+
* This source code is licensed under the ISC license.
|
|
278
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
279
|
+
*/const WN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Uu=je("plus",WN);/**
|
|
280
|
+
* @license lucide-react v0.577.0 - ISC
|
|
281
|
+
*
|
|
282
|
+
* This source code is licensed under the ISC license.
|
|
283
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
284
|
+
*/const JN=[["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"}]],pi=je("refresh-cw",JN);/**
|
|
285
|
+
* @license lucide-react v0.577.0 - ISC
|
|
286
|
+
*
|
|
287
|
+
* This source code is licensed under the ISC license.
|
|
288
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
289
|
+
*/const ej=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],tj=je("rotate-ccw",ej);/**
|
|
290
|
+
* @license lucide-react v0.577.0 - ISC
|
|
291
|
+
*
|
|
292
|
+
* This source code is licensed under the ISC license.
|
|
293
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
294
|
+
*/const nj=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],oh=je("search",nj);/**
|
|
295
|
+
* @license lucide-react v0.577.0 - ISC
|
|
296
|
+
*
|
|
297
|
+
* This source code is licensed under the ISC license.
|
|
298
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
299
|
+
*/const rj=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],aj=je("send",rj);/**
|
|
300
|
+
* @license lucide-react v0.577.0 - ISC
|
|
301
|
+
*
|
|
302
|
+
* This source code is licensed under the ISC license.
|
|
303
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
304
|
+
*/const lj=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],ul=je("server",lj);/**
|
|
305
|
+
* @license lucide-react v0.577.0 - ISC
|
|
306
|
+
*
|
|
307
|
+
* This source code is licensed under the ISC license.
|
|
308
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
309
|
+
*/const ij=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],w1=je("settings",ij);/**
|
|
310
|
+
* @license lucide-react v0.577.0 - ISC
|
|
311
|
+
*
|
|
312
|
+
* This source code is licensed under the ISC license.
|
|
313
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
314
|
+
*/const oj=[["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"}]],S1=je("shield",oj);/**
|
|
315
|
+
* @license lucide-react v0.577.0 - ISC
|
|
316
|
+
*
|
|
317
|
+
* This source code is licensed under the ISC license.
|
|
318
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
319
|
+
*/const sj=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],k1=je("square",sj);/**
|
|
320
|
+
* @license lucide-react v0.577.0 - ISC
|
|
321
|
+
*
|
|
322
|
+
* This source code is licensed under the ISC license.
|
|
323
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
324
|
+
*/const cj=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],xv=je("star",cj);/**
|
|
325
|
+
* @license lucide-react v0.577.0 - ISC
|
|
326
|
+
*
|
|
327
|
+
* This source code is licensed under the ISC license.
|
|
328
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
329
|
+
*/const uj=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],dj=je("sun",uj);/**
|
|
330
|
+
* @license lucide-react v0.577.0 - ISC
|
|
331
|
+
*
|
|
332
|
+
* This source code is licensed under the ISC license.
|
|
333
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
334
|
+
*/const fj=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],gs=je("trash-2",fj);/**
|
|
335
|
+
* @license lucide-react v0.577.0 - ISC
|
|
336
|
+
*
|
|
337
|
+
* This source code is licensed under the ISC license.
|
|
338
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
339
|
+
*/const pj=[["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"}]],bv=je("triangle-alert",pj);/**
|
|
340
|
+
* @license lucide-react v0.577.0 - ISC
|
|
341
|
+
*
|
|
342
|
+
* This source code is licensed under the ISC license.
|
|
343
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
344
|
+
*/const mj=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],hj=je("undo-2",mj);/**
|
|
345
|
+
* @license lucide-react v0.577.0 - ISC
|
|
346
|
+
*
|
|
347
|
+
* This source code is licensed under the ISC license.
|
|
348
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
349
|
+
*/const gj=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],yj=je("user",gj);/**
|
|
350
|
+
* @license lucide-react v0.577.0 - ISC
|
|
351
|
+
*
|
|
352
|
+
* This source code is licensed under the ISC license.
|
|
353
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
354
|
+
*/const xj=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],C1=je("wifi-off",xj);/**
|
|
355
|
+
* @license lucide-react v0.577.0 - ISC
|
|
356
|
+
*
|
|
357
|
+
* This source code is licensed under the ISC license.
|
|
358
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
359
|
+
*/const bj=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],vj=je("wifi",bj);/**
|
|
360
|
+
* @license lucide-react v0.577.0 - ISC
|
|
361
|
+
*
|
|
362
|
+
* This source code is licensed under the ISC license.
|
|
363
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
364
|
+
*/const wj=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Sj=je("wrench",wj);/**
|
|
365
|
+
* @license lucide-react v0.577.0 - ISC
|
|
366
|
+
*
|
|
367
|
+
* This source code is licensed under the ISC license.
|
|
368
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
369
|
+
*/const kj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xi=je("x",kj);/**
|
|
370
|
+
* @license lucide-react v0.577.0 - ISC
|
|
371
|
+
*
|
|
372
|
+
* This source code is licensed under the ISC license.
|
|
373
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
374
|
+
*/const Cj=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],$p=je("zap",Cj),qn={SERVERS:"jean2_servers",ACTIVE_SERVER_ID:"jean2_active_server_id",QUICK_CONNECTIONS:"jean2_quick_connections"};function Ir(){try{const e=localStorage.getItem(qn.SERVERS);return e?JSON.parse(e):[]}catch(e){return console.error("Error reading saved servers from localStorage:",e),[]}}function Ej(e){return Ir().find(a=>a.id===e)||null}function Aj(e){try{const n=Ir();n.push(e),localStorage.setItem(qn.SERVERS,JSON.stringify(n))}catch(n){console.error("Error saving server to localStorage:",n)}}function Nj(e,n){try{const a=Ir(),l=a.findIndex(o=>o.id===e);if(l===-1){console.error("Server not found:",e);return}a[l]={...a[l],...n},localStorage.setItem(qn.SERVERS,JSON.stringify(a))}catch(a){console.error("Error updating server in localStorage:",a)}}function jj(e){try{const a=Ir().filter(u=>u.id!==e);localStorage.setItem(qn.SERVERS,JSON.stringify(a));const o=Br().filter(u=>u.serverId!==e);localStorage.setItem(qn.QUICK_CONNECTIONS,JSON.stringify(o)),E1()===e&&localStorage.removeItem(qn.ACTIVE_SERVER_ID)}catch(n){console.error("Error deleting server from localStorage:",n)}}function E1(){try{return localStorage.getItem(qn.ACTIVE_SERVER_ID)}catch(e){return console.error("Error reading active server ID from localStorage:",e),null}}function Vp(e){try{localStorage.setItem(qn.ACTIVE_SERVER_ID,e)}catch(n){console.error("Error setting active server ID in localStorage:",n)}}function vv(){const e=E1();return e?Ej(e):null}function Br(){try{const e=localStorage.getItem(qn.QUICK_CONNECTIONS);return e?JSON.parse(e):[]}catch(e){return console.error("Error reading quick connections from localStorage:",e),[]}}function Tj(e){const n=Br(),a=n.reduce((o,s)=>Math.max(o,s.order),-1),l={...e,id:crypto.randomUUID(),order:a+1};n.push(l);try{localStorage.setItem(qn.QUICK_CONNECTIONS,JSON.stringify(n))}catch(o){console.error("Error saving quick connection to localStorage:",o)}return l}function _j(e){try{const a=Br().filter(l=>l.id!==e);localStorage.setItem(qn.QUICK_CONNECTIONS,JSON.stringify(a))}catch(n){console.error("Error removing quick connection from localStorage:",n)}}function Rj(e){try{const n=Br(),a=new Map(n.map(l=>[l.id,l]));e.forEach((l,o)=>{const s=a.get(l);s&&(s.order=o)}),localStorage.setItem(qn.QUICK_CONNECTIONS,JSON.stringify(n))}catch(n){console.error("Error reordering quick connections in localStorage:",n)}}function A1(e){return/^[a-f0-9]{64}$/.test(e)}function Mj(e){return e.length<12?e:`${e.slice(0,4)}...${e.slice(-4)}`}function bu(e){let n=e.trim();return n=n.replace(/^(https?:\/\/|wss?:\/\/)/i,""),n=n.replace(/\/+$/,""),n}const N1=v.createContext(null),Oj=({children:e})=>{const[n,a]=v.useState([]),[l,o]=v.useState(null),[s,u]=v.useState([]),[f,p]=v.useState(!1),m=v.useRef(null);v.useEffect(()=>{const j=Ir(),O=vv(),z=Br();a(j),o(O),u(z)},[]);const y=(j,O,z)=>{const M=bu(O),F={id:crypto.randomUUID(),name:j,url:M,token:z,createdAt:new Date().toISOString()};return Aj(F),a(Ir()),n.length===0&&(Vp(F.id),o(F)),F},g=(j,O)=>{const z={...O,...O.url&&{url:bu(O.url)}};Nj(j,z),a(Ir()),(l==null?void 0:l.id)===j&&o(vv())},b=j=>{const O=(l==null?void 0:l.id)===j;if(jj(j),a(Ir()),O){const z=Ir(),M=z.length>0?z[0]:null;M?(Vp(M.id),o(M)):o(null)}u(Br())},w=v.useCallback(j=>(m.current&&(clearTimeout(m.current),m.current=null),f&&(l==null?void 0:l.id)===j?!1:(f&&p(!1),p(!0),m.current=setTimeout(()=>{Vp(j);const O=n.find(z=>z.id===j)||null;o(O),p(!1)},100),!0)),[f,l,n]),k=v.useCallback(()=>{p(!1)},[]),N={servers:n,activeServer:l,quickConnections:s,isSwitching:f,addServer:y,editServer:g,removeServer:b,switchServer:w,clearSwitchingState:k,addToQuickConnections:(j,O,z,M)=>{Tj({serverId:j,serverName:O,workspaceId:z,workspaceName:M}),u(Br())},removeFromQuickConnections:j=>{_j(j),u(Br())},reorderQuick:j=>{Rj(j),u(Br())}};return d.jsx(N1.Provider,{value:N,children:e})},Ei=()=>{const e=v.useContext(N1);if(e===null)throw new Error("useServerContext must be used within a ServerProvider");return e};function j1(e){var n,a,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(a=j1(e[n]))&&(l&&(l+=" "),l+=a)}else for(a in e)e[a]&&(l&&(l+=" "),l+=a);return l}function Hu(){for(var e,n,a=0,l="",o=arguments.length;a<o;a++)(e=arguments[a])&&(n=j1(e))&&(l&&(l+=" "),l+=n);return l}const wv=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Sv=Hu,Ai=(e,n)=>a=>{var l;if((n==null?void 0:n.variants)==null)return Sv(e,a==null?void 0:a.class,a==null?void 0:a.className);const{variants:o,defaultVariants:s}=n,u=Object.keys(o).map(m=>{const y=a==null?void 0:a[m],g=s==null?void 0:s[m];if(y===null)return null;const b=wv(y)||wv(g);return o[m][b]}),f=a&&Object.entries(a).reduce((m,y)=>{let[g,b]=y;return b===void 0||(m[g]=b),m},{}),p=n==null||(l=n.compoundVariants)===null||l===void 0?void 0:l.reduce((m,y)=>{let{class:g,className:b,...w}=y;return Object.entries(w).every(k=>{let[S,E]=k;return Array.isArray(E)?E.includes({...s,...f}[S]):{...s,...f}[S]===E})?[...m,g,b]:m},[]);return Sv(e,u,p,a==null?void 0:a.class,a==null?void 0:a.className)};var ys=g1();const Dj=Pu(ys);function kv(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function Fr(...e){return n=>{let a=!1;const l=e.map(o=>{const s=kv(o,n);return!a&&typeof s=="function"&&(a=!0),s});if(a)return()=>{for(let o=0;o<l.length;o++){const s=l[o];typeof s=="function"?s():kv(e[o],null)}}}}function qe(...e){return v.useCallback(Fr(...e),e)}function _a(e){const n=zj(e),a=v.forwardRef((l,o)=>{const{children:s,...u}=l,f=v.Children.toArray(s),p=f.find(Ij);if(p){const m=p.props.children,y=f.map(g=>g===p?v.Children.count(m)>1?v.Children.only(null):v.isValidElement(m)?m.props.children:null:g);return d.jsx(n,{...u,ref:o,children:v.isValidElement(m)?v.cloneElement(m,void 0,y):null})}return d.jsx(n,{...u,ref:o,children:s})});return a.displayName=`${e}.Slot`,a}var xs=_a("Slot");function zj(e){const n=v.forwardRef((a,l)=>{const{children:o,...s}=a;if(v.isValidElement(o)){const u=Pj(o),f=Bj(s,o.props);return o.type!==v.Fragment&&(f.ref=l?Fr(l,u):u),v.cloneElement(o,f)}return v.Children.count(o)>1?v.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var T1=Symbol("radix.slottable");function Lj(e){const n=({children:a})=>d.jsx(d.Fragment,{children:a});return n.displayName=`${e}.Slottable`,n.__radixId=T1,n}function Ij(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===T1}function Bj(e,n){const a={...n};for(const l in n){const o=e[l],s=n[l];/^on[A-Z]/.test(l)?o&&s?a[l]=(...f)=>{const p=s(...f);return o(...f),p}:o&&(a[l]=o):l==="style"?a[l]={...o,...s}:l==="className"&&(a[l]=[o,s].filter(Boolean).join(" "))}return{...e,...a}}function Pj(e){var l,o;let n=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.get,a=n&&"isReactWarning"in n&&n.isReactWarning;return a?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=n&&"isReactWarning"in n&&n.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var Fj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ae=Fj.reduce((e,n)=>{const a=_a(`Primitive.${n}`),l=v.forwardRef((o,s)=>{const{asChild:u,...f}=o,p=u?a:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(p,{...f,ref:s})});return l.displayName=`Primitive.${n}`,{...e,[n]:l}},{});function _1(e,n){e&&ys.flushSync(()=>e.dispatchEvent(n))}var R1=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Uj="VisuallyHidden",M1=v.forwardRef((e,n)=>d.jsx(Ae.span,{...e,ref:n,style:{...R1,...e.style}}));M1.displayName=Uj;var Hj=M1;function $j(e,n){const a=v.createContext(n),l=s=>{const{children:u,...f}=s,p=v.useMemo(()=>f,Object.values(f));return d.jsx(a.Provider,{value:p,children:u})};l.displayName=e+"Provider";function o(s){const u=v.useContext(a);if(u)return u;if(n!==void 0)return n;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[l,o]}function Rn(e,n=[]){let a=[];function l(s,u){const f=v.createContext(u),p=a.length;a=[...a,u];const m=g=>{var A;const{scope:b,children:w,...k}=g,S=((A=b==null?void 0:b[e])==null?void 0:A[p])||f,E=v.useMemo(()=>k,Object.values(k));return d.jsx(S.Provider,{value:E,children:w})};m.displayName=s+"Provider";function y(g,b){var S;const w=((S=b==null?void 0:b[e])==null?void 0:S[p])||f,k=v.useContext(w);if(k)return k;if(u!==void 0)return u;throw new Error(`\`${g}\` must be used within \`${s}\``)}return[m,y]}const o=()=>{const s=a.map(u=>v.createContext(u));return function(f){const p=(f==null?void 0:f[e])||s;return v.useMemo(()=>({[`__scope${e}`]:{...f,[e]:p}}),[f,p])}};return o.scopeName=e,[l,Vj(o,...n)]}function Vj(...e){const n=e[0];if(e.length===1)return n;const a=()=>{const l=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const u=l.reduce((f,{useScope:p,scopeName:m})=>{const g=p(s)[`__scope${m}`];return{...f,...g}},{});return v.useMemo(()=>({[`__scope${n.scopeName}`]:u}),[u])}};return a.scopeName=n.scopeName,a}function sh(e){const n=e+"CollectionProvider",[a,l]=Rn(n),[o,s]=a(n,{collectionRef:{current:null},itemMap:new Map}),u=S=>{const{scope:E,children:A}=S,N=Jn.useRef(null),j=Jn.useRef(new Map).current;return d.jsx(o,{scope:E,itemMap:j,collectionRef:N,children:A})};u.displayName=n;const f=e+"CollectionSlot",p=_a(f),m=Jn.forwardRef((S,E)=>{const{scope:A,children:N}=S,j=s(f,A),O=qe(E,j.collectionRef);return d.jsx(p,{ref:O,children:N})});m.displayName=f;const y=e+"CollectionItemSlot",g="data-radix-collection-item",b=_a(y),w=Jn.forwardRef((S,E)=>{const{scope:A,children:N,...j}=S,O=Jn.useRef(null),z=qe(E,O),M=s(y,A);return Jn.useEffect(()=>(M.itemMap.set(O,{ref:O,...j}),()=>void M.itemMap.delete(O))),d.jsx(b,{[g]:"",ref:z,children:N})});w.displayName=y;function k(S){const E=s(e+"CollectionConsumer",S);return Jn.useCallback(()=>{const N=E.collectionRef.current;if(!N)return[];const j=Array.from(N.querySelectorAll(`[${g}]`));return Array.from(E.itemMap.values()).sort((M,F)=>j.indexOf(M.ref.current)-j.indexOf(F.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:u,Slot:m,ItemSlot:w},k,l]}function ve(e,n,{checkForDefaultPrevented:a=!0}={}){return function(o){if(e==null||e(o),a===!1||!o.defaultPrevented)return n==null?void 0:n(o)}}var It=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},qj=h1[" useInsertionEffect ".trim().toString()]||It;function Ur({prop:e,defaultProp:n,onChange:a=()=>{},caller:l}){const[o,s,u]=Gj({defaultProp:n,onChange:a}),f=e!==void 0,p=f?e:o;{const y=v.useRef(e!==void 0);v.useEffect(()=>{const g=y.current;g!==f&&console.warn(`${l} is changing from ${g?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=f},[f,l])}const m=v.useCallback(y=>{var g;if(f){const b=Yj(y)?y(e):y;b!==e&&((g=u.current)==null||g.call(u,b))}else s(y)},[f,e,s,u]);return[p,m]}function Gj({defaultProp:e,onChange:n}){const[a,l]=v.useState(e),o=v.useRef(a),s=v.useRef(n);return qj(()=>{s.current=n},[n]),v.useEffect(()=>{var u;o.current!==a&&((u=s.current)==null||u.call(s,a),o.current=a)},[a,o]),[a,l,s]}function Yj(e){return typeof e=="function"}function Xj(e,n){return v.useReducer((a,l)=>{const o=n[a][l];return o!=null?o:a},e)}var Bt=e=>{const{present:n,children:a}=e,l=Kj(n),o=typeof a=="function"?a({present:l.isPresent}):v.Children.only(a),s=qe(l.ref,Qj(o));return typeof a=="function"||l.isPresent?v.cloneElement(o,{ref:s}):null};Bt.displayName="Presence";function Kj(e){const[n,a]=v.useState(),l=v.useRef(null),o=v.useRef(e),s=v.useRef("none"),u=e?"mounted":"unmounted",[f,p]=Xj(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const m=Zc(l.current);s.current=f==="mounted"?m:"none"},[f]),It(()=>{const m=l.current,y=o.current;if(y!==e){const b=s.current,w=Zc(m);e?p("MOUNT"):w==="none"||(m==null?void 0:m.display)==="none"?p("UNMOUNT"):p(y&&b!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),It(()=>{var m;if(n){let y;const g=(m=n.ownerDocument.defaultView)!=null?m:window,b=k=>{const E=Zc(l.current).includes(CSS.escape(k.animationName));if(k.target===n&&E&&(p("ANIMATION_END"),!o.current)){const A=n.style.animationFillMode;n.style.animationFillMode="forwards",y=g.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=A)})}},w=k=>{k.target===n&&(s.current=Zc(l.current))};return n.addEventListener("animationstart",w),n.addEventListener("animationcancel",b),n.addEventListener("animationend",b),()=>{g.clearTimeout(y),n.removeEventListener("animationstart",w),n.removeEventListener("animationcancel",b),n.removeEventListener("animationend",b)}}else p("ANIMATION_END")},[n,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:v.useCallback(m=>{l.current=m?getComputedStyle(m):null,a(m)},[])}}function Zc(e){return(e==null?void 0:e.animationName)||"none"}function Qj(e){var l,o;let n=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.get,a=n&&"isReactWarning"in n&&n.isReactWarning;return a?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=n&&"isReactWarning"in n&&n.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var Zj=h1[" useId ".trim().toString()]||(()=>{}),Wj=0;function Ot(e){const[n,a]=v.useState(Zj());return It(()=>{a(l=>l!=null?l:String(Wj++))},[e]),e||(n?`radix-${n}`:"")}var $u="Collapsible",[Jj]=Rn($u),[eT,ch]=Jj($u),O1=v.forwardRef((e,n)=>{const{__scopeCollapsible:a,open:l,defaultOpen:o,disabled:s,onOpenChange:u,...f}=e,[p,m]=Ur({prop:l,defaultProp:o!=null?o:!1,onChange:u,caller:$u});return d.jsx(eT,{scope:a,disabled:s,contentId:Ot(),open:p,onOpenToggle:v.useCallback(()=>m(y=>!y),[m]),children:d.jsx(Ae.div,{"data-state":dh(p),"data-disabled":s?"":void 0,...f,ref:n})})});O1.displayName=$u;var D1="CollapsibleTrigger",z1=v.forwardRef((e,n)=>{const{__scopeCollapsible:a,...l}=e,o=ch(D1,a);return d.jsx(Ae.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":dh(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...l,ref:n,onClick:ve(e.onClick,o.onOpenToggle)})});z1.displayName=D1;var uh="CollapsibleContent",L1=v.forwardRef((e,n)=>{const{forceMount:a,...l}=e,o=ch(uh,e.__scopeCollapsible);return d.jsx(Bt,{present:a||o.open,children:({present:s})=>d.jsx(tT,{...l,ref:n,present:s})})});L1.displayName=uh;var tT=v.forwardRef((e,n)=>{const{__scopeCollapsible:a,present:l,children:o,...s}=e,u=ch(uh,a),[f,p]=v.useState(l),m=v.useRef(null),y=qe(n,m),g=v.useRef(0),b=g.current,w=v.useRef(0),k=w.current,S=u.open||f,E=v.useRef(S),A=v.useRef(void 0);return v.useEffect(()=>{const N=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(N)},[]),It(()=>{const N=m.current;if(N){A.current=A.current||{transitionDuration:N.style.transitionDuration,animationName:N.style.animationName},N.style.transitionDuration="0s",N.style.animationName="none";const j=N.getBoundingClientRect();g.current=j.height,w.current=j.width,E.current||(N.style.transitionDuration=A.current.transitionDuration,N.style.animationName=A.current.animationName),p(l)}},[u.open,l]),d.jsx(Ae.div,{"data-state":dh(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!S,...s,ref:y,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":k?`${k}px`:void 0,...e.style},children:S&&o})});function dh(e){return e?"open":"closed"}var nT=O1,rT=v.createContext(void 0);function bs(e){const n=v.useContext(rT);return e||n||"ltr"}function $t(e){const n=v.useRef(e);return v.useEffect(()=>{n.current=e}),v.useMemo(()=>(...a)=>{var l;return(l=n.current)==null?void 0:l.call(n,...a)},[])}function aT(e,n=globalThis==null?void 0:globalThis.document){const a=$t(e);v.useEffect(()=>{const l=o=>{o.key==="Escape"&&a(o)};return n.addEventListener("keydown",l,{capture:!0}),()=>n.removeEventListener("keydown",l,{capture:!0})},[a,n])}var lT="DismissableLayer",_m="dismissableLayer.update",iT="dismissableLayer.pointerDownOutside",oT="dismissableLayer.focusOutside",Cv,I1=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ni=v.forwardRef((e,n)=>{var F;const{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:l,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:u,onDismiss:f,...p}=e,m=v.useContext(I1),[y,g]=v.useState(null),b=(F=y==null?void 0:y.ownerDocument)!=null?F:globalThis==null?void 0:globalThis.document,[,w]=v.useState({}),k=qe(n,U=>g(U)),S=Array.from(m.layers),[E]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),A=S.indexOf(E),N=y?S.indexOf(y):-1,j=m.layersWithOutsidePointerEventsDisabled.size>0,O=N>=A,z=uT(U=>{const Y=U.target,B=[...m.branches].some(G=>G.contains(Y));!O||B||(o==null||o(U),u==null||u(U),U.defaultPrevented||f==null||f())},b),M=dT(U=>{const Y=U.target;[...m.branches].some(G=>G.contains(Y))||(s==null||s(U),u==null||u(U),U.defaultPrevented||f==null||f())},b);return aT(U=>{N===m.layers.size-1&&(l==null||l(U),!U.defaultPrevented&&f&&(U.preventDefault(),f()))},b),v.useEffect(()=>{if(y)return a&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Cv=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(y)),m.layers.add(y),Ev(),()=>{a&&m.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Cv)}},[y,b,a,m]),v.useEffect(()=>()=>{y&&(m.layers.delete(y),m.layersWithOutsidePointerEventsDisabled.delete(y),Ev())},[y,m]),v.useEffect(()=>{const U=()=>w({});return document.addEventListener(_m,U),()=>document.removeEventListener(_m,U)},[]),d.jsx(Ae.div,{...p,ref:k,style:{pointerEvents:j?O?"auto":"none":void 0,...e.style},onFocusCapture:ve(e.onFocusCapture,M.onFocusCapture),onBlurCapture:ve(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:ve(e.onPointerDownCapture,z.onPointerDownCapture)})});Ni.displayName=lT;var sT="DismissableLayerBranch",cT=v.forwardRef((e,n)=>{const a=v.useContext(I1),l=v.useRef(null),o=qe(n,l);return v.useEffect(()=>{const s=l.current;if(s)return a.branches.add(s),()=>{a.branches.delete(s)}},[a.branches]),d.jsx(Ae.div,{...e,ref:o})});cT.displayName=sT;function uT(e,n=globalThis==null?void 0:globalThis.document){const a=$t(e),l=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const s=f=>{if(f.target&&!l.current){let p=function(){B1(iT,a,m,{discrete:!0})};const m={originalEvent:f};f.pointerType==="touch"?(n.removeEventListener("click",o.current),o.current=p,n.addEventListener("click",o.current,{once:!0})):p()}else n.removeEventListener("click",o.current);l.current=!1},u=window.setTimeout(()=>{n.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(u),n.removeEventListener("pointerdown",s),n.removeEventListener("click",o.current)}},[n,a]),{onPointerDownCapture:()=>l.current=!0}}function dT(e,n=globalThis==null?void 0:globalThis.document){const a=$t(e),l=v.useRef(!1);return v.useEffect(()=>{const o=s=>{s.target&&!l.current&&B1(oT,a,{originalEvent:s},{discrete:!1})};return n.addEventListener("focusin",o),()=>n.removeEventListener("focusin",o)},[n,a]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function Ev(){const e=new CustomEvent(_m);document.dispatchEvent(e)}function B1(e,n,a,{discrete:l}){const o=a.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});n&&o.addEventListener(e,n,{once:!0}),l?_1(o,s):o.dispatchEvent(s)}var qp="focusScope.autoFocusOnMount",Gp="focusScope.autoFocusOnUnmount",Av={bubbles:!1,cancelable:!0},fT="FocusScope",vs=v.forwardRef((e,n)=>{const{loop:a=!1,trapped:l=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...u}=e,[f,p]=v.useState(null),m=$t(o),y=$t(s),g=v.useRef(null),b=qe(n,S=>p(S)),w=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(l){let S=function(j){if(w.paused||!f)return;const O=j.target;f.contains(O)?g.current=O:Na(g.current,{select:!0})},E=function(j){if(w.paused||!f)return;const O=j.relatedTarget;O!==null&&(f.contains(O)||Na(g.current,{select:!0}))},A=function(j){if(document.activeElement===document.body)for(const z of j)z.removedNodes.length>0&&Na(f)};document.addEventListener("focusin",S),document.addEventListener("focusout",E);const N=new MutationObserver(A);return f&&N.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",E),N.disconnect()}}},[l,f,w.paused]),v.useEffect(()=>{if(f){jv.add(w);const S=document.activeElement;if(!f.contains(S)){const A=new CustomEvent(qp,Av);f.addEventListener(qp,m),f.dispatchEvent(A),A.defaultPrevented||(pT(xT(P1(f)),{select:!0}),document.activeElement===S&&Na(f))}return()=>{f.removeEventListener(qp,m),setTimeout(()=>{const A=new CustomEvent(Gp,Av);f.addEventListener(Gp,y),f.dispatchEvent(A),A.defaultPrevented||Na(S!=null?S:document.body,{select:!0}),f.removeEventListener(Gp,y),jv.remove(w)},0)}}},[f,m,y,w]);const k=v.useCallback(S=>{if(!a&&!l||w.paused)return;const E=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,A=document.activeElement;if(E&&A){const N=S.currentTarget,[j,O]=mT(N);j&&O?!S.shiftKey&&A===O?(S.preventDefault(),a&&Na(j,{select:!0})):S.shiftKey&&A===j&&(S.preventDefault(),a&&Na(O,{select:!0})):A===N&&S.preventDefault()}},[a,l,w.paused]);return d.jsx(Ae.div,{tabIndex:-1,...u,ref:b,onKeyDown:k})});vs.displayName=fT;function pT(e,{select:n=!1}={}){const a=document.activeElement;for(const l of e)if(Na(l,{select:n}),document.activeElement!==a)return}function mT(e){const n=P1(e),a=Nv(n,e),l=Nv(n.reverse(),e);return[a,l]}function P1(e){const n=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const o=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||o?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)n.push(a.currentNode);return n}function Nv(e,n){for(const a of e)if(!hT(a,{upTo:n}))return a}function hT(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function gT(e){return e instanceof HTMLInputElement&&"select"in e}function Na(e,{select:n=!1}={}){if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&gT(e)&&n&&e.select()}}var jv=yT();function yT(){let e=[];return{add(n){const a=e[0];n!==a&&(a==null||a.pause()),e=Tv(e,n),e.unshift(n)},remove(n){var a;e=Tv(e,n),(a=e[0])==null||a.resume()}}}function Tv(e,n){const a=[...e],l=a.indexOf(n);return l!==-1&&a.splice(l,1),a}function xT(e){return e.filter(n=>n.tagName!=="A")}var bT="Portal",ji=v.forwardRef((e,n)=>{var f;const{container:a,...l}=e,[o,s]=v.useState(!1);It(()=>s(!0),[]);const u=a||o&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return u?Dj.createPortal(d.jsx(Ae.div,{...l,ref:n}),u):null});ji.displayName=bT;var Yp=0;function Vu(){v.useEffect(()=>{var n,a;const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(n=e[0])!=null?n:_v()),document.body.insertAdjacentElement("beforeend",(a=e[1])!=null?a:_v()),Yp++,()=>{Yp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(l=>l.remove()),Yp--}},[])}function _v(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var dr=function(){return dr=Object.assign||function(n){for(var a,l=1,o=arguments.length;l<o;l++){a=arguments[l];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])}return n},dr.apply(this,arguments)};function F1(e,n){var a={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&n.indexOf(l)<0&&(a[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(e);o<l.length;o++)n.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(e,l[o])&&(a[l[o]]=e[l[o]]);return a}function vT(e,n,a){if(a||arguments.length===2)for(var l=0,o=n.length,s;l<o;l++)(s||!(l in n))&&(s||(s=Array.prototype.slice.call(n,0,l)),s[l]=n[l]);return e.concat(s||Array.prototype.slice.call(n))}var du="right-scroll-bar-position",fu="width-before-scroll-bar",wT="with-scroll-bars-hidden",ST="--removed-body-scroll-bar-size";function Xp(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function kT(e,n){var a=v.useState(function(){return{value:e,callback:n,facade:{get current(){return a.value},set current(l){var o=a.value;o!==l&&(a.value=l,a.callback(l,o))}}}})[0];return a.callback=n,a.facade}var CT=typeof window<"u"?v.useLayoutEffect:v.useEffect,Rv=new WeakMap;function ET(e,n){var a=kT(null,function(l){return e.forEach(function(o){return Xp(o,l)})});return CT(function(){var l=Rv.get(a);if(l){var o=new Set(l),s=new Set(e),u=a.current;o.forEach(function(f){s.has(f)||Xp(f,null)}),s.forEach(function(f){o.has(f)||Xp(f,u)})}Rv.set(a,e)},[e]),a}function AT(e){return e}function NT(e,n){n===void 0&&(n=AT);var a=[],l=!1,o={read:function(){if(l)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:e},useMedium:function(s){var u=n(s,l);return a.push(u),function(){a=a.filter(function(f){return f!==u})}},assignSyncMedium:function(s){for(l=!0;a.length;){var u=a;a=[],u.forEach(s)}a={push:function(f){return s(f)},filter:function(){return a}}},assignMedium:function(s){l=!0;var u=[];if(a.length){var f=a;a=[],f.forEach(s),u=a}var p=function(){var y=u;u=[],y.forEach(s)},m=function(){return Promise.resolve().then(p)};m(),a={push:function(y){u.push(y),m()},filter:function(y){return u=u.filter(y),a}}}};return o}function jT(e){e===void 0&&(e={});var n=NT(null);return n.options=dr({async:!0,ssr:!1},e),n}var U1=function(e){var n=e.sideCar,a=F1(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=n.read();if(!l)throw new Error("Sidecar medium not found");return v.createElement(l,dr({},a))};U1.isSideCarExport=!0;function TT(e,n){return e.useMedium(n),U1}var H1=jT(),Kp=function(){},qu=v.forwardRef(function(e,n){var a=v.useRef(null),l=v.useState({onScrollCapture:Kp,onWheelCapture:Kp,onTouchMoveCapture:Kp}),o=l[0],s=l[1],u=e.forwardProps,f=e.children,p=e.className,m=e.removeScrollBar,y=e.enabled,g=e.shards,b=e.sideCar,w=e.noRelative,k=e.noIsolation,S=e.inert,E=e.allowPinchZoom,A=e.as,N=A===void 0?"div":A,j=e.gapMode,O=F1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),z=b,M=ET([a,n]),F=dr(dr({},O),o);return v.createElement(v.Fragment,null,y&&v.createElement(z,{sideCar:H1,removeScrollBar:m,shards:g,noRelative:w,noIsolation:k,inert:S,setCallbacks:s,allowPinchZoom:!!E,lockRef:a,gapMode:j}),u?v.cloneElement(v.Children.only(f),dr(dr({},F),{ref:M})):v.createElement(N,dr({},F,{className:p,ref:M}),f))});qu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};qu.classNames={fullWidth:fu,zeroRight:du};var _T=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function RT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=_T();return n&&e.setAttribute("nonce",n),e}function MT(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function OT(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var DT=function(){var e=0,n=null;return{add:function(a){e==0&&(n=RT())&&(MT(n,a),OT(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},zT=function(){var e=DT();return function(n,a){v.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&a])}},$1=function(){var e=zT(),n=function(a){var l=a.styles,o=a.dynamic;return e(l,o),null};return n},LT={left:0,top:0,right:0,gap:0},Qp=function(e){return parseInt(e||"",10)||0},IT=function(e){var n=window.getComputedStyle(document.body),a=n[e==="padding"?"paddingLeft":"marginLeft"],l=n[e==="padding"?"paddingTop":"marginTop"],o=n[e==="padding"?"paddingRight":"marginRight"];return[Qp(a),Qp(l),Qp(o)]},BT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return LT;var n=IT(e),a=document.documentElement.clientWidth,l=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,l-a+n[2]-n[0])}},PT=$1(),mi="data-scroll-locked",FT=function(e,n,a,l){var o=e.left,s=e.top,u=e.right,f=e.gap;return a===void 0&&(a="margin"),`
|
|
375
|
+
.`.concat(wT,` {
|
|
376
|
+
overflow: hidden `).concat(l,`;
|
|
377
|
+
padding-right: `).concat(f,"px ").concat(l,`;
|
|
378
|
+
}
|
|
379
|
+
body[`).concat(mi,`] {
|
|
380
|
+
overflow: hidden `).concat(l,`;
|
|
381
|
+
overscroll-behavior: contain;
|
|
382
|
+
`).concat([n&&"position: relative ".concat(l,";"),a==="margin"&&`
|
|
383
|
+
padding-left: `.concat(o,`px;
|
|
384
|
+
padding-top: `).concat(s,`px;
|
|
385
|
+
padding-right: `).concat(u,`px;
|
|
386
|
+
margin-left:0;
|
|
387
|
+
margin-top:0;
|
|
388
|
+
margin-right: `).concat(f,"px ").concat(l,`;
|
|
389
|
+
`),a==="padding"&&"padding-right: ".concat(f,"px ").concat(l,";")].filter(Boolean).join(""),`
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.`).concat(du,` {
|
|
393
|
+
right: `).concat(f,"px ").concat(l,`;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.`).concat(fu,` {
|
|
397
|
+
margin-right: `).concat(f,"px ").concat(l,`;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.`).concat(du," .").concat(du,` {
|
|
401
|
+
right: 0 `).concat(l,`;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.`).concat(fu," .").concat(fu,` {
|
|
405
|
+
margin-right: 0 `).concat(l,`;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
body[`).concat(mi,`] {
|
|
409
|
+
`).concat(ST,": ").concat(f,`px;
|
|
410
|
+
}
|
|
411
|
+
`)},Mv=function(){var e=parseInt(document.body.getAttribute(mi)||"0",10);return isFinite(e)?e:0},UT=function(){v.useEffect(function(){return document.body.setAttribute(mi,(Mv()+1).toString()),function(){var e=Mv()-1;e<=0?document.body.removeAttribute(mi):document.body.setAttribute(mi,e.toString())}},[])},HT=function(e){var n=e.noRelative,a=e.noImportant,l=e.gapMode,o=l===void 0?"margin":l;UT();var s=v.useMemo(function(){return BT(o)},[o]);return v.createElement(PT,{styles:FT(s,!n,o,a?"":"!important")})},Rm=!1;if(typeof window<"u")try{var Wc=Object.defineProperty({},"passive",{get:function(){return Rm=!0,!0}});window.addEventListener("test",Wc,Wc),window.removeEventListener("test",Wc,Wc)}catch{Rm=!1}var ai=Rm?{passive:!1}:!1,$T=function(e){return e.tagName==="TEXTAREA"},V1=function(e,n){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[n]!=="hidden"&&!(a.overflowY===a.overflowX&&!$T(e)&&a[n]==="visible")},VT=function(e){return V1(e,"overflowY")},qT=function(e){return V1(e,"overflowX")},Ov=function(e,n){var a=n.ownerDocument,l=n;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var o=q1(e,l);if(o){var s=G1(e,l),u=s[1],f=s[2];if(u>f)return!0}l=l.parentNode}while(l&&l!==a.body);return!1},GT=function(e){var n=e.scrollTop,a=e.scrollHeight,l=e.clientHeight;return[n,a,l]},YT=function(e){var n=e.scrollLeft,a=e.scrollWidth,l=e.clientWidth;return[n,a,l]},q1=function(e,n){return e==="v"?VT(n):qT(n)},G1=function(e,n){return e==="v"?GT(n):YT(n)},XT=function(e,n){return e==="h"&&n==="rtl"?-1:1},KT=function(e,n,a,l,o){var s=XT(e,window.getComputedStyle(n).direction),u=s*l,f=a.target,p=n.contains(f),m=!1,y=u>0,g=0,b=0;do{if(!f)break;var w=G1(e,f),k=w[0],S=w[1],E=w[2],A=S-E-s*k;(k||A)&&q1(e,f)&&(g+=A,b+=k);var N=f.parentNode;f=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!p&&f!==document.body||p&&(n.contains(f)||n===f));return(y&&Math.abs(g)<1||!y&&Math.abs(b)<1)&&(m=!0),m},Jc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Dv=function(e){return[e.deltaX,e.deltaY]},zv=function(e){return e&&"current"in e?e.current:e},QT=function(e,n){return e[0]===n[0]&&e[1]===n[1]},ZT=function(e){return`
|
|
412
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
413
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
414
|
+
`)},WT=0,li=[];function JT(e){var n=v.useRef([]),a=v.useRef([0,0]),l=v.useRef(),o=v.useState(WT++)[0],s=v.useState($1)[0],u=v.useRef(e);v.useEffect(function(){u.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var S=vT([e.lockRef.current],(e.shards||[]).map(zv),!0).filter(Boolean);return S.forEach(function(E){return E.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var f=v.useCallback(function(S,E){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!u.current.allowPinchZoom;var A=Jc(S),N=a.current,j="deltaX"in S?S.deltaX:N[0]-A[0],O="deltaY"in S?S.deltaY:N[1]-A[1],z,M=S.target,F=Math.abs(j)>Math.abs(O)?"h":"v";if("touches"in S&&F==="h"&&M.type==="range")return!1;var U=window.getSelection(),Y=U&&U.anchorNode,B=Y?Y===M||Y.contains(M):!1;if(B)return!1;var G=Ov(F,M);if(!G)return!0;if(G?z=F:(z=F==="v"?"h":"v",G=Ov(F,M)),!G)return!1;if(!l.current&&"changedTouches"in S&&(j||O)&&(l.current=z),!z)return!0;var q=l.current||z;return KT(q,E,S,q==="h"?j:O)},[]),p=v.useCallback(function(S){var E=S;if(!(!li.length||li[li.length-1]!==s)){var A="deltaY"in E?Dv(E):Jc(E),N=n.current.filter(function(z){return z.name===E.type&&(z.target===E.target||E.target===z.shadowParent)&&QT(z.delta,A)})[0];if(N&&N.should){E.cancelable&&E.preventDefault();return}if(!N){var j=(u.current.shards||[]).map(zv).filter(Boolean).filter(function(z){return z.contains(E.target)}),O=j.length>0?f(E,j[0]):!u.current.noIsolation;O&&E.cancelable&&E.preventDefault()}}},[]),m=v.useCallback(function(S,E,A,N){var j={name:S,delta:E,target:A,should:N,shadowParent:e_(A)};n.current.push(j),setTimeout(function(){n.current=n.current.filter(function(O){return O!==j})},1)},[]),y=v.useCallback(function(S){a.current=Jc(S),l.current=void 0},[]),g=v.useCallback(function(S){m(S.type,Dv(S),S.target,f(S,e.lockRef.current))},[]),b=v.useCallback(function(S){m(S.type,Jc(S),S.target,f(S,e.lockRef.current))},[]);v.useEffect(function(){return li.push(s),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:b}),document.addEventListener("wheel",p,ai),document.addEventListener("touchmove",p,ai),document.addEventListener("touchstart",y,ai),function(){li=li.filter(function(S){return S!==s}),document.removeEventListener("wheel",p,ai),document.removeEventListener("touchmove",p,ai),document.removeEventListener("touchstart",y,ai)}},[]);var w=e.removeScrollBar,k=e.inert;return v.createElement(v.Fragment,null,k?v.createElement(s,{styles:ZT(o)}):null,w?v.createElement(HT,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function e_(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const t_=TT(H1,JT);var ws=v.forwardRef(function(e,n){return v.createElement(qu,dr({},e,{ref:n,sideCar:t_}))});ws.classNames=qu.classNames;var n_=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},ii=new WeakMap,eu=new WeakMap,tu={},Zp=0,Y1=function(e){return e&&(e.host||Y1(e.parentNode))},r_=function(e,n){return n.map(function(a){if(e.contains(a))return a;var l=Y1(a);return l&&e.contains(l)?l:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},a_=function(e,n,a,l){var o=r_(n,Array.isArray(e)?e:[e]);tu[a]||(tu[a]=new WeakMap);var s=tu[a],u=[],f=new Set,p=new Set(o),m=function(g){!g||f.has(g)||(f.add(g),m(g.parentNode))};o.forEach(m);var y=function(g){!g||p.has(g)||Array.prototype.forEach.call(g.children,function(b){if(f.has(b))y(b);else try{var w=b.getAttribute(l),k=w!==null&&w!=="false",S=(ii.get(b)||0)+1,E=(s.get(b)||0)+1;ii.set(b,S),s.set(b,E),u.push(b),S===1&&k&&eu.set(b,!0),E===1&&b.setAttribute(a,"true"),k||b.setAttribute(l,"true")}catch(A){console.error("aria-hidden: cannot operate on ",b,A)}})};return y(n),f.clear(),Zp++,function(){u.forEach(function(g){var b=ii.get(g)-1,w=s.get(g)-1;ii.set(g,b),s.set(g,w),b||(eu.has(g)||g.removeAttribute(l),eu.delete(g)),w||g.removeAttribute(a)}),Zp--,Zp||(ii=new WeakMap,ii=new WeakMap,eu=new WeakMap,tu={})}},Gu=function(e,n,a){a===void 0&&(a="data-aria-hidden");var l=Array.from(Array.isArray(e)?e:[e]),o=n_(e);return o?(l.push.apply(l,Array.from(o.querySelectorAll("[aria-live], script"))),a_(l,o,a,"aria-hidden")):function(){return null}},Yu="Dialog",[X1]=Rn(Yu),[l_,rr]=X1(Yu),K1=e=>{const{__scopeDialog:n,children:a,open:l,defaultOpen:o,onOpenChange:s,modal:u=!0}=e,f=v.useRef(null),p=v.useRef(null),[m,y]=Ur({prop:l,defaultProp:o!=null?o:!1,onChange:s,caller:Yu});return d.jsx(l_,{scope:n,triggerRef:f,contentRef:p,contentId:Ot(),titleId:Ot(),descriptionId:Ot(),open:m,onOpenChange:y,onOpenToggle:v.useCallback(()=>y(g=>!g),[y]),modal:u,children:a})};K1.displayName=Yu;var Q1="DialogTrigger",Z1=v.forwardRef((e,n)=>{const{__scopeDialog:a,...l}=e,o=rr(Q1,a),s=qe(n,o.triggerRef);return d.jsx(Ae.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":mh(o.open),...l,ref:s,onClick:ve(e.onClick,o.onOpenToggle)})});Z1.displayName=Q1;var fh="DialogPortal",[i_,W1]=X1(fh,{forceMount:void 0}),J1=e=>{const{__scopeDialog:n,forceMount:a,children:l,container:o}=e,s=rr(fh,n);return d.jsx(i_,{scope:n,forceMount:a,children:v.Children.map(l,u=>d.jsx(Bt,{present:a||s.open,children:d.jsx(ji,{asChild:!0,container:o,children:u})}))})};J1.displayName=fh;var vu="DialogOverlay",ew=v.forwardRef((e,n)=>{const a=W1(vu,e.__scopeDialog),{forceMount:l=a.forceMount,...o}=e,s=rr(vu,e.__scopeDialog);return s.modal?d.jsx(Bt,{present:l||s.open,children:d.jsx(s_,{...o,ref:n})}):null});ew.displayName=vu;var o_=_a("DialogOverlay.RemoveScroll"),s_=v.forwardRef((e,n)=>{const{__scopeDialog:a,...l}=e,o=rr(vu,a);return d.jsx(ws,{as:o_,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(Ae.div,{"data-state":mh(o.open),...l,ref:n,style:{pointerEvents:"auto",...l.style}})})}),dl="DialogContent",tw=v.forwardRef((e,n)=>{const a=W1(dl,e.__scopeDialog),{forceMount:l=a.forceMount,...o}=e,s=rr(dl,e.__scopeDialog);return d.jsx(Bt,{present:l||s.open,children:s.modal?d.jsx(c_,{...o,ref:n}):d.jsx(u_,{...o,ref:n})})});tw.displayName=dl;var c_=v.forwardRef((e,n)=>{const a=rr(dl,e.__scopeDialog),l=v.useRef(null),o=qe(n,a.contentRef,l);return v.useEffect(()=>{const s=l.current;if(s)return Gu(s)},[]),d.jsx(nw,{...e,ref:o,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ve(e.onCloseAutoFocus,s=>{var u;s.preventDefault(),(u=a.triggerRef.current)==null||u.focus()}),onPointerDownOutside:ve(e.onPointerDownOutside,s=>{const u=s.detail.originalEvent,f=u.button===0&&u.ctrlKey===!0;(u.button===2||f)&&s.preventDefault()}),onFocusOutside:ve(e.onFocusOutside,s=>s.preventDefault())})}),u_=v.forwardRef((e,n)=>{const a=rr(dl,e.__scopeDialog),l=v.useRef(!1),o=v.useRef(!1);return d.jsx(nw,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var u,f;(u=e.onCloseAutoFocus)==null||u.call(e,s),s.defaultPrevented||(l.current||(f=a.triggerRef.current)==null||f.focus(),s.preventDefault()),l.current=!1,o.current=!1},onInteractOutside:s=>{var p,m;(p=e.onInteractOutside)==null||p.call(e,s),s.defaultPrevented||(l.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=s.target;((m=a.triggerRef.current)==null?void 0:m.contains(u))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),nw=v.forwardRef((e,n)=>{const{__scopeDialog:a,trapFocus:l,onOpenAutoFocus:o,onCloseAutoFocus:s,...u}=e,f=rr(dl,a),p=v.useRef(null),m=qe(n,p);return Vu(),d.jsxs(d.Fragment,{children:[d.jsx(vs,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:o,onUnmountAutoFocus:s,children:d.jsx(Ni,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":mh(f.open),...u,ref:m,onDismiss:()=>f.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(d_,{titleId:f.titleId}),d.jsx(p_,{contentRef:p,descriptionId:f.descriptionId})]})]})}),ph="DialogTitle",rw=v.forwardRef((e,n)=>{const{__scopeDialog:a,...l}=e,o=rr(ph,a);return d.jsx(Ae.h2,{id:o.titleId,...l,ref:n})});rw.displayName=ph;var aw="DialogDescription",lw=v.forwardRef((e,n)=>{const{__scopeDialog:a,...l}=e,o=rr(aw,a);return d.jsx(Ae.p,{id:o.descriptionId,...l,ref:n})});lw.displayName=aw;var iw="DialogClose",ow=v.forwardRef((e,n)=>{const{__scopeDialog:a,...l}=e,o=rr(iw,a);return d.jsx(Ae.button,{type:"button",...l,ref:n,onClick:ve(e.onClick,()=>o.onOpenChange(!1))})});ow.displayName=iw;function mh(e){return e?"open":"closed"}var sw="DialogTitleWarning",[CP,cw]=$j(sw,{contentName:dl,titleName:ph,docsSlug:"dialog"}),d_=({titleId:e})=>{const n=cw(sw),a=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
415
|
+
|
|
416
|
+
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
417
|
+
|
|
418
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(a))},[a,e]),null},f_="DialogDescriptionWarning",p_=({contentRef:e,descriptionId:n})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${cw(f_).contentName}}.`;return v.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");n&&o&&(document.getElementById(n)||console.warn(l))},[l,e,n]),null},hh=K1,m_=Z1,gh=J1,yh=ew,xh=tw,uw=rw,dw=lw,Xu=ow;function h_(e){const n=v.useRef({value:e,previous:e});return v.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}function g_(e){const[n,a]=v.useState(void 0);return It(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});const l=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let u,f;if("borderBoxSize"in s){const p=s.borderBoxSize,m=Array.isArray(p)?p[0]:p;u=m.inlineSize,f=m.blockSize}else u=e.offsetWidth,f=e.offsetHeight;a({width:u,height:f})});return l.observe(e,{box:"border-box"}),()=>l.unobserve(e)}else a(void 0)},[e]),n}const y_=["top","right","bottom","left"],Ra=Math.min,Nn=Math.max,wu=Math.round,nu=Math.floor,pr=e=>({x:e,y:e}),x_={left:"right",right:"left",bottom:"top",top:"bottom"};function Mm(e,n,a){return Nn(e,Ra(n,a))}function Hr(e,n){return typeof e=="function"?e(n):e}function $r(e){return e.split("-")[0]}function Ti(e){return e.split("-")[1]}function bh(e){return e==="x"?"y":"x"}function vh(e){return e==="y"?"height":"width"}function fr(e){const n=e[0];return n==="t"||n==="b"?"y":"x"}function wh(e){return bh(fr(e))}function b_(e,n,a){a===void 0&&(a=!1);const l=Ti(e),o=wh(e),s=vh(o);let u=o==="x"?l===(a?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[s]>n.floating[s]&&(u=Su(u)),[u,Su(u)]}function v_(e){const n=Su(e);return[Om(e),n,Om(n)]}function Om(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Lv=["left","right"],Iv=["right","left"],w_=["top","bottom"],S_=["bottom","top"];function k_(e,n,a){switch(e){case"top":case"bottom":return a?n?Iv:Lv:n?Lv:Iv;case"left":case"right":return n?w_:S_;default:return[]}}function C_(e,n,a,l){const o=Ti(e);let s=k_($r(e),a==="start",l);return o&&(s=s.map(u=>u+"-"+o),n&&(s=s.concat(s.map(Om)))),s}function Su(e){const n=$r(e);return x_[n]+e.slice(n.length)}function E_(e){return{top:0,right:0,bottom:0,left:0,...e}}function fw(e){return typeof e!="number"?E_(e):{top:e,right:e,bottom:e,left:e}}function ku(e){const{x:n,y:a,width:l,height:o}=e;return{width:l,height:o,top:a,left:n,right:n+l,bottom:a+o,x:n,y:a}}function Bv(e,n,a){let{reference:l,floating:o}=e;const s=fr(n),u=wh(n),f=vh(u),p=$r(n),m=s==="y",y=l.x+l.width/2-o.width/2,g=l.y+l.height/2-o.height/2,b=l[f]/2-o[f]/2;let w;switch(p){case"top":w={x:y,y:l.y-o.height};break;case"bottom":w={x:y,y:l.y+l.height};break;case"right":w={x:l.x+l.width,y:g};break;case"left":w={x:l.x-o.width,y:g};break;default:w={x:l.x,y:l.y}}switch(Ti(n)){case"start":w[u]-=b*(a&&m?-1:1);break;case"end":w[u]+=b*(a&&m?-1:1);break}return w}async function A_(e,n){var a;n===void 0&&(n={});const{x:l,y:o,platform:s,rects:u,elements:f,strategy:p}=e,{boundary:m="clippingAncestors",rootBoundary:y="viewport",elementContext:g="floating",altBoundary:b=!1,padding:w=0}=Hr(n,e),k=fw(w),E=f[b?g==="floating"?"reference":"floating":g],A=ku(await s.getClippingRect({element:(a=await(s.isElement==null?void 0:s.isElement(E)))==null||a?E:E.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(f.floating)),boundary:m,rootBoundary:y,strategy:p})),N=g==="floating"?{x:l,y:o,width:u.floating.width,height:u.floating.height}:u.reference,j=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),O=await(s.isElement==null?void 0:s.isElement(j))?await(s.getScale==null?void 0:s.getScale(j))||{x:1,y:1}:{x:1,y:1},z=ku(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:N,offsetParent:j,strategy:p}):N);return{top:(A.top-z.top+k.top)/O.y,bottom:(z.bottom-A.bottom+k.bottom)/O.y,left:(A.left-z.left+k.left)/O.x,right:(z.right-A.right+k.right)/O.x}}const N_=50,j_=async(e,n,a)=>{const{placement:l="bottom",strategy:o="absolute",middleware:s=[],platform:u}=a,f=u.detectOverflow?u:{...u,detectOverflow:A_},p=await(u.isRTL==null?void 0:u.isRTL(n));let m=await u.getElementRects({reference:e,floating:n,strategy:o}),{x:y,y:g}=Bv(m,l,p),b=l,w=0;const k={};for(let S=0;S<s.length;S++){const E=s[S];if(!E)continue;const{name:A,fn:N}=E,{x:j,y:O,data:z,reset:M}=await N({x:y,y:g,initialPlacement:l,placement:b,strategy:o,middlewareData:k,rects:m,platform:f,elements:{reference:e,floating:n}});y=j!=null?j:y,g=O!=null?O:g,k[A]={...k[A],...z},M&&w<N_&&(w++,typeof M=="object"&&(M.placement&&(b=M.placement),M.rects&&(m=M.rects===!0?await u.getElementRects({reference:e,floating:n,strategy:o}):M.rects),{x:y,y:g}=Bv(m,b,p)),S=-1)}return{x:y,y:g,placement:b,strategy:o,middlewareData:k}},T_=e=>({name:"arrow",options:e,async fn(n){const{x:a,y:l,placement:o,rects:s,platform:u,elements:f,middlewareData:p}=n,{element:m,padding:y=0}=Hr(e,n)||{};if(m==null)return{};const g=fw(y),b={x:a,y:l},w=wh(o),k=vh(w),S=await u.getDimensions(m),E=w==="y",A=E?"top":"left",N=E?"bottom":"right",j=E?"clientHeight":"clientWidth",O=s.reference[k]+s.reference[w]-b[w]-s.floating[k],z=b[w]-s.reference[w],M=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m));let F=M?M[j]:0;(!F||!await(u.isElement==null?void 0:u.isElement(M)))&&(F=f.floating[j]||s.floating[k]);const U=O/2-z/2,Y=F/2-S[k]/2-1,B=Ra(g[A],Y),G=Ra(g[N],Y),q=B,me=F-S[k]-G,ne=F/2-S[k]/2+U,ee=Mm(q,ne,me),I=!p.arrow&&Ti(o)!=null&&ne!==ee&&s.reference[k]/2-(ne<q?B:G)-S[k]/2<0,X=I?ne<q?ne-q:ne-me:0;return{[w]:b[w]+X,data:{[w]:ee,centerOffset:ne-ee-X,...I&&{alignmentOffset:X}},reset:I}}}),__=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var a,l;const{placement:o,middlewareData:s,rects:u,initialPlacement:f,platform:p,elements:m}=n,{mainAxis:y=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:S=!0,...E}=Hr(e,n);if((a=s.arrow)!=null&&a.alignmentOffset)return{};const A=$r(o),N=fr(f),j=$r(f)===f,O=await(p.isRTL==null?void 0:p.isRTL(m.floating)),z=b||(j||!S?[Su(f)]:v_(f)),M=k!=="none";!b&&M&&z.push(...C_(f,S,k,O));const F=[f,...z],U=await p.detectOverflow(n,E),Y=[];let B=((l=s.flip)==null?void 0:l.overflows)||[];if(y&&Y.push(U[A]),g){const ne=b_(o,u,O);Y.push(U[ne[0]],U[ne[1]])}if(B=[...B,{placement:o,overflows:Y}],!Y.every(ne=>ne<=0)){var G,q;const ne=(((G=s.flip)==null?void 0:G.index)||0)+1,ee=F[ne];if(ee&&(!(g==="alignment"?N!==fr(ee):!1)||B.every(J=>fr(J.placement)===N?J.overflows[0]>0:!0)))return{data:{index:ne,overflows:B},reset:{placement:ee}};let I=(q=B.filter(X=>X.overflows[0]<=0).sort((X,J)=>X.overflows[1]-J.overflows[1])[0])==null?void 0:q.placement;if(!I)switch(w){case"bestFit":{var me;const X=(me=B.filter(J=>{if(M){const Z=fr(J.placement);return Z===N||Z==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(Z=>Z>0).reduce((Z,R)=>Z+R,0)]).sort((J,Z)=>J[1]-Z[1])[0])==null?void 0:me[0];X&&(I=X);break}case"initialPlacement":I=f;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function Pv(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function Fv(e){return y_.some(n=>e[n]>=0)}const R_=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:a,platform:l}=n,{strategy:o="referenceHidden",...s}=Hr(e,n);switch(o){case"referenceHidden":{const u=await l.detectOverflow(n,{...s,elementContext:"reference"}),f=Pv(u,a.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:Fv(f)}}}case"escaped":{const u=await l.detectOverflow(n,{...s,altBoundary:!0}),f=Pv(u,a.floating);return{data:{escapedOffsets:f,escaped:Fv(f)}}}default:return{}}}}},pw=new Set(["left","top"]);async function M_(e,n){const{placement:a,platform:l,elements:o}=e,s=await(l.isRTL==null?void 0:l.isRTL(o.floating)),u=$r(a),f=Ti(a),p=fr(a)==="y",m=pw.has(u)?-1:1,y=s&&p?-1:1,g=Hr(n,e);let{mainAxis:b,crossAxis:w,alignmentAxis:k}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof k=="number"&&(w=f==="end"?k*-1:k),p?{x:w*y,y:b*m}:{x:b*m,y:w*y}}const O_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var a,l;const{x:o,y:s,placement:u,middlewareData:f}=n,p=await M_(n,e);return u===((a=f.offset)==null?void 0:a.placement)&&(l=f.arrow)!=null&&l.alignmentOffset?{}:{x:o+p.x,y:s+p.y,data:{...p,placement:u}}}}},D_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:a,y:l,placement:o,platform:s}=n,{mainAxis:u=!0,crossAxis:f=!1,limiter:p={fn:A=>{let{x:N,y:j}=A;return{x:N,y:j}}},...m}=Hr(e,n),y={x:a,y:l},g=await s.detectOverflow(n,m),b=fr($r(o)),w=bh(b);let k=y[w],S=y[b];if(u){const A=w==="y"?"top":"left",N=w==="y"?"bottom":"right",j=k+g[A],O=k-g[N];k=Mm(j,k,O)}if(f){const A=b==="y"?"top":"left",N=b==="y"?"bottom":"right",j=S+g[A],O=S-g[N];S=Mm(j,S,O)}const E=p.fn({...n,[w]:k,[b]:S});return{...E,data:{x:E.x-a,y:E.y-l,enabled:{[w]:u,[b]:f}}}}}},z_=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:a,y:l,placement:o,rects:s,middlewareData:u}=n,{offset:f=0,mainAxis:p=!0,crossAxis:m=!0}=Hr(e,n),y={x:a,y:l},g=fr(o),b=bh(g);let w=y[b],k=y[g];const S=Hr(f,n),E=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(p){const j=b==="y"?"height":"width",O=s.reference[b]-s.floating[j]+E.mainAxis,z=s.reference[b]+s.reference[j]-E.mainAxis;w<O?w=O:w>z&&(w=z)}if(m){var A,N;const j=b==="y"?"width":"height",O=pw.has($r(o)),z=s.reference[g]-s.floating[j]+(O&&((A=u.offset)==null?void 0:A[g])||0)+(O?0:E.crossAxis),M=s.reference[g]+s.reference[j]+(O?0:((N=u.offset)==null?void 0:N[g])||0)-(O?E.crossAxis:0);k<z?k=z:k>M&&(k=M)}return{[b]:w,[g]:k}}}},L_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var a,l;const{placement:o,rects:s,platform:u,elements:f}=n,{apply:p=()=>{},...m}=Hr(e,n),y=await u.detectOverflow(n,m),g=$r(o),b=Ti(o),w=fr(o)==="y",{width:k,height:S}=s.floating;let E,A;g==="top"||g==="bottom"?(E=g,A=b===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(A=g,E=b==="end"?"top":"bottom");const N=S-y.top-y.bottom,j=k-y.left-y.right,O=Ra(S-y[E],N),z=Ra(k-y[A],j),M=!n.middlewareData.shift;let F=O,U=z;if((a=n.middlewareData.shift)!=null&&a.enabled.x&&(U=j),(l=n.middlewareData.shift)!=null&&l.enabled.y&&(F=N),M&&!b){const B=Nn(y.left,0),G=Nn(y.right,0),q=Nn(y.top,0),me=Nn(y.bottom,0);w?U=k-2*(B!==0||G!==0?B+G:Nn(y.left,y.right)):F=S-2*(q!==0||me!==0?q+me:Nn(y.top,y.bottom))}await p({...n,availableWidth:U,availableHeight:F});const Y=await u.getDimensions(f.floating);return k!==Y.width||S!==Y.height?{reset:{rects:!0}}:{}}}};function Ku(){return typeof window<"u"}function _i(e){return mw(e)?(e.nodeName||"").toLowerCase():"#document"}function Tn(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function hr(e){var n;return(n=(mw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function mw(e){return Ku()?e instanceof Node||e instanceof Tn(e).Node:!1}function tr(e){return Ku()?e instanceof Element||e instanceof Tn(e).Element:!1}function Vr(e){return Ku()?e instanceof HTMLElement||e instanceof Tn(e).HTMLElement:!1}function Uv(e){return!Ku()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Tn(e).ShadowRoot}function Ss(e){const{overflow:n,overflowX:a,overflowY:l,display:o}=nr(e);return/auto|scroll|overlay|hidden|clip/.test(n+l+a)&&o!=="inline"&&o!=="contents"}function I_(e){return/^(table|td|th)$/.test(_i(e))}function Qu(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const B_=/transform|translate|scale|rotate|perspective|filter/,P_=/paint|layout|strict|content/,il=e=>!!e&&e!=="none";let Wp;function Sh(e){const n=tr(e)?nr(e):e;return il(n.transform)||il(n.translate)||il(n.scale)||il(n.rotate)||il(n.perspective)||!kh()&&(il(n.backdropFilter)||il(n.filter))||B_.test(n.willChange||"")||P_.test(n.contain||"")}function F_(e){let n=Ma(e);for(;Vr(n)&&!bi(n);){if(Sh(n))return n;if(Qu(n))return null;n=Ma(n)}return null}function kh(){return Wp==null&&(Wp=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Wp}function bi(e){return/^(html|body|#document)$/.test(_i(e))}function nr(e){return Tn(e).getComputedStyle(e)}function Zu(e){return tr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ma(e){if(_i(e)==="html")return e;const n=e.assignedSlot||e.parentNode||Uv(e)&&e.host||hr(e);return Uv(n)?n.host:n}function hw(e){const n=Ma(e);return bi(n)?e.ownerDocument?e.ownerDocument.body:e.body:Vr(n)&&Ss(n)?n:hw(n)}function ts(e,n,a){var l;n===void 0&&(n=[]),a===void 0&&(a=!0);const o=hw(e),s=o===((l=e.ownerDocument)==null?void 0:l.body),u=Tn(o);if(s){const f=Dm(u);return n.concat(u,u.visualViewport||[],Ss(o)?o:[],f&&a?ts(f):[])}else return n.concat(o,ts(o,[],a))}function Dm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function gw(e){const n=nr(e);let a=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const o=Vr(e),s=o?e.offsetWidth:a,u=o?e.offsetHeight:l,f=wu(a)!==s||wu(l)!==u;return f&&(a=s,l=u),{width:a,height:l,$:f}}function Ch(e){return tr(e)?e:e.contextElement}function hi(e){const n=Ch(e);if(!Vr(n))return pr(1);const a=n.getBoundingClientRect(),{width:l,height:o,$:s}=gw(n);let u=(s?wu(a.width):a.width)/l,f=(s?wu(a.height):a.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const U_=pr(0);function yw(e){const n=Tn(e);return!kh()||!n.visualViewport?U_:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function H_(e,n,a){return n===void 0&&(n=!1),!a||n&&a!==Tn(e)?!1:n}function fl(e,n,a,l){n===void 0&&(n=!1),a===void 0&&(a=!1);const o=e.getBoundingClientRect(),s=Ch(e);let u=pr(1);n&&(l?tr(l)&&(u=hi(l)):u=hi(e));const f=H_(s,a,l)?yw(s):pr(0);let p=(o.left+f.x)/u.x,m=(o.top+f.y)/u.y,y=o.width/u.x,g=o.height/u.y;if(s){const b=Tn(s),w=l&&tr(l)?Tn(l):l;let k=b,S=Dm(k);for(;S&&l&&w!==k;){const E=hi(S),A=S.getBoundingClientRect(),N=nr(S),j=A.left+(S.clientLeft+parseFloat(N.paddingLeft))*E.x,O=A.top+(S.clientTop+parseFloat(N.paddingTop))*E.y;p*=E.x,m*=E.y,y*=E.x,g*=E.y,p+=j,m+=O,k=Tn(S),S=Dm(k)}}return ku({width:y,height:g,x:p,y:m})}function Wu(e,n){const a=Zu(e).scrollLeft;return n?n.left+a:fl(hr(e)).left+a}function xw(e,n){const a=e.getBoundingClientRect(),l=a.left+n.scrollLeft-Wu(e,a),o=a.top+n.scrollTop;return{x:l,y:o}}function $_(e){let{elements:n,rect:a,offsetParent:l,strategy:o}=e;const s=o==="fixed",u=hr(l),f=n?Qu(n.floating):!1;if(l===u||f&&s)return a;let p={scrollLeft:0,scrollTop:0},m=pr(1);const y=pr(0),g=Vr(l);if((g||!g&&!s)&&((_i(l)!=="body"||Ss(u))&&(p=Zu(l)),g)){const w=fl(l);m=hi(l),y.x=w.x+l.clientLeft,y.y=w.y+l.clientTop}const b=u&&!g&&!s?xw(u,p):pr(0);return{width:a.width*m.x,height:a.height*m.y,x:a.x*m.x-p.scrollLeft*m.x+y.x+b.x,y:a.y*m.y-p.scrollTop*m.y+y.y+b.y}}function V_(e){return Array.from(e.getClientRects())}function q_(e){const n=hr(e),a=Zu(e),l=e.ownerDocument.body,o=Nn(n.scrollWidth,n.clientWidth,l.scrollWidth,l.clientWidth),s=Nn(n.scrollHeight,n.clientHeight,l.scrollHeight,l.clientHeight);let u=-a.scrollLeft+Wu(e);const f=-a.scrollTop;return nr(l).direction==="rtl"&&(u+=Nn(n.clientWidth,l.clientWidth)-o),{width:o,height:s,x:u,y:f}}const Hv=25;function G_(e,n){const a=Tn(e),l=hr(e),o=a.visualViewport;let s=l.clientWidth,u=l.clientHeight,f=0,p=0;if(o){s=o.width,u=o.height;const y=kh();(!y||y&&n==="fixed")&&(f=o.offsetLeft,p=o.offsetTop)}const m=Wu(l);if(m<=0){const y=l.ownerDocument,g=y.body,b=getComputedStyle(g),w=y.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,k=Math.abs(l.clientWidth-g.clientWidth-w);k<=Hv&&(s-=k)}else m<=Hv&&(s+=m);return{width:s,height:u,x:f,y:p}}function Y_(e,n){const a=fl(e,!0,n==="fixed"),l=a.top+e.clientTop,o=a.left+e.clientLeft,s=Vr(e)?hi(e):pr(1),u=e.clientWidth*s.x,f=e.clientHeight*s.y,p=o*s.x,m=l*s.y;return{width:u,height:f,x:p,y:m}}function $v(e,n,a){let l;if(n==="viewport")l=G_(e,a);else if(n==="document")l=q_(hr(e));else if(tr(n))l=Y_(n,a);else{const o=yw(e);l={x:n.x-o.x,y:n.y-o.y,width:n.width,height:n.height}}return ku(l)}function bw(e,n){const a=Ma(e);return a===n||!tr(a)||bi(a)?!1:nr(a).position==="fixed"||bw(a,n)}function X_(e,n){const a=n.get(e);if(a)return a;let l=ts(e,[],!1).filter(f=>tr(f)&&_i(f)!=="body"),o=null;const s=nr(e).position==="fixed";let u=s?Ma(e):e;for(;tr(u)&&!bi(u);){const f=nr(u),p=Sh(u);!p&&f.position==="fixed"&&(o=null),(s?!p&&!o:!p&&f.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Ss(u)&&!p&&bw(e,u))?l=l.filter(y=>y!==u):o=f,u=Ma(u)}return n.set(e,l),l}function K_(e){let{element:n,boundary:a,rootBoundary:l,strategy:o}=e;const u=[...a==="clippingAncestors"?Qu(n)?[]:X_(n,this._c):[].concat(a),l],f=$v(n,u[0],o);let p=f.top,m=f.right,y=f.bottom,g=f.left;for(let b=1;b<u.length;b++){const w=$v(n,u[b],o);p=Nn(w.top,p),m=Ra(w.right,m),y=Ra(w.bottom,y),g=Nn(w.left,g)}return{width:m-g,height:y-p,x:g,y:p}}function Q_(e){const{width:n,height:a}=gw(e);return{width:n,height:a}}function Z_(e,n,a){const l=Vr(n),o=hr(n),s=a==="fixed",u=fl(e,!0,s,n);let f={scrollLeft:0,scrollTop:0};const p=pr(0);function m(){p.x=Wu(o)}if(l||!l&&!s)if((_i(n)!=="body"||Ss(o))&&(f=Zu(n)),l){const w=fl(n,!0,s,n);p.x=w.x+n.clientLeft,p.y=w.y+n.clientTop}else o&&m();s&&!l&&o&&m();const y=o&&!l&&!s?xw(o,f):pr(0),g=u.left+f.scrollLeft-p.x-y.x,b=u.top+f.scrollTop-p.y-y.y;return{x:g,y:b,width:u.width,height:u.height}}function Jp(e){return nr(e).position==="static"}function Vv(e,n){if(!Vr(e)||nr(e).position==="fixed")return null;if(n)return n(e);let a=e.offsetParent;return hr(e)===a&&(a=a.ownerDocument.body),a}function vw(e,n){const a=Tn(e);if(Qu(e))return a;if(!Vr(e)){let o=Ma(e);for(;o&&!bi(o);){if(tr(o)&&!Jp(o))return o;o=Ma(o)}return a}let l=Vv(e,n);for(;l&&I_(l)&&Jp(l);)l=Vv(l,n);return l&&bi(l)&&Jp(l)&&!Sh(l)?a:l||F_(e)||a}const W_=async function(e){const n=this.getOffsetParent||vw,a=this.getDimensions,l=await a(e.floating);return{reference:Z_(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function J_(e){return nr(e).direction==="rtl"}const eR={convertOffsetParentRelativeRectToViewportRelativeRect:$_,getDocumentElement:hr,getClippingRect:K_,getOffsetParent:vw,getElementRects:W_,getClientRects:V_,getDimensions:Q_,getScale:hi,isElement:tr,isRTL:J_};function ww(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function tR(e,n){let a=null,l;const o=hr(e);function s(){var f;clearTimeout(l),(f=a)==null||f.disconnect(),a=null}function u(f,p){f===void 0&&(f=!1),p===void 0&&(p=1),s();const m=e.getBoundingClientRect(),{left:y,top:g,width:b,height:w}=m;if(f||n(),!b||!w)return;const k=nu(g),S=nu(o.clientWidth-(y+b)),E=nu(o.clientHeight-(g+w)),A=nu(y),j={rootMargin:-k+"px "+-S+"px "+-E+"px "+-A+"px",threshold:Nn(0,Ra(1,p))||1};let O=!0;function z(M){const F=M[0].intersectionRatio;if(F!==p){if(!O)return u();F?u(!1,F):l=setTimeout(()=>{u(!1,1e-7)},1e3)}F===1&&!ww(m,e.getBoundingClientRect())&&u(),O=!1}try{a=new IntersectionObserver(z,{...j,root:o.ownerDocument})}catch{a=new IntersectionObserver(z,j)}a.observe(e)}return u(!0),s}function nR(e,n,a,l){l===void 0&&(l={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:p=!1}=l,m=Ch(e),y=o||s?[...m?ts(m):[],...n?ts(n):[]]:[];y.forEach(A=>{o&&A.addEventListener("scroll",a,{passive:!0}),s&&A.addEventListener("resize",a)});const g=m&&f?tR(m,a):null;let b=-1,w=null;u&&(w=new ResizeObserver(A=>{let[N]=A;N&&N.target===m&&w&&n&&(w.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var j;(j=w)==null||j.observe(n)})),a()}),m&&!p&&w.observe(m),n&&w.observe(n));let k,S=p?fl(e):null;p&&E();function E(){const A=fl(e);S&&!ww(S,A)&&a(),S=A,k=requestAnimationFrame(E)}return a(),()=>{var A;y.forEach(N=>{o&&N.removeEventListener("scroll",a),s&&N.removeEventListener("resize",a)}),g==null||g(),(A=w)==null||A.disconnect(),w=null,p&&cancelAnimationFrame(k)}}const rR=O_,aR=D_,lR=__,iR=L_,oR=R_,qv=T_,sR=z_,cR=(e,n,a)=>{const l=new Map,o={platform:eR,...a},s={...o.platform,_c:l};return j_(e,n,{...o,platform:s})};var uR=typeof document<"u",dR=function(){},pu=uR?v.useLayoutEffect:dR;function Cu(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let a,l,o;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==n.length)return!1;for(l=a;l--!==0;)if(!Cu(e[l],n[l]))return!1;return!0}if(o=Object.keys(e),a=o.length,a!==Object.keys(n).length)return!1;for(l=a;l--!==0;)if(!{}.hasOwnProperty.call(n,o[l]))return!1;for(l=a;l--!==0;){const s=o[l];if(!(s==="_owner"&&e.$$typeof)&&!Cu(e[s],n[s]))return!1}return!0}return e!==e&&n!==n}function Sw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gv(e,n){const a=Sw(e);return Math.round(n*a)/a}function em(e){const n=v.useRef(e);return pu(()=>{n.current=e}),n}function fR(e){e===void 0&&(e={});const{placement:n="bottom",strategy:a="absolute",middleware:l=[],platform:o,elements:{reference:s,floating:u}={},transform:f=!0,whileElementsMounted:p,open:m}=e,[y,g]=v.useState({x:0,y:0,strategy:a,placement:n,middlewareData:{},isPositioned:!1}),[b,w]=v.useState(l);Cu(b,l)||w(l);const[k,S]=v.useState(null),[E,A]=v.useState(null),N=v.useCallback(J=>{J!==M.current&&(M.current=J,S(J))},[]),j=v.useCallback(J=>{J!==F.current&&(F.current=J,A(J))},[]),O=s||k,z=u||E,M=v.useRef(null),F=v.useRef(null),U=v.useRef(y),Y=p!=null,B=em(p),G=em(o),q=em(m),me=v.useCallback(()=>{if(!M.current||!F.current)return;const J={placement:n,strategy:a,middleware:b};G.current&&(J.platform=G.current),cR(M.current,F.current,J).then(Z=>{const R={...Z,isPositioned:q.current!==!1};ne.current&&!Cu(U.current,R)&&(U.current=R,ys.flushSync(()=>{g(R)}))})},[b,n,a,G,q]);pu(()=>{m===!1&&U.current.isPositioned&&(U.current.isPositioned=!1,g(J=>({...J,isPositioned:!1})))},[m]);const ne=v.useRef(!1);pu(()=>(ne.current=!0,()=>{ne.current=!1}),[]),pu(()=>{if(O&&(M.current=O),z&&(F.current=z),O&&z){if(B.current)return B.current(O,z,me);me()}},[O,z,me,B,Y]);const ee=v.useMemo(()=>({reference:M,floating:F,setReference:N,setFloating:j}),[N,j]),I=v.useMemo(()=>({reference:O,floating:z}),[O,z]),X=v.useMemo(()=>{const J={position:a,left:0,top:0};if(!I.floating)return J;const Z=Gv(I.floating,y.x),R=Gv(I.floating,y.y);return f?{...J,transform:"translate("+Z+"px, "+R+"px)",...Sw(I.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:Z,top:R}},[a,f,I.floating,y.x,y.y]);return v.useMemo(()=>({...y,update:me,refs:ee,elements:I,floatingStyles:X}),[y,me,ee,I,X])}const pR=e=>{function n(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){const{element:l,padding:o}=typeof e=="function"?e(a):e;return l&&n(l)?l.current!=null?qv({element:l.current,padding:o}).fn(a):{}:l?qv({element:l,padding:o}).fn(a):{}}}},mR=(e,n)=>{const a=rR(e);return{name:a.name,fn:a.fn,options:[e,n]}},hR=(e,n)=>{const a=aR(e);return{name:a.name,fn:a.fn,options:[e,n]}},gR=(e,n)=>({fn:sR(e).fn,options:[e,n]}),yR=(e,n)=>{const a=lR(e);return{name:a.name,fn:a.fn,options:[e,n]}},xR=(e,n)=>{const a=iR(e);return{name:a.name,fn:a.fn,options:[e,n]}},bR=(e,n)=>{const a=oR(e);return{name:a.name,fn:a.fn,options:[e,n]}},vR=(e,n)=>{const a=pR(e);return{name:a.name,fn:a.fn,options:[e,n]}};var wR="Arrow",kw=v.forwardRef((e,n)=>{const{children:a,width:l=10,height:o=5,...s}=e;return d.jsx(Ae.svg,{...s,ref:n,width:l,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?a:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});kw.displayName=wR;var SR=kw,Eh="Popper",[Cw,za]=Rn(Eh),[kR,Ew]=Cw(Eh),Aw=e=>{const{__scopePopper:n,children:a}=e,[l,o]=v.useState(null);return d.jsx(kR,{scope:n,anchor:l,onAnchorChange:o,children:a})};Aw.displayName=Eh;var Nw="PopperAnchor",jw=v.forwardRef((e,n)=>{const{__scopePopper:a,virtualRef:l,...o}=e,s=Ew(Nw,a),u=v.useRef(null),f=qe(n,u),p=v.useRef(null);return v.useEffect(()=>{const m=p.current;p.current=(l==null?void 0:l.current)||u.current,m!==p.current&&s.onAnchorChange(p.current)}),l?null:d.jsx(Ae.div,{...o,ref:f})});jw.displayName=Nw;var Ah="PopperContent",[CR,ER]=Cw(Ah),Tw=v.forwardRef((e,n)=>{var ie,be,he,Te,ze,Le,ft,et;const{__scopePopper:a,side:l="bottom",sideOffset:o=0,align:s="center",alignOffset:u=0,arrowPadding:f=0,avoidCollisions:p=!0,collisionBoundary:m=[],collisionPadding:y=0,sticky:g="partial",hideWhenDetached:b=!1,updatePositionStrategy:w="optimized",onPlaced:k,...S}=e,E=Ew(Ah,a),[A,N]=v.useState(null),j=qe(n,Dt=>N(Dt)),[O,z]=v.useState(null),M=g_(O),F=(ie=M==null?void 0:M.width)!=null?ie:0,U=(be=M==null?void 0:M.height)!=null?be:0,Y=l+(s!=="center"?"-"+s:""),B=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},G=Array.isArray(m)?m:[m],q=G.length>0,me={padding:B,boundary:G.filter(NR),altBoundary:q},{refs:ne,floatingStyles:ee,placement:I,isPositioned:X,middlewareData:J}=fR({strategy:"fixed",placement:Y,whileElementsMounted:(...Dt)=>nR(...Dt,{animationFrame:w==="always"}),elements:{reference:E.anchor},middleware:[mR({mainAxis:o+U,alignmentAxis:u}),p&&hR({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?gR():void 0,...me}),p&&yR({...me}),xR({...me,apply:({elements:Dt,rects:Vt,availableWidth:Mn,availableHeight:Gr})=>{const{width:an,height:ln}=Vt.reference,on=Dt.floating.style;on.setProperty("--radix-popper-available-width",`${Mn}px`),on.setProperty("--radix-popper-available-height",`${Gr}px`),on.setProperty("--radix-popper-anchor-width",`${an}px`),on.setProperty("--radix-popper-anchor-height",`${ln}px`)}}),O&&vR({element:O,padding:f}),jR({arrowWidth:F,arrowHeight:U}),b&&bR({strategy:"referenceHidden",...me})]}),[Z,R]=Mw(I),D=$t(k);It(()=>{X&&(D==null||D())},[X,D]);const L=(he=J.arrow)==null?void 0:he.x,T=(Te=J.arrow)==null?void 0:Te.y,te=((ze=J.arrow)==null?void 0:ze.centerOffset)!==0,[ae,le]=v.useState();return It(()=>{A&&le(window.getComputedStyle(A).zIndex)},[A]),d.jsx("div",{ref:ne.setFloating,"data-radix-popper-content-wrapper":"",style:{...ee,transform:X?ee.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ae,"--radix-popper-transform-origin":[(Le=J.transformOrigin)==null?void 0:Le.x,(ft=J.transformOrigin)==null?void 0:ft.y].join(" "),...((et=J.hide)==null?void 0:et.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(CR,{scope:a,placedSide:Z,onArrowChange:z,arrowX:L,arrowY:T,shouldHideArrow:te,children:d.jsx(Ae.div,{"data-side":Z,"data-align":R,...S,ref:j,style:{...S.style,animation:X?void 0:"none"}})})})});Tw.displayName=Ah;var _w="PopperArrow",AR={top:"bottom",right:"left",bottom:"top",left:"right"},Rw=v.forwardRef(function(n,a){const{__scopePopper:l,...o}=n,s=ER(_w,l),u=AR[s.placedSide];return d.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:d.jsx(SR,{...o,ref:a,style:{...o.style,display:"block"}})})});Rw.displayName=_w;function NR(e){return e!==null}var jR=e=>({name:"transformOrigin",options:e,fn(n){var E,A,N,j,O;const{placement:a,rects:l,middlewareData:o}=n,u=((E=o.arrow)==null?void 0:E.centerOffset)!==0,f=u?0:e.arrowWidth,p=u?0:e.arrowHeight,[m,y]=Mw(a),g={start:"0%",center:"50%",end:"100%"}[y],b=((N=(A=o.arrow)==null?void 0:A.x)!=null?N:0)+f/2,w=((O=(j=o.arrow)==null?void 0:j.y)!=null?O:0)+p/2;let k="",S="";return m==="bottom"?(k=u?g:`${b}px`,S=`${-p}px`):m==="top"?(k=u?g:`${b}px`,S=`${l.floating.height+p}px`):m==="right"?(k=`${-p}px`,S=u?g:`${w}px`):m==="left"&&(k=`${l.floating.width+p}px`,S=u?g:`${w}px`),{data:{x:k,y:S}}}});function Mw(e){const[n,a="center"]=e.split("-");return[n,a]}var Ju=Aw,ks=jw,ed=Tw,td=Rw,tm="rovingFocusGroup.onEntryFocus",TR={bubbles:!1,cancelable:!0},Cs="RovingFocusGroup",[zm,Ow,_R]=sh(Cs),[RR,nd]=Rn(Cs,[_R]),[MR,OR]=RR(Cs),Dw=v.forwardRef((e,n)=>d.jsx(zm.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(zm.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(DR,{...e,ref:n})})}));Dw.displayName=Cs;var DR=v.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:a,orientation:l,loop:o=!1,dir:s,currentTabStopId:u,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:p,onEntryFocus:m,preventScrollOnEntryFocus:y=!1,...g}=e,b=v.useRef(null),w=qe(n,b),k=bs(s),[S,E]=Ur({prop:u,defaultProp:f!=null?f:null,onChange:p,caller:Cs}),[A,N]=v.useState(!1),j=$t(m),O=Ow(a),z=v.useRef(!1),[M,F]=v.useState(0);return v.useEffect(()=>{const U=b.current;if(U)return U.addEventListener(tm,j),()=>U.removeEventListener(tm,j)},[j]),d.jsx(MR,{scope:a,orientation:l,dir:k,loop:o,currentTabStopId:S,onItemFocus:v.useCallback(U=>E(U),[E]),onItemShiftTab:v.useCallback(()=>N(!0),[]),onFocusableItemAdd:v.useCallback(()=>F(U=>U+1),[]),onFocusableItemRemove:v.useCallback(()=>F(U=>U-1),[]),children:d.jsx(Ae.div,{tabIndex:A||M===0?-1:0,"data-orientation":l,...g,ref:w,style:{outline:"none",...e.style},onMouseDown:ve(e.onMouseDown,()=>{z.current=!0}),onFocus:ve(e.onFocus,U=>{const Y=!z.current;if(U.target===U.currentTarget&&Y&&!A){const B=new CustomEvent(tm,TR);if(U.currentTarget.dispatchEvent(B),!B.defaultPrevented){const G=O().filter(I=>I.focusable),q=G.find(I=>I.active),me=G.find(I=>I.id===S),ee=[q,me,...G].filter(Boolean).map(I=>I.ref.current);Iw(ee,y)}}z.current=!1}),onBlur:ve(e.onBlur,()=>N(!1))})})}),zw="RovingFocusGroupItem",Lw=v.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:a,focusable:l=!0,active:o=!1,tabStopId:s,children:u,...f}=e,p=Ot(),m=s||p,y=OR(zw,a),g=y.currentTabStopId===m,b=Ow(a),{onFocusableItemAdd:w,onFocusableItemRemove:k,currentTabStopId:S}=y;return v.useEffect(()=>{if(l)return w(),()=>k()},[l,w,k]),d.jsx(zm.ItemSlot,{scope:a,id:m,focusable:l,active:o,children:d.jsx(Ae.span,{tabIndex:g?0:-1,"data-orientation":y.orientation,...f,ref:n,onMouseDown:ve(e.onMouseDown,E=>{l?y.onItemFocus(m):E.preventDefault()}),onFocus:ve(e.onFocus,()=>y.onItemFocus(m)),onKeyDown:ve(e.onKeyDown,E=>{if(E.key==="Tab"&&E.shiftKey){y.onItemShiftTab();return}if(E.target!==E.currentTarget)return;const A=IR(E,y.orientation,y.dir);if(A!==void 0){if(E.metaKey||E.ctrlKey||E.altKey||E.shiftKey)return;E.preventDefault();let j=b().filter(O=>O.focusable).map(O=>O.ref.current);if(A==="last")j.reverse();else if(A==="prev"||A==="next"){A==="prev"&&j.reverse();const O=j.indexOf(E.currentTarget);j=y.loop?BR(j,O+1):j.slice(O+1)}setTimeout(()=>Iw(j))}}),children:typeof u=="function"?u({isCurrentTabStop:g,hasTabStop:S!=null}):u})})});Lw.displayName=zw;var zR={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function LR(e,n){return n!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function IR(e,n,a){const l=LR(e.key,a);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(l))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(l)))return zR[l]}function Iw(e,n=!1){const a=document.activeElement;for(const l of e)if(l===a||(l.focus({preventScroll:n}),document.activeElement!==a))return}function BR(e,n){return e.map((a,l)=>e[(n+l)%e.length])}var Bw=Dw,Pw=Lw,Lm=["Enter"," "],PR=["ArrowDown","PageUp","Home"],Fw=["ArrowUp","PageDown","End"],FR=[...PR,...Fw],UR={ltr:[...Lm,"ArrowRight"],rtl:[...Lm,"ArrowLeft"]},HR={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Es="Menu",[ns,$R,VR]=sh(Es),[yl,Uw]=Rn(Es,[VR,za,nd]),rd=za(),Hw=nd(),[qR,xl]=yl(Es),[GR,As]=yl(Es),$w=e=>{const{__scopeMenu:n,open:a=!1,children:l,dir:o,onOpenChange:s,modal:u=!0}=e,f=rd(n),[p,m]=v.useState(null),y=v.useRef(!1),g=$t(s),b=bs(o);return v.useEffect(()=>{const w=()=>{y.current=!0,document.addEventListener("pointerdown",k,{capture:!0,once:!0}),document.addEventListener("pointermove",k,{capture:!0,once:!0})},k=()=>y.current=!1;return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",k,{capture:!0}),document.removeEventListener("pointermove",k,{capture:!0})}},[]),d.jsx(Ju,{...f,children:d.jsx(qR,{scope:n,open:a,onOpenChange:g,content:p,onContentChange:m,children:d.jsx(GR,{scope:n,onClose:v.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:y,dir:b,modal:u,children:l})})})};$w.displayName=Es;var YR="MenuAnchor",Nh=v.forwardRef((e,n)=>{const{__scopeMenu:a,...l}=e,o=rd(a);return d.jsx(ks,{...o,...l,ref:n})});Nh.displayName=YR;var jh="MenuPortal",[XR,Vw]=yl(jh,{forceMount:void 0}),qw=e=>{const{__scopeMenu:n,forceMount:a,children:l,container:o}=e,s=xl(jh,n);return d.jsx(XR,{scope:n,forceMount:a,children:d.jsx(Bt,{present:a||s.open,children:d.jsx(ji,{asChild:!0,container:o,children:l})})})};qw.displayName=jh;var Gn="MenuContent",[KR,Th]=yl(Gn),Gw=v.forwardRef((e,n)=>{const a=Vw(Gn,e.__scopeMenu),{forceMount:l=a.forceMount,...o}=e,s=xl(Gn,e.__scopeMenu),u=As(Gn,e.__scopeMenu);return d.jsx(ns.Provider,{scope:e.__scopeMenu,children:d.jsx(Bt,{present:l||s.open,children:d.jsx(ns.Slot,{scope:e.__scopeMenu,children:u.modal?d.jsx(QR,{...o,ref:n}):d.jsx(ZR,{...o,ref:n})})})})}),QR=v.forwardRef((e,n)=>{const a=xl(Gn,e.__scopeMenu),l=v.useRef(null),o=qe(n,l);return v.useEffect(()=>{const s=l.current;if(s)return Gu(s)},[]),d.jsx(_h,{...e,ref:o,trapFocus:a.open,disableOutsidePointerEvents:a.open,disableOutsideScroll:!0,onFocusOutside:ve(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>a.onOpenChange(!1)})}),ZR=v.forwardRef((e,n)=>{const a=xl(Gn,e.__scopeMenu);return d.jsx(_h,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>a.onOpenChange(!1)})}),WR=_a("MenuContent.ScrollLock"),_h=v.forwardRef((e,n)=>{const{__scopeMenu:a,loop:l=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:u,disableOutsidePointerEvents:f,onEntryFocus:p,onEscapeKeyDown:m,onPointerDownOutside:y,onFocusOutside:g,onInteractOutside:b,onDismiss:w,disableOutsideScroll:k,...S}=e,E=xl(Gn,a),A=As(Gn,a),N=rd(a),j=Hw(a),O=$R(a),[z,M]=v.useState(null),F=v.useRef(null),U=qe(n,F,E.onContentChange),Y=v.useRef(0),B=v.useRef(""),G=v.useRef(0),q=v.useRef(null),me=v.useRef("right"),ne=v.useRef(0),ee=k?ws:v.Fragment,I=k?{as:WR,allowPinchZoom:!0}:void 0,X=Z=>{var ie,be;const R=B.current+Z,D=O().filter(he=>!he.disabled),L=document.activeElement,T=(ie=D.find(he=>he.ref.current===L))==null?void 0:ie.textValue,te=D.map(he=>he.textValue),ae=uM(te,R,T),le=(be=D.find(he=>he.textValue===ae))==null?void 0:be.ref.current;(function he(Te){B.current=Te,window.clearTimeout(Y.current),Te!==""&&(Y.current=window.setTimeout(()=>he(""),1e3))})(R),le&&setTimeout(()=>le.focus())};v.useEffect(()=>()=>window.clearTimeout(Y.current),[]),Vu();const J=v.useCallback(Z=>{var D,L;return me.current===((D=q.current)==null?void 0:D.side)&&fM(Z,(L=q.current)==null?void 0:L.area)},[]);return d.jsx(KR,{scope:a,searchRef:B,onItemEnter:v.useCallback(Z=>{J(Z)&&Z.preventDefault()},[J]),onItemLeave:v.useCallback(Z=>{var R;J(Z)||((R=F.current)==null||R.focus(),M(null))},[J]),onTriggerLeave:v.useCallback(Z=>{J(Z)&&Z.preventDefault()},[J]),pointerGraceTimerRef:G,onPointerGraceIntentChange:v.useCallback(Z=>{q.current=Z},[]),children:d.jsx(ee,{...I,children:d.jsx(vs,{asChild:!0,trapped:o,onMountAutoFocus:ve(s,Z=>{var R;Z.preventDefault(),(R=F.current)==null||R.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:d.jsx(Ni,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:m,onPointerDownOutside:y,onFocusOutside:g,onInteractOutside:b,onDismiss:w,children:d.jsx(Bw,{asChild:!0,...j,dir:A.dir,orientation:"vertical",loop:l,currentTabStopId:z,onCurrentTabStopIdChange:M,onEntryFocus:ve(p,Z=>{A.isUsingKeyboardRef.current||Z.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(ed,{role:"menu","aria-orientation":"vertical","data-state":sS(E.open),"data-radix-menu-content":"",dir:A.dir,...N,...S,ref:U,style:{outline:"none",...S.style},onKeyDown:ve(S.onKeyDown,Z=>{const D=Z.target.closest("[data-radix-menu-content]")===Z.currentTarget,L=Z.ctrlKey||Z.altKey||Z.metaKey,T=Z.key.length===1;D&&(Z.key==="Tab"&&Z.preventDefault(),!L&&T&&X(Z.key));const te=F.current;if(Z.target!==te||!FR.includes(Z.key))return;Z.preventDefault();const le=O().filter(ie=>!ie.disabled).map(ie=>ie.ref.current);Fw.includes(Z.key)&&le.reverse(),sM(le)}),onBlur:ve(e.onBlur,Z=>{Z.currentTarget.contains(Z.target)||(window.clearTimeout(Y.current),B.current="")}),onPointerMove:ve(e.onPointerMove,rs(Z=>{const R=Z.target,D=ne.current!==Z.clientX;if(Z.currentTarget.contains(R)&&D){const L=Z.clientX>ne.current?"right":"left";me.current=L,ne.current=Z.clientX}}))})})})})})})});Gw.displayName=Gn;var JR="MenuGroup",Rh=v.forwardRef((e,n)=>{const{__scopeMenu:a,...l}=e;return d.jsx(Ae.div,{role:"group",...l,ref:n})});Rh.displayName=JR;var eM="MenuLabel",Yw=v.forwardRef((e,n)=>{const{__scopeMenu:a,...l}=e;return d.jsx(Ae.div,{...l,ref:n})});Yw.displayName=eM;var Eu="MenuItem",Yv="menu.itemSelect",ad=v.forwardRef((e,n)=>{const{disabled:a=!1,onSelect:l,...o}=e,s=v.useRef(null),u=As(Eu,e.__scopeMenu),f=Th(Eu,e.__scopeMenu),p=qe(n,s),m=v.useRef(!1),y=()=>{const g=s.current;if(!a&&g){const b=new CustomEvent(Yv,{bubbles:!0,cancelable:!0});g.addEventListener(Yv,w=>l==null?void 0:l(w),{once:!0}),_1(g,b),b.defaultPrevented?m.current=!1:u.onClose()}};return d.jsx(Xw,{...o,ref:p,disabled:a,onClick:ve(e.onClick,y),onPointerDown:g=>{var b;(b=e.onPointerDown)==null||b.call(e,g),m.current=!0},onPointerUp:ve(e.onPointerUp,g=>{var b;m.current||(b=g.currentTarget)==null||b.click()}),onKeyDown:ve(e.onKeyDown,g=>{const b=f.searchRef.current!=="";a||b&&g.key===" "||Lm.includes(g.key)&&(g.currentTarget.click(),g.preventDefault())})})});ad.displayName=Eu;var Xw=v.forwardRef((e,n)=>{const{__scopeMenu:a,disabled:l=!1,textValue:o,...s}=e,u=Th(Eu,a),f=Hw(a),p=v.useRef(null),m=qe(n,p),[y,g]=v.useState(!1),[b,w]=v.useState("");return v.useEffect(()=>{var S;const k=p.current;k&&w(((S=k.textContent)!=null?S:"").trim())},[s.children]),d.jsx(ns.ItemSlot,{scope:a,disabled:l,textValue:o!=null?o:b,children:d.jsx(Pw,{asChild:!0,...f,focusable:!l,children:d.jsx(Ae.div,{role:"menuitem","data-highlighted":y?"":void 0,"aria-disabled":l||void 0,"data-disabled":l?"":void 0,...s,ref:m,onPointerMove:ve(e.onPointerMove,rs(k=>{l?u.onItemLeave(k):(u.onItemEnter(k),k.defaultPrevented||k.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ve(e.onPointerLeave,rs(k=>u.onItemLeave(k))),onFocus:ve(e.onFocus,()=>g(!0)),onBlur:ve(e.onBlur,()=>g(!1))})})})}),tM="MenuCheckboxItem",Kw=v.forwardRef((e,n)=>{const{checked:a=!1,onCheckedChange:l,...o}=e;return d.jsx(eS,{scope:e.__scopeMenu,checked:a,children:d.jsx(ad,{role:"menuitemcheckbox","aria-checked":Au(a)?"mixed":a,...o,ref:n,"data-state":Oh(a),onSelect:ve(o.onSelect,()=>l==null?void 0:l(Au(a)?!0:!a),{checkForDefaultPrevented:!1})})})});Kw.displayName=tM;var Qw="MenuRadioGroup",[nM,rM]=yl(Qw,{value:void 0,onValueChange:()=>{}}),Zw=v.forwardRef((e,n)=>{const{value:a,onValueChange:l,...o}=e,s=$t(l);return d.jsx(nM,{scope:e.__scopeMenu,value:a,onValueChange:s,children:d.jsx(Rh,{...o,ref:n})})});Zw.displayName=Qw;var Ww="MenuRadioItem",Jw=v.forwardRef((e,n)=>{const{value:a,...l}=e,o=rM(Ww,e.__scopeMenu),s=a===o.value;return d.jsx(eS,{scope:e.__scopeMenu,checked:s,children:d.jsx(ad,{role:"menuitemradio","aria-checked":s,...l,ref:n,"data-state":Oh(s),onSelect:ve(l.onSelect,()=>{var u;return(u=o.onValueChange)==null?void 0:u.call(o,a)},{checkForDefaultPrevented:!1})})})});Jw.displayName=Ww;var Mh="MenuItemIndicator",[eS,aM]=yl(Mh,{checked:!1}),tS=v.forwardRef((e,n)=>{const{__scopeMenu:a,forceMount:l,...o}=e,s=aM(Mh,a);return d.jsx(Bt,{present:l||Au(s.checked)||s.checked===!0,children:d.jsx(Ae.span,{...o,ref:n,"data-state":Oh(s.checked)})})});tS.displayName=Mh;var lM="MenuSeparator",nS=v.forwardRef((e,n)=>{const{__scopeMenu:a,...l}=e;return d.jsx(Ae.div,{role:"separator","aria-orientation":"horizontal",...l,ref:n})});nS.displayName=lM;var iM="MenuArrow",rS=v.forwardRef((e,n)=>{const{__scopeMenu:a,...l}=e,o=rd(a);return d.jsx(td,{...o,...l,ref:n})});rS.displayName=iM;var oM="MenuSub",[EP,aS]=yl(oM),Yo="MenuSubTrigger",lS=v.forwardRef((e,n)=>{const a=xl(Yo,e.__scopeMenu),l=As(Yo,e.__scopeMenu),o=aS(Yo,e.__scopeMenu),s=Th(Yo,e.__scopeMenu),u=v.useRef(null),{pointerGraceTimerRef:f,onPointerGraceIntentChange:p}=s,m={__scopeMenu:e.__scopeMenu},y=v.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return v.useEffect(()=>y,[y]),v.useEffect(()=>{const g=f.current;return()=>{window.clearTimeout(g),p(null)}},[f,p]),d.jsx(Nh,{asChild:!0,...m,children:d.jsx(Xw,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":o.contentId,"data-state":sS(a.open),...e,ref:Fr(n,o.onTriggerChange),onClick:g=>{var b;(b=e.onClick)==null||b.call(e,g),!(e.disabled||g.defaultPrevented)&&(g.currentTarget.focus(),a.open||a.onOpenChange(!0))},onPointerMove:ve(e.onPointerMove,rs(g=>{s.onItemEnter(g),!g.defaultPrevented&&!e.disabled&&!a.open&&!u.current&&(s.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{a.onOpenChange(!0),y()},100))})),onPointerLeave:ve(e.onPointerLeave,rs(g=>{var w,k;y();const b=(w=a.content)==null?void 0:w.getBoundingClientRect();if(b){const S=(k=a.content)==null?void 0:k.dataset.side,E=S==="right",A=E?-5:5,N=b[E?"left":"right"],j=b[E?"right":"left"];s.onPointerGraceIntentChange({area:[{x:g.clientX+A,y:g.clientY},{x:N,y:b.top},{x:j,y:b.top},{x:j,y:b.bottom},{x:N,y:b.bottom}],side:S}),window.clearTimeout(f.current),f.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(g),g.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:ve(e.onKeyDown,g=>{var w;const b=s.searchRef.current!=="";e.disabled||b&&g.key===" "||UR[l.dir].includes(g.key)&&(a.onOpenChange(!0),(w=a.content)==null||w.focus(),g.preventDefault())})})})});lS.displayName=Yo;var iS="MenuSubContent",oS=v.forwardRef((e,n)=>{const a=Vw(Gn,e.__scopeMenu),{forceMount:l=a.forceMount,...o}=e,s=xl(Gn,e.__scopeMenu),u=As(Gn,e.__scopeMenu),f=aS(iS,e.__scopeMenu),p=v.useRef(null),m=qe(n,p);return d.jsx(ns.Provider,{scope:e.__scopeMenu,children:d.jsx(Bt,{present:l||s.open,children:d.jsx(ns.Slot,{scope:e.__scopeMenu,children:d.jsx(_h,{id:f.contentId,"aria-labelledby":f.triggerId,...o,ref:m,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:y=>{var g;u.isUsingKeyboardRef.current&&((g=p.current)==null||g.focus()),y.preventDefault()},onCloseAutoFocus:y=>y.preventDefault(),onFocusOutside:ve(e.onFocusOutside,y=>{y.target!==f.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:ve(e.onEscapeKeyDown,y=>{u.onClose(),y.preventDefault()}),onKeyDown:ve(e.onKeyDown,y=>{var w;const g=y.currentTarget.contains(y.target),b=HR[u.dir].includes(y.key);g&&b&&(s.onOpenChange(!1),(w=f.trigger)==null||w.focus(),y.preventDefault())})})})})})});oS.displayName=iS;function sS(e){return e?"open":"closed"}function Au(e){return e==="indeterminate"}function Oh(e){return Au(e)?"indeterminate":e?"checked":"unchecked"}function sM(e){const n=document.activeElement;for(const a of e)if(a===n||(a.focus(),document.activeElement!==n))return}function cM(e,n){return e.map((a,l)=>e[(n+l)%e.length])}function uM(e,n,a){const o=n.length>1&&Array.from(n).every(m=>m===n[0])?n[0]:n,s=a?e.indexOf(a):-1;let u=cM(e,Math.max(s,0));o.length===1&&(u=u.filter(m=>m!==a));const p=u.find(m=>m.toLowerCase().startsWith(o.toLowerCase()));return p!==a?p:void 0}function dM(e,n){const{x:a,y:l}=e;let o=!1;for(let s=0,u=n.length-1;s<n.length;u=s++){const f=n[s],p=n[u],m=f.x,y=f.y,g=p.x,b=p.y;y>l!=b>l&&a<(g-m)*(l-y)/(b-y)+m&&(o=!o)}return o}function fM(e,n){if(!n)return!1;const a={x:e.clientX,y:e.clientY};return dM(a,n)}function rs(e){return n=>n.pointerType==="mouse"?e(n):void 0}var pM=$w,mM=Nh,hM=qw,gM=Gw,yM=Rh,xM=Yw,bM=ad,vM=Kw,wM=Zw,SM=Jw,kM=tS,CM=nS,EM=rS,AM=lS,NM=oS,ld="DropdownMenu",[jM]=Rn(ld,[Uw]),rn=Uw(),[TM,cS]=jM(ld),uS=e=>{const{__scopeDropdownMenu:n,children:a,dir:l,open:o,defaultOpen:s,onOpenChange:u,modal:f=!0}=e,p=rn(n),m=v.useRef(null),[y,g]=Ur({prop:o,defaultProp:s!=null?s:!1,onChange:u,caller:ld});return d.jsx(TM,{scope:n,triggerId:Ot(),triggerRef:m,contentId:Ot(),open:y,onOpenChange:g,onOpenToggle:v.useCallback(()=>g(b=>!b),[g]),modal:f,children:d.jsx(pM,{...p,open:y,onOpenChange:g,dir:l,modal:f,children:a})})};uS.displayName=ld;var dS="DropdownMenuTrigger",fS=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,disabled:l=!1,...o}=e,s=cS(dS,a),u=rn(a);return d.jsx(mM,{asChild:!0,...u,children:d.jsx(Ae.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":l?"":void 0,disabled:l,...o,ref:Fr(n,s.triggerRef),onPointerDown:ve(e.onPointerDown,f=>{!l&&f.button===0&&f.ctrlKey===!1&&(s.onOpenToggle(),s.open||f.preventDefault())}),onKeyDown:ve(e.onKeyDown,f=>{l||(["Enter"," "].includes(f.key)&&s.onOpenToggle(),f.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(f.key)&&f.preventDefault())})})})});fS.displayName=dS;var _M="DropdownMenuPortal",pS=e=>{const{__scopeDropdownMenu:n,...a}=e,l=rn(n);return d.jsx(hM,{...l,...a})};pS.displayName=_M;var mS="DropdownMenuContent",hS=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...l}=e,o=cS(mS,a),s=rn(a),u=v.useRef(!1);return d.jsx(gM,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...l,ref:n,onCloseAutoFocus:ve(e.onCloseAutoFocus,f=>{var p;u.current||(p=o.triggerRef.current)==null||p.focus(),u.current=!1,f.preventDefault()}),onInteractOutside:ve(e.onInteractOutside,f=>{const p=f.detail.originalEvent,m=p.button===0&&p.ctrlKey===!0,y=p.button===2||m;(!o.modal||y)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});hS.displayName=mS;var RM="DropdownMenuGroup",MM=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...l}=e,o=rn(a);return d.jsx(yM,{...o,...l,ref:n})});MM.displayName=RM;var OM="DropdownMenuLabel",DM=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...l}=e,o=rn(a);return d.jsx(xM,{...o,...l,ref:n})});DM.displayName=OM;var zM="DropdownMenuItem",gS=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...l}=e,o=rn(a);return d.jsx(bM,{...o,...l,ref:n})});gS.displayName=zM;var LM="DropdownMenuCheckboxItem",IM=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...l}=e,o=rn(a);return d.jsx(vM,{...o,...l,ref:n})});IM.displayName=LM;var BM="DropdownMenuRadioGroup",PM=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...l}=e,o=rn(a);return d.jsx(wM,{...o,...l,ref:n})});PM.displayName=BM;var FM="DropdownMenuRadioItem",UM=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...l}=e,o=rn(a);return d.jsx(SM,{...o,...l,ref:n})});UM.displayName=FM;var HM="DropdownMenuItemIndicator",$M=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...l}=e,o=rn(a);return d.jsx(kM,{...o,...l,ref:n})});$M.displayName=HM;var VM="DropdownMenuSeparator",qM=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...l}=e,o=rn(a);return d.jsx(CM,{...o,...l,ref:n})});qM.displayName=VM;var GM="DropdownMenuArrow",YM=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...l}=e,o=rn(a);return d.jsx(EM,{...o,...l,ref:n})});YM.displayName=GM;var XM="DropdownMenuSubTrigger",KM=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...l}=e,o=rn(a);return d.jsx(AM,{...o,...l,ref:n})});KM.displayName=XM;var QM="DropdownMenuSubContent",ZM=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:a,...l}=e,o=rn(a);return d.jsx(NM,{...o,...l,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ZM.displayName=QM;var WM=uS,JM=fS,eO=pS,tO=hS,nO=gS,rO="Label",yS=v.forwardRef((e,n)=>d.jsx(Ae.label,{...e,ref:n,onMouseDown:a=>{var o;a.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,a),!a.defaultPrevented&&a.detail>1&&a.preventDefault())}}));yS.displayName=rO;var aO=yS;function Im(e,[n,a]){return Math.min(a,Math.max(n,e))}var id="Popover",[xS]=Rn(id,[za]),Ns=za(),[lO,La]=xS(id),bS=e=>{const{__scopePopover:n,children:a,open:l,defaultOpen:o,onOpenChange:s,modal:u=!1}=e,f=Ns(n),p=v.useRef(null),[m,y]=v.useState(!1),[g,b]=Ur({prop:l,defaultProp:o!=null?o:!1,onChange:s,caller:id});return d.jsx(Ju,{...f,children:d.jsx(lO,{scope:n,contentId:Ot(),triggerRef:p,open:g,onOpenChange:b,onOpenToggle:v.useCallback(()=>b(w=>!w),[b]),hasCustomAnchor:m,onCustomAnchorAdd:v.useCallback(()=>y(!0),[]),onCustomAnchorRemove:v.useCallback(()=>y(!1),[]),modal:u,children:a})})};bS.displayName=id;var vS="PopoverAnchor",wS=v.forwardRef((e,n)=>{const{__scopePopover:a,...l}=e,o=La(vS,a),s=Ns(a),{onCustomAnchorAdd:u,onCustomAnchorRemove:f}=o;return v.useEffect(()=>(u(),()=>f()),[u,f]),d.jsx(ks,{...s,...l,ref:n})});wS.displayName=vS;var SS="PopoverTrigger",kS=v.forwardRef((e,n)=>{const{__scopePopover:a,...l}=e,o=La(SS,a),s=Ns(a),u=qe(n,o.triggerRef),f=d.jsx(Ae.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":jS(o.open),...l,ref:u,onClick:ve(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?f:d.jsx(ks,{asChild:!0,...s,children:f})});kS.displayName=SS;var Dh="PopoverPortal",[iO,oO]=xS(Dh,{forceMount:void 0}),CS=e=>{const{__scopePopover:n,forceMount:a,children:l,container:o}=e,s=La(Dh,n);return d.jsx(iO,{scope:n,forceMount:a,children:d.jsx(Bt,{present:a||s.open,children:d.jsx(ji,{asChild:!0,container:o,children:l})})})};CS.displayName=Dh;var vi="PopoverContent",ES=v.forwardRef((e,n)=>{const a=oO(vi,e.__scopePopover),{forceMount:l=a.forceMount,...o}=e,s=La(vi,e.__scopePopover);return d.jsx(Bt,{present:l||s.open,children:s.modal?d.jsx(cO,{...o,ref:n}):d.jsx(uO,{...o,ref:n})})});ES.displayName=vi;var sO=_a("PopoverContent.RemoveScroll"),cO=v.forwardRef((e,n)=>{const a=La(vi,e.__scopePopover),l=v.useRef(null),o=qe(n,l),s=v.useRef(!1);return v.useEffect(()=>{const u=l.current;if(u)return Gu(u)},[]),d.jsx(ws,{as:sO,allowPinchZoom:!0,children:d.jsx(AS,{...e,ref:o,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ve(e.onCloseAutoFocus,u=>{var f;u.preventDefault(),s.current||(f=a.triggerRef.current)==null||f.focus()}),onPointerDownOutside:ve(e.onPointerDownOutside,u=>{const f=u.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0,m=f.button===2||p;s.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:ve(e.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1})})})}),uO=v.forwardRef((e,n)=>{const a=La(vi,e.__scopePopover),l=v.useRef(!1),o=v.useRef(!1);return d.jsx(AS,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var u,f;(u=e.onCloseAutoFocus)==null||u.call(e,s),s.defaultPrevented||(l.current||(f=a.triggerRef.current)==null||f.focus(),s.preventDefault()),l.current=!1,o.current=!1},onInteractOutside:s=>{var p,m;(p=e.onInteractOutside)==null||p.call(e,s),s.defaultPrevented||(l.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=s.target;((m=a.triggerRef.current)==null?void 0:m.contains(u))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),AS=v.forwardRef((e,n)=>{const{__scopePopover:a,trapFocus:l,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:u,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:y,...g}=e,b=La(vi,a),w=Ns(a);return Vu(),d.jsx(vs,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:o,onUnmountAutoFocus:s,children:d.jsx(Ni,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:y,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:m,onDismiss:()=>b.onOpenChange(!1),children:d.jsx(ed,{"data-state":jS(b.open),role:"dialog",id:b.contentId,...w,...g,ref:n,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),NS="PopoverClose",dO=v.forwardRef((e,n)=>{const{__scopePopover:a,...l}=e,o=La(NS,a);return d.jsx(Ae.button,{type:"button",...l,ref:n,onClick:ve(e.onClick,()=>o.onOpenChange(!1))})});dO.displayName=NS;var fO="PopoverArrow",pO=v.forwardRef((e,n)=>{const{__scopePopover:a,...l}=e,o=Ns(a);return d.jsx(td,{...o,...l,ref:n})});pO.displayName=fO;function jS(e){return e?"open":"closed"}var mO=bS,hO=wS,gO=kS,yO=CS,xO=ES,zh="Progress",Lh=100,[bO]=Rn(zh),[vO,wO]=bO(zh),TS=v.forwardRef((e,n)=>{const{__scopeProgress:a,value:l=null,max:o,getValueLabel:s=SO,...u}=e;(o||o===0)&&!Xv(o)&&console.error(kO(`${o}`,"Progress"));const f=Xv(o)?o:Lh;l!==null&&!Kv(l,f)&&console.error(CO(`${l}`,"Progress"));const p=Kv(l,f)?l:null,m=Nu(p)?s(p,f):void 0;return d.jsx(vO,{scope:a,value:p,max:f,children:d.jsx(Ae.div,{"aria-valuemax":f,"aria-valuemin":0,"aria-valuenow":Nu(p)?p:void 0,"aria-valuetext":m,role:"progressbar","data-state":MS(p,f),"data-value":p!=null?p:void 0,"data-max":f,...u,ref:n})})});TS.displayName=zh;var _S="ProgressIndicator",RS=v.forwardRef((e,n)=>{var s;const{__scopeProgress:a,...l}=e,o=wO(_S,a);return d.jsx(Ae.div,{"data-state":MS(o.value,o.max),"data-value":(s=o.value)!=null?s:void 0,"data-max":o.max,...l,ref:n})});RS.displayName=_S;function SO(e,n){return`${Math.round(e/n*100)}%`}function MS(e,n){return e==null?"indeterminate":e===n?"complete":"loading"}function Nu(e){return typeof e=="number"}function Xv(e){return Nu(e)&&!isNaN(e)&&e>0}function Kv(e,n){return Nu(e)&&!isNaN(e)&&e<=n&&e>=0}function kO(e,n){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${n}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Lh}\`.`}function CO(e,n){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${n}\`. The \`value\` prop must be:
|
|
419
|
+
- a positive number
|
|
420
|
+
- less than the value passed to \`max\` (or ${Lh} if no \`max\` prop is set)
|
|
421
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
422
|
+
|
|
423
|
+
Defaulting to \`null\`.`}var EO=TS,AO=RS;function NO(e,n){return v.useReducer((a,l)=>{const o=n[a][l];return o!=null?o:a},e)}var Ih="ScrollArea",[OS]=Rn(Ih),[jO,Yn]=OS(Ih),DS=v.forwardRef((e,n)=>{const{__scopeScrollArea:a,type:l="hover",dir:o,scrollHideDelay:s=600,...u}=e,[f,p]=v.useState(null),[m,y]=v.useState(null),[g,b]=v.useState(null),[w,k]=v.useState(null),[S,E]=v.useState(null),[A,N]=v.useState(0),[j,O]=v.useState(0),[z,M]=v.useState(!1),[F,U]=v.useState(!1),Y=qe(n,G=>p(G)),B=bs(o);return d.jsx(jO,{scope:a,type:l,dir:B,scrollHideDelay:s,scrollArea:f,viewport:m,onViewportChange:y,content:g,onContentChange:b,scrollbarX:w,onScrollbarXChange:k,scrollbarXEnabled:z,onScrollbarXEnabledChange:M,scrollbarY:S,onScrollbarYChange:E,scrollbarYEnabled:F,onScrollbarYEnabledChange:U,onCornerWidthChange:N,onCornerHeightChange:O,children:d.jsx(Ae.div,{dir:B,...u,ref:Y,style:{position:"relative","--radix-scroll-area-corner-width":A+"px","--radix-scroll-area-corner-height":j+"px",...e.style}})})});DS.displayName=Ih;var zS="ScrollAreaViewport",LS=v.forwardRef((e,n)=>{const{__scopeScrollArea:a,children:l,nonce:o,...s}=e,u=Yn(zS,a),f=v.useRef(null),p=qe(n,f,u.onViewportChange);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),d.jsx(Ae.div,{"data-radix-scroll-area-viewport":"",...s,ref:p,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:d.jsx("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});LS.displayName=zS;var gr="ScrollAreaScrollbar",IS=v.forwardRef((e,n)=>{const{forceMount:a,...l}=e,o=Yn(gr,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:u}=o,f=e.orientation==="horizontal";return v.useEffect(()=>(f?s(!0):u(!0),()=>{f?s(!1):u(!1)}),[f,s,u]),o.type==="hover"?d.jsx(TO,{...l,ref:n,forceMount:a}):o.type==="scroll"?d.jsx(_O,{...l,ref:n,forceMount:a}):o.type==="auto"?d.jsx(BS,{...l,ref:n,forceMount:a}):o.type==="always"?d.jsx(Bh,{...l,ref:n}):null});IS.displayName=gr;var TO=v.forwardRef((e,n)=>{const{forceMount:a,...l}=e,o=Yn(gr,e.__scopeScrollArea),[s,u]=v.useState(!1);return v.useEffect(()=>{const f=o.scrollArea;let p=0;if(f){const m=()=>{window.clearTimeout(p),u(!0)},y=()=>{p=window.setTimeout(()=>u(!1),o.scrollHideDelay)};return f.addEventListener("pointerenter",m),f.addEventListener("pointerleave",y),()=>{window.clearTimeout(p),f.removeEventListener("pointerenter",m),f.removeEventListener("pointerleave",y)}}},[o.scrollArea,o.scrollHideDelay]),d.jsx(Bt,{present:a||s,children:d.jsx(BS,{"data-state":s?"visible":"hidden",...l,ref:n})})}),_O=v.forwardRef((e,n)=>{const{forceMount:a,...l}=e,o=Yn(gr,e.__scopeScrollArea),s=e.orientation==="horizontal",u=sd(()=>p("SCROLL_END"),100),[f,p]=NO("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(f==="idle"){const m=window.setTimeout(()=>p("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(m)}},[f,o.scrollHideDelay,p]),v.useEffect(()=>{const m=o.viewport,y=s?"scrollLeft":"scrollTop";if(m){let g=m[y];const b=()=>{const w=m[y];g!==w&&(p("SCROLL"),u()),g=w};return m.addEventListener("scroll",b),()=>m.removeEventListener("scroll",b)}},[o.viewport,s,p,u]),d.jsx(Bt,{present:a||f!=="hidden",children:d.jsx(Bh,{"data-state":f==="hidden"?"hidden":"visible",...l,ref:n,onPointerEnter:ve(e.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:ve(e.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),BS=v.forwardRef((e,n)=>{const a=Yn(gr,e.__scopeScrollArea),{forceMount:l,...o}=e,[s,u]=v.useState(!1),f=e.orientation==="horizontal",p=sd(()=>{if(a.viewport){const m=a.viewport.offsetWidth<a.viewport.scrollWidth,y=a.viewport.offsetHeight<a.viewport.scrollHeight;u(f?m:y)}},10);return wi(a.viewport,p),wi(a.content,p),d.jsx(Bt,{present:l||s,children:d.jsx(Bh,{"data-state":s?"visible":"hidden",...o,ref:n})})}),Bh=v.forwardRef((e,n)=>{const{orientation:a="vertical",...l}=e,o=Yn(gr,e.__scopeScrollArea),s=v.useRef(null),u=v.useRef(0),[f,p]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),m=$S(f.viewport,f.content),y={...l,sizes:f,onSizesChange:p,hasThumb:m>0&&m<1,onThumbChange:b=>s.current=b,onThumbPointerUp:()=>u.current=0,onThumbPointerDown:b=>u.current=b};function g(b,w){return LO(b,u.current,f,w)}return a==="horizontal"?d.jsx(RO,{...y,ref:n,onThumbPositionChange:()=>{if(o.viewport&&s.current){const b=o.viewport.scrollLeft,w=Qv(b,f,o.dir);s.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollLeft=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollLeft=g(b,o.dir))}}):a==="vertical"?d.jsx(MO,{...y,ref:n,onThumbPositionChange:()=>{if(o.viewport&&s.current){const b=o.viewport.scrollTop,w=Qv(b,f);s.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollTop=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollTop=g(b))}}):null}),RO=v.forwardRef((e,n)=>{const{sizes:a,onSizesChange:l,...o}=e,s=Yn(gr,e.__scopeScrollArea),[u,f]=v.useState(),p=v.useRef(null),m=qe(n,p,s.onScrollbarXChange);return v.useEffect(()=>{p.current&&f(getComputedStyle(p.current))},[p]),d.jsx(FS,{"data-orientation":"horizontal",...o,ref:m,sizes:a,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":od(a)+"px",...e.style},onThumbPointerDown:y=>e.onThumbPointerDown(y.x),onDragScroll:y=>e.onDragScroll(y.x),onWheelScroll:(y,g)=>{if(s.viewport){const b=s.viewport.scrollLeft+y.deltaX;e.onWheelScroll(b),qS(b,g)&&y.preventDefault()}},onResize:()=>{p.current&&s.viewport&&u&&l({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:Tu(u.paddingLeft),paddingEnd:Tu(u.paddingRight)}})}})}),MO=v.forwardRef((e,n)=>{const{sizes:a,onSizesChange:l,...o}=e,s=Yn(gr,e.__scopeScrollArea),[u,f]=v.useState(),p=v.useRef(null),m=qe(n,p,s.onScrollbarYChange);return v.useEffect(()=>{p.current&&f(getComputedStyle(p.current))},[p]),d.jsx(FS,{"data-orientation":"vertical",...o,ref:m,sizes:a,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":od(a)+"px",...e.style},onThumbPointerDown:y=>e.onThumbPointerDown(y.y),onDragScroll:y=>e.onDragScroll(y.y),onWheelScroll:(y,g)=>{if(s.viewport){const b=s.viewport.scrollTop+y.deltaY;e.onWheelScroll(b),qS(b,g)&&y.preventDefault()}},onResize:()=>{p.current&&s.viewport&&u&&l({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:Tu(u.paddingTop),paddingEnd:Tu(u.paddingBottom)}})}})}),[OO,PS]=OS(gr),FS=v.forwardRef((e,n)=>{const{__scopeScrollArea:a,sizes:l,hasThumb:o,onThumbChange:s,onThumbPointerUp:u,onThumbPointerDown:f,onThumbPositionChange:p,onDragScroll:m,onWheelScroll:y,onResize:g,...b}=e,w=Yn(gr,a),[k,S]=v.useState(null),E=qe(n,Y=>S(Y)),A=v.useRef(null),N=v.useRef(""),j=w.viewport,O=l.content-l.viewport,z=$t(y),M=$t(p),F=sd(g,10);function U(Y){if(A.current){const B=Y.clientX-A.current.left,G=Y.clientY-A.current.top;m({x:B,y:G})}}return v.useEffect(()=>{const Y=B=>{const G=B.target;(k==null?void 0:k.contains(G))&&z(B,O)};return document.addEventListener("wheel",Y,{passive:!1}),()=>document.removeEventListener("wheel",Y,{passive:!1})},[j,k,O,z]),v.useEffect(M,[l,M]),wi(k,F),wi(w.content,F),d.jsx(OO,{scope:a,scrollbar:k,hasThumb:o,onThumbChange:$t(s),onThumbPointerUp:$t(u),onThumbPositionChange:M,onThumbPointerDown:$t(f),children:d.jsx(Ae.div,{...b,ref:E,style:{position:"absolute",...b.style},onPointerDown:ve(e.onPointerDown,Y=>{Y.button===0&&(Y.target.setPointerCapture(Y.pointerId),A.current=k.getBoundingClientRect(),N.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),U(Y))}),onPointerMove:ve(e.onPointerMove,U),onPointerUp:ve(e.onPointerUp,Y=>{const B=Y.target;B.hasPointerCapture(Y.pointerId)&&B.releasePointerCapture(Y.pointerId),document.body.style.webkitUserSelect=N.current,w.viewport&&(w.viewport.style.scrollBehavior=""),A.current=null})})})}),ju="ScrollAreaThumb",US=v.forwardRef((e,n)=>{const{forceMount:a,...l}=e,o=PS(ju,e.__scopeScrollArea);return d.jsx(Bt,{present:a||o.hasThumb,children:d.jsx(DO,{ref:n,...l})})}),DO=v.forwardRef((e,n)=>{const{__scopeScrollArea:a,style:l,...o}=e,s=Yn(ju,a),u=PS(ju,a),{onThumbPositionChange:f}=u,p=qe(n,g=>u.onThumbChange(g)),m=v.useRef(void 0),y=sd(()=>{m.current&&(m.current(),m.current=void 0)},100);return v.useEffect(()=>{const g=s.viewport;if(g){const b=()=>{if(y(),!m.current){const w=IO(g,f);m.current=w,f()}};return f(),g.addEventListener("scroll",b),()=>g.removeEventListener("scroll",b)}},[s.viewport,y,f]),d.jsx(Ae.div,{"data-state":u.hasThumb?"visible":"hidden",...o,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:ve(e.onPointerDownCapture,g=>{const w=g.target.getBoundingClientRect(),k=g.clientX-w.left,S=g.clientY-w.top;u.onThumbPointerDown({x:k,y:S})}),onPointerUp:ve(e.onPointerUp,u.onThumbPointerUp)})});US.displayName=ju;var Ph="ScrollAreaCorner",HS=v.forwardRef((e,n)=>{const a=Yn(Ph,e.__scopeScrollArea),l=!!(a.scrollbarX&&a.scrollbarY);return a.type!=="scroll"&&l?d.jsx(zO,{...e,ref:n}):null});HS.displayName=Ph;var zO=v.forwardRef((e,n)=>{const{__scopeScrollArea:a,...l}=e,o=Yn(Ph,a),[s,u]=v.useState(0),[f,p]=v.useState(0),m=!!(s&&f);return wi(o.scrollbarX,()=>{var g;const y=((g=o.scrollbarX)==null?void 0:g.offsetHeight)||0;o.onCornerHeightChange(y),p(y)}),wi(o.scrollbarY,()=>{var g;const y=((g=o.scrollbarY)==null?void 0:g.offsetWidth)||0;o.onCornerWidthChange(y),u(y)}),m?d.jsx(Ae.div,{...l,ref:n,style:{width:s,height:f,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Tu(e){return e?parseInt(e,10):0}function $S(e,n){const a=e/n;return isNaN(a)?0:a}function od(e){const n=$S(e.viewport,e.content),a=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,l=(e.scrollbar.size-a)*n;return Math.max(l,18)}function LO(e,n,a,l="ltr"){const o=od(a),s=o/2,u=n||s,f=o-u,p=a.scrollbar.paddingStart+u,m=a.scrollbar.size-a.scrollbar.paddingEnd-f,y=a.content-a.viewport,g=l==="ltr"?[0,y]:[y*-1,0];return VS([p,m],g)(e)}function Qv(e,n,a="ltr"){const l=od(n),o=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,s=n.scrollbar.size-o,u=n.content-n.viewport,f=s-l,p=a==="ltr"?[0,u]:[u*-1,0],m=Im(e,p);return VS([0,u],[0,f])(m)}function VS(e,n){return a=>{if(e[0]===e[1]||n[0]===n[1])return n[0];const l=(n[1]-n[0])/(e[1]-e[0]);return n[0]+l*(a-e[0])}}function qS(e,n){return e>0&&e<n}var IO=(e,n=()=>{})=>{let a={left:e.scrollLeft,top:e.scrollTop},l=0;return(function o(){const s={left:e.scrollLeft,top:e.scrollTop},u=a.left!==s.left,f=a.top!==s.top;(u||f)&&n(),a=s,l=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(l)};function sd(e,n){const a=$t(e),l=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(l.current),[]),v.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(a,n)},[a,n])}function wi(e,n){const a=$t(n);It(()=>{let l=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(a)});return o.observe(e),()=>{window.cancelAnimationFrame(l),o.unobserve(e)}}},[e,a])}var BO=DS,PO=LS,FO=HS,UO=[" ","Enter","ArrowUp","ArrowDown"],HO=[" ","Enter"],pl="Select",[cd,ud,$O]=sh(pl),[Ri]=Rn(pl,[$O,za]),dd=za(),[VO,Ia]=Ri(pl),[qO,GO]=Ri(pl),GS=e=>{const{__scopeSelect:n,children:a,open:l,defaultOpen:o,onOpenChange:s,value:u,defaultValue:f,onValueChange:p,dir:m,name:y,autoComplete:g,disabled:b,required:w,form:k}=e,S=dd(n),[E,A]=v.useState(null),[N,j]=v.useState(null),[O,z]=v.useState(!1),M=bs(m),[F,U]=Ur({prop:l,defaultProp:o!=null?o:!1,onChange:s,caller:pl}),[Y,B]=Ur({prop:u,defaultProp:f,onChange:p,caller:pl}),G=v.useRef(null),q=E?k||!!E.closest("form"):!0,[me,ne]=v.useState(new Set),ee=Array.from(me).map(I=>I.props.value).join(";");return d.jsx(Ju,{...S,children:d.jsxs(VO,{required:w,scope:n,trigger:E,onTriggerChange:A,valueNode:N,onValueNodeChange:j,valueNodeHasChildren:O,onValueNodeHasChildrenChange:z,contentId:Ot(),value:Y,onValueChange:B,open:F,onOpenChange:U,dir:M,triggerPointerDownPosRef:G,disabled:b,children:[d.jsx(cd.Provider,{scope:n,children:d.jsx(qO,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(I=>{ne(X=>new Set(X).add(I))},[]),onNativeOptionRemove:v.useCallback(I=>{ne(X=>{const J=new Set(X);return J.delete(I),J})},[]),children:a})}),q?d.jsxs(gk,{"aria-hidden":!0,required:w,tabIndex:-1,name:y,autoComplete:g,value:Y,onChange:I=>B(I.target.value),disabled:b,form:k,children:[Y===void 0?d.jsx("option",{value:""}):null,Array.from(me)]},ee):null]})})};GS.displayName=pl;var YS="SelectTrigger",XS=v.forwardRef((e,n)=>{const{__scopeSelect:a,disabled:l=!1,...o}=e,s=dd(a),u=Ia(YS,a),f=u.disabled||l,p=qe(n,u.onTriggerChange),m=ud(a),y=v.useRef("touch"),[g,b,w]=xk(S=>{const E=m().filter(j=>!j.disabled),A=E.find(j=>j.value===u.value),N=bk(E,S,A);N!==void 0&&u.onValueChange(N.value)}),k=S=>{f||(u.onOpenChange(!0),w()),S&&(u.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return d.jsx(ks,{asChild:!0,...s,children:d.jsx(Ae.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":yk(u.value)?"":void 0,...o,ref:p,onClick:ve(o.onClick,S=>{S.currentTarget.focus(),y.current!=="mouse"&&k(S)}),onPointerDown:ve(o.onPointerDown,S=>{y.current=S.pointerType;const E=S.target;E.hasPointerCapture(S.pointerId)&&E.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(k(S),S.preventDefault())}),onKeyDown:ve(o.onKeyDown,S=>{const E=g.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&b(S.key),!(E&&S.key===" ")&&UO.includes(S.key)&&(k(),S.preventDefault())})})})});XS.displayName=YS;var KS="SelectValue",QS=v.forwardRef((e,n)=>{const{__scopeSelect:a,className:l,style:o,children:s,placeholder:u="",...f}=e,p=Ia(KS,a),{onValueNodeHasChildrenChange:m}=p,y=s!==void 0,g=qe(n,p.onValueNodeChange);return It(()=>{m(y)},[m,y]),d.jsx(Ae.span,{...f,ref:g,style:{pointerEvents:"none"},children:yk(p.value)?d.jsx(d.Fragment,{children:u}):s})});QS.displayName=KS;var YO="SelectIcon",ZS=v.forwardRef((e,n)=>{const{__scopeSelect:a,children:l,...o}=e;return d.jsx(Ae.span,{"aria-hidden":!0,...o,ref:n,children:l||"▼"})});ZS.displayName=YO;var XO="SelectPortal",WS=e=>d.jsx(ji,{asChild:!0,...e});WS.displayName=XO;var ml="SelectContent",JS=v.forwardRef((e,n)=>{const a=Ia(ml,e.__scopeSelect),[l,o]=v.useState();if(It(()=>{o(new DocumentFragment)},[]),!a.open){const s=l;return s?ys.createPortal(d.jsx(ek,{scope:e.__scopeSelect,children:d.jsx(cd.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),s):null}return d.jsx(tk,{...e,ref:n})});JS.displayName=ml;var Wn=10,[ek,Ba]=Ri(ml),KO="SelectContentImpl",QO=_a("SelectContent.RemoveScroll"),tk=v.forwardRef((e,n)=>{const{__scopeSelect:a,position:l="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:u,side:f,sideOffset:p,align:m,alignOffset:y,arrowPadding:g,collisionBoundary:b,collisionPadding:w,sticky:k,hideWhenDetached:S,avoidCollisions:E,...A}=e,N=Ia(ml,a),[j,O]=v.useState(null),[z,M]=v.useState(null),F=qe(n,ie=>O(ie)),[U,Y]=v.useState(null),[B,G]=v.useState(null),q=ud(a),[me,ne]=v.useState(!1),ee=v.useRef(!1);v.useEffect(()=>{if(j)return Gu(j)},[j]),Vu();const I=v.useCallback(ie=>{const[be,...he]=q().map(Le=>Le.ref.current),[Te]=he.slice(-1),ze=document.activeElement;for(const Le of ie)if(Le===ze||(Le==null||Le.scrollIntoView({block:"nearest"}),Le===be&&z&&(z.scrollTop=0),Le===Te&&z&&(z.scrollTop=z.scrollHeight),Le==null||Le.focus(),document.activeElement!==ze))return},[q,z]),X=v.useCallback(()=>I([U,j]),[I,U,j]);v.useEffect(()=>{me&&X()},[me,X]);const{onOpenChange:J,triggerPointerDownPosRef:Z}=N;v.useEffect(()=>{if(j){let ie={x:0,y:0};const be=Te=>{var ze,Le,ft,et;ie={x:Math.abs(Math.round(Te.pageX)-((Le=(ze=Z.current)==null?void 0:ze.x)!=null?Le:0)),y:Math.abs(Math.round(Te.pageY)-((et=(ft=Z.current)==null?void 0:ft.y)!=null?et:0))}},he=Te=>{ie.x<=10&&ie.y<=10?Te.preventDefault():j.contains(Te.target)||J(!1),document.removeEventListener("pointermove",be),Z.current=null};return Z.current!==null&&(document.addEventListener("pointermove",be),document.addEventListener("pointerup",he,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",be),document.removeEventListener("pointerup",he,{capture:!0})}}},[j,J,Z]),v.useEffect(()=>{const ie=()=>J(!1);return window.addEventListener("blur",ie),window.addEventListener("resize",ie),()=>{window.removeEventListener("blur",ie),window.removeEventListener("resize",ie)}},[J]);const[R,D]=xk(ie=>{const be=q().filter(ze=>!ze.disabled),he=be.find(ze=>ze.ref.current===document.activeElement),Te=bk(be,ie,he);Te&&setTimeout(()=>Te.ref.current.focus())}),L=v.useCallback((ie,be,he)=>{const Te=!ee.current&&!he;(N.value!==void 0&&N.value===be||Te)&&(Y(ie),Te&&(ee.current=!0))},[N.value]),T=v.useCallback(()=>j==null?void 0:j.focus(),[j]),te=v.useCallback((ie,be,he)=>{const Te=!ee.current&&!he;(N.value!==void 0&&N.value===be||Te)&&G(ie)},[N.value]),ae=l==="popper"?Bm:nk,le=ae===Bm?{side:f,sideOffset:p,align:m,alignOffset:y,arrowPadding:g,collisionBoundary:b,collisionPadding:w,sticky:k,hideWhenDetached:S,avoidCollisions:E}:{};return d.jsx(ek,{scope:a,content:j,viewport:z,onViewportChange:M,itemRefCallback:L,selectedItem:U,onItemLeave:T,itemTextRefCallback:te,focusSelectedItem:X,selectedItemText:B,position:l,isPositioned:me,searchRef:R,children:d.jsx(ws,{as:QO,allowPinchZoom:!0,children:d.jsx(vs,{asChild:!0,trapped:N.open,onMountAutoFocus:ie=>{ie.preventDefault()},onUnmountAutoFocus:ve(o,ie=>{var be;(be=N.trigger)==null||be.focus({preventScroll:!0}),ie.preventDefault()}),children:d.jsx(Ni,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:ie=>ie.preventDefault(),onDismiss:()=>N.onOpenChange(!1),children:d.jsx(ae,{role:"listbox",id:N.contentId,"data-state":N.open?"open":"closed",dir:N.dir,onContextMenu:ie=>ie.preventDefault(),...A,...le,onPlaced:()=>ne(!0),ref:F,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:ve(A.onKeyDown,ie=>{const be=ie.ctrlKey||ie.altKey||ie.metaKey;if(ie.key==="Tab"&&ie.preventDefault(),!be&&ie.key.length===1&&D(ie.key),["ArrowUp","ArrowDown","Home","End"].includes(ie.key)){let Te=q().filter(ze=>!ze.disabled).map(ze=>ze.ref.current);if(["ArrowUp","End"].includes(ie.key)&&(Te=Te.slice().reverse()),["ArrowUp","ArrowDown"].includes(ie.key)){const ze=ie.target,Le=Te.indexOf(ze);Te=Te.slice(Le+1)}setTimeout(()=>I(Te)),ie.preventDefault()}})})})})})})});tk.displayName=KO;var ZO="SelectItemAlignedPosition",nk=v.forwardRef((e,n)=>{const{__scopeSelect:a,onPlaced:l,...o}=e,s=Ia(ml,a),u=Ba(ml,a),[f,p]=v.useState(null),[m,y]=v.useState(null),g=qe(n,F=>y(F)),b=ud(a),w=v.useRef(!1),k=v.useRef(!0),{viewport:S,selectedItem:E,selectedItemText:A,focusSelectedItem:N}=u,j=v.useCallback(()=>{if(s.trigger&&s.valueNode&&f&&m&&S&&E&&A){const F=s.trigger.getBoundingClientRect(),U=m.getBoundingClientRect(),Y=s.valueNode.getBoundingClientRect(),B=A.getBoundingClientRect();if(s.dir!=="rtl"){const ze=B.left-U.left,Le=Y.left-ze,ft=F.left-Le,et=F.width+ft,Dt=Math.max(et,U.width),Vt=window.innerWidth-Wn,Mn=Im(Le,[Wn,Math.max(Wn,Vt-Dt)]);f.style.minWidth=et+"px",f.style.left=Mn+"px"}else{const ze=U.right-B.right,Le=window.innerWidth-Y.right-ze,ft=window.innerWidth-F.right-Le,et=F.width+ft,Dt=Math.max(et,U.width),Vt=window.innerWidth-Wn,Mn=Im(Le,[Wn,Math.max(Wn,Vt-Dt)]);f.style.minWidth=et+"px",f.style.right=Mn+"px"}const G=b(),q=window.innerHeight-Wn*2,me=S.scrollHeight,ne=window.getComputedStyle(m),ee=parseInt(ne.borderTopWidth,10),I=parseInt(ne.paddingTop,10),X=parseInt(ne.borderBottomWidth,10),J=parseInt(ne.paddingBottom,10),Z=ee+I+me+J+X,R=Math.min(E.offsetHeight*5,Z),D=window.getComputedStyle(S),L=parseInt(D.paddingTop,10),T=parseInt(D.paddingBottom,10),te=F.top+F.height/2-Wn,ae=q-te,le=E.offsetHeight/2,ie=E.offsetTop+le,be=ee+I+ie,he=Z-be;if(be<=te){const ze=G.length>0&&E===G[G.length-1].ref.current;f.style.bottom="0px";const Le=m.clientHeight-S.offsetTop-S.offsetHeight,ft=Math.max(ae,le+(ze?T:0)+Le+X),et=be+ft;f.style.height=et+"px"}else{const ze=G.length>0&&E===G[0].ref.current;f.style.top="0px";const ft=Math.max(te,ee+S.offsetTop+(ze?L:0)+le)+he;f.style.height=ft+"px",S.scrollTop=be-te+S.offsetTop}f.style.margin=`${Wn}px 0`,f.style.minHeight=R+"px",f.style.maxHeight=q+"px",l==null||l(),requestAnimationFrame(()=>w.current=!0)}},[b,s.trigger,s.valueNode,f,m,S,E,A,s.dir,l]);It(()=>j(),[j]);const[O,z]=v.useState();It(()=>{m&&z(window.getComputedStyle(m).zIndex)},[m]);const M=v.useCallback(F=>{F&&k.current===!0&&(j(),N==null||N(),k.current=!1)},[j,N]);return d.jsx(JO,{scope:a,contentWrapper:f,shouldExpandOnScrollRef:w,onScrollButtonChange:M,children:d.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:d.jsx(Ae.div,{...o,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});nk.displayName=ZO;var WO="SelectPopperPosition",Bm=v.forwardRef((e,n)=>{const{__scopeSelect:a,align:l="start",collisionPadding:o=Wn,...s}=e,u=dd(a);return d.jsx(ed,{...u,...s,ref:n,align:l,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Bm.displayName=WO;var[JO,Fh]=Ri(ml,{}),Pm="SelectViewport",rk=v.forwardRef((e,n)=>{const{__scopeSelect:a,nonce:l,...o}=e,s=Ba(Pm,a),u=Fh(Pm,a),f=qe(n,s.onViewportChange),p=v.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),d.jsx(cd.Slot,{scope:a,children:d.jsx(Ae.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ve(o.onScroll,m=>{const y=m.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:b}=u;if(b!=null&&b.current&&g){const w=Math.abs(p.current-y.scrollTop);if(w>0){const k=window.innerHeight-Wn*2,S=parseFloat(g.style.minHeight),E=parseFloat(g.style.height),A=Math.max(S,E);if(A<k){const N=A+w,j=Math.min(k,N),O=N-j;g.style.height=j+"px",g.style.bottom==="0px"&&(y.scrollTop=O>0?O:0,g.style.justifyContent="flex-end")}}}p.current=y.scrollTop})})})]})});rk.displayName=Pm;var ak="SelectGroup",[eD,tD]=Ri(ak),lk=v.forwardRef((e,n)=>{const{__scopeSelect:a,...l}=e,o=Ot();return d.jsx(eD,{scope:a,id:o,children:d.jsx(Ae.div,{role:"group","aria-labelledby":o,...l,ref:n})})});lk.displayName=ak;var ik="SelectLabel",ok=v.forwardRef((e,n)=>{const{__scopeSelect:a,...l}=e,o=tD(ik,a);return d.jsx(Ae.div,{id:o.id,...l,ref:n})});ok.displayName=ik;var _u="SelectItem",[nD,sk]=Ri(_u),ck=v.forwardRef((e,n)=>{const{__scopeSelect:a,value:l,disabled:o=!1,textValue:s,...u}=e,f=Ia(_u,a),p=Ba(_u,a),m=f.value===l,[y,g]=v.useState(s!=null?s:""),[b,w]=v.useState(!1),k=qe(n,N=>{var j;return(j=p.itemRefCallback)==null?void 0:j.call(p,N,l,o)}),S=Ot(),E=v.useRef("touch"),A=()=>{o||(f.onValueChange(l),f.onOpenChange(!1))};if(l==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(nD,{scope:a,value:l,disabled:o,textId:S,isSelected:m,onItemTextChange:v.useCallback(N=>{g(j=>{var O;return j||((O=N==null?void 0:N.textContent)!=null?O:"").trim()})},[]),children:d.jsx(cd.ItemSlot,{scope:a,value:l,disabled:o,textValue:y,children:d.jsx(Ae.div,{role:"option","aria-labelledby":S,"data-highlighted":b?"":void 0,"aria-selected":m&&b,"data-state":m?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...u,ref:k,onFocus:ve(u.onFocus,()=>w(!0)),onBlur:ve(u.onBlur,()=>w(!1)),onClick:ve(u.onClick,()=>{E.current!=="mouse"&&A()}),onPointerUp:ve(u.onPointerUp,()=>{E.current==="mouse"&&A()}),onPointerDown:ve(u.onPointerDown,N=>{E.current=N.pointerType}),onPointerMove:ve(u.onPointerMove,N=>{var j;E.current=N.pointerType,o?(j=p.onItemLeave)==null||j.call(p):E.current==="mouse"&&N.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ve(u.onPointerLeave,N=>{var j;N.currentTarget===document.activeElement&&((j=p.onItemLeave)==null||j.call(p))}),onKeyDown:ve(u.onKeyDown,N=>{var O;((O=p.searchRef)==null?void 0:O.current)!==""&&N.key===" "||(HO.includes(N.key)&&A(),N.key===" "&&N.preventDefault())})})})})});ck.displayName=_u;var Xo="SelectItemText",uk=v.forwardRef((e,n)=>{const{__scopeSelect:a,className:l,style:o,...s}=e,u=Ia(Xo,a),f=Ba(Xo,a),p=sk(Xo,a),m=GO(Xo,a),[y,g]=v.useState(null),b=qe(n,A=>g(A),p.onItemTextChange,A=>{var N;return(N=f.itemTextRefCallback)==null?void 0:N.call(f,A,p.value,p.disabled)}),w=y==null?void 0:y.textContent,k=v.useMemo(()=>d.jsx("option",{value:p.value,disabled:p.disabled,children:w},p.value),[p.disabled,p.value,w]),{onNativeOptionAdd:S,onNativeOptionRemove:E}=m;return It(()=>(S(k),()=>E(k)),[S,E,k]),d.jsxs(d.Fragment,{children:[d.jsx(Ae.span,{id:p.textId,...s,ref:b}),p.isSelected&&u.valueNode&&!u.valueNodeHasChildren?ys.createPortal(s.children,u.valueNode):null]})});uk.displayName=Xo;var dk="SelectItemIndicator",fk=v.forwardRef((e,n)=>{const{__scopeSelect:a,...l}=e;return sk(dk,a).isSelected?d.jsx(Ae.span,{"aria-hidden":!0,...l,ref:n}):null});fk.displayName=dk;var Fm="SelectScrollUpButton",pk=v.forwardRef((e,n)=>{const a=Ba(Fm,e.__scopeSelect),l=Fh(Fm,e.__scopeSelect),[o,s]=v.useState(!1),u=qe(n,l.onScrollButtonChange);return It(()=>{if(a.viewport&&a.isPositioned){let f=function(){const m=p.scrollTop>0;s(m)};const p=a.viewport;return f(),p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}},[a.viewport,a.isPositioned]),o?d.jsx(hk,{...e,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:p}=a;f&&p&&(f.scrollTop=f.scrollTop-p.offsetHeight)}}):null});pk.displayName=Fm;var Um="SelectScrollDownButton",mk=v.forwardRef((e,n)=>{const a=Ba(Um,e.__scopeSelect),l=Fh(Um,e.__scopeSelect),[o,s]=v.useState(!1),u=qe(n,l.onScrollButtonChange);return It(()=>{if(a.viewport&&a.isPositioned){let f=function(){const m=p.scrollHeight-p.clientHeight,y=Math.ceil(p.scrollTop)<m;s(y)};const p=a.viewport;return f(),p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}},[a.viewport,a.isPositioned]),o?d.jsx(hk,{...e,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:p}=a;f&&p&&(f.scrollTop=f.scrollTop+p.offsetHeight)}}):null});mk.displayName=Um;var hk=v.forwardRef((e,n)=>{const{__scopeSelect:a,onAutoScroll:l,...o}=e,s=Ba("SelectScrollButton",a),u=v.useRef(null),f=ud(a),p=v.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return v.useEffect(()=>()=>p(),[p]),It(()=>{var y;const m=f().find(g=>g.ref.current===document.activeElement);(y=m==null?void 0:m.ref.current)==null||y.scrollIntoView({block:"nearest"})},[f]),d.jsx(Ae.div,{"aria-hidden":!0,...o,ref:n,style:{flexShrink:0,...o.style},onPointerDown:ve(o.onPointerDown,()=>{u.current===null&&(u.current=window.setInterval(l,50))}),onPointerMove:ve(o.onPointerMove,()=>{var m;(m=s.onItemLeave)==null||m.call(s),u.current===null&&(u.current=window.setInterval(l,50))}),onPointerLeave:ve(o.onPointerLeave,()=>{p()})})}),rD="SelectSeparator",aD=v.forwardRef((e,n)=>{const{__scopeSelect:a,...l}=e;return d.jsx(Ae.div,{"aria-hidden":!0,...l,ref:n})});aD.displayName=rD;var Hm="SelectArrow",lD=v.forwardRef((e,n)=>{const{__scopeSelect:a,...l}=e,o=dd(a),s=Ia(Hm,a),u=Ba(Hm,a);return s.open&&u.position==="popper"?d.jsx(td,{...o,...l,ref:n}):null});lD.displayName=Hm;var iD="SelectBubbleInput",gk=v.forwardRef(({__scopeSelect:e,value:n,...a},l)=>{const o=v.useRef(null),s=qe(l,o),u=h_(n);return v.useEffect(()=>{const f=o.current;if(!f)return;const p=window.HTMLSelectElement.prototype,y=Object.getOwnPropertyDescriptor(p,"value").set;if(u!==n&&y){const g=new Event("change",{bubbles:!0});y.call(f,n),f.dispatchEvent(g)}},[u,n]),d.jsx(Ae.select,{...a,style:{...R1,...a.style},ref:s,defaultValue:n})});gk.displayName=iD;function yk(e){return e===""||e===void 0}function xk(e){const n=$t(e),a=v.useRef(""),l=v.useRef(0),o=v.useCallback(u=>{const f=a.current+u;n(f),(function p(m){a.current=m,window.clearTimeout(l.current),m!==""&&(l.current=window.setTimeout(()=>p(""),1e3))})(f)},[n]),s=v.useCallback(()=>{a.current="",window.clearTimeout(l.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(l.current),[]),[a,o,s]}function bk(e,n,a){const o=n.length>1&&Array.from(n).every(m=>m===n[0])?n[0]:n,s=a?e.indexOf(a):-1;let u=oD(e,Math.max(s,0));o.length===1&&(u=u.filter(m=>m!==a));const p=u.find(m=>m.textValue.toLowerCase().startsWith(o.toLowerCase()));return p!==a?p:void 0}function oD(e,n){return e.map((a,l)=>e[(n+l)%e.length])}var sD=GS,cD=XS,uD=QS,dD=ZS,fD=WS,pD=JS,mD=rk,hD=lk,gD=ok,yD=ck,xD=uk,bD=fk,vD=pk,wD=mk,SD="Separator",Zv="horizontal",kD=["horizontal","vertical"],vk=v.forwardRef((e,n)=>{const{decorative:a,orientation:l=Zv,...o}=e,s=CD(l)?l:Zv,f=a?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return d.jsx(Ae.div,{"data-orientation":s,...f,...o,ref:n})});vk.displayName=SD;function CD(e){return kD.includes(e)}var ED=vk,fd="Tabs",[AD]=Rn(fd,[nd]),wk=nd(),[ND,Uh]=AD(fd),Sk=v.forwardRef((e,n)=>{const{__scopeTabs:a,value:l,onValueChange:o,defaultValue:s,orientation:u="horizontal",dir:f,activationMode:p="automatic",...m}=e,y=bs(f),[g,b]=Ur({prop:l,onChange:o,defaultProp:s!=null?s:"",caller:fd});return d.jsx(ND,{scope:a,baseId:Ot(),value:g,onValueChange:b,orientation:u,dir:y,activationMode:p,children:d.jsx(Ae.div,{dir:y,"data-orientation":u,...m,ref:n})})});Sk.displayName=fd;var kk="TabsList",Ck=v.forwardRef((e,n)=>{const{__scopeTabs:a,loop:l=!0,...o}=e,s=Uh(kk,a),u=wk(a);return d.jsx(Bw,{asChild:!0,...u,orientation:s.orientation,dir:s.dir,loop:l,children:d.jsx(Ae.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:n})})});Ck.displayName=kk;var Ek="TabsTrigger",Ak=v.forwardRef((e,n)=>{const{__scopeTabs:a,value:l,disabled:o=!1,...s}=e,u=Uh(Ek,a),f=wk(a),p=Tk(u.baseId,l),m=_k(u.baseId,l),y=l===u.value;return d.jsx(Pw,{asChild:!0,...f,focusable:!o,active:y,children:d.jsx(Ae.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":m,"data-state":y?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:p,...s,ref:n,onMouseDown:ve(e.onMouseDown,g=>{!o&&g.button===0&&g.ctrlKey===!1?u.onValueChange(l):g.preventDefault()}),onKeyDown:ve(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&u.onValueChange(l)}),onFocus:ve(e.onFocus,()=>{const g=u.activationMode!=="manual";!y&&!o&&g&&u.onValueChange(l)})})})});Ak.displayName=Ek;var Nk="TabsContent",jk=v.forwardRef((e,n)=>{const{__scopeTabs:a,value:l,forceMount:o,children:s,...u}=e,f=Uh(Nk,a),p=Tk(f.baseId,l),m=_k(f.baseId,l),y=l===f.value,g=v.useRef(y);return v.useEffect(()=>{const b=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(Bt,{present:o||y,children:({present:b})=>d.jsx(Ae.div,{"data-state":y?"active":"inactive","data-orientation":f.orientation,role:"tabpanel","aria-labelledby":p,hidden:!b,id:m,tabIndex:0,...u,ref:n,style:{...e.style,animationDuration:g.current?"0s":void 0},children:b&&s})})});jk.displayName=Nk;function Tk(e,n){return`${e}-trigger-${n}`}function _k(e,n){return`${e}-content-${n}`}var jD=Sk,TD=Ck,_D=Ak,RD=jk,[pd]=Rn("Tooltip",[za]),md=za(),Rk="TooltipProvider",MD=700,$m="tooltip.open",[OD,Hh]=pd(Rk),Mk=e=>{const{__scopeTooltip:n,delayDuration:a=MD,skipDelayDuration:l=300,disableHoverableContent:o=!1,children:s}=e,u=v.useRef(!0),f=v.useRef(!1),p=v.useRef(0);return v.useEffect(()=>{const m=p.current;return()=>window.clearTimeout(m)},[]),d.jsx(OD,{scope:n,isOpenDelayedRef:u,delayDuration:a,onOpen:v.useCallback(()=>{window.clearTimeout(p.current),u.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>u.current=!0,l)},[l]),isPointerInTransitRef:f,onPointerInTransitChange:v.useCallback(m=>{f.current=m},[]),disableHoverableContent:o,children:s})};Mk.displayName=Rk;var as="Tooltip",[DD,js]=pd(as),Ok=e=>{const{__scopeTooltip:n,children:a,open:l,defaultOpen:o,onOpenChange:s,disableHoverableContent:u,delayDuration:f}=e,p=Hh(as,e.__scopeTooltip),m=md(n),[y,g]=v.useState(null),b=Ot(),w=v.useRef(0),k=u!=null?u:p.disableHoverableContent,S=f!=null?f:p.delayDuration,E=v.useRef(!1),[A,N]=Ur({prop:l,defaultProp:o!=null?o:!1,onChange:F=>{F?(p.onOpen(),document.dispatchEvent(new CustomEvent($m))):p.onClose(),s==null||s(F)},caller:as}),j=v.useMemo(()=>A?E.current?"delayed-open":"instant-open":"closed",[A]),O=v.useCallback(()=>{window.clearTimeout(w.current),w.current=0,E.current=!1,N(!0)},[N]),z=v.useCallback(()=>{window.clearTimeout(w.current),w.current=0,N(!1)},[N]),M=v.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{E.current=!0,N(!0),w.current=0},S)},[S,N]);return v.useEffect(()=>()=>{w.current&&(window.clearTimeout(w.current),w.current=0)},[]),d.jsx(Ju,{...m,children:d.jsx(DD,{scope:n,contentId:b,open:A,stateAttribute:j,trigger:y,onTriggerChange:g,onTriggerEnter:v.useCallback(()=>{p.isOpenDelayedRef.current?M():O()},[p.isOpenDelayedRef,M,O]),onTriggerLeave:v.useCallback(()=>{k?z():(window.clearTimeout(w.current),w.current=0)},[z,k]),onOpen:O,onClose:z,disableHoverableContent:k,children:a})})};Ok.displayName=as;var Vm="TooltipTrigger",Dk=v.forwardRef((e,n)=>{const{__scopeTooltip:a,...l}=e,o=js(Vm,a),s=Hh(Vm,a),u=md(a),f=v.useRef(null),p=qe(n,f,o.onTriggerChange),m=v.useRef(!1),y=v.useRef(!1),g=v.useCallback(()=>m.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),d.jsx(ks,{asChild:!0,...u,children:d.jsx(Ae.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...l,ref:p,onPointerMove:ve(e.onPointerMove,b=>{b.pointerType!=="touch"&&!y.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),y.current=!0)}),onPointerLeave:ve(e.onPointerLeave,()=>{o.onTriggerLeave(),y.current=!1}),onPointerDown:ve(e.onPointerDown,()=>{o.open&&o.onClose(),m.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:ve(e.onFocus,()=>{m.current||o.onOpen()}),onBlur:ve(e.onBlur,o.onClose),onClick:ve(e.onClick,o.onClose)})})});Dk.displayName=Vm;var $h="TooltipPortal",[zD,LD]=pd($h,{forceMount:void 0}),zk=e=>{const{__scopeTooltip:n,forceMount:a,children:l,container:o}=e,s=js($h,n);return d.jsx(zD,{scope:n,forceMount:a,children:d.jsx(Bt,{present:a||s.open,children:d.jsx(ji,{asChild:!0,container:o,children:l})})})};zk.displayName=$h;var Si="TooltipContent",Lk=v.forwardRef((e,n)=>{const a=LD(Si,e.__scopeTooltip),{forceMount:l=a.forceMount,side:o="top",...s}=e,u=js(Si,e.__scopeTooltip);return d.jsx(Bt,{present:l||u.open,children:u.disableHoverableContent?d.jsx(Ik,{side:o,...s,ref:n}):d.jsx(ID,{side:o,...s,ref:n})})}),ID=v.forwardRef((e,n)=>{const a=js(Si,e.__scopeTooltip),l=Hh(Si,e.__scopeTooltip),o=v.useRef(null),s=qe(n,o),[u,f]=v.useState(null),{trigger:p,onClose:m}=a,y=o.current,{onPointerInTransitChange:g}=l,b=v.useCallback(()=>{f(null),g(!1)},[g]),w=v.useCallback((k,S)=>{const E=k.currentTarget,A={x:k.clientX,y:k.clientY},N=UD(A,E.getBoundingClientRect()),j=HD(A,N),O=$D(S.getBoundingClientRect()),z=qD([...j,...O]);f(z),g(!0)},[g]);return v.useEffect(()=>()=>b(),[b]),v.useEffect(()=>{if(p&&y){const k=E=>w(E,y),S=E=>w(E,p);return p.addEventListener("pointerleave",k),y.addEventListener("pointerleave",S),()=>{p.removeEventListener("pointerleave",k),y.removeEventListener("pointerleave",S)}}},[p,y,w,b]),v.useEffect(()=>{if(u){const k=S=>{const E=S.target,A={x:S.clientX,y:S.clientY},N=(p==null?void 0:p.contains(E))||(y==null?void 0:y.contains(E)),j=!VD(A,u);N?b():j&&(b(),m())};return document.addEventListener("pointermove",k),()=>document.removeEventListener("pointermove",k)}},[p,y,u,m,b]),d.jsx(Ik,{...e,ref:s})}),[BD,PD]=pd(as,{isInside:!1}),FD=Lj("TooltipContent"),Ik=v.forwardRef((e,n)=>{const{__scopeTooltip:a,children:l,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:u,...f}=e,p=js(Si,a),m=md(a),{onClose:y}=p;return v.useEffect(()=>(document.addEventListener($m,y),()=>document.removeEventListener($m,y)),[y]),v.useEffect(()=>{if(p.trigger){const g=b=>{const w=b.target;w!=null&&w.contains(p.trigger)&&y()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[p.trigger,y]),d.jsx(Ni,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:g=>g.preventDefault(),onDismiss:y,children:d.jsxs(ed,{"data-state":p.stateAttribute,...m,...f,ref:n,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(FD,{children:l}),d.jsx(BD,{scope:a,isInside:!0,children:d.jsx(Hj,{id:p.contentId,role:"tooltip",children:o||l})})]})})});Lk.displayName=Si;var Bk="TooltipArrow",Pk=v.forwardRef((e,n)=>{const{__scopeTooltip:a,...l}=e,o=md(a);return PD(Bk,a).isInside?null:d.jsx(td,{...o,...l,ref:n})});Pk.displayName=Bk;function UD(e,n){const a=Math.abs(n.top-e.y),l=Math.abs(n.bottom-e.y),o=Math.abs(n.right-e.x),s=Math.abs(n.left-e.x);switch(Math.min(a,l,o,s)){case s:return"left";case o:return"right";case a:return"top";case l:return"bottom";default:throw new Error("unreachable")}}function HD(e,n,a=5){const l=[];switch(n){case"top":l.push({x:e.x-a,y:e.y+a},{x:e.x+a,y:e.y+a});break;case"bottom":l.push({x:e.x-a,y:e.y-a},{x:e.x+a,y:e.y-a});break;case"left":l.push({x:e.x+a,y:e.y-a},{x:e.x+a,y:e.y+a});break;case"right":l.push({x:e.x-a,y:e.y-a},{x:e.x-a,y:e.y+a});break}return l}function $D(e){const{top:n,right:a,bottom:l,left:o}=e;return[{x:o,y:n},{x:a,y:n},{x:a,y:l},{x:o,y:l}]}function VD(e,n){const{x:a,y:l}=e;let o=!1;for(let s=0,u=n.length-1;s<n.length;u=s++){const f=n[s],p=n[u],m=f.x,y=f.y,g=p.x,b=p.y;y>l!=b>l&&a<(g-m)*(l-y)/(b-y)+m&&(o=!o)}return o}function qD(e){const n=e.slice();return n.sort((a,l)=>a.x<l.x?-1:a.x>l.x?1:a.y<l.y?-1:a.y>l.y?1:0),GD(n)}function GD(e){if(e.length<=1)return e.slice();const n=[];for(let l=0;l<e.length;l++){const o=e[l];for(;n.length>=2;){const s=n[n.length-1],u=n[n.length-2];if((s.x-u.x)*(o.y-u.y)>=(s.y-u.y)*(o.x-u.x))n.pop();else break}n.push(o)}n.pop();const a=[];for(let l=e.length-1;l>=0;l--){const o=e[l];for(;a.length>=2;){const s=a[a.length-1],u=a[a.length-2];if((s.x-u.x)*(o.y-u.y)>=(s.y-u.y)*(o.x-u.x))a.pop();else break}a.push(o)}return a.pop(),n.length===1&&a.length===1&&n[0].x===a[0].x&&n[0].y===a[0].y?n:n.concat(a)}var YD=Mk,XD=Ok,KD=Dk,QD=zk,ZD=Lk,WD=Pk;const JD=(e,n)=>{const a=new Array(e.length+n.length);for(let l=0;l<e.length;l++)a[l]=e[l];for(let l=0;l<n.length;l++)a[e.length+l]=n[l];return a},e4=(e,n)=>({classGroupId:e,validator:n}),Fk=(e=new Map,n=null,a)=>({nextPart:e,validators:n,classGroupId:a}),Ru="-",Wv=[],t4="arbitrary..",n4=e=>{const n=a4(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:l}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return r4(u);const f=u.split(Ru),p=f[0]===""&&f.length>1?1:0;return Uk(f,p,n)},getConflictingClassGroupIds:(u,f)=>{if(f){const p=l[u],m=a[u];return p?m?JD(m,p):p:m||Wv}return a[u]||Wv}}},Uk=(e,n,a)=>{if(e.length-n===0)return a.classGroupId;const o=e[n],s=a.nextPart.get(o);if(s){const m=Uk(e,n+1,s);if(m)return m}const u=a.validators;if(u===null)return;const f=n===0?e.join(Ru):e.slice(n).join(Ru),p=u.length;for(let m=0;m<p;m++){const y=u[m];if(y.validator(f))return y.classGroupId}},r4=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=e.slice(1,-1),a=n.indexOf(":"),l=n.slice(0,a);return l?t4+l:void 0})(),a4=e=>{const{theme:n,classGroups:a}=e;return l4(a,n)},l4=(e,n)=>{const a=Fk();for(const l in e){const o=e[l];Vh(o,a,l,n)}return a},Vh=(e,n,a,l)=>{const o=e.length;for(let s=0;s<o;s++){const u=e[s];i4(u,n,a,l)}},i4=(e,n,a,l)=>{if(typeof e=="string"){o4(e,n,a);return}if(typeof e=="function"){s4(e,n,a,l);return}c4(e,n,a,l)},o4=(e,n,a)=>{const l=e===""?n:Hk(n,e);l.classGroupId=a},s4=(e,n,a,l)=>{if(u4(e)){Vh(e(l),n,a,l);return}n.validators===null&&(n.validators=[]),n.validators.push(e4(a,e))},c4=(e,n,a,l)=>{const o=Object.entries(e),s=o.length;for(let u=0;u<s;u++){const[f,p]=o[u];Vh(p,Hk(n,f),a,l)}},Hk=(e,n)=>{let a=e;const l=n.split(Ru),o=l.length;for(let s=0;s<o;s++){const u=l[s];let f=a.nextPart.get(u);f||(f=Fk(),a.nextPart.set(u,f)),a=f}return a},u4=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,d4=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,a=Object.create(null),l=Object.create(null);const o=(s,u)=>{a[s]=u,n++,n>e&&(n=0,l=a,a=Object.create(null))};return{get(s){let u=a[s];if(u!==void 0)return u;if((u=l[s])!==void 0)return o(s,u),u},set(s,u){s in a?a[s]=u:o(s,u)}}},qm="!",Jv=":",f4=[],e0=(e,n,a,l,o)=>({modifiers:e,hasImportantModifier:n,baseClassName:a,maybePostfixModifierPosition:l,isExternal:o}),p4=e=>{const{prefix:n,experimentalParseClassName:a}=e;let l=o=>{const s=[];let u=0,f=0,p=0,m;const y=o.length;for(let S=0;S<y;S++){const E=o[S];if(u===0&&f===0){if(E===Jv){s.push(o.slice(p,S)),p=S+1;continue}if(E==="/"){m=S;continue}}E==="["?u++:E==="]"?u--:E==="("?f++:E===")"&&f--}const g=s.length===0?o:o.slice(p);let b=g,w=!1;g.endsWith(qm)?(b=g.slice(0,-1),w=!0):g.startsWith(qm)&&(b=g.slice(1),w=!0);const k=m&&m>p?m-p:void 0;return e0(s,w,b,k)};if(n){const o=n+Jv,s=l;l=u=>u.startsWith(o)?s(u.slice(o.length)):e0(f4,!1,u,void 0,!0)}if(a){const o=l;l=s=>a({className:s,parseClassName:o})}return l},m4=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((a,l)=>{n.set(a,1e6+l)}),a=>{const l=[];let o=[];for(let s=0;s<a.length;s++){const u=a[s],f=u[0]==="[",p=n.has(u);f||p?(o.length>0&&(o.sort(),l.push(...o),o=[]),l.push(u)):o.push(u)}return o.length>0&&(o.sort(),l.push(...o)),l}},h4=e=>({cache:d4(e.cacheSize),parseClassName:p4(e),sortModifiers:m4(e),...n4(e)}),g4=/\s+/,y4=(e,n)=>{const{parseClassName:a,getClassGroupId:l,getConflictingClassGroupIds:o,sortModifiers:s}=n,u=[],f=e.trim().split(g4);let p="";for(let m=f.length-1;m>=0;m-=1){const y=f[m],{isExternal:g,modifiers:b,hasImportantModifier:w,baseClassName:k,maybePostfixModifierPosition:S}=a(y);if(g){p=y+(p.length>0?" "+p:p);continue}let E=!!S,A=l(E?k.substring(0,S):k);if(!A){if(!E){p=y+(p.length>0?" "+p:p);continue}if(A=l(k),!A){p=y+(p.length>0?" "+p:p);continue}E=!1}const N=b.length===0?"":b.length===1?b[0]:s(b).join(":"),j=w?N+qm:N,O=j+A;if(u.indexOf(O)>-1)continue;u.push(O);const z=o(A,E);for(let M=0;M<z.length;++M){const F=z[M];u.push(j+F)}p=y+(p.length>0?" "+p:p)}return p},x4=(...e)=>{let n=0,a,l,o="";for(;n<e.length;)(a=e[n++])&&(l=$k(a))&&(o&&(o+=" "),o+=l);return o},$k=e=>{if(typeof e=="string")return e;let n,a="";for(let l=0;l<e.length;l++)e[l]&&(n=$k(e[l]))&&(a&&(a+=" "),a+=n);return a},b4=(e,...n)=>{let a,l,o,s;const u=p=>{const m=n.reduce((y,g)=>g(y),e());return a=h4(m),l=a.cache.get,o=a.cache.set,s=f,f(p)},f=p=>{const m=l(p);if(m)return m;const y=y4(p,a);return o(p,y),y};return s=u,(...p)=>s(x4(...p))},v4=[],Mt=e=>{const n=a=>a[e]||v4;return n.isThemeGetter=!0,n},Vk=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qk=/^\((?:(\w[\w-]*):)?(.+)\)$/i,w4=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,S4=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,k4=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,C4=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,E4=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,A4=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ca=e=>w4.test(e),Ve=e=>!!e&&!Number.isNaN(Number(e)),Ea=e=>!!e&&Number.isInteger(Number(e)),nm=e=>e.endsWith("%")&&Ve(e.slice(0,-1)),Lr=e=>S4.test(e),Gk=()=>!0,N4=e=>k4.test(e)&&!C4.test(e),qh=()=>!1,j4=e=>E4.test(e),T4=e=>A4.test(e),_4=e=>!ke(e)&&!Ce(e),R4=e=>Pa(e,Kk,qh),ke=e=>Vk.test(e),ol=e=>Pa(e,Qk,N4),t0=e=>Pa(e,P4,Ve),M4=e=>Pa(e,Wk,Gk),O4=e=>Pa(e,Zk,qh),n0=e=>Pa(e,Yk,qh),D4=e=>Pa(e,Xk,T4),ru=e=>Pa(e,Jk,j4),Ce=e=>qk.test(e),Uo=e=>bl(e,Qk),z4=e=>bl(e,Zk),r0=e=>bl(e,Yk),L4=e=>bl(e,Kk),I4=e=>bl(e,Xk),au=e=>bl(e,Jk,!0),B4=e=>bl(e,Wk,!0),Pa=(e,n,a)=>{const l=Vk.exec(e);return l?l[1]?n(l[1]):a(l[2]):!1},bl=(e,n,a=!1)=>{const l=qk.exec(e);return l?l[1]?n(l[1]):a:!1},Yk=e=>e==="position"||e==="percentage",Xk=e=>e==="image"||e==="url",Kk=e=>e==="length"||e==="size"||e==="bg-size",Qk=e=>e==="length",P4=e=>e==="number",Zk=e=>e==="family-name",Wk=e=>e==="number"||e==="weight",Jk=e=>e==="shadow",F4=()=>{const e=Mt("color"),n=Mt("font"),a=Mt("text"),l=Mt("font-weight"),o=Mt("tracking"),s=Mt("leading"),u=Mt("breakpoint"),f=Mt("container"),p=Mt("spacing"),m=Mt("radius"),y=Mt("shadow"),g=Mt("inset-shadow"),b=Mt("text-shadow"),w=Mt("drop-shadow"),k=Mt("blur"),S=Mt("perspective"),E=Mt("aspect"),A=Mt("ease"),N=Mt("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...O(),Ce,ke],M=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],U=()=>[Ce,ke,p],Y=()=>[Ca,"full","auto",...U()],B=()=>[Ea,"none","subgrid",Ce,ke],G=()=>["auto",{span:["full",Ea,Ce,ke]},Ea,Ce,ke],q=()=>[Ea,"auto",Ce,ke],me=()=>["auto","min","max","fr",Ce,ke],ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ee=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...U()],X=()=>[Ca,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],J=()=>[Ca,"screen","full","dvw","lvw","svw","min","max","fit",...U()],Z=()=>[Ca,"screen","full","lh","dvh","lvh","svh","min","max","fit",...U()],R=()=>[e,Ce,ke],D=()=>[...O(),r0,n0,{position:[Ce,ke]}],L=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",L4,R4,{size:[Ce,ke]}],te=()=>[nm,Uo,ol],ae=()=>["","none","full",m,Ce,ke],le=()=>["",Ve,Uo,ol],ie=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>[Ve,nm,r0,n0],Te=()=>["","none",k,Ce,ke],ze=()=>["none",Ve,Ce,ke],Le=()=>["none",Ve,Ce,ke],ft=()=>[Ve,Ce,ke],et=()=>[Ca,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Lr],breakpoint:[Lr],color:[Gk],container:[Lr],"drop-shadow":[Lr],ease:["in","out","in-out"],font:[_4],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Lr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Lr],shadow:[Lr],spacing:["px",Ve],text:[Lr],"text-shadow":[Lr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ca,ke,Ce,E]}],container:["container"],columns:[{columns:[Ve,ke,Ce,f]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:z()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{"inset-s":Y(),start:Y()}],end:[{"inset-e":Y(),end:Y()}],"inset-bs":[{"inset-bs":Y()}],"inset-be":[{"inset-be":Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[Ea,"auto",Ce,ke]}],basis:[{basis:[Ca,"full","auto",f,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ve,Ca,"auto","initial","none",ke]}],grow:[{grow:["",Ve,Ce,ke]}],shrink:[{shrink:["",Ve,Ce,ke]}],order:[{order:[Ea,"first","last","none",Ce,ke]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":me()}],"auto-rows":[{"auto-rows":me()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...ne(),"normal"]}],"justify-items":[{"justify-items":[...ee(),"normal"]}],"justify-self":[{"justify-self":["auto",...ee()]}],"align-content":[{content:["normal",...ne()]}],"align-items":[{items:[...ee(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ee(),{baseline:["","last"]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...ee(),"baseline"]}],"place-self":[{"place-self":["auto",...ee()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pbs:[{pbs:U()}],pbe:[{pbe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mbs:[{mbs:I()}],mbe:[{mbe:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...Z()]}],"min-block-size":[{"min-block":["auto",...Z()]}],"max-block-size":[{"max-block":["none",...Z()]}],w:[{w:[f,"screen",...X()]}],"min-w":[{"min-w":[f,"screen","none",...X()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",a,Uo,ol]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,B4,M4]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",nm,ke]}],"font-family":[{font:[z4,O4,n]}],"font-features":[{"font-features":[ke]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Ce,ke]}],"line-clamp":[{"line-clamp":[Ve,"none",Ce,t0]}],leading:[{leading:[s,...U()]}],"list-image":[{"list-image":["none",Ce,ke]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ce,ke]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ve,"from-font","auto",Ce,ol]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[Ve,"auto",Ce,ke]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce,ke]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce,ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ea,Ce,ke],radial:["",Ce,ke],conic:[Ea,Ce,ke]},I4,D4]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ie(),"hidden","none"]}],"divide-style":[{divide:[...ie(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-bs":[{"border-bs":R()}],"border-color-be":[{"border-be":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ve,Ce,ke]}],"outline-w":[{outline:["",Ve,Uo,ol]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",y,au,ru]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",g,au,ru]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[Ve,ol]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",b,au,ru]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[Ve,Ce,ke]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ve]}],"mask-image-linear-from-pos":[{"mask-linear-from":he()}],"mask-image-linear-to-pos":[{"mask-linear-to":he()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":he()}],"mask-image-t-to-pos":[{"mask-t-to":he()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":he()}],"mask-image-r-to-pos":[{"mask-r-to":he()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":he()}],"mask-image-b-to-pos":[{"mask-b-to":he()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":he()}],"mask-image-l-to-pos":[{"mask-l-to":he()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":he()}],"mask-image-x-to-pos":[{"mask-x-to":he()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":he()}],"mask-image-y-to-pos":[{"mask-y-to":he()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[Ce,ke]}],"mask-image-radial-from-pos":[{"mask-radial-from":he()}],"mask-image-radial-to-pos":[{"mask-radial-to":he()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[Ve]}],"mask-image-conic-from-pos":[{"mask-conic-from":he()}],"mask-image-conic-to-pos":[{"mask-conic-to":he()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ce,ke]}],filter:[{filter:["","none",Ce,ke]}],blur:[{blur:Te()}],brightness:[{brightness:[Ve,Ce,ke]}],contrast:[{contrast:[Ve,Ce,ke]}],"drop-shadow":[{"drop-shadow":["","none",w,au,ru]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",Ve,Ce,ke]}],"hue-rotate":[{"hue-rotate":[Ve,Ce,ke]}],invert:[{invert:["",Ve,Ce,ke]}],saturate:[{saturate:[Ve,Ce,ke]}],sepia:[{sepia:["",Ve,Ce,ke]}],"backdrop-filter":[{"backdrop-filter":["","none",Ce,ke]}],"backdrop-blur":[{"backdrop-blur":Te()}],"backdrop-brightness":[{"backdrop-brightness":[Ve,Ce,ke]}],"backdrop-contrast":[{"backdrop-contrast":[Ve,Ce,ke]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ve,Ce,ke]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ve,Ce,ke]}],"backdrop-invert":[{"backdrop-invert":["",Ve,Ce,ke]}],"backdrop-opacity":[{"backdrop-opacity":[Ve,Ce,ke]}],"backdrop-saturate":[{"backdrop-saturate":[Ve,Ce,ke]}],"backdrop-sepia":[{"backdrop-sepia":["",Ve,Ce,ke]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ce,ke]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ve,"initial",Ce,ke]}],ease:[{ease:["linear","initial",A,Ce,ke]}],delay:[{delay:[Ve,Ce,ke]}],animate:[{animate:["none",N,Ce,ke]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,Ce,ke]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:ze()}],"rotate-x":[{"rotate-x":ze()}],"rotate-y":[{"rotate-y":ze()}],"rotate-z":[{"rotate-z":ze()}],scale:[{scale:Le()}],"scale-x":[{"scale-x":Le()}],"scale-y":[{"scale-y":Le()}],"scale-z":[{"scale-z":Le()}],"scale-3d":["scale-3d"],skew:[{skew:ft()}],"skew-x":[{"skew-x":ft()}],"skew-y":[{"skew-y":ft()}],transform:[{transform:[Ce,ke,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:et()}],"translate-x":[{"translate-x":et()}],"translate-y":[{"translate-y":et()}],"translate-z":[{"translate-z":et()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ce,ke]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mbs":[{"scroll-mbs":U()}],"scroll-mbe":[{"scroll-mbe":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pbs":[{"scroll-pbs":U()}],"scroll-pbe":[{"scroll-pbe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ce,ke]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[Ve,Uo,ol,t0]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},U4=b4(F4);function ge(...e){return U4(Hu(e))}const H4=Ai("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Ne({className:e,variant:n="default",size:a="default",asChild:l=!1,...o}){const s=l?xs:"button";return d.jsx(s,{"data-slot":"button","data-variant":n,"data-size":a,className:ge(H4({variant:n,size:a,className:e})),...o})}function Ts(){return{fetchWithAuth:v.useCallback(async(n,a={},l)=>{const{serverUrl:o,token:s}=l||{};let u=n;n.startsWith("/")&&o&&(u=`http://${o}${n}`);const f=new Headers(a.headers||{});return s&&f.set("Authorization",`Bearer ${s}`),fetch(u,{...a,headers:f})},[])}}function Mi({...e}){return d.jsx(hh,{"data-slot":"dialog",...e})}function $4({...e}){return d.jsx(gh,{"data-slot":"dialog-portal",...e})}function V4({...e}){return d.jsx(Xu,{"data-slot":"dialog-close",...e})}function q4({className:e,...n}){return d.jsx(yh,{"data-slot":"dialog-overlay",className:ge("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...n})}function Oi({className:e,children:n,showCloseButton:a=!0,...l}){return d.jsxs($4,{children:[d.jsx(q4,{}),d.jsxs(xh,{"data-slot":"dialog-content",className:ge("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-background p-4 text-sm ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...l,children:[n,a&&d.jsx(Xu,{"data-slot":"dialog-close",asChild:!0,children:d.jsxs(Ne,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm",children:[d.jsx(xi,{}),d.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})}function Di({className:e,...n}){return d.jsx("div",{"data-slot":"dialog-header",className:ge("flex flex-col gap-2",e),...n})}function hd({className:e,showCloseButton:n=!1,children:a,...l}){return d.jsxs("div",{"data-slot":"dialog-footer",className:ge("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...l,children:[a,n&&d.jsx(Xu,{asChild:!0,children:d.jsx(Ne,{variant:"outline",children:"Close"})})]})}function zi({className:e,...n}){return d.jsx(uw,{"data-slot":"dialog-title",className:ge("text-base leading-none font-medium",e),...n})}function _s({className:e,...n}){return d.jsx(dw,{"data-slot":"dialog-description",className:ge("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...n})}function mu({className:e,type:n,...a}){return d.jsx("input",{type:n,"data-slot":"input",className:ge("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...a})}const Oa=v.forwardRef(({className:e,children:n,...a},l)=>d.jsxs(BO,{"data-slot":"scroll-area",className:ge("relative overflow-hidden",e),...a,children:[d.jsx(PO,{ref:l,"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] outline-none",style:{WebkitOverflowScrolling:"touch"},children:n}),d.jsx(G4,{}),d.jsx(FO,{})]}));Oa.displayName="ScrollArea";function G4({className:e,orientation:n="vertical",...a}){return d.jsx(IS,{"data-slot":"scroll-area-scrollbar","data-orientation":n,orientation:n,className:ge("flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent",e),...a,children:d.jsx(US,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}function Y4(e){const a=e.replace(/\\/g,"/").split("/");return a.pop(),a.join("/")||"/"}function X4({open:e,onOpenChange:n,onSelect:a,initialPath:l,title:o="Select Folder"}){const[s,u]=v.useState(l||""),[f,p]=v.useState([]),[m,y]=v.useState(!1),[g,b]=v.useState(0),[w,k]=v.useState(null),[S,E]=v.useState(""),A=v.useRef(null),N=v.useRef(null),{fetchWithAuth:j}=Ts(),{activeServer:O}=Ei(),z=v.useCallback(async q=>{y(!0),k(null),b(0),E("");try{const me=await j(`/api/fs/browse?path=${encodeURIComponent(q)}`,{},{serverUrl:O==null?void 0:O.url,token:O==null?void 0:O.token}),ne=await me.json();if(!me.ok)throw new Error(ne.message||"Failed to browse directory");const ee=ne.files.filter(I=>I.type==="directory");p(ee),u(ne.currentPath)}catch(me){k(me instanceof Error?me.message:"Failed to load directory"),p([])}finally{y(!1)}},[j,O]);v.useEffect(()=>{e&&z(l||"")},[e,l,z]),v.useEffect(()=>{b(0)},[S]);const M=f.filter(q=>q.name.toLowerCase().includes(S.toLowerCase())),F=()=>{const q=Y4(s);q!==s&&z(q)},U=()=>{s&&(a(s),n(!1))},Y=q=>{const me=s?`${s}/${q.name}`:q.name;z(me)},B=q=>{if(M.length!==0)switch(q.key){case"ArrowDown":q.preventDefault(),b(me=>Math.min(me+1,M.length-1));break;case"ArrowUp":q.preventDefault(),b(me=>Math.max(me-1,0));break;case"Enter":q.preventDefault(),M[g]&&Y(M[g]);break;case"Escape":S&&(q.preventDefault(),E(""));break}};v.useEffect(()=>{if(N.current&&M.length>0){const q=N.current.children[g];q&&q.scrollIntoView({block:"nearest"})}},[g,M.length]),v.useEffect(()=>{e&&setTimeout(()=>{var q;return(q=A.current)==null?void 0:q.focus()},100)},[e]);const G=(q,me=50)=>{if(q.length<=me)return q;const ne=q.split("/");return ne.length<=2?q:".../"+ne.slice(-2).join("/")};return d.jsx(Mi,{open:e,onOpenChange:n,children:d.jsxs(Oi,{className:"sm:max-w-lg",onKeyDown:B,children:[d.jsx(Di,{children:d.jsx(zi,{children:o})}),d.jsxs("div",{className:"space-y-3",children:[d.jsxs("div",{className:"flex items-center gap-2 p-2 bg-muted rounded-md",children:[d.jsx(Ne,{variant:"ghost",size:"icon",className:"h-7 w-7 flex-shrink-0",onClick:F,disabled:m||!s,children:d.jsx(lN,{className:"w-4 h-4"})}),d.jsx("span",{className:"flex-1 text-sm font-mono truncate",title:s,children:G(s)||"Home"})]}),d.jsxs("div",{className:"relative",children:[d.jsx(oh,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),d.jsx(mu,{ref:A,placeholder:"Filter folders...",value:S,onChange:q=>E(q.target.value),className:"pl-8"})]}),d.jsx(Oa,{className:"h-64 border rounded-md",children:m?d.jsxs("div",{className:"flex items-center justify-center h-full text-muted-foreground",children:[d.jsx(Vn,{className:"w-4 h-4 animate-spin mr-2"}),"Loading..."]}):w?d.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-muted-foreground",children:[d.jsx("span",{className:"text-destructive",children:w}),d.jsx(Ne,{variant:"ghost",size:"sm",onClick:()=>z(s),className:"mt-2",children:"Retry"})]}):M.length===0?d.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-muted-foreground text-sm",children:[d.jsx(cl,{className:"w-8 h-8 mb-2 opacity-50"}),S?"No matching folders":"No folders in this directory"]}):d.jsx("div",{className:"p-1",ref:N,children:M.map((q,me)=>d.jsxs("button",{onClick:()=>{b(me)},onDoubleClick:()=>Y(q),className:ge("flex items-center gap-2 w-full px-2 py-1.5 rounded text-sm text-left","hover:bg-muted",me===g&&"bg-primary/20 text-primary font-medium ring-1 ring-primary/50"),children:[d.jsx(cl,{className:"w-4 h-4 text-amber-500 flex-shrink-0"}),d.jsx("span",{className:"truncate flex-1",children:q.name}),me===g&&d.jsx(Pr,{className:"w-4 h-4 text-primary"})]},q.path))})}),w&&d.jsx("p",{className:"text-xs text-destructive",children:w})]}),d.jsxs(hd,{children:[d.jsx(Ne,{variant:"outline",onClick:()=>n(!1),children:"Cancel"}),d.jsx(Ne,{onClick:U,disabled:!s||m,children:"Use This Folder"})]})]})})}var a0=1,K4=.9,Q4=.8,Z4=.17,rm=.1,am=.999,W4=.9999,J4=.99,ez=/[\\\/_+.#"@\[\(\{&]/,tz=/[\\\/_+.#"@\[\(\{&]/g,nz=/[\s-]/,eC=/[\s-]/g;function Gm(e,n,a,l,o,s,u){if(s===n.length)return o===e.length?a0:J4;var f=`${o},${s}`;if(u[f]!==void 0)return u[f];for(var p=l.charAt(s),m=a.indexOf(p,o),y=0,g,b,w,k;m>=0;)g=Gm(e,n,a,l,m+1,s+1,u),g>y&&(m===o?g*=a0:ez.test(e.charAt(m-1))?(g*=Q4,w=e.slice(o,m-1).match(tz),w&&o>0&&(g*=Math.pow(am,w.length))):nz.test(e.charAt(m-1))?(g*=K4,k=e.slice(o,m-1).match(eC),k&&o>0&&(g*=Math.pow(am,k.length))):(g*=Z4,o>0&&(g*=Math.pow(am,m-o))),e.charAt(m)!==n.charAt(s)&&(g*=W4)),(g<rm&&a.charAt(m-1)===l.charAt(s+1)||l.charAt(s+1)===l.charAt(s)&&a.charAt(m-1)!==l.charAt(s))&&(b=Gm(e,n,a,l,m+1,s+2,u),b*rm>g&&(g=b*rm)),g>y&&(y=g),m=a.indexOf(p,m+1);return u[f]=y,y}function l0(e){return e.toLowerCase().replace(eC," ")}function rz(e,n,a){return e=a&&a.length>0?`${e+" "+a.join(" ")}`:e,Gm(e,n,l0(e),l0(n),0,0,{})}var Ho='[cmdk-group=""]',lm='[cmdk-group-items=""]',az='[cmdk-group-heading=""]',tC='[cmdk-item=""]',i0=`${tC}:not([aria-disabled="true"])`,Ym="cmdk-item-select",ci="data-value",lz=(e,n,a)=>rz(e,n,a),nC=v.createContext(void 0),Rs=()=>v.useContext(nC),rC=v.createContext(void 0),Gh=()=>v.useContext(rC),aC=v.createContext(void 0),lC=v.forwardRef((e,n)=>{let a=ui(()=>{var L,T;return{search:"",value:(T=(L=e.value)!=null?L:e.defaultValue)!=null?T:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),l=ui(()=>new Set),o=ui(()=>new Map),s=ui(()=>new Map),u=ui(()=>new Set),f=iC(e),{label:p,children:m,value:y,onValueChange:g,filter:b,shouldFilter:w,loop:k,disablePointerSelection:S=!1,vimBindings:E=!0,...A}=e,N=Ot(),j=Ot(),O=Ot(),z=v.useRef(null),M=gz();hl(()=>{if(y!==void 0){let L=y.trim();a.current.value=L,F.emit()}},[y]),hl(()=>{M(6,me)},[]);let F=v.useMemo(()=>({subscribe:L=>(u.current.add(L),()=>u.current.delete(L)),snapshot:()=>a.current,setState:(L,T,te)=>{var ae,le,ie,be;if(!Object.is(a.current[L],T)){if(a.current[L]=T,L==="search")q(),B(),M(1,G);else if(L==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let he=document.getElementById(O);he?he.focus():(ae=document.getElementById(N))==null||ae.focus()}if(M(7,()=>{var he;a.current.selectedItemId=(he=ne())==null?void 0:he.id,F.emit()}),te||M(5,me),((le=f.current)==null?void 0:le.value)!==void 0){let he=T!=null?T:"";(be=(ie=f.current).onValueChange)==null||be.call(ie,he);return}}F.emit()}},emit:()=>{u.current.forEach(L=>L())}}),[]),U=v.useMemo(()=>({value:(L,T,te)=>{var ae;T!==((ae=s.current.get(L))==null?void 0:ae.value)&&(s.current.set(L,{value:T,keywords:te}),a.current.filtered.items.set(L,Y(T,te)),M(2,()=>{B(),F.emit()}))},item:(L,T)=>(l.current.add(L),T&&(o.current.has(T)?o.current.get(T).add(L):o.current.set(T,new Set([L]))),M(3,()=>{q(),B(),a.current.value||G(),F.emit()}),()=>{s.current.delete(L),l.current.delete(L),a.current.filtered.items.delete(L);let te=ne();M(4,()=>{q(),(te==null?void 0:te.getAttribute("id"))===L&&G(),F.emit()})}),group:L=>(o.current.has(L)||o.current.set(L,new Set),()=>{s.current.delete(L),o.current.delete(L)}),filter:()=>f.current.shouldFilter,label:p||e["aria-label"],getDisablePointerSelection:()=>f.current.disablePointerSelection,listId:N,inputId:O,labelId:j,listInnerRef:z}),[]);function Y(L,T){var te,ae;let le=(ae=(te=f.current)==null?void 0:te.filter)!=null?ae:lz;return L?le(L,a.current.search,T):0}function B(){if(!a.current.search||f.current.shouldFilter===!1)return;let L=a.current.filtered.items,T=[];a.current.filtered.groups.forEach(ae=>{let le=o.current.get(ae),ie=0;le.forEach(be=>{let he=L.get(be);ie=Math.max(he,ie)}),T.push([ae,ie])});let te=z.current;ee().sort((ae,le)=>{var ie,be;let he=ae.getAttribute("id"),Te=le.getAttribute("id");return((ie=L.get(Te))!=null?ie:0)-((be=L.get(he))!=null?be:0)}).forEach(ae=>{let le=ae.closest(lm);le?le.appendChild(ae.parentElement===le?ae:ae.closest(`${lm} > *`)):te.appendChild(ae.parentElement===te?ae:ae.closest(`${lm} > *`))}),T.sort((ae,le)=>le[1]-ae[1]).forEach(ae=>{var le;let ie=(le=z.current)==null?void 0:le.querySelector(`${Ho}[${ci}="${encodeURIComponent(ae[0])}"]`);ie==null||ie.parentElement.appendChild(ie)})}function G(){let L=ee().find(te=>te.getAttribute("aria-disabled")!=="true"),T=L==null?void 0:L.getAttribute(ci);F.setState("value",T||void 0)}function q(){var L,T,te,ae;if(!a.current.search||f.current.shouldFilter===!1){a.current.filtered.count=l.current.size;return}a.current.filtered.groups=new Set;let le=0;for(let ie of l.current){let be=(T=(L=s.current.get(ie))==null?void 0:L.value)!=null?T:"",he=(ae=(te=s.current.get(ie))==null?void 0:te.keywords)!=null?ae:[],Te=Y(be,he);a.current.filtered.items.set(ie,Te),Te>0&&le++}for(let[ie,be]of o.current)for(let he of be)if(a.current.filtered.items.get(he)>0){a.current.filtered.groups.add(ie);break}a.current.filtered.count=le}function me(){var L,T,te;let ae=ne();ae&&(((L=ae.parentElement)==null?void 0:L.firstChild)===ae&&((te=(T=ae.closest(Ho))==null?void 0:T.querySelector(az))==null||te.scrollIntoView({block:"nearest"})),ae.scrollIntoView({block:"nearest"}))}function ne(){var L;return(L=z.current)==null?void 0:L.querySelector(`${tC}[aria-selected="true"]`)}function ee(){var L;return Array.from(((L=z.current)==null?void 0:L.querySelectorAll(i0))||[])}function I(L){let T=ee()[L];T&&F.setState("value",T.getAttribute(ci))}function X(L){var T;let te=ne(),ae=ee(),le=ae.findIndex(be=>be===te),ie=ae[le+L];(T=f.current)!=null&&T.loop&&(ie=le+L<0?ae[ae.length-1]:le+L===ae.length?ae[0]:ae[le+L]),ie&&F.setState("value",ie.getAttribute(ci))}function J(L){let T=ne(),te=T==null?void 0:T.closest(Ho),ae;for(;te&&!ae;)te=L>0?mz(te,Ho):hz(te,Ho),ae=te==null?void 0:te.querySelector(i0);ae?F.setState("value",ae.getAttribute(ci)):X(L)}let Z=()=>I(ee().length-1),R=L=>{L.preventDefault(),L.metaKey?Z():L.altKey?J(1):X(1)},D=L=>{L.preventDefault(),L.metaKey?I(0):L.altKey?J(-1):X(-1)};return v.createElement(Ae.div,{ref:n,tabIndex:-1,...A,"cmdk-root":"",onKeyDown:L=>{var T;(T=A.onKeyDown)==null||T.call(A,L);let te=L.nativeEvent.isComposing||L.keyCode===229;if(!(L.defaultPrevented||te))switch(L.key){case"n":case"j":{E&&L.ctrlKey&&R(L);break}case"ArrowDown":{R(L);break}case"p":case"k":{E&&L.ctrlKey&&D(L);break}case"ArrowUp":{D(L);break}case"Home":{L.preventDefault(),I(0);break}case"End":{L.preventDefault(),Z();break}case"Enter":{L.preventDefault();let ae=ne();if(ae){let le=new Event(Ym);ae.dispatchEvent(le)}}}}},v.createElement("label",{"cmdk-label":"",htmlFor:U.inputId,id:U.labelId,style:xz},p),gd(e,L=>v.createElement(rC.Provider,{value:F},v.createElement(nC.Provider,{value:U},L))))}),iz=v.forwardRef((e,n)=>{var a,l;let o=Ot(),s=v.useRef(null),u=v.useContext(aC),f=Rs(),p=iC(e),m=(l=(a=p.current)==null?void 0:a.forceMount)!=null?l:u==null?void 0:u.forceMount;hl(()=>{if(!m)return f.item(o,u==null?void 0:u.id)},[m]);let y=oC(o,s,[e.value,e.children,s],e.keywords),g=Gh(),b=Da(M=>M.value&&M.value===y.current),w=Da(M=>m||f.filter()===!1?!0:M.search?M.filtered.items.get(o)>0:!0);v.useEffect(()=>{let M=s.current;if(!(!M||e.disabled))return M.addEventListener(Ym,k),()=>M.removeEventListener(Ym,k)},[w,e.onSelect,e.disabled]);function k(){var M,F;S(),(F=(M=p.current).onSelect)==null||F.call(M,y.current)}function S(){g.setState("value",y.current,!0)}if(!w)return null;let{disabled:E,value:A,onSelect:N,forceMount:j,keywords:O,...z}=e;return v.createElement(Ae.div,{ref:Fr(s,n),...z,id:o,"cmdk-item":"",role:"option","aria-disabled":!!E,"aria-selected":!!b,"data-disabled":!!E,"data-selected":!!b,onPointerMove:E||f.getDisablePointerSelection()?void 0:S,onClick:E?void 0:k},e.children)}),oz=v.forwardRef((e,n)=>{let{heading:a,children:l,forceMount:o,...s}=e,u=Ot(),f=v.useRef(null),p=v.useRef(null),m=Ot(),y=Rs(),g=Da(w=>o||y.filter()===!1?!0:w.search?w.filtered.groups.has(u):!0);hl(()=>y.group(u),[]),oC(u,f,[e.value,e.heading,p]);let b=v.useMemo(()=>({id:u,forceMount:o}),[o]);return v.createElement(Ae.div,{ref:Fr(f,n),...s,"cmdk-group":"",role:"presentation",hidden:g?void 0:!0},a&&v.createElement("div",{ref:p,"cmdk-group-heading":"","aria-hidden":!0,id:m},a),gd(e,w=>v.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":a?m:void 0},v.createElement(aC.Provider,{value:b},w))))}),sz=v.forwardRef((e,n)=>{let{alwaysRender:a,...l}=e,o=v.useRef(null),s=Da(u=>!u.search);return!a&&!s?null:v.createElement(Ae.div,{ref:Fr(o,n),...l,"cmdk-separator":"",role:"separator"})}),cz=v.forwardRef((e,n)=>{let{onValueChange:a,...l}=e,o=e.value!=null,s=Gh(),u=Da(m=>m.search),f=Da(m=>m.selectedItemId),p=Rs();return v.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),v.createElement(Ae.input,{ref:n,...l,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":p.listId,"aria-labelledby":p.labelId,"aria-activedescendant":f,id:p.inputId,type:"text",value:o?e.value:u,onChange:m=>{o||s.setState("search",m.target.value),a==null||a(m.target.value)}})}),uz=v.forwardRef((e,n)=>{let{children:a,label:l="Suggestions",...o}=e,s=v.useRef(null),u=v.useRef(null),f=Da(m=>m.selectedItemId),p=Rs();return v.useEffect(()=>{if(u.current&&s.current){let m=u.current,y=s.current,g,b=new ResizeObserver(()=>{g=requestAnimationFrame(()=>{let w=m.offsetHeight;y.style.setProperty("--cmdk-list-height",w.toFixed(1)+"px")})});return b.observe(m),()=>{cancelAnimationFrame(g),b.unobserve(m)}}},[]),v.createElement(Ae.div,{ref:Fr(s,n),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":f,"aria-label":l,id:p.listId},gd(e,m=>v.createElement("div",{ref:Fr(u,p.listInnerRef),"cmdk-list-sizer":""},m)))}),dz=v.forwardRef((e,n)=>{let{open:a,onOpenChange:l,overlayClassName:o,contentClassName:s,container:u,...f}=e;return v.createElement(hh,{open:a,onOpenChange:l},v.createElement(gh,{container:u},v.createElement(yh,{"cmdk-overlay":"",className:o}),v.createElement(xh,{"aria-label":e.label,"cmdk-dialog":"",className:s},v.createElement(lC,{ref:n,...f}))))}),fz=v.forwardRef((e,n)=>Da(a=>a.filtered.count===0)?v.createElement(Ae.div,{ref:n,...e,"cmdk-empty":"",role:"presentation"}):null),pz=v.forwardRef((e,n)=>{let{progress:a,children:l,label:o="Loading...",...s}=e;return v.createElement(Ae.div,{ref:n,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":a,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},gd(e,u=>v.createElement("div",{"aria-hidden":!0},u)))}),vl=Object.assign(lC,{List:uz,Item:iz,Input:cz,Group:oz,Separator:sz,Dialog:dz,Empty:fz,Loading:pz});function mz(e,n){let a=e.nextElementSibling;for(;a;){if(a.matches(n))return a;a=a.nextElementSibling}}function hz(e,n){let a=e.previousElementSibling;for(;a;){if(a.matches(n))return a;a=a.previousElementSibling}}function iC(e){let n=v.useRef(e);return hl(()=>{n.current=e}),n}var hl=typeof window>"u"?v.useEffect:v.useLayoutEffect;function ui(e){let n=v.useRef();return n.current===void 0&&(n.current=e()),n}function Da(e){let n=Gh(),a=()=>e(n.snapshot());return v.useSyncExternalStore(n.subscribe,a,a)}function oC(e,n,a,l=[]){let o=v.useRef(),s=Rs();return hl(()=>{var u;let f=(()=>{var m;for(let y of a){if(typeof y=="string")return y.trim();if(typeof y=="object"&&"current"in y)return y.current?(m=y.current.textContent)==null?void 0:m.trim():o.current}})(),p=l.map(m=>m.trim());s.value(e,f,p),(u=n.current)==null||u.setAttribute(ci,f),o.current=f}),o}var gz=()=>{let[e,n]=v.useState(),a=ui(()=>new Map);return hl(()=>{a.current.forEach(l=>l()),a.current=new Map},[e]),(l,o)=>{a.current.set(l,o),n({})}};function yz(e){let n=e.type;return typeof n=="function"?n(e.props):"render"in n?n.render(e.props):e}function gd({asChild:e,children:n},a){return e&&v.isValidElement(n)?v.cloneElement(yz(n),{ref:n.ref},a(n.props.children)):a(n)}var xz={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function bz({className:e,...n}){return d.jsx("textarea",{"data-slot":"textarea",className:ge("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...n})}function vz({className:e,...n}){return d.jsx("div",{"data-slot":"input-group",role:"group",className:ge("group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",e),...n})}const wz=Ai("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});function Sz({className:e,align:n="inline-start",...a}){return d.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":n,className:ge(wz({align:n}),e),onClick:l=>{var o,s;l.target.closest("button")||(s=(o=l.currentTarget.parentElement)==null?void 0:o.querySelector("input"))==null||s.focus()},...a})}function Yh({className:e,...n}){return d.jsx(vl,{"data-slot":"command",className:ge("flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground",e),...n})}function sC({className:e,...n}){return d.jsx("div",{"data-slot":"command-input-wrapper",className:"p-1 pb-0",children:d.jsxs(vz,{className:"h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!",children:[d.jsx(vl.Input,{"data-slot":"command-input",className:ge("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...n}),d.jsx(Sz,{children:d.jsx(oh,{className:"size-4 shrink-0 opacity-50"})})]})})}function Xh({className:e,...n}){return d.jsx(vl.List,{"data-slot":"command-list",className:ge("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",e),...n})}function Kh({className:e,...n}){return d.jsx(vl.Empty,{"data-slot":"command-empty",className:ge("py-6 text-center text-sm",e),...n})}function ls({className:e,...n}){return d.jsx(vl.Group,{"data-slot":"command-group",className:ge("overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground",e),...n})}function cC({className:e,...n}){return d.jsx(vl.Separator,{"data-slot":"command-separator",className:ge("-mx-1 h-px bg-border",e),...n})}function gi({className:e,children:n,...a}){return d.jsxs(vl.Item,{"data-slot":"command-item",className:ge("group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground",e),...a,children:[n,d.jsx(Pr,{className:"ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100"})]})}function yd({...e}){return d.jsx(mO,{"data-slot":"popover",...e})}function Qh({...e}){return d.jsx(gO,{"data-slot":"popover-trigger",...e})}function xd({className:e,align:n="center",sideOffset:a=4,...l}){return d.jsx(yO,{children:d.jsx(xO,{"data-slot":"popover-content",align:n,sideOffset:a,className:ge("z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...l})})}function kz({...e}){return d.jsx(hO,{"data-slot":"popover-anchor",...e})}function Cz({workspaces:e,activeWorkspace:n,onSelectWorkspace:a,onCreateVirtualWorkspace:l,onCreatePhysicalWorkspace:o,isWorkspaceFavorited:s,onToggleFavorite:u}){const[f,p]=v.useState(!1),[m,y]=v.useState(!1);return d.jsxs(d.Fragment,{children:[d.jsxs(yd,{open:f,onOpenChange:p,children:[d.jsx(Qh,{asChild:!0,children:d.jsxs(Ne,{variant:"outline",role:"combobox","aria-expanded":f,"aria-label":"Select workspace",className:"w-full justify-between h-9",children:[d.jsxs("div",{className:"flex items-center gap-2 overflow-hidden",children:[n!=null&&n.isVirtual?d.jsx(gv,{className:"size-4 flex-shrink-0 text-muted-foreground"}):d.jsx(cl,{className:"size-4 flex-shrink-0 text-muted-foreground"}),d.jsx("span",{className:"truncate",children:(n==null?void 0:n.name)||"Select workspace"})]}),d.jsx(b1,{className:"ml-auto size-4 shrink-0 opacity-50"})]})}),d.jsx(xd,{className:"w-[240px] p-0 max-h-[80vh]",children:d.jsxs(Yh,{children:[d.jsx(sC,{placeholder:"Search workspace..."}),d.jsxs(Xh,{className:"max-h-[50vh] overflow-y-auto",children:[d.jsx(Kh,{children:"No workspace found."}),d.jsx(ls,{heading:"Workspaces",children:e.map(g=>d.jsxs(gi,{onSelect:()=>{a(g),p(!1)},className:"justify-between",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[g.isVirtual?d.jsx(gv,{className:"size-4 text-muted-foreground"}):d.jsx(cl,{className:"size-4 text-muted-foreground"}),d.jsx("span",{children:g.name})]}),d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx("button",{className:"p-1 rounded hover:bg-secondary transition-colors",onClick:b=>{b.stopPropagation(),u(g.id,g.name)},title:s(g.id)?"Remove from favorites":"Add to favorites",children:s(g.id)?d.jsx(xv,{className:"size-4 fill-primary text-primary"}):d.jsx(xv,{className:"size-4 text-muted-foreground"})}),d.jsx(Pr,{className:ge("size-4",(n==null?void 0:n.id)===g.id?"opacity-100":"opacity-0")})]})]},g.id))}),d.jsx(cC,{}),d.jsxs(ls,{children:[d.jsxs(gi,{onSelect:()=>{l(),p(!1)},children:[d.jsx(Uu,{className:"size-4","data-icon":"inline-start"}),"Create virtual workspace"]}),d.jsxs(gi,{onSelect:()=>{p(!1),y(!0)},children:[d.jsx(cl,{className:"size-4","data-icon":"inline-start"}),"Add existing folder"]})]})]})]})})]}),d.jsx(X4,{open:m,onOpenChange:y,onSelect:g=>{o(g),y(!1)},title:"Select Workspace Folder"})]})}function Ez({onOpenAddServer:e,onServerSwitch:n}){const[a,l]=v.useState(!1),{servers:o,activeServer:s,switchServer:u}=Ei();return d.jsxs(yd,{open:a,onOpenChange:l,children:[d.jsx(Qh,{asChild:!0,children:d.jsxs(Ne,{variant:"outline",role:"combobox","aria-expanded":a,"aria-label":"Select server",className:"w-full justify-between h-9",children:[d.jsxs("div",{className:"flex items-center gap-2 overflow-hidden",children:[d.jsx(ul,{className:"size-4 flex-shrink-0 text-muted-foreground"}),d.jsx("span",{className:"truncate",children:(s==null?void 0:s.name)||"Select server"})]}),d.jsx(b1,{className:"ml-auto size-4 shrink-0 opacity-50"})]})}),d.jsx(xd,{className:"w-[240px] p-0 max-h-[80vh]",children:d.jsxs(Yh,{children:[d.jsx(sC,{placeholder:"Search server..."}),d.jsxs(Xh,{className:"max-h-[50vh] overflow-y-auto",children:[d.jsx(Kh,{children:"No server found."}),d.jsx(ls,{heading:"Servers",children:o.map(f=>d.jsxs(gi,{onSelect:()=>{u(f.id),n==null||n(),l(!1)},className:"justify-between",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(ul,{className:"size-4 text-muted-foreground"}),d.jsx("span",{children:f.name})]}),d.jsx(Pr,{className:ge("size-4",(s==null?void 0:s.id)===f.id?"opacity-100":"opacity-0")})]},f.id))}),d.jsx(cC,{}),d.jsx(ls,{children:d.jsxs(gi,{onSelect:()=>{e(),l(!1)},children:[d.jsx(Uu,{className:"size-4","data-icon":"inline-start"}),"Add Server..."]})})]})]})})]})}const im=640;function bd(){const[e,n]=v.useState(void 0);return v.useEffect(()=>{const a=window.matchMedia(`(max-width: ${im-1}px)`),l=()=>{n(window.innerWidth<im)};return a.addEventListener("change",l),n(window.innerWidth<im),()=>a.removeEventListener("change",l)},[]),!!e}function Ko({className:e,orientation:n="horizontal",decorative:a=!0,...l}){return d.jsx(ED,{"data-slot":"separator",decorative:a,orientation:n,className:ge("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",e),...l})}function Zh({...e}){return d.jsx(hh,{"data-slot":"sheet",...e})}function Az({...e}){return d.jsx(m_,{"data-slot":"sheet-trigger",...e})}function Nz({...e}){return d.jsx(gh,{"data-slot":"sheet-portal",...e})}function jz({className:e,...n}){return d.jsx(yh,{"data-slot":"sheet-overlay",className:ge("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...n})}function Wh({className:e,children:n,side:a="right",showCloseButton:l=!0,...o}){return d.jsxs(Nz,{children:[d.jsx(jz,{}),d.jsxs(xh,{"data-slot":"sheet-content","data-side":a,className:ge("fixed z-50 flex flex-col gap-4 bg-background bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10",e),style:a==="left"||a==="right"?{top:"env(safe-area-inset-top, 0)",bottom:"env(safe-area-inset-bottom, 0)"}:void 0,...o,children:[n,l&&d.jsx(Xu,{"data-slot":"sheet-close",asChild:!0,children:d.jsxs(Ne,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm",children:[d.jsx(xi,{}),d.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})}function Jh({className:e,...n}){return d.jsx("div",{"data-slot":"sheet-header",className:ge("flex flex-col gap-0.5 p-4",e),...n})}function eg({className:e,...n}){return d.jsx(uw,{"data-slot":"sheet-title",className:ge("text-base font-medium text-foreground",e),...n})}function Tz({className:e,...n}){return d.jsx(dw,{"data-slot":"sheet-description",className:ge("text-sm text-muted-foreground",e),...n})}function Mu({delayDuration:e=0,...n}){return d.jsx(YD,{"data-slot":"tooltip-provider",delayDuration:e,...n})}function is({...e}){return d.jsx(XD,{"data-slot":"tooltip",...e})}function os({...e}){return d.jsx(KD,{"data-slot":"tooltip-trigger",...e})}function ss({className:e,sideOffset:n=0,children:a,...l}){return d.jsx(QD,{children:d.jsxs(ZD,{"data-slot":"tooltip-content",sideOffset:n,className:ge("z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...l,children:[a,d.jsx(WD,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}const _z="sidebar_state",Rz=3600*24*7,Mz="16rem",Oz="18rem",Dz="3rem",zz="b",uC=v.createContext(null);function tg(){const e=v.useContext(uC);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Lz({defaultOpen:e=!0,open:n,onOpenChange:a,className:l,style:o,children:s,...u}){const f=bd(),[p,m]=v.useState(!1),[y,g]=v.useState(e),b=n!=null?n:y,w=v.useCallback(A=>{const N=typeof A=="function"?A(b):A;a?a(N):g(N),document.cookie=`${_z}=${N}; path=/; max-age=${Rz}`},[a,b]),k=v.useCallback(()=>f?m(A=>!A):w(A=>!A),[f,w,m]);v.useEffect(()=>{const A=N=>{N.key===zz&&(N.metaKey||N.ctrlKey)&&(N.preventDefault(),k())};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[k]);const S=b?"expanded":"collapsed",E=v.useMemo(()=>({state:S,open:b,setOpen:w,isMobile:f,openMobile:p,setOpenMobile:m,toggleSidebar:k}),[S,b,w,f,p,m,k]);return d.jsx(uC.Provider,{value:E,children:d.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Mz,"--sidebar-width-icon":Dz,...o},className:ge("overflow-hidden group/sidebar-wrapper flex h-full w-full has-data-[variant=inset]:bg-sidebar",l),...u,children:s})})}function Iz({side:e="left",variant:n="sidebar",collapsible:a="offcanvas",className:l,children:o,dir:s,...u}){const{isMobile:f,state:p,openMobile:m,setOpenMobile:y}=tg();return a==="none"?d.jsx("div",{"data-slot":"sidebar",className:ge("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",l),...u,children:o}):f?d.jsx(Zh,{open:m,onOpenChange:y,...u,children:d.jsxs(Wh,{dir:s,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Oz},side:e,children:[d.jsxs(Jh,{className:"sr-only",children:[d.jsx(eg,{children:"Sidebar"}),d.jsx(Tz,{children:"Displays the mobile sidebar."})]}),d.jsx("div",{className:"flex h-full w-full flex-col",style:{paddingTop:"env(safe-area-inset-top, 0)"},children:o})]})}):d.jsxs("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":p,"data-collapsible":p==="collapsed"?a:"","data-variant":n,"data-side":e,"data-slot":"sidebar",children:[d.jsx("div",{"data-slot":"sidebar-gap",className:ge("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",n==="floating"||n==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),d.jsx("div",{"data-slot":"sidebar-container","data-side":e,className:ge("fixed z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",n==="floating"||n==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",l),style:{top:"env(safe-area-inset-top, 0)",bottom:"env(safe-area-inset-bottom, 0)",height:"calc(100vh - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0))"},...u,children:d.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:o})})]})}function o0({className:e,onClick:n,...a}){const{toggleSidebar:l}=tg();return d.jsxs(Ne,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:ge(e),onClick:o=>{n==null||n(o),l()},...a,children:[d.jsx(YN,{}),d.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function Bz({className:e,...n}){return d.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:ge("flex flex-col gap-2 p-2",e),...n})}function Pz({className:e,...n}){return d.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:ge("flex flex-col gap-2 p-2",e),...n})}function Fz({className:e,...n}){return d.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:ge("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...n})}function s0({className:e,...n}){return d.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:ge("relative flex w-full min-w-0 flex-col p-2",e),...n})}function c0({className:e,asChild:n=!1,...a}){const l=n?xs:"div";return d.jsx(l,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:ge("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",e),...a})}function u0({className:e,...n}){return d.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:ge("w-full text-sm",e),...n})}function lu({className:e,...n}){return d.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:ge("flex w-full min-w-0 flex-col gap-0",e),...n})}function fi({className:e,...n}){return d.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:ge("group/menu-item relative",e),...n})}const Uz=Ai("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Zo({asChild:e=!1,isActive:n=!1,variant:a="default",size:l="default",tooltip:o,className:s,...u}){const f=e?xs:"button",{isMobile:p,state:m}=tg(),y=d.jsx(f,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":l,"data-active":n,className:ge(Uz({variant:a,size:l}),s),...u});return o?(typeof o=="string"&&(o={children:o}),d.jsxs(is,{children:[d.jsx(os,{asChild:!0,children:y}),d.jsx(ss,{side:"right",align:"center",hidden:m!=="collapsed"||p,...o})]})):y}function Hz({className:e,asChild:n=!1,showOnHover:a=!1,...l}){const o=n?xs:"button";return d.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:ge("absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-data-active/menu-button:text-sidebar-accent-foreground aria-expanded:opacity-100 md:opacity-0",e),...l})}function $z({className:e,...n}){return d.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:ge("ml-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border pl-2.5 py-0.5 group-data-[collapsible=icon]:hidden",e),...n})}function cs({...e}){return d.jsx(nT,{"data-slot":"collapsible",...e})}function us({...e}){return d.jsx(z1,{"data-slot":"collapsible-trigger",...e})}function ds({...e}){return d.jsx(L1,{"data-slot":"collapsible-content",...e})}function Vz({...e}){return d.jsx(WM,{"data-slot":"dropdown-menu",...e})}function qz({...e}){return d.jsx(JM,{"data-slot":"dropdown-menu-trigger",...e})}function Gz({className:e,align:n="start",sideOffset:a=4,...l}){return d.jsx(eO,{children:d.jsx(tO,{"data-slot":"dropdown-menu-content",sideOffset:a,align:n,className:ge("z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:overflow-hidden data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...l})})}function om({className:e,inset:n,variant:a="default",...l}){return d.jsx(nO,{"data-slot":"dropdown-menu-item","data-inset":n,"data-variant":a,className:ge("group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",e),...l})}const d0=Jn.memo(function({isClosed:n,onReopen:a,onClose:l,onDelete:o}){return d.jsxs(Vz,{children:[d.jsx(qz,{asChild:!0,children:d.jsxs(Hz,{showOnHover:!0,children:[d.jsx(vN,{className:"size-4"}),d.jsx("span",{className:"sr-only",children:"Session actions"})]})}),d.jsx(Gz,{align:"end",children:n?d.jsxs(d.Fragment,{children:[d.jsxs(om,{onClick:a,children:[d.jsx(tj,{className:"size-4"}),"Restore"]}),d.jsxs(om,{onClick:o,className:"text-destructive focus:text-destructive",children:[d.jsx(gs,{className:"size-4"}),"Delete permanently"]})]}):d.jsxs(om,{onClick:l,children:[d.jsx(xi,{className:"size-4"}),"Archive"]})})]})}),f0=Jn.memo(function({status:n,isStreaming:a,runningAt:l}){return a||n==="running"||!!l?d.jsx(Vn,{className:"size-3.5 animate-spin shrink-0"}):n==="error"?d.jsx(Fu,{className:"size-3.5 shrink-0"}):d.jsx(hs,{className:"size-3.5 shrink-0"})}),p0=Jn.memo(function e({session:n,allSessions:a,isActive:l,currentSessionId:o,streamingSessionId:s,onResumeSession:u,onCloseSession:f,onReopenSession:p,onDeleteSession:m}){const y=v.useMemo(()=>a.filter(S=>S.parentId===n.id),[a,n.id]),g=y.length>0,b=n.status==="closed",w=v.useMemo(()=>y.some(S=>S.id===o),[y,o]),k=n.id===s;return g?d.jsx(Mu,{delayDuration:300,children:d.jsx(cs,{defaultOpen:l||w,className:"group/collapsible",children:d.jsxs(fi,{children:[d.jsxs("div",{className:"flex items-center w-full",children:[d.jsx(us,{asChild:!0,children:d.jsx("button",{className:"flex items-center justify-center rounded-md hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shrink-0 size-7 p-1","aria-label":"Toggle child sessions",children:d.jsx(Ta,{className:"size-4 transition-transform duration-200 [[data-state=open]>&]:rotate-90"})})}),d.jsx(Zo,{isActive:l,onClick:()=>u(n.id),className:"flex-1 min-w-0",children:d.jsxs(is,{children:[d.jsx(os,{asChild:!0,children:d.jsxs("span",{className:"truncate flex items-center gap-2",children:[d.jsx(f0,{status:n.subagentStatus,isStreaming:k,runningAt:n.runningAt}),n.title||"Untitled"]})}),d.jsx(ss,{side:"right",className:"max-w-xs",children:n.title||"Untitled"})]})}),d.jsx(d0,{isClosed:b,onReopen:()=>p(n.id),onClose:()=>f(n.id),onDelete:()=>m(n.id)})]}),d.jsx(ds,{children:d.jsx($z,{children:y.map(S=>d.jsx(e,{session:S,allSessions:a,isActive:o===S.id,currentSessionId:o,streamingSessionId:s,onResumeSession:u,onCloseSession:f,onReopenSession:p,onDeleteSession:m},S.id))})})]})})}):d.jsx(Mu,{delayDuration:300,children:d.jsx(fi,{children:d.jsxs("div",{className:"flex items-center w-full",children:[d.jsx("div",{className:"shrink-0 size-7 p-1"}),d.jsx(Zo,{isActive:l,onClick:()=>u(n.id),className:"flex-1 min-w-0",children:d.jsxs(is,{children:[d.jsx(os,{asChild:!0,children:d.jsxs("span",{className:"truncate flex items-center gap-2",children:[d.jsx(f0,{status:n.subagentStatus,isStreaming:k,runningAt:n.runningAt}),n.title||"Untitled"]})}),d.jsx(ss,{side:"right",className:"max-w-xs",children:n.title||"Untitled"})]})}),d.jsx(d0,{isClosed:b,onReopen:()=>p(n.id),onClose:()=>f(n.id),onDelete:()=>m(n.id)})]})})})}),Yz=Ai("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function jn({className:e,variant:n="default",asChild:a=!1,...l}){const o=a?xs:"span";return d.jsx(o,{"data-slot":"badge","data-variant":n,className:ge(Yz({variant:n}),e),...l})}function Xz({sessions:e,currentSession:n,currentSessionId:a,streamingSessionId:l,connected:o,workspaces:s,activeWorkspace:u,onCreateSession:f,onResumeSession:p,onCloseSession:m,onReopenSession:y,onDeleteSession:g,onSelectWorkspace:b,onCreateVirtualWorkspace:w,onCreatePhysicalWorkspace:k,onOpenSettings:S,onOpenMCP:E,onOpenAddServer:A,onServerSwitch:N}){const{quickConnections:j,addToQuickConnections:O,activeServer:z}=Ei(),{activeSessions:M,archivedSessions:F}=v.useMemo(()=>{const B=e.filter(G=>!G.parentId);return{activeSessions:B.filter(G=>G.status==="active"),archivedSessions:B.filter(G=>G.status==="closed")}},[e]),U=B=>j.some(G=>G.workspaceId===B&&G.serverId===(z==null?void 0:z.id)),Y=(B,G)=>{z&&O(z.id,z.name,B,G)};return d.jsxs(Iz,{collapsible:"offcanvas",children:[d.jsxs(Bz,{children:[d.jsxs("div",{className:"p-2 space-y-2",children:[d.jsx(Ez,{onOpenAddServer:A,onServerSwitch:N}),d.jsx(Cz,{workspaces:s,activeWorkspace:u,onSelectWorkspace:b,onCreateVirtualWorkspace:w,onCreatePhysicalWorkspace:k,isWorkspaceFavorited:U,onToggleFavorite:Y})]}),d.jsx(lu,{children:d.jsx(fi,{children:d.jsxs(Zo,{onClick:f,disabled:!o,className:"w-full",children:[d.jsx(Uu,{className:"size-4","data-icon":"inline-start"}),d.jsx("span",{children:"New Chat"})]})})})]}),d.jsxs(Fz,{children:[M.length>0&&d.jsx(cs,{defaultOpen:!0,className:"group/collapsible",children:d.jsxs(s0,{children:[d.jsx(c0,{asChild:!0,children:d.jsxs(us,{className:"flex items-center justify-between w-full",children:[d.jsxs("span",{className:"flex items-center gap-2",children:[d.jsx(Ta,{className:"size-3 transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"}),"Active"]}),d.jsx(jn,{variant:"secondary",children:M.length})]})}),d.jsx(ds,{children:d.jsx(u0,{children:d.jsx(lu,{children:M.map(B=>d.jsx(p0,{session:B,allSessions:e,isActive:(n==null?void 0:n.id)===B.id,currentSessionId:a,streamingSessionId:l,onResumeSession:p,onCloseSession:m,onReopenSession:y,onDeleteSession:g},B.id))})})})]})}),F.length>0&&d.jsx(cs,{defaultOpen:!0,className:"group/collapsible",children:d.jsxs(s0,{children:[d.jsx(c0,{asChild:!0,children:d.jsxs(us,{className:"flex items-center justify-between w-full",children:[d.jsxs("span",{className:"flex items-center gap-2",children:[d.jsx(Ta,{className:"size-3 transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"}),"Archived"]}),d.jsx(jn,{variant:"secondary",children:F.length})]})}),d.jsx(ds,{children:d.jsx(u0,{children:d.jsx(lu,{children:F.map(B=>d.jsx(p0,{session:B,allSessions:e,isActive:(n==null?void 0:n.id)===B.id,currentSessionId:a,streamingSessionId:l,onResumeSession:p,onCloseSession:m,onReopenSession:y,onDeleteSession:g},B.id))})})})]})}),M.length===0&&F.length===0&&d.jsxs("div",{className:"p-4 text-center text-sm text-muted-foreground",children:["No sessions yet.",d.jsx("br",{}),"Start a new chat to begin."]})]}),d.jsx(Pz,{className:"pb-4",children:d.jsxs(lu,{children:[d.jsx(fi,{children:d.jsxs("div",{className:"flex items-center gap-2 px-2 py-1.5",children:[o?d.jsx(vj,{className:"size-3.5 text-success"}):d.jsx(C1,{className:"size-3.5 text-destructive"}),d.jsx("span",{className:"text-xs text-muted-foreground",children:o?"Connected":"Disconnected"})]})}),d.jsx(fi,{children:d.jsxs(Zo,{onClick:E,children:[d.jsx(ul,{className:"size-4","data-icon":"inline-start"}),d.jsx("span",{children:"MCP Servers"})]})}),d.jsx(fi,{children:d.jsx("div",{className:"flex items-center gap-1",children:d.jsxs(Zo,{onClick:S,children:[d.jsx(w1,{className:"size-4","data-icon":"inline-start"}),d.jsx("span",{children:"Settings"})]})})})]})})]})}const Kz={".ts":{icon:cr,color:"text-blue-500"},".tsx":{icon:cr,color:"text-blue-500"},".js":{icon:cr,color:"text-yellow-500"},".jsx":{icon:cr,color:"text-yellow-500"},".json":{icon:cr,color:"text-yellow-600"},".md":{icon:cr,color:"text-gray-500"},".css":{icon:cr,color:"text-purple-500"},".html":{icon:cr,color:"text-orange-500"}};function dC({entry:e,workspaceId:n,parentPath:a,depth:l,onFileSelect:o,showHidden:s=!0,serverUrl:u,apiToken:f}){const{fetchWithAuth:p}=Ts(),[m,y]=v.useState(!1),[g,b]=v.useState([]),[w,k]=v.useState(!1),[S,E]=v.useState(!1),A=a?`${a}/${e.path}`:e.path,N=e.type==="directory",j=async()=>{if(!(S||w)){k(!0);try{const B=await(await p(`/api/workspaces/${n}/files?path=${encodeURIComponent(A)}&showHidden=${s}`,{},{serverUrl:u,token:f})).json();b(B.files||[]),E(!0)}catch(Y){console.error("Failed to load children:",Y)}finally{k(!1)}}},O=Y=>{y(Y),Y&&N&&j()},z=()=>{!N&&o&&o({...e,path:A})},M=e.extension?Kz[e.extension]:null,F=N?m?Tm:cl:(M==null?void 0:M.icon)||cr,U=N?"text-amber-500":(M==null?void 0:M.color)||"text-muted-foreground";return N?d.jsxs(cs,{open:m,onOpenChange:O,children:[d.jsx(us,{asChild:!0,children:d.jsxs("button",{className:ge("flex items-center gap-1.5 w-full px-1.5 py-0.5 rounded text-sm","hover:bg-accent hover:text-accent-foreground","transition-colors text-left"),style:{paddingLeft:`${l*12+6}px`},children:[w?d.jsx(Vn,{className:"w-3 h-3 animate-spin flex-shrink-0"}):d.jsx(Ta,{className:ge("w-3 h-3 flex-shrink-0 transition-transform",m&&"rotate-90")}),d.jsx(F,{className:ge("w-4 h-4 flex-shrink-0",U)}),d.jsx("span",{className:"truncate",children:e.name})]})}),d.jsx(ds,{children:g.map(Y=>d.jsx(dC,{entry:Y,workspaceId:n,parentPath:A,depth:l+1,onFileSelect:o,showHidden:s,serverUrl:u,apiToken:f},`${A}/${Y.path}`))})]}):d.jsxs("button",{onClick:z,className:ge("flex items-center gap-1.5 w-full px-1.5 py-0.5 rounded text-sm","hover:bg-accent hover:text-accent-foreground","transition-colors text-left"),style:{paddingLeft:`${l*12+6}px`},children:[d.jsx(F,{className:ge("w-4 h-4 flex-shrink-0",U)}),d.jsx("span",{className:"truncate",children:e.name})]})}function m0({workspaceId:e,serverUrl:n,apiToken:a,onFileSelect:l,showHidden:o=!0}){const[s,u]=v.useState([]),[f,p]=v.useState(""),[m,y]=v.useState(!0),[g,b]=v.useState(null),{fetchWithAuth:w}=Ts(),k=v.useCallback(async()=>{y(!0),b(null);try{const S=await w(`/api/workspaces/${e}/files?showHidden=${o}`,{},{serverUrl:n,token:a}),E=await S.json();if(!S.ok)throw new Error(E.message||"Failed to load files");u(E.files),p(E.currentPath)}catch(S){b(S instanceof Error?S.message:"Failed to load files")}finally{y(!1)}},[e,o,w,n,a]);return v.useEffect(()=>{k()},[k]),m?d.jsxs("div",{className:"flex items-center justify-center h-32 text-muted-foreground",children:[d.jsx(Vn,{className:"w-4 h-4 animate-spin mr-2"}),"Loading files..."]}):g?d.jsxs("div",{className:"p-4 text-sm text-destructive",children:[g,d.jsx(Ne,{variant:"ghost",size:"sm",onClick:k,className:"ml-2",children:d.jsx(pi,{className:"w-3 h-3"})})]}):s.length===0?d.jsxs("div",{className:"p-4 text-sm text-muted-foreground",children:["Empty workspace",d.jsx(Ne,{variant:"ghost",size:"sm",onClick:k,className:"ml-2",children:d.jsx(pi,{className:"w-3 h-3"})})]}):d.jsx(Oa,{className:"h-full",children:d.jsxs("div",{className:"p-2",children:[d.jsxs("div",{className:"flex items-center justify-between mb-2 px-1",children:[d.jsx("span",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:"Files"}),d.jsx(Ne,{variant:"ghost",size:"icon",className:"h-5 w-5",onClick:k,children:d.jsx(pi,{className:"w-3 h-3"})})]}),d.jsx("div",{className:"space-y-0.5",children:s.map(S=>d.jsx(dC,{entry:S,workspaceId:e,parentPath:f,depth:0,onFileSelect:l,showHidden:o,serverUrl:n,apiToken:a},S.path))})]})})}function Qz({workspaceId:e,searchQuery:n,selectedIndex:a,onSelect:l,onFilesChange:o,showHidden:s=!0,serverUrl:u,apiToken:f}){const[p,m]=v.useState([]),[y,g]=v.useState(!1),[b,w]=v.useState(n),{fetchWithAuth:k}=Ts();return v.useEffect(()=>{const S=setTimeout(()=>{w(n)},150);return()=>clearTimeout(S)},[n]),v.useEffect(()=>{if(!b||b.length<2){m([]),o([]);return}g(!0);const S=new AbortController;return k(`/api/workspaces/${e}/files?search=${encodeURIComponent(b)}&showHidden=${s}`,{signal:S.signal},{serverUrl:u,token:f}).then(E=>E.json()).then(E=>{const A=E.files||[];m(A),o(A)}).catch(E=>{E.name!=="AbortError"&&console.error("File search failed:",E)}).finally(()=>g(!1)),()=>S.abort()},[e,b,o,s,k,u,f]),!n||n.length<2?d.jsx("div",{className:"p-2 text-xs text-muted-foreground",children:"Type at least 2 characters to search files..."}):y?d.jsxs("div",{className:"flex items-center justify-center p-4 text-muted-foreground",children:[d.jsx(Vn,{className:"w-4 h-4 animate-spin mr-2"}),"Searching..."]}):p.length===0?d.jsxs("div",{className:"p-2 text-xs text-muted-foreground",children:['No files found matching "',n,'"']}):d.jsxs("div",{className:"p-1",children:[p.map((S,E)=>d.jsxs("button",{onClick:()=>l(S),className:ge("flex items-center gap-2 w-full px-2 py-1.5 rounded text-sm text-left","hover:bg-muted",E===a&&"bg-primary/20 text-primary font-medium ring-1 ring-primary/50"),children:[S.type==="directory"?d.jsx(cl,{className:"w-4 h-4 text-amber-500 flex-shrink-0"}):d.jsx(cr,{className:"w-4 h-4 text-muted-foreground flex-shrink-0"}),d.jsx("span",{className:"truncate flex-1",children:S.path}),S.extension&&d.jsx("span",{className:"text-xs text-muted-foreground",children:S.extension})]},S.path)),d.jsxs("div",{className:"mt-1 pt-1 border-t text-xs text-muted-foreground px-2",children:[p.length," result",p.length!==1?"s":""," •",d.jsx("kbd",{className:"ml-1 px-1 py-0.5 bg-muted rounded text-[10px]",children:"↑↓"})," navigate",d.jsx("kbd",{className:"ml-1 px-1 py-0.5 bg-muted rounded text-[10px]",children:"↵"})," select",d.jsx("kbd",{className:"ml-1 px-1 py-0.5 bg-muted rounded text-[10px]",children:"esc"})," close"]})]})}function Zz({workspaceId:e,serverUrl:n,apiToken:a,isOpen:l,onClose:o}){const s=bd();return e?s?d.jsx(Zh,{open:l,onOpenChange:u=>!u&&o(),children:d.jsxs(Wh,{side:"right",className:"w-72 p-0 bg-sidebar [&>button]:hidden",children:[d.jsx(Jh,{className:"sr-only",children:d.jsx(eg,{children:"Files"})}),d.jsxs("div",{className:"flex items-center justify-between p-3 border-b border-border",children:[d.jsx("span",{className:"font-semibold text-sm",children:"Files"}),d.jsx(Ne,{variant:"ghost",size:"icon-sm",onClick:o,children:d.jsx(xi,{className:"w-4 h-4"})})]}),d.jsx("div",{className:"flex flex-1 flex-col min-h-0 overflow-hidden",style:{paddingBottom:"max(1.5rem, env(safe-area-inset-bottom, 0))"},children:d.jsx(Oa,{className:"flex-1 min-h-0 pb-8",children:d.jsx(m0,{workspaceId:e,serverUrl:n,apiToken:a,showHidden:!0})})})]})}):d.jsxs(d.Fragment,{children:[d.jsx("div",{className:ge("relative w-64 bg-transparent transition-[width] duration-200 ease-linear",!l&&"w-0")}),d.jsxs("div",{className:ge("fixed right-0 z-10 w-64 bg-sidebar border-l border-border flex flex-col overflow-hidden","transform transition-transform duration-200 ease-linear",!l&&"translate-x-full"),style:{top:"env(safe-area-inset-top, 0)",bottom:"env(safe-area-inset-bottom, 0)",height:"calc(100vh - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0))"},children:[d.jsxs("div",{className:"flex items-center justify-between p-3 border-b border-border",children:[d.jsx("span",{className:"font-semibold text-sm",children:"Files"}),d.jsx(Ne,{variant:"ghost",size:"icon-sm",onClick:o,children:d.jsx(xi,{className:"w-4 h-4"})})]}),d.jsx("div",{className:"flex flex-1 flex-col min-h-0 overflow-hidden",style:{paddingBottom:"max(1.5rem, env(safe-area-inset-bottom, 0))"},children:d.jsx(Oa,{className:"flex-1 min-h-0",children:d.jsx(m0,{workspaceId:e,serverUrl:n,apiToken:a,showHidden:!0})})})]})]}):null}const Wz=Ai("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});function hu({className:e,variant:n,...a}){return d.jsx("div",{"data-slot":"alert",role:"alert",className:ge(Wz({variant:n}),e),...a})}function gu({className:e,...n}){return d.jsx("div",{"data-slot":"alert-description",className:ge("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...n})}function Jz({className:e,value:n,...a}){return d.jsx(EO,{"data-slot":"progress",className:ge("relative flex h-1 w-full items-center overflow-x-hidden rounded-full bg-muted",e),...a,children:d.jsx(AO,{"data-slot":"progress-indicator",className:"size-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(n||0)}%)`}})})}function iu(e){return e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"k":e.toString()}function e3(e){return e>=60?"critical":e>=40?"warning":"normal"}function t3({totalTokens:e=0,contextWindow:n=0,modelName:a="",compact:l=!1}){const o=e===0?0:n,s=o===0?0:Math.min(100,Math.round(e/o*100)),u=e3(s);return l?d.jsxs("div",{className:"flex items-center gap-1.5",children:[d.jsxs("span",{className:"text-xs font-mono",children:[iu(e),"/",iu(o)]}),d.jsx(Mu,{children:d.jsxs(is,{children:[d.jsx(os,{asChild:!0,children:d.jsx(yv,{className:"size-3 text-muted-foreground cursor-help"})}),d.jsxs(ss,{side:"bottom",children:[d.jsxs("p",{className:"text-xs",children:["Model: ",a]}),d.jsxs("p",{className:"text-xs",children:[s,"% of context window used"]})]})]})})]}):d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("div",{className:"flex flex-col gap-1",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"text-xs text-muted-foreground",children:"Tokens:"}),d.jsxs("span",{className:"text-xs font-mono",children:[iu(e),"/",iu(o)]})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Jz,{value:s,className:ge("h-1 w-20",u==="critical"&&"[&>div]:bg-destructive",u==="warning"&&"[&>div]:bg-warning",u==="normal"&&"[&>div]:bg-primary")}),d.jsxs("span",{className:"text-[11px] text-muted-foreground",children:["(",s,"%)"]})]})]}),d.jsx(Mu,{children:d.jsxs(is,{children:[d.jsx(os,{asChild:!0,children:d.jsx(yv,{className:"size-3.5 text-muted-foreground cursor-help"})}),d.jsx(ss,{side:"bottom",children:d.jsxs("p",{className:"text-xs",children:["Model: ",a]})})]})})]})}function fC({...e}){return d.jsx(sD,{"data-slot":"select",...e})}function n3({className:e,...n}){return d.jsx(hD,{"data-slot":"select-group",className:ge("scroll-my-1 p-1",e),...n})}function Ou({...e}){return d.jsx(uD,{"data-slot":"select-value",...e})}function pC({className:e,size:n="default",children:a,...l}){return d.jsxs(cD,{"data-slot":"select-trigger","data-size":n,className:ge("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...l,children:[a,d.jsx(dD,{asChild:!0,children:d.jsx(Ci,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function mC({className:e,children:n,position:a="item-aligned",align:l="center",...o}){return d.jsx(fD,{children:d.jsxs(pD,{"data-slot":"select-content","data-align-trigger":a==="item-aligned",className:ge("relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,align:l,...o,children:[d.jsx(a3,{}),d.jsx(mD,{"data-position":a,className:ge("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)",a==="popper"&&""),children:n}),d.jsx(l3,{})]})})}function r3({className:e,...n}){return d.jsx(gD,{"data-slot":"select-label",className:ge("px-1.5 py-1 text-xs text-muted-foreground",e),...n})}function hC({className:e,children:n,...a}){return d.jsxs(yD,{"data-slot":"select-item",className:ge("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...a,children:[d.jsx("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center",children:d.jsx(bD,{children:d.jsx(Pr,{className:"pointer-events-none"})})}),d.jsx(xD,{children:n})]})}function a3({className:e,...n}){return d.jsx(vD,{"data-slot":"select-scroll-up-button",className:ge("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...n,children:d.jsx(sN,{})})}function l3({className:e,...n}){return d.jsx(wD,{"data-slot":"select-scroll-down-button",className:ge("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...n,children:d.jsx(Ci,{})})}function ja({className:e,...n}){return d.jsx(aO,{"data-slot":"label",className:ge("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...n})}function i3(e){switch(e){case"budget":return"$";case"standard":return"$$";case"premium":return"$$$";default:return""}}function o3({models:e,selectedModelId:n,onChangeModel:a,disabled:l,iconOnly:o=!1}){const s=e.reduce((f,p)=>(f[p.providerName]||(f[p.providerName]=[]),f[p.providerName].push(p),f),{}),u=f=>{const p=e.find(m=>m.id===f);p&&a(f,p.providerId)};return d.jsxs("div",{className:"flex items-center gap-2",children:[!o&&d.jsx(ja,{className:"text-xs text-muted-foreground",children:"Model:"}),d.jsxs(fC,{value:n||"",onValueChange:u,disabled:l,children:[d.jsx(pC,{className:o?"w-9 h-9 px-0 justify-center gap-0 [&>svg:last-child]:hidden [&_[data-slot=select-value]]:hidden":"w-[180px] h-8 text-sm",children:o?d.jsxs(d.Fragment,{children:[d.jsx(xN,{className:"size-4"}),d.jsx(Ou,{className:"sr-only"})]}):d.jsx(Ou,{placeholder:"Select model"})}),d.jsx(mC,{children:Object.entries(s).map(([f,p])=>d.jsxs(n3,{children:[d.jsx(r3,{children:f}),p.map(m=>d.jsx(hC,{value:m.id,children:d.jsxs("span",{className:"flex items-center gap-2",children:[m.name,d.jsx("span",{className:"text-muted-foreground text-xs",children:i3(m.tier)})]})},m.id))]},f))})]})]})}function s3({preconfigs:e,selectedPreconfigId:n,onChangePreconfig:a,disabled:l,iconOnly:o=!1}){return d.jsxs("div",{className:"flex items-center gap-2",children:[!o&&d.jsx(ja,{className:"text-xs text-muted-foreground",children:"Config:"}),d.jsxs(fC,{value:n||"",onValueChange:a,disabled:l,children:[d.jsx(pC,{className:o?"w-9 h-9 px-0 justify-center gap-0 [&>svg:last-child]:hidden [&_[data-slot=select-value]]:hidden":"w-[140px] h-8 text-sm",children:o?d.jsxs(d.Fragment,{children:[d.jsx(w1,{className:"size-4"}),d.jsx(Ou,{className:"sr-only"})]}):d.jsx(Ou,{placeholder:"Select config"})}),d.jsx(mC,{children:e.map(s=>d.jsxs(hC,{value:s.id,children:[s.name,s.isDefault&&d.jsx("span",{className:"ml-2 text-muted-foreground text-xs",children:"(default)"})]},s.id))})]})]})}function c3({session:e,preconfigs:n,models:a,usage:l,modelName:o,onChangePreconfig:s,onChangeModel:u,onRename:f,onNavigateBack:p,isStreaming:m,onInterrupt:y,onCompact:g,isCompacting:b,canCompact:w}){var B;const[k,S]=v.useState(!1),[E,A]=v.useState(e.title||""),N=v.useRef(null),j=bd();v.useEffect(()=>{k&&N.current&&(N.current.focus(),N.current.select())},[k]);const O=()=>{A(e.title||""),S(!0)},z=()=>{const G=E.trim();G&&G!==e.title&&f(e.id,G),S(!1)},M=G=>{G.key==="Enter"?z():G.key==="Escape"&&(A(e.title||""),S(!1))},F=e.selectedModel||((B=n.find(G=>G.id===e.preconfigId))==null?void 0:B.model)||o,U=a.find(G=>G.id===F),Y=U==null?void 0:U.contextWindow;return d.jsxs("header",{className:"flex flex-col border-b border-border bg-card",children:[d.jsx("div",{className:"flex items-center justify-start px-4 py-2",children:d.jsxs("div",{className:"flex items-center gap-3",children:[e.parentId&&p&&d.jsxs(Ne,{variant:"ghost",size:"sm",onClick:p,className:"h-7",children:[d.jsx(WA,{className:"size-4","data-icon":"inline-start"}),"Back"]}),k?d.jsx("input",{ref:N,type:"text",value:E,onChange:G=>A(G.target.value),onBlur:z,onKeyDown:M,className:"text-lg font-semibold bg-background border border-primary rounded px-2 py-0.5 outline-none min-w-0 flex-1",autoFocus:!0}):d.jsx("h2",{className:"text-lg font-semibold cursor-pointer px-2 py-0.5 -mx-2 rounded hover:bg-accent transition-colors",onDoubleClick:O,children:e.title||"Untitled Session"}),d.jsx(jn,{variant:"outline",className:"font-mono text-xs",children:e.id.slice(0,8)}),e.status==="closed"&&d.jsxs(jn,{variant:"secondary",children:[d.jsx(QA,{className:"size-3","data-icon":"inline-start"}),"Archived"]})]})}),d.jsx(Ko,{}),d.jsxs("div",{className:"inline-flex align-middle items-center gap-3 sm:gap-4 px-4 py-2 flex-wrap",children:[d.jsx(t3,{promptTokens:l.promptTokens,completionTokens:l.completionTokens,totalTokens:l.totalTokens,contextWindow:Y,modelName:o,compact:j}),d.jsx(Ko,{orientation:"vertical",className:"hidden sm:block"}),d.jsx(o3,{models:a,selectedModelId:F,onChangeModel:u,disabled:e.status==="closed"||!!e.parentId,iconOnly:j}),d.jsx(s3,{preconfigs:n,selectedPreconfigId:e.preconfigId,onChangePreconfig:s,disabled:e.status==="closed"||!!e.parentId,iconOnly:j}),d.jsx(Ko,{orientation:"vertical",className:"hidden sm:block"}),g&&d.jsxs(Ne,{variant:"outline",size:j?"icon":"sm",onClick:g,disabled:m||b||!w,title:b?"Compacting...":"Compact older messages",children:[d.jsx(UN,{className:"size-4"}),!j&&d.jsx("span",{className:"ml-1",children:b?"Compacting...":"Compact"})]}),d.jsx(Ko,{orientation:"vertical",className:"hidden sm:block"}),d.jsxs(Ne,{variant:m?"destructive":"outline",size:j?"icon":"sm",onClick:y,disabled:!y,className:m?"":"opacity-60 hover:opacity-100",title:m?"Interrupt operation":"Interrupt (no active operation)",children:[d.jsx(k1,{className:"size-4"}),!j&&d.jsx("span",{className:"ml-1",children:"Stop"})]})]})]})}function h0({open:e,onOpenChange:n,title:a,description:l,confirmLabel:o="Confirm",cancelLabel:s="Cancel",onConfirm:u,variant:f="default"}){const p=()=>{u(),n(!1)};return d.jsx(Mi,{open:e,onOpenChange:n,children:d.jsxs(Oi,{showCloseButton:!1,children:[d.jsxs(Di,{children:[d.jsx(zi,{children:a}),d.jsx(_s,{children:l})]}),d.jsxs(hd,{children:[d.jsx(V4,{asChild:!0,children:d.jsx(Ne,{variant:"outline",children:s})}),d.jsx(Ne,{onClick:p,variant:f==="destructive"?"destructive":"default",children:o})]})]})})}function u3({message:e,textContent:n,children:a,isQueued:l=!1,onRemove:o,onRevert:s,canRevert:u=!1,onFork:f,canFork:p=!1}){const[m,y]=v.useState(!1),[g,b]=v.useState(!1),[w,k]=v.useState(!1),S=e.role==="user",E=async()=>{const A=n||"";await navigator.clipboard.writeText(A),y(!0),setTimeout(()=>y(!1),2e3)};return d.jsxs("div",{className:ge("flex flex-col gap-1 mb-4 animate-slide-up min-w-0",S?"items-end":"items-start"),children:[d.jsx("div",{className:ge("flex items-center gap-1.5 text-xs uppercase tracking-wide text-muted-foreground",S?"mr-3":"ml-3"),children:S?d.jsxs(d.Fragment,{children:[!l&&d.jsxs(d.Fragment,{children:[u&&s&&d.jsx(Ne,{variant:"ghost",size:"icon",onClick:()=>b(!0),className:"size-5 text-muted-foreground hover:text-foreground",title:"Revert to this point",children:d.jsx(hj,{className:"size-3"})}),p&&f&&d.jsx(Ne,{variant:"ghost",size:"icon",onClick:()=>k(!0),className:"size-5 text-muted-foreground hover:text-foreground",title:"Fork from this point",children:d.jsx(ON,{className:"size-3"})}),d.jsx(Ne,{variant:"ghost",size:"icon",onClick:E,className:"size-5 text-muted-foreground hover:text-foreground",children:m?d.jsx(Pr,{className:"size-3"}):d.jsx(xu,{className:"size-3"})})]}),d.jsx(yj,{className:"size-3"}),e.role]}):d.jsxs(d.Fragment,{children:[d.jsx(eN,{className:"size-3"}),e.role,d.jsx(Ne,{variant:"ghost",size:"icon",onClick:E,className:"size-5 text-muted-foreground hover:text-foreground",children:m?d.jsx(Pr,{className:"size-3"}):d.jsx(xu,{className:"size-3"})})]})}),d.jsxs("div",{className:ge("rounded-2xl px-4 py-3 max-w-full relative group min-w-0 overflow-hidden",l?"bg-muted border-2 border-dashed border-muted-foreground/30 opacity-80":S?"bg-primary text-primary-foreground rounded-br-md":"bg-card text-card-foreground border border-border rounded-bl-md"),children:[l&&d.jsxs("div",{className:"flex items-center justify-between gap-2 mb-2 pb-2 border-b border-muted-foreground/20",children:[d.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[d.jsx(v1,{className:"size-3 animate-pulse"}),d.jsx("span",{children:"Pending"})]}),o&&d.jsx(Ne,{variant:"ghost",size:"icon",onClick:o,className:"size-6 text-muted-foreground hover:text-destructive hover:bg-destructive/10",title:"Remove from queue",children:d.jsx(xi,{className:"size-3"})})]}),d.jsx("div",{className:"min-w-0",children:a})]}),d.jsx(h0,{open:g,onOpenChange:b,title:"Revert Conversation",description:"This will delete this message and all messages after it. Are you sure you want to continue?",confirmLabel:"Revert",cancelLabel:"Cancel",onConfirm:()=>{s==null||s()},variant:"destructive"}),d.jsx(h0,{open:w,onOpenChange:k,title:"Fork Conversation",description:"This will create a new session with messages up to and including this point. The original session will be unchanged.",confirmLabel:"Fork",cancelLabel:"Cancel",onConfirm:()=>{f==null||f()}})]})}var d3=Object.create,vd=Object.defineProperty,f3=Object.defineProperties,p3=Object.getOwnPropertyDescriptor,m3=Object.getOwnPropertyDescriptors,gC=Object.getOwnPropertyNames,Du=Object.getOwnPropertySymbols,h3=Object.getPrototypeOf,ng=Object.prototype.hasOwnProperty,yC=Object.prototype.propertyIsEnumerable,g0=(e,n,a)=>n in e?vd(e,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[n]=a,mr=(e,n)=>{for(var a in n||(n={}))ng.call(n,a)&&g0(e,a,n[a]);if(Du)for(var a of Du(n))yC.call(n,a)&&g0(e,a,n[a]);return e},wd=(e,n)=>f3(e,m3(n)),xC=(e,n)=>{var a={};for(var l in e)ng.call(e,l)&&n.indexOf(l)<0&&(a[l]=e[l]);if(e!=null&&Du)for(var l of Du(e))n.indexOf(l)<0&&yC.call(e,l)&&(a[l]=e[l]);return a},g3=(e,n)=>function(){return n||(0,e[gC(e)[0]])((n={exports:{}}).exports,n),n.exports},y3=(e,n)=>{for(var a in n)vd(e,a,{get:n[a],enumerable:!0})},x3=(e,n,a,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of gC(n))!ng.call(e,o)&&o!==a&&vd(e,o,{get:()=>n[o],enumerable:!(l=p3(n,o))||l.enumerable});return e},b3=(e,n,a)=>(a=e!=null?d3(h3(e)):{},x3(!e||!e.__esModule?vd(a,"default",{value:e,enumerable:!0}):a,e)),v3=g3({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,n){var a=(function(){var l=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,s={},u={util:{encode:function k(S){return S instanceof f?new f(S.type,k(S.content),S.alias):Array.isArray(S)?S.map(k):S.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(k){return Object.prototype.toString.call(k).slice(8,-1)},objId:function(k){return k.__id||Object.defineProperty(k,"__id",{value:++o}),k.__id},clone:function k(S,E){E=E||{};var A,N;switch(u.util.type(S)){case"Object":if(N=u.util.objId(S),E[N])return E[N];A={},E[N]=A;for(var j in S)S.hasOwnProperty(j)&&(A[j]=k(S[j],E));return A;case"Array":return N=u.util.objId(S),E[N]?E[N]:(A=[],E[N]=A,S.forEach(function(O,z){A[z]=k(O,E)}),A);default:return S}},getLanguage:function(k){for(;k;){var S=l.exec(k.className);if(S)return S[1].toLowerCase();k=k.parentElement}return"none"},setLanguage:function(k,S){k.className=k.className.replace(RegExp(l,"gi"),""),k.classList.add("language-"+S)},isActive:function(k,S,E){for(var A="no-"+S;k;){var N=k.classList;if(N.contains(S))return!0;if(N.contains(A))return!1;k=k.parentElement}return!!E}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(k,S){var E=u.util.clone(u.languages[k]);for(var A in S)E[A]=S[A];return E},insertBefore:function(k,S,E,A){A=A||u.languages;var N=A[k],j={};for(var O in N)if(N.hasOwnProperty(O)){if(O==S)for(var z in E)E.hasOwnProperty(z)&&(j[z]=E[z]);E.hasOwnProperty(O)||(j[O]=N[O])}var M=A[k];return A[k]=j,u.languages.DFS(u.languages,function(F,U){U===M&&F!=k&&(this[F]=j)}),j},DFS:function k(S,E,A,N){N=N||{};var j=u.util.objId;for(var O in S)if(S.hasOwnProperty(O)){E.call(S,O,S[O],A||O);var z=S[O],M=u.util.type(z);M==="Object"&&!N[j(z)]?(N[j(z)]=!0,k(z,E,null,N)):M==="Array"&&!N[j(z)]&&(N[j(z)]=!0,k(z,E,O,N))}}},plugins:{},highlight:function(k,S,E){var A={code:k,grammar:S,language:E};if(u.hooks.run("before-tokenize",A),!A.grammar)throw new Error('The language "'+A.language+'" has no grammar.');return A.tokens=u.tokenize(A.code,A.grammar),u.hooks.run("after-tokenize",A),f.stringify(u.util.encode(A.tokens),A.language)},tokenize:function(k,S){var E=S.rest;if(E){for(var A in E)S[A]=E[A];delete S.rest}var N=new y;return g(N,N.head,k),m(k,N,S,N.head,0),w(N)},hooks:{all:{},add:function(k,S){var E=u.hooks.all;E[k]=E[k]||[],E[k].push(S)},run:function(k,S){var E=u.hooks.all[k];if(!(!E||!E.length))for(var A=0,N;N=E[A++];)N(S)}},Token:f};function f(k,S,E,A){this.type=k,this.content=S,this.alias=E,this.length=(A||"").length|0}f.stringify=function k(S,E){if(typeof S=="string")return S;if(Array.isArray(S)){var A="";return S.forEach(function(M){A+=k(M,E)}),A}var N={type:S.type,content:k(S.content,E),tag:"span",classes:["token",S.type],attributes:{},language:E},j=S.alias;j&&(Array.isArray(j)?Array.prototype.push.apply(N.classes,j):N.classes.push(j)),u.hooks.run("wrap",N);var O="";for(var z in N.attributes)O+=" "+z+'="'+(N.attributes[z]||"").replace(/"/g,""")+'"';return"<"+N.tag+' class="'+N.classes.join(" ")+'"'+O+">"+N.content+"</"+N.tag+">"};function p(k,S,E,A){k.lastIndex=S;var N=k.exec(E);if(N&&A&&N[1]){var j=N[1].length;N.index+=j,N[0]=N[0].slice(j)}return N}function m(k,S,E,A,N,j){for(var O in E)if(!(!E.hasOwnProperty(O)||!E[O])){var z=E[O];z=Array.isArray(z)?z:[z];for(var M=0;M<z.length;++M){if(j&&j.cause==O+","+M)return;var F=z[M],U=F.inside,Y=!!F.lookbehind,B=!!F.greedy,G=F.alias;if(B&&!F.pattern.global){var q=F.pattern.toString().match(/[imsuy]*$/)[0];F.pattern=RegExp(F.pattern.source,q+"g")}for(var me=F.pattern||F,ne=A.next,ee=N;ne!==S.tail&&!(j&&ee>=j.reach);ee+=ne.value.length,ne=ne.next){var I=ne.value;if(S.length>k.length)return;if(!(I instanceof f)){var X=1,J;if(B){if(J=p(me,ee,k,Y),!J||J.index>=k.length)break;var L=J.index,Z=J.index+J[0].length,R=ee;for(R+=ne.value.length;L>=R;)ne=ne.next,R+=ne.value.length;if(R-=ne.value.length,ee=R,ne.value instanceof f)continue;for(var D=ne;D!==S.tail&&(R<Z||typeof D.value=="string");D=D.next)X++,R+=D.value.length;X--,I=k.slice(ee,R),J.index-=ee}else if(J=p(me,0,I,Y),!J)continue;var L=J.index,T=J[0],te=I.slice(0,L),ae=I.slice(L+T.length),le=ee+I.length;j&&le>j.reach&&(j.reach=le);var ie=ne.prev;te&&(ie=g(S,ie,te),ee+=te.length),b(S,ie,X);var be=new f(O,U?u.tokenize(T,U):T,G,T);if(ne=g(S,ie,be),ae&&g(S,ne,ae),X>1){var he={cause:O+","+M,reach:le};m(k,S,E,ne.prev,ee,he),j&&he.reach>j.reach&&(j.reach=he.reach)}}}}}}function y(){var k={value:null,prev:null,next:null},S={value:null,prev:k,next:null};k.next=S,this.head=k,this.tail=S,this.length=0}function g(k,S,E){var A=S.next,N={value:E,prev:S,next:A};return S.next=N,A.prev=N,k.length++,N}function b(k,S,E){for(var A=S.next,N=0;N<E&&A!==k.tail;N++)A=A.next;S.next=A,A.prev=S,k.length-=N}function w(k){for(var S=[],E=k.head.next;E!==k.tail;)S.push(E.value),E=E.next;return S}return u})();n.exports=a,a.default=a}}),pe=b3(v3());pe.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},pe.languages.markup.tag.inside["attr-value"].inside.entity=pe.languages.markup.entity,pe.languages.markup.doctype.inside["internal-subset"].inside=pe.languages.markup,pe.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(pe.languages.markup.tag,"addInlined",{value:function(e,l){var a={},a=(a["language-"+l]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:pe.languages[l]},a.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}}),l=(a["language-"+l]={pattern:/[\s\S]+/,inside:pe.languages[l]},{});l[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:a},pe.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(pe.languages.markup.tag,"addAttribute",{value:function(e,n){pe.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:pe.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),pe.languages.html=pe.languages.markup,pe.languages.mathml=pe.languages.markup,pe.languages.svg=pe.languages.markup,pe.languages.xml=pe.languages.extend("markup",{}),pe.languages.ssml=pe.languages.xml,pe.languages.atom=pe.languages.xml,pe.languages.rss=pe.languages.xml,(function(e){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,l="(?:[^\\\\-]|"+a.source+")",l=RegExp(l+"-"+l),o={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:l,inside:{escape:a,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:a}},"special-escape":n,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:a,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(pe),pe.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},pe.languages.javascript=pe.languages.extend("clike",{"class-name":[pe.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),pe.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,pe.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:pe.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:pe.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:pe.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:pe.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:pe.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),pe.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:pe.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),pe.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),pe.languages.markup&&(pe.languages.markup.tag.addInlined("script","javascript"),pe.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),pe.languages.js=pe.languages.javascript,pe.languages.actionscript=pe.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),pe.languages.actionscript["class-name"].alias="function",delete pe.languages.actionscript.parameter,delete pe.languages.actionscript["literal-property"],pe.languages.markup&&pe.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:pe.languages.markup}}),(function(e){var n=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:a}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:a}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript})(pe),(function(e){var n=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(n,"addSupport",{value:function(a,l){(a=typeof a=="string"?[a]:a).forEach(function(o){var s=function(g){g.inside||(g.inside={}),g.inside.rest=l},u="doc-comment";if(f=e.languages[o]){var f,p=f[u];if((p=p||(f=e.languages.insertBefore(o,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[u])instanceof RegExp&&(p=f[u]={pattern:p}),Array.isArray(p))for(var m=0,y=p.length;m<y;m++)p[m]instanceof RegExp&&(p[m]={pattern:p[m]}),s(p[m]);else s(p)}})}}),n.addSupport(["java","javascript","php"],n)})(pe),(function(e){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,n=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup);n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))})(pe),(function(e){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:n={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=n,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,number:a})})(pe),(function(e){var n=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,l="(?:"+a.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+a.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function u(f,p){p=(p||"").replace(/m/g,"")+"m";var m=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return l}).replace(/<<value>>/g,function(){return f});return RegExp(m,p)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return l})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return l}).replace(/<<key>>/g,function(){return"(?:"+o+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:u(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:u(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:u(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:u(s),lookbehind:!0,greedy:!0},number:{pattern:u(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(pe),(function(e){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(m){return m=m.replace(/<inner>/g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+m+")")}var l=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return l}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,u=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+s+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+s+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(l),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(l),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:a(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:a(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:a(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:a(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(m){["url","bold","italic","strike","code-snippet"].forEach(function(y){m!==y&&(e.languages.markdown[m].inside.content.inside[y]=e.languages.markdown[y])})}),e.hooks.add("after-tokenize",function(m){m.language!=="markdown"&&m.language!=="md"||(function y(g){if(g&&typeof g!="string")for(var b=0,w=g.length;b<w;b++){var k,S=g[b];S.type!=="code"?y(S.content):(k=S.content[1],S=S.content[3],k&&S&&k.type==="code-language"&&S.type==="code-block"&&typeof k.content=="string"&&(k=k.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),k="language-"+(k=(/[a-z][\w-]*/i.exec(k)||[""])[0].toLowerCase()),S.alias?typeof S.alias=="string"?S.alias=[S.alias,k]:S.alias.push(k):S.alias=[k]))}})(m.tokens)}),e.hooks.add("wrap",function(m){if(m.type==="code-block"){for(var y="",g=0,b=m.classes.length;g<b;g++){var w=m.classes[g],w=/language-(.+)/.exec(w);if(w){y=w[1];break}}var k,S=e.languages[y];S?m.content=e.highlight((function(E){return E=E.replace(u,""),E=E.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(A,N){var j;return(N=N.toLowerCase())[0]==="#"?(j=N[1]==="x"?parseInt(N.slice(2),16):Number(N.slice(1)),p(j)):f[N]||A})})(m.content),S,y):y&&y!=="none"&&e.plugins.autoloader&&(k="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),m.attributes.id=k,e.plugins.autoloader.loadLanguages(y,function(){var E=document.getElementById(k);E&&(E.innerHTML=e.highlight(E.textContent,e.languages[y],y))}))}}),RegExp(e.languages.markup.tag.pattern.source,"gi")),f={amp:"&",lt:"<",gt:">",quot:'"'},p=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown})(pe),pe.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:pe.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},pe.hooks.add("after-tokenize",function(e){if(e.language==="graphql")for(var n=e.tokens.filter(function(k){return typeof k!="string"&&k.type!=="comment"&&k.type!=="scalar"}),a=0;a<n.length;){var l=n[a++];if(l.type==="keyword"&&l.content==="mutation"){var o=[];if(g(["definition-mutation","punctuation"])&&y(1).content==="("){a+=2;var s=b(/^\($/,/^\)$/);if(s===-1)continue;for(;a<s;a++){var u=y(0);u.type==="variable"&&(w(u,"variable-input"),o.push(u.content))}a=s+1}if(g(["punctuation","property-query"])&&y(0).content==="{"&&(a++,w(y(0),"property-mutation"),0<o.length)){var f=b(/^\{$/,/^\}$/);if(f!==-1)for(var p=a;p<f;p++){var m=n[p];m.type==="variable"&&0<=o.indexOf(m.content)&&w(m,"variable-input")}}}}function y(k){return n[a+k]}function g(k,S){S=S||0;for(var E=0;E<k.length;E++){var A=y(E+S);if(!A||A.type!==k[E])return}return 1}function b(k,S){for(var E=1,A=a;A<n.length;A++){var N=n[A],j=N.content;if(N.type==="punctuation"&&typeof j=="string"){if(k.test(j))E++;else if(S.test(j)&&--E===0)return A}}return-1}function w(k,S){var E=k.alias;E?Array.isArray(E)||(k.alias=E=[E]):k.alias=E=[],E.push(S)}}),pe.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(e){var n=e.languages.javascript["template-string"],a=n.pattern.source,l=n.inside.interpolation,o=l.inside["interpolation-punctuation"],s=l.pattern.source;function u(g,b){if(e.languages[g])return{pattern:RegExp("((?:"+b+")\\s*)"+a),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:g}}}}function f(g,b,w){return g={code:g,grammar:b,language:w},e.hooks.run("before-tokenize",g),g.tokens=e.tokenize(g.code,g.grammar),e.hooks.run("after-tokenize",g),g.tokens}function p(g,b,w){var E=e.tokenize(g,{interpolation:{pattern:RegExp(s),lookbehind:!0}}),k=0,S={},E=f(E.map(function(N){if(typeof N=="string")return N;for(var j,O,N=N.content;g.indexOf((O=k++,j="___"+w.toUpperCase()+"_"+O+"___"))!==-1;);return S[j]=N,j}).join(""),b,w),A=Object.keys(S);return k=0,(function N(j){for(var O=0;O<j.length;O++){if(k>=A.length)return;var z,M,F,U,Y,B,G,q=j[O];typeof q=="string"||typeof q.content=="string"?(z=A[k],(G=(B=typeof q=="string"?q:q.content).indexOf(z))!==-1&&(++k,M=B.substring(0,G),Y=S[z],F=void 0,(U={})["interpolation-punctuation"]=o,(U=e.tokenize(Y,U)).length===3&&((F=[1,1]).push.apply(F,f(U[1],e.languages.javascript,"javascript")),U.splice.apply(U,F)),F=new e.Token("interpolation",U,l.alias,Y),U=B.substring(G+z.length),Y=[],M&&Y.push(M),Y.push(F),U&&(N(B=[U]),Y.push.apply(Y,B)),typeof q=="string"?(j.splice.apply(j,[O,1].concat(Y)),O+=Y.length-1):q.content=Y)):(G=q.content,Array.isArray(G)?N(G):N([G]))}})(E),new e.Token(w,E,"language-"+w,g)}e.languages.javascript["template-string"]=[u("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),u("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),u("svg",/\bsvg/.source),u("markdown",/\b(?:markdown|md)/.source),u("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),u("sql",/\bsql/.source),n].filter(Boolean);var m={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function y(g){return typeof g=="string"?g:Array.isArray(g)?g.map(y).join(""):y(g.content)}e.hooks.add("after-tokenize",function(g){g.language in m&&(function b(w){for(var k=0,S=w.length;k<S;k++){var E,A,N,j=w[k];typeof j!="string"&&(E=j.content,Array.isArray(E)?j.type==="template-string"?(j=E[1],E.length===3&&typeof j!="string"&&j.type==="embedded-code"&&(A=y(j),j=j.alias,j=Array.isArray(j)?j[0]:j,N=e.languages[j])&&(E[1]=p(A,N,j))):b(E):typeof E!="string"&&b([E]))}})(g.tokens)})})(pe),(function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var n=e.languages.extend("typescript",{});delete n["class-name"],e.languages.typescript["class-name"].inside=n,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),e.languages.ts=e.languages.typescript})(pe),(function(e){var n=e.languages.javascript,a=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,l="(@(?:arg|argument|param|property)\\s+(?:"+a+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(l+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(l+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:n,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return a})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+a),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:n,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)})(pe),(function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(pe),pe.languages.n4js=pe.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),pe.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),pe.languages.n4jsd=pe.languages.n4js,(function(e){function n(u,f){return RegExp(u.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),f)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var a=["function","function-variable","method","method-variable","property-access"],l=0;l<a.length;l++){var s=a[l],o=e.languages.javascript[s],s=(o=e.util.type(o)==="RegExp"?e.languages.javascript[s]={pattern:o}:o).inside||{};(o.inside=s)["maybe-class-name"]=/^[A-Z][\s\S]*/}})(pe),(function(e){var n=e.util.clone(e.languages.javascript),a=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,l=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function s(p,m){return p=p.replace(/<S>/g,function(){return a}).replace(/<BRACES>/g,function(){return l}).replace(/<SPREAD>/g,function(){return o}),RegExp(p,m)}o=s(o).source,e.languages.jsx=e.languages.extend("markup",n),e.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=n.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:s(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);function u(p){for(var m=[],y=0;y<p.length;y++){var g=p[y],b=!1;typeof g!="string"&&(g.type==="tag"&&g.content[0]&&g.content[0].type==="tag"?g.content[0].content[0].content==="</"?0<m.length&&m[m.length-1].tagName===f(g.content[0].content[1])&&m.pop():g.content[g.content.length-1].content!=="/>"&&m.push({tagName:f(g.content[0].content[1]),openedBraces:0}):0<m.length&&g.type==="punctuation"&&g.content==="{"?m[m.length-1].openedBraces++:0<m.length&&0<m[m.length-1].openedBraces&&g.type==="punctuation"&&g.content==="}"?m[m.length-1].openedBraces--:b=!0),(b||typeof g=="string")&&0<m.length&&m[m.length-1].openedBraces===0&&(b=f(g),y<p.length-1&&(typeof p[y+1]=="string"||p[y+1].type==="plain-text")&&(b+=f(p[y+1]),p.splice(y+1,1)),0<y&&(typeof p[y-1]=="string"||p[y-1].type==="plain-text")&&(b=f(p[y-1])+b,p.splice(y-1,1),y--),p[y]=new e.Token("plain-text",b,null,b)),g.content&&typeof g.content!="string"&&u(g.content)}}var f=function(p){return p?typeof p=="string"?p:typeof p.content=="string"?p.content:p.content.map(f).join(""):""};e.hooks.add("after-tokenize",function(p){p.language!=="jsx"&&p.language!=="tsx"||u(p.tokens)})})(pe),(function(e){var n=e.util.clone(e.languages.typescript),n=(e.languages.tsx=e.languages.extend("jsx",n),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag);n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0})(pe),pe.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},pe.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=pe.languages.swift}),(function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin})(pe),pe.languages.c=pe.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),pe.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),pe.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},pe.languages.c.string],char:pe.languages.c.char,comment:pe.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:pe.languages.c}}}}),pe.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete pe.languages.c.boolean,pe.languages.objectivec=pe.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete pe.languages.objectivec["class-name"],pe.languages.objc=pe.languages.objectivec,pe.languages.reason=pe.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),pe.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete pe.languages.reason.function,(function(e){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,a=0;a<2;a++)n=n.replace(/<self>/g,function(){return n});n=n.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(pe),pe.languages.go=pe.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),pe.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete pe.languages.go["class-name"],(function(e){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,a=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return n.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return a})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])})(pe),pe.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},pe.languages.python["string-interpolation"].inside.interpolation.inside.rest=pe.languages.python,pe.languages.py=pe.languages.python,pe.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},pe.languages.webmanifest=pe.languages.json;var fs={};y3(fs,{dracula:()=>S3,duotoneDark:()=>C3,duotoneLight:()=>A3,github:()=>j3,gruvboxMaterialDark:()=>r5,gruvboxMaterialLight:()=>l5,jettwaveDark:()=>K3,jettwaveLight:()=>Z3,nightOwl:()=>_3,nightOwlLight:()=>M3,oceanicNext:()=>D3,okaidia:()=>L3,oneDark:()=>J3,oneLight:()=>t5,palenight:()=>B3,shadesOfPurple:()=>F3,synthwave84:()=>H3,ultramin:()=>V3,vsDark:()=>bC,vsLight:()=>Y3});var w3={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},S3=w3,k3={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},C3=k3,E3={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},A3=E3,N3={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},j3=N3,T3={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},_3=T3,R3={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},M3=R3,En={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},O3={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:En.keyword}},{types:["attr-value"],style:{color:En.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:En.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:En.primitive}},{types:["boolean"],style:{color:En.boolean}},{types:["tag"],style:{color:En.tag}},{types:["string"],style:{color:En.string}},{types:["punctuation"],style:{color:En.string}},{types:["selector","char","builtin","inserted"],style:{color:En.char}},{types:["function"],style:{color:En.function}},{types:["operator","entity","url","variable"],style:{color:En.variable}},{types:["keyword"],style:{color:En.keyword}},{types:["atrule","class-name"],style:{color:En.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},D3=O3,z3={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},L3=z3,I3={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},B3=I3,P3={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},F3=P3,U3={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},H3=U3,$3={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},V3=$3,q3={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},bC=q3,G3={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},Y3=G3,X3={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},K3=X3,Q3={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Z3=Q3,W3={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},J3=W3,e5={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},t5=e5,n5={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},r5=n5,a5={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},l5=a5,i5=e=>v.useCallback(n=>{var a=n,{className:l,style:o,line:s}=a,u=xC(a,["className","style","line"]);const f=wd(mr({},u),{className:Hu("token-line",l)});return typeof e=="object"&&"plain"in e&&(f.style=e.plain),typeof o=="object"&&(f.style=mr(mr({},f.style||{}),o)),f},[e]),o5=e=>{const n=v.useCallback(({types:a,empty:l})=>{if(e!=null){{if(a.length===1&&a[0]==="plain")return l!=null?{display:"inline-block"}:void 0;if(a.length===1&&l!=null)return e[a[0]]}return Object.assign(l!=null?{display:"inline-block"}:{},...a.map(o=>e[o]))}},[e]);return v.useCallback(a=>{var l=a,{token:o,className:s,style:u}=l,f=xC(l,["token","className","style"]);const p=wd(mr({},f),{className:Hu("token",...o.types,s),children:o.content,style:n(o)});return u!=null&&(p.style=mr(mr({},p.style||{}),u)),p},[n])},s5=/\r\n|\r|\n/,y0=e=>{e.length===0?e.push({types:["plain"],content:`
|
|
424
|
+
`,empty:!0}):e.length===1&&e[0].content===""&&(e[0].content=`
|
|
425
|
+
`,e[0].empty=!0)},x0=(e,n)=>{const a=e.length;return a>0&&e[a-1]===n?e:e.concat(n)},c5=e=>{const n=[[]],a=[e],l=[0],o=[e.length];let s=0,u=0,f=[];const p=[f];for(;u>-1;){for(;(s=l[u]++)<o[u];){let m,y=n[u];const b=a[u][s];if(typeof b=="string"?(y=u>0?y:["plain"],m=b):(y=x0(y,b.type),b.alias&&(y=x0(y,b.alias)),m=b.content),typeof m!="string"){u++,n.push(y),a.push(m),l.push(0),o.push(m.length);continue}const w=m.split(s5),k=w.length;f.push({types:y,content:w[0]});for(let S=1;S<k;S++)y0(f),p.push(f=[]),f.push({types:y,content:w[S]})}u--,n.pop(),a.pop(),l.pop(),o.pop()}return y0(f),p},b0=c5,u5=({prism:e,code:n,grammar:a,language:l})=>v.useMemo(()=>{if(a==null)return b0([n]);const o={code:n,grammar:a,language:l,tokens:[]};return e.hooks.run("before-tokenize",o),o.tokens=e.tokenize(n,a),e.hooks.run("after-tokenize",o),b0(o.tokens)},[n,a,l,e]),d5=(e,n)=>{const{plain:a}=e,l=e.styles.reduce((o,s)=>{const{languages:u,style:f}=s;return u&&!u.includes(n)||s.types.forEach(p=>{const m=mr(mr({},o[p]),f);o[p]=m}),o},{});return l.root=a,l.plain=wd(mr({},a),{backgroundColor:void 0}),l},f5=d5,p5=({children:e,language:n,code:a,theme:l,prism:o})=>{const s=n.toLowerCase(),u=f5(l,s),f=i5(u),p=o5(u),m=o.languages[s],y=u5({prism:o,language:s,code:a,grammar:m});return e({tokens:y,className:`prism-code language-${s}`,style:u!=null?u.root:{},getLineProps:f,getTokenProps:p})},rg=e=>v.createElement(p5,wd(mr({},e),{prism:e.prism||pe,theme:e.theme||bC,code:e.code,language:e.language}));/*! Bundled license information:
|
|
426
|
+
|
|
427
|
+
prismjs/prism.js:
|
|
428
|
+
(**
|
|
429
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
430
|
+
*
|
|
431
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
432
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
433
|
+
* @namespace
|
|
434
|
+
* @public
|
|
435
|
+
*)
|
|
436
|
+
*/function m5(e){var l;const n=(l=e.split(".").pop())==null?void 0:l.toLowerCase();return{ts:"typescript",tsx:"typescript",js:"javascript",jsx:"javascript",json:"json",md:"markdown",css:"css",html:"html",py:"python",go:"go",rs:"rust",sh:"bash",yaml:"yaml",yml:"yaml"}[n||""]||n||"text"}function h5({type:e,content:n,lineNumber:a,newLineNumber:l,language:o}){const s=ge("flex font-mono text-xs",e==="added"&&"bg-green-500/20",e==="removed"&&"bg-red-500/20",e==="context"&&"bg-muted/30"),u=ge("font-bold w-4 select-none",e==="added"&&"text-green-400",e==="removed"&&"text-red-400",e==="context"&&"text-muted-foreground/50");return d.jsxs("div",{className:s,children:[d.jsx("span",{className:"w-10 text-right pr-2 text-muted-foreground select-none border-r border-white/10",children:a!=null?a:""}),d.jsx("span",{className:"w-10 text-right pr-2 text-muted-foreground select-none border-r border-white/10",children:l!=null?l:""}),d.jsxs("span",{className:"pl-2 flex-1 whitespace-pre flex",children:[d.jsxs("span",{className:u,children:[e==="added"&&"+",e==="removed"&&"-",e==="context"&&" "]}),d.jsx(rg,{theme:fs.oneDark,code:n,language:o,children:({tokens:f,getTokenProps:p})=>d.jsx(d.Fragment,{children:f.map((m,y)=>d.jsx("span",{children:m.map((g,b)=>d.jsx("span",{...p({token:g})},b))},y))})})]})]})}function v0({hunks:e,path:n,language:a,additions:l,deletions:o}){const[s,u]=v.useState(!0),f=a||m5(n);return d.jsx("div",{className:"visualization-container overflow-x-auto border border-white/10 rounded-md",children:d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center gap-2 px-1 bg-muted/50 text-xs text-muted-foreground",children:[d.jsx("button",{onClick:()=>u(!s),className:"px-1 py-1 hover:bg-muted rounded",children:s?d.jsx(Ci,{className:"size-3"}):d.jsx(Ta,{className:"size-3"})}),d.jsx(ih,{className:"size-3"}),d.jsx("span",{className:"font-mono pr-2",children:n}),l!==void 0&&o!==void 0&&d.jsxs("span",{className:"ml-auto mr-2 text-muted-foreground",children:["+",l," -",o]})]}),s&&d.jsx("div",{style:{backgroundColor:"#282c34"},children:e.map((p,m)=>d.jsx("div",{className:"divide-y divide-white/5",children:p.changes.map((y,g)=>d.jsx(h5,{...y,language:f},g))},m))})]})})}function g5(e){var l;const n=(l=e.split(".").pop())==null?void 0:l.toLowerCase();return{ts:"typescript",tsx:"typescript",js:"javascript",jsx:"javascript",json:"json",md:"markdown",css:"css",html:"html",py:"python",go:"go",rs:"rust",sh:"bash",yaml:"yaml",yml:"yaml"}[n||""]||n||"text"}const y5=({content:e,path:n,language:a,created:l,highlightLines:o=[]})=>{const[s,u]=v.useState(!0),f=a||g5(n),p=new Set(o);return d.jsx("div",{className:"visualization-container overflow-x-auto border border-white/10 rounded-md",children:d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center gap-2 px-1 bg-muted/50 text-xs text-muted-foreground",children:[d.jsx("button",{onClick:()=>u(!s),className:"flex items-center gap-2 px-2 py-1 hover:bg-muted",children:s?d.jsx(Ci,{className:"size-3"}):d.jsx(Ta,{className:"size-3"})}),d.jsx(ih,{className:"size-3"}),d.jsx("span",{className:"font-mono pr-2",children:n}),l===!1?d.jsxs("span",{className:"flex items-center gap-1 text-warning ml-auto mr-2",children:[d.jsx(Qo,{className:"size-3"}),"Overwrote"]}):d.jsxs("span",{className:"flex items-center gap-1 text-success ml-auto mr-2",children:[d.jsx(Pr,{className:"size-3"}),"Created"]})]}),s&&d.jsx("div",{style:{backgroundColor:"#282c34"},children:d.jsx(rg,{theme:fs.oneDark,code:e,language:f,children:({tokens:m,getTokenProps:y})=>d.jsx(d.Fragment,{children:m.map((g,b)=>d.jsxs("div",{className:`flex font-mono text-xs ${p.has(b+1)?"bg-yellow-500/20":""}`,children:[d.jsx("span",{className:"w-10 text-right pr-2 text-muted-foreground select-none border-r border-white/10",children:b+1}),d.jsx("span",{className:"pl-2 flex-1 whitespace-pre",children:g.map((w,k)=>d.jsx("span",{...y({token:w})},k))})]},b))})})})]})})};function x5({message:e="Success"}){return d.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[d.jsx(hs,{className:"size-4"}),d.jsx("span",{className:"break-all",children:e})]})}const b5={edit:NN,plus:Uu,trash:gs,search:oh};function v5({text:e}){const[n,a]=v.useState(!1),l=async()=>{await navigator.clipboard.writeText(e),a(!0),setTimeout(()=>a(!1),1500)};return d.jsx("button",{onClick:l,className:"text-muted-foreground hover:text-foreground transition-colors",title:"Copy path",children:n?d.jsx("span",{className:"text-success text-xs",children:"Copied!"}):d.jsx(xu,{className:"size-3"})})}function w5({title:e,groups:n,files:a,total:l}){const s=n||(a?[{label:"Files",files:a||[],icon:void 0}]:[]);return s.length===0?null:d.jsxs("div",{className:"flex flex-col gap-3",children:[e&&d.jsxs("div",{className:"text-sm font-medium text-foreground",children:[e,l!==void 0&&d.jsxs("span",{className:"ml-2 text-muted-foreground",children:["(",l," files)"]})]}),s.map((u,f)=>d.jsxs("div",{className:"flex flex-col gap-1",children:[d.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[u.icon&&d.jsx("span",{className:"flex items-center",children:(()=>{const p=b5[u.icon];return d.jsx(p,{className:"size-3"})})()}),d.jsx("span",{children:u.label}),d.jsxs("span",{className:"text-muted-foreground/50",children:["(",u.files.length,")"]})]}),d.jsx("div",{className:"flex flex-col gap-0.5 pl-5",children:u.files.map((p,m)=>d.jsxs("div",{className:"flex items-center gap-2 text-xs group",children:[d.jsx(ih,{className:"size-3 text-muted-foreground shrink-0"}),d.jsx("span",{className:"font-mono text-foreground/80 truncate",children:p.path}),p.line!==void 0&&d.jsxs("span",{className:"text-muted-foreground shrink-0",children:[":",p.line]}),p.action&&d.jsx("span",{className:ge("text-xs px-1 rounded shrink-0",p.action==="created"&&"bg-success/20 text-success",p.action==="modified"&&"bg-warning/20 text-warning",p.action==="deleted"&&"bg-destructive/20 text-destructive"),children:p.action}),d.jsx(v5,{text:p.path})]},m))})]},f))]})}function S5({command:e,stdout:n,stderr:a,exitCode:l}){const o=l===0;return d.jsxs("div",{className:"visualization-container border border-white/10 rounded-md overflow-hidden",children:[d.jsxs("div",{className:"bg-muted px-3 py-2 flex items-center justify-between",children:[d.jsxs("div",{className:"font-mono text-xs text-muted-foreground truncate flex-1 mr-2",children:[d.jsx("span",{className:"text-muted-foreground",children:"$ "}),d.jsx("span",{className:"text-foreground",children:e})]}),d.jsxs("span",{className:`text-xs font-mono px-2 py-0.5 rounded ${o?"bg-muted text-muted-foreground":"bg-red-500/20 text-red-400"}`,children:["[",l,"]"]})]}),(n||a)&&d.jsxs("div",{className:"bg-black px-3 py-2 font-mono text-xs overflow-x-auto",children:[n&&d.jsx("pre",{className:"text-gray-300 whitespace-pre-wrap",children:n}),a&&d.jsx("pre",{className:"text-red-400 whitespace-pre-wrap mt-1",children:a})]})]})}const k5={pending:{icon:mN,color:"text-muted-foreground"},in_progress:{icon:Vn,color:"text-warning",animate:!0},completed:{icon:hs,color:"text-success"},cancelled:{icon:Fu,color:"text-destructive"}},C5={high:{label:"high",className:"bg-destructive/20 text-destructive"},medium:{label:"",className:""},low:{label:"low",className:"text-muted-foreground"}};function E5({title:e,items:n}){if(n.length===0)return null;const a=n.filter(l=>l.status==="completed").length;return n.filter(l=>l.status==="in_progress").length,n.filter(l=>l.status==="pending").length,d.jsxs("div",{className:"flex flex-col gap-3 w-full overflow-hidden",children:[(e||n.length>0)&&d.jsxs("div",{className:"text-sm font-medium text-foreground",children:[e||"Todo List",d.jsxs("span",{className:"ml-2 text-muted-foreground",children:["(",n.length,")"]}),a>0&&d.jsxs("span",{className:"ml-2 text-success text-xs",children:[a," completed"]})]}),d.jsx("div",{className:"flex flex-col gap-1 w-full",children:n.map((l,o)=>{const s=k5[l.status],u=s.icon,f=C5[l.priority];return d.jsxs("div",{className:"flex items-center gap-2 text-sm min-w-0",children:[d.jsx(u,{className:ge("size-4 shrink-0",s.color,s.animate&&"animate-spin")}),d.jsx("span",{className:ge("flex-1",l.status==="completed"&&"line-through text-muted-foreground",l.status==="cancelled"&&"text-muted-foreground"),children:l.content}),f.label&&l.priority==="high"&&d.jsx("span",{className:ge("text-xs px-1.5 py-0.5 rounded shrink-0",f.className),children:f.label}),l.priority==="low"&&l.status!=="completed"&&l.status!=="cancelled"&&d.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:f.label})]},o)})})]})}function A5({visualization:e}){if(!e)return null;switch(e.type){case"diff":return d.jsx(v0,{path:e.path,hunks:e.hunks,language:e.language,additions:e.additions,deletions:e.deletions,matchInfo:e.matchInfo});case"diffs":return d.jsx("div",{className:"space-y-3",children:e.items.map((n,a)=>d.jsx(v0,{path:n.path,hunks:n.hunks,language:n.language,additions:n.additions,deletions:n.deletions,matchInfo:n.matchInfo},`${n.path}-${a}`))});case"code":return d.jsx(y5,{path:e.path,content:e.content,language:e.language,created:e.created,highlightLines:e.highlightLines});case"file-list":return d.jsx(w5,{title:e.title,groups:e.groups,files:e.files,total:e.total});case"table":return d.jsx("pre",{className:"text-xs bg-muted/50 border rounded-md p-2 overflow-x-auto",children:JSON.stringify(e.rows,null,2)});case"markdown":return d.jsx("div",{className:"prose prose-sm dark:prose-invert",children:e.content});case"none":return d.jsx(x5,{message:e.message});case"shell-output":return d.jsx(S5,{command:e.command,stdout:e.stdout,stderr:e.stderr,exitCode:e.exitCode});case"todo-list":return d.jsx(E5,{title:e.title,items:e.items});default:return null}}function N5(e){switch(e){case"pending":return d.jsx(v1,{className:"size-3 text-warning"});case"running":return d.jsx(Vn,{className:"size-3 text-warning animate-spin"});case"completed":return d.jsx(hs,{className:"size-3 text-success"});case"error":return d.jsx(Fu,{className:"size-3 text-destructive"});default:return null}}function j5(e){if(e&&typeof e=="object"&&"_visualization"in e)return e._visualization}function T5({part:e,pendingPermissions:n,onPermissionResponse:a,onNavigateToSubagent:l}){const[o,s]=v.useState(!1),[u,f]=v.useState(!1),p=e.state,m=p.status,y=m==="completed"&&"output"in p?j5(p.output):void 0,g=m==="pending"?n.find(S=>S.toolCallId===e.callId):void 0;let b=null;if(e.name==="task"){if("childSessionId"in p&&p.childSessionId)b=p.childSessionId;else if(m==="completed"&&"output"in p){const E=(typeof p.output=="string"?p.output:"").match(/task_id:\s*([a-f0-9-]{36})/i);E&&(b=E[1])}}const w=async()=>{if("output"in p){const S=typeof p.output=="string"?p.output:JSON.stringify(p.output,null,2);await navigator.clipboard.writeText(S),f(!0),setTimeout(()=>f(!1),2e3)}},k=(()=>{try{const S=JSON.stringify(p.input);return S.length>50?S.slice(0,47)+"...":S}catch{return String(p.input)}})();return d.jsxs("div",{className:"my-1",children:[d.jsxs(cs,{open:o,onOpenChange:s,children:[d.jsx(us,{asChild:!0,children:d.jsxs("div",{className:"flex items-center gap-2 py-1 cursor-pointer hover:text-foreground transition-colors text-muted-foreground",children:[o?d.jsx(Ci,{className:"size-4 text-muted-foreground"}):d.jsx(Ta,{className:"size-4 text-muted-foreground"}),d.jsx(Sj,{className:"size-3"}),d.jsx("span",{className:"text-xs truncate max-w-[120px] sm:max-w-none",children:e.name}),!o&&d.jsx("span",{className:"text-xs text-muted-foreground font-mono truncate flex-1 min-w-0 sm:max-w-[200px] hidden sm:block",children:k}),d.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[N5(m),b&&l&&d.jsxs(Ne,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 sm:w-auto sm:px-2",onClick:S=>{S.stopPropagation(),l(b)},title:"View session",children:[d.jsx(jm,{className:"size-3"}),d.jsx("span",{className:"hidden sm:inline ml-1",children:"View"})]})]})]})}),d.jsx(ds,{children:d.jsxs("div",{className:"pl-5 pb-2 flex flex-col gap-2",children:[d.jsxs("div",{children:[d.jsx("div",{className:"text-xs uppercase text-muted-foreground mb-1",children:"Input"}),d.jsx("pre",{className:"text-xs bg-background border rounded-md p-2 overflow-x-auto whitespace-pre-wrap break-words",children:JSON.stringify(p.input,null,2)})]}),(m==="running"||m==="completed")&&b&&l&&d.jsxs(Ne,{variant:"outline",className:"w-full",size:"sm",onClick:()=>l(b),children:[d.jsx(jm,{className:"size-4","data-icon":"inline-start"}),m==="running"?"Watch Subagent":"View Session"]}),m==="completed"&&"output"in p&&d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center justify-between mb-1",children:[d.jsx("div",{className:"text-xs uppercase text-muted-foreground",children:"Output"}),d.jsx(Ne,{variant:"ghost",size:"icon",onClick:w,className:"size-6",children:u?d.jsx(Pr,{className:"size-3 text-success"}):d.jsx(xu,{className:"size-3"})})]}),d.jsx("pre",{className:"text-xs bg-success/10 border border-success/20 rounded-md p-2 overflow-x-auto whitespace-pre-wrap break-words",children:typeof p.output=="string"?p.output:JSON.stringify(p.output,null,2)})]}),m==="error"&&"error"in p&&d.jsxs("div",{children:[d.jsx("div",{className:"text-xs uppercase text-muted-foreground mb-1",children:"Error"}),d.jsx("pre",{className:"text-xs bg-destructive/10 border border-destructive/20 rounded-md p-2 overflow-x-auto whitespace-pre-wrap break-words text-destructive",children:p.error})]})]})})]}),m==="pending"&&g&&d.jsxs("div",{className:"border border-warning/50 bg-warning/10 rounded-md p-3 flex flex-col gap-3 mt-2",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(bv,{className:"size-4 text-warning"}),d.jsx(jn,{variant:"outline",className:"text-warning border-warning",children:g.permissionType}),d.jsx("span",{className:"text-sm font-mono text-muted-foreground",children:g.permissionKey})]}),g.message&&d.jsx("p",{className:"text-sm",children:g.message}),g.dangerous&&d.jsxs("div",{className:"flex items-center gap-2 text-sm text-destructive font-medium",children:[d.jsx(bv,{className:"size-4"}),"This operation is marked as dangerous"]}),d.jsxs("div",{className:"flex justify-end gap-2 flex-wrap",children:[d.jsx(Ne,{variant:"outline",size:"sm",onClick:()=>a(e.callId,!1,!1),children:"Deny"}),d.jsx(Ne,{variant:"secondary",size:"sm",onClick:()=>a(e.callId,!0,!1),children:"Approve"}),d.jsx(Ne,{size:"sm",onClick:()=>a(e.callId,!0,!0),children:"Always Allow"})]})]}),m==="completed"&&y&&d.jsx("div",{className:"mt-2",children:d.jsx(A5,{visualization:y})})]})}function _5({prompts:e,query:n,selectedIndex:a,onSelect:l}){const o=e.filter(s=>s.name.toLowerCase().includes(n.toLowerCase()));return o.length===0?d.jsxs("div",{className:"p-2 text-xs text-muted-foreground",children:['No prompts matching "/',n,'"']}):d.jsxs("div",{className:"p-1",children:[o.map((s,u)=>d.jsxs("button",{onClick:()=>l(s),className:ge("flex items-center gap-2 w-full px-2 py-1.5 rounded text-sm text-left","hover:bg-muted",u===a&&"bg-primary/20 text-primary font-medium ring-1 ring-primary/50"),children:[d.jsx(PN,{className:"w-4 h-4 text-muted-foreground flex-shrink-0"}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsxs("div",{className:"font-mono text-xs",children:["/",s.name]}),d.jsx("div",{className:"text-xs text-muted-foreground truncate",children:s.description})]})]},s.name)),d.jsxs("div",{className:"mt-1 pt-1 border-t text-xs text-muted-foreground px-2",children:[o.length," prompt",o.length!==1?"s":""," •",d.jsx("kbd",{className:"ml-1 px-1 py-0.5 bg-muted rounded text-[10px]",children:"↑↓"})," navigate",d.jsx("kbd",{className:"ml-1 px-1 py-0.5 bg-muted rounded text-[10px]",children:"↵"})," select",d.jsx("kbd",{className:"ml-1 px-1 py-0.5 bg-muted rounded text-[10px]",children:"esc"})," close"]})]})}function R5({workspaceId:e,debounceMs:n=150}){const[a,l]=v.useState(""),[o,s]=v.useState(!1),[u,f]=v.useState([]),p=v.useCallback(g=>{const b={type:"file",path:g.path,display:g.name};return f(w=>[...w,b]),s(!1),l(""),b},[]),m=v.useCallback((g,b,w)=>{const k=g.lastIndexOf("@",b);if(k===-1)return{text:g,cursorPos:b};const S=g.slice(0,k)+`@${w.path}`+g.slice(b),E=k+w.path.length+1;return{text:S,cursorPos:E}},[]),y=v.useCallback(g=>{const b=/@([^\s@]+)/g,w=[];let k;for(;(k=b.exec(g))!==null;){const S=k[1];u.some(E=>E.path===S)&&!w.some(E=>E.path===S)&&w.push({type:"file",path:S,display:S.split("/").pop()||S})}return w},[u]);return{query:a,setQuery:l,showAutocomplete:o,setShowAutocomplete:s,mentions:u,handleFileSelect:p,insertMention:m,extractMentions:y}}function M5(e,n){return n?e.content.includes("ARG")?e.content.replace("ARG",n):`${e.content}
|
|
437
|
+
${n}`:e.content}function O5(e){const n=e.trimStart();if(!n.startsWith("/"))return null;const a=n.indexOf(" ");return a===-1?{command:n.slice(1),rest:""}:{command:n.slice(1,a),rest:n.slice(a+1).trim()}}function D5({onSendMessage:e,disabled:n,isStreaming:a,onStopStreaming:l,placeholder:o="Type a message...",workspaceId:s,serverUrl:u,apiToken:f,prompts:p=[]}){const[m,y]=v.useState(""),[g,b]=v.useState(0),[w,k]=v.useState([]),[S,E]=v.useState(0),[A,N]=v.useState("none"),[j,O]=v.useState(""),z=v.useRef(null),{query:M,setQuery:F,showAutocomplete:U,setShowAutocomplete:Y,handleFileSelect:B,insertMention:G}=R5({workspaceId:s||""});v.useEffect(()=>{E(0)},[w,j,p]),v.useEffect(()=>{const D=z.current;D&&(D.style.height="auto",D.style.height=`${Math.min(D.scrollHeight,150)}px`)},[m]);const q=p.filter(D=>D.name.toLowerCase().includes(j.toLowerCase())),me=A==="prompts"&&p.length>0,ne=A==="files"&&U&&!!s,ee=v.useCallback(D=>{const L=D.target.value,T=D.target.selectionStart||0;y(L),b(T);const te=L.lastIndexOf("/",T);if(te!==-1){const le=te>0?L[te-1]:`
|
|
438
|
+
`,ie=L.slice(te+1,T);if((le===`
|
|
439
|
+
`||le===" "||le==="")&&!ie.includes(" ")){O(ie),N("prompts");return}}const ae=L.lastIndexOf("@",T);if(ae!==-1){const le=L.slice(ae+1,T);if(!le.includes(" ")){F(le),Y(!0),N("files");return}}N("none"),Y(!1)},[F,Y]),I=v.useCallback(D=>{const L=B(D),T=G(m,g,L);y(T.text),N("none"),Y(!1),k([]),setTimeout(()=>{z.current&&(z.current.focus(),z.current.setSelectionRange(T.cursorPos,T.cursorPos))},0)},[m,g,B,G,Y]),X=v.useCallback(D=>{const L=m.lastIndexOf("/",g),T=m.slice(0,L),te=m.slice(L+1),ae=te.indexOf(" "),le=ae!==-1?te.slice(ae):"",ie=`${T}/${D.name}${le}`,be=L+1+D.name.length+0;y(ie),N("none"),setTimeout(()=>{z.current&&(z.current.focus(),z.current.setSelectionRange(be,be))},0)},[m,g]),J=D=>{if(D==null||D.preventDefault(),!m.trim()||n)return;const L=O5(m);if(L){const T=p.find(te=>te.name===L.command);if(T){const te=M5(T,L.rest);e(te),y("");return}}e(m.trim()),y("")},Z=D=>{if(me&&q.length>0)switch(D.key){case"ArrowDown":D.preventDefault(),E(L=>Math.min(L+1,q.length-1));return;case"ArrowUp":D.preventDefault(),E(L=>Math.max(L-1,0));return;case"Enter":if(D.shiftKey)return;D.preventDefault(),q[S]&&X(q[S]);return;case"Tab":D.preventDefault(),q[S]&&X(q[S]);return;case"Escape":D.preventDefault(),N("none");return}if(ne&&w.length>0)switch(D.key){case"ArrowDown":D.preventDefault(),E(L=>Math.min(L+1,w.length-1));return;case"ArrowUp":D.preventDefault(),E(L=>Math.max(L-1,0));return;case"Enter":D.preventDefault(),w[S]&&I(w[S]);return;case"Escape":D.preventDefault(),Y(!1),N("none");return;case"Tab":D.preventDefault(),w[S]&&I(w[S]);return}D.key==="Enter"&&!D.shiftKey&&(D.preventDefault(),J())},R=v.useCallback(D=>{k(D)},[]);return a&&l?d.jsx("div",{className:"p-4 border-t border-border bg-card",children:d.jsxs("div",{className:"flex items-center justify-center gap-3",children:[d.jsxs("div",{className:"animate-pulse flex items-center gap-2 text-muted-foreground",children:[d.jsx("div",{className:"size-2 rounded-full bg-primary animate-bounce"}),d.jsx("div",{className:"size-2 rounded-full bg-primary animate-bounce [animation-delay:0.1s]"}),d.jsx("div",{className:"size-2 rounded-full bg-primary animate-bounce [animation-delay:0.2s]"}),d.jsx("span",{className:"text-sm ml-2",children:"Generating..."})]}),d.jsxs(Ne,{variant:"outline",size:"sm",onClick:l,children:[d.jsx(k1,{className:"size-4","data-icon":"inline-start"}),"Stop"]})]})}):d.jsxs("form",{onSubmit:J,className:"p-4 border-t border-border bg-card",children:[d.jsxs("div",{className:"flex gap-3 items-end",children:[d.jsx("div",{className:"flex-1 relative",children:d.jsxs(yd,{open:me||ne,onOpenChange:D=>{D||(N("none"),Y(!1))},children:[d.jsx(kz,{asChild:!0,children:d.jsx(bz,{ref:z,value:m,onChange:ee,onKeyDown:Z,placeholder:o,disabled:n,className:ge("min-h-[44px] max-h-[150px] resize-none pr-12","focus-visible:ring-1"),rows:1})}),d.jsx(xd,{className:"w-72 p-0",align:"start",side:"top",sideOffset:8,onOpenAutoFocus:D=>D.preventDefault(),onCloseAutoFocus:D=>D.preventDefault(),children:ne?d.jsx(Qz,{workspaceId:s||"",searchQuery:M,selectedIndex:S,onSelect:I,onFilesChange:R,serverUrl:u,apiToken:f}):d.jsx(_5,{prompts:p,query:j,selectedIndex:S,onSelect:X})})]})}),d.jsx(Ne,{type:"submit",disabled:!m.trim()||n,size:"default",className:"h-11",children:d.jsx(aj,{className:"size-4"})})]}),d.jsxs("div",{className:"mt-2 text-xs text-muted-foreground text-center flex items-center justify-center gap-1",children:[d.jsx("kbd",{className:"px-1.5 py-0.5 bg-muted rounded text-[10px]",children:"/"}),d.jsx("span",{children:"prompts"}),d.jsx("span",{className:"mx-2",children:"•"}),d.jsx("kbd",{className:"px-1.5 py-0.5 bg-muted rounded text-[10px]",children:"Enter"}),d.jsx("span",{children:"to send"}),d.jsx("span",{className:"mx-2",children:"•"}),d.jsx("kbd",{className:"px-1.5 py-0.5 bg-muted rounded text-[10px]",children:"Shift + Enter"}),d.jsx("span",{children:"for new line"})]})]})}function z5(e,n){const a={};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const L5=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,I5=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,B5={};function w0(e,n){return(B5.jsx?I5:L5).test(e)}const P5=/[ \t\n\f\r]/g;function F5(e){return typeof e=="object"?e.type==="text"?S0(e.value):!1:S0(e)}function S0(e){return e.replace(P5,"")===""}class Ms{constructor(n,a,l){this.normal=a,this.property=n,l&&(this.space=l)}}Ms.prototype.normal={};Ms.prototype.property={};Ms.prototype.space=void 0;function vC(e,n){const a={},l={};for(const o of e)Object.assign(a,o.property),Object.assign(l,o.normal);return new Ms(a,l,n)}function Xm(e){return e.toLowerCase()}class gn{constructor(n,a){this.attribute=a,this.property=n}}gn.prototype.attribute="";gn.prototype.booleanish=!1;gn.prototype.boolean=!1;gn.prototype.commaOrSpaceSeparated=!1;gn.prototype.commaSeparated=!1;gn.prototype.defined=!1;gn.prototype.mustUseProperty=!1;gn.prototype.number=!1;gn.prototype.overloadedBoolean=!1;gn.prototype.property="";gn.prototype.spaceSeparated=!1;gn.prototype.space=void 0;let U5=0;const Ue=wl(),Tt=wl(),Km=wl(),ye=wl(),pt=wl(),yi=wl(),An=wl();function wl(){return 2**++U5}const Qm=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ue,booleanish:Tt,commaOrSpaceSeparated:An,commaSeparated:yi,number:ye,overloadedBoolean:Km,spaceSeparated:pt},Symbol.toStringTag,{value:"Module"})),sm=Object.keys(Qm);class ag extends gn{constructor(n,a,l,o){let s=-1;if(super(n,a),k0(this,"space",o),typeof l=="number")for(;++s<sm.length;){const u=sm[s];k0(this,sm[s],(l&Qm[u])===Qm[u])}}}ag.prototype.defined=!0;function k0(e,n,a){a&&(e[n]=a)}function Li(e){const n={},a={};for(const[l,o]of Object.entries(e.properties)){const s=new ag(l,e.transform(e.attributes||{},l),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(s.mustUseProperty=!0),n[l]=s,a[Xm(l)]=l,a[Xm(s.attribute)]=l}return new Ms(n,a,e.space)}const wC=Li({properties:{ariaActiveDescendant:null,ariaAtomic:Tt,ariaAutoComplete:null,ariaBusy:Tt,ariaChecked:Tt,ariaColCount:ye,ariaColIndex:ye,ariaColSpan:ye,ariaControls:pt,ariaCurrent:null,ariaDescribedBy:pt,ariaDetails:null,ariaDisabled:Tt,ariaDropEffect:pt,ariaErrorMessage:null,ariaExpanded:Tt,ariaFlowTo:pt,ariaGrabbed:Tt,ariaHasPopup:null,ariaHidden:Tt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:pt,ariaLevel:ye,ariaLive:null,ariaModal:Tt,ariaMultiLine:Tt,ariaMultiSelectable:Tt,ariaOrientation:null,ariaOwns:pt,ariaPlaceholder:null,ariaPosInSet:ye,ariaPressed:Tt,ariaReadOnly:Tt,ariaRelevant:null,ariaRequired:Tt,ariaRoleDescription:pt,ariaRowCount:ye,ariaRowIndex:ye,ariaRowSpan:ye,ariaSelected:Tt,ariaSetSize:ye,ariaSort:null,ariaValueMax:ye,ariaValueMin:ye,ariaValueNow:ye,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function SC(e,n){return n in e?e[n]:n}function kC(e,n){return SC(e,n.toLowerCase())}const H5=Li({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:yi,acceptCharset:pt,accessKey:pt,action:null,allow:null,allowFullScreen:Ue,allowPaymentRequest:Ue,allowUserMedia:Ue,alt:null,as:null,async:Ue,autoCapitalize:null,autoComplete:pt,autoFocus:Ue,autoPlay:Ue,blocking:pt,capture:null,charSet:null,checked:Ue,cite:null,className:pt,cols:ye,colSpan:null,content:null,contentEditable:Tt,controls:Ue,controlsList:pt,coords:ye|yi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ue,defer:Ue,dir:null,dirName:null,disabled:Ue,download:Km,draggable:Tt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ue,formTarget:null,headers:pt,height:ye,hidden:Km,high:ye,href:null,hrefLang:null,htmlFor:pt,httpEquiv:pt,id:null,imageSizes:null,imageSrcSet:null,inert:Ue,inputMode:null,integrity:null,is:null,isMap:Ue,itemId:null,itemProp:pt,itemRef:pt,itemScope:Ue,itemType:pt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ue,low:ye,manifest:null,max:null,maxLength:ye,media:null,method:null,min:null,minLength:ye,multiple:Ue,muted:Ue,name:null,nonce:null,noModule:Ue,noValidate:Ue,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:Ue,optimum:ye,pattern:null,ping:pt,placeholder:null,playsInline:Ue,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ue,referrerPolicy:null,rel:pt,required:Ue,reversed:Ue,rows:ye,rowSpan:ye,sandbox:pt,scope:null,scoped:Ue,seamless:Ue,selected:Ue,shadowRootClonable:Ue,shadowRootDelegatesFocus:Ue,shadowRootMode:null,shape:null,size:ye,sizes:null,slot:null,span:ye,spellCheck:Tt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ye,step:null,style:null,tabIndex:ye,target:null,title:null,translate:null,type:null,typeMustMatch:Ue,useMap:null,value:Tt,width:ye,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:pt,axis:null,background:null,bgColor:null,border:ye,borderColor:null,bottomMargin:ye,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ue,declare:Ue,event:null,face:null,frame:null,frameBorder:null,hSpace:ye,leftMargin:ye,link:null,longDesc:null,lowSrc:null,marginHeight:ye,marginWidth:ye,noResize:Ue,noHref:Ue,noShade:Ue,noWrap:Ue,object:null,profile:null,prompt:null,rev:null,rightMargin:ye,rules:null,scheme:null,scrolling:Tt,standby:null,summary:null,text:null,topMargin:ye,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ye,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ue,disableRemotePlayback:Ue,prefix:null,property:null,results:ye,security:null,unselectable:null},space:"html",transform:kC}),$5=Li({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",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:An,accentHeight:ye,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ye,amplitude:ye,arabicForm:null,ascent:ye,attributeName:null,attributeType:null,azimuth:ye,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ye,by:null,calcMode:null,capHeight:ye,className:pt,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:ye,diffuseConstant:ye,direction:null,display:null,dur:null,divisor:ye,dominantBaseline:null,download:Ue,dx:null,dy:null,edgeMode:null,editable:null,elevation:ye,enableBackground:null,end:null,event:null,exponent:ye,externalResourcesRequired:null,fill:null,fillOpacity:ye,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:yi,g2:yi,glyphName:yi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ye,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ye,horizOriginX:ye,horizOriginY:ye,id:null,ideographic:ye,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ye,k:ye,k1:ye,k2:ye,k3:ye,k4:ye,kernelMatrix:An,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ye,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ye,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:ye,overlineThickness:ye,paintOrder:null,panose1:null,path:null,pathLength:ye,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:pt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ye,pointsAtY:ye,pointsAtZ:ye,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:An,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:An,rev:An,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:An,requiredFeatures:An,requiredFonts:An,requiredFormats:An,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:ye,specularExponent:ye,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ye,strikethroughThickness:ye,string:null,stroke:null,strokeDashArray:An,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ye,strokeOpacity:ye,strokeWidth:null,style:null,surfaceScale:ye,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:An,tabIndex:ye,tableValues:null,target:null,targetX:ye,targetY:ye,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:An,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ye,underlineThickness:ye,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ye,values:null,vAlphabetic:ye,vMathematical:ye,vectorEffect:null,vHanging:ye,vIdeographic:ye,version:null,vertAdvY:ye,vertOriginX:ye,vertOriginY:ye,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ye,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:SC}),CC=Li({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),EC=Li({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:kC}),AC=Li({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),V5={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"},q5=/[A-Z]/g,C0=/-[a-z]/g,G5=/^data[-\w.:]+$/i;function Y5(e,n){const a=Xm(n);let l=n,o=gn;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&G5.test(n)){if(n.charAt(4)==="-"){const s=n.slice(5).replace(C0,K5);l="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=n.slice(4);if(!C0.test(s)){let u=s.replace(q5,X5);u.charAt(0)!=="-"&&(u="-"+u),n="data"+u}}o=ag}return new o(l,n)}function X5(e){return"-"+e.toLowerCase()}function K5(e){return e.charAt(1).toUpperCase()}const Q5=vC([wC,H5,CC,EC,AC],"html"),lg=vC([wC,$5,CC,EC,AC],"svg");function Z5(e){return e.join(" ").trim()}var oi={},cm,E0;function W5(){if(E0)return cm;E0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,a=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,f=/^\s+|\s+$/g,p=`
|
|
440
|
+
`,m="/",y="*",g="",b="comment",w="declaration";function k(E,A){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];A=A||{};var N=1,j=1;function O(ne){var ee=ne.match(n);ee&&(N+=ee.length);var I=ne.lastIndexOf(p);j=~I?ne.length-I:j+ne.length}function z(){var ne={line:N,column:j};return function(ee){return ee.position=new M(ne),Y(),ee}}function M(ne){this.start=ne,this.end={line:N,column:j},this.source=A.source}M.prototype.content=E;function F(ne){var ee=new Error(A.source+":"+N+":"+j+": "+ne);if(ee.reason=ne,ee.filename=A.source,ee.line=N,ee.column=j,ee.source=E,!A.silent)throw ee}function U(ne){var ee=ne.exec(E);if(ee){var I=ee[0];return O(I),E=E.slice(I.length),ee}}function Y(){U(a)}function B(ne){var ee;for(ne=ne||[];ee=G();)ee!==!1&&ne.push(ee);return ne}function G(){var ne=z();if(!(m!=E.charAt(0)||y!=E.charAt(1))){for(var ee=2;g!=E.charAt(ee)&&(y!=E.charAt(ee)||m!=E.charAt(ee+1));)++ee;if(ee+=2,g===E.charAt(ee-1))return F("End of comment missing");var I=E.slice(2,ee-2);return j+=2,O(I),E=E.slice(ee),j+=2,ne({type:b,comment:I})}}function q(){var ne=z(),ee=U(l);if(ee){if(G(),!U(o))return F("property missing ':'");var I=U(s),X=ne({type:w,property:S(ee[0].replace(e,g)),value:I?S(I[0].replace(e,g)):g});return U(u),X}}function me(){var ne=[];B(ne);for(var ee;ee=q();)ee!==!1&&(ne.push(ee),B(ne));return ne}return Y(),me()}function S(E){return E?E.replace(f,g):g}return cm=k,cm}var A0;function J5(){if(A0)return oi;A0=1;var e=oi&&oi.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(oi,"__esModule",{value:!0}),oi.default=a;const n=e(W5());function a(l,o){let s=null;if(!l||typeof l!="string")return s;const u=(0,n.default)(l),f=typeof o=="function";return u.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:y}=p;f?o(m,y,p):y&&(s=s||{},s[m]=y)}),s}return oi}var $o={},N0;function eL(){if(N0)return $o;N0=1,Object.defineProperty($o,"__esModule",{value:!0}),$o.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,a=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(m){return!m||a.test(m)||e.test(m)},u=function(m,y){return y.toUpperCase()},f=function(m,y){return"".concat(y,"-")},p=function(m,y){return y===void 0&&(y={}),s(m)?m:(m=m.toLowerCase(),y.reactCompat?m=m.replace(o,f):m=m.replace(l,f),m.replace(n,u))};return $o.camelCase=p,$o}var Vo,j0;function tL(){if(j0)return Vo;j0=1;var e=Vo&&Vo.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},n=e(J5()),a=eL();function l(o,s){var u={};return!o||typeof o!="string"||(0,n.default)(o,function(f,p){f&&p&&(u[(0,a.camelCase)(f,s)]=p)}),u}return l.default=l,Vo=l,Vo}var nL=tL();const rL=Pu(nL),NC=jC("end"),ig=jC("start");function jC(e){return n;function n(a){const l=a&&a.position&&a.position[e]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function aL(e){const n=ig(e),a=NC(e);if(n&&a)return{start:n,end:a}}function Wo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?T0(e.position):"start"in e||"end"in e?T0(e):"line"in e||"column"in e?Zm(e):""}function Zm(e){return _0(e&&e.line)+":"+_0(e&&e.column)}function T0(e){return Zm(e&&e.start)+"-"+Zm(e&&e.end)}function _0(e){return e&&typeof e=="number"?e:1}class Wt extends Error{constructor(n,a,l){super(),typeof a=="string"&&(l=a,a=void 0);let o="",s={},u=!1;if(a&&("line"in a&&"column"in a?s={place:a}:"start"in a&&"end"in a?s={place:a}:"type"in a?s={ancestors:[a],place:a.position}:s={...a}),typeof n=="string"?o=n:!s.cause&&n&&(u=!0,o=n.message,s.cause=n),!s.ruleId&&!s.source&&typeof l=="string"){const p=l.indexOf(":");p===-1?s.ruleId=l:(s.source=l.slice(0,p),s.ruleId=l.slice(p+1))}if(!s.place&&s.ancestors&&s.ancestors){const p=s.ancestors[s.ancestors.length-1];p&&(s.place=p.position)}const f=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=f?f.line:void 0,this.name=Wo(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=u&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Wt.prototype.file="";Wt.prototype.name="";Wt.prototype.reason="";Wt.prototype.message="";Wt.prototype.stack="";Wt.prototype.column=void 0;Wt.prototype.line=void 0;Wt.prototype.ancestors=void 0;Wt.prototype.cause=void 0;Wt.prototype.fatal=void 0;Wt.prototype.place=void 0;Wt.prototype.ruleId=void 0;Wt.prototype.source=void 0;const og={}.hasOwnProperty,lL=new Map,iL=/[A-Z]/g,oL=new Set(["table","tbody","thead","tfoot","tr"]),sL=new Set(["td","th"]),TC="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function cL(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=n.filePath||void 0;let l;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");l=yL(a,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");l=gL(a,n.jsx,n.jsxs)}const o={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:l,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?lg:Q5,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},s=_C(o,e,void 0);return s&&typeof s!="string"?s:o.create(e,o.Fragment,{children:s||void 0},void 0)}function _C(e,n,a){if(n.type==="element")return uL(e,n,a);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return dL(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return pL(e,n,a);if(n.type==="mdxjsEsm")return fL(e,n);if(n.type==="root")return mL(e,n,a);if(n.type==="text")return hL(e,n)}function uL(e,n,a){const l=e.schema;let o=l;n.tagName.toLowerCase()==="svg"&&l.space==="html"&&(o=lg,e.schema=o),e.ancestors.push(n);const s=MC(e,n.tagName,!1),u=xL(e,n);let f=cg(e,n);return oL.has(n.tagName)&&(f=f.filter(function(p){return typeof p=="string"?!F5(p):!0})),RC(e,u,s,n),sg(u,f),e.ancestors.pop(),e.schema=l,e.create(n,s,u,a)}function dL(e,n){if(n.data&&n.data.estree&&e.evaluater){const l=n.data.estree.body[0];return l.type,e.evaluater.evaluateExpression(l.expression)}ps(e,n.position)}function fL(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);ps(e,n.position)}function pL(e,n,a){const l=e.schema;let o=l;n.name==="svg"&&l.space==="html"&&(o=lg,e.schema=o),e.ancestors.push(n);const s=n.name===null?e.Fragment:MC(e,n.name,!0),u=bL(e,n),f=cg(e,n);return RC(e,u,s,n),sg(u,f),e.ancestors.pop(),e.schema=l,e.create(n,s,u,a)}function mL(e,n,a){const l={};return sg(l,cg(e,n)),e.create(n,e.Fragment,l,a)}function hL(e,n){return n.value}function RC(e,n,a,l){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(n.node=l)}function sg(e,n){if(n.length>0){const a=n.length>1?n:n[0];a&&(e.children=a)}}function gL(e,n,a){return l;function l(o,s,u,f){const m=Array.isArray(u.children)?a:n;return f?m(s,u,f):m(s,u)}}function yL(e,n){return a;function a(l,o,s,u){const f=Array.isArray(s.children),p=ig(l);return n(o,s,u,f,{columnNumber:p?p.column-1:void 0,fileName:e,lineNumber:p?p.line:void 0},void 0)}}function xL(e,n){const a={};let l,o;for(o in n.properties)if(o!=="children"&&og.call(n.properties,o)){const s=vL(e,o,n.properties[o]);if(s){const[u,f]=s;e.tableCellAlignToStyle&&u==="align"&&typeof f=="string"&&sL.has(n.tagName)?l=f:a[u]=f}}if(l){const s=a.style||(a.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return a}function bL(e,n){const a={};for(const l of n.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&e.evaluater){const s=l.data.estree.body[0];s.type;const u=s.expression;u.type;const f=u.properties[0];f.type,Object.assign(a,e.evaluater.evaluateExpression(f.argument))}else ps(e,n.position);else{const o=l.name;let s;if(l.value&&typeof l.value=="object")if(l.value.data&&l.value.data.estree&&e.evaluater){const f=l.value.data.estree.body[0];f.type,s=e.evaluater.evaluateExpression(f.expression)}else ps(e,n.position);else s=l.value===null?!0:l.value;a[o]=s}return a}function cg(e,n){const a=[];let l=-1;const o=e.passKeys?new Map:lL;for(;++l<n.children.length;){const s=n.children[l];let u;if(e.passKeys){const p=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(p){const m=o.get(p)||0;u=p+"-"+m,o.set(p,m+1)}}const f=_C(e,s,u);f!==void 0&&a.push(f)}return a}function vL(e,n,a){const l=Y5(e.schema,n);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=l.commaSeparated?z5(a):Z5(a)),l.property==="style"){let o=typeof a=="object"?a:wL(e,String(a));return e.stylePropertyNameCase==="css"&&(o=SL(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&l.space?V5[l.property]||l.property:l.attribute,a]}}function wL(e,n){try{return rL(n,{reactCompat:!0})}catch(a){if(e.ignoreInvalidStyle)return{};const l=a,o=new Wt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=TC+"#cannot-parse-style-attribute",o}}function MC(e,n,a){let l;if(!a)l={type:"Literal",value:n};else if(n.includes(".")){const o=n.split(".");let s=-1,u;for(;++s<o.length;){const f=w0(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};u=u?{type:"MemberExpression",object:u,property:f,computed:!!(s&&f.type==="Literal"),optional:!1}:f}l=u}else l=w0(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(l.type==="Literal"){const o=l.value;return og.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(l);ps(e)}function ps(e,n){const a=new Wt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=TC+"#cannot-handle-mdx-estrees-without-createevaluater",a}function SL(e){const n={};let a;for(a in e)og.call(e,a)&&(n[kL(a)]=e[a]);return n}function kL(e){let n=e.replace(iL,CL);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function CL(e){return"-"+e.toLowerCase()}const um={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"]},EL={};function ug(e,n){const a=EL,l=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,o=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return OC(e,l,o)}function OC(e,n,a){if(AL(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return R0(e.children,n,a)}return Array.isArray(e)?R0(e,n,a):""}function R0(e,n,a){const l=[];let o=-1;for(;++o<e.length;)l[o]=OC(e[o],n,a);return l.join("")}function AL(e){return!!(e&&typeof e=="object")}const M0=document.createElement("i");function dg(e){const n="&"+e+";";M0.innerHTML=n;const a=M0.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===n?!1:a}function _n(e,n,a,l){const o=e.length;let s=0,u;if(n<0?n=-n>o?0:o+n:n=n>o?o:n,a=a>0?a:0,l.length<1e4)u=Array.from(l),u.unshift(n,a),e.splice(...u);else for(a&&e.splice(n,a);s<l.length;)u=l.slice(s,s+1e4),u.unshift(n,0),e.splice(...u),s+=1e4,n+=1e4}function $n(e,n){return e.length>0?(_n(e,e.length,0,n),e):n}const O0={}.hasOwnProperty;function DC(e){const n={};let a=-1;for(;++a<e.length;)NL(n,e[a]);return n}function NL(e,n){let a;for(a in n){const o=(O0.call(e,a)?e[a]:void 0)||(e[a]={}),s=n[a];let u;if(s)for(u in s){O0.call(o,u)||(o[u]=[]);const f=s[u];jL(o[u],Array.isArray(f)?f:f?[f]:[])}}}function jL(e,n){let a=-1;const l=[];for(;++a<n.length;)(n[a].add==="after"?e:l).push(n[a]);_n(e,0,0,l)}function zC(e,n){const a=Number.parseInt(e,n);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function er(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const nn=Fa(/[A-Za-z]/),Zt=Fa(/[\dA-Za-z]/),TL=Fa(/[#-'*+\--9=?A-Z^-~]/);function zu(e){return e!==null&&(e<32||e===127)}const Wm=Fa(/\d/),_L=Fa(/[\dA-Fa-f]/),RL=Fa(/[!-/:-@[-`{-~]/);function Re(e){return e!==null&&e<-2}function dt(e){return e!==null&&(e<0||e===32)}function Ke(e){return e===-2||e===-1||e===32}const Sd=Fa(new RegExp("\\p{P}|\\p{S}","u")),gl=Fa(/\s/);function Fa(e){return n;function n(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function Ii(e){const n=[];let a=-1,l=0,o=0;for(;++a<e.length;){const s=e.charCodeAt(a);let u="";if(s===37&&Zt(e.charCodeAt(a+1))&&Zt(e.charCodeAt(a+2)))o=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(u=String.fromCharCode(s));else if(s>55295&&s<57344){const f=e.charCodeAt(a+1);s<56320&&f>56319&&f<57344?(u=String.fromCharCode(s,f),o=1):u="�"}else u=String.fromCharCode(s);u&&(n.push(e.slice(l,a),encodeURIComponent(u)),l=a+o+1,u=""),o&&(a+=o,o=0)}return n.join("")+e.slice(l)}function Je(e,n,a,l){const o=l?l-1:Number.POSITIVE_INFINITY;let s=0;return u;function u(p){return Ke(p)?(e.enter(a),f(p)):n(p)}function f(p){return Ke(p)&&s++<o?(e.consume(p),f):(e.exit(a),n(p))}}const ML={tokenize:OL};function OL(e){const n=e.attempt(this.parser.constructs.contentInitial,l,o);let a;return n;function l(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Je(e,n,"linePrefix")}function o(f){return e.enter("paragraph"),s(f)}function s(f){const p=e.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=p),a=p,u(f)}function u(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Re(f)?(e.consume(f),e.exit("chunkText"),s):(e.consume(f),u)}}const DL={tokenize:zL},D0={tokenize:LL};function zL(e){const n=this,a=[];let l=0,o,s,u;return f;function f(j){if(l<a.length){const O=a[l];return n.containerState=O[1],e.attempt(O[0].continuation,p,m)(j)}return m(j)}function p(j){if(l++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,o&&N();const O=n.events.length;let z=O,M;for(;z--;)if(n.events[z][0]==="exit"&&n.events[z][1].type==="chunkFlow"){M=n.events[z][1].end;break}A(l);let F=O;for(;F<n.events.length;)n.events[F][1].end={...M},F++;return _n(n.events,z+1,0,n.events.slice(O)),n.events.length=F,m(j)}return f(j)}function m(j){if(l===a.length){if(!o)return b(j);if(o.currentConstruct&&o.currentConstruct.concrete)return k(j);n.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(D0,y,g)(j)}function y(j){return o&&N(),A(l),b(j)}function g(j){return n.parser.lazy[n.now().line]=l!==a.length,u=n.now().offset,k(j)}function b(j){return n.containerState={},e.attempt(D0,w,k)(j)}function w(j){return l++,a.push([n.currentConstruct,n.containerState]),b(j)}function k(j){if(j===null){o&&N(),A(0),e.consume(j);return}return o=o||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),S(j)}function S(j){if(j===null){E(e.exit("chunkFlow"),!0),A(0),e.consume(j);return}return Re(j)?(e.consume(j),E(e.exit("chunkFlow")),l=0,n.interrupt=void 0,f):(e.consume(j),S)}function E(j,O){const z=n.sliceStream(j);if(O&&z.push(null),j.previous=s,s&&(s.next=j),s=j,o.defineSkip(j.start),o.write(z),n.parser.lazy[j.start.line]){let M=o.events.length;for(;M--;)if(o.events[M][1].start.offset<u&&(!o.events[M][1].end||o.events[M][1].end.offset>u))return;const F=n.events.length;let U=F,Y,B;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){if(Y){B=n.events[U][1].end;break}Y=!0}for(A(l),M=F;M<n.events.length;)n.events[M][1].end={...B},M++;_n(n.events,U+1,0,n.events.slice(F)),n.events.length=M}}function A(j){let O=a.length;for(;O-- >j;){const z=a[O];n.containerState=z[1],z[0].exit.call(n,e)}a.length=j}function N(){o.write([null]),s=void 0,o=void 0,n.containerState._closeFlow=void 0}}function LL(e,n,a){return Je(e,e.attempt(this.parser.constructs.document,n,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ki(e){if(e===null||dt(e)||gl(e))return 1;if(Sd(e))return 2}function kd(e,n,a){const l=[];let o=-1;for(;++o<e.length;){const s=e[o].resolveAll;s&&!l.includes(s)&&(n=s(n,a),l.push(s))}return n}const Jm={name:"attention",resolveAll:IL,tokenize:BL};function IL(e,n){let a=-1,l,o,s,u,f,p,m,y;for(;++a<e.length;)if(e[a][0]==="enter"&&e[a][1].type==="attentionSequence"&&e[a][1]._close){for(l=a;l--;)if(e[l][0]==="exit"&&e[l][1].type==="attentionSequence"&&e[l][1]._open&&n.sliceSerialize(e[l][1]).charCodeAt(0)===n.sliceSerialize(e[a][1]).charCodeAt(0)){if((e[l][1]._close||e[a][1]._open)&&(e[a][1].end.offset-e[a][1].start.offset)%3&&!((e[l][1].end.offset-e[l][1].start.offset+e[a][1].end.offset-e[a][1].start.offset)%3))continue;p=e[l][1].end.offset-e[l][1].start.offset>1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;const g={...e[l][1].end},b={...e[a][1].start};z0(g,-p),z0(b,p),u={type:p>1?"strongSequence":"emphasisSequence",start:g,end:{...e[l][1].end}},f={type:p>1?"strongSequence":"emphasisSequence",start:{...e[a][1].start},end:b},s={type:p>1?"strongText":"emphasisText",start:{...e[l][1].end},end:{...e[a][1].start}},o={type:p>1?"strong":"emphasis",start:{...u.start},end:{...f.end}},e[l][1].end={...u.start},e[a][1].start={...f.end},m=[],e[l][1].end.offset-e[l][1].start.offset&&(m=$n(m,[["enter",e[l][1],n],["exit",e[l][1],n]])),m=$n(m,[["enter",o,n],["enter",u,n],["exit",u,n],["enter",s,n]]),m=$n(m,kd(n.parser.constructs.insideSpan.null,e.slice(l+1,a),n)),m=$n(m,[["exit",s,n],["enter",f,n],["exit",f,n],["exit",o,n]]),e[a][1].end.offset-e[a][1].start.offset?(y=2,m=$n(m,[["enter",e[a][1],n],["exit",e[a][1],n]])):y=0,_n(e,l-1,a-l+3,m),a=l+m.length-y-2;break}}for(a=-1;++a<e.length;)e[a][1].type==="attentionSequence"&&(e[a][1].type="data");return e}function BL(e,n){const a=this.parser.constructs.attentionMarkers.null,l=this.previous,o=ki(l);let s;return u;function u(p){return s=p,e.enter("attentionSequence"),f(p)}function f(p){if(p===s)return e.consume(p),f;const m=e.exit("attentionSequence"),y=ki(p),g=!y||y===2&&o||a.includes(p),b=!o||o===2&&y||a.includes(l);return m._open=!!(s===42?g:g&&(o||!b)),m._close=!!(s===42?b:b&&(y||!g)),n(p)}}function z0(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const PL={name:"autolink",tokenize:FL};function FL(e,n,a){let l=0;return o;function o(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(w){return nn(w)?(e.consume(w),u):w===64?a(w):m(w)}function u(w){return w===43||w===45||w===46||Zt(w)?(l=1,f(w)):m(w)}function f(w){return w===58?(e.consume(w),l=0,p):(w===43||w===45||w===46||Zt(w))&&l++<32?(e.consume(w),f):(l=0,m(w))}function p(w){return w===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),n):w===null||w===32||w===60||zu(w)?a(w):(e.consume(w),p)}function m(w){return w===64?(e.consume(w),y):TL(w)?(e.consume(w),m):a(w)}function y(w){return Zt(w)?g(w):a(w)}function g(w){return w===46?(e.consume(w),l=0,y):w===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),n):b(w)}function b(w){if((w===45||Zt(w))&&l++<63){const k=w===45?b:g;return e.consume(w),k}return a(w)}}const Os={partial:!0,tokenize:UL};function UL(e,n,a){return l;function l(s){return Ke(s)?Je(e,o,"linePrefix")(s):o(s)}function o(s){return s===null||Re(s)?n(s):a(s)}}const LC={continuation:{tokenize:$L},exit:VL,name:"blockQuote",tokenize:HL};function HL(e,n,a){const l=this;return o;function o(u){if(u===62){const f=l.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),s}return a(u)}function s(u){return Ke(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(u))}}function $L(e,n,a){const l=this;return o;function o(u){return Ke(u)?Je(e,s,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):s(u)}function s(u){return e.attempt(LC,n,a)(u)}}function VL(e){e.exit("blockQuote")}const IC={name:"characterEscape",tokenize:qL};function qL(e,n,a){return l;function l(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),o}function o(s){return RL(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):a(s)}}const BC={name:"characterReference",tokenize:GL};function GL(e,n,a){const l=this;let o=0,s,u;return f;function f(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),p}function p(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),m):(e.enter("characterReferenceValue"),s=31,u=Zt,y(g))}function m(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,u=_L,y):(e.enter("characterReferenceValue"),s=7,u=Wm,y(g))}function y(g){if(g===59&&o){const b=e.exit("characterReferenceValue");return u===Zt&&!dg(l.sliceSerialize(b))?a(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return u(g)&&o++<s?(e.consume(g),y):a(g)}}const L0={partial:!0,tokenize:XL},I0={concrete:!0,name:"codeFenced",tokenize:YL};function YL(e,n,a){const l=this,o={partial:!0,tokenize:z};let s=0,u=0,f;return p;function p(M){return m(M)}function m(M){const F=l.events[l.events.length-1];return s=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,f=M,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(M)}function y(M){return M===f?(u++,e.consume(M),y):u<3?a(M):(e.exit("codeFencedFenceSequence"),Ke(M)?Je(e,g,"whitespace")(M):g(M))}function g(M){return M===null||Re(M)?(e.exit("codeFencedFence"),l.interrupt?n(M):e.check(L0,S,O)(M)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(M))}function b(M){return M===null||Re(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(M)):Ke(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Je(e,w,"whitespace")(M)):M===96&&M===f?a(M):(e.consume(M),b)}function w(M){return M===null||Re(M)?g(M):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),k(M))}function k(M){return M===null||Re(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(M)):M===96&&M===f?a(M):(e.consume(M),k)}function S(M){return e.attempt(o,O,E)(M)}function E(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),A}function A(M){return s>0&&Ke(M)?Je(e,N,"linePrefix",s+1)(M):N(M)}function N(M){return M===null||Re(M)?e.check(L0,S,O)(M):(e.enter("codeFlowValue"),j(M))}function j(M){return M===null||Re(M)?(e.exit("codeFlowValue"),N(M)):(e.consume(M),j)}function O(M){return e.exit("codeFenced"),n(M)}function z(M,F,U){let Y=0;return B;function B(ee){return M.enter("lineEnding"),M.consume(ee),M.exit("lineEnding"),G}function G(ee){return M.enter("codeFencedFence"),Ke(ee)?Je(M,q,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ee):q(ee)}function q(ee){return ee===f?(M.enter("codeFencedFenceSequence"),me(ee)):U(ee)}function me(ee){return ee===f?(Y++,M.consume(ee),me):Y>=u?(M.exit("codeFencedFenceSequence"),Ke(ee)?Je(M,ne,"whitespace")(ee):ne(ee)):U(ee)}function ne(ee){return ee===null||Re(ee)?(M.exit("codeFencedFence"),F(ee)):U(ee)}}}function XL(e,n,a){const l=this;return o;function o(u){return u===null?a(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s)}function s(u){return l.parser.lazy[l.now().line]?a(u):n(u)}}const dm={name:"codeIndented",tokenize:QL},KL={partial:!0,tokenize:ZL};function QL(e,n,a){const l=this;return o;function o(m){return e.enter("codeIndented"),Je(e,s,"linePrefix",5)(m)}function s(m){const y=l.events[l.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?u(m):a(m)}function u(m){return m===null?p(m):Re(m)?e.attempt(KL,u,p)(m):(e.enter("codeFlowValue"),f(m))}function f(m){return m===null||Re(m)?(e.exit("codeFlowValue"),u(m)):(e.consume(m),f)}function p(m){return e.exit("codeIndented"),n(m)}}function ZL(e,n,a){const l=this;return o;function o(u){return l.parser.lazy[l.now().line]?a(u):Re(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):Je(e,s,"linePrefix",5)(u)}function s(u){const f=l.events[l.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(u):Re(u)?o(u):a(u)}}const WL={name:"codeText",previous:e6,resolve:JL,tokenize:t6};function JL(e){let n=e.length-4,a=3,l,o;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(l=a;++l<n;)if(e[l][1].type==="codeTextData"){e[a][1].type="codeTextPadding",e[n][1].type="codeTextPadding",a+=2,n-=2;break}}for(l=a-1,n++;++l<=n;)o===void 0?l!==n&&e[l][1].type!=="lineEnding"&&(o=l):(l===n||e[l][1].type==="lineEnding")&&(e[o][1].type="codeTextData",l!==o+2&&(e[o][1].end=e[l-1][1].end,e.splice(o+2,l-o-2),n-=l-o-2,l=o+2),o=void 0);return e}function e6(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function t6(e,n,a){let l=0,o,s;return u;function u(g){return e.enter("codeText"),e.enter("codeTextSequence"),f(g)}function f(g){return g===96?(e.consume(g),l++,f):(e.exit("codeTextSequence"),p(g))}function p(g){return g===null?a(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),p):g===96?(s=e.enter("codeTextSequence"),o=0,y(g)):Re(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("codeTextData"),m(g))}function m(g){return g===null||g===32||g===96||Re(g)?(e.exit("codeTextData"),p(g)):(e.consume(g),m)}function y(g){return g===96?(e.consume(g),o++,y):o===l?(e.exit("codeTextSequence"),e.exit("codeText"),n(g)):(s.type="codeTextData",m(g))}}class n6{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,a){const l=a==null?Number.POSITIVE_INFINITY:a;return l<this.left.length?this.left.slice(n,l):n>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(n,a,l){const o=a||0;this.setCursor(Math.trunc(n));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return l&&qo(this.left,l),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),qo(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),qo(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const a=this.left.splice(n,Number.POSITIVE_INFINITY);qo(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);qo(this.left,a.reverse())}}}function qo(e,n){let a=0;if(n.length<1e4)e.push(...n);else for(;a<n.length;)e.push(...n.slice(a,a+1e4)),a+=1e4}function PC(e){const n={};let a=-1,l,o,s,u,f,p,m;const y=new n6(e);for(;++a<y.length;){for(;a in n;)a=n[a];if(l=y.get(a),a&&l[1].type==="chunkFlow"&&y.get(a-1)[1].type==="listItemPrefix"&&(p=l[1]._tokenizer.events,s=0,s<p.length&&p[s][1].type==="lineEndingBlank"&&(s+=2),s<p.length&&p[s][1].type==="content"))for(;++s<p.length&&p[s][1].type!=="content";)p[s][1].type==="chunkText"&&(p[s][1]._isInFirstContentOfListItem=!0,s++);if(l[0]==="enter")l[1].contentType&&(Object.assign(n,r6(y,a)),a=n[a],m=!0);else if(l[1]._container){for(s=a,o=void 0;s--;)if(u=y.get(s),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),u[1].type="lineEnding",o=s);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;o&&(l[1].end={...y.get(o)[1].start},f=y.slice(o,a),f.unshift(l),y.splice(o,a-o+1,f))}}return _n(e,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function r6(e,n){const a=e.get(n)[1],l=e.get(n)[2];let o=n-1;const s=[];let u=a._tokenizer;u||(u=l.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const f=u.events,p=[],m={};let y,g,b=-1,w=a,k=0,S=0;const E=[S];for(;w;){for(;e.get(++o)[1]!==w;);s.push(o),w._tokenizer||(y=l.sliceStream(w),w.next||y.push(null),g&&u.defineSkip(w.start),w._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(y),w._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),g=w,w=w.next}for(w=a;++b<f.length;)f[b][0]==="exit"&&f[b-1][0]==="enter"&&f[b][1].type===f[b-1][1].type&&f[b][1].start.line!==f[b][1].end.line&&(S=b+1,E.push(S),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(u.events=[],w?(w._tokenizer=void 0,w.previous=void 0):E.pop(),b=E.length;b--;){const A=f.slice(E[b],E[b+1]),N=s.pop();p.push([N,N+A.length-1]),e.splice(N,2,A)}for(p.reverse(),b=-1;++b<p.length;)m[k+p[b][0]]=k+p[b][1],k+=p[b][1]-p[b][0]-1;return m}const a6={resolve:i6,tokenize:o6},l6={partial:!0,tokenize:s6};function i6(e){return PC(e),e}function o6(e,n){let a;return l;function l(f){return e.enter("content"),a=e.enter("chunkContent",{contentType:"content"}),o(f)}function o(f){return f===null?s(f):Re(f)?e.check(l6,u,s)(f):(e.consume(f),o)}function s(f){return e.exit("chunkContent"),e.exit("content"),n(f)}function u(f){return e.consume(f),e.exit("chunkContent"),a.next=e.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,o}}function s6(e,n,a){const l=this;return o;function o(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Je(e,s,"linePrefix")}function s(u){if(u===null||Re(u))return a(u);const f=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(u):e.interrupt(l.parser.constructs.flow,a,n)(u)}}function FC(e,n,a,l,o,s,u,f,p){const m=p||Number.POSITIVE_INFINITY;let y=0;return g;function g(A){return A===60?(e.enter(l),e.enter(o),e.enter(s),e.consume(A),e.exit(s),b):A===null||A===32||A===41||zu(A)?a(A):(e.enter(l),e.enter(u),e.enter(f),e.enter("chunkString",{contentType:"string"}),S(A))}function b(A){return A===62?(e.enter(s),e.consume(A),e.exit(s),e.exit(o),e.exit(l),n):(e.enter(f),e.enter("chunkString",{contentType:"string"}),w(A))}function w(A){return A===62?(e.exit("chunkString"),e.exit(f),b(A)):A===null||A===60||Re(A)?a(A):(e.consume(A),A===92?k:w)}function k(A){return A===60||A===62||A===92?(e.consume(A),w):w(A)}function S(A){return!y&&(A===null||A===41||dt(A))?(e.exit("chunkString"),e.exit(f),e.exit(u),e.exit(l),n(A)):y<m&&A===40?(e.consume(A),y++,S):A===41?(e.consume(A),y--,S):A===null||A===32||A===40||zu(A)?a(A):(e.consume(A),A===92?E:S)}function E(A){return A===40||A===41||A===92?(e.consume(A),S):S(A)}}function UC(e,n,a,l,o,s){const u=this;let f=0,p;return m;function m(w){return e.enter(l),e.enter(o),e.consume(w),e.exit(o),e.enter(s),y}function y(w){return f>999||w===null||w===91||w===93&&!p||w===94&&!f&&"_hiddenFootnoteSupport"in u.parser.constructs?a(w):w===93?(e.exit(s),e.enter(o),e.consume(w),e.exit(o),e.exit(l),n):Re(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||w===91||w===93||Re(w)||f++>999?(e.exit("chunkString"),y(w)):(e.consume(w),p||(p=!Ke(w)),w===92?b:g)}function b(w){return w===91||w===92||w===93?(e.consume(w),f++,g):g(w)}}function HC(e,n,a,l,o,s){let u;return f;function f(b){return b===34||b===39||b===40?(e.enter(l),e.enter(o),e.consume(b),e.exit(o),u=b===40?41:b,p):a(b)}function p(b){return b===u?(e.enter(o),e.consume(b),e.exit(o),e.exit(l),n):(e.enter(s),m(b))}function m(b){return b===u?(e.exit(s),p(u)):b===null?a(b):Re(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Je(e,m,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(b))}function y(b){return b===u||b===null||Re(b)?(e.exit("chunkString"),m(b)):(e.consume(b),b===92?g:y)}function g(b){return b===u||b===92?(e.consume(b),y):y(b)}}function Jo(e,n){let a;return l;function l(o){return Re(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a=!0,l):Ke(o)?Je(e,l,a?"linePrefix":"lineSuffix")(o):n(o)}}const c6={name:"definition",tokenize:d6},u6={partial:!0,tokenize:f6};function d6(e,n,a){const l=this;let o;return s;function s(w){return e.enter("definition"),u(w)}function u(w){return UC.call(l,e,f,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function f(w){return o=er(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),p):a(w)}function p(w){return dt(w)?Jo(e,m)(w):m(w)}function m(w){return FC(e,y,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function y(w){return e.attempt(u6,g,g)(w)}function g(w){return Ke(w)?Je(e,b,"whitespace")(w):b(w)}function b(w){return w===null||Re(w)?(e.exit("definition"),l.parser.defined.push(o),n(w)):a(w)}}function f6(e,n,a){return l;function l(f){return dt(f)?Jo(e,o)(f):a(f)}function o(f){return HC(e,s,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function s(f){return Ke(f)?Je(e,u,"whitespace")(f):u(f)}function u(f){return f===null||Re(f)?n(f):a(f)}}const p6={name:"hardBreakEscape",tokenize:m6};function m6(e,n,a){return l;function l(s){return e.enter("hardBreakEscape"),e.consume(s),o}function o(s){return Re(s)?(e.exit("hardBreakEscape"),n(s)):a(s)}}const h6={name:"headingAtx",resolve:g6,tokenize:y6};function g6(e,n){let a=e.length-2,l=3,o,s;return e[l][1].type==="whitespace"&&(l+=2),a-2>l&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(l===a-1||a-4>l&&e[a-2][1].type==="whitespace")&&(a-=l+1===a?2:4),a>l&&(o={type:"atxHeadingText",start:e[l][1].start,end:e[a][1].end},s={type:"chunkText",start:e[l][1].start,end:e[a][1].end,contentType:"text"},_n(e,l,a-l+1,[["enter",o,n],["enter",s,n],["exit",s,n],["exit",o,n]])),e}function y6(e,n,a){let l=0;return o;function o(y){return e.enter("atxHeading"),s(y)}function s(y){return e.enter("atxHeadingSequence"),u(y)}function u(y){return y===35&&l++<6?(e.consume(y),u):y===null||dt(y)?(e.exit("atxHeadingSequence"),f(y)):a(y)}function f(y){return y===35?(e.enter("atxHeadingSequence"),p(y)):y===null||Re(y)?(e.exit("atxHeading"),n(y)):Ke(y)?Je(e,f,"whitespace")(y):(e.enter("atxHeadingText"),m(y))}function p(y){return y===35?(e.consume(y),p):(e.exit("atxHeadingSequence"),f(y))}function m(y){return y===null||y===35||dt(y)?(e.exit("atxHeadingText"),f(y)):(e.consume(y),m)}}const x6=["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"],B0=["pre","script","style","textarea"],b6={concrete:!0,name:"htmlFlow",resolveTo:S6,tokenize:k6},v6={partial:!0,tokenize:E6},w6={partial:!0,tokenize:C6};function S6(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function k6(e,n,a){const l=this;let o,s,u,f,p;return m;function m(T){return y(T)}function y(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),g}function g(T){return T===33?(e.consume(T),b):T===47?(e.consume(T),s=!0,S):T===63?(e.consume(T),o=3,l.interrupt?n:R):nn(T)?(e.consume(T),u=String.fromCharCode(T),E):a(T)}function b(T){return T===45?(e.consume(T),o=2,w):T===91?(e.consume(T),o=5,f=0,k):nn(T)?(e.consume(T),o=4,l.interrupt?n:R):a(T)}function w(T){return T===45?(e.consume(T),l.interrupt?n:R):a(T)}function k(T){const te="CDATA[";return T===te.charCodeAt(f++)?(e.consume(T),f===te.length?l.interrupt?n:q:k):a(T)}function S(T){return nn(T)?(e.consume(T),u=String.fromCharCode(T),E):a(T)}function E(T){if(T===null||T===47||T===62||dt(T)){const te=T===47,ae=u.toLowerCase();return!te&&!s&&B0.includes(ae)?(o=1,l.interrupt?n(T):q(T)):x6.includes(u.toLowerCase())?(o=6,te?(e.consume(T),A):l.interrupt?n(T):q(T)):(o=7,l.interrupt&&!l.parser.lazy[l.now().line]?a(T):s?N(T):j(T))}return T===45||Zt(T)?(e.consume(T),u+=String.fromCharCode(T),E):a(T)}function A(T){return T===62?(e.consume(T),l.interrupt?n:q):a(T)}function N(T){return Ke(T)?(e.consume(T),N):B(T)}function j(T){return T===47?(e.consume(T),B):T===58||T===95||nn(T)?(e.consume(T),O):Ke(T)?(e.consume(T),j):B(T)}function O(T){return T===45||T===46||T===58||T===95||Zt(T)?(e.consume(T),O):z(T)}function z(T){return T===61?(e.consume(T),M):Ke(T)?(e.consume(T),z):j(T)}function M(T){return T===null||T===60||T===61||T===62||T===96?a(T):T===34||T===39?(e.consume(T),p=T,F):Ke(T)?(e.consume(T),M):U(T)}function F(T){return T===p?(e.consume(T),p=null,Y):T===null||Re(T)?a(T):(e.consume(T),F)}function U(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||dt(T)?z(T):(e.consume(T),U)}function Y(T){return T===47||T===62||Ke(T)?j(T):a(T)}function B(T){return T===62?(e.consume(T),G):a(T)}function G(T){return T===null||Re(T)?q(T):Ke(T)?(e.consume(T),G):a(T)}function q(T){return T===45&&o===2?(e.consume(T),I):T===60&&o===1?(e.consume(T),X):T===62&&o===4?(e.consume(T),D):T===63&&o===3?(e.consume(T),R):T===93&&o===5?(e.consume(T),Z):Re(T)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(v6,L,me)(T)):T===null||Re(T)?(e.exit("htmlFlowData"),me(T)):(e.consume(T),q)}function me(T){return e.check(w6,ne,L)(T)}function ne(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),ee}function ee(T){return T===null||Re(T)?me(T):(e.enter("htmlFlowData"),q(T))}function I(T){return T===45?(e.consume(T),R):q(T)}function X(T){return T===47?(e.consume(T),u="",J):q(T)}function J(T){if(T===62){const te=u.toLowerCase();return B0.includes(te)?(e.consume(T),D):q(T)}return nn(T)&&u.length<8?(e.consume(T),u+=String.fromCharCode(T),J):q(T)}function Z(T){return T===93?(e.consume(T),R):q(T)}function R(T){return T===62?(e.consume(T),D):T===45&&o===2?(e.consume(T),R):q(T)}function D(T){return T===null||Re(T)?(e.exit("htmlFlowData"),L(T)):(e.consume(T),D)}function L(T){return e.exit("htmlFlow"),n(T)}}function C6(e,n,a){const l=this;return o;function o(u){return Re(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):a(u)}function s(u){return l.parser.lazy[l.now().line]?a(u):n(u)}}function E6(e,n,a){return l;function l(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Os,n,a)}}const A6={name:"htmlText",tokenize:N6};function N6(e,n,a){const l=this;let o,s,u;return f;function f(R){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(R),p}function p(R){return R===33?(e.consume(R),m):R===47?(e.consume(R),z):R===63?(e.consume(R),j):nn(R)?(e.consume(R),U):a(R)}function m(R){return R===45?(e.consume(R),y):R===91?(e.consume(R),s=0,k):nn(R)?(e.consume(R),N):a(R)}function y(R){return R===45?(e.consume(R),w):a(R)}function g(R){return R===null?a(R):R===45?(e.consume(R),b):Re(R)?(u=g,X(R)):(e.consume(R),g)}function b(R){return R===45?(e.consume(R),w):g(R)}function w(R){return R===62?I(R):R===45?b(R):g(R)}function k(R){const D="CDATA[";return R===D.charCodeAt(s++)?(e.consume(R),s===D.length?S:k):a(R)}function S(R){return R===null?a(R):R===93?(e.consume(R),E):Re(R)?(u=S,X(R)):(e.consume(R),S)}function E(R){return R===93?(e.consume(R),A):S(R)}function A(R){return R===62?I(R):R===93?(e.consume(R),A):S(R)}function N(R){return R===null||R===62?I(R):Re(R)?(u=N,X(R)):(e.consume(R),N)}function j(R){return R===null?a(R):R===63?(e.consume(R),O):Re(R)?(u=j,X(R)):(e.consume(R),j)}function O(R){return R===62?I(R):j(R)}function z(R){return nn(R)?(e.consume(R),M):a(R)}function M(R){return R===45||Zt(R)?(e.consume(R),M):F(R)}function F(R){return Re(R)?(u=F,X(R)):Ke(R)?(e.consume(R),F):I(R)}function U(R){return R===45||Zt(R)?(e.consume(R),U):R===47||R===62||dt(R)?Y(R):a(R)}function Y(R){return R===47?(e.consume(R),I):R===58||R===95||nn(R)?(e.consume(R),B):Re(R)?(u=Y,X(R)):Ke(R)?(e.consume(R),Y):I(R)}function B(R){return R===45||R===46||R===58||R===95||Zt(R)?(e.consume(R),B):G(R)}function G(R){return R===61?(e.consume(R),q):Re(R)?(u=G,X(R)):Ke(R)?(e.consume(R),G):Y(R)}function q(R){return R===null||R===60||R===61||R===62||R===96?a(R):R===34||R===39?(e.consume(R),o=R,me):Re(R)?(u=q,X(R)):Ke(R)?(e.consume(R),q):(e.consume(R),ne)}function me(R){return R===o?(e.consume(R),o=void 0,ee):R===null?a(R):Re(R)?(u=me,X(R)):(e.consume(R),me)}function ne(R){return R===null||R===34||R===39||R===60||R===61||R===96?a(R):R===47||R===62||dt(R)?Y(R):(e.consume(R),ne)}function ee(R){return R===47||R===62||dt(R)?Y(R):a(R)}function I(R){return R===62?(e.consume(R),e.exit("htmlTextData"),e.exit("htmlText"),n):a(R)}function X(R){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),J}function J(R){return Ke(R)?Je(e,Z,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):Z(R)}function Z(R){return e.enter("htmlTextData"),u(R)}}const fg={name:"labelEnd",resolveAll:R6,resolveTo:M6,tokenize:O6},j6={tokenize:D6},T6={tokenize:z6},_6={tokenize:L6};function R6(e){let n=-1;const a=[];for(;++n<e.length;){const l=e[n][1];if(a.push(e[n]),l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd"){const o=l.type==="labelImage"?4:2;l.type="data",n+=o}}return e.length!==a.length&&_n(e,0,e.length,a),e}function M6(e,n){let a=e.length,l=0,o,s,u,f;for(;a--;)if(o=e[a][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[a][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(u){if(e[a][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(s=a,o.type!=="labelLink")){l=2;break}}else o.type==="labelEnd"&&(u=a);const p={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},m={type:"label",start:{...e[s][1].start},end:{...e[u][1].end}},y={type:"labelText",start:{...e[s+l+2][1].end},end:{...e[u-2][1].start}};return f=[["enter",p,n],["enter",m,n]],f=$n(f,e.slice(s+1,s+l+3)),f=$n(f,[["enter",y,n]]),f=$n(f,kd(n.parser.constructs.insideSpan.null,e.slice(s+l+4,u-3),n)),f=$n(f,[["exit",y,n],e[u-2],e[u-1],["exit",m,n]]),f=$n(f,e.slice(u+1)),f=$n(f,[["exit",p,n]]),_n(e,s,e.length,f),e}function O6(e,n,a){const l=this;let o=l.events.length,s,u;for(;o--;)if((l.events[o][1].type==="labelImage"||l.events[o][1].type==="labelLink")&&!l.events[o][1]._balanced){s=l.events[o][1];break}return f;function f(b){return s?s._inactive?g(b):(u=l.parser.defined.includes(er(l.sliceSerialize({start:s.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),p):a(b)}function p(b){return b===40?e.attempt(j6,y,u?y:g)(b):b===91?e.attempt(T6,y,u?m:g)(b):u?y(b):g(b)}function m(b){return e.attempt(_6,y,g)(b)}function y(b){return n(b)}function g(b){return s._balanced=!0,a(b)}}function D6(e,n,a){return l;function l(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),o}function o(g){return dt(g)?Jo(e,s)(g):s(g)}function s(g){return g===41?y(g):FC(e,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function u(g){return dt(g)?Jo(e,p)(g):y(g)}function f(g){return a(g)}function p(g){return g===34||g===39||g===40?HC(e,m,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function m(g){return dt(g)?Jo(e,y)(g):y(g)}function y(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),n):a(g)}}function z6(e,n,a){const l=this;return o;function o(f){return UC.call(l,e,s,u,"reference","referenceMarker","referenceString")(f)}function s(f){return l.parser.defined.includes(er(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?n(f):a(f)}function u(f){return a(f)}}function L6(e,n,a){return l;function l(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),o}function o(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),n):a(s)}}const I6={name:"labelStartImage",resolveAll:fg.resolveAll,tokenize:B6};function B6(e,n,a){const l=this;return o;function o(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),s}function s(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),u):a(f)}function u(f){return f===94&&"_hiddenFootnoteSupport"in l.parser.constructs?a(f):n(f)}}const P6={name:"labelStartLink",resolveAll:fg.resolveAll,tokenize:F6};function F6(e,n,a){const l=this;return o;function o(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),s}function s(u){return u===94&&"_hiddenFootnoteSupport"in l.parser.constructs?a(u):n(u)}}const fm={name:"lineEnding",tokenize:U6};function U6(e,n){return a;function a(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Je(e,n,"linePrefix")}}const yu={name:"thematicBreak",tokenize:H6};function H6(e,n,a){let l=0,o;return s;function s(m){return e.enter("thematicBreak"),u(m)}function u(m){return o=m,f(m)}function f(m){return m===o?(e.enter("thematicBreakSequence"),p(m)):l>=3&&(m===null||Re(m))?(e.exit("thematicBreak"),n(m)):a(m)}function p(m){return m===o?(e.consume(m),l++,p):(e.exit("thematicBreakSequence"),Ke(m)?Je(e,f,"whitespace")(m):f(m))}}const hn={continuation:{tokenize:G6},exit:X6,name:"list",tokenize:q6},$6={partial:!0,tokenize:K6},V6={partial:!0,tokenize:Y6};function q6(e,n,a){const l=this,o=l.events[l.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,u=0;return f;function f(w){const k=l.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!l.containerState.marker||w===l.containerState.marker:Wm(w)){if(l.containerState.type||(l.containerState.type=k,e.enter(k,{_container:!0})),k==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(yu,a,m)(w):m(w);if(!l.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(w)}return a(w)}function p(w){return Wm(w)&&++u<10?(e.consume(w),p):(!l.interrupt||u<2)&&(l.containerState.marker?w===l.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),m(w)):a(w)}function m(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||w,e.check(Os,l.interrupt?a:y,e.attempt($6,b,g))}function y(w){return l.containerState.initialBlankLine=!0,s++,b(w)}function g(w){return Ke(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),b):a(w)}function b(w){return l.containerState.size=s+l.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(w)}}function G6(e,n,a){const l=this;return l.containerState._closeFlow=void 0,e.check(Os,o,s);function o(f){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,Je(e,n,"listItemIndent",l.containerState.size+1)(f)}function s(f){return l.containerState.furtherBlankLines||!Ke(f)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,u(f)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,e.attempt(V6,n,u)(f))}function u(f){return l.containerState._closeFlow=!0,l.interrupt=void 0,Je(e,e.attempt(hn,n,a),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function Y6(e,n,a){const l=this;return Je(e,o,"listItemIndent",l.containerState.size+1);function o(s){const u=l.events[l.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===l.containerState.size?n(s):a(s)}}function X6(e){e.exit(this.containerState.type)}function K6(e,n,a){const l=this;return Je(e,o,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const u=l.events[l.events.length-1];return!Ke(s)&&u&&u[1].type==="listItemPrefixWhitespace"?n(s):a(s)}}const P0={name:"setextUnderline",resolveTo:Q6,tokenize:Z6};function Q6(e,n){let a=e.length,l,o,s;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){l=a;break}e[a][1].type==="paragraph"&&(o=a)}else e[a][1].type==="content"&&e.splice(a,1),!s&&e[a][1].type==="definition"&&(s=a);const u={type:"setextHeading",start:{...e[l][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",s?(e.splice(o,0,["enter",u,n]),e.splice(s+1,0,["exit",e[l][1],n]),e[l][1].end={...e[s][1].end}):e[l][1]=u,e.push(["exit",u,n]),e}function Z6(e,n,a){const l=this;let o;return s;function s(m){let y=l.events.length,g;for(;y--;)if(l.events[y][1].type!=="lineEnding"&&l.events[y][1].type!=="linePrefix"&&l.events[y][1].type!=="content"){g=l.events[y][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||g)?(e.enter("setextHeadingLine"),o=m,u(m)):a(m)}function u(m){return e.enter("setextHeadingLineSequence"),f(m)}function f(m){return m===o?(e.consume(m),f):(e.exit("setextHeadingLineSequence"),Ke(m)?Je(e,p,"lineSuffix")(m):p(m))}function p(m){return m===null||Re(m)?(e.exit("setextHeadingLine"),n(m)):a(m)}}const W6={tokenize:J6};function J6(e){const n=this,a=e.attempt(Os,l,e.attempt(this.parser.constructs.flowInitial,o,Je(e,e.attempt(this.parser.constructs.flow,o,e.attempt(a6,o)),"linePrefix")));return a;function l(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),n.currentConstruct=void 0,a}function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n.currentConstruct=void 0,a}}const eI={resolveAll:VC()},tI=$C("string"),nI=$C("text");function $C(e){return{resolveAll:VC(e==="text"?rI:void 0),tokenize:n};function n(a){const l=this,o=this.parser.constructs[e],s=a.attempt(o,u,f);return u;function u(y){return m(y)?s(y):f(y)}function f(y){if(y===null){a.consume(y);return}return a.enter("data"),a.consume(y),p}function p(y){return m(y)?(a.exit("data"),s(y)):(a.consume(y),p)}function m(y){if(y===null)return!0;const g=o[y];let b=-1;if(g)for(;++b<g.length;){const w=g[b];if(!w.previous||w.previous.call(l,l.previous))return!0}return!1}}}function VC(e){return n;function n(a,l){let o=-1,s;for(;++o<=a.length;)s===void 0?a[o]&&a[o][1].type==="data"&&(s=o,o++):(!a[o]||a[o][1].type!=="data")&&(o!==s+2&&(a[s][1].end=a[o-1][1].end,a.splice(s+2,o-s-2),o=s+2),s=void 0);return e?e(a,l):a}}function rI(e,n){let a=0;for(;++a<=e.length;)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){const l=e[a-1][1],o=n.sliceStream(l);let s=o.length,u=-1,f=0,p;for(;s--;){const m=o[s];if(typeof m=="string"){for(u=m.length;m.charCodeAt(u-1)===32;)f++,u--;if(u)break;u=-1}else if(m===-2)p=!0,f++;else if(m!==-1){s++;break}}if(n._contentTypeTextTrailing&&a===e.length&&(f=0),f){const m={type:a===e.length||p||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?u:l.start._bufferIndex+u,_index:l.start._index+s,line:l.end.line,column:l.end.column-f,offset:l.end.offset-f},end:{...l.end}};l.end={...m.start},l.start.offset===l.end.offset?Object.assign(l,m):(e.splice(a,0,["enter",m,n],["exit",m,n]),a+=2)}a++}return e}const aI={42:hn,43:hn,45:hn,48:hn,49:hn,50:hn,51:hn,52:hn,53:hn,54:hn,55:hn,56:hn,57:hn,62:LC},lI={91:c6},iI={[-2]:dm,[-1]:dm,32:dm},oI={35:h6,42:yu,45:[P0,yu],60:b6,61:P0,95:yu,96:I0,126:I0},sI={38:BC,92:IC},cI={[-5]:fm,[-4]:fm,[-3]:fm,33:I6,38:BC,42:Jm,60:[PL,A6],91:P6,92:[p6,IC],93:fg,95:Jm,96:WL},uI={null:[Jm,eI]},dI={null:[42,95]},fI={null:[]},pI=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:dI,contentInitial:lI,disable:fI,document:aI,flow:oI,flowInitial:iI,insideSpan:uI,string:sI,text:cI},Symbol.toStringTag,{value:"Module"}));function mI(e,n,a){let l={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const o={},s=[];let u=[],f=[];const p={attempt:F(z),check:F(M),consume:N,enter:j,exit:O,interrupt:F(M,{interrupt:!0})},m={code:null,containerState:{},defineSkip:S,events:[],now:k,parser:e,previous:null,sliceSerialize:b,sliceStream:w,write:g};let y=n.tokenize.call(m,p);return n.resolveAll&&s.push(n),m;function g(G){return u=$n(u,G),E(),u[u.length-1]!==null?[]:(U(n,0),m.events=kd(s,m.events,m),m.events)}function b(G,q){return gI(w(G),q)}function w(G){return hI(u,G)}function k(){const{_bufferIndex:G,_index:q,line:me,column:ne,offset:ee}=l;return{_bufferIndex:G,_index:q,line:me,column:ne,offset:ee}}function S(G){o[G.line]=G.column,B()}function E(){let G;for(;l._index<u.length;){const q=u[l._index];if(typeof q=="string")for(G=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===G&&l._bufferIndex<q.length;)A(q.charCodeAt(l._bufferIndex));else A(q)}}function A(G){y=y(G)}function N(G){Re(G)?(l.line++,l.column=1,l.offset+=G===-3?2:1,B()):G!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===u[l._index].length&&(l._bufferIndex=-1,l._index++)),m.previous=G}function j(G,q){const me=q||{};return me.type=G,me.start=k(),m.events.push(["enter",me,m]),f.push(me),me}function O(G){const q=f.pop();return q.end=k(),m.events.push(["exit",q,m]),q}function z(G,q){U(G,q.from)}function M(G,q){q.restore()}function F(G,q){return me;function me(ne,ee,I){let X,J,Z,R;return Array.isArray(ne)?L(ne):"tokenize"in ne?L([ne]):D(ne);function D(le){return ie;function ie(be){const he=be!==null&&le[be],Te=be!==null&&le.null,ze=[...Array.isArray(he)?he:he?[he]:[],...Array.isArray(Te)?Te:Te?[Te]:[]];return L(ze)(be)}}function L(le){return X=le,J=0,le.length===0?I:T(le[J])}function T(le){return ie;function ie(be){return R=Y(),Z=le,le.partial||(m.currentConstruct=le),le.name&&m.parser.constructs.disable.null.includes(le.name)?ae():le.tokenize.call(q?Object.assign(Object.create(m),q):m,p,te,ae)(be)}}function te(le){return G(Z,R),ee}function ae(le){return R.restore(),++J<X.length?T(X[J]):I}}}function U(G,q){G.resolveAll&&!s.includes(G)&&s.push(G),G.resolve&&_n(m.events,q,m.events.length-q,G.resolve(m.events.slice(q),m)),G.resolveTo&&(m.events=G.resolveTo(m.events,m))}function Y(){const G=k(),q=m.previous,me=m.currentConstruct,ne=m.events.length,ee=Array.from(f);return{from:ne,restore:I};function I(){l=G,m.previous=q,m.currentConstruct=me,m.events.length=ne,f=ee,B()}}function B(){l.line in o&&l.column<2&&(l.column=o[l.line],l.offset+=o[l.line]-1)}}function hI(e,n){const a=n.start._index,l=n.start._bufferIndex,o=n.end._index,s=n.end._bufferIndex;let u;if(a===o)u=[e[a].slice(l,s)];else{if(u=e.slice(a,o),l>-1){const f=u[0];typeof f=="string"?u[0]=f.slice(l):u.shift()}s>0&&u.push(e[o].slice(0,s))}return u}function gI(e,n){let a=-1;const l=[];let o;for(;++a<e.length;){const s=e[a];let u;if(typeof s=="string")u=s;else switch(s){case-5:{u="\r";break}case-4:{u=`
|
|
441
|
+
`;break}case-3:{u=`\r
|
|
442
|
+
`;break}case-2:{u=n?" ":" ";break}case-1:{if(!n&&o)continue;u=" ";break}default:u=String.fromCharCode(s)}o=s===-2,l.push(u)}return l.join("")}function yI(e){const l={constructs:DC([pI,...(e||{}).extensions||[]]),content:o(ML),defined:[],document:o(DL),flow:o(W6),lazy:{},string:o(tI),text:o(nI)};return l;function o(s){return u;function u(f){return mI(l,s,f)}}}function xI(e){for(;!PC(e););return e}const F0=/[\0\t\n\r]/g;function bI(){let e=1,n="",a=!0,l;return o;function o(s,u,f){const p=[];let m,y,g,b,w;for(s=n+(typeof s=="string"?s.toString():new TextDecoder(u||void 0).decode(s)),g=0,n="",a&&(s.charCodeAt(0)===65279&&g++,a=void 0);g<s.length;){if(F0.lastIndex=g,m=F0.exec(s),b=m&&m.index!==void 0?m.index:s.length,w=s.charCodeAt(b),!m){n=s.slice(g);break}if(w===10&&g===b&&l)p.push(-3),l=void 0;else switch(l&&(p.push(-5),l=void 0),g<b&&(p.push(s.slice(g,b)),e+=b-g),w){case 0:{p.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,p.push(-2);e++<y;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:l=!0,e=1}g=b+1}return f&&(l&&p.push(-5),n&&p.push(n),p.push(null)),p}}const vI=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function wI(e){return e.replace(vI,SI)}function SI(e,n,a){if(n)return n;if(a.charCodeAt(0)===35){const o=a.charCodeAt(1),s=o===120||o===88;return zC(a.slice(s?2:1),s?16:10)}return dg(a)||e}const qC={}.hasOwnProperty;function kI(e,n,a){return n&&typeof n=="object"&&(a=n,n=void 0),CI(a)(xI(yI(a).document().write(bI()(e,n,!0))))}function CI(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(an),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:s(Dt),blockQuote:s(Te),characterEscape:Y,characterReference:Y,codeFenced:s(ze),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(ze,u),codeText:s(Le,u),codeTextData:Y,data:Y,codeFlowValue:Y,definition:s(ft),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(et),hardBreakEscape:s(Vt),hardBreakTrailing:s(Vt),htmlFlow:s(Mn,u),htmlFlowData:Y,htmlText:s(Mn,u),htmlTextData:Y,image:s(Gr),label:u,link:s(an),listItem:s(on),listItemValue:b,listOrdered:s(ln,g),listUnordered:s(ln),paragraph:s(xr),reference:T,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(Dt),strong:s(Bi),thematicBreak:s(Pi)},exit:{atxHeading:p(),atxHeadingSequence:z,autolink:p(),autolinkEmail:he,autolinkProtocol:be,blockQuote:p(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:le,characterReference:ie,codeFenced:p(E),codeFencedFence:S,codeFencedFenceInfo:w,codeFencedFenceMeta:k,codeFlowValue:B,codeIndented:p(A),codeText:p(ee),codeTextData:B,data:B,definition:p(),definitionDestinationString:O,definitionLabelString:N,definitionTitleString:j,emphasis:p(),hardBreakEscape:p(q),hardBreakTrailing:p(q),htmlFlow:p(me),htmlFlowData:B,htmlText:p(ne),htmlTextData:B,image:p(X),label:Z,labelText:J,lineEnding:G,link:p(I),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:te,resourceDestinationString:R,resourceTitleString:D,resource:L,setextHeading:p(U),setextHeadingLineSequence:F,setextHeadingText:M,strong:p(),thematicBreak:p()}};GC(n,(e||{}).mdastExtensions||[]);const a={};return l;function l(se){let xe={type:"root",children:[]};const Oe={stack:[xe],tokenStack:[],config:n,enter:f,exit:m,buffer:u,resume:y,data:a},He=[];let tt=-1;for(;++tt<se.length;)if(se[tt][1].type==="listOrdered"||se[tt][1].type==="listUnordered")if(se[tt][0]==="enter")He.push(tt);else{const zt=He.pop();tt=o(se,zt,tt)}for(tt=-1;++tt<se.length;){const zt=n[se[tt][0]];qC.call(zt,se[tt][1].type)&&zt[se[tt][1].type].call(Object.assign({sliceSerialize:se[tt][2].sliceSerialize},Oe),se[tt][1])}if(Oe.tokenStack.length>0){const zt=Oe.tokenStack[Oe.tokenStack.length-1];(zt[1]||U0).call(Oe,void 0,zt[0])}for(xe.position={start:Aa(se.length>0?se[0][1].start:{line:1,column:1,offset:0}),end:Aa(se.length>0?se[se.length-2][1].end:{line:1,column:1,offset:0})},tt=-1;++tt<n.transforms.length;)xe=n.transforms[tt](xe)||xe;return xe}function o(se,xe,Oe){let He=xe-1,tt=-1,zt=!1,sn,qt,yt,Ge;for(;++He<=Oe;){const De=se[He];switch(De[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{De[0]==="enter"?tt++:tt--,Ge=void 0;break}case"lineEndingBlank":{De[0]==="enter"&&(sn&&!Ge&&!tt&&!yt&&(yt=He),Ge=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ge=void 0}if(!tt&&De[0]==="enter"&&De[1].type==="listItemPrefix"||tt===-1&&De[0]==="exit"&&(De[1].type==="listUnordered"||De[1].type==="listOrdered")){if(sn){let yn=He;for(qt=void 0;yn--;){const Jt=se[yn];if(Jt[1].type==="lineEnding"||Jt[1].type==="lineEndingBlank"){if(Jt[0]==="exit")continue;qt&&(se[qt][1].type="lineEndingBlank",zt=!0),Jt[1].type="lineEnding",qt=yn}else if(!(Jt[1].type==="linePrefix"||Jt[1].type==="blockQuotePrefix"||Jt[1].type==="blockQuotePrefixWhitespace"||Jt[1].type==="blockQuoteMarker"||Jt[1].type==="listItemIndent"))break}yt&&(!qt||yt<qt)&&(sn._spread=!0),sn.end=Object.assign({},qt?se[qt][1].start:De[1].end),se.splice(qt||He,0,["exit",sn,De[2]]),He++,Oe++}if(De[1].type==="listItemPrefix"){const yn={type:"listItem",_spread:!1,start:Object.assign({},De[1].start),end:void 0};sn=yn,se.splice(He,0,["enter",yn,De[2]]),He++,Oe++,yt=void 0,Ge=!0}}}return se[xe][1]._spread=zt,Oe}function s(se,xe){return Oe;function Oe(He){f.call(this,se(He),He),xe&&xe.call(this,He)}}function u(){this.stack.push({type:"fragment",children:[]})}function f(se,xe,Oe){this.stack[this.stack.length-1].children.push(se),this.stack.push(se),this.tokenStack.push([xe,Oe||void 0]),se.position={start:Aa(xe.start),end:void 0}}function p(se){return xe;function xe(Oe){se&&se.call(this,Oe),m.call(this,Oe)}}function m(se,xe){const Oe=this.stack.pop(),He=this.tokenStack.pop();if(He)He[0].type!==se.type&&(xe?xe.call(this,se,He[0]):(He[1]||U0).call(this,se,He[0]));else throw new Error("Cannot close `"+se.type+"` ("+Wo({start:se.start,end:se.end})+"): it’s not open");Oe.position.end=Aa(se.end)}function y(){return ug(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function b(se){if(this.data.expectingFirstListItemValue){const xe=this.stack[this.stack.length-2];xe.start=Number.parseInt(this.sliceSerialize(se),10),this.data.expectingFirstListItemValue=void 0}}function w(){const se=this.resume(),xe=this.stack[this.stack.length-1];xe.lang=se}function k(){const se=this.resume(),xe=this.stack[this.stack.length-1];xe.meta=se}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const se=this.resume(),xe=this.stack[this.stack.length-1];xe.value=se.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const se=this.resume(),xe=this.stack[this.stack.length-1];xe.value=se.replace(/(\r?\n|\r)$/g,"")}function N(se){const xe=this.resume(),Oe=this.stack[this.stack.length-1];Oe.label=xe,Oe.identifier=er(this.sliceSerialize(se)).toLowerCase()}function j(){const se=this.resume(),xe=this.stack[this.stack.length-1];xe.title=se}function O(){const se=this.resume(),xe=this.stack[this.stack.length-1];xe.url=se}function z(se){const xe=this.stack[this.stack.length-1];if(!xe.depth){const Oe=this.sliceSerialize(se).length;xe.depth=Oe}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function F(se){const xe=this.stack[this.stack.length-1];xe.depth=this.sliceSerialize(se).codePointAt(0)===61?1:2}function U(){this.data.setextHeadingSlurpLineEnding=void 0}function Y(se){const Oe=this.stack[this.stack.length-1].children;let He=Oe[Oe.length-1];(!He||He.type!=="text")&&(He=vt(),He.position={start:Aa(se.start),end:void 0},Oe.push(He)),this.stack.push(He)}function B(se){const xe=this.stack.pop();xe.value+=this.sliceSerialize(se),xe.position.end=Aa(se.end)}function G(se){const xe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Oe=xe.children[xe.children.length-1];Oe.position.end=Aa(se.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(xe.type)&&(Y.call(this,se),B.call(this,se))}function q(){this.data.atHardBreak=!0}function me(){const se=this.resume(),xe=this.stack[this.stack.length-1];xe.value=se}function ne(){const se=this.resume(),xe=this.stack[this.stack.length-1];xe.value=se}function ee(){const se=this.resume(),xe=this.stack[this.stack.length-1];xe.value=se}function I(){const se=this.stack[this.stack.length-1];if(this.data.inReference){const xe=this.data.referenceType||"shortcut";se.type+="Reference",se.referenceType=xe,delete se.url,delete se.title}else delete se.identifier,delete se.label;this.data.referenceType=void 0}function X(){const se=this.stack[this.stack.length-1];if(this.data.inReference){const xe=this.data.referenceType||"shortcut";se.type+="Reference",se.referenceType=xe,delete se.url,delete se.title}else delete se.identifier,delete se.label;this.data.referenceType=void 0}function J(se){const xe=this.sliceSerialize(se),Oe=this.stack[this.stack.length-2];Oe.label=wI(xe),Oe.identifier=er(xe).toLowerCase()}function Z(){const se=this.stack[this.stack.length-1],xe=this.resume(),Oe=this.stack[this.stack.length-1];if(this.data.inReference=!0,Oe.type==="link"){const He=se.children;Oe.children=He}else Oe.alt=xe}function R(){const se=this.resume(),xe=this.stack[this.stack.length-1];xe.url=se}function D(){const se=this.resume(),xe=this.stack[this.stack.length-1];xe.title=se}function L(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function te(se){const xe=this.resume(),Oe=this.stack[this.stack.length-1];Oe.label=xe,Oe.identifier=er(this.sliceSerialize(se)).toLowerCase(),this.data.referenceType="full"}function ae(se){this.data.characterReferenceType=se.type}function le(se){const xe=this.sliceSerialize(se),Oe=this.data.characterReferenceType;let He;Oe?(He=zC(xe,Oe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):He=dg(xe);const tt=this.stack[this.stack.length-1];tt.value+=He}function ie(se){const xe=this.stack.pop();xe.position.end=Aa(se.end)}function be(se){B.call(this,se);const xe=this.stack[this.stack.length-1];xe.url=this.sliceSerialize(se)}function he(se){B.call(this,se);const xe=this.stack[this.stack.length-1];xe.url="mailto:"+this.sliceSerialize(se)}function Te(){return{type:"blockquote",children:[]}}function ze(){return{type:"code",lang:null,meta:null,value:""}}function Le(){return{type:"inlineCode",value:""}}function ft(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function et(){return{type:"emphasis",children:[]}}function Dt(){return{type:"heading",depth:0,children:[]}}function Vt(){return{type:"break"}}function Mn(){return{type:"html",value:""}}function Gr(){return{type:"image",title:null,url:"",alt:null}}function an(){return{type:"link",title:null,url:"",children:[]}}function ln(se){return{type:"list",ordered:se.type==="listOrdered",start:null,spread:se._spread,children:[]}}function on(se){return{type:"listItem",spread:se._spread,checked:null,children:[]}}function xr(){return{type:"paragraph",children:[]}}function Bi(){return{type:"strong",children:[]}}function vt(){return{type:"text",value:""}}function Pi(){return{type:"thematicBreak"}}}function Aa(e){return{line:e.line,column:e.column,offset:e.offset}}function GC(e,n){let a=-1;for(;++a<n.length;){const l=n[a];Array.isArray(l)?GC(e,l):EI(e,l)}}function EI(e,n){let a;for(a in n)if(qC.call(n,a))switch(a){case"canContainEols":{const l=n[a];l&&e[a].push(...l);break}case"transforms":{const l=n[a];l&&e[a].push(...l);break}case"enter":case"exit":{const l=n[a];l&&Object.assign(e[a],l);break}}}function U0(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Wo({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Wo({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Wo({start:n.start,end:n.end})+") is still open")}function AI(e){const n=this;n.parser=a;function a(l){return kI(l,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function NI(e,n){const a={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,a),e.applyData(n,a)}function jI(e,n){const a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,a),[e.applyData(n,a),{type:"text",value:`
|
|
443
|
+
`}]}function TI(e,n){const a=n.value?n.value+`
|
|
444
|
+
`:"",l={},o=n.lang?n.lang.split(/\s+/):[];o.length>0&&(l.className=["language-"+o[0]]);let s={type:"element",tagName:"code",properties:l,children:[{type:"text",value:a}]};return n.meta&&(s.data={meta:n.meta}),e.patch(n,s),s=e.applyData(n,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(n,s),s}function _I(e,n){const a={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function RI(e,n){const a={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function MI(e,n){const a=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=String(n.identifier).toUpperCase(),o=Ii(l.toLowerCase()),s=e.footnoteOrder.indexOf(l);let u,f=e.footnoteCounts.get(l);f===void 0?(f=0,e.footnoteOrder.push(l),u=e.footnoteOrder.length):u=s+1,f+=1,e.footnoteCounts.set(l,f);const p={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+o,id:a+"fnref-"+o+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(n,p);const m={type:"element",tagName:"sup",properties:{},children:[p]};return e.patch(n,m),e.applyData(n,m)}function OI(e,n){const a={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function DI(e,n){if(e.options.allowDangerousHtml){const a={type:"raw",value:n.value};return e.patch(n,a),e.applyData(n,a)}}function YC(e,n){const a=n.referenceType;let l="]";if(a==="collapsed"?l+="[]":a==="full"&&(l+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+l}];const o=e.all(n),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const u=o[o.length-1];return u&&u.type==="text"?u.value+=l:o.push({type:"text",value:l}),o}function zI(e,n){const a=String(n.identifier).toUpperCase(),l=e.definitionById.get(a);if(!l)return YC(e,n);const o={src:Ii(l.url||""),alt:n.alt};l.title!==null&&l.title!==void 0&&(o.title=l.title);const s={type:"element",tagName:"img",properties:o,children:[]};return e.patch(n,s),e.applyData(n,s)}function LI(e,n){const a={src:Ii(n.url)};n.alt!==null&&n.alt!==void 0&&(a.alt=n.alt),n.title!==null&&n.title!==void 0&&(a.title=n.title);const l={type:"element",tagName:"img",properties:a,children:[]};return e.patch(n,l),e.applyData(n,l)}function II(e,n){const a={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,a);const l={type:"element",tagName:"code",properties:{},children:[a]};return e.patch(n,l),e.applyData(n,l)}function BI(e,n){const a=String(n.identifier).toUpperCase(),l=e.definitionById.get(a);if(!l)return YC(e,n);const o={href:Ii(l.url||"")};l.title!==null&&l.title!==void 0&&(o.title=l.title);const s={type:"element",tagName:"a",properties:o,children:e.all(n)};return e.patch(n,s),e.applyData(n,s)}function PI(e,n){const a={href:Ii(n.url)};n.title!==null&&n.title!==void 0&&(a.title=n.title);const l={type:"element",tagName:"a",properties:a,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function FI(e,n,a){const l=e.all(n),o=a?UI(a):XC(n),s={},u=[];if(typeof n.checked=="boolean"){const y=l[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},l.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let f=-1;for(;++f<l.length;){const y=l[f];(o||f!==0||y.type!=="element"||y.tagName!=="p")&&u.push({type:"text",value:`
|
|
445
|
+
`}),y.type==="element"&&y.tagName==="p"&&!o?u.push(...y.children):u.push(y)}const p=l[l.length-1];p&&(o||p.type!=="element"||p.tagName!=="p")&&u.push({type:"text",value:`
|
|
446
|
+
`});const m={type:"element",tagName:"li",properties:s,children:u};return e.patch(n,m),e.applyData(n,m)}function UI(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const a=e.children;let l=-1;for(;!n&&++l<a.length;)n=XC(a[l])}return n}function XC(e){const n=e.spread;return n==null?e.children.length>1:n}function HI(e,n){const a={},l=e.all(n);let o=-1;for(typeof n.start=="number"&&n.start!==1&&(a.start=n.start);++o<l.length;){const u=l[o];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}const s={type:"element",tagName:n.ordered?"ol":"ul",properties:a,children:e.wrap(l,!0)};return e.patch(n,s),e.applyData(n,s)}function $I(e,n){const a={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function VI(e,n){const a={type:"root",children:e.wrap(e.all(n))};return e.patch(n,a),e.applyData(n,a)}function qI(e,n){const a={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function GI(e,n){const a=e.all(n),l=a.shift(),o=[];if(l){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([l],!0)};e.patch(n.children[0],u),o.push(u)}if(a.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(a,!0)},f=ig(n.children[1]),p=NC(n.children[n.children.length-1]);f&&p&&(u.position={start:f,end:p}),o.push(u)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(n,s),e.applyData(n,s)}function YI(e,n,a){const l=a?a.children:void 0,s=(l?l.indexOf(n):1)===0?"th":"td",u=a&&a.type==="table"?a.align:void 0,f=u?u.length:n.children.length;let p=-1;const m=[];for(;++p<f;){const g=n.children[p],b={},w=u?u[p]:void 0;w&&(b.align=w);let k={type:"element",tagName:s,properties:b,children:[]};g&&(k.children=e.all(g),e.patch(g,k),k=e.applyData(g,k)),m.push(k)}const y={type:"element",tagName:"tr",properties:{},children:e.wrap(m,!0)};return e.patch(n,y),e.applyData(n,y)}function XI(e,n){const a={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}const H0=9,$0=32;function KI(e){const n=String(e),a=/\r?\n|\r/g;let l=a.exec(n),o=0;const s=[];for(;l;)s.push(V0(n.slice(o,l.index),o>0,!0),l[0]),o=l.index+l[0].length,l=a.exec(n);return s.push(V0(n.slice(o),o>0,!1)),s.join("")}function V0(e,n,a){let l=0,o=e.length;if(n){let s=e.codePointAt(l);for(;s===H0||s===$0;)l++,s=e.codePointAt(l)}if(a){let s=e.codePointAt(o-1);for(;s===H0||s===$0;)o--,s=e.codePointAt(o-1)}return o>l?e.slice(l,o):""}function QI(e,n){const a={type:"text",value:KI(String(n.value))};return e.patch(n,a),e.applyData(n,a)}function ZI(e,n){const a={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,a),e.applyData(n,a)}const WI={blockquote:NI,break:jI,code:TI,delete:_I,emphasis:RI,footnoteReference:MI,heading:OI,html:DI,imageReference:zI,image:LI,inlineCode:II,linkReference:BI,link:PI,listItem:FI,list:HI,paragraph:$I,root:VI,strong:qI,table:GI,tableCell:XI,tableRow:YI,text:QI,thematicBreak:ZI,toml:ou,yaml:ou,definition:ou,footnoteDefinition:ou};function ou(){}const KC=-1,Cd=0,es=1,Lu=2,pg=3,mg=4,hg=5,gg=6,QC=7,ZC=8,q0=typeof self=="object"?self:globalThis,JI=(e,n)=>{const a=(o,s)=>(e.set(s,o),o),l=o=>{if(e.has(o))return e.get(o);const[s,u]=n[o];switch(s){case Cd:case KC:return a(u,o);case es:{const f=a([],o);for(const p of u)f.push(l(p));return f}case Lu:{const f=a({},o);for(const[p,m]of u)f[l(p)]=l(m);return f}case pg:return a(new Date(u),o);case mg:{const{source:f,flags:p}=u;return a(new RegExp(f,p),o)}case hg:{const f=a(new Map,o);for(const[p,m]of u)f.set(l(p),l(m));return f}case gg:{const f=a(new Set,o);for(const p of u)f.add(l(p));return f}case QC:{const{name:f,message:p}=u;return a(new q0[f](p),o)}case ZC:return a(BigInt(u),o);case"BigInt":return a(Object(BigInt(u)),o);case"ArrayBuffer":return a(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:f}=new Uint8Array(u);return a(new DataView(f),u)}}return a(new q0[s](u),o)};return l},G0=e=>JI(new Map,e)(0),si="",{toString:e8}={},{keys:t8}=Object,Go=e=>{const n=typeof e;if(n!=="object"||!e)return[Cd,n];const a=e8.call(e).slice(8,-1);switch(a){case"Array":return[es,si];case"Object":return[Lu,si];case"Date":return[pg,si];case"RegExp":return[mg,si];case"Map":return[hg,si];case"Set":return[gg,si];case"DataView":return[es,a]}return a.includes("Array")?[es,a]:a.includes("Error")?[QC,a]:[Lu,a]},su=([e,n])=>e===Cd&&(n==="function"||n==="symbol"),n8=(e,n,a,l)=>{const o=(u,f)=>{const p=l.push(u)-1;return a.set(f,p),p},s=u=>{if(a.has(u))return a.get(u);let[f,p]=Go(u);switch(f){case Cd:{let y=u;switch(p){case"bigint":f=ZC,y=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+p);y=null;break;case"undefined":return o([KC],u)}return o([f,y],u)}case es:{if(p){let b=u;return p==="DataView"?b=new Uint8Array(u.buffer):p==="ArrayBuffer"&&(b=new Uint8Array(u)),o([p,[...b]],u)}const y=[],g=o([f,y],u);for(const b of u)y.push(s(b));return g}case Lu:{if(p)switch(p){case"BigInt":return o([p,u.toString()],u);case"Boolean":case"Number":case"String":return o([p,u.valueOf()],u)}if(n&&"toJSON"in u)return s(u.toJSON());const y=[],g=o([f,y],u);for(const b of t8(u))(e||!su(Go(u[b])))&&y.push([s(b),s(u[b])]);return g}case pg:return o([f,u.toISOString()],u);case mg:{const{source:y,flags:g}=u;return o([f,{source:y,flags:g}],u)}case hg:{const y=[],g=o([f,y],u);for(const[b,w]of u)(e||!(su(Go(b))||su(Go(w))))&&y.push([s(b),s(w)]);return g}case gg:{const y=[],g=o([f,y],u);for(const b of u)(e||!su(Go(b)))&&y.push(s(b));return g}}const{message:m}=u;return o([f,{name:p,message:m}],u)};return s},Y0=(e,{json:n,lossy:a}={})=>{const l=[];return n8(!(n||a),!!n,new Map,l)(e),l},Iu=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?G0(Y0(e,n)):structuredClone(e):(e,n)=>G0(Y0(e,n));function r8(e,n){const a=[{type:"text",value:"↩"}];return n>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),a}function a8(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function l8(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=e.options.footnoteBackContent||r8,l=e.options.footnoteBackLabel||a8,o=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let p=-1;for(;++p<e.footnoteOrder.length;){const m=e.footnoteById.get(e.footnoteOrder[p]);if(!m)continue;const y=e.all(m),g=String(m.identifier).toUpperCase(),b=Ii(g.toLowerCase());let w=0;const k=[],S=e.footnoteCounts.get(g);for(;S!==void 0&&++w<=S;){k.length>0&&k.push({type:"text",value:" "});let N=typeof a=="string"?a:a(p,w);typeof N=="string"&&(N={type:"text",value:N}),k.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+b+(w>1?"-"+w:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(p,w),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const E=y[y.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const N=E.children[E.children.length-1];N&&N.type==="text"?N.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...k)}else y.push(...k);const A={type:"element",tagName:"li",properties:{id:n+"fn-"+b},children:e.wrap(y,!0)};e.patch(m,A),f.push(A)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Iu(u),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
447
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
|
|
448
|
+
`}]}}const Ed=(function(e){if(e==null)return c8;if(typeof e=="function")return Ad(e);if(typeof e=="object")return Array.isArray(e)?i8(e):o8(e);if(typeof e=="string")return s8(e);throw new Error("Expected function, string, or object as test")});function i8(e){const n=[];let a=-1;for(;++a<e.length;)n[a]=Ed(e[a]);return Ad(l);function l(...o){let s=-1;for(;++s<n.length;)if(n[s].apply(this,o))return!0;return!1}}function o8(e){const n=e;return Ad(a);function a(l){const o=l;let s;for(s in e)if(o[s]!==n[s])return!1;return!0}}function s8(e){return Ad(n);function n(a){return a&&a.type===e}}function Ad(e){return n;function n(a,l,o){return!!(u8(a)&&e.call(this,a,typeof l=="number"?l:void 0,o||void 0))}}function c8(){return!0}function u8(e){return e!==null&&typeof e=="object"&&"type"in e}const WC=[],d8=!0,eh=!1,f8="skip";function JC(e,n,a,l){let o;typeof n=="function"&&typeof a!="function"?(l=a,a=n):o=n;const s=Ed(o),u=l?-1:1;f(e,void 0,[])();function f(p,m,y){const g=p&&typeof p=="object"?p:{};if(typeof g.type=="string"){const w=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(p.type+(w?"<"+w+">":""))+")"})}return b;function b(){let w=WC,k,S,E;if((!n||s(p,m,y[y.length-1]||void 0))&&(w=p8(a(p,y)),w[0]===eh))return w;if("children"in p&&p.children){const A=p;if(A.children&&w[0]!==f8)for(S=(l?A.children.length:-1)+u,E=y.concat(A);S>-1&&S<A.children.length;){const N=A.children[S];if(k=f(N,S,E)(),k[0]===eh)return k;S=typeof k[1]=="number"?k[1]:S+u}}return w}}}function p8(e){return Array.isArray(e)?e:typeof e=="number"?[d8,e]:e==null?WC:[e]}function yg(e,n,a,l){let o,s,u;typeof n=="function"&&typeof a!="function"?(s=void 0,u=n,o=a):(s=n,u=a,o=l),JC(e,s,f,o);function f(p,m){const y=m[m.length-1],g=y?y.children.indexOf(p):void 0;return u(p,g,y)}}const th={}.hasOwnProperty,m8={};function h8(e,n){const a=n||m8,l=new Map,o=new Map,s=new Map,u={...WI,...a.handlers},f={all:m,applyData:y8,definitionById:l,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:u,one:p,options:a,patch:g8,wrap:b8};return yg(e,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?l:o,b=String(y.identifier).toUpperCase();g.has(b)||g.set(b,y)}}),f;function p(y,g){const b=y.type,w=f.handlers[b];if(th.call(f.handlers,b)&&w)return w(f,y,g);if(f.options.passThrough&&f.options.passThrough.includes(b)){if("children"in y){const{children:S,...E}=y,A=Iu(E);return A.children=f.all(y),A}return Iu(y)}return(f.options.unknownHandler||x8)(f,y,g)}function m(y){const g=[];if("children"in y){const b=y.children;let w=-1;for(;++w<b.length;){const k=f.one(b[w],y);if(k){if(w&&b[w-1].type==="break"&&(!Array.isArray(k)&&k.type==="text"&&(k.value=X0(k.value)),!Array.isArray(k)&&k.type==="element")){const S=k.children[0];S&&S.type==="text"&&(S.value=X0(S.value))}Array.isArray(k)?g.push(...k):g.push(k)}}}return g}}function g8(e,n){e.position&&(n.position=aL(e))}function y8(e,n){let a=n;if(e&&e.data){const l=e.data.hName,o=e.data.hChildren,s=e.data.hProperties;if(typeof l=="string")if(a.type==="element")a.tagName=l;else{const u="children"in a?a.children:[a];a={type:"element",tagName:l,properties:{},children:u}}a.type==="element"&&s&&Object.assign(a.properties,Iu(s)),"children"in a&&a.children&&o!==null&&o!==void 0&&(a.children=o)}return a}function x8(e,n){const a=n.data||{},l="value"in n&&!(th.call(a,"hProperties")||th.call(a,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function b8(e,n){const a=[];let l=-1;for(n&&a.push({type:"text",value:`
|
|
449
|
+
`});++l<e.length;)l&&a.push({type:"text",value:`
|
|
450
|
+
`}),a.push(e[l]);return n&&e.length>0&&a.push({type:"text",value:`
|
|
451
|
+
`}),a}function X0(e){let n=0,a=e.charCodeAt(n);for(;a===9||a===32;)n++,a=e.charCodeAt(n);return e.slice(n)}function K0(e,n){const a=h8(e,n),l=a.one(e,void 0),o=l8(a),s=Array.isArray(l)?{type:"root",children:l}:l||{type:"root",children:[]};return o&&s.children.push({type:"text",value:`
|
|
452
|
+
`},o),s}function v8(e,n){return e&&"run"in e?async function(a,l){const o=K0(a,{file:l,...n});await e.run(o,l)}:function(a,l){return K0(a,{file:l,...e||n})}}function Q0(e){if(e)throw e}var pm,Z0;function w8(){if(Z0)return pm;Z0=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,o=function(m){return typeof Array.isArray=="function"?Array.isArray(m):n.call(m)==="[object Array]"},s=function(m){if(!m||n.call(m)!=="[object Object]")return!1;var y=e.call(m,"constructor"),g=m.constructor&&m.constructor.prototype&&e.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!y&&!g)return!1;var b;for(b in m);return typeof b>"u"||e.call(m,b)},u=function(m,y){a&&y.name==="__proto__"?a(m,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):m[y.name]=y.newValue},f=function(m,y){if(y==="__proto__")if(e.call(m,y)){if(l)return l(m,y).value}else return;return m[y]};return pm=function p(){var m,y,g,b,w,k,S=arguments[0],E=1,A=arguments.length,N=!1;for(typeof S=="boolean"&&(N=S,S=arguments[1]||{},E=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});E<A;++E)if(m=arguments[E],m!=null)for(y in m)g=f(S,y),b=f(m,y),S!==b&&(N&&b&&(s(b)||(w=o(b)))?(w?(w=!1,k=g&&o(g)?g:[]):k=g&&s(g)?g:{},u(S,{name:y,newValue:p(N,k,b)})):typeof b<"u"&&u(S,{name:y,newValue:b}));return S},pm}var S8=w8();const mm=Pu(S8);function nh(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function k8(){const e=[],n={run:a,use:l};return n;function a(...o){let s=-1;const u=o.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);f(null,...o);function f(p,...m){const y=e[++s];let g=-1;if(p){u(p);return}for(;++g<o.length;)(m[g]===null||m[g]===void 0)&&(m[g]=o[g]);o=m,y?C8(y,f)(...m):u(null,...m)}}function l(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),n}}function C8(e,n){let a;return l;function l(...u){const f=e.length>u.length;let p;f&&u.push(o);try{p=e.apply(this,u)}catch(m){const y=m;if(f&&a)throw y;return o(y)}f||(p&&p.then&&typeof p.then=="function"?p.then(s,o):p instanceof Error?o(p):s(p))}function o(u,...f){a||(a=!0,n(u,...f))}function s(u){o(null,u)}}const ur={basename:E8,dirname:A8,extname:N8,join:j8,sep:"/"};function E8(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Ds(e);let a=0,l=-1,o=e.length,s;if(n===void 0||n.length===0||n.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(s){a=o+1;break}}else l<0&&(s=!0,l=o+1);return l<0?"":e.slice(a,l)}if(n===e)return"";let u=-1,f=n.length-1;for(;o--;)if(e.codePointAt(o)===47){if(s){a=o+1;break}}else u<0&&(s=!0,u=o+1),f>-1&&(e.codePointAt(o)===n.codePointAt(f--)?f<0&&(l=o):(f=-1,l=u));return a===l?l=u:l<0&&(l=e.length),e.slice(a,l)}function A8(e){if(Ds(e),e.length===0)return".";let n=-1,a=e.length,l;for(;--a;)if(e.codePointAt(a)===47){if(l){n=a;break}}else l||(l=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function N8(e){Ds(e);let n=e.length,a=-1,l=0,o=-1,s=0,u;for(;n--;){const f=e.codePointAt(n);if(f===47){if(u){l=n+1;break}continue}a<0&&(u=!0,a=n+1),f===46?o<0?o=n:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||a<0||s===0||s===1&&o===a-1&&o===l+1?"":e.slice(o,a)}function j8(...e){let n=-1,a;for(;++n<e.length;)Ds(e[n]),e[n]&&(a=a===void 0?e[n]:a+"/"+e[n]);return a===void 0?".":T8(a)}function T8(e){Ds(e);const n=e.codePointAt(0)===47;let a=_8(e,!n);return a.length===0&&!n&&(a="."),a.length>0&&e.codePointAt(e.length-1)===47&&(a+="/"),n?"/"+a:a}function _8(e,n){let a="",l=0,o=-1,s=0,u=-1,f,p;for(;++u<=e.length;){if(u<e.length)f=e.codePointAt(u);else{if(f===47)break;f=47}if(f===47){if(!(o===u-1||s===1))if(o!==u-1&&s===2){if(a.length<2||l!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(p=a.lastIndexOf("/"),p!==a.length-1){p<0?(a="",l=0):(a=a.slice(0,p),l=a.length-1-a.lastIndexOf("/")),o=u,s=0;continue}}else if(a.length>0){a="",l=0,o=u,s=0;continue}}n&&(a=a.length>0?a+"/..":"..",l=2)}else a.length>0?a+="/"+e.slice(o+1,u):a=e.slice(o+1,u),l=u-o-1;o=u,s=0}else f===46&&s>-1?s++:s=-1}return a}function Ds(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const R8={cwd:M8};function M8(){return"/"}function rh(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function O8(e){if(typeof e=="string")e=new URL(e);else if(!rh(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return D8(e)}function D8(e){if(e.hostname!==""){const l=new TypeError('File URL host must be "localhost" or empty on darwin');throw l.code="ERR_INVALID_FILE_URL_HOST",l}const n=e.pathname;let a=-1;for(;++a<n.length;)if(n.codePointAt(a)===37&&n.codePointAt(a+1)===50){const l=n.codePointAt(a+2);if(l===70||l===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(n)}const hm=["history","path","basename","stem","extname","dirname"];class eE{constructor(n){let a;n?rh(n)?a={path:n}:typeof n=="string"||z8(n)?a={value:n}:a=n:a={},this.cwd="cwd"in a?"":R8.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let l=-1;for(;++l<hm.length;){const s=hm[l];s in a&&a[s]!==void 0&&a[s]!==null&&(this[s]=s==="history"?[...a[s]]:a[s])}let o;for(o in a)hm.includes(o)||(this[o]=a[o])}get basename(){return typeof this.path=="string"?ur.basename(this.path):void 0}set basename(n){ym(n,"basename"),gm(n,"basename"),this.path=ur.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?ur.dirname(this.path):void 0}set dirname(n){W0(this.basename,"dirname"),this.path=ur.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?ur.extname(this.path):void 0}set extname(n){if(gm(n,"extname"),W0(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ur.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){rh(n)&&(n=O8(n)),ym(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?ur.basename(this.path,this.extname):void 0}set stem(n){ym(n,"stem"),gm(n,"stem"),this.path=ur.join(this.dirname||"",n+(this.extname||""))}fail(n,a,l){const o=this.message(n,a,l);throw o.fatal=!0,o}info(n,a,l){const o=this.message(n,a,l);return o.fatal=void 0,o}message(n,a,l){const o=new Wt(n,a,l);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function gm(e,n){if(e&&e.includes(ur.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+ur.sep+"`")}function ym(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function W0(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function z8(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const L8=(function(e){const l=this.constructor.prototype,o=l[e],s=function(){return o.apply(s,arguments)};return Object.setPrototypeOf(s,l),s}),I8={}.hasOwnProperty;class xg extends L8{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=k8()}copy(){const n=new xg;let a=-1;for(;++a<this.attachers.length;){const l=this.attachers[a];n.use(...l)}return n.data(mm(!0,{},this.namespace)),n}data(n,a){return typeof n=="string"?arguments.length===2?(vm("data",this.frozen),this.namespace[n]=a,this):I8.call(this.namespace,n)&&this.namespace[n]||void 0:n?(vm("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[a,...l]=this.attachers[this.freezeIndex];if(l[0]===!1)continue;l[0]===!0&&(l[0]=void 0);const o=a.call(n,...l);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const a=cu(n),l=this.parser||this.Parser;return xm("parse",l),l(String(a),a)}process(n,a){const l=this;return this.freeze(),xm("process",this.parser||this.Parser),bm("process",this.compiler||this.Compiler),a?o(void 0,a):new Promise(o);function o(s,u){const f=cu(n),p=l.parse(f);l.run(p,f,function(y,g,b){if(y||!g||!b)return m(y);const w=g,k=l.stringify(w,b);F8(k)?b.value=k:b.result=k,m(y,b)});function m(y,g){y||!g?u(y):s?s(g):a(void 0,g)}}}processSync(n){let a=!1,l;return this.freeze(),xm("processSync",this.parser||this.Parser),bm("processSync",this.compiler||this.Compiler),this.process(n,o),e1("processSync","process",a),l;function o(s,u){a=!0,Q0(s),l=u}}run(n,a,l){J0(n),this.freeze();const o=this.transformers;return!l&&typeof a=="function"&&(l=a,a=void 0),l?s(void 0,l):new Promise(s);function s(u,f){const p=cu(a);o.run(n,p,m);function m(y,g,b){const w=g||n;y?f(y):u?u(w):l(void 0,w,b)}}}runSync(n,a){let l=!1,o;return this.run(n,a,s),e1("runSync","run",l),o;function s(u,f){Q0(u),o=f,l=!0}}stringify(n,a){this.freeze();const l=cu(a),o=this.compiler||this.Compiler;return bm("stringify",o),J0(n),o(n,l)}use(n,...a){const l=this.attachers,o=this.namespace;if(vm("use",this.frozen),n!=null)if(typeof n=="function")p(n,a);else if(typeof n=="object")Array.isArray(n)?f(n):u(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function s(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[y,...g]=m;p(y,g)}else u(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function u(m){if(!("plugins"in m)&&!("settings"in m))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");f(m.plugins),m.settings&&(o.settings=mm(!0,o.settings,m.settings))}function f(m){let y=-1;if(m!=null)if(Array.isArray(m))for(;++y<m.length;){const g=m[y];s(g)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,y){let g=-1,b=-1;for(;++g<l.length;)if(l[g][0]===m){b=g;break}if(b===-1)l.push([m,...y]);else if(y.length>0){let[w,...k]=y;const S=l[b][1];nh(S)&&nh(w)&&(w=mm(!0,S,w)),l[b]=[m,w,...k]}}}}const B8=new xg().freeze();function xm(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function bm(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function vm(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function J0(e){if(!nh(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function e1(e,n,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function cu(e){return P8(e)?e:new eE(e)}function P8(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function F8(e){return typeof e=="string"||U8(e)}function U8(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const H8="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",t1=[],n1={allowDangerousHtml:!0},$8=/^(https?|ircs?|mailto|xmpp)$/i,V8=[{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 q8(e){const n=G8(e),a=Y8(e);return X8(n.runSync(n.parse(a),a),e)}function G8(e){const n=e.rehypePlugins||t1,a=e.remarkPlugins||t1,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...n1}:n1;return B8().use(AI).use(a).use(v8,l).use(n)}function Y8(e){const n=e.children||"",a=new eE;return typeof n=="string"&&(a.value=n),a}function X8(e,n){const a=n.allowedElements,l=n.allowElement,o=n.components,s=n.disallowedElements,u=n.skipHtml,f=n.unwrapDisallowed,p=n.urlTransform||K8;for(const y of V8)Object.hasOwn(n,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+H8+y.id,void 0);return yg(e,m),cL(e,{Fragment:d.Fragment,components:o,ignoreInvalidStyle:!0,jsx:d.jsx,jsxs:d.jsxs,passKeys:!0,passNode:!0});function m(y,g,b){if(y.type==="raw"&&b&&typeof g=="number")return u?b.children.splice(g,1):b.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let w;for(w in um)if(Object.hasOwn(um,w)&&Object.hasOwn(y.properties,w)){const k=y.properties[w],S=um[w];(S===null||S.includes(y.tagName))&&(y.properties[w]=p(String(k||""),w,y))}}if(y.type==="element"){let w=a?!a.includes(y.tagName):s?s.includes(y.tagName):!1;if(!w&&l&&typeof g=="number"&&(w=!l(y,g,b)),w&&b&&typeof g=="number")return f&&y.children?b.children.splice(g,1,...y.children):b.children.splice(g,1),g}}}function K8(e){const n=e.indexOf(":"),a=e.indexOf("?"),l=e.indexOf("#"),o=e.indexOf("/");return n===-1||o!==-1&&n>o||a!==-1&&n>a||l!==-1&&n>l||$8.test(e.slice(0,n))?e:""}function r1(e,n){const a=String(e);if(typeof n!="string")throw new TypeError("Expected character");let l=0,o=a.indexOf(n);for(;o!==-1;)l++,o=a.indexOf(n,o+n.length);return l}function Q8(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Z8(e,n,a){const o=Ed((a||{}).ignore||[]),s=W8(n);let u=-1;for(;++u<s.length;)JC(e,"text",f);function f(m,y){let g=-1,b;for(;++g<y.length;){const w=y[g],k=b?b.children:void 0;if(o(w,k?k.indexOf(w):void 0,b))return;b=w}if(b)return p(m,y)}function p(m,y){const g=y[y.length-1],b=s[u][0],w=s[u][1];let k=0;const E=g.children.indexOf(m);let A=!1,N=[];b.lastIndex=0;let j=b.exec(m.value);for(;j;){const O=j.index,z={index:j.index,input:j.input,stack:[...y,m]};let M=w(...j,z);if(typeof M=="string"&&(M=M.length>0?{type:"text",value:M}:void 0),M===!1?b.lastIndex=O+1:(k!==O&&N.push({type:"text",value:m.value.slice(k,O)}),Array.isArray(M)?N.push(...M):M&&N.push(M),k=O+j[0].length,A=!0),!b.global)break;j=b.exec(m.value)}return A?(k<m.value.length&&N.push({type:"text",value:m.value.slice(k)}),g.children.splice(E,1,...N)):N=[m],E+N.length}}function W8(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const a=!e[0]||Array.isArray(e[0])?e:[e];let l=-1;for(;++l<a.length;){const o=a[l];n.push([J8(o[0]),e9(o[1])])}return n}function J8(e){return typeof e=="string"?new RegExp(Q8(e),"g"):e}function e9(e){return typeof e=="function"?e:function(){return e}}const wm="phrasing",Sm=["autolink","link","image","label"];function t9(){return{transforms:[s9],enter:{literalAutolink:r9,literalAutolinkEmail:km,literalAutolinkHttp:km,literalAutolinkWww:km},exit:{literalAutolink:o9,literalAutolinkEmail:i9,literalAutolinkHttp:a9,literalAutolinkWww:l9}}}function n9(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:wm,notInConstruct:Sm},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:wm,notInConstruct:Sm},{character:":",before:"[ps]",after:"\\/",inConstruct:wm,notInConstruct:Sm}]}}function r9(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function km(e){this.config.enter.autolinkProtocol.call(this,e)}function a9(e){this.config.exit.autolinkProtocol.call(this,e)}function l9(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function i9(e){this.config.exit.autolinkEmail.call(this,e)}function o9(e){this.exit(e)}function s9(e){Z8(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,c9],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),u9]],{ignore:["link","linkReference"]})}function c9(e,n,a,l,o){let s="";if(!tE(o)||(/^w/i.test(n)&&(a=n+a,n="",s="http://"),!d9(a)))return!1;const u=f9(a+l);if(!u[0])return!1;const f={type:"link",title:null,url:s+n+u[0],children:[{type:"text",value:n+u[0]}]};return u[1]?[f,{type:"text",value:u[1]}]:f}function u9(e,n,a,l){return!tE(l,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+a,children:[{type:"text",value:n+"@"+a}]}}function d9(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function f9(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let a=n[0],l=a.indexOf(")");const o=r1(e,"(");let s=r1(e,")");for(;l!==-1&&o>s;)e+=a.slice(0,l+1),a=a.slice(l+1),l=a.indexOf(")"),s++;return[e,a]}function tE(e,n){const a=e.input.charCodeAt(e.index-1);return(e.index===0||gl(a)||Sd(a))&&(!n||a!==47)}nE.peek=w9;function p9(){this.buffer()}function m9(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function h9(){this.buffer()}function g9(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function y9(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=er(this.sliceSerialize(e)).toLowerCase(),a.label=n}function x9(e){this.exit(e)}function b9(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=er(this.sliceSerialize(e)).toLowerCase(),a.label=n}function v9(e){this.exit(e)}function w9(){return"["}function nE(e,n,a,l){const o=a.createTracker(l);let s=o.move("[^");const u=a.enter("footnoteReference"),f=a.enter("reference");return s+=o.move(a.safe(a.associationId(e),{after:"]",before:s})),f(),u(),s+=o.move("]"),s}function S9(){return{enter:{gfmFootnoteCallString:p9,gfmFootnoteCall:m9,gfmFootnoteDefinitionLabelString:h9,gfmFootnoteDefinition:g9},exit:{gfmFootnoteCallString:y9,gfmFootnoteCall:x9,gfmFootnoteDefinitionLabelString:b9,gfmFootnoteDefinition:v9}}}function k9(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:a,footnoteReference:nE},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function a(l,o,s,u){const f=s.createTracker(u);let p=f.move("[^");const m=s.enter("footnoteDefinition"),y=s.enter("label");return p+=f.move(s.safe(s.associationId(l),{before:p,after:"]"})),y(),p+=f.move("]:"),l.children&&l.children.length>0&&(f.shift(4),p+=f.move((n?`
|
|
453
|
+
`:" ")+s.indentLines(s.containerFlow(l,f.current()),n?rE:C9))),m(),p}}function C9(e,n,a){return n===0?e:rE(e,n,a)}function rE(e,n,a){return(a?"":" ")+e}const E9=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];aE.peek=_9;function A9(){return{canContainEols:["delete"],enter:{strikethrough:j9},exit:{strikethrough:T9}}}function N9(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:E9}],handlers:{delete:aE}}}function j9(e){this.enter({type:"delete",children:[]},e)}function T9(e){this.exit(e)}function aE(e,n,a,l){const o=a.createTracker(l),s=a.enter("strikethrough");let u=o.move("~~");return u+=a.containerPhrasing(e,{...o.current(),before:u,after:"~"}),u+=o.move("~~"),s(),u}function _9(){return"~"}function R9(e){return e.length}function M9(e,n){const a=n||{},l=(a.align||[]).concat(),o=a.stringLength||R9,s=[],u=[],f=[],p=[];let m=0,y=-1;for(;++y<e.length;){const S=[],E=[];let A=-1;for(e[y].length>m&&(m=e[y].length);++A<e[y].length;){const N=O9(e[y][A]);if(a.alignDelimiters!==!1){const j=o(N);E[A]=j,(p[A]===void 0||j>p[A])&&(p[A]=j)}S.push(N)}u[y]=S,f[y]=E}let g=-1;if(typeof l=="object"&&"length"in l)for(;++g<m;)s[g]=a1(l[g]);else{const S=a1(l);for(;++g<m;)s[g]=S}g=-1;const b=[],w=[];for(;++g<m;){const S=s[g];let E="",A="";S===99?(E=":",A=":"):S===108?E=":":S===114&&(A=":");let N=a.alignDelimiters===!1?1:Math.max(1,p[g]-E.length-A.length);const j=E+"-".repeat(N)+A;a.alignDelimiters!==!1&&(N=E.length+N+A.length,N>p[g]&&(p[g]=N),w[g]=N),b[g]=j}u.splice(1,0,b),f.splice(1,0,w),y=-1;const k=[];for(;++y<u.length;){const S=u[y],E=f[y];g=-1;const A=[];for(;++g<m;){const N=S[g]||"";let j="",O="";if(a.alignDelimiters!==!1){const z=p[g]-(E[g]||0),M=s[g];M===114?j=" ".repeat(z):M===99?z%2?(j=" ".repeat(z/2+.5),O=" ".repeat(z/2-.5)):(j=" ".repeat(z/2),O=j):O=" ".repeat(z)}a.delimiterStart!==!1&&!g&&A.push("|"),a.padding!==!1&&!(a.alignDelimiters===!1&&N==="")&&(a.delimiterStart!==!1||g)&&A.push(" "),a.alignDelimiters!==!1&&A.push(j),A.push(N),a.alignDelimiters!==!1&&A.push(O),a.padding!==!1&&A.push(" "),(a.delimiterEnd!==!1||g!==m-1)&&A.push("|")}k.push(a.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return k.join(`
|
|
454
|
+
`)}function O9(e){return e==null?"":String(e)}function a1(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function D9(e,n,a,l){const o=a.enter("blockquote"),s=a.createTracker(l);s.move("> "),s.shift(2);const u=a.indentLines(a.containerFlow(e,s.current()),z9);return o(),u}function z9(e,n,a){return">"+(a?"":" ")+e}function L9(e,n){return l1(e,n.inConstruct,!0)&&!l1(e,n.notInConstruct,!1)}function l1(e,n,a){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return a;let l=-1;for(;++l<n.length;)if(e.includes(n[l]))return!0;return!1}function i1(e,n,a,l){let o=-1;for(;++o<a.unsafe.length;)if(a.unsafe[o].character===`
|
|
455
|
+
`&&L9(a.stack,a.unsafe[o]))return/[ \t]/.test(l.before)?"":" ";return`\\
|
|
456
|
+
`}function I9(e,n){const a=String(e);let l=a.indexOf(n),o=l,s=0,u=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;l!==-1;)l===o?++s>u&&(u=s):s=1,o=l+n.length,l=a.indexOf(n,o);return u}function B9(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function P9(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function F9(e,n,a,l){const o=P9(a),s=e.value||"",u=o==="`"?"GraveAccent":"Tilde";if(B9(e,a)){const g=a.enter("codeIndented"),b=a.indentLines(s,U9);return g(),b}const f=a.createTracker(l),p=o.repeat(Math.max(I9(s,o)+1,3)),m=a.enter("codeFenced");let y=f.move(p);if(e.lang){const g=a.enter(`codeFencedLang${u}`);y+=f.move(a.safe(e.lang,{before:y,after:" ",encode:["`"],...f.current()})),g()}if(e.lang&&e.meta){const g=a.enter(`codeFencedMeta${u}`);y+=f.move(" "),y+=f.move(a.safe(e.meta,{before:y,after:`
|
|
457
|
+
`,encode:["`"],...f.current()})),g()}return y+=f.move(`
|
|
458
|
+
`),s&&(y+=f.move(s+`
|
|
459
|
+
`)),y+=f.move(p),m(),y}function U9(e,n,a){return(a?"":" ")+e}function bg(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function H9(e,n,a,l){const o=bg(a),s=o==='"'?"Quote":"Apostrophe",u=a.enter("definition");let f=a.enter("label");const p=a.createTracker(l);let m=p.move("[");return m+=p.move(a.safe(a.associationId(e),{before:m,after:"]",...p.current()})),m+=p.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=a.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(a.safe(e.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(f=a.enter("destinationRaw"),m+=p.move(a.safe(e.url,{before:m,after:e.title?" ":`
|
|
460
|
+
`,...p.current()}))),f(),e.title&&(f=a.enter(`title${s}`),m+=p.move(" "+o),m+=p.move(a.safe(e.title,{before:m,after:o,...p.current()})),m+=p.move(o),f()),u(),m}function $9(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function ms(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Bu(e,n,a){const l=ki(e),o=ki(n);return l===void 0?o===void 0?a==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:l===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}lE.peek=V9;function lE(e,n,a,l){const o=$9(a),s=a.enter("emphasis"),u=a.createTracker(l),f=u.move(o);let p=u.move(a.containerPhrasing(e,{after:o,before:f,...u.current()}));const m=p.charCodeAt(0),y=Bu(l.before.charCodeAt(l.before.length-1),m,o);y.inside&&(p=ms(m)+p.slice(1));const g=p.charCodeAt(p.length-1),b=Bu(l.after.charCodeAt(0),g,o);b.inside&&(p=p.slice(0,-1)+ms(g));const w=u.move(o);return s(),a.attentionEncodeSurroundingInfo={after:b.outside,before:y.outside},f+p+w}function V9(e,n,a){return a.options.emphasis||"*"}function q9(e,n){let a=!1;return yg(e,function(l){if("value"in l&&/\r?\n|\r/.test(l.value)||l.type==="break")return a=!0,eh}),!!((!e.depth||e.depth<3)&&ug(e)&&(n.options.setext||a))}function G9(e,n,a,l){const o=Math.max(Math.min(6,e.depth||1),1),s=a.createTracker(l);if(q9(e,a)){const y=a.enter("headingSetext"),g=a.enter("phrasing"),b=a.containerPhrasing(e,{...s.current(),before:`
|
|
461
|
+
`,after:`
|
|
462
|
+
`});return g(),y(),b+`
|
|
463
|
+
`+(o===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
|
|
464
|
+
`))+1))}const u="#".repeat(o),f=a.enter("headingAtx"),p=a.enter("phrasing");s.move(u+" ");let m=a.containerPhrasing(e,{before:"# ",after:`
|
|
465
|
+
`,...s.current()});return/^[\t ]/.test(m)&&(m=ms(m.charCodeAt(0))+m.slice(1)),m=m?u+" "+m:u,a.options.closeAtx&&(m+=" "+u),p(),f(),m}iE.peek=Y9;function iE(e){return e.value||""}function Y9(){return"<"}oE.peek=X9;function oE(e,n,a,l){const o=bg(a),s=o==='"'?"Quote":"Apostrophe",u=a.enter("image");let f=a.enter("label");const p=a.createTracker(l);let m=p.move("![");return m+=p.move(a.safe(e.alt,{before:m,after:"]",...p.current()})),m+=p.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=a.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(a.safe(e.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(f=a.enter("destinationRaw"),m+=p.move(a.safe(e.url,{before:m,after:e.title?" ":")",...p.current()}))),f(),e.title&&(f=a.enter(`title${s}`),m+=p.move(" "+o),m+=p.move(a.safe(e.title,{before:m,after:o,...p.current()})),m+=p.move(o),f()),m+=p.move(")"),u(),m}function X9(){return"!"}sE.peek=K9;function sE(e,n,a,l){const o=e.referenceType,s=a.enter("imageReference");let u=a.enter("label");const f=a.createTracker(l);let p=f.move("![");const m=a.safe(e.alt,{before:p,after:"]",...f.current()});p+=f.move(m+"]["),u();const y=a.stack;a.stack=[],u=a.enter("reference");const g=a.safe(a.associationId(e),{before:p,after:"]",...f.current()});return u(),a.stack=y,s(),o==="full"||!m||m!==g?p+=f.move(g+"]"):o==="shortcut"?p=p.slice(0,-1):p+=f.move("]"),p}function K9(){return"!"}cE.peek=Q9;function cE(e,n,a){let l=e.value||"",o="`",s=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(l);)o+="`";for(/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^`|`$/.test(l))&&(l=" "+l+" ");++s<a.unsafe.length;){const u=a.unsafe[s],f=a.compilePattern(u);let p;if(u.atBreak)for(;p=f.exec(l);){let m=p.index;l.charCodeAt(m)===10&&l.charCodeAt(m-1)===13&&m--,l=l.slice(0,m)+" "+l.slice(p.index+1)}}return o+l+o}function Q9(){return"`"}function uE(e,n){const a=ug(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(a===e.url||"mailto:"+a===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}dE.peek=Z9;function dE(e,n,a,l){const o=bg(a),s=o==='"'?"Quote":"Apostrophe",u=a.createTracker(l);let f,p;if(uE(e,a)){const y=a.stack;a.stack=[],f=a.enter("autolink");let g=u.move("<");return g+=u.move(a.containerPhrasing(e,{before:g,after:">",...u.current()})),g+=u.move(">"),f(),a.stack=y,g}f=a.enter("link"),p=a.enter("label");let m=u.move("[");return m+=u.move(a.containerPhrasing(e,{before:m,after:"](",...u.current()})),m+=u.move("]("),p(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(p=a.enter("destinationLiteral"),m+=u.move("<"),m+=u.move(a.safe(e.url,{before:m,after:">",...u.current()})),m+=u.move(">")):(p=a.enter("destinationRaw"),m+=u.move(a.safe(e.url,{before:m,after:e.title?" ":")",...u.current()}))),p(),e.title&&(p=a.enter(`title${s}`),m+=u.move(" "+o),m+=u.move(a.safe(e.title,{before:m,after:o,...u.current()})),m+=u.move(o),p()),m+=u.move(")"),f(),m}function Z9(e,n,a){return uE(e,a)?"<":"["}fE.peek=W9;function fE(e,n,a,l){const o=e.referenceType,s=a.enter("linkReference");let u=a.enter("label");const f=a.createTracker(l);let p=f.move("[");const m=a.containerPhrasing(e,{before:p,after:"]",...f.current()});p+=f.move(m+"]["),u();const y=a.stack;a.stack=[],u=a.enter("reference");const g=a.safe(a.associationId(e),{before:p,after:"]",...f.current()});return u(),a.stack=y,s(),o==="full"||!m||m!==g?p+=f.move(g+"]"):o==="shortcut"?p=p.slice(0,-1):p+=f.move("]"),p}function W9(){return"["}function vg(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function J9(e){const n=vg(e),a=e.options.bulletOther;if(!a)return n==="*"?"-":"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(a===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+a+"`) to be different");return a}function eB(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function pE(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function tB(e,n,a,l){const o=a.enter("list"),s=a.bulletCurrent;let u=e.ordered?eB(a):vg(a);const f=e.ordered?u==="."?")":".":J9(a);let p=n&&a.bulletLastUsed?u===a.bulletLastUsed:!1;if(!e.ordered){const y=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&y&&(!y.children||!y.children[0])&&a.stack[a.stack.length-1]==="list"&&a.stack[a.stack.length-2]==="listItem"&&a.stack[a.stack.length-3]==="list"&&a.stack[a.stack.length-4]==="listItem"&&a.indexStack[a.indexStack.length-1]===0&&a.indexStack[a.indexStack.length-2]===0&&a.indexStack[a.indexStack.length-3]===0&&(p=!0),pE(a)===u&&y){let g=-1;for(;++g<e.children.length;){const b=e.children[g];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(u=f),a.bulletCurrent=u;const m=a.containerFlow(e,l);return a.bulletLastUsed=u,a.bulletCurrent=s,o(),m}function nB(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function rB(e,n,a,l){const o=nB(a);let s=a.bulletCurrent||vg(a);n&&n.type==="list"&&n.ordered&&(s=(typeof n.start=="number"&&n.start>-1?n.start:1)+(a.options.incrementListMarker===!1?0:n.children.indexOf(e))+s);let u=s.length+1;(o==="tab"||o==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(u=Math.ceil(u/4)*4);const f=a.createTracker(l);f.move(s+" ".repeat(u-s.length)),f.shift(u);const p=a.enter("listItem"),m=a.indentLines(a.containerFlow(e,f.current()),y);return p(),m;function y(g,b,w){return b?(w?"":" ".repeat(u))+g:(w?s:s+" ".repeat(u-s.length))+g}}function aB(e,n,a,l){const o=a.enter("paragraph"),s=a.enter("phrasing"),u=a.containerPhrasing(e,l);return s(),o(),u}const lB=Ed(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function iB(e,n,a,l){return(e.children.some(function(u){return lB(u)})?a.containerPhrasing:a.containerFlow).call(a,e,l)}function oB(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}mE.peek=sB;function mE(e,n,a,l){const o=oB(a),s=a.enter("strong"),u=a.createTracker(l),f=u.move(o+o);let p=u.move(a.containerPhrasing(e,{after:o,before:f,...u.current()}));const m=p.charCodeAt(0),y=Bu(l.before.charCodeAt(l.before.length-1),m,o);y.inside&&(p=ms(m)+p.slice(1));const g=p.charCodeAt(p.length-1),b=Bu(l.after.charCodeAt(0),g,o);b.inside&&(p=p.slice(0,-1)+ms(g));const w=u.move(o+o);return s(),a.attentionEncodeSurroundingInfo={after:b.outside,before:y.outside},f+p+w}function sB(e,n,a){return a.options.strong||"*"}function cB(e,n,a,l){return a.safe(e.value,l)}function uB(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function dB(e,n,a){const l=(pE(a)+(a.options.ruleSpaces?" ":"")).repeat(uB(a));return a.options.ruleSpaces?l.slice(0,-1):l}const hE={blockquote:D9,break:i1,code:F9,definition:H9,emphasis:lE,hardBreak:i1,heading:G9,html:iE,image:oE,imageReference:sE,inlineCode:cE,link:dE,linkReference:fE,list:tB,listItem:rB,paragraph:aB,root:iB,strong:mE,text:cB,thematicBreak:dB};function fB(){return{enter:{table:pB,tableData:o1,tableHeader:o1,tableRow:hB},exit:{codeText:gB,table:mB,tableData:Cm,tableHeader:Cm,tableRow:Cm}}}function pB(e){const n=e._align;this.enter({type:"table",align:n.map(function(a){return a==="none"?null:a}),children:[]},e),this.data.inTable=!0}function mB(e){this.exit(e),this.data.inTable=void 0}function hB(e){this.enter({type:"tableRow",children:[]},e)}function Cm(e){this.exit(e)}function o1(e){this.enter({type:"tableCell",children:[]},e)}function gB(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,yB));const a=this.stack[this.stack.length-1];a.type,a.value=n,this.exit(e)}function yB(e,n){return n==="|"?n:e}function xB(e){const n=e||{},a=n.tableCellPadding,l=n.tablePipeAlign,o=n.stringLength,s=a?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
466
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:u,tableCell:p,tableRow:f}};function u(w,k,S,E){return m(y(w,S,E),w.align)}function f(w,k,S,E){const A=g(w,S,E),N=m([A]);return N.slice(0,N.indexOf(`
|
|
467
|
+
`))}function p(w,k,S,E){const A=S.enter("tableCell"),N=S.enter("phrasing"),j=S.containerPhrasing(w,{...E,before:s,after:s});return N(),A(),j}function m(w,k){return M9(w,{align:k,alignDelimiters:l,padding:a,stringLength:o})}function y(w,k,S){const E=w.children;let A=-1;const N=[],j=k.enter("table");for(;++A<E.length;)N[A]=g(E[A],k,S);return j(),N}function g(w,k,S){const E=w.children;let A=-1;const N=[],j=k.enter("tableRow");for(;++A<E.length;)N[A]=p(E[A],w,k,S);return j(),N}function b(w,k,S){let E=hE.inlineCode(w,k,S);return S.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function bB(){return{exit:{taskListCheckValueChecked:s1,taskListCheckValueUnchecked:s1,paragraph:wB}}}function vB(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:SB}}}function s1(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function wB(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const a=this.stack[this.stack.length-1];a.type;const l=a.children[0];if(l&&l.type==="text"){const o=n.children;let s=-1,u;for(;++s<o.length;){const f=o[s];if(f.type==="paragraph"){u=f;break}}u===a&&(l.value=l.value.slice(1),l.value.length===0?a.children.shift():a.position&&l.position&&typeof l.position.start.offset=="number"&&(l.position.start.column++,l.position.start.offset++,a.position.start=Object.assign({},l.position.start)))}}this.exit(e)}function SB(e,n,a,l){const o=e.children[0],s=typeof e.checked=="boolean"&&o&&o.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",f=a.createTracker(l);s&&f.move(u);let p=hE.listItem(e,n,a,{...l,...f.current()});return s&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),p;function m(y){return y+u}}function kB(){return[t9(),S9(),A9(),fB(),bB()]}function CB(e){return{extensions:[n9(),k9(e),N9(),xB(e),vB()]}}const EB={tokenize:RB,partial:!0},gE={tokenize:MB,partial:!0},yE={tokenize:OB,partial:!0},xE={tokenize:DB,partial:!0},AB={tokenize:zB,partial:!0},bE={name:"wwwAutolink",tokenize:TB,previous:wE},vE={name:"protocolAutolink",tokenize:_B,previous:SE},qr={name:"emailAutolink",tokenize:jB,previous:kE},yr={};function NB(){return{text:yr}}let sl=48;for(;sl<123;)yr[sl]=qr,sl++,sl===58?sl=65:sl===91&&(sl=97);yr[43]=qr;yr[45]=qr;yr[46]=qr;yr[95]=qr;yr[72]=[qr,vE];yr[104]=[qr,vE];yr[87]=[qr,bE];yr[119]=[qr,bE];function jB(e,n,a){const l=this;let o,s;return u;function u(g){return!ah(g)||!kE.call(l,l.previous)||wg(l.events)?a(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(g))}function f(g){return ah(g)?(e.consume(g),f):g===64?(e.consume(g),p):a(g)}function p(g){return g===46?e.check(AB,y,m)(g):g===45||g===95||Zt(g)?(s=!0,e.consume(g),p):y(g)}function m(g){return e.consume(g),o=!0,p}function y(g){return s&&o&&nn(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(g)):a(g)}}function TB(e,n,a){const l=this;return o;function o(u){return u!==87&&u!==119||!wE.call(l,l.previous)||wg(l.events)?a(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(EB,e.attempt(gE,e.attempt(yE,s),a),a)(u))}function s(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(u)}}function _B(e,n,a){const l=this;let o="",s=!1;return u;function u(g){return(g===72||g===104)&&SE.call(l,l.previous)&&!wg(l.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(g),e.consume(g),f):a(g)}function f(g){if(nn(g)&&o.length<5)return o+=String.fromCodePoint(g),e.consume(g),f;if(g===58){const b=o.toLowerCase();if(b==="http"||b==="https")return e.consume(g),p}return a(g)}function p(g){return g===47?(e.consume(g),s?m:(s=!0,p)):a(g)}function m(g){return g===null||zu(g)||dt(g)||gl(g)||Sd(g)?a(g):e.attempt(gE,e.attempt(yE,y),a)(g)}function y(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(g)}}function RB(e,n,a){let l=0;return o;function o(u){return(u===87||u===119)&&l<3?(l++,e.consume(u),o):u===46&&l===3?(e.consume(u),s):a(u)}function s(u){return u===null?a(u):n(u)}}function MB(e,n,a){let l,o,s;return u;function u(m){return m===46||m===95?e.check(xE,p,f)(m):m===null||dt(m)||gl(m)||m!==45&&Sd(m)?p(m):(s=!0,e.consume(m),u)}function f(m){return m===95?l=!0:(o=l,l=void 0),e.consume(m),u}function p(m){return o||l||!s?a(m):n(m)}}function OB(e,n){let a=0,l=0;return o;function o(u){return u===40?(a++,e.consume(u),o):u===41&&l<a?s(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(xE,n,s)(u):u===null||dt(u)||gl(u)?n(u):(e.consume(u),o)}function s(u){return u===41&&l++,e.consume(u),o}}function DB(e,n,a){return l;function l(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),l):f===38?(e.consume(f),s):f===93?(e.consume(f),o):f===60||f===null||dt(f)||gl(f)?n(f):a(f)}function o(f){return f===null||f===40||f===91||dt(f)||gl(f)?n(f):l(f)}function s(f){return nn(f)?u(f):a(f)}function u(f){return f===59?(e.consume(f),l):nn(f)?(e.consume(f),u):a(f)}}function zB(e,n,a){return l;function l(s){return e.consume(s),o}function o(s){return Zt(s)?a(s):n(s)}}function wE(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||dt(e)}function SE(e){return!nn(e)}function kE(e){return!(e===47||ah(e))}function ah(e){return e===43||e===45||e===46||e===95||Zt(e)}function wg(e){let n=e.length,a=!1;for(;n--;){const l=e[n][1];if((l.type==="labelLink"||l.type==="labelImage")&&!l._balanced){a=!0;break}if(l._gfmAutolinkLiteralWalkedInto){a=!1;break}}return e.length>0&&!a&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}const LB={tokenize:VB,partial:!0};function IB(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:UB,continuation:{tokenize:HB},exit:$B}},text:{91:{name:"gfmFootnoteCall",tokenize:FB},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:BB,resolveTo:PB}}}}function BB(e,n,a){const l=this;let o=l.events.length;const s=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let u;for(;o--;){const p=l.events[o][1];if(p.type==="labelImage"){u=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return f;function f(p){if(!u||!u._balanced)return a(p);const m=er(l.sliceSerialize({start:u.end,end:l.now()}));return m.codePointAt(0)!==94||!s.includes(m.slice(1))?a(p):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),n(p))}}function PB(e,n){let a=e.length;for(;a--;)if(e[a][1].type==="labelImage"&&e[a][0]==="enter"){e[a][1];break}e[a+1][1].type="data",e[a+3][1].type="gfmFootnoteCallLabelMarker";const l={type:"gfmFootnoteCall",start:Object.assign({},e[a+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[a+3][1].end),end:Object.assign({},e[a+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},f=[e[a+1],e[a+2],["enter",l,n],e[a+3],e[a+4],["enter",o,n],["exit",o,n],["enter",s,n],["enter",u,n],["exit",u,n],["exit",s,n],e[e.length-2],e[e.length-1],["exit",l,n]];return e.splice(a,e.length-a+1,...f),e}function FB(e,n,a){const l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let s=0,u;return f;function f(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),p}function p(g){return g!==94?a(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",m)}function m(g){if(s>999||g===93&&!u||g===null||g===91||dt(g))return a(g);if(g===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return o.includes(er(l.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):a(g)}return dt(g)||(u=!0),s++,e.consume(g),g===92?y:m}function y(g){return g===91||g===92||g===93?(e.consume(g),s++,m):m(g)}}function UB(e,n,a){const l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]);let s,u=0,f;return p;function p(k){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(k){return k===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",y):a(k)}function y(k){if(u>999||k===93&&!f||k===null||k===91||dt(k))return a(k);if(k===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return s=er(l.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return dt(k)||(f=!0),u++,e.consume(k),k===92?g:y}function g(k){return k===91||k===92||k===93?(e.consume(k),u++,y):y(k)}function b(k){return k===58?(e.enter("definitionMarker"),e.consume(k),e.exit("definitionMarker"),o.includes(s)||o.push(s),Je(e,w,"gfmFootnoteDefinitionWhitespace")):a(k)}function w(k){return n(k)}}function HB(e,n,a){return e.check(Os,n,e.attempt(LB,n,a))}function $B(e){e.exit("gfmFootnoteDefinition")}function VB(e,n,a){const l=this;return Je(e,o,"gfmFootnoteDefinitionIndent",5);function o(s){const u=l.events[l.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?n(s):a(s)}}function qB(e){let a=(e||{}).singleTilde;const l={name:"strikethrough",tokenize:s,resolveAll:o};return a==null&&(a=!0),{text:{126:l},insideSpan:{null:[l]},attentionMarkers:{null:[126]}};function o(u,f){let p=-1;for(;++p<u.length;)if(u[p][0]==="enter"&&u[p][1].type==="strikethroughSequenceTemporary"&&u[p][1]._close){let m=p;for(;m--;)if(u[m][0]==="exit"&&u[m][1].type==="strikethroughSequenceTemporary"&&u[m][1]._open&&u[p][1].end.offset-u[p][1].start.offset===u[m][1].end.offset-u[m][1].start.offset){u[p][1].type="strikethroughSequence",u[m][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},u[m][1].start),end:Object.assign({},u[p][1].end)},g={type:"strikethroughText",start:Object.assign({},u[m][1].end),end:Object.assign({},u[p][1].start)},b=[["enter",y,f],["enter",u[m][1],f],["exit",u[m][1],f],["enter",g,f]],w=f.parser.constructs.insideSpan.null;w&&_n(b,b.length,0,kd(w,u.slice(m+1,p),f)),_n(b,b.length,0,[["exit",g,f],["enter",u[p][1],f],["exit",u[p][1],f],["exit",y,f]]),_n(u,m-1,p-m+3,b),p=m+b.length-2;break}}for(p=-1;++p<u.length;)u[p][1].type==="strikethroughSequenceTemporary"&&(u[p][1].type="data");return u}function s(u,f,p){const m=this.previous,y=this.events;let g=0;return b;function b(k){return m===126&&y[y.length-1][1].type!=="characterEscape"?p(k):(u.enter("strikethroughSequenceTemporary"),w(k))}function w(k){const S=ki(m);if(k===126)return g>1?p(k):(u.consume(k),g++,w);if(g<2&&!a)return p(k);const E=u.exit("strikethroughSequenceTemporary"),A=ki(k);return E._open=!A||A===2&&!!S,E._close=!S||S===2&&!!A,f(k)}}}class GB{constructor(){this.map=[]}add(n,a,l){YB(this,n,a,l)}consume(n){if(this.map.sort(function(s,u){return s[0]-u[0]}),this.map.length===0)return;let a=this.map.length;const l=[];for(;a>0;)a-=1,l.push(n.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),n.length=this.map[a][0];l.push(n.slice()),n.length=0;let o=l.pop();for(;o;){for(const s of o)n.push(s);o=l.pop()}this.map.length=0}}function YB(e,n,a,l){let o=0;if(!(a===0&&l.length===0)){for(;o<e.map.length;){if(e.map[o][0]===n){e.map[o][1]+=a,e.map[o][2].push(...l);return}o+=1}e.map.push([n,a,l])}}function XB(e,n){let a=!1;const l=[];for(;n<e.length;){const o=e[n];if(a){if(o[0]==="enter")o[1].type==="tableContent"&&l.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const s=l.length-1;l[s]=l[s]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(a=!0);n+=1}return l}function KB(){return{flow:{null:{name:"table",tokenize:QB,resolveAll:ZB}}}}function QB(e,n,a){const l=this;let o=0,s=0,u;return f;function f(B){let G=l.events.length-1;for(;G>-1;){const ne=l.events[G][1].type;if(ne==="lineEnding"||ne==="linePrefix")G--;else break}const q=G>-1?l.events[G][1].type:null,me=q==="tableHead"||q==="tableRow"?M:p;return me===M&&l.parser.lazy[l.now().line]?a(B):me(B)}function p(B){return e.enter("tableHead"),e.enter("tableRow"),m(B)}function m(B){return B===124||(u=!0,s+=1),y(B)}function y(B){return B===null?a(B):Re(B)?s>1?(s=0,l.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),w):a(B):Ke(B)?Je(e,y,"whitespace")(B):(s+=1,u&&(u=!1,o+=1),B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),u=!0,y):(e.enter("data"),g(B)))}function g(B){return B===null||B===124||dt(B)?(e.exit("data"),y(B)):(e.consume(B),B===92?b:g)}function b(B){return B===92||B===124?(e.consume(B),g):g(B)}function w(B){return l.interrupt=!1,l.parser.lazy[l.now().line]?a(B):(e.enter("tableDelimiterRow"),u=!1,Ke(B)?Je(e,k,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):k(B))}function k(B){return B===45||B===58?E(B):B===124?(u=!0,e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),S):z(B)}function S(B){return Ke(B)?Je(e,E,"whitespace")(B):E(B)}function E(B){return B===58?(s+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),A):B===45?(s+=1,A(B)):B===null||Re(B)?O(B):z(B)}function A(B){return B===45?(e.enter("tableDelimiterFiller"),N(B)):z(B)}function N(B){return B===45?(e.consume(B),N):B===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),j):(e.exit("tableDelimiterFiller"),j(B))}function j(B){return Ke(B)?Je(e,O,"whitespace")(B):O(B)}function O(B){return B===124?k(B):B===null||Re(B)?!u||o!==s?z(B):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(B)):z(B)}function z(B){return a(B)}function M(B){return e.enter("tableRow"),F(B)}function F(B){return B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),F):B===null||Re(B)?(e.exit("tableRow"),n(B)):Ke(B)?Je(e,F,"whitespace")(B):(e.enter("data"),U(B))}function U(B){return B===null||B===124||dt(B)?(e.exit("data"),F(B)):(e.consume(B),B===92?Y:U)}function Y(B){return B===92||B===124?(e.consume(B),U):U(B)}}function ZB(e,n){let a=-1,l=!0,o=0,s=[0,0,0,0],u=[0,0,0,0],f=!1,p=0,m,y,g;const b=new GB;for(;++a<e.length;){const w=e[a],k=w[1];w[0]==="enter"?k.type==="tableHead"?(f=!1,p!==0&&(c1(b,n,p,m,y),y=void 0,p=0),m={type:"table",start:Object.assign({},k.start),end:Object.assign({},k.end)},b.add(a,0,[["enter",m,n]])):k.type==="tableRow"||k.type==="tableDelimiterRow"?(l=!0,g=void 0,s=[0,0,0,0],u=[0,a+1,0,0],f&&(f=!1,y={type:"tableBody",start:Object.assign({},k.start),end:Object.assign({},k.end)},b.add(a,0,[["enter",y,n]])),o=k.type==="tableDelimiterRow"?2:y?3:1):o&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")?(l=!1,u[2]===0&&(s[1]!==0&&(u[0]=u[1],g=uu(b,n,s,o,void 0,g),s=[0,0,0,0]),u[2]=a)):k.type==="tableCellDivider"&&(l?l=!1:(s[1]!==0&&(u[0]=u[1],g=uu(b,n,s,o,void 0,g)),s=u,u=[s[1],a,0,0])):k.type==="tableHead"?(f=!0,p=a):k.type==="tableRow"||k.type==="tableDelimiterRow"?(p=a,s[1]!==0?(u[0]=u[1],g=uu(b,n,s,o,a,g)):u[1]!==0&&(g=uu(b,n,u,o,a,g)),o=0):o&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")&&(u[3]=a)}for(p!==0&&c1(b,n,p,m,y),b.consume(n.events),a=-1;++a<n.events.length;){const w=n.events[a];w[0]==="enter"&&w[1].type==="table"&&(w[1]._align=XB(n.events,a))}return e}function uu(e,n,a,l,o,s){const u=l===1?"tableHeader":l===2?"tableDelimiter":"tableData",f="tableContent";a[0]!==0&&(s.end=Object.assign({},di(n.events,a[0])),e.add(a[0],0,[["exit",s,n]]));const p=di(n.events,a[1]);if(s={type:u,start:Object.assign({},p),end:Object.assign({},p)},e.add(a[1],0,[["enter",s,n]]),a[2]!==0){const m=di(n.events,a[2]),y=di(n.events,a[3]),g={type:f,start:Object.assign({},m),end:Object.assign({},y)};if(e.add(a[2],0,[["enter",g,n]]),l!==2){const b=n.events[a[2]],w=n.events[a[3]];if(b[1].end=Object.assign({},w[1].end),b[1].type="chunkText",b[1].contentType="text",a[3]>a[2]+1){const k=a[2]+1,S=a[3]-a[2]-1;e.add(k,S,[])}}e.add(a[3]+1,0,[["exit",g,n]])}return o!==void 0&&(s.end=Object.assign({},di(n.events,o)),e.add(o,0,[["exit",s,n]]),s=void 0),s}function c1(e,n,a,l,o){const s=[],u=di(n.events,a);o&&(o.end=Object.assign({},u),s.push(["exit",o,n])),l.end=Object.assign({},u),s.push(["exit",l,n]),e.add(a+1,0,s)}function di(e,n){const a=e[n],l=a[0]==="enter"?"start":"end";return a[1][l]}const WB={name:"tasklistCheck",tokenize:eP};function JB(){return{text:{91:WB}}}function eP(e,n,a){const l=this;return o;function o(p){return l.previous!==null||!l._gfmTasklistFirstContentOfListItem?a(p):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),s)}function s(p){return dt(p)?(e.enter("taskListCheckValueUnchecked"),e.consume(p),e.exit("taskListCheckValueUnchecked"),u):p===88||p===120?(e.enter("taskListCheckValueChecked"),e.consume(p),e.exit("taskListCheckValueChecked"),u):a(p)}function u(p){return p===93?(e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):a(p)}function f(p){return Re(p)?n(p):Ke(p)?e.check({tokenize:tP},n,a)(p):a(p)}}function tP(e,n,a){return Je(e,l,"whitespace");function l(o){return o===null?a(o):n(o)}}function nP(e){return DC([NB(),IB(),qB(e),KB(),JB()])}const rP={};function aP(e){const n=this,a=e||rP,l=n.data(),o=l.micromarkExtensions||(l.micromarkExtensions=[]),s=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),u=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);o.push(nP(a)),s.push(kB()),u.push(CB(a))}function CE({children:e,className:n,inverted:a=!1}){return d.jsx("div",{className:ge("markdown-render break-words",n),children:d.jsx(q8,{remarkPlugins:[aP],components:{code({className:l,children:o,...s}){const u=/language-(\w+)/.exec(l||""),f=u?u[1]:"",p=!f,m=Array.isArray(o)?o.join(""):String(o);return!p&&f?d.jsx("div",{className:"w-full max-w-full overflow-x-auto my-2 min-w-0",children:d.jsx(rg,{theme:a?fs.nightOwl:fs.oneDark,code:m.trim(),language:f,children:({className:y,style:g,tokens:b,getLineProps:w,getTokenProps:k})=>d.jsx("pre",{className:ge("rounded-lg text-sm p-3",y),style:g,children:b.map((S,E)=>d.jsx("div",{...w({line:S}),children:S.map((A,N)=>d.jsx("span",{...k({token:A})},N))},E))})})}):d.jsx("code",{className:ge("px-1.5 py-0.5 rounded text-sm font-mono break-all",a?"bg-primary-foreground/20 text-primary-foreground":"bg-muted",l),...s,children:o})},a({href:l,children:o,...s}){return d.jsx("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:ge("underline underline-offset-2 transition-colors",a?"text-primary-foreground/80 hover:text-primary-foreground":"text-primary hover:text-primary/80"),...s,children:o})},p({children:l}){return d.jsx("p",{className:"last:mb-0 leading-relaxed wrap-break-words",children:l})},ul({children:l}){return d.jsx("ul",{className:"list-outside list-disc pl-4",children:l})},ol({children:l}){return d.jsx("ol",{className:"list-outside list-decimal pl-4",children:l})},li({children:l,className:o}){const s=o==null?void 0:o.includes("nested");return d.jsx("li",{className:ge("leading-snug",s&&"ml-4"),children:l})},h1({children:l}){return d.jsx("h1",{className:"text-lg font-semibold mb-1.5 mt-3 first:mt-0",children:l})},h2({children:l}){return d.jsx("h2",{className:"text-base font-semibold mb-1.5 mt-2.5 first:mt-0",children:l})},h3({children:l}){return d.jsx("h3",{className:"text-sm font-semibold mb-1 mt-2 first:mt-0",children:l})},blockquote({children:l}){return d.jsx("blockquote",{className:ge("border-l-2 pl-3 my-1.5 italic",a?"border-primary-foreground/40 text-primary-foreground/70":"border-muted-foreground/40 text-muted-foreground"),children:l})},strong({children:l}){return d.jsx("strong",{className:ge("font-semibold",a&&"text-primary-foreground"),children:l})},em({children:l}){return d.jsx("em",{className:"italic",children:l})},hr(){return d.jsx("hr",{className:ge("my-3",a?"border-primary-foreground/30":"border-border")})},table({children:l}){return d.jsx("div",{className:"my-2 overflow-x-auto max-w-full",children:d.jsx("table",{className:"w-full border-collapse text-sm",children:l})})},th({children:l}){return d.jsx("th",{className:ge("border border-border px-2 py-1.5 text-left font-semibold",a?"bg-primary-foreground/10 text-primary-foreground":"bg-muted"),children:l})},td({children:l}){return d.jsx("td",{className:ge("border px-2 py-1.5",a?"border-primary-foreground/20":"border-border"),children:l})}},children:e})})}function lP(e){return e.filter(n=>n.type==="text").map(n=>n.text).join("")}function iP(e,n){const a=n.findIndex(l=>l.message.id===e);if(a<=0)return null;for(let l=a-1;l>=0;l--){const o=n[l];if(o.message.role==="assistant"&&o.message.status!=="streaming")return o.message.id}return null}function oP(e,n){const a=e.map(u=>({message:u.message,parts:u.parts,isQueued:!1})),l=n.map(u=>({message:{id:u.id,role:"user",sessionId:u.sessionId,createdAt:u.createdAt},parts:[{id:`${u.id}-part`,messageId:u.id,createdAt:u.createdAt,type:"text",text:u.content}],isQueued:!0,queueId:u.id})),o=[...a].sort((u,f)=>u.message.createdAt-f.message.createdAt),s=[...l].sort((u,f)=>u.message.createdAt-f.message.createdAt);return[...o,...s]}function sP({part:e}){const[n,a]=v.useState(!1);return d.jsxs("div",{className:"flex flex-col items-center my-4",children:[d.jsxs("button",{onClick:()=>a(!n),className:"flex items-center gap-2 text-xs text-muted-foreground hover:text-foreground transition-colors cursor-pointer",children:[n?d.jsx(Ci,{className:"size-3"}):d.jsx(Ta,{className:"size-3"}),d.jsxs("span",{className:"border-b border-dashed border-muted-foreground/40 pb-px",children:[e.compactedMessageIds.length," messages compacted"]})]}),n&&d.jsx("div",{className:"mt-2 max-w-lg w-full rounded-lg border border-border bg-muted/50 px-4 py-3 text-sm text-muted-foreground",children:d.jsx(CE,{children:e.summary})})]})}function cP({parts:e,pendingPermissions:n,onPermissionResponse:a,onNavigateToSubagent:l,inverted:o=!1}){const s=[...e].sort((u,f)=>u.createdAt-f.createdAt);return d.jsx(d.Fragment,{children:s.map(u=>{switch(u.type){case"text":return d.jsx("div",{className:"min-w-0",children:d.jsx(CE,{inverted:o,children:u.text||"..."})},u.id);case"reasoning":return d.jsx("div",{className:"text-muted-foreground text-sm italic border-l-2 border-muted-foreground/30 pl-3 my-2 wrap-break-word",children:u.text},u.id);case"tool":return d.jsx(T5,{part:u,pendingPermissions:n,onPermissionResponse:a,onNavigateToSubagent:l},u.id);case"image":return d.jsx("img",{src:u.url,alt:"",className:"max-w-full rounded-lg mt-2"},u.id);case"file":return d.jsx("div",{className:"mt-2 p-2 bg-muted rounded text-sm",children:u.filename||"unnamed"},u.id);default:return null}})})}function uP({session:e,messagesWithParts:n,queuedMessages:a,preconfigs:l,prompts:o,models:s,defaultModel:u,onSendMessage:f,onRemoveFromQueue:p,onChangePreconfig:m,onChangeModel:y,pendingPermissions:g,onPermissionResponse:b,onRename:w,usage:k,modelName:S,onNavigateToSubagent:E,onNavigateBack:A,isStreaming:N,onInterrupt:j,onRevert:O,onFork:z,onCompact:M,isCompacting:F,serverUrl:U,apiToken:Y}){const B=v.useRef(null),[G,q]=v.useState(!0),me=150,ne=oP(n,a);v.useEffect(()=>{q(!0),B.current&&(B.current.scrollTop=B.current.scrollHeight)},[e.id]),v.useEffect(()=>{B.current&&G&&(B.current.scrollTop=B.current.scrollHeight)},[n,G]),v.useEffect(()=>{const I=B.current;if(!I)return;const X=()=>{const{scrollHeight:J,scrollTop:Z,clientHeight:R}=I,D=J-Z-R;q(D<me)};return I.addEventListener("scroll",X,{passive:!0}),()=>I.removeEventListener("scroll",X)},[]);const ee=g.filter(I=>!n.some(X=>X.parts.some(J=>J.type==="tool"&&J.callId===I.toolCallId)));return d.jsxs("div",{className:"flex flex-col flex-1 min-h-0",children:[d.jsx(c3,{session:e,preconfigs:l,models:s,defaultModel:u,usage:k,modelName:S,onChangePreconfig:m,onChangeModel:y,onRename:w,onNavigateBack:A,isStreaming:N,onInterrupt:j,onCompact:M,isCompacting:F,canCompact:n.length>=4}),e.status==="closed"&&d.jsx(hu,{className:"mx-4 mt-4",children:d.jsx(gu,{children:"This session is archived. You can reopen it from the sidebar."})}),d.jsx(Oa,{className:"flex-1 min-h-0",ref:B,children:d.jsxs("div",{className:"p-4",children:[ne.length===0?d.jsxs("div",{className:"text-center py-16 text-muted-foreground",children:[d.jsx("p",{className:"text-lg mb-2",children:"Start a conversation"}),d.jsx("p",{className:"text-sm",children:"Send a message below to begin."})]}):ne.map(I=>{const X=I.parts.find(R=>R.type==="compaction");if(X)return d.jsx(sP,{part:X},I.message.id);const J=!I.isQueued&&I.message.role==="user",Z=J?iP(I.message.id,n):null;return d.jsx(u3,{message:I.message,textContent:lP(I.parts),isQueued:I.isQueued,onRemove:I.isQueued?()=>p(I.queueId):void 0,canRevert:J&&Z!==null,onRevert:Z?()=>O==null?void 0:O(e.id,Z):void 0,canFork:J&&Z!==null,onFork:Z?()=>z==null?void 0:z(e.id,I.message.id):void 0,children:I.parts.length===0?d.jsx("span",{className:"opacity-50",children:"..."}):d.jsx(cP,{parts:I.parts,pendingPermissions:g,onPermissionResponse:b,onNavigateToSubagent:E,inverted:I.message.role==="user"})},I.message.id)}),ee.length>0&&d.jsx("div",{className:"mt-4 flex flex-col gap-2",children:ee.map(I=>d.jsxs("div",{className:"p-3 bg-warning/10 border border-warning/30 rounded-lg",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[d.jsx("span",{className:"text-sm font-medium",children:I.toolName}),d.jsx("span",{className:"text-xs text-muted-foreground",children:I.permissionType})]}),d.jsx("p",{className:"text-sm mb-3",children:I.message}),d.jsxs("div",{className:"flex justify-end gap-2",children:[d.jsx(Ne,{variant:"outline",size:"sm",onClick:()=>b(I.toolCallId,!1,!1),children:"Deny"}),d.jsx(Ne,{size:"sm",onClick:()=>b(I.toolCallId,!0,!1),children:"Approve"})]})]},I.toolCallId))})]})}),e.status==="active"&&!e.parentId&&d.jsx(D5,{onSendMessage:f,disabled:F,workspaceId:e.workspaceId,serverUrl:U,apiToken:Y,prompts:o}),e.parentId&&d.jsxs("div",{className:"p-4 border-t border-border bg-muted/50 text-center flex items-center justify-center gap-2 text-sm text-muted-foreground",children:[d.jsx(IN,{className:"size-4"}),"This is a subagent session (read-only)"]})]})}function dP({className:e,orientation:n="horizontal",...a}){return d.jsx(jD,{"data-slot":"tabs","data-orientation":n,className:ge("group/tabs flex gap-2 data-horizontal:flex-col",e),...a})}const fP=Ai("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function pP({className:e,variant:n="default",...a}){return d.jsx(TD,{"data-slot":"tabs-list","data-variant":n,className:ge(fP({variant:n}),e),...a})}function Em({className:e,...n}){return d.jsx(_D,{"data-slot":"tabs-trigger",className:ge("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...n})}function Am({className:e,...n}){return d.jsx(RD,{"data-slot":"tabs-content",className:ge("flex-1 text-sm outline-none",e),...n})}function u1(e){return new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}function d1({permission:e,onRevoke:n}){const a=!!e.revokedAt;return d.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border last:border-0",children:[d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[d.jsxs(jn,{variant:a?"outline":"secondary",children:[d.jsx(S1,{className:"size-3","data-icon":"inline-start"}),e.permissionType]}),a&&d.jsx(jn,{variant:"outline",className:"text-muted-foreground",children:"Revoked"})]}),d.jsx("p",{className:"text-sm font-mono truncate text-muted-foreground",children:e.permissionKey}),d.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["Granted ",u1(e.grantedAt),e.revokedAt&&` • Revoked ${u1(e.revokedAt)}`]})]}),!a&&d.jsx(Ne,{variant:"ghost",size:"icon",onClick:()=>n(e.id),className:"size-8 text-destructive hover:text-destructive",children:d.jsx(gs,{className:"size-4"})})]})}function mP({open:e,onOpenChange:n,title:a,description:l,confirmLabel:o="Confirm",cancelLabel:s="Cancel",variant:u="default",onConfirm:f,onCancel:p}){const m=()=>{p==null||p(),n(!1)},y=()=>{f(),n(!1)};return d.jsx(Mi,{open:e,onOpenChange:n,children:d.jsxs(Oi,{className:"sm:max-w-[425px]",children:[d.jsxs(Di,{children:[d.jsx(zi,{children:a}),d.jsx(_s,{children:l})]}),d.jsxs(hd,{children:[d.jsx(Ne,{variant:"outline",onClick:m,children:s}),d.jsx(Ne,{variant:u==="destructive"?"destructive":"default",onClick:y,children:o})]})]})})}function hP({token:e,onLogout:n}){return d.jsxs("div",{className:"flex items-center gap-3 p-2 rounded-md bg-muted",children:[d.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[d.jsx("span",{className:"text-muted-foreground",children:"Token:"}),d.jsx("code",{className:"font-mono text-foreground bg-background px-1.5 py-0.5 rounded text-[10px]",children:Mj(e)})]}),d.jsx(Ne,{variant:"destructive",size:"sm",onClick:n,title:"Disconnect and clear token",children:"Logout"})]})}function gP({open:e,onOpenChange:n,permissions:a,onRefreshPermissions:l,onRevokePermission:o,onRevokeAllPermissions:s,apiToken:u,onLogout:f}){const{theme:p,setTheme:m}=HA(),[y,g]=v.useState(!1),b=a.filter(k=>!k.revokedAt),w=a.filter(k=>k.revokedAt);return d.jsxs(Mi,{open:e,onOpenChange:n,children:[d.jsxs(Oi,{className:"sm:max-w-[500px] max-h-[80vh]",children:[d.jsxs(Di,{children:[d.jsx(zi,{children:"Settings"}),d.jsx(_s,{children:"Manage your preferences and permissions"})]}),d.jsxs(dP,{defaultValue:"account",className:"mt-4",children:[d.jsxs(pP,{className:"grid w-full grid-cols-3",children:[d.jsx(Em,{value:"account",children:"Account"}),d.jsx(Em,{value:"appearance",children:"Appearance"}),d.jsxs(Em,{value:"permissions",children:[d.jsx(S1,{className:"size-3","data-icon":"inline-start"}),"Permissions",b.length>0&&d.jsx("span",{className:"ml-1.5 px-1.5 py-0.5 text-xs bg-primary text-primary-foreground rounded-full",children:b.length})]})]}),d.jsx(Am,{value:"account",className:"mt-4",children:d.jsx("div",{className:"flex flex-col gap-4",children:d.jsxs("div",{children:[d.jsx(ja,{className:"text-sm font-medium",children:"Session"}),d.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Manage your current session"}),u?d.jsx(hP,{token:u,onLogout:f}):d.jsx("p",{className:"text-sm text-muted-foreground",children:"No active session"})]})})}),d.jsx(Am,{value:"appearance",className:"mt-4",children:d.jsx("div",{className:"flex flex-col gap-4",children:d.jsxs("div",{children:[d.jsx(ja,{className:"text-sm font-medium",children:"Theme"}),d.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Choose your preferred color scheme"}),d.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[d.jsxs(Ne,{variant:p==="light"?"default":"outline",className:"justify-start",onClick:()=>m("light"),children:[d.jsx(dj,{className:"size-4","data-icon":"inline-start"}),"Light"]}),d.jsxs(Ne,{variant:p==="dark"?"default":"outline",className:"justify-start",onClick:()=>m("dark"),children:[d.jsx(qN,{className:"size-4","data-icon":"inline-start"}),"Dark"]}),d.jsxs(Ne,{variant:p==="system"?"default":"outline",className:"justify-start",onClick:()=>m("system"),children:[d.jsx($N,{className:"size-4","data-icon":"inline-start"}),"System"]})]})]})})}),d.jsx(Am,{value:"permissions",className:"mt-4",children:d.jsxs("div",{className:"flex flex-col gap-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx(ja,{className:"text-sm font-medium",children:"Always-allowed Operations"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Tools you've approved to run without asking"})]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx(Ne,{variant:"outline",size:"icon",onClick:l,className:"size-8",children:d.jsx(pi,{className:"size-4"})}),b.length>0&&d.jsxs(Ne,{variant:"destructive",size:"sm",onClick:()=>g(!0),children:[d.jsx(gs,{className:"size-4","data-icon":"inline-start"}),"Revoke All"]})]})]}),d.jsx(Ko,{}),d.jsxs(Oa,{className:"h-[300px]",children:[b.length===0&&w.length===0&&d.jsxs("div",{className:"text-center py-8 text-muted-foreground text-sm",children:["No permissions granted yet.",d.jsx("br",{}),'Approve tool requests with "Always allow" to add them here.']}),b.length>0&&d.jsxs("div",{className:"mb-4",children:[d.jsxs("h4",{className:"text-xs uppercase text-muted-foreground mb-2 font-medium",children:["Active (",b.length,")"]}),b.map(k=>d.jsx(d1,{permission:k,onRevoke:o},k.id))]}),w.length>0&&d.jsxs("div",{children:[d.jsxs("h4",{className:"text-xs uppercase text-muted-foreground mb-2 font-medium",children:["Revoked (",w.length,")"]}),w.map(k=>d.jsx(d1,{permission:k,onRevoke:o},k.id))]})]})]})})]})]}),d.jsx(mP,{open:y,onOpenChange:g,title:"Revoke All Permissions",description:"This will revoke all always-allowed permissions for this workspace. You'll need to approve these tools again when they're used.",confirmLabel:"Revoke All",variant:"destructive",onConfirm:()=>{s(),g(!1)}})]})}function yP({status:e}){switch(e.status){case"connected":return d.jsxs(jn,{variant:"default",className:"bg-green-600",children:[d.jsx(hs,{className:"size-3 mr-1"}),"Connected"]});case"disabled":return d.jsxs(jn,{variant:"secondary",children:[d.jsx(Fu,{className:"size-3 mr-1"}),"Disabled"]});case"failed":return d.jsxs(jn,{variant:"destructive",children:[d.jsx(Qo,{className:"size-3 mr-1"}),"Failed"]});case"needs_auth":return d.jsxs(jn,{variant:"outline",className:"border-yellow-500 text-yellow-600",children:[d.jsx(Qo,{className:"size-3 mr-1"}),"Needs Auth"]});case"needs_client_registration":return d.jsxs(jn,{variant:"outline",className:"border-orange-500 text-orange-600",children:[d.jsx(Qo,{className:"size-3 mr-1"}),"Needs Registration"]});default:return d.jsx(jn,{variant:"secondary",children:"Unknown"})}}function xP({open:e,onOpenChange:n,workspaceId:a,workspacePath:l,serverUrl:o,apiToken:s}){const{fetchWithAuth:u}=Ts(),[f,p]=v.useState({}),[m,y]=v.useState(!1),[g,b]=v.useState(null),[w,k]=v.useState(null),S=v.useCallback(async()=>{if(a){y(!0),k(null);try{const O=await u(`/api/workspaces/${a}/mcp/status`,{},{serverUrl:o,token:s});if(!O.ok)throw new Error("Failed to load MCP status");const z=await O.json();p(z.status||{})}catch(O){const z=O instanceof Error?O.message:"Unknown error";k(z)}finally{y(!1)}}},[a,u,o,s]);v.useEffect(()=>{e&&a&&S()},[e,a,S]);const E=async O=>{if(a){b(O);try{if(!(await u(`/api/workspaces/${a}/mcp/connect`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:O})},{serverUrl:o,token:s})).ok)throw new Error("Failed to connect");await S()}catch(z){const M=z instanceof Error?z.message:"Unknown error";k(M)}finally{b(null)}}},A=async O=>{if(a){b(O);try{if(!(await u(`/api/workspaces/${a}/mcp/disconnect`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:O})},{serverUrl:o,token:s})).ok)throw new Error("Failed to disconnect");await S()}catch(z){const M=z instanceof Error?z.message:"Unknown error";k(M)}finally{b(null)}}},N=async O=>{if(a){b(O);try{const z=await u(`/api/workspaces/${a}/mcp/auth`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:O})},{serverUrl:o,token:s});if(!z.ok)throw new Error("Failed to start auth");const M=await z.json();M.authorizationUrl&&window.open(M.authorizationUrl,"_blank"),await S()}catch(z){const M=z instanceof Error?z.message:"Unknown error";k(M)}finally{b(null)}}},j=Object.entries(f);return d.jsx(Mi,{open:e,onOpenChange:n,children:d.jsxs(Oi,{className:"sm:max-w-[600px] max-h-[80vh]",children:[d.jsxs(Di,{children:[d.jsxs(zi,{className:"flex items-center gap-2",children:[d.jsx(ul,{className:"size-5"}),"MCP Servers"]}),d.jsx(_s,{children:"Manage Model Context Protocol servers for this workspace"})]}),d.jsxs("div",{className:"mt-4 space-y-4",children:[w&&d.jsxs(hu,{variant:"destructive",children:[d.jsx(Qo,{className:"size-4"}),d.jsx(gu,{children:w})]}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("p",{className:"text-sm text-muted-foreground",children:["Configure servers in ",d.jsx("code",{className:"text-xs bg-muted px-1 rounded",children:".jean2/mcp.json"})]}),d.jsx(Ne,{variant:"outline",size:"sm",onClick:S,disabled:m,children:d.jsx(pi,{className:`size-4 ${m?"animate-spin":""}`})})]}),d.jsx(Oa,{className:"h-[400px]",children:m&&j.length===0?d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(Vn,{className:"size-6 animate-spin text-muted-foreground"})}):j.length===0?d.jsxs("div",{className:"text-center py-8 text-muted-foreground",children:[d.jsx(ul,{className:"size-12 mx-auto mb-3 opacity-50"}),d.jsx("p",{className:"font-medium",children:"No MCP servers configured"}),d.jsxs("p",{className:"text-sm mt-1",children:["Create ",d.jsx("code",{className:"text-xs bg-muted px-1 rounded",children:".jean2/mcp.json"})," in your workspace to add servers."]})]}):d.jsx("div",{className:"space-y-3",children:j.map(([O,{config:z,status:M}])=>{var F;return d.jsxs("div",{className:"border rounded-lg p-4",children:[d.jsxs("div",{className:"flex items-start justify-between",children:[d.jsxs("div",{className:"flex items-start gap-3",children:[d.jsx(ul,{className:"size-5 text-muted-foreground mt-0.5"}),d.jsxs("div",{children:[d.jsx("div",{className:"font-medium",children:O}),d.jsx("div",{className:"text-sm text-muted-foreground",children:(z==null?void 0:z.type)==="local"?d.jsxs("span",{children:["Local - ",((F=z.command)==null?void 0:F[0])||"command"]}):(z==null?void 0:z.type)==="remote"?d.jsxs("span",{className:"flex items-center gap-1",children:["Remote - ",z.url]}):"Unknown type"}),M.status==="failed"&&"error"in M&&d.jsx(hu,{variant:"destructive",className:"mt-2 py-2",children:d.jsx(gu,{className:"text-xs",children:M.error})}),M.status==="needs_client_registration"&&"error"in M&&d.jsx(hu,{className:"mt-2 py-2 border-orange-500",children:d.jsx(gu,{className:"text-xs",children:M.error})})]})]}),d.jsx("div",{className:"flex items-center gap-2",children:d.jsx(yP,{status:M})})]}),d.jsxs("div",{className:"flex items-center gap-2 mt-3 pt-3 border-t",children:[M.status==="connected"&&d.jsxs(Ne,{variant:"outline",size:"sm",onClick:()=>A(O),disabled:g===O,children:[g===O?d.jsx(Vn,{className:"size-4 animate-spin"}):d.jsx(KN,{className:"size-4"}),d.jsx("span",{className:"ml-1",children:"Disconnect"})]}),(M.status==="disabled"||M.status==="failed")&&d.jsxs(Ne,{variant:"outline",size:"sm",onClick:()=>E(O),disabled:g===O,children:[g===O?d.jsx(Vn,{className:"size-4 animate-spin"}):d.jsx(ZN,{className:"size-4"}),d.jsx("span",{className:"ml-1",children:"Connect"})]}),M.status==="needs_auth"&&d.jsxs(Ne,{variant:"default",size:"sm",onClick:()=>N(O),disabled:g===O,children:[g===O?d.jsx(Vn,{className:"size-4 animate-spin"}):d.jsx(jm,{className:"size-4"}),d.jsx("span",{className:"ml-1",children:"Authenticate"})]})]})]},O)})})})]})]})})}function f1({message:e="Connecting to server..."}){return d.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 text-muted-foreground",children:[d.jsx(Vn,{className:"size-8 animate-spin"}),d.jsx("p",{className:"text-sm",children:e})]})}const bP=({serverUrl:e,authError:n,retryCount:a,nextRetryIn:l,onRetry:o,onLogout:s})=>d.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[400px] px-4 text-center",children:[d.jsx(C1,{className:"size-12 text-destructive mb-4"}),d.jsx("h2",{className:"text-xl font-semibold text-foreground mb-2",children:"Unable to connect to server"}),d.jsx("p",{className:"text-sm text-muted-foreground mb-4 max-w-[400px]",children:n||"Please check that the server is running."}),e&&d.jsx("p",{className:"text-xs text-muted-foreground mb-6 font-mono bg-muted px-3 py-1.5 rounded",children:e}),d.jsxs("div",{className:"flex flex-col items-center gap-4",children:[d.jsxs("p",{className:"text-sm text-muted-foreground",children:["Retrying in ",l,"s..."]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs(Ne,{onClick:o,variant:"default",children:[d.jsx(pi,{className:"size-4 mr-2","data-icon":"inline-start"}),"Retry Now"]}),d.jsx(Ne,{onClick:s,variant:"ghost",children:"Change Server"})]}),a>0&&d.jsxs("p",{className:"text-xs text-muted-foreground",children:["Retry attempt: ",a]})]})]});function p1({onServerAdded:e,error:n}){const[a,l]=v.useState(""),[o,s]=v.useState(""),[u,f]=v.useState(""),[p,m]=v.useState(!1),[y,g]=v.useState(null),b=w=>{w.preventDefault();const k=a.trim(),S=o.trim(),E=u.trim();if(!k){g("Please enter a server name");return}if(!S){g("Please enter a server URL");return}if(!E){g("Please enter an API token");return}if(!A1(E)){g("Invalid token format. Token should be 64 hex characters (0-9, a-f).");return}const A=bu(S),N={id:crypto.randomUUID(),name:k,url:A,token:E,createdAt:new Date().toISOString()};e(N)};return d.jsx("div",{className:"w-full h-full flex items-center justify-center bg-background dark:bg-gradient-to-br dark:from-muted dark:via-background dark:to-muted p-4",children:d.jsx("div",{className:"w-full max-w-md",children:d.jsxs("div",{className:"bg-card border border-border rounded-xl shadow-2xl overflow-hidden",children:[d.jsxs("div",{className:"px-6 pt-6 pb-4 text-center border-b border-border",children:[d.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"Add your first server"}),d.jsx("p",{className:"text-muted-foreground mt-1",children:"Connect to a Jean2 server to get started"})]}),d.jsxs("form",{onSubmit:b,className:"p-6 space-y-4",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx("label",{htmlFor:"serverName",className:"text-sm font-medium text-foreground",children:"Server Name"}),d.jsx("input",{id:"serverName",type:"text",value:a,onChange:w=>{l(w.target.value),g(null)},placeholder:"Production",className:"w-full px-3 py-2 bg-background border border-input rounded-lg text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent transition-colors"})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx("label",{htmlFor:"serverUrl",className:"text-sm font-medium text-foreground",children:"Server URL"}),d.jsx("input",{id:"serverUrl",type:"text",value:o,onChange:w=>{s(w.target.value),g(null)},placeholder:"localhost:3000",className:"w-full px-3 py-2 bg-background border border-input rounded-lg text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent transition-colors"})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx("label",{htmlFor:"token",className:"text-sm font-medium text-foreground",children:"API Token"}),d.jsxs("div",{className:"relative",children:[d.jsx("input",{id:"token",type:p?"text":"password",value:u,onChange:w=>{f(w.target.value),g(null)},placeholder:"Enter your 64-character token",className:"w-full px-3 py-2 pr-10 bg-background border border-input rounded-lg text-foreground font-mono text-sm placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent transition-colors"}),d.jsx("button",{type:"button",onClick:()=>m(!p),className:"absolute right-2 top-1/2 -translate-y-1/2 p-1 text-muted-foreground hover:text-foreground transition-colors","aria-label":p?"Hide token":"Show token",children:p?d.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})}):d.jsxs("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]})})]})]}),(y||n)&&d.jsx("div",{className:"px-3 py-2 bg-destructive/10 border border-destructive/20 rounded-lg text-destructive text-sm",children:y||n}),d.jsx("button",{type:"submit",className:"w-full py-2.5 bg-primary text-primary-foreground font-medium rounded-lg hover:bg-primary/90 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 transition-colors",children:"Add Server"})]})]})})})}function m1({onServerSwitch:e,onSelectWorkspace:n}){const[a,l]=v.useState(!1),o=v.useRef(!1),s=bd(),{quickConnections:u,switchServer:f,removeFromQuickConnections:p,isSwitching:m}=Ei(),y=w=>{f(w.serverId)&&(o.current=!0,e==null||e(),w.workspaceId&&n&&n(w.workspaceId))};v.useEffect(()=>{!m&&a&&o.current&&(l(!1),o.current=!1)},[m,a]);const g=(w,k)=>{w.stopPropagation(),p(k)},b=()=>d.jsx(Yh,{children:d.jsx(Xh,{className:"max-h-[50vh] overflow-y-auto",children:u.length>0?d.jsx(ls,{heading:"Quick Switch",children:u.map(w=>d.jsxs(gi,{onSelect:()=>y(w),className:"justify-between",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(ul,{className:"size-4 text-muted-foreground"}),d.jsxs("span",{children:[w.serverName,w.workspaceName&&d.jsxs("span",{className:"text-muted-foreground",children:[" / ",w.workspaceName]})]})]}),d.jsx("button",{className:"opacity-0 group-hover:opacity-100 hover:opacity-100 transition-opacity p-1 rounded hover:bg-destructive/10",onClick:k=>g(k,w.id),children:d.jsx(gs,{className:"size-3 text-destructive"})})]},w.id))}):d.jsx(Kh,{className:"py-6",children:d.jsxs("div",{className:"flex flex-col items-center gap-2 text-muted-foreground",children:[d.jsx($p,{className:"size-8"}),d.jsx("p",{className:"text-sm font-medium",children:"No favorites yet"}),d.jsx("p",{className:"text-xs",children:"Star a workspace to add it here"})]})})})});return s?d.jsxs(Zh,{open:a,onOpenChange:l,children:[d.jsx(Az,{asChild:!0,children:d.jsx(Ne,{variant:"ghost",size:"icon-sm","aria-label":"Quick switch",children:d.jsx($p,{className:"size-4"})})}),d.jsxs(Wh,{side:"bottom",className:"max-h-[80vh]",children:[d.jsx(Jh,{children:d.jsx(eg,{children:"Quick Switch"})}),d.jsx("div",{className:"mt-4",children:b()})]})]}):d.jsxs(yd,{open:a,onOpenChange:l,children:[d.jsx(Qh,{asChild:!0,children:d.jsx(Ne,{variant:"ghost",size:"icon-sm","aria-label":"Quick switch",children:d.jsx($p,{className:"size-4"})})}),d.jsx(xd,{className:"w-[300px] p-0",align:"start",children:b()})]})}function vP({open:e,onOpenChange:n,editServer:a}){const{addServer:l,editServer:o}=Ei(),[s,u]=v.useState(""),[f,p]=v.useState(""),[m,y]=v.useState(""),[g,b]=v.useState(!1),[w,k]=v.useState(null),S=a!=null;v.useEffect(()=>{a?(u(a.name),p(a.url),y(a.token)):(u(""),p(""),y("")),k(null),b(!1)},[a,e]);const E=A=>{A.preventDefault(),k(null);const N=s.trim(),j=f.trim(),O=m.trim();if(!N){k("Name is required");return}if(!j){k("Server URL is required");return}if(!O){k("API token is required");return}if(!A1(O)){k("Token must be 64 hexadecimal characters");return}const z=bu(j);S?o(a.id,{name:N,url:z,token:O}):l(N,z,O),n(!1)};return d.jsx(Mi,{open:e,onOpenChange:n,children:d.jsxs(Oi,{className:"sm:max-w-[425px]",children:[d.jsxs(Di,{children:[d.jsx(zi,{children:S?"Edit Server":"Add Server"}),d.jsx(_s,{children:S?"Update server details":"Enter your server details"})]}),d.jsxs("form",{onSubmit:E,children:[d.jsxs("div",{className:"grid gap-4 py-4",children:[d.jsxs("div",{className:"grid gap-2",children:[d.jsx(ja,{htmlFor:"server-name",children:"Name"}),d.jsx(mu,{id:"server-name",value:s,onChange:A=>u(A.target.value),placeholder:"My Server"})]}),d.jsxs("div",{className:"grid gap-2",children:[d.jsx(ja,{htmlFor:"server-url",children:"Server URL"}),d.jsx(mu,{id:"server-url",value:f,onChange:A=>p(A.target.value),placeholder:"localhost:3000"})]}),d.jsxs("div",{className:"grid gap-2",children:[d.jsx(ja,{htmlFor:"server-token",children:"API Token"}),d.jsxs("div",{className:"relative",children:[d.jsx(mu,{id:"server-token",type:g?"text":"password",value:m,onChange:A=>y(A.target.value),placeholder:"64-character hex string",className:"pr-10"}),d.jsx("button",{type:"button",onClick:()=>b(!g),className:"absolute right-2 top-1/2 -translate-y-1/2 p-1 hover:bg-transparent",children:g?d.jsx(kN,{className:"size-4 text-muted-foreground"}):d.jsx(EN,{className:"size-4 text-muted-foreground"})})]})]}),w&&d.jsx("p",{className:"text-sm text-destructive",children:w})]}),d.jsxs(hd,{children:[d.jsx(Ne,{type:"button",variant:"outline",onClick:()=>n(!1),children:"Cancel"}),d.jsx(Ne,{type:"submit",children:S?"Save":"Add"})]})]})]})})}const wP=(e,n)=>e&&n?`ws://${n}/ws?token=${e}`:null,Nm=e=>e?`http://${e}/api`:null;function SP(){var Fs,Xi,Ki,Us;const{servers:e,activeServer:n,addServer:a,removeServer:l,isSwitching:o,clearSwitchingState:s}=Ei(),[u,f]=v.useState([]),[p,m]=v.useState([]),[y,g]=v.useState([]),[b,w]=v.useState(null),[k,S]=v.useState({}),[E,A]=v.useState({}),[N,j]=v.useState(null),O=v.useRef(null),[z,M]=v.useState(!1),[F,U]=v.useState(null),[Y,B]=v.useState({promptTokens:0,completionTokens:0,totalTokens:0}),[G,q]=v.useState("gpt-4o"),[me,ne]=v.useState([]),[ee,I]=v.useState("gpt-4o"),[X,J]=v.useState([]),[Z,R]=v.useState(null),[D,L]=v.useState(!1),[T,te]=v.useState(!1),[ae,le]=v.useState(!1),[ie,be]=v.useState([]),[he,Te]=v.useState([]),[ze,Le]=v.useState({}),[ft,et]=v.useState(null),[Dt,Vt]=v.useState(!1),[Mn,Gr]=v.useState(null),[an,ln]=v.useState(!1),[on,xr]=v.useState(0),[Bi,vt]=v.useState(0),[Pi,se]=v.useState(0),xe=(Fs=b==null?void 0:b.compacting)!=null?Fs:!1,Oe=1e4,He=3e4,tt=1e3,zt=v.useRef(null),sn=v.useRef(null),[qt,yt]=v.useState(!1),Ge=(Xi=n==null?void 0:n.token)!=null?Xi:null,De=(Ki=n==null?void 0:n.url)!=null?Ki:null;v.useEffect(()=>{O.current=N},[N]);const yn=v.useRef(null),Jt=v.useRef(!1),zs=v.useCallback(H=>{a(H.name,H.url,H.token)},[a]),On=v.useCallback(()=>{n&&l(n.id),O.current&&O.current.close(),j(null),M(!1),ln(!1),xr(0),vt(0)},[n,l]),Sl=v.useCallback(()=>{xr(H=>H+1),ln(!1),vt(0)},[]),Yr=v.useCallback(()=>{O.current&&O.current.close(),j(null),M(!1),ln(!1),xr(0),vt(0),f([]),m([]),w(null),S({}),A({}),U(null),B({promptTokens:0,completionTokens:0,totalTokens:0}),q("gpt-4o"),ne([]),J([]),R(null),be([]),Te([]),Le({}),se(H=>H+1)},[]),Gt=v.useCallback(async(H,we={})=>{if(!Ge)throw new Error("No API token available");const ce=new Headers(we.headers||{});ce.set("Authorization",`Bearer ${Ge}`);const de=await fetch(H,{...we,signal:we.signal,headers:ce});if(de.status===401)throw et("Authentication failed. Your token may have been regenerated."),On(),new Error("Unauthorized");return de},[Ge,On]),kl=v.useCallback(H=>{const we=k[H]||[],ce=E[H]||{};return we.map(de=>({message:de,parts:(ce[de.id]||[]).sort((Be,St)=>Be.createdAt-St.createdAt)}))},[k,E]);v.useEffect(()=>{if(!Ge||!De)return;const H=wP(Ge,De);if(!H)return;const we=new WebSocket(H);return we.onopen=()=>{M(!0),et(null),xr(0),ln(!1)},we.onclose=ce=>{M(!1),(ce.code===1008||ce.code===401)&&(et("Authentication failed. Please check your token."),On())},we.onerror=ce=>{console.error("WebSocket error:",ce)},we.onmessage=ce=>{var Be;const de=JSON.parse(ce.data);(Be=yn.current)==null||Be.call(yn,de)},j(we),()=>we.close()},[Ge,De,On,Pi]),v.useEffect(()=>{if(Ge&&De&&!z&&!an){const H=setTimeout(()=>{z||ln(!0)},Oe);return()=>clearTimeout(H)}},[Ge,De,z,an]),v.useEffect(()=>{if(an&&!z&&Ge&&De){const H=Math.min(tt*Math.pow(2,on),He);let we=Math.floor(H/1e3);vt(we);const ce=setInterval(()=>{we-=1,vt(Math.max(0,we))},1e3),de=setTimeout(()=>{xr(Be=>Be+1),se(Be=>Be+1)},H);return()=>{clearInterval(ce),clearTimeout(de)}}},[an,z,Ge,De,on]),v.useEffect(()=>{var ce;if(!Ge||!De)return;(ce=zt.current)==null||ce.abort(),zt.current=new AbortController;const H=zt.current.signal,we=Nm(De);if(we)return yt(!0),Promise.all([Gt(`${we}/sessions`,{signal:H}).then(de=>de.json()),Gt(`${we}/preconfigs`,{signal:H}).then(de=>de.json()),Gt(`${we}/prompts`,{signal:H}).then(de=>de.json()),Gt(`${we}/models`,{signal:H}).then(de=>de.json()),Gt(`${we}/workspaces`,{signal:H}).then(de=>de.json())]).then(([de,Be,St,en,Xn])=>{f(de.sessions||[]),m(Be.preconfigs||[]),g(St.prompts||[]),ne(en.models||[]),I(en.defaultModel||"gpt-4o");const Dn=Xn.workspaces||[];if(J(Dn),sn.current){const Cl=Dn.find(Kt=>Kt.id===sn.current);Cl&&R(Cl),sn.current=null}else{const Cl=localStorage.getItem("activeWorkspaceId"),Kt=Dn.find(Qi=>Qi.id===Cl);R(Kt||Dn[0])}s(),yt(!1)}).catch(de=>{var Be;if(de.name==="AbortError"){console.log("Fetch aborted due to server switch");return}console.error("Failed to load server data:",de),yt(!1),(Be=de.message)!=null&&Be.includes("Unauthorized")||et("Failed to connect to server")}),()=>{var de;(de=zt.current)==null||de.abort()}},[Ge,De,Gt,s]),v.useEffect(()=>{Z&&localStorage.setItem("activeWorkspaceId",Z.id)},[Z]);const Xr=async(H,we,ce)=>{const de=Nm(De);if(!de)return;const St=await(await Gt(`${de}/workspaces`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:H,path:we,isVirtual:ce})})).json();return J(en=>[...en,St.workspace]),St.workspace},Nd=H=>{R(H),w(null)},Fi=H=>{sn.current=H},Ui=async H=>{const we=Nm(De);we&&(await Gt(`${we}/workspaces/${H}`,{method:"DELETE"}),J(ce=>ce.filter(de=>de.id!==H)),(Z==null?void 0:Z.id)===H&&R(X[0]||null))},Ua=async()=>{const H=`Workspace ${X.length+1}`,we=`~/.jean2/workspaces/${crypto.randomUUID()}`;await Xr(H,we,!0)},jd=async H=>{const we=H.split("/").pop()||H.split("\\").pop()||"Workspace";await Xr(we,H,!1)},Hi=v.useCallback(H=>{var we;switch(H.type){case"session.created":f(ce=>[H.session,...ce]),Jt.current&&(w(H.session),S(ce=>({...ce,[H.session.id]:[]})),A(ce=>({...ce,[H.session.id]:{}})),B({promptTokens:0,completionTokens:0,totalTokens:0}),q(ee),Jt.current=!1);break;case"session.resumed":w(H.session),H.isRunning&&U(H.session.id),H.messages&&(S(ce=>({...ce,[H.session.id]:H.messages.map(de=>de.message)})),A(ce=>{const de={...ce};de[H.session.id]={};for(const Be of H.messages)de[H.session.id][Be.message.id]=Be.parts;return de})),B((we=H.usage)!=null?we:{promptTokens:0,completionTokens:0,totalTokens:0}),q(H.session.selectedModel||ee);break;case"message.created":S(ce=>({...ce,[H.message.sessionId]:[...ce[H.message.sessionId]||[],H.message]})),A(ce=>({...ce,[H.message.sessionId]:{...ce[H.message.sessionId],[H.message.id]:[]}})),"status"in H.message&&H.message.status==="streaming"&&U(H.message.sessionId);break;case"message.updated":S(ce=>({...ce,[H.message.sessionId]:(ce[H.message.sessionId]||[]).map(de=>de.id===H.message.id?H.message:de)})),"status"in H.message&&H.message.status!=="streaming"&&U(ce=>ce===H.message.sessionId?null:ce);break;case"part.created":A(ce=>{const de=ce[H.sessionId]||{},Be=de[H.part.messageId]||[];return{...ce,[H.sessionId]:{...de,[H.part.messageId]:[...Be,H.part]}}});break;case"part.updated":A(ce=>{const de=ce[H.sessionId]||{},Be=de[H.part.messageId]||[];return{...ce,[H.sessionId]:{...de,[H.part.messageId]:Be.map(St=>St.id===H.part.id?H.part:St)}}});break;case"part.append":U(H.sessionId),A(ce=>{const de=ce[H.sessionId]||{};for(const Be of Object.keys(de)){const St=de[Be],en=St.findIndex(Xn=>Xn.id===H.partId);if(en!==-1){const Xn=St[en];if(Xn.type==="text"||Xn.type==="reasoning"){const Dn=[...St];return Dn[en]={...Xn,text:Xn.text+H.delta},{...ce,[H.sessionId]:{...de,[Be]:Dn}}}}}return ce});break;case"chat.usage":if(H.sessionId!==(b==null?void 0:b.id))return;B({promptTokens:H.usage.promptTokens,completionTokens:H.usage.completionTokens,totalTokens:H.usage.totalTokens}),q(H.model);break;case"error":console.error("Server error:",H.code,H.message);break;case"session.closed":f(ce=>ce.map(de=>de.id===H.sessionId?{...de,status:"closed"}:de)),S(ce=>{const de={...ce};return delete de[H.sessionId],de}),A(ce=>{const de={...ce};return delete de[H.sessionId],de}),(b==null?void 0:b.id)===H.sessionId&&w(null);break;case"session.reopened":f(ce=>ce.map(de=>de.id===H.session.id?H.session:de)),(b==null?void 0:b.id)===H.session.id&&w(H.session);break;case"session.deleted":f(ce=>ce.filter(de=>de.id!==H.sessionId)),S(ce=>{const de={...ce};return delete de[H.sessionId],de}),A(ce=>{const de={...ce};return delete de[H.sessionId],de}),(b==null?void 0:b.id)===H.sessionId&&w(null);break;case"session.updated":f(ce=>ce.map(de=>de.id===H.session.id?H.session:de)),(b==null?void 0:b.id)===H.session.id&&w(H.session);break;case"session.renamed":f(ce=>ce.map(de=>de.id===H.session.id?H.session:de)),(b==null?void 0:b.id)===H.session.id&&w(H.session);break;case"permission.list":be(H.permissions);break;case"permission.revoked":be(ce=>ce.map(de=>de.id===H.permissionId?{...de,revokedAt:new Date().toISOString()}:de));break;case"permission.all_revoked":be(ce=>{const de=new Date().toISOString();return ce.map(Be=>({...Be,revokedAt:de}))});break;case"permission.request":{const ce={toolCallId:H.toolCallId,toolName:H.toolName,args:H.args,permissionType:H.permissionType,permissionKey:H.permissionKey,message:H.message,details:H.details,dangerous:H.dangerous,childSessionId:H.childSessionId,subagentName:H.subagentName};Te(de=>[...de,ce]);break}case"permission.granted":Te(ce=>ce.filter(de=>de.toolCallId!==H.toolCallId));break;case"session.interrupted":F===H.sessionId&&U(null),H.result.cascadedTo.length>0&&console.log(`Session ${H.sessionId} interrupted. Cascaded to:`,H.result.cascadedTo);break;case"queue.list":Le(ce=>({...ce,[H.sessionId]:H.messages}));break;case"queue.added":Le(ce=>({...ce,[H.sessionId]:[...ce[H.sessionId]||[],H.message]}));break;case"queue.removed":Le(ce=>({...ce,[H.sessionId]:(ce[H.sessionId]||[]).filter(de=>de.id!==H.queueId)}));break;case"queue.sending":Le(ce=>({...ce,[H.sessionId]:(ce[H.sessionId]||[]).filter(de=>de.id!==H.queueId)}));break;case"session.reverted":console.log(`Session reverted to message ${H.revertedTo.messageId}, removed ${H.removed.messageIds.length} messages`);break;case"compaction.complete":break;case"session.forked":{const{forkedSession:ce,messages:de}=H;f(Be=>[ce,...Be]),S(Be=>({...Be,[ce.id]:de.map(St=>St.message)})),A(Be=>{const St={...Be};St[ce.id]={};for(const en of de)St[ce.id][en.message.id]=en.parts;return St}),w(ce),B({promptTokens:0,completionTokens:0,totalTokens:0});break}case"session.state":S(ce=>({...ce,[H.sessionId]:H.messages.map(de=>de.message)})),A(ce=>{const de={...ce};de[H.sessionId]={};for(const Be of H.messages)de[H.sessionId][Be.message.id]=Be.parts;return de}),F===H.sessionId&&U(null);break}},[b,ee,F]);v.useEffect(()=>{yn.current=Hi},[Hi]),v.useEffect(()=>{const H=async we=>{const ce=we.target;if(!(ce.tagName==="INPUT"||ce.tagName==="TEXTAREA"||ce.isContentEditable)&&(we.metaKey||we.ctrlKey)&&we.key==="n"){we.preventDefault();try{await $A("create_new_window")}catch(Be){console.error("Failed to create new window:",Be)}}};return window.addEventListener("keydown",H),()=>window.removeEventListener("keydown",H)},[]);const $e=v.useCallback((H,we)=>{N&&N.readyState===WebSocket.OPEN&&N.send(JSON.stringify({type:H,...we}))},[N]),Ls=v.useCallback((H,we)=>{Jt.current=!0,$e("session.create",{preconfigId:H,title:we,workspaceId:Z==null?void 0:Z.id})},[$e,Z]),Kr=v.useCallback(H=>{Te([]),U(null),$e("session.resume",{sessionId:H})},[$e]),$i=v.useCallback(H=>{$e("session.close",{sessionId:H})},[$e]),Is=v.useCallback((H,we)=>{$e("session.revert",{sessionId:H,messageId:we})},[$e]),Bs=v.useCallback((H,we)=>{$e("session.fork",{sessionId:H,messageId:we})},[$e]),ar=v.useCallback((H,we)=>{$e("session.compact",{sessionId:H,messageIds:we})},[$e]),_t=v.useCallback(H=>{$e("session.reopen",{sessionId:H})},[$e]),Yt=v.useCallback(H=>{$e("session.delete",{sessionId:H})},[$e]),Qr=v.useCallback(H=>{b&&$e("session.update",{sessionId:b.id,preconfigId:H})},[b,$e]),Vi=v.useCallback((H,we)=>{b&&$e("session.update_model",{sessionId:b.id,modelId:H,providerId:we})},[b,$e]),Td=v.useCallback((H,we)=>{$e("session.rename",{sessionId:H,title:we})},[$e]),_d=v.useCallback(()=>{b!=null&&b.parentId&&Kr(b.parentId)},[b,Kr]),qi=v.useCallback((H,we)=>{$e("queue.add",{sessionId:H,content:we})},[$e]),Ha=v.useCallback(H=>{$e("queue.remove",{queueId:H})},[$e]),Gi=v.useCallback(H=>{!b||xe||(F===b.id?qi(b.id,H):$e("chat.message",{sessionId:b.id,content:H}))},[b,F,xe,$e,qi]),Zr=v.useCallback((H,we,ce)=>{Te(de=>de.filter(Be=>Be.toolCallId!==H)),$e("permission.response",{toolCallId:H,allowed:we,alwaysAllow:ce})},[$e]),Wr=v.useCallback(()=>{b&&$e("session.interrupt",{sessionId:b.id})},[b,$e]),$a=v.useCallback(()=>{Z&&$e("permission.list",{workspaceId:Z.id})},[Z,$e]),Jr=u.filter(H=>H.workspaceId===(Z==null?void 0:Z.id)),wt=b?kl(b.id):[],Yi=p.filter(H=>H.mode!=="subagent"),Ps=!(b!=null&&b.parentId),Xt=!!n,ea=()=>e.length===0?d.jsx(p1,{onServerAdded:zs,error:ft||void 0}):Xt?o?d.jsx("div",{className:"flex flex-col w-full h-full items-center justify-center bg-background gap-4",children:d.jsx(f1,{message:`Connecting to ${(n==null?void 0:n.name)||"server"}...`})}):!z&&u.length===0?an?d.jsx("div",{className:"flex w-full h-full items-center justify-center bg-background",children:d.jsx(bP,{serverUrl:De,authError:ft,retryCount:on,nextRetryIn:Bi,onRetry:Sl,onLogout:On})}):d.jsxs("div",{className:"flex flex-col w-full h-full items-center justify-center bg-background gap-4",children:[d.jsx(f1,{}),d.jsx(Ne,{variant:"ghost",size:"sm",onClick:On,className:"text-muted-foreground",children:"Change Server"})]}):d.jsx(d.Fragment,{children:b?d.jsx(uP,{session:b,messagesWithParts:wt,queuedMessages:ze[b.id]||[],preconfigs:Ps?Yi:p,prompts:y,models:me,defaultModel:ee,onSendMessage:Gi,onRemoveFromQueue:Ha,onChangePreconfig:Qr,onChangeModel:Vi,pendingPermissions:he,onPermissionResponse:Zr,onRename:Td,usage:Y,modelName:G,onNavigateToSubagent:Kr,onNavigateBack:_d,isStreaming:F===b.id,onInterrupt:Wr,onRevert:Is,onFork:Bs,onCompact:(()=>{const H=wt.filter(we=>we.message.role!=="system"&&!we.parts.some(ce=>ce.type==="compaction"));return H.length>=4?()=>{const we=H.slice(0,H.length-2).map(ce=>ce.message.id);we.length>0&&ar(b.id,we)}:void 0})(),isCompacting:xe,serverUrl:De!=null?De:void 0,apiToken:Ge!=null?Ge:void 0}):d.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-center text-muted-foreground px-6",children:[d.jsx("h2",{className:"mb-2",children:"Select or create a session"}),d.jsx("p",{children:"Choose a session from the sidebar or create a new one to start chatting."})]})}):d.jsx(p1,{onServerAdded:zs,error:ft||void 0});return d.jsxs(Lz,{defaultOpen:!0,children:[Xt&&d.jsx(Xz,{sessions:Jr,currentSession:b,currentSessionId:(Us=b==null?void 0:b.id)!=null?Us:null,streamingSessionId:F,connected:z,workspaces:X,activeWorkspace:Z,onCreateSession:()=>{var H;return Ls((H=Yi[0])==null?void 0:H.id)},onResumeSession:Kr,onCloseSession:$i,onReopenSession:_t,onDeleteSession:Yt,onSelectWorkspace:Nd,onCreateVirtualWorkspace:Ua,onCreatePhysicalWorkspace:jd,onDeleteWorkspace:Ui,onOpenSettings:()=>L(!0),onOpenMCP:()=>le(!0),onOpenAddServer:()=>Vt(!0),onServerSwitch:Yr}),d.jsxs("main",{className:"flex-1 flex flex-col overflow-hidden",style:{paddingTop:"env(safe-area-inset-top, 0)",paddingBottom:"env(safe-area-inset-bottom, 0)"},children:[d.jsxs("header",{className:"md:hidden flex items-center justify-between p-3 border-b border-border bg-background sticky top-0 z-10",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[Xt&&d.jsx(o0,{}),d.jsx("span",{className:"font-semibold",children:"Jean2"})]}),d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx(m1,{onServerSwitch:Yr,onSelectWorkspace:Fi}),Xt&&Z&&d.jsx(Ne,{variant:"ghost",size:"icon-sm",onClick:()=>te(!T),title:T?"Hide Files":"Show Files",children:d.jsx(Tm,{className:"w-4 h-4"})})]})]}),d.jsxs("header",{className:"hidden md:flex items-center justify-between p-3 border-b border-border",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[Xt&&d.jsx(o0,{}),d.jsx("span",{className:"font-semibold",children:"Jean2"})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[Xt&&d.jsx(m1,{onServerSwitch:Yr,onSelectWorkspace:Fi}),Xt&&Z&&d.jsx(Ne,{variant:"ghost",size:"icon-sm",onClick:()=>te(!T),title:T?"Hide Files":"Show Files",children:d.jsx(Tm,{className:"w-4 h-4"})})]})]}),ea()]}),Xt&&d.jsxs(d.Fragment,{children:[d.jsx(Zz,{workspaceId:Z==null?void 0:Z.id,serverUrl:De!=null?De:void 0,apiToken:Ge!=null?Ge:void 0,isOpen:T,onClose:()=>te(!1)}),d.jsx(gP,{open:D,onOpenChange:L,permissions:ie,onRefreshPermissions:$a,onRevokePermission:H=>{$e("permission.revoke",{permissionId:H})},onRevokeAllPermissions:()=>{$e("permission.revoke_all",{workspaceId:Z==null?void 0:Z.id})},apiToken:Ge,onLogout:On}),d.jsx(xP,{open:ae,onOpenChange:le,workspaceId:Z==null?void 0:Z.id,workspacePath:Z==null?void 0:Z.path,serverUrl:De!=null?De:void 0,apiToken:Ge!=null?Ge:void 0})]}),d.jsx(vP,{open:Dt,onOpenChange:H=>{Vt(H),H||Gr(null)},editServer:Mn})]})}function kP(){return d.jsx(Oj,{children:d.jsx(SP,{})})}PA.createRoot(document.getElementById("root")).render(d.jsx(v.StrictMode,{children:d.jsx(UA,{defaultTheme:"dark",storageKey:"jean2-theme",children:d.jsx(kP,{})})}));
|