@marimo-team/frontend 0.14.11-dev50 → 0.14.11-dev7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/dist/assets/{ConnectedDataExplorerComponent-CUoL500U.js → ConnectedDataExplorerComponent-C0P31a5y.js} +3 -3
  2. package/dist/assets/{ImageComparisonComponent-DDHwIJ8Q.js → ImageComparisonComponent-DXDeGx2f.js} +1 -1
  3. package/dist/assets/{VegaLite-Czmx_ECO.js → VegaLite-CUqFyetE.js} +1 -1
  4. package/dist/assets/_baseEach-BHb51vC7.js +1 -0
  5. package/dist/assets/_baseMap--rH4lBFQ.js +1 -0
  6. package/dist/assets/_baseUniq-CABXtSlj.js +1 -0
  7. package/dist/assets/{_createAggregator-CcihYROi.js → _createAggregator-SoA2y5HH.js} +1 -1
  8. package/dist/assets/{any-language-editor-bqVsHwiH.js → any-language-editor-Bw2cdBsS.js} +1 -1
  9. package/dist/assets/architectureDiagram-IEHRJDOE-rGoAHYH8.js +36 -0
  10. package/dist/assets/blockDiagram-JOT3LUYC-ZBJWq8Z_.js +121 -0
  11. package/dist/assets/{c4Diagram-6F6E4RAY-m6sAlCzp.js → c4Diagram-VJAJSXHY-BHtN7uMz.js} +2 -2
  12. package/dist/assets/channel-C96bdTqW.js +1 -0
  13. package/dist/assets/{chunk-353BL4L5-CnAx5AF0.js → chunk-4BMEZGHF-BO5DiwLV.js} +1 -1
  14. package/dist/assets/{chunk-QEP2MXWD-BxExN6Lp.js → chunk-A2AXSNBT-B07L-F60.js} +3 -4
  15. package/dist/assets/chunk-AEK57VVT-DN2-tsCz.js +220 -0
  16. package/dist/assets/{chunk-67H74DCK-Cto_4Bir.js → chunk-D6G4REZN-CbYGlbyQ.js} +1 -1
  17. package/dist/assets/chunk-RZ5BOZE2-DVex9AD8.js +1 -0
  18. package/dist/assets/{chunk-AACKK3MU-B_HaHcJu.js → chunk-XZIHB7SX-COKmet6t.js} +1 -1
  19. package/dist/assets/{circle-play-8nMu2iYy.js → circle-play-DSXPiHO0.js} +2 -2
  20. package/dist/assets/classDiagram-GIVACNV2-CehC5H1T.js +1 -0
  21. package/dist/assets/classDiagram-v2-COTLJTTW-CehC5H1T.js +1 -0
  22. package/dist/assets/clone-H0gxlZXI.js +1 -0
  23. package/dist/assets/compile-DEz1Y6_F.js +10 -0
  24. package/dist/assets/dagre-OKDRZEBW-CymbL2JX.js +4 -0
  25. package/dist/assets/{data-editor-BeWagiEI.js → data-editor-CTGVBJdC.js} +22 -22
  26. package/dist/assets/diagram-SSKATNLV-DY5vs_Bj.js +43 -0
  27. package/dist/assets/diagram-VNBRO52H-ZuQiOKh8.js +24 -0
  28. package/dist/assets/edit-page-DcQ6ZhfW.js +144 -0
  29. package/dist/assets/{erDiagram-R3QVA2FD-3xyAvrIh.js → erDiagram-Q7BY3M3F-l-V_9Yws.js} +1 -1
  30. package/dist/assets/flowDiagram-4HSFHLVR-BsHIJJTe.js +161 -0
  31. package/dist/assets/ganttDiagram-APWFNJXF-2gy5YbWU.js +257 -0
  32. package/dist/assets/gitGraphDiagram-7IBYFJ6S-B_ELHLbw.js +65 -0
  33. package/dist/assets/{graph-C4PkZZxf.js → graph-DpLAfWzk.js} +1 -1
  34. package/dist/assets/home-page-6auHzaGk.js +9 -0
  35. package/dist/assets/index-8IZtaDUn.css +1 -0
  36. package/dist/assets/index-B-mClP__.js +1 -0
  37. package/dist/assets/{index-DjJ-bG6v.js → index-BuqjbKw0.js} +1 -1
  38. package/dist/assets/{index-B-zQMBKJ.js → index-Bz3Lb65G.js} +1 -1
  39. package/dist/assets/{index-CKQeO2Lm.js → index-C9EPiaCd.js} +1 -1
  40. package/dist/assets/{index-DjpcQgUn.js → index-C9EbJL5c.js} +1 -1
  41. package/dist/assets/{index--PV_n6OT.js → index-Cig6xGYH.js} +1 -1
  42. package/dist/assets/{index-CEEx86Vd.js → index-CmVTfWOx.js} +1 -1
  43. package/dist/assets/{index-DnxVQzYt.js → index-Cs9jrmWP.js} +1 -1
  44. package/dist/assets/{index-BGwXzM6i.js → index-CxQo8Qlm.js} +1 -1
  45. package/dist/assets/{index-DGXmlIKQ.js → index-Czo055fo.js} +1 -1
  46. package/dist/assets/{index-tWtqwKDR.js → index-DAMc4rP9.js} +1 -1
  47. package/dist/assets/index-DDVWq6NK.js +501 -0
  48. package/dist/assets/{index-CqGB7278.js → index-DP4HiwTU.js} +1 -1
  49. package/dist/assets/{index-CtmLvKwt.js → index-DQwFB8dN.js} +1 -1
  50. package/dist/assets/{index-hzUC1b41.js → index-DZWCSqpf.js} +1 -1
  51. package/dist/assets/{index-Dx9C9kBl.js → index-DbunLlvf.js} +1 -1
  52. package/dist/assets/{index-grhOS4NZ.js → index-FYYNNs_X.js} +1 -1
  53. package/dist/assets/{index-TLD151he.js → index-N67HDT2u.js} +1 -1
  54. package/dist/assets/{index-BU0kTvje.js → index-kmp97oxc.js} +1 -1
  55. package/dist/assets/infoDiagram-PH2N3AL5-BwbaSo89.js +2 -0
  56. package/dist/assets/journeyDiagram-U35MCT3I-NKSvtlZA.js +138 -0
  57. package/dist/assets/{kanban-definition-ILFWEQ3N-CcX8Odhv.js → kanban-definition-NDS4AKOZ-Cw4Vh4wD.js} +8 -9
  58. package/dist/assets/{layout-CMZskpMv.js → layout-DodQLUx6.js} +1 -1
  59. package/dist/assets/linear-B_OPGLLI.js +1 -0
  60. package/dist/assets/loro_wasm_bg-DHBNbovs.wasm +0 -0
  61. package/dist/assets/mermaid-CVRC4Ruz.js +152 -0
  62. package/dist/assets/min-VmgWsmJ_.js +1 -0
  63. package/dist/assets/{mindmap-definition-CZNETY7S-CxqCAn65.js → mindmap-definition-ALO5MXBD-C0KGo_i_.js} +4 -4
  64. package/dist/assets/{pieDiagram-NIOCPIFQ-PRsPDCUf.js → pieDiagram-IB7DONF6-DCnELF9y.js} +1 -1
  65. package/dist/assets/{quadrantDiagram-2OG54O6I-pLLKFYFN.js → quadrantDiagram-7GDLP6J5-D0cP5ixt.js} +1 -1
  66. package/dist/assets/radar-MK3ICKWK-D8LhkSau.js +126 -0
  67. package/dist/assets/{react-plotly-O8CNh3yr.js → react-plotly-BmDAcz3M.js} +1 -1
  68. package/dist/assets/{requirementDiagram-SO3GGRV7-yjxijDDw.js → requirementDiagram-KVF5MWMF-BTksN04O.js} +3 -3
  69. package/dist/assets/run-page-17VQxU3e.js +1 -0
  70. package/dist/assets/{sankeyDiagram-4UZDY2LN-7AVzF911.js → sankeyDiagram-QLVOVGJD-DECOJIMC.js} +1 -1
  71. package/dist/assets/save-worker-DZnx0AG9.js +1 -0
  72. package/dist/assets/sequenceDiagram-X6HHIX6F-C5eDWwoH.js +122 -0
  73. package/dist/assets/shutdown-button-QvkERkPd.js +17 -0
  74. package/dist/assets/slides-component-DchvPU9C.js +1 -0
  75. package/dist/assets/sortBy-7ke7bFD2.js +1 -0
  76. package/dist/assets/stateDiagram-DGXRK772-D6Kwy963.js +1 -0
  77. package/dist/assets/stateDiagram-v2-YXO3MK2T-Bk10XR94.js +1 -0
  78. package/dist/assets/storage-BeNhlsrY.js +27 -0
  79. package/dist/assets/{terminal-Dxa0NUTG.js → terminal-MtCDBvKs.js} +1 -1
  80. package/dist/assets/{time-D69fB1YD.js → time-BoP93jle.js} +1 -1
  81. package/dist/assets/timeline-definition-BDJGKUSR-T1la59d1.js +61 -0
  82. package/dist/assets/tracing-CCltm96L.js +2 -0
  83. package/dist/assets/vega-component-j1BDb2QJ.js +1 -0
  84. package/dist/assets/worker-BbdB3qWL.js +1 -0
  85. package/dist/assets/worker-CnoOKJWk.js +1 -0
  86. package/dist/assets/xychartDiagram-VJFVF3MP-CoJqer7_.js +7 -0
  87. package/dist/index.html +2 -2
  88. package/package.json +42 -42
  89. package/dist/assets/_baseEach-C52A37kN.js +0 -1
  90. package/dist/assets/_baseMap-CErDCA3r.js +0 -1
  91. package/dist/assets/_baseUniq-hliKyzdp.js +0 -1
  92. package/dist/assets/architectureDiagram-NQ2NVSRB-BLiKdlfK.js +0 -36
  93. package/dist/assets/blockDiagram-PHRCVELO-Dj7uU_bm.js +0 -122
  94. package/dist/assets/channel-eH-Wxlwg.js +0 -1
  95. package/dist/assets/chunk-6OLS64BW-CrFJnDjp.js +0 -220
  96. package/dist/assets/chunk-BFAMUDN2-Di38VBDn.js +0 -1
  97. package/dist/assets/chunk-E2GYISFI-CPwLrORh.js +0 -15
  98. package/dist/assets/chunk-SKB7J2MH-CZ1cNiyn.js +0 -1
  99. package/dist/assets/classDiagram-BGRH5UQR-BnjY0hFP.js +0 -1
  100. package/dist/assets/classDiagram-v2-O24JOBDK-BnjY0hFP.js +0 -1
  101. package/dist/assets/clone-BqBqvZp5.js +0 -1
  102. package/dist/assets/compile-BFoHfP_H.js +0 -10
  103. package/dist/assets/dagre-FFZHY6LT-B2xtEGm4.js +0 -4
  104. package/dist/assets/diagram-3EMPZRKU-DSUnwT8T.js +0 -24
  105. package/dist/assets/diagram-5UYTHUR4-BKm2hW4S.js +0 -24
  106. package/dist/assets/diagram-ZTM2IBQH-BQuWD834.js +0 -43
  107. package/dist/assets/edit-page-Dp71Rq_B.js +0 -144
  108. package/dist/assets/flowDiagram-PKI6S5ZS-ZMlsBCaU.js +0 -162
  109. package/dist/assets/ganttDiagram-EK5VF46D-BCKhVKFb.js +0 -267
  110. package/dist/assets/gitGraphDiagram-GW3U2K7C-pHdDh1du.js +0 -65
  111. package/dist/assets/home-page-CmEC47AR.js +0 -9
  112. package/dist/assets/index-BEQfoZiP.js +0 -1
  113. package/dist/assets/index-D2Z1hqrf.js +0 -1
  114. package/dist/assets/index-DDdlzLJw.js +0 -503
  115. package/dist/assets/index-DnCBJYuC.css +0 -1
  116. package/dist/assets/infoDiagram-RLU2ROGC-CQRQmWBF.js +0 -2
  117. package/dist/assets/journeyDiagram-EWQZEKCU-DoTMV7Ld.js +0 -139
  118. package/dist/assets/linear-RD9P-hfS.js +0 -1
  119. package/dist/assets/links-BddFPrre.js +0 -17
  120. package/dist/assets/loro_wasm_bg-bPYKkGLG.wasm +0 -0
  121. package/dist/assets/mermaid-CjHlE8Co.js +0 -152
  122. package/dist/assets/min-DrLXTftx.js +0 -1
  123. package/dist/assets/run-page-CxZg57Ra.js +0 -1
  124. package/dist/assets/save-worker-B8gk1S9x.js +0 -1
  125. package/dist/assets/sequenceDiagram-ZIKVLSP4-CYsC6JlV.js +0 -122
  126. package/dist/assets/slides-component-t8hWAw30.js +0 -1
  127. package/dist/assets/sortBy-6rZ1GeDf.js +0 -1
  128. package/dist/assets/stateDiagram-XX37X6EN-DkOa47Ba.js +0 -1
  129. package/dist/assets/stateDiagram-v2-GD6S3NHB-CtNUX2HF.js +0 -1
  130. package/dist/assets/storage-DFM0grbQ.js +0 -25
  131. package/dist/assets/timeline-definition-RI47OAVP-Cv4RoOGw.js +0 -61
  132. package/dist/assets/tracing-CYcKBnLY.js +0 -2
  133. package/dist/assets/treemap-FKARHQ26-DIAQw-dY.js +0 -126
  134. package/dist/assets/vega-component-CzIbLUf6.js +0 -1
  135. package/dist/assets/worker-BYA2ASe8.js +0 -1
  136. package/dist/assets/worker-Ch6cKXnI.js +0 -1
  137. package/dist/assets/xychartDiagram-H2YORKM3-pYUlM72N.js +0 -7
  138. /package/dist/assets/{links-C1rhMrxo.css → shutdown-button-C1rhMrxo.css} +0 -0
