@juki-team/base-ui 1.5.3 → 1.5.11

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 (883) hide show
  1. package/dist/esm/{ArrowForwardIcon-D6Jfdilm.js → ArrowForwardIcon-1RdVdC78.js} +1 -1
  2. package/dist/esm/BarChart-D6_BRhr2.js +1 -0
  3. package/dist/esm/CartesianChart-CWujTVm7.js +47 -0
  4. package/dist/esm/{ChangePasswordModal-DP68K_jG.js → ChangePasswordModal-Ds3TqD5C.js} +1 -1
  5. package/dist/esm/CodeEditor-CTnPGIiF.js +1 -0
  6. package/dist/esm/CodeViewer-DKaZetL7.js +1 -0
  7. package/dist/esm/{Collapse-Bn9-0z3I.js → Collapse-cx1sfcdL.js} +1 -1
  8. package/dist/esm/DataGrid-bZJxnNpn.js +127 -0
  9. package/dist/esm/DataViewer-DpQqmjva.js +1 -0
  10. package/dist/esm/{DrawerView-D-MEVHS0.js → DrawerView-uqDkkfN3.js} +1 -1
  11. package/dist/esm/{ExcalidrawButton-CL_vPewV.js → ExcalidrawButton-DP7IRqig.js} +1 -1
  12. package/dist/esm/{GraphvizViewer-BfJg604I.js → GraphvizViewer-BGX2Z8KP.js} +1 -1
  13. package/dist/esm/ImageLoaderCropper-BfIfmEdE.js +1 -0
  14. package/dist/esm/InputCellPhoneNumber-qovO8IT4.js +1 -0
  15. package/dist/esm/{InputColor-Ch5Do1U-.js → InputColor-8DJM_wZR.js} +2 -2
  16. package/dist/esm/LineChart-vXWysFNq.js +1 -0
  17. package/dist/esm/{LoaderLayer-CXFK-kAz.js → LoaderLayer-Cv80UCdL.js} +1 -1
  18. package/dist/esm/{MdMath-DwyNLKE_.js → MdMath-D4p_cWv8.js} +1 -1
  19. package/dist/esm/MdMathEditor-BC4QqqY5.js +29 -0
  20. package/dist/esm/Popover-KQx_QYJY.js +6 -0
  21. package/dist/esm/{ReplyIcon-Dd5U6wGZ.js → ReplyIcon-BlBLARCH.js} +1 -1
  22. package/dist/esm/{SettingsIcon-BCDZw0HR.js → SettingsIcon-C3sN1TNw.js} +1 -1
  23. package/dist/esm/SlideDeck-BP-CNUhS.js +1 -0
  24. package/dist/esm/{TableEyeIcon-CDLbQapU.js → TableEyeIcon-BFfTLgKU.js} +1 -1
  25. package/dist/esm/TableOfContents-Cg9pymLO.js +1 -0
  26. package/dist/esm/Tooltip-k62JJg5n.js +1 -0
  27. package/dist/esm/UserCodeEditor-LaT3CJvU.js +61 -0
  28. package/dist/esm/{VirtualizedRowsFixed-8Wk8DRYc.js → VirtualizedRowsFixed-CN-1w7u1.js} +1 -1
  29. package/dist/esm/WorksheetAsSlides-DmGLDXtL.js +1 -0
  30. package/dist/esm/{WorksheetBodies-pHyqSVPy.js → WorksheetBodies-BYISk5yC.js} +1 -1
  31. package/dist/esm/{WorksheetContents-ByjM-HNk.js → WorksheetContents-IzJ6Cw_g.js} +1 -1
  32. package/dist/esm/WorksheetEditor-Dacb3EOk.js +1 -0
  33. package/dist/esm/WorksheetNode-2B7Rld9L.js +1 -0
  34. package/dist/esm/WorksheetViewer-BLFZouvt.js +1 -0
  35. package/dist/esm/abnfDiagram-WEYOIA3C-BEp-BJ00.js +1 -0
  36. package/dist/esm/arc-B4ps4Bee.js +1 -0
  37. package/dist/esm/architectureDiagram-ZHVYKT53-BDbBQNmT.js +1 -0
  38. package/dist/esm/basic-setup-DtpgwOSH.js +1 -0
  39. package/dist/esm/blockDiagram-RJAE7QA3-CYciK31K.js +1 -0
  40. package/dist/esm/c4Diagram-XDPPPE54-dye_nDtJ.js +1 -0
  41. package/dist/esm/channel-DdQBbu1U.js +1 -0
  42. package/dist/esm/chunk-2E7WHVMD-fBpaf8Ph.js +1 -0
  43. package/dist/esm/{chunk-QZHKN3VN-CUifo-Cb.js → chunk-2Q5K7J3B-B1dv6ovr.js} +1 -1
  44. package/dist/esm/chunk-4EMNKR2T-B10soxeX.js +1 -0
  45. package/dist/esm/{chunk-YZCP3GAM-DELqvesl.js → chunk-55XCU76K-BhN5PLeC.js} +1 -1
  46. package/dist/esm/{chunk-FMBD7UC4-DAo4g5fP.js → chunk-5VM5RSS4-DEKr6tsK.js} +1 -1
  47. package/dist/esm/{chunk-4BX2VUAB-Dc1mlsfk.js → chunk-JWPE2WC7-lyHCgozd.js} +1 -1
  48. package/dist/esm/chunk-NQOKRVIF-CLuzP2Xi.js +1 -0
  49. package/dist/esm/chunk-VQ5W62QI-MGNBKNlF.js +1 -0
  50. package/dist/esm/{chunk-55IACEB6-Csh8qgjO.js → chunk-XXDRQBXY-CIB-Pv6R.js} +1 -1
  51. package/dist/esm/chunk-ZCHMQSOR--e_zi_XA.js +1 -0
  52. package/dist/esm/classDiagram-v2-4MYWR3UA-BU3oZLY5.js +1 -0
  53. package/dist/esm/commons-BHuDJzTw.js +1 -0
  54. package/dist/esm/cose-bilkent-JH36ORCC-DdSzxxt0.js +1 -0
  55. package/dist/esm/cynefin-EF2NZ3EQ-CaJSaYBh.js +1 -0
  56. package/dist/esm/cynefinDiagram-WF24UDRP-BbPVqiW_.js +1 -0
  57. package/dist/esm/cytoscape.esm-Bt9_GGFq.js +9 -0
  58. package/dist/esm/dagre-NK4GIZVX-DLhklBxm.js +1 -0
  59. package/dist/esm/diagram-CBK3MWTC-C2Pa6CcJ.js +1 -0
  60. package/dist/esm/diagram-I5XIIV2D-D-qVVyv1.js +1 -0
  61. package/dist/esm/diagram-ODIL2UCW-QFqiGLCP.js +1 -0
  62. package/dist/esm/diagram-PFBEJUXE-UHmEOsHi.js +1 -0
  63. package/dist/esm/diagram-RJA3I4VV-CcSCqRS4.js +1 -0
  64. package/dist/esm/diagram-TYUNFSNR-DcSxaQx8.js +1 -0
  65. package/dist/esm/ebnfDiagram-V4P3TTPT-DRA2NTIs.js +1 -0
  66. package/dist/esm/elk-QONTBCTQ-Bkv5Sf8G.js +1 -0
  67. package/dist/esm/erDiagram-KYQIGQAA-Blb_MksM.js +1 -0
  68. package/dist/esm/floating-ui.core-DzsaFWsC.js +1 -0
  69. package/dist/esm/floating-ui.dom-DGDCR4EF.js +1 -0
  70. package/dist/esm/flowDiagram-IUGLLWBU-CQaJ12bg.js +1 -0
  71. package/dist/esm/ganttDiagram-R7GPNTJY-Do8IYgX5.js +1 -0
  72. package/dist/esm/gitGraphDiagram-PDYL7XHY-CAvv6VXj.js +1 -0
  73. package/dist/esm/graph-rGqC_56m.js +1 -0
  74. package/dist/esm/helpers.js +1 -1
  75. package/dist/esm/{index-CtWPxOcn.js → index-6pAHrAuD.js} +1 -1
  76. package/dist/esm/{index-D5NvcxPc.js → index-B46RgSF9.js} +1 -1
  77. package/dist/esm/{index-CB1_GL3t.js → index-B9JSZpaA.js} +1 -1
  78. package/dist/esm/{index-CpRfyO85.js → index-BDQ8194g.js} +1 -1
  79. package/dist/esm/{index-B3fb7Ita.js → index-BNvG4PUn.js} +1 -1
  80. package/dist/esm/{index-BR16hIbn.js → index-BS7YTgMe.js} +1 -1
  81. package/dist/esm/{index-CQbc3KUq.js → index-Bohl_WFx.js} +1 -1
  82. package/dist/esm/{index-DSGuayJy.js → index-BpFtavDh.js} +1 -1
  83. package/dist/esm/{index-xaEdDd13.js → index-CHVYA2P8.js} +1 -1
  84. package/dist/esm/{index-Ck9BxS1f.js → index-CHgqN-d9.js} +1 -1
  85. package/dist/esm/{index-A0sdG_JC.js → index-CJtYjUlf.js} +1 -1
  86. package/dist/esm/index-CKBtKrj5.js +1 -0
  87. package/dist/esm/{index--PWk-3Ol.js → index-CffiBbeH.js} +1 -1
  88. package/dist/esm/{index-BzjjAmh3.js → index-CiHwAkdd.js} +1 -1
  89. package/dist/esm/{index-Y09lLL_e.js → index-CmWQEzQl.js} +1 -1
  90. package/dist/esm/{index-GoUUn3QE.js → index-D5AIo8KT.js} +1 -1
  91. package/dist/esm/{index-CRfRlH9U.js → index-D6A8P_xS.js} +1 -1
  92. package/dist/esm/{index-D8zPYs0m.js → index-D9BPo-_o.js} +1 -1
  93. package/dist/esm/{index-Bw2EofiE.js → index-DBWowQHL.js} +1 -1
  94. package/dist/esm/{index-CtTbnbzM.js → index-DDBuqExW.js} +1 -1
  95. package/dist/esm/index-DTAG4nDF.js +1 -0
  96. package/dist/esm/{index-D2mDsVm5.js → index-DjrtJ8R4.js} +1 -1
  97. package/dist/esm/{index-BVw40LAx.js → index-Dz8ISdDG.js} +1 -1
  98. package/dist/esm/{index-tAJiDyYy.js → index-JPCp_Z3V.js} +1 -1
  99. package/dist/esm/{index-33u6FCUW.js → index-L4hkrldv.js} +1 -1
  100. package/dist/esm/{index-Ccq-5wm6.js → index-YYM2ZvZ6.js} +1 -1
  101. package/dist/esm/{index-o2jBRnrQ.js → index-_kF3_0-k.js} +1 -1
  102. package/dist/esm/{index-DAJdettS.js → index-mLZqgXD7.js} +1 -1
  103. package/dist/esm/{index-D_AOS7Yx.js → index-nNMK7HvL.js} +1 -1
  104. package/dist/esm/{index-QhLowdpF.js → index-vxKx70Pe.js} +1 -1
  105. package/dist/esm/{index-C9_5xd3V.js → index-wJyG4Gm6.js} +1 -1
  106. package/dist/esm/infoDiagram-MVDRKAX5-CcsrNbMy.js +1 -0
  107. package/dist/esm/isSymbol-D2gNAbOe.js +1 -0
  108. package/dist/esm/isUndefined--MLpwE__.js +1 -0
  109. package/dist/esm/ishikawaDiagram-HPEHV2GE-BSefVZjI.js +1 -0
  110. package/dist/esm/journeyDiagram-BOSHW7O7-C3Y3fTW5.js +1 -0
  111. package/dist/esm/kanban-definition-FNSA4HC5-DqDHeqOc.js +1 -0
  112. package/dist/esm/katex-ukrPy3Hx.js +1 -0
  113. package/dist/esm/{linear-BnXjbO66.js → linear-CIPQsvV7.js} +1 -1
  114. package/dist/esm/{lua-8DXOpKDz.js → lua-BvgfYBhq.js} +1 -1
  115. package/dist/esm/main.js +1 -1
  116. package/dist/esm/map-CIDWRbhc.js +1 -0
  117. package/dist/esm/mermaid.core-DKkN0L2R.js +5 -0
  118. package/dist/esm/mindmap-definition-6OY57UG3-BaT97m0e.js +1 -0
  119. package/dist/esm/nsis-BFvJq6Vq.js +1 -0
  120. package/dist/esm/pegDiagram-ECIUJNBX-BHWXjV1h.js +1 -0
  121. package/dist/esm/pieDiagram-GNMPY74T-tMRQX3HS.js +1 -0
  122. package/dist/esm/quadrantDiagram-D57K4MC3-CfbxRwkB.js +1 -0
  123. package/dist/esm/railroadDiagram-Y72NRBL7-QMN2Zgh0.js +1 -0
  124. package/dist/esm/requirementDiagram-EQYSW5RA-5SA2oZMo.js +1 -0
  125. package/dist/esm/ruby-D9chwFAN.js +1 -0
  126. package/dist/esm/sankeyDiagram-SY24JHO5-BXdQgEr6.js +1 -0
  127. package/dist/esm/sequenceDiagram-BLEHNHQU-BvWgv_Hq.js +1 -0
  128. package/dist/esm/server.js +1 -1
  129. package/dist/esm/settings.js +1 -1
  130. package/dist/esm/sizeCapture-INFHLROL-CRBg4FIP.js +1 -0
  131. package/dist/esm/stateDiagram-v2-A6IESKWZ-DOTqWcFT.js +1 -0
  132. package/dist/esm/string-DPJhNSkw.js +1 -0
  133. package/dist/esm/swimlanes-B3ENRKFQ-Dt3HxqOR.js +1 -0
  134. package/dist/esm/swimlanesDiagram-AYQRV4AK-cNbShXsw.js +1 -0
  135. package/dist/esm/throttle-tEKq3i9o.js +1 -0
  136. package/dist/esm/{time-PiK_t_Re.js → time-DP3lbwAd.js} +1 -1
  137. package/dist/esm/timeline-definition-JXYKGLGB-ChogrVVw.js +1 -0
  138. package/dist/esm/toNumber-B6ypue5Z.js +1 -0
  139. package/dist/esm/types-BqWpd51k.js +1 -0
  140. package/dist/esm/usecaseDiagram-WPOLBNNX-DAMNLFuf.js +1 -0
  141. package/dist/esm/vennDiagram-Q3Y3IDCW--qCUcJOu.js +1 -0
  142. package/dist/esm/viz-BmmZnl4P.js +9 -0
  143. package/dist/esm/wardleyDiagram-IVAIDKWA-D0f1LOLT.js +1 -0
  144. package/dist/esm/{websocket-C4G3j9Rm.js → websocket-B2hJys_Q.js} +1 -1
  145. package/dist/esm/{xlsx-XBWnafwQ.js → xlsx-BVrgZ1Ou.js} +2 -2
  146. package/dist/esm/xychartDiagram-4URNHDU4-Bkx4mxlH.js +1 -0
  147. package/dist/module-types/node_modules/.pnpm/@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747/node_modules/@milkdown/kit/lib/component/diff.d.ts +1 -0
  148. package/dist/module-types/node_modules/.pnpm/@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747/node_modules/@milkdown/kit/lib/exception.d.ts +1 -0
  149. package/dist/module-types/node_modules/.pnpm/@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747/node_modules/@milkdown/kit/lib/plugin/diff.d.ts +1 -0
  150. package/dist/module-types/node_modules/.pnpm/@milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747/node_modules/@milkdown/kit/lib/plugin/streaming.d.ts +1 -0
  151. package/dist/module-types/src/components/atoms/Client/Client.d.ts +1 -1
  152. package/dist/module-types/src/components/atoms/CopyToClipboard/CopyToClipboard.d.ts +1 -1
  153. package/dist/module-types/src/components/atoms/DateLiteral/DateLiteral.d.ts +1 -1
  154. package/dist/module-types/src/components/atoms/InputCheckbox/InputCheckbox.d.ts +1 -1
  155. package/dist/module-types/src/components/atoms/InputPassword/InputPassword.d.ts +1 -1
  156. package/dist/module-types/src/components/atoms/InputRadio/InputRadio.d.ts +1 -1
  157. package/dist/module-types/src/components/atoms/InputSelect/InputSelect.d.ts +1 -1
  158. package/dist/module-types/src/components/atoms/InputTextArea/InputTextArea.d.ts +1 -1
  159. package/dist/module-types/src/components/atoms/InputToggle/InputToggle.d.ts +1 -1
  160. package/dist/module-types/src/components/atoms/Modal/Modal.d.ts +1 -1
  161. package/dist/module-types/src/components/atoms/MultiSelect/MultiSelect.d.ts +1 -1
  162. package/dist/module-types/src/components/atoms/Select/Select.d.ts +1 -1
  163. package/dist/module-types/src/components/atoms/T/T.d.ts +1 -1
  164. package/dist/module-types/src/components/atoms/_lazy_/Collapse/Collapse.d.ts +1 -1
  165. package/dist/module-types/src/components/atoms/_lazy_/Collapse/index.d.ts +1 -1
  166. package/dist/module-types/src/components/atoms/_lazy_/InputCellPhoneNumber/InputCellPhoneNumber.d.ts +1 -1
  167. package/dist/module-types/src/components/atoms/_lazy_/InputCellPhoneNumber/index.d.ts +1 -1
  168. package/dist/module-types/src/components/atoms/_lazy_/Popover/Popover.d.ts +1 -1
  169. package/dist/module-types/src/components/atoms/_lazy_/Popover/index.d.ts +1 -1
  170. package/dist/module-types/src/components/atoms/_lazy_/Tooltip/Tooltip.d.ts +1 -1
  171. package/dist/module-types/src/components/atoms/_lazy_/Tooltip/index.d.ts +1 -1
  172. package/dist/module-types/src/components/atoms/_lazy_/VirtualizedRowsFixed/VirtualizedRowsFixed.d.ts +1 -1
  173. package/dist/module-types/src/components/atoms/_lazy_/VirtualizedRowsFixed/index.d.ts +1 -1
  174. package/dist/module-types/src/components/atoms/server/icons/SpinIcon/Spin.d.ts +1 -1
  175. package/dist/module-types/src/components/atoms/server/icons/SpinIcon/index.d.ts +1 -1
  176. package/dist/module-types/src/components/atoms/server/icons/google/AcUnitIcon.d.ts +1 -1
  177. package/dist/module-types/src/components/atoms/server/icons/google/AccountCircleIcon.d.ts +1 -1
  178. package/dist/module-types/src/components/atoms/server/icons/google/AcuteIcon.d.ts +1 -1
  179. package/dist/module-types/src/components/atoms/server/icons/google/AddColumnLeftIcon.d.ts +1 -1
  180. package/dist/module-types/src/components/atoms/server/icons/google/AddColumnRightIcon.d.ts +1 -1
  181. package/dist/module-types/src/components/atoms/server/icons/google/AddIcon.d.ts +1 -1
  182. package/dist/module-types/src/components/atoms/server/icons/google/AddPhotoAlternateIcon.d.ts +1 -1
  183. package/dist/module-types/src/components/atoms/server/icons/google/AddReactionIcon.d.ts +1 -1
  184. package/dist/module-types/src/components/atoms/server/icons/google/AddRowAboveIcon.d.ts +1 -1
  185. package/dist/module-types/src/components/atoms/server/icons/google/AddRowBelowIcon.d.ts +1 -1
  186. package/dist/module-types/src/components/atoms/server/icons/google/AdminPanelSettingsIcon.d.ts +1 -1
  187. package/dist/module-types/src/components/atoms/server/icons/google/AlarmIcon.d.ts +1 -1
  188. package/dist/module-types/src/components/atoms/server/icons/google/AppsIcon.d.ts +1 -1
  189. package/dist/module-types/src/components/atoms/server/icons/google/ArrowBackIcon.d.ts +1 -1
  190. package/dist/module-types/src/components/atoms/server/icons/google/ArrowDownwardIcon.d.ts +1 -1
  191. package/dist/module-types/src/components/atoms/server/icons/google/ArrowDropDownIcon.d.ts +1 -1
  192. package/dist/module-types/src/components/atoms/server/icons/google/ArrowDropUpIcon.d.ts +1 -1
  193. package/dist/module-types/src/components/atoms/server/icons/google/ArrowForwardIcon.d.ts +1 -1
  194. package/dist/module-types/src/components/atoms/server/icons/google/ArrowLeftIcon.d.ts +1 -1
  195. package/dist/module-types/src/components/atoms/server/icons/google/ArrowRightIcon.d.ts +1 -1
  196. package/dist/module-types/src/components/atoms/server/icons/google/ArrowUpwardIcon.d.ts +1 -1
  197. package/dist/module-types/src/components/atoms/server/icons/google/ArticleIcon.d.ts +1 -1
  198. package/dist/module-types/src/components/atoms/server/icons/google/AssignmentIcon.d.ts +1 -1
  199. package/dist/module-types/src/components/atoms/server/icons/google/AttachFileIcon.d.ts +1 -1
  200. package/dist/module-types/src/components/atoms/server/icons/google/AttachmentIcon.d.ts +1 -1
  201. package/dist/module-types/src/components/atoms/server/icons/google/AutorenewIcon.d.ts +1 -1
  202. package/dist/module-types/src/components/atoms/server/icons/google/BadgeIcon.d.ts +1 -1
  203. package/dist/module-types/src/components/atoms/server/icons/google/BoltIcon.d.ts +1 -1
  204. package/dist/module-types/src/components/atoms/server/icons/google/BubbleChartIcon.d.ts +1 -1
  205. package/dist/module-types/src/components/atoms/server/icons/google/BuildIcon.d.ts +1 -1
  206. package/dist/module-types/src/components/atoms/server/icons/google/CalendarMonthIcon.d.ts +1 -1
  207. package/dist/module-types/src/components/atoms/server/icons/google/CalendarTodayIcon.d.ts +1 -1
  208. package/dist/module-types/src/components/atoms/server/icons/google/CalendarViewWeekIcon.d.ts +1 -1
  209. package/dist/module-types/src/components/atoms/server/icons/google/CheckIcon.d.ts +1 -1
  210. package/dist/module-types/src/components/atoms/server/icons/google/ChecklistIcon.d.ts +1 -1
  211. package/dist/module-types/src/components/atoms/server/icons/google/CloseIcon.d.ts +1 -1
  212. package/dist/module-types/src/components/atoms/server/icons/google/CloudDownloadIcon.d.ts +1 -1
  213. package/dist/module-types/src/components/atoms/server/icons/google/CloudUploadIcon.d.ts +1 -1
  214. package/dist/module-types/src/components/atoms/server/icons/google/CodeBlocksIcon.d.ts +1 -1
  215. package/dist/module-types/src/components/atoms/server/icons/google/CodeIcon.d.ts +1 -1
  216. package/dist/module-types/src/components/atoms/server/icons/google/CommentIcon.d.ts +1 -1
  217. package/dist/module-types/src/components/atoms/server/icons/google/ContactPhoneIcon.d.ts +1 -1
  218. package/dist/module-types/src/components/atoms/server/icons/google/ContactsIcon.d.ts +1 -1
  219. package/dist/module-types/src/components/atoms/server/icons/google/ContentCopyIcon.d.ts +1 -1
  220. package/dist/module-types/src/components/atoms/server/icons/google/DarkModeIcon.d.ts +1 -1
  221. package/dist/module-types/src/components/atoms/server/icons/google/DashboardIcon.d.ts +1 -1
  222. package/dist/module-types/src/components/atoms/server/icons/google/DeleteIcon.d.ts +1 -1
  223. package/dist/module-types/src/components/atoms/server/icons/google/DemographyIcon.d.ts +1 -1
  224. package/dist/module-types/src/components/atoms/server/icons/google/DescriptionIcon.d.ts +1 -1
  225. package/dist/module-types/src/components/atoms/server/icons/google/DesignServicesIcon.d.ts +1 -1
  226. package/dist/module-types/src/components/atoms/server/icons/google/DoneAllIcon.d.ts +1 -1
  227. package/dist/module-types/src/components/atoms/server/icons/google/DownloadIcon.d.ts +1 -1
  228. package/dist/module-types/src/components/atoms/server/icons/google/DraftIcon.d.ts +1 -1
  229. package/dist/module-types/src/components/atoms/server/icons/google/DragIndicatorIcon.d.ts +1 -1
  230. package/dist/module-types/src/components/atoms/server/icons/google/EditIcon.d.ts +1 -1
  231. package/dist/module-types/src/components/atoms/server/icons/google/EditNoteIcon.d.ts +1 -1
  232. package/dist/module-types/src/components/atoms/server/icons/google/ErrorIcon.d.ts +1 -1
  233. package/dist/module-types/src/components/atoms/server/icons/google/EventIcon.d.ts +1 -1
  234. package/dist/module-types/src/components/atoms/server/icons/google/EventListIcon.d.ts +1 -1
  235. package/dist/module-types/src/components/atoms/server/icons/google/ExclamationIcon.d.ts +1 -1
  236. package/dist/module-types/src/components/atoms/server/icons/google/ExpandLessIcon.d.ts +1 -1
  237. package/dist/module-types/src/components/atoms/server/icons/google/ExpandMoreIcon.d.ts +1 -1
  238. package/dist/module-types/src/components/atoms/server/icons/google/ExtensionIcon.d.ts +1 -1
  239. package/dist/module-types/src/components/atoms/server/icons/google/FileCopyIcon.d.ts +1 -1
  240. package/dist/module-types/src/components/atoms/server/icons/google/FileOpenIcon.d.ts +1 -1
  241. package/dist/module-types/src/components/atoms/server/icons/google/FilterListIcon.d.ts +1 -1
  242. package/dist/module-types/src/components/atoms/server/icons/google/FitnessCenterIcon.d.ts +1 -1
  243. package/dist/module-types/src/components/atoms/server/icons/google/FolderIcon.d.ts +1 -1
  244. package/dist/module-types/src/components/atoms/server/icons/google/FolderManagedIcon.d.ts +1 -1
  245. package/dist/module-types/src/components/atoms/server/icons/google/FolderOpenIcon.d.ts +1 -1
  246. package/dist/module-types/src/components/atoms/server/icons/google/FormatBoldIcon.d.ts +1 -1
  247. package/dist/module-types/src/components/atoms/server/icons/google/FormatH1Icon.d.ts +1 -1
  248. package/dist/module-types/src/components/atoms/server/icons/google/FormatH2Icon.d.ts +1 -1
  249. package/dist/module-types/src/components/atoms/server/icons/google/FormatH3Icon.d.ts +1 -1
  250. package/dist/module-types/src/components/atoms/server/icons/google/FormatH4Icon.d.ts +1 -1
  251. package/dist/module-types/src/components/atoms/server/icons/google/FormatH5Icon.d.ts +1 -1
  252. package/dist/module-types/src/components/atoms/server/icons/google/FormatH6Icon.d.ts +1 -1
  253. package/dist/module-types/src/components/atoms/server/icons/google/FormatInkHighlighterIcon.d.ts +1 -1
  254. package/dist/module-types/src/components/atoms/server/icons/google/FormatItalicIcon.d.ts +1 -1
  255. package/dist/module-types/src/components/atoms/server/icons/google/FormatListBulletedIcon.d.ts +1 -1
  256. package/dist/module-types/src/components/atoms/server/icons/google/FormatListNumberedIcon.d.ts +1 -1
  257. package/dist/module-types/src/components/atoms/server/icons/google/FormatQuoteIcon.d.ts +1 -1
  258. package/dist/module-types/src/components/atoms/server/icons/google/FormatStrikethroughIcon.d.ts +1 -1
  259. package/dist/module-types/src/components/atoms/server/icons/google/ForwardIcon.d.ts +1 -1
  260. package/dist/module-types/src/components/atoms/server/icons/google/FullscreenExitIcon.d.ts +1 -1
  261. package/dist/module-types/src/components/atoms/server/icons/google/FullscreenIcon.d.ts +1 -1
  262. package/dist/module-types/src/components/atoms/server/icons/google/GlobeIcon.d.ts +1 -1
  263. package/dist/module-types/src/components/atoms/server/icons/google/GroupAddIcon.d.ts +1 -1
  264. package/dist/module-types/src/components/atoms/server/icons/google/GroupIcon.d.ts +1 -1
  265. package/dist/module-types/src/components/atoms/server/icons/google/GroupsIcon.d.ts +1 -1
  266. package/dist/module-types/src/components/atoms/server/icons/google/HardDriveIcon.d.ts +1 -1
  267. package/dist/module-types/src/components/atoms/server/icons/google/HelpIcon.d.ts +1 -1
  268. package/dist/module-types/src/components/atoms/server/icons/google/HistoryIcon.d.ts +1 -1
  269. package/dist/module-types/src/components/atoms/server/icons/google/HomeIcon.d.ts +1 -1
  270. package/dist/module-types/src/components/atoms/server/icons/google/HomeStorageIcon.d.ts +1 -1
  271. package/dist/module-types/src/components/atoms/server/icons/google/InfoIIcon.d.ts +1 -1
  272. package/dist/module-types/src/components/atoms/server/icons/google/InkEraserIcon.d.ts +1 -1
  273. package/dist/module-types/src/components/atoms/server/icons/google/InvertColorsIcon.d.ts +1 -1
  274. package/dist/module-types/src/components/atoms/server/icons/google/LanguageIcon.d.ts +1 -1
  275. package/dist/module-types/src/components/atoms/server/icons/google/LeaderboardIcon.d.ts +1 -1
  276. package/dist/module-types/src/components/atoms/server/icons/google/LibraryBooksIcon.d.ts +1 -1
  277. package/dist/module-types/src/components/atoms/server/icons/google/LightModeIcon.d.ts +1 -1
  278. package/dist/module-types/src/components/atoms/server/icons/google/LinkIcon.d.ts +1 -1
  279. package/dist/module-types/src/components/atoms/server/icons/google/LinkOffIcon.d.ts +1 -1
  280. package/dist/module-types/src/components/atoms/server/icons/google/ListIcon.d.ts +1 -1
  281. package/dist/module-types/src/components/atoms/server/icons/google/LoadingIcon.d.ts +1 -1
  282. package/dist/module-types/src/components/atoms/server/icons/google/LocationCityIcon.d.ts +1 -1
  283. package/dist/module-types/src/components/atoms/server/icons/google/LocationOnIcon.d.ts +1 -1
  284. package/dist/module-types/src/components/atoms/server/icons/google/LockClockIcon.d.ts +1 -1
  285. package/dist/module-types/src/components/atoms/server/icons/google/LockIcon.d.ts +1 -1
  286. package/dist/module-types/src/components/atoms/server/icons/google/LockPersonIcon.d.ts +1 -1
  287. package/dist/module-types/src/components/atoms/server/icons/google/LoginIcon.d.ts +1 -1
  288. package/dist/module-types/src/components/atoms/server/icons/google/LogoutIcon.d.ts +1 -1
  289. package/dist/module-types/src/components/atoms/server/icons/google/MailIcon.d.ts +1 -1
  290. package/dist/module-types/src/components/atoms/server/icons/google/ManageAccountsIcon.d.ts +1 -1
  291. package/dist/module-types/src/components/atoms/server/icons/google/ManageSearchIcon.d.ts +1 -1
  292. package/dist/module-types/src/components/atoms/server/icons/google/ManufacturingIcon.d.ts +1 -1
  293. package/dist/module-types/src/components/atoms/server/icons/google/MenuBookIcon.d.ts +1 -1
  294. package/dist/module-types/src/components/atoms/server/icons/google/MenuIcon.d.ts +1 -1
  295. package/dist/module-types/src/components/atoms/server/icons/google/MoreTimeIcon.d.ts +1 -1
  296. package/dist/module-types/src/components/atoms/server/icons/google/MoreVertIcon.d.ts +1 -1
  297. package/dist/module-types/src/components/atoms/server/icons/google/NavigateBeforeIcon.d.ts +1 -1
  298. package/dist/module-types/src/components/atoms/server/icons/google/NavigateNextIcon.d.ts +1 -1
  299. package/dist/module-types/src/components/atoms/server/icons/google/NewReleasesIcon.d.ts +1 -1
  300. package/dist/module-types/src/components/atoms/server/icons/google/NoteAddIcon.d.ts +1 -1
  301. package/dist/module-types/src/components/atoms/server/icons/google/NoteIcon.d.ts +1 -1
  302. package/dist/module-types/src/components/atoms/server/icons/google/NotificationsActiveIcon.d.ts +1 -1
  303. package/dist/module-types/src/components/atoms/server/icons/google/OpenInNewIcon.d.ts +1 -1
  304. package/dist/module-types/src/components/atoms/server/icons/google/PageInfoIcon.d.ts +1 -1
  305. package/dist/module-types/src/components/atoms/server/icons/google/PaletteIcon.d.ts +1 -1
  306. package/dist/module-types/src/components/atoms/server/icons/google/PanToolIcon.d.ts +1 -1
  307. package/dist/module-types/src/components/atoms/server/icons/google/PauseCircleIcon.d.ts +1 -1
  308. package/dist/module-types/src/components/atoms/server/icons/google/PendingActionsIcon.d.ts +1 -1
  309. package/dist/module-types/src/components/atoms/server/icons/google/PendingIcon.d.ts +1 -1
  310. package/dist/module-types/src/components/atoms/server/icons/google/PersonIcon.d.ts +1 -1
  311. package/dist/module-types/src/components/atoms/server/icons/google/PhotoLibraryIcon.d.ts +1 -1
  312. package/dist/module-types/src/components/atoms/server/icons/google/PictureAsPdfIcon.d.ts +1 -1
  313. package/dist/module-types/src/components/atoms/server/icons/google/PlayArrowIcon.d.ts +1 -1
  314. package/dist/module-types/src/components/atoms/server/icons/google/PlayCircleIcon.d.ts +1 -1
  315. package/dist/module-types/src/components/atoms/server/icons/google/PostAddIcon.d.ts +1 -1
  316. package/dist/module-types/src/components/atoms/server/icons/google/PreviewIcon.d.ts +1 -1
  317. package/dist/module-types/src/components/atoms/server/icons/google/PriorityHighIcon.d.ts +1 -1
  318. package/dist/module-types/src/components/atoms/server/icons/google/PublicIcon.d.ts +1 -1
  319. package/dist/module-types/src/components/atoms/server/icons/google/PublishIcon.d.ts +1 -1
  320. package/dist/module-types/src/components/atoms/server/icons/google/RedoIcon.d.ts +1 -1
  321. package/dist/module-types/src/components/atoms/server/icons/google/RefreshIcon.d.ts +1 -1
  322. package/dist/module-types/src/components/atoms/server/icons/google/ReplyAllIcon.d.ts +1 -1
  323. package/dist/module-types/src/components/atoms/server/icons/google/ReplyIcon.d.ts +1 -1
  324. package/dist/module-types/src/components/atoms/server/icons/google/SaveIcon.d.ts +1 -1
  325. package/dist/module-types/src/components/atoms/server/icons/google/ScheduleIcon.d.ts +1 -1
  326. package/dist/module-types/src/components/atoms/server/icons/google/SchoolIcon.d.ts +1 -1
  327. package/dist/module-types/src/components/atoms/server/icons/google/SearchIcon.d.ts +1 -1
  328. package/dist/module-types/src/components/atoms/server/icons/google/SendIcon.d.ts +1 -1
  329. package/dist/module-types/src/components/atoms/server/icons/google/SettingsAlertIcon.d.ts +1 -1
  330. package/dist/module-types/src/components/atoms/server/icons/google/SettingsIcon.d.ts +1 -1
  331. package/dist/module-types/src/components/atoms/server/icons/google/SettingsSuggestIcon.d.ts +1 -1
  332. package/dist/module-types/src/components/atoms/server/icons/google/ShareIcon.d.ts +1 -1
  333. package/dist/module-types/src/components/atoms/server/icons/google/SideNavigationIcon.d.ts +1 -1
  334. package/dist/module-types/src/components/atoms/server/icons/google/SmartToyIcon.d.ts +1 -1
  335. package/dist/module-types/src/components/atoms/server/icons/google/SpeedIcon.d.ts +1 -1
  336. package/dist/module-types/src/components/atoms/server/icons/google/StepIntoIcon.d.ts +1 -1
  337. package/dist/module-types/src/components/atoms/server/icons/google/StepOutIcon.d.ts +1 -1
  338. package/dist/module-types/src/components/atoms/server/icons/google/StopCircleIcon.d.ts +1 -1
  339. package/dist/module-types/src/components/atoms/server/icons/google/StorageIcon.d.ts +1 -1
  340. package/dist/module-types/src/components/atoms/server/icons/google/StylusLaserPointerIcon.d.ts +1 -1
  341. package/dist/module-types/src/components/atoms/server/icons/google/StylusNoteIcon.d.ts +1 -1
  342. package/dist/module-types/src/components/atoms/server/icons/google/SupportAgentIcon.d.ts +1 -1
  343. package/dist/module-types/src/components/atoms/server/icons/google/SyncIcon.d.ts +1 -1
  344. package/dist/module-types/src/components/atoms/server/icons/google/TableEyeIcon.d.ts +1 -1
  345. package/dist/module-types/src/components/atoms/server/icons/google/TableIcon.d.ts +1 -1
  346. package/dist/module-types/src/components/atoms/server/icons/google/TaskIcon.d.ts +1 -1
  347. package/dist/module-types/src/components/atoms/server/icons/google/TimerIcon.d.ts +1 -1
  348. package/dist/module-types/src/components/atoms/server/icons/google/TrendingUpIcon.d.ts +1 -1
  349. package/dist/module-types/src/components/atoms/server/icons/google/TrophyIcon.d.ts +1 -1
  350. package/dist/module-types/src/components/atoms/server/icons/google/UndoIcon.d.ts +1 -1
  351. package/dist/module-types/src/components/atoms/server/icons/google/UpdateIcon.d.ts +1 -1
  352. package/dist/module-types/src/components/atoms/server/icons/google/VerticalSplitIcon.d.ts +1 -1
  353. package/dist/module-types/src/components/atoms/server/icons/google/ViewCozyIcon.d.ts +1 -1
  354. package/dist/module-types/src/components/atoms/server/icons/google/ViewHeadlineIcon.d.ts +1 -1
  355. package/dist/module-types/src/components/atoms/server/icons/google/ViewModuleIcon.d.ts +1 -1
  356. package/dist/module-types/src/components/atoms/server/icons/google/VisibilityIcon.d.ts +1 -1
  357. package/dist/module-types/src/components/atoms/server/icons/google/VisibilityOffIcon.d.ts +1 -1
  358. package/dist/module-types/src/components/atoms/server/icons/google/VoidIcon.d.ts +1 -1
  359. package/dist/module-types/src/components/atoms/server/icons/google/WarningIcon.d.ts +1 -1
  360. package/dist/module-types/src/components/atoms/server/icons/google/WidgetsIcon.d.ts +1 -1
  361. package/dist/module-types/src/components/atoms/server/icons/signs/ArrowIcon_/Arrow.d.ts +1 -1
  362. package/dist/module-types/src/components/atoms/server/icons/signs/ArrowIcon_/NarrowArrow.d.ts +1 -1
  363. package/dist/module-types/src/components/atoms/server/icons/signs/ArrowIcon_/index.d.ts +1 -1
  364. package/dist/module-types/src/components/atoms/server/icons/signs/CheckIcon_/Check.d.ts +1 -1
  365. package/dist/module-types/src/components/atoms/server/icons/signs/CheckIcon_/index.d.ts +1 -1
  366. package/dist/module-types/src/components/atoms/server/icons/signs/CloseIcon_/index.d.ts +1 -1
  367. package/dist/module-types/src/components/atoms/server/icons/signs/DoubleUpIcon/DoubleUp.d.ts +1 -1
  368. package/dist/module-types/src/components/atoms/server/icons/signs/DoubleUpIcon/index.d.ts +1 -1
  369. package/dist/module-types/src/components/atoms/server/icons/signs/ExclamationIcon_/Exclamation.d.ts +1 -1
  370. package/dist/module-types/src/components/atoms/server/icons/signs/ExclamationIcon_/index.d.ts +1 -1
  371. package/dist/module-types/src/components/atoms/server/icons/signs/MinusIcon/Minus.d.ts +1 -1
  372. package/dist/module-types/src/components/atoms/server/icons/signs/MinusIcon/NarrowMinus.d.ts +1 -1
  373. package/dist/module-types/src/components/atoms/server/icons/signs/MinusIcon/index.d.ts +1 -1
  374. package/dist/module-types/src/components/atoms/server/icons/signs/PlusIcon/NarrowPlus.d.ts +1 -1
  375. package/dist/module-types/src/components/atoms/server/icons/signs/PlusIcon/Plus.d.ts +1 -1
  376. package/dist/module-types/src/components/atoms/server/icons/signs/PlusIcon/index.d.ts +1 -1
  377. package/dist/module-types/src/components/atoms/server/icons/signs/UpIcon/Up.d.ts +1 -1
  378. package/dist/module-types/src/components/atoms/server/icons/signs/UpIcon/index.d.ts +1 -1
  379. package/dist/module-types/src/components/atoms/server/icons/specials/BalloonIcon/Balloon.d.ts +1 -1
  380. package/dist/module-types/src/components/atoms/server/icons/specials/BalloonIcon/index.d.ts +1 -1
  381. package/dist/module-types/src/components/atoms/server/icons/specials/FacebookIcon/Facebook.d.ts +1 -1
  382. package/dist/module-types/src/components/atoms/server/icons/specials/FacebookIcon/index.d.ts +1 -1
  383. package/dist/module-types/src/components/atoms/server/icons/specials/GmailIcon/Gmail.d.ts +1 -1
  384. package/dist/module-types/src/components/atoms/server/icons/specials/GmailIcon/index.d.ts +1 -1
  385. package/dist/module-types/src/components/atoms/server/icons/specials/SortIcon/index.d.ts +1 -1
  386. package/dist/module-types/src/components/atoms/server/icons/specials/TelegramIcon/Telegram.d.ts +1 -1
  387. package/dist/module-types/src/components/atoms/server/icons/specials/TelegramIcon/index.d.ts +1 -1
  388. package/dist/module-types/src/components/atoms/server/icons/utils/CircleFilledFrame.d.ts +1 -1
  389. package/dist/module-types/src/components/atoms/server/icons/utils/CircleFrame.d.ts +1 -1
  390. package/dist/module-types/src/components/atoms/server/icons/utils/CirclePath.d.ts +1 -1
  391. package/dist/module-types/src/components/atoms/server/icons/utils/Segment.d.ts +1 -1
  392. package/dist/module-types/src/components/atoms/server/icons/utils/SquareFilledFrame.d.ts +1 -1
  393. package/dist/module-types/src/components/atoms/server/icons/utils/SquareFrame.d.ts +1 -1
  394. package/dist/module-types/src/components/atoms/server/icons/utils/renderBasicIcon.d.ts +1 -1
  395. package/dist/module-types/src/components/atoms/server/icons/utils/renderSignIcon.d.ts +1 -1
  396. package/dist/module-types/src/components/atoms/server/loaders/LoaderLayer.d.ts +1 -1
  397. package/dist/module-types/src/components/atoms/server/loaders/line-loader/LineLoader.d.ts +1 -1
  398. package/dist/module-types/src/components/mockup/MockupJukiProvider.d.ts +1 -1
  399. package/dist/module-types/src/components/mockup/MockupLoginButton.d.ts +1 -1
  400. package/dist/module-types/src/components/mockup/MockupToggleThemeButton.d.ts +1 -1
  401. package/dist/module-types/src/components/molecules/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  402. package/dist/module-types/src/components/molecules/ButtonAction/ButtonAction.d.ts +1 -1
  403. package/dist/module-types/src/components/molecules/ButtonLoader/ButtonLoader.d.ts +1 -1
  404. package/dist/module-types/src/components/molecules/CheckboxList/CheckboxList.d.ts +1 -1
  405. package/dist/module-types/src/components/molecules/CircularProgress/CircularProgress.d.ts +1 -1
  406. package/dist/module-types/src/components/molecules/DayPicker/DayPicker.d.ts +1 -1
  407. package/dist/module-types/src/components/molecules/Drawer/Drawer.d.ts +1 -1
  408. package/dist/module-types/src/components/molecules/FetcherLayer/FetcherLayer.d.ts +1 -1
  409. package/dist/module-types/src/components/molecules/FloatToolbar/FloatToolbar.d.ts +1 -1
  410. package/dist/module-types/src/components/molecules/HomeLink/HomeLink.d.ts +1 -1
  411. package/dist/module-types/src/components/molecules/InformationPopover/FrozenInformation.d.ts +1 -1
  412. package/dist/module-types/src/components/molecules/InformationPopover/InformationPopover.d.ts +1 -1
  413. package/dist/module-types/src/components/molecules/InformationPopover/NewlineInfo.d.ts +1 -1
  414. package/dist/module-types/src/components/molecules/InformationPopover/QuietInformation.d.ts +1 -1
  415. package/dist/module-types/src/components/molecules/InformationPopover/UpsolvingInformation.d.ts +1 -1
  416. package/dist/module-types/src/components/molecules/InputDate/InputDate.d.ts +1 -1
  417. package/dist/module-types/src/components/molecules/LinkLastPath/LinkLastPath.d.ts +1 -1
  418. package/dist/module-types/src/components/molecules/MonthPicker/MonthPicker.d.ts +1 -1
  419. package/dist/module-types/src/components/molecules/MultiSelectSearchable/MultiSelectSearchable.d.ts +1 -1
  420. package/dist/module-types/src/components/molecules/NextButton/NextButton.d.ts +1 -1
  421. package/dist/module-types/src/components/molecules/Pagination/Pagination.d.ts +1 -1
  422. package/dist/module-types/src/components/molecules/PreviousButton/PreviousButton.d.ts +1 -1
  423. package/dist/module-types/src/components/molecules/ProgressMultiBar/ProgressMultiBar.d.ts +1 -1
  424. package/dist/module-types/src/components/molecules/ProgressSlide/ProgressSlide.d.ts +1 -1
  425. package/dist/module-types/src/components/molecules/SplitModal/SplitModal.d.ts +1 -1
  426. package/dist/module-types/src/components/molecules/SplitPane/SplitPane.d.ts +1 -1
  427. package/dist/module-types/src/components/molecules/SubmissionRejudgeButton/SubmissionRejudgeButton.d.ts +1 -1
  428. package/dist/module-types/src/components/molecules/Tabs/Tabs.d.ts +1 -1
  429. package/dist/module-types/src/components/molecules/Tabs/mocks/JudgeTabs.d.ts +1 -1
  430. package/dist/module-types/src/components/molecules/TabsInline/TabsInline.d.ts +1 -1
  431. package/dist/module-types/src/components/molecules/TabsInline/TabsInline.deprecated.d.ts +1 -1
  432. package/dist/module-types/src/components/molecules/TabsInline/TabsInlineButton.d.ts +1 -1
  433. package/dist/module-types/src/components/molecules/TabsInline/TabsInlineButtonLoader.d.ts +1 -1
  434. package/dist/module-types/src/components/molecules/TabsInlineBody/TabsInlineBody.d.ts +1 -1
  435. package/dist/module-types/src/components/molecules/TabsInlineBody/TabsInlineBody.deprecated.d.ts +1 -1
  436. package/dist/module-types/src/components/molecules/ThemeColorPalette/ThemeColorPalette.d.ts +1 -1
  437. package/dist/module-types/src/components/molecules/TimePicker/TimePicker.d.ts +1 -1
  438. package/dist/module-types/src/components/molecules/Timer/Timer.d.ts +1 -1
  439. package/dist/module-types/src/components/molecules/Timer/TimerDisplay.d.ts +1 -1
  440. package/dist/module-types/src/components/molecules/TimerLabeled/TimerLabeled.d.ts +1 -1
  441. package/dist/module-types/src/components/molecules/TwoActionModal/TwoActionModal.d.ts +1 -1
  442. package/dist/module-types/src/components/molecules/TwoContentSection/TwoContentSection.d.ts +1 -1
  443. package/dist/module-types/src/components/molecules/YearPicker/YearPicker.d.ts +1 -1
  444. package/dist/module-types/src/components/molecules/_lazy_/BarChart/BarChart.d.ts +1 -1
  445. package/dist/module-types/src/components/molecules/_lazy_/BarChart/index.d.ts +1 -1
  446. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/CodeEditor.d.ts +1 -1
  447. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/codemirror/types.d.ts +15 -1
  448. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/index.d.ts +1 -1
  449. package/dist/module-types/src/components/molecules/_lazy_/CodeEditor/types.d.ts +6 -0
  450. package/dist/module-types/src/components/molecules/_lazy_/CodeViewer/CodeViewer.d.ts +1 -1
  451. package/dist/module-types/src/components/molecules/_lazy_/CodeViewer/index.d.ts +1 -1
  452. package/dist/module-types/src/components/molecules/_lazy_/DataGrid/DataGrid.d.ts +1 -1
  453. package/dist/module-types/src/components/molecules/_lazy_/DataGrid/index.d.ts +1 -1
  454. package/dist/module-types/src/components/molecules/_lazy_/DrawerView/DrawerView.d.ts +1 -1
  455. package/dist/module-types/src/components/molecules/_lazy_/DrawerView/index.d.ts +1 -1
  456. package/dist/module-types/src/components/molecules/_lazy_/ImageLoaderCropper/ImageLoaderCropper.d.ts +1 -1
  457. package/dist/module-types/src/components/molecules/_lazy_/ImageLoaderCropper/index.d.ts +1 -1
  458. package/dist/module-types/src/components/molecules/_lazy_/InputColor/InputColor.d.ts +1 -1
  459. package/dist/module-types/src/components/molecules/_lazy_/InputColor/index.d.ts +1 -1
  460. package/dist/module-types/src/components/molecules/_lazy_/LineChart/LineChart.d.ts +1 -1
  461. package/dist/module-types/src/components/molecules/_lazy_/LineChart/index.d.ts +1 -1
  462. package/dist/module-types/src/components/molecules/_lazy_/SlideDeck/SlideDeck.d.ts +1 -1
  463. package/dist/module-types/src/components/molecules/_lazy_/SlideDeck/index.d.ts +1 -1
  464. package/dist/module-types/src/components/molecules/_lazy_/SortableItems/SortableItems.d.ts +1 -1
  465. package/dist/module-types/src/components/molecules/_lazy_/SortableItems/index.d.ts +1 -1
  466. package/dist/module-types/src/components/molecules/layouts/ApplicationLoaderLayout.d.ts +1 -1
  467. package/dist/module-types/src/components/molecules/layouts/JukiLoadingLayout.d.ts +1 -1
  468. package/dist/module-types/src/components/molecules/layouts/PawsLoadingLayout.d.ts +1 -1
  469. package/dist/module-types/src/components/molecules/layouts/TwoContentCardsLayout.d.ts +1 -1
  470. package/dist/module-types/src/components/molecules/layouts/TwoContentLayout.d.ts +1 -1
  471. package/dist/module-types/src/components/molecules/layouts/UserLoaderLayout.d.ts +1 -1
  472. package/dist/module-types/src/components/organisms/AiChatPanel/AiChatPanel.d.ts +1 -1
  473. package/dist/module-types/src/components/organisms/CardNotification/CardNotification.d.ts +1 -1
  474. package/dist/module-types/src/components/organisms/CardNotification/constants.d.ts +4 -4
  475. package/dist/module-types/src/components/organisms/CheckUnsavedChanges/CheckUnsavedChanges.d.ts +1 -1
  476. package/dist/module-types/src/components/organisms/Field/Field.d.ts +1 -1
  477. package/dist/module-types/src/components/organisms/FieldDate/FieldDate.d.ts +1 -1
  478. package/dist/module-types/src/components/organisms/FieldText/FieldText.d.ts +1 -1
  479. package/dist/module-types/src/components/organisms/GraphvizEditor/GraphvizEditor.d.ts +1 -1
  480. package/dist/module-types/src/components/organisms/GraphvizEditorModal/GraphvizEditorModal.d.ts +1 -1
  481. package/dist/module-types/src/components/organisms/GraphvizViewers/GraphvizViewers.d.ts +1 -1
  482. package/dist/module-types/src/components/organisms/HorizontalMenu/HorizontalMenu.d.ts +1 -1
  483. package/dist/module-types/src/components/organisms/ImageUploaderButton/ImageUploaderButton.d.ts +1 -1
  484. package/dist/module-types/src/components/organisms/LoginUser/LoginUser.d.ts +1 -1
  485. package/dist/module-types/src/components/organisms/MdMathViewer/MdFloatToolbar/MdFloatToolbar.d.ts +1 -1
  486. package/dist/module-types/src/components/organisms/MdMathViewer/MdMathViewer.d.ts +1 -1
  487. package/dist/module-types/src/components/organisms/MdMathViewer/MemoMdMath.deprecated.d.ts +1 -1
  488. package/dist/module-types/src/components/organisms/MdMathViewer/MemoMdMathViewer.deprecated.d.ts +1 -1
  489. package/dist/module-types/src/components/organisms/PageNotFound/PageNotFound.d.ts +1 -1
  490. package/dist/module-types/src/components/organisms/PagedDataViewer/PagedDataViewer.d.ts +1 -1
  491. package/dist/module-types/src/components/organisms/PresentationToolButtons/PresentationToolButtons.d.ts +1 -1
  492. package/dist/module-types/src/components/organisms/PresentationToolButtons/buttons/FullscreenTimerButton.d.ts +1 -1
  493. package/dist/module-types/src/components/organisms/PresentationToolButtons/buttons/FullscreenToggleButton.d.ts +1 -1
  494. package/dist/module-types/src/components/organisms/PresentationToolButtons/buttons/PointerButton.d.ts +1 -1
  495. package/dist/module-types/src/components/organisms/ProblemSelector/ProblemSelector.d.ts +1 -1
  496. package/dist/module-types/src/components/organisms/ProblemVerdictTag/ProblemVerdictTag.d.ts +1 -1
  497. package/dist/module-types/src/components/organisms/SubmitView/SubmitView.d.ts +1 -1
  498. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionGroupInfo.d.ts +1 -1
  499. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionListenerVerdict.d.ts +1 -1
  500. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionMemory.d.ts +1 -1
  501. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionTime.d.ts +1 -1
  502. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionVerdict.d.ts +1 -1
  503. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmitViewContent.d.ts +1 -1
  504. package/dist/module-types/src/components/organisms/TextHeadCell/TextHeadCell.d.ts +1 -1
  505. package/dist/module-types/src/components/organisms/UserChip/UserChip.d.ts +1 -1
  506. package/dist/module-types/src/components/organisms/UserNicknameLink/UserNicknameLink.d.ts +1 -1
  507. package/dist/module-types/src/components/organisms/UsersSelector/UsersSelector.d.ts +1 -1
  508. package/dist/module-types/src/components/organisms/VerticalMenu/VerticalMenu.d.ts +1 -1
  509. package/dist/module-types/src/components/organisms/_layz_/ChangePasswordModal/ChangePasswordModal.d.ts +1 -1
  510. package/dist/module-types/src/components/organisms/_layz_/ChangePasswordModal/index.d.ts +1 -1
  511. package/dist/module-types/src/components/organisms/_layz_/DataViewer/CardList/DataViewerCard.d.ts +1 -1
  512. package/dist/module-types/src/components/organisms/_layz_/DataViewer/CardList/index.d.ts +1 -1
  513. package/dist/module-types/src/components/organisms/_layz_/DataViewer/DataViewer.d.ts +1 -1
  514. package/dist/module-types/src/components/organisms/_layz_/DataViewer/FilterDrawer/index.d.ts +1 -1
  515. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkContestTableTest/MockJkContestTable.d.ts +1 -1
  516. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkProblemTableTest/MockJkProblemTable.d.ts +1 -1
  517. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkSubmissionsTableTest/MockJkSubmissionTable.d.ts +1 -1
  518. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkUserTableTest/MockJkUserTable.d.ts +1 -1
  519. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/RowVirtualizerFixed.d.ts +1 -1
  520. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/Filter.d.ts +1 -1
  521. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/TableHeadFilterDate.d.ts +1 -1
  522. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/TableHeadFilterDateRange.d.ts +1 -1
  523. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/TableHeadFilterSelect.d.ts +1 -1
  524. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/TableHead/TableHeadFilterText.d.ts +1 -1
  525. package/dist/module-types/src/components/organisms/_layz_/DataViewer/RowList/ViewContainerRows.d.ts +1 -1
  526. package/dist/module-types/src/components/organisms/_layz_/DataViewer/commons/DataViewerToolbar.d.ts +1 -1
  527. package/dist/module-types/src/components/organisms/_layz_/DataViewer/commons/DisplayDataViewer.d.ts +1 -1
  528. package/dist/module-types/src/components/organisms/_layz_/DataViewer/commons/utils.d.ts +1 -1
  529. package/dist/module-types/src/components/organisms/_layz_/DataViewer/index.d.ts +1 -1
  530. package/dist/module-types/src/components/organisms/_layz_/ExcalidrawButton/ExcalidrawButton.d.ts +1 -1
  531. package/dist/module-types/src/components/organisms/_layz_/ExcalidrawButton/index.d.ts +1 -1
  532. package/dist/module-types/src/components/organisms/_layz_/GraphvizViewer/GraphvizViewer.d.ts +1 -1
  533. package/dist/module-types/src/components/organisms/_layz_/GraphvizViewer/index.d.ts +1 -1
  534. package/dist/module-types/src/components/organisms/_layz_/MdMath/MdMath.d.ts +1 -1
  535. package/dist/module-types/src/components/organisms/_layz_/MdMath/MermaidInline.d.ts +1 -1
  536. package/dist/module-types/src/components/organisms/_layz_/MdMath/index.d.ts +1 -1
  537. package/dist/module-types/src/components/organisms/_layz_/MdMath/utils.d.ts +1 -1
  538. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/MdMathEditor.deprecated.d.ts +1 -1
  539. package/dist/module-types/src/components/organisms/_layz_/MdMathEditor/TextPlainEditorContent/TextPlainEditorContent.d.ts +1 -1
  540. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/CodeRunnerEditor.d.ts +1 -1
  541. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/FileTreePanel/FileTreePanel.d.ts +3 -1
  542. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/FileTreePanel/types.d.ts +8 -2
  543. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/FirstPane.d.ts +7 -2
  544. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/Header/RunCodeButton.d.ts +3 -2
  545. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/Header/index.d.ts +3 -1
  546. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/MermaidViewer/GraphicToolbar.d.ts +1 -1
  547. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/MermaidViewer/MermaidViewer.d.ts +1 -1
  548. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/SettingsModal/index.d.ts +1 -1
  549. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/TestCases/LogInfo.d.ts +1 -1
  550. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/TestCases/index.d.ts +3 -1
  551. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/CodeRunnerEditor/types.d.ts +21 -2
  552. package/dist/module-types/src/components/organisms/_layz_/UserCodeEditor/types.d.ts +11 -0
  553. package/dist/module-types/src/components/organisms/_layz_/WorksheetAsSlides/WorksheetAsSlides.d.ts +1 -1
  554. package/dist/module-types/src/components/organisms/_layz_/WorksheetAsSlides/index.d.ts +1 -1
  555. package/dist/module-types/src/components/organisms/_layz_/WorksheetContents/WorksheetContents.d.ts +1 -1
  556. package/dist/module-types/src/components/organisms/_layz_/WorksheetContents/index.d.ts +1 -1
  557. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/WorksheetEditor.d.ts +1 -1
  558. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/index.d.ts +1 -1
  559. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/AddNewChild.d.ts +1 -1
  560. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ChunkTitle.d.ts +1 -1
  561. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/CodeEditorSheetSection/CodeEditorSheetSection.d.ts +1 -1
  562. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/CodeEditorSheetSection/CodeEditorSheetSectionEditor.d.ts +1 -1
  563. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/CodeEditorSheetSection/CodeEditorSheetSectionEditorModal.d.ts +1 -1
  564. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/CodeEditorSheetSection/CodeEditorSheetSectionView.d.ts +1 -1
  565. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/EditSheetModal.d.ts +1 -1
  566. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/GraphSheetSection/GraphSheetSection.d.ts +1 -1
  567. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/GraphSheetSection/GraphSheetSectionEditor.d.ts +1 -1
  568. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/GraphSheetSection/GraphSheetSectionEditorModal.d.ts +1 -1
  569. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/GraphSheetSection/GraphSheetSectionView.d.ts +1 -1
  570. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/JkmdSheetSection/JkmdSheetSection.d.ts +1 -1
  571. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/JkmdSheetSection/JkmdSheetSection.old.d.ts +1 -1
  572. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/JkmdSheetSection/JkmdSheetSectionEditor.d.ts +1 -1
  573. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/JkmdSheetSection/JkmdSheetSectionEditorModal.d.ts +1 -1
  574. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ListSheetSection/ListSheetRecursiveSection.d.ts +1 -1
  575. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ListSheetSection/ListSheetSection.d.ts +1 -1
  576. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizOptionsSheetSection/QuizOptionsSheetSection.d.ts +1 -1
  577. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizOptionsSheetSection/QuizOptionsSheetSectionEditor.d.ts +1 -1
  578. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizOptionsSheetSection/QuizOptionsSheetSectionEditorModal.d.ts +1 -1
  579. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizOptionsSheetSection/QuizOptionsSheetSectionView.d.ts +1 -1
  580. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/ProblemSummary.d.ts +1 -1
  581. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/QuizProblemSheetSection.d.ts +1 -1
  582. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/QuizProblemSheetSectionEditor.d.ts +1 -1
  583. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/QuizProblemSheetSectionEditorModal.d.ts +1 -1
  584. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/QuizProblemSheetSection/QuizProblemSheetSectionView.d.ts +1 -1
  585. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ResultHeader.d.ts +2 -2
  586. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/TableOfContents.d.ts +1 -1
  587. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/TableOfContentsModal.d.ts +1 -1
  588. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/UpRemoveDownButtons.d.ts +1 -1
  589. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/WorksheetBodies.d.ts +1 -1
  590. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/WorksheetNode.d.ts +1 -1
  591. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/upRemoveDownActions.d.ts +4 -4
  592. package/dist/module-types/src/components/organisms/_layz_/WorksheetViewer/WorksheetViewer.d.ts +1 -1
  593. package/dist/module-types/src/components/organisms/_layz_/WorksheetViewer/index.d.ts +1 -1
  594. package/dist/module-types/src/components/organisms/modals/ImageUploaderModal/ImageUploaderModal.d.ts +1 -1
  595. package/dist/module-types/src/components/organisms/modals/ImageUploaderModal/PublicImagesTab/PublicImages.d.ts +1 -1
  596. package/dist/module-types/src/components/organisms/modals/ImageUploaderModal/PublicImagesTab/index.d.ts +1 -1
  597. package/dist/module-types/src/components/organisms/modals/ImageUploaderModal/UploadNewImageTab/index.d.ts +1 -1
  598. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModal.d.ts +2 -2
  599. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModalTemplate/ForgotPassword/ForgoPasswordModal.d.ts +1 -1
  600. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModalTemplate/ForgotPassword/index.d.ts +1 -1
  601. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModalTemplate/LoginModalTemplate.d.ts +1 -1
  602. package/dist/module-types/src/components/organisms/modals/SignUpModal/SignUpModal.d.ts +1 -1
  603. package/dist/module-types/src/components/organisms/modals/SignUpModal/SignUpModalTemplate/SignUpModalTemplate.d.ts +1 -1
  604. package/dist/module-types/src/components/organisms/modals/SubmissionModal/SubmissionContentModal.d.ts +1 -1
  605. package/dist/module-types/src/components/organisms/modals/SubmissionModal/SubmissionModal.d.ts +1 -1
  606. package/dist/module-types/src/components/organisms/modals/UserPreviewModal/UserPreviewContentModal.d.ts +2 -2
  607. package/dist/module-types/src/components/organisms/modals/UserPreviewModal/UserPreviewModal.d.ts +1 -1
  608. package/dist/module-types/src/components/organisms/modals/WelcomeModal/WelcomeModal.d.ts +1 -1
  609. package/dist/module-types/src/components/providers/JukiAblyInitializer/JukiAblyInitializer.d.ts +2 -2
  610. package/dist/module-types/src/components/providers/JukiProviders.d.ts +1 -1
  611. package/dist/module-types/src/components/providers/JukiUIProvider/Image.d.ts +1 -1
  612. package/dist/module-types/src/components/providers/JukiUIProvider/JukiUIProvider.d.ts +1 -1
  613. package/dist/module-types/src/components/providers/JukiUIProvider/Link.d.ts +1 -1
  614. package/dist/module-types/src/components/providers/NotificationProvider/NotificationProvider.d.ts +1 -1
  615. package/dist/module-types/src/components/templates/ContestNameLinkField/ContestNameLinkField.d.ts +1 -1
  616. package/dist/module-types/src/components/templates/EditProfileModal/EditProfileModal.d.ts +1 -1
  617. package/dist/module-types/src/components/templates/EditProfileModal/ImageProfileModal.d.ts +1 -1
  618. package/dist/module-types/src/components/templates/EntityCreateLayout/EntityCreateLayout.d.ts +1 -1
  619. package/dist/module-types/src/components/templates/EntityLogsModal/EntityLogsModal.d.ts +1 -1
  620. package/dist/module-types/src/components/templates/EntityUpdateLayout/EntityUpdateLayout.d.ts +1 -1
  621. package/dist/module-types/src/components/templates/ErrorBoundary/ErrorBoundary.d.ts +2 -2
  622. package/dist/module-types/src/components/templates/HelpSection/HelpSection.d.ts +1 -1
  623. package/dist/module-types/src/components/templates/MainMenu/DrawerViewMenuMobile/DrawerViewMenuMobile.d.ts +1 -1
  624. package/dist/module-types/src/components/templates/MainMenu/MainMenu.d.ts +1 -1
  625. package/dist/module-types/src/components/templates/MainMenu/SettingsSection/index.d.ts +3 -3
  626. package/dist/module-types/src/components/templates/NewViersionAvailableModal/NewVersionAvailable.d.ts +1 -1
  627. package/dist/module-types/src/components/templates/NewViersionAvailableModal/NewVersionAvailableModal/NewVersionAvailableModal.d.ts +1 -1
  628. package/dist/module-types/src/components/templates/ProblemView/ProblemInfo.d.ts +6 -6
  629. package/dist/module-types/src/components/templates/ProblemView/ProblemView.d.ts +1 -1
  630. package/dist/module-types/src/components/templates/ProblemView/commons/ProblemCodeEditor.d.ts +1 -1
  631. package/dist/module-types/src/components/templates/ProblemView/commons/ProblemStatementView.d.ts +1 -1
  632. package/dist/module-types/src/components/templates/ProblemView/commons/SampleTest.d.ts +1 -1
  633. package/dist/module-types/src/components/templates/ResetPasswordModal/ResetPasswordModal.d.ts +1 -1
  634. package/dist/module-types/src/components/templates/UserActiveSessions/UserMyActiveSessions.d.ts +1 -1
  635. package/dist/module-types/src/components/templates/UserProfile/UserProfile.d.ts +1 -1
  636. package/dist/module-types/src/components/templates/UserProfile/UserProfileDataContent.d.ts +1 -1
  637. package/dist/module-types/src/components/templates/UserProfileSettings/UserProfileSettings.d.ts +1 -1
  638. package/dist/module-types/src/components/templates/UserViewLayout/ProfileSubmissions.d.ts +1 -1
  639. package/dist/module-types/src/components/templates/UserViewLayout/UserViewLayout.d.ts +1 -1
  640. package/dist/module-types/src/components/templates/members/DocumentCustomMembersContent.d.ts +1 -1
  641. package/dist/module-types/src/components/templates/members/DocumentMembersButton.d.ts +1 -1
  642. package/dist/module-types/src/components/templates/members/DocumentMembersContent.d.ts +1 -1
  643. package/dist/module-types/src/components/templates/members/DocumentMembersModal/DocumentMembersModal.d.ts +1 -1
  644. package/dist/module-types/src/components/templates/problem/ProblemAdminActionsField.d.ts +1 -1
  645. package/dist/module-types/src/components/templates/problem/ProblemCrawlerField.d.ts +1 -1
  646. package/dist/module-types/src/components/templates/problem/ProblemKeyField.d.ts +1 -1
  647. package/dist/module-types/src/components/templates/problem/ProblemModeField.d.ts +1 -1
  648. package/dist/module-types/src/components/templates/problem/ProblemNameLinkField.d.ts +1 -1
  649. package/dist/module-types/src/components/templates/problem/ProblemNameModalField.d.ts +1 -1
  650. package/dist/module-types/src/components/templates/problem/ProblemOwnerField.d.ts +1 -1
  651. package/dist/module-types/src/components/templates/problem/ProblemStatus.d.ts +1 -1
  652. package/dist/module-types/src/components/templates/problem/ProblemTypeField.d.ts +1 -1
  653. package/dist/module-types/src/components/templates/problem/TagsField.d.ts +1 -1
  654. package/dist/module-types/src/components/templates/submission/SubmissionContestField.d.ts +1 -1
  655. package/dist/module-types/src/components/templates/submission/SubmissionContestProblemField.d.ts +1 -1
  656. package/dist/module-types/src/components/templates/submission/SubmissionDateField.d.ts +1 -1
  657. package/dist/module-types/src/components/templates/submission/SubmissionLanguageField.d.ts +1 -1
  658. package/dist/module-types/src/components/templates/submission/SubmissionNicknameField.d.ts +1 -1
  659. package/dist/module-types/src/components/templates/submission/SubmissionProblemField.d.ts +1 -1
  660. package/dist/module-types/src/components/templates/submission/SubmissionRetrieveButton.d.ts +1 -1
  661. package/dist/module-types/src/components/templates/submission/SubmissionTimeField.d.ts +1 -1
  662. package/dist/module-types/src/components/templates/submission/commons/SubmissionInfo.d.ts +1 -1
  663. package/dist/module-types/src/stores/user/useUserStore.d.ts +1 -1
  664. package/package.json +92 -98
  665. package/src/styles/components/atoms/_button.scss +3 -3
  666. package/src/styles/components/atoms/_tabs-inline.scss +106 -18
  667. package/src/styles/components/molecules/_layouts.scss +2 -2
  668. package/src/styles/index.scss +6 -0
  669. package/src/styles/vendor/index.scss +0 -2
  670. package/src/vendor/@milkdown/crepe/lib/theme/common/ai.css +446 -0
  671. package/src/vendor/@milkdown/crepe/lib/theme/common/block-edit.css +3 -3
  672. package/src/vendor/@milkdown/crepe/lib/theme/common/code-mirror.css +19 -5
  673. package/src/vendor/@milkdown/crepe/lib/theme/common/diff.css +177 -0
  674. package/src/vendor/@milkdown/crepe/lib/theme/common/image-block.css +2 -2
  675. package/src/vendor/@milkdown/crepe/lib/theme/common/link-tooltip.css +3 -3
  676. package/src/vendor/@milkdown/crepe/lib/theme/common/reset.css +15 -14
  677. package/src/vendor/@milkdown/crepe/lib/theme/common/style.css +2 -0
  678. package/src/vendor/@milkdown/crepe/lib/theme/common/table.css +1 -1
  679. package/src/vendor/@milkdown/crepe/lib/theme/common/top-bar.css +2 -2
  680. package/src/vendor/@milkdown/crepe/lib/theme/crepe/style.css +1 -0
  681. package/src/vendor/@milkdown/crepe/lib/theme/crepe-dark/style.css +1 -0
  682. package/src/vendor/@milkdown/crepe/lib/theme/frame/style.css +1 -0
  683. package/src/vendor/@milkdown/crepe/lib/theme/frame-dark/style.css +1 -0
  684. package/src/vendor/@milkdown/crepe/lib/theme/nord/style.css +1 -0
  685. package/src/vendor/@milkdown/crepe/lib/theme/nord-dark/style.css +1 -0
  686. package/src/vendor/@milkdown/crepe/src/theme/common/ai.css +430 -0
  687. package/src/vendor/@milkdown/crepe/src/theme/common/block-edit.css +3 -3
  688. package/src/vendor/@milkdown/crepe/src/theme/common/code-mirror.css +19 -5
  689. package/src/vendor/@milkdown/crepe/src/theme/common/diff.css +196 -0
  690. package/src/vendor/@milkdown/crepe/src/theme/common/image-block.css +2 -2
  691. package/src/vendor/@milkdown/crepe/src/theme/common/link-tooltip.css +3 -3
  692. package/src/vendor/@milkdown/crepe/src/theme/common/reset.css +15 -14
  693. package/src/vendor/@milkdown/crepe/src/theme/common/style.css +2 -0
  694. package/src/vendor/@milkdown/crepe/src/theme/common/table.css +1 -1
  695. package/src/vendor/@milkdown/crepe/src/theme/common/top-bar.css +2 -2
  696. package/src/vendor/@milkdown/crepe/src/theme/crepe/style.css +1 -0
  697. package/src/vendor/@milkdown/crepe/src/theme/crepe-dark/style.css +1 -0
  698. package/src/vendor/@milkdown/crepe/src/theme/frame/style.css +1 -0
  699. package/src/vendor/@milkdown/crepe/src/theme/frame-dark/style.css +1 -0
  700. package/src/vendor/@milkdown/crepe/src/theme/nord/style.css +1 -0
  701. package/src/vendor/@milkdown/crepe/src/theme/nord-dark/style.css +1 -0
  702. package/src/vendor/fumadocs-ui/css/generated/docs.css +1 -512
  703. package/src/vendor/fumadocs-ui/css/generated/flux.css +1 -432
  704. package/src/vendor/fumadocs-ui/css/generated/glass.css +1 -0
  705. package/src/vendor/fumadocs-ui/css/generated/home.css +1 -220
  706. package/src/vendor/fumadocs-ui/css/generated/notebook.css +1 -540
  707. package/src/vendor/fumadocs-ui/css/generated/shared.css +1 -1176
  708. package/src/vendor/fumadocs-ui/css/lib/base.css +93 -2
  709. package/src/vendor/fumadocs-ui/css/lib/shiki.css +2 -2
  710. package/src/vendor/fumadocs-ui/css/preset-legacy.css +38 -0
  711. package/src/vendor/fumadocs-ui/css/preset.css +0 -80
  712. package/src/vendor/fumadocs-ui/css/solar.css +10 -20
  713. package/src/vendor/fumadocs-ui/css/vitepress.css +17 -10
  714. package/src/vendor/fumadocs-ui/dist/components/image-zoom2.css +5 -0
  715. package/src/vendor/fumadocs-ui/dist/style.css +1375 -936
  716. package/src/vendor/handsontable/styles/handsontable.css +964 -416
  717. package/src/vendor/handsontable/styles/handsontable.min.css +5 -4
  718. package/src/vendor/handsontable/styles/ht-icons-horizon.css +11 -12
  719. package/src/vendor/handsontable/styles/ht-icons-horizon.min.css +5 -4
  720. package/src/vendor/handsontable/styles/ht-icons-main.css +11 -12
  721. package/src/vendor/handsontable/styles/ht-icons-main.min.css +5 -4
  722. package/src/vendor/handsontable/styles/ht-theme-classic-no-icons.css +28 -5
  723. package/src/vendor/handsontable/styles/ht-theme-classic-no-icons.min.css +5 -4
  724. package/src/vendor/handsontable/styles/ht-theme-classic.css +39 -17
  725. package/src/vendor/handsontable/styles/ht-theme-classic.min.css +5 -4
  726. package/src/vendor/handsontable/styles/ht-theme-horizon-no-icons.css +27 -4
  727. package/src/vendor/handsontable/styles/ht-theme-horizon-no-icons.min.css +5 -4
  728. package/src/vendor/handsontable/styles/ht-theme-horizon.css +38 -16
  729. package/src/vendor/handsontable/styles/ht-theme-horizon.min.css +5 -4
  730. package/src/vendor/handsontable/styles/ht-theme-main-no-icons.css +28 -5
  731. package/src/vendor/handsontable/styles/ht-theme-main-no-icons.min.css +5 -4
  732. package/src/vendor/handsontable/styles/ht-theme-main.css +39 -17
  733. package/src/vendor/handsontable/styles/ht-theme-main.min.css +5 -4
  734. package/src/vendor/highlight.js/scss/cybertopia-cherry.scss +2 -1
  735. package/src/vendor/highlight.js/scss/cybertopia-dimmer.scss +2 -1
  736. package/src/vendor/highlight.js/scss/cybertopia-icecap.scss +2 -1
  737. package/src/vendor/highlight.js/scss/cybertopia-saturated.scss +2 -1
  738. package/src/vendor/highlight.js/scss/equinox.scss +71 -0
  739. package/src/vendor/highlight.js/scss/vs-dark.scss +61 -0
  740. package/src/vendor/highlight.js/styles/cybertopia-cherry.css +2 -1
  741. package/src/vendor/highlight.js/styles/cybertopia-cherry.min.css +1 -1
  742. package/src/vendor/highlight.js/styles/cybertopia-dimmer.css +2 -1
  743. package/src/vendor/highlight.js/styles/cybertopia-dimmer.min.css +1 -1
  744. package/src/vendor/highlight.js/styles/cybertopia-icecap.css +2 -1
  745. package/src/vendor/highlight.js/styles/cybertopia-icecap.min.css +1 -1
  746. package/src/vendor/highlight.js/styles/cybertopia-saturated.css +2 -1
  747. package/src/vendor/highlight.js/styles/cybertopia-saturated.min.css +1 -1
  748. package/src/vendor/highlight.js/styles/equinox.css +71 -0
  749. package/src/vendor/highlight.js/styles/equinox.min.css +1 -0
  750. package/src/vendor/highlight.js/styles/vs-dark.css +61 -0
  751. package/src/vendor/highlight.js/styles/vs-dark.min.css +1 -0
  752. package/src/vendor/katex/dist/katex-swap.css +5 -2
  753. package/src/vendor/katex/dist/katex-swap.min.css +1 -1
  754. package/src/vendor/katex/dist/katex.css +5 -2
  755. package/src/vendor/katex/dist/katex.min.css +1 -1
  756. package/src/vendor/katex/src/styles/katex.scss +3 -1
  757. package/src/vendor/react-image-crop/dist/ReactCrop.css +2 -1
  758. package/src/vendor/reveal.js/css/reveal.scss +15 -0
  759. package/src/vendor/reveal.js/css/theme/fonts/league-gothic/league-gothic.woff +0 -0
  760. package/src/vendor/reveal.js/css/theme/fonts/source-sans-pro/source-sans-pro-italic.woff +0 -0
  761. package/src/vendor/reveal.js/css/theme/fonts/source-sans-pro/source-sans-pro-regular.woff +0 -0
  762. package/src/vendor/reveal.js/css/theme/fonts/source-sans-pro/source-sans-pro-semibold.woff +0 -0
  763. package/src/vendor/reveal.js/css/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
  764. package/src/vendor/reveal.js/dist/reveal.css +1 -1
  765. package/dist/esm/BarChart-D6H2EH3B.js +0 -1
  766. package/dist/esm/CartesianChart-_EyixekW.js +0 -47
  767. package/dist/esm/CodeEditor-CPsmXl7i.js +0 -1
  768. package/dist/esm/CodeViewer-DIncRhD1.js +0 -1
  769. package/dist/esm/DataGrid-CzZsh4gG.js +0 -272
  770. package/dist/esm/DataViewer-CSIcp1dE.js +0 -1
  771. package/dist/esm/ImageLoaderCropper-BjHykYfo.js +0 -1
  772. package/dist/esm/InputCellPhoneNumber-CAi0AXMP.js +0 -1
  773. package/dist/esm/LineChart-BL9HlHkG.js +0 -1
  774. package/dist/esm/MdMathEditor-D0f1McYj.js +0 -28
  775. package/dist/esm/Popover-DPn39FUa.js +0 -6
  776. package/dist/esm/SlideDeck-et5M4lE-.js +0 -1
  777. package/dist/esm/TableOfContents-CLrH5fjb.js +0 -1
  778. package/dist/esm/Tooltip-CEgmNtFX.js +0 -13
  779. package/dist/esm/UserCodeEditor-DlHeWLUu.js +0 -28
  780. package/dist/esm/WorksheetAsSlides-X5Ljvk2t.js +0 -1
  781. package/dist/esm/WorksheetEditor-Dq3apeLg.js +0 -1
  782. package/dist/esm/WorksheetNode-Chf37TwI.js +0 -1
  783. package/dist/esm/WorksheetViewer-B-slMCYv.js +0 -1
  784. package/dist/esm/_baseIteratee-DJNkOVK7.js +0 -1
  785. package/dist/esm/_baseUniq-BJKKUJ6e.js +0 -1
  786. package/dist/esm/arc-BqJSq9Se.js +0 -1
  787. package/dist/esm/architecture-YZFGNWBL-B4qRp-MK.js +0 -1
  788. package/dist/esm/architectureDiagram-Q4EWVU46-MfdUMKWh.js +0 -1
  789. package/dist/esm/basic-setup-UGhpl5jF.js +0 -1
  790. package/dist/esm/blockDiagram-DXYQGD6D-B53ncWj8.js +0 -1
  791. package/dist/esm/c4Diagram-AHTNJAMY-FdREycKs.js +0 -1
  792. package/dist/esm/channel-D_ARZf1V.js +0 -1
  793. package/dist/esm/chunk-4TB4RGXK-DpY00B8-.js +0 -1
  794. package/dist/esm/chunk-EDXVE4YY-DCPe-NtF.js +0 -1
  795. package/dist/esm/chunk-OYMX7WX6-C7RHHgRc.js +0 -1
  796. package/dist/esm/classDiagram-6PBFFD2Q-B7_Zpqtq.js +0 -1
  797. package/dist/esm/classDiagram-v2-HSJHXN6E-B7_Zpqtq.js +0 -1
  798. package/dist/esm/clone-DZNciEx8.js +0 -1
  799. package/dist/esm/commons-D9Mh1s5L.js +0 -1
  800. package/dist/esm/cose-bilkent-S5V4N54A-BOV94ldj.js +0 -1
  801. package/dist/esm/cytoscape.esm-D5qQrGhU.js +0 -9
  802. package/dist/esm/dagre-KV5264BT-BfFz9a4k.js +0 -1
  803. package/dist/esm/diagram-5BDNPKRD-I9IS2ANw.js +0 -1
  804. package/dist/esm/diagram-G4DWMVQ6-BXU7Dvs-.js +0 -1
  805. package/dist/esm/diagram-MMDJMWI5-Csk96FFg.js +0 -1
  806. package/dist/esm/diagram-TYMM5635-DPvqrKRl.js +0 -1
  807. package/dist/esm/erDiagram-SMLLAGMA-Dc1SOwcN.js +0 -1
  808. package/dist/esm/floating-ui.dom-BKnkJW47.js +0 -1
  809. package/dist/esm/flowDiagram-DWJPFMVM-Ck8eEuPh.js +0 -1
  810. package/dist/esm/ganttDiagram-T4ZO3ILL-D5DV1RYK.js +0 -1
  811. package/dist/esm/gitGraph-7Q5UKJZL-AWq1Wmi2.js +0 -1
  812. package/dist/esm/gitGraphDiagram-UUTBAWPF-BWpwlfSt.js +0 -1
  813. package/dist/esm/graph-DcE5swO6.js +0 -1
  814. package/dist/esm/index-Bp7rYslS.js +0 -1
  815. package/dist/esm/index-TeLD_8PN.js +0 -1
  816. package/dist/esm/info-OMHHGYJF-CDJfFYlp.js +0 -1
  817. package/dist/esm/infoDiagram-42DDH7IO-aiwYT7Xb.js +0 -1
  818. package/dist/esm/isSymbol-CATEdeai.js +0 -1
  819. package/dist/esm/isUndefined-DgmxjSXK.js +0 -1
  820. package/dist/esm/ishikawaDiagram-UXIWVN3A-adhn2Hxg.js +0 -1
  821. package/dist/esm/journeyDiagram-VCZTEJTY-w8F4Ngn_.js +0 -1
  822. package/dist/esm/kanban-definition-6JOO6SKY-BUy-pXA5.js +0 -1
  823. package/dist/esm/layout-LXPx6gJv.js +0 -1
  824. package/dist/esm/map-BvlAjF4J.js +0 -1
  825. package/dist/esm/memoize-CPUrcYQl.js +0 -1
  826. package/dist/esm/mermaid-parser.core-_V3e3eig.js +0 -1
  827. package/dist/esm/mermaid.core-C89m9NSM.js +0 -1
  828. package/dist/esm/min-Dc9VrJ6M.js +0 -1
  829. package/dist/esm/mindmap-definition-QFDTVHPH-DQor9UlS.js +0 -1
  830. package/dist/esm/nsis-Cx8FAvMN.js +0 -1
  831. package/dist/esm/packet-4T2RLAQJ-DGgnF4xi.js +0 -1
  832. package/dist/esm/pie-ZZUOXDRM-jgrNXYlk.js +0 -1
  833. package/dist/esm/pieDiagram-DEJITSTG-CFXV-DSu.js +0 -1
  834. package/dist/esm/purify.es-DBOWJxv3.js +0 -2
  835. package/dist/esm/quadrantDiagram-34T5L4WZ-C5PWeOxe.js +0 -1
  836. package/dist/esm/radar-PYXPWWZC-ZVxMZ3XM.js +0 -1
  837. package/dist/esm/requirementDiagram-MS252O5E-CAFUQ1SL.js +0 -1
  838. package/dist/esm/ruby-CR-u2WLS.js +0 -1
  839. package/dist/esm/sankeyDiagram-XADWPNL6-D63_orrT.js +0 -1
  840. package/dist/esm/sequenceDiagram-FGHM5R23-DjI8jxRK.js +0 -1
  841. package/dist/esm/stateDiagram-FHFEXIEX-BeDx2Idm.js +0 -1
  842. package/dist/esm/stateDiagram-v2-QKLJ7IA2-BSzNVn1D.js +0 -1
  843. package/dist/esm/string-LeDn2fkG.js +0 -1
  844. package/dist/esm/throttle-BsCMUG1-.js +0 -1
  845. package/dist/esm/timeline-definition-GMOUNBTQ-BRHpffn4.js +0 -1
  846. package/dist/esm/toNumber-Bh_HTlSx.js +0 -1
  847. package/dist/esm/treeView-SZITEDCU-CMK4b3Hd.js +0 -1
  848. package/dist/esm/treemap-W4RFUUIX-DjdwA0Jd.js +0 -1
  849. package/dist/esm/types-CsXckO56.js +0 -1
  850. package/dist/esm/vennDiagram-DHZGUBPP-Cauja-PK.js +0 -1
  851. package/dist/esm/viz-CFEjElvl.js +0 -9
  852. package/dist/esm/wardley-RL74JXVD-DiOshmTl.js +0 -1
  853. package/dist/esm/wardleyDiagram-NUSXRM2D-CSY5_Vpk.js +0 -1
  854. package/dist/esm/xychartDiagram-5P7HB3ND-Bkd1VEMW.js +0 -1
  855. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/component/code-block.d.ts +0 -0
  856. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/component/image-block.d.ts +0 -0
  857. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/component/image-inline.d.ts +0 -0
  858. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/component/index.d.ts +0 -0
  859. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/component/link-tooltip.d.ts +0 -0
  860. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/component/list-item-block.d.ts +0 -0
  861. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/component/table-block.d.ts +0 -0
  862. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/core.d.ts +0 -0
  863. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/ctx.d.ts +0 -0
  864. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/block.d.ts +0 -0
  865. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/clipboard.d.ts +0 -0
  866. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/cursor.d.ts +0 -0
  867. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/history.d.ts +0 -0
  868. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/indent.d.ts +0 -0
  869. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/listener.d.ts +0 -0
  870. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/slash.d.ts +0 -0
  871. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/tooltip.d.ts +0 -0
  872. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/trailing.d.ts +0 -0
  873. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/plugin/upload.d.ts +0 -0
  874. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/preset/commonmark.d.ts +0 -0
  875. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/preset/gfm.d.ts +0 -0
  876. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/prose/history.d.ts +0 -0
  877. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/prose/index.d.ts +0 -0
  878. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/prose/inputrules.d.ts +0 -0
  879. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/prose/keymap.d.ts +0 -0
  880. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/prose/model.d.ts +0 -0
  881. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/prose/state.d.ts +0 -0
  882. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/prose/view.d.ts +0 -0
  883. /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.23.0_@codemirror+language@6.13.1_@codemirror+state@6.7.6_@codemirror+vi_3301ef378947b358eb17e6850a1dc747}/node_modules/@milkdown/kit/lib/utils.d.ts +0 -0
