@eeshaai/code 0.0.0-stage → 1.0.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.
Files changed (128) hide show
  1. package/LICENSE.md +115 -0
  2. package/README.md +322 -3
  3. package/dist/THIRD-PARTY-NOTICES.md +23 -0
  4. package/dist/claude-agent-sdk/LICENSE.md +1 -0
  5. package/dist/claude-agent-sdk/sdk.mjs +156 -0
  6. package/dist/cli.js +23 -0
  7. package/dist/pluginWorker.js +1610 -0
  8. package/dist/resources/styles/custom/instructions/design.md +284 -0
  9. package/dist/resources/styles/custom/instructions/requirements.md +161 -0
  10. package/dist/resources/styles/custom/instructions/tasks-implement.md +90 -0
  11. package/dist/resources/styles/custom/instructions/tasks.md +159 -0
  12. package/dist/resources/styles/custom/process.md +49 -0
  13. package/dist/resources/styles/custom/prompts/first.md +29 -0
  14. package/dist/resources/styles/custom/prompts/implement.md +27 -0
  15. package/dist/resources/styles/custom/prompts/rewrite-note.md +40 -0
  16. package/dist/resources/styles/custom/prompts/rewrite.md +32 -0
  17. package/dist/resources/styles/custom/style.yml +46 -0
  18. package/dist/resources/styles/grammar.md +731 -0
  19. package/dist/server.js +839 -0
  20. package/dist/web/chunks/abnfDiagram-VCTEODGH-6KC3BO47.js +2 -0
  21. package/dist/web/chunks/architecture-7GRP2DOG-JLXNDD4H.js +2 -0
  22. package/dist/web/chunks/architectureDiagram-5GKGNRK7-QKPCVOD2.js +37 -0
  23. package/dist/web/chunks/blockDiagram-I7D4REHJ-4XZWNXLB.js +130 -0
  24. package/dist/web/chunks/c4Diagram-7LVT6UL2-4HJHKNE3.js +39 -0
  25. package/dist/web/chunks/chunk-2DLEMZHM.js +33 -0
  26. package/dist/web/chunks/chunk-2RFQIKC6.js +232 -0
  27. package/dist/web/chunks/chunk-37NHO5VO.js +2 -0
  28. package/dist/web/chunks/chunk-46RPN6IE.js +3 -0
  29. package/dist/web/chunks/chunk-4IPDIKAU.js +2 -0
  30. package/dist/web/chunks/chunk-4KP3BIPB.js +2 -0
  31. package/dist/web/chunks/chunk-4S2DRQJ6.js +340 -0
  32. package/dist/web/chunks/chunk-4TORDSRR.js +2 -0
  33. package/dist/web/chunks/chunk-5KNOHX5X.js +15 -0
  34. package/dist/web/chunks/chunk-6FQEBIA3.js +133 -0
  35. package/dist/web/chunks/chunk-6KSWTVXD.js +3 -0
  36. package/dist/web/chunks/chunk-6TGTE6CF.js +2 -0
  37. package/dist/web/chunks/chunk-6URXM4C4.js +2 -0
  38. package/dist/web/chunks/chunk-6VRLULJH.js +2 -0
  39. package/dist/web/chunks/chunk-7XAOOQR4.js +2 -0
  40. package/dist/web/chunks/chunk-BUZPUGIT.js +2 -0
  41. package/dist/web/chunks/chunk-DIRT34TZ.js +2 -0
  42. package/dist/web/chunks/chunk-FGASMJTA.js +4 -0
  43. package/dist/web/chunks/chunk-FNIFXWXL.js +2 -0
  44. package/dist/web/chunks/chunk-FPLIRG3U.js +73 -0
  45. package/dist/web/chunks/chunk-GQPX4EIC.js +11 -0
  46. package/dist/web/chunks/chunk-HAKJ3AUV.js +2 -0
  47. package/dist/web/chunks/chunk-HBEUVMXY.js +2 -0
  48. package/dist/web/chunks/chunk-HNYXDXPN.js +63 -0
  49. package/dist/web/chunks/chunk-HX7W7GSO.js +2 -0
  50. package/dist/web/chunks/chunk-II6WN3ZG.js +2 -0
  51. package/dist/web/chunks/chunk-JOSXY3EP.js +169 -0
  52. package/dist/web/chunks/chunk-L34PKG4P.js +2 -0
  53. package/dist/web/chunks/chunk-LDXBIOBF.js +2 -0
  54. package/dist/web/chunks/chunk-LHNPPNB7.js +3 -0
  55. package/dist/web/chunks/chunk-LQ6CTWX6.js +2 -0
  56. package/dist/web/chunks/chunk-LSVIQRSY.js +2 -0
  57. package/dist/web/chunks/chunk-M3SWKTLZ.js +2 -0
  58. package/dist/web/chunks/chunk-MBZYSJFT.js +2 -0
  59. package/dist/web/chunks/chunk-MZEMPN3C.js +2 -0
  60. package/dist/web/chunks/chunk-OODDZ447.js +2 -0
  61. package/dist/web/chunks/chunk-OXLTOJNY.js +3 -0
  62. package/dist/web/chunks/chunk-PR453BYT.js +2 -0
  63. package/dist/web/chunks/chunk-QNEZP2TE.js +179 -0
  64. package/dist/web/chunks/chunk-R7TFKRNM.js +2 -0
  65. package/dist/web/chunks/chunk-T4HEWXAQ.js +2 -0
  66. package/dist/web/chunks/chunk-TPXX77KB.js +2 -0
  67. package/dist/web/chunks/chunk-TPYBIPJG.js +2 -0
  68. package/dist/web/chunks/chunk-TXNHMPKM.js +89 -0
  69. package/dist/web/chunks/chunk-VAKN3BTM.js +2 -0
  70. package/dist/web/chunks/chunk-VY4GEFSG.js +2 -0
  71. package/dist/web/chunks/chunk-XBYCKXUJ.js +207 -0
  72. package/dist/web/chunks/chunk-YM7LHP34.js +16 -0
  73. package/dist/web/chunks/classDiagram-ZZMXUADV-4J5HHZD6.js +2 -0
  74. package/dist/web/chunks/classDiagram-v2-VYDZK3BY-X6WY2DAS.js +2 -0
  75. package/dist/web/chunks/cose-bilkent-JH36ORCC-ZPRW5JRW.js +2 -0
  76. package/dist/web/chunks/cynefin-OW5HDTMX-SVVTQRRB.js +2 -0
  77. package/dist/web/chunks/cynefinDiagram-5FMLGOSQ-O7GURHJG.js +63 -0
  78. package/dist/web/chunks/dagre-GXQ25YYZ-WK67O4N6.js +5 -0
  79. package/dist/web/chunks/diagram-S7CK7UJ4-2CEO2EN2.js +31 -0
  80. package/dist/web/chunks/diagram-UQ7AKVKN-2Z4VHGF3.js +42 -0
  81. package/dist/web/chunks/diagram-VSXAHHWV-AN4BOWYB.js +4 -0
  82. package/dist/web/chunks/diagram-VX7I27RA-VEZ2GXCM.js +25 -0
  83. package/dist/web/chunks/diagram-Z3DM3KII-TGGNDSLW.js +25 -0
  84. package/dist/web/chunks/ebnfDiagram-PWID7BFC-7RM57IJV.js +2 -0
  85. package/dist/web/chunks/erDiagram-RLTQ6QDP-LCATC3YT.js +100 -0
  86. package/dist/web/chunks/eventmodeling-NTZA5JFV-2SR57JAH.js +2 -0
  87. package/dist/web/chunks/flowDiagram-HODETNUW-HU6Y2EYQ.js +2 -0
  88. package/dist/web/chunks/ganttDiagram-EL5Y4UJY-5VPBBF2V.js +293 -0
  89. package/dist/web/chunks/gitGraph-4MIJSDKK-25JPIQP7.js +2 -0
  90. package/dist/web/chunks/gitGraphDiagram-WWUBYQGX-HZMAGPIJ.js +107 -0
  91. package/dist/web/chunks/info-A6RAGUB7-72MROTVX.js +2 -0
  92. package/dist/web/chunks/infoDiagram-27XIBGKW-BQYTPGNG.js +3 -0
  93. package/dist/web/chunks/ishikawaDiagram-5VMMS53U-A54WWBPX.js +71 -0
  94. package/dist/web/chunks/journeyDiagram-3NMN7TZE-XRCTMTR7.js +140 -0
  95. package/dist/web/chunks/kanban-definition-UXKFOSKX-UW2PQXZF.js +90 -0
  96. package/dist/web/chunks/katex-B7HWCVTN.js +258 -0
  97. package/dist/web/chunks/mermaid.core-VL5SQK5M.js +19 -0
  98. package/dist/web/chunks/mindmap-definition-YA3MSWOX-2H2Z6CVN.js +97 -0
  99. package/dist/web/chunks/packet-AYTQ26CC-NEGDW4B6.js +2 -0
  100. package/dist/web/chunks/pegDiagram-XKGWAZYB-KC4BYUN7.js +2 -0
  101. package/dist/web/chunks/pie-WAS4IAKB-OT3EMGHT.js +2 -0
  102. package/dist/web/chunks/pieDiagram-E7YTZNPT-54T6XSU5.js +40 -0
  103. package/dist/web/chunks/quadrantDiagram-AXDQQJYC-3G3RXSTE.js +8 -0
  104. package/dist/web/chunks/radar-RG4KPBEZ-DCHU5FOQ.js +2 -0
  105. package/dist/web/chunks/railroad-74A4TZTK-RZX6D7H6.js +2 -0
  106. package/dist/web/chunks/railroad-abnf-HS5TGJTU-STTFN7R4.js +2 -0
  107. package/dist/web/chunks/railroad-ebnf-LZEXJU2U-RBXU3IBK.js +2 -0
  108. package/dist/web/chunks/railroad-peg-WCYAUIDC-OD5BXOH6.js +2 -0
  109. package/dist/web/chunks/railroadDiagram-O6MQD6OU-3LHKFF5N.js +2 -0
  110. package/dist/web/chunks/requirementDiagram-BXWQKSXE-M4LF54YT.js +85 -0
  111. package/dist/web/chunks/sankeyDiagram-P5KCCOFB-USCKKKNT.js +41 -0
  112. package/dist/web/chunks/sequenceDiagram-WJ2MYXX4-QZ2O4KWV.js +163 -0
  113. package/dist/web/chunks/sizeCapture-INFHLROL-DZI5JWEV.js +2 -0
  114. package/dist/web/chunks/stateDiagram-D77RDMKH-EQJNTBF3.js +2 -0
  115. package/dist/web/chunks/stateDiagram-v2-MP3YSRHH-WSCDKLG6.js +2 -0
  116. package/dist/web/chunks/swimlanes-42K2YHIH-H7SZ2HG6.js +2 -0
  117. package/dist/web/chunks/swimlanesDiagram-VR7AAH4N-DFYTBPVS.js +9 -0
  118. package/dist/web/chunks/timeline-definition-24CTP7MA-4Q2ARIQ6.js +121 -0
  119. package/dist/web/chunks/treeView-Q6P3EWNA-ADCP6RPT.js +2 -0
  120. package/dist/web/chunks/treemap-WGGIJYW6-NEV7DUDY.js +2 -0
  121. package/dist/web/chunks/vennDiagram-4TSXK5OY-WMJVK74C.js +35 -0
  122. package/dist/web/chunks/wardley-WFR3VGLG-4QZOFDI5.js +2 -0
  123. package/dist/web/chunks/wardleyDiagram-VM6X3IG4-CLB324RQ.js +79 -0
  124. package/dist/web/chunks/xychartDiagram-S5SC5T6Z-G5C2R7C2.js +8 -0
  125. package/dist/web/index.html +24 -0
  126. package/dist/web/page.css +2 -0
  127. package/dist/web/page.js +210 -0
  128. package/package.json +62 -6
