@juki-team/base-ui 1.5.14 → 1.5.16

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 (260) hide show
  1. package/dist/esm/ArrowForwardIcon-BIC54sbk.js +1 -0
  2. package/dist/esm/BarChart-54h6GU3p.js +1 -0
  3. package/dist/esm/{CartesianChart-DCv2SXML.js → CartesianChart-cNl_tqN9.js} +1 -1
  4. package/dist/esm/ChangePasswordModal-DGIG264-.js +1 -0
  5. package/dist/esm/CodeEditor-C5-1AgZR.js +1 -0
  6. package/dist/esm/CodeViewer-CQrzGpJT.js +1 -0
  7. package/dist/esm/Collapse-Cx9QTKZD.js +1 -0
  8. package/dist/esm/{DataGrid-1GBbtJPo.js → DataGrid-Bu-7Atkf.js} +1 -1
  9. package/dist/esm/DataViewer-Cv0iOPJ_.js +1 -0
  10. package/dist/esm/DrawerView-Cbw3l2O7.js +1 -0
  11. package/dist/esm/ExcalidrawButton-zJFah1nC.js +1 -0
  12. package/dist/esm/GraphvizViewer-DsTGulG0.js +1 -0
  13. package/dist/esm/ImageLoaderCropper-Bk1LxSbD.js +1 -0
  14. package/dist/esm/InputCellPhoneNumber-BaFBGcAe.js +1 -0
  15. package/dist/esm/{InputColor-UJ28fLOn.js → InputColor-DhUlWGSD.js} +1 -1
  16. package/dist/esm/LineChart-BQ1UY4l8.js +1 -0
  17. package/dist/esm/{LoaderLayer-CyitSTCe.js → LoaderLayer-aKmuHFys.js} +1 -1
  18. package/dist/esm/MdMath-DvH_O_A3.js +1 -0
  19. package/dist/esm/{MdMathEditor-DWwwX_SO.js → MdMathEditor-4-bjr11C.js} +1 -1
  20. package/dist/esm/{Popover-CmhtPayh.js → Popover-C0pozkRR.js} +1 -1
  21. package/dist/esm/ReplyIcon-DFPc1kie.js +1 -0
  22. package/dist/esm/{SettingsIcon-CegP07CF.js → SettingsIcon-P_1rE3U0.js} +1 -1
  23. package/dist/esm/SlideDeck-0cxhxG3b.js +1 -0
  24. package/dist/esm/{TableEyeIcon-C4nuk_xp.js → TableEyeIcon-5qDbI7lU.js} +1 -1
  25. package/dist/esm/{TableOfContents-B7API9_v.js → TableOfContents-DG7lfEl8.js} +1 -1
  26. package/dist/esm/Tooltip-OI-qyixa.js +1 -0
  27. package/dist/esm/UserCodeEditor-XI5CMxYI.js +61 -0
  28. package/dist/esm/VirtualizedRowsFixed-DH6WrMq1.js +1 -0
  29. package/dist/esm/WorksheetAsSlides-vK1Nqrlr.js +1 -0
  30. package/dist/esm/{WorksheetBodies-dstnMykc.js → WorksheetBodies-AupmhX--.js} +1 -1
  31. package/dist/esm/WorksheetContents-RcU2Wigz.js +1 -0
  32. package/dist/esm/WorksheetEditor-BExsBWi8.js +1 -0
  33. package/dist/esm/WorksheetNode-BTU0R61c.js +1 -0
  34. package/dist/esm/WorksheetViewer-Bn_SoOic.js +1 -0
  35. package/dist/esm/abnfDiagram-WEYOIA3C-Dpw6XMB5.js +1 -0
  36. package/dist/esm/{arc-DomqdCJb.js → arc-CVDK40Ip.js} +1 -1
  37. package/dist/esm/architectureDiagram-ZHVYKT53-CwRCJS-f.js +1 -0
  38. package/dist/esm/blockDiagram-RJAE7QA3-BsveJL2h.js +1 -0
  39. package/dist/esm/c4Diagram-XDPPPE54-DT_YwSdM.js +1 -0
  40. package/dist/esm/channel-DfU2WyO4.js +1 -0
  41. package/dist/esm/{chunk-2E7WHVMD-Beocb-Jh.js → chunk-2E7WHVMD-CDFgC3vV.js} +1 -1
  42. package/dist/esm/{chunk-2Q5K7J3B-BvYoUWYj.js → chunk-2Q5K7J3B-kc9wbXRi.js} +1 -1
  43. package/dist/esm/{chunk-4EMNKR2T-CwTwaoZv.js → chunk-4EMNKR2T-BOCYiV20.js} +1 -1
  44. package/dist/esm/{chunk-55XCU76K-Bm2vEyhO.js → chunk-55XCU76K-B9fq0Aas.js} +1 -1
  45. package/dist/esm/{chunk-5VM5RSS4-bDfGkvI-.js → chunk-5VM5RSS4-BiSpRiw9.js} +1 -1
  46. package/dist/esm/{chunk-JWPE2WC7-WoJ0Gwzc.js → chunk-JWPE2WC7-fUi3mFpq.js} +1 -1
  47. package/dist/esm/{chunk-NQOKRVIF-BsYoUZL4.js → chunk-NQOKRVIF-9yhnn9l0.js} +1 -1
  48. package/dist/esm/{chunk-VQ5W62QI-BTvKzH75.js → chunk-VQ5W62QI-k74sEYFL.js} +1 -1
  49. package/dist/esm/{chunk-XXDRQBXY-ClHdtw3t.js → chunk-XXDRQBXY-DJJHL2aw.js} +1 -1
  50. package/dist/esm/{chunk-ZCHMQSOR-BuzD1sYe.js → chunk-ZCHMQSOR-DZxET8Hs.js} +1 -1
  51. package/dist/esm/classDiagram-v2-4MYWR3UA-Ccw8sMnD.js +1 -0
  52. package/dist/esm/{commons-CmbPiYDE.js → commons-Bam9oxAR.js} +1 -1
  53. package/dist/esm/constants.js +1 -1
  54. package/dist/esm/cose-bilkent-JH36ORCC-iT9n9qMD.js +1 -0
  55. package/dist/esm/cynefinDiagram-WF24UDRP-COkkadSX.js +1 -0
  56. package/dist/esm/dagre-NK4GIZVX-B2jYnU0Q.js +1 -0
  57. package/dist/esm/diagram-CBK3MWTC-DzCzOobH.js +1 -0
  58. package/dist/esm/diagram-I5XIIV2D-ChGPyzwT.js +1 -0
  59. package/dist/esm/diagram-ODIL2UCW-_jTs4ZGf.js +1 -0
  60. package/dist/esm/diagram-PFBEJUXE-C66lVsSz.js +1 -0
  61. package/dist/esm/diagram-RJA3I4VV-QELSA6fF.js +1 -0
  62. package/dist/esm/diagram-TYUNFSNR-Be-cdxPq.js +1 -0
  63. package/dist/esm/ebnfDiagram-V4P3TTPT-Cr1EANnv.js +1 -0
  64. package/dist/esm/elk-QONTBCTQ-CqfCbAWo.js +1 -0
  65. package/dist/esm/enums.js +1 -1
  66. package/dist/esm/erDiagram-KYQIGQAA-DMgweTFG.js +1 -0
  67. package/dist/esm/flowDiagram-IUGLLWBU-B4pY13UK.js +1 -0
  68. package/dist/esm/ganttDiagram-R7GPNTJY-YkRR1QZl.js +1 -0
  69. package/dist/esm/gitGraphDiagram-PDYL7XHY-BuhZy85T.js +1 -0
  70. package/dist/esm/helpers.js +1 -1
  71. package/dist/esm/{index-DBVTTZ07.js → index-CTKRTL8i.js} +1 -1
  72. package/dist/esm/{index-P2yxumel.js → index-DU7OAICx.js} +1 -1
  73. package/dist/esm/{index-D9j3iMPO.js → index-DWLuqDsD.js} +1 -1
  74. package/dist/esm/index-c3o5xJQl.js +1 -0
  75. package/dist/esm/index-w_leOmyv.js +1 -0
  76. package/dist/esm/infoDiagram-MVDRKAX5-CfqZ5lu9.js +1 -0
  77. package/dist/esm/ishikawaDiagram-HPEHV2GE-fwZw1vDt.js +1 -0
  78. package/dist/esm/journeyDiagram-BOSHW7O7-CJ0qr25S.js +1 -0
  79. package/dist/esm/kanban-definition-FNSA4HC5-D467uQkY.js +1 -0
  80. package/dist/esm/main.js +1 -1
  81. package/dist/esm/{mermaid.core-GJX79pQL.js → mermaid.core-QEjDbduh.js} +2 -2
  82. package/dist/esm/mindmap-definition-6OY57UG3-BLQmSwVy.js +1 -0
  83. package/dist/esm/pegDiagram-ECIUJNBX-BD9B5ipu.js +1 -0
  84. package/dist/esm/pieDiagram-GNMPY74T-ALgTthPz.js +1 -0
  85. package/dist/esm/quadrantDiagram-D57K4MC3-DvM56mui.js +1 -0
  86. package/dist/esm/railroadDiagram-Y72NRBL7-Bbmv8kBV.js +1 -0
  87. package/dist/esm/requirementDiagram-EQYSW5RA-B2-FtMv8.js +1 -0
  88. package/dist/esm/sankeyDiagram-SY24JHO5-a4Tjq4bh.js +1 -0
  89. package/dist/esm/sequenceDiagram-BLEHNHQU-D51n1e3_.js +1 -0
  90. package/dist/esm/server.js +1 -1
  91. package/dist/esm/settings-Cd8fftVp.js +1 -0
  92. package/dist/esm/settings.js +1 -1
  93. package/dist/esm/sizeCapture-INFHLROL-EvtR_ZF3.js +1 -0
  94. package/dist/esm/stateDiagram-v2-A6IESKWZ-Dy_vLRVL.js +1 -0
  95. package/dist/esm/swimlanes-B3ENRKFQ-0pqT2-Jw.js +1 -0
  96. package/dist/esm/swimlanesDiagram-AYQRV4AK-COayinaD.js +1 -0
  97. package/dist/esm/timeline-definition-JXYKGLGB-DFhOynr-.js +1 -0
  98. package/dist/esm/{types-DS5jBUtV.js → types-C6dLWyzP.js} +1 -1
  99. package/dist/esm/usecaseDiagram-WPOLBNNX-MTVBbHK8.js +1 -0
  100. package/dist/esm/vennDiagram-Q3Y3IDCW-CgaIfPfv.js +1 -0
  101. package/dist/esm/wardleyDiagram-IVAIDKWA-CEQzSAI4.js +1 -0
  102. package/dist/esm/websocket-BppBoZUJ.js +1 -0
  103. package/dist/esm/xychartDiagram-4URNHDU4-BQJJ7mH2.js +1 -0
  104. package/dist/module-types/src/components/helpers/problem.d.ts +1 -1
  105. package/dist/module-types/src/components/helpers/websocket.d.ts +5 -11
  106. package/dist/module-types/src/components/hooks/useInjectOrganizationStyles.d.ts +1 -0
  107. package/dist/module-types/src/components/hooks/useJudge.d.ts +2 -2
  108. package/dist/module-types/src/components/hooks/useJukiUser.d.ts +17 -17
  109. package/dist/module-types/src/components/hooks/{useCompanyPresence.d.ts → useOrganizationPresence.d.ts} +3 -3
  110. package/dist/module-types/src/components/hooks/useOwnPresence.d.ts +1 -1
  111. package/dist/module-types/src/components/hooks/useSubmissionsJudging.d.ts +12 -0
  112. package/dist/module-types/src/components/hooks/useSubscribe.d.ts +2 -2
  113. package/dist/module-types/src/components/molecules/LinkLastPath/types.d.ts +1 -1
  114. package/dist/module-types/src/components/organisms/HorizontalMenu/MenuParts.d.ts +19 -0
  115. package/dist/module-types/src/components/organisms/LoginUser/LoginUser.d.ts +3 -1
  116. package/dist/module-types/src/components/organisms/ProblemSelector/ProblemSelector.d.ts +1 -1
  117. package/dist/module-types/src/components/organisms/ProblemSelector/types.d.ts +4 -4
  118. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionListenerVerdict.d.ts +8 -3
  119. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionVerdict.d.ts +5 -4
  120. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmitViewContent.d.ts +2 -2
  121. package/dist/module-types/src/components/organisms/UserChip/types.d.ts +2 -2
  122. package/dist/module-types/src/components/organisms/UserNicknameLink/UserNicknameLink.d.ts +1 -1
  123. package/dist/module-types/src/components/organisms/UsersSelector/types.d.ts +3 -3
  124. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkContestTableTest/MockJkContestTable.d.ts +2 -2
  125. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkProblemTableTest/MockJkProblemTable.d.ts +2 -2
  126. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkSubmissionsTableTest/MockJkSubmissionTable.d.ts +2 -2
  127. package/dist/module-types/src/components/organisms/_layz_/WorksheetAsSlides/types.d.ts +2 -2
  128. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ResultHeader.d.ts +2 -2
  129. package/dist/module-types/src/components/organisms/_layz_/WorksheetViewer/types.d.ts +2 -2
  130. package/dist/module-types/src/components/organisms/modals/ImageUploaderModal/PublicImagesTab/PublicImages.d.ts +2 -2
  131. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModal.d.ts +1 -1
  132. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModalTemplate/types.d.ts +2 -2
  133. package/dist/module-types/src/components/organisms/modals/LoginModal/types.d.ts +1 -1
  134. package/dist/module-types/src/components/organisms/modals/UserPreviewModal/UserPreviewContentModal.d.ts +4 -4
  135. package/dist/module-types/src/components/providers/JukiAblyInitializer/JukiAblyInitializer.d.ts +1 -1
  136. package/dist/module-types/src/components/providers/JukiUIProvider/JukiUIProvider.d.ts +1 -1
  137. package/dist/module-types/src/components/providers/JukiUIProvider/types.d.ts +2 -2
  138. package/dist/module-types/src/components/providers/JukiUserProvider/types.d.ts +4 -4
  139. package/dist/module-types/src/components/templates/ContestNameLinkField/types.d.ts +3 -3
  140. package/dist/module-types/src/components/templates/EditProfileModal/ImageProfileModal.d.ts +1 -1
  141. package/dist/module-types/src/components/templates/EditProfileModal/types.d.ts +5 -5
  142. package/dist/module-types/src/components/templates/MainMenu/SettingsSection/index.d.ts +1 -1
  143. package/dist/module-types/src/components/templates/MainMenu/types.d.ts +1 -1
  144. package/dist/module-types/src/components/templates/ProblemView/commons/ProblemCodeEditor.d.ts +2 -2
  145. package/dist/module-types/src/components/templates/ProblemView/types.d.ts +3 -3
  146. package/dist/module-types/src/components/templates/ResetPasswordModal/ResetPasswordModal.d.ts +1 -1
  147. package/dist/module-types/src/components/templates/ResetPasswordModal/types.d.ts +1 -1
  148. package/dist/module-types/src/components/templates/UserProfile/types.d.ts +3 -3
  149. package/dist/module-types/src/components/templates/UserProfileSettings/types.d.ts +2 -2
  150. package/dist/module-types/src/components/templates/UserViewLayout/types.d.ts +2 -2
  151. package/dist/module-types/src/components/templates/columns/contest-columns/getContestContestantsHeader.d.ts +2 -2
  152. package/dist/module-types/src/components/templates/columns/contest-columns/getContestDateHeader.d.ts +2 -2
  153. package/dist/module-types/src/components/templates/columns/contest-columns/getContestNameHeader.d.ts +2 -2
  154. package/dist/module-types/src/components/templates/columns/contest-columns/getContestStatusHeader.d.ts +2 -2
  155. package/dist/module-types/src/components/templates/columns/contest-columns/getContestTagsHeader.d.ts +2 -2
  156. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemAdminActionsHeader.d.ts +2 -2
  157. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemKeyHeader.d.ts +2 -2
  158. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemModeHeader.d.ts +2 -2
  159. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemNameHeader.d.ts +2 -2
  160. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemOwnerHeader.d.ts +2 -2
  161. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemTagsHeader.d.ts +2 -2
  162. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemTypeHeader.d.ts +2 -2
  163. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionContestHeader.d.ts +2 -2
  164. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionContestProblemHeader.d.ts +3 -3
  165. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionDateHeader.d.ts +2 -2
  166. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionLanguageHeader.d.ts +2 -2
  167. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionMemoryHeader.d.ts +2 -2
  168. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionNicknameHeader.d.ts +2 -2
  169. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionProblemHeader.d.ts +3 -3
  170. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionRejudgeHeader.d.ts +2 -2
  171. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionTimeHeader.d.ts +2 -2
  172. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionVerdictHeader.d.ts +2 -2
  173. package/dist/module-types/src/components/templates/members/DocumentMembersModal/DocumentMembersModal.d.ts +2 -2
  174. package/dist/module-types/src/components/templates/members/types.d.ts +6 -6
  175. package/dist/module-types/src/components/templates/problem/ProblemCrawlerField.d.ts +1 -1
  176. package/dist/module-types/src/components/templates/problem/ProblemOwnerField.d.ts +1 -1
  177. package/dist/module-types/src/components/templates/problem/types.d.ts +10 -10
  178. package/dist/module-types/src/components/templates/submission/SubmissionNicknameField.d.ts +1 -1
  179. package/dist/module-types/src/components/templates/submission/types.d.ts +9 -9
  180. package/dist/module-types/src/components/types/index.d.ts +6 -6
  181. package/dist/module-types/src/constants/index.d.ts +2 -2
  182. package/dist/module-types/src/enums/index.d.ts +1 -1
  183. package/dist/module-types/src/hooks/index.d.ts +2 -1
  184. package/dist/module-types/src/settings/ApiManager.d.ts +77 -93
  185. package/dist/module-types/src/settings/AppRoutes.d.ts +2 -2
  186. package/dist/module-types/src/stores/submissionsLive/useSubmissionsLiveStore.d.ts +26 -0
  187. package/dist/module-types/src/stores/websocket/topicChannels.d.ts +11 -10
  188. package/dist/module-types/src/stores/websocket/types.d.ts +4 -7
  189. package/package.json +2 -2
  190. package/dist/esm/ArrowForwardIcon-C9lEPgxF.js +0 -1
  191. package/dist/esm/BarChart-CmUpEfgx.js +0 -1
  192. package/dist/esm/ChangePasswordModal-CLhaqd0t.js +0 -1
  193. package/dist/esm/CodeEditor-BCPgv2Cb.js +0 -1
  194. package/dist/esm/CodeViewer-BRpMXuea.js +0 -1
  195. package/dist/esm/Collapse-afKIPlSN.js +0 -1
  196. package/dist/esm/DataViewer-sY3-mm2f.js +0 -1
  197. package/dist/esm/DrawerView-CDVcbXRh.js +0 -1
  198. package/dist/esm/ExcalidrawButton-DpC-H9ia.js +0 -1
  199. package/dist/esm/GraphvizViewer-BVrLuU49.js +0 -1
  200. package/dist/esm/ImageLoaderCropper-qgwMwAGw.js +0 -1
  201. package/dist/esm/InputCellPhoneNumber-EJdJwdOU.js +0 -1
  202. package/dist/esm/LineChart-CK_uehIw.js +0 -1
  203. package/dist/esm/MdMath-DdXwM7hb.js +0 -1
  204. package/dist/esm/ReplyIcon-CxQ2sdad.js +0 -1
  205. package/dist/esm/SlideDeck-BCpZmg4u.js +0 -1
  206. package/dist/esm/Tooltip-C_PscPTv.js +0 -1
  207. package/dist/esm/UserCodeEditor-DqHZdH0s.js +0 -61
  208. package/dist/esm/VirtualizedRowsFixed-ExvaHy3O.js +0 -1
  209. package/dist/esm/WorksheetAsSlides-Bf0TBaKQ.js +0 -1
  210. package/dist/esm/WorksheetContents-DSLbRrOR.js +0 -1
  211. package/dist/esm/WorksheetEditor-DHgjrze5.js +0 -1
  212. package/dist/esm/WorksheetNode-BWrXWPtD.js +0 -1
  213. package/dist/esm/WorksheetViewer-BtWO3C0N.js +0 -1
  214. package/dist/esm/abnfDiagram-WEYOIA3C-Hw5eOSwT.js +0 -1
  215. package/dist/esm/architectureDiagram-ZHVYKT53-BU7Zo-Vd.js +0 -1
  216. package/dist/esm/blockDiagram-RJAE7QA3-DSHzRL6J.js +0 -1
  217. package/dist/esm/c4Diagram-XDPPPE54-CpLQ9pqY.js +0 -1
  218. package/dist/esm/channel-p0K5iSo0.js +0 -1
  219. package/dist/esm/classDiagram-v2-4MYWR3UA-BGFOFtLW.js +0 -1
  220. package/dist/esm/cose-bilkent-JH36ORCC-WrGk8F3q.js +0 -1
  221. package/dist/esm/cynefinDiagram-WF24UDRP-plMeajnN.js +0 -1
  222. package/dist/esm/dagre-NK4GIZVX-DFmweJ5L.js +0 -1
  223. package/dist/esm/diagram-CBK3MWTC-Do3xyOgp.js +0 -1
  224. package/dist/esm/diagram-I5XIIV2D-BjcBIOdi.js +0 -1
  225. package/dist/esm/diagram-ODIL2UCW-B9Avmrsd.js +0 -1
  226. package/dist/esm/diagram-PFBEJUXE-BspjnifG.js +0 -1
  227. package/dist/esm/diagram-RJA3I4VV-CDb0YVvV.js +0 -1
  228. package/dist/esm/diagram-TYUNFSNR-CowQmn1U.js +0 -1
  229. package/dist/esm/ebnfDiagram-V4P3TTPT-DoV9Lfm1.js +0 -1
  230. package/dist/esm/elk-QONTBCTQ-Di5ig-t7.js +0 -1
  231. package/dist/esm/erDiagram-KYQIGQAA-bd6-MJG2.js +0 -1
  232. package/dist/esm/flowDiagram-IUGLLWBU-B0MSMUTA.js +0 -1
  233. package/dist/esm/ganttDiagram-R7GPNTJY-lkIa_H6_.js +0 -1
  234. package/dist/esm/gitGraphDiagram-PDYL7XHY-Vj--WuIK.js +0 -1
  235. package/dist/esm/index-KB6gLBva.js +0 -1
  236. package/dist/esm/index-jAIWmSeN.js +0 -1
  237. package/dist/esm/infoDiagram-MVDRKAX5-DOeZ2-C8.js +0 -1
  238. package/dist/esm/ishikawaDiagram-HPEHV2GE-CENo4osB.js +0 -1
  239. package/dist/esm/journeyDiagram-BOSHW7O7-C2tDYh4z.js +0 -1
  240. package/dist/esm/kanban-definition-FNSA4HC5-CoyAxabP.js +0 -1
  241. package/dist/esm/mindmap-definition-6OY57UG3-Cz5x8Ddo.js +0 -1
  242. package/dist/esm/pegDiagram-ECIUJNBX-Cp7mSGqB.js +0 -1
  243. package/dist/esm/pieDiagram-GNMPY74T-DoaR6KZl.js +0 -1
  244. package/dist/esm/quadrantDiagram-D57K4MC3-vGvfladt.js +0 -1
  245. package/dist/esm/railroadDiagram-Y72NRBL7-CC8xjkre.js +0 -1
  246. package/dist/esm/requirementDiagram-EQYSW5RA-CvYZNdVi.js +0 -1
  247. package/dist/esm/sankeyDiagram-SY24JHO5-DTEzoJWs.js +0 -1
  248. package/dist/esm/sequenceDiagram-BLEHNHQU-B1ssXHBq.js +0 -1
  249. package/dist/esm/settings-oXVFKYs2.js +0 -1
  250. package/dist/esm/sizeCapture-INFHLROL-BpAWjro_.js +0 -1
  251. package/dist/esm/stateDiagram-v2-A6IESKWZ-BpWTAT11.js +0 -1
  252. package/dist/esm/swimlanes-B3ENRKFQ-CRPiPPkB.js +0 -1
  253. package/dist/esm/swimlanesDiagram-AYQRV4AK-CPu0_glt.js +0 -1
  254. package/dist/esm/timeline-definition-JXYKGLGB-D7lhGXLl.js +0 -1
  255. package/dist/esm/usecaseDiagram-WPOLBNNX-07MB5ZhJ.js +0 -1
  256. package/dist/esm/vennDiagram-Q3Y3IDCW-BF4CwCTB.js +0 -1
  257. package/dist/esm/wardleyDiagram-IVAIDKWA-CE_jsTBp.js +0 -1
  258. package/dist/esm/websocket-CXHGKJlm.js +0 -1
  259. package/dist/esm/xychartDiagram-4URNHDU4-DK5TR51V.js +0 -1
  260. package/dist/module-types/src/components/hooks/useInjectCompanyStyles.d.ts +0 -1