@@ -0,0 +1 @@
1
+ import{g as t}from"./chunk-XXDRQBXY-CIB-Pv6R.js";import{s as e}from"./chunk-VQ5W62QI-MGNBKNlF.js";import{_ as s,L as i,b as n,a as r,s as a,g as o,v as c,x as l,c as h,l as u,m as d,C as y,A as p,E as b,F as g,G as _,M as m,I as f,N as k,r as E,t as S,k as T,u as $}from"./mermaid.core-DKkN0L2R.js";import{c as O}from"./channel-DdQBbu1U.js";import"./index-DTAG4nDF.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-BHuDJzTw.js";import"./settings-BONQQsPx.js";import"./constants.js";import"./LoaderLayer-Cv80UCdL.js";import"./websocket-B2hJys_Q.js";import"./index-_kF3_0-k.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./string-DPJhNSkw.js";var N=function(){var t=s(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],i=[2,2],n=[1,7],r=[1,9],a=[1,10],o=[1,11],c=[1,12],l=[1,30],h=[1,23],u=[1,24],d=[1,25],y=[1,26],p=[1,27],b=[1,19],g=[1,28],_=[1,29],m=[1,20],f=[1,18],k=[1,21],E=[1,22],S=[2,6],T=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],$=[1,36],O=[1,37],N=[1,38],C=[1,39],x=[1,40],A=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],I=[1,46],R=[1,47],D=[1,57],L=[43,51,53,54,55,74,75],v=[1,70],w=[1,68],M=[1,65],B=[1,69],G=[1,71],F=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],Y=[1,78],j=[1,77],P=[1,76],z=[69,70,71,72,73],U=[1,91],K=[6,9,45,50],Z=[6,9,12,44,45,50,51,52],W=[1,101],Q=[1,100],X=[1,99],q=[18,61],H=[1,110],V=[1,109],J=[20,43,51,53,54,55],tt=[18,61,64,66],et={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:s(function(t,e,s,i,n,r,a){var o=r.length-1;switch(n){case 1:break;case 2:case 5:case 6:this.$=[];break;case 3:this.$=r[o-1].concat(r[o]);break;case 4:case 34:case 59:case 60:case 61:case 62:case 86:case 69:case 71:case 74:this.$=r[o];break;case 7:i.addEntity(r[o-4]),i.addEntity(r[o-2]),i.addRelationship(r[o-4],r[o],r[o-2],r[o-3]),this.$=[r[o-4],r[o-2]];break;case 8:i.addEntity(r[o-8]),i.addEntity(r[o-4]),i.addRelationship(r[o-8],r[o],r[o-4],r[o-5]),i.setClass([r[o-8]],r[o-6]),i.setClass([r[o-4]],r[o-2]),this.$=[r[o-8],r[o-4]];break;case 9:i.addEntity(r[o-6]),i.addEntity(r[o-2]),i.addRelationship(r[o-6],r[o],r[o-2],r[o-3]),i.setClass([r[o-6]],r[o-4]),this.$=[r[o-6],r[o-2]];break;case 10:i.addEntity(r[o-6]),i.addEntity(r[o-4]),i.addRelationship(r[o-6],r[o],r[o-4],r[o-5]),i.setClass([r[o-4]],r[o-2]),this.$=[r[o-6],r[o-4]];break;case 11:i.addEntity(r[o-3]),i.addAttributes(r[o-3],r[o-1]),this.$=[r[o-3]];break;case 12:i.addEntity(r[o-5]),i.addAttributes(r[o-5],r[o-1]),i.setClass([r[o-5]],r[o-3]),this.$=[r[o-5]];break;case 13:i.addEntity(r[o-2]),this.$=[r[o-2]];break;case 14:i.addEntity(r[o-4]),i.setClass([r[o-4]],r[o-2]),this.$=[r[o-4]];break;case 15:i.addEntity(r[o]),this.$=[r[o]];break;case 16:i.addEntity(r[o-2]),i.setClass([r[o-2]],r[o]),this.$=[r[o-2]];break;case 17:i.addEntity(r[o-6],r[o-4]),i.addAttributes(r[o-6],r[o-1]),this.$=[r[o-6]];break;case 18:i.addEntity(r[o-8],r[o-6]),i.addAttributes(r[o-8],r[o-1]),i.setClass([r[o-8]],r[o-3]),this.$=[r[o-8]];break;case 19:i.addEntity(r[o-5],r[o-3]),this.$=[r[o-5]];break;case 20:i.addEntity(r[o-7],r[o-5]),i.setClass([r[o-7]],r[o-2]),this.$=[r[o-7]];break;case 21:i.addEntity(r[o-3],r[o-1]);break;case 22:i.addEntity(r[o-5],r[o-3]),i.setClass([r[o-5]],r[o]);break;case 23:case 24:this.$=r[o].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=r[o].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=r[o]:(i.setDirection(r[o].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:r[o-2].id},r[o-1],{text:r[o-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:r[o-1],text:r[o-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:r[o-4],text:r[o-2]};break;case 35:this.$=r[o-1]+" "+r[o];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=r[o-3],i.addClass(r[o-2],r[o-1]);break;case 41:case 42:case 63:case 72:case 47:this.$=[r[o]];break;case 43:case 44:this.$=r[o-2].concat([r[o]]);break;case 45:this.$=r[o-2],i.setClass(r[o-1],r[o]);break;case 46:this.$=r[o-3],i.addCssStyles(r[o-2],r[o-1]);break;case 48:case 73:r[o-2].push(r[o]),this.$=r[o-2];break;case 50:case 70:this.$=r[o-1]+r[o];break;case 58:case 84:case 85:case 75:this.$=r[o].replace(/"/g,"");break;case 64:r[o].push(r[o-1]),this.$=r[o];break;case 65:this.$={type:r[o-1],name:r[o]};break;case 66:this.$={type:r[o-2],name:r[o-1],keys:r[o]};break;case 67:this.$={type:r[o-2],name:r[o-1],comment:r[o]};break;case 68:this.$={type:r[o-3],name:r[o-2],keys:r[o-1],comment:r[o]};break;case 76:this.$={cardA:r[o],relType:r[o-1],cardB:r[o-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,i,{5:3}),{6:[1,4],7:5,8:6,9:n,10:8,21:r,23:a,25:o,27:c,28:13,29:14,30:15,31:16,32:17,34:l,37:h,38:u,39:d,40:y,41:p,43:b,46:g,47:_,51:m,53:f,54:k,55:E},t(e,S,{1:[2,1]}),t(T,[2,3]),t(T,[2,4]),t(T,[2,5]),t(T,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:$,70:O,71:N,72:C,73:x}),{22:[1,41]},{24:[1,42]},{26:[1,43]},t(T,[2,26]),t(T,[2,27]),t(T,[2,28]),t(T,[2,29]),t(T,[2,30]),t(T,i,{5:44}),t(A,[2,58]),t(A,[2,59]),t(A,[2,60]),t(A,[2,61]),t(A,[2,62]),t(T,[2,36]),t(T,[2,37]),t(T,[2,38]),t(T,[2,39]),{15:45,43:I,44:R},{15:48,43:I,44:R},{15:49,43:I,44:R},{10:50,43:b,51:m,53:f,54:k,55:E},{10:51,43:b,51:m,53:f,54:k,55:E},{15:52,43:I,44:R},{17:53,18:[1,54],56:55,57:56,61:D},{10:58,43:b,51:m,53:f,54:k,55:E},{68:59,74:[1,60],75:[1,61]},t(L,[2,77]),t(L,[2,78]),t(L,[2,79]),t(L,[2,80]),t(L,[2,81]),t(T,[2,23]),t(T,[2,24]),t(T,[2,25]),{6:[1,63],7:5,8:6,9:n,10:8,21:r,23:a,25:o,27:c,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:l,37:h,38:u,39:d,40:y,41:p,43:b,46:g,47:_,51:m,53:f,54:k,55:E},{12:v,42:64,44:w,45:M,48:66,49:67,51:B,52:G},t(F,[2,41]),t(F,[2,42]),{15:72,43:I,44:R,45:M},{12:v,42:73,44:w,45:M,48:66,49:67,51:B,52:G},{6:Y,9:j,19:[1,75],35:74,50:P},{12:[1,79],14:[1,80]},t(T,[2,16],{67:35,11:81,16:[1,82],45:M,69:$,70:O,71:N,72:C,73:x}),{18:[1,83]},t(T,[2,13]),{17:84,18:[2,63],56:55,57:56,61:D},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:$,70:O,71:N,72:C,73:x},t(z,[2,82]),t(z,[2,83]),t(T,[2,31]),t(T,S),{6:Y,9:j,35:90,45:U,50:P},{43:[1,92],44:[1,93]},t(K,[2,47],{49:94,12:v,44:w,51:B,52:G}),t(Z,[2,49]),t(Z,[2,54]),t(Z,[2,55]),t(Z,[2,56]),t(Z,[2,57]),t(T,[2,45],{45:M}),{6:Y,9:j,35:95,45:U,50:P},t(T,[2,32]),{10:97,36:96,43:b,51:m,53:f,54:k,55:E},t(T,[2,51]),t(T,[2,52]),t(T,[2,53]),{13:98,43:W,53:Q,76:X},{15:102,43:I,44:R},{10:103,43:b,51:m,53:f,54:k,55:E},{17:104,18:[1,105],56:55,57:56,61:D},t(T,[2,11]),{18:[2,64]},t(q,[2,65],{59:106,60:107,63:108,65:H,66:V}),t([18,61,65,66],[2,71]),{61:[2,70]},t(T,[2,21],{14:[1,112],16:[1,111]}),t([43,51,53,54,55],[2,76]),t(T,[2,40]),{12:v,44:w,48:113,49:67,51:B,52:G},t(F,[2,43]),t(F,[2,44]),t(Z,[2,50]),t(T,[2,46]),{10:115,20:[1,114],43:b,51:m,53:f,54:k,55:E},t(J,[2,34]),t(T,[2,7]),t(T,[2,84]),t(T,[2,85]),t(T,[2,86]),{12:[1,116],45:M},{12:[1,118],14:[1,117]},{18:[1,119]},t(T,[2,14]),t(q,[2,66],{60:120,64:[1,121],66:V}),t(q,[2,67]),t(tt,[2,72]),t(q,[2,75]),t(tt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:D},{15:124,43:I,44:R},t(K,[2,48],{49:94,12:v,44:w,51:B,52:G}),{6:Y,9:j,35:125,50:P},t(J,[2,35]),{13:126,43:W,53:Q,76:X},{15:127,43:I,44:R},{13:128,43:W,53:Q,76:X},t(T,[2,12]),t(q,[2,68]),{63:129,65:H},{18:[1,130]},t(T,[2,19]),t(T,[2,22],{16:[1,131],45:M}),t(T,[2,33]),t(T,[2,10]),{12:[1,132],45:M},t(T,[2,9]),t(tt,[2,73]),t(T,[2,17]),{17:133,18:[1,134],56:55,57:56,61:D},{13:135,43:W,53:Q,76:X},{18:[1,136]},t(T,[2,20]),t(T,[2,8]),t(T,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:s(function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)},"parseError"),parse:s(function(t){var e=this,i=[0],n=[],r=[null],a=[],o=this.table,c="",l=0,h=0,u=a.slice.call(arguments,1),d=Object.create(this.lexer),y={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(y.yy[p]=this.yy[p]);d.setInput(t,y.yy),y.yy.lexer=d,y.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var b=d.yylloc;a.push(b);var g=d.options&&d.options.ranges;function _(){var t;return"number"!=typeof(t=n.pop()||d.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,s(function(t){i.length=i.length-2*t,r.length=r.length-t,a.length=a.length-t},"popStack"),s(_,"lex");for(var m,f,k,E,S,T,$,O,N={};;){if(f=i[i.length-1],this.defaultActions[f]?k=this.defaultActions[f]:(null==m&&(m=_()),k=o[f]&&o[f][m]),void 0===k||!k.length||!k[0]){var C="";for(S in O=[],o[f])this.terminals_[S]&&S>2&&O.push("'"+this.terminals_[S]+"'");C=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+O.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(C,{text:d.match,token:this.terminals_[m]||m,line:d.yylineno,loc:b,expected:O})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+f+", token: "+m);switch(k[0]){case 1:i.push(m),r.push(d.yytext),a.push(d.yylloc),i.push(k[1]),m=null,h=d.yyleng,c=d.yytext,l=d.yylineno,b=d.yylloc;break;case 2:if(T=this.productions_[k[1]][1],N.$=r[r.length-T],N._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},g&&(N._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(N,[c,h,l,y.yy,k[1],r,a].concat(u))))return E;T&&(i=i.slice(0,-1*T*2),r=r.slice(0,-1*T),a=a.slice(0,-1*T)),i.push(this.productions_[k[1]][0]),r.push(N.$),a.push(N._$),$=o[i[i.length-2]][i[i.length-1]],i.push($);break;case 3:return!0}}return!0},"parse")},st=function(){return{EOF:1,parseError:s(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:s(function(t,e){return this.yy=e||this.yy||{},this._input=t,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:s(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:s(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=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),s.length-1&&(this.yylineno-=s.length-1);var n=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:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:s(function(t){this.unput(this.match.slice(t))},"less"),pastInput:s(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:s(function(t,e){var s,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var r in n)this[r]=n[r];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;var t,e,s,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if((s=this._input.match(this.rules[n[r]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,n[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var t=this.next();return t||this.lex()},"lex"),begin:s(function(t){this.conditionStack.push(t)},"begin"),popState:s(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(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:s(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:s(function(t){this.begin(t)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(t,e,s,i){switch(s){case 0:return this.begin("acc_title"),23;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),25;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 28:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 37;case 8:return 38;case 9:return 39;case 10:return 40;case 11:case 22:case 30:case 37:break;case 12:return 9;case 13:return 53;case 14:return 76;case 15:return 4;case 16:return this.begin("block"),16;case 17:case 18:case 40:return 52;case 19:case 39:return 45;case 20:return 14;case 21:case 38:return 12;case 23:return 65;case 24:case 25:case 27:return 61;case 26:this.begin("block_bq");break;case 29:return 66;case 31:return this.popState(),18;case 32:case 81:return e.yytext[0];case 33:return 19;case 34:return 20;case 35:return this.begin("style"),47;case 36:return this.popState(),9;case 41:return this.begin("style"),41;case 42:return 46;case 43:return 34;case 44:return 33;case 45:case 49:case 50:case 68:return 69;case 46:case 47:case 48:case 56:case 58:case 70:return 71;case 51:case 52:case 53:case 54:case 55:case 57:case 69:return 70;case 59:case 60:case 62:case 63:case 64:case 67:return 72;case 61:return 54;case 65:return 55;case 66:return 51;case 71:return 73;case 72:case 75:case 76:case 77:return 74;case 73:case 74:return 75;case 78:return 44;case 79:return 50;case 80:return 43;case 82:return 6}},"anonymous"),rules:[/^(?: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,/^(?:[ \t\r]+)/i,/^(?:[\n]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,/^(?:[`])/i,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:subgraph\b)/i,/^(?:end\b\s*)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[36,37,38,39,40,78,79],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[27,28],inclusive:!1},block:{rules:[22,23,24,25,26,29,30,31,32],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33,34,35,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,80,81,82],inclusive:!0}}}}();function it(){this.yy={}}return et.lexer=st,s(it,"Parser"),it.prototype=et,et.Parser=it,new it}();N.parser=N;var C=N,x=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.subgraphDepth=0,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=n,this.getAccTitle=r,this.setAccDescription=a,this.getAccDescription=o,this.setDiagramTitle=c,this.getDiagramTitle=l,this.getConfig=s(()=>h().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this),this.addSubGraph=this.addSubGraph.bind(this)}static{s(this,"ErDB")}addEntity(t,e=""){return this.entities.has(t)?!this.entities.get(t)?.alias&&e&&(this.entities.get(t).alias=e,u.info(`Add alias '${e}' to entity '${t}'`)):(this.entities.set(t,{id:`entity-${t}-${this.entities.size}`,label:t,attributes:[],alias:e,shape:"erBox",look:h().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),u.info("Added new entity :",t)),this.entities.get(t)}getEntity(t){return this.entities.get(t)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(t,e){const s=this.addEntity(t);let i;for(i=e.length-1;i>=0;i--)e[i].keys||(e[i].keys=[]),e[i].comment||(e[i].comment=""),s.attributes.push(e[i]),u.debug("Added attribute ",e[i].name)}addRelationship(t,e,s,i){let n,r;if(this.subGraphLookup.has(t))n=t;else{const e=this.addEntity(t);if(!e)return;n=e.id}if(this.subGraphLookup.has(s))r=s;else{const t=this.addEntity(s);if(!t)return;r=t.id}const a={entityA:n,roleA:e,entityB:r,relSpec:i};this.relationships.push(a),u.debug("Added new relationship :",a)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(t){this.direction=t}getCompiledStyles(t){let e=[];for(const s of t){const t=this.classes.get(s);t?.styles&&(e=[...e,...t.styles??[]].map(t=>t.trim())),t?.textStyles&&(e=[...e,...t.textStyles??[]].map(t=>t.trim()))}return e}addCssStyles(t,e){for(const s of t){const t=this.entities.get(s),i=this.subGraphLookup.get(s);if(e){if(t)for(const s of e)t.cssStyles.push(s);if(i){i.cssStyles||(i.cssStyles=[]);for(const t of e)i.cssStyles.push(t)}}}}addClass(t,e){t.forEach(t=>{let s=this.classes.get(t);void 0===s&&(s={id:t,styles:[],textStyles:[]},this.classes.set(t,s)),e&&e.forEach(function(t){if(/color/.exec(t)){const e=t.replace("fill","bgFill");s.textStyles.push(e)}s.styles.push(t)})})}addSubGraph(t,e,i){let n=t.text.trim(),r=i.text;const a=s(t=>{const e=new Set;let s;return{nodeList:t.filter(t=>{if(t?.stmt)return"dir"===t.stmt&&(s=t.value),!1;if("string"!=typeof t)return!1;const i=t.trim();return!!i&&(!e.has(i)&&(e.add(i),!0))}),dir:s}},"uniq")(e.flat()),o=a.nodeList,c=a.dir;n=n??"subGraph"+this.subCount,r=r||"",r=this.sanitizeText(r),this.subCount=this.subCount+1;const l={id:n,nodes:o,title:r.trim(),classes:[],cssStyles:[],dir:c,labelType:this.sanitizeNodeLabelType(i?.type)};return u.info("Adding",l.id,l.nodes,l.dir),l.nodes=this.makeUniq(l,this.subGraphs).nodes,this.subGraphs.push(l),this.subGraphLookup.set(n,l),n}getSubGraphs(){return this.subGraphs}setClass(t,e){for(const s of t){const t=this.entities.get(s);if(t)for(const s of e)t.cssClasses+=" "+s;const i=this.subGraphLookup.get(s);if(i)for(const t of e)i.classes.push(t)}}subgraphNodeCache(t){const e=new Set;for(const s of t)for(const t of s.nodes)e.add(t);return e}makeUniq(t,e){const s=this.subgraphNodeCache(e),i=[];return t.nodes.forEach((e,n)=>{s.has(e)?u.warn(`Entity '${e}' already belongs to another subgraph and will be ignored`):i.push(t.nodes[n])}),{nodes:i}}sanitizeText(t){return d.sanitizeText(t,h())}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.subgraphDepth=0,y()}getData(){const t=[],e=[],s=h(),i=this.getSubGraphs(),n=new Map,r=new Map;for(let t=i.length-1;t>=0;t--){const e=i[t];e.nodes.length>0&&r.set(e.id,!0);for(const t of e.nodes)n.set(t,e.id)}for(let e=i.length-1;e>=0;e--){const r=i[e];t.push({id:r.id,label:r.title,labelStyle:"",labelType:r.labelType,parentId:n.get(r.id),padding:8,cssCompiledStyles:this.getCompiledStyles(r.classes),cssStyles:r.cssStyles,cssClasses:r.classes.join(" "),shape:"rect",dir:r.dir,isGroup:!0,look:s.look})}const a=new Set(i.map(t=>t.id));let o=0;for(const e of this.entities.keys()){if(a.has(e))continue;const s=this.entities.get(e);s&&(s.cssCompiledStyles=this.getCompiledStyles(s.cssClasses.split(" ")),s.colorIndex=o++,t.push({...s,parentId:n.get(e),isGroup:!1}))}let c=0;for(const t of this.relationships){const i={id:p(t.entityA,t.entityB,{prefix:"id",counter:c++}),type:"normal",curve:"basis",start:t.entityA,end:t.entityB,label:t.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:t.relSpec.cardB.toLowerCase(),arrowTypeEnd:t.relSpec.cardA.toLowerCase(),pattern:"IDENTIFYING"==t.relSpec.relType?"solid":"dashed",look:s.look,labelType:"markdown"};e.push(i)}return{nodes:t,edges:e,other:{},config:s,direction:this.direction}}},A={};k(A,{draw:()=>I});var I=s(async function(s,i,n,r){u.info("REF0:"),u.info("Drawing er diagram (unified)",i);const{securityLevel:a,er:o,layout:c}=h(),l=r.db.getData(),d=t(i,a);l.type=r.type,l.layoutAlgorithm=E(c),l.config.flowchart.nodeSpacing=o?.nodeSpacing||140,l.config.flowchart.rankSpacing=o?.rankSpacing||80,l.direction=r.db.getDirection();const{config:y}=l,{look:p}=y;l.markers="neo"===p?["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:["only_one","zero_or_one","one_or_more","zero_or_more"],l.diagramId=i,await S(l,d);const b=d.selectAll('[id*="-background"]');Array.from(b).length>0&&b.each(function(){const t=T(this),e=t.attr("id").replace("-background",""),s=d.select(`#${CSS.escape(e)}`);if(!s.empty()){const e=s.attr("transform");t.attr("transform",e)}});$.insertTitle(d,"erDiagramTitleText",o?.titleTopMargin??25,r.db.getDiagramTitle()),e(d,8,"erDiagram",o?.useMaxWidth??!0)},"draw"),R=s((t,e)=>{const s=O,i=s(t,"r"),n=s(t,"g"),r=s(t,"b");return f(i,n,r,e)},"fade"),D=s(t=>{const{theme:e,bkgColorArray:s,borderColorArray:i}=t;if(!b(e,i))return"";const n=g(t.look),r=_(s);let a="";for(let t=0;t<m(i);t++){const e=i[t],o=r?`fill: ${s[t%s.length]};`:"";a+=`\n\n [data-look="${n}"][data-color-id="color-${t}"].node path {\n stroke: ${e};\n ${o}\n }\n\n [data-look="${n}"][data-color-id="color-${t}"].node rect {\n stroke: ${e};\n ${o}\n }\n `}return a},"genColor"),L=s(t=>{const{look:e,theme:s,erEdgeLabelBackground:n,strokeWidth:r}=t;return`\n ${D(t)}\n .entityBox {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n }\n\n .relationshipLabelBox {\n fill: ${t.tertiaryColor};\n opacity: 0.7;\n background-color: ${t.tertiaryColor};\n rect {\n opacity: 0.5;\n }\n }\n\n .labelBkg {\n background-color: ${i.has(s)&&n?n:R(t.tertiaryColor,.5)};\n }\n\n .edgeLabel {\n background-color: ${i.has(s)&&n?n:t.edgeLabelBackground};\n }\n .edgeLabel .label rect {\n fill: ${i.has(s)&&n?n:t.edgeLabelBackground};\n }\n .edgeLabel .label text {\n fill: ${t.textColor};\n }\n\n .edgeLabel .label {\n fill: ${t.nodeBorder};\n font-size: 14px;\n }\n\n .label {\n font-family: ${t.fontFamily};\n color: ${t.nodeTextColor||t.textColor};\n }\n\n .edge-pattern-dashed {\n stroke-dasharray: 8,8;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon\n {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: ${"neo"===e?r:"1px"};\n }\n\n .relationshipLine {\n stroke: ${t.lineColor};\n stroke-width: ${"neo"===e?r:"1px"};\n fill: none;\n }\n\n .marker {\n fill: none !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n }\n [data-look=neo].labelBkg {\n background-color: ${R(t.tertiaryColor,.5)};\n }\n\n .cluster rect {\n fill: ${t.clusterBkg??t.mainBkg};\n stroke: ${t.clusterBorder??t.nodeBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${t.titleColor??t.textColor};\n }\n\n .cluster-label text {\n fill: ${t.titleColor??t.textColor};\n }\n`},"getStyles"),v={parser:C,get db(){return new x},renderer:A,styles:L};export{v as diagram};
@@ -0,0 +1 @@
1
+ function t(){return"undefined"!=typeof window}function e(t){return r(t)?(t.nodeName||"").toLowerCase():"#document"}function n(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function o(t){var e;return null==(e=(r(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function r(e){return!!t()&&(e instanceof Node||e instanceof n(e).Node)}function a(e){return!!t()&&(e instanceof Element||e instanceof n(e).Element)}function i(e){return!!t()&&(e instanceof HTMLElement||e instanceof n(e).HTMLElement)}function l(e){return!(!t()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof n(e).ShadowRoot)}function s(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=v(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&"inline"!==r&&"contents"!==r}function c(t){return/^(table|td|th)$/.test(e(t))}function f(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const u=/transform|translate|scale|rotate|perspective|filter/,m=/paint|layout|strict|content/,d=t=>!!t&&"none"!==t;let p;function g(t){const e=a(t)?v(t):t;return d(e.transform)||d(e.translate)||d(e.scale)||d(e.rotate)||d(e.perspective)||!w()&&(d(e.backdropFilter)||d(e.filter))||u.test(e.willChange||"")||m.test(e.contain||"")}function y(t){let e=b(t);for(;i(e)&&!h(e);){if(g(e))return e;if(f(e))return null;e=b(e)}return null}function w(){return null==p&&(p="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),p}function h(t){return/^(html|body|#document)$/.test(e(t))}function v(t){return n(t).getComputedStyle(t)}function x(t){return a(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function b(t){if("html"===e(t))return t;const n=t.assignedSlot||t.parentNode||l(t)&&t.host||o(t);return l(n)?n.host:n}function A(t){const e=b(t);return h(e)?(t.ownerDocument||t).body:i(e)&&s(e)?e:A(e)}function R(t,e,o){var r;void 0===e&&(e=[]),void 0===o&&(o=!0);const a=A(t),i=a===(null==(r=t.ownerDocument)?void 0:r.body),l=n(a);if(i){const t=E(l);return e.concat(l,l.visualViewport||[],s(a)?a:[],t&&o?R(t):[])}return e.concat(a,R(a,[],o))}function E(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}const O=Math.min,S=Math.max,D=Math.round,T=Math.floor,k=t=>({x:t,y:t}),L={left:"right",right:"left",bottom:"top",top:"bottom"};function P(t,e,n){return S(t,O(e,n))}function C(t,e){return"function"==typeof t?t(e):t}function M(t){return t.split("-")[0]}function B(t){return t.split("-")[1]}function N(t){return"x"===t?"y":"x"}function V(t){return"y"===t?"height":"width"}function j(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function F(t){return N(j(t))}function H(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const X=["left","right"],Y=["right","left"],$=["top","bottom"],q=["bottom","top"];function z(t,e,n,o){const r=B(t);let a=function(t,e,n){switch(t){case"top":case"bottom":return n?e?Y:X:e?X:Y;case"left":case"right":return e?$:q;default:return[]}}(M(t),"start"===n,o);return r&&(a=a.map(t=>t+"-"+r),e&&(a=a.concat(a.map(H)))),a}function W(t){const e=M(t);return L[e]+t.slice(e.length)}function G(t){return"number"!=typeof t?function(t){var e,n,o,r;return{top:null!=(e=t.top)?e:0,right:null!=(n=t.right)?n:0,bottom:null!=(o=t.bottom)?o:0,left:null!=(r=t.left)?r:0}}(t):{top:t,right:t,bottom:t,left:t}}function I(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function J(t,e,n){let{reference:o,floating:r}=t;const a=j(e),i=F(e),l=V(i),s=M(e),c="y"===a,f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,m=o[l]/2-r[l]/2;let d;switch(s){case"top":d={x:f,y:o.y-r.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-r.width,y:u};break;default:d={x:o.x,y:o.y}}const p=B(e);return p&&(d[i]+=m*("end"===p?1:-1)*(n&&c?-1:1)),d}async function K(t,e){var n;void 0===e&&(e={});const{x:o,y:r,platform:a,rects:i,elements:l,strategy:s}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:d=0}=C(e,t),p=G(d),g=l[m?"floating"===u?"reference":"floating":u],y=I(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(g)))||n?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:f,strategy:s})),w="floating"===u?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,h=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),v=await(null==a.isElement?void 0:a.isElement(h))&&await(null==a.getScale?void 0:a.getScale(h))||{x:1,y:1},x=I(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:h,strategy:s}):w);return{top:(y.top-x.top+p.top)/v.y,bottom:(x.bottom-y.bottom+p.bottom)/v.y,left:(y.left-x.left+p.left)/v.x,right:(x.right-y.right+p.right)/v.x}}const Q=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:i}=n,l=i.detectOverflow?i:{...i,detectOverflow:K},s=await(null==i.isRTL?void 0:i.isRTL(e));let c=await i.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:u}=J(c,o,s),m=o,d=0;const p={};for(let n=0;n<a.length;n++){const g=a[n];if(!g)continue;const{name:y,fn:w}=g,{x:h,y:v,data:x,reset:b}=await w({x:f,y:u,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:c,platform:l,elements:{reference:t,floating:e}});f=null!=h?h:f,u=null!=v?v:u,p[y]={...p[y],...x},b&&d<50&&(d++,"object"==typeof b&&(b.placement&&(m=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:t,floating:e,strategy:r}):b.rects),({x:f,y:u}=J(c,m,s))),n=-1)}return{x:f,y:u,placement:m,strategy:r,middlewareData:p}},U=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:a,platform:i,elements:l,middlewareData:s}=e,{element:c,padding:f=0}=C(t,e)||{};if(null==c)return{};const u=G(f),m={x:n,y:o},d=F(r),p=V(d),g=await i.getDimensions(c),y="y"===d,w=y?"top":"left",h=y?"bottom":"right",v=y?"clientHeight":"clientWidth",x=a.reference[p]+a.reference[d]-m[d]-a.floating[p],b=m[d]-a.reference[d],A=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let R=A?A[v]:0;R&&await(null==i.isElement?void 0:i.isElement(A))||(R=l.floating[v]||a.floating[p]);const E=x/2-b/2,S=R/2-g[p]/2-1,D=O(u[w],S),T=O(u[h],S),k=R-g[p]-T,L=R/2-g[p]/2+E,M=P(D,L,k),N=!s.arrow&&null!=B(r)&&L!==M&&a.reference[p]/2-(L<D?D:T)-g[p]/2<0,j=N?L<D?L-D:L-k:0;return{[d]:m[d]+j,data:{[d]:M,centerOffset:L-M-j,...N&&{alignmentOffset:j}},reset:N}}}),Z=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:a,rects:i,initialPlacement:l,platform:s,elements:c}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...y}=C(t,e);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const w=M(r),h=j(l),v=M(l)===l,x=await(null==s.isRTL?void 0:s.isRTL(c.floating)),b=m||(v||!g?[W(l)]:function(t){const e=W(t);return[H(t),e,H(e)]}(l)),A="none"!==p;!m&&A&&b.push(...z(l,g,p,x));const R=[l,...b],E=await s.detectOverflow(e,y),O=[];let S=(null==(o=a.flip)?void 0:o.overflows)||[];if(f&&O.push(E[w]),u){const t=function(t,e,n){void 0===n&&(n=!1);const o=B(t),r=F(t),a=V(r);let i="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[a]>e.floating[a]&&(i=W(i)),[i,W(i)]}(r,i,x);O.push(E[t[0]],E[t[1]])}if(S=[...S,{placement:r,overflows:O}],!O.every(t=>t<=0)){var D,T;const t=((null==(D=a.flip)?void 0:D.index)||0)+1,e=R[t];if(e){if(!("alignment"===u&&h!==j(e))||S.every(t=>j(t.placement)!==h||t.overflows[0]>0))return{data:{index:t,overflows:S},reset:{placement:e}}}let n=null==(T=S.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:T.placement;if(!n)switch(d){case"bestFit":{var k;const t=null==(k=S.filter(t=>{if(A){const e=j(t.placement);return e===h||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:k[0];t&&(n=t);break}case"initialPlacement":n=l}if(r!==n)return{reset:{placement:n}}}return{}}}},_=new Set(["left","top"]);const tt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:a,placement:i,middlewareData:l}=e,s=await async function(t,e){const{placement:n,platform:o,elements:r}=t,a=await(null==o.isRTL?void 0:o.isRTL(r.floating)),i=M(n),l=B(n),s="y"===j(n),c=_.has(i)?-1:1,f=a&&s?-1:1,u=C(e,t);let{mainAxis:m,crossAxis:d,alignmentAxis:p}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&"number"==typeof p&&(d="end"===l?-1*p:p),s?{x:d*f,y:m*c}:{x:m*c,y:d*f}}(e,t);return i===(null==(n=l.offset)?void 0:n.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:r+s.x,y:a+s.y,data:{...s,placement:i}}}}},et=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r,platform:a}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=C(t,e),f={x:n,y:o},u=await a.detectOverflow(e,c),m=j(r),d=N(m);let p=f[d],g=f[m];const y=(t,e)=>P(e+u["y"===t?"top":"left"],e,e-u["y"===t?"bottom":"right"]);i&&(p=y(d,p)),l&&(g=y(m,g));const w=s.fn({...e,[d]:p,[m]:g});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[d]:i,[m]:l}}}}}};export{E as A,U as B,l as C,r as D,o as a,n as b,Q as c,T as d,i as e,Z as f,R as g,k as h,a as i,D as j,O as k,v as l,S as m,f as n,tt as o,b as p,h as q,I as r,et as s,c as t,g as u,y as v,e as w,s as x,x as y,w as z};
@@ -0,0 +1 @@
1
+ import{g as t,c as e,o as n,f as i,s as o,i as r,a as s,b as l,r as c,d as f,e as a,h as u,j as h,m as d,k as g,l as p,n as y,p as x,q as m,t as w,u as v,v as b,w as L,x as R,y as T,z as C,A as F}from"./floating-ui.core-DzsaFWsC.js";function E(t){const e=p(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=a(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,l=h(n)!==r||h(i)!==s;return l&&(n=r,i=s),{width:n,height:i,$:l}}function W(t){return r(t)?t:t.contextElement}function z(t){const e=W(t);if(!a(e))return u(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:r}=E(e);let s=(r?h(n.width):n.width)/i,l=(r?h(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}const H=u(0);function O(t){const e=l(t);return C()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:H}function A(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),s=W(t);let f=u(1);e&&(i?r(i)&&(f=z(i)):f=z(t));const a=function(t,e,n){return void 0===e&&(e=!1),!!n&&e&&n===l(t)}(s,n,i)?O(s):u(0);let h=(o.left+a.x)/f.x,d=(o.top+a.y)/f.y,g=o.width/f.x,y=o.height/f.y;if(s&&i){const t=l(s),e=r(i)?l(i):i;let n=t,o=F(n);for(;o&&e!==n;){const t=z(o),e=o.getBoundingClientRect(),i=p(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;h*=t.x,d*=t.y,g*=t.x,y*=t.y,h+=r,d+=s,n=l(o),o=F(n)}}return c({width:g,height:y,x:h,y:d})}function B(t,e){const n=T(t).scrollLeft;return e?e.left+n:A(s(t)).left+n}function D(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-B(t,n),y:n.top+e.scrollTop}}function S(t,e,n){let i;if("viewport"===e||"layoutViewport"===e)i=function(t,e,n){void 0===n&&(n="viewport");const i="layoutViewport"===n,o=l(t),r=s(t),c=o.visualViewport;let f=r.clientWidth,a=r.clientHeight,u=0,h=0;if(c){const t=!C()||"fixed"===e;i?t||(u=-c.offsetLeft,h=-c.offsetTop):(f=c.width,a=c.height,t&&(u=c.offsetLeft,h=c.offsetTop))}if(B(r)<=0){const t=r.ownerDocument,e=t.body,n=getComputedStyle(e),i="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-e.clientWidth-i),s="stable both-edges"===getComputedStyle(r).scrollbarGutter?o/2:o;s<=25&&(f-=s)}return{width:f,height:a,x:u,y:h}}(t,n,e);else if("document"===e)i=function(t){const e=T(t),n=t.ownerDocument.body,i=d(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=d(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-e.scrollLeft+B(t);const s=-e.scrollTop;return"rtl"===p(n).direction&&(r+=d(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:r,y:s}}(s(t));else if(r(e))i=function(t,e){const n=A(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=z(t);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(e,n);else{const n=O(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return c(i)}function V(t,e,n){const i=a(e),o=s(e),r="fixed"===n,l=A(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const f=u(0);if((i||!r)&&(("body"!==L(e)||R(o))&&(c=T(e)),i)){const t=A(e,!0,r,e);f.x=t.x+e.clientLeft,f.y=t.y+e.clientTop}!i&&o&&(f.x=B(o));const h=!o||i||r?u(0):D(o,c);return{x:l.left+c.scrollLeft-f.x-h.x,y:l.top+c.scrollTop-f.y-h.y,width:l.width,height:l.height}}function P(t){return"static"===p(t).position}function q(t,e){if(!a(t)||"fixed"===p(t).position)return null;if(e)return e(t);let n=t.offsetParent;return s(t)===n&&(n=n.ownerDocument.body),n}function M(t,e){const n=l(t);if(y(t))return n;if(!a(t)){let e=x(t);for(;e&&!m(e);){if(r(e)&&!P(e))return e;e=x(e)}return n}let i=q(t,e);for(;i&&w(i)&&P(i);)i=q(i,e);return i&&m(i)&&P(i)&&!v(i)?n:i||b(t)||n}const I={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const r="fixed"===o,l=s(i),c=!!e&&y(e.floating);if(i===l||c&&r)return n;let f={scrollLeft:0,scrollTop:0},h=u(1);const d=u(0),g=a(i);if((g||!r)&&(("body"!==L(i)||R(l))&&(f=T(i)),g)){const t=A(i);h=z(i),d.x=t.x+i.clientLeft,d.y=t.y+i.clientTop}const p=!l||g||r?u(0):D(l,f);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+d.x+p.x,y:n.y*h.y-f.scrollTop*h.y+d.y+p.y}},getDocumentElement:s,getClippingRect:function(e){let{element:n,boundary:i,rootBoundary:o,strategy:s}=e;const l=[..."clippingAncestors"===i?y(n)?[]:function(e,n){const i=n.get(e);if(i)return i;let o=t(e,[],!1).filter(t=>r(t)&&"body"!==L(t)),s=null;const l="fixed"===p(e).position;let c=l?x(e):e;for(;r(c)&&!m(c);){const t=p(c),e=v(c),n=s?s.position:l?"fixed":"";e||"fixed"!==n&&("absolute"!==n||"static"!==t.position)?s=t:o=o.filter(t=>t!==c),c=x(c)}return n.set(e,o),o}(n,this._c):[].concat(i),o],c=S(n,l[0],s);let f=c.top,a=c.right,u=c.bottom,h=c.left;for(let t=1;t<l.length;t++){const e=S(n,l[t],s);f=d(e.top,f),a=g(e.right,a),u=g(e.bottom,u),h=d(e.left,h)}return{width:a-h,height:u-f,x:h,y:f}},getOffsetParent:M,getElementRects:async function(t){const e=this.getOffsetParent||M,n=this.getDimensions,i=await n(t.floating);return{reference:V(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return t.getClientRects?Array.from(t.getClientRects()):[]},getDimensions:function(t){const{width:e,height:n}=E(t);return{width:e,height:n}},getScale:z,isElement:r,isRTL:function(t){return"rtl"===p(t).direction}};function j(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function N(e,n,i,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:c=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:h=!1}=o,p=W(e),y=r||c?[...p?t(p):[],...n?t(n):[]]:[];y.forEach(t=>{r&&t.addEventListener("scroll",i),c&&t.addEventListener("resize",i)});const x=p&&u?function(t,e,n){let i,o=null;const r=s(t);function c(){var t;clearTimeout(i),null==(t=o)||t.disconnect(),o=null}function a(n,s){void 0===n&&(n=!1),void 0===s&&(s=1),c();const l=t.getBoundingClientRect(),{left:u,top:h,width:p,height:y}=l;if(n||e(),!p||!y)return;const x={rootMargin:-f(h)+"px "+-f(r.clientWidth-(u+p))+"px "+-f(r.clientHeight-(h+y))+"px "+-f(u)+"px",threshold:d(0,g(1,s))||1};let m=!0;function w(e){const n=e[0].intersectionRatio;if(!j(l,t.getBoundingClientRect()))return a();if(n!==s){if(!m)return a();n?a(!1,n):i=setTimeout(()=>{a(!1,1e-7)},1e3)}m=!1}try{o=new IntersectionObserver(w,{...x,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(w,x)}o.observe(t)}const u=l(t),h=()=>a(n);return u.addEventListener("resize",h),a(!0),()=>{u.removeEventListener("resize",h),c()}}(p,i,c):null;let m,w=-1,v=null;a&&(v=new ResizeObserver(t=>{let[e]=t;e&&e.target===p&&v&&n&&(v.unobserve(n),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var t;null==(t=v)||t.observe(n)})),i()}),p&&!h&&v.observe(p),n&&v.observe(n));let b=h?A(e):null;return h&&function t(){const n=A(e);b&&!j(b,n)&&i();b=n,m=requestAnimationFrame(t)}(),i(),()=>{var t;y.forEach(t=>{r&&t.removeEventListener("scroll",i),c&&t.removeEventListener("resize",i)}),null==x||x(),null==(t=v)||t.disconnect(),v=null,h&&cancelAnimationFrame(m)}}const $=n,_=o,k=i,G=(t,n,i)=>{const o=new Map,r=null!=i?i:{},s={...I,...r.platform,_c:o};return e(t,n,{...r,platform:s})};export{N as a,G as c,k as f,$ as o,_ as s};
@@ -0,0 +1 @@
1
+ import{d as r}from"./chunk-NQOKRVIF-CLuzP2Xi.js";export{c as createFlowDiagram}from"./chunk-NQOKRVIF-CLuzP2Xi.js";import"./mermaid.core-DKkN0L2R.js";import"./chunk-5VM5RSS4-DEKr6tsK.js";import"./chunk-XXDRQBXY-CIB-Pv6R.js";import"./chunk-VQ5W62QI-MGNBKNlF.js";import"./chunk-55XCU76K-BhN5PLeC.js";import"./channel-DdQBbu1U.js";import"./index-DTAG4nDF.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-BHuDJzTw.js";import"./settings-BONQQsPx.js";import"./constants.js";import"./LoaderLayer-Cv80UCdL.js";import"./websocket-B2hJys_Q.js";import"./index-_kF3_0-k.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./string-DPJhNSkw.js";export{r as diagram};
@@ -0,0 +1 @@
1
+ import{g as t,s as e,x as n,v as i,a as s,b as r,_ as a,c as o,k as c,d as l,bd as d,l as u,m as h,p as f,C as m,u as y}from"./mermaid.core-DKkN0L2R.js";import{z as k}from"./index-DTAG4nDF.js";import{t as p,m as g,a as v,b as x,c as b,d as T,e as w,f as $,g as _,h as D,i as M,j as S,k as C,l as E,n as Y,s as A,o as L}from"./time-DP3lbwAd.js";import{l as I}from"./linear-CIPQsvV7.js";import{R as O,r as F,d as W,e as P,C as N,n as j,h as z}from"./string-DPJhNSkw.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-BHuDJzTw.js";import"./settings-BONQQsPx.js";import"./constants.js";import"./LoaderLayer-Cv80UCdL.js";import"./websocket-B2hJys_Q.js";import"./index-_kF3_0-k.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./init-DLRA0X12.js";import"./defaultLocale-HOdfsG1x.js";const H=Math.PI/180,B=180/Math.PI,R=.96422,G=.82521,V=4/29,U=6/29,Z=3*U*U,q=U*U*U;function X(t){if(t instanceof Q)return new Q(t.l,t.a,t.b,t.opacity);if(t instanceof it)return st(t);t instanceof O||(t=F(t));var e,n,i=et(t.r),s=et(t.g),r=et(t.b),a=J((.2225045*i+.7168786*s+.0606169*r)/1);return i===s&&s===r?e=n=a:(e=J((.4360747*i+.3850649*s+.1430804*r)/R),n=J((.0139322*i+.0971045*s+.7141733*r)/G)),new Q(116*a-16,500*(e-a),200*(a-n),t.opacity)}function Q(t,e,n,i){this.l=+t,this.a=+e,this.b=+n,this.opacity=+i}function J(t){return t>q?Math.pow(t,1/3):t/Z+V}function K(t){return t>U?t*t*t:Z*(t-V)}function tt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function et(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function nt(t,e,n,i){return 1===arguments.length?function(t){if(t instanceof it)return new it(t.h,t.c,t.l,t.opacity);if(t instanceof Q||(t=X(t)),0===t.a&&0===t.b)return new it(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*B;return new it(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new it(t,e,n,null==i?1:i)}function it(t,e,n,i){this.h=+t,this.c=+e,this.l=+n,this.opacity=+i}function st(t){if(isNaN(t.h))return new Q(t.l,0,0,t.opacity);var e=t.h*H;return new Q(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}W(Q,function(t,e,n,i){return 1===arguments.length?X(t):new Q(t,e,n,null==i?1:i)},P(N,{brighter(t){return new Q(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new Q(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=R*K(e),t=1*K(t),n=G*K(n),new O(tt(3.1338561*e-1.6168667*t-.4906146*n),tt(-.9787684*e+1.9161415*t+.033454*n),tt(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),W(it,nt,P(N,{brighter(t){return new it(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new it(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return st(this).rgb()}}));var rt=function(t){return function(e,n){var i=t((e=nt(e)).h,(n=nt(n)).h),s=j(e.c,n.c),r=j(e.l,n.l),a=j(e.opacity,n.opacity);return function(t){return e.h=i(t),e.c=s(t),e.l=r(t),e.opacity=a(t),e+""}}}(z);function at(t){return t}var ot=1e-6;function ct(t){return"translate("+t+",0)"}function lt(t){return"translate(0,"+t+")"}function dt(t){return e=>+t(e)}function ut(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function ht(){return!this.__axis}function ft(t,e){var n=[],i=null,s=null,r=6,a=6,o=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,l=1===t||4===t?-1:1,d=4===t||2===t?"x":"y",u=1===t||3===t?ct:lt;function h(h){var f=null==i?e.ticks?e.ticks.apply(e,n):e.domain():i,m=null==s?e.tickFormat?e.tickFormat.apply(e,n):at:s,y=Math.max(r,0)+o,k=e.range(),p=+k[0]+c,g=+k[k.length-1]+c,v=(e.bandwidth?ut:dt)(e.copy(),c),x=h.selection?h.selection():h,b=x.selectAll(".domain").data([null]),T=x.selectAll(".tick").data(f,e).order(),w=T.exit(),$=T.enter().append("g").attr("class","tick"),_=T.select("line"),D=T.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.merge($),_=_.merge($.append("line").attr("stroke","currentColor").attr(d+"2",l*r)),D=D.merge($.append("text").attr("fill","currentColor").attr(d,l*y).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==x&&(b=b.transition(h),T=T.transition(h),_=_.transition(h),D=D.transition(h),w=w.transition(h).attr("opacity",ot).attr("transform",function(t){return isFinite(t=v(t))?u(t+c):this.getAttribute("transform")}),$.attr("opacity",ot).attr("transform",function(t){var e=this.parentNode.__axis;return u((e&&isFinite(e=e(t))?e:v(t))+c)})),w.remove(),b.attr("d",4===t||2===t?a?"M"+l*a+","+p+"H"+c+"V"+g+"H"+l*a:"M"+c+","+p+"V"+g:a?"M"+p+","+l*a+"V"+c+"H"+g+"V"+l*a:"M"+p+","+c+"H"+g),T.attr("opacity",1).attr("transform",function(t){return u(v(t)+c)}),_.attr(d+"2",l*r),D.attr(d,l*y).text(m),x.filter(ht).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),x.each(function(){this.__axis=v})}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(i=null==t?null:Array.from(t),h):i&&i.slice()},h.tickFormat=function(t){return arguments.length?(s=t,h):s},h.tickSize=function(t){return arguments.length?(r=a=+t,h):r},h.tickSizeInner=function(t){return arguments.length?(r=+t,h):r},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(o=+t,h):o},h.offset=function(t){return arguments.length?(c=+t,h):c},h}var mt,yt={exports:{}};var kt,pt,gt=k(mt?yt.exports:(mt=1,yt.exports=(kt="day",function(t,e,n){var i=function(t){return t.add(4-t.isoWeekday(),kt)},s=e.prototype;s.isoWeekYear=function(){return i(this).year()},s.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),kt);var e,s,r,a=i(this),o=(e=this.isoWeekYear(),r=4-(s=(this.$u?n.utc:n)().year(e).startOf("year")).isoWeekday(),s.isoWeekday()>4&&(r+=7),s.add(r,kt));return a.diff(o,"week")+1},s.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)};var r=s.startOf;s.startOf=function(t,e){var n=this.$utils(),i=!!n.u(e)||e;return"isoweek"===n.p(t)?i?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):r.bind(this)(t,e)}}))),vt={exports:{}};var xt,bt=(pt||(pt=1,vt.exports=function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,i=/\d\d/,s=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,a={},o=function(t){return(t=+t)+(t>68?1900:2e3)},c=function(t){return function(e){this[t]=+e}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],d=function(t){var e=a[t];return e&&(e.indexOf?e:e.s.concat(e.f))},u=function(t,e){var n,i=a.meridiem;if(i){for(var s=1;s<=24;s+=1)if(t.indexOf(i(s,0,e))>-1){n=s>12;break}}else n=t===(e?"pm":"PM");return n},h={A:[r,function(t){this.afternoon=u(t,!1)}],a:[r,function(t){this.afternoon=u(t,!0)}],Q:[n,function(t){this.month=3*(t-1)+1}],S:[n,function(t){this.milliseconds=100*+t}],SS:[i,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[s,c("seconds")],ss:[s,c("seconds")],m:[s,c("minutes")],mm:[s,c("minutes")],H:[s,c("hours")],h:[s,c("hours")],HH:[s,c("hours")],hh:[s,c("hours")],D:[s,c("day")],DD:[i,c("day")],Do:[r,function(t){var e=a.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var i=1;i<=31;i+=1)e(i).replace(/\[|\]/g,"")===t&&(this.day=i)}],w:[s,c("week")],ww:[i,c("week")],M:[s,c("month")],MM:[i,c("month")],MMM:[r,function(t){var e=d("months"),n=(d("monthsShort")||e.map(function(t){return t.slice(0,3)})).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[r,function(t){var e=d("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,c("year")],YY:[i,function(t){this.year=o(t)}],YYYY:[/\d{4}/,c("year")],Z:l,ZZ:l};function f(n){var i,s;i=n,s=a&&a.formats;for(var r=(n=i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,n,i){var r=i&&i.toUpperCase();return n||s[i]||t[i]||s[r].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(t,e,n){return e||n.slice(1)})})).match(e),o=r.length,c=0;c<o;c+=1){var l=r[c],d=h[l],u=d&&d[0],f=d&&d[1];r[c]=f?{regex:u,parser:f}:l.replace(/^\[|\]$/g,"")}return function(t){for(var e={},n=0,i=0;n<o;n+=1){var s=r[n];if("string"==typeof s)i+=s.length;else{var a=s.regex,c=s.parser,l=t.slice(i),d=a.exec(l)[0];c.call(e,d),t=t.replace(d,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon}}(e),e}}return function(t,e,n){n.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(o=t.parseTwoDigitYear);var i=e.prototype,s=i.parse;i.parse=function(t){var e=t.date,i=t.utc,r=t.args;this.$u=i;var o=r[1];if("string"==typeof o){var c=!0===r[2],l=!0===r[3],d=c||l,u=r[2];l&&(u=r[2]),a=this.$locale(),!c&&u&&(a=n.Ls[u]),this.$d=function(t,e,n,i){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var s=f(e)(t),r=s.year,a=s.month,o=s.day,c=s.hours,l=s.minutes,d=s.seconds,u=s.milliseconds,h=s.zone,m=s.week,y=new Date,k=o||(r||a?1:y.getDate()),p=r||y.getFullYear(),g=0;r&&!a||(g=a>0?a-1:y.getMonth());var v,x=c||0,b=l||0,T=d||0,w=u||0;return h?new Date(Date.UTC(p,g,k,x,b,T,w+60*h.offset*1e3)):n?new Date(Date.UTC(p,g,k,x,b,T,w)):(v=new Date(p,g,k,x,b,T,w),m&&(v=i(v).week(m).toDate()),v)}catch(t){return new Date("")}}(e,o,i,n),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),d&&e!=this.format(o)&&(this.$d=new Date("")),a={}}else if(o instanceof Array)for(var h=o.length,m=1;m<=h;m+=1){r[1]=o[m-1];var y=n.apply(this,r);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}m===h&&(this.$d=new Date(""))}else s.call(this,t)}}}()),vt.exports),Tt=k(bt),wt={exports:{}};var $t,_t=(xt||(xt=1,wt.exports=function(t,e){var n=e.prototype,i=n.format;n.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return i.bind(this)(t);var s=this.$utils(),r=(t||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(t){switch(t){case"Q":return Math.ceil((e.$M+1)/3);case"Do":return n.ordinal(e.$D);case"gggg":return e.weekYear();case"GGGG":return e.isoWeekYear();case"wo":return n.ordinal(e.week(),"W");case"w":case"ww":return s.s(e.week(),"w"===t?1:2,"0");case"W":case"WW":return s.s(e.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return s.s(String(0===e.$H?24:e.$H),"k"===t?1:2,"0");case"X":return Math.floor(e.$d.getTime()/1e3);case"x":return e.$d.getTime();case"z":return"["+e.offsetName()+"]";case"zzz":return"["+e.offsetName("long")+"]";default:return t}});return i.bind(this)(r)}}),wt.exports),Dt=k(_t),Mt={exports:{}};var St=($t||($t=1,Mt.exports=function(){var t,e,n=1e3,i=6e4,s=36e5,r=864e5,a=31536e6,o=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,d={years:a,months:o,days:r,hours:s,minutes:i,seconds:n,milliseconds:1,weeks:6048e5},u=function(t){return t instanceof g},h=function(t,e,n){return new g(t,n,e.$l)},f=function(t){return e.p(t)+"s"},m=function(t){return t<0},y=function(t){return m(t)?Math.ceil(t):Math.floor(t)},k=function(t){return Math.abs(t)},p=function(t,e){return t?m(t)?{negative:!0,format:""+k(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},g=function(){function m(t,e,n){var i=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e)return h(t*d[f(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach(function(e){i.$d[f(e)]=t[e]}),this.calMilliseconds(),this;if("string"==typeof t){var s=t.match(c);if(s){var r=s.slice(2).map(function(t){return null!=t?Number(t):0});return this.$d.years=r[0],this.$d.months=r[1],this.$d.weeks=r[2],this.$d.days=r[3],this.$d.hours=r[4],this.$d.minutes=r[5],this.$d.seconds=r[6],this.calMilliseconds(),this}}return this}var k=m.prototype;return k.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce(function(e,n){return e+(t.$d[n]||0)*d[n]},0)},k.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=y(t/a),t%=a,this.$d.months=y(t/o),t%=o,this.$d.days=y(t/r),t%=r,this.$d.hours=y(t/s),t%=s,this.$d.minutes=y(t/i),t%=i,this.$d.seconds=y(t/n),t%=n,this.$d.milliseconds=t},k.toISOString=function(){var t=p(this.$d.years,"Y"),e=p(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var i=p(n,"D"),s=p(this.$d.hours,"H"),r=p(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var o=p(a,"S"),c=t.negative||e.negative||i.negative||s.negative||r.negative||o.negative,l=s.format||r.format||o.format?"T":"",d=(c?"-":"")+"P"+t.format+e.format+i.format+l+s.format+r.format+o.format;return"P"===d||"-P"===d?"P0D":d},k.toJSON=function(){return this.toISOString()},k.format=function(t){var n=t||"YYYY-MM-DDTHH:mm:ss",i={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return n.replace(l,function(t,e){return e||String(i[t])})},k.as=function(t){return this.$ms/d[f(t)]},k.get=function(t){var e=this.$ms,n=f(t);return"milliseconds"===n?e%=1e3:e="weeks"===n?y(e/d[n]):this.$d[n],e||0},k.add=function(t,e,n){var i;return i=e?t*d[f(e)]:u(t)?t.$ms:h(t,this).$ms,h(this.$ms+i*(n?-1:1),this)},k.subtract=function(t,e){return this.add(t,e,!0)},k.locale=function(t){var e=this.clone();return e.$l=t,e},k.clone=function(){return h(this.$ms,this)},k.humanize=function(e){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},k.valueOf=function(){return this.asMilliseconds()},k.milliseconds=function(){return this.get("milliseconds")},k.asMilliseconds=function(){return this.as("milliseconds")},k.seconds=function(){return this.get("seconds")},k.asSeconds=function(){return this.as("seconds")},k.minutes=function(){return this.get("minutes")},k.asMinutes=function(){return this.as("minutes")},k.hours=function(){return this.get("hours")},k.asHours=function(){return this.as("hours")},k.days=function(){return this.get("days")},k.asDays=function(){return this.as("days")},k.weeks=function(){return this.get("weeks")},k.asWeeks=function(){return this.as("weeks")},k.months=function(){return this.get("months")},k.asMonths=function(){return this.as("months")},k.years=function(){return this.get("years")},k.asYears=function(){return this.as("years")},m}(),v=function(t,e,n){return t.add(e.years()*n,"y").add(e.months()*n,"M").add(e.days()*n,"d").add(e.hours()*n,"h").add(e.minutes()*n,"m").add(e.seconds()*n,"s").add(e.milliseconds()*n,"ms")};return function(n,i,s){t=s,e=s().$utils(),s.duration=function(t,e){var n=s.locale();return h(t,{$l:n},e)},s.isDuration=u;var r=i.prototype.add,a=i.prototype.subtract;i.prototype.add=function(t,e){return u(t)?v(this,t,1):r.bind(this)(t,e)},i.prototype.subtract=function(t,e){return u(t)?v(this,t,-1):a.bind(this)(t,e)}}}()),Mt.exports),Ct=k(St),Et=function(){var t=a(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],i=[1,27],s=[1,28],r=[1,29],o=[1,30],c=[1,31],l=[1,32],d=[1,33],u=[1,34],h=[1,9],f=[1,10],m=[1,11],y=[1,12],k=[1,13],p=[1,14],g=[1,15],v=[1,16],x=[1,19],b=[1,20],T=[1,21],w=[1,22],$=[1,23],_=[1,25],D=[1,35],M={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:a(function(t,e,n,i,s,r,a){var o=r.length-1;switch(s){case 1:return r[o-1];case 2:case 6:case 7:this.$=[];break;case 3:r[o-1].push(r[o]),this.$=r[o-1];break;case 4:case 5:this.$=r[o];break;case 8:i.setWeekday("monday");break;case 9:i.setWeekday("tuesday");break;case 10:i.setWeekday("wednesday");break;case 11:i.setWeekday("thursday");break;case 12:i.setWeekday("friday");break;case 13:i.setWeekday("saturday");break;case 14:i.setWeekday("sunday");break;case 15:i.setWeekend("friday");break;case 16:i.setWeekend("saturday");break;case 17:i.setDateFormat(r[o].substr(11)),this.$=r[o].substr(11);break;case 18:i.enableInclusiveEndDates(),this.$=r[o].substr(18);break;case 19:i.TopAxis(),this.$=r[o].substr(8);break;case 20:i.setAxisFormat(r[o].substr(11)),this.$=r[o].substr(11);break;case 21:i.setTickInterval(r[o].substr(13)),this.$=r[o].substr(13);break;case 22:i.setExcludes(r[o].substr(9)),this.$=r[o].substr(9);break;case 23:i.setIncludes(r[o].substr(9)),this.$=r[o].substr(9);break;case 24:i.setTodayMarker(r[o].substr(12)),this.$=r[o].substr(12);break;case 27:i.setDiagramTitle(r[o].substr(6)),this.$=r[o].substr(6);break;case 28:this.$=r[o].trim(),i.setAccTitle(this.$);break;case 29:case 30:this.$=r[o].trim(),i.setAccDescription(this.$);break;case 31:i.addSection(r[o].substr(8)),this.$=r[o].substr(8);break;case 33:i.addTask(r[o-1],r[o]),this.$="task";break;case 34:this.$=r[o-1],i.setClickEvent(r[o-1],r[o],null);break;case 35:this.$=r[o-2],i.setClickEvent(r[o-2],r[o-1],r[o]);break;case 36:this.$=r[o-2],i.setClickEvent(r[o-2],r[o-1],null),i.setLink(r[o-2],r[o]);break;case 37:this.$=r[o-3],i.setClickEvent(r[o-3],r[o-2],r[o-1]),i.setLink(r[o-3],r[o]);break;case 38:this.$=r[o-2],i.setClickEvent(r[o-2],r[o],null),i.setLink(r[o-2],r[o-1]);break;case 39:this.$=r[o-3],i.setClickEvent(r[o-3],r[o-1],r[o]),i.setLink(r[o-3],r[o-2]);break;case 40:this.$=r[o-1],i.setLink(r[o-1],r[o]);break;case 41:case 47:this.$=r[o-1]+" "+r[o];break;case 42:case 43:case 45:this.$=r[o-2]+" "+r[o-1]+" "+r[o];break;case 44:case 46:this.$=r[o-3]+" "+r[o-2]+" "+r[o-1]+" "+r[o]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:s,15:r,16:o,17:c,18:l,19:18,20:d,21:u,22:h,23:f,24:m,25:y,26:k,27:p,28:g,29:v,30:x,31:b,33:T,35:w,36:$,37:24,38:_,40:D},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:i,14:s,15:r,16:o,17:c,18:l,19:18,20:d,21:u,22:h,23:f,24:m,25:y,26:k,27:p,28:g,29:v,30:x,31:b,33:T,35:w,36:$,37:24,38:_,40:D},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:a(function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},"parseError"),parse:a(function(t){var e=this,n=[0],i=[],s=[null],r=[],o=this.table,c="",l=0,d=0,u=r.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(f.yy[m]=this.yy[m]);h.setInput(t,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var y=h.yylloc;r.push(y);var k=h.options&&h.options.ranges;function p(){var t;return"number"!=typeof(t=i.pop()||h.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,a(function(t){n.length=n.length-2*t,s.length=s.length-t,r.length=r.length-t},"popStack"),a(p,"lex");for(var g,v,x,b,T,w,$,_,D={};;){if(v=n[n.length-1],this.defaultActions[v]?x=this.defaultActions[v]:(null==g&&(g=p()),x=o[v]&&o[v][g]),void 0===x||!x.length||!x[0]){var M="";for(T in _=[],o[v])this.terminals_[T]&&T>2&&_.push("'"+this.terminals_[T]+"'");M=h.showPosition?"Parse error on line "+(l+1)+":\n"+h.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[g]||g)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==g?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(M,{text:h.match,token:this.terminals_[g]||g,line:h.yylineno,loc:y,expected:_})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+g);switch(x[0]){case 1:n.push(g),s.push(h.yytext),r.push(h.yylloc),n.push(x[1]),g=null,d=h.yyleng,c=h.yytext,l=h.yylineno,y=h.yylloc;break;case 2:if(w=this.productions_[x[1]][1],D.$=s[s.length-w],D._$={first_line:r[r.length-(w||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(w||1)].first_column,last_column:r[r.length-1].last_column},k&&(D._$.range=[r[r.length-(w||1)].range[0],r[r.length-1].range[1]]),void 0!==(b=this.performAction.apply(D,[c,d,l,f.yy,x[1],s,r].concat(u))))return b;w&&(n=n.slice(0,-1*w*2),s=s.slice(0,-1*w),r=r.slice(0,-1*w)),n.push(this.productions_[x[1]][0]),s.push(D.$),r.push(D._$),$=o[n[n.length-2]][n[n.length-1]],n.push($);break;case 3:return!0}}return!0},"parse")},S=function(){return{EOF:1,parseError:a(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:a(function(t,e){return this.yy=e||this.yy||{},this._input=t,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:a(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:a(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=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),n.length-1&&(this.yylineno-=n.length-1);var s=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:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:a(function(t){this.unput(this.match.slice(t))},"less"),pastInput:a(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:a(function(t,e){var n,i,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in s)this[r]=s[r];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),r=0;r<s.length;r++)if((n=this._input.match(this.rules[s[r]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,s[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a(function(){var t=this.next();return t||this.lex()},"lex"),begin:a(function(t){this.conditionStack.push(t)},"begin"),popState:a(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(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:a(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:a(function(t){this.begin(t)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 15:case 18:case 21:case 24:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:case 12:case 13:break;case 11:return 10;case 14:this.begin("href");break;case 16:return 43;case 17:this.begin("callbackname");break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 22:return 42;case 23:this.begin("click");break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}}();function C(){this.yy={}}return M.lexer=S,a(C,"Parser"),C.prototype=M,M.Parser=C,new C}();Et.parser=Et;var Yt=Et;d.extend(gt),d.extend(Tt),d.extend(Dt);var At,Lt,It={friday:5,saturday:6},Ot="",Ft="",Wt=void 0,Pt="",Nt=[],jt=[],zt=new Map,Ht=[],Bt=[],Rt="",Gt="",Vt=["active","done","crit","milestone","vert"],Ut=[],Zt="",qt=!1,Xt=!1,Qt="sunday",Jt="saturday",Kt=0,te=a(function(){Ht=[],Bt=[],Rt="",Ut=[],Oe=0,At=void 0,Lt=void 0,Ne=[],Ot="",Ft="",Gt="",Wt=void 0,Pt="",Nt=[],jt=[],qt=!1,Xt=!1,Kt=0,zt=new Map,Zt="",m(),Qt="sunday",Jt="saturday"},"clear"),ee=a(function(t){Zt=t},"setDiagramId"),ne=a(function(t){Ft=t},"setAxisFormat"),ie=a(function(){return Ft},"getAxisFormat"),se=a(function(t){Wt=t},"setTickInterval"),re=a(function(){return Wt},"getTickInterval"),ae=a(function(t){Pt=t},"setTodayMarker"),oe=a(function(){return Pt},"getTodayMarker"),ce=a(function(t){Ot=t},"setDateFormat"),le=a(function(){qt=!0},"enableInclusiveEndDates"),de=a(function(){return qt},"endDatesAreInclusive"),ue=a(function(){Xt=!0},"enableTopAxis"),he=a(function(){return Xt},"topAxisEnabled"),fe=a(function(t){Gt=t},"setDisplayMode"),me=a(function(){return Gt},"getDisplayMode"),ye=a(function(){return Ot},"getDateFormat"),ke=a((t,e)=>{const n=e.toLowerCase().split(/[\s,]+/).filter(t=>""!==t);return[...new Set([...t,...n])]},"mergeTokens"),pe=a(function(t){Nt=ke(Nt,t)},"setIncludes"),ge=a(function(){return Nt},"getIncludes"),ve=a(function(t){jt=ke(jt,t)},"setExcludes"),xe=a(function(){return jt},"getExcludes"),be=a(function(){return zt},"getLinks"),Te=a(function(t){Rt=t,Ht.push(t)},"addSection"),we=a(function(){return Ht},"getSections"),$e=a(function(){let t=Re();let e=0;for(;!t&&e<10;)t=Re(),e++;return Bt=Ne},"getTasks"),_e=a(function(t,e,n,i){const s=t.format(e.trim()),r=t.format("YYYY-MM-DD");return!i.includes(s)&&!i.includes(r)&&(!(!n.includes("weekends")||t.isoWeekday()!==It[Jt]&&t.isoWeekday()!==It[Jt]+1)||(!!n.includes(t.format("dddd").toLowerCase())||(n.includes(s)||n.includes(r))))},"isInvalidDate"),De=a(function(t){Qt=t},"setWeekday"),Me=a(function(){return Qt},"getWeekday"),Se=a(function(t){Jt=t},"setWeekend"),Ce=a(function(t,e,n,i){if(!n.length||t.manualEndTime)return;let s,r;s=t.startTime instanceof Date?d(t.startTime):d(t.startTime,e,!0),s=s.add(1,"d"),r=t.endTime instanceof Date?d(t.endTime):d(t.endTime,e,!0);const[a,o]=Ee(s,r,e,n,i);t.endTime=a.toDate(),t.renderEndTime=o},"checkTaskDates"),Ee=a(function(t,e,n,i,s){let r=!1,a=null;const o=e.add(1e4,"d");for(;t<=e;){if(r||(a=e.toDate()),r=_e(t,n,i,s),r&&(e=e.add(1,"d"))>o)throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[e,a]},"fixTaskDates"),Ye=a(function(t,e){u.warn(`Gantt: the "${t}" statement references unknown task id(s): ${e.join(", ")}. Make sure the referenced tasks exist and declare an id. Milestones need both an id and a duration, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`)},"warnAboutUnknownTaskIds"),Ae=a(function(t,e,n){n=n.trim();if(a(t=>{const e=t.trim();return"x"===e||"X"===e},"isTimestampFormat")(e)&&/^\d+$/.test(n))return new Date(Number(n));const i=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(null!==i){let t=null;const e=[],n=i.groups.ids.split(" ").filter(t=>""!==t);for(const i of n){const n=He(i);void 0!==n?(!t||n.endTime>t.endTime)&&(t=n):e.push(i)}if(e.length>0&&Ye("after",e),t)return t.endTime;const s=new Date;return s.setHours(0,0,0,0),s}let s=d(n,e.trim(),!0);if(s.isValid())return s.toDate();{u.debug("Invalid date:"+n),u.debug("With date format:"+e.trim());const t=new Date(n);if(void 0===t||isNaN(t.getTime())||t.getFullYear()<-1e4||t.getFullYear()>1e4)throw new Error("Invalid date:"+n);return t}},"getStartDate"),Le=a(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return null!==e?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),Ie=a(function(t,e,n,i=!1){n=n.trim();const s=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(null!==s){let t=null;const e=[],n=s.groups.ids.split(" ").filter(t=>""!==t);for(const i of n){const n=He(i);void 0!==n?(!t||n.startTime<t.startTime)&&(t=n):e.push(i)}if(e.length>0&&Ye("until",e),t)return t.startTime;const i=new Date;return i.setHours(0,0,0,0),i}let r=d(n,e.trim(),!0);if(r.isValid())return i&&(r=r.add(1,"d")),r.toDate();let a=d(t);const[o,c]=Le(n);if(Number.isNaN(o))u.warn(`Gantt: "${n}" is neither a valid date for the "${e.trim()}" date format nor a valid duration (e.g. "3d"), so it is ignored and the task gets a zero duration. Milestones need a duration too, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`);else{const t=a.add(o,c);t.isValid()&&(a=t)}return a.toDate()},"getEndDate"),Oe=0,Fe=a(function(t){return void 0===t?"task"+(Oe+=1):t},"parseId"),We=a(function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const i=n.split(","),s={};Je(i,s,Vt);for(let t=0;t<i.length;t++)i[t]=i[t].trim();let r="";switch(i.length){case 1:s.id=Fe(),s.startTime=t.endTime,r=i[0];break;case 2:s.id=Fe(),s.startTime=Ae(void 0,Ot,i[0]),r=i[1];break;case 3:s.id=Fe(i[0]),s.startTime=Ae(void 0,Ot,i[1]),r=i[2]}return r&&(s.endTime=Ie(s.startTime,Ot,r,qt),s.manualEndTime=d(r,"YYYY-MM-DD",!0).isValid(),Ce(s,Ot,jt,Nt)),s},"compileData"),Pe=a(function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const i=n.split(","),s={};Je(i,s,Vt);for(let t=0;t<i.length;t++)i[t]=i[t].trim();switch(i.length){case 1:s.id=Fe(),s.startTime={type:"prevTaskEnd",id:t},s.endTime={data:i[0]};break;case 2:s.id=Fe(),s.startTime={type:"getStartDate",startData:i[0]},s.endTime={data:i[1]};break;case 3:s.id=Fe(i[0]),s.startTime={type:"getStartDate",startData:i[1]},s.endTime={data:i[2]}}return s},"parseData"),Ne=[],je={},ze=a(function(t,e){const n={section:Rt,type:Rt,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},i=Pe(Lt,e);n.raw.startTime=i.startTime,n.raw.endTime=i.endTime,n.id=i.id,n.prevTaskId=Lt,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,n.vert?n.order=-1:(n.order=Kt,Kt++);const s=Ne.push(n);Lt=n.id,je[n.id]=s-1},"addTask"),He=a(function(t){const e=je[t];return Ne[e]},"findTaskById"),Be=a(function(t,e){const n={section:Rt,type:Rt,description:t,task:t,classes:[]},i=We(At,e);n.startTime=i.startTime,n.endTime=i.endTime,n.id=i.id,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,At=n,Bt.push(n)},"addTaskOrg"),Re=a(function(){const t=a(function(t){const e=Ne[t];let n="";switch(Ne[t].raw.startTime.type){case"prevTaskEnd":{const t=He(e.prevTaskId);e.startTime=t.endTime;break}case"getStartDate":n=Ae(void 0,Ot,Ne[t].raw.startTime.startData),n&&(Ne[t].startTime=n)}return Ne[t].startTime&&(Ne[t].endTime=Ie(Ne[t].startTime,Ot,Ne[t].raw.endTime.data,qt),Ne[t].endTime&&(Ne[t].processed=!0,Ne[t].manualEndTime=d(Ne[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Ce(Ne[t],Ot,jt,Nt))),Ne[t].processed},"compileTask");let e=!0;for(const[n,i]of Ne.entries())t(n),e=e&&i.processed;return e},"compileTasks"),Ge=a(function(t,e){let n=e;"loose"!==o().securityLevel&&(n=f.sanitizeUrl(e)),t.split(",").forEach(function(t){void 0!==He(t)&&(Ze(t,()=>{window.open(n,"_self")}),zt.set(t,n))}),Ve(t,"clickable")},"setLink"),Ve=a(function(t,e){t.split(",").forEach(function(t){let n=He(t);void 0!==n&&n.classes.push(e)})},"setClass"),Ue=a(function(t,e,n){if("loose"!==o().securityLevel)return;if(void 0===e)return;let i=[];if("string"==typeof n){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<i.length;t++){let e=i[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),i[t]=e}}0===i.length&&i.push(t),void 0!==He(t)&&Ze(t,()=>{y.runFunc(e,...i)})},"setClickFun"),Ze=a(function(t,e){Ut.push(function(){const n=Zt?`${Zt}-${t}`:t,i=document.querySelector(`[id="${n}"]`);null!==i&&i.addEventListener("click",function(){e()})},function(){const n=Zt?`${Zt}-${t}`:t,i=document.querySelector(`[id="${n}-text"]`);null!==i&&i.addEventListener("click",function(){e()})})},"pushFun"),qe=a(function(t,e,n){t.split(",").forEach(function(t){Ue(t,e,n)}),Ve(t,"clickable")},"setClickEvent"),Xe=a(function(t){Ut.forEach(function(e){e(t)})},"bindFunctions"),Qe={getConfig:a(()=>o().gantt,"getConfig"),clear:te,setDateFormat:ce,getDateFormat:ye,enableInclusiveEndDates:le,endDatesAreInclusive:de,enableTopAxis:ue,topAxisEnabled:he,setAxisFormat:ne,getAxisFormat:ie,setTickInterval:se,getTickInterval:re,setTodayMarker:ae,getTodayMarker:oe,setAccTitle:r,getAccTitle:s,setDiagramTitle:i,getDiagramTitle:n,setDiagramId:ee,setDisplayMode:fe,getDisplayMode:me,setAccDescription:e,getAccDescription:t,addSection:Te,getSections:we,getTasks:$e,addTask:ze,findTaskById:He,addTaskOrg:Be,setIncludes:pe,getIncludes:ge,setExcludes:ve,getExcludes:xe,setClickEvent:qe,setLink:Ge,getLinks:be,bindFunctions:Xe,parseDuration:Le,isInvalidDate:_e,setWeekday:De,getWeekday:Me,setWeekend:Se};function Je(t,e,n){let i=!0;for(;i;)i=!1,n.forEach(function(n){const s=new RegExp("^\\s*"+n+"\\s*$");t[0].match(s)&&(e[n]=!0,t.shift(1),i=!0)})}a(Je,"getTaskTags"),d.extend(Ct);var Ke,tn=a(function(){u.debug("Something is calling, setConf, remove the call")},"setConf"),en={monday:S,tuesday:M,wednesday:D,thursday:_,friday:$,saturday:w,sunday:T},nn=a((t,e)=>{let n=[...t].map(()=>-1/0),i=[...t].sort((t,e)=>t.startTime-e.startTime||t.order-e.order),s=0;for(const t of i)for(let i=0;i<n.length;i++)if(t.startTime>=n[i]){n[i]=t.endTime,t.order=i+e,i>s&&(s=i);break}return s},"getMaxIntersections"),sn=1e4,rn={parser:Yt,db:Qe,renderer:{setConf:tn,draw:a(function(t,e,n,i){const s=o().gantt;i.db.setDiagramId(e);const r=o().securityLevel;let f;"sandbox"===r&&(f=c("#i"+e));const m=c("sandbox"===r?f.nodes()[0].contentDocument.body:"body"),y="sandbox"===r?f.nodes()[0].contentDocument:document,k=y.getElementById(e);void 0===(Ke=k.parentElement.offsetWidth)&&(Ke=1200),void 0!==s.useWidth&&(Ke=s.useWidth);const T=i.db.getTasks(),w=T.filter(t=>!t.vert);let $=[];for(const t of w)$.push(t.type);$=B($);const _={};let D=2*s.topPadding;if("compact"===i.db.getDisplayMode()||"compact"===s.displayMode){const t={};for(const e of w)void 0===t[e.section]?t[e.section]=[e]:t[e.section].push(e);let e=0;for(const n of Object.keys(t)){const i=nn(t[n],e)+1;e+=i,D+=i*(s.barHeight+s.barGap),_[n]=i}}else{D+=w.length*(s.barHeight+s.barGap);for(const t of $)_[t]=w.filter(e=>e.type===t).length}k.setAttribute("viewBox","0 0 "+Ke+" "+D);const M=m.select(`[id="${e}"]`),S=p().domain([g(T,function(t){return t.startTime}),v(T,function(t){return t.endTime})]).rangeRound([0,Ke-s.leftPadding-s.rightPadding]);function O(t,e){const n=t.startTime,i=e.startTime;let s=0;return n>i?s=1:n<i&&(s=-1),s}function F(t,e,n){const r=s.barHeight,a=r+s.barGap,o=s.topPadding,c=s.leftPadding,l=I().domain([0,$.length]).range(["#00B9FA","#F95002"]).interpolate(rt);P(a,o,c,e,n,t,i.db.getExcludes(),i.db.getIncludes()),j(c,o,e,n),W(t,a,o,c,r,l,e),z(a,o),H(c,o,e,n)}function W(t,n,r,a,l,d,u){t.sort((t,e)=>t.vert===e.vert?0:t.vert?1:-1);const h=t.filter(t=>!t.vert),f=[...new Set(h.map(t=>t.order))].map(t=>h.find(e=>e.order===t));M.append("g").selectAll("rect").data(f).enter().append("rect").attr("x",0).attr("y",function(t,e){return t.order*n+r-2}).attr("width",function(){return u-s.rightPadding/2}).attr("height",n).attr("class",function(t){for(const[e,n]of $.entries())if(t.type===n)return"section section"+e%s.numberSectionStyles;return"section section0"}).enter();const m=M.append("g").selectAll("rect").data(t).enter(),y=i.db.getLinks();m.append("rect").attr("id",function(t){return e+"-"+t.id}).attr("rx",3).attr("ry",3).attr("x",function(t){return t.milestone?S(t.startTime)+a+.5*(S(t.endTime)-S(t.startTime))-.5*l:S(t.startTime)+a}).attr("y",function(t,e){return e=t.order,t.vert?s.gridLineStartPadding:e*n+r}).attr("width",function(t){return t.milestone?l:t.vert?.08*l:S(t.renderEndTime||t.endTime)-S(t.startTime)}).attr("height",function(t){return t.vert?h.length*(s.barHeight+s.barGap)+2*s.barHeight:l}).attr("transform-origin",function(t,e){return e=t.order,(S(t.startTime)+a+.5*(S(t.endTime)-S(t.startTime))).toString()+"px "+(e*n+r+.5*l).toString()+"px"}).attr("class",function(t){let e="";t.classes.length>0&&(e=t.classes.join(" "));let n=0;for(const[e,i]of $.entries())t.type===i&&(n=e%s.numberSectionStyles);let i="";return t.active?t.crit?i+=" activeCrit":i=" active":t.done?i=t.crit?" doneCrit":" done":t.crit&&(i+=" crit"),0===i.length&&(i=" task"),t.milestone&&(i=" milestone "+i),t.vert&&(i=" vert "+i),i+=n,i+=" "+e,"task"+i}),m.append("text").attr("id",function(t){return e+"-"+t.id+"-text"}).text(function(t){return t.task}).attr("font-size",s.fontSize).attr("x",function(t){let e=S(t.startTime),n=S(t.renderEndTime||t.endTime);if(t.milestone&&(e+=.5*(S(t.endTime)-S(t.startTime))-.5*l,n=e+l),t.vert)return S(t.startTime)+a;const i=this.getBBox().width;return i>n-e?n+i+1.5*s.leftPadding>u?e+a-5:n+a+5:(n-e)/2+e+a}).attr("y",function(t,e){return t.vert?s.gridLineStartPadding+h.length*(s.barHeight+s.barGap)+60:t.order*n+s.barHeight/2+(s.fontSize/2-2)+r}).attr("text-height",l).attr("class",function(t){const e=S(t.startTime);let n=S(t.endTime);t.milestone&&(n=e+l);const i=this.getBBox().width;let r="";t.classes.length>0&&(r=t.classes.join(" "));let a=0;for(const[e,n]of $.entries())t.type===n&&(a=e%s.numberSectionStyles);let o="";return t.active&&(o=t.crit?"activeCritText"+a:"activeText"+a),t.done?o=t.crit?o+" doneCritText"+a:o+" doneText"+a:t.crit&&(o=o+" critText"+a),t.milestone&&(o+=" milestoneText"),t.vert&&(o+=" vertText"),i>n-e?n+i+1.5*s.leftPadding>u?r+" taskTextOutsideLeft taskTextOutside"+a+" "+o:r+" taskTextOutsideRight taskTextOutside"+a+" "+o+" width-"+i:r+" taskText taskText"+a+" "+o+" width-"+i});if("sandbox"===o().securityLevel){let t;t=c("#i"+e);const n=t.nodes()[0].contentDocument;m.filter(function(t){return y.has(t.id)}).each(function(t){var i=n.querySelector("#"+CSS.escape(e+"-"+t.id)),s=n.querySelector("#"+CSS.escape(e+"-"+t.id+"-text"));const r=i.parentNode;var a=n.createElement("a");a.setAttribute("xlink:href",y.get(t.id)),a.setAttribute("target","_top"),r.appendChild(a),a.appendChild(i),a.appendChild(s)})}}function P(t,n,r,a,o,c,l,h){if(0===l.length&&0===h.length)return;let f,m;for(const{startTime:t,endTime:e}of c)(void 0===f||t<f)&&(f=t),(void 0===m||e>m)&&(m=e);if(!f||!m)return;if(d(m).diff(d(f),"year")>5)return void u.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");const y=i.db.getDateFormat(),k=[];let p=null,g=d(f);for(;g.valueOf()<=m;)i.db.isInvalidDate(g,y,l,h)?p?p.end=g:p={start:g,end:g}:p&&(k.push(p),p=null),g=g.add(1,"d");M.append("g").selectAll("rect").data(k).enter().append("rect").attr("id",t=>e+"-exclude-"+t.start.format("YYYY-MM-DD")).attr("x",t=>S(t.start.startOf("day"))+r).attr("y",s.gridLineStartPadding).attr("width",t=>S(t.end.endOf("day"))-S(t.start.startOf("day"))).attr("height",o-n-s.gridLineStartPadding).attr("transform-origin",function(e,n){return(S(e.start)+r+.5*(S(e.end)-S(e.start))).toString()+"px "+(n*t+.5*o).toString()+"px"}).attr("class","exclude-range")}function N(t,e,n,i){if(n<=0||t>e)return 1/0;const s=e-t,r=d.duration({[i??"day"]:n}).asMilliseconds();return r<=0?1/0:Math.ceil(s/r)}function j(t,e,n,r){const a=i.db.getDateFormat(),o=i.db.getAxisFormat();let c;c=o||("D"===a?"%d":s.axisFormat??"%Y-%m-%d");let l=(d=S,ft(3,d)).tickSize(-r+e+s.gridLineStartPadding).tickFormat(x(c));var d;const h=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||s.tickInterval);if(null!==h){const t=parseInt(h[1],10);if(isNaN(t)||t<=0)u.warn(`Invalid tick interval value: "${h[1]}". Skipping custom tick interval.`);else{const e=h[2],n=i.db.getWeekday()||s.weekday,r=S.domain(),a=N(r[0],r[1],t,e);if(a>sn)u.warn(`The tick interval "${t}${e}" would generate ${a} ticks, which exceeds the maximum allowed (10000). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(e){case"millisecond":l.ticks(L.every(t));break;case"second":l.ticks(A.every(t));break;case"minute":l.ticks(Y.every(t));break;case"hour":l.ticks(E.every(t));break;case"day":l.ticks(C.every(t));break;case"week":l.ticks(en[n].every(t));break;case"month":l.ticks(b.every(t))}}}if(M.append("g").attr("class","grid").attr("transform","translate("+t+", "+(r-50)+")").call(l).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||s.topAxis){let n=function(t){return ft(1,t)}(S).tickSize(-r+e+s.gridLineStartPadding).tickFormat(x(c));if(null!==h){const t=parseInt(h[1],10);if(isNaN(t)||t<=0)u.warn(`Invalid tick interval value: "${h[1]}". Skipping custom tick interval.`);else{const e=h[2],r=i.db.getWeekday()||s.weekday,a=S.domain();if(N(a[0],a[1],t,e)<=sn)switch(e){case"millisecond":n.ticks(L.every(t));break;case"second":n.ticks(A.every(t));break;case"minute":n.ticks(Y.every(t));break;case"hour":n.ticks(E.every(t));break;case"day":n.ticks(C.every(t));break;case"week":n.ticks(en[r].every(t));break;case"month":n.ticks(b.every(t))}}}M.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(n).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function z(t,e){let n=0;const i=Object.keys(_).map(t=>[t,_[t]]);M.append("g").selectAll("text").data(i).enter().append(function(t){const e=t[0].split(h.lineBreakRegex),n=-(e.length-1)/2,i=y.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("dy",n+"em");for(const[t,n]of e.entries()){const e=y.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttribute("alignment-baseline","central"),e.setAttribute("x","10"),t>0&&e.setAttribute("dy","1em"),e.textContent=n,i.appendChild(e)}return i}).attr("x",10).attr("y",function(s,r){if(!(r>0))return s[1]*t/2+e;for(let a=0;a<r;a++)return n+=i[r-1][1],s[1]*t/2+n*t+e}).attr("font-size",s.sectionFontSize).attr("class",function(t){for(const[e,n]of $.entries())if(t[0]===n)return"sectionTitle sectionTitle"+e%s.numberSectionStyles;return"sectionTitle"})}function H(t,e,n,r){const a=i.db.getTodayMarker();if("off"===a)return;const o=M.append("g").attr("class","today"),c=new Date,l=o.append("line");l.attr("x1",S(c)+t).attr("x2",S(c)+t).attr("y1",s.titleTopMargin).attr("y2",r-s.titleTopMargin).attr("class","today"),""!==a&&l.attr("style",a.replace(/,/g,";"))}function B(t){const e={},n=[];for(let i=0,s=t.length;i<s;++i)Object.prototype.hasOwnProperty.call(e,t[i])||(e[t[i]]=!0,n.push(t[i]));return n}a(O,"taskCompare"),T.sort(O),F(T,Ke,D),l(M,D,Ke,s.useMaxWidth),M.append("text").text(i.db.getDiagramTitle()).attr("x",Ke/2).attr("y",s.titleTopMargin).attr("class","titleText"),a(F,"makeGantt"),a(W,"drawRects"),a(P,"drawExcludeDays"),a(N,"getEstimatedTickCount"),a(j,"makeGrid"),a(z,"vertLabels"),a(H,"drawToday"),a(B,"checkUnique")},"draw")},styles:a(t=>`\n .mermaid-main-font {\n font-family: ${t.fontFamily};\n }\n\n .exclude-range {\n fill: ${t.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${t.sectionBkgColor};\n }\n\n .section2 {\n fill: ${t.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${t.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-family: ${t.fontFamily};\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${t.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n }\n\n .grid .tick text {\n font-family: ${t.fontFamily};\n fill: ${t.textColor};\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${t.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: ${t.fontFamily};\n }\n\n .taskTextOutsideRight {\n fill: ${t.taskTextDarkColor};\n text-anchor: start;\n font-family: ${t.fontFamily};\n }\n\n .taskTextOutsideLeft {\n fill: ${t.taskTextDarkColor};\n text-anchor: end;\n }\n\n\n /* Special case clickable */\n\n .task.clickable {\n cursor: pointer;\n }\n\n .taskText.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${t.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${t.taskBkgColor};\n stroke: ${t.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${t.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${t.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${t.activeTaskBkgColor};\n stroke: ${t.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${t.doneTaskBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n /* Done task text displayed outside the bar sits against the diagram background,\n not against the done-task bar, so it must use the outside/contrast color. */\n .doneText0.taskTextOutsideLeft,\n .doneText0.taskTextOutsideRight,\n .doneText1.taskTextOutsideLeft,\n .doneText1.taskTextOutsideRight,\n .doneText2.taskTextOutsideLeft,\n .doneText2.taskTextOutsideRight,\n .doneText3.taskTextOutsideLeft,\n .doneText3.taskTextOutsideRight {\n fill: ${t.taskTextOutsideColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n /* Done-crit task text outside the bar — same reasoning as doneText above. */\n .doneCritText0.taskTextOutsideLeft,\n .doneCritText0.taskTextOutsideRight,\n .doneCritText1.taskTextOutsideLeft,\n .doneCritText1.taskTextOutsideRight,\n .doneCritText2.taskTextOutsideLeft,\n .doneCritText2.taskTextOutsideRight,\n .doneCritText3.taskTextOutsideLeft,\n .doneCritText3.taskTextOutsideRight {\n fill: ${t.taskTextOutsideColor} !important;\n }\n\n .vert {\n stroke: ${t.vertLineColor};\n }\n\n .vertText {\n font-size: 15px;\n text-anchor: middle;\n fill: ${t.vertLineColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.titleColor||t.textColor};\n font-family: ${t.fontFamily};\n }\n`,"getStyles")};export{rn as diagram};
@@ -0,0 +1 @@
1
+ import{I as t}from"./chunk-2Q5K7J3B-B1dv6ovr.js";import{p as r}from"./chunk-JWPE2WC7-lyHCgozd.js";import{x as e,v as o,s as n,g as a,a as s,b as i,_ as c,O as d,l as h,k as m,c as $,u as l,P as g,C as p,m as y,Q as f,R as x,S as u}from"./mermaid.core-DKkN0L2R.js";import{p as b}from"./cynefin-EF2NZ3EQ-CaJSaYBh.js";import"./index-DTAG4nDF.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-BHuDJzTw.js";import"./settings-BONQQsPx.js";import"./constants.js";import"./LoaderLayer-Cv80UCdL.js";import"./websocket-B2hJys_Q.js";import"./index-_kF3_0-k.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./string-DPJhNSkw.js";var w={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},k=x.gitGraph,B=c(()=>f({...k,...d().gitGraph}),"getConfig"),E=new t(()=>{const t=B(),r=t.mainBranchName,e=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:e}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function C(){return u({length:7})}function L(t,r){const e=Object.create(null);return t.reduce((t,o)=>{const n=r(o);return e[n]||(e[n]=!0,t.push(o)),t},[])}c(C,"getID"),c(L,"uniqBy");var T=c(function(t){E.records.direction=t},"setDirection"),M=c(function(t){h.debug("options str",t),t=t?.trim(),t=t||"{}";try{E.records.options=JSON.parse(t)}catch(t){h.error("error while parsing gitGraph options",t.message)}},"setOptions"),v=c(function(){return E.records.options},"getOptions"),I=c(function(t){let r=t.msg,e=t.id;const o=t.type;let n=t.tags;h.info("commit",r,e,o,n),h.debug("Entering commit:",r,e,o,n);const a=B();e=y.sanitizeText(e,a),r=y.sanitizeText(r,a),n=n?.map(t=>y.sanitizeText(t,a));const s={id:e||E.records.seq+"-"+C(),message:r,seq:E.records.seq++,type:o??w.NORMAL,tags:n??[],parents:null==E.records.head?[]:[E.records.head.id],branch:E.records.currBranch};E.records.head=s,h.info("main branch",a.mainBranchName),E.records.commits.has(s.id)&&h.warn(`Commit ID ${s.id} already exists`),E.records.commits.set(s.id,s),E.records.branches.set(E.records.currBranch,s.id),h.debug("in pushCommit "+s.id)},"commit"),R=c(function(t){let r=t.name;const e=t.order;if(r=y.sanitizeText(r,B()),E.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);E.records.branches.set(r,null!=E.records.head?E.records.head.id:null),E.records.branchConfig.set(r,{name:r,order:e}),A(r),h.debug("in createBranch")},"branch"),P=c(t=>{let r=t.branch,e=t.id;const o=t.type,n=t.tags,a=B();r=y.sanitizeText(r,a),e&&(e=y.sanitizeText(e,a));const s=E.records.branches.get(E.records.currBranch),i=E.records.branches.get(r),c=s?E.records.commits.get(s):void 0,d=i?E.records.commits.get(i):void 0;if(c&&d&&c.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(E.records.currBranch===r){const t=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},t}if(void 0===c||!c){const t=new Error(`Incorrect usage of "merge". Current branch (${E.records.currBranch})has no commits`);throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},t}if(!E.records.branches.has(r)){const t=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},t}if(void 0===d||!d){const t=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},t}if(c===d){const t=new Error('Incorrect usage of "merge". Both branches have same head');throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},t}if(e&&E.records.commits.has(e)){const t=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom id");throw t.hash={text:`merge ${r} ${e} ${o} ${n?.join(" ")}`,token:`merge ${r} ${e} ${o} ${n?.join(" ")}`,expected:[`merge ${r} ${e}_UNIQUE ${o} ${n?.join(" ")}`]},t}const m=i||"",$={id:e||`${E.records.seq}-${C()}`,message:`merged branch ${r} into ${E.records.currBranch}`,seq:E.records.seq++,parents:null==E.records.head?[]:[E.records.head.id,m],branch:E.records.currBranch,type:w.MERGE,customType:o,customId:!!e,tags:n??[]};E.records.head=$,E.records.commits.set($.id,$),E.records.branches.set(E.records.currBranch,$.id),h.debug(E.records.branches),h.debug("in mergeBranch")},"merge"),O=c(function(t){let r=t.id,e=t.targetId,o=t.tags,n=t.parent;h.debug("Entering cherryPick:",r,e,o);const a=B();if(r=y.sanitizeText(r,a),e=y.sanitizeText(e,a),o=o?.map(t=>y.sanitizeText(t,a)),n=y.sanitizeText(n,a),!r||!E.records.commits.has(r)){const t=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const s=E.records.commits.get(r);if(void 0===s||!s)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(n&&(!Array.isArray(s.parents)||!s.parents.includes(n))){throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.")}const i=s.branch;if(s.type===w.MERGE&&!n){throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.")}if(!e||!E.records.commits.has(e)){if(i===E.records.currBranch){const t=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const t=E.records.branches.get(E.records.currBranch);if(void 0===t||!t){const t=new Error(`Incorrect usage of "cherry-pick". Current branch (${E.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const a=E.records.commits.get(t);if(void 0===a||!a){const t=new Error(`Incorrect usage of "cherry-pick". Current branch (${E.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const c={id:E.records.seq+"-"+C(),message:`cherry-picked ${s?.message} into ${E.records.currBranch}`,seq:E.records.seq++,parents:null==E.records.head?[]:[E.records.head.id,s.id],branch:E.records.currBranch,type:w.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${s.id}${s.type===w.MERGE?`|parent:${n}`:""}`]};E.records.head=c,E.records.commits.set(c.id,c),E.records.branches.set(E.records.currBranch,c.id),h.debug(E.records.branches),h.debug("in cherryPick")}},"cherryPick"),A=c(function(t){if(t=y.sanitizeText(t,B()),!E.records.branches.has(t)){const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}{E.records.currBranch=t;const r=E.records.branches.get(E.records.currBranch);E.records.head=void 0!==r&&r?E.records.commits.get(r)??null:null}},"checkout");function G(t,r,e){const o=t.indexOf(r);-1===o?t.push(e):t.splice(o,1,e)}function S(t){const r=t.reduce((t,r)=>t.seq>r.seq?t:r,t[0]);let e="";t.forEach(function(t){e+=t===r?"\t*":"\t|"});const o=[e,r.id,r.seq];for(const t in E.records.branches)E.records.branches.get(t)===r.id&&o.push(t);if(h.debug(o.join(" ")),r.parents&&2==r.parents.length&&r.parents[0]&&r.parents[1]){const e=E.records.commits.get(r.parents[0]);G(t,r,e),r.parents[1]&&t.push(E.records.commits.get(r.parents[1]))}else{if(0==r.parents.length)return;if(r.parents[0]){const e=E.records.commits.get(r.parents[0]);G(t,r,e)}}S(t=L(t,t=>t.id))}c(G,"upsert"),c(S,"prettyPrintCommitHistory");var W=c(function(){h.debug(E.records.commits);S([z()[0]])},"prettyPrint"),j=c(function(){E.reset(),p()},"clear"),H=c(function(){return[...E.records.branchConfig.values()].map((t,r)=>null!==t.order&&void 0!==t.order?t:{...t,order:parseFloat(`0.${r}`)}).sort((t,r)=>(t.order??0)-(r.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),q=c(function(){return E.records.branches},"getBranches"),_=c(function(){return E.records.commits},"getCommits"),z=c(function(){const t=[...E.records.commits.values()];return t.forEach(function(t){h.debug(t.id)}),t.sort((t,r)=>t.seq-r.seq),t},"getCommitsArray"),D={commitType:w,getConfig:B,setDirection:T,setOptions:M,getOptions:v,commit:I,branch:R,merge:P,cherryPick:O,checkout:A,prettyPrint:W,clear:j,getBranchesAsObjArray:H,getBranches:q,getCommits:_,getCommitsArray:z,getCurrentBranch:c(function(){return E.records.currBranch},"getCurrentBranch"),getDirection:c(function(){return E.records.direction},"getDirection"),getHead:c(function(){return E.records.head},"getHead"),setAccTitle:i,getAccTitle:s,getAccDescription:a,setAccDescription:n,setDiagramTitle:o,getDiagramTitle:e},F=c((t,e)=>{r(t,e),t.dir&&e.setDirection(t.dir);for(const r of t.statements)N(r,e)},"populate"),N=c((t,r)=>{const e={Commit:c(t=>r.commit(K(t)),"Commit"),Branch:c(t=>r.branch(V(t)),"Branch"),Merge:c(t=>r.merge(Y(t)),"Merge"),Checkout:c(t=>r.checkout(Q(t)),"Checkout"),CherryPicking:c(t=>r.cherryPick(U(t)),"CherryPicking")}[t.$type];e?e(t):h.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),K=c(t=>({id:t.id,msg:t.message??"",type:void 0!==t.type?w[t.type]:w.NORMAL,tags:t.tags??void 0}),"parseCommit"),V=c(t=>({name:t.name,order:t.order??0}),"parseBranch"),Y=c(t=>({branch:t.branch,id:t.id??"",type:void 0!==t.type?w[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Q=c(t=>t.branch,"parseCheckout"),U=c(t=>({id:t.id,targetId:"",tags:0===t.tags?.length?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),J={parse:c(async t=>{const r=await b("gitGraph",t);h.debug(r),F(r,D)},"parse")},X=10,Z=40,tt=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),rt=new Set(["redux-color","redux-dark-color"]),et=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),ot=c((t,r,e=!1)=>e&&t>0?(t-1)%(r-1)+1:t%r,"calcColorIndex"),nt=new Map,at=new Map,st=new Map,it=[],ct=0,dt="LR",ht=c(()=>{nt.clear(),at.clear(),st.clear(),ct=0,it=[],dt="LR"},"clear"),mt=c(t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof t?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=t.trim(),r.appendChild(e)}),r},"drawText"),$t=c(t=>{let r,e,o;return"BT"===dt?(e=c((t,r)=>t<=r,"comparisonFunc"),o=1/0):(e=c((t,r)=>t>=r,"comparisonFunc"),o=0),t.forEach(t=>{const n="TB"===dt||"BT"==dt?at.get(t)?.y:at.get(t)?.x;void 0!==n&&e(n,o)&&(r=t,o=n)}),r},"findClosestParent"),lt=c(t=>{let r="",e=1/0;return t.forEach(t=>{const o=at.get(t).y;o<=e&&(r=t,e=o)}),r||void 0},"findClosestParentBT"),gt=c((t,r,e)=>{let o=e,n=e;const a=[];t.forEach(t=>{const e=r.get(t);if(!e)throw new Error(`Commit not found for key ${t}`);e.parents.length?(o=yt(e),n=Math.max(o,n)):a.push(e),ft(e,o)}),o=n,a.forEach(t=>{xt(t,o,e)}),t.forEach(t=>{const e=r.get(t);if(e?.parents.length){const t=lt(e.parents);o=at.get(t).y-Z,o<=n&&(n=o);const r=nt.get(e.branch).pos,a=o-X;at.set(e.id,{x:r,y:a})}})},"setParallelBTPos"),pt=c(t=>{const r=$t(t.parents.filter(t=>null!==t));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);const e=at.get(r)?.y;if(void 0===e)throw new Error(`Closest parent position not found for commit ${t.id}`);return e},"findClosestParentPos"),yt=c(t=>pt(t)+Z,"calculateCommitPosition"),ft=c((t,r)=>{const e=nt.get(t.branch);if(!e)throw new Error(`Branch not found for commit ${t.id}`);const o=e.pos,n=r+X;return at.set(t.id,{x:o,y:n}),{x:o,y:n}},"setCommitPosition"),xt=c((t,r,e)=>{const o=nt.get(t.branch);if(!o)throw new Error(`Branch not found for commit ${t.id}`);const n=r+e,a=o.pos;at.set(t.id,{x:a,y:n})},"setRootPosition"),ut=c((t,r,e,o,n,a)=>{const{theme:s}=$(),i=tt.has(s??""),c=rt.has(s??""),d=et.has(s??"");if(a===w.HIGHLIGHT)t.append("rect").attr("x",e.x-10+(i?3:0)).attr("y",e.y-10+(i?3:0)).attr("width",i?14:20).attr("height",i?14:20).attr("class",`commit ${r.id} commit-highlight${ot(n,8,c)} ${o}-outer`),t.append("rect").attr("x",e.x-6+(i?2:0)).attr("y",e.y-6+(i?2:0)).attr("width",i?8:12).attr("height",i?8:12).attr("class",`commit ${r.id} commit${ot(n,8,c)} ${o}-inner`);else if(a===w.CHERRY_PICK)t.append("circle").attr("cx",e.x).attr("cy",e.y).attr("r",i?7:10).attr("class",`commit ${r.id} ${o}`),t.append("circle").attr("cx",e.x-3).attr("cy",e.y+2).attr("r",i?2.5:2.75).attr("fill",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),t.append("circle").attr("cx",e.x+3).attr("cy",e.y+2).attr("r",i?2.5:2.75).attr("fill",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),t.append("line").attr("x1",e.x+3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),t.append("line").attr("x1",e.x-3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`);else{const s=t.append("circle");if(s.attr("cx",e.x),s.attr("cy",e.y),s.attr("r",i?7:10),s.attr("class",`commit ${r.id} commit${ot(n,8,c)}`),a===w.MERGE){const a=t.append("circle");a.attr("cx",e.x),a.attr("cy",e.y),a.attr("r",i?5:6),a.attr("class",`commit ${o} ${r.id} commit${ot(n,8,c)}`)}if(a===w.REVERSE){const a=i?4:5;t.append("path").attr("d",`M ${e.x-a},${e.y-a}L${e.x+a},${e.y+a}M${e.x-a},${e.y+a}L${e.x+a},${e.y-a}`).attr("class",`commit ${o} ${r.id} commit${ot(n,8,c)}`)}}},"drawCommitBullet"),bt=c((t,r,e,o,n)=>{if(r.type!==w.CHERRY_PICK&&(r.customId&&r.type===w.MERGE||r.type!==w.MERGE)&&n.showCommitLabel){const a=t.append("g"),s=a.insert("rect").attr("class","commit-label-bkg"),i=a.append("text").attr("x",o).attr("y",e.y+25).attr("class","commit-label").text(r.id),c=i.node()?.getBBox();if(c&&(s.attr("x",e.posWithOffset-c.width/2-2).attr("y",e.y+13.5).attr("width",c.width+4).attr("height",c.height+4),"TB"===dt||"BT"===dt?(s.attr("x",e.x-(c.width+16+5)).attr("y",e.y-12),i.attr("x",e.x-(c.width+16)).attr("y",e.y+c.height-12)):i.attr("x",e.posWithOffset-c.width/2),n.rotateCommitLabel))if("TB"===dt||"BT"===dt)i.attr("transform","rotate(-45, "+e.x+", "+e.y+")"),s.attr("transform","rotate(-45, "+e.x+", "+e.y+")");else{const t=-7.5-(c.width+10)/25*9.5,r=10+c.width/25*8.5;a.attr("transform","translate("+t+", "+r+") rotate(-45, "+o+", "+e.y+")")}}},"drawCommitLabel"),wt=c((t,r,e,o)=>{if(r.tags.length>0){let n=0,a=0,s=0;const i=[];for(const o of r.tags.reverse()){const r=t.insert("polygon"),c=t.append("circle"),d=t.append("text").attr("y",e.y-16-n).attr("class","tag-label").text(o),h=d.node()?.getBBox();if(!h)throw new Error("Tag bbox not found");a=Math.max(a,h.width),s=Math.max(s,h.height),d.attr("x",e.posWithOffset-h.width/2),i.push({tag:d,hole:c,rect:r,yOffset:n}),n+=20}for(const{tag:t,hole:r,rect:n,yOffset:c}of i){const i=s/2,d=e.y-19.2-c;if(n.attr("class","tag-label-bkg").attr("points",`\n ${o-a/2-2},${d+2} \n ${o-a/2-2},${d-2}\n ${e.posWithOffset-a/2-4},${d-i-2}\n ${e.posWithOffset+a/2+4},${d-i-2}\n ${e.posWithOffset+a/2+4},${d+i+2}\n ${e.posWithOffset-a/2-4},${d+i+2}`),r.attr("cy",d).attr("cx",o-a/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"===dt||"BT"===dt){const s=o+c;n.attr("class","tag-label-bkg").attr("points",`\n ${e.x},${s+2}\n ${e.x},${s-2}\n ${e.x+X},${s-i-2}\n ${e.x+X+a+4},${s-i-2}\n ${e.x+X+a+4},${s+i+2}\n ${e.x+X},${s+i+2}`).attr("transform","translate(12,12) rotate(45, "+e.x+","+o+")"),r.attr("cx",e.x+2).attr("cy",s).attr("transform","translate(12,12) rotate(45, "+e.x+","+o+")"),t.attr("x",e.x+5).attr("y",s+3).attr("transform","translate(14,14) rotate(45, "+e.x+","+o+")")}}}},"drawCommitTags"),kt=c(t=>{switch(t.customType??t.type){case w.NORMAL:return"commit-normal";case w.REVERSE:return"commit-reverse";case w.HIGHLIGHT:return"commit-highlight";case w.MERGE:return"commit-merge";case w.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),Bt=c((t,r,e,o)=>{const n={x:0,y:0};if(!(t.parents.length>0)){if("TB"===r)return 30;if("BT"===r){return(o.get(t.id)??n).y-Z}return 0}{const e=$t(t.parents);if(e){const a=o.get(e)??n;if("TB"===r)return a.y+Z;if("BT"===r){return(o.get(t.id)??n).y-Z}return a.x+Z}}return 0},"calculatePosition"),Et=c((t,r,e)=>{const o="BT"===dt&&e?r:r+X,n=nt.get(t.branch)?.pos,a="TB"===dt||"BT"===dt?nt.get(t.branch)?.pos:o;if(void 0===a||void 0===n)throw new Error(`Position were undefined for commit ${t.id}`);const s=tt.has($().theme??"");return{x:a,y:"TB"===dt||"BT"===dt?o:n+(s?7:-2),posWithOffset:o}},"getCommitPosition"),Ct=c((t,r,e,o)=>{const n=t.append("g").attr("class","commit-bullets"),a=t.append("g").attr("class","commit-labels");let s="TB"===dt||"BT"===dt?30:0;const i=[...r.keys()],d=o.parallelCommits??!1,h=c((t,e)=>{const o=r.get(t)?.seq,n=r.get(e)?.seq;return void 0!==o&&void 0!==n?o-n:0},"sortKeys");let m=i.sort(h);"BT"===dt&&(d&&gt(m,r,s),m=m.reverse()),m.forEach(t=>{const i=r.get(t);if(!i)throw new Error(`Commit not found for key ${t}`);d&&(s=Bt(i,dt,s,at));const c=Et(i,s,d);if(e){const t=kt(i),r=i.customType??i.type,e=nt.get(i.branch)?.index??0;ut(n,i,c,t,e,r),bt(a,i,c,s,o),wt(a,i,c,s)}"TB"===dt||"BT"===dt?at.set(i.id,{x:c.x,y:c.posWithOffset}):at.set(i.id,{x:c.posWithOffset,y:c.y}),s="BT"===dt&&d?s+Z:s+Z+X,s>ct&&(ct=s)})},"drawCommits"),Lt=c((t,r,e,o,n)=>{const a=("TB"===dt||"BT"===dt?e.x<o.x:e.y<o.y)?r.branch:t.branch,s=c(t=>t.branch===a,"isOnBranchToGetCurve"),i=c(e=>e.seq>t.seq&&e.seq<r.seq,"isBetweenCommits");return[...n.values()].some(t=>i(t)&&s(t))},"shouldRerouteArrow"),Tt=c((t,r,e=0)=>{const o=t+Math.abs(t-r)/2;if(e>5)return o;if(it.every(t=>Math.abs(t-o)>=10))return it.push(o),o;const n=Math.abs(t-r);return Tt(t,r-n/5,e+1)},"findLane"),Mt=c((t,r,e,o)=>{const{theme:n}=$(),a=rt.has(n??""),s=at.get(r.id),i=at.get(e.id);if(void 0===s||void 0===i)throw new Error(`Commit positions not found for commits ${r.id} and ${e.id}`);const c=Lt(r,e,s,i,o);let d,h="",m="",l=0,g=0,p=nt.get(e.branch)?.index;if(e.type===w.MERGE&&r.id!==e.parents[0]&&(p=nt.get(r.branch)?.index),c){h="A 10 10, 0, 0, 0,",m="A 10 10, 0, 0, 1,",l=10,g=10;const t=s.y<i.y?Tt(s.y,i.y):Tt(i.y,s.y),e=s.x<i.x?Tt(s.x,i.x):Tt(i.x,s.x);"TB"===dt?s.x<i.x?d=`M ${s.x} ${s.y} L ${e-l} ${s.y} ${m} ${e} ${s.y+g} L ${e} ${i.y-l} ${h} ${e+g} ${i.y} L ${i.x} ${i.y}`:(p=nt.get(r.branch)?.index,d=`M ${s.x} ${s.y} L ${e+l} ${s.y} ${h} ${e} ${s.y+g} L ${e} ${i.y-l} ${m} ${e-g} ${i.y} L ${i.x} ${i.y}`):"BT"===dt?s.x<i.x?d=`M ${s.x} ${s.y} L ${e-l} ${s.y} ${h} ${e} ${s.y-g} L ${e} ${i.y+l} ${m} ${e+g} ${i.y} L ${i.x} ${i.y}`:(p=nt.get(r.branch)?.index,d=`M ${s.x} ${s.y} L ${e+l} ${s.y} ${m} ${e} ${s.y-g} L ${e} ${i.y+l} ${h} ${e-g} ${i.y} L ${i.x} ${i.y}`):s.y<i.y?d=`M ${s.x} ${s.y} L ${s.x} ${t-l} ${h} ${s.x+g} ${t} L ${i.x-l} ${t} ${m} ${i.x} ${t+g} L ${i.x} ${i.y}`:(p=nt.get(r.branch)?.index,d=`M ${s.x} ${s.y} L ${s.x} ${t+l} ${m} ${s.x+g} ${t} L ${i.x-l} ${t} ${h} ${i.x} ${t-g} L ${i.x} ${i.y}`)}else h="A 20 20, 0, 0, 0,",m="A 20 20, 0, 0, 1,",l=20,g=20,"TB"===dt?(s.x<i.x&&(d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${i.y-l} ${h} ${s.x+g} ${i.y} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${i.x-l} ${s.y} ${m} ${i.x} ${s.y+g} L ${i.x} ${i.y}`),s.x>i.x&&(h="A 20 20, 0, 0, 0,",m="A 20 20, 0, 0, 1,",l=20,g=20,d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${i.y-l} ${m} ${s.x-g} ${i.y} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${i.x+l} ${s.y} ${h} ${i.x} ${s.y+g} L ${i.x} ${i.y}`),s.x===i.x&&(d=`M ${s.x} ${s.y} L ${i.x} ${i.y}`)):"BT"===dt?(s.x<i.x&&(d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${i.y+l} ${m} ${s.x+g} ${i.y} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${i.x-l} ${s.y} ${h} ${i.x} ${s.y-g} L ${i.x} ${i.y}`),s.x>i.x&&(h="A 20 20, 0, 0, 0,",m="A 20 20, 0, 0, 1,",l=20,g=20,d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${i.y+l} ${h} ${s.x-g} ${i.y} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${i.x+l} ${s.y} ${m} ${i.x} ${s.y-g} L ${i.x} ${i.y}`),s.x===i.x&&(d=`M ${s.x} ${s.y} L ${i.x} ${i.y}`)):(s.y<i.y&&(d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${i.x-l} ${s.y} ${m} ${i.x} ${s.y+g} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${s.x} ${i.y-l} ${h} ${s.x+g} ${i.y} L ${i.x} ${i.y}`),s.y>i.y&&(d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${i.x-l} ${s.y} ${h} ${i.x} ${s.y-g} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${s.x} ${i.y+l} ${m} ${s.x+g} ${i.y} L ${i.x} ${i.y}`),s.y===i.y&&(d=`M ${s.x} ${s.y} L ${i.x} ${i.y}`));if(void 0===d)throw new Error("Line definition not found");t.append("path").attr("d",d).attr("class","arrow arrow"+ot(p,8,a))},"drawArrow"),vt=c((t,r)=>{const e=t.append("g").attr("class","commit-arrows");[...r.keys()].forEach(t=>{const o=r.get(t);o.parents&&o.parents.length>0&&o.parents.forEach(t=>{Mt(e,r.get(t),o,r)})})},"drawArrows"),It=c((t,r,e,o)=>{const{look:n,theme:a,themeVariables:s}=$(),{dropShadow:i,THEME_COLOR_LIMIT:c}=s,d=tt.has(a??""),h=rt.has(a??""),m=t.append("g");r.forEach((t,r)=>{const a=ot(r,d?c:8,h),s=nt.get(t.name)?.pos;if(void 0===s)throw new Error(`Position not found for branch ${t.name}`);const $="TB"===dt||"BT"===dt?s:d?s+6+1:s-2,l=m.append("line");l.attr("x1",0),l.attr("y1",$),l.attr("x2",ct),l.attr("y2",$),l.attr("class","branch branch"+a),"TB"===dt?(l.attr("y1",30),l.attr("x1",s),l.attr("y2",ct),l.attr("x2",s)):"BT"===dt&&(l.attr("y1",ct),l.attr("x1",s),l.attr("y2",30),l.attr("x2",s)),it.push($);const g=t.name,p=mt(g),y=m.insert("rect"),f=m.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+a);f.node().appendChild(p);const x=p.getBBox(),u=d?0:4,b=d?16:0,w=d?12:0;"neo"===n&&y.attr("data-look","neo"),y.attr("class","branchLabelBkg label"+a).attr("style","neo"===n?`filter:${d?`url(#${o}-drop-shadow)`:i}`:"").attr("rx",u).attr("ry",u).attr("x",-x.width-4-(!0===e.rotateCommitLabel?30:0)).attr("y",-x.height/2+10).attr("width",x.width+18+b).attr("height",x.height+4+w),f.attr("transform","translate("+(-x.width-14-(!0===e.rotateCommitLabel?30:0)+b/2)+", "+($-x.height/2-2)+")"),"TB"===dt?(y.attr("x",s-x.width/2-10).attr("y",0),f.attr("transform","translate("+(s-x.width/2-5)+", 0)"),d&&(y.attr("transform",`translate(${-b/2-3}, ${-w-10})`),f.attr("transform","translate("+(s-x.width/2-5)+", "+(2*-w+7)+")"))):"BT"===dt?(y.attr("x",s-x.width/2-10).attr("y",ct),f.attr("transform","translate("+(s-x.width/2-5)+", "+ct+")"),d&&(y.attr("transform",`translate(${-b/2-3}, ${w+10})`),f.attr("transform","translate("+(s-x.width/2-5)+", "+(ct+2*w+4)+")"))):y.attr("transform","translate(-19, "+($-12-w/2)+")")})},"drawBranches"),Rt=c(function(t,r,e,o,n){return nt.set(t,{pos:r,index:e}),r+=50+(n?40:0)+("TB"===dt||"BT"===dt?o.width/2:0)},"setBranchPosition"),Pt={draw:c(function(t,r,e,o){ht(),h.debug("in gitgraph renderer",t+"\n","id:",r,e);const n=o.db;if(!n.getConfig)return void h.error("getConfig method is not available on db");const a=n.getConfig(),s=a.rotateCommitLabel??!1;st=n.getCommits();const i=n.getBranchesAsObjArray();dt=n.getDirection();const c=m(`[id="${r}"]`),{look:d,theme:p,themeVariables:y}=$(),{useGradient:f,gradientStart:x,gradientStop:u,filterColor:b}=y;if(f){const t=c.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("stop").attr("offset","0%").attr("stop-color",x).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}"neo"===d&&tt.has(p??"")&&c.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",b);let w=0;i.forEach((t,r)=>{const e=mt(t.name),o=c.append("g"),n=o.insert("g").attr("class","branchLabel"),a=n.insert("g").attr("class","label branch-label");a.node()?.appendChild(e);const i=e.getBBox();w=Rt(t.name,w,r,i,s),a.remove(),n.remove(),o.remove()}),Ct(c,st,!1,a),a.showBranches&&It(c,i,a,r),vt(c,st),Ct(c,st,!0,a),l.insertTitle(c,"gitTitleText",a.titleTopMargin??0,n.getDiagramTitle()),g(void 0,c,a.diagramPadding,a.useMaxWidth)},"draw")},Ot=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),At=new Set(["redux-color","redux-dark-color"]),Gt=new Set(["neo","neo-dark"]),St=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),Wt=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),jt=c(t=>{const{svgId:r}=t;let e="";if(t.useGradient&&r)for(let o=0;o<t.THEME_COLOR_LIMIT;o++)e+=`\n .label${o} { fill: ${t.mainBkg}; stroke: url(${r}-gradient); stroke-width: ${t.strokeWidth};}\n `;return e},"genGitGraphGradient"),Ht=c(t=>{const r=d(),{theme:e,themeVariables:o}=r,{borderColorArray:n}=o,a=Ot.has(e);if(Gt.has(e)){let r="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)if(0===e)r+=`\n .branch-label${e} { fill: ${t.nodeBorder};}\n .commit${e} { stroke: ${t.nodeBorder}; }\n .commit-highlight${e} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }\n .arrow${e} { stroke: ${t.nodeBorder}; }\n .commit-bullets { fill: ${t.nodeBorder}; }\n .commit-cherry-pick${e} { stroke: ${t.nodeBorder}; }\n ${jt(t)}`;else{const o=e%8;r+=`\n .branch-label${e} { fill: ${t["gitBranchLabel"+o]}; }\n .commit${e} { stroke: ${t["git"+o]}; fill: ${t["git"+o]}; }\n .commit-highlight${e} { stroke: ${t["gitInv"+o]}; fill: ${t["gitInv"+o]}; }\n .arrow${e} { stroke: ${t["git"+o]}; }\n `}return r}if(At.has(e)){let r="";for(let o=0;o<t.THEME_COLOR_LIMIT;o++)if(0===o)r+=`\n .branch-label${o} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .commit${o} { stroke: ${t.nodeBorder}; }\n .commit-highlight${o} { stroke: ${t.nodeBorder}; fill: ${t.mainBkg}; }\n .label${o} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .arrow${o} { stroke: ${t.nodeBorder}; }\n .commit-bullets { fill: ${t.nodeBorder}; }\n `;else{const s=o%n.length;r+=`\n .branch-label${o} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .commit${o} { stroke: ${n[s]}; fill: ${n[s]}; }\n .commit-highlight${o} { stroke: ${n[s]}; fill: ${n[s]}; }\n .label${o} { fill: ${St.has(e)?t.mainBkg:n[s]}; stroke: ${n[s]}; stroke-width: ${t.strokeWidth}; }\n .arrow${o} { stroke: ${n[s]}; }\n `}return r}{let r="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)r+=`\n .branch-label${e} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .commit${e} { stroke: ${t.nodeBorder}; }\n .commit-highlight${e} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }\n .label${e} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${a?`font-weight:${t.noteFontWeight}`:""}}\n .arrow${e} { stroke: ${t.nodeBorder}; }\n .commit-bullets { fill: ${t.nodeBorder}; }\n .commit-cherry-pick${e} { stroke: ${t.nodeBorder}; }\n `;return r}},"genColor"),qt=c(t=>`${Array.from({length:t.THEME_COLOR_LIMIT},(t,r)=>r).map(r=>{const e=r%8;return`\n .branch-label${r} { fill: ${t["gitBranchLabel"+e]}; }\n .commit${r} { stroke: ${t["git"+e]}; fill: ${t["git"+e]}; }\n .commit-highlight${r} { stroke: ${t["gitInv"+e]}; fill: ${t["gitInv"+e]}; }\n .label${r} { fill: ${t["git"+e]}; }\n .arrow${r} { stroke: ${t["git"+e]}; }\n `}).join("\n")}`,"normalTheme"),_t={parser:J,db:D,renderer:Pt,styles:c(t=>{const r=d(),{theme:e}=r,o=Wt.has(e);return`\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n \n ${o?Ht(t):qt(t)}\n\n .branch {\n stroke-width: ${t.strokeWidth};\n stroke: ${t.commitLineColor??t.lineColor};\n stroke-dasharray: ${o?"4 2":"2"};\n }\n .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${o?t.nodeBorder:t.commitLabelColor}; ${o?`font-weight:${t.noteFontWeight};`:""}}\n .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${o?"transparent":t.commitLabelBackground}; opacity: ${o?"":.5}; }\n .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}\n .tag-label-bkg { fill: ${o?t.mainBkg:t.tagLabelBackground}; stroke: ${o?t.nodeBorder:t.tagLabelBorder}; ${o?`filter:${t.dropShadow}`:""} }\n .tag-hole { fill: ${t.textColor}; }\n\n .commit-merge {\n stroke: ${o?t.mainBkg:t.primaryColor};\n fill: ${o?t.mainBkg:t.primaryColor};\n }\n .commit-reverse {\n stroke: ${o?t.mainBkg:t.primaryColor};\n fill: ${o?t.mainBkg:t.primaryColor};\n stroke-width: ${o?t.strokeWidth:3};\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ${o?t.mainBkg:t.primaryColor};\n fill: ${o?t.mainBkg:t.primaryColor};\n }\n\n .arrow {\n /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */\n stroke-width: ${Ot.has(e)?t.strokeWidth:8};\n stroke-linecap: round;\n fill: none\n }\n .gitTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n`},"getStyles")};export{_t as diagram};
@@ -0,0 +1 @@
1
+ import{S as t,b as e,c as s,a as r,d as i,e as n,f as o,g as h,h as u,j as a,k as d}from"./isSymbol-D2gNAbOe.js";import{d as l,b as c,a as _,e as f,c as p,k as g,g as v,f as b,S as m,s as w,h as C,i as O,j as y,l as j}from"./isUndefined--MLpwE__.js";function N(t,e,s,r){for(var i=t.length,n=s+-1;++n<i;)if(e(t[n],n,t))return n;return-1}function E(t){return t!=t}function L(t,e){return!!(null==t?0:t.length)&&function(t,e,s){return e==e?function(t,e,s){for(var r=s-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,s):N(t,E,s)}(t,e,0)>-1}var P=t?t.isConcatSpreadable:void 0;function D(t){return e(t)||s(t)||!!(P&&t&&t[P])}function F(t,e,s,r,i){var n=-1,o=t.length;for(s||(s=D),i||(i=[]);++n<o;){var h=t[n];s(h)?l(i,h):r||(i[i.length]=h)}return i}function M(t,e,s,r){var i=-1,n=null==t?0:t.length;for(r&&n&&(s=t[++i]);++i<n;)s=e(s,t[i],i,t);return s}function S(t,e){var s=[];return c(t,function(t,r,i){e(t,r,i)&&s.push(t)}),s}function k(t,s){return(e(t)?f:S)(t,_(s))}function G(t){return null==t?[]:function(t,e){return p(e,function(e){return t[e]})}(t,g(t))}var z=Object.prototype.hasOwnProperty;function x(t){if(null==t)return!0;if(r(t)&&(e(t)||"string"==typeof t||"function"==typeof t.splice||i(t)||n(t)||s(t)))return!t.length;var h=v(t);if("[object Map]"==h||"[object Set]"==h)return!t.size;if(o(t))return!b(t).length;for(var u in t)if(z.call(t,u))return!1;return!0}function U(t,e,s,r,i){return i(t,function(t,i,n){s=r?(r=!1,t):e(s,t,i,n)}),s}function q(t,s,r){var i=e(t)?M:U,n=arguments.length<3;return i(t,_(s),r,n,c)}var A=m&&1/w(new m([,-0]))[1]==1/0?function(t){return new m(t)}:function(){};var B=h(function(t){return function(t,e,s){var r=-1,i=L,n=t.length,o=!0,h=[],u=h;if(n>=200){var a=A(t);if(a)return w(a);o=!1,i=O,u=new C}else u=h;t:for(;++r<n;){var d=t[r],l=d;if(d=0!==d?d:0,o&&l==l){for(var c=u.length;c--;)if(u[c]===l)continue t;h.push(d)}else i(u,l,s)||(u!==h&&u.push(l),h.push(d))}return h}(F(t,0,u,!0))}),H="\0";class I{constructor(t={}){this._isDirected=!Object.prototype.hasOwnProperty.call(t,"directed")||t.directed,this._isMultigraph=!!Object.prototype.hasOwnProperty.call(t,"multigraph")&&t.multigraph,this._isCompound=!!Object.prototype.hasOwnProperty.call(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=a(void 0),this._defaultEdgeLabelFn=a(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[H]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return d(t)||(t=a(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return g(this._nodes)}sources(){var t=this;return k(this.nodes(),function(e){return x(t._in[e])})}sinks(){var t=this;return k(this.nodes(),function(e){return x(t._out[e])})}setNodes(t,e){var s=arguments,r=this;return y(t,function(t){s.length>1?r.setNode(t,e):r.setNode(t)}),this}setNode(t,e){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=H,this._children[t]={},this._children[H][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=t=>this.removeEdge(this._edgeObjs[t]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],y(this.children(t),t=>{this.setParent(t)}),delete this._children[t]),y(g(this._in[t]),e),delete this._in[t],delete this._preds[t],y(g(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(j(e))e=H;else{for(var s=e+="";!j(s);s=this.parent(s))if(s===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==H)return e}}children(t){if(j(t)&&(t=H),this._isCompound){var e=this._children[t];if(e)return g(e)}else{if(t===H)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return g(e)}successors(t){var e=this._sucs[t];if(e)return g(e)}neighbors(t){var e=this.predecessors(t);if(e)return B(e,this.successors(t))}isLeaf(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var s=this;y(this._nodes,function(s,r){t(r)&&e.setNode(r,s)}),y(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,s.edge(t))});var r={};function i(t){var n=s.parent(t);return void 0===n||e.hasNode(n)?(r[t]=n,n):n in r?r[n]:i(n)}return this._isCompound&&y(e.nodes(),function(t){e.setParent(t,i(t))}),e}setDefaultEdgeLabel(t){return d(t)||(t=a(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return G(this._edgeObjs)}setPath(t,e){var s=this,r=arguments;return q(t,function(t,i){return r.length>1?s.setEdge(t,i,e):s.setEdge(t,i),i}),this}setEdge(){var t,e,s,r,i=!1,n=arguments[0];"object"==typeof n&&null!==n&&"v"in n?(t=n.v,e=n.w,s=n.name,2===arguments.length&&(r=arguments[1],i=!0)):(t=n,e=arguments[1],s=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),t=""+t,e=""+e,j(s)||(s=""+s);var o=Q(this._isDirected,t,e,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return i&&(this._edgeLabels[o]=r),this;if(!j(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[o]=i?r:this._defaultEdgeLabelFn(t,e,s);var h=function(t,e,s,r){var i=""+e,n=""+s;if(!t&&i>n){var o=i;i=n,n=o}var h={v:i,w:n};r&&(h.name=r);return h}(this._isDirected,t,e,s);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[o]=h,J(this._preds[e],t),J(this._sucs[t],e),this._in[e][o]=h,this._out[t][o]=h,this._edgeCount++,this}edge(t,e,s){var r=1===arguments.length?R(this._isDirected,arguments[0]):Q(this._isDirected,t,e,s);return this._edgeLabels[r]}hasEdge(t,e,s){var r=1===arguments.length?R(this._isDirected,arguments[0]):Q(this._isDirected,t,e,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(t,e,s){var r=1===arguments.length?R(this._isDirected,arguments[0]):Q(this._isDirected,t,e,s),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],K(this._preds[e],t),K(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this}inEdges(t,e){var s=this._in[t];if(s){var r=G(s);return e?k(r,function(t){return t.v===e}):r}}outEdges(t,e){var s=this._out[t];if(s){var r=G(s);return e?k(r,function(t){return t.w===e}):r}}nodeEdges(t,e){var s=this.inEdges(t,e);if(s)return s.concat(this.outEdges(t,e))}}function J(t,e){t[e]?t[e]++:t[e]=1}function K(t,e){--t[e]||delete t[e]}function Q(t,e,s,r){var i=""+e,n=""+s;if(!t&&i>n){var o=i;i=n,n=o}return i+""+n+""+(j(r)?"\0":r)}function R(t,e){return Q(t,e.v,e.w,e.name)}I.prototype._nodeCount=0,I.prototype._edgeCount=0;export{I as G,N as a,F as b,k as f,q as r,G as v};
@@ -1 +1 @@
1
- export{c as classNames,d as downloadBlobAsFile,a as downloadDataTableAsCsvFile,b as downloadLink,e as downloadSheetDataAsXlsxFile,f as downloadUrlAsFile,g as getTextContent,h as getXLSX,i as isBrowser,j as isDev,k as isOverflowed,l as isTrigger,n as normalizeFolderPath,o as openNewTab,r as renderChildrenWithProps,s as sheetDataToWorkBook,t as toBlob}from"./commons-D9Mh1s5L.js";import{g as S}from"./websocket-C4G3j9Rm.js";export{a as authorizedRequest,c as copy,b as cutTimeSplit,d as downloadJukiMarkdownAsPdf,e as downloadWebsiteAsPdf,f as getAuthorizedRequest,h as getContestState,i as getDateLiteral,j as getEditorSettingsStorageKey,k as getHeaders,l as getHref,m as getJudgeOrigin,n as getKeyWebSocketEventDTO,o as getMetaHeaders,p as getProblemsStoreKey,q as getSettingsStoreKey,s as getSourcesStoreKey,t as getStatementData,u as getTestCasesStoreKey,v as getUnsubscribeEvent,w as getVisitorSessionId,x as handleUploadFile,y as handleUploadImage,z as isJudgeWindowLocation,A as publishNote,B as renderReactNodeOrFunction,r as renderReactNodeOrFunctionP1,C as safeReportError,D as showOfDateDisplayType,E as showOfTimeDisplayType,F as toFilterUrl,G as toSortUrl,H as upperFirst}from"./websocket-C4G3j9Rm.js";export{g as getHeight}from"./worksheet-CQgex79V.js";export{c as cloneURLSearchParams,p as persistGlobalURLSearchParams}from"./index-o2jBRnrQ.js";import"./settings-BONQQsPx.js";import"react";import"./enums.js";import"react/jsx-runtime";import"./constants.js";const T=e=>({"*":{key:"*",header:"",body:e}}),R=e=>null!==e&&"IFRAME"===e.tagName,U={setItem:(e,s)=>{if(S()||"undefined"==typeof document)return;localStorage.setItem(e,s);const t=document.getElementsByClassName("juki-iframe-cross-domain");for(const a of t)if(R(a)&&a.contentWindow){const t=a.contentWindow;t?.postMessage({action:"localStorage.setItem",key:e,value:s},new URL(a.src).origin)}},removeItem:e=>{if(S()||"undefined"==typeof document)return;localStorage.removeItem(e);const s=document.getElementsByClassName("juki-iframe-cross-domain");for(const t of s)if(R(t)&&t.contentWindow){const s=t.contentWindow;s?.postMessage({action:"localStorage.removeItem",key:e},new URL(t.src).origin)}}};export{S as getQuerySessionId,R as isIFrame,U as localStorageCrossDomains,T as oneTab};
1
+ export{c as classNames,d as downloadBlobAsFile,a as downloadDataTableAsCsvFile,b as downloadLink,e as downloadSheetDataAsXlsxFile,f as downloadUrlAsFile,g as getTextContent,h as getXLSX,i as isBrowser,j as isDev,k as isOverflowed,l as isTrigger,n as normalizeFolderPath,o as openNewTab,r as renderChildrenWithProps,s as sheetDataToWorkBook,t as toBlob}from"./commons-BHuDJzTw.js";import{g as S}from"./websocket-B2hJys_Q.js";export{a as authorizedRequest,c as copy,b as cutTimeSplit,d as downloadJukiMarkdownAsPdf,e as downloadWebsiteAsPdf,f as getAuthorizedRequest,h as getContestState,i as getDateLiteral,j as getEditorSettingsStorageKey,k as getHeaders,l as getHref,m as getJudgeOrigin,n as getKeyWebSocketEventDTO,o as getMetaHeaders,p as getProblemsStoreKey,q as getSettingsStoreKey,s as getSourcesStoreKey,t as getStatementData,u as getTestCasesStoreKey,v as getUnsubscribeEvent,w as getVisitorSessionId,x as handleUploadFile,y as handleUploadImage,z as isJudgeWindowLocation,A as publishNote,B as renderReactNodeOrFunction,r as renderReactNodeOrFunctionP1,C as safeReportError,D as showOfDateDisplayType,E as showOfTimeDisplayType,F as toFilterUrl,G as toSortUrl,H as upperFirst}from"./websocket-B2hJys_Q.js";export{g as getHeight}from"./worksheet-CQgex79V.js";export{c as cloneURLSearchParams,p as persistGlobalURLSearchParams}from"./index-_kF3_0-k.js";import"./settings-BONQQsPx.js";import"react";import"./enums.js";import"react/jsx-runtime";import"./constants.js";const T=e=>({"*":{key:"*",header:"",body:e}}),R=e=>null!==e&&"IFRAME"===e.tagName,U={setItem:(e,s)=>{if(S()||"undefined"==typeof document)return;localStorage.setItem(e,s);const t=document.getElementsByClassName("juki-iframe-cross-domain");for(const a of t)if(R(a)&&a.contentWindow){const t=a.contentWindow;t?.postMessage({action:"localStorage.setItem",key:e,value:s},new URL(a.src).origin)}},removeItem:e=>{if(S()||"undefined"==typeof document)return;localStorage.removeItem(e);const s=document.getElementsByClassName("juki-iframe-cross-domain");for(const t of s)if(R(t)&&t.contentWindow){const s=t.contentWindow;s?.postMessage({action:"localStorage.removeItem",key:e},new URL(t.src).origin)}}};export{S as getQuerySessionId,R as isIFrame,U as localStorageCrossDomains,T as oneTab};
@@ -1 +1 @@
1
- import{P as t,N as e,a as s,D as i,b as r,T as h,I as n}from"./basic-setup-UGhpl5jF.js";class o{constructor(t,e,s,i,r,h,n,o,a,l=0,c){this.p=t,this.stack=e,this.state=s,this.reducePos=i,this.pos=r,this.score=h,this.buffer=n,this.bufferBase=o,this.curContext=a,this.lookAhead=l,this.parent=c}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,s=0){let i=t.parser.context;return new o(t,[],e,s,s,0,[],0,i?new a(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let s=t>>19,i=65535&t,{parser:r}=this.p,h=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),n=r.dynamicPrecedence(i);if(n&&(this.score+=n),0==s)return this.pushState(r.getGoto(this.state,i,!0),this.reducePos),i<r.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,h?8:4,!0),void this.reduceContext(i,this.reducePos);let o=this.stack.length-3*(s-1)-(262144&t?6:0),a=o?this.stack[o-2]:this.p.ranges[0].from,l=this.reducePos-a;l>=2e3&&!(null===(e=this.p.parser.nodeSet.types[i])||void 0===e?void 0:e.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=l):this.p.lastBigReductionSize<l&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=a,this.p.lastBigReductionSize=l));let c=o?this.stack[o-1]:0,u=this.bufferBase+this.buffer.length-c;if(i<r.minRepeatTerm||131072&t){let t=r.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,a,t,u+4,!0)}if(262144&t)this.state=this.stack[o];else{let t=this.stack[o-3];this.state=r.getGoto(t,i,!0)}for(;this.stack.length>o;)this.stack.pop();this.reduceContext(i,a)}storeNode(t,e,s,i=4,r=!1){if(0==t&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let t=this,i=this.buffer.length;if(0==i&&t.parent&&(i=t.bufferBase-t.parent.bufferBase,t=t.parent),i>0&&0==t.buffer[i-4]&&t.buffer[i-1]>-1){if(e==s)return;if(t.buffer[i-2]>=e)return void(t.buffer[i-2]=s)}}if(r&&this.pos!=s){let r=this.buffer.length;if(r>0&&(0!=this.buffer[r-4]||this.buffer[r-1]<0)){let t=!1;for(let e=r;e>0&&this.buffer[e-2]>s;e-=4)if(this.buffer[e-1]>=0){t=!0;break}if(t)for(;r>0&&this.buffer[r-2]>s;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,i>4&&(i-=4)}this.buffer[r]=t,this.buffer[r+1]=e,this.buffer[r+2]=s,this.buffer[r+3]=i}else this.buffer.push(t,e,s,i)}shift(t,e,s,i){if(131072&t)this.pushState(65535&t,this.pos);else if(262144&t)this.pos=i,this.shiftContext(e,s),e<=this.p.parser.maxNode&&this.buffer.push(e,s,i,4);else{let r=t,{parser:h}=this.p;this.pos=i;let n=h.stateFlag(r,1);!n&&(i>s||e<=h.maxNode)&&(this.reducePos=i),this.pushState(r,n?s:Math.min(s,this.reducePos)),this.shiftContext(e,s),e<=h.maxNode&&this.buffer.push(e,s,i,4)}}apply(t,e,s,i){65536&t?this.reduce(t):this.shift(t,e,s,i)}useNode(t,e){let s=this.p.reused.length-1;(s<0||this.p.reused[s]!=t)&&(this.p.reused.push(t),s++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(e,i),this.buffer.push(s,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(;e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let s=t.buffer.slice(e),i=t.bufferBase+e;for(;t&&i==t.bufferBase;)t=t.parent;return new o(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let s=t<=this.p.parser.maxNode;s&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,s?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new l(this);;){let s=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(0==s)return!1;if(!(65536&s))return!0;e.reduce(s)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let s=[];for(let i,r=0;r<e.length;r+=2)(i=e[r+1])!=this.state&&this.p.parser.hasAction(i,t)&&s.push(e[r],i);if(this.stack.length<120)for(let t=0;s.length<8&&t<e.length;t+=2){let i=e[t+1];s.some((t,e)=>1&e&&t==i)||s.push(e[t],i)}e=s}let s=[];for(let t=0;t<e.length&&s.length<4;t+=2){let i=e[t+1];if(i==this.state)continue;let r=this.split();r.pushState(i,this.pos),r.storeNode(0,r.pos,r.pos,4,!0),r.shiftContext(e[t],this.pos),r.reducePos=this.pos,r.score-=200,s.push(r)}return s}forceReduce(){let{parser:t}=this.p,e=t.stateSlot(this.state,5);if(!(65536&e))return!1;if(!t.validAction(this.state,e)){let s=e>>19,i=65535&e,r=this.stack.length-3*s;if(r<0||t.getGoto(this.stack[r],i,!1)<0){let t=this.findForcedReduction();if(null==t)return!1;e=t}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],s=(i,r)=>{if(!e.includes(i))return e.push(i),t.allActions(i,e=>{if(393216&e);else if(65536&e){let s=(e>>19)-r;if(s>1){let i=65535&e,r=this.stack.length-3*s;if(r>=0&&t.getGoto(this.stack[r],i,!1)>=0)return s<<19|65536|i}}else{let t=s(e,r+1);if(null!=t)return t}})};return s(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:t}=this.p;return 65535==t.data[t.stateSlot(this.state,1)]&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;e<this.stack.length;e+=3)if(this.stack[e]!=t.stack[e])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(e)))}reduceContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(e)))}emitContext(){let t=this.buffer.length-1;(t<0||-3!=this.buffer[t])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||-4!=this.buffer[t])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let e=new a(this.curContext.tracker,t);e.hash!=this.curContext.hash&&this.emitContext(),this.curContext=e}}setLookAhead(t){return!(t<=this.lookAhead)&&(this.emitLookAhead(),this.lookAhead=t,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class a{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class l{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=65535&t,s=t>>19;0==s?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(s-1);let i=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=i}}class c{constructor(t,e,s){this.stack=t,this.pos=e,this.index=s,this.buffer=t.buffer,0==this.index&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new c(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;null!=t&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new c(this.stack,this.pos,this.index)}}function u(t,e=Uint16Array){if("string"!=typeof t)return t;let s=null;for(let i=0,r=0;i<t.length;){let h=0;for(;;){let e=t.charCodeAt(i++),s=!1;if(126==e){h=65535;break}e>=92&&e--,e>=34&&e--;let r=e-32;if(r>=46&&(r-=46,s=!0),h+=r,s)break;h*=46}s?s[r++]=h:s=new e(h)}return s}class f{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const p=new f;class d{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=p,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let s=this.range,i=this.rangeIndex,r=this.pos+t;for(;r<s.from;){if(!i)return null;let t=this.ranges[--i];r-=s.from-t.to,s=t}for(;e<0?r>s.to:r>=s.to;){if(i==this.ranges.length-1)return null;let t=this.ranges[++i];r+=t.from-s.to,s=t}return r}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let e of this.ranges)if(e.to>t)return Math.max(t,e.from);return this.end}peek(t){let e,s,i=this.chunkOff+t;if(i>=0&&i<this.chunk.length)e=this.pos+t,s=this.chunk.charCodeAt(i);else{let i=this.resolveOffset(t,1);if(null==i)return-1;if(e=i,e>=this.chunk2Pos&&e<this.chunk2Pos+this.chunk2.length)s=this.chunk2.charCodeAt(e-this.chunk2Pos);else{let t=this.rangeIndex,i=this.range;for(;i.to<=e;)i=this.ranges[++t];this.chunk2=this.input.chunk(this.chunk2Pos=e),e+this.chunk2.length>i.to&&(this.chunk2=this.chunk2.slice(0,i.to-e)),s=this.chunk2.charCodeAt(0)}}return e>=this.token.lookAhead&&(this.token.lookAhead=e+1),s}acceptToken(t,e=0){let s=e?this.resolveOffset(e,-1):this.pos;if(null==s||s<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=s}acceptTokenTo(t,e){this.token.value=t,this.token.end=e}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:e}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=e,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),e=this.pos+t.length;this.chunk=e>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=p,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,e){if(t>=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let s="";for(let i of this.ranges){if(i.from>=e)break;i.to>t&&(s+=this.input.read(Math.max(i.from,t),Math.min(i.to,e)))}return s}}class k{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:s}=e.p;x(this.data,t,e,this.id,s.data,s.tokenPrecTable)}}k.prototype.contextual=k.prototype.fallback=k.prototype.extend=!1;class g{constructor(t,e,s){this.precTable=e,this.elseToken=s,this.data="string"==typeof t?u(t):t}token(t,e){let s=t.pos,i=0;for(;;){let s=t.next<0,r=t.resolveOffset(1,1);if(x(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(null==this.elseToken)return;if(s||i++,null==r)break;t.reset(r,t.token)}i&&(t.reset(s,t.token),t.acceptToken(this.elseToken,i))}}g.prototype.contextual=k.prototype.fallback=k.prototype.extend=!1;class m{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function x(t,e,s,i,r,h){let n=0,o=1<<i,{dialect:a}=s.p.parser;t:for(;0!=(o&t[n]);){let s=t[n+1];for(let i=n+3;i<s;i+=2)if((t[i+1]&o)>0){let s=t[i];if(a.allows(s)&&(-1==e.token.value||e.token.value==s||S(s,e.token.value,r,h))){e.acceptToken(s);break}}let i=e.next,l=0,c=t[n+2];if(!(e.next<0&&c>l&&65535==t[s+3*c-3])){for(;l<c;){let r=l+c>>1,h=s+r+(r<<1),o=t[h],a=t[h+1]||65536;if(i<o)c=r;else{if(!(i>=a)){n=t[h+2],e.advance();continue t}l=r+1}}break}n=t[s+3*c-1]}}function b(t,e,s){for(let i,r=e;65535!=(i=t[r]);r++)if(i==s)return r-e;return-1}function S(t,e,s,i){let r=b(s,i,e);return r<0||b(s,i,t)<r}const v="undefined"!=typeof process&&process.env&&/\bparse\b/.test(process.env.LOG);let P=null;function A(t,e,s){let i=t.cursor(n.IncludeAnonymous);for(i.moveTo(e);;)if(!(s<0?i.childBefore(e):i.childAfter(e)))for(;;){if((s<0?i.to<e:i.from>e)&&!i.type.isError)return s<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(t.length,Math.max(i.from+1,e+25));if(s<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return s<0?0:t.length}}class C{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?A(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?A(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let e=this.trees.length-1;if(e<0)return this.nextFragment(),null;let s=this.trees[e],i=this.index[e];if(i==s.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let n=s.children[i],o=this.start[e]+s.positions[i];if(o>t)return this.nextStart=o,null;if(n instanceof h){if(o==t){if(o<this.safeFrom)return null;let t=o+n.length;if(t<=this.safeTo){let e=n.prop(r.lookAhead);if(!e||t+e<this.fragment.to)return n}}this.index[e]++,o+n.length>=Math.max(this.safeFrom,t)&&(this.trees.push(n),this.start.push(o),this.index.push(0))}else this.index[e]++,this.nextStart=o+n.length}}}class y{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(t=>new f)}getActions(t){let e=0,s=null,{parser:i}=t.p,{tokenizers:r}=i,h=i.stateSlot(t.state,3),n=t.curContext?t.curContext.hash:0,o=0;for(let i=0;i<r.length;i++){if(!(1<<i&h))continue;let a=r[i],l=this.tokens[i];if((!s||a.fallback)&&((a.contextual||l.start!=t.pos||l.mask!=h||l.context!=n)&&(this.updateCachedToken(l,a,t),l.mask=h,l.context=n),l.lookAhead>l.end+25&&(o=Math.max(l.lookAhead,o)),0!=l.value)){let i=e;if(l.extended>-1&&(e=this.addActions(t,l.extended,l.end,e)),e=this.addActions(t,l.value,l.end,e),!a.extend&&(s=l,e>i))break}}for(;this.actions.length>e;)this.actions.pop();return o&&t.setLookAhead(o),s||t.pos!=this.stream.end||(s=new f,s.value=t.p.parser.eofTerm,s.start=s.end=t.pos,e=this.addActions(t,s.value,s.end,e)),this.mainToken=s,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new f,{pos:s,p:i}=t;return e.start=s,e.end=Math.min(s+1,i.stream.end),e.value=s==i.stream.end?i.parser.eofTerm:0,e}updateCachedToken(t,e,s){let i=this.stream.clipPos(s.pos);if(e.token(this.stream.reset(i,t),s),t.value>-1){let{parser:e}=s.p;for(let i=0;i<e.specialized.length;i++)if(e.specialized[i]==t.value){let r=e.specializers[i](this.stream.read(t.start,t.end),s);if(r>=0&&s.p.parser.dialect.allows(r>>1)){1&r?t.extended=r>>1:t.value=r>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,e,s,i){for(let e=0;e<i;e+=3)if(this.actions[e]==t)return i;return this.actions[i++]=t,this.actions[i++]=e,this.actions[i++]=s,i}addActions(t,e,s,i){let{state:r}=t,{parser:h}=t.p,{data:n}=h;for(let t=0;t<2;t++)for(let o=h.stateSlot(r,t?2:1);;o+=3){if(65535==n[o]){if(1!=n[o+1]){0==i&&2==n[o+1]&&(i=this.putAction(B(n,o+2),e,s,i));break}o=B(n,o+2)}n[o]==e&&(i=this.putAction(B(n,o+1),e,s,i))}return i}}class T{constructor(t,e,s,i){this.parser=t,this.input=e,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new d(e,i),this.tokens=new y(t,this.stream),this.topTerm=t.top[1];let{from:r}=i[0];this.stacks=[o.start(this,t.top[0],r)],this.fragments=s.length&&this.stream.end-r>4*t.bufferLength?new C(s,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t,e,s=this.stacks,i=this.minStackPos,r=this.stacks=[];if(this.bigReductionCount>300&&1==s.length){let[t]=s;for(;t.forceReduce()&&t.stack.length&&t.stack[t.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let h=0;h<s.length;h++){let n=s[h];for(;;){if(this.tokens.mainToken=null,n.pos>i)r.push(n);else{if(this.advanceStack(n,r,s))continue;{t||(t=[],e=[]),t.push(n);let s=this.tokens.getMainToken(n);e.push(s.value,s.end)}}break}}if(!r.length){let e=t&&function(t){let e=null;for(let s of t){let t=s.p.stoppedAt;(s.pos==s.p.stream.end||null!=t&&s.pos>t)&&s.p.parser.stateFlag(s.state,2)&&(!e||e.score<s.score)&&(e=s)}return e}(t);if(e)return v&&console.log("Finish with "+this.stackID(e)),this.stackToTree(e);if(this.parser.strict)throw v&&t&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+i);this.recovering||(this.recovering=5)}if(this.recovering&&t){let s=null!=this.stoppedAt&&t[0].pos>this.stoppedAt?t[0]:this.runRecovery(t,e,r);if(s)return v&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let t=1==this.recovering?1:3*this.recovering;if(r.length>t)for(r.sort((t,e)=>e.score-t.score);r.length>t;)r.pop();r.some(t=>t.reducePos>i)&&this.recovering--}else if(r.length>1){t:for(let t=0;t<r.length-1;t++){let e=r[t];for(let s=t+1;s<r.length;s++){let i=r[s];if(e.sameState(i)||e.buffer.length>500&&i.buffer.length>500){if(!((e.score-i.score||e.buffer.length-i.buffer.length)>0)){r.splice(t--,1);continue t}r.splice(s--,1)}}}r.length>12&&(r.sort((t,e)=>e.score-t.score),r.splice(12,r.length-12))}this.minStackPos=r[0].pos;for(let t=1;t<r.length;t++)r[t].pos<this.minStackPos&&(this.minStackPos=r[t].pos);return null}stopAt(t){if(null!=this.stoppedAt&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,e,s){let i=t.pos,{parser:n}=this,o=v?this.stackID(t)+" -> ":"";if(null!=this.stoppedAt&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let e=t.curContext&&t.curContext.tracker.strict,s=e?t.curContext.hash:0;for(let a=this.fragments.nodeAt(i);a;){let i=this.parser.nodeSet.types[a.type.id]==a.type?n.getGoto(t.state,a.type.id):-1;if(i>-1&&a.length&&(!e||(a.prop(r.contextHash)||0)==s))return t.useNode(a,i),v&&console.log(o+this.stackID(t)+` (via reuse of ${n.getName(a.type.id)})`),!0;if(!(a instanceof h)||0==a.children.length||a.positions[0]>0)break;let l=a.children[0];if(!(l instanceof h&&0==a.positions[0]))break;a=l}}let a=n.stateSlot(t.state,4);if(a>0)return t.reduce(a),v&&console.log(o+this.stackID(t)+` (via always-reduce ${n.getName(65535&a)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let r=0;r<l.length;){let h=l[r++],a=l[r++],c=l[r++],u=r==l.length||!s,f=u?t:t.split(),p=this.tokens.mainToken;if(f.apply(h,a,p?p.start:f.pos,c),v&&console.log(o+this.stackID(f)+` (via ${65536&h?`reduce of ${n.getName(65535&h)}`:"shift"} for ${n.getName(a)} @ ${i}${f==t?"":", split"})`),u)return!0;f.pos>i?e.push(f):s.push(f)}return!1}advanceFully(t,e){let s=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>s)return w(t,e),!0}}runRecovery(t,e,s){let i=null,r=!1;for(let h=0;h<t.length;h++){let n=t[h],o=e[h<<1],a=e[1+(h<<1)],l=v?this.stackID(n)+" -> ":"";if(n.deadEnd){if(r)continue;if(r=!0,n.restart(),v&&console.log(l+this.stackID(n)+" (restarted)"),this.advanceFully(n,s))continue}let c=n.split(),u=l;for(let t=0;t<10&&c.forceReduce();t++){if(v&&console.log(u+this.stackID(c)+" (via force-reduce)"),this.advanceFully(c,s))break;v&&(u=this.stackID(c)+" -> ")}for(let t of n.recoverByInsert(o))v&&console.log(l+this.stackID(t)+" (via recover-insert)"),this.advanceFully(t,s);this.stream.end>n.pos?(a==n.pos&&(a++,o=0),n.recoverByDelete(o,a),v&&console.log(l+this.stackID(n)+` (via recover-delete ${this.parser.getName(o)})`),w(n,s)):(!i||i.score<c.score)&&(i=c)}return i}stackToTree(t){return t.close(),h.build({buffer:c.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let e=(P||(P=new WeakMap)).get(t);return e||P.set(t,e=String.fromCodePoint(this.nextStackID++)),e+t}}function w(t,e){for(let s=0;s<e.length;s++){let i=e[s];if(i.pos==t.pos&&i.sameState(t))return void(e[s].score<t.score&&(e[s]=t))}e.push(t)}class N{constructor(t,e,s){this.source=t,this.flags=e,this.disabled=s}allows(t){return!this.disabled||0==this.disabled[t]}}const R=t=>t;class z{constructor(t){this.start=t.start,this.shift=t.shift||R,this.reduce=t.reduce||R,this.reuse=t.reuse||R,this.hash=t.hash||(()=>0),this.strict=!1!==t.strict}}class I extends t{constructor(t){if(super(),this.wrappers=[],14!=t.version)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let h=t.nodeNames.split(" ");this.minRepeatTerm=h.length;for(let e=0;e<t.repeatNodeCount;e++)h.push("");let n=Object.keys(t.topRules).map(e=>t.topRules[e][1]),o=[];for(let t=0;t<h.length;t++)o.push([]);function a(t,e,s){o[t].push([e,e.deserialize(String(s))])}if(t.nodeProps)for(let e of t.nodeProps){let t=e[0];"string"==typeof t&&(t=r[t]);for(let s=1;s<e.length;){let i=e[s++];if(i>=0)a(i,t,e[s++]);else{let r=e[s+-i];for(let h=-i;h>0;h--)a(e[s++],t,r);s++}}}this.nodeSet=new e(h.map((e,i)=>s.define({name:i>=this.minRepeatTerm?void 0:e,id:i,props:o[i],top:n.indexOf(i)>-1,error:0==i,skipped:t.skippedNodes&&t.skippedNodes.indexOf(i)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=i;let l=u(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let t=0;t<this.specializerSpecs.length;t++)this.specialized[t]=this.specializerSpecs[t].term;this.specializers=this.specializerSpecs.map(D),this.states=u(t.states,Uint32Array),this.data=u(t.stateData),this.goto=u(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(t=>"number"==typeof t?new k(l,t):t),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,s){let i=new T(this,t,e,s);for(let r of this.wrappers)i=r(i,t,e,s);return i}getGoto(t,e,s=!1){let i=this.goto;if(e>=i[0])return-1;for(let r=i[e+1];;){let e=i[r++],h=1&e,n=i[r++];if(h&&s)return n;for(let s=r+(e>>1);r<s;r++)if(i[r]==t)return n;if(h)return-1}}hasAction(t,e){let s=this.data;for(let i=0;i<2;i++)for(let r,h=this.stateSlot(t,i?2:1);;h+=3){if(65535==(r=s[h])){if(1!=s[h+1]){if(2==s[h+1])return B(s,h+2);break}r=s[h=B(s,h+2)]}if(r==e||0==r)return B(s,h+1)}return 0}stateSlot(t,e){return this.states[6*t+e]}stateFlag(t,e){return(this.stateSlot(t,0)&e)>0}validAction(t,e){return!!this.allActions(t,t=>t==e||null)}allActions(t,e){let s=this.stateSlot(t,4),i=s?e(s):void 0;for(let s=this.stateSlot(t,1);null==i;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=B(this.data,s+2)}i=e(B(this.data,s+1))}return i}nextStates(t){let e=[];for(let s=this.stateSlot(t,1);;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=B(this.data,s+2)}if(!(1&this.data[s+2])){let t=this.data[s+1];e.some((e,s)=>1&s&&e==t)||e.push(this.data[s],t)}}return e}configure(t){let e=Object.assign(Object.create(I.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let s=this.topRules[t.top];if(!s)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=s}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(e=>{let s=t.tokenizers.find(t=>t.from==e);return s?s.to:e})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((s,i)=>{let r=t.specializers.find(t=>t.from==s.external);if(!r)return s;let h=Object.assign(Object.assign({},s),{external:r.to});return e.specializers[i]=D(h),h})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),null!=t.strict&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),null!=t.bufferLength&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return null==e?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),s=e.map(()=>!1);if(t)for(let i of t.split(" ")){let t=e.indexOf(i);t>=0&&(s[t]=!0)}let i=null;for(let t=0;t<e.length;t++)if(!s[t])for(let s,r=this.dialects[e[t]];65535!=(s=this.data[r++]);)(i||(i=new Uint8Array(this.maxTerm+1)))[s]=1;return new N(t,s,i)}static deserialize(t){return new I(t)}}function B(t,e){return t[e]|t[e+1]<<16}function D(t){if(t.external){let e=t.extend?1:0;return(s,i)=>t.external(s,i)<<1|e}return t.get}export{z as C,m as E,I as L,g as a};
1
+ import{P as t,N as e,a as s,D as i,b as r,T as h,I as n}from"./basic-setup-DtpgwOSH.js";class o{constructor(t,e,s,i,r,h,n,o,a,l=0,c){this.p=t,this.stack=e,this.state=s,this.reducePos=i,this.pos=r,this.score=h,this.buffer=n,this.bufferBase=o,this.curContext=a,this.lookAhead=l,this.parent=c}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,s=0){let i=t.parser.context;return new o(t,[],e,s,s,0,[],0,i?new a(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let s=t>>19,i=65535&t,{parser:r}=this.p,h=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),n=r.dynamicPrecedence(i);if(n&&(this.score+=n),0==s)return this.pushState(r.getGoto(this.state,i,!0),this.reducePos),i<r.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,h?8:4,!0),void this.reduceContext(i,this.reducePos);let o=this.stack.length-3*(s-1)-(262144&t?6:0),a=o?this.stack[o-2]:this.p.ranges[0].from,l=this.reducePos-a;l>=2e3&&!(null===(e=this.p.parser.nodeSet.types[i])||void 0===e?void 0:e.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=l):this.p.lastBigReductionSize<l&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=a,this.p.lastBigReductionSize=l));let c=o?this.stack[o-1]:0,u=this.bufferBase+this.buffer.length-c;if(i<r.minRepeatTerm||131072&t){let t=r.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,a,t,u+4,!0)}if(262144&t)this.state=this.stack[o];else{let t=this.stack[o-3];this.state=r.getGoto(t,i,!0)}for(;this.stack.length>o;)this.stack.pop();this.reduceContext(i,a)}storeNode(t,e,s,i=4,r=!1){if(0==t&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let t=this,i=this.buffer.length;if(0==i&&t.parent&&(i=t.bufferBase-t.parent.bufferBase,t=t.parent),i>0&&0==t.buffer[i-4]&&t.buffer[i-1]>-1){if(e==s)return;if(t.buffer[i-2]>=e)return void(t.buffer[i-2]=s)}}if(r&&this.pos!=s){let r=this.buffer.length;if(r>0&&(0!=this.buffer[r-4]||this.buffer[r-1]<0)){let t=!1;for(let e=r;e>0&&this.buffer[e-2]>s;e-=4)if(this.buffer[e-1]>=0){t=!0;break}if(t)for(;r>0&&this.buffer[r-2]>s;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,i>4&&(i-=4)}this.buffer[r]=t,this.buffer[r+1]=e,this.buffer[r+2]=s,this.buffer[r+3]=i}else this.buffer.push(t,e,s,i)}shift(t,e,s,i){if(131072&t)this.pushState(65535&t,this.pos);else if(262144&t)this.pos=i,this.shiftContext(e,s),e<=this.p.parser.maxNode&&this.buffer.push(e,s,i,4);else{let r=t,{parser:h}=this.p;this.pos=i;let n=h.stateFlag(r,1);!n&&(i>s||e<=h.maxNode)&&(this.reducePos=i),this.pushState(r,n?s:Math.min(s,this.reducePos)),this.shiftContext(e,s),e<=h.maxNode&&this.buffer.push(e,s,i,4)}}apply(t,e,s,i){65536&t?this.reduce(t):this.shift(t,e,s,i)}useNode(t,e){let s=this.p.reused.length-1;(s<0||this.p.reused[s]!=t)&&(this.p.reused.push(t),s++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(e,i),this.buffer.push(s,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(;e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let s=t.buffer.slice(e),i=t.bufferBase+e;for(;t&&i==t.bufferBase;)t=t.parent;return new o(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let s=t<=this.p.parser.maxNode;s&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,s?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new l(this);;){let s=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(0==s)return!1;if(!(65536&s))return!0;e.reduce(s)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let s=[];for(let i,r=0;r<e.length;r+=2)(i=e[r+1])!=this.state&&this.p.parser.hasAction(i,t)&&s.push(e[r],i);if(this.stack.length<120)for(let t=0;s.length<8&&t<e.length;t+=2){let i=e[t+1];s.some((t,e)=>1&e&&t==i)||s.push(e[t],i)}e=s}let s=[];for(let t=0;t<e.length&&s.length<4;t+=2){let i=e[t+1];if(i==this.state)continue;let r=this.split();r.pushState(i,this.pos),r.storeNode(0,r.pos,r.pos,4,!0),r.shiftContext(e[t],this.pos),r.reducePos=this.pos,r.score-=200,s.push(r)}return s}forceReduce(){let{parser:t}=this.p,e=t.stateSlot(this.state,5);if(!(65536&e))return!1;if(!t.validAction(this.state,e)){let s=e>>19,i=65535&e,r=this.stack.length-3*s;if(r<0||t.getGoto(this.stack[r],i,!1)<0){let t=this.findForcedReduction();if(null==t)return!1;e=t}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],s=(i,r)=>{if(!e.includes(i))return e.push(i),t.allActions(i,e=>{if(393216&e);else if(65536&e){let s=(e>>19)-r;if(s>1){let i=65535&e,r=this.stack.length-3*s;if(r>=0&&t.getGoto(this.stack[r],i,!1)>=0)return s<<19|65536|i}}else{let t=s(e,r+1);if(null!=t)return t}})};return s(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:t}=this.p;return 65535==t.data[t.stateSlot(this.state,1)]&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;e<this.stack.length;e+=3)if(this.stack[e]!=t.stack[e])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(e)))}reduceContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(e)))}emitContext(){let t=this.buffer.length-1;(t<0||-3!=this.buffer[t])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||-4!=this.buffer[t])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let e=new a(this.curContext.tracker,t);e.hash!=this.curContext.hash&&this.emitContext(),this.curContext=e}}setLookAhead(t){return!(t<=this.lookAhead)&&(this.emitLookAhead(),this.lookAhead=t,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class a{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class l{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=65535&t,s=t>>19;0==s?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(s-1);let i=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=i}}class c{constructor(t,e,s){this.stack=t,this.pos=e,this.index=s,this.buffer=t.buffer,0==this.index&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new c(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;null!=t&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new c(this.stack,this.pos,this.index)}}function u(t,e=Uint16Array){if("string"!=typeof t)return t;let s=null;for(let i=0,r=0;i<t.length;){let h=0;for(;;){let e=t.charCodeAt(i++),s=!1;if(126==e){h=65535;break}e>=92&&e--,e>=34&&e--;let r=e-32;if(r>=46&&(r-=46,s=!0),h+=r,s)break;h*=46}s?s[r++]=h:s=new e(h)}return s}class f{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const p=new f;class d{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=p,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let s=this.range,i=this.rangeIndex,r=this.pos+t;for(;r<s.from;){if(!i)return null;let t=this.ranges[--i];r-=s.from-t.to,s=t}for(;e<0?r>s.to:r>=s.to;){if(i==this.ranges.length-1)return null;let t=this.ranges[++i];r+=t.from-s.to,s=t}return r}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let e of this.ranges)if(e.to>t)return Math.max(t,e.from);return this.end}peek(t){let e,s,i=this.chunkOff+t;if(i>=0&&i<this.chunk.length)e=this.pos+t,s=this.chunk.charCodeAt(i);else{let i=this.resolveOffset(t,1);if(null==i)return-1;if(e=i,e>=this.chunk2Pos&&e<this.chunk2Pos+this.chunk2.length)s=this.chunk2.charCodeAt(e-this.chunk2Pos);else{let t=this.rangeIndex,i=this.range;for(;i.to<=e;)i=this.ranges[++t];this.chunk2=this.input.chunk(this.chunk2Pos=e),e+this.chunk2.length>i.to&&(this.chunk2=this.chunk2.slice(0,i.to-e)),s=this.chunk2.charCodeAt(0)}}return e>=this.token.lookAhead&&(this.token.lookAhead=e+1),s}acceptToken(t,e=0){let s=e?this.resolveOffset(e,-1):this.pos;if(null==s||s<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=s}acceptTokenTo(t,e){this.token.value=t,this.token.end=e}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:e}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=e,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),e=this.pos+t.length;this.chunk=e>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=p,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,e){if(t>=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let s="";for(let i of this.ranges){if(i.from>=e)break;i.to>t&&(s+=this.input.read(Math.max(i.from,t),Math.min(i.to,e)))}return s}}class k{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:s}=e.p;x(this.data,t,e,this.id,s.data,s.tokenPrecTable)}}k.prototype.contextual=k.prototype.fallback=k.prototype.extend=!1;class g{constructor(t,e,s){this.precTable=e,this.elseToken=s,this.data="string"==typeof t?u(t):t}token(t,e){let s=t.pos,i=0;for(;;){let s=t.next<0,r=t.resolveOffset(1,1);if(x(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(null==this.elseToken)return;if(s||i++,null==r)break;t.reset(r,t.token)}i&&(t.reset(s,t.token),t.acceptToken(this.elseToken,i))}}g.prototype.contextual=k.prototype.fallback=k.prototype.extend=!1;class m{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function x(t,e,s,i,r,h){let n=0,o=1<<i,{dialect:a}=s.p.parser;t:for(;0!=(o&t[n]);){let s=t[n+1];for(let i=n+3;i<s;i+=2)if((t[i+1]&o)>0){let s=t[i];if(a.allows(s)&&(-1==e.token.value||e.token.value==s||S(s,e.token.value,r,h))){e.acceptToken(s);break}}let i=e.next,l=0,c=t[n+2];if(!(e.next<0&&c>l&&65535==t[s+3*c-3])){for(;l<c;){let r=l+c>>1,h=s+r+(r<<1),o=t[h],a=t[h+1]||65536;if(i<o)c=r;else{if(!(i>=a)){n=t[h+2],e.advance();continue t}l=r+1}}break}n=t[s+3*c-1]}}function b(t,e,s){for(let i,r=e;65535!=(i=t[r]);r++)if(i==s)return r-e;return-1}function S(t,e,s,i){let r=b(s,i,e);return r<0||b(s,i,t)<r}const v="undefined"!=typeof process&&process.env&&/\bparse\b/.test(process.env.LOG);let P=null;function A(t,e,s){let i=t.cursor(n.IncludeAnonymous);for(i.moveTo(e);;)if(!(s<0?i.childBefore(e):i.childAfter(e)))for(;;){if((s<0?i.to<e:i.from>e)&&!i.type.isError)return s<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(t.length,Math.max(i.from+1,e+25));if(s<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return s<0?0:t.length}}class C{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?A(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?A(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let e=this.trees.length-1;if(e<0)return this.nextFragment(),null;let s=this.trees[e],i=this.index[e];if(i==s.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let n=s.children[i],o=this.start[e]+s.positions[i];if(o>t)return this.nextStart=o,null;if(n instanceof h){if(o==t){if(o<this.safeFrom)return null;let t=o+n.length;if(t<=this.safeTo){let e=n.prop(r.lookAhead);if(!e||t+e<this.fragment.to)return n}}this.index[e]++,o+n.length>=Math.max(this.safeFrom,t)&&(this.trees.push(n),this.start.push(o),this.index.push(0))}else this.index[e]++,this.nextStart=o+n.length}}}class y{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(t=>new f)}getActions(t){let e=0,s=null,{parser:i}=t.p,{tokenizers:r}=i,h=i.stateSlot(t.state,3),n=t.curContext?t.curContext.hash:0,o=0;for(let i=0;i<r.length;i++){if(!(1<<i&h))continue;let a=r[i],l=this.tokens[i];if((!s||a.fallback)&&((a.contextual||l.start!=t.pos||l.mask!=h||l.context!=n)&&(this.updateCachedToken(l,a,t),l.mask=h,l.context=n),l.lookAhead>l.end+25&&(o=Math.max(l.lookAhead,o)),0!=l.value)){let i=e;if(l.extended>-1&&(e=this.addActions(t,l.extended,l.end,e)),e=this.addActions(t,l.value,l.end,e),!a.extend&&(s=l,e>i))break}}for(;this.actions.length>e;)this.actions.pop();return o&&t.setLookAhead(o),s||t.pos!=this.stream.end||(s=new f,s.value=t.p.parser.eofTerm,s.start=s.end=t.pos,e=this.addActions(t,s.value,s.end,e)),this.mainToken=s,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new f,{pos:s,p:i}=t;return e.start=s,e.end=Math.min(s+1,i.stream.end),e.value=s==i.stream.end?i.parser.eofTerm:0,e}updateCachedToken(t,e,s){let i=this.stream.clipPos(s.pos);if(e.token(this.stream.reset(i,t),s),t.value>-1){let{parser:e}=s.p;for(let i=0;i<e.specialized.length;i++)if(e.specialized[i]==t.value){let r=e.specializers[i](this.stream.read(t.start,t.end),s);if(r>=0&&s.p.parser.dialect.allows(r>>1)){1&r?t.extended=r>>1:t.value=r>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,e,s,i){for(let e=0;e<i;e+=3)if(this.actions[e]==t)return i;return this.actions[i++]=t,this.actions[i++]=e,this.actions[i++]=s,i}addActions(t,e,s,i){let{state:r}=t,{parser:h}=t.p,{data:n}=h;for(let t=0;t<2;t++)for(let o=h.stateSlot(r,t?2:1);;o+=3){if(65535==n[o]){if(1!=n[o+1]){0==i&&2==n[o+1]&&(i=this.putAction(B(n,o+2),e,s,i));break}o=B(n,o+2)}n[o]==e&&(i=this.putAction(B(n,o+1),e,s,i))}return i}}class T{constructor(t,e,s,i){this.parser=t,this.input=e,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new d(e,i),this.tokens=new y(t,this.stream),this.topTerm=t.top[1];let{from:r}=i[0];this.stacks=[o.start(this,t.top[0],r)],this.fragments=s.length&&this.stream.end-r>4*t.bufferLength?new C(s,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t,e,s=this.stacks,i=this.minStackPos,r=this.stacks=[];if(this.bigReductionCount>300&&1==s.length){let[t]=s;for(;t.forceReduce()&&t.stack.length&&t.stack[t.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let h=0;h<s.length;h++){let n=s[h];for(;;){if(this.tokens.mainToken=null,n.pos>i)r.push(n);else{if(this.advanceStack(n,r,s))continue;{t||(t=[],e=[]),t.push(n);let s=this.tokens.getMainToken(n);e.push(s.value,s.end)}}break}}if(!r.length){let e=t&&function(t){let e=null;for(let s of t){let t=s.p.stoppedAt;(s.pos==s.p.stream.end||null!=t&&s.pos>t)&&s.p.parser.stateFlag(s.state,2)&&(!e||e.score<s.score)&&(e=s)}return e}(t);if(e)return v&&console.log("Finish with "+this.stackID(e)),this.stackToTree(e);if(this.parser.strict)throw v&&t&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+i);this.recovering||(this.recovering=5)}if(this.recovering&&t){let s=null!=this.stoppedAt&&t[0].pos>this.stoppedAt?t[0]:this.runRecovery(t,e,r);if(s)return v&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let t=1==this.recovering?1:3*this.recovering;if(r.length>t)for(r.sort((t,e)=>e.score-t.score);r.length>t;)r.pop();r.some(t=>t.reducePos>i)&&this.recovering--}else if(r.length>1){t:for(let t=0;t<r.length-1;t++){let e=r[t];for(let s=t+1;s<r.length;s++){let i=r[s];if(e.sameState(i)||e.buffer.length>500&&i.buffer.length>500){if(!((e.score-i.score||e.buffer.length-i.buffer.length)>0)){r.splice(t--,1);continue t}r.splice(s--,1)}}}r.length>12&&(r.sort((t,e)=>e.score-t.score),r.splice(12,r.length-12))}this.minStackPos=r[0].pos;for(let t=1;t<r.length;t++)r[t].pos<this.minStackPos&&(this.minStackPos=r[t].pos);return null}stopAt(t){if(null!=this.stoppedAt&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,e,s){let i=t.pos,{parser:n}=this,o=v?this.stackID(t)+" -> ":"";if(null!=this.stoppedAt&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let e=t.curContext&&t.curContext.tracker.strict,s=e?t.curContext.hash:0;for(let a=this.fragments.nodeAt(i);a;){let i=this.parser.nodeSet.types[a.type.id]==a.type?n.getGoto(t.state,a.type.id):-1;if(i>-1&&a.length&&(!e||(a.prop(r.contextHash)||0)==s))return t.useNode(a,i),v&&console.log(o+this.stackID(t)+` (via reuse of ${n.getName(a.type.id)})`),!0;if(!(a instanceof h)||0==a.children.length||a.positions[0]>0)break;let l=a.children[0];if(!(l instanceof h&&0==a.positions[0]))break;a=l}}let a=n.stateSlot(t.state,4);if(a>0)return t.reduce(a),v&&console.log(o+this.stackID(t)+` (via always-reduce ${n.getName(65535&a)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let r=0;r<l.length;){let h=l[r++],a=l[r++],c=l[r++],u=r==l.length||!s,f=u?t:t.split(),p=this.tokens.mainToken;if(f.apply(h,a,p?p.start:f.pos,c),v&&console.log(o+this.stackID(f)+` (via ${65536&h?`reduce of ${n.getName(65535&h)}`:"shift"} for ${n.getName(a)} @ ${i}${f==t?"":", split"})`),u)return!0;f.pos>i?e.push(f):s.push(f)}return!1}advanceFully(t,e){let s=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>s)return w(t,e),!0}}runRecovery(t,e,s){let i=null,r=!1;for(let h=0;h<t.length;h++){let n=t[h],o=e[h<<1],a=e[1+(h<<1)],l=v?this.stackID(n)+" -> ":"";if(n.deadEnd){if(r)continue;if(r=!0,n.restart(),v&&console.log(l+this.stackID(n)+" (restarted)"),this.advanceFully(n,s))continue}let c=n.split(),u=l;for(let t=0;t<10&&c.forceReduce();t++){if(v&&console.log(u+this.stackID(c)+" (via force-reduce)"),this.advanceFully(c,s))break;v&&(u=this.stackID(c)+" -> ")}for(let t of n.recoverByInsert(o))v&&console.log(l+this.stackID(t)+" (via recover-insert)"),this.advanceFully(t,s);this.stream.end>n.pos?(a==n.pos&&(a++,o=0),n.recoverByDelete(o,a),v&&console.log(l+this.stackID(n)+` (via recover-delete ${this.parser.getName(o)})`),w(n,s)):(!i||i.score<c.score)&&(i=c)}return i}stackToTree(t){return t.close(),h.build({buffer:c.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let e=(P||(P=new WeakMap)).get(t);return e||P.set(t,e=String.fromCodePoint(this.nextStackID++)),e+t}}function w(t,e){for(let s=0;s<e.length;s++){let i=e[s];if(i.pos==t.pos&&i.sameState(t))return void(e[s].score<t.score&&(e[s]=t))}e.push(t)}class N{constructor(t,e,s){this.source=t,this.flags=e,this.disabled=s}allows(t){return!this.disabled||0==this.disabled[t]}}const R=t=>t;class z{constructor(t){this.start=t.start,this.shift=t.shift||R,this.reduce=t.reduce||R,this.reuse=t.reuse||R,this.hash=t.hash||(()=>0),this.strict=!1!==t.strict}}class I extends t{constructor(t){if(super(),this.wrappers=[],14!=t.version)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let h=t.nodeNames.split(" ");this.minRepeatTerm=h.length;for(let e=0;e<t.repeatNodeCount;e++)h.push("");let n=Object.keys(t.topRules).map(e=>t.topRules[e][1]),o=[];for(let t=0;t<h.length;t++)o.push([]);function a(t,e,s){o[t].push([e,e.deserialize(String(s))])}if(t.nodeProps)for(let e of t.nodeProps){let t=e[0];"string"==typeof t&&(t=r[t]);for(let s=1;s<e.length;){let i=e[s++];if(i>=0)a(i,t,e[s++]);else{let r=e[s+-i];for(let h=-i;h>0;h--)a(e[s++],t,r);s++}}}this.nodeSet=new e(h.map((e,i)=>s.define({name:i>=this.minRepeatTerm?void 0:e,id:i,props:o[i],top:n.indexOf(i)>-1,error:0==i,skipped:t.skippedNodes&&t.skippedNodes.indexOf(i)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=i;let l=u(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let t=0;t<this.specializerSpecs.length;t++)this.specialized[t]=this.specializerSpecs[t].term;this.specializers=this.specializerSpecs.map(D),this.states=u(t.states,Uint32Array),this.data=u(t.stateData),this.goto=u(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(t=>"number"==typeof t?new k(l,t):t),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,s){let i=new T(this,t,e,s);for(let r of this.wrappers)i=r(i,t,e,s);return i}getGoto(t,e,s=!1){let i=this.goto;if(e>=i[0])return-1;for(let r=i[e+1];;){let e=i[r++],h=1&e,n=i[r++];if(h&&s)return n;for(let s=r+(e>>1);r<s;r++)if(i[r]==t)return n;if(h)return-1}}hasAction(t,e){let s=this.data;for(let i=0;i<2;i++)for(let r,h=this.stateSlot(t,i?2:1);;h+=3){if(65535==(r=s[h])){if(1!=s[h+1]){if(2==s[h+1])return B(s,h+2);break}r=s[h=B(s,h+2)]}if(r==e||0==r)return B(s,h+1)}return 0}stateSlot(t,e){return this.states[6*t+e]}stateFlag(t,e){return(this.stateSlot(t,0)&e)>0}validAction(t,e){return!!this.allActions(t,t=>t==e||null)}allActions(t,e){let s=this.stateSlot(t,4),i=s?e(s):void 0;for(let s=this.stateSlot(t,1);null==i;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=B(this.data,s+2)}i=e(B(this.data,s+1))}return i}nextStates(t){let e=[];for(let s=this.stateSlot(t,1);;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=B(this.data,s+2)}if(!(1&this.data[s+2])){let t=this.data[s+1];e.some((e,s)=>1&s&&e==t)||e.push(this.data[s],t)}}return e}configure(t){let e=Object.assign(Object.create(I.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let s=this.topRules[t.top];if(!s)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=s}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(e=>{let s=t.tokenizers.find(t=>t.from==e);return s?s.to:e})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((s,i)=>{let r=t.specializers.find(t=>t.from==s.external);if(!r)return s;let h=Object.assign(Object.assign({},s),{external:r.to});return e.specializers[i]=D(h),h})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),null!=t.strict&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),null!=t.bufferLength&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return null==e?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),s=e.map(()=>!1);if(t)for(let i of t.split(" ")){let t=e.indexOf(i);t>=0&&(s[t]=!0)}let i=null;for(let t=0;t<e.length;t++)if(!s[t])for(let s,r=this.dialects[e[t]];65535!=(s=this.data[r++]);)(i||(i=new Uint8Array(this.maxTerm+1)))[s]=1;return new N(t,s,i)}static deserialize(t){return new I(t)}}function B(t,e){return t[e]|t[e+1]<<16}function D(t){if(t.external){let e=t.extend?1:0;return(s,i)=>t.external(s,i)<<1|e}return t.get}export{z as C,m as E,I as L,g as a};