@oneworks/client 0.1.0-alpha.0 → 0.1.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/ActionSearchToolbar-8q-bk3mu.js +1 -0
- package/dist/assets/ActionSearchToolbar-CMBns0Zm.css +1 -0
- package/dist/assets/AgentRoomRoute-DfSI_dFH.js +1 -0
- package/dist/assets/AgentRoomSessionRoute-DH9PdjZm.js +3 -0
- package/dist/assets/ArchiveRoute-E9-htB4H.js +1 -0
- package/dist/assets/{AuthenticatedApp-BTs4l2pB.js → AuthenticatedApp-CgBrvMuc.js} +236 -224
- package/dist/assets/AuthenticatedApp-scWyvbOf.css +1 -0
- package/dist/assets/AutomationRoute-Bw2xw5bx.js +1 -0
- package/dist/assets/BenchmarkRoute-3VS17jHr.js +21 -0
- package/dist/assets/ChatRoute-CBQ3j4Je.js +2 -0
- package/dist/assets/Collapse-B-oCiEx4.js +10 -0
- package/dist/assets/{ComposerLanding-Cl6zfbOm.js → ComposerLanding-SZn_zRGX.js} +4 -4
- package/dist/assets/ConfigEditors-BuDavOAj.css +1 -0
- package/dist/assets/ConfigRoute-Dv-7BRGG.js +28 -0
- package/dist/assets/ConfigRoute-TW2qRRNP.css +1 -0
- package/dist/assets/InteractionStructureRoute-FDl9jRvT.js +1 -0
- package/dist/assets/KnowledgeRoute-C5em_VSL.js +1 -0
- package/dist/assets/LauncherApp-olYmK_zO.js +2 -0
- package/dist/assets/LauncherRoute-NsK8KCzb.css +1 -0
- package/dist/assets/LauncherRoute-Qt8dQkIk.js +2 -0
- package/dist/assets/MobileAwareSelect-BmK6WApn.js +37 -0
- package/dist/assets/MobileAwareSelect-BySpAJpa.css +1 -0
- package/dist/assets/{ModuleManagementRoute-DQACRan1.js → ModuleManagementRoute-B1I_8JKc.js} +3 -3
- package/dist/assets/NotFoundRoute-Bj6_YY3I.js +1 -0
- package/dist/assets/PluginStoreRoute-B847PAZ5.js +1 -0
- package/dist/assets/PluginStoreRoute-Cfalv335.css +1 -0
- package/dist/assets/RouteContainerPanelTabs-BnIptVwq.js +11 -0
- package/dist/assets/RouteContainerPanelTabs-DAjUmk7i.css +1 -0
- package/dist/assets/SchemaObjectEditor-B9fPfDyT.js +1 -0
- package/dist/assets/StandaloneMobileDebugRoute-BR4w_LeM.js +1 -0
- package/dist/assets/StandaloneMobileDebugRoute-DuOLjUb9.css +1 -0
- package/dist/assets/WorkspaceApp-BNmtIdn4.js +9 -0
- package/dist/assets/agent-room-session-paths-CYMSFD9m.css +32 -0
- package/dist/assets/agent-room-session-paths-Dca8S6NN.js +537 -0
- package/dist/assets/{arc-BXsvCKst.js → arc-JBUpUV6M.js} +1 -1
- package/dist/assets/azure-C6wcxVWu.ico +0 -0
- package/dist/assets/{blockDiagram-c4efeb88-hc-xNCrG.js → blockDiagram-c4efeb88-DKhNwgEQ.js} +2 -2
- package/dist/assets/{c4Diagram-c83219d4-DVHTOuVr.js → c4Diagram-c83219d4-CWODEGms.js} +2 -2
- package/dist/assets/channel-BsuHYNQO.js +1 -0
- package/dist/assets/classDiagram-beda092f-DlghsOqF.js +2 -0
- package/dist/assets/classDiagram-v2-2358418a-CrSR8gWz.js +2 -0
- package/dist/assets/client-build-info-bcijLdfD.js +1 -0
- package/dist/assets/clone-BKV6leIk.js +1 -0
- package/dist/assets/{createText-1719965b-x3Mhf0Jh.js → createText-1719965b-CLlPr73k.js} +1 -1
- package/dist/assets/cssMode-Bt_74RVV.js +1 -0
- package/dist/assets/customParseFormat-DwjB960X.js +1 -0
- package/dist/assets/dockPanelConstants-4XXOUD0A.css +1 -0
- package/dist/assets/dockPanelConstants-BWuu_DJp.js +8 -0
- package/dist/assets/{edges-96097737-COVuSxRY.js → edges-96097737-L_gy1fky.js} +1 -1
- package/dist/assets/{erDiagram-0228fc6a-WcgqCWce.js → erDiagram-0228fc6a-X1QMD6me.js} +2 -2
- package/dist/assets/{flowDb-c6c81e3f-nYly38YN.js → flowDb-c6c81e3f-DNdWK0Po.js} +1 -1
- package/dist/assets/{flowDiagram-50d868cf-DLYALlBY.js → flowDiagram-50d868cf-C2khStgw.js} +2 -2
- package/dist/assets/flowDiagram-v2-4f6560a1-DW5hyUju.js +1 -0
- package/dist/assets/{flowchart-elk-definition-6af322e1-Da8rP8k4.js → flowchart-elk-definition-6af322e1-C89sxd2D.js} +2 -2
- package/dist/assets/{freemarker2-OWISI6Bb.js → freemarker2-DZ1XIuHj.js} +2 -2
- package/dist/assets/ganttDiagram-a2739b55-Ba3rPNKd.js +257 -0
- package/dist/assets/gemini-B9inYaVW.png +0 -0
- package/dist/assets/{gitGraphDiagram-82fe8481-DCk8Jny9.js → gitGraphDiagram-82fe8481-DTEFHHtN.js} +2 -2
- package/dist/assets/{graph-DvFQr_wY.js → graph-BPujwFoF.js} +1 -1
- package/dist/assets/handlebars-lOgsnnQw.js +1 -0
- package/dist/assets/html-DLHadu9L.js +1 -0
- package/dist/assets/htmlMode-VeiQ-IsQ.js +1 -0
- package/dist/assets/{index-5325376f-CRF6GGjL.js → index-5325376f-Cx2RM6pk.js} +1 -1
- package/dist/assets/{index-BnZLa3J3.js → index-CBFCjoHv.js} +2 -2
- package/dist/assets/index-CJEVYkL9.js +1 -0
- package/dist/assets/index-CWmEuVWV.js +36 -0
- package/dist/assets/index-Cp4GfHnF.js +727 -0
- package/dist/assets/index-D4eelxQF.js +13 -0
- package/dist/assets/index-DBUG8CzV.js +3 -0
- package/dist/assets/index-jfuA2A4w.css +1 -0
- package/dist/assets/index-sFqkb8xv.js +13 -0
- package/dist/assets/{infoDiagram-8eee0895-dVa2Kh9_.js → infoDiagram-8eee0895-Bj9hWnDg.js} +2 -2
- package/dist/assets/interaction-panel-mobile-debug-pages-1Gdivksn.js +113 -0
- package/dist/assets/interaction-panel-mobile-debug-pages-8AAd4Csf.css +1 -0
- package/dist/assets/javascript-CXJw-bvU.js +1 -0
- package/dist/assets/{journeyDiagram-c64418c1-BJCT1TJ7.js → journeyDiagram-c64418c1-BXAycrrn.js} +2 -2
- package/dist/assets/{jsonMode-RsjNGxUQ.js → jsonMode-DmUNJfpX.js} +4 -4
- package/dist/assets/{layout-BMZRkCUf.js → layout-Bp8GVMnq.js} +1 -1
- package/dist/assets/{line-C99msl9T.js → line-olpPNgnh.js} +1 -1
- package/dist/assets/{linear-CJHB38BG.js → linear-flh_7ux_.js} +1 -1
- package/dist/assets/liquid-BiVpRgBP.js +1 -0
- package/dist/assets/{lspLanguageFeatures-D8zjArb3.js → lspLanguageFeatures-olWF83eX.js} +1 -1
- package/dist/assets/mdx-B5dr7YB-.js +1 -0
- package/dist/assets/{mermaid.core-DWzpZH_g.js → mermaid.core-NVIiXnRA.js} +4 -4
- package/dist/assets/micu-dUcmmgZZ.png +0 -0
- package/dist/assets/{mindmap-definition-8da855dc-DulNL_Ks.js → mindmap-definition-8da855dc-BOCh8K8K.js} +2 -2
- package/dist/assets/minimax-B5WRVrUt.png +0 -0
- package/dist/assets/openai-ABb0YGGa.svg +71 -0
- package/dist/assets/openrouter-CsJ_bD5Q.ico +0 -0
- package/dist/assets/{pieDiagram-a8764435-CHfubQBm.js → pieDiagram-a8764435-CCitKBQK.js} +3 -3
- package/dist/assets/project-file-tree-icons-DXkdVC0r.css +1 -0
- package/dist/assets/project-file-tree-icons-DqqhgvoI.js +2 -0
- package/dist/assets/python-BkEOPIle.js +1 -0
- package/dist/assets/{quadrantDiagram-1e28029f-CFHca9nu.js → quadrantDiagram-1e28029f-C_FvcHzZ.js} +2 -2
- package/dist/assets/qwen-Cla2cGrM.svg +107 -0
- package/dist/assets/razor-BCMQgdis.js +1 -0
- package/dist/assets/requesty-DAzbbw8F.ico +0 -0
- package/dist/assets/{requirementDiagram-08caed73-ClrFG92W.js → requirementDiagram-08caed73-B001ugYd.js} +2 -2
- package/dist/assets/route-plugin-chrome-B-Goj3vG.js +1 -0
- package/dist/assets/sankeyDiagram-a04cb91d-BnkC9YW5.js +8 -0
- package/dist/assets/{sequenceDiagram-c5b8d532-ZoeuLa-n.js → sequenceDiagram-c5b8d532-BGiFCs5z.js} +2 -2
- package/dist/assets/shortcutUtils-20iqPDwh.js +27 -0
- package/dist/assets/stateDiagram-1ecb1508-Uk4XxTkP.js +1 -0
- package/dist/assets/stateDiagram-v2-c2b004d7-Db6Ouywh.js +1 -0
- package/dist/assets/{styles-b4e223ce-0VFG2Z9W.js → styles-b4e223ce-CfG45yIm.js} +1 -1
- package/dist/assets/{styles-ca3715f6-DaJIsB-N.js → styles-ca3715f6-BGGbMvKc.js} +1 -1
- package/dist/assets/{styles-d45a18b0-DT8DH24o.js → styles-d45a18b0-mHteeqS2.js} +1 -1
- package/dist/assets/{svgDrawCommon-b86b1483-DxTZXiLW.js → svgDrawCommon-b86b1483-BAMR2PsF.js} +1 -1
- package/dist/assets/{timeline-definition-faaaa080-lu3ppiNq.js → timeline-definition-faaaa080-DLBoPuJD.js} +2 -2
- package/dist/assets/{tsMode-B6pOKC1l.js → tsMode-BTzZ8Zos.js} +2 -2
- package/dist/assets/typescript-_rLmAd51.js +1 -0
- package/dist/assets/use-app-preferences-gyulV-hA.js +1 -0
- package/dist/assets/use-chat-session-actions-DDZ5KCua.js +2 -0
- package/dist/assets/{vendor-react-BNJ5yonH.js → vendor-react-CnooHTJc.js} +1 -1
- package/dist/assets/vendor-state-BYwEPTaO.js +1 -0
- package/dist/assets/worker-BZxxbL_z.js +1 -0
- package/dist/assets/workspace-file-openers-BwZ5cSeq.js +1 -0
- package/dist/assets/workspace-file-openers-fM4AQXug.css +1 -0
- package/dist/assets/xml-BAU8TJ-c.js +1 -0
- package/dist/assets/{xychartDiagram-f5964ef8-DvmrNK0s.js → xychartDiagram-f5964ef8-CNfcxTsi.js} +2 -2
- package/dist/assets/yaml-_cphTIn0.js +1 -0
- package/dist/assets/yunwu-C0h7koCA.png +0 -0
- package/dist/assets/zhipu-CWmkm5qz.png +0 -0
- package/dist/index.html +4 -4
- package/dist/sw.js +5 -3
- package/package.json +20 -15
- package/dist/assets/AgentRoomRoute-rNmmPMvh.js +0 -1
- package/dist/assets/AgentRoomSessionRoute-Dg8yQRY_.js +0 -1
- package/dist/assets/ArchiveRoute-BWE_JVjl.js +0 -1
- package/dist/assets/AuthenticatedApp-Bop-GglJ.css +0 -1
- package/dist/assets/AutomationRoute-CoJ8YGK2.js +0 -1
- package/dist/assets/BenchmarkRoute-BcRZ1AFC.js +0 -21
- package/dist/assets/ChatRoute-DBN4uo7j.js +0 -1
- package/dist/assets/Collapse-DDrFhfKr.js +0 -8
- package/dist/assets/ConfigEditors-jcXiTWRg.css +0 -1
- package/dist/assets/ConfigRoute-D5zxs-kv.css +0 -1
- package/dist/assets/ConfigRoute-z5Dj1ihn.js +0 -2
- package/dist/assets/ConfigSectionPanel-DHIwutHm.js +0 -13
- package/dist/assets/DockPanel-DuxVeJzf.js +0 -11
- package/dist/assets/DockPanel-HEMeJ1MR.css +0 -1
- package/dist/assets/InteractionStructureRoute-B8yJdycA.js +0 -1
- package/dist/assets/KnowledgeRoute-BPYnBocT.js +0 -1
- package/dist/assets/LauncherApp-BqKOigOK.js +0 -2
- package/dist/assets/LauncherRoute-C1g-gjbs.js +0 -2
- package/dist/assets/LauncherRoute-DtjtKtXc.css +0 -1
- package/dist/assets/PluginStoreRoute-Bny2x-oC.css +0 -1
- package/dist/assets/PluginStoreRoute-CGIBez_4.js +0 -3
- package/dist/assets/SchemaObjectEditor-BdzgIkYh.js +0 -1
- package/dist/assets/WorkspaceApp-DGL3CHCp.js +0 -46
- package/dist/assets/agent-room-session-paths-Bl0JdX79.js +0 -153
- package/dist/assets/agent-room-session-paths-CCE5rS0K.css +0 -32
- package/dist/assets/channel-X7k9544o.js +0 -1
- package/dist/assets/classDiagram-beda092f-C--_J0De.js +0 -2
- package/dist/assets/classDiagram-v2-2358418a-VLoB_o-4.js +0 -2
- package/dist/assets/client-build-info-CUyezPn4.js +0 -37
- package/dist/assets/client-build-info-CgBKDSmG.css +0 -1
- package/dist/assets/clone-BsR4Dtrm.js +0 -1
- package/dist/assets/copy-OJ_6Pvs2.js +0 -28
- package/dist/assets/cssMode-Dg95dCSS.js +0 -1
- package/dist/assets/flowDiagram-v2-4f6560a1-DZXqc8d3.js +0 -1
- package/dist/assets/ganttDiagram-a2739b55-SFoaaNUl.js +0 -257
- package/dist/assets/handlebars-DvhbIeVz.js +0 -1
- package/dist/assets/html-B6ANaoGC.js +0 -1
- package/dist/assets/htmlMode-CA_KA1J8.js +0 -1
- package/dist/assets/index-BfLbHhFR.js +0 -13
- package/dist/assets/index-C9FQLbWu.js +0 -1
- package/dist/assets/index-DA1kZA8X.css +0 -1
- package/dist/assets/index-Dn-Bbs_z.js +0 -705
- package/dist/assets/javascript-qaeO24NX.js +0 -1
- package/dist/assets/liquid-yYJuHMAu.js +0 -1
- package/dist/assets/mdx-CrAkCLhE.js +0 -1
- package/dist/assets/python-h0Aqhxqi.js +0 -1
- package/dist/assets/razor-DalkOWO-.js +0 -1
- package/dist/assets/sankeyDiagram-a04cb91d-C9DgEVjM.js +0 -8
- package/dist/assets/stateDiagram-1ecb1508-DDRxhJDf.js +0 -1
- package/dist/assets/stateDiagram-v2-c2b004d7-CIob4OCF.js +0 -1
- package/dist/assets/typescript-Bn-lx_lA.js +0 -1
- package/dist/assets/use-app-preferences-B4K999VJ.js +0 -1
- package/dist/assets/use-chat-session-actions-5N-NQ9my.js +0 -2
- package/dist/assets/use-project-theme-preview-sources-5CPt1X2N.js +0 -1
- package/dist/assets/vendor-state-CBVXPiKY.js +0 -1
- package/dist/assets/workspace-file-openers-DAuX65xw.js +0 -1
- package/dist/assets/workspace-file-openers-erSFu-UO.css +0 -1
- package/dist/assets/xml-C1SO5DSd.js +0 -1
- package/dist/assets/yaml-DihjE03_.js +0 -1
package/dist/assets/{quadrantDiagram-1e28029f-CFHca9nu.js → quadrantDiagram-1e28029f-C_FvcHzZ.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{s as vt,a as Lt,v as bt,x as Ct,b as zt,c as Et,g as yt,l as lt,d as gt,e as Dt,z as It,aL as D,aY as Bt,i as wt}from"./mermaid.core-
|
|
1
|
+
import{s as vt,a as Lt,v as bt,x as Ct,b as zt,c as Et,g as yt,l as lt,d as gt,e as Dt,z as It,aL as D,aY as Bt,i as wt}from"./mermaid.core-NVIiXnRA.js";import"./AuthenticatedApp-CgBrvMuc.js";import{l as _t}from"./linear-flh_7ux_.js";import"./index-Cp4GfHnF.js";import"./vendor-react-CnooHTJc.js";import"./vendor-state-BYwEPTaO.js";import"./MobileAwareSelect-BmK6WApn.js";import"./use-app-preferences-gyulV-hA.js";import"./route-plugin-chrome-B-Goj3vG.js";import"./shortcutUtils-20iqPDwh.js";import"./project-file-tree-icons-DqqhgvoI.js";import"./WorkspaceApp-BNmtIdn4.js";import"./index-CWmEuVWV.js";import"./client-build-info-bcijLdfD.js";import"./init-Gi6I4Gst.js";var pt=function(){var e=function(K,n,r,o){for(r=r||{},o=K.length;o--;r[K[o]]=n);return r},s=[1,3],h=[1,4],x=[1,5],f=[1,6],d=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],y=[2,7],p=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],M=[1,22],X=[1,23],C=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],Q=[1,31],T=[1,32],_=[1,33],m=[1,34],t=[1,35],A=[1,36],S=[1,37],k=[1,38],F=[1,39],P=[1,40],v=[1,41],L=[1,42],O=[1,57],Y=[1,58],z=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,o,l,q,a,et){var u=a.length-1;switch(q){case 12:this.$=a[u].trim(),l.setDiagramTitle(this.$);break;case 13:this.$=a[u].trim(),l.setAccTitle(this.$);break;case 14:case 15:this.$=a[u].trim(),l.setAccDescription(this.$);break;case 16:l.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 17:l.addPoint(a[u-3],a[u-1],a[u]);break;case 18:l.setXAxisLeftText(a[u-2]),l.setXAxisRightText(a[u]);break;case 19:a[u-1].text+=" ⟶ ",l.setXAxisLeftText(a[u-1]);break;case 20:l.setXAxisLeftText(a[u]);break;case 21:l.setYAxisBottomText(a[u-2]),l.setYAxisTopText(a[u]);break;case 22:a[u-1].text+=" ⟶ ",l.setYAxisBottomText(a[u-1]);break;case 23:l.setYAxisBottomText(a[u]);break;case 24:l.setQuadrant1Text(a[u]);break;case 25:l.setQuadrant2Text(a[u]);break;case 26:l.setQuadrant3Text(a[u]);break;case 27:l.setQuadrant4Text(a[u]);break;case 31:this.$={text:a[u],type:"text"};break;case 32:this.$={text:a[u-1].text+""+a[u],type:a[u-1].type};break;case 33:this.$={text:a[u],type:"text"};break;case 34:this.$={text:a[u],type:"markdown"};break;case 35:this.$=a[u];break;case 36:this.$=a[u-1]+""+a[u];break}},table:[{3:1,4:2,5:s,6:h,32:x,33:f,34:d},{1:[3]},{3:8,4:2,5:s,6:h,32:x,33:f,34:d},{3:9,4:2,5:s,6:h,32:x,33:f,34:d},e(c,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,y,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(c,[2,5]),{4:43,32:x,33:f,34:d},e(i,y,{10:14,11:15,12:16,21:28,35:29,9:44,5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:49,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:50,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:51,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:52,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:53,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{5:O,22:[1,54],35:56,36:55,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y},e(z,[2,31]),e(z,[2,33]),e(z,[2,34]),e(z,[2,37]),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,42]),e(z,[2,43]),e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:O,26:[1,59],40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,23],{36:55,35:56,5:O,26:[1,60],40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,24],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,25],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,26],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,27],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),{23:[1,61]},e(z,[2,32]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,21],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var o=new Error(n);throw o.hash=r,o}},parse:function(n){var r=this,o=[0],l=[],q=[null],a=[],et=this.table,u="",st=0,qt=0,St=2,Tt=1,kt=a.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Z.yy[dt]=this.yy[dt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ut=E.yylloc;a.push(ut);var Ft=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pt(){var j;return j=l.pop()||E.lex()||Tt,typeof j!="number"&&(j instanceof Array&&(l=j,j=l.pop()),j=r.symbols_[j]||j),j}for(var W,J,H,xt,tt={},rt,$,mt,ot;;){if(J=o[o.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=Pt()),H=et[J]&&et[J][W]),typeof H>"u"||!H.length||!H[0]){var ft="";ot=[];for(rt in et[J])this.terminals_[rt]&&rt>St&&ot.push("'"+this.terminals_[rt]+"'");E.showPosition?ft="Parse error on line "+(st+1)+`:
|
|
2
2
|
`+E.showPosition()+`
|
|
3
3
|
Expecting `+ot.join(", ")+", got '"+(this.terminals_[W]||W)+"'":ft="Parse error on line "+(st+1)+": Unexpected "+(W==Tt?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(ft,{text:E.match,token:this.terminals_[W]||W,line:E.yylineno,loc:ut,expected:ot})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+W);switch(H[0]){case 1:o.push(W),q.push(E.yytext),a.push(E.yylloc),o.push(H[1]),W=null,qt=E.yyleng,u=E.yytext,st=E.yylineno,ut=E.yylloc;break;case 2:if($=this.productions_[H[1]][1],tt.$=q[q.length-$],tt._$={first_line:a[a.length-($||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-($||1)].first_column,last_column:a[a.length-1].last_column},Ft&&(tt._$.range=[a[a.length-($||1)].range[0],a[a.length-1].range[1]]),xt=this.performAction.apply(tt,[u,qt,st,Z.yy,H[1],q,a].concat(kt)),typeof xt<"u")return xt;$&&(o=o.slice(0,-1*$*2),q=q.slice(0,-1*$),a=a.slice(0,-1*$)),o.push(this.productions_[H[1]][0]),q.push(tt.$),a.push(tt._$),mt=et[o[o.length-2]][o[o.length-1]],o.push(mt);break;case 3:return!0}}return!0}},At=function(){var K={EOF:1,parseError:function(r,o){if(this.yy.parser)this.yy.parser.parseError(r,o);else throw new Error(r)},setInput:function(n,r){return this.yy=r||this.yy||{},this._input=n,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},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var r=n.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var r=n.length,o=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var l=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),o.length-1&&(this.yylineno-=o.length-1);var q=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:o?(o.length===l.length?this.yylloc.first_column:0)+l[l.length-o.length].length-o[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),r=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
5
5
|
`+r+"^"},test_match:function(n,r){var o,l,q;if(this.options.backtrack_lexer&&(q={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(q.yylloc.range=this.yylloc.range.slice(0))),l=n[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],o=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var a in q)this[a]=q[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,r,o,l;this._more||(this.yytext="",this.match="");for(var q=this._currentRules(),a=0;a<q.length;a++)if(o=this._input.match(this.rules[q[a]]),o&&(!r||o[0].length>r[0].length)){if(r=o,l=a,this.options.backtrack_lexer){if(n=this.test_match(o,q[a]),n!==!1)return n;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(n=this.test_match(r,q[l]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
6
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,o,l,q){switch(l){case 0:break;case 1:break;case 2:return 32;case 3:break;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 22:this.popState();break;case 23:this.begin("string");break;case 24:this.popState();break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 28:this.popState();break;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:return 46;case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[30],inclusive:!1},point_x:{rules:[29],inclusive:!1},point_start:{rules:[27,28],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[21,22],inclusive:!1},string:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,23,26,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return K}();ht.lexer=At;function ct(){this.yy={}}return ct.prototype=ht,ht.Parser=ct,new ct}();pt.parser=pt;const Rt=pt,R=Bt();class Vt{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var s,h,x,f,d,c,g,i,y,p,B,N,V,I,b,M,X,C;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((s=D.quadrantChart)==null?void 0:s.chartWidth)||500,chartWidth:((h=D.quadrantChart)==null?void 0:h.chartHeight)||500,titlePadding:((x=D.quadrantChart)==null?void 0:x.titlePadding)||10,titleFontSize:((f=D.quadrantChart)==null?void 0:f.titleFontSize)||20,quadrantPadding:((d=D.quadrantChart)==null?void 0:d.quadrantPadding)||5,xAxisLabelPadding:((c=D.quadrantChart)==null?void 0:c.xAxisLabelPadding)||5,yAxisLabelPadding:((g=D.quadrantChart)==null?void 0:g.yAxisLabelPadding)||5,xAxisLabelFontSize:((i=D.quadrantChart)==null?void 0:i.xAxisLabelFontSize)||16,yAxisLabelFontSize:((y=D.quadrantChart)==null?void 0:y.yAxisLabelFontSize)||16,quadrantLabelFontSize:((p=D.quadrantChart)==null?void 0:p.quadrantLabelFontSize)||16,quadrantTextTopPadding:((B=D.quadrantChart)==null?void 0:B.quadrantTextTopPadding)||5,pointTextPadding:((N=D.quadrantChart)==null?void 0:N.pointTextPadding)||5,pointLabelFontSize:((V=D.quadrantChart)==null?void 0:V.pointLabelFontSize)||12,pointRadius:((I=D.quadrantChart)==null?void 0:I.pointRadius)||5,xAxisPosition:((b=D.quadrantChart)==null?void 0:b.xAxisPosition)||"top",yAxisPosition:((M=D.quadrantChart)==null?void 0:M.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((X=D.quadrantChart)==null?void 0:X.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((C=D.quadrantChart)==null?void 0:C.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:R.quadrant1Fill,quadrant2Fill:R.quadrant2Fill,quadrant3Fill:R.quadrant3Fill,quadrant4Fill:R.quadrant4Fill,quadrant1TextFill:R.quadrant1TextFill,quadrant2TextFill:R.quadrant2TextFill,quadrant3TextFill:R.quadrant3TextFill,quadrant4TextFill:R.quadrant4TextFill,quadrantPointFill:R.quadrantPointFill,quadrantPointTextFill:R.quadrantPointTextFill,quadrantXAxisTextFill:R.quadrantXAxisTextFill,quadrantYAxisTextFill:R.quadrantYAxisTextFill,quadrantTitleFill:R.quadrantTitleFill,quadrantInternalBorderStrokeFill:R.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:R.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),lt.info("clear called")}setData(s){this.data={...this.data,...s}}addPoints(s){this.data.points=[...s,...this.data.points]}setConfig(s){lt.trace("setConfig called with: ",s),this.config={...this.config,...s}}setThemeConfig(s){lt.trace("setThemeConfig called with: ",s),this.themeConfig={...this.themeConfig,...s}}calculateSpace(s,h,x,f){const d=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,c={top:s==="top"&&h?d:0,bottom:s==="bottom"&&h?d:0},g=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,i={left:this.config.yAxisPosition==="left"&&x?g:0,right:this.config.yAxisPosition==="right"&&x?g:0},y=this.config.titleFontSize+this.config.titlePadding*2,p={top:f?y:0},B=this.config.quadrantPadding+i.left,N=this.config.quadrantPadding+c.top+p.top,V=this.config.chartWidth-this.config.quadrantPadding*2-i.left-i.right,I=this.config.chartHeight-this.config.quadrantPadding*2-c.top-c.bottom-p.top,b=V/2,M=I/2;return{xAxisSpace:c,yAxisSpace:i,titleSpace:p,quadrantSpace:{quadrantLeft:B,quadrantTop:N,quadrantWidth:V,quadrantHalfWidth:b,quadrantHeight:I,quadrantHalfHeight:M}}}getAxisLabels(s,h,x,f){const{quadrantSpace:d,titleSpace:c}=f,{quadrantHalfHeight:g,quadrantHeight:i,quadrantLeft:y,quadrantHalfWidth:p,quadrantTop:B,quadrantWidth:N}=d,V=!!this.data.xAxisRightText,I=!!this.data.yAxisTopText,b=[];return this.data.xAxisLeftText&&h&&b.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:y+(V?p/2:0),y:s==="top"?this.config.xAxisLabelPadding+c.top:this.config.xAxisLabelPadding+B+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:V?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&h&&b.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:y+p+(V?p/2:0),y:s==="top"?this.config.xAxisLabelPadding+c.top:this.config.xAxisLabelPadding+B+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:V?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&x&&b.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+y+N+this.config.quadrantPadding,y:B+i-(I?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:I?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&x&&b.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+y+N+this.config.quadrantPadding,y:B+g-(I?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:I?"center":"left",horizontalPos:"top",rotation:-90}),b}getQuadrants(s){const{quadrantSpace:h}=s,{quadrantHalfHeight:x,quadrantLeft:f,quadrantHalfWidth:d,quadrantTop:c}=h,g=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f+d,y:c,width:d,height:x,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f,y:c,width:d,height:x,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f,y:c+x,width:d,height:x,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f+d,y:c+x,width:d,height:x,fill:this.themeConfig.quadrant4Fill}];for(const i of g)i.text.x=i.x+i.width/2,this.data.points.length===0?(i.text.y=i.y+i.height/2,i.text.horizontalPos="middle"):(i.text.y=i.y+this.config.quadrantTextTopPadding,i.text.horizontalPos="top");return g}getQuadrantPoints(s){const{quadrantSpace:h}=s,{quadrantHeight:x,quadrantLeft:f,quadrantTop:d,quadrantWidth:c}=h,g=_t().domain([0,1]).range([f,c+f]),i=_t().domain([0,1]).range([x+d,d]);return this.data.points.map(p=>({x:g(p.x),y:i(p.y),fill:this.themeConfig.quadrantPointFill,radius:this.config.pointRadius,text:{text:p.text,fill:this.themeConfig.quadrantPointTextFill,x:g(p.x),y:i(p.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0}}))}getBorders(s){const h=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:x}=s,{quadrantHalfHeight:f,quadrantHeight:d,quadrantLeft:c,quadrantHalfWidth:g,quadrantTop:i,quadrantWidth:y}=x;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c-h,y1:i,x2:c+y+h,y2:i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c+y,y1:i+h,x2:c+y,y2:i+d-h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c-h,y1:i+d,x2:c+y+h,y2:i+d},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c,y1:i+h,x2:c,y2:i+d-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:c+g,y1:i+h,x2:c+g,y2:i+d-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:c+h,y1:i+f,x2:c+y-h,y2:i+f}]}getTitle(s){if(s)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const s=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),h=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),x=this.config.showTitle&&!!this.data.titleText,f=this.data.points.length>0?"bottom":this.config.xAxisPosition,d=this.calculateSpace(f,s,h,x);return{points:this.getQuadrantPoints(d),quadrants:this.getQuadrants(d),axisLabels:this.getAxisLabels(f,s,h,d),borderLines:this.getBorders(d),title:this.getTitle(x)}}}const Wt=yt();function G(e){return wt(e.trim(),Wt)}const w=new Vt;function Nt(e){w.setData({quadrant1Text:G(e.text)})}function Ut(e){w.setData({quadrant2Text:G(e.text)})}function Qt(e){w.setData({quadrant3Text:G(e.text)})}function Ht(e){w.setData({quadrant4Text:G(e.text)})}function Mt(e){w.setData({xAxisLeftText:G(e.text)})}function Xt(e){w.setData({xAxisRightText:G(e.text)})}function Ot(e){w.setData({yAxisTopText:G(e.text)})}function Yt(e){w.setData({yAxisBottomText:G(e.text)})}function $t(e,s,h){w.addPoints([{x:s,y:h,text:G(e.text)}])}function jt(e){w.setConfig({chartWidth:e})}function Gt(e){w.setConfig({chartHeight:e})}function Kt(){const e=yt(),{themeVariables:s,quadrantChart:h}=e;return h&&w.setConfig(h),w.setThemeConfig({quadrant1Fill:s.quadrant1Fill,quadrant2Fill:s.quadrant2Fill,quadrant3Fill:s.quadrant3Fill,quadrant4Fill:s.quadrant4Fill,quadrant1TextFill:s.quadrant1TextFill,quadrant2TextFill:s.quadrant2TextFill,quadrant3TextFill:s.quadrant3TextFill,quadrant4TextFill:s.quadrant4TextFill,quadrantPointFill:s.quadrantPointFill,quadrantPointTextFill:s.quadrantPointTextFill,quadrantXAxisTextFill:s.quadrantXAxisTextFill,quadrantYAxisTextFill:s.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:s.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:s.quadrantInternalBorderStrokeFill,quadrantTitleFill:s.quadrantTitleFill}),w.setData({titleText:bt()}),w.build()}const Zt=function(){w.clear(),It()},Jt={setWidth:jt,setHeight:Gt,setQuadrant1Text:Nt,setQuadrant2Text:Ut,setQuadrant3Text:Qt,setQuadrant4Text:Ht,setXAxisLeftText:Mt,setXAxisRightText:Xt,setYAxisTopText:Ot,setYAxisBottomText:Yt,addPoint:$t,getQuadrantData:Kt,clear:Zt,setAccTitle:Et,getAccTitle:zt,setDiagramTitle:Ct,getDiagramTitle:bt,getAccDescription:Lt,setAccDescription:vt},te=(e,s,h,x)=>{var f,d,c;function g(t){return t==="top"?"hanging":"middle"}function i(t){return t==="left"?"start":"middle"}function y(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}const p=yt();lt.debug(`Rendering quadrant chart
|
|
7
|
-
`+e);const B=p.securityLevel;let N;B==="sandbox"&&(N=gt("#i"+s));const I=(B==="sandbox"?gt(N.nodes()[0].contentDocument.body):gt("body")).select(`[id="${s}"]`),b=I.append("g").attr("class","main"),M=((f=p.quadrantChart)==null?void 0:f.chartWidth)||500,X=((d=p.quadrantChart)==null?void 0:d.chartHeight)||500;Dt(I,X,M,((c=p.quadrantChart)==null?void 0:c.useMaxWidth)||!0),I.attr("viewBox","0 0 "+M+" "+X),x.db.setHeight(X),x.db.setWidth(M);const C=x.db.getQuadrantData(),it=b.append("g").attr("class","quadrants"),at=b.append("g").attr("class","border"),nt=b.append("g").attr("class","data-points"),U=b.append("g").attr("class","labels"),Q=b.append("g").attr("class","title");C.title&&Q.append("text").attr("x",0).attr("y",0).attr("fill",C.title.fill).attr("font-size",C.title.fontSize).attr("dominant-baseline",g(C.title.horizontalPos)).attr("text-anchor",i(C.title.verticalPos)).attr("transform",y(C.title)).text(C.title.text),C.borderLines&&at.selectAll("line").data(C.borderLines).enter().append("line").attr("x1",t=>t.x1).attr("y1",t=>t.y1).attr("x2",t=>t.x2).attr("y2",t=>t.y2).style("stroke",t=>t.strokeFill).style("stroke-width",t=>t.strokeWidth);const T=it.selectAll("g.quadrant").data(C.quadrants).enter().append("g").attr("class","quadrant");T.append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill),T.append("text").attr("x",0).attr("y",0).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>g(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>y(t.text)).text(t=>t.text.text),U.selectAll("g.label").data(C.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(t=>t.text).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>g(t.horizontalPos)).attr("text-anchor",t=>i(t.verticalPos)).attr("transform",t=>y(t));const m=nt.selectAll("g.data-point").data(C.points).enter().append("g").attr("class","data-point");m.append("circle").attr("cx",t=>t.x).attr("cy",t=>t.y).attr("r",t=>t.radius).attr("fill",t=>t.fill),m.append("text").attr("x",0).attr("y",0).text(t=>t.text.text).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>g(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>y(t.text))},ee={draw:te},
|
|
7
|
+
`+e);const B=p.securityLevel;let N;B==="sandbox"&&(N=gt("#i"+s));const I=(B==="sandbox"?gt(N.nodes()[0].contentDocument.body):gt("body")).select(`[id="${s}"]`),b=I.append("g").attr("class","main"),M=((f=p.quadrantChart)==null?void 0:f.chartWidth)||500,X=((d=p.quadrantChart)==null?void 0:d.chartHeight)||500;Dt(I,X,M,((c=p.quadrantChart)==null?void 0:c.useMaxWidth)||!0),I.attr("viewBox","0 0 "+M+" "+X),x.db.setHeight(X),x.db.setWidth(M);const C=x.db.getQuadrantData(),it=b.append("g").attr("class","quadrants"),at=b.append("g").attr("class","border"),nt=b.append("g").attr("class","data-points"),U=b.append("g").attr("class","labels"),Q=b.append("g").attr("class","title");C.title&&Q.append("text").attr("x",0).attr("y",0).attr("fill",C.title.fill).attr("font-size",C.title.fontSize).attr("dominant-baseline",g(C.title.horizontalPos)).attr("text-anchor",i(C.title.verticalPos)).attr("transform",y(C.title)).text(C.title.text),C.borderLines&&at.selectAll("line").data(C.borderLines).enter().append("line").attr("x1",t=>t.x1).attr("y1",t=>t.y1).attr("x2",t=>t.x2).attr("y2",t=>t.y2).style("stroke",t=>t.strokeFill).style("stroke-width",t=>t.strokeWidth);const T=it.selectAll("g.quadrant").data(C.quadrants).enter().append("g").attr("class","quadrant");T.append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill),T.append("text").attr("x",0).attr("y",0).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>g(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>y(t.text)).text(t=>t.text.text),U.selectAll("g.label").data(C.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(t=>t.text).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>g(t.horizontalPos)).attr("text-anchor",t=>i(t.verticalPos)).attr("transform",t=>y(t));const m=nt.selectAll("g.data-point").data(C.points).enter().append("g").attr("class","data-point");m.append("circle").attr("cx",t=>t.x).attr("cy",t=>t.y).attr("r",t=>t.radius).attr("fill",t=>t.fill),m.append("text").attr("x",0).attr("y",0).text(t=>t.text.text).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>g(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>y(t.text))},ee={draw:te},ye={parser:Rt,db:Jt,renderer:ee,styles:()=>""};export{ye as diagram};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
3
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
4
|
+
fill="none"
|
|
5
|
+
version="1.1"
|
|
6
|
+
width="24"
|
|
7
|
+
height="24"
|
|
8
|
+
viewBox="0 0 24 24"
|
|
9
|
+
>
|
|
10
|
+
<defs><clipPath id="master_svg0_46_141934"><rect
|
|
11
|
+
x="0"
|
|
12
|
+
y="0"
|
|
13
|
+
width="24"
|
|
14
|
+
height="24"
|
|
15
|
+
rx="12"
|
|
16
|
+
/></clipPath><mask
|
|
17
|
+
id="master_svg1_46_141943/1_4797"
|
|
18
|
+
style="mask-type: alpha"
|
|
19
|
+
maskUnits="objectBoundingBox"
|
|
20
|
+
><g><path
|
|
21
|
+
d="M20.148106640625,15.699743505859376L20.148106640625,8.298453505859374C20.148106640625,7.666753505859375,19.812806640625,7.085173505859375,19.268806640625,6.768433505859376L12.880136640625,3.0695565058593752C12.336156640625,2.754605905859375,11.663756640625,2.754605905859375,11.119776640625,3.0695565058593752L4.731096640625,6.770223505859375C4.187113640625,7.085173505859375,3.851806640625,7.668543505859375,3.851806640625,8.298453505859374L3.851806640625,15.699743505859376C3.851806640625,16.329643505859373,4.187113640625,16.913043505859378,4.731096640625,17.229843505859375L11.119776640625,20.930443505859376C11.663756640625,21.245443505859374,12.336156640625,21.245443505859374,12.880136640625,20.930443505859376L19.268806640625,17.229843505859375C19.812806640625,16.914843505859373,20.148106640625,16.331443505859376,20.148106640625,15.699743505859376Z"
|
|
22
|
+
fill="#FFFFFF"
|
|
23
|
+
fill-opacity="1"
|
|
24
|
+
/></g></mask><mask
|
|
25
|
+
id="master_svg2_46_141943/1_4795"
|
|
26
|
+
style="mask-type: alpha"
|
|
27
|
+
maskUnits="objectBoundingBox"
|
|
28
|
+
><g><path
|
|
29
|
+
d="M20.148106640625,15.699743505859376L20.148106640625,8.298453505859374C20.148106640625,7.666753505859375,19.812806640625,7.085173505859375,19.268806640625,6.768433505859376L12.880136640625,3.0695565058593752C12.336156640625,2.754605905859375,11.663756640625,2.754605905859375,11.119776640625,3.0695565058593752L4.731096640625,6.770223505859375C4.187113640625,7.085173505859375,3.851806640625,7.668543505859375,3.851806640625,8.298453505859374L3.851806640625,15.699743505859376C3.851806640625,16.329643505859373,4.187113640625,16.913043505859378,4.731096640625,17.229843505859375L11.119776640625,20.930443505859376C11.663756640625,21.245443505859374,12.336156640625,21.245443505859374,12.880136640625,20.930443505859376L19.268806640625,17.229843505859375C19.812806640625,16.914843505859373,20.148106640625,16.331443505859376,20.148106640625,15.699743505859376Z"
|
|
30
|
+
fill="#FFFFFF"
|
|
31
|
+
fill-opacity="1"
|
|
32
|
+
/></g></mask><mask
|
|
33
|
+
id="master_svg3_46_141943/1_4815"
|
|
34
|
+
style="mask-type: alpha"
|
|
35
|
+
maskUnits="objectBoundingBox"
|
|
36
|
+
><g><path
|
|
37
|
+
d="M20.148106640625,15.699743505859376L20.148106640625,8.298453505859374C20.148106640625,7.666753505859375,19.812806640625,7.085173505859375,19.268806640625,6.768433505859376L12.880136640625,3.0695565058593752C12.336156640625,2.754605905859375,11.663756640625,2.754605905859375,11.119776640625,3.0695565058593752L4.731096640625,6.770223505859375C4.187113640625,7.085173505859375,3.851806640625,7.668543505859375,3.851806640625,8.298453505859374L3.851806640625,15.699743505859376C3.851806640625,16.329643505859373,4.187113640625,16.913043505859378,4.731096640625,17.229843505859375L11.119776640625,20.930443505859376C11.663756640625,21.245443505859374,12.336156640625,21.245443505859374,12.880136640625,20.930443505859376L19.268806640625,17.229843505859375C19.812806640625,16.914843505859373,20.148106640625,16.331443505859376,20.148106640625,15.699743505859376Z"
|
|
38
|
+
fill="#FFFFFF"
|
|
39
|
+
fill-opacity="1"
|
|
40
|
+
/></g></mask><mask
|
|
41
|
+
id="master_svg4_46_141943/1_4787"
|
|
42
|
+
style="mask-type: alpha"
|
|
43
|
+
maskUnits="objectBoundingBox"
|
|
44
|
+
><g><path
|
|
45
|
+
d="M20.148106640625,15.699743505859376L20.148106640625,8.298453505859374C20.148106640625,7.666753505859375,19.812806640625,7.085173505859375,19.268806640625,6.768433505859376L12.880136640625,3.0695565058593752C12.336156640625,2.754605905859375,11.663756640625,2.754605905859375,11.119776640625,3.0695565058593752L4.731096640625,6.770223505859375C4.187113640625,7.085173505859375,3.851806640625,7.668543505859375,3.851806640625,8.298453505859374L3.851806640625,15.699743505859376C3.851806640625,16.329643505859373,4.187113640625,16.913043505859378,4.731096640625,17.229843505859375L11.119776640625,20.930443505859376C11.663756640625,21.245443505859374,12.336156640625,21.245443505859374,12.880136640625,20.930443505859376L19.268806640625,17.229843505859375C19.812806640625,16.914843505859373,20.148106640625,16.331443505859376,20.148106640625,15.699743505859376Z"
|
|
46
|
+
fill="#FFFFFF"
|
|
47
|
+
fill-opacity="1"
|
|
48
|
+
/></g></mask><mask
|
|
49
|
+
id="master_svg5_46_141943/1_4802"
|
|
50
|
+
style="mask-type: alpha"
|
|
51
|
+
maskUnits="objectBoundingBox"
|
|
52
|
+
><g><path
|
|
53
|
+
d="M20.148106640625,15.699743505859376L20.148106640625,8.298453505859374C20.148106640625,7.666753505859375,19.812806640625,7.085173505859375,19.268806640625,6.768433505859376L12.880136640625,3.0695565058593752C12.336156640625,2.754605905859375,11.663756640625,2.754605905859375,11.119776640625,3.0695565058593752L4.731096640625,6.770223505859375C4.187113640625,7.085173505859375,3.851806640625,7.668543505859375,3.851806640625,8.298453505859374L3.851806640625,15.699743505859376C3.851806640625,16.329643505859373,4.187113640625,16.913043505859378,4.731096640625,17.229843505859375L11.119776640625,20.930443505859376C11.663756640625,21.245443505859374,12.336156640625,21.245443505859374,12.880136640625,20.930443505859376L19.268806640625,17.229843505859375C19.812806640625,16.914843505859373,20.148106640625,16.331443505859376,20.148106640625,15.699743505859376Z"
|
|
54
|
+
fill="#FFFFFF"
|
|
55
|
+
fill-opacity="1"
|
|
56
|
+
/></g></mask><mask
|
|
57
|
+
id="master_svg6_46_141943/1_4789"
|
|
58
|
+
style="mask-type: alpha"
|
|
59
|
+
maskUnits="objectBoundingBox"
|
|
60
|
+
><g><path
|
|
61
|
+
d="M20.148106640625,15.699743505859376L20.148106640625,8.298453505859374C20.148106640625,7.666753505859375,19.812806640625,7.085173505859375,19.268806640625,6.768433505859376L12.880136640625,3.0695565058593752C12.336156640625,2.754605905859375,11.663756640625,2.754605905859375,11.119776640625,3.0695565058593752L4.731096640625,6.770223505859375C4.187113640625,7.085173505859375,3.851806640625,7.668543505859375,3.851806640625,8.298453505859374L3.851806640625,15.699743505859376C3.851806640625,16.329643505859373,4.187113640625,16.913043505859378,4.731096640625,17.229843505859375L11.119776640625,20.930443505859376C11.663756640625,21.245443505859374,12.336156640625,21.245443505859374,12.880136640625,20.930443505859376L19.268806640625,17.229843505859375C19.812806640625,16.914843505859373,20.148106640625,16.331443505859376,20.148106640625,15.699743505859376Z"
|
|
62
|
+
fill="#FFFFFF"
|
|
63
|
+
fill-opacity="1"
|
|
64
|
+
/></g></mask><mask
|
|
65
|
+
id="master_svg7_46_141943/1_4807"
|
|
66
|
+
style="mask-type: alpha"
|
|
67
|
+
maskUnits="objectBoundingBox"
|
|
68
|
+
><g><path
|
|
69
|
+
d="M20.148106640625,15.699743505859376L20.148106640625,8.298453505859374C20.148106640625,7.666753505859375,19.812806640625,7.085173505859375,19.268806640625,6.768433505859376L12.880136640625,3.0695565058593752C12.336156640625,2.754605905859375,11.663756640625,2.754605905859375,11.119776640625,3.0695565058593752L4.731096640625,6.770223505859375C4.187113640625,7.085173505859375,3.851806640625,7.668543505859375,3.851806640625,8.298453505859374L3.851806640625,15.699743505859376C3.851806640625,16.329643505859373,4.187113640625,16.913043505859378,4.731096640625,17.229843505859375L11.119776640625,20.930443505859376C11.663756640625,21.245443505859374,12.336156640625,21.245443505859374,12.880136640625,20.930443505859376L19.268806640625,17.229843505859375C19.812806640625,16.914843505859373,20.148106640625,16.331443505859376,20.148106640625,15.699743505859376Z"
|
|
70
|
+
fill="#FFFFFF"
|
|
71
|
+
fill-opacity="1"
|
|
72
|
+
/></g></mask></defs><g clip-path="url(#master_svg0_46_141934)"><g><g><g
|
|
73
|
+
mask="url(#master_svg1_46_141943/1_4797)"
|
|
74
|
+
><g><path
|
|
75
|
+
d="M16.07420091796875,4.920093463359375L19.40944091796875,6.850954443359375C19.73764091796875,7.0406444433593744,19.73764091796875,7.516644443359375,19.40944091796875,7.708124443359376L12.00057091796875,11.999324443359374L7.92694091796875,9.638984443359375L16.07420091796875,4.918304443359375L16.07420091796875,4.920093463359375Z"
|
|
76
|
+
fill="#AB9BFF"
|
|
77
|
+
fill-opacity="1"
|
|
78
|
+
/></g></g><g mask="url(#master_svg2_46_141943/1_4795)"><g><path
|
|
79
|
+
d="M11.999066640625,11.999176025390625L16.074506640625,14.359516025390626L7.925436640625,19.078396025390624L3.851806640625,16.719856025390627L11.999066640625,11.999176025390625Z"
|
|
80
|
+
fill="#00EBD2"
|
|
81
|
+
fill-opacity="1"
|
|
82
|
+
/></g></g><g mask="url(#master_svg3_46_141943/1_4815)"><g><path
|
|
83
|
+
d="M20.14964091796875,16.719562412109376L16.07598091796875,14.359222412109375L7.92694091796875,19.078102412109374L12.00057091796875,21.438442412109374L20.14964091796875,16.719562412109376Z"
|
|
84
|
+
fill="#00CFCA"
|
|
85
|
+
fill-opacity="1"
|
|
86
|
+
/></g></g><g mask="url(#master_svg4_46_141943/1_4787)"><g><path
|
|
87
|
+
d="M3.851806640625,7.280586005859375L7.925436640625,9.639136005859374L16.074506640625,4.920246005859375L11.999066640625,2.559906005859375"
|
|
88
|
+
fill="#7347FF"
|
|
89
|
+
fill-opacity="1"
|
|
90
|
+
/></g></g><g mask="url(#master_svg5_46_141943/1_4802)"><g><path
|
|
91
|
+
d="M7.92694091796875,9.639007568359375L7.92694091796875,14.359687568359375L12.00057091796875,11.999347568359376L7.92694091796875,9.639007568359375Z"
|
|
92
|
+
fill="#1C54E4"
|
|
93
|
+
fill-opacity="1"
|
|
94
|
+
/></g></g><g mask="url(#master_svg6_46_141943/1_4789)"><g><path
|
|
95
|
+
d="M20.13684357421875,12.843723068359376L20.14754357421875,16.719765068359376L16.07391357421875,14.359425068359375L19.39666357421875,12.417824368359375C19.72484357421875,12.226349068359376,20.13684357421875,12.462562068359375,20.13684357421875,12.843723068359376Z"
|
|
96
|
+
fill="#00EBD2"
|
|
97
|
+
fill-opacity="1"
|
|
98
|
+
/></g></g><g mask="url(#master_svg7_46_141943/1_4807)"><g><path
|
|
99
|
+
d="M3.851806640625,7.280303955078125L7.925436640625,9.638853955078126L7.925436640625,14.359533955078124L3.851806640625,16.719863955078125L3.851806640625,7.280303955078125Z"
|
|
100
|
+
fill="#0423DB"
|
|
101
|
+
fill-opacity="1"
|
|
102
|
+
/></g></g></g></g><g><path
|
|
103
|
+
d="M12,1.7053e-15L22.3923,6L22.3923,18L12,24L1.6077,18L1.60769,6L12,1.7053e-15Z"
|
|
104
|
+
fill="#FFFFFF"
|
|
105
|
+
fill-opacity="0.10000000149011612"
|
|
106
|
+
/></g></g>
|
|
107
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{cj as t}from"./AuthenticatedApp-CgBrvMuc.js";import"./vendor-react-CnooHTJc.js";import"./vendor-state-BYwEPTaO.js";import"./index-Cp4GfHnF.js";import"./MobileAwareSelect-BmK6WApn.js";import"./use-app-preferences-gyulV-hA.js";import"./route-plugin-chrome-B-Goj3vG.js";import"./shortcutUtils-20iqPDwh.js";import"./project-file-tree-icons-DqqhgvoI.js";import"./WorkspaceApp-BNmtIdn4.js";import"./index-CWmEuVWV.js";import"./client-build-info-bcijLdfD.js";const e=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],u={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:t.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:t.IndentAction.Indent}}]},b={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{u as conf,b as language};
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Ce,s as Fe,b as Me,c as De,g as Te,d as oe,e as Pe,z as Ye,l as Ne,k as ke}from"./mermaid.core-
|
|
1
|
+
import{a as Ce,s as Fe,b as Me,c as De,g as Te,d as oe,e as Pe,z as Ye,l as Ne,k as ke}from"./mermaid.core-NVIiXnRA.js";import{G as Ue}from"./graph-BPujwFoF.js";import{l as Be}from"./layout-Bp8GVMnq.js";import"./AuthenticatedApp-CgBrvMuc.js";import{l as Qe}from"./line-olpPNgnh.js";import"./index-Cp4GfHnF.js";import"./vendor-react-CnooHTJc.js";import"./vendor-state-BYwEPTaO.js";import"./MobileAwareSelect-BmK6WApn.js";import"./use-app-preferences-gyulV-hA.js";import"./route-plugin-chrome-B-Goj3vG.js";import"./shortcutUtils-20iqPDwh.js";import"./project-file-tree-icons-DqqhgvoI.js";import"./WorkspaceApp-BNmtIdn4.js";import"./index-CWmEuVWV.js";import"./client-build-info-bcijLdfD.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";var ce=function(){var e=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],g=[1,23],R=[1,24],A=[1,25],T=[1,26],N=[1,27],v=[1,20],k=[1,28],x=[1,29],F=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],fe=[1,48],ye=[1,49],_e=[1,50],ge=[1,51],Ee=[1,52],Re=[1,53],O=[53,54],M=[1,64],D=[1,60],P=[1,61],Y=[1,62],U=[1,63],B=[1,65],z=[1,69],j=[1,70],X=[1,67],J=[1,68],m=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ie={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,n,a,r,f,s,W){var _=s.length-1;switch(f){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(de,[2,49]),e(de,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{52:54,55:pe,56:fe,57:ye,58:_e,59:ge,60:Ee,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:M,20:59,21:D,24:P,26:Y,28:U,30:B},{5:z,30:j,46:66,47:X,49:J},{23:71,62:k,63:x},{23:72,62:k,63:x},e(m,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:M,20:77,21:D,24:P,26:Y,28:U,30:B},e(m,[2,19]),e(m,[2,33]),{22:[1,78]},{22:[1,79]},{5:z,30:j,46:80,47:X,49:J},e(m,[2,37]),e(m,[2,38]),e(m,[2,39]),{23:81,62:k,63:x},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(m,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(m,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:M,20:106,21:D,24:P,26:Y,28:U,30:B},{5:M,20:107,21:D,24:P,26:Y,28:U,30:B},{5:M,20:108,21:D,24:P,26:Y,28:U,30:B},{5:M,20:109,21:D,24:P,26:Y,28:U,30:B},{5:z,30:j,46:110,47:X,49:J},{5:z,30:j,46:111,47:X,49:J},e(m,[2,14]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),e(m,[2,34]),e(m,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],f=[null],s=[],W=this.table,_="",Z=0,me=0,Ve=2,Ie=1,qe=s.slice.call(arguments,1),E=Object.create(this.lexer),L={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(L.yy[ne]=this.yy[ne]);E.setInput(i,L.yy),L.yy.lexer=E,L.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var se=E.yylloc;s.push(se);var Oe=E.options&&E.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var $;return $=r.pop()||E.lex()||Ie,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=n.symbols_[$]||$),$}for(var I,C,S,ae,Q={},ee,w,be,te;;){if(C=a[a.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((I===null||typeof I>"u")&&(I=Le()),S=W[C]&&W[C][I]),typeof S>"u"||!S.length||!S[0]){var le="";te=[];for(ee in W[C])this.terminals_[ee]&&ee>Ve&&te.push("'"+this.terminals_[ee]+"'");E.showPosition?le="Parse error on line "+(Z+1)+`:
|
|
2
2
|
`+E.showPosition()+`
|
|
3
3
|
Expecting `+te.join(", ")+", got '"+(this.terminals_[I]||I)+"'":le="Parse error on line "+(Z+1)+": Unexpected "+(I==Ie?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(le,{text:E.match,token:this.terminals_[I]||I,line:E.yylineno,loc:se,expected:te})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+I);switch(S[0]){case 1:a.push(I),f.push(E.yytext),s.push(E.yylloc),a.push(S[1]),I=null,me=E.yyleng,_=E.yytext,Z=E.yylineno,se=E.yylloc;break;case 2:if(w=this.productions_[S[1]][1],Q.$=f[f.length-w],Q._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},Oe&&(Q._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),ae=this.performAction.apply(Q,[_,me,Z,L.yy,S[1],f,s].concat(qe)),typeof ae<"u")return ae;w&&(a=a.slice(0,-1*w*2),f=f.slice(0,-1*w),s=s.slice(0,-1*w)),a.push(this.productions_[S[1]][0]),f.push(Q.$),s.push(Q._$),be=W[a[a.length-2]][a[a.length-1]],a.push(be);break;case 3:return!0}}return!0}},$e=function(){var V={EOF:1,parseError:function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},setInput:function(i,n){return this.yy=n||this.yy||{},this._input=i,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},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var n=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=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),a.length-1&&(this.yylineno-=a.length-1);var f=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:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
@@ -49,4 +49,4 @@ Expecting `+te.join(", ")+", got '"+(this.terminals_[I]||I)+"'":le="Parse error
|
|
|
49
49
|
`,ut=ht,he={CONTAINS:"contains",ARROW:"arrow"},dt=(e,t)=>{let l=e.append("defs").append("marker").attr("id",he.CONTAINS+"_line_ending").attr("refX",0).attr("refY",t.line_height/2).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("g");l.append("circle").attr("cx",t.line_height/2).attr("cy",t.line_height/2).attr("r",t.line_height/2).attr("fill","none"),l.append("line").attr("x1",0).attr("x2",t.line_height).attr("y1",t.line_height/2).attr("y2",t.line_height/2).attr("stroke-width",1),l.append("line").attr("y1",0).attr("y2",t.line_height).attr("x1",t.line_height/2).attr("x2",t.line_height/2).attr("stroke-width",1),e.append("defs").append("marker").attr("id",he.ARROW+"_line_ending").attr("refX",t.line_height).attr("refY",.5*t.line_height).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("path").attr("d",`M0,0
|
|
50
50
|
L${t.line_height},${t.line_height/2}
|
|
51
51
|
M${t.line_height},${t.line_height/2}
|
|
52
|
-
L0,${t.line_height}`).attr("stroke-width",1)},xe={ReqMarkers:he,insertLineEndings:dt};let y={},Se=0;const Ae=(e,t)=>e.insert("rect","#"+t).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",y.rect_min_width+"px").attr("height",y.rect_min_height+"px"),ve=(e,t,l)=>{let c=y.rect_min_width/2,u=e.append("text").attr("class","req reqLabel reqTitle").attr("id",t).attr("x",c).attr("y",y.rect_padding).attr("dominant-baseline","hanging"),d=0;l.forEach(g=>{d==0?u.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",0).text(g):u.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",y.line_height*.75).text(g),d++});let p=1.5*y.rect_padding,h=d*y.line_height*.75,o=p+h;return e.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",y.rect_min_width).attr("y1",o).attr("y2",o),{titleNode:u,y:o}},we=(e,t,l,c)=>{let u=e.append("text").attr("class","req reqLabel").attr("id",t).attr("x",y.rect_padding).attr("y",c).attr("dominant-baseline","hanging"),d=0;const p=30;let h=[];return l.forEach(o=>{let g=o.length;for(;g>p&&d<3;){let R=o.substring(0,p);o=o.substring(p,o.length),g=o.length,h[h.length]=R,d++}if(d==3){let R=h[h.length-1];h[h.length-1]=R.substring(0,R.length-4)+"..."}else h[h.length]=o;d=0}),h.forEach(o=>{u.append("tspan").attr("x",y.rect_padding).attr("dy",y.line_height).text(o)}),u},pt=(e,t,l,c)=>{const u=t.node().getTotalLength(),d=t.node().getPointAtLength(u*.5),p="rel"+Se;Se++;const o=e.append("text").attr("class","req relationshipLabel").attr("id",p).attr("x",d.x).attr("y",d.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(c).node().getBBox();e.insert("rect","#"+p).attr("class","req reqLabelBox").attr("x",d.x-o.width/2).attr("y",d.y-o.height/2).attr("width",o.width).attr("height",o.height).attr("fill","white").attr("fill-opacity","85%")},ft=function(e,t,l,c,u){const d=l.edge(H(t.src),H(t.dst)),p=Qe().x(function(o){return o.x}).y(function(o){return o.y}),h=e.insert("path","#"+c).attr("class","er relationshipLine").attr("d",p(d.points)).attr("fill","none");t.type==u.db.Relationships.CONTAINS?h.attr("marker-start","url("+ke.getUrl(y.arrowMarkerAbsolute)+"#"+t.type+"_line_ending)"):(h.attr("stroke-dasharray","10,7"),h.attr("marker-end","url("+ke.getUrl(y.arrowMarkerAbsolute)+"#"+xe.ReqMarkers.ARROW+"_line_ending)")),pt(e,h,y,`<<${t.type}>>`)},yt=(e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];c=H(c),Ne.info("Added new requirement: ",c);const d=l.append("g").attr("id",c),p="req-"+c,h=Ae(d,p);let o=ve(d,c+"_title",[`<<${u.type}>>`,`${u.name}`]);we(d,c+"_body",[`Id: ${u.id}`,`Text: ${u.text}`,`Risk: ${u.risk}`,`Verification: ${u.verifyMethod}`],o.y);const g=h.node().getBBox();t.setNode(c,{width:g.width,height:g.height,shape:"rect",id:c})})},_t=(e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];const d=H(c),p=l.append("g").attr("id",d),h="element-"+d,o=Ae(p,h);let g=ve(p,h+"_title",["<<Element>>",`${c}`]);we(p,h+"_body",[`Type: ${u.type||"Not Specified"}`,`Doc Ref: ${u.docRef||"None"}`],g.y);const R=o.node().getBBox();t.setNode(d,{width:R.width,height:R.height,shape:"rect",id:d})})},gt=(e,t)=>(e.forEach(function(l){let c=H(l.src),u=H(l.dst);t.setEdge(c,u,{relationship:l})}),e),Et=function(e,t){t.nodes().forEach(function(l){l!==void 0&&t.node(l)!==void 0&&(e.select("#"+l),e.select("#"+l).attr("transform","translate("+(t.node(l).x-t.node(l).width/2)+","+(t.node(l).y-t.node(l).height/2)+" )"))})},H=e=>e.replace(/\s/g,"").replace(/\./g,"_"),Rt=(e,t,l,c)=>{y=Te().requirement;const u=y.securityLevel;let d;u==="sandbox"&&(d=oe("#i"+t));const h=(u==="sandbox"?oe(d.nodes()[0].contentDocument.body):oe("body")).select(`[id='${t}']`);xe.insertLineEndings(h,y);const o=new Ue({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:y.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let g=c.db.getRequirements(),R=c.db.getElements(),A=c.db.getRelationships();yt(g,o,h),_t(R,o,h),gt(A,o),Be(o),Et(h,o),A.forEach(function(x){ft(h,x,o,t,c)});const T=y.rect_padding,N=h.node().getBBox(),v=N.width+T*2,k=N.height+T*2;Pe(h,k,v,y.useMaxWidth),h.attr("viewBox",`${N.x-T} ${N.y-T} ${v} ${k}`)},mt={draw:Rt},
|
|
52
|
+
L0,${t.line_height}`).attr("stroke-width",1)},xe={ReqMarkers:he,insertLineEndings:dt};let y={},Se=0;const Ae=(e,t)=>e.insert("rect","#"+t).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",y.rect_min_width+"px").attr("height",y.rect_min_height+"px"),ve=(e,t,l)=>{let c=y.rect_min_width/2,u=e.append("text").attr("class","req reqLabel reqTitle").attr("id",t).attr("x",c).attr("y",y.rect_padding).attr("dominant-baseline","hanging"),d=0;l.forEach(g=>{d==0?u.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",0).text(g):u.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",y.line_height*.75).text(g),d++});let p=1.5*y.rect_padding,h=d*y.line_height*.75,o=p+h;return e.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",y.rect_min_width).attr("y1",o).attr("y2",o),{titleNode:u,y:o}},we=(e,t,l,c)=>{let u=e.append("text").attr("class","req reqLabel").attr("id",t).attr("x",y.rect_padding).attr("y",c).attr("dominant-baseline","hanging"),d=0;const p=30;let h=[];return l.forEach(o=>{let g=o.length;for(;g>p&&d<3;){let R=o.substring(0,p);o=o.substring(p,o.length),g=o.length,h[h.length]=R,d++}if(d==3){let R=h[h.length-1];h[h.length-1]=R.substring(0,R.length-4)+"..."}else h[h.length]=o;d=0}),h.forEach(o=>{u.append("tspan").attr("x",y.rect_padding).attr("dy",y.line_height).text(o)}),u},pt=(e,t,l,c)=>{const u=t.node().getTotalLength(),d=t.node().getPointAtLength(u*.5),p="rel"+Se;Se++;const o=e.append("text").attr("class","req relationshipLabel").attr("id",p).attr("x",d.x).attr("y",d.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(c).node().getBBox();e.insert("rect","#"+p).attr("class","req reqLabelBox").attr("x",d.x-o.width/2).attr("y",d.y-o.height/2).attr("width",o.width).attr("height",o.height).attr("fill","white").attr("fill-opacity","85%")},ft=function(e,t,l,c,u){const d=l.edge(H(t.src),H(t.dst)),p=Qe().x(function(o){return o.x}).y(function(o){return o.y}),h=e.insert("path","#"+c).attr("class","er relationshipLine").attr("d",p(d.points)).attr("fill","none");t.type==u.db.Relationships.CONTAINS?h.attr("marker-start","url("+ke.getUrl(y.arrowMarkerAbsolute)+"#"+t.type+"_line_ending)"):(h.attr("stroke-dasharray","10,7"),h.attr("marker-end","url("+ke.getUrl(y.arrowMarkerAbsolute)+"#"+xe.ReqMarkers.ARROW+"_line_ending)")),pt(e,h,y,`<<${t.type}>>`)},yt=(e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];c=H(c),Ne.info("Added new requirement: ",c);const d=l.append("g").attr("id",c),p="req-"+c,h=Ae(d,p);let o=ve(d,c+"_title",[`<<${u.type}>>`,`${u.name}`]);we(d,c+"_body",[`Id: ${u.id}`,`Text: ${u.text}`,`Risk: ${u.risk}`,`Verification: ${u.verifyMethod}`],o.y);const g=h.node().getBBox();t.setNode(c,{width:g.width,height:g.height,shape:"rect",id:c})})},_t=(e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];const d=H(c),p=l.append("g").attr("id",d),h="element-"+d,o=Ae(p,h);let g=ve(p,h+"_title",["<<Element>>",`${c}`]);we(p,h+"_body",[`Type: ${u.type||"Not Specified"}`,`Doc Ref: ${u.docRef||"None"}`],g.y);const R=o.node().getBBox();t.setNode(d,{width:R.width,height:R.height,shape:"rect",id:d})})},gt=(e,t)=>(e.forEach(function(l){let c=H(l.src),u=H(l.dst);t.setEdge(c,u,{relationship:l})}),e),Et=function(e,t){t.nodes().forEach(function(l){l!==void 0&&t.node(l)!==void 0&&(e.select("#"+l),e.select("#"+l).attr("transform","translate("+(t.node(l).x-t.node(l).width/2)+","+(t.node(l).y-t.node(l).height/2)+" )"))})},H=e=>e.replace(/\s/g,"").replace(/\./g,"_"),Rt=(e,t,l,c)=>{y=Te().requirement;const u=y.securityLevel;let d;u==="sandbox"&&(d=oe("#i"+t));const h=(u==="sandbox"?oe(d.nodes()[0].contentDocument.body):oe("body")).select(`[id='${t}']`);xe.insertLineEndings(h,y);const o=new Ue({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:y.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let g=c.db.getRequirements(),R=c.db.getElements(),A=c.db.getRelationships();yt(g,o,h),_t(R,o,h),gt(A,o),Be(o),Et(h,o),A.forEach(function(x){ft(h,x,o,t,c)});const T=y.rect_padding,N=h.node().getBBox(),v=N.width+T*2,k=N.height+T*2;Pe(h,k,v,y.useMaxWidth),h.attr("viewBox",`${N.x-T} ${N.y-T} ${v} ${k}`)},mt={draw:Rt},Dt={parser:He,db:ct,renderer:mt,styles:ut};export{Dt as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,j as C,u as re,h as et}from"./vendor-react-CnooHTJc.js";import{l as Ne,m as Pe,bA as tt,r as Oe,bf as nt,h as at,j as T,E as je,bz as ot,ad as rt,bi as st,aW as X,e as lt,x as it,aY as te,Q as Ie,aV as ct,a5 as dt,Y as he,aX as Y,b2 as Ae,bG as ut,o as V,a$ as gt,bv as mt,bn as ft,G as vt,B as ht,bT as pt}from"./index-Cp4GfHnF.js";import{k as bt,l as yt,m as St,P as Ct,u as Ee,T as xt}from"./MobileAwareSelect-BmK6WApn.js";import{D as pe,g as wt}from"./shortcutUtils-20iqPDwh.js";import{i as ne,u as J}from"./vendor-state-BYwEPTaO.js";const ae=e=>e?typeof e=="function"?e():e:null,$t=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:a,fontWeightStrong:o,innerPadding:s,boxShadowSecondary:r,colorTextHeading:l,borderRadiusLG:d,zIndexPopup:u,titleMarginBottom:c,colorBgElevated:b,popoverBg:y,titleBorderBottom:f,innerContentPadding:w,titlePadding:h}=e;return[{[t]:Object.assign(Object.assign({},Oe(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":b,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:y,backgroundClip:"padding-box",borderRadius:d,boxShadow:r,padding:s},[`${t}-title`]:{minWidth:a,marginBottom:c,color:l,fontWeight:o,borderBottom:f,padding:h},[`${t}-inner-content`]:{color:n,padding:w}})},bt(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Rt=e=>{const{componentCls:t}=e;return{[t]:nt.map(n=>{const a=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":a,[`${t}-inner`]:{backgroundColor:a},[`${t}-arrow`]:{background:"transparent"}}}})}},Mt=e=>{const{lineWidth:t,controlHeight:n,fontHeight:a,padding:o,wireframe:s,zIndexPopupBase:r,borderRadiusLG:l,marginXS:d,lineType:u,colorSplit:c,paddingSM:b}=e,y=n-a,f=y/2,w=y/2-t,h=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:r+30},yt(e)),St({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:s?0:12,titleMarginBottom:s?0:d,titlePadding:s?`${f}px ${h}px ${w}px`:0,titleBorderBottom:s?`${t}px ${u} ${c}`:"none",innerContentPadding:s?`${b}px ${h}px`:0})},Be=Ne("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,a=Pe(e,{popoverBg:t,popoverColor:n});return[$t(a),Rt(a),tt(a,"zoom-big")]},Mt,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Nt=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n};const _e=({title:e,content:t,prefixCls:n})=>!e&&!t?null:i.createElement(i.Fragment,null,e&&i.createElement("div",{className:`${n}-title`},e),t&&i.createElement("div",{className:`${n}-inner-content`},t)),Pt=e=>{const{hashId:t,prefixCls:n,className:a,style:o,placement:s="top",title:r,content:l,children:d}=e,u=ae(r),c=ae(l),b=T(t,n,`${n}-pure`,`${n}-placement-${s}`,a);return i.createElement("div",{className:b,style:o},i.createElement("div",{className:`${n}-arrow`}),i.createElement(Ct,Object.assign({},e,{className:t,prefixCls:n}),d||i.createElement(_e,{prefixCls:n,title:u,content:c})))},Ot=e=>{const{prefixCls:t,className:n}=e,a=Nt(e,["prefixCls","className"]),{getPrefixCls:o}=i.useContext(at),s=o("popover",t),[r,l,d]=Be(s);return r(i.createElement(Pt,Object.assign({},a,{prefixCls:s,hashId:l,className:T(n,d)})))};var jt=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n};const It=i.forwardRef((e,t)=>{var n,a;const{prefixCls:o,title:s,content:r,overlayClassName:l,placement:d="top",trigger:u="hover",children:c,mouseEnterDelay:b=.1,mouseLeaveDelay:y=.1,onOpenChange:f,overlayStyle:w={},styles:h,classNames:x}=e,_=jt(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:p,className:m,style:k,classNames:$,styles:j}=je("popover"),g=p("popover",o),[M,L,P]=Be(g),z=p(),D=T(l,L,P,m,$.root,x==null?void 0:x.root),W=T($.body,x==null?void 0:x.body),[v,I]=Ee(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(a=e.defaultOpen)!==null&&a!==void 0?a:e.defaultVisible}),N=(R,U)=>{I(R,!0),f==null||f(R,U)},A=R=>{R.keyCode===st.ESC&&N(!1,R)},E=R=>{N(R)},F=ae(s),ee=ae(r);return M(i.createElement(xt,Object.assign({placement:d,trigger:u,mouseEnterDelay:b,mouseLeaveDelay:y},_,{prefixCls:g,classNames:{root:D,body:W},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},j.root),k),w),h==null?void 0:h.root),body:Object.assign(Object.assign({},j.body),h==null?void 0:h.body)},ref:t,open:v,onOpenChange:E,overlay:F||ee?i.createElement(_e,{prefixCls:g,title:F,content:ee}):null,transitionName:ot(z,"zoom-big",_.transitionName),"data-popover-inject":!0}),rt(c,{onKeyDown:R=>{var U,q;i.isValidElement(c)&&((q=c==null?void 0:(U=c.props).onKeyDown)===null||q===void 0||q.call(U,R)),A(R)}})))}),At=It;At._InternalPanelDoNotUseOrYouWillBeFired=Ot;var be=function(t,n){if(!t)return null;var a={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:a.top,bottom:a.bottom,height:a.height}:{left:a.left,right:a.right,width:a.width,top:0,bottom:0,height:0}},B=function(t){return t!==void 0?"".concat(t,"px"):void 0};function Et(e){var t=e.prefixCls,n=e.containerRef,a=e.value,o=e.getValueIndex,s=e.motionName,r=e.onMotionStart,l=e.onMotionEnd,d=e.direction,u=e.vertical,c=u===void 0?!1:u,b=i.useRef(null),y=i.useState(a),f=X(y,2),w=f[0],h=f[1],x=function(I){var N,A=o(I),E=(N=n.current)===null||N===void 0?void 0:N.querySelectorAll(".".concat(t,"-item"))[A];return(E==null?void 0:E.offsetParent)&&E},_=i.useState(null),p=X(_,2),m=p[0],k=p[1],$=i.useState(null),j=X($,2),g=j[0],M=j[1];lt(function(){if(w!==a){var v=x(w),I=x(a),N=be(v,c),A=be(I,c);h(a),k(N),M(A),v&&I?r():l()}},[a]);var L=i.useMemo(function(){if(c){var v;return B((v=m==null?void 0:m.top)!==null&&v!==void 0?v:0)}return B(d==="rtl"?-(m==null?void 0:m.right):m==null?void 0:m.left)},[c,d,m]),P=i.useMemo(function(){if(c){var v;return B((v=g==null?void 0:g.top)!==null&&v!==void 0?v:0)}return B(d==="rtl"?-(g==null?void 0:g.right):g==null?void 0:g.left)},[c,d,g]),z=function(){return c?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},D=function(){return c?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},W=function(){k(null),M(null),l()};return!m||!g?null:i.createElement(it,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:z,onAppearActive:D,onVisibleChanged:W},function(v,I){var N=v.className,A=v.style,E=te(te({},A),{},{"--thumb-start-left":L,"--thumb-start-width":B(m==null?void 0:m.width),"--thumb-active-left":P,"--thumb-active-width":B(g==null?void 0:g.width),"--thumb-start-top":L,"--thumb-start-height":B(m==null?void 0:m.height),"--thumb-active-top":P,"--thumb-active-height":B(g==null?void 0:g.height)}),F={ref:Ie(b,I),style:E,className:T("".concat(t,"-thumb"),N)};return i.createElement("div",F)})}var Bt=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function _t(e){if(typeof e.title<"u")return e.title;if(Ae(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function Lt(e){return e.map(function(t){if(Ae(t)==="object"&&t!==null){var n=_t(t);return te(te({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var Tt=function(t){var n=t.prefixCls,a=t.className,o=t.disabled,s=t.checked,r=t.label,l=t.title,d=t.value,u=t.name,c=t.onChange,b=t.onFocus,y=t.onBlur,f=t.onKeyDown,w=t.onKeyUp,h=t.onMouseDown,x=function(p){o||c(p,d)};return i.createElement("label",{className:T(a,Y({},"".concat(n,"-item-disabled"),o)),onMouseDown:h},i.createElement("input",{name:u,className:"".concat(n,"-item-input"),type:"radio",disabled:o,checked:s,onChange:x,onFocus:b,onBlur:y,onKeyDown:f,onKeyUp:w}),i.createElement("div",{className:"".concat(n,"-item-label"),title:l},r))},kt=i.forwardRef(function(e,t){var n,a=e.prefixCls,o=a===void 0?"rc-segmented":a,s=e.direction,r=e.vertical,l=e.options,d=l===void 0?[]:l,u=e.disabled,c=e.defaultValue,b=e.value,y=e.name,f=e.onChange,w=e.className,h=w===void 0?"":w,x=e.motionName,_=x===void 0?"thumb-motion":x,p=ct(e,Bt),m=i.useRef(null),k=i.useMemo(function(){return Ie(m,t)},[m,t]),$=i.useMemo(function(){return Lt(d)},[d]),j=Ee((n=$[0])===null||n===void 0?void 0:n.value,{value:b,defaultValue:c}),g=X(j,2),M=g[0],L=g[1],P=i.useState(!1),z=X(P,2),D=z[0],W=z[1],v=function(H,G){L(G),f==null||f(G)},I=dt(p,["children"]),N=i.useState(!1),A=X(N,2),E=A[0],F=A[1],ee=i.useState(!1),R=X(ee,2),U=R[0],q=R[1],qe=function(){q(!0)},Ge=function(){q(!1)},Ke=function(){F(!1)},Ye=function(H){H.key==="Tab"&&F(!0)},fe=function(H){var G=$.findIndex(function(Je){return Je.value===M}),ve=$.length,Qe=(G+H+ve)%ve,ie=$[Qe];ie&&(L(ie.value),f==null||f(ie.value))},Ze=function(H){switch(H.key){case"ArrowLeft":case"ArrowUp":fe(-1);break;case"ArrowRight":case"ArrowDown":fe(1);break}};return i.createElement("div",he({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0,"aria-orientation":r?"vertical":"horizontal"},I,{className:T(o,Y(Y(Y({},"".concat(o,"-rtl"),s==="rtl"),"".concat(o,"-disabled"),u),"".concat(o,"-vertical"),r),h),ref:k}),i.createElement("div",{className:"".concat(o,"-group")},i.createElement(Et,{vertical:r,prefixCls:o,value:M,containerRef:m,motionName:"".concat(o,"-").concat(_),direction:s,getValueIndex:function(H){return $.findIndex(function(G){return G.value===H})},onMotionStart:function(){W(!0)},onMotionEnd:function(){W(!1)}}),$.map(function(S){return i.createElement(Tt,he({},S,{name:y,key:S.value,prefixCls:o,className:T(S.className,"".concat(o,"-item"),Y(Y({},"".concat(o,"-item-selected"),S.value===M&&!D),"".concat(o,"-item-focused"),U&&E&&S.value===M)),checked:S.value===M,onChange:v,onFocus:qe,onBlur:Ge,onKeyDown:Ze,onKeyUp:Ye,onMouseDown:Ke,disabled:!!u||!!S.disabled}))})))}),zt=kt;function ye(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Se(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const Dt=Object.assign({overflow:"hidden"},mt),Wt=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),a=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Oe(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`}),ut(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${V(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},Se(e)),{color:e.itemSelectedColor}),"&-focused":gt(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:V(n),padding:`0 ${V(e.segmentedPaddingHorizontal)}`},Dt),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},Se(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${V(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:a,lineHeight:V(a),padding:`0 ${V(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:V(o),padding:`0 ${V(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),ye(`&-disabled ${t}-item`,e)),ye(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}})}},Ht=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:a,colorBgElevated:o,colorFill:s,lineWidthBold:r,colorBgLayout:l}=e;return{trackPadding:r,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:a,itemSelectedBg:o,itemActiveBg:s,itemSelectedColor:n}},Vt=Ne("Segmented",e=>{const{lineWidth:t,calc:n}=e,a=Pe(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return Wt(a)},Ht);var Ce=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n};function Ft(e){return typeof e=="object"&&!!(e!=null&&e.icon)}const Xt=i.forwardRef((e,t)=>{const n=ft(),{prefixCls:a,className:o,rootClassName:s,block:r,options:l=[],size:d="middle",style:u,vertical:c,shape:b="default",name:y=n}=e,f=Ce(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:w,direction:h,className:x,style:_}=je("segmented"),p=w("segmented",a),[m,k,$]=Vt(p),j=vt(d),g=i.useMemo(()=>l.map(P=>{if(Ft(P)){const{icon:z,label:D}=P,W=Ce(P,["icon","label"]);return Object.assign(Object.assign({},W),{label:i.createElement(i.Fragment,null,i.createElement("span",{className:`${p}-item-icon`},z),D&&i.createElement("span",null,D))})}return P}),[l,p]),M=T(o,s,x,{[`${p}-block`]:r,[`${p}-sm`]:j==="small",[`${p}-lg`]:j==="large",[`${p}-vertical`]:c,[`${p}-shape-${b}`]:b==="round"},k,$),L=Object.assign(Object.assign({},_),u);return m(i.createElement(zt,Object.assign({},f,{name:y,className:M,style:L,options:g,ref:t,prefixCls:p,direction:h,vertical:c})))}),Mn=Xt;function xe({"aria-hidden":e,"aria-label":t,className:n,filled:a=!1,name:o,role:s,title:r,...l}){const d=["material-symbols-rounded",a?"is-filled filled":"",n].filter(Boolean).join(" "),u=e??(t==null&&s==null&&r==null?!0:void 0);return C.jsx("span",{className:d,role:s,"aria-hidden":u,"aria-label":t,title:r,...l,children:o})}const Le=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&!i.isValidElement(e),Ut=e=>Le(e)&&"active"in e&&"inactive"in e,qt=(e,t)=>{if(e!=null)return Ut(e)?t?e.active:e.inactive:e},Gt=({active:e,className:t,icon:n,materialFilled:a})=>{const o=qt(n,e);if(o==null||typeof o=="boolean")return null;const s=["icon-asset",t].filter(Boolean).join(" ");return typeof o=="string"?C.jsx(xe,{className:s,name:o,filled:a??e}):Le(o)?o.type==="material"?C.jsx(xe,{className:s,name:o.name,filled:o.filled??a??e}):o.type==="svg"?C.jsx("span",{className:[s,"icon-asset--svg"].filter(Boolean).join(" "),role:o.title==null?void 0:"img","aria-label":o.title,"aria-hidden":o.title==null?!0:void 0,dangerouslySetInnerHTML:{__html:o.svg}}):o.type==="image"?C.jsx("img",{className:[s,"icon-asset--image"].filter(Boolean).join(" "),src:o.src,alt:o.alt??"",draggable:!1}):null:o},Nn=e=>{const t=Object.values(e);return t.length===0?null:{actions:t.flatMap(n=>n.actions),hideCreateSessionAction:t.some(n=>n.hideCreateSessionAction===!0),key:t.map(n=>n.key).join("|")}},we=e=>{const t=e.filter(n=>n.node!=null);if(t.length!==0)return t.length===1?t[0].node:t.map(({key:n,node:a})=>C.jsx(i.Fragment,{children:a},n))},Pn=e=>{const t=Object.values(e);return t.length===0?null:{contextMenuSections:t.flatMap(n=>n.contextMenuSections??[]),footerAfter:we(t.map(n=>({key:`${n.key}:after`,node:n.footerAfter}))),footerBefore:we(t.map(n=>({key:`${n.key}:before`,node:n.footerBefore}))),key:t.map(n=>n.key).join("|"),sections:t.flatMap(n=>n.sections),selectedKeys:Array.from(new Set(t.flatMap(n=>n.selectedKeys??[])))}},K=()=>{},Te=i.createContext({clearRouteMoreMenu:K,clearRouteWindowBar:K,clearRouteSidebar:K,hasRouteSidebarProvider:!1,routeMoreMenu:null,routeSidebar:null,routeWindowBar:null,setRouteMoreMenu:K,setRouteSidebar:K,setRouteWindowBar:K}),On=Te.Provider;function ke(){return i.useContext(Te)}const $e="nav-rail-more-dropdown",jn=16,Kt="nav-rail-more-context-dropdown",Yt="nav-rail-more-submenu-dropdown",ze=e=>"type"in e&&e.type==="custom",Zt=(e,t)=>wt(e,t).map(n=>n.value).join(t?"":"+"),Qt=(e,t)=>{const n=Zt(e.shortcut,t);return n===""?e.label:C.jsxs("span",{className:"nav-menu-shortcut-label",children:[C.jsx("span",{className:"nav-menu-shortcut-title",children:e.label}),C.jsx("span",{className:"nav-menu-shortcut",children:n})]})},Jt=e=>{const t=e.active===!0&&e.activeIcon!=null?e.activeIcon:e.icon;if(t!=null)return Gt({active:e.active===!0,className:"nav-menu-icon",icon:t})},De=({closeMenu:e,isMac:t,item:n})=>{var o;if(ze(n))return{className:n.className,key:n.key,label:n.content,onClick:({domEvent:s})=>{var r;(r=n.onClick)==null||r.call(n,s)}};const a=n.children!=null||n.menuChildren!=null;return{children:n.menuChildren??((o=n.children)==null?void 0:o.map(s=>De({closeMenu:e,isMac:t,item:s}))),className:n.className,danger:n.danger,disabled:n.disabled,icon:Jt(n),key:n.key,label:Qt(n,t),popupClassName:a?n.popupClassName??Yt:n.popupClassName,title:n.title,onClick:a?void 0:()=>{var s;e(!1),(s=n.onSelect)==null||s.call(n)}}},en=({closeMenu:e,isMac:t,sections:n})=>n.filter(o=>o.items.length>0).flatMap((o,s)=>{const r=o.items.map(d=>De({closeMenu:e,isMac:t,item:d})),l=o.label==null?r:[{children:r,key:`${o.key}:group`,label:o.label,type:"group"}];return s===0?l:[{key:`${o.key}:divider`,type:"divider"},...l]}),We=e=>e.flatMap(t=>t.items.flatMap(n=>ze(n)?[]:[n.selected===!0?n.key:void 0,...We([{items:n.children??[],key:n.key}])].filter(a=>a!=null)));function In({active:e,buttonIconSrc:t,buttonLabel:n,buttonRef:a,contextMenuItems:o,items:s,open:r,selectedKeys:l,visuallyOpen:d,onOpenChange:u,onSelectItem:c,onTriggerFeedback:b}){const y=C.jsx("span",{className:"material-symbols-rounded nav-menu-submenu-chevron",children:"keyboard_arrow_right"});return C.jsx(pe,{destroyOnHidden:!0,overlayClassName:$e,menu:{expandIcon:y,items:s,onClick:c,selectedKeys:l,triggerSubMenuAction:"click"},open:r,onOpenChange:u,popupRender:o==null||o.length===0?void 0:f=>C.jsx(pe,{overlayClassName:`${$e} ${Kt}`,trigger:["contextMenu"],menu:{expandIcon:y,items:o,triggerSubMenuAction:"click"},children:C.jsx("div",{className:"nav-rail-more-dropdown__context-target",children:f})}),placement:"topLeft",trigger:["click"],transitionName:"ant-slide-down",children:C.jsx(ht,{ref:a,type:"default",className:`nav-rail-more-button ${e?"is-active":"is-idle"}`,"aria-haspopup":"menu","aria-expanded":d,block:!0,onClick:b,children:C.jsxs("span",{className:"nav-rail-more-button__content",children:[C.jsx("img",{className:"nav-rail-vibe-icon nav-rail-vibe-icon--more",src:t,alt:"","aria-hidden":"true"}),C.jsx("span",{children:n})]})})})}const oe=e=>{const t=e==null?void 0:e.trim().replace(/_/g,"-").toLowerCase();if(!(t==null||t===""))return t},tn=(e,t="en")=>{const n=oe(e),a=n==null?void 0:n.split("-")[0],o=a==="zh"?"zh-hans":void 0,s=a==="zh"?"zh-cn":void 0,r=oe(t);return[n,o,s,a,r,"en"].filter((l,d,u)=>l!=null&&u.indexOf(l)===d)},nn=()=>{var e;return(e=globalThis.document)==null?void 0:e.documentElement.lang},an=()=>{var e,t,n;return((t=(e=globalThis.navigator)==null?void 0:e.languages)==null?void 0:t[0])??((n=globalThis.navigator)==null?void 0:n.language)},ce=()=>ne.language??nn()??an()??"en",Z=()=>ne.resolvedLanguage??ce(),Re=e=>{if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e)},He=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),de=(e,t,n,a={})=>{var r;const o=Object.entries(e).filter(l=>l[1]!==void 0),s=new Map(o.map(([l,d])=>[oe(l),d]).filter(l=>l[0]!=null));for(const l of tn(t,n)){const d=s.get(l);if(d!==void 0)return d}return a.allowAnyFallback===!1||(r=o[0])==null?void 0:r[1]},on=(e,t={})=>e.replace(/\{\{\s*([\w.-]+)\s*\}\}/g,(n,a)=>{const o=t[a];return o==null?"":String(o)}),rn=()=>{const e={get language(){return ce()},get resolvedLanguage(){return Z()},getLanguage:()=>Z(),resolveText:(t,n)=>ue(t,e,{fallback:n})??n??"",select:(t,n)=>de(t,Z(),n),subscribe:t=>{const n=()=>{t({language:ce(),resolvedLanguage:Z()})};return ne.on("languageChanged",n),{dispose:()=>ne.off("languageChanged",n)}},t:(t,n)=>{const a=typeof t=="string"?t:de(t,Z(),"en")??"";return on(a,n)}};return e};function ue(e,t,n={}){const a=Re(e);if(a!=null)return a;if(!He(e))return n.fallback;const o=Object.entries(e).map(([r,l])=>[oe(r),Re(l)]).filter(r=>r[0]!=null&&r[1]!=null);if(o.length===0)return n.fallback;const s=typeof t=="string"?t:t.resolvedLanguage;return de(Object.fromEntries(o),s,n.fallbackLanguage,{allowAnyFallback:n.allowAnyFallback})??n.fallback}const O=(e,t,n)=>{const a=(s,r)=>ue(s,n,r),o=a(e[`${t}I18n`],{allowAnyFallback:!1,fallbackLanguage:"en"});if(o!=null)return o;if(He(e.i18n)){const s=a(Object.fromEntries(Object.entries(e.i18n).map(([r,l])=>[r,l!=null&&typeof l=="object"&&!Array.isArray(l)?l[t]:void 0])),{allowAnyFallback:!1,fallbackLanguage:"en"});if(s!=null)return s}return a(e[t])},Me=(e,t,n)=>O(e,t,n),sn=(e,t)=>{const n=e,a=Me(n,"title",t),o=Me(n,"description",t);return a==null&&o==null?e:{...e,...a==null?{}:{title:a},...o==null?{}:{description:o}}},Ve=i.createContext(null),An=()=>{const e=i.useContext(Ve);if(e==null)throw new Error("PluginProvider is missing");return e},Fe=()=>i.useContext(Ve),ln=[];function se(e){const{i18n:t}=J(),n=Fe(),a=(n==null?void 0:n.snapshot.slots[e])??ln,o=t.resolvedLanguage??t.language;return i.useMemo(()=>{const s=rn();return a.map(r=>sn(r,s))},[a,o])}function me(){const e=Fe(),t=e==null?void 0:e.registry;return i.useMemo(()=>t==null?void 0:t.executeCommand.bind(t),[t])}const cn=e=>[e.targetRoute,...e.targetRoutes??[]].filter(t=>typeof t=="string"&&t.trim()!==""),dn={config:["settings"],settings:["config"]},un="/ui",Q=e=>{let t=e.trim();if(t==="")return"/";for(t.startsWith("/")||(t=`/${t}`);t.length>1&&t.endsWith("/");)t=t.slice(0,-1);return t},gn=e=>new Set([e,...dn[e]??[]]),ge=e=>{const t=Q(e),n=Q(pt()),a=Array.from(new Set([n,Q(un)])).filter(s=>s!=="/"),o=new Set([t]);for(const s of a)t===s?o.add("/"):t.startsWith(`${s}/`)?o.add(Q(t.slice(s.length))):o.add(Q(`${s}${t==="/"?"":t}`));return o},mn=(e,t)=>{if(!e.startsWith("/"))return!1;if(e.endsWith("/*")){const a=ge(e.slice(0,-2));return[...t].some(o=>[...a].some(s=>o===s||o.startsWith(`${s}/`)))}return[...ge(e)].some(a=>t.has(a))},En=O,le=({contribution:e,pathname:t,routeKey:n})=>{const a=cn(e);if(a.length===0)return!0;const o=gn(n),s=ge(t);return a.some(r=>o.has(r)?!0:mn(r,s))},Xe=e=>typeof e.command=="string"&&e.command.trim()!=="";function fn(e){const{i18n:t}=J(),n=re(),a=me(),o=se("route.header.actions"),s=t.resolvedLanguage??t.language;return i.useMemo(()=>o.filter(r=>le({contribution:r,pathname:n.pathname,routeKey:e})&&Xe(r)).map(r=>{const l=O(r,"title",s)??r.title,d=O(r,"description",s)??l;return{active:r.active,activeIcon:r.activeIcon,activeLabel:r.activeLabel,activeTitle:r.activeTitle,danger:r.danger,disabled:r.disabled,icon:r.icon??"extension",key:`plugin:${r.pluginScope}:${r.id}`,label:l,shortcut:r.shortcut,title:d,onSelect:()=>{a==null||a(r.pluginScope,r.command)}}}),[o,a,s,n.pathname,e])}function vn(e){const{i18n:t}=J(),n=re(),a=me(),o=se("route.windowBar.actions"),s=t.resolvedLanguage??t.language;return i.useMemo(()=>o.filter(r=>le({contribution:r,pathname:n.pathname,routeKey:e})&&Xe(r)).map(r=>{const l=O(r,"title",s)??r.title,d=O(r,"description",s)??l;return{active:r.active,activeIcon:r.activeIcon,activeLabel:r.activeLabel,activeTitle:r.activeTitle,danger:r.danger,disabled:r.disabled,icon:r.icon??"extension",key:`plugin:${r.pluginScope}:${r.id}`,label:l,shortcut:r.shortcut,title:d,onSelect:()=>{a==null||a(r.pluginScope,r.command)}}}),[o,a,s,n.pathname,e])}function Ue(){const e=et(),t=me();return i.useCallback((n,a)=>{if(n.command!=null&&n.command.trim()!==""){t==null||t(n.pluginScope,n.command,a);return}if(n.route!=null&&n.route.trim()!==""){e(n.route);return}n.href!=null&&n.href.trim()!==""&&window.open(n.href,"_blank","noopener,noreferrer")},[t,e])}const hn=({contributions:e,isMac:t,language:n,pathname:a,routeKey:o,target:s,onRun:r})=>{const l=s==null?void 0:{kind:"routeSidebarContextMenu",pathname:a,routeKey:o,target:s},d=e.filter(c=>le({contribution:c,pathname:a,routeKey:o})).map(c=>({active:c.active,activeIcon:c.activeIcon,danger:c.danger,disabled:c.disabled,icon:c.icon??"extension",key:`plugin:${c.pluginScope}:${c.id}`,label:O(c,"title",n)??c.title,selected:c.selected,shortcut:c.shortcut,title:O(c,"description",n)??O(c,"title",n)??c.title,onSelect:()=>r(c,l)}));if(d.length===0)return[];const u=[{items:d,key:`route-plugin-sidebar-context:${o}`}];return{items:en({closeMenu:()=>{},isMac:t,sections:u})??[],selectedKeys:We(u)}};function pn(e){const{i18n:t}=J(),n=re(),a=Ue(),o=se("route.moreMenu.items"),s=t.resolvedLanguage??t.language;return i.useMemo(()=>{const r=o.filter(l=>le({contribution:l,pathname:n.pathname,routeKey:e})).map(l=>{const d=O(l,"title",s)??l.title,u=O(l,"description",s)??d;return{active:l.active,activeIcon:l.activeIcon,danger:l.danger,disabled:l.disabled,icon:l.icon??"extension",key:`plugin:${l.pluginScope}:${l.id}`,label:d,selected:l.selected,shortcut:l.shortcut,title:u,onSelect:()=>a(l)}});return r.length===0?[]:[{items:r,key:`route-plugin-more:${e}`}]},[o,s,n.pathname,e,a])}function bn(e){const{i18n:t}=J(),n=re(),a=Ue(),o=se("route.sidebar.contextMenu"),s=t.resolvedLanguage??t.language,r=typeof navigator<"u"&&/mac/i.test(navigator.platform);return i.useMemo(()=>l=>hn({contributions:o,isMac:r,language:s,pathname:n.pathname,routeKey:e,target:l,onRun:a}),[o,r,s,n.pathname,e,a])}function yn(e){const{clearRouteMoreMenu:t,hasRouteSidebarProvider:n,setRouteMoreMenu:a}=ke(),o=pn(e);i.useEffect(()=>{const s=`route-plugin-more:${e}`;if(!n||o.length===0){t(s);return}return a({key:s,sections:o}),()=>t(s)},[t,n,e,o,a])}function Sn(e){const{clearRouteWindowBar:t,hasRouteSidebarProvider:n,setRouteWindowBar:a}=ke(),o=vn(e);i.useEffect(()=>{const s=`route-plugin-window-bar:${e}`;if(!n||o.length===0){t(s);return}return a({actions:o,key:s}),()=>t(s)},[o,t,n,e,a])}function Bn(e){const t=fn(e),n=bn(e);return yn(e),Sn(e),i.useMemo(()=>({headerActions:t,sidebarContextMenuItems:n}),[t,n])}export{xe as M,jn as N,At as P,On as R,Mn as S,Ot as a,se as b,me as c,O as d,en as e,We as f,ae as g,In as h,ke as i,Pn as j,rn as k,Ve as l,Nn as m,An as n,Bn as o,fn as p,yn as q,Gt as r,Sn as s,En as t,vn as u,$e as v};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{x as mt,v as kt,s as _t,a as xt,c as vt,b as bt,g as rt,y as wt,d as G,p as St,z as Lt,k as Et}from"./mermaid.core-NVIiXnRA.js";import"./AuthenticatedApp-CgBrvMuc.js";import{o as At}from"./ordinal-Cboi1Yqb.js";import{s as Tt}from"./Tableau10-B-NsZVaP.js";import"./index-Cp4GfHnF.js";import"./vendor-react-CnooHTJc.js";import"./vendor-state-BYwEPTaO.js";import"./MobileAwareSelect-BmK6WApn.js";import"./use-app-preferences-gyulV-hA.js";import"./route-plugin-chrome-B-Goj3vG.js";import"./shortcutUtils-20iqPDwh.js";import"./project-file-tree-icons-DqqhgvoI.js";import"./WorkspaceApp-BNmtIdn4.js";import"./index-CWmEuVWV.js";import"./client-build-info-bcijLdfD.js";import"./init-Gi6I4Gst.js";function ot(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s<u||s===void 0&&u>=u)&&(s=u)}return s}function yt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function Z(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function Mt(t){return t.target.depth}function Nt(t){return t.depth}function Pt(t,n){return n-1-t.height}function dt(t,n){return t.sourceLinks.length?t.depth:n-1}function Ct(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,Mt)-1:0}function Y(t){return function(){return t}}function lt(t,n){return H(t.source,n.source)||t.index-n.index}function at(t,n){return H(t.target,n.target)||t.index-n.index}function H(t,n){return t.y0-n.y0}function J(t){return t.value}function It(t){return t.index}function $t(t){return t.nodes}function Ot(t){return t.links}function ct(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ut({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function zt(){let t=0,n=0,s=1,a=1,u=24,_=8,p,g=It,i=dt,o,c,m=$t,b=Ot,y=6;function x(){const e={nodes:m.apply(null,arguments),links:b.apply(null,arguments)};return E(e),L(e),A(e),N(e),S(e),ut(e),e}x.update=function(e){return ut(e),e},x.nodeId=function(e){return arguments.length?(g=typeof e=="function"?e:Y(e),x):g},x.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Y(e),x):i},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(_=p=+e,x):_},x.nodes=function(e){return arguments.length?(m=typeof e=="function"?e:Y(e),x):m},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:Y(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,s=+e[0],a=+e[1],x):[s-t,a-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],n=+e[0][1],a=+e[1][1],x):[[t,n],[s,a]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function E({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const l=new Map(e.map((h,r)=>[g(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:k,target:v}=r;typeof k!="object"&&(k=r.source=ct(l,k)),typeof v!="object"&&(v=r.target=ct(l,v)),k.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function L({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function A({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.depth=r;for(const{target:v}of k.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function N({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.height=r;for(const{source:v}of k.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function I({nodes:e}){const f=ot(e,r=>r.depth)+1,l=(s-t-u)/(f-1),h=new Array(f);for(const r of e){const k=Math.max(0,Math.min(f-1,Math.floor(i.call(null,r,f))));r.layer=k,r.x0=t+k*l,r.x1=r.x0+u,h[k]?h[k].push(r):h[k]=[r]}if(o)for(const r of h)r.sort(o);return h}function z(e){const f=yt(e,l=>(a-n-(l.length-1)*p)/Z(l,J));for(const l of e){let h=n;for(const r of l){r.y0=h,r.y1=h+r.value*f,h=r.y1+p;for(const k of r.sourceLinks)k.width=k.value*f}h=(a-h+p)/(l.length+1);for(let r=0;r<l.length;++r){const k=l[r];k.y0+=h*(r+1),k.y1+=h*(r+1)}$(l)}}function S(e){const f=I(e);p=Math.min(_,(a-n)/(ot(f,l=>l.length)-1)),z(f);for(let l=0;l<y;++l){const h=Math.pow(.99,l),r=Math.max(1-h,(l+1)/y);O(f,h,r),M(f,h,r)}}function M(e,f,l){for(let h=1,r=e.length;h<r;++h){const k=e[h];for(const v of k){let R=0,j=0;for(const{source:W,value:K}of v.targetLinks){let F=K*(v.layer-W.layer);R+=T(W,v)*F,j+=F}if(!(j>0))continue;let U=(R/j-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),P(k,l)}}function O(e,f,l){for(let h=e.length,r=h-2;r>=0;--r){const k=e[r];for(const v of k){let R=0,j=0;for(const{target:W,value:K}of v.sourceLinks){let F=K*(W.layer-v.layer);R+=V(v,W)*F,j+=F}if(!(j>0))continue;let U=(R/j-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(H),P(k,l)}}function P(e,f){const l=e.length>>1,h=e[l];d(e,h.y0-p,l-1,f),C(e,h.y1+p,l+1,f),d(e,a,e.length-1,f),C(e,n,0,f)}function C(e,f,l,h){for(;l<e.length;++l){const r=e[l],k=(f-r.y0)*h;k>1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+p}}function d(e,f,l,h){for(;l>=0;--l){const r=e[l],k=(r.y1-f)*h;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-p}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:l}}of f)l.sort(at);for(const{target:{targetLinks:l}}of e)l.sort(lt)}}function $(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:l}of e)f.sort(at),l.sort(lt)}function T(e,f){let l=e.y0-(e.sourceLinks.length-1)*p/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l+=r+p}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l-=r}return l}function V(e,f){let l=f.y0-(f.targetLinks.length-1)*p/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l+=r+p}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l-=r}return l}return x}var tt=Math.PI,et=2*tt,D=1e-6,jt=et-D;function nt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pt(){return new nt}nt.prototype=pt.prototype={constructor:nt,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,_){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+_)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var _=this._x1,p=this._y1,g=s-t,i=a-n,o=_-t,c=p-n,m=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>D)if(!(Math.abs(c*g-i*o)>D)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=s-_,y=a-p,x=g*g+i*i,E=b*b+y*y,L=Math.sqrt(x),A=Math.sqrt(m),N=u*Math.tan((tt-Math.acos((x+m-E)/(2*L*A)))/2),I=N/A,z=N/L;Math.abs(I-1)>D&&(this._+="L"+(t+I*o)+","+(n+I*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+z*g)+","+(this._y1=n+z*i)}},arc:function(t,n,s,a,u,_){t=+t,n=+n,s=+s,_=!!_;var p=s*Math.cos(a),g=s*Math.sin(a),i=t+p,o=n+g,c=1^_,m=_?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>D||Math.abs(this._y1-o)>D)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%et+et),m>jt?this._+="A"+s+","+s+",0,1,"+c+","+(t-p)+","+(n-g)+"A"+s+","+s+",0,1,"+c+","+(this._x1=i)+","+(this._y1=o):m>D&&(this._+="A"+s+","+s+",0,"+ +(m>=tt)+","+c+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ht(t){return function(){return t}}function Dt(t){return t[0]}function Bt(t){return t[1]}var Vt=Array.prototype.slice;function Rt(t){return t.source}function Ut(t){return t.target}function Wt(t){var n=Rt,s=Ut,a=Dt,u=Bt,_=null;function p(){var g,i=Vt.call(arguments),o=n.apply(this,i),c=s.apply(this,i);if(_||(_=g=pt()),t(_,+a.apply(this,(i[0]=o,i)),+u.apply(this,i),+a.apply(this,(i[0]=c,i)),+u.apply(this,i)),g)return _=null,g+""||null}return p.source=function(g){return arguments.length?(n=g,p):n},p.target=function(g){return arguments.length?(s=g,p):s},p.x=function(g){return arguments.length?(a=typeof g=="function"?g:ht(+g),p):a},p.y=function(g){return arguments.length?(u=typeof g=="function"?g:ht(+g),p):u},p.context=function(g){return arguments.length?(_=g??null,p):_},p}function Ft(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function Gt(){return Wt(Ft)}function Yt(t){return[t.source.x1,t.y0]}function Ht(t){return[t.target.x0,t.y1]}function Xt(){return Gt().source(Yt).target(Ht)}var it=function(){var t=function(g,i,o,c){for(o=o||{},c=g.length;c--;o[g[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var E=y.length-1;switch(b){case 7:const L=m.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());m.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,I=1,z=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(M.yy[O]=this.yy[O]);S.setInput(i,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var P=S.yylloc;y.push(P);var C=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||I,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,$,T,V,e={},f,l,h,r;;){if($=c[c.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((w===null||typeof w>"u")&&(w=d()),T=x[$]&&x[$][w]),typeof T>"u"||!T.length||!T[0]){var k="";r=[];for(f in x[$])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(L+1)+`:
|
|
2
|
+
`+S.showPosition()+`
|
|
3
|
+
Expecting `+r.join(", ")+", got '"+(this.terminals_[w]||w)+"'":k="Parse error on line "+(L+1)+": Unexpected "+(w==I?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(k,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:P,expected:r})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+w);switch(T[0]){case 1:c.push(w),b.push(S.yytext),y.push(S.yylloc),c.push(T[1]),w=null,A=S.yyleng,E=S.yytext,L=S.yylineno,P=S.yylloc;break;case 2:if(l=this.productions_[T[1]][1],e.$=b[b.length-l],e._$={first_line:y[y.length-(l||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(l||1)].first_column,last_column:y[y.length-1].last_column},C&&(e._$.range=[y[y.length-(l||1)].range[0],y[y.length-1].range[1]]),V=this.performAction.apply(e,[E,A,L,M.yy,T[1],b,y].concat(z)),typeof V<"u")return V;l&&(c=c.slice(0,-1*l*2),b=b.slice(0,-1*l),y=y.slice(0,-1*l)),c.push(this.productions_[T[1]][0]),b.push(e.$),y.push(e._$),h=x[c[c.length-2]][c[c.length-1]],c.push(h);break;case 3:return!0}}return!0}},_=function(){var g={EOF:1,parseError:function(o,c){if(this.yy.parser)this.yy.parser.parseError(o,c);else throw new Error(o)},setInput:function(i,o){return this.yy=o||this.yy||{},this._input=i,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},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var m=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),c.length-1&&(this.yylineno-=c.length-1);var b=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:c?(c.length===m.length?this.yylloc.first_column:0)+m[m.length-c.length].length-c[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
5
|
+
`+o+"^"},test_match:function(i,o){var c,m,b;if(this.options.backtrack_lexer&&(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(b.yylloc.range=this.yylloc.range.slice(0))),m=i[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],c=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var y in b)this[y]=b[y];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,o,c,m;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),y=0;y<b.length;y++)if(c=this._input.match(this.rules[b[y]]),c&&(!o||c[0].length>o[0].length)){if(o=c,m=y,this.options.backtrack_lexer){if(i=this.test_match(c,b[y]),i!==!1)return i;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(i=this.test_match(o,b[m]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var o=this.next();return o||this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){var o=this.conditionStack.length-1;return o>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},pushState:function(o){this.begin(o)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(o,c,m,b){switch(m){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return g}();u.lexer=_;function p(){this.yy={}}return p.prototype=u,u.Parser=p,new p}();it.parser=it;const X=it;let q=[],Q=[],B={};const qt=()=>{q=[],Q=[],B={},Lt()};class Qt{constructor(n,s,a=0){this.source=n,this.target=s,this.value=a}}const Kt=(t,n,s)=>{q.push(new Qt(t,n,s))};class Zt{constructor(n){this.ID=n}}const Jt=t=>(t=Et.sanitizeText(t,rt()),B[t]||(B[t]=new Zt(t),Q.push(B[t])),B[t]),te=()=>Q,ee=()=>q,ne=()=>({nodes:Q.map(t=>({id:t.ID})),links:q.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),ie={nodesMap:B,getConfig:()=>rt().sankey,getNodes:te,getLinks:ee,getGraph:ne,addLink:Kt,findOrCreateNode:Jt,getAccTitle:bt,setAccTitle:vt,getAccDescription:xt,setAccDescription:_t,getDiagramTitle:kt,setDiagramTitle:mt,clear:qt},gt=class st{static next(n){return new st(n+ ++st.count)}constructor(n){this.id=n,this.href=`#${n}`}toString(){return"url("+this.href+")"}};gt.count=0;let ft=gt;const se={left:Nt,right:Pt,center:Ct,justify:dt},re=function(t,n,s,a){const{securityLevel:u,sankey:_}=rt(),p=wt.sankey;let g;u==="sandbox"&&(g=G("#i"+n));const i=u==="sandbox"?G(g.nodes()[0].contentDocument.body):G("body"),o=u==="sandbox"?i.select(`[id="${n}"]`):G(`[id="${n}"]`),c=(_==null?void 0:_.width)??p.width,m=(_==null?void 0:_.height)??p.width,b=(_==null?void 0:_.useMaxWidth)??p.useMaxWidth,y=(_==null?void 0:_.nodeAlignment)??p.nodeAlignment,x=(_==null?void 0:_.prefix)??p.prefix,E=(_==null?void 0:_.suffix)??p.suffix,L=(_==null?void 0:_.showValues)??p.showValues,A=a.db.getGraph(),N=se[y];zt().nodeId(d=>d.id).nodeWidth(10).nodePadding(10+(L?15:0)).nodeAlign(N).extent([[0,0],[c,m]])(A);const S=At(Tt);o.append("g").attr("class","nodes").selectAll(".node").data(A.nodes).join("g").attr("class","node").attr("id",d=>(d.uid=ft.next("node-")).id).attr("transform",function(d){return"translate("+d.x0+","+d.y0+")"}).attr("x",d=>d.x0).attr("y",d=>d.y0).append("rect").attr("height",d=>d.y1-d.y0).attr("width",d=>d.x1-d.x0).attr("fill",d=>S(d.id));const M=({id:d,value:w})=>L?`${d}
|
|
7
|
+
${x}${Math.round(w*100)/100}${E}`:d;o.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(A.nodes).join("text").attr("x",d=>d.x0<c/2?d.x1+6:d.x0-6).attr("y",d=>(d.y1+d.y0)/2).attr("dy",`${L?"0":"0.35"}em`).attr("text-anchor",d=>d.x0<c/2?"start":"end").text(M);const O=o.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(A.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),P=(_==null?void 0:_.linkColor)||"gradient";if(P==="gradient"){const d=O.append("linearGradient").attr("id",w=>(w.uid=ft.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",w=>w.source.x1).attr("x2",w=>w.target.x0);d.append("stop").attr("offset","0%").attr("stop-color",w=>S(w.source.id)),d.append("stop").attr("offset","100%").attr("stop-color",w=>S(w.target.id))}let C;switch(P){case"gradient":C=d=>d.uid;break;case"source":C=d=>S(d.source.id);break;case"target":C=d=>S(d.target.id);break;default:C=P}O.append("path").attr("d",Xt()).attr("stroke",C).attr("stroke-width",d=>Math.max(1,d.width)),St(void 0,o,0,b)},oe={draw:re},le=t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
|
|
8
|
+
`).trim(),ae=X.parse.bind(X);X.parse=t=>ae(le(t));const Le={parser:X,db:ie,renderer:oe};export{Le as diagram};
|