@@ -1 +0,0 @@
1
- import{g as t}from"./chunk-XXDRQBXY-ClHdtw3t.js";import{s as e}from"./chunk-VQ5W62QI-BTvKzH75.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-GJX79pQL.js";import{c as O}from"./channel-p0K5iSo0.js";import"./index-jAIWmSeN.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-CmbPiYDE.js";import"./settings-oXVFKYs2.js";import"./constants.js";import"./LoaderLayer-CyitSTCe.js";import"./websocket-CXHGKJlm.js";import"./index-KB6gLBva.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};
@@ -1 +0,0 @@
1
- import{d as r}from"./chunk-NQOKRVIF-BsYoUZL4.js";export{c as createFlowDiagram}from"./chunk-NQOKRVIF-BsYoUZL4.js";import"./mermaid.core-GJX79pQL.js";import"./chunk-5VM5RSS4-bDfGkvI-.js";import"./chunk-XXDRQBXY-ClHdtw3t.js";import"./chunk-VQ5W62QI-BTvKzH75.js";import"./chunk-55XCU76K-Bm2vEyhO.js";import"./channel-p0K5iSo0.js";import"./index-jAIWmSeN.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-CmbPiYDE.js";import"./settings-oXVFKYs2.js";import"./constants.js";import"./LoaderLayer-CyitSTCe.js";import"./websocket-CXHGKJlm.js";import"./index-KB6gLBva.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};
@@ -1 +0,0 @@
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-GJX79pQL.js";import{z as k}from"./index-jAIWmSeN.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-CmbPiYDE.js";import"./settings-oXVFKYs2.js";import"./constants.js";import"./LoaderLayer-CyitSTCe.js";import"./websocket-CXHGKJlm.js";import"./index-KB6gLBva.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};
@@ -1 +0,0 @@
1
- import{I as t}from"./chunk-2Q5K7J3B-BvYoUWYj.js";import{p as r}from"./chunk-JWPE2WC7-WoJ0Gwzc.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-GJX79pQL.js";import{p as b}from"./cynefin-EF2NZ3EQ-CaJSaYBh.js";import"./index-jAIWmSeN.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-CmbPiYDE.js";import"./settings-oXVFKYs2.js";import"./constants.js";import"./LoaderLayer-CyitSTCe.js";import"./websocket-CXHGKJlm.js";import"./index-KB6gLBva.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};
@@ -1 +0,0 @@
1
- import{J as e,H as t,g as a}from"./settings-oXVFKYs2.js";import{i as s}from"./commons-CmbPiYDE.js";import{QueryParamKey as r,ContestTab as o,ProblemTab as m,ProfileTab as i}from"./enums.js";const d=e=>e.includes("?")?e:e+"?",y=e=>"?"!==e[e.length-1]?e+"&":e,l=(e,t,a)=>y(d(e))+`page=${t}&pageSize=${a}`,n=(e,t)=>t?y(d(e))+t:e,p=(e,t)=>t?y(d(e))+t:e,u=(e,t)=>t?y(d(e))+`companyKey=${t}`:e;const c=(e,t)=>`${e||""}${t}`,g=e=>new URLSearchParams(e.toString()),b=e=>{const t=g(e);let a=new URLSearchParams;s()&&(a=new URLSearchParams(window.location.search));const o=a.get(r.TOKEN);o&&t.set(r.TOKEN,o);const m=a.get(r.COMPANY);m&&t.set(r.COMPANY,m);const i=a.get(r.SUBMISSION);i&&t.set(r.SUBMISSION,i);const d=a.get(r.SIGN_IN);d&&t.set(r.SIGN_IN,d);const y=a.get(r.SIGN_UP);return y&&t.set(r.SIGN_UP,y),t.toString()},h=e=>{const t=new URL("https://juki.app"+e),a=b(t.searchParams);return a?t.pathname+"?"+a:t.pathname};const S=new class{get API_V2(){const s=(t,a)=>`${e}/${t}${a}`,r=a=>e?a:()=>({url:"",method:t.GET});return{auth:{ping:r(()=>({url:s("auth","/ping"),method:t.GET})),signIn:r(({params:{companyKey:e}={},body:a})=>({url:u(s("auth","/sign-in"),e),method:t.POST,body:JSON.stringify(a)})),signUp:r(({body:e})=>({url:s("auth","/sign-up"),method:t.POST,body:JSON.stringify(e)})),createUser:r(({params:{companyKey:e}={},body:a})=>({url:u(s("auth","/sign-up"),e),method:t.POST,body:JSON.stringify({...a,isGenerated:!0})})),signOut:r(()=>({url:s("auth","/sign-out"),method:t.POST})),initiateResetPassword:r(({body:e})=>({url:s("auth","/initiate-reset-password"),method:t.POST,body:JSON.stringify(e)})),updatePassword:r(({params:{companyKey:e,nickname:r},body:o})=>({url:s("auth",`/user-key/${a(r,e)}/update-password`),method:t.POST,body:JSON.stringify(o)})),resetPassword:r(({params:{companyKey:e,nickname:r}})=>({url:s("auth",`/user-key/${a(r,e)}/reset-password`),method:t.POST})),createSession:r(({params:{companyKey:e}={},body:a})=>({url:u(s("auth","/create-session"),e),method:t.POST,body:JSON.stringify(a)}))},log:{error:r(({body:e})=>({url:s("log","/error"),method:t.POST,body:JSON.stringify(e)})),info:r(({body:e})=>({url:s("log","/info"),method:t.POST,body:JSON.stringify(e)}))},user:{getSummaryList:r(({params:{companyKey:e}={companyKey:""}}={params:{companyKey:""}})=>({url:u(s("user","/summary-list"),e),method:t.GET})),getSystemList:r(({params:{page:e,pageSize:a,filterUrl:r,sortUrl:o}})=>({url:n(p(l(s("user","/system-list"),e,a),r),o),method:t.GET})),getSummary:r(({params:{nickname:e,companyKey:r}})=>({url:s("user",`/user-key/${a(e,r)}/summary`),method:t.GET})),getProfile:r(({params:{nickname:e,companyKey:r}})=>({url:s("user",`/user-key/${a(e,r)}/profile`),method:t.GET})),getLogs:r(({params:{nickname:e,companyKey:r}})=>({url:s("user",`/user-key/${a(e,r)}/logs`),method:t.GET})),getMySessions:r(()=>({url:s("user","/my-sessions"),method:t.GET})),getAllOnlineUsers:r(({params:{filterUrl:e,sortUrl:a}})=>({url:n(p(s("user","/all-online-users"),e),a),method:t.GET})),getOnlineUsers:r(({params:{filterUrl:e,sortUrl:a}})=>({url:n(p(s("user","/online-users"),e),a),method:t.GET})),deleteOldSessions:r(()=>({url:s("user","/delete-old-sessions"),method:t.POST})),updateProfileData:r(({params:{nickname:e,companyKey:r},body:o})=>({url:s("user",`/user-key/${a(e,r)}/profile-data`),method:t.PUT,body:JSON.stringify(o)})),updateProfileImage:r(({params:{nickname:e,companyKey:r},body:o})=>({url:s("user",`/user-key/${a(e,r)}/profile-image`),method:t.PUT,body:JSON.stringify(o)})),updatePreferences:r(({params:{nickname:e,companyKey:r},body:o})=>({url:s("user",`/user-key/${a(e,r)}/preferences`),method:t.PUT,body:JSON.stringify(o)})),updateRoles:r(({params:{nickname:e,companyKey:r},body:o})=>({url:s("user",`/user-key/${a(e,r)}/roles`),method:t.PUT,body:JSON.stringify(o)})),deleteSession:r(({params:{sessionId:e}})=>({url:s("user",`/session/${e}`),method:t.DELETE})),checkData:r(({params:{companyKey:e},body:a})=>({url:u(s("user","/check-data"),e),method:t.POST,body:JSON.stringify(a)})),clientTrack:r(({body:e})=>({url:s("user","/client-track"),method:t.POST,body:JSON.stringify(e)}))},problem:{create:r(()=>({url:s("problem",""),method:t.POST})),update:r(({params:{key:e}})=>({url:s("problem",`/${e}`),method:t.PUT})),delete:r(({params:{key:e}})=>({url:s("problem",`/${e}`),method:t.DELETE})),getMetadata:r(({params:{key:e}})=>({url:s("problem",`/${e}/metadata`),method:t.GET})),getData:r(({params:{key:e}})=>({url:s("problem",`/${e}/data`),method:t.GET})),getBasicSummaryList:r(({params:{page:e,pageSize:a,filterUrl:r,sortUrl:o}})=>({url:n(p(l(s("problem","/basic-summary-list"),e,a),r),o),method:t.GET})),getSummaryList:r(({params:{page:e,pageSize:a,filterUrl:r,sortUrl:o}})=>({url:n(p(l(s("problem","/summary-list"),e,a),r),o),method:t.GET})),getSystemList:r(({params:{page:e,pageSize:a,filterUrl:r,sortUrl:o}})=>({url:n(p(l(s("problem","/system-list"),e,a),r),o),method:t.GET})),getSummary:r(({params:{key:e}})=>({url:s("problem",`/${e}/summary`),method:t.GET})),getLogs:r(({params:{key:e}})=>({url:s("problem",`/${e}/logs`),method:t.GET})),getTestCases:r(({params:{key:e}})=>({url:s("problem",`/${e}/test-cases`),method:t.GET})),submit:r(({params:{key:e},body:a})=>({url:s("problem",`/${e}/submit`),method:t.POST,body:JSON.stringify(a)})),crawl:r(({body:e})=>({url:s("problem","/crawl"),method:t.POST,body:JSON.stringify(e)}))},contest:{getSummaryList:r(({params:{page:e,pageSize:a,filterUrl:r,sortUrl:o}})=>({url:n(p(l(s("contest","/summary-list"),e,a),r),o),method:t.GET})),getSystemList:r(({params:{page:e,pageSize:a,filterUrl:r,sortUrl:o}})=>({url:n(p(l(s("contest","/system-list"),e,a),r),o),method:t.GET})),getMetadata:r(({params:{key:e,companyKey:a}})=>({url:u(s("contest",`/${e}/metadata`),a),method:t.GET})),getData:r(({params:{key:e,companyKey:a}})=>({url:u(s("contest",`/${e}/data`),a),method:t.GET})),getDataEvents:r(({params:{key:e,companyKey:a}})=>({url:u(s("contest",`/${e}/data/events`),a),method:t.GET})),getDataMembers:r(({params:{key:e,companyKey:a}})=>({url:u(s("contest",`/${e}/data/members`),a),method:t.GET})),getDataClarifications:r(({params:{key:e,companyKey:a}})=>({url:u(s("contest",`/${e}/data/clarifications`),a),method:t.GET})),getScoreboard:r(({params:{key:e,unfrozen:a,companyKey:r,official:o}})=>({url:u(s("contest",`/${e}/data/scoreboard${a?"?state=unfrozen":""}${o?(a?"&":"?")+"official=true":""}`),r),method:t.GET})),getLogs:r(({params:{key:e,companyKey:a}})=>({url:u(s("contest",`/${e}/logs`),a),method:t.GET})),submit:r(({params:{key:e,problemKey:a,companyKey:r},body:o})=>({url:u(s("contest",`/${e}/problem/${a}/submit`),r),method:t.POST,body:JSON.stringify(o)})),recalculateScoreboard:r(({params:{key:e,companyKey:a,official:r}})=>({url:u(s("contest",`/${e}/recalculate-scoreboard${r?"?official=true":""}`),a),method:t.POST})),recalculatePrerequisites:r(({params:{key:e,companyKey:a}})=>({url:u(s("contest",`/${e}/recalculate-prerequisites`),a),method:t.POST})),problem:{rejudge:r(({params:{key:e,problemKey:a,companyKey:r}})=>({url:u(s("contest",`/${e}/problem/${a}/rejudge`),r),method:t.POST})),retrieve:r(({params:{key:e,problemKey:a,companyKey:r}})=>({url:u(s("contest",`/${e}/problem/${a}/retrieve`),r),method:t.POST}))},retrieve:r(({params:{key:e,companyKey:a}})=>({url:u(s("contest",`/${e}/retrieve`),a),method:t.POST})),editGlobal:r(({params:{key:e,companyKey:a},body:r})=>({url:u(s("contest",`/${e}/global`),a),method:t.PUT,body:JSON.stringify(r)})),createGlobal:r(({params:{companyKey:e},body:a})=>({url:u(s("contest","/global"),e),method:t.POST,body:JSON.stringify(a)})),unlinkSubmissions:r(({params:{key:e,companyKey:a}})=>({url:u(s("contest",`/${e}/unlink-submissions`),a),method:t.POST}))},submission:{getSummaryList:r(({params:{page:e,pageSize:a,filterUrl:r,sortUrl:o}})=>({url:n(p(l(s("submission","/summary-list"),e,a),r),o),method:t.GET})),getSystemList:r(({params:{page:e,pageSize:a,filterUrl:r,sortUrl:o}})=>({url:n(p(l(s("submission","/system-list"),e,a),r),o),method:t.GET})),getExportSummaryList:r(({params:{page:e,pageSize:a,filterUrl:r,sortUrl:o,withSourceCodes:m}})=>({url:n(p(l(s("submission","/summary-list-export"+(m?"?withSourceCodes=true":"")),e,a),r),o),method:t.GET})),getData:r(({params:{id:e}})=>({url:s("submission",`/${e}/data`),method:t.GET})),getLogs:r(({params:{id:e}})=>({url:s("submission",`/${e}/logs`),method:t.GET})),rejudge:r(({params:{id:e}})=>({url:s("submission",`/${e}/rejudge`),method:t.POST})),retrieve:r(({params:{id:e}})=>({url:s("submission",`/${e}/retrieve`),method:t.POST})),judge:r(({params:{id:e},body:a})=>({url:s("submission",`/${e}/judge`),method:t.POST,body:JSON.stringify(a)})),archive:r(({params:{id:e}})=>({url:s("submission",`/${e}/archive`),method:t.POST})),release:r(({params:{id:e}})=>({url:s("submission",`/${e}/release`),method:t.POST}))},image:{getPublicList:r(()=>({url:s("image","/public-list"),method:t.GET})),publish:r(({body:e})=>({url:s("image","/publish"),method:t.POST,body:JSON.stringify(e)}))},file:{publish:r(({body:e})=>({url:s("file","/publish"),method:t.POST,body:JSON.stringify(e)}))},note:{publish:r(({body:e})=>({url:s("note","/publish"),method:t.POST,headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})),getPdf:r(({params:{sourceUrl:e}})=>({url:s("note",`/pdf?sourceUrl=${e}`),method:t.GET})),createPdf:r(({body:e})=>({url:s("note","/pdf"),method:t.POST,body:JSON.stringify(e)}))},code:{run:r(({body:e})=>({url:s("code","/run"),method:t.POST,body:JSON.stringify(e)}))},ia:{chatCompletions:r(({body:e})=>({url:s("ia","/chat/completions"),method:t.POST,body:JSON.stringify(e)}))},company:{get:r(({params:{companyKey:e}}={params:{companyKey:""}})=>({url:u(s("company",""),e),method:t.GET})),getPermissionList:r(()=>({url:s("company","/permission-list"),method:t.GET})),getJudgeList:r(({params:{companyKey:e}}={params:{companyKey:""}})=>({url:u(s("company","/judge-list"),e),method:t.GET})),getTrustedCompaniesList:r(({params:{companyKey:e}}={params:{companyKey:""}})=>({url:u(s("company","/trusted-companies-list"),e),method:t.GET})),getResourceSpecifications:r(({params:{companyKey:e}}={params:{companyKey:""}})=>({url:u(s("company","/resource-specifications"),e),method:t.GET})),getEmailData:r(({params:{companyKey:e}}={params:{companyKey:""}})=>({url:u(s("company","/email-data"),e),method:t.GET})),updateImage:r(({params:{companyKey:e}={companyKey:""},body:a})=>({url:u(s("company","/image"),e),method:t.PUT,body:JSON.stringify(a)})),updateData:r(({params:{companyKey:e}={companyKey:""},body:a})=>({url:u(s("company",""),e),method:t.PATCH,body:JSON.stringify(a)})),updateSensitiveData:r(({params:{companyKey:e}={companyKey:""},body:a})=>({url:u(s("company","/sensitive-data"),e),method:t.PATCH,body:JSON.stringify(a)}))},locale:{get:r(({params:{locale:e,namespace:a}})=>({url:s("locale",`/${e}/${a}`),method:t.GET}))},judge:{getData:r(({params:{key:e}})=>({url:s("judge",`/${e}/data`),method:t.GET})),getSummaryList:r(({params:{filterUrl:e,sortUrl:a}={filterUrl:"",sortUrl:""}}={})=>({url:n(p(s("judge","/summary-list"),e),a),method:t.GET})),getSystemList:r(({params:{filterUrl:e,sortUrl:a}={filterUrl:"",sortUrl:""}}={})=>({url:n(p(s("judge","/system-list"),e),a),method:t.GET})),crawlLanguages:r(({params:{key:e}})=>({url:s("judge",`/${e}/crawl-languages`),method:t.POST})),patch:r(({params:{key:e},body:{languages:a,name:r,problemTags:o,isExternal:m,isSubmitSupported:i,url:d,logo:y,logoSize:l}})=>{const n={};return a&&(n.languages=a),"string"==typeof r&&(n.name=r),o&&(n.problemTags=o),"boolean"==typeof m&&(n.isExternal=m),"boolean"==typeof i&&(n.isSubmitSupported=i),"string"==typeof d&&(n.url=d),"string"==typeof y&&(n.logo=y),l&&(n.logoSize=l),{url:s("judge",`/${e}`),method:t.PATCH,body:JSON.stringify(n)}})},worksheet:{getData:r(({params:{key:e,companyKey:a}})=>({url:u(s("worksheet",`/${e}/data`),a),method:t.GET})),update:r(({params:{key:e},body:a})=>({url:s("worksheet",`/${e}`),method:t.PUT,body:JSON.stringify(a)})),getList:r(({params:{page:e,pageSize:a,filterUrl:r,sortUrl:o}})=>({url:n(p(l(s("worksheet","/list"),e,a),r),o),method:t.GET})),getSubmissionsUser:r(({params:{key:e,userKey:a,secondaryKey:r}})=>({url:s("worksheet",`/${e}/submissions/user/${a}${r?`?secondaryKey=${r}`:""}`),method:t.GET})),submitJkMd:r(({params:{worksheetKey:e,secondaryKey:a},body:r})=>({url:s("worksheet",`/${e}/submit/jk-md${a?`?secondaryKey=${a}`:""}`),method:t.POST,body:JSON.stringify(r)})),submitCodeEditor:r(({params:{worksheetKey:e,secondaryKey:a},body:r})=>({url:s("worksheet",`/${e}/submit/code-editor${a?`?secondaryKey=${a}`:""}`),method:t.POST,body:JSON.stringify(r)})),submitQuizProblem:r(({params:{worksheetKey:e,secondaryKey:a},body:r})=>({url:s("worksheet",`/${e}/submit/quiz-problem${a?`?secondaryKey=${a}`:""}`),method:t.POST,body:JSON.stringify(r)})),submitQuizOptions:r(({params:{worksheetKey:e,secondaryKey:a},body:r})=>({url:s("worksheet",`/${e}/submit/quiz-options${a?`?secondaryKey=${a}`:""}`),method:t.POST,body:JSON.stringify(r)}))},system:{services:{checkAndStart:r(()=>({url:s("sys","/services/check-and-start"),method:t.POST})),check:r(()=>({url:s("sys","/services/check"),method:t.POST})),clean:r(()=>({url:s("sys","/services/clean"),method:t.POST}))}},comment:{get:r(({params:{key:e}})=>({url:s("comment",`/${e}`),method:t.GET})),post:r(({params:{key:e},body:a})=>({url:s("comment",`/${e}`),method:t.POST,body:JSON.stringify(a)})),reply:r(({params:{key:e,id:a},body:r})=>({url:s("comment",`/${e}/${a}/reply`),method:t.POST,body:JSON.stringify(r)})),react:r(({params:{key:e,id:a},body:r})=>({url:s("comment",`/${e}/${a}/react`),method:t.POST,body:JSON.stringify(r)})),hide:r(({params:{key:e,id:a}})=>({url:s("comment",`/${e}/${a}/hide`),method:t.POST})),unhide:r(({params:{key:e,id:a}})=>({url:s("comment",`/${e}/${a}/unhide`),method:t.POST}))},class:{viewAssignmentMyWorksheetSubmitCodeEditor:r(({params:{classKey:e,cycleId:a,sessionId:r,assignmentId:o},body:m})=>({url:s("class",`/${e}/cycle/${a}/session/${r}/assignment/${o}/worksheet/submit-code-editor`),method:t.POST,body:JSON.stringify(m)}))},documentTemplate:{create:r(({body:e})=>({url:s("document-template",""),method:t.POST,body:JSON.stringify(e)})),getSummaryList:r(({params:{page:e,pageSize:a,filterUrl:r,sortUrl:o}})=>({url:n(p(l(s("document-template","/summary-list"),e,a),r),o),method:t.GET})),getData:r(({params:{key:e}})=>({url:s("document-template",`/${e}/data`),method:t.GET})),updateData:r(({params:{key:e,companyKey:a},body:r})=>({url:u(s("document-template",`/${e}`),a),method:t.PUT,body:JSON.stringify(r)}))},statistics:{getCompanyStats:r(({params:{companyKey:e,startTimestamp:a,endTimestamp:r,groupBy:o}})=>({url:u(s("statistics",`/company?startTimestamp=${a}&endTimestamp=${r}&groupBy=${o.join(",")}`),e),method:t.GET})),getProblemStats:r(({params:{companyKey:e,problemKey:a,startTimestamp:r,endTimestamp:o}})=>({url:u(s("statistics",`/problem/${a}?startTimestamp=${r}&endTimestamp=${o}`),e),method:t.GET}))},excalidraw:{getSummaryList:r(({params:{page:e,pageSize:a,filterUrl:r,sortUrl:o}})=>({url:n(p(l(s("excalidraw","/summary-list"),e,a),r),o),method:t.GET})),create:r(({body:e})=>({url:s("excalidraw",""),method:t.POST,body:JSON.stringify(e)})),updateData:r(({params:{key:e},body:a})=>({url:s("excalidraw",`/${e}/data`),method:t.PUT,body:JSON.stringify(a)})),getMetadata:r(({params:{key:e}})=>({url:s("excalidraw",`/${e}/metadata`),method:t.GET})),getData:r(({params:{key:e}})=>({url:s("excalidraw",`/${e}/data`),method:t.GET}))},mermaid:{getSummaryList:r(({params:{page:e,pageSize:a,filterUrl:r,sortUrl:o}})=>({url:n(p(l(s("mermaid","/summary-list"),e,a),r),o),method:t.GET})),create:r(({body:e})=>({url:s("mermaid",""),method:t.POST,body:JSON.stringify(e)})),updateData:r(({params:{key:e},body:a})=>({url:s("mermaid",`/${e}/data`),method:t.PUT,body:JSON.stringify(a)})),getMetadata:r(({params:{key:e}})=>({url:s("mermaid",`/${e}/metadata`),method:t.GET})),getData:r(({params:{key:e}})=>({url:s("mermaid",`/${e}/data`),method:t.GET}))},markdown:{getSummaryList:r(({params:{page:e,pageSize:a,filterUrl:r,sortUrl:o}})=>({url:n(p(l(s("markdown","/summary-list"),e,a),r),o),method:t.GET})),create:r(({body:e})=>({url:s("markdown",""),method:t.POST,body:JSON.stringify(e)})),updateData:r(({params:{key:e},body:a})=>({url:s("markdown",`/${e}/data`),method:t.PUT,body:JSON.stringify(a)})),getMetadata:r(({params:{key:e}})=>({url:s("markdown",`/${e}/metadata`),method:t.GET})),getData:r(({params:{key:e}})=>({url:s("markdown",`/${e}/data`),method:t.GET}))},export:{websiteToPdf:r(({params:{url:e,headerTemplate:a,footerTemplate:r,margin:o,format:m}})=>({url:s("export","/website-to-pdf"),method:t.POST,body:JSON.stringify({url:e,headerTemplate:a,footerTemplate:r,margin:o,format:m})})),problem:{statementToPdf:r(({params:{key:e,language:a}})=>({url:s("export","/problem/statement-to-pdf"),method:t.POST,body:JSON.stringify({key:e,language:a})})),statementToPng:r(({params:{key:e,token:a,language:r}})=>({url:s("export","/problem/statement-to-png"),method:t.POST,body:JSON.stringify({key:e,token:a,language:r})}))},contest:{problems:{statementsToPdf:r(({params:{key:e,language:a}})=>({url:s("export","/contest/problems/statements-to-pdf"),method:t.POST,body:JSON.stringify({key:e,language:a})}))}}},webScraping:{codeforces:{problemStatement:r(({params:{contestId:e,index:a}})=>({url:s("web-scraping","/codeforces/problem-statement"),method:t.POST,body:JSON.stringify({contestId:e,index:a})}))},patito:{problemStatement:r(({params:{id:e}})=>({url:s("web-scraping","/patito/problem-statement"),method:t.POST,body:JSON.stringify({id:e})}))}},websocket:{auth:r(()=>({url:s("websocket","/auth"),method:t.POST}))}}}},T=new class{JUDGE(e){const t=e??"";return{home:()=>h("/"),profiles:{view:({nickname:e,companyKey:s,tab:r=i.OVERVIEW})=>c(t,h(`/profiles/${a(e,s)}${r?`?tab=${r}`:""}`))},problems:{list:()=>c(t,h("/problems")),view:({key:e,tab:a=m.STATEMENT})=>c(t,h(`/problems/${e}${a?`?tab=${a}`:""}`)),edit:({key:e,tab:a=m.STATEMENT})=>c(t,h(`/problems/${e}/edit${a?`?tab=${a}`:""}`)),new:({judge:e,tab:a})=>c(t,h(`/problems/new?judge=${e}${a?`&tab=${a}`:""}`))},contests:{list:({tab:e})=>c(t,h("/contests"+(e?`?tab=${e}`:""))),view:({key:e,tab:a=o.OVERVIEW,subTab:s})=>c(t,h(`/contests/${e}${a?`?tab=${a}`:""}${s?(a?"&":"?")+`subTab=${s}`:""}`)),edit:({key:e,tab:a=o.OVERVIEW})=>c(t,h(`/contests/${e}/edit${a?`?tab=${a}`:""}`)),new:({tab:e}={tab:void 0})=>c(t,h("/contests/new"+(e?`?tab=${e}`:"")))},submissions:{view:({id:e})=>c(t,h(`/submissions/${e}`))},boards:{page:()=>c(t,h("/boards"))},ide:{page:()=>c(t,h("/ide"))}}}COACH(e){const t=e??"";return{home:()=>h("/"),worksheets:{list:()=>c(t,h("/worksheets")),view:({key:e,page:a=1})=>c(t,h(`/worksheets/${e}${a?`?page=${a}`:""}`)),edit:({key:e,tab:a,from:s})=>c(t,h(`/worksheets/${e}/edit?tab=${a}${s?`&from=${s}`:""}`)),new:({tab:e})=>c(t,h(`/worksheets/new?tab=${e}`))},classes:{list:()=>c(t,h("/classes")),view:({key:e})=>c(t,h(`/classes/${e}`)),cycleView:({key:e,cycleId:a})=>c(t,h(`/classes/${e}/cycle/${a}`)),edit:({key:e})=>c(t,h(`/classes/${e}/edit`)),new:()=>c(t,h("/classes/new"))},courses:{list:()=>c(t,h("/courses")),view:({key:e})=>c(t,h(`/courses/${e}`)),lessonView:({key:e,lessonIndex:a,page:s=1})=>c(t,h(`/courses/${e}/lessons/${a}${s?`?page=${s}`:""}`)),edit:({key:e})=>c(t,h(`/courses/${e}/edit`)),new:()=>c(t,h("/courses/new"))},profiles:{view:({nickname:e,tab:a=i.OVERVIEW})=>c(t,h(`/profiles/${e}${a?`?tab=${a}`:""}`))}}}};export{T as a,g as c,S as j,b as p};