codesesh 1.0.6 → 1.0.8
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 +1 -1
- package/dist/{chunk-COZSWVCH.js → chunk-AGUAXTKC.js} +2 -2
- package/dist/{chunk-XQDYKKRC.js → chunk-DHQPM5FF.js} +98 -14
- package/dist/chunk-DHQPM5FF.js.map +1 -0
- package/dist/{chunk-YZ6XCSVQ.js → chunk-KVTLNX7V.js} +3 -3
- package/dist/chunk-KVTLNX7V.js.map +1 -0
- package/dist/{chunk-A3MT6L6Z.js → chunk-L4G3LE7I.js} +25 -26
- package/dist/chunk-L4G3LE7I.js.map +1 -0
- package/dist/{chunk-L3DDWTYV.js → chunk-RBCCNCDO.js} +12 -10
- package/dist/chunk-RBCCNCDO.js.map +1 -0
- package/dist/{chunk-4QFNZCBR.js → chunk-V3HKVTIO.js} +3 -2
- package/dist/chunk-V3HKVTIO.js.map +1 -0
- package/dist/{chunk-4ND6AT6W.js → chunk-YLXHGL4S.js} +6 -6
- package/dist/chunk-YLXHGL4S.js.map +1 -0
- package/dist/{discovery-ADSQARBV.js → discovery-KEZQU6RL.js} +7 -5
- package/dist/index.js +42 -16
- package/dist/index.js.map +1 -1
- package/dist/project-identity-worker.js +4 -4
- package/dist/scan-refresh-worker.js +6 -6
- package/dist/search-index-worker.js +6 -6
- package/dist/session-detail-worker.js +6 -6
- package/dist/smart-tag-worker.js +3 -3
- package/dist/web/assets/CustomTimeWindowDialog-z5xtqkBF.js +1 -0
- package/dist/web/assets/DetailLanding-CpV0jLmT.js +1 -0
- package/dist/web/assets/DialogTitle-B8zPwJB8.js +1 -0
- package/dist/web/assets/InteractiveReceipt-Bsj37HtN.js +1 -0
- package/dist/web/assets/OverviewScreen-B9qZqEQA.js +1 -0
- package/dist/web/assets/PrismHighlighter-DWS6Nx_X.js +6 -0
- package/dist/web/assets/Projects-oY3KCgS4.js +1 -0
- package/dist/web/assets/SearchResultsPanel-BAManMmt.js +1 -0
- package/dist/web/assets/SessionDetail-KSgkmLV7.js +53 -0
- package/dist/web/assets/SmartTagChips-BMP9pPRw.js +1 -0
- package/dist/web/assets/api-CtZGdxlN.js +1 -0
- package/dist/web/assets/index-BSLHxV0w.css +1 -0
- package/dist/web/assets/index-DNw59Qsn.js +1423 -0
- package/dist/web/assets/jsx-runtime-D3jfb0Ew.js +1 -0
- package/dist/web/assets/panel-DcOuALYX.js +1 -0
- package/dist/web/assets/session-indexes-DKukxoe1.js +4 -0
- package/dist/web/assets/translate-CLoII3EO.js +2 -0
- package/dist/web/assets/utils-Dk_44zMo.js +1 -0
- package/dist/web/index.html +9 -8
- package/package.json +2 -2
- package/dist/chunk-4ND6AT6W.js.map +0 -1
- package/dist/chunk-4QFNZCBR.js.map +0 -1
- package/dist/chunk-A3MT6L6Z.js.map +0 -1
- package/dist/chunk-L3DDWTYV.js.map +0 -1
- package/dist/chunk-XQDYKKRC.js.map +0 -1
- package/dist/chunk-YZ6XCSVQ.js.map +0 -1
- package/dist/web/assets/CustomTimeWindowDialog-D2bx7uDv.js +0 -1
- package/dist/web/assets/InteractiveReceipt-BFpIdno8.js +0 -1
- package/dist/web/assets/OverviewScreen-D_KXfiJi.js +0 -1
- package/dist/web/assets/PrismHighlighter-BgVkYu_S.js +0 -6
- package/dist/web/assets/Projects-CN44UpuR.js +0 -1
- package/dist/web/assets/SearchResultsPanel-CWD01v-a.js +0 -1
- package/dist/web/assets/SessionDetail-D8taQ6Tl.js +0 -53
- package/dist/web/assets/api-B9lJtVbO.js +0 -1
- package/dist/web/assets/index-XpolWMY4.js +0 -1423
- package/dist/web/assets/index-xbEEMszv.css +0 -1
- package/dist/web/assets/jsx-runtime-B-hcVAMW.js +0 -1
- package/dist/web/assets/session-indexes-fib48ZKn.js +0 -4
- package/dist/web/assets/translate-Dmym1ZDl.js +0 -2
- package/dist/web/assets/utils-Bk66u8b3.js +0 -1
- /package/dist/{chunk-COZSWVCH.js.map → chunk-AGUAXTKC.js.map} +0 -0
- /package/dist/{discovery-ADSQARBV.js.map → discovery-KEZQU6RL.js.map} +0 -0
|
@@ -0,0 +1,1423 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DetailLanding-CpV0jLmT.js","assets/jsx-runtime-D3jfb0Ew.js","assets/translate-CLoII3EO.js","assets/SmartTagChips-BMP9pPRw.js","assets/api-CtZGdxlN.js","assets/session-indexes-DKukxoe1.js","assets/panel-DcOuALYX.js","assets/utils-Dk_44zMo.js","assets/OverviewScreen-B9qZqEQA.js","assets/CustomTimeWindowDialog-z5xtqkBF.js","assets/DialogTitle-B8zPwJB8.js","assets/Projects-oY3KCgS4.js","assets/SessionDetail-KSgkmLV7.js","assets/SearchResultsPanel-BAManMmt.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as e,n as t,r as n,t as r}from"./jsx-runtime-D3jfb0Ew.js";import{$ as i,$t as a,A as o,At as s,B as c,Bt as l,C as u,Cn as d,Ct as f,D as p,Dt as m,E as h,Et as g,F as _,Ft as v,G as y,Gt as b,H as x,Ht as S,I as C,It as w,J as T,Jt as E,K as D,Kt as O,L as k,M as A,N as j,Nt as M,O as N,Ot as P,P as ee,Pt as te,Q as F,Qt as ne,R as I,Rt as re,S as ie,Sn as ae,St as L,T as R,Tt as oe,U as z,Ut as se,V as ce,Vt as le,W as B,Wt as V,X as ue,Xt as de,Y as fe,Yt as pe,Z as me,Zt as he,_ as ge,_n as _e,_t as ve,a as ye,an as H,at as be,b as xe,bn as Se,bt as Ce,c as we,cn as Te,ct as Ee,d as De,dn as Oe,dt as ke,en as Ae,et as je,f as Me,fn as Ne,ft as Pe,g as Fe,gn as Ie,gt as Le,h as Re,hn as ze,ht as Be,i as Ve,in as He,it as Ue,j as We,jt as Ge,k as Ke,kt as qe,l as Je,ln as Ye,lt as Xe,m as Ze,mn as Qe,mt as $e,n as et,nn as tt,nt as U,o as nt,on as rt,ot as it,p as at,pn as ot,pt as st,q as ct,qt as lt,r as ut,rn as dt,rt as ft,s as pt,sn as mt,st as ht,t as gt,tn as _t,tt as vt,u as yt,un as bt,ut as xt,v as St,vn as Ct,vt as wt,w as Tt,wt as Et,x as Dt,xn as Ot,xt as kt,y as At,yn as jt,yt as Mt,z as Nt,zt as Pt}from"./DialogTitle-B8zPwJB8.js";import{A as Ft,C as It,D as Lt,E as Rt,M as zt,N as Bt,O as Vt,P as Ht,S as Ut,T as Wt,_ as Gt,a as Kt,b as qt,c as Jt,d as Yt,f as Xt,g as Zt,h as Qt,i as $t,j as en,k as tn,l as nn,m as rn,n as an,o as on,p as sn,r as cn,s as ln,t as un,u as dn,v as fn,w as pn,x as mn,y as hn}from"./CustomTimeWindowDialog-z5xtqkBF.js";import{A as gn,C as _n,D as vn,E as yn,O as bn,S as xn,T as Sn,_ as Cn,a as wn,b as Tn,c as En,f as Dn,g as On,h as kn,i as An,j as jn,k as Mn,l as Nn,n as Pn,o as Fn,r as In,t as W,u as Ln,w as Rn,x as zn,y as Bn}from"./translate-CLoII3EO.js";import{n as Vn,t as Hn}from"./SmartTagChips-BMP9pPRw.js";import{_ as Un,a as Wn,c as Gn,d as Kn,f as qn,g as Jn,h as Yn,i as Xn,l as Zn,m as Qn,n as $n,p as er,r as tr,s as nr,t as rr,u as ir,v as ar}from"./api-CtZGdxlN.js";import{a as or,c as sr,d as cr,f as lr,g as ur,h as dr,i as fr,l as pr,m as mr,n as hr,o as gr,p as _r,r as vr,s as yr,t as br,u as xr}from"./session-indexes-DKukxoe1.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Sr=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Cr=n(((e,t)=>{t.exports=Sr()})),wr=n((e=>{var n=Cr(),r=t(),i=d();function a(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function c(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(s(e)!==e)throw Error(a(188))}function f(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(a(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return u(i),e;if(o===r)return u(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var c=!1,l=i.child;l;){if(l===n){c=!0,n=i,r=o;break}if(l===r){c=!0,r=i,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=i;break}if(l===r){c=!0,r=o,n=i;break}l=l.sibling}if(!c)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}function m(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&m(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function h(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function g(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function _(e){var t=[null,null],n=h(e);return n===null||v(t,e,n.child,{foundSelf:!1}),t}function v(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&v(e,t,n.child,r))return!0;n=n.sibling}return!1}function y(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(a(559))}}var b=null,x=null;function S(e,t,n){return e===n||e===t&&(b=e,!0)}function C(e,t,n){return e===n?(x=e,!1):e===t&&(x!==null&&(b=e),!0)}function w(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function T(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var E=Object.assign,D=Symbol.for(`react.element`),O=Symbol.for(`react.transitional.element`),k=Symbol.for(`react.portal`),A=Symbol.for(`react.fragment`),j=Symbol.for(`react.strict_mode`),M=Symbol.for(`react.profiler`),N=Symbol.for(`react.consumer`),P=Symbol.for(`react.context`),ee=Symbol.for(`react.forward_ref`),te=Symbol.for(`react.suspense`),F=Symbol.for(`react.suspense_list`),ne=Symbol.for(`react.memo`),I=Symbol.for(`react.lazy`),re=Symbol.for(`react.activity`),ie=Symbol.for(`react.legacy_hidden`),ae=Symbol.for(`react.memo_cache_sentinel`),L=Symbol.for(`react.view_transition`),R=Symbol.for(`react.recoverable`),oe=Symbol.iterator;function z(e){return typeof e!=`object`||!e?null:(e=oe&&e[oe]||e[`@@iterator`],typeof e==`function`?e:null)}var se=Symbol.for(`react.client.reference`);function ce(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case A:return`Fragment`;case M:return`Profiler`;case j:return`StrictMode`;case te:return`Suspense`;case F:return`SuspenseList`;case re:return`Activity`;case L:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case k:return`Portal`;case P:return e.displayName||`Context`;case N:return(e._context.displayName||`Context`)+`.Consumer`;case ee:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ne:return t=e.displayName||null,t===null?ce(e.type)||`Memo`:t;case I:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}var le=Array.isArray,B=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},de=[],fe=-1;function pe(e){return{current:e}}function me(e){0>fe||(e.current=de[fe],de[fe]=null,fe--)}function he(e,t){fe++,de[fe]=e.current,e.current=t}var ge=pe(null),_e=pe(null),ve=pe(null),ye=pe(null);function H(e,t){switch(he(ve,t),he(_e,e),he(ge,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?hp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=hp(t),e=gp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}me(ge),he(ge,e)}function be(){me(ge),me(_e),me(ve)}function xe(e){var t=e.memoizedState;t!==null&&(uh._currentValue=t.memoizedState,he(ye,e)),t=ge.current;var n=gp(t,e.type);t!==n&&(he(_e,e),he(ge,n))}function Se(e){_e.current===e&&(me(ge),me(_e)),ye.current===e&&(me(ye),uh._currentValue=ue)}var Ce,we;function Te(e){if(Ce===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ce=t&&t[1]||``,we=-1<e.stack.indexOf(`
|
|
3
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
|
+
`+Ce+e+we}var Ee=!1;function De(e,t){if(!e||Ee)return``;Ee=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
|
+
`),l=s.split(`
|
|
6
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
7
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ee=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Te(n):``}function Oe(e,t){switch(e.tag){case 26:case 27:case 5:return Te(e.type);case 16:return Te(`Lazy`);case 13:return e.child!==t&&t!==null?Te(`Suspense Fallback`):Te(`Suspense`);case 19:return Te(`SuspenseList`);case 0:case 15:return De(e.type,!1);case 11:return De(e.type.render,!1);case 1:return De(e.type,!0);case 31:return Te(`Activity`);case 30:return Te(`ViewTransition`);default:return``}}function ke(e){try{var t=``,n=null;do t+=Oe(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
8
|
+
Error generating stack: `+e.message+`
|
|
9
|
+
`+e.stack}}var Ae=Object.prototype.hasOwnProperty,je=n.unstable_scheduleCallback,Me=n.unstable_cancelCallback,Ne=n.unstable_shouldYield,Pe=n.unstable_requestPaint,Fe=n.unstable_now,Ie=n.unstable_getCurrentPriorityLevel,Le=n.unstable_ImmediatePriority,Re=n.unstable_UserBlockingPriority,ze=n.unstable_NormalPriority,Be=n.unstable_LowPriority,Ve=n.unstable_IdlePriority,He=n.log,Ue=n.unstable_setDisableYieldValue,We=null,Ge=null;function Ke(e){if(typeof He==`function`&&Ue(e),Ge&&typeof Ge.setStrictMode==`function`)try{Ge.setStrictMode(We,e)}catch{}}var qe=Math.clz32?Math.clz32:Xe,Je=Math.log,Ye=Math.LN2;function Xe(e){return e>>>=0,e===0?32:31-(Je(e)/Ye|0)|0}var Ze=256,Qe=262144,$e=4194304;function et(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function tt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=et(n))):i=et(o):i=et(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=et(n))):i=et(o)):i=et(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function U(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function nt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-qe(n),i=1<<r;t|=e[r],n&=~i}return t}function rt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 it(){var e=$e;return $e<<=1,!($e&62914560)&&($e=4194304),e}function at(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ot(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function st(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-qe(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&ct(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function ct(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-qe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function lt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-qe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ut(e,t){var n=t&-t;return n=n&42?1:dt(n),(n&(e.suspendedLanes|t))===0?n:0}function dt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ft(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function pt(){var e=V.p;return e===0?(e=window.event,e===void 0?32:Eh(e.type)):e}function mt(e,t){var n=V.p;try{return V.p=e,t()}finally{V.p=n}}var ht=Math.random().toString(36).slice(2),gt=`__reactFiber$`+ht,_t=`__reactProps$`+ht,vt=`__reactContainer$`+ht,yt=`__reactEvents$`+ht,bt=`__reactListeners$`+ht,xt=`__reactHandles$`+ht,St=`__reactResources$`+ht,Ct=`__reactMarker$`+ht,wt=`__reactLoad$`+ht;function Tt(e){delete e[gt],delete e[_t],delete e[bt],delete e[xt]}function Et(e){var t;if(t=e[gt])return t;for(var n=e.parentNode;n;){if(t=n[vt]||n[gt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=X(e);e!==null;){if(n=e[gt])return n;e=X(e)}return t}e=n,n=e.parentNode}return null}function Dt(e){if(e=e[gt]||e[vt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ot(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(a(33))}function kt(e){var t=e[St];return t||=e[St]={hoistableStyles:new Map,hoistableScripts:new Map},t}function At(e){e[Ct]=!0}function jt(e){e[wt]=void 0}var Mt=new Set,Nt={};function Pt(e,t){Ft(e,t),Ft(e+`Capture`,t)}function Ft(e,t){for(Nt[e]=t,e=0;e<t.length;e++)Mt.add(t[e])}var It=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]*$`),Lt={},Rt={};function zt(e){return Ae.call(Rt,e)?!0:Ae.call(Lt,e)?!1:It.test(e)?Rt[e]=!0:(Lt[e]=!0,!1)}var Bt=!1;function Vt(){var e=Bt;return Bt=!1,e}function Ht(e,t,n){if(zt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function Ut(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function Wt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function Gt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Kt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function qt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jt(e){if(!e._valueTracker){var t=Kt(e)?`checked`:`value`;e._valueTracker=qt(e,t,``+e[t])}}function Yt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Kt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var Xt=/[\n"\\]/g;function Zt(e){return e.replace(Xt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Qt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Gt(t)):e.value!==``+Gt(t)&&(e.value=``+Gt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):en(e,Gt(n)):o===`number`&&e.value==t?en(e,Gt(e.value)):en(e,Gt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Gt(s):e.removeAttribute(`name`)}function $t(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Jt(e);return}n=n==null?``:``+Gt(n),t=t==null?n:``+Gt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Jt(e)}function en(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function tn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Gt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function nn(e,t,n){if(t!=null&&(t=``+Gt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Gt(n)}function rn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(a(92));if(le(r)){if(1<r.length)throw Error(a(93));r=r[0]}n=r}n??=``,t=n}n=Gt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Jt(e)}function an(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var on=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 sn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||on.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function cn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(a(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,Bt=!0);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&(sn(e,i,r),Bt=!0)}else for(var o in t)t.hasOwnProperty(o)&&sn(e,o,t[o])}function ln(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var un=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`],[`maskType`,`mask-type`],[`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`]]),dn=/^[\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 fn(e){return dn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function pn(){}var mn=null;function hn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gn=null,_n=null;function vn(e){var t=Dt(e);if(t&&(e=t.stateNode)){var n=e[_t]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Qt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Zt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[_t]||null;if(!i)throw Error(a(90));Qt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Yt(r)}break a;case`textarea`:nn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&tn(e,!!n.multiple,t,!1)}}}var yn=!1;function bn(e,t,n){if(yn)return e(t,n);yn=!0;try{return e(t)}finally{if(yn=!1,(gn!==null||_n!==null)&&(Vd(),gn&&(t=gn,e=_n,_n=gn=null,vn(t),e)))for(t=0;t<e.length;t++)vn(e[t])}}function xn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[_t]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(a(231,t,typeof n));return n}var Sn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),Cn=!1;if(Sn)try{var wn={};Object.defineProperty(wn,"passive",{get:function(){Cn=!0}}),window.addEventListener(`test`,wn,wn),window.removeEventListener(`test`,wn,wn)}catch{Cn=!1}var Tn=null,En=null,Dn=null;function On(){if(Dn)return Dn;var e,t=En,n=t.length,r,i=`value`in Tn?Tn.value:Tn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Dn=i.slice(e,1<r?1-r:void 0)}function kn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function An(){return!0}function jn(){return!1}function Mn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?An:jn,this.isPropagationStopped=jn,this}return E(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=An)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=An)},persist:function(){},isPersistent:An}),t}var Nn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pn=Mn(Nn),Fn=E({},Nn,{view:0,detail:0}),In=Mn(Fn),W,Ln,Rn,zn=E({},Fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Rn&&(Rn&&e.type===`mousemove`?(W=e.screenX-Rn.screenX,Ln=e.screenY-Rn.screenY):Ln=W=0,Rn=e),W)},movementY:function(e){return`movementY`in e?e.movementY:Ln}}),Bn=Mn(zn),Vn=Mn(E({},zn,{dataTransfer:0})),Hn=Mn(E({},Fn,{relatedTarget:0})),Un=Mn(E({},Nn,{animationName:0,elapsedTime:0,pseudoElement:0})),Wn=Mn(E({},Nn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Gn=Mn(E({},Nn,{data:0})),Kn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},qn={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`},Jn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Yn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jn[e])?!!t[e]:!1}function Xn(){return Yn}var Zn=Mn(E({},Fn,{key:function(e){if(e.key){var t=Kn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=kn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?qn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xn,charCode:function(e){return e.type===`keypress`?kn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?kn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Qn=Mn(E({},zn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),$n=Mn(E({},Nn,{submitter:0})),er=Mn(E({},Fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xn})),tr=Mn(E({},Nn,{propertyName:0,elapsedTime:0,pseudoElement:0})),nr=Mn(E({},zn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),rr=Mn(E({},Nn,{newState:0,oldState:0,source:0})),ir=[9,13,27,32],ar=Sn&&`CompositionEvent`in window,or=null;Sn&&`documentMode`in document&&(or=document.documentMode);var sr=Sn&&`TextEvent`in window&&!or,cr=Sn&&(!ar||or&&8<or&&11>=or),lr=` `,ur=!1;function dr(e,t){switch(e){case`keyup`:return ir.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function fr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var pr=!1;function mr(e,t){switch(e){case`compositionend`:return fr(t);case`keypress`:return t.which===32?(ur=!0,lr):null;case`textInput`:return e=t.data,e===lr&&ur?null:e;default:return null}}function hr(e,t){if(pr)return e===`compositionend`||!ar&&dr(e,t)?(e=On(),Dn=En=Tn=null,pr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return cr&&t.locale!==`ko`?null:t.data;default:return null}}var gr={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 _r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!gr[e.type]:t===`textarea`}function vr(e,t,n,r){gn?_n?_n.push(r):_n=[r]:gn=r,t=Qf(t,`onChange`),0<t.length&&(n=new Pn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var yr=null,br=null;function xr(e){Wf(e,0)}function Sr(e){if(Yt(Ot(e)))return e}function wr(e,t){if(e===`change`)return t}var Tr=!1;if(Sn){var Er;if(Sn){var Dr=`oninput`in document;if(!Dr){var Or=document.createElement(`div`);Or.setAttribute(`oninput`,`return;`),Dr=typeof Or.oninput==`function`}Er=Dr}else Er=!1;Tr=Er&&(!document.documentMode||9<document.documentMode)}function kr(){yr&&(yr.detachEvent(`onpropertychange`,Ar),br=yr=null)}function Ar(e){if(e.propertyName===`value`&&Sr(br)){var t=[];vr(t,br,e,hn(e)),bn(xr,t)}}function jr(e,t,n){e===`focusin`?(kr(),yr=t,br=n,yr.attachEvent(`onpropertychange`,Ar)):e===`focusout`&&kr()}function Mr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Sr(br)}function G(e,t){if(e===`click`)return Sr(t)}function Nr(e,t){if(e===`input`||e===`change`)return Sr(t)}function Pr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Fr=typeof Object.is==`function`?Object.is:Pr;function Ir(e,t){if(Fr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ae.call(t,i)||!Fr(e[i],t[i]))return!1}return!0}function K(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rr(e,t){var n=Lr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Lr(n)}}function zr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Br(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=K(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=K(e.document)}return t}function Vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Hr=Sn&&`documentMode`in document&&11>=document.documentMode,Ur=null,Wr=null,Gr=null,Kr=!1;function qr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Kr||Ur==null||Ur!==K(r)||(r=Ur,`selectionStart`in r&&Vr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Gr&&Ir(Gr,r)||(Gr=r,r=Qf(Wr,`onSelect`),0<r.length&&(t=new Pn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Ur)))}function Jr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Yr={animationend:Jr(`Animation`,`AnimationEnd`),animationiteration:Jr(`Animation`,`AnimationIteration`),animationstart:Jr(`Animation`,`AnimationStart`),transitionrun:Jr(`Transition`,`TransitionRun`),transitionstart:Jr(`Transition`,`TransitionStart`),transitioncancel:Jr(`Transition`,`TransitionCancel`),transitionend:Jr(`Transition`,`TransitionEnd`)},Xr={},Zr={};Sn&&(Zr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Yr.animationend.animation,delete Yr.animationiteration.animation,delete Yr.animationstart.animation),`TransitionEvent`in window||delete Yr.transitionend.transition);function Qr(e){if(Xr[e])return Xr[e];if(!Yr[e])return e;var t=Yr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zr)return Xr[e]=t[n];return e}var $r=Qr(`animationend`),ei=Qr(`animationiteration`),ti=Qr(`animationstart`),ni=Qr(`transitionrun`),ri=Qr(`transitionstart`),ii=Qr(`transitioncancel`),ai=Qr(`transitionend`),oi=new Map,si=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(` `);si.push(`scrollEnd`);function ci(e,t){oi.set(e,t),Pt(t,[e])}var li=0;function ui(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=Sd.identifierPrefix;var n=li++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function di(e){if(e==null||typeof e==`string`)return e;var t=null,n=Ad;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function fi(e,t){return e=di(e),t=di(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var pi=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},mi=[],hi=0,gi=0;function _i(){for(var e=hi,t=gi=hi=0;t<e;){var n=mi[t];mi[t++]=null;var r=mi[t];mi[t++]=null;var i=mi[t];mi[t++]=null;var a=mi[t];if(mi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&xi(n,i,a)}}function vi(e,t,n,r){mi[hi++]=e,mi[hi++]=t,mi[hi++]=n,mi[hi++]=r,gi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function yi(e,t,n,r){return vi(e,t,n,r),Si(e)}function bi(e,t){return vi(e,null,null,t),Si(e)}function xi(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-qe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Si(e){if(50<jd)throw jd=0,Md=null,Error(a(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ci={};function wi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ti(e,t,n,r){return new wi(e,t,n,r)}function Ei(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Di(e,t){var n=e.alternate;return n===null?(n=Ti(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Oi(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ki(e,t,n,r,i,o){var s=0;if(r=e,typeof r==`function`)Ei(r)&&(s=1);else if(typeof r==`string`)s=Xm(e,n,ge.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case re:return e=Ti(31,n,t,i),e.elementType=re,e.lanes=o,e;case A:return Ai(n.children,i,o,t);case j:s=8,i|=24;break;case M:return e=Ti(12,n,t,i|2),e.elementType=M,e.lanes=o,e;case te:return e=Ti(13,n,t,i),e.elementType=te,e.lanes=o,e;case F:return e=Ti(19,n,t,i),e.elementType=F,e.lanes=o,e;case ie:case L:return e=i|32,e=Ti(30,n,t,e),e.elementType=L,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case P:s=10;break a;case N:s=9;break a;case ee:s=11;break a;case ne:s=14;break a;case I:s=16,r=null;break a}s=29,n=Error(a(130,e===null?`null`:typeof e,``)),r=null}return t=Ti(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Ai(e,t,n,r){return e=Ti(7,e,r,t),e.lanes=n,e}function ji(e,t,n){return e=Ti(6,e,null,t),e.lanes=n,e}function Mi(e){var t=Ti(18,null,null,0);return t.stateNode=e,t}function Ni(e,t,n){return t=Ti(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Pi=new WeakMap;function Fi(e,t){if(typeof e==`object`&&e){var n=Pi.get(e);return n===void 0?(t={value:e,source:t,stack:ke(t)},Pi.set(e,t),t):n}return{value:e,source:t,stack:ke(t)}}var Ii=[],Li=0,Ri=null,zi=0,Bi=[],Vi=0,Hi=null,Ui=1,Wi=``;function Gi(e,t){Ii[Li++]=zi,Ii[Li++]=Ri,Ri=e,zi=t}function Ki(e,t,n){Bi[Vi++]=Ui,Bi[Vi++]=Wi,Bi[Vi++]=Hi,Hi=e;var r=Ui;e=Wi;var i=32-qe(r)-1;r&=~(1<<i),n+=1;var a=32-qe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ui=1<<32-qe(t)+i|n<<i|r,Wi=a+e}else Ui=1<<a|n<<i|r,Wi=e}function qi(e){e.return!==null&&(Gi(e,1),Ki(e,1,0))}function Ji(e){for(;e===Ri;)Ri=Ii[--Li],Ii[Li]=null,zi=Ii[--Li],Ii[Li]=null;for(;e===Hi;)Hi=Bi[--Vi],Bi[Vi]=null,Wi=Bi[--Vi],Bi[Vi]=null,Ui=Bi[--Vi],Bi[Vi]=null}function Yi(e,t){Bi[Vi++]=Ui,Bi[Vi++]=Wi,Bi[Vi++]=Hi,Ui=t.id,Wi=t.overflow,Hi=e}var Xi=null,Zi=null,Qi=!1,$i=null,ea=!1,ta=Error(a(519));function na(e){throw ca(Fi(Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),ta}function ra(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[gt]=e,t[_t]=r,n){case`dialog`:Gf(`cancel`,t),Gf(`close`,t);break;case`iframe`:case`object`:case`embed`:Gf(`load`,t);break;case`video`:case`audio`:for(n=0;n<Hf.length;n++)Gf(Hf[n],t);break;case`source`:Gf(`error`,t);break;case`img`:case`image`:case`link`:Gf(`error`,t),Gf(`load`,t);break;case`details`:Gf(`toggle`,t);break;case`input`:Gf(`invalid`,t),$t(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Gf(`invalid`,t);break;case`textarea`:Gf(`invalid`,t),rn(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||ip(t.textContent,n)?(r.popover!=null&&(Gf(`beforetoggle`,t),Gf(`toggle`,t)),r.onScroll!=null&&Gf(`scroll`,t),r.onScrollEnd!=null&&Gf(`scrollend`,t),r.onClick!=null&&(t.onclick=pn),t=!0):t=!1,t||na(e,!0)}function ia(e){for(Xi=e.return;Xi;)switch(Xi.tag){case 5:case 31:case 13:ea=!1;return;case 27:case 3:ea=!0;return;default:Xi=Xi.return}}function aa(e){if(e!==Xi)return!1;if(!Qi)return ia(e),Qi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||vp(e.type,e.memoizedProps)),n=!n),n&&Zi&&na(e),ia(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));Zi=hm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));Zi=hm(e)}else t===27?(t=Zi,Dp(e.type)?(e=mm,mm=null,Zi=e):Zi=t):Zi=Xi?pm(e.stateNode.nextSibling):null;return!0}function oa(){Zi=Xi=null,Qi=!1}function sa(){var e=$i;return e!==null&&(md===null?md=e:md.push.apply(md,e),$i=null),e}function ca(e){$i===null?$i=[e]:$i.push(e)}var la=pe(null),ua=null,da=null;function fa(e,t,n){he(la,t._currentValue),t._currentValue=n}function pa(e){e._currentValue=la.current,me(la)}function ma(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ha(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var s=i.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ma(o.return,n,e),r||(s=null);break a}o=c.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(a(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ma(s,n,e),s=null}else i.tag===13&&i.memoizedState!==null&&i.memoizedState.dehydrated===null?(i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),ma(i.return,n,e),s=i.child,s=s===null?null:s.sibling):s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function ga(e,t,n,r){e=null;for(var i=t,o=!1;i!==null;){if(!o){if(i.flags&524288)o=!0;else if(i.flags&262144)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(a(387));if(s=s.memoizedProps,s!==null){var c=i.type;Fr(i.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(i===ye.current){if(s=i.alternate,s===null)throw Error(a(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[uh]:e.push(uh))}i=i.return}return e!==null&&ha(t,e,n,r),t.flags|=262144,e!==null}function _a(e){for(e=e.firstContext;e!==null;){if(!Fr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function va(e){ua=e,da=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ya(e){return xa(ua,e)}function ba(e,t){return ua===null&&va(e),xa(e,t)}function xa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},da===null){if(e===null)throw Error(a(308));da=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else da=da.next=t;return n}var Sa=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Ca=n.unstable_scheduleCallback,wa=n.unstable_NormalPriority,Ta={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ea(){return{controller:new Sa,data:new Map,refCount:0}}function Da(e){e.refCount--,e.refCount===0&&Ca(wa,function(){e.controller.abort()})}function Oa(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var ka=null;function Aa(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var ja=null,Ma=0,Na=0,Pa=null;function Fa(e,t){if(ja===null){var n=ja=[];Ma=0,Na=Lf(),Pa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ma++,t.then(Ia,Ia),t}function Ia(){if(--Ma===0&&(ka=null,ja!==null)){Pa!==null&&(Pa.status=`fulfilled`);var e=ja;ja=null,Na=0,Pa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function La(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Ra=B.S;B.S=function(e,t){if(_d=Fe(),typeof t==`object`&&t&&typeof t.then==`function`&&Fa(e,t),ka!==null)for(var n=Cf;n!==null;)Oa(n,ka),n=n.next;if(n=e.types,n!==null){for(var r=Cf;r!==null;)Oa(r,n),r=r.next;if(Na!==0){r=ka,r===null&&(r=ka=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ra!==null&&Ra(e,t)};var za=pe(null);function Ba(){var e=za.current;return e===null?Qu.pooledCache:e}function Va(e,t){t===null?he(za,za.current):he(za,t.pool)}function Ha(){var e=Ba();return e===null?null:{parent:Ta._currentValue,pool:e}}var Ua=Error(a(460)),Wa=Error(a(474)),Ga=Error(a(542)),Ka={then:function(){}};function qa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ja(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(pn,pn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Qa(e),e===void 0&&!(`reason`in t)?Error(a(600)):e;default:if(typeof t.status==`string`)t.then(pn,pn);else{if(e=Qu,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Qa(e),e}throw Xa=t,Ua}}function Ya(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Xa=e,Ua):e}}var Xa=null;function Za(){if(Xa===null)throw Error(a(459));var e=Xa;return Xa=null,e}function Qa(e){if(e===Ua||e===Ga)throw Error(a(483))}var $a=null,eo=0;function to(e){var t=eo;return eo+=1,$a===null&&($a=[]),Ja($a,e,t)}function no(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function ro(e,t){throw t.$$typeof===D?Error(a(525)):(e=Object.prototype.toString.call(t),Error(a(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function io(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=Di(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=ji(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===A?(e=d(e,t,n.props.children,r,n.key),no(e,n),e):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===I&&Ya(a)===t.type)?(t=i(t,n.props),no(t,n),t.return=e,t):(t=ki(n.type,n.key,n.props,null,e.mode,r),no(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Ni(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=Ai(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=ji(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case O:return n=ki(t.type,t.key,t.props,null,e.mode,n),no(n,t),n.return=e,n;case k:return t=Ni(t,e.mode,n),t.return=e,t;case I:return t=Ya(t),f(e,t,n)}if(le(t)||z(t))return t=Ai(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,to(t),n);if(t.$$typeof===P)return f(e,ba(e,t),n);ro(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case O:return n.key===i?l(e,t,n,r):null;case k:return n.key===i?u(e,t,n,r):null;case I:return n=Ya(n),p(e,t,n,r)}if(le(n)||z(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,to(n),r);if(n.$$typeof===P)return p(e,t,ba(e,n),r);ro(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case O:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case k:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case I:return r=Ya(r),m(e,t,n,r,i)}if(le(r)||z(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,to(r),i);if(r.$$typeof===P)return m(e,t,n,ba(t,r),i);ro(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Qi&&Gi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Qi&&Gi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Qi&&Gi(i,h),l}function g(i,s,c,l){if(c==null)throw Error(a(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),Qi&&Gi(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Qi&&Gi(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),Qi&&Gi(i,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===A&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case O:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===A){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),no(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===I&&Ya(l)===r.type){n(e,r.sibling),c=i(r,o.props),no(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===A?(c=Ai(o.props.children,e.mode,c,o.key),no(c,o),c.return=e,e=c):(c=ki(o.type,o.key,o.props,null,e.mode,c),no(c,o),c.return=e,e=c)}return s(e);case k:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Ni(o,e.mode,c),c.return=e,e=c}return s(e);case I:return o=Ya(o),_(e,r,o,c)}if(le(o))return h(e,r,o,c);if(z(o)){if(l=z(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,to(o),c);if(o.$$typeof===P)return _(e,r,ba(e,o),c);ro(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=ji(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{eo=0;var i=_(e,t,n,r);return $a=null,i}catch(t){if(t===Ua||t===Ga)throw t;var a=Ti(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ao=io(!0),oo=io(!1),so=!1;function co(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function uo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Zu&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Si(e),xi(e,null,n),t}return vi(e,r,t,n),Si(e)}function po(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lt(e,n)}}function mo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ho=!1;function go(){if(ho){var e=Pa;if(e!==null)throw e}}function _o(e,t,n,r){ho=!1;var i=e.updateQueue;so=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(ed&f)===f:(r&f)===f){f!==0&&f===Na&&(ho=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=E({},d,f);break a;case 2:so=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),cd|=o,e.lanes=o,e.memoizedState=d}}function vo(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function yo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)vo(n[e],t)}var bo=pe(null),xo=pe(0);function So(e,t){e=od,he(xo,e),he(bo,t),od=e|t.baseLanes}function Co(){he(xo,od),he(bo,bo.current)}function wo(){od=xo.current,me(bo),me(xo)}var To=pe(null),Eo=null;function Do(e){var t=e.alternate;he(Mo,Mo.current&1),he(To,e),Eo===null&&(t===null||bo.current!==null||t.memoizedState!==null)&&(Eo=e)}function Oo(e){he(Mo,Mo.current),he(To,e),Eo===null&&(Eo=e)}function ko(e){e.tag===22?(he(Mo,Mo.current),he(To,e),Eo===null&&(Eo=e)):Ao()}function Ao(){he(Mo,Mo.current),he(To,To.current)}function jo(e){me(To),Eo===e&&(Eo=null),me(Mo)}var Mo=pe(0);function No(e,t){he(To,To.current),he(Mo,t)}function Po(e){me(Mo),me(To),Eo===e&&(Eo=null)}function Fo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||um(n)||dm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Io=0,q=null,Lo=null,Ro=null,zo=!1,Bo=!1,Vo=!1,Ho=0,Uo=0,Wo=null,Go=0;function Ko(){throw Error(a(321))}function qo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fr(e[n],t[n]))return!1;return!0}function Jo(e,t,n,r,i,a){return Io=a,q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?dc:fc,Vo=!1,a=n(r,i),Vo=!1,Bo&&(a=Xo(t,n,r,i)),Yo(e),a}function Yo(e){B.H=uc;var t=Lo!==null&&Lo.next!==null;if(Io=0,Ro=Lo=q=null,zo=!1,Uo=0,Wo=null,t)throw Error(a(300));e===null||kc||(e=e.dependencies,e!==null&&_a(e)&&(kc=!0))}function Xo(e,t,n,r){q=e;var i=0;do{if(Bo&&(Wo=null),Uo=0,Bo=!1,25<=i)throw Error(a(301));if(i+=1,Ro=Lo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}B.H=pc,o=t(n,r)}while(Bo);return o}function Zo(){var e=B.H,t=e.useState()[0];return t=typeof t.then==`function`?is(t):t,e=e.useState()[0],(Lo===null?null:Lo.memoizedState)!==e&&(q.flags|=1024),t}function Qo(){var e=Ho!==0;return Ho=0,e}function $o(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function es(e){if(zo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zo=!1}Io=0,Ro=Lo=q=null,Bo=!1,Uo=Ho=0,Wo=null}function ts(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ro===null?q.memoizedState=Ro=e:Ro=Ro.next=e,Ro}function ns(){if(Lo===null){var e=q.alternate;e=e===null?null:e.memoizedState}else e=Lo.next;var t=Ro===null?q.memoizedState:Ro.next;if(t!==null)Ro=t,Lo=e;else{if(e===null)throw q.alternate===null?Error(a(467)):Error(a(310));Lo=e,e={memoizedState:Lo.memoizedState,baseState:Lo.baseState,baseQueue:Lo.baseQueue,queue:Lo.queue,next:null},Ro===null?q.memoizedState=Ro=e:Ro=Ro.next=e}return Ro}function rs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function is(e){var t=Uo;return Uo+=1,Wo===null&&(Wo=[]),e=Ja(Wo,e,t),t=q,(Ro===null?t.memoizedState:Ro.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?dc:fc),e}function as(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return is(e);if(e.$$typeof===R)return;if(e.$$typeof===P)return ya(e)}throw Error(a(438,String(e)))}function os(e){var t=null,n=q.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=q.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=rs(),q.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=ae;return t.index++,n}function ss(e,t){return typeof t==`function`?t(e):t}function cs(e){return ls(ns(),Lo,e)}function ls(e,t,n){var r=e.queue;if(r===null)throw Error(a(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Io&f)===f:(ed&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Na&&(d=!0);else if((Io&p)===p){u=u.next,p===Na&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,q.lanes|=p,cd|=p;f=u.action,Vo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,q.lanes|=f,cd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Fr(o,e.memoizedState)&&(kc=!0,d&&(n=Pa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function us(e){var t=ns(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Fr(o,t.memoizedState)||(kc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ds(e,t,n){var r=q,i=ns(),o=Qi;if(o){if(n===void 0)throw Error(a(407));n=n()}else n=t();var s=!Fr((Lo||i).memoizedState,n);if(s&&(i.memoizedState=n,kc=!0),i=i.queue,Is(ms.bind(null,r,i,e),[e]),e=i.getSnapshot!==t||s||Ro!==null&&!!(Ro.memoizedState.tag&1),js(e?9:8,{destroy:void 0},ps.bind(null,r,i,n,t),null),e){if(r.flags|=2048,Qu===null)throw Error(a(349));o||Io&127||fs(r,t,n)}return n}function fs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=q.updateQueue,t===null?(t=rs(),q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ps(e,t,n,r){t.value=n,t.getSnapshot=r,hs(t)&&gs(e)}function ms(e,t,n){return n(function(){hs(t)&&gs(e)})}function hs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fr(e,n)}catch{return!0}}function gs(e){var t=bi(e,2);t!==null&&Id(t,e,2)}function _s(e){var t=ts();if(typeof e==`function`){var n=e;if(e=n(),Vo){Ke(!0);try{n()}finally{Ke(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ss,lastRenderedState:e},t}function vs(e,t,n,r){return e.baseState=n,ls(e,Lo,typeof r==`function`?r:ss)}function ys(e,t,n,r,i){if(sc(e))throw Error(a(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};B.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,bs(t,o)):(o.next=n.next,t.pending=n.next=o)}}function bs(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=B.T,o={};o.types=a===null?null:a.types,B.T=o;try{var s=n(i,r),c=B.S;c!==null&&c(o,s),xs(e,t,s)}catch(n){Cs(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),B.T=a}}else try{a=n(i,r),xs(e,t,a)}catch(n){Cs(e,t,n)}}function xs(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Ss(e,t,n)},function(n){return Cs(e,t,n)}):Ss(e,t,n)}function Ss(e,t,n){t.status=`fulfilled`,t.value=n,ws(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,bs(e,n)))}function Cs(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ws(t),t=t.next;while(t!==r)}e.action=null}function ws(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ts(e,t){return t}function Es(e,t){if(Qi){var n=Qu.formState;if(n!==null){a:{var r=q;if(Qi){if(Zi){b:{for(var i=Zi,a=ea;i.nodeType!==8;){if(!a){i=null;break b}if(i=pm(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Zi=pm(i.nextSibling),r=i.data===`F!`;break a}}na(r)}r=!1}r&&(t=n[0])}}return n=ts(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ts,lastRenderedState:t},n.queue=r,n=ic.bind(null,q,r),r.dispatch=n,r=_s(!1),a=oc.bind(null,q,!1,r.queue),r=ts(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=ys.bind(null,q,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ds(e){return Os(ns(),Lo,e)}function Os(e,t,n){if(t=ls(e,t,Ts)[0],e=cs(ss)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=is(t)}catch(e){throw e===Ua?Ga:e}else r=t;t=ns();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(q.flags|=2048,js(9,{destroy:void 0},ks.bind(null,i,n),null)),[r,a,e]}function ks(e,t){e.action=t}function As(e){var t=ns(),n=Lo;if(n!==null)return Os(t,n,e);ns(),t=t.memoizedState,n=ns();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function js(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=q.updateQueue,t===null&&(t=rs(),q.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ms(){return ns().memoizedState}function Ns(e,t,n,r){var i=ts();q.flags|=e,i.memoizedState=js(1|t,{destroy:void 0},n,r===void 0?null:r)}function Ps(e,t,n,r){var i=ns();r=r===void 0?null:r;var a=i.memoizedState.inst;Lo!==null&&r!==null&&qo(r,Lo.memoizedState.deps)?i.memoizedState=js(t,a,n,r):(q.flags|=e,i.memoizedState=js(1|t,a,n,r))}function Fs(e,t){Ns(8390656,8,e,t)}function Is(e,t){Ps(2048,8,e,t)}function Ls(e){q.flags|=4;var t=q.updateQueue;if(t===null)t=rs(),q.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Rs(e){var t=ns().memoizedState;return Ls({ref:t,nextImpl:e}),function(){if(Zu&2)throw Error(a(440));return t.impl.apply(void 0,arguments)}}function zs(e,t){return Ps(4,2,e,t)}function Bs(e,t){return Ps(4,4,e,t)}function Vs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Hs(e,t,n){n=n==null?null:n.concat([e]),Ps(4,4,Vs.bind(null,t,e),n)}function Us(){}function Ws(e,t){var n=ns();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&qo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Gs(e,t){var n=ns();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&qo(t,r[1]))return r[0];if(r=e(),Vo){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r}function Ks(e,t,n){return n===void 0||Io&1073741824&&!(ed&261930)?e.memoizedState=t:(e.memoizedState=n,e=Pd(),q.lanes|=e,cd|=e,n)}function qs(e,t,n,r){return Fr(n,t)?n:bo.current===null?!(Io&106)||Io&1073741824&&!(ed&261930)?(kc=!0,e.memoizedState=n):(e=Pd(),q.lanes|=e,cd|=e,t):(e=Ks(e,n,r),Fr(e,t)||(kc=!0),e)}function Js(e,t,n,r,i){var a=V.p;V.p=a!==0&&8>a?a:8;var o=B.T,s={};s.types=o===null?null:o.types,B.T=s,oc(e,!1,t,n);try{var c=i(),l=B.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?ac(e,t,La(c,r),Nd(e)):ac(e,t,r,Nd(e))}catch(n){ac(e,t,{then:function(){},status:`rejected`,reason:n},Nd())}finally{V.p=a,o!==null&&s.types!==null&&(o.types=s.types),B.T=o}}function Ys(){}function Xs(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=Zs(e).queue;Js(e,i,t,ue,n===null?Ys:function(){return Qs(e),n(r)})}function Zs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ss,lastRenderedState:ue},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ss,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Qs(e){var t=Zs(e);t.next===null&&(t=e.alternate.memoizedState),ac(e,t.next.queue,{},Nd())}function $s(){return ya(uh)}function ec(){return ns().memoizedState}function tc(){return ns().memoizedState}function nc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Nd();e=uo(n);var r=fo(t,e,n);r!==null&&(Id(r,t,n),po(r,t,n)),t={cache:Ea()},e.payload=t;return}t=t.return}}function rc(e,t,n){var r=Nd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},sc(e)?cc(t,n):(n=yi(e,t,n,r),n!==null&&(Id(n,e,r),lc(n,t,r)))}function ic(e,t,n){ac(e,t,n,Nd())}function ac(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(sc(e))cc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Fr(s,o))return vi(e,t,i,0),Qu===null&&_i(),!1}catch{}if(n=yi(e,t,i,r),n!==null)return Id(n,e,r),lc(n,t,r),!0}return!1}function oc(e,t,n,r){if(r={lane:2,revertLane:Lf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},sc(e)){if(t)throw Error(a(479))}else t=yi(e,n,r,2),t!==null&&Id(t,e,2)}function sc(e){var t=e.alternate;return e===q||t!==null&&t===q}function cc(e,t){Bo=zo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function lc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lt(e,n)}}var uc={readContext:ya,use:as,useCallback:Ko,useContext:Ko,useEffect:Ko,useImperativeHandle:Ko,useLayoutEffect:Ko,useInsertionEffect:Ko,useMemo:Ko,useReducer:Ko,useRef:Ko,useState:Ko,useDebugValue:Ko,useDeferredValue:Ko,useTransition:Ko,useSyncExternalStore:Ko,useId:Ko,useHostTransitionStatus:Ko,useFormState:Ko,useActionState:Ko,useOptimistic:Ko,useMemoCache:Ko,useCacheRefresh:Ko,useEffectEvent:Ko},dc={readContext:ya,use:as,useCallback:function(e,t){return ts().memoizedState=[e,t===void 0?null:t],e},useContext:ya,useEffect:Fs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Ns(4194308,4,Vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ns(4194308,4,e,t)},useInsertionEffect:function(e,t){Ns(4,2,e,t)},useMemo:function(e,t){var n=ts();t=t===void 0?null:t;var r=e();if(Vo){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ts();if(n!==void 0){var i=n(t);if(Vo){Ke(!0);try{n(t)}finally{Ke(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=rc.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=ts();return e={current:e},t.memoizedState=e},useState:function(e){e=_s(e);var t=e.queue,n=ic.bind(null,q,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Us,useDeferredValue:function(e,t){return Ks(ts(),e,t)},useTransition:function(){var e=_s(!1);return e=Js.bind(null,q,e.queue,!0,!1),ts().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=q,i=ts();if(Qi){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Qu===null)throw Error(a(349));ed&127||fs(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Fs(ms.bind(null,r,o,e),[e]),r.flags|=2048,js(9,{destroy:void 0},ps.bind(null,r,o,n,t),null),n},useId:function(){var e=ts(),t=Qu.identifierPrefix;if(Qi){var n=Wi,r=Ui;n=(r&~(1<<32-qe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Ho++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Go++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:$s,useFormState:Es,useActionState:Es,useOptimistic:function(e){var t=ts();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=oc.bind(null,q,!0,n),n.dispatch=t,[e,t]},useMemoCache:os,useCacheRefresh:function(){return ts().memoizedState=nc.bind(null,q)},useEffectEvent:function(e){var t=ts(),n={impl:e};return t.memoizedState=n,function(){if(Zu&2)throw Error(a(440));return n.impl.apply(void 0,arguments)}}},fc={readContext:ya,use:as,useCallback:Ws,useContext:ya,useEffect:Is,useImperativeHandle:Hs,useInsertionEffect:zs,useLayoutEffect:Bs,useMemo:Gs,useReducer:cs,useRef:Ms,useState:function(){return cs(ss)},useDebugValue:Us,useDeferredValue:function(e,t){return qs(ns(),Lo.memoizedState,e,t)},useTransition:function(){var e=cs(ss)[0],t=ns().memoizedState;return[typeof e==`boolean`?e:is(e),t]},useSyncExternalStore:ds,useId:ec,useHostTransitionStatus:$s,useFormState:Ds,useActionState:Ds,useOptimistic:function(e,t){return vs(ns(),Lo,e,t)},useMemoCache:os,useCacheRefresh:tc,useEffectEvent:Rs},pc={readContext:ya,use:as,useCallback:Ws,useContext:ya,useEffect:Is,useImperativeHandle:Hs,useInsertionEffect:zs,useLayoutEffect:Bs,useMemo:Gs,useReducer:us,useRef:Ms,useState:function(){return us(ss)},useDebugValue:Us,useDeferredValue:function(e,t){var n=ns();return Lo===null?Ks(n,e,t):qs(n,Lo.memoizedState,e,t)},useTransition:function(){var e=us(ss)[0],t=ns().memoizedState;return[typeof e==`boolean`?e:is(e),t]},useSyncExternalStore:ds,useId:ec,useHostTransitionStatus:$s,useFormState:As,useActionState:As,useOptimistic:function(e,t){var n=ns();return Lo===null?(n.baseState=e,[e,n.queue.dispatch]):vs(n,Lo,e,t)},useMemoCache:os,useCacheRefresh:tc,useEffectEvent:Rs};function mc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:E({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var hc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Nd(),i=uo(r);i.payload=t,n!=null&&(i.callback=n),t=fo(e,i,r),t!==null&&(Id(t,e,r),po(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Nd(),i=uo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=fo(e,i,r),t!==null&&(Id(t,e,r),po(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Nd(),r=uo(n);r.tag=2,t!=null&&(r.callback=t),t=fo(e,r,n),t!==null&&(Id(t,e,n),po(t,e,n))}};function gc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Ir(n,r)||!Ir(i,a):!0}function _c(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&hc.enqueueReplaceState(t,t.state,null)}function vc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=E({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function yc(e){pi(e)}function bc(e){console.error(e)}function xc(e){pi(e)}function Sc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Cc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function wc(e,t,n){return n=uo(n),n.tag=3,n.payload={element:null},n.callback=function(){Sc(e,t)},n}function Tc(e){return e=uo(e),e.tag=3,e}function Ec(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Cc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Cc(t,n,r),typeof i!=`function`&&(bd===null?bd=new Set([this]):bd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Dc(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ga(t,n,i,!0),n=To.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Eo===null?Jd():n.alternate===null&&sd===0&&(sd=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Ka?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),_f(e,r,i)),!1;case 22:return n.flags|=65536,r===Ka?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),_f(e,r,i)),!1}throw Error(a(435,n.tag))}return _f(e,r,i),Jd(),!1}if(Qi)return t=To.current,t===null?(r!==ta&&(t=Error(a(423),{cause:r}),ca(Fi(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Fi(r,n),i=wc(e.stateNode,r,i),mo(e,i),sd!==4&&(sd=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==ta&&(e=Error(a(422),{cause:r}),ca(Fi(e,n)))),!1;var o=Error(a(520),{cause:r});if(o=Fi(o,n),pd===null?pd=[o]:pd.push(o),sd!==4&&(sd=2),t===null)return!0;r=Fi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=wc(n.stateNode,r,e),mo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(bd===null||!bd.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Tc(i),Ec(i,e,n,r),mo(n,i),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Oc=Error(a(461)),kc=!1;function Ac(e,t,n,r){t.child=e===null?oo(t,null,n,r):ao(t,e.child,n,r)}function jc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return va(t),r=Jo(e,t,n,o,a,i),s=Qo(),e!==null&&!kc?($o(e,t,i),al(e,t,i)):(Qi&&s&&qi(t),t.flags|=1,Ac(e,t,r,i),t.child)}function Mc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Ei(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Nc(e,t,a,r,i)):(e=ki(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!ol(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Ir:n,n(o,r)&&e.ref===t.ref)return al(e,t,i)}return t.flags|=1,e=Di(a,r),e.ref=t.ref,e.return=t,t.child=e}function Nc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Ir(a,r)&&e.ref===t.ref){if(kc=!1,t.pendingProps=r=a,ol(e,i))e.flags&131072&&(kc=!0);else return t.lanes=e.lanes,al(e,t,i)}}return Vc(e,t,n,r,i)}function Pc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Ic(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Va(t,a===null?null:a.cachePool),a===null?Co():So(t,a),ko(t);else return r=t.lanes=536870912,Ic(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Va(t,null),Co(),Ao()):(Va(t,a.cachePool),So(t,a),Ao(),t.memoizedState=null);return Ac(e,t,i,n),t.child}function Fc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ic(e,t,n,r,i){var a=Ba();return a=a===null?null:{parent:Ta._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Va(t,null),Co(),ko(t),e!==null&&ga(e,t,r,!0),t.childLanes=i,null}function Lc(e,t){return t=Xc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Rc(e,t,n){return ao(t,e.child,null,n),e=Lc(t,t.pendingProps),e.flags|=2,jo(t),t.memoizedState=null,e}function zc(e,t,n){var r=t.pendingProps,i=!!(t.flags&128);if(t.flags&=-129,e===null){if(Qi){if(r.mode===`hidden`)return e=Lc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Fc(null,e);if(Oo(t),(e=Zi)?(e=lm(e,ea),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Hi===null?null:{id:Ui,overflow:Wi},retryLane:536870912,hydrationErrors:null},n=Mi(e),n.return=t,t.child=n,Xi=t,Zi=null)):e=null,e===null)throw na(t);return t.lanes=536870912,null}return Lc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Oo(t),i){if(t.flags&256)t.flags&=-257,t=Rc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(a(558))}else if(kc||ga(e,t,n,!1),i=(n&e.childLanes)!==0,kc||i){if(bo.current===null){if(r=Qu,r!==null&&(s=ut(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,bi(e,s),Id(r,e,s),Oc;Jd()}t=Rc(e,t,n)}else e=o.treeContext,Zi=pm(s.nextSibling),Xi=t,Qi=!0,$i=null,ea=!1,e!==null&&Yi(t,e),t=Lc(t,r),t.flags|=134221824;return t}return e=Di(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Bc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(a(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Vc(e,t,n,r,i){return va(t),n=Jo(e,t,n,r,void 0,i),r=Qo(),e!==null&&!kc?($o(e,t,i),al(e,t,i)):(Qi&&r&&qi(t),t.flags|=1,Ac(e,t,n,i),t.child)}function Hc(e,t,n,r,i,a){return va(t),t.updateQueue=null,n=Xo(t,r,n,i),Yo(e),r=Qo(),e!==null&&!kc?($o(e,t,a),al(e,t,a)):(Qi&&r&&qi(t),t.flags|=1,Ac(e,t,n,a),t.child)}function Uc(e,t,n,r,i){if(va(t),t.stateNode===null){var a=Ci,o=n.contextType;typeof o==`object`&&o&&(a=ya(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=hc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},co(t),o=n.contextType,a.context=typeof o==`object`&&o?ya(o):Ci,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(mc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&hc.enqueueReplaceState(a,a.state,null),_o(t,r,a,i),go(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=vc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Ci,typeof u==`object`&&u&&(o=ya(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&_c(t,a,r,o),so=!1;var f=t.memoizedState;a.state=f,_o(t,r,a,i),go(),l=t.memoizedState,s||f!==l||so?(typeof d==`function`&&(mc(t,n,d,r),l=t.memoizedState),(c=so||gc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,lo(e,t),o=t.memoizedProps,u=vc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Ci,typeof l==`object`&&l&&(c=ya(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&_c(t,a,r,c),so=!1,f=t.memoizedState,a.state=f,_o(t,r,a,i),go();var p=t.memoizedState;o!==d||f!==p||so||e!==null&&e.dependencies!==null&&_a(e.dependencies)?(typeof s==`function`&&(mc(t,n,s,r),p=t.memoizedState),(u=so||gc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&_a(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Bc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=ao(t,e.child,null,i),t.child=ao(t,null,n,i)):Ac(e,t,n,i),t.memoizedState=a.state,e=t.child):e=al(e,t,i),e}function Wc(e,t,n,r){return oa(),t.flags|=256,Ac(e,t,n,r),t.child}var Gc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Kc(e){return{baseLanes:e,cachePool:Ha()}}function qc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=dd),e}function Jc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Mo.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(Qi){if(i?Do(t):Ao(),(e=Zi)?(e=lm(e,ea),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Hi===null?null:{id:Ui,overflow:Wi},retryLane:536870912,hydrationErrors:null},n=Mi(e),n.return=t,t.child=n,Xi=t,Zi=null)):e=null,e===null)throw na(t);return t.lanes=dm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Ao(),i=t.mode,a=Xc({mode:`hidden`,children:a},i),r=Ai(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Kc(n),r.childLanes=qc(e,o,n),t.memoizedState=Gc,Fc(null,r)):(Do(t),Yc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return Qc(e,t,a,o,r,c,s,n)}return i?(Ao(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Di(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Ai(i,a,n,null),i.flags|=2):i=Di(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Fc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Kc(n):(a=i.cachePool,a===null?a=Ha():(s=Ta._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=qc(e,o,n),t.memoizedState=Gc,Fc(e.child,r)):(Do(t),n=e.child,e=n.sibling,n=Di(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Yc(e,t){return t=Xc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Xc(e,t){return e=Ti(22,e,null,t),e.lanes=0,e}function Zc(e,t,n){return ao(t,e.child,null,n),e=Yc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Qc(e,t,n,r,i,o,s,c){if(n)return t.flags&256?(Do(t),t.flags&=-257,Zc(e,t,c)):t.memoizedState===null?(Ao(),o=i.fallback,s=t.mode,i=Xc({mode:`visible`,children:i.children},s),o=Ai(o,s,c,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,ao(t,e.child,null,c),i=t.child,i.memoizedState=Kc(c),i.childLanes=qc(e,r,c),t.memoizedState=Gc,Fc(null,i)):(Ao(),t.child=e.child,t.flags|=128,null);if(Do(t),dm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(i=Error(a(419)),i.stack=``,i.digest=r,ca({value:i,source:null,stack:null})),Zc(e,t,c)}if(kc||ga(e,t,c,!1),r=(c&e.childLanes)!==0,kc||r){if(bo.current!==null)return Zc(e,t,c);if(r=Qu,r!==null&&(i=ut(r,c),i!==0&&i!==s.retryLane))throw s.retryLane=i,bi(e,i),Id(r,e,i),Oc;return um(o)||Jd(),Zc(e,t,c)}return um(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,Zi=pm(o.nextSibling),Xi=t,Qi=!0,$i=null,ea=!1,e!==null&&Yi(t,e),t=Yc(t,i.children),t.flags|=134221824,t)}function $c(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ma(e.return,t,n)}function el(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Fo(n)===null&&(t=e),e=e.sibling}return t}function tl(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function nl(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function rl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Mo.current;if(t.flags&128)return No(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,No(t,o),i===`backwards`&&e!==null?(nl(e),Ac(e,t,r,n),nl(e)):Ac(e,t,r,n),r=Qi?zi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$c(e,n,t);else if(e.tag===19)$c(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=el(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,nl(t)),tl(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Fo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}tl(t,!0,n,null,a,r);break;case`together`:tl(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=el(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),tl(t,!1,i,n,a,r)}return t.child}function il(e,t,n){var r=t.pendingProps;return fa(t,t.type,r.value),Ac(e,t,r.children,n),t.child}function al(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),cd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ga(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,n=Di(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Di(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ol(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&_a(e)))}function sl(e,t,n){switch(t.tag){case 3:H(t,t.stateNode.containerInfo),fa(t,Ta,e.memoizedState.cache),oa();break;case 27:case 5:xe(t);break;case 4:H(t,t.stateNode.containerInfo);break;case 10:fa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Oo(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Do(t),t.flags|=128,null;r=ga(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Jc(e,t,n):(Do(t),e=al(e,t,n),e===null?null:e.sibling)}Do(t);break;case 19:if(t.flags&128)return rl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(ga(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return rl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),No(t,Mo.current),r)break;return null;case 22:return t.lanes=0,Pc(e,t,n,t.pendingProps);case 24:fa(t,Ta,e.memoizedState.cache)}return al(e,t,n)}function cl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)kc=!0;else{if(!ol(e,n)&&!(t.flags&128))return kc=!1,sl(e,t,n);kc=!!(e.flags&131072)}}else kc=!1,Qi&&t.flags&1048576&&Ki(t,zi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ya(t.elementType),t.type=e,typeof e==`function`)Ei(e)?(r=vc(e,r),t.tag=1,t=Uc(null,t,e,r,n)):(t.tag=0,t=Vc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===ee){t.tag=11,t=jc(null,t,e,r,n);break a}if(i===ne){t.tag=14,t=Mc(null,t,e,r,n);break a}if(i===P){t.tag=10,t.type=e,t=il(null,t,n);break a}}throw t=ce(e)||e,Error(a(306,t,``))}}return t;case 0:return Vc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=vc(r,t.pendingProps),Uc(e,t,r,i,n);case 3:a:{if(H(t,t.stateNode.containerInfo),e===null)throw Error(a(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,lo(e,t),_o(t,r,null,n);var s=t.memoizedState;if(r=s.cache,fa(t,Ta,r),r!==o.cache&&ha(t,[Ta],n,!0),go(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Wc(e,t,r,n);break a}if(r!==i){i=Fi(Error(a(424)),t),ca(i),t=Wc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Zi=pm(e.firstChild),Xi=t,Qi=!0,$i=null,ea=!0,n=oo(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(oa(),r===i){t=al(e,t,n);break a}Ac(e,t,r,n)}t=t.child}return t;case 26:return Bc(e,t),e===null?(n=Im(t.type,null,t.pendingProps,null))?t.memoizedState=n:Qi||(t.stateNode=_p(t.type,t.pendingProps,ve.current,t)):t.memoizedState=Im(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return xe(t),e===null&&Qi&&(r=t.stateNode=vm(t.type,t.pendingProps,ve.current),Xi=t,ea=!0,i=Zi,Dp(t.type)?(mm=i,Zi=pm(r.firstChild)):Zi=i),Ac(e,t,t.pendingProps.children,n),Bc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Qi&&((i=r=Zi)&&(r=cm(r,t.type,t.pendingProps,ea),r===null?i=!1:(t.stateNode=r,Xi=t,Zi=pm(r.firstChild),ea=!1,i=!0)),i||na(t)),xe(t),i=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,vp(i,o)?r=null:s!==null&&vp(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=Jo(e,t,Zo,null,null,n),uh._currentValue=i),Bc(e,t),Ac(e,t,r,n),t.child;case 6:return e===null&&Qi&&((e=n=Zi)&&(n=Y(n,t.pendingProps,ea),n===null?e=!1:(t.stateNode=n,Xi=t,Zi=null,e=!0)),e||na(t)),null;case 13:return Jc(e,t,n);case 4:return H(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ao(t,null,r,n):Ac(e,t,r,n),t.child;case 11:return jc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Bc(e,t),Ac(e,t,r,n),t.child;case 8:return Ac(e,t,t.pendingProps.children,n),t.child;case 12:return Ac(e,t,t.pendingProps.children,n),t.child;case 10:return il(e,t,n);case 9:return i=t.type._context,r=t.pendingProps.children,va(t),i=ya(i),r=r(i),t.flags|=1,Ac(e,t,r,n),t.child;case 14:return Mc(e,t,t.type,t.pendingProps,n);case 15:return Nc(e,t,t.type,t.pendingProps,n);case 19:return rl(e,t,n);case 31:return zc(e,t,n);case 22:return Pc(e,t,n,t.pendingProps);case 24:return va(t),r=ya(Ta),e===null?(i=Ba(),i===null&&(i=Qu,o=Ea(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},co(t),fa(t,Ta,i)):((e.lanes&n)!==0&&(lo(e,t),_o(t,null,null,n),go()),i=e.memoizedState,o=t.memoizedState,i.parent===r?(r=o.cache,fa(t,Ta,r),r!==i.cache&&ha(t,[Ta],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),fa(t,Ta,r))),Ac(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:Qi&&qi(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Bc(e,t),Ac(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function ll(e){e.flags|=4}function ul(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Zm(t,r):Zm(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Gd())e.flags|=8192;else throw Xa=Ka,Wa}}else e.flags&=-16777217}function dl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Qm(t)){if(Gd())e.flags|=8192;else throw Xa=Ka,Wa}}function fl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:it(),e.lanes|=t,fd|=t)}function pl(e,t){if(!Qi)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function ml(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function hl(e,t,n){var r=t.pendingProps;switch(Ji(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ml(t),null;case 1:return ml(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),pa(Ta),be(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(aa(t)?ll(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,sa())),ml(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(ll(t),o===null?(ml(t),ul(t,i,null,r,n)):(ml(t),dl(t,o))):o?o===e.memoizedState?(ml(t),t.flags&=-16777217):(ll(t),ml(t),dl(t,o)):(e=e.memoizedProps,e!==r&&ll(t),ml(t),ul(t,i,e,r,n)),null;case 27:if(Se(t),n=ve.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ll(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return ml(t),t.subtreeFlags&=-33554433,null}e=ge.current,aa(t)?ra(t,e):(e=vm(i,r,n),t.stateNode=e,ll(t))}return ml(t),t.subtreeFlags&=-33554433,null;case 5:if(Se(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ll(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return ml(t),t.subtreeFlags&=-33554433,null}if(o=ge.current,aa(t))ra(t,o);else{var s=mp(ve.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[gt]=t,o[_t]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(sp(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&ll(t)}}return ml(t),t.subtreeFlags&=-33554433,ul(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ll(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=ve.current,aa(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Xi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[gt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ip(e.nodeValue,n)),e||na(t,!0)}else e=mp(e).createTextNode(r),e[gt]=t,t.stateNode=e}return ml(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=aa(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[gt]=t}else oa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ml(t),e=!1}else n=sa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(jo(t),t):(jo(t),null);if(t.flags&128)throw Error(a(558))}return ml(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=aa(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[gt]=t}else oa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ml(t),i=!1}else i=sa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(jo(t),t):(jo(t),null)}return jo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),fl(t,t.updateQueue),ml(t),null);case 4:return be(),e===null&&Jf(t.stateNode.containerInfo),t.flags|=67108864,ml(t),null;case 10:return pa(t.type),ml(t),null;case 19:if(Po(t),r=t.memoizedState,r===null)return ml(t),null;if(i=!!(t.flags&128),o=r.rendering,o===null){if(i)pl(r,!1);else{if(sd!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Fo(e),o!==null){for(t.flags|=128,pl(r,!1),e=o.updateQueue,t.updateQueue=e,fl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Oi(n,e),n=n.sibling;return No(t,Mo.current&1|2),Qi&&Gi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Fe()>vd&&(t.flags|=128,i=!0,pl(r,!1),t.lanes=4194304)}}else{if(!i){if(e=Fo(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,fl(t,e),pl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!Qi)return ml(t),null}else 2*Fe()-r.renderingStartTime>vd&&n!==536870912&&(t.flags|=128,i=!0,pl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Fe(),e.sibling=null,o=Mo.current,o=i?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||Qi?No(t,o):(n=o,he(To,t),he(Mo,n),Eo===null&&(Eo=t)),Qi&&Gi(t,r.treeForkCount),e}return ml(t),null;case 22:case 23:return jo(t),wo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(ml(t),t.subtreeFlags&6&&(t.flags|=8192)):ml(t),n=t.updateQueue,n!==null&&fl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&me(za),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),pa(Ta),ml(t),null;case 25:return null;case 30:return t.flags|=33554432,ml(t),null}throw Error(a(156,t.tag))}function gl(e,t){switch(Ji(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pa(Ta),be(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Se(t),null;case 31:if(t.memoizedState!==null){if(jo(t),t.alternate===null)throw Error(a(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Po(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return be(),null;case 10:return pa(t.type),null;case 22:case 23:return jo(t),wo(),e!==null&&me(za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return pa(Ta),null;case 25:return null;default:return null}}function _l(e,t){switch(Ji(t),t.tag){case 3:pa(Ta),be();break;case 26:case 27:case 5:Se(t);break;case 4:be();break;case 31:t.memoizedState!==null&&jo(t);break;case 13:jo(t);break;case 19:Po(t);break;case 10:pa(t.type);break;case 22:case 23:jo(t),wo(),e!==null&&me(za);break;case 24:pa(Ta)}}function vl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){gf(t,t.return,e)}}function yl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){gf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){gf(t,t.return,e)}}function bl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{yo(t,n)}catch(t){gf(e,e.return,t)}}}function xl(e,t,n){n.props=vc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){gf(e,t,n)}}function Sl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=ui(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=zp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Bp(e);m(e.child,!1,rm,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){gf(e,t,n)}}function Cl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){gf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){gf(e,t,n)}else n.current=null}}function wl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)am(e.stateNode,t[n])}function Tl(e){for(var t=e.return;t!==null&&(Ol(t)&&am(e.stateNode,t.stateNode),!Dl(t));)t=t.return}function El(e){for(var t=e.return;t!==null&&(Ol(t)&&om(e.stateNode,t.stateNode),!Dl(t));)t=t.return}function Dl(e){return e.tag===5||e.tag===3||e.tag===27}function Ol(e){return e&&e.tag===7&&e.stateNode!==null}function kl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){gf(e,e.return,t)}}function Al(e,t,n){try{var r=e.stateNode;lp(r,e.type,n,t),r[_t]=t}catch(t){gf(e,e.return,t)}}function jl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dp(e.type)||e.tag===4}function Ml(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||jl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Dp(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Nl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=pn)),wl(e,r),Bt=!0;else if(i!==4&&(i===27&&(wl(e,r),r=null,Dp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Nl(e,t,n,r),e=e.sibling;e!==null;)Nl(e,t,n,r),e=e.sibling}function Pl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),wl(e,r),Bt=!0;else if(i!==4&&(i===27&&(wl(e,r),r=null,Dp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Pl(e,t,n,r),e=e.sibling;e!==null;)Pl(e,t,n,r),e=e.sibling}function Fl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);sp(t,r,n),t[gt]=e,t[_t]=n}catch(t){gf(e,e.return,t)}}var Il=!1,Ll=null;function J(e){(e.tag===30||e.subtreeFlags&33554432)&&(Il=!0)}var Rl=null;function zl(){var e=Rl;return Rl=null,e}var Bl=0;function Vl(e,t,n,r,i){return Bl=0,Hl(e.child,t,n,r,i)}function Hl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Np(o);r.push(s),s.view&&(a=!0)}else a||Np(o).view&&(a=!0);Il=!0,Ap(o,Bl===0?t:t+`_`+Bl,n),Bl++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Hl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Ul(e,t){for(;e!==null;)e.tag===5?jp(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Ul(e.child,t)),e=e.sibling}function Wl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Wl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(a(544));var n=t.name;t=fi(t.default,t.share),t!==`none`&&(Vl(e,n,t,null,!1)||Ul(e.child,!1))}e=e.sibling}}function Gl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=ui(r,n),a=fi(r.default,n.paired?r.share:r.enter);a===`none`?Wl(e):Vl(e,i,a,null,!1)?(Wl(e),n.paired||t||Fd(e,r.onEnter)):Ul(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Gl(e,t),e=e.sibling;else Wl(e)}function Kl(e){if(Ll!==null&&Ll.size!==0){var t=Ll;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=fi(n.default,n.share);if(a!==`none`&&(Vl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Fd(e,n.onShare)):Ul(e.child,!1)),t.delete(r),t.size===0)break}}}Kl(e)}e=e.sibling}}}function ql(e){if(e.tag===30){var t=e.memoizedProps,n=ui(t,e.stateNode),r=Ll===null?void 0:Ll.get(n),i=fi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Vl(e,n,i,null,!1)?r===void 0?Fd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Ll.delete(n),Fd(e,t.onShare)):Ul(e.child,!1)),Ll!==null&&Kl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)ql(e),e=e.sibling;else Ll!==null&&Kl(e)}function Jl(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=ui(t,e.stateNode);t=fi(t.default,t.update),e.flags&=-5,t!==`none`&&Vl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Jl(e);e=e.sibling}}function Yl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Ul(e.child,!1))}Yl(e)}e=e.sibling}}function Xl(e){if(e.tag===30)e.stateNode.paired=null,Ul(e.child,!1),Yl(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Xl(e),e=e.sibling;else Yl(e)}function Zl(e){for(e=e.child;e!==null;)e.tag===30?Ul(e.child,!1):e.subtreeFlags&33554432&&Zl(e),e=e.sibling}function Ql(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Bl<a.length){var l=a[Bl],u=Np(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Ap(c,Bl===0?n:n+`_`+Bl,i),s&&e.flags&4||(Rl===null&&(Rl=[]),Rl.push(c,Bl===0?r:r+`_`+Bl,t.memoizedProps)),Bl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:Ql(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function $l(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=ui(n,r),a=fi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Pp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Bl=0,i=Ql(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Fd(e,n.onUpdate))}else e.subtreeFlags&33554432&&$l(e,t);e=e.sibling}}var eu=!1,tu=!1,nu=!1,ru=!1,iu=typeof WeakSet==`function`?WeakSet:Set,au=null,ou=!1,su=!1,cu=!1,lu=!1;function uu(e,t,n){if(e=e.containerInfo,fp=yh,e=Br(e),Vr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(pp={focusedElem:e,selectionRange:r},yh=!1,n=(n&335544064)===n,au=t,t=n?9270:1024;au!==null;){if(e=au,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&ql(r[a]);if(e.alternate===null&&e.flags&2)n&&J(e),du(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&ql(r),du(n);continue}if(r!==null&&r.memoizedState!==null){n&&J(e),du(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,au=r):(n&&Jl(e),du(n))}}Ll=null}function du(e){for(;au!==null;){var t=au,n=e,r=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(i&1024&&r!==null){n=void 0,i=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=vc(t.type,i);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){gf(t,t.return,e)}}break;case 3:if(i&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)sm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:sm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=ui(r.memoizedProps,r.stateNode),i=t.memoizedProps,i=fi(i.default,i.update),i!==`none`&&Vl(r,n,i,r.memoizedState=[],!0));break;default:if(i&1024)throw Error(a(163))}if(r=t.sibling,r!==null){r.return=t.return,au=r;break}au=t.return}}function fu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Mu(e,n),r&4&&vl(5,n);break;case 1:if(Mu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){gf(n,n.return,e)}else{var i=vc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){gf(n,n.return,e)}}}r&64&&bl(n),r&512&&Sl(n,n.return);break;case 3:if(Mu(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{yo(e,t)}catch(e){gf(n,n.return,e)}}break;case 27:t===null&&r&4&&Fl(n);case 26:case 5:Mu(e,n),t===null&&r&4&&kl(n),r&512&&Sl(n,n.return);break;case 12:Mu(e,n);break;case 31:Mu(e,n),r&4&&xu(e,n);break;case 13:Mu(e,n),r&4&&Su(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=bf.bind(null,n),fm(e,n))));break;case 22:if(r=n.memoizedState!==null||eu,!r){var a=t!==null&&t.memoizedState!==null||tu;t=eu,i=tu,eu=r,(tu=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Pu(e,n,r)):Mu(e,n),eu=t,tu=i}break;case 30:Mu(e,n),r&512&&Sl(n,n.return);break;case 7:r&512&&Sl(n,n.return);default:Mu(e,n)}}function pu(e,t){for(e=e.child;e!==null;)mu(e,t),e=e.sibling}function mu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){gf(e,e.return,t)}hu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Bt=!0}catch(t){gf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?kp(s,!0):kp(e.stateNode,!1)}catch(t){gf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&pu(e,t);break;default:pu(e,t)}}function hu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:mu(n,r);break a;case 22:n.memoizedState===null&&hu(n,r);break a;default:hu(n,r)}}e=e.sibling}}function gu(e){var t=e.alternate;t!==null&&(e.alternate=null,gu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Tt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var _u=null,vu=!1;function yu(e,t,n){for(n=n.child;n!==null;)bu(e,t,n),n=n.sibling}function bu(e,t,n){if(Ge&&typeof Ge.onCommitFiberUnmount==`function`)try{Ge.onCommitFiberUnmount(We,n)}catch{}switch(n.tag){case 26:tu||Cl(n,t),yu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!tu&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:tu||Cl(n,t),El(n);var r=_u,i=vu;Dp(n.type)&&(_u=n.stateNode,vu=!1),yu(e,t,n),ym(n.stateNode,n.type,n.memoizedProps),_u=r,vu=i;break;case 5:tu||Cl(n,t),El(n);case 6:if(n.tag===6&&El(n),r=_u,i=vu,_u=null,yu(e,t,n),_u=r,vu=i,_u!==null){if(vu)try{(_u.nodeType===9?_u.body:_u.nodeName===`HTML`?_u.ownerDocument.body:_u).removeChild(n.stateNode),Bt=!0}catch(e){gf(n,t,e)}else try{_u.removeChild(n.stateNode),Bt=!0}catch(e){gf(n,t,e)}}break;case 18:_u!==null&&(vu?(e=_u,Op(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Gh(e)):Op(_u,n.stateNode));break;case 4:r=_u,i=vu,_u=n.stateNode.containerInfo,vu=!0,yu(e,t,n),_u=r,vu=i;break;case 0:case 11:case 14:case 15:yl(2,n,t),tu||yl(4,n,t),yu(e,t,n);break;case 1:tu||(Cl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&xl(n,t,r)),yu(e,t,n);break;case 21:yu(e,t,n);break;case 22:tu=(r=tu)||n.memoizedState!==null,yu(e,t,n),tu=r;break;case 30:Cl(n,t),yu(e,t,n);break;case 7:tu||Cl(n,t),yu(e,t,n);break;default:yu(e,t,n)}}function xu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Gh(e)}catch(e){gf(t,t.return,e)}}}function Su(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Gh(e)}catch(e){gf(t,t.return,e)}}function Cu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new iu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new iu),t;default:throw Error(a(435,e.tag))}}function wu(e,t){var n=Cu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=xf.bind(null,e,t);t.then(r,r)}})}function Tu(e,t,n){var r=t.deletions;if(r!==null)for(var i=0;i<r.length;i++){var o=r[i],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Dp(l.type)){_u=l.stateNode,vu=!1;break a}break;case 5:_u=l.stateNode,vu=!1;break a;case 3:case 4:_u=l.stateNode.containerInfo,vu=!0;break a}l=l.return}if(_u===null)throw Error(a(160));bu(s,c,o),_u=null,vu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Du(t,e,n),t=t.sibling}var Eu=null;function Du(e,t,n){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(i&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Tu(t,e,n),Ou(e),i&4&&(yl(3,e,e.return),vl(3,e),yl(5,e,e.return));break;case 1:Tu(t,e,n),Ou(e),i&512&&(tu||r===null||Cl(r,r.return)),i&64&&eu&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Eu,Tu(t,e,n),Ou(e),i&512&&(tu||r===null||Cl(r,r.return)),i&4){if(i=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(eu)e.stateNode=_p(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,i=o.ownerDocument||o;b:switch(t){case`title`:r=i.getElementsByTagName(`title`)[0],(!r||r[Ct]||r[gt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=i.createElement(t),i.head.insertBefore(r,i.querySelector(`head > title`))),sp(r,t,n),r[gt]=e,At(r),t=r;break a;case`link`:if(o=Jm(`link`,`href`,i).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=i.createElement(t),sp(r,t,n),i.head.appendChild(r);break;case`meta`:if(o=Jm(`meta`,`content`,i).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=i.createElement(t),sp(r,t,n),i.head.appendChild(r);break;default:throw Error(a(468,t))}r[gt]=e,At(r),t=r}e.stateNode=t}}else eu||Ym(o,e.type,e.stateNode)}else e.stateNode=Um(o,n,e.memoizedProps)}else i===n?n===null&&e.stateNode!==null&&Al(e,e.memoizedProps,r.memoizedProps):(i===null?(t=r.stateNode,t===null||tu||t.parentNode.removeChild(t)):i.count--,n===null?eu||Ym(o,e.type,e.stateNode):Um(o,n,e.memoizedProps))}break;case 27:Tu(t,e,n),Ou(e),i&512&&(tu||r===null||Cl(r,r.return)),r!==null&&i&4&&Al(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=nu,nu=!1,Tu(t,e,n),nu=o,Ou(e),i&512&&(tu||r===null||Cl(r,r.return)),e.flags&32){t=e.stateNode;try{an(t,``),Bt=!0}catch(t){gf(e,e.return,t)}}i&4&&e.stateNode!=null&&(t=e.memoizedProps,Al(e,t,r===null?t:r.memoizedProps)),i&1024&&(ru=!0);break;case 6:if(Tu(t,e,n),Ou(e),i&4){if(e.stateNode===null)throw Error(a(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Bt=!0}catch(t){gf(e,e.return,t)}}break;case 3:if(Bt=!1,qm=null,o=Eu,Eu=Cm(t.containerInfo),Tu(t,e,n),Eu=o,Ou(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{Gh(t.containerInfo)}catch(t){gf(e,e.return,t)}ru&&(ru=!1,ku(e)),Bt=!1;break;case 4:i=nu,nu=eu,r=Vt(),o=Eu,Eu=Cm(e.stateNode.containerInfo),Tu(t,e,n),Ou(e),Eu=o,Bt&&su&&(cu=!0),Bt=r,nu=i;break;case 12:Tu(t,e,n),Ou(e);break;case 31:Tu(t,e,n),Ou(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wu(e,t)));break;case 13:Tu(t,e,n),Ou(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(gd=Fe()),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wu(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=eu,l=tu,u=nu;eu=c||o,nu=u||o,tu=l||s,Tu(t,e,n),tu=l,nu=u,eu=c,Ou(e),i&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||eu||tu||(t=s||tu,n=eu,r=tu,eu=o||eu,tu=t,Nu(e,2),eu=n,tu=r),!o&&nu||pu(e,o)),i&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,wu(e,n))));break;case 19:Tu(t,e,n),Ou(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wu(e,t)));break;case 30:i&512&&(tu||r===null||Cl(r,r.return)),i=Vt(),o=su,s=(n&335544064)===n,c=e.memoizedProps,su=s&&fi(c.default,c.update)!==`none`,Tu(t,e,n),Ou(e),s&&r!==null&&Bt&&(e.flags|=4),su=o,Bt=i;break;case 21:break;case 7:i&512&&(tu||r===null||Cl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Tu(t,e,n),Ou(e)}}function Ou(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(jl(r)){n=r;break}r=r.return}r=null;for(var i=e.return;i!==null;){if(Ol(i)){var o=i.stateNode;r===null?r=[o]:r.push(o)}if(Dl(i))break;i=i.return}var s=r;if(n==null)throw Error(a(160));switch(n.tag){case 27:var c=n.stateNode;Pl(e,Ml(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(an(l,``),n.flags&=-33),Pl(e,Ml(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Nl(e,Ml(e),u,s);break;default:throw Error(a(161))}}catch(t){gf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ku(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ku(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,yh=!0,t.reset(),yh=!1),e=e.sibling}}function Au(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)ju(t,e),t=t.sibling;else $l(t,!1)}function ju(e,t){var n=e.alternate;if(n===null)Gl(e,!1);else switch(e.tag){case 3:if(lu=ou=!1,zl(),Au(t,e),!ou&&!cu){if(e=Rl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];jp(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),lu=!0}Rl=null;break;case 5:Au(t,e);break;case 4:r=ou,ou=!1,Au(t,e),ou&&(cu=!0),ou=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Au(t,e):Gl(e,!1));break;case 30:r=ou,i=zl(),ou=!1,Au(t,e),ou&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=ui(a,o),o=ui(n.memoizedProps,o);var s=fi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Bl=0,t=Ql(e,n,t,o,s,a,!0),Bl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Fd(e,e.memoizedProps.onUpdate),Rl=i):i!==null&&(i.push.apply(i,Rl),Rl=i),ou=e.flags&32?!0:r;break;default:Au(t,e)}}function Mu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)fu(e,t.alternate,t),t=t.sibling}function Nu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:yl(4,n,n.return),Nu(n,r);break;case 1:Cl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&xl(n,n.return,i),Nu(n,r);break;case 27:r&2&&ym(n.stateNode,n.type,n.memoizedProps);case 5:Cl(n,n.return),n.tag!==5&&n.tag!==27||El(n),Nu(n,r);break;case 6:El(n);break;case 26:Cl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||tu||i.parentNode.removeChild(i),Nu(n,r);break;case 22:n.memoizedState===null&&Nu(n,r);break;case 30:Cl(n,n.return),Nu(n,r);break;case 7:Cl(n,n.return);default:Nu(n,r)}e=e.sibling}}function Pu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Pu(i,a,n),vl(4,a);break;case 1:if(Pu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){gf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)vo(l[i],c)}catch(e){gf(r,r.return,e)}}s&&o&64&&bl(a),Sl(a,a.return);break;case 27:n&2&&Fl(a);case 5:a.tag!==5&&a.tag!==27||Tl(a),Pu(i,a,n),s&&r===null&&o&4&&kl(a),Sl(a,a.return);break;case 6:Tl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||eu||Ym(Cm(c.ownerDocument),a.type,c),Pu(i,a,n),s&&r===null&&o&4&&kl(a),Sl(a,a.return);break;case 12:Pu(i,a,n);break;case 31:Pu(i,a,n),s&&o&4&&xu(i,a);break;case 13:Pu(i,a,n),s&&o&4&&Su(i,a);break;case 22:a.memoizedState===null&&Pu(i,a,n),Sl(a,a.return);break;case 30:Pu(i,a,n),Sl(a,a.return);break;case 7:Sl(a,a.return);default:Pu(i,a,n)}t=t.sibling}}function Fu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Da(n))}function Iu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Da(e))}function Lu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Ru(e,t,n,r),t=t.sibling;else i&&Zl(t)}function Ru(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Xl(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Lu(e,t,n,r),a&2048&&vl(9,t);break;case 1:Lu(e,t,n,r);break;case 3:Lu(e,t,n,r),i&&lu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Da(a)));break;case 12:if(a&2048){Lu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){gf(t,t.return,e)}}else Lu(e,t,n,r);break;case 31:Lu(e,t,n,r);break;case 13:Lu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&Xl(t),o._visibility&2?Lu(e,t,n,r):(o._visibility|=2,zu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&Xl(s),o._visibility&2?Lu(e,t,n,r):Bu(e,t)),a&2048&&Fu(s,t);break;case 24:Lu(e,t,n,r),a&2048&&Iu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Ul(a.child,!0),Ul(t.child,!0))),Lu(e,t,n,r);break;default:Lu(e,t,n,r)}}function zu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:zu(a,o,s,c,i),vl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,zu(a,o,s,c,i)):u._visibility&2?zu(a,o,s,c,i):Bu(a,o),i&&l&2048&&Fu(o.alternate,o);break;case 24:zu(a,o,s,c,i),i&&l&2048&&Iu(o.alternate,o);break;default:zu(a,o,s,c,i)}t=t.sibling}}function Bu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Bu(n,r),i&2048&&Fu(r.alternate,r);break;case 24:Bu(n,r),i&2048&&Iu(r.alternate,r);break;default:Bu(n,r)}t=t.sibling}}var Vu=8192;function Hu(e,t,n){if(e.subtreeFlags&Vu)for(e=e.child;e!==null;)Uu(e,t,n),e=e.sibling}function Uu(e,t,n){switch(e.tag){case 26:Hu(e,t,n),e.flags&Vu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&eh(n,e)):th(n,Eu,e.memoizedState,e.memoizedProps));break;case 5:Hu(e,t,n),e.flags&Vu&&(e=e.stateNode,(t&335544128)===t&&eh(n,e));break;case 3:case 4:var r=Eu;Eu=Cm(e.stateNode.containerInfo),Hu(e,t,n),Eu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Vu,Vu=16777216,Hu(e,t,n),Vu=r):Hu(e,t,n));break;case 30:if((e.flags&Vu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Ll===null&&(Ll=new Map),Ll.set(r,i)}Hu(e,t,n);break;default:Hu(e,t,n)}}function Wu(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Gu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];au=r,Ju(r,e)}Wu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ku(e),e=e.sibling}function Ku(e){switch(e.tag){case 0:case 11:case 15:Gu(e),e.flags&2048&&yl(9,e,e.return);break;case 3:Gu(e);break;case 12:Gu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,qu(e)):Gu(e);break;default:Gu(e)}}function qu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];au=r,Ju(r,e)}Wu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:yl(8,t,t.return),qu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,qu(t));break;default:qu(t)}e=e.sibling}}function Ju(e,t){for(;au!==null;){var n=au;switch(n.tag){case 0:case 11:case 15:yl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Da(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,au=r;else a:for(n=e;au!==null;){r=au;var i=r.sibling,a=r.return;if(gu(r),r===n){au=null;break a}if(i!==null){i.return=a,au=i;break a}au=a}}}var Yu={getCacheForType:function(e){var t=ya(Ta),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ya(Ta).controller.signal}},Xu=typeof WeakMap==`function`?WeakMap:Map,Zu=0,Qu=null,$u=null,ed=0,td=0,nd=null,rd=!1,id=!1,ad=!1,od=0,sd=0,cd=0,ld=0,ud=0,dd=0,fd=0,pd=null,md=null,hd=!1,gd=0,_d=0,vd=1/0,yd=null,bd=null,xd=0,Sd=null,Cd=null,wd=0,Td=0,Ed=null,Dd=null,Od=null,kd=null,Ad=null,jd=0,Md=null;function Nd(){return Zu&2&&ed!==0?ed&-ed:B.T===null?pt():Lf()}function Pd(){if(dd===0){if(!(ed&536870912)||Qi){var e=Qe;Qe<<=1,!(Qe&3932160)&&(Qe=262144),dd=e}else dd=536870912}return e=To.current,e!==null&&(e.flags|=32),dd}function Fd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=zp(ui(e.memoizedProps,n))),kd===null&&(kd=[]),kd.push(t.bind(null,r))}}function Id(e,t,n){(e===Qu&&(td===2||td===9)||e.cancelPendingCommit!==null)&&(Ud(e,0),Bd(e,ed,dd,!1)),ot(e,n),(!(Zu&2)||e!==Qu)&&(e===Qu&&(!(Zu&2)&&(ld|=n),sd===4&&Bd(e,ed,dd,!1)),kf(e))}function Ld(e,t,n){if(Zu&6)throw Error(a(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||U(e,t),i=r?Zd(e,t):Yd(e,t,!0),o=r;do{if(i===0){id&&!r&&Bd(e,t,0,!1);break}if(n=e.current.alternate,o&&!zd(n)){i=Yd(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;i=pd;var l=c.current.memoizedState.isDehydrated;if(l&&(Ud(c,s).flags|=256),s=Yd(c,s,!1),s!==2&&s!==6){if(ad&&!l){c.errorRecoveryDisabledLanes|=o,ld|=o,i=4;break a}o=md,md=i,o!==null&&(md===null?md=o:md.push.apply(md,o))}i=s}if(o=!1,i!==2)continue}}if(i===1){Ud(e,0),Bd(e,t,0,!0);break}a:{switch(r=e,o=i,o){case 0:case 1:throw Error(a(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Bd(r,t,dd,!rd);break a;case 2:md=null;break;case 3:case 5:break;default:throw Error(a(329))}if((t&62914560)===t&&(i=gd+300-Fe(),10<i)){if(Bd(r,t,dd,!rd),tt(r,0,!0)!==0)break a;wd=t,r.timeoutHandle=xp(Rd.bind(null,r,n,md,yd,hd,t,dd,ld,fd,rd,o,`Throttled`,-0,0),i);break a}Rd(r,n,md,yd,hd,t,dd,ld,fd,rd,o,null,-0,0)}break}while(1);kf(e)}function Rd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;if(d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pn},Ll=null,Uu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=ah.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?gd-Fe():(a&4194048)===a?_d-Fe():0,m=rh(d,m),m!==null)){wd=a,e.cancelPendingCommit=m(af.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Bd(e,a,o,!l);return}af(e,t,a,n,r,i,o,s,c,l,u,d)}function zd(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Fr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Bd(e,t,n,r){t=nt(e,t),t&=~ud,t&=~ld,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-qe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&ct(e,n,t)}function Vd(){return Zu&6?!0:(Af(0,!1),!1)}function Hd(){if($u!==null){if(td===0)var e=$u.return;else e=$u,da=ua=null,es(e),$a=null,eo=0,e=$u;for(;e!==null;)_l(e.alternate,e),e=e.return;$u=null}}function Ud(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,Sp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),wd=0,Hd(),Qu=e,$u=n=Di(e.current,null),ed=t,td=0,nd=null,rd=!1,id=U(e,t),ad=!1,fd=dd=ud=ld=cd=sd=0,md=pd=null,hd=!1,od=nt(e,t),_i(),n}function Wd(e,t){q=null,B.H=uc,t===Ua||t===Ga?(t=Za(),td=3):t===Wa?(t=Za(),td=4):td=t===Oc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,nd=t,$u===null&&(sd=1,Sc(e,Fi(t,e.current)))}function Gd(){var e=To.current;return e===null?!0:(ed&4194048)===ed?Eo===null:(ed&62914560)===ed||ed&536870912?e===Eo:!1}function Kd(){var e=B.H;return B.H=uc,e===null?uc:e}function qd(){var e=B.A;return B.A=Yu,e}function Jd(){sd=4,rd||(ed&4194048)!==ed&&To.current!==null||(id=!0),!(cd&134217727)&&!(ld&134217727)||Qu===null||Bd(Qu,ed,dd,!1)}function Yd(e,t,n){var r=Zu;Zu|=2;var i=Kd(),a=qd();(Qu!==e||ed!==t)&&(yd=null,Ud(e,t)),t=!1;var o=sd;a:do try{if(td!==0&&$u!==null){var s=$u,c=nd;switch(td){case 8:Hd(),o=6;break a;case 3:case 2:case 9:case 6:To.current===null&&(t=!0);var l=td;if(td=0,nd=null,tf(e,s,c,l),n&&id){o=0;break a}break;default:l=td,td=0,nd=null,tf(e,s,c,l)}}Xd(),o=sd;break}catch(t){Wd(e,t)}while(1);return t&&e.shellSuspendCounter++,da=ua=null,Zu=r,B.H=i,B.A=a,$u===null&&(Qu=null,ed=0,_i()),o}function Xd(){for(;$u!==null;)$d($u)}function Zd(e,t){var n=Zu;Zu|=2;var r=Kd(),i=qd();Qu!==e||ed!==t?(yd=null,vd=Fe()+500,Ud(e,t)):id=U(e,t);a:do try{if(td!==0&&$u!==null){t=$u;var o=nd;b:switch(td){case 1:td=0,nd=null,tf(e,t,o,1);break;case 2:case 9:if(qa(o)){td=0,nd=null,ef(t);break}t=function(){td!==2&&td!==9||Qu!==e||(td=7),kf(e)},o.then(t,t);break a;case 3:td=7;break a;case 4:td=5;break a;case 7:qa(o)?(td=0,nd=null,ef(t)):(td=0,nd=null,tf(e,t,o,7));break;case 5:var s=null;switch($u.tag){case 26:s=$u.memoizedState;case 5:case 27:var c=$u;if(s?Qm(s):c.stateNode.complete){td=0,nd=null;var l=c.sibling;if(l!==null)$u=l;else{var u=c.return;u===null?$u=null:($u=u,nf(u))}break b}}td=0,nd=null,tf(e,t,o,5);break;case 6:td=0,nd=null,tf(e,t,o,6);break;case 8:Hd(),sd=6;break a;default:throw Error(a(462))}}Qd();break}catch(t){Wd(e,t)}while(1);return da=ua=null,B.H=r,B.A=i,Zu=n,$u===null?(Qu=null,ed=0,_i(),sd):0}function Qd(){for(;$u!==null&&!Ne();)$d($u)}function $d(e){var t=cl(e.alternate,e,od);e.memoizedProps=e.pendingProps,t===null?nf(e):$u=t}function ef(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Hc(n,t,t.pendingProps,t.type,void 0,ed);break;case 11:t=Hc(n,t,t.pendingProps,t.type.render,t.ref,ed);break;case 5:es(t);var r=t;r===Xi&&(Qi?(ia(r),r.tag===5&&r.stateNode!=null&&(Zi=r.stateNode)):(ia(r),Qi=!0));default:_l(n,t),t=$u=Oi(t,od),t=cl(n,t,od)}e.memoizedProps=e.pendingProps,t===null?nf(e):$u=t}function tf(e,t,n,r){da=ua=null,es(t),$a=null,eo=0;var i=t.return;try{if(Dc(e,i,t,n,ed)){sd=1,Sc(e,Fi(n,e.current)),$u=null;return}}catch(t){if(i!==null)throw $u=i,t;sd=1,Sc(e,Fi(n,e.current)),$u=null;return}t.flags&32768?(Qi||r===1?e=!0:id||ed&536870912?e=!1:(rd=e=!0,(r===2||r===9||r===3||r===6)&&(r=To.current,r!==null&&r.tag===13&&(r.flags|=16384))),rf(t,e)):nf(t)}function nf(e){var t=e;do{if(t.flags&32768){rf(t,rd);return}e=t.return;var n=hl(t.alternate,t,od);if(n!==null){$u=n;return}if(t=t.sibling,t!==null){$u=t;return}$u=t=e}while(t!==null);sd===0&&(sd=5)}function rf(e,t){do{var n=gl(e.alternate,e);if(n!==null){n.flags&=32767,$u=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){$u=e;return}$u=e=n}while(e!==null);sd=6,$u=null}function af(e,t,n,r,i,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do pf();while(xd!==0);if(Zu&6)throw Error(a(327));if(t!==null){if(t===e.current)throw Error(a(177));e===Qu&&($u=Qu=null,ed=0),Cd=t,Sd=e,wd=n,Ed=i,Dd=r,of(e,t,n,s,c,l,f)}}function of(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Td=s,s|=gi,st(e,n,s,r,i,a),kd=null,(n&335544064)===n?(Ad=Aa(e),r=10262):(Ad=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,Sf(ze,function(){return mf(),null})):(e.callbackNode=null,e.callbackPriority=0),Il=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=B.T,B.T=null,i=V.p,V.p=2,a=Zu,Zu|=4;try{uu(e,t,n)}finally{Zu=a,V.p=i,B.T=r}}xd=1,Il?Od=Lp(o,e.containerInfo,Ad,lf,uf,cf,df,mf,sf,null,null):(lf(),uf(),df())}function sf(e){if(xd!==0){var t=Sd.onRecoverableError;t(e,{componentStack:null})}}function cf(){xd===3&&(xd=0,ju(Cd,Sd),xd=4)}function lf(){if(xd===1){xd=0;var e=Sd,t=Cd,n=wd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=B.T,B.T=null;var i=V.p;V.p=2;var a=Zu;Zu|=4;try{su=cu=!1,Du(t,e,n),n=pp;var o=Br(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&zr(s.ownerDocument.documentElement,s)){if(c!==null&&Vr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Rr(s,h),v=Rr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}yh=!!fp,pp=fp=null}finally{Zu=a,V.p=i,B.T=r}}e.current=t,xd=2}}function uf(){if(xd===2){xd=0;var e=Sd,t=Cd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=B.T,B.T=null;var r=V.p;V.p=2;var i=Zu;Zu|=4;try{fu(e,t.alternate,t)}finally{Zu=i,V.p=r,B.T=n}}xd=3}}function df(){if(xd===4||xd===3){xd=0;var e=Od;Od=null,Pe();var t=Sd,n=Cd,r=wd,i=Dd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?xd=5:(xd=0,Cd=Sd=null,ff(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(bd=null),ft(r),n=n.stateNode,Ge&&typeof Ge.onCommitFiberRoot==`function`)try{Ge.onCommitFiberRoot(We,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=B.T,a=V.p,V.p=2,B.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{B.T=n,V.p=a}}if(i=kd,o=Ad,Ad=null,i!==null&&(kd=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);wd&3&&pf(),kf(t),a=t.pendingLanes,r&261930&&a&42?t===Md?jd++:(jd=0,Md=t):(jd=0,Md=null),Af(0,!1)}}function ff(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Da(t)))}function pf(){return Od!==null&&(Od.skipTransition(),Od=null),lf(),uf(),df(),mf()}function mf(){if(xd!==5)return!1;var e=Sd,t=Td;Td=0;var n=ft(wd),r=B.T,i=V.p;try{V.p=32>n?32:n,B.T=null,n=Ed,Ed=null;var o=Sd,s=wd;if(xd=0,Cd=Sd=null,wd=0,Zu&6)throw Error(a(331));var c=Zu;if(Zu|=4,Ku(o.current),Ru(o,o.current,s,n),Zu=c,Af(0,!1),Ge&&typeof Ge.onPostCommitFiberRoot==`function`)try{Ge.onPostCommitFiberRoot(We,o)}catch{}return!0}finally{V.p=i,B.T=r,ff(e,t)}}function hf(e,t,n){t=Fi(n,t),t=wc(e.stateNode,t,2),e=fo(e,t,2),e!==null&&(ot(e,2),kf(e))}function gf(e,t,n){if(e.tag===3)hf(e,e,n);else for(;t!==null;){if(t.tag===3){hf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(bd===null||!bd.has(r))){e=Fi(n,e),n=Tc(2),r=fo(t,n,2),r!==null&&(Ec(n,r,t,e),ot(r,2),kf(r));break}}t=t.return}}function _f(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Xu;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ad=!0,i.add(n),e=vf.bind(null,e,t,n),t.then(e,e))}function vf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Qu===e&&(ed&n)===n&&(sd===4||sd===3&&(ed&62914560)===ed&&300>Fe()-gd?Zu&2?ud|=n:Ud(e,0):ud|=n,fd===ed&&(fd=0)),kf(e)}function yf(e,t){t===0&&(t=it()),e=bi(e,t),e!==null&&(ot(e,t),kf(e))}function bf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),yf(e,n)}function xf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),yf(e,n)}function Sf(e,t){return je(e,t)}var Cf=null,wf=null,Tf=!1,Ef=!1,Df=!1,Of=0;function kf(e){e!==wf&&e.next===null&&(wf===null?Cf=wf=e:wf=wf.next=e),Ef=!0,Tf||(Tf=!0,If())}function Af(e,t){if(!Df&&Ef){Df=!0;do for(var n=!1,r=Cf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-qe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Ff(r,a))}else a=ed,a=tt(r,r===Qu?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||U(r,a)||(n=!0,Ff(r,a))}r=r.next}while(n);Df=!1}}function jf(){Mf()}function Mf(){Ef=Tf=!1;var e=0;Of!==0&&bp()&&(e=Of);for(var t=Fe(),n=null,r=Cf;r!==null;){var i=r.next,a=Nf(r,t);a===0?(r.next=null,n===null?Cf=i:n.next=i,i===null&&(wf=n)):(n=r,(e!==0||a&3)&&(Ef=!0)),r=i}xd!==0&&xd!==5||Af(e,!1),Of!==0&&(Of=0)}function Nf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-qe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=rt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Qu,n=ed,n=tt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(td===2||td===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Me(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||U(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Me(r),ft(n)){case 2:case 8:n=Re;break;case 32:n=ze;break;case 268435456:n=Ve;break;default:n=ze}return r=Pf.bind(null,e),n=je(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Me(r),e.callbackPriority=2,e.callbackNode=null,2}function Pf(e,t){if(xd!==0&&xd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(pf()&&e.callbackNode!==n)return null;var r=ed;return r=tt(e,e===Qu?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Ld(e,r,t),Nf(e,Fe()),e.callbackNode!=null&&e.callbackNode===n?Pf.bind(null,e):null)}function Ff(e,t){if(pf())return null;Ld(e,t,!0)}function If(){Tp(function(){Zu&6?je(Le,jf):Mf()})}function Lf(){if(Of===0){var e=Na;e===0&&(e=Ze,Ze<<=1,!(Ze&261888)&&(Ze=256)),Of=e}return Of}function Rf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:fn(e)}function zf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Rf((i[_t]||null).action),o=r.submitter;o&&(t=(t=o[_t]||null)?Rf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Pn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Of!==0){var e=new FormData(i,o);Xs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Xs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Bf=0;Bf<si.length;Bf++){var Vf=si[Bf];ci(Vf.toLowerCase(),`on`+(Vf[0].toUpperCase()+Vf.slice(1)))}ci($r,`onAnimationEnd`),ci(ei,`onAnimationIteration`),ci(ti,`onAnimationStart`),ci(`dblclick`,`onDoubleClick`),ci(`focusin`,`onFocus`),ci(`focusout`,`onBlur`),ci(ni,`onTransitionRun`),ci(ri,`onTransitionStart`),ci(ii,`onTransitionCancel`),ci(ai,`onTransitionEnd`),Ft(`onMouseEnter`,[`mouseout`,`mouseover`]),Ft(`onMouseLeave`,[`mouseout`,`mouseover`]),Ft(`onPointerEnter`,[`pointerout`,`pointerover`]),Ft(`onPointerLeave`,[`pointerout`,`pointerover`]),Pt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Pt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Pt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Pt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Pt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Pt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Hf=`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(` `),Uf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Hf));function Wf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){pi(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){pi(e)}i.currentTarget=null,a=c}}}}function Gf(e,t){var n=t[yt];n===void 0&&(n=t[yt]=new Set);var r=e+`__bubble`;n.has(r)||(Yf(t,e,2,!1),n.add(r))}function Kf(e,t,n){var r=0;t&&(r|=4),Yf(n,e,r,t)}var qf=`_reactListening`+Math.random().toString(36).slice(2);function Jf(e){if(!e[qf]){e[qf]=!0,Mt.forEach(function(t){t!==`selectionchange`&&(Uf.has(t)||Kf(t,!1,e),Kf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qf]||(t[qf]=!0,Kf(`selectionchange`,!1,t))}}function Yf(e,t,n,r){switch(Eh(t)){case 2:var i=bh;break;case 8:i=xh;break;default:i=Sh}n=i.bind(null,t,n,e),i=void 0,!Cn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Xf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var c=r.stateNode.containerInfo;if(c===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;c!==null;){if(o=Et(c),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}c=c.parentNode}}r=r.return}bn(function(){var r=a,i=hn(n),o=[];a:{var c=oi.get(e);if(c!==void 0){var l=Pn,u=e;switch(e){case`keypress`:if(kn(n)===0)break a;case`keydown`:case`keyup`:l=Zn;break;case`focusin`:u=`focus`,l=Hn;break;case`focusout`:u=`blur`,l=Hn;break;case`beforeblur`:case`afterblur`:l=Hn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Bn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Vn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=er;break;case $r:case ei:case ti:l=Un;break;case ai:l=tr;break;case`scroll`:case`scrollend`:l=In;break;case`wheel`:l=nr;break;case`copy`:case`cut`:case`paste`:l=Wn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Qn;break;case`submit`:l=$n;break;case`toggle`:case`beforetoggle`:l=rr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=xn(m,p),g!=null&&d.push(Zf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),o.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==mn&&(u=n.relatedTarget||n.fromElement)&&(Et(u)||u[vt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Et(l):null,l!==null&&(f=s(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Bn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Qn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Ot(c),h=l==null?u:Ot(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Et(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?T(c,l,$f):null,c!==null&&ep(o,u,c,d,!1),l!==null&&f!==null&&ep(o,f,l,d,!0)))}a:{if(c=r?Ot(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=wr;else if(_r(c)){if(Tr)_=Nr;else{_=Mr;var v=jr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&ln(r.elementType)&&(_=wr):_=G;if(_&&=_(e,r)){vr(o,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Ot(r):window,e){case`focusin`:(_r(v)||v.contentEditable===`true`)&&(Ur=v,Wr=r,Gr=null);break;case`focusout`:Gr=Wr=Ur=null;break;case`mousedown`:Kr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Kr=!1,qr(o,n,i);break;case`selectionchange`:if(Hr)break;case`keydown`:case`keyup`:qr(o,n,i)}var y;if(ar)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else pr?dr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(cr&&n.locale!==`ko`&&(pr||b!==`onCompositionStart`?b===`onCompositionEnd`&&pr&&(y=On()):(Tn=i,En=`value`in Tn?Tn.value:Tn.textContent,pr=!0)),v=Qf(r,b),0<v.length&&(b=new Gn(b,e,null,n,i),o.push({event:b,listeners:v}),y?b.data=y:(y=fr(n),y!==null&&(b.data=y)))),(y=sr?mr(e,n):hr(e,n))&&(b=Qf(r,`onBeforeInput`),0<b.length&&(v=new Gn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:v,listeners:b}),v.data=y)),zf(o,e,r,n,i)}Wf(o,t)})}function Zf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qf(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=xn(e,n),i!=null&&r.unshift(Zf(e,i,a)),i=xn(e,t),i!=null&&r.push(Zf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function $f(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ep(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=xn(n,a),l!=null&&o.unshift(Zf(n,l,c))):i||(l=xn(n,a),l!=null&&o.push(Zf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var tp=/\r\n?/g,np=/\u0000|\uFFFD/g;function rp(e){return(typeof e==`string`?e:``+e).replace(tp,`
|
|
10
|
+
`).replace(np,``)}function ip(e,t){return t=rp(t),rp(e)===t}function ap(e,t,n,r,i,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||an(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&an(e,``+r);else return;break;case`className`:Ut(e,`class`,r);break;case`tabIndex`:Ut(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ut(e,n,r);break;case`style`:cn(e,r,o);return;case`data`:if(t!==`object`){Ut(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=fn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&ap(e,t,`name`,i.name,i,null),ap(e,t,`formEncType`,i.formEncType,i,null),ap(e,t,`formMethod`,i.formMethod,i,null),ap(e,t,`formTarget`,i.formTarget,i,null)):(ap(e,t,`encType`,i.encType,i,null),ap(e,t,`method`,i.method,i,null),ap(e,t,`target`,i.target,i,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=fn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=pn);return;case`onScroll`:r!=null&&Gf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Gf(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=fn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`: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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Gf(`beforetoggle`,e),Gf(`toggle`,e),Ht(e,`popover`,r);break;case`xlinkActuate`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Ht(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=un.get(n)||n,Ht(e,n,r);else return}Bt=!0}function op(e,t,n,r,i,o){switch(n){case`style`:cn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)an(e,r);else if(typeof r==`number`||typeof r==`bigint`)an(e,``+r);else return;break;case`onScroll`:r!=null&&Gf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Gf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=pn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Nt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),o=n.slice(2,i?n.length-7:void 0),t=e[_t]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,i),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,i);break a}Bt=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Ht(e,n,r)}return}Bt=!0}function sp(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Gf(`error`,e),Gf(`load`,e);var r=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:ap(e,t,o,s,n,null)}}i&&ap(e,t,`srcSet`,n.srcSet,n,null),r&&ap(e,t,`src`,n.src,n,null);return;case`input`:Gf(`invalid`,e);var c=o=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(a(137,t));break;default:ap(e,t,r,d,n,null)}}$t(e,o,c,l,u,s,i,!1);return;case`select`:for(i in Gf(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:ap(e,t,i,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&tn(e,!!r,n,!0):tn(e,!!r,t,!1);return;case`textarea`:for(s in Gf(`invalid`,e),o=i=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(a(91));break;default:ap(e,t,s,c,n,null)}rn(e,r,i,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:ap(e,t,l,r,n,null)}return;case`dialog`:Gf(`beforetoggle`,e),Gf(`toggle`,e),Gf(`cancel`,e),Gf(`close`,e);break;case`iframe`:case`object`:Gf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Hf.length;r++)Gf(Hf[r],e);break;case`image`:Gf(`error`,e),Gf(`load`,e);break;case`details`:Gf(`toggle`,e);break;case`embed`:case`source`:case`link`:Gf(`error`,e),Gf(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:ap(e,t,u,r,n,null)}return;default:if(ln(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&op(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&ap(e,t,c,r,n,null))}var cp={};function lp(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||ap(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(Bt=!0),o=m;break;case`name`:m!==f&&(Bt=!0),i=m;break;case`checked`:m!==f&&(Bt=!0),u=m;break;case`defaultChecked`:m!==f&&(Bt=!0),d=m;break;case`value`:m!==f&&(Bt=!0),s=m;break;case`defaultValue`:m!==f&&(Bt=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(a(137,t));break;default:m!==f&&ap(e,t,p,m,r,f)}}Qt(e,s,c,l,u,d,o,i);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||ap(e,t,o,null,r,l)}for(i in r)if(o=r[i],l=n[i],r.hasOwnProperty(i)&&(o!=null||l!=null))switch(i){case`value`:o!==l&&(Bt=!0),p=o;break;case`defaultValue`:o!==l&&(Bt=!0),c=o;break;case`multiple`:o!==l&&(Bt=!0),s=o;default:o!==l&&ap(e,t,i,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?tn(e,!!n,n?[]:``,!1):tn(e,!!n,t,!0)):tn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:ap(e,t,c,null,r,i)}for(s in r)if(i=r[s],o=n[s],r.hasOwnProperty(s)&&(i!=null||o!=null))switch(s){case`value`:i!==o&&(Bt=!0),p=i;break;case`defaultValue`:i!==o&&(Bt=!0),m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(a(91));break;default:i!==o&&ap(e,t,s,i,r,o)}nn(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:ap(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(Bt=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:ap(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&ap(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(a(137,t));break;default:ap(e,t,u,p,r,m)}return;default:if(ln(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&op(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||op(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&ap(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||ap(e,t,f,p,r,m)}function up(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function dp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&up(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&up(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var fp=null,pp=null;function mp(e){return e.nodeType===9?e:e.ownerDocument}function hp(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function gp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function _p(e,t,n,r){return n=mp(n).createElement(e),n[gt]=r,n[_t]=t,sp(n,e,t),At(n),n}function vp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var yp=null;function bp(){var e=window.event;return e&&e.type===`popstate`?e!==yp&&(yp=e,!0):(yp=null,!1)}var xp=typeof setTimeout==`function`?setTimeout:void 0,Sp=typeof clearTimeout==`function`?clearTimeout:void 0,Cp=typeof Promise==`function`?Promise:void 0,wp=typeof requestAnimationFrame==`function`?requestAnimationFrame:xp,Tp=typeof queueMicrotask==`function`?queueMicrotask:Cp===void 0?xp:function(e){return Cp.resolve(null).then(e).catch(Ep)};function Ep(e){setTimeout(function(){throw e})}function Dp(e){return e===`head`}function Op(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Gh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)bm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,bm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Ct]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&bm(e.ownerDocument.body)}n=i}while(n);Gh(t)}function kp(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Ap(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function jp(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Mp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Np(e){return Mp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Pp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Mp(t,n,e)}function Fp(e){return e.documentElement.clientHeight}function Ip(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Lp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Fp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=$m(f),u>nh){s.length=o;break}f=new Promise(Ip.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Rp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Rp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:E({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Rp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Rp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function zp(e){return{name:e,group:new Rp(`group`,e),imagePair:new Rp(`image-pair`,e),old:new Rp(`old`,e),new:new Rp(`new`,e)}}function Bp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Bp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Gp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Up(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),m(this._fragmentFiber.child,!1,Vp,e,s,r)}this._eventListeners=a}};function Vp(e,t,n,r){return y(e).addEventListener(t,n,r),!1}Bp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Gp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Up(i.optionsOrUseCapture),m(this._fragmentFiber.child,!1,Hp,e,n,i),r.splice(t,1),a!==null&&a()}};function Hp(e,t,n,r){return y(e).removeEventListener(t,n,r),!1}function Up(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Wp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Gp(e,t,n,r){if(e.length===0)return-1;r=Wp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Wp(a.optionsOrUseCapture)===r)return i}return-1}Bp.prototype.dispatchEvent=function(e){var t=h(this._fragmentFiber);if(t===null)return!0;t=y(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Up(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Up(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Bp.prototype.focus=function(e){m(this._fragmentFiber.child,!0,Kp,e,void 0,void 0)};function Kp(e,t){return e.tag!==6&&(e=y(e),gm(e,t))}Bp.prototype.focusLast=function(e){var t=[];m(this._fragmentFiber.child,!0,qp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Kp(t[n],e);n--);};function qp(e,t){return t.push(e),!1}Bp.prototype.blur=function(){var e=h(this._fragmentFiber);e!==null&&(e=y(e),e=mp(e).activeElement,e!==null&&m(this._fragmentFiber.child,!1,Jp,e,void 0,void 0))};function Jp(e,t){return e.tag!==6&&(e=y(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Bp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),m(this._fragmentFiber.child,!1,Yp,e,void 0,void 0)};function Yp(e,t){return e.tag!==6&&(e=y(e),t.observe(e),!1)}Bp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),m(this._fragmentFiber.child,!1,Xp,e,void 0,void 0);for(var n=t=0;n<Zp.length;n++){var r=Zp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Zp[t++]=r}Zp.length=t}};function Xp(e,t){return e.tag!==6&&(e=y(e),t.unobserve(e),!1)}var Zp=[],Qp=!1;function $p(e,t,n){Zp.push({fragmentInstance:e,observer:t,instance:n}),Qp||(Qp=!0,_m(function(){Qp=!1;var e=Zp;Zp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Bp.prototype.getClientRects=function(){var e=[];return m(this._fragmentFiber.child,!1,em,e,void 0,void 0),e};function em(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=y(e),t.push.apply(t,e.getClientRects());return!1}Bp.prototype.getRootNode=function(e){var t=h(this._fragmentFiber);return t===null?this:y(t).getRootNode(e)},Bp.prototype.compareDocumentPosition=function(e){var t=h(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];m(this._fragmentFiber.child,!1,qp,n,void 0,void 0);var r=y(t);if(n.length===0){if(n=r,g(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=_(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=y(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=y(n[0]),i=y(n[n.length-1]);var a=g(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||tm(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function tm(e,t,n,r,i){var a=Et(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=h(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=T(n,a,w),t===null?t=!1:(m(t,!0,S,a,n),a=b,b=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=T(r,a,w),t===null?t=!1:(m(t,!0,C,a,r),a=b,x=b=null,t=a!==null)),t):!1}function nm(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Bp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(a(566));var t=[];m(this._fragmentFiber.child,!1,qp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=_(this._fragmentFiber);if(r=n?r[1]||r[0]||h(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=y(r),nm(e,n);return}if(r=y(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var i=t[r];i.tag===6?(i=y(i),nm(i,n)):y(i).scrollIntoView(e),r+=n?-1:1}};function rm(e,t){return e=y(e),im(e,t),!1}function im(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function am(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Up(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Zp.length;i++){var a=Zp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Zp[r++]=a)}Zp.length=r,n.observe(e)}),im(e,t))}function om(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Up(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?$p(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function sm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:sm(n),Tt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function cm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[Ct])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=pm(e.nextSibling),e===null)break}return null}function Y(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=pm(e.nextSibling),e===null))return null;return e}function lm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=pm(e.nextSibling),e===null))return null;return e}function um(e){return e.data===`$?`||e.data===`$~`}function dm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function fm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function pm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var mm=null;function hm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return pm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function X(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function gm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function _m(e){wp(function(){wp(function(t){return e(t)})})}function vm(e,t,n){switch(t=mp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(a(452));return e;case`head`:if(e=t.head,!e)throw Error(a(453));return e;case`body`:if(e=t.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function ym(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&ap(e,t,r,null,cp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===pn&&(e.onclick=null),Tt(e)}function bm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Tt(e)}var xm=new Map,Sm=new Set;function Cm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var wm=V.d;V.d={f:Tm,r:Em,D:km,C:Am,L:jm,m:Mm,X:Pm,S:Nm,M:Fm};function Tm(){var e=wm.f(),t=Vd();return e||t}function Em(e){var t=Dt(e);t!==null&&t.tag===5&&t.type===`form`?Qs(t):wm.r(e)}var Dm=typeof document>`u`?null:document;function Om(e,t,n){var r=Dm;if(r&&typeof t==`string`&&t){var i=Zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Sm.has(i)||(Sm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),sp(t,`link`,e),At(t),r.head.appendChild(t)))}}function km(e){wm.D(e),Om(`dns-prefetch`,e,null)}function Am(e,t){wm.C(e,t),Om(`preconnect`,e,t)}function jm(e,t,n){wm.L(e,t,n);var r=Dm;if(r&&e&&t){var i=`link[rel="preload"][as="`+Zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Zt(n.imageSizes)+`"]`)):i+=`[href="`+Zt(e)+`"]`;var a=i;switch(t){case`style`:a=Lm(e);break;case`script`:a=Vm(e)}if(!(xm.has(a)||(e=E({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),xm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Rm(a))||t===`script`&&r.querySelector(Hm(a))))){var o=r.createElement(`link`);sp(o,`link`,e),t===`style`&&(o[wt]=!0,o.onload=o.onerror=function(){jt(o)}),At(o),r.head.appendChild(o)}}}function Mm(e,t){wm.m(e,t);var n=Dm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Zt(r)+`"][href="`+Zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Vm(e)}if(!xm.has(a)&&(e=E({rel:`modulepreload`,href:e},t),xm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Hm(a)))return}r=n.createElement(`link`),sp(r,`link`,e),At(r),n.head.appendChild(r)}}}function Nm(e,t,n){wm.S(e,t,n);var r=Dm;if(r&&e){var i=kt(r).hoistableStyles,a=Lm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Rm(a)))s.loading=5;else{e=E({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=xm.get(a))&&Gm(e,n);var c=o=r.createElement(`link`);At(c),sp(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Wm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Pm(e,t){wm.X(e,t);var n=Dm;if(n&&e){var r=kt(n).hoistableScripts,i=Vm(e),a=r.get(i);a||(a=n.querySelector(Hm(i)),a||(e=E({src:e,async:!0},t),(t=xm.get(i))&&Km(e,t),a=n.createElement(`script`),At(a),sp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Fm(e,t){wm.M(e,t);var n=Dm;if(n&&e){var r=kt(n).hoistableScripts,i=Vm(e),a=r.get(i);a||(a=n.querySelector(Hm(i)),a||(e=E({src:e,async:!0,type:`module`},t),(t=xm.get(i))&&Km(e,t),a=n.createElement(`script`),At(a),sp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Im(e,t,n,r){var i=(i=ve.current)?Cm(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Lm(n.href),t=kt(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Lm(n.href);var o=kt(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(Rm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=xm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},xm.set(e,o)),Bm(i,e,o,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Vm(n),t=kt(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Lm(e){return`href="`+Zt(e)+`"`}function Rm(e){return`link[rel="stylesheet"][`+e+`]`}function zm(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function Bm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[wt]){r.loading=1;return}}else t=e.createElement(`link`),t[wt]=!0,t.onload=t.onerror=jt.bind(null,t),sp(t,`link`,n),At(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Vm(e){return`[src="`+Zt(e)+`"]`}function Hm(e){return`script[async]`+e}function Um(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Zt(n.href)+`"]`);if(r)return t.instance=r,At(r),r;var i=E({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),At(r),sp(r,`style`,i),Wm(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Lm(n.href);var o=e.querySelector(Rm(i));if(o)return t.state.loading|=4,t.instance=o,At(o),o;r=zm(n),(i=xm.get(i))&&Gm(r,i),o=(e.ownerDocument||e).createElement(`link`),At(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),sp(o,`link`,r),t.state.loading|=4,Wm(o,n.precedence,e),t.instance=o;case`script`:return o=Vm(n.src),(i=e.querySelector(Hm(o)))?(t.instance=i,At(i),i):(r=n,(i=xm.get(o))&&(r=E({},n),Km(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),At(i),sp(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Wm(r,n.precedence,e));return t.instance}function Wm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Gm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Km(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var qm=null;function Jm(e,t,n){if(qm===null){var r=new Map,i=qm=new Map;i.set(n,r)}else i=qm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Ct]||a[gt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Ym(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Xm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Zm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Qm(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function $m(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function eh(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=$m(t),e.suspenseyImages.push(t)),e=oh.bind(e),t.decode().then(e,e))}function th(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Lm(r.href),a=t.querySelector(Rm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ah.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,At(a);return}a=t.ownerDocument||t,r=zm(r),(i=xm.get(i))&&Gm(r,i),a=a.createElement(`link`),At(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),sp(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=ah.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var nh=0;function rh(e,t){return e.stylesheets&&e.count===0&&ch(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ch(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&nh===0&&(nh=62500*dp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ch(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>nh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ih(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ch(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ah(){this.count--,ih(this)}function oh(){this.imgCount--,ih(this)}var sh=null;function ch(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,sh=new Map,t.forEach(lh,e),sh=null,ah.call(e))}function lh(e,t){if(!(t.state.loading&4)){var n=sh.get(e);if(n)var r=n.get(null);else{n=new Map,sh.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=ah.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var uh={$$typeof:P,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function dh(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,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=at(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=at(0),this.hiddenUpdates=at(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function fh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new dh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Ti(3,null,null,t),e.current=a,a.stateNode=e,t=Ea(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},co(a),e}function ph(e){return e?(e=Ci,e):Ci}function mh(e,t,n,r,i,a){i=ph(i),r.context===null?r.context=i:r.pendingContext=i,r=uo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=fo(e,r,t),n!==null&&(Id(n,e,t),po(n,e,t))}function hh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gh(e,t){hh(e,t),(e=e.alternate)&&hh(e,t)}function _h(e){if(e.tag===13||e.tag===31){var t=bi(e,67108864);t!==null&&Id(t,e,67108864),gh(e,67108864)}}function vh(e){if(e.tag===13||e.tag===31){var t=Nd();t=dt(t);var n=bi(e,t);n!==null&&Id(n,e,t),gh(e,t)}}var yh=!0;function bh(e,t,n,r){var i=B.T;B.T=null;var a=V.p;try{V.p=2,Sh(e,t,n,r)}finally{V.p=a,B.T=i}}function xh(e,t,n,r){var i=B.T;B.T=null;var a=V.p;try{V.p=8,Sh(e,t,n,r)}finally{V.p=a,B.T=i}}function Sh(e,t,n,r){if(yh){var i=Ch(r);if(i===null)Xf(e,t,r,wh,n),Fh(e,r);else if(Lh(i,e,t,n,r))r.stopPropagation();else if(Fh(e,r),t&4&&-1<Ph.indexOf(e)){for(;i!==null;){var a=Dt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=et(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-qe(o);s.entanglements[1]|=c,o&=~c}kf(a),!(Zu&6)&&(vd=Fe()+500,Af(0,!1))}}break;case 31:case 13:s=bi(a,2),s!==null&&Id(s,a,2),Vd(),gh(a,2)}if(a=Ch(r),a===null&&Xf(e,t,r,wh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Xf(e,t,r,null,n)}}function Ch(e){return e=hn(e),Th(e)}var wh=null;function Th(e){if(wh=null,e=Et(e),e!==null){var t=s(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=c(t),e!==null)return e;e=null}else if(n===31){if(e=l(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return wh=e,null}function Eh(e){switch(e){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`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`fullscreenerror`: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`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ie()){case Le:return 2;case Re:return 8;case ze:case Be:return 32;case Ve:return 268435456;default:return 32}default:return 32}}var Dh=!1,Oh=null,kh=null,Ah=null,jh=new Map,Mh=new Map,Nh=[],Ph=`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 Fh(e,t){switch(e){case`focusin`:case`focusout`:Oh=null;break;case`dragenter`:case`dragleave`:kh=null;break;case`mouseover`:case`mouseout`:Ah=null;break;case`pointerover`:case`pointerout`:jh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Mh.delete(t.pointerId)}}function Ih(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Dt(t),t!==null&&_h(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Lh(e,t,n,r,i){switch(t){case`focusin`:return Oh=Ih(Oh,e,t,n,r,i),!0;case`dragenter`:return kh=Ih(kh,e,t,n,r,i),!0;case`mouseover`:return Ah=Ih(Ah,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return jh.set(a,Ih(jh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Mh.set(a,Ih(Mh.get(a)||null,e,t,n,r,i)),!0}return!1}function Rh(e){var t=Et(e.target);if(t!==null){var n=s(t);if(n!==null){if(t=n.tag,t===13){if(t=c(n),t!==null){e.blockedOn=t,mt(e.priority,function(){vh(n)});return}}else if(t===31){if(t=l(n),t!==null){e.blockedOn=t,mt(e.priority,function(){vh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function zh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ch(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);mn=r,n.target.dispatchEvent(r),mn=null}else return t=Dt(n),t!==null&&_h(t),e.blockedOn=n,!1;t.shift()}return!0}function Bh(e,t,n){zh(e)&&n.delete(t)}function Vh(){Dh=!1,Oh!==null&&zh(Oh)&&(Oh=null),kh!==null&&zh(kh)&&(kh=null),Ah!==null&&zh(Ah)&&(Ah=null),jh.forEach(Bh),Mh.forEach(Bh)}function Hh(e,t){e.blockedOn===t&&(e.blockedOn=null,Dh||(Dh=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Vh)))}var Uh=null;function Wh(e){Uh!==e&&(Uh=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Uh===e&&(Uh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Th(r||n)===null)continue;break}var a=Dt(n);a!==null&&(e.splice(t,3),t-=3,Xs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Gh(e){function t(t){return Hh(t,e)}Oh!==null&&Hh(Oh,e),kh!==null&&Hh(kh,e),Ah!==null&&Hh(Ah,e),jh.forEach(t),Mh.forEach(t);for(var n=0;n<Nh.length;n++){var r=Nh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Nh.length&&(n=Nh[0],n.blockedOn===null);)Rh(n),n.blockedOn===null&&Nh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[_t]||null;if(typeof a==`function`)o||Wh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[_t]||null)s=o.formAction;else if(Th(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Wh(n)}}}function Kh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function qh(e){this._internalRoot=e}Jh.prototype.render=qh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));var n=t.current;mh(n,Nd(),e,t,null,null)},Jh.prototype.unmount=qh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mh(e.current,2,null,e,null,null),Vd(),t[vt]=null}};function Jh(e){this._internalRoot=e}Jh.prototype.unstable_scheduleHydration=function(e){if(e){var t=pt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nh.length&&t!==0&&t<Nh[n].priority;n++);Nh.splice(n,0,e),n===0&&Rh(e)}};var Yh=r.version;if(Yh!==`19.3.0`)throw Error(a(527,Yh,`19.3.0`));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(a(188)):(e=Object.keys(e).join(`,`),Error(a(268,e)));return e=f(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var Xh={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:B,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Zh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zh.isDisabled&&Zh.supportsFiber)try{We=Zh.inject(Xh),Ge=Zh}catch{}}e.createRoot=function(e,t){if(!o(e))throw Error(a(299));var n=!1,r=``,i=yc,s=bc,c=xc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=fh(e,1,!1,null,null,n,r,null,i,s,c,Kh),e[vt]=t.current,Jf(e),new qh(t)}})),Tr=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=wr()})),Er=class extends rn{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Dr(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??(this.state.status===`pending`?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#r=Qt({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),i=this.state.status===`pending`,a=!r.canStart();try{if(i)t();else{this.#i({type:`pending`,variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:a})}let o=await r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:`success`,data:o}),o}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#r===r&&(this.#r=void 0),this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Gt.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Dr(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Or=class extends hn{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new Er({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=kr(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=kr(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=kr(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=kr(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Gt.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>pn(t,e))}findAll(e={}){return this.getAll().filter(t=>pn(e,t))}notify(e){Gt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Gt.batch(()=>Promise.all(e.map(e=>e.continue().catch(Rt))))}};function kr(e){return e.options.scope?.id}var Ar=class extends hn{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),Ft(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&mn(t.mutationKey)!==mn(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#n&&(this.#n.addObserver(this),this.#i())}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Dr();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){Gt.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},jr=class extends hn{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??Ut(r,t),a=this.get(i);return a||(a=new sn({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Gt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Wt(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Wt(e,t)):t}notify(e){Gt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Gt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Gt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Mr=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new jr,this.#t=e.mutationCache||new Or,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=fn.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Zt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(tn(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=qt(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Gt.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Gt.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Gt.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=Gt.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Rt).catch(Rt)}invalidateQueries(e,t={}){return Gt.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Gt.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Rt)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(Rt)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(tn(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(tn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Rt).catch(Rt)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Rt).catch(Rt)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Zt.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(mn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{Lt(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(mn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{Lt(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Ut(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===zt&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},G=e(t(),1);function Nr(e,t){return e.findAll(t.filters).map(e=>t.select?t.select(e):e.state)}function Pr(e={},t){let n=Ht(t).getMutationCache(),r=G.useRef(e),i=G.useRef(null);return i.current===null&&(i.current=Nr(n,e)),G.useEffect(()=>{r.current=e}),G.useSyncExternalStore(G.useCallback(e=>n.subscribe(()=>{let t=Vt(i.current,Nr(n,r.current));i.current!==t&&(i.current=t,Gt.schedule(e))}),[n]),()=>i.current,()=>i.current)}function Fr(e,t){let n=Ht(t),[r]=G.useState(()=>new Ar(n,e));G.useEffect(()=>{r.setOptions(e)},[r,e]);let i=G.useSyncExternalStore(G.useCallback(e=>r.subscribe(Gt.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=G.useCallback((...e)=>{r.mutate(e[0],e[1]).catch(Rt)},[r]);if(i.error&&en(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var Ir=e(Tr(),1),K=r(),Lr=`codeseshProfiler`,Rr=`codeseshProfilerLog`,zr=16,Br=500;function Vr(e){if(typeof window>`u`)return!1;try{return window.localStorage.getItem(e)===`1`}catch{return!1}}var Hr=Vr(Lr),Ur=Hr&&Vr(Rr);function Wr(){return Hr}function Gr(){return Ur}function Kr(e){let t=window.__CODESHESH_RENDER_PROFILE__??[];t.push(e),t.length>Br&&t.splice(0,t.length-Br),window.__CODESHESH_RENDER_PROFILE__=t}function qr(e){if(!Wr()||typeof window>`u`)return;let t=performance.now();Kr({...e,startTime:Jr(e.startTime??t),commitTime:Jr(e.commitTime??t),route:e.route??window.location.pathname})}function Jr(e){return Math.round(e*100)/100}function Yr({id:e,detail:t,children:n}){return Wr()?(0,K.jsx)(G.Profiler,{id:e,onRender:(e,n,r,i,a,o)=>{let s={id:e,source:`react-profiler`,phase:n,actualDuration:Jr(r),baseDuration:Jr(i),startTime:Jr(a),commitTime:Jr(o),route:window.location.pathname,...t?{detail:t}:{}};Kr(s),s.actualDuration>=zr&&Gr()&&Qn(`react.profiler.commit`,{profiler_id:s.id,source:s.source,phase:s.phase,actual_duration_ms:s.actualDuration,base_duration_ms:s.baseDuration,start_time_ms:s.startTime,commit_time_ms:s.commitTime})},children:(0,K.jsx)(Xr,{id:e,detail:t,children:n})}):n}function Xr({id:e,detail:t,children:n}){let r=performance.now(),i=(0,G.useRef)(0);return(0,G.useLayoutEffect)(()=>{i.current+=1;let n=performance.now();Kr({id:e,source:`commit-latency`,phase:i.current===1?`mount`:`update`,actualDuration:Jr(n-r),baseDuration:0,startTime:Jr(r),commitTime:Jr(n),route:window.location.pathname,...t?{detail:t}:{}})}),n}var Zr=dn.sessionDetails[0];function Qr(e){let t=e.getQueryCache(),n=t.getAll().map((e,t)=>({query:e,position:t})).filter(({query:e})=>e.queryKey[0]===Zr&&e.state.status===`success`&&e.getObserversCount()===0).sort((e,t)=>t.query.state.dataUpdatedAt-e.query.state.dataUpdatedAt||t.position-e.position);for(let{query:e}of n.slice(2))t.remove(e)}function $r(e){return e.getQueryCache().subscribe(t=>{t.type===`observerRemoved`&&Qr(e)})}function ei(){return new Mr({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1,staleTime:0},mutations:{retry:!1}}})}var ti=ei();$r(ti);var ni=e(d(),1);function ri(e){return G.createElement(yr,{flushSync:ni.flushSync,...e})}pr();function ii(e,t){return t!=null&&!Le(t)?0:typeof e==`function`?e():e}function ai(e,t,n){let r=ii(e,n);return typeof r==`number`?r:r?.[t]}function oi(e){return typeof e==`function`?e():e}function si(e,t){return t||e===`click`||e===`mousedown`}function ci(e){return e?.includes(`mouse`)&&e!==`mousedown`}var li=Math.min,ui=Math.max,di=Math.round,fi=Math.floor,pi=e=>({x:e,y:e}),mi={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function hi(e,t,n){return ui(e,li(t,n))}function gi(e,t){return typeof e==`function`?e(t):e}function _i(e){return e.split(`-`)[0]}function vi(e){return e.split(`-`)[1]}function yi(e){return e===`x`?`y`:`x`}function bi(e){return e===`y`?`height`:`width`}function xi(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Si(e){return yi(xi(e))}function Ci(e,t,n){n===void 0&&(n=!1);let r=vi(e),i=Si(e),a=bi(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Mi(o)),[o,Mi(o)]}function wi(e){let t=Mi(e);return[Ti(e),t,Ti(t)]}function Ti(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Ei=[`left`,`right`],Di=[`right`,`left`],Oi=[`top`,`bottom`],ki=[`bottom`,`top`];function Ai(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Di:Ei:t?Ei:Di;case`left`:case`right`:return t?Oi:ki;default:return[]}}function ji(e,t,n,r){let i=vi(e),a=Ai(_i(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Ti)))),a}function Mi(e){let t=_i(e);return mi[t]+e.slice(t.length)}function Ni(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Pi(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Ni(e)}function Fi(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ii(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:a=!0,ignoreMouse:o=!1,stickIfOpen:c=!0,touchOpenDelay:l=0,reason:u=le}=t,d=`rootStore`in e?e.rootStore:e,f=d.context.dataRef,p=G.useRef(void 0),m=i(),h=oe(),g=G.useMemo(()=>{function e(e,t,n,r){let i=s(u,t,n);e&&r===`touch`&&l>0?h.start(l,()=>{d.setOpen(!0,i)}):d.setOpen(e,i)}function t(e,t,n){let r=f.current.openEvent,i=d.select(`domReferenceElement`)!==t;return e&&i||!e||!a?!0:r&&c?!n(r.type):!1}return{onPointerDown(e){p.current=Le(e.pointerType,!0)&&wt(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(n){let i=p.current,a=n.nativeEvent,s=d.select(`open`);if(n.button!==0||r===`click`||Le(i,!0)&&o)return;let c=t(s,n.currentTarget,e=>e===`click`||e===`mousedown`),l=Be(a);if(ht(l)){e(c,a,l,i);return}let u=n.currentTarget;m.request(()=>{e(c,a,u,i)})},onClick(n){if(r===`mousedown-only`)return;let i=p.current;if(r===`mousedown`&&i){p.current=void 0;return}Le(i,!0)&&o||e(t(d.select(`open`),n.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),n.nativeEvent,n.currentTarget,i)},onKeyDown(){p.current=void 0}}},[f,r,o,u,d,c,a,m,h,l]);return G.useMemo(()=>n?{reference:g}:Ct,[n,g])}function Li(e,t,n){let{reference:r,floating:i}=e,a=xi(t),o=Si(t),s=bi(o),c=_i(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=vi(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Ri(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=gi(t,e),p=Pi(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Fi(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Fi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var zi=50,Bi=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Ri},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Li(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<zi&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Li(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Vi=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=gi(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=_i(r),_=xi(o),v=_i(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Mi(o)]:wi(o)),x=p!==`none`;!d&&x&&b.push(...ji(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Ci(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===xi(t)||T.every(e=>xi(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=xi(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},Hi=new Set([`left`,`top`]);async function Ui(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=_i(n),s=vi(n),c=xi(n)===`y`,l=Hi.has(o)?-1:1,u=a&&c?-1:1,d=gi(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Wi=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Ui(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Gi=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=gi(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=xi(i),p=yi(f),m=u[p],h=u[f],g=(e,t)=>hi(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Ki=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=gi(e,t),u={x:n,y:r},d=xi(i),f=yi(d),p=u[f],m=u[d],h=gi(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Hi.has(_i(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},qi=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=gi(e,t),c=await i.detectOverflow(t,s),l=_i(n),u=vi(n),d=xi(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=li(p-c[m],g),y=li(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*ui(c.left,c.right):S=p-2*ui(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Ji(e){let t=E(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=H(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=di(n)!==a||di(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Yi(e){return He(e)?e:e.contextElement}function Xi(e){let t=Yi(e);if(!H(t))return pi(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Ji(t),o=(a?di(n.width):n.width)/r,s=(a?di(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Zi=pi(0);function Qi(e){let t=tt(e);return!bt()||!t.visualViewport?Zi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $i(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===tt(e)}function ea(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Yi(e),o=pi(1);t&&(r?He(r)&&(o=Xi(r)):o=Xi(e));let s=$i(a,n,r)?Qi(a):pi(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=tt(a),t=He(r)?tt(r):r,n=e,i=he(n);for(;i&&t!==n;){let e=Xi(i),t=i.getBoundingClientRect(),r=E(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=tt(i),i=he(n)}}return Fi({width:u,height:d,x:c,y:l})}function ta(e,t){let n=a(e).scrollLeft;return t?t.left+n:ea(de(e)).left+n}function na(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ta(e,n),y:n.top+t.scrollTop}}function ra(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o=i===`fixed`,s=de(r),c=t?Ye(t.floating):!1;if(r===s||c&&o)return n;let l={scrollLeft:0,scrollTop:0},u=pi(1),d=pi(0),f=H(r);if((f||!o)&&((ne(r)!==`body`||mt(s))&&(l=a(r)),f)){let e=ea(r);u=Xi(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let p=s&&!f&&!o?na(s,l):pi(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-l.scrollTop*u.y+d.y+p.y}}function ia(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function aa(e){let t=a(e),n=e.ownerDocument.body,r=ui(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=ui(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),o=-t.scrollLeft+ta(e),s=-t.scrollTop;return E(n).direction===`rtl`&&(o+=ui(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:o,y:s}}var oa=25;function sa(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=tt(e),a=de(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!bt()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(ta(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=oa&&(s-=o)}return{width:s,height:c,x:l,y:u}}function ca(e,t){let n=ea(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Xi(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function la(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=sa(e,n,t);else if(t===`document`)r=aa(de(e));else if(He(t))r=ca(t,n);else{let n=Qi(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Fi(r)}function ua(e,t){let n=t.get(e);if(n)return n;let r=Ae(e,[],!1).filter(e=>He(e)&&ne(e)!==`body`),i=null,a=E(e).position===`fixed`,o=a?_t(e):e;for(;He(o)&&!rt(o);){let e=E(o),t=dt(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=_t(o)}return t.set(e,r),r}function da(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Ye(t)?[]:ua(t,this._c):[].concat(n),r],o=la(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=la(t,a[e],i);s=ui(n.top,s),c=li(n.right,c),l=li(n.bottom,l),u=ui(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function fa(e){let{width:t,height:n}=Ji(e);return{width:t,height:n}}function pa(e,t,n){let r=H(t),i=de(t),o=n===`fixed`,s=ea(e,!0,o,t),c={scrollLeft:0,scrollTop:0},l=pi(0);if((r||!o)&&((ne(t)!==`body`||mt(i))&&(c=a(t)),r)){let e=ea(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!r&&i&&(l.x=ta(i));let u=i&&!r&&!o?na(i,c):pi(0);return{x:s.left+c.scrollLeft-l.x-u.x,y:s.top+c.scrollTop-l.y-u.y,width:s.width,height:s.height}}function ma(e){return E(e).position===`static`}function ha(e,t){if(!H(e)||E(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return de(e)===n&&(n=n.ownerDocument.body),n}function ga(e,t){let n=tt(e);if(Ye(e))return n;if(!H(e)){let t=_t(e);for(;t&&!rt(t);){if(He(t)&&!ma(t))return t;t=_t(t)}return n}let r=ha(e,t);for(;r&&Te(r)&&ma(r);)r=ha(r,t);return r&&rt(r)&&ma(r)&&!dt(r)?n:r||pe(e)||n}var _a=async function(e){let t=this.getOffsetParent||ga,n=this.getDimensions,r=await n(e.floating);return{reference:pa(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function va(e){return E(e).direction===`rtl`}var ya={convertOffsetParentRelativeRectToViewportRelativeRect:ra,getDocumentElement:de,getClippingRect:da,getOffsetParent:ga,getElementRects:_a,getClientRects:ia,getDimensions:fa,getScale:Xi,isElement:He,isRTL:va};function ba(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xa(e,t,n){let r=null,i,a=de(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=fi(d),h=fi(a.clientWidth-(u+f)),g=fi(a.clientHeight-(d+p)),_=fi(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:ui(0,li(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!ba(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=tt(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Sa(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Yi(e),u=i||a?[...l?Ae(l):[],...t?Ae(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?xa(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?ea(e):null;c&&g();function g(){let t=ea(e);h&&!ba(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Ca=Wi,wa=Gi,Ta=Vi,Ea=qi,Da=Ki,Oa=(e,t,n)=>{let r=new Map,i=n??{},a={...ya,...i.platform,_c:r};return Bi(e,t,{...i,platform:a})},ka=typeof document<`u`?G.useLayoutEffect:function(){};function Aa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Aa(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Aa(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function ja(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ma(e,t){let n=ja(e);return Math.round(t*n)/n}function Na(e){let t=G.useRef(e);return ka(()=>{t.current=e}),t}function Pa(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=G.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=G.useState(r);Aa(f,r)||p(r);let[m,h]=G.useState(null),[g,_]=G.useState(null),v=G.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=G.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=G.useRef(null),C=G.useRef(null),w=G.useRef(u),T=c!=null,E=Na(c),D=Na(i),O=Na(l),k=G.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Oa(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!Aa(w.current,t)&&(w.current=t,ni.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);ka(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=G.useRef(!1);ka(()=>(A.current=!0,()=>{A.current=!1}),[]),ka(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=G.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=G.useMemo(()=>({reference:b,floating:x}),[b,x]),N=G.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Ma(M.floating,u.x),r=Ma(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...ja(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return G.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var Fa=(e,t)=>{let n=Ca(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ia=(e,t)=>{let n=wa(e);return{name:n.name,fn:n.fn,options:[e,t]}},La=(e,t)=>({fn:Da(e).fn,options:[e,t]}),Ra=(e,t)=>{let n=Ta(e);return{name:n.name,fn:n.fn,options:[e,t]}},za=(e,t)=>{let n=Ea(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ba=h();function Va(e){let t=G.useCallback(t=>e===void 0?jt:e.subscribeStore(t),[e]),n=G.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,Ba.useSyncExternalStore)(t,n,()=>e?.serverStore)}function Ha(e){return Ua(e,e.rootContext)}function Ua(e,t){let{nodeId:n,externalTree:r}=e,i=t.useState(`referenceElement`),a=t.useState(`floatingElement`),o=t.useState(`domReferenceElement`),s=t.useState(`open`),c=t.useState(`floatingId`),[l,u]=G.useState(null),[d,f]=G.useState(void 0),[p,m]=G.useState(void 0),h=G.useRef(null),g=j(r),_=G.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),v=Pa({...e,elements:{..._,...l&&{reference:l}}}),y=He(d)?d:null,b=p===void 0?t.state.floatingElement:p;t.useSyncedValue(`referenceElement`,d??null),t.useSyncedValue(`domReferenceElement`,d===void 0?o:y),t.useSyncedValue(`floatingElement`,b);let x=G.useCallback(e=>{let t=He(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),v.refs.setReference(t)},[v.refs]),S=G.useCallback(e=>{(He(e)||e===null)&&(h.current=e,f(e)),(He(v.refs.reference.current)||v.refs.reference.current===null||e!==null&&!He(e))&&v.refs.setReference(e)},[v.refs,f]),C=G.useCallback(e=>{m(e),v.refs.setFloating(e)},[v.refs]),w=G.useMemo(()=>({...v.refs,setReference:S,setFloating:C,setPositionReference:x,domReference:h}),[v.refs,S,C,x]),T=G.useMemo(()=>({...v.elements,domReference:o}),[v.elements,o]),E=G.useMemo(()=>({...v,dataRef:t.context.dataRef,open:s,onOpenChange:t.setOpen,events:t.context.events,floatingId:c,refs:w,elements:T,nodeId:n,rootStore:t}),[v,w,T,n,t,s,c]);return O(()=>{o&&(h.current=o)},[o]),O(()=>{t.context.dataRef.current.floatingContext=E;let e=g?.nodesRef.current.find(e=>e.id===n);e&&(e.context=E)}),G.useMemo(()=>({...v,context:E,refs:w,elements:T,rootStore:t}),[v,w,T,E,t])}var Wa=f&&kt;function Ga(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,l=G.useRef(!1),u=G.useRef(null),d=G.useRef(!0),f=oe();G.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=tt(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&H(e)&&e===st(V(e))&&(l.current=!0,u.current=e)}function a(){d.current=!0}function o(){d.current=!1}return vt(U(t,`blur`,r),Wa&&U(t,`keydown`,a,!0),Wa&&U(t,`pointerdown`,o,!0))},[i,n]),G.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);He(e)&&(u.current=e,l.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let p=G.useMemo(()=>{function e(){l.current=!1,u.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(l.current){if(u.current===n)return;e()}let a=Be(t.nativeEvent);if(He(a)){if(Wa&&!t.relatedTarget){if(!d.current&&!ht(a))return}else if(!Ee(a))return}let o=be(t.relatedTarget,i.context.triggerElements),{nativeEvent:c,currentTarget:p}=t,m=typeof r==`function`?r():r;if(i.select(`open`)&&o||m===0||m===void 0){i.setOpen(!0,s(Pt,c,p));return}f.start(m,()=>{l.current||i.setOpen(!0,s(Pt,c,p))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=He(n)&&n.hasAttribute(c(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;f.start(0,()=>{let e=i.select(`domReferenceElement`),t=st(V(e));(n||t!==e)&&($e(o.current.floatingContext?.refs.floating.current,t)||$e(e,t)||a||be(n??t,i.context.triggerElements)||i.setOpen(!1,s(Pt,r)))})}}},[o,r,i,f]);return G.useMemo(()=>n?{reference:p,trigger:p}:{},[n,p])}var Ka=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Et,this.restTimeout=new Et,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},qa=new WeakMap;function Ja(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&qa.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),qa.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Ya(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=qa.get(n);a&&a!==e&&Ja(a),Ja(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,qa.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function Xa(e){let t=e.context.dataRef.current,n=Ot(()=>t.hoverInteractionState??Ka.create()).current;return t.hoverInteractionState||=n,g(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function Za(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),c=a.useState(`floatingElement`),u=a.useState(`domReferenceElement`),{dataRef:d}=a.context,f=j(),p=A(),m=Xa(a),h=oe(),g=lt(()=>si(d.current.openEvent?.type,m.interactedInside)),_=lt(()=>ci(d.current.openEvent?.type)),v=lt(()=>{Ja(m)});O(()=>{o||(m.pointerType=void 0,m.restTimeoutPending=!1,m.interactedInside=!1,v())},[o,m,v]),G.useEffect(()=>v,[v]),O(()=>{if(n&&o&&m.handleCloseOptions?.blockPointerEvents&&_()&&He(u)&&c){let e=u,t=c,n=V(c),r=f?.nodesRef.current.find(e=>e.id===p)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=m.pointerEventsScopeElement===t?null:m.pointerEventsScopeElement,a=r===t?null:r,o=m.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body;return Ya(m,{scopeElement:o,referenceElement:e,floatingElement:t}),()=>{v()}}},[n,o,u,c,m,_,f,p,v]),G.useEffect(()=>{if(!n)return;function e(){return!!(f&&p&&ce(f.nodesRef.current,p).length>0)}function t(e){let t=ai(r,`close`,m.pointerType),n=()=>{a.setOpen(!1,s(l,e)),f?.events.emit(`floating.closed`,e)};t?m.openChangeTimeout.start(t,n):(m.openChangeTimeout.clear(),n())}function o(e){let t=Be(e);if(!Ue(t)){m.interactedInside=!1;return}m.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function u(){m.openChangeTimeout.clear(),h.clear(),f?.events.off(`floating.closed`,b),v()}function y(n){if(e()&&f){f.events.on(`floating.closed`,b);return}if(be(n.relatedTarget,a.context.triggerElements))return;let r=d.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(f&&r&&He(o)&&ce(f.nodesRef.current,r,!1).some(e=>$e(e.context?.elements.floating,o)))){if(m.handler){m.handler(n);return}v(),_()&&!g()&&t(n)}}function b(t){f&&p&&!e()&&h.start(0,()=>{f.events.off(`floating.closed`,b),a.setOpen(!1,s(l,t)),f.events.emit(`floating.closed`,t)})}let x=c;return vt(x&&U(x,`mouseenter`,u),x&&U(x,`mouseleave`,y),x&&U(x,`pointerdown`,o,!0),()=>{f?.events.off(`floating.closed`,b)})},[n,c,a,d,r,i,_,g,v,m,f,p,h])}var Qa={current:null};function $a(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:c=!0,triggerElementRef:u=Qa,externalTree:d,isActiveTrigger:f=!0,getHandleCloseContext:p,isClosing:m,shouldOpen:h,guardStaleOpen:g=!1}=t,_=`rootStore`in e?e.rootStore:e,{dataRef:v,events:y}=_.context,b=j(d),x=Xa(_),S=G.useRef(!1),C=je(i),w=je(r),T=je(o),E=je(n),D=je(h),O=je(m),k=lt(()=>si(v.current.openEvent?.type,x.interactedInside)),A=lt(()=>D.current?.()!==!1),M=lt((e,t,n)=>{let r=_.context.triggerElements;if(r.hasElement(t))return!e||!$e(e,t);if(!He(n))return!1;let i=n;return r.hasMatchingElement(e=>$e(e,i))&&(!e||!$e(e,i))}),N=lt(()=>{x.handler&&=(V(_.select(`domReferenceElement`)).removeEventListener(`mousemove`,x.handler),void 0)}),P=lt(()=>{Ja(x)});return f&&(x.handleCloseOptions=i?.__options),G.useEffect(()=>N,[N]),G.useEffect(()=>{if(!n)return;function e(e){e.open?S.current=!1:(S.current=e.reason===l,N(),x.openChangeTimeout.clear(),x.restTimeout.clear(),x.blockMouseMove=!0,x.restTimeoutPending=!1)}return y.on(`openchange`,e),()=>{y.off(`openchange`,e)}},[n,y,x,N]),G.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=ai(w.current,`close`,x.pointerType);n?x.openChangeTimeout.start(n,()=>{_.setOpen(!1,s(l,e)),b?.events.emit(`floating.closed`,e)}):t&&(x.openChangeTimeout.clear(),_.setOpen(!1,s(l,e)),b?.events.emit(`floating.closed`,e))}let t=u.current??(f?_.select(`domReferenceElement`):null);if(!He(t))return;function r(e){if(x.openChangeTimeout.clear(),x.blockMouseMove=!1,a&&!Le(x.pointerType))return;let t=oi(T.current),n=ai(w.current,`open`,x.pointerType),r=Be(e),i=e.currentTarget??null,o=_.select(`domReferenceElement`),c=i;if(He(r)&&!_.context.triggerElements.hasElement(r)){for(let e of _.context.triggerElements.elements())if($e(e,r)){c=e;break}}He(i)&&He(o)&&!_.context.triggerElements.hasElement(i)&&$e(i,o)&&(c=o);let u=c!=null&&M(o,c,r),d=_.select(`open`),f=O.current?.()??_.select(`transitionStatus`)===`ending`,p=!d&&f&&S.current,m=!u&&He(c)&&He(o)&&$e(o,c)&&p,h=t>0&&!n,g=u&&(d||p)||m,v=!d||u;if(g){A()&&_.setOpen(!0,s(l,e,c));return}h||(n?x.openChangeTimeout.start(n,()=>{v&&A()&&_.setOpen(!0,s(l,e,c))}):v&&A()&&_.setOpen(!0,s(l,e,c)))}function i(t){if(k()){P();return}N();let n=_.select(`domReferenceElement`),r=V(n);x.restTimeout.clear(),x.restTimeoutPending=!1;let i=v.current.floatingContext??p?.();if(!be(t.relatedTarget,_.context.triggerElements)){if(C.current&&i){_.select(`open`)||x.openChangeTimeout.clear();let n=u.current;x.handler=C.current({...i,tree:b,x:t.clientX,y:t.clientY,onClose(){P(),N(),E.current&&!k()&&n===_.select(`domReferenceElement`)&&e(t,!0)}}),r.addEventListener(`mousemove`,x.handler),x.handler(t);return}(x.pointerType!==`touch`||!$e(_.select(`floatingElement`),t.relatedTarget))&&e(t)}}function o(e){$e(t,e.relatedTarget)||(x.openChangeTimeout.clear(),x.restTimeout.clear(),x.restTimeoutPending=!1)}let d=g?U(t,`mouseout`,o):void 0;return c?vt(U(t,`mousemove`,r,{once:!0}),U(t,`mouseenter`,r),U(t,`mouseleave`,i),d):vt(U(t,`mouseenter`,r),U(t,`mouseleave`,i),d)},[N,P,v,w,_,n,C,x,f,M,k,a,c,T,u,b,E,p,O,A,g]),G.useMemo(()=>{if(!n)return;function e(e){x.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=_.select(`domReferenceElement`),i=_.select(`open`),o=M(r,n,e.target);if(a&&!Le(x.pointerType))return;if(i&&o&&x.handleCloseOptions?.blockPointerEvents){let e=_.select(`floatingElement`);if(e){let t=x.handleCloseOptions?.getScope?.()??n.ownerDocument.body;Ya(x,{scopeElement:t,referenceElement:n,floatingElement:e})}}let c=oi(T.current);if(i&&!o||c===0||!o&&x.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;x.restTimeout.clear();function u(){if(x.restTimeoutPending=!1,k())return;let e=_.select(`open`);!x.blockMouseMove&&(!e||o)&&A()&&_.setOpen(!0,s(l,t,n))}x.pointerType===`touch`?ni.flushSync(()=>{u()}):o&&i?u():(x.restTimeoutPending=!0,x.restTimeout.start(c,u))}}},[n,x,k,M,a,_,T,A])}var eo=`Escape`;function to(e){return kt&&e.movementX===0&&e.movementY===0}function no(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function ro(e,t){return no(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function io(e,t,n){return no(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function ao(e,t,n){return no(t,n?e===xt:e===ke,e===Xe)}function oo(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===eo:no(t,n?e===ke:e===xt,e===Pe)}function so(e,t){let{listRef:n,activeIndex:r,onNavigate:a=()=>{},enabled:o=!0,selectedIndex:c=null,allowEscape:l=!1,loopFocus:u=!1,nested:d=!1,rtl:f=!1,virtual:p=!1,focusItemOnOpen:m=`auto`,focusItemOnHover:h=!0,openOnArrowKeyDown:g=!0,disabledIndices:_=void 0,orientation:v=`vertical`,parentOrientation:y,id:b,resetOnPointerLeave:x=!0,externalTree:S,grid:C}=t,E=C!=null,k=`rootStore`in e?e.rootStore:e,N=k.useState(`open`),P=k.useState(`floatingElement`),ee=k.useState(`domReferenceElement`),te=k.context.dataRef,F=ft(P),ne=it(ee),I=je(F),re=A(),ie=j(S),ae=G.useRef(m),L=G.useRef(c??-1),R=G.useRef(null),oe=G.useRef(!0),z=lt(e=>{a(L.current===-1?null:L.current,e)}),se=G.useRef(!!P),ce=G.useRef(N),le=G.useRef(!1),B=G.useRef(!1),de=G.useRef(null),fe=je(_),pe=je(N),me=je(c),he=je(x),ge=i(),_e=i(),ye=lt(()=>{function e(e){p?ie?.events.emit(`virtualfocus`,e):de.current=Nt(e,{sync:le.current,preventScroll:!0})}let t=n.current[L.current],r=B.current;t&&e(t),(le.current?e=>e():e=>ge.request(e))(()=>{let i=n.current[L.current]||t;i&&(t||e(i),Te&&(r||!oe.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});O(()=>{te.current.orientation=v},[te,v]),O(()=>{o&&(N&&P?(L.current=c??-1,ae.current&&c!=null&&(B.current=!0,z())):se.current&&(L.current=-1,z()))},[o,N,P,c,z]),O(()=>{if(o){if(!N){le.current=!1;return}if(P){if(r==null){if(le.current=!1,me.current!=null)return;if(se.current&&(L.current=-1,ye()),(!ce.current||!se.current)&&ae.current&&(R.current!=null||ae.current===!0&&R.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>_e.request(e):queueMicrotask)(t),e+=1):(L.current=R.current==null||io(R.current,v,f)||d?T(n):ct(n),R.current=null,z())};t()}}else ue(n.current,r)||(L.current=r,ye(),B.current=!1)}}},[o,N,P,r,me,d,n,v,f,z,ye,_e]),O(()=>{if(!o||P||!ie||p||!se.current)return;let e=ie.nodesRef.current,t=e.find(e=>e.id===re)?.context?.elements.floating,n=st(V(ee??t??null)),r=e.some(e=>e.context&&$e(e.context.elements.floating,n));t&&!r&&oe.current&&t.focus({preventScroll:!0})},[o,P,ee,ie,re,p]),O(()=>{ce.current=N,se.current=!!P}),O(()=>{N||(R.current=null,ae.current=m)},[N,m]);let be=r!=null,xe=lt(e=>{if(!pe.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(L.current!==t||r!==t)&&(L.current=t,z(e))}),Se=lt(()=>y??ie?.nodesRef.current.find(e=>e.id===re)?.context?.dataRef?.current.orientation),Ce=lt(()=>T(n,fe.current)),we=lt(e=>{if(oe.current=!1,le.current=!0,e.which===229||!pe.current&&e.currentTarget===I.current)return;if(d&&oo(e.key,v,f,E)){ro(e.key,Se())||Mt(e),k.setOpen(!1,s(w,e.nativeEvent)),H(ee)&&(p?ie?.events.emit(`virtualfocus`,ee):ee.focus());return}let t=L.current,r=T(n,_),i=ct(n,_);if(ne||(e.key===`Home`&&(Mt(e),L.current=r,z(e)),e.key===`End`&&(Mt(e),L.current=i,z(e))),C!=null){let t=C(e,L.current,n,v,u,f,_,r,i);if(t!=null&&(L.current=t,z(e)),v===`both`)return}if(ro(e.key,v)){if(Mt(e),N&&!p&&st(e.currentTarget.ownerDocument)===e.currentTarget){L.current=io(e.key,v,f)?r:i,z(e);return}io(e.key,v,f)?u?t>=i?l&&t!==n.current.length?L.current=-1:(le.current=!1,L.current=r):L.current=D(n.current,{startingIndex:t,disabledIndices:_}):L.current=Math.min(i,D(n.current,{startingIndex:t,disabledIndices:_})):u?t<=r?l&&t!==-1?L.current=n.current.length:(le.current=!1,L.current=i):L.current=D(n.current,{startingIndex:t,decrement:!0,disabledIndices:_}):L.current=Math.max(r,D(n.current,{startingIndex:t,decrement:!0,disabledIndices:_})),ue(n.current,L.current)&&(L.current=-1),z(e)}}),Te=G.useMemo(()=>({onFocus(e){le.current=!0,xe(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){to(e)||(le.current=!0,B.current=!1,h&&xe(e))},onPointerLeave(e){if(!pe.current||!oe.current||e.pointerType===`touch`)return;le.current=!0;let t=e.relatedTarget;if(h&&!n.current.includes(t)&&he.current&&(de.current?.(),de.current=null,L.current=-1,z(e),!p)){let e=I.current,t=st(V(e));e&&$e(e,t)&&e.focus({preventScroll:!0})}}}),[xe,pe,I,h,n,z,he,p]),Ee=G.useMemo(()=>p&&N&&be&&{"aria-activedescendant":`${b}-${r}`},[p,N,be,b,r]),De=G.useMemo(()=>({...ne?{}:Ee,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&N&&!p){let t=Be(e.nativeEvent);if(t&&!$e(I.current,t))return;Mt(e),k.setOpen(!1,s(M,e.nativeEvent)),H(ee)&&ee.focus();return}we(e)},onPointerMove(e){to(e)||(oe.current=!0)}}),[Ee,we,I,ne,k,N,p,ee]),Oe=G.useMemo(()=>{function e(e){k.setOpen(!0,s(w,e.nativeEvent,e.currentTarget))}function t(e){m===`auto`&&ve(e.nativeEvent)&&(ae.current=!p)}function n(e){ae.current=m,m===`auto`&&wt(e.nativeEvent)&&(ae.current=!0)}return{onKeyDown(t){let n=k.select(`open`);oe.current=!1;let r=t.key.startsWith(`Arrow`),i=ao(t.key,Se(),f),a=ro(t.key,v),o=(d?i:a)||t.key===`Enter`||t.key.trim()===``;if(p&&n)return we(t);if(n||g||!r){if(o){let e=ro(t.key,Se());R.current=d&&e?null:t.key}if(d){i&&(Mt(t),n?(L.current=Ce(),z(t)):e(t));return}a&&(me.current!=null&&(L.current=me.current),Mt(t),!n&&g?e(t):we(t),n&&z(t))}},onFocus(e){k.select(`open`)&&!p&&(L.current=-1,z(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[we,m,Ce,d,z,k,g,v,Se,f,me,p]),ke=G.useMemo(()=>({...Ee,...Oe}),[Ee,Oe]);return G.useMemo(()=>o?{reference:ke,floating:De,item:Te,trigger:Oe}:{},[o,ke,De,Oe,Te])}function co(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:s,enabled:c=!0,resetMs:l=750,selectedIndex:u=null}=t,d=`rootStore`in e?e.rootStore:e,f=d.useState(`open`),p=oe(),m=G.useRef(``),h=G.useRef(u??i??-1),g=G.useRef(null),_=lt(e=>{function t(e){return r?.current[e]}function c(e){let n=t(e);return n&&!fe(n)||n?.matches(`:disabled`)?!1:o==null||!me(_e,e,o)}function d(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(e[n]?.toLowerCase().startsWith(i)&&c(n))return n}return-1}let _=n.current;if(m.current.length>0&&e.key===` `&&(Mt(e),s?.(!0)),m.current.length>0&&m.current[0]!==` `&&d(_,m.current)===-1&&e.key!==` `&&s?.(!1),_==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;f&&e.key!==` `&&(Mt(e),s?.(!0));let v=m.current===``;v&&(h.current=u??i??-1),_.every((e,t)=>e&&c(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(l,()=>{m.current=``,h.current=g.current,s?.(!1)});let y=((v?u??i??-1:h.current)??0)+1,b=d(_,m.current,y);b===-1?e.key!==` `&&(m.current=``,s?.(!1)):(a?.(b),g.current=b)}),v=lt(e=>{let t=e.relatedTarget,n=d.select(`domReferenceElement`),r=d.select(`floatingElement`);$e(n,t)||$e(r,t)||(p.clear(),m.current=``,h.current=g.current,s?.(!1))});O(()=>{(f||u===null)&&(p.clear(),g.current=null,m.current!==``&&(m.current=``))},[f,u,p]);let y=G.useMemo(()=>({onKeyDown:_,onBlur:v}),[_,v]);return G.useMemo(()=>c?{reference:y,floating:y}:{},[c,y])}var lo=.1,uo=lo*lo,fo=.5;function po(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function mo(e,t,n,r,i,a,o,s,c,l){let u=!1;return po(e,t,n,r,i,a)&&(u=!u),po(e,t,i,a,o,s)&&(u=!u),po(e,t,o,s,c,l)&&(u=!u),po(e,t,c,l,n,r)&&(u=!u),u}function ho(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function go(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function _o(e={}){let{blockPointerEvents:t=!1}=e,n=new Et,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*uo;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=Be(r),g=r.type===`mouseleave`,_=$e(u,h),v=$e(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&He(r.relatedTarget)&&$e(u,r.relatedTarget))return;function y(){return!!(s&&ce(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=go(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=go(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=go(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=go(d,f,x.right-1,A,S.left+1,k)}if(j)return;if(l&&!ho(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?fo/2:fo*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+fo+1,o=C||T?S.bottom-fo:S.top,s=C?T?S.bottom-fo:S.top:S.bottom-fo;M=mo(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?fo/2:fo*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-fo,o=C||T?S.top+fo:S.bottom,s=C?T?S.top+fo:S.bottom:S.top+fo;M=mo(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?fo/2:fo*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+fo+1,o=w||E?S.right-fo:S.left,s=w?E?S.right-fo:S.left:S.right-fo;M=mo(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?fo/2:fo*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-fo,o=w||E?S.left+fo:S.right,s=w?E?S.left+fo:S.right:S.left+fo;M=mo(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}function vo(e){let t=G.useRef(``),n=G.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:G.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function yo(e,t){let n=G.useRef(e),r=lt(t);O(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}function bo(e,t){let{onClick:n,onPointerDown:r}=vo(lt((n,r)=>{(typeof e==`function`?e():e)||t(r||(L?`touch`:``))}));return G.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function xo(e){let[t,n]=G.useState(null),r=bo(e,n);return yo(e,t=>{t&&!e&&n(null)}),G.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}function So(e){Pn();let{target:t}=e,n=t?`${t.agentKey}/${t.sessionId}`:`closed`;return(0,K.jsx)(Co,{...e},n)}function Co({target:e,onClose:t,onSave:n,onRemove:r}){Pn();let[i,a]=(0,G.useState)(()=>e?.displayTitle??e?.title??``),[o,s]=(0,G.useState)(null),[c,l]=(0,G.useState)(!1),u=(0,G.useRef)(null);(0,G.useEffect)(()=>()=>{u.current=null},[]);let d=async(e,n)=>{if(u.current)return;let r=Symbol();u.current=r,l(!0),s(null);try{await e(),u.current===r&&t()}catch(e){if(u.current!==r)return;s(e instanceof Error?e.message:n)}finally{u.current===r&&(u.current=null,l(!1))}},f=async()=>{if(!e)return;let t=i.trim();if(!t||t===e.title.trim()){await p();return}await d(()=>n(t),`Could not rename this session.`)},p=async()=>{e&&await d(r,`Could not restore the title.`)};return(0,K.jsx)(et,{open:e!==null,onOpenChange:e=>e?void 0:t(),children:(0,K.jsxs)(Ve,{children:[(0,K.jsx)(Oe,{className:`motion-backdrop fixed inset-0 z-50 bg-[var(--scrim)]`}),(0,K.jsxs)(pt,{className:`motion-modal fixed left-1/2 top-1/2 z-50 w-[calc(100%-2rem)] max-w-md -translate-x-1/2 -translate-y-1/2 rounded-lg border border-[var(--console-border)] bg-[var(--console-surface)] p-5 shadow-[var(--shadow-overlay)] outline-none`,children:[(0,K.jsx)(gt,{className:`console-mono text-sm font-semibold text-[var(--console-text)]`,children:W(`Rename session`)}),(0,K.jsxs)(`label`,{className:`console-mono mt-4 block text-[11px] uppercase tracking-wide text-[var(--console-muted)]`,children:[W(`Session title`),` `,(0,K.jsx)(`input`,{autoFocus:!0,autoComplete:`off`,name:`session-title`,maxLength:160,value:i,onChange:e=>a(e.target.value),onKeyDown:e=>{e.key===`Enter`&&f()},"aria-invalid":o?!0:void 0,"aria-describedby":o?`session-alias-error`:void 0,className:`mt-1.5 w-full rounded-sm border border-[var(--console-border-strong)] bg-[var(--console-surface)] px-3 py-2 text-sm normal-case tracking-normal text-[var(--console-text)] outline-none focus:border-[var(--brand)] focus:ring-2 focus:ring-[var(--brand)]/25`})]}),o?(0,K.jsx)(`p`,{id:`session-alias-error`,"aria-live":`polite`,className:`mt-2 text-xs text-[var(--console-error)]`,children:W(o)}):null,(0,K.jsxs)(`div`,{className:`mt-5 flex items-center justify-between gap-3`,children:[(0,K.jsx)(`button`,{type:`button`,onClick:()=>void p(),disabled:c||!e?.displayTitle,className:`text-xs text-[var(--console-muted)] underline decoration-[var(--console-border-strong)] underline-offset-4 hover:text-[var(--console-text)] disabled:cursor-not-allowed disabled:opacity-40`,children:W(`Remove custom title`)}),(0,K.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,K.jsx)(qe,{className:`rounded-sm border border-[var(--console-border)] px-3 py-1.5 text-xs text-[var(--console-text)] hover:bg-[var(--console-surface-muted)]`,children:W(`Cancel`)}),(0,K.jsx)(`button`,{type:`button`,disabled:c,onClick:()=>void f(),className:`rounded-sm border border-[var(--console-accent)] bg-[var(--console-accent)] px-3 py-1.5 text-xs text-[var(--console-accent-fg)] hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60`,children:W(c?`Saving…`:`Save title`)})]})]})]})]})})}var wo={agent:`agent`,notFound:`not-found`,project:`project`,projects:`projects`,root:`root`,session:`session`},To=[{index:!0,id:wo.root},{path:`projects`,children:[{index:!0,id:wo.projects},{path:`:projectKind/:projectKey`,id:wo.project}]},{path:`:agentKey`,id:wo.agent,children:[{path:`:sessionId`,id:wo.session}]},{path:`*`,id:wo.notFound}];function Eo(e){try{decodeURI(new URL(e.url).pathname)}catch{throw new Response(`Malformed URL`,{status:400,statusText:`Bad Request`})}}function Do({request:e}){return Eo(e),null}var Oo={mode:`invalidRoute`,activeAgentKey:null,activeSessionId:null};function ko(e,t){let n=e.at(-1);if(!n)return Oo;if(n.id===wo.root)return{mode:`root`,activeAgentKey:null,activeSessionId:null};if(n.id===wo.projects)return{mode:`projects`,activeAgentKey:null,activeSessionId:null};if(n.id===wo.project){let e=n.params.projectKind,t=n.params.projectKey;return!e||!t||!Bn(e)?Oo:{mode:`project`,activeAgentKey:null,activeSessionId:null,activeProjectKind:e,activeProjectKey:t}}if(n.id===wo.agent||n.id===wo.session){let e=n.params.agentKey?.toLowerCase();if(!e||!t.has(e))return{mode:`missingAgent`,activeAgentKey:null,activeSessionId:null,attemptedKey:e??``};if(n.id===wo.agent)return{mode:`agent`,activeAgentKey:e,activeSessionId:null};let r=n.params.sessionId;return r?{mode:`session`,activeAgentKey:e,activeSessionId:r}:Oo}return Oo}var Ao=class{loadStatus;status;listeners=new Set;loadPromise=null;constructor(e,t){this.loadStatus=t,this.status=e}getSnapshot=()=>this.status;subscribe=e=>(this.listeners.add(e),()=>this.listeners.delete(e));publish=e=>{if(!(this.status&&e.updatedAt<this.status.updatedAt)){this.status=e;for(let e of this.listeners)e()}};load(){this.status||this.loadPromise||(this.loadPromise=this.loadStatus().then(this.publish).catch(e=>{console.error(`Failed to load scan status:`,e)}).finally(()=>{this.loadPromise=null}))}},jo=(0,G.createContext)(null);function Mo({children:e,initialStatus:t=null,loadStatus:n=Zn}){let[r]=(0,G.useState)(()=>new Ao(t,n));return(0,G.useEffect)(()=>r.load(),[r]),(0,K.jsx)(jo.Provider,{value:r,children:e})}function No(){let e=Fo();return(0,G.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}function Po(){return Fo().publish}function Fo(){let e=(0,G.useContext)(jo);if(!e)throw Error(`ScanStatusProvider is missing`);return e}function Io(e){return e instanceof ar&&e.status===404?{kind:`missing`}:{kind:`load-failed`,message:e instanceof Error?e.message:W(`Unable to load this session.`)}}function q(e,t){return t.message_update!==`append`||!e?.message_cursor?t:{...t,messages:[...e.messages,...t.messages]}}function Lo(e){return e.mode===`session`?{agent:e.activeAgentKey,sessionId:e.activeSessionId}:null}function Ro(){return globalThis.crypto?.randomUUID?.()||`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,e=>{let t=Math.floor(Math.random()*16);return(e===`x`?t:t&3|8).toString(16)})}function zo(e){let t=Ht(),n=Lo(e),r=dn.sessionDetail(n?.agent??``,n?.sessionId??``),i=Xt({queryKey:r,enabled:n!==null,staleTime:1/0,queryFn:async({signal:e})=>{if(!n)throw Error(`Session route is required`);let i=Ro(),a=`${n.agent}/${n.sessionId}`,o=performance.now(),s=!1,c=()=>{s||(s=!0,Qn(`session.open.cancel`,{operation_id:i,request_key:a,reason:`query-cancelled`}))};e.addEventListener(`abort`,c,{once:!0}),Qn(`session.open.start`,{operation_id:i,request_key:a,trigger:`route`,agent:n.agent,session:n.sessionId});try{let s=t.getQueryData(r),c=q(s,await Kn(n.agent,n.sessionId,{signal:e,messageCursor:s?.message_cursor,operationId:i}));if(e.aborted)throw new DOMException(`Aborted`,`AbortError`);return Qn(`session.open.done`,{operation_id:i,request_key:a,trigger:`route`,agent:n.agent,session:n.sessionId,duration_ms:Math.round(performance.now()-o),messages:c.messages.length}),c}catch(t){throw e.aborted?(c(),t):(Qn(`session.open.error`,{operation_id:i,request_key:a,trigger:`route`,agent:n.agent,session:n.sessionId,duration_ms:Math.round(performance.now()-o),error_name:t instanceof Error?t.name:`UnknownError`,error_status:t instanceof ar?t.status:void 0}),t)}finally{e.removeEventListener(`abort`,c)}}}),a=(0,G.useCallback)(async()=>{n&&await i.refetch({cancelRefetch:!0})},[i,n]);return{session:n?i.data??null:null,sessionLoading:n!==null&&i.isPending,sessionError:n!==null&&i.isError?Io(i.error):null,refresh:a}}function Bo({active:e,label:t,onClick:n}){return(0,K.jsx)(`button`,{type:`button`,onClick:n,className:`console-mono rounded-full border px-2.5 py-1 text-[10px] motion-hover focus-visible:ring-2 focus-visible:ring-[var(--brand)] focus-visible:outline-none ${e?`border-[var(--brand)] bg-[var(--brand)] text-[var(--brand-fg)]`:`border-[var(--console-border)] bg-[var(--console-surface-muted)] text-[var(--console-muted)] hover:bg-[var(--console-surface)] hover:text-[var(--console-text)]`}`,children:t})}var Vo=[`apply_patch`,`bash`,`read`,`edit`,`grep`],Ho=[{kind:`read`,label:`Read`},{kind:`edit`,label:`Edit`},{kind:`write`,label:`Write`},{kind:`delete`,label:`Delete`}],Uo=[{id:`paid`,label:`Cost > $0`,costMin:1e-6},{id:`one_plus`,label:`Cost >= $1`,costMin:1},{id:`ten_plus`,label:`Cost >= $10`,costMin:10}];function Wo({agents:e,projects:t,filters:n,onChangeFilters:r}){Pn();let i=Object.values(n).some(Boolean),a=n.project?On(n.project):void 0,o=(e,t)=>{r(n=>({...n,[e]:n[e]===t?void 0:t}))};return(0,K.jsxs)(`div`,{className:`rounded-lg border border-[var(--console-border)] bg-[var(--console-surface)] p-3 shadow-[var(--shadow-raised)]`,children:[(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,K.jsx)(`span`,{className:`console-eyebrow`,children:W(`Scope`)}),(0,K.jsx)(Bo,{active:!n.project,label:W(`All`),onClick:()=>r(e=>({...e,project:void 0}))}),t.map(e=>(0,K.jsx)(Bo,{active:a===e.key,label:e.showCount===!1?e.label:`${e.label} · ${e.count}`,onClick:()=>r(t=>({...t,project:a===e.key?void 0:{kind:e.identityKind,key:e.identityKey}}))},e.key))]}),(0,K.jsxs)(`div`,{className:`mt-3 flex flex-wrap items-center gap-2`,children:[(0,K.jsx)(`span`,{className:`console-eyebrow`,children:W(`Agent`)}),(0,K.jsx)(Bo,{active:!n.agent,label:W(`All Agents`),onClick:()=>r(e=>({...e,agent:void 0}))}),e.map(e=>(0,K.jsx)(Bo,{active:n.agent===e.name,label:e.displayName,onClick:()=>o(`agent`,e.name)},e.name))]}),(0,K.jsxs)(`div`,{className:`mt-3 flex flex-wrap items-center gap-2`,children:[(0,K.jsx)(`span`,{className:`console-eyebrow`,children:W(`Tag`)}),Vn.map(e=>(0,K.jsx)(Bo,{active:n.tag===e,label:W(e),onClick:()=>o(`tag`,e)},e))]}),(0,K.jsxs)(`div`,{className:`mt-3 flex flex-wrap items-center gap-2`,children:[(0,K.jsx)(`span`,{className:`console-eyebrow`,children:W(`Signal`)}),Vo.map(e=>(0,K.jsx)(Bo,{active:n.tool===e,label:`tool:${e}`,onClick:()=>o(`tool`,e)},e))]}),(0,K.jsxs)(`div`,{className:`mt-3 flex flex-wrap items-center gap-2`,children:[(0,K.jsx)(`span`,{className:`console-eyebrow`,children:W(`File Activity`)}),Ho.map(e=>(0,K.jsx)(Bo,{active:n.fileKind===e.kind,label:W(e.label),onClick:()=>o(`fileKind`,e.kind)},e.kind))]}),(0,K.jsxs)(`div`,{className:`mt-3 flex flex-wrap items-center gap-2`,children:[(0,K.jsx)(`span`,{className:`console-eyebrow`,children:W(`Cost Range`)}),(0,K.jsx)(Bo,{active:!n.costRange,label:W(`Any Cost`),onClick:()=>r(e=>({...e,costRange:void 0}))}),Uo.map(e=>(0,K.jsx)(Bo,{active:n.costRange===e.id,label:W(e.label),onClick:()=>o(`costRange`,e.id)},e.id)),i?(0,K.jsx)(`button`,{type:`button`,onClick:()=>r({}),className:`console-mono ml-auto rounded-full border border-[var(--console-border)] bg-[var(--console-surface-muted)] px-2.5 py-1 text-[10px] text-[var(--console-muted)] motion-hover hover:bg-[var(--console-surface)] hover:text-[var(--console-text)] focus-visible:ring-2 focus-visible:ring-[var(--brand)] focus-visible:outline-none`,children:W(`Clear`)}):null]})]})}function Go(e,t){return{agent:e.agent,projectKind:e.project?.kind,projectKey:e.project?.key,tag:e.tag,tool:e.tool,fileKind:e.fileKind,costMin:t}}function Ko(e,t){return e.trim().length>0||!!(t.tool||t.fileKind)}function qo(e,t,n){let r=t.agent?e.byAgent.get(t.agent)??[]:null,i=t.project?On(t.project):void 0,a=i?e.byProjectIdentityKey.get(i)??[]:null,o=r&&a?r.length<=a.length?r:a:r??a??e.sessionsByActivity,s=n===void 0?null:Ln(e.sessionsByActivity).byRouteKey,c=[];for(let e of o){let r=vn(e);if(t.agent&&r!==t.agent||i&&(!e.project_identity||On(e.project_identity)!==i)||t.tag&&!e.smart_tags?.includes(t.tag))continue;let a=s?.get(Cn(r,e.reference.sessionId))?.inclusiveStats.cost??e.stats.total_cost;if(!(n!==void 0&&a<n)&&(c.push({reference:e.reference,session:e,snippet:W(`Recent session · {0}`,[e.directory]),snippetHighlights:[],matchType:`recent`}),c.length>=50))break}return c}function Jo({usesServerSearch:e,isLoading:t,results:n,selectedProject:r,recentProjectOptions:i}){if(!e)return i;let a=new Map,o=t?[]:n;for(let e of o){let t=e.session.project_identity;if(!t?.key)continue;let n=On(t),r=a.get(n);if(r){r.count+=1;continue}a.set(n,{key:n,identityKind:t.kind,identityKey:t.key,label:t.displayName||e.session.directory,count:1,showCount:!1})}let s=r?On(r):void 0,c=s?i.find(e=>e.key===s):void 0;return s&&c&&!a.has(s)&&a.set(s,{...c,count:0,showCount:!1}),[...a.values()].toSorted((e,t)=>t.count-e.count).slice(0,8)}var Yo=[];function Xo(e,t=null){let[n,r]=(0,G.useState)(``),[i,a]=(0,G.useState)(!1),[o,s]=(0,G.useState)({}),[c,l]=(0,G.useState)(0),u=(0,G.useRef)(new Map),d=(0,G.useMemo)(()=>Uo.find(e=>e.id===o.costRange)?.costMin,[o.costRange]),f=(0,G.useMemo)(()=>({...Go(o,d),from:t?.from,to:t?.to}),[o,d,t]),p=Ko(n,o),m=(0,G.useMemo)(()=>qo(e,o,d),[e,o,d]),h=Xt({queryKey:dn.search(n,f),enabled:i&&p,queryFn:async({signal:e})=>{let t=performance.now();Qn(`search.start`,{query_length:n.length});try{let r=await ir(n,f,{signal:e});return Qn(`search.done`,{duration_ms:Math.round(performance.now()-t),results:r.results.length}),r.results}catch(n){throw e.aborted||(console.error(`Failed to load search results:`,n),Qn(`search.error`,{duration_ms:Math.round(performance.now()-t),error_name:n instanceof Error?n.name:`UnknownError`})),n}}}),g=(0,G.useMemo)(()=>i?p?h.isPending?{status:`loading`}:h.isError?{status:`failed`,error:h.error instanceof Error?h.error.message:W(`Search request failed`)}:{status:`loaded`,results:h.data}:{status:`loaded`,results:m}:{status:`idle`},[m,i,h,p]),_=(0,G.useMemo)(()=>g.status===`loaded`?g.results:Yo,[g]),v=Math.max(0,_.length-1),y=Math.min(c,v),b=(0,G.useCallback)(e=>{l(t=>{let n=typeof e==`function`?e(Math.min(t,v)):e;return Math.max(0,Math.min(n,v))})},[v]),x=g.status===`loading`,S=(0,G.useMemo)(()=>Jo({usesServerSearch:p,isLoading:x,results:_,selectedProject:o.project,recentProjectOptions:e.projectOptions}),[o.project,x,_,e.projectOptions,p]);(0,G.useEffect)(()=>{if(!i)return;let e=_[y];if(!e)return;let t=`${e.reference.agentName}/${e.reference.sessionId}`;u.current.get(t)?.scrollIntoView({block:`nearest`})},[i,_,y]);let C=(0,G.useCallback)(()=>{a(!0)},[]),w=(0,G.useCallback)(e=>{r(e.trim()),a(!0),l(0)},[]),T=(0,G.useCallback)(()=>{a(!1),r(``)},[]),E=(0,G.useCallback)(()=>{h.refetch()},[h]);return{activeSearchQuery:n,searchMode:i,searchFilters:o,searchState:g,searchResults:_,searchLoading:x,projectOptions:S,usesServerSearch:p,selectedSearchIndex:y,registerResultRef:(0,G.useCallback)((e,t)=>{t?u.current.set(e,t):u.current.delete(e)},[]),setSearchFilters:s,setSelectedSearchIndex:b,openSearch:C,submitSearch:w,closeSearch:T,retrySearch:E,refresh:(0,G.useCallback)(async()=>{i&&p&&await h.refetch()},[i,h,p])}}var Zo=`codesesh:bookmarks:v1`;function Qo(e){return typeof e==`object`&&!!e}function $o(e){return Qo(e.reference)&&typeof e.reference.agentName==`string`&&typeof e.reference.sessionId==`string`&&e.reference.agentName.trim()&&e.reference.sessionId?gn({agentName:e.reference.agentName,sessionId:e.reference.sessionId}):typeof e.agentKey!=`string`||typeof e.sessionId!=`string`||!e.agentKey.trim()||!e.sessionId?null:gn({agentName:e.agentKey,sessionId:e.sessionId})}function es(e){if(!Qo(e))return null;let t=$o(e);if(!t)return null;let n=e.bookmarkedAt??e.bookmarked_at;return n!=null&&(typeof n!=`number`||!Number.isFinite(n))?null:{reference:t,bookmarkedAt:typeof n==`number`?n:Date.now()}}function ts(e){return bn(e)}function ns(e,t){return Sn(e,t),{reference:e.reference,session:e,availability:`available`,bookmarkedAt:Date.now()}}function rs(){if(typeof window>`u`)return[];try{let e=window.localStorage.getItem(Zo);if(!e)return[];let t=JSON.parse(e);return Array.isArray(t)?t.map(es).filter(e=>e!==null).toSorted((e,t)=>t.bookmarkedAt-e.bookmarkedAt):[]}catch{return[]}}function is(){typeof window>`u`||window.localStorage.removeItem(Zo)}var as=[],os=[`bookmarks`,`toggle`],ss={id:`bookmark-writes`};function cs(e,t,n){let r=ts(t.reference);return n?e.filter(e=>ts(e.reference)!==r):[t,...e.filter(e=>ts(e.reference)!==r)]}function ls(e,t){return t.reduce((e,{bookmark:t,isBookmarked:n})=>cs(e,t,n),e)}function us(e){return e.getMutationCache().findAll({mutationKey:os,exact:!0,status:`pending`}).map(e=>e.state.variables)}function ds(){let e=Ht(),t=Xt({queryKey:dn.bookmarks,queryFn:async({signal:e})=>{try{return await Xn({signal:e})}catch(t){throw e.aborted||console.error(`Failed to load bookmarks:`,t),t}}}),n=t.data?.bookmarks??as,r=Pr({filters:{mutationKey:os,exact:!0,status:`pending`},select:e=>e.state.variables}),i=(0,G.useMemo)(()=>ls(n,r),[n,r]),a=(0,G.useCallback)(t=>{e.setQueryData(dn.bookmarks,{bookmarks:t})},[e]),{mutate:o}=Fr({mutationKey:os,scope:ss,mutationFn:async({bookmark:e,isBookmarked:t})=>{if(t){await rr(e.reference);return}return Jn(e.reference)},onMutate:({bookmark:e,isBookmarked:t})=>{Qn(t?`bookmark.delete`:`bookmark.add`,{agent:e.reference.agentName,session:e.reference.sessionId})},onSuccess:async(t,{bookmark:n,isBookmarked:r})=>{await e.cancelQueries({queryKey:dn.bookmarks}),e.setQueryData(dn.bookmarks,e=>({bookmarks:cs(e?.bookmarks??as,t?{...n,...t.bookmark}:n,r)}))},onError:e=>{console.error(`Failed to toggle bookmark:`,e)},onSettled:()=>{if(e.isMutating({mutationKey:os,exact:!0})===1)return e.invalidateQueries({queryKey:dn.bookmarks})}}),{mutate:s}=Fr({scope:ss,mutationFn:er});(0,G.useEffect)(()=>{let t=rs();t.length!==0&&(e.cancelQueries({queryKey:dn.bookmarks}),s(t,{onSuccess:e=>{a(e.bookmarks),is()},onError:e=>console.error(`Failed to migrate legacy bookmarks:`,e)}))},[s,e,a]);let c=(0,G.useMemo)(()=>new Set(i.map(e=>ts(e.reference))),[i]),l=(0,G.useCallback)((e,t)=>c.has(ts({agentName:e,sessionId:t})),[c]),u=(0,G.useCallback)(t=>{let n=ls(e.getQueryData(dn.bookmarks)?.bookmarks??as,us(e)),r=ts(t.reference);o({bookmark:t,isBookmarked:n.some(e=>ts(e.reference)===r)})},[o,e]),d=(0,G.useCallback)((e,t)=>{u(ns(e,t))},[u]),f=t.refetch,p=(0,G.useCallback)(async()=>{await f()},[f]),m=t.isError?t.error instanceof Error?t.error.message:W(`Unable to load bookmarks.`):null;return{bookmarkedSessions:i,loading:t.isPending,error:m,isSessionBookmarked:l,toggleBookmark:u,toggleSessionBookmark:d,refresh:p}}function fs(e,t){return e.find(e=>t===On(fr(e)))??null}function ps(e,t,n){return t?n?e.byProjectAgentKey.get(kn(t,n))??[]:e.byProjectIdentityKey.get(t)??[]:[]}function ms({viewState:e,sessionIndexes:t,session:n,agents:r,projects:i,selectedProjectAgent:a,isSessionBookmarked:o}){let s=(0,G.useMemo)(()=>{let o=e.activeAgentKey,s=r.find(e=>e.name.toLowerCase()===o)??null,c=e.mode===`project`?{kind:e.activeProjectKind,key:e.activeProjectKey}:null,l=c?On(c):null,u=c&&l?{identity:c,identityKey:l,project:fs(i,l)}:null,d=l?t.byLandingProjectIdentityKey.get(l)??[]:[],f=e.mode===`session`?t.byRouteKey.get(Cn(e.activeAgentKey,e.activeSessionId))??null:null,p=(e.mode===`session`&&n?.reference.agentName===e.activeAgentKey&&n.reference.sessionId===e.activeSessionId?n:null)?.project_identity??f?.project_identity??null,m=e.mode===`project`?c:e.mode===`session`?p:null,h=m?On(m):null,g=null;m&&h&&(g=u?.identityKey===h?u:{identity:m,identityKey:h,project:fs(i,h)});let _=ps(t,h,a),v=hr(_);return{activeAgentKey:o,activeAgent:s,activeProject:u,activeProjectSessions:d,openedSessionProjectIdentity:p,selectedProjectNavigation:g,sidebarSessions:_,sidebarSessionLookup:v}},[r,i,a,n,t,e]),c=(0,G.useMemo)(()=>new Set(s.sidebarSessions.filter(e=>o(e.reference.agentName,e.reference.sessionId)).map(vr)),[o,s.sidebarSessions]);return{...s,bookmarkedSidebarSessionReferences:c}}function hs(e){let t=new Map,n=new Map;for(let r of e){let e=r.name.toLowerCase();t.set(e,r),n.set(e,r.displayName)}return{active:e.filter(e=>e.count>0),byKey:t,displayNameByKey:n}}function gs(e,t){return e.byKey.get(t.toLowerCase())}var _s=class{nextId=0;events=new Map;begin(){let e=this.nextId++;return this.events.set(e,null),e}record(e){for(let[t,n]of this.events)this.events.set(t,n?Tn(n,e):e)}read(e){return this.events.get(e)??null}complete(e){let t=this.read(e);return this.events.delete(e),t}cancel(e){this.events.delete(e)}};function vs(e){return[e.invalidateQueries({queryKey:dn.agentCatalogs}),e.invalidateQueries({queryKey:dn.dashboards}),e.invalidateQueries({queryKey:dn.searches})]}async function ys(e){await Promise.all([e.invalidateQueries({queryKey:dn.dashboards}),e.invalidateQueries({queryKey:dn.searches})])}async function bs(e){await Promise.all([...vs(e),e.invalidateQueries({queryKey:dn.sessionDetails}),e.invalidateQueries({queryKey:dn.bookmarks})])}async function xs(e,t){let n=new Map,r=(e,t)=>{let r=e.toLowerCase(),i=n.get(r)??new Set;i.add(t),n.set(r,i)};for(let e of t.changedSessionHeads){let{agentName:t,sessionId:n}=e.reference;r(t,n)}for(let{agentName:e,sessionId:n}of t.removedSessionRefs)r(e,n);n.size!==0&&await e.invalidateQueries({predicate:({queryKey:e})=>e.length===1&&e[0]===dn.bookmarks[0]?!0:e.length!==3||e[0]!==dn.sessionDetails[0]||typeof e[1]!=`string`||typeof e[2]!=`string`?!1:n.get(e[1])?.has(e[2])??!1})}var Ss=Jt,Cs={projects:[],summary:{projects:0,sessions:0,tokens:0,cost:0,latestActivity:null}},ws=[],Ts=[];function Es(e){return Yt({queryKey:dn.projectPage(e),queryFn:({signal:t})=>Gn(e,{signal:t}),staleTime:Ss,retry:!1})}function Ds(e){return Yt({queryKey:dn.agentCatalog(e),queryFn:({signal:t})=>tr(e,{signal:t}),staleTime:Ss})}function Os(e,t,n){return Nn(e,{changedSessionHeads:t.changedSessionHeads,projectionRelatedSessionHeads:t.projectionRelatedSessionHeads,projectionSessionOrder:t.projectionSessionOrder,removedSessionRefs:t.removedSessionRefs,from:n.from,to:n.to})}async function ks(e,t,n,r){let i=r.begin(),a=!1,o=(e,t)=>{let a=r.read(i);return{sessions:a?Os(e,a,n).sessions:e,complete:t}};try{let r=await qn({from:n.from,to:n.to},{signal:t},{onFirstPage(r){t.aborted||e.setQueryData(dn.sessionProjection(n),e=>e??o(r,!1))}});return t.throwIfAborted(),a=!0,{sessions:r.sessions,complete:!0,loadId:i,window:n}}finally{a||r.cancel(i)}}function As(e,t){if(!(`loadId`in e)||!(`window`in e))return e;let n=e,r=t.complete(n.loadId);return{sessions:r?Os(n.sessions,r,n.window).sessions:n.sessions,complete:n.complete}}function js(e,t){let n=mn(dn.sessionProjection(t));e.removeQueries({queryKey:dn.sessionProjections,predicate:e=>e.queryHash!==n})}async function Ms(e,t){let n=Ds(t);await Promise.all([e.invalidateQueries({queryKey:n.queryKey,exact:!0,refetchType:`active`},{throwOnError:!0,cancelRefetch:!1}),e.invalidateQueries({queryKey:dn.dashboards,refetchType:`active`},{throwOnError:!0,cancelRefetch:!1}),e.invalidateQueries({queryKey:dn.searches})])}async function Ns(e,t){await e.invalidateQueries({queryKey:dn.projectWindow(t),refetchType:`active`},{cancelRefetch:!1});let n=e.getQueryState(dn.projectPage(t))?.error;if(n)throw n}function Ps(e,t){let n=[e.getQueryState(Ds(t).queryKey),e.getQueryState(nn(t,{}).queryKey),e.getQueryState(Es(t).queryKey)];if(n.some(e=>!e||e.data===void 0||e.isInvalidated))return 0;let r=Math.min(...n.map(e=>e.dataUpdatedAt));return Math.max(0,Ss-(Date.now()-r))}function Fs(e,t){return e!=null&&t!=null&&e.days===t.days&&e.from===t.from&&e.to===t.to}function Is(e){let t=Ht(),n=(0,G.useRef)(new _s).current,r=(0,G.useRef)(null),i=(0,G.useRef)(null),a=(0,G.useRef)(null),o=Xt({queryKey:dn.sessionProjection(e??{}),staleTime:1/0,structuralSharing:(e,t)=>Vt(e,As(t,n)),queryFn:({signal:r})=>ks(t,r,e??{},n),enabled:e!==null}),s=Xt({...Ds(e??{}),enabled:e!==null}),c=Xt({...nn(e??{},{}),enabled:e!==null}),l=Xt({...Es(e??{}),enabled:e!==null,placeholderData:It}),u=o.refetch,d=s.refetch,f=c.refetch,p=l.refetch,m=e!==null&&o.data!==void 0&&s.data!==void 0;(0,G.useEffect)(()=>{e&&js(t,e)},[t,e]),(0,G.useEffect)(()=>()=>{r.current=null,a.current&&=(clearTimeout(a.current),null)},[e]);let h=(0,G.useCallback)(async()=>{if(!e)return;let[n,r,i]=await Promise.all([d({cancelRefetch:!0}),u({cancelRefetch:!0}),f({cancelRefetch:!0}),Ns(t,e)]),a=n.error??r.error??i.error;if(a)throw a},[t,d,f,u,e]),g=(0,G.useCallback)(async o=>{if(!e)return null;let s=e;n.record(o);let c=dn.sessionProjection(s),l=dn.agentCatalog(s),u=t.getQueryData(c),d=t.getQueryData(l);if(!u||d===void 0)return await h(),await Promise.all([xs(t,o),ys(t)]),{visibleNewSessions:0};let f=Os(u.sessions,o,s),p=new Set(f.sessions.map(e=>yn(e.reference))),m=new Set(u.sessions.map(e=>yn(e.reference))),g=o.newSessionRefs.filter(e=>{let t=yn(e);return!m.has(t)&&p.has(t)}).length;console.debug(`live.session_projection`,{window_from:s.from,window_to:s.to,before_sessions:u.sessions.length,changed_sessions:o.changedSessionHeads.length,projection_related_sessions:o.projectionRelatedSessionHeads?.length??0,removed_sessions:o.removedSessionRefs.length,after_sessions:f.sessions.length,visible_added_sessions:f.visibleAddedSessions,visible_removed_sessions:f.visibleRemovedSessions,visible_new_sessions:g}),t.setQueryData(c,{...u,sessions:f.sessions}),await xs(t,o);let _=!Fs(i.current,s),v=()=>{if(a.current=null,r.current){r.current.dirty=!0;return}let e={dirty:!1};r.current=e,(async()=>{try{do{if(e.dirty=!1,await Promise.all([Ms(t,s),Ns(t,s)]),r.current!==e)return;i.current=s}while(e.dirty)}finally{r.current===e&&(r.current=null)}})().catch(()=>void 0)};if(_||r.current)v();else if(!a.current){let e=Ps(t,s);e===0?v():a.current=setTimeout(v,e)}return{visibleNewSessions:g}},[n,t,h,e]),_=(0,G.useCallback)(async()=>{e&&(await h(),await bs(t))},[t,h,e]),v=(0,G.useCallback)(async()=>{if(e)try{await h()}catch{}},[h,e]),y=(0,G.useCallback)(async()=>{e&&await u({cancelRefetch:!0})},[u,e]),b=m?s.data:ws,x=l.data??Cs,S=x.projects,C=e===null||l.isPending,w=e!==null&&l.isError?l.error instanceof Error?l.error.message:W(`Unable to load projects.`):null,T=(0,G.useCallback)(async()=>{e&&await p({cancelRefetch:!0})},[p,e]),E=(0,G.useMemo)(()=>hs(b),[b]),D=(0,G.useMemo)(()=>new Set(E.active.map(e=>e.name.toLowerCase())),[E.active]),O=o.isError&&o.data===void 0||s.isError&&s.data===void 0,k=O?W(`Failed to load session data for the selected time window.`):null;return{window:m?e:null,agents:b,sessions:m?o.data.sessions:Ts,sessionsLoading:o.isFetching,sessionsError:o.data!==void 0&&(o.isError||!o.data.complete&&!o.isFetching)?W(`Session loading failed. Displayed sessions may be incomplete or out of date.`):null,projects:S,projectPage:x,projectsError:w,projectsLoading:C,dashboard:e===null?null:c.data??null,loading:e===null||!O&&!m,loadPending:e===null||o.isFetching||s.isFetching,error:k,version:o.dataUpdatedAt,activeAgents:E.active,agentCatalog:E,validAgentKeys:D,agentNameMap:E.displayNameByKey,reload:h,applyLiveEvent:g,resyncLiveState:_,retryLoad:v,retrySessions:y,retryProjects:T}}function Ls(){let e=Xt({queryKey:dn.config,retry:2,retryDelay:250,queryFn:async({signal:e})=>{try{return await Wn({signal:e})}catch(t){throw e.aborted||console.error(`Failed to load config:`,t),t}}});return{config:e.data??null,loading:e.isPending,error:e.isError?W(`Failed to load configuration. The CLI may be restarting or unavailable.`):null,retry:e.refetch}}var Rs=2e3,zs=[];function Bs(e){return e?`${e.days??``}:${e.from??``}:${e.to??``}`:`unavailable`}function Vs(e,t){let n=Bs(e),[r,i]=(0,G.useState)({key:n,cursors:[]}),a=r.key===n?r.cursors:zs,o=a.at(-1),s=Ht(),c=Xt({queryKey:dn.projectPage(e??{},o),queryFn:({signal:t})=>Gn(e??void 0,{cursor:o,signal:t}),enabled:e!=null,initialData:o?void 0:t,placeholderData:o?It:void 0,staleTime:Rs,retry:!1}),l=c.data??(o?null:t),u=!!o&&c.error instanceof ar&&c.error.status===409;(0,G.useEffect)(()=>{u&&s.invalidateQueries({queryKey:dn.projectPage(e??{}),exact:!0},{cancelRefetch:!0}).then(()=>i(e=>e.key===n&&e.cursors.at(-1)===o?{key:n,cursors:[]}:e))},[o,n,s,u,e]);let d=(0,G.useCallback)(()=>{let e=c.data?.nextCursor;e&&!c.isPlaceholderData&&i({key:n,cursors:[...a,e]})},[a,n,c.data?.nextCursor,c.isPlaceholderData]),f=(0,G.useCallback)(()=>{i({key:n,cursors:a.slice(0,-1)})},[a,n]),p=(0,G.useCallback)(async()=>{await c.refetch()},[c]);return{page:l,pageNumber:a.length+1,loading:u||c.isPending||c.isPlaceholderData,error:u?null:c.isError&&c.error instanceof Error?c.error.message:c.isError?W(`Unable to load projects.`):null,canPrevious:a.length>0&&!u&&!c.isPlaceholderData,canNext:!!c.data?.nextCursor&&!u&&!c.isPlaceholderData,next:d,previous:f,retry:p}}function Hs(e,t,n){let r=t?On(t):null,i=(0,G.useMemo)(()=>r?n.find(e=>On({kind:e.identityKind,key:e.identityKey})===r)??null:null,[r,n]),a=Xt({queryKey:dn.projectDetail(e??{},t??{kind:`path`,key:``}),queryFn:({signal:n})=>nr(e,t,{signal:n}),enabled:e!=null&&t!=null&&i==null,staleTime:Rs,retry:!1});return{project:i??a.data??null,loading:a.isPending&&e!=null&&t!=null&&i==null,error:a.isError&&a.error instanceof Error?a.error.message:a.isError?W(`Unable to load project.`):null,retry:a.refetch}}function Us({window:e,pending:t,error:n,agentCount:r,sessionCount:i}){let a=(0,G.useRef)(null);(0,G.useEffect)(()=>{a.current=e?performance.now():null,e&&Qn(`app.load.start`)},[e]),(0,G.useEffect)(()=>{let e=a.current;if(e===null||t)return;let o=Math.round(performance.now()-e);if(a.current=null,n){console.error(`Failed to load data:`,n),Qn(`app.load.error`,{duration_ms:o});return}Qn(`app.load.done`,{duration_ms:o,agents:r,sessions:i})},[r,n,t,i,e])}var Ws=500,Gs=5e3;function Ks({applyLiveEvent:e,resyncLiveState:t,setScanStatus:n}){let[r,i]=(0,G.useState)(null),[a,o]=(0,G.useState)(`connected`),s=(0,G.useRef)(null),c=(0,G.useRef)(null),l=(0,G.useRef)(Promise.resolve()),u=(0,G.useRef)(()=>{}),d=(0,G.useEffectEvent)(async t=>{try{let n=await e(t);n&&n.visibleNewSessions>0&&i(n.visibleNewSessions)}catch(e){console.error(`Failed to sync live session update:`,e),u.current()}}),f=(0,G.useEffectEvent)(()=>{c.current=null;let e=s.current;s.current=null,e&&(l.current=l.current.then(()=>d(e)))}),p=(0,G.useEffectEvent)(()=>{s.current=null,c.current!==null&&(window.clearTimeout(c.current),c.current=null)}),m=(0,G.useEffectEvent)(async()=>{await l.current,await t()});return(0,G.useEffect)(()=>{let e=()=>{},t=()=>{e(),p(),o(`recovering`);let t=!1,n;e=()=>{t=!0,clearTimeout(n)};let r=async()=>{try{await m(),t||o(`connected`)}catch(e){if(t)return;console.error(`Failed to resync live session state:`,e),n=setTimeout(()=>void r(),Gs)}};r()};u.current=t;let r=Yn(e=>{s.current=s.current?Tn(s.current,e):e,c.current??=window.setTimeout(()=>f(),Ws)},n,()=>{u.current=t,t()},()=>{u.current=()=>{},e(),o(`disconnected`)});return()=>{u.current=()=>{},e(),r()}},[n]),(0,G.useEffect)(()=>()=>p(),[]),(0,G.useEffect)(()=>{if(!r)return;let e=window.setTimeout(()=>i(null),3500);return()=>window.clearTimeout(e)},[r]),{liveNotice:a===`disconnected`?W(`Live updates disconnected; reconnecting…`):a===`recovering`?W(`Live data may be out of date; synchronizing…`):r==null?null:W(`{0} new sessions found; the list refreshed automatically`,[r])}}function qs(e){if(!(e instanceof HTMLElement))return!1;let t=e.tagName.toLowerCase();return t===`input`||t===`textarea`||t===`select`||e.isContentEditable}function Js(e){let{viewState:t,navigate:n,selectedProjectNavigationIdentity:r,shortcutHelpOpen:i,setShortcutHelpOpen:a,dismissShortcutHint:o,isSearchMode:s,activeSearchQuery:c,searchResults:l,selectedSearchIndex:u,setSelectedSearchIndex:d,clearSearchInput:f,openSearch:p,closeSearch:m}=e,h=(0,G.useEffectEvent)(e=>{let h=e.key;if((e.metaKey||e.ctrlKey)&&h.toLowerCase()===`k`){e.preventDefault(),p(),d(0);return}if(e.defaultPrevented||e.metaKey||e.ctrlKey||e.altKey||e.isComposing)return;let g=e.target,_=qs(g);if(i){h===`Escape`&&(e.preventDefault(),a(!1));return}if(_){h===`Escape`&&(e.preventDefault(),g instanceof HTMLElement&&g.blur());return}if(h===`?`){e.preventDefault(),a(!0),o();return}if(h===`/`){e.preventDefault(),o(),p();return}if(h===`Escape`){if(e.preventDefault(),s){m(),f();return}if(t.mode===`session`&&t.activeAgentKey){if(r){n(or(r));return}n(Rn(t.activeAgentKey))}return}if(s){if(l.length===0)return;if(h===`j`){e.preventDefault(),o(),d(e=>Math.min(e+1,l.length-1));return}if(h===`k`){e.preventDefault(),o(),d(e=>Math.max(e-1,0));return}if(h===`g`){e.preventDefault(),o(),d(0);return}if(h===`G`){e.preventDefault(),o(),d(l.length-1);return}if(h===`Enter`){let t=l[u];if(!t)return;e.preventDefault(),o(),m(),n(jn(t.reference),{state:{searchQuery:c}})}return}});(0,G.useEffect)(()=>(window.addEventListener(`keydown`,h),()=>window.removeEventListener(`keydown`,h)),[])}var Ys={"7d":7,"14d":14,"30d":30,"90d":90};function Xs(e){return En(e,1)-1}function Zs(e,t){return e.days===0||e.from==null?`all`:(e.days===7||e.days===14||e.days===30||e.days===90)&&Dn(e.from,e.to??t)===e.days?`${e.days}d`:`custom`}function Qs(e,t){if(e===`all`)return{from:0,days:0};let n=Ys[e];return{from:En(xn(t),-(n-1)),to:Xs(t),days:n}}function $s(e,t,n=Date.now()){let r=e.get(`range`);if(r&&r!==`custom`&&r in Ys||r===`all`)return{preset:r,window:Qs(r,n)};if(r===`custom`){let t=e.get(`from`)??``,n=e.get(`to`)??``,i=zn(t,`start`),a=zn(n,`end`);if(i!=null&&a!=null&&i<=a)return{preset:r,window:{from:i,to:a},customFrom:t,customTo:n}}let i=Zs(t,n);return i===`custom`?{preset:i,window:t,customFrom:t.from==null?void 0:_n(t.from),customTo:_n(t.to??n)}:{preset:i,window:Qs(i,n)}}function ec(e,t){let n=new URLSearchParams(e);return n.set(`range`,t),n.delete(`from`),n.delete(`to`),n}function tc(e,t,n){let r=new URLSearchParams(e);return r.set(`range`,`custom`),r.set(`from`,t),r.set(`to`,n),r}var nc=[`range`,`from`,`to`];function rc(e){let t=new URLSearchParams;for(let n of nc){let r=e.get(n);r!=null&&t.set(n,r)}return t.toString()}function ic(e=Date.now()){let t=new Date(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate()+1).getTime()}function ac(e,t=Date.now()){return(e>t?e:ic(t))-1}function oc(e){return e!==null&&e!==`all`&&e!==`custom`}function sc(e){let t=cr(),[n,r]=dr(),i=n.toString(),a=n.has(`range`),o=a?rc(n):null,[s,c]=(0,G.useState)(()=>({pathname:t.pathname,rangeSearch:o})),[l,u]=(0,G.useState)(ic),d=s.pathname!==t.pathname;o!==null&&(d||s.rangeSearch!==o)&&c({pathname:t.pathname,rangeSearch:o});let f=(0,G.useMemo)(()=>{if(a||!d||!s.rangeSearch)return i;let e=new URLSearchParams(i),t=new URLSearchParams(s.rangeSearch);for(let[n,r]of t)e.set(n,r);return e.toString()},[a,d,i,s.rangeSearch]),p=(0,G.useMemo)(()=>new URLSearchParams(f),[f]),m=rc(p),h=(0,G.useMemo)(()=>new URLSearchParams(m),[m]);(0,G.useEffect)(()=>{f!==i&&r(p,{replace:!0})},[p,f,i,r]);let g=(0,G.useMemo)(()=>e?$s(h,e,ac(l)):null,[e,l,h]),_=(0,G.useCallback)(e=>$s(h,e).window,[h]),v=(0,G.useCallback)(()=>e?_(e):null,[e,_]);(0,G.useEffect)(()=>{if(!oc(g?.preset??null))return;let e=Math.max(0,l-Date.now()),t=window.setTimeout(()=>{u(ic())},e);return()=>window.clearTimeout(t)},[l,g?.preset]);let y=(0,G.useCallback)(e=>r(ec(new URLSearchParams(i),e)),[i,r]),b=(0,G.useCallback)((e,t)=>r(tc(new URLSearchParams(i),e,t)),[i,r]);return{timeWindow:g?.window??null,preset:g?.preset??null,customFrom:g?.customFrom,customTo:g?.customTo,resolve:_,resolveCurrent:v,selectPreset:y,selectCustom:b}}var cc=[`light`,`dark`,`system`],lc=`codesesh.ui-preferences`,uc=`codesesh.shortcuts-hint-dismissed`,dc={shortcutHintDismissed:!1,sidebarCollapsed:!1,theme:`system`};function fc(e){return typeof e==`string`&&cc.includes(e)}function pc(){if(typeof window>`u`)return null;try{return window.localStorage}catch{return null}}function mc(e){return typeof e==`object`&&!!e}function hc(e){if(!e)return null;try{let t=JSON.parse(e);if(!mc(t)||t.version!==1||!mc(t.state))return null;let{shortcutHintDismissed:n,sidebarCollapsed:r,theme:i}=t.state;return typeof n!=`boolean`||typeof r!=`boolean`||i!==void 0&&!fc(i)?null:{shortcutHintDismissed:n,sidebarCollapsed:r,theme:fc(i)?i:`system`}}catch{return null}}function gc(e=pc()){if(!e)return dc;try{let t=e.getItem(lc);return t===null?{...dc,shortcutHintDismissed:e.getItem(uc)===`1`}:hc(t)??dc}catch{return dc}}function _c(e,t=pc()){if(!t)return;let n={version:1,state:{shortcutHintDismissed:e.shortcutHintDismissed,sidebarCollapsed:e.sidebarCollapsed,theme:e.theme}};try{t.setItem(lc,JSON.stringify(n)),t.removeItem(uc)}catch{return}}function vc(){let[e,t]=(0,G.useState)(gc),n=(0,G.useRef)(e),r=(0,G.useCallback)(e=>{n.current=e,t(e),_c(e)},[]),i=(0,G.useCallback)(()=>{n.current.shortcutHintDismissed||r({...n.current,shortcutHintDismissed:!0})},[r]),a=(0,G.useCallback)(e=>{r({...n.current,sidebarCollapsed:e})},[r]),o=(0,G.useCallback)(e=>{r({...n.current,theme:e})},[r]);return{...e,dismissShortcutHint:i,setSidebarCollapsed:a,setTheme:o}}function yc(e){if(!e)return W(`unknown`);let t=Date.now()-e;if(Number.isNaN(t)||t<0)return W(`just now`);let n=Math.floor(t/6e4);if(n<1)return W(`just now`);if(n<60)return W(`{0}m ago`,[n]);let r=Math.floor(n/60);return r<24?W(`{0}h ago`,[r]):W(`{0}d ago`,[Math.floor(r/24)])}function bc(e){return e.toLocaleString(An())}function xc(e){return e===0?`$0.00`:e<.01?`$${e.toFixed(4)}`:`$${e.toFixed(2)}`}function Sc(e){if(e===`recorded`)return W(`recorded`);if(e===`estimated`)return W(`estimated`)}function Cc(e){return e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toString()}function wc(e){return Math.round(e).toLocaleString(An())}function Tc(e){return e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:wc(e)}function Ec(e){return`$${e.toLocaleString(An(),{minimumFractionDigits:2,maximumFractionDigits:2})}`}function Dc(e){let t=Math.abs(e);return t>=1e6?`$${(e/1e6).toFixed(2)}M`:t>=1e3?`$${(e/1e3).toFixed(2)}k`:Ec(e)}function Oc(e,t){if(!Number.isFinite(e)||!Number.isFinite(t)||t<=0)return null;let n=(e-t)/t;return`${n<0?`▼`:`▲`} ${Math.round(Math.abs(n)*100)}%`}function kc(e,t=Date.now()){let n=t-e;if(n<6e4)return W(`just now`);let r=Math.floor(n/6e4);if(r<60)return W(`{0}m ago`,[r]);let i=Math.floor(r/60);if(i<24)return W(`{0}h ago`,[i]);let a=new Date(t);a.setDate(a.getDate()-1);let o=new Date(e);return Nc(o,a)?W(`Yesterday`):Ac(o.getTime())}function Ac(e){if(typeof e==`string`){let t=/^(\d{4})-(\d{2})-(\d{2})/.exec(e);if(t)return`${t[2]}-${t[3]}`}let t=new Date(e);return Number.isNaN(t.getTime())?``:`${Pc(t.getMonth()+1)}-${Pc(t.getDate())}`}function jc(e){if(!Number.isFinite(e))return``;let t=new Date(e);return`${Pc(t.getHours())}:${Pc(t.getMinutes())}`}function Mc(e){return Number.isFinite(e)?`${Math.round(e*100)}%`:`0%`}function Nc(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Pc(e){return String(e).padStart(2,`0`)}function Fc(e){if(e==null||typeof e==`number`&&(!Number.isFinite(e)||e<=0))return null;let t=null;if(typeof e==`number`){let n=e<10**12?e*1e3:e;t=new Date(n)}else if(typeof e==`string`&&e.trim()){let n=Number(e);t=Number.isFinite(n)&&n>0?new Date(n<10**12?n*1e3:n):Number.isFinite(n)?null:new Date(e)}return!t||Number.isNaN(t.getTime())?null:t.toLocaleTimeString(An(),{hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:An()===`en`})}function Ic(e){return e.display_title??e.title}function Lc(e){let t=zc(e);return{contextLabel:Rc(e),...t,breadcrumbs:Bc(e)}}function Rc(e){if(e.isSearchMode)return W(`Search`);switch(e.viewState.mode){case`session`:return W(`Session`);case`root`:return W(`Dashboard`);case`projects`:return W(`Projects`);case`project`:return W(`Project`);default:return W(`Landing`)}}function zc(e){let{viewState:t}=e;if(e.isSearchMode)return{title:W(`Search`),subtitle:e.searchSubtitle};if(t.mode===`root`){let t=e.dashboard;return{title:W(`Dashboard`),subtitle:t?(0,K.jsx)(`span`,{children:W(`{0} total sessions across {1} agents`,[wc(t.totals.sessions),wc(t.perAgent.length)])}):W(`Aggregated view across all agents`)}}if(t.mode===`projects`)return{title:W(`Projects`),subtitle:(0,K.jsx)(`span`,{children:W(`{0} projects across {1} sessions`,[wc(e.projectCount),wc(e.sessionCount)])})};if(t.mode===`project`){let n=e.activeProject;return{title:n?.displayName??W(`Project`),subtitle:n?(0,K.jsx)(`span`,{children:W(`{0} sessions · {1} agents`,[wc(n.sessionCount),wc(n.agentStats.length)])}):t.activeProjectKey}}if(t.mode===`agent`)return{title:e.activeAgent?.displayName??t.activeAgentKey,subtitle:(0,K.jsx)(`span`,{children:W(`{0} sessions`,[wc(e.sidebarSessionCount)])})};if(t.mode===`session`){if(e.sessionError)return{title:e.sessionError===`missing`?W(`Session Not Found`):W(`Session Load Failed`),subtitle:W(`Requested /{0}/{1}`,[t.activeAgentKey,t.activeSessionId])};if(e.session){let t=e.session.time_updated??e.session.time_created;return{title:Ic(e.session)||W(`Session`),subtitle:(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`span`,{className:`console-mono`,children:[`ID: #`,e.session.reference.sessionId.slice(0,8)]}),(0,K.jsx)(`span`,{children:`·`}),(0,K.jsxs)(`span`,{className:`console-mono`,children:[W(`Updated`),` `,yc(t)]}),(0,K.jsx)(Hn,{tags:e.session.smart_tags,limit:9,className:`inline-flex`})]})}}}return t.mode===`missingAgent`?{title:W(`Agent Not Found`),subtitle:W(`Requested /{0}`,[t.attemptedKey])}:{title:`CodeSesh`,subtitle:W(`Select an agent to browse sessions`)}}function Bc(e){let{viewState:t}=e;if(e.isSearchMode)return[{label:W(`Search`)}];let n={label:W(`Dashboard`),to:t.mode===`root`?void 0:`/`};if(t.mode===`root`)return[{label:W(`Dashboard`)}];if(t.mode===`projects`)return[n,{label:W(`Projects`)}];if(t.mode===`project`)return[n,{label:W(`Projects`),to:`/projects`},{label:e.activeProject?.displayName??t.activeProjectKey}];if(t.mode===`session`&&e.selectedProjectIdentity)return[n,{label:W(`Projects`),to:`/projects`},{label:e.selectedProject?.displayName??e.selectedProjectIdentity.key,to:or(e.selectedProjectIdentity)},{label:e.session?Ic(e.session):t.activeSessionId||W(`Session`)}];if(t.mode===`missingAgent`)return[n,{label:t.attemptedKey}];let r=e.activeAgent?.displayName??t.activeAgentKey??W(`Unknown Agent`),i={label:r,to:t.mode===`session`?`/${t.activeAgentKey}`:void 0};return t.mode===`agent`?[n,{label:r}]:t.mode===`session`?[n,i,{label:e.session?Ic(e.session):t.activeSessionId||W(`Session`)}]:[n,{label:W(`Invalid Route`)}]}function Vc(e){let t=window.matchMedia(`(hover: hover) and (pointer: fine)`),n=e.dataset.fluidHover??`x`,r=0,i=!0,a,o={x:0,y:0},s={left:0,top:0,scaleX:1,scaleY:1},c=[];function l(){cancelAnimationFrame(r),r=0,a?.removeAttribute(`data-fluid-active`),a=void 0,delete e.dataset.fluidVisible,delete e.dataset.fluidTravel}function u(){i=!0,l()}function d(){if(r=0,i){let t=e.getBoundingClientRect();s={left:t.left,top:t.top,scaleX:t.width/(e.offsetWidth||1),scaleY:t.height/(e.offsetHeight||1)},c=Array.from(e.querySelectorAll(`[data-fluid-item]`)).filter(e=>!e.matches(`:disabled, [aria-disabled='true']`)).map(e=>({element:e,rect:e.getBoundingClientRect()})).filter(({rect:e})=>e.width>0&&e.height>0),i=!1}let t,u=1/0,d=Math.min(...c.map(({rect:e})=>e.left)),f=Math.max(...c.map(({rect:e})=>e.right)),p=Math.min(...c.map(({rect:e})=>e.top)),m=Math.max(...c.map(({rect:e})=>e.bottom));if(o.x<d||o.x>f||o.y<p||o.y>m){l();return}for(let e of c){let{rect:r}=e,i=o.x>=r.left&&o.x<=r.right&&o.y>=r.top&&o.y<=r.bottom?-1:Math.abs(n===`y`?o.y-(r.top+r.height/2):o.x-(r.left+r.width/2));i<u&&(t=e,u=i)}if(!t||t.element===a)return;a&&(e.dataset.fluidTravel=``),a?.removeAttribute(`data-fluid-active`),a=t.element,a.dataset.fluidActive=``;let{rect:h}=t;e.style.setProperty(`--fluid-x`,`${(h.left-s.left)/s.scaleX-e.clientLeft+e.scrollLeft}px`),e.style.setProperty(`--fluid-y`,`${(h.top-s.top)/s.scaleY-e.clientTop+e.scrollTop}px`),e.style.setProperty(`--fluid-width`,`${h.width/s.scaleX}px`),e.style.setProperty(`--fluid-height`,`${h.height/s.scaleY}px`),e.dataset.fluidVisible=``}function f(e){if(!t.matches||e.pointerType!==`mouse`)return;let n=(e.target instanceof Element?e.target:null)?.closest(`a, button, input, select, textarea`);if(n&&!n.matches(`[data-fluid-item]`)){l();return}o={x:e.clientX,y:e.clientY},r||=requestAnimationFrame(d)}function p(e){i=!0,f(e)}let m=new ResizeObserver(u);function h(){m.disconnect(),m.observe(e),e.querySelectorAll(`[data-fluid-item]`).forEach(e=>m.observe(e)),u()}let g=new MutationObserver(h);return h(),g.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`disabled`,`aria-disabled`,`hidden`]}),e.dataset.fluidReady=``,e.addEventListener(`pointerenter`,p),e.addEventListener(`pointermove`,f),e.addEventListener(`pointerleave`,l),e.addEventListener(`pointercancel`,l),e.addEventListener(`keydown`,l),window.addEventListener(`scroll`,u,!0),window.addEventListener(`resize`,u),t.addEventListener(`change`,u),()=>{l(),m.disconnect(),g.disconnect(),e.removeEventListener(`pointerenter`,p),e.removeEventListener(`pointermove`,f),e.removeEventListener(`pointerleave`,l),e.removeEventListener(`pointercancel`,l),e.removeEventListener(`keydown`,l),window.removeEventListener(`scroll`,u,!0),window.removeEventListener(`resize`,u),t.removeEventListener(`change`,u),delete e.dataset.fluidReady;for(let t of[`x`,`y`,`width`,`height`])e.style.removeProperty(`--fluid-${t}`)}}function Hc(){return(0,G.useCallback)(e=>{if(e)return Vc(e)},[])}function Uc({viewState:e,sessions:t,sessionLookup:n,isSearchMode:r,shortcutHelpOpen:i,dismissShortcutHint:a,onOpenSession:o}){let s=e.mode===`session`?Cn(e.activeAgentKey,e.activeSessionId):null,c=s??e.mode,[l,u]=(0,G.useState)(null),d=l?.scope===c?l.reference:s,f=(0,G.useCallback)(e=>{u({scope:c,reference:vr(e)})},[c]),p=(0,G.useEffectEvent)(e=>{if(e.defaultPrevented||e.metaKey||e.ctrlKey||e.altKey||e.isComposing||qs(e.target)||r||i||t.length===0)return;let s=e=>{a();let r=d==null?-1:n.indexByReference.get(d)??-1,i=r>=0?r:e>=0?-1:t.length,o=t[Math.max(0,Math.min(i+e,t.length-1))];o&&u({scope:c,reference:vr(o)})};if(e.key===`j`){e.preventDefault(),s(1);return}if(e.key===`k`){e.preventDefault(),s(-1);return}if(e.key===`g`){e.preventDefault(),a();let n=t[0];n&&u({scope:c,reference:vr(n)});return}if(e.key===`G`){e.preventDefault(),a();let n=t.at(-1);n&&u({scope:c,reference:vr(n)});return}if(e.key!==`Enter`||d==null)return;let l=n.byReference.get(d);l&&(e.preventDefault(),a(),o(l))});return(0,G.useEffect)(()=>(window.addEventListener(`keydown`,p),()=>window.removeEventListener(`keydown`,p)),[]),{selectedSessionReference:d,selectSession:f}}function Wc({icon:e,iconColored:t,alt:n,className:r}){if(t)return(0,K.jsx)(`img`,{src:e,alt:n,className:r});let i=`url("${e}") center / contain no-repeat`;return(0,K.jsx)(`span`,{role:`img`,"aria-label":n,className:`inline-block bg-current ${r??``}`,style:{mask:i,WebkitMask:i}})}var Gc=[[`path`,{d:`M7.99978 3.5H6.60021C4.43183 3.5 3.34764 3.5 2.67399 4.17362C2.00034 4.84724 2.00029 5.93144 2.00021 8.09982L2 13.3998C1.99992 15.5684 1.99987 16.6526 2.67353 17.3263C3.34719 18 4.43146 18 6.6 18H8.95042C10.4329 18 11.7092 19.0464 11.9999 20.5V5.5C11.0556 4.24097 9.99989 3.5 7.99978 3.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M16.0001 3.5H17.3997C19.5681 3.5 20.6523 3.5 21.3259 4.17362C21.9996 4.84724 21.9996 5.93144 21.9997 8.09982L21.9999 13.3998C22 15.5684 22 16.6526 21.3264 17.3263C20.6527 18 19.5684 18 17.3999 18H15.0495C13.567 18 12.2907 19.0464 12 20.5V5.5C12.9443 4.24097 14 3.5 16.0001 3.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M15.5 14.25H18.5M15.5 10.75H18.5M15.5 7.25H18.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M5.49994 14.25H8.49994M5.49994 10.75H8.49994M5.49994 7.25H8.49994`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}]],Kc=[[`path`,{d:`M3 12C3 7.75736 3 5.63604 4.31802 4.31802C5.63604 3 7.75736 3 12 3C16.2426 3 18.364 3 19.682 4.31802C21 5.63604 21 7.75736 21 12C21 16.2426 21 18.364 19.682 19.682C18.364 21 16.2426 21 12 21C7.75736 21 5.63604 21 4.31802 19.682C3 18.364 3 16.2426 3 12Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M3 9H21`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],qc=[[`path`,{d:`M12 14L17 14`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M7.25 13.875V14M7.5 14C7.5 14.1381 7.38807 14.25 7.25 14.25C7.11193 14.25 7 14.1381 7 14C7 13.8619 7.11193 13.75 7.25 13.75C7.38807 13.75 7.5 13.8619 7.5 14Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M12 18H7M16.75 17.875V18M16.5 18C16.5 18.1381 16.6119 18.25 16.75 18.25C16.8881 18.25 17 18.1381 17 18C17 17.8619 16.8881 17.75 16.75 17.75C16.6119 17.75 16.5 17.8619 16.5 18Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M16 2V6M8 2V6`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}],[`path`,{d:`M3 10H21`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`4`}],[`path`,{d:`M13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22H13C16.7712 22 18.6569 22 19.8284 20.8284C21 19.6569 21 17.7712 21 14V12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`5`}]],Jc=[[`path`,{d:`M18 6L6.00081 17.9992M17.9992 18L6 6.00085`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Yc=[[`path`,{d:`M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M14.9994 15L9 9M9.00064 15L15 9`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],Xc=[[`path`,{d:`M11 6L21 6`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M11 12L21 12`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M11 18L21 18`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M3 7.39286C3 7.39286 4 8.04466 4.5 9C4.5 9 6 5.25 8 4`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}],[`path`,{d:`M3 18.3929C3 18.3929 4 19.0447 4.5 20C4.5 20 6 16.25 8 15`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`4`}]],Zc=[[`path`,{d:`M5 13.2592L7.58583 15.9568C8.2525 16.6523 8.58583 17 9.00004 17C9.41425 17 9.74759 16.6523 10.4143 15.9568L19 7`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Qc=[[`path`,{d:`M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M8 12.5L10.5 15L16 9`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],$c=[[`path`,{d:`M18 9.00005C18 9.00005 13.5811 15 12 15C10.4188 15 6 9 6 9`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],el=[[`path`,{d:`M15 18C15 18 9.00001 13.5811 9 12C8.99999 10.4188 15 6 15 6`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],tl=[[`path`,{d:`M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],nl=[[`path`,{d:`M18 15C18 15 13.5811 9.00001 12 9C10.4188 8.99999 6 15 6 15`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],rl=[[`path`,{d:`M9.50293 21.6846C10.302 21.8902 11.1397 21.9996 12.0029 21.9996C12.8662 21.9996 13.7039 21.8902 14.5029 21.6846`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M14.5029 2.31504C13.7039 2.10938 12.8662 2 12.0029 2C11.1397 2 10.302 2.10938 9.50293 2.31504`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M2.37109 14.6777C2.59251 15.4726 2.91663 16.2527 3.34826 17.0003C3.77988 17.7479 4.29346 18.4187 4.87109 19.0079`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M21.6451 9.32261C21.4237 8.52778 21.0996 7.74762 20.668 7.00002C20.2363 6.25243 19.7228 5.58165 19.1451 4.99248`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}],[`path`,{d:`M21.6436 14.6777C21.4221 15.4726 21.098 16.2527 20.6664 17.0003C20.2348 17.7479 19.7212 18.4187 19.1436 19.0079`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`4`}],[`path`,{d:`M2.36952 9.32261C2.59093 8.52778 2.91506 7.74762 3.34668 7.00002C3.7783 6.25243 4.29188 5.58165 4.86952 4.99248`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`5`}]],il=[[`circle`,{cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],al=[[`circle`,{cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M12 8V12L14 14`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],ol=[[`path`,{d:`M14 21H16M14 21C13.1716 21 12.5 20.3284 12.5 19.5V17L12 17M14 21H10M10 21H8M10 21C10.8284 21 11.5 20.3284 11.5 19.5V17L12 17M12 17V21`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M16 3H8C5.17157 3 3.75736 3 2.87868 3.87868C2 4.75736 2 6.17157 2 9V11C2 13.8284 2 15.2426 2.87868 16.1213C3.75736 17 5.17157 17 8 17H16C18.8284 17 20.2426 17 21.1213 16.1213C22 15.2426 22 13.8284 22 11V9C22 6.17157 22 4.75736 21.1213 3.87868C20.2426 3 18.8284 3 16 3Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],sl=[[`path`,{d:`M7.5 7.5L8.72654 8.55719C9.24218 9.00163 9.5 9.22386 9.5 9.5C9.5 9.77614 9.24218 9.99836 8.72654 10.4428L7.5 11.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M11.5 12.5H15.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M12 21C15.7497 21 17.6246 21 18.9389 20.0451C19.3634 19.7367 19.7367 19.3634 20.0451 18.9389C21 17.6246 21 15.7497 21 12C21 8.25027 21 6.3754 20.0451 5.06107C19.7367 4.6366 19.3634 4.26331 18.9389 3.95491C17.6246 3 15.7497 3 12 3C8.25027 3 6.3754 3 5.06107 3.95491C4.6366 4.26331 4.26331 4.6366 3.95491 5.06107C3 6.3754 3 8.25027 3 12C3 15.7497 3 17.6246 3.95491 18.9389C4.26331 19.3634 4.6366 19.7367 5.06107 20.0451C6.3754 21 8.25027 21 12 21Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]],cl=[[`path`,{d:`M7 11V9C7 5.70017 7 4.05025 8.02513 3.02513C9.05025 2 10.7002 2 14 2C17.2998 2 18.9497 2 19.9749 3.02513C21 4.05025 21 5.70017 21 9V11C21 14.2998 21 15.9497 19.9749 16.9749C18.9497 18 17.2998 18 14 18C10.7002 18 9.05025 18 8.02513 16.9749C7 15.9497 7 14.2998 7 11Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M3 6V15C3 18.2998 3 19.9497 4.02513 20.9749C5.05025 22 6.70017 22 10 22H17`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],ll=[[`path`,{d:`M8 7L16 7`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M8 11L12 11`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M13 21.5V21C13 18.1716 13 16.7574 13.8787 15.8787C14.7574 15 16.1716 15 19 15H19.5M20 13.3431V10C20 6.22876 20 4.34315 18.8284 3.17157C17.6569 2 15.7712 2 12 2C8.22877 2 6.34315 2 5.17157 3.17157C4 4.34314 4 6.22876 4 10L4 14.5442C4 17.7892 4 19.4117 4.88607 20.5107C5.06508 20.7327 5.26731 20.9349 5.48933 21.1139C6.58831 22 8.21082 22 11.4558 22C12.1614 22 12.5141 22 12.8372 21.886C12.9044 21.8623 12.9702 21.835 13.0345 21.8043C13.3436 21.6564 13.593 21.407 14.0919 20.9081L18.8284 16.1716C19.4065 15.5935 19.6955 15.3045 19.8478 14.9369C20 14.5694 20 14.1606 20 13.3431Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]],ul=[[`path`,{d:`M4 12.0005L4 14.5446C4 17.7896 4 19.4122 4.88607 20.5111C5.06508 20.7331 5.26731 20.9354 5.48933 21.1144C6.58831 22.0005 8.21082 22.0005 11.4558 22.0005C12.1614 22.0005 12.5141 22.0005 12.8372 21.8865C12.9044 21.8627 12.9702 21.8355 13.0345 21.8047C13.3436 21.6569 13.593 21.4075 14.0919 20.9086L18.8284 16.172C19.4065 15.594 19.6955 15.3049 19.8478 14.9374C20 14.5699 20 14.1611 20 13.3436V10.0005C20 6.22922 20 4.34361 18.8284 3.17203C17.7693 2.11287 16.1265 2.01125 13.0345 2.0015M13 21.5005V21.0005C13 18.172 13 16.7578 13.8787 15.8791C14.7574 15.0005 16.1716 15.0005 19 15.0005H19.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M12 5.99954H4M8 1.99954V9.99954`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],dl=[[`path`,{d:`M13 20.8268V22H14.1734C14.5827 22 14.7874 22 14.9715 21.9238C15.1555 21.8475 15.3003 21.7028 15.5897 21.4134L20.4133 16.5894C20.6864 16.3164 20.8229 16.1799 20.8959 16.0327C21.0347 15.7525 21.0347 15.4236 20.8959 15.1434C20.8229 14.9961 20.6864 14.8596 20.4133 14.5866C20.1403 14.3136 20.0038 14.1771 19.8565 14.1041C19.5763 13.9653 19.2473 13.9653 18.9671 14.1041C18.8198 14.1771 18.6833 14.3136 18.4103 14.5866L18.4103 14.5866L13.5867 19.4106C13.2972 19.7 13.1525 19.8447 13.0762 20.0287C13 20.2128 13 20.4174 13 20.8268Z`,stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M19 11C19 11 19 9.4306 18.8478 9.06306C18.6955 8.69552 18.4065 8.40649 17.8284 7.82843L13.0919 3.09188C12.593 2.593 12.3436 2.34355 12.0345 2.19575C11.9702 2.165 11.9044 2.13772 11.8372 2.11401C11.5141 2 11.1614 2 10.4558 2C7.21082 2 5.58831 2 4.48933 2.88607C4.26731 3.06508 4.06508 3.26731 3.88607 3.48933C3 4.58831 3 6.21082 3 9.45584V14C3 17.7712 3 19.6569 4.17157 20.8284C5.23467 21.8915 6.8857 21.99 10 21.9991M12 2.5V3C12 5.82843 12 7.24264 12.8787 8.12132C13.7574 9 15.1716 9 18 9H18.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],fl=[[`path`,{d:`M13.5 16.5L15 18M14 14.5C14 15.8807 12.8807 17 11.5 17C10.1193 17 9 15.8807 9 14.5C9 13.1193 10.1193 12 11.5 12C12.8807 12 14 13.1193 14 14.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],pl=[[`path`,{d:`M19.2984 3.25H4.70156C4.04901 3.25 3.72274 3.25 3.45594 3.32523C2.78716 3.5138 2.26448 4.03513 2.07542 4.70218C2 4.96829 2 5.29372 2 5.94459C2 6.27352 2 6.43798 2.02465 6.59312C2.08578 6.9779 2.25853 7.33639 2.52157 7.62437C2.62764 7.74049 2.75639 7.84323 3.01391 8.04871L7.99878 12.0263C8.7364 12.6149 9.10521 12.9092 9.30261 13.3188C9.5 13.7285 9.5 14.1995 9.5 15.1417V17.8708C9.5 19.5514 9.5 20.3917 10.0382 20.6712C10.5764 20.9507 11.2666 20.4688 12.6469 19.5051L12.7938 19.4025C13.6299 18.8188 14.0479 18.5269 14.274 18.0939C14.5 17.6609 14.5 17.1519 14.5 16.134V15.1417C14.5 14.1995 14.5 13.7285 14.6974 13.3188C14.8948 12.9092 15.2636 12.6149 16.0012 12.0263L20.9861 8.04871C21.2436 7.84323 21.3724 7.74049 21.4784 7.62437C21.7415 7.33639 21.9142 6.9779 21.9754 6.59312C22 6.43798 22 6.27352 22 5.94459C22 5.29373 22 4.96829 21.9246 4.70218C21.7355 4.03513 21.2128 3.5138 20.5441 3.32523C20.2773 3.25 19.951 3.25 19.2984 3.25Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],ml=[[`path`,{d:`M15 14.6699C18.4956 15.0818 21 16.193 21 17.4992C21 19.1561 16.9706 20.4992 12 20.4992C7.02944 20.4992 3 19.1561 3 17.4992C3 16.193 5.50442 15.0818 9 14.6699`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M12 17.5L12 11.5538M12 11.5538L12 7.09421C12 5.15244 12 4.18155 12.6235 3.73601C12.6729 3.70075 12.7244 3.6684 12.7777 3.63913C13.4517 3.2694 14.3627 3.66782 16.1849 4.46466C18.6837 5.55739 19.9331 6.10376 19.9963 6.99149C20.0012 7.05989 20.0012 7.12853 19.9963 7.19693C19.9331 8.08465 18.6837 8.63102 16.1849 9.72376L12 11.5538Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],hl=[[`circle`,{cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M9.5 9.5C9.5 8.11929 10.6193 7 12 7C13.3807 7 14.5 8.11929 14.5 9.5C14.5 10.3569 14.0689 11.1131 13.4117 11.5636C12.7283 12.0319 12 12.6716 12 13.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]],gl=[[`path`,{d:`M14.9998 17.75H8.99982V18.75C8.99982 20.4069 10.343 21.75 11.9998 21.75C13.6567 21.75 14.9998 20.4069 14.9998 18.75V17.75Z`,stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M16.7278 13.9223C17.7019 12.7372 18.4999 11.2841 18.4999 9.25C18.4999 5.39531 15.8659 2.25 11.9999 2.25C8.13395 2.25 5.49994 5.39531 5.49994 9.25C5.49994 11.553 6.52285 13.1112 7.66608 14.3788C8.10619 14.8668 8.32624 15.1108 8.44739 15.3519C8.56855 15.593 8.62453 15.8729 8.73649 16.4327L8.99994 17.75H14.9999L15.1451 17.0241C15.3026 16.2369 15.3813 15.8432 15.5397 15.5091C15.6981 15.1749 16.0414 14.7574 16.7278 13.9223Z`,stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M11.0011 5.39935C9.74194 5.78703 8.77971 6.88805 8.55237 8.24942`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M21.4989 13.6115L20.7854 13.3181M21.4988 3.31989L20.7852 3.61319M2.5011 13.7486L3.21463 13.4553M2.50122 3.45705L3.21476 3.75035`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}]],_l=[[`circle`,{cx:`7.5`,cy:`7.5`,r:`1.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M5 21C9.37246 15.775 14.2741 8.88406 21.4975 13.5424`,stroke:`currentColor`,strokeWidth:`1.5`,key:`2`}]],vl=[[`path`,{d:`M18.001 20C16.3295 21.2558 14.2516 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 12.8634 21.8906 13.7011 21.6849 14.5003C21.4617 15.3673 20.5145 15.77 19.6699 15.4728C18.9519 15.2201 18.6221 14.3997 18.802 13.66C18.9314 13.1279 19 12.572 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C13.3197 19 14.554 18.6348 15.6076 18`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`0`}]],yl=[[`path`,{d:`M8.5 14.5H15.5M8.5 9.5H12`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M14.1706 20.8905C18.3536 20.6125 21.6856 17.2332 21.9598 12.9909C22.0134 12.1607 22.0134 11.3009 21.9598 10.4707C21.6856 6.22838 18.3536 2.84913 14.1706 2.57107C12.7435 2.47621 11.2536 2.47641 9.8294 2.57107C5.64639 2.84913 2.31441 6.22838 2.04024 10.4707C1.98659 11.3009 1.98659 12.1607 2.04024 12.9909C2.1401 14.536 2.82343 15.9666 3.62791 17.1746C4.09501 18.0203 3.78674 19.0758 3.30021 19.9978C2.94941 20.6626 2.77401 20.995 2.91484 21.2351C3.05568 21.4752 3.37026 21.4829 3.99943 21.4982C5.24367 21.5285 6.08268 21.1757 6.74868 20.6846C7.1264 20.4061 7.31527 20.2668 7.44544 20.2508C7.5756 20.2348 7.83177 20.3403 8.34401 20.5513C8.8044 20.7409 9.33896 20.8579 9.8294 20.8905C11.2536 20.9852 12.7435 20.9854 14.1706 20.8905Z`,stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],bl=[[`path`,{d:`M12.5 3.00372C11.6049 2.99039 10.7047 3.01289 9.8294 3.07107C5.64639 3.34913 2.31441 6.72838 2.04024 10.9707C1.98659 11.8009 1.98659 12.6607 2.04024 13.4909C2.1401 15.036 2.82343 16.4666 3.62791 17.6746C4.09501 18.5203 3.78674 19.5758 3.30021 20.4978C2.94941 21.1626 2.77401 21.495 2.91484 21.7351C3.05568 21.9752 3.37026 21.9829 3.99943 21.9982C5.24367 22.0285 6.08268 21.6757 6.74868 21.1846C7.1264 20.9061 7.31527 20.7668 7.44544 20.7508C7.5756 20.7348 7.83177 20.8403 8.34401 21.0513C8.8044 21.2409 9.33896 21.3579 9.8294 21.3905C11.2536 21.4852 12.7435 21.4854 14.1706 21.3905C18.3536 21.1125 21.6856 17.7332 21.9598 13.4909C22.0021 12.836 22.011 12.1627 21.9866 11.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M16 2L22.0001 8M16 8L22.0001 2`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M8.5 15H15.5M8.5 10H12`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]],xl=[[`path`,{d:`M20 12L4 12`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Sl=[[`path`,{d:`M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M12 22C15.3137 22 18 17.5228 18 12C18 6.47715 15.3137 2 12 2`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M10 14.5C10 15.3284 9.32843 16 8.5 16C7.67157 16 7 15.3284 7 14.5C7 13.6716 7.67157 13 8.5 13C9.32843 13 10 13.6716 10 14.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M11.125 7H11M11.25 7C11.25 7.13807 11.1381 7.25 11 7.25C10.8619 7.25 10.75 7.13807 10.75 7C10.75 6.86193 10.8619 6.75 11 6.75C11.1381 6.75 11.25 6.86193 11.25 7Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}]],Cl=[[`path`,{d:`M6.00449 12.5V12M18.0045 12.5V12M12.0045 12.5V12M7.00449 12.5C7.00449 11.9477 6.55677 11.5 6.00449 11.5C5.4522 11.5 5.00449 11.9477 5.00449 12.5C5.00449 13.0523 5.4522 13.5 6.00449 13.5C6.55677 13.5 7.00449 13.0523 7.00449 12.5ZM19.0045 12.5C19.0045 11.9477 18.5568 11.5 18.0045 11.5C17.4522 11.5 17.0045 11.9477 17.0045 12.5C17.0045 13.0523 17.4522 13.5 18.0045 13.5C18.5568 13.5 19.0045 13.0523 19.0045 12.5ZM13.0045 12.5C13.0045 11.9477 12.5568 11.5 12.0045 11.5C11.4522 11.5 11.0045 11.9477 11.0045 12.5C11.0045 13.0523 11.4522 13.5 12.0045 13.5C12.5568 13.5 13.0045 13.0523 13.0045 12.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],wl=[[`path`,{d:`M15.5 2V5M6.5 2V5M11 2V5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M19 12V10.5C19 7.20017 19 5.55025 17.9749 4.52512C16.9497 3.5 15.2998 3.5 12 3.5H10C6.70017 3.5 5.05025 3.5 4.02513 4.52513C3 5.55025 3 7.20017 3 10.5V15C3 18.2998 3 19.9497 4.02513 20.9749C5.05025 22 6.70017 22 10 22H11`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M7 15H11M7 11H15`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M15.7367 21.6527L14 22L14.3473 20.2633C14.4179 19.9106 14.5913 19.5866 14.8456 19.3323L18.9111 15.2668C19.2668 14.9111 19.8437 14.9111 20.1995 15.2668L20.7332 15.8005C21.0889 16.1563 21.0889 16.7332 20.7332 17.0889L16.6677 21.1544C16.4134 21.4087 16.0894 21.5821 15.7367 21.6527Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}]],Tl=[[`path`,{d:`M21 11C21 7.22876 21 5.34315 19.8284 4.17157C18.6569 3 16.7712 3 13 3H11C7.22876 3 5.34315 3 4.17157 4.17157C3 5.34315 3 7.22876 3 11V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H13C16.7712 21 18.6569 21 19.8284 19.8284C21 18.6569 21 16.7712 21 13V11Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M9 3V21`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M14 9L15.1082 9.87868C16.3694 10.8787 17 11.3787 17 12C17 12.6213 16.3694 13.1213 15.1082 14.1213L14 15`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]],El=[[`path`,{d:`M21 11C21 7.22876 21 5.34315 19.8284 4.17157C18.6569 3 16.7712 3 13 3H11C7.22876 3 5.34315 3 4.17157 4.17157C3 5.34315 3 7.22876 3 11V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H13C16.7712 21 18.6569 21 19.8284 19.8284C21 18.6569 21 16.7712 21 13V11Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M9 3V21`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M16 9L14.8918 9.87868C13.6306 10.8787 13 11.3787 13 12C13 12.6213 13.6306 13.1213 14.8918 14.1213L16 15`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]],Dl=[[`path`,{d:`M6 22V13.6944C6 12.1287 6 11.3459 6.21454 10.6077C6.42908 9.86948 6.84589 9.21812 7.6795 7.91542L10.3359 3.76419C11.0885 2.58806 11.4648 2 12 2C12.5352 2 12.9115 2.58806 13.6641 3.76419L16.3205 7.91542C17.1541 9.21812 17.5709 9.86948 17.7855 10.6077C18 11.3459 18 12.1287 18 13.6944V22`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M7 11C7.63152 11.3231 8.4887 11.9732 9.28009 11.9991C10.2988 12.0324 10.9868 11.1372 12 11.1372C13.0132 11.1372 13.7012 12.0324 14.7199 11.9991C15.5113 11.9732 16.3685 11.3231 17 11`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M12 12L12 22`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M10 5H14`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}]],Ol=[[`path`,{d:`M15.5 2V6M8.5 6V2`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M6.00446 7.61331C5.93719 6.74273 6.63957 6 7.53014 6H16.4699C17.3604 6 18.0628 6.74273 17.9955 7.61331L17.8117 9.99197C17.6796 11.7019 17.1011 13.3498 16.132 14.7773L15.5312 15.6622C14.9638 16.4979 14.0077 17 12.9838 17H11.0162C9.99228 17 9.03617 16.4979 8.46881 15.6622L7.86803 14.7773C6.89885 13.3498 6.32041 11.7019 6.18827 9.99197L6.00446 7.61331Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M12 17V22`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M11 9H13`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}]],kl=[[`path`,{d:`M12 4V2`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M20 22C20 17.5817 16.4183 14 12 14C7.58172 14 4 17.5817 4 22`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M9.375 8.25H9.25M9.5 8.25C9.5 8.38807 9.38807 8.5 9.25 8.5C9.11193 8.5 9 8.38807 9 8.25C9 8.11193 9.11193 8 9.25 8C9.38807 8 9.5 8.11193 9.5 8.25Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M14.875 8.25H14.75M15 8.25C15 8.38807 14.8881 8.5 14.75 8.5C14.6119 8.5 14.5 8.38807 14.5 8.25C14.5 8.11193 14.6119 8 14.75 8C14.8881 8 15 8.11193 15 8.25Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}],[`path`,{d:`M15.1538 4H8.84615C7.59095 4 6.96334 4 6.47397 4.22025C5.91693 4.47095 5.47095 4.91693 5.22025 5.47397C5 5.96334 5 6.59095 5 7.84615C5 9.85448 5 10.8586 5.3524 11.6417C5.75353 12.5329 6.46709 13.2465 7.35835 13.6476C8.14135 14 9.14552 14 11.1538 14H12.8462C14.8545 14 15.8586 14 16.6417 13.6476C17.5329 13.2465 18.2465 12.5329 18.6476 11.6417C19 10.8586 19 9.85448 19 7.84615C19 6.59095 19 5.96334 18.7797 5.47397C18.529 4.91693 18.0831 4.47095 17.526 4.22025C17.0367 4 16.4091 4 15.1538 4Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`4`}]],Al=[[`path`,{d:`M17 17L21 21`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19C15.4183 19 19 15.4183 19 11Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],jl=[[`path`,{d:`M13.7276 3.44418L15.4874 6.99288C15.7274 7.48687 16.3673 7.9607 16.9073 8.05143L20.0969 8.58575C22.1367 8.92853 22.6167 10.4206 21.1468 11.8925L18.6671 14.3927C18.2471 14.8161 18.0172 15.6327 18.1471 16.2175L18.8571 19.3125C19.417 21.7623 18.1271 22.71 15.9774 21.4296L12.9877 19.6452C12.4478 19.3226 11.5579 19.3226 11.0079 19.6452L8.01827 21.4296C5.8785 22.71 4.57865 21.7522 5.13859 19.3125L5.84851 16.2175C5.97849 15.6327 5.74852 14.8161 5.32856 14.3927L2.84884 11.8925C1.389 10.4206 1.85895 8.92853 3.89872 8.58575L7.08837 8.05143C7.61831 7.9607 8.25824 7.48687 8.49821 6.99288L10.258 3.44418C11.2179 1.51861 12.7777 1.51861 13.7276 3.44418Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],Ml=[[`path`,{d:`M16.9991 12C16.9991 14.7614 14.7605 17 11.9991 17C9.23766 17 6.99908 14.7614 6.99908 12C6.99908 9.23858 9.23766 7 11.9991 7C14.7605 7 16.9991 9.23858 16.9991 12Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M12.1247 3.25H11.9997M12.1242 20.75H11.9992M20.75 12.125V12M3.25 12.125V12M18.2752 5.90098L18.1868 5.81259M5.90051 18.275L5.81212 18.1866M18.0987 18.2756L18.187 18.1872M5.72429 5.9012L5.81267 5.81282M12.2497 3.25C12.2497 3.38807 12.1378 3.5 11.9997 3.5C11.8616 3.5 11.7497 3.38807 11.7497 3.25C11.7497 3.11193 11.8616 3 11.9997 3C12.1378 3 12.2497 3.11193 12.2497 3.25ZM12.2492 20.75C12.2492 20.8881 12.1373 21 11.9992 21C11.8611 21 11.7492 20.8881 11.7492 20.75C11.7492 20.6119 11.8611 20.5 11.9992 20.5C12.1373 20.5 12.2492 20.6119 12.2492 20.75ZM20.75 12.25C20.6119 12.25 20.5 12.1381 20.5 12C20.5 11.8619 20.6119 11.75 20.75 11.75C20.8881 11.75 21 11.8619 21 12C21 12.1381 20.8881 12.25 20.75 12.25ZM3.25 12.25C3.11193 12.25 3 12.1381 3 12C3 11.8619 3.11193 11.75 3.25 11.75C3.38807 11.75 3.5 11.8619 3.5 12C3.5 12.1381 3.38807 12.25 3.25 12.25ZM18.3636 5.98937C18.266 6.087 18.1077 6.087 18.01 5.98937C17.9124 5.89174 17.9124 5.73345 18.01 5.63582C18.1077 5.53819 18.266 5.53819 18.3636 5.63582C18.4612 5.73345 18.4612 5.89174 18.3636 5.98937ZM5.9889 18.3634C5.89127 18.461 5.73297 18.461 5.63534 18.3634C5.53771 18.2658 5.53771 18.1075 5.63534 18.0099C5.73297 17.9122 5.89127 17.9122 5.9889 18.0099C6.08653 18.1075 6.08653 18.2658 5.9889 18.3634ZM18.0103 18.364C17.9126 18.2663 17.9126 18.108 18.0103 18.0104C18.1079 17.9128 18.2662 17.9128 18.3638 18.0104C18.4614 18.108 18.4614 18.2663 18.3638 18.364C18.2662 18.4616 18.1079 18.4616 18.0103 18.364ZM5.6359 5.98959C5.53827 5.89196 5.53827 5.73367 5.6359 5.63604C5.73353 5.53841 5.89182 5.53841 5.98945 5.63604C6.08708 5.73367 6.08708 5.89196 5.98945 5.98959C5.89182 6.08722 5.73353 6.08722 5.6359 5.98959Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],Nl=[[`path`,{d:`M16 21C15.7668 18.0685 13.3422 15.7477 10.3085 15.5521L9.49999 15.5C9.21121 15.5076 8.94209 15.5178 8.68816 15.5298C5.68124 15.6723 3.23089 18.0974 3 21`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M12.75 9.75C12.75 11.5449 11.2949 13 9.5 13C7.70508 13 6.25 11.5449 6.25 9.75C6.25 7.95507 7.70508 6.5 9.5 6.5C11.2949 6.5 12.75 7.95507 12.75 9.75Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M21 17.501C20.7709 14.6314 18.4541 12.2748 15.5 11.9961`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M15.9877 9C16.8965 8.42434 17.5001 7.40788 17.5001 6.25C17.5001 4.45507 16.0496 3 14.2602 3C13.3811 3 12.5838 3.35121 12.0001 3.92139`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}]],Pl=[[`path`,{d:`M20 21.0001C19.713 17.269 16.7289 14.3151 12.995 14.0662L12 13.9999C11.6446 14.0096 11.3134 14.0225 11.0008 14.0378C7.3 14.2192 4.28417 17.3057 4 21.0001`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`circle`,{cx:`12`,cy:`6.99988`,r:`4`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],Fl=[[`path`,{d:`M20.3584 13.3567C19.1689 14.546 16.9308 14.4998 13.4992 14.4998C11.2914 14.4998 9.50138 12.7071 9.50024 10.4993C9.50024 7.07001 9.454 4.83065 10.6435 3.64138C11.8329 2.45212 12.3583 2.50027 17.6274 2.50027C18.1366 2.49809 18.3929 3.11389 18.0329 3.47394L15.3199 6.18714C14.6313 6.87582 14.6294 7.99233 15.3181 8.68092C16.0068 9.36952 17.1234 9.36959 17.8122 8.68109L20.5259 5.96855C20.886 5.60859 21.5019 5.86483 21.4997 6.37395C21.4997 11.6422 21.5479 12.1675 20.3584 13.3567Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M13.5 14.5L7.32842 20.6716C6.22386 21.7761 4.433 21.7761 3.32843 20.6716C2.22386 19.567 2.22386 17.7761 3.32843 16.6716L9.5 10.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M5.50896 18.5H5.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,key:`2`}]],Il={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`},Ll=(0,G.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n,absoluteStrokeWidth:r=!1,className:i=``,altIcon:a,showAlt:o=!1,icon:s,primaryColor:c,secondaryColor:l,disableSecondaryOpacity:u=!1,...d},f)=>{let p=n===void 0?void 0:r?Number(n)*24/Number(t):n,m=p===void 0?{}:{strokeWidth:p,stroke:`currentColor`},h={ref:f,...Il,width:t,height:t,color:c||e,className:i,...m,...d},g=[...o&&a?a:s].sort(([,e],[,t])=>{let n=e.opacity!==void 0;return t.opacity===void 0?n?-1:0:1}).map(([t,n])=>{let r=n.opacity!==void 0,i=r&&!u?n.opacity:void 0,a=l?{...n.stroke===void 0?{fill:r?l:c||e}:{stroke:r?l:c||e}}:{};return(0,G.createElement)(t,{...n,...m,...a,opacity:i,key:n.key})});return(0,G.createElement)(`svg`,h,g)});Ll.displayName=`HugeiconsIcon`;function J(e){return function(t){return(0,K.jsx)(Ll,{icon:e,...t})}}var Rl=J(Gc),zl=J(kl),Bl=J(qc),Vl=J(Zc),Hl=J(Qc),Ul=J($c),Wl=J(el),Gl=J(tl),Kl=J(nl),ql=J(il),Jl=J(rl),Yl=J(hl),Xl=J(al),Zl=J(cl),Ql=J(dl),$l=J(ul),eu=J(fl),tu=J(ll),nu=J(pl),ru=J(_l),iu=J(gl),au=J(Xc),ou=J(vl),su=J(bl),cu=J(yl),lu=J(xl),uu=J(ol),du=J(Sl),fu=J(Cl),pu=J(wl),mu=J(El),hu=J(Tl),gu=J(Kc),_u=J(Dl),vu=J(Ol),yu=J(Al),bu=J(sl),xu=J(jl),Su=J(Ml),Cu=J(ml),wu=J(Pl),Tu=J(Nl),Eu=J(Fl),Du=J(Jc),Ou=J(Yc),ku={desktop:{backdrop:`z-[60] hidden bg-[var(--scrim)] min-[1025px]:block`,popup:`z-[61] hidden w-[min(92vw,430px)] p-4 min-[1025px]:block`},mobile:{backdrop:`z-50 bg-[var(--scrim)] min-[1025px]:hidden`,popup:`console-scrollbar z-[51] w-[min(90vw,380px)] overflow-y-auto p-3 min-[1025px]:hidden`}},Au={left:`left-0 border-r`,right:`right-0 border-l`};function ju({open:e,onOpenChange:t,title:n,variant:r,side:i=`right`,children:a}){Pn();let o=ku[r];return(0,K.jsx)(et,{open:e,onOpenChange:t,children:(0,K.jsxs)(Ve,{children:[(0,K.jsx)(Oe,{className:`motion-backdrop fixed inset-0 ${o.backdrop}`}),(0,K.jsxs)(pt,{"data-drawer-side":i,className:`motion-drawer fixed bottom-0 top-0 overscroll-contain border-[var(--console-border)] bg-[var(--console-bg)] shadow-[var(--shadow-drawer)] outline-none ${Au[i]} ${o.popup}`,children:[(0,K.jsxs)(`div`,{className:`mb-3 flex items-center justify-between gap-3`,children:[(0,K.jsx)(gt,{className:`console-mono text-xs font-semibold uppercase tracking-[0.16em] text-[var(--console-text)]`,children:n}),(0,K.jsx)(qe,{"aria-label":W(`Close {0}`,[n.toLowerCase()]),className:`motion-hover motion-press rounded-sm border border-[var(--console-border)] bg-[var(--console-surface)] p-2 text-[var(--console-muted)] hover:bg-[var(--console-surface-muted)] hover:text-[var(--console-text)] focus-visible:ring-2 focus-visible:ring-[var(--brand)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--console-bg)] focus-visible:outline-none`,children:(0,K.jsx)(Du,{className:`size-4`,"aria-hidden":`true`})})]}),a]})]})})}var Mu=G.createContext(void 0);function Nu(e){let t=G.useContext(Mu);if(t===void 0&&!e)throw Error(ae(33));return t}var Pu=G.createContext(void 0);function Fu(e){let t=G.useContext(Pu);if(t===void 0&&!e)throw Error(ae(36));return t}var Iu=G.createContext(void 0);function Lu(e=!0){let t=G.useContext(Iu);if(t===void 0&&!e)throw Error(ae(25));return t}function Ru(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:o,itemRef:s,itemMetadata:c}=e,{events:l}=a.useState(`floatingTreeRoot`),u=a.useState(`open`),d=Lu(!0),p=d!==void 0;return G.useMemo(()=>({id:r,role:`menuitem`,tabIndex:u&&n?0:-1,onKeyDown(e){e.key===` `&&o?.current&&e.preventDefault()},onMouseMove(e){i&&l.emit(`itemhover`,{nodeId:i,target:e.currentTarget})},onClick(e){t&&l.emit(`close`,{domEvent:e,reason:v})},onMouseUp(e){if(d){let t=d.initialCursorPointRef.current;if(d.initialCursorPointRef.current=null,p&&t&&Math.abs(e.clientX-t.x)<=1&&Math.abs(e.clientY-t.y)<=1||p&&!f&&e.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!p||e.button===2)&&c.type===`regular-item`&&se(s.current,e,{detail:1})}}),[t,n,r,l,i,u,a,o,s,d,p,c])}var zu={type:`regular-item`};function Bu(e){let{closeOnClick:t,disabled:n,highlighted:r,id:i,store:a,typingRef:o=a.context.typingRef,nativeButton:s,itemMetadata:c,nodeId:l}=e,u=G.useRef(null),{getButtonProps:d,buttonRef:f}=S({disabled:n,focusableWhenDisabled:!0,native:s,composite:!0}),p=Ru({closeOnClick:t,highlighted:r,id:i,nodeId:l,store:a,typingRef:o,itemRef:u,itemMetadata:c}),m=G.useCallback(e=>Ie(p,{onMouseEnter(){c.type===`submenu-trigger`&&c.setActive()}},e,d),[p,d,c]),h=Se(u,f);return G.useMemo(()=>({getItemProps:m,itemRef:h}),[m,h])}var Vu=G.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function Hu(){return G.useContext(Vu)}function Uu(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=Hu(),u=G.useRef(-1),[d,f]=G.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=G.useRef(null),h=G.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return O(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}var Wu=G.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!0,style:l,...u}=e,d=Uu({guess:!0,label:a}),f=Nu(!0),p=m(i),{store:h}=Fu(),g=h.useState(`disabled`),_=s||g,v=h.useState(`isActive`,d.index),y=h.useState(`itemProps`),{getItemProps:b,itemRef:x}=Bu({closeOnClick:c,disabled:_,highlighted:v,id:p,store:h,nativeButton:o,nodeId:f?.context.nodeId,itemMetadata:zu});return ze(`div`,e,{state:{disabled:_,highlighted:v},props:[y,u,b],ref:[x,t,d.ref]})}),Gu=G.createContext(void 0);function Ku(e){let t=G.useContext(Gu);if(t===void 0&&!e)throw Error(ae(69));return t}function qu(e){return e===`starting`?C:Ct}var Ju=G.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,{store:c}=Fu(),{side:l,align:u}=Nu(),d=Ku(!0)!=null,f=c.useState(`open`),p=c.useState(`transitionStatus`),m=c.useState(`popupProps`),h=c.useState(`mounted`),g=c.useState(`instantType`),_=c.useState(`activeTriggerElement`),v=c.useState(`parent`),y=c.useState(`lastOpenChangeReason`),b=c.useState(`rootId`),x=c.useState(`floatingRootContext`),S=c.useState(`floatingTreeRoot`),C=c.useState(`closeDelay`),w=c.useState(`hoverEnabled`),T=c.useState(`disabled`),E=c.useState(`openMethod`),D=v.type===`context-menu`;xe({open:f,ref:c.context.popupRef,onComplete(){f&&c.context.onOpenChangeComplete?.(!0)}}),G.useEffect(()=>{function e(e){c.setOpen(!1,s(e.reason,e.domEvent))}return S.events.on(`close`,e),()=>{S.events.off(`close`,e)}},[S.events,c]),Za(x,{enabled:w&&!T&&!D&&v.type!==`menubar`,closeDelay:C});let O=c.useStateSetter(`popupElement`),k={transitionStatus:p,side:l,align:u,open:f,nested:v.type===`menu`,instant:g},A=ze(`div`,e,{state:k,ref:[t,c.context.popupRef,O],stateAttributesMapping:ot,props:[m,{onKeyDown(e){d&&we.has(e.key)&&e.stopPropagation()}},qu(p),o,{"data-rootownerid":b}]}),j=v.type===void 0||D;return(_||v.type===`menubar`&&y!==`outside-press`)&&(j=!0),(0,K.jsx)(N,{context:x,openInteractionType:E,modal:D,disabled:!h,returnFocus:a===void 0?j:a,initialFocus:v.type!==`menu`,restoreFocus:!0,externalTree:v.type===`menubar`?void 0:S,previousFocusableElement:_,nextFocusableElement:v.type===void 0?c.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:v.type===void 0?c.context.beforeContentFocusGuardRef:void 0,children:A})}),Yu=G.createContext(void 0);function Xu(){let e=G.useContext(Yu);if(e===void 0)throw Error(ae(32));return e}var Zu=G.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i,parent:a}=Fu();if(!(i.useState(`mounted`)||n))return null;let o=a.type===`menu`||a.type===`menubar`?`group`:void 0;return(0,K.jsx)(Yu.Provider,{value:n,children:(0,K.jsx)(_,{ref:t,...r,portalOwnerRole:o})})}),Qu=G.createContext(void 0);function $u(){return G.useContext(Qu)?.direction??`ltr`}var ed=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=gi(e,t)||{};if(l==null)return{};let f=Pi(u),p={x:n,y:r},m=Si(i),h=bi(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=hi(k,j,A),N=!c.arrow&&vi(i)!=null&&j!==M&&a.reference[h]/2-(j<k?D:O)-g[h]/2<0,P=N?j<k?j-k:j-A:0;return{[m]:p[m]+P,data:{[m]:M,centerOffset:j-M-P,...N&&{alignmentOffset:P}},reset:N}}}),td=(e,t)=>{let{name:n,fn:r}=ed(e);return{name:n,fn:r,options:[e,t]}},nd={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0,o=await e.platform.detectOverflow(e,{elementContext:`reference`});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||a}}}},rd={sideX:`left`,sideY:`top`},id=`--available-width`,ad=`--available-height`,od=`--anchor-width`,sd=`--anchor-height`,cd=`--transform-origin`,ld=id,ud=ad;function dd(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function fd(e,t,n){let{rects:r,placement:i}=e;return{side:dd(t,_i(i),n),align:vi(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function pd(e){return md(e,Ha)}function md(e,t){let{anchor:n,positionMethod:r=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,collisionBoundary:c,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:_,shift:v,nodeId:y,adaptiveOrigin:b,lazyFlip:x=!1,externalTree:S}=e,[C,w]=G.useState(null);!g&&C!==null&&w(null);let T=_.side||`flip`,E=_.align||`flip`,D=_.fallbackAxisSide||`end`,k=v?.crossAxis??!1,A=v?.rootBoundary,j=typeof n==`function`?n:void 0,M=lt(j),N=j?M:n,P=je(n),ee=je(g),te=$u()===`rtl`,F=C||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":te?`left`:`right`,"inline-start":te?`right`:`left`}[i],ne=o===`center`?F:`${F}-${o}`,I=l;typeof I==`number`?I={top:I,right:I,bottom:I,left:I}:I&&={top:I.top||0,right:I.right||0,bottom:I.bottom||0,left:I.left||0};let re=+(i===`bottom`),ie=+(i===`top`),ae=+(i===`right`),L=+(i===`left`),R={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:I},oe=G.useRef(null),z=je(a),se=je(s),ce=typeof a==`function`?0:a,le=typeof s==`function`?0:s,B=[];p&&B.push(p),B.push(Fa(e=>{let t=fd(e,i,te),n=typeof z.current==`function`?z.current(t):z.current,r=typeof se.current==`function`?se.current(t):se.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[ce,le,te,i]));let ue=E===`none`&&T!==`shift`,de=!ue&&(u||k||T===`shift`),fe=T===`none`?null:Ra({...R,padding:{top:I.top+1+re,right:I.right+1+L,bottom:I.bottom+1+ie,left:I.left+1+ae},mainAxis:!k&&T===`flip`,crossAxis:E===`flip`&&`alignment`,fallbackAxisSideDirection:D}),pe=ue?null:Ia({...R,rootBoundary:A,mainAxis:E!==`none`,crossAxis:de,limiter:u||k?void 0:La(e=>{if(!oe.current)return{};let{width:t,height:n}=oe.current.getBoundingClientRect(),r=xi(_i(e.placement)),i=r===`y`?t:n,a=r===`y`?I.left+I.right:I.top+I.bottom;return{offset:i/2+a/2}})},[R,u,k,A,I,E]);T===`shift`||E===`shift`||o===`center`?B.push(pe,fe):B.push(fe,pe),B.push(za({...R,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!ee.current)return;let i=e.style;i.setProperty(ld,`${t}px`),i.setProperty(ud,`${n}px`);let a=tt(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(od,`${u}px`),i.setProperty(sd,`${d}px`)}}),td(e=>({element:oe.current||V(e.elements.floating).createElement(`div`),padding:oe.current?d:0,offsetParent:`floating`}),[d]),{name:`transformOrigin`,fn(e){let{elements:{floating:t},middlewareData:n,placement:r,platform:o,rects:s,y:c}=e,l=_i(r),u=vi(r),d=xi(l)===`y`,f=oe.current,p=typeof a==`function`?a(fd(e,i,te)):a,m;m=!f&&u&&Math.abs(d?n.shift?.x||0:n.shift?.y||0)<=1?u===`start`===(d&&o.isRTL?.(t)===!0)?`100%`:`0%`:`${(d?n.arrow?.x||0:n.arrow?.y||0)+(d?f?.clientWidth||0:f?.clientHeight||0)/2}px`;let h=l===`top`||l===`left`?`calc(100% + ${p}px)`:`${-p}px`;return de&&d&&Math.abs(n.shift?.y||0)>p&&(h=`${s.reference.y+s.reference.height/2-c}px`),t.style.setProperty(cd,d?`${m} ${h}`:`${h} ${m}`),{}}},nd,b),O(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,h]);let me=G.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:he,elements:ge,x:_e,y:ve,middlewareData:ye,update:H,placement:be,context:xe,isPositioned:Se,floatingStyles:Ce}=t({rootContext:h,open:m?g:void 0,placement:ne,middleware:B,strategy:r,whileElementsMounted:m?void 0:(...e)=>Sa(...e,me),nodeId:y,externalTree:S}),{sideX:we,sideY:Te}=ye.adaptiveOrigin||rd,Ee=Se?r:`fixed`,De=G.useMemo(()=>{let e;return e=Se?b?{position:Ee,[we]:_e,[Te]:ve}:{...Ce,position:Ee}:{position:Ee,top:0,left:0},e[ld]=`100vw`,e[ud]=`100vh`,Se||(e.opacity=0),e},[b,Ee,we,_e,Te,ve,Ce,Se]),Oe=G.useRef(null);O(()=>{if(!g)return;let e=P.current,t=typeof e==`function`?e():e,n=(hd(t)?t.current:t)||null;n!==Oe.current&&(he.setPositionReference(n),Oe.current=n)},[g,he,N,P]),G.useEffect(()=>{if(!g)return;let e=P.current;typeof e!=`function`&&hd(e)&&e.current!==Oe.current&&(he.setPositionReference(e.current),Oe.current=e.current)},[g,he,N,P]),G.useEffect(()=>{if(m&&g&&ge.reference&&ge.floating)return Sa(ge.reference,ge.floating,H,me)},[m,g,ge,H,me]);let ke=_i(be),Ae=dd(i,ke,te),Me=vi(be)||`center`,Ne=!!ye.hide?.referenceHidden;O(()=>{x&&g&&Se&&ke!==F&&w(ke)},[x,g,Se,ke,F]);let Pe=G.useMemo(()=>({position:`absolute`,top:ye.arrow?.y,left:ye.arrow?.x}),[ye.arrow]),Fe=ye.arrow?.centerOffset!==0;return G.useMemo(()=>({positionerStyles:De,arrowStyles:Pe,arrowRef:oe,arrowUncentered:Fe,side:Ae,align:Me,physicalSide:ke,anchorHidden:Ne,refs:he,context:xe,isPositioned:Se,update:H}),[De,Pe,oe,Fe,Ae,Me,ke,Ne,he,xe,Se,H])}function hd(e){return e!=null&&`current`in e}function gd(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=lt(i),[,o]=G.useState(!1),s=Ot(vd).current,c=Ot(_d).current,l=G.useRef(0),u=G.useRef(!0),d=G.useRef(null),f=G.useRef(null),p=lt(()=>{u.current||(u.current=!0,o(e=>!e))}),m=lt((e,t)=>{c.set(e,t),p()}),h=lt(e=>{c.delete(e),p()}),g=lt(e=>{let t=new Map;return n.current.length=0,r&&(r.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,r&&(r.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),l.current=n.current.length,t});function _(e){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!xd(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&Sd(r,n)>0){t.disconnect(),p();return}r=n}});f.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=bd(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let v=lt(()=>{let[e,t]=yd(c),n=g(e),r=d.current,i=!r||r.length!==e.length||e.some((e,t)=>{let n=r[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});_(t),d.current=e,u.current=!1,i&&(s.forEach(e=>e(n)),a(n))});O(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),O(()=>{u.current&&v()}),O(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let y=lt(e=>(s.add(e),()=>{s.delete(e)})),b=G.useMemo(()=>({register:m,unregister:h,subscribeMapChange:y,nextIndexRef:l}),[m,h,y,l]);return(0,K.jsx)(Vu.Provider,{value:b,children:t})}function _d(){return new Map}function vd(){return new Set}function yd(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>Sd(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function bd(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function xd(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function Sd(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function Cd(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),ze(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},qu(r),i],stateAttributesMapping:Ne})}var wd=20;function Td(e,t,n,r){let[i,a]=G.useState(!1);O(()=>{if(!e||!t||n==null){a(!1);return}let r=V(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-wd)},[e,t,n]),ut(e&&(!t||i),r)}var Ed=G.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o,align:c,sideOffset:l=0,alignOffset:u=0,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f=5,arrowPadding:p=5,sticky:m=!1,disableAnchorTracking:h=!1,collisionAvoidance:g=k,style:_,...v}=e,{store:y}=Fu(),b=Xu(),x=Lu(!0),S=y.useState(`parent`),C=y.useState(`floatingRootContext`),w=y.useState(`floatingTreeRoot`),T=y.useState(`mounted`),E=y.useState(`open`),D=y.useState(`modal`),A=y.useState(`openMethod`),j=y.useState(`activeTriggerElement`),M=y.useState(`transitionStatus`),N=y.useState(`positionerElement`),P=y.useState(`instantType`),ee=y.useState(`adaptiveOrigin`),te=y.useState(`lastOpenChangeReason`),F=y.useState(`floatingNodeId`),ne=y.useState(`floatingParentNodeId`),ie=C.useState(`domReferenceElement`),ae=G.useRef(null),L=Dt(N),R=n,z=l,se=u,ce=c,le=g;S.type===`context-menu`&&(R=n??S.context?.anchor,ce??=`start`,!o&&ce!==`center`&&(se=e.alignOffset??2,z=e.sideOffset??-5));let B=o,V=ce;S.type===`menu`?(B??=`inline-end`,V??=`start`,le=e.collisionAvoidance??I):S.type===`menubar`&&(B??=S.context.orientation===`vertical`?`inline-end`:`bottom`,V??=`start`);let ue=S.type===`context-menu`,de=pd({anchor:R,floatingRootContext:C,positionMethod:x?`fixed`:r,mounted:T,side:B,sideOffset:z,align:V,alignOffset:se,arrowPadding:ue?0:p,collisionBoundary:d,collisionPadding:f,sticky:m,nodeId:F,keepMounted:b,disableAnchorTracking:h,collisionAvoidance:le,shift:ue?{crossAxis:!(`side`in le&&le.side===`flip`),rootBoundary:`layoutViewport`}:void 0,externalTree:w,adaptiveOrigin:ee});G.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===F&&y.set(`hoverEnabled`,!1),e.nodeId!==F&&e.parentNodeId===y.select(`floatingParentNodeId`)&&y.setOpen(!1,s(re)))}return w.events.on(`menuopenchange`,e),()=>{w.events.off(`menuopenchange`,e)}},[y,w.events,F]),G.useEffect(()=>{if(y.select(`floatingParentNodeId`)==null)return;function e(e){if(e.open||e.nodeId!==y.select(`floatingParentNodeId`))return;let t=e.reason??`sibling-open`;y.setOpen(!1,s(t))}return w.events.on(`menuopenchange`,e),()=>{w.events.off(`menuopenchange`,e)}},[w.events,y]);let fe=oe();G.useEffect(()=>{E||fe.clear()},[E,fe]),G.useEffect(()=>{function e(e){if(E&&e.nodeId===y.select(`floatingParentNodeId`)){if(e.target&&j&&j!==e.target){let e=y.select(`closeDelay`);e>0?fe.isStarted()||fe.start(e,()=>{y.setOpen(!1,s(re))}):y.setOpen(!1,s(re))}else fe.clear()}}return w.events.on(`itemhover`,e),()=>{w.events.off(`itemhover`,e)}},[w.events,E,j,y,fe]),G.useEffect(()=>{let e={open:E,nodeId:F,parentNodeId:ne,reason:y.select(`lastOpenChangeReason`)};w.events.emit(`menuopenchange`,e)},[w.events,E,y,F,ne]),O(()=>{let e=ie,t=ae.current;if(e&&(ae.current=e),t&&e&&e!==t){y.set(`instantType`,void 0);let e=new AbortController;return L(()=>{y.set(`instantType`,`trigger-change`)},e.signal),()=>{e.abort()}}},[ie,L,y]);let pe={open:E,side:de.side,align:de.align,anchorHidden:de.anchorHidden,nested:S.type===`menu`,instant:P},me=S.type===`menubar`&&S.context.modal;Td(E&&(me||D&&te!==`trigger-hover`),A===`touch`,N,j);let he=Cd(e,pe,{styles:de.positionerStyles,transitionStatus:M,props:v,refs:[t,y.useStateSetter(`positionerElement`)],hidden:!T,inert:!E}),ge=T&&S.type!==`menu`&&(S.type!==`menubar`&&D&&te!==`trigger-hover`||S.type===`menubar`&&S.context.modal),_e=null;return S.type===`menubar`?_e=S.context.contentElement:S.type===void 0&&(_e=j),(0,K.jsxs)(Mu.Provider,{value:de,children:[ge&&(0,K.jsx)(ye,{ref:S.type===`context-menu`||S.type===`nested-context-menu`?S.context.internalBackdropRef:null,inert:nt(!E),cutout:_e}),(0,K.jsx)(Ke,{id:F,children:(0,K.jsx)(gd,{elementsRef:y.context.itemDomElements,labelsRef:y.context.itemLabels,children:he})})]})}),Dd=G.createContext(null);function Od(e){let t=G.useContext(Dd);if(t===null&&!e)throw Error(ae(5));return t}var kd={...yt,disabled:e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled,modal:e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0),openMethod:e=>e.openMethod,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId,activeIndex:e=>e.activeIndex,isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)}},Ad=class extends u{constructor(e,t,n=!1){let r=new De,i=Md(r,t,n,e);super(i,jd(r),kd),this.unsubscribeParentListener=this.observe(`parent`,e=>{if(this.unsubscribeParentListener?.(),e.type===`menu`){let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);this.unsubscribeParentListener=e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);(t!==i||n!==a||r!==o)&&(t=i,n=a,r=o,this.notifyAll())}),this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef;return}e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}unsubscribeParentListener=null};function jd(e){return{positionerRef:G.createRef(),popupRef:G.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:G.createRef(),beforeContentFocusGuardRef:G.createRef(),onOpenChangeComplete:void 0,triggerElements:e}}function Md(e,t,n=!1,r){return{...Je(e,t,n),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new ee,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:Ct,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0,...r}}var Nd=G.createContext(void 0);function Pd(){return G.useContext(Nd)}var Fd=Tt(function(e){let{children:t,open:n,onOpenChange:r,onOpenChangeComplete:i,defaultOpen:a=!1,disabled:c=!1,modal:l,loopFocus:u=!0,orientation:d=`vertical`,actionsRef:f,closeParentOnEsc:m=!1,handle:h,triggerId:g,defaultTriggerId:_=null,highlightItemOnHover:v=!0}=e,y=Lu(!0),b=Fu(!0),x=Od(!0),S=Pd(),C=G.useMemo(()=>S&&b?{type:`menu`,store:b.store}:x?{type:`menubar`,context:x}:y&&!b?{type:`context-menu`,context:y}:{type:void 0},[y,b,x,S]),w=P(),T=P(),E=A(),D=C.type===`menu`?C.store:void 0,k=(n??a)&&D?.state.transitionStatus===`starting`,j=Ot(()=>k?D?.state.instantType:void 0).current,M=Id({open:a,openProp:n,activeTriggerId:_,triggerIdProp:g,parent:C,disabled:c,highlightItemOnHover:v,modal:C.type===void 0?l:void 0,rootId:w,instantType:j},T,E!=null);M.useControlledProp(`openProp`,n),M.useControlledProp(`triggerIdProp`,g),M.useContextCallback(`onOpenChangeComplete`,i);let N=M.useState(`floatingTreeRoot`),ee=We(N),F=M.useState(`open`),ne=M.useState(`activeTriggerElement`),I=M.useState(`positionerElement`),re=M.useState(`hoverEnabled`),ae=M.useState(`disabled`),L=M.useState(`lastOpenChangeReason`),R=M.useState(`parent`),z=M.useState(`activeIndex`),se=M.useState(`payload`),ce=M.useState(`floatingParentNodeId`),le=G.useRef(null),B=G.useRef(R.type!==`context-menu`),V=oe(),ue=G.useRef(!0),de=oe(),fe=ce!=null,{openMethod:pe,triggerProps:me}=xo(F);M.useSyncedValues({disabled:c,highlightItemOnHover:v,modal:R.type===void 0?l:void 0,openMethod:pe,rootId:w}),Fe(M);let{forceUnmount:he,transitionStatus:ve}=ge(F,M,()=>{M.set(`allowMouseEnter`,!1)},k),ye=Dt(M.context.popupRef);G.useEffect(()=>{if(j===void 0)return;let e=()=>{M.state.instantType===j&&M.set(`instantType`,void 0)};if(!F){e();return}if(ve!==void 0)return;if(M.context.popupRef.current==null){e();return}let t=new AbortController;return ye(e,t.signal),()=>{t.abort()}},[j,F,ve,ye,M]),O(()=>{y&&!b?M.update({parent:{type:`context-menu`,context:y},floatingNodeId:ee,floatingParentNodeId:E}):b&&M.update({floatingNodeId:ee,floatingParentNodeId:E})},[y,b,ee,E,M]),G.useEffect(()=>{if(F||(le.current=null),R.type===`context-menu`){if(!F){V.clear(),B.current=!1;return}V.start(500,()=>{B.current=!0})}},[V,F,R.type]),O(()=>{!F&&!re&&M.set(`hoverEnabled`,!0)},[F,re,M]);let H=lt((e,t)=>{let n=t.reason;if(!e&&!M.select(`open`)||F===e&&t.trigger===ne&&L===n)return;let i=Ze(t);if(!e&&t.trigger==null&&(t.trigger=ne??void 0),r?.(e,t),t.isCanceled)return;M.state.floatingRootContext.dispatchOpenChange(e,t);let a=t.event;if(e===!1&&a?.type===`click`&&a.pointerType===`touch`&&!ue.current)return;e&&n===`trigger-focus`?(ue.current=!1,de.start(300,()=>{ue.current=!0})):(ue.current=!0,de.clear());let o=(n===`trigger-press`||n===`item-press`)&&a.detail===0,s=!e&&(n===`escape-key`||n==null);le.current=t.event;let c=Re(M.state,e,t.trigger,i());c.openChangeReason=n,c.instantType=R.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?`group`:o||s?o?`click`:`dismiss`:void 0,M.update(c)}),be=ie({popupStore:M,floatingRootContext:M.state.floatingRootContext,floatingId:T,nested:E!=null,onOpenChange:H}),xe=be.context.events;O(()=>{let e=({open:e,eventDetails:t})=>H(e,t);return xe.on(`setOpen`,e),()=>{xe?.off(`setOpen`,e)}},[xe,H]);let Se=G.useCallback(()=>{M.setOpen(!1,s(te))},[M]);G.useImperativeHandle(f,()=>({unmount:he,close:Se}),[he,Se]);let Ce;R.type===`context-menu`&&(Ce=R.context),G.useImperativeHandle(Ce?.positionerRef,()=>I,[I]),G.useImperativeHandle(Ce?.actionsRef,()=>({setOpen:H}),[H]);let we=p(be,{enabled:!ae,bubbles:{escapeKey:m&&R.type===`menu`},outsidePress(){return R.type!==`context-menu`||le.current?.type===`contextmenu`||B.current},externalTree:fe?N:void 0}),Te=$u(),Ee=G.useCallback(e=>{M.select(`activeIndex`)!==e&&M.set(`activeIndex`,e)},[M]),De=so(be,{enabled:!ae,listRef:M.context.itemDomElements,activeIndex:z,nested:R.type!==void 0,loopFocus:u,orientation:d,parentOrientation:R.type===`menubar`?R.context.orientation:void 0,rtl:Te===`rtl`,disabledIndices:_e,onNavigate:Ee,openOnArrowKeyDown:R.type!==`context-menu`,externalTree:fe?N:void 0,focusItemOnHover:v}),Oe=G.useCallback(e=>{M.context.typingRef.current=e},[M]),ke=co(be,{enabled:!ae,listRef:M.context.itemLabels,elementsRef:M.context.itemDomElements,activeIndex:z,resetMs:500,onMatch:e=>{F&&e!==z&&M.set(`activeIndex`,e)},onTyping:Oe}),Ae=G.useMemo(()=>{let e=Ie(ke.reference,De.reference,we.reference,{onMouseMove(){M.set(`allowMouseEnter`,!0)}},me);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=F,e},[M,ke.reference,De.reference,we.reference,me,F]),je=G.useMemo(()=>{let e=Ie(De.trigger,we.trigger,me);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[De.trigger,we.trigger,me]);Ot(()=>(M.update({inactiveTriggerProps:je}),null));let Ne=G.useMemo(()=>Ie(Me,{id:T,role:`menu`,"aria-orientation":d===`horizontal`?`horizontal`:void 0,"aria-labelledby":ne?.id,onMouseMove(){M.set(`allowMouseEnter`,!0),R.type===`menu`&&M.set(`hoverEnabled`,!1)},onClick(){M.select(`hoverEnabled`)&&M.set(`hoverEnabled`,!1)},onKeyDown(e){let t=M.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}},ke.floating,De.floating,we.floating),[ne,T,d,R.type,M,ke.floating,De.floating,we.floating]),Pe=De.item??Ct;St(M,{floatingRootContext:be,activeTriggerProps:Ae,inactiveTriggerProps:je,popupProps:Ne,itemProps:Pe});let Le=G.useMemo(()=>({store:M,parent:C}),[M,C]),ze=(0,K.jsxs)(Pu.Provider,{value:Le,children:[h&&(0,K.jsx)(at,{handle:h,store:M}),typeof t==`function`?t({payload:se}):t]});return R.type===void 0||R.type===`context-menu`?(0,K.jsx)(o,{externalTree:N,children:ze}):ze});function Id(e,t,n){return Ot(()=>new Ad(e,t,n)).current}var Ld=5;function Rd(e,t){let n=zd(t);return e.clientX>=n.left-Ld&&e.clientX<=n.right+Ld&&e.clientY>=n.top-Ld&&e.clientY<=n.bottom+Ld}function zd(e){let t=e.getBoundingClientRect(),n=tt(e);if(Ce)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}function Bd(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=b(),{ref:i,index:a}=Uu(e),o=n===a,s=G.useRef(null),c=Se(i,s);return{compositeProps:{tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}},compositeRef:c,index:a}}function Vd(e){let{render:t,className:n,style:r,state:i=Ct,props:a=_e,refs:o=_e,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:f}=Bd({metadata:s});return ze(l,e,{state:i,ref:[f,...o],props:[d,...a,u],stateAttributesMapping:c})}function Hd(e){if(H(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`);if(!rt(e))return Hd(_t(e))}function Ud(e,t){let n=G.useRef(null);function r(t){ni.flushSync(()=>{e.setOpen(!1,s(M,t.nativeEvent,t.currentTarget))}),B(n.current)?.focus()}function i(n){let r=e.select(`positionerElement`);if(r&&y(n,r))e.context.beforeContentFocusGuardRef.current?.focus();else{ni.flushSync(()=>{e.setOpen(!1,s(M,n.nativeEvent,n.currentTarget))});let i=z(e.context.triggerFocusTargetRef.current||t.current);for(;i!==null&&$e(r,i);){let e=i;if(i=x(i),i===e)break}i?.focus()}}return{preFocusGuardRef:n,handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}function Wd(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,i=G.useRef(!1);return G.useMemo(()=>t?{onMouseDown:e=>{(n===`open`&&!r||n===`close`&&r)&&(i.current=!0,V(e.currentTarget).addEventListener(`click`,()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:Ct,[t,n,r])}var Gd=R(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,id:s,openOnHover:c,delay:l=100,closeDelay:u=0,handle:d,payload:f,...p}=e,h=Fu(!0),g=Va(d)??h?.store;if(!g)throw Error(ae(85));let _=m(s),v=g.useState(`isTriggerActive`,_),y=g.useState(`floatingRootContext`),x=g.useState(`isOpenedByTrigger`,_),C=g.useState(`triggerPopupId`,_),w=G.useRef(null),T=qd(),E=b(!0),D=j(),O=G.useMemo(()=>D??new ee,[D]),k=We(O),M=A(),{registerTrigger:N,isMountedByThisTrigger:P}=At(_,w,g,{payload:f,closeDelay:u,parent:T,floatingTreeRoot:O,floatingNodeId:k,floatingParentNodeId:M,keyboardEventRelay:E?.relayKeyboardEvent}),te=T.type===`menubar`,ne=g.useState(`disabled`),I=a||ne||te&&T.context.disabled,{getButtonProps:re,buttonRef:ie}=S({disabled:I,native:o});G.useEffect(()=>{!x&&T.type===void 0&&(g.context.allowMouseUpTriggerRef.current=!1)},[g,x,T.type]);let L=G.useRef(null),R=oe(),z=lt(e=>{if(!L.current)return;R.clear(),g.context.allowMouseUpTriggerRef.current=!1;let t=e.target;$e(L.current,t)||$e(g.select(`positionerElement`),t)||t===L.current||(t==null||Hd(t)!==g.select(`rootId`))&&(Rd(e,L.current)||O.events.emit(`close`,{domEvent:e,reason:Ge}))});G.useEffect(()=>{x&&g.select(`lastOpenChangeReason`)===`trigger-hover`&&V(L.current).addEventListener(`mouseup`,z,{once:!0})},[x,z,g]);let se=te&&T.context.hasSubmenuOpen,ce=$a(y,{enabled:(c??se)&&!I&&(!te||se&&!P),handleClose:_o({blockPointerEvents:!te}),mouseOnly:!0,move:!1,restMs:T.type===void 0?l:void 0,delay:{close:u},triggerElementRef:w,externalTree:O,isActiveTrigger:v,isClosing:()=>g.select(`transitionStatus`)===`ending`}),le=Kd(x,g.select(`lastOpenChangeReason`)),B=Ii(y,{enabled:!I,event:x&&te?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:T.type===void 0&&le}),ue=Ga(y,{enabled:!I&&se}),de=Wd({open:x,enabled:te,mouseDownAction:`open`}),fe=G.useMemo(()=>Ie(ue.reference,B.reference),[ue.reference,B.reference]),pe=g.useState(`triggerProps`,P),{preFocusGuardRef:me,handlePreFocusGuardFocus:he,handleFocusTargetFocus:ge}=Ud(g,w),_e={disabled:I,open:x},ve=[L,t,ie,N,w],ye=[fe,ce??Ct,pe,{"aria-haspopup":`menu`,"aria-controls":C,id:_,onMouseDown:e=>{g.select(`open`)||(R.start(200,()=>{g.context.allowMouseUpTriggerRef.current=!0}),V(e.currentTarget).addEventListener(`mouseup`,z,{once:!0}))}},te?{role:`menuitem`}:{},de,p,re],H=ze(`button`,e,{enabled:!te,stateAttributesMapping:Qe,state:_e,ref:ve,props:ye});return te?(0,K.jsx)(Vd,{tag:`button`,render:n,className:r,style:i,state:_e,refs:ve,props:ye,stateAttributesMapping:Qe}):x?(0,K.jsxs)(G.Fragment,{children:[(0,K.jsx)(F,{ref:me,onFocus:he},`${_}-pre-focus-guard`),(0,K.jsx)(G.Fragment,{children:H},_),(0,K.jsx)(F,{ref:g.context.triggerFocusTargetRef,onFocus:ge},`${_}-post-focus-guard`)]}):(0,K.jsx)(G.Fragment,{children:H},_)});function Kd(e,t){let n=oe(),[r,i]=G.useState(!1);return O(()=>{e&&t===`trigger-hover`?(i(!0),n.start(500,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function qd(){let e=Od(!0);return G.useMemo(()=>e?{type:`menubar`,context:e}:{type:void 0},[e])}function Jd({bookmarked:e,onCopyAsMarkdown:t,onRename:n,onToggleBookmark:r}){return Pn(),(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(Wu,{onClick:n,className:`motion-hover motion-press flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-left text-xs text-[var(--console-text)] hover:bg-[var(--console-surface-muted)] data-[highlighted]:bg-[var(--console-surface-muted)] focus-visible:outline-none`,children:[(0,K.jsx)(_u,{className:`size-3`,"aria-hidden":`true`}),` `,W(`Rename`)]}),t?(0,K.jsxs)(Wu,{onClick:t,className:`motion-hover motion-press flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-left text-xs text-[var(--console-text)] hover:bg-[var(--console-surface-muted)] data-[highlighted]:bg-[var(--console-surface-muted)] focus-visible:outline-none`,children:[(0,K.jsx)(Zl,{className:`size-3`,"aria-hidden":`true`}),` `,W(`Copy as Markdown`)]}):null,(0,K.jsxs)(Wu,{onClick:r,className:`motion-hover motion-press flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-left text-xs text-[var(--console-text)] hover:bg-[var(--console-surface-muted)] data-[highlighted]:bg-[var(--console-surface-muted)] focus-visible:outline-none`,children:[(0,K.jsx)(xu,{className:`size-3`,fill:e?`currentColor`:`none`,"aria-hidden":`true`}),W(e?`Remove bookmark`:`Add bookmark`)]})]})}function Yd({bookmarked:e,onCopyAsMarkdown:t,onRename:n,onToggleBookmark:r}){Pn();let i=(0,G.useRef)(null);return(0,K.jsxs)(Fd,{modal:!1,children:[(0,K.jsx)(Gd,{ref:i,"aria-label":W(`Session options`),onClick:e=>e.stopPropagation(),className:`motion-hover motion-press inline-flex size-6 shrink-0 items-center justify-center rounded-sm border border-transparent text-[var(--console-muted)] hover:border-[var(--console-border)] hover:bg-[var(--console-surface-muted)] hover:text-[var(--console-text)] focus-visible:ring-2 focus-visible:ring-[var(--brand)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--console-bg)] focus-visible:outline-none`,children:(0,K.jsx)(fu,{className:`size-3.5`,"aria-hidden":`true`})}),(0,K.jsx)(Zu,{children:(0,K.jsx)(Ed,{side:`bottom`,align:`end`,sideOffset:4,className:`z-30`,children:(0,K.jsx)(Ju,{finalFocus:i,className:`motion-menu w-36 rounded-md border border-[var(--console-border)] bg-[var(--console-surface)] p-1 shadow-[var(--shadow-overlay)] focus-visible:outline-none`,children:(0,K.jsx)(Jd,{bookmarked:e,onCopyAsMarkdown:t,onRename:n,onToggleBookmark:r})})})})]})}var Xd=`file-tree-container`,Zd=`data-file-tree-style`,Qd=`data-file-tree-unsafe-css`,$d=`data-file-tree-scrollbar-measure`,ef=`data-file-tree-scrollbar-gutter-measured`,tf=`--trees-scrollbar-gutter-measured`,nf=`header`,rf=`context-menu`,af=`context-menu-trigger`,of=typeof window>`u`?G.useEffect:G.useLayoutEffect;function sf(e,t,n){let r=e==null?null:(0,K.jsx)(`div`,{slot:nf,children:e}),i=t!=null&&n!=null?(0,K.jsx)(`div`,{slot:rf,children:t(n.item,n.context)}):null;return r==null&&i==null?null:(0,K.jsxs)(K.Fragment,{children:[r,i]})}function cf(e,t){return typeof window>`u`&&t!=null?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`template`,{shadowrootmode:`open`,dangerouslySetInnerHTML:{__html:t.shadowHtml}}),e]}):(0,K.jsx)(K.Fragment,{children:e})}function lf(e){let t=e.shadowRoot;return t?.querySelector(`[data-file-tree-id]`)instanceof HTMLElement||t?.querySelector(`[data-file-tree-id]`)instanceof SVGElement||e.querySelector(`template[shadowrootmode="open"]`)instanceof HTMLTemplateElement}function uf(e,t,n,r,i){let a={...e??{}};if(t!=null&&delete a.header,n){let t=e?.contextMenu,n=t?.onClose,o=t?.onOpen;a.contextMenu={...t??{},enabled:!0,onClose:()=>{n?.(),r()},onOpen:(e,t)=>{i(e,t),o?.(e,t)}},delete a.contextMenu.render}return a.header!=null||a.contextMenu!=null?a:void 0}function df({header:e,id:t,model:n,preloadedData:r,renderContextMenu:i,...a}){let[o,s]=(0,G.useState)(null),[c,l]=(0,G.useState)(null),u=(0,G.useRef)(n.getComposition()),d=(0,G.useRef)(n);d.current!==n&&(d.current=n,u.current=n.getComposition());let f=i!=null,p=(0,G.useCallback)(()=>{s(null)},[]),m=(0,G.useCallback)((e,t)=>{s({context:t,item:e})},[]),h=u.current,g=(0,G.useMemo)(()=>uf(h,e,f,p,m),[h,p,m,f,e]),_=(0,G.useCallback)(e=>{l(e)},[]);(0,G.useEffect)(()=>{f||s(null)},[f]),of(()=>{n.setComposition(g)},[g,n]),of(()=>{if(c!=null)return r!=null&&lf(c)?n.hydrate({fileTreeContainer:c}):n.render({fileTreeContainer:c}),()=>{n.unmount(),n.setComposition(h)}},[h,c,n,r]);let v=cf(sf(e,i,o),r),y=t??r?.id,b={"--trees-item-height":`${String(n.getItemHeight())}px`,"--trees-density-override":n.getDensityFactor(),...a.style};return(0,K.jsx)(Xd,{...a,id:y,ref:_,style:b,suppressHydrationWarning:r!=null,children:v})}var ff=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
|
|
11
|
+
<symbol id="file-tree-icon-chevron" viewBox="0 0 16 16">
|
|
12
|
+
<path d="M12.4697 5.46973C12.7626 5.17684 13.2374 5.17684 13.5303 5.46973C13.8232 5.76262 13.8232 6.23738 13.5303 6.53028L8.53028 11.5303C8.23738 11.8232 7.76262 11.8232 7.46973 11.5303L2.46973 6.53028C2.17684 6.23738 2.17684 5.76262 2.46973 5.46973C2.76262 5.17684 3.23738 5.17684 3.53028 5.46973L8 9.93946L12.4697 5.46973Z" fill="currentcolor"/>
|
|
13
|
+
</symbol>
|
|
14
|
+
<symbol id="file-tree-icon-dot" viewBox="0 0 6 6">
|
|
15
|
+
<circle cx="3" cy="3" r="3" />
|
|
16
|
+
</symbol>
|
|
17
|
+
<symbol id="file-tree-icon-file" viewBox="0 0 16 16">
|
|
18
|
+
<path fill="currentColor" d="M8 1v3a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z" class="bg" opacity=".5"/>
|
|
19
|
+
<path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/>
|
|
20
|
+
</symbol>
|
|
21
|
+
<symbol id="file-tree-icon-lock" viewBox="0 0 16 16">
|
|
22
|
+
<path fill="currentcolor" d="M4 5.336V4a4 4 0 1 1 8 0v1.336c1.586.54 2 1.843 2 4.664v1c0 4.118-.883 5-5 5H7c-4.117 0-5-.883-5-5v-1c0-2.821.414-4.124 2-4.664M5.5 4v1.054Q6.166 4.998 7 5h2q.834-.002 1.5.054V4a2.5 2.5 0 0 0-5 0m-2 6v1c0 .995.055 1.692.167 2.193.107.483.246.686.35.79s.307.243.79.35c.5.112 1.198.167 2.193.167h2c.995 0 1.692-.055 2.193-.166.483-.108.686-.247.79-.35.104-.105.243-.308.35-.791.112-.5.167-1.198.167-2.193v-1c0-.995-.055-1.692-.166-2.193-.108-.483-.247-.686-.35-.79-.105-.104-.308-.243-.791-.35C10.693 6.555 9.995 6.5 9 6.5H7c-.995 0-1.692.055-2.193.167-.483.107-.686.246-.79.35s-.243.307-.35.79C3.555 8.307 3.5 9.005 3.5 10" />
|
|
23
|
+
</symbol>
|
|
24
|
+
<symbol id="file-tree-icon-ellipsis" viewBox="0 0 16 16">
|
|
25
|
+
<path d="M5 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M9.5 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M14 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0" />
|
|
26
|
+
</symbol>
|
|
27
|
+
</svg>`,pf=`<symbol id="file-tree-builtin-astro" viewBox="0 0 16 16">
|
|
28
|
+
<path fill="currentColor" d="M6.08 13.92c-.63-.57-.81-1.79-.55-2.67.45.56 1.08.73 1.73.83 1 .15 1.99.1 2.92-.37l.32-.19q.13.38.08.78a2.1 2.1 0 0 1-.9 1.5q-.3.24-.61.43c-.64.44-.81.95-.57 1.69l.02.08a1.7 1.7 0 0 1-.74-.64 2 2 0 0 1-.3-.98q0-.27-.02-.52-.07-.61-.61-.62a.7.7 0 0 0-.75.6z" class="bg" opacity=".6"/>
|
|
29
|
+
<path fill="currentColor" d="M2.5 11.1s1.86-.9 3.72-.9l1.4-4.39c.05-.21.2-.36.38-.36s.33.15.38.36l1.4 4.38c2.2 0 3.72.92 3.72.92l-3.16-8.69q-.13-.4-.45-.42H6.11q-.3.02-.45.42z" class="fg"/>
|
|
30
|
+
</symbol>`,mf=`<symbol id="file-tree-builtin-babel" viewBox="0 0 16 16">
|
|
31
|
+
<path fill="currentColor" fill-rule="evenodd" d="M9.49.5q1.92.05 2.66.54 1.27.6 1.35 1.52v.23a4 4 0 0 1-.53 1.9l-1.38 1.24q-.74.38-.72.63c.77.82 1.33 1.29.85 2.42q-.47 1.1-2.04 2.28c-.5.32-1.88 1.35-2.96 1.86-1.64.77-3.1 1.4-4.65 1.89-.51.16-1.5.16-1.5.16L.5 15A76 76 0 0 0 5.76 3.49q-.1-.08-.1-.2.1 0 .32-.35l-.03-.09q-1.17.39-2.38 1.3l-.13.03q0-.1-.21-.16-.46.31-.82.7l-.13-.19.16-.06-.03-.16-.34.29L2 4.5q.36-.48.72-.54l.04-.1V3.8q.16 0 .15-.06l.13-.06a6 6 0 0 0 1.13-.9v-.03H4.1l-.12.07q0-.1-.1-.1l-.15.07-.04-.1q.93-.52 1.63-1.05Q7.89.65 9.5.5M8.46 7.83l-.32.04c-1.31.54-2.31.82-2.91.88a71 71 0 0 0-2.2 4.54h.07q.58-.04 3.04-1.42.13 0 1.66-1.05L9.18 9.7v.03q.45-.2.81-1.3v-.2q-.5-.46-1.53-.4m.28-5.75c-.5.1-.75.19-.72.38l-1.16 2.6q-.17.1-.34.95-.3.48-.25.77v.1l.22.05A15 15 0 0 1 8.86 6c1.1-.71 2.12-1.38 2.8-2.54q.24-.33.21-.54-.02-.33-.4-.54c-.54 0-1.07-.34-1.63-.28l-.94-.03z" clip-rule="evenodd"/>
|
|
32
|
+
</symbol>`,hf=`<symbol id="file-tree-builtin-bash" viewBox="0 0 16 16">
|
|
33
|
+
<path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
|
|
34
|
+
<path fill="currentColor" d="M11.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zM7 6.75C7 6.42 6.64 6 6 6s-1 .42-1 .75q-.01.25.22.41.26.21.89.35.74.14 1.28.53c.37.29.61.7.61 1.21 0 .87-.68 1.5-1.5 1.7v.55a.5.5 0 0 1-1 0v-.56c-.82-.18-1.5-.82-1.5-1.69a.5.5 0 0 1 1 0c0 .33.36.75 1 .75s1-.42 1-.75q.01-.25-.22-.41a2 2 0 0 0-.89-.35q-.74-.14-1.28-.53A1.5 1.5 0 0 1 4 6.75c0-.87.68-1.5 1.5-1.7V4.5a.5.5 0 0 1 1 0v.56c.82.18 1.5.82 1.5 1.69a.5.5 0 0 1-1 0" class="fg-stroke"/>
|
|
35
|
+
</symbol>`,gf=`<symbol id="file-tree-builtin-biome" viewBox="0 0 16 16">
|
|
36
|
+
<path fill="currentColor" d="M8 2 4.88 7.35a7 7 0 0 1 3.7-.13l1.04.25-.99 4.16-1.05-.25a2.7 2.7 0 0 0-3.07 1.45l-.98-.47a4 4 0 0 1 1.07-1.31 3.8 3.8 0 0 1 3.23-.71l.5-2.08a6 6 0 0 0-5.07 1.12A5.9 5.9 0 0 0 1 14h14z"/>
|
|
37
|
+
</symbol>`,_f=`<symbol id="file-tree-builtin-bootstrap" viewBox="0 0 16 16">
|
|
38
|
+
<path fill="currentColor" fill-rule="evenodd" d="M11.72 1.5A2.5 2.5 0 0 1 14.2 4q.02 1.08.3 2.09c.22.73.56 1.24 1.08 1.45.22.08.4.27.4.5s-.18.43-.4.51q-.76.34-1.08 1.45c-.2.65-.27 1.32-.3 2a2.5 2.5 0 0 1-2.48 2.5H4.25A2.6 2.6 0 0 1 1.7 12c-.04-.85-.1-1.68-.22-2.04C1.26 9.23.92 8.7.4 8.5.18 8.42 0 8.23 0 8s.18-.42.4-.5q.77-.35 1.09-1.46c.1-.36.17-1.19.2-2.04a2.6 2.6 0 0 1 2.56-2.5z" class="bg" clip-rule="evenodd" opacity=".2"/>
|
|
39
|
+
<path fill="currentColor" fill-rule="evenodd" d="M8.47 4.54c1.23 0 2.04.68 2.04 1.73 0 .73-.55 1.39-1.24 1.5v.04c.94.1 1.58.77 1.58 1.7 0 1.2-.9 1.95-2.37 1.95H5.97a.3.3 0 0 1-.2-.08.3.3 0 0 1-.08-.2V4.82a.3.3 0 0 1 .08-.2.3.3 0 0 1 .2-.08zm-1.7 6.04h1.49q1.47-.01 1.49-1.15Q9.74 8.31 8.2 8.3H6.77zm0-5.16v2.06h1.21c.93 0 1.45-.38 1.45-1.06 0-.65-.44-1-1.22-1z" class="fg" clip-rule="evenodd"/>
|
|
40
|
+
</symbol>`,vf=`<symbol id="file-tree-builtin-browserslist" viewBox="0 0 16 16">
|
|
41
|
+
<path fill="currentColor" d="M8.88 6.96c0 3.82 3.72 4.7 5.7 3.74-.23.9-1.04 1.67-2.35 1.93-.02.4.42 1.28.82 1.63-.9.35-1.94-.12-2.51-.48a5 5 0 0 0-.32 1.87c-.68 0-1.57-1-1.8-1.37-.3.18-.85 1.15-.96 1.72a2.4 2.4 0 0 1-.81-.86 2.4 2.4 0 0 1-.3-1.15c-.38.27-1.48.95-1.99 1.18-.25-.58-.15-1.3 0-2.06-.21.12-1.8.27-2.43.12.32-.36.75-1.19.94-1.57A4.5 4.5 0 0 1 .44 10.6c.48-.22.97-.53 1.49-1.06C1.26 9.17.24 8.64 0 7.7a6 6 0 0 0 1.79-.32C1.28 7.08.44 6.15.6 5.01c.42.21 1.3.37 1.73.3a3.4 3.4 0 0 1-.25-2.75 5 5 0 0 0 1.48 1c-.08-.8.3-2.31.8-2.71.2.46.73 1.21 1.08 1.4.09-.61.87-2.06 1.57-2.25 0 .5.27 1.4.5 1.67.51-.54 2.25-1.44 3.64-1.13-.43.45-.75.61-.86.98 1.05 0 2.78.34 4.27 1.93-2.34-.89-5.69.56-5.69 3.5" class="bg" opacity=".5"/>
|
|
42
|
+
<path fill="currentColor" d="M11.21 3.59a4.1 4.1 0 0 0 2.47 2.89c.24-.22.61-.38.95-.19.76.44.2 1.26-.34 1.66l-.07.06a13 13 0 0 1-4.49 1.61l-.3-.43a10.5 10.5 0 0 0 4.13-1.31 1 1 0 0 0 .23-.25.5.5 0 0 0-.21-.69l-.15-.06a4.5 4.5 0 0 1-1.77-1.31 4.5 4.5 0 0 1-.88-1.77q.2-.12.43-.21"/>
|
|
43
|
+
<path fill="currentColor" d="M10.36 5.18a.4.4 0 0 0-.03.38c.09.2.3.3.46.23s.24-.3.15-.5l-.01-.02q.23.13.34.39a.83.83 0 0 1-.43 1.08.8.8 0 0 1-1.08-.43.83.83 0 0 1 .6-1.13"/>
|
|
44
|
+
</symbol>`,yf=`<symbol id="file-tree-builtin-bun" viewBox="0 0 16 16">
|
|
45
|
+
<path fill="currentColor" d="M8 14c3.87 0 7-2.46 7-5.49 0-1.88-1.2-3.53-3.04-4.52q-1.1-.61-1.84-1.07C9.2 2.35 8.64 2 8 2s-1.36.45-2.31 1.03A29 29 0 0 1 4.04 4C2.2 4.98 1 6.63 1 8.51 1 11.54 4.13 14 8 14M7.18 3.88q.3-.66.3-1.37c0-.08.11-.1.13-.01.38 1.57-.53 2.35-1.2 2.61-.08.03-.12-.07-.06-.12a3 3 0 0 0 .83-1.12m1.2-.05a3 3 0 0 0-.45-1.3V2.5c-.04-.07.05-.15.1-.1 1.15 1.2.77 2.3.33 2.87-.05.05-.13 0-.11-.08q.21-.67.13-1.37m1.04-.32a3 3 0 0 0-.94-1.02v-.01c-.06-.05-.01-.16.07-.12 1.51.61 1.61 1.8 1.43 2.5l-.03.03a.07.07 0 0 1-.1-.06 3 3 0 0 0-.43-1.32m-2.97.32c-.36.3-.74.43-1.2.56q-.11 0-.1-.1a3.5 3.5 0 0 0 1.76-1.57s.09-.07.1.04c0 .18-.2.76-.56 1.07m2.89 6.36q-.13.52-.55.88a1.3 1.3 0 0 1-.75.35 1.3 1.3 0 0 1-.77-.35 1.7 1.7 0 0 1-.54-.88.13.13 0 0 1 .15-.15h2.31a.14.14 0 0 1 .15.15M6.15 8.95a1.1 1.1 0 0 1-1.39-.14A1.1 1.1 0 0 1 5.12 7a1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1-.17 1.69m4.96 0a1.1 1.1 0 0 1-1.4-.14 1.1 1.1 0 0 1 .37-1.8 1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1 .24 1.2 1 1 0 0 1-.41.5"/>
|
|
46
|
+
</symbol>`,bf=`<symbol id="file-tree-builtin-c" viewBox="0 0 16 16">
|
|
47
|
+
<path fill="currentColor" fill-rule="evenodd" d="M8 1q.084 0 .166.021.098.023.186.075c1.055.624 4.22 2.486 5.277 3.11.085.05.15.112.209.192h-.002l.028.037a.5.5 0 0 1 .103.21q.031.102.033.21v6.29a.71.71 0 0 1-.347.616l-5.307 3.144a.68.68 0 0 1-.693 0l-5.307-3.144A.72.72 0 0 1 2 11.145V4.832a.71.71 0 0 1 .346-.612l5.288-3.126A.7.7 0 0 1 7.992 1zm2.901 4.349a3.75 3.75 0 1 0 0 5.302l-1.06-1.06a2.25 2.25 0 1 1 0-3.182z" clip-rule="evenodd"/>
|
|
48
|
+
</symbol>`,xf=`<symbol id="file-tree-builtin-claude" viewBox="0 0 16 16">
|
|
49
|
+
<path fill="currentColor" d="M3.75 10.31 6.5 8.77l.04-.14-.04-.07h-.14l-.46-.03-1.57-.04-1.38-.07-1.33-.07-.34-.07L1 7.86l.03-.21.28-.18.4.03.89.07 1.33.08.97.06 1.43.16h.22l.03-.1-.07-.05-.06-.06-1.39-.92-1.48-.98-.79-.57-.42-.28-.2-.28-.1-.6.39-.41.52.04.12.03.52.4 1.12.86L6.2 6.04l.2.17.09-.06.01-.04-.1-.15-.76-1.46-.85-1.46-.37-.6-.1-.36a1 1 0 0 1-.06-.42l.42-.59.25-.07.6.08.22.2.36.84.58 1.3.9 1.77.29.53.14.47.04.14h.1v-.07l.07-1 .14-1.22.14-1.57.04-.45.23-.53.42-.28.36.15.28.41-.04.25-.16 1.08-.36 1.7-.21 1.14h.12l.14-.15.58-.76.97-1.2.42-.5.5-.51.32-.25h.6l.44.66-.2.68-.61.79-.52.65-.74 1-.45.8.04.05h.1l1.68-.36.9-.16 1.06-.18.5.23.05.22-.2.48-1.15.28-1.34.28-2 .46-.04.01.03.04.9.09.4.03h.94l1.77.14.46.28.27.37-.04.28-.72.37-.95-.23-2.24-.53-.76-.18h-.11v.06l.64.63L12 10.86l1.48 1.35.07.34-.18.28-.2-.03-1.29-.98-.5-.42-1.12-.95h-.07v.1l.25.38 1.37 2.05.07.63-.1.2-.36.14-.38-.08-.8-1.12-.85-1.26-.66-1.15-.07.05-.4 4.23-.19.21-.42.17-.35-.28-.2-.42.2-.87.23-1.12.18-.9.17-1.1.1-.36v-.03h-.1l-.84 1.16-1.27 1.72-1 1.07-.24.1-.42-.22.04-.39.22-.32 1.4-1.8.84-1.1.57-.64-.02-.07h-.04l-3.7 2.4-.66.09-.28-.28.03-.42.14-.14 1.12-.77z"/>
|
|
50
|
+
</symbol>`,Sf=`<symbol id="file-tree-builtin-cpp" viewBox="0 0 16 16">
|
|
51
|
+
<path fill="currentColor" fill-rule="evenodd" d="M8 1q.084 0 .166.021.098.023.186.075c1.055.624 4.22 2.486 5.277 3.11.085.05.15.112.209.192h-.002l.028.037a.5.5 0 0 1 .103.21q.031.102.033.21v6.29a.71.71 0 0 1-.347.616l-5.307 3.144a.68.68 0 0 1-.693 0l-5.307-3.144A.72.72 0 0 1 2 11.145V4.832a.71.71 0 0 1 .346-.612l5.288-3.126A.7.7 0 0 1 7.992 1zm2.901 4.349a3.75 3.75 0 1 0 0 5.302l-1.06-1.06a2.25 2.25 0 1 1 0-3.182z" clip-rule="evenodd"/>
|
|
52
|
+
</symbol>`,Cf=`<symbol id="file-tree-builtin-css" viewBox="0 0 16 16">
|
|
53
|
+
<path fill="currentColor" d="M8 15c-5.76 0-7-1.24-7-7V2a1 1 0 0 1 1-1h6c5.77 0 7 1.24 7 7s-1.24 7-7 7" class="vector" opacity=".2"/>
|
|
54
|
+
<path fill="currentColor" d="M10.1 9.19h.73c.03.49.22.6 1 .6.76 0 .93-.12.93-.68 0-.52-.17-.67-.94-.85-1.38-.3-1.68-.56-1.68-1.47 0-1.05.3-1.29 1.67-1.29 1.29 0 1.57.2 1.6 1.13h-.74c-.01-.34-.17-.42-.85-.42-.77 0-.94.1-.94.58 0 .42.17.55.96.73 1.36.3 1.66.58 1.66 1.59 0 1.14-.31 1.39-1.73 1.39-1.39 0-1.69-.24-1.67-1.31m-3.9 0h.74c.03.49.21.6.99.6.76 0 .93-.12.93-.68 0-.52-.17-.67-.93-.85-1.39-.3-1.69-.56-1.69-1.47 0-1.05.3-1.29 1.67-1.29 1.3 0 1.58.2 1.6 1.13h-.73c-.02-.34-.18-.42-.85-.42-.78 0-.95.1-.95.58 0 .42.17.55.96.73 1.37.3 1.67.58 1.67 1.59 0 1.14-.32 1.39-1.74 1.39-1.38 0-1.68-.24-1.66-1.31m-1.22 0h.75c-.09 1.07-.37 1.31-1.56 1.31-1.37 0-1.68-.45-1.68-2.5 0-1.96.36-2.5 1.68-2.5 1.16 0 1.44.25 1.52 1.35h-.76c-.08-.52-.22-.64-.76-.64-.74 0-.9.33-.9 1.78 0 1.47.16 1.8.9 1.8.58 0 .74-.11.8-.6"/>
|
|
55
|
+
</symbol>`,wf=`<symbol id="file-tree-builtin-database" viewBox="0 0 16 16">
|
|
56
|
+
<path fill="currentColor" d="M14.953 9.733a12.4 12.4 0 0 1-.244 1.936c-.207.933-.532 1.58-.996 2.044s-1.11.789-2.044.996C10.73 14.918 9.533 15 8 15s-2.73-.082-3.669-.291c-.933-.207-1.58-.532-2.044-.996s-.789-1.11-.996-2.044c-.122-.547-.2-1.182-.244-1.92q.23.364.532.667c.64.639 1.482 1.031 2.533 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265a4 4 0 0 0 .541-.683"/>
|
|
57
|
+
<path fill="currentColor" d="M14.93 5.924c-.046.663-.118 1.24-.23 1.743-.207.932-.532 1.579-.995 2.042s-1.11.789-2.042.996c-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997s-.789-1.11-.996-2.042a12 12 0 0 1-.227-1.683l.016-.188a4 4 0 0 0 .5.62c.638.639 1.48 1.031 2.532 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265.192-.192.357-.404.506-.633z"/>
|
|
58
|
+
<path fill="currentColor" d="M8 1c1.533 0 2.73.082 3.669.291.933.207 1.58.533 2.044.996.403.404.904.944.91 1.695.004.764-.509 1.318-.918 1.727-.463.463-1.11.789-2.042.996-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997-.406-.406-.915-.953-.915-1.71 0-.758.509-1.305.915-1.712.464-.463 1.11-.789 2.044-.996C5.27 1.082 6.467 1 8 1"/>
|
|
59
|
+
</symbol>`,Tf=`<symbol id="file-tree-builtin-default" viewBox="0 0 16 16">
|
|
60
|
+
<path fill="currentColor" d="M8 1v3a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z" class="bg" opacity=".4"/>
|
|
61
|
+
<path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/>
|
|
62
|
+
</symbol>`,Ef=`<symbol id="file-tree-builtin-docker" viewBox="0 0 16 16">
|
|
63
|
+
<path fill="currentColor" d="M15.85 6.54c-.05-.04-.45-.36-1.31-.36q-.34 0-.68.06a2.7 2.7 0 0 0-1.14-1.79l-.23-.14-.15.23a3 3 0 0 0-.4 1q-.24 1.01.26 1.84c-.4.24-1.03.3-1.17.3H.5a.5.5 0 0 0-.5.52q-.01 1.46.46 2.83.55 1.5 1.6 2.18c.79.5 2.08.79 3.54.79q.96 0 1.94-.18a8 8 0 0 0 2.55-.97 7 7 0 0 0 1.73-1.5 10 10 0 0 0 1.7-3.06h.15a2.4 2.4 0 0 0 1.8-.7 2 2 0 0 0 .47-.74l.06-.2z"/>
|
|
64
|
+
<path fill="currentColor" d="M1.48 7.36h1.4a.14.14 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H1.48a.13.13 0 0 0-.13.14v1.32q.02.13.13.13m1.94 0h1.41a.14.14 0 0 0 .13-.13V5.91q-.01-.12-.13-.14h-1.4a.13.13 0 0 0-.13.14v1.32q0 .13.12.13m1.98 0h1.4q.13 0 .14-.13V5.91a.13.13 0 0 0-.14-.14H5.4q-.1.01-.12.14v1.32q0 .13.12.13m1.95 0h1.42q.1 0 .12-.13V5.91q0-.12-.12-.14H7.35q-.1.01-.12.14v1.32q.01.13.12.13M3.42 5.5h1.41c.07 0 .13-.08.13-.15V4.03a.13.13 0 0 0-.13-.14h-1.4q-.12 0-.13.14v1.31q0 .13.12.15m1.98 0h1.4c.08 0 .14-.08.14-.15V4.03q0-.13-.14-.14H5.4q-.1 0-.12.14v1.31q0 .13.12.15m1.95 0h1.42c.06 0 .12-.08.12-.15V4.03q-.01-.13-.12-.14H7.35q-.1 0-.12.14v1.31q.01.13.12.15m0-1.9h1.42q.1-.02.12-.14v-1.3Q8.88 2 8.77 2H7.35q-.1 0-.12.14v1.3q.01.13.12.14m1.97 3.78h1.4a.13.13 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H9.32q-.1.01-.12.14v1.32q.01.13.12.13" opacity=".5"/>
|
|
65
|
+
</symbol>`,Df=`<symbol id="file-tree-builtin-eslint" viewBox="0 0 16 16">
|
|
66
|
+
<path fill="currentColor" d="M11.16 6.1 8.12 4.35a.3.3 0 0 0-.24 0L4.84 6.1a.3.3 0 0 0-.12.2v3.5q0 .14.12.22l3.04 1.74q.12.08.24 0l3.04-1.74a.2.2 0 0 0 .13-.22V6.3a.3.3 0 0 0-.13-.2" opacity=".5"/>
|
|
67
|
+
<path fill="currentColor" d="m.1 7.69 3.63-6.3A.8.8 0 0 1 4.37 1h7.26c.26 0 .5.17.64.4l3.63 6.27a.8.8 0 0 1 0 .75l-3.63 6.24a.7.7 0 0 1-.64.34H4.37a.7.7 0 0 1-.64-.34L.1 8.41a.7.7 0 0 1 0-.72m3 3.02q.01.15.14.23l4.63 2.66q.13.06.26 0l4.63-2.66a.3.3 0 0 0 .14-.23V5.4a.3.3 0 0 0-.14-.23L8.13 2.52a.3.3 0 0 0-.26 0L3.24 5.17a.3.3 0 0 0-.14.23z"/>
|
|
68
|
+
</symbol>`,Of=`<symbol id="file-tree-builtin-font" viewBox="0 0 16 16">
|
|
69
|
+
<path fill="currentColor" d="M12.3 13c-1.59 0-2.68-.99-2.68-2.5 0-1.43 1-2.34 2.88-2.35h2.16v-.83c0-1.08-.62-1.68-1.73-1.68-1.05 0-1.66.54-1.73 1.36H9.93c.09-1.43 1.06-2.48 3.05-2.48 1.75 0 3.02.95 3.02 2.68v5.66h-1.29v-1.02h-.04c-.41.66-1.16 1.16-2.37 1.16m.36-1.12c1.14 0 2-.72 2-1.74v-.96H12.6c-1.12 0-1.6.54-1.6 1.28 0 .97.8 1.42 1.66 1.42m-11.24.98H0L3.8 2h1.39l3.8 10.86H7.54l-1.08-3.2H2.5zm3.09-9.25h-.04l-1.6 4.95H6.1z"/>
|
|
70
|
+
</symbol>`,kf=`<symbol id="file-tree-builtin-git" viewBox="0 0 16 16">
|
|
71
|
+
<path fill="currentColor" d="M14.74 7.38 8.62 1.26a.9.9 0 0 0-1.27 0L6.08 2.53l1.61 1.61a1.07 1.07 0 0 1 1.36 1.37l1.55 1.55a1.07 1.07 0 0 1 1.1 1.77 1.07 1.07 0 0 1-1.74-1.16L8.5 6.22v3.8a1.07 1.07 0 1 1-.89-.02V6.15a1.07 1.07 0 0 1-.58-1.4l-1.58-1.6-4.2 4.2a.9.9 0 0 0 0 1.27l6.12 6.12a.9.9 0 0 0 1.27 0l6.09-6.09a.9.9 0 0 0 0-1.27"/>
|
|
72
|
+
</symbol>`,Af=`<symbol id="file-tree-builtin-go" viewBox="0 0 16 16">
|
|
73
|
+
<path fill="currentColor" fill-rule="evenodd" d="M4.41 4.57A3.2 3.2 0 0 1 6.87 5q.74.49 1.08 1.29.08.12-.1.16l-1.55.4c-.14.03-.15.04-.27-.1a1 1 0 0 0-.44-.34 1.6 1.6 0 0 0-1.68.14q-.95.61-.94 1.73c0 .73.52 1.33 1.25 1.43q.95.1 1.58-.6l.25-.34h-1.8c-.19 0-.24-.12-.17-.27.12-.28.34-.76.47-1a.3.3 0 0 1 .24-.14h2.98a4 4 0 0 1 .64-1.19 4 4 0 0 1 2.6-1.52 3.5 3.5 0 0 1 2.64.46q1.13.73 1.31 2.04a3.5 3.5 0 0 1-1.06 3.09q-.93.92-2.23 1.17l-.74.08a3.5 3.5 0 0 1-2.27-.8 3 3 0 0 1-.93-1.42 4 4 0 0 1-.39.61 4 4 0 0 1-2.64 1.56 3.3 3.3 0 0 1-2.5-.6 3 3 0 0 1-1.18-2.03 3.5 3.5 0 0 1 .8-2.67 4 4 0 0 1 2.6-1.58M13.1 7.5a1.53 1.53 0 0 0-1.9-1.21q-1.3.3-1.62 1.59a1.5 1.5 0 0 0 .85 1.72q.77.33 1.52-.05a2 2 0 0 0 1.18-1.74q0-.17-.03-.3" clip-rule="evenodd"/>
|
|
74
|
+
</symbol>`,jf=`<symbol id="file-tree-builtin-graphql" viewBox="0 0 16 16">
|
|
75
|
+
<path fill="currentColor" fill-rule="evenodd" d="M8 1a1.25 1.25 0 0 1 1.18 1.65l2.8 1.61q.33-.25.77-.26a1.25 1.25 0 0 1 .48 2.4v3.2a1.25 1.25 0 1 1-1.25 2.13l-2.8 1.62A1.25 1.25 0 0 1 8 15a1.25 1.25 0 0 1-1.18-1.65l-2.8-1.62q-.33.26-.77.27a1.25 1.25 0 0 1-.48-2.4V6.4a1.25 1.25 0 1 1 1.25-2.14l2.8-1.61A1.25 1.25 0 0 1 8 1M4.44 11.14l-.06.13 2.75 1.58a1.25 1.25 0 0 1 1.74 0l2.74-1.58-.05-.13zm3.89-7.68a1.3 1.3 0 0 1-.66 0L4.03 9.77q.37.3.45.78h7.04q.08-.48.45-.78zM4.38 4.73a1.24 1.24 0 0 1-1.02 1.76v3.02l.13.01 3.67-6.35-.03-.02zm4.46-1.56 3.67 6.35.13-.01V6.49a1.25 1.25 0 0 1-1.03-1.76L8.87 3.15z" clip-rule="evenodd"/>
|
|
76
|
+
</symbol>`,Mf=`<symbol id="file-tree-builtin-html" viewBox="0 0 16 16">
|
|
77
|
+
<path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
|
|
78
|
+
<path fill="currentColor" d="M10.48 3.76a.5.5 0 0 1 .4.58L10.6 5.8h1.14a.5.5 0 0 1 0 1h-1.32L10 9.2h1.08a.5.5 0 0 1 0 1H9.8l-.3 1.64a.5.5 0 1 1-.98-.18l.27-1.46H6.4l-.3 1.64a.5.5 0 1 1-.98-.18l.27-1.46H4.25a.5.5 0 0 1 0-1h1.32L6 6.8H4.93a.5.5 0 0 1 0-1H6.2l.3-1.64a.5.5 0 1 1 .98.18L7.2 5.8h2.4l.3-1.64a.5.5 0 0 1 .58-.4M6.58 9.2h2.4l.44-2.4h-2.4z" class="fg"/>
|
|
79
|
+
</symbol>`,Nf=`<symbol id="file-tree-builtin-image" viewBox="0 0 16 16">
|
|
80
|
+
<path fill="currentColor" d="M12.5 2A2.5 2.5 0 0 1 15 4.5v4.67l-4.05-3.54-4.08 4.08-3-2L1 10.6V4.5A2.5 2.5 0 0 1 3.5 2z" opacity=".3"/>
|
|
81
|
+
<path fill="currentColor" d="M15 10.5v1a2.5 2.5 0 0 1-2.5 2.5h-9a2.5 2.5 0 0 1-2.46-2.04L4 9l3 2 4-4zm-7-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"/>
|
|
82
|
+
</symbol>`,Pf=`<symbol id="file-tree-builtin-javascript" viewBox="0 0 16 16">
|
|
83
|
+
<path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
|
|
84
|
+
<path fill="currentColor" d="M8.1 9.64h.95c.04.62.28.76 1.28.76s1.2-.14 1.2-.85c0-.66-.2-.85-1.2-1.07-1.79-.38-2.18-.7-2.18-1.86C8.15 5.3 8.54 5 10.31 5c1.67 0 2.04.26 2.07 1.42h-.95c-.02-.43-.23-.53-1.1-.53-1 0-1.22.14-1.22.74 0 .52.22.7 1.24.92 1.76.38 2.15.73 2.15 2 0 1.44-.4 1.75-2.24 1.75-1.8 0-2.18-.3-2.15-1.66M3.5 9.5h.98c0 .76.15.92.85.92.77 0 .94-.18.94-1.02V5.1h1v4.34c0 1.54-.35 1.87-1.92 1.87-1.55 0-1.89-.32-1.86-1.8"/>
|
|
85
|
+
</symbol>`,Ff=`<symbol id="file-tree-builtin-json" viewBox="0 0 16 16">
|
|
86
|
+
<path fill="currentColor" d="M13.25 11.5V9.75a.5.5 0 0 1 .36-.48l.55-.15a1.16 1.16 0 0 0 0-2.24l-.55-.15a.5.5 0 0 1-.36-.48V4.5a2.5 2.5 0 0 0-2.5-2.5h-.25a.5.5 0 0 0 0 1h.25a1.5 1.5 0 0 1 1.5 1.5v1.75a1.5 1.5 0 0 0 1.09 1.44l.54.15a.16.16 0 0 1 0 .32l-.54.15a1.5 1.5 0 0 0-1.09 1.44v1.75a1.5 1.5 0 0 1-1.5 1.5h-.25a.5.5 0 0 0 0 1h.25a2.5 2.5 0 0 0 2.5-2.5m-10.5 0V9.75a.5.5 0 0 0-.36-.48l-.55-.15a1.16 1.16 0 0 1 0-2.24l.55-.15a.5.5 0 0 0 .36-.48V4.5A2.5 2.5 0 0 1 5.25 2h.25a.5.5 0 0 1 0 1h-.25a1.5 1.5 0 0 0-1.5 1.5v1.75a1.5 1.5 0 0 1-1.09 1.44l-.54.15a.16.16 0 0 0 0 .32l.54.15a1.5 1.5 0 0 1 1.09 1.45v1.74a1.5 1.5 0 0 0 1.5 1.5h.25a.5.5 0 0 1 0 1h-.25a2.5 2.5 0 0 1-2.5-2.5"/>
|
|
87
|
+
</symbol>`,If=`<symbol id="file-tree-builtin-markdown" viewBox="0 0 16 16">
|
|
88
|
+
<path fill="currentColor" d="M1 12V4h2l2 2.5L7 4h2v8H7V7.5l-2 2-2-2V12zm9-3 3 3.5L16 9h-2V4h-2v5z"/>
|
|
89
|
+
</symbol>`,Lf=`<symbol id="file-tree-builtin-mcp" viewBox="0 0 16 16">
|
|
90
|
+
<path fill="currentColor" d="M9.26-.04a3 3 0 0 1 2 .82 2.8 2.8 0 0 1 .8 2.35 2.9 2.9 0 0 1 2.41.8l.03.02a2.74 2.74 0 0 1 0 3.94l-5.8 5.69-.04.06-.02.07q0 .04.02.07.01.04.04.06l1.2 1.17a.55.55 0 0 1 0 .79.6.6 0 0 1-.81 0l-1.2-1.17a1.3 1.3 0 0 1 0-1.84L13.7 7.1a1.65 1.65 0 0 0 .37-1.82 2 2 0 0 0-.37-.54l-.03-.03a1.73 1.73 0 0 0-2.4 0L6.47 9.4l-.07.06a.58.58 0 0 1-.92-.18.6.6 0 0 1 .12-.6l4.85-4.76a1.65 1.65 0 0 0 0-2.36 1.73 1.73 0 0 0-2.4 0l-6.43 6.3a.6.6 0 0 1-.8 0 .55.55 0 0 1 0-.8L7.25.79a3 3 0 0 1 2-.82"/>
|
|
91
|
+
<path fill="currentColor" d="M9.26 2.19a.6.6 0 0 1 .52.34.6.6 0 0 1 0 .43l-.12.18L4.9 7.79a1.65 1.65 0 0 0 0 2.36 1.73 1.73 0 0 0 2.4 0l4.75-4.66a.58.58 0 0 1 .93.18.6.6 0 0 1-.12.61l-4.75 4.66a2.9 2.9 0 0 1-4.01 0 2.75 2.75 0 0 1-.62-3.04A3 3 0 0 1 4.1 7l4.74-4.65a.6.6 0 0 1 .4-.16"/>
|
|
92
|
+
</symbol>`,Rf=`<symbol id="file-tree-builtin-nextjs" viewBox="0 0 16 16">
|
|
93
|
+
<defs>
|
|
94
|
+
<linearGradient id="a" x1="4.522" x2="14" y1="3.943" y2="16" gradientUnits="userSpaceOnUse">
|
|
95
|
+
<stop stop-color="currentColor"/>
|
|
96
|
+
<stop offset="1" stop-color="currentColor" stop-opacity="0"/>
|
|
97
|
+
</linearGradient>
|
|
98
|
+
</defs>
|
|
99
|
+
<path fill="currentColor" d="M3 2h1.522v9.09H3z"/>
|
|
100
|
+
<path fill="url(#a)" d="M4.903 2 15 15.075q-.565.5-1.195.925L4.522 3.943z"/>
|
|
101
|
+
<path fill="currentColor" d="M12.172 2h-1.508v9.094h1.508z"/>
|
|
102
|
+
</symbol>`,zf=`<symbol id="file-tree-builtin-npm" viewBox="0 0 16 16">
|
|
103
|
+
<path fill="currentColor" d="M2 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1z" class="vector" opacity=".2"/>
|
|
104
|
+
<path fill="currentColor" d="M10.5 13H13V3H3v10h5V5.5h2.5z"/>
|
|
105
|
+
</symbol>`,Bf=`<symbol id="file-tree-builtin-oxc" viewBox="0 0 16 16">
|
|
106
|
+
<path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .5.5V3h3.5a.5.5 0 0 1 .38.83L10.5 7.69v1.44q.41.04.95-.16a4 4 0 0 0 .72-.35l.04-.03h.01a.5.5 0 0 1 .67.1l2 2.5a.5.5 0 0 1 0 .62c-.76.96-3.14 2.69-6.89 2.69s-6.13-1.73-6.89-2.69a.5.5 0 0 1 0-.62l2-2.5a.5.5 0 0 1 .67-.1l.05.03.16.09q.22.13.56.26.54.2.95.16V7.69L2.12 3.83A.5.5 0 0 1 2.5 3H6V1.5a.5.5 0 0 1 .5-.5zM7 3.5a.5.5 0 0 1-.5.5H3.6l2.78 3.17a.5.5 0 0 1 .12.33v2a.5.5 0 0 1-.28.45c-.7.35-1.5.15-2.02-.05a5 5 0 0 1-.58-.26l-1.46 1.84c.82.78 2.8 2.02 5.84 2.02s5.02-1.24 5.84-2.02l-1.46-1.83a5 5 0 0 1-.58.26c-.52.2-1.33.39-2.02.04a.5.5 0 0 1-.28-.45v-2a.5.5 0 0 1 .12-.33L12.4 4H9.5a.5.5 0 0 1-.5-.5V2H7z"/>
|
|
107
|
+
</symbol>`,Vf=`<symbol id="file-tree-builtin-postcss" viewBox="0 0 16 16">
|
|
108
|
+
<path fill="currentColor" d="M14.5 8a6.5 6.5 0 0 0-5.9-6.47l5.42 8.93A7 7 0 0 0 14.5 8M2.88 12A6.5 6.5 0 0 0 8 14.5c2.08 0 3.93-.98 5.12-2.5zm8.62-1h1.68L11.5 8.24zm-1-.55a4 4 0 0 1-.7.55h.7zM8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M5.5 11h.7a4 4 0 0 1-.7-.55zm-2.68 0H4.5V8.24zm3.76-6.2A4 4 0 0 1 8 4.5q.76 0 1.42.3L8 2.46zM1.5 8q0 1.31.48 2.46L7.4 1.53A6.5 6.5 0 0 0 1.5 8m14 0a7.5 7.5 0 0 1-.99 3.72l-.01.03-.02.03A7.5 7.5 0 0 1 8 15.5a7.5 7.5 0 0 1-6.5-3.75l-.01-.03A7.5 7.5 0 1 1 15.5 8"/>
|
|
109
|
+
</symbol>`,Hf=`<symbol id="file-tree-builtin-prettier" viewBox="0 0 16 16">
|
|
110
|
+
<path fill="currentColor" d="M6 12v1H4.93v-1zm1-2v1H2v-1zm6-4v1h-3V6zm-1-4v1H9V2z"/>
|
|
111
|
+
<path fill="currentColor" d="M11.5 10v1H8v-1zM5 6v1H2V6zm5-2v1H9V4z" opacity=".8"/>
|
|
112
|
+
<path fill="currentColor" d="M6 14v1H2v-1zm-.5-6v1H2V8zM13 4v1h-3V4zM4.93 2v1H2V2z" opacity=".6"/>
|
|
113
|
+
<path fill="currentColor" d="M4.93 12v1H2v-1zM13 8v1H9V8zM5.5 4v1H2V4zM9 2v1H4.93V2z" opacity=".4"/>
|
|
114
|
+
</symbol>`,Uf=`<symbol id="file-tree-builtin-python" viewBox="0 0 16 16">
|
|
115
|
+
<path fill="currentColor" d="M8.33 8.4H10c1.16 0 1.9-.73 1.9-1.86V5.08q0-.24.25-.24h.74c.75 0 1.33.32 1.66.97q.4.73.41 1.46c.09.9.09 1.78-.24 2.67-.25.73-.75 1.3-1.58 1.46h-4.8c-.08 0-.25 0-.25.08v.4s.17.09.25.09h2.82q.34-.02.33.32v1.06c0 .56-.25.97-.75 1.13-.41.16-.83.33-1.24.4a7 7 0 0 1-2.98-.07 3 3 0 0 1-1.16-.49c-.33-.32-.58-.65-.5-1.14v-2.91c0-1.13.67-1.78 1.82-1.78q.89-.1 1.66-.08m2.32 4.86a.65.65 0 0 0-.66-.65c-.34 0-.67.33-.67.65s.33.57.67.65a.65.65 0 0 0 .66-.65" class="bg" opacity=".8"/>
|
|
116
|
+
<path fill="currentColor" d="M7.67 7.6H6c-1.16 0-1.9.73-1.9 1.86v1.46q0 .24-.25.24h-.74c-.75 0-1.33-.32-1.66-.97a3 3 0 0 1-.41-1.46 6 6 0 0 1 .24-2.67c.25-.73.75-1.3 1.58-1.46h4.8c.08 0 .25 0 .25-.08v-.4s-.17-.09-.25-.09H4.85c-.24 0-.33-.08-.33-.32V2.65c0-.56.25-.97.75-1.13.41-.16.83-.33 1.24-.4a7 7 0 0 1 2.98.07c.41.09.83.25 1.16.49.33.32.58.65.5 1.13v2.92c0 1.14-.67 1.78-1.82 1.78-.58.08-1.16.08-1.66.08M5.35 2.73c0 .33.25.65.66.65.33 0 .66-.32.66-.65 0-.32-.33-.56-.66-.64a.65.65 0 0 0-.66.64" class="fg"/>
|
|
117
|
+
</symbol>`,Wf=`<symbol id="file-tree-builtin-react" viewBox="0 0 16 16">
|
|
118
|
+
<path fill="currentColor" d="M8 6.65c.73 0 1.31.6 1.31 1.35S8.73 9.35 8 9.35 6.69 8.75 6.69 8 7.27 6.65 8 6.65"/>
|
|
119
|
+
<path fill="currentColor" fill-rule="evenodd" d="M8 2.55c1.3-.99 2.59-1.34 3.5-.8.92.55 1.27 1.87 1.08 3.53C14.06 5.94 15 6.9 15 8s-.94 2.06-2.42 2.72c.19 1.65-.16 2.98-1.08 3.52-.91.55-2.2.2-3.5-.8-1.3 1-2.58 1.35-3.5.8-.91-.54-1.27-1.87-1.08-3.52C1.94 10.06 1 9.1 1 8s.94-2.06 2.42-2.72c-.19-1.66.17-2.98 1.08-3.52s2.2-.2 3.5.8M4.26 11.2c-.08 1.34.28 2.03.68 2.26s1.15.22 2.25-.52l.11-.09a12 12 0 0 1-1.24-1.39 11 11 0 0 1-1.8-.41zm7.47-.15q-.83.27-1.79.41-.6.8-1.24 1.4l.11.08c1.1.74 1.86.76 2.25.52.4-.23.76-.92.68-2.26zm-3.04.54a14 14 0 0 1-1.38 0q.34.38.69.7.35-.32.7-.7M8 5.29q-.76 0-1.47.1A13 13 0 0 0 5.07 8a14 14 0 0 0 1.46 2.62 13 13 0 0 0 2.94 0A13 13 0 0 0 10.93 8a14 14 0 0 0-1.46-2.62A13 13 0 0 0 8 5.3M4.64 9.18q-.15.5-.25.96.44.16.94.27a15 15 0 0 1-.7-1.23m6.73 0a15 15 0 0 1-.7 1.23q.5-.11.95-.27a10 10 0 0 0-.25-.96M3.44 6.26C2.27 6.86 1.87 7.53 1.87 8s.4 1.14 1.57 1.74l.13.07q.18-.88.55-1.81a12 12 0 0 1-.55-1.8q-.07.02-.13.06m8.99-.07A12 12 0 0 1 11.88 8q.36.94.55 1.8l.13-.06c1.17-.6 1.56-1.27 1.56-1.74s-.39-1.14-1.56-1.74zm-7.1-.6q-.5.11-.94.27.1.46.25.96a15 15 0 0 1 .69-1.23m5.34 0a15 15 0 0 1 .7 1.23q.14-.5.24-.96-.44-.15-.94-.27M7.18 3.06c-1.09-.74-1.85-.76-2.24-.52s-.76.92-.69 2.26l.01.15a11 11 0 0 1 1.8-.41q.6-.8 1.24-1.4zm3.88-.52c-.4-.24-1.15-.22-2.25.52l-.12.08q.65.6 1.25 1.4.96.15 1.8.41v-.14c.08-1.35-.28-2.04-.68-2.27M8 3.7a10 10 0 0 0-.7.7 14 14 0 0 1 1.4 0 10 10 0 0 0-.7-.7" clip-rule="evenodd"/>
|
|
120
|
+
</symbol>`,Gf=`<symbol id="file-tree-builtin-ruby" viewBox="0 0 16 16">
|
|
121
|
+
<path fill="currentColor" fill-rule="evenodd" d="M11.04 2c.48 0 .92.23 1.18.6l2.54 3.65c.37.52.3 1.23-.15 1.69l-5.58 5.64a1.47 1.47 0 0 1-2.06 0L1.39 7.94a1.3 1.3 0 0 1-.15-1.7l2.54-3.63q.2-.3.5-.45.33-.16.68-.16zm.84 2.17a.5.5 0 0 0-.7-.05L8 6.84 4.83 4.12a.5.5 0 0 0-.65.76L6.65 7H3.5a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1H9.35l2.48-2.12a.5.5 0 0 0 .05-.7" clip-rule="evenodd"/>
|
|
122
|
+
</symbol>`,Kf=`<symbol id="file-tree-builtin-rust" viewBox="0 0 16 16">
|
|
123
|
+
<path fill="currentColor" fill-rule="evenodd" d="M8 .8a.2.2 0 0 1 .18.1l.38.6.16.02.5-.53.01-.01a.2.2 0 0 1 .33.08l.25.68.16.05.59-.43h.02a.2.2 0 0 1 .3.14l.12.71.15.08.65-.3a.2.2 0 0 1 .2.02.2.2 0 0 1 .1.18l-.03.72.12.1.71-.16a.2.2 0 0 1 .25.25l-.17.7q.06.06.1.13l.73-.03A.2.2 0 0 1 14 4a.2.2 0 0 1 .02.2l-.3.66.08.14.71.12a.2.2 0 0 1 .14.32l-.43.59.05.16.68.25a.2.2 0 0 1 .07.35l-.53.49.01.16.62.38a.2.2 0 0 1 0 .36l-.62.38-.01.16.53.5a.2.2 0 0 1-.07.34l-.68.25-.05.16.43.59a.2.2 0 0 1-.14.32l-.72.12-.07.15.3.65a.2.2 0 0 1-.02.2.2.2 0 0 1-.18.1l-.72-.03-.1.13.16.7a.2.2 0 0 1-.25.25l-.7-.17-.13.1.03.73a.2.2 0 0 1-.1.18.2.2 0 0 1-.2.02l-.66-.3-.14.08-.12.71a.2.2 0 0 1-.32.14l-.59-.43-.16.05-.25.68a.2.2 0 0 1-.34.07l-.5-.53-.16.01-.38.62a.2.2 0 0 1-.36 0l-.38-.62-.16-.01-.5.53a.2.2 0 0 1-.34-.07l-.25-.68-.16-.05-.59.43a.2.2 0 0 1-.32-.14L5 13.78l-.15-.07-.65.3a.2.2 0 0 1-.2-.02.2.2 0 0 1-.1-.18l.03-.72-.13-.1-.7.16a.2.2 0 0 1-.25-.25l.17-.7-.1-.13-.73.03a.2.2 0 0 1-.2-.3l.3-.66-.08-.14-.71-.12a.2.2 0 0 1-.14-.32l.43-.59-.05-.16-.68-.25A.2.2 0 0 1 1 9.22l.53-.5-.02-.16-.6-.38A.2.2 0 0 1 .8 8a.2.2 0 0 1 .1-.18l.6-.38.02-.16-.53-.5a.2.2 0 0 1 .07-.34l.68-.25.05-.16-.43-.59a.2.2 0 0 1 .14-.32L2.2 5l.08-.15L2 4.2a.2.2 0 0 1 .2-.3l.72.03.1-.13-.16-.7a.2.2 0 0 1 .25-.25l.7.16.13-.1-.03-.72A.2.2 0 0 1 4 2a.2.2 0 0 1 .2-.02l.65.3L5 2.2l.12-.71v-.03a.2.2 0 0 1 .32-.1l.59.41.16-.04.25-.68.01-.02A.2.2 0 0 1 6.8.99l.49.53.16-.02.38-.61.02-.02A.2.2 0 0 1 8 .79M6.8 9.45h1.26l.06.01q.03.01.03.05v1.52q0 .07-.09.06h-4.5A5.4 5.4 0 0 0 8 13.42a5.4 5.4 0 0 0 4.45-2.33h-2.42c-.36 0-.68-.5-.77-.75-.08-.22-.2-.91-.25-1.12-.15-.61-.59-.71-.78-.73H6.8zM8 2.58a5.4 5.4 0 0 0-4.07 1.85h5.74l.17.02c.23.03.6.12.96.35.34.23.83.68.83 1.4 0 .66-.55 1.16-1.08 1.5.42.33.7.53.86 1.44.04.17.34.32.62.29.29-.03.62-.16.62-.75v-.24q0-.1.07-.1h.68A5.43 5.43 0 0 0 8 2.59M2.96 6.03a5.4 5.4 0 0 0-.19 3.37h1.66V6.03zM6.8 7.06h1.66c.35 0 .77-.12.77-.47 0-.42-.55-.53-.65-.53H6.8z" clip-rule="evenodd"/>
|
|
124
|
+
</symbol>`,qf=`<symbol id="file-tree-builtin-sass" viewBox="0 0 16 16">
|
|
125
|
+
<path fill="currentColor" fill-rule="evenodd" d="M8.08 1.44c2.41-.91 4.96-.37 5.35 1.27.39 1.62-.92 3.56-2.6 4.25a5 5 0 0 1-3.26.35c-.58-.2-.92-.62-1-.85-.03-.09-.09-.24 0-.3.05-.03.08-.02.22.15s.7.6 1.75.48c2.78-.34 4.45-2.64 3.92-3.88-.37-.87-2.5-1.26-5.18.16C4.03 4.81 3.85 6.24 3.82 6.8c-.08 1.5 1.73 2.28 2.7 3.4q.04.03.07.08c.3-.12.7-.19 1.35-.2 1.58-.03 2.47 1.08 2.43 2.08-.03.78-.7 1.1-.82 1.13-.1.01-.14.02-.15-.06q-.03-.06.13-.15c.16-.09.42-.3.48-.72.05-.43-.24-1.44-1.76-1.63a3 3 0 0 0-1.33.08c.27.62.32 1.87-.29 2.83-.63 1-1.8 1.61-2.93 1.27-.37-.1-.93-.92-.45-2.05.46-1.07 2.4-2.12 2.66-2.26-.9-.83-3.08-1.95-3.4-3.65-.08-.49.13-1.65 1.46-2.98a12 12 0 0 1 4.11-2.52m-1.88 9.7c-.01.01-.9.47-1.52 1.17-.59.66-.75 1.48-.43 1.69.3.18 1-.04 1.51-.62a3 3 0 0 0 .5-.9q.2-.64.02-1.39z" clip-rule="evenodd"/>
|
|
126
|
+
</symbol>`,Jf=`<symbol id="file-tree-builtin-stylelint" viewBox="0 0 16 16">
|
|
127
|
+
<path fill="currentColor" d="M4 3v3.5l1.5-1L7 15 .5 6l1-1.5L0 3l2.5-2h1zm12 0-1.5 1.5 1 1.5L9 15l1.5-9.5 1.5 1V3l.5-2h1zm-8 8.5a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1m0-3a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1m0-3a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1"/>
|
|
128
|
+
<path fill="currentColor" d="M6.5 2.5V4l-2 1.5v-4zm5 3L9.5 4V2.5l2-1zM9 4H7V2.5h2z"/>
|
|
129
|
+
</symbol>`,Yf=`<symbol id="file-tree-builtin-svelte" viewBox="0 0 16 16">
|
|
130
|
+
<path fill="currentColor" d="m3.98 3.7 3.36-2.08a4.5 4.5 0 0 1 5.9 1.23 4 4 0 0 1 .7 3.02q-.16.75-.58 1.4c.42.77.56 1.66.4 2.52a3.7 3.7 0 0 1-1.57 2.4l-.17.1-3.36 2.09a4.5 4.5 0 0 1-5.9-1.23 4 4 0 0 1-.66-1.44 4 4 0 0 1-.04-1.58 4 4 0 0 1 .58-1.4 4 4 0 0 1-.4-2.52 3.7 3.7 0 0 1 1.57-2.4zl3.36-2.08zm7.87 0a2.7 2.7 0 0 0-1.26-.95 2.7 2.7 0 0 0-1.6-.07 3 3 0 0 0-.52.2l-.16.09-3.36 2.08a2 2 0 0 0-.69.64 2 2 0 0 0-.36.86 2.3 2.3 0 0 0 .42 1.81A2.7 2.7 0 0 0 7.18 9.4q.28-.06.53-.2l.16-.09 1.28-.79.2-.09a.8.8 0 0 1 .87.31.7.7 0 0 1 .13.55.7.7 0 0 1-.24.4l-.08.05-3.36 2.08-.2.09a1 1 0 0 1-.49-.02 1 1 0 0 1-.38-.3 1 1 0 0 1-.13-.37v-.1l.01-.13-.13-.03a4 4 0 0 1-1.1-.5l-.2-.14-.18-.12-.07.18-.08.3a2.3 2.3 0 0 0 .43 1.82q.45.64 1.19.93.73.28 1.51.14l.16-.04q.27-.07.52-.2l.16-.09 3.36-2.08q.4-.25.69-.64.27-.4.36-.86a2.3 2.3 0 0 0-.42-1.82 2.7 2.7 0 0 0-1.27-.95 2.7 2.7 0 0 0-1.6-.08q-.27.07-.52.2l-.16.1-1.28.79-.2.09a1 1 0 0 1-.49-.03 1 1 0 0 1-.38-.29.7.7 0 0 1-.13-.54.7.7 0 0 1 .24-.4l.08-.06L9.33 4.4l.2-.1a.8.8 0 0 1 .87.32 1 1 0 0 1 .13.38v.22l.11.04q.6.18 1.12.5l.2.14.17.12.06-.19.08-.3a2.3 2.3 0 0 0-.42-1.81z"/>
|
|
131
|
+
</symbol>`,Xf=`<symbol id="file-tree-builtin-svg" viewBox="0 0 16 16">
|
|
132
|
+
<path fill="currentColor" d="M5 7a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2z"/>
|
|
133
|
+
<path fill="currentColor" d="M6 1a5 5 0 0 1 4.58 3H7a3 3 0 0 0-3 3v3.58A5 5 0 0 1 6 1" opacity=".5"/>
|
|
134
|
+
</symbol>`,Zf=`<symbol id="file-tree-builtin-svgo" viewBox="0 0 16 16">
|
|
135
|
+
<path fill="currentColor" d="M9.43 4.8A.6.6 0 1 1 9.19 6l-.56.96a1.2 1.2 0 0 1 .32 1.58l.7.53a.89.89 0 1 1-.17.22l-.7-.52a1.2 1.2 0 0 1-1.4.25l-.56.87a.75.75 0 1 1-.57-.2 1 1 0 0 1 .32.05l.56-.87a1.2 1.2 0 0 1-.4-1.24l-1.2-.47a.56.56 0 1 1 .1-.28v.02l1.2.47a1.2 1.2 0 0 1 1.56-.55l.56-.97a.6.6 0 0 1-.15-.64.6.6 0 0 1 .63-.4"/>
|
|
136
|
+
<path fill="currentColor" fill-rule="evenodd" d="M9.17 1q.16.63.27 1.26a6 6 0 0 1 1.61.67q.52-.38 1.08-.71l1.65 1.64q-.32.56-.68 1.05.48.78.72 1.67.6.09 1.18.25v2.32q-.55.15-1.11.24a6 6 0 0 1-.7 1.82q.31.44.59.91l-1.65 1.65-.85-.55a6 6 0 0 1-1.9.83q-.08.47-.2.95H6.84q-.12-.46-.2-.93a6 6 0 0 1-1.96-.81q-.39.27-.8.51l-1.65-1.65q.25-.43.53-.84a6 6 0 0 1-.75-1.9L1 9.16V6.83q.54-.14 1.09-.24a6 6 0 0 1 .77-1.74q-.33-.47-.63-.98l1.65-1.65q.54.32 1.03.68a6 6 0 0 1 1.66-.66q.1-.61.26-1.24zM7.96 3.73a4 4 0 0 0-1.74.36 4.5 4.5 0 0 0-2.3 2.3 4.4 4.4 0 0 0-.1 3.29l.03.06a4.4 4.4 0 0 0 2.4 2.47 4.4 4.4 0 0 0 3.48-.02l.03-.02a4.4 4.4 0 0 0 2.3-2.42l.06-.14a4.4 4.4 0 0 0-.2-3.4 4.4 4.4 0 0 0-2.13-2.07L9.47 4a4 4 0 0 0-1.51-.27" clip-rule="evenodd"/>
|
|
137
|
+
</symbol>`,Qf=`<symbol id="file-tree-builtin-swift" viewBox="0 0 16 16">
|
|
138
|
+
<path fill="currentColor" d="M9.63 1c6.15 4.35 4.16 9.15 4.16 9.15s1.75 2.05 1.04 3.85c0 0-.72-1.26-1.93-1.26-1.17 0-1.85 1.26-4.2 1.26C3.47 14 1 9.46 1 9.46c4.71 3.22 7.93.94 7.93.94C6.8 9.12 2.29 3 2.29 3c3.93 3.47 5.63 4.39 5.63 4.39-1.01-.87-3.86-5.13-3.86-5.13C6.34 4.66 10.86 8 10.86 8c1.28-3.7-1.23-7-1.23-7"/>
|
|
139
|
+
</symbol>`,$f=`<symbol id="file-tree-builtin-table" viewBox="0 0 16 16">
|
|
140
|
+
<path fill="currentColor" d="M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z" class="bg" opacity=".4"/>
|
|
141
|
+
<path fill="currentColor" d="M11.5 8a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5zM5 12h2.5v-1H5zm3.5 0H11v-1H8.5zM5 10h2.5V9H5zm3.5 0H11V9H8.5zm1-9a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/>
|
|
142
|
+
</symbol>`,ep=`<symbol id="file-tree-builtin-tailwind" viewBox="0 0 16 16">
|
|
143
|
+
<path fill="currentColor" fill-rule="evenodd" d="M8 4Q5.2 4 4.5 6.67q1.05-1.34 2.45-1c.53.12.91.5 1.33.9C8.98 7.23 9.77 8 11.5 8q2.8 0 3.5-2.67-1.05 1.34-2.45 1c-.53-.12-.91-.5-1.33-.9C10.52 4.77 9.73 4 8 4M4.5 8Q1.7 8 1 10.67q1.05-1.34 2.45-1c.53.12.91.5 1.33.9C5.48 11.23 6.26 12 8 12q2.8 0 3.5-2.67-1.05 1.34-2.45 1c-.53-.12-.91-.5-1.33-.9C7.02 8.77 6.24 8 4.5 8" clip-rule="evenodd"/>
|
|
144
|
+
</symbol>`,tp=`<symbol id="file-tree-builtin-terraform" viewBox="0 0 16 16">
|
|
145
|
+
<path fill="currentColor" d="M1 0v5.05l4.35 2.53V2.53zm9.18 5.34L5.83 2.82v5.05l4.35 2.53zm.47 5.06V5.34L15 2.82v5.05zm-.48 5.6-4.35-2.53V8.42l4.35 2.53z"/>
|
|
146
|
+
</symbol>`,np=`<symbol id="file-tree-builtin-text" viewBox="0 0 16 16">
|
|
147
|
+
<path fill="currentColor" fill-rule="evenodd" d="M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z" class="bg" clip-rule="evenodd" opacity=".4"/>
|
|
148
|
+
<path fill="currentColor" d="M8.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zm2-2a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1zm-1-8a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z"/>
|
|
149
|
+
</symbol>`,rp=`<symbol id="file-tree-builtin-typescript" viewBox="0 0 16 16">
|
|
150
|
+
<path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
|
|
151
|
+
<path fill="currentColor" d="M8.1 9.64h.95c.04.62.28.76 1.28.76s1.2-.14 1.2-.85c0-.66-.2-.85-1.2-1.07-1.79-.38-2.18-.7-2.18-1.86C8.15 5.3 8.54 5 10.31 5c1.67 0 2.04.26 2.07 1.42h-.95c-.02-.43-.23-.53-1.1-.53-1 0-1.22.14-1.22.74 0 .52.22.7 1.24.92 1.76.38 2.15.73 2.15 2 0 1.44-.4 1.75-2.24 1.75-1.8 0-2.18-.3-2.15-1.66m-3 1.57V5.99H3.5v-.9h4.21v.9H6.1v5.22z"/>
|
|
152
|
+
</symbol>`,ip=`<symbol id="file-tree-builtin-vite" viewBox="0 0 16 16">
|
|
153
|
+
<path fill="currentColor" d="M8.57 14.87c-.18.26-.55.11-.55-.22v-3.18l-.05-.27-.13-.22-.2-.15-.24-.06H4.29c-.26 0-.4-.32-.26-.55L6.08 7c.3-.46 0-1.1-.5-1.1H1.8c-.25 0-.4-.32-.25-.56l2.65-4.2A.3.3 0 0 1 4.46 1h7.9c.26 0 .4.32.26.55l-2.05 3.23c-.29.46 0 1.1.5 1.1h3.12c.26 0 .4.34.24.57z"/>
|
|
154
|
+
</symbol>`,ap=`<symbol id="file-tree-builtin-vscode" viewBox="0 0 16 16">
|
|
155
|
+
<path fill="currentColor" d="m5.11 9.68-2.4 1.84a.6.6 0 0 1-.75-.04l-.77-.7a.6.6 0 0 1 0-.87L3.28 8zm5.52-8.42a.51.51 0 0 1 .87.36V4.8L7.32 8 5.1 6.32z" opacity=".75"/>
|
|
156
|
+
<path fill="currentColor" d="M11.1 14.99h.03zM1.96 4.52a.6.6 0 0 1 .75-.04l8.8 6.71v3.19a.51.51 0 0 1-.88.36L1.19 6.1a.6.6 0 0 1 0-.87z" opacity=".65"/>
|
|
157
|
+
<path fill="currentColor" d="M11.62 14.91a.9.9 0 0 1-1-.17.51.51 0 0 0 .88-.36V1.62a.51.51 0 0 0-.87-.36.9.9 0 0 1 1-.17l2.87 1.39a.9.9 0 0 1 .5.8v9.44a.9.9 0 0 1-.5.8z"/>
|
|
158
|
+
</symbol>`,op=`<symbol id="file-tree-builtin-vue" viewBox="0 0 16 16">
|
|
159
|
+
<path fill="currentColor" d="M9.62 2.25 8 5.02 6.38 2.25H1l7 12 7-12z" opacity=".5"/>
|
|
160
|
+
<path fill="currentColor" d="M9.54 2.25 8 4.95l-1.54-2.7H4l4 7 4-7z"/>
|
|
161
|
+
</symbol>`,sp=`<symbol id="file-tree-builtin-wasm" viewBox="0 0 16 16">
|
|
162
|
+
<path fill="currentColor" d="M13 1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h3a2 2 0 1 0 4 0z" class="subtract" opacity=".2"/>
|
|
163
|
+
<path fill="currentColor" d="M4.64 11.4h.02l.8-3.4h.91l.73 3.45L7.88 8h.96l-1.25 5h-.97L5.9 9.6 5.1 13h-1L3 8h.98z"/>
|
|
164
|
+
<path fill="currentColor" fill-rule="evenodd" d="M13 13h-1.02l-.33-1.11H9.9L9.64 13h-.97l1.26-5h1.54zm-2.49-3.77-.42 1.84h1.32l-.49-1.84z" clip-rule="evenodd"/>
|
|
165
|
+
</symbol>`,cp=`<symbol id="file-tree-builtin-webpack" viewBox="0 0 16 16">
|
|
166
|
+
<path fill="currentColor" d="M14.1 11.79 8.26 15v-2.5l3.64-1.94zm.4-.35V4.73l-2.14 1.2v4.3zm-12.6.35L7.74 15v-2.5L4.1 10.56zm-.4-.35V4.73l2.14 1.2v4.3zm.25-7.15 6-3.29v2.42L3.9 5.47l-.03.01zm12.5 0L8.25 1v2.42l3.85 2.05.03.01z" class="bg" opacity=".4"/>
|
|
167
|
+
<path fill="currentColor" d="m7.74 11.93-3.59-1.92v-3.8l3.6 2.02zm.52 0 3.59-1.92v-3.8l-3.6 2.02zM4.4 5.77 8 3.85l3.6 1.93L8 7.8z" class="fg"/>
|
|
168
|
+
</symbol>`,lp=`<symbol id="file-tree-builtin-yml" viewBox="0 0 16 16">
|
|
169
|
+
<path fill="currentColor" d="M7.5 2A1.5 1.5 0 0 1 9 3.5v3A1.5 1.5 0 0 1 7.5 8h-2v2A1.5 1.5 0 0 0 7 11.5v-1A1.5 1.5 0 0 1 8.5 9h5a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-5A1.5 1.5 0 0 1 7 13.5v-1A2.5 2.5 0 0 1 4.5 10V8h-2A1.5 1.5 0 0 1 1 6.5v-3A1.5 1.5 0 0 1 2.5 2zm1 8a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zm-6-7a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5z"/>
|
|
170
|
+
</symbol>`,up=`<symbol id="file-tree-builtin-zig" viewBox="0 0 16 16">
|
|
171
|
+
<path fill="currentColor" d="m14.73 1.5-7.29 8.82h4.17l-1.73 2.04H5.76L1.27 14.5l7.3-8.91H4.39l1.73-2.05h4.12z"/>
|
|
172
|
+
<path fill="currentColor" d="M5.21 3.54 3.56 5.6h-.55v4.73h.83L2.1 12.36H1V3.54zm9.79 0v8.82h-4.3l1.74-2.04h.55V5.68h-.83l1.74-2.14z"/>
|
|
173
|
+
</symbol>`,dp=[hf,bf,Sf,Cf,wf,Tf,Of,kf,Af,Mf,Nf,Pf,Ff,If,Lf,Uf,Gf,Kf,Qf,$f,np,rp,`<symbol id="file-tree-builtin-zip" viewBox="0 0 16 16">
|
|
174
|
+
<path fill="currentColor" d="M4.585 2a2 2 0 0 1 1.028.285l1.788 1.072a1 1 0 0 0 .514.143H12A2 2 0 0 1 13.935 5H0V4a2 2 0 0 1 2-2z" class="bg" opacity=".5"/>
|
|
175
|
+
<path fill="currentColor" fill-rule="evenodd" d="M14 12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-1.25h1v-1H0V6h14zM9.9 8.25c-.883 0-1.9.5-1.9.5H7v1h1v1s1.017.5 1.9.5c.884 0 1.6-.672 1.6-1.5s-.716-1.5-1.6-1.5M2 9.75v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1zm-5-1v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1z" class="fg" clip-rule="evenodd"/>
|
|
176
|
+
</symbol>`],fp=[pf,mf,gf,_f,vf,yf,xf,Ef,Df,jf,Rf,zf,Bf,Vf,Hf,Wf,qf,Jf,Yf,Xf,Zf,ep,tp,ip,ap,op,sp,cp,lp,up];function pp(e,t){return t.length===0?e:e.replace(`</svg>`,`\n ${t.join(`
|
|
177
|
+
`)}\n</svg>`)}var mp=pp(ff,dp),hp={minimal:ff,standard:mp,complete:pp(mp,fp)},gp={".babelrc":`babel`,".babelrc.json":`babel`,".bash_profile":`bash`,".bashrc":`bash`,".browserslistrc":`browserslist`,".dockerignore":`docker`,".eslintignore":`eslint`,".eslintrc":`eslint`,".eslintrc.cjs":`eslint`,".eslintrc.js":`eslint`,".eslintrc.json":`eslint`,".eslintrc.yaml":`eslint`,".eslintrc.yml":`eslint`,".gitattributes":`git`,".gitignore":`git`,".gitkeep":`git`,".gitmodules":`git`,".oxlintrc.json":`oxc`,".postcssrc":`postcss`,".postcssrc.json":`postcss`,".postcssrc.yaml":`postcss`,".postcssrc.yml":`postcss`,".prettierignore":`prettier`,".prettierrc":`prettier`,".prettierrc.cjs":`prettier`,".prettierrc.js":`prettier`,".prettierrc.json":`prettier`,".prettierrc.mjs":`prettier`,".prettierrc.toml":`prettier`,".prettierrc.yaml":`prettier`,".prettierrc.yml":`prettier`,".stylelintignore":`stylelint`,".stylelintrc":`stylelint`,".stylelintrc.cjs":`stylelint`,".stylelintrc.js":`stylelint`,".stylelintrc.json":`stylelint`,".stylelintrc.mjs":`stylelint`,".stylelintrc.yaml":`stylelint`,".stylelintrc.yml":`stylelint`,".terraform.lock.hcl":`terraform`,".zprofile":`bash`,".zshenv":`bash`,".zshrc":`bash`,"babel.config.cjs":`babel`,"babel.config.js":`babel`,"babel.config.json":`babel`,"babel.config.mjs":`babel`,"biome.json":`biome`,"biome.jsonc":`biome`,"bootstrap.bundle.js":`bootstrap`,"bootstrap.bundle.min.js":`bootstrap`,"bootstrap.css":`bootstrap`,"bootstrap.js":`bootstrap`,"bootstrap.min.css":`bootstrap`,"bootstrap.min.js":`bootstrap`,"bun.lock":`bun`,"bun.lockb":`bun`,"bunfig.toml":`bun`,"claude.md":`claude`,"compose.yaml":`docker`,"compose.yml":`docker`,"docker-compose.override.yml":`docker`,"docker-compose.yaml":`docker`,"docker-compose.yml":`docker`,dockerfile:`docker`,"eslint.config.cjs":`eslint`,"eslint.config.js":`eslint`,"eslint.config.mjs":`eslint`,"eslint.config.mts":`eslint`,"eslint.config.ts":`eslint`,gemfile:`ruby`,"next.config.js":`nextjs`,"next.config.mjs":`nextjs`,"next.config.mts":`nextjs`,"next.config.ts":`nextjs`,"postcss.config.cjs":`postcss`,"postcss.config.js":`postcss`,"postcss.config.mjs":`postcss`,"postcss.config.ts":`postcss`,"prettier.config.cjs":`prettier`,"prettier.config.js":`prettier`,"prettier.config.mjs":`prettier`,rakefile:`ruby`,"readme.md":`markdown`,"stylelint.config.cjs":`stylelint`,"stylelint.config.js":`stylelint`,"stylelint.config.mjs":`stylelint`,"svgo.config.cjs":`svgo`,"svgo.config.js":`svgo`,"svgo.config.mjs":`svgo`,"svgo.config.ts":`svgo`,"tailwind.config.cjs":`tailwind`,"tailwind.config.js":`tailwind`,"tailwind.config.mjs":`tailwind`,"tailwind.config.ts":`tailwind`,"vite.config.js":`vite`,"vite.config.mjs":`vite`,"vite.config.mts":`vite`,"vite.config.ts":`vite`,"webpack.config.babel.js":`webpack`,"webpack.config.cjs":`webpack`,"webpack.config.js":`webpack`,"webpack.config.mjs":`webpack`,"webpack.config.ts":`webpack`},_p={"7z":`zip`,astro:`astro`,AUTHORS:`text`,avif:`image`,bash:`bash`,bmp:`image`,bz2:`zip`,c:`c`,cc:`cpp`,cfg:`text`,CHANGELOG:`text`,cjs:`javascript`,"code-workspace":`vscode`,conf:`text`,CONTRIBUTORS:`text`,cpp:`cpp`,csh:`bash`,css:`css`,csv:`table`,cts:`typescript`,cxx:`cpp`,db:`database`,editorconfig:`text`,env:`text`,"env.development":`text`,"env.local":`text`,"env.production":`text`,eot:`font`,erb:`ruby`,fish:`bash`,gemspec:`ruby`,gif:`image`,go:`go`,gql:`graphql`,graphql:`graphql`,gz:`zip`,h:`c`,hh:`cpp`,hpp:`cpp`,htm:`html`,html:`html`,hxx:`cpp`,icns:`image`,ico:`image`,ini:`text`,inl:`cpp`,jar:`zip`,jpeg:`image`,jpg:`image`,js:`javascript`,json:`json`,json5:`json`,jsonc:`json`,jsonl:`json`,jsx:`javascript`,ksh:`bash`,less:`css`,LICENSE:`text`,log:`text`,markdown:`markdown`,mcp:`mcp`,md:`markdown`,mdx:`markdown`,"mdx.tsx":`markdown`,mjs:`javascript`,mm:`cpp`,mts:`typescript`,ods:`table`,otf:`font`,png:`image`,postcss:`css`,py:`python`,pyi:`python`,pyw:`python`,pyx:`python`,rake:`ruby`,rar:`zip`,rb:`ruby`,rs:`rust`,rst:`text`,rtf:`text`,sass:`css`,scss:`css`,sh:`bash`,sql:`database`,sqlite:`database`,sqlite3:`database`,styl:`css`,svelte:`svelte`,svg:`svg`,swift:`swift`,tar:`zip`,tf:`terraform`,tfstate:`terraform`,tfvars:`terraform`,tgz:`zip`,tif:`image`,tiff:`image`,ts:`typescript`,tsv:`table`,tsx:`typescript`,ttf:`font`,txt:`text`,vue:`vue`,war:`zip`,wasm:`wasm`,wast:`wasm`,wat:`wasm`,webp:`image`,woff:`font`,woff2:`font`,xhtml:`html`,xls:`table`,xlsx:`table`,xz:`zip`,yaml:`yml`,yml:`yml`,zig:`zig`,zip:`zip`,zsh:`bash`},vp={jsx:`react`,sass:`sass`,scss:`sass`,tsx:`react`},yp=new Set([`bash`,`c`,`cpp`,`css`,`database`,`default`,`font`,`git`,`go`,`html`,`image`,`javascript`,`json`,`markdown`,`mcp`,`python`,`ruby`,`rust`,`swift`,`table`,`text`,`typescript`,`zip`]),bp=new Set([`complete`]);function xp(e){return hp[e===`none`?`minimal`:e]}function Sp(e){return`file-tree-builtin-${e}`}function Cp(e){return e!==`none`&&bp.has(e)}function wp(e,t,n){if(e===`minimal`||e===`none`)return;let r=e===`complete`,i=gp[t.toLowerCase()];if(i!=null&&(r||yp.has(i)))return i;for(let e of n){if(r){let t=vp[e];if(t!=null)return t}let t=_p[e];if(t!=null&&(r||yp.has(t)))return t}return`default`}function Tp(e){return e.spriteSheet!=null||e.remap!=null||e.byFileName!=null||e.byFileExtension!=null||e.byFileNameContains!=null}function Ep(e){return e==null?{set:`complete`,colored:!0}:typeof e==`string`?{set:e,colored:!0}:{...e,set:e.set??(Tp(e)?`none`:`complete`),colored:e.colored??!0}}var Dp={compact:{itemHeight:24,factor:.8},default:{itemHeight:30,factor:1},relaxed:{itemHeight:36,factor:1.2}};function Op(e,t){if(typeof e==`number`)return{itemHeight:t??Dp.default.itemHeight,factor:e};let n=Dp[e??`default`];return{itemHeight:t??n.itemHeight,factor:n.factor}}var kp=Dp.default.itemHeight,Ap=`@layer base {
|
|
178
|
+
:host {
|
|
179
|
+
--trees-accent: var(--trees-accent-override, #009fff);
|
|
180
|
+
--trees-fg: var(--trees-fg-override, var(--trees-theme-sidebar-fg, light-dark(#6c6c71, #adadb1)));
|
|
181
|
+
--trees-fg-muted: var(--trees-fg-muted-override, var(--trees-theme-sidebar-header-fg, light-dark(#84848a, #84848a)));
|
|
182
|
+
--trees-bg: var(--trees-bg-override, var(--trees-theme-sidebar-bg, light-dark(#f8f8f8, #141415)));
|
|
183
|
+
--trees-bg-muted: var(--trees-bg-muted-override, var(--trees-theme-list-hover-bg, light-dark(color-mix(in lab,
|
|
184
|
+
var(--trees-accent) var(--trees-bg-alpha-light, 8%),
|
|
185
|
+
var(--trees-bg)), color-mix(in lab,
|
|
186
|
+
var(--trees-accent) var(--trees-bg-alpha-dark, 10%),
|
|
187
|
+
var(--trees-bg)))));
|
|
188
|
+
--trees-input-bg: var(--trees-input-bg-override, light-dark(#f8f8f8, #070707));
|
|
189
|
+
--trees-added-light: #16a994;
|
|
190
|
+
--trees-added-dark: #00cab1;
|
|
191
|
+
--trees-ignored-light: #adadb1;
|
|
192
|
+
--trees-ignored-dark: #4a4a4e;
|
|
193
|
+
--trees-modified-light: #1ca1c7;
|
|
194
|
+
--trees-modified-dark: #08c0ef;
|
|
195
|
+
--trees-renamed-light: #d5a910;
|
|
196
|
+
--trees-renamed-dark: #ffd452;
|
|
197
|
+
--trees-untracked-light: #16a994;
|
|
198
|
+
--trees-untracked-dark: #00cab1;
|
|
199
|
+
--trees-deleted-light: #ff2e3f;
|
|
200
|
+
--trees-deleted-dark: #ff6762;
|
|
201
|
+
--trees-border-color: var(--trees-border-color-override, var(--trees-theme-sidebar-border, light-dark(#eeeeef, #070707)));
|
|
202
|
+
--trees-indent-guide-bg: var(--trees-indent-guide-bg-override, color-mix(in lab, var(--trees-fg-muted) 25%, transparent));
|
|
203
|
+
--trees-density: var(--trees-density-override, 1);
|
|
204
|
+
--trees-border-radius: var(--trees-border-radius-override, calc(6px * var(--trees-density)));
|
|
205
|
+
--trees-font-family: var(--trees-font-family-override, system-ui);
|
|
206
|
+
--trees-font-size: var(--trees-font-size-override, 13px);
|
|
207
|
+
--trees-font-weight-regular: var(--trees-font-weight-regular-override, 400);
|
|
208
|
+
--trees-font-weight-semibold: var(--trees-font-weight-semibold-override, 600);
|
|
209
|
+
--trees-focus-ring-color: var(--trees-focus-ring-color-override, var(--trees-theme-focus-ring, var(--trees-accent)));
|
|
210
|
+
--trees-focus-ring-width: var(--trees-focus-ring-width-override, 1px);
|
|
211
|
+
--trees-focus-ring-offset: var(--trees-focus-ring-offset-override, -1px);
|
|
212
|
+
--trees-search-fg: var(--trees-search-fg-override, var(--trees-theme-input-fg, var(--trees-fg)));
|
|
213
|
+
--trees-search-font-weight: var(--trees-search-font-weight-override, 600);
|
|
214
|
+
--trees-search-bg: var(--trees-search-bg-override, var(--trees-theme-input-bg, var(--trees-input-bg)));
|
|
215
|
+
--trees-scrollbar-thumb: var(--trees-scrollbar-thumb-override, var(--trees-theme-scrollbar-thumb, color-mix(in lab, var(--trees-fg) 25%, var(--trees-bg))));
|
|
216
|
+
--trees-selected-fg: var(--trees-selected-fg-override, var(--trees-theme-list-active-selection-fg, var(--trees-fg)));
|
|
217
|
+
--trees-selected-bg: var(--trees-selected-bg-override, var(--trees-theme-list-active-selection-bg, light-dark(color-mix(in lab, var(--trees-accent) 12%, var(--trees-bg)), color-mix(in lab, var(--trees-accent) 15%, var(--trees-bg)))));
|
|
218
|
+
--trees-selected-focused-border-color: var(--trees-selected-focused-border-color-override, var(--trees-theme-focus-ring, var(--trees-accent)));
|
|
219
|
+
--trees-status-added: var(--trees-status-added-override, var(--trees-theme-git-added-fg, light-dark(var(--trees-added-light), var(--trees-added-dark))));
|
|
220
|
+
--trees-status-ignored: var(--trees-status-ignored-override, var(--trees-theme-git-ignored-fg, light-dark(var(--trees-ignored-light), var(--trees-ignored-dark))));
|
|
221
|
+
--trees-status-modified: var(--trees-status-modified-override, var(--trees-theme-git-modified-fg, light-dark(var(--trees-modified-light), var(--trees-modified-dark))));
|
|
222
|
+
--trees-status-renamed: var(--trees-status-renamed-override, var(--trees-theme-git-renamed-fg, light-dark(var(--trees-renamed-light), var(--trees-renamed-dark))));
|
|
223
|
+
--trees-status-untracked: var(--trees-status-untracked-override, var(--trees-theme-git-untracked-fg, light-dark(var(--trees-untracked-light), var(--trees-untracked-dark))));
|
|
224
|
+
--trees-status-deleted: var(--trees-status-deleted-override, var(--trees-theme-git-deleted-fg, light-dark(var(--trees-deleted-light), var(--trees-deleted-dark))));
|
|
225
|
+
--trees-git-modified-color: var(--trees-git-modified-color-override, var(--trees-status-modified));
|
|
226
|
+
--trees-git-added-color: var(--trees-git-added-color-override, var(--trees-status-added));
|
|
227
|
+
--trees-git-ignored-color: var(--trees-git-ignored-color-override, var(--trees-status-ignored));
|
|
228
|
+
--trees-git-deleted-color: var(--trees-git-deleted-color-override, var(--trees-status-deleted));
|
|
229
|
+
--trees-git-renamed-color: var(--trees-git-renamed-color-override, var(--trees-status-renamed));
|
|
230
|
+
--trees-git-untracked-color: var(--trees-git-untracked-color-override, var(--trees-status-untracked));
|
|
231
|
+
--trees-icon-gray: light-dark(#84848a, #adadb1);
|
|
232
|
+
--trees-icon-red: light-dark(#d52c36, #ff6762);
|
|
233
|
+
--trees-icon-vermilion: light-dark(#ff8c5b, #d5512f);
|
|
234
|
+
--trees-icon-orange: light-dark(#d47628, #ffa359);
|
|
235
|
+
--trees-icon-yellow: light-dark(#d5a910, #ffd452);
|
|
236
|
+
--trees-icon-green: light-dark(#199f43, #5ecc71);
|
|
237
|
+
--trees-icon-teal: light-dark(#17a5af, #64d1db);
|
|
238
|
+
--trees-icon-cyan: light-dark(#1ca1c7, #68cdf2);
|
|
239
|
+
--trees-icon-blue: light-dark(#1a85d4, #69b1ff);
|
|
240
|
+
--trees-icon-indigo: light-dark(#693acf, #9d6afb);
|
|
241
|
+
--trees-icon-purple: light-dark(#a631be, #d568ea);
|
|
242
|
+
--trees-icon-pink: light-dark(#d32a61, #ff678d);
|
|
243
|
+
--trees-icon-mauve: light-dark(#594c5b, #79697b);
|
|
244
|
+
--trees-file-icon-color-default: var(--trees-file-icon-color, var(--trees-icon-gray));
|
|
245
|
+
--trees-file-icon-color-astro: var(--trees-file-icon-color, var(--trees-icon-purple));
|
|
246
|
+
--trees-file-icon-color-babel: var(--trees-file-icon-color, var(--trees-icon-yellow));
|
|
247
|
+
--trees-file-icon-color-bash: var(--trees-file-icon-color, var(--trees-icon-green));
|
|
248
|
+
--trees-file-icon-color-biome: var(--trees-file-icon-color, var(--trees-icon-blue));
|
|
249
|
+
--trees-file-icon-color-bootstrap: var(--trees-file-icon-color, var(--trees-icon-indigo));
|
|
250
|
+
--trees-file-icon-color-browserslist: var(--trees-file-icon-color, var(--trees-icon-yellow));
|
|
251
|
+
--trees-file-icon-color-bun: var(--trees-file-icon-color, var(--trees-icon-mauve));
|
|
252
|
+
--trees-file-icon-color-c: var(--trees-file-icon-color, var(--trees-icon-blue));
|
|
253
|
+
--trees-file-icon-color-cpp: var(--trees-file-icon-color, var(--trees-icon-blue));
|
|
254
|
+
--trees-file-icon-color-claude: var(--trees-file-icon-color, var(--trees-icon-orange));
|
|
255
|
+
--trees-file-icon-color-css: var(--trees-file-icon-color, var(--trees-icon-indigo));
|
|
256
|
+
--trees-file-icon-color-database: var(--trees-file-icon-color, var(--trees-icon-purple));
|
|
257
|
+
--trees-file-icon-color-docker: var(--trees-file-icon-color, var(--trees-icon-blue));
|
|
258
|
+
--trees-file-icon-color-eslint: var(--trees-file-icon-color, var(--trees-icon-indigo));
|
|
259
|
+
--trees-file-icon-color-git: var(--trees-file-icon-vermilion, var(--trees-icon-vermilion));
|
|
260
|
+
--trees-file-icon-color-go: var(--trees-file-icon-color, var(--trees-icon-cyan));
|
|
261
|
+
--trees-file-icon-color-graphql: var(--trees-file-icon-color, var(--trees-icon-pink));
|
|
262
|
+
--trees-file-icon-color-html: var(--trees-file-icon-color, var(--trees-icon-orange));
|
|
263
|
+
--trees-file-icon-color-image: var(--trees-file-icon-color, var(--trees-icon-pink));
|
|
264
|
+
--trees-file-icon-color-javascript: var(--trees-file-icon-color, var(--trees-icon-yellow));
|
|
265
|
+
--trees-file-icon-color-json: var(--trees-file-icon-color, var(--trees-icon-orange));
|
|
266
|
+
--trees-file-icon-color-markdown: var(--trees-file-icon-color, var(--trees-icon-green));
|
|
267
|
+
--trees-file-icon-color-mcp: var(--trees-file-icon-color, var(--trees-icon-teal));
|
|
268
|
+
--trees-file-icon-color-npm: var(--trees-file-icon-color, var(--trees-icon-red));
|
|
269
|
+
--trees-file-icon-color-oxc: var(--trees-file-icon-cyan, var(--trees-icon-cyan));
|
|
270
|
+
--trees-file-icon-color-postcss: var(--trees-file-icon-color, var(--trees-icon-red));
|
|
271
|
+
--trees-file-icon-color-prettier: var(--trees-file-icon-color, var(--trees-icon-teal));
|
|
272
|
+
--trees-file-icon-color-python: var(--trees-file-icon-color, var(--trees-icon-blue));
|
|
273
|
+
--trees-file-icon-color-react: var(--trees-file-icon-color, var(--trees-icon-cyan));
|
|
274
|
+
--trees-file-icon-color-ruby: var(--trees-file-icon-color, var(--trees-icon-red));
|
|
275
|
+
--trees-file-icon-color-rust: var(--trees-file-icon-color, var(--trees-icon-orange));
|
|
276
|
+
--trees-file-icon-color-sass: var(--trees-file-icon-color, var(--trees-icon-pink));
|
|
277
|
+
--trees-file-icon-color-svg: var(--trees-file-icon-color, var(--trees-icon-orange));
|
|
278
|
+
--trees-file-icon-color-svelte: var(--trees-file-icon-color, var(--trees-icon-red));
|
|
279
|
+
--trees-file-icon-color-svgo: var(--trees-file-icon-color, var(--trees-icon-green));
|
|
280
|
+
--trees-file-icon-color-swift: var(--trees-file-icon-color, var(--trees-icon-orange));
|
|
281
|
+
--trees-file-icon-color-table: var(--trees-file-icon-color, var(--trees-icon-teal));
|
|
282
|
+
--trees-file-icon-color-text: var(--trees-file-icon-color, var(--trees-icon-gray));
|
|
283
|
+
--trees-file-icon-color-tailwind: var(--trees-file-icon-color, var(--trees-icon-cyan));
|
|
284
|
+
--trees-file-icon-color-terraform: var(--trees-file-icon-color, var(--trees-icon-indigo));
|
|
285
|
+
--trees-file-icon-color-typescript: var(--trees-file-icon-color, var(--trees-icon-blue));
|
|
286
|
+
--trees-file-icon-color-vite: var(--trees-file-icon-color, var(--trees-icon-purple));
|
|
287
|
+
--trees-file-icon-color-vscode: var(--trees-file-icon-color, var(--trees-icon-blue));
|
|
288
|
+
--trees-file-icon-color-vue: var(--trees-file-icon-color, var(--trees-icon-green));
|
|
289
|
+
--trees-file-icon-color-wasm: var(--trees-file-icon-color, var(--trees-icon-indigo));
|
|
290
|
+
--trees-file-icon-color-webpack: var(--trees-file-icon-color, var(--trees-icon-blue));
|
|
291
|
+
--trees-file-icon-color-yml: var(--trees-file-icon-color, var(--trees-icon-red));
|
|
292
|
+
--trees-file-icon-color-zig: var(--trees-file-icon-color, var(--trees-icon-orange));
|
|
293
|
+
--trees-file-icon-color-zip: var(--trees-file-icon-color, var(--trees-icon-orange));
|
|
294
|
+
--trees-level-gap: var(--trees-level-gap-override, calc(8px * var(--trees-density)));
|
|
295
|
+
--trees-item-padding-x: var(--trees-item-padding-x-override, calc(8px * var(--trees-density)));
|
|
296
|
+
--trees-item-margin-x: var(--trees-item-margin-x-override, calc(2px * var(--trees-density)));
|
|
297
|
+
--trees-item-row-gap: var(--trees-item-row-gap-override, calc(6px * var(--trees-density)));
|
|
298
|
+
--trees-icon-width: var(--trees-icon-width-override, 16px);
|
|
299
|
+
--trees-icon-nudge: var(--trees-icon-nudge-override, calc(1px * var(--trees-density)));
|
|
300
|
+
--trees-row-height: var(--trees-item-height, 30px);
|
|
301
|
+
--trees-git-lane-width: var(--trees-git-lane-width-override, 12px);
|
|
302
|
+
--trees-action-lane-width: var(--trees-action-lane-width-override, calc(var(--trees-icon-width) + 2px));
|
|
303
|
+
--trees-context-menu-trigger-inline-offset: calc(var(--trees-padding-inline) + var(--trees-item-padding-x) -
|
|
304
|
+
var(--trees-focus-ring-width));
|
|
305
|
+
--trees-scrollbar-gutter: var(--trees-scrollbar-gutter-override, 6px);
|
|
306
|
+
--trees-padding-inline: var(--trees-padding-inline-override, 16px);
|
|
307
|
+
color-scheme: light dark;
|
|
308
|
+
font-size: var(--trees-font-size);
|
|
309
|
+
color: var(--trees-fg);
|
|
310
|
+
background-color: var(--trees-bg);
|
|
311
|
+
--truncate-marker-background-color: var(--trees-bg);
|
|
312
|
+
--truncate-marker-background-overlay-color: transparent;
|
|
313
|
+
font-family: var(--trees-font-family);
|
|
314
|
+
font-weight: var(--trees-font-weight-regular);
|
|
315
|
+
flex-direction: column;
|
|
316
|
+
display: flex;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
:host([data-file-tree-virtualized="true"]) {
|
|
320
|
+
height: 100%;
|
|
321
|
+
overflow: hidden;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
[data-file-tree-virtualized-wrapper="true"], [data-file-tree-virtualized-root="true"] {
|
|
325
|
+
flex-direction: column;
|
|
326
|
+
height: 100%;
|
|
327
|
+
display: flex;
|
|
328
|
+
overflow: hidden;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
[data-file-tree-virtualized-scroll="true"], [data-file-tree-scrollbar-measure="true"] {
|
|
332
|
+
--trees-scrollbar-thumb-current: transparent;
|
|
333
|
+
scrollbar-gutter: stable;
|
|
334
|
+
overflow-y: auto;
|
|
335
|
+
|
|
336
|
+
&:hover {
|
|
337
|
+
--trees-scrollbar-thumb-current: var(--trees-scrollbar-thumb);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
&::-webkit-scrollbar {
|
|
341
|
+
width: var(--trees-scrollbar-gutter);
|
|
342
|
+
height: var(--trees-scrollbar-gutter);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
&::-webkit-scrollbar-track {
|
|
346
|
+
background: none;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
&::-webkit-scrollbar-thumb {
|
|
350
|
+
background-color: var(--trees-scrollbar-thumb-current);
|
|
351
|
+
border-radius: calc(var(--trees-scrollbar-gutter) / 2);
|
|
352
|
+
background-clip: content-box;
|
|
353
|
+
border: 1px solid #0000;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
&::-webkit-scrollbar-corner {
|
|
357
|
+
background-color: #0000;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
[data-file-tree-scrollbar-measure="true"] {
|
|
362
|
+
visibility: hidden;
|
|
363
|
+
pointer-events: none;
|
|
364
|
+
width: 100px;
|
|
365
|
+
height: 100px;
|
|
366
|
+
position: absolute;
|
|
367
|
+
top: 0;
|
|
368
|
+
left: 0;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
@supports ((-moz-appearance: none)) {
|
|
372
|
+
[data-file-tree-virtualized-scroll="true"], [data-file-tree-scrollbar-measure="true"] {
|
|
373
|
+
scrollbar-width: thin;
|
|
374
|
+
scrollbar-color: var(--trees-scrollbar-thumb-current) transparent;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
[data-file-tree-virtualized-scroll="true"] {
|
|
379
|
+
min-height: 0;
|
|
380
|
+
padding-inline: max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x)),
|
|
381
|
+
0px)
|
|
382
|
+
/* NOTE(amadeus): We can assume that all Webkit based browser gutters
|
|
383
|
+
* will align to the value of '--trees-scrollbar-gutter', however if not, then
|
|
384
|
+
* \`--trees-scrollbar-gutter-measured\` should correct it. Mostly we are
|
|
385
|
+
* hoping to avoid SSR alignment jumps if possible. In non-SSR'd environments
|
|
386
|
+
* \`--trees-scrollbar-gutter-measured\` should always be immediately available.
|
|
387
|
+
*/
|
|
388
|
+
max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x) -
|
|
389
|
+
var(--trees-scrollbar-gutter-measured, var(--trees-scrollbar-gutter))),
|
|
390
|
+
0px);
|
|
391
|
+
flex: 1 1 0;
|
|
392
|
+
position: relative;
|
|
393
|
+
overflow-y: auto;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
@supports ((-moz-appearance: none)) {
|
|
397
|
+
[data-file-tree-virtualized-scroll="true"] {
|
|
398
|
+
padding-inline: max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x)),
|
|
399
|
+
0px)
|
|
400
|
+
/* NOTE(amadeus): However on Firefox it can vary a little bit, but most
|
|
401
|
+
* likely the majority of cases will default to a 0px width scrollbar lets
|
|
402
|
+
* inherit that first to avoid SSR jumps. In non-SSR'd environments
|
|
403
|
+
* \`--trees-scrollbar-gutter-measured\` should always be immediately available.
|
|
404
|
+
*/
|
|
405
|
+
max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x) -
|
|
406
|
+
var(--trees-scrollbar-gutter-measured, 0px)),
|
|
407
|
+
0px);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
[data-file-tree-sticky-overlay="true"] {
|
|
412
|
+
z-index: 4;
|
|
413
|
+
pointer-events: none;
|
|
414
|
+
height: 0;
|
|
415
|
+
position: sticky;
|
|
416
|
+
top: 0;
|
|
417
|
+
overflow: visible;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
[data-file-tree-virtualized-root="true"][data-scroll-at-top="true"]:not([data-overlay-reveal]) [data-file-tree-sticky-overlay="true"] {
|
|
421
|
+
visibility: hidden;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
[data-file-tree-sticky-overlay-content="true"] {
|
|
425
|
+
background-color: var(--trees-bg);
|
|
426
|
+
pointer-events: none;
|
|
427
|
+
position: relative;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
[data-file-tree-virtualized-list="true"] {
|
|
431
|
+
background-color: var(--trees-bg);
|
|
432
|
+
overflow-anchor: none;
|
|
433
|
+
width: 100%;
|
|
434
|
+
min-height: 100%;
|
|
435
|
+
position: relative;
|
|
436
|
+
|
|
437
|
+
&[data-is-scrolling] {
|
|
438
|
+
pointer-events: none;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
[data-file-tree-virtualized-sticky-offset="true"] {
|
|
443
|
+
contain: layout size;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
[data-file-tree-virtualized-sticky="true"] {
|
|
447
|
+
isolation: isolate;
|
|
448
|
+
will-change: transform;
|
|
449
|
+
flex-direction: column;
|
|
450
|
+
width: 100%;
|
|
451
|
+
display: flex;
|
|
452
|
+
position: sticky;
|
|
453
|
+
top: 0;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
[data-file-tree-search-container] {
|
|
457
|
+
padding: 0;
|
|
458
|
+
padding-inline: var(--trees-padding-inline);
|
|
459
|
+
margin-bottom: var(--trees-item-row-gap);
|
|
460
|
+
display: flex;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
[data-file-tree-search-input] {
|
|
464
|
+
--trees-focus-ring-width: 2px;
|
|
465
|
+
font-family: var(--trees-font-family);
|
|
466
|
+
font-size: var(--trees-font-size);
|
|
467
|
+
height: var(--trees-row-height);
|
|
468
|
+
padding-inline: var(--trees-item-padding-x);
|
|
469
|
+
line-height: var(--trees-row-height);
|
|
470
|
+
color: var(--trees-search-fg);
|
|
471
|
+
background-color: var(--trees-search-bg);
|
|
472
|
+
border: 1px solid var(--trees-border-color);
|
|
473
|
+
border-radius: var(--trees-border-radius);
|
|
474
|
+
outline: none;
|
|
475
|
+
flex: 1;
|
|
476
|
+
margin-block: 1px;
|
|
477
|
+
|
|
478
|
+
&::placeholder {
|
|
479
|
+
color: color-mix(in lab,
|
|
480
|
+
var(--trees-search-fg) 65%,
|
|
481
|
+
var(--trees-search-bg));
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
&:focus-visible, &[data-file-tree-search-input-fake-focus="true"] {
|
|
485
|
+
outline: var(--trees-focus-ring-width) solid var(--trees-focus-ring-color);
|
|
486
|
+
outline-offset: var(--trees-focus-ring-offset);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
[role="tree"] {
|
|
491
|
+
gap: var(--trees-gap-override, 0);
|
|
492
|
+
flex-direction: column;
|
|
493
|
+
display: flex;
|
|
494
|
+
position: relative;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
[data-type="item"] {
|
|
498
|
+
color: inherit;
|
|
499
|
+
font-family: var(--trees-font-family);
|
|
500
|
+
font-size: var(--trees-font-size);
|
|
501
|
+
text-align: start;
|
|
502
|
+
background-color: var(--trees-bg);
|
|
503
|
+
padding: 0 var(--trees-item-padding-x);
|
|
504
|
+
margin: 0 var(--trees-item-margin-x);
|
|
505
|
+
cursor: pointer;
|
|
506
|
+
user-select: none;
|
|
507
|
+
-webkit-touch-callout: none;
|
|
508
|
+
touch-action: manipulation;
|
|
509
|
+
flex: 0 0 var(--trees-row-height);
|
|
510
|
+
height: var(--trees-row-height);
|
|
511
|
+
line-height: var(--trees-row-height);
|
|
512
|
+
align-items: center;
|
|
513
|
+
gap: var(--trees-item-row-gap);
|
|
514
|
+
border-radius: var(--trees-border-radius);
|
|
515
|
+
--truncate-marker-background-color: var(--trees-bg);
|
|
516
|
+
--truncate-marker-background-overlay-color: transparent;
|
|
517
|
+
--truncate-marker-block-inset: 0px;
|
|
518
|
+
border: none;
|
|
519
|
+
outline: none;
|
|
520
|
+
display: flex;
|
|
521
|
+
position: relative;
|
|
522
|
+
|
|
523
|
+
&:hover, &[data-item-context-hover="true"] {
|
|
524
|
+
background-color: var(--trees-bg-muted);
|
|
525
|
+
--truncate-marker-background-overlay-color: var(--trees-bg-muted);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
&[data-item-focused="true"], &:focus-visible {
|
|
529
|
+
z-index: 2;
|
|
530
|
+
|
|
531
|
+
& [data-item-flattened-subitems] {
|
|
532
|
+
--truncate-marker-block-inset: var(--trees-focus-ring-width);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
&:before {
|
|
536
|
+
content: "";
|
|
537
|
+
border-radius: var(--trees-border-radius);
|
|
538
|
+
outline: var(--trees-focus-ring-width) solid
|
|
539
|
+
var(--trees-focus-ring-color);
|
|
540
|
+
outline-offset: var(--trees-focus-ring-offset);
|
|
541
|
+
pointer-events: none;
|
|
542
|
+
display: block;
|
|
543
|
+
position: absolute;
|
|
544
|
+
inset: 0;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
&[data-item-selected="true"]:before {
|
|
548
|
+
outline-color: var(--trees-selected-focused-border-color);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
&[data-item-selected="true"] {
|
|
553
|
+
color: var(--trees-selected-fg);
|
|
554
|
+
background-color: var(--trees-selected-bg);
|
|
555
|
+
--truncate-marker-background-overlay-color: var(--trees-selected-bg);
|
|
556
|
+
z-index: 3;
|
|
557
|
+
|
|
558
|
+
& [data-item-section="icon"] {
|
|
559
|
+
color: var(--trees-selected-fg);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
&[data-item-search-match="true"] {
|
|
564
|
+
font-weight: var(--trees-search-font-weight);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
[data-type="item"][data-file-tree-sticky-row="true"] {
|
|
569
|
+
pointer-events: auto;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
[data-file-tree-virtualized-root="true"][data-is-scrolling] [data-type="item"][data-file-tree-sticky-row="true"] {
|
|
573
|
+
pointer-events: none;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
[data-file-tree-virtualized-root="true"][data-is-scrolling] [data-type="item"][data-file-tree-sticky-row="true"]:hover:not([data-item-selected="true"]), [data-file-tree-virtualized-root="true"][data-is-scrolling] [data-type="item"][data-file-tree-sticky-row="true"][data-item-context-hover="true"]:not([data-item-selected="true"]) {
|
|
577
|
+
background-color: var(--trees-bg);
|
|
578
|
+
--truncate-marker-background-overlay-color: transparent;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
[data-item-selected="true"]:has( + [data-item-selected="true"]) {
|
|
582
|
+
border-bottom-right-radius: 0;
|
|
583
|
+
border-bottom-left-radius: 0;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
[data-item-selected="true"] + [data-item-selected="true"] {
|
|
587
|
+
border-top-left-radius: 0;
|
|
588
|
+
border-top-right-radius: 0;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
[data-item-flattened-subitems] {
|
|
592
|
+
align-items: center;
|
|
593
|
+
gap: 2px;
|
|
594
|
+
display: inline-flex;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
[data-item-flattened-subitem]:hover, [data-item-flattened-subitem-drag-target="true"] {
|
|
598
|
+
text-decoration: underline;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
[data-item-section="icon"] {
|
|
602
|
+
color: var(--trees-fg-muted);
|
|
603
|
+
fill: currentColor;
|
|
604
|
+
width: var(--trees-icon-width);
|
|
605
|
+
flex-shrink: 0;
|
|
606
|
+
justify-content: center;
|
|
607
|
+
align-items: center;
|
|
608
|
+
display: flex;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
:where([data-item-section="icon"] > [data-icon-token]) {
|
|
612
|
+
color: var(--trees-fg-muted);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
[data-file-tree-colored-icons="true"] {
|
|
616
|
+
& [data-icon-token="astro"] {
|
|
617
|
+
color: var(--trees-file-icon-color-astro);
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
& [data-icon-token="babel"] {
|
|
621
|
+
color: var(--trees-file-icon-color-babel);
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
& [data-icon-token="bash"] {
|
|
625
|
+
color: var(--trees-file-icon-color-bash);
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
& [data-icon-token="biome"] {
|
|
629
|
+
color: var(--trees-file-icon-color-biome);
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
& [data-icon-token="bootstrap"] {
|
|
633
|
+
color: var(--trees-file-icon-color-bootstrap);
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
& [data-icon-token="browserslist"] {
|
|
637
|
+
color: var(--trees-file-icon-color-browserslist);
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
& [data-icon-token="bun"] {
|
|
641
|
+
color: var(--trees-file-icon-color-bun);
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
& [data-icon-token="c"] {
|
|
645
|
+
color: var(--trees-file-icon-color-c);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
& [data-icon-token="cpp"] {
|
|
649
|
+
color: var(--trees-file-icon-color-cpp);
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
& [data-icon-token="claude"] {
|
|
653
|
+
color: var(--trees-file-icon-color-claude);
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
& [data-icon-token="css"] {
|
|
657
|
+
color: var(--trees-file-icon-color-css);
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
& [data-icon-token="database"] {
|
|
661
|
+
color: var(--trees-file-icon-color-database);
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
& [data-icon-token="default"] {
|
|
665
|
+
color: var(--trees-file-icon-color-default);
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
& [data-icon-token="docker"] {
|
|
669
|
+
color: var(--trees-file-icon-color-docker);
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
& [data-icon-token="eslint"] {
|
|
673
|
+
color: var(--trees-file-icon-color-eslint);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
& [data-icon-token="git"] {
|
|
677
|
+
color: var(--trees-file-icon-color-git);
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
& [data-icon-token="go"] {
|
|
681
|
+
color: var(--trees-file-icon-color-go);
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
& [data-icon-token="graphql"] {
|
|
685
|
+
color: var(--trees-file-icon-color-graphql);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
& [data-icon-token="html"] {
|
|
689
|
+
color: var(--trees-file-icon-color-html);
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
& [data-icon-token="image"] {
|
|
693
|
+
color: var(--trees-file-icon-color-image);
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
& [data-icon-token="javascript"] {
|
|
697
|
+
color: var(--trees-file-icon-color-javascript);
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
& [data-icon-token="json"] {
|
|
701
|
+
color: var(--trees-file-icon-color-json);
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
& [data-icon-token="markdown"] {
|
|
705
|
+
color: var(--trees-file-icon-color-markdown);
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
& [data-icon-token="mcp"] {
|
|
709
|
+
color: var(--trees-file-icon-color-mcp);
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
& [data-icon-token="npm"] {
|
|
713
|
+
color: var(--trees-file-icon-color-npm);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
& [data-icon-token="oxc"] {
|
|
717
|
+
color: var(--trees-file-icon-color-oxc);
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
& [data-icon-token="postcss"] {
|
|
721
|
+
color: var(--trees-file-icon-color-postcss);
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
& [data-icon-token="prettier"] {
|
|
725
|
+
color: var(--trees-file-icon-color-prettier);
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
& [data-icon-token="python"] {
|
|
729
|
+
color: var(--trees-file-icon-color-python);
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
& [data-icon-token="react"] {
|
|
733
|
+
color: var(--trees-file-icon-color-react);
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
& [data-icon-token="ruby"] {
|
|
737
|
+
color: var(--trees-file-icon-color-ruby);
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
& [data-icon-token="rust"] {
|
|
741
|
+
color: var(--trees-file-icon-color-rust);
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
& [data-icon-token="sass"] {
|
|
745
|
+
color: var(--trees-file-icon-color-sass);
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
& [data-icon-token="svg"] {
|
|
749
|
+
color: var(--trees-file-icon-color-svg);
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
& [data-icon-token="svelte"] {
|
|
753
|
+
color: var(--trees-file-icon-color-svelte);
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
& [data-icon-token="svgo"] {
|
|
757
|
+
color: var(--trees-file-icon-color-svgo);
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
& [data-icon-token="swift"] {
|
|
761
|
+
color: var(--trees-file-icon-color-swift);
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
& [data-icon-token="table"] {
|
|
765
|
+
color: var(--trees-file-icon-color-table);
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
& [data-icon-token="text"] {
|
|
769
|
+
color: var(--trees-file-icon-color-text);
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
& [data-icon-token="tailwind"] {
|
|
773
|
+
color: var(--trees-file-icon-color-tailwind);
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
& [data-icon-token="terraform"] {
|
|
777
|
+
color: var(--trees-file-icon-color-terraform);
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
& [data-icon-token="typescript"] {
|
|
781
|
+
color: var(--trees-file-icon-color-typescript);
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
& [data-icon-token="vite"] {
|
|
785
|
+
color: var(--trees-file-icon-color-vite);
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
& [data-icon-token="vscode"] {
|
|
789
|
+
color: var(--trees-file-icon-color-vscode);
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
& [data-icon-token="vue"] {
|
|
793
|
+
color: var(--trees-file-icon-color-vue);
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
& [data-icon-token="wasm"] {
|
|
797
|
+
color: var(--trees-file-icon-color-wasm);
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
& [data-icon-token="webpack"] {
|
|
801
|
+
color: var(--trees-file-icon-color-webpack);
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
& [data-icon-token="yml"] {
|
|
805
|
+
color: var(--trees-file-icon-color-yml);
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
& [data-icon-token="zig"] {
|
|
809
|
+
color: var(--trees-file-icon-color-zig);
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
& [data-icon-token="zip"] {
|
|
813
|
+
color: var(--trees-file-icon-color-zip);
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
[data-icon-name="file-tree-icon-chevron"] {
|
|
818
|
+
&[data-align-capitals="false"] {
|
|
819
|
+
transform: translate(0, var(--trees-icon-nudge));
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
&[data-align-capitals="true"] {
|
|
823
|
+
transform: translate(0);
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
[data-item-section="content"] {
|
|
828
|
+
text-align: start;
|
|
829
|
+
text-overflow: ellipsis;
|
|
830
|
+
flex: 0 auto;
|
|
831
|
+
min-width: 0;
|
|
832
|
+
max-width: 100%;
|
|
833
|
+
overflow: hidden;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
[data-item-section="decoration"] {
|
|
837
|
+
text-align: end;
|
|
838
|
+
min-width: 0;
|
|
839
|
+
color: var(--trees-fg-muted);
|
|
840
|
+
flex: 1 1 0;
|
|
841
|
+
justify-content: flex-end;
|
|
842
|
+
display: flex;
|
|
843
|
+
overflow: hidden;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
[data-item-section="decoration"] > span {
|
|
847
|
+
text-overflow: ellipsis;
|
|
848
|
+
white-space: nowrap;
|
|
849
|
+
justify-content: flex-end;
|
|
850
|
+
align-items: center;
|
|
851
|
+
min-width: 0;
|
|
852
|
+
max-width: 100%;
|
|
853
|
+
display: inline-flex;
|
|
854
|
+
overflow: hidden;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
[data-item-section="git"], [data-item-section="action"] {
|
|
858
|
+
flex: none;
|
|
859
|
+
justify-content: center;
|
|
860
|
+
align-items: center;
|
|
861
|
+
display: flex;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
[data-item-section="git"] {
|
|
865
|
+
width: var(--trees-git-lane-width);
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
[data-item-section="action"] {
|
|
869
|
+
width: var(--trees-action-lane-width);
|
|
870
|
+
color: var(--trees-fg-muted);
|
|
871
|
+
fill: currentColor;
|
|
872
|
+
pointer-events: none;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
[data-item-section="git"] > span, [data-item-section="action"] > span {
|
|
876
|
+
justify-content: center;
|
|
877
|
+
align-items: center;
|
|
878
|
+
width: 100%;
|
|
879
|
+
display: inline-flex;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
[data-item-action-affordance="decorative"] {
|
|
883
|
+
opacity: .85;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
[data-item-rename-input] {
|
|
887
|
+
appearance: none;
|
|
888
|
+
width: 100%;
|
|
889
|
+
min-width: 0;
|
|
890
|
+
height: calc(var(--trees-row-height) - 4px);
|
|
891
|
+
font-family: inherit;
|
|
892
|
+
font-size: inherit;
|
|
893
|
+
color: inherit;
|
|
894
|
+
box-sizing: border-box;
|
|
895
|
+
background-color: #0000;
|
|
896
|
+
border: 0;
|
|
897
|
+
outline: none;
|
|
898
|
+
padding-inline: 6px;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
[data-item-section="content"]:has([data-item-rename-input]) ~ [data-item-section="action"], [data-item-section="content"]:has([data-item-rename-input]) ~ [data-item-section="decoration"] {
|
|
902
|
+
display: none;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
[aria-expanded="false"][data-item-type="folder"] > [data-item-section="icon"] > [data-icon-name="file-tree-icon-chevron"] {
|
|
906
|
+
&[data-align-capitals="true"] {
|
|
907
|
+
transform: rotate(-90deg)
|
|
908
|
+
translate(calc(var(--trees-icon-nudge) / 2),
|
|
909
|
+
calc(var(--trees-icon-nudge) / 2));
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
&[data-align-capitals="false"] {
|
|
913
|
+
transform: rotate(-90deg)
|
|
914
|
+
translate(calc(var(--trees-icon-nudge) / 2 * -1),
|
|
915
|
+
calc(var(--trees-icon-nudge) / 2));
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
[data-item-section="spacing"] {
|
|
920
|
+
height: var(--trees-row-height);
|
|
921
|
+
padding-left: calc(calc(var(--trees-icon-width) / 2) - .5px);
|
|
922
|
+
flex-direction: row;
|
|
923
|
+
justify-content: center;
|
|
924
|
+
align-items: center;
|
|
925
|
+
display: flex;
|
|
926
|
+
|
|
927
|
+
&:empty {
|
|
928
|
+
padding-left: 0;
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
[data-item-section="spacing-item"] {
|
|
933
|
+
border-left: 1px solid var(--trees-indent-guide-bg);
|
|
934
|
+
height: 100%;
|
|
935
|
+
margin-right: calc(var(--trees-level-gap) - 1px);
|
|
936
|
+
opacity: 0;
|
|
937
|
+
transition: opacity .15s;
|
|
938
|
+
display: inline-block;
|
|
939
|
+
transform: translateX(-.25px);
|
|
940
|
+
|
|
941
|
+
& + & {
|
|
942
|
+
margin-left: calc(var(--trees-item-row-gap) + calc(var(--trees-icon-width) / 2) - .5px);
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
:host(:hover) [data-item-section="spacing-item"] {
|
|
947
|
+
opacity: .75;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
[data-item-contains-git-change="true"] > [data-item-section="git"] {
|
|
951
|
+
color: var(--trees-git-modified-color);
|
|
952
|
+
opacity: .5;
|
|
953
|
+
fill: currentColor;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
[data-item-git-status] {
|
|
957
|
+
& > :where([data-item-section="icon"]) > :where(:not([data-icon-name="file-tree-icon-chevron"])), & > [data-item-section="content"] {
|
|
958
|
+
color: var(--trees-item-git-status-color);
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
& > [data-item-section="git"] {
|
|
962
|
+
color: var(--trees-item-git-status-color);
|
|
963
|
+
font-weight: var(--trees-font-weight-semibold);
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
[data-item-git-status="added"] {
|
|
968
|
+
--trees-item-git-status-color: var(--trees-git-added-color);
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
[data-item-git-status="deleted"] {
|
|
972
|
+
--trees-item-git-status-color: var(--trees-git-deleted-color);
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
[data-item-git-status="ignored"] {
|
|
976
|
+
--trees-item-git-status-color: var(--trees-git-ignored-color);
|
|
977
|
+
|
|
978
|
+
& > [data-item-section="icon"] {
|
|
979
|
+
opacity: .5;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
[data-item-section="git"] [data-icon-name="file-tree-icon-dot"] {
|
|
984
|
+
transform: translateY(calc(.65ex - 50%));
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
[data-item-git-status="modified"] {
|
|
988
|
+
--trees-item-git-status-color: var(--trees-git-modified-color);
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
[data-item-git-status="renamed"] {
|
|
992
|
+
--trees-item-git-status-color: var(--trees-git-renamed-color);
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
[data-item-git-status="untracked"] {
|
|
996
|
+
--trees-item-git-status-color: var(--trees-git-untracked-color);
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
[data-item-drag-target="true"] {
|
|
1000
|
+
background-color: var(--trees-selected-bg);
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
[data-item-dragging="true"] {
|
|
1004
|
+
opacity: .5;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
[data-item-section="lock"] {
|
|
1008
|
+
color: var(--trees-fg-muted);
|
|
1009
|
+
flex: none;
|
|
1010
|
+
align-items: center;
|
|
1011
|
+
margin-left: auto;
|
|
1012
|
+
display: flex;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
[data-item-section="lock"] svg {
|
|
1016
|
+
display: block;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
[data-type="header-slot"] {
|
|
1020
|
+
flex: none;
|
|
1021
|
+
display: block;
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
[data-type="context-menu-wash"] {
|
|
1025
|
+
z-index: 3;
|
|
1026
|
+
touch-action: none;
|
|
1027
|
+
background-color: #0000;
|
|
1028
|
+
position: absolute;
|
|
1029
|
+
inset: 0;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
[data-type="context-menu-anchor"] {
|
|
1033
|
+
top: 0;
|
|
1034
|
+
right: var(--trees-context-menu-trigger-inline-offset);
|
|
1035
|
+
z-index: 4;
|
|
1036
|
+
align-items: center;
|
|
1037
|
+
display: none;
|
|
1038
|
+
position: absolute;
|
|
1039
|
+
|
|
1040
|
+
&[data-visible="true"] {
|
|
1041
|
+
display: flex;
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
[data-file-tree-virtualized-root="true"][data-is-scrolling] [data-type="context-menu-anchor"] {
|
|
1046
|
+
display: none;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
[data-type="context-menu-anchor"] > slot[name="context-menu"] {
|
|
1050
|
+
flex: 0 0 0;
|
|
1051
|
+
width: 0;
|
|
1052
|
+
min-width: 0;
|
|
1053
|
+
display: block;
|
|
1054
|
+
overflow: visible;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
[data-type="context-menu-trigger"] {
|
|
1058
|
+
all: unset;
|
|
1059
|
+
width: var(--trees-action-lane-width);
|
|
1060
|
+
color: var(--trees-fg-muted);
|
|
1061
|
+
fill: currentColor;
|
|
1062
|
+
cursor: pointer;
|
|
1063
|
+
font-family: var(--trees-font-family);
|
|
1064
|
+
font-size: var(--trees-font-size);
|
|
1065
|
+
border-top-right-radius: var(--trees-border-radius);
|
|
1066
|
+
border-bottom-right-radius: var(--trees-border-radius);
|
|
1067
|
+
margin: var(--trees-focus-ring-width);
|
|
1068
|
+
height: calc(var(--trees-row-height) - var(--trees-focus-ring-width) * 2);
|
|
1069
|
+
border-width: 0;
|
|
1070
|
+
justify-content: center;
|
|
1071
|
+
align-items: center;
|
|
1072
|
+
transition: color .12s;
|
|
1073
|
+
display: flex;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
[data-type="context-menu-trigger"]:hover, [data-type="context-menu-trigger"][aria-expanded="true"] {
|
|
1077
|
+
color: var(--trees-fg);
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
[data-truncate-container] {
|
|
1081
|
+
--truncate-internal-marker-fade-width: var(--truncate-marker-fade-width, 2px);
|
|
1082
|
+
--truncate-internal-marker-gap: var(--truncate-marker-gap, 0px);
|
|
1083
|
+
--truncate-internal-marker-opacity: var(--truncate-marker-opacity, 50%);
|
|
1084
|
+
--truncate-internal-middle-marker-opacity: var(--truncate-middle-marker-opacity, 80%);
|
|
1085
|
+
--truncate-internal-marker-background-color: var(--truncate-marker-background-color, light-dark(#fff, #000));
|
|
1086
|
+
--truncate-internal-marker-background-overlay-color: var(--truncate-marker-background-overlay-color, transparent);
|
|
1087
|
+
--truncate-internal-marker-block-inset: var(--truncate-marker-block-inset, 0px);
|
|
1088
|
+
--truncate-internal-marker-fade-out-duration: var(--truncate-marker-fade-out-duration, 0s);
|
|
1089
|
+
--truncate-internal-marker-fade-in-duration: var(--truncate-marker-fade-in-duration, .1s);
|
|
1090
|
+
--truncate-internal-fade-marker-color: var(--truncate-fade-marker-color, #000);
|
|
1091
|
+
--truncate-internal-fade-marker-width: var(--truncate-fade-marker-width, .2lh);
|
|
1092
|
+
--truncate-internal-single-line-height: 1lh;
|
|
1093
|
+
height: var(--truncate-internal-single-line-height);
|
|
1094
|
+
min-width: 0;
|
|
1095
|
+
margin-top: -1px;
|
|
1096
|
+
margin-bottom: -1px;
|
|
1097
|
+
overflow: hidden;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
[data-truncate-marker] {
|
|
1101
|
+
height: var(--truncate-internal-single-line-height);
|
|
1102
|
+
padding-block: var(--truncate-internal-marker-block-inset);
|
|
1103
|
+
box-sizing: border-box;
|
|
1104
|
+
z-index: 2;
|
|
1105
|
+
color: color-mix(in srgb,
|
|
1106
|
+
currentColor var(--truncate-internal-marker-opacity),
|
|
1107
|
+
transparent);
|
|
1108
|
+
opacity: 0;
|
|
1109
|
+
transition: opacity var(--truncate-internal-marker-fade-out-duration)
|
|
1110
|
+
ease-in-out;
|
|
1111
|
+
background-clip: content-box;
|
|
1112
|
+
align-items: center;
|
|
1113
|
+
display: flex;
|
|
1114
|
+
position: absolute;
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
@container measure (height > 1lh) {
|
|
1118
|
+
[data-truncate-marker] {
|
|
1119
|
+
opacity: 1;
|
|
1120
|
+
transition: opacity var(--truncate-internal-marker-fade-in-duration)
|
|
1121
|
+
ease-in-out;
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
[data-truncate-grid] {
|
|
1126
|
+
display: grid;
|
|
1127
|
+
position: relative;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
[data-truncate-content="visible"] {
|
|
1131
|
+
white-space: nowrap;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
[data-truncate-content="overflow"] {
|
|
1135
|
+
opacity: 0;
|
|
1136
|
+
pointer-events: none;
|
|
1137
|
+
user-select: none;
|
|
1138
|
+
word-break: break-all;
|
|
1139
|
+
margin-top: calc(-1 * var(--truncate-internal-single-line-height));
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
[data-truncate-marker-cell] {
|
|
1143
|
+
user-select: none;
|
|
1144
|
+
pointer-events: none;
|
|
1145
|
+
overflow: visible;
|
|
1146
|
+
container: measure / size;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
[data-truncate-container="truncate"] {
|
|
1150
|
+
& [data-truncate-grid] {
|
|
1151
|
+
grid-template-columns: minmax(0, max-content) 0;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
& [data-truncate-marker] {
|
|
1155
|
+
right: 0;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
& [data-truncate-fade] {
|
|
1159
|
+
margin-right: calc(-2 * var(--truncate-internal-fade-marker-width));
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
[data-truncate-container="fruncate"] {
|
|
1164
|
+
& [data-truncate-grid] {
|
|
1165
|
+
grid-template-columns: 0 minmax(0, max-content) auto;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
& [data-truncate-content] {
|
|
1169
|
+
direction: rtl;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
& [data-truncate-content] > span {
|
|
1173
|
+
unicode-bidi: plaintext;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
& [data-truncate-fade] {
|
|
1177
|
+
margin-left: calc(-2 * var(--truncate-internal-fade-marker-width));
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
[data-truncate-variant="default"] {
|
|
1182
|
+
& [data-truncate-marker] {
|
|
1183
|
+
background-color: var(--truncate-internal-marker-background-color);
|
|
1184
|
+
background-image: linear-gradient(var(--truncate-internal-marker-background-overlay-color),
|
|
1185
|
+
var(--truncate-internal-marker-background-overlay-color));
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
& [data-truncate-marker]:after, & [data-truncate-marker]:before {
|
|
1189
|
+
content: "";
|
|
1190
|
+
width: calc(var(--truncate-internal-marker-fade-width) +
|
|
1191
|
+
var(--truncate-internal-marker-gap));
|
|
1192
|
+
height: max(0px,
|
|
1193
|
+
calc(var(--truncate-internal-single-line-height) -
|
|
1194
|
+
var(--truncate-internal-marker-block-inset) * 2));
|
|
1195
|
+
background-color: var(--truncate-internal-marker-background-color);
|
|
1196
|
+
background-image: linear-gradient(var(--truncate-internal-marker-background-overlay-color),
|
|
1197
|
+
var(--truncate-internal-marker-background-overlay-color));
|
|
1198
|
+
-webkit-mask-image: linear-gradient(var(--truncate-internal-fade-dir),
|
|
1199
|
+
#000 0%,
|
|
1200
|
+
#000 var(--truncate-internal-marker-gap),
|
|
1201
|
+
transparent 100%);
|
|
1202
|
+
mask-image: linear-gradient(var(--truncate-internal-fade-dir),
|
|
1203
|
+
#000 0%,
|
|
1204
|
+
#000 var(--truncate-internal-marker-gap),
|
|
1205
|
+
transparent 100%);
|
|
1206
|
+
position: absolute;
|
|
1207
|
+
inset-block-start: var(--truncate-internal-marker-block-inset);
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
& [data-truncate-marker]:after {
|
|
1211
|
+
--truncate-internal-fade-dir: to right;
|
|
1212
|
+
right: calc(-1 *
|
|
1213
|
+
(
|
|
1214
|
+
var(--truncate-internal-marker-fade-width) +
|
|
1215
|
+
var(--truncate-internal-marker-gap)
|
|
1216
|
+
));
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
& [data-truncate-marker]:before {
|
|
1220
|
+
--truncate-internal-fade-dir: to left;
|
|
1221
|
+
left: calc(-1 *
|
|
1222
|
+
(
|
|
1223
|
+
var(--truncate-internal-marker-fade-width) +
|
|
1224
|
+
var(--truncate-internal-marker-gap)
|
|
1225
|
+
));
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
[data-truncate-variant="fade"] {
|
|
1230
|
+
& [data-truncate-marker] {
|
|
1231
|
+
background: none;
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
[data-truncate-fade] {
|
|
1236
|
+
box-shadow: 0 0 calc(var(--truncate-internal-fade-marker-width) / 2)
|
|
1237
|
+
var(--truncate-internal-fade-marker-color),
|
|
1238
|
+
0 0 var(--truncate-internal-fade-marker-width)
|
|
1239
|
+
var(--truncate-internal-fade-marker-color);
|
|
1240
|
+
width: calc(var(--truncate-internal-fade-marker-width) * 2);
|
|
1241
|
+
height: calc(var(--truncate-internal-single-line-height) -
|
|
1242
|
+
(var(--truncate-internal-fade-marker-width) * 2));
|
|
1243
|
+
margin: var(--truncate-internal-fade-marker-width) 0;
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
[data-truncate-group-container="middle"] {
|
|
1247
|
+
& [data-truncate-container] {
|
|
1248
|
+
--truncate-marker-opacity: var(--truncate-internal-middle-marker-opacity);
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
min-width: 0;
|
|
1252
|
+
display: flex;
|
|
1253
|
+
|
|
1254
|
+
& > div {
|
|
1255
|
+
min-width: 0;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
& > div[data-truncate-segment-priority="1"] {
|
|
1259
|
+
flex: 0 1 max-content;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
& > div[data-truncate-segment-priority="2"] {
|
|
1263
|
+
flex: 0 999999 max-content;
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
@layer theme, unsafe;
|
|
1269
|
+
`,jp=`@layer base, unsafe;`;function Mp(e){return`${jp}
|
|
1270
|
+
@layer base {
|
|
1271
|
+
${e}
|
|
1272
|
+
}`}function Np(e){return`${jp}
|
|
1273
|
+
@layer unsafe {
|
|
1274
|
+
${e}
|
|
1275
|
+
}`}var Pp=new WeakMap;function Fp(e){let t=Pp.get(e);if(t!=null)return t;let n=document.createElement(`div`);n.setAttribute($d,`true`);let r=document.createElement(`div`);r.style.position=`relative`,r.style.height=`200%`,n.appendChild(r),e.appendChild(n);let i=Math.max(n.offsetWidth-n.clientWidth,0);return n.remove(),Pp.set(e,i),i}function Ip(e,t){if(!e.isConnected)return;let n=Fp(t);if(n==null)return;let r=t.querySelector(`style[${ef}]`),i=r instanceof HTMLStyleElement?r:document.createElement(`style`);r instanceof HTMLStyleElement||(i.setAttribute(ef,``),t.appendChild(i)),i.textContent=`:host { ${tf}: ${n}px; }`}var Lp;function Rp(e){if(typeof CSSStyleSheet<`u`&&typeof CSSStyleSheet.prototype.replaceSync==`function`&&`adoptedStyleSheets`in e){Lp??(Lp=new CSSStyleSheet,Lp.replaceSync(Mp(Ap)));let t=!1;try{e.adoptedStyleSheets=[Lp],t=!0}catch{}if(t){e.querySelector(`style[${Zd}]`)?.remove();return}}if(e.querySelector(`style[data-file-tree-style]`)==null){let t=document.createElement(`style`);t.setAttribute(Zd,``),t.textContent=Mp(Ap),e.prepend(t)}}function zp(e,t){Bp(e,t),Rp(t),Ip(e,t)}function Bp(e,t){let n=e.querySelector(`template[shadowrootmode="open"], template[data-file-tree-shadowrootmode="open"]`);n instanceof HTMLTemplateElement&&(t.childNodes.length>0||(t.appendChild(n.content.cloneNode(!0)),n.hasAttribute(`shadowrootmode`)&&n.remove()))}if(typeof HTMLElement<`u`&&customElements.get(`file-tree-container`)==null){class e extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.shadowRoot??this.attachShadow({mode:`open`});zp(this,e)}}if(customElements.define(Xd,e),typeof document<`u`)for(let e of Array.from(document.querySelectorAll(Xd)))e instanceof HTMLElement&&zp(e,e.shadowRoot??e.attachShadow({mode:`open`}))}var Vp=5,Hp=32,Up=128;function Wp(){return{childIdByNameId:new Map,childIds:[],childPositionById:new Map,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function Gp(){return{childIdByNameId:null,childIds:[],childPositionById:null,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function Kp(e,t){if(t.childIdByNameId!=null)return t.childIdByNameId;let n=new Map;for(let r of t.childIds){let t=e[r];t!=null&&n.set(t.nameId,r)}return t.childIdByNameId=n,n}function qp(e){if(e.childPositionById!=null)return e.childPositionById;let t=new Map;for(let n=0;n<e.childIds.length;n++){let r=e.childIds[n];r!=null&&t.set(r,n)}return e.childPositionById=t,t}function Jp(e,t){e.childPositionById!=null&&e.childPositionById.set(t,e.childIds.length),e.childIds.push(t)}function Yp(e,t){if(e.childPositionById!=null)for(let n=t;n<e.childIds.length;n++){let t=e.childIds[n];t!=null&&e.childPositionById.set(t,n)}}function Xp(e,t){let n=0,r=0;for(let i of t.childIds){let t=e[i];t!=null&&(n+=t.subtreeNodeCount,r+=t.visibleSubtreeCount)}t.totalChildSubtreeNodeCount=n,t.totalChildVisibleSubtreeCount=r,em(e,t)}function Zp(e,t,n,r){if(e.totalChildSubtreeNodeCount+=n,e.totalChildVisibleSubtreeCount+=r,e.childVisibleChunkSums==null||r===0)return;let i=qp(e).get(t);if(i===void 0)return;let a=i>>Vp;e.childVisibleChunkSums[a]+=r}function Qp(e,t,n){let r=t.childVisibleChunkSums;if(r!=null){let i=n,a=0;for(let o of r){if(i<o){let r=tm(e,t,a,i);return{...r,childVisibleIndex:n-r.localVisibleIndex}}i-=o,a+=Hp}throw Error(`Visible child index ${String(n)} is out of range`)}let i=n;for(let r=0;r<t.childIds.length;r++){let a=t.childIds[r];if(a==null)continue;let o=e[a];if(o!=null){if(i<o.visibleSubtreeCount)return{childIndex:r,childVisibleIndex:n-i,localVisibleIndex:i};i-=o.visibleSubtreeCount}}throw Error(`Visible child index ${String(n)} is out of range`)}function $p(e,t,n){let r=0,i=t.childVisibleChunkSums,a=0;if(i!=null){let e=n>>Vp;for(let t=0;t<e;t+=1)r+=i[t]??0;a=e<<Vp}for(let i=a;i<n;i+=1){let n=t.childIds[i];if(n==null)continue;let a=e[n];a!=null&&(r+=a.visibleSubtreeCount)}return r}function em(e,t){if(t.childIds.length<Up){t.childVisibleChunkSums=null;return}let n=Math.ceil(t.childIds.length/Hp),r=new Int32Array(n);for(let n=0;n<t.childIds.length;n++){let i=t.childIds[n];if(i==null)continue;let a=e[i];a!=null&&(r[n>>Vp]+=a.visibleSubtreeCount)}t.childVisibleChunkSums=r}function tm(e,t,n,r){let i=Math.min(t.childIds.length,n+Hp),a=r;for(let r=n;r<i;r++){let n=t.childIds[r];if(n==null)continue;let i=e[n];if(i!=null){if(a<i.visibleSubtreeCount)return{childIndex:r,localVisibleIndex:a};a-=i.visibleSubtreeCount}}throw Error(`Visible child index ${String(r)} is out of range`)}var nm=7,rm=3,im=8,am=4;function om(e,t,n=0){return e<<am|n<<rm|t}function sm(e){return e.depthAndFlags>>>am}function cm(e){return(e.depthAndFlags&im)>>rm}function Y(e){return(e.depthAndFlags&im)!==0}function lm(e){return e.depthAndFlags&nm}function um(e,t){return(lm(e)&t)!==0}function dm(e,t){e.depthAndFlags|=t}function fm(e,t){e.depthAndFlags=om(t,lm(e),cm(e))}var pm=Symbol(`benchmarkInstrumentation`);function mm(e,t){return t==null||Object.defineProperty(e,pm,{configurable:!0,enumerable:!1,value:t,writable:!1}),e}function hm(e){return e==null?null:e[pm]??null}function X(e,t,n){return e==null?n():e.measurePhase(t,n)}function gm(e,t,n){Number.isFinite(n)&&e!=null&&e.setCounter(t,n)}function _m(e){return e>=48&&e<=57}function vm(e){let t=[],n=0,r=0;for(;r<e.length;){for(;r<e.length&&!_m(e.charCodeAt(r));)r+=1;if(r>=e.length)break;r>n&&t.push(e.slice(n,r));let i=0;for(;r<e.length&&_m(e.charCodeAt(r));)i=i*10+(e.charCodeAt(r)-48),r+=1;t.push(i),n=r}return(n<e.length||t.length===0)&&t.push(e.slice(n)),t}function ym(e){let t=e.toLowerCase();return{lowerValue:t,tokens:vm(t)}}function bm(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++){let n=e[r],i=t[r];if(n===i)continue;if(typeof n==`number`&&typeof i==`number`)return n<i?-1:1;let a=String(n),o=String(i);if(a!==o)return a<o?-1:1}return e.length===t.length?0:e.length<t.length?-1:1}function xm(e,t){if(e.tokens.length===1&&t.tokens.length===1&&typeof e.tokens[0]==`string`&&typeof t.tokens[0]==`string`)return e.lowerValue===t.lowerValue?0:e.lowerValue<t.lowerValue?-1:1;let n=bm(e.tokens,t.tokens);return n===0?e.lowerValue===t.lowerValue?0:e.lowerValue<t.lowerValue?-1:1:n}function Sm(e,t,n){let r=xm(n(e),n(t));return r===0?e===t?0:e<t?-1:1:r}function Cm(e,t){return Sm(e,t,ym)}function wm(e,t){return t===e.segments.length-1?+!!e.isDirectory:1}function Tm(e,t){let n=Math.min(e.segments.length,t.segments.length);for(let r=0;r<n;r++){let n=e.segments[r],i=t.segments[r];if(n===i)continue;let a=wm(e,r);return a===wm(t,r)?Cm(n,i):a===1?-1:1}return e.segments.length===t.segments.length?e.isDirectory===t.isDirectory?0:e.isDirectory?-1:1:e.segments.length<t.segments.length?-1:1}function Em(e,t){return Tm(e,t)}function Dm(e,t,n){let r=e=>{let t=n.get(e);if(t!=null)return t;let r=ym(e);return n.set(e,r),r},i=Math.min(e.segments.length,t.segments.length);for(let n=0;n<i;n++){let i=e.segments[n],a=t.segments[n];if(i===a)continue;let o=wm(e,n);return o===wm(t,n)?Sm(i,a,r):o===1?-1:1}return e.segments.length===t.segments.length?e.isDirectory===t.isDirectory?0:e.isDirectory?-1:1:e.segments.length<t.segments.length?-1:1}function Om(e,t){let n=e.sortKeyById[t];if(n!==void 0)return n;let r=e.valueById[t],i=ym(r);return e.sortKeyById[t]=i,i}function km(e={}){return{flattenEmptyDirectories:e.flattenEmptyDirectories!==!1,sort:e.sort??`default`}}function Am(e){let t=e.length>0&&e.charCodeAt(e.length-1)===47,n=t?e.length-1:e.length,r=[],i=0;for(let t=0;t<n;t++)e.charCodeAt(t)===47&&(r.push(e.slice(i,t)),i=t+1);return r.push(e.slice(i,n)),{hasTrailingSlash:t,segments:r}}function jm(e){let{hasTrailingSlash:t,segments:n}=Am(e);return{basename:n[n.length-1]??``,isDirectory:t,path:e,segments:n}}function Mm(e){if(e.length===0)return{requiresDirectory:!1,segments:[]};let{hasTrailingSlash:t,segments:n}=Am(e);return{requiresDirectory:t,segments:n}}function Nm(){let e=new Map;return e.set(``,0),{idByValue:e,valueById:[``],sortKeyById:[ym(``)]}}function Pm(e,t){let n=e.idByValue.get(t);if(n!==void 0)return n;let r=e.valueById.length;return e.idByValue.set(t,r),e.valueById.push(t),r}function Fm(e,t){let n=e.valueById[t];if(n===void 0)throw Error(`Unknown segment ID: ${String(t)}`);return n}var Im=Symbol(`pathStorePreparedInputKind`);function Lm(e,t){return e[Im]=t,e}function Rm(e){return{basename:e.basename,depth:e.segments.length,isDirectory:e.isDirectory,path:e.path,segments:e.segments}}function zm(e,t,n){return n==="default"?Em(e,t):n(Rm(e),Rm(t))}function Bm(){return{depthAndFlags:om(0,3,1),nameId:0,parentId:0,subtreeNodeCount:1,visibleSubtreeCount:1}}function Vm(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++)if(e[r]!==t[r])return r;return n}function Hm(e){return e.isDirectory?e.segments.length:e.segments.length-1}function Um(e){return Array.isArray(e)&&e.every(e=>typeof e==`object`&&!!e&&typeof e.path==`string`&&Array.isArray(e.segments)&&typeof e.basename==`string`&&typeof e.isDirectory==`boolean`)}function Wm(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)}function Gm(e,t={}){return Zm(e,t).map(e=>e.path)}function Km(e,t={}){let n=Zm(e,t);return Lm({paths:n.map(e=>e.path),preparedPaths:n},`prepared`)}function qm(e){let t=e.length,n=!1;for(let r=0;r<t;r+=1){let t=e[r];if(t.length>0&&t.charCodeAt(t.length-1)===47){n=!0;break}}return Lm({paths:e,presortedPaths:e,presortedPathsContainDirectories:n},`presorted`)}function Jm(e){let t=e,n=t.preparedPaths;if(t[Im]===`prepared`&&n!=null)return n;if(!Um(n))throw Error(`preparedInput must come from PathStore.prepareInput()`);return n}function Ym(e){let t=e;return t[Im]===`presorted`&&t.presortedPaths!=null||Wm(t.presortedPaths)?t.presortedPaths:null}function Xm(e){let t=e;return typeof t.presortedPathsContainDirectories==`boolean`?t.presortedPathsContainDirectories:null}function Zm(e,t={}){let n=km(t),r=hm(t);gm(r,`workload.inputFiles`,e.length);let i=X(r,`store.preparePathEntries.parse`,()=>e.map(e=>jm(e)));return X(r,`store.preparePathEntries.sort`,()=>i.sort((e,t)=>zm(e,t,n.sort))),i}var Qm=class{directories=new Map;directoryStack=[0];presortedDirectoryNodeIds=[];initialExpandedPathSet;createdDirectoriesAllExpanded=!1;createdDirectoryCount=0;lastPreparedPath=null;nodes=[Bm()];options;instrumentation;segmentSortKeyCache=new Map;segmentTable=Nm();hasDeferredDirectoryIndexes=!1;constructor(e={}){this.instrumentation=hm(e),this.options=km(e);let t=e.initialExpandedPaths??null;if(t==null||t.length===0)this.initialExpandedPathSet=null;else{let e=new Set,n=t.length;for(let r=0;r<n;r+=1){let n=t[r],i=n.length;e.add(i>0&&n.charCodeAt(i-1)===47?n.slice(0,i-1):n)}this.initialExpandedPathSet=e,this.createdDirectoriesAllExpanded=!0}this.directories.set(0,Wp())}appendPaths(e){return X(this.instrumentation,`store.builder.appendPaths.parse`,()=>this.appendPreparedPaths(e.map(e=>jm(e))))}appendPreparedPaths(e,t=!0){return this.createdDirectoriesAllExpanded=!1,X(this.instrumentation,`store.builder.appendPreparedPaths`,()=>{for(let n of e)this.appendPreparedPath(n,t)}),this}appendPresortedPaths(e,t=null){return X(this.instrumentation,`store.builder.appendPresortedPaths`,()=>{if(t===!1){this.appendPresortedFilePaths(e);return}this.createdDirectoriesAllExpanded=!1;let n=null,r=0,i=this.nodes,a=this.segmentTable,o=a.idByValue,s=a.valueById,c=this.directoryStack,l=0,u=``,d=0;for(let t of e){if(n===t)throw Error(`Duplicate path: "${t}"`);let e=t.length>0&&t.charCodeAt(t.length-1)===47,a=e?t.length-1:t.length,f=0,p=0;if(n!=null){if(u.length>0&&t.length>u.length&&t.startsWith(u))f=d,p=u.length;else{let r=Math.min(a,n.length),i=!0;for(let e=0;e<r;e++){let r=t.charCodeAt(e);if(r!==n.charCodeAt(e)){i=!1;break}r===47&&(f++,p=e+1)}i&&e&&r===a&&n.length>a&&n.charCodeAt(a)===47&&(f++,p=a+1)}}l=f,r=f;let m=p,h=t.indexOf(`/`,m);for(;h>=0&&h<a;){let e=c[l];if(e===void 0)throw Error(`Directory stack underflow while building the path store`);r++;let n=t.slice(m,h),a=o.get(n);a===void 0&&(a=s.length,o.set(n,a),s.push(n));let u=i.length;i.push({depthAndFlags:om(r,0,1),nameId:a,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(t.slice(0,h)),l++,c[l]=u,m=h+1,h=t.indexOf(`/`,m)}if(e){if(m<a){let e=c[l];if(e===void 0)throw Error(`Unable to resolve directory parent for "${t}"`);r++;let n=t.slice(m,a),u=o.get(n);u===void 0&&(u=s.length,o.set(n,u),s.push(n));let d=i.length;i.push({depthAndFlags:om(r,0,1),nameId:u,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),l++,c[l]=d,m=a+1}let e=c[l];if(e===void 0)throw Error(`Unable to resolve directory node for "${t}"`);this.promoteDirectoryToExplicit(e,t)}else{let e=c[l];if(e===void 0)throw Error(`Unable to resolve file parent for "${t}"`);let n=t.slice(m),a=o.get(n);a===void 0&&(a=s.length,o.set(n,a),s.push(n)),i.push({depthAndFlags:om(r+1,0),nameId:a,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1})}m!==u.length&&(u=t.substring(0,m),d=r),n=t}c.length=l+1,n!=null&&(this.lastPreparedPath=jm(n)),this.hasDeferredDirectoryIndexes=!0}),this}appendPresortedFilePaths(e){let t=null,n=0,r=this.nodes,i=this.segmentTable,a=i.idByValue,o=i.valueById,s=this.directoryStack,c=0,l=``,u=0;for(let i of e){if(t===i)throw Error(`Duplicate path: "${i}"`);let e=i.length,d=0,f=0;if(t!=null){if(l.length>0&&i.length>l.length&&i.startsWith(l))d=u,f=l.length;else{let n=Math.min(e,t.length);for(let e=0;e<n;e++){let n=i.charCodeAt(e);if(n!==t.charCodeAt(e))break;n===47&&(d++,f=e+1)}}}c=d,n=d;let p=f,m=i.indexOf(`/`,p);for(;m>=0;){let e=s[c];if(e===void 0)throw Error(`Directory stack underflow while building the path store`);n++;let t=i.slice(p,m),l=a.get(t);l===void 0&&(l=o.length,a.set(t,l),o.push(t));let u=r.length;r.push({depthAndFlags:om(n,0,1),nameId:l,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(i.slice(0,m)),this.presortedDirectoryNodeIds.push(u),c++,s[c]=u,p=m+1,m=i.indexOf(`/`,p)}let h=s[c];if(h===void 0)throw Error(`Unable to resolve file parent for "${i}"`);let g=i.slice(p),_=a.get(g);_===void 0&&(_=o.length,a.set(g,_),o.push(g)),r.push({depthAndFlags:om(n+1,0),nameId:_,parentId:h,subtreeNodeCount:1,visibleSubtreeCount:1}),p!==l.length&&(l=i.substring(0,p),u=n),t=i}s.length=c+1,t!=null&&(this.lastPreparedPath=jm(t)),this.hasDeferredDirectoryIndexes=!0}finish(e={}){let t=e.skipSubtreeCountPass===!0;return this.hasDeferredDirectoryIndexes?(X(this.instrumentation,`store.builder.buildDirectoryIndexes`,()=>this.buildPresortedFinish(t)),this.hasDeferredDirectoryIndexes=!1):t||X(this.instrumentation,`store.builder.computeSubtreeCounts`,()=>this.computeSubtreeCounts(0)),{directories:this.directories,nodes:this.nodes,options:this.options,rootId:0,segmentTable:this.segmentTable,presortedDirectoryNodeIds:this.presortedDirectoryNodeIds.length>0?this.presortedDirectoryNodeIds:null}}didMatchAllInitialExpandedPaths(){return this.createdDirectoriesAllExpanded&&this.initialExpandedPathSet!=null&&this.createdDirectoryCount===this.initialExpandedPathSet.size}appendPreparedPath(e,t){if(this.hasDeferredDirectoryIndexes&&=(this.buildDirectoryIndexes(),!1),this.lastPreparedPath!=null){if(e.path===this.lastPreparedPath.path)throw Error(`Duplicate path: "${e.path}"`);if(t&&(this.options.sort==="default"?Dm(this.lastPreparedPath,e,this.segmentSortKeyCache):zm(this.lastPreparedPath,e,this.options.sort))>0)throw Error(`Builder input must be sorted before appendPaths(): "${e.path}"`)}let n=this.lastPreparedPath,r=Hm(e),i=n==null?0:Hm(n),a=n==null?0:Vm(n.segments,e.segments),o=Math.min(a,r,i);this.directoryStack.length=o+1;for(let n=o;n<r;n++){let r=this.directoryStack[this.directoryStack.length-1];if(r===void 0)throw Error(`Directory stack underflow while building the path store`);let i=t?this.getOrCreateDirectoryChild(r,e.segments[n]):this.createDirectoryChild(r,e.segments[n]);this.directoryStack.push(i)}if(e.isDirectory){let t=this.directoryStack[this.directoryStack.length-1];if(t===void 0)throw Error(`Unable to resolve directory node for "${e.path}"`);this.promoteDirectoryToExplicit(t,e.path),this.lastPreparedPath=e;return}let s=this.directoryStack[this.directoryStack.length-1];if(s===void 0)throw Error(`Unable to resolve file parent for "${e.path}"`);t?this.createFileChild(s,e.basename,e.path):this.createFileChildUnchecked(s,e.basename),this.lastPreparedPath=e}recordCreatedDirectoryPath(e){this.createdDirectoriesAllExpanded&&this.initialExpandedPathSet!=null&&(this.createdDirectoryCount+=1,this.initialExpandedPathSet.has(e)||(this.createdDirectoriesAllExpanded=!1))}createFileChild(e,t,n){let r=Pm(this.segmentTable,t),i=this.getDirectoryIndex(e),a=i.childIdByNameId;if(a!=null&&a.get(r)!==void 0)throw Error(`Path collides with an existing entry: "${n}"`);let o=this.nodes[e];if(o===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let s=this.nodes.length;return this.nodes.push({depthAndFlags:om(sm(o)+1,0),nameId:r,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),a?.set(r,s),Jp(i,s),s}createFileChildUnchecked(e,t){let n=Pm(this.segmentTable,t),r=this.getDirectoryIndex(e),i=this.nodes[e];if(i===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let a=this.nodes.length;return this.nodes.push({depthAndFlags:om(sm(i)+1,0),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),Jp(r,a),a}getOrCreateDirectoryChild(e,t){let n=Pm(this.segmentTable,t),r=this.getDirectoryIndex(e);if(r.childIdByNameId!=null){let e=r.childIdByNameId.get(n);if(e!==void 0){let n=this.nodes[e];if(n!=null&&!Y(n))throw Error(`Path collides with an existing file while creating directory "${t}"`);return e}}let i=this.nodes[e];if(i===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let a=this.nodes.length;return this.nodes.push({depthAndFlags:om(sm(i)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),Jp(r,a),this.directories.set(a,Wp()),a}createDirectoryChild(e,t){let n=Pm(this.segmentTable,t),r=this.getDirectoryIndex(e),i=this.nodes[e];if(i===void 0)throw Error(`Unknown parent node ID: ${String(e)}`);let a=this.nodes.length;return this.nodes.push({depthAndFlags:om(sm(i)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,a),Jp(r,a),this.directories.set(a,Wp()),a}promoteDirectoryToExplicit(e,t){let n=this.nodes[e];if(n===void 0)throw Error(`Unknown directory node ID: ${String(e)}`);if(!Y(n))throw Error(`Path is not a directory: "${t}"`);if(um(n,1))throw Error(`Duplicate path: "${t}"`);dm(n,1)}getDirectoryIndex(e){let t=this.directories.get(e);if(t!==void 0)return t;throw Error(`Unknown directory child index for node ${String(e)}`)}buildPresortedFinish(e){let t=this.nodes,n=this.directories;n.set(0,Gp());let r=-1,i=null;for(let e=1;e<t.length;e++){let a=t[e];if(a==null)continue;if(Y(a)){let t=Gp();n.set(e,t),r=e,i=t}let o;a.parentId===r?o=i:(o=n.get(a.parentId),r=a.parentId,i=o??null),o?.childIds.push(e)}if(!e)for(let e=t.length-1;e>=1;e--){let n=t[e];if(n==null)continue;let r=t[n.parentId];r!=null&&(r.subtreeNodeCount+=n.subtreeNodeCount,r.visibleSubtreeCount+=n.visibleSubtreeCount)}}buildDirectoryIndexes(){let e=this.nodes;for(let t=1;t<e.length;t++){let n=e[t];if(n==null)continue;Y(n)&&this.directories.set(t,Wp());let r=this.directories.get(n.parentId);r!=null&&(r.childIdByNameId!=null&&r.childIdByNameId.set(n.nameId,t),Jp(r,t))}}computeSubtreeCounts(e){let t=this.nodes[e];if(t===void 0)throw Error(`Unknown node ID: ${String(e)}`);if(!Y(t))return t.subtreeNodeCount=1,t.visibleSubtreeCount=1,1;let n=this.getDirectoryIndex(e),r=1;for(let e of n.childIds)r+=this.computeSubtreeCounts(e);return Xp(this.nodes,n),t.subtreeNodeCount=r,t.visibleSubtreeCount=r,r}};function $m(e,t=`closed`,n=null){let r=th(t);return{activeNodeCount:e.nodes.length-1,collapsedDirectoryIds:new Set,collapseNewDirectoriesByDefault:!1,defaultExpansion:r,directoriesOpenByDefault:r===`open`,hasCollapsedDirectoryOverrides:!1,directoryLoadInfoById:new Map,expandedDirectoryIds:new Set,instrumentation:n,listeners:new Map,pathCacheByNodeId:new Map([[e.rootId,{path:``,version:0}]]),pathCacheVersion:0,snapshot:e,transactionStack:[]}}function eh(){return{affectedAncestorIds:new Set,affectedNodeIds:new Set,events:[]}}function th(e){if(typeof e!=`number`)return e;if(!Number.isInteger(e)||e<0)throw Error(`initialExpansion must be "open", "closed", or a non-negative integer depth. Received: ${String(e)}`);return e}function nh(e,t){return um(t,2)||e.defaultExpansion===`open`?!0:e.defaultExpansion!==`closed`&&sm(t)<=e.defaultExpansion}function rh(e,t,n=e.snapshot.nodes[t]){return n==null||!Y(n)?!1:e.directoriesOpenByDefault&&!e.hasCollapsedDirectoryOverrides?!0:e.collapsedDirectoryIds.has(t)?!1:e.expandedDirectoryIds.has(t)?!0:nh(e,n)}function ih(e,t,n,r=e.snapshot.nodes[t]){if(r==null||!Y(r))return;let i=nh(e,r);if(n){if(i){e.collapsedDirectoryIds.delete(t),e.hasCollapsedDirectoryOverrides=e.collapsedDirectoryIds.size>0;return}e.expandedDirectoryIds.add(t);return}if(i){e.collapsedDirectoryIds.add(t),e.hasCollapsedDirectoryOverrides=!0;return}e.expandedDirectoryIds.delete(t)}function ah(e,t){let n=e.directoryLoadInfoById.get(t);if(n!=null)return n;let r={activeAttemptId:null,errorMessage:null,nextAttemptId:1,state:`loaded`};return e.directoryLoadInfoById.set(t,r),r}function oh(e,t){return e.directoryLoadInfoById.get(t)?.state??`loaded`}function sh(e,t){let n=ah(e,t);if(n.state===`loading`&&n.activeAttemptId!=null)return{attemptId:n.activeAttemptId,nodeId:t,reused:!0};let r=n.nextAttemptId;return n.activeAttemptId=r,n.errorMessage=null,n.nextAttemptId+=1,n.state=`loading`,{attemptId:r,nodeId:t,reused:!1}}function ch(e,t){let n=ah(e,t);n.activeAttemptId=null,n.errorMessage=null,n.state=`unloaded`}function lh(e,t,n){let r=e.directoryLoadInfoById.get(t);return r==null||r.activeAttemptId!==n?!1:(r.activeAttemptId=null,r.errorMessage=null,r.state=`loaded`,!0)}function uh(e,t,n){return e.directoryLoadInfoById.get(t)?.activeAttemptId===n}function dh(e,t,n,r){let i=e.directoryLoadInfoById.get(t);return i==null||i.activeAttemptId!==n?!1:(i.activeAttemptId=null,i.errorMessage=r??null,i.state=`error`,!0)}function fh(e,t){e.directoryLoadInfoById.delete(t)}function ph(e,t,n){let r=n,i=e.listeners.get(t);return i==null?e.listeners.set(t,new Set([r])):i.add(r),()=>{let n=e.listeners.get(t);n!=null&&(n.delete(r),n.size===0&&e.listeners.delete(t))}}function mh(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,operation:`add`,path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function hh(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,operation:`remove`,path:e.path,projectionChanged:e.projectionChanged,recursive:e.recursive,visibleCountDelta:null}}function gh(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!0,from:e.from,operation:`move`,projectionChanged:e.projectionChanged,to:e.to,visibleCountDelta:null}}function _h(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:`expand`,path:e.path,projectionChanged:!0,visibleCountDelta:null}}function vh(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:`collapse`,path:e.path,projectionChanged:!0,visibleCountDelta:null}}function yh(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],canonicalChanged:!1,operation:`mark-directory-unloaded`,path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function bh(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:!1,operation:`begin-child-load`,path:e.path,projectionChanged:e.projectionChanged,reused:e.reused,visibleCountDelta:null}}function xh(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:e.childEvents.some(e=>e.canonicalChanged),childEvents:e.childEvents,operation:`apply-child-patch`,path:e.path,projectionChanged:e.projectionChanged,visibleCountDelta:null}}function Sh(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:!1,operation:`complete-child-load`,path:e.path,projectionChanged:e.projectionChanged,stale:e.stale,visibleCountDelta:null}}function Ch(e){return{affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],attemptId:e.attemptId,canonicalChanged:!1,errorMessage:e.errorMessage,operation:`fail-child-load`,path:e.path,projectionChanged:e.projectionChanged,stale:e.stale,visibleCountDelta:null}}function wh(e){return{activeNodeCountAfter:e.activeNodeCountAfter,activeNodeCountBefore:e.activeNodeCountBefore,affectedAncestorIds:e.affectedAncestorIds??[],affectedNodeIds:e.affectedNodeIds??[],cachedPathEntryCountAfter:e.cachedPathEntryCountAfter,cachedPathEntryCountBefore:e.cachedPathEntryCountBefore,canonicalChanged:!1,idsPreserved:e.idsPreserved,loadInfoEntryCountAfter:e.loadInfoEntryCountAfter,loadInfoEntryCountBefore:e.loadInfoEntryCountBefore,mode:e.mode,operation:`cleanup`,projectionChanged:e.projectionChanged,reclaimedCachedPathEntryCount:e.reclaimedCachedPathEntryCount,reclaimedLoadInfoEntryCount:e.reclaimedLoadInfoEntryCount,reclaimedNodeSlotCount:e.reclaimedNodeSlotCount,reclaimedSegmentCount:e.reclaimedSegmentCount,segmentCountAfter:e.segmentCountAfter,segmentCountBefore:e.segmentCountBefore,totalNodeSlotCountAfter:e.totalNodeSlotCountAfter,totalNodeSlotCountBefore:e.totalNodeSlotCountBefore,visibleCountDelta:null}}function Th(e,t,n){return{...n,visibleCountDelta:Ih(e)-t}}function Eh(e,t){let n=Ih(e),r=eh();e.transactionStack.push(r);try{t()}catch(t){throw kh(e,r,!1),t}kh(e,r,!0,Ih(e)-n)}function Dh(e,t){let n=e.instrumentation;if(n==null){Oh(e,t);return}X(n,`store.events.record`,()=>Oh(e,t))}function Oh(e,t){let n=e.transactionStack[e.transactionStack.length-1]??null;if(n==null){Ph(e,t);return}n.events.push(t),Nh(n,t)}function kh(e,t,n,r=null){if(e.transactionStack.pop()!==t)throw Error(`Transaction stack underflow`);if(!n)return;let i=e.transactionStack[e.transactionStack.length-1]??null;if(i!=null){let n=e.instrumentation;n==null?Mh(i,t):X(n,`store.events.batch.merge`,()=>Mh(i,t));return}let a=Ah(t,r),o=e.instrumentation;if(o==null){Ph(e,a);return}X(o,`store.events.batch.commit`,()=>Ph(e,a))}function Ah(e,t){return{affectedAncestorIds:[...e.affectedAncestorIds],affectedNodeIds:[...e.affectedNodeIds],canonicalChanged:e.events.some(e=>e.canonicalChanged),events:[...e.events],operation:`batch`,projectionChanged:e.events.some(e=>e.projectionChanged),visibleCountDelta:t}}function jh(e,t){for(let n of t.affectedAncestorIds)e.affectedAncestorIds.add(n);for(let n of t.affectedNodeIds)e.affectedNodeIds.add(n)}function Mh(e,t){for(let n of t.events)e.events.push(n);jh(e,t)}function Nh(e,t){for(let n of t.affectedNodeIds)e.affectedNodeIds.add(n);for(let n of t.affectedAncestorIds)e.affectedAncestorIds.add(n)}function Ph(e,t){let n=e.instrumentation;if(n==null){Fh(e,t);return}X(n,`store.events.emit`,()=>Fh(e,t))}function Fh(e,t){e.listeners.get(t.operation)?.forEach(e=>e(t)),e.listeners.get(`*`)?.forEach(e=>e(t))}function Ih(e){return e.snapshot.nodes[e.snapshot.rootId]?.visibleSubtreeCount??0}function Lh(e,t){if(e.snapshot.options.flattenEmptyDirectories!==!0)return null;let n=e.snapshot.nodes[t];if(n==null||!Y(n)||um(n,2))return null;let r=e.snapshot.directories.get(t);if(r==null||r.childIds.length!==1)return null;let i=r.childIds[0];if(i==null)return null;let a=e.snapshot.nodes[i];return a==null||!Y(a)?null:i}function Rh(e,t){let n=t;for(;;){let t=Lh(e,n);if(t==null)return n;n=t}}function zh(e,t){let n=[t],r=t;for(;;){let t=Lh(e,r);if(t==null)return n;n.push(t),r=t}}function Bh(e,t){let n=t==null?e.snapshot.rootId:Xh(e,t);return n==null?[]:$h(e,n)}function Vh(e,t){let n=jm(t),r=n.isDirectory?n.segments:n.segments.slice(0,-1),i=mg(e,pg(e,r)),{createdNodeIds:a,directoryId:o}=eg(e,r),s=new Set(a),c=o;if(n.isDirectory){let n=Z(e,o);if(um(n,1))throw Error(`Path already exists: "${t}"`);dm(n,1),e.pathCacheByNodeId.set(o,{path:t,version:e.pathCacheVersion}),s.add(o)}else c=ng(e,o,n.basename),s.add(c);qh(e,o);let l=mg(e,o);return mh({affectedAncestorIds:Yh(e,c),affectedNodeIds:[...s],path:t,projectionChanged:hg(i,l)})}function Hh(e,t,n){let r=Xh(e,t);if(r==null)throw Error(`Path does not exist: "${t}"`);let i=Z(e,r);if(um(i,2))throw Error(`The root node cannot be removed`);if(Y(i)&&Qh(e,r).childIds.length>0&&n.recursive!==!0)throw Error(`Cannot remove a non-empty directory without recursive: "${t}"`);let a=i.parentId,o=mg(e,a),s=dg(e,r);ag(e,a,r,i.nameId),fg(e,a),qh(e,a);let c=mg(e,a);return hh({affectedAncestorIds:Yh(e,a),affectedNodeIds:s,path:t,projectionChanged:hg(o,c),recursive:n.recursive===!0})}function Uh(e,t,n,r){let i=Xh(e,t);if(i==null)throw Error(`Source path does not exist: "${t}"`);let a=Z(e,i);if(um(a,2))throw Error(`The root node cannot be moved`);let o=r.collision??`error`,s=lg(e,i,n),c=mg(e,a.parentId),l=mg(e,s.parentId),u=Fm(e.snapshot.segmentTable,a.nameId),d=Pm(e.snapshot.segmentTable,s.basename);if(s.parentId===a.parentId&&u===s.basename)return null;if(Y(a)&&yg(e,i,s.parentId))throw Error(`Cannot move a directory into one of its descendants`);let f=Kp(e.snapshot.nodes,Qh(e,s.parentId)).get(d),p=s.existingNodeId??f??null;if(p!=null&&p!==i&&ug(e,p,o,cm(a))===`skip`)return null;let m=a.parentId;ag(e,m,i,a.nameId),a.parentId=s.parentId,a.nameId=d,e.pathCacheByNodeId.delete(i),vg(e,i),ig(e,s.parentId,i),fg(e,m),e.pathCacheVersion++,qh(e,m),s.parentId!==m&&qh(e,s.parentId);let h=mg(e,m),g=mg(e,s.parentId);return gh({affectedAncestorIds:[...new Set([...Yh(e,m),...Yh(e,s.parentId)])],affectedNodeIds:[i],from:t,projectionChanged:gg([c,l],[h,g]),to:Kh(e,i)})}function Wh(e,t){let n=e.pathCacheByNodeId.get(t);return n!=null&&n.version===e.pathCacheVersion?n.path:null}function Gh(e,t,n){return e.pathCacheByNodeId.set(t,{path:n,version:e.pathCacheVersion}),n}function Kh(e,t){let n=Z(e,t),r=Wh(e,t);if(r!=null)return r;if(um(n,2))return Gh(e,t,``);let i=Kh(e,n.parentId),a=Fm(e.snapshot.segmentTable,n.nameId),o=i.length===0?a:`${i}${a}`;return Gh(e,t,Y(n)?`${o}/`:o)}function qh(e,t){let n=e.instrumentation;if(n==null){xg(e,t);return}X(n,`store.recomputeCountsUpwardFrom`,()=>xg(e,t))}function Jh(e,t){let n=[[t,0]],{nodes:r,directories:i}=e.snapshot;for(;n.length>0;){let t=n[n.length-1],a=t[0],o=r[a];if(o==null||!Y(o)){bg(e,a,o,!0),n.pop();continue}let s=i.get(a);if(s==null||t[1]>=s.childIds.length){bg(e,a,o,!0),n.pop();continue}let c=s.childIds[t[1]++];n.push([c,0])}}function Yh(e,t){let n=[],r=t;for(;r!=null;){let t=Z(e,r);if(n.push(r),r===e.snapshot.rootId)break;r=t.parentId}return n}function Xh(e,t){if(t.length===0)return e.snapshot.rootId;let n=Mm(t);return Zh(e,n.segments,n.requiresDirectory)}function Zh(e,t,n){let r=e.snapshot.rootId;for(let n of t){let t=e.snapshot.segmentTable.idByValue.get(n);if(t===void 0)return null;let i=Qh(e,r),a=Kp(e.snapshot.nodes,i).get(t);if(a===void 0)return null;r=a}let i=Z(e,r);return n&&!Y(i)?null:r}function Qh(e,t){let n=e.snapshot.directories.get(t);if(n===void 0)throw Error(`Unknown directory child index for node ${String(t)}`);return n}function Z(e,t){let n=e.snapshot.nodes[t];if(n===void 0||um(n,4))throw Error(`Unknown node ID: ${String(t)}`);return n}function $h(e,t){let n=e.snapshot.nodes[t];if(n===void 0||um(n,4))return[];if(!Y(n))return[Kh(e,t)];if(Qh(e,t).childIds.length===0)return um(n,1)&&!um(n,2)?[Kh(e,t)]:[];let r=[],i=[{childIndex:0,nodeId:t}];for(;i.length>0;){let t=i[i.length-1];if(t==null)break;let n=e.snapshot.nodes[t.nodeId];if(n===void 0||um(n,4)){i.pop();continue}if(!Y(n)){r.push(Kh(e,t.nodeId)),i.pop();continue}let a=Qh(e,t.nodeId);if(a.childIds.length===0){um(n,1)&&!um(n,2)&&r.push(Kh(e,t.nodeId)),i.pop();continue}let o=a.childIds[t.childIndex];if(o==null){i.pop();continue}t.childIndex++,i.push({childIndex:0,nodeId:o})}return r}function eg(e,t){let n=[],r=e.snapshot.rootId;for(let i of t){let t=Pm(e.snapshot.segmentTable,i),a=Qh(e,r),o=Kp(e.snapshot.nodes,a).get(t);if(o!==void 0){if(!Y(Z(e,o)))throw Error(`Cannot create a directory that collides with an existing file: "${i}"`);r=o;continue}r=tg(e,r,t),n.push(r)}return{createdNodeIds:n,directoryId:r}}function tg(e,t,n){let r=Z(e,t),i=e.snapshot.nodes.length;return e.snapshot.nodes.push({depthAndFlags:om(sm(r)+1,0,1),nameId:n,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),e.snapshot.directories.set(i,Wp()),ig(e,t,i),e.collapseNewDirectoriesByDefault&&(e.collapsedDirectoryIds.add(i),e.hasCollapsedDirectoryOverrides=!0),e.activeNodeCount++,i}function ng(e,t,n){let r=Pm(e.snapshot.segmentTable,n),i=Qh(e,t);if(Kp(e.snapshot.nodes,i).has(r))throw Error(`Path already exists: "${Cg(e,t,n)}"`);let a=Z(e,t),o=e.snapshot.nodes.length;return e.snapshot.nodes.push({depthAndFlags:om(sm(a)+1,0),nameId:r,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),ig(e,t,o),e.activeNodeCount++,o}function rg(e,t,n){let r=0,i=t.childIds.length;for(;r<i;){let a=r+i>>>1,o=t.childIds[a];if(o==null){i=a;continue}og(e,n,o)<0?i=a:r=a+1}return r}function ig(e,t,n){let r=Qh(e,t),i=Z(e,n);Kp(e.snapshot.nodes,r).set(i.nameId,n),Zp(r,n,i.subtreeNodeCount,i.visibleSubtreeCount);let a=rg(e,r,n);r.childIds.splice(a,0,n),Yp(r,a),em(e.snapshot.nodes,r)}function ag(e,t,n,r){let i=Qh(e,t),a=qp(i),o=a.get(n)??-1;Kp(e.snapshot.nodes,i).delete(r),a.delete(n);let s=e.snapshot.nodes[n];s!=null&&Zp(i,n,-s.subtreeNodeCount,-s.visibleSubtreeCount),o>=0&&(i.childIds.splice(o,1),Yp(i,o),em(e.snapshot.nodes,i))}function og(e,t,n){let r=e.snapshot.options.sort;return r==="default"?sg(e,t,n):r(cg(e,t),cg(e,n))}function sg(e,t,n){let r=Z(e,t),i=Z(e,n),a=Y(r);if(a!==Y(i))return a?-1:1;let o=xm(Om(e.snapshot.segmentTable,r.nameId),Om(e.snapshot.segmentTable,i.nameId));if(o!==0)return o;let s=Fm(e.snapshot.segmentTable,r.nameId),c=Fm(e.snapshot.segmentTable,i.nameId);return s===c?t<n?-1:1:s<c?-1:1}function cg(e,t){let n=Z(e,t),r=Kh(e,t),i=Y(n),a=i?r.slice(0,-1):r;return{basename:Fm(e.snapshot.segmentTable,n.nameId),depth:sm(n),isDirectory:i,path:r,segments:a.length===0?[]:a.split(`/`)}}function lg(e,t,n){let r=Z(e,t),i=Xh(e,n);if(i!=null){let t=Z(e,i);if(Y(t))return{basename:Fm(e.snapshot.segmentTable,r.nameId),existingNodeId:null,parentId:i};let a=Mm(n).segments;return{basename:a[a.length-1]??``,existingNodeId:i,parentId:t.parentId}}let a=Mm(n),o=a.segments[a.segments.length-1]??``,s=a.segments.slice(0,-1),c=s.length===0?e.snapshot.rootId:Zh(e,s,!0);if(c==null)throw Error(`Destination parent does not exist: "${n}"`);return{basename:o,existingNodeId:null,parentId:c}}function ug(e,t,n,r){if(n===`skip`)return`skip`;if(n===`error`)throw Error(`Destination already exists: "${Kh(e,t)}"`);let i=Z(e,t);if(cm(i)!==r)throw Error(`replace collision requires the same source and destination kinds`);if(Y(i)&&Qh(e,t).childIds.length>0)throw Error(`replace collision does not support non-empty directories`);let a=i.parentId,o=i.nameId;return dg(e,t),ag(e,a,t,o),fg(e,a),qh(e,a),`handled`}function dg(e,t){let n=[],r=[{nodeId:t,visitedChildren:!1}];for(;r.length>0;){let t=r.pop();if(t==null)break;let i=Z(e,t.nodeId);if(t.visitedChildren||!Y(i)){Y(i)&&e.snapshot.directories.delete(t.nodeId),dm(i,4),e.pathCacheByNodeId.delete(t.nodeId),e.collapsedDirectoryIds.delete(t.nodeId)&&(e.hasCollapsedDirectoryOverrides=e.collapsedDirectoryIds.size>0),e.expandedDirectoryIds.delete(t.nodeId),fh(e,t.nodeId),e.activeNodeCount--,n.push(t.nodeId);continue}r.push({nodeId:t.nodeId,visitedChildren:!0});let a=Qh(e,t.nodeId);for(let e=a.childIds.length-1;e>=0;e--){let t=a.childIds[e];t!=null&&r.push({nodeId:t,visitedChildren:!1})}}return n}function fg(e,t){let n=t;for(;n!=null;){let t=Z(e,n);if(!Y(t)||um(t,2)||Qh(e,n).childIds.length>0)return;dm(t,1),n=t.parentId===n?null:t.parentId}}function pg(e,t){let n=e.snapshot.rootId;for(let r of t){let t=e.snapshot.segmentTable.idByValue.get(r);if(t==null)break;let i=Kp(e.snapshot.nodes,Qh(e,n)).get(t);if(i==null||!Y(Z(e,i)))break;n=i}return n}function mg(e,t){let n=_g(e,t);if(n==null)return null;let r=Rh(e,n),i=Z(e,r),a=n===r?null:zh(e,n).map(t=>Kh(e,t));return JSON.stringify({flattenedSegmentPaths:a,hasChildren:Qh(e,r).childIds.length>0,path:Kh(e,r),terminalKind:cm(i)})}function hg(e,t){return gg([e],[t])}function gg(e,t){for(let n=0;n<e.length;n+=1){let r=e[n],i=t[n];if(r==null||i==null||r!==i)return!0}return!1}function _g(e,t){let n=t;for(;n!=null;){let t=Z(e,n);if(!Y(t)||um(t,2))return null;if(!rh(e,n,t))return n;n=t.parentId}return null}function vg(e,t){let n=Z(e,t);if(fm(n,(t===e.snapshot.rootId?-1:sm(Z(e,n.parentId)))+1),!Y(n))return;let r=Qh(e,t);for(let t of r.childIds)vg(e,t)}function yg(e,t,n){let r=n;for(;r!=null;){if(r===t)return!0;let n=Z(e,r);if(r===e.snapshot.rootId)return!1;r=n.parentId}return!1}function bg(e,t,n=Z(e,t),r=!1){let i=e.instrumentation;if(i==null){Sg(e,t,n,r);return}X(i,`store.recomputeNodeCounts`,()=>Sg(e,t,n,r))}function xg(e,t){let n=t;for(;n!=null;){let t=Z(e,n),r=t.subtreeNodeCount,i=t.visibleSubtreeCount;if(bg(e,n,t),n===e.snapshot.rootId)return;let a=t.subtreeNodeCount-r,o=t.visibleSubtreeCount-i,s=t.parentId;(a!==0||o!==0)&&Zp(Qh(e,s),n,a,o),n=s}}function Sg(e,t,n,r){if(!Y(n)){n.subtreeNodeCount=1,n.visibleSubtreeCount=1;return}let i=Qh(e,t);if(r){let t=e.instrumentation;t==null?Xp(e.snapshot.nodes,i):X(t,`store.recomputeNodeCounts.rebuildChildAggregates`,()=>Xp(e.snapshot.nodes,i))}let a=1+i.totalChildSubtreeNodeCount,o=i.totalChildVisibleSubtreeCount;if(n.subtreeNodeCount=a,um(n,2)){n.visibleSubtreeCount=o;return}n.visibleSubtreeCount=Lh(e,t)==null?rh(e,t,n)?1+o:1:o}function Cg(e,t,n){let r=Kh(e,t);return r.length===0?n:`${r}${n}`}function wg(e){return e!=null&&!um(e,4)}function Tg(e,t){let n=e.snapshot.nodes[t];return!wg(n)||!Y(n)||um(n,2)?null:n}function Eg(e){let t=0;for(let[n,r]of e.pathCacheByNodeId)r.version===e.pathCacheVersion&&wg(e.snapshot.nodes[n])&&(t+=1);return t}function Dg(e){return Math.max(0,e.valueById.length-1)}function Og(e){return{activeNodeCount:e.activeNodeCount,cachedPathEntryCount:Eg(e),loadInfoEntryCount:e.directoryLoadInfoById.size,segmentCount:Dg(e.snapshot.segmentTable),totalNodeSlotCount:Math.max(0,e.snapshot.nodes.length-1)}}function kg(e,t,n,r){return{activeNodeCountAfter:r.activeNodeCount,activeNodeCountBefore:n.activeNodeCount,cachedPathEntryCountAfter:r.cachedPathEntryCount,cachedPathEntryCountBefore:n.cachedPathEntryCount,idsPreserved:t,loadInfoEntryCountAfter:r.loadInfoEntryCount,loadInfoEntryCountBefore:n.loadInfoEntryCount,mode:e,reclaimedCachedPathEntryCount:n.cachedPathEntryCount-r.cachedPathEntryCount,reclaimedLoadInfoEntryCount:n.loadInfoEntryCount-r.loadInfoEntryCount,reclaimedNodeSlotCount:n.totalNodeSlotCount-r.totalNodeSlotCount,reclaimedSegmentCount:n.segmentCount-r.segmentCount,segmentCountAfter:r.segmentCount,segmentCountBefore:n.segmentCount,totalNodeSlotCountAfter:r.totalNodeSlotCount,totalNodeSlotCountBefore:n.totalNodeSlotCount}}function Ag(e){let t=[],n=[];for(let n of e.collapsedDirectoryIds)Tg(e,n)!=null&&t.push(Kh(e,n));for(let t of e.expandedDirectoryIds)Tg(e,t)!=null&&n.push(Kh(e,t));return{collapsedPaths:t,expandedPaths:n}}function jg(e){let t=[];for(let[n,r]of e.directoryLoadInfoById)Tg(e,n)!=null&&oh(e,n)!==`loaded`&&t.push({info:{activeAttemptId:null,errorMessage:r.errorMessage,nextAttemptId:r.nextAttemptId,state:r.state},path:Kh(e,n)});return t}function Mg(e,t){e.collapsedDirectoryIds.clear(),e.hasCollapsedDirectoryOverrides=!1,e.expandedDirectoryIds.clear();for(let n of t.expandedPaths){let t=Xh(e,n);t!=null&&ih(e,t,!0,Z(e,t))}for(let n of t.collapsedPaths){let t=Xh(e,n);t!=null&&ih(e,t,!1,Z(e,t))}}function Ng(e,t){e.directoryLoadInfoById.clear();for(let n of t){let t=Xh(e,n.path);t!=null&&Tg(e,t)!=null&&e.directoryLoadInfoById.set(t,{activeAttemptId:null,errorMessage:n.info.errorMessage,nextAttemptId:n.info.nextAttemptId,state:n.info.state})}}function Pg(e){e.pathCacheVersion+=1,e.pathCacheByNodeId.clear(),e.pathCacheByNodeId.set(e.snapshot.rootId,{path:``,version:e.pathCacheVersion})}function Fg(e){let t=e.snapshot.segmentTable,n=Nm();for(let r of e.snapshot.nodes)if(wg(r)){if(um(r,2)){r.nameId=0;continue}r.nameId=Pm(n,Fm(t,r.nameId))}e.snapshot.segmentTable=n}function Ig(e){for(let[t,n]of e.snapshot.directories){let r=e.snapshot.nodes[t];if(!wg(r)||!Y(r)){e.snapshot.directories.delete(t);continue}let i=n.childIds.filter(n=>{let r=e.snapshot.nodes[n];return wg(r)&&r.parentId===t});n.childIds=i,n.childIdByNameId=new Map(i.map(t=>[Z(e,t).nameId,t])),n.childPositionById=new Map(i.map((e,t)=>[e,t])),Xp(e.snapshot.nodes,n)}}function Lg(e){let t=e.snapshot.nodes.length-1;for(;t>e.snapshot.rootId;){let n=e.snapshot.nodes[t];if(wg(n))break;--t}e.snapshot.nodes.length=t+1}function Rg(e){let t=Ag(e),n=jg(e);X(e.instrumentation,`store.cleanup.stable.clearPathCaches`,()=>Pg(e)),X(e.instrumentation,`store.cleanup.stable.rebuildSegmentTable`,()=>Fg(e)),X(e.instrumentation,`store.cleanup.stable.rebuildDirectoryIndexes`,()=>Ig(e)),X(e.instrumentation,`store.cleanup.stable.trimTrailingRemovedNodeSlots`,()=>Lg(e)),X(e.instrumentation,`store.cleanup.stable.restoreExpansionOverrides`,()=>Mg(e,t)),X(e.instrumentation,`store.cleanup.stable.restoreDirectoryLoadInfos`,()=>Ng(e,n)),X(e.instrumentation,`store.cleanup.stable.recomputeCounts`,()=>Jh(e,e.snapshot.rootId))}function zg(e){let t=Ag(e),n=jg(e),r=X(e.instrumentation,`store.cleanup.aggressive.listPaths`,()=>Bh(e)),i=mm({...e.snapshot.options},e.instrumentation),a=X(e.instrumentation,`store.cleanup.aggressive.rebuildSnapshot`,()=>{let e=new Qm(i);return e.appendPaths(r),e.finish()});e.snapshot=a,e.activeNodeCount=a.nodes.length-1,e.pathCacheByNodeId=new Map([[a.rootId,{path:``,version:0}]]),e.pathCacheVersion=0,X(e.instrumentation,`store.cleanup.aggressive.restoreExpansionOverrides`,()=>Mg(e,t)),X(e.instrumentation,`store.cleanup.aggressive.restoreDirectoryLoadInfos`,()=>Ng(e,n)),X(e.instrumentation,`store.cleanup.aggressive.recomputeCounts`,()=>Jh(e,e.snapshot.rootId))}function Bg(e){for(let t of e.directoryLoadInfoById.values())if(t.state===`loading`&&t.activeAttemptId!=null)return!0;return!1}function Vg(e,t){let n=Og(e);t===`stable`?X(e.instrumentation,`store.cleanup.stable`,()=>Rg(e)):X(e.instrumentation,`store.cleanup.aggressive`,()=>zg(e));let r=Og(e);return kg(t,t===`stable`,n,r)}var Hg=64;function Ug(e,t){let n=t+2;if(n<=e.length)return e;let r=e.length;for(;r<n;)r*=2;let i=new Int32Array(r);return i.fill(-1),i.set(e),i}function Wg(e){return Z(e,e.snapshot.rootId).visibleSubtreeCount}function Gg(e,t,n,r){let i=Z(e,t.terminalNodeId),a=Math.max(1,i.visibleSubtreeCount);return Math.min(r-1,n+a-1)}function Kg(e,t,n,r){return{ancestorPaths:r,index:t.index,posInSet:t.posInSet,row:d_(e,t.cursor),setSize:t.setSize,subtreeEndIndex:Gg(e,t.cursor,t.index,n)}}function qg(e,t,n,r,i,a){let o=Qh(e,t),{childIndex:s,childVisibleIndex:c,localVisibleIndex:l}=Qp(e.snapshot.nodes,o,n),u=o.childIds[s];if(u==null)throw Error(`Visible index ${String(n)} is out of range`);return Jg(e,u,l,r+c,i+1,s,o.childIds.length,a)}function Jg(e,t,n,r,i,a,o,s){if(!Y(Z(e,t))){if(n===0)return{ancestors:s,cursor:{headNodeId:t,terminalNodeId:t,visibleDepth:i},index:r,posInSet:a,setSize:o};throw Error(`Visible index ${String(n)} is out of range for file`)}let c=a_(e,t,i);if(n===0)return{ancestors:s,cursor:c,index:r,posInSet:a,setSize:o};let l=Z(e,c.terminalNodeId);if(!Y(l)||!rh(e,c.terminalNodeId,l))throw Error(`Visible index ${String(n)} is out of range for collapsed directory`);return qg(e,c.terminalNodeId,n-1,r+1,c.visibleDepth,[...s,{cursor:c,index:r,posInSet:a,setSize:o}])}function Yg(e,t){let n=Wg(e);if(t<0||t>=n)return null;let r=qg(e,e.snapshot.rootId,t,0,-1,[]),i=r.ancestors.map(t=>Kh(e,t.cursor.terminalNodeId)),a=null;return{ancestorPaths:i,get ancestorRows(){if(a!=null)return a;let t=[],i=[];for(let a of r.ancestors){let r=Kg(e,a,n,[...i]);t.push(r),i.push(r.row.path)}return a=t,a},index:r.index,posInSet:r.posInSet,row:d_(e,r.cursor),setSize:r.setSize,subtreeEndIndex:Gg(e,r.cursor,r.index,n)}}function Xg(e,t,n){let r=e.instrumentation,i=Wg(e);if(i<=0||n<t)return[];let a=Math.max(0,Math.min(t,i-1)),o=Math.max(a,Math.min(n,i-1));if(r==null){if(a===0)return u_(e,o+1);let t=[],n=n_(e,a);for(let r=a;r<=o&&n!=null;r++){let r=d_(e,n);t.push(r),n=s_(e,n)}return t}let s=[],c=0,l=0,u=X(r,`store.getVisibleSlice.selectFirstRow`,()=>n_(e,a));for(let t=a;t<=o&&u!=null;t++){let t=X(r,`store.getVisibleSlice.materializeRow`,()=>d_(e,u));s.push(t),t.isFlattened&&(c++,l+=t.flattenedSegments?.length??0),u=X(r,`store.getVisibleSlice.advanceCursor`,()=>s_(e,u))}return gm(r,`workload.visibleRowsRead`,s.length),gm(r,`workload.flattenedRowsRead`,c),gm(r,`workload.flattenedSegmentsRead`,l),s}function Zg(e,t=Wg(e)){let n=e.instrumentation;return n==null?l_(e,t):X(n,`store.getVisibleTreeProjection`,()=>l_(e,t))}function Qg(e){return c_(Zg(e))}function $g(e,t){let n=Xh(e,t);if(n==null||n===e.snapshot.rootId||Y(Z(e,n))&&Rh(e,n)!==n)return null;let r=0,i=n,{nodes:a,rootId:o}=e.snapshot;for(;i!==o;){let t=Z(e,i).parentId,n=Qh(e,t),s=qp(n).get(i);if(s==null)throw Error(`Child ${String(i)} was not found in its parent index`);if(r+=$p(a,n,s),t!==o){let n=Z(e,t),a=Lh(e,t);if(!rh(e,t,n)&&a!==i)return null;Rh(e,t)===t&&(r+=1)}i=t}return r}function e_(e,t){let n=Xh(e,t);if(n==null)throw Error(`Path does not exist: "${t}"`);let r=Z(e,n);if(!Y(r))throw Error(`Path is not a directory: "${t}"`);return rh(e,n,r)?null:(ih(e,n,!0,r),qh(e,n),_h({affectedAncestorIds:Yh(e,n),affectedNodeIds:[n],path:t,projectionChanged:!0}))}function t_(e,t){let n=Xh(e,t);if(n==null)throw Error(`Path does not exist: "${t}"`);let r=Z(e,n);if(!Y(r))throw Error(`Path is not a directory: "${t}"`);return rh(e,n,r)?(ih(e,n,!1,r),qh(e,n),vh({affectedAncestorIds:Yh(e,n),affectedNodeIds:[n],path:t,projectionChanged:!0})):null}function n_(e,t){return t<0||t>=Wg(e)?null:r_(e,e.snapshot.rootId,t,-1)}function r_(e,t,n,r){let i=Qh(e,t),a=e.instrumentation,{childIndex:o,localVisibleIndex:s}=a==null?Qp(e.snapshot.nodes,i,n):X(a,`store.getVisibleSlice.selectChildIndex`,()=>Qp(e.snapshot.nodes,i,n)),c=i.childIds[o];if(c!=null)return i_(e,c,s,r+1);throw Error(`Visible index ${String(n)} is out of range`)}function i_(e,t,n,r){if(!Y(Z(e,t))){if(n===0)return{headNodeId:t,terminalNodeId:t,visibleDepth:r};throw Error(`Visible index ${String(n)} is out of range for file`)}let i=a_(e,t,r);if(n===0)return i;let a=Z(e,i.terminalNodeId);if(!Y(a)||!rh(e,i.terminalNodeId,a))throw Error(`Visible index ${String(n)} is out of range for collapsed directory`);return r_(e,i.terminalNodeId,n-1,i.visibleDepth)}function a_(e,t,n){return Y(Z(e,t))?e.instrumentation==null?{headNodeId:t,terminalNodeId:Rh(e,t),visibleDepth:n}:{headNodeId:t,terminalNodeId:X(e.instrumentation,`store.getVisibleSlice.flatten.resolveTerminalDirectory`,()=>Rh(e,t)),visibleDepth:n}:{headNodeId:t,terminalNodeId:t,visibleDepth:n}}function o_(e,t){let n=Z(e,t);if(!Y(n))return!0;let r=n.parentId;return r===e.snapshot.rootId||Lh(e,r)!==t}function s_(e,t){let n=Z(e,t.terminalNodeId);if(Y(n)){let r=Qh(e,t.terminalNodeId);if(rh(e,t.terminalNodeId,n)&&r.childIds.length>0){let n=r.childIds[0];return n==null?null:i_(e,n,0,t.visibleDepth+1)}}let r=t.terminalNodeId,i=t.visibleDepth;for(;;){let t=Z(e,r);if(r===e.snapshot.rootId)return null;let n=t.parentId,a=Qh(e,n),o=qp(a).get(r)??-1;if(o<0)throw Error(`Child ${String(r)} was not found in its parent index`);let s=a.childIds[o+1]??null;if(s!=null)return i_(e,s,0,i);o_(e,r)&&i--,r=n}}function c_(e){let t=e.paths.length,n=Array(t);for(let r=0;r<t;r+=1){let t=e.getParentIndex(r);n[r]={index:r,parentPath:t>=0?e.paths[t]??null:null,path:e.paths[r]??``,posInSet:e.posInSetByIndex[r]??0,setSize:e.setSizeByIndex[r]??0}}return{getParentIndex:e.getParentIndex,rows:n,get visibleIndexByPath(){return e.visibleIndexByPath}}}function l_(e,t){let n=Array(t),r=new Int32Array(t),i=new Int32Array(t),a=new Int32Array(t),o=new Int32Array(Hg);o.fill(-1);let s=0,{nodes:c,directories:l,segmentTable:u}=e.snapshot,d=[[l.get(e.snapshot.rootId),0,-1,``]],f=e.snapshot.options.flattenEmptyDirectories,p=e.pathCacheByNodeId,m=e.pathCacheVersion,h=u.valueById;for(;d.length>0&&s<t;){let t=d[d.length-1],u=t[0];if(t[1]>=u.childIds.length){d.pop();continue}let g=t[1],_=u.childIds[t[1]++],v=c[_],y=t[2]+1,b=t[3];o=Ug(o,y);let x,S=_;if(Y(v))S=f?Rh(e,_):_,x=S===_?`${b}${h[v.nameId]}/`:Kh(e,S);else{let e=p.get(_);x=e!=null&&e.version===m?e.path:`${b}${h[v.nameId]}`}r[s]=o[y],n[s]=x,i[s]=g,a[s]=u.childIds.length,o[y+1]=s,s+=1;let C=c[S];C!=null&&Y(C)&&rh(e,S,C)&&d.push([l.get(S),0,y,x])}s<t&&(n.length=s);let g=r.subarray(0,s),_=i.subarray(0,s),v=a.subarray(0,s),y=null;return{getParentIndex(e){return e<0||e>=s?-1:g[e]??-1},paths:n,posInSetByIndex:_,setSizeByIndex:v,get visibleIndexByPath(){if(y==null){y=new Map;for(let e=0;e<s;e+=1)y.set(n[e]??``,e)}return y}}}function u_(e,t){let n=Array(t),r=0,{nodes:i,directories:a,segmentTable:o}=e.snapshot,s=[[a.get(e.snapshot.rootId),0,-1]],c=o.valueById,l=e.snapshot.options.flattenEmptyDirectories,u=e.pathCacheByNodeId,d=e.pathCacheVersion;for(;s.length>0&&r<t;){let t=s[s.length-1],o=t[0];if(t[1]>=o.childIds.length){s.pop();continue}let f=o.childIds[t[1]++],p=i[f],m=t[2]+1;if(!Y(p)){let t=u.get(f);n[r++]={depth:m,flattenedSegments:void 0,hasChildren:!1,id:f,isExpanded:!1,isFlattened:!1,isLoading:!1,kind:`file`,loadState:void 0,name:c[p.nameId],path:t!=null&&t.version===d?t.path:Kh(e,f)};continue}let h=l?Rh(e,f):f,g={headNodeId:f,terminalNodeId:h,visibleDepth:m};n[r++]=d_(e,g);let _=i[h];_!=null&&Y(_)&&rh(e,h,_)&&s.push([a.get(h),0,m])}return r<t&&(n.length=r),n}function d_(e,t){let n=Z(e,t.terminalNodeId),r=Y(n)?f_(e,t):null,i=Kh(e,t.terminalNodeId),a=Fm(e.snapshot.segmentTable,n.nameId),o=Y(n)&&Qh(e,t.terminalNodeId).childIds.length>0,s=t.headNodeId!==t.terminalNodeId,c=e.instrumentation,l=s?c==null?zh(e,t.headNodeId).map(n=>{let r=Z(e,n);return{isTerminal:n===t.terminalNodeId,name:Fm(e.snapshot.segmentTable,r.nameId),nodeId:n,path:Kh(e,n)}}):X(c,`store.getVisibleSlice.flatten.collectSegments`,()=>zh(e,t.headNodeId).map(n=>{let r=Z(e,n);return{isTerminal:n===t.terminalNodeId,name:Fm(e.snapshot.segmentTable,r.nameId),nodeId:n,path:Kh(e,n)}})):void 0;return{depth:t.visibleDepth,flattenedSegments:l,hasChildren:o,id:t.terminalNodeId,isExpanded:Y(n)&&rh(e,t.terminalNodeId,n),isFlattened:s,isLoading:r===`loading`,kind:Y(n)?`directory`:`file`,loadState:r==null||r===`loaded`?void 0:r,name:a,path:i}}function f_(e,t){if(t.headNodeId===t.terminalNodeId)return oh(e,t.terminalNodeId);let n=zh(e,t.headNodeId),r=!1,i=!1;for(let t of n){let n=oh(e,t);if(n===`loading`)return`loading`;if(n===`error`){i=!0;continue}n===`unloaded`&&(r=!0)}return i?`error`:r?`unloaded`:`loaded`}var p_=8;function m_(e){let{nodes:t,directories:n,rootId:r,options:i}=e,a=t.length,o=new Int32Array(a),s=new Int32Array(a),c=new Int32Array(a),l=new Int32Array(a),u=new Int32Array(a),d=new Int32Array(a),f=new Int32Array(a);for(let e=0;e<a;e+=1){let n=t[e];n!=null&&(o[e]=n.parentId,s[e]=n.nameId,c[e]=n.depthAndFlags,l[e]=n.subtreeNodeCount,u[e]=n.visibleSubtreeCount)}let p=0;for(let e of n.values())p+=e.childIds.length;let m=new Int32Array(p),h=0;for(let[e,t]of n){let n=t.childIds;d[e]=h,f[e]=n.length;for(let e=0;e<n.length;e+=1)m[h]=n[e],h+=1}return{nodeCount:a,rootId:r,flattenEmptyDirectories:i.flattenEmptyDirectories===!0,parentId:o,nameId:s,depthAndFlags:c,subtreeNodeCount:l,visibleSubtreeCount:u,childStart:d,childCount:f,childIdsFlat:m}}function h_(e){let{nodeCount:t,rootId:n,flattenEmptyDirectories:r,depthAndFlags:i,subtreeNodeCount:a,visibleSubtreeCount:o,childStart:s,childCount:c,childIdsFlat:l}=e;for(let e=t-1;e>=1;--e){if((i[e]&p_)===0)continue;let t=s[e],n=c[e],u=0,d=0;for(let e=0;e<n;e+=1){let n=l[t+e];u+=a[n],d+=o[n]}a[e]=1+u;let f;f=r&&n===1?(i[l[t]]&p_)===0?1+d:d:1+d,o[e]=f}let u=s[n],d=c[n],f=0,p=0;for(let e=0;e<d;e+=1){let t=l[u+e];f+=a[t],p+=o[t]}a[n]=1+f,o[n]=p}function g_(e){let{directories:t,nodes:n,options:r,rootId:i,presortedDirectoryNodeIds:a}=e.snapshot,o=r.flattenEmptyDirectories===!0,s=e=>{let r=n[e];if(r==null||!Y(r))return;let i=t.get(e);if(i==null)throw Error(`Unknown directory child index for node ${String(e)}`);let a=i.childIds,s=a.length,c=0,l=0;for(let e=0;e<s;e++){let t=a[e];if(t==null)continue;let r=n[t];c+=r.subtreeNodeCount,l+=r.visibleSubtreeCount}i.totalChildSubtreeNodeCount=c,i.totalChildVisibleSubtreeCount=l,s>=128&&em(n,i),r.subtreeNodeCount=1+c;let u;if(o&&s===1){let e=n[a[0]];u=e!=null&&Y(e)?l:1+l}else u=1+l;r.visibleSubtreeCount=u};if(a!=null)for(let e=a.length-1;e>=0;e--)s(a[e]);else for(let e=n.length-1;e>=1;e--)s(e);let c=n[i],l=t.get(i);if(c==null||l==null)return;let u=l.childIds,d=0,f=0;for(let e=0;e<u.length;e++){let t=u[e];if(t==null)continue;let r=n[t];d+=r.subtreeNodeCount,f+=r.visibleSubtreeCount}l.totalChildSubtreeNodeCount=d,l.totalChildVisibleSubtreeCount=f,em(n,l),c.subtreeNodeCount=1+d,c.visibleSubtreeCount=f}function __(e){let{directories:t,nodes:n,rootId:r}=e.snapshot,i=m_(e.snapshot);h_(i);let a=i.subtreeNodeCount,o=i.visibleSubtreeCount;for(let e=0;e<n.length;e+=1){let t=n[e];t!=null&&(t.subtreeNodeCount=a[e],t.visibleSubtreeCount=o[e])}for(let[e,i]of t){let t=i.childIds,a=t.length,o=0,s=0;for(let e=0;e<a;e++){let r=t[e];if(r==null)continue;let i=n[r];o+=i.subtreeNodeCount,s+=i.visibleSubtreeCount}i.totalChildSubtreeNodeCount=o,i.totalChildVisibleSubtreeCount=s,(e===r||a>=128)&&em(n,i)}}function v_(e){return e.initialExpansion===`open`&&(e.initialExpandedPaths==null||e.initialExpandedPaths.length===0)}var y_=class e{#e;constructor(e={}){let t=hm(e),n=X(t,`store.builder.create`,()=>new Qm(e));if(e.preparedInput!=null){let t=Ym(e.preparedInput);t==null?n.appendPreparedPaths(Jm(e.preparedInput),!1):n.appendPresortedPaths(t,Xm(e.preparedInput))}else{let r=e.paths??[];e.presorted===!0?n.appendPaths(r):n.appendPreparedPaths(X(t,`store.preparePathEntries`,()=>Zm(r,e)))}let r=X(t,`store.builder.finish`,()=>n.finish({skipSubtreeCountPass:!0})),i=X(t,`store.state.detectAllDirectoriesExpanded`,()=>(e.initialExpansion??`closed`)===`closed`&&n.didMatchAllInitialExpandedPaths());this.#e=X(t,`store.state.create`,()=>$m(r,i?`open`:e.initialExpansion??`closed`,t)),i&&(this.#e.collapseNewDirectoriesByDefault=!0);let a=i?this.#e.snapshot.directories.size-1:X(t,`store.state.initializeExpandedPaths`,()=>this.initializeExpandedPaths(e.initialExpandedPaths));i||v_(e)||(e.initialExpansion??`closed`)===`closed`&&a===this.#e.snapshot.directories.size-1||(e.initialExpandedPaths?.length??0)>0&&X(t,`store.state.checkAllDirectoriesExpanded`,()=>this.hasAllDirectoriesExpanded())?e.useSoaCountSweep===!0?X(t,`store.state.initializeOpenVisibleCountsViaSoa`,()=>__(this.#e)):X(t,`store.state.initializeOpenVisibleCounts`,()=>g_(this.#e)):X(t,`store.state.recomputeCounts`,()=>Jh(this.#e,this.#e.snapshot.rootId))}static preparePaths(e,t={}){return Gm(e,t)}static prepareInput(e,t={}){return Km(e,t)}static preparePresortedInput(e){return qm(e)}list(e){return X(this.#e.instrumentation,`store.list`,()=>Bh(this.#e,e))}add(e){X(this.#e.instrumentation,`store.add`,()=>{let t=Wg(this.#e);Dh(this.#e,Th(this.#e,t,Vh(this.#e,e)))})}remove(e,t={}){X(this.#e.instrumentation,`store.remove`,()=>{let n=Wg(this.#e);Dh(this.#e,Th(this.#e,n,Hh(this.#e,e,t)))})}move(e,t,n={}){X(this.#e.instrumentation,`store.move`,()=>{let r=Wg(this.#e),i=Uh(this.#e,e,t,n);i!=null&&Dh(this.#e,Th(this.#e,r,i))})}batch(e){Eh(this.#e,()=>{if(typeof e==`function`){e(this);return}for(let t of e)switch(t.type){case`add`:this.add(t.path);break;case`remove`:this.remove(t.path,{recursive:t.recursive});break;case`move`:this.move(t.from,t.to,{collision:t.collision})}})}getVisibleCount(){return X(this.#e.instrumentation,`store.getVisibleCount`,()=>Wg(this.#e))}getVisibleSlice(e,t){return X(this.#e.instrumentation,`store.getVisibleSlice`,()=>Xg(this.#e,e,t))}getVisibleRowContext(e){return X(this.#e.instrumentation,`store.getVisibleRowContext`,()=>Yg(this.#e,e))}getVisibleTreeProjection(){return Qg(this.#e)}getVisibleTreeProjectionData(e){return Zg(this.#e,e)}getVisibleIndex(e){return X(this.#e.instrumentation,`store.getVisibleIndex`,()=>$g(this.#e,e))}getPathInfo(e){return X(this.#e.instrumentation,`store.getPathInfo`,()=>{let t=Xh(this.#e,e);if(t==null)return null;let n=Z(this.#e,t);return{depth:sm(n),kind:Y(n)?`directory`:`file`,path:Kh(this.#e,t)}})}isExpanded(e){return X(this.#e.instrumentation,`store.isExpanded`,()=>{let t=this.requireDirectoryNodeId(e),n=Z(this.#e,t);return rh(this.#e,t,n)})}expand(e){X(this.#e.instrumentation,`store.expand`,()=>{let t=Wg(this.#e),n=e_(this.#e,e);n!=null&&Dh(this.#e,Th(this.#e,t,n))})}collapse(e){X(this.#e.instrumentation,`store.collapse`,()=>{let t=Wg(this.#e),n=t_(this.#e,e);n!=null&&Dh(this.#e,Th(this.#e,t,n))})}on(e,t){return ph(this.#e,e,t)}getDirectoryLoadState(e){let t=this.requireDirectoryNodeId(e);return oh(this.#e,t)}markDirectoryUnloaded(e){X(this.#e.instrumentation,`store.markDirectoryUnloaded`,()=>{let t=this.requireDirectoryNodeId(e);if(Qh(this.#e,t).childIds.length>0)throw Error(`Cannot mark a directory with known children as unloaded: "${e}"`);let n=Wg(this.#e);ch(this.#e,t),Dh(this.#e,Th(this.#e,n,yh({affectedAncestorIds:Yh(this.#e,t),affectedNodeIds:[t],path:e,projectionChanged:this.isDirectoryProjectionVisible(t)})))})}beginChildLoad(e){return X(this.#e.instrumentation,`store.beginChildLoad`,()=>{let t=this.requireDirectoryNodeId(e),n=Wg(this.#e),r=sh(this.#e,t);return Dh(this.#e,Th(this.#e,n,bh({affectedAncestorIds:Yh(this.#e,t),affectedNodeIds:[t],attemptId:r.attemptId,path:e,projectionChanged:this.isDirectoryProjectionVisible(t),reused:r.reused}))),r})}applyChildPatch(e,t){return X(this.#e.instrumentation,`store.applyChildPatch`,()=>{let n=this.resolveActiveDirectoryNodeId(e.nodeId);if(n==null||oh(this.#e,n)!==`loading`||!uh(this.#e,n,e.attemptId))return!1;let r=Kh(this.#e,n);this.validateChildPatch(r,t);let i=Wg(this.#e),a=[];for(let e of t.operations){b_(r,e);let t=Wg(this.#e);switch(e.type){case`add`:a.push(Th(this.#e,t,Vh(this.#e,e.path)));break;case`remove`:a.push(Th(this.#e,t,Hh(this.#e,e.path,{recursive:e.recursive})));break;case`move`:{let n=Uh(this.#e,e.from,e.to,{collision:e.collision});n!=null&&a.push(Th(this.#e,t,n));break}}}let o=a.some(e=>e.projectionChanged)||this.isDirectoryProjectionVisible(n);return Dh(this.#e,Th(this.#e,i,xh({affectedAncestorIds:Yh(this.#e,n),affectedNodeIds:[n],attemptId:e.attemptId,childEvents:a,path:Kh(this.#e,n),projectionChanged:o}))),!0})}completeChildLoad(e){return X(this.#e.instrumentation,`store.completeChildLoad`,()=>{let t=this.resolveActiveDirectoryNodeId(e.nodeId);if(t==null)return!1;let n=Wg(this.#e),r=lh(this.#e,t,e.attemptId);return Dh(this.#e,Th(this.#e,n,Sh({affectedAncestorIds:Yh(this.#e,t),affectedNodeIds:[t],attemptId:e.attemptId,path:Kh(this.#e,t),projectionChanged:this.isDirectoryProjectionVisible(t),stale:!r}))),r})}failChildLoad(e,t){return X(this.#e.instrumentation,`store.failChildLoad`,()=>{let n=this.resolveActiveDirectoryNodeId(e.nodeId);if(n==null)return!1;let r=Wg(this.#e),i=dh(this.#e,n,e.attemptId,t);return Dh(this.#e,Th(this.#e,r,Ch({affectedAncestorIds:Yh(this.#e,n),affectedNodeIds:[n],attemptId:e.attemptId,errorMessage:t,path:Kh(this.#e,n),projectionChanged:this.isDirectoryProjectionVisible(n),stale:!i}))),i})}cleanup(e={}){return X(this.#e.instrumentation,`store.cleanup`,()=>{if(this.#e.transactionStack.length>0)throw Error(`Cleanup cannot run during an open batch or transaction.`);if(Bg(this.#e))throw Error(`Cleanup cannot run while directory loads are active.`);let t=Wg(this.#e),n=Vg(this.#e,e.mode??`stable`);return Dh(this.#e,Th(this.#e,t,wh({...n,affectedAncestorIds:[],affectedNodeIds:[],projectionChanged:n.idsPreserved===!1}))),n})}getNodeCount(){return this.#e.activeNodeCount}initializeExpandedPaths(e){if(e==null||e.length===0)return 0;let t=0,n=[],r=[],i=0,a=null,o=this.#e.snapshot.segmentTable,s=o.valueById,c=this.#e.snapshot.nodes,l=new Map;for(let u of e){a!=null&&u<a&&(a=null,i=0,n.length=0,r.length=0);let e=u.length>0&&u.charCodeAt(u.length-1)===47?u.length-1:u.length;if(e===0){a=u,i=e,n.length=0,r.length=0;continue}let d=0,f=0;if(a!=null){let t=Math.min(e,i),n=!0;for(let e=0;e<t;e+=1){let t=u.charCodeAt(e);if(t!==a.charCodeAt(e)){n=!1;break}t===47&&(d+=1,f=e+1)}n&&(t===i&&e>t&&u.charCodeAt(t)===47?(d+=1,f=t+1):t===e&&i>t&&a.charCodeAt(t)===47&&(d+=1,f=e+1)),d=Math.min(d,r.length)}let p=d===0?this.#e.snapshot.rootId:r[d-1]??this.#e.snapshot.rootId,m=d,h=!0,g=f;for(;g<=e;){let t=u.indexOf(`/`,g),i=t===-1||t>e?e:t,a=u.slice(g,i),f=Qh(this.#e,p).childIds,_=m===d?n[m]??0:0,v=_,y,b=l.get(a)??ym(a);l.set(a,b);let x=(e,t)=>{for(v=e;v<t;v+=1){let e=f[v],t=c[e],n=s[t.nameId];if(n===a)return y=e,!0;let r=xm(Om(o,t.nameId),b);if(r>0||r===0&&n>a)return!1}return!1};if(!x(_,f.length)&&_>0&&x(0,_),y===void 0){h=!1;break}if(!Y(Z(this.#e,y))){h=!1;break}if(n[m]=v,r[m]=y,p=y,m+=1,i===e)break;g=i+1}if(a=u,i=e,n.length=m,r.length=m,!h){a=null,i=0,n.length=0,r.length=0;continue}for(let e=d;e<m;e+=1){let n=r[e];if(n==null)continue;let i=Z(this.#e,n);rh(this.#e,n,i)||(ih(this.#e,n,!0,i),t+=1)}}return t}hasAllDirectoriesExpanded(){for(let e of this.#e.snapshot.directories.keys()){if(e===this.#e.snapshot.rootId)continue;let t=Z(this.#e,e);if(!rh(this.#e,e,t))return!1}return!0}requireDirectoryNodeId(e){let t=Xh(this.#e,e);if(t==null)throw Error(`Path does not exist: "${e}"`);if(!Y(Z(this.#e,t)))throw Error(`Path is not a directory: "${e}"`);return t}resolveActiveDirectoryNodeId(e){try{if(!Y(Z(this.#e,e)))throw Error(`Node is not a directory: ${String(e)}`);return e}catch{return null}}isDirectoryProjectionVisible(e){let t=e;for(;t!==this.#e.snapshot.rootId;){let e=Z(this.#e,t).parentId;if(e!==this.#e.snapshot.rootId){let n=Z(this.#e,e),r=Lh(this.#e,e);if(!rh(this.#e,e,n)&&r!==t)return!1}t=e}return!0}validateChildPatch(t,n){new e({paths:this.list(t),presorted:!0,sort:this.#e.snapshot.options.sort}).batch(n.operations)}};function b_(e,t){switch(t.type){case`add`:case`remove`:if(!t.path.startsWith(e)||t.path===e)throw Error(`Child patch operation must stay within ${e}: "${t.path}"`);break;case`move`:if(!t.from.startsWith(e)||!t.to.startsWith(e)||t.from===e||t.to===e)throw Error(`Child patch move must stay within ${e}: "${t.from}" -> "${t.to}"`)}}var x_=e=>e.startsWith(`f::`)?e.slice(3):e;function S_(e){let t=e.lastIndexOf(`/`);return t<0?{parentPath:``,baseName:e}:{parentPath:e.slice(0,t),baseName:e.slice(t+1)}}function C_(e,t){return e===``?t:`${e}/${t}`}function w_({files:e,path:t,isFolder:n,nextBasename:r}){let i=x_(t),a=r.trim();if(a.length===0)return{error:`Name cannot be empty.`};if(a.includes(`/`))return{error:`Name cannot include "/".`};let{parentPath:o,baseName:s}=S_(i);if(a===s)return{nextFiles:e,sourcePath:i,destinationPath:i,isFolder:n};let c=C_(o,a),l=Array(e.length),u=new Set;if(!n){let t=`${c}/`,r=!1;for(let n=0;n<e.length;n++){let a=e[n];if(a!==i&&a.startsWith(t))return{error:`"${c}" already exists.`};let o=a===i?c:a;if(u.has(o))return{error:`"${c}" already exists.`};u.add(o),l[n]=o,a===i&&(r=!0)}return r?{nextFiles:l,sourcePath:i,destinationPath:c,isFolder:n}:{error:`Could not find the selected file to rename.`}}let d=`${i}/`,f=`${c}/`,p=0;for(let t=0;t<e.length;t++){let n=e[t],r=n===i||n.startsWith(d);if(!r&&(n===c||n.startsWith(f)))return{error:`"${c}" already exists.`};let a=r?`${c}${n.slice(i.length)}`:n;if(u.has(a))return{error:`"${c}" already exists.`};u.add(a),l[t]=a,r&&p++}return p===0?{error:`Could not find the selected folder to rename.`}:{nextFiles:l,sourcePath:i,destinationPath:c,isFolder:n}}function T_(e){return e.endsWith(`/`)}function E_(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`),r=n<0?t:t.slice(n+1);return e.endsWith(`/`)?`${r}/`:r}function D_(e){let t=[],n=new Set;for(let r of e)n.has(r)||(n.add(r),t.push(r));let r=new Set;for(let e of t.toSorted((e,t)=>e.length===t.length?e.localeCompare(t):e.length-t.length)){let t=(e.endsWith(`/`)?e.slice(0,-1):e).split(`/`),n=!1;for(let e=0;e<t.length-1;e+=1){let i=`${t.slice(0,e+1).join(`/`)}/`;if(r.has(i)){n=!0;break}}n||r.add(e)}return t.filter(e=>r.has(e))}function O_(e,t){return t.includes(e)?D_(t):[e]}function k_(e,t){return e===t?!0:e==null||t==null?!1:e.kind===t.kind&&e.directoryPath===t.directoryPath&&e.flattenedSegmentPath===t.flattenedSegmentPath&&e.hoveredPath===t.hoveredPath}function A_(e,t){return{draggedPaths:e,target:t}}function j_(e,t){if(t.kind!==`directory`||t.directoryPath==null)return!1;for(let n of e)if(T_(n)&&(t.directoryPath===n||t.directoryPath.startsWith(n)))return!0;return!1}function M_(e,t){return t.kind===`root`||t.directoryPath==null?E_(e):t.directoryPath}function N_(e,t){let n=e.map(e=>{let n=M_(e,t);return n===e?null:{from:e,to:n,type:`move`}}).filter(e=>e!=null);return n.length===0?null:{operations:n,result:{draggedPaths:e,operation:n.length===1?`move`:`batch`,target:t}}}function P_(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0}function F_(e,t,n){let{paths:r,preparedInput:i}=e;if(i==null){if(r==null)throw Error(`FileTree requires paths or preparedInput`);return{paths:r,preparedInput:void 0}}let a=i.paths;if(r==null)return{paths:a,preparedInput:i};if(!P_(y_.preparePaths(r,n==null?{}:{sort:n}),a))throw Error(`FileTree ${t} received paths and preparedInput for different path lists`);return{paths:a,preparedInput:i}}function I_(e){return e.operation===`add`||e.operation===`remove`||e.operation===`move`||e.operation===`batch`}function L_(e,t,n){if(e===t)return n;let r=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(r)?`${n.endsWith(`/`)?n:`${n}/`}${e.slice(r.length)}`:e}function R_(e,t){if(e===t)return!0;let n=t.endsWith(`/`)?t:`${t}/`;return e.startsWith(n)}function z_(e,t,n=!1){if(e==null)return null;switch(t.operation){case`add`:case`expand`:case`collapse`:case`mark-directory-unloaded`:case`begin-child-load`:case`apply-child-patch`:case`complete-child-load`:case`fail-child-load`:case`cleanup`:return e;case`remove`:return R_(e,t.path)?n?e:null:e;case`move`:return L_(e,t.from,t.to);case`batch`:{let r=e;for(let e of t.events)if(r=z_(r,e,n),r==null)return null;return r}}}function B_(e){return{canonicalChanged:e.canonicalChanged,projectionChanged:e.projectionChanged,visibleCountDelta:e.visibleCountDelta}}function V_(e){switch(e.operation){case`add`:return{...B_(e),operation:`add`,path:e.path};case`remove`:return{...B_(e),operation:`remove`,path:e.path,recursive:e.recursive};case`move`:return{...B_(e),from:e.from,operation:`move`,to:e.to}}}function H_(e){return{...B_(e),events:e.events.filter(e=>e.operation===`add`||e.operation===`remove`||e.operation===`move`).map(e=>V_(e)),operation:`batch`}}function U_(e){switch(e.operation){case`add`:case`remove`:case`move`:return V_(e);case`batch`:return H_(e);default:return null}}function W_(e,t){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function G_(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;if(t.length===0)return[];let n=t.split(`/`);return n.slice(0,-1).map((e,t)=>`${n.slice(0,t+1).join(`/`)}/`)}function K_(e){return G_(e).at(-1)??null}function q_(e,t){return t==null?e:e.startsWith(t)?e.slice(t.length):e}function J_(e){return e.endsWith(`/`)}var Y_=e=>e.toLowerCase();function X_(e){let t=e.endsWith(`/`)?e.slice(0,-1):e,n=t.lastIndexOf(`/`);return n<0?t:t.slice(n+1)}function Z_(e){return e.endsWith(`/`)?e.slice(0,-1):e}function Q_(e,t){return t&&!e.endsWith(`/`)?`${e}/`:e}var $_=e=>{let t=e.trim();return t.length===0?``:(t.includes(`\\`)?t.replaceAll(`\\`,`/`):t).toLowerCase()},ev=Symbol(`FILE_TREE_RENAME_VIEW`),tv=512,nv=512;function rv(e){return e===`top`||e===`center`?e:`nearest`}function iv(e,t,n){if(e===0)return-1;if(n!=null){let e=t(n);if(e!=null)return e;let r=G_(n);for(let e=r.length-1;e>=0;--e){let n=r[e];if(n==null)continue;let i=t(n);if(i!=null)return i}}return 0}function av(e,t,n){if(e.paths.length===0)return{focusedIndex:-1,getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex};if(t==null)return{focusedIndex:0,getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex};let r=n??(t=>e.visibleIndexByPath.get(t)??null);return{focusedIndex:iv(e.paths.length,r,t),getParentIndex:e.getParentIndex,paths:e.paths,posInSetByIndex:e.posInSetByIndex,setSizeByIndex:e.setSizeByIndex}}var ov=class e{static{Object.defineProperty(e.prototype,ev,{configurable:!0,value(){return{cancel:()=>{this.#q()},commit:()=>{this.#J()},getPath:()=>this.#T,getValue:()=>this.#E,isActive:()=>this.#T!=null,setValue:e=>{this.#Y(e)}}},writable:!0})}#e;#t=new Set;#n=new Map;#r=null;#i=null;#a=new Map;#o=new Map;#s=-1;#c=null;#l=!1;#u=e=>-1;#d=new Map;#f=null;#p=null;#m=null;#h=null;#g=null;#_;#v;#y;#b=[];#x=new Int32Array;#S=new Int32Array;#C=void 0;#w=!1;#T=null;#E=``;#D=!1;#O=new Set;#k=[];#A;#j=null;#M=null;#N=null;#P=null;#F=null;#I=null;#L=null;#R=0;#z=null;#B=new Set;#V=0;#H;#U=0;#W=!1;#G=0;#K;constructor(e){let{dragAndDrop:t,fileTreeSearchMode:n,initialSearchQuery:r,initialSelectedPaths:i,renaming:a,onSearchChange:o,paths:s,preparedInput:c,...l}=e,u=F_({paths:s,preparedInput:c},`constructor`,l.sort);this.#e=l,t!=null&&t!==!1&&(this.#r=t===!0?{}:t),this.#w=a!=null&&a!==!1,a!=null&&a!==!1&&a!==!0&&(this.#C=a.canRename,this.#v=a.onError,this.#_=a.onRename),this.#y=o,this.#A=n??`hide-non-matches`,this.#H=this.#le(u.paths,u.preparedInput);let d=i?.map(e=>this.#Ne(e)).filter(e=>e!=null)??[],f=d.at(-1)??null;d.length>0&&(this.#B=new Set(d),this.#z=f,this.#V=1),this.#je(f,!1),r!=null&&this.#Te(r,!1),this.#K=this.#Re()}destroy(){this.#K?.(),this.#K=null,this.#n.clear(),this.#t.clear(),this.#d.clear(),this.#i=null,this.#he()}focusFirstItem(){this.#be().length>0&&this.#Fe(0)}focusLastItem(){this.#G<=0||(this.#Ie(),this.#Fe(this.#G-1))}focusNextItem(){this.#Ae(1)}focusParentItem(){if(this.#c==null)return;let e=K_(this.#c);if(e==null)return;let t=this.#Z(e);t>=0&&this.#Fe(t)}focusPath(e){let t=this.#H.getPathInfo(e)?.path??null;if(t==null)return;this.#Ie();let n=this.#Z(t);n>=0&&this.#Fe(n)}scrollToPath(e,t){let n=this.#H.getPathInfo(e)?.path??null;if(n==null)return;this.#Ie();let r=this.#xe(n);r<0||this.#Me(r)!=null&&(t?.focus!==!1&&this.#Fe(r,!1),this.#L={id:this.#R+=1,offset:rv(t?.offset),visibleIndex:r},this.#De())}focusMountedPathFromInput(e){let t=this.#H.getPathInfo(e)?.path??null;if(t==null)return;let n=this.#Z(t);n>=0&&this.#Fe(n)}focusNearestPath(e){let t=this.resolveNearestVisiblePath(e);if(t==null)return null;let n=this.#Z(t);return n>=0?(this.#Fe(n),this.#be()[n]??t):null}focusPreviousItem(){this.#Ae(-1)}getFocusedIndex(){return this.#s}getFocusedItem(){return this.#c==null?null:this.#Q(this.#c)}getFocusedPath(){return this.#c}getScrollRequest(){return this.#L}clearScrollRequest(e){this.#L?.id===e&&(this.#L=null)}resolveNearestVisiblePath(e){let t=this.#be();if(this.#G===0)return null;if(e==null)return this.#c??t[0]??null;let n=this.#H.getPathInfo(e)?.path??e,r=this.#Z(n);return r>=0?t[r]??n:this.#X(n)??this.#c??t[0]??null}getSelectedPaths(){return[...this.#B]}getSelectionVersion(){return this.#V}getVisibleCount(){return this.#G}getVisibleRows(e,t){if(t<e||this.#G===0)return[];let n=Math.max(0,e),r=Math.min(this.#G-1,t);if(r<n)return[];let i=r-n+1;if(this.#F==null&&!this.#l&&r>=this.#b.length&&i<=nv){let e=[];for(let t=n;t<=r;t+=1){let n=this.#H.getVisibleRowContext(t);if(n==null)break;e.push(this.#ee(n))}return e}if(!this.#l&&r>=this.#b.length&&this.#Ie(),this.#F!=null){let e=Array.from({length:r-n+1},(e,t)=>this.#Se(n+t)),t=new Map,i=e[0]??-1,a=i;for(let n=1;n<=e.length;n+=1){let r=e[n];if(r!=null&&r===a+1){a=r;continue}if(i>=0&&this.#H.getVisibleSlice(i,a).forEach((e,n)=>{t.set(i+n,e)}),r==null){i=-1,a=-1;continue}i=r,a=r}return Array.from({length:r-n+1},(e,r)=>{let i=n+r,a=this.#Se(i),o=t.get(a),s=this.#b[a];if(o==null||s==null)throw Error(`Missing projection row for filtered visible index ${String(i)}`);return this.#$(o,i,a,{ancestorPaths:this.#re(a),path:s})})}return this.#H.getVisibleSlice(n,r).map((e,t)=>{let r=n+t,i=this.#b[r];if(i==null)throw Error(`Missing projection path for visible index ${String(r)}`);return this.#$(e,r,r,{ancestorPaths:this.#re(r),path:i})})}getStickyRowCandidates(e,t){if(this.#F!=null)return null;if(this.#G===0||e<=0||t<=0)return[];let n=[];for(let r=0;r<this.#G;r+=1){let i=e+r*t,a=Math.min(this.#G-1,Math.floor(i/t)),o=this.#te(a,r)??(a>0?this.#te(a-1,r):void 0);if(o==null)break;n.push({row:this.#ee(o),subtreeEndIndex:o.subtreeEndIndex})}return n}getItem(e){let t=this.#H.getPathInfo(e);return t==null?null:this.#Q(t.path,t)}resolveMountedDirectoryPathFromInput(e){let t=this.#H.getPathInfo(e);return t?.kind===`directory`?t.path:null}toggleMountedDirectoryFromInput(e){let t=this.resolveMountedDirectoryPathFromInput(e);t!=null&&this.#ze(t)}selectAllVisiblePaths(){this.#Ie();let e=[...this.#be()];this.#ae(e,this.#c??this.#z)}selectOnlyPath(e){let t=this.#Ne(e);t!=null&&this.#ae([t],t)}selectOnlyMountedPathFromInput(e){this.#ae([e],e)}selectPath(e){let t=this.#Ne(e);t==null||this.#B.has(t)||this.#ae([...this.#B,t])}deselectPath(e){let t=this.#Ne(e);t!=null&&this.#B.has(t)&&this.#ae([...this.#B].filter(e=>e!==t))}toggleFocusedSelection(){this.#c!=null&&this.togglePathSelectionFromInput(this.#c)}togglePathSelection(e){let t=this.#Ne(e);if(t!=null){if(this.#B.has(t)){this.deselectPath(t);return}this.selectPath(t)}}togglePathSelectionFromInput(e){let t=this.#Ne(e);if(t!=null){if(this.#B.has(t)){this.#ae([...this.#B].filter(e=>e!==t),t);return}this.#ae([...this.#B,t],t)}}selectPathRange(e,t){let n=this.#Ne(e);if(n==null)return;this.#Ie();let r=this.#z,i=r==null?-1:this.#Ce(r),a=this.#Ce(n);if(i===-1||a===-1){let e=t?[...this.#B,n]:[n];this.#ae(e,n);return}let[o,s]=i<=a?[i,a]:[a,i],c=this.#be().slice(o,s+1),l=t?[...this.#B,...c]:c;this.#ae(l,r)}extendSelectionFromFocused(e){if(this.#c==null)return;let t=this.#s;if(t===-1)return;let n=Math.min(this.#G-1,Math.max(0,t+e));if(n===t)return;!this.#l&&n>=this.#b.length&&this.#Ie();let r=this.#be(),i=r[t]??null,a=r[n]??null;if(i==null||a==null)return;let o=new Set(this.#B);o.has(i)&&o.has(a)?o.delete(i):o.add(a),this.#ae([...o],this.#z??i,!1),this.#Fe(n)}getDragAndDropConfig(){return this.#r}isDragAndDropEnabled(){return this.#r!=null}getDragSession(){return this.#i==null?null:{draggedPaths:[...this.#i.draggedPaths],primaryPath:this.#i.primaryPath,target:this.#i.target==null?null:{...this.#i.target}}}startDrag(e){if(this.#r==null)return!1;let t=this.#Ne(e);if(t==null||this.#M!=null&&this.#M.length>0)return!1;let n=this.getSelectedPaths(),r=O_(t,n);return this.#r.canDrag?.(r)!==!1&&(n.includes(t)||this.#ae([t],t,!1),this.#Pe(t),this.#i={draggedPaths:r,primaryPath:t,target:null},this.#De(),!0)}setDragTarget(e){let t=this.#i;if(t==null)return;let n=e;if(n!=null){let e=A_(t.draggedPaths,n);(j_(t.draggedPaths,n)||this.#r?.canDrop?.(e)===!1)&&(n=null)}k_(t.target,n)||(this.#i={...t,target:n},this.#De())}cancelDrag(){this.#i!=null&&(this.#i=null,this.#De())}completeDrag(){let e=this.#i;if(e==null)return!1;this.#i=null;let t=e.target==null?null:{...e.target};if(t==null)return this.#De(),!1;let n=A_(e.draggedPaths,t);if(j_(e.draggedPaths,t)||this.#r?.canDrop?.(n)===!1)return this.#De(),!1;let r=N_(e.draggedPaths,t);if(r==null)return this.#De(),!1;try{if(r.operations.length===1){let e=r.operations[0];if(e==null||e.type!==`move`)throw Error(`Expected a single move operation for one-item drops`);this.#H.move(e.from,e.to,{collision:e.collision})}else this.#ce(r.operations),this.#H.batch(r.operations)}catch(e){return this.#De(),this.#r?.onDropError?.(e instanceof Error?e.message:String(e),n),!1}return this.#r?.onDropComplete?.(r.result),!0}subscribe(e){return this.#t.add(e),e(),()=>{this.#t.delete(e)}}add(e){this.#H.add(e)}remove(e,t={}){this.#H.remove(e,t)}move(e,t,n={}){this.#H.move(e,t,n)}batch(e){this.#H.batch(e)}onMutation(e,t){let n=e,r=t,i=this.#n.get(n);return i??(i=new Set,this.#n.set(n,i)),i.add(r),()=>{let e=this.#n.get(n);e?.delete(r),e?.size===0&&this.#n.delete(n)}}setSearch(e){this.#Te(e,!0)}openSearch(e=``){this.#Te(e,!0)}closeSearch(){this.#Te(null,!0)}isSearchOpen(){return this.#M!==null}getSearchValue(){return this.#M??``}getSearchMatchingPaths(){return this.#k}focusNextSearchMatch(){this.#we(1)}focusPreviousSearchMatch(){this.#we(-1)}startRenaming(e=this.#c??``,t={}){if(!this.#w)return!1;let n=this.#H.getPathInfo(e);if(n==null)return!1;let r=n.path,i=J_(r),a=Z_(r);if(this.#C?.({isFolder:i,path:a})===!1)return!1;for(let e of G_(r))this.#H.isExpanded(e)||this.#H.expand(e);return this.#ae([r],r,!1),this.#M!=null&&(this.#Te(null,!1),this.#y?.(this.#M)),this.#Pe(r),this.#T=r,this.#E=X_(r),this.#D=t.removeIfCanceled??!1,this.#De(),!0}#q(){if(this.#T==null)return;let e=this.#T,t=this.#D;if(this.#T=null,this.#E=``,this.#D=!1,t){this.remove(e,J_(e)?{recursive:!0}:void 0);return}this.#Pe(e),this.#De()}#J(){let e=this.#T;if(e==null)return;if(this.#D&&this.#E.trim().length===0){this.#T=null,this.#E=``,this.#D=!1,this.remove(e,J_(e)?{recursive:!0}:void 0);return}let t=J_(e),n=w_({files:this.#H.list(),isFolder:t,nextBasename:this.#E,path:Z_(e)});if(this.#T=null,this.#E=``,this.#D=!1,`error`in n){this.#Pe(e),this.#v?.(n.error),this.#De();return}if(n.sourcePath===n.destinationPath){this.#Pe(e),this.#De();return}this.#_?.({destinationPath:n.destinationPath,isFolder:n.isFolder,sourcePath:n.sourcePath}),this.move(Q_(n.sourcePath,t),Q_(n.destinationPath,t))}#Y(e){this.#T!=null&&this.#E!==e&&(this.#E=e,this.#De())}resetPaths(e,t={}){let n=!Array.isArray(e),r=n?void 0:e,i=n?e:t,a=this.#H.list().length,o=this.#G,s=F_({paths:r,preparedInput:i.preparedInput},`resetPaths`,this.#e.sort),c=this.#le(s.paths,s.preparedInput,i.initialExpandedPaths),l=this.#c,u=this.#T,d=this.getSelectedPaths(),f=this.#z;this.#K?.(),this.#H=c,this.#d.clear(),this.#he();let p=d.map(e=>c.getPathInfo(e)?.path??null).filter(e=>e!=null),m=!W_(this.#B,p);this.#B=new Set(p),m&&(this.#V+=1),this.#z=f==null?null:c.getPathInfo(f)?.path??null,this.#T=u==null?null:c.getPathInfo(u)?.path??null,this.#T??(this.#E=``,this.#D=!1),this.#je(l,l!=null||p.length>0||this.#z!=null),this.#K=this.#Re(),this.#De(),this.#Oe({canonicalChanged:!0,operation:`reset`,pathCountAfter:s.paths.length,pathCountBefore:a,projectionChanged:!0,usedPreparedInput:i.preparedInput!=null,visibleCountDelta:this.#G-o})}#X(e){this.#Ie();let t=K_(e),n=q_(e,t),r=null,i=null;for(let e of this.#be()){if(K_(e)!==t)continue;let a=q_(e,t);if(a<n){r=e;continue}if(a>n){i=e;break}}return r??i}#Z(e){let t=this.#Ce(e);if(t!==-1)return t;let n=G_(e);for(let e=n.length-1;e>=0;--e){let t=n[e];if(t==null)continue;let r=this.#Ce(t);if(r!==-1)return r}return this.#be().length>0?0:-1}#Q(e,t){let n=this.#d.get(e);if(n!=null)return n;let r=t??this.#H.getPathInfo(e);if(r==null)return null;let i=r.kind===`directory`?this.#oe(r.path):this.#se(r.path);return this.#d.set(r.path,i),i}#$(e,t,n,r){return{ancestorPaths:r.ancestorPaths,depth:e.depth,flattenedSegments:e.flattenedSegments?.map(e=>({isTerminal:e.isTerminal,name:e.name,path:e.path})),hasChildren:e.hasChildren,index:t,isExpanded:e.isExpanded,isFlattened:e.isFlattened,isFocused:r.path===this.#c,isSelected:this.#B.has(r.path),kind:e.kind,level:e.depth,name:e.name,path:r.path,posInSet:r.posInSet??this.#x[n]??0,setSize:r.setSize??this.#S[n]??0}}#ee(e){return this.#$(e.row,e.index,e.index,{ancestorPaths:e.ancestorPaths,path:e.row.path,posInSet:e.posInSet,setSize:e.setSize})}#te(e,t){let n=this.#H.getVisibleRowContext(e);return n==null?void 0:n.ancestorRows[t]??(t===n.ancestorRows.length&&n.row.kind===`directory`&&n.row.isExpanded?n:void 0)}#ne(e){let t=this.#a.get(e);if(t!=null)return t;let n=this.#u(e),r=n<0?[]:[...this.#ne(n),n];return this.#a.set(e,r),r}#re(e){let t=this.#o.get(e);if(t!=null)return t;let n=this.#ne(e).map(e=>this.#b[e]??``).filter(e=>e!==``);return this.#o.set(e,n),n}#ie(e){this.#H.collapse(e)}#ae(e,t=this.#z,n=!0){let r=[...new Set(e)],i=!W_(this.#B,r),a=this.#z!==t;(i||a)&&(this.#B=new Set(r),this.#z=t,i&&(this.#V+=1),n&&this.#De())}#oe(e){return{collapse:()=>{this.#ie(e)},deselect:()=>{this.deselectPath(e)},expand:()=>{this.#ke(e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!0,isExpanded:()=>this.#H.isExpanded(e),isFocused:()=>this.#c===e,isSelected:()=>this.#B.has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)},toggle:()=>{this.#ze(e)}}}#se(e){return{deselect:()=>{this.deselectPath(e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!1,isFocused:()=>this.#c===e,isSelected:()=>this.#B.has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)}}}#ce(e){let t=this.#H.list();this.#le(t).batch(e)}#le(e,t,n){return new y_({...this.#e,paths:e,preparedInput:t??void 0,...n===void 0?{}:{initialExpandedPaths:n}})}#ue(){return this.#h??=this.#H.list(),this.#h}#de(){if(this.#m!=null)return this.#m;let e=new Set;for(let t of this.#ue()){e.add(t);for(let n of G_(t))e.add(n)}return this.#m=[...e].sort(),this.#m}#fe(){return this.#g??=this.#ue().map(Y_),this.#g}#pe(){return this.#f??=this.#de().filter(e=>e.endsWith(`/`)),this.#f}#me(){return this.#p??=this.#pe().map(Y_),this.#p}#he(){this.#f=null,this.#p=null,this.#m=null,this.#h=null,this.#g=null}#ge(){return this.#pe().filter(e=>this.#H.isExpanded(e))}#_e(e){let t=new Set(this.#j??[]);if(e)for(let e of this.#B)for(let n of G_(e))t.add(n);this.#ve(t)}#ve(e){this.#W=!0;try{for(let t of this.#pe()){let n=e.has(t),r=this.#H.isExpanded(t);n&&!r?this.#H.expand(t):!n&&r&&this.#H.collapse(t)}}finally{this.#W=!1}}#ye(){if(this.#M==null||this.#M.length===0){this.#k=[],this.#F=null,this.#I=null,this.#P=null,this.#G=this.#U;return}let e=this.#b;if(this.#k=e.filter(e=>this.#O.has(e)),this.#A!==`hide-non-matches`||this.#O.size===0){this.#F=null,this.#I=null,this.#P=null,this.#G=this.#U;return}let t=[],n=[],r=new Map;for(let[i,a]of e.entries())this.#N?.has(a)===!0&&(r.set(a,n.length),t.push(i),n.push(a));this.#F=t,this.#I=n,this.#P=r,this.#G=n.length}#be(){return this.#I??this.#b}#xe(e){return this.#I==null?this.#H.getVisibleIndex(e)??-1:this.#P?.get(e)??-1}#Se(e){return this.#F?.[e]??e}#Ce(e){return this.#P?.get(e)??this.#H.getVisibleIndex(e)??-1}#we(e){let t=this.#k;if(t.length===0)return;let n=this.#c,r=n==null?-1:t.indexOf(n),i=t[r<0?e>0?0:t.length-1:Math.min(t.length-1,Math.max(0,r+e))];i!=null&&this.focusPath(i)}#Te(e,t){let n=e==null?null:$_(e),r=this.#M;if(r!==n){if(r==null&&n!=null&&(this.#j=this.#ge()),this.#M=n,n==null)this.#_e(!0),this.#j=null,this.#O.clear(),this.#N=null,this.#je(this.#c,!0);else if(n.length===0)this.#_e(!1),this.#O.clear(),this.#N=null,this.#je(this.#c,!0);else{let e=this.#Ee();this.#je(e,!0)}t&&(this.#y?.(this.#M),this.#De())}}#Ee(){if(this.#M==null||this.#M.length===0)return this.#O.clear(),this.#c;let e=this.#M,t=this.#ue(),n=this.#fe(),r=[],i=new Set,a=null;for(let o=0;o<t.length;o+=1){if(!n[o].includes(e))continue;let s=t[o];r.push(s),i.add(s),a??=s}let o=this.#pe(),s=this.#me();for(let t=0;t<o.length;t+=1){if(!s[t].includes(e))continue;let n=o[t];i.has(n)||(r.push(n),i.add(n),a??=n)}this.#O=i;let c=this.#A===`hide-non-matches`&&r.length>0?new Set:null;this.#N=c;let l=this.#A===`expand-matches`?new Set(this.#j??[]):new Set;for(let e of r){c?.add(e),e.endsWith(`/`)&&l.add(e);for(let t of G_(e))l.add(t),c?.add(t)}return this.#ve(l),a??this.#c}#De(){for(let e of this.#t)e()}#Oe(e){this.#n.get(e.operation)?.forEach(t=>{t(e)}),this.#n.get(`*`)?.forEach(t=>{t(e)})}#ke(e){for(let t of G_(e))this.#H.isExpanded(t)||this.#H.expand(t);this.#H.isExpanded(e)||this.#H.expand(e)}#Ae(e){let t=this.#G;if(t===0)return;let n=this.#s===-1?0:this.#s,r=Math.min(t-1,Math.max(0,n+e));(r!==n||this.#s===-1)&&(!this.#l&&this.#F==null&&r>=this.#b.length&&this.#Ie(),this.#Fe(r))}#je(e,t=!0){let n=this.#H.getVisibleCount();this.#U=n;let r=av(this.#H.getVisibleTreeProjectionData(t?void 0:Math.min(n,tv)),e,t?e=>this.#H.getVisibleIndex(e):void 0);this.#a.clear(),this.#o.clear(),this.#l=r.paths.length>=n,this.#u=r.getParentIndex,this.#b=r.paths,this.#x=r.posInSetByIndex,this.#S=r.setSizeByIndex,this.#ye(),this.#s=e==null?this.#be().length>0?0:-1:this.#Z(e),this.#c=this.#s<0?null:this.#Me(this.#s)}#Me(e){return this.#be()[e]??(this.#F==null?this.#H.getVisibleRowContext(e)?.row.path??null:null)}#Ne(e){return this.#H.getPathInfo(e)?.path??null}#Pe(e){if(e==null)return;let t=this.#Z(e);t>=0&&this.#Fe(t,!1)}#Fe(e,t=!0){let n=this.#Me(e);n!=null&&(this.#s!==e||this.#c!==n)&&(this.#s=e,this.#c=n,t&&this.#De())}#Ie(){this.#l||this.#je(this.#c,!0)}#Le(e){let t=z_(this.#T,e);t==null&&this.#T!=null&&(this.#E=``),this.#T=t;let n=z_(this.#c,e,!0),r=[...this.#B].map(t=>z_(t,e)).filter(e=>e!=null).map(e=>this.#H.getPathInfo(e)?.path??null).filter(e=>e!=null),i=z_(this.#z,e),a=i==null?null:this.#H.getPathInfo(i)?.path??null,o=[...new Set(r)];return W_(this.#B,o)||(this.#B=new Set(o),this.#V+=1),this.#z=a,n}#Re(){return this.#H.on(`*`,e=>{if(this.#W)return;e.canonicalChanged&&(this.#d.clear(),this.#he()),this.#i!=null&&I_(e)&&(this.#i=null);let t=I_(e)?this.#Le(e):this.#c,n=this.#M!=null&&this.#M.length>0?this.#Ee():this.#M===``?this.#c:t,r=this.#M!=null||e.operation!==`expand`&&e.operation!==`collapse`;this.#je(n,r),this.#De();let i=U_(e);i!=null&&this.#Oe(i)})}#ze(e){if(this.#H.isExpanded(e)){this.#ie(e);return}this.#ke(e)}},sv=e=>{if(e==null||e.length===0)return`0`;let t=`${e.length}`;for(let n of e)t+=`\0${n.path}\0${n.status}`;return t};function cv(e){let t=e.endsWith(`/`),n=``,r=-1;for(let t=0;t<=e.length;t+=1){if(e[t]!==`/`&&t!==e.length){r===-1&&(r=t);continue}r!==-1&&(n!==``&&(n+=`/`),n+=e.slice(r,t),r=-1)}return n===``?null:{isDirectory:t,path:n}}function lv(e){let t=e.endsWith(`/`)?e.slice(0,-1):e;if(t.length===0)return[];let n=[],r=0;for(;;){let e=t.indexOf(`/`,r);if(e===-1)break;n.push(t.slice(0,e+1)),r=e+1}return n}function uv(e,t){return t?`${e}/`:e}function dv(e,t=null){let n=sv(e==null?void 0:[...e]);if(n===`0`)return null;if(t?.signature===n)return t;let r=new Map,i=new Set,a=new Set,o=new Map;for(let t of e??[]){let e=pv(t);e!=null&&gv({canonicalPath:e.canonicalPath,changeCountByDirectoryPath:o,directoriesWithChanges:i,ignoredDirectoryPaths:a,isDirectory:e.isDirectory,status:t.status,statusByPath:r})}return r.size===0?null:{changeCountByDirectoryPath:o,directoriesWithChanges:i,ignoredDirectoryPaths:a,signature:n,statusByPath:r}}function fv(e,t){let n=t?.remove??[],r=t?.set??[];if(n.length===0&&r.length===0)return e;let i=new Map(e?.statusByPath),a=new Set(e?.directoriesWithChanges),o=new Set(e?.ignoredDirectoryPaths),s=new Map(e?.changeCountByDirectoryPath),c=!1;for(let e of n){let t=mv(e);t!=null&&(c=hv({canonicalPath:t.canonicalPath,changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,statusByPath:i})||c)}for(let e of r){let t=pv(e);t!=null&&(c=gv({canonicalPath:t.canonicalPath,changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,isDirectory:t.isDirectory,status:e.status,statusByPath:i})||c)}return c?i.size===0?null:{changeCountByDirectoryPath:s,directoriesWithChanges:a,ignoredDirectoryPaths:o,signature:yv(i),statusByPath:i}:e}function pv(e){return mv(e.path)}function mv(e){let t=cv(e);if(t!=null)return{canonicalPath:uv(t.path,t.isDirectory),isDirectory:t.isDirectory}}function hv({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,statusByPath:i}){let a=i.get(e);return a!=null&&(i.delete(e),a===`ignored`&&e.endsWith(`/`)&&r.delete(e),vv(t,n,e),!0)}function gv({canonicalPath:e,changeCountByDirectoryPath:t,directoriesWithChanges:n,ignoredDirectoryPaths:r,isDirectory:i,status:a,statusByPath:o}){let s=o.get(e);return s!==a&&(s??_v(t,n,e),o.set(e,a),a===`ignored`&&i?r.add(e):i&&r.delete(e),!0)}function _v(e,t,n){for(let r of lv(n))e.set(r,(e.get(r)??0)+1),t.add(r)}function vv(e,t,n){for(let r of lv(n)){let n=(e.get(r)??0)-1;n>0?e.set(r,n):(e.delete(r),t.delete(r))}}function yv(e){let t=`${e.size}`;for(let[n,r]of e)t+=`\0${n}\0${r}`;return t}var bv=e=>e.trim().toLowerCase(),xv=e=>e.split(`/`).at(-1)??e,Sv=e=>{let t=e.toLowerCase().split(`.`),n=[];for(let e=1;e<t.length;e+=1)n.push(t.slice(e).join(`.`));return n};function Cv(e,t){return typeof e==`string`?{name:e,remappedFrom:t}:{...e,remappedFrom:t}}function wv(e){let t=Ep(e),n=t.remap,r=new Map;for(let[e,n]of Object.entries(t.byFileName??{}))r.set(e.toLowerCase(),n);let i=new Map;for(let[e,n]of Object.entries(t.byFileExtension??{}))i.set(bv(e),n);let a=Object.entries(t.byFileNameContains??{}).map(([e,t])=>[e.toLowerCase(),t]);return{resolveIcon:(e,o)=>{if(e===`file-tree-icon-file`&&o!=null){let s=xv(o),c=s.toLowerCase(),l=r.get(c);if(l!=null)return Cv(l,e);for(let[t,n]of a)if(c.includes(t))return Cv(n,e);let u=Sv(s);for(let t of u){let n=i.get(t);if(n!=null)return Cv(n,e)}let d=wp(t.set,s,u);if(d!=null&&t.set!==`none`){if(d==="default"){let t=n?.[e];if(t!=null)return Cv(t,e)}return{name:Sp(d),remappedFrom:e,token:d}}}let s=n?.[e];return s==null?{name:e}:Cv(s,e)}}}var Tv,Ev,Dv,Ov,kv,Av,jv,Mv,Nv,Pv,Fv={},Iv=[],Lv=Array.isArray,Rv=Iv.slice,zv=Object.assign;function Bv(e){e&&e.parentNode&&e.remove()}function Vv(e,t,n){var r,i,a,o={};for(a in t)a==`key`?r=t[a]:a==`ref`&&typeof e!=`function`?i=t[a]:o[a]=t[a];return arguments.length>2&&(o.children=arguments.length>3?Rv.call(arguments,2):n),Hv(e,o,r,i,null)}function Hv(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++Ev,__i:-1,__u:0};return i==null&&Tv.vnode!=null&&Tv.vnode(a),a}function Uv(e){return e.children}function Wv(e,t){this.props=e,this.context=t,this.__g=0}function Gv(e,t){if(t==null)return e.__?Gv(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?Gv(e):null}function Kv(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=n.__e;break}return Kv(e)}}function qv(e){(8&e.__g||!(e.__g|=8)||!Dv.push(e)||kv++)&&Ov==Tv.debounceRendering||((Ov=Tv.debounceRendering)||queueMicrotask)(Jv)}function Jv(){for(var e,t,n,r,i,a,o,s,c=1;Dv.length;)Dv.length>c&&Dv.sort(Av),e=Dv.shift(),c=Dv.length,8&e.__g&&(n=void 0,i=(r=(t=e).__v).__e,a=[],o=[],(s=t.__P)&&((n=zv({},r)).__v=r.__v+1,Tv.vnode&&Tv.vnode(n),ny(s,n,r,t.__n,s.namespaceURI,32&r.__u?[i]:null,a,i??Gv(r),!!(32&r.__u),o,s.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,iy(a,n,o),n.__e!=i&&Kv(n)));kv=0}function Yv(e,t,n,r,i,a,o,s,c,l,u,d){var f,p,m,h,g,_,v,y=r&&r.__k||Iv,b=t.length;for(c=Xv(n,t,y,c,b),f=0;f<b;f++)(m=n.__k[f])!=null&&(p=m.__i==-1?Fv:y[m.__i]||Fv,m.__i=f,_=ny(e,m,p,i,a,o,s,c,l,u,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&sy(p.ref,null,m),u.push(m.ref,m.__c||h,m)),g==null&&h!=null&&(g=h),(v=!!(4&m.__u))||p.__k===m.__k?c=Zv(m,c,e,v):typeof m.type==`function`&&_!==void 0?c=_:h&&(c=h.nextSibling),m.__u&=-7);return n.__e=g,c}function Xv(e,t,n,r,i){var a,o,s,c,l,u=n.length,d=u,f=0;for(e.__k=Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(c=a+f,(o=e.__k[a]=typeof o==`string`||typeof o==`number`||typeof o==`bigint`||o.constructor==String?Hv(null,o,null,null,null):Lv(o)?Hv(Uv,{children:o},null,null,null):o.constructor==null&&o.__b>0?Hv(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,s=null,(l=o.__i=Qv(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:i<u&&f++),typeof o.type!=`function`&&(o.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&!(2&s.__u)&&(s.__e==r&&(r=Gv(s)),cy(s,s));return r}function Zv(e,t,n,r){var i,a;if(typeof e.type==`function`){for(i=e.__k,a=0;i&&a<i.length;a++)i[a]&&(i[a].__=e,t=Zv(i[a],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=Gv(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Qv(e,t,n,r){var i,a,o,s=e.key,c=e.type,l=t[n],u=l!=null&&!(2&l.__u);if(l===null&&e.key==null||u&&s==l.key&&c==l.type)return n;if(r>+!!u){for(i=n-1,a=n+1;i>=0||a<t.length;)if((l=t[o=i>=0?i--:a++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function $v(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n??``}function ey(e,t,n,r,i){var a;n:if(t==`style`){if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||$v(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||$v(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(jv,`$1`)),(t=t.slice(2))[0].toLowerCase()!=t[0]&&(t=t.toLowerCase()),e.__l||={},e.__l[t+a]=n,n?r?n.l=r.l:(n.l=Mv,e.addEventListener(t,a?Pv:Nv,a)):e.removeEventListener(t,a?Pv:Nv,a);else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function ty(e){return function(t){if(this.__l){var n=this.__l[t.type+e];if(t.u==null)t.u=Mv++;else if(t.u<n.l)return;return n(Tv.event?Tv.event(t):t)}}}function ny(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M=t.type;if(t.constructor!=null)return null;128&n.__u&&(c=!!(32&n.__u),n.__c.__z&&(s=t.__e=n.__e=(a=n.__c.__z)[0],n.__c.__z=null)),(d=Tv.__b)&&d(t);n:if(typeof M==`function`)try{if(v=t.props,y=`prototype`in M&&M.prototype.render,b=(d=M.contextType)&&r[d.__c],x=d?b?b.props.value:d.__:r,n.__c?2&(f=t.__c=n.__c).__g&&(f.__g|=1,_=!0):(y?t.__c=f=new M(v,x):(t.__c=f=new Wv(v,x),f.constructor=M,f.render=ly),b&&b.sub(f),f.props=v,f.state||(f.state={}),f.context=x,f.__n=r,p=!0,f.__g|=8,f.__h=[],f._sb=[]),y&&f.__s==null&&(f.__s=f.state),y&&M.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=zv({},f.__s)),zv(f.__s,M.getDerivedStateFromProps(v,f.__s))),m=f.props,h=f.state,f.__v=t,p)y&&M.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),y&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(y&&M.getDerivedStateFromProps==null&&v!==m&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(v,x),!(4&f.__g)&&f.shouldComponentUpdate!=null&&!1===f.shouldComponentUpdate(v,f.__s,x)||t.__v==n.__v){for(t.__v!=n.__v&&(f.props=v,f.state=f.__s,f.__g&=-9),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),S=0;S<f._sb.length;S++)f.__h.push(f._sb[S]);f._sb=[],f.__h.length&&o.push(f);break n}f.componentWillUpdate!=null&&f.componentWillUpdate(v,f.__s,x),y&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(m,h,g)})}if(f.context=x,f.props=v,f.__P=e,f.__g&=-5,C=Tv.__r,w=0,y){for(f.state=f.__s,f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),T=0;T<f._sb.length;T++)f.__h.push(f._sb[T]);f._sb=[]}else do f.__g&=-9,C&&C(t),d=f.render(f.props,f.state,f.context),f.state=f.__s;while(8&f.__g&&++w<25);f.state=f.__s,f.getChildContext!=null&&(r=zv({},r,f.getChildContext())),y&&!p&&f.getSnapshotBeforeUpdate!=null&&(g=f.getSnapshotBeforeUpdate(m,h)),E=d,d!=null&&d.type===Uv&&d.key==null&&(E=ay(d.props.children)),s=Yv(e,Lv(E)?E:[E],t,n,r,i,a,o,s,c,l,u),t.__u&=-161,f.__h.length&&o.push(f),_&&(f.__g&=-4)}catch(e){if(t.__v=null,c||a!=null){if(e.then){for(D=0,O=!1,t.__u|=c?160:128,t.__c.__z=[],k=0;k<a.length;k++)(A=a[k])==null||O||(A.nodeType==8&&A.data==`$s`?(D>0&&t.__c.__z.push(A),D++,a[k]=null):A.nodeType==8&&A.data==`/$s`?(--D>0&&t.__c.__z.push(A),O=D===0,s=a[k],a[k]=null):D>0&&(t.__c.__z.push(A),a[k]=null));if(!O){for(;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__c.__z=[s]}t.__e=s}else{for(j=a.length;j--;)Bv(a[j]);ry(t)}}else t.__e=n.__e,t.__k=n.__k,e.then||ry(t);Tv.__e(e,t,n)}else s=t.__e=oy(n.__e,t,n,r,i,a,o,c,l,u);return(d=Tv.diffed)&&d(t),128&t.__u?void 0:s}function ry(e){e&&e.__c&&(e.__c.__g|=4),e&&e.__k&&e.__k.forEach(ry)}function iy(e,t,n){for(var r=0;r<n.length;r++)sy(n[r],n[++r],n[++r]);Tv.__c&&Tv.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){Tv.__e(e,t.__v)}})}function ay(e){return typeof e!=`object`||!e||e.__b&&e.__b>0?e:Lv(e)?e.map(ay):zv({},e)}function oy(e,t,n,r,i,a,o,s,c,l){var u,d,f,p,m,h,g,_,v=n.props,y=t.props,b=t.type;if(b==`svg`?i=`http://www.w3.org/2000/svg`:b==`math`?i=`http://www.w3.org/1998/Math/MathML`:i||=`http://www.w3.org/1999/xhtml`,a!=null){for(u=0;u<a.length;u++)if((m=a[u])&&`setAttribute`in m==!!b&&(b?m.localName==b:m.nodeType==3)){e=m,a[u]=null;break}}if(e==null){if(b==null)return l.createTextNode(y);e=l.createElementNS(i,b,y.is&&y),s&&=(Tv.__m&&Tv.__m(t,a),!1),a=null}if(b==null)v===y||s&&e.data==y||(e.data=y);else{if(a&&=Rv.call(e.childNodes),v=n.props||Fv,!s&&a!=null)for(v={},u=0;u<e.attributes.length;u++)v[(m=e.attributes[u]).name]=m.value;for(u in v)if(m=v[u],u!=`children`){if(u==`dangerouslySetInnerHTML`)f=m;else if(!(u in y)){if(u==`value`&&`defaultValue`in y||u==`checked`&&`defaultChecked`in y)continue;ey(e,u,null,m,i)}}for(u in _=1&n.__u,y)m=y[u],u==`children`?p=m:u==`dangerouslySetInnerHTML`?d=m:u==`value`?h=m:u==`checked`?g=m:s&&typeof m!=`function`||v[u]===m&&!_||ey(e,u,m,v[u],i);if(d)s||f&&(d.__html==f.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(f&&(e.innerHTML=``),Yv(b==`template`?e.content:e,Lv(p)?p:[p],t,n,r,b==`foreignObject`?`http://www.w3.org/1999/xhtml`:i,a,o,a?a[0]:n.__k&&Gv(n,0),s,c,l),a!=null)for(u=a.length;u--;)Bv(a[u]);s||(u=`value`,b==`progress`&&h==null?e.removeAttribute(`value`):h==null||h===e[u]&&(b!==`progress`||h)||ey(e,u,h,v[u],i),u=`checked`,g!=null&&g!=e[u]&&ey(e,u,g,v[u],i))}return e}function sy(e,t,n){try{if(typeof e==`function`){var r=typeof e.__u==`function`;r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(e){Tv.__e(e,n)}}function cy(e,t,n){var r,i;if(Tv.unmount&&Tv.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||sy(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Tv.__e(e,t)}r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&cy(r[i],t,n||typeof e.type!=`function`);n||Bv(e.__e),e.__e&&e.__e.__l&&(e.__e.__l=null),e.__e=e.__c=e.__=null}function ly(e,t,n){return this.constructor(e,n)}function uy(e,t){var n,r,i,a;t==document&&(t=document.documentElement),Tv.__&&Tv.__(e,t),r=(n=!!(e&&32&e.__u))?null:t.__k,e=t.__k=Vv(Uv,null,[e]),i=[],a=[],ny(t,e,r||Fv,Fv,t.namespaceURI,r?null:t.firstChild?Rv.call(t.childNodes):null,i,r?r.__e:t.firstChild,n,a,t.ownerDocument),iy(i,e,a)}function dy(e,t){e.__u|=32,uy(e,t)}Tv={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!(1&i.__g)){i.__g|=4;try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=8&i.__g),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=8&i.__g),o)return void(i.__g|=2)}catch(t){e=t}}throw kv=0,e}},Ev=0,Wv.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=zv({},this.state);typeof e==`function`&&(e=e(zv({},n),this.props)),e&&zv(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),qv(this))},Wv.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),qv(this))},Wv.prototype.render=Uv,Dv=[],kv=0,Av=function(e,t){return e.__v.__b-t.__v.__b},jv=/(PointerCapture)$|Capture$/i,Mv=0,Nv=ty(!1),Pv=ty(!0);var fy=0;Array.isArray;function Q(e,t,n,r,i,a){t||={};var o,s,c=t;if(`ref`in c&&typeof e!=`function`)for(s in c={},t)s==`ref`?o=t[s]:c[s]=t[s];var l={type:e,props:c,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--fy,__i:-1,__u:0,__source:i,__self:a};return Tv.vnode&&Tv.vnode(l),l}var py=16,my=16,hy={};function gy({name:e,remappedFrom:t,token:n,width:r,height:i,viewBox:a,label:o,alignCapitals:s=!1}){"use no memo";let c=`#${e.replace(/^#/,``)}`,{width:l,height:u,viewBox:d}=hy[e]??{width:py,height:my},f=r??l,p=i??u,m=a??d??`0 0 ${l} ${u}`;return Q(`svg`,{"data-icon-name":t??e,"data-icon-token":n,"data-align-capitals":s,...o==null?{"aria-hidden":!0}:{"aria-label":o,role:`img`},viewBox:m,width:f,height:p,children:Q(`use`,{href:c})})}var _y=e=>e!==void 0&&/\s/.test(e),vy=(e,t)=>{let n=t=>_y(e[t-1])||_y(e[t]);if(!n(t))return t;for(let r=1;r<e.length;r++){let i=t-r;if(i>0&&!n(i))return i;let a=t+r;if(a<e.length&&!n(a))return a}return t},yy=e=>vy(e,Math.ceil(e.length/2)),by=e=>{if(e.length<2)return[e,``];let t=yy(e);return[e.slice(0,t),e.slice(t)]},xy=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`.`)+1,n=e.length-t>10,r=t>=1&&!n?t:yy(e);return[e.slice(0,r),e.slice(r)]},Sy=e=>{if(e.length<4)return[e,``];let t=e.lastIndexOf(`/`)+1,n=e.length-t>25,r=t>=1&&!n?t:Math.ceil(e.length/2);return[e.slice(0,r),e.slice(r)]},Cy=(e,{splitIndex:t}={})=>{if(typeof t!=`number`){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}return[e.slice(0,t),e.slice(t)]},wy=(e,{splitOffset:t}={})=>{if(typeof t!=`number`||t<=0||t>=e.length){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}let n=e.length-t;return[e.slice(0,n),e.slice(n)]},Ty=(e,{splitOffset:t}={})=>{if(typeof t!=`number`||t<=0||t>=e.length){let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}let n=t;return[e.slice(0,n),e.slice(n)]};function Ey({children:e,marker:t,variant:n=`default`}){"use no memo";return Q(`div`,{"aria-hidden":!0,"data-truncate-marker-cell":!0,children:Q(`div`,{"data-truncate-marker":!0,children:typeof t==`function`?t({children:e}):n===`fade`?Q(`span`,{"data-truncate-fade":!0}):t})})}function Dy(e){"use no memo";let{mode:t,children:n}=e;return Q(`div`,{children:[Q(`div`,{"data-truncate-content":`visible`,children:t===`fruncate`?Q(`span`,{children:n}):n}),Q(`div`,{"data-truncate-content":`overflow`,"aria-hidden":!0,children:t===`fruncate`?Q(`span`,{children:n}):n})]})}function Oy({children:e,mode:t=`truncate`,marker:n=`…`,variant:r=`default`,...i}){"use no memo";let a=Q(Dy,{mode:t,children:e},`content`),o=Q(Ey,{marker:n,mode:t,variant:r},`marker`),s=Q(`div`,{"data-truncate-fill":!0},`fill`);return Q(`div`,{"data-truncate-container":t,"data-truncate-variant":r,...i,children:Q(`div`,{"data-truncate-grid":!0,children:t===`truncate`?[a,o]:[o,a,s]})})}function ky({children:e,...t}){"use no memo";return Q(Oy,{mode:`truncate`,...t,children:e})}function Ay({children:e,...t}){"use no memo";return Q(Oy,{mode:`fruncate`,...t,children:e})}function jy({children:e,contents:t,priority:n=`end`,split:r=`center`,minimumLength:i=12,className:a,style:o,...s}){"use no memo";let c=null,l=null;if(Array.isArray(t)){if(t.length!==2)return console.error(`MiddleTruncate: contents must be an array of two items`),null;c=Q(ky,{...s,children:t[0]}),l=Q(Ay,{...s,children:t[1]})}else{if(typeof e!=`string`)return console.error(`MiddleTruncate: children must be a string`),null;if(e.length===0)return Q(`div`,{className:a,style:o});if(e.length<i)return Q(n===`end`?Ay:ky,{...s,className:a,style:o,children:e});let t=null,u=null,d=null;if(typeof r==`string`)r===`center`?t=by:r===`extension`?t=xy:r===`leaf-path`&&(t=Sy);else if(typeof r==`number`)t=Cy,u=r;else if(Array.isArray(r)){let[e,n]=r;d=n,e===`last`?t=wy:e===`first`&&(t=Ty)}else typeof r==`function`&&(t=r);t??=by;let[f,p]=t(e,{priority:n,variant:s.variant,splitIndex:typeof u==`number`?u:void 0,splitOffset:typeof d==`number`?d:void 0}),m=f.length>=p.length,h=n===`equal`&&!m,g=n===`equal`&&m,_={},v={};h&&(_.marker=``),g&&(v.marker=``),c=Q(ky,{...s,..._,children:f}),l=Q(Ay,{...s,...v,children:p})}return Q(`div`,{"data-truncate-group-container":`middle`,className:a,style:o,children:[Q(`div`,{"data-truncate-segment-priority":n===`start`||n===`equal`?`1`:`2`,children:c}),Q(`div`,{"data-truncate-segment-priority":n===`end`||n===`equal`?`1`:`2`,children:l})]})}var My={endIndex:-1,startIndex:-1};function Ny(e,t,n){return Math.min(Math.max(e,t),n)}function Py(e,t){return e<0||t<e?My:{endIndex:t,startIndex:e}}function Fy(e){return e.startIndex<0||e.endIndex<e.startIndex}function Iy(e,t){return Fy(e)?0:(e.endIndex-e.startIndex+1)*t}function Ly(e,t,n){if(t<=0)return-1;let r=t*n;return e<=0?0:e>=r?t:Math.floor(e/n)}function Ry(e,t,n){return t<=0||e<=0?-1:e>=t*n?t-1:Math.ceil(e/n)-1}function zy(e){let t=new Map;return e.forEach((e,n)=>{if(e.kind!==`directory`||!e.isExpanded)return;let r=e.ancestorPaths.length,i=t.get(r);if(i==null){t.set(r,[n]);return}i.push(n)}),t}function By(e,t){let n=0,r=e.length-1,i=-1;for(;n<=r;){let a=Math.floor((n+r)/2),o=e[a];if(o==null)break;if(o<=t){i=a,n=a+1;continue}r=a-1}return i}function Vy(e){let t=new Map,n=[];for(let r=0;r<e.length;r+=1){let i=e[r];if(i==null)continue;let a=i.kind===`directory`&&i.isExpanded?[...i.ancestorPaths,i.path]:i.ancestorPaths,o=0;for(;o<n.length&&o<a.length&&n[o]===a[o];)o+=1;for(let e=n.length-1;e>=o;--e){let i=n[e];i!=null&&t.set(i,r-1)}n.length=o;for(let e=o;e<a.length;e+=1){let t=a[e];t!=null&&n.push(t)}}let r=e.length-1;for(let e of n)t.set(e,r);return t}function Hy(e,t,n){if(e.length===0||t<=0)return[];let r=Vy(e),i=zy(e),a=[];for(let r=0;r<e.length;r+=1){let o=i.get(r);if(o==null||o.length===0)break;let s=t+r*n,c=By(o,Math.min(e.length-1,Math.floor(s/n))),l=null;for(;c>=0;){let t=o[c],n=t==null?null:e[t]??null;if(n!=null&&(r===0||n.ancestorPaths[r-1]===a[r-1]?.path)){l=n;break}--c}if(l==null)break;a.push(l)}return a.map((i,a)=>{let o=a*n,s=(r.get(i.path)??e.length-1)+1;if(s>=e.length)return{row:i,top:o};let c=s*n-t;return{row:i,top:Math.min(o,c-n)}}).filter(e=>e.top+n>0)}function Uy(e,t){let n=t.totalRowCount??e.length,r=n*t.itemHeight,i=Math.max(0,t.viewportHeight),a=Math.max(0,Math.floor(t.overscan)),o=Math.max(0,r-i),s=Ny(t.scrollTop,0,o),c=t.stickyRows??Hy(e,s,t.itemHeight),l=c.reduce((e,n)=>Math.max(e,n.top+t.itemHeight),0),u=Math.min(r,s+l),d=Math.max(0,i-l),f=Math.max(0,r-u),p=Ly(s,n,t.itemHeight),m=Ly(u,n,t.itemHeight),h=l<=0||p<0||p>=n?-1:p,g=h===-1?-1:Math.min(n-1,m-1),_=h===-1||g<h?0:g-h+1,v=d<=0||m>=n?My:Py(m,Ry(u+d,n,t.itemHeight)),y=g+1,b=Fy(v)?My:Py(Math.max(y,v.startIndex-a),Math.min(n-1,v.endIndex+a)),x=Iy(b,t.itemHeight);return{occlusion:{firstOccludedIndex:h,lastOccludedIndex:g,occludedCount:_},physical:{itemHeight:t.itemHeight,maxScrollTop:o,overscan:a,scrollTop:s,totalHeight:r,totalRowCount:n,viewportHeight:i},projected:{contentHeight:f,paneHeight:d,paneTop:u},sticky:{height:l,rows:c},visible:v,window:{endIndex:b.endIndex,height:x,offsetTop:Fy(b)?0:b.startIndex*t.itemHeight,startIndex:b.startIndex}}}var Wy={added:`A`,deleted:`D`,ignored:null,modified:`M`,renamed:`R`,untracked:`U`},Gy={added:`Git status: added`,deleted:`Git status: deleted`,ignored:`Git status: ignored`,modified:`Git status: modified`,renamed:`Git status: renamed`,untracked:`Git status: untracked`},Ky=`Contains git status items`;function qy(e){return e.current?!0:(e.current=!0,!1)}function Jy(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:i=0,viewportHeight:a}=e;if(n<0)return null;let o=Math.max(0,i),s=n*r,c=s+r;if(s<t+o){let e=Math.max(0,s-o);return e===t?null:e}if(c>t+a){let e=c-a;return e===t?null:e}return null}function Yy(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,offset:i,topInset:a=0,totalHeight:o,viewportHeight:s}=e;if(i===`nearest`)return Jy({currentScrollTop:t,focusedIndex:n,itemHeight:r,topInset:a,viewportHeight:s});if(n<0)return null;let c=Math.max(0,a),l=n*r,u=Math.max(0,s-c),d=i===`center`?c+Math.max(0,(u-r)/2):c,f=Math.max(0,o-s),p=Math.max(0,Math.min(l-d,f));return p===t?null:p}function Xy(e){let{currentScrollTop:t,focusedIndex:n,itemHeight:r,targetViewportOffset:i,totalHeight:a,viewportHeight:o}=e;if(n<0)return null;let s=Math.max(0,i),c=n*r,l=c+r,u=t+s,d=t+o;if(c>=u&&l<=d)return null;let f=Math.max(0,a-o),p=Math.max(0,Math.min(c-s,f));return p===t?null:p}function Zy(e){if(e==null||!e.isConnected||e===document.body||e===document.documentElement)return!1;e.focus({preventScroll:!0});let t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement===e:document.activeElement===e}function Qy(e){let t=e.getRootNode();if(t instanceof ShadowRoot){let e=t.activeElement;return e instanceof HTMLElement?e:null}let n=document.activeElement;return n instanceof HTMLElement&&e.contains(n)?n:null}function $y(e,t){if(e==null)return t;let n=e.getBoundingClientRect().height;return n>0?n:e.clientHeight>0?e.clientHeight:t}function eb(e,t){return e!=null&&e>0?e:t}function tb(e){let t=e.borderBoxSize,n=Array.isArray(t)?t[0]:t;return n!=null&&Number.isFinite(n.blockSize)&&n.blockSize>0?n.blockSize:e.contentRect.height>0?e.contentRect.height:null}function nb(e,t,n,r,i=0){let a=Jy({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,topInset:i,viewportHeight:r});return a!=null&&(e.scrollTop=a,!0)}function rb(e,t,n,r,i,a,o=0){let s=Yy({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,offset:a,topInset:o,totalHeight:i,viewportHeight:r});return s!=null&&(e.scrollTop=s,!0)}function ib(e,t,n,r,i,a){let o=Xy({currentScrollTop:e.scrollTop,focusedIndex:t,itemHeight:n,targetViewportOffset:a,totalHeight:i,viewportHeight:r});return o!=null&&(e.scrollTop=o,!0)}function ab(e,t,n,r){return n.end<n.start?null:e<n.start?-t:e>n.end?r:null}function ob(e){let{renamingPath:t,previousRenamingPath:n,hasRenderedInput:r}=e;return t==null?`reset`:r?n===t?`ignore`:`focus-input`:`reveal-canonical`}function sb({ariaLabel:e,isFlattened:t=!1,ref:n,value:r,onBlur:i,onInput:a}){return Q(`input`,{ref:n,"data-item-rename-input":!0,...t?{"data-item-flattened-rename-input":!0}:{},"aria-label":e,value:r,onBlur:i,onInput:a,onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation()})}function cb(e){let{row:t,mode:n,targetPath:r,ariaLabel:i,domId:a,isParked:o,itemHeight:s,features:c,state:l,extraStyle:u}=e,d=n===`sticky`,f=t.ancestorPaths.at(-1)??``,p={};return l.isFocusRinged&&(p[`data-item-focused`]=!0),t.isSelected&&(p[`data-item-selected`]=!0),l.isContextHovered&&(p[`data-item-context-hover`]=`true`),l.isDragTarget&&(p[`data-item-drag-target`]=!0),l.isDragging&&(p[`data-item-dragging`]=!0),l.effectiveGitStatus!=null&&(p[`data-item-git-status`]=l.effectiveGitStatus),l.containsGitChange&&(p[`data-item-contains-git-change`]=`true`),{"aria-expanded":!d&&t.kind===`directory`?t.isExpanded:void 0,"aria-haspopup":c.contextMenuEnabled?`menu`:void 0,"aria-label":i,"aria-level":d?void 0:t.level+1,"aria-posinset":d?void 0:t.posInSet+1,"aria-selected":d?void 0:t.isSelected?`true`:`false`,"aria-setsize":d?void 0:t.setSize,"data-file-tree-sticky-path":d?r:void 0,"data-file-tree-sticky-row":d?`true`:void 0,"data-item-context-menu-button-visibility":c.actionLaneEnabled?c.contextMenuButtonVisibility:void 0,"data-item-context-menu-trigger-mode":c.contextMenuEnabled?c.contextMenuTriggerMode:void 0,"data-item-has-context-menu-action-lane":c.actionLaneEnabled?`true`:void 0,"data-item-has-git-lane":c.gitLaneActive?`true`:void 0,"data-item-parent-path":f.length>0?f:void 0,"data-item-parked":o?`true`:void 0,"data-item-path":r,"data-item-type":t.kind===`directory`?`folder`:`file`,"data-type":`item`,id:d?void 0:a,role:d?void 0:`treeitem`,style:{minHeight:`${s}px`,...u},tabIndex:!d&&t.isFocused?0:-1,...p}}function lb(e){let{event:t,mode:n,isSearchOpen:r,isDirectory:i}=e,a=t.ctrlKey||t.metaKey,o=t.shiftKey||a,s=t.shiftKey?{additive:a,kind:`range`}:a?{kind:`toggle`}:{kind:`single`};return{closeSearch:r,revealCanonical:n===`sticky`,selection:s,toggleDirectory:!o&&i}}var ub,db,fb,pb,mb=Object.is,hb=0,gb=[],_b=Tv,vb=_b.__b,yb=_b.__r,bb=_b.diffed,xb=_b.__c,Sb=_b.unmount,Cb=_b.__;function wb(e,t){_b.__h&&_b.__h(db,e,hb||t),hb=0;var n=db.__H||(db.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Tb(e){return hb=1,Eb(Lb,e)}function Eb(e,t,n){var r=wb(ub++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Lb(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);mb(t,n)||(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=db,!db.__f)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var o=r.__c.props!==e;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,mb(t,e.__[0])||(o=!0)}}),a&&a.call(this,e,t,n)||o};db.__f=!0;var a=db.shouldComponentUpdate,o=db.componentWillUpdate;db.componentWillUpdate=function(e,t,n){if(4&this.__g){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},db.shouldComponentUpdate=i}return r.__N||r.__}function Db(e,t){var n=wb(ub++,3);!_b.__s&&Ib(n.__H,t)&&(n.__=e,n.u=t,db.__H.__h.push(n))}function Ob(e,t){var n=wb(ub++,4);!_b.__s&&Ib(n.__H,t)&&(n.__=e,n.u=t,db.__h.push(n))}function $(e){return hb=5,kb(function(){return{current:e}},[])}function kb(e,t){var n=wb(ub++,7);return Ib(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Ab(e,t){return hb=8,kb(function(){return e},t)}function jb(){for(var e;e=gb.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Pb),e.__H.__h.forEach(Fb),e.__H.__h=[]}catch(t){e.__H.__h=[],_b.__e(t,e.__v)}}_b.__b=function(e){db=null,vb&&vb(e)},_b.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Cb&&Cb(e,t)},_b.__r=function(e){yb&&yb(e),ub=0;var t=(db=e.__c).__H;t&&(fb===db?(t.__h=[],db.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(Pb),t.__h.forEach(Fb),t.__h=[],ub=0)),fb=db},_b.diffed=function(e){bb&&bb(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(gb.push(t)!==1&&pb===_b.requestAnimationFrame||((pb=_b.requestAnimationFrame)||Nb)(jb)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),fb=db=null},_b.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Pb),e.__h=e.__h.filter(function(e){return!e.__||Fb(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],_b.__e(n,e.__v)}}),xb&&xb(e,t)},_b.unmount=function(e){Sb&&Sb(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Pb(e)}catch(e){t=e}}),n.__H=void 0,t&&_b.__e(t,n.__v))};var Mb=typeof requestAnimationFrame==`function`;function Nb(e){var t,n=function(){clearTimeout(r),Mb&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Mb&&(t=requestAnimationFrame(n))}function Pb(e){var t=db,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),db=t}function Fb(e){var t=db;e.__c=e.__(),db=t}function Ib(e,t){return!e||e.length!==t.length||t.some(function(t,n){return!mb(t,e[n])})}function Lb(e,t){return typeof t==`function`?t(e):t}function Rb(e,t=null,n=null){"use no memo";let r=e.flattenedSegments;return r==null||r.length===0?t??e.name:Q(`span`,{"data-item-flattened-subitems":!0,children:r.map((e,i)=>{let a=i===r.length-1;return Q(Uv,{children:[Q(`span`,{"data-item-flattened-subitem":e.path,"data-item-flattened-subitem-drag-target":n===e.path?`true`:void 0,children:a&&t!=null?t:Q(ky,{children:e.name})}),i<r.length-1?` / `:``]},e.path)})})}function zb(e){return e.isFlattened?e.flattenedSegments?.findLast(e=>e.isTerminal)?.path??e.path:e.path}function Bb(e){let t=e.flattenedSegments;return t==null||t.length===0?e.name:t.map(e=>e.name).join(` / `)}function Vb(e,t,n,r){return e.map((e,i)=>{let a=i*n,o=e.subtreeEndIndex+1;if(o>=r)return{row:e.row,top:a};let s=o*n-t;return{row:e.row,top:Math.min(a,s-n)}}).filter(e=>e.top+n>0)}function Hb({controller:e,itemHeight:t,overscan:n,scrollTop:r,stickyFolders:i,viewportHeight:a}){let o=e.getVisibleCount(),s=i&&o>0?e.getStickyRowCandidates(r,t):[],c=s==null&&i&&o>0?e.getVisibleRows(0,o-1):[],l=Uy(c,{itemHeight:t,overscan:n,scrollTop:r,stickyRows:s==null?void 0:Vb(s,r,t,o),totalRowCount:o,viewportHeight:a}),u=i&&r<=0&&o>0?e.getStickyRowCandidates(1,t):[],d=u!=null&&r<=0?Vb(u,1,t,o):i&&r<=0&&c.length>0?Hy(c,1,t):l.sticky.rows;return{overlayHeight:d.reduce((e,n)=>Math.max(e,n.top+t),0),overlayRows:d,snapshot:l,visibleRows:c}}var Ub=400,Wb=40,Gb=18;function Kb(e,t,n){let r=e,i=document.elementFromPoint?.bind(document)??null,a=r.elementFromPoint?.(t,n)??i?.(t,n)??null;return e instanceof ShadowRoot&&(a==null||!e.contains(a))?qb(e,t,n):a instanceof HTMLElement?a:null}function qb(e,t,n){let r=Array.from(e.querySelectorAll(`[data-type="item"], [data-item-flattened-subitem]`));for(let e=r.length-1;e>=0;e--){let i=r[e],a=i.getBoundingClientRect();if(t>=a.left&&t<=a.right&&n>=a.top&&n<=a.bottom)return i}return null}function Jb(e){let t=e?.closest?.(`[data-type="item"]`);if(!(t instanceof HTMLElement))return null;let n=t.dataset.itemPath??null;if(n==null)return null;let r=e?.closest?.(`[data-item-flattened-subitem]`),i=r instanceof HTMLElement?r.getAttribute(`data-item-flattened-subitem`)??null:null;if(i!=null&&i.endsWith(`/`))return{directoryPath:i,flattenedSegmentPath:i,hoveredPath:n,kind:`directory`};if(t.dataset.itemType===`folder`)return{directoryPath:n,flattenedSegmentPath:null,hoveredPath:n,kind:`directory`};let a=t.dataset.itemParentPath??null;return a==null||a.length===0?{directoryPath:null,flattenedSegmentPath:null,hoveredPath:n,kind:`root`}:{directoryPath:a,flattenedSegmentPath:null,hoveredPath:n,kind:`directory`}}function Yb(e){let t=e.cloneNode(!0);return t.removeAttribute(`id`),t.dataset.fileTreeDragPreview=`true`,t.setAttribute(`aria-hidden`,`true`),t.tabIndex=-1,Object.assign(t.style,{boxShadow:`0 4px 12px rgba(0, 0, 0, 0.15)`,left:`0px`,margin:`0`,pointerEvents:`none`,position:`fixed`,top:`0px`,willChange:`transform`,zIndex:`10000`}),t}function Xb(){return navigator.vendor!==`Apple Computer, Inc.`}function Zb(e,t){let n=e-t.top;if(n<Wb)return-Math.ceil((Wb-Math.max(0,n))/Wb*Gb);let r=t.bottom-e;return r<Wb?Math.ceil((Wb-Math.max(0,r))/Wb*Gb):0}function Qb(e,t){if(e!=null){let t=Wy[e];return t==null?null:{text:t,title:Gy[e]}}return t?{icon:{name:`file-tree-icon-dot`,width:6,height:6},title:Ky}:null}function $b(e,t,n){if(t==null||t.size===0)return null;let r=[];for(let i=e.length-1;i>=0;--i){let a=e[i],o=n.get(a);if(o!=null){for(let e of r)n.set(e,o);return o?`ignored`:null}if(t.has(a)){n.set(a,!0);for(let e of r)n.set(e,!0);return`ignored`}r.push(a)}for(let e of r)n.set(e,!1);return null}function ex(e){return e!=null&&`toggle`in e}function tx(e){return e.code===`Space`||e.key===` `||e.key===`Spacebar`}function nx(e){return e.key.length===1&&/^[\p{L}\p{N}]$/u.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function rx(e){return e==null?``:`[data-item-section="spacing-item"][data-ancestor-path="${e.replaceAll(`\\`,`\\\\`).replaceAll(`"`,`\\"`)}"] { opacity: 1; }`}function ix(e){return e.shiftKey&&e.key===`F10`||e.key===`ContextMenu`}function ax(e,t){return t&&ix(e)||(e.ctrlKey||e.metaKey)&&tx(e)?!0:e.key===`ArrowDown`||e.key===`ArrowLeft`||e.key===`ArrowRight`||e.key===`ArrowUp`}var ox=new Set([`ArrowDown`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`End`,`Home`,`PageDown`,`PageUp`]);function sx(e){for(let t of e.composedPath())if(t instanceof HTMLElement&&(t.dataset.fileTreeContextMenuRoot===`true`||t.dataset.type===`context-menu-anchor`||t.dataset.type===`context-menu-trigger`||t.getAttribute(`slot`)===`context-menu`))return!0;return!1}function cx(e){return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width,x:e.x,y:e.y}}function lx(e,t){return{bottom:t,height:0,left:e,right:e,top:t,width:0,x:e,y:t}}function ux(e,t){if(e==null)return t.offsetTop;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.top-r.top}function dx(e,t,n){if(n==null){e.delete(t);return}e.set(t,n)}function fx(e,t,n){if(e==null)return null;let r=t.get(e)??null;if(r!=null)return r;let i=n.get(e)??null;return i?.dataset.itemParked===`true`?null:i}function px(e){if(e==null)return[];let t=[];for(let n of e.querySelectorAll(`button[data-file-tree-sticky-row="true"]`)){if(!(n instanceof HTMLElement))continue;let e=n.dataset.fileTreeStickyPath;e!=null&&t.push(e)}return t}function mx(e,t){if(e==null||t==null)return null;for(let n of e.querySelectorAll(`button[data-item-focused="true"][data-item-parked="true"]`))if(n instanceof HTMLElement&&n.dataset.itemPath===t)return n;return null}function hx(e,t,n,r,i,a,o){let s=Math.max(0,a-i),c=t?.getBoundingClientRect()??null,l=c==null||n==null?null:n.getBoundingClientRect().top-c.top,u=mx(e,r),d=c==null||u==null?null:u.getBoundingClientRect().top-c.top;return Math.max(0,Math.min(d??Math.max(l??0,s),Math.max(0,o-i)))}function gx(e,t){return{kind:e.kind,name:Bb(e),path:t}}function _x(e){return e==null?void 0:`${e}__tree`}function vx(e,t,n){if(e!=null)return`${e}__focused-item-${encodeURIComponent(t)}${n?`__parked`:``}`}function yx(e){return e===`file-tree-icon-chevron`||e===`file-tree-icon-dot`||e===`file-tree-icon-file`||e===`file-tree-icon-lock`}function bx(e,t){if(e==null)return null;if(`text`in e)return e.parts==null?Q(`span`,{title:e.title,children:e.text}):Q(`span`,{title:e.title,children:e.parts.map((e,t)=>Q(`span`,{style:{color:e.color},children:e.text},t))});let n=typeof e.icon==`string`?yx(e.icon)?t(e.icon):{name:e.icon}:yx(e.icon.name)?(()=>{let n=t(e.icon.name),{name:r,...i}=e.icon;return{...n,...i}})():e.icon;return Q(`span`,{title:e.title,children:Q(gy,{...n})})}function xx(e){e!=null&&Zy(e.querySelector([`button:not([disabled])`,`[href]`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`, `))??e)}function Sx(e,t,{actionLaneEnabled:n=!1,customDecoration:r=null,decorationLaneEnabled:i=!1,dragTargetFlattenedSegmentPath:a=null,gitDecoration:o=null,gitLaneActive:s=!1,renameInput:c=null,showDecorativeActionAffordance:l=!1}={}){let u=zb(e);return Q(Uv,{children:[e.depth>0?Q(`div`,{"data-item-section":`spacing`,children:Array.from({length:e.depth}).map((t,n)=>Q(`div`,{"data-item-section":`spacing-item`,"data-ancestor-path":e.ancestorPaths[n]},n))}):null,Q(`div`,{"data-item-section":`icon`,children:e.kind===`directory`?Q(gy,{...t(`file-tree-icon-chevron`)}):Q(gy,{...t(`file-tree-icon-file`,u)})}),Q(`div`,{"data-item-section":`content`,children:e.isFlattened?Rb(e,c,a):c??Q(jy,{minimumLength:5,split:`extension`,children:e.name})}),i?Q(`div`,{"data-item-section":`decoration`,children:r==null?null:bx(r,t)}):null,s?Q(`div`,{"data-item-section":`git`,children:bx(o,t)}):null,n?Q(`div`,{"data-item-section":`action`,children:l?Q(`span`,{"aria-hidden":`true`,"data-item-action-affordance":`decorative`,children:Q(gy,{...t(`file-tree-icon-ellipsis`)})}):null}):null]})}function Cx(e,t,n,r={}){let{controller:i,renameView:a,visualFocusPath:o,contextHoverPath:s,draggedPathSet:c,dragTarget:l,dragAndDropEnabled:u,shouldSuppressContextMenu:d,handleRowDragStart:f,handleRowDragEnd:p,handleRowTouchStart:m,instanceId:h,itemHeight:g,gitStatusByPath:_,ignoredGitDirectories:v,ignoredInheritanceCache:y,directoriesWithGitChanges:b,gitLaneActive:x,contextMenuEnabled:S,contextMenuTriggerMode:C,contextMenuButtonTriggerEnabled:w,contextMenuButtonVisibility:T,contextMenuRightClickEnabled:E,registerRenameInput:D,registerButton:O,resolveIcon:k,renderDecorationForRow:A,openContextMenuForRow:j,onRowClick:M,onKeyDown:N}=e,P=zb(t),{isParked:ee=!1,mode:te=`flow`,style:F}=r,ne=te===`sticky`,I=_?.get(P)??null??$b(t.ancestorPaths,v,y),re=t.kind===`directory`&&(b?.has(P)??!1),ie=A(t,P),ae=Qb(I,re),L=S&&w,R=ie!=null||x||L,oe=L&&T===`always`,z=a.getPath()===P,se=z?a.getValue():``,ce=ne||!z?null:Q(sb,{ref:D,ariaLabel:`Rename ${Bb(t)}`,isFlattened:t.isFlattened,value:se,onBlur:()=>{a.commit()},onInput:e=>{a.setValue(e.currentTarget.value)}}),le=Sx(t,k,{actionLaneEnabled:L,customDecoration:ie,decorationLaneEnabled:R,dragTargetFlattenedSegmentPath:l?.flattenedSegmentPath??null,gitDecoration:ae,gitLaneActive:x,renameInput:ce,showDecorativeActionAffordance:oe}),B={...cb({ariaLabel:Bb(t),domId:t.isFocused?vx(h,P,ee):void 0,extraStyle:F,features:{actionLaneEnabled:L,contextMenuButtonVisibility:L?T:null,contextMenuEnabled:S,contextMenuTriggerMode:S?C:null,gitLaneActive:x},isParked:ee,itemHeight:g,mode:te,row:t,state:{containsGitChange:re,effectiveGitStatus:I,isContextHovered:s===P,isDragTarget:l?.kind===`directory`&&l.directoryPath===P,isDragging:c?.has(P)===!0,isFocusRinged:t.isFocused&&o===P},targetPath:P}),key:n,onContextMenu:S||u?e=>{if(d()){e.preventDefault();return}S&&(e.preventDefault(),E&&(i.focusMountedPathFromInput(P),j(t,P,{anchorRect:lx(e.clientX,e.clientY),source:`right-click`})))}:void 0,onFocus:ne?void 0:()=>{i.focusMountedPathFromInput(P)},onKeyDown:ne?void 0:N,ref:e=>{O(P,e)}};return!ne&&z?Q(`div`,{...B,children:le}):Q(`button`,{...B,type:`button`,draggable:u&&!ee,onDragEnd:u&&!ee?p:void 0,onDragStart:u&&!ee?e=>{f(e,t,P)}:void 0,onMouseDown:e=>{if(ne){e.preventDefault();return}i.isSearchOpen()&&e.preventDefault()},onTouchStart:u&&!ee?e=>{m(e,t,P)}:void 0,onClick:e=>{M(e,t,P,te)},children:le})}function wx(e,t,n){return t.end<t.start?[]:e.controller.getVisibleRows(t.start,t.end).filter(e=>!n.has(zb(e))).map((n,r)=>Cx(e,n,t.start+r))}function Tx({composition:e,controller:t,gitStatusByPath:n,ignoredGitDirectories:r,directoriesWithGitChanges:i,icons:a,instanceId:o,itemHeight:s=kp,overscan:c=10,renamingEnabled:l=!1,renderRowDecoration:u,searchBlurBehavior:d=`close`,searchEnabled:f=!1,searchFakeFocus:p=!1,slotHost:m,stickyFolders:h=!1,initialViewportHeight:g=420}){"use no memo";let _=$(null),v=$(null),y=$(!1),b=$(null),x=$(null),S=$(null),C=$(null),w=$(null),T=$(new Map),E=$(new Map),D=$(()=>{}),O=$(null),k=$(0),A=$(!1),j=$(null);j.current!==t&&(A.current=!1,j.current=t);let M=$(!1),N=$(null),P=$(null),ee=$(!1),te=$(null),F=$(null),ne=$(null),I=$(null),re=$(null),ie=$(null),ae=$(null),L=$(null),R=$(!1),oe=$(null),z=$(null),se=$(null),ce=$(null),le=kb(()=>new Map,[]),[,B]=Tb(0),V=$(!1),[ue,de]=Tb(null),[fe,pe]=Tb(null),[me,he]=Tb(null),[ge,_e]=Tb(null),[ve,ye]=Tb(0),[H,be]=Tb(null),xe=$(H);xe.current=H;let Se=$(null),Ce=$(null),we=$(null),Te=$(null),Ee=$(null),De=$(!1),Oe=()=>{Ce.current=null,we.current=null,Te.current=null},ke=(e,t)=>{Ce.current=e,we.current=null,Te.current=t==null?null:{path:e,scrollTop:t}},Ae=(e,t)=>{Ce.current=null,we.current={path:e,viewportOffset:t},Te.current=null},je=$(d===`retain`&&t.isSearchOpen()),[Me,Ne]=Tb(p);Db(()=>{p||Ne(!1)},[p]);let Pe=$(!1),Fe=Ab(()=>{Pe.current=!0,Ne(e=>e&&!1)},[]),[Ie,Le]=Tb(()=>Hb({controller:t,itemHeight:s,overscan:c,scrollTop:0,stickyFolders:h,viewportHeight:g})),[Re,ze]=Tb(!1);Db(()=>{ze(!0)},[]);let Be=e?.contextMenu?.enabled===!0||e?.contextMenu?.render!=null||e?.contextMenu?.onOpen!=null||e?.contextMenu?.onClose!=null,Ve=e?.contextMenu?.triggerMode??(Be?`right-click`:`both`),He=Ve===`both`||Ve===`button`,Ue=e?.contextMenu?.buttonVisibility??`when-needed`,We=Ve===`both`||Ve===`right-click`;Ob(()=>{let e=S.current;if(e==null)return;let t=e=>{if(!(e instanceof CustomEvent))return;let t=e.detail?.path??null;Ee.current=t,pe(t),_e(t==null?null:`pointer`)},n=e=>{e instanceof CustomEvent&&(De.current=e.detail?.disabled===!0)};return e.addEventListener(`file-tree-debug-set-context-menu-trigger`,t),e.addEventListener(`file-tree-debug-set-scroll-suppression`,n),()=>{e.removeEventListener(`file-tree-debug-set-context-menu-trigger`,t),e.removeEventListener(`file-tree-debug-set-scroll-suppression`,n)}},[]);let Ge=Ab((e,t)=>{dx(T.current,e,t)},[]),Ke=Ab((e,t)=>{dx(E.current,e,t)},[]),qe=Ab(e=>{x.current=e},[]),Je=Ab(e=>fx(e,E.current,T.current),[]),Ye=n!=null||r!=null||i!=null,{resolveIcon:Xe}=kb(()=>wv(a),[a]),Ze=t[ev](),Qe=Ze.getPath(),$e=Qe!=null,et=t.isSearchOpen(),tt=t.getSearchValue(),U=t.getFocusedPath(),nt=t.getFocusedIndex(),rt=t.getScrollRequest(),it=t.isDragAndDropEnabled(),at=t.getDragSession(),ot=kb(()=>at==null?null:new Set(at.draggedPaths),[at]),st=at?.target??null,ct=at?.primaryPath??null,lt=_x(o),{overlayHeight:ut,overlayRows:dt,snapshot:ft,visibleRows:pt}=Ie,mt=ft.physical.viewportHeight,ht=kb(()=>({end:ft.window.endIndex,start:ft.window.startIndex}),[ft.window.endIndex,ft.window.startIndex]),gt=dt,_t=ft.sticky.rows,vt=ft.physical.totalHeight,yt=ft.sticky.height,bt=kb(()=>new Set(_t.map(e=>zb(e.row))),[_t]),xt=nt>=0&&nt>=ht.start&&nt<=ht.end,St=Ab((e,t)=>u?.({item:gx(e,t),row:e})??null,[u]),Ct=Ab(e=>Zy(e==null?null:T.current.get(e)??null)?!0:Zy(S.current),[]),wt=Ab(e=>{Ct(t.focusNearestPath(e))},[t,Ct]),Tt=$(wt);Tt.current=wt;let Et=$(!0),Dt=$(()=>{}),Ot=Ab((t=!0)=>{let n=xe.current;n!=null&&(Et.current=Et.current&&t,be(null),e?.contextMenu?.onClose?.(),Et.current&&wt(n.path))},[e?.contextMenu,wt]);Dt.current=Ot;let kt=Ab(e=>{let t=e==null?null:ux(S.current,e);he(e=>e===t?e:t)},[]),At=Ab((e,n,r)=>{let i=t.getItem(n);if(i==null)return;let a=Je(n);if(a?.dataset.fileTreeStickyRow===`true`){let e=C.current;ke(n,e?.scrollTop??null),M.current=!0,de(e=>e===n?e:n)}i.focus(),kt(a),Et.current=!0,be({anchorRect:r?.anchorRect??null,item:gx(e,n),path:n,source:r?.source??`keyboard`})},[t,Je,kt]),jt=Ab(e=>{if(l){if(t.isSearchOpen()){let e=C.current,t=$y(e,mt);te.current=nt<0||e==null?null:Math.max(0,Math.min(nt*s-e.scrollTop,Math.max(0,t-s))),ee.current=!0}t.startRenaming(e)!==!1&&(_e(`focus`),B(e=>e+1))}},[t,nt,s,l,mt]),Mt=Ab((e,{restoreTreeFocus:n=!0,targetOffset:r=`live-overlay`}={})=>{let i=C.current;if(i==null)return!1;t.focusPath(e);let a=t.getFocusedIndex();if(a<0)return!1;let o=t.getVisibleRows(a,a)[0]??null;if(o==null)return!1;let l=$y(i,mt),u=t.getVisibleCount()*s,d=r===`sticky-parents`?o.ancestorPaths.length*s:Hb({controller:t,itemHeight:s,overscan:c,scrollTop:i.scrollTop,stickyFolders:h,viewportHeight:l}).snapshot.sticky.height;return M.current=!0,ib(i,a,s,l,u,d),D.current(),Se.current=n?e:null,!0},[t,s,c,mt,h]),Nt=()=>y.current===!0||ce.current!=null||R.current===!0,Pt=e=>typeof window.requestAnimationFrame==`function`?window.requestAnimationFrame(()=>{e()}):window.setTimeout(e,16),Ft=e=>{if(e!=null){if(typeof window.cancelAnimationFrame==`function`){window.cancelAnimationFrame(e);return}window.clearTimeout(e)}},It=()=>{I.current!=null&&(clearTimeout(I.current),I.current=null),ne.current=null},Lt=()=>{ie.current?.remove(),ie.current=null},Rt=()=>{Ft(F.current),F.current=null,re.current=null},zt=e=>{let t=S.current?.getRootNode();if(t instanceof ShadowRoot){t.append(e);return}document.body.append(e)},Bt=()=>{L.current?.(),L.current=null,ce.current!=null&&(clearTimeout(ce.current),ce.current=null),R.current=!1,oe.current=null,se.current=null,z.current!=null&&(z.current.setAttribute(`draggable`,`true`),z.current.style.removeProperty(`touch-action`),z.current=null),Lt(),It(),Rt(),ae.current=null},Vt=(e,n)=>{let r=S.current?.getRootNode(),i=Jb(Kb(r instanceof ShadowRoot?r:document,e,n));return t.setDragTarget(i),t.getDragSession()?.target??null},Ht=e=>{let n=t.getDragAndDropConfig()?.openOnDropDelay??800;if(e==null||e.kind!==`directory`||e.directoryPath==null||n<=0){It();return}let r=t.getItem(e.directoryPath),i=ex(r)?r:null;if(i==null||i.isExpanded()){It();return}let a=`${e.directoryPath}::${e.flattenedSegmentPath??``}`;ne.current!==a&&(It(),ne.current=a,I.current=setTimeout(()=>{let n=t.getDragSession()?.target;n?.kind===`directory`&&n.directoryPath===e.directoryPath&&n.flattenedSegmentPath===e.flattenedSegmentPath&&i.expand()},n))},Ut=()=>{F.current=null;let e=re.current,n=C.current;if(e==null||n==null||t.getDragSession()==null)return;let r=n.getBoundingClientRect(),i=Zb(e.clientY,r);if(i===0)return;let a=Math.max(0,n.scrollHeight-n.clientHeight),o=Math.max(0,Math.min(a,n.scrollTop+i));o!==n.scrollTop&&(n.scrollTop=o,D.current()),Ht(Vt(e.clientX,e.clientY)),F.current=Pt(Ut)},Wt=(e,t)=>{re.current={clientX:e,clientY:t},F.current??=Pt(Ut)},Gt=(e,n,r)=>{let i=e.currentTarget;if(i!=null){if(Bt(),Lt(),It(),Rt(),t.startDrag(r)===!1){e.preventDefault();return}if(ae.current=n,e.dataTransfer!=null&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.dropEffect=`move`,e.dataTransfer.setData(`text/plain`,r),Xb())){let t=Yb(i),n=i.getBoundingClientRect();Object.assign(t.style,{height:`${n.height}px`,opacity:`0.85`,transform:`translate3d(-9999px, 0px, 0)`,width:`${n.width}px`}),zt(t),ie.current=t,e.dataTransfer.setDragImage(t,Math.max(0,e.clientX-n.left),Math.max(0,e.clientY-n.top))}}},Kt=()=>{Lt(),It(),Rt(),ae.current=null,t.cancelDrag()},qt=(e,n,r)=>{if(ce.current!=null||R.current)return;let i=e.touches[0],a=e.currentTarget;if(i==null||a==null)return;se.current={clientX:i.clientX,clientY:i.clientY},z.current=a,a.setAttribute(`draggable`,`false`);let o=(e={})=>{let t=e.restoreNativeDraggable??!R.current;ce.current!=null&&(clearTimeout(ce.current),ce.current=null),document.removeEventListener(`touchmove`,s),document.removeEventListener(`touchend`,c),document.removeEventListener(`touchcancel`,c),L.current===o&&(L.current=null),t&&(a.setAttribute(`draggable`,`true`),z.current===a&&(z.current=null),se.current=null)},s=e=>{let t=e.touches[0],n=se.current;if(t==null||n==null)return;let r=t.clientX-n.clientX,i=t.clientY-n.clientY;r*r+i*i<=100||o()},c=()=>{o()};document.addEventListener(`touchmove`,s,{passive:!0}),document.addEventListener(`touchend`,c),document.addEventListener(`touchcancel`,c),L.current=o,ce.current=setTimeout(()=>{if(o({restoreNativeDraggable:!1}),t.startDrag(r)===!1){a.setAttribute(`draggable`,`true`),z.current===a&&(z.current=null),se.current=null;return}R.current=!0,z.current=a,a.setAttribute(`draggable`,`false`),a.style.setProperty(`touch-action`,`none`),ae.current=n;let e=a.getBoundingClientRect(),s=Yb(a);Object.assign(s.style,{height:`${e.height}px`,opacity:`0.85`,transform:`translate3d(${e.left}px, ${e.top}px, 0)`,width:`${e.width}px`}),zt(s),ie.current=s,oe.current={x:i.clientX-e.left,y:i.clientY-e.top};let c=e=>{let t=e.touches[0];if(t==null)return;e.preventDefault();let n=oe.current;n!=null&&ie.current!=null&&(ie.current.style.transform=`translate3d(${t.clientX-n.x}px, ${t.clientY-n.y}px, 0)`),Ht(Vt(t.clientX,t.clientY)),Wt(t.clientX,t.clientY)},l=e=>{let n=e.changedTouches[0];n!=null&&Vt(n.clientX,n.clientY),t.completeDrag(),Bt()},u=()=>{t.cancelDrag(),Bt()};L.current=()=>{document.removeEventListener(`touchmove`,c),document.removeEventListener(`touchend`,l),document.removeEventListener(`touchcancel`,u)},document.addEventListener(`touchmove`,c,{passive:!1}),document.addEventListener(`touchend`,l),document.addEventListener(`touchcancel`,u)},Ub)},Jt=e=>{if(H!=null){if(e.key===`Escape`){Ot(),e.preventDefault(),e.stopPropagation();return}ox.has(e.key)&&(e.preventDefault(),e.stopPropagation());return}if(Ze.isActive()){if(e.isComposing||e.keyCode===229)return;if(e.key===`Escape`)Ze.cancel();else if(e.key===`Enter`)Ze.commit();else return;_e(`focus`),B(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(l&&e.key===`F2`){jt(U??void 0),e.preventDefault(),e.stopPropagation();return}if(et){if(e.key===`Escape`)ee.current=!1,te.current=null,t.closeSearch();else if(e.key===`Enter`){let e=t.getFocusedPath();e!=null&&t.selectOnlyPath(e);let n=C.current,r=$y(n,mt);te.current=nt<0||n==null?null:Math.max(0,Math.min(nt*s-n.scrollTop,Math.max(0,r-s))),ee.current=!0,t.closeSearch()}else if(e.key===`ArrowDown`)t.focusNextSearchMatch();else if(e.key===`ArrowUp`)t.focusPreviousSearchMatch();else return;_e(`focus`),B(e=>e+1),e.preventDefault(),e.stopPropagation();return}if(f&&nx(e)){t.openSearch(e.key),B(e=>e+1),e.preventDefault(),e.stopPropagation();return}let n=Be&&ix(e),r=ax(e,Be),i=r&&S.current!=null?Qy(S.current):null,a=r?new Set(px(S.current)):new Set,o=i?.dataset.fileTreeStickyPath??null,c=i?.dataset.fileTreeStickyRow===`true`&&o!=null;if(c&&o!==U&&a.has(o)){let e=C.current;ke(o,e?.scrollTop??null),t.focusPath(o)}let u=t.getFocusedPath(),d=t.getFocusedIndex(),p=t.getFocusedItem();if(p==null)return;let m=ex(p)?p:null,h=u!=null&&(bt.has(u)||c&&o===u&&a.has(u)),g=e.key===`ArrowDown`||e.key===`ArrowUp`||e.key===`ArrowRight`&&m!=null&&m.isExpanded(),_=e.key===`ArrowLeft`&&h&&m!=null&&m.isExpanded(),v=C.current,y=!0;if(e.shiftKey&&e.key===`ArrowDown`)t.extendSelectionFromFocused(1);else if(e.shiftKey&&e.key===`ArrowUp`)t.extendSelectionFromFocused(-1);else if(n&&u!=null&&d>=0){let e=t.getVisibleRows(d,d)[0]??null,n=fx(u,E.current,T.current);e==null||n==null?y=!1:At(e,u)}else if((e.ctrlKey||e.metaKey)&&tx(e))t.toggleFocusedSelection();else if((e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`a`)t.selectAllVisiblePaths();else switch(e.key){case`ArrowDown`:t.focusNextItem();break;case`ArrowUp`:t.focusPreviousItem();break;case`ArrowRight`:m==null||m.isExpanded()?t.focusNextItem():m.expand();break;case`ArrowLeft`:m!=null&&m.isExpanded()?m.collapse():t.focusParentItem();break;case`Home`:t.focusFirstItem();break;case`End`:t.focusLastItem();break;default:y=!1}if(!y)return;_e(`focus`);let b=t.getFocusedPath(),x=b!=null&&(bt.has(b)||a.has(b)),w=g&&b!==u,D=n&&c&&o===u&&b===u;if((h||D)&&b!=null&&(w&&x||D))ke(b,v?.scrollTop??null),M.current=!0,de(e=>e===b?e:b);else{let t=e.key===`ArrowUp`&&h&&b!==u;b!=null&&(t||_&&b===u)?(Ae(b,hx(S.current,v,i,u,s,yt,mt)),M.current=!0,de(e=>e===b?e:b)):Oe()}B(e=>e+1),e.preventDefault(),e.stopPropagation()};Ob(()=>{if(f&&et){if(je.current){je.current=!1;return}Zy(w.current)}},[et,f]),Ob(()=>{let e=x.current;switch(ob({hasRenderedInput:e!=null,previousRenamingPath:P.current,renamingPath:Qe})){case`reset`:P.current=null;return;case`reveal-canonical`:Qe!=null&&Mt(Qe,{restoreTreeFocus:!1,targetOffset:`live-overlay`});return;case`ignore`:return;case`focus-input`:e!=null&&(Se.current=null,P.current=Qe,Zy(e),e.select());return}},[ht.end,ht.start,Qe,Mt,bt]),Ob(()=>{let e=S.current;if(e==null)return;let t=null,n=()=>{t!=null&&(clearTimeout(t),t=null)},r=()=>{let t=Qy(e)?.dataset.itemPath??null;de(e=>e===t?e:t)},i=()=>{n(),M.current=!0,r()},a=i=>{let a=i.relatedTarget;if(a==null){n(),t=setTimeout(()=>{if(t=null,Qy(e)!=null){r();return}M.current=!1,de(null)},0);return}if(!(a instanceof Node)||!e.contains(a)){n(),M.current=!1,de(null);return}let o=a instanceof HTMLElement?a.dataset.itemPath??null:null;de(e=>e===o?e:o)};return e.addEventListener(`focusin`,i),e.addEventListener(`focusout`,a),()=>{n(),e.removeEventListener(`focusin`,i),e.removeEventListener(`focusout`,a)}},[]),Ob(()=>{let e=S.current;e!=null&&(ft.physical.scrollTop<=0?e.dataset.scrollAtTop=`true`:delete e.dataset.scrollAtTop)},[ft.physical.scrollTop]),Ob(()=>{let e=null,n=C.current,r=b.current,i=S.current;if(n==null)return;O.current=$y(n,g);let a=()=>{let e=t.getVisibleCount(),r=eb(O.current,g),i=Math.max(0,e*s-r);n.scrollTop>i&&(n.scrollTop=i),Le(Hb({controller:t,itemHeight:s,overscan:c,scrollTop:Math.min(n.scrollTop,i),stickyFolders:h,viewportHeight:r}))};if(!A.current){A.current=!0;let e=t.getFocusedIndex();if(e>=0){let r=eb(O.current,g),i=t.getVisibleRows(e,e)[0]??null;nb(n,e,s,r,h&&i!=null?Math.max(0,Math.min(i.ancestorPaths.length*s,Math.max(0,r-s))):0)}}D.current=a;let o=t.subscribe(()=>{qy(V)&&B(e=>e+1),a()}),l=()=>{De.current!==!0&&(r!=null&&(r.dataset.isScrolling??=``),i!=null&&(i.dataset.isScrolling??=``),y.current=!0,e!=null&&clearTimeout(e),e=setTimeout(()=>{r!=null&&delete r.dataset.isScrolling,i!=null&&delete i.dataset.isScrolling,y.current=!1,ye(e=>e+1),e=null},50))},u=null,d=()=>{i!=null&&delete i.dataset.overlayReveal,u!=null&&(clearTimeout(u),u=null)},f=()=>{i!=null&&De.current!==!0&&(n.scrollTop>0||(i.dataset.overlayReveal=`true`,u!=null&&clearTimeout(u),u=setTimeout(()=>{d()},200)))},p=()=>{if(a(),n.scrollTop>0&&d(),xe.current!=null&&y.current&&Dt.current(),De.current===!0){y.current=!1;return}pe(e=>e==null?e:null),l()},m=()=>{l(),f()},_=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`PageUp`,`PageDown`,`Home`,`End`,` `,`Spacebar`]),v=e=>{_.has(e.key)&&m()};n.addEventListener(`scroll`,p,{passive:!0}),n.addEventListener(`wheel`,m,{passive:!0}),n.addEventListener(`touchmove`,m,{passive:!0}),n.addEventListener(`keydown`,v);let x=typeof ResizeObserver<`u`?new ResizeObserver(e=>{O.current=(e[0]==null?null:tb(e[0]))??$y(n,g),a()}):null;return x?.observe(n),()=>{D.current=()=>{},o(),n.removeEventListener(`scroll`,p),n.removeEventListener(`wheel`,m),n.removeEventListener(`touchmove`,m),n.removeEventListener(`keydown`,v),e!=null&&clearTimeout(e),u!=null&&clearTimeout(u),r!=null&&delete r.dataset.isScrolling,i!=null&&(delete i.dataset.isScrolling,delete i.dataset.overlayReveal),y.current=!1,O.current=null,x?.disconnect()}},[t,g,s,c,h]),Ob(()=>{Be||H==null||Ot(!1)},[Ot,Be,H]);let Yt=kb(()=>H==null?null:`${H.path}::${H.source}`,[H]);Ob(()=>{if(Yt==null){m?.clearSlotContent(rf);return}let t=xe.current;if(t==null)return;let n=v.current??_.current;if(n==null)return;let r={anchorElement:n,anchorRect:t.anchorRect??cx(n.getBoundingClientRect()),close:e=>{Dt.current(e?.restoreFocus??!0)},restoreFocus:()=>{Et.current&&Tt.current(xe.current?.path??null)}},i=e?.contextMenu?.render?.(t.item,r)??null;return m?.setSlotContent(rf,i),e?.contextMenu?.onOpen?.(t.item,r),xx(i),queueMicrotask(()=>{i!=null&&i.isConnected&&document.activeElement===i&&xx(i)}),()=>{m?.clearSlotContent(rf)}},[Yt,e?.contextMenu,m]),Ob(()=>{H!=null&&t.getItem(H.path)==null&&Ot()},[Ot,H,t]),Ob(()=>{if(H==null)return;let e=S.current?.getRootNode(),t=e instanceof ShadowRoot?e.host:S.current,n=e=>{let n=e.target;n instanceof Node&&(sx(e)||_.current?.contains(n)!==!0&&t?.contains(n)!==!0&&Ot())},r=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),Ot())};return document.addEventListener(`mousedown`,n,!0),document.addEventListener(`keydown`,r,!0),()=>{document.removeEventListener(`mousedown`,n,!0),document.removeEventListener(`keydown`,r,!0)}},[Ot,H]),Ob(()=>{let e=C.current,n=S.current;if(e==null||n==null){N.current=U;return}let r=U==null?null:T.current.get(U)??null,i=Qy(n),a=i?.dataset.itemPath??null,o=$e&&x.current===i,c=f&&w.current===i,l=ee.current&&!et,u=te.current??0,d=Se.current,p=Ce.current,m=we.current,g=Te.current,_=i!=null,v=M.current||_,y=N.current!==U,b=p!=null&&p===U&&U!=null,E=!1,O=!1;if(rt!=null&&rt.id!==k.current){k.current=rt.id;let n=rt.visibleIndex,r=t.getVisibleRows(n,n)[0]??null;if(r!=null){let t=h?Math.max(0,Math.min(r.ancestorPaths.length*s,Math.max(0,mt-s))):yt;E=!0,O=rb(e,n,s,mt,vt,rt.offset,t)}t.clearScrollRequest(rt.id)}let A=!E&&l&&ib(e,nt,s,mt,vt,u),j=!E&&d!=null&&d===U&&ib(e,nt,s,mt,vt,yt),P=!E&&m!=null&&m.path===U&&ib(e,nt,s,mt,vt,m.viewportOffset),F=!E&&g!=null&&g.path===U&&e.scrollTop!==g.scrollTop;if(F&&(e.scrollTop=g.scrollTop),(F||O||j||P||A||v&&y&&d!==U&&!b&&nb(e,nt,s,mt,yt))&&D.current(),E){N.current=U;return}if(!v){N.current=U;return}if(o){N.current=U;return}if(c&&!l){N.current=U;return}if(r==null){l&&nt>=0&&(ib(e,nt,s,mt,vt,u),D.current()),N.current=U;return}(y||l||d===U||p===U||m?.path===U||g?.path===U||a==null||a!==U)&&(Zy(r),d===U&&(Se.current=null),p===U&&(Ce.current=null),m?.path===U&&(we.current=null),g?.path===U&&(Te.current=null),ee.current=!1,te.current=null),N.current=U},[t,nt,U,xt,s,$e,et,ht,mt,f,rt,h,yt,vt,pt]);let Xt=nt>=0&&nt>=ft.visible.startIndex&&nt<=ft.visible.endIndex,Zt=U!=null&>.some(e=>zb(e.row)===U),Qt=Xt||Zt,$t=He&&M.current===!0&&Qt?U:null,en=ge===`pointer`?fe:null,tn=H?.path??Ee.current??en??$t??fe,nn=H?.source===`right-click`;Ob(()=>{y.current&&H==null||kt(Je(tn))},[H,Je,ht,mt,ve,gt,tn,kt,pt]);let rn=Ab(e=>{if(y.current||sx(e))return;let t=e.target;if(!(t instanceof HTMLElement)||t.closest?.(`[data-type="context-menu-trigger"]`)!=null)return;let n=t.closest?.(`[data-file-tree-sticky-row="true"]`),r=t.closest?.(`[data-type="item"]`),i=n instanceof HTMLElement?n.dataset.fileTreeStickyPath??null:r instanceof HTMLElement?r.dataset.itemPath??null:null;i!=null&&_e(e=>e===`pointer`?e:`pointer`),pe(e=>e===i?e:i)},[]),an=Ab(()=>{pe(null)},[]);Ob(()=>{if(!it)return;let e=()=>{Bt(),t.cancelDrag()};return window.addEventListener(`dragend`,e),()=>{window.removeEventListener(`dragend`,e),Bt(),t.cancelDrag()}},[t,it]);let on=e=>{if(!it||t.getDragSession()==null||R.current)return;let n=Jb(e.target instanceof HTMLElement?e.target:null);t.setDragTarget(n),Ht(t.getDragSession()?.target??null),Wt(e.clientX,e.clientY),e.dataTransfer!=null&&(e.dataTransfer.dropEffect=`move`),e.preventDefault()},sn=e=>{if(!it||t.getDragSession()==null||R.current)return;let n=e.relatedTarget;n instanceof Node&&S.current?.contains(n)===!0||(It(),Rt(),t.setDragTarget(null))},cn=e=>{it&&t.getDragSession()!=null&&!R.current&&(e.preventDefault(),Vt(e.clientX,e.clientY),t.completeDrag(),Lt(),It(),Rt(),ae.current=null)},ln=ft.window.height,un=ft.window.offsetTop,dn=Math.min(0,mt-ln),fn=Math.min(0,mt-ln-yt),pn=ue===U||ee.current,mn=U!=null&&pn&&!xt&&nt>=0?pt[nt]??t.getVisibleRows(nt,nt)[0]??null:null,hn=mn==null?null:ab(nt,s,ht,ln),gn=ae.current,_n=ct!=null&&gn!=null&&gn.path===ct&&gn.index>=ht.start&&gn.index<=ht.end,vn=ct!=null&&gn!=null&&gn.path===ct&&!_n&&gn.path!==mn?.path?gn:null,yn=vn==null?null:ab(vn.index,s,ht,ln),bn=rx((nt>=0?pt[nt]??t.getVisibleRows(nt,nt)[0]??null:null)?.ancestorPaths.at(-1)??null),xn=et&&U!=null?vx(o,U,!xt):void 0,Sn=H?.path??(et?U:ue),Cn=H?.path??fe,wn=Je(tn),Tn=Be&&He&&!nn&&!$e&&wn!=null&&me!=null&&tn!=null,En=Be&&(Tn||H!=null),Dn=H?.anchorRect,On=Dn==null&&wn!=null&&me!=null&&(H!=null||Tn)?me:null,kn=Dn==null?On==null?void 0:{top:`${On}px`}:{left:`${Dn.left}px`,position:`fixed`,right:`auto`,top:`${Dn.top}px`},An=nn?{opacity:`0`}:void 0,jn=Ab((e,n,r,i)=>{let a=lb({event:{ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey},isDirectory:n.kind===`directory`,isSearchOpen:et,mode:i}),o=a.toggleDirectory&&n.kind===`directory`,s=o?t.resolveMountedDirectoryPathFromInput(r):null;if(o&&s==null)return;let c=s??r;switch(a.selection.kind){case`range`:t.selectPathRange(c,a.selection.additive);break;case`toggle`:t.togglePathSelectionFromInput(c);break;case`single`:t.selectOnlyMountedPathFromInput(c)}let l=e.currentTarget instanceof HTMLElement?e.currentTarget:null,u=n.index>=ft.visible.startIndex&&n.index<=ft.visible.endIndex,d=i===`flow`&&u&&l!=null&&l.dataset.itemParked!==`true`;t.focusMountedPathFromInput(c),d&&(M.current=!0,de(e=>e===c?e:c),_e(`focus`)),o&&t.toggleMountedDirectoryFromInput(c),a.closeSearch&&t.closeSearch(),a.revealCanonical&&Mt(c,{targetOffset:`sticky-parents`})},[t,et,ft.visible.endIndex,ft.visible.startIndex,Mt]),Mn=()=>{if(y.current||!He||tn==null||wn==null)return;let e=t.getItem(tn);e!=null&&(kt(wn),Et.current=!0,be({anchorRect:null,item:{kind:e.isDirectory()?`directory`:`file`,name:wn.getAttribute(`aria-label`)??tn,path:e.getPath()},path:e.getPath(),source:`button`}))},Nn={contextHoverPath:Cn,contextMenuButtonTriggerEnabled:He,contextMenuButtonVisibility:Ue,contextMenuEnabled:Be,contextMenuRightClickEnabled:We,contextMenuTriggerMode:Ve,controller:t,directoriesWithGitChanges:i,dragAndDropEnabled:it,draggedPathSet:ot,dragTarget:st,gitLaneActive:Ye,gitStatusByPath:n,handleRowDragEnd:Kt,handleRowDragStart:Gt,handleRowTouchStart:qt,ignoredGitDirectories:r,ignoredInheritanceCache:le,instanceId:o,itemHeight:s,onKeyDown:Jt,onRowClick:jn,openContextMenuForRow:At,registerButton:Ge,registerRenameInput:qe,renameView:Ze,renderDecorationForRow:St,resolveIcon:Xe,shouldSuppressContextMenu:Nt,visualFocusPath:Sn},Pn={...Nn,registerButton:Ke};return Q(`div`,{ref:S,id:lt,"data-file-tree-context-menu-button-visibility":Be&&He?Ue:void 0,"data-file-tree-context-menu-trigger-mode":Be?Ve:void 0,"data-file-tree-has-context-menu-action-lane":Be&&He?`true`:void 0,"data-file-tree-has-git-lane":Ye?`true`:void 0,"data-file-tree-virtualized-root":`true`,onDragLeave:it?sn:void 0,onDragOver:it?on:void 0,onDrop:it?cn:void 0,onKeyDown:Jt,onPointerLeave:Be?an:void 0,onPointerOver:Be?rn:void 0,role:`tree`,tabIndex:-1,style:{outline:`none`,position:`relative`},children:[Q(`style`,{"data-file-tree-guide-style":`true`,dangerouslySetInnerHTML:{__html:bn}}),Q(`slot`,{name:nf,"data-type":`header-slot`}),f?Q(`div`,{"data-file-tree-search-container":!0,"data-open":et?`true`:`false`,children:Q(`input`,{ref:w,"aria-activedescendant":xn,"aria-controls":lt,placeholder:`Search…`,"data-file-tree-search-input":!0,"data-file-tree-search-input-fake-focus":Me?`true`:void 0,value:tt,onBlur:()=>{(d!==`retain`||Pe.current)&&t.closeSearch()},onFocus:Fe,onPointerDown:Fe,onInput:e=>{Fe();let n=e.currentTarget;t.setSearch(n.value)}})}):null,Q(`div`,{ref:C,"data-file-tree-virtualized-scroll":`true`,children:[h&&Re&>.length>0?Q(`div`,{"aria-hidden":`true`,"data-file-tree-sticky-overlay":`true`,children:Q(`div`,{"data-file-tree-sticky-overlay-content":`true`,style:{height:`${ut}px`},children:gt.map((e,t)=>Cx(Pn,e.row,`sticky:${zb(e.row)}`,{mode:`sticky`,style:{left:`0`,position:`absolute`,right:`0`,top:`${e.top}px`,zIndex:`${gt.length-t}`}}))})}):null,Q(`div`,{ref:b,"data-file-tree-virtualized-list":`true`,style:{height:`${vt}px`},children:[Q(`div`,{"data-file-tree-virtualized-sticky-offset":`true`,"aria-hidden":`true`,style:{height:`${un}px`}}),Q(`div`,{"data-file-tree-virtualized-sticky":`true`,style:{height:`${ln}px`,top:`${dn}px`,bottom:`${fn}px`},children:[wx(Nn,ht,bt),mn!=null&&hn!=null?Cx(Nn,mn,`parked:${mn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:ct===mn.path?`none`:void 0,position:`absolute`,right:`0`,top:`${hn}px`}}):null,vn!=null&&yn!=null?Cx(Nn,vn,`parked-drag:${vn.path}`,{isParked:!0,style:{left:`0`,opacity:`0`,pointerEvents:`none`,position:`absolute`,right:`0`,top:`${yn}px`}}):null]})]})]}),Be?Q(`div`,{ref:_,"data-type":`context-menu-anchor`,"data-visible":En?`true`:`false`,style:kn,children:[Q(`button`,{ref:v,type:`button`,"data-type":af,"aria-label":`Options`,"aria-haspopup":`menu`,"aria-expanded":H==null?`false`:`true`,"data-visible":Tn?`true`:`false`,onMouseDown:e=>{e.preventDefault()},onClick:e=>{if(e.preventDefault(),e.stopPropagation(),H!=null){Ot();return}Mn()},tabIndex:-1,style:An,children:Q(gy,{...Xe(`file-tree-icon-ellipsis`)})}),H==null?null:Q(`slot`,{name:rf})]}):null,H==null?null:Q(`div`,{"data-type":`context-menu-wash`,"aria-hidden":`true`,onMouseDownCapture:e=>{e.preventDefault(),Ot()},onTouchStartCapture:e=>{e.preventDefault(),e.stopPropagation(),Ot()},onTouchMoveCapture:e=>{e.preventDefault(),e.stopPropagation()},onWheelCapture:e=>{e.preventDefault(),e.stopPropagation()}})]})}var Ex={hydrateRoot:(e,t)=>{dy(Vv(Tx,t),e)},renderRoot:(e,t)=>{uy(Vv(Tx,t),e)},unmountRoot:e=>{uy(null,e)}};function Dx(e,t){Ex.renderRoot(e,t)}function Ox(e,t){Ex.hydrateRoot(e,t)}function kx(e){Ex.unmountRoot(e)}var Ax=class{#e=new Map;#t=null;clearAll(){for(let e of this.#e.values())e.remove();this.#e.clear()}clearSlotContent(e){let t=this.#n(e);t!=null&&(t.remove(),this.#e.delete(e))}setHost(e){if(this.#t=e,e!=null){this.#i(e);for(let[e,t]of this.#e)this.#r(e,t)}}setSlotContent(e,t){let n=this.#n(e);if(n===t){t!=null&&(this.#e.set(e,t),this.#r(e,t));return}if(n?.remove(),t==null){this.#e.delete(e);return}this.#e.set(e,t),this.#r(e,t)}setSlotHtml(e,t){let n=t?.trim()??``;if(n.length===0){this.setSlotContent(e,null);return}let r=this.#n(e);if(r!=null&&r.innerHTML===n){this.#e.set(e,r),this.#r(e,r);return}let i=document.createElement(`div`);i.innerHTML=n,this.setSlotContent(e,i)}#n(e){let t=this.#e.get(e)??null;if(t!=null)return t;let n=this.#t;if(n==null)return null;for(let t of Array.from(n.children))if(t instanceof HTMLElement&&t.dataset.fileTreeManagedSlot===e)return t;return null}#r(e,t){t.slot=e,t.dataset.fileTreeManagedSlot=e,this.#t!=null&&t.parentNode!==this.#t&&this.#t.appendChild(t)}#i(e){for(let t of Array.from(e.children)){if(!(t instanceof HTMLElement))continue;let e=t.dataset.fileTreeManagedSlot;e==null||this.#e.has(e)||this.#e.set(e,t)}}};Array.isArray;var jx=0;function Mx(e){return e!=null&&e.length>0?e:(jx+=1,`pst_ft_${jx}`)}function Nx({initialVisibleRowCount:e,itemHeight:t}){return e==null?420:Math.max(0,e)*(t??kp)}function Px(e){if(typeof document>`u`)return;let t=document.createElement(`div`);t.innerHTML=e;let n=t.querySelector(`svg`);return n instanceof SVGElement?n:void 0}function Fx(e){return e.querySelector(`#file-tree-icon-chevron`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-file`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-dot`)instanceof SVGElement&&e.querySelector(`#file-tree-icon-lock`)instanceof SVGElement}function Ix(e){return Array.from(e.children).filter(e=>e instanceof SVGElement)}var Lx=class{static LoadedCustomComponent=!0;#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=new Ax;#u;#d;#f;#p;#m;#h;#g;#_;#v;#y=null;#b;#x=!1;#S=!1;constructor(e){let{composition:t,density:n,fileTreeSearchMode:r,gitStatus:i,id:a,initialSearchQuery:o,icons:s,itemHeight:c,onSearchChange:l,onSelectionChange:u,overscan:d,renderRowDecoration:f,renaming:p,search:m,searchBlurBehavior:h,searchFakeFocus:g,stickyFolders:_,unsafeCSS:v,initialVisibleRowCount:y,...b}=e;this.#e=t,this.#n=Mx(a),this.#p=dv(i),this.#m=s,this.#h=v,this.#r=u,this.#i=f,this.#a=p!=null&&p!==!1,this.#o=h,this.#s=m===!0,this.#c=g===!0,this.#u=Op(n,c),this.#d={itemHeight:this.#u.itemHeight,overscan:d,stickyFolders:_,initialVisibleRowCount:y},this.#t=new ov({...b,fileTreeSearchMode:r,initialSearchQuery:o,onSearchChange:l,renaming:p}),this.#v=this.#t.getSelectionVersion(),this.#y=this.#r==null?null:this.subscribe(()=>{this.#D()})}unmount(){this.#b!=null&&(kx(this.#b),delete this.#b.dataset.fileTreeVirtualizedWrapper,this.#b=void 0),this.#l.clearAll(),this.#l.setHost(null),this.#f!=null&&(delete this.#f.dataset.fileTreeVirtualized,this.#I(this.#f),this.#f=void 0)}cleanUp(){this.unmount(),this.#y?.(),this.#y=null,this.#t.destroy()}getFileTreeContainer(){return this.#f}getItem(e){return this.#t.getItem(e)}getFocusedItem(){return this.#t.getFocusedItem()}getFocusedPath(){return this.#t.getFocusedPath()}getFocusedIndex(){return this.#t.getFocusedIndex()}getVisibleCount(){return this.#t.getVisibleCount()}getVisibleRows(e,t){return this.#t.getVisibleRows(e,t)}getSelectedPaths(){return this.#t.getSelectedPaths()}getComposition(){return this.#e}getItemHeight(){return this.#u.itemHeight}getDensityFactor(){return this.#u.factor}subscribe(e){let t=!1;return this.#t.subscribe(()=>{if(!t){t=!0;return}e()})}focusPath(e){this.#t.focusPath(e)}focusFirstItem(){this.#t.focusFirstItem()}focusLastItem(){this.#t.focusLastItem()}focusNextItem(){this.#t.focusNextItem()}focusPreviousItem(){this.#t.focusPreviousItem()}focusParentItem(){this.#t.focusParentItem()}scrollToPath(e,t){this.#t.scrollToPath(e,t)}focusNearestPath(e){return this.#t.focusNearestPath(e)}add(e){this.#t.add(e)}batch(e){this.#t.batch(e)}applyGitStatusPatch(e){let t=fv(this.#p,e);if(t===this.#p)return;this.#p=t;let n=this.#T();n!=null&&Dx(n.wrapper,this.#w())}move(e,t,n){this.#t.move(e,t,n)}onMutation(e,t){return this.#t.onMutation(e,t)}setSearch(e){this.#t.setSearch(e)}openSearch(e){this.#t.openSearch(e)}closeSearch(){this.#t.closeSearch()}isSearchOpen(){return this.#t.isSearchOpen()}getSearchValue(){return this.#t.getSearchValue()}getSearchMatchingPaths(){return this.#t.getSearchMatchingPaths()}focusNextSearchMatch(){this.#t.focusNextSearchMatch()}focusPreviousSearchMatch(){this.#t.focusPreviousSearchMatch()}startRenaming(e,t){return this.#t.startRenaming(e,t)}remove(e,t){this.#t.remove(e,t)}resetPaths(e,t){Array.isArray(e)?this.#t.resetPaths(e,t):this.#t.resetPaths(e)}setComposition(e){this.#e=e;let t=this.#T();t!=null&&(this.#O(),Dx(t.wrapper,this.#w()))}setGitStatus(e){let t=dv(e,this.#p);if(t===this.#p)return;this.#p=t;let n=this.#T();n!=null&&Dx(n.wrapper,this.#w())}setIcons(e){this.#m=e;let t=this.#T();t!=null&&(this.#E(t.host,t.wrapper),Dx(t.wrapper,this.#w()))}hydrate({fileTreeContainer:e}){let t=this.#P(e),n=this.#N(t);this.#O(),Ox(n,this.#w())}render({containerWrapper:e,fileTreeContainer:t}){let n=this.#P(t??this.#f,e),r=this.#N(n);this.#O(),Dx(r,this.#w())}#C(){return{initialViewportHeight:Nx({initialVisibleRowCount:this.#d.initialVisibleRowCount,itemHeight:this.#d.itemHeight}),itemHeight:this.#d.itemHeight,overscan:this.#d.overscan,stickyFolders:this.#d.stickyFolders}}#w(){return{composition:this.#e,controller:this.#t,gitStatusByPath:this.#p?.statusByPath,ignoredGitDirectories:this.#p?.ignoredDirectoryPaths,directoriesWithGitChanges:this.#p?.directoriesWithChanges,icons:this.#m,instanceId:this.#n,renamingEnabled:this.#a,renderRowDecoration:this.#i,searchBlurBehavior:this.#o,searchEnabled:this.#s,searchFakeFocus:this.#c,slotHost:this.#l,...this.#C()}}#T(){let e=this.#f,t=this.#b;return e==null||t==null?null:{host:e,wrapper:t}}#E(e,t){let n=e.shadowRoot;n!=null&&(this.#k(n),this.#A(n)),this.#j(t)}#D(){let e=this.#r;if(e==null)return;let t=this.#t.getSelectionVersion();t!==this.#v&&(this.#v=t,e(this.#t.getSelectedPaths()))}#O(){let e=this.#e?.header?.render;if(e!=null){this.#l.setSlotContent(nf,e());return}this.#l.setSlotHtml(nf,this.#e?.header?.html??null)}#k(e){let t=Ix(e).find(e=>Fx(e)),n=Px(xp(Ep(this.#m).set));n!=null&&(t==null||t.outerHTML!==n.outerHTML)&&(t==null?e.prepend(n):t.replaceWith(n))}#A(e){let t=Ix(e),n=t.find(e=>Fx(e)),r=t.filter(e=>e!==n),i=Ep(this.#m).spriteSheet?.trim()??``;if(i.length===0){for(let e of r)e.remove();return}let a=Px(i);if(a==null){for(let e of r)e.remove();return}if(r.length!==1||r[0].outerHTML!==a.outerHTML){for(let e of r)e.remove();e.appendChild(a)}}#j(e){let t=Ep(this.#m);t.colored&&Cp(t.set)?e.dataset.fileTreeColoredIcons=`true`:delete e.dataset.fileTreeColoredIcons}#M(e){let t=e.querySelector(`style[${Qd}]`);if(this.#g==null&&t instanceof HTMLStyleElement&&(this.#g=t),this.#h==null||this.#h===``){this.#g?.remove(),this.#g=void 0,this.#_=void 0;return}(this.#g?.parentNode!==e||this.#_!==this.#h)&&(this.#g??=document.createElement(`style`),this.#g.setAttribute(Qd,``),this.#g.parentNode!==e&&e.appendChild(this.#g),this.#g.textContent=Np(this.#h),this.#_=this.#h)}#N(e){if(this.#b!=null)return this.#b;let t=e.shadowRoot;if(t==null)throw Error(`FileTree requires a shadow root`);let n=Array.from(t.children).filter(e=>e instanceof HTMLDivElement&&typeof e.dataset.fileTreeId==`string`&&e.dataset.fileTreeId.length>0),r=n.find(e=>e.dataset.fileTreeId===this.#n)??n[0];return r!=null&&(this.#n=r.dataset.fileTreeId??this.#n),this.#b=r??document.createElement(`div`),this.#b.dataset.fileTreeId=this.#n,this.#b.dataset.fileTreeVirtualizedWrapper=`true`,this.#E(e,this.#b),this.#b.parentNode!==t&&t.appendChild(this.#b),this.#b}#P(e,t){let n=e??this.#f??document.createElement(`file-tree-container`);t!=null&&n.parentNode!==t&&t.appendChild(n);let r=n.shadowRoot??n.attachShadow({mode:`open`});return zp(n,r),this.#M(r),n.dataset.fileTreeVirtualized=`true`,n.style.display=`flex`,this.#F(n),this.#l.setHost(n),this.#f=n,n}#F(e){e.style.getPropertyValue(`--trees-item-height`)===``&&(e.style.setProperty(`--trees-item-height`,`${String(this.#u.itemHeight)}px`),this.#x=!0),e.style.getPropertyValue(`--trees-density-override`)===``&&(e.style.setProperty(`--trees-density-override`,String(this.#u.factor)),this.#S=!0)}#I(e){this.#x&&=(e.style.removeProperty(`--trees-item-height`),!1),this.#S&&=(e.style.removeProperty(`--trees-density-override`),!1)}};function Rx(e){let[t]=(0,G.useState)(()=>new Lx(e)),n=(0,G.useRef)({timeout:null,model:t});return(0,G.useEffect)(()=>{let{current:e}=n;return e.timeout!=null&&(clearTimeout(e.timeout),e.timeout=null),()=>{e.timeout=setTimeout(()=>e.model.cleanUp(),1)}},[]),{model:t}}var zx=`
|
|
1276
|
+
[data-item-section='spacing-item'] {
|
|
1277
|
+
border-left: none;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
[data-type='item'][data-item-type='file'] > [data-item-section='icon'] {
|
|
1281
|
+
display: none;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
[data-type='item'][data-item-type='file'] > [data-item-section='spacing'] {
|
|
1285
|
+
padding-left: 2px;
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
[data-type='item'][data-item-type='file'] > [data-item-section='spacing'] > [data-item-section='spacing-item'] {
|
|
1289
|
+
margin-right: 4px;
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
[data-type='item'][data-item-parent-path][data-item-type='folder'] > [data-item-section='spacing'] {
|
|
1293
|
+
padding-left: 2px;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
[data-type='item'][data-item-parent-path][data-item-type='folder']
|
|
1297
|
+
> [data-item-section='spacing']
|
|
1298
|
+
> [data-item-section='spacing-item'] {
|
|
1299
|
+
margin-right: 4px;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
[data-type='item'][data-item-parent-path][data-item-type='folder'] > [data-item-section='icon'] {
|
|
1303
|
+
flex: 0 0 8px;
|
|
1304
|
+
width: 8px;
|
|
1305
|
+
margin-left: calc(-1 * (8px + var(--trees-item-row-gap)));
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
[data-type='item'][data-item-parent-path][data-item-type='folder']
|
|
1309
|
+
> [data-item-section='icon']
|
|
1310
|
+
> svg {
|
|
1311
|
+
width: 8px;
|
|
1312
|
+
height: 8px;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
[data-type='item'] > [data-item-section='content'] {
|
|
1316
|
+
flex: 1 1 auto;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
[data-type='item'] > [data-item-section='content'] {
|
|
1320
|
+
min-width: 0;
|
|
1321
|
+
max-width: 100%;
|
|
1322
|
+
overflow: hidden;
|
|
1323
|
+
text-overflow: ellipsis;
|
|
1324
|
+
white-space: nowrap;
|
|
1325
|
+
direction: ltr;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
[data-type='item'] > [data-item-section='decoration'] {
|
|
1329
|
+
flex: 0 0 auto;
|
|
1330
|
+
padding-inline: 6px 2px;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
[data-type='item'] > [data-item-section='decoration']:has(> span[title='Session options']) {
|
|
1334
|
+
flex-basis: 24px;
|
|
1335
|
+
padding-inline: 0;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
[data-type='item'] > [data-item-section='decoration'] > span[title='Session options'] {
|
|
1339
|
+
box-sizing: border-box;
|
|
1340
|
+
width: 24px;
|
|
1341
|
+
height: 24px;
|
|
1342
|
+
align-items: center;
|
|
1343
|
+
justify-content: center;
|
|
1344
|
+
cursor: pointer;
|
|
1345
|
+
border: 1px solid transparent;
|
|
1346
|
+
border-radius: 6px;
|
|
1347
|
+
font-size: 12px;
|
|
1348
|
+
line-height: 24px;
|
|
1349
|
+
transition:
|
|
1350
|
+
color var(--dur-fast) var(--ease-out),
|
|
1351
|
+
background-color var(--dur-fast) var(--ease-out),
|
|
1352
|
+
border-color var(--dur-fast) var(--ease-out),
|
|
1353
|
+
transform var(--dur-fast) var(--ease-out);
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
[data-type='item'] > [data-item-section='decoration'] > span[title='Session options']:hover {
|
|
1357
|
+
color: var(--console-text);
|
|
1358
|
+
background-color: var(--console-surface-muted);
|
|
1359
|
+
border-color: var(--console-border);
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
[data-type='item'] > [data-item-section='decoration'] > span[title='Session options']:active {
|
|
1363
|
+
transform: scale(0.97);
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
[data-type='item'] [data-truncate-group-container='middle'] {
|
|
1367
|
+
display: inline;
|
|
1368
|
+
min-width: 0;
|
|
1369
|
+
white-space: nowrap;
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
[data-type='item'] [data-truncate-group-container='middle'] > div {
|
|
1373
|
+
display: inline;
|
|
1374
|
+
min-width: 0;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
[data-type='item'] [data-truncate-container] {
|
|
1378
|
+
display: inline;
|
|
1379
|
+
height: auto;
|
|
1380
|
+
margin: 0;
|
|
1381
|
+
overflow: visible;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
[data-type='item'] [data-truncate-grid] {
|
|
1385
|
+
display: inline;
|
|
1386
|
+
position: static;
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
[data-type='item'] [data-truncate-grid] > div:not([data-truncate-marker-cell]) {
|
|
1390
|
+
display: inline;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
[data-type='item'] [data-truncate-content='visible'] {
|
|
1394
|
+
display: inline;
|
|
1395
|
+
white-space: nowrap;
|
|
1396
|
+
direction: ltr;
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
[data-type='item'] [data-truncate-content='overflow'],
|
|
1400
|
+
[data-type='item'] [data-truncate-fill],
|
|
1401
|
+
[data-type='item'] [data-truncate-marker-cell],
|
|
1402
|
+
[data-type='item'] [data-truncate-marker] {
|
|
1403
|
+
display: none;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
[data-type='item'] [data-session-title-scroll='running'],
|
|
1407
|
+
[data-type='item'] [data-session-title-scroll-complete] {
|
|
1408
|
+
text-overflow: clip;
|
|
1409
|
+
}
|
|
1410
|
+
`,Bx=.08,Vx=16,Hx=700,Ux=1/3,Wx=1.3333333333333333,Gx=.6666666666666667/Wx;function Kx(e,t){let n=e.composedPath(),r=n.find(e=>e instanceof HTMLElement&&e.parentElement?.getAttribute(`data-item-section`)===`decoration`);if(t.requireDecoration&&!r)return null;let i=n.find(e=>e instanceof HTMLElement&&e.getAttribute(`data-type`)===`item`);if(!i)return null;let a=i.getAttribute(`data-item-path`);return a?{item:i,anchor:r??i.querySelector(`[data-item-section='decoration'] > span`)??i,path:a}:null}function qx(e){e?.dispatchEvent(new KeyboardEvent(`keydown`,{key:`ArrowDown`,bubbles:!0,cancelable:!0}))}function Jx(e){let t=e.shadowRoot;if(!t)return()=>{};let n=new Set,r=new Set,i=new WeakMap,a=new WeakMap;function o(e){let t=i.get(e);t!==void 0&&cancelAnimationFrame(t),a.get(e)?.remove(),a.delete(e),r.delete(e),i.delete(e),n.delete(e),e.scrollLeft=0,e.removeAttribute(`data-session-title-scroll`),e.removeAttribute(`data-session-title-scroll-complete`)}function s(e){if(Xx()||e.hasAttribute(`data-session-title-scroll-complete`))return;o(e);let t=e.querySelector(`[data-truncate-group-container="middle"]`),s=t?.getBoundingClientRect().width??0;if(!t||s<=e.clientWidth+1)return;let c=t.cloneNode(!0);c.dataset.sessionTitleScrollCopy=`true`,c.setAttribute(`aria-hidden`,`true`),c.style.marginInlineStart=`${Vx}px`,e.append(c),a.set(e,c),r.add(e),e.setAttribute(`data-session-title-scroll`,`running`);let l=s+Vx,u=Math.max(Hx,l/Bx*Wx),d=performance.now();n.add(e);let f=t=>{if(!n.has(e))return;let r=Math.min(1,Math.max(0,(t-d)/u));if(e.scrollLeft=l*Zx(r),r>=1){n.delete(e),i.delete(e),e.removeAttribute(`data-session-title-scroll`),e.setAttribute(`data-session-title-scroll-complete`,`true`);return}i.set(e,requestAnimationFrame(f))};i.set(e,requestAnimationFrame(f))}function c(e){let t=Yx(e.target),n=e.relatedTarget;!t||n instanceof Node&&t.contains(n)||s(t)}function l(e){let t=Yx(e.target),n=e.relatedTarget;!t||n instanceof Node&&t.contains(n)||o(t)}return t.addEventListener(`pointerover`,c),t.addEventListener(`pointerout`,l),()=>{t.removeEventListener(`pointerover`,c),t.removeEventListener(`pointerout`,l);for(let e of r)o(e)}}function Yx(e){if(!(e instanceof Element))return null;let t=e.closest(`[data-item-section="content"]`);return!t||t.parentElement?.getAttribute(`data-type`)!==`item`?null:t}function Xx(){return globalThis.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1}function Zx(e){if(e<=Gx)return e/Gx*.6666666666666667;let t=(e-Gx)/.4999999999999999;return .6666666666666667+Ux*(t*(2-t))}function Qx(e){return e.replaceAll(`/`,`∕`).trim()||`(untitled)`}function $x(e){return e.replace(/\/+$/,``).split(`/`).at(-1)?.trim()||`(unknown)`}function eS(e){let t=e.project_identity;if(t)return{key:On(t),label:t.displayName||$x(e.directory)};let n=$x(e.directory);return{key:n===`(unknown)`?`__unknown__`:`path:${e.directory||n}`,label:n}}function tS(e){return e.time_updated??e.time_created}function nS(e,t,n){let r=e.get(t.path)??2**53-1,i=e.get(n.path)??2**53-1;return r===i?t.path.localeCompare(n.path):r-i}function rS(){let e=new Set,t=new Map;return function(n){if(!e.has(n))return e.add(n),n;let r=t.get(n)??2,i=`${n} (${r})`;for(;e.has(i);)r+=1,i=`${n} (${r})`;return t.set(n,r+1),e.add(i),i}}var iS=`Unmounted`,aS=`Deeper sessions`;function oS(e,{groupByProject:t=!0}={}){let n=new Map,r=new Map,i=new Map,a=new Map,o=new Map,s=rS(),c=[],l=Ln(e),u=new Map;for(let e of l.roots){let t=e.session,{key:n,label:r}=eS(t),i=tS(t),a=u.get(n);a?(a.nodes.push(e),i>a.maxTime&&(a.maxTime=i)):u.set(n,{label:r,nodes:[e],maxTime:i})}let d=t?[...u.values()].sort((e,t)=>e.label===`(unknown)`?1:t.label===`(unknown)`?-1:t.maxTime-e.maxTime):[{label:null,nodes:l.roots}];l.orphans.length>0&&d.push({label:W(iS),nodes:l.orphans});let f=0,p=rS();for(let e of d){let t=``;if(e.label!==null){let r=p(Qx(e.label));t=`${r}/`,n.set(t,f),n.set(r,f),f+=1,a.set(t,`${e.nodes.length}`),a.set(r,`${e.nodes.length}`)}let l=new Map,u=[];for(let n=e.nodes.length-1;n>=0;--n)u.push({node:e.nodes[n],parentPath:t,siblingTitleCounts:l,depth:0,flattened:!1});for(;u.length>0;){let e=u.pop(),{node:l,parentPath:d,siblingTitleCounts:p}=e,m=l.session,h=Ic(m);p.set(h,(p.get(h)??0)+1);let g=s(`${d}${(p.get(h)??1)>1?`${Qx(h)} #${m.reference.sessionId.slice(0,8)}`:Qx(h)}`),_=vr(m),v=!e.flattened&&l.children.length>0,y=v?`${g}/`:g;if(v?(n.set(g,f),n.set(y,f),o.set(g,m),o.set(y,m)):(c.push(g),n.set(g,f),o.set(g,m)),f+=1,r.set(_,y),i.set(_,t),l.children.length===0)continue;if(e.flattened){for(let t=l.children.length-1;t>=0;--t)u.push({node:l.children[t],parentPath:d,siblingTitleCounts:p,depth:e.depth,flattened:!0});continue}let b=new Map;if(e.depth+1<32){for(let t=l.children.length-1;t>=0;--t)u.push({node:l.children[t],parentPath:y,siblingTitleCounts:b,depth:e.depth+1,flattened:!1});continue}let x=s(`${y}${W(aS)}`),S=`${x}/`;n.set(x,f),n.set(S,f),a.set(x,`${l.descendantCount}`),a.set(S,`${l.descendantCount}`),f+=1;for(let t=l.children.length-1;t>=0;--t)u.push({node:l.children[t],parentPath:S,siblingTitleCounts:b,depth:e.depth+1,flattened:!0})}}return{paths:c,sortOrderByPath:n,pathBySessionReference:r,groupPathBySessionReference:i,groupCountByPath:a,sessionByPath:o}}function sS(e,t){if(!Wr())return t();let n=performance.now(),r=t(),i=performance.now();return qr({id:e,source:`custom-timing`,phase:`measure`,actualDuration:Math.round((i-n)*100)/100,baseDuration:0,startTime:n,commitTime:i}),r}var cS=(0,G.memo)(function({sessions:e,activeSessionReference:t,selectedSessionReference:n,onSelectSession:r,bookmarkedSessionReferences:i,onCopySessionAsMarkdown:a,onToggleBookmark:o,onRenameSession:s,groupByProject:c=!0}){let l=Pn(),[u,d]=(0,G.useState)(null),f=(0,G.useRef)(null),p=(0,G.useRef)(null),m=(0,G.useRef)(null),h=(0,G.useMemo)(()=>sS(`SessionTreeSidebar:buildTreeModel`,()=>oS(e,{groupByProject:c})),[l,e,c]),g=(0,G.useRef)(h.sortOrderByPath),_=(0,G.useRef)(h.groupCountByPath),v=(0,G.useRef)(h.sessionByPath),y=(0,G.useRef)(r),b=(0,G.useRef)(a),x=(0,G.useRef)(o),S=(0,G.useRef)(s),C=(0,G.useRef)(!1),w={"--trees-bg-override":`transparent`,"--trees-border-color-override":`var(--console-border)`,"--trees-fg-override":`var(--console-text)`,"--trees-fg-muted-override":`var(--console-muted)`,"--trees-font-family-override":`var(--font-mono)`,"--trees-font-size-override":`12px`,"--trees-item-margin-x-override":`0px`,"--trees-item-padding-x-override":`4px`,"--trees-padding-inline-override":`4px`,"--trees-selected-bg-override":n!==null&&n!==t?`transparent`:`var(--brand-soft)`},{model:T}=Rx({flattenEmptyDirectories:!1,initialExpansion:`closed`,paths:h.paths,sort:(e,t)=>nS(g.current,e,t),density:`compact`,unsafeCSS:zx,onSelectionChange(e){if(C.current)return;let t=v.current.get(e[0]??``);t&&y.current(t)},renderRowDecoration({item:e}){return v.current.get(e.path)?{text:`⋯`,title:W(`Session options`)}:_.current.get(e.path)?{text:_.current.get(e.path),title:W(`Sessions`)}:null}});(0,G.useEffect)(()=>{g.current=h.sortOrderByPath,_.current=h.groupCountByPath,v.current=h.sessionByPath,T.resetPaths(h.paths)},[T,h]),(0,G.useEffect)(()=>{y.current=r},[r]),(0,G.useEffect)(()=>{b.current=a},[a]),(0,G.useEffect)(()=>{x.current=o},[o]),(0,G.useEffect)(()=>{S.current=s},[s]),(0,G.useEffect)(()=>{let e,t=0,n=()=>{let r=T.getFileTreeContainer();if(!r){t=requestAnimationFrame(n);return}e=Jx(r)};return n(),()=>{t&&cancelAnimationFrame(t),e?.()}},[T]);function E(e,t,n){f.current=t,p.current=n,d(e),qx(m.current)}function D(e){let t=Kx(e.nativeEvent,{requireDecoration:!0}),n=t?v.current.get(t.path):null;t&&n&&(e.preventDefault(),e.stopPropagation(),E(n,t.anchor,t.item))}function O(e){if(e.key!==`ContextMenu`&&!(e.shiftKey&&e.key===`F10`))return;let t=Kx(e.nativeEvent,{requireDecoration:!1}),n=t?v.current.get(t.path):null;t&&n&&(e.preventDefault(),e.stopPropagation(),E(n,t.anchor,t.item))}return(0,G.useEffect)(()=>{let e=h.pathBySessionReference.get(t??``),r=h.pathBySessionReference.get(n??``)??e,i=n??t??``,a=h.groupPathBySessionReference.get(i);C.current=!0;try{for(let t of T.getSelectedPaths())t!==e&&T.getItem(t)?.deselect();e&&!T.getSelectedPaths().includes(e)&&T.getItem(e)?.select()}finally{C.current=!1}if(r&&t){let e=r.split(`/`).filter(Boolean);for(let t=1;t<=e.length;t+=1){let n=`${e.slice(0,t).join(`/`)}/`,r=T.getItem(n);r&&`expand`in r&&r.expand()}let t=a?T.getItem(a):null;t&&`expand`in t&&t.expand(),T.focusPath(r);return}a&&T.focusPath(a)},[t,T,h,n]),(0,K.jsxs)(`div`,{className:`session-tree h-[min(560px,calc(100vh-410px))] min-h-56 overflow-hidden`,style:w,onClickCapture:D,onKeyDownCapture:O,children:[(0,K.jsx)(df,{model:T,style:{height:`100%`},"aria-label":W(`Sessions`)}),(0,K.jsxs)(Fd,{modal:!1,children:[(0,K.jsx)(Gd,{ref:m,tabIndex:-1,"aria-hidden":`true`,className:`pointer-events-none absolute size-0 opacity-0`}),(0,K.jsx)(Zu,{children:(0,K.jsx)(Ed,{anchor:f,side:`bottom`,align:`end`,sideOffset:4,className:`z-40`,children:(0,K.jsx)(Ju,{finalFocus:p,className:`motion-menu w-36 rounded-md border border-[var(--console-border)] bg-[var(--console-surface)] p-1 shadow-[var(--shadow-overlay)] focus-visible:outline-none`,children:u?(0,K.jsx)(Jd,{bookmarked:i.has(vr(u)),onCopyAsMarkdown:()=>b.current(u),onRename:()=>S.current(u),onToggleBookmark:()=>x.current(u)}):null})})})]})]})}),lS=50;function uS(e){return`flex items-center gap-2 rounded-sm px-3 py-1.5 text-left motion-hover focus-visible:ring-2 focus-visible:ring-[var(--brand)] focus-visible:outline-none ${e?`bg-[var(--brand-soft)] text-[var(--brand)]`:`text-[var(--console-muted)] hover:bg-[var(--console-surface-muted)] hover:text-[var(--console-text)]`}`}function dS({scanning:e,empty:t}){Pn();let n=No();return(0,K.jsx)(`span`,{className:`console-mono block rounded-sm px-3 py-1.5 text-xs text-[var(--console-muted)]`,children:n?.active?e:t})}function fS({projects:e,selectedProjectNavigationId:t}){Pn();let n=e.slice(0,lS),r=t?e.find(e=>{let n=fr(e);return On(n)===t}):void 0;return r&&!n.includes(r)&&n.push(r),(0,K.jsx)(K.Fragment,{children:n.map(e=>{let n=fr(e),r=t===On(n);return(0,K.jsx)(`li`,{children:(0,K.jsxs)(gr,{to:or(n),"data-active":r?`true`:void 0,className:`min-w-0 ${uS(r)}`,children:[(0,K.jsx)(`span`,{className:`console-mono min-w-0 flex-1 truncate text-xs`,children:e.displayName}),(0,K.jsx)(`span`,{className:`console-mono shrink-0 text-[11px] text-[var(--console-muted)]`,children:e.sessionCount})]})},`${e.identityKind}:${e.identityKey}`)})})}function pS({collapsed:e,mobileOpen:t,onMobileOpenChange:n,children:r}){return Pn(),(0,G.useEffect)(()=>{if(!t||typeof window.matchMedia!=`function`)return;let e=window.matchMedia(`(min-width: 1025px)`),r=()=>{e.matches&&n(!1)};return e.addEventListener(`change`,r),r(),()=>e.removeEventListener(`change`,r)},[t,n]),t?(0,K.jsx)(ju,{open:!0,onOpenChange:n,title:W(`Navigation`),variant:`mobile`,side:`left`,children:r}):(0,K.jsx)(`aside`,{"aria-label":W(`Primary navigation`),className:`w-64 shrink-0 flex-col border-r border-[var(--console-border)] bg-[var(--console-sidebar-bg)] ${e?`hidden`:`hidden min-[1025px]:flex`}`,children:r})}function mS({model:{sidebarCollapsed:e,mobileNavigationOpen:t,viewState:n,agentCatalog:r,projects:i,projectCount:a,projectsError:o,projectsLoading:s,selectedProjectNavigationId:c,bookmarkedSessions:l,bookmarksError:u,bookmarksLoading:d,sidebarSessions:f,sidebarSessionLookup:p,bookmarkedSidebarSessionReferences:m,isSearchMode:h,shortcutHelpOpen:g,dismissShortcutHint:_},actions:{onCollapse:v,onMobileNavigationOpenChange:y,onToggleBookmark:b,onSelectFlatSidebarSession:x,onCopySessionAsMarkdown:S,onToggleSidebarSessionBookmark:C,onRenameSession:w,onRenameBookmarkedSession:T,onRetryProjects:E,onRetryBookmarks:D}}){Pn();let O=Hc(),k=n.mode===`session`?Cn(n.activeAgentKey,n.activeSessionId):null,A=n.mode===`root`,j=n.mode===`projects`,{selectedSessionReference:M,selectSession:N}=Uc({viewState:n,sessions:f,sessionLookup:p,isSearchMode:h,shortcutHelpOpen:g,dismissShortcutHint:_,onOpenSession:x}),P=(0,G.useCallback)(e=>{N(e),x(e)},[x,N]);return(0,K.jsx)(pS,{collapsed:e,mobileOpen:t,onMobileOpenChange:y,children:(0,K.jsxs)(`div`,{className:`console-scrollbar flex-1 space-y-8 overflow-y-auto px-4 py-6`,children:[(0,K.jsx)(`section`,{children:(0,K.jsxs)(`ul`,{ref:O,"data-fluid-hover":`y`,className:`console-scrollbar max-h-[min(320px,calc(100vh-400px))] space-y-1 overflow-y-auto pr-1`,children:[(0,K.jsxs)(`li`,{className:`flex items-center gap-2`,children:[(0,K.jsxs)(gr,{"data-fluid-item":!0,to:`/`,"data-active":A?`true`:void 0,className:`min-w-0 flex-1 ${uS(A)}`,children:[(0,K.jsx)(`img`,{src:`/logo.svg?v=3`,alt:W(`Dashboard`),className:`size-3.5 rounded-[2px]`}),(0,K.jsx)(`span`,{className:`console-mono line-clamp-1 flex-1 text-xs`,children:W(`Dashboard`)})]}),t?null:(0,K.jsx)(`button`,{type:`button`,"aria-expanded":`true`,"aria-label":W(`Collapse sidebar`),title:W(`Collapse sidebar`),onClick:v,className:`shrink-0 rounded-sm border border-[var(--console-border)] bg-[var(--console-surface)] p-1 text-[var(--console-muted)] motion-hover hover:bg-[var(--console-surface-muted)] hover:text-[var(--console-text)] focus-visible:ring-2 focus-visible:ring-[var(--brand)] focus-visible:outline-none`,children:(0,K.jsx)(mu,{className:`size-4`})})]}),(0,K.jsx)(`li`,{children:(0,K.jsxs)(gr,{"data-fluid-item":!0,to:`/projects`,"data-active":j?`true`:void 0,className:uS(j),children:[(0,K.jsx)(`span`,{className:`console-mono min-w-0 flex-1 truncate text-xs`,children:W(`Projects`)}),(0,K.jsx)(`span`,{className:`console-mono shrink-0 text-[11px] text-[var(--console-muted)]`,children:a})]})}),(0,K.jsx)(fS,{projects:i,selectedProjectNavigationId:c}),o?(0,K.jsx)(`li`,{children:(0,K.jsx)(Kt,{title:W(`Couldn't load projects.`),message:o,onRetry:E,className:`px-3 py-2`})}):i.length===0&&!s?(0,K.jsx)(`li`,{children:(0,K.jsx)(dS,{scanning:W(`Scanning projects...`),empty:W(`No projects found`)})}):null]})}),(0,K.jsxs)(`section`,{children:[(0,K.jsx)(`h3`,{className:`console-eyebrow mb-3`,children:W(`BOOKMARKS`)}),u?(0,K.jsx)(Kt,{title:W(`Couldn't load bookmarks.`),message:u,onRetry:D,className:`mb-2 px-3 py-2`}):null,l.length===0&&d?(0,K.jsx)(`span`,{className:`console-mono block rounded-sm px-3 py-1.5 text-xs text-[var(--console-muted)]`,children:W(`Loading bookmarks...`)}):l.length===0&&!u?(0,K.jsx)(`span`,{className:`console-mono block rounded-sm px-3 py-1.5 text-xs text-[var(--console-muted)]`,children:W(`No bookmarks yet`)}):(0,K.jsx)(`ul`,{className:`space-y-1`,children:l.map(e=>{let{reference:t}=e,i=n.mode===`session`&&n.activeAgentKey===t.agentName&&n.activeSessionId===t.sessionId,a=gs(r,t.agentName),o=e.availability===`available`,s=o?void 0:e.display_title,c=e.availability===`agent-unavailable`?W(`Agent unavailable`):W(`Session unavailable`),l=o?Ic(e.session):s??t.sessionId,u=s?`${a?.displayName??t.agentName} · ${t.sessionId} · ${c}`:`${a?.displayName??t.agentName} · ${c}`,d=(0,K.jsxs)(K.Fragment,{children:[a?.icon?(0,K.jsx)(Wc,{icon:a.icon,iconColored:a.iconColored,alt:a.displayName,className:`mt-0.5 size-3.5 shrink-0 object-contain`}):null,(0,K.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,K.jsx)(`span`,{className:`console-mono line-clamp-1 block text-xs`,children:l}),(0,K.jsx)(`span`,{className:`console-mono mt-0.5 line-clamp-1 block text-[10px] text-[var(--console-muted)]`,children:o?a?.displayName??t.agentName:u})]})]});return(0,K.jsx)(`li`,{children:(0,K.jsxs)(`div`,{"data-active":i?`true`:void 0,className:`flex items-start gap-2 rounded-sm px-2 py-1.5 motion-hover ${i?`bg-[var(--brand-soft)] text-[var(--brand)]`:`text-[var(--console-muted)] hover:bg-[var(--console-surface-muted)] hover:text-[var(--console-text)]`}`,children:[o?(0,K.jsx)(gr,{to:Mn(e.session),className:`flex min-w-0 flex-1 items-start gap-2`,children:d}):(0,K.jsx)(`div`,{className:`flex min-w-0 flex-1 items-start gap-2`,"aria-disabled":`true`,children:d}),(0,K.jsx)(Yd,{bookmarked:!0,onCopyAsMarkdown:o?()=>S(e.session):void 0,onRename:()=>T(e),onToggleBookmark:()=>b(e)})]})},ts(t))})})]}),c?(0,K.jsxs)(`section`,{children:[(0,K.jsxs)(`h3`,{className:`console-eyebrow mb-3`,children:[W(`SESSIONS`),` `,f.length>0?(0,K.jsx)(`span`,{className:`ml-2 text-[10px] font-normal text-[var(--console-muted)]`,children:W(`Navigate j k · Open Enter`)}):null]}),f.length===0?(0,K.jsx)(dS,{scanning:W(`Scanning sessions...`),empty:W(`No sessions yet`)}):(0,K.jsx)(Yr,{id:`SessionTreeSidebar`,detail:{sessions:f.length},children:(0,K.jsx)(cS,{sessions:f,activeSessionReference:k,selectedSessionReference:M,onSelectSession:P,bookmarkedSessionReferences:m,onCopySessionAsMarkdown:S,onToggleBookmark:C,onRenameSession:w,groupByProject:!1})})]}):null]})})}var hS=[{title:`Navigation`,items:[{keys:`j / k`,description:`Move through sessions or search results`},{keys:`Enter`,description:`Open the current selection`},{keys:`g / G`,description:`Jump to the first or last item`}]},{title:`Search & Help`,items:[{keys:`Cmd/Ctrl K`,description:`Open global search`},{keys:`/`,description:`Focus the search box`},{keys:`Esc`,description:`Exit search or close the current detail view`},{keys:`?`,description:`Open this shortcuts panel`}]}];function gS({open:e,onClose:t}){return Pn(),(0,K.jsx)(et,{open:e,onOpenChange:e=>e?void 0:t(),children:(0,K.jsxs)(Ve,{children:[(0,K.jsx)(Oe,{className:`shortcut-overlay fixed inset-0 z-50 bg-[var(--scrim)]`}),(0,K.jsxs)(pt,{className:`shortcut-content fixed left-1/2 top-1/2 z-50 w-[calc(100%-2rem)] max-w-2xl origin-center -translate-x-1/2 -translate-y-1/2 rounded-lg border border-[var(--console-border)] bg-[var(--console-surface)] p-5 shadow-[var(--shadow-overlay)] outline-none`,children:[(0,K.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`p`,{className:`console-eyebrow`,children:W(`Keyboard Shortcuts`)}),(0,K.jsx)(gt,{className:`console-display mt-2 text-[19px] font-semibold text-[var(--console-text)]`,children:W(`Navigate without leaving the keyboard`)})]}),(0,K.jsx)(qe,{className:`console-mono rounded-sm border border-[var(--console-border)] bg-[var(--console-surface-muted)] px-2 py-1 text-xs text-[var(--console-text)] motion-hover hover:bg-[var(--console-surface)] focus-visible:ring-2 focus-visible:ring-[var(--brand)] focus-visible:outline-none`,children:`Esc`})]}),(0,K.jsx)(`div`,{className:`mt-5 grid gap-4 md:grid-cols-2`,children:hS.map(e=>(0,K.jsxs)(`div`,{className:`rounded-md border border-[var(--console-border)] bg-[var(--console-surface-muted)] p-4`,children:[(0,K.jsx)(`h3`,{className:`console-eyebrow`,children:W(e.title)}),(0,K.jsx)(`div`,{className:`mt-3 space-y-3`,children:e.items.map(e=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`p`,{className:`console-mono text-xs text-[var(--console-text)]`,children:e.keys}),(0,K.jsx)(`p`,{className:`mt-1 text-[13px] leading-6 text-[var(--console-text-secondary)]`,children:W(e.description)})]},e.keys))})]},W(e.title)))})]})]})})}var _S=class extends G.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error(`ErrorBoundary caught error:`,e,t)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:(0,K.jsx)(vS,{error:this.state.error}):this.props.children}};function vS({error:e}){return Pn(),(0,K.jsxs)(`div`,{role:`alert`,className:`rounded-md border border-[var(--console-error-border)] bg-[var(--console-error-bg)] p-6`,children:[(0,K.jsx)(`h3`,{className:`console-mono mb-2 text-sm font-semibold text-[var(--console-error)]`,children:W(`Something went wrong`)}),(0,K.jsx)(`p`,{className:`console-mono mb-3 text-xs text-[var(--console-text-secondary)]`,children:e?.message||W(`Unknown error`)}),(0,K.jsx)(`button`,{type:`button`,onClick:()=>window.location.reload(),className:`console-mono rounded border border-[var(--console-border)] bg-[var(--console-surface)] px-2 py-1 text-xs text-[var(--console-text)]`,children:W(`Reload page`)})]})}var yS=[{id:`1`,roleWidth:`w-14`,timeWidth:`w-20`,bodyWidths:[`w-full`,`w-10/12`,`w-7/12`]},{id:`2`,roleWidth:`w-16`,timeWidth:`w-24`,bodyWidths:[`w-9/12`,`w-7/12`]},{id:`3`,roleWidth:`w-14`,timeWidth:`w-16`,bodyWidths:[`w-full`,`w-11/12`,`w-8/12`,`w-5/12`]},{id:`4`,roleWidth:`w-16`,timeWidth:`w-20`,bodyWidths:[`w-10/12`,`w-8/12`]},{id:`5`,roleWidth:`w-14`,timeWidth:`w-24`,bodyWidths:[`w-full`,`w-10/12`,`w-9/12`]}],bS=[`w-8/12`,`w-7/12`,`w-9/12`,`w-6/12`,`w-10/12`,`w-7/12`];function xS({className:e}){return Pn(),(0,K.jsx)(`div`,{className:`skeleton-shimmer rounded-sm ${e}`})}function SS(){return Pn(),(0,K.jsxs)(`div`,{className:`mx-auto grid min-h-full w-full max-w-[1440px] gap-6 px-2 md:px-4 min-[1025px]:grid-cols-[288px_minmax(0,1fr)] min-[1025px]:items-start`,children:[(0,K.jsxs)(`div`,{className:`hidden rounded-lg border border-[var(--console-border)] bg-[var(--console-surface-muted)] p-3 min-[1025px]:block`,children:[(0,K.jsx)(xS,{className:`h-2.5 w-20`}),(0,K.jsx)(`div`,{className:`mt-4 space-y-2.5`,children:bS.map((e,t)=>(0,K.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,K.jsx)(xS,{className:`size-3.5 shrink-0`}),(0,K.jsx)(xS,{className:`h-3 ${e}`})]},`${t}-${e}`))})]}),(0,K.jsx)(`div`,{className:`flex min-w-0 flex-col gap-8`,children:yS.map(e=>(0,K.jsx)(`article`,{className:`w-full border-l-2 border-[var(--console-thread)] pl-4 pr-3 md:pr-5`,children:(0,K.jsxs)(`div`,{className:`flex gap-4`,children:[(0,K.jsx)(`div`,{className:`shrink-0 pt-1`,children:(0,K.jsx)(`div`,{className:`flex size-8 items-center justify-center rounded-sm border border-[var(--console-border)] bg-[var(--console-surface-muted)]`,children:(0,K.jsx)(xS,{className:`size-3.5`})})}),(0,K.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-3`,children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,K.jsx)(xS,{className:`${e.roleWidth} h-3`}),(0,K.jsx)(xS,{className:`${e.timeWidth} h-2.5`})]}),(0,K.jsx)(`div`,{className:`rounded-lg border border-[var(--console-border)] bg-[var(--console-surface)] p-4 shadow-[var(--shadow-raised)]`,children:(0,K.jsx)(`div`,{className:`space-y-2`,children:e.bodyWidths.map(t=>(0,K.jsx)(xS,{className:`${t} h-3`},`${e.id}-${t}`))})})]})]})},e.id))})]})}var CS=(0,G.lazy)(()=>ur(()=>import(`./DetailLanding-CpV0jLmT.js`).then(e=>({default:e.DetailLanding})),__vite__mapDeps([0,1,2,3,4,5,6,7]))),wS=(0,G.lazy)(()=>ur(()=>import(`./OverviewScreen-B9qZqEQA.js`).then(e=>({default:e.OverviewScreen})),__vite__mapDeps([8,1,9,10,2,4,7,6]))),TS=(0,G.lazy)(()=>ur(()=>import(`./Projects-oY3KCgS4.js`).then(e=>({default:e.ProjectsOverview})),__vite__mapDeps([11,1,9,10,2,4,5,7,6,8]))),ES=(0,G.lazy)(()=>ur(()=>import(`./Projects-oY3KCgS4.js`).then(e=>({default:e.ProjectDashboardView})),__vite__mapDeps([11,1,9,10,2,4,5,7,6,8]))),DS=(0,G.lazy)(()=>ur(()=>import(`./SessionDetail-KSgkmLV7.js`).then(e=>({default:e.SessionDetail})),__vite__mapDeps([12,1,10,2,5,7]))),OS=(0,G.lazy)(()=>ur(()=>import(`./SearchResultsPanel-BAManMmt.js`).then(e=>({default:e.SearchResultsPanel})),__vite__mapDeps([13,1,2,3,4,5])));function kS({children:e}){Pn();let t=cr();return(0,K.jsx)(_S,{children:(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(SS,{}),children:e})},t.pathname)}function AS(e){return e.map(e=>({key:e.name.toLowerCase(),name:e.displayName,icon:e.icon,iconColored:e.iconColored,count:e.count}))}function jS({search:e}){Pn();let t=e.state.status===`loaded`?e.state.results.length:0;return(0,K.jsx)(Yr,{id:`SearchResultsPanel`,detail:{results:t,loading:e.state.status===`loading`},children:(0,K.jsx)(kS,{children:(0,K.jsx)(OS,{query:e.query,state:e.state,agentNameMap:e.agentNameMap,agents:e.agents,projects:e.projectOptions,filters:e.filters,onChangeFilters:e.onChangeFilters,onOpenResult:e.onClose,onRetry:e.onRetry,selectedIndex:e.selectedIndex,registerResultRef:e.registerResultRef})})})}function MS({load:e}){return Pn(),(0,K.jsxs)(`div`,{role:`alert`,className:`mx-auto max-w-4xl rounded-sm border border-[var(--console-error-border)] bg-[var(--console-error-bg)] p-6 text-sm text-[var(--console-error)]`,children:[(0,K.jsx)(`p`,{children:e.error}),(0,K.jsx)(`button`,{type:`button`,onClick:e.retry,className:`console-mono mt-4 rounded-sm border border-[var(--console-error-border)] px-3 py-1.5 text-xs motion-hover hover:bg-[var(--console-surface-muted)] focus-visible:ring-2 focus-visible:ring-[var(--brand)] focus-visible:outline-none`,children:W(`Retry`)})]})}function NS({route:e}){return Pn(),(0,K.jsx)(Yr,{id:`OverviewScreen`,detail:{projects:e.projectCount},children:(0,K.jsx)(kS,{children:(0,K.jsx)(wS,{window:e.overview.window,agentCatalog:e.agentCatalog,rangePreset:e.overview.rangePreset,onRangeChange:e.overview.onRangeChange,onSelectCustom:e.overview.onSelectCustom})})})}function PS({route:e}){return Pn(),(0,K.jsx)(kS,{children:(0,K.jsx)(TS,{initialPage:e.projectPage,window:e.window,agentCatalog:e.agentCatalog,loading:e.projectsLoad.loading,error:e.projectsLoad.error,onRetry:e.projectsLoad.retry})})}function FS({route:e}){return Pn(),(0,K.jsx)(kS,{children:(0,K.jsx)(ES,{project:e.project,loading:e.projectLoad.loading,error:e.projectLoad.error,onRetry:e.projectLoad.retry,agentCatalog:e.agentCatalog,projectKey:e.activeProjectKey,sessions:e.sessions,activeAgent:e.agentFilter.selectedAgent,onChangeAgent:e.agentFilter.onChangeAgent,timeWindow:e.overview.window,rangePreset:e.overview.rangePreset,onRangeChange:e.overview.onRangeChange,onSelectCustom:e.overview.onSelectCustom})})}function IS({route:e}){Pn();let t=(0,G.useMemo)(()=>AS(e.agents),[e.agents]),n=e.bookmarks.toggleSessionBookmark,r=(0,G.useCallback)(e=>n(e,e.reference.agentName),[n]);return(0,K.jsx)(kS,{children:(0,K.jsx)(CS,{type:`agent`,agentCatalog:e.agentCatalog,sessions:e.sessions,agentItems:t,activeAgentKey:e.activeAgentKey,isBookmarked:e.bookmarks.isBookmarked,onToggleBookmark:r})})}function LS({route:e}){let t=Pn(),n=(0,G.useMemo)(()=>AS(e.agents),[e.agents]),r=e.detail.session,i=r?.reference.agentName,a=r?.reference.sessionId,o=(0,G.useMemo)(()=>!i||!a?[]:e.childSessionsByParentRouteKey.get(Cn(i,a))??[],[t,e.childSessionsByParentRouteKey,i,a]),s=e.bookmarks.toggleSessionBookmark,c=(0,G.useCallback)(e=>s(e,e.reference.agentName),[s]);return e.detail.loading?(0,K.jsx)(SS,{}):e.detail.error?.kind===`missing`?(0,K.jsx)(kS,{children:(0,K.jsx)(CS,{type:`missing-session`,agentCatalog:e.agentCatalog,sessions:e.sessions,agentItems:n,activeAgentKey:e.activeAgentKey,attemptedSessionId:e.activeSessionId,isBookmarked:e.bookmarks.isBookmarked,onToggleBookmark:c})}):e.detail.error?.kind===`load-failed`?(0,K.jsx)(kS,{children:(0,K.jsx)(CS,{type:`load-failed`,agentCatalog:e.agentCatalog,sessions:e.sessions,agentItems:n,loadFailureMessage:e.detail.error.message,isBookmarked:e.bookmarks.isBookmarked,onToggleBookmark:c,onRetry:e.detail.retry})}):r?(0,K.jsx)(Yr,{id:`SessionDetail`,detail:{messages:r.messages.length,session:r.reference.sessionId},children:(0,K.jsx)(kS,{children:(0,K.jsx)(DS,{session:r,agentCatalog:e.agentCatalog,highlightQuery:e.detailHighlightQuery,childSessions:o},`${r.reference.agentName}/${r.reference.sessionId}`)})}):(0,K.jsx)(SS,{})}function RS({route:e}){Pn();let t=(0,G.useMemo)(()=>AS(e.agents),[e.agents]);return(0,K.jsx)(kS,{children:(0,K.jsx)(CS,{type:`missing-agent`,agentCatalog:e.agentCatalog,sessions:e.sessions,agentItems:t,attemptedAgentKey:e.attemptedKey,isBookmarked:e.bookmarks.isBookmarked,onToggleBookmark:t=>e.bookmarks.toggleSessionBookmark(t,t.reference.agentName)})})}function zS(){return Pn(),(0,K.jsxs)(`div`,{role:`alert`,className:`rounded-md border border-[var(--console-border)] bg-[var(--console-surface)] p-6`,children:[(0,K.jsx)(`h3`,{className:`console-mono mb-2 text-sm font-semibold text-[var(--console-text)]`,children:W(`Page not found`)}),(0,K.jsx)(`p`,{className:`console-mono mb-3 text-xs text-[var(--console-text-secondary)]`,children:W(`This address does not match any dashboard, agent, or session route.`)}),(0,K.jsx)(gr,{to:`/`,className:`console-mono text-xs text-[var(--console-accent)] underline underline-offset-2`,children:W(`Back to dashboard`)})]})}function BS({route:e}){switch(Pn(),e.mode){case`root`:return(0,K.jsx)(NS,{route:e});case`projects`:return(0,K.jsx)(PS,{route:e});case`project`:return(0,K.jsx)(FS,{route:e});case`agent`:return(0,K.jsx)(IS,{route:e});case`session`:return(0,K.jsx)(LS,{route:e});case`missingAgent`:return(0,K.jsx)(RS,{route:e});case`invalidRoute`:return(0,K.jsx)(zS,{})}}function VS({load:e,search:t,route:n}){return Pn(),e.loading?(0,K.jsx)(SS,{}):t.active?(0,K.jsx)(jS,{search:t}):e.error?(0,K.jsx)(MS,{load:e}):(0,K.jsx)(BS,{route:n})}var HS=[{value:`7d`,label:`Last 7 days`},{value:`14d`,label:`Last 14 days`},{value:`30d`,label:`Last 30 days`},{value:`90d`,label:`Last 90 days`},{value:`all`,label:`All time`}];function US({window:e,preset:t,customFrom:n,customTo:r,onSelectPreset:i,onSelectCustom:a}){Pn();let[o,s]=(0,G.useState)(!1),c=$t({window:e}),l=()=>s(!0);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,K.jsxs)(`label`,{className:`relative block`,children:[(0,K.jsx)(`span`,{className:`sr-only`,children:W(`Session time range`)}),(0,K.jsxs)(`select`,{value:t,title:c??W(`Session time range`),onChange:e=>{let t=e.target.value;t===`custom`?l():i(t)},className:`console-mono w-24 appearance-none rounded-full border border-[var(--console-border)] bg-[var(--console-surface)] py-[5px] pr-6 pl-[13px] text-[11px] text-[var(--console-text)] outline-none hover:border-[var(--console-border-strong)] focus-visible:ring-2 focus-visible:ring-[var(--brand)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--console-bg)] sm:w-auto sm:max-w-44 sm:pr-7`,children:[HS.map(e=>(0,K.jsx)(`option`,{value:e.value,children:W(e.label)},e.value)),(0,K.jsx)(`option`,{value:`custom`,children:W(`Custom range`)})]}),(0,K.jsx)(`span`,{"aria-hidden":`true`,className:`pointer-events-none absolute top-1/2 right-2 -translate-y-1/2 text-[10px] text-[var(--console-muted)]`,children:`▾`})]}),t===`custom`?(0,K.jsx)(`button`,{type:`button`,onClick:l,"aria-label":W(`Edit custom time range`),className:`console-mono motion-hover motion-press rounded-full border border-[var(--brand)] bg-[var(--brand)] px-[13px] py-[5px] text-[11px] text-[var(--brand-fg)] hover:bg-[var(--brand-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--brand)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--console-bg)]`,children:W(`Edit`)}):null]}),(0,K.jsx)(un,{open:o,onOpenChange:s,window:e,customFrom:n,customTo:r,onSelectCustom:a})]})}var WS=(0,G.forwardRef)(function({onSubmit:e},t){Pn();let[n,r]=(0,G.useState)(``),i=(0,G.useRef)(null);return(0,G.useImperativeHandle)(t,()=>({clear(){r(``)},focusAndSelect(){i.current?.focus(),i.current?.select()}}),[]),(0,K.jsx)(Yr,{id:`SearchControls`,children:(0,K.jsxs)(`form`,{className:`order-3 col-span-2 flex w-full items-center justify-center gap-2 sm:order-none sm:col-span-1 sm:mx-auto sm:max-w-[560px]`,onSubmit:t=>{t.preventDefault(),e(n)},children:[(0,K.jsxs)(`label`,{className:`flex min-w-0 flex-1 items-center rounded-sm border border-[var(--console-border)] bg-[var(--console-surface)] px-2 py-1 focus-within:border-[var(--brand-line)] focus-within:ring-2 focus-within:ring-[var(--brand)]`,children:[(0,K.jsx)(`span`,{className:`sr-only`,children:W(`Search Sessions`)}),(0,K.jsx)(`input`,{ref:i,type:`search`,name:`session-search`,autoComplete:`off`,value:n,onChange:e=>r(e.target.value),placeholder:W(`Search sessions… /`),className:`console-mono w-full min-w-0 bg-transparent text-xs text-[var(--console-text)] outline-none placeholder:text-[var(--console-muted)]`})]}),(0,K.jsx)(`button`,{type:`submit`,className:`console-mono rounded-sm border border-[var(--console-border-strong)] bg-[var(--console-surface-muted)] px-3 py-1 text-xs text-[var(--console-text)] motion-hover hover:bg-[var(--console-surface)] focus-visible:ring-2 focus-visible:ring-[var(--brand)] focus-visible:outline-none`,children:W(`Search`)})]})})});function GS(){let{preference:e}=(0,G.useSyncExternalStore)(Fn,In,In);return(0,K.jsxs)(`label`,{className:`console-mono flex shrink-0 items-center gap-1 text-xs text-[var(--console-muted)]`,children:[(0,K.jsx)(`span`,{className:`sr-only`,children:W(`Language`)}),(0,K.jsxs)(`select`,{value:e,onChange:e=>wn(e.target.value),className:`max-w-28 rounded-sm border border-[var(--console-border)] bg-[var(--console-surface)] px-1.5 py-1 text-[var(--console-text)] focus-visible:ring-2 focus-visible:ring-[var(--brand)] focus-visible:outline-none`,children:[(0,K.jsx)(`option`,{value:`system`,children:W(`Follow system`)}),(0,K.jsx)(`option`,{value:`zh-CN`,children:`简体中文`}),(0,K.jsx)(`option`,{value:`en`,children:`English`}),(0,K.jsx)(`option`,{value:`ja`,children:`日本語`})]})]})}var KS={light:`dark`,dark:`system`,system:`light`},qS={light:Su,dark:du,system:uu},JS={light:`Light`,dark:`Dark`,system:`System`};function YS({theme:e,onChange:t}){Pn();let n=qS[e],r=KS[e];return(0,K.jsx)(`button`,{type:`button`,onClick:()=>t(r),"aria-label":W(`Theme: {0}. Switch to {1}.`,[W(JS[e]),W(JS[r])]),title:W(`Theme: {0} (click for {1})`,[W(JS[e]),W(JS[r])]),className:`console-mono motion-hover motion-press rounded-sm border border-[var(--console-border)] bg-[var(--console-surface)] p-1.5 text-[var(--console-muted)] hover:bg-[var(--console-surface-muted)] hover:text-[var(--console-text)] focus-visible:ring-2 focus-visible:ring-[var(--brand)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--console-bg)] focus-visible:outline-none`,children:(0,K.jsx)(n,{"aria-hidden":`true`,className:`size-4`})})}function XS({searchControlsRef:e,onSubmitSearch:t,theme:n,onChangeTheme:r,onShowShortcuts:i,timeWindow:a}){return Pn(),(0,K.jsx)(`header`,{className:`shrink-0 border-b border-[var(--console-border)] bg-[var(--console-surface)]/85 backdrop-blur-sm`,children:(0,K.jsxs)(`div`,{className:`grid min-h-14 grid-cols-[auto_1fr] items-center gap-3 px-4 py-2 sm:grid-cols-[auto_1fr_auto] sm:py-0`,children:[(0,K.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,K.jsxs)(gr,{to:`/`,className:`flex items-center gap-2 text-[var(--console-text)]`,children:[(0,K.jsx)(`img`,{src:`/logo.svg?v=3`,alt:`CodeSesh`,className:`h-6 w-6 rounded-sm`}),(0,K.jsx)(`span`,{className:`console-display text-sm font-semibold uppercase tracking-[0.05em]`,children:`CodeSesh`})]})}),(0,K.jsx)(WS,{ref:e,onSubmit:t}),(0,K.jsxs)(`div`,{className:`flex items-center flex-wrap justify-end gap-2`,children:[(0,K.jsx)(GS,{}),(0,K.jsx)(YS,{theme:n,onChange:r}),(0,K.jsxs)(`button`,{type:`button`,onClick:i,className:`console-mono rounded-sm border border-[var(--console-border)] bg-[var(--console-surface)] px-2 py-1 text-xs text-[var(--console-text)] motion-hover hover:bg-[var(--console-surface-muted)] focus-visible:ring-2 focus-visible:ring-[var(--brand)] focus-visible:outline-none`,title:W(`Show keyboard shortcuts`),children:[`?`,(0,K.jsxs)(`span`,{className:`hidden sm:inline`,children:[` `,W(`Shortcuts`)]})]}),a?(0,K.jsx)(US,{window:a.value,preset:a.preset,customFrom:a.customFrom,customTo:a.customTo,onSelectPreset:a.onSelectPreset,onSelectCustom:a.onSelectCustom}):null,(0,K.jsxs)(`span`,{className:`console-mono hidden rounded-sm border border-[var(--console-border)] bg-[var(--console-surface-muted)] px-2 py-1 text-xs text-[var(--console-muted)] sm:inline-flex`,children:[`v`,`1.0.8`]})]})]})})}function ZS(e){return`'${e.replace(/'/g,`'\\''`)}'`}function QS({resumeCommandPrefix:e,sessionId:t,directory:n}){if(!e)return null;let r=`${e} ${ZS(t)}`,i=n??``;return i.trim()?`cd ${ZS(i)} && ${r}`:r}async function $S(e){if(typeof navigator<`u`&&navigator.clipboard?.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{}if(typeof document>`u`)return!1;let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select();let n=!1;try{n=document.execCommand(`copy`)}catch{n=!1}return document.body.removeChild(t),n}function eC({resumeCommandPrefix:e,sessionId:t,directory:n,className:r=``}){Pn();let[i,a]=(0,G.useState)(!1),o=QS({resumeCommandPrefix:e,sessionId:t,directory:n});return(0,G.useEffect)(()=>{if(!i)return;let e=window.setTimeout(()=>a(!1),1500);return()=>window.clearTimeout(e)},[i]),o?(0,K.jsxs)(`button`,{type:`button`,onClick:e=>{e.preventDefault(),e.stopPropagation(),$S(o).then(e=>{e&&a(!0)})},"aria-label":W(i?`Resume command copied: {0}`:`Copy resume command: {0}`,[o]),title:W(i?`Copied: {0}`:`Copy: {0}`,[o]),className:`console-mono motion-hover motion-press inline-flex items-center gap-1.5 rounded-sm border px-2 py-1 text-[11px] focus-visible:ring-2 focus-visible:ring-[var(--brand)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--console-bg)] focus-visible:outline-none ${r} ${i?`border-[var(--positive)] bg-[var(--positive-soft)] text-[var(--positive)]`:`border-[var(--console-border)] bg-[var(--console-surface-muted)] text-[var(--console-muted)] hover:border-[var(--console-border-strong)] hover:text-[var(--console-text)]`}`,children:[i?(0,K.jsx)(Vl,{className:`size-3`,strokeWidth:1.8}):(0,K.jsx)(Zl,{className:`size-3`,strokeWidth:1.8}),(0,K.jsx)(`span`,{children:W(i?`Copied`:`Copy resume`)}),(0,K.jsx)(`span`,{className:`sr-only`,"aria-live":`polite`,children:i?W(`Resume command copied`):``})]}):null}function tC({visible:e}){Pn();let t=No(),n=an(t),r=t?[t.phase,t.scanningAgents[0]??``,t.completedAgents.length,t.totalAgents,t.backfill.active,t.backfill.currentAgent??``,t.backfill.pendingAgents.length,t.backfill.failedAgents.length].join(`|`):null;return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`div`,{className:e?`flow-root h-9`:void 0,children:e&&n?(0,K.jsx)(`p`,{title:n,className:`console-mono mt-2 w-fit max-w-full truncate rounded-sm border border-[var(--console-warning-border)] bg-[var(--console-warning-bg)] px-2 py-1 text-[11px] leading-relaxed text-[var(--console-warning)]`,children:n}):null}),(0,K.jsx)(nC,{visible:e,label:n},r??`idle`)]})}function nC({visible:e,label:t}){Pn();let[n]=(0,G.useState)(t);return(0,K.jsx)(`div`,{className:`sr-only`,"aria-live":`polite`,"aria-atomic":`true`,children:e?n:null})}function rC({model:{mobileNavigationOpen:e,sidebarCollapsed:t,route:n,shortcutHintVisible:r,sessionBackHintVisible:i,resumeSession:a,sessionCopyNotice:o,liveNotice:s,scanStatusVisible:c,sessionLoadNotice:l},actions:{onOpenMobileNavigation:u,onExpandSidebar:d,onDismissShortcutHint:f,onRetrySessionLoad:p}}){return Pn(),(0,K.jsxs)(`section`,{className:`flex shrink-0 items-start gap-3 border-b border-[var(--console-border)] bg-[var(--console-surface)]/70 px-4 py-4 backdrop-blur-sm md:px-8`,children:[(0,K.jsx)(`button`,{type:`button`,"aria-expanded":e,"aria-label":W(`Open navigation`),title:W(`Open navigation`),onClick:u,className:`mt-0.5 inline-flex shrink-0 rounded-sm border border-[var(--console-border)] bg-[var(--console-surface)] p-1 text-[var(--console-muted)] motion-hover hover:bg-[var(--console-surface-muted)] hover:text-[var(--console-text)] focus-visible:ring-2 focus-visible:ring-[var(--brand)] focus-visible:outline-none min-[1025px]:hidden`,children:(0,K.jsx)(hu,{className:`size-4`})}),t?(0,K.jsx)(`button`,{type:`button`,"aria-expanded":`false`,"aria-label":W(`Expand sidebar`),title:W(`Expand sidebar`),onClick:d,className:`mt-0.5 hidden shrink-0 rounded-sm border border-[var(--console-border)] bg-[var(--console-surface)] p-1 text-[var(--console-muted)] motion-hover hover:bg-[var(--console-surface-muted)] hover:text-[var(--console-text)] focus-visible:ring-2 focus-visible:ring-[var(--brand)] focus-visible:outline-none min-[1025px]:inline-flex`,children:(0,K.jsx)(hu,{className:`size-4`})}):null,(0,K.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,K.jsx)(`nav`,{"aria-label":W(`Breadcrumb`),className:`console-mono mb-2 flex flex-wrap items-center gap-1 text-[11px] text-[var(--console-muted)]`,children:n.breadcrumbs.map((e,t)=>(0,K.jsxs)(`span`,{className:`flex items-center gap-1`,children:[e.to?(0,K.jsx)(gr,{to:e.to,className:`motion-hover hover:text-[var(--console-text)]`,children:e.label}):(0,K.jsx)(`span`,{className:`text-[var(--console-text)]`,children:e.label}),t<n.breadcrumbs.length-1?(0,K.jsx)(`span`,{children:`/`}):null]},`${e.label}-${t}`))}),(0,K.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,K.jsx)(`span`,{className:`console-eyebrow rounded-sm border border-[var(--console-border)] bg-[var(--console-surface-muted)] px-1.5 py-0.5`,children:n.contextLabel}),(0,K.jsx)(`h1`,{className:`console-display text-2xl font-semibold text-[var(--console-text)]`,children:n.title})]}),(0,K.jsx)(`div`,{className:`console-mono mt-1 flex flex-wrap items-center gap-x-2 gap-y-1 text-xs text-[var(--console-muted)]`,children:n.subtitle}),(0,K.jsxs)(`div`,{className:`mt-2 flex flex-wrap items-center gap-2`,children:[r?(0,K.jsxs)(`div`,{className:`console-mono inline-flex items-center gap-2 rounded-sm border border-[var(--console-border)] bg-[var(--console-surface-muted)] px-2 py-1 text-[11px] text-[var(--console-text)]`,children:[(0,K.jsx)(`span`,{children:W(`Keyboard navigation available`)}),(0,K.jsx)(`span`,{className:`rounded-sm border border-[var(--console-border)] bg-[var(--console-surface)] px-1`,children:`?`}),(0,K.jsx)(`button`,{type:`button`,onClick:f,className:`text-[var(--console-muted)] motion-hover hover:text-[var(--console-text)]`,"aria-label":W(`Dismiss keyboard shortcuts hint`),children:`×`})]}):null,i?(0,K.jsx)(`span`,{className:`console-mono inline-flex rounded-sm border border-[var(--console-border)] bg-[var(--console-surface-muted)] px-2 py-1 text-[11px] text-[var(--console-muted)]`,children:W(`Esc back`)}):null,a?(0,K.jsx)(eC,{...a}):null]}),(0,K.jsxs)(`div`,{"aria-live":`polite`,children:[o?(0,K.jsx)(`p`,{className:`console-mono mt-2 inline-flex rounded-sm border border-[var(--console-border)] bg-[var(--console-surface-muted)] px-2 py-1 text-[11px] text-[var(--console-text)]`,children:o}):null,s?(0,K.jsx)(`p`,{className:`console-mono mt-2 inline-flex rounded-sm border border-[var(--console-border)] bg-[var(--console-surface-muted)] px-2 py-1 text-[11px] text-[var(--console-text)]`,children:s}):null]}),(0,K.jsx)(tC,{visible:c}),l?(0,K.jsxs)(`div`,{role:l.error?`alert`:`status`,className:`console-mono mt-2 flex flex-wrap items-center gap-2 rounded-sm border border-[var(--console-warning-border)] bg-[var(--console-warning-bg)] px-2 py-1 text-[11px] text-[var(--console-warning)]`,children:[(0,K.jsx)(`span`,{children:l.error??W(`Loading sessions… Results are not yet complete.`)}),l.error?(0,K.jsx)(`button`,{type:`button`,disabled:l.loading,onClick:p,className:`rounded-sm border border-current px-2 py-1 focus-visible:ring-2 focus-visible:ring-[var(--brand)] focus-visible:outline-none disabled:opacity-50`,children:W(`Retry session load`)}):null]}):null]})]})}function iC({locationPath:e,mode:t,searchActive:n,sessionCount:r,children:i}){return(0,K.jsx)(`section`,{className:`console-scrollbar bg-grid min-h-0 flex-1 overflow-y-auto px-4 py-6 md:px-8`,children:(0,K.jsx)(_S,{children:(0,K.jsx)(Yr,{id:`MainContent`,detail:{mode:t,search:n,sessions:r},children:i})},e)})}var aC={user:`User`,assistant:`Assistant`,tool:`Tool`};function oC(e,t){let n=t;for(let t of e.matchAll(/`+/g))n=Math.max(n,t[0].length+1);return"`".repeat(n)}function sC(e){let t=e.replace(/\s+/g,` `).trim(),n=oC(t,1),r=t.startsWith("`")||t.endsWith("`");return`${n}${r?` `:``}${t}${r?` `:``}${n}`}function cC(e,t){let n=oC(e,3);return`${n}${t}\n${e}${e.endsWith(`
|
|
1411
|
+
`)?``:`
|
|
1412
|
+
`}${n}`}function lC(e){if(typeof e==`string`){try{let t=JSON.parse(e);if(typeof t==`object`&&t)return{content:JSON.stringify(t,null,2),language:`json`}}catch{}return{content:e,language:`text`}}try{let t=JSON.stringify(e,null,2);if(t!==void 0)return{content:t,language:`json`}}catch{}return{content:String(e),language:`text`}}function uC(e,t){let{content:n,language:r}=lC(t);return`#### ${e}\n\n${cC(n,r)}`}function dC(e){return(e.title?.trim()||e.tool.trim()||`tool`).replace(/^tool:\s*/i,``)}function fC(e){let t=[`### Tool: ${sC(dC(e))}`,`Status: ${sC(e.state.status)}`];return e.state.input!==void 0&&t.push(uC(`Input`,e.state.input)),e.state.output!==void 0&&e.state.output!==null&&t.push(uC(`Output`,e.state.output)),e.state.error!==void 0&&e.state.error!==null&&t.push(uC(`Error`,e.state.error)),e.state.metadata!==void 0&&e.state.metadata!==null&&t.push(uC(`Metadata`,e.state.metadata)),t.join(`
|
|
1413
|
+
|
|
1414
|
+
`)}function pC(e){let t=e.url?.trim();return t&&!t.toLowerCase().startsWith(`data:`)?`.replaceAll(`>`,`%3E`).replaceAll(`
|
|
1415
|
+
`,`%0A`)}>)`:`_Embedded image (${e.mime_type??`unknown type`}) omitted._`}function mC(e){switch(e.type){case`text`:return e.text.trim();case`reasoning`:{let t=e.text.trim();return t?`### Reasoning\n\n${t}`:``}case`plan`:{let t=e.text.trim();return t?`### ${e.approval_status===`fail`?`Rejected plan`:`Plan`}\n\n${t}`:``}case`tool`:return fC(e);case`image`:return pC(e)}}function hC(e){let t=e.parts.map(mC).filter(Boolean).join(`
|
|
1416
|
+
|
|
1417
|
+
`);return t?`## ${aC[e.role]}\n\n${t}`:``}function gC(e){let t=Ic(e).replace(/\s+/g,` `).trim()||`Session`,n=[`- Agent: ${sC(e.reference.agentName)}`,`- Session ID: ${sC(e.reference.sessionId)}`];e.directory.trim()&&n.push(`- Directory: ${sC(e.directory)}`);let r=e.messages.map(hC).filter(Boolean),i=r.length>0?r.join(`
|
|
1418
|
+
|
|
1419
|
+
`):`_No displayable messages._`;return[`# ${t}`,n.join(`
|
|
1420
|
+
`),i].join(`
|
|
1421
|
+
|
|
1422
|
+
`)+`
|
|
1423
|
+
`}var _C=2500;function vC(){let e=Ht(),[t,n]=(0,G.useState)(null);return(0,G.useEffect)(()=>{if(!t)return;let e=window.setTimeout(()=>n(null),_C);return()=>window.clearTimeout(e)},[t]),{copySessionAsMarkdown:(0,G.useCallback)(async t=>{let{agentName:r,sessionId:i}=t.reference;try{if(!await $S(gC(await e.fetchQuery({queryKey:dn.sessionDetail(r,i),queryFn:({signal:e})=>Kn(r,i,{signal:e}),staleTime:1/0}))))throw Error(`Clipboard write failed`);n({message:`Session copied as Markdown.`}),Qn(`session.markdown_copy.done`,{agent:r,session:i})}catch(e){n({message:`Couldn’t copy session as Markdown.`}),Qn(`session.markdown_copy.error`,{agent:r,session:i,error_name:e instanceof Error?e.name:`UnknownError`})}},[e]),sessionCopyNotice:t?W(t.message):null}}function yC(e){let t=Ht(),n=(0,G.useCallback)(async()=>{await Promise.all([e(),bs(t)])},[t,e]),{mutateAsync:r}=Fr({mutationFn:({agentKey:e,sessionId:t,alias:n})=>Un(e,t,n),onSuccess:n}),{mutateAsync:i}=Fr({mutationFn:({agentKey:e,sessionId:t})=>$n(e,t),onSuccess:n});return{saveAlias:(0,G.useCallback)(async(e,t)=>{await r({...e,alias:t})},[r]),removeAlias:(0,G.useCallback)(async e=>{await i(e)},[i])}}function bC(e){let[t,n]=(0,G.useState)(null),{saveAlias:r,removeAlias:i}=yC(e);return{target:t,openSession:(0,G.useCallback)(e=>{n({agentKey:vn(e),sessionId:e.reference.sessionId,title:e.title,displayTitle:e.display_title})},[]),openBookmark:(0,G.useCallback)(e=>{n({agentKey:e.reference.agentName,sessionId:e.reference.sessionId,title:e.availability===`available`?e.session.title:e.reference.sessionId,displayTitle:e.availability===`available`?e.session.display_title:e.display_title})},[]),save:(0,G.useCallback)(async e=>{t&&await r(t,e)},[r,t]),remove:(0,G.useCallback)(async()=>{t&&await i(t)},[i,t]),close:(0,G.useCallback)(()=>n(null),[])}}function xC(){Pn();let e=_r(),t=Ls(),n=sc(t.config?.window),{timeWindow:r}=n,i=Is(r),{activeAgents:a,agentCatalog:o,sessions:s,sessionsLoading:c,sessionsError:l,projects:u,projectPage:d,projectsError:f,projectsLoading:p,dashboard:m,window:h,validAgentKeys:g,agentNameMap:_,reload:v,applyLiveEvent:y,resyncLiveState:b,retryProjects:x,retrySessions:S}=i,C=t.loading||!t.error&&i.loading,w=t.error??i.error,T=t.error?t.retry:i.retryLoad;Us({window:r,pending:t.loading||!t.error&&i.loadPending,error:w??l,agentCount:i.agents.length,sessionCount:i.sessions.length});let E=cr(),D=Po(),[O,k]=(0,G.useState)(!1),[A,j]=(0,G.useState)(null),M=A===E.pathname,N=(0,G.useCallback)(e=>j(e?E.pathname:null),[E.pathname]),{shortcutHintDismissed:P,sidebarCollapsed:ee,theme:te,dismissShortcutHint:F,setSidebarCollapsed:ne,setTheme:I}=vc(),re=ln(te),{copySessionAsMarkdown:ie,sessionCopyNotice:ae}=vC(),L=lr(),R=(0,G.useMemo)(()=>ko(L,g),[L,g]),oe=zo(R),{session:z,sessionError:se}=oe;(0,G.useEffect)(()=>{Qn(`route.change`,{mode:R.mode,agent:R.activeAgentKey,session:R.activeSessionId})},[E.pathname,R.mode,R.activeAgentKey,R.activeSessionId]);let ce=(0,G.useMemo)(()=>br(s,a),[s,a]),le=Xo(ce,h),B=(0,G.useRef)(null),{activeSearchQuery:V,searchMode:ue,searchState:de,searchResults:fe,searchLoading:pe,selectedSearchIndex:me,setSelectedSearchIndex:he,openSearch:ge,submitSearch:_e,closeSearch:ve}=le,ye=(0,G.useCallback)(()=>{ge(),B.current?.focusAndSelect()},[ge]),H=(0,G.useCallback)(()=>{B.current?.clear()},[]),be=ue,xe=be?V:typeof E.state==`object`&&E.state!==null&&`searchQuery`in E.state&&typeof E.state.searchQuery==`string`?E.state.searchQuery:``,Se=ds(),{bookmarkedSessions:Ce,loading:we,error:Te,isSessionBookmarked:Ee,toggleBookmark:De,toggleSessionBookmark:Oe,refresh:ke}=Se,Ae=R.mode===`project`?R.activeProjectKind:null,je=R.mode===`project`?R.activeProjectKey:null,Me=Ae&&je?On({kind:Ae,key:je}):null,Ne=Hs(h,Ae&&je?{kind:Ae,key:je}:null,u),Pe=(0,G.useMemo)(()=>!Ne.project||u.includes(Ne.project)?u:[...u,Ne.project],[Ne.project,u]),[Fe,Ie]=(0,G.useState)(null),Le=Fe?.identityKey===Me?Fe?.agentKey:void 0,Re=(0,G.useCallback)(e=>{Ie(Me?{identityKey:Me,agentKey:e}:null)},[Me]),ze=ms({viewState:R,sessionIndexes:ce,session:z,agents:a,projects:Pe,selectedProjectAgent:Le,isSessionBookmarked:Ee}),{activeAgent:Be,activeProject:Ve,activeProjectSessions:He,selectedProjectNavigation:Ue,sidebarSessions:We,bookmarkedSidebarSessionReferences:Ge}=ze,Ke=Ue?.identity??null,qe=Ue?.identityKey??null,Je=(0,G.useCallback)(t=>{e(Mn(t))},[e]),Ye=(0,G.useCallback)(e=>{Oe(e,vn(e))},[Oe]),{liveNotice:Xe}=Ks({applyLiveEvent:y,resyncLiveState:b,setScanStatus:D}),Ze=bC(v),Qe=Lc({viewState:R,isSearchMode:be,searchSubtitle:de.status===`failed`?W(`Search failed for "{0}"`,[V]):cn(V,pe,fe.length),dashboard:m,projectCount:d.summary.projects,sessionCount:s.length,activeProject:Ve?.project??null,activeAgent:Be,sidebarSessionCount:We.length,session:z,sessionError:se?.kind??null,selectedProjectIdentity:Ke,selectedProject:Ue?.project??null}),$e={window:h,rangePreset:n.preset??`all`,onRangeChange:n.selectPreset,onSelectCustom:n.selectCustom},et={isBookmarked:Se.isSessionBookmarked,toggleSessionBookmark:Se.toggleSessionBookmark},tt;switch(R.mode){case`root`:tt={...R,agentCatalog:o,projectCount:d.summary.projects,overview:$e};break;case`projects`:tt={...R,agentCatalog:o,projectPage:d,projectsLoad:{loading:p,error:f,retry:()=>void x()},window:h};break;case`project`:tt={...R,agentCatalog:o,project:Ve?.project??null,projectLoad:{loading:Ne.loading,error:Ne.error,retry:()=>void Ne.retry()},sessions:He,agentFilter:{selectedAgent:Le,onChangeAgent:Re},overview:$e};break;case`agent`:tt={...R,agents:a,agentCatalog:o,sessions:ce.byLandingAgent.get(R.activeAgentKey)??[],bookmarks:et};break;case`session`:tt={...R,agents:a,agentCatalog:o,sessions:ce.byLandingAgent.get(R.activeAgentKey)??[],bookmarks:et,detail:{session:oe.session,loading:oe.sessionLoading,error:oe.sessionError,retry:()=>void oe.refresh()},detailHighlightQuery:xe,childSessionsByParentRouteKey:ce.childrenByParentRouteKey};break;case`missingAgent`:tt={...R,agents:a,agentCatalog:o,sessions:ce.landingSessions,bookmarks:et};break;case`invalidRoute`:tt=R}let U=(0,K.jsx)(VS,{load:{loading:C,error:w,retry:()=>void T()},route:tt,search:{active:le.searchMode,query:le.activeSearchQuery,state:le.searchState,agentNameMap:_,agents:a,projectOptions:le.projectOptions,filters:le.searchFilters,onChangeFilters:le.setSearchFilters,onClose:le.closeSearch,onRetry:le.retrySearch,selectedIndex:le.selectedSearchIndex,registerResultRef:le.registerResultRef}});Js({viewState:R,navigate:e,selectedProjectNavigationIdentity:Ke,shortcutHelpOpen:O,setShortcutHelpOpen:k,dismissShortcutHint:F,isSearchMode:be,activeSearchQuery:V,searchResults:fe,selectedSearchIndex:me,setSelectedSearchIndex:he,clearSearchInput:H,openSearch:ye,closeSearch:ve});let nt=(0,G.useCallback)(()=>{k(!0),F()},[F]),rt=!be&&R.mode===`session`,it=rt&&z?{resumeCommandPrefix:gs(o,R.activeAgentKey)?.resumeCommandPrefix??null,sessionId:z.reference.sessionId,directory:z.directory}:null,at=!C&&!w&&(c||l)?{loading:c,error:l}:null;return(0,K.jsx)(on.Provider,{value:re,children:(0,K.jsxs)(`div`,{className:`console-ui flex h-screen flex-col overflow-hidden bg-[var(--console-bg)] text-[var(--console-text)]`,children:[(0,K.jsx)(`a`,{href:`#main`,className:`console-mono sr-only rounded-sm border border-[var(--console-border-strong)] bg-[var(--console-surface)] px-3 py-1.5 text-xs text-[var(--console-text)] focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-[60] focus-visible:ring-2 focus-visible:ring-[var(--brand)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--console-bg)] focus-visible:outline-none`,children:W(`Skip to content`)}),(0,K.jsx)(XS,{searchControlsRef:B,onSubmitSearch:_e,theme:te,onChangeTheme:I,onShowShortcuts:nt,timeWindow:r&&n.preset?{value:r,preset:n.preset,customFrom:n.customFrom,customTo:n.customTo,onSelectPreset:n.selectPreset,onSelectCustom:n.selectCustom}:null}),(0,K.jsxs)(`div`,{className:`flex min-h-0 flex-1`,children:[(0,K.jsx)(mS,{model:{sidebarCollapsed:ee,mobileNavigationOpen:M,viewState:R,agentCatalog:o,projects:Pe,projectCount:d.summary.projects,projectsError:f,projectsLoading:p,selectedProjectNavigationId:qe,bookmarkedSessions:Ce,bookmarksError:Te,bookmarksLoading:we,sidebarSessions:We,sidebarSessionLookup:ze.sidebarSessionLookup,bookmarkedSidebarSessionReferences:Ge,isSearchMode:be,shortcutHelpOpen:O,dismissShortcutHint:F},actions:{onCollapse:()=>ne(!0),onMobileNavigationOpenChange:N,onToggleBookmark:De,onSelectFlatSidebarSession:Je,onCopySessionAsMarkdown:e=>void ie(e),onToggleSidebarSessionBookmark:Ye,onRenameSession:Ze.openSession,onRenameBookmarkedSession:Ze.openBookmark,onRetryProjects:()=>void x(),onRetryBookmarks:()=>void ke()}}),(0,K.jsxs)(`main`,{id:`main`,tabIndex:-1,className:`flex min-w-0 flex-1 flex-col outline-none`,children:[(0,K.jsx)(rC,{model:{mobileNavigationOpen:M,sidebarCollapsed:ee,route:Qe,shortcutHintVisible:!P,sessionBackHintVisible:rt,resumeSession:it,sessionCopyNotice:ae,liveNotice:Xe,scanStatusVisible:R.mode===`root`,sessionLoadNotice:at},actions:{onOpenMobileNavigation:()=>N(!0),onExpandSidebar:()=>ne(!1),onDismissShortcutHint:F,onRetrySessionLoad:()=>void S()}}),(0,K.jsx)(iC,{locationPath:E.pathname,mode:R.mode,searchActive:be,sessionCount:s.length,children:U})]})]}),(0,K.jsx)(gS,{open:O,onClose:()=>k(!1)}),(0,K.jsx)(So,{target:Ze.target,onClose:Ze.close,onSave:Ze.save,onRemove:Ze.remove})]})})}function SC(){Pn();let e=mr(),t=xr(e)?`${e.status} ${e.statusText}`:W(`The application route failed to render.`);return(0,K.jsx)(`div`,{role:`alert`,children:t})}var CC=sr([{id:`app-shell`,path:`/`,Component:xC,ErrorBoundary:SC,loader:Do,children:To}]);function wC(){return(0,K.jsx)(ri,{router:CC})}Ir.createRoot(document.getElementById(`root`)).render((0,K.jsx)(G.StrictMode,{children:(0,K.jsx)(Bt,{client:ti,children:(0,K.jsx)(Mo,{children:(0,K.jsx)(Yr,{id:`App`,children:(0,K.jsx)(wC,{})})})})}));export{bc as $,pu as A,Du as B,ru as C,su as D,ou as E,xu as F,jc as G,Wc as H,Cu as I,Oc as J,Tc as K,wu as L,vu as M,yu as N,cu as O,bu as P,Ac as Q,Tu as R,nu as S,au as T,Hc as U,Ou as V,Ic as W,Fc as X,wc as Y,xc as Z,Zl as _,zl as a,Dc as at,eu as b,Hl as c,Wo as ct,Gl as d,qr as dt,Mc as et,Kl as f,Xl as g,Yl as h,Rl as i,Ec as it,gu as j,lu as k,Ul as l,Yr as lt,Jl as m,_S as n,yc as nt,Bl as o,Vs as ot,ql as p,Sc as q,ju as r,Cc as rt,Vl as s,gs as st,$S as t,kc as tt,Wl as u,Wr as ut,Ql as v,iu as w,tu as x,$l as y,Eu as z};
|