@@ -1,9 +1,9 @@
1
- var J;import{g as He}from"./chunk-BFAMUDN2-Di38VBDn.js";import{s as Ke}from"./chunk-SKB7J2MH-CZ1cNiyn.js";import{_ as u,b as We,a as je,s as Ge,g as ze,p as Xe,q as Je,c as Te,l as be,y as Ze,B as et,o as tt,r as st,u as it}from"./mermaid-CjHlE8Co.js";import"./transform-DetRMEbJ.js";import"./timer-Bqd5yn_a.js";import"./index-DDdlzLJw.js";import"./step-BwsUM5iJ.js";var ke=function(){var e=u(function(i,m,a,s){for(a=a||{},s=i.length;s--;a[i[s]]=m);return a},"o"),n=[1,3],h=[1,4],c=[1,5],y=[1,6],l=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,22],R=[2,7],o=[1,26],p=[1,27],I=[1,28],b=[1,29],C=[1,33],A=[1,34],v=[1,35],L=[1,36],O=[1,37],x=[1,38],w=[1,24],D=[1,31],M=[1,32],$=[1,30],f=[1,39],S=[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],z=[89,90],Ne=[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],pe=[27,29],qe=[1,70],Ce=[1,71],Ae=[1,72],ve=[1,73],Le=[1,74],Oe=[1,75],xe=[1,76],Z=[1,83],U=[1,80],ee=[1,84],te=[1,85],se=[1,86],ie=[1,87],ne=[1,88],re=[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],V=[63,64],we=[1,101],De=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],k=[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],Y=[1,110],B=[1,106],Q=[1,107],H=[1,108],K=[1,109],W=[1,111],oe=[1,116],he=[1,117],ue=[1,114],ye=[1,115],Se={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(i,m,a,s,_,t,me){var r=t.length-1;switch(_){case 4:this.$=t[r].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[r].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[r-3],t[r-4]);break;case 22:s.addRequirement(t[r-5],t[r-6]),s.setClass([t[r-5]],t[r-3]);break;case 23:s.setNewReqId(t[r-2]);break;case 24:s.setNewReqText(t[r-2]);break;case 25:s.setNewReqRisk(t[r-2]);break;case 26:s.setNewReqVerifyMethod(t[r-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[r-3]);break;case 43:s.addElement(t[r-5]),s.setClass([t[r-5]],t[r-3]);break;case 44:s.setNewElementType(t[r-2]);break;case 45:s.setNewElementDocRef(t[r-2]);break;case 48:s.addRelationship(t[r-2],t[r],t[r-4]);break;case 49:s.addRelationship(t[r-2],t[r-4],t[r]);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[r-2],s.defineClass(t[r-1],t[r]);break;case 58:s.setClass(t[r-1],t[r]);break;case 59:s.setClass([t[r-2]],t[r]);break;case 60:case 62:case 65:this.$=[t[r]];break;case 61:case 63:this.$=t[r-2].concat([t[r]]);break;case 64:this.$=t[r-2],s.setCssStyle(t[r-1],t[r]);break;case 66:t[r-2].push(t[r]),this.$=t[r-2];break;case 68:this.$=t[r-1]+t[r]}},"anonymous"),table:[{3:1,4:2,6:n,9:h,11:c,13:y},{1:[3]},{3:8,4:2,5:[1,7],6:n,9:h,11:c,13:y},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(l,[2,6]),{3:12,4:2,6:n,9:h,11:c,13:y},{1:[2,2]},{4:17,5:E,7:13,8:R,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:I,24:b,25:23,33:25,41:C,42:A,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:f,90:S},e(l,[2,4]),e(l,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:E,7:42,8:R,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:I,24:b,25:23,33:25,41:C,42:A,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:f,90:S},{4:17,5:E,7:43,8:R,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:I,24:b,25:23,33:25,41:C,42:A,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:f,90:S},{4:17,5:E,7:44,8:R,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:I,24:b,25:23,33:25,41:C,42:A,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:f,90:S},{4:17,5:E,7:45,8:R,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:I,24:b,25:23,33:25,41:C,42:A,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:f,90:S},{4:17,5:E,7:46,8:R,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:I,24:b,25:23,33:25,41:C,42:A,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:f,90:S},{4:17,5:E,7:47,8:R,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:I,24:b,25:23,33:25,41:C,42:A,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:f,90:S},{4:17,5:E,7:48,8:R,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:I,24:b,25:23,33:25,41:C,42:A,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:f,90:S},{4:17,5:E,7:49,8:R,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:I,24:b,25:23,33:25,41:C,42:A,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:f,90:S},{4:17,5:E,7:50,8:R,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:I,24:b,25:23,33:25,41:C,42:A,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:f,90:S},{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:f,90:S},{30:63,33:62,75:P,89:f,90:S},{30:64,33:62,75:P,89:f,90:S},e(z,[2,29]),e(z,[2,30]),e(z,[2,31]),e(z,[2,32]),e(z,[2,33]),e(z,[2,34]),e(Ne,[2,81]),e(Ne,[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(pe,[2,79]),e(pe,[2,80]),{27:[1,67],29:[1,68]},e(pe,[2,85]),e(pe,[2,86]),{62:69,65:qe,66:Ce,67:Ae,68:ve,69:Le,70:Oe,71:xe},{62:77,65:qe,66:Ce,67:Ae,68:ve,69:Le,70:Oe,71:xe},{30:78,33:62,75:P,89:f,90:S},{73:79,75:Z,76:U,78:81,79:82,80:ee,81:te,82:se,83:ie,84:ne,85:re,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:ne,85:re,86:ae,87:le,88:ce},{30:94,33:62,75:P,76:U,89:f,90:S},{5:[1,95]},{30:96,33:62,75:P,89:f,90:S},{5:[1,97]},{30:98,33:62,75:P,89:f,90:S},{63:[1,99]},e(V,[2,50]),e(V,[2,51]),e(V,[2,52]),e(V,[2,53]),e(V,[2,54]),e(V,[2,55]),e(V,[2,56]),{64:[1,100]},e(d,[2,59],{76:U}),e(d,[2,64],{76:we}),{33:103,75:[1,102],89:f,90:S},e(De,[2,65],{79:104,75:Z,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce}),e(k,[2,67]),e(k,[2,69]),e(k,[2,70]),e(k,[2,71]),e(k,[2,72]),e(k,[2,73]),e(k,[2,74]),e(k,[2,75]),e(k,[2,76]),e(k,[2,77]),e(k,[2,78]),e(d,[2,57],{76:we}),e(d,[2,58],{76:U}),{5:Y,28:105,31:B,34:Q,36:H,38:K,40:W},{27:[1,112],76:U},{5:oe,40:he,56:113,57:ue,59:ye},{27:[1,118],76:U},{33:119,89:f,90:S},{33:120,89:f,90:S},{75:Z,78:121,79:82,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce},e(Ee,[2,61]),e(Ee,[2,63]),e(k,[2,68]),e(d,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:Y,28:126,31:B,34:Q,36:H,38:K,40:W},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:ye},e(d,[2,47]),{5:[1,131]},e(d,[2,48]),e(d,[2,49]),e(De,[2,66],{79:104,75:Z,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce}),{33:132,89:f,90:S},{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:Y,28:145,31:B,34:Q,36:H,38:K,40:W},{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:ye},{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:Y,28:159,31:B,34:Q,36:H,38:K,40:W},{5:Y,28:160,31:B,34:Q,36:H,38:K,40:W},{5:Y,28:161,31:B,34:Q,36:H,38:K,40:W},{5:Y,28:162,31:B,34:Q,36:H,38:K,40:W},{5:oe,40:he,56:163,57:ue,59:ye},{5:oe,40:he,56:164,57:ue,59:ye},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(i,m){if(!m.recoverable){var a=new Error(i);throw a.hash=m,a}this.trace(i)},"parseError"),parse:u(function(i){var m=this,a=[0],s=[],_=[null],t=[],me=this.table,r="",de=0,Me=0,Be=t.slice.call(arguments,1),g=Object.create(this.lexer),j={yy:{}};for(var ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ge)&&(j.yy[ge]=this.yy[ge]);g.setInput(i,j.yy),j.yy.lexer=g,j.yy.parser=this,g.yylloc===void 0&&(g.yylloc={});var Ie=g.yylloc;t.push(Ie);var Qe=g.options&&g.options.ranges;function $e(){var q;return typeof(q=s.pop()||g.lex()||1)!="number"&&(q instanceof Array&&(q=(s=q).pop()),q=m.symbols_[q]||q),q}typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,u(function(q){a.length=a.length-2*q,_.length=_.length-q,t.length=t.length-q},"popStack"),u($e,"lex");for(var T,G,N,Fe,_e,F,Pe,fe,X={};;){if(G=a[a.length-1],this.defaultActions[G]?N=this.defaultActions[G]:(T==null&&(T=$e()),N=me[G]&&me[G][T]),N===void 0||!N.length||!N[0]){var Ue="";for(_e in fe=[],me[G])this.terminals_[_e]&&_e>2&&fe.push("'"+this.terminals_[_e]+"'");Ue=g.showPosition?"Parse error on line "+(de+1)+`:
1
+ var J;import{g as He,s as Ke}from"./chunk-RZ5BOZE2-DVex9AD8.js";import{_ as u,b as We,a as je,s as Ge,g as ze,p as Xe,q as Je,c as Te,l as be,y as Ze,B as et,o as tt,r as st,u as it}from"./mermaid-CVRC4Ruz.js";import"./transform-DetRMEbJ.js";import"./timer-Bqd5yn_a.js";import"./index-DDVWq6NK.js";import"./step-BwsUM5iJ.js";var ke=function(){var e=u(function(i,m,a,s){for(a=a||{},s=i.length;s--;a[i[s]]=m);return a},"o"),n=[1,3],h=[1,4],c=[1,5],y=[1,6],l=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],p=[1,22],R=[2,7],o=[1,26],E=[1,27],I=[1,28],b=[1,29],C=[1,33],A=[1,34],v=[1,35],L=[1,36],O=[1,37],x=[1,38],w=[1,24],D=[1,31],M=[1,32],$=[1,30],f=[1,39],S=[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],z=[89,90],Ne=[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],Ee=[27,29],qe=[1,70],Ce=[1,71],Ae=[1,72],ve=[1,73],Le=[1,74],Oe=[1,75],xe=[1,76],Z=[1,83],U=[1,80],ee=[1,84],te=[1,85],se=[1,86],ie=[1,87],ne=[1,88],re=[1,89],ae=[1,90],le=[1,91],ce=[1,92],pe=[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],V=[63,64],we=[1,101],De=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],k=[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],Y=[1,110],B=[1,106],Q=[1,107],H=[1,108],K=[1,109],W=[1,111],oe=[1,116],he=[1,117],ue=[1,114],ye=[1,115],Se={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(i,m,a,s,_,t,me){var r=t.length-1;switch(_){case 4:this.$=t[r].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[r].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[r-3],t[r-4]);break;case 22:s.addRequirement(t[r-5],t[r-6]),s.setClass([t[r-5]],t[r-3]);break;case 23:s.setNewReqId(t[r-2]);break;case 24:s.setNewReqText(t[r-2]);break;case 25:s.setNewReqRisk(t[r-2]);break;case 26:s.setNewReqVerifyMethod(t[r-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[r-3]);break;case 43:s.addElement(t[r-5]),s.setClass([t[r-5]],t[r-3]);break;case 44:s.setNewElementType(t[r-2]);break;case 45:s.setNewElementDocRef(t[r-2]);break;case 48:s.addRelationship(t[r-2],t[r],t[r-4]);break;case 49:s.addRelationship(t[r-2],t[r-4],t[r]);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[r-2],s.defineClass(t[r-1],t[r]);break;case 58:s.setClass(t[r-1],t[r]);break;case 59:s.setClass([t[r-2]],t[r]);break;case 60:case 62:case 65:this.$=[t[r]];break;case 61:case 63:this.$=t[r-2].concat([t[r]]);break;case 64:this.$=t[r-2],s.setCssStyle(t[r-1],t[r]);break;case 66:t[r-2].push(t[r]),this.$=t[r-2];break;case 68:this.$=t[r-1]+t[r]}},"anonymous"),table:[{3:1,4:2,6:n,9:h,11:c,13:y},{1:[3]},{3:8,4:2,5:[1,7],6:n,9:h,11:c,13:y},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(l,[2,6]),{3:12,4:2,6:n,9:h,11:c,13:y},{1:[2,2]},{4:17,5:p,7:13,8:R,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:E,23:I,24:b,25:23,33:25,41:C,42:A,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:f,90:S},e(l,[2,4]),e(l,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:p,7:42,8:R,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:E,23:I,24:b,25:23,33:25,41:C,42:A,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:f,90:S},{4:17,5:p,7:43,8:R,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:E,23:I,24:b,25:23,33:25,41:C,42:A,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:f,90:S},{4:17,5:p,7:44,8:R,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:E,23:I,24:b,25:23,33:25,41:C,42:A,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:f,90:S},{4:17,5:p,7:45,8:R,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:E,23:I,24:b,25:23,33:25,41:C,42:A,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:f,90:S},{4:17,5:p,7:46,8:R,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:E,23:I,24:b,25:23,33:25,41:C,42:A,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:f,90:S},{4:17,5:p,7:47,8:R,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:E,23:I,24:b,25:23,33:25,41:C,42:A,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:f,90:S},{4:17,5:p,7:48,8:R,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:E,23:I,24:b,25:23,33:25,41:C,42:A,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:f,90:S},{4:17,5:p,7:49,8:R,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:E,23:I,24:b,25:23,33:25,41:C,42:A,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:f,90:S},{4:17,5:p,7:50,8:R,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:E,23:I,24:b,25:23,33:25,41:C,42:A,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:f,90:S},{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:f,90:S},{30:63,33:62,75:P,89:f,90:S},{30:64,33:62,75:P,89:f,90:S},e(z,[2,29]),e(z,[2,30]),e(z,[2,31]),e(z,[2,32]),e(z,[2,33]),e(z,[2,34]),e(Ne,[2,81]),e(Ne,[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(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:qe,66:Ce,67:Ae,68:ve,69:Le,70:Oe,71:xe},{62:77,65:qe,66:Ce,67:Ae,68:ve,69:Le,70:Oe,71:xe},{30:78,33:62,75:P,89:f,90:S},{73:79,75:Z,76:U,78:81,79:82,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:Z,76:U,78:81,79:82,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce},{30:94,33:62,75:P,76:U,89:f,90:S},{5:[1,95]},{30:96,33:62,75:P,89:f,90:S},{5:[1,97]},{30:98,33:62,75:P,89:f,90:S},{63:[1,99]},e(V,[2,50]),e(V,[2,51]),e(V,[2,52]),e(V,[2,53]),e(V,[2,54]),e(V,[2,55]),e(V,[2,56]),{64:[1,100]},e(d,[2,59],{76:U}),e(d,[2,64],{76:we}),{33:103,75:[1,102],89:f,90:S},e(De,[2,65],{79:104,75:Z,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce}),e(k,[2,67]),e(k,[2,69]),e(k,[2,70]),e(k,[2,71]),e(k,[2,72]),e(k,[2,73]),e(k,[2,74]),e(k,[2,75]),e(k,[2,76]),e(k,[2,77]),e(k,[2,78]),e(d,[2,57],{76:we}),e(d,[2,58],{76:U}),{5:Y,28:105,31:B,34:Q,36:H,38:K,40:W},{27:[1,112],76:U},{5:oe,40:he,56:113,57:ue,59:ye},{27:[1,118],76:U},{33:119,89:f,90:S},{33:120,89:f,90:S},{75:Z,78:121,79:82,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce},e(pe,[2,61]),e(pe,[2,63]),e(k,[2,68]),e(d,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:Y,28:126,31:B,34:Q,36:H,38:K,40:W},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:ye},e(d,[2,47]),{5:[1,131]},e(d,[2,48]),e(d,[2,49]),e(De,[2,66],{79:104,75:Z,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce}),{33:132,89:f,90:S},{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:Y,28:145,31:B,34:Q,36:H,38:K,40:W},{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:ye},{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:Y,28:159,31:B,34:Q,36:H,38:K,40:W},{5:Y,28:160,31:B,34:Q,36:H,38:K,40:W},{5:Y,28:161,31:B,34:Q,36:H,38:K,40:W},{5:Y,28:162,31:B,34:Q,36:H,38:K,40:W},{5:oe,40:he,56:163,57:ue,59:ye},{5:oe,40:he,56:164,57:ue,59:ye},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(i,m){if(!m.recoverable){var a=new Error(i);throw a.hash=m,a}this.trace(i)},"parseError"),parse:u(function(i){var m=this,a=[0],s=[],_=[null],t=[],me=this.table,r="",de=0,Me=0,Be=t.slice.call(arguments,1),g=Object.create(this.lexer),j={yy:{}};for(var ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ge)&&(j.yy[ge]=this.yy[ge]);g.setInput(i,j.yy),j.yy.lexer=g,j.yy.parser=this,g.yylloc===void 0&&(g.yylloc={});var Ie=g.yylloc;t.push(Ie);var Qe=g.options&&g.options.ranges;function $e(){var q;return typeof(q=s.pop()||g.lex()||1)!="number"&&(q instanceof Array&&(q=(s=q).pop()),q=m.symbols_[q]||q),q}typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,u(function(q){a.length=a.length-2*q,_.length=_.length-q,t.length=t.length-q},"popStack"),u($e,"lex");for(var T,G,N,Fe,_e,F,Pe,fe,X={};;){if(G=a[a.length-1],this.defaultActions[G]?N=this.defaultActions[G]:(T==null&&(T=$e()),N=me[G]&&me[G][T]),N===void 0||!N.length||!N[0]){var Ue="";for(_e in fe=[],me[G])this.terminals_[_e]&&_e>2&&fe.push("'"+this.terminals_[_e]+"'");Ue=g.showPosition?"Parse error on line "+(de+1)+`:
2
2
  `+g.showPosition()+`
3
3
  Expecting `+fe.join(", ")+", got '"+(this.terminals_[T]||T)+"'":"Parse error on line "+(de+1)+": Unexpected "+(T==1?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(Ue,{text:g.match,token:this.terminals_[T]||T,line:g.yylineno,loc:Ie,expected:fe})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+T);switch(N[0]){case 1:a.push(T),_.push(g.yytext),t.push(g.yylloc),a.push(N[1]),T=null,Me=g.yyleng,r=g.yytext,de=g.yylineno,Ie=g.yylloc;break;case 2:if(F=this.productions_[N[1]][1],X.$=_[_.length-F],X._$={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},Qe&&(X._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),(Fe=this.performAction.apply(X,[r,Me,de,j.yy,N[1],_,t].concat(Be)))!==void 0)return Fe;F&&(a=a.slice(0,-1*F*2),_=_.slice(0,-1*F),t=t.slice(0,-1*F)),a.push(this.productions_[N[1]][0]),_.push(X.$),t.push(X._$),Pe=me[a[a.length-2]][a[a.length-1]],a.push(Pe);break;case 3:return!0}}return!0},"parse")},Ye=function(){return{EOF:1,parseError:u(function(i,m){if(!this.yy.parser)throw new Error(i);this.yy.parser.parseError(i,m)},"parseError"),setInput:u(function(i,m){return this.yy=m||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var i=this._input[0];return this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i,i.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:u(function(i){var m=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;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),a.length-1&&(this.yylineno-=a.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===s.length?this.yylloc.first_column:0)+s[s.length-a.length].length-a[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:u(function(i){this.unput(this.match.slice(i))},"less"),pastInput:u(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var i=this.pastInput(),m=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
5
5
  `+m+"^"},"showPosition"),test_match:u(function(i,m){var a,s,_;if(this.options.backtrack_lexer&&(_={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(_.yylloc.range=this.yylloc.range.slice(0))),(s=i[0].match(/(?:\r\n?|\n).*/g))&&(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+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],a=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var t in _)this[t]=_[t];return!1}return!1},"test_match"),next:u(function(){if(this.done)return this.EOF;var i,m,a,s;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),t=0;t<_.length;t++)if((a=this._input.match(this.rules[_[t]]))&&(!m||a[0].length>m[0].length)){if(m=a,s=t,this.options.backtrack_lexer){if((i=this.test_match(a,_[t]))!==!1)return i;if(this._backtrack){m=!1;continue}return!1}if(!this.options.flex)break}return m?(i=this.test_match(m,_[s]))!==!1&&i: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 i=this.next();return i||this.lex()},"lex"),begin:u(function(i){this.conditionStack.push(i)},"begin"),popState:u(function(){return this.conditionStack.length-1>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(i){return(i=this.conditionStack.length-1-Math.abs(i||0))>=0?this.conditionStack[i]:"INITIAL"},"topState"),pushState:u(function(i){this.begin(i)},"pushState"),stateStackSize:u(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:u(function(i,m,a,s){switch(a){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 58:case 65: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:case 14:case 15:case 56: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;case 50:case 68:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 57:case 64:this.begin("string");break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 66:return"qString";case 67:return m.yytext=m.yytext.trim(),89;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}}}}();function Re(){this.yy={}}return Se.lexer=Ye,u(Re,"Parser"),Re.prototype=Se,Se.Parser=Re,new Re}();ke.parser=ke;var nt=ke,rt=(J=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(()=>Te().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)}getDirection(){return this.direction}setDirection(n){this.direction=n}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(n,h){return this.requirements.has(n)||this.requirements.set(n,{name:n,type:h,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(n)}getRequirements(){return this.requirements}setNewReqId(n){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=n)}setNewReqText(n){this.latestRequirement!==void 0&&(this.latestRequirement.text=n)}setNewReqRisk(n){this.latestRequirement!==void 0&&(this.latestRequirement.risk=n)}setNewReqVerifyMethod(n){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=n)}addElement(n){return this.elements.has(n)||(this.elements.set(n,{name:n,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),be.info("Added new element: ",n)),this.resetLatestElement(),this.elements.get(n)}getElements(){return this.elements}setNewElementType(n){this.latestElement!==void 0&&(this.latestElement.type=n)}setNewElementDocRef(n){this.latestElement!==void 0&&(this.latestElement.docRef=n)}addRelationship(n,h,c){this.relations.push({type:n,src:h,dst:c})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,Ze()}setCssStyle(n,h){for(const c of n){const y=this.requirements.get(c)??this.elements.get(c);if(!h||!y)return;for(const l of h)l.includes(",")?y.cssStyles.push(...l.split(",")):y.cssStyles.push(l)}}setClass(n,h){var c;for(const y of n){const l=this.requirements.get(y)??this.elements.get(y);if(l)for(const E of h){l.classes.push(E);const R=(c=this.classes.get(E))==null?void 0:c.styles;R&&l.cssStyles.push(...R)}}}defineClass(n,h){for(const c of n){let y=this.classes.get(c);y===void 0&&(y={id:c,styles:[],textStyles:[]},this.classes.set(c,y)),h&&h.forEach(function(l){if(/color/.exec(l)){const E=l.replace("fill","bgFill");y.textStyles.push(E)}y.styles.push(l)}),this.requirements.forEach(l=>{l.classes.includes(c)&&l.cssStyles.push(...h.flatMap(E=>E.split(",")))}),this.elements.forEach(l=>{l.classes.includes(c)&&l.cssStyles.push(...h.flatMap(E=>E.split(",")))})}}getClasses(){return this.classes}getData(){var y,l,E,R;const n=Te(),h=[],c=[];for(const o of this.requirements.values()){const p=o;p.id=o.name,p.cssStyles=o.cssStyles,p.cssClasses=o.classes.join(" "),p.shape="requirementBox",p.look=n.look,h.push(p)}for(const o of this.elements.values()){const p=o;p.shape="requirementBox",p.look=n.look,p.id=o.name,p.cssStyles=o.cssStyles,p.cssClasses=o.classes.join(" "),h.push(p)}for(const o of this.relations){let p=0;const I=o.type===this.Relationships.CONTAINS,b={id:`${o.src}-${o.dst}-${p}`,start:((y=this.requirements.get(o.src))==null?void 0:y.name)??((l=this.elements.get(o.src))==null?void 0:l.name),end:((E=this.requirements.get(o.dst))==null?void 0:E.name)??((R=this.elements.get(o.dst))==null?void 0:R.name),label:`&lt;&lt;${o.type}&gt;&gt;`,classes:"relationshipLine",style:["fill:none",I?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:I?"normal":"dashed",arrowTypeStart:I?"requirement_contains":"",arrowTypeEnd:I?"":"requirement_arrow",look:n.look};c.push(b),p++}return{nodes:h,edges:c,other:{},config:n,direction:this.getDirection()}}},u(J,"RequirementDB"),J),at=u(e=>`
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:u(function(){var i=this.next();return i||this.lex()},"lex"),begin:u(function(i){this.conditionStack.push(i)},"begin"),popState:u(function(){return this.conditionStack.length-1>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(i){return(i=this.conditionStack.length-1-Math.abs(i||0))>=0?this.conditionStack[i]:"INITIAL"},"topState"),pushState:u(function(i){this.begin(i)},"pushState"),stateStackSize:u(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:u(function(i,m,a,s){switch(a){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 58:case 65: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:case 14:case 15:case 56: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;case 50:case 68:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 57:case 64:this.begin("string");break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 66:return"qString";case 67:return m.yytext=m.yytext.trim(),89;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}}}}();function Re(){this.yy={}}return Se.lexer=Ye,u(Re,"Parser"),Re.prototype=Se,Se.Parser=Re,new Re}();ke.parser=ke;var nt=ke,rt=(J=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(()=>Te().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)}getDirection(){return this.direction}setDirection(n){this.direction=n}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(n,h){return this.requirements.has(n)||this.requirements.set(n,{name:n,type:h,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(n)}getRequirements(){return this.requirements}setNewReqId(n){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=n)}setNewReqText(n){this.latestRequirement!==void 0&&(this.latestRequirement.text=n)}setNewReqRisk(n){this.latestRequirement!==void 0&&(this.latestRequirement.risk=n)}setNewReqVerifyMethod(n){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=n)}addElement(n){return this.elements.has(n)||(this.elements.set(n,{name:n,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),be.info("Added new element: ",n)),this.resetLatestElement(),this.elements.get(n)}getElements(){return this.elements}setNewElementType(n){this.latestElement!==void 0&&(this.latestElement.type=n)}setNewElementDocRef(n){this.latestElement!==void 0&&(this.latestElement.docRef=n)}addRelationship(n,h,c){this.relations.push({type:n,src:h,dst:c})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,Ze()}setCssStyle(n,h){for(const c of n){const y=this.requirements.get(c)??this.elements.get(c);if(!h||!y)return;for(const l of h)l.includes(",")?y.cssStyles.push(...l.split(",")):y.cssStyles.push(l)}}setClass(n,h){var c;for(const y of n){const l=this.requirements.get(y)??this.elements.get(y);if(l)for(const p of h){l.classes.push(p);const R=(c=this.classes.get(p))==null?void 0:c.styles;R&&l.cssStyles.push(...R)}}}defineClass(n,h){for(const c of n){let y=this.classes.get(c);y===void 0&&(y={id:c,styles:[],textStyles:[]},this.classes.set(c,y)),h&&h.forEach(function(l){if(/color/.exec(l)){const p=l.replace("fill","bgFill");y.textStyles.push(p)}y.styles.push(l)}),this.requirements.forEach(l=>{l.classes.includes(c)&&l.cssStyles.push(...h.flatMap(p=>p.split(",")))}),this.elements.forEach(l=>{l.classes.includes(c)&&l.cssStyles.push(...h.flatMap(p=>p.split(",")))})}}getClasses(){return this.classes}getData(){var y,l,p,R;const n=Te(),h=[],c=[];for(const o of this.requirements.values()){const E=o;E.id=o.name,E.cssStyles=o.cssStyles,E.cssClasses=o.classes.join(" "),E.shape="requirementBox",E.look=n.look,h.push(E)}for(const o of this.elements.values()){const E=o;E.shape="requirementBox",E.look=n.look,E.id=o.name,E.cssStyles=o.cssStyles,E.cssClasses=o.classes.join(" "),h.push(E)}for(const o of this.relations){let E=0;const I=o.type===this.Relationships.CONTAINS,b={id:`${o.src}-${o.dst}-${E}`,start:((y=this.requirements.get(o.src))==null?void 0:y.name)??((l=this.elements.get(o.src))==null?void 0:l.name),end:((p=this.requirements.get(o.dst))==null?void 0:p.name)??((R=this.elements.get(o.dst))==null?void 0:R.name),label:`&lt;&lt;${o.type}&gt;&gt;`,classes:"relationshipLine",style:["fill:none",I?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:I?"normal":"dashed",arrowTypeStart:I?"requirement_contains":"",arrowTypeEnd:I?"":"requirement_arrow",look:n.look};c.push(b),E++}return{nodes:h,edges:c,other:{},config:n,direction:this.getDirection()}}},u(J,"RequirementDB"),J),at=u(e=>`
7
7
 
8
8
  marker {
9
9
  fill: ${e.relationColor};
@@ -61,4 +61,4 @@ Expecting `+fe.join(", ")+", got '"+(this.terminals_[T]||T)+"'":"Parse error on
61
61
  background-color: ${e.edgeLabelBackground};
62
62
  }
63
63
 
64
- `,"getStyles"),Ve={};et(Ve,{draw:()=>lt});var lt=u(async function(e,n,h,c){be.info("REF0:"),be.info("Drawing requirement diagram (unified)",n);const{securityLevel:y,state:l,layout:E}=Te(),R=c.db.getData(),o=He(n,y);R.type=c.type,R.layoutAlgorithm=tt(E),R.nodeSpacing=(l==null?void 0:l.nodeSpacing)??50,R.rankSpacing=(l==null?void 0:l.rankSpacing)??50,R.markers=["requirement_contains","requirement_arrow"],R.diagramId=n,await st(R,o),it.insertTitle(o,"requirementDiagramTitleText",(l==null?void 0:l.titleTopMargin)??25,c.db.getDiagramTitle()),Ke(o,8,"requirementDiagram",(l==null?void 0:l.useMaxWidth)??!0)},"draw"),ct={parser:nt,get db(){return new rt},renderer:Ve,styles:at};export{ct as diagram};
64
+ `,"getStyles"),Ve={};et(Ve,{draw:()=>lt});var lt=u(async function(e,n,h,c){be.info("REF0:"),be.info("Drawing requirement diagram (unified)",n);const{securityLevel:y,state:l,layout:p}=Te(),R=c.db.getData(),o=He(n,y);R.type=c.type,R.layoutAlgorithm=tt(p),R.nodeSpacing=(l==null?void 0:l.nodeSpacing)??50,R.rankSpacing=(l==null?void 0:l.rankSpacing)??50,R.markers=["requirement_contains","requirement_arrow"],R.diagramId=n,await st(R,o),it.insertTitle(o,"requirementDiagramTitleText",(l==null?void 0:l.titleTopMargin)??25,c.db.getDiagramTitle()),Ke(o,8,"requirementDiagram",(l==null?void 0:l.useMaxWidth)??!0)},"draw"),ct={parser:nt,get db(){return new rt},renderer:Ve,styles:at};export{ct as diagram};
@@ -0,0 +1 @@
1
+ import{c as I,a9 as U,Q as q,Z as J,aa as K,ab as _,ac as $,j as c,ad as AA,ae as cA,af as dA,ag as T,ah as G,ai as HA,aj as zA,ak as xA,al as eA,W as D,am as fA,an as YA,ao as jA,ap as tA,aq as MA,ar as rA,as as oA,at as NA,au as aA,av as iA,aw as sA,ax as mA,ay as nA}from"./index-DDVWq6NK.js";import{a as lA,i as hA,R as L,C as pA,A as PA,b as vA,c as ZA,P as bA}from"./storage-BeNhlsrY.js";import"./index-CmVTfWOx.js";import"./index-Bz3Lb65G.js";import"./index-FYYNNs_X.js";import"./index-C9EPiaCd.js";import"./index-N67HDT2u.js";import"./index-Cs9jrmWP.js";import"./index-Cig6xGYH.js";import"./index-DZWCSqpf.js";import"./index-DP4HiwTU.js";import"./index-Czo055fo.js";import"./index-C9EbJL5c.js";import"./index-BuqjbKw0.js";import"./index-CxQo8Qlm.js";import"./apl-CXdQSnD-.js";import"./asciiarmor-D5V0T9Cu.js";import"./asterisk-B46aRdXb.js";import"./brainfuck-CtZaYBKt.js";import"./clike-BgBwzOhw.js";import"./cmake-DXn5xaP-.js";import"./cobol-stawOqaz.js";import"./coffeescript-BTDxI-eT.js";import"./commonlisp-vq6DHwts.js";import"./crystal-CRzZ78HM.js";import"./cypher-gJDei3ni.js";import"./d-BShv7fp-.js";import"./diff-UJJ5BM9S.js";import"./dockerfile-knGOOxt4.js";import"./simple-mode-C3vEBAcb.js";import"./dtd-DI9Herc-.js";import"./dylan-DkEP81N9.js";import"./ebnf-B-Df8AvO.js";import"./ecl-DPFc0Uaf.js";import"./eiffel-DR5c0IrL.js";import"./elm-DompmV0j.js";import"./erlang-BuqgqA5h.js";import"./factor-CFXhaUWb.js";import"./fcl-CVaBTCzQ.js";import"./forth-POgR1ypr.js";import"./fortran-DL7KluxX.js";import"./gas-bV0CklSb.js";import"./gherkin-B6X1vGSW.js";import"./groovy-DnIzCrpZ.js";import"./haskell-CLQs6EAM.js";import"./haxe-D25e-2l-.js";import"./http-BKJkqRj4.js";import"./idl-pcmmZuaN.js";import"./jinja2-DhgKlfW7.js";import"./julia-DjdwvFuI.js";import"./livescript-HO6ttBFx.js";import"./lua-8DXOpKDz.js";import"./mathematica-IIbmv7SK.js";import"./mbox-z_N2Mo3d.js";import"./mirc-DkvFAiy5.js";import"./modelica-DSrSSXCg.js";import"./mscgen-B2igx18G.js";import"./mumps-zvxmGV4l.js";import"./nginx-B4hAVlXN.js";import"./nsis-BvKfQ9lQ.js";import"./ntriples-BSwWqoLa.js";import"./octave-C4hdQ5Hf.js";import"./oz-qQq7irPq.js";import"./pascal-CafrKXZF.js";import"./perl-tdMlh9QA.js";import"./pig-CwGJVRC4.js";import"./powershell-D1ly3AHC.js";import"./properties-_nPj978X.js";import"./protobuf-B4y9do6W.js";import"./puppet-Bc-yJKzi.js";import"./q-B0kTJ4cI.js";import"./r-BA4EbLKE.js";import"./ruby-CR-u2WLS.js";import"./sas-Bqaci40L.js";import"./scheme-qjP0V5Ag.js";import"./shell-BLav31RL.js";import"./sieve-r025o_jW.js";import"./smalltalk-C7J3IyEP.js";import"./solr-78MBEUkU.js";import"./sparql-BRLJFz69.js";import"./spreadsheet-CGlWr0eM.js";import"./stylus-Bdo_Aemu.js";import"./swift-B_XXVlXX.js";import"./tcl-B2fODqDH.js";import"./textile-BuVhTOzU.js";import"./tiddlywiki-BgR6AEZu.js";import"./tiki-CI-ztowC.js";import"./toml-wcPdHu67.js";import"./troff-Ce85hlLp.js";import"./ttcn-BxnYHtq8.js";import"./turtle-BkSuIpt-.js";import"./vb-BHgjm0DN.js";import"./vbscript-Dawdd5GZ.js";import"./velocity-BdD_26Jv.js";import"./verilog-B4LBqg_1.js";import"./vhdl-CWWH2SUo.js";import"./webidl-CGwyPRYs.js";import"./xquery-CVDBqZPY.js";import"./yacas-I8QjZlxf.js";import"./z80-D8p3gKXp.js";const BA=x=>{const A=I.c(19),{appConfig:H}=x,{setCells:d}=U();let t,o,e;A[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],A[0]=t):t=A[0],q.useEffect(gA,t),A[1]===Symbol.for("react.memo_cache_sentinel")?(o=$(),A[1]=o):o=A[1],A[2]!==d?(e={autoInstantiate:!0,setCells:d,sessionId:o},A[2]=d,A[3]=e):e=A[3];const{connection:z}=lA(e),f=J(K);let N;A[4]!==z.state?(N=hA(z.state),A[4]=z.state,A[5]=N):N=A[5];const i=N;let a;A[6]!==H||A[7]!==i?(a=()=>i?c.jsxs(AA,{milliseconds:2e3,fallback:null,children:[c.jsx(cA,{className:"mx-auto"}),c.jsx("p",{className:"text-center text-sm text-muted-foreground mt-2",children:"Connecting..."})]}):c.jsx(pA,{appConfig:H,mode:"read"}),A[6]=H,A[7]=i,A[8]=a):a=A[8];const r=a,s=H.width;let Y,j,M;return A[9]!==z?(Y=c.jsx(PA,{connection:z,className:"sm:pt-8"}),A[9]=z,A[10]=Y):Y=A[10],A[11]!==r?(j=r(),A[11]=r,A[12]=j):j=A[12],A[13]!==H.width||A[14]!==z||A[15]!==f||A[16]!==Y||A[17]!==j?(M=c.jsxs(vA,{connection:z,isRunning:f,width:s,children:[Y,j]}),A[13]=H.width,A[14]=z,A[15]=f,A[16]=Y,A[17]=j,A[18]=M):M=A[18],M};function XA(){L.INSTANCE.stop()}function gA(){return L.INSTANCE.start(_),XA}const kA=()=>{const x=I.c(3),A=J(dA);if(!T()||!A)return null;let H,d;return x[0]===Symbol.for("react.memo_cache_sentinel")?(H=c.jsxs("span",{children:["Static"," ",c.jsx("a",{href:G.githubPage,target:"_blank",className:"text-[var(--sky-11)] font-medium underline",children:"marimo"})," ","notebook - Run or edit for full interactivity"]}),x[0]=H):H=x[0],x[1]!==A?(d=c.jsxs("div",{className:"px-4 py-2 bg-[var(--sky-2)] border-b border-[var(--sky-7)] text-[var(--sky-11)] flex justify-between items-center gap-4 no-print text-sm","data-testid":"static-notebook-banner",children:[H,c.jsx("span",{className:"flex-shrink-0",children:c.jsx(FA,{code:A})})]}),x[1]=A,x[2]=d):d=x[2],d},FA=x=>{const A=I.c(78),{code:H}=x;let d;d=HA()||"notebook.py";const t=d.lastIndexOf("/");t!==-1&&(d=d.slice(t+1));const o=window.location.href;let e,z,f,N,i,a,r,s,Y,j,M,n,l,h,p,P,m,v,Z,b,B,w,X,g,k,F,S,y,u,W,Q,R,C,O;if(A[0]!==H||A[1]!==d){const V=zA({code:H});let E;N=xA,A[21]===Symbol.for("react.memo_cache_sentinel")?(M=c.jsx(eA,{asChild:!0,children:c.jsx(D,{"data-testid":"static-notebook-dialog-trigger",variant:"outline",size:"xs",children:"Run or Edit"})}),A[21]=M):M=A[21],f=fA,z=YA,A[22]!==d?(j=c.jsx(jA,{children:d}),A[22]=d,A[23]=j):j=A[23],e=tA,a="pt-3 text-left space-y-3",A[24]===Symbol.for("react.memo_cache_sentinel")?(r=c.jsxs("p",{children:["This is a static"," ",c.jsx("a",{href:G.githubPage,target:"_blank",className:"text-[var(--sky-11)] hover:underline font-medium",children:"marimo"})," ","notebook. To run interactively:"]}),A[24]=r):r=A[24],A[25]===Symbol.for("react.memo_cache_sentinel")?(E=c.jsx("br",{}),A[25]=E):E=A[25],A[26]!==d?(s=c.jsx("div",{className:"rounded-lg p-3 border bg-[var(--sky-2)] border-[var(--sky-7)]",children:c.jsxs("div",{className:"font-mono text-[var(--sky-11)] leading-relaxed",children:["pip install marimo",E,"marimo edit ",d]})}),A[26]=d,A[27]=s):s=A[27],A[28]===Symbol.for("react.memo_cache_sentinel")?(Y=!o.endsWith(".html")&&c.jsxs("div",{className:"rounded-lg p-3 border bg-[var(--sky-2)] border-[var(--sky-7)]",children:[c.jsx("div",{className:"text-sm text-[var(--sky-12)] mb-1",children:"Or run directly from URL:"}),c.jsxs("div",{className:"font-mono text-[var(--sky-11)] break-all",children:["marimo edit ",window.location.href]})]}),A[28]=Y):Y=A[28],Z="pt-3 border-t border-[var(--sky-7)]",P="text-sm text-[var(--sky-12)] mb-2",A[29]===Symbol.for("react.memo_cache_sentinel")?(m=c.jsx("strong",{children:"Try in browser with WebAssembly:"}),A[29]=m):m=A[29],v=" ",i=V,n="_blank",l="text-[var(--sky-11)] hover:underline break-all",h="noreferrer",p=V.slice(0,50),A[0]=H,A[1]=d,A[2]=e,A[3]=z,A[4]=f,A[5]=N,A[6]=i,A[7]=a,A[8]=r,A[9]=s,A[10]=Y,A[11]=j,A[12]=M,A[13]=n,A[14]=l,A[15]=h,A[16]=p,A[17]=P,A[18]=m,A[19]=v,A[20]=Z}else e=A[2],z=A[3],f=A[4],N=A[5],i=A[6],a=A[7],r=A[8],s=A[9],Y=A[10],j=A[11],M=A[12],n=A[13],l=A[14],h=A[15],p=A[16],P=A[17],m=A[18],v=A[19],Z=A[20];return A[30]!==i||A[31]!==n||A[32]!==l||A[33]!==h||A[34]!==p?(b=c.jsxs("a",{href:i,target:n,className:l,rel:h,children:[p,"..."]}),A[30]=i,A[31]=n,A[32]=l,A[33]=h,A[34]=p,A[35]=b):b=A[35],A[36]!==b||A[37]!==P||A[38]!==m||A[39]!==v?(B=c.jsxs("p",{className:P,children:[m,v,b]}),A[36]=b,A[37]=P,A[38]=m,A[39]=v,A[40]=B):B=A[40],A[41]===Symbol.for("react.memo_cache_sentinel")?(w=c.jsx("p",{className:"text-sm text-[var(--sky-12)]",children:"Note: WebAssembly may not work for all notebooks. Additionally, some dependencies may not be available in the browser."}),A[41]=w):w=A[41],A[42]!==B||A[43]!==Z?(X=c.jsxs("div",{className:Z,children:[B,w]}),A[42]=B,A[43]=Z,A[44]=X):X=A[44],A[45]!==e||A[46]!==a||A[47]!==r||A[48]!==s||A[49]!==Y||A[50]!==X?(g=c.jsxs(e,{className:a,children:[r,s,Y,X]}),A[45]=e,A[46]=a,A[47]=r,A[48]=s,A[49]=Y,A[50]=X,A[51]=g):g=A[51],A[52]!==z||A[53]!==j||A[54]!==g?(k=c.jsxs(z,{children:[j,g]}),A[52]=z,A[53]=j,A[54]=g,A[55]=k):k=A[55],A[56]!==H?(F=async()=>{await MA(H),rA({title:"Copied to clipboard"})},A[56]=H,A[57]=F):F=A[57],A[58]===Symbol.for("react.memo_cache_sentinel")?(S=c.jsx(oA,{className:"w-3 h-3 mr-2"}),A[58]=S):S=A[58],A[59]!==F?(y=c.jsxs(D,{"data-testid":"copy-static-notebook-dialog-button",variant:"outline",size:"sm",onClick:F,children:[S,"Copy code"]}),A[59]=F,A[60]=y):y=A[60],A[61]!==H||A[62]!==d?(u=()=>{NA(new Blob([H],{type:"text/plain"}),d)},A[61]=H,A[62]=d,A[63]=u):u=A[63],A[64]===Symbol.for("react.memo_cache_sentinel")?(W=c.jsx(aA,{className:"w-3 h-3 mr-2"}),A[64]=W):W=A[64],A[65]!==u?(Q=c.jsxs(D,{"data-testid":"download-static-notebook-dialog-button",variant:"outline",size:"sm",onClick:u,children:[W,"Download"]}),A[65]=u,A[66]=Q):Q=A[66],A[67]!==y||A[68]!==Q?(R=c.jsxs("div",{className:"flex gap-3 pt-2",children:[y,Q]}),A[67]=y,A[68]=Q,A[69]=R):R=A[69],A[70]!==f||A[71]!==k||A[72]!==R?(C=c.jsxs(f,{children:[k,R]}),A[70]=f,A[71]=k,A[72]=R,A[73]=C):C=A[73],A[74]!==N||A[75]!==M||A[76]!==C?(O=c.jsxs(N,{children:[M,C]}),A[74]=N,A[75]=M,A[76]=C,A[77]=O):O=A[77],O},yA=iA()||T(),uA=x=>{const A=I.c(10);let H,d,t,o,e,z,f;return A[0]===Symbol.for("react.memo_cache_sentinel")?(H=ZA(),A[0]=H):H=A[0],A[1]===Symbol.for("react.memo_cache_sentinel")?(d=c.jsx(kA,{}),A[1]=d):d=A[1],A[2]!==x.appConfig?(t=c.jsx(BA,{appConfig:x.appConfig}),A[2]=x.appConfig,A[3]=t):t=A[3],A[4]===Symbol.for("react.memo_cache_sentinel")?(o=yA&&c.jsx(QA,{}),A[4]=o):o=A[4],A[5]!==t?(e=c.jsxs(sA,{children:[d,t,o]}),A[5]=t,A[6]=e):e=A[6],A[7]===Symbol.for("react.memo_cache_sentinel")?(z=c.jsx(mA,{}),A[7]=z):z=A[7],A[8]!==e?(f=c.jsx(bA,{children:c.jsxs(nA,{direction:"horizontal",autoSaveId:"marimo:chrome:v1:run1",storage:H,children:[e,z]})}),A[8]=e,A[9]=f):f=A[9],f},QA=()=>{const x=I.c(1);let A;return x[0]===Symbol.for("react.memo_cache_sentinel")?(A=c.jsx("div",{className:"fixed bottom-0 right-0 z-50","data-testid":"watermark",children:c.jsxs("a",{href:G.githubPage,target:"_blank",className:"text-sm text-[var(--grass-11)] font-bold tracking-wide transition-colors bg-[var(--grass-4)] hover:bg-[var(--grass-5)] border-t border-l border-[var(--grass-8)] px-3 py-1 rounded-tl-md flex items-center gap-2",children:[c.jsx("span",{children:"made with marimo"}),c.jsx("img",{src:"data:image/x-icon;base64,AAABAAMAEBAAAAEAIABoBAAANgAAACAgAAABACAAKBEAAJ4EAAAwMAAAAQAgAGgmAADGFQAAKAAAABAAAAAgAAAAAQAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABkcB8pY3MdjmN0HsZjdB7YZHQezWNzHa9ichx/YXAfMgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFVVAANkcx2FZHQd+2V1IP9qeSf/Y3Md/2NzHf9jcx3vY3Md/GNzHf9jcx22aHEcGwAAAAAAAAAAAAAAAP//AAFjdB6iY3Md/2NzHf9vfi//ipZV/6Ksef+wuIz/tb2U/6myg/90gjX/Y3Md/2NzHeJoeCAgAAAAAAAAAABjcx5vY3Md/2NzHf9/jEb/6+3i////////////////////////////+vv4/6+3i/9kdB7/ZHQdyoCAQARjcRwSY3Me8XKAMv9zgTT/7e/l////////////////////////////////////////////s7uR/2NzHf9idh9bZHUda2NzHf9/jEb/sbmP//r7+P/M0rb/3uLQ/+ns4P/M0rb/7/Ho/9ndyf/N0rf///////n59v9peSb/Y3Qdt2R0Ha5jcx3/Z3cj/+7w5//w8en/YXMc/5mkbf+8w5//YXMc/83TuP+JllX/YnQd////////////g49L/2R0HulkdB7NY3Md/3yJQf//////8PHp/2FzHP+ZpG3/vMOf/2FzHP/N07j/iZZV/2J0Hf///////////4WRTv9kcx32Y3MdzGV0H/+NmVr///////Dx6f9hcxz/gY9K/5mkbP9hcxz/pK59/3aGOv9jdR////////7+/v9vfi7/Y3Qd5WNzHa95hjz/hpJP///////w8en/YXMc/3KCNf9idB3/anso/4COSf9hcxz/iJZU///////c38z/Y3Md/2NzHsZjcx52bHsp/4WST//x8+v//f39/+7w5//09vD/6Ovf//Dx6f/6+/j/4OPS//r7+P//////l6Fo/2NzHf9idB6RZG8hF2NzHvGOmVv/nadx//7//v//////////////////////////////////////1dnD/2R0Hv9jcx3+Y3gfMQAAAABldB5EaHgk842YWv+0u5H/19vG////////////////////////////5eja/3B/MP9jcx3/Y3QdlQAAAAAAAAAAAAAAAWN0HoZldSD/v8aj/+Tn2f/////////////////5+fb/vcSg/299Lv9jcx3/ZHMeq2aZMwUAAAAAAAAAAAAAAAAAAAAAZHMemWNzHf9rein/iZVV/5OeZP+Hk1H/aXkm/2d2Iv9ldR/wZHQecICAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAP//AAFldB5WY3QduWNzHe1jcx38Y3Qd6mNzHbpkdB5uaXgeEQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAACAAAABAAAAAAQAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABtbSQHZHMeRWNzHXxjcx2fY3QdsGNzHbFjdB2nY3MekGJyHXJmdB9LZHYbHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABkbyEXZHMdjGNzHe5jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md32NyHZNkcx4zAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABZXYdaGR0HvBjcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9kdB3eZHQd4WRzHfNjcx3/Y3Md/2NzHf9kcx24YXMeKgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZoAaCmR0Hqtjcx3/Y3Md/2NzHf9jcx3/anko/32KQ/9ldSD/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx34ZHUdawAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGJ2Jw1jdB3EY3Md/2NzHf9jcx3/Y3Md/3SBNf92hDn/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9mdiH/a3op/2x7K/9oeCX/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3QdjQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgEAEZHMdumNzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/3B/MP+fqXX/wsim/9ndyP/q7OH/+Pn1//////////////////7+/v/d4c7/oap3/2h3JP9jcx3/Y3Md/2NzHf9jcx3/ZHQegAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGN0Hohjcx3/Y3Md/2NzHf9jcx3/Y3Md/2Z1If+0vJL/+vv4////////////////////////////////////////////////////////////7e/l/5ahZ/9jcx3/Y3Md/2NzHf9jcx3+ZHIfSgAAAAAAAAAAAAAAAAAAAABmdBw3Y3Md/WNzHf9jcx3/Y3Md/2NzHf9mdSH/ztO4/////////////////////////////////////////////////////////////////////////////////8PJqP9ndiL/Y3Md/2NzHf9jdB3jYIAgEAAAAAAAAAAAAAAAAWRzHcdjcx3/Y3Md/2R0H/93hTr/Y3Md/7i/mP///////////////////////////////////////////////////////////////////////////////////////////8zRtf9kdB7/Y3Md/2NzHf9idB5/AAAAAAAAAABkcx5FY3Md/2NzHf9jcx3/nKZw/2p5J/+Gk1D//v79/////////////////////////////////////////////////////////////////////////////////////////////////52ncv9jcx3/Y3Md/2NzHuhVgCoGAAAAAGN0Hqxjcx3/Y3Md/2l4Jf+fqXT/Y3Md/9zfzP//////////////////////////////////////////////////////////////////////////////////////////////////////5+nc/2NzHf9jcx3/Y3Md/2N0H0tddBcLZHMd9mNzHf9jcx3/h5NS/2x7K/+IlFP////////////s7uT/mqVu/5qlbv+apW7/4uXV//////+ps4T/mqVu/5qlbv/Ax6T//////83Tt/+apW7/mqVu/5umb///////////////////////fIlB/2NzHf9jcx3/ZHMekmRzHkVjcx3/Y3Md/2NzHf9wfzH/Y3Md/8bMrP///////////+Hk1P9hcxz/YXMc/2FzHP/R1r3//////3mIP/9hcxz/YXMc/5yncf//////sbqO/2FzHP9hcxz/YnQe//////////////////////+bpW7/Y3Md/2NzHf9kdB7EY3MedmNzHf9jcx3/Y3Md/2NzHf9mdiL/9vfy////////////4eTU/2FzHP9hcxz/YXMc/9HWvf//////eYg//2FzHP9hcxz/nKdx//////+xuo7/YXMc/2FzHP9idB7//////////////////////6qzhP9jcx3/Y3Md/2R0HeNjcx2VY3Md/2NzHf9jcx3/Y3Md/4aSUP/////////////////h5NT/YXMc/2FzHP9hcxz/0da9//////95iD//YXMc/2FzHP+cp3H//////7G6jv9hcxz/YXMc/2J0Hv//////////////////////rLSH/2NzHf9jcx3/Y3Md72R0HqNjcx3/Y3Md/2NzHf9jcx3/o616/////////////////+Hk1P9hcxz/YXMc/2FzHP/R1r3//////3mIP/9hcxz/YXMc/5yncf//////sbqO/2FzHP9hcxz/YnQe//////////////////////+hq3f/Y3Md/2NzHf9jdB3qZHQdoWNzHf9jcx3/Y3Md/2NzHf+1vJT/////////////////4eTU/2FzHP9hcxz/YXMc/8zStv//////dIM3/2FzHP9hcxz/lqJp//////+rtYf/YXMc/2FzHP9idB7//////////////////////4qWVv9jcx3/Y3Md/2N0HthjcxyQY3Md/2NzHf9peCX/Y3Md/7rBm//////////////////h5NT/YXMc/2FzHP9hcxz/dYQ4/4+bXv9hcxz/YXMc/2FzHP9ldyL/laFo/2t8Kv9hcxz/YXMc/2d4JP/////////////////8/Pr/a3oo/2NzHf9jcx3/Y3Mdv2J0HXJjcx3/Y3Md/3KAM/9jcx3/sbmN/////////////////+Hk1P9hcxz/YXMc/2FzHP9idB7/YXMc/2FzHP9hcxz/YXMc/2d4Jf9hcxz/YXMc/2FzHP9hcxz/hJJO/////////////////9XZwv9jcx3/Y3Md/2NzHf9jcx2gY3QfS2NzHf9jcx3/qrKD/2t6KP+Yomr/////////////////4eTU/2FzHP9hcxz/YXMc/6Svfv9kdiH/YXMc/2FzHP+DkU3/0te+/2Z3I/9hcxz/YXMc/2Z4I//V2sP/////////////////nKZv/2NzHf9jcx3/Y3Md/2JzHXpheSQVZHMd/WNzHf+EkE3/kZxg/3B/MP/8/fv////////////5+fb/3uLQ/97i0P/e4tD/9vfx/+fp3P+9xaH/yM6v//n69///////6+7j/8DHpP/ByKb/7O7j/////////////////+7w5/9ndyP/Y3Md/2NzHf9jcx3/YnUdRgAAAABkdB7EY3Md/2R0Hv+xuY//Y3Md/8vQs///////////////////////////////////////////////////////////////////////////////////////////////////////o6x5/2NzHf9jcx3/Y3Md/2NzHfRmgBoKAAAAAGRzHVljcx3/Y3Md/5ymcP99ikL/eoc+//n69////////////////////////////////////////////////////////////////////////////////////////////+Dj0/9ldSD/Y3Md/2NzHf9jcx3/ZHQdngAAAAAAAAAAgIAAAmNzHcljcx3/ZXQf/7nAmv9ndiL/maRs//3+/f/////////////////////////////////////////////////////////////////////////////////5+fb/fotE/2NzHf9jcx3/Y3Md/2NzHvpidiEnAAAAAAAAAAAAAAAAZXIiJmNzHt5jcx3/dYM3/7i/mP9mdiL/kp1h//P07f///////////////////////////////////////////////////////////////////////v79/5eiaf9jcx3/Y3Md/2NzHf9jcx3/Y3QeiAAAAAAAAAAAAAAAAAAAAAAAAAAAYnYnDWNzHs5jcx3/anoo/6uzhf+ttYf/nadx/3aEOf/q7OH///////////////////////////////////////////////////////z8+/+dp3H/Y3Md/2NzHf9jcx3/Y3Md/2N0HsaAgCoGAAAAAAAAAAAAAAAAAAAAAAAAAABVVQADY3UegWNzHf9jcx3/a3op/+vt4//8/Pr/tb2V//Lz7P/////////////////////////////////////////////////q7OD/iJRS/2NzHv9jcx3/Y3Md/2NzHf9jcx7VYXkkFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgAACY3QemGNzHf9jcx3/anoo/621iP/s7uT////////////////////////////////////////////m6Nr/pa59/2h3JP9odyT/aHck/2NzHf9jcx3/ZHMexWFtJBUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/wABZHMeh2NzHf9jcx3/Y3Md/2R0Hv+Cj0r/pK58/7vCnP/Fy6v/w8mp/7e+l/+fqXT/fIlA/2NzHf9mdiL/bHsq/2h3JP9jcx3/Y3Md/WN0HY1tbSQHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABheSQVY3MdyWNzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Me/2V1IP9jcx3/Y3Md/2N0HsRhdBw3AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgEAEZXMebWN0HeVjcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md+WR0Ha1kdB9CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZpkzBWNzHVBkdB2WY3Qdy2N0Hexkcx76ZHMd+GN0HeVjdB7EZHMdlGJ0HlZgcCAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAADAAAABgAAAAAQAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFddBcLaHEcG2R2HylidR1GZHMeZmN0HnlkdB5/ZHIdfWNzHXFjcxtdZHQgQGRwHyloeCAgZG8hF2qAKgyAgAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABZnUdI2RzHmZjcx2gZHQcz2NzHfNjcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHfdjcx7fY3QdxGRzHqRichx/ZHMeVGZ1HSNVVQADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHZ2FA1kdB6AY3Md22JzHfZjcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx38Y3Md8GNzHd5kcx2mZHIgOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABddBcLZHYeRWRzHtdjcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/mNzHdBjdB7GZHQd7mNzHvpjcx3+Y3Md/2NzHf9jcx3/Y3Md/mNzHa9jdhw2gIAqBgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGZwHxljcx2OY3Me8WNzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx38Y3Qd6mNzHvBjcx38Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3lY3QehmJ2HRoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZHYbHGN0HMZjdB35Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/d4Q6/5eiaf91gzf/ZHQe/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md+2R0HsZndxsvAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//AAFichsvY3Qd1WNzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2l5Jv9/jEb/f4xG/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/ZHQf/2V1If9mdiL/ZnYh/2V1IP9kdB7/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3TYnEdNAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGZzGihjcx3DY3Id/mNzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/29+Lv9peSb/Y3Md/2NzHf9odyT/eIY8/4iUUv+Un2T/n6l0/6ixgf+vt4v/tbyU/7jAmf+6wZv/usGb/7e/l/+osYH/h5NQ/2d2Iv9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/ZHMc12NzHT4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaoAVDGNzHsZjcx39Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9kdB//hZFO/7zDnv/g49P/7O7j//Hz6//19vH/+fr2//z8+//+/v7////////////////////////////7/Pr/8fLq/9jbxv+Qm17/ZnUh/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2RzHdRmcRwtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmgBoKZHQeo2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/ZHQf/4CNRv/O07n//P37///////////////////////////////////////////////////////////////////////////////////////9/fz/z9S6/4CMRv9ndyP/Y3Md/2NzHf9jcx3/Y3Md/2NzHf5kcx6oYHAgEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFVVAANjdR1iY3Me8mNzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9ndiL/nqhz/+zt4/////////////////////////////////////////////////////////////////////////////////////////////////////////////Dy6v+vt4v/bnwt/2NzHf9jcx3/Y3Md/2NzHf9jdB33YnUfawAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAF5xHBtjdB7PY3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2R0H/+eqHL/8/Xu///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////6+/j/0te+/218LP9jcx3/Y3Md/2NzHf9jcx3/Y3Qd7mB3Ii0AAAAAAAAAAAAAAAAAAAAAAAAAAGNzHH5jcx3/Y3Md/2NzHf9jcx3/ZHQe/3B+L/9mdSD/Y3Md/4KPSv/s7uT//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9ndyP9zgTT/Y3Md/2NzHf9jcx3/Y3Md/2R0Ha5mZjMFAAAAAAAAAAAAAAAAZnUdI2N0Hexjcx3/Y3Md/2NzHf9jcx3/i5dX/4yYWP9jcx3/bX0s/9reyv////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////z8+v+7wZz/aXkm/2NzHf9jcx3/Y3Md/2NzHedkciA4AAAAAAAAAAAAAAAAZHMekmNzHf9jcx3/Y3Md/2NzHf9zgjX/ucCZ/2d2Iv9jcx3/t76W//7+/v/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////19vD/g5BL/2NzHf9jcx3/Y3Md/2NzHfxkdB5/VVUAAwAAAABqexodY3Md3mNzHf9jcx3/Y3Md/2R0Hv+dp3L/hZJP/2NzHf+BjUj/7/Dn////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////xsyt/2NzHf9jcx3/Y3Md/2NzHf9kdB69YW0YFQAAAABjdBxaY3Me8mNzHf9jcx3/Y3Md/2t6KP+cpnH/b34u/2Z2Iv+zu5L//P37////////////+Pn1/+nr3//p69//6evf/+nr3//u8Ob//f38///////3+PT/6uzh/+nr3//p69//6evf/+zu4//8/Pv///////v8+v/p7OD/6evf/+nr3//p69//6ezg////////////////////////////9/jz/3B/MP9jcx3/Y3Md/2NzHf9jcx3tYXMeKlWAKgZjcx2OY3Md/mNzHf9jcx3/Y3Md/3B+L/+MmFn/ZHQf/3OCNf/h5NT/////////////////09jB/3SEOP90hDj/dIQ4/3SEOP+RnmL/8fPs///////O1Lr/e4pC/3SEOP90hDj/dIQ4/4aTUf/t7+X//////+jr3v91hTj/dIQ4/3SEOP90hDj/doU6/////////////////////////////////5iiaf9jcx3/Y3Md/2NzHf9jcx3+YnMfW2ZzGhRjcx66Y3Md/2NzHf9jcx3/Y3Md/2l5Jv92hDn/Y3Md/5KdYf/+/v7/////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP+CkEz/8PHp///////HzrD/aXoo/2FzHP9hcxz/YXMc/3WEOP/r7eL//////+Xo2f9idB3/YXMc/2FzHP9hcxz/Y3Uf/////////////////////////////////7nBmv9jcx3/Y3Md/2NzHf9jcx3/Y3Idk2BwICBjcx7fY3Md/2NzHf9jcx3/Y3Md/2R0Hv9ldSD/Y3Md/83Stv//////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP+CkEz/8PHp///////HzrD/aXoo/2FzHP9hcxz/YXMc/3WEOP/r7eL//////+Xo2f9idB3/YXMc/2FzHP9hcxz/Y3Uf/////////////////////////////////9DUu/9jcx3/Y3Md/2NzHf9jcx3/ZHQeu2N0HSxjcx76Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/bHsq//n69///////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP+CkEz/8PHp///////HzrD/aXoo/2FzHP9hcxz/YXMc/3WEOP/r7eL//////+Xo2f9idB3/YXMc/2FzHP9hcxz/Y3Uf/////////////////////////////////9zgzf9jcx3/Y3Md/2NzHf9jcx3/ZHMe12JzH0ljcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/k55j////////////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP+CkEz/8PHp///////HzrD/aXoo/2FzHP9hcxz/YXMc/3WEOP/r7eL//////+Xo2f9idB3/YXMc/2FzHP9hcxz/Y3Uf/////////////////////////////////97hz/9jcx3/Y3Md/2NzHf9jcx3/YnMd5GR1Hl5jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/uL+Y////////////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP+CkEz/8PHp///////HzrD/aXoo/2FzHP9hcxz/YXMc/3WEOP/r7eL//////+Xo2f9idB3/YXMc/2FzHP9hcxz/Y3Uf/////////////////////////////////9baxP9jcx3/Y3Md/2NzHf9jcx3/ZHMd5GVzHWhjcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/1NnB////////////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP+CkEz/8PHp///////HzrD/aXoo/2FzHP9hcxz/YXMc/3WEOP/r7eL//////+Xo2f9idB3/YXMc/2FzHP9hcxz/Y3Uf/////////////////////////////////8bMrP9jcx3/Y3Md/2NzHf9jcx3/Y3Md2WJ0HGVjcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9ldSH/5eja////////////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP+Aj0r/7/Ho///////GzK3/aHkn/2FzHP9hcxz/YXMc/3SEOP/p6+D//////+Ll1f9hcx3/YXMc/2FzHP9hcxz/Y3Uf/////////////////////////////////6y0h/9jcx3/Y3Md/2NzHf9jcx3/ZHMexWRyHVdjcx3/Y3Md/2NzHf9ldB//ZHMe/2NzHf9rein/6Ord////////////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP9tfS3/x82u/+Xo2v+hq3j/Y3Uf/2FzHP9hcxz/YXMc/2t7Kv++xaH/5unb/6u1h/9hcxz/YXMc/2FzHP9hcxz/ZHYg/////////////////////////////////4qVVf9jcx3/Y3Md/2NzHf9jcx3/ZHQcq2RwHEBjcx3/Y3Md/2NzHf9qeSf/ZXUg/2NzHf9seyn/6Ord////////////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP9hcxz/bH0s/3ODNv9neCT/YXMc/2FzHP9hcxz/YXMc/2FzHf9rfCr/c4M2/2Z4JP9hcxz/YXMc/2FzHP9hcxz/bX4u////////////////////////////9vfy/2h3JP9jcx3/Y3Md/2NzHf9jcx3/Y3QdjWRwHyljdB33Y3Md/2NzHf9wfzH/aHck/2NzHf9mdiL/5efZ////////////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP9hcx3/YXMc/2FzHP9hcxz/YXMc/2FzHP9hcxz/YXMc/2R2If9hcxz/YXMc/2FzHP9hcxz/YXMc/2FzHP9hcxz/jZpc////////////////////////////x82v/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Mdamh4ICBjcx7fY3Md/2NzHf9vfi7/oKp2/2R0Hv9jcx3/09i/////////////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP9ygjT/bn8v/2FzHP9hcxz/YXMc/2FzHP9hcxz/Zngk/6iygf9meCP/YXMc/2FzHP9hcxz/YXMc/2FzHP9neCT/ys+y///////////////////////7/Pr/kJxf/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3IeQ2h0IxZkdB3CY3Md/2NzHf9kdB//09e+/3eFO/9jcx3/srqP////////////////////////////zdO4/2FzHP9hcxz/YXMc/2FzHP+CkEz/xMur/2l7KP9hcxz/YXMc/2FzHP9kdiD/tb2T//X28f+hrHj/ZHUg/2FzHP9hcxz/YXMc/2R2IP+irXr/9/jz///////////////////////f4tH/c4E0/2NzHf9jcx3/Y3Md/2NzHf9jcx3xYHMgKGaAGgpicx2eY3Md/2NzHf9jcx3/p7CA/6Ksef9jcx3/hJFN//7+/f//////////////////////7vDn/8nPsv/Jz7L/yc+y/8nPsv/V2cL/+vr3/+rs4f+psoP/jptd/5mkbP/P1Ln//Pz6///////8/Pr/zdO4/5umcP+Om13/nahz/87Uuf/8/Pr///////////////////////39/P+xuY7/ZXUg/2NzHf9jcx3/Y3Md/2NzHf9kdB7PXnEcGwD/AAFlcx5vY3Md+WNzHf9jcx3/dYM3/87TuP9odyT/ZXUg/9/i0P///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+zu5P9/jEb/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jdB2lYnYnDQAAAABjcRw2Y3Md5mNzHf9jcx3/Y3Md/7e/l/+Hk1H/Y3Md/5ahZ//9/fz//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7O7kf9ldB//Y3Md/2NzHf9jcx3/Y3Md/2NzHfljcx1xAP8AAQAAAABVVQADY3MesWNzHf9jcx3/Y3Md/4GOSP+wuI3/Z3cj/29+L//T17///v7+////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////5eja/2l5Jf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2N0HeNhdR8yAAAAAAAAAAAAAAAAYnEdNGNzHfFjcx3/Y3Md/2p5J/+wuI3/hZJP/2R0Hv+NmFr/7/Ho///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////x8ur/jZla/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2R0HqBmZjMFAAAAAAAAAAAAAAAAAP8AAWNzHXxjcx3/Y3Md/2NzHf9/jEX/z9W7/218LP9ldSD/laBm//v8+f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////z8+v+zupD/Z3cj/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Id82BwICAAAAAAAAAAAAAAAAAAAAAAAAAAAGFtGBVjdB6yY3Md+2NzHf9jcx3/laBm/8nPsf9ygDL/Y3Me/4+aXf/o697//v79/////////////////////////////////////////////////////////////////////////////////////////////////////////////v7+/9HWvf9tfCz/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx35ZHIecAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABkdB8hY3IeiGNzHfljcx3/Y3Md/5SfZP+nsID/fotD/2R0H/+Kllb/usGb/7nAmv/l6Nr//v79///////////////////////////////////////////////////////////////////////////////////////9/v3/ztK4/3OCNf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf1kdB2uY3EcEgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbW0kB2N1HoFjcx3+Y3Md/2R0Hv9zgTT/xsyt/9ncyP/l6Nr/ipZW/2Z2If+apW3/9fbx//////////////////////////////////////////////////////////////////////////////////39/f/IzbD/c4E0/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHd1kdBwuAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbW0kB2NzHXFjcx3mY3Md/2NzHf9jcx3/eYc+//T17///////9vfz/5CbX/+psoL/+Pn0//////////////////////////////////////////////////////////////////////////7/9PXv/7zDnv9reyn/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/ZHMe5mVyHzoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGF5GBVjcx2dY3Md+WNzHf9jcx3/Y3Md/5SfZP/T2MD/+/z5//3+/f/8/Pr///////////////////////////////////////////////////////////////////////n59v/M0bb/kZxg/2R0H/9ldSD/ZnYi/2NzHf9jcx3/Y3Md/2NzHf5jcx3RZHQfQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABjcRwSZHQfnmNzHf9jcx3/Y3Md/2R0Hv9vfi7/kJte/9HWvf/6+/n////////////////////////////////////////////////////////////29/L/xcus/4eTUP9tfCv/ZHQe/2Z2Iv9tfCz/ZXUg/2NzHf9jcx3/Y3Md/2RzHdJkcx4zgIAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgICAAmV0HZNjcx30Y3Md/2NzHf9jcx3/Y3Md/2NzHv91hDj/oat4/8jOsP/h5NT/6evf/+vt4v/s7uP/6+3h/+jq3f/c38z/v8ai/5eiaf9vfS7/Y3Md/2NzHv9ldSH/bn4u/29+MP9jcx3/Y3Md/2NzHf9jch3zY3IerGNxHBIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGNxHBJjcx60Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9mdiH/cH4v/3aEOf94hTv/dII2/2x7K/9kdB//Y3Md/2NzHf9jcx3/Y3Me/2d3I/9reij/ZnYi/2NzHf9jcx3/Y3Md/2R0Hs1jcx9kXXQXCwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAAAJidB85ZHMd0mNzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2R0Hv9jcx3/Y3Md/2NzHf9jch3qY3IeeWJ2HRpVVQADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXXQXC2N0HYtjcx3jZHMd+2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf5kcx3zY3Md3WNzH45geCAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFVVAANjch8xZHQdfWR0HcBjdB7yY3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx3/Y3Md/2NzHf9jcx7yYnMdymRzHZdkch5eZncaHgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVVUAA110IxZkdBwuY3UdYmNzHZ1jcx3IY3Qd5WRzHfZkcx74ZHMe8GNzHdxjcx68YnMekmNzHl1gcRwtZnAfGVVxHAkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",alt:"marimo",className:"h-4 w-auto"})]})}),x[0]=A):A=x[0],A};export{uA as default};
@@ -1,4 +1,4 @@
1
- var z,F,P;import{_,p as pt,q as dt,s as _t,g as mt,b as xt,a as kt,c as R,z as vt,T as bt,y as wt,j as St}from"./mermaid-CjHlE8Co.js";import{s as Y}from"./transform-DetRMEbJ.js";import{o as Et}from"./ordinal-DDUp3AbE.js";import{c as At}from"./colors-bszWmPJw.js";import"./index-DDdlzLJw.js";import"./step-BwsUM5iJ.js";import"./timer-Bqd5yn_a.js";import"./init-DLRA0X12.js";const Lt=At("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function it(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var B,st;function rt(t,e){var i,l,o=t.length,r=-1;if(e==null){for(;++r<o;)if((i=t[r])!=null&&i>=i)for(l=i;++r<o;)(i=t[r])!=null&&i>l&&(l=i)}else for(;++r<o;)if((i=e(t[r],r,t))!=null&&i>=i)for(l=i;++r<o;)(i=e(t[r],r,t))!=null&&i>l&&(l=i);return l}function ot(t,e){var i,l,o=t.length,r=-1;if(e==null){for(;++r<o;)if((i=t[r])!=null&&i>=i)for(l=i;++r<o;)(i=t[r])!=null&&l>i&&(l=i)}else for(;++r<o;)if((i=e(t[r],r,t))!=null&&i>=i)for(l=i;++r<o;)(i=e(t[r],r,t))!=null&&l>i&&(l=i);return l}function K(t,e){var i,l=t.length,o=-1,r=0;if(e==null)for(;++o<l;)(i=+t[o])&&(r+=i);else for(;++o<l;)(i=+e(t[o],o,t))&&(r+=i);return r}function Mt(t){return t.target.depth}function at(t,e){return t.sourceLinks.length?t.depth:e-1}function W(t){return function(){return t}}function ct(t,e){return G(t.source,e.source)||t.index-e.index}function lt(t,e){return G(t.target,e.target)||t.index-e.index}function G(t,e){return t.y0-e.y0}function Z(t){return t.value}function It(t){return t.index}function Tt(t){return t.nodes}function Nt(t){return t.links}function ht(t,e){const i=t.get(e);if(!i)throw new Error("missing: "+e);return i}function ut({nodes:t}){for(const e of t){let i=e.y0,l=i;for(const o of e.sourceLinks)o.y0=i+o.width/2,i+=o.width;for(const o of e.targetLinks)o.y1=l+o.width/2,l+=o.width}}function Ot(){let t,e,i,l=0,o=0,r=1,k=1,s=24,y=8,c=It,d=at,x=Tt,p=Nt,L=6;function v(){const n={nodes:x.apply(null,arguments),links:p.apply(null,arguments)};return function({nodes:h,links:u}){for(const[f,a]of h.entries())a.index=f,a.sourceLinks=[],a.targetLinks=[];const g=new Map(h.map((f,a)=>[c(f,a,h),f]));for(const[f,a]of u.entries()){a.index=f;let{source:b,target:m}=a;typeof b!="object"&&(b=a.source=ht(g,b)),typeof m!="object"&&(m=a.target=ht(g,m)),b.sourceLinks.push(a),m.targetLinks.push(a)}if(i!=null)for(const{sourceLinks:f,targetLinks:a}of h)f.sort(i),a.sort(i)}(n),function({nodes:h}){for(const u of h)u.value=u.fixedValue===void 0?Math.max(K(u.sourceLinks,Z),K(u.targetLinks,Z)):u.fixedValue}(n),function({nodes:h}){const u=h.length;let g=new Set(h),f=new Set,a=0;for(;g.size;){for(const b of g){b.depth=a;for(const{target:m}of b.sourceLinks)f.add(m)}if(++a>u)throw new Error("circular link");g=f,f=new Set}}(n),function({nodes:h}){const u=h.length;let g=new Set(h),f=new Set,a=0;for(;g.size;){for(const b of g){b.height=a;for(const{source:m}of b.targetLinks)f.add(m)}if(++a>u)throw new Error("circular link");g=f,f=new Set}}(n),function(h){const u=function({nodes:g}){const f=rt(g,m=>m.depth)+1,a=(r-l-s)/(f-1),b=new Array(f);for(const m of g){const S=Math.max(0,Math.min(f-1,Math.floor(d.call(null,m,f))));m.layer=S,m.x0=l+S*a,m.x1=m.x0+s,b[S]?b[S].push(m):b[S]=[m]}if(e)for(const m of b)m.sort(e);return b}(h);t=Math.min(y,(k-o)/(rt(u,g=>g.length)-1)),function(g){const f=ot(g,a=>(k-o-(a.length-1)*t)/K(a,Z));for(const a of g){let b=o;for(const m of a){m.y0=b,m.y1=b+m.value*f,b=m.y1+t;for(const S of m.sourceLinks)S.width=S.value*f}b=(k-b+t)/(a.length+1);for(let m=0;m<a.length;++m){const S=a[m];S.y0+=b*(m+1),S.y1+=b*(m+1)}C(a)}}(u);for(let g=0;g<L;++g){const f=Math.pow(.99,g),a=Math.max(1-f,(g+1)/L);I(u,f,a),T(u,f,a)}}(n),ut(n),n}function T(n,h,u){for(let g=1,f=n.length;g<f;++g){const a=n[g];for(const b of a){let m=0,S=0;for(const{source:A,value:U}of b.targetLinks){let et=U*(b.layer-A.layer);m+=$(A,b)*et,S+=et}if(!(S>0))continue;let D=(m/S-b.y0)*h;b.y0+=D,b.y1+=D,N(b)}e===void 0&&a.sort(G),M(a,u)}}function I(n,h,u){for(let g=n.length-2;g>=0;--g){const f=n[g];for(const a of f){let b=0,m=0;for(const{target:D,value:A}of a.sourceLinks){let U=A*(D.layer-a.layer);b+=O(a,D)*U,m+=U}if(!(m>0))continue;let S=(b/m-a.y0)*h;a.y0+=S,a.y1+=S,N(a)}e===void 0&&f.sort(G),M(f,u)}}function M(n,h){const u=n.length>>1,g=n[u];E(n,g.y0-t,u-1,h),w(n,g.y1+t,u+1,h),E(n,k,n.length-1,h),w(n,o,0,h)}function w(n,h,u,g){for(;u<n.length;++u){const f=n[u],a=(h-f.y0)*g;a>1e-6&&(f.y0+=a,f.y1+=a),h=f.y1+t}}function E(n,h,u,g){for(;u>=0;--u){const f=n[u],a=(f.y1-h)*g;a>1e-6&&(f.y0-=a,f.y1-=a),h=f.y0-t}}function N({sourceLinks:n,targetLinks:h}){if(i===void 0){for(const{source:{sourceLinks:u}}of h)u.sort(lt);for(const{target:{targetLinks:u}}of n)u.sort(ct)}}function C(n){if(i===void 0)for(const{sourceLinks:h,targetLinks:u}of n)h.sort(lt),u.sort(ct)}function $(n,h){let u=n.y0-(n.sourceLinks.length-1)*t/2;for(const{target:g,width:f}of n.sourceLinks){if(g===h)break;u+=f+t}for(const{source:g,width:f}of h.targetLinks){if(g===n)break;u-=f}return u}function O(n,h){let u=h.y0-(h.targetLinks.length-1)*t/2;for(const{source:g,width:f}of h.targetLinks){if(g===n)break;u+=f+t}for(const{target:g,width:f}of n.sourceLinks){if(g===h)break;u-=f}return u}return v.update=function(n){return ut(n),n},v.nodeId=function(n){return arguments.length?(c=typeof n=="function"?n:W(n),v):c},v.nodeAlign=function(n){return arguments.length?(d=typeof n=="function"?n:W(n),v):d},v.nodeSort=function(n){return arguments.length?(e=n,v):e},v.nodeWidth=function(n){return arguments.length?(s=+n,v):s},v.nodePadding=function(n){return arguments.length?(y=t=+n,v):y},v.nodes=function(n){return arguments.length?(x=typeof n=="function"?n:W(n),v):x},v.links=function(n){return arguments.length?(p=typeof n=="function"?n:W(n),v):p},v.linkSort=function(n){return arguments.length?(i=n,v):i},v.size=function(n){return arguments.length?(l=o=0,r=+n[0],k=+n[1],v):[r-l,k-o]},v.extent=function(n){return arguments.length?(l=+n[0][0],r=+n[1][0],o=+n[0][1],k=+n[1][1],v):[[l,o],[r,k]]},v.iterations=function(n){return arguments.length?(L=+n,v):L},v}(B=it).length===1&&(st=B,B=function(t,e){return it(st(t),e)});var H=Math.PI,J=2*H,j=1e-6,Pt=J-j;function tt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ft(){return new tt}function yt(t){return function(){return t}}function Ct(t){return t[0]}function Dt(t){return t[1]}tt.prototype=ft.prototype={constructor:tt,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,i,l){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+l)},bezierCurveTo:function(t,e,i,l,o,r){this._+="C"+ +t+","+ +e+","+ +i+","+ +l+","+(this._x1=+o)+","+(this._y1=+r)},arcTo:function(t,e,i,l,o){t=+t,e=+e,i=+i,l=+l,o=+o;var r=this._x1,k=this._y1,s=i-t,y=l-e,c=r-t,d=k-e,x=c*c+d*d;if(o<0)throw new Error("negative radius: "+o);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(x>j)if(Math.abs(d*s-y*c)>j&&o){var p=i-r,L=l-k,v=s*s+y*y,T=p*p+L*L,I=Math.sqrt(v),M=Math.sqrt(x),w=o*Math.tan((H-Math.acos((v+x-T)/(2*I*M)))/2),E=w/M,N=w/I;Math.abs(E-1)>j&&(this._+="L"+(t+E*c)+","+(e+E*d)),this._+="A"+o+","+o+",0,0,"+ +(d*p>c*L)+","+(this._x1=t+N*s)+","+(this._y1=e+N*y)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,i,l,o,r){t=+t,e=+e,r=!!r;var k=(i=+i)*Math.cos(l),s=i*Math.sin(l),y=t+k,c=e+s,d=1^r,x=r?l-o:o-l;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+y+","+c:(Math.abs(this._x1-y)>j||Math.abs(this._y1-c)>j)&&(this._+="L"+y+","+c),i&&(x<0&&(x=x%J+J),x>Pt?this._+="A"+i+","+i+",0,1,"+d+","+(t-k)+","+(e-s)+"A"+i+","+i+",0,1,"+d+","+(this._x1=y)+","+(this._y1=c):x>j&&(this._+="A"+i+","+i+",0,"+ +(x>=H)+","+d+","+(this._x1=t+i*Math.cos(o))+","+(this._y1=e+i*Math.sin(o))))},rect:function(t,e,i,l){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +l+"h"+-i+"Z"},toString:function(){return this._}};var $t=Array.prototype.slice;function jt(t){return t.source}function zt(t){return t.target}function Ft(t,e,i,l,o){t.moveTo(e,i),t.bezierCurveTo(e=(e+l)/2,i,e,o,l,o)}function Ut(){return function(t){var e=jt,i=zt,l=Ct,o=Dt,r=null;function k(){var s,y=$t.call(arguments),c=e.apply(this,y),d=i.apply(this,y);if(r||(r=s=ft()),t(r,+l.apply(this,(y[0]=c,y)),+o.apply(this,y),+l.apply(this,(y[0]=d,y)),+o.apply(this,y)),s)return r=null,s+""||null}return k.source=function(s){return arguments.length?(e=s,k):e},k.target=function(s){return arguments.length?(i=s,k):i},k.x=function(s){return arguments.length?(l=typeof s=="function"?s:yt(+s),k):l},k.y=function(s){return arguments.length?(o=typeof s=="function"?s:yt(+s),k):o},k.context=function(s){return arguments.length?(r=s??null,k):r},k}(Ft)}function Wt(t){return[t.source.x1,t.y0]}function Gt(t){return[t.target.x0,t.y1]}var nt=function(){var t=_(function(s,y,c,d){for(c=c||{},d=s.length;d--;c[s[d]]=y);return c},"o"),e=[1,9],i=[1,10],l=[1,5,10,12],o={trace:_(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:_(function(s,y,c,d,x,p,L){var v=p.length-1;switch(x){case 7:const T=d.findOrCreateNode(p[v-4].trim().replaceAll('""','"')),I=d.findOrCreateNode(p[v-2].trim().replaceAll('""','"')),M=parseFloat(p[v].trim());d.addLink(T,I,M);break;case 8:case 9:case 11:this.$=p[v];break;case 10:this.$=p[v-1]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:i},{1:[2,6],7:11,10:[1,12]},t(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(l,[2,8]),t(l,[2,9]),{19:[1,16]},t(l,[2,11]),{1:[2,1]},{1:[2,5]},t(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:i},{15:18,16:7,17:8,18:e,20:i},{18:[1,19]},t(i,[2,3]),{12:[1,20]},t(l,[2,10]),{15:21,16:7,17:8,18:e,20:i},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:_(function(s,y){if(!y.recoverable){var c=new Error(s);throw c.hash=y,c}this.trace(s)},"parseError"),parse:_(function(s){var y=this,c=[0],d=[],x=[null],p=[],L=this.table,v="",T=0,I=0,M=p.slice.call(arguments,1),w=Object.create(this.lexer),E={yy:{}};for(var N in this.yy)Object.prototype.hasOwnProperty.call(this.yy,N)&&(E.yy[N]=this.yy[N]);w.setInput(s,E.yy),E.yy.lexer=w,E.yy.parser=this,w.yylloc===void 0&&(w.yylloc={});var C=w.yylloc;p.push(C);var $=w.options&&w.options.ranges;function O(){var A;return typeof(A=d.pop()||w.lex()||1)!="number"&&(A instanceof Array&&(A=(d=A).pop()),A=y.symbols_[A]||A),A}typeof E.yy.parseError=="function"?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,_(function(A){c.length=c.length-2*A,x.length=x.length-A,p.length=p.length-A},"popStack"),_(O,"lex");for(var n,h,u,g,f,a,b,m,S={};;){if(h=c[c.length-1],this.defaultActions[h]?u=this.defaultActions[h]:(n==null&&(n=O()),u=L[h]&&L[h][n]),u===void 0||!u.length||!u[0]){var D="";for(f in m=[],L[h])this.terminals_[f]&&f>2&&m.push("'"+this.terminals_[f]+"'");D=w.showPosition?"Parse error on line "+(T+1)+`:
1
+ var z,F,P;import{_,p as pt,q as dt,s as _t,g as mt,b as xt,a as kt,c as R,z as vt,S as bt,y as wt,j as St}from"./mermaid-CVRC4Ruz.js";import{s as Y}from"./transform-DetRMEbJ.js";import{o as Et}from"./ordinal-DDUp3AbE.js";import{c as At}from"./colors-bszWmPJw.js";import"./index-DDVWq6NK.js";import"./step-BwsUM5iJ.js";import"./timer-Bqd5yn_a.js";import"./init-DLRA0X12.js";const Lt=At("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function it(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var B,st;function rt(t,e){var i,l,o=t.length,r=-1;if(e==null){for(;++r<o;)if((i=t[r])!=null&&i>=i)for(l=i;++r<o;)(i=t[r])!=null&&i>l&&(l=i)}else for(;++r<o;)if((i=e(t[r],r,t))!=null&&i>=i)for(l=i;++r<o;)(i=e(t[r],r,t))!=null&&i>l&&(l=i);return l}function ot(t,e){var i,l,o=t.length,r=-1;if(e==null){for(;++r<o;)if((i=t[r])!=null&&i>=i)for(l=i;++r<o;)(i=t[r])!=null&&l>i&&(l=i)}else for(;++r<o;)if((i=e(t[r],r,t))!=null&&i>=i)for(l=i;++r<o;)(i=e(t[r],r,t))!=null&&l>i&&(l=i);return l}function K(t,e){var i,l=t.length,o=-1,r=0;if(e==null)for(;++o<l;)(i=+t[o])&&(r+=i);else for(;++o<l;)(i=+e(t[o],o,t))&&(r+=i);return r}function Mt(t){return t.target.depth}function at(t,e){return t.sourceLinks.length?t.depth:e-1}function W(t){return function(){return t}}function ct(t,e){return G(t.source,e.source)||t.index-e.index}function lt(t,e){return G(t.target,e.target)||t.index-e.index}function G(t,e){return t.y0-e.y0}function Z(t){return t.value}function It(t){return t.index}function Tt(t){return t.nodes}function Nt(t){return t.links}function ht(t,e){const i=t.get(e);if(!i)throw new Error("missing: "+e);return i}function ut({nodes:t}){for(const e of t){let i=e.y0,l=i;for(const o of e.sourceLinks)o.y0=i+o.width/2,i+=o.width;for(const o of e.targetLinks)o.y1=l+o.width/2,l+=o.width}}function Ot(){let t,e,i,l=0,o=0,r=1,k=1,s=24,y=8,c=It,d=at,x=Tt,p=Nt,L=6;function v(){const n={nodes:x.apply(null,arguments),links:p.apply(null,arguments)};return function({nodes:h,links:u}){for(const[f,a]of h.entries())a.index=f,a.sourceLinks=[],a.targetLinks=[];const g=new Map(h.map((f,a)=>[c(f,a,h),f]));for(const[f,a]of u.entries()){a.index=f;let{source:b,target:m}=a;typeof b!="object"&&(b=a.source=ht(g,b)),typeof m!="object"&&(m=a.target=ht(g,m)),b.sourceLinks.push(a),m.targetLinks.push(a)}if(i!=null)for(const{sourceLinks:f,targetLinks:a}of h)f.sort(i),a.sort(i)}(n),function({nodes:h}){for(const u of h)u.value=u.fixedValue===void 0?Math.max(K(u.sourceLinks,Z),K(u.targetLinks,Z)):u.fixedValue}(n),function({nodes:h}){const u=h.length;let g=new Set(h),f=new Set,a=0;for(;g.size;){for(const b of g){b.depth=a;for(const{target:m}of b.sourceLinks)f.add(m)}if(++a>u)throw new Error("circular link");g=f,f=new Set}}(n),function({nodes:h}){const u=h.length;let g=new Set(h),f=new Set,a=0;for(;g.size;){for(const b of g){b.height=a;for(const{source:m}of b.targetLinks)f.add(m)}if(++a>u)throw new Error("circular link");g=f,f=new Set}}(n),function(h){const u=function({nodes:g}){const f=rt(g,m=>m.depth)+1,a=(r-l-s)/(f-1),b=new Array(f);for(const m of g){const S=Math.max(0,Math.min(f-1,Math.floor(d.call(null,m,f))));m.layer=S,m.x0=l+S*a,m.x1=m.x0+s,b[S]?b[S].push(m):b[S]=[m]}if(e)for(const m of b)m.sort(e);return b}(h);t=Math.min(y,(k-o)/(rt(u,g=>g.length)-1)),function(g){const f=ot(g,a=>(k-o-(a.length-1)*t)/K(a,Z));for(const a of g){let b=o;for(const m of a){m.y0=b,m.y1=b+m.value*f,b=m.y1+t;for(const S of m.sourceLinks)S.width=S.value*f}b=(k-b+t)/(a.length+1);for(let m=0;m<a.length;++m){const S=a[m];S.y0+=b*(m+1),S.y1+=b*(m+1)}C(a)}}(u);for(let g=0;g<L;++g){const f=Math.pow(.99,g),a=Math.max(1-f,(g+1)/L);I(u,f,a),T(u,f,a)}}(n),ut(n),n}function T(n,h,u){for(let g=1,f=n.length;g<f;++g){const a=n[g];for(const b of a){let m=0,S=0;for(const{source:A,value:U}of b.targetLinks){let et=U*(b.layer-A.layer);m+=$(A,b)*et,S+=et}if(!(S>0))continue;let D=(m/S-b.y0)*h;b.y0+=D,b.y1+=D,N(b)}e===void 0&&a.sort(G),M(a,u)}}function I(n,h,u){for(let g=n.length-2;g>=0;--g){const f=n[g];for(const a of f){let b=0,m=0;for(const{target:D,value:A}of a.sourceLinks){let U=A*(D.layer-a.layer);b+=O(a,D)*U,m+=U}if(!(m>0))continue;let S=(b/m-a.y0)*h;a.y0+=S,a.y1+=S,N(a)}e===void 0&&f.sort(G),M(f,u)}}function M(n,h){const u=n.length>>1,g=n[u];E(n,g.y0-t,u-1,h),w(n,g.y1+t,u+1,h),E(n,k,n.length-1,h),w(n,o,0,h)}function w(n,h,u,g){for(;u<n.length;++u){const f=n[u],a=(h-f.y0)*g;a>1e-6&&(f.y0+=a,f.y1+=a),h=f.y1+t}}function E(n,h,u,g){for(;u>=0;--u){const f=n[u],a=(f.y1-h)*g;a>1e-6&&(f.y0-=a,f.y1-=a),h=f.y0-t}}function N({sourceLinks:n,targetLinks:h}){if(i===void 0){for(const{source:{sourceLinks:u}}of h)u.sort(lt);for(const{target:{targetLinks:u}}of n)u.sort(ct)}}function C(n){if(i===void 0)for(const{sourceLinks:h,targetLinks:u}of n)h.sort(lt),u.sort(ct)}function $(n,h){let u=n.y0-(n.sourceLinks.length-1)*t/2;for(const{target:g,width:f}of n.sourceLinks){if(g===h)break;u+=f+t}for(const{source:g,width:f}of h.targetLinks){if(g===n)break;u-=f}return u}function O(n,h){let u=h.y0-(h.targetLinks.length-1)*t/2;for(const{source:g,width:f}of h.targetLinks){if(g===n)break;u+=f+t}for(const{target:g,width:f}of n.sourceLinks){if(g===h)break;u-=f}return u}return v.update=function(n){return ut(n),n},v.nodeId=function(n){return arguments.length?(c=typeof n=="function"?n:W(n),v):c},v.nodeAlign=function(n){return arguments.length?(d=typeof n=="function"?n:W(n),v):d},v.nodeSort=function(n){return arguments.length?(e=n,v):e},v.nodeWidth=function(n){return arguments.length?(s=+n,v):s},v.nodePadding=function(n){return arguments.length?(y=t=+n,v):y},v.nodes=function(n){return arguments.length?(x=typeof n=="function"?n:W(n),v):x},v.links=function(n){return arguments.length?(p=typeof n=="function"?n:W(n),v):p},v.linkSort=function(n){return arguments.length?(i=n,v):i},v.size=function(n){return arguments.length?(l=o=0,r=+n[0],k=+n[1],v):[r-l,k-o]},v.extent=function(n){return arguments.length?(l=+n[0][0],r=+n[1][0],o=+n[0][1],k=+n[1][1],v):[[l,o],[r,k]]},v.iterations=function(n){return arguments.length?(L=+n,v):L},v}(B=it).length===1&&(st=B,B=function(t,e){return it(st(t),e)});var H=Math.PI,J=2*H,j=1e-6,Pt=J-j;function tt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ft(){return new tt}function yt(t){return function(){return t}}function Ct(t){return t[0]}function Dt(t){return t[1]}tt.prototype=ft.prototype={constructor:tt,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,i,l){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+l)},bezierCurveTo:function(t,e,i,l,o,r){this._+="C"+ +t+","+ +e+","+ +i+","+ +l+","+(this._x1=+o)+","+(this._y1=+r)},arcTo:function(t,e,i,l,o){t=+t,e=+e,i=+i,l=+l,o=+o;var r=this._x1,k=this._y1,s=i-t,y=l-e,c=r-t,d=k-e,x=c*c+d*d;if(o<0)throw new Error("negative radius: "+o);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(x>j)if(Math.abs(d*s-y*c)>j&&o){var p=i-r,L=l-k,v=s*s+y*y,T=p*p+L*L,I=Math.sqrt(v),M=Math.sqrt(x),w=o*Math.tan((H-Math.acos((v+x-T)/(2*I*M)))/2),E=w/M,N=w/I;Math.abs(E-1)>j&&(this._+="L"+(t+E*c)+","+(e+E*d)),this._+="A"+o+","+o+",0,0,"+ +(d*p>c*L)+","+(this._x1=t+N*s)+","+(this._y1=e+N*y)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,i,l,o,r){t=+t,e=+e,r=!!r;var k=(i=+i)*Math.cos(l),s=i*Math.sin(l),y=t+k,c=e+s,d=1^r,x=r?l-o:o-l;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+y+","+c:(Math.abs(this._x1-y)>j||Math.abs(this._y1-c)>j)&&(this._+="L"+y+","+c),i&&(x<0&&(x=x%J+J),x>Pt?this._+="A"+i+","+i+",0,1,"+d+","+(t-k)+","+(e-s)+"A"+i+","+i+",0,1,"+d+","+(this._x1=y)+","+(this._y1=c):x>j&&(this._+="A"+i+","+i+",0,"+ +(x>=H)+","+d+","+(this._x1=t+i*Math.cos(o))+","+(this._y1=e+i*Math.sin(o))))},rect:function(t,e,i,l){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +l+"h"+-i+"Z"},toString:function(){return this._}};var $t=Array.prototype.slice;function jt(t){return t.source}function zt(t){return t.target}function Ft(t,e,i,l,o){t.moveTo(e,i),t.bezierCurveTo(e=(e+l)/2,i,e,o,l,o)}function Ut(){return function(t){var e=jt,i=zt,l=Ct,o=Dt,r=null;function k(){var s,y=$t.call(arguments),c=e.apply(this,y),d=i.apply(this,y);if(r||(r=s=ft()),t(r,+l.apply(this,(y[0]=c,y)),+o.apply(this,y),+l.apply(this,(y[0]=d,y)),+o.apply(this,y)),s)return r=null,s+""||null}return k.source=function(s){return arguments.length?(e=s,k):e},k.target=function(s){return arguments.length?(i=s,k):i},k.x=function(s){return arguments.length?(l=typeof s=="function"?s:yt(+s),k):l},k.y=function(s){return arguments.length?(o=typeof s=="function"?s:yt(+s),k):o},k.context=function(s){return arguments.length?(r=s??null,k):r},k}(Ft)}function Wt(t){return[t.source.x1,t.y0]}function Gt(t){return[t.target.x0,t.y1]}var nt=function(){var t=_(function(s,y,c,d){for(c=c||{},d=s.length;d--;c[s[d]]=y);return c},"o"),e=[1,9],i=[1,10],l=[1,5,10,12],o={trace:_(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:_(function(s,y,c,d,x,p,L){var v=p.length-1;switch(x){case 7:const T=d.findOrCreateNode(p[v-4].trim().replaceAll('""','"')),I=d.findOrCreateNode(p[v-2].trim().replaceAll('""','"')),M=parseFloat(p[v].trim());d.addLink(T,I,M);break;case 8:case 9:case 11:this.$=p[v];break;case 10:this.$=p[v-1]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:i},{1:[2,6],7:11,10:[1,12]},t(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(l,[2,8]),t(l,[2,9]),{19:[1,16]},t(l,[2,11]),{1:[2,1]},{1:[2,5]},t(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:i},{15:18,16:7,17:8,18:e,20:i},{18:[1,19]},t(i,[2,3]),{12:[1,20]},t(l,[2,10]),{15:21,16:7,17:8,18:e,20:i},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:_(function(s,y){if(!y.recoverable){var c=new Error(s);throw c.hash=y,c}this.trace(s)},"parseError"),parse:_(function(s){var y=this,c=[0],d=[],x=[null],p=[],L=this.table,v="",T=0,I=0,M=p.slice.call(arguments,1),w=Object.create(this.lexer),E={yy:{}};for(var N in this.yy)Object.prototype.hasOwnProperty.call(this.yy,N)&&(E.yy[N]=this.yy[N]);w.setInput(s,E.yy),E.yy.lexer=w,E.yy.parser=this,w.yylloc===void 0&&(w.yylloc={});var C=w.yylloc;p.push(C);var $=w.options&&w.options.ranges;function O(){var A;return typeof(A=d.pop()||w.lex()||1)!="number"&&(A instanceof Array&&(A=(d=A).pop()),A=y.symbols_[A]||A),A}typeof E.yy.parseError=="function"?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,_(function(A){c.length=c.length-2*A,x.length=x.length-A,p.length=p.length-A},"popStack"),_(O,"lex");for(var n,h,u,g,f,a,b,m,S={};;){if(h=c[c.length-1],this.defaultActions[h]?u=this.defaultActions[h]:(n==null&&(n=O()),u=L[h]&&L[h][n]),u===void 0||!u.length||!u[0]){var D="";for(f in m=[],L[h])this.terminals_[f]&&f>2&&m.push("'"+this.terminals_[f]+"'");D=w.showPosition?"Parse error on line "+(T+1)+`:
2
2
  `+w.showPosition()+`
3
3
  Expecting `+m.join(", ")+", got '"+(this.terminals_[n]||n)+"'":"Parse error on line "+(T+1)+": Unexpected "+(n==1?"end of input":"'"+(this.terminals_[n]||n)+"'"),this.parseError(D,{text:w.match,token:this.terminals_[n]||n,line:w.yylineno,loc:C,expected:m})}if(u[0]instanceof Array&&u.length>1)throw new Error("Parse Error: multiple actions possible at state: "+h+", token: "+n);switch(u[0]){case 1:c.push(n),x.push(w.yytext),p.push(w.yylloc),c.push(u[1]),n=null,I=w.yyleng,v=w.yytext,T=w.yylineno,C=w.yylloc;break;case 2:if(a=this.productions_[u[1]][1],S.$=x[x.length-a],S._$={first_line:p[p.length-(a||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(a||1)].first_column,last_column:p[p.length-1].last_column},$&&(S._$.range=[p[p.length-(a||1)].range[0],p[p.length-1].range[1]]),(g=this.performAction.apply(S,[v,I,T,E.yy,u[1],x,p].concat(M)))!==void 0)return g;a&&(c=c.slice(0,-1*a*2),x=x.slice(0,-1*a),p=p.slice(0,-1*a)),c.push(this.productions_[u[1]][0]),x.push(S.$),p.push(S._$),b=L[c[c.length-2]][c[c.length-1]],c.push(b);break;case 3:return!0}}return!0},"parse")},r=function(){return{EOF:1,parseError:_(function(s,y){if(!this.yy.parser)throw new Error(s);this.yy.parser.parseError(s,y)},"parseError"),setInput:_(function(s,y){return this.yy=y||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:_(function(){var s=this._input[0];return this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s,s.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:_(function(s){var y=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-y),this.offset-=y;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var x=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-y},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-y]),this.yyleng=this.yytext.length,this},"unput"),more:_(function(){return this._more=!0,this},"more"),reject:_(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:_(function(s){this.unput(this.match.slice(s))},"less"),pastInput:_(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:_(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:_(function(){var s=this.pastInput(),y=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -0,0 +1 @@
1
+ const e=1e3;function t(e,t){const r=e.map(e=>`"${e}"`).join(", ");return new Error(`This RPC instance cannot ${t} because the transport did not provide one or more of these methods: ${r}`)}function r(r={}){let n={};function a(e){n=e}let s,i={};function o(e){i.unregisterHandler&&i.unregisterHandler(),i=e,i.registerHandler?.(b)}function d(e){s="function"!=typeof e?(t,r)=>{const n=e[t];if(n)return n(r);const a=e._;if(!a)throw new Error(`The requested method has no handler: ${t}`);return a(t,r)}:e}const{maxRequestTime:c=e}=r;r.transport&&o(r.transport),r.requestHandler&&d(r.requestHandler),r._debugHooks&&a(r._debugHooks);let u=0;const l=new Map,p=new Map;function h(e,...r){const a=r[0];return new Promise((r,s)=>{if(!i.send)throw t(["send"],"make requests");const o=u<=1e10?++u:u=0,d={type:"request",id:o,method:e,params:a};l.set(o,{resolve:r,reject:s}),c!==1/0&&p.set(o,setTimeout(()=>{p.delete(o),s(new Error("RPC request timed out."))},c)),n.onSend?.(d),i.send(d)})}const f=new Proxy(h,{get:(e,t,r)=>t in e?Reflect.get(e,t,r):e=>h(t,e)}),m=f;function y(e,...r){const a=r[0];if(!i.send)throw t(["send"],"send messages");const s={type:"message",id:e,payload:a};n.onSend?.(s),i.send(s)}const g=new Proxy(y,{get:(e,t,r)=>t in e?Reflect.get(e,t,r):e=>y(t,e)}),v=g,_=new Map,w=new Set;async function b(e){if(n.onReceive?.(e),!("type"in e))throw new Error("Message does not contain a type.");if("request"===e.type){if(!i.send||!s)throw t(["send","requestHandler"],"handle requests");const{id:a,method:o,params:d}=e;let c;try{c={type:"response",id:a,success:!0,payload:await s(o,d)}}catch(r){if(!(r instanceof Error))throw r;c={type:"response",id:a,success:!1,error:r.message}}return n.onSend?.(c),void i.send(c)}if("response"===e.type){const t=p.get(e.id);null!=t&&clearTimeout(t);const{resolve:r,reject:n}=l.get(e.id)??{};return void(e.success?r?.(e.payload):n?.(new Error(e.error)))}if("message"===e.type){for(const r of w)r(e.id,e.payload);const t=_.get(e.id);if(!t)return;for(const r of t)r(e.payload);return}throw new Error(`Unexpected RPC message type: ${e.type}`)}return{setTransport:o,setRequestHandler:d,request:f,requestProxy:m,send:g,sendProxy:v,addMessageListener:function(e,r){if(!i.registerHandler)throw t(["registerHandler"],"register message listeners");"*"!==e?(_.has(e)||_.set(e,new Set),_.get(e)?.add(r)):w.add(r)},removeMessageListener:function(e,t){"*"!==e?(_.get(e)?.delete(t),0===_.get(e)?.size&&_.delete(e)):w.delete(t)},proxy:{send:v,request:m},_setDebugHooks:a}}const n="[transport-id]";function a(e,t={}){const{transportId:r,filter:a,remotePort:s}=t,i=e,o=s??e;let d;return{send(e){o.postMessage(function(e,t){const{transportId:r}=t;return null!=r?{[n]:r,data:e}:e}(e,{transportId:r}))},registerHandler(e){d=t=>{const s=t.data,[i,o]=function(e,t){const{transportId:r,filter:a}=t,s=a?.();if(null!=r&&null!=s)throw new Error("Cannot use both `transportId` and `filter` at the same time");let i=e;if(r){if(e[n]!==r)return[!0];i=e.data}return!1===s?[!0]:[!1,i]}(s,{transportId:r,filter:()=>a?.(t)});i||e(o)},i.addEventListener("message",d)},unregisterHandler(){d&&i.removeEventListener("message",d)}}}const s=()=>{},i=(e,t)=>{const r=`[${e}]`;return{debug:(...e)=>t.debug(r,...e),log:(...e)=>t.log(r,...e),warn:(...e)=>t.warn(r,...e),error:(...e)=>t.error(r,...e),trace:(...e)=>t.trace(r,...e),get:r=>i(`${e}.${r}`,t),disabled:(e=!0)=>e?d:t}},o={debug:(...e)=>{},log:(...e)=>{console.log(...e)},warn:(...e)=>{console.warn(...e)},error:(...e)=>{console.error(...e)},trace:(...e)=>{console.trace(...e)},get:e=>i(e,o),disabled:(e=!0)=>e?d:o},d={debug:()=>s,log:()=>s,warn:()=>s,error:()=>s,trace:()=>s,get:()=>d,disabled:()=>d};const c="undefined"!=typeof window&&window.Logger||o,u=e=>(new TextDecoder).decode(e);var l,p;!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const r of e)t[r]=r;return t},e.getValidEnumValues=t=>{const r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(const e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(const r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(l||(l={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(p||(p={}));const h=l.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),f=e=>{switch(typeof e){case"undefined":return h.undefined;case"string":return h.string;case"number":return isNaN(e)?h.nan:h.number;case"boolean":return h.boolean;case"function":return h.function;case"bigint":return h.bigint;case"symbol":return h.symbol;case"object":return Array.isArray(e)?h.array:null===e?h.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?h.promise:"undefined"!=typeof Map&&e instanceof Map?h.map:"undefined"!=typeof Set&&e instanceof Set?h.set:"undefined"!=typeof Date&&e instanceof Date?h.date:h.object;default:return h.unknown}},m=l.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class y extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(const a of e.issues)if("invalid_union"===a.code)a.unionErrors.map(n);else if("invalid_return_type"===a.code)n(a.returnTypeError);else if("invalid_arguments"===a.code)n(a.argumentsError);else if(0===a.path.length)r._errors.push(t(a));else{let e=r,n=0;for(;n<a.path.length;){const r=a.path[n];n===a.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(a))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof y))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,l.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},r=[];for(const n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}y.create=e=>new y(e);const g=(e,t)=>{let r;switch(e.code){case m.invalid_type:r=e.received===h.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case m.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,l.jsonStringifyReplacer)}`;break;case m.unrecognized_keys:r=`Unrecognized key(s) in object: ${l.joinValues(e.keys,", ")}`;break;case m.invalid_union:r="Invalid input";break;case m.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${l.joinValues(e.options)}`;break;case m.invalid_enum_value:r=`Invalid enum value. Expected ${l.joinValues(e.options)}, received '${e.received}'`;break;case m.invalid_arguments:r="Invalid function arguments";break;case m.invalid_return_type:r="Invalid function return type";break;case m.invalid_date:r="Invalid date";break;case m.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:l.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case m.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case m.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case m.custom:r="Invalid input";break;case m.invalid_intersection_types:r="Intersection results could not be merged";break;case m.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case m.not_finite:r="Number must be finite";break;default:r=t.defaultError,l.assertNever(e)}return{message:r}};let v=g;function _(){return v}const w=e=>{const{data:t,path:r,errorMaps:n,issueData:a}=e,s=[...r,...a.path||[]],i={...a,path:s};if(void 0!==a.message)return{...a,path:s,message:a.message};let o="";const d=n.filter(e=>!!e).slice().reverse();for(const c of d)o=c(i,{data:t,defaultError:o}).message;return{...a,path:s,message:o}};function b(e,t){const r=_(),n=w({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===g?void 0:g].filter(e=>!!e)});e.common.issues.push(n)}class k{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const r=[];for(const n of t){if("aborted"===n.status)return x;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){const r=[];for(const n of t){const e=await n.key,t=await n.value;r.push({key:e,value:t})}return k.mergeObjectSync(e,r)}static mergeObjectSync(e,t){const r={};for(const n of t){const{key:t,value:a}=n;if("aborted"===t.status)return x;if("aborted"===a.status)return x;"dirty"===t.status&&e.dirty(),"dirty"===a.status&&e.dirty(),"__proto__"===t.value||void 0===a.value&&!n.alwaysSet||(r[t.value]=a.value)}return{status:e.value,value:r}}}const x=Object.freeze({status:"aborted"}),S=e=>({status:"dirty",value:e}),T=e=>({status:"valid",value:e}),E=e=>"aborted"===e.status,O=e=>"dirty"===e.status,Z=e=>"valid"===e.status,N=e=>"undefined"!=typeof Promise&&e instanceof Promise;function j(e,t,r,n){if("function"==typeof t||!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function P(e,t,r,n,a){if("function"==typeof t||!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}var A,C,I;"function"==typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(A||(A={}));class R{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const F=(e,t)=>{if(Z(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new y(e.common.issues);return this._error=t,this._error}}};function $(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:a}=e;if(t&&(r||n))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:a};return{errorMap:(t,a)=>{var s,i;const{message:o}=e;return"invalid_enum_value"===t.code?{message:null!=o?o:a.defaultError}:void 0===a.data?{message:null!==(s=null!=o?o:n)&&void 0!==s?s:a.defaultError}:"invalid_type"!==t.code?{message:a.defaultError}:{message:null!==(i=null!=o?o:r)&&void 0!==i?i:a.defaultError}},description:a}}class L{get description(){return this._def.description}_getType(e){return f(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:f(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new k,ctx:{common:e.parent.common,data:e.data,parsedType:f(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(N(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;const n={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:f(e)},a=this._parseSync({data:e,path:n.path,parent:n});return F(n,a)}"~validate"(e){var t,r;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:f(e)};if(!this["~standard"].async)try{const t=this._parseSync({data:e,path:[],parent:n});return Z(t)?{value:t.value}:{issues:n.common.issues}}catch(a){(null===(r=null===(t=null==a?void 0:a.message)||void 0===t?void 0:t.toLowerCase())||void 0===r?void 0:r.includes("encountered"))&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(e=>Z(e)?{value:e.value}:{issues:n.common.issues})}async parseAsync(e,t){const r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){const r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:f(e)},n=this._parse({data:e,path:r.path,parent:r}),a=await(N(n)?n:Promise.resolve(n));return F(r,a)}refine(e,t){const r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{const a=e(t),s=()=>n.addIssue({code:m.custom,...r(t)});return"undefined"!=typeof Promise&&a instanceof Promise?a.then(e=>!!e||(s(),!1)):!!a||(s(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new De({schema:this,typeName:Qe.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return Ue.create(this,this._def)}nullable(){return ze.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return be.create(this)}promise(){return Me.create(this,this._def)}or(e){return Se.create([this,e],this._def)}and(e){return Ze.create(this,e,this._def)}transform(e){return new De({...$(this._def),schema:this,typeName:Qe.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new qe({...$(this._def),innerType:this,defaultValue:t,typeName:Qe.ZodDefault})}brand(){return new We({typeName:Qe.ZodBranded,type:this,...$(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new Ve({...$(this._def),innerType:this,catchValue:t,typeName:Qe.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return Ke.create(this,e)}readonly(){return Je.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const M=/^c[^\s-]{8,}$/i,D=/^[0-9a-z]+$/,U=/^[0-9A-HJKMNP-TV-Z]{26}$/i,z=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,q=/^[a-z0-9_-]{21}$/i,V=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,H=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,B=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let W;const K=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,J=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Y=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,G=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,X=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Q=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ee="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",te=new RegExp(`^${ee}$`);function re(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function ne(e){return new RegExp(`^${re(e)}$`)}function ae(e){let t=`${ee}T${re(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function se(e,t){return!("v4"!==t&&t||!K.test(e))||!("v6"!==t&&t||!Y.test(e))}function ie(e,t){if(!V.test(e))return!1;try{const[r]=e.split("."),n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),a=JSON.parse(atob(n));return"object"==typeof a&&null!==a&&(!(!a.typ||!a.alg)&&(!t||a.alg===t))}catch(r){return!1}}function oe(e,t){return!("v4"!==t&&t||!J.test(e))||!("v6"!==t&&t||!G.test(e))}class de extends L{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==h.string){const t=this._getOrReturnCtx(e);return b(t,{code:m.invalid_type,expected:h.string,received:t.parsedType}),x}const t=new k;let r;for(const a of this._def.checks)if("min"===a.kind)e.data.length<a.value&&(r=this._getOrReturnCtx(e,r),b(r,{code:m.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("max"===a.kind)e.data.length>a.value&&(r=this._getOrReturnCtx(e,r),b(r,{code:m.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("length"===a.kind){const n=e.data.length>a.value,s=e.data.length<a.value;(n||s)&&(r=this._getOrReturnCtx(e,r),n?b(r,{code:m.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):s&&b(r,{code:m.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),t.dirty())}else if("email"===a.kind)B.test(e.data)||(r=this._getOrReturnCtx(e,r),b(r,{validation:"email",code:m.invalid_string,message:a.message}),t.dirty());else if("emoji"===a.kind)W||(W=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),W.test(e.data)||(r=this._getOrReturnCtx(e,r),b(r,{validation:"emoji",code:m.invalid_string,message:a.message}),t.dirty());else if("uuid"===a.kind)z.test(e.data)||(r=this._getOrReturnCtx(e,r),b(r,{validation:"uuid",code:m.invalid_string,message:a.message}),t.dirty());else if("nanoid"===a.kind)q.test(e.data)||(r=this._getOrReturnCtx(e,r),b(r,{validation:"nanoid",code:m.invalid_string,message:a.message}),t.dirty());else if("cuid"===a.kind)M.test(e.data)||(r=this._getOrReturnCtx(e,r),b(r,{validation:"cuid",code:m.invalid_string,message:a.message}),t.dirty());else if("cuid2"===a.kind)D.test(e.data)||(r=this._getOrReturnCtx(e,r),b(r,{validation:"cuid2",code:m.invalid_string,message:a.message}),t.dirty());else if("ulid"===a.kind)U.test(e.data)||(r=this._getOrReturnCtx(e,r),b(r,{validation:"ulid",code:m.invalid_string,message:a.message}),t.dirty());else if("url"===a.kind)try{new URL(e.data)}catch(n){r=this._getOrReturnCtx(e,r),b(r,{validation:"url",code:m.invalid_string,message:a.message}),t.dirty()}else if("regex"===a.kind){a.regex.lastIndex=0;a.regex.test(e.data)||(r=this._getOrReturnCtx(e,r),b(r,{validation:"regex",code:m.invalid_string,message:a.message}),t.dirty())}else if("trim"===a.kind)e.data=e.data.trim();else if("includes"===a.kind)e.data.includes(a.value,a.position)||(r=this._getOrReturnCtx(e,r),b(r,{code:m.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),t.dirty());else if("toLowerCase"===a.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===a.kind)e.data=e.data.toUpperCase();else if("startsWith"===a.kind)e.data.startsWith(a.value)||(r=this._getOrReturnCtx(e,r),b(r,{code:m.invalid_string,validation:{startsWith:a.value},message:a.message}),t.dirty());else if("endsWith"===a.kind)e.data.endsWith(a.value)||(r=this._getOrReturnCtx(e,r),b(r,{code:m.invalid_string,validation:{endsWith:a.value},message:a.message}),t.dirty());else if("datetime"===a.kind){ae(a).test(e.data)||(r=this._getOrReturnCtx(e,r),b(r,{code:m.invalid_string,validation:"datetime",message:a.message}),t.dirty())}else if("date"===a.kind){te.test(e.data)||(r=this._getOrReturnCtx(e,r),b(r,{code:m.invalid_string,validation:"date",message:a.message}),t.dirty())}else if("time"===a.kind){ne(a).test(e.data)||(r=this._getOrReturnCtx(e,r),b(r,{code:m.invalid_string,validation:"time",message:a.message}),t.dirty())}else"duration"===a.kind?H.test(e.data)||(r=this._getOrReturnCtx(e,r),b(r,{validation:"duration",code:m.invalid_string,message:a.message}),t.dirty()):"ip"===a.kind?se(e.data,a.version)||(r=this._getOrReturnCtx(e,r),b(r,{validation:"ip",code:m.invalid_string,message:a.message}),t.dirty()):"jwt"===a.kind?ie(e.data,a.alg)||(r=this._getOrReturnCtx(e,r),b(r,{validation:"jwt",code:m.invalid_string,message:a.message}),t.dirty()):"cidr"===a.kind?oe(e.data,a.version)||(r=this._getOrReturnCtx(e,r),b(r,{validation:"cidr",code:m.invalid_string,message:a.message}),t.dirty()):"base64"===a.kind?X.test(e.data)||(r=this._getOrReturnCtx(e,r),b(r,{validation:"base64",code:m.invalid_string,message:a.message}),t.dirty()):"base64url"===a.kind?Q.test(e.data)||(r=this._getOrReturnCtx(e,r),b(r,{validation:"base64url",code:m.invalid_string,message:a.message}),t.dirty()):l.assertNever(a);return{status:t.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:m.invalid_string,...A.errToObj(r)})}_addCheck(e){return new de({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...A.errToObj(e)})}url(e){return this._addCheck({kind:"url",...A.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...A.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...A.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...A.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...A.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...A.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...A.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...A.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...A.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...A.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...A.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...A.errToObj(e)})}datetime(e){var t,r;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(r=null==e?void 0:e.local)&&void 0!==r&&r,...A.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...A.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...A.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...A.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...A.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...A.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...A.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...A.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...A.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...A.errToObj(t)})}nonempty(e){return this.min(1,A.errToObj(e))}trim(){return new de({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new de({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new de({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function ce(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,a=r>n?r:n;return parseInt(e.toFixed(a).replace(".",""))%parseInt(t.toFixed(a).replace(".",""))/Math.pow(10,a)}de.create=e=>{var t;return new de({checks:[],typeName:Qe.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...$(e)})};class ue extends L{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==h.number){const t=this._getOrReturnCtx(e);return b(t,{code:m.invalid_type,expected:h.number,received:t.parsedType}),x}let t;const r=new k;for(const n of this._def.checks)if("int"===n.kind)l.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),b(t,{code:m.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty());else if("min"===n.kind){(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),b(t,{code:m.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty())}else if("max"===n.kind){(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),b(t,{code:m.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty())}else"multipleOf"===n.kind?0!==ce(e.data,n.value)&&(t=this._getOrReturnCtx(e,t),b(t,{code:m.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),b(t,{code:m.not_finite,message:n.message}),r.dirty()):l.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,A.toString(t))}gt(e,t){return this.setLimit("min",e,!1,A.toString(t))}lte(e,t){return this.setLimit("max",e,!0,A.toString(t))}lt(e,t){return this.setLimit("max",e,!1,A.toString(t))}setLimit(e,t,r,n){return new ue({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:A.toString(n)}]})}_addCheck(e){return new ue({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:A.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:A.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:A.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:A.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:A.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:A.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:A.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:A.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:A.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&l.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}ue.create=e=>new ue({checks:[],typeName:Qe.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...$(e)});class le extends L{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch(n){return this._getInvalidInput(e)}if(this._getType(e)!==h.bigint)return this._getInvalidInput(e);let t;const r=new k;for(const a of this._def.checks)if("min"===a.kind){(a.inclusive?e.data<a.value:e.data<=a.value)&&(t=this._getOrReturnCtx(e,t),b(t,{code:m.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),r.dirty())}else if("max"===a.kind){(a.inclusive?e.data>a.value:e.data>=a.value)&&(t=this._getOrReturnCtx(e,t),b(t,{code:m.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),r.dirty())}else"multipleOf"===a.kind?e.data%a.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),b(t,{code:m.not_multiple_of,multipleOf:a.value,message:a.message}),r.dirty()):l.assertNever(a);return{status:r.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return b(t,{code:m.invalid_type,expected:h.bigint,received:t.parsedType}),x}gte(e,t){return this.setLimit("min",e,!0,A.toString(t))}gt(e,t){return this.setLimit("min",e,!1,A.toString(t))}lte(e,t){return this.setLimit("max",e,!0,A.toString(t))}lt(e,t){return this.setLimit("max",e,!1,A.toString(t))}setLimit(e,t,r,n){return new le({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:A.toString(n)}]})}_addCheck(e){return new le({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:A.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:A.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:A.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:A.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:A.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}le.create=e=>{var t;return new le({checks:[],typeName:Qe.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...$(e)})};class pe extends L{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==h.boolean){const t=this._getOrReturnCtx(e);return b(t,{code:m.invalid_type,expected:h.boolean,received:t.parsedType}),x}return T(e.data)}}pe.create=e=>new pe({typeName:Qe.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...$(e)});class he extends L{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==h.date){const t=this._getOrReturnCtx(e);return b(t,{code:m.invalid_type,expected:h.date,received:t.parsedType}),x}if(isNaN(e.data.getTime())){return b(this._getOrReturnCtx(e),{code:m.invalid_date}),x}const t=new k;let r;for(const n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(r=this._getOrReturnCtx(e,r),b(r,{code:m.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),t.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(r=this._getOrReturnCtx(e,r),b(r,{code:m.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),t.dirty()):l.assertNever(n);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new he({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:A.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:A.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}he.create=e=>new he({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:Qe.ZodDate,...$(e)});class fe extends L{_parse(e){if(this._getType(e)!==h.symbol){const t=this._getOrReturnCtx(e);return b(t,{code:m.invalid_type,expected:h.symbol,received:t.parsedType}),x}return T(e.data)}}fe.create=e=>new fe({typeName:Qe.ZodSymbol,...$(e)});class me extends L{_parse(e){if(this._getType(e)!==h.undefined){const t=this._getOrReturnCtx(e);return b(t,{code:m.invalid_type,expected:h.undefined,received:t.parsedType}),x}return T(e.data)}}me.create=e=>new me({typeName:Qe.ZodUndefined,...$(e)});class ye extends L{_parse(e){if(this._getType(e)!==h.null){const t=this._getOrReturnCtx(e);return b(t,{code:m.invalid_type,expected:h.null,received:t.parsedType}),x}return T(e.data)}}ye.create=e=>new ye({typeName:Qe.ZodNull,...$(e)});class ge extends L{constructor(){super(...arguments),this._any=!0}_parse(e){return T(e.data)}}ge.create=e=>new ge({typeName:Qe.ZodAny,...$(e)});class ve extends L{constructor(){super(...arguments),this._unknown=!0}_parse(e){return T(e.data)}}ve.create=e=>new ve({typeName:Qe.ZodUnknown,...$(e)});class _e extends L{_parse(e){const t=this._getOrReturnCtx(e);return b(t,{code:m.invalid_type,expected:h.never,received:t.parsedType}),x}}_e.create=e=>new _e({typeName:Qe.ZodNever,...$(e)});class we extends L{_parse(e){if(this._getType(e)!==h.undefined){const t=this._getOrReturnCtx(e);return b(t,{code:m.invalid_type,expected:h.void,received:t.parsedType}),x}return T(e.data)}}we.create=e=>new we({typeName:Qe.ZodVoid,...$(e)});class be extends L{_parse(e){const{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==h.array)return b(t,{code:m.invalid_type,expected:h.array,received:t.parsedType}),x;if(null!==n.exactLength){const e=t.data.length>n.exactLength.value,a=t.data.length<n.exactLength.value;(e||a)&&(b(t,{code:e?m.too_big:m.too_small,minimum:a?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(b(t,{code:m.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(b(t,{code:m.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new R(t,e,t.path,r)))).then(e=>k.mergeArray(r,e));const a=[...t.data].map((e,r)=>n.type._parseSync(new R(t,e,t.path,r)));return k.mergeArray(r,a)}get element(){return this._def.type}min(e,t){return new be({...this._def,minLength:{value:e,message:A.toString(t)}})}max(e,t){return new be({...this._def,maxLength:{value:e,message:A.toString(t)}})}length(e,t){return new be({...this._def,exactLength:{value:e,message:A.toString(t)}})}nonempty(e){return this.min(1,e)}}function ke(e){if(e instanceof xe){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=Ue.create(ke(n))}return new xe({...e._def,shape:()=>t})}return e instanceof be?new be({...e._def,type:ke(e.element)}):e instanceof Ue?Ue.create(ke(e.unwrap())):e instanceof ze?ze.create(ke(e.unwrap())):e instanceof Ne?Ne.create(e.items.map(e=>ke(e))):e}be.create=(e,t)=>new be({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Qe.ZodArray,...$(t)});class xe extends L{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=l.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==h.object){const t=this._getOrReturnCtx(e);return b(t,{code:m.invalid_type,expected:h.object,received:t.parsedType}),x}const{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof _e&&"strip"===this._def.unknownKeys))for(const o in r.data)a.includes(o)||s.push(o);const i=[];for(const o of a){const e=n[o],t=r.data[o];i.push({key:{status:"valid",value:o},value:e._parse(new R(r,t,r.path,o)),alwaysSet:o in r.data})}if(this._def.catchall instanceof _e){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of s)i.push({key:{status:"valid",value:t},value:{status:"valid",value:r.data[t]}});else if("strict"===e)s.length>0&&(b(r,{code:m.unrecognized_keys,keys:s}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of s){const n=r.data[t];i.push({key:{status:"valid",value:t},value:e._parse(new R(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const e=[];for(const t of i){const r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>k.mergeObjectSync(t,e)):k.mergeObjectSync(t,i)}get shape(){return this._def.shape()}strict(e){return A.errToObj,new xe({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,a,s,i;const o=null!==(s=null===(a=(n=this._def).errorMap)||void 0===a?void 0:a.call(n,t,r).message)&&void 0!==s?s:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(i=A.errToObj(e).message)&&void 0!==i?i:o}:{message:o}}}:{}})}strip(){return new xe({...this._def,unknownKeys:"strip"})}passthrough(){return new xe({...this._def,unknownKeys:"passthrough"})}extend(e){return new xe({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new xe({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Qe.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new xe({...this._def,catchall:e})}pick(e){const t={};return l.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])}),new xe({...this._def,shape:()=>t})}omit(e){const t={};return l.objectKeys(this.shape).forEach(r=>{e[r]||(t[r]=this.shape[r])}),new xe({...this._def,shape:()=>t})}deepPartial(){return ke(this)}partial(e){const t={};return l.objectKeys(this.shape).forEach(r=>{const n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}),new xe({...this._def,shape:()=>t})}required(e){const t={};return l.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof Ue;)e=e._def.innerType;t[r]=e}}),new xe({...this._def,shape:()=>t})}keyof(){return Fe(l.objectKeys(this.shape))}}xe.create=(e,t)=>new xe({shape:()=>e,unknownKeys:"strip",catchall:_e.create(),typeName:Qe.ZodObject,...$(t)}),xe.strictCreate=(e,t)=>new xe({shape:()=>e,unknownKeys:"strict",catchall:_e.create(),typeName:Qe.ZodObject,...$(t)}),xe.lazycreate=(e,t)=>new xe({shape:e,unknownKeys:"strip",catchall:_e.create(),typeName:Qe.ZodObject,...$(t)});class Se extends L{_parse(e){const{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{const r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const r=e.map(e=>new y(e.ctx.common.issues));return b(t,{code:m.invalid_union,unionErrors:r}),x});{let e;const n=[];for(const s of r){const r={...t,common:{...t.common,issues:[]},parent:null},a=s._parseSync({data:t.data,path:t.path,parent:r});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const a=n.map(e=>new y(e));return b(t,{code:m.invalid_union,unionErrors:a}),x}}get options(){return this._def.options}}Se.create=(e,t)=>new Se({options:e,typeName:Qe.ZodUnion,...$(t)});const Te=e=>e instanceof Ie?Te(e.schema):e instanceof De?Te(e.innerType()):e instanceof Re?[e.value]:e instanceof $e?e.options:e instanceof Le?l.objectValues(e.enum):e instanceof qe?Te(e._def.innerType):e instanceof me?[void 0]:e instanceof ye?[null]:e instanceof Ue?[void 0,...Te(e.unwrap())]:e instanceof ze?[null,...Te(e.unwrap())]:e instanceof We||e instanceof Je?Te(e.unwrap()):e instanceof Ve?Te(e._def.innerType):[];class Ee extends L{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==h.object)return b(t,{code:m.invalid_type,expected:h.object,received:t.parsedType}),x;const r=this.discriminator,n=t.data[r],a=this.optionsMap.get(n);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(b(t,{code:m.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),x)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){const n=new Map;for(const a of t){const t=Te(a.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const r of t){if(n.has(r))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);n.set(r,a)}}return new Ee({typeName:Qe.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...$(r)})}}function Oe(e,t){const r=f(e),n=f(t);if(e===t)return{valid:!0,data:e};if(r===h.object&&n===h.object){const r=l.objectKeys(t),n=l.objectKeys(e).filter(e=>-1!==r.indexOf(e)),a={...e,...t};for(const s of n){const r=Oe(e[s],t[s]);if(!r.valid)return{valid:!1};a[s]=r.data}return{valid:!0,data:a}}if(r===h.array&&n===h.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let n=0;n<e.length;n++){const a=Oe(e[n],t[n]);if(!a.valid)return{valid:!1};r.push(a.data)}return{valid:!0,data:r}}return r===h.date&&n===h.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}class Ze extends L{_parse(e){const{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(E(e)||E(n))return x;const a=Oe(e.value,n.value);return a.valid?((O(e)||O(n))&&t.dirty(),{status:t.value,value:a.data}):(b(r,{code:m.invalid_intersection_types}),x)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Ze.create=(e,t,r)=>new Ze({left:e,right:t,typeName:Qe.ZodIntersection,...$(r)});class Ne extends L{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==h.array)return b(r,{code:m.invalid_type,expected:h.array,received:r.parsedType}),x;if(r.data.length<this._def.items.length)return b(r,{code:m.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),x;!this._def.rest&&r.data.length>this._def.items.length&&(b(r,{code:m.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const n=[...r.data].map((e,t)=>{const n=this._def.items[t]||this._def.rest;return n?n._parse(new R(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>k.mergeArray(t,e)):k.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new Ne({...this._def,rest:e})}}Ne.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ne({items:e,typeName:Qe.ZodTuple,rest:null,...$(t)})};class je extends L{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==h.object)return b(r,{code:m.invalid_type,expected:h.object,received:r.parsedType}),x;const n=[],a=this._def.keyType,s=this._def.valueType;for(const i in r.data)n.push({key:a._parse(new R(r,i,r.path,i)),value:s._parse(new R(r,r.data[i],r.path,i)),alwaysSet:i in r.data});return r.common.async?k.mergeObjectAsync(t,n):k.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new je(t instanceof L?{keyType:e,valueType:t,typeName:Qe.ZodRecord,...$(r)}:{keyType:de.create(),valueType:e,typeName:Qe.ZodRecord,...$(t)})}}class Pe extends L{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==h.map)return b(r,{code:m.invalid_type,expected:h.map,received:r.parsedType}),x;const n=this._def.keyType,a=this._def.valueType,s=[...r.data.entries()].map(([e,t],s)=>({key:n._parse(new R(r,e,r.path,[s,"key"])),value:a._parse(new R(r,t,r.path,[s,"value"]))}));if(r.common.async){const e=new Map;return Promise.resolve().then(async()=>{for(const r of s){const n=await r.key,a=await r.value;if("aborted"===n.status||"aborted"===a.status)return x;"dirty"!==n.status&&"dirty"!==a.status||t.dirty(),e.set(n.value,a.value)}return{status:t.value,value:e}})}{const e=new Map;for(const r of s){const n=r.key,a=r.value;if("aborted"===n.status||"aborted"===a.status)return x;"dirty"!==n.status&&"dirty"!==a.status||t.dirty(),e.set(n.value,a.value)}return{status:t.value,value:e}}}}Pe.create=(e,t,r)=>new Pe({valueType:t,keyType:e,typeName:Qe.ZodMap,...$(r)});class Ae extends L{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==h.set)return b(r,{code:m.invalid_type,expected:h.set,received:r.parsedType}),x;const n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(b(r,{code:m.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(b(r,{code:m.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());const a=this._def.valueType;function s(e){const r=new Set;for(const n of e){if("aborted"===n.status)return x;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}const i=[...r.data.values()].map((e,t)=>a._parse(new R(r,e,r.path,t)));return r.common.async?Promise.all(i).then(e=>s(e)):s(i)}min(e,t){return new Ae({...this._def,minSize:{value:e,message:A.toString(t)}})}max(e,t){return new Ae({...this._def,maxSize:{value:e,message:A.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Ae.create=(e,t)=>new Ae({valueType:e,minSize:null,maxSize:null,typeName:Qe.ZodSet,...$(t)});class Ce extends L{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==h.function)return b(t,{code:m.invalid_type,expected:h.function,received:t.parsedType}),x;function r(e,r){return w({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,_(),g].filter(e=>!!e),issueData:{code:m.invalid_arguments,argumentsError:r}})}function n(e,r){return w({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,_(),g].filter(e=>!!e),issueData:{code:m.invalid_return_type,returnTypeError:r}})}const a={errorMap:t.common.contextualErrorMap},s=t.data;if(this._def.returns instanceof Me){const e=this;return T(async function(...t){const i=new y([]),o=await e._def.args.parseAsync(t,a).catch(e=>{throw i.addIssue(r(t,e)),i}),d=await Reflect.apply(s,this,o);return await e._def.returns._def.type.parseAsync(d,a).catch(e=>{throw i.addIssue(n(d,e)),i})})}{const e=this;return T(function(...t){const i=e._def.args.safeParse(t,a);if(!i.success)throw new y([r(t,i.error)]);const o=Reflect.apply(s,this,i.data),d=e._def.returns.safeParse(o,a);if(!d.success)throw new y([n(o,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Ce({...this._def,args:Ne.create(e).rest(ve.create())})}returns(e){return new Ce({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new Ce({args:e||Ne.create([]).rest(ve.create()),returns:t||ve.create(),typeName:Qe.ZodFunction,...$(r)})}}class Ie extends L{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Ie.create=(e,t)=>new Ie({getter:e,typeName:Qe.ZodLazy,...$(t)});class Re extends L{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return b(t,{received:t.data,code:m.invalid_literal,expected:this._def.value}),x}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Fe(e,t){return new $e({values:e,typeName:Qe.ZodEnum,...$(t)})}Re.create=(e,t)=>new Re({value:e,typeName:Qe.ZodLiteral,...$(t)});class $e extends L{constructor(){super(...arguments),C.set(this,void 0)}_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),r=this._def.values;return b(t,{expected:l.joinValues(r),received:t.parsedType,code:m.invalid_type}),x}if(j(this,C)||P(this,C,new Set(this._def.values)),!j(this,C).has(e.data)){const t=this._getOrReturnCtx(e),r=this._def.values;return b(t,{received:t.data,code:m.invalid_enum_value,options:r}),x}return T(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return $e.create(e,{...this._def,...t})}exclude(e,t=this._def){return $e.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}C=new WeakMap,$e.create=Fe;class Le extends L{constructor(){super(...arguments),I.set(this,void 0)}_parse(e){const t=l.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==h.string&&r.parsedType!==h.number){const e=l.objectValues(t);return b(r,{expected:l.joinValues(e),received:r.parsedType,code:m.invalid_type}),x}if(j(this,I)||P(this,I,new Set(l.getValidEnumValues(this._def.values))),!j(this,I).has(e.data)){const e=l.objectValues(t);return b(r,{received:r.data,code:m.invalid_enum_value,options:e}),x}return T(e.data)}get enum(){return this._def.values}}I=new WeakMap,Le.create=(e,t)=>new Le({values:e,typeName:Qe.ZodNativeEnum,...$(t)});class Me extends L{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==h.promise&&!1===t.common.async)return b(t,{code:m.invalid_type,expected:h.promise,received:t.parsedType}),x;const r=t.parsedType===h.promise?t.data:Promise.resolve(t.data);return T(r.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}Me.create=(e,t)=>new Me({type:e,typeName:Qe.ZodPromise,...$(t)});class De extends L{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Qe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,a={addIssue:e=>{b(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),"preprocess"===n.type){const e=n.transform(r.data,a);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return x;const n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?x:"dirty"===n.status||"dirty"===t.value?S(n.value):n});{if("aborted"===t.value)return x;const n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?x:"dirty"===n.status||"dirty"===t.value?S(n.value):n}}if("refinement"===n.type){const e=e=>{const t=n.refinement(e,a);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===r.common.async){const n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?x:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?x:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))))}if("transform"===n.type){if(!1===r.common.async){const e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Z(e))return e;const s=n.transform(e.value,a);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:s}}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>Z(e)?Promise.resolve(n.transform(e.value,a)).then(e=>({status:t.value,value:e})):e)}l.assertNever(n)}}De.create=(e,t,r)=>new De({schema:e,typeName:Qe.ZodEffects,effect:t,...$(r)}),De.createWithPreprocess=(e,t,r)=>new De({schema:t,effect:{type:"preprocess",transform:e},typeName:Qe.ZodEffects,...$(r)});class Ue extends L{_parse(e){return this._getType(e)===h.undefined?T(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ue.create=(e,t)=>new Ue({innerType:e,typeName:Qe.ZodOptional,...$(t)});class ze extends L{_parse(e){return this._getType(e)===h.null?T(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ze.create=(e,t)=>new ze({innerType:e,typeName:Qe.ZodNullable,...$(t)});class qe extends L{_parse(e){const{ctx:t}=this._processInputParams(e);let r=t.data;return t.parsedType===h.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}qe.create=(e,t)=>new qe({innerType:e,typeName:Qe.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...$(t)});class Ve extends L{_parse(e){const{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return N(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new y(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new y(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ve.create=(e,t)=>new Ve({innerType:e,typeName:Qe.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...$(t)});class He extends L{_parse(e){if(this._getType(e)!==h.nan){const t=this._getOrReturnCtx(e);return b(t,{code:m.invalid_type,expected:h.nan,received:t.parsedType}),x}return{status:"valid",value:e.data}}}He.create=e=>new He({typeName:Qe.ZodNaN,...$(e)});const Be=Symbol("zod_brand");class We extends L{_parse(e){const{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class Ke extends L{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?x:"dirty"===e.status?(t.dirty(),S(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})()}{const e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?x:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new Ke({in:e,out:t,typeName:Qe.ZodPipeline})}}class Je extends L{_parse(e){const t=this._def.innerType._parse(e),r=e=>(Z(e)&&(e.value=Object.freeze(e.value)),e);return N(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function Ye(e,t){const r="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof r?{message:r}:r}function Ge(e,t={},r){return e?ge.create().superRefine((n,a)=>{var s,i;const o=e(n);if(o instanceof Promise)return o.then(e=>{var s,i;if(!e){const e=Ye(t,n),o=null===(i=null!==(s=e.fatal)&&void 0!==s?s:r)||void 0===i||i;a.addIssue({code:"custom",...e,fatal:o})}});if(!o){const e=Ye(t,n),o=null===(i=null!==(s=e.fatal)&&void 0!==s?s:r)||void 0===i||i;a.addIssue({code:"custom",...e,fatal:o})}}):ge.create()}Je.create=(e,t)=>new Je({innerType:e,typeName:Qe.ZodReadonly,...$(t)});const Xe={object:xe.lazycreate};var Qe;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(Qe||(Qe={}));const et=de.create,tt=ue.create,rt=He.create,nt=le.create,at=pe.create,st=he.create,it=fe.create,ot=me.create,dt=ye.create,ct=ge.create,ut=ve.create,lt=_e.create,pt=we.create,ht=be.create,ft=xe.create,mt=xe.strictCreate,yt=Se.create,gt=Ee.create,vt=Ze.create,_t=Ne.create,wt=je.create,bt=Pe.create,kt=Ae.create,xt=Ce.create,St=Ie.create,Tt=Re.create,Et=$e.create,Ot=Le.create,Zt=Me.create,Nt=De.create,jt=Ue.create,Pt=ze.create,At=De.createWithPreprocess,Ct=Ke.create,It={string:e=>de.create({...e,coerce:!0}),number:e=>ue.create({...e,coerce:!0}),boolean:e=>pe.create({...e,coerce:!0}),bigint:e=>le.create({...e,coerce:!0}),date:e=>he.create({...e,coerce:!0})},Rt=x;var Ft=Object.freeze({__proto__:null,defaultErrorMap:g,setErrorMap:function(e){v=e},getErrorMap:_,makeIssue:w,EMPTY_PATH:[],addIssueToContext:b,ParseStatus:k,INVALID:x,DIRTY:S,OK:T,isAborted:E,isDirty:O,isValid:Z,isAsync:N,get util(){return l},get objectUtil(){return p},ZodParsedType:h,getParsedType:f,ZodType:L,datetimeRegex:ae,ZodString:de,ZodNumber:ue,ZodBigInt:le,ZodBoolean:pe,ZodDate:he,ZodSymbol:fe,ZodUndefined:me,ZodNull:ye,ZodAny:ge,ZodUnknown:ve,ZodNever:_e,ZodVoid:we,ZodArray:be,ZodObject:xe,ZodUnion:Se,ZodDiscriminatedUnion:Ee,ZodIntersection:Ze,ZodTuple:Ne,ZodRecord:je,ZodMap:Pe,ZodSet:Ae,ZodFunction:Ce,ZodLazy:Ie,ZodLiteral:Re,ZodEnum:$e,ZodNativeEnum:Le,ZodPromise:Me,ZodEffects:De,ZodTransformer:De,ZodOptional:Ue,ZodNullable:ze,ZodDefault:qe,ZodCatch:Ve,ZodNaN:He,BRAND:Be,ZodBranded:We,ZodPipeline:Ke,ZodReadonly:Je,custom:Ge,Schema:L,ZodSchema:L,late:Xe,get ZodFirstPartyTypeKind(){return Qe},coerce:It,any:ct,array:ht,bigint:nt,boolean:at,date:st,discriminatedUnion:gt,effect:Nt,enum:Et,function:xt,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>Ge(t=>t instanceof e,t),intersection:vt,lazy:St,literal:Tt,map:bt,nan:rt,nativeEnum:Ot,never:lt,null:dt,nullable:Pt,number:tt,object:ft,oboolean:()=>at().optional(),onumber:()=>tt().optional(),optional:jt,ostring:()=>et().optional(),pipeline:Ct,preprocess:At,promise:Zt,record:wt,set:kt,strictObject:mt,string:et,symbol:it,transformer:Nt,tuple:_t,undefined:ot,union:yt,unknown:ut,void:pt,NEVER:Rt,ZodIssueCode:m,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:y});const $t=Ft.object({detail:Ft.string()}),Lt=Ft.object({error:Ft.string()});function Mt(e){if(!e)return"Unknown error";if(e instanceof Error){const t=$t.safeParse(e.cause);return t.success?t.data.detail:function(e){const t=function(e){try{return JSON.parse(e)}catch{return e}}(e);if(!t)return e;const r=$t.safeParse(t);if(r.success)return r.data.detail;const n=Lt.safeParse(t);if(n.success)return n.data.error;return e}(e.message)}if("object"==typeof e){const t=$t.safeParse(e);if(t.success)return t.data.detail;const r=Lt.safeParse(e);if(r.success)return r.data.error}try{return JSON.stringify(e)}catch{return String(e)}}function Dt(e){return e.FS}const Ut="notebook.py",zt="/marimo",qt=Ut,Vt=e=>{const t=Dt(e);try{t.mkdirTree(zt)}catch{}t.chdir(zt)},Ht=e=>{Dt(e).mount(e.FS.filesystems.IDBFS,{root:"."},zt)},Bt=async e=>{await Yt(e,!0)},Wt=async e=>{await Yt(e,!1)},Kt=e=>{const t=Dt(e),r=`${zt}/${Ut}`;return u(t.readFile(r))},Jt=e=>{const{pyodide:t,filename:r,code:n}=e,a=Dt(t);if(r&&r!==Ut){const e=(e=>{try{return u(a.readFile(e))}catch{return null}})(r);if(e)return{code:e,filename:r}}return a.writeFile(Ut,n),{code:n,filename:Ut}};function Yt(e,t){return new Promise((r,n)=>{Dt(e).syncfs(t,e=>{e instanceof Error?n(e):r()})})}var Gt,Xt=Object.defineProperty,Qt=(e,t)=>Xt(e,"name",{value:t,configurable:!0}),er=(Gt=function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')},typeof require<"u"?require:typeof Proxy<"u"?new Proxy(Gt,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):Gt);function tr(e){return!isNaN(parseFloat(e))&&isFinite(e)}function rr(e){return e.charAt(0).toUpperCase()+e.substring(1)}function nr(e){return function(){return this[e]}}Qt(tr,"_isNumber"),Qt(rr,"_capitalize"),Qt(nr,"_getter");var ar,sr,ir=["isConstructor","isEval","isNative","isToplevel"],or=["columnNumber","lineNumber"],dr=["fileName","functionName","source"],cr=ir.concat(or,dr,["args"],["evalOrigin"]);function ur(e){if(e)for(var t=0;t<cr.length;t++)void 0!==e[cr[t]]&&this["set"+rr(cr[t])](e[cr[t]])}for(Qt(ur,"StackFrame"),ur.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof ur)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new ur(e)}},toString:function(){var e=this.getFileName()||"",t=this.getLineNumber()||"",r=this.getColumnNumber()||"",n=this.getFunctionName()||"";return this.getIsEval()?e?"[eval] ("+e+":"+t+":"+r+")":"[eval]:"+t+":"+r:n?n+" ("+e+":"+t+":"+r+")":e+":"+t+":"+r}},ur.fromString=Qt(function(e){var t=e.indexOf("("),r=e.lastIndexOf(")"),n=e.substring(0,t),a=e.substring(t+1,r).split(","),s=e.substring(r+1);if(0===s.indexOf("@"))var i=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(s,""),o=i[1],d=i[2],c=i[3];return new ur({functionName:n,args:a||void 0,fileName:o,lineNumber:d||void 0,columnNumber:c||void 0})},"StackFrame$$fromString"),ar=0;ar<ir.length;ar++)ur.prototype["get"+rr(ir[ar])]=nr(ir[ar]),ur.prototype["set"+rr(ir[ar])]=function(e){return function(t){this[e]=!!t}}(ir[ar]);for(sr=0;sr<or.length;sr++)ur.prototype["get"+rr(or[sr])]=nr(or[sr]),ur.prototype["set"+rr(or[sr])]=function(e){return function(t){if(!tr(t))throw new TypeError(e+" must be a Number");this[e]=Number(t)}}(or[sr]);for(lr=0;lr<dr.length;lr++)ur.prototype["get"+rr(dr[lr])]=nr(dr[lr]),ur.prototype["set"+rr(dr[lr])]=function(e){return function(t){this[e]=String(t)}}(dr[lr]);var lr,pr=ur;function hr(){var e=/^\s*at .*(\S+:\d+|\(native\))/m,t=/^(eval@)?(\[native code])?$/;return{parse:Qt(function(t){if(t.stack&&t.stack.match(e))return this.parseV8OrIE(t);if(t.stack)return this.parseFFOrSafari(t);throw new Error("Cannot parse given Error object")},"ErrorStackParser$$parse"),extractLocation:Qt(function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},"ErrorStackParser$$extractLocation"),parseV8OrIE:Qt(function(t){return t.stack.split("\n").filter(function(t){return!!t.match(e)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),r=t.match(/ (\(.+\)$)/);t=r?t.replace(r[0],""):t;var n=this.extractLocation(r?r[1]:t),a=r&&t||void 0,s=["eval","<anonymous>"].indexOf(n[0])>-1?void 0:n[0];return new pr({functionName:a,fileName:s,lineNumber:n[1],columnNumber:n[2],source:e})},this)},"ErrorStackParser$$parseV8OrIE"),parseFFOrSafari:Qt(function(e){return e.stack.split("\n").filter(function(e){return!e.match(t)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new pr({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,a=this.extractLocation(e.replace(t,""));return new pr({functionName:n,fileName:a[0],lineNumber:a[1],columnNumber:a[2],source:e})},this)},"ErrorStackParser$$parseFFOrSafari")}}Qt(hr,"ErrorStackParser");var fr,mr,yr,gr,vr,_r,wr,br,kr,xr=new hr,Sr="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node&&!process.browser,Tr=Sr&&typeof module<"u"&&typeof module.exports<"u"&&typeof er<"u"&&typeof __dirname<"u",Er=Sr&&!Tr,Or=typeof Deno<"u",Zr=!Sr&&!Or,Nr=Zr&&"object"==typeof window&&"object"==typeof document&&"function"==typeof document.createElement&&"sessionStorage"in window&&"function"!=typeof importScripts,jr=Zr&&"function"==typeof importScripts&&"object"==typeof self;async function Pr(){if(!Sr||(fr=(await import("./__vite-browser-external-CIEyP2s7.js")).default,gr=await import("./__vite-browser-external-CIEyP2s7.js"),vr=await import("./__vite-browser-external-CIEyP2s7.js"),yr=(await import("./__vite-browser-external-CIEyP2s7.js")).default,mr=await import("./__vite-browser-external-CIEyP2s7.js"),wr=mr.sep,typeof er<"u"))return;let e={fs:gr,crypto:await import("./__vite-browser-external-CIEyP2s7.js"),ws:await import("./__vite-browser-external-CIEyP2s7.js"),child_process:await import("./__vite-browser-external-CIEyP2s7.js")};globalThis.require=function(t){return e[t]}}function Ar(e,t){return mr.resolve(t||".",e)}function Cr(e,t){return void 0===t&&(t=location),new URL(e,t).toString()}function Ir(e,t){return e.startsWith("file://")&&(e=e.slice(7)),e.includes("://")?{response:fetch(e)}:{binary:vr.readFile(e).then(e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}}function Rr(e,t){let r=new URL(e,location);return{response:fetch(r,t?{integrity:t}:{})}}async function Fr(e,t){let{response:r,binary:n}=br(e,t);if(n)return n;let a=await r;if(!a.ok)throw new Error(`Failed to load '${e}': request failed.`);return new Uint8Array(await a.arrayBuffer())}if("object"==typeof navigator&&"string"==typeof navigator.userAgent&&-1==navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Safari"),Qt(Pr,"initNodeModules"),Qt(Ar,"node_resolvePath"),Qt(Cr,"browser_resolvePath"),_r=Sr?Ar:Cr,Sr||(wr="/"),Qt(Ir,"node_getBinaryResponse"),Qt(Rr,"browser_getBinaryResponse"),br=Sr?Ir:Rr,Qt(Fr,"loadBinaryFile"),Nr)kr=Qt(async e=>await import(e),"loadScript");else if(jr)kr=Qt(async e=>{try{globalThis.importScripts(e)}catch(Gr){if(!(Gr instanceof TypeError))throw Gr;await import(e)}},"loadScript");else{if(!Sr)throw new Error("Cannot determine runtime environment");kr=$r}async function $r(e){e.startsWith("file://")&&(e=e.slice(7)),e.includes("://")?yr.runInThisContext(await(await fetch(e)).text()):await import(fr.pathToFileURL(e).href)}async function Lr(e){if(Sr){await Pr();let t=await vr.readFile(e,{encoding:"utf8"});return JSON.parse(t)}return await(await fetch(e)).json()}async function Mr(){if(Tr)return __dirname;let e;try{throw new Error}catch(n){e=n}let t=xr.parse(e)[0].fileName;if(Sr&&!t.startsWith("file://")&&(t=`file://${t}`),Er){let e=await import("./__vite-browser-external-CIEyP2s7.js");return(await import("./__vite-browser-external-CIEyP2s7.js")).fileURLToPath(e.dirname(t))}let r=t.lastIndexOf(wr);if(-1===r)throw new Error("Could not extract indexURL path from pyodide module location");return t.slice(0,r)}function Dr(e){let t=e.FS,r=e.FS.filesystems.MEMFS,n=e.PATH,a={DIR_MODE:16895,FILE_MODE:33279,mount:function(e){if(!e.opts.fileSystemHandle)throw new Error("opts.fileSystemHandle is required");return r.mount.apply(null,arguments)},syncfs:async(e,t,r)=>{try{let n=a.getLocalSet(e),s=await a.getRemoteSet(e),i=t?s:n,o=t?n:s;await a.reconcile(e,i,o),r(null)}catch(n){r(n)}},getLocalSet:e=>{let r=Object.create(null);function a(e){return"."!==e&&".."!==e}function s(e){return t=>n.join2(e,t)}Qt(a,"isRealDir"),Qt(s,"toAbsolute");let i=t.readdir(e.mountpoint).filter(a).map(s(e.mountpoint));for(;i.length;){let e=i.pop(),n=t.stat(e);t.isDir(n.mode)&&i.push.apply(i,t.readdir(e).filter(a).map(s(e))),r[e]={timestamp:n.mtime,mode:n.mode}}return{type:"local",entries:r}},getRemoteSet:async e=>{let t=Object.create(null),r=await Ur(e.opts.fileSystemHandle);for(let[s,i]of r)"."!==s&&(t[n.join2(e.mountpoint,s)]={timestamp:"file"===i.kind?new Date((await i.getFile()).lastModified):new Date,mode:"file"===i.kind?a.FILE_MODE:a.DIR_MODE});return{type:"remote",entries:t,handles:r}},loadLocalEntry:e=>{let n=t.lookupPath(e).node,a=t.stat(e);if(t.isDir(a.mode))return{timestamp:a.mtime,mode:a.mode};if(t.isFile(a.mode))return n.contents=r.getFileDataAsTypedArray(n),{timestamp:a.mtime,mode:a.mode,contents:n.contents};throw new Error("node type not supported")},storeLocalEntry:(e,r)=>{if(t.isDir(r.mode))t.mkdirTree(e,r.mode);else{if(!t.isFile(r.mode))throw new Error("node type not supported");t.writeFile(e,r.contents,{canOwn:!0})}t.chmod(e,r.mode),t.utime(e,r.timestamp,r.timestamp)},removeLocalEntry:e=>{var r=t.stat(e);t.isDir(r.mode)?t.rmdir(e):t.isFile(r.mode)&&t.unlink(e)},loadRemoteEntry:async e=>{if("file"===e.kind){let t=await e.getFile();return{contents:new Uint8Array(await t.arrayBuffer()),mode:a.FILE_MODE,timestamp:new Date(t.lastModified)}}if("directory"===e.kind)return{mode:a.DIR_MODE,timestamp:new Date};throw new Error("unknown kind: "+e.kind)},storeRemoteEntry:async(e,r,a)=>{let s=e.get(n.dirname(r)),i=t.isFile(a.mode)?await s.getFileHandle(n.basename(r),{create:!0}):await s.getDirectoryHandle(n.basename(r),{create:!0});if("file"===i.kind){let e=await i.createWritable();await e.write(a.contents),await e.close()}e.set(r,i)},removeRemoteEntry:async(e,t)=>{await e.get(n.dirname(t)).removeEntry(n.basename(t)),e.delete(t)},reconcile:async(e,r,s)=>{let i=0,o=[];Object.keys(r.entries).forEach(function(e){let n=r.entries[e],a=s.entries[e];(!a||t.isFile(n.mode)&&n.timestamp.getTime()>a.timestamp.getTime())&&(o.push(e),i++)}),o.sort();let d=[];if(Object.keys(s.entries).forEach(function(e){r.entries[e]||(d.push(e),i++)}),d.sort().reverse(),!i)return;let c="remote"===r.type?r.handles:s.handles;for(let t of o){let r=n.normalize(t.replace(e.mountpoint,"/")).substring(1);if("local"===s.type){let e=c.get(r),n=await a.loadRemoteEntry(e);a.storeLocalEntry(t,n)}else{let e=a.loadLocalEntry(t);await a.storeRemoteEntry(c,r,e)}}for(let t of d)if("local"===s.type)a.removeLocalEntry(t);else{let r=n.normalize(t.replace(e.mountpoint,"/")).substring(1);await a.removeRemoteEntry(c,r)}}};e.FS.filesystems.NATIVEFS_ASYNC=a}Qt($r,"nodeLoadScript"),Qt(Lr,"loadLockFile"),Qt(Mr,"calculateDirname"),Qt(Dr,"initializeNativeFS");var Ur=Qt(async e=>{let t=[];async function r(e){for await(let n of e.values())t.push(n),"directory"===n.kind&&await r(n)}Qt(r,"collect"),await r(e);let n=new Map;n.set(".",e);for(let a of t){let t=(await e.resolve(a)).join("/");n.set(t,a)}return n},"getFsHandles");function zr(e){let t={noImageDecoding:!0,noAudioDecoding:!0,noWasmDecoding:!1,preRun:Wr(e),quit(e,r){throw t.exited={status:e,toThrow:r},r},print:e.stdout,printErr:e.stderr,thisProgram:e._sysExecutable,arguments:e.args,API:{config:e},locateFile:t=>e.indexURL+t,instantiateWasm:Kr(e.indexURL)};return t}function qr(e){return function(t){try{t.FS.mkdirTree(e)}catch(r){console.error(`Error occurred while making a home directory '${e}':`),console.error(r),console.error("Using '/' for a home directory instead"),e="/"}t.FS.chdir(e)}}function Vr(e){return function(t){Object.assign(t.ENV,e)}}function Hr(e){return e?[async t=>{t.addRunDependency("fsInitHook");try{await e(t.FS,{sitePackages:t.API.sitePackages})}finally{t.removeRunDependency("fsInitHook")}}]:[]}function Br(e){let t=Fr(e);return async e=>{let r=e._py_version_major(),n=e._py_version_minor();e.FS.mkdirTree("/lib"),e.API.sitePackages=`/lib/python${r}.${n}/site-packages`,e.FS.mkdirTree(e.API.sitePackages),e.addRunDependency("install-stdlib");try{let a=await t;e.FS.writeFile(`/lib/python${r}${n}.zip`,a)}catch(a){console.error("Error occurred while installing the standard library:"),console.error(a)}finally{e.removeRunDependency("install-stdlib")}}}function Wr(e){let t;return t=null!=e.stdLibURL?e.stdLibURL:e.indexURL+"python_stdlib.zip",[...Hr(e.fsInit),Br(t),qr(e.env.HOME),Vr(e.env),Dr]}function Kr(e){if(typeof WasmOffsetConverter<"u")return;let{binary:t,response:r}=br(e+"pyodide.asm.wasm");return function(e,n){return async function(){try{let a;a=r?await WebAssembly.instantiateStreaming(r,e):await WebAssembly.instantiate(await t,e);let{instance:s,module:i}=a;n(s,i)}catch(a){console.warn("wasm instantiation failed!"),console.warn(a)}}(),{}}}Qt(zr,"createSettings"),Qt(qr,"createHomeDirectory"),Qt(Vr,"setEnvironment"),Qt(Hr,"callFsInitHook"),Qt(Br,"installStdlib"),Qt(Wr,"getFileSystemInitializationFuncs"),Qt(Kr,"getInstantiateWasmFunc");var Jr="0.27.5";async function Yr(e={}){var t,r;await Pr();let n=e.indexURL||await Mr();n=_r(n),n.endsWith("/")||(n+="/"),e.indexURL=n;let a={fullStdLib:!1,jsglobals:globalThis,stdin:globalThis.prompt?globalThis.prompt:void 0,lockFileURL:n+"pyodide-lock.json",args:[],env:{},packageCacheDir:n,packages:[],enableRunUntilComplete:!1,checkAPIVersion:!0,BUILD_ID:"bd0388b62e760f8ba04185eb443fec955f25434f49c7b951efe5b1f792dbe5d4"},s=Object.assign(a,e);(t=s.env).HOME??(t.HOME="/home/pyodide"),(r=s.env).PYTHONINSPECT??(r.PYTHONINSPECT="1");let i,o=zr(s),d=o.API;if(d.lockFilePromise=Lr(s.lockFileURL),"function"!=typeof _createPyodideModule){let e=`${s.indexURL}pyodide.asm.js`;await kr(e)}if(e._loadSnapshot){let t=await e._loadSnapshot;i=ArrayBuffer.isView(t)?t:new Uint8Array(t),o.noInitialRun=!0,o.INITIAL_MEMORY=i.length}let c,u=await _createPyodideModule(o);if(o.exited)throw o.exited.toThrow;if(e.pyproxyToStringRepr&&d.setPyProxyToStringMethod(!0),d.version!==Jr&&s.checkAPIVersion)throw new Error(`Pyodide version does not match: '${Jr}' <==> '${d.version}'. If you updated the Pyodide version, make sure you also updated the 'indexURL' parameter passed to loadPyodide.`);u.locateFile=e=>{throw new Error("Didn't expect to load any more file_packager files!")},i&&(c=d.restoreSnapshot(i));let l=d.finalizeBootstrap(c,e._snapshotDeserializer);return d.sys.path.insert(0,d.config.env.HOME),l.version.includes("dev")||d.setCdnUrl(`https://cdn.jsdelivr.net/pyodide/v${l.version}/full/`),d._pyodide.set_excepthook(),await d.packageIndexReady,d.initializeStreams(s.stdin,s.stdout,s.stderr),l}Qt(Yr,"loadPyodide");const Gr=new class{spans=[];startSpan(e,t={}){const r={name:e,startTime:Date.now(),attributes:t,end:(e="ok")=>this.endSpan(r,e)};return this.spans.push(r),r}endSpan(e,t="ok"){e.endTime=Date.now(),e.status=t}getSpans(){return this.spans}wrap(e,t,r={}){const n=this.startSpan(t||e.name,r);try{const t=e();return this.endSpan(n),t}catch(a){throw this.endSpan(n,"error"),a}}wrapAsync(e,t,r={}){return async(...n)=>{const a=this.startSpan(t||e.name,r);try{const t=await e(...n);return this.endSpan(a),t}catch(s){throw this.endSpan(a,"error"),s}}}logSpans(){}};globalThis.t=Gr;class Xr{pyodide=null;get requirePyodide(){return function(e,t){if(!e)throw new Error(t)}(this.pyodide,"Pyodide not loaded"),this.pyodide}async bootstrap(e){return await this.loadPyodideAndPackages(e)}async loadPyodideAndPackages(e){if(!Yr)throw new Error("loadPyodide is not defined");const t=Gr.startSpan("loadPyodide");try{const r=await Yr({packages:["micropip","marimo-base","Markdown","pymdown-extensions","narwhals","packaging"],_makeSnapshot:false,lockFileURL:`https://wasm.marimo.app/pyodide-lock.json?v=${e.version}&pyodide=${e.pyodideVersion}`,indexURL:`https://cdn.jsdelivr.net/pyodide/${e.pyodideVersion}/full/`});return this.pyodide=r,t.end("ok"),r}catch(r){throw c.error("Failed to load Pyodide",r),r}}async mountFilesystem(e){const t=Gr.startSpan("mountFilesystem");return Vt(this.requirePyodide),Ht(this.requirePyodide),await Bt(this.requirePyodide),t.end("ok"),Jt({pyodide:this.requirePyodide,code:e.code,filename:e.filename})}async startSession(e){const{code:t,filename:r,onMessage:n,queryParameters:a,userConfig:s}=e;self.messenger={callback:n},self.query_params=a,self.user_config=s;const i=Gr.startSpan("startSession.runPython"),o=r||qt,[d,c,u]=this.requirePyodide.runPython(`\n print("[py] Starting marimo...")\n import asyncio\n import js\n from marimo._pyodide.bootstrap import create_session, instantiate\n\n assert js.messenger, "messenger is not defined"\n assert js.query_params, "query_params is not defined"\n\n session, bridge = create_session(\n filename="${o}",\n query_params=js.query_params.to_py(),\n message_callback=js.messenger.callback,\n user_config=js.user_config.to_py(),\n )\n\n def init(auto_instantiate=True):\n instantiate(session, auto_instantiate)\n asyncio.create_task(session.start())\n\n # Find the packages to install\n with open("${o}", "r") as f:\n packages = session.find_packages(f.read())\n\n bridge, init, packages`);i.end();const l=new Set(u.toJs());return this.loadNotebookDeps(t,l).then(()=>c(s.runtime.auto_instantiate)),d}async loadNotebookDeps(e,t){const r=this.requirePyodide;e.includes("mo.sql")&&(e=`import sqlglot\n${e=`import duckdb\n${e=`import pandas\n${e}`}`}`).includes("polars")&&(e=`import pyarrow\n${e}`),e=`import pyodide_http\n${e=`import jedi\n${e=`import pygments\n${e=`import docutils\n${e}`}`}`}`;const n=[...t];let a=Gr.startSpan("pyodide.loadPackage");await r.loadPackagesFromImports(e,{errorCallback:c.error,messageCallback:c.log}),a.end(),a=Gr.startSpan("micropip.install");const s=n.filter(e=>!r.loadedPackages[e]);s.length>0&&await r.runPythonAsync(`\n import micropip\n import sys\n # Filter out builtins\n missing = [p for p in ${JSON.stringify(s)} if p not in sys.modules]\n if len(missing) > 0:\n print("Loading from micropip:", missing)\n await micropip.install(missing)\n `).catch(e=>{c.error("Failed to load packages from micropip",e)}),a.end()}}const Qr=async function(){try{const e=self.name,t=function(e){return e.includes("dev"),`v${Jr}`}(e),r=await async function(e){try{return await import(`/wasm/controller.js?version=${e}`)}catch{return new Xr}}(e);self.controller=r,self.pyodide=await r.bootstrap({version:e,pyodideVersion:t}),await(r.mountFilesystem?.({code:"",filename:null})),tn.send.initialized({})}catch(e){c.error("Error bootstrapping",e),tn.send.initializedError({error:Mt(e)})}}(),en={readFile:async e=>{await Qr;return u(self.pyodide.FS.readFile(e))},readNotebook:async()=>(await Qr,Kt(self.pyodide)),saveNotebook:async e=>{await Qr;const t=self.pyodide.runPython("\n from marimo._pyodide.bootstrap import save_file\n\n save_file\n ");await t(JSON.stringify(e),qt),await Wt(self.pyodide)}},tn=function(e){return r(e)}({transport:(rn={transportId:"marimo-transport"},a(self,rn)),requestHandler:en});var rn;tn.send("ready",{});