@cnrai/pave 0.11.118 → 0.11.120
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/package.json +1 -1
- package/pave.js +10 -10
- package/sandbox/permission.js +1 -1
- package/web/assets/{abnfDiagram-VCTEODGH-zRrhFNBn.js → abnfDiagram-VCTEODGH-CQun3ogE.js} +1 -1
- package/web/assets/architectureDiagram-5GKGNRK7-oVzTvsb3.js +36 -0
- package/web/assets/{blockDiagram-I7D4REHJ-BlZ9Cs7B.js → blockDiagram-I7D4REHJ-CDZzuTZC.js} +1 -1
- package/web/assets/{c4Diagram-7LVT6UL2-3w6sNM30.js → c4Diagram-7LVT6UL2-Bm0ktuXG.js} +1 -1
- package/web/assets/channel-Bh7-m1e5.js +1 -0
- package/web/assets/{chunk-2Q5K7J3B-DOwnKWD5.js → chunk-2Q5K7J3B-CHcyUt1N.js} +1 -1
- package/web/assets/{chunk-5VM5RSS4-0Zj8cbb-.js → chunk-5VM5RSS4-ClYGp-Qm.js} +1 -1
- package/web/assets/{chunk-F27PBJKO-ZHDNvYdk.js → chunk-F27PBJKO-BQy_jioc.js} +1 -1
- package/web/assets/{chunk-IMKFNOWR-Dz5iR6Xc.js → chunk-IMKFNOWR-DG0JVHzQ.js} +1 -1
- package/web/assets/{chunk-JWPE2WC7-3njPjsZ7.js → chunk-JWPE2WC7-g7KSFoMi.js} +1 -1
- package/web/assets/{chunk-POPQ4Y6H-Czwjluly.js → chunk-POPQ4Y6H-ChMbm-k_.js} +1 -1
- package/web/assets/{chunk-SVP7TREG-rh1kS9v6.js → chunk-SVP7TREG-JNsMB-yr.js} +4 -4
- package/web/assets/{chunk-TICWLB2K-gaBxyl9n.js → chunk-TICWLB2K--tiq0iAk.js} +1 -1
- package/web/assets/{chunk-XXDRQBXY-CC3Wlgli.js → chunk-XXDRQBXY-BpM1cyP1.js} +1 -1
- package/web/assets/classDiagram-ZZMXUADV-vlrlRtwo.js +1 -0
- package/web/assets/classDiagram-v2-VYDZK3BY-vlrlRtwo.js +1 -0
- package/web/assets/{cose-bilkent-JH36ORCC-jrSUBU3M.js → cose-bilkent-JH36ORCC-DNoCqFjg.js} +1 -1
- package/web/assets/{cynefin-OW5HDTMX-MFqxALpy.js → cynefin-OW5HDTMX-DXHBAtGJ.js} +1 -1
- package/web/assets/{cynefinDiagram-5FMLGOSQ-C0ZVLyFI.js → cynefinDiagram-5FMLGOSQ-DFvR6u8N.js} +2 -2
- package/web/assets/d3-scale-4DPf7zan.js +1 -0
- package/web/assets/{dagre-GXQ25YYZ-sTtHh06I.js → dagre-GXQ25YYZ-BtdtVnNL.js} +2 -2
- package/web/assets/{diagram-S7CK7UJ4-2BhVaZ3U.js → diagram-S7CK7UJ4-DTBDTeWr.js} +4 -4
- package/web/assets/diagram-UQ7AKVKN-WsABo8v9.js +41 -0
- package/web/assets/{diagram-VSXAHHWV-BTawCfi3.js → diagram-VSXAHHWV-PfPn8q7Y.js} +3 -3
- package/web/assets/diagram-VX7I27RA-BgImaOA7.js +24 -0
- package/web/assets/{diagram-Z3DM3KII-D85vbcL5.js → diagram-Z3DM3KII-BhPC3EPH.js} +1 -1
- package/web/assets/{ebnfDiagram-PWID7BFC-BzCrmRd6.js → ebnfDiagram-PWID7BFC-MZXRKqfj.js} +1 -1
- package/web/assets/{erDiagram-RLTQ6QDP-DQN_iBI3.js → erDiagram-RLTQ6QDP-B0d0Nnu_.js} +1 -1
- package/web/assets/{flowDiagram-HODETNUW-2qG8EaAn.js → flowDiagram-HODETNUW-Cy4qmeb0.js} +4 -4
- package/web/assets/ganttDiagram-EL5Y4UJY-Djww1Rba.js +292 -0
- package/web/assets/{gitGraphDiagram-WWUBYQGX-BP5cvu9y.js → gitGraphDiagram-WWUBYQGX-8Tak7xqH.js} +1 -1
- package/web/assets/index-Bt1QpYqk.js +132 -0
- package/web/assets/index-DdEADc8n.css +10 -0
- package/web/assets/{infoDiagram-27XIBGKW-COnBSVEW.js → infoDiagram-27XIBGKW-DkaHqIdq.js} +1 -1
- package/web/assets/{ishikawaDiagram-5VMMS53U-DXZfkdld.js → ishikawaDiagram-5VMMS53U-ay7785S2.js} +3 -3
- package/web/assets/{journeyDiagram-3NMN7TZE-BDfX5OTv.js → journeyDiagram-3NMN7TZE-Be1Bgc8E.js} +6 -6
- package/web/assets/{kanban-definition-UXKFOSKX-D1ABXW9y.js → kanban-definition-UXKFOSKX-Uv5UoCff.js} +7 -7
- package/web/assets/{layout-Dmezm0MZ.js → layout-DVsJ-C6t.js} +1 -1
- package/web/assets/mermaid.core-CfJk9oqB.js +310 -0
- package/web/assets/{mindmap-definition-YA3MSWOX-EuCpImTo.js → mindmap-definition-YA3MSWOX-CEjjKmq_.js} +4 -4
- package/web/assets/{pegDiagram-XKGWAZYB-5ARCLejc.js → pegDiagram-XKGWAZYB-CCbGN7im.js} +1 -1
- package/web/assets/pieDiagram-E7YTZNPT-DSbIEsvX.js +39 -0
- package/web/assets/{quadrantDiagram-AXDQQJYC-Db0lU7d_.js → quadrantDiagram-AXDQQJYC-NH55I-VQ.js} +2 -2
- package/web/assets/{railroadDiagram-O6MQD6OU-KM389scY.js → railroadDiagram-O6MQD6OU-DrY5l5qz.js} +1 -1
- package/web/assets/{requirementDiagram-BXWQKSXE-WeWVDJB8.js → requirementDiagram-BXWQKSXE-DnEzj3DN.js} +1 -1
- package/web/assets/sankeyDiagram-P5KCCOFB-Deb4JoPN.js +40 -0
- package/web/assets/{sequenceDiagram-WJ2MYXX4-SJLa8ZIw.js → sequenceDiagram-WJ2MYXX4-BilBA3A_.js} +1 -1
- package/web/assets/{sizeCapture-INFHLROL-DxsKTZJ2.js → sizeCapture-INFHLROL-CT4uqGe1.js} +1 -1
- package/web/assets/{stateDiagram-D77RDMKH-DFaQrrVU.js → stateDiagram-D77RDMKH-DMwGaAv4.js} +1 -1
- package/web/assets/stateDiagram-v2-MP3YSRHH-Clsx447Y.js +1 -0
- package/web/assets/{swimlanes-42K2YHIH-BVmmm7t4.js → swimlanes-42K2YHIH-3uatewyx.js} +1 -1
- package/web/assets/swimlanesDiagram-VR7AAH4N-Chk2E8QS.js +8 -0
- package/web/assets/{timeline-definition-24CTP7MA-DscrTfsz.js → timeline-definition-24CTP7MA-Dj31t9Rm.js} +4 -4
- package/web/assets/{vennDiagram-4TSXK5OY-W_q2DYL7.js → vennDiagram-4TSXK5OY-BoVPzNB_.js} +4 -4
- package/web/assets/{wardleyDiagram-VM6X3IG4-Csahtz7S.js → wardleyDiagram-VM6X3IG4-BWMtHf0h.js} +3 -3
- package/web/assets/xychartDiagram-S5SC5T6Z-D8oU7JtR.js +7 -0
- package/web/assets/zh-TW-DDsaOGgA.js +1 -0
- package/web/index.html +2 -2
- package/web/assets/arc-DH2fkX5T.js +0 -1
- package/web/assets/architectureDiagram-5GKGNRK7-18o9CKam.js +0 -36
- package/web/assets/channel-DOSIYATf.js +0 -1
- package/web/assets/classDiagram-ZZMXUADV-3MjcAlEg.js +0 -1
- package/web/assets/classDiagram-v2-VYDZK3BY-3MjcAlEg.js +0 -1
- package/web/assets/defaultLocale-DX6XiGOO.js +0 -1
- package/web/assets/diagram-UQ7AKVKN-BTwiIaPc.js +0 -41
- package/web/assets/diagram-VX7I27RA-D7q4-3AT.js +0 -24
- package/web/assets/ganttDiagram-EL5Y4UJY-vlHd9G-X.js +0 -292
- package/web/assets/index-BR8XdK24.css +0 -10
- package/web/assets/index-DbiDWni2.js +0 -132
- package/web/assets/init-Gi6I4Gst.js +0 -1
- package/web/assets/linear-BGy1XJDe.js +0 -1
- package/web/assets/mermaid.core-Cs4mHSDx.js +0 -310
- package/web/assets/ordinal-Cboi1Yqb.js +0 -1
- package/web/assets/pieDiagram-E7YTZNPT-jayNmJXa.js +0 -39
- package/web/assets/sankeyDiagram-P5KCCOFB-C6lDQqqQ.js +0 -40
- package/web/assets/stateDiagram-v2-MP3YSRHH-E-_Zm8Sn.js +0 -1
- package/web/assets/swimlanesDiagram-VR7AAH4N-CmRo6glR.js +0 -8
- package/web/assets/xychartDiagram-S5SC5T6Z-D_jJ1aSx.js +0 -7
- package/web/assets/zh-TW-DQuUD6Mh.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as a}from"./init-Gi6I4Gst.js";class o extends Map{constructor(n,t=g){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),n!=null)for(const[r,s]of n)this.set(r,s)}get(n){return super.get(c(this,n))}has(n){return super.has(c(this,n))}set(n,t){return super.set(l(this,n),t)}delete(n){return super.delete(p(this,n))}}function c({_intern:e,_key:n},t){const r=n(t);return e.has(r)?e.get(r):t}function l({_intern:e,_key:n},t){const r=n(t);return e.has(r)?e.get(r):(e.set(r,t),t)}function p({_intern:e,_key:n},t){const r=n(t);return e.has(r)&&(t=e.get(r),e.delete(r)),t}function g(e){return e!==null&&typeof e=="object"?e.valueOf():e}const f=Symbol("implicit");function h(){var e=new o,n=[],t=[],r=f;function s(u){let i=e.get(u);if(i===void 0){if(r!==f)return r;e.set(u,i=n.push(u)-1)}return t[i%t.length]}return s.domain=function(u){if(!arguments.length)return n.slice();n=[],e=new o;for(const i of u)e.has(i)||e.set(i,n.push(i)-1);return s},s.range=function(u){return arguments.length?(t=Array.from(u),s):t.slice()},s.unknown=function(u){return arguments.length?(r=u,s):r},s.copy=function(){return h(n,t).unknown(r)},a.apply(s,arguments),s}export{h as o};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import{p as rt}from"./chunk-JWPE2WC7-3njPjsZ7.js";import{aa as T,a2 as B,b3 as nt,g as it,s as ot,a as st,b as lt,o as ct,n as ut,_ as d,l as G,c as gt,A as dt,D as pt,L as ht,d as ft,p as mt,B as vt}from"./mermaid.core-Cs4mHSDx.js";import{p as xt}from"./cynefin-OW5HDTMX-MFqxALpy.js";import{d as J}from"./arc-DH2fkX5T.js";import{o as St}from"./ordinal-Cboi1Yqb.js";import"./index-DbiDWni2.js";import"./init-Gi6I4Gst.js";function yt(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function wt(t){return t}function At(){var t=wt,n=yt,y=null,b=T(0),l=T(B),p=T(0);function i(e){var r,s=(e=nt(e)).length,h,w,$=0,f=new Array(s),o=new Array(s),D=+b.apply(this,arguments),E=Math.min(B,Math.max(-B,l.apply(this,arguments)-D)),k,R=Math.min(Math.abs(E)/s,p.apply(this,arguments)),u=R*(E<0?-1:1),A;for(r=0;r<s;++r)(A=o[f[r]=r]=+t(e[r],r,e))>0&&($+=A);for(n!=null?f.sort(function(M,m){return n(o[M],o[m])}):y!=null&&f.sort(function(M,m){return y(e[M],e[m])}),r=0,w=$?(E-s*u)/$:0;r<s;++r,D=k)h=f[r],A=o[h],k=D+(A>0?A*w:0)+u,o[h]={data:e[h],index:r,value:A,startAngle:D,endAngle:k,padAngle:R};return o}return i.value=function(e){return arguments.length?(t=typeof e=="function"?e:T(+e),i):t},i.sortValues=function(e){return arguments.length?(n=e,y=null,i):n},i.sort=function(e){return arguments.length?(y=e,n=null,i):y},i.startAngle=function(e){return arguments.length?(b=typeof e=="function"?e:T(+e),i):b},i.endAngle=function(e){return arguments.length?(l=typeof e=="function"?e:T(+e),i):l},i.padAngle=function(e){return arguments.length?(p=typeof e=="function"?e:T(+e),i):p},i}var Ct=vt.pie,I={sections:new Map,showData:!1},F=I.sections,V=I.showData,$t=structuredClone(Ct),Dt=d(()=>structuredClone($t),"getConfig"),Tt=d(()=>{F=new Map,V=I.showData,mt()},"clear"),bt=d(({label:t,value:n})=>{if(n<0)throw new Error(`"${t}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);F.has(t)||(F.set(t,n),G.debug(`added new section: ${t}, with value: ${n}`))},"addSection"),kt=d(()=>F,"getSections"),zt=d(t=>{V=t},"setShowData"),Et=d(()=>V,"getShowData"),K={getConfig:Dt,clear:Tt,setDiagramTitle:ut,getDiagramTitle:ct,setAccTitle:lt,getAccTitle:st,setAccDescription:ot,getAccDescription:it,addSection:bt,getSections:kt,setShowData:zt,getShowData:Et},Mt=d((t,n)=>{rt(t,n),n.setShowData(t.showData),t.sections.map(n.addSection)},"populateDb"),Lt={parse:d(async t=>{const n=await xt("pie",t);G.debug(n),Mt(n,K)},"parse")},Rt=d(t=>`
|
|
2
|
-
.pieCircle{
|
|
3
|
-
stroke: ${t.pieStrokeColor};
|
|
4
|
-
stroke-width : ${t.pieStrokeWidth};
|
|
5
|
-
opacity : ${t.pieOpacity};
|
|
6
|
-
}
|
|
7
|
-
.pieCircle.highlighted{
|
|
8
|
-
scale: 1.05;
|
|
9
|
-
opacity: 1;
|
|
10
|
-
}
|
|
11
|
-
.pieCircle.highlightedOnHover:hover{
|
|
12
|
-
transition-duration: 250ms;
|
|
13
|
-
scale: 1.05;
|
|
14
|
-
opacity: 1;
|
|
15
|
-
}
|
|
16
|
-
.pieOuterCircle{
|
|
17
|
-
stroke: ${t.pieOuterStrokeColor};
|
|
18
|
-
stroke-width: ${t.pieOuterStrokeWidth};
|
|
19
|
-
fill: none;
|
|
20
|
-
}
|
|
21
|
-
.pieTitleText {
|
|
22
|
-
text-anchor: middle;
|
|
23
|
-
font-size: ${t.pieTitleTextSize};
|
|
24
|
-
fill: ${t.pieTitleTextColor};
|
|
25
|
-
font-family: ${t.fontFamily};
|
|
26
|
-
}
|
|
27
|
-
.slice {
|
|
28
|
-
font-family: ${t.fontFamily};
|
|
29
|
-
fill: ${t.pieSectionTextColor};
|
|
30
|
-
font-size:${t.pieSectionTextSize};
|
|
31
|
-
// fill: white;
|
|
32
|
-
}
|
|
33
|
-
.legend text {
|
|
34
|
-
fill: ${t.pieLegendTextColor};
|
|
35
|
-
font-family: ${t.fontFamily};
|
|
36
|
-
font-size: ${t.pieLegendTextSize};
|
|
37
|
-
}
|
|
38
|
-
`,"getStyles"),Wt=Rt,_t=d(t=>{const n=[...t.values()].reduce((l,p)=>l+p,0),y=[...t.entries()].map(([l,p])=>({label:l,value:p})).filter(l=>l.value/n*100>=1);return At().value(l=>l.value).sort(null)(y)},"createPieArcs"),Ft=d((t,n,y,b)=>{var q;G.debug(`rendering pie chart
|
|
39
|
-
`+t);const l=b.db,p=gt(),i=dt(l.getConfig(),p.pie),e=40,r=18,s=4,h=450,w=h,$=pt(n),f=$.append("g");f.attr("transform","translate("+w/2+","+h/2+")");const{themeVariables:o}=p;let[D]=ht(o.pieOuterStrokeWidth);D??(D=2);const E=i.legendPosition,k=i.textPosition,R=i.donutHole>0&&i.donutHole<=.9?i.donutHole:0,u=Math.min(w,h)/2-e,A=J().innerRadius(R*u).outerRadius(u),M=J().innerRadius(u*k).outerRadius(u*k),m=f.append("g");m.append("circle").attr("cx",0).attr("cy",0).attr("r",u+D/2).attr("class","pieOuterCircle");const W=l.getSections(),Q=_t(W),Y=[o.pie1,o.pie2,o.pie3,o.pie4,o.pie5,o.pie6,o.pie7,o.pie8,o.pie9,o.pie10,o.pie11,o.pie12];let H=0;W.forEach(a=>{H+=a});const U=Q.filter(a=>(a.data.value/H*100).toFixed(0)!=="0"),N=St(Y).domain([...W.keys()]);m.selectAll("mySlices").data(U).enter().append("path").attr("d",A).attr("fill",a=>N(a.data.label)).attr("class",a=>{let c="pieCircle";return i.highlightSlice==="hover"?c+=" highlightedOnHover":i.highlightSlice===a.data.label&&(c+=" highlighted"),c}),m.selectAll("mySlices").data(U).enter().append("text").text(a=>(a.data.value/H*100).toFixed(0)+"%").attr("transform",a=>"translate("+M.centroid(a)+")").style("text-anchor","middle").attr("class","slice");const tt=f.append("text").text(l.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText"),L=[...W.entries()].map(([a,c])=>({label:a,value:c})),C=f.selectAll(".legend").data(L).enter().append("g").attr("class","legend");C.append("rect").attr("width",r).attr("height",r).style("fill",a=>N(a.label)).style("stroke",a=>N(a.label)),C.append("text").attr("x",r+s).attr("y",r-s).text(a=>l.getShowData()?`${a.label} [${a.value}]`:a.label);const z=Math.max(...C.selectAll("text").nodes().map(a=>(a==null?void 0:a.getBoundingClientRect().width)??0));let _=h,O=w+e;const g=r+s,P=L.length*g;switch(E){case"center":C.attr("transform",(a,c)=>{const v=g*L.length/2,x=-z/2-(r+s),S=c*g-v;return"translate("+x+","+S+")"});break;case"top":_+=P,C.attr("transform",(a,c)=>{const v=u,x=-z/2-(r+s),S=c*g-v;return`translate(${x}, ${S})`}),m.attr("transform",()=>`translate(0, ${P+g})`);break;case"bottom":_+=P,C.attr("transform",(a,c)=>{const v=-u-g,x=-z/2-(r+s),S=c*g-v;return"translate("+x+","+S+")"});break;case"left":O+=r+s+z,C.attr("transform",(a,c)=>{const v=g*L.length/2,x=-u-(r+s),S=c*g-v;return"translate("+x+","+S+")"}),m.attr("transform",()=>`translate(${z+r+s}, 0)`);break;case"right":default:O+=r+s+z,C.attr("transform",(a,c)=>{const v=g*L.length/2,x=12*r,S=c*g-v;return"translate("+x+","+S+")"});break}const j=((q=tt.node())==null?void 0:q.getBoundingClientRect().width)??0,et=w/2-j/2,at=w/2+j/2,X=Math.min(0,et),Z=Math.max(O,at)-X;$.attr("viewBox",`${X} 0 ${Z} ${_}`),ft($,_,Z,i.useMaxWidth)},"draw"),Ht={draw:Ft},jt={parser:Lt,db:K,renderer:Ht,styles:Wt};export{jt as diagram};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import{n as xt,o as _t,s as vt,g as bt,b as St,a as wt,_ as d,c as lt,b7 as Lt,j as H,X as Et,p as At,k as Tt}from"./mermaid.core-Cs4mHSDx.js";import{o as Mt}from"./ordinal-Cboi1Yqb.js";import"./index-DbiDWni2.js";import"./init-Gi6I4Gst.js";function Nt(t){for(var n=t.length/6|0,s=new Array(n),a=0;a<n;)s[a]="#"+t.slice(a*6,++a*6);return s}const Ct=Nt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ct(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s<u||s===void 0&&u>=u)&&(s=u)}return s}function pt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function nt(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function Pt(t){return t.target.depth}function It(t){return t.depth}function Ot(t,n){return n-1-t.height}function kt(t,n){return t.sourceLinks.length?t.depth:n-1}function $t(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,Pt)-1:0}function q(t){return function(){return t}}function ut(t,n){return Q(t.source,n.source)||t.index-n.index}function ht(t,n){return Q(t.target,n.target)||t.index-n.index}function Q(t,n){return t.y0-n.y0}function it(t){return t.value}function jt(t){return t.index}function Dt(t){return t.nodes}function zt(t){return t.links}function ft(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function yt({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function Bt(){let t=0,n=0,s=1,a=1,u=24,y=8,p,m=jt,o=kt,l,h,x=Dt,_=zt,g=6;function v(){const i={nodes:x.apply(null,arguments),links:_.apply(null,arguments)};return T(i),A(i),M(i),I(i),S(i),yt(i),i}v.update=function(i){return yt(i),i},v.nodeId=function(i){return arguments.length?(m=typeof i=="function"?i:q(i),v):m},v.nodeAlign=function(i){return arguments.length?(o=typeof i=="function"?i:q(i),v):o},v.nodeSort=function(i){return arguments.length?(l=i,v):l},v.nodeWidth=function(i){return arguments.length?(u=+i,v):u},v.nodePadding=function(i){return arguments.length?(y=p=+i,v):y},v.nodes=function(i){return arguments.length?(x=typeof i=="function"?i:q(i),v):x},v.links=function(i){return arguments.length?(_=typeof i=="function"?i:q(i),v):_},v.linkSort=function(i){return arguments.length?(h=i,v):h},v.size=function(i){return arguments.length?(t=n=0,s=+i[0],a=+i[1],v):[s-t,a-n]},v.extent=function(i){return arguments.length?(t=+i[0][0],s=+i[1][0],n=+i[0][1],a=+i[1][1],v):[[t,n],[s,a]]},v.iterations=function(i){return arguments.length?(g=+i,v):g};function T({nodes:i,links:f}){for(const[e,r]of i.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const c=new Map(i.map((e,r)=>[m(e,r,i),e]));for(const[e,r]of f.entries()){r.index=e;let{source:k,target:b}=r;typeof k!="object"&&(k=r.source=ft(c,k)),typeof b!="object"&&(b=r.target=ft(c,b)),k.sourceLinks.push(r),b.targetLinks.push(r)}if(h!=null)for(const{sourceLinks:e,targetLinks:r}of i)e.sort(h),r.sort(h)}function A({nodes:i}){for(const f of i)f.value=f.fixedValue===void 0?Math.max(nt(f.sourceLinks,it),nt(f.targetLinks,it)):f.fixedValue}function M({nodes:i}){const f=i.length;let c=new Set(i),e=new Set,r=0;for(;c.size;){for(const k of c){k.depth=r;for(const{target:b}of k.sourceLinks)e.add(b)}if(++r>f)throw new Error("circular link");c=e,e=new Set}}function I({nodes:i}){const f=i.length;let c=new Set(i),e=new Set,r=0;for(;c.size;){for(const k of c){k.height=r;for(const{source:b}of k.targetLinks)e.add(b)}if(++r>f)throw new Error("circular link");c=e,e=new Set}}function N({nodes:i}){const f=ct(i,r=>r.depth)+1,c=(s-t-u)/(f-1),e=new Array(f);for(const r of i){const k=Math.max(0,Math.min(f-1,Math.floor(o.call(null,r,f))));r.layer=k,r.x0=t+k*c,r.x1=r.x0+u,e[k]?e[k].push(r):e[k]=[r]}if(l)for(const r of e)r.sort(l);return e}function j(i){const f=pt(i,c=>(a-n-(c.length-1)*p)/nt(c,it));for(const c of i){let e=n;for(const r of c){r.y0=e,r.y1=e+r.value*f,e=r.y1+p;for(const k of r.sourceLinks)k.width=k.value*f}e=(a-e+p)/(c.length+1);for(let r=0;r<c.length;++r){const k=c[r];k.y0+=e*(r+1),k.y1+=e*(r+1)}w(c)}}function S(i){const f=N(i);p=Math.min(y,(a-n)/(ct(f,c=>c.length)-1)),j(f);for(let c=0;c<g;++c){const e=Math.pow(.99,c),r=Math.max(1-e,(c+1)/g);R(f,e,r),C(f,e,r)}}function C(i,f,c){for(let e=1,r=i.length;e<r;++e){const k=i[e];for(const b of k){let L=0,B=0;for(const{source:X,value:et}of b.targetLinks){let Y=et*(b.layer-X.layer);L+=P(X,b)*Y,B+=Y}if(!(B>0))continue;let U=(L/B-b.y0)*f;b.y0+=U,b.y1+=U,z(b)}l===void 0&&k.sort(Q),D(k,c)}}function R(i,f,c){for(let e=i.length,r=e-2;r>=0;--r){const k=i[r];for(const b of k){let L=0,B=0;for(const{target:X,value:et}of b.sourceLinks){let Y=et*(X.layer-b.layer);L+=E(b,X)*Y,B+=Y}if(!(B>0))continue;let U=(L/B-b.y0)*f;b.y0+=U,b.y1+=U,z(b)}l===void 0&&k.sort(Q),D(k,c)}}function D(i,f){const c=i.length>>1,e=i[c];O(i,e.y0-p,c-1,f),V(i,e.y1+p,c+1,f),O(i,a,i.length-1,f),V(i,n,0,f)}function V(i,f,c,e){for(;c<i.length;++c){const r=i[c],k=(f-r.y0)*e;k>1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+p}}function O(i,f,c,e){for(;c>=0;--c){const r=i[c],k=(r.y1-f)*e;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-p}}function z({sourceLinks:i,targetLinks:f}){if(h===void 0){for(const{source:{sourceLinks:c}}of f)c.sort(ht);for(const{target:{targetLinks:c}}of i)c.sort(ut)}}function w(i){if(h===void 0)for(const{sourceLinks:f,targetLinks:c}of i)f.sort(ht),c.sort(ut)}function P(i,f){let c=i.y0-(i.sourceLinks.length-1)*p/2;for(const{target:e,width:r}of i.sourceLinks){if(e===f)break;c+=r+p}for(const{source:e,width:r}of f.targetLinks){if(e===i)break;c-=r}return c}function E(i,f){let c=f.y0-(f.targetLinks.length-1)*p/2;for(const{source:e,width:r}of f.targetLinks){if(e===i)break;c+=r+p}for(const{target:e,width:r}of i.sourceLinks){if(e===f)break;c-=r}return c}return v}var rt=Math.PI,st=2*rt,F=1e-6,Ft=st-F;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function mt(){return new ot}ot.prototype=mt.prototype={constructor:ot,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,y){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+y)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var y=this._x1,p=this._y1,m=s-t,o=a-n,l=y-t,h=p-n,x=l*l+h*h;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(x>F)if(!(Math.abs(h*m-o*l)>F)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var _=s-y,g=a-p,v=m*m+o*o,T=_*_+g*g,A=Math.sqrt(v),M=Math.sqrt(x),I=u*Math.tan((rt-Math.acos((v+x-T)/(2*A*M)))/2),N=I/M,j=I/A;Math.abs(N-1)>F&&(this._+="L"+(t+N*l)+","+(n+N*h)),this._+="A"+u+","+u+",0,0,"+ +(h*_>l*g)+","+(this._x1=t+j*m)+","+(this._y1=n+j*o)}},arc:function(t,n,s,a,u,y){t=+t,n=+n,s=+s,y=!!y;var p=s*Math.cos(a),m=s*Math.sin(a),o=t+p,l=n+m,h=1^y,x=y?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+l:(Math.abs(this._x1-o)>F||Math.abs(this._y1-l)>F)&&(this._+="L"+o+","+l),s&&(x<0&&(x=x%st+st),x>Ft?this._+="A"+s+","+s+",0,1,"+h+","+(t-p)+","+(n-m)+"A"+s+","+s+",0,1,"+h+","+(this._x1=o)+","+(this._y1=l):x>F&&(this._+="A"+s+","+s+",0,"+ +(x>=rt)+","+h+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function dt(t){return function(){return t}}function Rt(t){return t[0]}function Vt(t){return t[1]}var Wt=Array.prototype.slice;function Gt(t){return t.source}function Ut(t){return t.target}function Xt(t){var n=Gt,s=Ut,a=Rt,u=Vt,y=null;function p(){var m,o=Wt.call(arguments),l=n.apply(this,o),h=s.apply(this,o);if(y||(y=m=mt()),t(y,+a.apply(this,(o[0]=l,o)),+u.apply(this,o),+a.apply(this,(o[0]=h,o)),+u.apply(this,o)),m)return y=null,m+""||null}return p.source=function(m){return arguments.length?(n=m,p):n},p.target=function(m){return arguments.length?(s=m,p):s},p.x=function(m){return arguments.length?(a=typeof m=="function"?m:dt(+m),p):a},p.y=function(m){return arguments.length?(u=typeof m=="function"?m:dt(+m),p):u},p.context=function(m){return arguments.length?(y=m??null,p):y},p}function Yt(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function Ht(){return Xt(Yt)}function qt(t){return[t.source.x1,t.y0]}function Qt(t){return[t.target.x0,t.y1]}function Kt(){return Ht().source(qt).target(Qt)}var at=(function(){var t=d(function(m,o,l,h){for(l=l||{},h=m.length;h--;l[m[h]]=o);return l},"o"),n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:d(function(o,l,h,x,_,g,v){var T=g.length-1;switch(_){case 7:const A=x.findOrCreateNode(g[T-4].trim().replaceAll('""','"')),M=x.findOrCreateNode(g[T-2].trim().replaceAll('""','"')),I=parseFloat(g[T].trim());x.addLink(A,M,I);break;case 8:case 9:case 11:this.$=g[T];break;case 10:this.$=g[T-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:d(function(o,l){if(l.recoverable)this.trace(o);else{var h=new Error(o);throw h.hash=l,h}},"parseError"),parse:d(function(o){var l=this,h=[0],x=[],_=[null],g=[],v=this.table,T="",A=0,M=0,I=2,N=1,j=g.slice.call(arguments,1),S=Object.create(this.lexer),C={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(C.yy[R]=this.yy[R]);S.setInput(o,C.yy),C.yy.lexer=S,C.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var D=S.yylloc;g.push(D);var V=S.options&&S.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function O(L){h.length=h.length-2*L,_.length=_.length-L,g.length=g.length-L}d(O,"popStack");function z(){var L;return L=x.pop()||S.lex()||N,typeof L!="number"&&(L instanceof Array&&(x=L,L=x.pop()),L=l.symbols_[L]||L),L}d(z,"lex");for(var w,P,E,i,f={},c,e,r,k;;){if(P=h[h.length-1],this.defaultActions[P]?E=this.defaultActions[P]:((w===null||typeof w>"u")&&(w=z()),E=v[P]&&v[P][w]),typeof E>"u"||!E.length||!E[0]){var b="";k=[];for(c in v[P])this.terminals_[c]&&c>I&&k.push("'"+this.terminals_[c]+"'");S.showPosition?b="Parse error on line "+(A+1)+`:
|
|
2
|
-
`+S.showPosition()+`
|
|
3
|
-
Expecting `+k.join(", ")+", got '"+(this.terminals_[w]||w)+"'":b="Parse error on line "+(A+1)+": Unexpected "+(w==N?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(b,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:D,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+w);switch(E[0]){case 1:h.push(w),_.push(S.yytext),g.push(S.yylloc),h.push(E[1]),w=null,M=S.yyleng,T=S.yytext,A=S.yylineno,D=S.yylloc;break;case 2:if(e=this.productions_[E[1]][1],f.$=_[_.length-e],f._$={first_line:g[g.length-(e||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(e||1)].first_column,last_column:g[g.length-1].last_column},V&&(f._$.range=[g[g.length-(e||1)].range[0],g[g.length-1].range[1]]),i=this.performAction.apply(f,[T,M,A,C.yy,E[1],_,g].concat(j)),typeof i<"u")return i;e&&(h=h.slice(0,-1*e*2),_=_.slice(0,-1*e),g=g.slice(0,-1*e)),h.push(this.productions_[E[1]][0]),_.push(f.$),g.push(f._$),r=v[h[h.length-2]][h[h.length-1]],h.push(r);break;case 3:return!0}}return!0},"parse")},y=(function(){var m={EOF:1,parseError:d(function(l,h){if(this.yy.parser)this.yy.parser.parseError(l,h);else throw new Error(l)},"parseError"),setInput:d(function(o,l){return this.yy=l||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var l=o.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:d(function(o){var l=o.length,h=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===x.length?this.yylloc.first_column:0)+x[x.length-h.length].length-h[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(o){this.unput(this.match.slice(o))},"less"),pastInput:d(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var o=this.pastInput(),l=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
5
|
-
`+l+"^"},"showPosition"),test_match:d(function(o,l){var h,x,_;if(this.options.backtrack_lexer&&(_={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(_.yylloc.range=this.yylloc.range.slice(0))),x=o[0].match(/(?:\r\n?|\n).*/g),x&&(this.yylineno+=x.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],h=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),h)return h;if(this._backtrack){for(var g in _)this[g]=_[g];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,l,h,x;this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),g=0;g<_.length;g++)if(h=this._input.match(this.rules[_[g]]),h&&(!l||h[0].length>l[0].length)){if(l=h,x=g,this.options.backtrack_lexer){if(o=this.test_match(h,_[g]),o!==!1)return o;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(o=this.test_match(l,_[x]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:d(function(){var l=this.next();return l||this.lex()},"lex"),begin:d(function(l){this.conditionStack.push(l)},"begin"),popState:d(function(){var l=this.conditionStack.length-1;return l>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:d(function(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},"topState"),pushState:d(function(l){this.begin(l)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:d(function(l,h,x,_){switch(x){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return m})();u.lexer=y;function p(){this.yy={}}return d(p,"Parser"),p.prototype=u,u.Parser=p,new p})();at.parser=at;var K=at,J=[],tt=[],Z=new Map,Zt=d(()=>{J=[],tt=[],Z=new Map,At()},"clear"),W,Jt=(W=class{constructor(n,s,a=0){this.source=n,this.target=s,this.value=a}},d(W,"SankeyLink"),W),te=d((t,n,s)=>{J.push(new Jt(t,n,s))},"addLink"),G,ee=(G=class{constructor(n){this.ID=n}},d(G,"SankeyNode"),G),ne=d(t=>{t=Tt.sanitizeText(t,lt());let n=Z.get(t);return n===void 0&&(n=new ee(t),Z.set(t,n),tt.push(n)),n},"findOrCreateNode"),ie=d(()=>tt,"getNodes"),re=d(()=>J,"getLinks"),se=d(()=>({nodes:tt.map(t=>({id:t.ID})),links:J.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),oe={nodesMap:Z,getConfig:d(()=>lt().sankey,"getConfig"),getNodes:ie,getLinks:re,getGraph:se,addLink:te,findOrCreateNode:ne,getAccTitle:wt,setAccTitle:St,getAccDescription:bt,setAccDescription:vt,getDiagramTitle:_t,setDiagramTitle:xt,clear:Zt},$,gt=($=class{static next(n){return new $(n+ ++$.count)}constructor(n){this.id=n,this.href=`#${n}`}toString(){return"url("+this.href+")"}},d($,"Uid"),$.count=0,$),ae={left:It,right:Ot,center:$t,justify:kt},le=d(t=>{let n=0,s=0;for(const a of t){const u=a.value??0;u>n&&(n=u,s=a.layer??0)}return s},"findCentralNodeLayer"),ce=d(function(t,n,s,a){const{securityLevel:u,sankey:y}=lt(),p=Lt.sankey;let m;u==="sandbox"&&(m=H("#i"+n));const o=u==="sandbox"?H(m.nodes()[0].contentDocument.body):H("body"),l=u==="sandbox"?o.select(`[id="${n}"]`):H(`[id="${n}"]`),h=(y==null?void 0:y.width)??p.width,x=(y==null?void 0:y.height)??p.width,_=(y==null?void 0:y.useMaxWidth)??p.useMaxWidth,g=(y==null?void 0:y.nodeAlignment)??p.nodeAlignment,v=(y==null?void 0:y.prefix)??p.prefix,T=(y==null?void 0:y.suffix)??p.suffix,A=(y==null?void 0:y.showValues)??p.showValues,M=(y==null?void 0:y.nodeWidth)??p.nodeWidth??10,I=(y==null?void 0:y.nodePadding)??p.nodePadding??12,N=(y==null?void 0:y.labelStyle)??p.labelStyle??"legacy",j=(y==null?void 0:y.nodeColors)??{},S=a.db.getGraph(),C=ae[g];Bt().nodeId(e=>e.id).nodeWidth(M).nodePadding(I+(A?15:0)).nodeAlign(C).extent([[0,0],[h,x]])(S);const D=le(S.nodes),V=Mt(Ct),O=d(e=>j[e]??V(e),"getNodeColor");l.append("g").attr("class","nodes").selectAll(".node").data(S.nodes).join("g").attr("class","node").attr("id",e=>(e.uid=gt.next("node-")).id).attr("transform",function(e){return"translate("+e.x0+","+e.y0+")"}).attr("x",e=>e.x0).attr("y",e=>e.y0).append("rect").attr("height",e=>e.y1-e.y0).attr("width",e=>e.x1-e.x0).attr("fill",e=>O(e.id));const z=d(({id:e,value:r})=>A?`${e}
|
|
7
|
-
${v}${Math.round(r*100)/100}${T}`:e,"getText"),w=d(e=>N==="outlined"?(e.layer??0)<D?{x:e.x0-6,anchor:"end"}:{x:e.x1+6,anchor:"start"}:e.x0<h/2?{x:e.x1+6,anchor:"start"}:{x:e.x0-6,anchor:"end"},"getLabelPosition"),P=l.append("g").attr("class","node-labels").attr("font-size",14),E=d(e=>P.selectAll(e?`.${e}`:"text").data(S.nodes).join("text").attr("class",e??null).attr("x",r=>w(r).x).attr("y",r=>(r.y1+r.y0)/2).attr("dy",`${A?"0":"0.35"}em`).attr("text-anchor",r=>w(r).anchor).text(z),"appendLabel");N==="outlined"?(E("sankey-label-bg"),E("sankey-label-fg")):E();const i=l.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(S.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),f=(y==null?void 0:y.linkColor)??"gradient";if(f==="gradient"){const e=i.append("linearGradient").attr("id",r=>(r.uid=gt.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",r=>r.source.x1).attr("x2",r=>r.target.x0);e.append("stop").attr("offset","0%").attr("stop-color",r=>O(r.source.id)),e.append("stop").attr("offset","100%").attr("stop-color",r=>O(r.target.id))}let c;switch(f){case"gradient":c=d(e=>e.uid,"coloring");break;case"source":c=d(e=>O(e.source.id),"coloring");break;case"target":c=d(e=>O(e.target.id),"coloring");break;default:c=f}i.append("path").attr("d",Kt()).attr("stroke",c).attr("stroke-width",e=>Math.max(1,e.width)),Et(void 0,l,0,_)},"draw"),ue={draw:ce},he=d(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
|
|
8
|
-
`).trim(),"prepareTextForParsing"),fe=d(t=>`.label {
|
|
9
|
-
font-family: ${t.fontFamily};
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.node-labels {
|
|
13
|
-
font-family: ${t.fontFamily};
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/* Outlined label style - background stroke for better readability */
|
|
17
|
-
.sankey-label-bg {
|
|
18
|
-
stroke: ${t.mainBkg||t.background||"#fff"};
|
|
19
|
-
stroke-width: 4px;
|
|
20
|
-
stroke-linejoin: round;
|
|
21
|
-
paint-order: stroke;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/* Foreground label text */
|
|
25
|
-
.sankey-label-fg {
|
|
26
|
-
fill: ${t.textColor};
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/* Node styling */
|
|
30
|
-
.node rect {
|
|
31
|
-
shape-rendering: crispEdges;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/* Link styling */
|
|
35
|
-
.link {
|
|
36
|
-
fill: none;
|
|
37
|
-
stroke-opacity: 0.5;
|
|
38
|
-
mix-blend-mode: multiply;
|
|
39
|
-
}
|
|
40
|
-
`,"getStyles"),ye=fe,de=K.parse.bind(K);K.parse=t=>de(he(t));var xe={styles:ye,parser:K,db:oe,renderer:ue};export{xe as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as r,b as e,a,S as s}from"./chunk-IMKFNOWR-Dz5iR6Xc.js";import{_ as i}from"./mermaid.core-Cs4mHSDx.js";import"./chunk-XXDRQBXY-CC3Wlgli.js";import"./chunk-POPQ4Y6H-Czwjluly.js";import"./chunk-F27PBJKO-ZHDNvYdk.js";import"./index-DbiDWni2.js";var u={parser:a,get db(){return new s(2)},renderer:e,styles:r,init:i(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{u as diagram};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{c as r,s as e}from"./flowDiagram-HODETNUW-2qG8EaAn.js";import{_ as a}from"./mermaid.core-Cs4mHSDx.js";import"./chunk-5VM5RSS4-0Zj8cbb-.js";import"./chunk-XXDRQBXY-CC3Wlgli.js";import"./chunk-POPQ4Y6H-Czwjluly.js";import"./chunk-F27PBJKO-ZHDNvYdk.js";import"./index-DbiDWni2.js";import"./channel-DOSIYATf.js";var o=a(t=>`${e(t)}
|
|
2
|
-
.swimlane.cluster rect {
|
|
3
|
-
stroke: ${t.clusterBorder} !important;
|
|
4
|
-
}
|
|
5
|
-
[data-look="neo"].cluster rect {
|
|
6
|
-
filter: none;
|
|
7
|
-
}
|
|
8
|
-
`,"getStyles"),s=o,n=r({defaultLayout:"swimlane",styles:s});export{n as diagram};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{s as pi,g as mi,o as $t,n as yi,a as bi,b as wi,_ as a,l as Ut,D as Ai,d as Ci,p as Si,y as Dt,i as Ri,A as Gt,B as _i,E as ki,aB as Ti,Q as Xt}from"./mermaid.core-Cs4mHSDx.js";import{i as Di}from"./init-Gi6I4Gst.js";import{o as Pi}from"./ordinal-Cboi1Yqb.js";import{l as Nt}from"./linear-BGy1XJDe.js";import"./index-DbiDWni2.js";import"./defaultLocale-DX6XiGOO.js";function vi(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s<n;)o[s]=e+s*i;return o}function St(){var e=Pi().unknown(void 0),t=e.domain,i=e.range,s=0,n=1,o,h,p=!1,u=0,f=0,R=.5;delete e.unknown;function C(){var y=t().length,E=n<s,v=E?n:s,L=E?s:n;o=(L-v)/Math.max(1,y-u+f*2),p&&(o=Math.floor(o)),v+=(L-v-o*(y-u))*R,h=o*(1-u),p&&(v=Math.round(v),h=Math.round(h));var M=vi(y).map(function(b){return v+o*b});return i(E?M.reverse():M)}return e.domain=function(y){return arguments.length?(t(y),C()):t()},e.range=function(y){return arguments.length?([s,n]=y,s=+s,n=+n,C()):[s,n]},e.rangeRound=function(y){return[s,n]=y,s=+s,n=+n,p=!0,C()},e.bandwidth=function(){return h},e.step=function(){return o},e.round=function(y){return arguments.length?(p=!!y,C()):p},e.padding=function(y){return arguments.length?(u=Math.min(1,f=+y),C()):u},e.paddingInner=function(y){return arguments.length?(u=Math.min(1,y),C()):u},e.paddingOuter=function(y){return arguments.length?(f=+y,C()):f},e.align=function(y){return arguments.length?(R=Math.max(0,Math.min(1,y)),C()):R},e.copy=function(){return St(t(),[s,n]).round(p).paddingInner(u).paddingOuter(f).align(R)},Di.apply(C(),arguments)}var Rt=(function(){var e=a(function(W,l,g,d){for(g=g||{},d=W.length;d--;g[W[d]]=l);return g},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],o=[1,6],h=[1,7],p=[1,5,10,12,14,16,18,19,21,23,36,37,38],u=[1,25],f=[1,26],R=[1,28],C=[1,29],y=[1,30],E=[1,31],v=[1,32],L=[1,33],M=[1,34],b=[1,35],D=[1,36],c=[1,37],z=[1,43],F=[1,42],X=[1,47],N=[1,50],k=[1,10,12,14,16,18,19,21,23,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],A=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],S=[1,65],O=[26,28],T={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:a(function(l,g,d,x,_,r,lt){var m=r.length-1;switch(_){case 5:x.setOrientation(r[m]);break;case 9:x.setDiagramTitle(r[m].text.trim());break;case 12:x.setLineData({text:"",type:"text"},r[m]);break;case 13:x.setLineData(r[m-1],r[m]);break;case 14:x.setBarData({text:"",type:"text"},r[m]);break;case 15:x.setBarData(r[m-1],r[m]);break;case 16:this.$=r[m].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=r[m].trim(),x.setAccDescription(this.$);break;case 19:this.$=r[m-1];break;case 20:case 30:this.$=[r[m-2],...r[m]];break;case 21:case 31:this.$=[r[m]];break;case 22:this.$={value:Number(r[m-1]),label:r[m]};break;case 23:this.$={value:Number(r[m]),label:""};break;case 24:x.setXAxisTitle(r[m]);break;case 25:x.setXAxisTitle(r[m-1]);break;case 26:x.setXAxisTitle({type:"text",text:""});break;case 27:x.setXAxisBand(r[m]);break;case 28:x.setXAxisRangeData(Number(r[m-2]),Number(r[m]));break;case 29:this.$=r[m-1];break;case 32:x.setYAxisTitle(r[m]);break;case 33:x.setYAxisTitle(r[m-1]);break;case 34:x.setYAxisTitle({type:"text",text:""});break;case 35:x.setYAxisRangeData(Number(r[m-2]),Number(r[m]));break;case 39:this.$={text:r[m],type:"text"};break;case 40:this.$={text:r[m],type:"text"};break;case 41:this.$={text:r[m],type:"markdown"};break;case 42:this.$=r[m];break;case 43:this.$=r[m-1]+""+r[m];break}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,36:n,37:o,38:h}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,36:n,37:o,38:h}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:n,37:o,38:h}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(p,[2,36]),e(p,[2,37]),e(p,[2,38]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,36:n,37:o,38:h}),{1:[2,3]},e(p,[2,5]),e(t,[2,7],{4:22,36:n,37:o,38:h}),{11:23,30:u,39:24,40:f,41:27,42:R,43:C,44:y,45:E,46:v,47:L,48:M,49:b,50:D,51:c},{11:39,13:38,24:z,29:F,30:u,31:40,32:41,39:24,40:f,41:27,42:R,43:C,44:y,45:E,46:v,47:L,48:M,49:b,50:D,51:c},{11:45,15:44,29:X,30:u,35:46,39:24,40:f,41:27,42:R,43:C,44:y,45:E,46:v,47:L,48:M,49:b,50:D,51:c},{11:49,17:48,24:N,30:u,39:24,40:f,41:27,42:R,43:C,44:y,45:E,46:v,47:L,48:M,49:b,50:D,51:c},{11:52,17:51,24:N,30:u,39:24,40:f,41:27,42:R,43:C,44:y,45:E,46:v,47:L,48:M,49:b,50:D,51:c},{20:[1,53]},{22:[1,54]},e(k,[2,18]),{1:[2,2]},e(k,[2,8]),e(k,[2,9]),e(H,[2,39],{41:55,42:R,43:C,44:y,45:E,46:v,47:L,48:M,49:b,50:D,51:c}),e(H,[2,40]),e(H,[2,41]),e(A,[2,42]),e(A,[2,44]),e(A,[2,45]),e(A,[2,46]),e(A,[2,47]),e(A,[2,48]),e(A,[2,49]),e(A,[2,50]),e(A,[2,51]),e(A,[2,52]),e(A,[2,53]),e(k,[2,10]),e(k,[2,24],{32:41,31:56,24:z,29:F}),e(k,[2,26]),e(k,[2,27]),{33:[1,57]},{11:59,30:u,34:58,39:24,40:f,41:27,42:R,43:C,44:y,45:E,46:v,47:L,48:M,49:b,50:D,51:c},e(k,[2,11]),e(k,[2,32],{35:60,29:X}),e(k,[2,34]),{33:[1,61]},e(k,[2,12]),{17:62,24:N},{25:63,27:64,29:S},e(k,[2,14]),{17:66,24:N},e(k,[2,16]),e(k,[2,17]),e(A,[2,43]),e(k,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(k,[2,33]),{29:[1,70]},e(k,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(O,[2,23],{30:[1,73]}),e(k,[2,15]),e(k,[2,28]),e(k,[2,29]),{11:59,30:u,34:74,39:24,40:f,41:27,42:R,43:C,44:y,45:E,46:v,47:L,48:M,49:b,50:D,51:c},e(k,[2,35]),e(k,[2,19]),{25:75,27:64,29:S},e(O,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:a(function(l,g){if(g.recoverable)this.trace(l);else{var d=new Error(l);throw d.hash=g,d}},"parseError"),parse:a(function(l){var g=this,d=[0],x=[],_=[null],r=[],lt=this.table,m="",dt=0,Ot=0,ui=2,Vt=1,di=r.slice.call(arguments,1),P=Object.create(this.lexer),$={yy:{}};for(var bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,bt)&&($.yy[bt]=this.yy[bt]);P.setInput(l,$.yy),$.yy.lexer=P,$.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var wt=P.yylloc;r.push(wt);var xi=P.options&&P.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fi(B){d.length=d.length-2*B,_.length=_.length-B,r.length=r.length-B}a(fi,"popStack");function Ft(){var B;return B=x.pop()||P.lex()||Vt,typeof B!="number"&&(B instanceof Array&&(x=B,B=x.pop()),B=g.symbols_[B]||B),B}a(Ft,"lex");for(var I,U,V,At,j={},xt,Y,Wt,ft;;){if(U=d[d.length-1],this.defaultActions[U]?V=this.defaultActions[U]:((I===null||typeof I>"u")&&(I=Ft()),V=lt[U]&<[U][I]),typeof V>"u"||!V.length||!V[0]){var Ct="";ft=[];for(xt in lt[U])this.terminals_[xt]&&xt>ui&&ft.push("'"+this.terminals_[xt]+"'");P.showPosition?Ct="Parse error on line "+(dt+1)+`:
|
|
2
|
-
`+P.showPosition()+`
|
|
3
|
-
Expecting `+ft.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Ct="Parse error on line "+(dt+1)+": Unexpected "+(I==Vt?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Ct,{text:P.match,token:this.terminals_[I]||I,line:P.yylineno,loc:wt,expected:ft})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+I);switch(V[0]){case 1:d.push(I),_.push(P.yytext),r.push(P.yylloc),d.push(V[1]),I=null,Ot=P.yyleng,m=P.yytext,dt=P.yylineno,wt=P.yylloc;break;case 2:if(Y=this.productions_[V[1]][1],j.$=_[_.length-Y],j._$={first_line:r[r.length-(Y||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(Y||1)].first_column,last_column:r[r.length-1].last_column},xi&&(j._$.range=[r[r.length-(Y||1)].range[0],r[r.length-1].range[1]]),At=this.performAction.apply(j,[m,Ot,dt,$.yy,V[1],_,r].concat(di)),typeof At<"u")return At;Y&&(d=d.slice(0,-1*Y*2),_=_.slice(0,-1*Y),r=r.slice(0,-1*Y)),d.push(this.productions_[V[1]][0]),_.push(j.$),r.push(j._$),Wt=lt[d[d.length-2]][d[d.length-1]],d.push(Wt);break;case 3:return!0}}return!0},"parse")},ht=(function(){var W={EOF:1,parseError:a(function(g,d){if(this.yy.parser)this.yy.parser.parseError(g,d);else throw new Error(g)},"parseError"),setInput:a(function(l,g){return this.yy=g||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var g=l.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:a(function(l){var g=l.length,d=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===x.length?this.yylloc.first_column:0)+x[x.length-d.length].length-d[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(l){this.unput(this.match.slice(l))},"less"),pastInput:a(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var l=this.pastInput(),g=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
|
|
5
|
-
`+g+"^"},"showPosition"),test_match:a(function(l,g){var d,x,_;if(this.options.backtrack_lexer&&(_={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(_.yylloc.range=this.yylloc.range.slice(0))),x=l[0].match(/(?:\r\n?|\n).*/g),x&&(this.yylineno+=x.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(l[0].length),this.matched+=l[0],d=this.performAction.call(this,this.yy,this,g,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var r in _)this[r]=_[r];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,g,d,x;this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),r=0;r<_.length;r++)if(d=this._input.match(this.rules[_[r]]),d&&(!g||d[0].length>g[0].length)){if(g=d,x=r,this.options.backtrack_lexer){if(l=this.test_match(d,_[r]),l!==!1)return l;if(this._backtrack){g=!1;continue}else return!1}else if(!this.options.flex)break}return g?(l=this.test_match(g,_[x]),l!==!1?l:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a(function(){var g=this.next();return g||this.lex()},"lex"),begin:a(function(g){this.conditionStack.push(g)},"begin"),popState:a(function(){var g=this.conditionStack.length-1;return g>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(g){return g=this.conditionStack.length-1-Math.abs(g||0),g>=0?this.conditionStack[g]:"INITIAL"},"topState"),pushState:a(function(g){this.begin(g)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(g,d,x,_){switch(x){case 0:break;case 1:break;case 2:return this.popState(),36;case 3:return this.popState(),36;case 4:return 36;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 33;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 29;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 44;case 33:return"COLON";case 34:return 45;case 35:return 28;case 36:return 46;case 37:return 47;case 38:return 49;case 39:return 51;case 40:return 48;case 41:return 42;case 42:return 50;case 43:return 43;case 44:break;case 45:return 37;case 46:return 38}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return W})();T.lexer=ht;function q(){this.yy={}}return a(q,"Parser"),q.prototype=T,T.Parser=q,new q})();Rt.parser=Rt;var Li=Rt;function pt(e){return e.type==="bar"}a(pt,"isBarPlot");function mt(e){return e.type==="band"}a(mt,"isBandAxisData");function Q(e){return e.type==="linear"}a(Q,"isLinearAxisData");var K,Pt=(K=class{constructor(t){this.parentGroup=t}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((o,h)=>Math.max(h.length,o),0)*i,height:i};const s={width:0,height:0},n=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const o of t){const h=Ti(n,1,o),p=h?h.width:o.length*i,u=h?h.height:i;s.width=Math.max(s.width,p),s.height=Math.max(s.height,u)}return n.remove(),s}},a(K,"TextDimensionCalculatorWithFont"),K),Yt=.7,Ht=.2,Z,qt=(Z=class{constructor(t,i,s,n){this.axisConfig=t,this.title=i,this.textDimensionCalculator=s,this.axisThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.normalizedLabelRotationInRad=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.normalizedLabelRotationInRad=this.axisConfig.labelRotation>=-90&&this.axisConfig.labelRotation<=90?this.axisConfig.labelRotation*Math.PI/180:0}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){Yt*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(Yt*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=Ht*t.width;this.outerPadding=Math.min(s.width/2,n);let o=s.height;this.axisPosition==="bottom"&&this.normalizedLabelRotationInRad!==0&&(o=Math.max(o,Math.abs(Math.sin(this.normalizedLabelRotationInRad)*s.width)+Math.abs(Math.cos(this.normalizedLabelRotationInRad)*s.height))),o+=this.axisConfig.labelPadding*2,this.labelTextHeight=s.height,o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=Ht*t.height;this.outerPadding=Math.min(s.height/2,n);const o=s.width+this.axisConfig.labelPadding*2;o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateOffsetByRotation(t){const i=this.normalizedLabelRotationInRad;return i===0?0:Math.sin(i)*this.getLabelDimension()[t]/2}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(i),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${i},${this.getScaleValue(s)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(s)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i)+this.calculateOffsetByRotation("height"),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0)+Math.abs(this.calculateOffsetByRotation("width")),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:this.normalizedLabelRotationInRad*180/Math.PI,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(s)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}},a(Z,"BaseAxis"),Z),J,Ei=(J=class extends qt{constructor(t,i,s,n,o){super(t,n,o,i),this.categories=s,this.scale=St().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=St().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),Ut.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},a(J,"BandAxis"),J),tt,Mi=(tt=class extends qt{constructor(t,i,s,n,o){super(t,n,o,i),this.domain=s,this.scale=Nt().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=Nt().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}},a(tt,"LinearAxis"),tt);function _t(e,t,i,s){const n=new Pt(s);return mt(e)?new Ei(t,i,e.categories,e.title,n):new Mi(t,i,[e.min,e.max],e.title,n)}a(_t,"getAxis");var it,Ii=(it=class{constructor(t,i,s,n){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=s,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),s=Math.max(i.width,t.width),n=i.height+2*this.chartConfig.titlePadding;return i.width<=s&&i.height<=n&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=s,this.boundingRect.height=n,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}},a(it,"ChartTitle"),it);function jt(e,t,i,s){const n=new Pt(s);return new Ii(n,e,t,i)}a(jt,"getChartTitleComponent");var Bi=.75,zi=.5,Oi=.35;function kt(e){return{fontSize:e,markerSize:e*Bi,markerSpacing:e*Oi,itemSpacing:e*zi}}a(kt,"getLegendLayout");var et,Vi=(et=class{constructor(t,i,s,n){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=s,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.visiblePlots=[]}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){if(this.visiblePlots=this.chartConfig.showLegend?this.chartData.plots.filter(f=>f.title):[],this.visiblePlots.length===0)return this.boundingRect.width=0,this.boundingRect.height=0,{width:0,height:0};const{fontSize:i,markerSize:s,markerSpacing:n,itemSpacing:o}=kt(this.chartConfig.legendFontSize),h=this.textDimensionCalculator.getMaxDimension(this.visiblePlots.map(f=>f.title),i),p=this.chartConfig.legendPadding*2+s+n+h.width,u=this.chartConfig.legendPadding*2+this.visiblePlots.length*i+(this.visiblePlots.length-1)*o;return p<=t.width&&u<=t.height?(this.boundingRect.width=p,this.boundingRect.height=u):(this.visiblePlots=[],this.boundingRect.width=0,this.boundingRect.height=0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(this.visiblePlots.length===0)return[];const{fontSize:t,markerSize:i,markerSpacing:s,itemSpacing:n}=kt(this.chartConfig.legendFontSize),o=t+n,h=this.boundingRect.x+this.chartConfig.legendPadding,p=this.boundingRect.y+this.chartConfig.legendPadding,u=[],f=[];for(const[R,C]of this.visiblePlots.entries())if(pt(C))u.push({x:h,y:p+R*o,width:i,height:i,fill:C.fill,strokeFill:C.fill,strokeWidth:0});else{const y=p+R*o+i/2;f.push({path:`M ${h},${y} L ${h+i},${y}`,strokeFill:C.strokeFill,strokeWidth:C.strokeWidth})}return[{groupTexts:["legend","markers"],type:"rect",data:u},{groupTexts:["legend","markers"],type:"path",data:f},{groupTexts:["legend","label"],type:"text",data:this.visiblePlots.map((R,C)=>({text:R.title,x:h+i+s,y:p+C*o+i/2,fill:this.chartThemeConfig.legendTextColor,fontSize:t,rotation:0,verticalPos:"middle",horizontalPos:"left"}))}]}},a(et,"ChartLegend"),et);function Qt(e,t,i,s){const n=new Pt(s);return new Vi(n,e,t,i)}a(Qt,"getChartLegendComponent");var st,Fi=(st=class{constructor(t,i,s,n,o){this.plotData=t,this.xAxis=i,this.yAxis=s,this.orientation=n,this.plotIndex=o}getDrawableElement(){const t=this.plotData.data.map(n=>[this.xAxis.getScaleValue(n[0]),this.yAxis.getScaleValue(n[1])]);let i;if(this.orientation==="horizontal"?i=Xt().y(n=>n[0]).x(n=>n[1])(t):i=Xt().x(n=>n[0]).y(n=>n[1])(t),!i)return[];const s=[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}];if(this.plotData.pointLabels&&this.plotData.pointLabels.length>0){const h=[];for(const[p,[u,f]]of t.entries()){const R=this.plotData.pointLabels[p];R&&(this.orientation==="horizontal"?h.push({x:f+10,y:u,text:R,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"left",fontSize:12,rotation:0}):h.push({x:u,y:f-10,text:R,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"center",fontSize:12,rotation:0}))}h.length>0&&s.push({groupTexts:["plot",`line-plot-${this.plotIndex}`,"labels"],type:"text",data:h})}return s}},a(st,"LinePlot"),st),nt,Wi=(nt=class{constructor(t,i,s,n,o,h){this.barData=t,this.boundingRect=i,this.xAxis=s,this.yAxis=n,this.orientation=o,this.plotIndex=h}getDrawableElement(){const t=this.barData.data.map(o=>[this.xAxis.getScaleValue(o[0]),this.yAxis.getScaleValue(o[1])]),s=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),n=s/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:this.boundingRect.x,y:o[0]-n,height:s,width:o[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:o[0]-n,y:o[1],width:s,height:this.boundingRect.y+this.boundingRect.height-o[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},a(nt,"BarPlot"),nt),at,Xi=(at=class{constructor(t,i,s){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const t=[];for(const[i,s]of this.chartData.plots.entries())switch(s.type){case"line":{const n=new Fi(s,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break;case"bar":{const n=new Wi(s,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break}return t}},a(at,"BasePlot"),at);function Kt(e,t,i){return new Xi(e,t,i)}a(Kt,"getPlotComponent");var ot,Ni=(ot=class{constructor(t,i,s,n){this.chartConfig=t,this.chartData=i,this.componentStore={title:jt(t,i,s,n),plot:Kt(t,i,s),legend:Qt(t,i,s,n),xAxis:_t(i.xAxis,t.xAxis,{titleColor:s.xAxisTitleColor,labelColor:s.xAxisLabelColor,tickColor:s.xAxisTickColor,axisLineColor:s.xAxisLineColor},n),yAxis:_t(i.yAxis,t.yAxis,{titleColor:s.yAxisTitleColor,labelColor:s.yAxisLabelColor,tickColor:s.yAxisTickColor,axisLineColor:s.yAxisLineColor},n)}}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o={width:0,height:0},h=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),p=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),u=this.componentStore.plot.calculateSpace({width:h,height:p});t-=u.width,i-=u.height,u=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),n=u.height,i-=u.height,this.componentStore.xAxis.setAxisPosition("bottom"),u=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=u.height,this.componentStore.yAxis.setAxisPosition("left"),u=this.componentStore.yAxis.calculateSpace({width:t,height:i}),s=u.width,t-=u.width,o=this.componentStore.legend.calculateSpace({width:t,height:p}),t-=o.width,t>0&&(h+=t,t=0),i>0&&(p+=i,i=0),this.componentStore.plot.calculateSpace({width:h,height:p}),this.componentStore.plot.setBoundingBoxXY({x:s,y:n}),this.componentStore.legend.setBoundingBoxXY({x:s+h,y:n+Math.max((p-o.height)/2,0)}),this.componentStore.xAxis.setRange([s,s+h]),this.componentStore.xAxis.setBoundingBoxXY({x:s,y:n+p}),this.componentStore.yAxis.setRange([n,n+p]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(f=>pt(f))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o=0,h={width:0,height:0},p=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),u=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),f=this.componentStore.plot.calculateSpace({width:p,height:u});t-=f.width,i-=f.height,f=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=f.height,i-=f.height,this.componentStore.xAxis.setAxisPosition("left"),f=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=f.width,n=f.width,this.componentStore.yAxis.setAxisPosition("top"),f=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=f.height,o=s+f.height,h=this.componentStore.legend.calculateSpace({width:t,height:u}),t-=h.width,t>0&&(p+=t,t=0),i>0&&(u+=i,i=0),this.componentStore.plot.calculateSpace({width:p,height:u}),this.componentStore.plot.setBoundingBoxXY({x:n,y:o}),this.componentStore.legend.setBoundingBoxXY({x:n+p,y:o+Math.max((u-h.height)/2,0)}),this.componentStore.yAxis.setRange([n,n+p]),this.componentStore.yAxis.setBoundingBoxXY({x:n,y:s}),this.componentStore.xAxis.setRange([o,o+u]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:o}),this.chartData.plots.some(R=>pt(R))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}},a(ot,"Orchestrator"),ot),rt,Yi=(rt=class{static build(t,i,s,n){return new Ni(t,i,s,n).getDrawableElement()}},a(rt,"XYChartBuilder"),rt),ct=0,Zt,gt=Et(),ut=Lt(),w=Mt(),Tt=ut.plotColorPalette.split(",").map(e=>e.trim()),yt=!1,vt=!1;function Lt(){const e=ki(),t=Dt();return Gt(e.xyChart,t.themeVariables.xyChart)}a(Lt,"getChartDefaultThemeConfig");function Et(){const e=Dt();return Gt(_i.xyChart,e.xyChart)}a(Et,"getChartDefaultConfig");function Mt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}a(Mt,"getChartDefaultData");function G(e){const t=Dt();return Ri(e.trim(),t)}a(G,"textSanitizer");function Jt(e){Zt=e}a(Jt,"setTmpSVGG");function ti(e){e==="horizontal"?gt.chartOrientation="horizontal":gt.chartOrientation="vertical"}a(ti,"setOrientation");function ii(e){w.xAxis.title=G(e.text)}a(ii,"setXAxisTitle");function It(e,t){w.xAxis={type:"linear",title:w.xAxis.title,min:e,max:t},yt=!0}a(It,"setXAxisRangeData");function ei(e){w.xAxis={type:"band",title:w.xAxis.title,categories:e.map(t=>G(t.text))},yt=!0}a(ei,"setXAxisBand");function si(e){w.yAxis.title=G(e.text)}a(si,"setYAxisTitle");function ni(e,t){w.yAxis={type:"linear",title:w.yAxis.title,min:e,max:t},vt=!0}a(ni,"setYAxisRangeData");function ai(e){const t=Math.min(...e),i=Math.max(...e),s=Q(w.yAxis)?w.yAxis.min:1/0,n=Q(w.yAxis)?w.yAxis.max:-1/0;w.yAxis={type:"linear",title:w.yAxis.title,min:Math.min(s,t),max:Math.max(n,i)}}a(ai,"setYAxisRangeFromPlotData");function Bt(e){let t=[];if(e.length===0)return t;if(!yt){const i=Q(w.xAxis)?w.xAxis.min:1/0,s=Q(w.xAxis)?w.xAxis.max:-1/0;It(Math.min(i,1),Math.max(s,e.length))}if(mt(w.xAxis)&&e.length>w.xAxis.categories.length&&(e=e.slice(0,w.xAxis.categories.length)),vt||ai(e),mt(w.xAxis)&&(t=w.xAxis.categories.map((i,s)=>[i,e[s]])),Q(w.xAxis)){const i=w.xAxis.min,s=w.xAxis.max;if(e.length===1)t=[[`${i}`,e[0]]];else{const n=(s-i)/(e.length-1);t=e.map((o,h)=>[`${i+h*n}`,o])}}return t}a(Bt,"transformDataWithoutCategory");function zt(e){return Tt[e===0?0:e%Tt.length]}a(zt,"getPlotColorFromPalette");function oi(e,t){const i=t.map(h=>h.value),s=t.map(h=>h.label?G(h.label):""),n=Bt(i),o=s.some(h=>h!=="");w.plots.push({type:"line",title:G(e.text),strokeFill:zt(ct),strokeWidth:2,data:n,...o?{pointLabels:s}:{}}),ct++}a(oi,"setLineData");function ri(e,t){const i=t.map(n=>n.value),s=Bt(i);w.plots.push({type:"bar",title:G(e.text),fill:zt(ct),data:s}),ct++}a(ri,"setBarData");function hi(){if(w.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return w.title=$t(),Yi.build(gt,w,ut,Zt)}a(hi,"getDrawableElem");function li(){return ut}a(li,"getChartThemeConfig");function ci(){return gt}a(ci,"getChartConfig");function gi(){return w}a(gi,"getXYChartData");var Hi=a(function(){Si(),ct=0,gt=Et(),w=Mt(),ut=Lt(),Tt=ut.plotColorPalette.split(",").map(e=>e.trim()),yt=!1,vt=!1},"clear"),$i={getDrawableElem:hi,clear:Hi,setAccTitle:wi,getAccTitle:bi,setDiagramTitle:yi,getDiagramTitle:$t,getAccDescription:mi,setAccDescription:pi,setOrientation:ti,setXAxisTitle:ii,setXAxisRangeData:It,setXAxisBand:ei,setYAxisTitle:si,setYAxisRangeData:ni,setLineData:oi,setBarData:ri,setTmpSVGG:Jt,getChartThemeConfig:li,getChartConfig:ci,getXYChartData:gi},Ui=a((e,t,i,s)=>{const n=s.db,o=n.getChartThemeConfig(),h=n.getChartConfig(),p=n.getXYChartData().plots[0].data.map(b=>b[1]);function u(b){return b==="top"?"text-before-edge":"middle"}a(u,"getDominantBaseLine");function f(b){return b==="left"?"start":b==="right"?"end":"middle"}a(f,"getTextAnchor");function R(b){return`translate(${b.x}, ${b.y}) rotate(${b.rotation||0})`}a(R,"getTextTransformation"),Ut.debug(`Rendering xychart chart
|
|
7
|
-
`+e);const C=Ai(t),y=C.append("g").attr("class","main"),E=y.append("rect").attr("width",h.width).attr("height",h.height).attr("class","background");Ci(C,h.height,h.width,!0),C.attr("viewBox",`0 0 ${h.width} ${h.height}`),E.attr("fill",o.backgroundColor),n.setTmpSVGG(C.append("g").attr("class","mermaid-tmp-group"));const v=n.getDrawableElem(),L={};function M(b){let D=y,c="";for(const[z]of b.entries()){let F=y;z>0&&L[c]&&(F=L[c]),c+=b[z],D=L[c],D||(D=L[c]=F.append("g").attr("class",b[z]))}return D}a(M,"getGroup");for(const b of v){if(b.data.length===0)continue;const D=M(b.groupTexts);switch(b.type){case"rect":if(D.selectAll("rect").data(b.data).enter().append("rect").attr("x",c=>c.x).attr("y",c=>c.y).attr("width",c=>c.width).attr("height",c=>c.height).attr("fill",c=>c.fill).attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth),h.showDataLabel){const c=h.showDataLabelOutsideBar;if(h.chartOrientation==="horizontal"){let z=function(S,O){const{data:T,label:ht}=S;return O*ht.length*F<=T.width-X};a(z,"fitsHorizontally");const F=.7,X=10,N=b.data.map((S,O)=>({data:S,label:p[O].toString()})).filter(S=>S.data.width>0&&S.data.height>0),k=N.map(S=>{const{data:O}=S;let T=O.height*.7;for(;!z(S,T)&&T>0;)T-=1;return T}),H=Math.floor(Math.min(...k)),A=a(S=>c?S.data.x+S.data.width+X:S.data.x+S.data.width-X,"determineLabelXPosition");D.selectAll("text").data(N).enter().append("text").attr("x",A).attr("y",S=>S.data.y+S.data.height/2).attr("text-anchor",c?"start":"end").attr("dominant-baseline","middle").attr("fill",o.dataLabelColor).attr("font-size",`${H}px`).text(S=>S.label)}else{let z=function(A,S,O){const{data:T,label:ht}=A,W=S*ht.length*.7,l=T.x+T.width/2,g=l-W/2,d=l+W/2,x=g>=T.x&&d<=T.x+T.width,_=T.y+O+S<=T.y+T.height;return x&&_};a(z,"fitsInBar");const F=10,X=b.data.map((A,S)=>({data:A,label:p[S].toString()})).filter(A=>A.data.width>0&&A.data.height>0),N=X.map(A=>{const{data:S,label:O}=A;let T=S.width/(O.length*.7);for(;!z(A,T,F)&&T>0;)T-=1;return T}),k=Math.floor(Math.min(...N)),H=a(A=>c?A.data.y-F:A.data.y+F,"determineLabelYPosition");D.selectAll("text").data(X).enter().append("text").attr("x",A=>A.data.x+A.data.width/2).attr("y",H).attr("text-anchor","middle").attr("dominant-baseline",c?"auto":"hanging").attr("fill",o.dataLabelColor).attr("font-size",`${k}px`).text(A=>A.label)}}break;case"text":D.selectAll("text").data(b.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",c=>c.fill).attr("font-size",c=>c.fontSize).attr("dominant-baseline",c=>u(c.verticalPos)).attr("text-anchor",c=>f(c.horizontalPos)).attr("transform",c=>R(c)).text(c=>c.text);break;case"path":D.selectAll("path").data(b.data).enter().append("path").attr("d",c=>c.path).attr("fill",c=>c.fill?c.fill:"none").attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth);break}}},"draw"),Gi={draw:Ui},te={parser:Li,db:$i,renderer:Gi};export{te as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={"planCard.heading":"計劃已就緒——下一步?","planCard.showPlan":"查看計劃","planCard.execute":"切換到建置模式並執行","planCard.keepPlanning":"繼續規劃","planCard.executedStatus":"已切換到建置模式——正在執行計劃。","planCard.dismissedStatus":"繼續保持規劃模式。","planCard.close":"關閉","planCard.loading":"載入中…","planCard.loadError":"無法載入計劃。","planCard.executePrompt":"請實作 PLAN.md 中的計劃,逐步執行。","agent_conversation.back":"返回","agent_conversation.message_count":"{name} - {count} 則訊息","agent_conversation.message_queued":"訊息已加入代理佇列","agent_conversation.no_messages":"暫無訊息","agent_conversation.no_messages_hint":"使用右下角按鈕向代理傳送訊息","agent_conversation.compose_button":"傳送訊息","agent_conversation.modal_title":"傳送訊息給 {name}","agent_conversation.reply_to_inbox":"完成後通知我","agent_conversation.urgent_interrupt_button":"傳送緊急中斷","agent_conversation.urgent_warning":"這將立即中斷代理目前的工作。再次點擊以確認。","agent_conversation.confirm_interrupt":"確認中斷","agent_conversation.priority":"優先級:","agent_conversation.priority_high":"高","agent_conversation.priority_normal":"普通","agent_conversation.priority_urgent":"緊急","agent_conversation.priority_urgent_confirm":"這將傳送緊急中斷,終止代理目前的工作。確定繼續嗎?","agent_conversation.priority_urgent_title":"傳送緊急中斷","agent_conversation.priority_urgent_hint":"緊急:這將立即中斷代理目前的工作","agent_conversation.interrupt_button":"中斷","agent_conversation.interrupt_sent":"已向代理傳送緊急中斷","agent_conversation.queue_hint":"訊息將在代理下次喚醒時處理","agent_conversation.refresh":"重新整理","agent_conversation.send_button":"傳送","agent_conversation.send_placeholder":"向代理的收件匣傳送訊息...","agent_conversation.sending":"傳送中","agent_conversation.title":"對話","confirm_dialog.cancel":"取消","confirm_dialog.confirm":"確認","agent_create.cancel":"取消","agent_create.configure_subtitle":"設定您的自主代理","agent_create.custom_model":"自訂模型...","agent_create.custom_model_hint":"輸入任何模型識別碼(例如 github-copilot/claude-opus-4.6、openai/gpt-4o)","agent_create.custom_model_placeholder":"輸入自訂模型識別碼(例如 provider/model-name)","agent_create.deselect_all":"取消全選","agent_create.display_name_hint":"在介面中顯示的易讀名稱","agent_create.display_name_label":"顯示名稱(可選)","agent_create.display_name_placeholder":"例如:我的開發代理","agent_create.dormant_mode":"以休眠模式啟動","agent_create.dormant_mode_desc":"代理啟動時不會處理 AGENTS.md。它會等待直到收到收件匣訊息。","agent_create.instructions_label":"代理指令 (AGENTS.md)","agent_create.instructions_optional":"(可選)","agent_create.instructions_hint":"代理的指令和上下文。如果設定了工作目錄,會寫入 workspace/AGENTS.md。","agent_create.loading_models":"載入模型中...","agent_create.loading_skills":"載入技能中...","agent_create.model_hint":"從列表中選擇模型或選擇「自訂模型...」以使用其他選項","agent_create.model_label":"模型 *","agent_create.model_placeholder":"github-copilot/claude-opus-4.6","agent_create.name_generate":"產生隨機名稱","agent_create.name_hint":"僅限小寫字母、數字、連字號和底線","agent_create.name_label":"代理名稱 *","agent_create.name_placeholder":"例如:swift-falcon","agent_create.no_skills":"未安裝技能","agent_create.random":"隨機","agent_create.reset_default":"重設為預設","agent_create.select_all":"全選","agent_create.skills_label":"技能","agent_create.skills_selected":"已選擇 {count} 個技能","agent_create.soul_label":"Soul / 指令 (AGENTS.md)","agent_create.soul_placeholder":"# AGENTS.md 內容...","agent_create.spawn":"建立代理","agent_create.spawning":"建立中...","agent_create.start_mode":"啟動模式","agent_create.title":"建立新代理","agent_create.validate_model":"請選擇模型","agent_create.validate_workspace":"工作目錄為必填","agent_create.working_dir_hint":"代理進行檔案操作的工作目錄","agent_create.working_dir_label":"工作目錄 *","agent_create.working_dir_placeholder":"/path/to/project","agent_detail.action_deleted":"代理已刪除","agent_detail.action_updated":"設定更新成功","agent_detail.agent_info":"代理資訊","agent_detail.back":"返回代理列表","agent_detail.edit_settings":"編輯設定","agent_detail.failed_to_load":"載入代理失敗:","agent_detail.iteration":"迭代次數","agent_detail.model":"模型","agent_detail.pid":"處理程序ID","agent_detail.port":"連接埠","agent_detail.session_id":"工作階段ID","agent_detail.soul_file":"Soul 檔案","agent_detail.start_mode":"啟動模式","agent_detail.start_mode_dormant":"休眠啟動","agent_detail.start_mode_normal":"正常","agent_detail.started":"啟動時間","agent_detail.status":"狀態","agent_detail.stopped":"已停止","agent_detail.token_cached":"快取","agent_detail.token_input":"輸入","agent_detail.token_output":"輸出","agent_detail.token_usage":"Token 使用量","agent_detail.total_cost":"總費用","agent_detail.unknown_agent":"未知代理","agent_detail.uptime":"執行時間","agent_detail.view_conversation":"檢視對話","agent_detail.working_dir":"工作目錄","agent_detail.working_dir_label":"工作目錄:","agent_edit.cannot_change":"(無法更改)","agent_edit.custom_model":"自訂模型...","agent_edit.custom_model_hint":"輸入任何模型識別碼(例如 github-copilot/claude-opus-4.6、openai/gpt-4o)","agent_edit.custom_model_placeholder":"輸入自訂模型識別碼(例如 provider/model-name)","agent_edit.deselect_all":"取消全選","agent_edit.display_name_label":"顯示名稱","agent_edit.display_name_placeholder":"易於識別的名稱","agent_edit.dormant_mode":"以休眠模式啟動","agent_edit.dormant_mode_desc":"代理啟動時不會處理 AGENTS.md。下次啟動時生效。","agent_edit.instructions_label":"代理指令 (AGENTS.md)","agent_edit.instructions_hint":"代理的指令和上下文。此檔案會在代理啟動或熱重載時重新讀取。","agent_edit.loading_models":"載入模型中...","agent_edit.loading_skills":"載入技能中...","agent_edit.model_hint":"從列表中選擇模型或選擇「自訂模型...」以使用其他選項","agent_edit.model_label":"模型","agent_edit.model_placeholder":"例如:github-copilot/claude-opus-4.6","agent_edit.name_label":"代理名稱","agent_edit.no_skills":"未安裝技能","agent_edit.no_workspace_warning":"未設定工作目錄。無法在沒有工作目錄的情況下編輯 AGENTS.md。","agent_edit.not_set":"未設定","agent_edit.running_warning":"執行中 — 需要重新啟動才能套用變更","agent_edit.save":"儲存變更","agent_edit.saved":"設定儲存成功","agent_edit.saving":"儲存中...","agent_edit.select_all":"全選","agent_edit.skills_label":"技能","agent_edit.skills_selected":"已選擇 {count} 個技能","agent_edit.soul_placeholder":"# AGENTS.md 內容...","agent_edit.start_mode":"啟動模式","agent_edit.stop_to_change":"停止代理以更改工作目錄","agent_edit.tab_general":"一般","agent_edit.tab_soul":"AGENTS.md","agent_edit.title":"編輯代理設定","agent_edit.will_be_created":"(將會建立)","agent_edit.working_dir_hint":"代理進行檔案操作的工作目錄","agent_edit.working_dir_label":"工作目錄 *","agent_edit.working_dir_placeholder":"/path/to/project","agent_edit.workspace_changed_warning":"工作目錄已更改。AGENTS.md 編輯已停用,以防止覆蓋新工作目錄中的檔案。儲存變更後,重新開啟設定以在新工作目錄中編輯 AGENTS.md。","agent_edit.workspace_move_warning":"更改工作目錄不會移動現有的 AGENTS.md。您可能需要重新設定代理的指令。","agents.back_to_chat":"返回對話","agents.no_agents_desc":"建立您的第一個自主代理","agents.no_agents_title":"暫無代理","agents.model_label":"模型:{model}","agents.resize_terminal":"調整終端面板大小","agents.back":"返回","agents.iteration":"迭代","agents.pid":"PID","agents.port":"連接埠","agents.refresh":"重新整理","agents.restart":"重新啟動","agents.restarting":"重新啟動中...","agents.clean_restart":"全新啟動","agents.clean_restart_tooltip":"以新工作階段重新啟動(開始全新對話)","agents.spawn_button":"建立代理","agents.start":"啟動","agents.starting":"啟動中...","agents.stop":"停止","agents.stopping":"停止中...","agents.subtitle":"管理自主代理","agents.title":"代理","agents.uptime":"運行時間","agents.drop_to_import":"拖放 YAML 檔案以匯入代理","agents.export":"匯出","agents.export_error":"匯出代理失敗","agents.import":"匯入","agents.import_button":"匯入代理","agents.import_error":"匯入代理失敗","agents.import_invalid_file":"無效檔案類型,請選擇 .yaml 或 .yml 檔案。","agents.import_file_too_large":"檔案過大(最大 10MB)","agents.import_read_error":"讀取檔案失敗","agents.import_success":"代理匯入成功","agents.view_details":"代理詳情","agents.pause":"暫停","agents.pausing":"暫停中...","agents.unpause":"取消暫停","agents.resume":"繼續","agents.resuming":"繼續中...","agents.paused":"已暫停","agents.select":"選取","agents.selected":"已選取 {count} 個","agents.selectAll":"全選","agents.deselectAll":"取消全選","agents.pauseAll":"全部暫停","agents.unpauseAll":"全部取消暫停","agents.stopAll":"全部停止","agents.restartAll":"全部重新啟動","agents.startAll":"全部啟動","agents.collapse_panel":"收合面板","agents.expand_panel":"展開面板","app.activities_panel":"活動面板","app.agents_tab":"代理","app.chat_tab":"對話","app.close_activities":"關閉活動面板","app.close_search":"關閉搜尋","app.dismiss_error":"關閉錯誤","app.hacker_mode_enter":"進入駭客模式 (Ctrl+H 或 Ctrl+Shift+M)","app.hacker_mode_exit":"退出駭客模式 (Ctrl+H 或 Ctrl+Shift+M)","app.match_count":"第 {current} 個,共 {total} 個","app.new_chat":"新對話","app.next_match":"下一個匹配","app.no_matches":"無匹配","app.previous_match":"上一個匹配","app.reconnecting":"正在重新連線伺服器...","app.resize_terminal":"調整終端機面板大小","app.right_pane_hidden":"活動面板已隱藏","app.right_pane_shown":"活動面板已顯示","app.search_messages":"搜尋訊息","app.search_placeholder":"在對話中搜尋...","app.settings_tab":"設定","app.skills_tab":"技能","app.toggle_right_pane":"切換活動面板 ({shortcut})","app.version":"PAVE 版本","app.welcome_start":"開始對話吧。","app.welcome_subtitle":"您的AI驅動開發助手","app.welcome_title":"歡迎使用 PAVE","chat.attach_image":"附加圖片","chat.attach_file":"附加檔案 (圖片、docx、pdf、文字)","chat.cancel_queued":"從佇列移除","chat.queued":"已排隊","chat.edit_queued":"編輯已排隊的訊息","chat.attachment":"附件","chat.attachment_with_index":"附件 {index}","chat.copied":"已複製!","chat.copy":"複製","chat.copy_message":"複製訊息","chat.edit_resend":"編輯並重發","chat.read_only":"唯讀","chat.read_only_desc":"這是TUI的唯讀工作階段。無法傳送訊息。","chat.regenerate":"重新產生回覆","chat.scroll_to_bottom":"捲動到底部","chat.send_button":"傳送訊息","chat.send_hint":"按 Enter 傳送,Shift+Enter 換行。輸入 / 查看指令","chat.send_placeholder":"傳送訊息...","chat.stop_generating":"停止產生","chat.tool_bash":"執行命令","chat.tool_edit":"編輯檔案","chat.tool_glob":"搜尋檔案","chat.tool_grep":"搜尋程式碼","chat.tool_preparing":"準備工具呼叫","chat.tool_preparing_name":"準備 {name}","chat.tool_read":"讀取檔案","chat.tool_write":"寫入檔案","chat.viewing_terminal":"檢視終端機工作階段(唯讀)","chat.yesterday":"昨天","chat.yesterday_time":"昨天 {time}","chat.viewing_archive":"檢視封存的工作階段(唯讀)","chat.compacted_switch_to_new":"已壓縮 — 切換至新工作階段","chat.unpin_compacted":"取消釘選 — 返回原始工作階段","chat.compacting_context":"正在壓縮上下文","chat.show_thinking":"顯示思考過程","chat.hide_thinking":"隱藏思考過程","chat.hide_chat_input":"隱藏輸入框","chat.show_chat_input":"顯示輸入框","chat.monitor_only":"僅監看 — 已隱藏輸入框","chat.thinking":"思考中","chat.error_badge":"錯誤","chat.assistant_typing":"助理輸入中","chat.working_directory":"工作目錄","chat.working_directory_current":"目前:","chat.working_directory_recent":"最近:","chat.working_directory_change":"變更","chat.working_directory_cancel":"取消","chat.working_directory_create":"建立目錄","chat.working_directory_not_found":"目錄不存在","chat.working_directory_invalid":"無效路徑","chat.working_directory_checking":"檢查路徑中...","chat.working_directory_changed":"工作目錄已變更為 {path}","chat.working_directory_created":"目錄已建立:{path}","chat.working_directory_create_failed":"建立目錄失敗:{error}","chat.working_directory_remove_recent":"從最近清單移除","chat.working_directory_has_agents_md":"包含 AGENTS.md","chat.working_directory_no_agents_md":"此目錄不含 AGENTS.md","chat.working_directory_new_path":"新路徑","chat.working_directory_placeholder":"/path/to/directory 或 ~/projects/...","chat.working_directory_not_set":"(未設定)","chat.idle_injection_title":"閒置注入","chat.idle_injection_toggle":"啟用閒置注入","chat.idle_injection_message":"注入訊息","chat.idle_injection_message_placeholder":"閒置時注入的訊息","chat.idle_injection_interval":"閒置間隔(秒)","chat.idle_injection_interval_desc":"LLM 完成回應後,等待多久再注入訊息。","chat.idle_injection_max":"最大注入次數(0 = 無限制)","chat.idle_injection_max_desc":"超過此次數後停止注入。0 表示不限制。","chat.idle_injection_mode":"派發模式","chat.idle_injection_mode_desc":"注入訊息如何排入佇列。","chat.idle_injection_mode_urgent":"緊急(工具呼叫間注入)","chat.idle_injection_mode_normal":"一般(回合完成後注入)","chat.idle_injection_mode_idle":"閒置(回合完成 + 延遲後注入)","chat.idle_injection_wait_ms":"閒置延遲(秒)","chat.idle_injection_wait_ms_desc":"閒置模式下,注入前的額外延遲時間。","chat.idle_injection_timeout_toggle":"啟用 LLM 超時偵測","chat.idle_injection_timeout_toggle_desc":"偵測 LLM 卡住(無回應)時自動重新注入。","chat.idle_injection_timeout_threshold":"超時閾值(秒)","chat.idle_injection_timeout_threshold_desc":"等待第一個 token 的時間,超過則視為 LLM 掛掉。","chat.idle_injection_timeout_cooldown":"超時冷卻(秒)","chat.idle_injection_timeout_cooldown_desc":"超時後等待多久再重新注入。","chat.idle_injection_save":"儲存","chat.idle_injection_disable":"停用","chat.idle_injection_saving":"儲存中...","chat.idle_injection_disabling":"停用中...","chat.idle_injection_saved":"設定已儲存","chat.idle_injection_disabled_toast":"閒置注入已停用","chat.idle_injection_enabled_toast":"閒置注入已啟用","chat.idle_injection_fired_toast":"閒置注入已觸發","chat.idle_injection_timeout_toast":"偵測到 LLM 超時 — 重試中","chat.idle_injection_auto_badge":"自動","chat.session_info_title":"會話資訊","chat.session_info_soul":"Soul 檔案","chat.session_info_soul_default":"預設 AGENTS.md 流程","chat.session_info_model":"模型","chat.session_info_reasoning":"推理強度","chat.session_info_idle_injection":"閒置注入","chat.session_info_scheduled":"排程注入","chat.session_info_directory":"工作目錄","chat.session_info_view_soul":"檢視 Soul","chat.session_info_copied":"已複製","chat.session_info_soul_error":"無法讀取 Soul 檔案","chat.session_info_soul_loading":"Soul 檔案載入中…","chat.session_info_idle_on":"開啟","chat.session_info_idle_every":"每 {s} 秒","scheduled_injection.title":"排程注入","scheduled_injection.subtitle":"在排程時間自動注入訊息","scheduled_injection.add":"新增排程","scheduled_injection.empty":"尚未設定排程。","scheduled_injection.time":"時間","scheduled_injection.repeat":"重複","scheduled_injection.repeat_every_day":"每天","scheduled_injection.repeat_weekdays":"平日","scheduled_injection.repeat_weekends":"週末","scheduled_injection.repeat_custom":"自訂","scheduled_injection.timezone":"時區","scheduled_injection.message":"訊息(選填)","scheduled_injection.message_placeholder":"留空使用預設 check-in 訊息","scheduled_injection.enabled":"啟用","scheduled_injection.save":"儲存排程","scheduled_injection.saving":"儲存中...","scheduled_injection.delete":"刪除","scheduled_injection.day_sun":"日","scheduled_injection.day_mon":"一","scheduled_injection.day_tue":"二","scheduled_injection.day_wed":"三","scheduled_injection.day_thu":"四","scheduled_injection.day_fri":"五","scheduled_injection.day_sat":"六","scheduled_injection.fired_toast":"排程注入已觸發","scheduled_injection.error_generic":"排程儲存失敗","chat.moe_auto":"自動","chat.moe_fast":"快速","chat.moe_fastest":"最快","chat.moe_tooltip":"專家數量 — 越快但準確度越低","chat.reasoning_max":"最強","chat.reasoning_high":"中度","chat.reasoning_off":"關閉","chat.reasoning_tooltip":"推理強度 — 越強越聰明但越慢","chat.quote_selection":"引用","chat.copy_selection":"複製","chat.quote_remove":"移除引用","chat.quote_clear_all":"清除全部引用","chat.quoted_from_assistant":"引用自助手","chat.quoted_from_you":"引用自你","chat.quote_truncated":"引用已截斷以符合長度上限","common.back":"返回","common.cancel":"取消","common.close":"關閉","common.confirm":"確認","common.delete":"刪除","common.deleting":"刪除中...","common.edit":"編輯","common.error":"錯誤","common.loading":"載入中...","common.no":"否","common.optional":"(可選)","common.retry":"重試","common.save":"儲存","common.success":"成功","common.unknown_error":"未知錯誤","common.yes":"是","login.email_placeholder":"電子郵件","login.or":"或","login.password_placeholder":"密碼","login.pave_subtitle":"個人AI虛擬環境","login.powered_by":"由 PAVE 驅動","login.sign_in":"登入","login.sign_in_with_google":"使用 Google 登入","login.sign_in_with_cloudflare":"使用 Cloudflare Access 登入","login.signing_in":"登入中...","login.terms":"登入即表示您同意服務條款。","permission.allow":"允許","permission.allowing":"允許中...","permission.action_clear_all":"全部清除","permission.action_grant":"授予","permission.action_revoke":"撤銷","permission.clear_all":"清除所有權限(鎖定沙箱)","permission.deny":"拒絕","permission.denying":"拒絕中...","permission.expired":"請求已過期","permission.no_reason":"未提供原因","permission.reason_prefix":"原因:","permission.request_desc":"{action} {type} 權限:{target}","permission.title":"權限請求","permission.type_file_read":"檔案讀取","permission.type_file_write":"檔案寫入","permission.type_module":"模組","permission.type_network":"網路","permission.type_system":"系統指令","question.already_answered":"問題已回答","question.custom_placeholder":"或輸入自訂回答...","question.dismiss":"關閉","question.dismissing":"關閉中...","question.error":"提問失敗","question.expired":"問題已過期","question.input_placeholder":"輸入您的回答...","question.select_all":"可複選","question.submit":"提交","question.submit_n":"提交 {count} 個回答","question.submitting":"提交中...","question.title":"AI 提問","question.reconnecting":"重連中…","question.resolve_failed":"無法連上問答服務。","question.retry_connection":"重試","pricing.add":"新增","pricing.add_model":"新增模型","pricing.add_model_placeholder":"模型名稱(例如 gpt-4)","pricing.add_new_model":"新增模型","pricing.cached_tokens":"快取 Token(每百萬)","pricing.close":"關閉定價設定","pricing.configured_count":"已設定 {count} 個模型","pricing.fallback_badge":"預設","pricing.default_exists":'無法新增"default"——它已作為預設值存在',"pricing.discard_confirm":"放棄未儲存的變更?","pricing.discard_title":"放棄變更","pricing.heading":"Token 定價","pricing.input_tokens":"輸入 Token(每百萬)","pricing.label_cache":"快取:","pricing.label_input":"輸入:","pricing.label_output":"輸出:","pricing.model_column":"模型","pricing.model_exists":"模型已存在","pricing.model_required":"模型名稱為必填","pricing.output_tokens":"輸出 Token(每百萬)","pricing.rates_column":"輸入 / 輸出 / 快取","pricing.rates_subtitle":"價格以美元計算(每百萬 Token)","pricing.remove_model":"移除模型","pricing.remove_model_aria":"移除 {modelName}","pricing.remove_confirm":"移除「{model}」的定價?","pricing.remove_title":"移除模型定價","pricing.reset":"重設為預設","pricing.reset_confirm":"重設所有定價為預設值?此操作無法復原。","pricing.reset_title":"重設定價","pricing.save":"儲存","pricing.save_changes":"儲存變更","pricing.subtitle":"設定每百萬 Token 的成本(美元)","pricing.title":"Token 定價設定","settings.back":"返回對話","settings.category.display":"顯示","settings.appearance":"外觀","settings.mobile_frameless":"無框助理訊息","settings.mobile_frameless_label":"行動版 UX 增強(實驗性)","settings.mobile_frameless_desc":"移除助理訊息的頭像與泡泡背景,提供更乾淨的全寬閱讀體驗","settings.category.language":"語言","settings.category.marketplace":"市集","settings.category.model":"AI 模型與供應商","settings.category.prefillFallback":"預填回退","settings.category.rate":"速率限制","settings.category.systemPrompts":"系統提示","settings.category.tools":"工具執行","settings.category.models":"模型","settings.category.compaction":"壓縮","settings.category.sessionBanner":"工作階段橫幅","settings.category.sessionBehavior":"工作階段行為","settings.currently_set_to":"目前設定為:{path}","settings.default_prefix":"預設值:{value}","settings.default_empty":"(空白)","settings.description":"設定 PAVE 執行時設定。大多數變更在儲存後生效;某些設定(如逾時)可能需要重新啟動 PAVE。","settings.env_badge":"env","settings.env_override":"此值目前被 {envVar} 環境變數覆蓋。","settings.failed_to_load":"載入設定失敗:{error}","settings.language":"語言","settings.language_description":"選擇您偏好的介面語言","settings.language_auto_applied":"✓ 語言已自動套用","settings.no_changes":"沒有需要儲存的變更。","settings.not_set":"未設定","settings.notification_sound":"通知音效","settings.notification_sound_desc":"收到新收件匣訊息時播放音效","settings.native_notifications":"瀏覽器通知","settings.native_notifications_desc":"收到新收件匣訊息時顯示瀏覽器通知","settings.native_notifications_blocked":"瀏覽器已封鎖通知——請在瀏覽器設定中啟用","settings.native_notifications_permission":"點擊啟用——將要求通知權限","settings.native_notifications_unsupported":"此瀏覽器不支援通知功能","settings.auto_saved":"變更立即生效","settings.notifications":"通知","settings.partial_save":"部分設定無法儲存。請查看下方錯誤。","settings.requires_restart":"(需要重啟)","settings.reset":"重設","settings.save":"儲存","settings.save_failed":"儲存失敗:{error}","settings.saved":"設定儲存成功。","settings.saving":"儲存中...","settings.source_default":"預設","settings.source_env":"ENV","settings.source_saved":"已儲存","settings.title":"設定","settings.category.experimental":"實驗性功能","settings.category.developer":"開發者","settings.v2.badge":"設定","settings.v2.search_placeholder":"搜尋設定…","settings.v2.search_clear":"清除搜尋","settings.v2.no_matches":"沒有符合搜尋條件的設定。","settings.v2.search_results":"{count} 項符合的設定","settings.v2.open":"開啟","settings.v2.unsaved":"{count} 項未儲存","settings.v2.groups_aria":"設定群組","settings.validating":"驗證中...","settings.apply":"套用","settings.enabled":"已啟用","settings.disabled":"已停用","settings.workspace":"工作區","settings.working_dir":"工作目錄","settings.working_dir_desc":"設定檔案操作和工具執行的自訂工作目錄。留空則使用伺服器預設值。","settings.working_dir_reset":"工作目錄已重設為伺服器預設值","settings.working_dir_updated":"工作目錄已更新為:{path}","settings.working_dir_invalid":"無效的目錄路徑:{error}","settings.version_title":"版本","settings.current_version":"目前版本","settings.latest_version":"最新版本","settings.update_available":"有可用更新","settings.update_button":"更新","settings.no_updates":"沒有可用更新","settings.check_updates":"檢查更新","settings.checking_updates":"正在檢查更新…","settings.update_in_progress":"更新中…","settings.update_success":"更新成功","settings.update_failed":"更新失敗","settings.check_updates_failed":"檢查更新失敗","settings.model_registry.title":"模型登錄檔","settings.model_registry.builtin":"內建模型","settings.model_registry.user":"自訂模型","settings.model_registry.add_model":"+ 新增模型","settings.model_registry.no_user_models":"沒有自訂模型。點擊「+ 新增模型」來新增。","settings.model_registry.name":"模型名稱","settings.model_registry.name_placeholder":"模型名稱(例如 my-custom-model)","settings.model_registry.provider":"供應商","settings.model_registry.provider_placeholder":"例如 openai","settings.model_registry.displayName":"顯示名稱","settings.model_registry.displayName_placeholder":"我的模型","settings.model_registry.url":"端點 URL","settings.model_registry.url_placeholder":"http(s)://… 或 pave(s)://…","settings.model_registry.tier":"等級","settings.model_registry.tier_placeholder":"例如 fast、premium","settings.model_registry.limit_context":"上下文限制","settings.model_registry.limit_output":"輸出限制","settings.model_registry.cost_input":"輸入成本($/1M token)","settings.model_registry.cost_output":"輸出成本($/1M token)","settings.model_registry.save":"儲存","settings.model_registry.saving":"儲存中...","settings.model_registry.cancel":"取消","settings.model_registry.add":"新增","settings.model_registry.adding":"新增中...","settings.model_registry.edit":"編輯模型","settings.model_registry.delete":"刪除模型","settings.model_registry.delete_confirm":"從登錄檔移除模型「{name}」?","settings.model_registry.loading":"載入模型登錄檔...","settings.model_registry.load_error":"載入登錄檔失敗:{error}","settings.model_registry.context_k":"{value}K 上下文","settings.model_registry.target":"別名目標 (選填)","settings.model_registry.target_placeholder":"例如 github-copilot/claude-opus-4.7","settings.model_registry.target_hint":"若有填寫,此項目為別名 — 選用時會路由到目標模型。留空表示獨立模型並使用自己的端點 URL。","settings.model_registry.spec":"模型規格","settings.model_registry.spec_placeholder":"例如 github-copilot/claude-opus-4.7 或 pave://host/path?model=…","settings.model_registry.spec_hint":"輸入 provider/model 別名 (例如 github-copilot/claude-opus-4.7) 或完整的 pave://、paves://、http://、https:// URL。系統會自動辨識 URL。","settings.model_registry.kind_alias":"別名","settings.model_registry.advanced":"進階 (限制與費用)","settings.model_registry.error_name_required":"模型名稱為必填","settings.model_registry.error_name_reserved":"模型名稱「{name}」為保留字","settings.model_registry.error_name_exists":"已存在名為「{name}」的模型","settings.model_registry.error_rename_cleanup":"已重新命名,但無法移除舊項目: {error}","settings.custom_model":"自訂模型...","settings.custom_model_placeholder":"輸入自訂模型識別碼(例如 provider/model-name)","sidebar.conversations":"對話","sidebar.delete":"刪除","sidebar.delete_all":"刪除所有對話","sidebar.delete_all_confirm":"刪除這裡列出的對話?屬於其他應用程式的工作階段不會被刪除。此操作無法復原。","sidebar.delete_all_title":"刪除所有工作階段","sidebar.delete_confirm":"刪除此對話?","sidebar.delete_title":"刪除工作階段","sidebar.hide":"隱藏側邊欄","sidebar.load_more":"載入更多","sidebar.load_more_count":"載入更多 — 已顯示 {loaded} / {total}","sidebar.all_loaded_count":"已顯示全部 {total} 個對話","sidebar.search_result_count":"{total} 個符合的對話","sidebar.show_other_apps":"顯示其他應用程式","sidebar.hide_other_apps":"隱藏其他應用程式","sidebar.no_conversations":"暫無對話","sidebar.no_matches":"無匹配","sidebar.rename":"重新命名","sidebar.resize":"調整側邊欄寬度","sidebar.regenerate_title":"重新產生標題","sidebar.send_to_session":"傳送至其他工作階段","send_to_session.title":"傳送至其他工作階段","send_to_session.target_label":"傳送給","send_to_session.message_label":"訊息","send_to_session.delivery_note":"由開啟該工作階段的應用程式接收,通常在數秒內。接收的應用程式可能不是目前這一個。","send_to_session.queued":"已排入佇列,將由開啟該工作階段的應用程式接手處理。","send_to_session.no_targets":"沒有其他可傳送的工作階段。","send_to_session.send":"傳送","send_to_session.sending":"傳送中...","send_to_session.cancel":"取消","send_to_session.close":"關閉","sidebar.search_placeholder":"搜尋對話...","sidebar.session_processing":"工作階段處理中","sidebar.icon_pinned":"已置頂 — 保留在列表頂端,且不會被自動清理","sidebar.icon_archive":"封存副本 — 較早對話的唯讀快照","sidebar.icon_compacted":"已壓縮 — 較早的訊息已摘要以釋出上下文","sidebar.more_actions":"更多操作","sidebar.age_now":"剛剛","sidebar.age_minutes":"{n} 分","sidebar.age_hours":"{n} 小時","sidebar.age_days":"{n} 天","sidebar.age_weeks":"{n} 週","sidebar.show":"顯示對話列表","sidebar.untitled":"未命名","sidebar.pin":"置頂","sidebar.unpin":"取消置頂","sidebar.archive":"封存","sidebar.unarchive":"取消封存","sidebar.confirmArchive":"封存此工作階段?它將從側邊欄隱藏。","sidebar.show_archived":"顯示封存","sidebar.hide_archived":"隱藏封存","sidebar.pinned":"已置頂","sidebar.today":"今天","sidebar.yesterday":"昨天","sidebar.this_week":"本週","sidebar.this_month":"本月","sidebar.older":"更早","sidebar.archived":"已封存","sidebar.export":"匯出為 YAML","sidebar.import":"匯入工作階段","sidebar.drop_to_import":"拖放工作階段檔案以匯入","import.invalid_file_type":"僅支援匯入 .yaml 或 .yml 工作階段檔案","import.file_too_large":"匯入檔案過大(最大 10MB)","import.read_error":"讀取檔案失敗,請重試。","skills.back_to_chat":"返回對話","skills.cancel":"取消","skills.clear_all":"全部清除","skills.clear_confirm":"清除 {skill} 的所有憑證?","skills.clear_title":"清除憑證","skills.close":"關閉","skills.close_credential_editor":"關閉憑證編輯器","skills.configure":"設定","skills.configure_skill":"設定 {skill}","skills.configured":"已設定","skills.current_value":"(目前:{value})","skills.enter_token":"請輸入至少一個令牌值","skills.enter_value":"輸入值...","skills.install":"安裝","skills.installed":"已安裝","skills.installed_count":"{installed} 已安裝,{available} 可用","skills.installing":"安裝中...","skills.install_failed":"安裝失敗:{error}","skills.leave_blank":"留空保持目前值","skills.load_installed_failed":"載入已安裝技能失敗:{error}","skills.load_marketplace_failed":"載入市集失敗:{error}","skills.needs_setup":"需要設定","skills.no_credentials_needed":"此技能不需要任何憑證。","skills.no_description":"暫無描述","skills.no_match":"沒有符合搜尋的技能。","skills.no_skills":"找不到技能。","skills.not_installed":"未安裝","skills.oauth_connect":"連接 {provider}","skills.oauth_connect_hint":"使用 OAuth 進行 {provider} 驗證。點擊下方按鈕開啟授權頁面。","skills.oauth_connected":"已連接 {provider}","skills.oauth_disconnect":"中斷連接 {provider}","skills.oauth_connecting":"連接中...","skills.oauth_needs_credentials":"請先在上方輸入 Client ID 和 Client Secret,然後才能連接 {provider}。","skills.save":"儲存","skills.saving":"儲存中...","skills.search_placeholder":"搜尋技能...","skills.skill_management":"技能管理","skills.subtitle":"管理AI工具能力","skills.tab_all":"全部","skills.tab_available":"可用","skills.tab_installed":"已安裝","skills.tab_marketplace":"市集","skills.title":"技能","skills.check_updates":"檢查更新","skills.checking_updates":"檢查中...","skills.update":"更新","skills.updating":"更新中...","skills.update_available":"可更新至 v{version}","skills.update_success":"已更新至 v{version}","skills.update_failed":"更新失敗","skills.update_check_failed":"檢查失敗","skills.update_check_failures":"{count} 個檢查失敗","skills.update_unsupported":"需手動安裝","skills.update_unsupported_count":"{count} 個未能檢查","skills.up_to_date":"已是最新版本","skills.updates_available":"有 {count} 個更新","skills.no_updates":"所有技能都是最新版本","skills.uninstall":"移除","skills.uninstall_title":"移除技能","skills.uninstall_confirm":"移除 {skill}?已保存的憑證資訊將被保留。","skills.uninstalling":"移除中...","skills.uninstall_failed":"移除失敗:{error}","skills.toggle_title":"管理本會話的技能","skills.toggle_header":"會話技能","skills.toggle_hint":"僅對此聊天開啓/關閉技能","skills.mcp_toggle_header":"MCP 伺服器","skills.default":"預設","skills.default_for_new_sessions":"新會話預設啟用","skills.reset_to_defaults":"重置為預設","auth.device_code_title":"GitHub Copilot 認証","auth.device_code_instructions":"開啟 {url} 並輸入驗證碼: {code}","auth.device_code_waiting":"等待授權中...","task.activity":"活動","task.awaiting":"等待核准","task.completed":"已完成","task.error":"錯誤","task.no_active":"沒有活動任務。傳送訊息開始使用。","task.processing":"處理中...","task.tool_bash":"Bash","task.tool_edit":"編輯","task.tool_editing":"正在編輯 {target}","task.tool_glob":"Glob","task.tool_glob_desc":"搜尋檔案","task.tool_grep":"Grep","task.tool_grep_desc":"搜尋程式碼","task.tool_read":"讀取","task.tool_reading":"正在讀取 {target}","task.tool_write":"寫入","task.tool_writing":"正在寫入 {target}","task.working":"處理中...","terminal.decrease_font":"縮小字體","terminal.increase_font":"放大字體","terminal.matrix_mode":"矩陣","terminal.no_output":"暫無終端機輸出","terminal.prompt":"$","theme.dark":"切換到深色模式","theme.light":"切換到淺色模式","time.days":"{count}天","time.hours":"{count}小時","time.just_now":"剛剛","time.milliseconds":"{count}毫秒","time.minutes":"{count}分鐘","time.seconds":"{count}秒","token.cache_read":"快取讀取","token.cache_write":"快取寫入","token.generating":"產生中...","token.idle":"閒置","token.input":"輸入","token.model":"模型","token.output":"輸出","token.session_cost":"工作階段","token.tokens":"tokens","token.total_cost":"總費用","token_usage.compacting":"壓縮中...","token_usage.generating":"生成中...","token_usage.idle":"閒置","token_usage.messages":"訊息","token_usage.model":"模型","token_usage.originally":"原始模型","token_usage.session_info":"工作階段資訊","token_usage.status":"狀態","tool.completed":"完成","tool.error":"錯誤","tool.running":"執行中...","tool.tool":"工具","user_menu.agents":"代理管理","user_menu.settings":"設定","user_menu.sign_out":"登出","user_menu.skills":"技能管理","user_menu.title":"使用者選單","user_inbox.clear_all":"清除全部","user_inbox.delete":"刪除","user_inbox.empty":"暫無通知","user_inbox.high_priority":"緊急","user_inbox.mark_all_read":"全部標記為已讀","user_inbox.mark_unread":"標記為未讀","user_inbox.next_message":"下一封訊息","user_inbox.prev_message":"上一封訊息","user_inbox.title":"通知","user_inbox.unread":"未讀","user_inbox.view_agent":"檢視代理","user_inbox.view_message":"檢視訊息","user_inbox.close":"關閉","user_inbox.mark_read":"標記為已讀","voice.dismiss_error":"關閉語音錯誤","voice.downloading_model":"正在下載語音模型...","voice.loading_model":"正在載入語音模型...","voice.processing":"正在轉錄音訊...","voice.processing_backend":"正在雲端轉錄...","voice.processing_local":"正在本地轉錄...","voice.processing_local_server":"正在透過本地伺服器轉錄...","voice.source_backend":"已透過雲端轉錄","voice.source_local":"已在本地轉錄","voice.source_local_server":"已透過本地伺服器轉錄","voice.start_recording":"開始語音錄入","voice.stop_recording":"停止錄音","voice.pause_recording":"暫停錄音","voice.resume_recording":"繼續錄音","voice.select_asr_model":"選擇語音辨識模型","model_selector.title":"工作階段模型","model_selector.list_label":"可用模型","model_selector.use_default":"使用預設模型","model_selector.no_models":"暫無可用模型","model_selector.default_label":"預設","spotlight.title":"搜尋工作階段","spotlight.new_chat":"新對話","spotlight.placeholder":"依標題搜尋工作階段...","spotlight.results":"工作階段結果","spotlight.recent_sessions":"最近的工作階段","spotlight.no_results":"找不到工作階段","spotlight.searching":"搜尋中...","spotlight.untitled":"無標題工作階段","spotlight.current":"目前","spotlight.navigate":"導航","spotlight.select":"選擇","spotlight.close":"關閉","slashCommand.title":"技能","slashCommand.skills":"技能","slashCommand.commands":"指令","slashCommand.command":"指令","slashCommand.noResults":"找不到相符的指令","slashCommand.notConfigured":"未設定","slashCommand.back":"返回技能列表","slashCommand.navigate":"導航","slashCommand.select":"選擇","slashCommand.close":"關閉","slashCommand.hint":"輸入 / 查看可用指令","archiveViewer.title":"原始對話歷史","archiveViewer.messages":"則訊息","archiveViewer.loading":"載入已封存訊息中...","archiveViewer.noArchive":"此工作階段沒有可用的封存歷史。","archiveViewer.readOnly":"唯讀封存","archiveViewer.archivedAt":"封存於","archiveViewer.close":"關閉","archiveViewer.loadError":"載入封存失敗","archiveViewer.you":"你","archiveViewer.assistant":"助理","compaction.title":"對話已壓縮","compaction.showSummary":"顯示摘要","compaction.viewOriginal":"檢視原始歷史","compaction.viewInHistory":"在歷史中檢視","compaction.server.title":"伺服器自動壓縮","compaction.server.status":"伺服器已自動壓縮上下文","compaction.mode.client":"客戶端(PAVE 摘要)","compaction.mode.server":"伺服器(vllm-mlx 自動壓縮)","compaction.mode.auto":"自動(依提供者偵測)","compaction.banner_title":"此工作階段由先前的對話壓縮而來。","compaction.view_original":"檢視原始對話","compaction.dismiss":"關閉","compaction.user_message_label":"正在摘要我們的對話以提升效率。","compaction.continuation_message_label":"摘要完成,請繼續。","compaction.boundary":"上下文已壓縮 — 上方訊息已不在模型的上下文中","compaction.show_history":"對話已摘要整理 — 已收合 {count} 則先前訊息;摘要如下","messages.load_earlier":"載入較早的訊息","messages.loading_earlier":"正在載入較早的訊息...","compaction.hide_history":"隱藏壓縮前的訊息","compaction.empty_title":"此對話已摘要整理","compaction.empty_body":"先前的訊息已收合以節省脈絡。顯示以檢視完整記錄。","compaction.empty_action":"顯示 {count} 則先前訊息","credits.limit_reached":"額度已用完","credits.limit_message":"您的可用額度已用完。請加值以繼續使用服務。","credits.add_credits":"加值","credits.dismiss":"關閉","dlp.heading":"私隱與 DLP 設定","dlp.subtitle":"設定資料外洩防護規則及私隱模式","dlp.title":"DLP 設定","dlp.close":"關閉 DLP 設定","dlp.cancel":"取消","dlp.save":"儲存","dlp.saving":"儲存中...","dlp.discard_title":"放棄變更","dlp.discard_confirm":"確定放棄未儲存的 DLP 設定變更?","dlp.enable_label":"啟用資料外洩防護","dlp.enable_desc":"啟用後,發送給 AI 模型的訊息會先掃描敏感資料。","dlp.default_action_label":"偵測到敏感資料時的預設動作","dlp.default_action_desc":"「詢問」會顯示對話框,「一律轉送」會改用私隱模型,「僅警告」會記錄並繼續。","dlp.reroute_model_label":"私隱模型(轉送目標)","dlp.reroute_model_desc":"私隱模式使用的模型/供應商。格式:provider/modelID","dlp.builtin_patterns":"內建規則","dlp.builtin_desc":"恆常可用的偵測規則。可獨立啟用或停用。","dlp.user_patterns":"自訂規則","dlp.user_patterns_desc":"您定義的規則,儲存至政策檔案,重啟後仍有效。","dlp.no_user_patterns":"尚未新增自訂規則。請在下方新增。","dlp.add_pattern":"新增規則","dlp.pattern_name":"名稱","dlp.regex_pattern":"正則表達式","dlp.severity":"嚴重程度","dlp.add":"新增","dlp.remove_pattern":"移除規則","dlp.remove_pattern_aria":"移除規則 {name}","dlp.pattern_exists":"規則「{name}」已存在","dlp.name_required":"規則名稱為必填","dlp.regex_required":"正則表達式為必填","dlp.invalid_regex":"正則表達式語法無效","user_menu.board":"代理人留言板","chat.interrupted_badge":"Interrupted","chat.stopped_badge":"已停止","chat.stopped_notice":"已由使用者停止","board.title":"代理人留言板","board.back_to_chat":"返回對話","board.back_to_topics":"返回主題列表","board.read_only_hint":"代理人透過工具在此發文 — 此頁面唯讀","board.post_count":"{count} 則留言","board.search_placeholder":"搜尋留言板…","board.search":"搜尋","board.clear_search":"清除","board.search_results":"{count} 筆結果","board.no_matches":"沒有符合的結果","board.no_topics":"尚無主題 — 代理人會透過留言板工具建立","board.no_posts":"沒有留言","board.post_deleted":"[已刪除]","board.delete_post":"刪除留言","board.delete_topic":"刪除主題","board.prev_page":"上一頁","board.next_page":"下一頁","board.page_info":"{from}–{to} / 共 {total}","user_menu.capabilities":"能力","capabilities.title":"能力","capabilities.back_to_chat":"返回對話","capabilities.close":"關閉","capabilities.search_placeholder":"搜尋能力…","capabilities.filter_all":"全部","capabilities.filter_skill":"技能","capabilities.filter_mcp":"MCP","capabilities.no_capabilities":"沒有符合的能力。","capabilities.no_description":"無描述。","capabilities.docs":"文件","capabilities.docs_missing":"找不到此技能的文件。","capabilities.install":"安裝","capabilities.update":"更新","capabilities.uninstall":"移除","capabilities.uninstall_confirm":"確認移除","capabilities.cancel":"取消","capabilities.done":"完成。","capabilities.needs_review":"需要審查 — 工具面在授權後已變更","capabilities.requires_mcps":"需要的 MCP","capabilities.composite_installed":"已安裝技能 {name} 及其 MCP","capabilities.changed_tools":"已變更的工具(重新授權前不會桥接):","capabilities.reapprove":"重新授權","capabilities.mcp_error":"MCP 錯誤","capabilities.token_label":"API 欺章(bearer)","capabilities.token_stored":"已儲存欺章","capabilities.token_placeholder":"貼上欺章 — 儲存於 ~/.pave/tokens.yaml,不會寫入 servers.json","capabilities.token_save":"儲存欺章","capabilities.token_clear":"清除欺章","capabilities.token_note":"欺章僅在 MCP 管理器內部附加;不會暴露給模型、shell 或技能。","capabilities.bridged":"已桥接工具","capabilities.deferred":"延後載入","capabilities.retry":"重試","capabilities.oauth_connect":"連結帳號","capabilities.oauth_pending":"等待授權中…請在已開啟的瀏覽器視窗完成授權。","capabilities.oauth_connected":"已連結,功能就緒。","capabilities.oauth_reconsent":"需要重新同意:已儲存的授權無法更新(或伺服器 url/auth 已變更)。請重新連結——舊權杖絕不會送往新的來源。","app.triggers_tab":"觸發器","triggers.title":"觸發器","triggers.back_to_chat":"返回對話","triggers.create":"新增觸發器","triggers.edit":"編輯","triggers.delete":"刪除","triggers.copy":"複製","triggers.copy_failed":"無法複製 Webhook URL。","triggers.reveal":"顯示","triggers.hide":"隱藏","triggers.empty":"尚無觸發器。","triggers.loading":"正在載入觸發器…","triggers.dismiss":"關閉","triggers.cancel":"取消","triggers.save":"儲存","triggers.name":"名稱","triggers.type":"類型","triggers.target_mode":"目標","triggers.target_existing":"既有工作階段","triggers.target_spawn":"新工作階段","triggers.session_id":"工作階段 ID","triggers.soul":"Soul","triggers.model":"模型","triggers.template":"訊息範本","triggers.payload_format":"內容格式","triggers.payload_format_help":"未設定範本時,如何遞送進來的內容。YAML 較易閱讀,JSON 為預設值。","triggers.experimental_tag":"實驗功能","triggers.request_failed":"請求失敗。"};export{e as default};
|