@vitejs/devtools-vite 0.0.0-alpha.10 → 0.0.0-alpha.11
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/dist/index.d.ts +21 -10
- package/dist/index.js +30 -19
- package/dist/nitro.json +1 -1
- package/dist/public/200.html +1 -1
- package/dist/public/404.html +1 -1
- package/dist/public/_nuxt/BEtueeHN.js +1 -0
- package/dist/public/_nuxt/{BkcJ9YuP.js → CBa98m2O.js} +1 -1
- package/dist/public/_nuxt/{D7AVRXB9.js → CRsFizRX.js} +1 -1
- package/dist/public/_nuxt/{BWDYSEh7.js → DqBpHZ7Y.js} +2 -2
- package/dist/public/_nuxt/builds/latest.json +1 -1
- package/dist/public/_nuxt/builds/meta/1a94e2d7-5f0c-42d1-b6c2-f70865b42be5.json +1 -0
- package/dist/public/_nuxt/{entry.CxcRHwcK.css → entry.BkLl46Cr.css} +1 -1
- package/dist/public/index.html +1 -1
- package/package.json +3 -3
- package/dist/public/_nuxt/DP5rIU2b.js +0 -1
- package/dist/public/_nuxt/builds/meta/a75cfc75-2758-4449-8135-5151dc9f3c34.json +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -32,10 +32,25 @@ interface DevToolsViewHost {
|
|
|
32
32
|
*/
|
|
33
33
|
hostStatic: (baseUrl: string, distDir: string) => void;
|
|
34
34
|
}
|
|
35
|
+
type DevToolsDockEntryCategory = 'app' | 'framework' | 'web' | 'advanced' | 'default';
|
|
35
36
|
interface DevToolsDockEntryBase {
|
|
36
37
|
id: string;
|
|
37
38
|
title: string;
|
|
38
|
-
icon: string
|
|
39
|
+
icon: string | {
|
|
40
|
+
light: string;
|
|
41
|
+
dark: string;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* The default order of the entry in the dock.
|
|
45
|
+
* The higher the number the earlier it appears.
|
|
46
|
+
* @default 0
|
|
47
|
+
*/
|
|
48
|
+
defaultOrder?: number;
|
|
49
|
+
/**
|
|
50
|
+
* The category of the entry
|
|
51
|
+
* @default 'default'
|
|
52
|
+
*/
|
|
53
|
+
category?: DevToolsDockEntryCategory;
|
|
39
54
|
}
|
|
40
55
|
interface ClientScriptEntry {
|
|
41
56
|
/**
|
|
@@ -59,23 +74,19 @@ interface DevToolsViewIframe extends DevToolsDockEntryBase {
|
|
|
59
74
|
*/
|
|
60
75
|
frameId?: string;
|
|
61
76
|
/**
|
|
62
|
-
* Optional script to import into the iframe
|
|
77
|
+
* Optional client script to import into the iframe
|
|
63
78
|
*/
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
interface DevToolsViewWebComponent extends DevToolsDockEntryBase {
|
|
67
|
-
type: 'webcomponent';
|
|
68
|
-
import: ClientScriptEntry;
|
|
79
|
+
clientScript?: ClientScriptEntry;
|
|
69
80
|
}
|
|
70
81
|
interface DevToolsViewAction extends DevToolsDockEntryBase {
|
|
71
82
|
type: 'action';
|
|
72
|
-
|
|
83
|
+
action: ClientScriptEntry;
|
|
73
84
|
}
|
|
74
85
|
interface DevToolsViewCustomRender extends DevToolsDockEntryBase {
|
|
75
86
|
type: 'custom-render';
|
|
76
|
-
|
|
87
|
+
renderer: ClientScriptEntry;
|
|
77
88
|
}
|
|
78
|
-
type DevToolsDockEntry = DevToolsViewIframe |
|
|
89
|
+
type DevToolsDockEntry = DevToolsViewIframe | DevToolsViewAction | DevToolsViewCustomRender;
|
|
79
90
|
//#endregion
|
|
80
91
|
//#region ../kit/src/types/vite-plugin.d.ts
|
|
81
92
|
interface DevToolsCapabilities {
|
package/dist/index.js
CHANGED
|
@@ -785,6 +785,29 @@ async function parseJsonStreamWithConcatArrays(stream, processor) {
|
|
|
785
785
|
return values$1;
|
|
786
786
|
}
|
|
787
787
|
|
|
788
|
+
//#endregion
|
|
789
|
+
//#region src/node/utils/chunk.ts
|
|
790
|
+
function getInitialChunkIds(chunks) {
|
|
791
|
+
const chunkMap = new Map(chunks.map((chunk) => [chunk.chunk_id, chunk]));
|
|
792
|
+
const entryChunkIds = chunks.filter((chunk) => !!chunk.is_user_defined_entry).map((chunk) => chunk.chunk_id);
|
|
793
|
+
const visited = /* @__PURE__ */ new Set();
|
|
794
|
+
const initialChunkIds = new Set(entryChunkIds);
|
|
795
|
+
const queue = [...entryChunkIds];
|
|
796
|
+
while (queue.length > 0) {
|
|
797
|
+
const chunkId = queue.shift();
|
|
798
|
+
if (visited.has(chunkId)) continue;
|
|
799
|
+
visited.add(chunkId);
|
|
800
|
+
const chunk = chunkMap.get(chunkId);
|
|
801
|
+
if (chunk?.imports) {
|
|
802
|
+
for (const _import of chunk.imports) if (!initialChunkIds.has(_import.chunk_id)) {
|
|
803
|
+
initialChunkIds.add(_import.chunk_id);
|
|
804
|
+
queue.push(_import.chunk_id);
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
return initialChunkIds;
|
|
809
|
+
}
|
|
810
|
+
|
|
788
811
|
//#endregion
|
|
789
812
|
//#region src/node/utils/format.ts
|
|
790
813
|
function getContentByteSize(content) {
|
|
@@ -913,7 +936,11 @@ var RolldownEventsManager = class {
|
|
|
913
936
|
return;
|
|
914
937
|
}
|
|
915
938
|
if (event.action === "ChunkGraphReady") {
|
|
916
|
-
|
|
939
|
+
const initialChunkIds = getInitialChunkIds(event.chunks);
|
|
940
|
+
for (const chunk of event.chunks) this.chunks.set(chunk.chunk_id, {
|
|
941
|
+
...chunk,
|
|
942
|
+
is_initial: initialChunkIds.has(chunk.chunk_id)
|
|
943
|
+
});
|
|
917
944
|
return;
|
|
918
945
|
}
|
|
919
946
|
this.interpretSourceRefs(event, "content");
|
|
@@ -1400,23 +1427,7 @@ const rolldownGetSessionCompareSummary = defineRpcFunction({
|
|
|
1400
1427
|
const _reader = reader[index];
|
|
1401
1428
|
const assets = Array.from(_reader.manager.assets.values());
|
|
1402
1429
|
const chunks = Array.from(_reader.manager.chunks.values());
|
|
1403
|
-
|
|
1404
|
-
const initialChunkIds$1 = [];
|
|
1405
|
-
for (const chunkId of chunkIds) {
|
|
1406
|
-
if (visited.has(chunkId)) continue;
|
|
1407
|
-
visited.add(chunkId);
|
|
1408
|
-
const chunk = chunks.find((c) => c.chunk_id === chunkId);
|
|
1409
|
-
if (chunk?.imports) {
|
|
1410
|
-
const importChunkIds = chunk.imports.map((imp) => imp.chunk_id);
|
|
1411
|
-
initialChunkIds$1.push(...importChunkIds);
|
|
1412
|
-
const nestedImports = getInitialChunkIds(importChunkIds, visited);
|
|
1413
|
-
initialChunkIds$1.push(...nestedImports);
|
|
1414
|
-
}
|
|
1415
|
-
}
|
|
1416
|
-
return initialChunkIds$1;
|
|
1417
|
-
}
|
|
1418
|
-
const entryChunkIds = chunks.filter((chunk) => !!chunk.is_user_defined_entry).map((chunk) => chunk.chunk_id);
|
|
1419
|
-
const initialChunkIds = [...new Set([...entryChunkIds, ...getInitialChunkIds(entryChunkIds)])];
|
|
1430
|
+
const initialChunkIds = chunks.filter((chunk) => chunk.is_initial).map((chunk) => chunk.chunk_id);
|
|
1420
1431
|
return {
|
|
1421
1432
|
id: s,
|
|
1422
1433
|
meta: _reader.meta,
|
|
@@ -1496,7 +1507,7 @@ function DevToolsViteUI() {
|
|
|
1496
1507
|
ctx.docks.register({
|
|
1497
1508
|
id: "vite",
|
|
1498
1509
|
title: "Vite",
|
|
1499
|
-
icon: "
|
|
1510
|
+
icon: "builtin:vite-plus-core",
|
|
1500
1511
|
type: "iframe",
|
|
1501
1512
|
url: "/.devtools-vite/"
|
|
1502
1513
|
});
|
package/dist/nitro.json
CHANGED
package/dist/public/200.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/.devtools-vite/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/.devtools-vite/_nuxt/DqBpHZ7Y.js"}}</script><title>Vite DevTools</title><link rel="stylesheet" href="/.devtools-vite/_nuxt/entry.BkLl46Cr.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/.devtools-vite/_nuxt/DqBpHZ7Y.js"><link rel="prefetch" as="style" crossorigin href="/.devtools-vite/_nuxt/error-404.CCdr3eE4.css"><link rel="prefetch" as="script" crossorigin href="/.devtools-vite/_nuxt/D-ZnEyqr.js"><link rel="prefetch" as="script" crossorigin href="/.devtools-vite/_nuxt/Jdu9jmuG.js"><link rel="prefetch" as="style" crossorigin href="/.devtools-vite/_nuxt/error-500.D-vBsHK_.css"><link rel="prefetch" as="script" crossorigin href="/.devtools-vite/_nuxt/AuXMpmu_.js"><meta name="description" content="DevTools for Vite"><meta property="og:title" content="Vite DevTools"><meta property="og:description" content="DevTools for Vite"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><script type="module" src="/.devtools-vite/_nuxt/DqBpHZ7Y.js" crossorigin></script><script id="unhead:payload" type="application/json">{"title":"Vite DevTools"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1762332433245,false]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/.devtools-vite/",buildId:"1a94e2d7-5f0c-42d1-b6c2-f70865b42be5",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/public/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/.devtools-vite/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/.devtools-vite/_nuxt/DqBpHZ7Y.js"}}</script><title>Vite DevTools</title><link rel="stylesheet" href="/.devtools-vite/_nuxt/entry.BkLl46Cr.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/.devtools-vite/_nuxt/DqBpHZ7Y.js"><link rel="prefetch" as="style" crossorigin href="/.devtools-vite/_nuxt/error-404.CCdr3eE4.css"><link rel="prefetch" as="script" crossorigin href="/.devtools-vite/_nuxt/D-ZnEyqr.js"><link rel="prefetch" as="script" crossorigin href="/.devtools-vite/_nuxt/Jdu9jmuG.js"><link rel="prefetch" as="style" crossorigin href="/.devtools-vite/_nuxt/error-500.D-vBsHK_.css"><link rel="prefetch" as="script" crossorigin href="/.devtools-vite/_nuxt/AuXMpmu_.js"><meta name="description" content="DevTools for Vite"><meta property="og:title" content="Vite DevTools"><meta property="og:description" content="DevTools for Vite"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><script type="module" src="/.devtools-vite/_nuxt/DqBpHZ7Y.js" crossorigin></script><script id="unhead:payload" type="application/json">{"title":"Vite DevTools"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1762332433246,false]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/.devtools-vite/",buildId:"1a94e2d7-5f0c-42d1-b6c2-f70865b42be5",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Tt as e,Vt as t,W as n,c as r,ct as i,en as a,ft as o,in as s,it as c,kt as l,lt as u,mt as d,ot as f,pt as p,st as m,tn as h,ut as g,x as _,xt as v,y}from"#entry";import{t as b}from"./Jdu9jmuG.js";import"./DQtLZa7C.js";import"./B_mZ82Ef.js";import"./2OALqkc2.js";import{r as x}from"./DL1ysgP5.js";import{t as S}from"./Cql2HFZJ.js";import"./Bs1eUuZt.js";import{t as C}from"./CRsFizRX.js";import{t as w}from"./LMGHh3hZ.js";import{t as T}from"./DcamI1aQ.js";var E={op50:``,"font-mono":``,w12:``},D=[`title`],O={flex:`~ gap-1 items-center`},k=d({__name:`Graph`,props:{session:{},chunks:{}},setup(r){let c=r,l=f(()=>c.chunks),d=n();return w({modules:l,spacing:{width:450,height:55,linkOffset:15,margin:120,gap:150},generateGraph:e=>{let{isFirstCalculateGraph:t,scale:n,spacing:r,tree:i,hierarchy:o,collapsedNodes:s,container:c,modulesMap:u,nodes:d,links:f,nodesMap:p,linksMap:m,width:h,height:g,childToParentMap:_}=e;return()=>{h.value=window.innerWidth,g.value=window.innerHeight;let e=l.value.filter(e=>e.reason===`entry`),y=new Set,b=o({module:{id:`~root`}},n=>`${n.module?.id}`==`~root`?(e.forEach(e=>{y.add(e),t.value&&_.set(e.id,`~root`)}),e.map(e=>({module:e,expanded:!s.has(e.id),hasChildren:!1}))):s.has(`${n.module?.id}`)?[]:n.module.imports?.map(e=>{let r=u.value.get(`${e.chunk_id}`);if(!(!r||y.has(r)))return t.value&&_.set(r.id,n.module.id),y.add(r),{module:r,expanded:!s.has(r.id),hasChildren:!1}}).filter(e=>e!==void 0));t.value&&=!1,i().nodeSize([a(r.height),a(r.width)+a(r.gap)])(b);let x=b.descendants();for(let e of x)[e.x,e.y]=[e.y-a(r.width),e.x];let S=Math.min(...x.map(e=>e.x)),C=Math.min(...x.map(e=>e.y));if(S<a(r.margin))for(let e of x)e.x+=Math.abs(S)+a(r.margin);if(C<a(r.margin))for(let e of x)e.y+=Math.abs(C)+a(r.margin);d.value=x,p.clear();for(let e of x)p.set(`${e.data.module.id}`,e);let w=b.links().filter(e=>`${e.source.data.module.id}`!=`~root`).map(e=>({...e,id:`${e.source.data.module.id}|${e.target.data.module.id}`})),T=l.value.flatMap(e=>e.imports.filter(t=>!w.find(n=>n.id===`${e.chunk_id}|${t.chunk_id}`)).map(t=>({source:p.get(`${e.chunk_id}`),target:p.get(`${t.chunk_id}`),id:`${e.chunk_id}|${t.chunk_id}`}))),E=[...w,...T];m.clear();for(let e of E)m.set(e.id,e);f.value=E,v(()=>{h.value=c.value.scrollWidth/n.value+a(r.margin),g.value=c.value.scrollHeight/n.value+a(r.margin)})}}}),(n,c)=>{let f=x,h=b,g=T;return e(),i(g,{session:r.session,modules:l.value,"expand-controls":!1},{default:t(({node:n})=>[p(h,{class:`flex items-center`,to:{path:a(d).path,query:{chunk:n.data.module.chunk_id}}},{default:t(()=>[m(`span`,E,`#`+s(n.data.module.id),1),m(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${n.data.module.id}`},[m(`div`,null,s(n.data.module.name||`[unnamed]`),1),p(f,{text:n.data.module.reason},null,8,[`text`]),n.data.module.is_initial?(e(),i(f,{key:0,text:`initial`})):u(``,!0)],8,D),c[1]||=m(`div`,{"flex-auto":``},null,-1),m(`div`,O,[c[0]||=m(`div`,{"i-ph-package-duotone":``},null,-1),o(` `+s(n.data.module.modules.length),1)])]),_:2},1032,[`to`])]),_:1},8,[`session`,`modules`])}}}),A=Object.assign(k,{__name:`ChunksGraph`}),j={key:1,relative:``,"max-h-screen":``,"of-hidden":``},M={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},N={flex:`~ gap-2 items-center`,p2:``,border:`~ base rounded-xl`,"bg-glass":``},P=[`onClick`],F={key:0,class:`px5 pt24 of-auto h-screen`,flex:`~ col gap-4`},I=d({__name:`chunks`,props:{session:{}},setup(t){let n=t,d=[{label:`List`,value:`list`,icon:`i-ph-list-bullets-duotone`},{label:`Graph`,value:`graph`,icon:`i-ph-graph-duotone`}],p=y(),{state:v,isLoading:b}=r(async()=>await p.value[`vite:rolldown:get-chunks-graph`]?.({session:n.session.id}),null),x=f(()=>v.value?.map(e=>({...e,id:`${e.chunk_id}`}))??[]);function w(e){S.value.chunkViewType=e}return(n,r)=>{let f=_,p=C,y=A;return a(b)?(e(),i(f,{key:0})):(e(),g(`div`,j,[m(`div`,M,[m(`div`,N,[r[0]||=m(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(e(),g(c,null,l(d,e=>m(`button`,{key:e.value,"btn-action":``,class:h(a(S).chunkViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>w(e.value)},[m(`div`,{class:h(e.icon)},null,2),o(` `+s(e.label),1)],10,P)),64))])]),a(S).chunkViewType===`list`?(e(),g(`div`,F,[(e(!0),g(c,null,l(a(v),n=>(e(),i(p,{key:n.id,border:`~ base rounded-lg`,p3:``,chunk:n,chunks:a(v),session:t.session},null,8,[`chunk`,`chunks`,`session`]))),128))])):a(S).chunkViewType===`graph`?(e(),i(y,{key:1,session:t.session,chunks:x.value},null,8,[`session`,`chunks`])):u(``,!0)]))}}});export{I as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{At as e,C as t,Ct as n,Dt as r,Ft as i,G as a,Ht as o,It as s,Jt as c,Lt as l,Mt as u,Nt as d,Qt as f,Rt as p,St as m,Tt as h,Vt as g,W as _,Wt as v,Xt as y,_t as b,a as x,b as S,bt as C,c as w,ct as T,dt as E,en as D,ft as O,ht as k,in as A,it as j,kt as M,l as ee,lt as N,m as P,mt as F,n as I,nt as te,o as L,ot as R,p as z,pt as B,qt as V,r as ne,rn as H,rt as re,st as U,tn as W,u as ie,ut as G,v as ae,vt as oe,w as se,wt as K,x as ce,xt as le,y as ue,yt as de,zt as fe}from"#entry";import{t as pe}from"./Jdu9jmuG.js";import{n as me,r as he}from"./DQtLZa7C.js";import{a as ge,c as _e,s as ve}from"./B_mZ82Ef.js";import{n as ye}from"./2OALqkc2.js";import{r as be,t as xe}from"./DL1ysgP5.js";import{t as Se}from"./CbzAqNxs.js";import"./DnpfwSMy.js";import{t as Ce}from"./SO3ppn9m.js";import{n as q,t as we}from"./ChaI2u-J.js";import{t as J}from"./X7aOo9pb.js";import{n as Te,r as Ee,t as Y}from"./Cql2HFZJ.js";import{t as De}from"./_hSlj5r4.js";import{t as Oe}from"./Bs1eUuZt.js";import{n as ke,t as Ae}from"./D7AVRXB9.js";import{n as je,r as Me}from"./LMGHh3hZ.js";import{t as Ne}from"./CIZ7KSXz.js";import{c as Pe,i as Fe,n as Ie,o as Le,r as Re,s as ze,t as Be}from"./BFwdTbGt.js";import{n as Ve,t as He}from"./B-LCQpq9.js";import{t as Ue}from"./mIZU4Om9.js";var We=Object.create,Ge=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,qe=Object.getOwnPropertyNames,Je=Object.getPrototypeOf,Ye=Object.prototype.hasOwnProperty,Xe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ze=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=qe(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Ye.call(e,s)&&s!==n&&Ge(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Ke(t,s))||r.enumerable});return e},Qe=(e,t,n)=>(n=e==null?{}:We(Je(e)),Ze(t||!e||!e.__esModule?Ge(n,`default`,{value:e,enumerable:!0}):n,e)),$e={border:`r y base rounded-r-xl`,flex:`~ col gap-1`,p1:``,"of-y-auto":``,"max-h-96vh":``,relative:``,"bg-glass":``,class:`fixed left-0 top-1/2 -translate-y-1/2`},et=F({__name:`SideNav`,setup(e){let t=R(()=>[...we.value,{title:`Toggle dark mode`,icon:`i-ph-sun-duotone dark:i-ph-moon-duotone`,action:I}]);return(e,n)=>{let r=u(`tooltip`);return h(),G(`div`,null,[U(`div`,$e,[(h(!0),G(j,null,M(t.value,e=>o((h(),T(d(e.to?D(pe):`button`),C({key:e.title,ref_for:!0},e.to?{to:e.to}:{},{title:e.title,"rounded-full":``,p2:``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,flex:`~ items-center justify-center`,"exact-active-class":`text-primary op100!`,onClick:t=>e.action?.()}),{default:g(()=>[U(`div`,{class:W(e.icon),"text-lg":``},null,2)]),_:2},1040,[`title`,`onClick`])),[[r,{placement:`right`,content:e.title}]])),128))])])}}}),tt=Object.assign(et,{__name:`PanelSideNav`}),nt={},rt={"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Close`};function it(e,t){return h(),G(`button`,rt,[...t[0]||=[U(`div`,{"i-ph-x":``},null,-1)]])}var X=Object.assign(t(nt,[[`render`,it]]),{__name:`DisplayCloseButton`}),at=new WeakMap,ot={mounted(e,t){let n=!t.modifiers.bubble,r;if(typeof t.value==`function`)r=x(e,t.value,{capture:n});else{let[i,a]=t.value;r=x(e,i,Object.assign({capture:n},a))}at.set(e,r)},unmounted(e){let t=at.get(e);t&&typeof t==`function`?t():t?.stop(),at.delete(e)}};function st(){let e=!1,t=y(!1);return(n,r)=>{if(t.value=r.value,e)return;e=!0;let i=P(n,r.value);p(t,e=>i.value=e)}}st();var ct={__name:`splitpanes`,props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:[`ready`,`resize`,`resized`,`pane-click`,`pane-maximize`,`pane-add`,`pane-remove`,`splitter-click`,`splitter-dblclick`],setup(e,{emit:t}){let i=t,a=e,o=s(),l=c([]),u=R(()=>l.value.reduce((e,t)=>(e[~~t.id]=t)&&e,{})),f=R(()=>l.value.length),g=c(null),_=c(!1),v=c({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),y=c({splitter:null,timeoutId:null}),x=R(()=>({[`splitpanes splitpanes--${a.horizontal?`horizontal`:`vertical`}`]:!0,"splitpanes--dragging":v.value.dragging})),S=()=>{document.addEventListener(`mousemove`,E,{passive:!1}),document.addEventListener(`mouseup`,D),`ontouchstart`in window&&(document.addEventListener(`touchmove`,E,{passive:!1}),document.addEventListener(`touchend`,D))},C=()=>{document.removeEventListener(`mousemove`,E,{passive:!1}),document.removeEventListener(`mouseup`,D),`ontouchstart`in window&&(document.removeEventListener(`touchmove`,E,{passive:!1}),document.removeEventListener(`touchend`,D))},w=(e,t)=>{let n=e.target.closest(`.splitpanes__splitter`);if(n){let{left:t,top:r}=n.getBoundingClientRect(),{clientX:i,clientY:o}=`ontouchstart`in window&&e.touches?e.touches[0]:e;v.value.cursorOffset=a.horizontal?o-r:i-t}S(),v.value.mouseDown=!0,v.value.activeSplitter=t},E=e=>{v.value.mouseDown&&(e.preventDefault(),v.value.dragging=!0,requestAnimationFrame(()=>{ee(j(e)),oe(`resize`,{event:e},!0)}))},D=e=>{v.value.dragging&&(window.getSelection().removeAllRanges(),oe(`resized`,{event:e},!0)),v.value.mouseDown=!1,v.value.activeSplitter=null,setTimeout(()=>{v.value.dragging=!1,C()},100)},O=(e,t)=>{`ontouchstart`in window&&(e.preventDefault(),y.value.splitter===t?(clearTimeout(y.value.timeoutId),y.value.timeoutId=null,k(e,t),y.value.splitter=null):(y.value.splitter=t,y.value.timeoutId=setTimeout(()=>y.value.splitter=null,500))),v.value.dragging||oe(`splitter-click`,{event:e,index:t},!0)},k=(e,t)=>{if(oe(`splitter-dblclick`,{event:e,index:t},!0),a.maximizePanes){let n=0;l.value=l.value.map((e,r)=>(e.size=r===t?e.max:e.min,r!==t&&(n+=e.min),e)),l.value[t].size-=n,oe(`pane-maximize`,{event:e,index:t,pane:l.value[t]}),oe(`resized`,{event:e,index:t},!0)}},A=(e,t)=>{oe(`pane-click`,{event:e,index:u.value[t].index,pane:u.value[t]})},j=e=>{let t=g.value.getBoundingClientRect(),{clientX:n,clientY:r}=`ontouchstart`in window&&e.touches?e.touches[0]:e;return{x:n-(a.horizontal?0:v.value.cursorOffset)-t.left,y:r-(a.horizontal?v.value.cursorOffset:0)-t.top}},M=e=>{e=e[a.horizontal?`y`:`x`];let t=g.value[a.horizontal?`clientHeight`:`clientWidth`];return a.rtl&&!a.horizontal&&(e=t-e),e*100/t},ee=e=>{let t=v.value.activeSplitter,n={prevPanesSize:P(t),nextPanesSize:F(t),prevReachedMinPanes:0,nextReachedMinPanes:0},r=0+(a.pushOtherPanes?0:n.prevPanesSize),i=100-(a.pushOtherPanes?0:n.nextPanesSize),o=Math.max(Math.min(M(e),i),r),s=[t,t+1],c=l.value[s[0]]||null,u=l.value[s[1]]||null,d=c.max<100&&o>=c.max+n.prevPanesSize,f=u.max<100&&o<=100-(u.max+F(t+1));if(d||f){d?(c.size=c.max,u.size=Math.max(100-c.max-n.prevPanesSize-n.nextPanesSize,0)):(c.size=Math.max(100-u.max-n.prevPanesSize-F(t+1),0),u.size=u.max);return}if(a.pushOtherPanes){let e=N(n,o);if(!e)return;({sums:n,panesToResize:s}=e),c=l.value[s[0]]||null,u=l.value[s[1]]||null}c!==null&&(c.size=Math.min(Math.max(o-n.prevPanesSize-n.prevReachedMinPanes,c.min),c.max)),u!==null&&(u.size=Math.min(Math.max(100-o-n.nextPanesSize-n.nextReachedMinPanes,u.min),u.max))},N=(e,t)=>{let n=v.value.activeSplitter,r=[n,n+1];return t<e.prevPanesSize+l.value[r[0]].min&&(r[0]=I(n).index,e.prevReachedMinPanes=0,r[0]<n&&l.value.forEach((t,i)=>{i>r[0]&&i<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),e.prevPanesSize=P(r[0]),r[0]===void 0)?(e.prevReachedMinPanes=0,l.value[0].size=l.value[0].min,l.value.forEach((t,r)=>{r>0&&r<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),l.value[r[1]].size=100-e.prevReachedMinPanes-l.value[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-l.value[r[1]].min&&(r[1]=te(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&l.value.forEach((t,i)=>{i>n&&i<r[1]&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),e.nextPanesSize=F(r[1]-1),r[1]===void 0)?(e.nextReachedMinPanes=0,l.value.forEach((t,r)=>{r<f.value-1&&r>=n+1&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),l.value[r[0]].size=100-e.prevPanesSize-F(r[0]-1),null):{sums:e,panesToResize:r}},P=e=>l.value.reduce((t,n,r)=>t+(r<e?n.size:0),0),F=e=>l.value.reduce((t,n,r)=>t+(r>e+1?n.size:0),0),I=e=>[...l.value].reverse().find(t=>t.index<e&&t.size>t.min)||{},te=e=>l.value.find(t=>t.index>e+1&&t.size>t.min)||{},L=()=>{let e=Array.from(g.value?.children||[]);for(let t of e){let e=t.classList.contains(`splitpanes__pane`),n=t.classList.contains(`splitpanes__splitter`);!e&&!n&&(t.remove(),console.warn(`Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.`))}},z=(e,t,n=!1)=>{let r=e-1,i=document.createElement(`div`);i.classList.add(`splitpanes__splitter`),n||(i.onmousedown=e=>w(e,r),typeof window<`u`&&`ontouchstart`in window&&(i.ontouchstart=e=>w(e,r)),i.onclick=e=>O(e,r+1)),i.ondblclick=e=>k(e,r+1),t.parentNode.insertBefore(i,t)},B=e=>{e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.remove()},V=()=>{let e=Array.from(g.value?.children||[]);for(let t of e)t.className.includes(`splitpanes__splitter`)&&B(t);let t=0;for(let n of e)n.className.includes(`splitpanes__pane`)&&(!t&&a.firstSplitter?z(t,n,!0):t&&z(t,n),t++)},ne=({uid:e,...t})=>{let n=u.value[e];for(let[e,r]of Object.entries(t))n[e]=r},H=e=>{let t=-1;Array.from(g.value?.children||[]).some(n=>(n.className.includes(`splitpanes__pane`)&&t++,n.isSameNode(e.el))),l.value.splice(t,0,{...e,index:t}),l.value.forEach((e,t)=>e.index=t),_.value&&le(()=>{V(),U({addedPane:l.value[t]}),oe(`pane-add`,{pane:l.value[t]})})},re=e=>{let t=l.value.findIndex(t=>t.id===e);l.value[t].el=null;let n=l.value.splice(t,1)[0];l.value.forEach((e,t)=>e.index=t),le(()=>{V(),oe(`pane-remove`,{pane:n}),U({removedPane:{...n}})})},U=(e={})=>{!e.addedPane&&!e.removedPane?ie():l.value.some(e=>e.givenSize!==null||e.min||e.max<100)?G(e):W(),_.value&&oe(`resized`)},W=()=>{let e=100/f.value,t=0,n=[],r=[];for(let i of l.value)i.size=Math.max(Math.min(e,i.max),i.min),t-=i.size,i.size>=i.max&&n.push(i.id),i.size<=i.min&&r.push(i.id);t>.1&&ae(t,n,r)},ie=()=>{let e=100,t=[],n=[],r=0;for(let i of l.value)e-=i.size,i.givenSize!==null&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id);let i=100;if(e>.1){for(let t of l.value)t.givenSize===null&&(t.size=Math.max(Math.min(e/(f.value-r),t.max),t.min)),i-=t.size;i>.1&&ae(i,t,n)}},G=({addedPane:e,removedPane:t}={})=>{let n=100/f.value,r=0,i=[],a=[];(e?.givenSize??null)!==null&&(n=(100-e.givenSize)/(f.value-1));for(let e of l.value)r-=e.size,e.size>=e.max&&i.push(e.id),e.size<=e.min&&a.push(e.id);if(!(Math.abs(r)<.1)){for(let t of l.value)e?.givenSize!==null&&e?.id===t.id||(t.size=Math.max(Math.min(n,t.max),t.min)),r-=t.size,t.size>=t.max&&i.push(t.id),t.size<=t.min&&a.push(t.id);r>.1&&ae(r,i,a)}},ae=(e,t,n)=>{let r;r=e>0?e/(f.value-t.length):e/(f.value-n.length),l.value.forEach((i,a)=>{if(e>0&&!t.includes(i.id)){let t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}else if(!n.includes(i.id)){let t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}}),Math.abs(e)>.1&&le(()=>{_.value&&console.warn(`Splitpanes: Could not resize panes correctly due to their constraints.`)})},oe=(e,t=void 0,n=!1)=>{let r=t?.index??v.value.activeSplitter??null;i(e,{...t,...r!==null&&{index:r},...n&&r!==null&&{prevPane:l.value[r-(a.firstSplitter?1:0)],nextPane:l.value[r+(a.firstSplitter?0:1)]},panes:l.value.map(e=>({min:e.min,max:e.max,size:e.size}))})};p(()=>a.firstSplitter,()=>V()),n(()=>{L(),V(),U(),oe(`ready`),_.value=!0}),m(()=>_.value=!1);let se=()=>b(`div`,{ref:g,class:x.value},o.default?.call(o));return r(`panes`,l),r(`indexedPanes`,u),r(`horizontal`,R(()=>a.horizontal)),r(`requestUpdate`,ne),r(`onPaneAdd`,H),r(`onPaneRemove`,re),r(`onPaneClick`,A),(e,t)=>(h(),T(d(se)))}},lt={__name:`pane`,props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(t){let r=t,i=oe(`requestUpdate`),a=oe(`onPaneAdd`),o=oe(`horizontal`),s=oe(`onPaneRemove`),l=oe(`onPaneClick`),u=k()?.uid,d=oe(`indexedPanes`),f=R(()=>d.value[u]),g=c(null),_=R(()=>{let e=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(e,y.value),v.value)}),v=R(()=>{let e=parseFloat(r.minSize);return isNaN(e)?0:e}),y=R(()=>{let e=parseFloat(r.maxSize);return isNaN(e)?100:e}),b=R(()=>`${o.value?`height`:`width`}: ${f.value?.size}%`);return p(()=>_.value,e=>i({uid:u,size:e})),p(()=>v.value,e=>i({uid:u,min:e})),p(()=>y.value,e=>i({uid:u,max:e})),n(()=>{a({id:u,el:g.value,min:v.value,max:y.value,givenSize:r.size===void 0?null:_.value,size:_.value})}),m(()=>s(u)),(t,n)=>(h(),G(`div`,{ref_key:`paneEl`,ref:g,class:`splitpanes__pane`,onClick:n[0]||=e=>D(l)(e,t._.uid),style:H(b.value)},[e(t.$slots,`default`)],4))}},ut=[`title`],dt=F({__name:`IconButton`,props:{title:{},classIcon:{},active:{type:Boolean}},setup(t){let n=t;return(t,r)=>(h(),G(`button`,{"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,class:W(n.active?`bg-active op90 text-green-400`:``),hover:`bg-active op100`,op50:``,title:n.title},[e(t.$slots,`default`,{},()=>[U(`div`,{class:W(n.classIcon)},null,2)])],10,ut))}}),Z=Object.assign(dt,{__name:`DisplayIconButton`}),Q=Xe(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self,n.CodeMirror=r())})(e,(function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),a=/Edge\/(\d+)/.exec(e),o=r||i||a,s=o&&(r?document.documentMode||6:+(a||i)[1]),c=!a&&/WebKit\//.test(e),l=c&&/Qt\/\d+\.\d+/.test(e),u=!a&&/Chrome\/(\d+)/.exec(e),d=u&&+u[1],f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),m=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),g=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),_=/Android/.test(e),v=g||_||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),x=/win/i.test(t),S=f&&e.match(/Version\/(\d*\.\d*)/);S&&=Number(S[1]),S&&S>=15&&(f=!1,c=!0);var C=y&&(l||f&&(S==null||S<12.11)),w=n||o&&s>=9;function T(e){return RegExp(`(^|\\s)`+e+`(?:$|\\s)\\s*`)}var E=function(e,t){var n=e.className,r=T(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:``)}};function D(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return D(e).appendChild(t)}function k(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t==`string`)i.appendChild(document.createTextNode(t));else if(t)for(var a=0;a<t.length;++a)i.appendChild(t[a]);return i}function A(e,t,n,r){var i=k(e,t,n,r);return i.setAttribute(`role`,`presentation`),i}var j=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd(`character`,n),r.moveStart(`character`,t),r};function M(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function ee(e){var t=e.ownerDocument||e,n;try{n=e.activeElement}catch{n=t.body||null}for(;n&&n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}function N(e,t){var n=e.className;T(t).test(n)||(e.className+=(n?` `:``)+t)}function P(e,t){for(var n=e.split(` `),r=0;r<n.length;r++)n[r]&&!T(n[r]).test(t)&&(t+=` `+n[r]);return t}var F=function(e){e.select()};g?F=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:o&&(F=function(e){try{e.select()}catch{}});function I(e){return e.display.wrapper.ownerDocument}function te(e){return L(e.display.wrapper)}function L(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function R(e){return I(e).defaultView}function z(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function B(e,t,n){for(var r in t||={},e)e.hasOwnProperty(r)&&(n!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function V(e,t,n,r,i){t??(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var a=r||0,o=i||0;;){var s=e.indexOf(` `,a);if(s<0||s>=t)return o+(t-a);o+=s-a,o+=n-o%n,a=s+1}}var ne=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};ne.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ne.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};function H(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}var re=50,U={toString:function(){return`CodeMirror.Pass`}},W={scroll:!1},ie={origin:`*mouse`},G={origin:`+move`};function ae(e,t,n){for(var r=0,i=0;;){var a=e.indexOf(` `,r);a==-1&&(a=e.length);var o=a-r;if(a==e.length||i+o>=t)return r+Math.min(o,t-i);if(i+=a-r,i+=n-i%n,r=a+1,i>=t)return r}}var oe=[``];function se(e){for(;oe.length<=e;)oe.push(K(oe)+` `);return oe[e]}function K(e){return e[e.length-1]}function ce(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function le(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function ue(){}function de(e,t){var n;return Object.create?n=Object.create(e):(ue.prototype=e,n=new ue),t&&B(t,n),n}var fe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function pe(e){return/\w/.test(e)||e>``&&(e.toUpperCase()!=e.toLowerCase()||fe.test(e))}function me(e,t){return t?t.source.indexOf(`\\w`)>-1&&pe(e)?!0:t.test(e):pe(e)}function he(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ge=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function _e(e){return e.charCodeAt(0)>=768&&ge.test(e)}function ve(e,t,n){for(;(n<0?t>0:t<e.length)&&_e(e.charAt(t));)t+=n;return t}function ye(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,a=r<0?Math.ceil(i):Math.floor(i);if(a==t)return e(a)?t:n;e(a)?n=a:t=a+r}}function be(e,t,n,r){if(!e)return r(t,n,`ltr`,0);for(var i=!1,a=0;a<e.length;++a){var o=e[a];(o.from<n&&o.to>t||t==n&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,n),o.level==1?`rtl`:`ltr`,a),i=!0)}i||r(t,n,`ltr`)}var xe=null;function Se(e,t,n){var r;xe=null;for(var i=0;i<e.length;++i){var a=e[i];if(a.from<t&&a.to>t)return i;a.to==t&&(a.from!=a.to&&n==`before`?r=i:xe=i),a.from==t&&(a.from!=a.to&&n!=`before`?r=i:xe=i)}return r??xe}var Ce=(function(){var e=`bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN`,t=`nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111`;function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?`R`:1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?`r`:8192<=n&&n<=8203?`w`:n==8204?`b`:`L`}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,o=/[Lb1n]/,s=/[1n]/;function c(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var l=t==`ltr`?`L`:`R`;if(e.length==0||t==`ltr`&&!r.test(e))return!1;for(var u=e.length,d=[],f=0;f<u;++f)d.push(n(e.charCodeAt(f)));for(var p=0,m=l;p<u;++p){var h=d[p];h==`m`?d[p]=m:m=h}for(var g=0,_=l;g<u;++g){var v=d[g];v==`1`&&_==`r`?d[g]=`n`:a.test(v)&&(_=v,v==`r`&&(d[g]=`R`))}for(var y=1,b=d[0];y<u-1;++y){var x=d[y];x==`+`&&b==`1`&&d[y+1]==`1`?d[y]=`1`:x==`,`&&b==d[y+1]&&(b==`1`||b==`n`)&&(d[y]=b),b=x}for(var S=0;S<u;++S){var C=d[S];if(C==`,`)d[S]=`N`;else if(C==`%`){var w=void 0;for(w=S+1;w<u&&d[w]==`%`;++w);for(var T=S&&d[S-1]==`!`||w<u&&d[w]==`1`?`1`:`N`,E=S;E<w;++E)d[E]=T;S=w-1}}for(var D=0,O=l;D<u;++D){var k=d[D];O==`L`&&k==`1`?d[D]=`L`:a.test(k)&&(O=k)}for(var A=0;A<u;++A)if(i.test(d[A])){var j=void 0;for(j=A+1;j<u&&i.test(d[j]);++j);for(var M=(A?d[A-1]:l)==`L`,ee=M==((j<u?d[j]:l)==`L`)?M?`L`:`R`:l,N=A;N<j;++N)d[N]=ee;A=j-1}for(var P=[],F,I=0;I<u;)if(o.test(d[I])){var te=I;for(++I;I<u&&o.test(d[I]);++I);P.push(new c(0,te,I))}else{var L=I,R=P.length,z=t==`rtl`?1:0;for(++I;I<u&&d[I]!=`L`;++I);for(var B=L;B<I;)if(s.test(d[B])){L<B&&(P.splice(R,0,new c(1,L,B)),R+=z);var V=B;for(++B;B<I&&s.test(d[B]);++B);P.splice(R,0,new c(2,V,B)),R+=z,L=B}else ++B;L<I&&P.splice(R,0,new c(1,L,I))}return t==`ltr`&&(P[0].level==1&&(F=e.match(/^\s+/))&&(P[0].from=F[0].length,P.unshift(new c(0,0,F[0].length))),K(P).level==1&&(F=e.match(/\s+$/))&&(K(P).to-=F[0].length,P.push(new c(0,u-F[0].length,u)))),t==`rtl`?P.reverse():P}})();function q(e,t){var n=e.order;return n??=e.order=Ce(e.text,t),n}var we=[],J=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent(`on`+t,n);else{var r=e._handlers||={};r[t]=(r[t]||we).concat(n)}};function Te(e,t){return e._handlers&&e._handlers[t]||we}function Ee(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent(`on`+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var a=H(i,n);a>-1&&(r[t]=i.slice(0,a).concat(i.slice(a+1)))}}}function Y(e,t){var n=Te(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function De(e,t,n){return typeof t==`string`&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Y(e,n||t.type,e,t),Ne(t)||t.codemirrorIgnore}function Oe(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)H(n,t[r])==-1&&n.push(t[r])}function ke(e,t){return Te(e,t).length>0}function Ae(e){e.prototype.on=function(e,t){J(this,e,t)},e.prototype.off=function(e,t){Ee(this,e,t)}}function je(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Me(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ne(e){return e.defaultPrevented==null?e.returnValue==0:e.defaultPrevented}function Pe(e){je(e),Me(e)}function Fe(e){return e.target||e.srcElement}function Ie(e){var t=e.which;return t??(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),y&&e.ctrlKey&&t==1&&(t=3),t}var Le=function(){if(o&&s<9)return!1;var e=k(`div`);return`draggable`in e||`dragDrop`in e}(),Re;function ze(e){if(Re==null){var t=k(`span`,``);O(e,k(`span`,[t,document.createTextNode(`x`)])),e.firstChild.offsetHeight!=0&&(Re=t.offsetWidth<=1&&t.offsetHeight>2&&!(o&&s<8))}var n=Re?k(`span`,``):k(`span`,`\xA0`,null,`display: inline-block; width: 1px; margin-right: -1px`);return n.setAttribute(`cm-text`,``),n}var Be;function Ve(e){if(Be!=null)return Be;var t=O(e,document.createTextNode(`AخA`)),n=j(t,0,1).getBoundingClientRect(),r=j(t,1,2).getBoundingClientRect();return D(e),!n||n.left==n.right?!1:Be=r.right-n.right<3}var He=`
|
|
1
|
+
import{At as e,C as t,Ct as n,Dt as r,Ft as i,G as a,Ht as o,It as s,Jt as c,Lt as l,Mt as u,Nt as d,Qt as f,Rt as p,St as m,Tt as h,Vt as g,W as _,Wt as v,Xt as y,_t as b,a as x,b as S,bt as C,c as w,ct as T,dt as E,en as D,ft as O,ht as k,in as A,it as j,kt as M,l as ee,lt as N,m as P,mt as F,n as I,nt as te,o as L,ot as R,p as z,pt as B,qt as V,r as ne,rn as H,rt as re,st as U,tn as W,u as ie,ut as G,v as ae,vt as oe,w as se,wt as K,x as ce,xt as le,y as ue,yt as de,zt as fe}from"#entry";import{t as pe}from"./Jdu9jmuG.js";import{n as me,r as he}from"./DQtLZa7C.js";import{a as ge,c as _e,s as ve}from"./B_mZ82Ef.js";import{n as ye}from"./2OALqkc2.js";import{r as be,t as xe}from"./DL1ysgP5.js";import{t as Se}from"./CbzAqNxs.js";import"./DnpfwSMy.js";import{t as Ce}from"./SO3ppn9m.js";import{n as q,t as we}from"./ChaI2u-J.js";import{t as J}from"./X7aOo9pb.js";import{n as Te,r as Ee,t as Y}from"./Cql2HFZJ.js";import{t as De}from"./_hSlj5r4.js";import{t as Oe}from"./Bs1eUuZt.js";import{n as ke,t as Ae}from"./CRsFizRX.js";import{n as je,r as Me}from"./LMGHh3hZ.js";import{t as Ne}from"./CIZ7KSXz.js";import{c as Pe,i as Fe,n as Ie,o as Le,r as Re,s as ze,t as Be}from"./BFwdTbGt.js";import{n as Ve,t as He}from"./B-LCQpq9.js";import{t as Ue}from"./mIZU4Om9.js";var We=Object.create,Ge=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,qe=Object.getOwnPropertyNames,Je=Object.getPrototypeOf,Ye=Object.prototype.hasOwnProperty,Xe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ze=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=qe(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Ye.call(e,s)&&s!==n&&Ge(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Ke(t,s))||r.enumerable});return e},Qe=(e,t,n)=>(n=e==null?{}:We(Je(e)),Ze(t||!e||!e.__esModule?Ge(n,`default`,{value:e,enumerable:!0}):n,e)),$e={border:`r y base rounded-r-xl`,flex:`~ col gap-1`,p1:``,"of-y-auto":``,"max-h-96vh":``,relative:``,"bg-glass":``,class:`fixed left-0 top-1/2 -translate-y-1/2`},et=F({__name:`SideNav`,setup(e){let t=R(()=>[...we.value,{title:`Toggle dark mode`,icon:`i-ph-sun-duotone dark:i-ph-moon-duotone`,action:I}]);return(e,n)=>{let r=u(`tooltip`);return h(),G(`div`,null,[U(`div`,$e,[(h(!0),G(j,null,M(t.value,e=>o((h(),T(d(e.to?D(pe):`button`),C({key:e.title,ref_for:!0},e.to?{to:e.to}:{},{title:e.title,"rounded-full":``,p2:``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,flex:`~ items-center justify-center`,"exact-active-class":`text-primary op100!`,onClick:t=>e.action?.()}),{default:g(()=>[U(`div`,{class:W(e.icon),"text-lg":``},null,2)]),_:2},1040,[`title`,`onClick`])),[[r,{placement:`right`,content:e.title}]])),128))])])}}}),tt=Object.assign(et,{__name:`PanelSideNav`}),nt={},rt={"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Close`};function it(e,t){return h(),G(`button`,rt,[...t[0]||=[U(`div`,{"i-ph-x":``},null,-1)]])}var X=Object.assign(t(nt,[[`render`,it]]),{__name:`DisplayCloseButton`}),at=new WeakMap,ot={mounted(e,t){let n=!t.modifiers.bubble,r;if(typeof t.value==`function`)r=x(e,t.value,{capture:n});else{let[i,a]=t.value;r=x(e,i,Object.assign({capture:n},a))}at.set(e,r)},unmounted(e){let t=at.get(e);t&&typeof t==`function`?t():t?.stop(),at.delete(e)}};function st(){let e=!1,t=y(!1);return(n,r)=>{if(t.value=r.value,e)return;e=!0;let i=P(n,r.value);p(t,e=>i.value=e)}}st();var ct={__name:`splitpanes`,props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:[`ready`,`resize`,`resized`,`pane-click`,`pane-maximize`,`pane-add`,`pane-remove`,`splitter-click`,`splitter-dblclick`],setup(e,{emit:t}){let i=t,a=e,o=s(),l=c([]),u=R(()=>l.value.reduce((e,t)=>(e[~~t.id]=t)&&e,{})),f=R(()=>l.value.length),g=c(null),_=c(!1),v=c({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),y=c({splitter:null,timeoutId:null}),x=R(()=>({[`splitpanes splitpanes--${a.horizontal?`horizontal`:`vertical`}`]:!0,"splitpanes--dragging":v.value.dragging})),S=()=>{document.addEventListener(`mousemove`,E,{passive:!1}),document.addEventListener(`mouseup`,D),`ontouchstart`in window&&(document.addEventListener(`touchmove`,E,{passive:!1}),document.addEventListener(`touchend`,D))},C=()=>{document.removeEventListener(`mousemove`,E,{passive:!1}),document.removeEventListener(`mouseup`,D),`ontouchstart`in window&&(document.removeEventListener(`touchmove`,E,{passive:!1}),document.removeEventListener(`touchend`,D))},w=(e,t)=>{let n=e.target.closest(`.splitpanes__splitter`);if(n){let{left:t,top:r}=n.getBoundingClientRect(),{clientX:i,clientY:o}=`ontouchstart`in window&&e.touches?e.touches[0]:e;v.value.cursorOffset=a.horizontal?o-r:i-t}S(),v.value.mouseDown=!0,v.value.activeSplitter=t},E=e=>{v.value.mouseDown&&(e.preventDefault(),v.value.dragging=!0,requestAnimationFrame(()=>{ee(j(e)),oe(`resize`,{event:e},!0)}))},D=e=>{v.value.dragging&&(window.getSelection().removeAllRanges(),oe(`resized`,{event:e},!0)),v.value.mouseDown=!1,v.value.activeSplitter=null,setTimeout(()=>{v.value.dragging=!1,C()},100)},O=(e,t)=>{`ontouchstart`in window&&(e.preventDefault(),y.value.splitter===t?(clearTimeout(y.value.timeoutId),y.value.timeoutId=null,k(e,t),y.value.splitter=null):(y.value.splitter=t,y.value.timeoutId=setTimeout(()=>y.value.splitter=null,500))),v.value.dragging||oe(`splitter-click`,{event:e,index:t},!0)},k=(e,t)=>{if(oe(`splitter-dblclick`,{event:e,index:t},!0),a.maximizePanes){let n=0;l.value=l.value.map((e,r)=>(e.size=r===t?e.max:e.min,r!==t&&(n+=e.min),e)),l.value[t].size-=n,oe(`pane-maximize`,{event:e,index:t,pane:l.value[t]}),oe(`resized`,{event:e,index:t},!0)}},A=(e,t)=>{oe(`pane-click`,{event:e,index:u.value[t].index,pane:u.value[t]})},j=e=>{let t=g.value.getBoundingClientRect(),{clientX:n,clientY:r}=`ontouchstart`in window&&e.touches?e.touches[0]:e;return{x:n-(a.horizontal?0:v.value.cursorOffset)-t.left,y:r-(a.horizontal?v.value.cursorOffset:0)-t.top}},M=e=>{e=e[a.horizontal?`y`:`x`];let t=g.value[a.horizontal?`clientHeight`:`clientWidth`];return a.rtl&&!a.horizontal&&(e=t-e),e*100/t},ee=e=>{let t=v.value.activeSplitter,n={prevPanesSize:P(t),nextPanesSize:F(t),prevReachedMinPanes:0,nextReachedMinPanes:0},r=0+(a.pushOtherPanes?0:n.prevPanesSize),i=100-(a.pushOtherPanes?0:n.nextPanesSize),o=Math.max(Math.min(M(e),i),r),s=[t,t+1],c=l.value[s[0]]||null,u=l.value[s[1]]||null,d=c.max<100&&o>=c.max+n.prevPanesSize,f=u.max<100&&o<=100-(u.max+F(t+1));if(d||f){d?(c.size=c.max,u.size=Math.max(100-c.max-n.prevPanesSize-n.nextPanesSize,0)):(c.size=Math.max(100-u.max-n.prevPanesSize-F(t+1),0),u.size=u.max);return}if(a.pushOtherPanes){let e=N(n,o);if(!e)return;({sums:n,panesToResize:s}=e),c=l.value[s[0]]||null,u=l.value[s[1]]||null}c!==null&&(c.size=Math.min(Math.max(o-n.prevPanesSize-n.prevReachedMinPanes,c.min),c.max)),u!==null&&(u.size=Math.min(Math.max(100-o-n.nextPanesSize-n.nextReachedMinPanes,u.min),u.max))},N=(e,t)=>{let n=v.value.activeSplitter,r=[n,n+1];return t<e.prevPanesSize+l.value[r[0]].min&&(r[0]=I(n).index,e.prevReachedMinPanes=0,r[0]<n&&l.value.forEach((t,i)=>{i>r[0]&&i<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),e.prevPanesSize=P(r[0]),r[0]===void 0)?(e.prevReachedMinPanes=0,l.value[0].size=l.value[0].min,l.value.forEach((t,r)=>{r>0&&r<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),l.value[r[1]].size=100-e.prevReachedMinPanes-l.value[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-l.value[r[1]].min&&(r[1]=te(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&l.value.forEach((t,i)=>{i>n&&i<r[1]&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),e.nextPanesSize=F(r[1]-1),r[1]===void 0)?(e.nextReachedMinPanes=0,l.value.forEach((t,r)=>{r<f.value-1&&r>=n+1&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),l.value[r[0]].size=100-e.prevPanesSize-F(r[0]-1),null):{sums:e,panesToResize:r}},P=e=>l.value.reduce((t,n,r)=>t+(r<e?n.size:0),0),F=e=>l.value.reduce((t,n,r)=>t+(r>e+1?n.size:0),0),I=e=>[...l.value].reverse().find(t=>t.index<e&&t.size>t.min)||{},te=e=>l.value.find(t=>t.index>e+1&&t.size>t.min)||{},L=()=>{let e=Array.from(g.value?.children||[]);for(let t of e){let e=t.classList.contains(`splitpanes__pane`),n=t.classList.contains(`splitpanes__splitter`);!e&&!n&&(t.remove(),console.warn(`Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.`))}},z=(e,t,n=!1)=>{let r=e-1,i=document.createElement(`div`);i.classList.add(`splitpanes__splitter`),n||(i.onmousedown=e=>w(e,r),typeof window<`u`&&`ontouchstart`in window&&(i.ontouchstart=e=>w(e,r)),i.onclick=e=>O(e,r+1)),i.ondblclick=e=>k(e,r+1),t.parentNode.insertBefore(i,t)},B=e=>{e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.remove()},V=()=>{let e=Array.from(g.value?.children||[]);for(let t of e)t.className.includes(`splitpanes__splitter`)&&B(t);let t=0;for(let n of e)n.className.includes(`splitpanes__pane`)&&(!t&&a.firstSplitter?z(t,n,!0):t&&z(t,n),t++)},ne=({uid:e,...t})=>{let n=u.value[e];for(let[e,r]of Object.entries(t))n[e]=r},H=e=>{let t=-1;Array.from(g.value?.children||[]).some(n=>(n.className.includes(`splitpanes__pane`)&&t++,n.isSameNode(e.el))),l.value.splice(t,0,{...e,index:t}),l.value.forEach((e,t)=>e.index=t),_.value&&le(()=>{V(),U({addedPane:l.value[t]}),oe(`pane-add`,{pane:l.value[t]})})},re=e=>{let t=l.value.findIndex(t=>t.id===e);l.value[t].el=null;let n=l.value.splice(t,1)[0];l.value.forEach((e,t)=>e.index=t),le(()=>{V(),oe(`pane-remove`,{pane:n}),U({removedPane:{...n}})})},U=(e={})=>{!e.addedPane&&!e.removedPane?ie():l.value.some(e=>e.givenSize!==null||e.min||e.max<100)?G(e):W(),_.value&&oe(`resized`)},W=()=>{let e=100/f.value,t=0,n=[],r=[];for(let i of l.value)i.size=Math.max(Math.min(e,i.max),i.min),t-=i.size,i.size>=i.max&&n.push(i.id),i.size<=i.min&&r.push(i.id);t>.1&&ae(t,n,r)},ie=()=>{let e=100,t=[],n=[],r=0;for(let i of l.value)e-=i.size,i.givenSize!==null&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id);let i=100;if(e>.1){for(let t of l.value)t.givenSize===null&&(t.size=Math.max(Math.min(e/(f.value-r),t.max),t.min)),i-=t.size;i>.1&&ae(i,t,n)}},G=({addedPane:e,removedPane:t}={})=>{let n=100/f.value,r=0,i=[],a=[];(e?.givenSize??null)!==null&&(n=(100-e.givenSize)/(f.value-1));for(let e of l.value)r-=e.size,e.size>=e.max&&i.push(e.id),e.size<=e.min&&a.push(e.id);if(!(Math.abs(r)<.1)){for(let t of l.value)e?.givenSize!==null&&e?.id===t.id||(t.size=Math.max(Math.min(n,t.max),t.min)),r-=t.size,t.size>=t.max&&i.push(t.id),t.size<=t.min&&a.push(t.id);r>.1&&ae(r,i,a)}},ae=(e,t,n)=>{let r;r=e>0?e/(f.value-t.length):e/(f.value-n.length),l.value.forEach((i,a)=>{if(e>0&&!t.includes(i.id)){let t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}else if(!n.includes(i.id)){let t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}}),Math.abs(e)>.1&&le(()=>{_.value&&console.warn(`Splitpanes: Could not resize panes correctly due to their constraints.`)})},oe=(e,t=void 0,n=!1)=>{let r=t?.index??v.value.activeSplitter??null;i(e,{...t,...r!==null&&{index:r},...n&&r!==null&&{prevPane:l.value[r-(a.firstSplitter?1:0)],nextPane:l.value[r+(a.firstSplitter?0:1)]},panes:l.value.map(e=>({min:e.min,max:e.max,size:e.size}))})};p(()=>a.firstSplitter,()=>V()),n(()=>{L(),V(),U(),oe(`ready`),_.value=!0}),m(()=>_.value=!1);let se=()=>b(`div`,{ref:g,class:x.value},o.default?.call(o));return r(`panes`,l),r(`indexedPanes`,u),r(`horizontal`,R(()=>a.horizontal)),r(`requestUpdate`,ne),r(`onPaneAdd`,H),r(`onPaneRemove`,re),r(`onPaneClick`,A),(e,t)=>(h(),T(d(se)))}},lt={__name:`pane`,props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(t){let r=t,i=oe(`requestUpdate`),a=oe(`onPaneAdd`),o=oe(`horizontal`),s=oe(`onPaneRemove`),l=oe(`onPaneClick`),u=k()?.uid,d=oe(`indexedPanes`),f=R(()=>d.value[u]),g=c(null),_=R(()=>{let e=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(e,y.value),v.value)}),v=R(()=>{let e=parseFloat(r.minSize);return isNaN(e)?0:e}),y=R(()=>{let e=parseFloat(r.maxSize);return isNaN(e)?100:e}),b=R(()=>`${o.value?`height`:`width`}: ${f.value?.size}%`);return p(()=>_.value,e=>i({uid:u,size:e})),p(()=>v.value,e=>i({uid:u,min:e})),p(()=>y.value,e=>i({uid:u,max:e})),n(()=>{a({id:u,el:g.value,min:v.value,max:y.value,givenSize:r.size===void 0?null:_.value,size:_.value})}),m(()=>s(u)),(t,n)=>(h(),G(`div`,{ref_key:`paneEl`,ref:g,class:`splitpanes__pane`,onClick:n[0]||=e=>D(l)(e,t._.uid),style:H(b.value)},[e(t.$slots,`default`)],4))}},ut=[`title`],dt=F({__name:`IconButton`,props:{title:{},classIcon:{},active:{type:Boolean}},setup(t){let n=t;return(t,r)=>(h(),G(`button`,{"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,class:W(n.active?`bg-active op90 text-green-400`:``),hover:`bg-active op100`,op50:``,title:n.title},[e(t.$slots,`default`,{},()=>[U(`div`,{class:W(n.classIcon)},null,2)])],10,ut))}}),Z=Object.assign(dt,{__name:`DisplayIconButton`}),Q=Xe(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self,n.CodeMirror=r())})(e,(function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),a=/Edge\/(\d+)/.exec(e),o=r||i||a,s=o&&(r?document.documentMode||6:+(a||i)[1]),c=!a&&/WebKit\//.test(e),l=c&&/Qt\/\d+\.\d+/.test(e),u=!a&&/Chrome\/(\d+)/.exec(e),d=u&&+u[1],f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),m=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),g=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),_=/Android/.test(e),v=g||_||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),x=/win/i.test(t),S=f&&e.match(/Version\/(\d*\.\d*)/);S&&=Number(S[1]),S&&S>=15&&(f=!1,c=!0);var C=y&&(l||f&&(S==null||S<12.11)),w=n||o&&s>=9;function T(e){return RegExp(`(^|\\s)`+e+`(?:$|\\s)\\s*`)}var E=function(e,t){var n=e.className,r=T(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:``)}};function D(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return D(e).appendChild(t)}function k(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t==`string`)i.appendChild(document.createTextNode(t));else if(t)for(var a=0;a<t.length;++a)i.appendChild(t[a]);return i}function A(e,t,n,r){var i=k(e,t,n,r);return i.setAttribute(`role`,`presentation`),i}var j=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd(`character`,n),r.moveStart(`character`,t),r};function M(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function ee(e){var t=e.ownerDocument||e,n;try{n=e.activeElement}catch{n=t.body||null}for(;n&&n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}function N(e,t){var n=e.className;T(t).test(n)||(e.className+=(n?` `:``)+t)}function P(e,t){for(var n=e.split(` `),r=0;r<n.length;r++)n[r]&&!T(n[r]).test(t)&&(t+=` `+n[r]);return t}var F=function(e){e.select()};g?F=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:o&&(F=function(e){try{e.select()}catch{}});function I(e){return e.display.wrapper.ownerDocument}function te(e){return L(e.display.wrapper)}function L(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function R(e){return I(e).defaultView}function z(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function B(e,t,n){for(var r in t||={},e)e.hasOwnProperty(r)&&(n!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function V(e,t,n,r,i){t??(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var a=r||0,o=i||0;;){var s=e.indexOf(` `,a);if(s<0||s>=t)return o+(t-a);o+=s-a,o+=n-o%n,a=s+1}}var ne=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};ne.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ne.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};function H(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}var re=50,U={toString:function(){return`CodeMirror.Pass`}},W={scroll:!1},ie={origin:`*mouse`},G={origin:`+move`};function ae(e,t,n){for(var r=0,i=0;;){var a=e.indexOf(` `,r);a==-1&&(a=e.length);var o=a-r;if(a==e.length||i+o>=t)return r+Math.min(o,t-i);if(i+=a-r,i+=n-i%n,r=a+1,i>=t)return r}}var oe=[``];function se(e){for(;oe.length<=e;)oe.push(K(oe)+` `);return oe[e]}function K(e){return e[e.length-1]}function ce(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function le(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function ue(){}function de(e,t){var n;return Object.create?n=Object.create(e):(ue.prototype=e,n=new ue),t&&B(t,n),n}var fe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function pe(e){return/\w/.test(e)||e>``&&(e.toUpperCase()!=e.toLowerCase()||fe.test(e))}function me(e,t){return t?t.source.indexOf(`\\w`)>-1&&pe(e)?!0:t.test(e):pe(e)}function he(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ge=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function _e(e){return e.charCodeAt(0)>=768&&ge.test(e)}function ve(e,t,n){for(;(n<0?t>0:t<e.length)&&_e(e.charAt(t));)t+=n;return t}function ye(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,a=r<0?Math.ceil(i):Math.floor(i);if(a==t)return e(a)?t:n;e(a)?n=a:t=a+r}}function be(e,t,n,r){if(!e)return r(t,n,`ltr`,0);for(var i=!1,a=0;a<e.length;++a){var o=e[a];(o.from<n&&o.to>t||t==n&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,n),o.level==1?`rtl`:`ltr`,a),i=!0)}i||r(t,n,`ltr`)}var xe=null;function Se(e,t,n){var r;xe=null;for(var i=0;i<e.length;++i){var a=e[i];if(a.from<t&&a.to>t)return i;a.to==t&&(a.from!=a.to&&n==`before`?r=i:xe=i),a.from==t&&(a.from!=a.to&&n!=`before`?r=i:xe=i)}return r??xe}var Ce=(function(){var e=`bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN`,t=`nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111`;function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?`R`:1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?`r`:8192<=n&&n<=8203?`w`:n==8204?`b`:`L`}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,o=/[Lb1n]/,s=/[1n]/;function c(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var l=t==`ltr`?`L`:`R`;if(e.length==0||t==`ltr`&&!r.test(e))return!1;for(var u=e.length,d=[],f=0;f<u;++f)d.push(n(e.charCodeAt(f)));for(var p=0,m=l;p<u;++p){var h=d[p];h==`m`?d[p]=m:m=h}for(var g=0,_=l;g<u;++g){var v=d[g];v==`1`&&_==`r`?d[g]=`n`:a.test(v)&&(_=v,v==`r`&&(d[g]=`R`))}for(var y=1,b=d[0];y<u-1;++y){var x=d[y];x==`+`&&b==`1`&&d[y+1]==`1`?d[y]=`1`:x==`,`&&b==d[y+1]&&(b==`1`||b==`n`)&&(d[y]=b),b=x}for(var S=0;S<u;++S){var C=d[S];if(C==`,`)d[S]=`N`;else if(C==`%`){var w=void 0;for(w=S+1;w<u&&d[w]==`%`;++w);for(var T=S&&d[S-1]==`!`||w<u&&d[w]==`1`?`1`:`N`,E=S;E<w;++E)d[E]=T;S=w-1}}for(var D=0,O=l;D<u;++D){var k=d[D];O==`L`&&k==`1`?d[D]=`L`:a.test(k)&&(O=k)}for(var A=0;A<u;++A)if(i.test(d[A])){var j=void 0;for(j=A+1;j<u&&i.test(d[j]);++j);for(var M=(A?d[A-1]:l)==`L`,ee=M==((j<u?d[j]:l)==`L`)?M?`L`:`R`:l,N=A;N<j;++N)d[N]=ee;A=j-1}for(var P=[],F,I=0;I<u;)if(o.test(d[I])){var te=I;for(++I;I<u&&o.test(d[I]);++I);P.push(new c(0,te,I))}else{var L=I,R=P.length,z=t==`rtl`?1:0;for(++I;I<u&&d[I]!=`L`;++I);for(var B=L;B<I;)if(s.test(d[B])){L<B&&(P.splice(R,0,new c(1,L,B)),R+=z);var V=B;for(++B;B<I&&s.test(d[B]);++B);P.splice(R,0,new c(2,V,B)),R+=z,L=B}else ++B;L<I&&P.splice(R,0,new c(1,L,I))}return t==`ltr`&&(P[0].level==1&&(F=e.match(/^\s+/))&&(P[0].from=F[0].length,P.unshift(new c(0,0,F[0].length))),K(P).level==1&&(F=e.match(/\s+$/))&&(K(P).to-=F[0].length,P.push(new c(0,u-F[0].length,u)))),t==`rtl`?P.reverse():P}})();function q(e,t){var n=e.order;return n??=e.order=Ce(e.text,t),n}var we=[],J=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent(`on`+t,n);else{var r=e._handlers||={};r[t]=(r[t]||we).concat(n)}};function Te(e,t){return e._handlers&&e._handlers[t]||we}function Ee(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent(`on`+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var a=H(i,n);a>-1&&(r[t]=i.slice(0,a).concat(i.slice(a+1)))}}}function Y(e,t){var n=Te(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function De(e,t,n){return typeof t==`string`&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Y(e,n||t.type,e,t),Ne(t)||t.codemirrorIgnore}function Oe(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)H(n,t[r])==-1&&n.push(t[r])}function ke(e,t){return Te(e,t).length>0}function Ae(e){e.prototype.on=function(e,t){J(this,e,t)},e.prototype.off=function(e,t){Ee(this,e,t)}}function je(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Me(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ne(e){return e.defaultPrevented==null?e.returnValue==0:e.defaultPrevented}function Pe(e){je(e),Me(e)}function Fe(e){return e.target||e.srcElement}function Ie(e){var t=e.which;return t??(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),y&&e.ctrlKey&&t==1&&(t=3),t}var Le=function(){if(o&&s<9)return!1;var e=k(`div`);return`draggable`in e||`dragDrop`in e}(),Re;function ze(e){if(Re==null){var t=k(`span`,``);O(e,k(`span`,[t,document.createTextNode(`x`)])),e.firstChild.offsetHeight!=0&&(Re=t.offsetWidth<=1&&t.offsetHeight>2&&!(o&&s<8))}var n=Re?k(`span`,``):k(`span`,`\xA0`,null,`display: inline-block; width: 1px; margin-right: -1px`);return n.setAttribute(`cm-text`,``),n}var Be;function Ve(e){if(Be!=null)return Be;var t=O(e,document.createTextNode(`AخA`)),n=j(t,0,1).getBoundingClientRect(),r=j(t,1,2).getBoundingClientRect();return D(e),!n||n.left==n.right?!1:Be=r.right-n.right<3}var He=`
|
|
2
2
|
|
|
3
3
|
b`.split(/\n/).length==3?function(e){return e.split(/\r\n?|\n/)}:function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(`
|
|
4
4
|
`,t);i==-1&&(i=e.length);var a=e.slice(t,e.charAt(i-1)==`\r`?i-1:i),o=a.indexOf(`\r`);o==-1?(n.push(a),t=i+1):(n.push(a.slice(0,o)),t+=o+1)}return n},Ue=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints(`StartToEnd`,t)!=0},We=(function(){var e=k(`div`);return`oncopy`in e?!0:(e.setAttribute(`oncopy`,`return;`),typeof e.oncopy==`function`)})(),Ge=null;function Ke(e){if(Ge!=null)return Ge;var t=O(e,k(`span`,`x`)),n=t.getBoundingClientRect(),r=j(t,0,1).getBoundingClientRect();return Ge=Math.abs(n.left-r.left)>1}var qe={},Je={};function Ye(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),qe[e]=t}function Xe(e,t){Je[e]=t}function Ze(e){if(typeof e==`string`&&Je.hasOwnProperty(e))e=Je[e];else if(e&&typeof e.name==`string`&&Je.hasOwnProperty(e.name)){var t=Je[e.name];typeof t==`string`&&(t={name:t}),e=de(t,e),e.name=t.name}else if(typeof e==`string`&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ze(`application/xml`);else if(typeof e==`string`&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ze(`application/json`);return typeof e==`string`?{name:e}:e||{name:`null`}}function Qe(e,t){t=Ze(t);var n=qe[t.name];if(!n)return Qe(e,`text/plain`);var r=n(e,t);if($e.hasOwnProperty(t.name)){var i=$e[t.name];for(var a in i)i.hasOwnProperty(a)&&(r.hasOwnProperty(a)&&(r[`_`+a]=r[a]),r[a]=i[a])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var $e={};function et(e,t){B(t,$e.hasOwnProperty(e)?$e[e]:$e[e]={})}function tt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function nt(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function rt(e,t,n){return e.startState?e.startState(t,n):!0}var it=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};it.prototype.eol=function(){return this.pos>=this.string.length},it.prototype.sol=function(){return this.pos==this.lineStart},it.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},it.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},it.prototype.eat=function(e){var t=this.string.charAt(this.pos);if(typeof e==`string`?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},it.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},it.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},it.prototype.skipToEnd=function(){this.pos=this.string.length},it.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},it.prototype.backUp=function(e){this.pos-=e},it.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},it.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},it.prototype.match=function(e,t,n){if(typeof e==`string`){var r=function(e){return n?e.toLowerCase():e};if(r(this.string.substr(this.pos,e.length))==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&t!==!1&&(this.pos+=i[0].length),i)}},it.prototype.current=function(){return this.string.slice(this.start,this.pos)},it.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},it.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},it.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function X(e,t){if(t-=e.first,t<0||t>=e.size)throw Error(`There is no line `+(t+e.first)+` in the document.`);for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],a=i.chunkSize();if(t<a){n=i;break}t-=a}return n.lines[t]}function at(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var a=e.text;i==n.line&&(a=a.slice(0,n.ch)),i==t.line&&(a=a.slice(t.ch)),r.push(a),++i}),r}function ot(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function st(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function ct(e){if(e.parent==null)return null;for(var t=e.parent,n=H(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function lt(e,t){var n=e.first;outer:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],a=i.height;if(t<a){e=i;continue outer}t-=a,n+=i.chunkSize()}return n}while(!e.lines);for(var o=0;o<e.lines.length;++o){var s=e.lines[o].height;if(t<s)break;t-=s}return n+o}function ut(e,t){return t>=e.first&&t<e.first+e.size}function dt(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function Z(e,t,n){if(n===void 0&&(n=null),!(this instanceof Z))return new Z(e,t,n);this.line=e,this.ch=t,this.sticky=n}function Q(e,t){return e.line-t.line||e.ch-t.ch}function ft(e,t){return e.sticky==t.sticky&&Q(e,t)==0}function pt(e){return Z(e.line,e.ch)}function mt(e,t){return Q(e,t)<0?t:e}function ht(e,t){return Q(e,t)<0?e:t}function gt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function $(e,t){if(t.line<e.first)return Z(e.first,0);var n=e.first+e.size-1;return t.line>n?Z(n,X(e,n).text.length):_t(t,X(e,t.line).text.length)}function _t(e,t){var n=e.ch;return n==null||n>t?Z(e.line,t):n<0?Z(e.line,0):e}function vt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=$(e,t[r]);return n}var yt=function(e,t){this.state=e,this.lookAhead=t},bt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};bt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},bt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,``),size:this.baseTokens[this.baseTokenPos]-e}},bt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},bt.fromSaved=function(e,t,n){return t instanceof yt?new bt(e,tt(e.mode,t.state),n,t.lookAhead):new bt(e,tt(e.mode,t),n)},bt.prototype.save=function(e){var t=e===!1?this.state:tt(this.doc.mode,this.state);return this.maxLookAhead>0?new yt(t,this.maxLookAhead):t};function xt(e,t,n,r){var i=[e.state.modeGen],a={};At(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},a,r);for(var o=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],c=1,l=0;n.state=!0,At(e,t.text,s.mode,n,function(e,t){for(var n=c;l<e;){var r=i[c];r>e&&i.splice(c,1,e,i[c+1],r),c+=2,l=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,c-n,e,`overlay `+t),c=n+2;else for(;n<c;n+=2){var a=i[n+1];i[n+1]=(a?a+` `:``)+`overlay `+t}},a),n.state=o,n.baseTokens=null,n.baseTokenPos=1},c=0;c<e.state.overlays.length;++c)s(c);return{styles:i,classes:a.bgClass||a.textClass?a:null}}function St(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Ct(e,ct(t)),i=t.text.length>e.options.maxHighlightLength&&tt(e.doc.mode,r.state),a=xt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=a.styles,a.classes?t.styleClasses=a.classes:t.styleClasses&&=null,n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Ct(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new bt(r,!0,t);var a=jt(e,t,n),o=a>r.first&&X(r,a-1).stateAfter,s=o?bt.fromSaved(r,o,a):new bt(r,rt(r.mode),a);return r.iter(a,t,function(n){wt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()}),n&&(r.modeFrontier=s.line),s}function wt(e,t,n,r){var i=e.doc.mode,a=new it(t,e.options.tabSize,n);for(a.start=a.pos=r||0,t==``&&Tt(i,n.state);!a.eol();)Et(i,a,n.state),a.start=a.pos}function Tt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=nt(e,t);if(n.mode.blankLine)return n.mode.blankLine(n.state)}}function Et(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=nt(e,n).mode);var a=e.token(t,n);if(t.pos>t.start)return a}throw Error(`Mode `+e.name+` failed to advance stream.`)}var Dt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Ot(e,t,n,r){var i=e.doc,a=i.mode,o;t=$(i,t);var s=X(i,t.line),c=Ct(e,t.line,n),l=new it(s.text,e.options.tabSize,c),u;for(r&&(u=[]);(r||l.pos<t.ch)&&!l.eol();)l.start=l.pos,o=Et(a,l,c.state),r&&u.push(new Dt(l,o,tt(i.mode,c.state)));return r?u:new Dt(l,o,c.state)}function kt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?`bgClass`:`textClass`;t[r]==null?t[r]=n[2]:RegExp(`(?:^|\\s)`+n[2]+`(?:$|\\s)`).test(t[r])||(t[r]+=` `+n[2])}return e}function At(e,t,n,r,i,a,o){var s=n.flattenSpans;s??=e.options.flattenSpans;var c=0,l=null,u=new it(t,e.options.tabSize,r),d,f=e.options.addModeClass&&[null];for(t==``&&kt(Tt(n,r.state),a);!u.eol();){if(u.pos>e.options.maxHighlightLength?(s=!1,o&&wt(e,t,r,u.pos),u.pos=t.length,d=null):d=kt(Et(n,u,r.state,f),a),f){var p=f[0].name;p&&(d=`m-`+(d?p+` `+d:p))}if(!s||l!=d){for(;c<u.start;)c=Math.min(u.start,c+5e3),i(c,l);l=d}u.start=u.pos}for(;c<u.pos;){var m=Math.min(u.pos,c+5e3);i(m,l),c=m}}function jt(e,t,n){for(var r,i,a=e.doc,o=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>o;--s){if(s<=a.first)return a.first;var c=X(a,s-1),l=c.stateAfter;if(l&&(!n||s+(l instanceof yt?l.lookAhead:0)<=a.modeFrontier))return s;var u=V(c.text,null,e.options.tabSize);(i==null||r>u)&&(i=s-1,r=u)}return i}function Mt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=X(e,r).stateAfter;if(i&&(!(i instanceof yt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Nt=!1,Pt=!1;function Ft(){Nt=!0}function It(){Pt=!0}function Lt(e,t,n){this.marker=e,this.from=t,this.to=n}function Rt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function zt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||=[]).push(e[r]);return n}function Bt(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||=new WeakSet);r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function Vt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var a=e[i],o=a.marker;if(a.from==null||(o.inclusiveLeft?a.from<=t:a.from<t)||a.from==t&&o.type==`bookmark`&&(!n||!a.marker.insertLeft)){var s=a.to==null||(o.inclusiveRight?a.to>=t:a.to>t);(r||=[]).push(new Lt(o,a.from,s?null:a.to))}}return r}function Ht(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var a=e[i],o=a.marker;if(a.to==null||(o.inclusiveRight?a.to>=t:a.to>t)||a.from==t&&o.type==`bookmark`&&(!n||a.marker.insertLeft)){var s=a.from==null||(o.inclusiveLeft?a.from<=t:a.from<t);(r||=[]).push(new Lt(o,s?null:a.from-t,a.to==null?null:a.to-t))}}return r}function Ut(e,t){if(t.full)return null;var n=ut(e,t.from.line)&&X(e,t.from.line).markedSpans,r=ut(e,t.to.line)&&X(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,a=t.to.ch,o=Q(t.from,t.to)==0,s=Vt(n,i,o),c=Ht(r,a,o),l=t.text.length==1,u=K(t.text).length+(l?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(f.to==null){var p=Rt(c,f.marker);p?l&&(f.to=p.to==null?null:p.to+u):f.to=i}}if(c)for(var m=0;m<c.length;++m){var h=c[m];h.to!=null&&(h.to+=u),h.from==null?Rt(s,h.marker)||(h.from=u,l&&(s||=[]).push(h)):(h.from+=u,l&&(s||=[]).push(h))}s&&=Wt(s),c&&c!=s&&(c=Wt(c));var g=[s];if(!l){var _=t.text.length-2,v;if(_>0&&s)for(var y=0;y<s.length;++y)s[y].to??(v||=[]).push(new Lt(s[y].marker,null,null));for(var b=0;b<_;++b)g.push(v);g.push(c)}return g}function Wt(e){for(var t=0;t<e.length;++t){var n=e[t];n.from!=null&&n.from==n.to&&n.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Gt(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;n.readOnly&&(!r||H(r,n)==-1)&&(r||=[]).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],a=0;a<r.length;++a)for(var o=r[a],s=o.find(0),c=0;c<i.length;++c){var l=i[c];if(!(Q(l.to,s.from)<0||Q(l.from,s.to)>0)){var u=[c,1],d=Q(l.from,s.from),f=Q(l.to,s.to);(d<0||!o.inclusiveLeft&&!d)&&u.push({from:l.from,to:s.from}),(f>0||!o.inclusiveRight&&!f)&&u.push({from:s.to,to:l.to}),i.splice.apply(i,u),c+=u.length-3}}return i}function Kt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function qt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Jt(e){return e.inclusiveLeft?-1:0}function Yt(e){return e.inclusiveRight?1:0}function Xt(e,t){var n=e.lines.length-t.lines.length;if(n!=0)return n;var r=e.find(),i=t.find(),a=Q(r.from,i.from)||Jt(e)-Jt(t);return a?-a:Q(r.to,i.to)||Yt(e)-Yt(t)||t.id-e.id}function Zt(e,t){var n=Pt&&e.markedSpans,r;if(n)for(var i=void 0,a=0;a<n.length;++a)i=n[a],i.marker.collapsed&&(t?i.from:i.to)==null&&(!r||Xt(r,i.marker)<0)&&(r=i.marker);return r}function Qt(e){return Zt(e,!0)}function $t(e){return Zt(e,!1)}function en(e,t){var n=Pt&&e.markedSpans,r;if(n)for(var i=0;i<n.length;++i){var a=n[i];a.marker.collapsed&&(a.from==null||a.from<t)&&(a.to==null||a.to>t)&&(!r||Xt(r,a.marker)<0)&&(r=a.marker)}return r}function tn(e,t,n,r,i){var a=X(e,t),o=Pt&&a.markedSpans;if(o)for(var s=0;s<o.length;++s){var c=o[s];if(c.marker.collapsed){var l=c.marker.find(0),u=Q(l.from,n)||Jt(c.marker)-Jt(i),d=Q(l.to,r)||Yt(c.marker)-Yt(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?Q(l.to,n)>=0:Q(l.to,n)>0)||u>=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?Q(l.from,r)<=0:Q(l.from,r)<0)))return!0}}}function nn(e){for(var t;t=Qt(e);)e=t.find(-1,!0).line;return e}function rn(e){for(var t;t=$t(e);)e=t.find(1,!0).line;return e}function an(e){for(var t,n;t=$t(e);)e=t.find(1,!0).line,(n||=[]).push(e);return n}function on(e,t){var n=X(e,t),r=nn(n);return n==r?t:ct(r)}function sn(e,t){if(t>e.lastLine())return t;var n=X(e,t),r;if(!cn(e,n))return t;for(;r=$t(n);)n=r.find(1,!0).line;return ct(n)+1}function cn(e,t){var n=Pt&&t.markedSpans;if(n){for(var r=void 0,i=0;i<n.length;++i)if(r=n[i],r.marker.collapsed&&(r.from==null||!r.marker.widgetNode&&r.from==0&&r.marker.inclusiveLeft&&ln(e,t,r)))return!0}}function ln(e,t,n){if(n.to==null){var r=n.marker.find(1,!0);return ln(e,r.line,Rt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,a=0;a<t.markedSpans.length;++a)if(i=t.markedSpans[a],i.marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(i.to==null||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&ln(e,t,i))return!0}function un(e){e=nn(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var a=n.parent;a;n=a,a=n.parent)for(var o=0;o<a.children.length;++o){var s=a.children[o];if(s==n)break;t+=s.height}return t}function dn(e){if(e.height==0)return 0;for(var t=e.text.length,n,r=e;n=Qt(r);){var i=n.find(0,!0);r=i.from.line,t+=i.from.ch-i.to.ch}for(r=e;n=$t(r);){var a=n.find(0,!0);t-=r.text.length-a.from.ch,r=a.to.line,t+=r.text.length-a.to.ch}return t}function fn(e){var t=e.display,n=e.doc;t.maxLine=X(n,n.first),t.maxLineLength=dn(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=dn(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var pn=function(e,t,n){this.text=e,qt(this,t),this.height=n?n(this):1};pn.prototype.lineNo=function(){return ct(this)},Ae(pn);function mn(e,t,n,r){e.text=t,e.stateAfter&&=null,e.styles&&=null,e.order!=null&&(e.order=null),Kt(e),qt(e,n);var i=r?r(e):1;i!=e.height&&st(e,i)}function hn(e){e.parent=null,Kt(e)}var gn={},_n={};function vn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?_n:gn;return n[e]||(n[e]=e.replace(/\S+/g,`cm-$&`))}function yn(e,t){var n=A(`span`,null,null,c?`padding-right: .1px`:null),r={pre:A(`pre`,[n],`CodeMirror-line`),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption(`lineWrapping`)};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var a=i?t.rest[i-1]:t.line,o=void 0;r.pos=0,r.addToken=xn,Ve(e.display.measure)&&(o=q(a,e.doc.direction))&&(r.addToken=Cn(r.addToken,o)),r.map=[],Tn(a,r,St(e,a,t!=e.display.externalMeasured&&ct(a))),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=P(a.styleClasses.bgClass,r.bgClass||``)),a.styleClasses.textClass&&(r.textClass=P(a.styleClasses.textClass,r.textClass||``))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(ze(e.display.measure))),i==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(c){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(`.cm-tab`))&&(r.content.className=`cm-tab-wrap-hack`)}return Y(e,`renderLine`,e,t.line,r.pre),r.pre.className&&(r.textClass=P(r.pre.className,r.textClass||``)),r}function bn(e){var t=k(`span`,`•`,`cm-invalidchar`);return t.title=`\\u`+e.charCodeAt(0).toString(16),t.setAttribute(`aria-label`,t.title),t}function xn(e,t,n,r,i,a,c){if(t){var l=e.splitSpaces?Sn(t,e.trailingSpace):t,u=e.cm.state.specialChars,d=!1,f;if(!u.test(t))e.col+=t.length,f=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,f),o&&s<9&&(d=!0),e.pos+=t.length;else{f=document.createDocumentFragment();for(var p=0;;){u.lastIndex=p;var m=u.exec(t),h=m?m.index-p:t.length-p;if(h){var g=document.createTextNode(l.slice(p,p+h));o&&s<9?f.appendChild(k(`span`,[g])):f.appendChild(g),e.map.push(e.pos,e.pos+h,g),e.col+=h,e.pos+=h}if(!m)break;p+=h+1;var _=void 0;if(m[0]==` `){var v=e.cm.options.tabSize,y=v-e.col%v;_=f.appendChild(k(`span`,se(y),`cm-tab`)),_.setAttribute(`role`,`presentation`),_.setAttribute(`cm-text`,` `),e.col+=y}else m[0]==`\r`||m[0]==`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{At as e,Ft as t,Tt as n,Vt as r,W as i,c as a,ct as o,en as s,ft as c,in as l,it as u,kt as d,lt as f,mt as p,ot as m,pt as h,st as g,ut as _,x as v,y,yt as b}from"#entry";import{t as x}from"./Jdu9jmuG.js";import{r as S,t as C}from"./DL1ysgP5.js";import{r as w}from"./Cql2HFZJ.js";import{t as T}from"./Bs1eUuZt.js";var E={relative:``},D={key:0,"pointer-events-none":``,absolute:``,"left-0":``,"right-0":``,"bottom-0":``,"bg-gradient-more":``,"h-30":``,flex:`~ justify-center`},O=p({__name:`ExpandableContainer`,props:b({list:{}},{count:{default:20},countModifiers:{}}),emits:[`update:count`],setup(r){let i=r,a=t(r,`count`),o=a.value,c=m(()=>i.list.slice(0,a.value));return(t,l)=>{let u=T;return n(),_(`div`,E,[e(t.$slots,`default`,{items:c.value}),r.list.length>a.value?(n(),_(`div`,D,[g(`button`,{op35:``,p2:``,pt4:``,mta:``,"pointer-events-auto":``,"hover:op100":``,flex:`~ items-center gap-1 justify-center`,onClick:l[0]||=e=>a.value=Math.round(a.value+s(o))},[l[2]||=g(`div`,{"i-ri:arrow-down-double-line":``},null,-1),l[3]||=g(`span`,null,`More`,-1),h(u,{prefix:`+`,number:Math.min(Math.round(s(o)),i.list.length-a.value),"rounded-full":``,"text-sm":``},null,8,[`number`])]),g(`button`,{op35:``,p2:``,pt4:``,mta:``,"pointer-events-auto":``,"hover:op100":``,flex:`~ items-center gap-1 justify-center`,onClick:l[1]||=e=>a.value=i.list.length},[l[4]||=g(`div`,{"i-ph-arrows-out-line-vertical-duotone":``},null,-1),l[5]||=g(`span`,null,`All`,-1),h(u,{number:i.list.length,"rounded-full":``,"text-sm":``},null,8,[`number`])])])):f(``,!0)])}}}),k=Object.assign(O,{__name:`DisplayExpandableContainer`}),A=[`title`],j={key:0,"i-ph-file-duotone":``},M={key:1,"i-ph-lightning-duotone":``},N={"text-sm":``,flex:`~ items-center gap-2`},P={op50:``,"font-mono":``},F={flex:`~ gap-1 items-center`},I={flex:`~ gap-1 items-center`},L=p({__name:`ImportItem`,props:{chunk:{}},setup(e){let t=i();return(i,a)=>{let u=S,d=x;return e.chunk?(n(),o(d,{key:0,flex:`~ items-center`,to:{path:s(t).path,query:{chunk:e.chunk.chunk_id}}},{default:r(()=>[g(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${e.chunk.chunk_id}`},[e.chunk.kind===`import-statement`?(n(),_(`div`,j)):f(``,!0),e.chunk.kind===`dynamic-import`?(n(),_(`div`,M)):f(``,!0),g(`div`,null,l(e.chunk.name||`[unnamed]`),1),h(u,{text:e.chunk.reason},null,8,[`text`]),h(u,{text:e.chunk.kind},null,8,[`text`])],8,A),a[2]||=g(`div`,{"flex-auto":``},null,-1),g(`div`,N,[g(`span`,P,`#`+l(e.chunk.chunk_id),1),g(`div`,F,[a[0]||=g(`div`,{"i-ph-file-arrow-up-duotone":``},null,-1),c(` `+l(e.chunk.imports),1)]),g(`div`,I,[a[1]||=g(`div`,{"i-ph-package-duotone":``},null,-1),c(` `+l(e.chunk.modules),1)])])]),_:1},8,[`to`])):f(``,!0)}}}),R=Object.assign(L,{__name:`ChunksImportItem`}),z=p({__name:`Imports`,props:{imports:{}},setup(e){return(t,i)=>{let a=R,s=k;return n(),o(s,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:e.imports},{default:r(({items:e})=>[(n(!0),_(u,null,d(e,(e,t)=>(n(),o(a,{key:t,chunk:e,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},null,8,[`chunk`]))),128))]),_:1},8,[`list`])}}}),B=Object.assign(z,{__name:`ChunksImports`}),V={flex:`~ col gap-3`},H={flex:`~ gap-3 items-center`},U=[`title`],W={op50:``,"font-mono":``},G={flex:`~ gap-1 items-center`},K={flex:`~ gap-1 items-center`},q={key:0,open:`true`},J={op50:``},Y={key:0,open:`true`},X={op50:``},Z={key:1,open:`true`},Q={op50:``},$=p({__name:`ChunkDetails`,props:{chunk:{},session:{},showModules:{type:Boolean,default:!0},showImports:{type:Boolean,default:!0},chunks:{}},setup(t){let i=t,p=m(()=>{let e=new Map;for(let t of i.session.modulesList)e.set(t.id,t);return e}),b=m(()=>i.chunk.modules.reduce((e,t)=>{let n=p.value.get(t)?.buildMetrics?.transforms;return n?.length?e+n[n.length-1].transformed_code_size:e},0)),x=y(),{state:T,isLoading:E}=a(async()=>{if(!i.chunks)return await x.value[`vite:rolldown:get-chunks-graph`]?.({session:i.session.id})},null),D=m(()=>i.chunks||T.value),O=m(()=>i.chunk.imports.map(e=>{let t=D.value?.find(t=>t.chunk_id===e.chunk_id);return{...e,name:t?.name||`[unnamed]`,reason:t?.reason||`common`,imports:t?.imports.length||0,modules:t?.modules.length||0}})),A=m(()=>D.value?.filter(e=>e.imports.some(e=>e.chunk_id===i.chunk.chunk_id)).map(e=>({...e.imports.find(e=>e.chunk_id===i.chunk.chunk_id),chunk_id:e.chunk_id,name:e.name||`[unnamed]`,reason:e.reason||`common`,imports:e.imports.length||0,modules:e.modules.length||0}))||[]);return(i,a)=>{let p=S,m=w,y=C,x=k,T=v,D=B;return n(),_(`div`,V,[g(`div`,H,[g(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${t.chunk.chunk_id}`},[a[0]||=g(`div`,{"i-ph-shapes-duotone":``},null,-1),g(`div`,null,l(t.chunk.name||`[unnamed]`),1),h(p,{text:t.chunk.reason},null,8,[`text`]),h(m,{bytes:b.value,"text-sm":``},null,8,[`bytes`])],8,U),a[3]||=g(`div`,{"flex-auto":``},null,-1),g(`span`,W,`#`+l(t.chunk.chunk_id),1),g(`div`,G,[a[1]||=g(`div`,{"i-ph-file-arrow-up-duotone":``},null,-1),c(` `+l(t.chunk.imports.length),1)]),g(`div`,K,[a[2]||=g(`div`,{"i-ph-package-duotone":``},null,-1),c(` `+l(t.chunk.modules.length),1)]),e(i.$slots,`default`)]),t.showModules?(n(),_(`details`,q,[g(`summary`,J,[g(`span`,null,`Modules (`+l(t.chunk.modules.length)+`)`,1)]),h(x,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:t.chunk.modules},{default:r(({items:e})=>[(n(!0),_(u,null,d(e,e=>(n(),o(y,{id:e,key:e,session:t.session,link:!0,minimal:!0,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},null,8,[`id`,`session`]))),128))]),_:1},8,[`list`])])):f(``,!0),s(E)?(n(),o(T,{key:1})):t.showImports?(n(),_(u,{key:2},[t.chunk.imports.length?(n(),_(`details`,Y,[g(`summary`,X,[g(`span`,null,`Imports (`+l(t.chunk.imports.length)+`)`,1)]),h(D,{imports:O.value},null,8,[`imports`])])):f(``,!0),A.value.length?(n(),_(`details`,Z,[g(`summary`,Q,[g(`span`,null,`Importers (`+l(A.value.length)+`)`,1)]),h(D,{imports:A.value},null,8,[`imports`])])):f(``,!0)],64)):f(``,!0)])}}}),ee=Object.assign($,{__name:`DataChunkDetails`});export{k as n,ee as t};
|
|
1
|
+
import{At as e,Ft as t,Tt as n,Vt as r,W as i,c as a,ct as o,en as s,ft as c,in as l,it as u,kt as d,lt as f,mt as p,ot as m,pt as h,st as g,ut as _,x as v,y,yt as b}from"#entry";import{t as x}from"./Jdu9jmuG.js";import{r as S,t as C}from"./DL1ysgP5.js";import{r as w}from"./Cql2HFZJ.js";import{t as T}from"./Bs1eUuZt.js";var E={relative:``},D={key:0,"pointer-events-none":``,absolute:``,"left-0":``,"right-0":``,"bottom-0":``,"bg-gradient-more":``,"h-30":``,flex:`~ justify-center`},O=p({__name:`ExpandableContainer`,props:b({list:{}},{count:{default:20},countModifiers:{}}),emits:[`update:count`],setup(r){let i=r,a=t(r,`count`),o=a.value,c=m(()=>i.list.slice(0,a.value));return(t,l)=>{let u=T;return n(),_(`div`,E,[e(t.$slots,`default`,{items:c.value}),r.list.length>a.value?(n(),_(`div`,D,[g(`button`,{op35:``,p2:``,pt4:``,mta:``,"pointer-events-auto":``,"hover:op100":``,flex:`~ items-center gap-1 justify-center`,onClick:l[0]||=e=>a.value=Math.round(a.value+s(o))},[l[2]||=g(`div`,{"i-ri:arrow-down-double-line":``},null,-1),l[3]||=g(`span`,null,`More`,-1),h(u,{prefix:`+`,number:Math.min(Math.round(s(o)),i.list.length-a.value),"rounded-full":``,"text-sm":``},null,8,[`number`])]),g(`button`,{op35:``,p2:``,pt4:``,mta:``,"pointer-events-auto":``,"hover:op100":``,flex:`~ items-center gap-1 justify-center`,onClick:l[1]||=e=>a.value=i.list.length},[l[4]||=g(`div`,{"i-ph-arrows-out-line-vertical-duotone":``},null,-1),l[5]||=g(`span`,null,`All`,-1),h(u,{number:i.list.length,"rounded-full":``,"text-sm":``},null,8,[`number`])])])):f(``,!0)])}}}),k=Object.assign(O,{__name:`DisplayExpandableContainer`}),A=[`title`],j={key:0,"i-ph-file-duotone":``},M={key:1,"i-ph-lightning-duotone":``},N={"text-sm":``,flex:`~ items-center gap-2`},P={op50:``,"font-mono":``},F={flex:`~ gap-1 items-center`},I={flex:`~ gap-1 items-center`},L=p({__name:`ImportItem`,props:{chunk:{}},setup(e){let t=i();return(i,a)=>{let u=S,d=x;return e.chunk?(n(),o(d,{key:0,flex:`~ items-center`,to:{path:s(t).path,query:{chunk:e.chunk.chunk_id}}},{default:r(()=>[g(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${e.chunk.chunk_id}`},[e.chunk.kind===`import-statement`?(n(),_(`div`,j)):f(``,!0),e.chunk.kind===`dynamic-import`?(n(),_(`div`,M)):f(``,!0),g(`div`,null,l(e.chunk.name||`[unnamed]`),1),h(u,{text:e.chunk.reason},null,8,[`text`]),h(u,{text:e.chunk.kind},null,8,[`text`])],8,A),a[2]||=g(`div`,{"flex-auto":``},null,-1),g(`div`,N,[g(`span`,P,`#`+l(e.chunk.chunk_id),1),g(`div`,F,[a[0]||=g(`div`,{"i-ph-file-arrow-up-duotone":``},null,-1),c(` `+l(e.chunk.imports),1)]),g(`div`,I,[a[1]||=g(`div`,{"i-ph-package-duotone":``},null,-1),c(` `+l(e.chunk.modules),1)])])]),_:1},8,[`to`])):f(``,!0)}}}),R=Object.assign(L,{__name:`ChunksImportItem`}),z=p({__name:`Imports`,props:{imports:{}},setup(e){return(t,i)=>{let a=R,s=k;return n(),o(s,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:e.imports},{default:r(({items:e})=>[(n(!0),_(u,null,d(e,(e,t)=>(n(),o(a,{key:t,chunk:e,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},null,8,[`chunk`]))),128))]),_:1},8,[`list`])}}}),B=Object.assign(z,{__name:`ChunksImports`}),V={flex:`~ col gap-3`},H={flex:`~ gap-3 items-center`},U=[`title`],W={op50:``,"font-mono":``},G={flex:`~ gap-1 items-center`},K={flex:`~ gap-1 items-center`},q={key:0,open:`true`},J={op50:``},Y={key:0,open:`true`},X={op50:``},Z={key:1,open:`true`},Q={op50:``},$=p({__name:`ChunkDetails`,props:{chunk:{},session:{},showModules:{type:Boolean,default:!0},showImports:{type:Boolean,default:!0},chunks:{}},setup(t){let i=t,p=m(()=>{let e=new Map;for(let t of i.session.modulesList)e.set(t.id,t);return e}),b=m(()=>i.chunk.modules.reduce((e,t)=>{let n=p.value.get(t)?.buildMetrics?.transforms;return n?.length?e+n[n.length-1].transformed_code_size:e},0)),x=y(),{state:T,isLoading:E}=a(async()=>{if(!i.chunks)return await x.value[`vite:rolldown:get-chunks-graph`]?.({session:i.session.id})},null),D=m(()=>i.chunks||T.value),O=m(()=>i.chunk.imports.map(e=>{let t=D.value?.find(t=>t.chunk_id===e.chunk_id);return{...e,name:t?.name||`[unnamed]`,reason:t?.reason||`common`,imports:t?.imports.length||0,modules:t?.modules.length||0}})),A=m(()=>D.value?.filter(e=>e.imports.some(e=>e.chunk_id===i.chunk.chunk_id)).map(e=>({...e.imports.find(e=>e.chunk_id===i.chunk.chunk_id),chunk_id:e.chunk_id,name:e.name||`[unnamed]`,reason:e.reason||`common`,imports:e.imports.length||0,modules:e.modules.length||0}))||[]);return(i,a)=>{let p=S,m=w,y=C,x=k,T=v,D=B;return n(),_(`div`,V,[g(`div`,H,[g(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${t.chunk.chunk_id}`},[a[0]||=g(`div`,{"i-ph-shapes-duotone":``},null,-1),g(`div`,null,l(t.chunk.name||`[unnamed]`),1),h(p,{text:t.chunk.reason},null,8,[`text`]),t.chunk.is_initial?(n(),o(p,{key:0,text:`initial`})):f(``,!0),h(m,{bytes:b.value,"text-sm":``},null,8,[`bytes`])],8,U),a[3]||=g(`div`,{"flex-auto":``},null,-1),g(`span`,W,`#`+l(t.chunk.chunk_id),1),g(`div`,G,[a[1]||=g(`div`,{"i-ph-file-arrow-up-duotone":``},null,-1),c(` `+l(t.chunk.imports.length),1)]),g(`div`,K,[a[2]||=g(`div`,{"i-ph-package-duotone":``},null,-1),c(` `+l(t.chunk.modules.length),1)]),e(i.$slots,`default`)]),t.showModules?(n(),_(`details`,q,[g(`summary`,J,[g(`span`,null,`Modules (`+l(t.chunk.modules.length)+`)`,1)]),h(x,{flex:`~ col gap-1`,mt2:``,"ws-nowrap":``,list:t.chunk.modules},{default:r(({items:e})=>[(n(!0),_(u,null,d(e,e=>(n(),o(y,{id:e,key:e,session:t.session,link:!0,minimal:!0,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},null,8,[`id`,`session`]))),128))]),_:1},8,[`list`])])):f(``,!0),s(E)?(n(),o(T,{key:1})):t.showImports?(n(),_(u,{key:2},[t.chunk.imports.length?(n(),_(`details`,Y,[g(`summary`,X,[g(`span`,null,`Imports (`+l(t.chunk.imports.length)+`)`,1)]),h(D,{imports:O.value},null,8,[`imports`])])):f(``,!0),A.value.length?(n(),_(`details`,Z,[g(`summary`,Q,[g(`span`,null,`Importers (`+l(A.value.length)+`)`,1)]),h(D,{imports:A.value},null,8,[`imports`])])):f(``,!0)],64)):f(``,!0)])}}}),ee=Object.assign($,{__name:`DataChunkDetails`});export{k as n,ee as t};
|