@@ -0,0 +1,130 @@
1
+ import{C as Ce}from"./chunk-5KNOHX5X.js";import{a as Oe}from"./chunk-YM7LHP34.js";import{f as Ne,g as Ie,h as Te,i as ve}from"./chunk-GQPX4EIC.js";import{b as ae,e as De}from"./chunk-BUZPUGIT.js";import"./chunk-HNYXDXPN.js";import"./chunk-M3SWKTLZ.js";import"./chunk-OODDZ447.js";import"./chunk-FPLIRG3U.js";import"./chunk-II6WN3ZG.js";import{a as we,f as _e}from"./chunk-LHNPPNB7.js";import"./chunk-MBZYSJFT.js";import{N as me,O as ye,T as Ee,_ as ie,a as Le,b as ke,u as M}from"./chunk-6FQEBIA3.js";import{b as m,h as Y}from"./chunk-L34PKG4P.js";import{a as c}from"./chunk-LDXBIOBF.js";import{d as xe}from"./chunk-R7TFKRNM.js";xe();var oe=(function(){var e=c(function(C,u,r,a){for(r=r||{},a=C.length;a--;r[C[a]]=u);return r},"o"),o=[1,15],l=[1,7],n=[1,13],h=[1,14],p=[1,19],s=[1,16],g=[1,17],x=[1,18],k=[8,30],S=[8,10,21,28,29,30,31,39,43,46],b=[1,23],L=[1,24],E=[8,10,15,16,21,28,29,30,31,39,43,46],f=[8,10,15,16,21,27,28,29,30,31,39,43,46],_=[1,49],w={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:c(function(u,r,a,d,y,t,K){var i=t.length-1;switch(y){case 4:d.getLogger().debug("Rule: separator (NL) ");break;case 5:d.getLogger().debug("Rule: separator (Space) ");break;case 6:d.getLogger().debug("Rule: separator (EOF) ");break;case 7:d.getLogger().debug("Rule: hierarchy: ",t[i-1]),d.setHierarchy(t[i-1]);break;case 8:d.getLogger().debug("Stop NL ");break;case 9:d.getLogger().debug("Stop EOF ");break;case 10:d.getLogger().debug("Stop NL2 ");break;case 11:d.getLogger().debug("Stop EOF2 ");break;case 12:d.getLogger().debug("Rule: statement: ",t[i]),typeof t[i].length=="number"?this.$=t[i]:this.$=[t[i]];break;case 13:d.getLogger().debug("Rule: statement #2: ",t[i-1]),this.$=[t[i-1]].concat(t[i]);break;case 14:d.getLogger().debug("Rule: link: ",t[i],u),this.$={edgeTypeStr:t[i],label:""};break;case 15:d.getLogger().debug("Rule: LABEL link: ",t[i-3],t[i-1],t[i]),this.$={edgeTypeStr:t[i],label:t[i-1]};break;case 18:let P=parseInt(t[i]),V=d.generateId();this.$={id:V,type:"space",label:"",width:P,children:[]};break;case 23:d.getLogger().debug("Rule: (nodeStatement link node) ",t[i-2],t[i-1],t[i]," typestr: ",t[i-1].edgeTypeStr);let j=d.edgeStrToEdgeData(t[i-1].edgeTypeStr),Z=d.edgeStrToEdgeStartData(t[i-1].edgeTypeStr),U=d.edgeStrToThickness(t[i-1].edgeTypeStr),Q=d.edgeStrToPattern(t[i-1].edgeTypeStr);this.$=[{id:t[i-2].id,label:t[i-2].label,type:t[i-2].type,directions:t[i-2].directions},{id:t[i-2].id+"-"+t[i].id,start:t[i-2].id,end:t[i].id,label:t[i-1].label,type:"edge",thickness:U,pattern:Q,directions:t[i].directions,arrowTypeEnd:j,arrowTypeStart:Z},{id:t[i].id,label:t[i].label,type:d.typeStr2Type(t[i].typeStr),directions:t[i].directions}];break;case 24:d.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[i-1],t[i]),this.$={id:t[i-1].id,label:t[i-1].label,type:d.typeStr2Type(t[i-1].typeStr),directions:t[i-1].directions,widthInColumns:parseInt(t[i],10)};break;case 25:d.getLogger().debug("Rule: nodeStatement (node) ",t[i]),this.$={id:t[i].id,label:t[i].label,type:d.typeStr2Type(t[i].typeStr),directions:t[i].directions,widthInColumns:1};break;case 26:d.getLogger().debug("APA123",this?this:"na"),d.getLogger().debug("COLUMNS: ",t[i]),this.$={type:"column-setting",columns:t[i]==="auto"?-1:parseInt(t[i])};break;case 27:d.getLogger().debug("Rule: id-block statement : ",t[i-2],t[i-1]);let D=d.generateId();this.$={...t[i-2],type:"composite",children:t[i-1]};break;case 28:d.getLogger().debug("Rule: blockStatement : ",t[i-2],t[i-1],t[i]);let B=d.generateId();this.$={id:B,type:"composite",label:"",children:t[i-1]};break;case 29:d.getLogger().debug("Rule: node (NODE_ID separator): ",t[i]),this.$={id:t[i]};break;case 30:d.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[i-1],t[i]),this.$={id:t[i-1],label:t[i].label,typeStr:t[i].typeStr,directions:t[i].directions};break;case 31:d.getLogger().debug("Rule: dirList: ",t[i]),this.$=[t[i]];break;case 32:d.getLogger().debug("Rule: dirList: ",t[i-1],t[i]),this.$=[t[i-1]].concat(t[i]);break;case 33:d.getLogger().debug("Rule: nodeShapeNLabel: ",t[i-2],t[i-1],t[i]),this.$={typeStr:t[i-2]+t[i],label:t[i-1]};break;case 34:d.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[i-3],t[i-2]," #3:",t[i-1],t[i]),this.$={typeStr:t[i-3]+t[i],label:t[i-2],directions:t[i-1]};break;case 35:case 36:this.$={type:"classDef",id:t[i-1].trim(),css:t[i].trim()};break;case 37:this.$={type:"applyClass",id:t[i-1].trim(),styleClass:t[i].trim()};break;case 38:this.$={type:"applyStyles",id:t[i-1].trim(),stylesStr:t[i].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:o,11:3,13:4,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:n,29:h,31:p,39:s,43:g,46:x},{8:[1,20]},e(k,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:o,21:l,28:n,29:h,31:p,39:s,43:g,46:x}),e(S,[2,16],{14:22,15:b,16:L}),e(S,[2,17]),e(S,[2,18]),e(S,[2,19]),e(S,[2,20]),e(S,[2,21]),e(S,[2,22]),e(E,[2,25],{27:[1,25]}),e(S,[2,26]),{19:26,26:12,31:p},{10:o,11:27,13:4,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:n,29:h,31:p,39:s,43:g,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(f,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(k,[2,13]),{26:35,31:p},{31:[2,14]},{17:[1,36]},e(E,[2,24]),{10:o,11:37,13:4,14:22,15:b,16:L,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:n,29:h,31:p,39:s,43:g,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(f,[2,30]),{18:[1,43]},{18:[1,44]},e(E,[2,23]),{18:[1,45]},{30:[1,46]},e(S,[2,28]),e(S,[2,35]),e(S,[2,36]),e(S,[2,37]),e(S,[2,38]),{36:[1,47]},{33:48,34:_},{15:[1,50]},e(S,[2,27]),e(f,[2,33]),{38:[1,51]},{33:52,34:_,38:[2,31]},{31:[2,15]},e(f,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:c(function(u,r){if(r.recoverable)this.trace(u);else{var a=new Error(u);throw a.hash=r,a}},"parseError"),parse:c(function(u){var r=this,a=[0],d=[],y=[null],t=[],K=this.table,i="",P=0,V=0,j=0,Z=2,U=1,Q=t.slice.call(arguments,1),D=Object.create(this.lexer),B={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(B.yy[$]=this.yy[$]);D.setInput(u,B.yy),B.yy.lexer=D,B.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ee=D.yylloc;t.push(ee);var Je=D.options&&D.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ze(T){a.length=a.length-2*T,y.length=y.length-T,t.length=t.length-T}c(Ze,"popStack");function fe(){var T;return T=d.pop()||D.lex()||U,typeof T!="number"&&(T instanceof Array&&(d=T,T=d.pop()),T=r.symbols_[T]||T),T}c(fe,"lex");for(var I,te,R,O,_t,se,F={},H,A,Se,X;;){if(R=a[a.length-1],this.defaultActions[R]?O=this.defaultActions[R]:((I===null||typeof I>"u")&&(I=fe()),O=K[R]&&K[R][I]),typeof O>"u"||!O.length||!O[0]){var re="";X=[];for(H in K[R])this.terminals_[H]&&H>Z&&X.push("'"+this.terminals_[H]+"'");D.showPosition?re="Parse error on line "+(P+1)+`:
2
+ `+D.showPosition()+`
3
+ Expecting `+X.join(", ")+", got '"+(this.terminals_[I]||I)+"'":re="Parse error on line "+(P+1)+": Unexpected "+(I==U?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(re,{text:D.match,token:this.terminals_[I]||I,line:D.yylineno,loc:ee,expected:X})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+I);switch(O[0]){case 1:a.push(I),y.push(D.yytext),t.push(D.yylloc),a.push(O[1]),I=null,te?(I=te,te=null):(V=D.yyleng,i=D.yytext,P=D.yylineno,ee=D.yylloc,j>0&&j--);break;case 2:if(A=this.productions_[O[1]][1],F.$=y[y.length-A],F._$={first_line:t[t.length-(A||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(A||1)].first_column,last_column:t[t.length-1].last_column},Je&&(F._$.range=[t[t.length-(A||1)].range[0],t[t.length-1].range[1]]),se=this.performAction.apply(F,[i,V,P,B.yy,O[1],y,t].concat(Q)),typeof se<"u")return se;A&&(a=a.slice(0,-1*A*2),y=y.slice(0,-1*A),t=t.slice(0,-1*A)),a.push(this.productions_[O[1]][0]),y.push(F.$),t.push(F._$),Se=K[a[a.length-2]][a[a.length-1]],a.push(Se);break;case 3:return!0}}return!0},"parse")},N=(function(){var C={EOF:1,parseError:c(function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},"parseError"),setInput:c(function(u,r){return this.yy=r||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:c(function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var r=u.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),u},"input"),unput:c(function(u){var r=u.length,a=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var d=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 y=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===d.length?this.yylloc.first_column:0)+d[d.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:c(function(u){this.unput(this.match.slice(u))},"less"),pastInput:c(function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var u=this.pastInput(),r=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
5
+ `+r+"^"},"showPosition"),test_match:c(function(u,r){var a,d,y;if(this.options.backtrack_lexer&&(y={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&&(y.yylloc.range=this.yylloc.range.slice(0))),d=u[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,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(u[0].length),this.matched+=u[0],a=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var t in y)this[t]=y[t];return!1}return!1},"test_match"),next:c(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,r,a,d;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),t=0;t<y.length;t++)if(a=this._input.match(this.rules[y[t]]),a&&(!r||a[0].length>r[0].length)){if(r=a,d=t,this.options.backtrack_lexer){if(u=this.test_match(a,y[t]),u!==!1)return u;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(u=this.test_match(r,y[d]),u!==!1?u:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:c(function(){var r=this.next();return r||this.lex()},"lex"),begin:c(function(r){this.conditionStack.push(r)},"begin"),popState:c(function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:c(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:c(function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},"topState"),pushState:c(function(r){this.begin(r)},"pushState"),stateStackSize:c(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:c(function(r,a,d,y){var t=y;switch(d){case 0:return r.getLogger().debug("Found block-beta"),10;break;case 1:return r.getLogger().debug("Found id-block"),29;break;case 2:return r.getLogger().debug("Found block"),10;break;case 3:r.getLogger().debug(".",a.yytext);break;case 4:r.getLogger().debug("_",a.yytext);break;case 5:return 5;case 6:return a.yytext=-1,28;break;case 7:return a.yytext=a.yytext.replace(/columns\s+/,""),r.getLogger().debug("COLUMNS (LEX)",a.yytext),28;break;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:r.getLogger().debug("LEX: POPPING STR:",a.yytext),this.popState();break;case 13:return r.getLogger().debug("LEX: STR end:",a.yytext),"STR";break;case 14:return a.yytext=a.yytext.replace(/space\:/,""),r.getLogger().debug("SPACE NUM (LEX)",a.yytext),21;break;case 15:return a.yytext="1",r.getLogger().debug("COLUMNS (LEX)",a.yytext),21;break;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;break;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 21:return this.popState(),this.pushState("CLASSDEFID"),40;break;case 22:return this.popState(),41;break;case 23:return this.pushState("CLASS"),43;break;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;break;case 25:return this.popState(),45;break;case 26:return this.pushState("STYLE_STMNT"),46;break;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;break;case 28:return this.popState(),48;break;case 29:return this.pushState("acc_title"),"acc_title";break;case 30:return this.popState(),"acc_title_value";break;case 31:return this.pushState("acc_descr"),"acc_descr";break;case 32:return this.popState(),"acc_descr_value";break;case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),r.getLogger().debug("Lex: (("),"NODE_DEND";break;case 38:return this.popState(),r.getLogger().debug("Lex: (("),"NODE_DEND";break;case 39:return this.popState(),r.getLogger().debug("Lex: ))"),"NODE_DEND";break;case 40:return this.popState(),r.getLogger().debug("Lex: (("),"NODE_DEND";break;case 41:return this.popState(),r.getLogger().debug("Lex: (("),"NODE_DEND";break;case 42:return this.popState(),r.getLogger().debug("Lex: (-"),"NODE_DEND";break;case 43:return this.popState(),r.getLogger().debug("Lex: -)"),"NODE_DEND";break;case 44:return this.popState(),r.getLogger().debug("Lex: (("),"NODE_DEND";break;case 45:return this.popState(),r.getLogger().debug("Lex: ]]"),"NODE_DEND";break;case 46:return this.popState(),r.getLogger().debug("Lex: ("),"NODE_DEND";break;case 47:return this.popState(),r.getLogger().debug("Lex: ])"),"NODE_DEND";break;case 48:return this.popState(),r.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 49:return this.popState(),r.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 50:return this.popState(),r.getLogger().debug("Lex: )]"),"NODE_DEND";break;case 51:return this.popState(),r.getLogger().debug("Lex: )"),"NODE_DEND";break;case 52:return this.popState(),r.getLogger().debug("Lex: ]>"),"NODE_DEND";break;case 53:return this.popState(),r.getLogger().debug("Lex: ]"),"NODE_DEND";break;case 54:return r.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;break;case 55:return r.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;break;case 56:return r.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;break;case 57:return r.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 58:return r.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;break;case 59:return r.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 60:return r.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 61:return r.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 62:return r.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;break;case 63:return r.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;break;case 64:return r.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 65:return this.pushState("NODE"),35;break;case 66:return this.pushState("NODE"),35;break;case 67:return this.pushState("NODE"),35;break;case 68:return this.pushState("NODE"),35;break;case 69:return this.pushState("NODE"),35;break;case 70:return this.pushState("NODE"),35;break;case 71:return this.pushState("NODE"),35;break;case 72:return r.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;break;case 73:return this.pushState("BLOCK_ARROW"),r.getLogger().debug("LEX ARR START"),37;break;case 74:return r.getLogger().debug("Lex: NODE_ID",a.yytext),31;break;case 75:return r.getLogger().debug("Lex: EOF",a.yytext),8;break;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:r.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:r.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return r.getLogger().debug("LEX: NODE_DESCR:",a.yytext),"NODE_DESCR";break;case 83:r.getLogger().debug("LEX POPPING"),this.popState();break;case 84:r.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return a.yytext=a.yytext.replace(/^,\s*/,""),r.getLogger().debug("Lex (right): dir:",a.yytext),"DIR";break;case 86:return a.yytext=a.yytext.replace(/^,\s*/,""),r.getLogger().debug("Lex (left):",a.yytext),"DIR";break;case 87:return a.yytext=a.yytext.replace(/^,\s*/,""),r.getLogger().debug("Lex (x):",a.yytext),"DIR";break;case 88:return a.yytext=a.yytext.replace(/^,\s*/,""),r.getLogger().debug("Lex (y):",a.yytext),"DIR";break;case 89:return a.yytext=a.yytext.replace(/^,\s*/,""),r.getLogger().debug("Lex (up):",a.yytext),"DIR";break;case 90:return a.yytext=a.yytext.replace(/^,\s*/,""),r.getLogger().debug("Lex (down):",a.yytext),"DIR";break;case 91:return a.yytext="]>",r.getLogger().debug("Lex (ARROW_DIR end):",a.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";break;case 92:return r.getLogger().debug("Lex: LINK","#"+a.yytext+"#"),15;break;case 93:return r.getLogger().debug("Lex: LINK",a.yytext),15;break;case 94:return r.getLogger().debug("Lex: LINK",a.yytext),15;break;case 95:return r.getLogger().debug("Lex: LINK",a.yytext),15;break;case 96:return r.getLogger().debug("Lex: START_LINK",a.yytext),this.pushState("LLABEL"),16;break;case 97:return r.getLogger().debug("Lex: START_LINK",a.yytext),this.pushState("LLABEL"),16;break;case 98:return r.getLogger().debug("Lex: START_LINK",a.yytext),this.pushState("LLABEL"),16;break;case 99:this.pushState("md_string");break;case 100:return r.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";break;case 101:return this.popState(),r.getLogger().debug("Lex: LINK","#"+a.yytext+"#"),15;break;case 102:return this.popState(),r.getLogger().debug("Lex: LINK",a.yytext),15;break;case 103:return this.popState(),r.getLogger().debug("Lex: LINK",a.yytext),15;break;case 104:return r.getLogger().debug("Lex: COLON",a.yytext),a.yytext=a.yytext.slice(1),27;break}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}};return C})();w.lexer=N;function v(){this.yy={}}return c(v,"Parser"),v.prototype=w,w.Parser=v,new v})();oe.parser=oe;var Qe=oe,z=new Map,he=[],le=new Map,ze="color",Be="fill",$e="bgFill",Re=",",G=new Map,ue="",et=c(e=>me.sanitizeText(e,ie()),"sanitizeText"),tt=c(function(e,o=""){let l=G.get(e);l||(l={id:e,styles:[],textStyles:[]},G.set(e,l)),o?.split(Re).forEach(n=>{let h=n.replace(/([^;]*);/,"$1").trim();if(RegExp(ze).exec(n)){let s=h.replace(Be,$e).replace(ze,Be);l.textStyles.push(s)}l.styles.push(h)})},"addStyleClass"),st=c(function(e,o=""){let l=z.get(e);o!=null&&(l.styles=o.split(Re))},"addStyle2Node"),rt=c(function(e,o){e.split(",").forEach(function(l){let n=z.get(l);if(n===void 0){let h=l.trim();n={id:h,type:"na",children:[]},z.set(h,n)}n.classes||(n.classes=[]),n.classes.push(o)})},"setCssClass"),Pe=c((e,o)=>{let l=e.flat(),n=[],p=l.find(s=>s?.type==="column-setting")?.columns??-1;for(let s of l){if(typeof p=="number"&&p>0&&s.type!=="column-setting"&&typeof s.widthInColumns=="number"&&s.widthInColumns>p&&m.warn(`Block ${s.id} width ${s.widthInColumns} exceeds configured column width ${p}`),s.label&&(s.label=et(s.label)),s.type==="classDef"){tt(s.id,s.css);continue}if(s.type==="applyClass"){rt(s.id,s?.styleClass??"");continue}if(s.type==="applyStyles"){s?.stylesStr&&st(s.id,s?.stylesStr);continue}if(s.type==="column-setting")o.columns=s.columns??-1;else if(s.type==="edge"){let g=(le.get(s.id)??0)+1;le.set(s.id,g),s.id=g+"-"+s.id,he.push(s)}else{s.label||(s.type==="composite"?s.label="":s.label=s.id);let g=z.get(s.id);if(g===void 0?z.set(s.id,s):(s.type!=="na"&&(g.type=s.type),s.label!==s.id&&(g.label=s.label)),s.children&&Pe(s.children,s),s.type==="space"){let x=s.width??1;for(let k=0;k<x;k++){let S=we(s);S.id=S.id+"-"+k,z.set(S.id,S),n.push(S)}}else g===void 0&&n.push(s)}}o.children=n},"populateBlockDatabase"),ge=[],W={id:"root",type:"composite",children:[],columns:-1},it=c(()=>{m.debug("Clear called"),Ee(),W={id:"root",type:"composite",children:[],columns:-1},z=new Map([["root",W]]),ge=[],G=new Map,he=[],le=new Map,ue=""},"clear");function Fe(e){switch(m.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return m.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}c(Fe,"typeStr2Type");function Me(e){return m.debug("typeStr2Type",e),e==="=="?"thick":"normal"}c(Me,"edgeTypeStr2Type");function Ke(e){switch(e.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}c(Ke,"edgeStrToEdgeData");function Ye(e){switch(e.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}c(Ye,"edgeStrToEdgeStartData");function We(e){return e.includes("==")?"thick":"normal"}c(We,"edgeStrToThickness");function Ve(e){return e.includes(".-")?"dotted":"solid"}c(Ve,"edgeStrToPattern");var Ae=0,at=c(()=>(Ae++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Ae),"generateId"),nt=c(e=>{W.children=e,Pe(e,W),ge=W.children},"setHierarchy"),ot=c(e=>{let o=z.get(e);return o?o.columns?o.columns:o.children?o.children.length:-1:-1},"getColumns"),lt=c(()=>[...z.values()],"getBlocksFlat"),ct=c(()=>ge||[],"getBlocks"),ht=c(()=>he,"getEdges"),ut=c(e=>z.get(e),"getBlock"),gt=c(e=>{z.set(e.id,e)},"setBlock"),dt=c(e=>{ue=e},"setDiagramId"),pt=c(()=>ue,"getDiagramId"),bt=c(()=>m,"getLogger"),ft=c(function(){return G},"getClasses"),St={getConfig:c(()=>M().block,"getConfig"),typeStr2Type:Fe,edgeTypeStr2Type:Me,edgeStrToEdgeData:Ke,edgeStrToEdgeStartData:Ye,edgeStrToThickness:We,edgeStrToPattern:Ve,getLogger:bt,getBlocksFlat:lt,getBlocks:ct,getEdges:ht,setHierarchy:nt,getBlock:ut,setBlock:gt,getColumns:ot,getClasses:ft,clear:it,generateId:at,setDiagramId:dt,getDiagramId:pt},xt=St,ne=c((e,o)=>{let l=ke,n=l(e,"r"),h=l(e,"g"),p=l(e,"b");return Le(n,h,p,o)},"fade"),Lt=c(e=>`.label {
7
+ font-family: ${e.fontFamily};
8
+ color: ${e.nodeTextColor||e.textColor};
9
+ }
10
+ .cluster-label text {
11
+ fill: ${e.titleColor};
12
+ }
13
+ .cluster-label span {
14
+ color: ${e.titleColor};
15
+ }
16
+
17
+
18
+
19
+ .label text,span {
20
+ fill: ${e.nodeTextColor||e.textColor};
21
+ color: ${e.nodeTextColor||e.textColor};
22
+ }
23
+
24
+ .node rect,
25
+ .node circle,
26
+ .node ellipse,
27
+ .node polygon,
28
+ .node path {
29
+ fill: ${e.mainBkg};
30
+ stroke: ${e.nodeBorder};
31
+ stroke-width: 1px;
32
+ }
33
+ .flowchart-label text {
34
+ text-anchor: middle;
35
+ }
36
+ // .flowchart-label .text-outer-tspan {
37
+ // text-anchor: middle;
38
+ // }
39
+ // .flowchart-label .text-inner-tspan {
40
+ // text-anchor: start;
41
+ // }
42
+
43
+ .node .label {
44
+ text-align: center;
45
+ }
46
+ .node.clickable {
47
+ cursor: pointer;
48
+ }
49
+
50
+ .arrowheadPath {
51
+ fill: ${e.arrowheadColor};
52
+ }
53
+
54
+ .edgePaths .path {
55
+ stroke: ${e.lineColor};
56
+ stroke-width: 2.0px;
57
+ }
58
+
59
+ .flowchart-link {
60
+ stroke: ${e.lineColor};
61
+ fill: none;
62
+ }
63
+
64
+ .edgeLabel {
65
+ background-color: ${e.edgeLabelBackground};
66
+ /*
67
+ * This is for backward compatibility with existing code that didn't
68
+ * add a \`<p>\` around edge labels.
69
+ *
70
+ * TODO: We should probably remove this in a future release.
71
+ */
72
+ p {
73
+ margin: 0;
74
+ padding: 0;
75
+ display: inline;
76
+ }
77
+ rect {
78
+ opacity: 0.5;
79
+ background-color: ${e.edgeLabelBackground};
80
+ fill: ${e.edgeLabelBackground};
81
+ }
82
+ text-align: center;
83
+ }
84
+
85
+ /* For html labels only */
86
+ .labelBkg {
87
+ background-color: ${e.edgeLabelBackground};
88
+ }
89
+
90
+ .node .cluster {
91
+ // fill: ${ne(e.mainBkg,.5)};
92
+ fill: ${ne(e.clusterBkg,.5)};
93
+ stroke: ${ne(e.clusterBorder,.2)};
94
+ box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
95
+ stroke-width: 1px;
96
+ }
97
+
98
+ .cluster text {
99
+ fill: ${e.titleColor};
100
+ }
101
+
102
+ .cluster span {
103
+ color: ${e.titleColor};
104
+ }
105
+ /* .cluster div {
106
+ color: ${e.titleColor};
107
+ } */
108
+
109
+ div.mermaidTooltip {
110
+ position: absolute;
111
+ text-align: center;
112
+ max-width: 200px;
113
+ padding: 2px;
114
+ font-family: ${e.fontFamily};
115
+ font-size: 12px;
116
+ background: ${e.tertiaryColor};
117
+ border: 1px solid ${e.border2};
118
+ border-radius: 2px;
119
+ pointer-events: none;
120
+ z-index: 100;
121
+ }
122
+
123
+ .flowchartTitleText {
124
+ text-anchor: middle;
125
+ font-size: 18px;
126
+ fill: ${e.textColor};
127
+ }
128
+ ${Oe()}
129
+ `,"getStyles"),kt=Lt;function ce(e,o){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(o<0||!Number.isInteger(o))throw new Error("Position must be a non-negative integer."+o);if(e<0)return{px:o,py:0};if(e===1)return{px:0,py:o};let l=o%e,n=Math.floor(o/e);return{px:l,py:n}}c(ce,"calculateBlockPosition");var mt=c(e=>{let o=0,l=0;for(let n of e.children){let{width:h,height:p,x:s,y:g}=n.size??{width:0,height:0,x:0,y:0};if(m.debug("getMaxChildSize abc95 child:",n.id,"width:",h,"height:",p,"x:",s,"y:",g,n.type),n.type==="space")continue;let x=h/(n.widthInColumns??1);x>o&&(o=x),p>l&&(l=p)}return{width:o,height:l}},"getMaxChildSize");function q(e,o,l=0,n=0,h=8){m.debug("setBlockSizes abc95 (start)",e.id,e?.size?.x,"block width =",e?.size,"siblingWidth",l),e?.size?.width||(e.size={width:l,height:n,x:0,y:0});let p=0,s=0;if(e.children?.length>0){for(let f of e.children)q(f,o,0,0,h);let g=mt(e);p=g.width,s=g.height,m.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",p,s);for(let f of e.children)f.size&&(m.debug(`abc95 Setting size of children of ${e.id} id=${f.id} ${p} ${s} ${JSON.stringify(f.size)}`),f.size.width=p*(f.widthInColumns??1)+h*((f.widthInColumns??1)-1),f.size.height=s,f.size.x=0,f.size.y=0,m.debug(`abc95 updating size of ${e.id} children child:${f.id} maxWidth:${p} maxHeight:${s}`));for(let f of e.children)q(f,o,p,s,h);let x=e.columns??-1,k=0;for(let f of e.children)k+=f.widthInColumns??1;let S=e.children.length;x>0&&x<k&&(S=x);let b=Math.ceil(k/S),L=S*(p+h)+h,E=b*(s+h)+h;if(L<l){m.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${l} siblingHeight ${n} width ${L}`),L=l,E=n;let f=(l-S*h-h)/S,_=(n-b*h-h)/b;m.debug("Size indata abc88",e.id,"childWidth",f,"maxWidth",p),m.debug("Size indata abc88",e.id,"childHeight",_,"maxHeight",s),m.debug("Size indata abc88 xSize",S,"padding",h);for(let w of e.children)w.size&&(w.size.width=f,w.size.height=_,w.size.x=0,w.size.y=0)}if(m.debug(`abc95 (finale calc) ${e.id} xSize ${S} ySize ${b} columns ${x}${e.children.length} width=${Math.max(L,e.size?.width||0)}`),L<(e?.size?.width||0)){L=e?.size?.width||0;let f=x>0?Math.min(e.children.length,x):e.children.length;if(f>0){let _=(L-f*h-h)/f;m.debug("abc95 (growing to fit) width",e.id,L,e.size?.width,_);for(let w of e.children)w.size&&(w.size.width=_)}}e.size={width:L,height:E,x:0,y:0}}m.debug("setBlockSizes abc94 (done)",e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}c(q,"setBlockSizes");function de(e,o,l=8){m.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);let n=e.columns??-1;if(m.debug("layoutBlocks columns abc95",e.id,"=>",n,e),e.children&&e.children.length>0){let h=e?.children[0]?.size?.width??0,p=e.children.length*h+(e.children.length-1)*l;m.debug("widthOfChildren 88",p,"posX");let s=new Map;{let b=0;for(let L of e.children){if(!L.size)continue;let{py:E}=ce(n,b),f=s.get(E)??0;L.size.height>f&&s.set(E,L.size.height);let _=L?.widthInColumns??1;n>0&&(_=Math.min(_,n-b%n)),b+=_}}let g=new Map;{let b=0,L=[...s.keys()].sort((E,f)=>E-f);for(let E of L)g.set(E,b),b+=(s.get(E)??0)+l}let x=0;m.debug("abc91 block?.size?.x",e.id,e?.size?.x);let k=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-l,S=0;for(let b of e.children){let L=e;if(!b.size)continue;let{width:E,height:f}=b.size,{px:_,py:w}=ce(n,x);if(w!=S&&(S=w,k=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-l,m.debug("New row in layout for block",e.id," and child ",b.id,S)),m.debug(`abc89 layout blocks (child) id: ${b.id} Pos: ${x} (px, py) ${_},${w} (${L?.size?.x},${L?.size?.y}) parent: ${L.id} width: ${E}${l}`),L.size){let v=E/2;b.size.x=k+l+v,m.debug(`abc91 layout blocks (calc) px, pyid:${b.id} startingPos=X${k} new startingPosX${b.size.x} ${v} padding=${l} width=${E} halfWidth=${v} => x:${b.size.x} y:${b.size.y} ${b.widthInColumns} (width * (child?.w || 1)) / 2 ${E*(b?.widthInColumns??1)/2}`),k=b.size.x+v;let C=g.get(w)??0,u=s.get(w)??f;b.size.y=L.size.y-L.size.height/2+C+u/2+l,m.debug(`abc88 layout blocks (calc) px, pyid:${b.id}startingPosX${k}${l}${v}=>x:${b.size.x}y:${b.size.y}${b.widthInColumns}(width * (child?.w || 1)) / 2${E*(b?.widthInColumns??1)/2}`)}b.children&&de(b,o,l);let N=b?.widthInColumns??1;n>0&&(N=Math.min(N,n-x%n)),x+=N,m.debug("abc88 columnsPos",b,x)}}m.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}c(de,"layoutBlocks");function pe(e,{minX:o,minY:l,maxX:n,maxY:h}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){let{x:p,y:s,width:g,height:x}=e.size;p-g/2<o&&(o=p-g/2),s-x/2<l&&(l=s-x/2),p+g/2>n&&(n=p+g/2),s+x/2>h&&(h=s+x/2)}if(e.children)for(let p of e.children)({minX:o,minY:l,maxX:n,maxY:h}=pe(p,{minX:o,minY:l,maxX:n,maxY:h}));return{minX:o,minY:l,maxX:n,maxY:h}}c(pe,"findBounds");function je(e){let o=e.getBlock("root");if(!o)return;let l=ie()?.block?.padding??8;q(o,e,0,0,l),de(o,e,l),m.debug("getBlocks",JSON.stringify(o,null,2));let{minX:n,minY:h,maxX:p,maxY:s}=pe(o),g=s-h,x=p-n;return{x:n,y:h,width:x,height:g}}c(je,"layout");function be(e,o,l=!1){let n=e,h="default";(n?.classes?.length||0)>0&&(h=(n?.classes??[]).join(" ")),h=h+" flowchart-label";let p=(n?.classes??[]).flatMap(f=>o.getClasses().get(f)?.styles??[]),s=0,g="rect",x;switch(n.type){case"round":s=5,g="rect";break;case"composite":s=0,g="composite",x=0;break;case"square":g="rect";break;case"diamond":g="question";break;case"hexagon":g="hexagon";break;case"block_arrow":g="block_arrow";break;case"odd":g="rect_left_inv_arrow";break;case"lean_right":g="lean_right";break;case"lean_left":g="lean_left";break;case"trapezoid":g="trapezoid";break;case"inv_trapezoid":g="inv_trapezoid";break;case"rect_left_inv_arrow":g="rect_left_inv_arrow";break;case"circle":g="circle";break;case"ellipse":g="ellipse";break;case"stadium":g="stadium";break;case"subroutine":g="subroutine";break;case"cylinder":g="cylinder";break;case"group":g="rect";break;case"doublecircle":g="doublecircle";break;default:g="rect"}let k=_e(n?.styles??[]),S=n.label,b=n.size??{width:0,height:0,x:0,y:0},L=o.getDiagramId();return{labelStyle:k.labelStyle,shape:g,label:S,labelText:S,rx:s,ry:s,class:h,cssClasses:h,cssStyles:n?.styles??[],cssCompiledStyles:p,style:k.style,id:n.id,domId:L?`${L}-${n.id}`:n.id,isGroup:!1,directions:n.directions,width:b.width||void 0,height:b.height||void 0,wrappingWidth:b.width||Number.POSITIVE_INFINITY,x:b.x,y:b.y,positioned:l,intersect:void 0,padding:x??M()?.block?.padding??0,widthInColumns:n.widthInColumns??1}}c(be,"getNodeFromBlock");async function Ue(e,o,l){let n=be(o,l,!1);if(o.type==="group")return;let h=M(),p=await ae(e,n,{config:h}),s=p.node()?.getBBox()??{width:0,height:0},g=l.getBlock(n.id);g.size={width:s.width,height:s.height,x:0,y:0,node:p},l.setBlock(g),p.remove()}c(Ue,"calculateBlockSize");async function He(e,o,l){let n=be(o,l,!0);if(l.getBlock(n.id).type!=="space"){let p=M();await ae(e,n,{config:p}),o.intersect=n?.intersect,De(n)}}c(He,"insertBlockPositioned");async function J(e,o,l,n){for(let h of o)await n(e,h,l),h.children&&await J(e,h.children,l,n)}c(J,"performOperations");async function Xe(e,o,l){await J(e,o,l,Ue)}c(Xe,"calculateBlockSizes");async function Ge(e,o,l){await J(e,o,l,He)}c(Ge,"insertBlocks");async function qe(e,o,l,n,h){let p=new Ce({multigraph:!0,compound:!0});p.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(let s of l)s.size&&p.setNode(s.id,{width:s.size.width,height:s.size.height,intersect:s.intersect});for(let s of o)if(s.start&&s.end){let g=n.getBlock(s.start),x=n.getBlock(s.end);if(g?.size&&x?.size){let k=g.size,S=x.size,b=[{x:k.x,y:k.y},{x:k.x+(S.x-k.x)/2,y:k.y+(S.y-k.y)/2},{x:S.x,y:S.y}],L=h?`${h}-${s.id}`:s.id,E=s.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal",f=s.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid",_=`${E} ${f} flowchart-link LS-a1 LE-b1`;Te(e,{...s,id:L,arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:b,classes:_},{},"block",p.node(s.start),p.node(s.end),h),s.label&&(await Ne(e,{...s,label:s.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:b,classes:_}),Ie({...s,x:b[1].x,y:b[1].y},{originalPath:b}))}}}c(qe,"insertEdges");var yt=c(function(e,o){return o.db.getClasses()},"getClasses"),Et=c(async function(e,o,l,n){let{securityLevel:h,block:p}=M(),s=n.db;s.setDiagramId(o);let g;h==="sandbox"&&(g=Y("#i"+o));let x=h==="sandbox"?Y(g.nodes()[0].contentDocument.body):Y("body"),k=h==="sandbox"?x.select(`[id="${o}"]`):Y(`[id="${o}"]`);ve(k,["point","circle","cross"],n.type,o);let b=s.getBlocks(),L=s.getBlocksFlat(),E=s.getEdges(),f=k.insert("g").attr("class","block");await Xe(f,b,s);let _=je(s);await Ge(f,b,s),await qe(f,E,L,s,o);let w=f.node()?.getBBox(),N=w&&Number.isFinite(w.width)&&Number.isFinite(w.height)?w:_;if(N){let v=Math.max(1,Math.round(.125*(N.width/N.height))),C=N.height+v+10,u=N.width+10,{useMaxWidth:r}=p;ye(k,C,u,!!r),m.debug("Here Bounds",_,N),k.attr("viewBox",`${N.x-5} ${N.y-5} ${N.width+10} ${N.height+10}`)}},"draw"),wt={draw:Et,getClasses:yt},Wt={parser:Qe,db:xt,renderer:wt,styles:kt};export{Wt as diagram};
130
+ //# sourceMappingURL=blockDiagram-I7D4REHJ-4XZWNXLB.js.map
@@ -0,0 +1,39 @@
1
+ import{a as Ee}from"./chunk-T4HEWXAQ.js";import{f as ke}from"./chunk-HNYXDXPN.js";import"./chunk-M3SWKTLZ.js";import"./chunk-OODDZ447.js";import"./chunk-FPLIRG3U.js";import"./chunk-II6WN3ZG.js";import{i as ve,j as te,k as Rt}from"./chunk-LHNPPNB7.js";import"./chunk-MBZYSJFT.js";import{H as $t,N as Vt,O as be,U as _e,V as me,W as ge,X as xe,_ as Et,h as ye}from"./chunk-6FQEBIA3.js";import{b as Zt,h as Yt}from"./chunk-L34PKG4P.js";import{a as d}from"./chunk-LDXBIOBF.js";import{d as fe}from"./chunk-R7TFKRNM.js";fe();var Ut=(function(){var t=d(function(yt,m,x,k){for(x=x||{},k=yt.length;k--;x[yt[k]]=m);return x},"o"),e=[1,24],s=[1,25],a=[1,26],u=[1,27],i=[1,28],n=[1,63],l=[1,64],r=[1,65],h=[1,66],y=[1,67],f=[1,68],_=[1,69],v=[1,29],w=[1,30],N=[1,31],O=[1,32],P=[1,33],M=[1,34],W=[1,35],X=[1,36],q=[1,37],H=[1,38],Q=[1,39],K=[1,40],G=[1,41],J=[1,42],Z=[1,43],$=[1,44],tt=[1,45],et=[1,46],nt=[1,47],rt=[1,48],st=[1,50],at=[1,51],it=[1,52],ot=[1,53],lt=[1,54],ct=[1,55],ut=[1,56],ht=[1,57],dt=[1,58],pt=[1,59],ft=[1,60],Tt=[14,42],Wt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],wt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],E=[1,82],S=[1,83],T=[1,84],C=[1,85],R=[12,14,42],le=[12,14,33,42],Lt=[12,14,33,42,76,77,79,80],gt=[12,33],Xt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:d(function(m,x,k,b,D,o,Ot){var p=o.length-1;switch(D){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(o[p-3]);break;case 19:b.setTitle(o[p].substring(6)),this.$=o[p].substring(6);break;case 20:b.setAccDescription(o[p].substring(15)),this.$=o[p].substring(15);break;case 21:this.$=o[p].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=o[p].trim(),b.setAccDescription(this.$);break;case 28:o[p].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 29:o[p].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 30:b.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 31:o[p].splice(2,0,"CONTAINER"),b.addContainerBoundary(...o[p]),this.$=o[p];break;case 32:b.addDeploymentNode("node",...o[p]),this.$=o[p];break;case 33:b.addDeploymentNode("nodeL",...o[p]),this.$=o[p];break;case 34:b.addDeploymentNode("nodeR",...o[p]),this.$=o[p];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...o[p]),this.$=o[p];break;case 40:b.addPersonOrSystem("external_person",...o[p]),this.$=o[p];break;case 41:b.addPersonOrSystem("system",...o[p]),this.$=o[p];break;case 42:b.addPersonOrSystem("system_db",...o[p]),this.$=o[p];break;case 43:b.addPersonOrSystem("system_queue",...o[p]),this.$=o[p];break;case 44:b.addPersonOrSystem("external_system",...o[p]),this.$=o[p];break;case 45:b.addPersonOrSystem("external_system_db",...o[p]),this.$=o[p];break;case 46:b.addPersonOrSystem("external_system_queue",...o[p]),this.$=o[p];break;case 47:b.addContainer("container",...o[p]),this.$=o[p];break;case 48:b.addContainer("container_db",...o[p]),this.$=o[p];break;case 49:b.addContainer("container_queue",...o[p]),this.$=o[p];break;case 50:b.addContainer("external_container",...o[p]),this.$=o[p];break;case 51:b.addContainer("external_container_db",...o[p]),this.$=o[p];break;case 52:b.addContainer("external_container_queue",...o[p]),this.$=o[p];break;case 53:b.addComponent("component",...o[p]),this.$=o[p];break;case 54:b.addComponent("component_db",...o[p]),this.$=o[p];break;case 55:b.addComponent("component_queue",...o[p]),this.$=o[p];break;case 56:b.addComponent("external_component",...o[p]),this.$=o[p];break;case 57:b.addComponent("external_component_db",...o[p]),this.$=o[p];break;case 58:b.addComponent("external_component_queue",...o[p]),this.$=o[p];break;case 60:b.addRel("rel",...o[p]),this.$=o[p];break;case 61:b.addRel("birel",...o[p]),this.$=o[p];break;case 62:b.addRel("rel_u",...o[p]),this.$=o[p];break;case 63:b.addRel("rel_d",...o[p]),this.$=o[p];break;case 64:b.addRel("rel_l",...o[p]),this.$=o[p];break;case 65:b.addRel("rel_r",...o[p]),this.$=o[p];break;case 66:b.addRel("rel_b",...o[p]),this.$=o[p];break;case 67:o[p].splice(0,1),b.addRel("rel",...o[p]),this.$=o[p];break;case 68:b.updateElStyle("update_el_style",...o[p]),this.$=o[p];break;case 69:b.updateRelStyle("update_rel_style",...o[p]),this.$=o[p];break;case 70:b.updateLayoutConfig("update_layout_config",...o[p]),this.$=o[p];break;case 71:this.$=[o[p]];break;case 72:o[p].unshift(o[p-1]),this.$=o[p];break;case 73:case 75:this.$=o[p].trim();break;case 74:let xt={};xt[o[p-1].trim()]=o[p].trim(),this.$=xt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:_,43:23,44:v,45:w,46:N,47:O,48:P,49:M,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:rt,64:st,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:70,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:_,43:23,44:v,45:w,46:N,47:O,48:P,49:M,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:rt,64:st,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:71,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:_,43:23,44:v,45:w,46:N,47:O,48:P,49:M,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:rt,64:st,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:72,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:_,43:23,44:v,45:w,46:N,47:O,48:P,49:M,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:rt,64:st,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:73,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:_,43:23,44:v,45:w,46:N,47:O,48:P,49:M,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:rt,64:st,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{14:[1,74]},t(Tt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:r,38:h,39:y,40:f,41:_,44:v,45:w,46:N,47:O,48:P,49:M,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:rt,64:st,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft}),t(Tt,[2,14]),t(Wt,[2,16],{12:[1,76]}),t(Tt,[2,36],{12:[1,77]}),t(wt,[2,19]),t(wt,[2,20]),{25:[1,78]},{27:[1,79]},t(wt,[2,23]),{35:80,75:81,76:E,77:S,79:T,80:C},{35:86,75:81,76:E,77:S,79:T,80:C},{35:87,75:81,76:E,77:S,79:T,80:C},{35:88,75:81,76:E,77:S,79:T,80:C},{35:89,75:81,76:E,77:S,79:T,80:C},{35:90,75:81,76:E,77:S,79:T,80:C},{35:91,75:81,76:E,77:S,79:T,80:C},{35:92,75:81,76:E,77:S,79:T,80:C},{35:93,75:81,76:E,77:S,79:T,80:C},{35:94,75:81,76:E,77:S,79:T,80:C},{35:95,75:81,76:E,77:S,79:T,80:C},{35:96,75:81,76:E,77:S,79:T,80:C},{35:97,75:81,76:E,77:S,79:T,80:C},{35:98,75:81,76:E,77:S,79:T,80:C},{35:99,75:81,76:E,77:S,79:T,80:C},{35:100,75:81,76:E,77:S,79:T,80:C},{35:101,75:81,76:E,77:S,79:T,80:C},{35:102,75:81,76:E,77:S,79:T,80:C},{35:103,75:81,76:E,77:S,79:T,80:C},{35:104,75:81,76:E,77:S,79:T,80:C},t(R,[2,59]),{35:105,75:81,76:E,77:S,79:T,80:C},{35:106,75:81,76:E,77:S,79:T,80:C},{35:107,75:81,76:E,77:S,79:T,80:C},{35:108,75:81,76:E,77:S,79:T,80:C},{35:109,75:81,76:E,77:S,79:T,80:C},{35:110,75:81,76:E,77:S,79:T,80:C},{35:111,75:81,76:E,77:S,79:T,80:C},{35:112,75:81,76:E,77:S,79:T,80:C},{35:113,75:81,76:E,77:S,79:T,80:C},{35:114,75:81,76:E,77:S,79:T,80:C},{35:115,75:81,76:E,77:S,79:T,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:_,43:23,44:v,45:w,46:N,47:O,48:P,49:M,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:rt,64:st,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{12:[1,118],33:[1,117]},{35:119,75:81,76:E,77:S,79:T,80:C},{35:120,75:81,76:E,77:S,79:T,80:C},{35:121,75:81,76:E,77:S,79:T,80:C},{35:122,75:81,76:E,77:S,79:T,80:C},{35:123,75:81,76:E,77:S,79:T,80:C},{35:124,75:81,76:E,77:S,79:T,80:C},{35:125,75:81,76:E,77:S,79:T,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(Tt,[2,15]),t(Wt,[2,17],{21:22,19:130,22:e,23:s,24:a,26:u,28:i}),t(Tt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:s,24:a,26:u,28:i,34:n,36:l,37:r,38:h,39:y,40:f,41:_,44:v,45:w,46:N,47:O,48:P,49:M,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:rt,64:st,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft}),t(wt,[2,21]),t(wt,[2,22]),t(R,[2,39]),t(le,[2,71],{75:81,35:132,76:E,77:S,79:T,80:C}),t(Lt,[2,73]),{78:[1,133]},t(Lt,[2,75]),t(Lt,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(gt,[2,28]),t(gt,[2,29]),t(gt,[2,30]),t(gt,[2,31]),t(gt,[2,32]),t(gt,[2,33]),t(gt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(Wt,[2,18]),t(Tt,[2,38]),t(le,[2,72]),t(Lt,[2,74]),t(R,[2,24]),t(R,[2,35]),t(Xt,[2,25]),t(Xt,[2,26],{12:[1,138]}),t(Xt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:d(function(m,x){if(x.recoverable)this.trace(m);else{var k=new Error(m);throw k.hash=x,k}},"parseError"),parse:d(function(m){var x=this,k=[0],b=[],D=[null],o=[],Ot=this.table,p="",xt=0,ce=0,ue=0,Fe=2,he=1,Ue=o.slice.call(arguments,1),A=Object.create(this.lexer),vt={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(vt.yy[Ht]=this.yy[Ht]);A.setInput(m,vt.yy),vt.yy.lexer=A,vt.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var Qt=A.yylloc;o.push(Qt);var je=A.options&&A.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ze(B){k.length=k.length-2*B,D.length=D.length-B,o.length=o.length-B}d(ze,"popStack");function de(){var B;return B=b.pop()||A.lex()||he,typeof B!="number"&&(B instanceof Array&&(b=B,B=b.pop()),B=x.symbols_[B]||B),B}d(de,"lex");for(var L,Kt,kt,V,H0,Gt,Ct={},Mt,j,pe,Bt;;){if(kt=k[k.length-1],this.defaultActions[kt]?V=this.defaultActions[kt]:((L===null||typeof L>"u")&&(L=de()),V=Ot[kt]&&Ot[kt][L]),typeof V>"u"||!V.length||!V[0]){var Jt="";Bt=[];for(Mt in Ot[kt])this.terminals_[Mt]&&Mt>Fe&&Bt.push("'"+this.terminals_[Mt]+"'");A.showPosition?Jt="Parse error on line "+(xt+1)+`:
2
+ `+A.showPosition()+`
3
+ Expecting `+Bt.join(", ")+", got '"+(this.terminals_[L]||L)+"'":Jt="Parse error on line "+(xt+1)+": Unexpected "+(L==he?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(Jt,{text:A.match,token:this.terminals_[L]||L,line:A.yylineno,loc:Qt,expected:Bt})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+L);switch(V[0]){case 1:k.push(L),D.push(A.yytext),o.push(A.yylloc),k.push(V[1]),L=null,Kt?(L=Kt,Kt=null):(ce=A.yyleng,p=A.yytext,xt=A.yylineno,Qt=A.yylloc,ue>0&&ue--);break;case 2:if(j=this.productions_[V[1]][1],Ct.$=D[D.length-j],Ct._$={first_line:o[o.length-(j||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(j||1)].first_column,last_column:o[o.length-1].last_column},je&&(Ct._$.range=[o[o.length-(j||1)].range[0],o[o.length-1].range[1]]),Gt=this.performAction.apply(Ct,[p,ce,xt,vt.yy,V[1],D,o].concat(Ue)),typeof Gt<"u")return Gt;j&&(k=k.slice(0,-1*j*2),D=D.slice(0,-1*j),o=o.slice(0,-1*j)),k.push(this.productions_[V[1]][0]),D.push(Ct.$),o.push(Ct._$),pe=Ot[k[k.length-2]][k[k.length-1]],k.push(pe);break;case 3:return!0}}return!0},"parse")},Ye=(function(){var yt={EOF:1,parseError:d(function(x,k){if(this.yy.parser)this.yy.parser.parseError(x,k);else throw new Error(x)},"parseError"),setInput:d(function(m,x){return this.yy=x||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var x=m.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:d(function(m){var x=m.length,k=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var b=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),k.length-1&&(this.yylineno-=k.length-1);var D=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:k?(k.length===b.length?this.yylloc.first_column:0)+b[b.length-k.length].length-k[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[D[0],D[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(m){this.unput(this.match.slice(m))},"less"),pastInput:d(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var m=this.pastInput(),x=new Array(m.length+1).join("-");return m+this.upcomingInput()+`
5
+ `+x+"^"},"showPosition"),test_match:d(function(m,x){var k,b,D;if(this.options.backtrack_lexer&&(D={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&&(D.yylloc.range=this.yylloc.range.slice(0))),b=m[0].match(/(?:\r\n?|\n).*/g),b&&(this.yylineno+=b.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+m[0].length},this.yytext+=m[0],this.match+=m[0],this.matches=m,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(m[0].length),this.matched+=m[0],k=this.performAction.call(this,this.yy,this,x,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),k)return k;if(this._backtrack){for(var o in D)this[o]=D[o];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var m,x,k,b;this._more||(this.yytext="",this.match="");for(var D=this._currentRules(),o=0;o<D.length;o++)if(k=this._input.match(this.rules[D[o]]),k&&(!x||k[0].length>x[0].length)){if(x=k,b=o,this.options.backtrack_lexer){if(m=this.test_match(k,D[o]),m!==!1)return m;if(this._backtrack){x=!1;continue}else return!1}else if(!this.options.flex)break}return x?(m=this.test_match(x,D[b]),m!==!1?m:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:d(function(){var x=this.next();return x||this.lex()},"lex"),begin:d(function(x){this.conditionStack.push(x)},"begin"),popState:d(function(){var x=this.conditionStack.length-1;return x>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:d(function(x){return x=this.conditionStack.length-1-Math.abs(x||0),x>=0?this.conditionStack[x]:"INITIAL"},"topState"),pushState:d(function(x){this.begin(x)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:d(function(x,k,b,D){var o=D;switch(b){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),26;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;break;case 23:return this.begin("person"),44;break;case 24:return this.begin("system_ext_queue"),51;break;case 25:return this.begin("system_ext_db"),50;break;case 26:return this.begin("system_ext"),49;break;case 27:return this.begin("system_queue"),48;break;case 28:return this.begin("system_db"),47;break;case 29:return this.begin("system"),46;break;case 30:return this.begin("boundary"),37;break;case 31:return this.begin("enterprise_boundary"),34;break;case 32:return this.begin("system_boundary"),36;break;case 33:return this.begin("container_ext_queue"),57;break;case 34:return this.begin("container_ext_db"),56;break;case 35:return this.begin("container_ext"),55;break;case 36:return this.begin("container_queue"),54;break;case 37:return this.begin("container_db"),53;break;case 38:return this.begin("container"),52;break;case 39:return this.begin("container_boundary"),38;break;case 40:return this.begin("component_ext_queue"),63;break;case 41:return this.begin("component_ext_db"),62;break;case 42:return this.begin("component_ext"),61;break;case 43:return this.begin("component_queue"),60;break;case 44:return this.begin("component_db"),59;break;case 45:return this.begin("component"),58;break;case 46:return this.begin("node"),39;break;case 47:return this.begin("node"),39;break;case 48:return this.begin("node_l"),40;break;case 49:return this.begin("node_r"),41;break;case 50:return this.begin("rel"),64;break;case 51:return this.begin("birel"),65;break;case 52:return this.begin("rel_u"),66;break;case 53:return this.begin("rel_u"),66;break;case 54:return this.begin("rel_d"),67;break;case 55:return this.begin("rel_d"),67;break;case 56:return this.begin("rel_l"),68;break;case 57:return this.begin("rel_l"),68;break;case 58:return this.begin("rel_r"),69;break;case 59:return this.begin("rel_r"),69;break;case 60:return this.begin("rel_b"),70;break;case 61:return this.begin("rel_index"),71;break;case 62:return this.begin("update_el_style"),72;break;case 63:return this.begin("update_rel_style"),73;break;case 64:return this.begin("update_layout_config"),74;break;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";break;case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";break;case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return yt})();qt.lexer=Ye;function It(){this.yy={}}return d(It,"Parser"),It.prototype=qt,qt.Parser=It,new It})();Ut.parser=Ut;var We=Ut,we=d(t=>Et()[t],"getRequiredConfig"),St=d((t,e)=>{for(let[s,a]of Object.entries(e))if(a!==void 0)if(typeof a=="object"){let[u,i]=Object.entries(a)[0];t[u]=i}else t[s]=a},"assignAttributes"),Oe=d(()=>({alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}),"createGlobalBoundary"),F=[],bt=[""],I="global",Y="",U=[Oe()],At=[],ae="",ie=!1,jt=4,zt=2,Pe,Xe=d(function(){return Pe},"getC4Type"),qe=d(function(t){Pe=$t(t,Et())},"setC4Type"),He=d(function(t,e,s,a,u,i,n,l,r){if(t==null||e===void 0||e===null||s===void 0||s===null||a===void 0||a===null)return;let h={},y=At.find(f=>f.from===e&&f.to===s);if(y?h=y:At.push(h),h.type=t,h.from=e,h.to=s,h.label={text:a},u==null)h.techn={text:""};else if(typeof u=="object"){let[f,_]=Object.entries(u)[0];h[f]={text:_}}else h.techn={text:u};if(i==null)h.descr={text:""};else if(typeof i=="object"){let[f,_]=Object.entries(i)[0];h[f]={text:_}}else h.descr={text:i};St(h,{sprite:n,tags:l,link:r}),h.wrap=mt()},"addRel"),Qe=d(function(t,e,s,a,u,i,n){if(e===null||s===null)return;let l={},r=F.find(h=>h.alias===e);if(r&&e===r.alias?l=r:(l.alias=e,F.push(l)),s==null?l.label={text:""}:l.label={text:s},a==null)l.descr={text:""};else if(typeof a=="object"){let[h,y]=Object.entries(a)[0];l[h]={text:y}}else l.descr={text:a};St(l,{sprite:u,tags:i,link:n}),l.typeC4Shape={text:t},l.parentBoundary=I,l.wrap=mt()},"addPersonOrSystem"),Ke=d(function(t,e,s,a,u,i,n,l){if(e===null||s===null)return;let r={},h=F.find(y=>y.alias===e);if(h&&e===h.alias?r=h:(r.alias=e,F.push(r)),s==null?r.label={text:""}:r.label={text:s},a==null)r.techn={text:""};else if(typeof a=="object"){let[y,f]=Object.entries(a)[0];r[y]={text:f}}else r.techn={text:a};if(u==null)r.descr={text:""};else if(typeof u=="object"){let[y,f]=Object.entries(u)[0];r[y]={text:f}}else r.descr={text:u};St(r,{sprite:i,tags:n,link:l}),r.wrap=mt(),r.typeC4Shape={text:t},r.parentBoundary=I},"addContainer"),Ge=d(function(t,e,s,a,u,i,n,l){if(e===null||s===null)return;let r={},h=F.find(y=>y.alias===e);if(h&&e===h.alias?r=h:(r.alias=e,F.push(r)),s==null?r.label={text:""}:r.label={text:s},a==null)r.techn={text:""};else if(typeof a=="object"){let[y,f]=Object.entries(a)[0];r[y]={text:f}}else r.techn={text:a};if(u==null)r.descr={text:""};else if(typeof u=="object"){let[y,f]=Object.entries(u)[0];r[y]={text:f}}else r.descr={text:u};St(r,{sprite:i,tags:n,link:l}),r.wrap=mt(),r.typeC4Shape={text:t},r.parentBoundary=I},"addComponent"),Je=d(function(t,e,s,a,u){if(t===null||e===null)return;let i={},n=U.find(l=>l.alias===t);if(n&&t===n.alias?i=n:(i.alias=t,U.push(i)),e==null?i.label={text:""}:i.label={text:e},s==null)i.type={text:"system"};else if(typeof s=="object"){let[l,r]=Object.entries(s)[0];i[l]={text:r}}else i.type={text:s};St(i,{tags:a,link:u}),i.parentBoundary=I,i.wrap=mt(),Y=I,I=t,bt.push(Y)},"addPersonOrSystemBoundary"),Ze=d(function(t,e,s,a,u){if(t===null||e===null)return;let i={},n=U.find(l=>l.alias===t);if(n&&t===n.alias?i=n:(i.alias=t,U.push(i)),e==null?i.label={text:""}:i.label={text:e},s==null)i.type={text:"container"};else if(typeof s=="object"){let[l,r]=Object.entries(s)[0];i[l]={text:r}}else i.type={text:s};St(i,{tags:a,link:u}),i.parentBoundary=I,i.wrap=mt(),Y=I,I=t,bt.push(Y)},"addContainerBoundary"),$e=d(function(t,e,s,a,u,i,n,l){if(e===null||s===null)return;let r={},h=U.find(y=>y.alias===e);if(h&&e===h.alias?r=h:(r.alias=e,U.push(r)),s==null?r.label={text:""}:r.label={text:s},a==null)r.type={text:"node"};else if(typeof a=="object"){let[y,f]=Object.entries(a)[0];r[y]={text:f}}else r.type={text:a};if(u==null)r.descr={text:""};else if(typeof u=="object"){let[y,f]=Object.entries(u)[0];r[y]={text:f}}else r.descr={text:u};St(r,{tags:n,link:l}),r.nodeType=t,r.parentBoundary=I,r.wrap=mt(),Y=I,I=e,bt.push(Y)},"addDeploymentNode"),t0=d(function(){I=Y,bt.pop(),Y=bt.pop(),bt.push(Y)},"popBoundaryParseStack"),e0=d(function(t,e,s,a,u,i,n,l,r,h,y){let f=F.find(_=>_.alias===e);if(!(f===void 0&&(f=U.find(_=>_.alias===e),f===void 0))){if(s!=null)if(typeof s=="object"){let[_,v]=Object.entries(s)[0];f[_]=v}else f.bgColor=s;if(a!=null)if(typeof a=="object"){let[_,v]=Object.entries(a)[0];f[_]=v}else f.fontColor=a;if(u!=null)if(typeof u=="object"){let[_,v]=Object.entries(u)[0];f[_]=v}else f.borderColor=u;if(i!=null)if(typeof i=="object"){let[_,v]=Object.entries(i)[0];f[_]=v}else f.shadowing=i;if(n!=null)if(typeof n=="object"){let[_,v]=Object.entries(n)[0];f[_]=v}else f.shape=n;if(l!=null)if(typeof l=="object"){let[_,v]=Object.entries(l)[0];f[_]=v}else f.sprite=l;if(r!=null)if(typeof r=="object"){let[_,v]=Object.entries(r)[0];f[_]=v}else f.techn=r;if(h!=null)if(typeof h=="object"){let[_,v]=Object.entries(h)[0];f[_]=v}else f.legendText=h;if(y!=null)if(typeof y=="object"){let[_,v]=Object.entries(y)[0];f[_]=v}else f.legendSprite=y}},"updateElStyle"),n0=d(function(t,e,s,a,u,i,n){let l=At.find(r=>r.from===e&&r.to===s);if(l!==void 0){if(a!=null)if(typeof a=="object"){let[r,h]=Object.entries(a)[0];l[r]=h}else l.textColor=a;if(u!=null)if(typeof u=="object"){let[r,h]=Object.entries(u)[0];l[r]=h}else l.lineColor=u;if(i!=null)if(typeof i=="object"){let[r,h]=Object.entries(i)[0];l[r]=parseInt(h)}else l.offsetX=parseInt(i);if(n!=null)if(typeof n=="object"){let[r,h]=Object.entries(n)[0];l[r]=parseInt(h)}else l.offsetY=parseInt(n)}},"updateRelStyle"),r0=d(function(t,e,s){let a=jt,u=zt;if(typeof e=="object"){let i=Object.values(e)[0];a=parseInt(i)}else a=parseInt(e);if(typeof s=="object"){let i=Object.values(s)[0];u=parseInt(i)}else u=parseInt(s);a>=1&&(jt=a),u>=1&&(zt=u)},"updateLayoutConfig"),s0=d(function(){return jt},"getC4ShapeInRow"),a0=d(function(){return zt},"getC4BoundaryInRow"),i0=d(function(){return I},"getCurrentBoundaryParse"),o0=d(function(){return Y},"getParentBoundaryParse"),De=d(function(t){return t==null?F:F.filter(e=>e.parentBoundary===t)},"getC4ShapeArray"),l0=d(function(t){return F.find(e=>e.alias===t)},"getC4Shape"),c0=d(function(t){return Object.keys(De(t))},"getC4ShapeKeys"),Ne=d(function(t){return t==null?U:U.filter(e=>e.parentBoundary===t)},"getBoundaries"),u0=Ne,h0=d(function(){return At},"getRels"),d0=d(function(){return ae},"getTitle"),p0=d(function(t){ie=t},"setWrap"),mt=d(function(){return ie},"autoWrap"),f0=d(function(){F=[],U=[Oe()],Y="",I="global",bt=[""],At=[],bt=[""],ae="",ie=!1,jt=4,zt=2},"clear"),y0={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},b0={FILLED:0,OPEN:1},_0={LEFTOF:0,RIGHTOF:1,OVER:2},m0=d(function(t){ae=$t(t,Et())},"setTitle"),ne={addPersonOrSystem:Qe,addPersonOrSystemBoundary:Je,addContainer:Ke,addContainerBoundary:Ze,addComponent:Ge,addDeploymentNode:$e,popBoundaryParseStack:t0,addRel:He,updateElStyle:e0,updateRelStyle:n0,updateLayoutConfig:r0,autoWrap:mt,setWrap:p0,getC4ShapeArray:De,getC4Shape:l0,getC4ShapeKeys:c0,getBoundaries:Ne,getBoundarys:u0,getCurrentBoundaryParse:i0,getParentBoundaryParse:o0,getRels:h0,getTitle:d0,getC4Type:Xe,getC4ShapeInRow:s0,getC4BoundaryInRow:a0,setAccTitle:_e,getAccTitle:me,getAccDescription:xe,setAccDescription:ge,getConfig:d(()=>we("c4"),"getConfig"),clear:f0,LINETYPE:y0,ARROWTYPE:b0,PLACEMENT:_0,setTitle:m0,setC4Type:qe},Ae=d(function(t,e){return Ee(t,e)},"drawRect"),g0=d((t,e,s,a)=>{let u=t.append("g"),i=0;for(let n of e){let l=n.textColor?n.textColor:"#444444",r=n.lineColor?n.lineColor:"#444444",h=n.offsetX?parseInt(String(n.offsetX)):0,y=n.offsetY?parseInt(String(n.offsetY)):0,f="";if(i===0){let w=u.append("line");w.attr("x1",n.startPoint.x),w.attr("y1",n.startPoint.y),w.attr("x2",n.endPoint.x),w.attr("y2",n.endPoint.y),w.attr("stroke-width","1"),w.attr("stroke",r),w.style("fill","none"),n.type!=="rel_b"&&w.attr("marker-end","url("+f+"#"+a+"-arrowhead)"),(n.type==="birel"||n.type==="rel_b")&&w.attr("marker-start","url("+f+"#"+a+"-arrowend)"),i=-1}else{let w=u.append("path");w.attr("fill","none").attr("stroke-width","1").attr("stroke",r).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",n.startPoint.x).replaceAll("starty",n.startPoint.y).replaceAll("controlx",n.startPoint.x+(n.endPoint.x-n.startPoint.x)/2-(n.endPoint.x-n.startPoint.x)/4).replaceAll("controly",n.startPoint.y+(n.endPoint.y-n.startPoint.y)/2).replaceAll("stopx",n.endPoint.x).replaceAll("stopy",n.endPoint.y)),n.type!=="rel_b"&&w.attr("marker-end","url("+f+"#"+a+"-arrowhead)"),(n.type==="birel"||n.type==="rel_b")&&w.attr("marker-start","url("+f+"#"+a+"-arrowend)")}let _=n.label.width,v=s.messageFont();Pt(s)(n.label.text,u,Math.min(n.startPoint.x,n.endPoint.x)+Math.abs(n.endPoint.x-n.startPoint.x)/2+h,Math.min(n.startPoint.y,n.endPoint.y)+Math.abs(n.endPoint.y-n.startPoint.y)/2+y,_,n.label.height,{fill:l},v),n.techn&&n.techn.text!==""&&(v=s.messageFont(),Pt(s)("["+n.techn.text+"]",u,Math.min(n.startPoint.x,n.endPoint.x)+Math.abs(n.endPoint.x-n.startPoint.x)/2+h,Math.min(n.startPoint.y,n.endPoint.y)+Math.abs(n.endPoint.y-n.startPoint.y)/2+s.messageFontSize+5+y,Math.max(_,n.techn.width),n.techn.height,{fill:l,"font-style":"italic"},v))}},"drawRels"),x0=d(function(t,e,s){let a=t.append("g"),u=e.bgColor?e.bgColor:"none",i=e.borderColor?e.borderColor:"#444444",n=e.fontColor?e.fontColor:"black",l={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(l={"stroke-width":1});let r={x:e.x,y:e.y,fill:u,stroke:i,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:l};Ae(a,r);let h=s.boundaryFont();h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=n,Pt(s)(e.label.text,a,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},h),e.type&&e.type.text!==""&&(h=s.boundaryFont(),h.fontColor=n,Pt(s)(e.type.text,a,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},h)),e.descr&&e.descr.text!==""&&(h=s.boundaryFont(),h.fontSize=h.fontSize-2,h.fontColor=n,Pt(s)(e.descr.text,a,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},h))},"drawBoundary"),v0=d(function(t,e){t.append("defs").append("symbol").attr("id",e+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),k0=d(function(t,e){t.append("defs").append("symbol").attr("id",e+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),E0=d(function(t,e){t.append("defs").append("symbol").attr("id",e+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),S0=d(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),T0=d(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),C0=d(function(t,e){t.append("defs").append("marker").attr("id",e+"-filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),R0=d(function(t,e){let a=t.append("defs").append("marker").attr("id",e+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);a.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),a.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),Pt=(function(){function t(u,i,n,l,r,h,y){let f=i.append("text").attr("x",n+r/2).attr("y",l+h/2+5).style("text-anchor","middle").text(u);a(f,y)}d(t,"byText");function e(u,i,n,l,r,h,y,f){let{fontSize:_,fontFamily:v,fontWeight:w}=f,N=u.split(Vt.lineBreakRegex);for(let O=0;O<N.length;O++){let P=O*_-_*(N.length-1)/2,M=i.append("text").attr("x",n+r/2).attr("y",l).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",_).style("font-weight",w).style("font-family",v);M.append("tspan").attr("dy",P).text(N[O]).attr("alignment-baseline","mathematical"),a(M,y)}}d(e,"byTspan");function s(u,i,n,l,r,h,y,f){let _=i.append("switch"),w=_.append("foreignObject").attr("x",n).attr("y",l).attr("width",r).attr("height",h).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");w.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(u),e(u,_,n,l,r,h,y,f),a(w,y)}d(s,"byFo");function a(u,i){for(let n in i)i.hasOwnProperty(n)&&u.attr(n,i[n])}return d(a,"_setTextAttrs"),function(u){return u.textPlacement==="fo"?s:u.textPlacement==="old"?t:e}})(),z={drawRect:Ae,drawBoundary:x0,drawRels:g0,insertArrowHead:S0,insertArrowEnd:T0,insertArrowFilledHead:C0,insertArrowCrossHead:R0,insertDatabaseIcon:v0,insertComputerIcon:k0,insertClockIcon:E0},w0=d((t,e)=>{if(e==="sandbox"){let a=Yt("#i"+t).node()?.contentDocument;if(!a)throw new Error(`Sandbox iframe #i${t} is missing its content document`);return{root:Yt(a.body),doc:a}}return{root:Yt("body"),doc:document}},"getDiagramRoot"),O0=new Set(["system_queue","external_system_queue","container_queue","external_container_queue","component_queue","external_component_queue"]),P0=new Set(["system_db","external_system_db","container_db","external_container_db","component_db","external_component_db"]),D0={person:"person",box:"rounded",rounded:"rounded",cylinder:"cylinder",database:"cylinder",db:"cylinder",queue:"h-cyl",pipe:"h-cyl",component:"fr-rect"},ee=d(t=>t?D0[t.toLowerCase()]:void 0,"keywordShape"),N0=d(t=>{let e=ee(t.shape)??ee(t.sprite);if(e)return e;if(t.tags)for(let a of t.tags.split(",")){let u=ee(a.trim());if(u)return u}let s=t.typeC4Shape.text;return s==="person"||s==="external_person"?"person":P0.has(s)?"cylinder":O0.has(s)?"h-cyl":"rounded"},"resolveNodeShape"),A0={person:"Person",system:"Software System",container:"Container",component:"Component"},L0=d(t=>{let e=t.replace(/^external_/,"").replace(/_(db|queue)$/,"");return A0[e]??e.replace(/_/g," ")},"stereotypeLabel"),I0=d(t=>t.startsWith("external_"),"isExternal"),M0=d(t=>{let e=L0(t.typeC4Shape.text);return t.techn?.text?`[${e}: ${t.techn.text}]`:`[${e}]`},"stereotypeText"),Le=["person","system","system_db","system_queue","container","container_db","container_queue","component","component_db","component_queue"].flatMap(t=>[t,`external_${t}`]),B0=new Set(Le),Se=d(t=>B0.has(t),"isC4ElementType"),V0=d((t,e)=>{let s=t.typeC4Shape.text,a=t.bgColor??(Se(s)&&e[`${s}_bg_color`]),u=t.borderColor??(Se(s)&&e[`${s}_border_color`]),i=[];return a&&i.push(`fill:${a}`),u&&i.push(`stroke:${u}`),i.push(`color:${t.fontColor??"#FFFFFF"}`),i},"elementCssStyles"),Te=d((t,e,s,a,u)=>{let i=t.typeC4Shape.text,n=["c4-shape",`c4-${i}`];I0(i)&&n.push("c4-external");let l=N0(t),r=V0(t,e);return(l==="rounded"||l==="fr-rect")&&r.push("rx:12px","ry:12px"),{id:t.alias,label:t.label.text,stereotype:M0(t),description:t.descr?.text?[t.descr.text]:void 0,labelType:"string",isGroup:!1,shape:l,cssClasses:n.join(" "),cssStyles:r,padding:s,look:a,useHtmlLabels:!1,width:u}},"buildC4Node"),Dt=0,Nt=0,Ie=4,re=2;Ut.yy=ne;var g={},Me=class{static{d(this,"Bounds")}constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,se(t.db.getConfig())}setData(t,e,s,a){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=e,this.nextData.starty=this.data.starty=s,this.nextData.stopy=this.data.stopy=a}updateVal(t,e,s,a){t[e]===void 0?t[e]=s:t[e]=a(s,t[e])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let e=this.nextData.stopx,s=this.data.widthLimit,a=this.nextData.startx===this.nextData.stopx?e+t.margin:e+t.margin*2,u=a+t.width,i=this.nextData.starty+t.margin*2,n=i+t.height;(a>=s||u>=s||this.nextData.cnt>Ie)&&(a=this.nextData.startx+t.margin+g.nextLinePaddingX,i=this.nextData.stopy+t.margin*2,this.nextData.stopx=u=a+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=n=i+t.height,this.nextData.cnt=1),t.x=a,t.y=i,this.updateVal(this.data,"startx",a,Math.min),this.updateVal(this.data,"starty",i,Math.min),this.updateVal(this.data,"stopx",u,Math.max),this.updateVal(this.data,"stopy",n,Math.max),this.updateVal(this.nextData,"startx",a,Math.min),this.updateVal(this.nextData,"starty",i,Math.min),this.updateVal(this.nextData,"stopx",u,Math.max),this.updateVal(this.nextData,"stopy",n,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},se(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},se=d(function(t){ye(g,t),t?.fontFamily&&(g.personFontFamily=g.systemFontFamily=g.messageFontFamily=t.fontFamily),t?.fontSize&&(g.personFontSize=g.systemFontSize=g.messageFontSize=t.fontSize),t?.fontWeight&&(g.personFontWeight=g.systemFontWeight=g.messageFontWeight=t.fontWeight)},"setConf"),Ft=d(t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}),"boundaryFont"),Y0=d(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont");function _t(t,e,s,a,u){let i=e[t];if(!i.width)if(s)i.text=ve(i.text,u,a),i.textLines=i.text.split(Vt.lineBreakRegex).length,i.width=u,i.height=te(i.text,a);else{let n=i.text.split(Vt.lineBreakRegex);i.textLines=n.length;let l=0;i.height=0,i.width=0;for(let r of n)i.width=Math.max(Rt(r,a),i.width),l=te(r,a),i.height=i.height+l}return i}d(_t,"calcC4ShapeTextWH");var Be=d(function(t,e,s){let a=s.data.startx,u=s.data.starty;e.x=a,e.y=u,e.width=s.data.stopx-a,e.height=s.data.stopy-u,e.label.y=g.c4ShapeMargin-35;let i=e.wrap&&g.wrap,n=Ft(g);n.fontSize=n.fontSize+2,n.fontWeight="bold";let l=Rt(e.label.text,n);_t("label",e,i,n,l),z.drawBoundary(t,e,g)},"drawBoundary"),Ve=d(async function(t,e,s,a){let u=Et(),i=u.look??"classic",n={config:u},l=e.attr("id")??"",r=a.map(y=>s[Number(y)]),h=d(y=>{let f=y.shape?ke[y.shape]:void 0;if(!f)throw new Error(`C4: no shape handler for "${y.shape}"`);return f},"shapeHandlerFor");await Promise.all(r.map(async y=>{let f=Te(y,g,g.c4ShapePadding,i,g.width);f.domId=`${l}-${f.id}`;let _=await h(f)(e,f,n);y.width=f.width??g.width,y.height=f.height??g.height,y.margin=g.c4ShapeMargin,_.remove()}));for(let y of r)t.insert(y);await Promise.all(r.map(async y=>{let f=Te(y,g,g.c4ShapePadding,i,g.width);f.domId=`${l}-${f.id}`,f.x=y.x+y.width/2,f.y=y.y+y.height/2;let _=e.append("g").attr("transform",`translate(${y.x+y.width/2}, ${y.y+y.height/2})`);await h(f)(_,f,n),y.intersect=f.intersect})),t.bumpLastMargin(g.c4ShapeMargin)},"drawC4ShapeArray"),F0=class{static{d(this,"Point")}constructor(t,e){this.x=t,this.y=e}},Ce=d(function(t,e){if(!t.intersect)throw new Error(`C4 shape "${t.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);let{x:s,y:a}=t.intersect(e);return new F0(s,a)},"getIntersectPoint"),U0=d(function(t,e){let s={x:0,y:0};s.x=e.x+e.width/2,s.y=e.y+e.height/2;let a=Ce(t,s);s.x=t.x+t.width/2,s.y=t.y+t.height/2;let u=Ce(e,s);return{startPoint:a,endPoint:u}},"getIntersectPoints"),j0=d(function(t,e,s,a,u){let i=a.db.getC4Type(),n=0;for(let l of e){n=n+1;let r=l.wrap&&g.wrap,h=Y0(g);i==="C4Dynamic"&&(l.label.text=n+": "+l.label.text);let y=Rt(l.label.text,h);_t("label",l,r,h,y),l.techn&&l.techn.text!==""&&(y=Rt(l.techn.text,h),_t("techn",l,r,h,y)),l.descr&&l.descr.text!==""&&(y=Rt(l.descr.text,h),_t("descr",l,r,h,y));let f=s(l.from),_=s(l.to);if(!f||!_)throw new Error(`C4 rel "${l.from}" -> "${l.to}" references an unknown shape`);let v=U0(f,_);if(!v.startPoint||!v.endPoint)throw new Error(`Could not calculate intersection points for rel "${l.from}" -> "${l.to}"`);l.startPoint=v.startPoint,l.endPoint=v.endPoint}z.drawRels(t,e,g,u)},"drawRels");async function oe(t,e,s,a,u){let i=u.db,n=new Me(u);n.data.widthLimit=s.data.widthLimit/Math.min(re,a.length);for(let[l,r]of a.entries()){let h=0;r.image={width:0,height:0,Y:0},r.sprite&&(r.image.width=48,r.image.height=48,r.image.Y=h,h=r.image.Y+r.image.height);let y=r.wrap&&g.wrap,f=Ft(g);f.fontSize=f.fontSize+2,f.fontWeight="bold";let _=_t("label",r,y,f,n.data.widthLimit);if(_.Y=h+8,h=_.Y+_.height,r.type&&r.type.text!==""){r.type.text="["+r.type.text+"]";let O=Ft(g),P=_t("type",r,y,O,n.data.widthLimit);P.Y=h+5,h=P.Y+P.height}if(r.descr&&r.descr.text!==""){let O=Ft(g);O.fontSize=O.fontSize-2;let P=_t("descr",r,y,O,n.data.widthLimit);P.Y=h+20,h=P.Y+P.height}if(l==0||l%re===0){let O=s.data.startx+g.diagramMarginX,P=s.data.stopy+g.diagramMarginY+h;n.setData(O,O,P,P)}else{let O=n.data.stopx!==n.data.startx?n.data.stopx+g.diagramMarginX:n.data.startx,P=n.data.starty;n.setData(O,O,P,P)}n.name=r.alias;let v=i.getC4ShapeArray(r.alias),w=i.getC4ShapeKeys(r.alias);w.length>0&&await Ve(n,t,v,w),e=r.alias;let N=i.getBoundaries(e);N.length>0&&await oe(t,e,n,N,u),r.alias!=="global"&&Be(t,r,n),s.data.stopy=Math.max(n.data.stopy+g.c4ShapeMargin,s.data.stopy),s.data.stopx=Math.max(n.data.stopx+g.c4ShapeMargin,s.data.stopx),Dt=Math.max(Dt,s.data.stopx),Nt=Math.max(Nt,s.data.stopy)}}d(oe,"drawInsideBoundary");var z0=d(async function(t,e,s,a){g=we("c4");let u=Et().securityLevel,{root:i}=w0(e,u),n=a.db;n.setWrap(g.wrap),Ie=n.getC4ShapeInRow(),re=n.getC4BoundaryInRow(),Zt.debug(`C:${JSON.stringify(g,null,2)}`);let l=i.select(`[id="${e}"]`);z.insertComputerIcon(l,e),z.insertDatabaseIcon(l,e),z.insertClockIcon(l,e);let r=new Me(a);r.setData(g.diagramMarginX,g.diagramMarginX,g.diagramMarginY,g.diagramMarginY),r.data.widthLimit=screen.availWidth,Dt=g.diagramMarginX,Nt=g.diagramMarginY;let h=n.getTitle(),y=n.getBoundaries("");await oe(l,"",r,y,a),z.insertArrowHead(l,e),z.insertArrowEnd(l,e),z.insertArrowCrossHead(l,e),z.insertArrowFilledHead(l,e),j0(l,n.getRels(),n.getC4Shape,a,e),r.data.stopx=Dt,r.data.stopy=Nt;let f=r.data,_=f.startx,v=f.starty,N=Nt-v+2*g.diagramMarginY,O=Dt-_,P=O+2*g.diagramMarginX;h&&l.append("text").text(h).attr("x",O/2-4*g.diagramMarginX).attr("y",v+g.diagramMarginY),be(l,N,P,g.useMaxWidth);let M=h?60:0;l.attr("viewBox",_-g.diagramMarginX+" -"+(g.diagramMarginY+M)+" "+P+" "+(N+M)),Zt.debug("models:",f)},"draw"),Re={drawPersonOrSystemArray:Ve,drawBoundary:Be,setConf:se,draw:z0},W0=d(()=>{let t=Et().c4??{},e=new CSSStyleSheet;for(let s of Le){let a=e.cssRules[e.insertRule(`.c4-shape.c4-${s} .label {}`,e.cssRules.length)],u=t[`${s}FontFamily`],i=t[`${s}FontSize`],n=t[`${s}FontWeight`];u&&a.style.setProperty("font-family",u),i&&a.style.setProperty("font-size",typeof i=="number"?`${i}px`:i),n&&a.style.setProperty("font-weight",String(n))}return[...e.cssRules].filter(s=>s.style.length>0).map(s=>` ${s.cssText}`).join(`
7
+ `)},"elementFontStyles"),X0=d(t=>`.person {
8
+ stroke: ${t.personBorder};
9
+ fill: ${t.personBkg};
10
+ }
11
+ ${W0()}
12
+
13
+ /* The element font colour is set inline per element (default white); the
14
+ label text takes it via currentColor. */
15
+ .c4-shape .label,
16
+ .c4-shape .label text {
17
+ color: inherit;
18
+ fill: currentColor;
19
+ }
20
+ /* Structurizr typography: bold name, smaller stereotype/type and description lines. */
21
+ .c4-shape .label .c4-name {
22
+ font-weight: bold;
23
+ }
24
+ .c4-shape .label .c4-type {
25
+ font-size: 0.75em;
26
+ }
27
+ .c4-shape .label .c4-descr {
28
+ font-size: 0.82em;
29
+ }
30
+ .c4-shape .basic,
31
+ .c4-shape rect,
32
+ .c4-shape path,
33
+ .c4-shape circle,
34
+ .c4-shape ellipse,
35
+ .c4-shape line {
36
+ stroke-width: 2px;
37
+ }
38
+ `,"getStyles"),q0=X0,a1={parser:We,db:ne,renderer:Re,styles:q0,init:d(({c4:t,wrap:e})=>{Re.setConf(t),ne.setWrap(e)},"init")};export{a1 as diagram};
39
+ //# sourceMappingURL=c4Diagram-7LVT6UL2-4HJHKNE3.js.map
@@ -0,0 +1,33 @@
1
+ import{a as i}from"./chunk-LDXBIOBF.js";import{d as _n}from"./chunk-R7TFKRNM.js";_n();function Zn(w){return w&&w.__esModule&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w}i(Zn,"getDefaultExportFromCjs");var D={},Ye={},oe={},In;function ge(){if(In)return oe;In=1;function w(d){return typeof d>"u"||d===null}i(w,"isNothing");function E(d){return typeof d=="object"&&d!==null}i(E,"isObject");function _(d){return Array.isArray(d)?d:w(d)?[]:[d]}i(_,"toArray");function O(d,p){if(p){let C=Object.keys(p);for(let o=0,u=C.length;o<u;o+=1){let T=C[o];d[T]=p[T]}}return d}i(O,"extend");function h(d,p){let C="";for(let o=0;o<p;o+=1)C+=d;return C}i(h,"repeat");function y(d){return d===0&&Number.NEGATIVE_INFINITY===1/d}return i(y,"isNegativeZero"),oe.isNothing=w,oe.isObject=E,oe.toArray=_,oe.repeat=h,oe.isNegativeZero=y,oe.extend=O,oe}i(ge,"requireCommon");var De,kn;function Ae(){if(kn)return De;kn=1;function w(_,O){let h="",y=_.reason||"(unknown reason)";return _.mark?(_.mark.name&&(h+='in "'+_.mark.name+'" '),h+="("+(_.mark.line+1)+":"+(_.mark.column+1)+")",!O&&_.mark.snippet&&(h+=`
2
+
3
+ `+_.mark.snippet),y+" "+h):y}i(w,"formatError");function E(_,O){Error.call(this),this.name="YAMLException",this.reason=_,this.mark=O,this.message=w(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return i(E,"YAMLException2"),E.prototype=Object.create(Error.prototype),E.prototype.constructor=E,E.prototype.toString=i(function(O){return this.name+": "+w(this,O)},"toString"),De=E,De}i(Ae,"requireException");var Be,Ln;function zn(){if(Ln)return Be;Ln=1;let w=ge();function E(h,y,d,p,C){let o="",u="",T=Math.floor(C/2)-1;return p-y>T&&(o=" ... ",y=p-T+o.length),d-p>T&&(u=" ...",d=p+T-u.length),{str:o+h.slice(y,d).replace(/\t/g,"\u2192")+u,pos:p-y+o.length}}i(E,"getLine");function _(h,y){return w.repeat(" ",y-h.length)+h}i(_,"padStart");function O(h,y){if(y=Object.create(y||null),!h.buffer)return null;y.maxLength||(y.maxLength=79),typeof y.indent!="number"&&(y.indent=1),typeof y.linesBefore!="number"&&(y.linesBefore=3),typeof y.linesAfter!="number"&&(y.linesAfter=2);let d=/\r?\n|\r|\0/g,p=[0],C=[],o,u=-1;for(;o=d.exec(h.buffer);)C.push(o.index),p.push(o.index+o[0].length),h.position<=o.index&&u<0&&(u=p.length-2);u<0&&(u=p.length-1);let T="",v=Math.min(h.line+y.linesAfter,C.length).toString().length,M=y.maxLength-(y.indent+v+3);for(let F=1;F<=y.linesBefore&&!(u-F<0);F++){let K=E(h.buffer,p[u-F],C[u-F],h.position-(p[u]-p[u-F]),M);T=w.repeat(" ",y.indent)+_((h.line-F+1).toString(),v)+" | "+K.str+`
4
+ `+T}let Z=E(h.buffer,p[u],C[u],h.position,M);T+=w.repeat(" ",y.indent)+_((h.line+1).toString(),v)+" | "+Z.str+`
5
+ `,T+=w.repeat("-",y.indent+v+3+Z.pos)+`^
6
+ `;for(let F=1;F<=y.linesAfter&&!(u+F>=C.length);F++){let K=E(h.buffer,p[u+F],C[u+F],h.position-(p[u]-p[u+F]),M);T+=w.repeat(" ",y.indent)+_((h.line+F+1).toString(),v)+" | "+K.str+`
7
+ `}return T.replace(/\n$/,"")}return i(O,"makeSnippet"),Be=O,Be}i(zn,"requireSnippet");var He,On;function B(){if(On)return He;On=1;let w=Ae(),E=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],_=["scalar","sequence","mapping"];function O(y){let d={};return y!==null&&Object.keys(y).forEach(function(p){y[p].forEach(function(C){d[String(C)]=p})}),d}i(O,"compileStyleAliases");function h(y,d){if(d=d||{},Object.keys(d).forEach(function(p){if(E.indexOf(p)===-1)throw new w('Unknown option "'+p+'" is met in definition of "'+y+'" YAML type.')}),this.options=d,this.tag=y,this.kind=d.kind||null,this.resolve=d.resolve||function(){return!0},this.construct=d.construct||function(p){return p},this.instanceOf=d.instanceOf||null,this.predicate=d.predicate||null,this.represent=d.represent||null,this.representName=d.representName||null,this.defaultStyle=d.defaultStyle||null,this.multi=d.multi||!1,this.styleAliases=O(d.styleAliases||null),_.indexOf(this.kind)===-1)throw new w('Unknown kind "'+this.kind+'" is specified for "'+y+'" YAML type.')}return i(h,"Type2"),He=h,He}i(B,"requireType");var je,vn;function un(){if(vn)return je;vn=1;let w=Ae(),E=B();function _(y,d){let p=[];return y[d].forEach(function(C){let o=p.length;p.forEach(function(u,T){u.tag===C.tag&&u.kind===C.kind&&u.multi===C.multi&&(o=T)}),p[o]=C}),p}i(_,"compileList");function O(){let y={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function d(p){p.multi?(y.multi[p.kind].push(p),y.multi.fallback.push(p)):y[p.kind][p.tag]=y.fallback[p.tag]=p}i(d,"collectType");for(let p=0,C=arguments.length;p<C;p+=1)arguments[p].forEach(d);return y}i(O,"compileMap");function h(y){return this.extend(y)}return i(h,"Schema2"),h.prototype.extend=i(function(d){let p=[],C=[];if(d instanceof E)C.push(d);else if(Array.isArray(d))C=C.concat(d);else if(d&&(Array.isArray(d.implicit)||Array.isArray(d.explicit)))d.implicit&&(p=p.concat(d.implicit)),d.explicit&&(C=C.concat(d.explicit));else throw new w("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");p.forEach(function(u){if(!(u instanceof E))throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(u.loadKind&&u.loadKind!=="scalar")throw new w("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(u.multi)throw new w("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),C.forEach(function(u){if(!(u instanceof E))throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let o=Object.create(h.prototype);return o.implicit=(this.implicit||[]).concat(p),o.explicit=(this.explicit||[]).concat(C),o.compiledImplicit=_(o,"implicit"),o.compiledExplicit=_(o,"explicit"),o.compiledTypeMap=O(o.compiledImplicit,o.compiledExplicit),o},"extend"),je=h,je}i(un,"requireSchema");var Ue,Nn;function fn(){if(Nn)return Ue;Nn=1;let w=B();return Ue=new w("tag:yaml.org,2002:str",{kind:"scalar",construct:i(function(E){return E!==null?E:""},"construct")}),Ue}i(fn,"requireStr");var Ke,Mn;function an(){if(Mn)return Ke;Mn=1;let w=B();return Ke=new w("tag:yaml.org,2002:seq",{kind:"sequence",construct:i(function(E){return E!==null?E:[]},"construct")}),Ke}i(an,"requireSeq");var Ge,Rn;function pn(){if(Rn)return Ge;Rn=1;let w=B();return Ge=new w("tag:yaml.org,2002:map",{kind:"mapping",construct:i(function(E){return E!==null?E:{}},"construct")}),Ge}i(pn,"requireMap");var We,qn;function sn(){if(qn)return We;qn=1;let w=un();return We=new w({explicit:[fn(),an(),pn()]}),We}i(sn,"requireFailsafe");var Qe,Fn;function hn(){if(Fn)return Qe;Fn=1;let w=B();function E(h){if(h===null)return!0;let y=h.length;return y===1&&h==="~"||y===4&&(h==="null"||h==="Null"||h==="NULL")}i(E,"resolveYamlNull");function _(){return null}i(_,"constructYamlNull");function O(h){return h===null}return i(O,"isNull"),Qe=new w("tag:yaml.org,2002:null",{kind:"scalar",resolve:E,construct:_,predicate:O,represent:{canonical:i(function(){return"~"},"canonical"),lowercase:i(function(){return"null"},"lowercase"),uppercase:i(function(){return"NULL"},"uppercase"),camelcase:i(function(){return"Null"},"camelcase"),empty:i(function(){return""},"empty")},defaultStyle:"lowercase"}),Qe}i(hn,"require_null");var Ve,Yn;function dn(){if(Yn)return Ve;Yn=1;let w=B();function E(h){if(h===null)return!1;let y=h.length;return y===4&&(h==="true"||h==="True"||h==="TRUE")||y===5&&(h==="false"||h==="False"||h==="FALSE")}i(E,"resolveYamlBoolean");function _(h){return h==="true"||h==="True"||h==="TRUE"}i(_,"constructYamlBoolean");function O(h){return Object.prototype.toString.call(h)==="[object Boolean]"}return i(O,"isBoolean"),Ve=new w("tag:yaml.org,2002:bool",{kind:"scalar",resolve:E,construct:_,predicate:O,represent:{lowercase:i(function(h){return h?"true":"false"},"lowercase"),uppercase:i(function(h){return h?"TRUE":"FALSE"},"uppercase"),camelcase:i(function(h){return h?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),Ve}i(dn,"requireBool");var Je,Pn;function mn(){if(Pn)return Je;Pn=1;let w=ge(),E=B();function _(o){return o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102}i(_,"isHexCode");function O(o){return o>=48&&o<=55}i(O,"isOctCode");function h(o){return o>=48&&o<=57}i(h,"isDecCode");function y(o){if(o===null)return!1;let u=o.length,T=0,v=!1;if(!u)return!1;let M=o[T];if((M==="-"||M==="+")&&(M=o[++T]),M==="0"){if(T+1===u)return!0;if(M=o[++T],M==="b"){for(T++;T<u;T++){if(M=o[T],M!=="0"&&M!=="1")return!1;v=!0}return v&&isFinite(d(o))}if(M==="x"){for(T++;T<u;T++){if(!_(o.charCodeAt(T)))return!1;v=!0}return v&&isFinite(d(o))}if(M==="o"){for(T++;T<u;T++){if(!O(o.charCodeAt(T)))return!1;v=!0}return v&&isFinite(d(o))}}for(;T<u;T++){if(!h(o.charCodeAt(T)))return!1;v=!0}return v?isFinite(d(o)):!1}i(y,"resolveYamlInteger");function d(o){let u=o,T=1,v=u[0];if((v==="-"||v==="+")&&(v==="-"&&(T=-1),u=u.slice(1),v=u[0]),u==="0")return 0;if(v==="0"){if(u[1]==="b")return T*parseInt(u.slice(2),2);if(u[1]==="x")return T*parseInt(u.slice(2),16);if(u[1]==="o")return T*parseInt(u.slice(2),8)}return T*parseInt(u,10)}i(d,"parseYamlInteger");function p(o){return d(o)}i(p,"constructYamlInteger");function C(o){return Object.prototype.toString.call(o)==="[object Number]"&&o%1===0&&!w.isNegativeZero(o)}return i(C,"isInteger"),Je=new E("tag:yaml.org,2002:int",{kind:"scalar",resolve:y,construct:p,predicate:C,represent:{binary:i(function(o){return o>=0?"0b"+o.toString(2):"-0b"+o.toString(2).slice(1)},"binary"),octal:i(function(o){return o>=0?"0o"+o.toString(8):"-0o"+o.toString(8).slice(1)},"octal"),decimal:i(function(o){return o.toString(10)},"decimal"),hexadecimal:i(function(o){return o>=0?"0x"+o.toString(16).toUpperCase():"-0x"+o.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Je}i(mn,"requireInt");var Xe,Dn;function gn(){if(Dn)return Xe;Dn=1;let w=ge(),E=B(),_=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),O=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function h(o){return o===null||!_.test(o)?!1:isFinite(parseFloat(o,10))?!0:O.test(o)}i(h,"resolveYamlFloat");function y(o){let u=o.toLowerCase(),T=u[0]==="-"?-1:1;return"+-".indexOf(u[0])>=0&&(u=u.slice(1)),u===".inf"?T===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:u===".nan"?NaN:T*parseFloat(u,10)}i(y,"constructYamlFloat");let d=/^[-+]?[0-9]+e/;function p(o,u){if(isNaN(o))switch(u){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===o)switch(u){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===o)switch(u){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(w.isNegativeZero(o))return"-0.0";let T=o.toString(10);return d.test(T)?T.replace("e",".e"):T}i(p,"representYamlFloat");function C(o){return Object.prototype.toString.call(o)==="[object Number]"&&(o%1!==0||w.isNegativeZero(o))}return i(C,"isFloat"),Xe=new E("tag:yaml.org,2002:float",{kind:"scalar",resolve:h,construct:y,predicate:C,represent:p,defaultStyle:"lowercase"}),Xe}i(gn,"requireFloat");var $e,Bn;function An(){return Bn||(Bn=1,$e=sn().extend({implicit:[hn(),dn(),mn(),gn()]})),$e}i(An,"requireJson");var Ze,Hn;function yn(){return Hn||(Hn=1,Ze=An()),Ze}i(yn,"requireCore");var ze,jn;function Sn(){if(jn)return ze;jn=1;let w=B(),E=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),_=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function O(d){return d===null?!1:E.exec(d)!==null||_.exec(d)!==null}i(O,"resolveYamlTimestamp");function h(d){let p=0,C=null,o=E.exec(d);if(o===null&&(o=_.exec(d)),o===null)throw new Error("Date resolve error");let u=+o[1],T=+o[2]-1,v=+o[3];if(!o[4])return new Date(Date.UTC(u,T,v));let M=+o[4],Z=+o[5],F=+o[6];if(o[7]){for(p=o[7].slice(0,3);p.length<3;)p+="0";p=+p}if(o[9]){let z=+o[10],H=+(o[11]||0);C=(z*60+H)*6e4,o[9]==="-"&&(C=-C)}let K=new Date(Date.UTC(u,T,v,M,Z,F,p));return C&&K.setTime(K.getTime()-C),K}i(h,"constructYamlTimestamp");function y(d){return d.toISOString()}return i(y,"representYamlTimestamp"),ze=new w("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:O,construct:h,instanceOf:Date,represent:y}),ze}i(Sn,"requireTimestamp");var en,Un;function Cn(){if(Un)return en;Un=1;let w=B();function E(_){return _==="<<"||_===null}return i(E,"resolveYamlMerge"),en=new w("tag:yaml.org,2002:merge",{kind:"scalar",resolve:E}),en}i(Cn,"requireMerge");var nn,Kn;function Tn(){if(Kn)return nn;Kn=1;let w=B(),E=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
8
+ \r`;function _(d){if(d===null)return!1;let p=0,C=d.length,o=E;for(let u=0;u<C;u++){let T=o.indexOf(d.charAt(u));if(!(T>64)){if(T<0)return!1;p+=6}}return p%8===0}i(_,"resolveYamlBinary");function O(d){let p=d.replace(/[\r\n=]/g,""),C=p.length,o=E,u=0,T=[];for(let M=0;M<C;M++)M%4===0&&M&&(T.push(u>>16&255),T.push(u>>8&255),T.push(u&255)),u=u<<6|o.indexOf(p.charAt(M));let v=C%4*6;return v===0?(T.push(u>>16&255),T.push(u>>8&255),T.push(u&255)):v===18?(T.push(u>>10&255),T.push(u>>2&255)):v===12&&T.push(u>>4&255),new Uint8Array(T)}i(O,"constructYamlBinary");function h(d){let p="",C=0,o=d.length,u=E;for(let v=0;v<o;v++)v%3===0&&v&&(p+=u[C>>18&63],p+=u[C>>12&63],p+=u[C>>6&63],p+=u[C&63]),C=(C<<8)+d[v];let T=o%3;return T===0?(p+=u[C>>18&63],p+=u[C>>12&63],p+=u[C>>6&63],p+=u[C&63]):T===2?(p+=u[C>>10&63],p+=u[C>>4&63],p+=u[C<<2&63],p+=u[64]):T===1&&(p+=u[C>>2&63],p+=u[C<<4&63],p+=u[64],p+=u[64]),p}i(h,"representYamlBinary");function y(d){return Object.prototype.toString.call(d)==="[object Uint8Array]"}return i(y,"isBinary"),nn=new w("tag:yaml.org,2002:binary",{kind:"scalar",resolve:_,construct:O,predicate:y,represent:h}),nn}i(Tn,"requireBinary");var rn,Gn;function wn(){if(Gn)return rn;Gn=1;let w=B(),E=Object.prototype.hasOwnProperty,_=Object.prototype.toString;function O(y){if(y===null)return!0;let d=[],p=y;for(let C=0,o=p.length;C<o;C+=1){let u=p[C],T=!1;if(_.call(u)!=="[object Object]")return!1;let v;for(v in u)if(E.call(u,v))if(!T)T=!0;else return!1;if(!T)return!1;if(d.indexOf(v)===-1)d.push(v);else return!1}return!0}i(O,"resolveYamlOmap");function h(y){return y!==null?y:[]}return i(h,"constructYamlOmap"),rn=new w("tag:yaml.org,2002:omap",{kind:"sequence",resolve:O,construct:h}),rn}i(wn,"requireOmap");var ln,Wn;function xn(){if(Wn)return ln;Wn=1;let w=B(),E=Object.prototype.toString;function _(h){if(h===null)return!0;let y=h,d=new Array(y.length);for(let p=0,C=y.length;p<C;p+=1){let o=y[p];if(E.call(o)!=="[object Object]")return!1;let u=Object.keys(o);if(u.length!==1)return!1;d[p]=[u[0],o[u[0]]]}return!0}i(_,"resolveYamlPairs");function O(h){if(h===null)return[];let y=h,d=new Array(y.length);for(let p=0,C=y.length;p<C;p+=1){let o=y[p],u=Object.keys(o);d[p]=[u[0],o[u[0]]]}return d}return i(O,"constructYamlPairs"),ln=new w("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:_,construct:O}),ln}i(xn,"requirePairs");var on,Qn;function bn(){if(Qn)return on;Qn=1;let w=B(),E=Object.prototype.hasOwnProperty;function _(h){if(h===null)return!0;let y=h;for(let d in y)if(E.call(y,d)&&y[d]!==null)return!1;return!0}i(_,"resolveYamlSet");function O(h){return h!==null?h:{}}return i(O,"constructYamlSet"),on=new w("tag:yaml.org,2002:set",{kind:"mapping",resolve:_,construct:O}),on}i(bn,"requireSet");var tn,Vn;function Pe(){return Vn||(Vn=1,tn=yn().extend({implicit:[Sn(),Cn()],explicit:[Tn(),wn(),xn(),bn()]})),tn}i(Pe,"require_default");var Jn;function ei(){if(Jn)return Ye;Jn=1;let w=ge(),E=Ae(),_=zn(),O=Pe(),h=Object.prototype.hasOwnProperty,y=1,d=2,p=3,C=4,o=1,u=2,T=3,v=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,M=/[\x85\u2028\u2029]/,Z=/[,\[\]{}]/,F=/^(?:!|!!|![0-9A-Za-z-]+!)$/,K=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function z(e){return Object.prototype.toString.call(e)}i(z,"_class");function H(e){return e===10||e===13}i(H,"isEol");function j(e){return e===9||e===32}i(j,"isWhiteSpace");function P(e){return e===9||e===32||e===10||e===13}i(P,"isWsOrEol");function $(e){return e===44||e===91||e===93||e===123||e===125}i($,"isFlowIndicator");function Ne(e){if(e>=48&&e<=57)return e-48;let r=e|32;return r>=97&&r<=102?r-97+10:-1}i(Ne,"fromHexCode");function Me(e){return e===120?2:e===117?4:e===85?8:0}i(Me,"escapedHexLen");function ye(e){return e>=48&&e<=57?e-48:-1}i(ye,"fromDecimalCode");function ce(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
9
+ `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}i(ce,"simpleEscapeSequence");function Re(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}i(Re,"charFromCodepoint");function ue(e,r,c){r==="__proto__"?Object.defineProperty(e,r,{configurable:!0,enumerable:!0,writable:!0,value:c}):e[r]=c}i(ue,"setProperty");let qe=new Array(256),Se=new Array(256);for(let e=0;e<256;e++)qe[e]=ce(e)?1:0,Se[e]=ce(e);function Y(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||O,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:100,this.maxTotalMergeKeys=typeof r.maxTotalMergeKeys=="number"?r.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}i(Y,"State");function Ce(e,r){let c={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return c.snippet=_(c),new E(r,c)}i(Ce,"generateError");function I(e,r){throw Ce(e,r)}i(I,"throwError");function ee(e,r){e.onWarning&&e.onWarning.call(null,Ce(e,r))}i(ee,"throwWarning");function G(e,r,c){let s=e.anchorMapTransactions;if(s.length!==0){let t=s[s.length-1];h.call(t,r)||(t[r]={existed:h.call(e.anchorMap,r),value:e.anchorMap[r]})}e.anchorMap[r]=c}i(G,"storeAnchor");function Fe(e){e.anchorMapTransactions.push(Object.create(null))}i(Fe,"beginAnchorTransaction");function ne(e){let r=e.anchorMapTransactions.pop(),c=e.anchorMapTransactions;if(c.length===0)return;let s=c[c.length-1],t=Object.keys(r);for(let S=0,n=t.length;S<n;S+=1){let l=t[S];h.call(s,l)||(s[l]=r[l])}}i(ne,"commitAnchorTransaction");function Te(e){let r=e.anchorMapTransactions.pop(),c=Object.keys(r);for(let s=c.length-1;s>=0;s-=1){let t=r[c[s]];t.existed?e.anchorMap[c[s]]=t.value:delete e.anchorMap[c[s]]}}i(Te,"rollbackAnchorTransaction");function te(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}i(te,"snapshotState");function ie(e,r){e.position=r.position,e.line=r.line,e.lineStart=r.lineStart,e.lineIndent=r.lineIndent,e.firstTabInLine=r.firstTabInLine,e.tag=r.tag,e.anchor=r.anchor,e.kind=r.kind,e.result=r.result}i(ie,"restoreState");let we={YAML:i(function(r,c,s){r.version!==null&&I(r,"duplication of %YAML directive"),s.length!==1&&I(r,"YAML directive accepts exactly one argument");let t=/^([0-9]+)\.([0-9]+)$/.exec(s[0]);t===null&&I(r,"ill-formed argument of the YAML directive");let S=parseInt(t[1],10),n=parseInt(t[2],10);S!==1&&I(r,"unacceptable YAML version of the document"),r.version=s[0],r.checkLineBreaks=n<2,n!==1&&n!==2&&ee(r,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:i(function(r,c,s){let t;s.length!==2&&I(r,"TAG directive accepts exactly two arguments");let S=s[0];t=s[1],F.test(S)||I(r,"ill-formed tag handle (first argument) of the TAG directive"),h.call(r.tagMap,S)&&I(r,'there is a previously declared suffix for "'+S+'" tag handle'),K.test(t)||I(r,"ill-formed tag prefix (second argument) of the TAG directive");try{t=decodeURIComponent(t)}catch{I(r,"tag prefix is malformed: "+t)}r.tagMap[S]=t},"handleTagDirective")};function U(e,r,c,s){if(r<c){let t=e.input.slice(r,c);if(s)for(let S=0,n=t.length;S<n;S+=1){let l=t.charCodeAt(S);l===9||l>=32&&l<=1114111||I(e,"expected valid JSON character")}else v.test(t)&&I(e,"the stream contains non-printable characters");e.result+=t}}i(U,"captureSegment");function J(e,r,c,s){w.isObject(c)||I(e,"cannot merge mappings; the provided source object is unacceptable");let t=Object.keys(c);for(let S=0,n=t.length;S<n;S+=1){let l=t[S];e.maxTotalMergeKeys!==-1&&++e.totalMergeKeys>e.maxTotalMergeKeys&&I(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")"),h.call(r,l)||(ue(r,l,c[l]),s[l]=!0)}}i(J,"mergeMappings");function W(e,r,c,s,t,S,n,l,g){if(Array.isArray(t)){t=Array.prototype.slice.call(t);for(let f=0,a=t.length;f<a;f+=1)Array.isArray(t[f])&&I(e,"nested arrays are not supported inside keys"),typeof t=="object"&&z(t[f])==="[object Object]"&&(t[f]="[object Object]")}if(typeof t=="object"&&z(t)==="[object Object]"&&(t="[object Object]"),t=String(t),r===null&&(r={}),s==="tag:yaml.org,2002:merge")if(Array.isArray(S))for(let f=0,a=S.length;f<a;f+=1)J(e,r,S[f],c);else J(e,r,S,c);else!e.json&&!h.call(c,t)&&h.call(r,t)&&(e.line=n||e.line,e.lineStart=l||e.lineStart,e.position=g||e.position,I(e,"duplicated mapping key")),ue(r,t,S),delete c[t];return r}i(W,"storeMappingPair");function re(e){let r=e.input.charCodeAt(e.position);r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):I(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}i(re,"readLineBreak");function q(e,r,c){let s=0,t=e.input.charCodeAt(e.position);for(;t!==0;){for(;j(t);)t===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),t=e.input.charCodeAt(++e.position);if(r&&t===35)do t=e.input.charCodeAt(++e.position);while(t!==10&&t!==13&&t!==0);if(H(t))for(re(e),t=e.input.charCodeAt(e.position),s++,e.lineIndent=0;t===32;)e.lineIndent++,t=e.input.charCodeAt(++e.position);else break}return c!==-1&&s!==0&&e.lineIndent<c&&ee(e,"deficient indentation"),s}i(q,"skipSeparationSpace");function le(e){let r=e.position,c=e.input.charCodeAt(r);return!!((c===45||c===46)&&c===e.input.charCodeAt(r+1)&&c===e.input.charCodeAt(r+2)&&(r+=3,c=e.input.charCodeAt(r),c===0||P(c)))}i(le,"testDocumentSeparator");function Q(e,r){r===1?e.result+=" ":r>1&&(e.result+=w.repeat(`
10
+ `,r-1))}i(Q,"writeFoldedLines");function fe(e,r,c){let s,t,S,n,l,g,f=e.kind,a=e.result,A=e.input.charCodeAt(e.position);if(P(A)||$(A)||A===35||A===38||A===42||A===33||A===124||A===62||A===39||A===34||A===37||A===64||A===96)return!1;if(A===63||A===45){let m=e.input.charCodeAt(e.position+1);if(P(m)||c&&$(m))return!1}for(e.kind="scalar",e.result="",s=t=e.position,S=!1;A!==0;){if(A===58){let m=e.input.charCodeAt(e.position+1);if(P(m)||c&&$(m))break}else if(A===35){let m=e.input.charCodeAt(e.position-1);if(P(m))break}else{if(e.position===e.lineStart&&le(e)||c&&$(A))break;if(H(A))if(n=e.line,l=e.lineStart,g=e.lineIndent,q(e,!1,-1),e.lineIndent>=r){S=!0,A=e.input.charCodeAt(e.position);continue}else{e.position=t,e.line=n,e.lineStart=l,e.lineIndent=g;break}}S&&(U(e,s,t,!1),Q(e,e.line-n),s=t=e.position,S=!1),j(A)||(t=e.position+1),A=e.input.charCodeAt(++e.position)}return U(e,s,t,!1),e.result?!0:(e.kind=f,e.result=a,!1)}i(fe,"readPlainScalar");function xe(e,r){let c,s,t=e.input.charCodeAt(e.position);if(t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,c=s=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(U(e,c,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)c=e.position,e.position++,s=e.position;else return!0;else H(t)?(U(e,c,s,!0),Q(e,q(e,!1,r)),c=s=e.position):e.position===e.lineStart&&le(e)?I(e,"unexpected end of the document within a single quoted scalar"):(e.position++,j(t)||(s=e.position));I(e,"unexpected end of the stream within a single quoted scalar")}i(xe,"readSingleQuotedScalar");function ae(e,r){let c,s,t,S=e.input.charCodeAt(e.position);if(S!==34)return!1;for(e.kind="scalar",e.result="",e.position++,c=s=e.position;(S=e.input.charCodeAt(e.position))!==0;){if(S===34)return U(e,c,e.position,!0),e.position++,!0;if(S===92){if(U(e,c,e.position,!0),S=e.input.charCodeAt(++e.position),H(S))q(e,!1,r);else if(S<256&&qe[S])e.result+=Se[S],e.position++;else if((t=Me(S))>0){let n=t,l=0;for(;n>0;n--)S=e.input.charCodeAt(++e.position),(t=Ne(S))>=0?l=(l<<4)+t:I(e,"expected hexadecimal character");e.result+=Re(l),e.position++}else I(e,"unknown escape sequence");c=s=e.position}else H(S)?(U(e,c,s,!0),Q(e,q(e,!1,r)),c=s=e.position):e.position===e.lineStart&&le(e)?I(e,"unexpected end of the document within a double quoted scalar"):(e.position++,j(S)||(s=e.position))}I(e,"unexpected end of the stream within a double quoted scalar")}i(ae,"readDoubleQuotedScalar");function be(e,r){let c=!0,s,t,S,n=e.tag,l,g=e.anchor,f,a,A,m,b=Object.create(null),x,k,L,N=e.input.charCodeAt(e.position);if(N===91)f=93,m=!1,l=[];else if(N===123)f=125,m=!0,l={};else return!1;for(e.anchor!==null&&G(e,e.anchor,l),N=e.input.charCodeAt(++e.position);N!==0;){if(q(e,!0,r),N=e.input.charCodeAt(e.position),N===f)return e.position++,e.tag=n,e.anchor=g,e.kind=m?"mapping":"sequence",e.result=l,!0;if(c?N===44&&I(e,"expected the node content, but found ','"):I(e,"missed comma between flow collection entries"),k=x=L=null,a=A=!1,N===63){let R=e.input.charCodeAt(e.position+1);P(R)&&(a=A=!0,e.position++,q(e,!0,r))}s=e.line,t=e.lineStart,S=e.position,V(e,r,y,!1,!0),k=e.tag,x=e.result,q(e,!0,r),N=e.input.charCodeAt(e.position),(A||e.line===s)&&N===58&&(a=!0,N=e.input.charCodeAt(++e.position),q(e,!0,r),V(e,r,y,!1,!0),L=e.result),m?W(e,l,b,k,x,L,s,t,S):a?l.push(W(e,null,b,k,x,L,s,t,S)):l.push(x),q(e,!0,r),N=e.input.charCodeAt(e.position),N===44?(c=!0,N=e.input.charCodeAt(++e.position)):c=!1}I(e,"unexpected end of the stream within a flow collection")}i(be,"readFlowCollection");function Ee(e,r){let c,s=o,t=!1,S=!1,n=r,l=0,g=!1,f,a=e.input.charCodeAt(e.position);if(a===124)c=!1;else if(a===62)c=!0;else return!1;for(e.kind="scalar",e.result="";a!==0;)if(a=e.input.charCodeAt(++e.position),a===43||a===45)o===s?s=a===43?T:u:I(e,"repeat of a chomping mode identifier");else if((f=ye(a))>=0)f===0?I(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):S?I(e,"repeat of an indentation width identifier"):(n=r+f-1,S=!0);else break;if(j(a)){do a=e.input.charCodeAt(++e.position);while(j(a));if(a===35)do a=e.input.charCodeAt(++e.position);while(!H(a)&&a!==0)}for(;a!==0;){for(re(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!S||e.lineIndent<n)&&a===32;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!S&&e.lineIndent>n&&(n=e.lineIndent),H(a)){l++;continue}if(!S&&n===0&&I(e,"missing indentation for block scalar"),e.lineIndent<n){s===T?e.result+=w.repeat(`
11
+ `,t?1+l:l):s===o&&t&&(e.result+=`
12
+ `);break}c?j(a)?(g=!0,e.result+=w.repeat(`
13
+ `,t?1+l:l)):g?(g=!1,e.result+=w.repeat(`
14
+ `,l+1)):l===0?t&&(e.result+=" "):e.result+=w.repeat(`
15
+ `,l):e.result+=w.repeat(`
16
+ `,t?1+l:l),t=!0,S=!0,l=0;let A=e.position;for(;!H(a)&&a!==0;)a=e.input.charCodeAt(++e.position);U(e,A,e.position,!1)}return!0}i(Ee,"readBlockScalar");function X(e,r){let c=e.tag,s=e.anchor,t=[],S=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&G(e,e.anchor,t);let n=e.input.charCodeAt(e.position);for(;n!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,I(e,"tab characters must not be used in indentation")),n===45);){let l=e.input.charCodeAt(e.position+1);if(!P(l))break;if(S=!0,e.position++,q(e,!0,-1)&&e.lineIndent<=r){t.push(null),n=e.input.charCodeAt(e.position);continue}let g=e.line;if(V(e,r,p,!1,!0),t.push(e.result),q(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===g||e.lineIndent>r)&&n!==0)I(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return S?(e.tag=c,e.anchor=s,e.kind="sequence",e.result=t,!0):!1}i(X,"readBlockSequence");function pe(e,r,c){let s,t,S,n,l=e.tag,g=e.anchor,f={},a=Object.create(null),A=null,m=null,b=null,x=!1,k=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&G(e,e.anchor,f);let L=e.input.charCodeAt(e.position);for(;L!==0;){!x&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,I(e,"tab characters must not be used in indentation"));let N=e.input.charCodeAt(e.position+1),R=e.line;if((L===63||L===58)&&P(N))L===63?(x&&(W(e,f,a,A,m,null,t,S,n),A=m=b=null),k=!0,x=!0,s=!0):x?(x=!1,s=!0):I(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,L=N;else{if(t=e.line,S=e.lineStart,n=e.position,!V(e,c,d,!1,!0))break;if(e.line===R){for(L=e.input.charCodeAt(e.position);j(L);)L=e.input.charCodeAt(++e.position);if(L===58)L=e.input.charCodeAt(++e.position),P(L)||I(e,"a whitespace character is expected after the key-value separator within a block mapping"),x&&(W(e,f,a,A,m,null,t,S,n),A=m=b=null),k=!0,x=!1,s=!1,A=e.tag,m=e.result;else if(k)I(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=l,e.anchor=g,!0}else if(k)I(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=l,e.anchor=g,!0}if((e.line===R||e.lineIndent>r)&&(x&&(t=e.line,S=e.lineStart,n=e.position),V(e,r,C,!0,s)&&(x?m=e.result:b=e.result),x||(W(e,f,a,A,m,b,t,S,n),A=m=b=null),q(e,!0,-1),L=e.input.charCodeAt(e.position)),(e.line===R||e.lineIndent>r)&&L!==0)I(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return x&&W(e,f,a,A,m,null,t,S,n),k&&(e.tag=l,e.anchor=g,e.kind="mapping",e.result=f),k}i(pe,"readBlockMapping");function _e(e){let r=!1,c=!1,s,t,S=e.input.charCodeAt(e.position);if(S!==33)return!1;e.tag!==null&&I(e,"duplication of a tag property"),S=e.input.charCodeAt(++e.position),S===60?(r=!0,S=e.input.charCodeAt(++e.position)):S===33?(c=!0,s="!!",S=e.input.charCodeAt(++e.position)):s="!";let n=e.position;if(r){do S=e.input.charCodeAt(++e.position);while(S!==0&&S!==62);e.position<e.length?(t=e.input.slice(n,e.position),S=e.input.charCodeAt(++e.position)):I(e,"unexpected end of the stream within a verbatim tag")}else{for(;S!==0&&!P(S);)S===33&&(c?I(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(n-1,e.position+1),F.test(s)||I(e,"named tag handle cannot contain such characters"),c=!0,n=e.position+1)),S=e.input.charCodeAt(++e.position);t=e.input.slice(n,e.position),Z.test(t)&&I(e,"tag suffix cannot contain flow indicator characters")}t&&!K.test(t)&&I(e,"tag name cannot contain such characters: "+t);try{t=decodeURIComponent(t)}catch{I(e,"tag name is malformed: "+t)}return r?e.tag=t:h.call(e.tagMap,s)?e.tag=e.tagMap[s]+t:s==="!"?e.tag="!"+t:s==="!!"?e.tag="tag:yaml.org,2002:"+t:I(e,'undeclared tag handle "'+s+'"'),!0}i(_e,"readTagProperty");function se(e){let r=e.input.charCodeAt(e.position);if(r!==38)return!1;e.anchor!==null&&I(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position);let c=e.position;for(;r!==0&&!P(r)&&!$(r);)r=e.input.charCodeAt(++e.position);return e.position===c&&I(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(c,e.position),!0}i(se,"readAnchorProperty");function he(e){let r=e.input.charCodeAt(e.position);if(r!==42)return!1;r=e.input.charCodeAt(++e.position);let c=e.position;for(;r!==0&&!P(r)&&!$(r);)r=e.input.charCodeAt(++e.position);e.position===c&&I(e,"name of an alias node must contain at least one character");let s=e.input.slice(c,e.position);return h.call(e.anchorMap,s)||I(e,'unidentified alias "'+s+'"'),e.result=e.anchorMap[s],q(e,!0,-1),!0}i(he,"readAlias");function Ie(e,r,c,s){let t=te(e);return Fe(e),ie(e,r),e.tag=null,e.anchor=null,e.kind=null,e.result=null,pe(e,c,s)&&e.kind==="mapping"?(ne(e),!0):(Te(e),ie(e,t),!1)}i(Ie,"tryReadBlockMappingFromProperty");function V(e,r,c,s,t){let S,n,l=1,g=!1,f=!1,a=null,A,m,b;e.depth>=e.maxDepth&&I(e,"nesting exceeded maxDepth ("+e.maxDepth+")"),e.depth+=1,e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let x=S=n=C===c||p===c;if(s&&q(e,!0,-1)&&(g=!0,e.lineIndent>r?l=1:e.lineIndent===r?l=0:e.lineIndent<r&&(l=-1)),l===1)for(;;){let k=e.input.charCodeAt(e.position),L=te(e);if(g&&(k===33&&e.tag!==null||k===38&&e.anchor!==null)||!_e(e)&&!se(e))break;a===null&&(a=L),q(e,!0,-1)?(g=!0,n=x,e.lineIndent>r?l=1:e.lineIndent===r?l=0:e.lineIndent<r&&(l=-1)):n=!1}if(n&&(n=g||t),l===1||C===c)if(y===c||d===c?m=r:m=r+1,b=e.position-e.lineStart,l===1)if(n&&(X(e,b)||pe(e,b,m))||be(e,m))f=!0;else{let k=e.input.charCodeAt(e.position);a!==null&&x&&!n&&k!==124&&k!==62&&Ie(e,a,a.position-a.lineStart,m)||S&&Ee(e,m)||xe(e,m)||ae(e,m)?f=!0:he(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&I(e,"alias node should not have any properties")):fe(e,m,y===c)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&G(e,e.anchor,e.result)}else l===0&&(f=n&&X(e,b));if(e.tag===null)e.anchor!==null&&G(e,e.anchor,e.result);else if(e.tag==="?"){e.result!==null&&e.kind!=="scalar"&&I(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"');for(let k=0,L=e.implicitTypes.length;k<L;k+=1)if(A=e.implicitTypes[k],A.resolve(e.result)){e.result=A.construct(e.result),e.tag=A.tag,e.anchor!==null&&G(e,e.anchor,e.result);break}}else if(e.tag!=="!"){if(h.call(e.typeMap[e.kind||"fallback"],e.tag))A=e.typeMap[e.kind||"fallback"][e.tag];else{A=null;let k=e.typeMap.multi[e.kind||"fallback"];for(let L=0,N=k.length;L<N;L+=1)if(e.tag.slice(0,k[L].tag.length)===k[L].tag){A=k[L];break}}A||I(e,"unknown tag !<"+e.tag+">"),e.result!==null&&A.kind!==e.kind&&I(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+A.kind+'", not "'+e.kind+'"'),A.resolve(e.result,e.tag)?(e.result=A.construct(e.result,e.tag),e.anchor!==null&&G(e,e.anchor,e.result)):I(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.depth-=1,e.tag!==null||e.anchor!==null||f}i(V,"composeNode");function ke(e){let r=e.position,c=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(q(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){c=!0,s=e.input.charCodeAt(++e.position);let t=e.position;for(;s!==0&&!P(s);)s=e.input.charCodeAt(++e.position);let S=e.input.slice(t,e.position),n=[];for(S.length<1&&I(e,"directive name must not be less than one character in length");s!==0;){for(;j(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!H(s));break}if(H(s))break;for(t=e.position;s!==0&&!P(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}s!==0&&re(e),h.call(we,S)?we[S](e,S,n):ee(e,'unknown document directive "'+S+'"')}if(q(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,q(e,!0,-1)):c&&I(e,"directives end mark is expected"),V(e,e.lineIndent-1,C,!1,!0),q(e,!0,-1),e.checkLineBreaks&&M.test(e.input.slice(r,e.position))&&ee(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&le(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,q(e,!0,-1));return}e.position<e.length-1&&I(e,"end of the stream or a document separator is expected")}i(ke,"readDocument");function de(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
17
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));let c=new Y(e,r),s=e.indexOf("\0");for(s!==-1&&(c.position=s,I(c,"null byte is not allowed in input")),c.input+="\0";c.input.charCodeAt(c.position)===32;)c.lineIndent+=1,c.position+=1;for(;c.position<c.length-1;)ke(c);return c.documents}i(de,"loadDocuments");function me(e,r,c){r!==null&&typeof r=="object"&&typeof c>"u"&&(c=r,r=null);let s=de(e,c);if(typeof r!="function")return s;for(let t=0,S=s.length;t<S;t+=1)r(s[t])}i(me,"loadAll2");function Le(e,r){let c=de(e,r);if(c.length!==0){if(c.length===1)return c[0];throw new E("expected a single document in the stream, but found more")}}return i(Le,"load2"),Ye.loadAll=me,Ye.load=Le,Ye}i(ei,"requireLoader");var cn={},Xn;function ni(){if(Xn)return cn;Xn=1;let w=ge(),E=Ae(),_=Pe(),O=Object.prototype.toString,h=Object.prototype.hasOwnProperty,y=65279,d=9,p=10,C=13,o=32,u=33,T=34,v=35,M=37,Z=38,F=39,K=42,z=44,H=45,j=58,P=61,$=62,Ne=63,Me=64,ye=91,ce=93,Re=96,ue=123,qe=124,Se=125,Y={};Y[0]="\\0",Y[7]="\\a",Y[8]="\\b",Y[9]="\\t",Y[10]="\\n",Y[11]="\\v",Y[12]="\\f",Y[13]="\\r",Y[27]="\\e",Y[34]='\\"',Y[92]="\\\\",Y[133]="\\N",Y[160]="\\_",Y[8232]="\\L",Y[8233]="\\P";let Ce=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],I=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ee(n,l){if(l===null)return{};let g={},f=Object.keys(l);for(let a=0,A=f.length;a<A;a+=1){let m=f[a],b=String(l[m]);m.slice(0,2)==="!!"&&(m="tag:yaml.org,2002:"+m.slice(2));let x=n.compiledTypeMap.fallback[m];x&&h.call(x.styleAliases,b)&&(b=x.styleAliases[b]),g[m]=b}return g}i(ee,"compileStyleMap");function G(n){let l,g,f=n.toString(16).toUpperCase();if(n<=255)l="x",g=2;else if(n<=65535)l="u",g=4;else if(n<=4294967295)l="U",g=8;else throw new E("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+l+w.repeat("0",g-f.length)+f}i(G,"encodeHex");let Fe=1,ne=2;function Te(n){this.schema=n.schema||_,this.indent=Math.max(1,n.indent||2),this.noArrayIndent=n.noArrayIndent||!1,this.skipInvalid=n.skipInvalid||!1,this.flowLevel=w.isNothing(n.flowLevel)?-1:n.flowLevel,this.styleMap=ee(this.schema,n.styles||null),this.sortKeys=n.sortKeys||!1,this.lineWidth=n.lineWidth||80,this.noRefs=n.noRefs||!1,this.noCompatMode=n.noCompatMode||!1,this.condenseFlow=n.condenseFlow||!1,this.quotingType=n.quotingType==='"'?ne:Fe,this.forceQuotes=n.forceQuotes||!1,this.replacer=typeof n.replacer=="function"?n.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}i(Te,"State");function te(n,l){let g=w.repeat(" ",l),f=0,a="",A=n.length;for(;f<A;){let m,b=n.indexOf(`
18
+ `,f);b===-1?(m=n.slice(f),f=A):(m=n.slice(f,b+1),f=b+1),m.length&&m!==`
19
+ `&&(a+=g),a+=m}return a}i(te,"indentString");function ie(n,l){return`
20
+ `+w.repeat(" ",n.indent*l)}i(ie,"generateNextLine");function we(n,l){for(let g=0,f=n.implicitTypes.length;g<f;g+=1)if(n.implicitTypes[g].resolve(l))return!0;return!1}i(we,"testImplicitResolving");function U(n){return n===o||n===d}i(U,"isWhitespace");function J(n){return n>=32&&n<=126||n>=161&&n<=55295&&n!==8232&&n!==8233||n>=57344&&n<=65533&&n!==y||n>=65536&&n<=1114111}i(J,"isPrintable");function W(n){return J(n)&&n!==y&&n!==C&&n!==p}i(W,"isNsCharOrWhitespace");function re(n,l,g){let f=W(n),a=f&&!U(n);return(g?f:f&&n!==z&&n!==ye&&n!==ce&&n!==ue&&n!==Se)&&n!==v&&!(l===j&&!a)||W(l)&&!U(l)&&n===v||l===j&&a}i(re,"isPlainSafe");function q(n){return J(n)&&n!==y&&!U(n)&&n!==H&&n!==Ne&&n!==j&&n!==z&&n!==ye&&n!==ce&&n!==ue&&n!==Se&&n!==v&&n!==Z&&n!==K&&n!==u&&n!==qe&&n!==P&&n!==$&&n!==F&&n!==T&&n!==M&&n!==Me&&n!==Re}i(q,"isPlainSafeFirst");function le(n){return!U(n)&&n!==j}i(le,"isPlainSafeLast");function Q(n,l){let g=n.charCodeAt(l),f;return g>=55296&&g<=56319&&l+1<n.length&&(f=n.charCodeAt(l+1),f>=56320&&f<=57343)?(g-55296)*1024+f-56320+65536:g}i(Q,"codePointAt");function fe(n){return/^\n* /.test(n)}i(fe,"needIndentIndicator");let xe=1,ae=2,be=3,Ee=4,X=5;function pe(n,l,g,f,a,A,m,b){let x,k=0,L=null,N=!1,R=!1,En=f!==-1,Oe=-1,ve=q(Q(n,0))&&le(Q(n,n.length-1));if(l||m)for(x=0;x<n.length;k>=65536?x+=2:x++){if(k=Q(n,x),!J(k))return X;ve=ve&&re(k,L,b),L=k}else{for(x=0;x<n.length;k>=65536?x+=2:x++){if(k=Q(n,x),k===p)N=!0,En&&(R=R||x-Oe-1>f&&n[Oe+1]!==" ",Oe=x);else if(!J(k))return X;ve=ve&&re(k,L,b),L=k}R=R||En&&x-Oe-1>f&&n[Oe+1]!==" "}return!N&&!R?ve&&!m&&!a(n)?xe:A===ne?X:ae:g>9&&fe(n)?X:m?A===ne?X:ae:R?Ee:be}i(pe,"chooseScalarStyle");function _e(n,l,g,f,a){n.dump=(function(){if(l.length===0)return n.quotingType===ne?'""':"''";if(!n.noCompatMode&&(Ce.indexOf(l)!==-1||I.test(l)))return n.quotingType===ne?'"'+l+'"':"'"+l+"'";let A=n.indent*Math.max(1,g),m=n.lineWidth===-1?-1:Math.max(Math.min(n.lineWidth,40),n.lineWidth-A),b=f||n.flowLevel>-1&&g>=n.flowLevel;function x(k){return we(n,k)}switch(i(x,"testAmbiguity"),pe(l,b,n.indent,m,x,n.quotingType,n.forceQuotes&&!f,a)){case xe:return l;case ae:return"'"+l.replace(/'/g,"''")+"'";case be:return"|"+se(l,n.indent)+he(te(l,A));case Ee:return">"+se(l,n.indent)+he(te(Ie(l,m),A));case X:return'"'+ke(l)+'"';default:throw new E("impossible error: invalid scalar style")}})()}i(_e,"writeScalar");function se(n,l){let g=fe(n)?String(l):"",f=n[n.length-1]===`
21
+ `,A=f&&(n[n.length-2]===`
22
+ `||n===`
23
+ `)?"+":f?"":"-";return g+A+`
24
+ `}i(se,"blockHeader");function he(n){return n[n.length-1]===`
25
+ `?n.slice(0,-1):n}i(he,"dropEndingNewline");function Ie(n,l){let g=/(\n+)([^\n]*)/g,f=(function(){let b=n.indexOf(`
26
+ `);return b=b!==-1?b:n.length,g.lastIndex=b,V(n.slice(0,b),l)})(),a=n[0]===`
27
+ `||n[0]===" ",A,m;for(;m=g.exec(n);){let b=m[1],x=m[2];A=x[0]===" ",f+=b+(!a&&!A&&x!==""?`
28
+ `:"")+V(x,l),a=A}return f}i(Ie,"foldString");function V(n,l){if(n===""||n[0]===" ")return n;let g=/ [^ ]/g,f,a=0,A,m=0,b=0,x="";for(;f=g.exec(n);)b=f.index,b-a>l&&(A=m>a?m:b,x+=`
29
+ `+n.slice(a,A),a=A+1),m=b;return x+=`
30
+ `,n.length-a>l&&m>a?x+=n.slice(a,m)+`
31
+ `+n.slice(m+1):x+=n.slice(a),x.slice(1)}i(V,"foldLine");function ke(n){let l="",g=0;for(let f=0;f<n.length;g>=65536?f+=2:f++){g=Q(n,f);let a=Y[g];!a&&J(g)?(l+=n[f],g>=65536&&(l+=n[f+1])):l+=a||G(g)}return l}i(ke,"escapeString");function de(n,l,g){let f="",a=n.tag;for(let A=0,m=g.length;A<m;A+=1){let b=g[A];n.replacer&&(b=n.replacer.call(g,String(A),b)),(c(n,l,b,!1,!1)||typeof b>"u"&&c(n,l,null,!1,!1))&&(f!==""&&(f+=","+(n.condenseFlow?"":" ")),f+=n.dump)}n.tag=a,n.dump="["+f+"]"}i(de,"writeFlowSequence");function me(n,l,g,f){let a="",A=n.tag;for(let m=0,b=g.length;m<b;m+=1){let x=g[m];n.replacer&&(x=n.replacer.call(g,String(m),x)),(c(n,l+1,x,!0,!0,!1,!0)||typeof x>"u"&&c(n,l+1,null,!0,!0,!1,!0))&&((!f||a!=="")&&(a+=ie(n,l)),n.dump&&p===n.dump.charCodeAt(0)?a+="-":a+="- ",a+=n.dump)}n.tag=A,n.dump=a||"[]"}i(me,"writeBlockSequence");function Le(n,l,g){let f="",a=n.tag,A=Object.keys(g);for(let m=0,b=A.length;m<b;m+=1){let x="";f!==""&&(x+=", "),n.condenseFlow&&(x+='"');let k=A[m],L=g[k];n.replacer&&(L=n.replacer.call(g,k,L)),c(n,l,k,!1,!1)&&(n.dump.length>1024&&(x+="? "),x+=n.dump+(n.condenseFlow?'"':"")+":"+(n.condenseFlow?"":" "),c(n,l,L,!1,!1)&&(x+=n.dump,f+=x))}n.tag=a,n.dump="{"+f+"}"}i(Le,"writeFlowMapping");function e(n,l,g,f){let a="",A=n.tag,m=Object.keys(g);if(n.sortKeys===!0)m.sort();else if(typeof n.sortKeys=="function")m.sort(n.sortKeys);else if(n.sortKeys)throw new E("sortKeys must be a boolean or a function");for(let b=0,x=m.length;b<x;b+=1){let k="";(!f||a!=="")&&(k+=ie(n,l));let L=m[b],N=g[L];if(n.replacer&&(N=n.replacer.call(g,L,N)),!c(n,l+1,L,!0,!0,!0))continue;let R=n.tag!==null&&n.tag!=="?"||n.dump&&n.dump.length>1024;R&&(n.dump&&p===n.dump.charCodeAt(0)?k+="?":k+="? "),k+=n.dump,R&&(k+=ie(n,l)),c(n,l+1,N,!0,R)&&(n.dump&&p===n.dump.charCodeAt(0)?k+=":":k+=": ",k+=n.dump,a+=k)}n.tag=A,n.dump=a||"{}"}i(e,"writeBlockMapping");function r(n,l,g){let f=g?n.explicitTypes:n.implicitTypes;for(let a=0,A=f.length;a<A;a+=1){let m=f[a];if((m.instanceOf||m.predicate)&&(!m.instanceOf||typeof l=="object"&&l instanceof m.instanceOf)&&(!m.predicate||m.predicate(l))){if(g?m.multi&&m.representName?n.tag=m.representName(l):n.tag=m.tag:n.tag="?",m.represent){let b=n.styleMap[m.tag]||m.defaultStyle,x;if(O.call(m.represent)==="[object Function]")x=m.represent(l,b);else if(h.call(m.represent,b))x=m.represent[b](l,b);else throw new E("!<"+m.tag+'> tag resolver accepts not "'+b+'" style');n.dump=x}return!0}}return!1}i(r,"detectType");function c(n,l,g,f,a,A,m){n.tag=null,n.dump=g,r(n,g,!1)||r(n,g,!0);let b=O.call(n.dump),x=f;f&&(f=n.flowLevel<0||n.flowLevel>l);let k=b==="[object Object]"||b==="[object Array]",L,N;if(k&&(L=n.duplicates.indexOf(g),N=L!==-1),(n.tag!==null&&n.tag!=="?"||N||n.indent!==2&&l>0)&&(a=!1),N&&n.usedDuplicates[L])n.dump="*ref_"+L;else{if(k&&N&&!n.usedDuplicates[L]&&(n.usedDuplicates[L]=!0),b==="[object Object]")f&&Object.keys(n.dump).length!==0?(e(n,l,n.dump,a),N&&(n.dump="&ref_"+L+n.dump)):(Le(n,l,n.dump),N&&(n.dump="&ref_"+L+" "+n.dump));else if(b==="[object Array]")f&&n.dump.length!==0?(n.noArrayIndent&&!m&&l>0?me(n,l-1,n.dump,a):me(n,l,n.dump,a),N&&(n.dump="&ref_"+L+n.dump)):(de(n,l,n.dump),N&&(n.dump="&ref_"+L+" "+n.dump));else if(b==="[object String]")n.tag!=="?"&&_e(n,n.dump,l,A,x);else{if(b==="[object Undefined]")return!1;if(n.skipInvalid)return!1;throw new E("unacceptable kind of an object to dump "+b)}if(n.tag!==null&&n.tag!=="?"){let R=encodeURI(n.tag[0]==="!"?n.tag.slice(1):n.tag).replace(/!/g,"%21");n.tag[0]==="!"?R="!"+R:R.slice(0,18)==="tag:yaml.org,2002:"?R="!!"+R.slice(18):R="!<"+R+">",n.dump=R+" "+n.dump}}return!0}i(c,"writeNode");function s(n,l){let g=[],f=[];t(n,g,f);let a=f.length;for(let A=0;A<a;A+=1)l.duplicates.push(g[f[A]]);l.usedDuplicates=new Array(a)}i(s,"getDuplicateReferences");function t(n,l,g){if(n!==null&&typeof n=="object"){let f=l.indexOf(n);if(f!==-1)g.indexOf(f)===-1&&g.push(f);else if(l.push(n),Array.isArray(n))for(let a=0,A=n.length;a<A;a+=1)t(n[a],l,g);else{let a=Object.keys(n);for(let A=0,m=a.length;A<m;A+=1)t(n[a[A]],l,g)}}}i(t,"inspectNode");function S(n,l){l=l||{};let g=new Te(l);g.noRefs||s(n,g);let f=n;return g.replacer&&(f=g.replacer.call({"":f},"",f)),c(g,0,f,!0,!0)?g.dump+`
32
+ `:""}return i(S,"dump2"),cn.dump=S,cn}i(ni,"requireDumper");var $n;function ii(){if($n)return D;$n=1;let w=ei(),E=ni();function _(O,h){return function(){throw new Error("Function yaml."+O+" is removed in js-yaml 4. Use yaml."+h+" instead, which is now safe by default.")}}return i(_,"renamed"),D.Type=B(),D.Schema=un(),D.FAILSAFE_SCHEMA=sn(),D.JSON_SCHEMA=An(),D.CORE_SCHEMA=yn(),D.DEFAULT_SCHEMA=Pe(),D.load=w.load,D.loadAll=w.loadAll,D.dump=E.dump,D.YAMLException=Ae(),D.types={binary:Tn(),float:gn(),map:pn(),null:hn(),pairs:xn(),set:bn(),timestamp:Sn(),bool:dn(),int:mn(),merge:Cn(),omap:wn(),seq:an(),str:fn()},D.safeLoad=_("safeLoad","load"),D.safeLoadAll=_("safeLoadAll","loadAll"),D.safeDump=_("safeDump","dump"),D}i(ii,"requireJsYaml");var ri=ii(),li=Zn(ri),{Type:ci,Schema:ui,FAILSAFE_SCHEMA:fi,JSON_SCHEMA:ai,CORE_SCHEMA:pi,DEFAULT_SCHEMA:si,load:hi,loadAll:di,dump:mi,YAMLException:gi,types:Ai,safeLoad:yi,safeLoadAll:Si,safeDump:Ci}=li;export{ai as a,hi as b};
33
+ //# sourceMappingURL=chunk-2DLEMZHM.js.map