@1agents/dsh-a2a 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -2
- package/cordis.patch.yml +10 -0
- package/dist/approvals.js +49 -0
- package/dist/cli.js +15 -0
- package/dist/executor.js +121 -0
- package/dist/index.js +18 -0
- package/dist/sdk-runtime.js +116 -0
- package/dist/server.js +46 -0
- package/dist/shared/a2a/workbench-ui.js +182 -0
- package/dist/workbench-ui/app.css +453 -0
- package/dist/workbench-ui/app.js +13 -0
- package/dist/workbench-ui/chunk-23JHGYT3.js +1 -0
- package/dist/workbench-ui/chunk-3H6STGPV.js +1 -0
- package/dist/workbench-ui/chunk-3SNBBMGH.js +1 -0
- package/dist/workbench-ui/chunk-3XJZ6DIE.js +1 -0
- package/dist/workbench-ui/chunk-44KDLLKJ.js +1 -0
- package/dist/workbench-ui/chunk-46H7FU5Y.js +7 -0
- package/dist/workbench-ui/chunk-4N44QPL7.js +1 -0
- package/dist/workbench-ui/chunk-4YN4BS7I.js +1 -0
- package/dist/workbench-ui/chunk-53EG4IVQ.js +96 -0
- package/dist/workbench-ui/chunk-5FIPUNR4.js +1 -0
- package/dist/workbench-ui/chunk-6DWWYA6G.js +2 -0
- package/dist/workbench-ui/chunk-6FU3T633.js +99 -0
- package/dist/workbench-ui/chunk-6XKIHRA4.js +1 -0
- package/dist/workbench-ui/chunk-7GIX43Y5.js +1 -0
- package/dist/workbench-ui/chunk-7Q4WBGX6.js +4 -0
- package/dist/workbench-ui/chunk-A3BQM7HR.js +1 -0
- package/dist/workbench-ui/chunk-AFCFDDOP.js +24 -0
- package/dist/workbench-ui/chunk-AG67EUYD.js +89 -0
- package/dist/workbench-ui/chunk-AGJHMMTN.js +1 -0
- package/dist/workbench-ui/chunk-AO6JUBV6.js +41 -0
- package/dist/workbench-ui/chunk-AUSLTP43.js +72 -0
- package/dist/workbench-ui/chunk-AVZL46TT.js +1 -0
- package/dist/workbench-ui/chunk-AZRIGIV2.js +168 -0
- package/dist/workbench-ui/chunk-B2LIVH37.js +1 -0
- package/dist/workbench-ui/chunk-B7YX5TR5.js +1 -0
- package/dist/workbench-ui/chunk-BCB4X4XX.js +1 -0
- package/dist/workbench-ui/chunk-BCRQUL2A.js +88 -0
- package/dist/workbench-ui/chunk-BI6UHHQP.js +1 -0
- package/dist/workbench-ui/chunk-BLSLQ4AQ.js +120 -0
- package/dist/workbench-ui/chunk-C3QSRS6E.js +1 -0
- package/dist/workbench-ui/chunk-CK7M2PJ3.js +62 -0
- package/dist/workbench-ui/chunk-CM6LZ7TU.js +1 -0
- package/dist/workbench-ui/chunk-CP63H27F.js +36 -0
- package/dist/workbench-ui/chunk-CPUMMIS2.js +70 -0
- package/dist/workbench-ui/chunk-CSEIBI5U.js +2 -0
- package/dist/workbench-ui/chunk-CUS65DKZ.js +161 -0
- package/dist/workbench-ui/chunk-CVQY7TNC.js +1 -0
- package/dist/workbench-ui/chunk-D6S3XBIX.js +106 -0
- package/dist/workbench-ui/chunk-E253Y562.js +1 -0
- package/dist/workbench-ui/chunk-EADDJUDC.js +1 -0
- package/dist/workbench-ui/chunk-EBGJ3YXG.js +206 -0
- package/dist/workbench-ui/chunk-EKPVZ3WY.js +8 -0
- package/dist/workbench-ui/chunk-EQDCEAFY.js +1 -0
- package/dist/workbench-ui/chunk-ES3SSDJY.js +40 -0
- package/dist/workbench-ui/chunk-ESFD2H7N.js +231 -0
- package/dist/workbench-ui/chunk-FVOHPMS6.js +1 -0
- package/dist/workbench-ui/chunk-FXMQAGVT.js +1 -0
- package/dist/workbench-ui/chunk-GGTADRXD.js +24 -0
- package/dist/workbench-ui/chunk-GHIVPGNQ.js +1 -0
- package/dist/workbench-ui/chunk-GLU2YQV2.js +1 -0
- package/dist/workbench-ui/chunk-GOCKBYSM.js +1 -0
- package/dist/workbench-ui/chunk-H2KMMTJB.js +1 -0
- package/dist/workbench-ui/chunk-HGVLDNPP.js +39 -0
- package/dist/workbench-ui/chunk-HSAVC5GY.js +1 -0
- package/dist/workbench-ui/chunk-HSEAD2JH.js +1 -0
- package/dist/workbench-ui/chunk-HSIHOBTY.js +1 -0
- package/dist/workbench-ui/chunk-IZXOKUGG.js +67 -0
- package/dist/workbench-ui/chunk-JFT2LC2T.js +1 -0
- package/dist/workbench-ui/chunk-JHL3ZDYK.js +3 -0
- package/dist/workbench-ui/chunk-JMORLCZG.js +257 -0
- package/dist/workbench-ui/chunk-JR4SIX7A.js +1 -0
- package/dist/workbench-ui/chunk-K23HAGEH.js +30 -0
- package/dist/workbench-ui/chunk-K43JDCBH.js +1 -0
- package/dist/workbench-ui/chunk-KINKFJY7.js +1 -0
- package/dist/workbench-ui/chunk-KKQSA4LI.js +2 -0
- package/dist/workbench-ui/chunk-KOUZX3UX.js +1 -0
- package/dist/workbench-ui/chunk-KR4DRHW2.js +78 -0
- package/dist/workbench-ui/chunk-KT4DJNOR.js +1 -0
- package/dist/workbench-ui/chunk-KTPNKRRZ.js +292 -0
- package/dist/workbench-ui/chunk-LFHIPGSU.js +7 -0
- package/dist/workbench-ui/chunk-LWDL4HZB.js +125 -0
- package/dist/workbench-ui/chunk-MVYC3CY4.js +1 -0
- package/dist/workbench-ui/chunk-NWUPALCY.js +129 -0
- package/dist/workbench-ui/chunk-NY7C662Z.js +1 -0
- package/dist/workbench-ui/chunk-O76WTHWP.js +1 -0
- package/dist/workbench-ui/chunk-OTF7YHRE.js +162 -0
- package/dist/workbench-ui/chunk-P6TKKRKP.js +1 -0
- package/dist/workbench-ui/chunk-PFHOOWV3.js +1 -0
- package/dist/workbench-ui/chunk-PUQLANIM.js +1 -0
- package/dist/workbench-ui/chunk-PZCGBYVO.js +1 -0
- package/dist/workbench-ui/chunk-QOHUZGP4.js +1 -0
- package/dist/workbench-ui/chunk-QSEG3OFF.js +1 -0
- package/dist/workbench-ui/chunk-QYPOXZIA.js +84 -0
- package/dist/workbench-ui/chunk-R6SOF3JC.js +1 -0
- package/dist/workbench-ui/chunk-RCLOYU5F.js +1 -0
- package/dist/workbench-ui/chunk-RSRUP64S.js +1 -0
- package/dist/workbench-ui/chunk-RVAIT6JW.js +1 -0
- package/dist/workbench-ui/chunk-S2CCN3II.js +1 -0
- package/dist/workbench-ui/chunk-S2Q52W46.js +1 -0
- package/dist/workbench-ui/chunk-S2W5THJ5.js +1 -0
- package/dist/workbench-ui/chunk-S6ZQZNOX.js +1 -0
- package/dist/workbench-ui/chunk-S74PLMMS.js +1 -0
- package/dist/workbench-ui/chunk-S7C4HKEY.js +1 -0
- package/dist/workbench-ui/chunk-SDTB3Q65.js +1 -0
- package/dist/workbench-ui/chunk-SLPRGYUV.js +32 -0
- package/dist/workbench-ui/chunk-SQE76S5B.js +1 -0
- package/dist/workbench-ui/chunk-SSDZPVPW.js +1 -0
- package/dist/workbench-ui/chunk-SVI7DGIE.js +1 -0
- package/dist/workbench-ui/chunk-T6QKLZ4H.js +62 -0
- package/dist/workbench-ui/chunk-TJNRPTFL.js +1 -0
- package/dist/workbench-ui/chunk-TP6U4EDH.js +2 -0
- package/dist/workbench-ui/chunk-TYAAT3GQ.js +1 -0
- package/dist/workbench-ui/chunk-U6OCY4ZH.js +1 -0
- package/dist/workbench-ui/chunk-UAN3NLRF.js +1 -0
- package/dist/workbench-ui/chunk-UMLU3FIX.js +1 -0
- package/dist/workbench-ui/chunk-URIY2OTM.js +1 -0
- package/dist/workbench-ui/chunk-V2NUKAA7.js +38 -0
- package/dist/workbench-ui/chunk-V4QLL4TE.js +139 -0
- package/dist/workbench-ui/chunk-VASHXUK4.js +2 -0
- package/dist/workbench-ui/chunk-VJLIWNIU.js +1 -0
- package/dist/workbench-ui/chunk-VQNQFBID.js +1 -0
- package/dist/workbench-ui/chunk-VSIWU7XA.js +3 -0
- package/dist/workbench-ui/chunk-VSJASPUZ.js +321 -0
- package/dist/workbench-ui/chunk-VXPNUNUX.js +3 -0
- package/dist/workbench-ui/chunk-WBKLDCV6.js +1 -0
- package/dist/workbench-ui/chunk-WOKJM3FY.js +1 -0
- package/dist/workbench-ui/chunk-X3U3NA3X.js +34 -0
- package/dist/workbench-ui/chunk-XBYU7M4J.js +1 -0
- package/dist/workbench-ui/chunk-XBZAO4ID.js +10 -0
- package/dist/workbench-ui/chunk-XLLPZ2WO.js +1 -0
- package/dist/workbench-ui/chunk-YFVL4NJL.js +1 -0
- package/dist/workbench-ui/chunk-YRFQENM4.js +1 -0
- package/dist/workbench-ui/chunk-YUADQVB2.js +1 -0
- package/dist/workbench-ui/chunk-Z3TCAKM5.js +1 -0
- package/dist/workbench-ui/chunk-Z6QR6FRE.js +10 -0
- package/dist/workbench-ui/chunk-ZJPSORPP.js +3 -0
- package/dist/workbench-ui/chunk-ZLGCSTR2.js +15 -0
- package/dist/workbench-ui/chunk-ZLR4SG5X.js +1 -0
- package/dist/workbench-ui/chunk-ZND3TTGF.js +1 -0
- package/dist/workbench-ui/chunk-ZOP3ZYH7.js +2 -0
- package/dist/workbench-ui/index.html +14 -0
- package/dist/workbench.js +53 -0
- package/package.json +25 -4
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import{a as st}from"./chunk-H2KMMTJB.js";import{b as et,c as tt}from"./chunk-XLLPZ2WO.js";import{a as it}from"./chunk-RVAIT6JW.js";import"./chunk-MVYC3CY4.js";import"./chunk-XBZAO4ID.js";import"./chunk-PZCGBYVO.js";import"./chunk-CK7M2PJ3.js";import"./chunk-44KDLLKJ.js";import"./chunk-JFT2LC2T.js";import"./chunk-AUSLTP43.js";import"./chunk-GLU2YQV2.js";import{p as Ze}from"./chunk-6DWWYA6G.js";import"./chunk-VJLIWNIU.js";import{S as Ke,T as We,U as je,V as Ge,W as ze,X as Xe,Y as Je,Z as ye,t as Ce}from"./chunk-LWDL4HZB.js";import"./chunk-VXPNUNUX.js";import{b as ke}from"./chunk-JR4SIX7A.js";import{a as u,b as He}from"./chunk-5FIPUNR4.js";import"./chunk-SQE76S5B.js";var Ae=(function(){var e=u(function($,r,n,l){for(n=n||{},l=$.length;l--;n[$[l]]=r);return n},"o"),f=[1,3],h=[1,4],o=[1,5],i=[1,6],c=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],k=[1,22],E=[2,7],R=[1,26],_=[1,27],I=[1,28],q=[1,29],C=[1,33],A=[1,34],V=[1,35],v=[1,36],L=[1,37],x=[1,38],O=[1,24],w=[1,31],D=[1,32],M=[1,30],p=[1,39],b=[1,40],d=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ve=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],de=[27,29],ve=[1,70],Le=[1,71],xe=[1,72],Oe=[1,73],we=[1,74],De=[1,75],Me=[1,76],Z=[1,83],U=[1,80],ee=[1,84],te=[1,85],se=[1,86],ie=[1,87],re=[1,88],ne=[1,89],ae=[1,90],le=[1,91],ce=[1,92],Ee=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Fe=[1,101],$e=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],oe=[1,116],he=[1,117],ue=[1,114],fe=[1,115],_e={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:u(function(r,n,l,s,m,t,me){var a=t.length-1;switch(m){case 4:this.$=t[a].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[a].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[a-3],t[a-4]);break;case 22:s.addRequirement(t[a-5],t[a-6]),s.setClass([t[a-5]],t[a-3]);break;case 23:s.setNewReqId(t[a-2]);break;case 24:s.setNewReqText(t[a-2]);break;case 25:s.setNewReqRisk(t[a-2]);break;case 26:s.setNewReqVerifyMethod(t[a-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[a-3]);break;case 43:s.addElement(t[a-5]),s.setClass([t[a-5]],t[a-3]);break;case 44:s.setNewElementType(t[a-2]);break;case 45:s.setNewElementDocRef(t[a-2]);break;case 48:s.addRelationship(t[a-2],t[a],t[a-4]);break;case 49:s.addRelationship(t[a-2],t[a-4],t[a]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[a-2],s.defineClass(t[a-1],t[a]);break;case 58:s.setClass(t[a-1],t[a]);break;case 59:s.setClass([t[a-2]],t[a]);break;case 60:case 62:this.$=[t[a]];break;case 61:case 63:this.$=t[a-2].concat([t[a]]);break;case 64:this.$=t[a-2],s.setCssStyle(t[a-1],t[a]);break;case 65:this.$=[t[a]];break;case 66:t[a-2].push(t[a]),this.$=t[a-2];break;case 68:this.$=t[a-1]+t[a];break}},"anonymous"),table:[{3:1,4:2,6:f,9:h,11:o,13:i},{1:[3]},{3:8,4:2,5:[1,7],6:f,9:h,11:o,13:i},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(c,[2,6]),{3:12,4:2,6:f,9:h,11:o,13:i},{1:[2,2]},{4:17,5:k,7:13,8:E,9:h,11:o,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:R,22:_,23:I,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:p,90:b},e(c,[2,4]),e(c,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:k,7:42,8:E,9:h,11:o,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:R,22:_,23:I,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:p,90:b},{4:17,5:k,7:43,8:E,9:h,11:o,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:R,22:_,23:I,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:p,90:b},{4:17,5:k,7:44,8:E,9:h,11:o,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:R,22:_,23:I,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:p,90:b},{4:17,5:k,7:45,8:E,9:h,11:o,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:R,22:_,23:I,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:p,90:b},{4:17,5:k,7:46,8:E,9:h,11:o,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:R,22:_,23:I,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:p,90:b},{4:17,5:k,7:47,8:E,9:h,11:o,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:R,22:_,23:I,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:p,90:b},{4:17,5:k,7:48,8:E,9:h,11:o,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:R,22:_,23:I,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:p,90:b},{4:17,5:k,7:49,8:E,9:h,11:o,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:R,22:_,23:I,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:p,90:b},{4:17,5:k,7:50,8:E,9:h,11:o,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:R,22:_,23:I,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:p,90:b},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(d,[2,17]),e(d,[2,18]),e(d,[2,19]),e(d,[2,20]),{30:60,33:62,75:P,89:p,90:b},{30:63,33:62,75:P,89:p,90:b},{30:64,33:62,75:P,89:p,90:b},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ve,[2,81]),e(Ve,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(de,[2,79]),e(de,[2,80]),{27:[1,67],29:[1,68]},e(de,[2,85]),e(de,[2,86]),{62:69,65:ve,66:Le,67:xe,68:Oe,69:we,70:De,71:Me},{62:77,65:ve,66:Le,67:xe,68:Oe,69:we,70:De,71:Me},{30:78,33:62,75:P,89:p,90:b},{73:79,75:Z,76:U,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},e(Ee,[2,60]),e(Ee,[2,62]),{73:93,75:Z,76:U,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},{30:94,33:62,75:P,76:U,89:p,90:b},{5:[1,95]},{30:96,33:62,75:P,89:p,90:b},{5:[1,97]},{30:98,33:62,75:P,89:p,90:b},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(d,[2,59],{76:U}),e(d,[2,64],{76:Fe}),{33:103,75:[1,102],89:p,90:b},e($e,[2,65],{79:104,75:Z,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(d,[2,57],{76:Fe}),e(d,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:oe,40:he,56:113,57:ue,59:fe},{27:[1,118],76:U},{33:119,89:p,90:b},{33:120,89:p,90:b},{75:Z,78:121,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},e(Ee,[2,61]),e(Ee,[2,63]),e(T,[2,68]),e(d,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(d,[2,28]),{5:[1,127]},e(d,[2,42]),{32:[1,128]},{32:[1,129]},{5:oe,40:he,56:130,57:ue,59:fe},e(d,[2,47]),{5:[1,131]},e(d,[2,48]),e(d,[2,49]),e($e,[2,66],{79:104,75:Z,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce}),{33:132,89:p,90:b},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(d,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(d,[2,46]),{5:oe,40:he,56:152,57:ue,59:fe},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(d,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(d,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:oe,40:he,56:163,57:ue,59:fe},{5:oe,40:he,56:164,57:ue,59:fe},e(d,[2,23]),e(d,[2,24]),e(d,[2,25]),e(d,[2,26]),e(d,[2,44]),e(d,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:u(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:u(function(r){var n=this,l=[0],s=[],m=[null],t=[],me=this.table,a="",be=0,Pe=0,Ue=0,at=2,Ye=1,lt=t.slice.call(arguments,1),g=Object.create(this.lexer),G={yy:{}};for(var Se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Se)&&(G.yy[Se]=this.yy[Se]);g.setInput(r,G.yy),G.yy.lexer=g,G.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var Ie=g.yylloc;t.push(Ie);var ct=g.options&&g.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ot(S){l.length=l.length-2*S,m.length=m.length-S,t.length=t.length-S}u(ot,"popStack");function Be(){var S;return S=s.pop()||g.lex()||Ye,typeof S!="number"&&(S instanceof Array&&(s=S,S=s.pop()),S=n.symbols_[S]||S),S}u(Be,"lex");for(var y,Te,z,N,pt,Ne,J={},Re,F,Qe,ge;;){if(z=l[l.length-1],this.defaultActions[z]?N=this.defaultActions[z]:((y===null||typeof y>"u")&&(y=Be()),N=me[z]&&me[z][y]),typeof N>"u"||!N.length||!N[0]){var qe="";ge=[];for(Re in me[z])this.terminals_[Re]&&Re>at&&ge.push("'"+this.terminals_[Re]+"'");g.showPosition?qe="Parse error on line "+(be+1)+`:
|
|
2
|
+
`+g.showPosition()+`
|
|
3
|
+
Expecting `+ge.join(", ")+", got '"+(this.terminals_[y]||y)+"'":qe="Parse error on line "+(be+1)+": Unexpected "+(y==Ye?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(qe,{text:g.match,token:this.terminals_[y]||y,line:g.yylineno,loc:Ie,expected:ge})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+y);switch(N[0]){case 1:l.push(y),m.push(g.yytext),t.push(g.yylloc),l.push(N[1]),y=null,Te?(y=Te,Te=null):(Pe=g.yyleng,a=g.yytext,be=g.yylineno,Ie=g.yylloc,Ue>0&&Ue--);break;case 2:if(F=this.productions_[N[1]][1],J.$=m[m.length-F],J._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},ct&&(J._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),Ne=this.performAction.apply(J,[a,Pe,be,G.yy,N[1],m,t].concat(lt)),typeof Ne<"u")return Ne;F&&(l=l.slice(0,-1*F*2),m=m.slice(0,-1*F),t=t.slice(0,-1*F)),l.push(this.productions_[N[1]][0]),m.push(J.$),t.push(J._$),Qe=me[l[l.length-2]][l[l.length-1]],l.push(Qe);break;case 3:return!0}}return!0},"parse")},nt=(function(){var $={EOF:1,parseError:u(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:u(function(r,n){return this.yy=n||this.yy||{},this._input=r,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:u(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:u(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var s=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),l.length-1&&(this.yylineno-=l.length-1);var m=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===s.length?this.yylloc.first_column:0)+s[s.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(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:u(function(r){this.unput(this.match.slice(r))},"less"),pastInput:u(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
5
|
+
`+n+"^"},"showPosition"),test_match:u(function(r,n){var l,s,m;if(this.options.backtrack_lexer&&(m={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&&(m.yylloc.range=this.yylloc.range.slice(0))),s=r[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,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(r[0].length),this.matched+=r[0],l=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var t in m)this[t]=m[t];return!1}return!1},"test_match"),next:u(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,n,l,s;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),t=0;t<m.length;t++)if(l=this._input.match(this.rules[m[t]]),l&&(!n||l[0].length>n[0].length)){if(n=l,s=t,this.options.backtrack_lexer){if(r=this.test_match(l,m[t]),r!==!1)return r;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(r=this.test_match(n,m[s]),r!==!1?r:!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:u(function(){var n=this.next();return n||this.lex()},"lex"),begin:u(function(n){this.conditionStack.push(n)},"begin"),popState:u(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:u(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:u(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:u(function(n){this.begin(n)},"pushState"),stateStackSize:u(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:u(function(n,l,s,m){var t=m;switch(s){case 0:return"title";case 1:return this.begin("acc_title"),9;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),11;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;break;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;break;case 60:return this.begin("style"),74;break;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return l.yytext=l.yytext.trim(),89;break;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,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,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return $})();_e.lexer=nt;function pe(){this.yy={}}return u(pe,"Parser"),pe.prototype=_e,_e.Parser=pe,new pe})();Ae.parser=Ae;var ht=Ae,ut=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=We,this.getAccTitle=je,this.setAccDescription=Ge,this.getAccDescription=ze,this.setDiagramTitle=Xe,this.getDiagramTitle=Je,this.getConfig=u(()=>ye().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{u(this,"RequirementDB")}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(e,f){return this.requirements.has(e)||this.requirements.set(e,{name:e,type:f,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=e)}setNewReqText(e){this.latestRequirement!==void 0&&(this.latestRequirement.text=e)}setNewReqRisk(e){this.latestRequirement!==void 0&&(this.latestRequirement.risk=e)}setNewReqVerifyMethod(e){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=e)}addElement(e){return this.elements.has(e)||(this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),ke.info("Added new element: ",e)),this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){this.latestElement!==void 0&&(this.latestElement.type=e)}setNewElementDocRef(e){this.latestElement!==void 0&&(this.latestElement.docRef=e)}addRelationship(e,f,h){this.relations.push({type:e,src:f,dst:h})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,Ke()}setCssStyle(e,f){for(let h of e){let o=this.requirements.get(h)??this.elements.get(h);if(!f||!o)return;for(let i of f)i.includes(",")?o.cssStyles.push(...i.split(",")):o.cssStyles.push(i)}}setClass(e,f){for(let h of e){let o=this.requirements.get(h)??this.elements.get(h);if(o)for(let i of f){o.classes.push(i);let c=this.classes.get(i)?.styles;c&&o.cssStyles.push(...c)}}}defineClass(e,f){for(let h of e){let o=this.classes.get(h);o===void 0&&(o={id:h,styles:[],textStyles:[]},this.classes.set(h,o)),f&&f.forEach(function(i){if(/color/.exec(i)){let c=i.replace("fill","bgFill");o.textStyles.push(c)}o.styles.push(i)}),this.requirements.forEach(i=>{i.classes.includes(h)&&i.cssStyles.push(...f.flatMap(c=>c.split(",")))}),this.elements.forEach(i=>{i.classes.includes(h)&&i.cssStyles.push(...f.flatMap(c=>c.split(",")))})}}getClasses(){return this.classes}getData(){let e=ye(),f=[],h=[];for(let i of this.requirements.values()){let c=i;c.id=i.name,c.cssStyles=i.cssStyles,c.cssClasses=i.classes.join(" "),c.shape="requirementBox",c.look=e.look,c.colorIndex=f.length,f.push(c)}for(let i of this.elements.values()){let c=i;c.shape="requirementBox",c.look=e.look,c.id=i.name,c.cssStyles=i.cssStyles,c.cssClasses=i.classes.join(" "),c.colorIndex=f.length,f.push(c)}let o=0;for(let i of this.relations){let c=i.type===this.Relationships.CONTAINS,k={id:`${i.src}-${i.dst}-${o++}`,start:this.requirements.get(i.src)?.name??this.elements.get(i.src)?.name,end:this.requirements.get(i.dst)?.name??this.elements.get(i.dst)?.name,label:`<<${i.type}>>`,classes:"relationshipLine",style:["fill:none",c?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:c?"normal":"dashed",arrowTypeStart:c?"requirement_contains":"",arrowTypeEnd:c?"":"requirement_arrow",look:e.look,labelType:"markdown"};h.push(k)}return{nodes:f,edges:h,other:{},config:e,direction:this.getDirection()}}},ft=u(e=>{let f=Ce(),{themeVariables:h,look:o}=f,{bkgColorArray:i,borderColorArray:c}=h;if(!c?.length)return"";let k="";for(let E=0;E<e.THEME_COLOR_LIMIT;E++)k+=`
|
|
7
|
+
|
|
8
|
+
[data-look="${o}"][data-color-id="color-${E}"].node path {
|
|
9
|
+
stroke: ${c[E]};
|
|
10
|
+
fill: ${i?.length?i[E]:""};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[data-look="${o}"][data-color-id="color-${E}"].node rect {
|
|
14
|
+
stroke: ${c[E]};
|
|
15
|
+
fill: ${i?.length?i[E]:""};
|
|
16
|
+
}
|
|
17
|
+
`;return k},"genColor"),mt=u(e=>{let f=Ce(),{look:h,themeVariables:o}=f,{requirementEdgeLabelBackground:i}=o;return`
|
|
18
|
+
${ft(e)}
|
|
19
|
+
marker {
|
|
20
|
+
fill: ${e.relationColor};
|
|
21
|
+
stroke: ${e.relationColor};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
marker.cross {
|
|
25
|
+
stroke: ${e.lineColor};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
svg {
|
|
29
|
+
font-family: ${e.fontFamily};
|
|
30
|
+
font-size: ${e.fontSize};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.reqBox {
|
|
34
|
+
fill: ${e.requirementBackground};
|
|
35
|
+
fill-opacity: 1.0;
|
|
36
|
+
stroke: ${e.requirementBorderColor};
|
|
37
|
+
stroke-width: ${e.requirementBorderSize};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.reqTitle, .reqLabel{
|
|
41
|
+
fill: ${e.requirementTextColor};
|
|
42
|
+
}
|
|
43
|
+
.reqLabelBox {
|
|
44
|
+
fill: ${e.relationLabelBackground};
|
|
45
|
+
fill-opacity: 1.0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.req-title-line {
|
|
49
|
+
stroke: ${e.requirementBorderColor};
|
|
50
|
+
stroke-width: ${e.requirementBorderSize};
|
|
51
|
+
}
|
|
52
|
+
.relationshipLine {
|
|
53
|
+
stroke: ${e.relationColor};
|
|
54
|
+
stroke-width: ${h==="neo"?e.strokeWidth:"1px"};
|
|
55
|
+
}
|
|
56
|
+
.relationshipLabel {
|
|
57
|
+
fill: ${e.relationLabelColor};
|
|
58
|
+
}
|
|
59
|
+
.edgeLabel {
|
|
60
|
+
background-color: ${e.edgeLabelBackground};
|
|
61
|
+
}
|
|
62
|
+
.edgeLabel .label rect {
|
|
63
|
+
fill: ${e.edgeLabelBackground};
|
|
64
|
+
}
|
|
65
|
+
.edgeLabel .label text {
|
|
66
|
+
fill: ${e.relationLabelColor};
|
|
67
|
+
}
|
|
68
|
+
.divider {
|
|
69
|
+
stroke: ${e.nodeBorder};
|
|
70
|
+
stroke-width: 1;
|
|
71
|
+
}
|
|
72
|
+
.label {
|
|
73
|
+
font-family: ${e.fontFamily};
|
|
74
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
75
|
+
}
|
|
76
|
+
.label text,span {
|
|
77
|
+
fill: ${e.nodeTextColor||e.textColor};
|
|
78
|
+
color: ${e.nodeTextColor||e.textColor};
|
|
79
|
+
}
|
|
80
|
+
.labelBkg {
|
|
81
|
+
background-color: ${i??e.edgeLabelBackground};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
`},"getStyles"),dt=mt,rt={};He(rt,{draw:()=>Et});var Et=u(async function(e,f,h,o){ke.info("REF0:"),ke.info("Drawing requirement diagram (unified)",f);let{securityLevel:i,state:c,layout:k,look:E}=ye(),R=o.db.getData(),_=st(f,i);R.type=o.type,R.layoutAlgorithm=tt(k),R.nodeSpacing=c?.nodeSpacing??50,R.rankSpacing=c?.rankSpacing??50,R.markers=E==="neo"?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],R.diagramId=f,await et(R,_);let I=8;Ze.insertTitle(_,"requirementDiagramTitleText",c?.titleTopMargin??25,o.db.getDiagramTitle()),it(_,I,"requirementDiagram",c?.useMaxWidth??!0)},"draw"),vt={parser:ht,get db(){return new ut},renderer:rt,styles:dt};export{vt as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r,b as e}from"./chunk-WBKLDCV6.js";import"./chunk-CUS65DKZ.js";import"./chunk-SQE76S5B.js";export{r as RadarModule,e as createRadarServices};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b as m,c as p}from"./chunk-BCRQUL2A.js";import{a as s}from"./chunk-KINKFJY7.js";import{b as l}from"./chunk-ZJPSORPP.js";import"./chunk-C3QSRS6E.js";import"./chunk-B7YX5TR5.js";import"./chunk-4YN4BS7I.js";import"./chunk-WBKLDCV6.js";import"./chunk-TP6U4EDH.js";import"./chunk-ZOP3ZYH7.js";import"./chunk-3XJZ6DIE.js";import{b as i}from"./chunk-KKQSA4LI.js";import"./chunk-FVOHPMS6.js";import"./chunk-HSIHOBTY.js";import"./chunk-3H6STGPV.js";import"./chunk-HSEAD2JH.js";import"./chunk-SVI7DGIE.js";import"./chunk-YUADQVB2.js";import"./chunk-WOKJM3FY.js";import"./chunk-S6ZQZNOX.js";import"./chunk-CUS65DKZ.js";import"./chunk-LWDL4HZB.js";import"./chunk-VXPNUNUX.js";import{b as n}from"./chunk-JR4SIX7A.js";import{a as t}from"./chunk-5FIPUNR4.js";import"./chunk-SQE76S5B.js";var f=i().RailroadPeg.parser.LangiumParser,c=t(e=>{let r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{let r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{let r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${u(r)}`:`!${u(r)}`}:r},"transformPrefix"),u=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{let r=v(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),v=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return c(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=t(e=>({name:e.name,definition:c(e.definition)}),"transformRule"),h=t(e=>{s(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(y(r)))},"populateDb"),b={parse:t(e=>{a.clear(),n.debug("[PEG Parser] Starting Langium parse");let r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new l(r);let o=r.value;n.debug("[PEG Parser] Parsed rules:",o.rules.length),h(o),n.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},R={parser:b,db:a,renderer:p,styles:m};export{R as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as r}from"./chunk-FVOHPMS6.js";import"./chunk-CUS65DKZ.js";import"./chunk-SQE76S5B.js";export{e as TreemapModule,r as createTreemapServices};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{N as w}from"./chunk-LWDL4HZB.js";import{b as c}from"./chunk-JR4SIX7A.js";import{a as r}from"./chunk-5FIPUNR4.js";var l=r((t,e,i,h)=>{t.attr("class",i);let{width:o,height:n,x,y:u}=m(t,e);w(t,n,o,h);let a=s(x,u,o,n,e);t.attr("viewBox",a),c.debug(`viewBox configured: ${a} with padding: ${e}`)},"setupViewPortForSVG"),m=r((t,e)=>{let i=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+e*2,height:i.height+e*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),s=r((t,e,i,h,o)=>`${t-o} ${e-o} ${i} ${h}`,"createViewBox");export{l as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as r}from"./chunk-WOKJM3FY.js";import"./chunk-CUS65DKZ.js";import"./chunk-SQE76S5B.js";export{e as ArchitectureModule,r as createArchitectureServices};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o}from"./chunk-5FIPUNR4.js";import"./chunk-SQE76S5B.js";var c=1;function i(){if(!(typeof globalThis>"u"))return globalThis}o(i,"getCaptureGlobal");function p(){return!!i()?.mermaidCaptureSizes}o(p,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}o(u,"capturedFromLocation");function d(n,r){let t=i();if(!t)return;let e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];let a={svgId:s,sizes:n};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}o(d,"emitCapturedSizes");function m(n,r){let t=[];for(let e of r.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},n)}o(m,"captureNodeSizes");export{m as captureNodeSizes,p as shouldCaptureSizes};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b as p,c as u}from"./chunk-BCRQUL2A.js";import{a as l}from"./chunk-KINKFJY7.js";import{b as m}from"./chunk-ZJPSORPP.js";import"./chunk-C3QSRS6E.js";import"./chunk-B7YX5TR5.js";import"./chunk-4YN4BS7I.js";import"./chunk-WBKLDCV6.js";import{b as s}from"./chunk-TP6U4EDH.js";import"./chunk-ZOP3ZYH7.js";import"./chunk-3XJZ6DIE.js";import"./chunk-KKQSA4LI.js";import"./chunk-FVOHPMS6.js";import"./chunk-HSIHOBTY.js";import"./chunk-3H6STGPV.js";import"./chunk-HSEAD2JH.js";import"./chunk-SVI7DGIE.js";import"./chunk-YUADQVB2.js";import"./chunk-WOKJM3FY.js";import"./chunk-S6ZQZNOX.js";import"./chunk-CUS65DKZ.js";import"./chunk-LWDL4HZB.js";import"./chunk-VXPNUNUX.js";import{b as i}from"./chunk-JR4SIX7A.js";import{a as n}from"./chunk-5FIPUNR4.js";import"./chunk-SQE76S5B.js";var d=s().Railroad.parser.LangiumParser,t=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{let r=e.elements.map(t);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{let r=e.alternatives.map(t);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:t(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:t(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:t(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:t(e.definition)}),"transformRule"),f=n(e=>{l(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(c(r)))},"populateDb"),g={parse:n(e=>{a.clear(),i.debug("[Railroad Parser] Starting Langium parse");let r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new m(r);let o=r.value;i.debug("[Railroad Parser] Parsed rules:",o.rules.length),f(o),i.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:a}},y={parser:g,db:a,renderer:u,styles:p},w=y;export{w as default,y as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as i,c as o,d as t,e as n,g as u,k as d,x as l,y as s}from"./chunk-CUS65DKZ.js";var c=class extends s{static{e(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},p={parser:{TokenBuilder:e(()=>new c,"TokenBuilder"),ValueConverter:e(()=>new l,"ValueConverter")}};function h(G=n){let r=t(o(G),u),a=t(i({shared:r}),d,p);return r.ServiceRegistry.register(a),{shared:r,GitGraph:a}}e(h,"createGitGraphServices");export{p as a,h as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-SQE76S5B.js";function a(d){let e=d.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:e.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+,\d+ +\+\d+ +@@/,/^@@ +-\d+ +\+\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:e.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-SQE76S5B.js";var l=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),s=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],c=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],d=[...s,...c],p=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),b=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),m=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),g=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function h(t){let e=l(t),r=m,n=b,o="@[a-z-]+",a="and or not only",i={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,e.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+d.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+n.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+r.join("|")+")"},i,{begin:/\(/,end:/\)/,contains:[e.CSS_NUMBER_MODE]},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+g.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[e.BLOCK_COMMENT,i,e.HEXCOLOR,e.CSS_NUMBER_MODE,e.UNICODE_RANGE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,e.IMPORTANT,e.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:o,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:p.join(" ")},contains:[{begin:o,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},i,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,e.HEXCOLOR,e.CSS_NUMBER_MODE]},e.FUNCTION_DISPATCH]}}export{h as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as B,B as Q,C as b,a as mr,b as M,c as g,d as vr,e as K,f as _r,g as T,h as f,i as N,j as D,k as v,l as wr,m as br,n as W,o as I,p as E,q as F,r as y,s as Y,t as P,u as G,v as V,w as x,x as R,y as Er,z as O}from"./chunk-EADDJUDC.js";function k(r,e,n,t){var o;do o=B(t);while(r.hasNode(o));return n.dummy=e,r.setNode(o,n),o}function yr(r){var e=new b().setGraph(r.graph());return f(r.nodes(),function(n){e.setNode(n,r.node(n))}),f(r.edges(),function(n){var t=e.edge(n.v,n.w)||{weight:0,minlen:1},o=r.edge(n);e.setEdge(n.v,n.w,{weight:t.weight+o.weight,minlen:Math.max(t.minlen,o.minlen)})}),e}function q(r){var e=new b({multigraph:r.isMultigraph()}).setGraph(r.graph());return f(r.nodes(),function(n){r.children(n).length||e.setNode(n,r.node(n))}),f(r.edges(),function(n){e.setEdge(n,r.edge(n))}),e}function Z(r,e){var n=r.x,t=r.y,o=e.x-n,a=e.y-t,i=r.width/2,s=r.height/2;if(!o&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var u,d;return Math.abs(a)*i>Math.abs(o)*s?(a<0&&(s=-s),u=s*o/a,d=s):(o<0&&(i=-i),u=i,d=i*a/o),{x:n+u,y:t+d}}function L(r){var e=v(x(rr(r)+1),function(){return[]});return f(r.nodes(),function(n){var t=r.node(n),o=t.rank;E(o)||(e[o][t.order]=n)}),e}function xr(r){var e=P(v(r.nodes(),function(n){return r.node(n).rank}));f(r.nodes(),function(n){var t=r.node(n);W(t,"rank")&&(t.rank-=e)})}function kr(r){var e=P(v(r.nodes(),function(a){return r.node(a).rank})),n=[];f(r.nodes(),function(a){var i=r.node(a).rank-e;n[i]||(n[i]=[]),n[i].push(a)});var t=0,o=r.graph().nodeRankFactor;f(n,function(a,i){E(a)&&i%o!==0?--t:t&&f(a,function(s){r.node(s).rank+=t})})}function $(r,e,n,t){var o={width:0,height:0};return arguments.length>=4&&(o.rank=n,o.order=t),k(r,"border",o,e)}function rr(r){return y(v(r.nodes(),function(e){var n=r.node(e).rank;if(!E(n))return n}))}function gr(r,e){var n={lhs:[],rhs:[]};return f(r,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n}function Nr(r,e){var n=K();try{return e()}finally{console.log(r+" time: "+(K()-n)+"ms")}}function Or(r,e){return e()}function Pr(r){function e(n){var t=r.children(n),o=r.node(n);if(t.length&&f(t,e),Object.prototype.hasOwnProperty.call(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var a=o.minRank,i=o.maxRank+1;a<i;++a)Ir(r,"borderLeft","_bl",n,o,a),Ir(r,"borderRight","_br",n,o,a)}}f(r.children(),e)}function Ir(r,e,n,t,o,a){var i={width:0,height:0,rank:a,borderType:e},s=o[e][a-1],u=k(r,"border",i,n);o[e][a]=u,r.setParent(u,t),s&&r.setEdge(s,u,{weight:1})}function Cr(r){var e=r.graph().rankdir.toLowerCase();(e==="lr"||e==="rl")&&Tr(r)}function jr(r){var e=r.graph().rankdir.toLowerCase();(e==="bt"||e==="rl")&&le(r),(e==="lr"||e==="rl")&&(pe(r),Tr(r))}function Tr(r){f(r.nodes(),function(e){Lr(r.node(e))}),f(r.edges(),function(e){Lr(r.edge(e))})}function Lr(r){var e=r.width;r.width=r.height,r.height=e}function le(r){f(r.nodes(),function(e){er(r.node(e))}),f(r.edges(),function(e){var n=r.edge(e);f(n.points,er),Object.prototype.hasOwnProperty.call(n,"y")&&er(n)})}function er(r){r.y=-r.y}function pe(r){f(r.nodes(),function(e){nr(r.node(e))}),f(r.edges(),function(e){var n=r.edge(e);f(n.points,nr),Object.prototype.hasOwnProperty.call(n,"x")&&nr(n)})}function nr(r){var e=r.x;r.x=r.y,r.y=e}var X=class{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,n=e._prev;if(n!==e)return Rr(n),n}enqueue(e){var n=this._sentinel;e._prev&&e._next&&Rr(e),e._next=n._next,n._next._prev=e,n._next=e,e._prev=n}toString(){for(var e=[],n=this._sentinel,t=n._prev;t!==n;)e.push(JSON.stringify(t,ve)),t=t._prev;return"["+e.join(", ")+"]"}};function Rr(r){r._prev._next=r._next,r._next._prev=r._prev,delete r._next,delete r._prev}function ve(r,e){if(r!=="_next"&&r!=="_prev")return e}var _e=M(1);function Sr(r,e){if(r.nodeCount()<=1)return[];var n=be(r,e||_e),t=we(n.graph,n.buckets,n.zeroIdx);return g(v(t,function(o){return r.outEdges(o.v,o.w)}))}function we(r,e,n){for(var t=[],o=e[e.length-1],a=e[0],i;r.nodeCount();){for(;i=a.dequeue();)tr(r,e,n,i);for(;i=o.dequeue();)tr(r,e,n,i);if(r.nodeCount()){for(var s=e.length-2;s>0;--s)if(i=e[s].dequeue(),i){t=t.concat(tr(r,e,n,i,!0));break}}}return t}function tr(r,e,n,t,o){var a=o?[]:void 0;return f(r.inEdges(t.v),function(i){var s=r.edge(i),u=r.node(i.v);o&&a.push({v:i.v,w:i.w}),u.out-=s,or(e,n,u)}),f(r.outEdges(t.v),function(i){var s=r.edge(i),u=i.w,d=r.node(u);d.in-=s,or(e,n,d)}),r.removeNode(t.v),a}function be(r,e){var n=new b,t=0,o=0;f(r.nodes(),function(s){n.setNode(s,{v:s,in:0,out:0})}),f(r.edges(),function(s){var u=n.edge(s.v,s.w)||0,d=e(s),c=u+d;n.setEdge(s.v,s.w,c),o=Math.max(o,n.node(s.v).out+=d),t=Math.max(t,n.node(s.w).in+=d)});var a=x(o+t+3).map(function(){return new X}),i=t+1;return f(n.nodes(),function(s){or(a,i,n.node(s))}),{graph:n,buckets:a,zeroIdx:i}}function or(r,e,n){n.out?n.in?r[n.out-n.in+e].enqueue(n):r[r.length-1].enqueue(n):r[0].enqueue(n)}function Mr(r){var e=r.graph().acyclicer==="greedy"?Sr(r,n(r)):Ee(r);f(e,function(t){var o=r.edge(t);r.removeEdge(t),o.forwardName=t.name,o.reversed=!0,r.setEdge(t.w,t.v,o,B("rev"))});function n(t){return function(o){return t.edge(o).weight}}}function Ee(r){var e=[],n={},t={};function o(a){Object.prototype.hasOwnProperty.call(t,a)||(t[a]=!0,n[a]=!0,f(r.outEdges(a),function(i){Object.prototype.hasOwnProperty.call(n,i.w)?e.push(i):o(i.w)}),delete n[a])}return f(r.nodes(),o),e}function Fr(r){f(r.edges(),function(e){var n=r.edge(e);if(n.reversed){r.removeEdge(e);var t=n.forwardName;delete n.reversed,delete n.forwardName,r.setEdge(e.w,e.v,n,t)}})}function Vr(r){r.graph().dummyChains=[],f(r.edges(),function(e){ye(r,e)})}function ye(r,e){var n=e.v,t=r.node(n).rank,o=e.w,a=r.node(o).rank,i=e.name,s=r.edge(e),u=s.labelRank;if(a!==t+1){r.removeEdge(e);var d=void 0,c,h;for(h=0,++t;t<a;++h,++t)s.points=[],d={width:0,height:0,edgeLabel:s,edgeObj:e,rank:t},c=k(r,"edge",d,"_d"),t===u&&(d.width=s.width,d.height=s.height,d.dummy="edge-label",d.labelpos=s.labelpos),r.setEdge(n,c,{weight:s.weight},i),h===0&&r.graph().dummyChains.push(c),n=c;r.setEdge(n,o,{weight:s.weight},i)}}function Br(r){f(r.graph().dummyChains,function(e){var n=r.node(e),t=n.edgeLabel,o;for(r.setEdge(n.edgeObj,t);n.dummy;)o=r.successors(e)[0],r.removeNode(e),t.points.push({x:n.x,y:n.y}),n.dummy==="edge-label"&&(t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height),e=o,n=r.node(e)})}function z(r){var e={};function n(t){var o=r.node(t);if(Object.prototype.hasOwnProperty.call(e,t))return o.rank;e[t]=!0;var a=P(v(r.outEdges(t),function(i){return n(i.w)-r.edge(i).minlen}));return(a===Number.POSITIVE_INFINITY||a===void 0||a===null)&&(a=0),o.rank=a}f(r.sources(),n)}function S(r,e){return r.node(e.w).rank-r.node(e.v).rank-r.edge(e).minlen}function H(r){var e=new b({directed:!1}),n=r.nodes()[0],t=r.nodeCount();e.setNode(n,{});for(var o,a;xe(e,r)<t;)o=ke(e,r),a=e.hasNode(o.v)?S(r,o):-S(r,o),ge(e,r,a);return e}function xe(r,e){function n(t){f(e.nodeEdges(t),function(o){var a=o.v,i=t===a?o.w:a;!r.hasNode(i)&&!S(e,o)&&(r.setNode(i,{}),r.setEdge(t,i,{}),n(i))})}return f(r.nodes(),n),r.nodeCount()}function ke(r,e){return G(e.edges(),function(n){if(r.hasNode(n.v)!==r.hasNode(n.w))return S(e,n)})}function ge(r,e,n){f(r.nodes(),function(t){e.node(t).rank+=n})}var Wn=M(1);var Zn=M(1);ar.CycleException=U;function ar(r){var e={},n={},t=[];function o(a){if(Object.prototype.hasOwnProperty.call(n,a))throw new U;Object.prototype.hasOwnProperty.call(e,a)||(n[a]=!0,e[a]=!0,f(r.predecessors(a),o),delete n[a],t.push(a))}if(f(r.sinks(),o),Er(e)!==r.nodeCount())throw new U;return t}function U(){}U.prototype=new Error;function J(r,e,n){mr(e)||(e=[e]);var t=(r.isDirected()?r.successors:r.neighbors).bind(r),o=[],a={};return f(e,function(i){if(!r.hasNode(i))throw new Error("Graph does not have node: "+i);Dr(r,i,n==="post",a,t,o)}),o}function Dr(r,e,n,t,o,a){Object.prototype.hasOwnProperty.call(t,e)||(t[e]=!0,n||a.push(e),f(o(e),function(i){Dr(r,i,n,t,o,a)}),n&&a.push(e))}function ir(r,e){return J(r,e,"post")}function sr(r,e){return J(r,e,"pre")}j.initLowLimValues=ur;j.initCutValues=fr;j.calcCutValue=zr;j.leaveEdge=Wr;j.enterEdge=qr;j.exchangeEdges=Xr;function j(r){r=yr(r),z(r);var e=H(r);ur(e),fr(e,r);for(var n,t;n=Wr(e);)t=qr(e,r,n),Xr(e,r,n,t)}function fr(r,e){var n=ir(r,r.nodes());n=n.slice(0,n.length-1),f(n,function(t){Le(r,e,t)})}function Le(r,e,n){var t=r.node(n),o=t.parent;r.edge(n,o).cutvalue=zr(r,e,n)}function zr(r,e,n){var t=r.node(n),o=t.parent,a=!0,i=e.edge(n,o),s=0;return i||(a=!1,i=e.edge(o,n)),s=i.weight,f(e.nodeEdges(n),function(u){var d=u.v===n,c=d?u.w:u.v;if(c!==o){var h=d===a,l=e.edge(u).weight;if(s+=h?l:-l,je(r,n,c)){var p=r.edge(n,c).cutvalue;s+=h?-p:p}}}),s}function ur(r,e){arguments.length<2&&(e=r.nodes()[0]),Ur(r,{},1,e)}function Ur(r,e,n,t,o){var a=n,i=r.node(t);return e[t]=!0,f(r.neighbors(t),function(s){Object.prototype.hasOwnProperty.call(e,s)||(n=Ur(r,e,n,s,t))}),i.low=a,i.lim=n++,o?i.parent=o:delete i.parent,n}function Wr(r){return D(r.edges(),function(e){return r.edge(e).cutvalue<0})}function qr(r,e,n){var t=n.v,o=n.w;e.hasEdge(t,o)||(t=n.w,o=n.v);var a=r.node(t),i=r.node(o),s=a,u=!1;a.lim>i.lim&&(s=i,u=!0);var d=N(e.edges(),function(c){return u===Yr(r,r.node(c.v),s)&&u!==Yr(r,r.node(c.w),s)});return G(d,function(c){return S(e,c)})}function Xr(r,e,n,t){var o=n.v,a=n.w;r.removeEdge(o,a),r.setEdge(t.v,t.w,{}),ur(r),fr(r,e),Ce(r,e)}function Ce(r,e){var n=D(r.nodes(),function(o){return!e.node(o).parent}),t=sr(r,n);t=t.slice(1),f(t,function(o){var a=r.node(o).parent,i=e.edge(o,a),s=!1;i||(i=e.edge(a,o),s=!0),e.node(o).rank=e.node(a).rank+(s?i.minlen:-i.minlen)})}function je(r,e,n){return r.hasEdge(e,n)}function Yr(r,e,n){return n.low<=e.lim&&e.lim<=n.lim}function dr(r){switch(r.graph().ranker){case"network-simplex":Hr(r);break;case"tight-tree":Re(r);break;case"longest-path":Te(r);break;default:Hr(r)}}var Te=z;function Re(r){z(r),H(r)}function Hr(r){j(r)}function Jr(r){var e=k(r,"root",{},"_root"),n=Se(r),t=y(I(n))-1,o=2*t+1;r.graph().nestingRoot=e,f(r.edges(),function(i){r.edge(i).minlen*=o});var a=Me(r)+1;f(r.children(),function(i){Kr(r,e,o,a,t,n,i)}),r.graph().nodeRankFactor=o}function Kr(r,e,n,t,o,a,i){var s=r.children(i);if(!s.length){i!==e&&r.setEdge(e,i,{weight:0,minlen:n});return}var u=$(r,"_bt"),d=$(r,"_bb"),c=r.node(i);r.setParent(u,i),c.borderTop=u,r.setParent(d,i),c.borderBottom=d,f(s,function(h){Kr(r,e,n,t,o,a,h);var l=r.node(h),p=l.borderTop?l.borderTop:h,m=l.borderBottom?l.borderBottom:h,w=l.borderTop?t:2*t,A=p!==m?1:o-a[i]+1;r.setEdge(u,p,{weight:w,minlen:A,nestingEdge:!0}),r.setEdge(m,d,{weight:w,minlen:A,nestingEdge:!0})}),r.parent(i)||r.setEdge(e,u,{weight:0,minlen:o+a[i]})}function Se(r){var e={};function n(t,o){var a=r.children(t);a&&a.length&&f(a,function(i){n(i,o+1)}),e[t]=o}return f(r.children(),function(t){n(t,1)}),e}function Me(r){return R(r.edges(),function(e,n){return e+r.edge(n).weight},0)}function Qr(r){var e=r.graph();r.removeNode(e.nestingRoot),delete e.nestingRoot,f(r.edges(),function(n){var t=r.edge(n);t.nestingEdge&&r.removeEdge(n)})}function Zr(r,e,n){var t={},o;f(n,function(a){for(var i=r.parent(a),s,u;i;){if(s=r.parent(i),s?(u=t[s],t[s]=i):(u=o,o=i),u&&u!==i){e.setEdge(u,i);return}i=s}})}function $r(r,e,n){var t=Ge(r),o=new b({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(a){return r.node(a)});return f(r.nodes(),function(a){var i=r.node(a),s=r.parent(a);(i.rank===e||i.minRank<=e&&e<=i.maxRank)&&(o.setNode(a),o.setParent(a,s||t),f(r[n](a),function(u){var d=u.v===a?u.w:u.v,c=o.edge(d,a),h=E(c)?0:c.weight;o.setEdge(d,a,{weight:r.edge(u).weight+h})}),Object.prototype.hasOwnProperty.call(i,"minRank")&&o.setNode(a,{borderLeft:i.borderLeft[e],borderRight:i.borderRight[e]}))}),o}function Ge(r){for(var e;r.hasNode(e=B("_root")););return e}function re(r,e){for(var n=0,t=1;t<e.length;++t)n+=Ve(r,e[t-1],e[t]);return n}function Ve(r,e,n){for(var t=Q(n,v(n,function(d,c){return c})),o=g(v(e,function(d){return O(v(r.outEdges(d),function(c){return{pos:t[c.w],weight:r.edge(c).weight}}),"pos")})),a=1;a<n.length;)a<<=1;var i=2*a-1;a-=1;var s=v(new Array(i),function(){return 0}),u=0;return f(o.forEach(function(d){var c=d.pos+a;s[c]+=d.weight;for(var h=0;c>0;)c%2&&(h+=s[c+1]),c=c-1>>1,s[c]+=d.weight;u+=d.weight*h})),u}function ee(r){var e={},n=N(r.nodes(),function(s){return!r.children(s).length}),t=y(v(n,function(s){return r.node(s).rank})),o=v(x(t+1),function(){return[]});function a(s){if(!W(e,s)){e[s]=!0;var u=r.node(s);o[u.rank].push(s),f(r.successors(s),a)}}var i=O(n,function(s){return r.node(s).rank});return f(i,a),o}function ne(r,e){return v(e,function(n){var t=r.inEdges(n);if(t.length){var o=R(t,function(a,i){var s=r.edge(i),u=r.node(i.v);return{sum:a.sum+s.weight*u.order,weight:a.weight+s.weight}},{sum:0,weight:0});return{v:n,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:n}})}function te(r,e){var n={};f(r,function(o,a){var i=n[o.v]={indegree:0,in:[],out:[],vs:[o.v],i:a};E(o.barycenter)||(i.barycenter=o.barycenter,i.weight=o.weight)}),f(e.edges(),function(o){var a=n[o.v],i=n[o.w];!E(a)&&!E(i)&&(i.indegree++,a.out.push(n[o.w]))});var t=N(n,function(o){return!o.indegree});return Be(t)}function Be(r){var e=[];function n(a){return function(i){i.merged||(E(i.barycenter)||E(a.barycenter)||i.barycenter>=a.barycenter)&&Ae(a,i)}}function t(a){return function(i){i.in.push(a),--i.indegree===0&&r.push(i)}}for(;r.length;){var o=r.pop();e.push(o),f(o.in.reverse(),n(o)),f(o.out,t(o))}return v(N(e,function(a){return!a.merged}),function(a){return V(a,["vs","i","barycenter","weight"])})}function Ae(r,e){var n=0,t=0;r.weight&&(n+=r.barycenter*r.weight,t+=r.weight),e.weight&&(n+=e.barycenter*e.weight,t+=e.weight),r.vs=e.vs.concat(r.vs),r.barycenter=n/t,r.weight=t,r.i=Math.min(e.i,r.i),e.merged=!0}function ae(r,e){var n=gr(r,function(c){return Object.prototype.hasOwnProperty.call(c,"barycenter")}),t=n.lhs,o=O(n.rhs,function(c){return-c.i}),a=[],i=0,s=0,u=0;t.sort(De(!!e)),u=oe(a,o,u),f(t,function(c){u+=c.vs.length,a.push(c.vs),i+=c.barycenter*c.weight,s+=c.weight,u=oe(a,o,u)});var d={vs:g(a)};return s&&(d.barycenter=i/s,d.weight=s),d}function oe(r,e,n){for(var t;e.length&&(t=T(e)).i<=n;)e.pop(),r.push(t.vs),n++;return n}function De(r){return function(e,n){return e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:r?n.i-e.i:e.i-n.i}}function cr(r,e,n,t){var o=r.children(e),a=r.node(e),i=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,u={};i&&(o=N(o,function(m){return m!==i&&m!==s}));var d=ne(r,o);f(d,function(m){if(r.children(m.v).length){var w=cr(r,m.v,n,t);u[m.v]=w,Object.prototype.hasOwnProperty.call(w,"barycenter")&&ze(m,w)}});var c=te(d,n);Ye(c,u);var h=ae(c,t);if(i&&(h.vs=g([i,h.vs,s]),r.predecessors(i).length)){var l=r.node(r.predecessors(i)[0]),p=r.node(r.predecessors(s)[0]);Object.prototype.hasOwnProperty.call(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+p.order)/(h.weight+2),h.weight+=2}return h}function Ye(r,e){f(r,function(n){n.vs=g(n.vs.map(function(t){return e[t]?e[t].vs:t}))})}function ze(r,e){E(r.barycenter)?(r.barycenter=e.barycenter,r.weight=e.weight):(r.barycenter=(r.barycenter*r.weight+e.barycenter*e.weight)/(r.weight+e.weight),r.weight+=e.weight)}function fe(r){var e=rr(r),n=ie(r,x(1,e+1),"inEdges"),t=ie(r,x(e-1,-1,-1),"outEdges"),o=ee(r);se(r,o);for(var a=Number.POSITIVE_INFINITY,i,s=0,u=0;u<4;++s,++u){Ue(s%2?n:t,s%4>=2),o=L(r);var d=re(r,o);d<a&&(u=0,i=vr(o),a=d)}se(r,i)}function ie(r,e,n){return v(e,function(t){return $r(r,t,n)})}function Ue(r,e){var n=new b;f(r,function(t){var o=t.graph().root,a=cr(t,o,n,e);f(a.vs,function(i,s){t.node(i).order=s}),Zr(t,n,a.vs)})}function se(r,e){f(e,function(n){f(n,function(t,o){r.node(t).order=o})})}function ue(r){var e=qe(r);f(r.graph().dummyChains,function(n){for(var t=r.node(n),o=t.edgeObj,a=We(r,e,o.v,o.w),i=a.path,s=a.lca,u=0,d=i[u],c=!0;n!==o.w;){if(t=r.node(n),c){for(;(d=i[u])!==s&&r.node(d).maxRank<t.rank;)u++;d===s&&(c=!1)}if(!c){for(;u<i.length-1&&r.node(d=i[u+1]).minRank<=t.rank;)u++;d=i[u]}r.setParent(n,d),n=r.successors(n)[0]}})}function We(r,e,n,t){var o=[],a=[],i=Math.min(e[n].low,e[t].low),s=Math.max(e[n].lim,e[t].lim),u,d;u=n;do u=r.parent(u),o.push(u);while(u&&(e[u].low>i||s>e[u].lim));for(d=u,u=t;(u=r.parent(u))!==d;)a.push(u);return{path:o.concat(a.reverse()),lca:d}}function qe(r){var e={},n=0;function t(o){var a=n;f(r.children(o),t),e[o]={low:a,lim:n++}}return f(r.children(),t),e}function Xe(r,e){var n={};function t(o,a){var i=0,s=0,u=o.length,d=T(a);return f(a,function(c,h){var l=Je(r,c),p=l?r.node(l).order:u;(l||c===d)&&(f(a.slice(s,h+1),function(m){f(r.predecessors(m),function(w){var A=r.node(w),pr=A.order;(pr<i||p<pr)&&!(A.dummy&&r.node(m).dummy)&&de(n,w,m)})}),s=h+1,i=p)}),a}return R(e,t),n}function He(r,e){var n={};function t(a,i,s,u,d){var c;f(x(i,s),function(h){c=a[h],r.node(c).dummy&&f(r.predecessors(c),function(l){var p=r.node(l);p.dummy&&(p.order<u||p.order>d)&&de(n,l,c)})})}function o(a,i){var s=-1,u,d=0;return f(i,function(c,h){if(r.node(c).dummy==="border"){var l=r.predecessors(c);l.length&&(u=r.node(l[0]).order,t(i,d,h,s,u),d=h,s=u)}t(i,d,i.length,u,a.length)}),i}return R(e,o),n}function Je(r,e){if(r.node(e).dummy)return D(r.predecessors(e),function(n){return r.node(n).dummy})}function de(r,e,n){if(e>n){var t=e;e=n,n=t}Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(r,e,{enumerable:!0,configurable:!0,value:{},writable:!0});var o=r[e];Object.defineProperty(o,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Ke(r,e,n){if(e>n){var t=e;e=n,n=t}return!!r[e]&&Object.prototype.hasOwnProperty.call(r[e],n)}function Qe(r,e,n,t){var o={},a={},i={};return f(e,function(s){f(s,function(u,d){o[u]=u,a[u]=u,i[u]=d})}),f(e,function(s){var u=-1;f(s,function(d){var c=t(d);if(c.length){c=O(c,function(w){return i[w]});for(var h=(c.length-1)/2,l=Math.floor(h),p=Math.ceil(h);l<=p;++l){var m=c[l];a[d]===d&&u<i[m]&&!Ke(n,d,m)&&(a[m]=d,a[d]=o[d]=o[m],u=i[m])}}})}),{root:o,align:a}}function Ze(r,e,n,t,o){var a={},i=$e(r,e,n,o),s=o?"borderLeft":"borderRight";function u(h,l){for(var p=i.nodes(),m=p.pop(),w={};m;)w[m]?h(m):(w[m]=!0,p.push(m),p=p.concat(l(m))),m=p.pop()}function d(h){a[h]=i.inEdges(h).reduce(function(l,p){return Math.max(l,a[p.v]+i.edge(p))},0)}function c(h){var l=i.outEdges(h).reduce(function(m,w){return Math.min(m,a[w.w]-i.edge(w))},Number.POSITIVE_INFINITY),p=r.node(h);l!==Number.POSITIVE_INFINITY&&p.borderType!==s&&(a[h]=Math.max(a[h],l))}return u(d,i.predecessors.bind(i)),u(c,i.successors.bind(i)),f(t,function(h){a[h]=a[n[h]]}),a}function $e(r,e,n,t){var o=new b,a=r.graph(),i=tn(a.nodesep,a.edgesep,t);return f(e,function(s){var u;f(s,function(d){var c=n[d];if(o.setNode(c),u){var h=n[u],l=o.edge(h,c);o.setEdge(h,c,Math.max(i(r,d,u),l||0))}u=d})}),o}function rn(r,e){return G(I(e),function(n){var t=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return wr(n,function(a,i){var s=on(r,i)/2;t=Math.max(a+s,t),o=Math.min(a-s,o)}),t-o})}function en(r,e){var n=I(e),t=P(n),o=y(n);f(["u","d"],function(a){f(["l","r"],function(i){var s=a+i,u=r[s],d;if(u!==e){var c=I(u);d=i==="l"?t-P(c):o-y(c),d&&(r[s]=F(u,function(h){return h+d}))}})})}function nn(r,e){return F(r.ul,function(n,t){if(e)return r[e.toLowerCase()][t];var o=O(v(r,t));return(o[1]+o[2])/2})}function ce(r){var e=L(r),n=Y(Xe(r,e),He(r,e)),t={},o;f(["u","d"],function(i){o=i==="u"?e:I(e).reverse(),f(["l","r"],function(s){s==="r"&&(o=v(o,function(h){return I(h).reverse()}));var u=(i==="u"?r.predecessors:r.successors).bind(r),d=Qe(r,o,n,u),c=Ze(r,o,d.root,d.align,s==="r");s==="r"&&(c=F(c,function(h){return-h})),t[i+s]=c})});var a=rn(r,t);return en(t,a),nn(t,r.graph().align)}function tn(r,e,n){return function(t,o,a){var i=t.node(o),s=t.node(a),u=0,d;if(u+=i.width/2,Object.prototype.hasOwnProperty.call(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":d=-i.width/2;break;case"r":d=i.width/2;break}if(d&&(u+=n?d:-d),d=0,u+=(i.dummy?e:r)/2,u+=(s.dummy?e:r)/2,u+=s.width/2,Object.prototype.hasOwnProperty.call(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":d=s.width/2;break;case"r":d=-s.width/2;break}return d&&(u+=n?d:-d),d=0,u}}function on(r,e){return r.node(e).width}function he(r){r=q(r),an(r),br(ce(r),function(e,n){r.node(n).x=e})}function an(r){var e=L(r),n=r.graph().ranksep,t=0;f(e,function(o){var a=y(v(o,function(i){return r.node(i).height}));f(o,function(i){r.node(i).y=t+a/2}),t+=a+n})}function sn(r,e){var n=e&&e.debugTiming?Nr:Or;n("layout",()=>{var t=n(" buildLayoutGraph",()=>wn(r));n(" runLayout",()=>fn(t,n)),n(" updateInputGraph",()=>un(r,t))})}function fn(r,e){e(" makeSpaceForEdgeLabels",()=>bn(r)),e(" removeSelfEdges",()=>Pn(r)),e(" acyclic",()=>Mr(r)),e(" nestingGraph.run",()=>Jr(r)),e(" rank",()=>dr(q(r))),e(" injectEdgeLabelProxies",()=>En(r)),e(" removeEmptyRanks",()=>kr(r)),e(" nestingGraph.cleanup",()=>Qr(r)),e(" normalizeRanks",()=>xr(r)),e(" assignRankMinMax",()=>yn(r)),e(" removeEdgeLabelProxies",()=>xn(r)),e(" normalize.run",()=>Vr(r)),e(" parentDummyChains",()=>ue(r)),e(" addBorderSegments",()=>Pr(r)),e(" order",()=>fe(r)),e(" insertSelfEdges",()=>Ln(r)),e(" adjustCoordinateSystem",()=>Cr(r)),e(" position",()=>he(r)),e(" positionSelfEdges",()=>Cn(r)),e(" removeBorderNodes",()=>In(r)),e(" normalize.undo",()=>Br(r)),e(" fixupEdgeLabelCoords",()=>Nn(r)),e(" undoCoordinateSystem",()=>jr(r)),e(" translateGraph",()=>kn(r)),e(" assignNodeIntersects",()=>gn(r)),e(" reversePoints",()=>On(r)),e(" acyclic.undo",()=>Fr(r))}function un(r,e){f(r.nodes(),function(n){var t=r.node(n),o=e.node(n);t&&(t.x=o.x,t.y=o.y,e.children(n).length&&(t.width=o.width,t.height=o.height))}),f(r.edges(),function(n){var t=r.edge(n),o=e.edge(n);t.points=o.points,Object.prototype.hasOwnProperty.call(o,"x")&&(t.x=o.x,t.y=o.y)}),r.graph().width=e.graph().width,r.graph().height=e.graph().height}var dn=["nodesep","edgesep","ranksep","marginx","marginy"],cn={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},hn=["acyclicer","ranker","rankdir","align"],ln=["width","height"],pn={width:0,height:0},mn=["minlen","weight","width","height","labeloffset"],vn={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},_n=["labelpos"];function wn(r){var e=new b({multigraph:!0,compound:!0}),n=lr(r.graph());return e.setGraph(Y({},cn,hr(n,dn),V(n,hn))),f(r.nodes(),function(t){var o=lr(r.node(t));e.setNode(t,_r(hr(o,ln),pn)),e.setParent(t,r.parent(t))}),f(r.edges(),function(t){var o=lr(r.edge(t));e.setEdge(t,Y({},vn,hr(o,mn),V(o,_n)))}),e}function bn(r){var e=r.graph();e.ranksep/=2,f(r.edges(),function(n){var t=r.edge(n);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function En(r){f(r.edges(),function(e){var n=r.edge(e);if(n.width&&n.height){var t=r.node(e.v),o=r.node(e.w),a={rank:(o.rank-t.rank)/2+t.rank,e};k(r,"edge-proxy",a,"_ep")}})}function yn(r){var e=0;f(r.nodes(),function(n){var t=r.node(n);t.borderTop&&(t.minRank=r.node(t.borderTop).rank,t.maxRank=r.node(t.borderBottom).rank,e=y(e,t.maxRank))}),r.graph().maxRank=e}function xn(r){f(r.nodes(),function(e){var n=r.node(e);n.dummy==="edge-proxy"&&(r.edge(n.e).labelRank=n.rank,r.removeNode(e))})}function kn(r){var e=Number.POSITIVE_INFINITY,n=0,t=Number.POSITIVE_INFINITY,o=0,a=r.graph(),i=a.marginx||0,s=a.marginy||0;function u(d){var c=d.x,h=d.y,l=d.width,p=d.height;e=Math.min(e,c-l/2),n=Math.max(n,c+l/2),t=Math.min(t,h-p/2),o=Math.max(o,h+p/2)}f(r.nodes(),function(d){u(r.node(d))}),f(r.edges(),function(d){var c=r.edge(d);Object.prototype.hasOwnProperty.call(c,"x")&&u(c)}),e-=i,t-=s,f(r.nodes(),function(d){var c=r.node(d);c.x-=e,c.y-=t}),f(r.edges(),function(d){var c=r.edge(d);f(c.points,function(h){h.x-=e,h.y-=t}),Object.prototype.hasOwnProperty.call(c,"x")&&(c.x-=e),Object.prototype.hasOwnProperty.call(c,"y")&&(c.y-=t)}),a.width=n-e+i,a.height=o-t+s}function gn(r){f(r.edges(),function(e){var n=r.edge(e),t=r.node(e.v),o=r.node(e.w),a,i;n.points?(a=n.points[0],i=n.points[n.points.length-1]):(n.points=[],a=o,i=t),n.points.unshift(Z(t,a)),n.points.push(Z(o,i))})}function Nn(r){f(r.edges(),function(e){var n=r.edge(e);if(Object.prototype.hasOwnProperty.call(n,"x"))switch((n.labelpos==="l"||n.labelpos==="r")&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}})}function On(r){f(r.edges(),function(e){var n=r.edge(e);n.reversed&&n.points.reverse()})}function In(r){f(r.nodes(),function(e){if(r.children(e).length){var n=r.node(e),t=r.node(n.borderTop),o=r.node(n.borderBottom),a=r.node(T(n.borderLeft)),i=r.node(T(n.borderRight));n.width=Math.abs(i.x-a.x),n.height=Math.abs(o.y-t.y),n.x=a.x+n.width/2,n.y=t.y+n.height/2}}),f(r.nodes(),function(e){r.node(e).dummy==="border"&&r.removeNode(e)})}function Pn(r){f(r.edges(),function(e){if(e.v===e.w){var n=r.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e,label:r.edge(e)}),r.removeEdge(e)}})}function Ln(r){var e=L(r);f(e,function(n){var t=0;f(n,function(o,a){var i=r.node(o);i.order=a+t,f(i.selfEdges,function(s){k(r,"selfedge",{width:s.label.width,height:s.label.height,rank:i.rank,order:a+ ++t,e:s.e,label:s.label},"_se")}),delete i.selfEdges})})}function Cn(r){f(r.nodes(),function(e){var n=r.node(e);if(n.dummy==="selfedge"){var t=r.node(n.e.v),o=t.x+t.width/2,a=t.y,i=n.x-o,s=t.height/2;r.setEdge(n.e,n.label),r.removeNode(e),n.label.points=[{x:o+2*i/3,y:a-s},{x:o+5*i/6,y:a-s},{x:o+i,y:a},{x:o+5*i/6,y:a+s},{x:o+2*i/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}function hr(r,e){return F(V(r,e),Number)}function lr(r){var e={};return f(r,function(n,t){e[t.toLowerCase()]=n}),e}export{sn as a};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import{a as i}from"./chunk-5FIPUNR4.js";function $n(w){return w&&w.__esModule&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w}i($n,"getDefaultExportFromCjs");var D={},Ye={},oe={},_n;function ge(){if(_n)return oe;_n=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,In;function Ae(){if(In)return De;In=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,kn;function Zn(){if(kn)return Be;kn=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,Ln;function B(){if(Ln)return He;Ln=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,On;function un(){if(On)return je;On=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,vn;function fn(){if(vn)return Ue;vn=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,Nn;function an(){if(Nn)return Ke;Nn=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,Mn;function pn(){if(Mn)return Ge;Mn=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,Rn;function sn(){if(Rn)return We;Rn=1;let w=un();return We=new w({explicit:[fn(),an(),pn()]}),We}i(sn,"requireFailsafe");var Qe,qn;function hn(){if(qn)return Qe;qn=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,Fn;function dn(){if(Fn)return Ve;Fn=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,Yn;function mn(){if(Yn)return Je;Yn=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,Pn;function gn(){if(Pn)return Xe;Pn=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,Dn;function An(){return Dn||(Dn=1,$e=sn().extend({implicit:[hn(),dn(),mn(),gn()]})),$e}i(An,"requireJson");var Ze,Bn;function yn(){return Bn||(Bn=1,Ze=An()),Ze}i(yn,"requireCore");var ze,Hn;function Sn(){if(Hn)return ze;Hn=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,jn;function Cn(){if(jn)return en;jn=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,Un;function Tn(){if(Un)return nn;Un=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,Kn;function wn(){if(Kn)return rn;Kn=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,Gn;function xn(){if(Gn)return ln;Gn=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,Wn;function bn(){if(Wn)return on;Wn=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,Qn;function Pe(){return Qn||(Qn=1,tn=yn().extend({implicit:[Sn(),Cn()],explicit:[Tn(),wn(),xn(),bn()]})),tn}i(Pe,"require_default");var Vn;function zn(){if(Vn)return Ye;Vn=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(zn,"requireLoader");var cn={},Jn;function ei(){if(Jn)return cn;Jn=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(ei,"requireDumper");var Xn;function ni(){if(Xn)return D;Xn=1;let w=zn(),E=ei();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(ni,"requireJsYaml");var ii=ni(),ri=$n(ii),{Type:oi,Schema:ti,FAILSAFE_SCHEMA:ci,JSON_SCHEMA:ui,CORE_SCHEMA:fi,DEFAULT_SCHEMA:ai,load:pi,loadAll:si,dump:hi,YAMLException:di,types:mi,safeLoad:gi,safeLoadAll:Ai,safeDump:yi}=ri;export{ui as a,pi as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var g=Object.create;var f=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(b,a)=>()=>{try{return a||b((a={exports:{}}).exports,a),a.exports}catch(c){throw a=0,c}};var l=(b,a,c,e)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!k.call(b,d)&&d!==c&&f(b,d,{get:()=>a[d],enumerable:!(e=h(a,d))||e.enumerable});return b};var n=(b,a,c)=>(c=b!=null?g(j(b)):{},l(a||!b||!b.__esModule?f(c,"default",{value:b,enumerable:!0}):c,b));export{m as a,n as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C}from"./chunk-EADDJUDC.js";import{a as $,b as A}from"./chunk-MVYC3CY4.js";import{b as L,c as w,d as _,e as D,f as S,h as O,i as F}from"./chunk-XBZAO4ID.js";import{a as M,b as X,d as G,e as N}from"./chunk-PZCGBYVO.js";import{a as B}from"./chunk-CK7M2PJ3.js";import{p as b}from"./chunk-6DWWYA6G.js";import{Z as T,t as R}from"./chunk-LWDL4HZB.js";import{b as l}from"./chunk-JR4SIX7A.js";import{a as f}from"./chunk-5FIPUNR4.js";function H(e,{edgePathsClass:n="edges edgePaths"}={}){let t=e.insert("g").attr("class","root"),s=t.insert("g").attr("class","clusters"),r=t.insert("g").attr("class",n),i=t.insert("g").attr("class","edgeLabels"),a=t.insert("g").attr("class","nodes");return{clusters:s,edgePaths:r,edgeLabels:i,nodes:a,rootGroups:t}}f(H,"createLayoutElementGroups");async function z(e,n){if(n.label){let{shapeSvg:t,bbox:s}=await B(e,n);n.labelBBox={width:s.width,height:s.height},t.remove()}else n.labelBBox={width:0,height:0}}f(z,"measureGroupLabel");async function J(e,n,t){let s=await X(e,n,t),r=s.node()?.getBBox()??{width:0,height:0};return n.width=r.width,n.height=r.height,s}f(J,"insertMeasuredNode");async function W(e,n){let t=new C({multigraph:!0,compound:!0}),s=[...n.edges],r=T(),i=H(e),{edgeLabels:a,nodes:u}=i,o=new Map,g=e.node()!=null;await Promise.all(n.nodes.map(async d=>{if(d.isGroup)g&&await z(u,d),t.setNode(d.id,{...d});else{if(g){let y=await J(u,d,{config:r,dir:d.dir});o.set(d.id,y)}t.setNode(d.id,{...d})}}));for(let d of s)g&&D(d)&&await S(a,d),t.setEdge(d.start,d.end,{...d},d.id),n.edges.some(v=>v.id===d.id)||n.edges.push(d);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:d}=await import("./chunk-S2Q52W46.js");d(e,n)}return{graph:t,groups:i,nodeElements:o}}f(W,"createGraphWithElements");var c=new Map,m=new Map,q=new Map,fe=f(()=>{m.clear(),q.clear(),c.clear()},"clear"),p=f((e,n)=>{let t=m.get(n)||[];return l.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),ue=f((e,n)=>{let t=m.get(n)||[];return l.info("Descendants of ",n," is ",t),l.info("Edge is ",e),e.v===n||e.w===n?!1:t?t.includes(e.v)||p(e.v,n)||p(e.w,n)||t.includes(e.w):(l.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),K=f((e,n,t,s)=>{l.debug("Copying children of ",e,"root",s,"data",n.node(e),s);let r=n.children(e)||[];e!==s&&r.push(e),l.debug("Copying (nodes) clusterId",e,"nodes",r),r.forEach(i=>{if(n.children(i).length>0)K(i,n,t,s);else{let a=n.node(i);l.info("cp ",i," to ",s," with parent ",e),t.setNode(i,a),s!==n.parent(i)&&(l.debug("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==s&&i!==e?(l.debug("Setting parent",i,e),t.setParent(i,e)):(l.info("In copy ",e,"root",s,"data",n.node(e),s),l.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==s,"node!==clusterId",i!==e));let u=n.edges(i);l.debug("Copying Edges",u),u.forEach(o=>{l.info("Edge",o);let g=n.edge(o.v,o.w,o.name);l.info("Edge data",g,s);try{ue(o,s)?(l.info("Copying as ",o.v,o.w,g,o.name),t.setEdge(o.v,o.w,g,o.name),l.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):l.info("Skipping copy of edge ",o.v,"-->",o.w," rootId: ",s," clusterId:",e)}catch(d){l.error(d)}})}l.debug("Removing node",i),n.removeNode(i)})},"copy"),Q=f((e,n)=>{let t=n.children(e),s=[...t];for(let r of t)q.set(r,e),s=[...s,...Q(r,n)];return s},"extractDescendants"),de=f((e,n,t)=>{let s=e.edges().filter(o=>o.v===n||o.w===n),r=e.edges().filter(o=>o.v===t||o.w===t),i=s.map(o=>({v:o.v===n?t:o.v,w:o.w===n?n:o.w})),a=r.map(o=>({v:o.v,w:o.w}));return i.filter(o=>a.some(g=>o.v===g.v&&o.w===g.w))},"findCommonEdges"),E=f((e,n,t)=>{let s=n.children(e);if(l.trace("Searching children of id ",e,s),s.length<1)return e;let r;for(let i of s){let a=E(i,n,t),u=de(n,t,a);if(a)if(u.length>0)r=a;else return a}return r},"findNonClusterChild"),j=f(e=>!c.has(e)||!c.get(e).externalConnections?e:c.has(e)?c.get(e).id:e,"getAnchorId"),xe=f((e,n)=>{if(!e||n>10){l.debug("Opting out, no graph ");return}else l.debug("Opting in, graph ");e.nodes().forEach(function(t){e.children(t).length>0&&(l.debug("Cluster identified",t," Replacement id in edges: ",E(t,e,t)),m.set(t,Q(t,e)),c.set(t,{id:E(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){let s=e.children(t),r=e.edges();s.length>0?(l.debug("Cluster identified",t,m),r.forEach(i=>{let a=p(i.v,t),u=p(i.w,t);a^u&&(l.debug("Edge: ",i," leaves cluster ",t),l.debug("Descendants of XXX ",t,": ",m.get(t)),c.get(t).externalConnections=!0)})):l.debug("Not a cluster ",t,m)});for(let t of c.keys()){let s=c.get(t).id,r=e.parent(s);r!==t&&c.has(r)&&!c.get(r).externalConnections&&(c.get(t).id=r);let i=e.edges().some(a=>a.v===t);if(s&&c.get(t)?.externalConnections&&i&&Y(e,s,t)){let a=ge(e,t,e.parent(s));a&&(c.get(t).id=a)}}e.edges().forEach(function(t){let s=e.edge(t);l.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),l.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let r=t.v,i=t.w;if(l.debug("Fix XXX",c,"ids:",t.v,t.w,"Translating: ",c.get(t.v)," --- ",c.get(t.w)),c.get(t.v)||c.get(t.w)){if(l.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),r=j(t.v),i=j(t.w),e.removeEdge(t.v,t.w,t.name),r!==t.v){let a=e.parent(r);c.get(a).externalConnections=!0,s.fromCluster=t.v}if(i!==t.w){let a=e.parent(i);c.get(a).externalConnections=!0,s.toCluster=t.w}l.debug("Fix Replacing with XXX",r,i,t.name),e.setEdge(r,i,s,t.name)}}),U(e,0),l.trace(c)},"adjustClustersAndEdges"),U=f((e,n)=>{if(n>10){l.error("Bailing out");return}let t=e.nodes(),s=!1;for(let r of t){let i=e.children(r);s=s||i.length>0}if(!s){l.debug("Done, no node has children",e.nodes());return}l.debug("Nodes = ",t,n);for(let r of t)if(l.debug("Extracting node",r,c,c.has(r)&&!c.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",n),!c.has(r))l.debug("Not a cluster",r,n);else if(!c.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){l.debug("Cluster without external connections, without a parent and with children",r,n);let a=e.graph().rankdir==="TB"?"LR":"TB";c.get(r)?.clusterData?.dir&&(a=c.get(r).clusterData.dir,l.debug("Fixing dir",c.get(r).clusterData.dir,a));let u=new C({multigraph:!0,compound:!0}).setGraph({rankdir:a,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});K(r,e,u,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:c.get(r).clusterData,label:c.get(r).label,graph:u})}else l.debug("Cluster ** ",r," **not meeting the criteria !externalConnections:",!c.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),n),l.debug(c);t=e.nodes(),l.debug("New list of nodes",t);for(let r of t){let i=e.node(r);l.debug(" Now next level",r,i),i?.clusterNode&&U(i.graph,n+1)}},"extractor"),V=f((e,n)=>{if(n.length===0)return[];let t=Object.assign([],n);return n.forEach(s=>{let r=e.children(s),i=V(e,r);t=[...t,...i]}),t},"sorter"),Ne=f(e=>V(e,e.children()),"sortNodesByHierarchy"),Y=f((e,n,t)=>{let s=e.parent(n);for(;s&&s!==t;){let r=c.get(s);if(r&&!r.externalConnections)return!0;s=e.parent(s)}return!1},"isNodeInExtractableCluster"),ge=f((e,n,t)=>{let s=e.children(n)??[];for(let r of s){if(r===t||p(r,t))continue;let i=E(r,e,n);if(i&&!Y(e,i,n))return i}return null},"findSafeAnchorNode");function me({prepareLayout:e,measureLayout:n,runLayoutCore:t,paintLayout:s,afterPaint:r,paintOptions:i}){let a=n??I;return f(async function(o,g,d,y){let v=g.select("g");(d?.insertMarkers??F)(v,o.markers,o.type,o.diagramId),Z();let h={element:v,helpers:d,options:y};h.preparedLayout=await e?.(o,h);let le=await a(o,h),k=await t(o,h),x={...h,measure:le};s?await s(o,x,k):await ee(o,x,i),await r?.(o,x,k)},"render")}f(me,"createCommonLayoutRenderer");function Z(){G(),_(),A(),fe()}f(Z,"clearLayoutRenderState");async function I(e,{element:n}){return await W(n,e)}f(I,"defaultMeasureLayout");async function ee(e,n,t={}){let{measure:s}=n,{groups:r}=s;for(let a of t.getNodes?.(e,n)??e.nodes)t.skipNode?.(a,n)||await te(r,a,n,t);let i=re(e.nodes);for(let a of e.edges)se(a,t)||await ie(r,a,i,e,t,n)}f(ee,"paintLayoutData");async function te(e,n,t,s){n.clusterNode?N(n):ne(n,t,s)?await $(e.clusters,n):N(n)}f(te,"paintLayoutNode");function ne(e,n,t){return e.isGroup===!0&&(t.isCluster?.(e,n)??!0)}f(ne,"shouldPaintAsCluster");function re(e){let n=new Map;for(let t of e)t?.id&&n.set(t.id,t);return n}f(re,"buildNodeLookup");function se(e,n){return e.isLayoutOnly||!!n.skipEdge?.(e)}f(se,"shouldSkipPaintEdge");async function ie(e,n,t,s,r,i){let a=O(e.edgePaths,{...n},r.clusterDb??new Map,s.type,P(n.start,n,t,i,r),P(n.end,n,t,i,r),s.diagramId,oe(n,r));D(n)&&(L.has(n.id)||await S(e.edgeLabels,n),ae(n,a))}f(ie,"paintLayoutEdge");function P(e,n,t,s,r){return r.getEdgeNode?.(e,n,s)??(e?t.get(e)??{}:{})}f(P,"getRenderedNode");function oe(e,n){return typeof n.skipIntersect=="function"?n.skipIntersect(e):n.skipIntersect??!1}f(oe,"shouldSkipIntersect");function ae(e,n){let t=n?.updatedPath??n?.originalPath,s=R(),{subGraphTitleTotalMargin:r}=M({flowchart:s.flowchart??{}});if(e.label){let i=L.get(e.id),a=e.x,u=e.y;if(t){let o=b.calcLabelPosition(t);l.debug("Moving label "+e.label+" from (",a,",",u,") to (",o.x,",",o.y,") abc88"),n?.updatedPath&&(a=o.x,u=o.y)}i.attr("transform",`translate(${a}, ${u+r/2})`)}if(e?.startLabelLeft){let i=w.get(e.id).startLeft,a=e?.x,u=e?.y;if(t){let o=b.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",t);a=o.x,u=o.y}i.attr("transform",`translate(${a}, ${u})`)}if(e.startLabelRight){let i=w.get(e.id).startRight,a=e.x,u=e.y;if(t){let o=b.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",t);a=o.x,u=o.y}i.attr("transform",`translate(${a}, ${u})`)}if(e.endLabelLeft){let i=w.get(e.id).endLeft,a=e.x,u=e.y;if(t){let o=b.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",t);a=o.x,u=o.y}i.attr("transform",`translate(${a}, ${u})`)}if(e.endLabelRight){let i=w.get(e.id).endRight,a=e.x,u=e.y;if(t){let o=b.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",t);a=o.x,u=o.y}i.attr("transform",`translate(${a}, ${u})`)}}f(ae,"positionRenderedEdgeLabel");export{H as a,J as b,c,E as d,xe as e,Ne as f,me as g,Z as h,I as i,ee as j};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as o,c as n,d as i,e as s,g as u,n as d,w as l,y as c}from"./chunk-CUS65DKZ.js";var m=class extends c{static{e(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},v=class extends l{static{e(this,"PieValueConverter")}runCustomConverter(t,r,a){if(t.name==="PIE_SECTION_LABEL")return r.replace(/"/g,"").trim()}},C={parser:{TokenBuilder:e(()=>new m,"TokenBuilder"),ValueConverter:e(()=>new v,"ValueConverter")}};function P(t=s){let r=i(n(t),u),a=i(o({shared:r}),d,C);return r.ServiceRegistry.register(a),{shared:r,Pie:a}}e(P,"createPieServices");export{C as a,P as b};
|