dimcode-web 0.1.0-alpha.25 → 0.1.0-alpha.26
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/release-manifest.json +99 -99
- package/web/assets/AccountSettings-3lFmZe5-.css +1 -0
- package/web/assets/AccountSettings-CJTGbM5m.js +1 -0
- package/web/assets/AgentSettings-DHO77kc7.js +1 -0
- package/web/assets/AppearanceSettings-B0o56AtJ.js +1 -0
- package/web/assets/AppearanceSettings-CyY1sZja.css +1 -0
- package/web/assets/ArchivedSettings-BAC2cQRx.js +1 -0
- package/web/assets/ArchivedSettings-BTot_Ixm.css +1 -0
- package/web/assets/{Checkbox-C6CIhQST.js → Checkbox-D2yvQEl3.js} +1 -1
- package/web/assets/{CodeBlockNode-C04Jwn7P.js → CodeBlockNode-uUN_2aAR.js} +2 -2
- package/web/assets/{DiagnosticsSettings-BCdpymYf.js → DiagnosticsSettings-BLFAHRqH.js} +1 -1
- package/web/assets/{GeneralSettingsStatus.vue_vue_type_script_setup_true_lang-C7tiHNrw.js → GeneralSettingsStatus.vue_vue_type_script_setup_true_lang-CmU799yw.js} +1 -1
- package/web/assets/{McpSettings-CbN6s19F.js → McpSettings-BJIUKmhR.js} +1 -1
- package/web/assets/ModalitySettings-B_q2xti5.js +1 -0
- package/web/assets/{PermissionsSettings--z3SlcI0.js → PermissionsSettings-BM6iEWBc.js} +1 -1
- package/web/assets/{PluginSettings-DgyrdWEk.js → PluginSettings-DXSKTzaR.js} +1 -1
- package/web/assets/{PreCodeBlock-Bk61_c9x.js → PreCodeBlock-DuRf6msZ.js} +1 -1
- package/web/assets/{Progress-CCdB9CHm.js → Progress-CO0tbB1X.js} +2 -2
- package/web/assets/ProviderAuthFlow.vue_vue_type_script_setup_true_lang-BFTOLZG-.js +1 -0
- package/web/assets/ProviderSettings-7k-y2ELO.js +1 -0
- package/web/assets/{ProviderSettings-DEwfvHXO.css → ProviderSettings-D8icgM6o.css} +1 -1
- package/web/assets/ScheduledSettings-BjwNQPJT.css +1 -0
- package/web/assets/ScheduledSettings-XGzp9IlV.js +1 -0
- package/web/assets/{SettingsPage-C8TfPmN2.js → SettingsPage-vlpo7w94.js} +1 -1
- package/web/assets/{SkillSettings-Dnsyz2dL.js → SkillSettings-AZ0CDXj-.js} +2 -2
- package/web/assets/{Toast-zTUYn6y_.js → Toast-mDP2-Ruz.js} +2 -2
- package/web/assets/{Tooltip-D3NbSdBq.js → Tooltip-C49ZYFK5.js} +2 -2
- package/web/assets/{abnfDiagram-N423BO3Z-B42DcWOu.js → abnfDiagram-N423BO3Z-ClgrdFPN.js} +1 -1
- package/web/assets/{arc-D5ZPG1FG.js → arc-B90aj7hw.js} +1 -1
- package/web/assets/{architectureDiagram-T3A2C74G-CrEr5lwf.js → architectureDiagram-T3A2C74G-CGTdtjqk.js} +1 -1
- package/web/assets/{blockDiagram-VBNYF7ZC-Bxq9GKWP.js → blockDiagram-VBNYF7ZC-DT1MIDDt.js} +1 -1
- package/web/assets/{c4Diagram-5PPSVZJV-CCnLgv9J.js → c4Diagram-5PPSVZJV-C_bKQsdy.js} +1 -1
- package/web/assets/channel-B09SsX8f.js +1 -0
- package/web/assets/{chunk-2GRJ4B5K-5fi5kMJS.js → chunk-2GRJ4B5K-DU-C1Hwy.js} +1 -1
- package/web/assets/{chunk-2Q5K7J3B-B_224xqv.js → chunk-2Q5K7J3B-CgbjGXFF.js} +1 -1
- package/web/assets/{chunk-5RXB4S5H-CKIh18aF.js → chunk-5RXB4S5H-Bmfpf6-X.js} +1 -1
- package/web/assets/{chunk-5VM5RSS4-DbAHRJlp.js → chunk-5VM5RSS4-DWfdGmvh.js} +1 -1
- package/web/assets/{chunk-6Q2QTUOP-1-G2eFwC.js → chunk-6Q2QTUOP-DA4a7KDX.js} +1 -1
- package/web/assets/{chunk-GF5L2VYU-Rt1koOlK.js → chunk-GF5L2VYU-jjapIgt8.js} +1 -1
- package/web/assets/{chunk-JWPE2WC7-FPL-bwzw.js → chunk-JWPE2WC7-C1kUiRK3.js} +1 -1
- package/web/assets/{chunk-KBJHAD2P-Z9DfvOen.js → chunk-KBJHAD2P-D6s2CmEr.js} +1 -1
- package/web/assets/{chunk-RYQCIY6F-CkRXaAOS.js → chunk-RYQCIY6F-CJ0eJKjS.js} +1 -1
- package/web/assets/{chunk-XXDRQBXY-DUmtTGtm.js → chunk-XXDRQBXY-DNDOvB3S.js} +1 -1
- package/web/assets/classDiagram-JCYQIIEL-CGBOrNrq.js +1 -0
- package/web/assets/classDiagram-v2-OCEON4UE-CGBOrNrq.js +1 -0
- package/web/assets/{context-BOjXeS7X.js → context-CJsPoGtt.js} +1 -1
- package/web/assets/{cose-bilkent-JH36ORCC-4vvGv_TQ.js → cose-bilkent-JH36ORCC-CoBXcmYy.js} +1 -1
- package/web/assets/{cynefin-OW5HDTMX-DBliBUR6.js → cynefin-OW5HDTMX-CmJIeOtc.js} +1 -1
- package/web/assets/{cynefinDiagram-MW4NZA55-BQkvLsFF.js → cynefinDiagram-MW4NZA55-qmZ1krvi.js} +1 -1
- package/web/assets/{dagre-VZM6K2ZE-BA1fepJY.js → dagre-VZM6K2ZE-B8jJDCmP.js} +1 -1
- package/web/assets/{diagram-7IWD3JNH-D0kZCV5n.js → diagram-7IWD3JNH-BBsG7bXl.js} +1 -1
- package/web/assets/{diagram-B4RE2ZJO-v9ZK2UsJ.js → diagram-B4RE2ZJO-BAQ_6j7h.js} +1 -1
- package/web/assets/{diagram-LBJQPF4R-CcGN8NVZ.js → diagram-LBJQPF4R-YUhU0cqB.js} +1 -1
- package/web/assets/{diagram-Q27KOJAE-DXAgZbBs.js → diagram-Q27KOJAE-CEQLmDqR.js} +1 -1
- package/web/assets/{diagram-UB23O5K3-DMMTKPHq.js → diagram-UB23O5K3-DmD96IkT.js} +1 -1
- package/web/assets/{ebnfDiagram-BXEA7PRR-BY-1J5pr.js → ebnfDiagram-BXEA7PRR-BTRmU0Tb.js} +1 -1
- package/web/assets/{erDiagram-JOGREHBK-qat9OFmQ.js → erDiagram-JOGREHBK-DYf1HUkg.js} +1 -1
- package/web/assets/{flowDiagram-UKHOOZJN-CU1QK9aV.js → flowDiagram-UKHOOZJN-BV5G0CSv.js} +1 -1
- package/web/assets/{ganttDiagram-PKOTCBZU-CYqu-EEY.js → ganttDiagram-PKOTCBZU-Bd9LEJun.js} +1 -1
- package/web/assets/{gitGraphDiagram-DS77QQ5N-cTmrCAeD.js → gitGraphDiagram-DS77QQ5N-BRV5RNHl.js} +1 -1
- package/web/assets/{index-BMERX23x.js → index-BOAKHK5O.js} +1 -1
- package/web/assets/index-Cw2UB-vh.js +57 -0
- package/web/assets/{index-Dr-SXzAR.css → index-DpFp3mPk.css} +1 -1
- package/web/assets/{index-BMiuW3oQ.js → index-rXNtPOVl.js} +5 -5
- package/web/assets/{index10-DG_ehWpk.js → index10-CqZDVfMD.js} +1 -1
- package/web/assets/{index5-BNaZzr2w.js → index5-Cq4YuC3k.js} +1 -1
- package/web/assets/{index6-kxqJQPoB.js → index6-kSlqQt5Z.js} +1 -1
- package/web/assets/{index8-BEw3e4wA.js → index8-BZAnytKY.js} +1 -1
- package/web/assets/{index9-lLu0yfFz.js → index9-BFvbNEx5.js} +1 -1
- package/web/assets/{infoDiagram-6WML65LV-CJ-0hiJd.js → infoDiagram-6WML65LV-Ctfz5Tkk.js} +1 -1
- package/web/assets/{ishikawaDiagram-WSZJBQD7-o12OVh1o.js → ishikawaDiagram-WSZJBQD7-DHOy9D0x.js} +1 -1
- package/web/assets/{journeyDiagram-NVQOT4AX-CA_wki0L.js → journeyDiagram-NVQOT4AX-saNvDQUd.js} +1 -1
- package/web/assets/{kanban-definition-27J2QSJJ-tQQAzpDC.js → kanban-definition-27J2QSJJ-DGhYlkkj.js} +1 -1
- package/web/assets/{linear-Bq7fd9jv.js → linear-DzKY3WU3.js} +1 -1
- package/web/assets/{markstream-CQCoRYwD.js → markstream-DBVM6i8W.js} +2 -2
- package/web/assets/{mermaid.core-Be2inSVF.js → mermaid.core-DcWZ2CKJ.js} +4 -4
- package/web/assets/{mindmap-definition-FAOFIHXS-rjlucX9t.js → mindmap-definition-FAOFIHXS-Byaqywd2.js} +1 -1
- package/web/assets/{pegDiagram-VL7TDLO6-jna1jfsH.js → pegDiagram-VL7TDLO6-QAp4mxKv.js} +1 -1
- package/web/assets/{pieDiagram-7S7Q4E2Y-D6o_eOIV.js → pieDiagram-7S7Q4E2Y-Dnebha3x.js} +1 -1
- package/web/assets/{quadrantDiagram-CIZ2JOQS-D7HCkj_c.js → quadrantDiagram-CIZ2JOQS-BL6jhJ-N.js} +1 -1
- package/web/assets/{railroadDiagram-AXF67PYL-BC4ql7QG.js → railroadDiagram-AXF67PYL-BYx-Obb4.js} +1 -1
- package/web/assets/{requirementDiagram-LRYGKXZP-RHIQUrWJ.js → requirementDiagram-LRYGKXZP-DyX-2ufw.js} +1 -1
- package/web/assets/{sankeyDiagram-W5VNT64P-CbUAU3ni.js → sankeyDiagram-W5VNT64P-Co5Hp9Hn.js} +1 -1
- package/web/assets/{sequenceDiagram-SI44F4Z6-PCrmuR6-.js → sequenceDiagram-SI44F4Z6-D1mLhuQ1.js} +1 -1
- package/web/assets/{settings-general-DduUd0E5.js → settings-general-2jDdasvB.js} +1 -1
- package/web/assets/{sizeCapture-X5ZJPWSS-B3i9JZNO.js → sizeCapture-X5ZJPWSS-C7ZZXPli.js} +1 -1
- package/web/assets/{stateDiagram-OKZ733FA-DmGU-QFm.js → stateDiagram-OKZ733FA-QIVx7qyu.js} +1 -1
- package/web/assets/stateDiagram-v2-UEYNNEHI-nuV_Ism4.js +1 -0
- package/web/assets/{swimlanes-SLNWSIFB-1IL6GO4Q.js → swimlanes-SLNWSIFB-DOBV1kOk.js} +2 -2
- package/web/assets/swimlanesDiagram-ULZ7WXOC-Bt9Gz59V.js +8 -0
- package/web/assets/{timeline-definition-Z64GVDOM-BYk-NCVn.js → timeline-definition-Z64GVDOM-Cqf-Agow.js} +1 -1
- package/web/assets/{vendor-vue-3IcwLTL7.js → vendor-vue-DKQ_ib1S.js} +1 -1
- package/web/assets/{vennDiagram-T6HMQDX7-CnH-c0ra.js → vennDiagram-T6HMQDX7-VxWUVtr0.js} +1 -1
- package/web/assets/{wardleyDiagram-T6FBY63Y-BnVP-fik.js → wardleyDiagram-T6FBY63Y-D42DcTEG.js} +1 -1
- package/web/assets/{xychartDiagram-ELKLHX3M-CoVCX9Qj.js → xychartDiagram-ELKLHX3M-CIWaPaG4.js} +1 -1
- package/web/assets/zh-CN-CSmGom3y.js +1 -0
- package/web/dimcode-web.json +2 -2
- package/web/index.html +3 -3
- package/web/assets/AccountSettings-DC6HJWQb.js +0 -1
- package/web/assets/AccountSettings-QIJGznMg.css +0 -1
- package/web/assets/AgentSettings-BDnse_S3.js +0 -1
- package/web/assets/AppearanceSettings-CRRxA-hr.js +0 -1
- package/web/assets/AppearanceSettings-DkoPsuO6.css +0 -1
- package/web/assets/ArchivedSettings-Cb3XfI5H.js +0 -1
- package/web/assets/ArchivedSettings-DgleqP6h.css +0 -1
- package/web/assets/ModalitySettings-D3W4M_vg.js +0 -1
- package/web/assets/ProviderAuthFlow.vue_vue_type_script_setup_true_lang-Dw6HwySz.js +0 -1
- package/web/assets/ProviderSettings-Djk2l3to.js +0 -1
- package/web/assets/ScheduledSettings-CgTWHYY1.css +0 -1
- package/web/assets/ScheduledSettings-Dmmzst7y.js +0 -1
- package/web/assets/channel-Bn7xNdOj.js +0 -1
- package/web/assets/classDiagram-JCYQIIEL-DVvTAUh5.js +0 -1
- package/web/assets/classDiagram-v2-OCEON4UE-DVvTAUh5.js +0 -1
- package/web/assets/index-CkyYecAj.js +0 -53
- package/web/assets/stateDiagram-v2-UEYNNEHI-IK-kUS_8.js +0 -1
- package/web/assets/swimlanesDiagram-ULZ7WXOC-CZf-sx2-.js +0 -8
- package/web/assets/zh-CN-CeegihBW.js +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{c as r,s as e}from"./flowDiagram-UKHOOZJN-BV5G0CSv.js";import{_ as a}from"./mermaid.core-DcWZ2CKJ.js";import"./chunk-5VM5RSS4-DWfdGmvh.js";import"./chunk-XXDRQBXY-DNDOvB3S.js";import"./chunk-KBJHAD2P-D6s2CmEr.js";import"./chunk-2GRJ4B5K-DU-C1Hwy.js";import"./channel-B09SsX8f.js";import"./index-Cw2UB-vh.js";import"./vendor-vue-DKQ_ib1S.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"),m=o,y=r({defaultLayout:"swimlane",styles:m});export{y as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as l,z as pt,aa as Wt,ab as Pt,ac as Bt,c as gt,l as S,F as Vt,a0 as Ft,ad as ft,d as J,u as zt,ae as Gt,q as Ot}from"./mermaid.core-
|
|
1
|
+
import{_ as l,z as pt,aa as Wt,ab as Pt,ac as Bt,c as gt,l as S,F as Vt,a0 as Ft,ad as ft,d as J,u as zt,ae as Gt,q as Ot}from"./mermaid.core-DcWZ2CKJ.js";import{d as ot}from"./arc-B90aj7hw.js";import"./index-Cw2UB-vh.js";import"./vendor-vue-DKQ_ib1S.js";var tt=(function(){var e=l(function(k,s,d,h){for(d=d||{},h=k.length;h--;d[k[h]]=s);return d},"o"),t=[6,11,13,14,15,17,19,20,23,24],n=[1,12],i=[1,13],r=[1,14],o=[1,15],c=[1,16],a=[1,19],p=[1,20],y={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:l(function(s,d,h,g,m,u,w){var v=u.length-1;switch(m){case 1:return u[v-1];case 3:g.setDirection("LR");break;case 4:g.setDirection("TD");break;case 5:this.$=[];break;case 6:u[v-1].push(u[v]),this.$=u[v-1];break;case 7:case 8:this.$=u[v];break;case 9:case 10:this.$=[];break;case 11:g.getCommonDb().setDiagramTitle(u[v].substr(6)),this.$=u[v].substr(6);break;case 12:this.$=u[v].trim(),g.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=u[v].trim(),g.getCommonDb().setAccDescription(this.$);break;case 15:g.addSection(u[v].substr(8)),this.$=u[v].substr(8);break;case 18:g.addTask(u[v],0,""),this.$=u[v];break;case 19:g.addEvent(u[v].substr(2)),this.$=u[v];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:n,15:i,17:r,19:o,20:c,21:17,22:18,23:a,24:p},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:n,15:i,17:r,19:o,20:c,21:17,22:18,23:a,24:p},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:l(function(s,d){if(d.recoverable)this.trace(s);else{var h=new Error(s);throw h.hash=d,h}},"parseError"),parse:l(function(s){var d=this,h=[0],g=[],m=[null],u=[],w=this.table,v="",M=0,C=0,P=2,V=1,L=u.slice.call(arguments,1),_=Object.create(this.lexer),R={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(R.yy[F]=this.yy[F]);_.setInput(s,R.yy),R.yy.lexer=_,R.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var z=_.yylloc;u.push(z);var Z=_.options&&_.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function q(A){h.length=h.length-2*A,m.length=m.length-A,u.length=u.length-A}l(q,"popStack");function O(){var A;return A=g.pop()||_.lex()||V,typeof A!="number"&&(A instanceof Array&&(g=A,A=g.pop()),A=d.symbols_[A]||A),A}l(O,"lex");for(var $,N,b,T,E={},H,I,B,D;;){if(N=h[h.length-1],this.defaultActions[N]?b=this.defaultActions[N]:(($===null||typeof $>"u")&&($=O()),b=w[N]&&w[N][$]),typeof b>"u"||!b.length||!b[0]){var K="";D=[];for(H in w[N])this.terminals_[H]&&H>P&&D.push("'"+this.terminals_[H]+"'");_.showPosition?K="Parse error on line "+(M+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+D.join(", ")+", got '"+(this.terminals_[$]||$)+"'":K="Parse error on line "+(M+1)+": Unexpected "+($==V?"end of input":"'"+(this.terminals_[$]||$)+"'"),this.parseError(K,{text:_.match,token:this.terminals_[$]||$,line:_.yylineno,loc:z,expected:D})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+N+", token: "+$);switch(b[0]){case 1:h.push($),m.push(_.yytext),u.push(_.yylloc),h.push(b[1]),$=null,C=_.yyleng,v=_.yytext,M=_.yylineno,z=_.yylloc;break;case 2:if(I=this.productions_[b[1]][1],E.$=m[m.length-I],E._$={first_line:u[u.length-(I||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(I||1)].first_column,last_column:u[u.length-1].last_column},Z&&(E._$.range=[u[u.length-(I||1)].range[0],u[u.length-1].range[1]]),T=this.performAction.apply(E,[v,C,M,R.yy,b[1],m,u].concat(L)),typeof T<"u")return T;I&&(h=h.slice(0,-1*I*2),m=m.slice(0,-1*I),u=u.slice(0,-1*I)),h.push(this.productions_[b[1]][0]),m.push(E.$),u.push(E._$),B=w[h[h.length-2]][h[h.length-1]],h.push(B);break;case 3:return!0}}return!0},"parse")},x=(function(){var k={EOF:1,parseError:l(function(d,h){if(this.yy.parser)this.yy.parser.parseError(d,h);else throw new Error(d)},"parseError"),setInput:l(function(s,d){return this.yy=d||this.yy||{},this._input=s,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:l(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var d=s.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:l(function(s){var d=s.length,h=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var g=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 m=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===g.length?this.yylloc.first_column:0)+g[g.length-h.length].length-h[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(s){this.unput(this.match.slice(s))},"less"),pastInput:l(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var s=this.pastInput(),d=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -51,4 +51,4 @@
|
|
|
51
51
|
* vue-i18n v11.4.14
|
|
52
52
|
* (c) 2026 kazuya kawaguchi
|
|
53
53
|
* Released under the MIT License.
|
|
54
|
-
*/const Xy="11.4.14";function Jy(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(hn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(hn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(hn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(hn().__INTLIFY_PROD_DEVTOOLS__=!1)}const ze={UNEXPECTED_RETURN_TYPE:my,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function rt(e,...t){return Ei(e,null,void 0)}const Ao=Cn("__translateVNode"),So=Cn("__datetimeParts"),No=Cn("__numberParts"),Yf=Cn("__setPluralRules"),qf=Cn("__injectWithOption"),Kn=Cn("__dispose");let Xf=null;{const e=hn().__VUE_INSTANCE_SETTERS__;Ae(e)&&e.push(t=>{Xf=t})}function dn(e){return!!a_(e)}function Bs(e){if(!fe(e)||kn(e))return e;for(const t in e)if(dt(e,t))if(!t.includes("."))fe(e[t])&&Bs(e[t]);else{const n=t.split("."),s=n.length-1;let r=e,i=!1;for(let o=0;o<s;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in r||(r[n[o]]=be()),!fe(r[n[o]])){i=!0;break}r=r[n[o]]}if(i||(kn(r)?wf.includes(n[s])||delete e[t]:(r[n[s]]=e[t],delete e[t])),!kn(r)){const o=r[n[s]];fe(o)&&Bs(o)}}return e}function hl(e,t){const{messages:n,__i18n:s,messageResolver:r,flatJson:i}=t,o=Ce(n)?n:Ae(s)?be():{[e]:be()};if(Ae(s)&&s.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:c,resource:a}=l;if(c){if(dn(c))return;o[c]=$t(o,c)||be(),yr(a,o[c])}else yr(a,o)}else Q(l)&&yr(JSON.parse(l),o)}),r==null&&i)for(const l in o)dt(o,l)&&Bs(o[l]);return o}function Jf(e){return e.type}function Qf(e,t,n){let s=fe(t.messages)?t.messages:be();"__i18nGlobal"in n&&(s=hl(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const r=Object.keys(s);r.length&&r.forEach(i=>{e.mergeLocaleMessage(i,s[i])});{if(fe(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(fe(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function jc(e){return Se(zt,null,e,0)}function $s(){return Xf??Xe()}const Kc="__INTLIFY_META__",Gc=()=>[],Qy=()=>!1;let Yc=0;function qc(e){return((t,n,s,r)=>e(n,s,$s()||void 0,r))}const Zy=()=>{const e=$s();let t=null;return e&&(t=Jf(e)[Kc])?{[Kc]:t}:null};function $r(e={}){const{__root:t,__injectWithOption:n}=e,s=t===void 0,r=e.flatJson,i=Hr?mn:ii;let o=me(e.inheritLocale)?e.inheritLocale:!0;const l=i(t&&o?t.locale.value:Q(e.locale)?e.locale:Ws),c=i(t&&o?t.fallbackLocale.value:Q(e.fallbackLocale)||Ae(e.fallbackLocale)||Ce(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),a=i(hl(l.value,e)),u=i(Ce(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),f=i(Ce(e.numberFormats)?e.numberFormats:{[l.value]:{}});let d=t?t.missingWarn:me(e.missingWarn)||ts(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:me(e.fallbackWarn)||ts(e.fallbackWarn)?e.fallbackWarn:!0,S=t?t.fallbackRoot:me(e.fallbackRoot)?e.fallbackRoot:!0,T=!!e.fallbackFormat,I=Oe(e.missing)?e.missing:null,C=Oe(e.missing)?qc(e.missing):null,E=Oe(e.postTranslation)?e.postTranslation:null,g=t?t.warnHtmlMessage:me(e.warnHtmlMessage)?e.warnHtmlMessage:!0,p=!!e.escapeParameter;const b=t?t.modifiers:Ce(e.modifiers)?e.modifiers:{};let k=e.pluralRules||t&&t.pluralRules,A;A=(()=>{s&&Mc(null);const L={version:Xy,locale:l.value,fallbackLocale:c.value,messages:a.value,modifiers:b,pluralRules:k,missing:C===null?void 0:C,missingWarn:d,fallbackWarn:m,fallbackFormat:T,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:g,escapeParameter:p,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};L.datetimeFormats=u.value,L.numberFormats=f.value;const V=My(L);return s&&Mc(V),V})(),pr(A,l.value,c.value);function w(){return[l.value,c.value,a.value,u.value,f.value]}const U=We({get:()=>l.value,set:L=>{A.locale=L,l.value=L}});function W(L){s||(A.fallbackContext=xy());try{return L()}finally{s||(A.fallbackContext=void 0)}}function x(L){W(()=>pr(A,l.value,L))}const K=We({get:()=>c.value,set:L=>{c.value=L,A.fallbackLocale=c.value,x(c.value)}}),z=We(()=>a.value),re=We(()=>u.value),Y=We(()=>f.value);function Z(){return Oe(E)?E:null}function te(L){E=L,A.postTranslation=L}function Ie(){return I}function ie(L){L!==null&&(C=qc(L)),I=L,A.missing=C}const ae=(L,V,se,le,ve,xe)=>{w();let Re;try{__INTLIFY_PROD_DEVTOOLS__,Re=W(()=>L(A))}finally{__INTLIFY_PROD_DEVTOOLS__}if(se!=="translate exists"&&De(Re)&&Re===vi||se==="translate exists"&&!Re){const[Et,Ci]=V();return t&&S?le(t):ve(Et)}else{if(xe(Re))return Re;throw rt(ze.UNEXPECTED_RETURN_TYPE)}};function he(...L){return ae(V=>Reflect.apply($c,null,[V,...L]),()=>To(...L),"translate",V=>Reflect.apply(V.t,V,[...L]),V=>V,V=>Q(V))}function Nt(...L){const[V,se,le]=L;if(le&&!fe(le))throw rt(ze.INVALID_ARGUMENT);return he(V,se,Ve({resolvedMessage:!0},le||{}))}function yt(...L){return ae(V=>Reflect.apply(Vc,null,[V,...L]),()=>vo(...L),"datetime format",V=>Reflect.apply(V.d,V,[...L]),()=>Wr,V=>Q(V)||Ae(V))}function bt(...L){return ae(V=>Reflect.apply(Hc,null,[V,...L]),()=>Co(...L),"number format",V=>Reflect.apply(V.n,V,[...L]),()=>Wr,V=>Q(V)||Ae(V))}function je(L){return L.map(V=>Q(V)||De(V)||me(V)?jc(String(V)):V)}const q={normalize:je,interpolate:L=>L,type:"vnode"};function j(...L){return ae(V=>{let se;const le=V;try{le.processor=q,se=Reflect.apply($c,null,[le,...L])}finally{le.processor=null}return se},()=>To(...L),"translate",V=>V[Ao](...L),V=>[jc(V)],V=>Ae(V))}function ee(...L){return ae(V=>Reflect.apply(Hc,null,[V,...L]),()=>Co(...L),"number format",V=>V[No](...L),Gc,V=>Q(V)||Ae(V))}function oe(...L){return ae(V=>Reflect.apply(Vc,null,[V,...L]),()=>vo(...L),"datetime format",V=>V[So](...L),Gc,V=>Q(V)||Ae(V))}function _(L){k=L,A.pluralRules=k}function v(L,V){return ae(()=>{if(!L)return!1;const se=Q(V)?V:l.value,le=Q(V)?[se]:Eo(A,c.value,se);for(let ve=0;ve<le.length;ve++){const xe=D(le[ve]);let Re=A.messageResolver(xe,L);if(Re===null&&(Re=xe[L]),Br(Re))return!0}return!1},()=>[L],"translate exists",se=>Reflect.apply(se.te,se,[L,V]),Qy,se=>me(se))}function O(L){let V=null;const se=Eo(A,c.value,l.value);for(let le=0;le<se.length;le++){const ve=$t(a.value,se[le])||{},xe=A.messageResolver(ve,L);if(xe!=null){V=xe;break}}return V}function M(L){const V=O(L);return V??(t?t.tm(L)||{}:{})}function D(L){return $t(a.value,L)||{}}function F(L,V){dn(L)||(r&&Bs(V),a.value[L]=V,A.messages=a.value)}function h(L,V){dn(L)||(a.value[L]=$t(a.value,L)||{},r&&Bs(V),yr(V,a.value[L]),A.messages=a.value)}function y(L){return $t(u.value,L)||{}}function N(L,V){dn(L)||(u.value[L]=V,A.datetimeFormats=u.value,Uc(A,L,V))}function R(L,V){dn(L)||(u.value[L]=Ve($t(u.value,L)||{},V),A.datetimeFormats=u.value,Uc(A,L,V))}function $(L){return $t(f.value,L)||{}}function B(L,V){dn(L)||(f.value[L]=V,A.numberFormats=f.value,Wc(A,L,V))}function G(L,V){dn(L)||(f.value[L]=Ve($t(f.value,L)||{},V),A.numberFormats=f.value,Wc(A,L,V))}Yc++,mt(c,()=>x(c.value),{deep:!0,flush:"sync"}),t&&Hr&&(mt(t.locale,L=>{o&&(l.value=L,A.locale=L,pr(A,l.value,c.value))}),mt(t.fallbackLocale,L=>{o&&(c.value=L,A.fallbackLocale=c.value,pr(A,l.value,c.value))}));const J={id:Yc,locale:U,fallbackLocale:K,get inheritLocale(){return o},set inheritLocale(L){o=L,L&&t&&(U.value=t.locale.value,K.value=t.fallbackLocale.value)},get availableLocales(){return Object.keys(a.value).sort()},messages:z,get modifiers(){return b},get pluralRules(){return k||{}},get isGlobal(){return s},get missingWarn(){return d},set missingWarn(L){d=L,A.missingWarn=d},get fallbackWarn(){return m},set fallbackWarn(L){m=L,A.fallbackWarn=m},get fallbackRoot(){return S},set fallbackRoot(L){S=L},get fallbackFormat(){return T},set fallbackFormat(L){T=L,A.fallbackFormat=T},get warnHtmlMessage(){return g},set warnHtmlMessage(L){g=L,A.warnHtmlMessage=L},get escapeParameter(){return p},set escapeParameter(L){p=L,A.escapeParameter=L},t:he,getLocaleMessage:D,setLocaleMessage:F,mergeLocaleMessage:h,getPostTranslationHandler:Z,setPostTranslationHandler:te,getMissingHandler:Ie,setMissingHandler:ie,[Yf]:_};return J.datetimeFormats=re,J.numberFormats=Y,J.rt=Nt,J.te=v,J.tm=M,J.d=yt,J.n=bt,J.getDateTimeFormat=y,J.setDateTimeFormat=N,J.mergeDateTimeFormat=R,J.getNumberFormat=$,J.setNumberFormat=B,J.mergeNumberFormat=G,J[qf]=n,J[Ao]=j,J[So]=oe,J[No]=ee,J}function zy(e){const t=Q(e.locale)?e.locale:Ws,n=Q(e.fallbackLocale)||Ae(e.fallbackLocale)||Ce(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=Oe(e.missing)?e.missing:void 0,r=me(e.silentTranslationWarn)||ts(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=me(e.silentFallbackWarn)||ts(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=me(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,c=Ce(e.modifiers)?e.modifiers:{},a=e.pluralizationRules,u=Oe(e.postTranslation)?e.postTranslation:void 0,f=Q(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,m=me(e.sync)?e.sync:!0;let S=e.messages;if(Ce(e.sharedMessages)){const b=e.sharedMessages;S=Object.keys(b).reduce((A,P)=>{if(dn(P))return A;const w=$t(A,P)||(A[P]={});return Ve(w,b[P]),A},S||{})}const{__i18n:T,__root:I,__injectWithOption:C}=e,E=e.datetimeFormats,g=e.numberFormats,p=e.flatJson;return{locale:t,fallbackLocale:n,messages:S,flatJson:p,datetimeFormats:E,numberFormats:g,missing:s,missingWarn:r,fallbackWarn:i,fallbackRoot:o,fallbackFormat:l,modifiers:c,pluralRules:a,postTranslation:u,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:m,__i18n:T,__root:I,__injectWithOption:C}}function Ro(e={}){const t=$r(zy(e)),{__extender:n}=e,s={id:t.id,get locale(){return t.locale.value},set locale(r){t.locale.value=r},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(r){t.fallbackLocale.value=r},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(r){t.setMissingHandler(r)},get silentTranslationWarn(){return me(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(r){t.missingWarn=me(r)?!r:r},get silentFallbackWarn(){return me(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(r){t.fallbackWarn=me(r)?!r:r},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(r){t.fallbackFormat=r},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(r){t.setPostTranslationHandler(r)},get sync(){return t.inheritLocale},set sync(r){t.inheritLocale=r},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){t.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(r){t.escapeParameter=r},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...r){return Reflect.apply(t.t,t,[...r])},rt(...r){return Reflect.apply(t.rt,t,[...r])},te(r,i){return t.te(r,i)},tm(r){return t.tm(r)},getLocaleMessage(r){return t.getLocaleMessage(r)},setLocaleMessage(r,i){t.setLocaleMessage(r,i)},mergeLocaleMessage(r,i){t.mergeLocaleMessage(r,i)},d(...r){return Reflect.apply(t.d,t,[...r])},getDateTimeFormat(r){return t.getDateTimeFormat(r)},setDateTimeFormat(r,i){t.setDateTimeFormat(r,i)},mergeDateTimeFormat(r,i){t.mergeDateTimeFormat(r,i)},n(...r){return Reflect.apply(t.n,t,[...r])},getNumberFormat(r){return t.getNumberFormat(r)},setNumberFormat(r,i){t.setNumberFormat(r,i)},mergeNumberFormat(r,i){t.mergeNumberFormat(r,i)}};return s.__extender=n,s}function eb(e,t,n){return{beforeCreate(){const s=$s();if(!s)throw rt(ze.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const i=r.i18n;if(r.__i18n&&(i.__i18n=r.__i18n),i.__root=t,this===this.$root)this.$i18n=Xc(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=Ro(i);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Xc(e,r);else{this.$i18n=Ro({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&Qf(t,r,r),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=$s();if(!s)throw rt(ze.UNEXPECTED_ERROR);const r=this.$i18n;r&&(delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r!=null&&r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(s),delete this.$i18n)}}}function Xc(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Yf](t.pluralizationRules||e.pluralizationRules);const n=hl(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const pl={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function tb({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,r)=>[...s,...r.type===ke?r.children:[r]],[]):t.reduce((n,s)=>{const r=e[s];return r&&(n[s]=r()),n},be())}function Zf(){return ke}const nb=vn({name:"i18n-t",props:Ve({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>De(e)||!isNaN(e)}},pl),setup(e,t){const{slots:n,attrs:s}=t,r=e.i18n||ml({useScope:e.scope,__useComponent:!0});return()=>{const i=()=>{const c=Object.keys(n).filter(f=>f[0]!=="_"),a=be();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=Q(e.plural)?+e.plural:e.plural);const u=tb(t,c);return r[Ao](e.keypath,u,a)},o=Ve(be(),s),l=Q(e.tag)||fe(e.tag)?e.tag:Zf();return fe(l)?bn(l,o,{default:i}):bn(l,o,i())}}}),Jc=nb;function sb(e){return Ae(e)&&!Q(e[0])}function zf(e,t,n,s){const{slots:r,attrs:i}=t;return()=>{const o=()=>{const a={part:!0};let u=be();e.locale&&(a.locale=e.locale),Q(e.format)?a.key=e.format:fe(e.format)&&(Q(e.format.key)&&(a.key=e.format.key),u=Object.keys(e.format).reduce((m,S)=>n.includes(S)?Ve(be(),m,{[S]:e.format[S]}):m,be()));const f=s(e.value,a,u);let d=[a.key];return Ae(f)?d=f.map((m,S)=>{const T=r[m.type],I=T?T({[m.type]:m.value,index:S,parts:f}):[m.value];return sb(I)&&(I[0].key=`${m.type}-${S}`),I}):Q(f)&&(d=[f]),d},l=Ve(be(),i),c=Q(e.tag)||fe(e.tag)?e.tag:Zf();return fe(c)?bn(c,l,{default:o}):bn(c,l,o())}}const rb=vn({name:"i18n-n",props:Ve({value:{type:Number,required:!0},format:{type:[String,Object]}},pl),setup(e,t){const n=e.i18n||ml({useScope:e.scope,__useComponent:!0});return zf(e,t,jf,(...s)=>n[No](...s))}}),Qc=rb;function ib(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function ob(e){const t=o=>{const{instance:l,value:c}=o;if(!l||!l.$)throw rt(ze.UNEXPECTED_ERROR);const a=ib(e,l.$),u=Zc(c);return[Reflect.apply(a.t,a,[...zc(u)]),a]};return{created:(o,l)=>{const[c,a]=t(l);Hr&&(o.__i18nWatcher=mt(a.locale,()=>{l.instance&&l.instance.$forceUpdate()})),o.__composer=a,o.textContent=c},unmounted:o=>{Hr&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:l})=>{if(o.__composer){const c=o.__composer,a=Zc(l);o.textContent=Reflect.apply(c.t,c,[...zc(a)])}},getSSRProps:o=>{const[l]=t(o);return{textContent:l}}}}function Zc(e){if(Q(e))return{path:e};if(Ce(e)){if(!("path"in e))throw rt(ze.REQUIRED_VALUE,"path");return e}else throw rt(ze.INVALID_VALUE)}function zc(e){const{path:t,locale:n,args:s,choice:r,plural:i}=e,o={},l=s||{};return Q(n)&&(o.locale=n),De(r)&&(o.plural=r),De(i)&&(o.plural=i),[t,l,o]}function lb(e,t,...n){const s=Ce(n[0])?n[0]:{};(me(s.globalInstall)?s.globalInstall:!0)&&([Jc.name,"I18nT"].forEach(i=>e.component(i,Jc)),[Qc.name,"I18nN"].forEach(i=>e.component(i,Qc)),[na.name,"I18nD"].forEach(i=>e.component(i,na))),e.directive("t",ob(t))}const cb=Cn("global-vue-i18n");function Rb(e={}){const t=__VUE_I18N_LEGACY_API__&&me(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=me(e.globalInjection)?e.globalInjection:!0,s=new Map,[r,i]=ab(e,t),o=Cn("");function l(f){return s.get(f)||null}function c(f,d){s.set(f,d)}function a(f){s.delete(f)}const u={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...d){if(f.__VUE_I18N_SYMBOL__=o,f.provide(f.__VUE_I18N_SYMBOL__,u),Ce(d[0])){const T=d[0];u.__composerExtend=T.__composerExtend,u.__vueI18nExtend=T.__vueI18nExtend}let m=null;!t&&n&&(m=gb(f,u.global)),__VUE_I18N_FULL_INSTALL__&&lb(f,u,...d),__VUE_I18N_LEGACY_API__&&t&&f.mixin(eb(i,i.__composer,u));const S=f.unmount;f.unmount=()=>{m&&m(),u.dispose(),S()}},get global(){return i},dispose(){r.stop()},__instances:s,__getInstance:l,__setInstance:c,__deleteInstance:a};return u}function ml(e={}){const t=$s();if(t==null)throw rt(ze.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw rt(ze.NOT_INSTALLED);const n=ub(t),s=db(n),r=Jf(t),i=fb(e,r);if(i==="global")return Qf(s,e,r),s;if(i==="parent"){let c=ea(n,t,e.__useComponent);return c==null&&(c=s),c}if(i==="isolated"){if(n.mode!=="composition")throw rt(ze.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const c=n,a=Ve({},e),u=ea(n,t);a.__root=u||s;const f=$r(a);return c.__composerExtend&&(f[Kn]=c.__composerExtend(f)),Zr()&&zr(()=>{const m=f[Kn];m&&(m(),delete f[Kn])}),f}const o=n;let l=o.__getInstance(t);if(l==null){const c=Ve({},e);"__i18n"in r&&(c.__i18n=r.__i18n),s&&(c.__root=s),l=$r(c),o.__composerExtend&&(l[Kn]=o.__composerExtend(l)),pb(o,t,l),o.__setInstance(t,l)}return l}function ab(e,t){const n=Qr(),s=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Ro(e)):n.run(()=>$r(e));if(s==null)throw rt(ze.UNEXPECTED_ERROR);return[n,s]}function ub(e){const t=qe(e.isCE?cb:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw rt(e.isCE?ze.NOT_INSTALLED_WITH_PROVIDE:ze.UNEXPECTED_ERROR);return t}function fb(e,t){return ol(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function db(e){return e.mode==="composition"?e.global:e.global.__composer}function ea(e,t,n=!1){let s=null;const r=t.root;let i=hb(t,n);for(;i!=null;){const o=e;if(e.mode==="composition")s=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const l=o.__getInstance(i);l!=null&&(s=l.__composer,n&&s&&!s[qf]&&(s=null))}if(s!=null||r===i)break;i=i.parent}return s}function hb(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function pb(e,t,n){ls(()=>{},t),Zs(()=>{const s=n;e.__deleteInstance(t);const r=s[Kn];r&&(r(),delete s[Kn])},t)}const mb=["locale","fallbackLocale","availableLocales"],ta=["t","rt","d","n","tm","te"];function gb(e,t){const n=Object.create(null);return mb.forEach(r=>{const i=Object.getOwnPropertyDescriptor(t,r);if(!i)throw rt(ze.UNEXPECTED_ERROR);const o=Ne(i.value)?{get(){return i.value.value},set(l){i.value.value=l}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,r,o)}),e.config.globalProperties.$i18n=n,ta.forEach(r=>{const i=Object.getOwnPropertyDescriptor(t,r);if(!i||!i.value)throw rt(ze.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,i)}),()=>{delete e.config.globalProperties.$i18n,ta.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}const _b=vn({name:"i18n-d",props:Ve({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},pl),setup(e,t){const n=e.i18n||ml({useScope:e.scope,__useComponent:!0});return zf(e,t,$f,(...s)=>n[So](...s))}}),na=_b;Jy();Iy(uy);Py(Ny);Ly(Eo);if(__INTLIFY_PROD_DEVTOOLS__){const e=hn();e.__INTLIFY__=!0,fy(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}export{Zr as $,sp as A,Km as B,vb as C,Cb as D,jh as E,ke as F,r_ as G,Bh as H,Nb as I,Sb as J,vs as K,Kh as L,Zs as M,ii as N,Au as O,Yh as P,np as Q,e_ as R,ah as S,om as T,Vd as U,Wh as V,rs as W,zr as X,fd as Y,Cu as Z,Dh as _,wr as a,bn as a0,ri as a1,Ym as a2,_h as a3,jd as a4,yh as a5,Oa as a6,uh as a7,mp as a8,ip as a9,uo as aA,Vp as aB,yb as aC,Ha as aa,Yp as ab,Vt as ac,Ne as ad,ue as ae,Fa as af,Ud as ag,Bo as ah,Wo as ai,Qr as aj,Dd as ak,Ra as al,vr as am,ui as an,ys as ao,Fe as ap,Le as aq,rp as ar,Ya as as,xo as at,Rb as au,Eb as av,Ur as aw,Ab as ax,Tb as ay,bb as az,Tu as b,Mp as c,vn as d,Se as e,zo as f,ml as g,mt as h,fi as i,qe as j,Zo as k,ch as l,qs as m,Ys as n,Ms as o,mh as p,os as q,mn as r,Xe as s,ca as t,xt as u,Hu as v,Do as w,ls as x,Gh as y,We as z};
|
|
54
|
+
*/const Xy="11.4.14";function Jy(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(hn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(hn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(hn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(hn().__INTLIFY_PROD_DEVTOOLS__=!1)}const ze={UNEXPECTED_RETURN_TYPE:my,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function rt(e,...t){return Ei(e,null,void 0)}const Ao=Cn("__translateVNode"),So=Cn("__datetimeParts"),No=Cn("__numberParts"),Yf=Cn("__setPluralRules"),qf=Cn("__injectWithOption"),Kn=Cn("__dispose");let Xf=null;{const e=hn().__VUE_INSTANCE_SETTERS__;Ae(e)&&e.push(t=>{Xf=t})}function dn(e){return!!a_(e)}function Bs(e){if(!fe(e)||kn(e))return e;for(const t in e)if(dt(e,t))if(!t.includes("."))fe(e[t])&&Bs(e[t]);else{const n=t.split("."),s=n.length-1;let r=e,i=!1;for(let o=0;o<s;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in r||(r[n[o]]=be()),!fe(r[n[o]])){i=!0;break}r=r[n[o]]}if(i||(kn(r)?wf.includes(n[s])||delete e[t]:(r[n[s]]=e[t],delete e[t])),!kn(r)){const o=r[n[s]];fe(o)&&Bs(o)}}return e}function hl(e,t){const{messages:n,__i18n:s,messageResolver:r,flatJson:i}=t,o=Ce(n)?n:Ae(s)?be():{[e]:be()};if(Ae(s)&&s.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:c,resource:a}=l;if(c){if(dn(c))return;o[c]=$t(o,c)||be(),yr(a,o[c])}else yr(a,o)}else Q(l)&&yr(JSON.parse(l),o)}),r==null&&i)for(const l in o)dt(o,l)&&Bs(o[l]);return o}function Jf(e){return e.type}function Qf(e,t,n){let s=fe(t.messages)?t.messages:be();"__i18nGlobal"in n&&(s=hl(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const r=Object.keys(s);r.length&&r.forEach(i=>{e.mergeLocaleMessage(i,s[i])});{if(fe(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(fe(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function jc(e){return Se(zt,null,e,0)}function $s(){return Xf??Xe()}const Kc="__INTLIFY_META__",Gc=()=>[],Qy=()=>!1;let Yc=0;function qc(e){return((t,n,s,r)=>e(n,s,$s()||void 0,r))}const Zy=()=>{const e=$s();let t=null;return e&&(t=Jf(e)[Kc])?{[Kc]:t}:null};function $r(e={}){const{__root:t,__injectWithOption:n}=e,s=t===void 0,r=e.flatJson,i=Hr?mn:ii;let o=me(e.inheritLocale)?e.inheritLocale:!0;const l=i(t&&o?t.locale.value:Q(e.locale)?e.locale:Ws),c=i(t&&o?t.fallbackLocale.value:Q(e.fallbackLocale)||Ae(e.fallbackLocale)||Ce(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),a=i(hl(l.value,e)),u=i(Ce(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),f=i(Ce(e.numberFormats)?e.numberFormats:{[l.value]:{}});let d=t?t.missingWarn:me(e.missingWarn)||ts(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:me(e.fallbackWarn)||ts(e.fallbackWarn)?e.fallbackWarn:!0,S=t?t.fallbackRoot:me(e.fallbackRoot)?e.fallbackRoot:!0,T=!!e.fallbackFormat,I=Oe(e.missing)?e.missing:null,C=Oe(e.missing)?qc(e.missing):null,E=Oe(e.postTranslation)?e.postTranslation:null,g=t?t.warnHtmlMessage:me(e.warnHtmlMessage)?e.warnHtmlMessage:!0,p=!!e.escapeParameter;const b=t?t.modifiers:Ce(e.modifiers)?e.modifiers:{};let k=e.pluralRules||t&&t.pluralRules,A;A=(()=>{s&&Mc(null);const L={version:Xy,locale:l.value,fallbackLocale:c.value,messages:a.value,modifiers:b,pluralRules:k,missing:C===null?void 0:C,missingWarn:d,fallbackWarn:m,fallbackFormat:T,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:g,escapeParameter:p,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};L.datetimeFormats=u.value,L.numberFormats=f.value;const V=My(L);return s&&Mc(V),V})(),pr(A,l.value,c.value);function w(){return[l.value,c.value,a.value,u.value,f.value]}const U=We({get:()=>l.value,set:L=>{A.locale=L,l.value=L}});function W(L){s||(A.fallbackContext=xy());try{return L()}finally{s||(A.fallbackContext=void 0)}}function x(L){W(()=>pr(A,l.value,L))}const K=We({get:()=>c.value,set:L=>{c.value=L,A.fallbackLocale=c.value,x(c.value)}}),z=We(()=>a.value),re=We(()=>u.value),Y=We(()=>f.value);function Z(){return Oe(E)?E:null}function te(L){E=L,A.postTranslation=L}function Ie(){return I}function ie(L){L!==null&&(C=qc(L)),I=L,A.missing=C}const ae=(L,V,se,le,ve,xe)=>{w();let Re;try{__INTLIFY_PROD_DEVTOOLS__,Re=W(()=>L(A))}finally{__INTLIFY_PROD_DEVTOOLS__}if(se!=="translate exists"&&De(Re)&&Re===vi||se==="translate exists"&&!Re){const[Et,Ci]=V();return t&&S?le(t):ve(Et)}else{if(xe(Re))return Re;throw rt(ze.UNEXPECTED_RETURN_TYPE)}};function he(...L){return ae(V=>Reflect.apply($c,null,[V,...L]),()=>To(...L),"translate",V=>Reflect.apply(V.t,V,[...L]),V=>V,V=>Q(V))}function Nt(...L){const[V,se,le]=L;if(le&&!fe(le))throw rt(ze.INVALID_ARGUMENT);return he(V,se,Ve({resolvedMessage:!0},le||{}))}function yt(...L){return ae(V=>Reflect.apply(Vc,null,[V,...L]),()=>vo(...L),"datetime format",V=>Reflect.apply(V.d,V,[...L]),()=>Wr,V=>Q(V)||Ae(V))}function bt(...L){return ae(V=>Reflect.apply(Hc,null,[V,...L]),()=>Co(...L),"number format",V=>Reflect.apply(V.n,V,[...L]),()=>Wr,V=>Q(V)||Ae(V))}function je(L){return L.map(V=>Q(V)||De(V)||me(V)?jc(String(V)):V)}const q={normalize:je,interpolate:L=>L,type:"vnode"};function j(...L){return ae(V=>{let se;const le=V;try{le.processor=q,se=Reflect.apply($c,null,[le,...L])}finally{le.processor=null}return se},()=>To(...L),"translate",V=>V[Ao](...L),V=>[jc(V)],V=>Ae(V))}function ee(...L){return ae(V=>Reflect.apply(Hc,null,[V,...L]),()=>Co(...L),"number format",V=>V[No](...L),Gc,V=>Q(V)||Ae(V))}function oe(...L){return ae(V=>Reflect.apply(Vc,null,[V,...L]),()=>vo(...L),"datetime format",V=>V[So](...L),Gc,V=>Q(V)||Ae(V))}function _(L){k=L,A.pluralRules=k}function v(L,V){return ae(()=>{if(!L)return!1;const se=Q(V)?V:l.value,le=Q(V)?[se]:Eo(A,c.value,se);for(let ve=0;ve<le.length;ve++){const xe=D(le[ve]);let Re=A.messageResolver(xe,L);if(Re===null&&(Re=xe[L]),Br(Re))return!0}return!1},()=>[L],"translate exists",se=>Reflect.apply(se.te,se,[L,V]),Qy,se=>me(se))}function O(L){let V=null;const se=Eo(A,c.value,l.value);for(let le=0;le<se.length;le++){const ve=$t(a.value,se[le])||{},xe=A.messageResolver(ve,L);if(xe!=null){V=xe;break}}return V}function M(L){const V=O(L);return V??(t?t.tm(L)||{}:{})}function D(L){return $t(a.value,L)||{}}function F(L,V){dn(L)||(r&&Bs(V),a.value[L]=V,A.messages=a.value)}function h(L,V){dn(L)||(a.value[L]=$t(a.value,L)||{},r&&Bs(V),yr(V,a.value[L]),A.messages=a.value)}function y(L){return $t(u.value,L)||{}}function N(L,V){dn(L)||(u.value[L]=V,A.datetimeFormats=u.value,Uc(A,L,V))}function R(L,V){dn(L)||(u.value[L]=Ve($t(u.value,L)||{},V),A.datetimeFormats=u.value,Uc(A,L,V))}function $(L){return $t(f.value,L)||{}}function B(L,V){dn(L)||(f.value[L]=V,A.numberFormats=f.value,Wc(A,L,V))}function G(L,V){dn(L)||(f.value[L]=Ve($t(f.value,L)||{},V),A.numberFormats=f.value,Wc(A,L,V))}Yc++,mt(c,()=>x(c.value),{deep:!0,flush:"sync"}),t&&Hr&&(mt(t.locale,L=>{o&&(l.value=L,A.locale=L,pr(A,l.value,c.value))}),mt(t.fallbackLocale,L=>{o&&(c.value=L,A.fallbackLocale=c.value,pr(A,l.value,c.value))}));const J={id:Yc,locale:U,fallbackLocale:K,get inheritLocale(){return o},set inheritLocale(L){o=L,L&&t&&(U.value=t.locale.value,K.value=t.fallbackLocale.value)},get availableLocales(){return Object.keys(a.value).sort()},messages:z,get modifiers(){return b},get pluralRules(){return k||{}},get isGlobal(){return s},get missingWarn(){return d},set missingWarn(L){d=L,A.missingWarn=d},get fallbackWarn(){return m},set fallbackWarn(L){m=L,A.fallbackWarn=m},get fallbackRoot(){return S},set fallbackRoot(L){S=L},get fallbackFormat(){return T},set fallbackFormat(L){T=L,A.fallbackFormat=T},get warnHtmlMessage(){return g},set warnHtmlMessage(L){g=L,A.warnHtmlMessage=L},get escapeParameter(){return p},set escapeParameter(L){p=L,A.escapeParameter=L},t:he,getLocaleMessage:D,setLocaleMessage:F,mergeLocaleMessage:h,getPostTranslationHandler:Z,setPostTranslationHandler:te,getMissingHandler:Ie,setMissingHandler:ie,[Yf]:_};return J.datetimeFormats=re,J.numberFormats=Y,J.rt=Nt,J.te=v,J.tm=M,J.d=yt,J.n=bt,J.getDateTimeFormat=y,J.setDateTimeFormat=N,J.mergeDateTimeFormat=R,J.getNumberFormat=$,J.setNumberFormat=B,J.mergeNumberFormat=G,J[qf]=n,J[Ao]=j,J[So]=oe,J[No]=ee,J}function zy(e){const t=Q(e.locale)?e.locale:Ws,n=Q(e.fallbackLocale)||Ae(e.fallbackLocale)||Ce(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=Oe(e.missing)?e.missing:void 0,r=me(e.silentTranslationWarn)||ts(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=me(e.silentFallbackWarn)||ts(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=me(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,c=Ce(e.modifiers)?e.modifiers:{},a=e.pluralizationRules,u=Oe(e.postTranslation)?e.postTranslation:void 0,f=Q(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,m=me(e.sync)?e.sync:!0;let S=e.messages;if(Ce(e.sharedMessages)){const b=e.sharedMessages;S=Object.keys(b).reduce((A,P)=>{if(dn(P))return A;const w=$t(A,P)||(A[P]={});return Ve(w,b[P]),A},S||{})}const{__i18n:T,__root:I,__injectWithOption:C}=e,E=e.datetimeFormats,g=e.numberFormats,p=e.flatJson;return{locale:t,fallbackLocale:n,messages:S,flatJson:p,datetimeFormats:E,numberFormats:g,missing:s,missingWarn:r,fallbackWarn:i,fallbackRoot:o,fallbackFormat:l,modifiers:c,pluralRules:a,postTranslation:u,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:m,__i18n:T,__root:I,__injectWithOption:C}}function Ro(e={}){const t=$r(zy(e)),{__extender:n}=e,s={id:t.id,get locale(){return t.locale.value},set locale(r){t.locale.value=r},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(r){t.fallbackLocale.value=r},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(r){t.setMissingHandler(r)},get silentTranslationWarn(){return me(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(r){t.missingWarn=me(r)?!r:r},get silentFallbackWarn(){return me(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(r){t.fallbackWarn=me(r)?!r:r},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(r){t.fallbackFormat=r},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(r){t.setPostTranslationHandler(r)},get sync(){return t.inheritLocale},set sync(r){t.inheritLocale=r},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){t.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(r){t.escapeParameter=r},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...r){return Reflect.apply(t.t,t,[...r])},rt(...r){return Reflect.apply(t.rt,t,[...r])},te(r,i){return t.te(r,i)},tm(r){return t.tm(r)},getLocaleMessage(r){return t.getLocaleMessage(r)},setLocaleMessage(r,i){t.setLocaleMessage(r,i)},mergeLocaleMessage(r,i){t.mergeLocaleMessage(r,i)},d(...r){return Reflect.apply(t.d,t,[...r])},getDateTimeFormat(r){return t.getDateTimeFormat(r)},setDateTimeFormat(r,i){t.setDateTimeFormat(r,i)},mergeDateTimeFormat(r,i){t.mergeDateTimeFormat(r,i)},n(...r){return Reflect.apply(t.n,t,[...r])},getNumberFormat(r){return t.getNumberFormat(r)},setNumberFormat(r,i){t.setNumberFormat(r,i)},mergeNumberFormat(r,i){t.mergeNumberFormat(r,i)}};return s.__extender=n,s}function eb(e,t,n){return{beforeCreate(){const s=$s();if(!s)throw rt(ze.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const i=r.i18n;if(r.__i18n&&(i.__i18n=r.__i18n),i.__root=t,this===this.$root)this.$i18n=Xc(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=Ro(i);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Xc(e,r);else{this.$i18n=Ro({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&Qf(t,r,r),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=$s();if(!s)throw rt(ze.UNEXPECTED_ERROR);const r=this.$i18n;r&&(delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r!=null&&r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(s),delete this.$i18n)}}}function Xc(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Yf](t.pluralizationRules||e.pluralizationRules);const n=hl(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const pl={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function tb({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,r)=>[...s,...r.type===ke?r.children:[r]],[]):t.reduce((n,s)=>{const r=e[s];return r&&(n[s]=r()),n},be())}function Zf(){return ke}const nb=vn({name:"i18n-t",props:Ve({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>De(e)||!isNaN(e)}},pl),setup(e,t){const{slots:n,attrs:s}=t,r=e.i18n||ml({useScope:e.scope,__useComponent:!0});return()=>{const i=()=>{const c=Object.keys(n).filter(f=>f[0]!=="_"),a=be();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=Q(e.plural)?+e.plural:e.plural);const u=tb(t,c);return r[Ao](e.keypath,u,a)},o=Ve(be(),s),l=Q(e.tag)||fe(e.tag)?e.tag:Zf();return fe(l)?bn(l,o,{default:i}):bn(l,o,i())}}}),Jc=nb;function sb(e){return Ae(e)&&!Q(e[0])}function zf(e,t,n,s){const{slots:r,attrs:i}=t;return()=>{const o=()=>{const a={part:!0};let u=be();e.locale&&(a.locale=e.locale),Q(e.format)?a.key=e.format:fe(e.format)&&(Q(e.format.key)&&(a.key=e.format.key),u=Object.keys(e.format).reduce((m,S)=>n.includes(S)?Ve(be(),m,{[S]:e.format[S]}):m,be()));const f=s(e.value,a,u);let d=[a.key];return Ae(f)?d=f.map((m,S)=>{const T=r[m.type],I=T?T({[m.type]:m.value,index:S,parts:f}):[m.value];return sb(I)&&(I[0].key=`${m.type}-${S}`),I}):Q(f)&&(d=[f]),d},l=Ve(be(),i),c=Q(e.tag)||fe(e.tag)?e.tag:Zf();return fe(c)?bn(c,l,{default:o}):bn(c,l,o())}}const rb=vn({name:"i18n-n",props:Ve({value:{type:Number,required:!0},format:{type:[String,Object]}},pl),setup(e,t){const n=e.i18n||ml({useScope:e.scope,__useComponent:!0});return zf(e,t,jf,(...s)=>n[No](...s))}}),Qc=rb;function ib(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function ob(e){const t=o=>{const{instance:l,value:c}=o;if(!l||!l.$)throw rt(ze.UNEXPECTED_ERROR);const a=ib(e,l.$),u=Zc(c);return[Reflect.apply(a.t,a,[...zc(u)]),a]};return{created:(o,l)=>{const[c,a]=t(l);Hr&&(o.__i18nWatcher=mt(a.locale,()=>{l.instance&&l.instance.$forceUpdate()})),o.__composer=a,o.textContent=c},unmounted:o=>{Hr&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:l})=>{if(o.__composer){const c=o.__composer,a=Zc(l);o.textContent=Reflect.apply(c.t,c,[...zc(a)])}},getSSRProps:o=>{const[l]=t(o);return{textContent:l}}}}function Zc(e){if(Q(e))return{path:e};if(Ce(e)){if(!("path"in e))throw rt(ze.REQUIRED_VALUE,"path");return e}else throw rt(ze.INVALID_VALUE)}function zc(e){const{path:t,locale:n,args:s,choice:r,plural:i}=e,o={},l=s||{};return Q(n)&&(o.locale=n),De(r)&&(o.plural=r),De(i)&&(o.plural=i),[t,l,o]}function lb(e,t,...n){const s=Ce(n[0])?n[0]:{};(me(s.globalInstall)?s.globalInstall:!0)&&([Jc.name,"I18nT"].forEach(i=>e.component(i,Jc)),[Qc.name,"I18nN"].forEach(i=>e.component(i,Qc)),[na.name,"I18nD"].forEach(i=>e.component(i,na))),e.directive("t",ob(t))}const cb=Cn("global-vue-i18n");function Rb(e={}){const t=__VUE_I18N_LEGACY_API__&&me(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=me(e.globalInjection)?e.globalInjection:!0,s=new Map,[r,i]=ab(e,t),o=Cn("");function l(f){return s.get(f)||null}function c(f,d){s.set(f,d)}function a(f){s.delete(f)}const u={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...d){if(f.__VUE_I18N_SYMBOL__=o,f.provide(f.__VUE_I18N_SYMBOL__,u),Ce(d[0])){const T=d[0];u.__composerExtend=T.__composerExtend,u.__vueI18nExtend=T.__vueI18nExtend}let m=null;!t&&n&&(m=gb(f,u.global)),__VUE_I18N_FULL_INSTALL__&&lb(f,u,...d),__VUE_I18N_LEGACY_API__&&t&&f.mixin(eb(i,i.__composer,u));const S=f.unmount;f.unmount=()=>{m&&m(),u.dispose(),S()}},get global(){return i},dispose(){r.stop()},__instances:s,__getInstance:l,__setInstance:c,__deleteInstance:a};return u}function ml(e={}){const t=$s();if(t==null)throw rt(ze.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw rt(ze.NOT_INSTALLED);const n=ub(t),s=db(n),r=Jf(t),i=fb(e,r);if(i==="global")return Qf(s,e,r),s;if(i==="parent"){let c=ea(n,t,e.__useComponent);return c==null&&(c=s),c}if(i==="isolated"){if(n.mode!=="composition")throw rt(ze.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const c=n,a=Ve({},e),u=ea(n,t);a.__root=u||s;const f=$r(a);return c.__composerExtend&&(f[Kn]=c.__composerExtend(f)),Zr()&&zr(()=>{const m=f[Kn];m&&(m(),delete f[Kn])}),f}const o=n;let l=o.__getInstance(t);if(l==null){const c=Ve({},e);"__i18n"in r&&(c.__i18n=r.__i18n),s&&(c.__root=s),l=$r(c),o.__composerExtend&&(l[Kn]=o.__composerExtend(l)),pb(o,t,l),o.__setInstance(t,l)}return l}function ab(e,t){const n=Qr(),s=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Ro(e)):n.run(()=>$r(e));if(s==null)throw rt(ze.UNEXPECTED_ERROR);return[n,s]}function ub(e){const t=qe(e.isCE?cb:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw rt(e.isCE?ze.NOT_INSTALLED_WITH_PROVIDE:ze.UNEXPECTED_ERROR);return t}function fb(e,t){return ol(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function db(e){return e.mode==="composition"?e.global:e.global.__composer}function ea(e,t,n=!1){let s=null;const r=t.root;let i=hb(t,n);for(;i!=null;){const o=e;if(e.mode==="composition")s=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const l=o.__getInstance(i);l!=null&&(s=l.__composer,n&&s&&!s[qf]&&(s=null))}if(s!=null||r===i)break;i=i.parent}return s}function hb(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function pb(e,t,n){ls(()=>{},t),Zs(()=>{const s=n;e.__deleteInstance(t);const r=s[Kn];r&&(r(),delete s[Kn])},t)}const mb=["locale","fallbackLocale","availableLocales"],ta=["t","rt","d","n","tm","te"];function gb(e,t){const n=Object.create(null);return mb.forEach(r=>{const i=Object.getOwnPropertyDescriptor(t,r);if(!i)throw rt(ze.UNEXPECTED_ERROR);const o=Ne(i.value)?{get(){return i.value.value},set(l){i.value.value=l}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,r,o)}),e.config.globalProperties.$i18n=n,ta.forEach(r=>{const i=Object.getOwnPropertyDescriptor(t,r);if(!i||!i.value)throw rt(ze.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,i)}),()=>{delete e.config.globalProperties.$i18n,ta.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}const _b=vn({name:"i18n-d",props:Ve({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},pl),setup(e,t){const n=e.i18n||ml({useScope:e.scope,__useComponent:!0});return zf(e,t,$f,(...s)=>n[So](...s))}}),na=_b;Jy();Iy(uy);Py(Ny);Ly(Eo);if(__INTLIFY_PROD_DEVTOOLS__){const e=hn();e.__INTLIFY__=!0,fy(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}export{Zr as $,sp as A,Km as B,vb as C,Cb as D,jh as E,ke as F,r_ as G,Bh as H,Nb as I,Sb as J,vs as K,Kh as L,Zs as M,ii as N,Au as O,Yh as P,np as Q,e_ as R,ah as S,om as T,Vd as U,Wh as V,rs as W,zr as X,fd as Y,Cu as Z,Dh as _,wr as a,bn as a0,ri as a1,Ym as a2,_h as a3,jd as a4,yh as a5,Oa as a6,uh as a7,mp as a8,ip as a9,bb as aA,uo as aB,Vp as aC,yb as aD,Ha as aa,Yp as ab,Vt as ac,Ne as ad,ue as ae,Fa as af,Ud as ag,Bo as ah,Wo as ai,Qr as aj,Dd as ak,Ra as al,vr as am,ui as an,ys as ao,Fe as ap,Le as aq,rp as ar,Ya as as,xo as at,Rb as au,Eb as av,Ur as aw,Vh as ax,Ab as ay,Tb as az,Tu as b,Mp as c,vn as d,Se as e,zo as f,ml as g,mt as h,fi as i,qe as j,Zo as k,ch as l,qs as m,Ys as n,Ms as o,mh as p,os as q,mn as r,Xe as s,ca as t,xt as u,Hu as v,Do as w,ls as x,Gh as y,We as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b4 as Wt,s as Kt,g as Ht,p as Yt,o as Xt,a as Zt,b as Jt,_ as S,z as St,F as Qt,d as rt,al as $t,aa as te,ab as ee,ac as ne,e as se,q as ie,B as re,D as oe}from"./mermaid.core-Be2inSVF.js";import"./index-CkyYecAj.js";import"./vendor-vue-3IcwLTL7.js";const kt=(t,n)=>Wt(t,"a",-n),_t=1e-10;function st(t,n){const s=le(t),e=s.filter(l=>ae(l,t));let i=0,r=0;const o=[];if(e.length>1){const l=Et(e);for(let u=0;u<e.length;++u){const a=e[u];a.angle=Math.atan2(a.x-l.x,a.y-l.y)}e.sort((u,a)=>a.angle-u.angle);let h=e[e.length-1];for(let u=0;u<e.length;++u){const a=e[u];r+=(h.x+a.x)*(a.y-h.y);const p={x:(a.x+h.x)/2,y:(a.y+h.y)/2};let d=null;for(let m=0;m<a.parentIndex.length;++m)if(h.parentIndex.includes(a.parentIndex[m])){const y=t[a.parentIndex[m]],M=Math.atan2(a.x-y.x,a.y-y.y),E=Math.atan2(h.x-y.x,h.y-y.y);let T=E-M;T<0&&(T+=2*Math.PI);const w=E-T/2;let g=K(p,{x:y.x+y.radius*Math.sin(w),y:y.y+y.radius*Math.cos(w)});g>y.radius*2&&(g=y.radius*2),(d==null||d.width>g)&&(d={circle:y,width:g,p1:a,p2:h,large:g>y.radius,sweep:!0})}d!=null&&(o.push(d),i+=lt(d.circle.radius,d.width),h=a)}}else{let l=t[0];for(let u=1;u<t.length;++u)t[u].radius<l.radius&&(l=t[u]);let h=!1;for(let u=0;u<t.length;++u)if(K(t[u],l)>Math.abs(l.radius-t[u].radius)){h=!0;break}h?i=r=0:(i=l.radius*l.radius*Math.PI,o.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-_t,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return r/=2,n&&(n.area=i+r,n.arcArea=i,n.polygonArea=r,n.arcs=o,n.innerPoints=e,n.intersectionPoints=s),i+r}function ae(t,n){return n.every(s=>K(t,s)<s.radius+_t)}function le(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=Tt(t[s],t[e]);for(const r of i)r.parentIndex=[s,e],n.push(r)}return n}function lt(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function K(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function xt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return lt(t,e)+lt(n,i)}function Tt(t,n){const s=K(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const r=(e*e-i*i+s*s)/(2*s),o=Math.sqrt(e*e-r*r),l=t.x+r*(n.x-t.x)/s,h=t.y+r*(n.y-t.y)/s,u=-(n.y-t.y)*(o/s),a=-(n.x-t.x)*(o/s);return[{x:l+u,y:h-a},{x:l-u,y:h+a}]}function Et(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function ce(t,n,s,e){e=e||{};const i=e.maxIterations||100,r=e.tolerance||1e-10,o=t(n),l=t(s);let h=s-n;if(o*l>0)throw"Initial bisect points must have opposite signs";if(o===0)return n;if(l===0)return s;for(let u=0;u<i;++u){h/=2;const a=n+h,p=t(a);if(p*o>=0&&(n=a),Math.abs(h)<r||p===0)return a}return n+h}function ct(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function Mt(t,n){return ct(t).map(()=>ct(n))}function tt(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function ut(t){return Math.sqrt(tt(t,t))}function ht(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function Q(t,n,s,e,i){for(let r=0;r<t.length;++r)t[r]=n*s[r]+e*i[r]}function zt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,r=s.zeroDelta||.001,o=s.minErrorDelta||1e-6,l=s.minErrorDelta||1e-5,h=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,p=s.sigma!==void 0?s.sigma:.5;let d;const m=n.length,y=new Array(m+1);y[0]=n,y[0].fx=t(n),y[0].id=0;for(let v=0;v<m;++v){const c=n.slice();c[v]=c[v]?c[v]*i:r,y[v+1]=c,y[v+1].fx=t(c),y[v+1].id=v+1}function M(v){for(let c=0;c<v.length;c++)y[m][c]=v[c];y[m].fx=v.fx}const E=(v,c)=>v.fx-c.fx,T=n.slice(),w=n.slice(),g=n.slice(),b=n.slice();for(let v=0;v<e;++v){if(y.sort(E),s.history){const x=y.map(f=>{const O=f.slice();return O.fx=f.fx,O.id=f.id,O});x.sort((f,O)=>f.id-O.id),s.history.push({x:y[0].slice(),fx:y[0].fx,simplex:x})}d=0;for(let x=0;x<m;++x)d=Math.max(d,Math.abs(y[0][x]-y[1][x]));if(Math.abs(y[0].fx-y[m].fx)<o&&d<l)break;for(let x=0;x<m;++x){T[x]=0;for(let f=0;f<m;++f)T[x]+=y[f][x];T[x]/=m}const c=y[m];if(Q(w,1+h,T,-h,c),w.fx=t(w),w.fx<y[0].fx)Q(b,1+u,T,-u,c),b.fx=t(b),b.fx<w.fx?M(b):M(w);else if(w.fx>=y[m-1].fx){let x=!1;if(w.fx>c.fx?(Q(g,1+a,T,-a,c),g.fx=t(g),g.fx<c.fx?M(g):x=!0):(Q(g,1-a*h,T,a*h,c),g.fx=t(g),g.fx<w.fx?M(g):x=!0),x){if(p>=1)break;for(let f=1;f<y.length;++f)Q(y[f],1-p,y[0],p,y[f]),y[f].fx=t(y[f])}}else M(w)}return y.sort(E),{fx:y[0].fx,x:y[0]}}function ue(t,n,s,e,i,r,o){const l=s.fx,h=tt(s.fxprime,n);let u=l,a=l,p=h,d=0;i=i||1,r=r||1e-6,o=o||.1;function m(y,M,E){for(let T=0;T<16;++T)if(i=(y+M)/2,Q(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),p=tt(e.fxprime,n),u>l+r*i*h||u>=E)M=i;else{if(Math.abs(p)<=-o*h)return i;p*(M-y)>=0&&(M=y),y=i,E=u}return 0}for(let y=0;y<10;++y){if(Q(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),p=tt(e.fxprime,n),u>l+r*i*h||y&&u>=a)return m(d,i,a);if(Math.abs(p)<=-o*h)return i;if(p>=0)return m(i,d,u);a=u,d=i,i*=2}return i}function he(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const r=n.slice();let o,l,h=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),o=e.fxprime.slice(),ht(o,e.fxprime,-1);for(let a=0;a<u;++a){if(h=ue(t,o,e,i,h),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:h}),!h)ht(o,e.fxprime,-1);else{Q(r,1,i.fxprime,-1,e.fxprime);const p=tt(e.fxprime,e.fxprime),d=Math.max(0,tt(r,i.fxprime)/p);Q(o,d,o,-1,i.fxprime),l=e,e=i,i=l}if(ut(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:h}),e}function At(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||xe,e=n.lossFunction||et,i=fe(t,n),r=s(i,n),o=Object.keys(r),l=[];for(const a of o)l.push(r[a].x),l.push(r[a].y);const u=zt(a=>{const p={};for(let d=0;d<o.length;++d){const m=o[d];p[m]={x:a[2*d],y:a[2*d+1],radius:r[m].radius}}return e(p,i)},l,n).x;for(let a=0;a<o.length;++a){const p=o[a];r[p].x=u[2*a],r[p].y=u[2*a+1]}return r}const Rt=1e-10;function ft(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+Rt?Math.abs(t-n):ce(e=>xt(t,n,e)-s,0,t+n)}function fe(t,n={}){const s=n.distinct,e=t.map(l=>Object.assign({},l));function i(l){return l.join(";")}if(s){const l=new Map;for(const h of e)for(let u=0;u<h.sets.length;u++){const a=String(h.sets[u]);l.set(a,h.size+(l.get(a)||0));for(let p=u+1;p<h.sets.length;p++){const d=String(h.sets[p]),m=`${a};${d}`,y=`${d};${a}`;l.set(m,h.size+(l.get(m)||0)),l.set(y,h.size+(l.get(y)||0))}}for(const h of e)h.sets.length<3&&(h.size=l.get(i(h.sets)))}const r=[],o=new Set;for(const l of e)if(l.sets.length===1)r.push(l.sets[0]);else if(l.sets.length===2){const h=l.sets[0],u=l.sets[1];o.add(i(l.sets)),o.add(i([u,h]))}r.sort((l,h)=>l===h?0:l<h?-1:1);for(let l=0;l<r.length;++l){const h=r[l];for(let u=l+1;u<r.length;++u){const a=r[u];o.has(i([h,a]))||e.push({sets:[h,a],size:0})}}return e}function de(t,n,s){const e=Mt(n.length,n.length),i=Mt(n.length,n.length);return t.filter(r=>r.sets.length===2).forEach(r=>{const o=s[r.sets[0]],l=s[r.sets[1]],h=Math.sqrt(n[o].size/Math.PI),u=Math.sqrt(n[l].size/Math.PI),a=ft(h,u,r.size);e[o][l]=e[l][o]=a;let p=0;r.size+1e-10>=Math.min(n[o].size,n[l].size)?p=1:r.size<=1e-10&&(p=-1),i[o][l]=i[l][o]=p}),{distances:e,constraints:i}}function ge(t,n,s,e){for(let r=0;r<n.length;++r)n[r]=0;let i=0;for(let r=0;r<s.length;++r){const o=t[2*r],l=t[2*r+1];for(let h=r+1;h<s.length;++h){const u=t[2*h],a=t[2*h+1],p=s[r][h],d=e[r][h],m=(u-o)*(u-o)+(a-l)*(a-l),y=Math.sqrt(m),M=m-p*p;d>0&&y<=p||d<0&&y>=p||(i+=2*M*M,n[2*r]+=4*M*(o-u),n[2*r+1]+=4*M*(l-a),n[2*h]+=4*M*(u-o),n[2*h+1]+=4*M*(a-l))}}return i}function xe(t,n={}){let s=pe(t,n);const e=n.lossFunction||et;if(t.length>=8){const i=ye(t,n),r=e(i,t),o=e(s,t);r+1e-8<o&&(s=i)}return s}function ye(t,n={}){const s=n.restarts||10,e=[],i={};for(const d of t)d.sets.length===1&&(i[d.sets[0]]=e.length,e.push(d));let{distances:r,constraints:o}=de(t,e,i);const l=ut(r.map(ut))/r.length;r=r.map(d=>d.map(m=>m/l));const h=(d,m)=>ge(d,m,r,o);let u=null;for(let d=0;d<s;++d){const m=ct(r.length*2).map(Math.random),y=he(h,m,n);(!u||y.fx<u.fx)&&(u=y)}const a=u.x,p={};for(let d=0;d<e.length;++d){const m=e[d];p[m.sets[0]]={x:a[2*d]*l,y:a[2*d+1]*l,radius:Math.sqrt(m.size/Math.PI)}}if(n.history)for(const d of n.history)ht(d.x,l);return p}function pe(t,n){const s=n&&n.lossFunction?n.lossFunction:et,e={},i={};for(const p of t)if(p.sets.length===1){const d=p.sets[0];e[d]={x:1e10,y:1e10,rowid:e.length,size:p.size,radius:Math.sqrt(p.size/Math.PI)},i[d]=[]}t=t.filter(p=>p.sets.length===2);for(const p of t){let d=p.weight!=null?p.weight:1;const m=p.sets[0],y=p.sets[1];p.size+Rt>=Math.min(e[m].size,e[y].size)&&(d=0),i[m].push({set:y,size:p.size,weight:d}),i[y].push({set:m,size:p.size,weight:d})}const r=[];Object.keys(i).forEach(p=>{let d=0;for(let m=0;m<i[p].length;++m)d+=i[p][m].size*i[p][m].weight;r.push({set:p,size:d})});function o(p,d){return d.size-p.size}r.sort(o);const l={};function h(p){return p.set in l}function u(p,d){e[d].x=p.x,e[d].y=p.y,l[d]=!0}u({x:0,y:0},r[0].set);for(let p=1;p<r.length;++p){const d=r[p].set,m=i[d].filter(h),y=e[d];if(m.sort(o),m.length===0)throw"ERROR: missing pairwise overlap information";const M=[];for(var a=0;a<m.length;++a){const w=e[m[a].set],g=ft(y.radius,w.radius,m[a].size);M.push({x:w.x+g,y:w.y}),M.push({x:w.x-g,y:w.y}),M.push({y:w.y+g,x:w.x}),M.push({y:w.y-g,x:w.x});for(let b=a+1;b<m.length;++b){const v=e[m[b].set],c=ft(y.radius,v.radius,m[b].size),x=Tt({x:w.x,y:w.y,radius:g},{x:v.x,y:v.y,radius:c});M.push(...x)}}let E=1e50,T=M[0];for(const w of M){e[d].x=w.x,e[d].y=w.y;const g=s(e,t);g<E&&(E=g,T=w)}u(T,d)}return e}function et(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const o=t[e.sets[0]],l=t[e.sets[1]];i=xt(o.radius,l.radius,K(o,l))}else i=st(e.sets.map(o=>t[o]));const r=e.weight!=null?e.weight:1;s+=r*(i-e.size)*(i-e.size)}return s}function Dt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const l=t[e.sets[0]],h=t[e.sets[1]];i=xt(l.radius,h.radius,K(l,h))}else i=st(e.sets.map(l=>t[l]));const r=e.weight!=null?e.weight:1,o=Math.log((i+1)/(e.size+1));s+=r*o*o}return s}function me(t,n,s){if(s==null?t.sort((i,r)=>r.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,r=t[0].y;for(const o of t)o.x-=i,o.y-=r}if(t.length===2&&K(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,r=Math.cos(i),o=Math.sin(i);for(const l of t){const h=l.x,u=l.y;l.x=r*h-o*u,l.y=o*h+r*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const r=t[1].y/(1e-10+t[1].x);for(const o of t){var e=(o.x+r*o.y)/(1+r*r);o.x=2*e-o.x,o.y=2*e*r-o.y}}}}function be(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,r){const o=n(i),l=n(r);o.parent=l}for(let i=0;i<t.length;++i)for(let r=i+1;r<t.length;++r){const o=t[i].radius+t[r].radius;K(t[i],t[r])+1e-10<o&&s(t[r],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const r=n(t[i]).parent.setid;e.has(r)||e.set(r,[]),e.get(r).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function dt(t){const n=s=>{const e=t.reduce((r,o)=>Math.max(r,o[s]+o.radius),Number.NEGATIVE_INFINITY),i=t.reduce((r,o)=>Math.min(r,o[s]-o.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Ct(t,n,s){n==null&&(n=Math.PI/2);let e=Ft(t).map(u=>Object.assign({},u));const i=be(e);for(const u of i){me(u,n,s);const a=dt(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let r=e.bounds;const o=(r.xRange.max-r.xRange.min)/50;function l(u,a,p){if(!u)return;const d=u.bounds;let m,y;if(a)m=r.xRange.max-d.xRange.min+o;else{m=r.xRange.max-d.xRange.max;const M=(d.xRange.max-d.xRange.min)/2-(r.xRange.max-r.xRange.min)/2;M<0&&(m+=M)}if(p)y=r.yRange.max-d.yRange.min+o;else{y=r.yRange.max-d.yRange.max;const M=(d.yRange.max-d.yRange.min)/2-(r.yRange.max-r.yRange.min)/2;M<0&&(y+=M)}for(const M of u)M.x+=m,M.y+=y,e.push(M)}let h=1;for(;h<i.length;)l(i[h],!0,!1),l(i[h+1],!1,!0),l(i[h+2],!0,!0),h+=3,r=dt(e);return Ot(e)}function Nt(t,n,s,e,i){const r=Ft(t);n-=2*e,s-=2*e;const{xRange:o,yRange:l}=dt(r);if(o.max===o.min||l.max===l.min)return console.log("not scaling solution: zero size detected"),t;let h,u;if(i){const m=Math.sqrt(i/Math.PI)*2;h=n/m,u=s/m}else h=n/(o.max-o.min),u=s/(l.max-l.min);const a=Math.min(u,h),p=(n-(o.max-o.min)*a)/2,d=(s-(l.max-l.min)*a)/2;return Ot(r.map(m=>({radius:a*m.radius,x:e+p+(m.x-o.min)*a,y:e+d+(m.y-l.min)*a,setid:m.setid})))}function Ot(t){const n={};for(const s of t)n[s.setid]=s;return n}function Ft(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function ve(t={}){let n=!1,s=600,e=350,i=15,r=1e3,o=Math.PI/2,l=!0,h=null,u=!0,a=!0,p=null,d=null,m=!1,y=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,E={},T=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],w=0,g=function(x){if(x in E)return E[x];var f=E[x]=T[w];return w+=1,w>=T.length&&(w=0),f},b=At,v=et;function c(x){let f=x.datum();const O=new Set;f.forEach(I=>{I.size==0&&I.sets.length==1&&O.add(I.sets[0])}),f=f.filter(I=>!I.sets.some(C=>O.has(C)));let k={},R={};if(f.length>0){let I=b(f,{lossFunction:v,distinct:m});l&&(I=Ct(I,o,d)),k=Nt(I,s,e,i,h),R=Lt(k,f,M)}const Z={};f.forEach(I=>{I.label&&(Z[I.sets]=I.label)});function U(I){if(I.sets in Z)return Z[I.sets];if(I.sets.length==1)return""+I.sets[0]}x.selectAll("svg").data([k]).enter().append("svg");const B=x.select("svg");n?B.attr("viewBox",`0 0 ${s} ${e}`):B.attr("width",s).attr("height",e);const V={};let z=!1;B.selectAll(".venn-area path").each(function(I){const C=this.getAttribute("d");I.sets.length==1&&C&&!m&&(z=!0,V[I.sets[0]]=Me(C))});function q(I){return C=>{const G=I.sets.map(J=>{let W=V[J],X=k[J];return W||(W={x:s/2,y:e/2,radius:1}),X||(X={x:s/2,y:e/2,radius:1}),{x:W.x*(1-C)+X.x*C,y:W.y*(1-C)+X.y*C,radius:W.radius*(1-C)+X.radius*C}});return wt(G,y)}}const A=B.selectAll(".venn-area").data(f,I=>I.sets),F=A.enter().append("g").attr("class",I=>`venn-area venn-${I.sets.length==1?"circle":"intersection"}${I.colour||I.color?" venn-coloured":""}`).attr("data-venn-sets",I=>I.sets.join("_")),j=F.append("path"),L=F.append("text").attr("class","label").text(I=>U(I)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(j.style("fill-opacity","0").filter(I=>I.sets.length==1).style("fill",I=>I.colour?I.colour:I.color?I.color:g(I.sets)).style("fill-opacity",".25"),L.style("fill",I=>I.colour||I.color?"#FFF":t.textFill?t.textFill:I.sets.length==1?g(I.sets):"#444"));function P(I){return typeof I.transition=="function"?I.transition("venn").duration(r):I}let _=x;z&&typeof _.transition=="function"?(_=P(x),_.selectAll("path").attrTween("d",q)):_.selectAll("path").attr("d",I=>wt(I.sets.map(C=>k[C])),y);const D=_.selectAll("text").filter(I=>I.sets in R).text(I=>U(I)).attr("x",I=>Math.floor(R[I.sets].x)).attr("y",I=>Math.floor(R[I.sets].y));u&&(z?"on"in D?D.on("end",ot(k,U)):D.each("end",ot(k,U)):D.each(ot(k,U)));const N=P(A.exit()).remove();typeof A.transition=="function"&&N.selectAll("path").attrTween("d",q);const Y=N.selectAll("text").attr("x",s/2).attr("y",e/2);return p!==null&&(L.style("font-size","0px"),D.style("font-size",p),Y.style("font-size","0px")),{circles:k,textCentres:R,nodes:A,enter:F,update:_,exit:N}}return c.wrap=function(x){return arguments.length?(u=x,c):u},c.useViewBox=function(){return n=!0,c},c.width=function(x){return arguments.length?(s=x,c):s},c.height=function(x){return arguments.length?(e=x,c):e},c.padding=function(x){return arguments.length?(i=x,c):i},c.distinct=function(x){return arguments.length?(m=x,c):m},c.colours=function(x){return arguments.length?(g=x,c):g},c.colors=function(x){return arguments.length?(g=x,c):g},c.fontSize=function(x){return arguments.length?(p=x,c):p},c.round=function(x){return arguments.length?(y=x,c):y},c.duration=function(x){return arguments.length?(r=x,c):r},c.layoutFunction=function(x){return arguments.length?(b=x,c):b},c.normalize=function(x){return arguments.length?(l=x,c):l},c.scaleToFit=function(x){return arguments.length?(h=x,c):h},c.styled=function(x){return arguments.length?(a=x,c):a},c.orientation=function(x){return arguments.length?(o=x,c):o},c.orientationOrder=function(x){return arguments.length?(d=x,c):d},c.lossFunction=function(x){return arguments.length?(v=x==="default"?et:x==="logRatio"?Dt:x,c):v},c}function ot(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,r=n(s)||"",o=r.split(/\s+/).reverse(),h=(r.length+o.length)/3;let u=o.pop(),a=[u],p=0;const d=1.1;e.textContent=null;const m=[];function y(g){const b=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return b.textContent=g,m.push(b),e.append(b),b}let M=y(u);for(;u=o.pop(),!!u;){a.push(u);const g=a.join(" ");M.textContent=g,g.length>h&&M.getComputedTextLength()>i&&(a.pop(),M.textContent=a.join(" "),a=[u],M=y(u),p++)}const E=.35-p*d/2,T=e.getAttribute("x"),w=e.getAttribute("y");m.forEach((g,b)=>{g.setAttribute("x",T),g.setAttribute("y",w),g.setAttribute("dy",`${E+b*d}em`)})}}function at(t,n,s){let e=n[0].radius-K(n[0],t);for(let i=1;i<n.length;++i){const r=n[i].radius-K(n[i],t);r<=e&&(e=r)}for(let i=0;i<s.length;++i){const r=K(s[i],t)-s[i].radius;r<=e&&(e=r)}return e}function jt(t,n,s){const e=[];for(const a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],r=at(e[0],t,n);for(let a=1;a<e.length;++a){const p=at(e[a],t,n);p>=r&&(i=e[a],r=p)}const o=zt(a=>-1*at({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s?0:o[0],y:o[1]};let h=!0;for(const a of t)if(K(l,a)>a.radius){h=!1;break}for(const a of n)if(K(l,a)<a.radius){h=!1;break}if(h)return l;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return st(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?jt(t,[]):Et(u.arcs.map(a=>a.p1))}function Ie(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],r=t[i];for(let o=e+1;o<s.length;++o){const l=s[o],h=t[l],u=K(r,h);u+h.radius<=r.radius+1e-10?n[l].push(i):u+r.radius<=h.radius+1e-10&&n[i].push(l)}}return n}function Lt(t,n,s){const e={},i=Ie(t);for(let r=0;r<n.length;++r){const o=n[r].sets,l={},h={};for(let d=0;d<o.length;++d){l[o[d]]=!0;const m=i[o[d]];for(let y=0;y<m.length;++y)h[m[y]]=!0}const u=[],a=[];for(let d in t)d in l?u.push(t[d]):d in h||a.push(t[d]);const p=jt(u,a,s);e[o]=p,p.disjoint&&n[r].size>0&&console.log("WARNING: area "+o+" not represented on screen")}return e}function ke(t,n,s){const e=[];return e.push(`
|
|
1
|
+
import{b4 as Wt,s as Kt,g as Ht,p as Yt,o as Xt,a as Zt,b as Jt,_ as S,z as St,F as Qt,d as rt,al as $t,aa as te,ab as ee,ac as ne,e as se,q as ie,B as re,D as oe}from"./mermaid.core-DcWZ2CKJ.js";import"./index-Cw2UB-vh.js";import"./vendor-vue-DKQ_ib1S.js";const kt=(t,n)=>Wt(t,"a",-n),_t=1e-10;function st(t,n){const s=le(t),e=s.filter(l=>ae(l,t));let i=0,r=0;const o=[];if(e.length>1){const l=Et(e);for(let u=0;u<e.length;++u){const a=e[u];a.angle=Math.atan2(a.x-l.x,a.y-l.y)}e.sort((u,a)=>a.angle-u.angle);let h=e[e.length-1];for(let u=0;u<e.length;++u){const a=e[u];r+=(h.x+a.x)*(a.y-h.y);const p={x:(a.x+h.x)/2,y:(a.y+h.y)/2};let d=null;for(let m=0;m<a.parentIndex.length;++m)if(h.parentIndex.includes(a.parentIndex[m])){const y=t[a.parentIndex[m]],M=Math.atan2(a.x-y.x,a.y-y.y),E=Math.atan2(h.x-y.x,h.y-y.y);let T=E-M;T<0&&(T+=2*Math.PI);const w=E-T/2;let g=K(p,{x:y.x+y.radius*Math.sin(w),y:y.y+y.radius*Math.cos(w)});g>y.radius*2&&(g=y.radius*2),(d==null||d.width>g)&&(d={circle:y,width:g,p1:a,p2:h,large:g>y.radius,sweep:!0})}d!=null&&(o.push(d),i+=lt(d.circle.radius,d.width),h=a)}}else{let l=t[0];for(let u=1;u<t.length;++u)t[u].radius<l.radius&&(l=t[u]);let h=!1;for(let u=0;u<t.length;++u)if(K(t[u],l)>Math.abs(l.radius-t[u].radius)){h=!0;break}h?i=r=0:(i=l.radius*l.radius*Math.PI,o.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-_t,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return r/=2,n&&(n.area=i+r,n.arcArea=i,n.polygonArea=r,n.arcs=o,n.innerPoints=e,n.intersectionPoints=s),i+r}function ae(t,n){return n.every(s=>K(t,s)<s.radius+_t)}function le(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=Tt(t[s],t[e]);for(const r of i)r.parentIndex=[s,e],n.push(r)}return n}function lt(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function K(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function xt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return lt(t,e)+lt(n,i)}function Tt(t,n){const s=K(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const r=(e*e-i*i+s*s)/(2*s),o=Math.sqrt(e*e-r*r),l=t.x+r*(n.x-t.x)/s,h=t.y+r*(n.y-t.y)/s,u=-(n.y-t.y)*(o/s),a=-(n.x-t.x)*(o/s);return[{x:l+u,y:h-a},{x:l-u,y:h+a}]}function Et(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function ce(t,n,s,e){e=e||{};const i=e.maxIterations||100,r=e.tolerance||1e-10,o=t(n),l=t(s);let h=s-n;if(o*l>0)throw"Initial bisect points must have opposite signs";if(o===0)return n;if(l===0)return s;for(let u=0;u<i;++u){h/=2;const a=n+h,p=t(a);if(p*o>=0&&(n=a),Math.abs(h)<r||p===0)return a}return n+h}function ct(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function Mt(t,n){return ct(t).map(()=>ct(n))}function tt(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function ut(t){return Math.sqrt(tt(t,t))}function ht(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function Q(t,n,s,e,i){for(let r=0;r<t.length;++r)t[r]=n*s[r]+e*i[r]}function zt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,r=s.zeroDelta||.001,o=s.minErrorDelta||1e-6,l=s.minErrorDelta||1e-5,h=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,p=s.sigma!==void 0?s.sigma:.5;let d;const m=n.length,y=new Array(m+1);y[0]=n,y[0].fx=t(n),y[0].id=0;for(let v=0;v<m;++v){const c=n.slice();c[v]=c[v]?c[v]*i:r,y[v+1]=c,y[v+1].fx=t(c),y[v+1].id=v+1}function M(v){for(let c=0;c<v.length;c++)y[m][c]=v[c];y[m].fx=v.fx}const E=(v,c)=>v.fx-c.fx,T=n.slice(),w=n.slice(),g=n.slice(),b=n.slice();for(let v=0;v<e;++v){if(y.sort(E),s.history){const x=y.map(f=>{const O=f.slice();return O.fx=f.fx,O.id=f.id,O});x.sort((f,O)=>f.id-O.id),s.history.push({x:y[0].slice(),fx:y[0].fx,simplex:x})}d=0;for(let x=0;x<m;++x)d=Math.max(d,Math.abs(y[0][x]-y[1][x]));if(Math.abs(y[0].fx-y[m].fx)<o&&d<l)break;for(let x=0;x<m;++x){T[x]=0;for(let f=0;f<m;++f)T[x]+=y[f][x];T[x]/=m}const c=y[m];if(Q(w,1+h,T,-h,c),w.fx=t(w),w.fx<y[0].fx)Q(b,1+u,T,-u,c),b.fx=t(b),b.fx<w.fx?M(b):M(w);else if(w.fx>=y[m-1].fx){let x=!1;if(w.fx>c.fx?(Q(g,1+a,T,-a,c),g.fx=t(g),g.fx<c.fx?M(g):x=!0):(Q(g,1-a*h,T,a*h,c),g.fx=t(g),g.fx<w.fx?M(g):x=!0),x){if(p>=1)break;for(let f=1;f<y.length;++f)Q(y[f],1-p,y[0],p,y[f]),y[f].fx=t(y[f])}}else M(w)}return y.sort(E),{fx:y[0].fx,x:y[0]}}function ue(t,n,s,e,i,r,o){const l=s.fx,h=tt(s.fxprime,n);let u=l,a=l,p=h,d=0;i=i||1,r=r||1e-6,o=o||.1;function m(y,M,E){for(let T=0;T<16;++T)if(i=(y+M)/2,Q(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),p=tt(e.fxprime,n),u>l+r*i*h||u>=E)M=i;else{if(Math.abs(p)<=-o*h)return i;p*(M-y)>=0&&(M=y),y=i,E=u}return 0}for(let y=0;y<10;++y){if(Q(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),p=tt(e.fxprime,n),u>l+r*i*h||y&&u>=a)return m(d,i,a);if(Math.abs(p)<=-o*h)return i;if(p>=0)return m(i,d,u);a=u,d=i,i*=2}return i}function he(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const r=n.slice();let o,l,h=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),o=e.fxprime.slice(),ht(o,e.fxprime,-1);for(let a=0;a<u;++a){if(h=ue(t,o,e,i,h),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:h}),!h)ht(o,e.fxprime,-1);else{Q(r,1,i.fxprime,-1,e.fxprime);const p=tt(e.fxprime,e.fxprime),d=Math.max(0,tt(r,i.fxprime)/p);Q(o,d,o,-1,i.fxprime),l=e,e=i,i=l}if(ut(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:h}),e}function At(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||xe,e=n.lossFunction||et,i=fe(t,n),r=s(i,n),o=Object.keys(r),l=[];for(const a of o)l.push(r[a].x),l.push(r[a].y);const u=zt(a=>{const p={};for(let d=0;d<o.length;++d){const m=o[d];p[m]={x:a[2*d],y:a[2*d+1],radius:r[m].radius}}return e(p,i)},l,n).x;for(let a=0;a<o.length;++a){const p=o[a];r[p].x=u[2*a],r[p].y=u[2*a+1]}return r}const Rt=1e-10;function ft(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+Rt?Math.abs(t-n):ce(e=>xt(t,n,e)-s,0,t+n)}function fe(t,n={}){const s=n.distinct,e=t.map(l=>Object.assign({},l));function i(l){return l.join(";")}if(s){const l=new Map;for(const h of e)for(let u=0;u<h.sets.length;u++){const a=String(h.sets[u]);l.set(a,h.size+(l.get(a)||0));for(let p=u+1;p<h.sets.length;p++){const d=String(h.sets[p]),m=`${a};${d}`,y=`${d};${a}`;l.set(m,h.size+(l.get(m)||0)),l.set(y,h.size+(l.get(y)||0))}}for(const h of e)h.sets.length<3&&(h.size=l.get(i(h.sets)))}const r=[],o=new Set;for(const l of e)if(l.sets.length===1)r.push(l.sets[0]);else if(l.sets.length===2){const h=l.sets[0],u=l.sets[1];o.add(i(l.sets)),o.add(i([u,h]))}r.sort((l,h)=>l===h?0:l<h?-1:1);for(let l=0;l<r.length;++l){const h=r[l];for(let u=l+1;u<r.length;++u){const a=r[u];o.has(i([h,a]))||e.push({sets:[h,a],size:0})}}return e}function de(t,n,s){const e=Mt(n.length,n.length),i=Mt(n.length,n.length);return t.filter(r=>r.sets.length===2).forEach(r=>{const o=s[r.sets[0]],l=s[r.sets[1]],h=Math.sqrt(n[o].size/Math.PI),u=Math.sqrt(n[l].size/Math.PI),a=ft(h,u,r.size);e[o][l]=e[l][o]=a;let p=0;r.size+1e-10>=Math.min(n[o].size,n[l].size)?p=1:r.size<=1e-10&&(p=-1),i[o][l]=i[l][o]=p}),{distances:e,constraints:i}}function ge(t,n,s,e){for(let r=0;r<n.length;++r)n[r]=0;let i=0;for(let r=0;r<s.length;++r){const o=t[2*r],l=t[2*r+1];for(let h=r+1;h<s.length;++h){const u=t[2*h],a=t[2*h+1],p=s[r][h],d=e[r][h],m=(u-o)*(u-o)+(a-l)*(a-l),y=Math.sqrt(m),M=m-p*p;d>0&&y<=p||d<0&&y>=p||(i+=2*M*M,n[2*r]+=4*M*(o-u),n[2*r+1]+=4*M*(l-a),n[2*h]+=4*M*(u-o),n[2*h+1]+=4*M*(a-l))}}return i}function xe(t,n={}){let s=pe(t,n);const e=n.lossFunction||et;if(t.length>=8){const i=ye(t,n),r=e(i,t),o=e(s,t);r+1e-8<o&&(s=i)}return s}function ye(t,n={}){const s=n.restarts||10,e=[],i={};for(const d of t)d.sets.length===1&&(i[d.sets[0]]=e.length,e.push(d));let{distances:r,constraints:o}=de(t,e,i);const l=ut(r.map(ut))/r.length;r=r.map(d=>d.map(m=>m/l));const h=(d,m)=>ge(d,m,r,o);let u=null;for(let d=0;d<s;++d){const m=ct(r.length*2).map(Math.random),y=he(h,m,n);(!u||y.fx<u.fx)&&(u=y)}const a=u.x,p={};for(let d=0;d<e.length;++d){const m=e[d];p[m.sets[0]]={x:a[2*d]*l,y:a[2*d+1]*l,radius:Math.sqrt(m.size/Math.PI)}}if(n.history)for(const d of n.history)ht(d.x,l);return p}function pe(t,n){const s=n&&n.lossFunction?n.lossFunction:et,e={},i={};for(const p of t)if(p.sets.length===1){const d=p.sets[0];e[d]={x:1e10,y:1e10,rowid:e.length,size:p.size,radius:Math.sqrt(p.size/Math.PI)},i[d]=[]}t=t.filter(p=>p.sets.length===2);for(const p of t){let d=p.weight!=null?p.weight:1;const m=p.sets[0],y=p.sets[1];p.size+Rt>=Math.min(e[m].size,e[y].size)&&(d=0),i[m].push({set:y,size:p.size,weight:d}),i[y].push({set:m,size:p.size,weight:d})}const r=[];Object.keys(i).forEach(p=>{let d=0;for(let m=0;m<i[p].length;++m)d+=i[p][m].size*i[p][m].weight;r.push({set:p,size:d})});function o(p,d){return d.size-p.size}r.sort(o);const l={};function h(p){return p.set in l}function u(p,d){e[d].x=p.x,e[d].y=p.y,l[d]=!0}u({x:0,y:0},r[0].set);for(let p=1;p<r.length;++p){const d=r[p].set,m=i[d].filter(h),y=e[d];if(m.sort(o),m.length===0)throw"ERROR: missing pairwise overlap information";const M=[];for(var a=0;a<m.length;++a){const w=e[m[a].set],g=ft(y.radius,w.radius,m[a].size);M.push({x:w.x+g,y:w.y}),M.push({x:w.x-g,y:w.y}),M.push({y:w.y+g,x:w.x}),M.push({y:w.y-g,x:w.x});for(let b=a+1;b<m.length;++b){const v=e[m[b].set],c=ft(y.radius,v.radius,m[b].size),x=Tt({x:w.x,y:w.y,radius:g},{x:v.x,y:v.y,radius:c});M.push(...x)}}let E=1e50,T=M[0];for(const w of M){e[d].x=w.x,e[d].y=w.y;const g=s(e,t);g<E&&(E=g,T=w)}u(T,d)}return e}function et(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const o=t[e.sets[0]],l=t[e.sets[1]];i=xt(o.radius,l.radius,K(o,l))}else i=st(e.sets.map(o=>t[o]));const r=e.weight!=null?e.weight:1;s+=r*(i-e.size)*(i-e.size)}return s}function Dt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const l=t[e.sets[0]],h=t[e.sets[1]];i=xt(l.radius,h.radius,K(l,h))}else i=st(e.sets.map(l=>t[l]));const r=e.weight!=null?e.weight:1,o=Math.log((i+1)/(e.size+1));s+=r*o*o}return s}function me(t,n,s){if(s==null?t.sort((i,r)=>r.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,r=t[0].y;for(const o of t)o.x-=i,o.y-=r}if(t.length===2&&K(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,r=Math.cos(i),o=Math.sin(i);for(const l of t){const h=l.x,u=l.y;l.x=r*h-o*u,l.y=o*h+r*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const r=t[1].y/(1e-10+t[1].x);for(const o of t){var e=(o.x+r*o.y)/(1+r*r);o.x=2*e-o.x,o.y=2*e*r-o.y}}}}function be(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,r){const o=n(i),l=n(r);o.parent=l}for(let i=0;i<t.length;++i)for(let r=i+1;r<t.length;++r){const o=t[i].radius+t[r].radius;K(t[i],t[r])+1e-10<o&&s(t[r],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const r=n(t[i]).parent.setid;e.has(r)||e.set(r,[]),e.get(r).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function dt(t){const n=s=>{const e=t.reduce((r,o)=>Math.max(r,o[s]+o.radius),Number.NEGATIVE_INFINITY),i=t.reduce((r,o)=>Math.min(r,o[s]-o.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Ct(t,n,s){n==null&&(n=Math.PI/2);let e=Ft(t).map(u=>Object.assign({},u));const i=be(e);for(const u of i){me(u,n,s);const a=dt(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let r=e.bounds;const o=(r.xRange.max-r.xRange.min)/50;function l(u,a,p){if(!u)return;const d=u.bounds;let m,y;if(a)m=r.xRange.max-d.xRange.min+o;else{m=r.xRange.max-d.xRange.max;const M=(d.xRange.max-d.xRange.min)/2-(r.xRange.max-r.xRange.min)/2;M<0&&(m+=M)}if(p)y=r.yRange.max-d.yRange.min+o;else{y=r.yRange.max-d.yRange.max;const M=(d.yRange.max-d.yRange.min)/2-(r.yRange.max-r.yRange.min)/2;M<0&&(y+=M)}for(const M of u)M.x+=m,M.y+=y,e.push(M)}let h=1;for(;h<i.length;)l(i[h],!0,!1),l(i[h+1],!1,!0),l(i[h+2],!0,!0),h+=3,r=dt(e);return Ot(e)}function Nt(t,n,s,e,i){const r=Ft(t);n-=2*e,s-=2*e;const{xRange:o,yRange:l}=dt(r);if(o.max===o.min||l.max===l.min)return console.log("not scaling solution: zero size detected"),t;let h,u;if(i){const m=Math.sqrt(i/Math.PI)*2;h=n/m,u=s/m}else h=n/(o.max-o.min),u=s/(l.max-l.min);const a=Math.min(u,h),p=(n-(o.max-o.min)*a)/2,d=(s-(l.max-l.min)*a)/2;return Ot(r.map(m=>({radius:a*m.radius,x:e+p+(m.x-o.min)*a,y:e+d+(m.y-l.min)*a,setid:m.setid})))}function Ot(t){const n={};for(const s of t)n[s.setid]=s;return n}function Ft(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function ve(t={}){let n=!1,s=600,e=350,i=15,r=1e3,o=Math.PI/2,l=!0,h=null,u=!0,a=!0,p=null,d=null,m=!1,y=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,E={},T=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],w=0,g=function(x){if(x in E)return E[x];var f=E[x]=T[w];return w+=1,w>=T.length&&(w=0),f},b=At,v=et;function c(x){let f=x.datum();const O=new Set;f.forEach(I=>{I.size==0&&I.sets.length==1&&O.add(I.sets[0])}),f=f.filter(I=>!I.sets.some(C=>O.has(C)));let k={},R={};if(f.length>0){let I=b(f,{lossFunction:v,distinct:m});l&&(I=Ct(I,o,d)),k=Nt(I,s,e,i,h),R=Lt(k,f,M)}const Z={};f.forEach(I=>{I.label&&(Z[I.sets]=I.label)});function U(I){if(I.sets in Z)return Z[I.sets];if(I.sets.length==1)return""+I.sets[0]}x.selectAll("svg").data([k]).enter().append("svg");const B=x.select("svg");n?B.attr("viewBox",`0 0 ${s} ${e}`):B.attr("width",s).attr("height",e);const V={};let z=!1;B.selectAll(".venn-area path").each(function(I){const C=this.getAttribute("d");I.sets.length==1&&C&&!m&&(z=!0,V[I.sets[0]]=Me(C))});function q(I){return C=>{const G=I.sets.map(J=>{let W=V[J],X=k[J];return W||(W={x:s/2,y:e/2,radius:1}),X||(X={x:s/2,y:e/2,radius:1}),{x:W.x*(1-C)+X.x*C,y:W.y*(1-C)+X.y*C,radius:W.radius*(1-C)+X.radius*C}});return wt(G,y)}}const A=B.selectAll(".venn-area").data(f,I=>I.sets),F=A.enter().append("g").attr("class",I=>`venn-area venn-${I.sets.length==1?"circle":"intersection"}${I.colour||I.color?" venn-coloured":""}`).attr("data-venn-sets",I=>I.sets.join("_")),j=F.append("path"),L=F.append("text").attr("class","label").text(I=>U(I)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(j.style("fill-opacity","0").filter(I=>I.sets.length==1).style("fill",I=>I.colour?I.colour:I.color?I.color:g(I.sets)).style("fill-opacity",".25"),L.style("fill",I=>I.colour||I.color?"#FFF":t.textFill?t.textFill:I.sets.length==1?g(I.sets):"#444"));function P(I){return typeof I.transition=="function"?I.transition("venn").duration(r):I}let _=x;z&&typeof _.transition=="function"?(_=P(x),_.selectAll("path").attrTween("d",q)):_.selectAll("path").attr("d",I=>wt(I.sets.map(C=>k[C])),y);const D=_.selectAll("text").filter(I=>I.sets in R).text(I=>U(I)).attr("x",I=>Math.floor(R[I.sets].x)).attr("y",I=>Math.floor(R[I.sets].y));u&&(z?"on"in D?D.on("end",ot(k,U)):D.each("end",ot(k,U)):D.each(ot(k,U)));const N=P(A.exit()).remove();typeof A.transition=="function"&&N.selectAll("path").attrTween("d",q);const Y=N.selectAll("text").attr("x",s/2).attr("y",e/2);return p!==null&&(L.style("font-size","0px"),D.style("font-size",p),Y.style("font-size","0px")),{circles:k,textCentres:R,nodes:A,enter:F,update:_,exit:N}}return c.wrap=function(x){return arguments.length?(u=x,c):u},c.useViewBox=function(){return n=!0,c},c.width=function(x){return arguments.length?(s=x,c):s},c.height=function(x){return arguments.length?(e=x,c):e},c.padding=function(x){return arguments.length?(i=x,c):i},c.distinct=function(x){return arguments.length?(m=x,c):m},c.colours=function(x){return arguments.length?(g=x,c):g},c.colors=function(x){return arguments.length?(g=x,c):g},c.fontSize=function(x){return arguments.length?(p=x,c):p},c.round=function(x){return arguments.length?(y=x,c):y},c.duration=function(x){return arguments.length?(r=x,c):r},c.layoutFunction=function(x){return arguments.length?(b=x,c):b},c.normalize=function(x){return arguments.length?(l=x,c):l},c.scaleToFit=function(x){return arguments.length?(h=x,c):h},c.styled=function(x){return arguments.length?(a=x,c):a},c.orientation=function(x){return arguments.length?(o=x,c):o},c.orientationOrder=function(x){return arguments.length?(d=x,c):d},c.lossFunction=function(x){return arguments.length?(v=x==="default"?et:x==="logRatio"?Dt:x,c):v},c}function ot(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,r=n(s)||"",o=r.split(/\s+/).reverse(),h=(r.length+o.length)/3;let u=o.pop(),a=[u],p=0;const d=1.1;e.textContent=null;const m=[];function y(g){const b=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return b.textContent=g,m.push(b),e.append(b),b}let M=y(u);for(;u=o.pop(),!!u;){a.push(u);const g=a.join(" ");M.textContent=g,g.length>h&&M.getComputedTextLength()>i&&(a.pop(),M.textContent=a.join(" "),a=[u],M=y(u),p++)}const E=.35-p*d/2,T=e.getAttribute("x"),w=e.getAttribute("y");m.forEach((g,b)=>{g.setAttribute("x",T),g.setAttribute("y",w),g.setAttribute("dy",`${E+b*d}em`)})}}function at(t,n,s){let e=n[0].radius-K(n[0],t);for(let i=1;i<n.length;++i){const r=n[i].radius-K(n[i],t);r<=e&&(e=r)}for(let i=0;i<s.length;++i){const r=K(s[i],t)-s[i].radius;r<=e&&(e=r)}return e}function jt(t,n,s){const e=[];for(const a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],r=at(e[0],t,n);for(let a=1;a<e.length;++a){const p=at(e[a],t,n);p>=r&&(i=e[a],r=p)}const o=zt(a=>-1*at({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s?0:o[0],y:o[1]};let h=!0;for(const a of t)if(K(l,a)>a.radius){h=!1;break}for(const a of n)if(K(l,a)<a.radius){h=!1;break}if(h)return l;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return st(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?jt(t,[]):Et(u.arcs.map(a=>a.p1))}function Ie(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],r=t[i];for(let o=e+1;o<s.length;++o){const l=s[o],h=t[l],u=K(r,h);u+h.radius<=r.radius+1e-10?n[l].push(i):u+r.radius<=h.radius+1e-10&&n[i].push(l)}}return n}function Lt(t,n,s){const e={},i=Ie(t);for(let r=0;r<n.length;++r){const o=n[r].sets,l={},h={};for(let d=0;d<o.length;++d){l[o[d]]=!0;const m=i[o[d]];for(let y=0;y<m.length;++y)h[m[y]]=!0}const u=[],a=[];for(let d in t)d in l?u.push(t[d]):d in h||a.push(t[d]);const p=jt(u,a,s);e[o]=p,p.disjoint&&n[r].size>0&&console.log("WARNING: area "+o+" not represented on screen")}return e}function ke(t,n,s){const e=[];return e.push(`
|
|
2
2
|
M`,t,n),e.push(`
|
|
3
3
|
m`,-s,0),e.push(`
|
|
4
4
|
a`,s,s,0,1,0,s*2,0),e.push(`
|
package/web/assets/{wardleyDiagram-T6FBY63Y-BnVP-fik.js → wardleyDiagram-T6FBY63Y-D42DcTEG.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as zt}from"./chunk-JWPE2WC7-
|
|
1
|
+
import{p as zt}from"./chunk-JWPE2WC7-C1kUiRK3.js";import{s as Lt,g as Tt,p as At,o as Xt,a as Et,b as Yt,_ as y,W as It,z as Bt,B as Q,l as et,F as Ft,e as Rt,q as Ot,c as V}from"./mermaid.core-DcWZ2CKJ.js";import{p as Wt}from"./cynefin-OW5HDTMX-CmJIeOtc.js";import"./index-Cw2UB-vh.js";import"./vendor-vue-DKQ_ib1S.js";var G=y((a,o)=>{const e=a<=1?a*100:a;if(e<0||e>100)throw new Error(`${o} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${a}`);return e},"toPercent"),E=y((a,o,e)=>({x:G(o,`${e} evolution`),y:G(a,`${e} visibility`)}),"toCoordinates"),tt=y(a=>{if(a){if(a==="+<>")return"bidirectional";if(a==="+<")return"backward";if(a==="+>")return"forward"}},"getFlowFromPort"),Dt=y(a=>{if(!(a!=null&&a.startsWith("+")))return{};const o=/^\+'([^']*)'/.exec(a),e=o==null?void 0:o[1];return a.includes("<>")?{flow:"bidirectional",label:e}:a.includes("<")?{flow:"backward",label:e}:a.includes(">")?{flow:"forward",label:e}:{label:e}},"extractFlowFromArrow"),Gt=y((a,o)=>{if(zt(a,o),a.size&&o.setSize(a.size.width,a.size.height),a.evolution){const e=a.evolution.stages.map(r=>r.secondName?`${r.name.trim()} / ${r.secondName.trim()}`:r.name.trim()),p=a.evolution.stages.filter(r=>r.boundary!==void 0).map(r=>r.boundary);o.updateAxes({stages:e,stageBoundaries:p})}if(a.anchors.forEach(e=>{const p=E(e.visibility,e.evolution,`Anchor "${e.name}"`);o.addNode(e.name,e.name,p.x,p.y,"anchor")}),a.components.forEach(e=>{var v;const p=E(e.visibility,e.evolution,`Component "${e.name}"`),r=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,d=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,m=(v=e.decorator)==null?void 0:v.strategy;o.addNode(e.name,e.name,p.x,p.y,"component",r,d,e.inertia,m)}),a.notes.forEach(e=>{const p=E(e.visibility,e.evolution,`Note "${e.text}"`);o.addNote(e.text,p.x,p.y)}),a.pipelines.forEach(e=>{const p=o.getNode(e.parent);if(!p||typeof p.y!="number")throw new Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);const r=p.y;o.startPipeline(e.parent),e.components.forEach(d=>{const m=`${e.parent}_${d.name}`,v=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,L=G(d.evolution,`Pipeline component "${d.name}" evolution`);o.addNode(m,d.name,L,r,"pipeline-component",v,g),o.addPipelineComponent(e.parent,m)})}),a.links.forEach(e=>{const p=!!e.arrow&&(e.arrow.includes("-.->")||e.arrow.includes(".-."));let r=tt(e.fromPort)??tt(e.toPort);const{flow:d,label:m}=Dt(e.arrow);!r&&d&&(r=d);const v=e.linkLabel,g=m??v;o.addLink(o.resolveNodeId(e.from),o.resolveNodeId(e.to),p,g,r)}),a.evolves.forEach(e=>{const p=o.getNode(e.component);if((p==null?void 0:p.y)!==void 0){const r=G(e.target,`Evolve target for "${e.component}"`);o.addTrend(e.component,r,p.y)}}),a.annotations.length>0){const e=a.annotations[0],p=E(e.x,e.y,"Annotations box");o.setAnnotationsBox(p.x,p.y)}a.annotation.forEach(e=>{const p=E(e.x,e.y,`Annotation ${e.number}`);o.addAnnotation(e.number,[{x:p.x,y:p.y}],e.text)}),a.accelerators.forEach(e=>{const p=E(e.x,e.y,`Accelerator "${e.name}"`);o.addAccelerator(e.name,p.x,p.y)}),a.deaccelerators.forEach(e=>{const p=E(e.x,e.y,`Deaccelerator "${e.name}"`);o.addDeaccelerator(e.name,p.x,p.y)})},"populateDb"),at={parser:{yy:void 0},parse:y(async a=>{var p;const o=await Wt("wardley",a);et.debug(o);const e=(p=at.parser)==null?void 0:p.yy;if(!e||typeof e.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Gt(o,e)},"parse")},I,qt=(I=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(o){const e=this.nodes.get(o.id)??{id:o.id,label:o.label},p={...e,...o,className:o.className??e.className,labelOffsetX:o.labelOffsetX??e.labelOffsetX,labelOffsetY:o.labelOffsetY??e.labelOffsetY};this.nodes.set(o.id,p)}addLink(o){this.links.push(o)}addTrend(o){this.trends.set(o.nodeId,o)}startPipeline(o){this.pipelines.set(o,{nodeId:o,componentIds:[]});const e=this.nodes.get(o);e&&(e.isPipelineParent=!0)}addPipelineComponent(o,e){const p=this.pipelines.get(o);p&&p.componentIds.push(e);const r=this.nodes.get(e);r&&(r.inPipeline=!0)}addAnnotation(o){this.annotations.push(o)}addNote(o){this.notes.push(o)}addAccelerator(o){this.accelerators.push(o)}addDeaccelerator(o){this.deaccelerators.push(o)}setAnnotationsBox(o,e){this.annotationsBox={x:o,y:e}}setAxes(o){this.axes={...this.axes,...o}}setSize(o,e){this.size={width:o,height:e}}getNode(o){return this.nodes.get(o)}resolveNodeId(o){if(this.nodes.has(o))return o;for(const[e,p]of this.nodes)if(p.label===o)return e;return o}build(){const o=[];for(const e of this.nodes.values()){if(typeof e.x!="number"||typeof e.y!="number")throw new Error(`Node "${e.label}" is missing coordinates`);o.push(e)}return{nodes:o,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},y(I,"WardleyBuilder"),I),b=new qt;function rt(){return V()["wardley-beta"]}y(rt,"getConfig");function ot(a,o,e,p,r,d,m,v,g){b.addNode({id:a,label:o,x:e,y:p,className:r,labelOffsetX:d,labelOffsetY:m,inertia:v,sourceStrategy:g})}y(ot,"addNode");function st(a,o,e=!1,p,r){b.addLink({source:a,target:o,dashed:e,label:p,flow:r})}y(st,"addLink");function nt(a,o,e){b.addTrend({nodeId:a,targetX:o,targetY:e})}y(nt,"addTrend");function it(a,o,e){b.addAnnotation({number:a,coordinates:o,text:e})}y(it,"addAnnotation");function dt(a,o,e){b.addNote({text:a,x:o,y:e})}y(dt,"addNote");function lt(a,o,e){b.addAccelerator({name:a,x:o,y:e})}y(lt,"addAccelerator");function ct(a,o,e){b.addDeaccelerator({name:a,x:o,y:e})}y(ct,"addDeaccelerator");function pt(a,o){b.setAnnotationsBox(a,o)}y(pt,"setAnnotationsBox");function ht(a,o){b.setSize(a,o)}y(ht,"setSize");function xt(a){b.startPipeline(a)}y(xt,"startPipeline");function ft(a,o){b.addPipelineComponent(a,o)}y(ft,"addPipelineComponent");function gt(a){b.setAxes(a)}y(gt,"updateAxes");function ut(a){return b.getNode(a)}y(ut,"getNode");function yt(a){return b.resolveNodeId(a)}y(yt,"resolveNodeId");function mt(){return b.build()}y(mt,"getWardleyData");function wt(){b.clear(),Ot()}y(wt,"clear");var Ht={getConfig:rt,addNode:ot,addLink:st,addTrend:nt,addAnnotation:it,addNote:dt,addAccelerator:lt,addDeaccelerator:ct,setAnnotationsBox:pt,setSize:ht,startPipeline:xt,addPipelineComponent:ft,updateAxes:gt,getNode:ut,resolveNodeId:yt,getWardleyData:mt,clear:wt,setAccTitle:Yt,getAccTitle:Et,setDiagramTitle:Xt,getDiagramTitle:At,getAccDescription:Tt,setAccDescription:Lt},jt=["Genesis","Custom Built","Product","Commodity"],Vt=y(()=>{var o,e,p,r,d,m,v,g,L,M,k,N;const{themeVariables:a}=V();return{backgroundColor:((o=a.wardley)==null?void 0:o.backgroundColor)??a.background??"#fff",axisColor:((e=a.wardley)==null?void 0:e.axisColor)??"#000",axisTextColor:((p=a.wardley)==null?void 0:p.axisTextColor)??a.primaryTextColor??"#222",gridColor:((r=a.wardley)==null?void 0:r.gridColor)??"rgba(100, 100, 100, 0.2)",componentFill:((d=a.wardley)==null?void 0:d.componentFill)??"#fff",componentStroke:((m=a.wardley)==null?void 0:m.componentStroke)??"#000",componentLabelColor:((v=a.wardley)==null?void 0:v.componentLabelColor)??a.primaryTextColor??"#222",linkStroke:((g=a.wardley)==null?void 0:g.linkStroke)??"#000",evolutionStroke:((L=a.wardley)==null?void 0:L.evolutionStroke)??"#dc3545",annotationStroke:((M=a.wardley)==null?void 0:M.annotationStroke)??"#000",annotationTextColor:((k=a.wardley)==null?void 0:k.annotationTextColor)??a.primaryTextColor??"#222",annotationFill:((N=a.wardley)==null?void 0:N.annotationFill)??a.background??"#fff"}},"getTheme"),_t=y(()=>{const a=V()["wardley-beta"];return{width:(a==null?void 0:a.width)??900,height:(a==null?void 0:a.height)??600,padding:(a==null?void 0:a.padding)??48,nodeRadius:(a==null?void 0:a.nodeRadius)??6,nodeLabelOffset:(a==null?void 0:a.nodeLabelOffset)??8,axisFontSize:(a==null?void 0:a.axisFontSize)??12,labelFontSize:(a==null?void 0:a.labelFontSize)??10,showGrid:(a==null?void 0:a.showGrid)??!1,useMaxWidth:(a==null?void 0:a.useMaxWidth)??!0}},"getConfigValues"),Zt=y((a,o,e,p)=>{var J,K;et.debug(`Rendering Wardley map
|
|
2
2
|
`+a);const r=_t(),d=Vt(),m=r.nodeRadius*1.6,v=p.db,g=v.getWardleyData(),L=v.getDiagramTitle(),M=((J=g.size)==null?void 0:J.width)??r.width,k=((K=g.size)==null?void 0:K.height)??r.height,N=Ft(o);N.selectAll("*").remove(),Rt(N,k,M,r.useMaxWidth),N.attr("viewBox",`0 0 ${M} ${k}`);const P=N.append("g").attr("class","wardley-map"),q=N.append("defs");q.append("marker").attr("id",`arrow-${o}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.evolutionStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-end-${o}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.linkStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-start-${o}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",d.linkStroke).attr("stroke","none"),P.append("rect").attr("class","wardley-background").attr("width",M).attr("height",k).attr("fill",d.backgroundColor);const B=M-r.padding*2,F=k-r.padding*2;L&&P.append("text").attr("class","wardley-title").attr("x",M/2).attr("y",r.padding/2).attr("fill",d.axisTextColor).attr("font-size",r.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(L);const T=y(t=>r.padding+t/100*B,"projectX"),A=y(t=>k-r.padding-t/100*F,"projectY"),O=P.append("g").attr("class","wardley-axes");O.append("line").attr("x1",r.padding).attr("x2",M-r.padding).attr("y1",k-r.padding).attr("y2",k-r.padding).attr("stroke",d.axisColor).attr("stroke-width",1),O.append("line").attr("x1",r.padding).attr("x2",r.padding).attr("y1",r.padding).attr("y2",k-r.padding).attr("stroke",d.axisColor).attr("stroke-width",1);const kt=g.axes.xLabel??"Evolution",bt=g.axes.yLabel??"Visibility";O.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",r.padding+B/2).attr("y",k-r.padding/4).attr("fill",d.axisTextColor).attr("font-size",r.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(kt),O.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",r.padding/3).attr("y",r.padding+F/2).attr("fill",d.axisTextColor).attr("font-size",r.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${r.padding/3} ${r.padding+F/2})`).text(bt);const R=g.axes.stages&&g.axes.stages.length>0?g.axes.stages:jt;if(R.length>0){const t=P.append("g").attr("class","wardley-stages"),n=g.axes.stageBoundaries,s=[];if(n&&n.length===R.length){let i=0;n.forEach(h=>{s.push({start:i,end:h}),i=h})}else{const i=1/R.length;R.forEach((h,l)=>{s.push({start:l*i,end:(l+1)*i})})}R.forEach((i,h)=>{const l=s[h],x=r.padding+l.start*B,f=r.padding+l.end*B,u=(x+f)/2;h>0&&t.append("line").attr("x1",x).attr("x2",x).attr("y1",r.padding).attr("y2",k-r.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",u).attr("y",k-r.padding/1.5).attr("fill",d.axisTextColor).attr("font-size",r.axisFontSize-2).attr("text-anchor","middle").text(i)})}if(r.showGrid){const t=P.append("g").attr("class","wardley-grid");for(let n=1;n<4;n++){const s=n/4,i=r.padding+B*s;t.append("line").attr("x1",i).attr("x2",i).attr("y1",r.padding).attr("y2",k-r.padding).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",r.padding).attr("x2",M-r.padding).attr("y1",k-r.padding-F*s).attr("y2",k-r.padding-F*s).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6")}}const c=new Map;if(g.nodes.forEach(t=>{c.set(t.id,{x:T(t.x),y:A(t.y),node:t})}),g.pipelines.length>0){const t=P.append("g").attr("class","wardley-pipelines"),n=P.append("g").attr("class","wardley-pipeline-links");g.pipelines.forEach(s=>{if(s.componentIds.length===0)return;const i=s.componentIds.map(f=>({id:f,pos:c.get(f),node:g.nodes.find(u=>u.id===f)})).filter(f=>f.pos&&f.node).sort((f,u)=>f.node.x-u.node.x);for(let f=0;f<i.length-1;f++){const u=i[f],w=i[f+1];n.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",u.pos.x).attr("y1",u.pos.y).attr("x2",w.pos.x).attr("y2",w.pos.y).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let h=1/0,l=-1/0,x=0;if(s.componentIds.forEach(f=>{const u=c.get(f);u&&(h=Math.min(h,u.x),l=Math.max(l,u.x),x=u.y)}),h!==1/0&&l!==-1/0){const u=r.nodeRadius*4,w=x-u/2,S=c.get(s.nodeId);if(S){const z=(h+l)/2;S.x=z,S.y=w-m/6}t.append("rect").attr("class","wardley-pipeline-box").attr("x",h-15).attr("y",w).attr("width",l-h+30).attr("height",u).attr("fill","none").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const _=P.append("g").attr("class","wardley-links"),Z=new Map;g.pipelines.forEach(t=>{Z.set(t.nodeId,new Set(t.componentIds))});const U=g.links.filter(t=>{if(!c.has(t.source)||!c.has(t.target))return!1;const n=Z.get(t.target);return!(n!=null&&n.has(t.source))});_.selectAll("line").data(U).enter().append("line").attr("class",t=>`wardley-link${t.dashed?" wardley-link--dashed":""}`).attr("x1",t=>{const n=c.get(t.source),s=c.get(t.target),h=g.nodes.find(u=>u.id===t.source).isPipelineParent?m/Math.sqrt(2):r.nodeRadius,l=s.x-n.x,x=s.y-n.y,f=Math.sqrt(l*l+x*x);return n.x+l/f*h}).attr("y1",t=>{const n=c.get(t.source),s=c.get(t.target),h=g.nodes.find(u=>u.id===t.source).isPipelineParent?m/Math.sqrt(2):r.nodeRadius,l=s.x-n.x,x=s.y-n.y,f=Math.sqrt(l*l+x*x);return n.y+x/f*h}).attr("x2",t=>{const n=c.get(t.source),s=c.get(t.target),h=g.nodes.find(u=>u.id===t.target).isPipelineParent?m/Math.sqrt(2):r.nodeRadius,l=n.x-s.x,x=n.y-s.y,f=Math.sqrt(l*l+x*x);return s.x+l/f*h}).attr("y2",t=>{const n=c.get(t.source),s=c.get(t.target),h=g.nodes.find(u=>u.id===t.target).isPipelineParent?m/Math.sqrt(2):r.nodeRadius,l=n.x-s.x,x=n.y-s.y,f=Math.sqrt(l*l+x*x);return s.y+x/f*h}).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>t.flow==="forward"||t.flow==="bidirectional"?`url(#link-arrow-end-${o})`:null).attr("marker-start",t=>t.flow==="backward"||t.flow==="bidirectional"?`url(#link-arrow-start-${o})`:null),_.selectAll("text").data(U.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{const n=c.get(t.source),s=c.get(t.target),i=(n.x+s.x)/2,h=s.y-n.y,l=s.x-n.x,x=Math.sqrt(l*l+h*h),f=8,u=h/x;return i+u*f}).attr("y",t=>{const n=c.get(t.source),s=c.get(t.target),i=(n.y+s.y)/2,h=s.x-n.x,l=s.y-n.y,x=Math.sqrt(h*h+l*l),f=8,u=-h/x;return i+u*f}).attr("fill",d.axisTextColor).attr("font-size",r.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{const n=c.get(t.source),s=c.get(t.target),i=(n.x+s.x)/2,h=(n.y+s.y)/2,l=s.x-n.x,x=s.y-n.y,f=Math.sqrt(l*l+x*x),u=8,w=x/f,S=-l/f,z=i+w*u,W=h+S*u;let Y=Math.atan2(x,l)*180/Math.PI;return(Y>90||Y<-90)&&(Y+=180),`rotate(${Y} ${z} ${W})`}).text(t=>t.label);const $t=P.append("g").attr("class","wardley-trends"),vt=g.trends.map(t=>{const n=c.get(t.nodeId);if(!n)return null;const s=T(t.targetX),i=A(t.targetY),h=s-n.x,l=i-n.y,x=Math.sqrt(h*h+l*l),f=r.nodeRadius+2,u=x>f?s-h/x*f:s,w=x>f?i-l/x*f:i;return{origin:n,targetX:s,targetY:i,adjustedX2:u,adjustedY2:w}}).filter(t=>t!==null);$t.selectAll("line").data(vt).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",d.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${o})`);const C=P.append("g").attr("class","wardley-nodes").selectAll("g").data(g.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));C.filter(t=>t.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",r.nodeRadius*2).attr("fill","#666").attr("stroke",d.componentStroke).attr("stroke-width",1),C.filter(t=>t.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",r.nodeRadius*2).attr("fill","#ccc").attr("stroke",d.componentStroke).attr("stroke-width",1),C.filter(t=>t.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",r.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const X=C.filter(t=>t.sourceStrategy==="market");X.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",r.nodeRadius*2).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),C.filter(t=>!t.isPipelineParent&&t.sourceStrategy!=="market"&&t.className!=="anchor").append("circle").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",r.nodeRadius).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1);const H=r.nodeRadius*.7,$=r.nodeRadius*1.2;if(X.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x).attr("y1",t=>c.get(t.id).y-$).attr("x2",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),X.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),X.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x).attr("y2",t=>c.get(t.id).y-$).attr("stroke",d.componentStroke).attr("stroke-width",1),X.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y-$).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),X.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),X.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),C.filter(t=>t.isPipelineParent===!0).append("rect").attr("x",t=>c.get(t.id).x-m/2).attr("y",t=>c.get(t.id).y-m/2).attr("width",m).attr("height",m).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1),C.filter(t=>t.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",t=>{const n=c.get(t.id);let s=t.isPipelineParent?m/2+15:r.nodeRadius+15;return t.sourceStrategy&&(s+=r.nodeRadius+10),n.x+s}).attr("y1",t=>{const n=c.get(t.id),s=t.isPipelineParent?m:r.nodeRadius*2;return n.y-s/2}).attr("x2",t=>{const n=c.get(t.id);let s=t.isPipelineParent?m/2+15:r.nodeRadius+15;return t.sourceStrategy&&(s+=r.nodeRadius+10),n.x+s}).attr("y2",t=>{const n=c.get(t.id),s=t.isPipelineParent?m:r.nodeRadius*2;return n.y+s/2}).attr("stroke",d.componentStroke).attr("stroke-width",6),C.append("text").attr("x",t=>{const n=c.get(t.id);if(t.className==="anchor")return t.labelOffsetX!==void 0?n.x+t.labelOffsetX:n.x;let s=r.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetX===void 0&&(s+=10);const i=t.labelOffsetX??s;return n.x+i}).attr("y",t=>{const n=c.get(t.id);if(t.className==="anchor")return t.labelOffsetY!==void 0?n.y+t.labelOffsetY:n.y-3;let s=-r.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetY===void 0&&(s-=10);const i=t.labelOffsetY??s;return n.y+i}).attr("class","wardley-node-label").attr("fill",t=>t.className==="evolved"?d.evolutionStroke:t.className==="anchor"?"#000":d.componentLabelColor).attr("font-size",r.labelFontSize).attr("font-weight",t=>t.className==="anchor"?"bold":"normal").attr("text-anchor",t=>t.className==="anchor"?"middle":"start").attr("dominant-baseline",t=>t.className==="anchor"?"middle":"auto").text(t=>t.label),g.annotations.length>0){const t=P.append("g").attr("class","wardley-annotations");if(g.annotations.forEach(n=>{const s=n.coordinates.map(i=>({x:T(i.x),y:A(i.y)}));if(s.length>1)for(let i=0;i<s.length-1;i++)t.append("line").attr("class","wardley-annotation-line").attr("x1",s[i].x).attr("y1",s[i].y).attr("x2",s[i+1].x).attr("y2",s[i+1].y).attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");s.forEach(i=>{const h=t.append("g").attr("class","wardley-annotation");h.append("circle").attr("cx",i.x).attr("cy",i.y).attr("r",10).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5),h.append("text").attr("x",i.x).attr("y",i.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(n.number)})}),g.annotationsBox){let n=T(g.annotationsBox.x),s=A(g.annotationsBox.y);const i=10,h=16,l=11,x=t.append("g").attr("class","wardley-annotations-box"),f=[...g.annotations].filter(w=>w.text).sort((w,S)=>w.number-S.number),u=[];if(f.forEach((w,S)=>{const z=x.append("text").attr("x",n+i).attr("y",s+i+(S+1)*h).attr("font-size",l).attr("fill",d.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${w.number}. ${w.text}`);u.push(z)}),u.length>0){let w=0,S=0;u.forEach(j=>{const D=j.node(),Nt=D.getComputedTextLength();w=Math.max(w,Nt);const Ct=D.getBBox();S=Math.max(S,Ct.height)});const z=w+i*2+105,W=f.length*h+i*2+S/2,Y=r.padding,Pt=M-r.padding-z,St=r.padding,Mt=k-r.padding-W;n=Math.max(Y,Math.min(n,Pt)),s=Math.max(St,Math.min(s,Mt)),u.forEach((j,D)=>{j.attr("x",n+i).attr("y",s+i+(D+1)*h)}),x.insert("rect","text").attr("x",n).attr("y",s).attr("width",z).attr("height",W).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(g.notes.length>0){const t=P.append("g").attr("class","wardley-notes");g.notes.forEach(n=>{const s=T(n.x),i=A(n.y);t.append("text").attr("x",s).attr("y",i).attr("text-anchor","start").attr("font-size",11).attr("fill",d.axisTextColor).attr("font-weight","bold").text(n.text)})}if(g.accelerators.length>0){const t=P.append("g").attr("class","wardley-accelerators");g.accelerators.forEach(n=>{const s=T(n.x),i=A(n.y),h=60,l=30,x=20,f=`
|
|
3
3
|
M ${s} ${i-l/2}
|
|
4
4
|
L ${s+h-x} ${i-l/2}
|
package/web/assets/{xychartDiagram-ELKLHX3M-CoVCX9Qj.js → xychartDiagram-ELKLHX3M-CIWaPaG4.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as xi,g as di,p as Yt,o as fi,a as pi,b as mi,_ as n,l as Nt,F as yi,e as bi,q as Ai,z as kt,i as wi,B as Ht,D as Ci,W as Si,az as Ri,a7 as Ot}from"./mermaid.core-
|
|
1
|
+
import{s as xi,g as di,p as Yt,o as fi,a as pi,b as mi,_ as n,l as Nt,F as yi,e as bi,q as Ai,z as kt,i as wi,B as Ht,D as Ci,W as Si,az as Ri,a7 as Ot}from"./mermaid.core-DcWZ2CKJ.js";import{i as _i}from"./init-Gi6I4Gst.js";import{o as ki}from"./ordinal-Cboi1Yqb.js";import{l as Wt}from"./linear-DzKY3WU3.js";import"./index-Cw2UB-vh.js";import"./vendor-vue-DKQ_ib1S.js";import"./defaultLocale-DX6XiGOO.js";function Ti(e,t,i){e=+e,t=+t,i=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+i;for(var s=-1,a=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(a);++s<a;)o[s]=e+s*i;return o}function wt(){var e=ki().unknown(void 0),t=e.domain,i=e.range,s=0,a=1,o,l,p=!1,d=0,k=0,T=.5;delete e.unknown;function _(){var b=t().length,E=a<s,L=E?a:s,P=E?s:a;o=(P-L)/Math.max(1,b-d+k*2),p&&(o=Math.floor(o)),L+=(P-L-o*(b-d))*T,l=o*(1-d),p&&(L=Math.round(L),l=Math.round(l));var I=Ti(b).map(function(m){return L+o*m});return i(E?I.reverse():I)}return e.domain=function(b){return arguments.length?(t(b),_()):t()},e.range=function(b){return arguments.length?([s,a]=b,s=+s,a=+a,_()):[s,a]},e.rangeRound=function(b){return[s,a]=b,s=+s,a=+a,p=!0,_()},e.bandwidth=function(){return l},e.step=function(){return o},e.round=function(b){return arguments.length?(p=!!b,_()):p},e.padding=function(b){return arguments.length?(d=Math.min(1,k=+b),_()):d},e.paddingInner=function(b){return arguments.length?(d=Math.min(1,b),_()):d},e.paddingOuter=function(b){return arguments.length?(k=+b,_()):k},e.align=function(b){return arguments.length?(T=Math.max(0,Math.min(1,b)),_()):T},e.copy=function(){return wt(t(),[s,a]).round(p).paddingInner(d).paddingOuter(k).align(T)},_i.apply(_(),arguments)}var Ct=(function(){var e=n(function(F,h,u,g){for(u=u||{},g=F.length;g--;u[F[g]]=h);return u},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],a=[1,5],o=[1,6],l=[1,7],p=[1,5,10,12,14,16,18,19,21,23,36,37,38],d=[1,25],k=[1,26],T=[1,28],_=[1,29],b=[1,30],E=[1,31],L=[1,32],P=[1,33],I=[1,34],m=[1,35],D=[1,36],c=[1,37],B=[1,43],W=[1,42],X=[1,47],Y=[1,50],S=[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],w=[1,65],V=[26,28],R={trace:n(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:n(function(h,u,g,x,C,r,rt){var f=r.length-1;switch(C){case 5:x.setOrientation(r[f]);break;case 9:x.setDiagramTitle(r[f].text.trim());break;case 12:x.setLineData({text:"",type:"text"},r[f]);break;case 13:x.setLineData(r[f-1],r[f]);break;case 14:x.setBarData({text:"",type:"text"},r[f]);break;case 15:x.setBarData(r[f-1],r[f]);break;case 16:this.$=r[f].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=r[f].trim(),x.setAccDescription(this.$);break;case 19:this.$=r[f-1];break;case 20:case 30:this.$=[r[f-2],...r[f]];break;case 21:case 31:this.$=[r[f]];break;case 22:this.$={value:Number(r[f-1]),label:r[f]};break;case 23:this.$={value:Number(r[f]),label:""};break;case 24:x.setXAxisTitle(r[f]);break;case 25:x.setXAxisTitle(r[f-1]);break;case 26:x.setXAxisTitle({type:"text",text:""});break;case 27:x.setXAxisBand(r[f]);break;case 28:x.setXAxisRangeData(Number(r[f-2]),Number(r[f]));break;case 29:this.$=r[f-1];break;case 32:x.setYAxisTitle(r[f]);break;case 33:x.setYAxisTitle(r[f-1]);break;case 34:x.setYAxisTitle({type:"text",text:""});break;case 35:x.setYAxisRangeData(Number(r[f-2]),Number(r[f]));break;case 39:this.$={text:r[f],type:"text"};break;case 40:this.$={text:r[f],type:"text"};break;case 41:this.$={text:r[f],type:"markdown"};break;case 42:this.$=r[f];break;case 43:this.$=r[f-1]+""+r[f];break}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,36:a,37:o,38:l}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,36:a,37:o,38:l}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:a,37:o,38:l}),{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:a,37:o,38:l}),{1:[2,3]},e(p,[2,5]),e(t,[2,7],{4:22,36:a,37:o,38:l}),{11:23,30:d,39:24,40:k,41:27,42:T,43:_,44:b,45:E,46:L,47:P,48:I,49:m,50:D,51:c},{11:39,13:38,24:B,29:W,30:d,31:40,32:41,39:24,40:k,41:27,42:T,43:_,44:b,45:E,46:L,47:P,48:I,49:m,50:D,51:c},{11:45,15:44,29:X,30:d,35:46,39:24,40:k,41:27,42:T,43:_,44:b,45:E,46:L,47:P,48:I,49:m,50:D,51:c},{11:49,17:48,24:Y,30:d,39:24,40:k,41:27,42:T,43:_,44:b,45:E,46:L,47:P,48:I,49:m,50:D,51:c},{11:52,17:51,24:Y,30:d,39:24,40:k,41:27,42:T,43:_,44:b,45:E,46:L,47:P,48:I,49:m,50:D,51:c},{20:[1,53]},{22:[1,54]},e(S,[2,18]),{1:[2,2]},e(S,[2,8]),e(S,[2,9]),e(H,[2,39],{41:55,42:T,43:_,44:b,45:E,46:L,47:P,48:I,49:m,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(S,[2,10]),e(S,[2,24],{32:41,31:56,24:B,29:W}),e(S,[2,26]),e(S,[2,27]),{33:[1,57]},{11:59,30:d,34:58,39:24,40:k,41:27,42:T,43:_,44:b,45:E,46:L,47:P,48:I,49:m,50:D,51:c},e(S,[2,11]),e(S,[2,32],{35:60,29:X}),e(S,[2,34]),{33:[1,61]},e(S,[2,12]),{17:62,24:Y},{25:63,27:64,29:w},e(S,[2,14]),{17:66,24:Y},e(S,[2,16]),e(S,[2,17]),e(A,[2,43]),e(S,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(S,[2,33]),{29:[1,70]},e(S,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(V,[2,23],{30:[1,73]}),e(S,[2,15]),e(S,[2,28]),e(S,[2,29]),{11:59,30:d,34:74,39:24,40:k,41:27,42:T,43:_,44:b,45:E,46:L,47:P,48:I,49:m,50:D,51:c},e(S,[2,35]),e(S,[2,19]),{25:75,27:64,29:w},e(V,[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:n(function(h,u){if(u.recoverable)this.trace(h);else{var g=new Error(h);throw g.hash=u,g}},"parseError"),parse:n(function(h){var u=this,g=[0],x=[],C=[null],r=[],rt=this.table,f="",gt=0,Mt=0,li=2,zt=1,ci=r.slice.call(arguments,1),v=Object.create(this.lexer),$={yy:{}};for(var mt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,mt)&&($.yy[mt]=this.yy[mt]);v.setInput(h,$.yy),$.yy.lexer=v,$.yy.parser=this,typeof v.yylloc>"u"&&(v.yylloc={});var yt=v.yylloc;r.push(yt);var ui=v.options&&v.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function gi(z){g.length=g.length-2*z,C.length=C.length-z,r.length=r.length-z}n(gi,"popStack");function Bt(){var z;return z=x.pop()||v.lex()||zt,typeof z!="number"&&(z instanceof Array&&(x=z,z=x.pop()),z=u.symbols_[z]||z),z}n(Bt,"lex");for(var M,U,O,bt,G={},xt,N,Vt,dt;;){if(U=g[g.length-1],this.defaultActions[U]?O=this.defaultActions[U]:((M===null||typeof M>"u")&&(M=Bt()),O=rt[U]&&rt[U][M]),typeof O>"u"||!O.length||!O[0]){var At="";dt=[];for(xt in rt[U])this.terminals_[xt]&&xt>li&&dt.push("'"+this.terminals_[xt]+"'");v.showPosition?At="Parse error on line "+(gt+1)+`:
|
|
2
2
|
`+v.showPosition()+`
|
|
3
3
|
Expecting `+dt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":At="Parse error on line "+(gt+1)+": Unexpected "+(M==zt?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(At,{text:v.match,token:this.terminals_[M]||M,line:v.yylineno,loc:yt,expected:dt})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+M);switch(O[0]){case 1:g.push(M),C.push(v.yytext),r.push(v.yylloc),g.push(O[1]),M=null,Mt=v.yyleng,f=v.yytext,gt=v.yylineno,yt=v.yylloc;break;case 2:if(N=this.productions_[O[1]][1],G.$=C[C.length-N],G._$={first_line:r[r.length-(N||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(N||1)].first_column,last_column:r[r.length-1].last_column},ui&&(G._$.range=[r[r.length-(N||1)].range[0],r[r.length-1].range[1]]),bt=this.performAction.apply(G,[f,Mt,gt,$.yy,O[1],C,r].concat(ci)),typeof bt<"u")return bt;N&&(g=g.slice(0,-1*N*2),C=C.slice(0,-1*N),r=r.slice(0,-1*N)),g.push(this.productions_[O[1]][0]),C.push(G.$),r.push(G._$),Vt=rt[g[g.length-2]][g[g.length-1]],g.push(Vt);break;case 3:return!0}}return!0},"parse")},ot=(function(){var F={EOF:1,parseError:n(function(u,g){if(this.yy.parser)this.yy.parser.parseError(u,g);else throw new Error(u)},"parseError"),setInput:n(function(h,u){return this.yy=u||this.yy||{},this._input=h,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:n(function(){var h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var u=h.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},"input"),unput:n(function(h){var u=h.length,g=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;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),g.length-1&&(this.yylineno-=g.length-1);var C=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:g?(g.length===x.length?this.yylloc.first_column:0)+x[x.length-g.length].length-g[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(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
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n(function(h){this.unput(this.match.slice(h))},"less"),pastInput:n(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var h=this.pastInput(),u=new Array(h.length+1).join("-");return h+this.upcomingInput()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={"a11y.mainContent":"主要内容","a11y.primaryNavigation":"主导航","a11y.workspaceSessionIndex":"工作区和会话索引","auth.connectingTitle":"正在连接 Dim…","auth.expiredTitle":"此链接已失效","auth.expiredBefore":"此浏览器尚未登录 Web 工作区,或工作区已重新打开。请运行 ","auth.expiredAfter":" 获取新的链接。","auth.versionTitle":"更新浏览器页面","auth.versionDescription":"此页面与 App Server 的协议版本不一致。请重新加载页面;若仍存在,请再次运行 dimcode web。","brand.product":"Dim","brand.webHost":"Web 工作区","chat.assistant":"Dim","chat.composer":"消息输入框","chat.copyFailed":"无法访问剪贴板。","chat.emptyTimeline":"发送消息以开始会话。","chat.pathCopied":"已复制路径","chat.removedDescription":"此会话已关闭,或在 App Server 上已不存在。","chat.removedTitle":"会话已关闭","chat.you":"你","common.cancel":"取消","common.close":"关闭","common.loading":"加载中…","common.search":"搜索","common.skipToContent":"跳到主要内容","composer.category.model":"模型","composer.category.session":"会话","composer.branchUnavailable":"此处暂不支持创建分支","composer.command.branch":"从当前线创建分支","composer.command.lines":"查看会话分支","command.basisEstimated":"估算","command.basisProvider":"由服务商统计","command.compactSkipped":"已跳过压缩","command.compacted":"上下文已压缩","command.failed":"命令失败","command.effortChoices":"推理强度可选值:{choices}","command.effortSet":"推理强度配置{outcome}:{value}","command.effortUnavailable":"此模型没有声明推理强度可选值。","command.effortUnknown":"此模型没有声明这个推理强度。","command.effortUsage":"用法:/effort [值]","composer.command.effort":"查看或设置推理强度","queue.notHeld":"这条消息已被运行采纳。","queue.remove":"移除","queue.steer":"插话","queue.title":"排队中的消息","command.usage":"上下文:{input} / {window} tokens({percent}%),{basis} · 输出最多 {output} · 在 {threshold} 时压缩","command.usageTitle":"上下文用量","composer.command.compact":"压缩上下文","composer.command.fork":"在最近一次完成的回合处分叉","composer.command.usage":"查看上下文窗口用量","fork.confirm":"在最近一次完成的回合处分叉此会话?新会话会复制主线到该位置。","fork.confirmLabel":"分叉","composer.command.goal":"查看或修改目标","composer.command.loop":"按节奏重复运行提示词","goal.action.clear":"清除","goal.action.edit":"修改","goal.action.pause":"暂停","goal.action.resume":"恢复","goal.action.set":"设置","goal.evaluator":"评估者裁定","goal.line":"主线目标 · {status}","goal.none":"主线没有目标。","goal.sent":"已{action}主线目标","goal.status.active":"进行中","goal.status.blocked":"受阻","goal.status.completed":"已完成","goal.status.none":"无状态","goal.status.paused":"已暂停({reason})","goal.usage":"用法:/goal [目标 | set 目标 | edit 目标 | pause | resume | clear]","loop.usage":"用法:/loop [提示词 | 间隔 提示词 | stop [id]]","loop.none":"这条线上没有 loop。","loop.listed":"这条线上的 loop:{count} 个","loop.started":"Loop {id} 已开始。","loop.stopped":"Loop {id} 已停止。","loop.noSingle":"这条线上没有唯一的存活 loop;用 /loop stop ID 指定一个。","composer.command.models":"选择模型","composer.command.new":"新建会话","composer.command.scheduled":"管理 CLI 主机上的定时任务","composer.commandKeys":"↑↓ 选择 · Enter 确认 · Esc 关闭","composer.command.permissions":"查看或修改会话权限","composer.permission.label":"权限","composer.permission.preset.read-only":"只读","composer.permission.preset.workspace-write":"工作区读写","composer.permission.preset.full-access":"完全访问","composer.permission.description.read-only":"读取文件,拒绝写入和进程命令。","composer.permission.description.workspace-write":"允许工作区内写入,工作区外路径和其他风险需询问。","composer.permission.description.full-access":"不限制路径并跳过工具询问,明确拒绝仍然生效。","composer.permission.fullAccessConfirm":"允许不受限的文件访问并跳过工具询问?明确拒绝和进程隔离仍然生效。","composer.permission.allowedTools":"允许的工具","composer.permission.disallowedTools":"拒绝的工具","composer.permission.isolation":"权限预设不会改变进程隔离。","composer.permission.processIsolation":"进程隔离设置","permission.conflict":"权限已在别处修改,当前显示的是最新设置。","timeline.rail":"消息","composer.files":"文件","composer.mentionKeys":"↑↓ 选择 · Enter 插入 · Esc 关闭","composer.imageLimit":"一条消息最多 20 张图片。","composer.imageAttachment":"已附加的图片","question.selectMany":"可多选","composer.imageReadFailed":"无法读取这张图片。","composer.onlyImages":"这里目前只能附加图片。","composer.pastedText":"粘贴的文本 · {lines} 行","composer.pasteTooLarge":"粘贴内容超过 10 MB。","composer.removeAttachment":"移除附件","composer.commands":"命令","composer.modelLoadRetry":"加载失败 · 重试","composer.modelLoading":"模型加载中…","composer.modelResolving":"正在解析模型…","composer.modelUnavailable":"模型不可用","composer.modelRetry":"重试","composer.followDefaults":"跟随默认","composer.noModels":"没有可用模型","composer.providers":"服务商","composer.notConfigured":"默认模型","composer.loadMoreModels":"加载更多模型","composer.searchModels":"搜索模型...","composer.send":"发送","composer.sendMessage":"发送消息...","composer.stopResponse":"停止回复","composer.steer":"插话","composer.queue":"排队","composer.steerAlternate":"插入正在运行的轮次","composer.queueAlternate":"暂存到下一轮","composer.sendNowHint":"中断并立即发送({key})","composer.stopping":"正在停止运行后再发送","composer.stillStopping":"运行仍在停止中,草稿已保留","composer.sendNowFailed":"立即发送失败:{error}。草稿已保留","composer.sentIntoRun":"已插入正在运行的轮次","composer.heldForNextTurn":"已暂存到下一轮","failure.details":"详情","failure.details.cause":"原因:","failure.details.kind":"kind:{kind}","failure.details.providerCode":"提供方 code:{code}","failure.details.requestId":"请求 id:{id}","failure.details.retryAfter":"提供方要求等待 {seconds} 秒","failure.details.status":"状态:{status}","failure.details.tried":"已尝试 {count} 次,历时 {seconds} 秒","failure.incomplete":"以上响应不完整。","failure.retryAnnouncement":"正在重试,第 {attempt}/{max} 次:{reason}","failure.tried":"已尝试 {count} 次,历时 {seconds} 秒。","failure.kind.network.meaning":"无法连接提供方,或连接中断","failure.kind.rate_limited.meaning":"提供方正在限流","failure.kind.server_error.meaning":"提供方报告了服务器错误","failure.kind.malformed_response.meaning":"提供方发来的响应 Dim 无法使用","failure.kind.auth_rejected.meaning":"提供方拒绝了凭据","failure.kind.quota_exhausted.meaning":"账户已无可用配额","failure.kind.not_found.meaning":"提供方找不到模型或端点","failure.kind.context_too_long.meaning":"对话超过模型可接受的长度","failure.kind.content_filtered.meaning":"提供方的内容过滤拦截了响应","failure.kind.invalid_request.meaning":"提供方拒绝了请求","failure.kind.output_limit.meaning":"模型达到输出上限","failure.kind.unknown.meaning":"模型请求失败","failure.kind.network.action":"检查网络或代理。","failure.kind.rate_limited.action":"稍后重试。","failure.kind.server_error.action":"稍后重试或换一个模型。","failure.kind.malformed_response.action":"重试;若反复出现,换一个模型或检查代理或网关。","failure.kind.auth_rejected.action":"重新登录或检查 API key。","failure.kind.quota_exhausted.action":"检查套餐或计费。","failure.kind.not_found.action":"检查模型和提供方 base URL。","failure.kind.context_too_long.action":"压缩对话或新开会话。","failure.kind.content_filtered.action":"改写请求。","failure.kind.invalid_request.action":"查看详情。","failure.kind.output_limit.action":"提高输出 token 上限后重试。","failure.kind.unknown.action":"查看详情。","connection.accessRequired":"需要访问权限","connection.connecting":"正在连接","connection.host":"App Server","connection.live":"已连接","connection.protocolError":"App Server 返回了无法识别的数据","connection.reconnecting":"正在重连","connection.versionMismatch":"版本不匹配","detail.output":"输出","timeline.loadEarlier":"更早内容尚未加载 · 加载更早内容","timeline.loadingEarlier":"正在加载更早内容…","lines.state.ending":"正在结束","lines.state.ended":"已结束","lines.afterMessage":"第 {count} 条消息之后","lines.atEnd":"在线的末尾","lines.beforeMessage":"在“{message}”之前","lines.closePanel":"关闭线面板","lines.closeTab":"关闭线标签","lines.collapse":"恢复面板宽度","lines.create":"创建线","lines.empty":"这条线还没有消息。","lines.emptyHint":"从一条消息创建线,并行处理另一个方向。","lines.emptyTitle":"还没有线","lines.end":"结束","lines.endDescription":"这条线会停止并变为只读,且无法撤销。","lines.endLine":"结束线 {name}","lines.endTitle":"结束线“{name}”?","lines.expand":"展开面板","lines.from":"来自 {name}","lines.lineAria":"线 {name}","lines.loadFailed":"无法加载这条线。","lines.main":"main","lines.mainHint":"会话本身","lines.newChild":"新建子线","lines.newLine":"新建线","lines.newLineFrom":"来自 {name}","lines.newLineTitle":"新建线","lines.noFinishedTurn":"还没有已结束的回合可供切分","lines.open":"打开线","lines.openLine":"打开线 {name}","lines.panelAria":"会话线","lines.placeholder":"给这条线发消息…","lines.promptLabel":"起始消息","lines.promptPlaceholder":"这条线要做什么?","lines.promptRequired":"请填写这条线的起始消息。","lines.readOnly":"这条线只读。","lines.resize":"调整线面板宽度","lines.retry":"重试","lines.state.creationFailed":"创建失败","lines.state.endedByOperation":"被操作结束","lines.state.endedItself":"自行结束","lines.state.endedWith":"随 {id} 结束","lines.state.main":"会话本身","lines.state.waiting":"等待中","lines.state.working":"运行中","lines.title":"线","message.branch":"从此消息创建线","message.collapse":"收起","message.copy":"复制整个消息","message.skillLoaded":"已加载技能:{name}","message.hookContext":"钩子上下文","message.expand":"展示全部","message.quote":"引用到输入框","newThread.pathLabel":"目录的绝对路径","newThread.pathPlaceholder":"/path/to/project","newThread.selectWorkspace":"选择工作区...","newThread.title":"开始构建","newThread.usePath":"使用","newThread.workspaceRequired":"请选择工作区,或输入目录的绝对路径。","page.notFoundDescription":"此地址没有内容。","page.reconnecting":"连接已断开,正在重连…","prompt.actionRequest":"Dim 想要:{action}","prompt.allowOnce":"仅这次","prompt.allowAlways":"总是允许","prompt.allowSession":"本会话内允许","question.awaitingAnswer":"等待回答","question.decline":"不回答","question.failed":"发送回答失败","question.notPending":"这个问题已不再等待回答。运行继续后可以再次发送。","question.other":"其他回答","question.otherPlaceholder":"输入你自己的回答","question.steps":"问题","question.number":"问题 {number}","question.previous":"上一题","question.next":"下一题","question.review":"确认回答","question.edit":"修改","question.editAnswer":"修改回答:{question}","question.unanswered":"尚未回答","question.sent":"回答已发送","question.submit":"发送回答","question.title":"Dim 有一个问题","prompt.awaitingApproval":"等待确认","prompt.input":"输入","prompt.permissionSubmitFailed":"提交工具权限失败","prompt.reject":"拒绝","prompt.useTool":"使用工具","route.newSession":"新会话","route.notFound":"页面不存在","route.session":"会话","sidebar.closeMenu":"关闭导航","sidebar.archive":"归档","sidebar.archiveFailed":"无法归档此会话:浏览器存储不可用。","sidebar.archiveSession":"归档 {name}","sidebar.collapseWorkspace":"折叠 {name}","sidebar.expandWorkspace":"展开 {name}","sidebar.newInWorkspace":"在 {name} 中新建会话","sidebar.newSession":"新会话","sidebar.noMatches":"没有匹配的工作区或会话。","sidebar.noWorkspaces":"还没有会话。","sidebar.openMenu":"打开导航","sidebar.recentActive":"最近活跃","sidebar.recentCreated":"最近创建","sidebar.searchPlaceholder":"搜索工作区和会话","sidebar.sort":"排序","sidebar.showLess":"显示更少","sidebar.showMore":"显示更多","sidebar.untitled":"新会话","session.parent":"父会话:{title}","session.children":"子会话({count})","sidebar.workspaces":"工作区","status.running":"运行中","status.stopping":"正在停止","timeline.beforeMessage":"在“{message}”之前","timeline.copied":"已复制","timeline.copy":"复制","timeline.final":"最后","timeline.fromLine":"◂ 来自 {id}","timeline.hookFollowUp":"Stop 钩子后续输入 · {count} 行 | Stop 钩子后续输入 · {count} 行","timeline.lineEnded":"◂ {id} 已结束","timeline.lineEndedByOperation":"这条线已结束(由操作结束)","timeline.lineEndedItself":"这条线已结束(自行结束)","timeline.lineEndedWith":"这条线已结束(随 {id})","timeline.lineWaiting":"◂ {id} 正在等待({status})","timeline.noticeStopped":"已停止","timeline.scrollToBottom":"返回底部","timeline.steer":"(steer)","tool.edit":"编辑","tool.glob":"查找","tool.grep":"搜索内容","tool.listFiles":"列出文件","tool.read":"读取","tool.run":"执行","tool.runBackground":"后台执行","tool.webFetch":"获取网页","tool.webSearch":"搜索网络","tool.write":"写入","work.actionSeparator":"、","work.command":"执行{count}次命令","work.edit":"改{count}次文件","work.processing":"正在处理","work.read":"读{count}次文件","work.search":"搜{count}次","work.separator":" · ","work.retrying":"正在重试 {attempt}/{max},{seconds} 秒后 · {reason} · {stop}","work.waiting":"正在等待提供方 · {reason} · {stop}","work.thinking":"正在思考","work.thinkingSteps":"思考{count}轮","work.thoughtFor":"思考了 {duration}","work.unknown":"其他{count}次","work.webFetch":"抓取{count}次","work.webSearch":"网络搜{count}次"};export{e as default};
|
package/web/dimcode-web.json
CHANGED
package/web/index.html
CHANGED
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
@keyframes boot-breathe { 0% { opacity: .26; } 50% { opacity: 1; } 100% { opacity: .26; } }
|
|
24
24
|
@media (prefers-reduced-motion: reduce) { .boot-splash svg { opacity: 1; animation: none; } }
|
|
25
25
|
</style>
|
|
26
|
-
<script type="module" crossorigin src="/assets/index-
|
|
27
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-vue-
|
|
28
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
26
|
+
<script type="module" crossorigin src="/assets/index-Cw2UB-vh.js"></script>
|
|
27
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-vue-DKQ_ib1S.js">
|
|
28
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DpFp3mPk.css">
|
|
29
29
|
</head>
|
|
30
30
|
<body>
|
|
31
31
|
<div id="app" class="isolate">
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as he,f as fe,d as ge,a as me,B as ye,v as be,h as we,_ as ke,s as xe,n as Ie,p as H,q as Ue,w as Ce}from"./index-CkyYecAj.js";import{_ as Se}from"./Progress-CCdB9CHm.js";import{d as Ae,g as ze,h as se,x as Fe,c as n,e as k,k as c,t as e,u as a,a as x,w as y,b as o,F as w,f,E as O,r as g,z as V,o as s}from"./vendor-vue-3IcwLTL7.js";import{u as Le}from"./settings-general-DduUd0E5.js";import{_ as $e,r as Be,a as Re,b as De,c as Ee}from"./ProviderAuthFlow.vue_vue_type_script_setup_true_lang-Dw6HwySz.js";import{m as A}from"./context-BOjXeS7X.js";const Me={class:"settings-page"},Pe={"data-route-heading":"",tabindex:"-1"},Te={key:3,class:"settings-card"},Ne={class:"settings-help"},Oe={class:"settings-card"},Ve={class:"settings-identity"},je={class:"settings-avatar"},qe={class:"settings-identity-text"},He={key:0},We={key:1},Ye={key:0,class:"settings-help",role:"status"},Ge={class:"account-login-heading"},Ke={key:0,class:"settings-card settings-usage"},Je={class:"settings-list-toolbar"},Qe={key:1,class:"settings-identity"},Xe={class:"settings-identity-text"},Ze={key:0},et={key:0},tt={key:1},at={key:2},st={class:"settings-meter-label"},lt={key:0},nt={key:1},it={key:1,class:"settings-meta"},ot={class:"settings-inline-actions"},rt={key:1,class:"settings-card settings-form"},ut={class:"settings-row-main"},ct={key:0},dt={key:0,class:"settings-help"},vt={key:2,class:"settings-card settings-form"},pt={class:"settings-help"},_t={class:"settings-inline-actions"},ht={key:1,class:"settings-help"},ft=Ae({__name:"AccountSettings",setup(gt){const{t:d,locale:le}=ze({messages:xe}),v=Le(),p=he(),j=fe(),_=g(),r=g(),m=g(),M=g(),D=g(""),E=g(""),I=g(),T=g(!1),W=g(!1),U=g(!0),h=g(!1),z=g(""),P=g(),N=g(""),F=g(),q=g(),L=V(()=>{var t,u;return(u=(t=_.value)==null?void 0:t.account)==null?void 0:u.state.identity}),$=V(()=>{var t,u;return((u=(t=_.value)==null?void 0:t.account)==null?void 0:u.state.authenticated)===!0}),Y=V(()=>{var t,u;return((t=L.value)==null?void 0:t.name)||((u=L.value)==null?void 0:u.email)||d("account")}),ne=V(()=>{const t=r.value;if(!t)return[];const u=[];t.credits&&u.push({id:"credits",label:d("credits"),used:t.credits.usedUnits,total:t.credits.totalUnits,remaining:t.credits.remainingUnits,unlimited:t.credits.unlimited,expires:t.credits.resetsAt});for(const l of t.windows)u.push({id:`window-${l.durationHours}`,label:`${l.durationHours} h`,used:l.tokenUsed,total:l.tokenCap,expires:l.expiresAt});for(const l of t.features)u.push({id:l.key,label:l.key,used:l.used,total:l.allowance,remaining:l.remaining,unlimited:l.unlimited,expires:l.periodEnd});return u});se([()=>{var t;return(t=_.value)==null?void 0:t.providerId},()=>{var t;return(t=L.value)==null?void 0:t.issuer},()=>{var t;return(t=L.value)==null?void 0:t.subject},$],()=>{I.value=void 0,r.value=void 0,m.value=void 0,F.value=void 0},{flush:"sync"});async function B(){var t,u;U.value=!0,z.value="",P.value=void 0,N.value="";try{const l=await p.client.call("provider.management",{},Be);if(_.value=l.providers.find(C=>C.credentialAuthority==="account"),M.value=void 0,D.value="",(u=(t=_.value)==null?void 0:t.account)!=null&&u.state.authenticated){const C={providerId:_.value.providerId};await Promise.all([p.client.call("account.usage",C,Re).then(S=>{r.value=S},S=>{N.value=A(S)}),p.client.call("account.referral",C,De).then(S=>{m.value=S},S=>{D.value=A(S)})])}const b=l.errors.find(C=>C.providerId==="dimcode-api-oauth");b&&(z.value=b.message,P.value=b.providerId)}catch(l){z.value=A(l)}finally{U.value=!1}}async function ie(){if(!(!P.value||h.value)){h.value=!0;try{await p.client.call("account.recover",{providerId:P.value},H),await Promise.all([B(),j.load()])}catch(t){z.value=A(t)}finally{h.value=!1}}}async function oe(t){await B(),$.value&&t&&(F.value={error:t})}async function re(){const t=_.value;if(!(!(t!=null&&t.actions.includes("refresh"))||U.value||h.value||p.phase!=="connected")){h.value=!0,F.value=void 0;try{await j.refresh(t.providerId),$.value&&(F.value="refreshed")}catch(u){$.value&&(F.value={error:A(u)})}finally{h.value=!1}}}async function ue(){var u;const t=_.value;if(!(!t||h.value||!await((u=q.value)==null?void 0:u.open(d("signOutConfirm"),{confirmLabel:d("signOut")})))){h.value=!0;try{await p.client.call("account.logout",{providerId:t.providerId},H),I.value=void 0,await Promise.all([B(),j.load()])}catch(l){z.value=A(l)}finally{h.value=!1}}}async function ce(){var t;if((t=m.value)!=null&&t.inviteUrl)try{await Ue(m.value.inviteUrl),W.value=!0}catch(u){D.value=A(u)}}async function G(){if(!(!_.value||p.phase!=="connected")){E.value="";try{M.value=await p.client.call("account.reset_batches",{providerId:_.value.providerId},Ee)}catch(t){E.value=A(t)}}}function de(t){T.value=t,t&&G()}async function ve(t){var b,C;const u=(b=r.value)==null?void 0:b.subscriptionId;if(h.value||!_.value||u===void 0||I.value&&I.value.resetType!==t)return;const l=t==="window"?v("Use one credit to reset the current usage window?","使用一次额度重置当前用量窗口?"):v("Use one credit to reset this month's full usage?","使用一次额度重置本月全部用量?");if(await((C=q.value)==null?void 0:C.open(l,{confirmLabel:d("reset")}))){h.value=!0,E.value="",I.value??(I.value={providerId:_.value.providerId,subscriptionId:u,resetType:t,idempotencyKey:crypto.randomUUID()});try{await p.client.call("account.apply_reset",I.value,H),I.value=void 0,await B(),T.value&&await G()}catch(S){E.value=`${A(S)} ${v("Retry the same reset to safely check its result; no second credit will be consumed.","请重试同一种重置以安全确认结果;不会重复消耗额度。")}`}finally{h.value=!1}}}return se(()=>p.phase,(t,u)=>{t==="connected"&&u!=="connected"&&B()}),Fe(B),(t,u)=>{var K,J,Q,X,Z,ee,te,ae;const l=me,b=ke,C=Se,S=be,pe=Ie,_e=we;return s(),n("article",Me,[k(ge,{ref_key:"confirm",ref:q},null,512),c("header",null,[c("h2",Pe,e(a(d)("account")),1),c("p",null,e(a(d)("accountDescription")),1)]),z.value?(s(),x(b,{key:0,class:"settings-banner",color:"error",variant:"subtle",description:z.value,role:"alert"},{actions:y(()=>[k(l,{color:"neutral",variant:"ghost",size:"sm",disabled:U.value||a(p).phase!=="connected",onClick:B},{default:y(()=>[f(e(a(d)("retry")),1)]),_:1},8,["disabled"])]),_:1},8,["description"])):o("",!0),P.value&&a(p).supports("account.recover")?(s(),x(l,{key:1,color:"neutral",variant:"outline",size:"md",disabled:h.value||U.value||a(p).phase!=="connected",onClick:ie},{default:y(()=>[f(e(a(v)("Recover stored sign-in","恢复已保存的登录")),1)]),_:1},8,["disabled"])):o("",!0),U.value?(s(),x(b,{key:2,class:"settings-banner",color:"neutral",variant:"subtle",description:a(d)("loading"),role:"status"},null,8,["description"])):!_.value&&!z.value?(s(),n("section",Te,[c("p",Ne,e(a(d)("accountUnavailable")),1)])):o("",!0),_.value?(s(),n(w,{key:4},[c("section",Oe,[$.value?(s(),n(w,{key:0},[c("div",Ve,[c("span",je,e(Y.value.slice(0,2).toUpperCase()),1),c("div",qe,[c("strong",null,e(Y.value),1),(K=L.value)!=null&&K.email?(s(),n("p",He,e(L.value.email),1)):o("",!0),(J=L.value)!=null&&J.subject?(s(),n("p",We,e(a(d)("uid"))+": "+e(L.value.subject),1)):o("",!0)]),_.value.actions.includes("refresh")?(s(),x(l,{key:0,color:"neutral",variant:"outline",size:"md",icon:"i-lucide-refresh-cw",disabled:h.value||U.value||a(p).phase!=="connected",onClick:re},{default:y(()=>[f(e(a(d)("refreshModelList")),1)]),_:1},8,["disabled"])):o("",!0),k(l,{color:"neutral",variant:"ghost",size:"md",disabled:h.value||U.value||a(p).phase!=="connected",onClick:ue},{default:y(()=>[f(e(a(d)("signOut")),1)]),_:1},8,["disabled"])]),F.value==="refreshed"?(s(),n("p",Ye,e(a(d)("modelListRefreshed")),1)):F.value?(s(),x(b,{key:1,class:"settings-banner",color:"error",variant:"subtle",description:a(d)("modelRefreshFailed",{reason:F.value.error}),role:"alert"},null,8,["description"])):o("",!0)],64)):(s(),n(w,{key:1},[c("div",Ge,[k(ye,{"aria-hidden":"true"}),c("h3",null,e(a(d)("signIn")),1)]),(s(),x($e,{key:_.value.providerId,provider:_.value,onFinished:oe},null,8,["provider"]))],64))]),$.value?(s(),n("section",Ke,[c("div",Je,[c("h3",null,e(a(d)("plan")),1),k(l,{color:"neutral",variant:"ghost",size:"md",square:"",icon:"i-lucide-refresh-cw","aria-label":a(d)("refresh"),disabled:U.value||a(p).phase!=="connected",ui:{leadingIcon:U.value?"account-refreshing":void 0},onClick:B},null,8,["aria-label","disabled","ui"])]),N.value?(s(),x(b,{key:0,color:"error",variant:"subtle",description:N.value,role:"alert"},null,8,["description"])):o("",!0),(Q=r.value)!=null&&Q.plan?(s(),n("div",Qe,[c("div",Xe,[c("strong",null,e(r.value.plan.name),1),c("p",null,[f(e(r.value.plan.status),1),r.value.plan.expiresAt?(s(),n("span",Ze," · "+e(new Date(r.value.plan.expiresAt).toLocaleDateString()),1)):o("",!0)]),r.value.plan.priceAmount!==void 0?(s(),n("p",et,[f(e((r.value.plan.priceAmount/100).toLocaleString(a(le),{minimumFractionDigits:2}))+" "+e(r.value.plan.priceCurrency),1),r.value.plan.priceInterval?(s(),n(w,{key:0},[f(" / "+e(r.value.plan.priceInterval),1)],64)):o("",!0)])):o("",!0),r.value.plan.cancelAtPeriodEnd?(s(),n("p",tt,e(a(v)("Cancels at the end of this term","将在本期结束后取消")),1)):o("",!0),r.value.plan.lastTermStatus?(s(),n("p",at,e(a(v)("Previous term","上一周期"))+": "+e(r.value.plan.lastTermStatus)+" · "+e(r.value.plan.lastTermStart)+" — "+e(r.value.plan.lastTermEnd),1)):o("",!0)])])):o("",!0),(s(!0),n(w,null,O(ne.value,i=>(s(),n("div",{key:i.id,class:"settings-meter"},[c("div",st,[c("span",null,e(i.label),1),i.unlimited?(s(),n("span",lt,e(a(d)("unlimited")),1)):(s(),n("span",nt,[i.used!==void 0?(s(),n(w,{key:0},[f(e(i.used.toLocaleString()),1)],64)):o("",!0),i.total!==void 0?(s(),n(w,{key:1},[f(" / "+e(i.total.toLocaleString()),1)],64)):o("",!0),i.remaining!==void 0?(s(),n(w,{key:2},[f(" · "+e(a(d)("remaining"))+" "+e(i.remaining.toLocaleString()),1)],64)):o("",!0)]))]),!i.unlimited&&i.total!==void 0&&i.total>0&&i.used!==void 0?(s(),x(C,{key:0,"model-value":i.used,max:i.total,"aria-label":i.label,size:"sm"},null,8,["model-value","max","aria-label"])):o("",!0),i.expires?(s(),n("small",it,e(a(d)("expires"))+": "+e(new Date(i.expires).toLocaleString()),1)):o("",!0)]))),128)),c("div",ot,[(X=r.value)!=null&&X.subscriptionUrl?(s(),x(l,{key:0,color:"neutral",variant:"outline",size:"md","trailing-icon":"i-lucide-external-link",href:r.value.subscriptionUrl,target:"_blank",rel:"noopener noreferrer"},{default:y(()=>[f(e(a(d)("viewPlan")),1)]),_:1},8,["href"])):o("",!0),(Z=r.value)!=null&&Z.pricingUrl?(s(),x(l,{key:1,color:"neutral",variant:"ghost",size:"md","trailing-icon":"i-lucide-external-link",href:r.value.pricingUrl,target:"_blank",rel:"noopener noreferrer"},{default:y(()=>[f(e(a(d)("choosePlan")),1)]),_:1},8,["href"])):o("",!0)])])):o("",!0),$.value&&((ee=r.value)!=null&&ee.resets)?(s(),n("section",rt,[c("h3",null,e(a(d)("resetCredits")),1),E.value?(s(),x(b,{key:0,color:"error",variant:"subtle",description:E.value,role:"alert"},null,8,["description"])):o("",!0),(s(),n(w,null,O(["window","monthlyFull"],i=>c("div",{key:i,class:"settings-row"},[c("div",ut,[c("strong",null,e(i==="window"?a(v)("Window reset","窗口重置"):a(v)("Monthly full reset","每月全量重置"))+" · "+e(r.value.resets[i].availableCount),1),r.value.resets[i].nearestExpiresAt?(s(),n("small",ct,e(a(d)("expires"))+": "+e(new Date(r.value.resets[i].nearestExpiresAt).toLocaleString()),1)):o("",!0)]),k(l,{color:"neutral",variant:"outline",size:"md",disabled:h.value||U.value||a(p).phase!=="connected"||(I.value?I.value.resetType!==(i==="window"?"window":"monthly_full"):!r.value.resets[i].availableCount)||r.value.subscriptionId===void 0,onClick:R=>ve(i==="window"?"window":"monthly_full")},{default:y(()=>[f(e(a(d)("reset")),1)]),_:1},8,["disabled","onClick"])])),64)),k(S,{open:T.value,"onUpdate:open":de},{content:y(()=>[M.value?(s(),n(w,{key:0},O(["window","monthlyFull"],i=>c("div",{key:i},[c("h4",null,e(i==="window"?a(v)("Window","窗口"):a(v)("Monthly","每月")),1),(s(!0),n(w,null,O(M.value[i],R=>(s(),n("p",{key:R.grantId,class:"settings-help"},e(R.sourceType)+" · "+e(R.remaining)+" · "+e(R.scopeType)+" "+e(R.subscriptionId)+" · "+e(new Date(R.expiresAt).toLocaleString()),1))),128)),M.value[i].length?o("",!0):(s(),n("p",dt,e(a(v)("No credits","暂无额度")),1))])),64)):o("",!0)]),default:y(()=>[k(l,{color:"neutral",variant:"link",size:"sm",class:"px-0","trailing-icon":T.value?"i-lucide-chevron-down":"i-lucide-chevron-right"},{default:y(()=>[f(e(a(v)("Credit batches and expiry","重置额度批次与有效期")),1)]),_:1},8,["trailing-icon"])]),_:1},8,["open"])])):o("",!0),$.value&&((te=m.value)!=null&&te.enabled||D.value)?(s(),n("section",vt,[c("h3",null,e(a(d)("referral")),1),D.value?(s(),x(b,{key:0,color:"error",variant:"subtle",description:D.value,role:"alert"},null,8,["description"])):o("",!0),(ae=m.value)!=null&&ae.enabled?(s(),n(w,{key:1},[c("p",null,e(a(v)("Invited","已邀请"))+" "+e(m.value.invitedCount)+" · "+e(a(v)("Subscribed","已付费"))+" "+e(m.value.paidCount)+" · "+e(a(v)("Rewards","奖励额度"))+" "+e(m.value.rewardGrantedUnits??"—"),1),c("p",pt,e(a(v)("Your rebate","邀请人返利"))+" "+e(m.value.inviterRebateBp/100)+"% · "+e(a(v)("Friend's discount","受邀人优惠"))+" "+e(m.value.inviteeRebateBp/100)+"%",1),m.value.eligible&&m.value.inviteUrl?(s(),n(w,{key:0},[k(_e,{label:a(v)("Invitation link","邀请链接")},{default:y(()=>[k(pe,{"model-value":m.value.inviteUrl,size:"md",readonly:"",class:"w-full"},null,8,["model-value"])]),_:1},8,["label"]),c("div",_t,[k(l,{color:"neutral",variant:"outline",size:"md",onClick:ce},{default:y(()=>[f(e(a(d)(W.value?"copied":"copy")),1)]),_:1}),k(l,{color:"neutral",variant:"ghost",size:"md","trailing-icon":"i-lucide-external-link",href:m.value.inviteUrl,target:"_blank",rel:"noopener noreferrer"},{default:y(()=>[f(e(a(v)("Open","打开")),1)]),_:1},8,["href"])])],64)):(s(),n("p",ht,e(a(v)("Your account is not eligible for invitations yet.","当前账户暂未获得邀请资格。")),1))],64)):o("",!0)])):o("",!0)],64)):o("",!0)])}}}),It=Ce(ft,[["__scopeId","data-v-4a042461"]]);export{It as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.account-login-heading[data-v-4a042461]{display:flex;align-items:center;gap:var(--space-3);margin-bottom:var(--space-6)}.account-login-heading svg[data-v-4a042461]{width:36px;height:26px}.account-login-heading h3[data-v-4a042461],.settings-list-toolbar h3[data-v-4a042461]{margin:0}[data-v-4a042461] .account-refreshing{animation:spin-4a042461 1s linear infinite}@keyframes spin-4a042461{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){[data-v-4a042461] .account-refreshing{animation:none}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as K,f as Q,g as W,h as X,a as Y,r as Z,i as ee,j as B,_ as le,k as ae,l as se,m as te}from"./index-CkyYecAj.js";import{d as oe,x as ue,c as E,k as i,t as r,u as t,e as v,w as $,B as ne,b as U,a as ie,r as m,z as h,f as O,o as P}from"./vendor-vue-3IcwLTL7.js";import{u as de}from"./settings-general-DduUd0E5.js";import{_ as re}from"./GeneralSettingsStatus.vue_vue_type_script_setup_true_lang-C7tiHNrw.js";import{b as ce,r as ve,m as F}from"./context-BOjXeS7X.js";const me={class:"settings-page"},pe={"data-route-heading":"",tabindex:"-1"},fe={class:"settings-card settings-form"},be={class:"settings-card"},_e={key:0},he={key:0,class:"settings-card"},ye={key:1,class:"settings-card"},ge={class:"settings-actions"},D="__user__",R="__auto__",Pe=oe({__name:"AgentSettings",setup(we){const a=de(),o=K(),V=Q(),J=W(),p=m(),f=m(),b=m("agent"),u=m(),d=m(""),N=m(!1),S=m(""),y=m(""),n=m(!1),k=m(""),A=m(!1),g=h(()=>{var l;return((l=V.providers)==null?void 0:l.flatMap(e=>e.models.map(s=>({key:JSON.stringify([e.providerId,s.id]),providerId:e.providerId,modelId:s.id,label:`${e.name} / ${s.name}`}))))??[]}),w=h(()=>p.value?JSON.stringify([p.value.providerId,p.value.modelId]):""),x=h(()=>{var l,e;return((l=f.value)==null?void 0:l.policy.mode)==="fixed"?JSON.stringify([f.value.policy.model.providerId,f.value.policy.model.modelId]):((e=f.value)==null?void 0:e.policy.mode)??"agent"}),T=h(()=>[{label:a("User default · all workspaces","用户默认 · 所有工作区"),value:D},...J.workspaces.map(l=>({label:`${l.name} — ${l.cwd}`,value:l.cwd}))]),j=h(()=>{var l,e;return[...w.value&&!g.value.some(s=>s.key===w.value)?[{label:`${(l=p.value)==null?void 0:l.providerId} / ${(e=p.value)==null?void 0:e.modelId} (${a("unavailable","不可用")})`,value:w.value,disabled:!0}]:[],...g.value.map(s=>({label:s.label,value:s.key}))]}),L=h(()=>[{label:a("Agent decides (profile / workspace defaults)","由代理决定(配置 / 工作区默认值)"),value:"agent"},{label:a("Inherit requesting branch model","继承请求分支的模型"),value:"inherit"},...x.value!=="agent"&&x.value!=="inherit"&&!g.value.some(l=>l.key===x.value)?[{label:a("Configured model unavailable","已配置模型不可用"),value:x.value,disabled:!0}]:[],...g.value.map(l=>({label:l.label,value:l.key}))]),q=h(()=>{var l,e;return[{label:a("Automatic detection","自动检测"),value:R},...d.value&&!((l=u.value)!=null&&l.shells.some(s=>s.executablePath===d.value))?[{label:`${d.value} (${a("unavailable","不可用")})`,value:d.value,disabled:!0}]:[],...((e=u.value)==null?void 0:e.shells.map(s=>({label:`${s.name} — ${s.executablePath}`,value:s.executablePath})))??[]]}),I=h(()=>N.value&&(y.value!==w.value||b.value!==x.value||u.value!==void 0&&d.value!==(u.value.executablePath??"")));ce(I);async function C(l=S.value){if(!n.value&&!(I.value&&!window.confirm(a("Discard unsaved defaults?","放弃未保存的默认设置?")))){n.value=!0,k.value="",A.value=!1;try{if(!o.supports("provider.selection"))throw new Error(a("Default model selection is not available on this server.","此服务器不支持默认模型选择。"));const[e,s,c]=await Promise.all([o.client.call("provider.selection",l?{cwd:l}:{},Z),o.supports("collaboration.model_policy")?o.client.call("collaboration.model_policy",{},ee):void 0,o.supports("host.exec_shell.get")?o.client.call("host.exec_shell.get",{},B):void 0,V.load()]);p.value=e,f.value=s,u.value=c,d.value=(c==null?void 0:c.executablePath)??"",b.value=x.value,S.value=l,y.value=w.value,N.value=!0,V.error&&(k.value=V.error)}catch(e){k.value=F(e)}finally{n.value=!1}}}async function z(){const l=g.value.find(e=>e.key===y.value);if(!(n.value||!I.value)){n.value=!0,k.value="",A.value=!1;try{if(y.value!==w.value&&l&&(p.value=await o.client.call("provider.select",{...S.value?{cwd:S.value}:{},providerId:l.providerId,modelId:l.modelId,...p.value?{expectedVersion:p.value.version}:{}},se),y.value=w.value),f.value&&b.value!==x.value){const e=g.value.find(M=>M.key===b.value),s=b.value==="agent"||b.value==="inherit"?{mode:b.value}:e?{mode:"fixed",model:{providerId:e.providerId,modelId:e.modelId}}:void 0;if(!s)throw new Error(a("Choose an available subagent model.","请选择可用的子代理模型。"));const c=await o.client.call("collaboration.set_model_policy",{expectedRevision:f.value.revision,policy:s},te);f.value={revision:c,policy:s}}u.value&&d.value!==(u.value.executablePath??"")&&(u.value=await o.client.call("host.exec_shell.update",{expectedRevision:u.value.revision,...d.value?{executablePath:d.value}:{}},B),d.value=u.value.executablePath??""),A.value=!0}catch(e){k.value=F(e)}finally{n.value=!1}}}async function G(l){await C(l===D?"":String(l??""))}return ve(o,()=>C(),I),ue(()=>C()),(l,e)=>{const s=ae,c=X,M=Y,H=le;return P(),E("article",me,[i("header",null,[i("h2",pe,r(t(a)("Agent","代理")),1),i("p",null,r(t(a)("Choose the default model for new sessions. Existing sessions keep their selected model.","为新会话选择默认模型。现有会话保留其已选模型。")),1)]),i("div",fe,[v(c,{label:t(a)("Default model scope","默认模型范围")},{default:$(()=>[v(s,{"model-value":S.value||D,items:T.value,disabled:n.value,class:"w-full","onUpdate:modelValue":G},null,8,["model-value","items","disabled"])]),_:1},8,["label"]),i("p",null,r(t(a)("A workspace default overrides the user default for new sessions in that workspace. Subagent policy and command shell below always apply to all workspaces.","工作区默认值覆盖该工作区新会话使用的用户默认值。下方的子代理策略和命令 Shell 始终适用于所有工作区。")),1),v(M,{color:"neutral",variant:"outline",disabled:n.value,class:"justify-self-start",onClick:e[0]||(e[0]=_=>C())},{default:$(()=>[O(r(t(a)("Reload defaults","重新加载默认设置")),1)]),_:1},8,["disabled"])]),v(re,{busy:n.value,error:k.value,saved:A.value&&!I.value,onReload:e[1]||(e[1]=_=>C())},null,8,["busy","error","saved"]),N.value?(P(),E("form",{key:0,class:"settings-form",onSubmit:ne(z,["prevent"])},[i("section",be,[i("h3",null,r(t(a)("Default model","默认模型")),1),i("p",null,r(S.value||t(a)("Global default","全局默认")),1),v(c,{label:t(a)("Model","模型")},{default:$(()=>[v(s,{"model-value":y.value||void 0,items:j.value,placeholder:t(a)("Automatic fallback — choose a model to pin a default","自动回退 — 选择模型以固定默认值"),disabled:n.value||!t(o).supports("provider.select"),class:"w-full","onUpdate:modelValue":e[2]||(e[2]=_=>y.value=String(_))},null,8,["model-value","items","placeholder","disabled"])]),_:1},8,["label"]),g.value.length?U("",!0):(P(),E("p",_e,r(t(a)("No selectable models. Configure a provider and its model limits first.","没有可选模型。请先配置提供商和模型限制。")),1))]),f.value?(P(),E("section",he,[i("h3",null,r(t(a)("Subagent models","子代理模型")),1),i("p",null,r(t(a)("Applies to every newly created native Collaboration member, including named agents. Existing members and external agents are unchanged.","适用于每个新建的原生协作成员,包括命名代理。现有成员和外部代理不受影响。")),1),v(c,{label:t(a)("Model policy","模型策略")},{default:$(()=>[v(s,{modelValue:b.value,"onUpdate:modelValue":e[3]||(e[3]=_=>b.value=_),items:L.value,disabled:n.value||!t(o).supports("collaboration.set_model_policy"),class:"w-full"},null,8,["modelValue","items","disabled"])]),_:1},8,["label"])])):U("",!0),u.value?(P(),E("section",ye,[i("h3",null,r(t(a)("Command shell","命令 Shell")),1),i("p",null,r(t(a)("Used for new command invocations. Already running processes keep their shell.","用于新启动的命令。已运行的进程保留其原 Shell。")),1),v(c,{label:t(a)("Executable","可执行程序")},{default:$(()=>[v(s,{"model-value":d.value||R,items:q.value,disabled:n.value||!t(o).supports("host.exec_shell.update"),class:"w-full","onUpdate:modelValue":e[4]||(e[4]=_=>d.value=_===R?"":String(_))},null,8,["model-value","items","disabled"])]),_:1},8,["label"]),u.value.configError?(P(),ie(H,{key:0,color:"error",variant:"subtle",icon:"i-lucide-alert-circle",description:u.value.configError,class:"settings-banner mt-4"},null,8,["description"])):U("",!0)])):U("",!0),i("footer",ge,[v(M,{color:"primary",type:"submit",disabled:n.value||!I.value},{default:$(()=>[O(r(t(a)("Save defaults","保存默认设置")),1)]),_:1},8,["disabled"])])],32)):U("",!0)])}}});export{Pe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{x as S,h as x,_ as z,e as I,a as U,k as L,w as $}from"./index-CkyYecAj.js";import{u as N}from"./settings-general-DduUd0E5.js";import{d as w,c as u,k as t,t as o,u as e,a as A,b as B,F as _,E as d,e as i,w as m,m as V,f as F,z as T,o as c}from"./vendor-vue-3IcwLTL7.js";const E={class:"settings-page"},D={"data-route-heading":"",tabindex:"-1"},j={class:"settings-card"},q=["aria-label"],G=["aria-pressed","onClick"],H={class:"settings-card"},J=["aria-label"],K={class:"settings-card"},M=w({__name:"AppearanceSettings",setup(O){const s=N(),n=S(),p=[{value:"light",icon:"i-lucide-sun"},{value:"dark",icon:"i-lucide-moon"},{value:"system",icon:"i-lucide-monitor"}],g=T(()=>[{label:s("System default","跟随系统"),value:"__system__"},{label:"English",value:"en"},{label:"简体中文",value:"zh-CN"}]);function h(r){const l=r==="__system__"?"":r;(l===""||l==="en"||l==="zh-CN")&&n.selectLanguage(l)}return(r,l)=>{const f=z,v=I,b=U,k=L,y=x;return c(),u("article",E,[t("header",null,[t("h2",D,o(e(s)("Appearance","外观")),1),t("p",null,o(e(s)("Changes apply immediately and are saved in this browser, independently of the CLI.","更改立即生效并保存在此浏览器中,与 CLI 设置相互独立。")),1)]),e(n).error?(c(),A(f,{key:0,class:"settings-banner",color:"error",variant:"subtle",description:e(n).error,role:"alert"},null,8,["description"])):B("",!0),t("section",j,[t("h3",null,o(e(s)("Theme","主题")),1),t("div",{class:"theme-options",role:"group","aria-label":e(s)("Theme","主题")},[(c(),u(_,null,d(p,a=>t("button",{key:a.value,class:V(["theme-option",{"is-selected":e(n).theme===a.value}]),type:"button","aria-pressed":e(n).theme===a.value,onClick:C=>e(n).theme=a.value},[i(v,{name:a.icon,class:"size-[22px]","aria-hidden":"true"},null,8,["name"]),t("span",null,o(a.value==="light"?e(s)("Light","浅色"):a.value==="dark"?e(s)("Dark","深色"):e(s)("System","跟随系统")),1)],10,G)),64))],8,q)]),t("section",H,[t("h3",null,o(e(s)("UI font size","界面字号")),1),t("div",{class:"settings-actions",role:"group","aria-label":e(s)("UI font size","界面字号")},[(c(),u(_,null,d([12,13,14,15,16,18],a=>i(b,{key:a,size:"md",color:e(n).fontSize===a?"primary":"neutral",variant:e(n).fontSize===a?"solid":"outline","aria-pressed":e(n).fontSize===a,onClick:C=>e(n).fontSize=a},{default:m(()=>[F(o(a),1)]),_:2},1032,["color","variant","aria-pressed","onClick"])),64))],8,J),t("p",null,o(e(s)("Scales the entire interface, including controls and chat text.","缩放整个界面,包括控件和聊天文本。")),1)]),t("section",K,[t("h3",null,o(e(s)("Language","语言")),1),i(y,{label:e(s)("Interface language","界面语言")},{default:m(()=>[i(k,{"model-value":e(n).language||"__system__",items:g.value,size:"md",class:"w-full","onUpdate:modelValue":h},null,8,["model-value","items"])]),_:1},8,["label"])])])}}}),W=$(M,[["__scopeId","data-v-67e5d97b"]]);export{W as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.theme-options[data-v-67e5d97b]{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-3)}.theme-option[data-v-67e5d97b]{display:flex;min-width:0;flex-direction:column;align-items:center;gap:var(--space-3);padding:var(--space-5) var(--space-2);border:1px solid var(--border);border-radius:var(--radius-lg);background:transparent;color:var(--foreground);font-size:var(--text-md);cursor:pointer}.theme-option[data-v-67e5d97b]:hover{background:var(--hover)}.theme-option.is-selected[data-v-67e5d97b]{border-color:var(--primary);background:var(--primary-soft);color:var(--primary)}.theme-option[data-v-67e5d97b]:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
|